@glandais/vcyclist-engine 6.9.0 → 6.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fit-kotlin-sdk.js +3706 -3706
- package/kotlin-kotlin-stdlib.js +9 -9
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
- package/vcyclist-elevation.js +675 -692
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +1470 -1470
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +177 -177
- package/vcyclist-gpx.js +1245 -1189
- package/vcyclist-gpx.js.map +1 -1
- package/xmlutil-core.js +2393 -2393
package/vcyclist-elevation.js
CHANGED
|
@@ -1236,7 +1236,7 @@
|
|
|
1236
1236
|
var tile = suspendResult;
|
|
1237
1237
|
if (!(this.k14_1 == null) && tile.f16_1)
|
|
1238
1238
|
this.k14_1.d13_1 = true;
|
|
1239
|
-
return tile.
|
|
1239
|
+
return tile.g16(this.j14_1);
|
|
1240
1240
|
case 2:
|
|
1241
1241
|
throw this.m7_1;
|
|
1242
1242
|
}
|
|
@@ -1278,16 +1278,16 @@
|
|
|
1278
1278
|
this.i11_1 = 0;
|
|
1279
1279
|
this.j11_1 = 15;
|
|
1280
1280
|
}
|
|
1281
|
-
protoOf(ElevationFunctions).
|
|
1281
|
+
protoOf(ElevationFunctions).h16 = function (degrees) {
|
|
1282
1282
|
return degrees * 0.017453292519943295;
|
|
1283
1283
|
};
|
|
1284
|
-
protoOf(ElevationFunctions).
|
|
1284
|
+
protoOf(ElevationFunctions).i16 = function (lat) {
|
|
1285
1285
|
return lat >= -85.0511 && lat <= 85.0511;
|
|
1286
1286
|
};
|
|
1287
|
-
protoOf(ElevationFunctions).
|
|
1287
|
+
protoOf(ElevationFunctions).j16 = function (lon) {
|
|
1288
1288
|
return -180.0 <= lon ? lon <= 180.0 : false;
|
|
1289
1289
|
};
|
|
1290
|
-
protoOf(ElevationFunctions).
|
|
1290
|
+
protoOf(ElevationFunctions).k16 = function (zoom) {
|
|
1291
1291
|
return 0 <= zoom ? zoom <= 15 : false;
|
|
1292
1292
|
};
|
|
1293
1293
|
protoOf(ElevationFunctions).t15 = function (pixel, tileSize) {
|
|
@@ -1329,23 +1329,23 @@
|
|
|
1329
1329
|
}
|
|
1330
1330
|
return new Pixel(new TileCoordinates(tileX, tileY, z), x, y);
|
|
1331
1331
|
};
|
|
1332
|
-
protoOf(ElevationFunctions).
|
|
1332
|
+
protoOf(ElevationFunctions).l16 = function (coords, z) {
|
|
1333
1333
|
// Inline function 'kotlin.require' call
|
|
1334
|
-
if (!this.
|
|
1334
|
+
if (!this.i16(coords.xz())) {
|
|
1335
1335
|
var message = 'Invalid latitude: ' + formatNumber_0(ElevationFunctions_instance, coords.xz()) + '. Must be between -85.0511 and 85.0511';
|
|
1336
1336
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1337
1337
|
}
|
|
1338
1338
|
// Inline function 'kotlin.require' call
|
|
1339
|
-
if (!this.
|
|
1339
|
+
if (!this.j16(coords.yz())) {
|
|
1340
1340
|
var message_0 = 'Invalid longitude: ' + formatNumber_0(ElevationFunctions_instance, coords.yz()) + '. Must be between -180 and 180';
|
|
1341
1341
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1342
1342
|
}
|
|
1343
1343
|
// Inline function 'kotlin.require' call
|
|
1344
|
-
if (!this.
|
|
1344
|
+
if (!this.k16(z)) {
|
|
1345
1345
|
var message_1 = 'Invalid zoom level: ' + z + '. Must be between 0 and 15';
|
|
1346
1346
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1347
1347
|
}
|
|
1348
|
-
var lat = this.
|
|
1348
|
+
var lat = this.h16(coords.xz());
|
|
1349
1349
|
var n = 1 << z;
|
|
1350
1350
|
var xFloat = (coords.yz() + 180.0) / 360.0 * n;
|
|
1351
1351
|
// Inline function 'kotlin.math.tan' call
|
|
@@ -1364,26 +1364,26 @@
|
|
|
1364
1364
|
return new TileCoordinatesFloat(x_0, y, xFloat, yFloat, z);
|
|
1365
1365
|
};
|
|
1366
1366
|
protoOf(ElevationFunctions).k11 = function (coords, z) {
|
|
1367
|
-
var tile = this.
|
|
1368
|
-
return new TileCoordinates(tile.
|
|
1367
|
+
var tile = this.l16(coords, z);
|
|
1368
|
+
return new TileCoordinates(tile.m16_1, tile.n16_1, tile.q16_1);
|
|
1369
1369
|
};
|
|
1370
1370
|
protoOf(ElevationFunctions).o15 = function (coords, z, tileSize) {
|
|
1371
|
-
var tile = this.
|
|
1371
|
+
var tile = this.l16(coords, z);
|
|
1372
1372
|
// Inline function 'kotlin.math.floor' call
|
|
1373
|
-
var x = (tile.
|
|
1373
|
+
var x = (tile.o16_1 - tile.m16_1) * tileSize;
|
|
1374
1374
|
var tmp$ret$0 = Math.floor(x);
|
|
1375
1375
|
var px = coerceIn_1(numberToInt(tmp$ret$0), 0, tileSize - 1 | 0);
|
|
1376
1376
|
// Inline function 'kotlin.math.floor' call
|
|
1377
|
-
var x_0 = (tile.
|
|
1377
|
+
var x_0 = (tile.p16_1 - tile.n16_1) * tileSize;
|
|
1378
1378
|
var tmp$ret$1 = Math.floor(x_0);
|
|
1379
1379
|
var py = coerceIn_1(numberToInt(tmp$ret$1), 0, tileSize - 1 | 0);
|
|
1380
|
-
return new Pixel(new TileCoordinates(tile.
|
|
1380
|
+
return new Pixel(new TileCoordinates(tile.m16_1, tile.n16_1, z), px, py);
|
|
1381
1381
|
};
|
|
1382
1382
|
protoOf(ElevationFunctions).p15 = function (coords, z, tileSize) {
|
|
1383
|
-
var tile = this.
|
|
1384
|
-
var px = (tile.
|
|
1385
|
-
var py = (tile.
|
|
1386
|
-
return new PixelFloat(new TileCoordinates(tile.
|
|
1383
|
+
var tile = this.l16(coords, z);
|
|
1384
|
+
var px = (tile.o16_1 - tile.m16_1) * tileSize;
|
|
1385
|
+
var py = (tile.p16_1 - tile.n16_1) * tileSize;
|
|
1386
|
+
return new PixelFloat(new TileCoordinates(tile.m16_1, tile.n16_1, z), px, py);
|
|
1387
1387
|
};
|
|
1388
1388
|
var ElevationFunctions_instance;
|
|
1389
1389
|
function ElevationFunctions_getInstance() {
|
|
@@ -1412,18 +1412,18 @@
|
|
|
1412
1412
|
return tmp.r7();
|
|
1413
1413
|
}
|
|
1414
1414
|
function ElevationProvider$calculator$slambda(this$0, resultContinuation) {
|
|
1415
|
-
this.
|
|
1415
|
+
this.m17_1 = this$0;
|
|
1416
1416
|
CoroutineImpl.call(this, resultContinuation);
|
|
1417
1417
|
}
|
|
1418
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1419
|
-
var tmp = this.
|
|
1418
|
+
protoOf(ElevationProvider$calculator$slambda).p17 = function (coords, interpolation, $completion) {
|
|
1419
|
+
var tmp = this.q17(coords, interpolation, $completion);
|
|
1420
1420
|
tmp.l7_1 = Unit_instance;
|
|
1421
1421
|
tmp.m7_1 = null;
|
|
1422
1422
|
return tmp.r7();
|
|
1423
1423
|
};
|
|
1424
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1424
|
+
protoOf(ElevationProvider$calculator$slambda).r17 = function (p1, p2, $completion) {
|
|
1425
1425
|
var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
|
|
1426
|
-
return this.
|
|
1426
|
+
return this.p17(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
|
|
1427
1427
|
};
|
|
1428
1428
|
protoOf(ElevationProvider$calculator$slambda).r7 = function () {
|
|
1429
1429
|
var suspendResult = this.l7_1;
|
|
@@ -1434,7 +1434,7 @@
|
|
|
1434
1434
|
case 0:
|
|
1435
1435
|
this.k7_1 = 2;
|
|
1436
1436
|
this.j7_1 = 1;
|
|
1437
|
-
suspendResult = this.
|
|
1437
|
+
suspendResult = this.m17_1.u17_1.b18(this.n17_1.xz(), this.n17_1.yz(), this.o17_1, this);
|
|
1438
1438
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1439
1439
|
return suspendResult;
|
|
1440
1440
|
}
|
|
@@ -1456,30 +1456,30 @@
|
|
|
1456
1456
|
}
|
|
1457
1457
|
while (true);
|
|
1458
1458
|
};
|
|
1459
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1460
|
-
var i = new ElevationProvider$calculator$slambda(this.
|
|
1461
|
-
i.
|
|
1462
|
-
i.
|
|
1459
|
+
protoOf(ElevationProvider$calculator$slambda).q17 = function (coords, interpolation, completion) {
|
|
1460
|
+
var i = new ElevationProvider$calculator$slambda(this.m17_1, completion);
|
|
1461
|
+
i.n17_1 = coords;
|
|
1462
|
+
i.o17_1 = interpolation;
|
|
1463
1463
|
return i;
|
|
1464
1464
|
};
|
|
1465
1465
|
function ElevationProvider$calculator$slambda_0(this$0, resultContinuation) {
|
|
1466
1466
|
var i = new ElevationProvider$calculator$slambda(this$0, resultContinuation);
|
|
1467
1467
|
return constructCallableReference(function (coords, interpolation, $completion) {
|
|
1468
|
-
return i.
|
|
1468
|
+
return i.p17(coords, interpolation, $completion);
|
|
1469
1469
|
}, 2);
|
|
1470
1470
|
}
|
|
1471
1471
|
function ElevationProvider$calculator$slambda_1(resultContinuation) {
|
|
1472
1472
|
CoroutineImpl.call(this, resultContinuation);
|
|
1473
1473
|
}
|
|
1474
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1475
|
-
var tmp = this.
|
|
1474
|
+
protoOf(ElevationProvider$calculator$slambda_1).p17 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
|
|
1475
|
+
var tmp = this.q17(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
|
|
1476
1476
|
tmp.l7_1 = Unit_instance;
|
|
1477
1477
|
tmp.m7_1 = null;
|
|
1478
1478
|
return tmp.r7();
|
|
1479
1479
|
};
|
|
1480
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1480
|
+
protoOf(ElevationProvider$calculator$slambda_1).r17 = function (p1, p2, $completion) {
|
|
1481
1481
|
var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
|
|
1482
|
-
return this.
|
|
1482
|
+
return this.p17(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
|
|
1483
1483
|
};
|
|
1484
1484
|
protoOf(ElevationProvider$calculator$slambda_1).r7 = function () {
|
|
1485
1485
|
var suspendResult = this.l7_1;
|
|
@@ -1498,31 +1498,31 @@
|
|
|
1498
1498
|
}
|
|
1499
1499
|
while (true);
|
|
1500
1500
|
};
|
|
1501
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1501
|
+
protoOf(ElevationProvider$calculator$slambda_1).q17 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, completion) {
|
|
1502
1502
|
var i = new ElevationProvider$calculator$slambda_1(completion);
|
|
1503
|
-
i.
|
|
1504
|
-
i.
|
|
1503
|
+
i.k18_1 = _unused_var__etf5q3;
|
|
1504
|
+
i.l18_1 = _unused_var__etf5q3_0;
|
|
1505
1505
|
return i;
|
|
1506
1506
|
};
|
|
1507
1507
|
function ElevationProvider$calculator$slambda_2(resultContinuation) {
|
|
1508
1508
|
var i = new ElevationProvider$calculator$slambda_1(resultContinuation);
|
|
1509
1509
|
return constructCallableReference(function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
|
|
1510
|
-
return i.
|
|
1510
|
+
return i.p17(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
|
|
1511
1511
|
}, 2);
|
|
1512
1512
|
}
|
|
1513
1513
|
function ElevationProvider$setElevationsWithOrigin$slambda(this$0, $interpolation, resultContinuation) {
|
|
1514
|
-
this.
|
|
1515
|
-
this.
|
|
1514
|
+
this.u18_1 = this$0;
|
|
1515
|
+
this.v18_1 = $interpolation;
|
|
1516
1516
|
CoroutineImpl.call(this, resultContinuation);
|
|
1517
1517
|
}
|
|
1518
|
-
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).
|
|
1518
|
+
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).x18 = function (it, $completion) {
|
|
1519
1519
|
var tmp = this.wz(it, $completion);
|
|
1520
1520
|
tmp.l7_1 = Unit_instance;
|
|
1521
1521
|
tmp.m7_1 = null;
|
|
1522
1522
|
return tmp.r7();
|
|
1523
1523
|
};
|
|
1524
1524
|
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).z7 = function (p1, $completion) {
|
|
1525
|
-
return this.
|
|
1525
|
+
return this.x18((!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE(), $completion);
|
|
1526
1526
|
};
|
|
1527
1527
|
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).r7 = function () {
|
|
1528
1528
|
var suspendResult = this.l7_1;
|
|
@@ -1533,7 +1533,7 @@
|
|
|
1533
1533
|
case 0:
|
|
1534
1534
|
this.k7_1 = 2;
|
|
1535
1535
|
this.j7_1 = 1;
|
|
1536
|
-
suspendResult = sample(this.
|
|
1536
|
+
suspendResult = sample(this.u18_1, this.w18_1, this.v18_1, this);
|
|
1537
1537
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1538
1538
|
return suspendResult;
|
|
1539
1539
|
}
|
|
@@ -1556,21 +1556,21 @@
|
|
|
1556
1556
|
while (true);
|
|
1557
1557
|
};
|
|
1558
1558
|
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).wz = function (it, completion) {
|
|
1559
|
-
var i = new ElevationProvider$setElevationsWithOrigin$slambda(this.
|
|
1560
|
-
i.
|
|
1559
|
+
var i = new ElevationProvider$setElevationsWithOrigin$slambda(this.u18_1, this.v18_1, completion);
|
|
1560
|
+
i.w18_1 = it;
|
|
1561
1561
|
return i;
|
|
1562
1562
|
};
|
|
1563
1563
|
function ElevationProvider$setElevationsWithOrigin$slambda_0(this$0, $interpolation, resultContinuation) {
|
|
1564
1564
|
var i = new ElevationProvider$setElevationsWithOrigin$slambda(this$0, $interpolation, resultContinuation);
|
|
1565
1565
|
return constructCallableReference(function (it, $completion) {
|
|
1566
|
-
return i.
|
|
1566
|
+
return i.x18(it, $completion);
|
|
1567
1567
|
}, 1);
|
|
1568
1568
|
}
|
|
1569
1569
|
function $sampleCOROUTINE$(_this__u8e3s4, coords, interpolation, resultContinuation) {
|
|
1570
1570
|
CoroutineImpl.call(this, resultContinuation);
|
|
1571
|
-
this.
|
|
1572
|
-
this.
|
|
1573
|
-
this.
|
|
1571
|
+
this.z16_1 = _this__u8e3s4;
|
|
1572
|
+
this.a17_1 = coords;
|
|
1573
|
+
this.b17_1 = interpolation;
|
|
1574
1574
|
}
|
|
1575
1575
|
protoOf($sampleCOROUTINE$).r7 = function () {
|
|
1576
1576
|
var suspendResult = this.l7_1;
|
|
@@ -1580,9 +1580,9 @@
|
|
|
1580
1580
|
switch (tmp) {
|
|
1581
1581
|
case 0:
|
|
1582
1582
|
this.k7_1 = 4;
|
|
1583
|
-
this.
|
|
1583
|
+
this.c17_1 = new UnreadableFlag();
|
|
1584
1584
|
this.j7_1 = 1;
|
|
1585
|
-
suspendResult = this.
|
|
1585
|
+
suspendResult = this.z16_1.z17_1.y14(this.a17_1, this.z16_1.s17_1.y18_1, this.b17_1, this.c17_1, this);
|
|
1586
1586
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1587
1587
|
return suspendResult;
|
|
1588
1588
|
}
|
|
@@ -1591,18 +1591,18 @@
|
|
|
1591
1591
|
case 1:
|
|
1592
1592
|
var own = suspendResult;
|
|
1593
1593
|
if (!isNaN_0(own)) {
|
|
1594
|
-
var origin = Companion_getInstance_1().
|
|
1595
|
-
return new TerrainSample(this.
|
|
1594
|
+
var origin = Companion_getInstance_1().g19(this.z16_1.s17_1, this.z16_1.x17_1, this.a17_1.xz(), this.a17_1.yz());
|
|
1595
|
+
return new TerrainSample(this.a17_1.xz(), this.a17_1.yz(), own, origin, false);
|
|
1596
1596
|
}
|
|
1597
1597
|
|
|
1598
|
-
var tmp0_safe_receiver = this.
|
|
1598
|
+
var tmp0_safe_receiver = this.z16_1.u17_1;
|
|
1599
1599
|
if (tmp0_safe_receiver == null) {
|
|
1600
|
-
this.
|
|
1600
|
+
this.d17_1 = null;
|
|
1601
1601
|
this.j7_1 = 3;
|
|
1602
1602
|
continue $sm;
|
|
1603
1603
|
} else {
|
|
1604
1604
|
this.j7_1 = 2;
|
|
1605
|
-
suspendResult = sample(tmp0_safe_receiver, this.
|
|
1605
|
+
suspendResult = sample(tmp0_safe_receiver, this.a17_1, this.b17_1, this);
|
|
1606
1606
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1607
1607
|
return suspendResult;
|
|
1608
1608
|
}
|
|
@@ -1610,14 +1610,14 @@
|
|
|
1610
1610
|
}
|
|
1611
1611
|
|
|
1612
1612
|
case 2:
|
|
1613
|
-
this.
|
|
1613
|
+
this.d17_1 = suspendResult;
|
|
1614
1614
|
this.j7_1 = 3;
|
|
1615
1615
|
continue $sm;
|
|
1616
1616
|
case 3:
|
|
1617
|
-
var next = this.
|
|
1617
|
+
var next = this.d17_1;
|
|
1618
1618
|
if (!(next == null))
|
|
1619
|
-
return this.
|
|
1620
|
-
return new TerrainSample(this.
|
|
1619
|
+
return this.c17_1.d13_1 ? next.m19(VOID, VOID, VOID, VOID, true) : next;
|
|
1620
|
+
return new TerrainSample(this.a17_1.xz(), this.a17_1.yz(), this.z16_1.v17_1 ? NaN : 0.0, TerrainOrigin_NONE_getInstance(), this.c17_1.d13_1);
|
|
1621
1621
|
case 4:
|
|
1622
1622
|
throw this.m7_1;
|
|
1623
1623
|
}
|
|
@@ -1633,101 +1633,101 @@
|
|
|
1633
1633
|
while (true);
|
|
1634
1634
|
};
|
|
1635
1635
|
function ElevationProvider(config, fetcher, fallback, keepNoData, surfaceModel, declaredSource) {
|
|
1636
|
-
this.
|
|
1637
|
-
this.
|
|
1638
|
-
this.
|
|
1639
|
-
this.
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1636
|
+
this.s17_1 = config;
|
|
1637
|
+
this.t17_1 = fetcher;
|
|
1638
|
+
this.u17_1 = fallback;
|
|
1639
|
+
this.v17_1 = keepNoData;
|
|
1640
|
+
this.w17_1 = surfaceModel;
|
|
1641
|
+
this.x17_1 = declaredSource;
|
|
1642
1642
|
// Inline function 'kotlin.require' call
|
|
1643
|
-
if (!ElevationFunctions_instance.
|
|
1644
|
-
var message = 'Invalid zoom level: ' + this.
|
|
1643
|
+
if (!ElevationFunctions_instance.k16(this.s17_1.y18_1)) {
|
|
1644
|
+
var message = 'Invalid zoom level: ' + this.s17_1.y18_1 + '. Must be an integer between ' + '0 and 15';
|
|
1645
1645
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1646
1646
|
}
|
|
1647
1647
|
// Inline function 'kotlin.require' call
|
|
1648
|
-
if (!(this.
|
|
1649
|
-
var message_0 = 'Invalid cache size: ' + this.
|
|
1648
|
+
if (!(this.s17_1.z18_1 > 0)) {
|
|
1649
|
+
var message_0 = 'Invalid cache size: ' + this.s17_1.z18_1 + '. Must be a positive integer';
|
|
1650
1650
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1651
1651
|
}
|
|
1652
1652
|
// Inline function 'kotlin.require' call
|
|
1653
|
-
if (!(this.
|
|
1654
|
-
var message_1 = 'Invalid tile size: ' + this.
|
|
1653
|
+
if (!(this.s17_1.b19_1 > 0 && (this.s17_1.b19_1 & (this.s17_1.b19_1 - 1 | 0)) === 0)) {
|
|
1654
|
+
var message_1 = 'Invalid tile size: ' + this.s17_1.b19_1 + '. Must be a positive power of 2';
|
|
1655
1655
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1656
1656
|
}
|
|
1657
1657
|
// Inline function 'kotlin.require' call
|
|
1658
|
-
if (!(this.
|
|
1659
|
-
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.
|
|
1658
|
+
if (!(this.s17_1.e19_1 >= 0)) {
|
|
1659
|
+
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.s17_1.e19_1 + '. Must be 0 (no limit) or positive';
|
|
1660
1660
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
1661
1661
|
}
|
|
1662
1662
|
var tmp = this;
|
|
1663
1663
|
// Inline function 'kotlin.apply' call
|
|
1664
|
-
var this_0 = new TileManager(this.
|
|
1665
|
-
if (!(this.
|
|
1666
|
-
this_0.z15_1 = new UnreadableTiles(this.
|
|
1667
|
-
tmp.
|
|
1664
|
+
var this_0 = new TileManager(this.s17_1.a19_1, this.s17_1.z18_1, this.t17_1);
|
|
1665
|
+
if (!(this.u17_1 == null))
|
|
1666
|
+
this_0.z15_1 = new UnreadableTiles(this.s17_1.a19_1, this.s17_1.b19_1);
|
|
1667
|
+
tmp.y17_1 = this_0;
|
|
1668
1668
|
var tmp_0 = this;
|
|
1669
1669
|
var tmp_1;
|
|
1670
|
-
if (!(this.
|
|
1670
|
+
if (!(this.u17_1 == null)) {
|
|
1671
1671
|
tmp_1 = ElevationProvider$calculator$slambda_0(this, null);
|
|
1672
|
-
} else if (this.
|
|
1672
|
+
} else if (this.v17_1) {
|
|
1673
1673
|
tmp_1 = ElevationProvider$calculator$slambda_2(null);
|
|
1674
1674
|
} else {
|
|
1675
1675
|
tmp_1 = null;
|
|
1676
1676
|
}
|
|
1677
|
-
tmp_0.
|
|
1678
|
-
this.
|
|
1677
|
+
tmp_0.z17_1 = new ElevationCalculator(this.y17_1, this.s17_1.b19_1, tmp_1);
|
|
1678
|
+
this.a18_1 = new BatchCalculator(this.z17_1);
|
|
1679
1679
|
}
|
|
1680
|
-
protoOf(ElevationProvider).
|
|
1680
|
+
protoOf(ElevationProvider).n19 = function (other) {
|
|
1681
1681
|
// Inline function 'kotlin.require' call
|
|
1682
|
-
if (!!this.
|
|
1682
|
+
if (!!this.v17_1) {
|
|
1683
1683
|
var message = 'a raw IGN LiDAR HD layer takes no fallback: its no-data must stay NaN';
|
|
1684
1684
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1685
1685
|
}
|
|
1686
|
-
return new ElevationProvider(this.
|
|
1686
|
+
return new ElevationProvider(this.s17_1, this.t17_1, other, false, this.w17_1, this.x17_1);
|
|
1687
1687
|
};
|
|
1688
|
-
protoOf(ElevationProvider).
|
|
1688
|
+
protoOf(ElevationProvider).o19 = function (surface) {
|
|
1689
1689
|
// Inline function 'kotlin.require' call
|
|
1690
|
-
if (!(surface == null || surface.
|
|
1690
|
+
if (!(surface == null || surface.v17_1)) {
|
|
1691
1691
|
var message = 'a surface model must keep its no-data as NaN';
|
|
1692
1692
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1693
1693
|
}
|
|
1694
1694
|
// Inline function 'kotlin.require' call
|
|
1695
|
-
if (!!this.
|
|
1695
|
+
if (!!this.v17_1) {
|
|
1696
1696
|
var message_0 = 'a raw IGN LiDAR HD layer carries no surface model';
|
|
1697
1697
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1698
1698
|
}
|
|
1699
|
-
return new ElevationProvider(this.
|
|
1699
|
+
return new ElevationProvider(this.s17_1, this.t17_1, this.u17_1, false, surface, this.x17_1);
|
|
1700
1700
|
};
|
|
1701
|
-
protoOf(ElevationProvider).
|
|
1702
|
-
return this.
|
|
1701
|
+
protoOf(ElevationProvider).p19 = function () {
|
|
1702
|
+
return this.s17_1.c19_1;
|
|
1703
1703
|
};
|
|
1704
|
-
protoOf(ElevationProvider).
|
|
1705
|
-
return this.
|
|
1704
|
+
protoOf(ElevationProvider).b18 = function (latitude, longitude, interpolation, $completion) {
|
|
1705
|
+
return this.z17_1.d10(new LatLon(latitude, longitude), this.s17_1.y18_1, interpolation, $completion);
|
|
1706
1706
|
};
|
|
1707
|
-
protoOf(ElevationProvider).
|
|
1708
|
-
return this.
|
|
1707
|
+
protoOf(ElevationProvider).q19 = function (coordinates, interpolation, $completion) {
|
|
1708
|
+
return this.a18_1.g12(coordinates, this.s17_1.y18_1, interpolation, VOID, $completion);
|
|
1709
1709
|
};
|
|
1710
|
-
protoOf(ElevationProvider).
|
|
1710
|
+
protoOf(ElevationProvider).r19 = function (coordinates, interpolation, $completion, $super) {
|
|
1711
1711
|
interpolation = interpolation === VOID ? true : interpolation;
|
|
1712
|
-
return $super === VOID ? this.
|
|
1712
|
+
return $super === VOID ? this.q19(coordinates, interpolation, $completion) : $super.q19.call(this, coordinates, interpolation, $completion);
|
|
1713
1713
|
};
|
|
1714
|
-
protoOf(ElevationProvider).
|
|
1715
|
-
return this.
|
|
1714
|
+
protoOf(ElevationProvider).s19 = function (coordinates, interpolation, $completion) {
|
|
1715
|
+
return this.a18_1.l12(coordinates, this.s17_1.y18_1, VOID, ElevationProvider$setElevationsWithOrigin$slambda_0(this, interpolation, null), $completion);
|
|
1716
1716
|
};
|
|
1717
|
-
protoOf(ElevationProvider).
|
|
1717
|
+
protoOf(ElevationProvider).t19 = function (coordinates, interpolation, $completion, $super) {
|
|
1718
1718
|
interpolation = interpolation === VOID ? true : interpolation;
|
|
1719
|
-
return $super === VOID ? this.
|
|
1719
|
+
return $super === VOID ? this.s19(coordinates, interpolation, $completion) : $super.s19.call(this, coordinates, interpolation, $completion);
|
|
1720
1720
|
};
|
|
1721
|
-
protoOf(ElevationProvider).
|
|
1722
|
-
return this.
|
|
1721
|
+
protoOf(ElevationProvider).u19 = function (path, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
|
|
1722
|
+
return this.a18_1.m12(path, this.s17_1.y18_1, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
|
|
1723
1723
|
};
|
|
1724
1724
|
function defaultTileFetcher(config) {
|
|
1725
|
-
if (config.
|
|
1725
|
+
if (config.d19_1.equals(TileEncoding_TERRARIUM_getInstance()) && config.e19_1 === 0) {
|
|
1726
1726
|
return fetchAndDecodeTile$ref_1();
|
|
1727
1727
|
}
|
|
1728
|
-
var bytes = pacedTileBytesFetcher(config.
|
|
1728
|
+
var bytes = pacedTileBytesFetcher(config.e19_1);
|
|
1729
1729
|
var tmp;
|
|
1730
|
-
switch (config.
|
|
1730
|
+
switch (config.d19_1.y1_1) {
|
|
1731
1731
|
case 0:
|
|
1732
1732
|
tmp = defaultTileFetcher$slambda_0(bytes, null);
|
|
1733
1733
|
break;
|
|
@@ -1743,24 +1743,24 @@
|
|
|
1743
1743
|
function fetchAndDecodeTile$ref() {
|
|
1744
1744
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
1745
1745
|
}
|
|
1746
|
-
protoOf(fetchAndDecodeTile$ref).
|
|
1746
|
+
protoOf(fetchAndDecodeTile$ref).y19 = function (p0, $completion) {
|
|
1747
1747
|
return fetchAndDecodeTile(p0, $completion);
|
|
1748
1748
|
};
|
|
1749
1749
|
protoOf(fetchAndDecodeTile$ref).z7 = function (p1, $completion) {
|
|
1750
|
-
return this.
|
|
1750
|
+
return this.y19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1751
1751
|
};
|
|
1752
1752
|
function defaultTileFetcher$slambda($bytes, resultContinuation) {
|
|
1753
|
-
this.
|
|
1753
|
+
this.h1a_1 = $bytes;
|
|
1754
1754
|
CoroutineImpl.call(this, resultContinuation);
|
|
1755
1755
|
}
|
|
1756
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1757
|
-
var tmp = this.
|
|
1756
|
+
protoOf(defaultTileFetcher$slambda).y19 = function (url, $completion) {
|
|
1757
|
+
var tmp = this.j1a(url, $completion);
|
|
1758
1758
|
tmp.l7_1 = Unit_instance;
|
|
1759
1759
|
tmp.m7_1 = null;
|
|
1760
1760
|
return tmp.r7();
|
|
1761
1761
|
};
|
|
1762
1762
|
protoOf(defaultTileFetcher$slambda).z7 = function (p1, $completion) {
|
|
1763
|
-
return this.
|
|
1763
|
+
return this.y19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1764
1764
|
};
|
|
1765
1765
|
protoOf(defaultTileFetcher$slambda).r7 = function () {
|
|
1766
1766
|
var suspendResult = this.l7_1;
|
|
@@ -1771,7 +1771,7 @@
|
|
|
1771
1771
|
case 0:
|
|
1772
1772
|
this.k7_1 = 3;
|
|
1773
1773
|
this.j7_1 = 1;
|
|
1774
|
-
suspendResult = this.
|
|
1774
|
+
suspendResult = this.h1a_1(this.i1a_1, this);
|
|
1775
1775
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1776
1776
|
return suspendResult;
|
|
1777
1777
|
}
|
|
@@ -1780,7 +1780,7 @@
|
|
|
1780
1780
|
case 1:
|
|
1781
1781
|
var ARGUMENT = suspendResult;
|
|
1782
1782
|
this.j7_1 = 2;
|
|
1783
|
-
suspendResult = decodeTileBytes(ARGUMENT, this.
|
|
1783
|
+
suspendResult = decodeTileBytes(ARGUMENT, this.i1a_1, this);
|
|
1784
1784
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1785
1785
|
return suspendResult;
|
|
1786
1786
|
}
|
|
@@ -1802,30 +1802,30 @@
|
|
|
1802
1802
|
}
|
|
1803
1803
|
while (true);
|
|
1804
1804
|
};
|
|
1805
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1806
|
-
var i = new defaultTileFetcher$slambda(this.
|
|
1807
|
-
i.
|
|
1805
|
+
protoOf(defaultTileFetcher$slambda).j1a = function (url, completion) {
|
|
1806
|
+
var i = new defaultTileFetcher$slambda(this.h1a_1, completion);
|
|
1807
|
+
i.i1a_1 = url;
|
|
1808
1808
|
return i;
|
|
1809
1809
|
};
|
|
1810
1810
|
function defaultTileFetcher$slambda_0($bytes, resultContinuation) {
|
|
1811
1811
|
var i = new defaultTileFetcher$slambda($bytes, resultContinuation);
|
|
1812
1812
|
return constructCallableReference(function (url, $completion) {
|
|
1813
|
-
return i.
|
|
1813
|
+
return i.y19(url, $completion);
|
|
1814
1814
|
}, 1);
|
|
1815
1815
|
}
|
|
1816
1816
|
function defaultTileFetcher$slambda_1($bytes, $config, resultContinuation) {
|
|
1817
|
-
this.
|
|
1818
|
-
this.
|
|
1817
|
+
this.s1a_1 = $bytes;
|
|
1818
|
+
this.t1a_1 = $config;
|
|
1819
1819
|
CoroutineImpl.call(this, resultContinuation);
|
|
1820
1820
|
}
|
|
1821
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1822
|
-
var tmp = this.
|
|
1821
|
+
protoOf(defaultTileFetcher$slambda_1).y19 = function (url, $completion) {
|
|
1822
|
+
var tmp = this.j1a(url, $completion);
|
|
1823
1823
|
tmp.l7_1 = Unit_instance;
|
|
1824
1824
|
tmp.m7_1 = null;
|
|
1825
1825
|
return tmp.r7();
|
|
1826
1826
|
};
|
|
1827
1827
|
protoOf(defaultTileFetcher$slambda_1).z7 = function (p1, $completion) {
|
|
1828
|
-
return this.
|
|
1828
|
+
return this.y19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1829
1829
|
};
|
|
1830
1830
|
protoOf(defaultTileFetcher$slambda_1).r7 = function () {
|
|
1831
1831
|
var suspendResult = this.l7_1;
|
|
@@ -1836,7 +1836,7 @@
|
|
|
1836
1836
|
case 0:
|
|
1837
1837
|
this.k7_1 = 2;
|
|
1838
1838
|
this.j7_1 = 1;
|
|
1839
|
-
suspendResult = this.
|
|
1839
|
+
suspendResult = this.s1a_1(this.u1a_1, this);
|
|
1840
1840
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1841
1841
|
return suspendResult;
|
|
1842
1842
|
}
|
|
@@ -1844,7 +1844,7 @@
|
|
|
1844
1844
|
continue $sm;
|
|
1845
1845
|
case 1:
|
|
1846
1846
|
var ARGUMENT = suspendResult;
|
|
1847
|
-
return decodeBil32Tile(ARGUMENT, this.
|
|
1847
|
+
return decodeBil32Tile(ARGUMENT, this.t1a_1.b19_1, this.u1a_1);
|
|
1848
1848
|
case 2:
|
|
1849
1849
|
throw this.m7_1;
|
|
1850
1850
|
}
|
|
@@ -1859,15 +1859,15 @@
|
|
|
1859
1859
|
}
|
|
1860
1860
|
while (true);
|
|
1861
1861
|
};
|
|
1862
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1863
|
-
var i = new defaultTileFetcher$slambda_1(this.
|
|
1864
|
-
i.
|
|
1862
|
+
protoOf(defaultTileFetcher$slambda_1).j1a = function (url, completion) {
|
|
1863
|
+
var i = new defaultTileFetcher$slambda_1(this.s1a_1, this.t1a_1, completion);
|
|
1864
|
+
i.u1a_1 = url;
|
|
1865
1865
|
return i;
|
|
1866
1866
|
};
|
|
1867
1867
|
function defaultTileFetcher$slambda_2($bytes, $config, resultContinuation) {
|
|
1868
1868
|
var i = new defaultTileFetcher$slambda_1($bytes, $config, resultContinuation);
|
|
1869
1869
|
return constructCallableReference(function (url, $completion) {
|
|
1870
|
-
return i.
|
|
1870
|
+
return i.y19(url, $completion);
|
|
1871
1871
|
}, 1);
|
|
1872
1872
|
}
|
|
1873
1873
|
function defaultTileFetcher$ref() {
|
|
@@ -1883,38 +1883,38 @@
|
|
|
1883
1883
|
attribution = attribution === VOID ? new Attribution('Mapterhorn elevation data. See mapterhorn.com/attribution/ for details.', 'https://mapterhorn.com/attribution/') : attribution;
|
|
1884
1884
|
encoding = encoding === VOID ? TileEncoding_TERRARIUM_getInstance() : encoding;
|
|
1885
1885
|
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? 0 : maxRequestsPerSecond;
|
|
1886
|
-
this.
|
|
1887
|
-
this.
|
|
1888
|
-
this.
|
|
1889
|
-
this.
|
|
1890
|
-
this.
|
|
1891
|
-
this.
|
|
1892
|
-
this.
|
|
1893
|
-
}
|
|
1894
|
-
protoOf(ElevationProviderConfig).
|
|
1886
|
+
this.y18_1 = zoomLevel;
|
|
1887
|
+
this.z18_1 = cacheSize;
|
|
1888
|
+
this.a19_1 = tileUrlTemplate;
|
|
1889
|
+
this.b19_1 = tileSize;
|
|
1890
|
+
this.c19_1 = attribution;
|
|
1891
|
+
this.d19_1 = encoding;
|
|
1892
|
+
this.e19_1 = maxRequestsPerSecond;
|
|
1893
|
+
}
|
|
1894
|
+
protoOf(ElevationProviderConfig).v1a = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) {
|
|
1895
1895
|
return new ElevationProviderConfig(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1896
1896
|
};
|
|
1897
|
-
protoOf(ElevationProviderConfig).
|
|
1898
|
-
zoomLevel = zoomLevel === VOID ? this.
|
|
1899
|
-
cacheSize = cacheSize === VOID ? this.
|
|
1900
|
-
tileUrlTemplate = tileUrlTemplate === VOID ? this.
|
|
1901
|
-
tileSize = tileSize === VOID ? this.
|
|
1902
|
-
attribution = attribution === VOID ? this.
|
|
1903
|
-
encoding = encoding === VOID ? this.
|
|
1904
|
-
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.
|
|
1905
|
-
return $super === VOID ? this.
|
|
1897
|
+
protoOf(ElevationProviderConfig).w1a = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond, $super) {
|
|
1898
|
+
zoomLevel = zoomLevel === VOID ? this.y18_1 : zoomLevel;
|
|
1899
|
+
cacheSize = cacheSize === VOID ? this.z18_1 : cacheSize;
|
|
1900
|
+
tileUrlTemplate = tileUrlTemplate === VOID ? this.a19_1 : tileUrlTemplate;
|
|
1901
|
+
tileSize = tileSize === VOID ? this.b19_1 : tileSize;
|
|
1902
|
+
attribution = attribution === VOID ? this.c19_1 : attribution;
|
|
1903
|
+
encoding = encoding === VOID ? this.d19_1 : encoding;
|
|
1904
|
+
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.e19_1 : maxRequestsPerSecond;
|
|
1905
|
+
return $super === VOID ? this.v1a(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) : $super.v1a.call(this, zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1906
1906
|
};
|
|
1907
1907
|
protoOf(ElevationProviderConfig).toString = function () {
|
|
1908
|
-
return 'ElevationProviderConfig(zoomLevel=' + this.
|
|
1908
|
+
return 'ElevationProviderConfig(zoomLevel=' + this.y18_1 + ', cacheSize=' + this.z18_1 + ', tileUrlTemplate=' + this.a19_1 + ', tileSize=' + this.b19_1 + ', attribution=' + this.c19_1.toString() + ', encoding=' + this.d19_1.toString() + ', maxRequestsPerSecond=' + this.e19_1 + ')';
|
|
1909
1909
|
};
|
|
1910
1910
|
protoOf(ElevationProviderConfig).hashCode = function () {
|
|
1911
|
-
var result = this.
|
|
1911
|
+
var result = this.y18_1;
|
|
1912
|
+
result = imul(result, 31) + this.z18_1 | 0;
|
|
1913
|
+
result = imul(result, 31) + getStringHashCode(this.a19_1) | 0;
|
|
1912
1914
|
result = imul(result, 31) + this.b19_1 | 0;
|
|
1913
|
-
result = imul(result, 31) +
|
|
1914
|
-
result = imul(result, 31) + this.d19_1 | 0;
|
|
1915
|
-
result = imul(result, 31) + this.e19_1
|
|
1916
|
-
result = imul(result, 31) + this.f19_1.hashCode() | 0;
|
|
1917
|
-
result = imul(result, 31) + this.g19_1 | 0;
|
|
1915
|
+
result = imul(result, 31) + this.c19_1.hashCode() | 0;
|
|
1916
|
+
result = imul(result, 31) + this.d19_1.hashCode() | 0;
|
|
1917
|
+
result = imul(result, 31) + this.e19_1 | 0;
|
|
1918
1918
|
return result;
|
|
1919
1919
|
};
|
|
1920
1920
|
protoOf(ElevationProviderConfig).equals = function (other) {
|
|
@@ -1922,33 +1922,33 @@
|
|
|
1922
1922
|
return true;
|
|
1923
1923
|
if (!(other instanceof ElevationProviderConfig))
|
|
1924
1924
|
return false;
|
|
1925
|
-
if (!(this.
|
|
1925
|
+
if (!(this.y18_1 === other.y18_1))
|
|
1926
1926
|
return false;
|
|
1927
|
-
if (!(this.
|
|
1927
|
+
if (!(this.z18_1 === other.z18_1))
|
|
1928
1928
|
return false;
|
|
1929
|
-
if (!(this.
|
|
1929
|
+
if (!(this.a19_1 === other.a19_1))
|
|
1930
1930
|
return false;
|
|
1931
|
-
if (!(this.
|
|
1931
|
+
if (!(this.b19_1 === other.b19_1))
|
|
1932
1932
|
return false;
|
|
1933
|
-
if (!this.
|
|
1933
|
+
if (!this.c19_1.equals(other.c19_1))
|
|
1934
1934
|
return false;
|
|
1935
|
-
if (!this.
|
|
1935
|
+
if (!this.d19_1.equals(other.d19_1))
|
|
1936
1936
|
return false;
|
|
1937
|
-
if (!(this.
|
|
1937
|
+
if (!(this.e19_1 === other.e19_1))
|
|
1938
1938
|
return false;
|
|
1939
1939
|
return true;
|
|
1940
1940
|
};
|
|
1941
1941
|
function Attribution(text, url) {
|
|
1942
1942
|
url = url === VOID ? null : url;
|
|
1943
|
-
this.
|
|
1944
|
-
this.
|
|
1943
|
+
this.x1a_1 = text;
|
|
1944
|
+
this.y1a_1 = url;
|
|
1945
1945
|
}
|
|
1946
1946
|
protoOf(Attribution).toString = function () {
|
|
1947
|
-
return 'Attribution(text=' + this.
|
|
1947
|
+
return 'Attribution(text=' + this.x1a_1 + ', url=' + this.y1a_1 + ')';
|
|
1948
1948
|
};
|
|
1949
1949
|
protoOf(Attribution).hashCode = function () {
|
|
1950
|
-
var result = getStringHashCode(this.
|
|
1951
|
-
result = imul(result, 31) + (this.
|
|
1950
|
+
var result = getStringHashCode(this.x1a_1);
|
|
1951
|
+
result = imul(result, 31) + (this.y1a_1 == null ? 0 : getStringHashCode(this.y1a_1)) | 0;
|
|
1952
1952
|
return result;
|
|
1953
1953
|
};
|
|
1954
1954
|
protoOf(Attribution).equals = function (other) {
|
|
@@ -1956,9 +1956,9 @@
|
|
|
1956
1956
|
return true;
|
|
1957
1957
|
if (!(other instanceof Attribution))
|
|
1958
1958
|
return false;
|
|
1959
|
-
if (!(this.
|
|
1959
|
+
if (!(this.x1a_1 === other.x1a_1))
|
|
1960
1960
|
return false;
|
|
1961
|
-
if (!(this.
|
|
1961
|
+
if (!(this.y1a_1 == other.y1a_1))
|
|
1962
1962
|
return false;
|
|
1963
1963
|
return true;
|
|
1964
1964
|
};
|
|
@@ -1986,7 +1986,7 @@
|
|
|
1986
1986
|
tmp = tmp + 1 | 0;
|
|
1987
1987
|
}
|
|
1988
1988
|
var elevations = tmp_1;
|
|
1989
|
-
var smoothed = this.
|
|
1989
|
+
var smoothed = this.z1a(distances, elevations, windowSize);
|
|
1990
1990
|
// Inline function 'kotlin.collections.List' call
|
|
1991
1991
|
// Inline function 'kotlin.collections.MutableList' call
|
|
1992
1992
|
var size = points.o();
|
|
@@ -2003,7 +2003,7 @@
|
|
|
2003
2003
|
while (inductionVariable < size);
|
|
2004
2004
|
return list;
|
|
2005
2005
|
};
|
|
2006
|
-
protoOf(ElevationSmoother).
|
|
2006
|
+
protoOf(ElevationSmoother).z1a = function (distanceM, elevationM, windowSize) {
|
|
2007
2007
|
// Inline function 'kotlin.require' call
|
|
2008
2008
|
if (!(distanceM.length === elevationM.length)) {
|
|
2009
2009
|
var message = 'distanceM (' + distanceM.length + ') and elevationM (' + elevationM.length + ') must have the same length';
|
|
@@ -2102,10 +2102,10 @@
|
|
|
2102
2102
|
var ElevationSource_IGN_LIDAR_HD_instance;
|
|
2103
2103
|
function Companion() {
|
|
2104
2104
|
Companion_instance_0 = this;
|
|
2105
|
-
this.
|
|
2106
|
-
this.
|
|
2105
|
+
this.a1b_1 = ElevationSource_IGN_LIDAR_HD_getInstance();
|
|
2106
|
+
this.b1b_1 = ElevationSource_MAPTERHORN_getInstance();
|
|
2107
2107
|
}
|
|
2108
|
-
protoOf(Companion).
|
|
2108
|
+
protoOf(Companion).c1b = function () {
|
|
2109
2109
|
// Inline function 'kotlin.collections.map' call
|
|
2110
2110
|
var this_0 = get_entries();
|
|
2111
2111
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2113,12 +2113,12 @@
|
|
|
2113
2113
|
var _iterator__ex2g4s = this_0.l();
|
|
2114
2114
|
while (_iterator__ex2g4s.m()) {
|
|
2115
2115
|
var item = _iterator__ex2g4s.n();
|
|
2116
|
-
var tmp$ret$2 = item.
|
|
2116
|
+
var tmp$ret$2 = item.f1b_1;
|
|
2117
2117
|
destination.k(tmp$ret$2);
|
|
2118
2118
|
}
|
|
2119
2119
|
return destination;
|
|
2120
2120
|
};
|
|
2121
|
-
protoOf(Companion).
|
|
2121
|
+
protoOf(Companion).g1b = function (id) {
|
|
2122
2122
|
var tmp0 = get_entries();
|
|
2123
2123
|
var tmp$ret$0;
|
|
2124
2124
|
$l$block: {
|
|
@@ -2126,7 +2126,7 @@
|
|
|
2126
2126
|
var _iterator__ex2g4s = tmp0.l();
|
|
2127
2127
|
while (_iterator__ex2g4s.m()) {
|
|
2128
2128
|
var element = _iterator__ex2g4s.n();
|
|
2129
|
-
if (element.
|
|
2129
|
+
if (element.f1b_1 === id) {
|
|
2130
2130
|
tmp$ret$0 = element;
|
|
2131
2131
|
break $l$block;
|
|
2132
2132
|
}
|
|
@@ -2136,7 +2136,7 @@
|
|
|
2136
2136
|
var tmp0_elvis_lhs = tmp$ret$0;
|
|
2137
2137
|
var tmp;
|
|
2138
2138
|
if (tmp0_elvis_lhs == null) {
|
|
2139
|
-
throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.
|
|
2139
|
+
throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.c1b()));
|
|
2140
2140
|
} else {
|
|
2141
2141
|
tmp = tmp0_elvis_lhs;
|
|
2142
2142
|
}
|
|
@@ -2160,9 +2160,9 @@
|
|
|
2160
2160
|
var $ENTRIES;
|
|
2161
2161
|
function ElevationSource(name, ordinal, id) {
|
|
2162
2162
|
Enum.call(this, name, ordinal);
|
|
2163
|
-
this.
|
|
2163
|
+
this.f1b_1 = id;
|
|
2164
2164
|
}
|
|
2165
|
-
protoOf(ElevationSource).
|
|
2165
|
+
protoOf(ElevationSource).h1b = function () {
|
|
2166
2166
|
var tmp;
|
|
2167
2167
|
switch (this.y1_1) {
|
|
2168
2168
|
case 0:
|
|
@@ -2177,14 +2177,14 @@
|
|
|
2177
2177
|
}
|
|
2178
2178
|
return tmp;
|
|
2179
2179
|
};
|
|
2180
|
-
protoOf(ElevationSource).
|
|
2180
|
+
protoOf(ElevationSource).i1b = function () {
|
|
2181
2181
|
var tmp;
|
|
2182
2182
|
switch (this.y1_1) {
|
|
2183
2183
|
case 0:
|
|
2184
|
-
tmp = (new ElevationProviderConfig()).
|
|
2184
|
+
tmp = (new ElevationProviderConfig()).y18_1;
|
|
2185
2185
|
break;
|
|
2186
2186
|
case 1:
|
|
2187
|
-
tmp = IgnLidarHdLayer_MNT_getInstance().
|
|
2187
|
+
tmp = IgnLidarHdLayer_MNT_getInstance().i1b();
|
|
2188
2188
|
break;
|
|
2189
2189
|
default:
|
|
2190
2190
|
noWhenBranchMatchedException();
|
|
@@ -2192,15 +2192,15 @@
|
|
|
2192
2192
|
}
|
|
2193
2193
|
return tmp;
|
|
2194
2194
|
};
|
|
2195
|
-
protoOf(ElevationSource).
|
|
2195
|
+
protoOf(ElevationSource).m1b = function (zoomLevel) {
|
|
2196
2196
|
var tmp;
|
|
2197
2197
|
switch (this.y1_1) {
|
|
2198
2198
|
case 0:
|
|
2199
|
-
tmp = new ElevationProviderConfig(zoomLevel == null ? this.
|
|
2199
|
+
tmp = new ElevationProviderConfig(zoomLevel == null ? this.i1b() : zoomLevel);
|
|
2200
2200
|
break;
|
|
2201
2201
|
case 1:
|
|
2202
2202
|
var tmp_0 = IgnLidarHdLayer_MNT_getInstance();
|
|
2203
|
-
tmp = tmp_0.
|
|
2203
|
+
tmp = tmp_0.m1b(zoomLevel == null ? this.i1b() : zoomLevel);
|
|
2204
2204
|
break;
|
|
2205
2205
|
default:
|
|
2206
2206
|
noWhenBranchMatchedException();
|
|
@@ -2217,22 +2217,22 @@
|
|
|
2217
2217
|
tmp = fetcherFor;
|
|
2218
2218
|
}
|
|
2219
2219
|
fetcherFor = tmp;
|
|
2220
|
-
var config = _this__u8e3s4.
|
|
2220
|
+
var config = _this__u8e3s4.m1b(zoomLevel);
|
|
2221
2221
|
var fetcher = _this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) ? ignCoverageFiltered(config, fetcherFor(config)) : fetcherFor(config);
|
|
2222
2222
|
var primary = ElevationProvider_init_$Create$(config, fetcher);
|
|
2223
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2223
|
+
var tmp0_safe_receiver = _this__u8e3s4.h1b();
|
|
2224
2224
|
var tmp_0;
|
|
2225
2225
|
if (tmp0_safe_receiver == null) {
|
|
2226
2226
|
tmp_0 = null;
|
|
2227
2227
|
} else {
|
|
2228
2228
|
// Inline function 'kotlin.let' call
|
|
2229
|
-
tmp_0 = primary.
|
|
2229
|
+
tmp_0 = primary.n19(provider(tmp0_safe_receiver, null, fetcherFor));
|
|
2230
2230
|
}
|
|
2231
2231
|
var tmp1_elvis_lhs = tmp_0;
|
|
2232
2232
|
var withFallback = tmp1_elvis_lhs == null ? primary : tmp1_elvis_lhs;
|
|
2233
2233
|
var tmp_1;
|
|
2234
|
-
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.
|
|
2235
|
-
tmp_1 = withFallback.
|
|
2234
|
+
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.y18_1 === IgnLidarHdLayer_MNS_getInstance().i1b()) {
|
|
2235
|
+
tmp_1 = withFallback.o19(provider_0(IgnLidarHdLayer_MNS_getInstance(), null, fetcherFor));
|
|
2236
2236
|
} else {
|
|
2237
2237
|
tmp_1 = withFallback;
|
|
2238
2238
|
}
|
|
@@ -2260,19 +2260,19 @@
|
|
|
2260
2260
|
return ElevationSource_IGN_LIDAR_HD_instance;
|
|
2261
2261
|
}
|
|
2262
2262
|
function Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation) {
|
|
2263
|
-
this.
|
|
2264
|
-
this.
|
|
2265
|
-
this.
|
|
2263
|
+
this.v1b_1 = $semaphore;
|
|
2264
|
+
this.w1b_1 = $action;
|
|
2265
|
+
this.x1b_1 = $item;
|
|
2266
2266
|
CoroutineImpl.call(this, resultContinuation);
|
|
2267
2267
|
}
|
|
2268
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
2269
|
-
var tmp = this.
|
|
2268
|
+
protoOf(Flux$forEachParallel$slambda$slambda).b1c = function ($this$async, $completion) {
|
|
2269
|
+
var tmp = this.c1c($this$async, $completion);
|
|
2270
2270
|
tmp.l7_1 = Unit_instance;
|
|
2271
2271
|
tmp.m7_1 = null;
|
|
2272
2272
|
return tmp.r7();
|
|
2273
2273
|
};
|
|
2274
2274
|
protoOf(Flux$forEachParallel$slambda$slambda).z7 = function (p1, $completion) {
|
|
2275
|
-
return this.
|
|
2275
|
+
return this.b1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2276
2276
|
};
|
|
2277
2277
|
protoOf(Flux$forEachParallel$slambda$slambda).r7 = function () {
|
|
2278
2278
|
var suspendResult = this.l7_1;
|
|
@@ -2282,41 +2282,41 @@
|
|
|
2282
2282
|
switch (tmp) {
|
|
2283
2283
|
case 0:
|
|
2284
2284
|
this.k7_1 = 6;
|
|
2285
|
-
this.
|
|
2285
|
+
this.z1b_1 = this.v1b_1;
|
|
2286
2286
|
this.j7_1 = 1;
|
|
2287
|
-
suspendResult = this.
|
|
2287
|
+
suspendResult = this.z1b_1.yw(this);
|
|
2288
2288
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2289
2289
|
return suspendResult;
|
|
2290
2290
|
}
|
|
2291
2291
|
|
|
2292
2292
|
continue $sm;
|
|
2293
2293
|
case 1:
|
|
2294
|
-
this.
|
|
2294
|
+
this.a1c_1 = Unit_instance;
|
|
2295
2295
|
this.j7_1 = 2;
|
|
2296
2296
|
continue $sm;
|
|
2297
2297
|
case 2:
|
|
2298
2298
|
this.k7_1 = 5;
|
|
2299
2299
|
this.j7_1 = 3;
|
|
2300
|
-
suspendResult = this.
|
|
2300
|
+
suspendResult = this.w1b_1(this.x1b_1, this);
|
|
2301
2301
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2302
2302
|
return suspendResult;
|
|
2303
2303
|
}
|
|
2304
2304
|
|
|
2305
2305
|
continue $sm;
|
|
2306
2306
|
case 3:
|
|
2307
|
-
this.
|
|
2307
|
+
this.a1c_1 = Unit_instance;
|
|
2308
2308
|
this.k7_1 = 6;
|
|
2309
2309
|
this.j7_1 = 4;
|
|
2310
2310
|
continue $sm;
|
|
2311
2311
|
case 4:
|
|
2312
|
-
this.
|
|
2312
|
+
this.a1c_1;
|
|
2313
2313
|
this.k7_1 = 6;
|
|
2314
|
-
this.
|
|
2314
|
+
this.z1b_1.sw();
|
|
2315
2315
|
return Unit_instance;
|
|
2316
2316
|
case 5:
|
|
2317
2317
|
this.k7_1 = 6;
|
|
2318
2318
|
var t = this.m7_1;
|
|
2319
|
-
this.
|
|
2319
|
+
this.z1b_1.sw();
|
|
2320
2320
|
throw t;
|
|
2321
2321
|
case 6:
|
|
2322
2322
|
throw this.m7_1;
|
|
@@ -2332,31 +2332,31 @@
|
|
|
2332
2332
|
}
|
|
2333
2333
|
while (true);
|
|
2334
2334
|
};
|
|
2335
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
2336
|
-
var i = new Flux$forEachParallel$slambda$slambda(this.
|
|
2337
|
-
i.
|
|
2335
|
+
protoOf(Flux$forEachParallel$slambda$slambda).c1c = function ($this$async, completion) {
|
|
2336
|
+
var i = new Flux$forEachParallel$slambda$slambda(this.v1b_1, this.w1b_1, this.x1b_1, completion);
|
|
2337
|
+
i.y1b_1 = $this$async;
|
|
2338
2338
|
return i;
|
|
2339
2339
|
};
|
|
2340
2340
|
function Flux$forEachParallel$slambda$slambda_0($semaphore, $action, $item, resultContinuation) {
|
|
2341
2341
|
var i = new Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation);
|
|
2342
2342
|
return constructCallableReference(function ($this$async, $completion) {
|
|
2343
|
-
return i.
|
|
2343
|
+
return i.b1c($this$async, $completion);
|
|
2344
2344
|
}, 1);
|
|
2345
2345
|
}
|
|
2346
2346
|
function Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation) {
|
|
2347
|
-
this.
|
|
2348
|
-
this.
|
|
2349
|
-
this.
|
|
2347
|
+
this.l1c_1 = $maxParallel;
|
|
2348
|
+
this.m1c_1 = $items;
|
|
2349
|
+
this.n1c_1 = $action;
|
|
2350
2350
|
CoroutineImpl.call(this, resultContinuation);
|
|
2351
2351
|
}
|
|
2352
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2353
|
-
var tmp = this.
|
|
2352
|
+
protoOf(Flux$forEachParallel$slambda).p1c = function ($this$coroutineScope, $completion) {
|
|
2353
|
+
var tmp = this.c1c($this$coroutineScope, $completion);
|
|
2354
2354
|
tmp.l7_1 = Unit_instance;
|
|
2355
2355
|
tmp.m7_1 = null;
|
|
2356
2356
|
return tmp.r7();
|
|
2357
2357
|
};
|
|
2358
2358
|
protoOf(Flux$forEachParallel$slambda).z7 = function (p1, $completion) {
|
|
2359
|
-
return this.
|
|
2359
|
+
return this.p1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2360
2360
|
};
|
|
2361
2361
|
protoOf(Flux$forEachParallel$slambda).r7 = function () {
|
|
2362
2362
|
var suspendResult = this.l7_1;
|
|
@@ -2366,14 +2366,14 @@
|
|
|
2366
2366
|
switch (tmp) {
|
|
2367
2367
|
case 0:
|
|
2368
2368
|
this.k7_1 = 2;
|
|
2369
|
-
var semaphore = Semaphore(this.
|
|
2369
|
+
var semaphore = Semaphore(this.l1c_1);
|
|
2370
2370
|
this.j7_1 = 1;
|
|
2371
|
-
var this_0 = this.
|
|
2371
|
+
var this_0 = this.m1c_1;
|
|
2372
2372
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2373
2373
|
var _iterator__ex2g4s = this_0.l();
|
|
2374
2374
|
while (_iterator__ex2g4s.m()) {
|
|
2375
2375
|
var item = _iterator__ex2g4s.n();
|
|
2376
|
-
destination.k(async(this.
|
|
2376
|
+
destination.k(async(this.o1c_1, VOID, VOID, Flux$forEachParallel$slambda$slambda_0(semaphore, this.n1c_1, item, null)));
|
|
2377
2377
|
}
|
|
2378
2378
|
|
|
2379
2379
|
suspendResult = awaitAll(destination, this);
|
|
@@ -2398,23 +2398,23 @@
|
|
|
2398
2398
|
}
|
|
2399
2399
|
while (true);
|
|
2400
2400
|
};
|
|
2401
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2402
|
-
var i = new Flux$forEachParallel$slambda(this.
|
|
2403
|
-
i.
|
|
2401
|
+
protoOf(Flux$forEachParallel$slambda).c1c = function ($this$coroutineScope, completion) {
|
|
2402
|
+
var i = new Flux$forEachParallel$slambda(this.l1c_1, this.m1c_1, this.n1c_1, completion);
|
|
2403
|
+
i.o1c_1 = $this$coroutineScope;
|
|
2404
2404
|
return i;
|
|
2405
2405
|
};
|
|
2406
2406
|
function Flux$forEachParallel$slambda_0($maxParallel, $items, $action, resultContinuation) {
|
|
2407
2407
|
var i = new Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation);
|
|
2408
2408
|
return constructCallableReference(function ($this$coroutineScope, $completion) {
|
|
2409
|
-
return i.
|
|
2409
|
+
return i.p1c($this$coroutineScope, $completion);
|
|
2410
2410
|
}, 1);
|
|
2411
2411
|
}
|
|
2412
2412
|
function $forEachParallelCOROUTINE$(_this__u8e3s4, items, maxParallel, action, resultContinuation) {
|
|
2413
2413
|
CoroutineImpl.call(this, resultContinuation);
|
|
2414
|
-
this.
|
|
2415
|
-
this.
|
|
2416
|
-
this.
|
|
2417
|
-
this.
|
|
2414
|
+
this.y1c_1 = _this__u8e3s4;
|
|
2415
|
+
this.z1c_1 = items;
|
|
2416
|
+
this.a1d_1 = maxParallel;
|
|
2417
|
+
this.b1d_1 = action;
|
|
2418
2418
|
}
|
|
2419
2419
|
protoOf($forEachParallelCOROUTINE$).r7 = function () {
|
|
2420
2420
|
var suspendResult = this.l7_1;
|
|
@@ -2424,13 +2424,13 @@
|
|
|
2424
2424
|
switch (tmp) {
|
|
2425
2425
|
case 0:
|
|
2426
2426
|
this.k7_1 = 2;
|
|
2427
|
-
if (!(this.
|
|
2428
|
-
var message = 'maxParallel must be >= 1, got ' + this.
|
|
2427
|
+
if (!(this.a1d_1 >= 1)) {
|
|
2428
|
+
var message = 'maxParallel must be >= 1, got ' + this.a1d_1;
|
|
2429
2429
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2430
2430
|
}
|
|
2431
2431
|
|
|
2432
2432
|
this.j7_1 = 1;
|
|
2433
|
-
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.
|
|
2433
|
+
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.a1d_1, this.z1c_1, this.b1d_1, null), this);
|
|
2434
2434
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2435
2435
|
return suspendResult;
|
|
2436
2436
|
}
|
|
@@ -2601,14 +2601,14 @@
|
|
|
2601
2601
|
IgnLidarHdCoverage_instance = this;
|
|
2602
2602
|
var tmp = this;
|
|
2603
2603
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
2604
|
-
tmp.
|
|
2604
|
+
tmp.c1d_1 = new Float64Array([2.4, 51.4, 3.0, 51.15, 3.4, 50.85, 4.3, 50.55, 4.7, 50.35, 5.0, 50.25, 5.2, 49.95, 5.85, 49.62, 6.4, 49.56, 7.4, 49.3, 8.35, 49.1, 8.0, 48.4, 7.75, 47.75, 7.7, 47.6, 6.95, 47.2, 6.55, 46.75, 7.0, 46.45, 7.15, 46.0, 7.05, 45.6, 7.35, 45.3, 7.15, 44.9, 7.15, 44.6, 7.85, 44.2, 7.7, 43.65, 7.7, 43.3, 6.5, 42.9, 4.5, 43.1, 3.4, 42.9, 3.4, 42.35, 2.3, 42.25, 1.3, 42.35, 0.4, 42.55, -0.7, 42.65, -1.4, 42.9, -1.9, 43.2, -2.1, 43.5, -1.7, 44.5, -2.6, 46.6, -3.4, 47.2, -5.3, 47.8, -5.35, 48.65, -4.2, 48.95, -2.4, 49.05, -2.1, 49.8, -0.2, 49.85, 1.2, 50.25, 1.4, 51.05]);
|
|
2605
2605
|
var tmp_0 = this;
|
|
2606
2606
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
2607
|
-
tmp_0.
|
|
2608
|
-
this.
|
|
2607
|
+
tmp_0.d1d_1 = new Float64Array([8.4, 43.15, 9.7, 43.15, 9.7, 41.25, 8.4, 41.25]);
|
|
2608
|
+
this.e1d_1 = listOf([this.c1d_1, this.d1d_1]);
|
|
2609
2609
|
}
|
|
2610
|
-
protoOf(IgnLidarHdCoverage).
|
|
2611
|
-
var tmp0 = this.
|
|
2610
|
+
protoOf(IgnLidarHdCoverage).f1d = function (latitude, longitude) {
|
|
2611
|
+
var tmp0 = this.e1d_1;
|
|
2612
2612
|
var tmp$ret$0;
|
|
2613
2613
|
$l$block_0: {
|
|
2614
2614
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2634,13 +2634,13 @@
|
|
|
2634
2634
|
}
|
|
2635
2635
|
return tmp$ret$0;
|
|
2636
2636
|
};
|
|
2637
|
-
protoOf(IgnLidarHdCoverage).
|
|
2637
|
+
protoOf(IgnLidarHdCoverage).g1d = function (tc) {
|
|
2638
2638
|
var tiles = 1 << tc.n11_1;
|
|
2639
2639
|
var west = tc.l11_1 / tiles * 360.0 - 180.0;
|
|
2640
2640
|
var east = (tc.l11_1 + 1 | 0) / tiles * 360.0 - 180.0;
|
|
2641
2641
|
var north = latitudeOfRow(this, tc.m11_1, tiles);
|
|
2642
2642
|
var south = latitudeOfRow(this, tc.m11_1 + 1 | 0, tiles);
|
|
2643
|
-
var tmp0 = this.
|
|
2643
|
+
var tmp0 = this.e1d_1;
|
|
2644
2644
|
var tmp$ret$0;
|
|
2645
2645
|
$l$block_0: {
|
|
2646
2646
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2673,18 +2673,18 @@
|
|
|
2673
2673
|
return IgnLidarHdCoverage_instance;
|
|
2674
2674
|
}
|
|
2675
2675
|
function ignCoverageFiltered$slambda($config, $fetcher, resultContinuation) {
|
|
2676
|
-
this.
|
|
2677
|
-
this.
|
|
2676
|
+
this.p1d_1 = $config;
|
|
2677
|
+
this.q1d_1 = $fetcher;
|
|
2678
2678
|
CoroutineImpl.call(this, resultContinuation);
|
|
2679
2679
|
}
|
|
2680
|
-
protoOf(ignCoverageFiltered$slambda).
|
|
2681
|
-
var tmp = this.
|
|
2680
|
+
protoOf(ignCoverageFiltered$slambda).y19 = function (url, $completion) {
|
|
2681
|
+
var tmp = this.j1a(url, $completion);
|
|
2682
2682
|
tmp.l7_1 = Unit_instance;
|
|
2683
2683
|
tmp.m7_1 = null;
|
|
2684
2684
|
return tmp.r7();
|
|
2685
2685
|
};
|
|
2686
2686
|
protoOf(ignCoverageFiltered$slambda).z7 = function (p1, $completion) {
|
|
2687
|
-
return this.
|
|
2687
|
+
return this.y19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
2688
2688
|
};
|
|
2689
2689
|
protoOf(ignCoverageFiltered$slambda).r7 = function () {
|
|
2690
2690
|
var suspendResult = this.l7_1;
|
|
@@ -2694,25 +2694,25 @@
|
|
|
2694
2694
|
switch (tmp) {
|
|
2695
2695
|
case 0:
|
|
2696
2696
|
this.k7_1 = 3;
|
|
2697
|
-
if (IgnLidarHdCoverage_getInstance().
|
|
2697
|
+
if (IgnLidarHdCoverage_getInstance().g1d(tileCoordinatesOf(this.r1d_1, this.p1d_1))) {
|
|
2698
2698
|
this.j7_1 = 1;
|
|
2699
|
-
suspendResult = this.
|
|
2699
|
+
suspendResult = this.q1d_1(this.r1d_1, this);
|
|
2700
2700
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2701
2701
|
return suspendResult;
|
|
2702
2702
|
}
|
|
2703
2703
|
continue $sm;
|
|
2704
2704
|
} else {
|
|
2705
|
-
this.
|
|
2705
|
+
this.s1d_1 = noDataTile(this.p1d_1.b19_1);
|
|
2706
2706
|
this.j7_1 = 2;
|
|
2707
2707
|
continue $sm;
|
|
2708
2708
|
}
|
|
2709
2709
|
|
|
2710
2710
|
case 1:
|
|
2711
|
-
this.
|
|
2711
|
+
this.s1d_1 = suspendResult;
|
|
2712
2712
|
this.j7_1 = 2;
|
|
2713
2713
|
continue $sm;
|
|
2714
2714
|
case 2:
|
|
2715
|
-
return this.
|
|
2715
|
+
return this.s1d_1;
|
|
2716
2716
|
case 3:
|
|
2717
2717
|
throw this.m7_1;
|
|
2718
2718
|
}
|
|
@@ -2727,15 +2727,15 @@
|
|
|
2727
2727
|
}
|
|
2728
2728
|
while (true);
|
|
2729
2729
|
};
|
|
2730
|
-
protoOf(ignCoverageFiltered$slambda).
|
|
2731
|
-
var i = new ignCoverageFiltered$slambda(this.
|
|
2732
|
-
i.
|
|
2730
|
+
protoOf(ignCoverageFiltered$slambda).j1a = function (url, completion) {
|
|
2731
|
+
var i = new ignCoverageFiltered$slambda(this.p1d_1, this.q1d_1, completion);
|
|
2732
|
+
i.r1d_1 = url;
|
|
2733
2733
|
return i;
|
|
2734
2734
|
};
|
|
2735
2735
|
function ignCoverageFiltered$slambda_0($config, $fetcher, resultContinuation) {
|
|
2736
2736
|
var i = new ignCoverageFiltered$slambda($config, $fetcher, resultContinuation);
|
|
2737
2737
|
return constructCallableReference(function (url, $completion) {
|
|
2738
|
-
return i.
|
|
2738
|
+
return i.y19(url, $completion);
|
|
2739
2739
|
}, 1);
|
|
2740
2740
|
}
|
|
2741
2741
|
var static_init_called_1;
|
|
@@ -2763,14 +2763,14 @@
|
|
|
2763
2763
|
var $ENTRIES_0;
|
|
2764
2764
|
function IgnLidarHdLayer(name, ordinal, wmsLayer) {
|
|
2765
2765
|
Enum.call(this, name, ordinal);
|
|
2766
|
-
this.
|
|
2766
|
+
this.l1b_1 = wmsLayer;
|
|
2767
2767
|
}
|
|
2768
|
-
protoOf(IgnLidarHdLayer).
|
|
2768
|
+
protoOf(IgnLidarHdLayer).i1b = function () {
|
|
2769
2769
|
return 15;
|
|
2770
2770
|
};
|
|
2771
|
-
protoOf(IgnLidarHdLayer).
|
|
2772
|
-
var tmp1_zoomLevel = zoomLevel == null ? this.
|
|
2773
|
-
var tmp3_tileUrlTemplate = ignWmsTemplate(this.
|
|
2771
|
+
protoOf(IgnLidarHdLayer).m1b = function (zoomLevel) {
|
|
2772
|
+
var tmp1_zoomLevel = zoomLevel == null ? this.i1b() : zoomLevel;
|
|
2773
|
+
var tmp3_tileUrlTemplate = ignWmsTemplate(this.l1b_1, 256);
|
|
2774
2774
|
var tmp4_encoding = TileEncoding_BIL32_getInstance();
|
|
2775
2775
|
var tmp5_attribution = new Attribution('\xA9 IGN \u2014 LiDAR HD ' + this.x1_1 + ', Licence Ouverte Etalab 2.0', 'https://geoservices.ign.fr/lidarhd');
|
|
2776
2776
|
return new ElevationProviderConfig(tmp1_zoomLevel, VOID, tmp3_tileUrlTemplate, 256, tmp5_attribution, tmp4_encoding, 20);
|
|
@@ -2784,7 +2784,7 @@
|
|
|
2784
2784
|
tmp = fetcherFor;
|
|
2785
2785
|
}
|
|
2786
2786
|
fetcherFor = tmp;
|
|
2787
|
-
var config = _this__u8e3s4.
|
|
2787
|
+
var config = _this__u8e3s4.m1b(zoomLevel);
|
|
2788
2788
|
return ElevationProvider_init_$Create$_0(config, ignCoverageFiltered(config, fetcherFor(config)), true);
|
|
2789
2789
|
}
|
|
2790
2790
|
function ignWmsTemplate(layer, tileSize) {
|
|
@@ -2803,13 +2803,13 @@
|
|
|
2803
2803
|
return IgnLidarHdLayer_MNH_instance;
|
|
2804
2804
|
}
|
|
2805
2805
|
function Hit(value) {
|
|
2806
|
-
this.
|
|
2806
|
+
this.t1d_1 = value;
|
|
2807
2807
|
}
|
|
2808
2808
|
function Await(deferred) {
|
|
2809
|
-
this.
|
|
2809
|
+
this.u1d_1 = deferred;
|
|
2810
2810
|
}
|
|
2811
2811
|
function Owner(deferred) {
|
|
2812
|
-
this.
|
|
2812
|
+
this.v1d_1 = deferred;
|
|
2813
2813
|
}
|
|
2814
2814
|
function LoadAbandoned() {
|
|
2815
2815
|
Exception_init_$Init$('load abandoned by its cancelled owner', this);
|
|
@@ -2828,18 +2828,18 @@
|
|
|
2828
2828
|
return tmp.r7();
|
|
2829
2829
|
}
|
|
2830
2830
|
function LruCache$load$slambda(this$0, $key, resultContinuation) {
|
|
2831
|
-
this.
|
|
2832
|
-
this.
|
|
2831
|
+
this.e1f_1 = this$0;
|
|
2832
|
+
this.f1f_1 = $key;
|
|
2833
2833
|
CoroutineImpl.call(this, resultContinuation);
|
|
2834
2834
|
}
|
|
2835
|
-
protoOf(LruCache$load$slambda).
|
|
2836
|
-
var tmp = this.
|
|
2835
|
+
protoOf(LruCache$load$slambda).j1f = function ($this$withContext, $completion) {
|
|
2836
|
+
var tmp = this.c1c($this$withContext, $completion);
|
|
2837
2837
|
tmp.l7_1 = Unit_instance;
|
|
2838
2838
|
tmp.m7_1 = null;
|
|
2839
2839
|
return tmp.r7();
|
|
2840
2840
|
};
|
|
2841
2841
|
protoOf(LruCache$load$slambda).z7 = function (p1, $completion) {
|
|
2842
|
-
return this.
|
|
2842
|
+
return this.j1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2843
2843
|
};
|
|
2844
2844
|
protoOf(LruCache$load$slambda).r7 = function () {
|
|
2845
2845
|
var suspendResult = this.l7_1;
|
|
@@ -2849,10 +2849,10 @@
|
|
|
2849
2849
|
switch (tmp) {
|
|
2850
2850
|
case 0:
|
|
2851
2851
|
this.k7_1 = 2;
|
|
2852
|
-
this.
|
|
2853
|
-
this.
|
|
2852
|
+
this.i1f_1 = this.e1f_1.n1f_1;
|
|
2853
|
+
this.h1f_1 = null;
|
|
2854
2854
|
this.j7_1 = 1;
|
|
2855
|
-
suspendResult = this.
|
|
2855
|
+
suspendResult = this.i1f_1.qw(this.h1f_1, this);
|
|
2856
2856
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2857
2857
|
return suspendResult;
|
|
2858
2858
|
}
|
|
@@ -2863,18 +2863,18 @@
|
|
|
2863
2863
|
l$ret$1: do {
|
|
2864
2864
|
var tmp_0;
|
|
2865
2865
|
try {
|
|
2866
|
-
tmp$ret$0 = this.
|
|
2866
|
+
tmp$ret$0 = this.e1f_1.p1f_1.w3(this.f1f_1);
|
|
2867
2867
|
break l$ret$1;
|
|
2868
2868
|
} catch ($p) {
|
|
2869
2869
|
var tmp_1;
|
|
2870
2870
|
var t = $p;
|
|
2871
|
-
this.
|
|
2871
|
+
this.i1f_1.bw(this.h1f_1);
|
|
2872
2872
|
throw t;
|
|
2873
2873
|
}
|
|
2874
2874
|
}
|
|
2875
2875
|
while (false);
|
|
2876
2876
|
var tmp_2 = tmp$ret$0;
|
|
2877
|
-
this.
|
|
2877
|
+
this.i1f_1.bw(this.h1f_1);
|
|
2878
2878
|
return tmp_2;
|
|
2879
2879
|
case 2:
|
|
2880
2880
|
throw this.m7_1;
|
|
@@ -2890,31 +2890,31 @@
|
|
|
2890
2890
|
}
|
|
2891
2891
|
while (true);
|
|
2892
2892
|
};
|
|
2893
|
-
protoOf(LruCache$load$slambda).
|
|
2894
|
-
var i = new LruCache$load$slambda(this.
|
|
2895
|
-
i.
|
|
2893
|
+
protoOf(LruCache$load$slambda).c1c = function ($this$withContext, completion) {
|
|
2894
|
+
var i = new LruCache$load$slambda(this.e1f_1, this.f1f_1, completion);
|
|
2895
|
+
i.g1f_1 = $this$withContext;
|
|
2896
2896
|
return i;
|
|
2897
2897
|
};
|
|
2898
2898
|
function LruCache$load$slambda_0(this$0, $key, resultContinuation) {
|
|
2899
2899
|
var i = new LruCache$load$slambda(this$0, $key, resultContinuation);
|
|
2900
2900
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2901
|
-
return i.
|
|
2901
|
+
return i.j1f($this$withContext, $completion);
|
|
2902
2902
|
}, 1);
|
|
2903
2903
|
}
|
|
2904
2904
|
function LruCache$load$slambda_1(this$0, $key, $value, resultContinuation) {
|
|
2905
|
-
this.
|
|
2906
|
-
this.
|
|
2907
|
-
this.
|
|
2905
|
+
this.y1f_1 = this$0;
|
|
2906
|
+
this.z1f_1 = $key;
|
|
2907
|
+
this.a1g_1 = $value;
|
|
2908
2908
|
CoroutineImpl.call(this, resultContinuation);
|
|
2909
2909
|
}
|
|
2910
|
-
protoOf(LruCache$load$slambda_1).
|
|
2911
|
-
var tmp = this.
|
|
2910
|
+
protoOf(LruCache$load$slambda_1).e1g = function ($this$withContext, $completion) {
|
|
2911
|
+
var tmp = this.c1c($this$withContext, $completion);
|
|
2912
2912
|
tmp.l7_1 = Unit_instance;
|
|
2913
2913
|
tmp.m7_1 = null;
|
|
2914
2914
|
return tmp.r7();
|
|
2915
2915
|
};
|
|
2916
2916
|
protoOf(LruCache$load$slambda_1).z7 = function (p1, $completion) {
|
|
2917
|
-
return this.
|
|
2917
|
+
return this.e1g((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2918
2918
|
};
|
|
2919
2919
|
protoOf(LruCache$load$slambda_1).r7 = function () {
|
|
2920
2920
|
var suspendResult = this.l7_1;
|
|
@@ -2924,10 +2924,10 @@
|
|
|
2924
2924
|
switch (tmp) {
|
|
2925
2925
|
case 0:
|
|
2926
2926
|
this.k7_1 = 2;
|
|
2927
|
-
this.
|
|
2928
|
-
this.
|
|
2927
|
+
this.d1g_1 = this.y1f_1.n1f_1;
|
|
2928
|
+
this.c1g_1 = null;
|
|
2929
2929
|
this.j7_1 = 1;
|
|
2930
|
-
suspendResult = this.
|
|
2930
|
+
suspendResult = this.d1g_1.qw(this.c1g_1, this);
|
|
2931
2931
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2932
2932
|
return suspendResult;
|
|
2933
2933
|
}
|
|
@@ -2938,37 +2938,37 @@
|
|
|
2938
2938
|
l$ret$1: do {
|
|
2939
2939
|
var tmp_0;
|
|
2940
2940
|
try {
|
|
2941
|
-
this.
|
|
2941
|
+
this.y1f_1.p1f_1.w3(this.z1f_1);
|
|
2942
2942
|
var oldest = null;
|
|
2943
2943
|
var tmp_1;
|
|
2944
|
-
if (this.
|
|
2945
|
-
var tmp0 = this.
|
|
2946
|
-
var key = this.
|
|
2944
|
+
if (this.y1f_1.o1f_1.o() >= this.y1f_1.k1f_1) {
|
|
2945
|
+
var tmp0 = this.y1f_1.o1f_1;
|
|
2946
|
+
var key = this.z1f_1;
|
|
2947
2947
|
tmp_1 = !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).r1(key);
|
|
2948
2948
|
} else {
|
|
2949
2949
|
tmp_1 = false;
|
|
2950
2950
|
}
|
|
2951
2951
|
if (tmp_1) {
|
|
2952
|
-
var iter = this.
|
|
2952
|
+
var iter = this.y1f_1.o1f_1.w1().l();
|
|
2953
2953
|
oldest = iter.n().q1();
|
|
2954
2954
|
iter.v2();
|
|
2955
2955
|
}
|
|
2956
|
-
var tmp0_0 = this.
|
|
2957
|
-
var tmp2 = this.
|
|
2958
|
-
var value = this.
|
|
2956
|
+
var tmp0_0 = this.y1f_1.o1f_1;
|
|
2957
|
+
var tmp2 = this.z1f_1;
|
|
2958
|
+
var value = this.a1g_1;
|
|
2959
2959
|
tmp0_0.v3(tmp2, value);
|
|
2960
2960
|
tmp$ret$0 = oldest;
|
|
2961
2961
|
break l$ret$1;
|
|
2962
2962
|
} catch ($p) {
|
|
2963
2963
|
var tmp_2;
|
|
2964
2964
|
var t = $p;
|
|
2965
|
-
this.
|
|
2965
|
+
this.d1g_1.bw(this.c1g_1);
|
|
2966
2966
|
throw t;
|
|
2967
2967
|
}
|
|
2968
2968
|
}
|
|
2969
2969
|
while (false);
|
|
2970
2970
|
var tmp_3 = tmp$ret$0;
|
|
2971
|
-
this.
|
|
2971
|
+
this.d1g_1.bw(this.c1g_1);
|
|
2972
2972
|
return tmp_3;
|
|
2973
2973
|
case 2:
|
|
2974
2974
|
throw this.m7_1;
|
|
@@ -2984,21 +2984,21 @@
|
|
|
2984
2984
|
}
|
|
2985
2985
|
while (true);
|
|
2986
2986
|
};
|
|
2987
|
-
protoOf(LruCache$load$slambda_1).
|
|
2988
|
-
var i = new LruCache$load$slambda_1(this.
|
|
2989
|
-
i.
|
|
2987
|
+
protoOf(LruCache$load$slambda_1).c1c = function ($this$withContext, completion) {
|
|
2988
|
+
var i = new LruCache$load$slambda_1(this.y1f_1, this.z1f_1, this.a1g_1, completion);
|
|
2989
|
+
i.b1g_1 = $this$withContext;
|
|
2990
2990
|
return i;
|
|
2991
2991
|
};
|
|
2992
2992
|
function LruCache$load$slambda_2(this$0, $key, $value, resultContinuation) {
|
|
2993
2993
|
var i = new LruCache$load$slambda_1(this$0, $key, $value, resultContinuation);
|
|
2994
2994
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2995
|
-
return i.
|
|
2995
|
+
return i.e1g($this$withContext, $completion);
|
|
2996
2996
|
}, 1);
|
|
2997
2997
|
}
|
|
2998
2998
|
function $getCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2999
2999
|
CoroutineImpl.call(this, resultContinuation);
|
|
3000
|
-
this.
|
|
3001
|
-
this.
|
|
3000
|
+
this.n1g_1 = _this__u8e3s4;
|
|
3001
|
+
this.o1g_1 = key;
|
|
3002
3002
|
}
|
|
3003
3003
|
protoOf($getCOROUTINE$).r7 = function () {
|
|
3004
3004
|
var suspendResult = this.l7_1;
|
|
@@ -3017,7 +3017,7 @@
|
|
|
3017
3017
|
}
|
|
3018
3018
|
|
|
3019
3019
|
this.j7_1 = 2;
|
|
3020
|
-
suspendResult = lookupOrClaim(this.
|
|
3020
|
+
suspendResult = lookupOrClaim(this.n1g_1, this.o1g_1, this);
|
|
3021
3021
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3022
3022
|
return suspendResult;
|
|
3023
3023
|
}
|
|
@@ -3026,11 +3026,11 @@
|
|
|
3026
3026
|
case 2:
|
|
3027
3027
|
var lookup = suspendResult;
|
|
3028
3028
|
if (lookup instanceof Hit) {
|
|
3029
|
-
return lookup.
|
|
3029
|
+
return lookup.t1d_1;
|
|
3030
3030
|
} else {
|
|
3031
3031
|
if (lookup instanceof Owner) {
|
|
3032
3032
|
this.j7_1 = 7;
|
|
3033
|
-
suspendResult = load(this.
|
|
3033
|
+
suspendResult = load(this.n1g_1, this.o1g_1, lookup.v1d_1, this);
|
|
3034
3034
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3035
3035
|
return suspendResult;
|
|
3036
3036
|
}
|
|
@@ -3039,7 +3039,7 @@
|
|
|
3039
3039
|
if (lookup instanceof Await) {
|
|
3040
3040
|
this.k7_1 = 4;
|
|
3041
3041
|
this.j7_1 = 3;
|
|
3042
|
-
suspendResult = lookup.
|
|
3042
|
+
suspendResult = lookup.u1d_1.fo(this);
|
|
3043
3043
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3044
3044
|
return suspendResult;
|
|
3045
3045
|
}
|
|
@@ -3091,8 +3091,8 @@
|
|
|
3091
3091
|
};
|
|
3092
3092
|
function $lookupOrClaimCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
3093
3093
|
CoroutineImpl.call(this, resultContinuation);
|
|
3094
|
-
this.
|
|
3095
|
-
this.
|
|
3094
|
+
this.e1e_1 = _this__u8e3s4;
|
|
3095
|
+
this.f1e_1 = key;
|
|
3096
3096
|
}
|
|
3097
3097
|
protoOf($lookupOrClaimCOROUTINE$).r7 = function () {
|
|
3098
3098
|
var suspendResult = this.l7_1;
|
|
@@ -3102,10 +3102,10 @@
|
|
|
3102
3102
|
switch (tmp) {
|
|
3103
3103
|
case 0:
|
|
3104
3104
|
this.k7_1 = 2;
|
|
3105
|
-
this.
|
|
3106
|
-
this.
|
|
3105
|
+
this.h1e_1 = this.e1e_1.n1f_1;
|
|
3106
|
+
this.g1e_1 = null;
|
|
3107
3107
|
this.j7_1 = 1;
|
|
3108
|
-
suspendResult = this.
|
|
3108
|
+
suspendResult = this.h1e_1.qw(this.g1e_1, this);
|
|
3109
3109
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3110
3110
|
return suspendResult;
|
|
3111
3111
|
}
|
|
@@ -3118,22 +3118,22 @@
|
|
|
3118
3118
|
try {
|
|
3119
3119
|
var tmp$ret$0 = Unit_instance;
|
|
3120
3120
|
l$ret$1: do {
|
|
3121
|
-
var hit = this.
|
|
3121
|
+
var hit = this.e1e_1.o1f_1.w3(this.f1e_1);
|
|
3122
3122
|
if (!(hit == null)) {
|
|
3123
|
-
var tmp0 = this.
|
|
3124
|
-
var key = this.
|
|
3123
|
+
var tmp0 = this.e1e_1.o1f_1;
|
|
3124
|
+
var key = this.f1e_1;
|
|
3125
3125
|
tmp0.v3(key, hit);
|
|
3126
3126
|
tmp$ret$0 = new Hit(hit);
|
|
3127
3127
|
break l$ret$1;
|
|
3128
3128
|
}
|
|
3129
|
-
var raced = this.
|
|
3129
|
+
var raced = this.e1e_1.p1f_1.t1(this.f1e_1);
|
|
3130
3130
|
var tmp_1;
|
|
3131
3131
|
if (!(raced == null)) {
|
|
3132
3132
|
tmp_1 = new Await(raced);
|
|
3133
3133
|
} else {
|
|
3134
3134
|
var ours = CompletableDeferred();
|
|
3135
|
-
var tmp0_0 = this.
|
|
3136
|
-
var key_0 = this.
|
|
3135
|
+
var tmp0_0 = this.e1e_1.p1f_1;
|
|
3136
|
+
var key_0 = this.f1e_1;
|
|
3137
3137
|
tmp0_0.v3(key_0, ours);
|
|
3138
3138
|
tmp_1 = new Owner(ours);
|
|
3139
3139
|
}
|
|
@@ -3145,13 +3145,13 @@
|
|
|
3145
3145
|
} catch ($p) {
|
|
3146
3146
|
var tmp_2;
|
|
3147
3147
|
var t = $p;
|
|
3148
|
-
this.
|
|
3148
|
+
this.h1e_1.bw(this.g1e_1);
|
|
3149
3149
|
throw t;
|
|
3150
3150
|
}
|
|
3151
3151
|
}
|
|
3152
3152
|
while (false);
|
|
3153
3153
|
var tmp_3 = tmp$ret$2;
|
|
3154
|
-
this.
|
|
3154
|
+
this.h1e_1.bw(this.g1e_1);
|
|
3155
3155
|
return tmp_3;
|
|
3156
3156
|
case 2:
|
|
3157
3157
|
throw this.m7_1;
|
|
@@ -3169,9 +3169,9 @@
|
|
|
3169
3169
|
};
|
|
3170
3170
|
function $loadCOROUTINE$(_this__u8e3s4, key, ours, resultContinuation) {
|
|
3171
3171
|
CoroutineImpl.call(this, resultContinuation);
|
|
3172
|
-
this.
|
|
3173
|
-
this.
|
|
3174
|
-
this.
|
|
3172
|
+
this.q1e_1 = _this__u8e3s4;
|
|
3173
|
+
this.r1e_1 = key;
|
|
3174
|
+
this.s1e_1 = ours;
|
|
3175
3175
|
}
|
|
3176
3176
|
protoOf($loadCOROUTINE$).r7 = function () {
|
|
3177
3177
|
var suspendResult = this.l7_1;
|
|
@@ -3183,14 +3183,14 @@
|
|
|
3183
3183
|
this.k7_1 = 6;
|
|
3184
3184
|
this.k7_1 = 2;
|
|
3185
3185
|
this.j7_1 = 1;
|
|
3186
|
-
suspendResult = this.
|
|
3186
|
+
suspendResult = this.q1e_1.l1f_1(this.r1e_1, this);
|
|
3187
3187
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3188
3188
|
return suspendResult;
|
|
3189
3189
|
}
|
|
3190
3190
|
|
|
3191
3191
|
continue $sm;
|
|
3192
3192
|
case 1:
|
|
3193
|
-
this.
|
|
3193
|
+
this.u1e_1 = suspendResult;
|
|
3194
3194
|
this.k7_1 = 6;
|
|
3195
3195
|
this.j7_1 = 4;
|
|
3196
3196
|
continue $sm;
|
|
@@ -3198,10 +3198,10 @@
|
|
|
3198
3198
|
this.k7_1 = 6;
|
|
3199
3199
|
var tmp_0 = this.m7_1;
|
|
3200
3200
|
if (tmp_0 instanceof Error) {
|
|
3201
|
-
this.
|
|
3201
|
+
this.v1e_1 = this.m7_1;
|
|
3202
3202
|
this.j7_1 = 3;
|
|
3203
3203
|
var tmp_1 = NonCancellable_getInstance();
|
|
3204
|
-
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.
|
|
3204
|
+
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.q1e_1, this.r1e_1, null), this);
|
|
3205
3205
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3206
3206
|
return suspendResult;
|
|
3207
3207
|
}
|
|
@@ -3212,22 +3212,22 @@
|
|
|
3212
3212
|
|
|
3213
3213
|
case 3:
|
|
3214
3214
|
var tmp_2;
|
|
3215
|
-
var tmp_3 = this.
|
|
3215
|
+
var tmp_3 = this.v1e_1;
|
|
3216
3216
|
if (tmp_3 instanceof CancellationException) {
|
|
3217
3217
|
tmp_2 = new LoadAbandoned();
|
|
3218
3218
|
} else {
|
|
3219
|
-
tmp_2 = this.
|
|
3219
|
+
tmp_2 = this.v1e_1;
|
|
3220
3220
|
}
|
|
3221
3221
|
|
|
3222
|
-
this.
|
|
3222
|
+
this.s1e_1.jr(tmp_2);
|
|
3223
3223
|
var tmp_4 = this;
|
|
3224
|
-
throw this.
|
|
3224
|
+
throw this.v1e_1;
|
|
3225
3225
|
case 4:
|
|
3226
3226
|
this.k7_1 = 6;
|
|
3227
|
-
this.
|
|
3227
|
+
this.t1e_1 = this.u1e_1;
|
|
3228
3228
|
this.j7_1 = 5;
|
|
3229
3229
|
var tmp_5 = NonCancellable_getInstance();
|
|
3230
|
-
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.
|
|
3230
|
+
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.q1e_1, this.r1e_1, this.t1e_1, null), this);
|
|
3231
3231
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3232
3232
|
return suspendResult;
|
|
3233
3233
|
}
|
|
@@ -3235,16 +3235,16 @@
|
|
|
3235
3235
|
continue $sm;
|
|
3236
3236
|
case 5:
|
|
3237
3237
|
var evicted = suspendResult;
|
|
3238
|
-
this.
|
|
3238
|
+
this.s1e_1.ir(this.t1e_1);
|
|
3239
3239
|
if (!(evicted == null)) {
|
|
3240
|
-
var tmp0_safe_receiver = this.
|
|
3240
|
+
var tmp0_safe_receiver = this.q1e_1.m1f_1;
|
|
3241
3241
|
if (tmp0_safe_receiver == null)
|
|
3242
3242
|
null;
|
|
3243
3243
|
else
|
|
3244
3244
|
tmp0_safe_receiver(evicted);
|
|
3245
3245
|
}
|
|
3246
3246
|
|
|
3247
|
-
return this.
|
|
3247
|
+
return this.t1e_1;
|
|
3248
3248
|
case 6:
|
|
3249
3249
|
throw this.m7_1;
|
|
3250
3250
|
}
|
|
@@ -3261,33 +3261,33 @@
|
|
|
3261
3261
|
};
|
|
3262
3262
|
function LruCache(maxSize, loader, onEvict) {
|
|
3263
3263
|
onEvict = onEvict === VOID ? null : onEvict;
|
|
3264
|
-
this.
|
|
3265
|
-
this.
|
|
3266
|
-
this.
|
|
3264
|
+
this.k1f_1 = maxSize;
|
|
3265
|
+
this.l1f_1 = loader;
|
|
3266
|
+
this.m1f_1 = onEvict;
|
|
3267
3267
|
// Inline function 'kotlin.require' call
|
|
3268
|
-
if (!(this.
|
|
3268
|
+
if (!(this.k1f_1 > 0)) {
|
|
3269
3269
|
var message = 'Cache size must be greater than 0';
|
|
3270
3270
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3271
3271
|
}
|
|
3272
|
-
this.
|
|
3273
|
-
this.
|
|
3272
|
+
this.n1f_1 = Mutex();
|
|
3273
|
+
this.o1f_1 = LinkedHashMap_init_$Create$();
|
|
3274
3274
|
var tmp = this;
|
|
3275
3275
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
3276
|
-
tmp.
|
|
3276
|
+
tmp.p1f_1 = LinkedHashMap_init_$Create$();
|
|
3277
3277
|
}
|
|
3278
|
-
protoOf(LruCache).
|
|
3278
|
+
protoOf(LruCache).p1g = function (key, $completion) {
|
|
3279
3279
|
var tmp = new $getCOROUTINE$(this, key, $completion);
|
|
3280
3280
|
tmp.l7_1 = Unit_instance;
|
|
3281
3281
|
tmp.m7_1 = null;
|
|
3282
3282
|
return tmp.r7();
|
|
3283
3283
|
};
|
|
3284
3284
|
function RawTile(width, height, rgba) {
|
|
3285
|
-
this.
|
|
3286
|
-
this.
|
|
3287
|
-
this.
|
|
3285
|
+
this.q1g_1 = width;
|
|
3286
|
+
this.r1g_1 = height;
|
|
3287
|
+
this.s1g_1 = rgba;
|
|
3288
3288
|
// Inline function 'kotlin.require' call
|
|
3289
|
-
if (!(this.
|
|
3290
|
-
var message = 'rgba size ' + this.
|
|
3289
|
+
if (!(this.s1g_1.length === imul(imul(this.q1g_1, this.r1g_1), 4))) {
|
|
3290
|
+
var message = 'rgba size ' + this.s1g_1.length + ' does not match width*height*4 (' + imul(imul(this.q1g_1, this.r1g_1), 4) + ')';
|
|
3291
3291
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3292
3292
|
}
|
|
3293
3293
|
}
|
|
@@ -3296,41 +3296,41 @@
|
|
|
3296
3296
|
return true;
|
|
3297
3297
|
if (!(other instanceof RawTile))
|
|
3298
3298
|
return false;
|
|
3299
|
-
return this.
|
|
3299
|
+
return this.q1g_1 === other.q1g_1 && this.r1g_1 === other.r1g_1 && contentEquals(this.s1g_1, other.s1g_1);
|
|
3300
3300
|
};
|
|
3301
3301
|
protoOf(RawTile).hashCode = function () {
|
|
3302
|
-
var result = this.
|
|
3303
|
-
result = imul(31, result) + this.
|
|
3304
|
-
result = imul(31, result) + contentHashCode(this.
|
|
3302
|
+
var result = this.q1g_1;
|
|
3303
|
+
result = imul(31, result) + this.r1g_1 | 0;
|
|
3304
|
+
result = imul(31, result) + contentHashCode(this.s1g_1) | 0;
|
|
3305
3305
|
return result;
|
|
3306
3306
|
};
|
|
3307
3307
|
function TerrainSample(latitude, longitude, elevation, origin, afterError) {
|
|
3308
|
-
this.
|
|
3309
|
-
this.
|
|
3310
|
-
this.
|
|
3311
|
-
this.
|
|
3312
|
-
this.
|
|
3308
|
+
this.h19_1 = latitude;
|
|
3309
|
+
this.i19_1 = longitude;
|
|
3310
|
+
this.j19_1 = elevation;
|
|
3311
|
+
this.k19_1 = origin;
|
|
3312
|
+
this.l19_1 = afterError;
|
|
3313
3313
|
}
|
|
3314
|
-
protoOf(TerrainSample).
|
|
3314
|
+
protoOf(TerrainSample).t1g = function (latitude, longitude, elevation, origin, afterError) {
|
|
3315
3315
|
return new TerrainSample(latitude, longitude, elevation, origin, afterError);
|
|
3316
3316
|
};
|
|
3317
|
-
protoOf(TerrainSample).
|
|
3318
|
-
latitude = latitude === VOID ? this.
|
|
3319
|
-
longitude = longitude === VOID ? this.
|
|
3320
|
-
elevation = elevation === VOID ? this.
|
|
3321
|
-
origin = origin === VOID ? this.
|
|
3322
|
-
afterError = afterError === VOID ? this.
|
|
3323
|
-
return $super === VOID ? this.
|
|
3317
|
+
protoOf(TerrainSample).m19 = function (latitude, longitude, elevation, origin, afterError, $super) {
|
|
3318
|
+
latitude = latitude === VOID ? this.h19_1 : latitude;
|
|
3319
|
+
longitude = longitude === VOID ? this.i19_1 : longitude;
|
|
3320
|
+
elevation = elevation === VOID ? this.j19_1 : elevation;
|
|
3321
|
+
origin = origin === VOID ? this.k19_1 : origin;
|
|
3322
|
+
afterError = afterError === VOID ? this.l19_1 : afterError;
|
|
3323
|
+
return $super === VOID ? this.t1g(latitude, longitude, elevation, origin, afterError) : $super.t1g.call(this, latitude, longitude, elevation, origin, afterError);
|
|
3324
3324
|
};
|
|
3325
3325
|
protoOf(TerrainSample).toString = function () {
|
|
3326
|
-
return 'TerrainSample(latitude=' + this.
|
|
3326
|
+
return 'TerrainSample(latitude=' + this.h19_1 + ', longitude=' + this.i19_1 + ', elevation=' + this.j19_1 + ', origin=' + this.k19_1.toString() + ', afterError=' + this.l19_1 + ')';
|
|
3327
3327
|
};
|
|
3328
3328
|
protoOf(TerrainSample).hashCode = function () {
|
|
3329
|
-
var result = getNumberHashCode(this.
|
|
3330
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3331
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3332
|
-
result = imul(result, 31) + this.
|
|
3333
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3329
|
+
var result = getNumberHashCode(this.h19_1);
|
|
3330
|
+
result = imul(result, 31) + getNumberHashCode(this.i19_1) | 0;
|
|
3331
|
+
result = imul(result, 31) + getNumberHashCode(this.j19_1) | 0;
|
|
3332
|
+
result = imul(result, 31) + this.k19_1.hashCode() | 0;
|
|
3333
|
+
result = imul(result, 31) + getBooleanHashCode(this.l19_1) | 0;
|
|
3334
3334
|
return result;
|
|
3335
3335
|
};
|
|
3336
3336
|
protoOf(TerrainSample).equals = function (other) {
|
|
@@ -3338,15 +3338,15 @@
|
|
|
3338
3338
|
return true;
|
|
3339
3339
|
if (!(other instanceof TerrainSample))
|
|
3340
3340
|
return false;
|
|
3341
|
-
if (!equals(this.
|
|
3341
|
+
if (!equals(this.h19_1, other.h19_1))
|
|
3342
3342
|
return false;
|
|
3343
|
-
if (!equals(this.
|
|
3343
|
+
if (!equals(this.i19_1, other.i19_1))
|
|
3344
3344
|
return false;
|
|
3345
|
-
if (!equals(this.
|
|
3345
|
+
if (!equals(this.j19_1, other.j19_1))
|
|
3346
3346
|
return false;
|
|
3347
|
-
if (!this.
|
|
3347
|
+
if (!this.k19_1.equals(other.k19_1))
|
|
3348
3348
|
return false;
|
|
3349
|
-
if (!(this.
|
|
3349
|
+
if (!(this.l19_1 === other.l19_1))
|
|
3350
3350
|
return false;
|
|
3351
3351
|
return true;
|
|
3352
3352
|
};
|
|
@@ -3380,13 +3380,13 @@
|
|
|
3380
3380
|
var _iterator__ex2g4s = this_0.l();
|
|
3381
3381
|
while (_iterator__ex2g4s.m()) {
|
|
3382
3382
|
var item = _iterator__ex2g4s.n();
|
|
3383
|
-
var tmp$ret$2 = item.
|
|
3383
|
+
var tmp$ret$2 = item.w1g_1;
|
|
3384
3384
|
destination.k(tmp$ret$2);
|
|
3385
3385
|
}
|
|
3386
|
-
tmp.
|
|
3386
|
+
tmp.f19_1 = destination;
|
|
3387
3387
|
}
|
|
3388
|
-
protoOf(Companion_0).
|
|
3389
|
-
var template = config.
|
|
3388
|
+
protoOf(Companion_0).g19 = function (config, declared, latitude, longitude) {
|
|
3389
|
+
var template = config.a19_1;
|
|
3390
3390
|
var tmp;
|
|
3391
3391
|
var tmp0 = get_entries_0();
|
|
3392
3392
|
var tmp$ret$0;
|
|
@@ -3405,7 +3405,7 @@
|
|
|
3405
3405
|
var _iterator__ex2g4s = tmp0.l();
|
|
3406
3406
|
while (_iterator__ex2g4s.m()) {
|
|
3407
3407
|
var element = _iterator__ex2g4s.n();
|
|
3408
|
-
if (element.
|
|
3408
|
+
if (element.m1b(config.y18_1).a19_1 === template) {
|
|
3409
3409
|
tmp$ret$0 = true;
|
|
3410
3410
|
break $l$block_0;
|
|
3411
3411
|
}
|
|
@@ -3415,7 +3415,7 @@
|
|
|
3415
3415
|
if (tmp$ret$0) {
|
|
3416
3416
|
tmp = ElevationSource_IGN_LIDAR_HD_getInstance();
|
|
3417
3417
|
} else {
|
|
3418
|
-
if (template === ElevationSource_MAPTERHORN_getInstance().
|
|
3418
|
+
if (template === ElevationSource_MAPTERHORN_getInstance().m1b(config.y18_1).a19_1) {
|
|
3419
3419
|
tmp = ElevationSource_MAPTERHORN_getInstance();
|
|
3420
3420
|
} else {
|
|
3421
3421
|
tmp = declared;
|
|
@@ -3428,7 +3428,7 @@
|
|
|
3428
3428
|
tmp_1 = TerrainOrigin_IGN_LIDAR_HD_getInstance();
|
|
3429
3429
|
break;
|
|
3430
3430
|
case 0:
|
|
3431
|
-
tmp_1 = IgnLidarHdCoverage_getInstance().
|
|
3431
|
+
tmp_1 = IgnLidarHdCoverage_getInstance().f1d(latitude, longitude) ? TerrainOrigin_MAPTERHORN_MEASURED_getInstance() : TerrainOrigin_MAPTERHORN_getInstance();
|
|
3432
3432
|
break;
|
|
3433
3433
|
case -1:
|
|
3434
3434
|
tmp_1 = TerrainOrigin_OTHER_getInstance();
|
|
@@ -3457,8 +3457,8 @@
|
|
|
3457
3457
|
var $ENTRIES_1;
|
|
3458
3458
|
function TerrainOrigin(name, ordinal, id, measured) {
|
|
3459
3459
|
Enum.call(this, name, ordinal);
|
|
3460
|
-
this.
|
|
3461
|
-
this.
|
|
3460
|
+
this.w1g_1 = id;
|
|
3461
|
+
this.x1g_1 = measured;
|
|
3462
3462
|
}
|
|
3463
3463
|
function TerrainOrigin_IGN_LIDAR_HD_getInstance() {
|
|
3464
3464
|
static_init_2();
|
|
@@ -3481,7 +3481,7 @@
|
|
|
3481
3481
|
return TerrainOrigin_NONE_instance;
|
|
3482
3482
|
}
|
|
3483
3483
|
function Tile_init_$Init$(raw, $this) {
|
|
3484
|
-
Tile.call($this, raw.
|
|
3484
|
+
Tile.call($this, raw.q1g_1, raw.r1g_1, raw.s1g_1);
|
|
3485
3485
|
return $this;
|
|
3486
3486
|
}
|
|
3487
3487
|
function Tile_init_$Create$(raw) {
|
|
@@ -3489,7 +3489,7 @@
|
|
|
3489
3489
|
}
|
|
3490
3490
|
function Companion_1() {
|
|
3491
3491
|
}
|
|
3492
|
-
protoOf(Companion_1).
|
|
3492
|
+
protoOf(Companion_1).y1g = function (r, g, b) {
|
|
3493
3493
|
var raw = r * 256.0 + g + b / 256.0 - 32768.0;
|
|
3494
3494
|
return round(raw * 100.0) / 100.0;
|
|
3495
3495
|
};
|
|
@@ -3502,18 +3502,8 @@
|
|
|
3502
3502
|
this.d16_1 = height;
|
|
3503
3503
|
this.e16_1 = rgba;
|
|
3504
3504
|
this.f16_1 = false;
|
|
3505
|
-
var tmp = this;
|
|
3506
|
-
var tmp_0 = 0;
|
|
3507
|
-
var tmp_1 = imul(this.c16_1, this.d16_1);
|
|
3508
|
-
var tmp_2 = new Float64Array(tmp_1);
|
|
3509
|
-
while (tmp_0 < tmp_1) {
|
|
3510
|
-
tmp_2[tmp_0] = NaN;
|
|
3511
|
-
tmp_0 = tmp_0 + 1 | 0;
|
|
3512
|
-
}
|
|
3513
|
-
tmp.g16_1 = tmp_2;
|
|
3514
|
-
this.h16_1 = 0;
|
|
3515
3505
|
}
|
|
3516
|
-
protoOf(Tile).
|
|
3506
|
+
protoOf(Tile).g16 = function (pixel) {
|
|
3517
3507
|
var containsUpper = this.c16_1;
|
|
3518
3508
|
var containsArg = pixel.v15_1;
|
|
3519
3509
|
// Inline function 'kotlin.require' call
|
|
@@ -3528,18 +3518,11 @@
|
|
|
3528
3518
|
var message_0 = 'Invalid y position: ' + pixel.w15_1 + '. Must be between 0 and ' + (this.d16_1 - 1 | 0);
|
|
3529
3519
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
3530
3520
|
}
|
|
3531
|
-
var
|
|
3532
|
-
var cached = this.g16_1[idx];
|
|
3533
|
-
if (!isNaN_0(cached))
|
|
3534
|
-
return cached;
|
|
3535
|
-
var byteOffset = imul(idx, 4);
|
|
3521
|
+
var byteOffset = imul(imul(pixel.w15_1, this.c16_1) + pixel.v15_1 | 0, 4);
|
|
3536
3522
|
var r = this.e16_1[byteOffset] & 255;
|
|
3537
3523
|
var g = this.e16_1[byteOffset + 1 | 0] & 255;
|
|
3538
3524
|
var b = this.e16_1[byteOffset + 2 | 0] & 255;
|
|
3539
|
-
|
|
3540
|
-
this.g16_1[idx] = elevation;
|
|
3541
|
-
this.h16_1 = this.h16_1 + 1 | 0;
|
|
3542
|
-
return elevation;
|
|
3525
|
+
return r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_2.y1g(r, g, b);
|
|
3543
3526
|
};
|
|
3544
3527
|
function UnreadableTiles$Companion$monotonicClock$lambda($origin) {
|
|
3545
3528
|
return function () {
|
|
@@ -3547,11 +3530,11 @@
|
|
|
3547
3530
|
};
|
|
3548
3531
|
}
|
|
3549
3532
|
function Entry(failure, untilMs) {
|
|
3550
|
-
this.
|
|
3551
|
-
this.
|
|
3533
|
+
this.z1g_1 = failure;
|
|
3534
|
+
this.a1h_1 = untilMs;
|
|
3552
3535
|
}
|
|
3553
3536
|
function _get_empty__hz710c($this) {
|
|
3554
|
-
var tmp0 = $this.
|
|
3537
|
+
var tmp0 = $this.h1h_1;
|
|
3555
3538
|
var tmp = KProperty1;
|
|
3556
3539
|
// Inline function 'kotlin.getValue' call
|
|
3557
3540
|
getPropertyCallableRef('empty', 1, tmp, UnreadableTiles$_get_empty_$ref_9kivqt(), null);
|
|
@@ -3559,11 +3542,11 @@
|
|
|
3559
3542
|
}
|
|
3560
3543
|
function Companion_2() {
|
|
3561
3544
|
Companion_instance_3 = this;
|
|
3562
|
-
this.
|
|
3545
|
+
this.i1h_1 = new Long(60000, 0);
|
|
3563
3546
|
var tmp = this;
|
|
3564
3547
|
// Inline function 'kotlin.let' call
|
|
3565
3548
|
var origin = Monotonic_instance.wb();
|
|
3566
|
-
tmp.
|
|
3549
|
+
tmp.j1h_1 = UnreadableTiles$Companion$monotonicClock$lambda(origin);
|
|
3567
3550
|
}
|
|
3568
3551
|
var Companion_instance_3;
|
|
3569
3552
|
function Companion_getInstance_3() {
|
|
@@ -3574,7 +3557,7 @@
|
|
|
3574
3557
|
function UnreadableTiles$empty$delegate$lambda(this$0) {
|
|
3575
3558
|
return function () {
|
|
3576
3559
|
// Inline function 'kotlin.also' call
|
|
3577
|
-
var this_0 = Tile_init_$Create$(noDataTile(this$0.
|
|
3560
|
+
var this_0 = Tile_init_$Create$(noDataTile(this$0.c1h_1));
|
|
3578
3561
|
this_0.f16_1 = true;
|
|
3579
3562
|
return this_0;
|
|
3580
3563
|
};
|
|
@@ -3586,8 +3569,8 @@
|
|
|
3586
3569
|
}
|
|
3587
3570
|
function $cachedCOROUTINE$(_this__u8e3s4, tc, resultContinuation) {
|
|
3588
3571
|
CoroutineImpl.call(this, resultContinuation);
|
|
3589
|
-
this.
|
|
3590
|
-
this.
|
|
3572
|
+
this.s1h_1 = _this__u8e3s4;
|
|
3573
|
+
this.t1h_1 = tc;
|
|
3591
3574
|
}
|
|
3592
3575
|
protoOf($cachedCOROUTINE$).r7 = function () {
|
|
3593
3576
|
var suspendResult = this.l7_1;
|
|
@@ -3597,10 +3580,10 @@
|
|
|
3597
3580
|
switch (tmp) {
|
|
3598
3581
|
case 0:
|
|
3599
3582
|
this.k7_1 = 4;
|
|
3600
|
-
this.
|
|
3601
|
-
this.
|
|
3583
|
+
this.w1h_1 = this.s1h_1.f1h_1;
|
|
3584
|
+
this.v1h_1 = null;
|
|
3602
3585
|
this.j7_1 = 1;
|
|
3603
|
-
suspendResult = this.
|
|
3586
|
+
suspendResult = this.w1h_1.qw(this.v1h_1, this);
|
|
3604
3587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3605
3588
|
return suspendResult;
|
|
3606
3589
|
}
|
|
@@ -3613,7 +3596,7 @@
|
|
|
3613
3596
|
l$ret$1: do {
|
|
3614
3597
|
var tmp_0;
|
|
3615
3598
|
try {
|
|
3616
|
-
var tmp0_elvis_lhs = this.
|
|
3599
|
+
var tmp0_elvis_lhs = this.s1h_1.g1h_1.t1(this.t1h_1);
|
|
3617
3600
|
var tmp_1;
|
|
3618
3601
|
if (tmp0_elvis_lhs == null) {
|
|
3619
3602
|
tmp$ret$0 = null;
|
|
@@ -3622,8 +3605,8 @@
|
|
|
3622
3605
|
tmp_1 = tmp0_elvis_lhs;
|
|
3623
3606
|
}
|
|
3624
3607
|
var e = tmp_1;
|
|
3625
|
-
if (compare(this.
|
|
3626
|
-
this.
|
|
3608
|
+
if (compare(this.s1h_1.e1h_1(), e.a1h_1) >= 0) {
|
|
3609
|
+
this.s1h_1.g1h_1.w3(this.t1h_1);
|
|
3627
3610
|
tmp$ret$0 = null;
|
|
3628
3611
|
break l$ret$1;
|
|
3629
3612
|
}
|
|
@@ -3632,27 +3615,27 @@
|
|
|
3632
3615
|
} catch ($p) {
|
|
3633
3616
|
var tmp_2;
|
|
3634
3617
|
var t = $p;
|
|
3635
|
-
this.
|
|
3618
|
+
this.w1h_1.bw(this.v1h_1);
|
|
3636
3619
|
throw t;
|
|
3637
3620
|
}
|
|
3638
3621
|
}
|
|
3639
3622
|
while (false);
|
|
3640
3623
|
var tmp_3 = tmp$ret$0;
|
|
3641
|
-
this.
|
|
3624
|
+
this.w1h_1.bw(this.v1h_1);
|
|
3642
3625
|
return tmp_3;
|
|
3643
3626
|
}
|
|
3644
3627
|
while (false);
|
|
3645
3628
|
var tmp_4 = tmp$ret$2;
|
|
3646
|
-
this.
|
|
3629
|
+
this.w1h_1.bw(this.v1h_1);
|
|
3647
3630
|
var entry = tmp_4;
|
|
3648
3631
|
var tmp0_safe_receiver = this.p7().w7(Key_instance);
|
|
3649
3632
|
if (tmp0_safe_receiver == null) {
|
|
3650
|
-
this.
|
|
3633
|
+
this.u1h_1 = null;
|
|
3651
3634
|
this.j7_1 = 3;
|
|
3652
3635
|
continue $sm;
|
|
3653
3636
|
} else {
|
|
3654
3637
|
this.j7_1 = 2;
|
|
3655
|
-
suspendResult = tmp0_safe_receiver.
|
|
3638
|
+
suspendResult = tmp0_safe_receiver.a1i(entry.z1g_1, this);
|
|
3656
3639
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3657
3640
|
return suspendResult;
|
|
3658
3641
|
}
|
|
@@ -3661,11 +3644,11 @@
|
|
|
3661
3644
|
|
|
3662
3645
|
case 2:
|
|
3663
3646
|
var tmp_5 = this;
|
|
3664
|
-
tmp_5.
|
|
3647
|
+
tmp_5.u1h_1 = Unit_instance;
|
|
3665
3648
|
this.j7_1 = 3;
|
|
3666
3649
|
continue $sm;
|
|
3667
3650
|
case 3:
|
|
3668
|
-
return _get_empty__hz710c(this.
|
|
3651
|
+
return _get_empty__hz710c(this.s1h_1);
|
|
3669
3652
|
case 4:
|
|
3670
3653
|
throw this.m7_1;
|
|
3671
3654
|
}
|
|
@@ -3682,9 +3665,9 @@
|
|
|
3682
3665
|
};
|
|
3683
3666
|
function $rememberCOROUTINE$(_this__u8e3s4, tc, error, resultContinuation) {
|
|
3684
3667
|
CoroutineImpl.call(this, resultContinuation);
|
|
3685
|
-
this.
|
|
3686
|
-
this.
|
|
3687
|
-
this.
|
|
3668
|
+
this.j1i_1 = _this__u8e3s4;
|
|
3669
|
+
this.k1i_1 = tc;
|
|
3670
|
+
this.l1i_1 = error;
|
|
3688
3671
|
}
|
|
3689
3672
|
protoOf($rememberCOROUTINE$).r7 = function () {
|
|
3690
3673
|
var suspendResult = this.l7_1;
|
|
@@ -3695,13 +3678,13 @@
|
|
|
3695
3678
|
case 0:
|
|
3696
3679
|
this.k7_1 = 4;
|
|
3697
3680
|
var tmp_0 = this;
|
|
3698
|
-
var tmp0_elvis_lhs = this.
|
|
3699
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(this.
|
|
3700
|
-
tmp_0.
|
|
3701
|
-
this.
|
|
3702
|
-
this.
|
|
3681
|
+
var tmp0_elvis_lhs = this.l1i_1.message;
|
|
3682
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(this.l1i_1).t8() : tmp0_elvis_lhs;
|
|
3683
|
+
tmp_0.n1i_1 = new TileFailure(this.j1i_1.b1h_1, this.k1i_1, tmp1_elvis_lhs == null ? 'error' : tmp1_elvis_lhs);
|
|
3684
|
+
this.p1i_1 = this.j1i_1.f1h_1;
|
|
3685
|
+
this.o1i_1 = null;
|
|
3703
3686
|
this.j7_1 = 1;
|
|
3704
|
-
suspendResult = this.
|
|
3687
|
+
suspendResult = this.p1i_1.qw(this.o1i_1, this);
|
|
3705
3688
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3706
3689
|
return suspendResult;
|
|
3707
3690
|
}
|
|
@@ -3711,28 +3694,28 @@
|
|
|
3711
3694
|
l$ret$1: do {
|
|
3712
3695
|
var tmp_1;
|
|
3713
3696
|
try {
|
|
3714
|
-
var tmp0 = this.
|
|
3715
|
-
var tmp2 = this.
|
|
3716
|
-
var value = new Entry(this.
|
|
3697
|
+
var tmp0 = this.j1i_1.g1h_1;
|
|
3698
|
+
var tmp2 = this.k1i_1;
|
|
3699
|
+
var value = new Entry(this.n1i_1, add(this.j1i_1.e1h_1(), this.j1i_1.d1h_1));
|
|
3717
3700
|
tmp0.v3(tmp2, value);
|
|
3718
3701
|
break l$ret$1;
|
|
3719
3702
|
} catch ($p) {
|
|
3720
3703
|
var tmp_2;
|
|
3721
3704
|
var t = $p;
|
|
3722
|
-
this.
|
|
3705
|
+
this.p1i_1.bw(this.o1i_1);
|
|
3723
3706
|
throw t;
|
|
3724
3707
|
}
|
|
3725
3708
|
}
|
|
3726
3709
|
while (false);
|
|
3727
|
-
this.
|
|
3710
|
+
this.p1i_1.bw(this.o1i_1);
|
|
3728
3711
|
var tmp2_safe_receiver = this.p7().w7(Key_instance);
|
|
3729
3712
|
if (tmp2_safe_receiver == null) {
|
|
3730
|
-
this.
|
|
3713
|
+
this.m1i_1 = null;
|
|
3731
3714
|
this.j7_1 = 3;
|
|
3732
3715
|
continue $sm;
|
|
3733
3716
|
} else {
|
|
3734
3717
|
this.j7_1 = 2;
|
|
3735
|
-
suspendResult = tmp2_safe_receiver.
|
|
3718
|
+
suspendResult = tmp2_safe_receiver.a1i(this.n1i_1, this);
|
|
3736
3719
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3737
3720
|
return suspendResult;
|
|
3738
3721
|
}
|
|
@@ -3741,11 +3724,11 @@
|
|
|
3741
3724
|
|
|
3742
3725
|
case 2:
|
|
3743
3726
|
var tmp_3 = this;
|
|
3744
|
-
tmp_3.
|
|
3727
|
+
tmp_3.m1i_1 = Unit_instance;
|
|
3745
3728
|
this.j7_1 = 3;
|
|
3746
3729
|
continue $sm;
|
|
3747
3730
|
case 3:
|
|
3748
|
-
return _get_empty__hz710c(this.
|
|
3731
|
+
return _get_empty__hz710c(this.j1i_1);
|
|
3749
3732
|
case 4:
|
|
3750
3733
|
throw this.m7_1;
|
|
3751
3734
|
}
|
|
@@ -3763,40 +3746,40 @@
|
|
|
3763
3746
|
function UnreadableTiles(urlTemplate, tileSize, retryAfterMs, now) {
|
|
3764
3747
|
Companion_getInstance_3();
|
|
3765
3748
|
retryAfterMs = retryAfterMs === VOID ? new Long(60000, 0) : retryAfterMs;
|
|
3766
|
-
now = now === VOID ? Companion_getInstance_3().
|
|
3767
|
-
this.
|
|
3768
|
-
this.
|
|
3769
|
-
this.
|
|
3770
|
-
this.
|
|
3771
|
-
this.
|
|
3772
|
-
this.
|
|
3749
|
+
now = now === VOID ? Companion_getInstance_3().j1h_1 : now;
|
|
3750
|
+
this.b1h_1 = urlTemplate;
|
|
3751
|
+
this.c1h_1 = tileSize;
|
|
3752
|
+
this.d1h_1 = retryAfterMs;
|
|
3753
|
+
this.e1h_1 = now;
|
|
3754
|
+
this.f1h_1 = Mutex();
|
|
3755
|
+
this.g1h_1 = HashMap_init_$Create$();
|
|
3773
3756
|
var tmp = this;
|
|
3774
|
-
tmp.
|
|
3757
|
+
tmp.h1h_1 = lazy(UnreadableTiles$empty$delegate$lambda(this));
|
|
3775
3758
|
}
|
|
3776
|
-
protoOf(UnreadableTiles).
|
|
3759
|
+
protoOf(UnreadableTiles).q1i = function (tc, $completion) {
|
|
3777
3760
|
var tmp = new $cachedCOROUTINE$(this, tc, $completion);
|
|
3778
3761
|
tmp.l7_1 = Unit_instance;
|
|
3779
3762
|
tmp.m7_1 = null;
|
|
3780
3763
|
return tmp.r7();
|
|
3781
3764
|
};
|
|
3782
|
-
protoOf(UnreadableTiles).
|
|
3765
|
+
protoOf(UnreadableTiles).r1i = function (tc, error, $completion) {
|
|
3783
3766
|
var tmp = new $rememberCOROUTINE$(this, tc, error, $completion);
|
|
3784
3767
|
tmp.l7_1 = Unit_instance;
|
|
3785
3768
|
tmp.m7_1 = null;
|
|
3786
3769
|
return tmp.r7();
|
|
3787
3770
|
};
|
|
3788
3771
|
function TileFailure(urlTemplate, tile, message) {
|
|
3789
|
-
this.
|
|
3790
|
-
this.
|
|
3791
|
-
this.
|
|
3772
|
+
this.s1i_1 = urlTemplate;
|
|
3773
|
+
this.t1i_1 = tile;
|
|
3774
|
+
this.u1i_1 = message;
|
|
3792
3775
|
}
|
|
3793
3776
|
protoOf(TileFailure).toString = function () {
|
|
3794
|
-
return 'TileFailure(urlTemplate=' + this.
|
|
3777
|
+
return 'TileFailure(urlTemplate=' + this.s1i_1 + ', tile=' + this.t1i_1.toString() + ', message=' + this.u1i_1 + ')';
|
|
3795
3778
|
};
|
|
3796
3779
|
protoOf(TileFailure).hashCode = function () {
|
|
3797
|
-
var result = getStringHashCode(this.
|
|
3798
|
-
result = imul(result, 31) + this.
|
|
3799
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3780
|
+
var result = getStringHashCode(this.s1i_1);
|
|
3781
|
+
result = imul(result, 31) + this.t1i_1.hashCode() | 0;
|
|
3782
|
+
result = imul(result, 31) + getStringHashCode(this.u1i_1) | 0;
|
|
3800
3783
|
return result;
|
|
3801
3784
|
};
|
|
3802
3785
|
protoOf(TileFailure).equals = function (other) {
|
|
@@ -3804,11 +3787,11 @@
|
|
|
3804
3787
|
return true;
|
|
3805
3788
|
if (!(other instanceof TileFailure))
|
|
3806
3789
|
return false;
|
|
3807
|
-
if (!(this.
|
|
3790
|
+
if (!(this.s1i_1 === other.s1i_1))
|
|
3808
3791
|
return false;
|
|
3809
|
-
if (!this.
|
|
3792
|
+
if (!this.t1i_1.equals(other.t1i_1))
|
|
3810
3793
|
return false;
|
|
3811
|
-
if (!(this.
|
|
3794
|
+
if (!(this.u1i_1 === other.u1i_1))
|
|
3812
3795
|
return false;
|
|
3813
3796
|
return true;
|
|
3814
3797
|
};
|
|
@@ -3820,8 +3803,8 @@
|
|
|
3820
3803
|
}
|
|
3821
3804
|
function $recordCOROUTINE$(_this__u8e3s4, failure, resultContinuation) {
|
|
3822
3805
|
CoroutineImpl.call(this, resultContinuation);
|
|
3823
|
-
this.
|
|
3824
|
-
this.
|
|
3806
|
+
this.d1j_1 = _this__u8e3s4;
|
|
3807
|
+
this.e1j_1 = failure;
|
|
3825
3808
|
}
|
|
3826
3809
|
protoOf($recordCOROUTINE$).r7 = function () {
|
|
3827
3810
|
var suspendResult = this.l7_1;
|
|
@@ -3831,10 +3814,10 @@
|
|
|
3831
3814
|
switch (tmp) {
|
|
3832
3815
|
case 0:
|
|
3833
3816
|
this.k7_1 = 2;
|
|
3834
|
-
this.
|
|
3835
|
-
this.
|
|
3817
|
+
this.g1j_1 = this.d1j_1.y1h_1;
|
|
3818
|
+
this.f1j_1 = null;
|
|
3836
3819
|
this.j7_1 = 1;
|
|
3837
|
-
suspendResult = this.
|
|
3820
|
+
suspendResult = this.g1j_1.qw(this.f1j_1, this);
|
|
3838
3821
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3839
3822
|
return suspendResult;
|
|
3840
3823
|
}
|
|
@@ -3844,12 +3827,12 @@
|
|
|
3844
3827
|
l$ret$1: do {
|
|
3845
3828
|
var tmp_0;
|
|
3846
3829
|
try {
|
|
3847
|
-
var tmp0 = this.
|
|
3848
|
-
var key = this.
|
|
3830
|
+
var tmp0 = this.d1j_1.z1h_1;
|
|
3831
|
+
var key = this.e1j_1.s1i_1 + '|' + this.e1j_1.t1i_1.toString();
|
|
3849
3832
|
var value = tmp0.t1(key);
|
|
3850
3833
|
var tmp_1;
|
|
3851
3834
|
if (value == null) {
|
|
3852
|
-
var answer = this.
|
|
3835
|
+
var answer = this.e1j_1;
|
|
3853
3836
|
tmp0.v3(key, answer);
|
|
3854
3837
|
tmp_1 = answer;
|
|
3855
3838
|
} else {
|
|
@@ -3859,12 +3842,12 @@
|
|
|
3859
3842
|
} catch ($p) {
|
|
3860
3843
|
var tmp_2;
|
|
3861
3844
|
var t = $p;
|
|
3862
|
-
this.
|
|
3845
|
+
this.g1j_1.bw(this.f1j_1);
|
|
3863
3846
|
throw t;
|
|
3864
3847
|
}
|
|
3865
3848
|
}
|
|
3866
3849
|
while (false);
|
|
3867
|
-
this.
|
|
3850
|
+
this.g1j_1.bw(this.f1j_1);
|
|
3868
3851
|
return Unit_instance;
|
|
3869
3852
|
case 2:
|
|
3870
3853
|
throw this.m7_1;
|
|
@@ -3882,17 +3865,17 @@
|
|
|
3882
3865
|
};
|
|
3883
3866
|
function TileFailureLog() {
|
|
3884
3867
|
AbstractCoroutineContextElement.call(this, Key_instance);
|
|
3885
|
-
this.
|
|
3886
|
-
this.
|
|
3868
|
+
this.y1h_1 = Mutex();
|
|
3869
|
+
this.z1h_1 = LinkedHashMap_init_$Create$();
|
|
3887
3870
|
}
|
|
3888
|
-
protoOf(TileFailureLog).
|
|
3871
|
+
protoOf(TileFailureLog).a1i = function (failure, $completion) {
|
|
3889
3872
|
var tmp = new $recordCOROUTINE$(this, failure, $completion);
|
|
3890
3873
|
tmp.l7_1 = Unit_instance;
|
|
3891
3874
|
tmp.m7_1 = null;
|
|
3892
3875
|
return tmp.r7();
|
|
3893
3876
|
};
|
|
3894
|
-
protoOf(TileFailureLog).
|
|
3895
|
-
return toList_0(this.
|
|
3877
|
+
protoOf(TileFailureLog).h1j = function () {
|
|
3878
|
+
return toList_0(this.z1h_1.v1());
|
|
3896
3879
|
};
|
|
3897
3880
|
function buildUrl($this, tc) {
|
|
3898
3881
|
// Inline function 'kotlin.let' call
|
|
@@ -3902,24 +3885,24 @@
|
|
|
3902
3885
|
function fetchAndDecodeTile$ref_0() {
|
|
3903
3886
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
3904
3887
|
}
|
|
3905
|
-
protoOf(fetchAndDecodeTile$ref_0).
|
|
3888
|
+
protoOf(fetchAndDecodeTile$ref_0).y19 = function (p0, $completion) {
|
|
3906
3889
|
return fetchAndDecodeTile(p0, $completion);
|
|
3907
3890
|
};
|
|
3908
3891
|
protoOf(fetchAndDecodeTile$ref_0).z7 = function (p1, $completion) {
|
|
3909
|
-
return this.
|
|
3892
|
+
return this.y19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
3910
3893
|
};
|
|
3911
3894
|
function TileManager$cache$slambda(this$0, resultContinuation) {
|
|
3912
|
-
this.
|
|
3895
|
+
this.t1j_1 = this$0;
|
|
3913
3896
|
CoroutineImpl.call(this, resultContinuation);
|
|
3914
3897
|
}
|
|
3915
|
-
protoOf(TileManager$cache$slambda).
|
|
3916
|
-
var tmp = this.
|
|
3898
|
+
protoOf(TileManager$cache$slambda).v1j = function (tc, $completion) {
|
|
3899
|
+
var tmp = this.w1j(tc, $completion);
|
|
3917
3900
|
tmp.l7_1 = Unit_instance;
|
|
3918
3901
|
tmp.m7_1 = null;
|
|
3919
3902
|
return tmp.r7();
|
|
3920
3903
|
};
|
|
3921
3904
|
protoOf(TileManager$cache$slambda).z7 = function (p1, $completion) {
|
|
3922
|
-
return this.
|
|
3905
|
+
return this.v1j(p1 instanceof TileCoordinates ? p1 : THROW_CCE(), $completion);
|
|
3923
3906
|
};
|
|
3924
3907
|
protoOf(TileManager$cache$slambda).r7 = function () {
|
|
3925
3908
|
var suspendResult = this.l7_1;
|
|
@@ -3930,7 +3913,7 @@
|
|
|
3930
3913
|
case 0:
|
|
3931
3914
|
this.k7_1 = 2;
|
|
3932
3915
|
this.j7_1 = 1;
|
|
3933
|
-
suspendResult = this.
|
|
3916
|
+
suspendResult = this.t1j_1.y15_1(buildUrl(this.t1j_1, this.u1j_1), this);
|
|
3934
3917
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3935
3918
|
return suspendResult;
|
|
3936
3919
|
}
|
|
@@ -3953,21 +3936,21 @@
|
|
|
3953
3936
|
}
|
|
3954
3937
|
while (true);
|
|
3955
3938
|
};
|
|
3956
|
-
protoOf(TileManager$cache$slambda).
|
|
3957
|
-
var i = new TileManager$cache$slambda(this.
|
|
3958
|
-
i.
|
|
3939
|
+
protoOf(TileManager$cache$slambda).w1j = function (tc, completion) {
|
|
3940
|
+
var i = new TileManager$cache$slambda(this.t1j_1, completion);
|
|
3941
|
+
i.u1j_1 = tc;
|
|
3959
3942
|
return i;
|
|
3960
3943
|
};
|
|
3961
3944
|
function TileManager$cache$slambda_0(this$0, resultContinuation) {
|
|
3962
3945
|
var i = new TileManager$cache$slambda(this$0, resultContinuation);
|
|
3963
3946
|
return constructCallableReference(function (tc, $completion) {
|
|
3964
|
-
return i.
|
|
3947
|
+
return i.v1j(tc, $completion);
|
|
3965
3948
|
}, 1);
|
|
3966
3949
|
}
|
|
3967
3950
|
function $getTileCOROUTINE$(_this__u8e3s4, tileCoords, resultContinuation) {
|
|
3968
3951
|
CoroutineImpl.call(this, resultContinuation);
|
|
3969
|
-
this.
|
|
3970
|
-
this.
|
|
3952
|
+
this.f1k_1 = _this__u8e3s4;
|
|
3953
|
+
this.g1k_1 = tileCoords;
|
|
3971
3954
|
}
|
|
3972
3955
|
protoOf($getTileCOROUTINE$).r7 = function () {
|
|
3973
3956
|
var suspendResult = this.l7_1;
|
|
@@ -3977,16 +3960,16 @@
|
|
|
3977
3960
|
switch (tmp) {
|
|
3978
3961
|
case 0:
|
|
3979
3962
|
this.k7_1 = 8;
|
|
3980
|
-
var tmp0_elvis_lhs = this.
|
|
3963
|
+
var tmp0_elvis_lhs = this.f1k_1.z15_1;
|
|
3981
3964
|
if (tmp0_elvis_lhs == null) {
|
|
3982
3965
|
this.j7_1 = 1;
|
|
3983
|
-
suspendResult = this.
|
|
3966
|
+
suspendResult = this.f1k_1.a16_1.p1g(this.g1k_1, this);
|
|
3984
3967
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3985
3968
|
return suspendResult;
|
|
3986
3969
|
}
|
|
3987
3970
|
continue $sm;
|
|
3988
3971
|
} else {
|
|
3989
|
-
this.
|
|
3972
|
+
this.j1k_1 = tmp0_elvis_lhs;
|
|
3990
3973
|
this.j7_1 = 2;
|
|
3991
3974
|
continue $sm;
|
|
3992
3975
|
}
|
|
@@ -3995,9 +3978,9 @@
|
|
|
3995
3978
|
var tmp_0 = this;
|
|
3996
3979
|
return suspendResult;
|
|
3997
3980
|
case 2:
|
|
3998
|
-
this.
|
|
3981
|
+
this.i1k_1 = this.j1k_1;
|
|
3999
3982
|
this.j7_1 = 3;
|
|
4000
|
-
suspendResult = this.
|
|
3983
|
+
suspendResult = this.i1k_1.q1i(this.g1k_1, this);
|
|
4001
3984
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4002
3985
|
return suspendResult;
|
|
4003
3986
|
}
|
|
@@ -4013,14 +3996,14 @@
|
|
|
4013
3996
|
|
|
4014
3997
|
this.k7_1 = 5;
|
|
4015
3998
|
this.j7_1 = 4;
|
|
4016
|
-
suspendResult = this.
|
|
3999
|
+
suspendResult = this.f1k_1.a16_1.p1g(this.g1k_1, this);
|
|
4017
4000
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4018
4001
|
return suspendResult;
|
|
4019
4002
|
}
|
|
4020
4003
|
|
|
4021
4004
|
continue $sm;
|
|
4022
4005
|
case 4:
|
|
4023
|
-
this.
|
|
4006
|
+
this.h1k_1 = suspendResult;
|
|
4024
4007
|
this.k7_1 = 8;
|
|
4025
4008
|
this.j7_1 = 7;
|
|
4026
4009
|
continue $sm;
|
|
@@ -4037,7 +4020,7 @@
|
|
|
4037
4020
|
var e_0 = this.m7_1;
|
|
4038
4021
|
ensureActive(this.p7());
|
|
4039
4022
|
this.j7_1 = 6;
|
|
4040
|
-
suspendResult = this.
|
|
4023
|
+
suspendResult = this.i1k_1.r1i(this.g1k_1, e_0, this);
|
|
4041
4024
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4042
4025
|
return suspendResult;
|
|
4043
4026
|
}
|
|
@@ -4048,12 +4031,12 @@
|
|
|
4048
4031
|
}
|
|
4049
4032
|
|
|
4050
4033
|
case 6:
|
|
4051
|
-
this.
|
|
4034
|
+
this.h1k_1 = suspendResult;
|
|
4052
4035
|
this.j7_1 = 7;
|
|
4053
4036
|
continue $sm;
|
|
4054
4037
|
case 7:
|
|
4055
4038
|
this.k7_1 = 8;
|
|
4056
|
-
return this.
|
|
4039
|
+
return this.h1k_1;
|
|
4057
4040
|
case 8:
|
|
4058
4041
|
throw this.m7_1;
|
|
4059
4042
|
}
|
|
@@ -4125,13 +4108,13 @@
|
|
|
4125
4108
|
retryAfterSeconds = retryAfterSeconds === VOID ? null : retryAfterSeconds;
|
|
4126
4109
|
IllegalStateException_init_$Init$('Tile fetch failed for ' + url + ': HTTP ' + status, this);
|
|
4127
4110
|
captureStack(this, TileFetchException);
|
|
4128
|
-
this.
|
|
4129
|
-
this.
|
|
4130
|
-
this.
|
|
4111
|
+
this.k1k_1 = url;
|
|
4112
|
+
this.l1k_1 = status;
|
|
4113
|
+
this.m1k_1 = retryAfterSeconds;
|
|
4131
4114
|
}
|
|
4132
4115
|
function $awaitTurnCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
4133
4116
|
CoroutineImpl.call(this, resultContinuation);
|
|
4134
|
-
this.
|
|
4117
|
+
this.v1k_1 = _this__u8e3s4;
|
|
4135
4118
|
}
|
|
4136
4119
|
protoOf($awaitTurnCOROUTINE$).r7 = function () {
|
|
4137
4120
|
var suspendResult = this.l7_1;
|
|
@@ -4141,10 +4124,10 @@
|
|
|
4141
4124
|
switch (tmp) {
|
|
4142
4125
|
case 0:
|
|
4143
4126
|
this.k7_1 = 4;
|
|
4144
|
-
this.
|
|
4145
|
-
this.
|
|
4127
|
+
this.x1k_1 = this.v1k_1.a1l_1;
|
|
4128
|
+
this.w1k_1 = null;
|
|
4146
4129
|
this.j7_1 = 1;
|
|
4147
|
-
suspendResult = this.
|
|
4130
|
+
suspendResult = this.x1k_1.qw(this.w1k_1, this);
|
|
4148
4131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4149
4132
|
return suspendResult;
|
|
4150
4133
|
}
|
|
@@ -4155,22 +4138,22 @@
|
|
|
4155
4138
|
l$ret$1: do {
|
|
4156
4139
|
var tmp_0;
|
|
4157
4140
|
try {
|
|
4158
|
-
var t = toNumber(this.
|
|
4159
|
-
var b = this.
|
|
4141
|
+
var t = toNumber(this.v1k_1.y1k_1());
|
|
4142
|
+
var b = this.v1k_1.b1l_1;
|
|
4160
4143
|
var slot = Math.max(t, b);
|
|
4161
|
-
this.
|
|
4144
|
+
this.v1k_1.b1l_1 = slot + this.v1k_1.z1k_1;
|
|
4162
4145
|
tmp$ret$0 = slot - t;
|
|
4163
4146
|
break l$ret$1;
|
|
4164
4147
|
} catch ($p) {
|
|
4165
4148
|
var tmp_1;
|
|
4166
4149
|
var t_0 = $p;
|
|
4167
|
-
this.
|
|
4150
|
+
this.x1k_1.bw(this.w1k_1);
|
|
4168
4151
|
throw t_0;
|
|
4169
4152
|
}
|
|
4170
4153
|
}
|
|
4171
4154
|
while (false);
|
|
4172
4155
|
var tmp_2 = tmp$ret$0;
|
|
4173
|
-
this.
|
|
4156
|
+
this.x1k_1.bw(this.w1k_1);
|
|
4174
4157
|
var waitMs = tmp_2;
|
|
4175
4158
|
if (waitMs > 0) {
|
|
4176
4159
|
this.j7_1 = 2;
|
|
@@ -4204,29 +4187,29 @@
|
|
|
4204
4187
|
while (true);
|
|
4205
4188
|
};
|
|
4206
4189
|
function RequestPacer(perSecond, now) {
|
|
4207
|
-
this.
|
|
4208
|
-
this.
|
|
4209
|
-
this.
|
|
4210
|
-
this.
|
|
4190
|
+
this.y1k_1 = now;
|
|
4191
|
+
this.z1k_1 = 1000.0 / perSecond;
|
|
4192
|
+
this.a1l_1 = Mutex();
|
|
4193
|
+
this.b1l_1 = -Infinity;
|
|
4211
4194
|
}
|
|
4212
|
-
protoOf(RequestPacer).
|
|
4195
|
+
protoOf(RequestPacer).c1l = function ($completion) {
|
|
4213
4196
|
var tmp = new $awaitTurnCOROUTINE$(this, $completion);
|
|
4214
4197
|
tmp.l7_1 = Unit_instance;
|
|
4215
4198
|
tmp.m7_1 = null;
|
|
4216
4199
|
return tmp.r7();
|
|
4217
4200
|
};
|
|
4218
4201
|
function Key_0(host, perSecond, clock) {
|
|
4219
|
-
this.
|
|
4220
|
-
this.
|
|
4221
|
-
this.
|
|
4202
|
+
this.d1l_1 = host;
|
|
4203
|
+
this.e1l_1 = perSecond;
|
|
4204
|
+
this.f1l_1 = clock;
|
|
4222
4205
|
}
|
|
4223
4206
|
protoOf(Key_0).toString = function () {
|
|
4224
|
-
return 'Key(host=' + this.
|
|
4207
|
+
return 'Key(host=' + this.d1l_1 + ', perSecond=' + this.e1l_1 + ', clock=' + toString(this.f1l_1) + ')';
|
|
4225
4208
|
};
|
|
4226
4209
|
protoOf(Key_0).hashCode = function () {
|
|
4227
|
-
var result = getStringHashCode(this.
|
|
4228
|
-
result = imul(result, 31) + this.
|
|
4229
|
-
result = imul(result, 31) + hashCode(this.
|
|
4210
|
+
var result = getStringHashCode(this.d1l_1);
|
|
4211
|
+
result = imul(result, 31) + this.e1l_1 | 0;
|
|
4212
|
+
result = imul(result, 31) + hashCode(this.f1l_1) | 0;
|
|
4230
4213
|
return result;
|
|
4231
4214
|
};
|
|
4232
4215
|
protoOf(Key_0).equals = function (other) {
|
|
@@ -4234,20 +4217,20 @@
|
|
|
4234
4217
|
return true;
|
|
4235
4218
|
if (!(other instanceof Key_0))
|
|
4236
4219
|
return false;
|
|
4237
|
-
if (!(this.
|
|
4220
|
+
if (!(this.d1l_1 === other.d1l_1))
|
|
4238
4221
|
return false;
|
|
4239
|
-
if (!(this.
|
|
4222
|
+
if (!(this.e1l_1 === other.e1l_1))
|
|
4240
4223
|
return false;
|
|
4241
|
-
if (!equals(this.
|
|
4224
|
+
if (!equals(this.f1l_1, other.f1l_1))
|
|
4242
4225
|
return false;
|
|
4243
4226
|
return true;
|
|
4244
4227
|
};
|
|
4245
4228
|
function $ofCOROUTINE$(_this__u8e3s4, host, perSecond, clock, resultContinuation) {
|
|
4246
4229
|
CoroutineImpl.call(this, resultContinuation);
|
|
4247
|
-
this.
|
|
4248
|
-
this.
|
|
4249
|
-
this.
|
|
4250
|
-
this.
|
|
4230
|
+
this.o1l_1 = _this__u8e3s4;
|
|
4231
|
+
this.p1l_1 = host;
|
|
4232
|
+
this.q1l_1 = perSecond;
|
|
4233
|
+
this.r1l_1 = clock;
|
|
4251
4234
|
}
|
|
4252
4235
|
protoOf($ofCOROUTINE$).r7 = function () {
|
|
4253
4236
|
var suspendResult = this.l7_1;
|
|
@@ -4257,10 +4240,10 @@
|
|
|
4257
4240
|
switch (tmp) {
|
|
4258
4241
|
case 0:
|
|
4259
4242
|
this.k7_1 = 2;
|
|
4260
|
-
this.
|
|
4261
|
-
this.
|
|
4243
|
+
this.t1l_1 = this.o1l_1.u1l_1;
|
|
4244
|
+
this.s1l_1 = null;
|
|
4262
4245
|
this.j7_1 = 1;
|
|
4263
|
-
suspendResult = this.
|
|
4246
|
+
suspendResult = this.t1l_1.qw(this.s1l_1, this);
|
|
4264
4247
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4265
4248
|
return suspendResult;
|
|
4266
4249
|
}
|
|
@@ -4271,12 +4254,12 @@
|
|
|
4271
4254
|
l$ret$1: do {
|
|
4272
4255
|
var tmp_0;
|
|
4273
4256
|
try {
|
|
4274
|
-
var tmp0 = HostPacers_getInstance().
|
|
4275
|
-
var key = new Key_0(this.
|
|
4257
|
+
var tmp0 = HostPacers_getInstance().v1l_1;
|
|
4258
|
+
var key = new Key_0(this.p1l_1, this.q1l_1, this.r1l_1);
|
|
4276
4259
|
var value = tmp0.t1(key);
|
|
4277
4260
|
var tmp_1;
|
|
4278
4261
|
if (value == null) {
|
|
4279
|
-
var answer = new RequestPacer(this.
|
|
4262
|
+
var answer = new RequestPacer(this.q1l_1, this.r1l_1);
|
|
4280
4263
|
tmp0.v3(key, answer);
|
|
4281
4264
|
tmp_1 = answer;
|
|
4282
4265
|
} else {
|
|
@@ -4287,13 +4270,13 @@
|
|
|
4287
4270
|
} catch ($p) {
|
|
4288
4271
|
var tmp_2;
|
|
4289
4272
|
var t = $p;
|
|
4290
|
-
this.
|
|
4273
|
+
this.t1l_1.bw(this.s1l_1);
|
|
4291
4274
|
throw t;
|
|
4292
4275
|
}
|
|
4293
4276
|
}
|
|
4294
4277
|
while (false);
|
|
4295
4278
|
var tmp_3 = tmp$ret$0;
|
|
4296
|
-
this.
|
|
4279
|
+
this.t1l_1.bw(this.s1l_1);
|
|
4297
4280
|
return tmp_3;
|
|
4298
4281
|
case 2:
|
|
4299
4282
|
throw this.m7_1;
|
|
@@ -4311,10 +4294,10 @@
|
|
|
4311
4294
|
};
|
|
4312
4295
|
function HostPacers() {
|
|
4313
4296
|
HostPacers_instance = this;
|
|
4314
|
-
this.
|
|
4315
|
-
this.
|
|
4297
|
+
this.u1l_1 = Mutex();
|
|
4298
|
+
this.v1l_1 = HashMap_init_$Create$();
|
|
4316
4299
|
}
|
|
4317
|
-
protoOf(HostPacers).
|
|
4300
|
+
protoOf(HostPacers).w1l = function (host, perSecond, clock, $completion) {
|
|
4318
4301
|
var tmp = new $ofCOROUTINE$(this, host, perSecond, clock, $completion);
|
|
4319
4302
|
tmp.l7_1 = Unit_instance;
|
|
4320
4303
|
tmp.m7_1 = null;
|
|
@@ -4338,27 +4321,27 @@
|
|
|
4338
4321
|
function fetchTileBytes$ref() {
|
|
4339
4322
|
KFunctionImpl.call(this, 1, 2, 5);
|
|
4340
4323
|
}
|
|
4341
|
-
protoOf(fetchTileBytes$ref).
|
|
4324
|
+
protoOf(fetchTileBytes$ref).a1m = function (p0, $completion) {
|
|
4342
4325
|
return fetchTileBytes(p0, $completion);
|
|
4343
4326
|
};
|
|
4344
4327
|
protoOf(fetchTileBytes$ref).z7 = function (p1, $completion) {
|
|
4345
|
-
return this.
|
|
4328
|
+
return this.a1m((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
4346
4329
|
};
|
|
4347
4330
|
function pacedTileBytesFetcher$slambda($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation) {
|
|
4348
|
-
this.
|
|
4349
|
-
this.
|
|
4350
|
-
this.
|
|
4351
|
-
this.
|
|
4331
|
+
this.j1m_1 = $maxRequestsPerSecond;
|
|
4332
|
+
this.k1m_1 = $now;
|
|
4333
|
+
this.l1m_1 = $fetch;
|
|
4334
|
+
this.m1m_1 = $maxAttempts;
|
|
4352
4335
|
CoroutineImpl.call(this, resultContinuation);
|
|
4353
4336
|
}
|
|
4354
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
4355
|
-
var tmp = this.
|
|
4337
|
+
protoOf(pacedTileBytesFetcher$slambda).a1m = function (url, $completion) {
|
|
4338
|
+
var tmp = this.j1a(url, $completion);
|
|
4356
4339
|
tmp.l7_1 = Unit_instance;
|
|
4357
4340
|
tmp.m7_1 = null;
|
|
4358
4341
|
return tmp.r7();
|
|
4359
4342
|
};
|
|
4360
4343
|
protoOf(pacedTileBytesFetcher$slambda).z7 = function (p1, $completion) {
|
|
4361
|
-
return this.
|
|
4344
|
+
return this.a1m((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
4362
4345
|
};
|
|
4363
4346
|
protoOf(pacedTileBytesFetcher$slambda).r7 = function () {
|
|
4364
4347
|
var suspendResult = this.l7_1;
|
|
@@ -4368,43 +4351,43 @@
|
|
|
4368
4351
|
switch (tmp) {
|
|
4369
4352
|
case 0:
|
|
4370
4353
|
this.k7_1 = 11;
|
|
4371
|
-
if (this.
|
|
4354
|
+
if (this.j1m_1 > 0) {
|
|
4372
4355
|
this.j7_1 = 1;
|
|
4373
|
-
suspendResult = HostPacers_getInstance().
|
|
4356
|
+
suspendResult = HostPacers_getInstance().w1l(hostOf(this.n1m_1), this.j1m_1, this.k1m_1, this);
|
|
4374
4357
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4375
4358
|
return suspendResult;
|
|
4376
4359
|
}
|
|
4377
4360
|
continue $sm;
|
|
4378
4361
|
} else {
|
|
4379
|
-
this.
|
|
4362
|
+
this.t1m_1 = null;
|
|
4380
4363
|
this.j7_1 = 2;
|
|
4381
4364
|
continue $sm;
|
|
4382
4365
|
}
|
|
4383
4366
|
|
|
4384
4367
|
case 1:
|
|
4385
|
-
this.
|
|
4368
|
+
this.t1m_1 = suspendResult;
|
|
4386
4369
|
this.j7_1 = 2;
|
|
4387
4370
|
continue $sm;
|
|
4388
4371
|
case 2:
|
|
4389
|
-
this.
|
|
4390
|
-
this.
|
|
4391
|
-
this.
|
|
4372
|
+
this.s1m_1 = this.t1m_1;
|
|
4373
|
+
this.q1m_1 = 1;
|
|
4374
|
+
this.o1m_1 = null;
|
|
4392
4375
|
this.j7_1 = 3;
|
|
4393
4376
|
continue $sm;
|
|
4394
4377
|
case 3:
|
|
4395
|
-
if (!(this.
|
|
4378
|
+
if (!(this.o1m_1 == null)) {
|
|
4396
4379
|
this.j7_1 = 10;
|
|
4397
4380
|
continue $sm;
|
|
4398
4381
|
}
|
|
4399
4382
|
|
|
4400
|
-
var tmp0_safe_receiver = this.
|
|
4383
|
+
var tmp0_safe_receiver = this.s1m_1;
|
|
4401
4384
|
if (tmp0_safe_receiver == null) {
|
|
4402
|
-
this.
|
|
4385
|
+
this.r1m_1 = null;
|
|
4403
4386
|
this.j7_1 = 5;
|
|
4404
4387
|
continue $sm;
|
|
4405
4388
|
} else {
|
|
4406
4389
|
this.j7_1 = 4;
|
|
4407
|
-
suspendResult = tmp0_safe_receiver.
|
|
4390
|
+
suspendResult = tmp0_safe_receiver.c1l(this);
|
|
4408
4391
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4409
4392
|
return suspendResult;
|
|
4410
4393
|
}
|
|
@@ -4413,13 +4396,13 @@
|
|
|
4413
4396
|
|
|
4414
4397
|
case 4:
|
|
4415
4398
|
var tmp_0 = this;
|
|
4416
|
-
tmp_0.
|
|
4399
|
+
tmp_0.r1m_1 = Unit_instance;
|
|
4417
4400
|
this.j7_1 = 5;
|
|
4418
4401
|
continue $sm;
|
|
4419
4402
|
case 5:
|
|
4420
4403
|
this.k7_1 = 7;
|
|
4421
4404
|
this.j7_1 = 6;
|
|
4422
|
-
suspendResult = this.
|
|
4405
|
+
suspendResult = this.l1m_1(this.n1m_1, this);
|
|
4423
4406
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4424
4407
|
return suspendResult;
|
|
4425
4408
|
}
|
|
@@ -4427,8 +4410,8 @@
|
|
|
4427
4410
|
continue $sm;
|
|
4428
4411
|
case 6:
|
|
4429
4412
|
var tmp_1 = this;
|
|
4430
|
-
this.
|
|
4431
|
-
tmp_1.
|
|
4413
|
+
this.o1m_1 = suspendResult;
|
|
4414
|
+
tmp_1.p1m_1 = Unit_instance;
|
|
4432
4415
|
this.k7_1 = 11;
|
|
4433
4416
|
this.j7_1 = 9;
|
|
4434
4417
|
continue $sm;
|
|
@@ -4437,11 +4420,11 @@
|
|
|
4437
4420
|
var tmp_2 = this.m7_1;
|
|
4438
4421
|
if (tmp_2 instanceof TileFetchException) {
|
|
4439
4422
|
var e = this.m7_1;
|
|
4440
|
-
if (!(e.
|
|
4423
|
+
if (!(e.l1k_1 === 429) && !(e.l1k_1 === 503) || this.q1m_1 >= this.m1m_1)
|
|
4441
4424
|
throw e;
|
|
4442
4425
|
this.j7_1 = 8;
|
|
4443
|
-
var tmp1_elvis_lhs = e.
|
|
4444
|
-
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.
|
|
4426
|
+
var tmp1_elvis_lhs = e.m1k_1;
|
|
4427
|
+
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.q1m_1 - 1 | 0) : tmp1_elvis_lhs, new Long(1000, 0)), this);
|
|
4445
4428
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4446
4429
|
return suspendResult;
|
|
4447
4430
|
}
|
|
@@ -4452,9 +4435,9 @@
|
|
|
4452
4435
|
|
|
4453
4436
|
case 8:
|
|
4454
4437
|
var tmp_3 = this;
|
|
4455
|
-
var _unary__edvuaz = this.
|
|
4456
|
-
this.
|
|
4457
|
-
tmp_3.
|
|
4438
|
+
var _unary__edvuaz = this.q1m_1;
|
|
4439
|
+
this.q1m_1 = _unary__edvuaz + 1 | 0;
|
|
4440
|
+
tmp_3.p1m_1 = _unary__edvuaz;
|
|
4458
4441
|
this.j7_1 = 9;
|
|
4459
4442
|
continue $sm;
|
|
4460
4443
|
case 9:
|
|
@@ -4462,7 +4445,7 @@
|
|
|
4462
4445
|
this.j7_1 = 3;
|
|
4463
4446
|
continue $sm;
|
|
4464
4447
|
case 10:
|
|
4465
|
-
return this.
|
|
4448
|
+
return this.o1m_1;
|
|
4466
4449
|
case 11:
|
|
4467
4450
|
throw this.m7_1;
|
|
4468
4451
|
}
|
|
@@ -4477,15 +4460,15 @@
|
|
|
4477
4460
|
}
|
|
4478
4461
|
while (true);
|
|
4479
4462
|
};
|
|
4480
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
4481
|
-
var i = new pacedTileBytesFetcher$slambda(this.
|
|
4482
|
-
i.
|
|
4463
|
+
protoOf(pacedTileBytesFetcher$slambda).j1a = function (url, completion) {
|
|
4464
|
+
var i = new pacedTileBytesFetcher$slambda(this.j1m_1, this.k1m_1, this.l1m_1, this.m1m_1, completion);
|
|
4465
|
+
i.n1m_1 = url;
|
|
4483
4466
|
return i;
|
|
4484
4467
|
};
|
|
4485
4468
|
function pacedTileBytesFetcher$slambda_0($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation) {
|
|
4486
4469
|
var i = new pacedTileBytesFetcher$slambda($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation);
|
|
4487
4470
|
return constructCallableReference(function (url, $completion) {
|
|
4488
|
-
return i.
|
|
4471
|
+
return i.a1m(url, $completion);
|
|
4489
4472
|
}, 1);
|
|
4490
4473
|
}
|
|
4491
4474
|
var properties_initialized_TileRequestPacing_kt_zdwibl;
|
|
@@ -4498,7 +4481,7 @@
|
|
|
4498
4481
|
function tileCoordinatesOf(url, config) {
|
|
4499
4482
|
var names = ArrayList_init_$Create$();
|
|
4500
4483
|
var pattern = StringBuilder_init_$Create$();
|
|
4501
|
-
var rest = config.
|
|
4484
|
+
var rest = config.a19_1;
|
|
4502
4485
|
var placeholder = Regex_init_$Create$('\\{(z|x|y|bbox)\\}');
|
|
4503
4486
|
$l$loop: while (true) {
|
|
4504
4487
|
var tmp0_elvis_lhs = placeholder.ta(rest);
|
|
@@ -4520,7 +4503,7 @@
|
|
|
4520
4503
|
var tmp1_elvis_lhs = Regex_init_$Create$(pattern.toString()).ua(url);
|
|
4521
4504
|
var tmp_0;
|
|
4522
4505
|
if (tmp1_elvis_lhs == null) {
|
|
4523
|
-
throw IllegalArgumentException_init_$Create$('Tile URL ' + url + ' does not match the template ' + config.
|
|
4506
|
+
throw IllegalArgumentException_init_$Create$('Tile URL ' + url + ' does not match the template ' + config.a19_1);
|
|
4524
4507
|
} else {
|
|
4525
4508
|
tmp_0 = tmp1_elvis_lhs;
|
|
4526
4509
|
}
|
|
@@ -4528,7 +4511,7 @@
|
|
|
4528
4511
|
var values = toMap(zip(names, drop(match.kb(), 1)));
|
|
4529
4512
|
var tmp2_safe_receiver = values.t1('z');
|
|
4530
4513
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toInt(tmp2_safe_receiver);
|
|
4531
|
-
var z = tmp3_elvis_lhs == null ? config.
|
|
4514
|
+
var z = tmp3_elvis_lhs == null ? config.y18_1 : tmp3_elvis_lhs;
|
|
4532
4515
|
var bbox = values.t1('bbox');
|
|
4533
4516
|
if (bbox == null)
|
|
4534
4517
|
return new TileCoordinates(toInt(getValue(values, 'x')), toInt(getValue(values, 'y')), z);
|
|
@@ -4613,21 +4596,21 @@
|
|
|
4613
4596
|
return true;
|
|
4614
4597
|
};
|
|
4615
4598
|
function TileCoordinatesFloat(x, y, xFloat, yFloat, z) {
|
|
4616
|
-
this.
|
|
4617
|
-
this.
|
|
4618
|
-
this.
|
|
4619
|
-
this.
|
|
4620
|
-
this.
|
|
4599
|
+
this.m16_1 = x;
|
|
4600
|
+
this.n16_1 = y;
|
|
4601
|
+
this.o16_1 = xFloat;
|
|
4602
|
+
this.p16_1 = yFloat;
|
|
4603
|
+
this.q16_1 = z;
|
|
4621
4604
|
}
|
|
4622
4605
|
protoOf(TileCoordinatesFloat).toString = function () {
|
|
4623
|
-
return 'TileCoordinatesFloat(x=' + this.
|
|
4606
|
+
return 'TileCoordinatesFloat(x=' + this.m16_1 + ', y=' + this.n16_1 + ', xFloat=' + this.o16_1 + ', yFloat=' + this.p16_1 + ', z=' + this.q16_1 + ')';
|
|
4624
4607
|
};
|
|
4625
4608
|
protoOf(TileCoordinatesFloat).hashCode = function () {
|
|
4626
|
-
var result = this.
|
|
4627
|
-
result = imul(result, 31) + this.
|
|
4628
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4629
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4630
|
-
result = imul(result, 31) + this.
|
|
4609
|
+
var result = this.m16_1;
|
|
4610
|
+
result = imul(result, 31) + this.n16_1 | 0;
|
|
4611
|
+
result = imul(result, 31) + getNumberHashCode(this.o16_1) | 0;
|
|
4612
|
+
result = imul(result, 31) + getNumberHashCode(this.p16_1) | 0;
|
|
4613
|
+
result = imul(result, 31) + this.q16_1 | 0;
|
|
4631
4614
|
return result;
|
|
4632
4615
|
};
|
|
4633
4616
|
protoOf(TileCoordinatesFloat).equals = function (other) {
|
|
@@ -4635,15 +4618,15 @@
|
|
|
4635
4618
|
return true;
|
|
4636
4619
|
if (!(other instanceof TileCoordinatesFloat))
|
|
4637
4620
|
return false;
|
|
4638
|
-
if (!(this.
|
|
4621
|
+
if (!(this.m16_1 === other.m16_1))
|
|
4639
4622
|
return false;
|
|
4640
|
-
if (!(this.
|
|
4623
|
+
if (!(this.n16_1 === other.n16_1))
|
|
4641
4624
|
return false;
|
|
4642
|
-
if (!equals(this.
|
|
4625
|
+
if (!equals(this.o16_1, other.o16_1))
|
|
4643
4626
|
return false;
|
|
4644
|
-
if (!equals(this.
|
|
4627
|
+
if (!equals(this.p16_1, other.p16_1))
|
|
4645
4628
|
return false;
|
|
4646
|
-
if (!(this.
|
|
4629
|
+
if (!(this.q16_1 === other.q16_1))
|
|
4647
4630
|
return false;
|
|
4648
4631
|
return true;
|
|
4649
4632
|
};
|
|
@@ -4676,7 +4659,7 @@
|
|
|
4676
4659
|
};
|
|
4677
4660
|
function Companion_3() {
|
|
4678
4661
|
Companion_instance_4 = this;
|
|
4679
|
-
this.
|
|
4662
|
+
this.u1m_1 = new Vector3D(0.0, 0.0, 0.0);
|
|
4680
4663
|
}
|
|
4681
4664
|
var Companion_instance_4;
|
|
4682
4665
|
function Companion_getInstance_4() {
|
|
@@ -4690,7 +4673,7 @@
|
|
|
4690
4673
|
this.y12_1 = y;
|
|
4691
4674
|
this.z12_1 = z;
|
|
4692
4675
|
}
|
|
4693
|
-
protoOf(Vector3D).
|
|
4676
|
+
protoOf(Vector3D).v1m = function (other) {
|
|
4694
4677
|
var tmp0 = this.x12_1 - other.x12_1;
|
|
4695
4678
|
// Inline function 'kotlin.math.hypot' call
|
|
4696
4679
|
var y = this.y12_1 - other.y12_1;
|
|
@@ -4699,28 +4682,28 @@
|
|
|
4699
4682
|
var y_0 = this.z12_1 - other.z12_1;
|
|
4700
4683
|
return hypot(tmp0_0, y_0);
|
|
4701
4684
|
};
|
|
4702
|
-
protoOf(Vector3D).
|
|
4685
|
+
protoOf(Vector3D).w1m = function (other) {
|
|
4703
4686
|
return new Vector3D(this.x12_1 - other.x12_1, this.y12_1 - other.y12_1, this.z12_1 - other.z12_1);
|
|
4704
4687
|
};
|
|
4705
|
-
protoOf(Vector3D).
|
|
4688
|
+
protoOf(Vector3D).x1m = function (other) {
|
|
4706
4689
|
return new Vector3D(this.x12_1 + other.x12_1, this.y12_1 + other.y12_1, this.z12_1 + other.z12_1);
|
|
4707
4690
|
};
|
|
4708
|
-
protoOf(Vector3D).
|
|
4691
|
+
protoOf(Vector3D).y1m = function (scalar) {
|
|
4709
4692
|
return new Vector3D(this.x12_1 * scalar, this.y12_1 * scalar, this.z12_1 * scalar);
|
|
4710
4693
|
};
|
|
4711
|
-
protoOf(Vector3D).
|
|
4694
|
+
protoOf(Vector3D).z1m = function (other) {
|
|
4712
4695
|
return this.x12_1 * other.x12_1 + this.y12_1 * other.y12_1 + this.z12_1 * other.z12_1;
|
|
4713
4696
|
};
|
|
4714
4697
|
protoOf(Vector3D).a13 = function (segmentStart, segmentEnd) {
|
|
4715
|
-
var segmentVector = segmentEnd.
|
|
4716
|
-
var segmentLengthSq = segmentVector.
|
|
4698
|
+
var segmentVector = segmentEnd.w1m(segmentStart);
|
|
4699
|
+
var segmentLengthSq = segmentVector.z1m(segmentVector);
|
|
4717
4700
|
if (segmentLengthSq === 0.0)
|
|
4718
|
-
return this.
|
|
4719
|
-
var pointVector = this.
|
|
4720
|
-
var projection = pointVector.
|
|
4701
|
+
return this.v1m(segmentStart);
|
|
4702
|
+
var pointVector = this.w1m(segmentStart);
|
|
4703
|
+
var projection = pointVector.z1m(segmentVector) / segmentLengthSq;
|
|
4721
4704
|
var clamped = coerceIn_0(projection, 0.0, 1.0);
|
|
4722
|
-
var closest = segmentStart.
|
|
4723
|
-
return this.
|
|
4705
|
+
var closest = segmentStart.x1m(segmentVector.y1m(clamped));
|
|
4706
|
+
return this.v1m(closest);
|
|
4724
4707
|
};
|
|
4725
4708
|
protoOf(Vector3D).toString = function () {
|
|
4726
4709
|
return 'Vector3D(x=' + this.x12_1 + ', y=' + this.y12_1 + ', z=' + this.z12_1 + ')';
|
|
@@ -4777,25 +4760,25 @@
|
|
|
4777
4760
|
tmp = null;
|
|
4778
4761
|
} else {
|
|
4779
4762
|
// Inline function 'kotlin.let' call
|
|
4780
|
-
tmp = Companion_getInstance_0().
|
|
4763
|
+
tmp = Companion_getInstance_0().g1b(tmp2_safe_receiver);
|
|
4781
4764
|
}
|
|
4782
4765
|
var tmp3_elvis_lhs = tmp;
|
|
4783
|
-
var source = tmp3_elvis_lhs == null ? Companion_getInstance_0().
|
|
4784
|
-
var base = source.
|
|
4766
|
+
var source = tmp3_elvis_lhs == null ? Companion_getInstance_0().a1b_1 : tmp3_elvis_lhs;
|
|
4767
|
+
var base = source.m1b(configDto == null ? null : configDto.zoomLevel);
|
|
4785
4768
|
var tmp6_elvis_lhs = configDto == null ? null : configDto.cacheSize;
|
|
4786
|
-
var tmp_0 = tmp6_elvis_lhs == null ? base.
|
|
4769
|
+
var tmp_0 = tmp6_elvis_lhs == null ? base.z18_1 : tmp6_elvis_lhs;
|
|
4787
4770
|
var tmp8_elvis_lhs = configDto == null ? null : configDto.tileUrlTemplate;
|
|
4788
|
-
var tmp_1 = tmp8_elvis_lhs == null ? base.
|
|
4771
|
+
var tmp_1 = tmp8_elvis_lhs == null ? base.a19_1 : tmp8_elvis_lhs;
|
|
4789
4772
|
var tmp10_elvis_lhs = configDto == null ? null : configDto.tileSize;
|
|
4790
|
-
var cfg = base.
|
|
4773
|
+
var cfg = base.w1a(VOID, tmp_0, tmp_1, tmp10_elvis_lhs == null ? base.b19_1 : tmp10_elvis_lhs);
|
|
4791
4774
|
var primary = ElevationProvider_init_$Create$(cfg);
|
|
4792
|
-
var tmp11_safe_receiver = source.
|
|
4775
|
+
var tmp11_safe_receiver = source.h1b();
|
|
4793
4776
|
var tmp_2;
|
|
4794
4777
|
if (tmp11_safe_receiver == null) {
|
|
4795
4778
|
tmp_2 = null;
|
|
4796
4779
|
} else {
|
|
4797
4780
|
// Inline function 'kotlin.let' call
|
|
4798
|
-
tmp_2 = primary.
|
|
4781
|
+
tmp_2 = primary.n19(provider(tmp11_safe_receiver));
|
|
4799
4782
|
}
|
|
4800
4783
|
var tmp12_elvis_lhs = tmp_2;
|
|
4801
4784
|
return tmp12_elvis_lhs == null ? primary : tmp12_elvis_lhs;
|
|
@@ -4803,8 +4786,8 @@
|
|
|
4803
4786
|
function elevationAttribution(provider) {
|
|
4804
4787
|
_init_properties_ElevationJsApi_kt__1yyas4();
|
|
4805
4788
|
var o = {};
|
|
4806
|
-
o.text = provider.
|
|
4807
|
-
o.url = provider.
|
|
4789
|
+
o.text = provider.p19().x1a_1;
|
|
4790
|
+
o.url = provider.p19().y1a_1;
|
|
4808
4791
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
4809
4792
|
return o;
|
|
4810
4793
|
}
|
|
@@ -4877,20 +4860,20 @@
|
|
|
4877
4860
|
return o;
|
|
4878
4861
|
}
|
|
4879
4862
|
function getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
4880
|
-
this.
|
|
4881
|
-
this.
|
|
4882
|
-
this.
|
|
4883
|
-
this.
|
|
4863
|
+
this.i1n_1 = $provider;
|
|
4864
|
+
this.j1n_1 = $latitude;
|
|
4865
|
+
this.k1n_1 = $longitude;
|
|
4866
|
+
this.l1n_1 = $interpolation;
|
|
4884
4867
|
CoroutineImpl.call(this, resultContinuation);
|
|
4885
4868
|
}
|
|
4886
|
-
protoOf(getElevation$slambda).
|
|
4887
|
-
var tmp = this.
|
|
4869
|
+
protoOf(getElevation$slambda).n1n = function ($this$promise, $completion) {
|
|
4870
|
+
var tmp = this.c1c($this$promise, $completion);
|
|
4888
4871
|
tmp.l7_1 = Unit_instance;
|
|
4889
4872
|
tmp.m7_1 = null;
|
|
4890
4873
|
return tmp.r7();
|
|
4891
4874
|
};
|
|
4892
4875
|
protoOf(getElevation$slambda).z7 = function (p1, $completion) {
|
|
4893
|
-
return this.
|
|
4876
|
+
return this.n1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
4894
4877
|
};
|
|
4895
4878
|
protoOf(getElevation$slambda).r7 = function () {
|
|
4896
4879
|
var suspendResult = this.l7_1;
|
|
@@ -4901,7 +4884,7 @@
|
|
|
4901
4884
|
case 0:
|
|
4902
4885
|
this.k7_1 = 2;
|
|
4903
4886
|
this.j7_1 = 1;
|
|
4904
|
-
suspendResult = this.
|
|
4887
|
+
suspendResult = this.i1n_1.b18(this.j1n_1, this.k1n_1, this.l1n_1, this);
|
|
4905
4888
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4906
4889
|
return suspendResult;
|
|
4907
4890
|
}
|
|
@@ -4923,31 +4906,31 @@
|
|
|
4923
4906
|
}
|
|
4924
4907
|
while (true);
|
|
4925
4908
|
};
|
|
4926
|
-
protoOf(getElevation$slambda).
|
|
4927
|
-
var i = new getElevation$slambda(this.
|
|
4928
|
-
i.
|
|
4909
|
+
protoOf(getElevation$slambda).c1c = function ($this$promise, completion) {
|
|
4910
|
+
var i = new getElevation$slambda(this.i1n_1, this.j1n_1, this.k1n_1, this.l1n_1, completion);
|
|
4911
|
+
i.m1n_1 = $this$promise;
|
|
4929
4912
|
return i;
|
|
4930
4913
|
};
|
|
4931
4914
|
function getElevation$slambda_0($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
4932
4915
|
var i = new getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation);
|
|
4933
4916
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
4934
|
-
return i.
|
|
4917
|
+
return i.n1n($this$promise, $completion);
|
|
4935
4918
|
}, 1);
|
|
4936
4919
|
}
|
|
4937
4920
|
function getElevationsAlong$slambda($path, $provider, $options, resultContinuation) {
|
|
4938
|
-
this.
|
|
4939
|
-
this.
|
|
4940
|
-
this.
|
|
4921
|
+
this.w1n_1 = $path;
|
|
4922
|
+
this.x1n_1 = $provider;
|
|
4923
|
+
this.y1n_1 = $options;
|
|
4941
4924
|
CoroutineImpl.call(this, resultContinuation);
|
|
4942
4925
|
}
|
|
4943
|
-
protoOf(getElevationsAlong$slambda).
|
|
4944
|
-
var tmp = this.
|
|
4926
|
+
protoOf(getElevationsAlong$slambda).a1o = function ($this$promise, $completion) {
|
|
4927
|
+
var tmp = this.c1c($this$promise, $completion);
|
|
4945
4928
|
tmp.l7_1 = Unit_instance;
|
|
4946
4929
|
tmp.m7_1 = null;
|
|
4947
4930
|
return tmp.r7();
|
|
4948
4931
|
};
|
|
4949
4932
|
protoOf(getElevationsAlong$slambda).z7 = function (p1, $completion) {
|
|
4950
|
-
return this.
|
|
4933
|
+
return this.a1o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
4951
4934
|
};
|
|
4952
4935
|
protoOf(getElevationsAlong$slambda).r7 = function () {
|
|
4953
4936
|
var suspendResult = this.l7_1;
|
|
@@ -4957,7 +4940,7 @@
|
|
|
4957
4940
|
switch (tmp) {
|
|
4958
4941
|
case 0:
|
|
4959
4942
|
this.k7_1 = 2;
|
|
4960
|
-
var this_0 = this.
|
|
4943
|
+
var this_0 = this.w1n_1;
|
|
4961
4944
|
var destination = ArrayList_init_$Create$_0(this_0.length);
|
|
4962
4945
|
var inductionVariable = 0;
|
|
4963
4946
|
var last = this_0.length;
|
|
@@ -4969,21 +4952,21 @@
|
|
|
4969
4952
|
|
|
4970
4953
|
var coords = destination;
|
|
4971
4954
|
this.j7_1 = 1;
|
|
4972
|
-
var tmp0_safe_receiver = this.
|
|
4955
|
+
var tmp0_safe_receiver = this.y1n_1;
|
|
4973
4956
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.step;
|
|
4974
4957
|
var tmp_0 = tmp1_elvis_lhs == null ? 10.0 : tmp1_elvis_lhs;
|
|
4975
|
-
var tmp2_safe_receiver = this.
|
|
4958
|
+
var tmp2_safe_receiver = this.y1n_1;
|
|
4976
4959
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.minDistance;
|
|
4977
4960
|
var tmp_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
4978
|
-
var tmp4_safe_receiver = this.
|
|
4961
|
+
var tmp4_safe_receiver = this.y1n_1;
|
|
4979
4962
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.interpolation;
|
|
4980
4963
|
var tmp_2 = tmp5_elvis_lhs == null ? true : tmp5_elvis_lhs;
|
|
4981
|
-
var tmp6_safe_receiver = this.
|
|
4964
|
+
var tmp6_safe_receiver = this.y1n_1;
|
|
4982
4965
|
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.smoothingOptions;
|
|
4983
4966
|
var tmp_3 = tmp7_safe_receiver == null ? null : toKotlin(tmp7_safe_receiver);
|
|
4984
|
-
var tmp8_safe_receiver = this.
|
|
4967
|
+
var tmp8_safe_receiver = this.y1n_1;
|
|
4985
4968
|
var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.filterOptions;
|
|
4986
|
-
suspendResult = this.
|
|
4969
|
+
suspendResult = this.x1n_1.u19(coords, tmp_0, tmp_1, tmp_2, tmp_3, tmp9_safe_receiver == null ? null : toKotlin_0(tmp9_safe_receiver), this);
|
|
4987
4970
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4988
4971
|
return suspendResult;
|
|
4989
4972
|
}
|
|
@@ -5016,15 +4999,15 @@
|
|
|
5016
4999
|
}
|
|
5017
5000
|
while (true);
|
|
5018
5001
|
};
|
|
5019
|
-
protoOf(getElevationsAlong$slambda).
|
|
5020
|
-
var i = new getElevationsAlong$slambda(this.
|
|
5021
|
-
i.
|
|
5002
|
+
protoOf(getElevationsAlong$slambda).c1c = function ($this$promise, completion) {
|
|
5003
|
+
var i = new getElevationsAlong$slambda(this.w1n_1, this.x1n_1, this.y1n_1, completion);
|
|
5004
|
+
i.z1n_1 = $this$promise;
|
|
5022
5005
|
return i;
|
|
5023
5006
|
};
|
|
5024
5007
|
function getElevationsAlong$slambda_0($path, $provider, $options, resultContinuation) {
|
|
5025
5008
|
var i = new getElevationsAlong$slambda($path, $provider, $options, resultContinuation);
|
|
5026
5009
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
5027
|
-
return i.
|
|
5010
|
+
return i.a1o($this$promise, $completion);
|
|
5028
5011
|
}, 1);
|
|
5029
5012
|
}
|
|
5030
5013
|
var properties_initialized_ElevationJsApi_kt_8pvyh6;
|
|
@@ -5178,7 +5161,7 @@
|
|
|
5178
5161
|
}
|
|
5179
5162
|
function $fetchAndDecodeTileCOROUTINE$(url, resultContinuation) {
|
|
5180
5163
|
CoroutineImpl.call(this, resultContinuation);
|
|
5181
|
-
this.
|
|
5164
|
+
this.j1o_1 = url;
|
|
5182
5165
|
}
|
|
5183
5166
|
protoOf($fetchAndDecodeTileCOROUTINE$).r7 = function () {
|
|
5184
5167
|
var suspendResult = this.l7_1;
|
|
@@ -5190,14 +5173,14 @@
|
|
|
5190
5173
|
this.k7_1 = 4;
|
|
5191
5174
|
if (get_isNode()) {
|
|
5192
5175
|
this.j7_1 = 2;
|
|
5193
|
-
suspendResult = decodeNode(this.
|
|
5176
|
+
suspendResult = decodeNode(this.j1o_1, this);
|
|
5194
5177
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5195
5178
|
return suspendResult;
|
|
5196
5179
|
}
|
|
5197
5180
|
continue $sm;
|
|
5198
5181
|
} else {
|
|
5199
5182
|
this.j7_1 = 1;
|
|
5200
|
-
suspendResult = decodeBrowser(this.
|
|
5183
|
+
suspendResult = decodeBrowser(this.j1o_1, this);
|
|
5201
5184
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5202
5185
|
return suspendResult;
|
|
5203
5186
|
}
|
|
@@ -5205,15 +5188,15 @@
|
|
|
5205
5188
|
}
|
|
5206
5189
|
|
|
5207
5190
|
case 1:
|
|
5208
|
-
this.
|
|
5191
|
+
this.k1o_1 = suspendResult;
|
|
5209
5192
|
this.j7_1 = 3;
|
|
5210
5193
|
continue $sm;
|
|
5211
5194
|
case 2:
|
|
5212
|
-
this.
|
|
5195
|
+
this.k1o_1 = suspendResult;
|
|
5213
5196
|
this.j7_1 = 3;
|
|
5214
5197
|
continue $sm;
|
|
5215
5198
|
case 3:
|
|
5216
|
-
return this.
|
|
5199
|
+
return this.k1o_1;
|
|
5217
5200
|
case 4:
|
|
5218
5201
|
throw this.m7_1;
|
|
5219
5202
|
}
|
|
@@ -5230,8 +5213,8 @@
|
|
|
5230
5213
|
};
|
|
5231
5214
|
function $decodeTileBytesCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
5232
5215
|
CoroutineImpl.call(this, resultContinuation);
|
|
5233
|
-
this.
|
|
5234
|
-
this.
|
|
5216
|
+
this.t1o_1 = bytes;
|
|
5217
|
+
this.u1o_1 = sourceUrl;
|
|
5235
5218
|
}
|
|
5236
5219
|
protoOf($decodeTileBytesCOROUTINE$).r7 = function () {
|
|
5237
5220
|
var suspendResult = this.l7_1;
|
|
@@ -5243,14 +5226,14 @@
|
|
|
5243
5226
|
this.k7_1 = 4;
|
|
5244
5227
|
if (get_isNode()) {
|
|
5245
5228
|
this.j7_1 = 2;
|
|
5246
|
-
suspendResult = decodeBytesNode(this.
|
|
5229
|
+
suspendResult = decodeBytesNode(this.t1o_1, this.u1o_1, this);
|
|
5247
5230
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5248
5231
|
return suspendResult;
|
|
5249
5232
|
}
|
|
5250
5233
|
continue $sm;
|
|
5251
5234
|
} else {
|
|
5252
5235
|
this.j7_1 = 1;
|
|
5253
|
-
suspendResult = decodeBlob(blobOf(this.
|
|
5236
|
+
suspendResult = decodeBlob(blobOf(this.t1o_1), this.u1o_1, this);
|
|
5254
5237
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5255
5238
|
return suspendResult;
|
|
5256
5239
|
}
|
|
@@ -5258,15 +5241,15 @@
|
|
|
5258
5241
|
}
|
|
5259
5242
|
|
|
5260
5243
|
case 1:
|
|
5261
|
-
this.
|
|
5244
|
+
this.v1o_1 = suspendResult;
|
|
5262
5245
|
this.j7_1 = 3;
|
|
5263
5246
|
continue $sm;
|
|
5264
5247
|
case 2:
|
|
5265
|
-
this.
|
|
5248
|
+
this.v1o_1 = suspendResult;
|
|
5266
5249
|
this.j7_1 = 3;
|
|
5267
5250
|
continue $sm;
|
|
5268
5251
|
case 3:
|
|
5269
|
-
return this.
|
|
5252
|
+
return this.v1o_1;
|
|
5270
5253
|
case 4:
|
|
5271
5254
|
throw this.m7_1;
|
|
5272
5255
|
}
|
|
@@ -5283,7 +5266,7 @@
|
|
|
5283
5266
|
};
|
|
5284
5267
|
function $decodeNodeCOROUTINE$(url, resultContinuation) {
|
|
5285
5268
|
CoroutineImpl.call(this, resultContinuation);
|
|
5286
|
-
this.
|
|
5269
|
+
this.e1p_1 = url;
|
|
5287
5270
|
}
|
|
5288
5271
|
protoOf($decodeNodeCOROUTINE$).r7 = function () {
|
|
5289
5272
|
var suspendResult = this.l7_1;
|
|
@@ -5294,7 +5277,7 @@
|
|
|
5294
5277
|
case 0:
|
|
5295
5278
|
this.k7_1 = 4;
|
|
5296
5279
|
this.j7_1 = 1;
|
|
5297
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
5280
|
+
suspendResult = await_0(fetchUrlNode(this.e1p_1), this);
|
|
5298
5281
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5299
5282
|
return suspendResult;
|
|
5300
5283
|
}
|
|
@@ -5302,7 +5285,7 @@
|
|
|
5302
5285
|
continue $sm;
|
|
5303
5286
|
case 1:
|
|
5304
5287
|
var res = suspendResult;
|
|
5305
|
-
requireOk(res, this.
|
|
5288
|
+
requireOk(res, this.e1p_1);
|
|
5306
5289
|
this.j7_1 = 2;
|
|
5307
5290
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
5308
5291
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5338,7 +5321,7 @@
|
|
|
5338
5321
|
};
|
|
5339
5322
|
function $decodeBrowserCOROUTINE$(url, resultContinuation) {
|
|
5340
5323
|
CoroutineImpl.call(this, resultContinuation);
|
|
5341
|
-
this.
|
|
5324
|
+
this.n1p_1 = url;
|
|
5342
5325
|
}
|
|
5343
5326
|
protoOf($decodeBrowserCOROUTINE$).r7 = function () {
|
|
5344
5327
|
var suspendResult = this.l7_1;
|
|
@@ -5349,7 +5332,7 @@
|
|
|
5349
5332
|
case 0:
|
|
5350
5333
|
this.k7_1 = 4;
|
|
5351
5334
|
this.j7_1 = 1;
|
|
5352
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
5335
|
+
suspendResult = await_0(fetchUrlBrowser(this.n1p_1), this);
|
|
5353
5336
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5354
5337
|
return suspendResult;
|
|
5355
5338
|
}
|
|
@@ -5357,7 +5340,7 @@
|
|
|
5357
5340
|
continue $sm;
|
|
5358
5341
|
case 1:
|
|
5359
5342
|
var res = suspendResult;
|
|
5360
|
-
requireOk(res, this.
|
|
5343
|
+
requireOk(res, this.n1p_1);
|
|
5361
5344
|
this.j7_1 = 2;
|
|
5362
5345
|
suspendResult = await_0(res.blob(), this);
|
|
5363
5346
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5368,7 +5351,7 @@
|
|
|
5368
5351
|
case 2:
|
|
5369
5352
|
var ARGUMENT = suspendResult;
|
|
5370
5353
|
this.j7_1 = 3;
|
|
5371
|
-
suspendResult = decodeBlob(ARGUMENT, this.
|
|
5354
|
+
suspendResult = decodeBlob(ARGUMENT, this.n1p_1, this);
|
|
5372
5355
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5373
5356
|
return suspendResult;
|
|
5374
5357
|
}
|
|
@@ -5392,8 +5375,8 @@
|
|
|
5392
5375
|
};
|
|
5393
5376
|
function $decodeBytesNodeCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
5394
5377
|
CoroutineImpl.call(this, resultContinuation);
|
|
5395
|
-
this.
|
|
5396
|
-
this.
|
|
5378
|
+
this.w1p_1 = bytes;
|
|
5379
|
+
this.x1p_1 = sourceUrl;
|
|
5397
5380
|
}
|
|
5398
5381
|
protoOf($decodeBytesNodeCOROUTINE$).r7 = function () {
|
|
5399
5382
|
var suspendResult = this.l7_1;
|
|
@@ -5403,7 +5386,7 @@
|
|
|
5403
5386
|
switch (tmp) {
|
|
5404
5387
|
case 0:
|
|
5405
5388
|
this.k7_1 = 4;
|
|
5406
|
-
var view = this.
|
|
5389
|
+
var view = this.w1p_1;
|
|
5407
5390
|
var buffer = view.buffer.slice(view.byteOffset, view.byteOffset + view.byteLength);
|
|
5408
5391
|
this.k7_1 = 2;
|
|
5409
5392
|
this.j7_1 = 1;
|
|
@@ -5414,7 +5397,7 @@
|
|
|
5414
5397
|
|
|
5415
5398
|
continue $sm;
|
|
5416
5399
|
case 1:
|
|
5417
|
-
this.
|
|
5400
|
+
this.y1p_1 = suspendResult;
|
|
5418
5401
|
this.k7_1 = 4;
|
|
5419
5402
|
this.j7_1 = 3;
|
|
5420
5403
|
continue $sm;
|
|
@@ -5424,7 +5407,7 @@
|
|
|
5424
5407
|
if (tmp_0 instanceof Error) {
|
|
5425
5408
|
var e = this.m7_1;
|
|
5426
5409
|
var tmp_1 = this;
|
|
5427
|
-
var this_0 = this.
|
|
5410
|
+
var this_0 = this.x1p_1;
|
|
5428
5411
|
var tmp_2;
|
|
5429
5412
|
if (charSequenceLength(this_0) === 0) {
|
|
5430
5413
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -5439,7 +5422,7 @@
|
|
|
5439
5422
|
|
|
5440
5423
|
case 3:
|
|
5441
5424
|
this.k7_1 = 4;
|
|
5442
|
-
var image = this.
|
|
5425
|
+
var image = this.y1p_1;
|
|
5443
5426
|
return rawTileFromJsquash(image);
|
|
5444
5427
|
case 4:
|
|
5445
5428
|
throw this.m7_1;
|
|
@@ -5457,8 +5440,8 @@
|
|
|
5457
5440
|
};
|
|
5458
5441
|
function $decodeBlobCOROUTINE$(blob, sourceUrl, resultContinuation) {
|
|
5459
5442
|
CoroutineImpl.call(this, resultContinuation);
|
|
5460
|
-
this.
|
|
5461
|
-
this.
|
|
5443
|
+
this.h1q_1 = blob;
|
|
5444
|
+
this.i1q_1 = sourceUrl;
|
|
5462
5445
|
}
|
|
5463
5446
|
protoOf($decodeBlobCOROUTINE$).r7 = function () {
|
|
5464
5447
|
var suspendResult = this.l7_1;
|
|
@@ -5470,14 +5453,14 @@
|
|
|
5470
5453
|
this.k7_1 = 3;
|
|
5471
5454
|
this.k7_1 = 2;
|
|
5472
5455
|
this.j7_1 = 1;
|
|
5473
|
-
suspendResult = await_0(window.createImageBitmap(this.
|
|
5456
|
+
suspendResult = await_0(window.createImageBitmap(this.h1q_1), this);
|
|
5474
5457
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5475
5458
|
return suspendResult;
|
|
5476
5459
|
}
|
|
5477
5460
|
|
|
5478
5461
|
continue $sm;
|
|
5479
5462
|
case 1:
|
|
5480
|
-
this.
|
|
5463
|
+
this.j1q_1 = suspendResult;
|
|
5481
5464
|
this.k7_1 = 3;
|
|
5482
5465
|
this.j7_1 = 4;
|
|
5483
5466
|
continue $sm;
|
|
@@ -5487,7 +5470,7 @@
|
|
|
5487
5470
|
if (tmp_0 instanceof Error) {
|
|
5488
5471
|
var e = this.m7_1;
|
|
5489
5472
|
var tmp_1 = this;
|
|
5490
|
-
var this_0 = this.
|
|
5473
|
+
var this_0 = this.i1q_1;
|
|
5491
5474
|
var tmp_2;
|
|
5492
5475
|
if (charSequenceLength(this_0) === 0) {
|
|
5493
5476
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -5504,7 +5487,7 @@
|
|
|
5504
5487
|
throw this.m7_1;
|
|
5505
5488
|
case 4:
|
|
5506
5489
|
this.k7_1 = 3;
|
|
5507
|
-
var bitmap = this.
|
|
5490
|
+
var bitmap = this.j1q_1;
|
|
5508
5491
|
l$ret$3: do {
|
|
5509
5492
|
var tmp$ret$0;
|
|
5510
5493
|
l$ret$1: do {
|
|
@@ -5552,7 +5535,7 @@
|
|
|
5552
5535
|
};
|
|
5553
5536
|
function $decodeWebpNodeCOROUTINE$(buffer, resultContinuation) {
|
|
5554
5537
|
CoroutineImpl.call(this, resultContinuation);
|
|
5555
|
-
this.
|
|
5538
|
+
this.s1q_1 = buffer;
|
|
5556
5539
|
}
|
|
5557
5540
|
protoOf($decodeWebpNodeCOROUTINE$).r7 = function () {
|
|
5558
5541
|
var suspendResult = this.l7_1;
|
|
@@ -5571,7 +5554,7 @@
|
|
|
5571
5554
|
continue $sm;
|
|
5572
5555
|
case 1:
|
|
5573
5556
|
var decode = suspendResult;
|
|
5574
|
-
var resultPromise = decode(this.
|
|
5557
|
+
var resultPromise = decode(this.s1q_1);
|
|
5575
5558
|
this.j7_1 = 2;
|
|
5576
5559
|
suspendResult = await_0(resultPromise, this);
|
|
5577
5560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5597,7 +5580,7 @@
|
|
|
5597
5580
|
};
|
|
5598
5581
|
function $fetchTileBytesCOROUTINE$(url, resultContinuation) {
|
|
5599
5582
|
CoroutineImpl.call(this, resultContinuation);
|
|
5600
|
-
this.
|
|
5583
|
+
this.b1r_1 = url;
|
|
5601
5584
|
}
|
|
5602
5585
|
protoOf($fetchTileBytesCOROUTINE$).r7 = function () {
|
|
5603
5586
|
var suspendResult = this.l7_1;
|
|
@@ -5609,14 +5592,14 @@
|
|
|
5609
5592
|
this.k7_1 = 5;
|
|
5610
5593
|
if (get_isNode()) {
|
|
5611
5594
|
this.j7_1 = 2;
|
|
5612
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
5595
|
+
suspendResult = await_0(fetchUrlNode(this.b1r_1), this);
|
|
5613
5596
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5614
5597
|
return suspendResult;
|
|
5615
5598
|
}
|
|
5616
5599
|
continue $sm;
|
|
5617
5600
|
} else {
|
|
5618
5601
|
this.j7_1 = 1;
|
|
5619
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
5602
|
+
suspendResult = await_0(fetchUrlBrowser(this.b1r_1), this);
|
|
5620
5603
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5621
5604
|
return suspendResult;
|
|
5622
5605
|
}
|
|
@@ -5624,16 +5607,16 @@
|
|
|
5624
5607
|
}
|
|
5625
5608
|
|
|
5626
5609
|
case 1:
|
|
5627
|
-
this.
|
|
5610
|
+
this.c1r_1 = suspendResult;
|
|
5628
5611
|
this.j7_1 = 3;
|
|
5629
5612
|
continue $sm;
|
|
5630
5613
|
case 2:
|
|
5631
|
-
this.
|
|
5614
|
+
this.c1r_1 = suspendResult;
|
|
5632
5615
|
this.j7_1 = 3;
|
|
5633
5616
|
continue $sm;
|
|
5634
5617
|
case 3:
|
|
5635
|
-
var res = this.
|
|
5636
|
-
requireOk(res, this.
|
|
5618
|
+
var res = this.c1r_1;
|
|
5619
|
+
requireOk(res, this.b1r_1);
|
|
5637
5620
|
this.j7_1 = 4;
|
|
5638
5621
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
5639
5622
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5670,13 +5653,13 @@
|
|
|
5670
5653
|
function fetchAndDecodeTile$ref_1() {
|
|
5671
5654
|
var i = new fetchAndDecodeTile$ref();
|
|
5672
5655
|
return constructCallableReference(function (p0, $completion) {
|
|
5673
|
-
return i.
|
|
5656
|
+
return i.y19(p0, $completion);
|
|
5674
5657
|
}, 1, 1, 2, 'fetchAndDecodeTile');
|
|
5675
5658
|
}
|
|
5676
5659
|
function fetchTileBytes$ref_0() {
|
|
5677
5660
|
var i = new fetchTileBytes$ref();
|
|
5678
5661
|
return constructCallableReference(function (p0, $completion) {
|
|
5679
|
-
return i.
|
|
5662
|
+
return i.a1m(p0, $completion);
|
|
5680
5663
|
}, 1, 1, 5, 'fetchTileBytes');
|
|
5681
5664
|
}
|
|
5682
5665
|
//region block: init
|