@glandais/vcyclist-engine 6.8.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 +3706 -3706
- package/index.d.ts +3 -2
- package/kotlin-kotlin-stdlib.js +7 -7
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
- package/vcyclist-elevation.js +438 -437
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +1462 -1462
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +177 -177
- package/vcyclist-gpx.js +1129 -1129
- package/xmlutil-core.js +2373 -2373
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.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;
|
|
303
302
|
result = imul(result, 31) + (this.e2a_1 == null ? 0 : getStringHashCode(this.e2a_1)) | 0;
|
|
304
303
|
result = imul(result, 31) + (this.f2a_1 == null ? 0 : getStringHashCode(this.f2a_1)) | 0;
|
|
305
304
|
result = imul(result, 31) + (this.g2a_1 == null ? 0 : getStringHashCode(this.g2a_1)) | 0;
|
|
306
|
-
result = imul(result, 31) + (this.h2a_1 == null ? 0 : this.h2a_1
|
|
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,13 +311,11 @@
|
|
|
311
311
|
return true;
|
|
312
312
|
if (!(other instanceof GpxWaypoint))
|
|
313
313
|
return false;
|
|
314
|
-
if (!equals(this.a2a_1, other.a2a_1))
|
|
315
|
-
return false;
|
|
316
314
|
if (!equals(this.b2a_1, other.b2a_1))
|
|
317
315
|
return false;
|
|
318
316
|
if (!equals(this.c2a_1, other.c2a_1))
|
|
319
317
|
return false;
|
|
320
|
-
if (!(this.d2a_1
|
|
318
|
+
if (!equals(this.d2a_1, other.d2a_1))
|
|
321
319
|
return false;
|
|
322
320
|
if (!(this.e2a_1 == other.e2a_1))
|
|
323
321
|
return false;
|
|
@@ -325,24 +323,26 @@
|
|
|
325
323
|
return false;
|
|
326
324
|
if (!(this.g2a_1 == other.g2a_1))
|
|
327
325
|
return false;
|
|
328
|
-
if (!
|
|
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.j2a_1) | 0;
|
|
343
|
+
var result = getStringHashCode(this.j2a_1);
|
|
345
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.
|
|
354
|
-
return false;
|
|
355
|
-
if (!equals(this.j2a_1, other.j2a_1))
|
|
353
|
+
if (!(this.j2a_1 === other.j2a_1))
|
|
356
354
|
return false;
|
|
357
355
|
if (!equals(this.k2a_1, other.k2a_1))
|
|
358
356
|
return false;
|
|
357
|
+
if (!equals(this.l2a_1, other.l2a_1))
|
|
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.n2a_1 == other.n2a_1))
|
|
436
|
-
return false;
|
|
437
435
|
if (!(this.o2a_1 == other.o2a_1))
|
|
438
436
|
return false;
|
|
439
|
-
if (!
|
|
437
|
+
if (!(this.p2a_1 == other.p2a_1))
|
|
438
|
+
return false;
|
|
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.a2b_1 == null ? 0 : this.a2b_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;
|
|
496
495
|
result = imul(result, 31) + (this.b2b_1 == null ? 0 : this.b2b_1) | 0;
|
|
497
|
-
result = imul(result, 31) + (this.c2b_1 == null ? 0 :
|
|
496
|
+
result = imul(result, 31) + (this.c2b_1 == null ? 0 : this.c2b_1) | 0;
|
|
498
497
|
result = imul(result, 31) + (this.d2b_1 == null ? 0 : getNumberHashCode(this.d2b_1)) | 0;
|
|
499
498
|
result = imul(result, 31) + (this.e2b_1 == null ? 0 : getNumberHashCode(this.e2b_1)) | 0;
|
|
500
|
-
result = imul(result, 31) + (this.f2b_1 == null ? 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.w2a_1, other.w2a_1))
|
|
509
|
-
return false;
|
|
510
508
|
if (!equals(this.x2a_1, other.x2a_1))
|
|
511
509
|
return false;
|
|
512
510
|
if (!equals(this.y2a_1, other.y2a_1))
|
|
513
511
|
return false;
|
|
514
512
|
if (!equals(this.z2a_1, other.z2a_1))
|
|
515
513
|
return false;
|
|
516
|
-
if (!(this.a2b_1
|
|
514
|
+
if (!equals(this.a2b_1, other.a2b_1))
|
|
517
515
|
return false;
|
|
518
516
|
if (!(this.b2b_1 == other.b2b_1))
|
|
519
517
|
return false;
|
|
520
|
-
if (!
|
|
518
|
+
if (!(this.c2b_1 == other.c2b_1))
|
|
521
519
|
return false;
|
|
522
520
|
if (!equals(this.d2b_1, other.d2b_1))
|
|
523
521
|
return false;
|
|
524
522
|
if (!equals(this.e2b_1, other.e2b_1))
|
|
525
523
|
return false;
|
|
526
|
-
if (!(this.f2b_1
|
|
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.o2c(i, p.w2a_1 * 0.017453292519943295);
|
|
1804
1803
|
path.p2c(i, p.x2a_1 * 0.017453292519943295);
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
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.x2d_1 | 0;
|
|
2284
|
+
var result = this.x2d_1;
|
|
2286
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,12 +2291,12 @@
|
|
|
2291
2291
|
return true;
|
|
2292
2292
|
if (!(other instanceof NumericRef))
|
|
2293
2293
|
return false;
|
|
2294
|
-
if (!(this.w2d_1 === other.w2d_1))
|
|
2295
|
-
return false;
|
|
2296
2294
|
if (!(this.x2d_1 === other.x2d_1))
|
|
2297
2295
|
return false;
|
|
2298
2296
|
if (!(this.y2d_1 === other.y2d_1))
|
|
2299
2297
|
return false;
|
|
2298
|
+
if (!(this.z2d_1 === other.z2d_1))
|
|
2299
|
+
return false;
|
|
2300
2300
|
return true;
|
|
2301
2301
|
};
|
|
2302
2302
|
function findNumericReferences($this, xml) {
|
|
@@ -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.
|
|
2636
|
-
return false;
|
|
2637
|
-
if (!(this.g2e_1 === other.g2e_1))
|
|
2635
|
+
if (!equals(this.g2e_1, other.g2e_1))
|
|
2638
2636
|
return false;
|
|
2639
2637
|
if (!(this.h2e_1 === other.h2e_1))
|
|
2640
2638
|
return false;
|
|
2641
|
-
if (!(this.i2e_1
|
|
2639
|
+
if (!(this.i2e_1 === other.i2e_1))
|
|
2642
2640
|
return false;
|
|
2643
|
-
if (!(this.j2e_1
|
|
2641
|
+
if (!(this.j2e_1 == other.j2e_1))
|
|
2642
|
+
return false;
|
|
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.
|
|
2744
|
-
result = imul(result, 31) + (this.
|
|
2745
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2742
|
+
var result = this.w2e_1 == null ? 0 : hashCode(this.w2e_1);
|
|
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.b2f_1, other.b2f_1))
|
|
2921
|
-
return false;
|
|
2922
2920
|
if (!equals(this.c2f_1, other.c2f_1))
|
|
2923
2921
|
return false;
|
|
2924
|
-
if (!(this.d2f_1
|
|
2922
|
+
if (!equals(this.d2f_1, other.d2f_1))
|
|
2923
|
+
return false;
|
|
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.g2f_1) | 0;
|
|
2941
|
+
var result = this.f2f_1;
|
|
2942
|
+
result = imul(result, 31) + this.g2f_1 | 0;
|
|
2944
2943
|
result = imul(result, 31) + getNumberHashCode(this.h2f_1) | 0;
|
|
2945
|
-
result = imul(result, 31) + (this.i2f_1
|
|
2944
|
+
result = imul(result, 31) + getNumberHashCode(this.i2f_1) | 0;
|
|
2946
2945
|
result = imul(result, 31) + (this.j2f_1 == null ? 0 : this.j2f_1.hashCode()) | 0;
|
|
2947
|
-
result = imul(result, 31) +
|
|
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,11 +2952,9 @@
|
|
|
2952
2952
|
return true;
|
|
2953
2953
|
if (!(other instanceof DeckCandidate))
|
|
2954
2954
|
return false;
|
|
2955
|
-
if (!(this.e2f_1 === other.e2f_1))
|
|
2956
|
-
return false;
|
|
2957
2955
|
if (!(this.f2f_1 === other.f2f_1))
|
|
2958
2956
|
return false;
|
|
2959
|
-
if (!
|
|
2957
|
+
if (!(this.g2f_1 === other.g2f_1))
|
|
2960
2958
|
return false;
|
|
2961
2959
|
if (!equals(this.h2f_1, other.h2f_1))
|
|
2962
2960
|
return false;
|
|
@@ -2966,11 +2964,13 @@
|
|
|
2966
2964
|
return false;
|
|
2967
2965
|
if (!equals(this.k2f_1, other.k2f_1))
|
|
2968
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.r2h_1) | 0;
|
|
4140
|
+
var result = getNumberHashCode(this.r2h_1);
|
|
4142
4141
|
result = imul(result, 31) + getNumberHashCode(this.s2h_1) | 0;
|
|
4143
4142
|
result = imul(result, 31) + getNumberHashCode(this.t2h_1) | 0;
|
|
4144
4143
|
result = imul(result, 31) + getNumberHashCode(this.u2h_1) | 0;
|
|
4145
|
-
result = imul(result, 31) +
|
|
4146
|
-
result = imul(result, 31) +
|
|
4144
|
+
result = imul(result, 31) + getNumberHashCode(this.v2h_1) | 0;
|
|
4145
|
+
result = imul(result, 31) + getBooleanHashCode(this.w2h_1) | 0;
|
|
4147
4146
|
result = imul(result, 31) + getNumberHashCode(this.x2h_1) | 0;
|
|
4148
4147
|
result = imul(result, 31) + getNumberHashCode(this.y2h_1) | 0;
|
|
4149
4148
|
result = imul(result, 31) + getNumberHashCode(this.z2h_1) | 0;
|
|
4150
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,8 +4155,6 @@
|
|
|
4155
4155
|
return true;
|
|
4156
4156
|
if (!(other instanceof DeckMetrics))
|
|
4157
4157
|
return false;
|
|
4158
|
-
if (!equals(this.q2h_1, other.q2h_1))
|
|
4159
|
-
return false;
|
|
4160
4158
|
if (!equals(this.r2h_1, other.r2h_1))
|
|
4161
4159
|
return false;
|
|
4162
4160
|
if (!equals(this.s2h_1, other.s2h_1))
|
|
@@ -4165,9 +4163,9 @@
|
|
|
4165
4163
|
return false;
|
|
4166
4164
|
if (!equals(this.u2h_1, other.u2h_1))
|
|
4167
4165
|
return false;
|
|
4168
|
-
if (!(this.v2h_1
|
|
4166
|
+
if (!equals(this.v2h_1, other.v2h_1))
|
|
4169
4167
|
return false;
|
|
4170
|
-
if (!
|
|
4168
|
+
if (!(this.w2h_1 === other.w2h_1))
|
|
4171
4169
|
return false;
|
|
4172
4170
|
if (!equals(this.x2h_1, other.x2h_1))
|
|
4173
4171
|
return false;
|
|
@@ -4177,6 +4175,8 @@
|
|
|
4177
4175
|
return false;
|
|
4178
4176
|
if (!equals(this.a2i_1, other.a2i_1))
|
|
4179
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,98 +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.
|
|
4374
|
+
protoOf(DeckDetectorOptions).d2h = function () {
|
|
4375
|
+
return stations(this, this.z2f_1, 'minTallRunM');
|
|
4376
4376
|
};
|
|
4377
|
-
protoOf(DeckDetectorOptions).
|
|
4378
|
-
return stations(this, this.
|
|
4377
|
+
protoOf(DeckDetectorOptions).n2h = function () {
|
|
4378
|
+
return stations(this, this.a2g_1, 'surfaceMedianWindowM');
|
|
4379
4379
|
};
|
|
4380
|
-
protoOf(DeckDetectorOptions).
|
|
4381
|
-
return stations(this, this.
|
|
4380
|
+
protoOf(DeckDetectorOptions).p2h = function () {
|
|
4381
|
+
return stations(this, this.b2g_1, 'roughnessWindowM');
|
|
4382
4382
|
};
|
|
4383
|
-
protoOf(DeckDetectorOptions).
|
|
4384
|
-
return stations(this, this.
|
|
4383
|
+
protoOf(DeckDetectorOptions).e2h = function () {
|
|
4384
|
+
return stations(this, this.e2g_1, 'mergeGapM');
|
|
4385
|
+
};
|
|
4386
|
+
protoOf(DeckDetectorOptions).x2g = function () {
|
|
4387
|
+
return stations(this, this.g2g_1, 'slopeHalfWindowM');
|
|
4385
4388
|
};
|
|
4386
4389
|
protoOf(DeckDetectorOptions).w2g = function () {
|
|
4387
|
-
return stations(this, this.
|
|
4390
|
+
return stations(this, this.j2g_1, 'shortSpanM');
|
|
4388
4391
|
};
|
|
4389
|
-
protoOf(DeckDetectorOptions).
|
|
4390
|
-
return stations(this, this.
|
|
4392
|
+
protoOf(DeckDetectorOptions).k2h = function () {
|
|
4393
|
+
return stations(this, this.m2g_1, 'deckMinRunM');
|
|
4391
4394
|
};
|
|
4392
|
-
protoOf(DeckDetectorOptions).
|
|
4393
|
-
return stations(this, this.
|
|
4395
|
+
protoOf(DeckDetectorOptions).g2h = function () {
|
|
4396
|
+
return stations(this, this.o2g_1, 'maxAbutmentM');
|
|
4394
4397
|
};
|
|
4395
4398
|
protoOf(DeckDetectorOptions).f2h = function () {
|
|
4396
|
-
return
|
|
4397
|
-
};
|
|
4398
|
-
protoOf(DeckDetectorOptions).e2h = function () {
|
|
4399
|
-
return this.m2h() / 2 | 0;
|
|
4399
|
+
return this.n2h() / 2 | 0;
|
|
4400
4400
|
};
|
|
4401
|
-
protoOf(DeckDetectorOptions).
|
|
4402
|
-
return stations(this, this.
|
|
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.x2f_1) | 0;
|
|
4408
|
+
var result = getNumberHashCode(this.x2f_1);
|
|
4410
4409
|
result = imul(result, 31) + getNumberHashCode(this.y2f_1) | 0;
|
|
4411
4410
|
result = imul(result, 31) + getNumberHashCode(this.z2f_1) | 0;
|
|
4412
4411
|
result = imul(result, 31) + getNumberHashCode(this.a2g_1) | 0;
|
|
@@ -4423,13 +4422,14 @@
|
|
|
4423
4422
|
result = imul(result, 31) + getNumberHashCode(this.l2g_1) | 0;
|
|
4424
4423
|
result = imul(result, 31) + getNumberHashCode(this.m2g_1) | 0;
|
|
4425
4424
|
result = imul(result, 31) + getNumberHashCode(this.n2g_1) | 0;
|
|
4426
|
-
result = imul(result, 31) +
|
|
4427
|
-
result = imul(result, 31) +
|
|
4428
|
-
result = imul(result, 31) + this.q2g_1 | 0;
|
|
4429
|
-
result = imul(result, 31) +
|
|
4430
|
-
result = imul(result, 31) +
|
|
4425
|
+
result = imul(result, 31) + getNumberHashCode(this.o2g_1) | 0;
|
|
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;
|
|
4431
4430
|
result = imul(result, 31) + getNumberHashCode(this.t2g_1) | 0;
|
|
4432
|
-
result = imul(result, 31) +
|
|
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,8 +4437,6 @@
|
|
|
4437
4437
|
return true;
|
|
4438
4438
|
if (!(other instanceof DeckDetectorOptions))
|
|
4439
4439
|
return false;
|
|
4440
|
-
if (!equals(this.w2f_1, other.w2f_1))
|
|
4441
|
-
return false;
|
|
4442
4440
|
if (!equals(this.x2f_1, other.x2f_1))
|
|
4443
4441
|
return false;
|
|
4444
4442
|
if (!equals(this.y2f_1, other.y2f_1))
|
|
@@ -4473,83 +4471,85 @@
|
|
|
4473
4471
|
return false;
|
|
4474
4472
|
if (!equals(this.n2g_1, other.n2g_1))
|
|
4475
4473
|
return false;
|
|
4476
|
-
if (!(this.o2g_1
|
|
4474
|
+
if (!equals(this.o2g_1, other.o2g_1))
|
|
4477
4475
|
return false;
|
|
4478
|
-
if (!
|
|
4476
|
+
if (!(this.p2g_1 === other.p2g_1))
|
|
4479
4477
|
return false;
|
|
4480
|
-
if (!(this.q2g_1
|
|
4478
|
+
if (!equals(this.q2g_1, other.q2g_1))
|
|
4481
4479
|
return false;
|
|
4482
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
4484
|
if (!equals(this.t2g_1, other.t2g_1))
|
|
4487
4485
|
return false;
|
|
4488
|
-
if (!(this.u2g_1
|
|
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).m2i = function () {
|
|
4504
|
-
return this.d2i_1 < this.f2i_1;
|
|
4505
|
-
};
|
|
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
|
+
}
|
|
4506
4503
|
protoOf(DeckReplacement).n2i = function () {
|
|
4507
|
-
return this.e2i_1
|
|
4504
|
+
return this.e2i_1 < this.g2i_1;
|
|
4505
|
+
};
|
|
4506
|
+
protoOf(DeckReplacement).o2i = function () {
|
|
4507
|
+
return this.f2i_1 > this.h2i_1;
|
|
4508
4508
|
};
|
|
4509
|
-
protoOf(DeckReplacement).
|
|
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.v2i_1) | 0;
|
|
4851
|
+
var result = getNumberHashCode(this.v2i_1);
|
|
4853
4852
|
result = imul(result, 31) + getNumberHashCode(this.w2i_1) | 0;
|
|
4854
4853
|
result = imul(result, 31) + getNumberHashCode(this.x2i_1) | 0;
|
|
4855
4854
|
result = imul(result, 31) + getNumberHashCode(this.y2i_1) | 0;
|
|
4856
4855
|
result = imul(result, 31) + getNumberHashCode(this.z2i_1) | 0;
|
|
4857
|
-
result = imul(result, 31) + this.a2j_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,8 +4862,6 @@
|
|
|
4862
4862
|
return true;
|
|
4863
4863
|
if (!(other instanceof TerrainProvenance))
|
|
4864
4864
|
return false;
|
|
4865
|
-
if (!equals(this.u2i_1, other.u2i_1))
|
|
4866
|
-
return false;
|
|
4867
4865
|
if (!equals(this.v2i_1, other.v2i_1))
|
|
4868
4866
|
return false;
|
|
4869
4867
|
if (!equals(this.w2i_1, other.w2i_1))
|
|
@@ -4874,36 +4872,38 @@
|
|
|
4874
4872
|
return false;
|
|
4875
4873
|
if (!equals(this.z2i_1, other.z2i_1))
|
|
4876
4874
|
return false;
|
|
4877
|
-
if (!(this.a2j_1
|
|
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
4881
|
function ElevationCorrections(bridgeDecks, bridgeDecksApplied, bridgeDecksDropped, tunnels, tunnelsApplied, tunnelsDropped, warnings, terrain, tunnelsOutOfScope) {
|
|
4882
4882
|
terrain = terrain === VOID ? null : terrain;
|
|
4883
4883
|
tunnelsOutOfScope = tunnelsOutOfScope === VOID ? 0 : tunnelsOutOfScope;
|
|
4884
|
-
this.
|
|
4885
|
-
this.
|
|
4886
|
-
this.
|
|
4887
|
-
this.
|
|
4888
|
-
this.
|
|
4889
|
-
this.
|
|
4890
|
-
this.
|
|
4891
|
-
this.
|
|
4892
|
-
this.
|
|
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;
|
|
4893
4893
|
}
|
|
4894
4894
|
protoOf(ElevationCorrections).toString = function () {
|
|
4895
|
-
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 + ')';
|
|
4896
4896
|
};
|
|
4897
4897
|
protoOf(ElevationCorrections).hashCode = function () {
|
|
4898
|
-
var result = this.
|
|
4899
|
-
result = imul(result, 31) + this.c2j_1 | 0;
|
|
4898
|
+
var result = this.c2j_1.hashCode();
|
|
4900
4899
|
result = imul(result, 31) + this.d2j_1 | 0;
|
|
4901
|
-
result = imul(result, 31) + this.e2j_1
|
|
4902
|
-
result = imul(result, 31) + this.f2j_1 | 0;
|
|
4900
|
+
result = imul(result, 31) + this.e2j_1 | 0;
|
|
4901
|
+
result = imul(result, 31) + this.f2j_1.hashCode() | 0;
|
|
4903
4902
|
result = imul(result, 31) + this.g2j_1 | 0;
|
|
4904
|
-
result = imul(result, 31) +
|
|
4905
|
-
result = imul(result, 31) + (this.i2j_1
|
|
4906
|
-
result = imul(result, 31) + this.j2j_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;
|
|
4907
4907
|
return result;
|
|
4908
4908
|
};
|
|
4909
4909
|
protoOf(ElevationCorrections).equals = function (other) {
|
|
@@ -4911,23 +4911,23 @@
|
|
|
4911
4911
|
return true;
|
|
4912
4912
|
if (!(other instanceof ElevationCorrections))
|
|
4913
4913
|
return false;
|
|
4914
|
-
if (!this.
|
|
4915
|
-
return false;
|
|
4916
|
-
if (!(this.c2j_1 === other.c2j_1))
|
|
4914
|
+
if (!this.c2j_1.equals(other.c2j_1))
|
|
4917
4915
|
return false;
|
|
4918
4916
|
if (!(this.d2j_1 === other.d2j_1))
|
|
4919
4917
|
return false;
|
|
4920
|
-
if (!this.e2j_1
|
|
4918
|
+
if (!(this.e2j_1 === other.e2j_1))
|
|
4921
4919
|
return false;
|
|
4922
|
-
if (!
|
|
4920
|
+
if (!this.f2j_1.equals(other.f2j_1))
|
|
4923
4921
|
return false;
|
|
4924
4922
|
if (!(this.g2j_1 === other.g2j_1))
|
|
4925
4923
|
return false;
|
|
4926
|
-
if (!
|
|
4924
|
+
if (!(this.h2j_1 === other.h2j_1))
|
|
4927
4925
|
return false;
|
|
4928
4926
|
if (!equals(this.i2j_1, other.i2j_1))
|
|
4929
4927
|
return false;
|
|
4930
|
-
if (!(this.j2j_1
|
|
4928
|
+
if (!equals(this.j2j_1, other.j2j_1))
|
|
4929
|
+
return false;
|
|
4930
|
+
if (!(this.k2j_1 === other.k2j_1))
|
|
4931
4931
|
return false;
|
|
4932
4932
|
return true;
|
|
4933
4933
|
};
|
|
@@ -4963,10 +4963,10 @@
|
|
|
4963
4963
|
var _iterator__ex2g4s = this_0.l();
|
|
4964
4964
|
while (_iterator__ex2g4s.m()) {
|
|
4965
4965
|
var item = _iterator__ex2g4s.n();
|
|
4966
|
-
var tmp$ret$2 = item.
|
|
4966
|
+
var tmp$ret$2 = item.n2j_1;
|
|
4967
4967
|
destination.k(tmp$ret$2);
|
|
4968
4968
|
}
|
|
4969
|
-
tmp.
|
|
4969
|
+
tmp.o2j_1 = destination;
|
|
4970
4970
|
}
|
|
4971
4971
|
var Companion_instance_4;
|
|
4972
4972
|
function values_1() {
|
|
@@ -4982,7 +4982,7 @@
|
|
|
4982
4982
|
var $ENTRIES_1;
|
|
4983
4983
|
function ElevationCorrectionStatus(name, ordinal, id) {
|
|
4984
4984
|
Enum.call(this, name, ordinal);
|
|
4985
|
-
this.
|
|
4985
|
+
this.n2j_1 = id;
|
|
4986
4986
|
}
|
|
4987
4987
|
function ElevationCorrectionStatus_NOT_RUN_getInstance() {
|
|
4988
4988
|
static_init_2();
|
|
@@ -5010,33 +5010,33 @@
|
|
|
5010
5010
|
}
|
|
5011
5011
|
function Companion_4() {
|
|
5012
5012
|
}
|
|
5013
|
-
protoOf(Companion_4).
|
|
5014
|
-
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);
|
|
5015
5015
|
};
|
|
5016
5016
|
var Companion_instance_5;
|
|
5017
5017
|
function Companion_getInstance_4() {
|
|
5018
5018
|
return Companion_instance_5;
|
|
5019
5019
|
}
|
|
5020
5020
|
function ElevationGainResult(gainM, lossM, rawGainM, rawLossM, thresholdM, smoothWindowM, legCount) {
|
|
5021
|
-
this.
|
|
5022
|
-
this.
|
|
5023
|
-
this.
|
|
5024
|
-
this.
|
|
5025
|
-
this.
|
|
5026
|
-
this.
|
|
5027
|
-
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;
|
|
5028
5028
|
}
|
|
5029
5029
|
protoOf(ElevationGainResult).toString = function () {
|
|
5030
|
-
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 + ')';
|
|
5031
5031
|
};
|
|
5032
5032
|
protoOf(ElevationGainResult).hashCode = function () {
|
|
5033
|
-
var result = getNumberHashCode(this.
|
|
5034
|
-
result = imul(result, 31) + getNumberHashCode(this.u2j_1) | 0;
|
|
5033
|
+
var result = getNumberHashCode(this.u2j_1);
|
|
5035
5034
|
result = imul(result, 31) + getNumberHashCode(this.v2j_1) | 0;
|
|
5036
5035
|
result = imul(result, 31) + getNumberHashCode(this.w2j_1) | 0;
|
|
5037
5036
|
result = imul(result, 31) + getNumberHashCode(this.x2j_1) | 0;
|
|
5038
5037
|
result = imul(result, 31) + getNumberHashCode(this.y2j_1) | 0;
|
|
5039
|
-
result = imul(result, 31) + this.z2j_1 | 0;
|
|
5038
|
+
result = imul(result, 31) + getNumberHashCode(this.z2j_1) | 0;
|
|
5039
|
+
result = imul(result, 31) + this.a2k_1 | 0;
|
|
5040
5040
|
return result;
|
|
5041
5041
|
};
|
|
5042
5042
|
protoOf(ElevationGainResult).equals = function (other) {
|
|
@@ -5044,8 +5044,6 @@
|
|
|
5044
5044
|
return true;
|
|
5045
5045
|
if (!(other instanceof ElevationGainResult))
|
|
5046
5046
|
return false;
|
|
5047
|
-
if (!equals(this.t2j_1, other.t2j_1))
|
|
5048
|
-
return false;
|
|
5049
5047
|
if (!equals(this.u2j_1, other.u2j_1))
|
|
5050
5048
|
return false;
|
|
5051
5049
|
if (!equals(this.v2j_1, other.v2j_1))
|
|
@@ -5056,14 +5054,16 @@
|
|
|
5056
5054
|
return false;
|
|
5057
5055
|
if (!equals(this.y2j_1, other.y2j_1))
|
|
5058
5056
|
return false;
|
|
5059
|
-
if (!(this.z2j_1
|
|
5057
|
+
if (!equals(this.z2j_1, other.z2j_1))
|
|
5058
|
+
return false;
|
|
5059
|
+
if (!(this.a2k_1 === other.a2k_1))
|
|
5060
5060
|
return false;
|
|
5061
5061
|
return true;
|
|
5062
5062
|
};
|
|
5063
5063
|
function Banked(gainM, lossM, legCount) {
|
|
5064
|
-
this.
|
|
5065
|
-
this.
|
|
5066
|
-
this.
|
|
5064
|
+
this.b2k_1 = gainM;
|
|
5065
|
+
this.c2k_1 = lossM;
|
|
5066
|
+
this.d2k_1 = legCount;
|
|
5067
5067
|
}
|
|
5068
5068
|
function accumulate($this, h, threshold) {
|
|
5069
5069
|
var gain = 0.0;
|
|
@@ -5145,45 +5145,45 @@
|
|
|
5145
5145
|
}
|
|
5146
5146
|
function ElevationGain() {
|
|
5147
5147
|
}
|
|
5148
|
-
protoOf(ElevationGain).
|
|
5149
|
-
if (path.
|
|
5150
|
-
return Companion_instance_5.
|
|
5148
|
+
protoOf(ElevationGain).e2k = function (path, options) {
|
|
5149
|
+
if (path.s2b_1 < 2)
|
|
5150
|
+
return Companion_instance_5.p2j(options);
|
|
5151
5151
|
var tmp = 0;
|
|
5152
|
-
var tmp_0 = path.
|
|
5152
|
+
var tmp_0 = path.s2b_1;
|
|
5153
5153
|
var tmp_1 = new Float64Array(tmp_0);
|
|
5154
5154
|
while (tmp < tmp_0) {
|
|
5155
5155
|
var tmp_2 = tmp;
|
|
5156
|
-
tmp_1[tmp_2] = path.
|
|
5156
|
+
tmp_1[tmp_2] = path.f2k(tmp_2);
|
|
5157
5157
|
tmp = tmp + 1 | 0;
|
|
5158
5158
|
}
|
|
5159
5159
|
var distanceM = tmp_1;
|
|
5160
5160
|
var tmp_3 = 0;
|
|
5161
|
-
var tmp_4 = path.
|
|
5161
|
+
var tmp_4 = path.s2b_1;
|
|
5162
5162
|
var tmp_5 = new Float64Array(tmp_4);
|
|
5163
5163
|
while (tmp_3 < tmp_4) {
|
|
5164
5164
|
var tmp_6 = tmp_3;
|
|
5165
|
-
var source = path.
|
|
5166
|
-
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;
|
|
5167
5167
|
tmp_3 = tmp_3 + 1 | 0;
|
|
5168
5168
|
}
|
|
5169
5169
|
var elevationM = tmp_5;
|
|
5170
|
-
return this.
|
|
5170
|
+
return this.h2k(distanceM, elevationM, options);
|
|
5171
5171
|
};
|
|
5172
|
-
protoOf(ElevationGain).
|
|
5173
|
-
var result = this.
|
|
5174
|
-
path.g2d_1 = result.t2j_1;
|
|
5172
|
+
protoOf(ElevationGain).i2k = function (path, options) {
|
|
5173
|
+
var result = this.e2k(path, options);
|
|
5175
5174
|
path.h2d_1 = result.u2j_1;
|
|
5175
|
+
path.i2d_1 = result.v2j_1;
|
|
5176
5176
|
return result;
|
|
5177
5177
|
};
|
|
5178
|
-
protoOf(ElevationGain).
|
|
5178
|
+
protoOf(ElevationGain).h2k = function (distanceM, elevationM, options) {
|
|
5179
5179
|
// Inline function 'kotlin.require' call
|
|
5180
5180
|
if (!(distanceM.length === elevationM.length)) {
|
|
5181
5181
|
var message = 'distanceM (' + distanceM.length + ') and elevationM (' + elevationM.length + ') must have the same length';
|
|
5182
5182
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
5183
5183
|
}
|
|
5184
5184
|
if (elevationM.length < 2)
|
|
5185
|
-
return Companion_instance_5.
|
|
5186
|
-
var profile = ElevationSmoother_instance.b1b(distanceM, elevationM, options.
|
|
5185
|
+
return Companion_instance_5.p2j(options);
|
|
5186
|
+
var profile = ElevationSmoother_instance.b1b(distanceM, elevationM, options.t2j_1);
|
|
5187
5187
|
var rawGain = 0.0;
|
|
5188
5188
|
var rawLoss = 0.0;
|
|
5189
5189
|
var inductionVariable = 1;
|
|
@@ -5199,18 +5199,18 @@
|
|
|
5199
5199
|
rawLoss = rawLoss + d;
|
|
5200
5200
|
}
|
|
5201
5201
|
while (inductionVariable < last);
|
|
5202
|
-
if (options.
|
|
5203
|
-
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);
|
|
5204
5204
|
}
|
|
5205
|
-
var banked = accumulate(this, profile, options.
|
|
5206
|
-
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);
|
|
5207
5207
|
};
|
|
5208
5208
|
var ElevationGain_instance;
|
|
5209
5209
|
function ElevationGain_getInstance() {
|
|
5210
5210
|
return ElevationGain_instance;
|
|
5211
5211
|
}
|
|
5212
5212
|
function ElevationGainPreset$Companion$byId$lambda(it) {
|
|
5213
|
-
return it.
|
|
5213
|
+
return it.n2k();
|
|
5214
5214
|
}
|
|
5215
5215
|
var static_init_called_3;
|
|
5216
5216
|
function static_init_3() {
|
|
@@ -5232,7 +5232,7 @@
|
|
|
5232
5232
|
var ElevationGainPreset_GPS_instance;
|
|
5233
5233
|
function Companion_5() {
|
|
5234
5234
|
}
|
|
5235
|
-
protoOf(Companion_5).
|
|
5235
|
+
protoOf(Companion_5).i1b = function (name) {
|
|
5236
5236
|
var tmp0 = get_entries_2();
|
|
5237
5237
|
var tmp$ret$0;
|
|
5238
5238
|
$l$block: {
|
|
@@ -5240,7 +5240,7 @@
|
|
|
5240
5240
|
var _iterator__ex2g4s = tmp0.l();
|
|
5241
5241
|
while (_iterator__ex2g4s.m()) {
|
|
5242
5242
|
var element = _iterator__ex2g4s.n();
|
|
5243
|
-
if (equals_0(element.
|
|
5243
|
+
if (equals_0(element.n2k(), name, true) || equals_0(element.x1_1, name, true)) {
|
|
5244
5244
|
tmp$ret$0 = element;
|
|
5245
5245
|
break $l$block;
|
|
5246
5246
|
}
|
|
@@ -5274,10 +5274,10 @@
|
|
|
5274
5274
|
var $ENTRIES_2;
|
|
5275
5275
|
function ElevationGainPreset(name, ordinal, thresholdM, smoothWindowM) {
|
|
5276
5276
|
Enum.call(this, name, ordinal);
|
|
5277
|
-
this.
|
|
5278
|
-
this.
|
|
5277
|
+
this.l2k_1 = thresholdM;
|
|
5278
|
+
this.m2k_1 = smoothWindowM;
|
|
5279
5279
|
}
|
|
5280
|
-
protoOf(ElevationGainPreset).
|
|
5280
|
+
protoOf(ElevationGainPreset).n2k = function () {
|
|
5281
5281
|
var tmp;
|
|
5282
5282
|
switch (this.y1_1) {
|
|
5283
5283
|
case 0:
|
|
@@ -5300,8 +5300,8 @@
|
|
|
5300
5300
|
};
|
|
5301
5301
|
function Companion_6() {
|
|
5302
5302
|
Companion_instance_7 = this;
|
|
5303
|
-
this.
|
|
5304
|
-
this.
|
|
5303
|
+
this.o2k_1 = new ElevationGainOptions();
|
|
5304
|
+
this.p2k_1 = new ElevationGainOptions(VOID, ElevationGainPreset_RAW_getInstance());
|
|
5305
5305
|
}
|
|
5306
5306
|
var Companion_instance_7;
|
|
5307
5307
|
function Companion_getInstance_6() {
|
|
@@ -5313,31 +5313,31 @@
|
|
|
5313
5313
|
Companion_getInstance_6();
|
|
5314
5314
|
enabled = enabled === VOID ? true : enabled;
|
|
5315
5315
|
preset = preset === VOID ? ElevationGainPreset_DEM_getInstance() : preset;
|
|
5316
|
-
thresholdM = thresholdM === VOID ? preset.
|
|
5317
|
-
smoothWindowM = smoothWindowM === VOID ? preset.
|
|
5318
|
-
this.
|
|
5319
|
-
this.
|
|
5320
|
-
this.
|
|
5321
|
-
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;
|
|
5322
5322
|
// Inline function 'kotlin.require' call
|
|
5323
|
-
if (!(this.
|
|
5324
|
-
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;
|
|
5325
5325
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
5326
5326
|
}
|
|
5327
5327
|
// Inline function 'kotlin.require' call
|
|
5328
|
-
if (!(this.
|
|
5329
|
-
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;
|
|
5330
5330
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_0));
|
|
5331
5331
|
}
|
|
5332
5332
|
}
|
|
5333
5333
|
protoOf(ElevationGainOptions).toString = function () {
|
|
5334
|
-
return 'ElevationGainOptions(enabled=' + this.
|
|
5334
|
+
return 'ElevationGainOptions(enabled=' + this.q2j_1 + ', preset=' + this.r2j_1.toString() + ', thresholdM=' + this.s2j_1 + ', smoothWindowM=' + this.t2j_1 + ')';
|
|
5335
5335
|
};
|
|
5336
5336
|
protoOf(ElevationGainOptions).hashCode = function () {
|
|
5337
|
-
var result = getBooleanHashCode(this.
|
|
5338
|
-
result = imul(result, 31) + this.
|
|
5339
|
-
result = imul(result, 31) + getNumberHashCode(this.r2j_1) | 0;
|
|
5337
|
+
var result = getBooleanHashCode(this.q2j_1);
|
|
5338
|
+
result = imul(result, 31) + this.r2j_1.hashCode() | 0;
|
|
5340
5339
|
result = imul(result, 31) + getNumberHashCode(this.s2j_1) | 0;
|
|
5340
|
+
result = imul(result, 31) + getNumberHashCode(this.t2j_1) | 0;
|
|
5341
5341
|
return result;
|
|
5342
5342
|
};
|
|
5343
5343
|
protoOf(ElevationGainOptions).equals = function (other) {
|
|
@@ -5345,14 +5345,14 @@
|
|
|
5345
5345
|
return true;
|
|
5346
5346
|
if (!(other instanceof ElevationGainOptions))
|
|
5347
5347
|
return false;
|
|
5348
|
-
if (!(this.
|
|
5349
|
-
return false;
|
|
5350
|
-
if (!this.q2j_1.equals(other.q2j_1))
|
|
5348
|
+
if (!(this.q2j_1 === other.q2j_1))
|
|
5351
5349
|
return false;
|
|
5352
|
-
if (!
|
|
5350
|
+
if (!this.r2j_1.equals(other.r2j_1))
|
|
5353
5351
|
return false;
|
|
5354
5352
|
if (!equals(this.s2j_1, other.s2j_1))
|
|
5355
5353
|
return false;
|
|
5354
|
+
if (!equals(this.t2j_1, other.t2j_1))
|
|
5355
|
+
return false;
|
|
5356
5356
|
return true;
|
|
5357
5357
|
};
|
|
5358
5358
|
function ElevationGainPreset_RAW_getInstance() {
|
|
@@ -5372,9 +5372,9 @@
|
|
|
5372
5372
|
return ElevationGainPreset_GPS_instance;
|
|
5373
5373
|
}
|
|
5374
5374
|
function copyAllSlots($this, source) {
|
|
5375
|
-
var out = new Path(source.
|
|
5375
|
+
var out = new Path(source.s2b_1);
|
|
5376
5376
|
var inductionVariable = 0;
|
|
5377
|
-
var last = source.
|
|
5377
|
+
var last = source.s2b_1;
|
|
5378
5378
|
if (inductionVariable < last)
|
|
5379
5379
|
do {
|
|
5380
5380
|
var i = inductionVariable;
|
|
@@ -5382,7 +5382,7 @@
|
|
|
5382
5382
|
var _iterator__ex2g4s = get_entries_3().l();
|
|
5383
5383
|
while (_iterator__ex2g4s.m()) {
|
|
5384
5384
|
var field = _iterator__ex2g4s.n();
|
|
5385
|
-
out.
|
|
5385
|
+
out.q2k(i, field, source.v2e(i, field));
|
|
5386
5386
|
}
|
|
5387
5387
|
}
|
|
5388
5388
|
while (inductionVariable < last);
|
|
@@ -5390,9 +5390,9 @@
|
|
|
5390
5390
|
}
|
|
5391
5391
|
function $fixElevationWithOriginsCOROUTINE$(_this__u8e3s4, source, provider, resultContinuation) {
|
|
5392
5392
|
CoroutineImpl.call(this, resultContinuation);
|
|
5393
|
-
this.
|
|
5394
|
-
this.
|
|
5395
|
-
this.
|
|
5393
|
+
this.z2k_1 = _this__u8e3s4;
|
|
5394
|
+
this.a2l_1 = source;
|
|
5395
|
+
this.b2l_1 = provider;
|
|
5396
5396
|
}
|
|
5397
5397
|
protoOf($fixElevationWithOriginsCOROUTINE$).r7 = function () {
|
|
5398
5398
|
var suspendResult = this.l7_1;
|
|
@@ -5402,21 +5402,21 @@
|
|
|
5402
5402
|
switch (tmp) {
|
|
5403
5403
|
case 0:
|
|
5404
5404
|
this.k7_1 = 2;
|
|
5405
|
-
if (this.
|
|
5405
|
+
if (this.a2l_1.s2b_1 === 0)
|
|
5406
5406
|
return to(new Path(0), emptyList());
|
|
5407
|
-
var size = this.
|
|
5407
|
+
var size = this.a2l_1.s2b_1;
|
|
5408
5408
|
var list = ArrayList_init_$Create$_0(size);
|
|
5409
5409
|
var inductionVariable = 0;
|
|
5410
5410
|
if (inductionVariable < size)
|
|
5411
5411
|
do {
|
|
5412
5412
|
var index = inductionVariable;
|
|
5413
5413
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5414
|
-
list.k(new LatLon(this.
|
|
5414
|
+
list.k(new LatLon(this.a2l_1.v2b(index) * 57.29577951308232, this.a2l_1.w2b(index) * 57.29577951308232));
|
|
5415
5415
|
}
|
|
5416
5416
|
while (inductionVariable < size);
|
|
5417
5417
|
var coords = list;
|
|
5418
5418
|
this.j7_1 = 1;
|
|
5419
|
-
suspendResult = this.
|
|
5419
|
+
suspendResult = this.b2l_1.v19(coords, VOID, this);
|
|
5420
5420
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5421
5421
|
return suspendResult;
|
|
5422
5422
|
}
|
|
@@ -5424,17 +5424,17 @@
|
|
|
5424
5424
|
continue $sm;
|
|
5425
5425
|
case 1:
|
|
5426
5426
|
var samples = suspendResult;
|
|
5427
|
-
var out = copyAllSlots(this.
|
|
5427
|
+
var out = copyAllSlots(this.z2k_1, this.a2l_1);
|
|
5428
5428
|
var inductionVariable_0 = 0;
|
|
5429
|
-
var last = out.
|
|
5429
|
+
var last = out.s2b_1;
|
|
5430
5430
|
if (inductionVariable_0 < last)
|
|
5431
5431
|
do {
|
|
5432
5432
|
var i = inductionVariable_0;
|
|
5433
5433
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
5434
|
-
out.
|
|
5434
|
+
out.r2c(i, samples.p(i).l19_1);
|
|
5435
5435
|
}
|
|
5436
5436
|
while (inductionVariable_0 < last);
|
|
5437
|
-
out.
|
|
5437
|
+
out.m2d();
|
|
5438
5438
|
return to(out, samples);
|
|
5439
5439
|
case 2:
|
|
5440
5440
|
throw this.m7_1;
|
|
@@ -5451,20 +5451,20 @@
|
|
|
5451
5451
|
while (true);
|
|
5452
5452
|
};
|
|
5453
5453
|
function ElevationStep() {
|
|
5454
|
-
this.
|
|
5454
|
+
this.c2l_1 = 150.0;
|
|
5455
5455
|
}
|
|
5456
|
-
protoOf(ElevationStep).
|
|
5456
|
+
protoOf(ElevationStep).d2l = function (source, provider, $completion) {
|
|
5457
5457
|
var tmp = new $fixElevationWithOriginsCOROUTINE$(this, source, provider, $completion);
|
|
5458
5458
|
tmp.l7_1 = Unit_instance;
|
|
5459
5459
|
tmp.m7_1 = null;
|
|
5460
5460
|
return tmp.r7();
|
|
5461
5461
|
};
|
|
5462
|
-
protoOf(ElevationStep).
|
|
5463
|
-
if (source.
|
|
5462
|
+
protoOf(ElevationStep).e2l = function (source, windowM) {
|
|
5463
|
+
if (source.s2b_1 === 0)
|
|
5464
5464
|
return new Path(0);
|
|
5465
5465
|
// Inline function 'kotlin.collections.List' call
|
|
5466
5466
|
// Inline function 'kotlin.collections.MutableList' call
|
|
5467
|
-
var size = source.
|
|
5467
|
+
var size = source.s2b_1;
|
|
5468
5468
|
var list = ArrayList_init_$Create$_0(size);
|
|
5469
5469
|
// Inline function 'kotlin.repeat' call
|
|
5470
5470
|
var inductionVariable = 0;
|
|
@@ -5472,7 +5472,7 @@
|
|
|
5472
5472
|
do {
|
|
5473
5473
|
var index = inductionVariable;
|
|
5474
5474
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5475
|
-
var tmp$ret$4 = source.
|
|
5475
|
+
var tmp$ret$4 = source.f2l(index);
|
|
5476
5476
|
list.k(tmp$ret$4);
|
|
5477
5477
|
}
|
|
5478
5478
|
while (inductionVariable < size);
|
|
@@ -5480,19 +5480,19 @@
|
|
|
5480
5480
|
var smoothed = ElevationSmoother_instance.h12(coords, windowM);
|
|
5481
5481
|
var out = copyAllSlots(this, source);
|
|
5482
5482
|
var inductionVariable_0 = 0;
|
|
5483
|
-
var last = out.
|
|
5483
|
+
var last = out.s2b_1;
|
|
5484
5484
|
if (inductionVariable_0 < last)
|
|
5485
5485
|
do {
|
|
5486
5486
|
var i = inductionVariable_0;
|
|
5487
5487
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
5488
|
-
if (isNaN_0(out.
|
|
5489
|
-
out.
|
|
5488
|
+
if (isNaN_0(out.g2k(i))) {
|
|
5489
|
+
out.g2l(i, source.x2b(i));
|
|
5490
5490
|
}
|
|
5491
|
-
out.
|
|
5491
|
+
out.r2c(i, smoothed.p(i).s12());
|
|
5492
5492
|
}
|
|
5493
5493
|
while (inductionVariable_0 < last);
|
|
5494
|
-
out.
|
|
5495
|
-
out.
|
|
5494
|
+
out.m2d();
|
|
5495
|
+
out.j2d_1 = source.j2d_1;
|
|
5496
5496
|
return out;
|
|
5497
5497
|
};
|
|
5498
5498
|
var ElevationStep_instance;
|
|
@@ -5501,21 +5501,21 @@
|
|
|
5501
5501
|
}
|
|
5502
5502
|
function FieldInterpolation() {
|
|
5503
5503
|
FieldInterpolation_instance = this;
|
|
5504
|
-
this.
|
|
5505
|
-
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()]);
|
|
5506
5506
|
}
|
|
5507
|
-
protoOf(FieldInterpolation).
|
|
5507
|
+
protoOf(FieldInterpolation).j2l = function (src, i1, i2, coef, dst, dstIdx) {
|
|
5508
5508
|
var _iterator__ex2g4s = get_entries_3().l();
|
|
5509
5509
|
while (_iterator__ex2g4s.m()) {
|
|
5510
5510
|
var field = _iterator__ex2g4s.n();
|
|
5511
|
-
dst.
|
|
5511
|
+
dst.q2k(dstIdx, field, this.k2l(field, src.v2e(i1, field), src.v2e(i2, field), coef));
|
|
5512
5512
|
}
|
|
5513
5513
|
};
|
|
5514
|
-
protoOf(FieldInterpolation).
|
|
5514
|
+
protoOf(FieldInterpolation).k2l = function (field, v1, v2, coef) {
|
|
5515
5515
|
if (isNaN_0(v1) || isNaN_0(v2))
|
|
5516
5516
|
return NaN;
|
|
5517
5517
|
var delta = v2 - v1;
|
|
5518
|
-
if (!this.
|
|
5518
|
+
if (!this.i2l_1.m1(field) || (delta >= -3.141592653589793 && delta <= 3.141592653589793))
|
|
5519
5519
|
return v1 + delta * coef;
|
|
5520
5520
|
var arc = delta > 3.141592653589793 ? delta - 6.283185307179586 : delta + 6.283185307179586;
|
|
5521
5521
|
var v = v1 + arc * coef;
|
|
@@ -5529,235 +5529,235 @@
|
|
|
5529
5529
|
return FieldInterpolation_instance;
|
|
5530
5530
|
}
|
|
5531
5531
|
function GeneratedPath(size) {
|
|
5532
|
-
this.
|
|
5532
|
+
this.s2b_1 = size;
|
|
5533
5533
|
// Inline function 'kotlin.require' call
|
|
5534
|
-
if (!(this.
|
|
5535
|
-
var message = 'Negative size: ' + this.
|
|
5534
|
+
if (!(this.s2b_1 >= 0)) {
|
|
5535
|
+
var message = 'Negative size: ' + this.s2b_1;
|
|
5536
5536
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
5537
5537
|
}
|
|
5538
|
-
this.
|
|
5538
|
+
this.t2b_1 = new Float64Array(imul(this.s2b_1, 44));
|
|
5539
5539
|
var inductionVariable = 0;
|
|
5540
|
-
var last = this.
|
|
5540
|
+
var last = this.s2b_1;
|
|
5541
5541
|
if (inductionVariable < last)
|
|
5542
5542
|
do {
|
|
5543
5543
|
var i = inductionVariable;
|
|
5544
5544
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5545
|
-
this.
|
|
5546
|
-
this.
|
|
5547
|
-
this.
|
|
5548
|
-
this.
|
|
5549
|
-
this.
|
|
5550
|
-
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;
|
|
5551
5551
|
}
|
|
5552
5552
|
while (inductionVariable < last);
|
|
5553
5553
|
}
|
|
5554
|
-
protoOf(GeneratedPath).
|
|
5555
|
-
return this.
|
|
5556
|
-
};
|
|
5557
|
-
protoOf(GeneratedPath).p2k = function (i, field, v) {
|
|
5558
|
-
this.s2b_1[imul(i, 44) + field.y1_1 | 0] = v;
|
|
5559
|
-
};
|
|
5560
|
-
protoOf(GeneratedPath).u2b = function (i) {
|
|
5561
|
-
return this.s2b_1[imul(i, 44) + 0 | 0];
|
|
5554
|
+
protoOf(GeneratedPath).v2e = function (i, field) {
|
|
5555
|
+
return this.t2b_1[imul(i, 44) + field.y1_1 | 0];
|
|
5562
5556
|
};
|
|
5563
|
-
protoOf(GeneratedPath).
|
|
5564
|
-
this.
|
|
5557
|
+
protoOf(GeneratedPath).q2k = function (i, field, v) {
|
|
5558
|
+
this.t2b_1[imul(i, 44) + field.y1_1 | 0] = v;
|
|
5565
5559
|
};
|
|
5566
5560
|
protoOf(GeneratedPath).v2b = function (i) {
|
|
5567
|
-
return this.
|
|
5561
|
+
return this.t2b_1[imul(i, 44) + 0 | 0];
|
|
5568
5562
|
};
|
|
5569
5563
|
protoOf(GeneratedPath).p2c = function (i, v) {
|
|
5570
|
-
this.
|
|
5564
|
+
this.t2b_1[imul(i, 44) + 0 | 0] = v;
|
|
5571
5565
|
};
|
|
5572
|
-
protoOf(GeneratedPath).
|
|
5573
|
-
return this.
|
|
5566
|
+
protoOf(GeneratedPath).w2b = function (i) {
|
|
5567
|
+
return this.t2b_1[imul(i, 44) + 1 | 0];
|
|
5568
|
+
};
|
|
5569
|
+
protoOf(GeneratedPath).q2c = function (i, v) {
|
|
5570
|
+
this.t2b_1[imul(i, 44) + 1 | 0] = v;
|
|
5574
5571
|
};
|
|
5575
|
-
protoOf(GeneratedPath).
|
|
5576
|
-
this.
|
|
5572
|
+
protoOf(GeneratedPath).f2k = function (i) {
|
|
5573
|
+
return this.t2b_1[imul(i, 44) + 2 | 0];
|
|
5577
5574
|
};
|
|
5578
5575
|
protoOf(GeneratedPath).l2l = function (i, v) {
|
|
5579
|
-
this.
|
|
5576
|
+
this.t2b_1[imul(i, 44) + 2 | 0] = v;
|
|
5580
5577
|
};
|
|
5581
|
-
protoOf(GeneratedPath).
|
|
5582
|
-
|
|
5578
|
+
protoOf(GeneratedPath).m2l = function (i, v) {
|
|
5579
|
+
this.t2b_1[imul(i, 44) + 3 | 0] = v;
|
|
5583
5580
|
};
|
|
5584
|
-
protoOf(GeneratedPath).
|
|
5585
|
-
this.
|
|
5581
|
+
protoOf(GeneratedPath).u2b = function (i) {
|
|
5582
|
+
return this.t2b_1[imul(i, 44) + 4 | 0];
|
|
5586
5583
|
};
|
|
5587
|
-
protoOf(GeneratedPath).
|
|
5588
|
-
|
|
5584
|
+
protoOf(GeneratedPath).s2c = function (i, v) {
|
|
5585
|
+
this.t2b_1[imul(i, 44) + 4 | 0] = v;
|
|
5589
5586
|
};
|
|
5590
|
-
protoOf(GeneratedPath).n2l = function (i
|
|
5591
|
-
this.
|
|
5587
|
+
protoOf(GeneratedPath).n2l = function (i) {
|
|
5588
|
+
return this.t2b_1[imul(i, 44) + 5 | 0];
|
|
5592
5589
|
};
|
|
5593
|
-
protoOf(GeneratedPath).o2l = function (i) {
|
|
5594
|
-
|
|
5590
|
+
protoOf(GeneratedPath).o2l = function (i, v) {
|
|
5591
|
+
this.t2b_1[imul(i, 44) + 5 | 0] = v;
|
|
5595
5592
|
};
|
|
5596
|
-
protoOf(GeneratedPath).p2l = function (i
|
|
5597
|
-
this.
|
|
5593
|
+
protoOf(GeneratedPath).p2l = function (i) {
|
|
5594
|
+
return this.t2b_1[imul(i, 44) + 6 | 0];
|
|
5598
5595
|
};
|
|
5599
|
-
protoOf(GeneratedPath).q2l = function (i) {
|
|
5600
|
-
|
|
5596
|
+
protoOf(GeneratedPath).q2l = function (i, v) {
|
|
5597
|
+
this.t2b_1[imul(i, 44) + 6 | 0] = v;
|
|
5601
5598
|
};
|
|
5602
|
-
protoOf(GeneratedPath).r2l = function (i
|
|
5603
|
-
this.
|
|
5599
|
+
protoOf(GeneratedPath).r2l = function (i) {
|
|
5600
|
+
return this.t2b_1[imul(i, 44) + 7 | 0];
|
|
5604
5601
|
};
|
|
5605
|
-
protoOf(GeneratedPath).
|
|
5606
|
-
|
|
5602
|
+
protoOf(GeneratedPath).s2l = function (i, v) {
|
|
5603
|
+
this.t2b_1[imul(i, 44) + 7 | 0] = v;
|
|
5607
5604
|
};
|
|
5608
|
-
protoOf(GeneratedPath).
|
|
5609
|
-
this.
|
|
5605
|
+
protoOf(GeneratedPath).x2b = function (i) {
|
|
5606
|
+
return this.t2b_1[imul(i, 44) + 8 | 0];
|
|
5610
5607
|
};
|
|
5611
|
-
protoOf(GeneratedPath).
|
|
5612
|
-
|
|
5608
|
+
protoOf(GeneratedPath).r2c = function (i, v) {
|
|
5609
|
+
this.t2b_1[imul(i, 44) + 8 | 0] = v;
|
|
5613
5610
|
};
|
|
5614
|
-
protoOf(GeneratedPath).t2l = function (i
|
|
5615
|
-
this.
|
|
5611
|
+
protoOf(GeneratedPath).t2l = function (i) {
|
|
5612
|
+
return this.t2b_1[imul(i, 44) + 9 | 0];
|
|
5616
5613
|
};
|
|
5617
|
-
protoOf(GeneratedPath).u2l = function (i) {
|
|
5618
|
-
|
|
5614
|
+
protoOf(GeneratedPath).u2l = function (i, v) {
|
|
5615
|
+
this.t2b_1[imul(i, 44) + 9 | 0] = v;
|
|
5619
5616
|
};
|
|
5620
|
-
protoOf(GeneratedPath).v2l = function (i
|
|
5621
|
-
this.
|
|
5617
|
+
protoOf(GeneratedPath).v2l = function (i) {
|
|
5618
|
+
return this.t2b_1[imul(i, 44) + 10 | 0];
|
|
5622
5619
|
};
|
|
5623
5620
|
protoOf(GeneratedPath).w2l = function (i, v) {
|
|
5624
|
-
this.
|
|
5621
|
+
this.t2b_1[imul(i, 44) + 10 | 0] = v;
|
|
5625
5622
|
};
|
|
5626
5623
|
protoOf(GeneratedPath).x2l = function (i, v) {
|
|
5627
|
-
this.
|
|
5624
|
+
this.t2b_1[imul(i, 44) + 11 | 0] = v;
|
|
5628
5625
|
};
|
|
5629
|
-
protoOf(GeneratedPath).y2l = function (i) {
|
|
5630
|
-
|
|
5626
|
+
protoOf(GeneratedPath).y2l = function (i, v) {
|
|
5627
|
+
this.t2b_1[imul(i, 44) + 12 | 0] = v;
|
|
5631
5628
|
};
|
|
5632
|
-
protoOf(GeneratedPath).z2l = function (i
|
|
5633
|
-
this.
|
|
5629
|
+
protoOf(GeneratedPath).z2l = function (i) {
|
|
5630
|
+
return this.t2b_1[imul(i, 44) + 13 | 0];
|
|
5634
5631
|
};
|
|
5635
5632
|
protoOf(GeneratedPath).a2m = function (i, v) {
|
|
5636
|
-
this.
|
|
5633
|
+
this.t2b_1[imul(i, 44) + 13 | 0] = v;
|
|
5637
5634
|
};
|
|
5638
5635
|
protoOf(GeneratedPath).b2m = function (i, v) {
|
|
5639
|
-
this.
|
|
5636
|
+
this.t2b_1[imul(i, 44) + 14 | 0] = v;
|
|
5640
5637
|
};
|
|
5641
5638
|
protoOf(GeneratedPath).c2m = function (i, v) {
|
|
5642
|
-
this.
|
|
5639
|
+
this.t2b_1[imul(i, 44) + 15 | 0] = v;
|
|
5643
5640
|
};
|
|
5644
5641
|
protoOf(GeneratedPath).d2m = function (i, v) {
|
|
5645
|
-
this.
|
|
5642
|
+
this.t2b_1[imul(i, 44) + 16 | 0] = v;
|
|
5646
5643
|
};
|
|
5647
|
-
protoOf(GeneratedPath).
|
|
5648
|
-
|
|
5644
|
+
protoOf(GeneratedPath).e2m = function (i, v) {
|
|
5645
|
+
this.t2b_1[imul(i, 44) + 17 | 0] = v;
|
|
5649
5646
|
};
|
|
5650
|
-
protoOf(GeneratedPath).
|
|
5651
|
-
this.
|
|
5647
|
+
protoOf(GeneratedPath).b2c = function (i) {
|
|
5648
|
+
return this.t2b_1[imul(i, 44) + 18 | 0];
|
|
5652
5649
|
};
|
|
5653
|
-
protoOf(GeneratedPath).
|
|
5654
|
-
this.
|
|
5650
|
+
protoOf(GeneratedPath).t2c = function (i, v) {
|
|
5651
|
+
this.t2b_1[imul(i, 44) + 18 | 0] = v;
|
|
5655
5652
|
};
|
|
5656
5653
|
protoOf(GeneratedPath).f2m = function (i, v) {
|
|
5657
|
-
this.
|
|
5654
|
+
this.t2b_1[imul(i, 44) + 19 | 0] = v;
|
|
5658
5655
|
};
|
|
5659
5656
|
protoOf(GeneratedPath).g2m = function (i, v) {
|
|
5660
|
-
this.
|
|
5657
|
+
this.t2b_1[imul(i, 44) + 20 | 0] = v;
|
|
5661
5658
|
};
|
|
5662
5659
|
protoOf(GeneratedPath).h2m = function (i, v) {
|
|
5663
|
-
this.
|
|
5660
|
+
this.t2b_1[imul(i, 44) + 21 | 0] = v;
|
|
5664
5661
|
};
|
|
5665
5662
|
protoOf(GeneratedPath).i2m = function (i, v) {
|
|
5666
|
-
this.
|
|
5663
|
+
this.t2b_1[imul(i, 44) + 22 | 0] = v;
|
|
5667
5664
|
};
|
|
5668
5665
|
protoOf(GeneratedPath).j2m = function (i, v) {
|
|
5669
|
-
this.
|
|
5666
|
+
this.t2b_1[imul(i, 44) + 23 | 0] = v;
|
|
5670
5667
|
};
|
|
5671
5668
|
protoOf(GeneratedPath).k2m = function (i, v) {
|
|
5672
|
-
this.
|
|
5673
|
-
};
|
|
5674
|
-
protoOf(GeneratedPath).b2c = function (i) {
|
|
5675
|
-
return this.s2b_1[imul(i, 44) + 26 | 0];
|
|
5669
|
+
this.t2b_1[imul(i, 44) + 24 | 0] = v;
|
|
5676
5670
|
};
|
|
5677
5671
|
protoOf(GeneratedPath).l2m = function (i, v) {
|
|
5678
|
-
this.
|
|
5672
|
+
this.t2b_1[imul(i, 44) + 25 | 0] = v;
|
|
5679
5673
|
};
|
|
5680
|
-
protoOf(GeneratedPath).
|
|
5681
|
-
return this.
|
|
5674
|
+
protoOf(GeneratedPath).c2c = function (i) {
|
|
5675
|
+
return this.t2b_1[imul(i, 44) + 26 | 0];
|
|
5682
5676
|
};
|
|
5683
|
-
protoOf(GeneratedPath).
|
|
5684
|
-
this.
|
|
5677
|
+
protoOf(GeneratedPath).m2m = function (i, v) {
|
|
5678
|
+
this.t2b_1[imul(i, 44) + 26 | 0] = v;
|
|
5685
5679
|
};
|
|
5686
|
-
protoOf(GeneratedPath).
|
|
5687
|
-
return this.
|
|
5680
|
+
protoOf(GeneratedPath).n2m = function (i) {
|
|
5681
|
+
return this.t2b_1[imul(i, 44) + 27 | 0];
|
|
5688
5682
|
};
|
|
5689
|
-
protoOf(GeneratedPath).
|
|
5690
|
-
this.
|
|
5683
|
+
protoOf(GeneratedPath).o2m = function (i, v) {
|
|
5684
|
+
this.t2b_1[imul(i, 44) + 27 | 0] = v;
|
|
5685
|
+
};
|
|
5686
|
+
protoOf(GeneratedPath).p2m = function (i) {
|
|
5687
|
+
return this.t2b_1[imul(i, 44) + 28 | 0];
|
|
5691
5688
|
};
|
|
5692
5689
|
protoOf(GeneratedPath).q2m = function (i, v) {
|
|
5693
|
-
this.
|
|
5690
|
+
this.t2b_1[imul(i, 44) + 28 | 0] = v;
|
|
5694
5691
|
};
|
|
5695
5692
|
protoOf(GeneratedPath).r2m = function (i, v) {
|
|
5696
|
-
this.
|
|
5693
|
+
this.t2b_1[imul(i, 44) + 29 | 0] = v;
|
|
5697
5694
|
};
|
|
5698
|
-
protoOf(GeneratedPath).
|
|
5699
|
-
|
|
5695
|
+
protoOf(GeneratedPath).s2m = function (i, v) {
|
|
5696
|
+
this.t2b_1[imul(i, 44) + 30 | 0] = v;
|
|
5700
5697
|
};
|
|
5701
|
-
protoOf(GeneratedPath).
|
|
5702
|
-
this.
|
|
5698
|
+
protoOf(GeneratedPath).a2c = function (i) {
|
|
5699
|
+
return this.t2b_1[imul(i, 44) + 31 | 0];
|
|
5703
5700
|
};
|
|
5704
|
-
protoOf(GeneratedPath).
|
|
5705
|
-
|
|
5701
|
+
protoOf(GeneratedPath).w2c = function (i, v) {
|
|
5702
|
+
this.t2b_1[imul(i, 44) + 31 | 0] = v;
|
|
5706
5703
|
};
|
|
5707
|
-
protoOf(GeneratedPath).t2m = function (i
|
|
5708
|
-
this.
|
|
5704
|
+
protoOf(GeneratedPath).t2m = function (i) {
|
|
5705
|
+
return this.t2b_1[imul(i, 44) + 32 | 0];
|
|
5709
5706
|
};
|
|
5710
5707
|
protoOf(GeneratedPath).u2m = function (i, v) {
|
|
5711
|
-
this.
|
|
5708
|
+
this.t2b_1[imul(i, 44) + 32 | 0] = v;
|
|
5712
5709
|
};
|
|
5713
|
-
protoOf(GeneratedPath).
|
|
5714
|
-
|
|
5715
|
-
};
|
|
5716
|
-
protoOf(GeneratedPath).t2c = function (i, v) {
|
|
5717
|
-
this.s2b_1[imul(i, 44) + 34 | 0] = v;
|
|
5710
|
+
protoOf(GeneratedPath).v2m = function (i, v) {
|
|
5711
|
+
this.t2b_1[imul(i, 44) + 33 | 0] = v;
|
|
5718
5712
|
};
|
|
5719
5713
|
protoOf(GeneratedPath).y2b = function (i) {
|
|
5720
|
-
return this.
|
|
5714
|
+
return this.t2b_1[imul(i, 44) + 34 | 0];
|
|
5721
5715
|
};
|
|
5722
5716
|
protoOf(GeneratedPath).u2c = function (i, v) {
|
|
5723
|
-
this.
|
|
5717
|
+
this.t2b_1[imul(i, 44) + 34 | 0] = v;
|
|
5724
5718
|
};
|
|
5725
|
-
protoOf(GeneratedPath).
|
|
5726
|
-
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;
|
|
5727
5724
|
};
|
|
5728
5725
|
protoOf(GeneratedPath).w2m = function (i, v) {
|
|
5729
|
-
this.
|
|
5726
|
+
this.t2b_1[imul(i, 44) + 36 | 0] = v;
|
|
5730
5727
|
};
|
|
5731
|
-
protoOf(GeneratedPath).x2m = function (i) {
|
|
5732
|
-
|
|
5728
|
+
protoOf(GeneratedPath).x2m = function (i, v) {
|
|
5729
|
+
this.t2b_1[imul(i, 44) + 37 | 0] = v;
|
|
5733
5730
|
};
|
|
5734
|
-
protoOf(GeneratedPath).y2m = function (i
|
|
5735
|
-
this.
|
|
5731
|
+
protoOf(GeneratedPath).y2m = function (i) {
|
|
5732
|
+
return this.t2b_1[imul(i, 44) + 38 | 0];
|
|
5736
5733
|
};
|
|
5737
|
-
protoOf(GeneratedPath).z2m = function (i) {
|
|
5738
|
-
|
|
5734
|
+
protoOf(GeneratedPath).z2m = function (i, v) {
|
|
5735
|
+
this.t2b_1[imul(i, 44) + 38 | 0] = v;
|
|
5739
5736
|
};
|
|
5740
|
-
protoOf(GeneratedPath).
|
|
5741
|
-
this.
|
|
5737
|
+
protoOf(GeneratedPath).a2n = function (i) {
|
|
5738
|
+
return this.t2b_1[imul(i, 44) + 39 | 0];
|
|
5742
5739
|
};
|
|
5743
|
-
protoOf(GeneratedPath).
|
|
5744
|
-
this.
|
|
5740
|
+
protoOf(GeneratedPath).z2c = function (i, v) {
|
|
5741
|
+
this.t2b_1[imul(i, 44) + 39 | 0] = v;
|
|
5745
5742
|
};
|
|
5746
5743
|
protoOf(GeneratedPath).b2n = function (i, v) {
|
|
5747
|
-
this.
|
|
5744
|
+
this.t2b_1[imul(i, 44) + 40 | 0] = v;
|
|
5748
5745
|
};
|
|
5749
5746
|
protoOf(GeneratedPath).c2n = function (i, v) {
|
|
5750
|
-
this.
|
|
5747
|
+
this.t2b_1[imul(i, 44) + 41 | 0] = v;
|
|
5751
5748
|
};
|
|
5752
|
-
protoOf(GeneratedPath).
|
|
5753
|
-
|
|
5749
|
+
protoOf(GeneratedPath).d2n = function (i, v) {
|
|
5750
|
+
this.t2b_1[imul(i, 44) + 42 | 0] = v;
|
|
5754
5751
|
};
|
|
5755
|
-
protoOf(GeneratedPath).
|
|
5756
|
-
this.
|
|
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;
|
|
5757
5757
|
};
|
|
5758
5758
|
function Companion_7() {
|
|
5759
5759
|
Companion_instance_8 = this;
|
|
5760
|
-
this.
|
|
5760
|
+
this.e2n_1 = new BoundsRad(0.0, 0.0, 0.0, 0.0);
|
|
5761
5761
|
}
|
|
5762
5762
|
var Companion_instance_8;
|
|
5763
5763
|
function Companion_getInstance_7() {
|
|
@@ -5767,19 +5767,19 @@
|
|
|
5767
5767
|
}
|
|
5768
5768
|
function BoundsRad(minLat, maxLat, minLon, maxLon) {
|
|
5769
5769
|
Companion_getInstance_7();
|
|
5770
|
-
this.
|
|
5771
|
-
this.
|
|
5772
|
-
this.
|
|
5773
|
-
this.
|
|
5770
|
+
this.f2n_1 = minLat;
|
|
5771
|
+
this.g2n_1 = maxLat;
|
|
5772
|
+
this.h2n_1 = minLon;
|
|
5773
|
+
this.i2n_1 = maxLon;
|
|
5774
5774
|
}
|
|
5775
5775
|
protoOf(BoundsRad).toString = function () {
|
|
5776
|
-
return 'BoundsRad(minLat=' + this.
|
|
5776
|
+
return 'BoundsRad(minLat=' + this.f2n_1 + ', maxLat=' + this.g2n_1 + ', minLon=' + this.h2n_1 + ', maxLon=' + this.i2n_1 + ')';
|
|
5777
5777
|
};
|
|
5778
5778
|
protoOf(BoundsRad).hashCode = function () {
|
|
5779
|
-
var result = getNumberHashCode(this.
|
|
5780
|
-
result = imul(result, 31) + getNumberHashCode(this.f2n_1) | 0;
|
|
5779
|
+
var result = getNumberHashCode(this.f2n_1);
|
|
5781
5780
|
result = imul(result, 31) + getNumberHashCode(this.g2n_1) | 0;
|
|
5782
5781
|
result = imul(result, 31) + getNumberHashCode(this.h2n_1) | 0;
|
|
5782
|
+
result = imul(result, 31) + getNumberHashCode(this.i2n_1) | 0;
|
|
5783
5783
|
return result;
|
|
5784
5784
|
};
|
|
5785
5785
|
protoOf(BoundsRad).equals = function (other) {
|
|
@@ -5787,18 +5787,17 @@
|
|
|
5787
5787
|
return true;
|
|
5788
5788
|
if (!(other instanceof BoundsRad))
|
|
5789
5789
|
return false;
|
|
5790
|
-
if (!equals(this.e2n_1, other.e2n_1))
|
|
5791
|
-
return false;
|
|
5792
5790
|
if (!equals(this.f2n_1, other.f2n_1))
|
|
5793
5791
|
return false;
|
|
5794
5792
|
if (!equals(this.g2n_1, other.g2n_1))
|
|
5795
5793
|
return false;
|
|
5796
5794
|
if (!equals(this.h2n_1, other.h2n_1))
|
|
5797
5795
|
return false;
|
|
5796
|
+
if (!equals(this.i2n_1, other.i2n_1))
|
|
5797
|
+
return false;
|
|
5798
5798
|
return true;
|
|
5799
5799
|
};
|
|
5800
5800
|
function copyStatsFrom($this, other) {
|
|
5801
|
-
$this.b2d_1 = other.b2d_1;
|
|
5802
5801
|
$this.c2d_1 = other.c2d_1;
|
|
5803
5802
|
$this.d2d_1 = other.d2d_1;
|
|
5804
5803
|
$this.e2d_1 = other.e2d_1;
|
|
@@ -5808,22 +5807,23 @@
|
|
|
5808
5807
|
$this.i2d_1 = other.i2d_1;
|
|
5809
5808
|
$this.j2d_1 = other.j2d_1;
|
|
5810
5809
|
$this.k2d_1 = other.k2d_1;
|
|
5810
|
+
$this.l2d_1 = other.l2d_1;
|
|
5811
5811
|
}
|
|
5812
5812
|
function resetStats($this) {
|
|
5813
|
-
$this.b2d_1 = 0.0;
|
|
5814
5813
|
$this.c2d_1 = 0.0;
|
|
5815
5814
|
$this.d2d_1 = 0.0;
|
|
5816
5815
|
$this.e2d_1 = 0.0;
|
|
5817
5816
|
$this.f2d_1 = 0.0;
|
|
5818
|
-
$this.g2d_1 =
|
|
5817
|
+
$this.g2d_1 = 0.0;
|
|
5819
5818
|
$this.h2d_1 = NaN;
|
|
5820
|
-
$this.
|
|
5821
|
-
$this.k2d_1 =
|
|
5819
|
+
$this.i2d_1 = NaN;
|
|
5820
|
+
$this.k2d_1 = 0.0;
|
|
5821
|
+
$this.l2d_1 = Companion_getInstance_7().e2n_1;
|
|
5822
5822
|
}
|
|
5823
5823
|
function computeBearing($this, from, to) {
|
|
5824
|
-
var lat1 = $this.
|
|
5825
|
-
var lat2 = $this.
|
|
5826
|
-
var dLon = $this.
|
|
5824
|
+
var lat1 = $this.v2b(from);
|
|
5825
|
+
var lat2 = $this.v2b(to);
|
|
5826
|
+
var dLon = $this.w2b(to) - $this.w2b(from);
|
|
5827
5827
|
if (dLon > 3.141592653589793) {
|
|
5828
5828
|
dLon = dLon - 2 * 3.141592653589793;
|
|
5829
5829
|
} else if (dLon <= -3.141592653589793) {
|
|
@@ -5846,41 +5846,41 @@
|
|
|
5846
5846
|
}
|
|
5847
5847
|
function Path(size) {
|
|
5848
5848
|
GeneratedPath.call(this, size);
|
|
5849
|
-
this.b2d_1 = 0.0;
|
|
5850
5849
|
this.c2d_1 = 0.0;
|
|
5851
5850
|
this.d2d_1 = 0.0;
|
|
5852
5851
|
this.e2d_1 = 0.0;
|
|
5853
5852
|
this.f2d_1 = 0.0;
|
|
5854
|
-
this.g2d_1 =
|
|
5853
|
+
this.g2d_1 = 0.0;
|
|
5855
5854
|
this.h2d_1 = NaN;
|
|
5856
|
-
this.i2d_1 =
|
|
5857
|
-
this.j2d_1 =
|
|
5858
|
-
this.k2d_1 =
|
|
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;
|
|
5859
5859
|
}
|
|
5860
|
-
protoOf(Path).i2n = function () {
|
|
5861
|
-
return isNaN_0(this.g2d_1) ? this.e2d_1 : this.g2d_1;
|
|
5862
|
-
};
|
|
5863
5860
|
protoOf(Path).j2n = function () {
|
|
5864
5861
|
return isNaN_0(this.h2d_1) ? this.f2d_1 : this.h2d_1;
|
|
5865
5862
|
};
|
|
5866
5863
|
protoOf(Path).k2n = function () {
|
|
5867
|
-
return
|
|
5864
|
+
return isNaN_0(this.i2d_1) ? this.g2d_1 : this.i2d_1;
|
|
5868
5865
|
};
|
|
5869
|
-
protoOf(Path).l2n = function (
|
|
5870
|
-
return this.
|
|
5866
|
+
protoOf(Path).l2n = function () {
|
|
5867
|
+
return until(0, this.s2b_1);
|
|
5871
5868
|
};
|
|
5872
5869
|
protoOf(Path).m2n = function (i) {
|
|
5873
5870
|
return this.v2b(i) * 57.29577951308232;
|
|
5874
5871
|
};
|
|
5875
|
-
protoOf(Path).
|
|
5876
|
-
return
|
|
5872
|
+
protoOf(Path).n2n = function (i) {
|
|
5873
|
+
return this.w2b(i) * 57.29577951308232;
|
|
5877
5874
|
};
|
|
5878
|
-
protoOf(Path).
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5875
|
+
protoOf(Path).f2l = function (i) {
|
|
5876
|
+
return new LatLonElevation(this.m2n(i), this.n2n(i), this.x2b(i));
|
|
5877
|
+
};
|
|
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;
|
|
5882
5882
|
// Inline function 'kotlin.collections.copyInto' call
|
|
5883
|
-
var endIndex = this.
|
|
5883
|
+
var endIndex = this.t2b_1.length;
|
|
5884
5884
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
5885
5885
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5886
5886
|
var tmp = tmp0;
|
|
@@ -5890,11 +5890,11 @@
|
|
|
5890
5890
|
copyStatsFrom(out, this);
|
|
5891
5891
|
return out;
|
|
5892
5892
|
};
|
|
5893
|
-
protoOf(Path).
|
|
5893
|
+
protoOf(Path).m2d = function () {
|
|
5894
5894
|
resetStats(this);
|
|
5895
|
-
if (this.
|
|
5895
|
+
if (this.s2b_1 === 0)
|
|
5896
5896
|
return Unit_instance;
|
|
5897
|
-
var timeStart = this.
|
|
5897
|
+
var timeStart = this.u2b(0);
|
|
5898
5898
|
var cumDist = 0.0;
|
|
5899
5899
|
var minLat = Infinity;
|
|
5900
5900
|
var maxLat = -Infinity;
|
|
@@ -5905,14 +5905,14 @@
|
|
|
5905
5905
|
var gain = 0.0;
|
|
5906
5906
|
var loss = 0.0;
|
|
5907
5907
|
var inductionVariable = 0;
|
|
5908
|
-
var last = this.
|
|
5908
|
+
var last = this.s2b_1;
|
|
5909
5909
|
if (inductionVariable < last)
|
|
5910
5910
|
do {
|
|
5911
5911
|
var i = inductionVariable;
|
|
5912
5912
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5913
|
-
var lat = this.
|
|
5914
|
-
var lon = this.
|
|
5915
|
-
var ele = this.
|
|
5913
|
+
var lat = this.v2b(i);
|
|
5914
|
+
var lon = this.w2b(i);
|
|
5915
|
+
var ele = this.x2b(i);
|
|
5916
5916
|
// Inline function 'kotlin.math.min' call
|
|
5917
5917
|
var a = minLat;
|
|
5918
5918
|
minLat = Math.min(a, lat);
|
|
@@ -5932,67 +5932,67 @@
|
|
|
5932
5932
|
var a_4 = maxEle;
|
|
5933
5933
|
maxEle = Math.max(a_4, ele);
|
|
5934
5934
|
if (i > 0) {
|
|
5935
|
-
var prevCoord = new LatLon(this.
|
|
5936
|
-
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));
|
|
5937
5937
|
cumDist = cumDist + Distance_instance.n12(prevCoord, curCoord);
|
|
5938
|
-
var dEle = ele - this.
|
|
5938
|
+
var dEle = ele - this.x2b(i - 1 | 0);
|
|
5939
5939
|
if (dEle > 0)
|
|
5940
5940
|
gain = gain + dEle;
|
|
5941
5941
|
else
|
|
5942
5942
|
loss = loss + dEle;
|
|
5943
5943
|
}
|
|
5944
|
-
this.
|
|
5944
|
+
this.l2l(i, cumDist);
|
|
5945
5945
|
}
|
|
5946
5946
|
while (inductionVariable < last);
|
|
5947
|
-
this.
|
|
5948
|
-
this.
|
|
5949
|
-
this.
|
|
5950
|
-
this.
|
|
5951
|
-
this.
|
|
5952
|
-
this.
|
|
5953
|
-
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;
|
|
5954
5954
|
var inductionVariable_0 = 0;
|
|
5955
|
-
var last_0 = this.
|
|
5955
|
+
var last_0 = this.s2b_1;
|
|
5956
5956
|
if (inductionVariable_0 < last_0)
|
|
5957
5957
|
$l$loop: do {
|
|
5958
5958
|
var i_0 = inductionVariable_0;
|
|
5959
5959
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
5960
|
-
this.
|
|
5961
|
-
if (this.
|
|
5960
|
+
this.o2l(i_0, (this.u2b(i_0) - timeStart) / 1000.0);
|
|
5961
|
+
if (this.s2b_1 <= 1)
|
|
5962
5962
|
continue $l$loop;
|
|
5963
5963
|
// Inline function 'kotlin.math.max' call
|
|
5964
5964
|
var b = i_0 - 1 | 0;
|
|
5965
5965
|
var im1 = Math.max(0, b);
|
|
5966
|
-
var tmp0 = this.
|
|
5966
|
+
var tmp0 = this.s2b_1 - 1 | 0;
|
|
5967
5967
|
// Inline function 'kotlin.math.min' call
|
|
5968
5968
|
var b_0 = i_0 + 1 | 0;
|
|
5969
5969
|
var ip1 = Math.min(tmp0, b_0);
|
|
5970
|
-
this.
|
|
5971
|
-
var dDist = (this.
|
|
5972
|
-
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;
|
|
5973
5973
|
var grade = dDist === 0.0 ? 0.0 : dEle_0 / dDist;
|
|
5974
|
-
this.
|
|
5975
|
-
var dTime = (this.
|
|
5976
|
-
this.
|
|
5977
|
-
this.
|
|
5978
|
-
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);
|
|
5979
5979
|
}
|
|
5980
5980
|
while (inductionVariable_0 < last_0);
|
|
5981
5981
|
};
|
|
5982
5982
|
function PathSimplifier() {
|
|
5983
5983
|
}
|
|
5984
|
-
protoOf(PathSimplifier).
|
|
5985
|
-
if (path.
|
|
5986
|
-
return path.
|
|
5987
|
-
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);
|
|
5988
5988
|
var inductionVariable = 0;
|
|
5989
|
-
var last = path.
|
|
5989
|
+
var last = path.s2b_1;
|
|
5990
5990
|
if (inductionVariable < last)
|
|
5991
5991
|
do {
|
|
5992
5992
|
var i = inductionVariable;
|
|
5993
5993
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5994
5994
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5995
|
-
var element = new LatLonElevation(path.
|
|
5995
|
+
var element = new LatLonElevation(path.v2b(i) * 57.29577951308232, path.w2b(i) * 57.29577951308232, path.x2b(i));
|
|
5996
5996
|
coords.k(element);
|
|
5997
5997
|
}
|
|
5998
5998
|
while (inductionVariable < last);
|
|
@@ -6025,13 +6025,13 @@
|
|
|
6025
6025
|
var _iterator__ex2g4s_0 = get_entries_3().l();
|
|
6026
6026
|
while (_iterator__ex2g4s_0.m()) {
|
|
6027
6027
|
var field = _iterator__ex2g4s_0.n();
|
|
6028
|
-
out.
|
|
6028
|
+
out.q2k(dstIdx, field, path.v2e(srcIdx, field));
|
|
6029
6029
|
}
|
|
6030
6030
|
}
|
|
6031
|
-
out.
|
|
6032
|
-
out.g2d_1 = path.g2d_1;
|
|
6031
|
+
out.m2d();
|
|
6033
6032
|
out.h2d_1 = path.h2d_1;
|
|
6034
6033
|
out.i2d_1 = path.i2d_1;
|
|
6034
|
+
out.j2d_1 = path.j2d_1;
|
|
6035
6035
|
return out;
|
|
6036
6036
|
};
|
|
6037
6037
|
var PathSimplifier_instance;
|
|
@@ -6138,7 +6138,7 @@
|
|
|
6138
6138
|
var PointField_SOURCE_ELEVATION_instance;
|
|
6139
6139
|
function Companion_9() {
|
|
6140
6140
|
Companion_instance_10 = this;
|
|
6141
|
-
this.
|
|
6141
|
+
this.q2n_1 = 44;
|
|
6142
6142
|
var tmp = this;
|
|
6143
6143
|
// Inline function 'kotlin.collections.associateBy' call
|
|
6144
6144
|
var this_0 = get_entries_3();
|
|
@@ -6148,13 +6148,13 @@
|
|
|
6148
6148
|
var _iterator__ex2g4s = this_0.l();
|
|
6149
6149
|
while (_iterator__ex2g4s.m()) {
|
|
6150
6150
|
var element = _iterator__ex2g4s.n();
|
|
6151
|
-
var tmp$ret$2 = element.
|
|
6151
|
+
var tmp$ret$2 = element.n2e_1;
|
|
6152
6152
|
destination.v3(tmp$ret$2, element);
|
|
6153
6153
|
}
|
|
6154
|
-
tmp.
|
|
6154
|
+
tmp.r2n_1 = destination;
|
|
6155
6155
|
}
|
|
6156
|
-
protoOf(Companion_9).
|
|
6157
|
-
return this.
|
|
6156
|
+
protoOf(Companion_9).s2n = function (prop) {
|
|
6157
|
+
return this.r2n_1.t1(prop);
|
|
6158
6158
|
};
|
|
6159
6159
|
var Companion_instance_10;
|
|
6160
6160
|
function Companion_getInstance_9() {
|
|
@@ -6177,13 +6177,13 @@
|
|
|
6177
6177
|
anglesInRadians = anglesInRadians === VOID ? false : anglesInRadians;
|
|
6178
6178
|
nanDefault = nanDefault === VOID ? false : nanDefault;
|
|
6179
6179
|
Enum.call(this, name, ordinal);
|
|
6180
|
-
this.
|
|
6181
|
-
this.
|
|
6182
|
-
this.
|
|
6183
|
-
this.
|
|
6184
|
-
this.
|
|
6185
|
-
this.
|
|
6186
|
-
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;
|
|
6187
6187
|
}
|
|
6188
6188
|
function PointField_LATITUDE_getInstance() {
|
|
6189
6189
|
static_init_4();
|
|
@@ -6399,8 +6399,8 @@
|
|
|
6399
6399
|
var PointFieldCategory_ROAD_instance;
|
|
6400
6400
|
function PointFieldCategory(name, ordinal, id, displayName) {
|
|
6401
6401
|
Enum.call(this, name, ordinal);
|
|
6402
|
-
this.
|
|
6403
|
-
this.
|
|
6402
|
+
this.v2n_1 = id;
|
|
6403
|
+
this.w2n_1 = displayName;
|
|
6404
6404
|
}
|
|
6405
6405
|
function PointFieldCategory_COORDINATES_getInstance() {
|
|
6406
6406
|
static_init_5();
|
|
@@ -6463,35 +6463,35 @@
|
|
|
6463
6463
|
return PointFieldCategory_ROAD_instance;
|
|
6464
6464
|
}
|
|
6465
6465
|
function Copy(sourceIndex) {
|
|
6466
|
-
this.
|
|
6466
|
+
this.x2n_1 = sourceIndex;
|
|
6467
6467
|
}
|
|
6468
6468
|
protoOf(Copy).toString = function () {
|
|
6469
|
-
return 'Copy(sourceIndex=' + this.
|
|
6469
|
+
return 'Copy(sourceIndex=' + this.x2n_1 + ')';
|
|
6470
6470
|
};
|
|
6471
6471
|
protoOf(Copy).hashCode = function () {
|
|
6472
|
-
return this.
|
|
6472
|
+
return this.x2n_1;
|
|
6473
6473
|
};
|
|
6474
6474
|
protoOf(Copy).equals = function (other) {
|
|
6475
6475
|
if (this === other)
|
|
6476
6476
|
return true;
|
|
6477
6477
|
if (!(other instanceof Copy))
|
|
6478
6478
|
return false;
|
|
6479
|
-
if (!(this.
|
|
6479
|
+
if (!(this.x2n_1 === other.x2n_1))
|
|
6480
6480
|
return false;
|
|
6481
6481
|
return true;
|
|
6482
6482
|
};
|
|
6483
6483
|
function Interpolate(from, to, coef) {
|
|
6484
|
-
this.
|
|
6485
|
-
this.
|
|
6486
|
-
this.
|
|
6484
|
+
this.y2n_1 = from;
|
|
6485
|
+
this.z2n_1 = to;
|
|
6486
|
+
this.a2o_1 = coef;
|
|
6487
6487
|
}
|
|
6488
6488
|
protoOf(Interpolate).toString = function () {
|
|
6489
|
-
return 'Interpolate(from=' + this.
|
|
6489
|
+
return 'Interpolate(from=' + this.y2n_1 + ', to=' + this.z2n_1 + ', coef=' + this.a2o_1 + ')';
|
|
6490
6490
|
};
|
|
6491
6491
|
protoOf(Interpolate).hashCode = function () {
|
|
6492
|
-
var result = this.
|
|
6493
|
-
result = imul(result, 31) + this.
|
|
6494
|
-
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;
|
|
6495
6495
|
return result;
|
|
6496
6496
|
};
|
|
6497
6497
|
protoOf(Interpolate).equals = function (other) {
|
|
@@ -6499,28 +6499,28 @@
|
|
|
6499
6499
|
return true;
|
|
6500
6500
|
if (!(other instanceof Interpolate))
|
|
6501
6501
|
return false;
|
|
6502
|
-
if (!(this.x2n_1 === other.x2n_1))
|
|
6503
|
-
return false;
|
|
6504
6502
|
if (!(this.y2n_1 === other.y2n_1))
|
|
6505
6503
|
return false;
|
|
6506
|
-
if (!
|
|
6504
|
+
if (!(this.z2n_1 === other.z2n_1))
|
|
6505
|
+
return false;
|
|
6506
|
+
if (!equals(this.a2o_1, other.a2o_1))
|
|
6507
6507
|
return false;
|
|
6508
6508
|
return true;
|
|
6509
6509
|
};
|
|
6510
6510
|
function buildPlan($this, source, minDistanceM, maxDistanceM) {
|
|
6511
|
-
var n = source.
|
|
6511
|
+
var n = source.s2b_1;
|
|
6512
6512
|
var plan = ArrayList_init_$Create$_0(n);
|
|
6513
6513
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6514
6514
|
var element = new Copy(0);
|
|
6515
6515
|
plan.k(element);
|
|
6516
|
-
var lastAddedDistance = source.
|
|
6516
|
+
var lastAddedDistance = source.f2k(0);
|
|
6517
6517
|
var lastAddedIndex = 0;
|
|
6518
6518
|
var inductionVariable = 1;
|
|
6519
6519
|
if (inductionVariable < n)
|
|
6520
6520
|
$l$loop: do {
|
|
6521
6521
|
var i = inductionVariable;
|
|
6522
6522
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6523
|
-
var curDist = source.
|
|
6523
|
+
var curDist = source.f2k(i);
|
|
6524
6524
|
var gap = curDist - lastAddedDistance;
|
|
6525
6525
|
if (gap < minDistanceM)
|
|
6526
6526
|
continue $l$loop;
|
|
@@ -6543,11 +6543,11 @@
|
|
|
6543
6543
|
var j = inductionVariable_0;
|
|
6544
6544
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
6545
6545
|
var targetDistance = lastAddedDistance + j * spacing;
|
|
6546
|
-
while (index1 < (i - 1 | 0) && source.
|
|
6546
|
+
while (index1 < (i - 1 | 0) && source.f2k(index1 + 1 | 0) < targetDistance) {
|
|
6547
6547
|
index1 = index1 + 1 | 0;
|
|
6548
6548
|
}
|
|
6549
|
-
var dist1 = source.
|
|
6550
|
-
var dist2 = source.
|
|
6549
|
+
var dist1 = source.f2k(index1);
|
|
6550
|
+
var dist2 = source.f2k(index1 + 1 | 0);
|
|
6551
6551
|
var coef = (targetDistance - dist1) / (dist2 - dist1);
|
|
6552
6552
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6553
6553
|
var element_1 = new Interpolate(index1, index1 + 1 | 0, coef);
|
|
@@ -6573,42 +6573,42 @@
|
|
|
6573
6573
|
index = index + 1 | 0;
|
|
6574
6574
|
var op = iterator.n();
|
|
6575
6575
|
if (op instanceof Copy) {
|
|
6576
|
-
copyFields($this, source, op.
|
|
6576
|
+
copyFields($this, source, op.x2n_1, out, dstIdx);
|
|
6577
6577
|
} else {
|
|
6578
6578
|
if (op instanceof Interpolate) {
|
|
6579
|
-
FieldInterpolation_getInstance().
|
|
6579
|
+
FieldInterpolation_getInstance().j2l(source, op.y2n_1, op.z2n_1, op.a2o_1, out, dstIdx);
|
|
6580
6580
|
} else {
|
|
6581
6581
|
noWhenBranchMatchedException();
|
|
6582
6582
|
}
|
|
6583
6583
|
}
|
|
6584
6584
|
}
|
|
6585
|
-
out.
|
|
6585
|
+
out.m2d();
|
|
6586
6586
|
return out;
|
|
6587
6587
|
}
|
|
6588
6588
|
function copyFields($this, src, srcIdx, dst, dstIdx) {
|
|
6589
6589
|
var _iterator__ex2g4s = get_entries_3().l();
|
|
6590
6590
|
while (_iterator__ex2g4s.m()) {
|
|
6591
6591
|
var field = _iterator__ex2g4s.n();
|
|
6592
|
-
dst.
|
|
6592
|
+
dst.q2k(dstIdx, field, src.v2e(srcIdx, field));
|
|
6593
6593
|
}
|
|
6594
6594
|
}
|
|
6595
6595
|
function PointPerDistance() {
|
|
6596
6596
|
}
|
|
6597
|
-
protoOf(PointPerDistance).a2o = function (source, minDistanceM, maxDistanceM) {
|
|
6598
|
-
return this.b2o(source, minDistanceM, maxDistanceM);
|
|
6599
|
-
};
|
|
6600
6597
|
protoOf(PointPerDistance).b2o = function (source, minDistanceM, maxDistanceM) {
|
|
6598
|
+
return this.c2o(source, minDistanceM, maxDistanceM);
|
|
6599
|
+
};
|
|
6600
|
+
protoOf(PointPerDistance).c2o = function (source, minDistanceM, maxDistanceM) {
|
|
6601
6601
|
// Inline function 'kotlin.require' call
|
|
6602
6602
|
if (!(maxDistanceM > 0.0)) {
|
|
6603
6603
|
var message = 'maxDistanceM must be > 0, got ' + maxDistanceM;
|
|
6604
6604
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
6605
6605
|
}
|
|
6606
|
-
if (source.
|
|
6606
|
+
if (source.s2b_1 === 0)
|
|
6607
6607
|
return new Path(0);
|
|
6608
|
-
if (source.
|
|
6608
|
+
if (source.s2b_1 === 1) {
|
|
6609
6609
|
var out = new Path(1);
|
|
6610
6610
|
copyFields(this, source, 0, out, 0);
|
|
6611
|
-
out.
|
|
6611
|
+
out.m2d();
|
|
6612
6612
|
return out;
|
|
6613
6613
|
}
|
|
6614
6614
|
var plan = buildPlan(this, source, minDistanceM, maxDistanceM);
|
|
@@ -6619,35 +6619,35 @@
|
|
|
6619
6619
|
return PointPerDistance_instance;
|
|
6620
6620
|
}
|
|
6621
6621
|
function Copy_0(sourceIndex) {
|
|
6622
|
-
this.
|
|
6622
|
+
this.d2o_1 = sourceIndex;
|
|
6623
6623
|
}
|
|
6624
6624
|
protoOf(Copy_0).toString = function () {
|
|
6625
|
-
return 'Copy(sourceIndex=' + this.
|
|
6625
|
+
return 'Copy(sourceIndex=' + this.d2o_1 + ')';
|
|
6626
6626
|
};
|
|
6627
6627
|
protoOf(Copy_0).hashCode = function () {
|
|
6628
|
-
return this.
|
|
6628
|
+
return this.d2o_1;
|
|
6629
6629
|
};
|
|
6630
6630
|
protoOf(Copy_0).equals = function (other) {
|
|
6631
6631
|
if (this === other)
|
|
6632
6632
|
return true;
|
|
6633
6633
|
if (!(other instanceof Copy_0))
|
|
6634
6634
|
return false;
|
|
6635
|
-
if (!(this.
|
|
6635
|
+
if (!(this.d2o_1 === other.d2o_1))
|
|
6636
6636
|
return false;
|
|
6637
6637
|
return true;
|
|
6638
6638
|
};
|
|
6639
6639
|
function Interpolate_0(from, to, coef) {
|
|
6640
|
-
this.
|
|
6641
|
-
this.
|
|
6642
|
-
this.
|
|
6640
|
+
this.e2o_1 = from;
|
|
6641
|
+
this.f2o_1 = to;
|
|
6642
|
+
this.g2o_1 = coef;
|
|
6643
6643
|
}
|
|
6644
6644
|
protoOf(Interpolate_0).toString = function () {
|
|
6645
|
-
return 'Interpolate(from=' + this.
|
|
6645
|
+
return 'Interpolate(from=' + this.e2o_1 + ', to=' + this.f2o_1 + ', coef=' + this.g2o_1 + ')';
|
|
6646
6646
|
};
|
|
6647
6647
|
protoOf(Interpolate_0).hashCode = function () {
|
|
6648
|
-
var result = this.
|
|
6649
|
-
result = imul(result, 31) + this.
|
|
6650
|
-
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;
|
|
6651
6651
|
return result;
|
|
6652
6652
|
};
|
|
6653
6653
|
protoOf(Interpolate_0).equals = function (other) {
|
|
@@ -6655,23 +6655,23 @@
|
|
|
6655
6655
|
return true;
|
|
6656
6656
|
if (!(other instanceof Interpolate_0))
|
|
6657
6657
|
return false;
|
|
6658
|
-
if (!(this.d2o_1 === other.d2o_1))
|
|
6659
|
-
return false;
|
|
6660
6658
|
if (!(this.e2o_1 === other.e2o_1))
|
|
6661
6659
|
return false;
|
|
6662
|
-
if (!
|
|
6660
|
+
if (!(this.f2o_1 === other.f2o_1))
|
|
6661
|
+
return false;
|
|
6662
|
+
if (!equals(this.g2o_1, other.g2o_1))
|
|
6663
6663
|
return false;
|
|
6664
6664
|
return true;
|
|
6665
6665
|
};
|
|
6666
6666
|
function buildPlan_0($this, source) {
|
|
6667
6667
|
var plan = LinkedHashMap_init_$Create$_0();
|
|
6668
|
-
var n = source.
|
|
6668
|
+
var n = source.s2b_1;
|
|
6669
6669
|
var inductionVariable = 0;
|
|
6670
6670
|
if (inductionVariable < n)
|
|
6671
6671
|
$l$loop_0: do {
|
|
6672
6672
|
var i = inductionVariable;
|
|
6673
6673
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6674
|
-
var time1 = source.
|
|
6674
|
+
var time1 = source.u2b(i);
|
|
6675
6675
|
// Inline function 'kotlin.math.floor' call
|
|
6676
6676
|
var x = time1 / 1000.0;
|
|
6677
6677
|
var tmp$ret$0 = Math.floor(x);
|
|
@@ -6692,7 +6692,7 @@
|
|
|
6692
6692
|
}
|
|
6693
6693
|
continue $l$loop_0;
|
|
6694
6694
|
}
|
|
6695
|
-
var time2 = source.
|
|
6695
|
+
var time2 = source.u2b(i + 1 | 0);
|
|
6696
6696
|
// Inline function 'kotlin.math.floor' call
|
|
6697
6697
|
var x_0 = time2 / 1000.0;
|
|
6698
6698
|
var tmp$ret$4 = Math.floor(x_0);
|
|
@@ -6737,30 +6737,30 @@
|
|
|
6737
6737
|
}
|
|
6738
6738
|
var data = tmp;
|
|
6739
6739
|
if (data instanceof Copy_0) {
|
|
6740
|
-
copyFields_0($this, source, data.
|
|
6740
|
+
copyFields_0($this, source, data.d2o_1, out, idx);
|
|
6741
6741
|
} else {
|
|
6742
6742
|
if (data instanceof Interpolate_0) {
|
|
6743
|
-
FieldInterpolation_getInstance().
|
|
6743
|
+
FieldInterpolation_getInstance().j2l(source, data.e2o_1, data.f2o_1, data.g2o_1, out, idx);
|
|
6744
6744
|
} else {
|
|
6745
6745
|
noWhenBranchMatchedException();
|
|
6746
6746
|
}
|
|
6747
6747
|
}
|
|
6748
|
-
out.
|
|
6748
|
+
out.s2c(idx, toNumber(multiply(epoch, new Long(1000, 0))));
|
|
6749
6749
|
}
|
|
6750
|
-
out.
|
|
6750
|
+
out.m2d();
|
|
6751
6751
|
return out;
|
|
6752
6752
|
}
|
|
6753
6753
|
function copyFields_0($this, src, srcIdx, dst, dstIdx) {
|
|
6754
6754
|
var _iterator__ex2g4s = get_entries_3().l();
|
|
6755
6755
|
while (_iterator__ex2g4s.m()) {
|
|
6756
6756
|
var field = _iterator__ex2g4s.n();
|
|
6757
|
-
dst.
|
|
6757
|
+
dst.q2k(dstIdx, field, src.v2e(srcIdx, field));
|
|
6758
6758
|
}
|
|
6759
6759
|
}
|
|
6760
6760
|
function PointPerSecond() {
|
|
6761
6761
|
}
|
|
6762
|
-
protoOf(PointPerSecond).
|
|
6763
|
-
if (source.
|
|
6762
|
+
protoOf(PointPerSecond).h2o = function (source) {
|
|
6763
|
+
if (source.s2b_1 === 0)
|
|
6764
6764
|
return new Path(0);
|
|
6765
6765
|
var plan = buildPlan_0(this, source);
|
|
6766
6766
|
return materialize_0(this, source, plan);
|
|
@@ -6770,33 +6770,33 @@
|
|
|
6770
6770
|
return PointPerSecond_instance;
|
|
6771
6771
|
}
|
|
6772
6772
|
function TunnelSpan(first, last, chordGrade, heightM, riseGrade, fallGrade, straightness, stepM) {
|
|
6773
|
-
this.
|
|
6774
|
-
this.
|
|
6775
|
-
this.
|
|
6776
|
-
this.
|
|
6777
|
-
this.
|
|
6778
|
-
this.
|
|
6779
|
-
this.
|
|
6780
|
-
this.
|
|
6781
|
-
}
|
|
6782
|
-
protoOf(TunnelSpan).p2o = function () {
|
|
6783
|
-
return this.h2o_1 * this.o2o_1;
|
|
6784
|
-
};
|
|
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;
|
|
6781
|
+
}
|
|
6785
6782
|
protoOf(TunnelSpan).q2o = function () {
|
|
6786
|
-
return this.i2o_1 * this.
|
|
6783
|
+
return this.i2o_1 * this.p2o_1;
|
|
6784
|
+
};
|
|
6785
|
+
protoOf(TunnelSpan).r2o = function () {
|
|
6786
|
+
return this.j2o_1 * this.p2o_1;
|
|
6787
6787
|
};
|
|
6788
6788
|
protoOf(TunnelSpan).toString = function () {
|
|
6789
|
-
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 + ')';
|
|
6790
6790
|
};
|
|
6791
6791
|
protoOf(TunnelSpan).hashCode = function () {
|
|
6792
|
-
var result = this.
|
|
6793
|
-
result = imul(result, 31) + this.
|
|
6794
|
-
result = imul(result, 31) + getNumberHashCode(this.j2o_1) | 0;
|
|
6792
|
+
var result = this.i2o_1;
|
|
6793
|
+
result = imul(result, 31) + this.j2o_1 | 0;
|
|
6795
6794
|
result = imul(result, 31) + getNumberHashCode(this.k2o_1) | 0;
|
|
6796
6795
|
result = imul(result, 31) + getNumberHashCode(this.l2o_1) | 0;
|
|
6797
6796
|
result = imul(result, 31) + getNumberHashCode(this.m2o_1) | 0;
|
|
6798
6797
|
result = imul(result, 31) + getNumberHashCode(this.n2o_1) | 0;
|
|
6799
6798
|
result = imul(result, 31) + getNumberHashCode(this.o2o_1) | 0;
|
|
6799
|
+
result = imul(result, 31) + getNumberHashCode(this.p2o_1) | 0;
|
|
6800
6800
|
return result;
|
|
6801
6801
|
};
|
|
6802
6802
|
protoOf(TunnelSpan).equals = function (other) {
|
|
@@ -6804,11 +6804,9 @@
|
|
|
6804
6804
|
return true;
|
|
6805
6805
|
if (!(other instanceof TunnelSpan))
|
|
6806
6806
|
return false;
|
|
6807
|
-
if (!(this.h2o_1 === other.h2o_1))
|
|
6808
|
-
return false;
|
|
6809
6807
|
if (!(this.i2o_1 === other.i2o_1))
|
|
6810
6808
|
return false;
|
|
6811
|
-
if (!
|
|
6809
|
+
if (!(this.j2o_1 === other.j2o_1))
|
|
6812
6810
|
return false;
|
|
6813
6811
|
if (!equals(this.k2o_1, other.k2o_1))
|
|
6814
6812
|
return false;
|
|
@@ -6820,30 +6818,32 @@
|
|
|
6820
6818
|
return false;
|
|
6821
6819
|
if (!equals(this.o2o_1, other.o2o_1))
|
|
6822
6820
|
return false;
|
|
6821
|
+
if (!equals(this.p2o_1, other.p2o_1))
|
|
6822
|
+
return false;
|
|
6823
6823
|
return true;
|
|
6824
6824
|
};
|
|
6825
6825
|
function Stations(options) {
|
|
6826
|
-
this.r2o_1 = options.k2p();
|
|
6827
6826
|
this.s2o_1 = options.l2p();
|
|
6828
6827
|
this.t2o_1 = options.m2p();
|
|
6829
6828
|
this.u2o_1 = options.n2p();
|
|
6829
|
+
this.v2o_1 = options.o2p();
|
|
6830
6830
|
}
|
|
6831
6831
|
function grade($this, z, i, j, stepM) {
|
|
6832
6832
|
return i < 0 || j >= z.length ? NaN : (z[j] - z[i]) / ((j - i | 0) * stepM);
|
|
6833
6833
|
}
|
|
6834
6834
|
function judge($this, profile, a, b, entries, exits, options, stations) {
|
|
6835
|
-
var w = stations.
|
|
6836
|
-
var z = profile.
|
|
6835
|
+
var w = stations.t2o_1;
|
|
6836
|
+
var z = profile.p2p_1;
|
|
6837
6837
|
var n = z.length;
|
|
6838
|
-
var step = options.
|
|
6838
|
+
var step = options.w2o_1;
|
|
6839
6839
|
var length = (b - a | 0) * step;
|
|
6840
|
-
if (length < options.
|
|
6840
|
+
if (length < options.i2p_1 - 1.0E-9)
|
|
6841
6841
|
return null;
|
|
6842
|
-
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]));
|
|
6843
6843
|
var straightness = chord / length;
|
|
6844
|
-
if (!(straightness >= options.
|
|
6844
|
+
if (!(straightness >= options.k2p_1))
|
|
6845
6845
|
return null;
|
|
6846
|
-
var w0 = stations.
|
|
6846
|
+
var w0 = stations.t2o_1;
|
|
6847
6847
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6848
6848
|
var b_0 = a - w0 | 0;
|
|
6849
6849
|
var inductionVariable = Math.max(0, b_0);
|
|
@@ -6874,7 +6874,7 @@
|
|
|
6874
6874
|
while (!(k_0 === last));
|
|
6875
6875
|
var c = (z[b] - z[a]) / length;
|
|
6876
6876
|
// Inline function 'kotlin.math.abs' call
|
|
6877
|
-
if (!(Math.abs(c) <= options.
|
|
6877
|
+
if (!(Math.abs(c) <= options.d2p_1))
|
|
6878
6878
|
return null;
|
|
6879
6879
|
var height = -Infinity;
|
|
6880
6880
|
var inductionVariable_1 = a;
|
|
@@ -6883,15 +6883,15 @@
|
|
|
6883
6883
|
var k_1 = inductionVariable_1;
|
|
6884
6884
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
6885
6885
|
var h = z[k_1] - (z[a] + c * (k_1 - a | 0) * step);
|
|
6886
|
-
if (isNaN_0(h) || h < -options.
|
|
6886
|
+
if (isNaN_0(h) || h < -options.g2p_1)
|
|
6887
6887
|
return null;
|
|
6888
6888
|
if (h > height)
|
|
6889
6889
|
height = h;
|
|
6890
6890
|
}
|
|
6891
6891
|
while (!(k_1 === b));
|
|
6892
|
-
if (height < options.
|
|
6892
|
+
if (height < options.e2p_1)
|
|
6893
6893
|
return null;
|
|
6894
|
-
var f = stations.
|
|
6894
|
+
var f = stations.v2o_1;
|
|
6895
6895
|
var nearEntry = -Infinity;
|
|
6896
6896
|
var inductionVariable_2 = a;
|
|
6897
6897
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
@@ -6921,9 +6921,9 @@
|
|
|
6921
6921
|
nearExit = Math.max(tmp0_1, b_5);
|
|
6922
6922
|
}
|
|
6923
6923
|
while (!(k_3 === b));
|
|
6924
|
-
if (nearEntry < options.
|
|
6924
|
+
if (nearEntry < options.e2p_1 || nearExit < options.e2p_1)
|
|
6925
6925
|
return null;
|
|
6926
|
-
var s = stations.
|
|
6926
|
+
var s = stations.u2o_1;
|
|
6927
6927
|
var rise = -Infinity;
|
|
6928
6928
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6929
6929
|
var b_6 = a - (w / 2 | 0) | 0;
|
|
@@ -6955,7 +6955,7 @@
|
|
|
6955
6955
|
fall = g_0;
|
|
6956
6956
|
}
|
|
6957
6957
|
while (!(k_5 === last_2));
|
|
6958
|
-
if (rise < options.
|
|
6958
|
+
if (rise < options.b2p_1 || fall > -options.b2p_1)
|
|
6959
6959
|
return null;
|
|
6960
6960
|
// Inline function 'kotlin.collections.filter' call
|
|
6961
6961
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -6992,7 +6992,7 @@
|
|
|
6992
6992
|
do {
|
|
6993
6993
|
var k_6 = inductionVariable_6;
|
|
6994
6994
|
inductionVariable_6 = inductionVariable_6 + 1 | 0;
|
|
6995
|
-
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)
|
|
6996
6996
|
return null;
|
|
6997
6997
|
}
|
|
6998
6998
|
while (!(k_6 === y));
|
|
@@ -7001,15 +7001,15 @@
|
|
|
7001
7001
|
return new TunnelSpan(a, b, c, height, rise, fall, straightness, step);
|
|
7002
7002
|
}
|
|
7003
7003
|
function TunnelDetector() {
|
|
7004
|
-
this.
|
|
7004
|
+
this.s2p_1 = 1.0E-6;
|
|
7005
7005
|
}
|
|
7006
|
-
protoOf(TunnelDetector).
|
|
7007
|
-
var z = profile.
|
|
7006
|
+
protoOf(TunnelDetector).t2p = function (profile, options) {
|
|
7007
|
+
var z = profile.p2p_1;
|
|
7008
7008
|
if (z.length < 2)
|
|
7009
7009
|
return emptyList();
|
|
7010
7010
|
var stations = new Stations(options);
|
|
7011
|
-
var entries = this.
|
|
7012
|
-
var exits = this.
|
|
7011
|
+
var entries = this.u2p(z, options, true, stations);
|
|
7012
|
+
var exits = this.u2p(z, options, false, stations);
|
|
7013
7013
|
var out = ArrayList_init_$Create$();
|
|
7014
7014
|
var next = -1;
|
|
7015
7015
|
var _iterator__ex2g4s = entries.l();
|
|
@@ -7023,7 +7023,7 @@
|
|
|
7023
7023
|
var b = _iterator__ex2g4s_0.n();
|
|
7024
7024
|
if (b <= a)
|
|
7025
7025
|
continue $l$loop_2;
|
|
7026
|
-
if ((b - a | 0) * options.
|
|
7026
|
+
if ((b - a | 0) * options.w2o_1 > options.j2p_1 + 1.0E-9)
|
|
7027
7027
|
break $l$loop_2;
|
|
7028
7028
|
var tmp0_elvis_lhs = judge(this, profile, a, b, entries, exits, options, stations);
|
|
7029
7029
|
var tmp;
|
|
@@ -7033,23 +7033,23 @@
|
|
|
7033
7033
|
tmp = tmp0_elvis_lhs;
|
|
7034
7034
|
}
|
|
7035
7035
|
var span = tmp;
|
|
7036
|
-
if (best == null || span.
|
|
7036
|
+
if (best == null || span.l2o_1 > best.l2o_1 + 1.0E-9)
|
|
7037
7037
|
best = span;
|
|
7038
7038
|
}
|
|
7039
7039
|
if (!(best == null)) {
|
|
7040
7040
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
7041
7041
|
var element = best;
|
|
7042
7042
|
out.k(element);
|
|
7043
|
-
next = best.
|
|
7043
|
+
next = best.j2o_1;
|
|
7044
7044
|
}
|
|
7045
7045
|
}
|
|
7046
7046
|
return out;
|
|
7047
7047
|
};
|
|
7048
|
-
protoOf(TunnelDetector).
|
|
7048
|
+
protoOf(TunnelDetector).u2p = function (z, options, entry, stations) {
|
|
7049
7049
|
var n = z.length;
|
|
7050
|
-
var m = stations.
|
|
7051
|
-
var w = stations.
|
|
7052
|
-
var step = options.
|
|
7050
|
+
var m = stations.s2o_1;
|
|
7051
|
+
var w = stations.t2o_1;
|
|
7052
|
+
var step = options.w2o_1;
|
|
7053
7053
|
var tmp = 0;
|
|
7054
7054
|
var tmp_0 = new Float64Array(n);
|
|
7055
7055
|
while (tmp < n) {
|
|
@@ -7072,14 +7072,14 @@
|
|
|
7072
7072
|
var tmp_2;
|
|
7073
7073
|
var tmp_3;
|
|
7074
7074
|
// Inline function 'kotlin.math.abs' call
|
|
7075
|
-
if (Math.abs(back) <= options.
|
|
7075
|
+
if (Math.abs(back) <= options.z2o_1) {
|
|
7076
7076
|
// Inline function 'kotlin.math.abs' call
|
|
7077
|
-
tmp_3 = Math.abs(outer) <= options.
|
|
7077
|
+
tmp_3 = Math.abs(outer) <= options.z2o_1;
|
|
7078
7078
|
} else {
|
|
7079
7079
|
tmp_3 = false;
|
|
7080
7080
|
}
|
|
7081
7081
|
if (tmp_3) {
|
|
7082
|
-
tmp_2 = ahead >= options.
|
|
7082
|
+
tmp_2 = ahead >= options.a2p_1;
|
|
7083
7083
|
} else {
|
|
7084
7084
|
tmp_2 = false;
|
|
7085
7085
|
}
|
|
@@ -7089,14 +7089,14 @@
|
|
|
7089
7089
|
var tmp_4;
|
|
7090
7090
|
var tmp_5;
|
|
7091
7091
|
// Inline function 'kotlin.math.abs' call
|
|
7092
|
-
if (Math.abs(ahead) <= options.
|
|
7092
|
+
if (Math.abs(ahead) <= options.z2o_1) {
|
|
7093
7093
|
// Inline function 'kotlin.math.abs' call
|
|
7094
|
-
tmp_5 = Math.abs(outer_0) <= options.
|
|
7094
|
+
tmp_5 = Math.abs(outer_0) <= options.z2o_1;
|
|
7095
7095
|
} else {
|
|
7096
7096
|
tmp_5 = false;
|
|
7097
7097
|
}
|
|
7098
7098
|
if (tmp_5) {
|
|
7099
|
-
tmp_4 = back <= -options.
|
|
7099
|
+
tmp_4 = back <= -options.a2p_1;
|
|
7100
7100
|
} else {
|
|
7101
7101
|
tmp_4 = false;
|
|
7102
7102
|
}
|
|
@@ -7172,30 +7172,30 @@
|
|
|
7172
7172
|
return TunnelDetector_instance;
|
|
7173
7173
|
}
|
|
7174
7174
|
function TunnelProfile(terrainM, latDeg, lonDeg) {
|
|
7175
|
-
this.
|
|
7176
|
-
this.
|
|
7177
|
-
this.
|
|
7175
|
+
this.p2p_1 = terrainM;
|
|
7176
|
+
this.q2p_1 = latDeg;
|
|
7177
|
+
this.r2p_1 = lonDeg;
|
|
7178
7178
|
// Inline function 'kotlin.require' call
|
|
7179
|
-
if (!(this.
|
|
7180
|
-
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;
|
|
7181
7181
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7182
7182
|
}
|
|
7183
7183
|
}
|
|
7184
7184
|
function stations_0($this, metres, name) {
|
|
7185
|
-
var r = metres / $this.
|
|
7185
|
+
var r = metres / $this.w2o_1;
|
|
7186
7186
|
var k = roundToInt(r);
|
|
7187
7187
|
// Inline function 'kotlin.math.abs' call
|
|
7188
7188
|
var x = r - k;
|
|
7189
7189
|
// Inline function 'kotlin.require' call
|
|
7190
7190
|
if (!(Math.abs(x) < 1.0E-9)) {
|
|
7191
|
-
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';
|
|
7192
7192
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7193
7193
|
}
|
|
7194
7194
|
return k;
|
|
7195
7195
|
}
|
|
7196
7196
|
function Companion_10() {
|
|
7197
7197
|
Companion_instance_11 = this;
|
|
7198
|
-
this.
|
|
7198
|
+
this.v2p_1 = new TunnelDetectorOptions();
|
|
7199
7199
|
}
|
|
7200
7200
|
var Companion_instance_11;
|
|
7201
7201
|
function Companion_getInstance_10() {
|
|
@@ -7220,83 +7220,82 @@
|
|
|
7220
7220
|
minLengthM = minLengthM === VOID ? 50.0 : minLengthM;
|
|
7221
7221
|
maxLengthM = maxLengthM === VOID ? 3000.0 : maxLengthM;
|
|
7222
7222
|
minStraightness = minStraightness === VOID ? 0.8 : minStraightness;
|
|
7223
|
-
this.
|
|
7224
|
-
this.
|
|
7225
|
-
this.
|
|
7226
|
-
this.
|
|
7227
|
-
this.
|
|
7228
|
-
this.
|
|
7229
|
-
this.
|
|
7230
|
-
this.
|
|
7231
|
-
this.
|
|
7232
|
-
this.
|
|
7233
|
-
this.
|
|
7234
|
-
this.
|
|
7235
|
-
this.
|
|
7236
|
-
this.
|
|
7237
|
-
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;
|
|
7238
7238
|
// Inline function 'kotlin.require' call
|
|
7239
|
-
if (!(this.
|
|
7240
|
-
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;
|
|
7241
7241
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7242
7242
|
}
|
|
7243
7243
|
// Inline function 'kotlin.require' call
|
|
7244
|
-
if (!(this.
|
|
7244
|
+
if (!(this.l2p() >= 1 && this.m2p() >= 1)) {
|
|
7245
7245
|
var message_0 = 'grade windows must cover a station';
|
|
7246
7246
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_0));
|
|
7247
7247
|
}
|
|
7248
7248
|
// Inline function 'kotlin.require' call
|
|
7249
|
-
if (!(this.
|
|
7249
|
+
if (!(this.n2p() >= 0)) {
|
|
7250
7250
|
var message_1 = 'negative sideSearchM';
|
|
7251
7251
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_1));
|
|
7252
7252
|
}
|
|
7253
7253
|
// Inline function 'kotlin.require' call
|
|
7254
|
-
if (!(this.
|
|
7254
|
+
if (!(this.o2p() >= 1)) {
|
|
7255
7255
|
var message_2 = 'faceReachM must cover a station';
|
|
7256
7256
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_2));
|
|
7257
7257
|
}
|
|
7258
7258
|
// Inline function 'kotlin.require' call
|
|
7259
|
-
if (!(this.
|
|
7259
|
+
if (!(this.z2o_1 >= 0.0 && this.a2p_1 > 0.0 && this.b2p_1 > 0.0)) {
|
|
7260
7260
|
var message_3 = 'grades must be positive';
|
|
7261
7261
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_3));
|
|
7262
7262
|
}
|
|
7263
7263
|
// Inline function 'kotlin.require' call
|
|
7264
|
-
if (!(this.
|
|
7264
|
+
if (!(this.d2p_1 >= 0.0 && this.e2p_1 > 0.0 && this.g2p_1 >= 0.0)) {
|
|
7265
7265
|
var message_4 = 'negative threshold';
|
|
7266
7266
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_4));
|
|
7267
7267
|
}
|
|
7268
|
-
var containsUpper = this.
|
|
7269
|
-
var containsArg = this.
|
|
7268
|
+
var containsUpper = this.j2p_1;
|
|
7269
|
+
var containsArg = this.i2p_1;
|
|
7270
7270
|
// Inline function 'kotlin.require' call
|
|
7271
7271
|
if (!(0.0 <= containsArg ? containsArg <= containsUpper : false)) {
|
|
7272
7272
|
var message_5 = 'minLengthM must be in 0..maxLengthM';
|
|
7273
7273
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_5));
|
|
7274
7274
|
}
|
|
7275
|
-
var containsArg_0 = this.
|
|
7275
|
+
var containsArg_0 = this.k2p_1;
|
|
7276
7276
|
// Inline function 'kotlin.require' call
|
|
7277
7277
|
if (!(0.0 <= containsArg_0 ? containsArg_0 <= 1.0 : false)) {
|
|
7278
|
-
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;
|
|
7279
7279
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_6));
|
|
7280
7280
|
}
|
|
7281
7281
|
}
|
|
7282
|
-
protoOf(TunnelDetectorOptions).k2p = function () {
|
|
7283
|
-
return stations_0(this, this.w2o_1, 'footWindowM');
|
|
7284
|
-
};
|
|
7285
7282
|
protoOf(TunnelDetectorOptions).l2p = function () {
|
|
7286
|
-
return stations_0(this, this.x2o_1, '
|
|
7283
|
+
return stations_0(this, this.x2o_1, 'footWindowM');
|
|
7287
7284
|
};
|
|
7288
7285
|
protoOf(TunnelDetectorOptions).m2p = function () {
|
|
7289
|
-
return stations_0(this, this.
|
|
7286
|
+
return stations_0(this, this.y2o_1, 'steepWindowM');
|
|
7290
7287
|
};
|
|
7291
7288
|
protoOf(TunnelDetectorOptions).n2p = function () {
|
|
7292
|
-
return stations_0(this, this.
|
|
7289
|
+
return stations_0(this, this.c2p_1, 'sideSearchM');
|
|
7290
|
+
};
|
|
7291
|
+
protoOf(TunnelDetectorOptions).o2p = function () {
|
|
7292
|
+
return stations_0(this, this.f2p_1, 'faceReachM');
|
|
7293
7293
|
};
|
|
7294
7294
|
protoOf(TunnelDetectorOptions).toString = function () {
|
|
7295
|
-
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 + ')';
|
|
7296
7296
|
};
|
|
7297
7297
|
protoOf(TunnelDetectorOptions).hashCode = function () {
|
|
7298
|
-
var result = getNumberHashCode(this.
|
|
7299
|
-
result = imul(result, 31) + getNumberHashCode(this.w2o_1) | 0;
|
|
7298
|
+
var result = getNumberHashCode(this.w2o_1);
|
|
7300
7299
|
result = imul(result, 31) + getNumberHashCode(this.x2o_1) | 0;
|
|
7301
7300
|
result = imul(result, 31) + getNumberHashCode(this.y2o_1) | 0;
|
|
7302
7301
|
result = imul(result, 31) + getNumberHashCode(this.z2o_1) | 0;
|
|
@@ -7310,6 +7309,7 @@
|
|
|
7310
7309
|
result = imul(result, 31) + getNumberHashCode(this.h2p_1) | 0;
|
|
7311
7310
|
result = imul(result, 31) + getNumberHashCode(this.i2p_1) | 0;
|
|
7312
7311
|
result = imul(result, 31) + getNumberHashCode(this.j2p_1) | 0;
|
|
7312
|
+
result = imul(result, 31) + getNumberHashCode(this.k2p_1) | 0;
|
|
7313
7313
|
return result;
|
|
7314
7314
|
};
|
|
7315
7315
|
protoOf(TunnelDetectorOptions).equals = function (other) {
|
|
@@ -7317,8 +7317,6 @@
|
|
|
7317
7317
|
return true;
|
|
7318
7318
|
if (!(other instanceof TunnelDetectorOptions))
|
|
7319
7319
|
return false;
|
|
7320
|
-
if (!equals(this.v2o_1, other.v2o_1))
|
|
7321
|
-
return false;
|
|
7322
7320
|
if (!equals(this.w2o_1, other.w2o_1))
|
|
7323
7321
|
return false;
|
|
7324
7322
|
if (!equals(this.x2o_1, other.x2o_1))
|
|
@@ -7347,6 +7345,8 @@
|
|
|
7347
7345
|
return false;
|
|
7348
7346
|
if (!equals(this.j2p_1, other.j2p_1))
|
|
7349
7347
|
return false;
|
|
7348
|
+
if (!equals(this.k2p_1, other.k2p_1))
|
|
7349
|
+
return false;
|
|
7350
7350
|
return true;
|
|
7351
7351
|
};
|
|
7352
7352
|
//region block: init
|