@glandais/vcyclist-engine 6.7.0 → 6.9.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/README.md +3 -3
- package/fit-kotlin-sdk.js +3736 -3736
- package/index.d.ts +20 -2
- package/kotlin-kotlin-stdlib.js +7 -7
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
- package/vcyclist-elevation.js +617 -598
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +2019 -1788
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +197 -197
- package/vcyclist-gpx.js +1213 -1208
- package/vcyclist-gpx.js.map +1 -1
- package/xmlutil-core.js +2393 -2393
package/vcyclist-gpx.js
CHANGED
|
@@ -283,27 +283,27 @@
|
|
|
283
283
|
symbol = symbol === VOID ? null : symbol;
|
|
284
284
|
type = type === VOID ? null : type;
|
|
285
285
|
timeEpochMs = timeEpochMs === VOID ? null : timeEpochMs;
|
|
286
|
-
this.
|
|
287
|
-
this.
|
|
288
|
-
this.
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
292
|
-
this.
|
|
293
|
-
this.
|
|
286
|
+
this.b2a_1 = latitudeDeg;
|
|
287
|
+
this.c2a_1 = longitudeDeg;
|
|
288
|
+
this.d2a_1 = elevationM;
|
|
289
|
+
this.e2a_1 = name;
|
|
290
|
+
this.f2a_1 = description;
|
|
291
|
+
this.g2a_1 = symbol;
|
|
292
|
+
this.h2a_1 = type;
|
|
293
|
+
this.i2a_1 = timeEpochMs;
|
|
294
294
|
}
|
|
295
295
|
protoOf(GpxWaypoint).toString = function () {
|
|
296
|
-
return 'GpxWaypoint(latitudeDeg=' + this.
|
|
296
|
+
return 'GpxWaypoint(latitudeDeg=' + this.b2a_1 + ', longitudeDeg=' + this.c2a_1 + ', elevationM=' + this.d2a_1 + ', name=' + this.e2a_1 + ', description=' + this.f2a_1 + ', symbol=' + this.g2a_1 + ', type=' + this.h2a_1 + ', timeEpochMs=' + toString(this.i2a_1) + ')';
|
|
297
297
|
};
|
|
298
298
|
protoOf(GpxWaypoint).hashCode = function () {
|
|
299
|
-
var result = getNumberHashCode(this.
|
|
300
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
301
|
-
result = imul(result, 31) + (this.
|
|
302
|
-
result = imul(result, 31) + (this.c2a_1 == null ? 0 : getStringHashCode(this.c2a_1)) | 0;
|
|
303
|
-
result = imul(result, 31) + (this.d2a_1 == null ? 0 : getStringHashCode(this.d2a_1)) | 0;
|
|
299
|
+
var result = getNumberHashCode(this.b2a_1);
|
|
300
|
+
result = imul(result, 31) + getNumberHashCode(this.c2a_1) | 0;
|
|
301
|
+
result = imul(result, 31) + (this.d2a_1 == null ? 0 : getNumberHashCode(this.d2a_1)) | 0;
|
|
304
302
|
result = imul(result, 31) + (this.e2a_1 == null ? 0 : getStringHashCode(this.e2a_1)) | 0;
|
|
305
303
|
result = imul(result, 31) + (this.f2a_1 == null ? 0 : getStringHashCode(this.f2a_1)) | 0;
|
|
306
|
-
result = imul(result, 31) + (this.g2a_1 == null ? 0 : this.g2a_1
|
|
304
|
+
result = imul(result, 31) + (this.g2a_1 == null ? 0 : getStringHashCode(this.g2a_1)) | 0;
|
|
305
|
+
result = imul(result, 31) + (this.h2a_1 == null ? 0 : getStringHashCode(this.h2a_1)) | 0;
|
|
306
|
+
result = imul(result, 31) + (this.i2a_1 == null ? 0 : this.i2a_1.hashCode()) | 0;
|
|
307
307
|
return result;
|
|
308
308
|
};
|
|
309
309
|
protoOf(GpxWaypoint).equals = function (other) {
|
|
@@ -311,38 +311,38 @@
|
|
|
311
311
|
return true;
|
|
312
312
|
if (!(other instanceof GpxWaypoint))
|
|
313
313
|
return false;
|
|
314
|
-
if (!equals(this.z29_1, other.z29_1))
|
|
315
|
-
return false;
|
|
316
|
-
if (!equals(this.a2a_1, other.a2a_1))
|
|
317
|
-
return false;
|
|
318
314
|
if (!equals(this.b2a_1, other.b2a_1))
|
|
319
315
|
return false;
|
|
320
|
-
if (!(this.c2a_1
|
|
316
|
+
if (!equals(this.c2a_1, other.c2a_1))
|
|
321
317
|
return false;
|
|
322
|
-
if (!(this.d2a_1
|
|
318
|
+
if (!equals(this.d2a_1, other.d2a_1))
|
|
323
319
|
return false;
|
|
324
320
|
if (!(this.e2a_1 == other.e2a_1))
|
|
325
321
|
return false;
|
|
326
322
|
if (!(this.f2a_1 == other.f2a_1))
|
|
327
323
|
return false;
|
|
328
|
-
if (!
|
|
324
|
+
if (!(this.g2a_1 == other.g2a_1))
|
|
325
|
+
return false;
|
|
326
|
+
if (!(this.h2a_1 == other.h2a_1))
|
|
327
|
+
return false;
|
|
328
|
+
if (!equals(this.i2a_1, other.i2a_1))
|
|
329
329
|
return false;
|
|
330
330
|
return true;
|
|
331
331
|
};
|
|
332
332
|
function GpxDocument(name, tracks, waypoints) {
|
|
333
333
|
name = name === VOID ? 'noname' : name;
|
|
334
334
|
waypoints = waypoints === VOID ? emptyList() : waypoints;
|
|
335
|
-
this.
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
335
|
+
this.j2a_1 = name;
|
|
336
|
+
this.k2a_1 = tracks;
|
|
337
|
+
this.l2a_1 = waypoints;
|
|
338
338
|
}
|
|
339
339
|
protoOf(GpxDocument).toString = function () {
|
|
340
|
-
return 'GpxDocument(name=' + this.
|
|
340
|
+
return 'GpxDocument(name=' + this.j2a_1 + ', tracks=' + toString_0(this.k2a_1) + ', waypoints=' + toString_0(this.l2a_1) + ')';
|
|
341
341
|
};
|
|
342
342
|
protoOf(GpxDocument).hashCode = function () {
|
|
343
|
-
var result = getStringHashCode(this.
|
|
344
|
-
result = imul(result, 31) + hashCode(this.
|
|
345
|
-
result = imul(result, 31) + hashCode(this.
|
|
343
|
+
var result = getStringHashCode(this.j2a_1);
|
|
344
|
+
result = imul(result, 31) + hashCode(this.k2a_1) | 0;
|
|
345
|
+
result = imul(result, 31) + hashCode(this.l2a_1) | 0;
|
|
346
346
|
return result;
|
|
347
347
|
};
|
|
348
348
|
protoOf(GpxDocument).equals = function (other) {
|
|
@@ -350,24 +350,24 @@
|
|
|
350
350
|
return true;
|
|
351
351
|
if (!(other instanceof GpxDocument))
|
|
352
352
|
return false;
|
|
353
|
-
if (!(this.
|
|
353
|
+
if (!(this.j2a_1 === other.j2a_1))
|
|
354
354
|
return false;
|
|
355
|
-
if (!equals(this.
|
|
355
|
+
if (!equals(this.k2a_1, other.k2a_1))
|
|
356
356
|
return false;
|
|
357
|
-
if (!equals(this.
|
|
357
|
+
if (!equals(this.l2a_1, other.l2a_1))
|
|
358
358
|
return false;
|
|
359
359
|
return true;
|
|
360
360
|
};
|
|
361
361
|
function Companion() {
|
|
362
362
|
}
|
|
363
|
-
protoOf(Companion).
|
|
363
|
+
protoOf(Companion).m2a = function (name, type, points, kind) {
|
|
364
364
|
return new GpxTrack(name, type, listOf(new GpxSegment(points)), kind);
|
|
365
365
|
};
|
|
366
|
-
protoOf(Companion).
|
|
366
|
+
protoOf(Companion).n2a = function (name, type, points, kind, $super) {
|
|
367
367
|
name = name === VOID ? null : name;
|
|
368
368
|
type = type === VOID ? null : type;
|
|
369
369
|
kind = kind === VOID ? GpxPathKind_TRACK_getInstance() : kind;
|
|
370
|
-
return $super === VOID ? this.
|
|
370
|
+
return $super === VOID ? this.m2a(name, type, points, kind) : $super.m2a.call(this, name, type, points, kind);
|
|
371
371
|
};
|
|
372
372
|
var Companion_instance_0;
|
|
373
373
|
function Companion_getInstance_0() {
|
|
@@ -376,13 +376,13 @@
|
|
|
376
376
|
function GpxTrack$points$delegate$lambda(this$0) {
|
|
377
377
|
return function () {
|
|
378
378
|
// Inline function 'kotlin.collections.flatMap' call
|
|
379
|
-
var tmp0 = this$0.
|
|
379
|
+
var tmp0 = this$0.q2a_1;
|
|
380
380
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
381
381
|
var destination = ArrayList_init_$Create$();
|
|
382
382
|
var _iterator__ex2g4s = tmp0.l();
|
|
383
383
|
while (_iterator__ex2g4s.m()) {
|
|
384
384
|
var element = _iterator__ex2g4s.n();
|
|
385
|
-
var list = element.
|
|
385
|
+
var list = element.v2a_1;
|
|
386
386
|
addAll(destination, list);
|
|
387
387
|
}
|
|
388
388
|
return destination;
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
}
|
|
391
391
|
function GpxTrack$_get_points_$ref_4x48pr() {
|
|
392
392
|
return constructCallableReference(function (p0) {
|
|
393
|
-
return p0.
|
|
393
|
+
return p0.w2a();
|
|
394
394
|
}, 1, 0, 8);
|
|
395
395
|
}
|
|
396
396
|
function GpxTrack(name, type, segments, kind, roadWidthM, highway) {
|
|
@@ -399,32 +399,32 @@
|
|
|
399
399
|
kind = kind === VOID ? GpxPathKind_TRACK_getInstance() : kind;
|
|
400
400
|
roadWidthM = roadWidthM === VOID ? null : roadWidthM;
|
|
401
401
|
highway = highway === VOID ? null : highway;
|
|
402
|
-
this.
|
|
403
|
-
this.
|
|
404
|
-
this.
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
407
|
-
this.
|
|
402
|
+
this.o2a_1 = name;
|
|
403
|
+
this.p2a_1 = type;
|
|
404
|
+
this.q2a_1 = segments;
|
|
405
|
+
this.r2a_1 = kind;
|
|
406
|
+
this.s2a_1 = roadWidthM;
|
|
407
|
+
this.t2a_1 = highway;
|
|
408
408
|
var tmp = this;
|
|
409
|
-
tmp.
|
|
409
|
+
tmp.u2a_1 = lazy(GpxTrack$points$delegate$lambda(this));
|
|
410
410
|
}
|
|
411
|
-
protoOf(GpxTrack).
|
|
412
|
-
var tmp0 = this.
|
|
411
|
+
protoOf(GpxTrack).w2a = function () {
|
|
412
|
+
var tmp0 = this.u2a_1;
|
|
413
413
|
var tmp = KProperty1;
|
|
414
414
|
// Inline function 'kotlin.getValue' call
|
|
415
415
|
getPropertyCallableRef('points', 1, tmp, GpxTrack$_get_points_$ref_4x48pr(), null);
|
|
416
416
|
return tmp0.q1();
|
|
417
417
|
};
|
|
418
418
|
protoOf(GpxTrack).toString = function () {
|
|
419
|
-
return 'GpxTrack(name=' + this.
|
|
419
|
+
return 'GpxTrack(name=' + this.o2a_1 + ', type=' + this.p2a_1 + ', segments=' + toString_0(this.q2a_1) + ', kind=' + this.r2a_1.toString() + ', roadWidthM=' + this.s2a_1 + ', highway=' + this.t2a_1 + ')';
|
|
420
420
|
};
|
|
421
421
|
protoOf(GpxTrack).hashCode = function () {
|
|
422
|
-
var result = this.
|
|
423
|
-
result = imul(result, 31) + (this.
|
|
424
|
-
result = imul(result, 31) + hashCode(this.
|
|
425
|
-
result = imul(result, 31) + this.
|
|
426
|
-
result = imul(result, 31) + (this.
|
|
427
|
-
result = imul(result, 31) + (this.
|
|
422
|
+
var result = this.o2a_1 == null ? 0 : getStringHashCode(this.o2a_1);
|
|
423
|
+
result = imul(result, 31) + (this.p2a_1 == null ? 0 : getStringHashCode(this.p2a_1)) | 0;
|
|
424
|
+
result = imul(result, 31) + hashCode(this.q2a_1) | 0;
|
|
425
|
+
result = imul(result, 31) + this.r2a_1.hashCode() | 0;
|
|
426
|
+
result = imul(result, 31) + (this.s2a_1 == null ? 0 : getNumberHashCode(this.s2a_1)) | 0;
|
|
427
|
+
result = imul(result, 31) + (this.t2a_1 == null ? 0 : getStringHashCode(this.t2a_1)) | 0;
|
|
428
428
|
return result;
|
|
429
429
|
};
|
|
430
430
|
protoOf(GpxTrack).equals = function (other) {
|
|
@@ -432,35 +432,35 @@
|
|
|
432
432
|
return true;
|
|
433
433
|
if (!(other instanceof GpxTrack))
|
|
434
434
|
return false;
|
|
435
|
-
if (!(this.
|
|
435
|
+
if (!(this.o2a_1 == other.o2a_1))
|
|
436
436
|
return false;
|
|
437
|
-
if (!(this.
|
|
437
|
+
if (!(this.p2a_1 == other.p2a_1))
|
|
438
438
|
return false;
|
|
439
|
-
if (!equals(this.
|
|
439
|
+
if (!equals(this.q2a_1, other.q2a_1))
|
|
440
440
|
return false;
|
|
441
|
-
if (!this.
|
|
441
|
+
if (!this.r2a_1.equals(other.r2a_1))
|
|
442
442
|
return false;
|
|
443
|
-
if (!equals(this.
|
|
443
|
+
if (!equals(this.s2a_1, other.s2a_1))
|
|
444
444
|
return false;
|
|
445
|
-
if (!(this.
|
|
445
|
+
if (!(this.t2a_1 == other.t2a_1))
|
|
446
446
|
return false;
|
|
447
447
|
return true;
|
|
448
448
|
};
|
|
449
449
|
function GpxSegment(points) {
|
|
450
|
-
this.
|
|
450
|
+
this.v2a_1 = points;
|
|
451
451
|
}
|
|
452
452
|
protoOf(GpxSegment).toString = function () {
|
|
453
|
-
return 'GpxSegment(points=' + toString_0(this.
|
|
453
|
+
return 'GpxSegment(points=' + toString_0(this.v2a_1) + ')';
|
|
454
454
|
};
|
|
455
455
|
protoOf(GpxSegment).hashCode = function () {
|
|
456
|
-
return hashCode(this.
|
|
456
|
+
return hashCode(this.v2a_1);
|
|
457
457
|
};
|
|
458
458
|
protoOf(GpxSegment).equals = function (other) {
|
|
459
459
|
if (this === other)
|
|
460
460
|
return true;
|
|
461
461
|
if (!(other instanceof GpxSegment))
|
|
462
462
|
return false;
|
|
463
|
-
if (!equals(this.
|
|
463
|
+
if (!equals(this.v2a_1, other.v2a_1))
|
|
464
464
|
return false;
|
|
465
465
|
return true;
|
|
466
466
|
};
|
|
@@ -473,31 +473,31 @@
|
|
|
473
473
|
powerW = powerW === VOID ? null : powerW;
|
|
474
474
|
roadWidthM = roadWidthM === VOID ? null : roadWidthM;
|
|
475
475
|
highway = highway === VOID ? null : highway;
|
|
476
|
-
this.
|
|
477
|
-
this.
|
|
478
|
-
this.
|
|
479
|
-
this.
|
|
480
|
-
this.
|
|
481
|
-
this.
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
476
|
+
this.x2a_1 = latitudeDeg;
|
|
477
|
+
this.y2a_1 = longitudeDeg;
|
|
478
|
+
this.z2a_1 = elevationM;
|
|
479
|
+
this.a2b_1 = timeEpochMs;
|
|
480
|
+
this.b2b_1 = heartRate;
|
|
481
|
+
this.c2b_1 = cadence;
|
|
482
|
+
this.d2b_1 = temperatureC;
|
|
483
|
+
this.e2b_1 = powerW;
|
|
484
|
+
this.f2b_1 = roadWidthM;
|
|
485
|
+
this.g2b_1 = highway;
|
|
486
486
|
}
|
|
487
487
|
protoOf(GpxTrackPoint).toString = function () {
|
|
488
|
-
return 'GpxTrackPoint(latitudeDeg=' + this.
|
|
488
|
+
return 'GpxTrackPoint(latitudeDeg=' + this.x2a_1 + ', longitudeDeg=' + this.y2a_1 + ', elevationM=' + this.z2a_1 + ', timeEpochMs=' + toString(this.a2b_1) + ', heartRate=' + this.b2b_1 + ', cadence=' + this.c2b_1 + ', temperatureC=' + this.d2b_1 + ', powerW=' + this.e2b_1 + ', roadWidthM=' + this.f2b_1 + ', highway=' + this.g2b_1 + ')';
|
|
489
489
|
};
|
|
490
490
|
protoOf(GpxTrackPoint).hashCode = function () {
|
|
491
|
-
var result = getNumberHashCode(this.
|
|
492
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
493
|
-
result = imul(result, 31) + (this.
|
|
494
|
-
result = imul(result, 31) + (this.
|
|
495
|
-
result = imul(result, 31) + (this.
|
|
496
|
-
result = imul(result, 31) + (this.
|
|
497
|
-
result = imul(result, 31) + (this.b2b_1 == null ? 0 : getNumberHashCode(this.b2b_1)) | 0;
|
|
498
|
-
result = imul(result, 31) + (this.c2b_1 == null ? 0 : getNumberHashCode(this.c2b_1)) | 0;
|
|
491
|
+
var result = getNumberHashCode(this.x2a_1);
|
|
492
|
+
result = imul(result, 31) + getNumberHashCode(this.y2a_1) | 0;
|
|
493
|
+
result = imul(result, 31) + (this.z2a_1 == null ? 0 : getNumberHashCode(this.z2a_1)) | 0;
|
|
494
|
+
result = imul(result, 31) + (this.a2b_1 == null ? 0 : this.a2b_1.hashCode()) | 0;
|
|
495
|
+
result = imul(result, 31) + (this.b2b_1 == null ? 0 : this.b2b_1) | 0;
|
|
496
|
+
result = imul(result, 31) + (this.c2b_1 == null ? 0 : this.c2b_1) | 0;
|
|
499
497
|
result = imul(result, 31) + (this.d2b_1 == null ? 0 : getNumberHashCode(this.d2b_1)) | 0;
|
|
500
|
-
result = imul(result, 31) + (this.e2b_1 == null ? 0 :
|
|
498
|
+
result = imul(result, 31) + (this.e2b_1 == null ? 0 : getNumberHashCode(this.e2b_1)) | 0;
|
|
499
|
+
result = imul(result, 31) + (this.f2b_1 == null ? 0 : getNumberHashCode(this.f2b_1)) | 0;
|
|
500
|
+
result = imul(result, 31) + (this.g2b_1 == null ? 0 : getStringHashCode(this.g2b_1)) | 0;
|
|
501
501
|
return result;
|
|
502
502
|
};
|
|
503
503
|
protoOf(GpxTrackPoint).equals = function (other) {
|
|
@@ -505,25 +505,25 @@
|
|
|
505
505
|
return true;
|
|
506
506
|
if (!(other instanceof GpxTrackPoint))
|
|
507
507
|
return false;
|
|
508
|
-
if (!equals(this.v2a_1, other.v2a_1))
|
|
509
|
-
return false;
|
|
510
|
-
if (!equals(this.w2a_1, other.w2a_1))
|
|
511
|
-
return false;
|
|
512
508
|
if (!equals(this.x2a_1, other.x2a_1))
|
|
513
509
|
return false;
|
|
514
510
|
if (!equals(this.y2a_1, other.y2a_1))
|
|
515
511
|
return false;
|
|
516
|
-
if (!(this.z2a_1
|
|
512
|
+
if (!equals(this.z2a_1, other.z2a_1))
|
|
517
513
|
return false;
|
|
518
|
-
if (!(this.a2b_1
|
|
514
|
+
if (!equals(this.a2b_1, other.a2b_1))
|
|
519
515
|
return false;
|
|
520
|
-
if (!
|
|
516
|
+
if (!(this.b2b_1 == other.b2b_1))
|
|
521
517
|
return false;
|
|
522
|
-
if (!
|
|
518
|
+
if (!(this.c2b_1 == other.c2b_1))
|
|
523
519
|
return false;
|
|
524
520
|
if (!equals(this.d2b_1, other.d2b_1))
|
|
525
521
|
return false;
|
|
526
|
-
if (!(this.e2b_1
|
|
522
|
+
if (!equals(this.e2b_1, other.e2b_1))
|
|
523
|
+
return false;
|
|
524
|
+
if (!equals(this.f2b_1, other.f2b_1))
|
|
525
|
+
return false;
|
|
526
|
+
if (!(this.g2b_1 == other.g2b_1))
|
|
527
527
|
return false;
|
|
528
528
|
return true;
|
|
529
529
|
};
|
|
@@ -555,11 +555,11 @@
|
|
|
555
555
|
var scale = point - digits.length | 0;
|
|
556
556
|
var tmp;
|
|
557
557
|
if (0 <= scale ? scale <= 22 : false) {
|
|
558
|
-
tmp = toNumber(significand) * $this.
|
|
558
|
+
tmp = toNumber(significand) * $this.k2b_1[scale];
|
|
559
559
|
} else {
|
|
560
560
|
var containsArg = -scale | 0;
|
|
561
561
|
if (1 <= containsArg ? containsArg <= 22 : false) {
|
|
562
|
-
tmp = toNumber(significand) / $this.
|
|
562
|
+
tmp = toNumber(significand) / $this.k2b_1[-scale | 0];
|
|
563
563
|
} else {
|
|
564
564
|
tmp = null;
|
|
565
565
|
}
|
|
@@ -587,14 +587,14 @@
|
|
|
587
587
|
}
|
|
588
588
|
function GpxDecimal() {
|
|
589
589
|
GpxDecimal_instance = this;
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
592
|
-
this.
|
|
590
|
+
this.h2b_1 = 18;
|
|
591
|
+
this.i2b_1 = new Long(0, 2097152);
|
|
592
|
+
this.j2b_1 = 22;
|
|
593
593
|
var tmp = this;
|
|
594
594
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
595
|
-
tmp.
|
|
595
|
+
tmp.k2b_1 = new Float64Array([1.0, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18, 1.0E19, 1.0E20, 1.0E21, 1.0E22]);
|
|
596
596
|
}
|
|
597
|
-
protoOf(GpxDecimal).
|
|
597
|
+
protoOf(GpxDecimal).l2b = function (value) {
|
|
598
598
|
if (!isFinite(value))
|
|
599
599
|
return value.toString();
|
|
600
600
|
var text = value.toString();
|
|
@@ -738,9 +738,9 @@
|
|
|
738
738
|
var GpxPowerSource_COMPUTED_OR_INPUT_instance;
|
|
739
739
|
function Companion_0() {
|
|
740
740
|
Companion_instance_1 = this;
|
|
741
|
-
this.
|
|
741
|
+
this.m2b_1 = GpxPowerSource_INPUT_getInstance();
|
|
742
742
|
}
|
|
743
|
-
protoOf(Companion_0).
|
|
743
|
+
protoOf(Companion_0).n2b = function (value) {
|
|
744
744
|
var tmp0 = get_entries_0();
|
|
745
745
|
var tmp$ret$0;
|
|
746
746
|
$l$block: {
|
|
@@ -748,7 +748,7 @@
|
|
|
748
748
|
var _iterator__ex2g4s = tmp0.l();
|
|
749
749
|
while (_iterator__ex2g4s.m()) {
|
|
750
750
|
var element = _iterator__ex2g4s.n();
|
|
751
|
-
if (element.
|
|
751
|
+
if (element.q2b() === value) {
|
|
752
752
|
tmp$ret$0 = element;
|
|
753
753
|
break $l$block;
|
|
754
754
|
}
|
|
@@ -757,7 +757,7 @@
|
|
|
757
757
|
}
|
|
758
758
|
return tmp$ret$0;
|
|
759
759
|
};
|
|
760
|
-
protoOf(Companion_0).
|
|
760
|
+
protoOf(Companion_0).r2b = function () {
|
|
761
761
|
// Inline function 'kotlin.collections.map' call
|
|
762
762
|
var this_0 = get_entries_0();
|
|
763
763
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -765,7 +765,7 @@
|
|
|
765
765
|
var _iterator__ex2g4s = this_0.l();
|
|
766
766
|
while (_iterator__ex2g4s.m()) {
|
|
767
767
|
var item = _iterator__ex2g4s.n();
|
|
768
|
-
var tmp$ret$2 = item.
|
|
768
|
+
var tmp$ret$2 = item.q2b();
|
|
769
769
|
destination.k(tmp$ret$2);
|
|
770
770
|
}
|
|
771
771
|
return destination;
|
|
@@ -789,7 +789,7 @@
|
|
|
789
789
|
function GpxPowerSource(name, ordinal) {
|
|
790
790
|
Enum.call(this, name, ordinal);
|
|
791
791
|
}
|
|
792
|
-
protoOf(GpxPowerSource).
|
|
792
|
+
protoOf(GpxPowerSource).q2b = function () {
|
|
793
793
|
var tmp;
|
|
794
794
|
switch (this.y1_1) {
|
|
795
795
|
case 0:
|
|
@@ -820,10 +820,10 @@
|
|
|
820
820
|
startTime = startTime === VOID ? null : startTime;
|
|
821
821
|
powerSource = powerSource === VOID ? GpxPowerSource_INPUT_getInstance() : powerSource;
|
|
822
822
|
var startTimeMs = startTime == null ? null : startTime.gh();
|
|
823
|
-
var t0 = _this__u8e3s4.
|
|
823
|
+
var t0 = _this__u8e3s4.s2b_1 === 0 || isNaN_0(_this__u8e3s4.u2b(0)) ? 0.0 : _this__u8e3s4.u2b(0);
|
|
824
824
|
// Inline function 'kotlin.collections.List' call
|
|
825
825
|
// Inline function 'kotlin.collections.MutableList' call
|
|
826
|
-
var size = _this__u8e3s4.
|
|
826
|
+
var size = _this__u8e3s4.s2b_1;
|
|
827
827
|
var list = ArrayList_init_$Create$_0(size);
|
|
828
828
|
// Inline function 'kotlin.repeat' call
|
|
829
829
|
var inductionVariable = 0;
|
|
@@ -831,10 +831,10 @@
|
|
|
831
831
|
do {
|
|
832
832
|
var index = inductionVariable;
|
|
833
833
|
inductionVariable = inductionVariable + 1 | 0;
|
|
834
|
-
var tmp = _this__u8e3s4.
|
|
835
|
-
var tmp_0 = _this__u8e3s4.
|
|
834
|
+
var tmp = _this__u8e3s4.v2b(index) * 57.29577951308232;
|
|
835
|
+
var tmp_0 = _this__u8e3s4.w2b(index) * 57.29577951308232;
|
|
836
836
|
// Inline function 'kotlin.takeUnless' call
|
|
837
|
-
var this_0 = _this__u8e3s4.
|
|
837
|
+
var this_0 = _this__u8e3s4.x2b(index);
|
|
838
838
|
var tmp_1;
|
|
839
839
|
if (!isNaN_0(this_0)) {
|
|
840
840
|
tmp_1 = this_0;
|
|
@@ -843,13 +843,13 @@
|
|
|
843
843
|
}
|
|
844
844
|
var tmp_2 = tmp_1;
|
|
845
845
|
var tmp_3;
|
|
846
|
-
if (isNaN_0(_this__u8e3s4.
|
|
846
|
+
if (isNaN_0(_this__u8e3s4.u2b(index))) {
|
|
847
847
|
tmp_3 = null;
|
|
848
848
|
} else if (!(startTimeMs == null)) {
|
|
849
|
-
tmp_3 = add(startTimeMs, roundToLong(_this__u8e3s4.
|
|
849
|
+
tmp_3 = add(startTimeMs, roundToLong(_this__u8e3s4.u2b(index) - t0));
|
|
850
850
|
} else {
|
|
851
851
|
// Inline function 'kotlin.takeIf' call
|
|
852
|
-
var this_1 = numberToLong(_this__u8e3s4.
|
|
852
|
+
var this_1 = numberToLong(_this__u8e3s4.u2b(index));
|
|
853
853
|
var tmp_4;
|
|
854
854
|
if (compare(this_1, new Long(0, 0)) > 0) {
|
|
855
855
|
tmp_4 = this_1;
|
|
@@ -860,7 +860,7 @@
|
|
|
860
860
|
}
|
|
861
861
|
var tmp_5 = tmp_3;
|
|
862
862
|
// Inline function 'kotlin.takeUnless' call
|
|
863
|
-
var this_2 = _this__u8e3s4.
|
|
863
|
+
var this_2 = _this__u8e3s4.y2b(index);
|
|
864
864
|
var tmp_6;
|
|
865
865
|
if (!isNaN_0(this_2)) {
|
|
866
866
|
tmp_6 = this_2;
|
|
@@ -870,7 +870,7 @@
|
|
|
870
870
|
var tmp0_safe_receiver = tmp_6;
|
|
871
871
|
var tmp_7 = tmp0_safe_receiver == null ? null : roundToInt(tmp0_safe_receiver);
|
|
872
872
|
// Inline function 'kotlin.takeUnless' call
|
|
873
|
-
var this_3 = _this__u8e3s4.
|
|
873
|
+
var this_3 = _this__u8e3s4.z2b(index);
|
|
874
874
|
var tmp_8;
|
|
875
875
|
if (!isNaN_0(this_3)) {
|
|
876
876
|
tmp_8 = this_3;
|
|
@@ -880,7 +880,7 @@
|
|
|
880
880
|
var tmp1_safe_receiver = tmp_8;
|
|
881
881
|
var tmp_9 = tmp1_safe_receiver == null ? null : roundToInt(tmp1_safe_receiver);
|
|
882
882
|
// Inline function 'kotlin.takeUnless' call
|
|
883
|
-
var this_4 = _this__u8e3s4.
|
|
883
|
+
var this_4 = _this__u8e3s4.a2c(index);
|
|
884
884
|
var tmp_10;
|
|
885
885
|
if (!isNaN_0(this_4)) {
|
|
886
886
|
tmp_10 = this_4;
|
|
@@ -893,11 +893,11 @@
|
|
|
893
893
|
}
|
|
894
894
|
while (inductionVariable < size);
|
|
895
895
|
var points = list;
|
|
896
|
-
return Companion_instance_0.
|
|
896
|
+
return Companion_instance_0.n2a(name, type, points);
|
|
897
897
|
}
|
|
898
898
|
function powerAt(_this__u8e3s4, i, source) {
|
|
899
899
|
// Inline function 'kotlin.takeUnless' call
|
|
900
|
-
var this_0 = _this__u8e3s4.
|
|
900
|
+
var this_0 = _this__u8e3s4.b2c(i);
|
|
901
901
|
var tmp;
|
|
902
902
|
if (!isNaN_0(this_0)) {
|
|
903
903
|
tmp = this_0;
|
|
@@ -906,7 +906,7 @@
|
|
|
906
906
|
}
|
|
907
907
|
var input = tmp;
|
|
908
908
|
// Inline function 'kotlin.takeUnless' call
|
|
909
|
-
var this_1 = _this__u8e3s4.
|
|
909
|
+
var this_1 = _this__u8e3s4.c2c(i);
|
|
910
910
|
var tmp_0;
|
|
911
911
|
if (!(isNaN_0(this_1) || this_1 === 0.0)) {
|
|
912
912
|
tmp_0 = this_1;
|
|
@@ -946,7 +946,7 @@
|
|
|
946
946
|
function parseOnce($this, xml) {
|
|
947
947
|
var tmp;
|
|
948
948
|
try {
|
|
949
|
-
tmp = get_xmlStreaming().
|
|
949
|
+
tmp = get_xmlStreaming().a1t(xml);
|
|
950
950
|
} catch ($p) {
|
|
951
951
|
var tmp_0;
|
|
952
952
|
if ($p instanceof IllegalArgumentException) {
|
|
@@ -980,7 +980,7 @@
|
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
finally {
|
|
983
|
-
reader.
|
|
983
|
+
reader.i1s();
|
|
984
984
|
}
|
|
985
985
|
return tmp_1;
|
|
986
986
|
}
|
|
@@ -988,8 +988,8 @@
|
|
|
988
988
|
while (reader.m()) {
|
|
989
989
|
var ev = reader.n();
|
|
990
990
|
if (ev.equals(EventType_START_ELEMENT_getInstance())) {
|
|
991
|
-
if (!(reader.
|
|
992
|
-
throw IllegalArgumentException_init_$Create$_0('Invalid GPX file: missing gpx root element (found ' + reader.
|
|
991
|
+
if (!(reader.v1r() === 'gpx')) {
|
|
992
|
+
throw IllegalArgumentException_init_$Create$_0('Invalid GPX file: missing gpx root element (found ' + reader.v1r() + ')');
|
|
993
993
|
}
|
|
994
994
|
return parseGpxRoot($this, reader);
|
|
995
995
|
}
|
|
@@ -1006,7 +1006,7 @@
|
|
|
1006
1006
|
var ev = reader.n();
|
|
1007
1007
|
switch (ev.y1_1) {
|
|
1008
1008
|
case 1:
|
|
1009
|
-
switch (reader.
|
|
1009
|
+
switch (reader.v1r()) {
|
|
1010
1010
|
case 'metadata':
|
|
1011
1011
|
var metaName = parseMetadataName($this, reader);
|
|
1012
1012
|
if (!(metaName == null))
|
|
@@ -1041,7 +1041,7 @@
|
|
|
1041
1041
|
var ev = reader.n();
|
|
1042
1042
|
switch (ev.y1_1) {
|
|
1043
1043
|
case 1:
|
|
1044
|
-
if (reader.
|
|
1044
|
+
if (reader.v1r() === 'name' && name == null) {
|
|
1045
1045
|
// Inline function 'kotlin.text.trim' call
|
|
1046
1046
|
var this_0 = readElementText($this, reader);
|
|
1047
1047
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
@@ -1077,7 +1077,7 @@
|
|
|
1077
1077
|
var ev = reader.n();
|
|
1078
1078
|
switch (ev.y1_1) {
|
|
1079
1079
|
case 1:
|
|
1080
|
-
switch (reader.
|
|
1080
|
+
switch (reader.v1r()) {
|
|
1081
1081
|
case 'name':
|
|
1082
1082
|
// Inline function 'kotlin.text.trim' call
|
|
1083
1083
|
|
|
@@ -1127,12 +1127,12 @@
|
|
|
1127
1127
|
|
|
1128
1128
|
break;
|
|
1129
1129
|
case 2:
|
|
1130
|
-
return new GpxTrack(name, type, segments, VOID, trackExt.
|
|
1130
|
+
return new GpxTrack(name, type, segments, VOID, trackExt.h2c_1);
|
|
1131
1131
|
default:
|
|
1132
1132
|
break;
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
|
-
return new GpxTrack(name, type, segments, VOID, trackExt.
|
|
1135
|
+
return new GpxTrack(name, type, segments, VOID, trackExt.h2c_1);
|
|
1136
1136
|
}
|
|
1137
1137
|
function parseRoute($this, reader) {
|
|
1138
1138
|
var name = null;
|
|
@@ -1143,7 +1143,7 @@
|
|
|
1143
1143
|
var ev = reader.n();
|
|
1144
1144
|
switch (ev.y1_1) {
|
|
1145
1145
|
case 1:
|
|
1146
|
-
switch (reader.
|
|
1146
|
+
switch (reader.v1r()) {
|
|
1147
1147
|
case 'name':
|
|
1148
1148
|
// Inline function 'kotlin.text.trim' call
|
|
1149
1149
|
|
|
@@ -1204,7 +1204,7 @@
|
|
|
1204
1204
|
var ev = reader.n();
|
|
1205
1205
|
switch (ev.y1_1) {
|
|
1206
1206
|
case 1:
|
|
1207
|
-
if (reader.
|
|
1207
|
+
if (reader.v1r() === 'trkpt') {
|
|
1208
1208
|
points.k(parseTrackPoint($this, reader));
|
|
1209
1209
|
} else {
|
|
1210
1210
|
skipElement($this, reader);
|
|
@@ -1220,8 +1220,8 @@
|
|
|
1220
1220
|
return new GpxSegment(points);
|
|
1221
1221
|
}
|
|
1222
1222
|
function parseTrackPoint($this, reader) {
|
|
1223
|
-
var latStr = reader.
|
|
1224
|
-
var lonStr = reader.
|
|
1223
|
+
var latStr = reader.g1s(null, 'lat');
|
|
1224
|
+
var lonStr = reader.g1s(null, 'lon');
|
|
1225
1225
|
var tmp;
|
|
1226
1226
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
1227
1227
|
if (latStr == null || isBlank(latStr)) {
|
|
@@ -1256,7 +1256,7 @@
|
|
|
1256
1256
|
var ev = reader.n();
|
|
1257
1257
|
switch (ev.y1_1) {
|
|
1258
1258
|
case 1:
|
|
1259
|
-
switch (reader.
|
|
1259
|
+
switch (reader.v1r()) {
|
|
1260
1260
|
case 'ele':
|
|
1261
1261
|
// Inline function 'kotlin.text.trim' call
|
|
1262
1262
|
|
|
@@ -1290,16 +1290,16 @@
|
|
|
1290
1290
|
|
|
1291
1291
|
break;
|
|
1292
1292
|
case 2:
|
|
1293
|
-
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.
|
|
1293
|
+
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.d2c_1, ext.e2c_1, ext.f2c_1, ext.g2c_1, ext.h2c_1, ext.i2c_1);
|
|
1294
1294
|
default:
|
|
1295
1295
|
break;
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
1298
|
-
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.
|
|
1298
|
+
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.d2c_1, ext.e2c_1, ext.f2c_1, ext.g2c_1, ext.h2c_1, ext.i2c_1);
|
|
1299
1299
|
}
|
|
1300
1300
|
function parseWaypoint($this, reader) {
|
|
1301
|
-
var latStr = reader.
|
|
1302
|
-
var lonStr = reader.
|
|
1301
|
+
var latStr = reader.g1s(null, 'lat');
|
|
1302
|
+
var lonStr = reader.g1s(null, 'lon');
|
|
1303
1303
|
var tmp;
|
|
1304
1304
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
1305
1305
|
if (latStr == null || isBlank(latStr)) {
|
|
@@ -1337,7 +1337,7 @@
|
|
|
1337
1337
|
var ev = reader.n();
|
|
1338
1338
|
switch (ev.y1_1) {
|
|
1339
1339
|
case 1:
|
|
1340
|
-
switch (reader.
|
|
1340
|
+
switch (reader.v1r()) {
|
|
1341
1341
|
case 'ele':
|
|
1342
1342
|
// Inline function 'kotlin.text.trim' call
|
|
1343
1343
|
|
|
@@ -1452,7 +1452,7 @@
|
|
|
1452
1452
|
var ev = reader.n();
|
|
1453
1453
|
switch (ev.y1_1) {
|
|
1454
1454
|
case 1:
|
|
1455
|
-
var ln = reader.
|
|
1455
|
+
var ln = reader.v1r();
|
|
1456
1456
|
// Inline function 'kotlin.text.lowercase' call
|
|
1457
1457
|
|
|
1458
1458
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1465,8 +1465,8 @@
|
|
|
1465
1465
|
else {
|
|
1466
1466
|
// Inline function 'kotlin.let' call
|
|
1467
1467
|
var tmp = ext;
|
|
1468
|
-
var tmp0_elvis_lhs = ext.
|
|
1469
|
-
tmp.
|
|
1468
|
+
var tmp0_elvis_lhs = ext.g2c_1;
|
|
1469
|
+
tmp.g2c_1 = tmp0_elvis_lhs == null ? tmp2_safe_receiver : tmp0_elvis_lhs;
|
|
1470
1470
|
}
|
|
1471
1471
|
|
|
1472
1472
|
break;
|
|
@@ -1477,8 +1477,8 @@
|
|
|
1477
1477
|
null;
|
|
1478
1478
|
else {
|
|
1479
1479
|
// Inline function 'kotlin.let' call
|
|
1480
|
-
if (ext.
|
|
1481
|
-
ext.
|
|
1480
|
+
if (ext.d2c_1 == null)
|
|
1481
|
+
ext.d2c_1 = numberToInt(tmp3_safe_receiver);
|
|
1482
1482
|
}
|
|
1483
1483
|
|
|
1484
1484
|
break;
|
|
@@ -1489,8 +1489,8 @@
|
|
|
1489
1489
|
null;
|
|
1490
1490
|
else {
|
|
1491
1491
|
// Inline function 'kotlin.let' call
|
|
1492
|
-
if (ext.
|
|
1493
|
-
ext.
|
|
1492
|
+
if (ext.e2c_1 == null)
|
|
1493
|
+
ext.e2c_1 = numberToInt(tmp4_safe_receiver);
|
|
1494
1494
|
}
|
|
1495
1495
|
|
|
1496
1496
|
break;
|
|
@@ -1503,8 +1503,8 @@
|
|
|
1503
1503
|
else {
|
|
1504
1504
|
// Inline function 'kotlin.let' call
|
|
1505
1505
|
var tmp_0 = ext;
|
|
1506
|
-
var tmp0_elvis_lhs_0 = ext.
|
|
1507
|
-
tmp_0.
|
|
1506
|
+
var tmp0_elvis_lhs_0 = ext.f2c_1;
|
|
1507
|
+
tmp_0.f2c_1 = tmp0_elvis_lhs_0 == null ? tmp5_safe_receiver : tmp0_elvis_lhs_0;
|
|
1508
1508
|
}
|
|
1509
1509
|
|
|
1510
1510
|
break;
|
|
@@ -1515,8 +1515,8 @@
|
|
|
1515
1515
|
else {
|
|
1516
1516
|
// Inline function 'kotlin.let' call
|
|
1517
1517
|
var tmp_1 = ext;
|
|
1518
|
-
var tmp0_elvis_lhs_1 = ext.
|
|
1519
|
-
tmp_1.
|
|
1518
|
+
var tmp0_elvis_lhs_1 = ext.h2c_1;
|
|
1519
|
+
tmp_1.h2c_1 = tmp0_elvis_lhs_1 == null ? tmp6_safe_receiver : tmp0_elvis_lhs_1;
|
|
1520
1520
|
}
|
|
1521
1521
|
|
|
1522
1522
|
break;
|
|
@@ -1529,13 +1529,13 @@
|
|
|
1529
1529
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1530
1530
|
|
|
1531
1531
|
if (charSequenceLength(text) > 0) {
|
|
1532
|
-
tmp_2 = ext.
|
|
1532
|
+
tmp_2 = ext.i2c_1 == null;
|
|
1533
1533
|
} else {
|
|
1534
1534
|
tmp_2 = false;
|
|
1535
1535
|
}
|
|
1536
1536
|
|
|
1537
1537
|
if (tmp_2)
|
|
1538
|
-
ext.
|
|
1538
|
+
ext.i2c_1 = text;
|
|
1539
1539
|
break;
|
|
1540
1540
|
default:
|
|
1541
1541
|
parseExtensions($this, reader, ext);
|
|
@@ -1559,7 +1559,7 @@
|
|
|
1559
1559
|
case 5:
|
|
1560
1560
|
case 9:
|
|
1561
1561
|
case 8:
|
|
1562
|
-
sb.x6(reader.
|
|
1562
|
+
sb.x6(reader.a1s());
|
|
1563
1563
|
break;
|
|
1564
1564
|
case 1:
|
|
1565
1565
|
skipElement($this, reader);
|
|
@@ -1621,16 +1621,16 @@
|
|
|
1621
1621
|
powerW = powerW === VOID ? null : powerW;
|
|
1622
1622
|
roadWidthM = roadWidthM === VOID ? null : roadWidthM;
|
|
1623
1623
|
highway = highway === VOID ? null : highway;
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1627
|
-
this.
|
|
1628
|
-
this.
|
|
1629
|
-
this.
|
|
1624
|
+
this.d2c_1 = heartRate;
|
|
1625
|
+
this.e2c_1 = cadence;
|
|
1626
|
+
this.f2c_1 = temperatureC;
|
|
1627
|
+
this.g2c_1 = powerW;
|
|
1628
|
+
this.h2c_1 = roadWidthM;
|
|
1629
|
+
this.i2c_1 = highway;
|
|
1630
1630
|
}
|
|
1631
1631
|
function GpxParser() {
|
|
1632
1632
|
}
|
|
1633
|
-
protoOf(GpxParser).
|
|
1633
|
+
protoOf(GpxParser).j2c = function (xml, repairOnFailure) {
|
|
1634
1634
|
var tmp;
|
|
1635
1635
|
try {
|
|
1636
1636
|
tmp = parseOnce(this, xml);
|
|
@@ -1640,7 +1640,7 @@
|
|
|
1640
1640
|
var firstFailure = $p;
|
|
1641
1641
|
if (!repairOnFailure)
|
|
1642
1642
|
throw firstFailure;
|
|
1643
|
-
var repaired = GpxXmlRepair_getInstance().
|
|
1643
|
+
var repaired = GpxXmlRepair_getInstance().n2c(xml);
|
|
1644
1644
|
var tmp_1;
|
|
1645
1645
|
try {
|
|
1646
1646
|
tmp_1 = parseOnce(this, repaired);
|
|
@@ -1661,9 +1661,9 @@
|
|
|
1661
1661
|
}
|
|
1662
1662
|
return tmp;
|
|
1663
1663
|
};
|
|
1664
|
-
protoOf(GpxParser).
|
|
1664
|
+
protoOf(GpxParser).o2c = function (xml, repairOnFailure, $super) {
|
|
1665
1665
|
repairOnFailure = repairOnFailure === VOID ? true : repairOnFailure;
|
|
1666
|
-
return $super === VOID ? this.
|
|
1666
|
+
return $super === VOID ? this.j2c(xml, repairOnFailure) : $super.j2c.call(this, xml, repairOnFailure);
|
|
1667
1667
|
};
|
|
1668
1668
|
var GpxParser_instance;
|
|
1669
1669
|
function GpxParser_getInstance() {
|
|
@@ -1681,7 +1681,7 @@
|
|
|
1681
1681
|
var PLAUSIBLE_ROAD_WIDTH_M;
|
|
1682
1682
|
function firstTrackAsPath(_this__u8e3s4) {
|
|
1683
1683
|
_init_properties_GpxToPath_kt__pb67h9();
|
|
1684
|
-
var tmp0_elvis_lhs = firstOrNull(_this__u8e3s4.
|
|
1684
|
+
var tmp0_elvis_lhs = firstOrNull(_this__u8e3s4.k2a_1);
|
|
1685
1685
|
var tmp;
|
|
1686
1686
|
if (tmp0_elvis_lhs == null) {
|
|
1687
1687
|
// Inline function 'kotlin.error' call
|
|
@@ -1697,16 +1697,16 @@
|
|
|
1697
1697
|
kinds = kinds === VOID ? get_ALL_KINDS() : kinds;
|
|
1698
1698
|
_init_properties_GpxToPath_kt__pb67h9();
|
|
1699
1699
|
// Inline function 'kotlin.collections.filter' call
|
|
1700
|
-
var tmp0 = _this__u8e3s4.
|
|
1700
|
+
var tmp0 = _this__u8e3s4.k2a_1;
|
|
1701
1701
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1702
1702
|
var destination = ArrayList_init_$Create$();
|
|
1703
1703
|
var _iterator__ex2g4s = tmp0.l();
|
|
1704
1704
|
while (_iterator__ex2g4s.m()) {
|
|
1705
1705
|
var element = _iterator__ex2g4s.n();
|
|
1706
1706
|
var tmp;
|
|
1707
|
-
if (kinds.m1(element.
|
|
1707
|
+
if (kinds.m1(element.r2a_1)) {
|
|
1708
1708
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1709
|
-
tmp = !element.
|
|
1709
|
+
tmp = !element.w2a().r();
|
|
1710
1710
|
} else {
|
|
1711
1711
|
tmp = false;
|
|
1712
1712
|
}
|
|
@@ -1729,13 +1729,13 @@
|
|
|
1729
1729
|
kinds = kinds === VOID ? get_ALL_KINDS() : kinds;
|
|
1730
1730
|
_init_properties_GpxToPath_kt__pb67h9();
|
|
1731
1731
|
// Inline function 'kotlin.collections.filter' call
|
|
1732
|
-
var tmp0 = _this__u8e3s4.
|
|
1732
|
+
var tmp0 = _this__u8e3s4.k2a_1;
|
|
1733
1733
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1734
1734
|
var destination = ArrayList_init_$Create$();
|
|
1735
1735
|
var _iterator__ex2g4s = tmp0.l();
|
|
1736
1736
|
while (_iterator__ex2g4s.m()) {
|
|
1737
1737
|
var element = _iterator__ex2g4s.n();
|
|
1738
|
-
if (kinds.m1(element.
|
|
1738
|
+
if (kinds.m1(element.r2a_1)) {
|
|
1739
1739
|
destination.k(element);
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
@@ -1746,13 +1746,13 @@
|
|
|
1746
1746
|
while (_iterator__ex2g4s_0.m()) {
|
|
1747
1747
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
1748
1748
|
// Inline function 'kotlin.collections.map' call
|
|
1749
|
-
var this_0 = element_0.
|
|
1749
|
+
var this_0 = element_0.q2a_1;
|
|
1750
1750
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1751
1751
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1752
1752
|
var _iterator__ex2g4s_1 = this_0.l();
|
|
1753
1753
|
while (_iterator__ex2g4s_1.m()) {
|
|
1754
1754
|
var item = _iterator__ex2g4s_1.n();
|
|
1755
|
-
var tmp$ret$8 = to(element_0.
|
|
1755
|
+
var tmp$ret$8 = to(element_0.s2a_1, item);
|
|
1756
1756
|
destination_1.k(tmp$ret$8);
|
|
1757
1757
|
}
|
|
1758
1758
|
var list = destination_1;
|
|
@@ -1765,7 +1765,7 @@
|
|
|
1765
1765
|
while (_iterator__ex2g4s_2.m()) {
|
|
1766
1766
|
var element_1 = _iterator__ex2g4s_2.n();
|
|
1767
1767
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1768
|
-
if (!element_1.ld_1.
|
|
1768
|
+
if (!element_1.ld_1.v2a_1.r()) {
|
|
1769
1769
|
destination_2.k(element_1);
|
|
1770
1770
|
}
|
|
1771
1771
|
}
|
|
@@ -1784,11 +1784,11 @@
|
|
|
1784
1784
|
}
|
|
1785
1785
|
function toPath(_this__u8e3s4) {
|
|
1786
1786
|
_init_properties_GpxToPath_kt__pb67h9();
|
|
1787
|
-
return pointsToPath(_this__u8e3s4.
|
|
1787
|
+
return pointsToPath(_this__u8e3s4.w2a(), _this__u8e3s4.s2a_1);
|
|
1788
1788
|
}
|
|
1789
1789
|
function toPath_0(_this__u8e3s4, trackRoadWidthM) {
|
|
1790
1790
|
_init_properties_GpxToPath_kt__pb67h9();
|
|
1791
|
-
return pointsToPath(_this__u8e3s4.
|
|
1791
|
+
return pointsToPath(_this__u8e3s4.v2a_1, trackRoadWidthM);
|
|
1792
1792
|
}
|
|
1793
1793
|
function pointsToPath(points, trackRoadWidthM) {
|
|
1794
1794
|
trackRoadWidthM = trackRoadWidthM === VOID ? null : trackRoadWidthM;
|
|
@@ -1800,28 +1800,28 @@
|
|
|
1800
1800
|
var i = index;
|
|
1801
1801
|
index = index + 1 | 0;
|
|
1802
1802
|
var p = iterator.n();
|
|
1803
|
-
path.
|
|
1804
|
-
path.
|
|
1805
|
-
var tmp0_elvis_lhs = p.
|
|
1806
|
-
path.
|
|
1807
|
-
var tmp1_elvis_lhs = p.
|
|
1808
|
-
path.
|
|
1809
|
-
var tmp2_elvis_lhs = p.
|
|
1810
|
-
path.
|
|
1811
|
-
var tmp3_safe_receiver = p.
|
|
1803
|
+
path.p2c(i, p.x2a_1 * 0.017453292519943295);
|
|
1804
|
+
path.q2c(i, p.y2a_1 * 0.017453292519943295);
|
|
1805
|
+
var tmp0_elvis_lhs = p.z2a_1;
|
|
1806
|
+
path.r2c(i, tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs);
|
|
1807
|
+
var tmp1_elvis_lhs = p.a2b_1;
|
|
1808
|
+
path.s2c(i, toNumber(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs));
|
|
1809
|
+
var tmp2_elvis_lhs = p.e2b_1;
|
|
1810
|
+
path.t2c(i, tmp2_elvis_lhs == null ? NaN : tmp2_elvis_lhs);
|
|
1811
|
+
var tmp3_safe_receiver = p.b2b_1;
|
|
1812
1812
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver;
|
|
1813
|
-
path.
|
|
1814
|
-
var tmp5_safe_receiver = p.
|
|
1813
|
+
path.u2c(i, tmp4_elvis_lhs == null ? NaN : tmp4_elvis_lhs);
|
|
1814
|
+
var tmp5_safe_receiver = p.c2b_1;
|
|
1815
1815
|
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver;
|
|
1816
|
-
path.
|
|
1817
|
-
var tmp7_elvis_lhs = p.
|
|
1818
|
-
path.
|
|
1819
|
-
var tmp8_elvis_lhs = p.
|
|
1816
|
+
path.v2c(i, tmp6_elvis_lhs == null ? NaN : tmp6_elvis_lhs);
|
|
1817
|
+
var tmp7_elvis_lhs = p.d2b_1;
|
|
1818
|
+
path.w2c(i, tmp7_elvis_lhs == null ? NaN : tmp7_elvis_lhs);
|
|
1819
|
+
var tmp8_elvis_lhs = p.f2b_1;
|
|
1820
1820
|
var tmp9_elvis_lhs = tmp8_elvis_lhs == null ? trackRoadWidthM : tmp8_elvis_lhs;
|
|
1821
|
-
var width = tmp9_elvis_lhs == null ? OsmHighway_getInstance().
|
|
1822
|
-
path.
|
|
1821
|
+
var width = tmp9_elvis_lhs == null ? OsmHighway_getInstance().y2c(p.g2b_1) : tmp9_elvis_lhs;
|
|
1822
|
+
path.z2c(i, !(width == null) && get_PLAUSIBLE_ROAD_WIDTH_M().y(width) ? width : NaN);
|
|
1823
1823
|
}
|
|
1824
|
-
path.
|
|
1824
|
+
path.m2d();
|
|
1825
1825
|
return path;
|
|
1826
1826
|
}
|
|
1827
1827
|
var properties_initialized_GpxToPath_kt_83hcm9;
|
|
@@ -1833,14 +1833,14 @@
|
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
1835
|
function writeDocument($this, w, document, writeExtensions) {
|
|
1836
|
-
w.
|
|
1837
|
-
w.
|
|
1836
|
+
w.a1u('', 'http://www.topografix.com/GPX/1/1');
|
|
1837
|
+
w.a1u('xsi', 'http://www.w3.org/2001/XMLSchema-instance');
|
|
1838
1838
|
if (writeExtensions) {
|
|
1839
|
-
w.
|
|
1839
|
+
w.a1u('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1');
|
|
1840
1840
|
}
|
|
1841
1841
|
var tmp;
|
|
1842
1842
|
if (writeExtensions) {
|
|
1843
|
-
var tmp0 = document.
|
|
1843
|
+
var tmp0 = document.k2a_1;
|
|
1844
1844
|
var tmp$ret$0;
|
|
1845
1845
|
$l$block_2: {
|
|
1846
1846
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -1858,10 +1858,10 @@
|
|
|
1858
1858
|
while (_iterator__ex2g4s.m()) {
|
|
1859
1859
|
var element = _iterator__ex2g4s.n();
|
|
1860
1860
|
var tmp_1;
|
|
1861
|
-
if (element.
|
|
1861
|
+
if (element.r2a_1.equals(GpxPathKind_TRACK_getInstance()) && !(element.s2a_1 == null)) {
|
|
1862
1862
|
tmp_1 = true;
|
|
1863
1863
|
} else {
|
|
1864
|
-
var tmp0_0 = element.
|
|
1864
|
+
var tmp0_0 = element.w2a();
|
|
1865
1865
|
var tmp$ret$2;
|
|
1866
1866
|
$l$block_1: {
|
|
1867
1867
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -1878,7 +1878,7 @@
|
|
|
1878
1878
|
var _iterator__ex2g4s_0 = tmp0_0.l();
|
|
1879
1879
|
while (_iterator__ex2g4s_0.m()) {
|
|
1880
1880
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
1881
|
-
if (!(element_0.
|
|
1881
|
+
if (!(element_0.f2b_1 == null)) {
|
|
1882
1882
|
tmp$ret$2 = true;
|
|
1883
1883
|
break $l$block_1;
|
|
1884
1884
|
}
|
|
@@ -1900,30 +1900,30 @@
|
|
|
1900
1900
|
}
|
|
1901
1901
|
var hasRoadWidth = tmp;
|
|
1902
1902
|
if (hasRoadWidth) {
|
|
1903
|
-
w.
|
|
1903
|
+
w.a1u('vc', 'https://github.com/glandais/vcyclist/xmlschemas/v1');
|
|
1904
1904
|
}
|
|
1905
|
-
w.
|
|
1906
|
-
w.
|
|
1907
|
-
w.
|
|
1908
|
-
w.
|
|
1909
|
-
w.
|
|
1905
|
+
w.c1u('http://www.topografix.com/GPX/1/1', 'gpx', '');
|
|
1906
|
+
w.e1u(null, 'version', null, '1.1');
|
|
1907
|
+
w.e1u(null, 'creator', null, '@glandais/vcyclist');
|
|
1908
|
+
w.b1u('', 'http://www.topografix.com/GPX/1/1');
|
|
1909
|
+
w.b1u('xsi', 'http://www.w3.org/2001/XMLSchema-instance');
|
|
1910
1910
|
if (writeExtensions) {
|
|
1911
|
-
w.
|
|
1911
|
+
w.b1u('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1');
|
|
1912
1912
|
}
|
|
1913
1913
|
if (hasRoadWidth) {
|
|
1914
|
-
w.
|
|
1914
|
+
w.b1u('vc', 'https://github.com/glandais/vcyclist/xmlschemas/v1');
|
|
1915
1915
|
}
|
|
1916
|
-
w.
|
|
1917
|
-
writeMetadata($this, w, document.
|
|
1918
|
-
var _iterator__ex2g4s_1 = document.
|
|
1916
|
+
w.e1u('http://www.w3.org/2001/XMLSchema-instance', 'schemaLocation', 'xsi', 'http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd');
|
|
1917
|
+
writeMetadata($this, w, document.j2a_1);
|
|
1918
|
+
var _iterator__ex2g4s_1 = document.l2a_1.l();
|
|
1919
1919
|
while (_iterator__ex2g4s_1.m()) {
|
|
1920
1920
|
var waypoint = _iterator__ex2g4s_1.n();
|
|
1921
1921
|
writeWaypoint($this, w, waypoint);
|
|
1922
1922
|
}
|
|
1923
|
-
var _iterator__ex2g4s_2 = document.
|
|
1923
|
+
var _iterator__ex2g4s_2 = document.k2a_1.l();
|
|
1924
1924
|
while (_iterator__ex2g4s_2.m()) {
|
|
1925
1925
|
var track = _iterator__ex2g4s_2.n();
|
|
1926
|
-
switch (track.
|
|
1926
|
+
switch (track.r2a_1.y1_1) {
|
|
1927
1927
|
case 1:
|
|
1928
1928
|
writeRoute($this, w, track, writeExtensions);
|
|
1929
1929
|
break;
|
|
@@ -1935,150 +1935,150 @@
|
|
|
1935
1935
|
break;
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
|
-
w.
|
|
1938
|
+
w.h1u('http://www.topografix.com/GPX/1/1', 'gpx', '');
|
|
1939
1939
|
}
|
|
1940
1940
|
function writeWaypoint($this, w, waypoint) {
|
|
1941
|
-
w.
|
|
1942
|
-
w.
|
|
1943
|
-
w.
|
|
1944
|
-
var tmp0_safe_receiver = waypoint.
|
|
1941
|
+
w.c1u('http://www.topografix.com/GPX/1/1', 'wpt', '');
|
|
1942
|
+
w.e1u(null, 'lat', null, GpxDecimal_getInstance().l2b(waypoint.b2a_1));
|
|
1943
|
+
w.e1u(null, 'lon', null, GpxDecimal_getInstance().l2b(waypoint.c2a_1));
|
|
1944
|
+
var tmp0_safe_receiver = waypoint.d2a_1;
|
|
1945
1945
|
if (tmp0_safe_receiver == null)
|
|
1946
1946
|
null;
|
|
1947
1947
|
else {
|
|
1948
1948
|
// Inline function 'kotlin.let' call
|
|
1949
|
-
writeSimpleText(GpxWriter_instance, w, 'ele', GpxDecimal_getInstance().
|
|
1949
|
+
writeSimpleText(GpxWriter_instance, w, 'ele', GpxDecimal_getInstance().l2b(tmp0_safe_receiver));
|
|
1950
1950
|
}
|
|
1951
|
-
var tmp1_safe_receiver = waypoint.
|
|
1951
|
+
var tmp1_safe_receiver = waypoint.i2a_1;
|
|
1952
1952
|
if (tmp1_safe_receiver == null)
|
|
1953
1953
|
null;
|
|
1954
1954
|
else {
|
|
1955
1955
|
// Inline function 'kotlin.let' call
|
|
1956
1956
|
writeSimpleText(GpxWriter_instance, w, 'time', Companion_getInstance().yg(tmp1_safe_receiver).toString());
|
|
1957
1957
|
}
|
|
1958
|
-
var tmp2_safe_receiver = waypoint.
|
|
1958
|
+
var tmp2_safe_receiver = waypoint.e2a_1;
|
|
1959
1959
|
if (tmp2_safe_receiver == null)
|
|
1960
1960
|
null;
|
|
1961
1961
|
else {
|
|
1962
1962
|
// Inline function 'kotlin.let' call
|
|
1963
1963
|
writeSimpleText(GpxWriter_instance, w, 'name', tmp2_safe_receiver);
|
|
1964
1964
|
}
|
|
1965
|
-
var tmp3_safe_receiver = waypoint.
|
|
1965
|
+
var tmp3_safe_receiver = waypoint.f2a_1;
|
|
1966
1966
|
if (tmp3_safe_receiver == null)
|
|
1967
1967
|
null;
|
|
1968
1968
|
else {
|
|
1969
1969
|
// Inline function 'kotlin.let' call
|
|
1970
1970
|
writeSimpleText(GpxWriter_instance, w, 'desc', tmp3_safe_receiver);
|
|
1971
1971
|
}
|
|
1972
|
-
var tmp4_safe_receiver = waypoint.
|
|
1972
|
+
var tmp4_safe_receiver = waypoint.g2a_1;
|
|
1973
1973
|
if (tmp4_safe_receiver == null)
|
|
1974
1974
|
null;
|
|
1975
1975
|
else {
|
|
1976
1976
|
// Inline function 'kotlin.let' call
|
|
1977
1977
|
writeSimpleText(GpxWriter_instance, w, 'sym', tmp4_safe_receiver);
|
|
1978
1978
|
}
|
|
1979
|
-
var tmp5_safe_receiver = waypoint.
|
|
1979
|
+
var tmp5_safe_receiver = waypoint.h2a_1;
|
|
1980
1980
|
if (tmp5_safe_receiver == null)
|
|
1981
1981
|
null;
|
|
1982
1982
|
else {
|
|
1983
1983
|
// Inline function 'kotlin.let' call
|
|
1984
1984
|
writeSimpleText(GpxWriter_instance, w, 'type', tmp5_safe_receiver);
|
|
1985
1985
|
}
|
|
1986
|
-
w.
|
|
1986
|
+
w.h1u('http://www.topografix.com/GPX/1/1', 'wpt', '');
|
|
1987
1987
|
}
|
|
1988
1988
|
function writeMetadata($this, w, name) {
|
|
1989
|
-
w.
|
|
1989
|
+
w.c1u('http://www.topografix.com/GPX/1/1', 'metadata', '');
|
|
1990
1990
|
writeSimpleText($this, w, 'name', name);
|
|
1991
|
-
w.
|
|
1991
|
+
w.h1u('http://www.topografix.com/GPX/1/1', 'metadata', '');
|
|
1992
1992
|
}
|
|
1993
1993
|
function writeTrack($this, w, track, writeExtensions) {
|
|
1994
|
-
w.
|
|
1995
|
-
var tmp0_safe_receiver = track.
|
|
1994
|
+
w.c1u('http://www.topografix.com/GPX/1/1', 'trk', '');
|
|
1995
|
+
var tmp0_safe_receiver = track.o2a_1;
|
|
1996
1996
|
if (tmp0_safe_receiver == null)
|
|
1997
1997
|
null;
|
|
1998
1998
|
else {
|
|
1999
1999
|
// Inline function 'kotlin.let' call
|
|
2000
2000
|
writeSimpleText(GpxWriter_instance, w, 'name', tmp0_safe_receiver);
|
|
2001
2001
|
}
|
|
2002
|
-
var tmp1_safe_receiver = track.
|
|
2002
|
+
var tmp1_safe_receiver = track.p2a_1;
|
|
2003
2003
|
if (tmp1_safe_receiver == null)
|
|
2004
2004
|
null;
|
|
2005
2005
|
else {
|
|
2006
2006
|
// Inline function 'kotlin.let' call
|
|
2007
2007
|
writeSimpleText(GpxWriter_instance, w, 'type', tmp1_safe_receiver);
|
|
2008
2008
|
}
|
|
2009
|
-
if (writeExtensions && !(track.
|
|
2010
|
-
w.
|
|
2011
|
-
writeRoadWidth($this, w, track.
|
|
2012
|
-
w.
|
|
2009
|
+
if (writeExtensions && !(track.s2a_1 == null)) {
|
|
2010
|
+
w.c1u('http://www.topografix.com/GPX/1/1', 'extensions', '');
|
|
2011
|
+
writeRoadWidth($this, w, track.s2a_1);
|
|
2012
|
+
w.h1u('http://www.topografix.com/GPX/1/1', 'extensions', '');
|
|
2013
2013
|
}
|
|
2014
|
-
var _iterator__ex2g4s = track.
|
|
2014
|
+
var _iterator__ex2g4s = track.q2a_1.l();
|
|
2015
2015
|
while (_iterator__ex2g4s.m()) {
|
|
2016
2016
|
var segment = _iterator__ex2g4s.n();
|
|
2017
|
-
w.
|
|
2018
|
-
var _iterator__ex2g4s_0 = segment.
|
|
2017
|
+
w.c1u('http://www.topografix.com/GPX/1/1', 'trkseg', '');
|
|
2018
|
+
var _iterator__ex2g4s_0 = segment.v2a_1.l();
|
|
2019
2019
|
while (_iterator__ex2g4s_0.m()) {
|
|
2020
2020
|
var p = _iterator__ex2g4s_0.n();
|
|
2021
2021
|
writeTrackPoint($this, w, p, writeExtensions);
|
|
2022
2022
|
}
|
|
2023
|
-
w.
|
|
2023
|
+
w.h1u('http://www.topografix.com/GPX/1/1', 'trkseg', '');
|
|
2024
2024
|
}
|
|
2025
|
-
w.
|
|
2025
|
+
w.h1u('http://www.topografix.com/GPX/1/1', 'trk', '');
|
|
2026
2026
|
}
|
|
2027
2027
|
function writeRoute($this, w, route, writeExtensions) {
|
|
2028
|
-
w.
|
|
2029
|
-
var tmp0_safe_receiver = route.
|
|
2028
|
+
w.c1u('http://www.topografix.com/GPX/1/1', 'rte', '');
|
|
2029
|
+
var tmp0_safe_receiver = route.o2a_1;
|
|
2030
2030
|
if (tmp0_safe_receiver == null)
|
|
2031
2031
|
null;
|
|
2032
2032
|
else {
|
|
2033
2033
|
// Inline function 'kotlin.let' call
|
|
2034
2034
|
writeSimpleText(GpxWriter_instance, w, 'name', tmp0_safe_receiver);
|
|
2035
2035
|
}
|
|
2036
|
-
var tmp1_safe_receiver = route.
|
|
2036
|
+
var tmp1_safe_receiver = route.p2a_1;
|
|
2037
2037
|
if (tmp1_safe_receiver == null)
|
|
2038
2038
|
null;
|
|
2039
2039
|
else {
|
|
2040
2040
|
// Inline function 'kotlin.let' call
|
|
2041
2041
|
writeSimpleText(GpxWriter_instance, w, 'type', tmp1_safe_receiver);
|
|
2042
2042
|
}
|
|
2043
|
-
var _iterator__ex2g4s = route.
|
|
2043
|
+
var _iterator__ex2g4s = route.w2a().l();
|
|
2044
2044
|
while (_iterator__ex2g4s.m()) {
|
|
2045
2045
|
var p = _iterator__ex2g4s.n();
|
|
2046
2046
|
writeTrackPoint($this, w, p, writeExtensions, 'rtept');
|
|
2047
2047
|
}
|
|
2048
|
-
w.
|
|
2048
|
+
w.h1u('http://www.topografix.com/GPX/1/1', 'rte', '');
|
|
2049
2049
|
}
|
|
2050
2050
|
function writeTrackPoint($this, w, p, writeExtensions, localName) {
|
|
2051
2051
|
localName = localName === VOID ? 'trkpt' : localName;
|
|
2052
|
-
w.
|
|
2053
|
-
w.
|
|
2054
|
-
w.
|
|
2055
|
-
var tmp0_safe_receiver = p.
|
|
2052
|
+
w.c1u('http://www.topografix.com/GPX/1/1', localName, '');
|
|
2053
|
+
w.e1u(null, 'lat', null, GpxDecimal_getInstance().l2b(p.x2a_1));
|
|
2054
|
+
w.e1u(null, 'lon', null, GpxDecimal_getInstance().l2b(p.y2a_1));
|
|
2055
|
+
var tmp0_safe_receiver = p.z2a_1;
|
|
2056
2056
|
if (tmp0_safe_receiver == null)
|
|
2057
2057
|
null;
|
|
2058
2058
|
else {
|
|
2059
2059
|
// Inline function 'kotlin.let' call
|
|
2060
|
-
writeSimpleText(GpxWriter_instance, w, 'ele', GpxDecimal_getInstance().
|
|
2060
|
+
writeSimpleText(GpxWriter_instance, w, 'ele', GpxDecimal_getInstance().l2b(tmp0_safe_receiver));
|
|
2061
2061
|
}
|
|
2062
|
-
var tmp1_safe_receiver = p.
|
|
2062
|
+
var tmp1_safe_receiver = p.a2b_1;
|
|
2063
2063
|
if (tmp1_safe_receiver == null)
|
|
2064
2064
|
null;
|
|
2065
2065
|
else {
|
|
2066
2066
|
// Inline function 'kotlin.let' call
|
|
2067
2067
|
writeSimpleText(GpxWriter_instance, w, 'time', Companion_getInstance().yg(tmp1_safe_receiver).toString());
|
|
2068
2068
|
}
|
|
2069
|
-
var hasGarminExt = !(p.
|
|
2070
|
-
var hasPower = !(p.
|
|
2071
|
-
var hasRoadWidth = !(p.
|
|
2069
|
+
var hasGarminExt = !(p.b2b_1 == null) || !(p.c2b_1 == null) || !(p.d2b_1 == null);
|
|
2070
|
+
var hasPower = !(p.e2b_1 == null);
|
|
2071
|
+
var hasRoadWidth = !(p.f2b_1 == null);
|
|
2072
2072
|
if (writeExtensions && (hasGarminExt || hasPower || hasRoadWidth)) {
|
|
2073
|
-
w.
|
|
2074
|
-
var tmp2_safe_receiver = p.
|
|
2073
|
+
w.c1u('http://www.topografix.com/GPX/1/1', 'extensions', '');
|
|
2074
|
+
var tmp2_safe_receiver = p.e2b_1;
|
|
2075
2075
|
if (tmp2_safe_receiver == null)
|
|
2076
2076
|
null;
|
|
2077
2077
|
else {
|
|
2078
2078
|
// Inline function 'kotlin.let' call
|
|
2079
|
-
writeSimpleText(GpxWriter_instance, w, 'power', GpxDecimal_getInstance().
|
|
2079
|
+
writeSimpleText(GpxWriter_instance, w, 'power', GpxDecimal_getInstance().l2b(tmp2_safe_receiver));
|
|
2080
2080
|
}
|
|
2081
|
-
var tmp3_safe_receiver = p.
|
|
2081
|
+
var tmp3_safe_receiver = p.f2b_1;
|
|
2082
2082
|
if (tmp3_safe_receiver == null)
|
|
2083
2083
|
null;
|
|
2084
2084
|
else {
|
|
@@ -2086,66 +2086,66 @@
|
|
|
2086
2086
|
writeRoadWidth(GpxWriter_instance, w, tmp3_safe_receiver);
|
|
2087
2087
|
}
|
|
2088
2088
|
if (hasGarminExt) {
|
|
2089
|
-
w.
|
|
2090
|
-
var tmp4_safe_receiver = p.
|
|
2089
|
+
w.c1u('http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'TrackPointExtension', 'gpxtpx');
|
|
2090
|
+
var tmp4_safe_receiver = p.b2b_1;
|
|
2091
2091
|
if (tmp4_safe_receiver == null)
|
|
2092
2092
|
null;
|
|
2093
2093
|
else {
|
|
2094
2094
|
// Inline function 'kotlin.let' call
|
|
2095
2095
|
writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'hr', 'gpxtpx', tmp4_safe_receiver.toString());
|
|
2096
2096
|
}
|
|
2097
|
-
var tmp5_safe_receiver = p.
|
|
2097
|
+
var tmp5_safe_receiver = p.c2b_1;
|
|
2098
2098
|
if (tmp5_safe_receiver == null)
|
|
2099
2099
|
null;
|
|
2100
2100
|
else {
|
|
2101
2101
|
// Inline function 'kotlin.let' call
|
|
2102
2102
|
writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'cad', 'gpxtpx', tmp5_safe_receiver.toString());
|
|
2103
2103
|
}
|
|
2104
|
-
var tmp6_safe_receiver = p.
|
|
2104
|
+
var tmp6_safe_receiver = p.d2b_1;
|
|
2105
2105
|
if (tmp6_safe_receiver == null)
|
|
2106
2106
|
null;
|
|
2107
2107
|
else {
|
|
2108
2108
|
// Inline function 'kotlin.let' call
|
|
2109
|
-
writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'atemp', 'gpxtpx', GpxDecimal_getInstance().
|
|
2109
|
+
writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'atemp', 'gpxtpx', GpxDecimal_getInstance().l2b(tmp6_safe_receiver));
|
|
2110
2110
|
}
|
|
2111
|
-
w.
|
|
2111
|
+
w.h1u('http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'TrackPointExtension', 'gpxtpx');
|
|
2112
2112
|
}
|
|
2113
|
-
w.
|
|
2113
|
+
w.h1u('http://www.topografix.com/GPX/1/1', 'extensions', '');
|
|
2114
2114
|
}
|
|
2115
|
-
w.
|
|
2115
|
+
w.h1u('http://www.topografix.com/GPX/1/1', localName, '');
|
|
2116
2116
|
}
|
|
2117
2117
|
function writeRoadWidth($this, w, widthM) {
|
|
2118
|
-
return writeNamespaced($this, w, 'https://github.com/glandais/vcyclist/xmlschemas/v1', 'roadWidth', 'vc', GpxDecimal_getInstance().
|
|
2118
|
+
return writeNamespaced($this, w, 'https://github.com/glandais/vcyclist/xmlschemas/v1', 'roadWidth', 'vc', GpxDecimal_getInstance().l2b(widthM));
|
|
2119
2119
|
}
|
|
2120
2120
|
function writeSimpleText($this, w, localName, text) {
|
|
2121
|
-
w.
|
|
2122
|
-
w.
|
|
2123
|
-
w.
|
|
2121
|
+
w.c1u('http://www.topografix.com/GPX/1/1', localName, '');
|
|
2122
|
+
w.d1u(text);
|
|
2123
|
+
w.h1u('http://www.topografix.com/GPX/1/1', localName, '');
|
|
2124
2124
|
}
|
|
2125
2125
|
function writeNamespaced($this, w, namespace, localName, prefix, text) {
|
|
2126
|
-
w.
|
|
2127
|
-
w.
|
|
2128
|
-
w.
|
|
2126
|
+
w.c1u(namespace, localName, prefix);
|
|
2127
|
+
w.d1u(text);
|
|
2128
|
+
w.h1u(namespace, localName, prefix);
|
|
2129
2129
|
}
|
|
2130
2130
|
function GpxWriter() {
|
|
2131
|
-
this.
|
|
2132
|
-
this.
|
|
2133
|
-
this.
|
|
2134
|
-
this.
|
|
2135
|
-
this.
|
|
2136
|
-
this.
|
|
2137
|
-
this.
|
|
2138
|
-
this.
|
|
2139
|
-
this.
|
|
2140
|
-
}
|
|
2141
|
-
protoOf(GpxWriter).
|
|
2131
|
+
this.n2d_1 = 'http://www.topografix.com/GPX/1/1';
|
|
2132
|
+
this.o2d_1 = 'http://www.w3.org/2001/XMLSchema-instance';
|
|
2133
|
+
this.p2d_1 = 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1';
|
|
2134
|
+
this.q2d_1 = 'https://github.com/glandais/vcyclist/xmlschemas/v1';
|
|
2135
|
+
this.r2d_1 = 'vc';
|
|
2136
|
+
this.s2d_1 = 'xsi';
|
|
2137
|
+
this.t2d_1 = 'gpxtpx';
|
|
2138
|
+
this.u2d_1 = 'http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd';
|
|
2139
|
+
this.v2d_1 = '@glandais/vcyclist';
|
|
2140
|
+
}
|
|
2141
|
+
protoOf(GpxWriter).w2d = function (document, writeExtensions) {
|
|
2142
2142
|
var out = StringBuilder_init_$Create$();
|
|
2143
2143
|
out.x6('<?xml version="1.0" encoding="UTF-8"?>\n');
|
|
2144
2144
|
var writer = newGenericWriter(get_xmlStreaming(), out, false, XmlDeclMode_None_getInstance());
|
|
2145
2145
|
try {
|
|
2146
2146
|
writeDocument(this, writer, document, writeExtensions);
|
|
2147
2147
|
}finally {
|
|
2148
|
-
writer.
|
|
2148
|
+
writer.i1s();
|
|
2149
2149
|
}
|
|
2150
2150
|
return out.toString();
|
|
2151
2151
|
};
|
|
@@ -2256,11 +2256,11 @@
|
|
|
2256
2256
|
while (i < refs.o()) {
|
|
2257
2257
|
var high = refs.p(i);
|
|
2258
2258
|
var low = getOrNull(refs, i + 1 | 0);
|
|
2259
|
-
if (!(low == null) && high.
|
|
2260
|
-
sb.ba(xml, copiedUpTo, high.
|
|
2261
|
-
var codePoint = (65536 + imul(high.
|
|
2259
|
+
if (!(low == null) && high.y2d_1 === low.x2d_1 && isHighSurrogate_0($this, high.z2d_1) && isLowSurrogate_0($this, low.z2d_1)) {
|
|
2260
|
+
sb.ba(xml, copiedUpTo, high.x2d_1);
|
|
2261
|
+
var codePoint = (65536 + imul(high.z2d_1 - 55296 | 0, 1024) | 0) + (low.z2d_1 - 56320 | 0) | 0;
|
|
2262
2262
|
sb.x6('&#').da(codePoint).y6(_Char___init__impl__6a9atx(59));
|
|
2263
|
-
copiedUpTo = low.
|
|
2263
|
+
copiedUpTo = low.y2d_1;
|
|
2264
2264
|
count = count + 1 | 0;
|
|
2265
2265
|
i = i + 2 | 0;
|
|
2266
2266
|
} else {
|
|
@@ -2273,17 +2273,17 @@
|
|
|
2273
2273
|
return new Pair(sb.toString(), count);
|
|
2274
2274
|
}
|
|
2275
2275
|
function NumericRef(start, end, value) {
|
|
2276
|
-
this.
|
|
2277
|
-
this.
|
|
2278
|
-
this.
|
|
2276
|
+
this.x2d_1 = start;
|
|
2277
|
+
this.y2d_1 = end;
|
|
2278
|
+
this.z2d_1 = value;
|
|
2279
2279
|
}
|
|
2280
2280
|
protoOf(NumericRef).toString = function () {
|
|
2281
|
-
return 'NumericRef(start=' + this.
|
|
2281
|
+
return 'NumericRef(start=' + this.x2d_1 + ', end=' + this.y2d_1 + ', value=' + this.z2d_1 + ')';
|
|
2282
2282
|
};
|
|
2283
2283
|
protoOf(NumericRef).hashCode = function () {
|
|
2284
|
-
var result = this.
|
|
2285
|
-
result = imul(result, 31) + this.
|
|
2286
|
-
result = imul(result, 31) + this.
|
|
2284
|
+
var result = this.x2d_1;
|
|
2285
|
+
result = imul(result, 31) + this.y2d_1 | 0;
|
|
2286
|
+
result = imul(result, 31) + this.z2d_1 | 0;
|
|
2287
2287
|
return result;
|
|
2288
2288
|
};
|
|
2289
2289
|
protoOf(NumericRef).equals = function (other) {
|
|
@@ -2291,11 +2291,11 @@
|
|
|
2291
2291
|
return true;
|
|
2292
2292
|
if (!(other instanceof NumericRef))
|
|
2293
2293
|
return false;
|
|
2294
|
-
if (!(this.
|
|
2294
|
+
if (!(this.x2d_1 === other.x2d_1))
|
|
2295
2295
|
return false;
|
|
2296
|
-
if (!(this.
|
|
2296
|
+
if (!(this.y2d_1 === other.y2d_1))
|
|
2297
2297
|
return false;
|
|
2298
|
-
if (!(this.
|
|
2298
|
+
if (!(this.z2d_1 === other.z2d_1))
|
|
2299
2299
|
return false;
|
|
2300
2300
|
return true;
|
|
2301
2301
|
};
|
|
@@ -2328,7 +2328,7 @@
|
|
|
2328
2328
|
function verbatimSpanEnd($this, xml, start) {
|
|
2329
2329
|
if (!(charCodeAt(xml, start) === _Char___init__impl__6a9atx(60)))
|
|
2330
2330
|
return -1;
|
|
2331
|
-
var _iterator__ex2g4s = $this.
|
|
2331
|
+
var _iterator__ex2g4s = $this.l2c_1.l();
|
|
2332
2332
|
while (_iterator__ex2g4s.m()) {
|
|
2333
2333
|
var _destruct__k2r9zo = _iterator__ex2g4s.n();
|
|
2334
2334
|
var open = _destruct__k2r9zo.md();
|
|
@@ -2402,21 +2402,21 @@
|
|
|
2402
2402
|
}
|
|
2403
2403
|
if (j >= n || !(charCodeAt(xml, j) === _Char___init__impl__6a9atx(59)))
|
|
2404
2404
|
return -1;
|
|
2405
|
-
return $this.
|
|
2405
|
+
return $this.k2c_1.m1(substring(xml, nameStart, j)) ? j : -1;
|
|
2406
2406
|
}
|
|
2407
2407
|
function isHexDigit($this, $receiver) {
|
|
2408
2408
|
return isDigit($receiver) || (_Char___init__impl__6a9atx(97) <= $receiver ? $receiver <= _Char___init__impl__6a9atx(102) : false) || (_Char___init__impl__6a9atx(65) <= $receiver ? $receiver <= _Char___init__impl__6a9atx(70) : false);
|
|
2409
2409
|
}
|
|
2410
2410
|
function GpxXmlRepair() {
|
|
2411
2411
|
GpxXmlRepair_instance = this;
|
|
2412
|
-
this.
|
|
2413
|
-
this.
|
|
2414
|
-
this.
|
|
2412
|
+
this.k2c_1 = setOf(['amp', 'lt', 'gt', 'apos', 'quot']);
|
|
2413
|
+
this.l2c_1 = listOf_0([to('<![CDATA[', ']]>'), to('<!--', '-->'), to('<?', '?>')]);
|
|
2414
|
+
this.m2c_1 = 20;
|
|
2415
2415
|
}
|
|
2416
|
-
protoOf(GpxXmlRepair).
|
|
2417
|
-
return this.
|
|
2416
|
+
protoOf(GpxXmlRepair).n2c = function (xml) {
|
|
2417
|
+
return this.c2e(xml).a2e_1;
|
|
2418
2418
|
};
|
|
2419
|
-
protoOf(GpxXmlRepair).
|
|
2419
|
+
protoOf(GpxXmlRepair).c2e = function (xml) {
|
|
2420
2420
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2421
2421
|
var repairs = ArrayList_init_$Create$();
|
|
2422
2422
|
var current = xml;
|
|
@@ -2475,15 +2475,15 @@
|
|
|
2475
2475
|
return GpxXmlRepair_instance;
|
|
2476
2476
|
}
|
|
2477
2477
|
function RepairResult(xml, repairs) {
|
|
2478
|
-
this.
|
|
2479
|
-
this.
|
|
2478
|
+
this.a2e_1 = xml;
|
|
2479
|
+
this.b2e_1 = repairs;
|
|
2480
2480
|
}
|
|
2481
2481
|
protoOf(RepairResult).toString = function () {
|
|
2482
|
-
return 'RepairResult(xml=' + this.
|
|
2482
|
+
return 'RepairResult(xml=' + this.a2e_1 + ', repairs=' + toString_0(this.b2e_1) + ')';
|
|
2483
2483
|
};
|
|
2484
2484
|
protoOf(RepairResult).hashCode = function () {
|
|
2485
|
-
var result = getStringHashCode(this.
|
|
2486
|
-
result = imul(result, 31) + hashCode(this.
|
|
2485
|
+
var result = getStringHashCode(this.a2e_1);
|
|
2486
|
+
result = imul(result, 31) + hashCode(this.b2e_1) | 0;
|
|
2487
2487
|
return result;
|
|
2488
2488
|
};
|
|
2489
2489
|
protoOf(RepairResult).equals = function (other) {
|
|
@@ -2491,17 +2491,17 @@
|
|
|
2491
2491
|
return true;
|
|
2492
2492
|
if (!(other instanceof RepairResult))
|
|
2493
2493
|
return false;
|
|
2494
|
-
if (!(this.
|
|
2494
|
+
if (!(this.a2e_1 === other.a2e_1))
|
|
2495
2495
|
return false;
|
|
2496
|
-
if (!equals(this.
|
|
2496
|
+
if (!equals(this.b2e_1, other.b2e_1))
|
|
2497
2497
|
return false;
|
|
2498
2498
|
return true;
|
|
2499
2499
|
};
|
|
2500
2500
|
function OsmHighway() {
|
|
2501
2501
|
OsmHighway_instance = this;
|
|
2502
|
-
this.
|
|
2502
|
+
this.x2c_1 = mapOf([to('motorway', 7.5), to('motorway_link', 6.0), to('trunk', 7.0), to('trunk_link', 6.0), to('primary', 6.5), to('primary_link', 5.5), to('secondary', 6.0), to('secondary_link', 5.0), to('tertiary', 5.5), to('tertiary_link', 5.0), to('unclassified', 4.5), to('residential', 5.0), to('living_street', 4.0), to('service', 3.5), to('road', 5.0), to('track', 3.0), to('cycleway', 2.5), to('path', 2.5), to('bridleway', 2.5), to('footway', 2.5), to('pedestrian', 3.0), to('steps', 2.5)]);
|
|
2503
2503
|
}
|
|
2504
|
-
protoOf(OsmHighway).
|
|
2504
|
+
protoOf(OsmHighway).y2c = function (highway) {
|
|
2505
2505
|
var tmp;
|
|
2506
2506
|
if (highway == null) {
|
|
2507
2507
|
tmp = null;
|
|
@@ -2522,7 +2522,7 @@
|
|
|
2522
2522
|
// Inline function 'kotlin.text.isNullOrEmpty' call
|
|
2523
2523
|
if (key == null || charSequenceLength(key) === 0)
|
|
2524
2524
|
return null;
|
|
2525
|
-
return this.
|
|
2525
|
+
return this.x2c_1.t1(key);
|
|
2526
2526
|
};
|
|
2527
2527
|
var OsmHighway_instance;
|
|
2528
2528
|
function OsmHighway_getInstance() {
|
|
@@ -2547,9 +2547,9 @@
|
|
|
2547
2547
|
var negative = value < 0.0;
|
|
2548
2548
|
// Inline function 'kotlin.math.abs' call
|
|
2549
2549
|
var absValue = Math.abs(value);
|
|
2550
|
-
var scale = toNumber($this.
|
|
2550
|
+
var scale = toNumber($this.e2e_1[decimals]);
|
|
2551
2551
|
var scaledLong = numberToLong(round(absValue * scale));
|
|
2552
|
-
var whole = $this.
|
|
2552
|
+
var whole = $this.e2e_1[decimals];
|
|
2553
2553
|
var intPart = divide(scaledLong, whole);
|
|
2554
2554
|
var sign = negative && !equalsLong(scaledLong, new Long(0, 0)) ? '-' : '';
|
|
2555
2555
|
var tmp;
|
|
@@ -2563,7 +2563,7 @@
|
|
|
2563
2563
|
}
|
|
2564
2564
|
function CsvNumberFormat() {
|
|
2565
2565
|
CsvNumberFormat_instance = this;
|
|
2566
|
-
this.
|
|
2566
|
+
this.d2e_1 = 12;
|
|
2567
2567
|
var tmp = this;
|
|
2568
2568
|
// Inline function 'kotlin.also' call
|
|
2569
2569
|
var this_0 = longArray(13);
|
|
@@ -2578,9 +2578,9 @@
|
|
|
2578
2578
|
p = multiply(p, new Long(10, 0));
|
|
2579
2579
|
}
|
|
2580
2580
|
while (inductionVariable <= last);
|
|
2581
|
-
tmp.
|
|
2581
|
+
tmp.e2e_1 = this_0;
|
|
2582
2582
|
}
|
|
2583
|
-
protoOf(CsvNumberFormat).
|
|
2583
|
+
protoOf(CsvNumberFormat).f2e = function (value, decimals) {
|
|
2584
2584
|
if (isNaN_0(value))
|
|
2585
2585
|
return '';
|
|
2586
2586
|
if (isInfinite(value))
|
|
@@ -2610,21 +2610,21 @@
|
|
|
2610
2610
|
unitsInHeader = unitsInHeader === VOID ? true : unitsInHeader;
|
|
2611
2611
|
decimals = decimals === VOID ? null : decimals;
|
|
2612
2612
|
lineSeparator = lineSeparator === VOID ? '\n' : lineSeparator;
|
|
2613
|
-
this.
|
|
2614
|
-
this.
|
|
2615
|
-
this.
|
|
2616
|
-
this.
|
|
2617
|
-
this.
|
|
2613
|
+
this.g2e_1 = fields;
|
|
2614
|
+
this.h2e_1 = separator;
|
|
2615
|
+
this.i2e_1 = unitsInHeader;
|
|
2616
|
+
this.j2e_1 = decimals;
|
|
2617
|
+
this.k2e_1 = lineSeparator;
|
|
2618
2618
|
}
|
|
2619
2619
|
protoOf(CsvOptions).toString = function () {
|
|
2620
|
-
return 'CsvOptions(fields=' + toString(this.
|
|
2620
|
+
return 'CsvOptions(fields=' + toString(this.g2e_1) + ', separator=' + toString_1(this.h2e_1) + ', unitsInHeader=' + this.i2e_1 + ', decimals=' + this.j2e_1 + ', lineSeparator=' + this.k2e_1 + ')';
|
|
2621
2621
|
};
|
|
2622
2622
|
protoOf(CsvOptions).hashCode = function () {
|
|
2623
|
-
var result = this.
|
|
2624
|
-
result = imul(result, 31) + Char__hashCode_impl_otmys(this.
|
|
2625
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2626
|
-
result = imul(result, 31) + (this.
|
|
2627
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2623
|
+
var result = this.g2e_1 == null ? 0 : hashCode(this.g2e_1);
|
|
2624
|
+
result = imul(result, 31) + Char__hashCode_impl_otmys(this.h2e_1) | 0;
|
|
2625
|
+
result = imul(result, 31) + getBooleanHashCode(this.i2e_1) | 0;
|
|
2626
|
+
result = imul(result, 31) + (this.j2e_1 == null ? 0 : this.j2e_1) | 0;
|
|
2627
|
+
result = imul(result, 31) + getStringHashCode(this.k2e_1) | 0;
|
|
2628
2628
|
return result;
|
|
2629
2629
|
};
|
|
2630
2630
|
protoOf(CsvOptions).equals = function (other) {
|
|
@@ -2632,20 +2632,20 @@
|
|
|
2632
2632
|
return true;
|
|
2633
2633
|
if (!(other instanceof CsvOptions))
|
|
2634
2634
|
return false;
|
|
2635
|
-
if (!equals(this.
|
|
2635
|
+
if (!equals(this.g2e_1, other.g2e_1))
|
|
2636
2636
|
return false;
|
|
2637
|
-
if (!(this.
|
|
2637
|
+
if (!(this.h2e_1 === other.h2e_1))
|
|
2638
2638
|
return false;
|
|
2639
|
-
if (!(this.
|
|
2639
|
+
if (!(this.i2e_1 === other.i2e_1))
|
|
2640
2640
|
return false;
|
|
2641
|
-
if (!(this.
|
|
2641
|
+
if (!(this.j2e_1 == other.j2e_1))
|
|
2642
2642
|
return false;
|
|
2643
|
-
if (!(this.
|
|
2643
|
+
if (!(this.k2e_1 === other.k2e_1))
|
|
2644
2644
|
return false;
|
|
2645
2645
|
return true;
|
|
2646
2646
|
};
|
|
2647
2647
|
function headerFor($this, field, unitsInHeader) {
|
|
2648
|
-
return unitsInHeader ? field.
|
|
2648
|
+
return unitsInHeader ? field.n2e_1 + ' (' + field.o2e_1 + ')' : field.n2e_1;
|
|
2649
2649
|
}
|
|
2650
2650
|
function appendRow($this, sb, cells, options) {
|
|
2651
2651
|
var iterator = cells.l();
|
|
@@ -2655,9 +2655,9 @@
|
|
|
2655
2655
|
index = index + 1 | 0;
|
|
2656
2656
|
var cell = iterator.n();
|
|
2657
2657
|
if (i > 0) {
|
|
2658
|
-
sb.y6(options.
|
|
2658
|
+
sb.y6(options.h2e_1);
|
|
2659
2659
|
}
|
|
2660
|
-
sb.x6(escapeCsvCell($this, cell, options.
|
|
2660
|
+
sb.x6(escapeCsvCell($this, cell, options.h2e_1));
|
|
2661
2661
|
}
|
|
2662
2662
|
}
|
|
2663
2663
|
function escapeCsvCell($this, cell, separator) {
|
|
@@ -2686,8 +2686,8 @@
|
|
|
2686
2686
|
}
|
|
2687
2687
|
function CsvWriter() {
|
|
2688
2688
|
}
|
|
2689
|
-
protoOf(CsvWriter).
|
|
2690
|
-
var tmp0_elvis_lhs = options.
|
|
2689
|
+
protoOf(CsvWriter).u2e = function (path, options) {
|
|
2690
|
+
var tmp0_elvis_lhs = options.g2e_1;
|
|
2691
2691
|
var fields = tmp0_elvis_lhs == null ? get_entries_3() : tmp0_elvis_lhs;
|
|
2692
2692
|
var sb = StringBuilder_init_$Create$();
|
|
2693
2693
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2696,24 +2696,24 @@
|
|
|
2696
2696
|
var _iterator__ex2g4s = fields.l();
|
|
2697
2697
|
while (_iterator__ex2g4s.m()) {
|
|
2698
2698
|
var item = _iterator__ex2g4s.n();
|
|
2699
|
-
var tmp$ret$2 = headerFor(CsvWriter_instance, item, options.
|
|
2699
|
+
var tmp$ret$2 = headerFor(CsvWriter_instance, item, options.i2e_1);
|
|
2700
2700
|
destination.k(tmp$ret$2);
|
|
2701
2701
|
}
|
|
2702
2702
|
appendRow(this, sb, destination, options);
|
|
2703
2703
|
var inductionVariable = 0;
|
|
2704
|
-
var last = path.
|
|
2704
|
+
var last = path.s2b_1;
|
|
2705
2705
|
if (inductionVariable < last)
|
|
2706
2706
|
do {
|
|
2707
2707
|
var i = inductionVariable;
|
|
2708
2708
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2709
|
-
sb.x6(options.
|
|
2709
|
+
sb.x6(options.k2e_1);
|
|
2710
2710
|
// Inline function 'kotlin.collections.map' call
|
|
2711
2711
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2712
2712
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(fields, 10));
|
|
2713
2713
|
var _iterator__ex2g4s_0 = fields.l();
|
|
2714
2714
|
while (_iterator__ex2g4s_0.m()) {
|
|
2715
2715
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
2716
|
-
var tmp$ret$5 = CsvNumberFormat_getInstance().
|
|
2716
|
+
var tmp$ret$5 = CsvNumberFormat_getInstance().f2e(path.v2e(i, item_0), options.j2e_1);
|
|
2717
2717
|
destination_0.k(tmp$ret$5);
|
|
2718
2718
|
}
|
|
2719
2719
|
appendRow(this, sb, destination_0, options);
|
|
@@ -2730,19 +2730,19 @@
|
|
|
2730
2730
|
pretty = pretty === VOID ? false : pretty;
|
|
2731
2731
|
decimals = decimals === VOID ? null : decimals;
|
|
2732
2732
|
includeMeta = includeMeta === VOID ? true : includeMeta;
|
|
2733
|
-
this.
|
|
2734
|
-
this.
|
|
2735
|
-
this.
|
|
2736
|
-
this.
|
|
2733
|
+
this.w2e_1 = fields;
|
|
2734
|
+
this.x2e_1 = pretty;
|
|
2735
|
+
this.y2e_1 = decimals;
|
|
2736
|
+
this.z2e_1 = includeMeta;
|
|
2737
2737
|
}
|
|
2738
2738
|
protoOf(JsonOptions).toString = function () {
|
|
2739
|
-
return 'JsonOptions(fields=' + toString(this.
|
|
2739
|
+
return 'JsonOptions(fields=' + toString(this.w2e_1) + ', pretty=' + this.x2e_1 + ', decimals=' + this.y2e_1 + ', includeMeta=' + this.z2e_1 + ')';
|
|
2740
2740
|
};
|
|
2741
2741
|
protoOf(JsonOptions).hashCode = function () {
|
|
2742
|
-
var result = this.
|
|
2743
|
-
result = imul(result, 31) + getBooleanHashCode(this.v2e_1) | 0;
|
|
2744
|
-
result = imul(result, 31) + (this.w2e_1 == null ? 0 : this.w2e_1) | 0;
|
|
2742
|
+
var result = this.w2e_1 == null ? 0 : hashCode(this.w2e_1);
|
|
2745
2743
|
result = imul(result, 31) + getBooleanHashCode(this.x2e_1) | 0;
|
|
2744
|
+
result = imul(result, 31) + (this.y2e_1 == null ? 0 : this.y2e_1) | 0;
|
|
2745
|
+
result = imul(result, 31) + getBooleanHashCode(this.z2e_1) | 0;
|
|
2746
2746
|
return result;
|
|
2747
2747
|
};
|
|
2748
2748
|
protoOf(JsonOptions).equals = function (other) {
|
|
@@ -2750,13 +2750,13 @@
|
|
|
2750
2750
|
return true;
|
|
2751
2751
|
if (!(other instanceof JsonOptions))
|
|
2752
2752
|
return false;
|
|
2753
|
-
if (!equals(this.
|
|
2753
|
+
if (!equals(this.w2e_1, other.w2e_1))
|
|
2754
2754
|
return false;
|
|
2755
|
-
if (!(this.
|
|
2755
|
+
if (!(this.x2e_1 === other.x2e_1))
|
|
2756
2756
|
return false;
|
|
2757
|
-
if (!(this.
|
|
2757
|
+
if (!(this.y2e_1 == other.y2e_1))
|
|
2758
2758
|
return false;
|
|
2759
|
-
if (!(this.
|
|
2759
|
+
if (!(this.z2e_1 === other.z2e_1))
|
|
2760
2760
|
return false;
|
|
2761
2761
|
return true;
|
|
2762
2762
|
};
|
|
@@ -2764,17 +2764,17 @@
|
|
|
2764
2764
|
var inner = indent + indent;
|
|
2765
2765
|
appendKeyRaw($this, sb, indent, 'meta', colon);
|
|
2766
2766
|
sb.y6(_Char___init__impl__6a9atx(123)).x6(nl);
|
|
2767
|
-
appendKeyValueRaw($this, sb, inner, 'totalDistance', numberOrNull($this, path.
|
|
2767
|
+
appendKeyValueRaw($this, sb, inner, 'totalDistance', numberOrNull($this, path.c2d_1, decimals), colon);
|
|
2768
2768
|
sb.y6(_Char___init__impl__6a9atx(44)).x6(nl);
|
|
2769
|
-
appendKeyValueRaw($this, sb, inner, 'durationMs', numberOrNull($this, path.
|
|
2769
|
+
appendKeyValueRaw($this, sb, inner, 'durationMs', numberOrNull($this, path.k2d_1, decimals), colon);
|
|
2770
2770
|
sb.y6(_Char___init__impl__6a9atx(44)).x6(nl);
|
|
2771
|
-
appendKeyValueRaw($this, sb, inner, 'elevationGain', numberOrNull($this, path.
|
|
2771
|
+
appendKeyValueRaw($this, sb, inner, 'elevationGain', numberOrNull($this, path.f2d_1, decimals), colon);
|
|
2772
2772
|
sb.y6(_Char___init__impl__6a9atx(44)).x6(nl);
|
|
2773
|
-
appendKeyValueRaw($this, sb, inner, 'elevationLoss', numberOrNull($this, path.
|
|
2773
|
+
appendKeyValueRaw($this, sb, inner, 'elevationLoss', numberOrNull($this, path.g2d_1, decimals), colon);
|
|
2774
2774
|
sb.y6(_Char___init__impl__6a9atx(44)).x6(nl);
|
|
2775
|
-
appendKeyValueRaw($this, sb, inner, 'elevationGainFiltered', numberOrNull($this, path.
|
|
2775
|
+
appendKeyValueRaw($this, sb, inner, 'elevationGainFiltered', numberOrNull($this, path.h2d_1, decimals), colon);
|
|
2776
2776
|
sb.y6(_Char___init__impl__6a9atx(44)).x6(nl);
|
|
2777
|
-
appendKeyValueRaw($this, sb, inner, 'elevationLossFiltered', numberOrNull($this, path.
|
|
2777
|
+
appendKeyValueRaw($this, sb, inner, 'elevationLossFiltered', numberOrNull($this, path.i2d_1, decimals), colon);
|
|
2778
2778
|
sb.y6(_Char___init__impl__6a9atx(44)).x6(nl);
|
|
2779
2779
|
appendKeyRaw($this, sb, inner, 'units', colon);
|
|
2780
2780
|
sb.y6(_Char___init__impl__6a9atx(123)).x6(nl);
|
|
@@ -2785,7 +2785,7 @@
|
|
|
2785
2785
|
var i = index;
|
|
2786
2786
|
index = index + 1 | 0;
|
|
2787
2787
|
var field = iterator.n();
|
|
2788
|
-
appendKeyValueRaw($this, sb, innerUnits, $this.
|
|
2788
|
+
appendKeyValueRaw($this, sb, innerUnits, $this.a2f(field.n2e_1), '"' + $this.a2f(field.o2e_1) + '"', colon);
|
|
2789
2789
|
if (!(i === get_lastIndex(fields))) {
|
|
2790
2790
|
sb.y6(_Char___init__impl__6a9atx(44));
|
|
2791
2791
|
}
|
|
@@ -2803,10 +2803,10 @@
|
|
|
2803
2803
|
var fi = index;
|
|
2804
2804
|
index = index + 1 | 0;
|
|
2805
2805
|
var field = iterator.n();
|
|
2806
|
-
appendKeyRaw($this, sb, inner, $this.
|
|
2806
|
+
appendKeyRaw($this, sb, inner, $this.a2f(field.n2e_1), colon);
|
|
2807
2807
|
sb.y6(_Char___init__impl__6a9atx(91));
|
|
2808
2808
|
var inductionVariable = 0;
|
|
2809
|
-
var last = path.
|
|
2809
|
+
var last = path.s2b_1;
|
|
2810
2810
|
if (inductionVariable < last)
|
|
2811
2811
|
do {
|
|
2812
2812
|
var i = inductionVariable;
|
|
@@ -2814,7 +2814,7 @@
|
|
|
2814
2814
|
if (i > 0) {
|
|
2815
2815
|
sb.y6(_Char___init__impl__6a9atx(44));
|
|
2816
2816
|
}
|
|
2817
|
-
sb.x6(numberOrNull($this, path.
|
|
2817
|
+
sb.x6(numberOrNull($this, path.v2e(i, field), options.y2e_1));
|
|
2818
2818
|
}
|
|
2819
2819
|
while (inductionVariable < last);
|
|
2820
2820
|
sb.y6(_Char___init__impl__6a9atx(93));
|
|
@@ -2831,7 +2831,7 @@
|
|
|
2831
2831
|
if (isNaN_0(value) || isInfinite(value)) {
|
|
2832
2832
|
tmp = 'null';
|
|
2833
2833
|
} else {
|
|
2834
|
-
tmp = CsvNumberFormat_getInstance().
|
|
2834
|
+
tmp = CsvNumberFormat_getInstance().f2e(value, decimals);
|
|
2835
2835
|
}
|
|
2836
2836
|
return tmp;
|
|
2837
2837
|
}
|
|
@@ -2844,18 +2844,18 @@
|
|
|
2844
2844
|
}
|
|
2845
2845
|
function JsonWriter() {
|
|
2846
2846
|
}
|
|
2847
|
-
protoOf(JsonWriter).
|
|
2848
|
-
var tmp0_elvis_lhs = options.
|
|
2847
|
+
protoOf(JsonWriter).b2f = function (path, options) {
|
|
2848
|
+
var tmp0_elvis_lhs = options.w2e_1;
|
|
2849
2849
|
var fields = tmp0_elvis_lhs == null ? get_entries_3() : tmp0_elvis_lhs;
|
|
2850
2850
|
var sb = StringBuilder_init_$Create$();
|
|
2851
|
-
var indent = options.
|
|
2852
|
-
var nl = options.
|
|
2853
|
-
var colon = options.
|
|
2851
|
+
var indent = options.x2e_1 ? ' ' : '';
|
|
2852
|
+
var nl = options.x2e_1 ? '\n' : '';
|
|
2853
|
+
var colon = options.x2e_1 ? ': ' : ':';
|
|
2854
2854
|
sb.y6(_Char___init__impl__6a9atx(123)).x6(nl);
|
|
2855
|
-
appendKeyValueRaw(this, sb, indent, 'size', path.
|
|
2855
|
+
appendKeyValueRaw(this, sb, indent, 'size', path.s2b_1.toString(), colon);
|
|
2856
2856
|
sb.y6(_Char___init__impl__6a9atx(44)).x6(nl);
|
|
2857
|
-
if (options.
|
|
2858
|
-
appendMeta(this, sb, path, fields, options.
|
|
2857
|
+
if (options.z2e_1) {
|
|
2858
|
+
appendMeta(this, sb, path, fields, options.y2e_1, indent, nl, colon);
|
|
2859
2859
|
sb.y6(_Char___init__impl__6a9atx(44)).x6(nl);
|
|
2860
2860
|
}
|
|
2861
2861
|
appendKeyRaw(this, sb, indent, 'fields', colon);
|
|
@@ -2863,7 +2863,7 @@
|
|
|
2863
2863
|
sb.x6(nl).y6(_Char___init__impl__6a9atx(125));
|
|
2864
2864
|
return sb.toString();
|
|
2865
2865
|
};
|
|
2866
|
-
protoOf(JsonWriter).
|
|
2866
|
+
protoOf(JsonWriter).a2f = function (value) {
|
|
2867
2867
|
var sb = StringBuilder_init_$Create$_0(value.length);
|
|
2868
2868
|
var inductionVariable = 0;
|
|
2869
2869
|
var last = value.length;
|
|
@@ -2899,17 +2899,17 @@
|
|
|
2899
2899
|
return JsonWriter_instance;
|
|
2900
2900
|
}
|
|
2901
2901
|
function DeckDetection(accepted, rejected, tallRunsTooShort) {
|
|
2902
|
-
this.
|
|
2903
|
-
this.
|
|
2904
|
-
this.
|
|
2902
|
+
this.c2f_1 = accepted;
|
|
2903
|
+
this.d2f_1 = rejected;
|
|
2904
|
+
this.e2f_1 = tallRunsTooShort;
|
|
2905
2905
|
}
|
|
2906
2906
|
protoOf(DeckDetection).toString = function () {
|
|
2907
|
-
return 'DeckDetection(accepted=' + toString_0(this.
|
|
2907
|
+
return 'DeckDetection(accepted=' + toString_0(this.c2f_1) + ', rejected=' + toString_0(this.d2f_1) + ', tallRunsTooShort=' + this.e2f_1 + ')';
|
|
2908
2908
|
};
|
|
2909
2909
|
protoOf(DeckDetection).hashCode = function () {
|
|
2910
|
-
var result = hashCode(this.
|
|
2911
|
-
result = imul(result, 31) + hashCode(this.
|
|
2912
|
-
result = imul(result, 31) + this.
|
|
2910
|
+
var result = hashCode(this.c2f_1);
|
|
2911
|
+
result = imul(result, 31) + hashCode(this.d2f_1) | 0;
|
|
2912
|
+
result = imul(result, 31) + this.e2f_1 | 0;
|
|
2913
2913
|
return result;
|
|
2914
2914
|
};
|
|
2915
2915
|
protoOf(DeckDetection).equals = function (other) {
|
|
@@ -2917,34 +2917,34 @@
|
|
|
2917
2917
|
return true;
|
|
2918
2918
|
if (!(other instanceof DeckDetection))
|
|
2919
2919
|
return false;
|
|
2920
|
-
if (!equals(this.
|
|
2920
|
+
if (!equals(this.c2f_1, other.c2f_1))
|
|
2921
2921
|
return false;
|
|
2922
|
-
if (!equals(this.
|
|
2922
|
+
if (!equals(this.d2f_1, other.d2f_1))
|
|
2923
2923
|
return false;
|
|
2924
|
-
if (!(this.
|
|
2924
|
+
if (!(this.e2f_1 === other.e2f_1))
|
|
2925
2925
|
return false;
|
|
2926
2926
|
return true;
|
|
2927
2927
|
};
|
|
2928
2928
|
function DeckCandidate(first, last, startM, endM, metrics, rejection, deckRanges) {
|
|
2929
|
-
this.
|
|
2930
|
-
this.
|
|
2931
|
-
this.
|
|
2932
|
-
this.
|
|
2933
|
-
this.
|
|
2934
|
-
this.
|
|
2935
|
-
this.
|
|
2929
|
+
this.f2f_1 = first;
|
|
2930
|
+
this.g2f_1 = last;
|
|
2931
|
+
this.h2f_1 = startM;
|
|
2932
|
+
this.i2f_1 = endM;
|
|
2933
|
+
this.j2f_1 = metrics;
|
|
2934
|
+
this.k2f_1 = rejection;
|
|
2935
|
+
this.l2f_1 = deckRanges;
|
|
2936
2936
|
}
|
|
2937
2937
|
protoOf(DeckCandidate).toString = function () {
|
|
2938
|
-
return 'DeckCandidate(first=' + this.
|
|
2938
|
+
return 'DeckCandidate(first=' + this.f2f_1 + ', last=' + this.g2f_1 + ', startM=' + this.h2f_1 + ', endM=' + this.i2f_1 + ', metrics=' + toString(this.j2f_1) + ', rejection=' + toString(this.k2f_1) + ', deckRanges=' + toString_0(this.l2f_1) + ')';
|
|
2939
2939
|
};
|
|
2940
2940
|
protoOf(DeckCandidate).hashCode = function () {
|
|
2941
|
-
var result = this.
|
|
2942
|
-
result = imul(result, 31) + this.
|
|
2943
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2944
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2945
|
-
result = imul(result, 31) + (this.
|
|
2946
|
-
result = imul(result, 31) + (this.
|
|
2947
|
-
result = imul(result, 31) + hashCode(this.
|
|
2941
|
+
var result = this.f2f_1;
|
|
2942
|
+
result = imul(result, 31) + this.g2f_1 | 0;
|
|
2943
|
+
result = imul(result, 31) + getNumberHashCode(this.h2f_1) | 0;
|
|
2944
|
+
result = imul(result, 31) + getNumberHashCode(this.i2f_1) | 0;
|
|
2945
|
+
result = imul(result, 31) + (this.j2f_1 == null ? 0 : this.j2f_1.hashCode()) | 0;
|
|
2946
|
+
result = imul(result, 31) + (this.k2f_1 == null ? 0 : this.k2f_1.hashCode()) | 0;
|
|
2947
|
+
result = imul(result, 31) + hashCode(this.l2f_1) | 0;
|
|
2948
2948
|
return result;
|
|
2949
2949
|
};
|
|
2950
2950
|
protoOf(DeckCandidate).equals = function (other) {
|
|
@@ -2952,13 +2952,9 @@
|
|
|
2952
2952
|
return true;
|
|
2953
2953
|
if (!(other instanceof DeckCandidate))
|
|
2954
2954
|
return false;
|
|
2955
|
-
if (!(this.
|
|
2956
|
-
return false;
|
|
2957
|
-
if (!(this.e2f_1 === other.e2f_1))
|
|
2958
|
-
return false;
|
|
2959
|
-
if (!equals(this.f2f_1, other.f2f_1))
|
|
2955
|
+
if (!(this.f2f_1 === other.f2f_1))
|
|
2960
2956
|
return false;
|
|
2961
|
-
if (!
|
|
2957
|
+
if (!(this.g2f_1 === other.g2f_1))
|
|
2962
2958
|
return false;
|
|
2963
2959
|
if (!equals(this.h2f_1, other.h2f_1))
|
|
2964
2960
|
return false;
|
|
@@ -2966,11 +2962,15 @@
|
|
|
2966
2962
|
return false;
|
|
2967
2963
|
if (!equals(this.j2f_1, other.j2f_1))
|
|
2968
2964
|
return false;
|
|
2965
|
+
if (!equals(this.k2f_1, other.k2f_1))
|
|
2966
|
+
return false;
|
|
2967
|
+
if (!equals(this.l2f_1, other.l2f_1))
|
|
2968
|
+
return false;
|
|
2969
2969
|
return true;
|
|
2970
2970
|
};
|
|
2971
2971
|
function Companion_1() {
|
|
2972
2972
|
}
|
|
2973
|
-
protoOf(Companion_1).
|
|
2973
|
+
protoOf(Companion_1).m2f = function (mnsM, mntM) {
|
|
2974
2974
|
// Inline function 'kotlin.require' call
|
|
2975
2975
|
if (!(mnsM.length === mntM.length)) {
|
|
2976
2976
|
var message = 'MNS and MNT sizes differ: ' + mnsM.length + ', ' + mntM.length;
|
|
@@ -2991,23 +2991,23 @@
|
|
|
2991
2991
|
return Companion_instance_2;
|
|
2992
2992
|
}
|
|
2993
2993
|
function DeckProfile(mnhM, mnsM, mntM) {
|
|
2994
|
-
this.
|
|
2995
|
-
this.
|
|
2996
|
-
this.
|
|
2994
|
+
this.n2f_1 = mnhM;
|
|
2995
|
+
this.o2f_1 = mnsM;
|
|
2996
|
+
this.p2f_1 = mntM;
|
|
2997
2997
|
// Inline function 'kotlin.require' call
|
|
2998
|
-
if (!(this.
|
|
2999
|
-
var message = 'MNH, MNS and MNT must have one sample per station: ' + this.
|
|
2998
|
+
if (!(this.n2f_1.length === this.o2f_1.length && this.o2f_1.length === this.p2f_1.length)) {
|
|
2999
|
+
var message = 'MNH, MNS and MNT must have one sample per station: ' + this.n2f_1.length + ', ' + this.o2f_1.length + ', ' + this.p2f_1.length;
|
|
3000
3000
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
3001
3001
|
}
|
|
3002
3002
|
}
|
|
3003
3003
|
protoOf(DeckProfile).o = function () {
|
|
3004
|
-
return this.
|
|
3004
|
+
return this.n2f_1.length;
|
|
3005
3005
|
};
|
|
3006
3006
|
function SurfaceState(mnh, mf, rough, clean) {
|
|
3007
|
-
this.
|
|
3008
|
-
this.
|
|
3009
|
-
this.
|
|
3010
|
-
this.
|
|
3007
|
+
this.q2f_1 = mnh;
|
|
3008
|
+
this.r2f_1 = mf;
|
|
3009
|
+
this.s2f_1 = rough;
|
|
3010
|
+
this.t2f_1 = clean;
|
|
3011
3011
|
}
|
|
3012
3012
|
function roughness($this, mns, mf, half) {
|
|
3013
3013
|
var tmp = 0;
|
|
@@ -3021,7 +3021,7 @@
|
|
|
3021
3021
|
tmp = tmp + 1 | 0;
|
|
3022
3022
|
}
|
|
3023
3023
|
var sq = tmp_1;
|
|
3024
|
-
var mean = $this.
|
|
3024
|
+
var mean = $this.u2f(sq, half);
|
|
3025
3025
|
var tmp_3 = 0;
|
|
3026
3026
|
var tmp_4 = mns.length;
|
|
3027
3027
|
var tmp_5 = new Float64Array(tmp_4);
|
|
@@ -3066,7 +3066,7 @@
|
|
|
3066
3066
|
if (tmp_0) {
|
|
3067
3067
|
tmp = NaN;
|
|
3068
3068
|
} else {
|
|
3069
|
-
tmp = $this.
|
|
3069
|
+
tmp = $this.v2f(values, 0.95);
|
|
3070
3070
|
}
|
|
3071
3071
|
return tmp;
|
|
3072
3072
|
}
|
|
@@ -3095,16 +3095,16 @@
|
|
|
3095
3095
|
return tmp;
|
|
3096
3096
|
}
|
|
3097
3097
|
function sam$kotlin_Comparator$0(function_0) {
|
|
3098
|
-
this.
|
|
3098
|
+
this.w2f_1 = function_0;
|
|
3099
3099
|
}
|
|
3100
3100
|
protoOf(sam$kotlin_Comparator$0).mb = function (a, b) {
|
|
3101
|
-
return this.
|
|
3101
|
+
return this.w2f_1(a, b);
|
|
3102
3102
|
};
|
|
3103
3103
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
3104
3104
|
return this.mb(a, b);
|
|
3105
3105
|
};
|
|
3106
3106
|
protoOf(sam$kotlin_Comparator$0).h2 = function () {
|
|
3107
|
-
return this.
|
|
3107
|
+
return this.w2f_1;
|
|
3108
3108
|
};
|
|
3109
3109
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
3110
3110
|
var tmp;
|
|
@@ -3127,8 +3127,8 @@
|
|
|
3127
3127
|
function detect$classify($options, slope, clean, mns, mnh, rough, mnt, n, step, mf, span, fraction) {
|
|
3128
3128
|
var a = span.v_1;
|
|
3129
3129
|
var b = span.w_1;
|
|
3130
|
-
var short = (b - a | 0) <= $options.
|
|
3131
|
-
var h = $options.
|
|
3130
|
+
var short = (b - a | 0) <= $options.w2g();
|
|
3131
|
+
var h = $options.x2g();
|
|
3132
3132
|
var tmp;
|
|
3133
3133
|
if (short) {
|
|
3134
3134
|
tmp = new Float64Array(0);
|
|
@@ -3148,8 +3148,8 @@
|
|
|
3148
3148
|
tmp = tmp_2;
|
|
3149
3149
|
}
|
|
3150
3150
|
var rawSlopes = tmp;
|
|
3151
|
-
var cleanFraction = short ? NaN : DeckDetector_instance.
|
|
3152
|
-
var cleanSlopes = !short && $options.
|
|
3151
|
+
var cleanFraction = short ? NaN : DeckDetector_instance.y2g(clean, a, b, h);
|
|
3152
|
+
var cleanSlopes = !short && $options.p2g_1 ? DeckDetector_instance.z2g(mns, mnh, clean, cleanFraction, a, b, $options) : null;
|
|
3153
3153
|
var slopes = cleanSlopes == null ? rawSlopes : cleanSlopes;
|
|
3154
3154
|
var slopeP95 = p95OrNaN(DeckDetector_instance, slopes);
|
|
3155
3155
|
var tmp_4;
|
|
@@ -3169,7 +3169,7 @@
|
|
|
3169
3169
|
do {
|
|
3170
3170
|
var element = inductionVariable;
|
|
3171
3171
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3172
|
-
if (mnh[element] > $options.
|
|
3172
|
+
if (mnh[element] > $options.y2f_1) {
|
|
3173
3173
|
destination.k(element);
|
|
3174
3174
|
}
|
|
3175
3175
|
}
|
|
@@ -3329,7 +3329,7 @@
|
|
|
3329
3329
|
}
|
|
3330
3330
|
var tmp2_elvis_lhs = maxOrNull(destination_5);
|
|
3331
3331
|
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);
|
|
3332
|
-
var rejection = stoppedOnNaN || isNaN_0(mntDrop) ? DeckRejection_NO_DATA_getInstance() : !(mntDrop > $options.
|
|
3332
|
+
var rejection = stoppedOnNaN || isNaN_0(mntDrop) ? DeckRejection_NO_DATA_getInstance() : !(mntDrop > $options.l2g_1) ? DeckRejection_NO_CANYON_getInstance() : short && isNaN_0(roughness) ? DeckRejection_NO_DATA_getInstance() : short ? roughness < $options.k2g_1 ? null : DeckRejection_SHORT_ROUGH_getInstance() : isNaN_0(slopeP95) ? DeckRejection_NO_DATA_getInstance() : slopeP95 <= $options.h2g_1 && (b - a | 0) * step >= $options.i2g_1 ? null : DeckRejection_STEEP_getInstance();
|
|
3333
3333
|
return to(metrics, rejection);
|
|
3334
3334
|
}
|
|
3335
3335
|
function DeckDetector$detect$lambda($mf) {
|
|
@@ -3339,8 +3339,8 @@
|
|
|
3339
3339
|
}
|
|
3340
3340
|
function DeckDetector$detect$lambda_0(a, b) {
|
|
3341
3341
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
3342
|
-
var tmp = a.
|
|
3343
|
-
var tmp$ret$2 = b.
|
|
3342
|
+
var tmp = a.f2f_1;
|
|
3343
|
+
var tmp$ret$2 = b.f2f_1;
|
|
3344
3344
|
return compareValues(tmp, tmp$ret$2);
|
|
3345
3345
|
}
|
|
3346
3346
|
function DeckDetector$detect$lambda_1($this) {
|
|
@@ -3351,8 +3351,8 @@
|
|
|
3351
3351
|
tmp = previousCompare;
|
|
3352
3352
|
} else {
|
|
3353
3353
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
3354
|
-
var tmp_0 = a.
|
|
3355
|
-
var tmp$ret$2 = b.
|
|
3354
|
+
var tmp_0 = a.g2f_1;
|
|
3355
|
+
var tmp$ret$2 = b.g2f_1;
|
|
3356
3356
|
tmp = compareValues(tmp_0, tmp$ret$2);
|
|
3357
3357
|
}
|
|
3358
3358
|
return tmp;
|
|
@@ -3371,33 +3371,33 @@
|
|
|
3371
3371
|
}
|
|
3372
3372
|
function DeckDetector() {
|
|
3373
3373
|
}
|
|
3374
|
-
protoOf(DeckDetector).
|
|
3374
|
+
protoOf(DeckDetector).a2h = function (profile, options) {
|
|
3375
3375
|
var n = profile.o();
|
|
3376
|
-
var mns = profile.
|
|
3377
|
-
var mnt = profile.
|
|
3378
|
-
var step = options.
|
|
3376
|
+
var mns = profile.o2f_1;
|
|
3377
|
+
var mnt = profile.p2f_1;
|
|
3378
|
+
var step = options.x2f_1;
|
|
3379
3379
|
if (n === 0)
|
|
3380
3380
|
return new DeckDetection(emptyList(), emptyList(), 0);
|
|
3381
|
-
var state = this.
|
|
3382
|
-
var mnh = state.
|
|
3383
|
-
var mf = state.
|
|
3384
|
-
var rough = state.
|
|
3381
|
+
var state = this.b2h(profile, options);
|
|
3382
|
+
var mnh = state.q2f_1;
|
|
3383
|
+
var mf = state.r2f_1;
|
|
3384
|
+
var rough = state.s2f_1;
|
|
3385
3385
|
var tmp = 0;
|
|
3386
3386
|
var tmp_0 = booleanArray(n);
|
|
3387
3387
|
while (tmp < n) {
|
|
3388
3388
|
var tmp_1 = tmp;
|
|
3389
|
-
tmp_0[tmp_1] = mnh[tmp_1] > options.
|
|
3389
|
+
tmp_0[tmp_1] = mnh[tmp_1] > options.y2f_1;
|
|
3390
3390
|
tmp = tmp + 1 | 0;
|
|
3391
3391
|
}
|
|
3392
3392
|
var tall = tmp_0;
|
|
3393
|
-
var tallRuns = this.
|
|
3393
|
+
var tallRuns = this.c2h(tall);
|
|
3394
3394
|
// Inline function 'kotlin.collections.filter' call
|
|
3395
3395
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3396
3396
|
var destination = ArrayList_init_$Create$();
|
|
3397
3397
|
var _iterator__ex2g4s = tallRuns.l();
|
|
3398
3398
|
while (_iterator__ex2g4s.m()) {
|
|
3399
3399
|
var element = _iterator__ex2g4s.n();
|
|
3400
|
-
if (((element.w_1 - element.v_1 | 0) + 1 | 0) >= options.
|
|
3400
|
+
if (((element.w_1 - element.v_1 | 0) + 1 | 0) >= options.d2h()) {
|
|
3401
3401
|
destination.k(element);
|
|
3402
3402
|
}
|
|
3403
3403
|
}
|
|
@@ -3430,7 +3430,7 @@
|
|
|
3430
3430
|
do {
|
|
3431
3431
|
var element_0 = inductionVariable;
|
|
3432
3432
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3433
|
-
if (rough[element_0] < options.
|
|
3433
|
+
if (rough[element_0] < options.c2g_1) {
|
|
3434
3434
|
count = count + 1 | 0;
|
|
3435
3435
|
checkCountOverflow(count);
|
|
3436
3436
|
}
|
|
@@ -3470,11 +3470,11 @@
|
|
|
3470
3470
|
}
|
|
3471
3471
|
var unknown = tmp$ret$6;
|
|
3472
3472
|
var fraction = smooth / len;
|
|
3473
|
-
if (fraction >= options.
|
|
3473
|
+
if (fraction >= options.d2g_1) {
|
|
3474
3474
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3475
3475
|
var element_2 = to(r, fraction);
|
|
3476
3476
|
kept.k(element_2);
|
|
3477
|
-
} else if ((smooth + unknown | 0) / len >= options.
|
|
3477
|
+
} else if ((smooth + unknown | 0) / len >= options.d2g_1) {
|
|
3478
3478
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3479
3479
|
noDataRuns.k(r);
|
|
3480
3480
|
} else {
|
|
@@ -3482,7 +3482,7 @@
|
|
|
3482
3482
|
roughRuns.k(r);
|
|
3483
3483
|
}
|
|
3484
3484
|
}
|
|
3485
|
-
var gap = options.
|
|
3485
|
+
var gap = options.e2h();
|
|
3486
3486
|
var merged = ArrayList_init_$Create$();
|
|
3487
3487
|
var _iterator__ex2g4s_1 = kept.l();
|
|
3488
3488
|
while (_iterator__ex2g4s_1.m()) {
|
|
@@ -3503,15 +3503,15 @@
|
|
|
3503
3503
|
merged.k(element_3);
|
|
3504
3504
|
}
|
|
3505
3505
|
}
|
|
3506
|
-
var island = options.
|
|
3506
|
+
var island = options.f2h();
|
|
3507
3507
|
var spans = ArrayList_init_$Create$();
|
|
3508
3508
|
var _iterator__ex2g4s_2 = merged.l();
|
|
3509
3509
|
while (_iterator__ex2g4s_2.m()) {
|
|
3510
3510
|
var _destruct__k2r9zo_0 = _iterator__ex2g4s_2.n();
|
|
3511
3511
|
var r_1 = _destruct__k2r9zo_0.md();
|
|
3512
3512
|
var f_0 = _destruct__k2r9zo_0.nd();
|
|
3513
|
-
var a_0 = this.
|
|
3514
|
-
var b = this.
|
|
3513
|
+
var a_0 = this.h2h(mnh, r_1.v_1, -1, options.f2g_1, island, options.g2h());
|
|
3514
|
+
var b = this.h2h(mnh, r_1.w_1, 1, options.f2g_1, island, options.g2h());
|
|
3515
3515
|
var prev_0 = lastOrNull(spans);
|
|
3516
3516
|
if (!(prev_0 == null) && a_0 <= prev_0.kd_1.w_1) {
|
|
3517
3517
|
var tmp_6 = spans.o() - 1 | 0;
|
|
@@ -3529,16 +3529,16 @@
|
|
|
3529
3529
|
spans.k(element_4);
|
|
3530
3530
|
}
|
|
3531
3531
|
}
|
|
3532
|
-
var slope = this.
|
|
3533
|
-
var clean = state.
|
|
3532
|
+
var slope = this.i2h(mf, options.x2g(), step);
|
|
3533
|
+
var clean = state.t2f_1;
|
|
3534
3534
|
var parts = ArrayList_init_$Create$();
|
|
3535
3535
|
var _iterator__ex2g4s_3 = kept.l();
|
|
3536
3536
|
while (_iterator__ex2g4s_3.m()) {
|
|
3537
3537
|
var _destruct__k2r9zo_1 = _iterator__ex2g4s_3.n();
|
|
3538
3538
|
var r_2 = _destruct__k2r9zo_1.md();
|
|
3539
3539
|
var f_1 = _destruct__k2r9zo_1.nd();
|
|
3540
|
-
var a_3 = this.
|
|
3541
|
-
var b_0 = this.
|
|
3540
|
+
var a_3 = this.h2h(mnh, r_2.v_1, -1, options.f2g_1, island, options.g2h());
|
|
3541
|
+
var b_0 = this.h2h(mnh, r_2.w_1, 1, options.f2g_1, island, options.g2h());
|
|
3542
3542
|
var prev_1 = lastOrNull(parts);
|
|
3543
3543
|
if (!(prev_1 == null) && a_3 <= prev_1.kd_1.w_1) {
|
|
3544
3544
|
var tmp_8 = parts.o() - 1 | 0;
|
|
@@ -3566,7 +3566,7 @@
|
|
|
3566
3566
|
var metrics = _destruct__k2r9zo_3.md();
|
|
3567
3567
|
var rejection = _destruct__k2r9zo_3.nd();
|
|
3568
3568
|
var tmp_10;
|
|
3569
|
-
if (options.
|
|
3569
|
+
if (options.v2g_1 && equals(rejection, DeckRejection_STEEP_getInstance())) {
|
|
3570
3570
|
// Inline function 'kotlin.collections.filter' call
|
|
3571
3571
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3572
3572
|
var destination_0 = ArrayList_init_$Create$();
|
|
@@ -3606,7 +3606,7 @@
|
|
|
3606
3606
|
var tmp_12 = booleanArray(n);
|
|
3607
3607
|
while (tmp_11 < n) {
|
|
3608
3608
|
var tmp_13 = tmp_11;
|
|
3609
|
-
tmp_12[tmp_13] = mnh[tmp_13] > options.
|
|
3609
|
+
tmp_12[tmp_13] = mnh[tmp_13] > options.f2g_1;
|
|
3610
3610
|
tmp_11 = tmp_11 + 1 | 0;
|
|
3611
3611
|
}
|
|
3612
3612
|
var deckMask = tmp_12;
|
|
@@ -3616,10 +3616,10 @@
|
|
|
3616
3616
|
var span_0 = _destruct__k2r9zo_5.md();
|
|
3617
3617
|
var rejection_0 = _destruct__k2r9zo_5.gi();
|
|
3618
3618
|
if (rejection_0 == null) {
|
|
3619
|
-
this.
|
|
3619
|
+
this.j2h(deckMask, span_0, island, DeckDetector$detect$lambda(mf));
|
|
3620
3620
|
}
|
|
3621
3621
|
}
|
|
3622
|
-
var deckRuns = this.
|
|
3622
|
+
var deckRuns = this.c2h(deckMask);
|
|
3623
3623
|
var accepted = ArrayList_init_$Create$();
|
|
3624
3624
|
var rejected = ArrayList_init_$Create$();
|
|
3625
3625
|
var _iterator__ex2g4s_8 = classified.l();
|
|
@@ -3640,7 +3640,7 @@
|
|
|
3640
3640
|
var _iterator__ex2g4s_9 = deckRuns.l();
|
|
3641
3641
|
while (_iterator__ex2g4s_9.m()) {
|
|
3642
3642
|
var element_9 = _iterator__ex2g4s_9.n();
|
|
3643
|
-
if ((((element_9.w_1 - element_9.v_1 | 0) + 1 | 0) >= options.
|
|
3643
|
+
if ((((element_9.w_1 - element_9.v_1 | 0) + 1 | 0) >= options.k2h() || (b_1 - a_6 | 0) <= options.l2h()) && element_9.v_1 <= b_1 && element_9.w_1 >= a_6) {
|
|
3644
3644
|
destination_1.k(element_9);
|
|
3645
3645
|
}
|
|
3646
3646
|
}
|
|
@@ -3671,14 +3671,14 @@
|
|
|
3671
3671
|
rejected.k(candidate);
|
|
3672
3672
|
}
|
|
3673
3673
|
}
|
|
3674
|
-
var _iterator__ex2g4s_11 = this.
|
|
3674
|
+
var _iterator__ex2g4s_11 = this.m2h(roughRuns, gap).l();
|
|
3675
3675
|
while (_iterator__ex2g4s_11.m()) {
|
|
3676
3676
|
var g = _iterator__ex2g4s_11.n();
|
|
3677
3677
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3678
3678
|
var element_10 = new DeckCandidate(g.v_1, g.w_1, g.v_1 * step, g.w_1 * step, null, DeckRejection_ROUGH_getInstance(), emptyList());
|
|
3679
3679
|
rejected.k(element_10);
|
|
3680
3680
|
}
|
|
3681
|
-
var _iterator__ex2g4s_12 = this.
|
|
3681
|
+
var _iterator__ex2g4s_12 = this.m2h(noDataRuns, gap).l();
|
|
3682
3682
|
while (_iterator__ex2g4s_12.m()) {
|
|
3683
3683
|
var g_0 = _iterator__ex2g4s_12.n();
|
|
3684
3684
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
@@ -3694,40 +3694,40 @@
|
|
|
3694
3694
|
sortWith(rejected, tmp$ret$40);
|
|
3695
3695
|
return new DeckDetection(accepted, rejected, tooShort);
|
|
3696
3696
|
};
|
|
3697
|
-
protoOf(DeckDetector).
|
|
3697
|
+
protoOf(DeckDetector).b2h = function (profile, options) {
|
|
3698
3698
|
var n = profile.o();
|
|
3699
|
-
var mns = profile.
|
|
3700
|
-
var mnt = profile.
|
|
3699
|
+
var mns = profile.o2f_1;
|
|
3700
|
+
var mnt = profile.p2f_1;
|
|
3701
3701
|
var tmp;
|
|
3702
|
-
if (options.
|
|
3703
|
-
var tol = options.
|
|
3702
|
+
if (options.s2g_1) {
|
|
3703
|
+
var tol = options.t2g_1;
|
|
3704
3704
|
var tmp_0 = 0;
|
|
3705
3705
|
var tmp_1 = new Float64Array(n);
|
|
3706
3706
|
while (tmp_0 < n) {
|
|
3707
3707
|
var tmp_2 = tmp_0;
|
|
3708
|
-
tmp_1[tmp_2] = mnt[tmp_2] > mns[tmp_2] + tol ? Infinity : profile.
|
|
3708
|
+
tmp_1[tmp_2] = mnt[tmp_2] > mns[tmp_2] + tol ? Infinity : profile.n2f_1[tmp_2];
|
|
3709
3709
|
tmp_0 = tmp_0 + 1 | 0;
|
|
3710
3710
|
}
|
|
3711
3711
|
tmp = tmp_1;
|
|
3712
3712
|
} else {
|
|
3713
|
-
tmp = profile.
|
|
3713
|
+
tmp = profile.n2f_1;
|
|
3714
3714
|
}
|
|
3715
3715
|
var mnh = tmp;
|
|
3716
|
-
var mf = this.
|
|
3717
|
-
var rough = roughness(this, mns, mf, options.
|
|
3716
|
+
var mf = this.o2h(mns, options.n2h() / 2 | 0);
|
|
3717
|
+
var rough = roughness(this, mns, mf, options.p2h() / 2 | 0);
|
|
3718
3718
|
// Inline function 'kotlin.let' call
|
|
3719
|
-
var m = this.
|
|
3719
|
+
var m = this.q2h(rough, options.p2h() / 2 | 0);
|
|
3720
3720
|
var tmp_3 = 0;
|
|
3721
3721
|
var tmp_4 = booleanArray(n);
|
|
3722
3722
|
while (tmp_3 < n) {
|
|
3723
3723
|
var tmp_5 = tmp_3;
|
|
3724
|
-
tmp_4[tmp_5] = m[tmp_5] < options.
|
|
3724
|
+
tmp_4[tmp_5] = m[tmp_5] < options.c2g_1;
|
|
3725
3725
|
tmp_3 = tmp_3 + 1 | 0;
|
|
3726
3726
|
}
|
|
3727
3727
|
var clean = tmp_4;
|
|
3728
3728
|
return new SurfaceState(mnh, mf, rough, clean);
|
|
3729
3729
|
};
|
|
3730
|
-
protoOf(DeckDetector).
|
|
3730
|
+
protoOf(DeckDetector).y2g = function (clean, a, b, h) {
|
|
3731
3731
|
var tmp;
|
|
3732
3732
|
if ((b - h | 0) < (a + h | 0)) {
|
|
3733
3733
|
tmp = NaN;
|
|
@@ -3765,9 +3765,9 @@
|
|
|
3765
3765
|
}
|
|
3766
3766
|
return tmp;
|
|
3767
3767
|
};
|
|
3768
|
-
protoOf(DeckDetector).
|
|
3768
|
+
protoOf(DeckDetector).z2g = function (mns, mnh, clean, cleanFraction, a, b, options) {
|
|
3769
3769
|
var n = mns.length;
|
|
3770
|
-
var h = options.
|
|
3770
|
+
var h = options.x2g();
|
|
3771
3771
|
if ((b - h | 0) < (a + h | 0))
|
|
3772
3772
|
return null;
|
|
3773
3773
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3786,11 +3786,11 @@
|
|
|
3786
3786
|
}
|
|
3787
3787
|
while (!(element === last));
|
|
3788
3788
|
var inSpan = destination;
|
|
3789
|
-
if (inSpan.o() < options.
|
|
3789
|
+
if (inSpan.o() < options.r2g_1)
|
|
3790
3790
|
return null;
|
|
3791
|
-
if (!(cleanFraction >= options.
|
|
3791
|
+
if (!(cleanFraction >= options.q2g_1))
|
|
3792
3792
|
return null;
|
|
3793
|
-
var medianHalf = options.
|
|
3793
|
+
var medianHalf = options.n2h() / 2 | 0;
|
|
3794
3794
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
3795
3795
|
var b_0 = a - medianHalf | 0;
|
|
3796
3796
|
var lo = Math.max(0, b_0);
|
|
@@ -3827,7 +3827,7 @@
|
|
|
3827
3827
|
do {
|
|
3828
3828
|
var element_0 = inductionVariable_1;
|
|
3829
3829
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
3830
|
-
if (mnh[element_0] <= options.
|
|
3830
|
+
if (mnh[element_0] <= options.u2g_1) {
|
|
3831
3831
|
tmp$ret$5 = true;
|
|
3832
3832
|
break $l$block_0;
|
|
3833
3833
|
}
|
|
@@ -3847,7 +3847,7 @@
|
|
|
3847
3847
|
while (inductionVariable_2 < c1);
|
|
3848
3848
|
}
|
|
3849
3849
|
while (inductionVariable_0 < last_0);
|
|
3850
|
-
var mfClean = this.
|
|
3850
|
+
var mfClean = this.o2h(x, medianHalf);
|
|
3851
3851
|
var tmp_0 = 0;
|
|
3852
3852
|
var tmp_1 = ((b - h | 0) - (a + h | 0) | 0) + 1 | 0;
|
|
3853
3853
|
var tmp_2 = new Float64Array(tmp_1);
|
|
@@ -3855,13 +3855,13 @@
|
|
|
3855
3855
|
var tmp_3 = tmp_0;
|
|
3856
3856
|
var k_0 = (a + h | 0) + tmp_3 | 0;
|
|
3857
3857
|
// Inline function 'kotlin.math.abs' call
|
|
3858
|
-
var x_0 = (mfClean[(k_0 + h | 0) - lo | 0] - mfClean[(k_0 - h | 0) - lo | 0]) / (imul(2, h) * options.
|
|
3858
|
+
var x_0 = (mfClean[(k_0 + h | 0) - lo | 0] - mfClean[(k_0 - h | 0) - lo | 0]) / (imul(2, h) * options.x2f_1);
|
|
3859
3859
|
tmp_2[tmp_3] = Math.abs(x_0);
|
|
3860
3860
|
tmp_0 = tmp_0 + 1 | 0;
|
|
3861
3861
|
}
|
|
3862
3862
|
return tmp_2;
|
|
3863
3863
|
};
|
|
3864
|
-
protoOf(DeckDetector).
|
|
3864
|
+
protoOf(DeckDetector).h2h = function (mnh, from, dir, threshold, maxIsland, maxSteps) {
|
|
3865
3865
|
var n = mnh.length;
|
|
3866
3866
|
var ok = DeckDetector$extend$lambda(n, mnh, threshold);
|
|
3867
3867
|
var k = from;
|
|
@@ -3895,7 +3895,7 @@
|
|
|
3895
3895
|
}
|
|
3896
3896
|
return abs(k - from | 0) > maxSteps ? from : k;
|
|
3897
3897
|
};
|
|
3898
|
-
protoOf(DeckDetector).
|
|
3898
|
+
protoOf(DeckDetector).j2h = function (mask, span, maxHole, fill) {
|
|
3899
3899
|
var k = span.v_1;
|
|
3900
3900
|
$l$loop: while (k <= span.w_1) {
|
|
3901
3901
|
if (mask[k]) {
|
|
@@ -3955,7 +3955,7 @@
|
|
|
3955
3955
|
k = end + 1 | 0;
|
|
3956
3956
|
}
|
|
3957
3957
|
};
|
|
3958
|
-
protoOf(DeckDetector).
|
|
3958
|
+
protoOf(DeckDetector).o2h = function (x, half) {
|
|
3959
3959
|
var n = x.length;
|
|
3960
3960
|
var window_0 = new Float64Array(imul(2, half) + 1 | 0);
|
|
3961
3961
|
var tmp = 0;
|
|
@@ -3989,7 +3989,7 @@
|
|
|
3989
3989
|
}
|
|
3990
3990
|
return tmp_0;
|
|
3991
3991
|
};
|
|
3992
|
-
protoOf(DeckDetector).
|
|
3992
|
+
protoOf(DeckDetector).u2f = function (x, half) {
|
|
3993
3993
|
var n = x.length;
|
|
3994
3994
|
var tmp = 0;
|
|
3995
3995
|
var tmp_0 = new Float64Array(n);
|
|
@@ -4010,7 +4010,7 @@
|
|
|
4010
4010
|
}
|
|
4011
4011
|
return tmp_0;
|
|
4012
4012
|
};
|
|
4013
|
-
protoOf(DeckDetector).
|
|
4013
|
+
protoOf(DeckDetector).q2h = function (x, half) {
|
|
4014
4014
|
var n = x.length;
|
|
4015
4015
|
var tmp = 0;
|
|
4016
4016
|
var tmp_0 = new Float64Array(n);
|
|
@@ -4041,7 +4041,7 @@
|
|
|
4041
4041
|
}
|
|
4042
4042
|
return tmp_0;
|
|
4043
4043
|
};
|
|
4044
|
-
protoOf(DeckDetector).
|
|
4044
|
+
protoOf(DeckDetector).i2h = function (x, h, stepM) {
|
|
4045
4045
|
var n = x.length;
|
|
4046
4046
|
var tmp = 0;
|
|
4047
4047
|
var tmp_0 = new Float64Array(n);
|
|
@@ -4058,7 +4058,7 @@
|
|
|
4058
4058
|
}
|
|
4059
4059
|
return tmp_0;
|
|
4060
4060
|
};
|
|
4061
|
-
protoOf(DeckDetector).
|
|
4061
|
+
protoOf(DeckDetector).c2h = function (mask) {
|
|
4062
4062
|
var out = ArrayList_init_$Create$();
|
|
4063
4063
|
var start = -1;
|
|
4064
4064
|
var inductionVariable = 0;
|
|
@@ -4084,7 +4084,7 @@
|
|
|
4084
4084
|
}
|
|
4085
4085
|
return out;
|
|
4086
4086
|
};
|
|
4087
|
-
protoOf(DeckDetector).
|
|
4087
|
+
protoOf(DeckDetector).m2h = function (rs, gapStations) {
|
|
4088
4088
|
var out = ArrayList_init_$Create$();
|
|
4089
4089
|
var _iterator__ex2g4s = rs.l();
|
|
4090
4090
|
while (_iterator__ex2g4s.m()) {
|
|
@@ -4104,7 +4104,7 @@
|
|
|
4104
4104
|
}
|
|
4105
4105
|
return out;
|
|
4106
4106
|
};
|
|
4107
|
-
protoOf(DeckDetector).
|
|
4107
|
+
protoOf(DeckDetector).v2f = function (values, q) {
|
|
4108
4108
|
var s = sortedArray(values);
|
|
4109
4109
|
var rank = (s.length - 1 | 0) * q;
|
|
4110
4110
|
// Inline function 'kotlin.math.floor' call
|
|
@@ -4121,33 +4121,33 @@
|
|
|
4121
4121
|
return DeckDetector_instance;
|
|
4122
4122
|
}
|
|
4123
4123
|
function DeckMetrics(lengthM, slopeP95, slopeMax, rawSlopeP95, cleanFraction, slopeOnCleanDeck, roughnessM, smoothFraction, canyonM, mntDropM, deckTopM) {
|
|
4124
|
-
this.
|
|
4125
|
-
this.
|
|
4126
|
-
this.
|
|
4127
|
-
this.
|
|
4128
|
-
this.
|
|
4129
|
-
this.
|
|
4130
|
-
this.
|
|
4131
|
-
this.
|
|
4132
|
-
this.
|
|
4133
|
-
this.
|
|
4134
|
-
this.
|
|
4124
|
+
this.r2h_1 = lengthM;
|
|
4125
|
+
this.s2h_1 = slopeP95;
|
|
4126
|
+
this.t2h_1 = slopeMax;
|
|
4127
|
+
this.u2h_1 = rawSlopeP95;
|
|
4128
|
+
this.v2h_1 = cleanFraction;
|
|
4129
|
+
this.w2h_1 = slopeOnCleanDeck;
|
|
4130
|
+
this.x2h_1 = roughnessM;
|
|
4131
|
+
this.y2h_1 = smoothFraction;
|
|
4132
|
+
this.z2h_1 = canyonM;
|
|
4133
|
+
this.a2i_1 = mntDropM;
|
|
4134
|
+
this.b2i_1 = deckTopM;
|
|
4135
4135
|
}
|
|
4136
4136
|
protoOf(DeckMetrics).toString = function () {
|
|
4137
|
-
return 'DeckMetrics(lengthM=' + this.
|
|
4137
|
+
return 'DeckMetrics(lengthM=' + this.r2h_1 + ', slopeP95=' + this.s2h_1 + ', slopeMax=' + this.t2h_1 + ', rawSlopeP95=' + this.u2h_1 + ', cleanFraction=' + this.v2h_1 + ', slopeOnCleanDeck=' + this.w2h_1 + ', roughnessM=' + this.x2h_1 + ', smoothFraction=' + this.y2h_1 + ', canyonM=' + this.z2h_1 + ', mntDropM=' + this.a2i_1 + ', deckTopM=' + this.b2i_1 + ')';
|
|
4138
4138
|
};
|
|
4139
4139
|
protoOf(DeckMetrics).hashCode = function () {
|
|
4140
|
-
var result = getNumberHashCode(this.
|
|
4141
|
-
result = imul(result, 31) + getNumberHashCode(this.q2h_1) | 0;
|
|
4142
|
-
result = imul(result, 31) + getNumberHashCode(this.r2h_1) | 0;
|
|
4140
|
+
var result = getNumberHashCode(this.r2h_1);
|
|
4143
4141
|
result = imul(result, 31) + getNumberHashCode(this.s2h_1) | 0;
|
|
4144
4142
|
result = imul(result, 31) + getNumberHashCode(this.t2h_1) | 0;
|
|
4145
|
-
result = imul(result, 31) +
|
|
4143
|
+
result = imul(result, 31) + getNumberHashCode(this.u2h_1) | 0;
|
|
4146
4144
|
result = imul(result, 31) + getNumberHashCode(this.v2h_1) | 0;
|
|
4147
|
-
result = imul(result, 31) +
|
|
4145
|
+
result = imul(result, 31) + getBooleanHashCode(this.w2h_1) | 0;
|
|
4148
4146
|
result = imul(result, 31) + getNumberHashCode(this.x2h_1) | 0;
|
|
4149
4147
|
result = imul(result, 31) + getNumberHashCode(this.y2h_1) | 0;
|
|
4150
4148
|
result = imul(result, 31) + getNumberHashCode(this.z2h_1) | 0;
|
|
4149
|
+
result = imul(result, 31) + getNumberHashCode(this.a2i_1) | 0;
|
|
4150
|
+
result = imul(result, 31) + getNumberHashCode(this.b2i_1) | 0;
|
|
4151
4151
|
return result;
|
|
4152
4152
|
};
|
|
4153
4153
|
protoOf(DeckMetrics).equals = function (other) {
|
|
@@ -4155,21 +4155,17 @@
|
|
|
4155
4155
|
return true;
|
|
4156
4156
|
if (!(other instanceof DeckMetrics))
|
|
4157
4157
|
return false;
|
|
4158
|
-
if (!equals(this.p2h_1, other.p2h_1))
|
|
4159
|
-
return false;
|
|
4160
|
-
if (!equals(this.q2h_1, other.q2h_1))
|
|
4161
|
-
return false;
|
|
4162
4158
|
if (!equals(this.r2h_1, other.r2h_1))
|
|
4163
4159
|
return false;
|
|
4164
4160
|
if (!equals(this.s2h_1, other.s2h_1))
|
|
4165
4161
|
return false;
|
|
4166
4162
|
if (!equals(this.t2h_1, other.t2h_1))
|
|
4167
4163
|
return false;
|
|
4168
|
-
if (!(this.u2h_1
|
|
4164
|
+
if (!equals(this.u2h_1, other.u2h_1))
|
|
4169
4165
|
return false;
|
|
4170
4166
|
if (!equals(this.v2h_1, other.v2h_1))
|
|
4171
4167
|
return false;
|
|
4172
|
-
if (!
|
|
4168
|
+
if (!(this.w2h_1 === other.w2h_1))
|
|
4173
4169
|
return false;
|
|
4174
4170
|
if (!equals(this.x2h_1, other.x2h_1))
|
|
4175
4171
|
return false;
|
|
@@ -4177,6 +4173,10 @@
|
|
|
4177
4173
|
return false;
|
|
4178
4174
|
if (!equals(this.z2h_1, other.z2h_1))
|
|
4179
4175
|
return false;
|
|
4176
|
+
if (!equals(this.a2i_1, other.a2i_1))
|
|
4177
|
+
return false;
|
|
4178
|
+
if (!equals(this.b2i_1, other.b2i_1))
|
|
4179
|
+
return false;
|
|
4180
4180
|
return true;
|
|
4181
4181
|
};
|
|
4182
4182
|
var static_init_called_1;
|
|
@@ -4219,21 +4219,21 @@
|
|
|
4219
4219
|
return DeckRejection_NO_DATA_instance;
|
|
4220
4220
|
}
|
|
4221
4221
|
function stations($this, metres, name) {
|
|
4222
|
-
var r = metres / $this.
|
|
4222
|
+
var r = metres / $this.x2f_1;
|
|
4223
4223
|
var k = roundToInt(r);
|
|
4224
4224
|
// Inline function 'kotlin.math.abs' call
|
|
4225
4225
|
var x = r - k;
|
|
4226
4226
|
// Inline function 'kotlin.require' call
|
|
4227
4227
|
if (!(Math.abs(x) < 1.0E-9)) {
|
|
4228
|
-
var message = name + ' = ' + metres + ' m is not a whole number of ' + $this.
|
|
4228
|
+
var message = name + ' = ' + metres + ' m is not a whole number of ' + $this.x2f_1 + ' m stations';
|
|
4229
4229
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
4230
4230
|
}
|
|
4231
4231
|
return k;
|
|
4232
4232
|
}
|
|
4233
4233
|
function Companion_2() {
|
|
4234
4234
|
Companion_instance_3 = this;
|
|
4235
|
-
this.
|
|
4236
|
-
this.
|
|
4235
|
+
this.c2i_1 = new DeckDetectorOptions();
|
|
4236
|
+
this.d2i_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);
|
|
4237
4237
|
}
|
|
4238
4238
|
var Companion_instance_3;
|
|
4239
4239
|
function Companion_getInstance_3() {
|
|
@@ -4268,37 +4268,37 @@
|
|
|
4268
4268
|
mntAboveMnsToleranceM = mntAboveMnsToleranceM === VOID ? 0.5 : mntAboveMnsToleranceM;
|
|
4269
4269
|
cleanGapGroundMnhM = cleanGapGroundMnhM === VOID ? 1.0 : cleanGapGroundMnhM;
|
|
4270
4270
|
splitSteepMerged = splitSteepMerged === VOID ? true : splitSteepMerged;
|
|
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.
|
|
4292
|
-
this.
|
|
4293
|
-
this.
|
|
4294
|
-
this.
|
|
4295
|
-
this.
|
|
4271
|
+
this.x2f_1 = stepM;
|
|
4272
|
+
this.y2f_1 = tallMnhM;
|
|
4273
|
+
this.z2f_1 = minTallRunM;
|
|
4274
|
+
this.a2g_1 = surfaceMedianWindowM;
|
|
4275
|
+
this.b2g_1 = roughnessWindowM;
|
|
4276
|
+
this.c2g_1 = maxRoughnessM;
|
|
4277
|
+
this.d2g_1 = minSmoothFraction;
|
|
4278
|
+
this.e2g_1 = mergeGapM;
|
|
4279
|
+
this.f2g_1 = deckMnhM;
|
|
4280
|
+
this.g2g_1 = slopeHalfWindowM;
|
|
4281
|
+
this.h2g_1 = maxSlopeP95;
|
|
4282
|
+
this.i2g_1 = minLengthM;
|
|
4283
|
+
this.j2g_1 = shortSpanM;
|
|
4284
|
+
this.k2g_1 = maxShortRoughnessM;
|
|
4285
|
+
this.l2g_1 = minCanyonDropM;
|
|
4286
|
+
this.m2g_1 = deckMinRunM;
|
|
4287
|
+
this.n2g_1 = smallSpanM;
|
|
4288
|
+
this.o2g_1 = maxAbutmentM;
|
|
4289
|
+
this.p2g_1 = slopeOnCleanDeck;
|
|
4290
|
+
this.q2g_1 = minCleanFraction;
|
|
4291
|
+
this.r2g_1 = minCleanStationsCount;
|
|
4292
|
+
this.s2g_1 = mntAboveMnsAsTall;
|
|
4293
|
+
this.t2g_1 = mntAboveMnsToleranceM;
|
|
4294
|
+
this.u2g_1 = cleanGapGroundMnhM;
|
|
4295
|
+
this.v2g_1 = splitSteepMerged;
|
|
4296
4296
|
// Inline function 'kotlin.require' call
|
|
4297
|
-
if (!(this.
|
|
4298
|
-
var message = 'stepM must be positive, got ' + this.
|
|
4297
|
+
if (!(this.x2f_1 > 0.0 && isFinite(this.x2f_1))) {
|
|
4298
|
+
var message = 'stepM must be positive, got ' + this.x2f_1;
|
|
4299
4299
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
4300
4300
|
}
|
|
4301
|
-
var thresholds = mapOf([to('tallMnhM', this.
|
|
4301
|
+
var thresholds = mapOf([to('tallMnhM', this.y2f_1), to('minTallRunM', this.z2f_1), to('surfaceMedianWindowM', this.a2g_1), to('roughnessWindowM', this.b2g_1), to('maxRoughnessM', this.c2g_1), to('minSmoothFraction', this.d2g_1), to('mergeGapM', this.e2g_1), to('deckMnhM', this.f2g_1), to('slopeHalfWindowM', this.g2g_1), to('maxSlopeP95', this.h2g_1), to('minLengthM', this.i2g_1), to('shortSpanM', this.j2g_1), to('maxShortRoughnessM', this.k2g_1), to('minCanyonDropM', this.l2g_1), to('deckMinRunM', this.m2g_1), to('smallSpanM', this.n2g_1), to('maxAbutmentM', this.o2g_1), to('minCleanFraction', this.q2g_1), to('mntAboveMnsToleranceM', this.t2g_1), to('cleanGapGroundMnhM', this.u2g_1)]);
|
|
4302
4302
|
// Inline function 'kotlin.collections.forEach' call
|
|
4303
4303
|
// Inline function 'kotlin.collections.iterator' call
|
|
4304
4304
|
var _iterator__ex2g4s = thresholds.w1().l();
|
|
@@ -4315,99 +4315,97 @@
|
|
|
4315
4315
|
}
|
|
4316
4316
|
}
|
|
4317
4317
|
// Inline function 'kotlin.require' call
|
|
4318
|
-
if (!((this.
|
|
4318
|
+
if (!((this.n2h() % 2 | 0) === 1)) {
|
|
4319
4319
|
var message_1 = 'surfaceMedianWindowM must be an odd number of stations';
|
|
4320
4320
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_1));
|
|
4321
4321
|
}
|
|
4322
4322
|
// Inline function 'kotlin.require' call
|
|
4323
|
-
if (!((this.
|
|
4323
|
+
if (!((this.p2h() % 2 | 0) === 1)) {
|
|
4324
4324
|
var message_2 = 'roughnessWindowM must be an odd number of stations';
|
|
4325
4325
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_2));
|
|
4326
4326
|
}
|
|
4327
4327
|
// Inline function 'kotlin.require' call
|
|
4328
|
-
if (!(this.
|
|
4328
|
+
if (!(this.d2h() >= 1)) {
|
|
4329
4329
|
var message_3 = 'minTallRunM must cover at least one station';
|
|
4330
4330
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_3));
|
|
4331
4331
|
}
|
|
4332
4332
|
// Inline function 'kotlin.require' call
|
|
4333
|
-
if (!(this.
|
|
4333
|
+
if (!(this.x2g() >= 1)) {
|
|
4334
4334
|
var message_4 = 'slopeHalfWindowM must cover at least one station';
|
|
4335
4335
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_4));
|
|
4336
4336
|
}
|
|
4337
4337
|
// Inline function 'kotlin.require' call
|
|
4338
|
-
if (!(this.
|
|
4338
|
+
if (!(this.e2h() >= 0 && this.k2h() >= 1)) {
|
|
4339
4339
|
var message_5 = 'negative window';
|
|
4340
4340
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_5));
|
|
4341
4341
|
}
|
|
4342
4342
|
// Inline function 'kotlin.require' call
|
|
4343
|
-
if (!(this.
|
|
4343
|
+
if (!(this.w2g() >= 0 && this.l2h() >= 0)) {
|
|
4344
4344
|
var message_6 = 'negative span threshold';
|
|
4345
4345
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_6));
|
|
4346
4346
|
}
|
|
4347
4347
|
// Inline function 'kotlin.require' call
|
|
4348
|
-
if (!(this.
|
|
4348
|
+
if (!(this.g2h() >= 0)) {
|
|
4349
4349
|
var message_7 = 'negative maxAbutmentM';
|
|
4350
4350
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_7));
|
|
4351
4351
|
}
|
|
4352
|
-
var containsArg = this.
|
|
4352
|
+
var containsArg = this.q2g_1;
|
|
4353
4353
|
// Inline function 'kotlin.require' call
|
|
4354
4354
|
if (!(0.0 <= containsArg ? containsArg <= 1.0 : false)) {
|
|
4355
|
-
var message_8 = 'minCleanFraction must be in 0..1, got ' + this.
|
|
4355
|
+
var message_8 = 'minCleanFraction must be in 0..1, got ' + this.q2g_1;
|
|
4356
4356
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_8));
|
|
4357
4357
|
}
|
|
4358
4358
|
// Inline function 'kotlin.require' call
|
|
4359
|
-
if (!(this.
|
|
4360
|
-
var message_9 = 'mntAboveMnsToleranceM must be non-negative, got ' + this.
|
|
4359
|
+
if (!(this.t2g_1 >= 0.0)) {
|
|
4360
|
+
var message_9 = 'mntAboveMnsToleranceM must be non-negative, got ' + this.t2g_1;
|
|
4361
4361
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_9));
|
|
4362
4362
|
}
|
|
4363
4363
|
// Inline function 'kotlin.require' call
|
|
4364
|
-
if (!(this.
|
|
4365
|
-
var message_10 = 'minCleanStationsCount must be at least 2, got ' + this.
|
|
4364
|
+
if (!(this.r2g_1 >= 2)) {
|
|
4365
|
+
var message_10 = 'minCleanStationsCount must be at least 2, got ' + this.r2g_1;
|
|
4366
4366
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_10));
|
|
4367
4367
|
}
|
|
4368
4368
|
// Inline function 'kotlin.require' call
|
|
4369
|
-
if (!(this.
|
|
4369
|
+
if (!(this.w2g() >= (imul(2, this.x2g()) - 1 | 0))) {
|
|
4370
4370
|
var message_11 = 'shortSpanM must be at least 2\xB7slopeHalfWindowM \u2212 stepM, or a long span has no slope sample';
|
|
4371
4371
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_11));
|
|
4372
4372
|
}
|
|
4373
4373
|
}
|
|
4374
|
-
protoOf(DeckDetectorOptions).
|
|
4375
|
-
return stations(this, this.
|
|
4376
|
-
};
|
|
4377
|
-
protoOf(DeckDetectorOptions).l2h = function () {
|
|
4378
|
-
return stations(this, this.y2f_1, 'surfaceMedianWindowM');
|
|
4374
|
+
protoOf(DeckDetectorOptions).d2h = function () {
|
|
4375
|
+
return stations(this, this.z2f_1, 'minTallRunM');
|
|
4379
4376
|
};
|
|
4380
4377
|
protoOf(DeckDetectorOptions).n2h = function () {
|
|
4381
|
-
return stations(this, this.
|
|
4378
|
+
return stations(this, this.a2g_1, 'surfaceMedianWindowM');
|
|
4382
4379
|
};
|
|
4383
|
-
protoOf(DeckDetectorOptions).
|
|
4384
|
-
return stations(this, this.
|
|
4380
|
+
protoOf(DeckDetectorOptions).p2h = function () {
|
|
4381
|
+
return stations(this, this.b2g_1, 'roughnessWindowM');
|
|
4385
4382
|
};
|
|
4386
|
-
protoOf(DeckDetectorOptions).
|
|
4387
|
-
return stations(this, this.e2g_1, '
|
|
4383
|
+
protoOf(DeckDetectorOptions).e2h = function () {
|
|
4384
|
+
return stations(this, this.e2g_1, 'mergeGapM');
|
|
4388
4385
|
};
|
|
4389
|
-
protoOf(DeckDetectorOptions).
|
|
4390
|
-
return stations(this, this.
|
|
4386
|
+
protoOf(DeckDetectorOptions).x2g = function () {
|
|
4387
|
+
return stations(this, this.g2g_1, 'slopeHalfWindowM');
|
|
4391
4388
|
};
|
|
4392
|
-
protoOf(DeckDetectorOptions).
|
|
4393
|
-
return stations(this, this.
|
|
4389
|
+
protoOf(DeckDetectorOptions).w2g = function () {
|
|
4390
|
+
return stations(this, this.j2g_1, 'shortSpanM');
|
|
4394
4391
|
};
|
|
4395
|
-
protoOf(DeckDetectorOptions).
|
|
4396
|
-
return stations(this, this.m2g_1, '
|
|
4392
|
+
protoOf(DeckDetectorOptions).k2h = function () {
|
|
4393
|
+
return stations(this, this.m2g_1, 'deckMinRunM');
|
|
4397
4394
|
};
|
|
4398
|
-
protoOf(DeckDetectorOptions).
|
|
4399
|
-
return this.
|
|
4395
|
+
protoOf(DeckDetectorOptions).g2h = function () {
|
|
4396
|
+
return stations(this, this.o2g_1, 'maxAbutmentM');
|
|
4400
4397
|
};
|
|
4401
|
-
protoOf(DeckDetectorOptions).
|
|
4402
|
-
return
|
|
4398
|
+
protoOf(DeckDetectorOptions).f2h = function () {
|
|
4399
|
+
return this.n2h() / 2 | 0;
|
|
4400
|
+
};
|
|
4401
|
+
protoOf(DeckDetectorOptions).l2h = function () {
|
|
4402
|
+
return stations(this, this.n2g_1, 'smallSpanM');
|
|
4403
4403
|
};
|
|
4404
4404
|
protoOf(DeckDetectorOptions).toString = function () {
|
|
4405
|
-
return 'DeckDetectorOptions(stepM=' + this.
|
|
4405
|
+
return 'DeckDetectorOptions(stepM=' + this.x2f_1 + ', tallMnhM=' + this.y2f_1 + ', minTallRunM=' + this.z2f_1 + ', surfaceMedianWindowM=' + this.a2g_1 + ', roughnessWindowM=' + this.b2g_1 + ', maxRoughnessM=' + this.c2g_1 + ', minSmoothFraction=' + this.d2g_1 + ', mergeGapM=' + this.e2g_1 + ', deckMnhM=' + this.f2g_1 + ', slopeHalfWindowM=' + this.g2g_1 + ', maxSlopeP95=' + this.h2g_1 + ', minLengthM=' + this.i2g_1 + ', shortSpanM=' + this.j2g_1 + ', maxShortRoughnessM=' + this.k2g_1 + ', minCanyonDropM=' + this.l2g_1 + ', deckMinRunM=' + this.m2g_1 + ', smallSpanM=' + this.n2g_1 + ', maxAbutmentM=' + this.o2g_1 + ', slopeOnCleanDeck=' + this.p2g_1 + ', minCleanFraction=' + this.q2g_1 + ', minCleanStationsCount=' + this.r2g_1 + ', mntAboveMnsAsTall=' + this.s2g_1 + ', mntAboveMnsToleranceM=' + this.t2g_1 + ', cleanGapGroundMnhM=' + this.u2g_1 + ', splitSteepMerged=' + this.v2g_1 + ')';
|
|
4406
4406
|
};
|
|
4407
4407
|
protoOf(DeckDetectorOptions).hashCode = function () {
|
|
4408
|
-
var result = getNumberHashCode(this.
|
|
4409
|
-
result = imul(result, 31) + getNumberHashCode(this.w2f_1) | 0;
|
|
4410
|
-
result = imul(result, 31) + getNumberHashCode(this.x2f_1) | 0;
|
|
4408
|
+
var result = getNumberHashCode(this.x2f_1);
|
|
4411
4409
|
result = imul(result, 31) + getNumberHashCode(this.y2f_1) | 0;
|
|
4412
4410
|
result = imul(result, 31) + getNumberHashCode(this.z2f_1) | 0;
|
|
4413
4411
|
result = imul(result, 31) + getNumberHashCode(this.a2g_1) | 0;
|
|
@@ -4423,13 +4421,15 @@
|
|
|
4423
4421
|
result = imul(result, 31) + getNumberHashCode(this.k2g_1) | 0;
|
|
4424
4422
|
result = imul(result, 31) + getNumberHashCode(this.l2g_1) | 0;
|
|
4425
4423
|
result = imul(result, 31) + getNumberHashCode(this.m2g_1) | 0;
|
|
4426
|
-
result = imul(result, 31) +
|
|
4424
|
+
result = imul(result, 31) + getNumberHashCode(this.n2g_1) | 0;
|
|
4427
4425
|
result = imul(result, 31) + getNumberHashCode(this.o2g_1) | 0;
|
|
4428
|
-
result = imul(result, 31) + this.p2g_1 | 0;
|
|
4429
|
-
result = imul(result, 31) +
|
|
4430
|
-
result = imul(result, 31) +
|
|
4431
|
-
result = imul(result, 31) +
|
|
4432
|
-
result = imul(result, 31) +
|
|
4426
|
+
result = imul(result, 31) + getBooleanHashCode(this.p2g_1) | 0;
|
|
4427
|
+
result = imul(result, 31) + getNumberHashCode(this.q2g_1) | 0;
|
|
4428
|
+
result = imul(result, 31) + this.r2g_1 | 0;
|
|
4429
|
+
result = imul(result, 31) + getBooleanHashCode(this.s2g_1) | 0;
|
|
4430
|
+
result = imul(result, 31) + getNumberHashCode(this.t2g_1) | 0;
|
|
4431
|
+
result = imul(result, 31) + getNumberHashCode(this.u2g_1) | 0;
|
|
4432
|
+
result = imul(result, 31) + getBooleanHashCode(this.v2g_1) | 0;
|
|
4433
4433
|
return result;
|
|
4434
4434
|
};
|
|
4435
4435
|
protoOf(DeckDetectorOptions).equals = function (other) {
|
|
@@ -4437,10 +4437,6 @@
|
|
|
4437
4437
|
return true;
|
|
4438
4438
|
if (!(other instanceof DeckDetectorOptions))
|
|
4439
4439
|
return false;
|
|
4440
|
-
if (!equals(this.v2f_1, other.v2f_1))
|
|
4441
|
-
return false;
|
|
4442
|
-
if (!equals(this.w2f_1, other.w2f_1))
|
|
4443
|
-
return false;
|
|
4444
4440
|
if (!equals(this.x2f_1, other.x2f_1))
|
|
4445
4441
|
return false;
|
|
4446
4442
|
if (!equals(this.y2f_1, other.y2f_1))
|
|
@@ -4473,83 +4469,87 @@
|
|
|
4473
4469
|
return false;
|
|
4474
4470
|
if (!equals(this.m2g_1, other.m2g_1))
|
|
4475
4471
|
return false;
|
|
4476
|
-
if (!(this.n2g_1
|
|
4472
|
+
if (!equals(this.n2g_1, other.n2g_1))
|
|
4477
4473
|
return false;
|
|
4478
4474
|
if (!equals(this.o2g_1, other.o2g_1))
|
|
4479
4475
|
return false;
|
|
4480
4476
|
if (!(this.p2g_1 === other.p2g_1))
|
|
4481
4477
|
return false;
|
|
4482
|
-
if (!(this.q2g_1
|
|
4478
|
+
if (!equals(this.q2g_1, other.q2g_1))
|
|
4479
|
+
return false;
|
|
4480
|
+
if (!(this.r2g_1 === other.r2g_1))
|
|
4483
4481
|
return false;
|
|
4484
|
-
if (!
|
|
4482
|
+
if (!(this.s2g_1 === other.s2g_1))
|
|
4485
4483
|
return false;
|
|
4486
|
-
if (!equals(this.
|
|
4484
|
+
if (!equals(this.t2g_1, other.t2g_1))
|
|
4487
4485
|
return false;
|
|
4488
|
-
if (!(this.
|
|
4486
|
+
if (!equals(this.u2g_1, other.u2g_1))
|
|
4487
|
+
return false;
|
|
4488
|
+
if (!(this.v2g_1 === other.v2g_1))
|
|
4489
4489
|
return false;
|
|
4490
4490
|
return true;
|
|
4491
4491
|
};
|
|
4492
4492
|
function DeckReplacement(first, last, spanFirst, spanLast, anchorFirst, anchorLast, anchors, elevationM, spans) {
|
|
4493
|
-
this.
|
|
4494
|
-
this.
|
|
4495
|
-
this.
|
|
4496
|
-
this.
|
|
4497
|
-
this.
|
|
4498
|
-
this.
|
|
4499
|
-
this.
|
|
4500
|
-
this.
|
|
4501
|
-
this.
|
|
4502
|
-
}
|
|
4503
|
-
protoOf(DeckReplacement).
|
|
4504
|
-
return this.
|
|
4505
|
-
};
|
|
4506
|
-
protoOf(DeckReplacement).
|
|
4507
|
-
return this.
|
|
4508
|
-
};
|
|
4509
|
-
protoOf(DeckReplacement).
|
|
4493
|
+
this.e2i_1 = first;
|
|
4494
|
+
this.f2i_1 = last;
|
|
4495
|
+
this.g2i_1 = spanFirst;
|
|
4496
|
+
this.h2i_1 = spanLast;
|
|
4497
|
+
this.i2i_1 = anchorFirst;
|
|
4498
|
+
this.j2i_1 = anchorLast;
|
|
4499
|
+
this.k2i_1 = anchors;
|
|
4500
|
+
this.l2i_1 = elevationM;
|
|
4501
|
+
this.m2i_1 = spans;
|
|
4502
|
+
}
|
|
4503
|
+
protoOf(DeckReplacement).n2i = function () {
|
|
4504
|
+
return this.e2i_1 < this.g2i_1;
|
|
4505
|
+
};
|
|
4506
|
+
protoOf(DeckReplacement).o2i = function () {
|
|
4507
|
+
return this.f2i_1 > this.h2i_1;
|
|
4508
|
+
};
|
|
4509
|
+
protoOf(DeckReplacement).p2i = function (startM, endM) {
|
|
4510
4510
|
// Inline function 'kotlin.collections.copyOf' call
|
|
4511
4511
|
// Inline function 'kotlin.js.asDynamic' call
|
|
4512
|
-
var z = this.
|
|
4513
|
-
if (this.
|
|
4512
|
+
var z = this.l2i_1.slice();
|
|
4513
|
+
if (this.n2i()) {
|
|
4514
4514
|
z[0] = startM;
|
|
4515
4515
|
}
|
|
4516
|
-
if (this.
|
|
4516
|
+
if (this.o2i()) {
|
|
4517
4517
|
z[z.length - 1 | 0] = endM;
|
|
4518
4518
|
}
|
|
4519
4519
|
fillLinear(z);
|
|
4520
4520
|
return z;
|
|
4521
4521
|
};
|
|
4522
4522
|
protoOf(DeckReplacement).toString = function () {
|
|
4523
|
-
var tmp = 'DeckReplacement(first=' + this.
|
|
4524
|
-
var tmp_0 = this.
|
|
4523
|
+
var tmp = 'DeckReplacement(first=' + this.e2i_1 + ', last=' + this.f2i_1 + ', span=' + this.g2i_1 + '..' + this.h2i_1 + ', anchors=' + this.i2i_1 + '..' + this.j2i_1 + ' ';
|
|
4524
|
+
var tmp_0 = this.k2i_1.length;
|
|
4525
4525
|
// Inline function 'kotlin.collections.map' call
|
|
4526
|
-
var this_0 = this.
|
|
4526
|
+
var this_0 = this.m2i_1;
|
|
4527
4527
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4528
4528
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
4529
4529
|
var _iterator__ex2g4s = this_0.l();
|
|
4530
4530
|
while (_iterator__ex2g4s.m()) {
|
|
4531
4531
|
var item = _iterator__ex2g4s.n();
|
|
4532
|
-
var tmp$ret$2 = numberRangeToNumber(item.
|
|
4532
|
+
var tmp$ret$2 = numberRangeToNumber(item.f2f_1, item.g2f_1);
|
|
4533
4533
|
destination.k(tmp$ret$2);
|
|
4534
4534
|
}
|
|
4535
4535
|
return tmp + ('(' + tmp_0 + '), spans=' + toString_0(destination) + ')');
|
|
4536
4536
|
};
|
|
4537
4537
|
function DeckProfiles(replacements, dropped) {
|
|
4538
|
-
this.
|
|
4539
|
-
this.
|
|
4538
|
+
this.q2i_1 = replacements;
|
|
4539
|
+
this.r2i_1 = dropped;
|
|
4540
4540
|
}
|
|
4541
4541
|
function joins($this, previous, next, mns, mnt, options) {
|
|
4542
4542
|
var a = previous.md();
|
|
4543
4543
|
var aAnchors = previous.nd();
|
|
4544
4544
|
var b = next.md();
|
|
4545
4545
|
var bAnchors = next.nd();
|
|
4546
|
-
if (((b.
|
|
4546
|
+
if (((b.f2f_1 - a.g2f_1 | 0) - 1 | 0) >= options.e2h())
|
|
4547
4547
|
return false;
|
|
4548
4548
|
if (aAnchors.r() || bAnchors.r())
|
|
4549
4549
|
return false;
|
|
4550
4550
|
var c0 = last(aAnchors);
|
|
4551
4551
|
var c1 = first(bAnchors);
|
|
4552
|
-
var tmp0 = until(a.
|
|
4552
|
+
var tmp0 = until(a.g2f_1 + 1 | 0, b.f2f_1);
|
|
4553
4553
|
var tmp$ret$0;
|
|
4554
4554
|
$l$block_0: {
|
|
4555
4555
|
// Inline function 'kotlin.collections.none' call
|
|
@@ -4571,7 +4571,7 @@
|
|
|
4571
4571
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4572
4572
|
var k = element;
|
|
4573
4573
|
var line = mns[c0] + (mns[c1] - mns[c0]) * (k - c0 | 0) / (c1 - c0 | 0);
|
|
4574
|
-
if (!(line - mnt[k] > options.
|
|
4574
|
+
if (!(line - mnt[k] > options.l2g_1)) {
|
|
4575
4575
|
tmp$ret$0 = false;
|
|
4576
4576
|
break $l$block_0;
|
|
4577
4577
|
}
|
|
@@ -4584,7 +4584,7 @@
|
|
|
4584
4584
|
function replacement($this, spans, anchors, mns, n, options) {
|
|
4585
4585
|
var u = first_0(anchors);
|
|
4586
4586
|
var v = last_0(anchors);
|
|
4587
|
-
var half = options.
|
|
4587
|
+
var half = options.n2h() / 2 | 0;
|
|
4588
4588
|
var tmp = 0;
|
|
4589
4589
|
var tmp_0 = ((v - u | 0) + 1 | 0) + imul(2, half) | 0;
|
|
4590
4590
|
var tmp_1 = new Float64Array(tmp_0);
|
|
@@ -4611,7 +4611,7 @@
|
|
|
4611
4611
|
while (!(k === c1));
|
|
4612
4612
|
}
|
|
4613
4613
|
while (inductionVariable < last_2);
|
|
4614
|
-
var median = DeckDetector_instance.
|
|
4614
|
+
var median = DeckDetector_instance.o2h(x, half);
|
|
4615
4615
|
var tmp_2 = 0;
|
|
4616
4616
|
var tmp_3 = (v - u | 0) + 1 | 0;
|
|
4617
4617
|
var tmp_4 = new Float64Array(tmp_3);
|
|
@@ -4621,9 +4621,9 @@
|
|
|
4621
4621
|
tmp_2 = tmp_2 + 1 | 0;
|
|
4622
4622
|
}
|
|
4623
4623
|
var deck = tmp_4;
|
|
4624
|
-
$this.
|
|
4625
|
-
var spanFirst = first(spans).
|
|
4626
|
-
var spanLast = last(spans).
|
|
4624
|
+
$this.s2i(deck, options.h2g_1 * options.x2f_1);
|
|
4625
|
+
var spanFirst = first(spans).f2f_1;
|
|
4626
|
+
var spanLast = last(spans).g2f_1;
|
|
4627
4627
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
4628
4628
|
var b = spanFirst - 1 | 0;
|
|
4629
4629
|
var first_2 = Math.max(0, b);
|
|
@@ -4644,16 +4644,16 @@
|
|
|
4644
4644
|
return new DeckReplacement(first_2, last_3, spanFirst, spanLast, u, v, anchors, z, spans);
|
|
4645
4645
|
}
|
|
4646
4646
|
function sam$kotlin_Comparator$0_0(function_0) {
|
|
4647
|
-
this.
|
|
4647
|
+
this.t2i_1 = function_0;
|
|
4648
4648
|
}
|
|
4649
4649
|
protoOf(sam$kotlin_Comparator$0_0).mb = function (a, b) {
|
|
4650
|
-
return this.
|
|
4650
|
+
return this.t2i_1(a, b);
|
|
4651
4651
|
};
|
|
4652
4652
|
protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
|
|
4653
4653
|
return this.mb(a, b);
|
|
4654
4654
|
};
|
|
4655
4655
|
protoOf(sam$kotlin_Comparator$0_0).h2 = function () {
|
|
4656
|
-
return this.
|
|
4656
|
+
return this.t2i_1;
|
|
4657
4657
|
};
|
|
4658
4658
|
protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
|
|
4659
4659
|
var tmp;
|
|
@@ -4675,7 +4675,7 @@
|
|
|
4675
4675
|
};
|
|
4676
4676
|
function build$anchorsOf(state, mns, span) {
|
|
4677
4677
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4678
|
-
var tmp0 = span.
|
|
4678
|
+
var tmp0 = span.l2f_1;
|
|
4679
4679
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4680
4680
|
var destination = ArrayList_init_$Create$();
|
|
4681
4681
|
var _iterator__ex2g4s = tmp0.l();
|
|
@@ -4692,9 +4692,9 @@
|
|
|
4692
4692
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
4693
4693
|
var tmp;
|
|
4694
4694
|
var tmp_0;
|
|
4695
|
-
var containsLower = span.
|
|
4696
|
-
if (element_0 <= span.
|
|
4697
|
-
tmp_0 = state.
|
|
4695
|
+
var containsLower = span.f2f_1;
|
|
4696
|
+
if (element_0 <= span.g2f_1 ? containsLower <= element_0 : false) {
|
|
4697
|
+
tmp_0 = state.t2f_1[element_0];
|
|
4698
4698
|
} else {
|
|
4699
4699
|
tmp_0 = false;
|
|
4700
4700
|
}
|
|
@@ -4711,21 +4711,21 @@
|
|
|
4711
4711
|
}
|
|
4712
4712
|
function DeckProfileBuilder$build$lambda(a, b) {
|
|
4713
4713
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
4714
|
-
var tmp = a.
|
|
4715
|
-
var tmp$ret$2 = b.
|
|
4714
|
+
var tmp = a.f2f_1;
|
|
4715
|
+
var tmp$ret$2 = b.f2f_1;
|
|
4716
4716
|
return compareValues(tmp, tmp$ret$2);
|
|
4717
4717
|
}
|
|
4718
4718
|
function DeckProfileBuilder() {
|
|
4719
4719
|
}
|
|
4720
|
-
protoOf(DeckProfileBuilder).
|
|
4720
|
+
protoOf(DeckProfileBuilder).u2i = function (profile, detection, options) {
|
|
4721
4721
|
var n = profile.o();
|
|
4722
|
-
if (n === 0 || detection.
|
|
4722
|
+
if (n === 0 || detection.c2f_1.r())
|
|
4723
4723
|
return new DeckProfiles(emptyList(), emptyList());
|
|
4724
|
-
var state = DeckDetector_instance.
|
|
4725
|
-
var mns = profile.
|
|
4726
|
-
var mnt = profile.
|
|
4724
|
+
var state = DeckDetector_instance.b2h(profile, options);
|
|
4725
|
+
var mns = profile.o2f_1;
|
|
4726
|
+
var mnt = profile.p2f_1;
|
|
4727
4727
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
4728
|
-
var this_0 = detection.
|
|
4728
|
+
var this_0 = detection.c2f_1;
|
|
4729
4729
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
4730
4730
|
var tmp = DeckProfileBuilder$build$lambda;
|
|
4731
4731
|
var tmp$ret$1 = new sam$kotlin_Comparator$0_0(tmp);
|
|
@@ -4782,7 +4782,7 @@
|
|
|
4782
4782
|
}
|
|
4783
4783
|
return new DeckProfiles(replacements, dropped);
|
|
4784
4784
|
};
|
|
4785
|
-
protoOf(DeckProfileBuilder).
|
|
4785
|
+
protoOf(DeckProfileBuilder).s2i = function (z, maxRise) {
|
|
4786
4786
|
var inductionVariable = 1;
|
|
4787
4787
|
var last = z.length;
|
|
4788
4788
|
if (inductionVariable < last)
|
|
@@ -4836,25 +4836,25 @@
|
|
|
4836
4836
|
while (inductionVariable <= last);
|
|
4837
4837
|
}
|
|
4838
4838
|
function TerrainProvenance(ignLidarHdKm, mapterhornMeasuredKm, mapterhornKm, otherKm, noDataKm, fallbackAfterErrorKm, failedTiles) {
|
|
4839
|
-
this.
|
|
4840
|
-
this.
|
|
4841
|
-
this.
|
|
4842
|
-
this.
|
|
4843
|
-
this.
|
|
4844
|
-
this.
|
|
4845
|
-
this.
|
|
4839
|
+
this.v2i_1 = ignLidarHdKm;
|
|
4840
|
+
this.w2i_1 = mapterhornMeasuredKm;
|
|
4841
|
+
this.x2i_1 = mapterhornKm;
|
|
4842
|
+
this.y2i_1 = otherKm;
|
|
4843
|
+
this.z2i_1 = noDataKm;
|
|
4844
|
+
this.a2j_1 = fallbackAfterErrorKm;
|
|
4845
|
+
this.b2j_1 = failedTiles;
|
|
4846
4846
|
}
|
|
4847
4847
|
protoOf(TerrainProvenance).toString = function () {
|
|
4848
|
-
return 'TerrainProvenance(ignLidarHdKm=' + this.
|
|
4848
|
+
return 'TerrainProvenance(ignLidarHdKm=' + this.v2i_1 + ', mapterhornMeasuredKm=' + this.w2i_1 + ', mapterhornKm=' + this.x2i_1 + ', otherKm=' + this.y2i_1 + ', noDataKm=' + this.z2i_1 + ', fallbackAfterErrorKm=' + this.a2j_1 + ', failedTiles=' + this.b2j_1 + ')';
|
|
4849
4849
|
};
|
|
4850
4850
|
protoOf(TerrainProvenance).hashCode = function () {
|
|
4851
|
-
var result = getNumberHashCode(this.
|
|
4852
|
-
result = imul(result, 31) + getNumberHashCode(this.u2i_1) | 0;
|
|
4853
|
-
result = imul(result, 31) + getNumberHashCode(this.v2i_1) | 0;
|
|
4851
|
+
var result = getNumberHashCode(this.v2i_1);
|
|
4854
4852
|
result = imul(result, 31) + getNumberHashCode(this.w2i_1) | 0;
|
|
4855
4853
|
result = imul(result, 31) + getNumberHashCode(this.x2i_1) | 0;
|
|
4856
4854
|
result = imul(result, 31) + getNumberHashCode(this.y2i_1) | 0;
|
|
4857
|
-
result = imul(result, 31) + this.z2i_1 | 0;
|
|
4855
|
+
result = imul(result, 31) + getNumberHashCode(this.z2i_1) | 0;
|
|
4856
|
+
result = imul(result, 31) + getNumberHashCode(this.a2j_1) | 0;
|
|
4857
|
+
result = imul(result, 31) + this.b2j_1 | 0;
|
|
4858
4858
|
return result;
|
|
4859
4859
|
};
|
|
4860
4860
|
protoOf(TerrainProvenance).equals = function (other) {
|
|
@@ -4862,10 +4862,6 @@
|
|
|
4862
4862
|
return true;
|
|
4863
4863
|
if (!(other instanceof TerrainProvenance))
|
|
4864
4864
|
return false;
|
|
4865
|
-
if (!equals(this.t2i_1, other.t2i_1))
|
|
4866
|
-
return false;
|
|
4867
|
-
if (!equals(this.u2i_1, other.u2i_1))
|
|
4868
|
-
return false;
|
|
4869
4865
|
if (!equals(this.v2i_1, other.v2i_1))
|
|
4870
4866
|
return false;
|
|
4871
4867
|
if (!equals(this.w2i_1, other.w2i_1))
|
|
@@ -4874,33 +4870,40 @@
|
|
|
4874
4870
|
return false;
|
|
4875
4871
|
if (!equals(this.y2i_1, other.y2i_1))
|
|
4876
4872
|
return false;
|
|
4877
|
-
if (!(this.z2i_1
|
|
4873
|
+
if (!equals(this.z2i_1, other.z2i_1))
|
|
4874
|
+
return false;
|
|
4875
|
+
if (!equals(this.a2j_1, other.a2j_1))
|
|
4876
|
+
return false;
|
|
4877
|
+
if (!(this.b2j_1 === other.b2j_1))
|
|
4878
4878
|
return false;
|
|
4879
4879
|
return true;
|
|
4880
4880
|
};
|
|
4881
|
-
function ElevationCorrections(bridgeDecks, bridgeDecksApplied, bridgeDecksDropped, tunnels, tunnelsApplied, tunnelsDropped, warnings, terrain) {
|
|
4881
|
+
function ElevationCorrections(bridgeDecks, bridgeDecksApplied, bridgeDecksDropped, tunnels, tunnelsApplied, tunnelsDropped, warnings, terrain, tunnelsOutOfScope) {
|
|
4882
4882
|
terrain = terrain === VOID ? null : terrain;
|
|
4883
|
-
|
|
4884
|
-
this.
|
|
4885
|
-
this.
|
|
4886
|
-
this.
|
|
4887
|
-
this.
|
|
4888
|
-
this.
|
|
4889
|
-
this.
|
|
4890
|
-
this.
|
|
4883
|
+
tunnelsOutOfScope = tunnelsOutOfScope === VOID ? 0 : tunnelsOutOfScope;
|
|
4884
|
+
this.c2j_1 = bridgeDecks;
|
|
4885
|
+
this.d2j_1 = bridgeDecksApplied;
|
|
4886
|
+
this.e2j_1 = bridgeDecksDropped;
|
|
4887
|
+
this.f2j_1 = tunnels;
|
|
4888
|
+
this.g2j_1 = tunnelsApplied;
|
|
4889
|
+
this.h2j_1 = tunnelsDropped;
|
|
4890
|
+
this.i2j_1 = warnings;
|
|
4891
|
+
this.j2j_1 = terrain;
|
|
4892
|
+
this.k2j_1 = tunnelsOutOfScope;
|
|
4891
4893
|
}
|
|
4892
4894
|
protoOf(ElevationCorrections).toString = function () {
|
|
4893
|
-
return 'ElevationCorrections(bridgeDecks=' + this.
|
|
4895
|
+
return 'ElevationCorrections(bridgeDecks=' + this.c2j_1.toString() + ', bridgeDecksApplied=' + this.d2j_1 + ', bridgeDecksDropped=' + this.e2j_1 + ', tunnels=' + this.f2j_1.toString() + ', tunnelsApplied=' + this.g2j_1 + ', tunnelsDropped=' + this.h2j_1 + ', warnings=' + toString_0(this.i2j_1) + ', terrain=' + toString(this.j2j_1) + ', tunnelsOutOfScope=' + this.k2j_1 + ')';
|
|
4894
4896
|
};
|
|
4895
4897
|
protoOf(ElevationCorrections).hashCode = function () {
|
|
4896
|
-
var result = this.
|
|
4897
|
-
result = imul(result, 31) + this.
|
|
4898
|
-
result = imul(result, 31) + this.c2j_1 | 0;
|
|
4899
|
-
result = imul(result, 31) + this.d2j_1.hashCode() | 0;
|
|
4898
|
+
var result = this.c2j_1.hashCode();
|
|
4899
|
+
result = imul(result, 31) + this.d2j_1 | 0;
|
|
4900
4900
|
result = imul(result, 31) + this.e2j_1 | 0;
|
|
4901
|
-
result = imul(result, 31) + this.f2j_1 | 0;
|
|
4902
|
-
result = imul(result, 31) +
|
|
4903
|
-
result = imul(result, 31) +
|
|
4901
|
+
result = imul(result, 31) + this.f2j_1.hashCode() | 0;
|
|
4902
|
+
result = imul(result, 31) + this.g2j_1 | 0;
|
|
4903
|
+
result = imul(result, 31) + this.h2j_1 | 0;
|
|
4904
|
+
result = imul(result, 31) + hashCode(this.i2j_1) | 0;
|
|
4905
|
+
result = imul(result, 31) + (this.j2j_1 == null ? 0 : this.j2j_1.hashCode()) | 0;
|
|
4906
|
+
result = imul(result, 31) + this.k2j_1 | 0;
|
|
4904
4907
|
return result;
|
|
4905
4908
|
};
|
|
4906
4909
|
protoOf(ElevationCorrections).equals = function (other) {
|
|
@@ -4908,21 +4911,23 @@
|
|
|
4908
4911
|
return true;
|
|
4909
4912
|
if (!(other instanceof ElevationCorrections))
|
|
4910
4913
|
return false;
|
|
4911
|
-
if (!this.
|
|
4914
|
+
if (!this.c2j_1.equals(other.c2j_1))
|
|
4912
4915
|
return false;
|
|
4913
|
-
if (!(this.
|
|
4916
|
+
if (!(this.d2j_1 === other.d2j_1))
|
|
4914
4917
|
return false;
|
|
4915
|
-
if (!(this.
|
|
4918
|
+
if (!(this.e2j_1 === other.e2j_1))
|
|
4916
4919
|
return false;
|
|
4917
|
-
if (!this.
|
|
4920
|
+
if (!this.f2j_1.equals(other.f2j_1))
|
|
4918
4921
|
return false;
|
|
4919
|
-
if (!(this.
|
|
4922
|
+
if (!(this.g2j_1 === other.g2j_1))
|
|
4920
4923
|
return false;
|
|
4921
|
-
if (!(this.
|
|
4924
|
+
if (!(this.h2j_1 === other.h2j_1))
|
|
4922
4925
|
return false;
|
|
4923
|
-
if (!equals(this.
|
|
4926
|
+
if (!equals(this.i2j_1, other.i2j_1))
|
|
4924
4927
|
return false;
|
|
4925
|
-
if (!equals(this.
|
|
4928
|
+
if (!equals(this.j2j_1, other.j2j_1))
|
|
4929
|
+
return false;
|
|
4930
|
+
if (!(this.k2j_1 === other.k2j_1))
|
|
4926
4931
|
return false;
|
|
4927
4932
|
return true;
|
|
4928
4933
|
};
|
|
@@ -4958,10 +4963,10 @@
|
|
|
4958
4963
|
var _iterator__ex2g4s = this_0.l();
|
|
4959
4964
|
while (_iterator__ex2g4s.m()) {
|
|
4960
4965
|
var item = _iterator__ex2g4s.n();
|
|
4961
|
-
var tmp$ret$2 = item.
|
|
4966
|
+
var tmp$ret$2 = item.n2j_1;
|
|
4962
4967
|
destination.k(tmp$ret$2);
|
|
4963
4968
|
}
|
|
4964
|
-
tmp.
|
|
4969
|
+
tmp.o2j_1 = destination;
|
|
4965
4970
|
}
|
|
4966
4971
|
var Companion_instance_4;
|
|
4967
4972
|
function values_1() {
|
|
@@ -4977,7 +4982,7 @@
|
|
|
4977
4982
|
var $ENTRIES_1;
|
|
4978
4983
|
function ElevationCorrectionStatus(name, ordinal, id) {
|
|
4979
4984
|
Enum.call(this, name, ordinal);
|
|
4980
|
-
this.
|
|
4985
|
+
this.n2j_1 = id;
|
|
4981
4986
|
}
|
|
4982
4987
|
function ElevationCorrectionStatus_NOT_RUN_getInstance() {
|
|
4983
4988
|
static_init_2();
|
|
@@ -5005,33 +5010,33 @@
|
|
|
5005
5010
|
}
|
|
5006
5011
|
function Companion_4() {
|
|
5007
5012
|
}
|
|
5008
|
-
protoOf(Companion_4).
|
|
5009
|
-
return new ElevationGainResult(0.0, 0.0, 0.0, 0.0, options.
|
|
5013
|
+
protoOf(Companion_4).p2j = function (options) {
|
|
5014
|
+
return new ElevationGainResult(0.0, 0.0, 0.0, 0.0, options.s2j_1, options.t2j_1, 0);
|
|
5010
5015
|
};
|
|
5011
5016
|
var Companion_instance_5;
|
|
5012
5017
|
function Companion_getInstance_4() {
|
|
5013
5018
|
return Companion_instance_5;
|
|
5014
5019
|
}
|
|
5015
5020
|
function ElevationGainResult(gainM, lossM, rawGainM, rawLossM, thresholdM, smoothWindowM, legCount) {
|
|
5016
|
-
this.
|
|
5017
|
-
this.
|
|
5018
|
-
this.
|
|
5019
|
-
this.
|
|
5020
|
-
this.
|
|
5021
|
-
this.
|
|
5022
|
-
this.
|
|
5021
|
+
this.u2j_1 = gainM;
|
|
5022
|
+
this.v2j_1 = lossM;
|
|
5023
|
+
this.w2j_1 = rawGainM;
|
|
5024
|
+
this.x2j_1 = rawLossM;
|
|
5025
|
+
this.y2j_1 = thresholdM;
|
|
5026
|
+
this.z2j_1 = smoothWindowM;
|
|
5027
|
+
this.a2k_1 = legCount;
|
|
5023
5028
|
}
|
|
5024
5029
|
protoOf(ElevationGainResult).toString = function () {
|
|
5025
|
-
return 'ElevationGainResult(gainM=' + this.
|
|
5030
|
+
return 'ElevationGainResult(gainM=' + this.u2j_1 + ', lossM=' + this.v2j_1 + ', rawGainM=' + this.w2j_1 + ', rawLossM=' + this.x2j_1 + ', thresholdM=' + this.y2j_1 + ', smoothWindowM=' + this.z2j_1 + ', legCount=' + this.a2k_1 + ')';
|
|
5026
5031
|
};
|
|
5027
5032
|
protoOf(ElevationGainResult).hashCode = function () {
|
|
5028
|
-
var result = getNumberHashCode(this.
|
|
5029
|
-
result = imul(result, 31) + getNumberHashCode(this.s2j_1) | 0;
|
|
5030
|
-
result = imul(result, 31) + getNumberHashCode(this.t2j_1) | 0;
|
|
5031
|
-
result = imul(result, 31) + getNumberHashCode(this.u2j_1) | 0;
|
|
5033
|
+
var result = getNumberHashCode(this.u2j_1);
|
|
5032
5034
|
result = imul(result, 31) + getNumberHashCode(this.v2j_1) | 0;
|
|
5033
5035
|
result = imul(result, 31) + getNumberHashCode(this.w2j_1) | 0;
|
|
5034
|
-
result = imul(result, 31) + this.x2j_1 | 0;
|
|
5036
|
+
result = imul(result, 31) + getNumberHashCode(this.x2j_1) | 0;
|
|
5037
|
+
result = imul(result, 31) + getNumberHashCode(this.y2j_1) | 0;
|
|
5038
|
+
result = imul(result, 31) + getNumberHashCode(this.z2j_1) | 0;
|
|
5039
|
+
result = imul(result, 31) + this.a2k_1 | 0;
|
|
5035
5040
|
return result;
|
|
5036
5041
|
};
|
|
5037
5042
|
protoOf(ElevationGainResult).equals = function (other) {
|
|
@@ -5039,26 +5044,26 @@
|
|
|
5039
5044
|
return true;
|
|
5040
5045
|
if (!(other instanceof ElevationGainResult))
|
|
5041
5046
|
return false;
|
|
5042
|
-
if (!equals(this.r2j_1, other.r2j_1))
|
|
5043
|
-
return false;
|
|
5044
|
-
if (!equals(this.s2j_1, other.s2j_1))
|
|
5045
|
-
return false;
|
|
5046
|
-
if (!equals(this.t2j_1, other.t2j_1))
|
|
5047
|
-
return false;
|
|
5048
5047
|
if (!equals(this.u2j_1, other.u2j_1))
|
|
5049
5048
|
return false;
|
|
5050
5049
|
if (!equals(this.v2j_1, other.v2j_1))
|
|
5051
5050
|
return false;
|
|
5052
5051
|
if (!equals(this.w2j_1, other.w2j_1))
|
|
5053
5052
|
return false;
|
|
5054
|
-
if (!(this.x2j_1
|
|
5053
|
+
if (!equals(this.x2j_1, other.x2j_1))
|
|
5054
|
+
return false;
|
|
5055
|
+
if (!equals(this.y2j_1, other.y2j_1))
|
|
5056
|
+
return false;
|
|
5057
|
+
if (!equals(this.z2j_1, other.z2j_1))
|
|
5058
|
+
return false;
|
|
5059
|
+
if (!(this.a2k_1 === other.a2k_1))
|
|
5055
5060
|
return false;
|
|
5056
5061
|
return true;
|
|
5057
5062
|
};
|
|
5058
5063
|
function Banked(gainM, lossM, legCount) {
|
|
5059
|
-
this.
|
|
5060
|
-
this.
|
|
5061
|
-
this.
|
|
5064
|
+
this.b2k_1 = gainM;
|
|
5065
|
+
this.c2k_1 = lossM;
|
|
5066
|
+
this.d2k_1 = legCount;
|
|
5062
5067
|
}
|
|
5063
5068
|
function accumulate($this, h, threshold) {
|
|
5064
5069
|
var gain = 0.0;
|
|
@@ -5140,45 +5145,45 @@
|
|
|
5140
5145
|
}
|
|
5141
5146
|
function ElevationGain() {
|
|
5142
5147
|
}
|
|
5143
|
-
protoOf(ElevationGain).
|
|
5144
|
-
if (path.
|
|
5145
|
-
return Companion_instance_5.
|
|
5148
|
+
protoOf(ElevationGain).e2k = function (path, options) {
|
|
5149
|
+
if (path.s2b_1 < 2)
|
|
5150
|
+
return Companion_instance_5.p2j(options);
|
|
5146
5151
|
var tmp = 0;
|
|
5147
|
-
var tmp_0 = path.
|
|
5152
|
+
var tmp_0 = path.s2b_1;
|
|
5148
5153
|
var tmp_1 = new Float64Array(tmp_0);
|
|
5149
5154
|
while (tmp < tmp_0) {
|
|
5150
5155
|
var tmp_2 = tmp;
|
|
5151
|
-
tmp_1[tmp_2] = path.
|
|
5156
|
+
tmp_1[tmp_2] = path.f2k(tmp_2);
|
|
5152
5157
|
tmp = tmp + 1 | 0;
|
|
5153
5158
|
}
|
|
5154
5159
|
var distanceM = tmp_1;
|
|
5155
5160
|
var tmp_3 = 0;
|
|
5156
|
-
var tmp_4 = path.
|
|
5161
|
+
var tmp_4 = path.s2b_1;
|
|
5157
5162
|
var tmp_5 = new Float64Array(tmp_4);
|
|
5158
5163
|
while (tmp_3 < tmp_4) {
|
|
5159
5164
|
var tmp_6 = tmp_3;
|
|
5160
|
-
var source = path.
|
|
5161
|
-
tmp_5[tmp_6] = isNaN_0(source) ? path.
|
|
5165
|
+
var source = path.g2k(tmp_6);
|
|
5166
|
+
tmp_5[tmp_6] = isNaN_0(source) ? path.x2b(tmp_6) : source;
|
|
5162
5167
|
tmp_3 = tmp_3 + 1 | 0;
|
|
5163
5168
|
}
|
|
5164
5169
|
var elevationM = tmp_5;
|
|
5165
|
-
return this.
|
|
5170
|
+
return this.h2k(distanceM, elevationM, options);
|
|
5166
5171
|
};
|
|
5167
|
-
protoOf(ElevationGain).
|
|
5168
|
-
var result = this.
|
|
5169
|
-
path.
|
|
5170
|
-
path.
|
|
5172
|
+
protoOf(ElevationGain).i2k = function (path, options) {
|
|
5173
|
+
var result = this.e2k(path, options);
|
|
5174
|
+
path.h2d_1 = result.u2j_1;
|
|
5175
|
+
path.i2d_1 = result.v2j_1;
|
|
5171
5176
|
return result;
|
|
5172
5177
|
};
|
|
5173
|
-
protoOf(ElevationGain).
|
|
5178
|
+
protoOf(ElevationGain).h2k = function (distanceM, elevationM, options) {
|
|
5174
5179
|
// Inline function 'kotlin.require' call
|
|
5175
5180
|
if (!(distanceM.length === elevationM.length)) {
|
|
5176
5181
|
var message = 'distanceM (' + distanceM.length + ') and elevationM (' + elevationM.length + ') must have the same length';
|
|
5177
5182
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
5178
5183
|
}
|
|
5179
5184
|
if (elevationM.length < 2)
|
|
5180
|
-
return Companion_instance_5.
|
|
5181
|
-
var profile = ElevationSmoother_instance.
|
|
5185
|
+
return Companion_instance_5.p2j(options);
|
|
5186
|
+
var profile = ElevationSmoother_instance.b1b(distanceM, elevationM, options.t2j_1);
|
|
5182
5187
|
var rawGain = 0.0;
|
|
5183
5188
|
var rawLoss = 0.0;
|
|
5184
5189
|
var inductionVariable = 1;
|
|
@@ -5194,18 +5199,18 @@
|
|
|
5194
5199
|
rawLoss = rawLoss + d;
|
|
5195
5200
|
}
|
|
5196
5201
|
while (inductionVariable < last);
|
|
5197
|
-
if (options.
|
|
5198
|
-
return new ElevationGainResult(rawGain, rawLoss, rawGain, rawLoss, 0.0, options.
|
|
5202
|
+
if (options.s2j_1 <= 0.0) {
|
|
5203
|
+
return new ElevationGainResult(rawGain, rawLoss, rawGain, rawLoss, 0.0, options.t2j_1, 0);
|
|
5199
5204
|
}
|
|
5200
|
-
var banked = accumulate(this, profile, options.
|
|
5201
|
-
return new ElevationGainResult(banked.
|
|
5205
|
+
var banked = accumulate(this, profile, options.s2j_1);
|
|
5206
|
+
return new ElevationGainResult(banked.b2k_1, banked.c2k_1, rawGain, rawLoss, options.s2j_1, options.t2j_1, banked.d2k_1);
|
|
5202
5207
|
};
|
|
5203
5208
|
var ElevationGain_instance;
|
|
5204
5209
|
function ElevationGain_getInstance() {
|
|
5205
5210
|
return ElevationGain_instance;
|
|
5206
5211
|
}
|
|
5207
5212
|
function ElevationGainPreset$Companion$byId$lambda(it) {
|
|
5208
|
-
return it.
|
|
5213
|
+
return it.n2k();
|
|
5209
5214
|
}
|
|
5210
5215
|
var static_init_called_3;
|
|
5211
5216
|
function static_init_3() {
|
|
@@ -5227,7 +5232,7 @@
|
|
|
5227
5232
|
var ElevationGainPreset_GPS_instance;
|
|
5228
5233
|
function Companion_5() {
|
|
5229
5234
|
}
|
|
5230
|
-
protoOf(Companion_5).
|
|
5235
|
+
protoOf(Companion_5).i1b = function (name) {
|
|
5231
5236
|
var tmp0 = get_entries_2();
|
|
5232
5237
|
var tmp$ret$0;
|
|
5233
5238
|
$l$block: {
|
|
@@ -5235,7 +5240,7 @@
|
|
|
5235
5240
|
var _iterator__ex2g4s = tmp0.l();
|
|
5236
5241
|
while (_iterator__ex2g4s.m()) {
|
|
5237
5242
|
var element = _iterator__ex2g4s.n();
|
|
5238
|
-
if (equals_0(element.
|
|
5243
|
+
if (equals_0(element.n2k(), name, true) || equals_0(element.x1_1, name, true)) {
|
|
5239
5244
|
tmp$ret$0 = element;
|
|
5240
5245
|
break $l$block;
|
|
5241
5246
|
}
|
|
@@ -5269,10 +5274,10 @@
|
|
|
5269
5274
|
var $ENTRIES_2;
|
|
5270
5275
|
function ElevationGainPreset(name, ordinal, thresholdM, smoothWindowM) {
|
|
5271
5276
|
Enum.call(this, name, ordinal);
|
|
5272
|
-
this.
|
|
5273
|
-
this.
|
|
5277
|
+
this.l2k_1 = thresholdM;
|
|
5278
|
+
this.m2k_1 = smoothWindowM;
|
|
5274
5279
|
}
|
|
5275
|
-
protoOf(ElevationGainPreset).
|
|
5280
|
+
protoOf(ElevationGainPreset).n2k = function () {
|
|
5276
5281
|
var tmp;
|
|
5277
5282
|
switch (this.y1_1) {
|
|
5278
5283
|
case 0:
|
|
@@ -5295,8 +5300,8 @@
|
|
|
5295
5300
|
};
|
|
5296
5301
|
function Companion_6() {
|
|
5297
5302
|
Companion_instance_7 = this;
|
|
5298
|
-
this.
|
|
5299
|
-
this.
|
|
5303
|
+
this.o2k_1 = new ElevationGainOptions();
|
|
5304
|
+
this.p2k_1 = new ElevationGainOptions(VOID, ElevationGainPreset_RAW_getInstance());
|
|
5300
5305
|
}
|
|
5301
5306
|
var Companion_instance_7;
|
|
5302
5307
|
function Companion_getInstance_6() {
|
|
@@ -5308,31 +5313,31 @@
|
|
|
5308
5313
|
Companion_getInstance_6();
|
|
5309
5314
|
enabled = enabled === VOID ? true : enabled;
|
|
5310
5315
|
preset = preset === VOID ? ElevationGainPreset_DEM_getInstance() : preset;
|
|
5311
|
-
thresholdM = thresholdM === VOID ? preset.
|
|
5312
|
-
smoothWindowM = smoothWindowM === VOID ? preset.
|
|
5313
|
-
this.
|
|
5314
|
-
this.
|
|
5315
|
-
this.
|
|
5316
|
-
this.
|
|
5316
|
+
thresholdM = thresholdM === VOID ? preset.l2k_1 : thresholdM;
|
|
5317
|
+
smoothWindowM = smoothWindowM === VOID ? preset.m2k_1 : smoothWindowM;
|
|
5318
|
+
this.q2j_1 = enabled;
|
|
5319
|
+
this.r2j_1 = preset;
|
|
5320
|
+
this.s2j_1 = thresholdM;
|
|
5321
|
+
this.t2j_1 = smoothWindowM;
|
|
5317
5322
|
// Inline function 'kotlin.require' call
|
|
5318
|
-
if (!(this.
|
|
5319
|
-
var message = 'thresholdM must be finite and >= 0, was ' + this.
|
|
5323
|
+
if (!(this.s2j_1 >= 0.0 && isFinite(this.s2j_1))) {
|
|
5324
|
+
var message = 'thresholdM must be finite and >= 0, was ' + this.s2j_1;
|
|
5320
5325
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
5321
5326
|
}
|
|
5322
5327
|
// Inline function 'kotlin.require' call
|
|
5323
|
-
if (!(this.
|
|
5324
|
-
var message_0 = 'smoothWindowM must be finite and >= 0, was ' + this.
|
|
5328
|
+
if (!(this.t2j_1 >= 0.0 && isFinite(this.t2j_1))) {
|
|
5329
|
+
var message_0 = 'smoothWindowM must be finite and >= 0, was ' + this.t2j_1;
|
|
5325
5330
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_0));
|
|
5326
5331
|
}
|
|
5327
5332
|
}
|
|
5328
5333
|
protoOf(ElevationGainOptions).toString = function () {
|
|
5329
|
-
return 'ElevationGainOptions(enabled=' + this.
|
|
5334
|
+
return 'ElevationGainOptions(enabled=' + this.q2j_1 + ', preset=' + this.r2j_1.toString() + ', thresholdM=' + this.s2j_1 + ', smoothWindowM=' + this.t2j_1 + ')';
|
|
5330
5335
|
};
|
|
5331
5336
|
protoOf(ElevationGainOptions).hashCode = function () {
|
|
5332
|
-
var result = getBooleanHashCode(this.
|
|
5333
|
-
result = imul(result, 31) + this.
|
|
5334
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
5335
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
5337
|
+
var result = getBooleanHashCode(this.q2j_1);
|
|
5338
|
+
result = imul(result, 31) + this.r2j_1.hashCode() | 0;
|
|
5339
|
+
result = imul(result, 31) + getNumberHashCode(this.s2j_1) | 0;
|
|
5340
|
+
result = imul(result, 31) + getNumberHashCode(this.t2j_1) | 0;
|
|
5336
5341
|
return result;
|
|
5337
5342
|
};
|
|
5338
5343
|
protoOf(ElevationGainOptions).equals = function (other) {
|
|
@@ -5340,13 +5345,13 @@
|
|
|
5340
5345
|
return true;
|
|
5341
5346
|
if (!(other instanceof ElevationGainOptions))
|
|
5342
5347
|
return false;
|
|
5343
|
-
if (!(this.
|
|
5348
|
+
if (!(this.q2j_1 === other.q2j_1))
|
|
5344
5349
|
return false;
|
|
5345
|
-
if (!this.
|
|
5350
|
+
if (!this.r2j_1.equals(other.r2j_1))
|
|
5346
5351
|
return false;
|
|
5347
|
-
if (!equals(this.
|
|
5352
|
+
if (!equals(this.s2j_1, other.s2j_1))
|
|
5348
5353
|
return false;
|
|
5349
|
-
if (!equals(this.
|
|
5354
|
+
if (!equals(this.t2j_1, other.t2j_1))
|
|
5350
5355
|
return false;
|
|
5351
5356
|
return true;
|
|
5352
5357
|
};
|
|
@@ -5367,9 +5372,9 @@
|
|
|
5367
5372
|
return ElevationGainPreset_GPS_instance;
|
|
5368
5373
|
}
|
|
5369
5374
|
function copyAllSlots($this, source) {
|
|
5370
|
-
var out = new Path(source.
|
|
5375
|
+
var out = new Path(source.s2b_1);
|
|
5371
5376
|
var inductionVariable = 0;
|
|
5372
|
-
var last = source.
|
|
5377
|
+
var last = source.s2b_1;
|
|
5373
5378
|
if (inductionVariable < last)
|
|
5374
5379
|
do {
|
|
5375
5380
|
var i = inductionVariable;
|
|
@@ -5377,7 +5382,7 @@
|
|
|
5377
5382
|
var _iterator__ex2g4s = get_entries_3().l();
|
|
5378
5383
|
while (_iterator__ex2g4s.m()) {
|
|
5379
5384
|
var field = _iterator__ex2g4s.n();
|
|
5380
|
-
out.
|
|
5385
|
+
out.q2k(i, field, source.v2e(i, field));
|
|
5381
5386
|
}
|
|
5382
5387
|
}
|
|
5383
5388
|
while (inductionVariable < last);
|
|
@@ -5385,9 +5390,9 @@
|
|
|
5385
5390
|
}
|
|
5386
5391
|
function $fixElevationWithOriginsCOROUTINE$(_this__u8e3s4, source, provider, resultContinuation) {
|
|
5387
5392
|
CoroutineImpl.call(this, resultContinuation);
|
|
5388
|
-
this.
|
|
5389
|
-
this.
|
|
5390
|
-
this.
|
|
5393
|
+
this.z2k_1 = _this__u8e3s4;
|
|
5394
|
+
this.a2l_1 = source;
|
|
5395
|
+
this.b2l_1 = provider;
|
|
5391
5396
|
}
|
|
5392
5397
|
protoOf($fixElevationWithOriginsCOROUTINE$).r7 = function () {
|
|
5393
5398
|
var suspendResult = this.l7_1;
|
|
@@ -5397,21 +5402,21 @@
|
|
|
5397
5402
|
switch (tmp) {
|
|
5398
5403
|
case 0:
|
|
5399
5404
|
this.k7_1 = 2;
|
|
5400
|
-
if (this.
|
|
5405
|
+
if (this.a2l_1.s2b_1 === 0)
|
|
5401
5406
|
return to(new Path(0), emptyList());
|
|
5402
|
-
var size = this.
|
|
5407
|
+
var size = this.a2l_1.s2b_1;
|
|
5403
5408
|
var list = ArrayList_init_$Create$_0(size);
|
|
5404
5409
|
var inductionVariable = 0;
|
|
5405
5410
|
if (inductionVariable < size)
|
|
5406
5411
|
do {
|
|
5407
5412
|
var index = inductionVariable;
|
|
5408
5413
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5409
|
-
list.k(new LatLon(this.
|
|
5414
|
+
list.k(new LatLon(this.a2l_1.v2b(index) * 57.29577951308232, this.a2l_1.w2b(index) * 57.29577951308232));
|
|
5410
5415
|
}
|
|
5411
5416
|
while (inductionVariable < size);
|
|
5412
5417
|
var coords = list;
|
|
5413
5418
|
this.j7_1 = 1;
|
|
5414
|
-
suspendResult = this.
|
|
5419
|
+
suspendResult = this.b2l_1.v19(coords, VOID, this);
|
|
5415
5420
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5416
5421
|
return suspendResult;
|
|
5417
5422
|
}
|
|
@@ -5419,17 +5424,17 @@
|
|
|
5419
5424
|
continue $sm;
|
|
5420
5425
|
case 1:
|
|
5421
5426
|
var samples = suspendResult;
|
|
5422
|
-
var out = copyAllSlots(this.
|
|
5427
|
+
var out = copyAllSlots(this.z2k_1, this.a2l_1);
|
|
5423
5428
|
var inductionVariable_0 = 0;
|
|
5424
|
-
var last = out.
|
|
5429
|
+
var last = out.s2b_1;
|
|
5425
5430
|
if (inductionVariable_0 < last)
|
|
5426
5431
|
do {
|
|
5427
5432
|
var i = inductionVariable_0;
|
|
5428
5433
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
5429
|
-
out.
|
|
5434
|
+
out.r2c(i, samples.p(i).l19_1);
|
|
5430
5435
|
}
|
|
5431
5436
|
while (inductionVariable_0 < last);
|
|
5432
|
-
out.
|
|
5437
|
+
out.m2d();
|
|
5433
5438
|
return to(out, samples);
|
|
5434
5439
|
case 2:
|
|
5435
5440
|
throw this.m7_1;
|
|
@@ -5446,20 +5451,20 @@
|
|
|
5446
5451
|
while (true);
|
|
5447
5452
|
};
|
|
5448
5453
|
function ElevationStep() {
|
|
5449
|
-
this.
|
|
5454
|
+
this.c2l_1 = 150.0;
|
|
5450
5455
|
}
|
|
5451
|
-
protoOf(ElevationStep).
|
|
5456
|
+
protoOf(ElevationStep).d2l = function (source, provider, $completion) {
|
|
5452
5457
|
var tmp = new $fixElevationWithOriginsCOROUTINE$(this, source, provider, $completion);
|
|
5453
5458
|
tmp.l7_1 = Unit_instance;
|
|
5454
5459
|
tmp.m7_1 = null;
|
|
5455
5460
|
return tmp.r7();
|
|
5456
5461
|
};
|
|
5457
|
-
protoOf(ElevationStep).
|
|
5458
|
-
if (source.
|
|
5462
|
+
protoOf(ElevationStep).e2l = function (source, windowM) {
|
|
5463
|
+
if (source.s2b_1 === 0)
|
|
5459
5464
|
return new Path(0);
|
|
5460
5465
|
// Inline function 'kotlin.collections.List' call
|
|
5461
5466
|
// Inline function 'kotlin.collections.MutableList' call
|
|
5462
|
-
var size = source.
|
|
5467
|
+
var size = source.s2b_1;
|
|
5463
5468
|
var list = ArrayList_init_$Create$_0(size);
|
|
5464
5469
|
// Inline function 'kotlin.repeat' call
|
|
5465
5470
|
var inductionVariable = 0;
|
|
@@ -5467,7 +5472,7 @@
|
|
|
5467
5472
|
do {
|
|
5468
5473
|
var index = inductionVariable;
|
|
5469
5474
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5470
|
-
var tmp$ret$4 = source.
|
|
5475
|
+
var tmp$ret$4 = source.f2l(index);
|
|
5471
5476
|
list.k(tmp$ret$4);
|
|
5472
5477
|
}
|
|
5473
5478
|
while (inductionVariable < size);
|
|
@@ -5475,19 +5480,19 @@
|
|
|
5475
5480
|
var smoothed = ElevationSmoother_instance.h12(coords, windowM);
|
|
5476
5481
|
var out = copyAllSlots(this, source);
|
|
5477
5482
|
var inductionVariable_0 = 0;
|
|
5478
|
-
var last = out.
|
|
5483
|
+
var last = out.s2b_1;
|
|
5479
5484
|
if (inductionVariable_0 < last)
|
|
5480
5485
|
do {
|
|
5481
5486
|
var i = inductionVariable_0;
|
|
5482
5487
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
5483
|
-
if (isNaN_0(out.
|
|
5484
|
-
out.
|
|
5488
|
+
if (isNaN_0(out.g2k(i))) {
|
|
5489
|
+
out.g2l(i, source.x2b(i));
|
|
5485
5490
|
}
|
|
5486
|
-
out.
|
|
5491
|
+
out.r2c(i, smoothed.p(i).s12());
|
|
5487
5492
|
}
|
|
5488
5493
|
while (inductionVariable_0 < last);
|
|
5489
|
-
out.
|
|
5490
|
-
out.
|
|
5494
|
+
out.m2d();
|
|
5495
|
+
out.j2d_1 = source.j2d_1;
|
|
5491
5496
|
return out;
|
|
5492
5497
|
};
|
|
5493
5498
|
var ElevationStep_instance;
|
|
@@ -5496,21 +5501,21 @@
|
|
|
5496
5501
|
}
|
|
5497
5502
|
function FieldInterpolation() {
|
|
5498
5503
|
FieldInterpolation_instance = this;
|
|
5499
|
-
this.
|
|
5500
|
-
this.
|
|
5504
|
+
this.h2l_1 = 6.283185307179586;
|
|
5505
|
+
this.i2l_1 = setOf([PointField_LONGITUDE_getInstance(), PointField_SOURCE_LONGITUDE_getInstance(), PointField_BEARING_getInstance(), PointField_WIND_BEARING_getInstance(), PointField_WIND_DIRECTION_getInstance(), PointField_WIND_ALPHA_getInstance()]);
|
|
5501
5506
|
}
|
|
5502
|
-
protoOf(FieldInterpolation).
|
|
5507
|
+
protoOf(FieldInterpolation).j2l = function (src, i1, i2, coef, dst, dstIdx) {
|
|
5503
5508
|
var _iterator__ex2g4s = get_entries_3().l();
|
|
5504
5509
|
while (_iterator__ex2g4s.m()) {
|
|
5505
5510
|
var field = _iterator__ex2g4s.n();
|
|
5506
|
-
dst.
|
|
5511
|
+
dst.q2k(dstIdx, field, this.k2l(field, src.v2e(i1, field), src.v2e(i2, field), coef));
|
|
5507
5512
|
}
|
|
5508
5513
|
};
|
|
5509
|
-
protoOf(FieldInterpolation).
|
|
5514
|
+
protoOf(FieldInterpolation).k2l = function (field, v1, v2, coef) {
|
|
5510
5515
|
if (isNaN_0(v1) || isNaN_0(v2))
|
|
5511
5516
|
return NaN;
|
|
5512
5517
|
var delta = v2 - v1;
|
|
5513
|
-
if (!this.
|
|
5518
|
+
if (!this.i2l_1.m1(field) || (delta >= -3.141592653589793 && delta <= 3.141592653589793))
|
|
5514
5519
|
return v1 + delta * coef;
|
|
5515
5520
|
var arc = delta > 3.141592653589793 ? delta - 6.283185307179586 : delta + 6.283185307179586;
|
|
5516
5521
|
var v = v1 + arc * coef;
|
|
@@ -5524,235 +5529,235 @@
|
|
|
5524
5529
|
return FieldInterpolation_instance;
|
|
5525
5530
|
}
|
|
5526
5531
|
function GeneratedPath(size) {
|
|
5527
|
-
this.
|
|
5532
|
+
this.s2b_1 = size;
|
|
5528
5533
|
// Inline function 'kotlin.require' call
|
|
5529
|
-
if (!(this.
|
|
5530
|
-
var message = 'Negative size: ' + this.
|
|
5534
|
+
if (!(this.s2b_1 >= 0)) {
|
|
5535
|
+
var message = 'Negative size: ' + this.s2b_1;
|
|
5531
5536
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
5532
5537
|
}
|
|
5533
|
-
this.
|
|
5538
|
+
this.t2b_1 = new Float64Array(imul(this.s2b_1, 44));
|
|
5534
5539
|
var inductionVariable = 0;
|
|
5535
|
-
var last = this.
|
|
5540
|
+
var last = this.s2b_1;
|
|
5536
5541
|
if (inductionVariable < last)
|
|
5537
5542
|
do {
|
|
5538
5543
|
var i = inductionVariable;
|
|
5539
5544
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5540
|
-
this.
|
|
5541
|
-
this.
|
|
5542
|
-
this.
|
|
5543
|
-
this.
|
|
5544
|
-
this.
|
|
5545
|
-
this.
|
|
5545
|
+
this.t2b_1[imul(i, 44) + 38 | 0] = NaN;
|
|
5546
|
+
this.t2b_1[imul(i, 44) + 39 | 0] = NaN;
|
|
5547
|
+
this.t2b_1[imul(i, 44) + 40 | 0] = NaN;
|
|
5548
|
+
this.t2b_1[imul(i, 44) + 41 | 0] = NaN;
|
|
5549
|
+
this.t2b_1[imul(i, 44) + 42 | 0] = NaN;
|
|
5550
|
+
this.t2b_1[imul(i, 44) + 43 | 0] = NaN;
|
|
5546
5551
|
}
|
|
5547
5552
|
while (inductionVariable < last);
|
|
5548
5553
|
}
|
|
5549
|
-
protoOf(GeneratedPath).
|
|
5550
|
-
return this.
|
|
5551
|
-
};
|
|
5552
|
-
protoOf(GeneratedPath).n2k = function (i, field, v) {
|
|
5553
|
-
this.r2b_1[imul(i, 44) + field.y1_1 | 0] = v;
|
|
5554
|
-
};
|
|
5555
|
-
protoOf(GeneratedPath).t2b = function (i) {
|
|
5556
|
-
return this.r2b_1[imul(i, 44) + 0 | 0];
|
|
5557
|
-
};
|
|
5558
|
-
protoOf(GeneratedPath).n2c = function (i, v) {
|
|
5559
|
-
this.r2b_1[imul(i, 44) + 0 | 0] = v;
|
|
5560
|
-
};
|
|
5561
|
-
protoOf(GeneratedPath).u2b = function (i) {
|
|
5562
|
-
return this.r2b_1[imul(i, 44) + 1 | 0];
|
|
5554
|
+
protoOf(GeneratedPath).v2e = function (i, field) {
|
|
5555
|
+
return this.t2b_1[imul(i, 44) + field.y1_1 | 0];
|
|
5563
5556
|
};
|
|
5564
|
-
protoOf(GeneratedPath).
|
|
5565
|
-
this.
|
|
5557
|
+
protoOf(GeneratedPath).q2k = function (i, field, v) {
|
|
5558
|
+
this.t2b_1[imul(i, 44) + field.y1_1 | 0] = v;
|
|
5566
5559
|
};
|
|
5567
|
-
protoOf(GeneratedPath).
|
|
5568
|
-
return this.
|
|
5569
|
-
};
|
|
5570
|
-
protoOf(GeneratedPath).i2l = function (i, v) {
|
|
5571
|
-
this.r2b_1[imul(i, 44) + 2 | 0] = v;
|
|
5560
|
+
protoOf(GeneratedPath).v2b = function (i) {
|
|
5561
|
+
return this.t2b_1[imul(i, 44) + 0 | 0];
|
|
5572
5562
|
};
|
|
5573
|
-
protoOf(GeneratedPath).
|
|
5574
|
-
this.
|
|
5563
|
+
protoOf(GeneratedPath).p2c = function (i, v) {
|
|
5564
|
+
this.t2b_1[imul(i, 44) + 0 | 0] = v;
|
|
5575
5565
|
};
|
|
5576
|
-
protoOf(GeneratedPath).
|
|
5577
|
-
return this.
|
|
5566
|
+
protoOf(GeneratedPath).w2b = function (i) {
|
|
5567
|
+
return this.t2b_1[imul(i, 44) + 1 | 0];
|
|
5578
5568
|
};
|
|
5579
5569
|
protoOf(GeneratedPath).q2c = function (i, v) {
|
|
5580
|
-
this.
|
|
5570
|
+
this.t2b_1[imul(i, 44) + 1 | 0] = v;
|
|
5581
5571
|
};
|
|
5582
|
-
protoOf(GeneratedPath).
|
|
5583
|
-
return this.
|
|
5572
|
+
protoOf(GeneratedPath).f2k = function (i) {
|
|
5573
|
+
return this.t2b_1[imul(i, 44) + 2 | 0];
|
|
5584
5574
|
};
|
|
5585
5575
|
protoOf(GeneratedPath).l2l = function (i, v) {
|
|
5586
|
-
this.
|
|
5576
|
+
this.t2b_1[imul(i, 44) + 2 | 0] = v;
|
|
5587
5577
|
};
|
|
5588
|
-
protoOf(GeneratedPath).m2l = function (i) {
|
|
5589
|
-
|
|
5578
|
+
protoOf(GeneratedPath).m2l = function (i, v) {
|
|
5579
|
+
this.t2b_1[imul(i, 44) + 3 | 0] = v;
|
|
5590
5580
|
};
|
|
5591
|
-
protoOf(GeneratedPath).
|
|
5592
|
-
this.
|
|
5581
|
+
protoOf(GeneratedPath).u2b = function (i) {
|
|
5582
|
+
return this.t2b_1[imul(i, 44) + 4 | 0];
|
|
5593
5583
|
};
|
|
5594
|
-
protoOf(GeneratedPath).
|
|
5595
|
-
|
|
5584
|
+
protoOf(GeneratedPath).s2c = function (i, v) {
|
|
5585
|
+
this.t2b_1[imul(i, 44) + 4 | 0] = v;
|
|
5596
5586
|
};
|
|
5597
|
-
protoOf(GeneratedPath).
|
|
5598
|
-
this.
|
|
5587
|
+
protoOf(GeneratedPath).n2l = function (i) {
|
|
5588
|
+
return this.t2b_1[imul(i, 44) + 5 | 0];
|
|
5599
5589
|
};
|
|
5600
|
-
protoOf(GeneratedPath).
|
|
5601
|
-
|
|
5590
|
+
protoOf(GeneratedPath).o2l = function (i, v) {
|
|
5591
|
+
this.t2b_1[imul(i, 44) + 5 | 0] = v;
|
|
5602
5592
|
};
|
|
5603
|
-
protoOf(GeneratedPath).
|
|
5604
|
-
this.
|
|
5593
|
+
protoOf(GeneratedPath).p2l = function (i) {
|
|
5594
|
+
return this.t2b_1[imul(i, 44) + 6 | 0];
|
|
5595
|
+
};
|
|
5596
|
+
protoOf(GeneratedPath).q2l = function (i, v) {
|
|
5597
|
+
this.t2b_1[imul(i, 44) + 6 | 0] = v;
|
|
5605
5598
|
};
|
|
5606
|
-
protoOf(GeneratedPath).
|
|
5607
|
-
return this.
|
|
5599
|
+
protoOf(GeneratedPath).r2l = function (i) {
|
|
5600
|
+
return this.t2b_1[imul(i, 44) + 7 | 0];
|
|
5608
5601
|
};
|
|
5609
|
-
protoOf(GeneratedPath).
|
|
5610
|
-
this.
|
|
5602
|
+
protoOf(GeneratedPath).s2l = function (i, v) {
|
|
5603
|
+
this.t2b_1[imul(i, 44) + 7 | 0] = v;
|
|
5611
5604
|
};
|
|
5612
|
-
protoOf(GeneratedPath).
|
|
5613
|
-
return this.
|
|
5605
|
+
protoOf(GeneratedPath).x2b = function (i) {
|
|
5606
|
+
return this.t2b_1[imul(i, 44) + 8 | 0];
|
|
5607
|
+
};
|
|
5608
|
+
protoOf(GeneratedPath).r2c = function (i, v) {
|
|
5609
|
+
this.t2b_1[imul(i, 44) + 8 | 0] = v;
|
|
5614
5610
|
};
|
|
5615
|
-
protoOf(GeneratedPath).t2l = function (i
|
|
5616
|
-
this.
|
|
5611
|
+
protoOf(GeneratedPath).t2l = function (i) {
|
|
5612
|
+
return this.t2b_1[imul(i, 44) + 9 | 0];
|
|
5617
5613
|
};
|
|
5618
5614
|
protoOf(GeneratedPath).u2l = function (i, v) {
|
|
5619
|
-
this.
|
|
5615
|
+
this.t2b_1[imul(i, 44) + 9 | 0] = v;
|
|
5620
5616
|
};
|
|
5621
|
-
protoOf(GeneratedPath).v2l = function (i
|
|
5622
|
-
this.
|
|
5617
|
+
protoOf(GeneratedPath).v2l = function (i) {
|
|
5618
|
+
return this.t2b_1[imul(i, 44) + 10 | 0];
|
|
5623
5619
|
};
|
|
5624
|
-
protoOf(GeneratedPath).w2l = function (i) {
|
|
5625
|
-
|
|
5620
|
+
protoOf(GeneratedPath).w2l = function (i, v) {
|
|
5621
|
+
this.t2b_1[imul(i, 44) + 10 | 0] = v;
|
|
5626
5622
|
};
|
|
5627
5623
|
protoOf(GeneratedPath).x2l = function (i, v) {
|
|
5628
|
-
this.
|
|
5624
|
+
this.t2b_1[imul(i, 44) + 11 | 0] = v;
|
|
5629
5625
|
};
|
|
5630
5626
|
protoOf(GeneratedPath).y2l = function (i, v) {
|
|
5631
|
-
this.
|
|
5627
|
+
this.t2b_1[imul(i, 44) + 12 | 0] = v;
|
|
5632
5628
|
};
|
|
5633
|
-
protoOf(GeneratedPath).z2l = function (i
|
|
5634
|
-
this.
|
|
5629
|
+
protoOf(GeneratedPath).z2l = function (i) {
|
|
5630
|
+
return this.t2b_1[imul(i, 44) + 13 | 0];
|
|
5635
5631
|
};
|
|
5636
5632
|
protoOf(GeneratedPath).a2m = function (i, v) {
|
|
5637
|
-
this.
|
|
5633
|
+
this.t2b_1[imul(i, 44) + 13 | 0] = v;
|
|
5638
5634
|
};
|
|
5639
5635
|
protoOf(GeneratedPath).b2m = function (i, v) {
|
|
5640
|
-
this.
|
|
5641
|
-
};
|
|
5642
|
-
protoOf(GeneratedPath).z2b = function (i) {
|
|
5643
|
-
return this.r2b_1[imul(i, 44) + 18 | 0];
|
|
5644
|
-
};
|
|
5645
|
-
protoOf(GeneratedPath).r2c = function (i, v) {
|
|
5646
|
-
this.r2b_1[imul(i, 44) + 18 | 0] = v;
|
|
5636
|
+
this.t2b_1[imul(i, 44) + 14 | 0] = v;
|
|
5647
5637
|
};
|
|
5648
5638
|
protoOf(GeneratedPath).c2m = function (i, v) {
|
|
5649
|
-
this.
|
|
5639
|
+
this.t2b_1[imul(i, 44) + 15 | 0] = v;
|
|
5650
5640
|
};
|
|
5651
5641
|
protoOf(GeneratedPath).d2m = function (i, v) {
|
|
5652
|
-
this.
|
|
5642
|
+
this.t2b_1[imul(i, 44) + 16 | 0] = v;
|
|
5653
5643
|
};
|
|
5654
5644
|
protoOf(GeneratedPath).e2m = function (i, v) {
|
|
5655
|
-
this.
|
|
5645
|
+
this.t2b_1[imul(i, 44) + 17 | 0] = v;
|
|
5646
|
+
};
|
|
5647
|
+
protoOf(GeneratedPath).b2c = function (i) {
|
|
5648
|
+
return this.t2b_1[imul(i, 44) + 18 | 0];
|
|
5649
|
+
};
|
|
5650
|
+
protoOf(GeneratedPath).t2c = function (i, v) {
|
|
5651
|
+
this.t2b_1[imul(i, 44) + 18 | 0] = v;
|
|
5656
5652
|
};
|
|
5657
5653
|
protoOf(GeneratedPath).f2m = function (i, v) {
|
|
5658
|
-
this.
|
|
5654
|
+
this.t2b_1[imul(i, 44) + 19 | 0] = v;
|
|
5659
5655
|
};
|
|
5660
5656
|
protoOf(GeneratedPath).g2m = function (i, v) {
|
|
5661
|
-
this.
|
|
5657
|
+
this.t2b_1[imul(i, 44) + 20 | 0] = v;
|
|
5662
5658
|
};
|
|
5663
5659
|
protoOf(GeneratedPath).h2m = function (i, v) {
|
|
5664
|
-
this.
|
|
5660
|
+
this.t2b_1[imul(i, 44) + 21 | 0] = v;
|
|
5665
5661
|
};
|
|
5666
5662
|
protoOf(GeneratedPath).i2m = function (i, v) {
|
|
5667
|
-
this.
|
|
5668
|
-
};
|
|
5669
|
-
protoOf(GeneratedPath).a2c = function (i) {
|
|
5670
|
-
return this.r2b_1[imul(i, 44) + 26 | 0];
|
|
5663
|
+
this.t2b_1[imul(i, 44) + 22 | 0] = v;
|
|
5671
5664
|
};
|
|
5672
5665
|
protoOf(GeneratedPath).j2m = function (i, v) {
|
|
5673
|
-
this.
|
|
5666
|
+
this.t2b_1[imul(i, 44) + 23 | 0] = v;
|
|
5674
5667
|
};
|
|
5675
|
-
protoOf(GeneratedPath).k2m = function (i) {
|
|
5676
|
-
|
|
5668
|
+
protoOf(GeneratedPath).k2m = function (i, v) {
|
|
5669
|
+
this.t2b_1[imul(i, 44) + 24 | 0] = v;
|
|
5677
5670
|
};
|
|
5678
5671
|
protoOf(GeneratedPath).l2m = function (i, v) {
|
|
5679
|
-
this.
|
|
5672
|
+
this.t2b_1[imul(i, 44) + 25 | 0] = v;
|
|
5680
5673
|
};
|
|
5681
|
-
protoOf(GeneratedPath).
|
|
5682
|
-
return this.
|
|
5674
|
+
protoOf(GeneratedPath).c2c = function (i) {
|
|
5675
|
+
return this.t2b_1[imul(i, 44) + 26 | 0];
|
|
5683
5676
|
};
|
|
5684
|
-
protoOf(GeneratedPath).
|
|
5685
|
-
this.
|
|
5686
|
-
};
|
|
5687
|
-
protoOf(GeneratedPath).o2m = function (i, v) {
|
|
5688
|
-
this.r2b_1[imul(i, 44) + 29 | 0] = v;
|
|
5677
|
+
protoOf(GeneratedPath).m2m = function (i, v) {
|
|
5678
|
+
this.t2b_1[imul(i, 44) + 26 | 0] = v;
|
|
5689
5679
|
};
|
|
5690
|
-
protoOf(GeneratedPath).
|
|
5691
|
-
this.
|
|
5680
|
+
protoOf(GeneratedPath).n2m = function (i) {
|
|
5681
|
+
return this.t2b_1[imul(i, 44) + 27 | 0];
|
|
5692
5682
|
};
|
|
5693
|
-
protoOf(GeneratedPath).
|
|
5694
|
-
|
|
5683
|
+
protoOf(GeneratedPath).o2m = function (i, v) {
|
|
5684
|
+
this.t2b_1[imul(i, 44) + 27 | 0] = v;
|
|
5695
5685
|
};
|
|
5696
|
-
protoOf(GeneratedPath).
|
|
5697
|
-
this.
|
|
5686
|
+
protoOf(GeneratedPath).p2m = function (i) {
|
|
5687
|
+
return this.t2b_1[imul(i, 44) + 28 | 0];
|
|
5698
5688
|
};
|
|
5699
|
-
protoOf(GeneratedPath).q2m = function (i) {
|
|
5700
|
-
|
|
5689
|
+
protoOf(GeneratedPath).q2m = function (i, v) {
|
|
5690
|
+
this.t2b_1[imul(i, 44) + 28 | 0] = v;
|
|
5701
5691
|
};
|
|
5702
5692
|
protoOf(GeneratedPath).r2m = function (i, v) {
|
|
5703
|
-
this.
|
|
5693
|
+
this.t2b_1[imul(i, 44) + 29 | 0] = v;
|
|
5704
5694
|
};
|
|
5705
5695
|
protoOf(GeneratedPath).s2m = function (i, v) {
|
|
5706
|
-
this.
|
|
5696
|
+
this.t2b_1[imul(i, 44) + 30 | 0] = v;
|
|
5707
5697
|
};
|
|
5708
|
-
protoOf(GeneratedPath).
|
|
5709
|
-
return this.
|
|
5698
|
+
protoOf(GeneratedPath).a2c = function (i) {
|
|
5699
|
+
return this.t2b_1[imul(i, 44) + 31 | 0];
|
|
5710
5700
|
};
|
|
5711
|
-
protoOf(GeneratedPath).
|
|
5712
|
-
this.
|
|
5701
|
+
protoOf(GeneratedPath).w2c = function (i, v) {
|
|
5702
|
+
this.t2b_1[imul(i, 44) + 31 | 0] = v;
|
|
5713
5703
|
};
|
|
5714
|
-
protoOf(GeneratedPath).
|
|
5715
|
-
return this.
|
|
5704
|
+
protoOf(GeneratedPath).t2m = function (i) {
|
|
5705
|
+
return this.t2b_1[imul(i, 44) + 32 | 0];
|
|
5716
5706
|
};
|
|
5717
|
-
protoOf(GeneratedPath).
|
|
5718
|
-
this.
|
|
5707
|
+
protoOf(GeneratedPath).u2m = function (i, v) {
|
|
5708
|
+
this.t2b_1[imul(i, 44) + 32 | 0] = v;
|
|
5719
5709
|
};
|
|
5720
|
-
protoOf(GeneratedPath).
|
|
5721
|
-
this.
|
|
5710
|
+
protoOf(GeneratedPath).v2m = function (i, v) {
|
|
5711
|
+
this.t2b_1[imul(i, 44) + 33 | 0] = v;
|
|
5722
5712
|
};
|
|
5723
|
-
protoOf(GeneratedPath).
|
|
5724
|
-
this.
|
|
5713
|
+
protoOf(GeneratedPath).y2b = function (i) {
|
|
5714
|
+
return this.t2b_1[imul(i, 44) + 34 | 0];
|
|
5725
5715
|
};
|
|
5726
|
-
protoOf(GeneratedPath).
|
|
5727
|
-
|
|
5716
|
+
protoOf(GeneratedPath).u2c = function (i, v) {
|
|
5717
|
+
this.t2b_1[imul(i, 44) + 34 | 0] = v;
|
|
5728
5718
|
};
|
|
5729
|
-
protoOf(GeneratedPath).
|
|
5730
|
-
this.
|
|
5719
|
+
protoOf(GeneratedPath).z2b = function (i) {
|
|
5720
|
+
return this.t2b_1[imul(i, 44) + 35 | 0];
|
|
5721
|
+
};
|
|
5722
|
+
protoOf(GeneratedPath).v2c = function (i, v) {
|
|
5723
|
+
this.t2b_1[imul(i, 44) + 35 | 0] = v;
|
|
5731
5724
|
};
|
|
5732
|
-
protoOf(GeneratedPath).
|
|
5733
|
-
|
|
5725
|
+
protoOf(GeneratedPath).w2m = function (i, v) {
|
|
5726
|
+
this.t2b_1[imul(i, 44) + 36 | 0] = v;
|
|
5734
5727
|
};
|
|
5735
|
-
protoOf(GeneratedPath).
|
|
5736
|
-
this.
|
|
5728
|
+
protoOf(GeneratedPath).x2m = function (i, v) {
|
|
5729
|
+
this.t2b_1[imul(i, 44) + 37 | 0] = v;
|
|
5737
5730
|
};
|
|
5738
|
-
protoOf(GeneratedPath).y2m = function (i
|
|
5739
|
-
this.
|
|
5731
|
+
protoOf(GeneratedPath).y2m = function (i) {
|
|
5732
|
+
return this.t2b_1[imul(i, 44) + 38 | 0];
|
|
5740
5733
|
};
|
|
5741
5734
|
protoOf(GeneratedPath).z2m = function (i, v) {
|
|
5742
|
-
this.
|
|
5735
|
+
this.t2b_1[imul(i, 44) + 38 | 0] = v;
|
|
5736
|
+
};
|
|
5737
|
+
protoOf(GeneratedPath).a2n = function (i) {
|
|
5738
|
+
return this.t2b_1[imul(i, 44) + 39 | 0];
|
|
5739
|
+
};
|
|
5740
|
+
protoOf(GeneratedPath).z2c = function (i, v) {
|
|
5741
|
+
this.t2b_1[imul(i, 44) + 39 | 0] = v;
|
|
5743
5742
|
};
|
|
5744
|
-
protoOf(GeneratedPath).
|
|
5745
|
-
this.
|
|
5743
|
+
protoOf(GeneratedPath).b2n = function (i, v) {
|
|
5744
|
+
this.t2b_1[imul(i, 44) + 40 | 0] = v;
|
|
5746
5745
|
};
|
|
5747
|
-
protoOf(GeneratedPath).
|
|
5748
|
-
|
|
5746
|
+
protoOf(GeneratedPath).c2n = function (i, v) {
|
|
5747
|
+
this.t2b_1[imul(i, 44) + 41 | 0] = v;
|
|
5749
5748
|
};
|
|
5750
|
-
protoOf(GeneratedPath).
|
|
5751
|
-
this.
|
|
5749
|
+
protoOf(GeneratedPath).d2n = function (i, v) {
|
|
5750
|
+
this.t2b_1[imul(i, 44) + 42 | 0] = v;
|
|
5751
|
+
};
|
|
5752
|
+
protoOf(GeneratedPath).g2k = function (i) {
|
|
5753
|
+
return this.t2b_1[imul(i, 44) + 43 | 0];
|
|
5754
|
+
};
|
|
5755
|
+
protoOf(GeneratedPath).g2l = function (i, v) {
|
|
5756
|
+
this.t2b_1[imul(i, 44) + 43 | 0] = v;
|
|
5752
5757
|
};
|
|
5753
5758
|
function Companion_7() {
|
|
5754
5759
|
Companion_instance_8 = this;
|
|
5755
|
-
this.
|
|
5760
|
+
this.e2n_1 = new BoundsRad(0.0, 0.0, 0.0, 0.0);
|
|
5756
5761
|
}
|
|
5757
5762
|
var Companion_instance_8;
|
|
5758
5763
|
function Companion_getInstance_7() {
|
|
@@ -5762,19 +5767,19 @@
|
|
|
5762
5767
|
}
|
|
5763
5768
|
function BoundsRad(minLat, maxLat, minLon, maxLon) {
|
|
5764
5769
|
Companion_getInstance_7();
|
|
5765
|
-
this.
|
|
5766
|
-
this.
|
|
5767
|
-
this.
|
|
5768
|
-
this.
|
|
5770
|
+
this.f2n_1 = minLat;
|
|
5771
|
+
this.g2n_1 = maxLat;
|
|
5772
|
+
this.h2n_1 = minLon;
|
|
5773
|
+
this.i2n_1 = maxLon;
|
|
5769
5774
|
}
|
|
5770
5775
|
protoOf(BoundsRad).toString = function () {
|
|
5771
|
-
return 'BoundsRad(minLat=' + this.
|
|
5776
|
+
return 'BoundsRad(minLat=' + this.f2n_1 + ', maxLat=' + this.g2n_1 + ', minLon=' + this.h2n_1 + ', maxLon=' + this.i2n_1 + ')';
|
|
5772
5777
|
};
|
|
5773
5778
|
protoOf(BoundsRad).hashCode = function () {
|
|
5774
|
-
var result = getNumberHashCode(this.
|
|
5775
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
5776
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
5777
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
5779
|
+
var result = getNumberHashCode(this.f2n_1);
|
|
5780
|
+
result = imul(result, 31) + getNumberHashCode(this.g2n_1) | 0;
|
|
5781
|
+
result = imul(result, 31) + getNumberHashCode(this.h2n_1) | 0;
|
|
5782
|
+
result = imul(result, 31) + getNumberHashCode(this.i2n_1) | 0;
|
|
5778
5783
|
return result;
|
|
5779
5784
|
};
|
|
5780
5785
|
protoOf(BoundsRad).equals = function (other) {
|
|
@@ -5782,19 +5787,17 @@
|
|
|
5782
5787
|
return true;
|
|
5783
5788
|
if (!(other instanceof BoundsRad))
|
|
5784
5789
|
return false;
|
|
5785
|
-
if (!equals(this.
|
|
5790
|
+
if (!equals(this.f2n_1, other.f2n_1))
|
|
5786
5791
|
return false;
|
|
5787
|
-
if (!equals(this.
|
|
5792
|
+
if (!equals(this.g2n_1, other.g2n_1))
|
|
5788
5793
|
return false;
|
|
5789
|
-
if (!equals(this.
|
|
5794
|
+
if (!equals(this.h2n_1, other.h2n_1))
|
|
5790
5795
|
return false;
|
|
5791
|
-
if (!equals(this.
|
|
5796
|
+
if (!equals(this.i2n_1, other.i2n_1))
|
|
5792
5797
|
return false;
|
|
5793
5798
|
return true;
|
|
5794
5799
|
};
|
|
5795
5800
|
function copyStatsFrom($this, other) {
|
|
5796
|
-
$this.a2d_1 = other.a2d_1;
|
|
5797
|
-
$this.b2d_1 = other.b2d_1;
|
|
5798
5801
|
$this.c2d_1 = other.c2d_1;
|
|
5799
5802
|
$this.d2d_1 = other.d2d_1;
|
|
5800
5803
|
$this.e2d_1 = other.e2d_1;
|
|
@@ -5803,22 +5806,24 @@
|
|
|
5803
5806
|
$this.h2d_1 = other.h2d_1;
|
|
5804
5807
|
$this.i2d_1 = other.i2d_1;
|
|
5805
5808
|
$this.j2d_1 = other.j2d_1;
|
|
5809
|
+
$this.k2d_1 = other.k2d_1;
|
|
5810
|
+
$this.l2d_1 = other.l2d_1;
|
|
5806
5811
|
}
|
|
5807
5812
|
function resetStats($this) {
|
|
5808
|
-
$this.a2d_1 = 0.0;
|
|
5809
|
-
$this.b2d_1 = 0.0;
|
|
5810
5813
|
$this.c2d_1 = 0.0;
|
|
5811
5814
|
$this.d2d_1 = 0.0;
|
|
5812
5815
|
$this.e2d_1 = 0.0;
|
|
5813
|
-
$this.f2d_1 =
|
|
5814
|
-
$this.g2d_1 =
|
|
5815
|
-
$this.
|
|
5816
|
-
$this.
|
|
5816
|
+
$this.f2d_1 = 0.0;
|
|
5817
|
+
$this.g2d_1 = 0.0;
|
|
5818
|
+
$this.h2d_1 = NaN;
|
|
5819
|
+
$this.i2d_1 = NaN;
|
|
5820
|
+
$this.k2d_1 = 0.0;
|
|
5821
|
+
$this.l2d_1 = Companion_getInstance_7().e2n_1;
|
|
5817
5822
|
}
|
|
5818
5823
|
function computeBearing($this, from, to) {
|
|
5819
|
-
var lat1 = $this.
|
|
5820
|
-
var lat2 = $this.
|
|
5821
|
-
var dLon = $this.
|
|
5824
|
+
var lat1 = $this.v2b(from);
|
|
5825
|
+
var lat2 = $this.v2b(to);
|
|
5826
|
+
var dLon = $this.w2b(to) - $this.w2b(from);
|
|
5822
5827
|
if (dLon > 3.141592653589793) {
|
|
5823
5828
|
dLon = dLon - 2 * 3.141592653589793;
|
|
5824
5829
|
} else if (dLon <= -3.141592653589793) {
|
|
@@ -5841,41 +5846,41 @@
|
|
|
5841
5846
|
}
|
|
5842
5847
|
function Path(size) {
|
|
5843
5848
|
GeneratedPath.call(this, size);
|
|
5844
|
-
this.a2d_1 = 0.0;
|
|
5845
|
-
this.b2d_1 = 0.0;
|
|
5846
5849
|
this.c2d_1 = 0.0;
|
|
5847
5850
|
this.d2d_1 = 0.0;
|
|
5848
5851
|
this.e2d_1 = 0.0;
|
|
5849
|
-
this.f2d_1 =
|
|
5850
|
-
this.g2d_1 =
|
|
5851
|
-
this.h2d_1 =
|
|
5852
|
-
this.i2d_1 =
|
|
5853
|
-
this.j2d_1 =
|
|
5852
|
+
this.f2d_1 = 0.0;
|
|
5853
|
+
this.g2d_1 = 0.0;
|
|
5854
|
+
this.h2d_1 = NaN;
|
|
5855
|
+
this.i2d_1 = NaN;
|
|
5856
|
+
this.j2d_1 = null;
|
|
5857
|
+
this.k2d_1 = 0.0;
|
|
5858
|
+
this.l2d_1 = Companion_getInstance_7().e2n_1;
|
|
5854
5859
|
}
|
|
5855
|
-
protoOf(Path).
|
|
5856
|
-
return isNaN_0(this.
|
|
5860
|
+
protoOf(Path).j2n = function () {
|
|
5861
|
+
return isNaN_0(this.h2d_1) ? this.f2d_1 : this.h2d_1;
|
|
5857
5862
|
};
|
|
5858
|
-
protoOf(Path).
|
|
5859
|
-
return isNaN_0(this.
|
|
5863
|
+
protoOf(Path).k2n = function () {
|
|
5864
|
+
return isNaN_0(this.i2d_1) ? this.g2d_1 : this.i2d_1;
|
|
5860
5865
|
};
|
|
5861
|
-
protoOf(Path).
|
|
5862
|
-
return until(0, this.
|
|
5866
|
+
protoOf(Path).l2n = function () {
|
|
5867
|
+
return until(0, this.s2b_1);
|
|
5863
5868
|
};
|
|
5864
|
-
protoOf(Path).
|
|
5865
|
-
return this.
|
|
5869
|
+
protoOf(Path).m2n = function (i) {
|
|
5870
|
+
return this.v2b(i) * 57.29577951308232;
|
|
5866
5871
|
};
|
|
5867
|
-
protoOf(Path).
|
|
5868
|
-
return this.
|
|
5872
|
+
protoOf(Path).n2n = function (i) {
|
|
5873
|
+
return this.w2b(i) * 57.29577951308232;
|
|
5869
5874
|
};
|
|
5870
|
-
protoOf(Path).
|
|
5871
|
-
return new LatLonElevation(this.
|
|
5875
|
+
protoOf(Path).f2l = function (i) {
|
|
5876
|
+
return new LatLonElevation(this.m2n(i), this.n2n(i), this.x2b(i));
|
|
5872
5877
|
};
|
|
5873
|
-
protoOf(Path).
|
|
5874
|
-
var out = new Path(this.
|
|
5875
|
-
var tmp0 = this.
|
|
5876
|
-
var tmp2 = out.
|
|
5878
|
+
protoOf(Path).o2n = function () {
|
|
5879
|
+
var out = new Path(this.s2b_1);
|
|
5880
|
+
var tmp0 = this.t2b_1;
|
|
5881
|
+
var tmp2 = out.t2b_1;
|
|
5877
5882
|
// Inline function 'kotlin.collections.copyInto' call
|
|
5878
|
-
var endIndex = this.
|
|
5883
|
+
var endIndex = this.t2b_1.length;
|
|
5879
5884
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
5880
5885
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5881
5886
|
var tmp = tmp0;
|
|
@@ -5885,11 +5890,11 @@
|
|
|
5885
5890
|
copyStatsFrom(out, this);
|
|
5886
5891
|
return out;
|
|
5887
5892
|
};
|
|
5888
|
-
protoOf(Path).
|
|
5893
|
+
protoOf(Path).m2d = function () {
|
|
5889
5894
|
resetStats(this);
|
|
5890
|
-
if (this.
|
|
5895
|
+
if (this.s2b_1 === 0)
|
|
5891
5896
|
return Unit_instance;
|
|
5892
|
-
var timeStart = this.
|
|
5897
|
+
var timeStart = this.u2b(0);
|
|
5893
5898
|
var cumDist = 0.0;
|
|
5894
5899
|
var minLat = Infinity;
|
|
5895
5900
|
var maxLat = -Infinity;
|
|
@@ -5900,14 +5905,14 @@
|
|
|
5900
5905
|
var gain = 0.0;
|
|
5901
5906
|
var loss = 0.0;
|
|
5902
5907
|
var inductionVariable = 0;
|
|
5903
|
-
var last = this.
|
|
5908
|
+
var last = this.s2b_1;
|
|
5904
5909
|
if (inductionVariable < last)
|
|
5905
5910
|
do {
|
|
5906
5911
|
var i = inductionVariable;
|
|
5907
5912
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5908
|
-
var lat = this.
|
|
5909
|
-
var lon = this.
|
|
5910
|
-
var ele = this.
|
|
5913
|
+
var lat = this.v2b(i);
|
|
5914
|
+
var lon = this.w2b(i);
|
|
5915
|
+
var ele = this.x2b(i);
|
|
5911
5916
|
// Inline function 'kotlin.math.min' call
|
|
5912
5917
|
var a = minLat;
|
|
5913
5918
|
minLat = Math.min(a, lat);
|
|
@@ -5927,67 +5932,67 @@
|
|
|
5927
5932
|
var a_4 = maxEle;
|
|
5928
5933
|
maxEle = Math.max(a_4, ele);
|
|
5929
5934
|
if (i > 0) {
|
|
5930
|
-
var prevCoord = new LatLon(this.
|
|
5931
|
-
var curCoord = new LatLon(this.
|
|
5935
|
+
var prevCoord = new LatLon(this.m2n(i - 1 | 0), this.n2n(i - 1 | 0));
|
|
5936
|
+
var curCoord = new LatLon(this.m2n(i), this.n2n(i));
|
|
5932
5937
|
cumDist = cumDist + Distance_instance.n12(prevCoord, curCoord);
|
|
5933
|
-
var dEle = ele - this.
|
|
5938
|
+
var dEle = ele - this.x2b(i - 1 | 0);
|
|
5934
5939
|
if (dEle > 0)
|
|
5935
5940
|
gain = gain + dEle;
|
|
5936
5941
|
else
|
|
5937
5942
|
loss = loss + dEle;
|
|
5938
5943
|
}
|
|
5939
|
-
this.
|
|
5944
|
+
this.l2l(i, cumDist);
|
|
5940
5945
|
}
|
|
5941
5946
|
while (inductionVariable < last);
|
|
5942
|
-
this.
|
|
5943
|
-
this.
|
|
5944
|
-
this.
|
|
5945
|
-
this.
|
|
5946
|
-
this.
|
|
5947
|
-
this.
|
|
5948
|
-
this.
|
|
5947
|
+
this.c2d_1 = cumDist;
|
|
5948
|
+
this.d2d_1 = minEle === Infinity ? 0.0 : minEle;
|
|
5949
|
+
this.e2d_1 = maxEle === -Infinity ? 0.0 : maxEle;
|
|
5950
|
+
this.f2d_1 = gain;
|
|
5951
|
+
this.g2d_1 = loss;
|
|
5952
|
+
this.l2d_1 = new BoundsRad(minLat, maxLat, minLon, maxLon);
|
|
5953
|
+
this.k2d_1 = this.s2b_1 >= 2 ? this.u2b(this.s2b_1 - 1 | 0) - timeStart : 0.0;
|
|
5949
5954
|
var inductionVariable_0 = 0;
|
|
5950
|
-
var last_0 = this.
|
|
5955
|
+
var last_0 = this.s2b_1;
|
|
5951
5956
|
if (inductionVariable_0 < last_0)
|
|
5952
5957
|
$l$loop: do {
|
|
5953
5958
|
var i_0 = inductionVariable_0;
|
|
5954
5959
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
5955
|
-
this.
|
|
5956
|
-
if (this.
|
|
5960
|
+
this.o2l(i_0, (this.u2b(i_0) - timeStart) / 1000.0);
|
|
5961
|
+
if (this.s2b_1 <= 1)
|
|
5957
5962
|
continue $l$loop;
|
|
5958
5963
|
// Inline function 'kotlin.math.max' call
|
|
5959
5964
|
var b = i_0 - 1 | 0;
|
|
5960
5965
|
var im1 = Math.max(0, b);
|
|
5961
|
-
var tmp0 = this.
|
|
5966
|
+
var tmp0 = this.s2b_1 - 1 | 0;
|
|
5962
5967
|
// Inline function 'kotlin.math.min' call
|
|
5963
5968
|
var b_0 = i_0 + 1 | 0;
|
|
5964
5969
|
var ip1 = Math.min(tmp0, b_0);
|
|
5965
|
-
this.
|
|
5966
|
-
var dDist = (this.
|
|
5967
|
-
var dEle_0 = (this.
|
|
5970
|
+
this.s2l(i_0, computeBearing(this, im1, ip1));
|
|
5971
|
+
var dDist = (this.f2k(ip1) - this.f2k(im1)) / 2.0;
|
|
5972
|
+
var dEle_0 = (this.x2b(ip1) - this.x2b(im1)) / 2.0;
|
|
5968
5973
|
var grade = dDist === 0.0 ? 0.0 : dEle_0 / dDist;
|
|
5969
|
-
this.
|
|
5970
|
-
var dTime = (this.
|
|
5971
|
-
this.
|
|
5972
|
-
this.
|
|
5973
|
-
this.
|
|
5974
|
+
this.u2l(i_0, grade);
|
|
5975
|
+
var dTime = (this.u2b(ip1) - this.u2b(im1)) / 2000.0;
|
|
5976
|
+
this.m2l(i_0, dDist);
|
|
5977
|
+
this.q2l(i_0, dTime);
|
|
5978
|
+
this.o2m(i_0, dTime === 0.0 ? 0.0 : dDist / dTime);
|
|
5974
5979
|
}
|
|
5975
5980
|
while (inductionVariable_0 < last_0);
|
|
5976
5981
|
};
|
|
5977
5982
|
function PathSimplifier() {
|
|
5978
5983
|
}
|
|
5979
|
-
protoOf(PathSimplifier).
|
|
5980
|
-
if (path.
|
|
5981
|
-
return path.
|
|
5982
|
-
var coords = ArrayList_init_$Create$_0(path.
|
|
5984
|
+
protoOf(PathSimplifier).p2n = function (path, toleranceM, zExaggeration) {
|
|
5985
|
+
if (path.s2b_1 <= 2)
|
|
5986
|
+
return path.o2n();
|
|
5987
|
+
var coords = ArrayList_init_$Create$_0(path.s2b_1);
|
|
5983
5988
|
var inductionVariable = 0;
|
|
5984
|
-
var last = path.
|
|
5989
|
+
var last = path.s2b_1;
|
|
5985
5990
|
if (inductionVariable < last)
|
|
5986
5991
|
do {
|
|
5987
5992
|
var i = inductionVariable;
|
|
5988
5993
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5989
5994
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5990
|
-
var element = new LatLonElevation(path.
|
|
5995
|
+
var element = new LatLonElevation(path.v2b(i) * 57.29577951308232, path.w2b(i) * 57.29577951308232, path.x2b(i));
|
|
5991
5996
|
coords.k(element);
|
|
5992
5997
|
}
|
|
5993
5998
|
while (inductionVariable < last);
|
|
@@ -6020,13 +6025,13 @@
|
|
|
6020
6025
|
var _iterator__ex2g4s_0 = get_entries_3().l();
|
|
6021
6026
|
while (_iterator__ex2g4s_0.m()) {
|
|
6022
6027
|
var field = _iterator__ex2g4s_0.n();
|
|
6023
|
-
out.
|
|
6028
|
+
out.q2k(dstIdx, field, path.v2e(srcIdx, field));
|
|
6024
6029
|
}
|
|
6025
6030
|
}
|
|
6026
|
-
out.
|
|
6027
|
-
out.f2d_1 = path.f2d_1;
|
|
6028
|
-
out.g2d_1 = path.g2d_1;
|
|
6031
|
+
out.m2d();
|
|
6029
6032
|
out.h2d_1 = path.h2d_1;
|
|
6033
|
+
out.i2d_1 = path.i2d_1;
|
|
6034
|
+
out.j2d_1 = path.j2d_1;
|
|
6030
6035
|
return out;
|
|
6031
6036
|
};
|
|
6032
6037
|
var PathSimplifier_instance;
|
|
@@ -6133,7 +6138,7 @@
|
|
|
6133
6138
|
var PointField_SOURCE_ELEVATION_instance;
|
|
6134
6139
|
function Companion_9() {
|
|
6135
6140
|
Companion_instance_10 = this;
|
|
6136
|
-
this.
|
|
6141
|
+
this.q2n_1 = 44;
|
|
6137
6142
|
var tmp = this;
|
|
6138
6143
|
// Inline function 'kotlin.collections.associateBy' call
|
|
6139
6144
|
var this_0 = get_entries_3();
|
|
@@ -6143,13 +6148,13 @@
|
|
|
6143
6148
|
var _iterator__ex2g4s = this_0.l();
|
|
6144
6149
|
while (_iterator__ex2g4s.m()) {
|
|
6145
6150
|
var element = _iterator__ex2g4s.n();
|
|
6146
|
-
var tmp$ret$2 = element.
|
|
6151
|
+
var tmp$ret$2 = element.n2e_1;
|
|
6147
6152
|
destination.v3(tmp$ret$2, element);
|
|
6148
6153
|
}
|
|
6149
|
-
tmp.
|
|
6154
|
+
tmp.r2n_1 = destination;
|
|
6150
6155
|
}
|
|
6151
|
-
protoOf(Companion_9).
|
|
6152
|
-
return this.
|
|
6156
|
+
protoOf(Companion_9).s2n = function (prop) {
|
|
6157
|
+
return this.r2n_1.t1(prop);
|
|
6153
6158
|
};
|
|
6154
6159
|
var Companion_instance_10;
|
|
6155
6160
|
function Companion_getInstance_9() {
|
|
@@ -6172,13 +6177,13 @@
|
|
|
6172
6177
|
anglesInRadians = anglesInRadians === VOID ? false : anglesInRadians;
|
|
6173
6178
|
nanDefault = nanDefault === VOID ? false : nanDefault;
|
|
6174
6179
|
Enum.call(this, name, ordinal);
|
|
6175
|
-
this.
|
|
6176
|
-
this.
|
|
6177
|
-
this.
|
|
6178
|
-
this.
|
|
6179
|
-
this.
|
|
6180
|
-
this.
|
|
6181
|
-
this.
|
|
6180
|
+
this.n2e_1 = prop;
|
|
6181
|
+
this.o2e_1 = unit;
|
|
6182
|
+
this.p2e_1 = shortDescription;
|
|
6183
|
+
this.q2e_1 = category;
|
|
6184
|
+
this.r2e_1 = notSelectable;
|
|
6185
|
+
this.s2e_1 = anglesInRadians;
|
|
6186
|
+
this.t2e_1 = nanDefault;
|
|
6182
6187
|
}
|
|
6183
6188
|
function PointField_LATITUDE_getInstance() {
|
|
6184
6189
|
static_init_4();
|
|
@@ -6394,8 +6399,8 @@
|
|
|
6394
6399
|
var PointFieldCategory_ROAD_instance;
|
|
6395
6400
|
function PointFieldCategory(name, ordinal, id, displayName) {
|
|
6396
6401
|
Enum.call(this, name, ordinal);
|
|
6397
|
-
this.
|
|
6398
|
-
this.
|
|
6402
|
+
this.v2n_1 = id;
|
|
6403
|
+
this.w2n_1 = displayName;
|
|
6399
6404
|
}
|
|
6400
6405
|
function PointFieldCategory_COORDINATES_getInstance() {
|
|
6401
6406
|
static_init_5();
|
|
@@ -6458,35 +6463,35 @@
|
|
|
6458
6463
|
return PointFieldCategory_ROAD_instance;
|
|
6459
6464
|
}
|
|
6460
6465
|
function Copy(sourceIndex) {
|
|
6461
|
-
this.
|
|
6466
|
+
this.x2n_1 = sourceIndex;
|
|
6462
6467
|
}
|
|
6463
6468
|
protoOf(Copy).toString = function () {
|
|
6464
|
-
return 'Copy(sourceIndex=' + this.
|
|
6469
|
+
return 'Copy(sourceIndex=' + this.x2n_1 + ')';
|
|
6465
6470
|
};
|
|
6466
6471
|
protoOf(Copy).hashCode = function () {
|
|
6467
|
-
return this.
|
|
6472
|
+
return this.x2n_1;
|
|
6468
6473
|
};
|
|
6469
6474
|
protoOf(Copy).equals = function (other) {
|
|
6470
6475
|
if (this === other)
|
|
6471
6476
|
return true;
|
|
6472
6477
|
if (!(other instanceof Copy))
|
|
6473
6478
|
return false;
|
|
6474
|
-
if (!(this.
|
|
6479
|
+
if (!(this.x2n_1 === other.x2n_1))
|
|
6475
6480
|
return false;
|
|
6476
6481
|
return true;
|
|
6477
6482
|
};
|
|
6478
6483
|
function Interpolate(from, to, coef) {
|
|
6479
|
-
this.
|
|
6480
|
-
this.
|
|
6481
|
-
this.
|
|
6484
|
+
this.y2n_1 = from;
|
|
6485
|
+
this.z2n_1 = to;
|
|
6486
|
+
this.a2o_1 = coef;
|
|
6482
6487
|
}
|
|
6483
6488
|
protoOf(Interpolate).toString = function () {
|
|
6484
|
-
return 'Interpolate(from=' + this.
|
|
6489
|
+
return 'Interpolate(from=' + this.y2n_1 + ', to=' + this.z2n_1 + ', coef=' + this.a2o_1 + ')';
|
|
6485
6490
|
};
|
|
6486
6491
|
protoOf(Interpolate).hashCode = function () {
|
|
6487
|
-
var result = this.
|
|
6488
|
-
result = imul(result, 31) + this.
|
|
6489
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
6492
|
+
var result = this.y2n_1;
|
|
6493
|
+
result = imul(result, 31) + this.z2n_1 | 0;
|
|
6494
|
+
result = imul(result, 31) + getNumberHashCode(this.a2o_1) | 0;
|
|
6490
6495
|
return result;
|
|
6491
6496
|
};
|
|
6492
6497
|
protoOf(Interpolate).equals = function (other) {
|
|
@@ -6494,28 +6499,28 @@
|
|
|
6494
6499
|
return true;
|
|
6495
6500
|
if (!(other instanceof Interpolate))
|
|
6496
6501
|
return false;
|
|
6497
|
-
if (!(this.
|
|
6502
|
+
if (!(this.y2n_1 === other.y2n_1))
|
|
6498
6503
|
return false;
|
|
6499
|
-
if (!(this.
|
|
6504
|
+
if (!(this.z2n_1 === other.z2n_1))
|
|
6500
6505
|
return false;
|
|
6501
|
-
if (!equals(this.
|
|
6506
|
+
if (!equals(this.a2o_1, other.a2o_1))
|
|
6502
6507
|
return false;
|
|
6503
6508
|
return true;
|
|
6504
6509
|
};
|
|
6505
6510
|
function buildPlan($this, source, minDistanceM, maxDistanceM) {
|
|
6506
|
-
var n = source.
|
|
6511
|
+
var n = source.s2b_1;
|
|
6507
6512
|
var plan = ArrayList_init_$Create$_0(n);
|
|
6508
6513
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6509
6514
|
var element = new Copy(0);
|
|
6510
6515
|
plan.k(element);
|
|
6511
|
-
var lastAddedDistance = source.
|
|
6516
|
+
var lastAddedDistance = source.f2k(0);
|
|
6512
6517
|
var lastAddedIndex = 0;
|
|
6513
6518
|
var inductionVariable = 1;
|
|
6514
6519
|
if (inductionVariable < n)
|
|
6515
6520
|
$l$loop: do {
|
|
6516
6521
|
var i = inductionVariable;
|
|
6517
6522
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6518
|
-
var curDist = source.
|
|
6523
|
+
var curDist = source.f2k(i);
|
|
6519
6524
|
var gap = curDist - lastAddedDistance;
|
|
6520
6525
|
if (gap < minDistanceM)
|
|
6521
6526
|
continue $l$loop;
|
|
@@ -6538,11 +6543,11 @@
|
|
|
6538
6543
|
var j = inductionVariable_0;
|
|
6539
6544
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
6540
6545
|
var targetDistance = lastAddedDistance + j * spacing;
|
|
6541
|
-
while (index1 < (i - 1 | 0) && source.
|
|
6546
|
+
while (index1 < (i - 1 | 0) && source.f2k(index1 + 1 | 0) < targetDistance) {
|
|
6542
6547
|
index1 = index1 + 1 | 0;
|
|
6543
6548
|
}
|
|
6544
|
-
var dist1 = source.
|
|
6545
|
-
var dist2 = source.
|
|
6549
|
+
var dist1 = source.f2k(index1);
|
|
6550
|
+
var dist2 = source.f2k(index1 + 1 | 0);
|
|
6546
6551
|
var coef = (targetDistance - dist1) / (dist2 - dist1);
|
|
6547
6552
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6548
6553
|
var element_1 = new Interpolate(index1, index1 + 1 | 0, coef);
|
|
@@ -6568,42 +6573,42 @@
|
|
|
6568
6573
|
index = index + 1 | 0;
|
|
6569
6574
|
var op = iterator.n();
|
|
6570
6575
|
if (op instanceof Copy) {
|
|
6571
|
-
copyFields($this, source, op.
|
|
6576
|
+
copyFields($this, source, op.x2n_1, out, dstIdx);
|
|
6572
6577
|
} else {
|
|
6573
6578
|
if (op instanceof Interpolate) {
|
|
6574
|
-
FieldInterpolation_getInstance().
|
|
6579
|
+
FieldInterpolation_getInstance().j2l(source, op.y2n_1, op.z2n_1, op.a2o_1, out, dstIdx);
|
|
6575
6580
|
} else {
|
|
6576
6581
|
noWhenBranchMatchedException();
|
|
6577
6582
|
}
|
|
6578
6583
|
}
|
|
6579
6584
|
}
|
|
6580
|
-
out.
|
|
6585
|
+
out.m2d();
|
|
6581
6586
|
return out;
|
|
6582
6587
|
}
|
|
6583
6588
|
function copyFields($this, src, srcIdx, dst, dstIdx) {
|
|
6584
6589
|
var _iterator__ex2g4s = get_entries_3().l();
|
|
6585
6590
|
while (_iterator__ex2g4s.m()) {
|
|
6586
6591
|
var field = _iterator__ex2g4s.n();
|
|
6587
|
-
dst.
|
|
6592
|
+
dst.q2k(dstIdx, field, src.v2e(srcIdx, field));
|
|
6588
6593
|
}
|
|
6589
6594
|
}
|
|
6590
6595
|
function PointPerDistance() {
|
|
6591
6596
|
}
|
|
6592
|
-
protoOf(PointPerDistance).
|
|
6593
|
-
return this.
|
|
6597
|
+
protoOf(PointPerDistance).b2o = function (source, minDistanceM, maxDistanceM) {
|
|
6598
|
+
return this.c2o(source, minDistanceM, maxDistanceM);
|
|
6594
6599
|
};
|
|
6595
|
-
protoOf(PointPerDistance).
|
|
6600
|
+
protoOf(PointPerDistance).c2o = function (source, minDistanceM, maxDistanceM) {
|
|
6596
6601
|
// Inline function 'kotlin.require' call
|
|
6597
6602
|
if (!(maxDistanceM > 0.0)) {
|
|
6598
6603
|
var message = 'maxDistanceM must be > 0, got ' + maxDistanceM;
|
|
6599
6604
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
6600
6605
|
}
|
|
6601
|
-
if (source.
|
|
6606
|
+
if (source.s2b_1 === 0)
|
|
6602
6607
|
return new Path(0);
|
|
6603
|
-
if (source.
|
|
6608
|
+
if (source.s2b_1 === 1) {
|
|
6604
6609
|
var out = new Path(1);
|
|
6605
6610
|
copyFields(this, source, 0, out, 0);
|
|
6606
|
-
out.
|
|
6611
|
+
out.m2d();
|
|
6607
6612
|
return out;
|
|
6608
6613
|
}
|
|
6609
6614
|
var plan = buildPlan(this, source, minDistanceM, maxDistanceM);
|
|
@@ -6614,35 +6619,35 @@
|
|
|
6614
6619
|
return PointPerDistance_instance;
|
|
6615
6620
|
}
|
|
6616
6621
|
function Copy_0(sourceIndex) {
|
|
6617
|
-
this.
|
|
6622
|
+
this.d2o_1 = sourceIndex;
|
|
6618
6623
|
}
|
|
6619
6624
|
protoOf(Copy_0).toString = function () {
|
|
6620
|
-
return 'Copy(sourceIndex=' + this.
|
|
6625
|
+
return 'Copy(sourceIndex=' + this.d2o_1 + ')';
|
|
6621
6626
|
};
|
|
6622
6627
|
protoOf(Copy_0).hashCode = function () {
|
|
6623
|
-
return this.
|
|
6628
|
+
return this.d2o_1;
|
|
6624
6629
|
};
|
|
6625
6630
|
protoOf(Copy_0).equals = function (other) {
|
|
6626
6631
|
if (this === other)
|
|
6627
6632
|
return true;
|
|
6628
6633
|
if (!(other instanceof Copy_0))
|
|
6629
6634
|
return false;
|
|
6630
|
-
if (!(this.
|
|
6635
|
+
if (!(this.d2o_1 === other.d2o_1))
|
|
6631
6636
|
return false;
|
|
6632
6637
|
return true;
|
|
6633
6638
|
};
|
|
6634
6639
|
function Interpolate_0(from, to, coef) {
|
|
6635
|
-
this.
|
|
6636
|
-
this.
|
|
6637
|
-
this.
|
|
6640
|
+
this.e2o_1 = from;
|
|
6641
|
+
this.f2o_1 = to;
|
|
6642
|
+
this.g2o_1 = coef;
|
|
6638
6643
|
}
|
|
6639
6644
|
protoOf(Interpolate_0).toString = function () {
|
|
6640
|
-
return 'Interpolate(from=' + this.
|
|
6645
|
+
return 'Interpolate(from=' + this.e2o_1 + ', to=' + this.f2o_1 + ', coef=' + this.g2o_1 + ')';
|
|
6641
6646
|
};
|
|
6642
6647
|
protoOf(Interpolate_0).hashCode = function () {
|
|
6643
|
-
var result = this.
|
|
6644
|
-
result = imul(result, 31) + this.
|
|
6645
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
6648
|
+
var result = this.e2o_1;
|
|
6649
|
+
result = imul(result, 31) + this.f2o_1 | 0;
|
|
6650
|
+
result = imul(result, 31) + getNumberHashCode(this.g2o_1) | 0;
|
|
6646
6651
|
return result;
|
|
6647
6652
|
};
|
|
6648
6653
|
protoOf(Interpolate_0).equals = function (other) {
|
|
@@ -6650,23 +6655,23 @@
|
|
|
6650
6655
|
return true;
|
|
6651
6656
|
if (!(other instanceof Interpolate_0))
|
|
6652
6657
|
return false;
|
|
6653
|
-
if (!(this.
|
|
6658
|
+
if (!(this.e2o_1 === other.e2o_1))
|
|
6654
6659
|
return false;
|
|
6655
|
-
if (!(this.
|
|
6660
|
+
if (!(this.f2o_1 === other.f2o_1))
|
|
6656
6661
|
return false;
|
|
6657
|
-
if (!equals(this.
|
|
6662
|
+
if (!equals(this.g2o_1, other.g2o_1))
|
|
6658
6663
|
return false;
|
|
6659
6664
|
return true;
|
|
6660
6665
|
};
|
|
6661
6666
|
function buildPlan_0($this, source) {
|
|
6662
6667
|
var plan = LinkedHashMap_init_$Create$_0();
|
|
6663
|
-
var n = source.
|
|
6668
|
+
var n = source.s2b_1;
|
|
6664
6669
|
var inductionVariable = 0;
|
|
6665
6670
|
if (inductionVariable < n)
|
|
6666
6671
|
$l$loop_0: do {
|
|
6667
6672
|
var i = inductionVariable;
|
|
6668
6673
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6669
|
-
var time1 = source.
|
|
6674
|
+
var time1 = source.u2b(i);
|
|
6670
6675
|
// Inline function 'kotlin.math.floor' call
|
|
6671
6676
|
var x = time1 / 1000.0;
|
|
6672
6677
|
var tmp$ret$0 = Math.floor(x);
|
|
@@ -6687,7 +6692,7 @@
|
|
|
6687
6692
|
}
|
|
6688
6693
|
continue $l$loop_0;
|
|
6689
6694
|
}
|
|
6690
|
-
var time2 = source.
|
|
6695
|
+
var time2 = source.u2b(i + 1 | 0);
|
|
6691
6696
|
// Inline function 'kotlin.math.floor' call
|
|
6692
6697
|
var x_0 = time2 / 1000.0;
|
|
6693
6698
|
var tmp$ret$4 = Math.floor(x_0);
|
|
@@ -6732,30 +6737,30 @@
|
|
|
6732
6737
|
}
|
|
6733
6738
|
var data = tmp;
|
|
6734
6739
|
if (data instanceof Copy_0) {
|
|
6735
|
-
copyFields_0($this, source, data.
|
|
6740
|
+
copyFields_0($this, source, data.d2o_1, out, idx);
|
|
6736
6741
|
} else {
|
|
6737
6742
|
if (data instanceof Interpolate_0) {
|
|
6738
|
-
FieldInterpolation_getInstance().
|
|
6743
|
+
FieldInterpolation_getInstance().j2l(source, data.e2o_1, data.f2o_1, data.g2o_1, out, idx);
|
|
6739
6744
|
} else {
|
|
6740
6745
|
noWhenBranchMatchedException();
|
|
6741
6746
|
}
|
|
6742
6747
|
}
|
|
6743
|
-
out.
|
|
6748
|
+
out.s2c(idx, toNumber(multiply(epoch, new Long(1000, 0))));
|
|
6744
6749
|
}
|
|
6745
|
-
out.
|
|
6750
|
+
out.m2d();
|
|
6746
6751
|
return out;
|
|
6747
6752
|
}
|
|
6748
6753
|
function copyFields_0($this, src, srcIdx, dst, dstIdx) {
|
|
6749
6754
|
var _iterator__ex2g4s = get_entries_3().l();
|
|
6750
6755
|
while (_iterator__ex2g4s.m()) {
|
|
6751
6756
|
var field = _iterator__ex2g4s.n();
|
|
6752
|
-
dst.
|
|
6757
|
+
dst.q2k(dstIdx, field, src.v2e(srcIdx, field));
|
|
6753
6758
|
}
|
|
6754
6759
|
}
|
|
6755
6760
|
function PointPerSecond() {
|
|
6756
6761
|
}
|
|
6757
|
-
protoOf(PointPerSecond).
|
|
6758
|
-
if (source.
|
|
6762
|
+
protoOf(PointPerSecond).h2o = function (source) {
|
|
6763
|
+
if (source.s2b_1 === 0)
|
|
6759
6764
|
return new Path(0);
|
|
6760
6765
|
var plan = buildPlan_0(this, source);
|
|
6761
6766
|
return materialize_0(this, source, plan);
|
|
@@ -6765,33 +6770,33 @@
|
|
|
6765
6770
|
return PointPerSecond_instance;
|
|
6766
6771
|
}
|
|
6767
6772
|
function TunnelSpan(first, last, chordGrade, heightM, riseGrade, fallGrade, straightness, stepM) {
|
|
6768
|
-
this.
|
|
6769
|
-
this.
|
|
6770
|
-
this.
|
|
6771
|
-
this.
|
|
6772
|
-
this.
|
|
6773
|
-
this.
|
|
6774
|
-
this.
|
|
6775
|
-
this.
|
|
6773
|
+
this.i2o_1 = first;
|
|
6774
|
+
this.j2o_1 = last;
|
|
6775
|
+
this.k2o_1 = chordGrade;
|
|
6776
|
+
this.l2o_1 = heightM;
|
|
6777
|
+
this.m2o_1 = riseGrade;
|
|
6778
|
+
this.n2o_1 = fallGrade;
|
|
6779
|
+
this.o2o_1 = straightness;
|
|
6780
|
+
this.p2o_1 = stepM;
|
|
6776
6781
|
}
|
|
6777
|
-
protoOf(TunnelSpan).
|
|
6778
|
-
return this.
|
|
6782
|
+
protoOf(TunnelSpan).q2o = function () {
|
|
6783
|
+
return this.i2o_1 * this.p2o_1;
|
|
6779
6784
|
};
|
|
6780
|
-
protoOf(TunnelSpan).
|
|
6781
|
-
return this.
|
|
6785
|
+
protoOf(TunnelSpan).r2o = function () {
|
|
6786
|
+
return this.j2o_1 * this.p2o_1;
|
|
6782
6787
|
};
|
|
6783
6788
|
protoOf(TunnelSpan).toString = function () {
|
|
6784
|
-
return 'TunnelSpan(first=' + this.
|
|
6789
|
+
return 'TunnelSpan(first=' + this.i2o_1 + ', last=' + this.j2o_1 + ', chordGrade=' + this.k2o_1 + ', heightM=' + this.l2o_1 + ', riseGrade=' + this.m2o_1 + ', fallGrade=' + this.n2o_1 + ', straightness=' + this.o2o_1 + ', stepM=' + this.p2o_1 + ')';
|
|
6785
6790
|
};
|
|
6786
6791
|
protoOf(TunnelSpan).hashCode = function () {
|
|
6787
|
-
var result = this.
|
|
6788
|
-
result = imul(result, 31) + this.
|
|
6789
|
-
result = imul(result, 31) + getNumberHashCode(this.h2o_1) | 0;
|
|
6790
|
-
result = imul(result, 31) + getNumberHashCode(this.i2o_1) | 0;
|
|
6791
|
-
result = imul(result, 31) + getNumberHashCode(this.j2o_1) | 0;
|
|
6792
|
+
var result = this.i2o_1;
|
|
6793
|
+
result = imul(result, 31) + this.j2o_1 | 0;
|
|
6792
6794
|
result = imul(result, 31) + getNumberHashCode(this.k2o_1) | 0;
|
|
6793
6795
|
result = imul(result, 31) + getNumberHashCode(this.l2o_1) | 0;
|
|
6794
6796
|
result = imul(result, 31) + getNumberHashCode(this.m2o_1) | 0;
|
|
6797
|
+
result = imul(result, 31) + getNumberHashCode(this.n2o_1) | 0;
|
|
6798
|
+
result = imul(result, 31) + getNumberHashCode(this.o2o_1) | 0;
|
|
6799
|
+
result = imul(result, 31) + getNumberHashCode(this.p2o_1) | 0;
|
|
6795
6800
|
return result;
|
|
6796
6801
|
};
|
|
6797
6802
|
protoOf(TunnelSpan).equals = function (other) {
|
|
@@ -6799,15 +6804,9 @@
|
|
|
6799
6804
|
return true;
|
|
6800
6805
|
if (!(other instanceof TunnelSpan))
|
|
6801
6806
|
return false;
|
|
6802
|
-
if (!(this.
|
|
6803
|
-
return false;
|
|
6804
|
-
if (!(this.g2o_1 === other.g2o_1))
|
|
6807
|
+
if (!(this.i2o_1 === other.i2o_1))
|
|
6805
6808
|
return false;
|
|
6806
|
-
if (!
|
|
6807
|
-
return false;
|
|
6808
|
-
if (!equals(this.i2o_1, other.i2o_1))
|
|
6809
|
-
return false;
|
|
6810
|
-
if (!equals(this.j2o_1, other.j2o_1))
|
|
6809
|
+
if (!(this.j2o_1 === other.j2o_1))
|
|
6811
6810
|
return false;
|
|
6812
6811
|
if (!equals(this.k2o_1, other.k2o_1))
|
|
6813
6812
|
return false;
|
|
@@ -6815,30 +6814,36 @@
|
|
|
6815
6814
|
return false;
|
|
6816
6815
|
if (!equals(this.m2o_1, other.m2o_1))
|
|
6817
6816
|
return false;
|
|
6817
|
+
if (!equals(this.n2o_1, other.n2o_1))
|
|
6818
|
+
return false;
|
|
6819
|
+
if (!equals(this.o2o_1, other.o2o_1))
|
|
6820
|
+
return false;
|
|
6821
|
+
if (!equals(this.p2o_1, other.p2o_1))
|
|
6822
|
+
return false;
|
|
6818
6823
|
return true;
|
|
6819
6824
|
};
|
|
6820
6825
|
function Stations(options) {
|
|
6821
|
-
this.p2o_1 = options.i2p();
|
|
6822
|
-
this.q2o_1 = options.j2p();
|
|
6823
|
-
this.r2o_1 = options.k2p();
|
|
6824
6826
|
this.s2o_1 = options.l2p();
|
|
6827
|
+
this.t2o_1 = options.m2p();
|
|
6828
|
+
this.u2o_1 = options.n2p();
|
|
6829
|
+
this.v2o_1 = options.o2p();
|
|
6825
6830
|
}
|
|
6826
6831
|
function grade($this, z, i, j, stepM) {
|
|
6827
6832
|
return i < 0 || j >= z.length ? NaN : (z[j] - z[i]) / ((j - i | 0) * stepM);
|
|
6828
6833
|
}
|
|
6829
6834
|
function judge($this, profile, a, b, entries, exits, options, stations) {
|
|
6830
|
-
var w = stations.
|
|
6831
|
-
var z = profile.
|
|
6835
|
+
var w = stations.t2o_1;
|
|
6836
|
+
var z = profile.p2p_1;
|
|
6832
6837
|
var n = z.length;
|
|
6833
|
-
var step = options.
|
|
6838
|
+
var step = options.w2o_1;
|
|
6834
6839
|
var length = (b - a | 0) * step;
|
|
6835
|
-
if (length < options.
|
|
6840
|
+
if (length < options.i2p_1 - 1.0E-9)
|
|
6836
6841
|
return null;
|
|
6837
|
-
var chord = Distance_instance.n12(new LatLon(profile.
|
|
6842
|
+
var chord = Distance_instance.n12(new LatLon(profile.q2p_1[a], profile.r2p_1[a]), new LatLon(profile.q2p_1[b], profile.r2p_1[b]));
|
|
6838
6843
|
var straightness = chord / length;
|
|
6839
|
-
if (!(straightness >= options.
|
|
6844
|
+
if (!(straightness >= options.k2p_1))
|
|
6840
6845
|
return null;
|
|
6841
|
-
var w0 = stations.
|
|
6846
|
+
var w0 = stations.t2o_1;
|
|
6842
6847
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6843
6848
|
var b_0 = a - w0 | 0;
|
|
6844
6849
|
var inductionVariable = Math.max(0, b_0);
|
|
@@ -6869,7 +6874,7 @@
|
|
|
6869
6874
|
while (!(k_0 === last));
|
|
6870
6875
|
var c = (z[b] - z[a]) / length;
|
|
6871
6876
|
// Inline function 'kotlin.math.abs' call
|
|
6872
|
-
if (!(Math.abs(c) <= options.
|
|
6877
|
+
if (!(Math.abs(c) <= options.d2p_1))
|
|
6873
6878
|
return null;
|
|
6874
6879
|
var height = -Infinity;
|
|
6875
6880
|
var inductionVariable_1 = a;
|
|
@@ -6878,15 +6883,15 @@
|
|
|
6878
6883
|
var k_1 = inductionVariable_1;
|
|
6879
6884
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
6880
6885
|
var h = z[k_1] - (z[a] + c * (k_1 - a | 0) * step);
|
|
6881
|
-
if (isNaN_0(h) || h < -options.
|
|
6886
|
+
if (isNaN_0(h) || h < -options.g2p_1)
|
|
6882
6887
|
return null;
|
|
6883
6888
|
if (h > height)
|
|
6884
6889
|
height = h;
|
|
6885
6890
|
}
|
|
6886
6891
|
while (!(k_1 === b));
|
|
6887
|
-
if (height < options.
|
|
6892
|
+
if (height < options.e2p_1)
|
|
6888
6893
|
return null;
|
|
6889
|
-
var f = stations.
|
|
6894
|
+
var f = stations.v2o_1;
|
|
6890
6895
|
var nearEntry = -Infinity;
|
|
6891
6896
|
var inductionVariable_2 = a;
|
|
6892
6897
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
@@ -6916,9 +6921,9 @@
|
|
|
6916
6921
|
nearExit = Math.max(tmp0_1, b_5);
|
|
6917
6922
|
}
|
|
6918
6923
|
while (!(k_3 === b));
|
|
6919
|
-
if (nearEntry < options.
|
|
6924
|
+
if (nearEntry < options.e2p_1 || nearExit < options.e2p_1)
|
|
6920
6925
|
return null;
|
|
6921
|
-
var s = stations.
|
|
6926
|
+
var s = stations.u2o_1;
|
|
6922
6927
|
var rise = -Infinity;
|
|
6923
6928
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6924
6929
|
var b_6 = a - (w / 2 | 0) | 0;
|
|
@@ -6950,7 +6955,7 @@
|
|
|
6950
6955
|
fall = g_0;
|
|
6951
6956
|
}
|
|
6952
6957
|
while (!(k_5 === last_2));
|
|
6953
|
-
if (rise < options.
|
|
6958
|
+
if (rise < options.b2p_1 || fall > -options.b2p_1)
|
|
6954
6959
|
return null;
|
|
6955
6960
|
// Inline function 'kotlin.collections.filter' call
|
|
6956
6961
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -6987,7 +6992,7 @@
|
|
|
6987
6992
|
do {
|
|
6988
6993
|
var k_6 = inductionVariable_6;
|
|
6989
6994
|
inductionVariable_6 = inductionVariable_6 + 1 | 0;
|
|
6990
|
-
if (z[k_6] - (z[a] + c * (k_6 - a | 0) * step) < options.
|
|
6995
|
+
if (z[k_6] - (z[a] + c * (k_6 - a | 0) * step) < options.h2p_1)
|
|
6991
6996
|
return null;
|
|
6992
6997
|
}
|
|
6993
6998
|
while (!(k_6 === y));
|
|
@@ -6996,15 +7001,15 @@
|
|
|
6996
7001
|
return new TunnelSpan(a, b, c, height, rise, fall, straightness, step);
|
|
6997
7002
|
}
|
|
6998
7003
|
function TunnelDetector() {
|
|
6999
|
-
this.
|
|
7004
|
+
this.s2p_1 = 1.0E-6;
|
|
7000
7005
|
}
|
|
7001
|
-
protoOf(TunnelDetector).
|
|
7002
|
-
var z = profile.
|
|
7006
|
+
protoOf(TunnelDetector).t2p = function (profile, options) {
|
|
7007
|
+
var z = profile.p2p_1;
|
|
7003
7008
|
if (z.length < 2)
|
|
7004
7009
|
return emptyList();
|
|
7005
7010
|
var stations = new Stations(options);
|
|
7006
|
-
var entries = this.
|
|
7007
|
-
var exits = this.
|
|
7011
|
+
var entries = this.u2p(z, options, true, stations);
|
|
7012
|
+
var exits = this.u2p(z, options, false, stations);
|
|
7008
7013
|
var out = ArrayList_init_$Create$();
|
|
7009
7014
|
var next = -1;
|
|
7010
7015
|
var _iterator__ex2g4s = entries.l();
|
|
@@ -7018,7 +7023,7 @@
|
|
|
7018
7023
|
var b = _iterator__ex2g4s_0.n();
|
|
7019
7024
|
if (b <= a)
|
|
7020
7025
|
continue $l$loop_2;
|
|
7021
|
-
if ((b - a | 0) * options.
|
|
7026
|
+
if ((b - a | 0) * options.w2o_1 > options.j2p_1 + 1.0E-9)
|
|
7022
7027
|
break $l$loop_2;
|
|
7023
7028
|
var tmp0_elvis_lhs = judge(this, profile, a, b, entries, exits, options, stations);
|
|
7024
7029
|
var tmp;
|
|
@@ -7028,23 +7033,23 @@
|
|
|
7028
7033
|
tmp = tmp0_elvis_lhs;
|
|
7029
7034
|
}
|
|
7030
7035
|
var span = tmp;
|
|
7031
|
-
if (best == null || span.
|
|
7036
|
+
if (best == null || span.l2o_1 > best.l2o_1 + 1.0E-9)
|
|
7032
7037
|
best = span;
|
|
7033
7038
|
}
|
|
7034
7039
|
if (!(best == null)) {
|
|
7035
7040
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
7036
7041
|
var element = best;
|
|
7037
7042
|
out.k(element);
|
|
7038
|
-
next = best.
|
|
7043
|
+
next = best.j2o_1;
|
|
7039
7044
|
}
|
|
7040
7045
|
}
|
|
7041
7046
|
return out;
|
|
7042
7047
|
};
|
|
7043
|
-
protoOf(TunnelDetector).
|
|
7048
|
+
protoOf(TunnelDetector).u2p = function (z, options, entry, stations) {
|
|
7044
7049
|
var n = z.length;
|
|
7045
|
-
var m = stations.
|
|
7046
|
-
var w = stations.
|
|
7047
|
-
var step = options.
|
|
7050
|
+
var m = stations.s2o_1;
|
|
7051
|
+
var w = stations.t2o_1;
|
|
7052
|
+
var step = options.w2o_1;
|
|
7048
7053
|
var tmp = 0;
|
|
7049
7054
|
var tmp_0 = new Float64Array(n);
|
|
7050
7055
|
while (tmp < n) {
|
|
@@ -7067,14 +7072,14 @@
|
|
|
7067
7072
|
var tmp_2;
|
|
7068
7073
|
var tmp_3;
|
|
7069
7074
|
// Inline function 'kotlin.math.abs' call
|
|
7070
|
-
if (Math.abs(back) <= options.
|
|
7075
|
+
if (Math.abs(back) <= options.z2o_1) {
|
|
7071
7076
|
// Inline function 'kotlin.math.abs' call
|
|
7072
|
-
tmp_3 = Math.abs(outer) <= options.
|
|
7077
|
+
tmp_3 = Math.abs(outer) <= options.z2o_1;
|
|
7073
7078
|
} else {
|
|
7074
7079
|
tmp_3 = false;
|
|
7075
7080
|
}
|
|
7076
7081
|
if (tmp_3) {
|
|
7077
|
-
tmp_2 = ahead >= options.
|
|
7082
|
+
tmp_2 = ahead >= options.a2p_1;
|
|
7078
7083
|
} else {
|
|
7079
7084
|
tmp_2 = false;
|
|
7080
7085
|
}
|
|
@@ -7084,14 +7089,14 @@
|
|
|
7084
7089
|
var tmp_4;
|
|
7085
7090
|
var tmp_5;
|
|
7086
7091
|
// Inline function 'kotlin.math.abs' call
|
|
7087
|
-
if (Math.abs(ahead) <= options.
|
|
7092
|
+
if (Math.abs(ahead) <= options.z2o_1) {
|
|
7088
7093
|
// Inline function 'kotlin.math.abs' call
|
|
7089
|
-
tmp_5 = Math.abs(outer_0) <= options.
|
|
7094
|
+
tmp_5 = Math.abs(outer_0) <= options.z2o_1;
|
|
7090
7095
|
} else {
|
|
7091
7096
|
tmp_5 = false;
|
|
7092
7097
|
}
|
|
7093
7098
|
if (tmp_5) {
|
|
7094
|
-
tmp_4 = back <= -options.
|
|
7099
|
+
tmp_4 = back <= -options.a2p_1;
|
|
7095
7100
|
} else {
|
|
7096
7101
|
tmp_4 = false;
|
|
7097
7102
|
}
|
|
@@ -7167,30 +7172,30 @@
|
|
|
7167
7172
|
return TunnelDetector_instance;
|
|
7168
7173
|
}
|
|
7169
7174
|
function TunnelProfile(terrainM, latDeg, lonDeg) {
|
|
7170
|
-
this.
|
|
7171
|
-
this.
|
|
7172
|
-
this.
|
|
7175
|
+
this.p2p_1 = terrainM;
|
|
7176
|
+
this.q2p_1 = latDeg;
|
|
7177
|
+
this.r2p_1 = lonDeg;
|
|
7173
7178
|
// Inline function 'kotlin.require' call
|
|
7174
|
-
if (!(this.
|
|
7175
|
-
var message = 'terrain, latitude and longitude must have one sample per station: ' + this.
|
|
7179
|
+
if (!(this.p2p_1.length === this.q2p_1.length && this.q2p_1.length === this.r2p_1.length)) {
|
|
7180
|
+
var message = 'terrain, latitude and longitude must have one sample per station: ' + this.p2p_1.length + ', ' + this.q2p_1.length + ', ' + this.r2p_1.length;
|
|
7176
7181
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7177
7182
|
}
|
|
7178
7183
|
}
|
|
7179
7184
|
function stations_0($this, metres, name) {
|
|
7180
|
-
var r = metres / $this.
|
|
7185
|
+
var r = metres / $this.w2o_1;
|
|
7181
7186
|
var k = roundToInt(r);
|
|
7182
7187
|
// Inline function 'kotlin.math.abs' call
|
|
7183
7188
|
var x = r - k;
|
|
7184
7189
|
// Inline function 'kotlin.require' call
|
|
7185
7190
|
if (!(Math.abs(x) < 1.0E-9)) {
|
|
7186
|
-
var message = name + ' = ' + metres + ' m is not a whole number of ' + $this.
|
|
7191
|
+
var message = name + ' = ' + metres + ' m is not a whole number of ' + $this.w2o_1 + ' m stations';
|
|
7187
7192
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7188
7193
|
}
|
|
7189
7194
|
return k;
|
|
7190
7195
|
}
|
|
7191
7196
|
function Companion_10() {
|
|
7192
7197
|
Companion_instance_11 = this;
|
|
7193
|
-
this.
|
|
7198
|
+
this.v2p_1 = new TunnelDetectorOptions();
|
|
7194
7199
|
}
|
|
7195
7200
|
var Companion_instance_11;
|
|
7196
7201
|
function Companion_getInstance_10() {
|
|
@@ -7215,85 +7220,82 @@
|
|
|
7215
7220
|
minLengthM = minLengthM === VOID ? 50.0 : minLengthM;
|
|
7216
7221
|
maxLengthM = maxLengthM === VOID ? 3000.0 : maxLengthM;
|
|
7217
7222
|
minStraightness = minStraightness === VOID ? 0.8 : minStraightness;
|
|
7218
|
-
this.
|
|
7219
|
-
this.
|
|
7220
|
-
this.
|
|
7221
|
-
this.
|
|
7222
|
-
this.
|
|
7223
|
-
this.
|
|
7224
|
-
this.
|
|
7225
|
-
this.
|
|
7226
|
-
this.
|
|
7227
|
-
this.
|
|
7228
|
-
this.
|
|
7229
|
-
this.
|
|
7230
|
-
this.
|
|
7231
|
-
this.
|
|
7232
|
-
this.
|
|
7223
|
+
this.w2o_1 = stepM;
|
|
7224
|
+
this.x2o_1 = footWindowM;
|
|
7225
|
+
this.y2o_1 = steepWindowM;
|
|
7226
|
+
this.z2o_1 = maxRoadGrade;
|
|
7227
|
+
this.a2p_1 = minPortalGrade;
|
|
7228
|
+
this.b2p_1 = minSideGrade;
|
|
7229
|
+
this.c2p_1 = sideSearchM;
|
|
7230
|
+
this.d2p_1 = maxChordGrade;
|
|
7231
|
+
this.e2p_1 = minHeightM;
|
|
7232
|
+
this.f2p_1 = faceReachM;
|
|
7233
|
+
this.g2p_1 = maxBelowChordM;
|
|
7234
|
+
this.h2p_1 = minValleyHeightM;
|
|
7235
|
+
this.i2p_1 = minLengthM;
|
|
7236
|
+
this.j2p_1 = maxLengthM;
|
|
7237
|
+
this.k2p_1 = minStraightness;
|
|
7233
7238
|
// Inline function 'kotlin.require' call
|
|
7234
|
-
if (!(this.
|
|
7235
|
-
var message = 'stepM must be positive, got ' + this.
|
|
7239
|
+
if (!(this.w2o_1 > 0.0)) {
|
|
7240
|
+
var message = 'stepM must be positive, got ' + this.w2o_1;
|
|
7236
7241
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7237
7242
|
}
|
|
7238
7243
|
// Inline function 'kotlin.require' call
|
|
7239
|
-
if (!(this.
|
|
7244
|
+
if (!(this.l2p() >= 1 && this.m2p() >= 1)) {
|
|
7240
7245
|
var message_0 = 'grade windows must cover a station';
|
|
7241
7246
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_0));
|
|
7242
7247
|
}
|
|
7243
7248
|
// Inline function 'kotlin.require' call
|
|
7244
|
-
if (!(this.
|
|
7249
|
+
if (!(this.n2p() >= 0)) {
|
|
7245
7250
|
var message_1 = 'negative sideSearchM';
|
|
7246
7251
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_1));
|
|
7247
7252
|
}
|
|
7248
7253
|
// Inline function 'kotlin.require' call
|
|
7249
|
-
if (!(this.
|
|
7254
|
+
if (!(this.o2p() >= 1)) {
|
|
7250
7255
|
var message_2 = 'faceReachM must cover a station';
|
|
7251
7256
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_2));
|
|
7252
7257
|
}
|
|
7253
7258
|
// Inline function 'kotlin.require' call
|
|
7254
|
-
if (!(this.
|
|
7259
|
+
if (!(this.z2o_1 >= 0.0 && this.a2p_1 > 0.0 && this.b2p_1 > 0.0)) {
|
|
7255
7260
|
var message_3 = 'grades must be positive';
|
|
7256
7261
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_3));
|
|
7257
7262
|
}
|
|
7258
7263
|
// Inline function 'kotlin.require' call
|
|
7259
|
-
if (!(this.
|
|
7264
|
+
if (!(this.d2p_1 >= 0.0 && this.e2p_1 > 0.0 && this.g2p_1 >= 0.0)) {
|
|
7260
7265
|
var message_4 = 'negative threshold';
|
|
7261
7266
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_4));
|
|
7262
7267
|
}
|
|
7263
|
-
var containsUpper = this.
|
|
7264
|
-
var containsArg = this.
|
|
7268
|
+
var containsUpper = this.j2p_1;
|
|
7269
|
+
var containsArg = this.i2p_1;
|
|
7265
7270
|
// Inline function 'kotlin.require' call
|
|
7266
7271
|
if (!(0.0 <= containsArg ? containsArg <= containsUpper : false)) {
|
|
7267
7272
|
var message_5 = 'minLengthM must be in 0..maxLengthM';
|
|
7268
7273
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_5));
|
|
7269
7274
|
}
|
|
7270
|
-
var containsArg_0 = this.
|
|
7275
|
+
var containsArg_0 = this.k2p_1;
|
|
7271
7276
|
// Inline function 'kotlin.require' call
|
|
7272
7277
|
if (!(0.0 <= containsArg_0 ? containsArg_0 <= 1.0 : false)) {
|
|
7273
|
-
var message_6 = 'minStraightness must be in 0..1, got ' + this.
|
|
7278
|
+
var message_6 = 'minStraightness must be in 0..1, got ' + this.k2p_1;
|
|
7274
7279
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_6));
|
|
7275
7280
|
}
|
|
7276
7281
|
}
|
|
7277
|
-
protoOf(TunnelDetectorOptions).
|
|
7278
|
-
return stations_0(this, this.
|
|
7282
|
+
protoOf(TunnelDetectorOptions).l2p = function () {
|
|
7283
|
+
return stations_0(this, this.x2o_1, 'footWindowM');
|
|
7279
7284
|
};
|
|
7280
|
-
protoOf(TunnelDetectorOptions).
|
|
7281
|
-
return stations_0(this, this.
|
|
7285
|
+
protoOf(TunnelDetectorOptions).m2p = function () {
|
|
7286
|
+
return stations_0(this, this.y2o_1, 'steepWindowM');
|
|
7282
7287
|
};
|
|
7283
|
-
protoOf(TunnelDetectorOptions).
|
|
7284
|
-
return stations_0(this, this.
|
|
7288
|
+
protoOf(TunnelDetectorOptions).n2p = function () {
|
|
7289
|
+
return stations_0(this, this.c2p_1, 'sideSearchM');
|
|
7285
7290
|
};
|
|
7286
|
-
protoOf(TunnelDetectorOptions).
|
|
7287
|
-
return stations_0(this, this.
|
|
7291
|
+
protoOf(TunnelDetectorOptions).o2p = function () {
|
|
7292
|
+
return stations_0(this, this.f2p_1, 'faceReachM');
|
|
7288
7293
|
};
|
|
7289
7294
|
protoOf(TunnelDetectorOptions).toString = function () {
|
|
7290
|
-
return 'TunnelDetectorOptions(stepM=' + this.
|
|
7295
|
+
return 'TunnelDetectorOptions(stepM=' + this.w2o_1 + ', footWindowM=' + this.x2o_1 + ', steepWindowM=' + this.y2o_1 + ', maxRoadGrade=' + this.z2o_1 + ', minPortalGrade=' + this.a2p_1 + ', minSideGrade=' + this.b2p_1 + ', sideSearchM=' + this.c2p_1 + ', maxChordGrade=' + this.d2p_1 + ', minHeightM=' + this.e2p_1 + ', faceReachM=' + this.f2p_1 + ', maxBelowChordM=' + this.g2p_1 + ', minValleyHeightM=' + this.h2p_1 + ', minLengthM=' + this.i2p_1 + ', maxLengthM=' + this.j2p_1 + ', minStraightness=' + this.k2p_1 + ')';
|
|
7291
7296
|
};
|
|
7292
7297
|
protoOf(TunnelDetectorOptions).hashCode = function () {
|
|
7293
|
-
var result = getNumberHashCode(this.
|
|
7294
|
-
result = imul(result, 31) + getNumberHashCode(this.u2o_1) | 0;
|
|
7295
|
-
result = imul(result, 31) + getNumberHashCode(this.v2o_1) | 0;
|
|
7296
|
-
result = imul(result, 31) + getNumberHashCode(this.w2o_1) | 0;
|
|
7298
|
+
var result = getNumberHashCode(this.w2o_1);
|
|
7297
7299
|
result = imul(result, 31) + getNumberHashCode(this.x2o_1) | 0;
|
|
7298
7300
|
result = imul(result, 31) + getNumberHashCode(this.y2o_1) | 0;
|
|
7299
7301
|
result = imul(result, 31) + getNumberHashCode(this.z2o_1) | 0;
|
|
@@ -7305,6 +7307,9 @@
|
|
|
7305
7307
|
result = imul(result, 31) + getNumberHashCode(this.f2p_1) | 0;
|
|
7306
7308
|
result = imul(result, 31) + getNumberHashCode(this.g2p_1) | 0;
|
|
7307
7309
|
result = imul(result, 31) + getNumberHashCode(this.h2p_1) | 0;
|
|
7310
|
+
result = imul(result, 31) + getNumberHashCode(this.i2p_1) | 0;
|
|
7311
|
+
result = imul(result, 31) + getNumberHashCode(this.j2p_1) | 0;
|
|
7312
|
+
result = imul(result, 31) + getNumberHashCode(this.k2p_1) | 0;
|
|
7308
7313
|
return result;
|
|
7309
7314
|
};
|
|
7310
7315
|
protoOf(TunnelDetectorOptions).equals = function (other) {
|
|
@@ -7312,12 +7317,6 @@
|
|
|
7312
7317
|
return true;
|
|
7313
7318
|
if (!(other instanceof TunnelDetectorOptions))
|
|
7314
7319
|
return false;
|
|
7315
|
-
if (!equals(this.t2o_1, other.t2o_1))
|
|
7316
|
-
return false;
|
|
7317
|
-
if (!equals(this.u2o_1, other.u2o_1))
|
|
7318
|
-
return false;
|
|
7319
|
-
if (!equals(this.v2o_1, other.v2o_1))
|
|
7320
|
-
return false;
|
|
7321
7320
|
if (!equals(this.w2o_1, other.w2o_1))
|
|
7322
7321
|
return false;
|
|
7323
7322
|
if (!equals(this.x2o_1, other.x2o_1))
|
|
@@ -7342,6 +7341,12 @@
|
|
|
7342
7341
|
return false;
|
|
7343
7342
|
if (!equals(this.h2p_1, other.h2p_1))
|
|
7344
7343
|
return false;
|
|
7344
|
+
if (!equals(this.i2p_1, other.i2p_1))
|
|
7345
|
+
return false;
|
|
7346
|
+
if (!equals(this.j2p_1, other.j2p_1))
|
|
7347
|
+
return false;
|
|
7348
|
+
if (!equals(this.k2p_1, other.k2p_1))
|
|
7349
|
+
return false;
|
|
7345
7350
|
return true;
|
|
7346
7351
|
};
|
|
7347
7352
|
//region block: init
|