@glandais/vcyclist-engine 6.1.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/fit-kotlin-sdk.js +7891 -6904
- package/fit-kotlin-sdk.js.map +1 -1
- package/index.d.ts +3 -2
- package/kotlin-kotlin-stdlib.js +2493 -2225
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +1253 -1249
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +1 -1
- package/package.json +1 -1
- package/vcyclist-elevation.js +1490 -1370
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +2462 -1772
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +286 -286
- package/vcyclist-fit.js.map +1 -1
- package/vcyclist-gpx.js +4061 -1482
- package/vcyclist-gpx.js.map +1 -1
- package/xmlutil-core.js +2716 -2716
- package/xmlutil-core.js.map +1 -1
package/vcyclist-elevation.js
CHANGED
|
@@ -19,103 +19,103 @@
|
|
|
19
19
|
var sinh = Math.sinh;
|
|
20
20
|
var hypot = Math.hypot;
|
|
21
21
|
var VOID = kotlin_kotlin.$_$.a;
|
|
22
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
23
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
24
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
25
|
-
var equals = kotlin_kotlin.$_$.
|
|
26
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
27
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
28
|
-
var toNumber = kotlin_kotlin.$_$.
|
|
29
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.g8;
|
|
23
|
+
var getNumberHashCode = kotlin_kotlin.$_$.n7;
|
|
24
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.m7;
|
|
25
|
+
var equals = kotlin_kotlin.$_$.k7;
|
|
26
|
+
var initMetadataForClass = kotlin_kotlin.$_$.r7;
|
|
27
|
+
var numberToLong = kotlin_kotlin.$_$.s6;
|
|
28
|
+
var toNumber = kotlin_kotlin.$_$.x6;
|
|
29
|
+
var CoroutineImpl = kotlin_kotlin.$_$.z5;
|
|
30
30
|
var Unit_instance = kotlin_kotlin.$_$.k1;
|
|
31
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
31
|
+
var THROW_CCE = kotlin_kotlin.$_$.mb;
|
|
32
32
|
var MutableEntry = kotlin_kotlin.$_$.w2;
|
|
33
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
34
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
35
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
36
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
37
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
33
|
+
var isInterface = kotlin_kotlin.$_$.z7;
|
|
34
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.k5;
|
|
35
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.w7;
|
|
36
|
+
var constructCallableReference = kotlin_kotlin.$_$.h7;
|
|
37
|
+
var emptyList = kotlin_kotlin.$_$.p3;
|
|
38
38
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
39
39
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
40
|
-
var toList = kotlin_kotlin.$_$.
|
|
40
|
+
var toList = kotlin_kotlin.$_$.e5;
|
|
41
41
|
var KtList = kotlin_kotlin.$_$.t2;
|
|
42
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
43
|
-
var toString = kotlin_kotlin.$_$.
|
|
42
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.t7;
|
|
43
|
+
var toString = kotlin_kotlin.$_$.j8;
|
|
44
44
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
45
45
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m1;
|
|
46
|
-
var listOf = kotlin_kotlin.$_$.
|
|
47
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
48
|
-
var Enum = kotlin_kotlin.$_$.
|
|
49
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
46
|
+
var listOf = kotlin_kotlin.$_$.g4;
|
|
47
|
+
var numberToInt = kotlin_kotlin.$_$.e8;
|
|
48
|
+
var Enum = kotlin_kotlin.$_$.cb;
|
|
49
|
+
var charSequenceLength = kotlin_kotlin.$_$.f7;
|
|
50
50
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.d;
|
|
51
51
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.i;
|
|
52
|
-
var toByte = kotlin_kotlin.$_$.
|
|
52
|
+
var toByte = kotlin_kotlin.$_$.h8;
|
|
53
53
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.h2;
|
|
54
54
|
var FloatCompanionObject_instance = kotlin_kotlin.$_$.d1;
|
|
55
|
-
var floatFromBits = kotlin_kotlin.$_$.
|
|
56
|
-
var isNaN_0 = kotlin_kotlin.$_$.
|
|
57
|
-
var roundToLong = kotlin_kotlin.$_$.
|
|
58
|
-
var Long = kotlin_kotlin.$_$.
|
|
59
|
-
var coerceIn = kotlin_kotlin.$_$.
|
|
60
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
61
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
62
|
-
var coerceIn_0 = kotlin_kotlin.$_$.
|
|
63
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
64
|
-
var toList_0 = kotlin_kotlin.$_$.
|
|
65
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
66
|
-
var get_indices = kotlin_kotlin.$_$.
|
|
67
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
68
|
-
var checkBuilderCapacity = kotlin_kotlin.$_$.
|
|
55
|
+
var floatFromBits = kotlin_kotlin.$_$.l7;
|
|
56
|
+
var isNaN_0 = kotlin_kotlin.$_$.zb;
|
|
57
|
+
var roundToLong = kotlin_kotlin.$_$.m8;
|
|
58
|
+
var Long = kotlin_kotlin.$_$.hb;
|
|
59
|
+
var coerceIn = kotlin_kotlin.$_$.u8;
|
|
60
|
+
var convertToInt = kotlin_kotlin.$_$.k6;
|
|
61
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.v7;
|
|
62
|
+
var coerceIn_0 = kotlin_kotlin.$_$.s8;
|
|
63
|
+
var initMetadataForObject = kotlin_kotlin.$_$.x7;
|
|
64
|
+
var toList_0 = kotlin_kotlin.$_$.d5;
|
|
65
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.e3;
|
|
66
|
+
var get_indices = kotlin_kotlin.$_$.x3;
|
|
67
|
+
var get_lastIndex = kotlin_kotlin.$_$.a4;
|
|
68
|
+
var checkBuilderCapacity = kotlin_kotlin.$_$.b3;
|
|
69
69
|
var IllegalStateException_init_$Create$_0 = kotlin_kotlin.$_$.i2;
|
|
70
|
-
var coerceIn_1 = kotlin_kotlin.$_$.
|
|
71
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
72
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
73
|
-
var KFunctionImpl = kotlin_kotlin.$_$.
|
|
74
|
-
var initMetadataForFunctionReference = kotlin_kotlin.$_$.
|
|
75
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
70
|
+
var coerceIn_1 = kotlin_kotlin.$_$.t8;
|
|
71
|
+
var objectCreate = kotlin_kotlin.$_$.f8;
|
|
72
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.bc;
|
|
73
|
+
var KFunctionImpl = kotlin_kotlin.$_$.z8;
|
|
74
|
+
var initMetadataForFunctionReference = kotlin_kotlin.$_$.u7;
|
|
75
|
+
var getStringHashCode = kotlin_kotlin.$_$.p7;
|
|
76
76
|
var Companion_instance = kotlin_kotlin.$_$.i1;
|
|
77
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
78
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
79
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
77
|
+
var joinToString = kotlin_kotlin.$_$.y3;
|
|
78
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.s7;
|
|
79
|
+
var enumEntries = kotlin_kotlin.$_$.b6;
|
|
80
80
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k;
|
|
81
81
|
var Semaphore = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
|
|
82
82
|
var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
83
83
|
var awaitAll = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
84
84
|
var coroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
|
|
85
|
-
var Exception = kotlin_kotlin.$_$.
|
|
85
|
+
var Exception = kotlin_kotlin.$_$.eb;
|
|
86
86
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.b2;
|
|
87
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
87
|
+
var captureStack = kotlin_kotlin.$_$.b7;
|
|
88
88
|
var KtMap = kotlin_kotlin.$_$.u2;
|
|
89
89
|
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
|
|
90
90
|
var NonCancellable_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b;
|
|
91
91
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
92
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
92
|
+
var CancellationException = kotlin_kotlin.$_$.j5;
|
|
93
93
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
|
|
94
|
-
var contentEquals = kotlin_kotlin.$_$.
|
|
95
|
-
var contentHashCode = kotlin_kotlin.$_$.
|
|
96
|
-
var round = kotlin_kotlin.$_$.
|
|
97
|
-
var replace = kotlin_kotlin.$_$.
|
|
98
|
-
var contains = kotlin_kotlin.$_$.
|
|
99
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
94
|
+
var contentEquals = kotlin_kotlin.$_$.f3;
|
|
95
|
+
var contentHashCode = kotlin_kotlin.$_$.g3;
|
|
96
|
+
var round = kotlin_kotlin.$_$.n8;
|
|
97
|
+
var replace = kotlin_kotlin.$_$.ea;
|
|
98
|
+
var contains = kotlin_kotlin.$_$.m9;
|
|
99
|
+
var IllegalStateException = kotlin_kotlin.$_$.gb;
|
|
100
100
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.g2;
|
|
101
101
|
var Monotonic_instance = kotlin_kotlin.$_$.h1;
|
|
102
102
|
var delay = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
103
|
-
var shiftLeft = kotlin_kotlin.$_$.
|
|
104
|
-
var multiply = kotlin_kotlin.$_$.
|
|
103
|
+
var shiftLeft = kotlin_kotlin.$_$.t6;
|
|
104
|
+
var multiply = kotlin_kotlin.$_$.q6;
|
|
105
105
|
var ValueTimeMark__elapsedNow_impl_eonqvs = kotlin_kotlin.$_$.c;
|
|
106
106
|
var _Duration___get_inWholeMilliseconds__impl__msfiry = kotlin_kotlin.$_$.b;
|
|
107
107
|
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
|
|
108
|
-
var promise = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
109
|
-
var sorted = kotlin_kotlin.$_$.
|
|
110
|
-
var setOf = kotlin_kotlin.$_$.
|
|
111
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
112
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
113
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
114
|
-
var trim = kotlin_kotlin.$_$.
|
|
115
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
116
|
-
var isNumber = kotlin_kotlin.$_$.
|
|
108
|
+
var promise = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n;
|
|
109
|
+
var sorted = kotlin_kotlin.$_$.x4;
|
|
110
|
+
var setOf = kotlin_kotlin.$_$.t4;
|
|
111
|
+
var KProperty0 = kotlin_kotlin.$_$.b9;
|
|
112
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.o7;
|
|
113
|
+
var isCharSequence = kotlin_kotlin.$_$.y7;
|
|
114
|
+
var trim = kotlin_kotlin.$_$.xa;
|
|
115
|
+
var toLongOrNull = kotlin_kotlin.$_$.sa;
|
|
116
|
+
var isNumber = kotlin_kotlin.$_$.a8;
|
|
117
117
|
var await_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d;
|
|
118
|
-
var lazy = kotlin_kotlin.$_$.
|
|
118
|
+
var lazy = kotlin_kotlin.$_$.ac;
|
|
119
119
|
//endregion
|
|
120
120
|
//region block: pre-declaration
|
|
121
121
|
initMetadataForClass(SmoothingOptions, 'SmoothingOptions', SmoothingOptions);
|
|
@@ -137,6 +137,7 @@
|
|
|
137
137
|
initMetadataForClass(ElevationCalculator, 'ElevationCalculator', VOID, VOID, VOID, [3, 2, 1]);
|
|
138
138
|
initMetadataForObject(ElevationFunctions, 'ElevationFunctions');
|
|
139
139
|
initMetadataForLambda(ElevationProvider$calculator$slambda, CoroutineImpl, VOID, [2]);
|
|
140
|
+
initMetadataForLambda(ElevationProvider$calculator$slambda_1, CoroutineImpl, VOID, [2]);
|
|
140
141
|
initMetadataForClass(ElevationProvider, 'ElevationProvider', ElevationProvider_init_$Create$, VOID, VOID, [3, 2, 6]);
|
|
141
142
|
initMetadataForFunctionReference(fetchAndDecodeTile$ref, KFunctionImpl, VOID, [1]);
|
|
142
143
|
initMetadataForLambda(defaultTileFetcher$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -150,6 +151,7 @@
|
|
|
150
151
|
initMetadataForLambda(Flux$forEachParallel$slambda, CoroutineImpl, VOID, [1]);
|
|
151
152
|
initMetadataForCoroutine($forEachParallelCOROUTINE$, CoroutineImpl);
|
|
152
153
|
initMetadataForObject(Flux, 'Flux', VOID, VOID, VOID, [3]);
|
|
154
|
+
initMetadataForClass(IgnLidarHdLayer, 'IgnLidarHdLayer', VOID, Enum);
|
|
153
155
|
initMetadataForClass(Hit, 'Hit');
|
|
154
156
|
initMetadataForClass(Await, 'Await');
|
|
155
157
|
initMetadataForClass(Owner, 'Owner');
|
|
@@ -173,8 +175,8 @@
|
|
|
173
175
|
initMetadataForLambda(pacedTileBytesFetcher$slambda, CoroutineImpl, VOID, [1]);
|
|
174
176
|
initMetadataForClass(TileCoordinates, 'TileCoordinates');
|
|
175
177
|
initMetadataForClass(Pixel, 'Pixel');
|
|
176
|
-
initMetadataForClass(PixelFloat, 'PixelFloat');
|
|
177
178
|
initMetadataForClass(TileCoordinatesFloat, 'TileCoordinatesFloat');
|
|
179
|
+
initMetadataForClass(PixelFloat, 'PixelFloat');
|
|
178
180
|
initMetadataForCompanion(Companion_1);
|
|
179
181
|
initMetadataForClass(Vector3D, 'Vector3D');
|
|
180
182
|
initMetadataForLambda(getElevation$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -191,15 +193,15 @@
|
|
|
191
193
|
function SmoothingOptions(windowSize, enabled) {
|
|
192
194
|
windowSize = windowSize === VOID ? 50.0 : windowSize;
|
|
193
195
|
enabled = enabled === VOID ? false : enabled;
|
|
194
|
-
this.
|
|
195
|
-
this.
|
|
196
|
+
this.dy_1 = windowSize;
|
|
197
|
+
this.ey_1 = enabled;
|
|
196
198
|
}
|
|
197
199
|
protoOf(SmoothingOptions).toString = function () {
|
|
198
|
-
return 'SmoothingOptions(windowSize=' + this.
|
|
200
|
+
return 'SmoothingOptions(windowSize=' + this.dy_1 + ', enabled=' + this.ey_1 + ')';
|
|
199
201
|
};
|
|
200
202
|
protoOf(SmoothingOptions).hashCode = function () {
|
|
201
|
-
var result = this.
|
|
202
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
203
|
+
var result = this.dy_1 == null ? 0 : getNumberHashCode(this.dy_1);
|
|
204
|
+
result = imul(result, 31) + getBooleanHashCode(this.ey_1) | 0;
|
|
203
205
|
return result;
|
|
204
206
|
};
|
|
205
207
|
protoOf(SmoothingOptions).equals = function (other) {
|
|
@@ -207,9 +209,9 @@
|
|
|
207
209
|
return true;
|
|
208
210
|
if (!(other instanceof SmoothingOptions))
|
|
209
211
|
return false;
|
|
210
|
-
if (!equals(this.
|
|
212
|
+
if (!equals(this.dy_1, other.dy_1))
|
|
211
213
|
return false;
|
|
212
|
-
if (!(this.
|
|
214
|
+
if (!(this.ey_1 === other.ey_1))
|
|
213
215
|
return false;
|
|
214
216
|
return true;
|
|
215
217
|
};
|
|
@@ -217,17 +219,17 @@
|
|
|
217
219
|
tolerance = tolerance === VOID ? 10.0 : tolerance;
|
|
218
220
|
zExaggeration = zExaggeration === VOID ? 3.0 : zExaggeration;
|
|
219
221
|
enabled = enabled === VOID ? false : enabled;
|
|
220
|
-
this.
|
|
221
|
-
this.
|
|
222
|
-
this.
|
|
222
|
+
this.fy_1 = tolerance;
|
|
223
|
+
this.gy_1 = zExaggeration;
|
|
224
|
+
this.hy_1 = enabled;
|
|
223
225
|
}
|
|
224
226
|
protoOf(FilterOptions).toString = function () {
|
|
225
|
-
return 'FilterOptions(tolerance=' + this.
|
|
227
|
+
return 'FilterOptions(tolerance=' + this.fy_1 + ', zExaggeration=' + this.gy_1 + ', enabled=' + this.hy_1 + ')';
|
|
226
228
|
};
|
|
227
229
|
protoOf(FilterOptions).hashCode = function () {
|
|
228
|
-
var result = this.
|
|
229
|
-
result = imul(result, 31) + (this.
|
|
230
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
230
|
+
var result = this.fy_1 == null ? 0 : getNumberHashCode(this.fy_1);
|
|
231
|
+
result = imul(result, 31) + (this.gy_1 == null ? 0 : getNumberHashCode(this.gy_1)) | 0;
|
|
232
|
+
result = imul(result, 31) + getBooleanHashCode(this.hy_1) | 0;
|
|
231
233
|
return result;
|
|
232
234
|
};
|
|
233
235
|
protoOf(FilterOptions).equals = function (other) {
|
|
@@ -235,11 +237,11 @@
|
|
|
235
237
|
return true;
|
|
236
238
|
if (!(other instanceof FilterOptions))
|
|
237
239
|
return false;
|
|
238
|
-
if (!equals(this.
|
|
240
|
+
if (!equals(this.fy_1, other.fy_1))
|
|
239
241
|
return false;
|
|
240
|
-
if (!equals(this.
|
|
242
|
+
if (!equals(this.gy_1, other.gy_1))
|
|
241
243
|
return false;
|
|
242
|
-
if (!(this.
|
|
244
|
+
if (!(this.hy_1 === other.hy_1))
|
|
243
245
|
return false;
|
|
244
246
|
return true;
|
|
245
247
|
};
|
|
@@ -248,44 +250,44 @@
|
|
|
248
250
|
return toNumber(asLong) === d ? asLong.toString() : d.toString();
|
|
249
251
|
}
|
|
250
252
|
function BatchCalculator$setElevations$slambda($coordinates, this$0, $zoomLevel, $interpolation, $results, resultContinuation) {
|
|
251
|
-
this
|
|
252
|
-
this.
|
|
253
|
-
this
|
|
254
|
-
this
|
|
255
|
-
this
|
|
253
|
+
this.qy_1 = $coordinates;
|
|
254
|
+
this.ry_1 = this$0;
|
|
255
|
+
this.sy_1 = $zoomLevel;
|
|
256
|
+
this.ty_1 = $interpolation;
|
|
257
|
+
this.uy_1 = $results;
|
|
256
258
|
CoroutineImpl.call(this, resultContinuation);
|
|
257
259
|
}
|
|
258
|
-
protoOf(BatchCalculator$setElevations$slambda).
|
|
259
|
-
var tmp = this.
|
|
260
|
-
tmp.
|
|
261
|
-
tmp.
|
|
262
|
-
return tmp.
|
|
260
|
+
protoOf(BatchCalculator$setElevations$slambda).zy = function (_destruct__k2r9zo, $completion) {
|
|
261
|
+
var tmp = this.az(_destruct__k2r9zo, $completion);
|
|
262
|
+
tmp.i7_1 = Unit_instance;
|
|
263
|
+
tmp.j7_1 = null;
|
|
264
|
+
return tmp.o7();
|
|
263
265
|
};
|
|
264
|
-
protoOf(BatchCalculator$setElevations$slambda).
|
|
265
|
-
return this.
|
|
266
|
+
protoOf(BatchCalculator$setElevations$slambda).w7 = function (p1, $completion) {
|
|
267
|
+
return this.zy((!(p1 == null) ? isInterface(p1, MutableEntry) : false) ? p1 : THROW_CCE(), $completion);
|
|
266
268
|
};
|
|
267
|
-
protoOf(BatchCalculator$setElevations$slambda).
|
|
268
|
-
var suspendResult = this.
|
|
269
|
+
protoOf(BatchCalculator$setElevations$slambda).o7 = function () {
|
|
270
|
+
var suspendResult = this.i7_1;
|
|
269
271
|
$sm: do
|
|
270
272
|
try {
|
|
271
|
-
var tmp = this.
|
|
273
|
+
var tmp = this.g7_1;
|
|
272
274
|
switch (tmp) {
|
|
273
275
|
case 0:
|
|
274
|
-
this.
|
|
275
|
-
var indices = this.
|
|
276
|
-
this.
|
|
277
|
-
this.
|
|
276
|
+
this.h7_1 = 4;
|
|
277
|
+
var indices = this.vy_1.n1();
|
|
278
|
+
this.yy_1 = indices.l();
|
|
279
|
+
this.g7_1 = 1;
|
|
278
280
|
continue $sm;
|
|
279
281
|
case 1:
|
|
280
|
-
if (!this.
|
|
281
|
-
this.
|
|
282
|
+
if (!this.yy_1.m()) {
|
|
283
|
+
this.g7_1 = 3;
|
|
282
284
|
continue $sm;
|
|
283
285
|
}
|
|
284
286
|
|
|
285
|
-
this.
|
|
286
|
-
this.
|
|
287
|
-
this.
|
|
288
|
-
suspendResult = this.
|
|
287
|
+
this.xy_1 = this.yy_1.n();
|
|
288
|
+
this.wy_1 = this.qy_1.p(this.xy_1);
|
|
289
|
+
this.g7_1 = 2;
|
|
290
|
+
suspendResult = this.ry_1.bz_1.fz(this.wy_1, this.sy_1, this.ty_1, this);
|
|
289
291
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
290
292
|
return suspendResult;
|
|
291
293
|
}
|
|
@@ -293,136 +295,136 @@
|
|
|
293
295
|
continue $sm;
|
|
294
296
|
case 2:
|
|
295
297
|
var ele = suspendResult;
|
|
296
|
-
this
|
|
297
|
-
this.
|
|
298
|
+
this.uy_1[this.xy_1] = new LatLonElevation(this.wy_1.gz(), this.wy_1.hz(), ele);
|
|
299
|
+
this.g7_1 = 1;
|
|
298
300
|
continue $sm;
|
|
299
301
|
case 3:
|
|
300
302
|
return Unit_instance;
|
|
301
303
|
case 4:
|
|
302
|
-
throw this.
|
|
304
|
+
throw this.j7_1;
|
|
303
305
|
}
|
|
304
306
|
} catch ($p) {
|
|
305
307
|
var e = $p;
|
|
306
|
-
if (this.
|
|
308
|
+
if (this.h7_1 === 4) {
|
|
307
309
|
throw e;
|
|
308
310
|
} else {
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
311
|
+
this.g7_1 = this.h7_1;
|
|
312
|
+
this.j7_1 = e;
|
|
311
313
|
}
|
|
312
314
|
}
|
|
313
315
|
while (true);
|
|
314
316
|
};
|
|
315
|
-
protoOf(BatchCalculator$setElevations$slambda).
|
|
316
|
-
var i = new BatchCalculator$setElevations$slambda(this
|
|
317
|
-
i.
|
|
317
|
+
protoOf(BatchCalculator$setElevations$slambda).az = function (_destruct__k2r9zo, completion) {
|
|
318
|
+
var i = new BatchCalculator$setElevations$slambda(this.qy_1, this.ry_1, this.sy_1, this.ty_1, this.uy_1, completion);
|
|
319
|
+
i.vy_1 = _destruct__k2r9zo;
|
|
318
320
|
return i;
|
|
319
321
|
};
|
|
320
322
|
function BatchCalculator$setElevations$slambda_0($coordinates, this$0, $zoomLevel, $interpolation, $results, resultContinuation) {
|
|
321
323
|
var i = new BatchCalculator$setElevations$slambda($coordinates, this$0, $zoomLevel, $interpolation, $results, resultContinuation);
|
|
322
324
|
return constructCallableReference(function (_destruct__k2r9zo, $completion) {
|
|
323
|
-
return i.
|
|
325
|
+
return i.zy(_destruct__k2r9zo, $completion);
|
|
324
326
|
}, 1);
|
|
325
327
|
}
|
|
326
328
|
function $setElevationsCOROUTINE$(_this__u8e3s4, coordinates, zoomLevel, interpolation, maxParallelTiles, resultContinuation) {
|
|
327
329
|
CoroutineImpl.call(this, resultContinuation);
|
|
328
|
-
this.
|
|
329
|
-
this.
|
|
330
|
-
this.
|
|
331
|
-
this.
|
|
332
|
-
this.
|
|
333
|
-
}
|
|
334
|
-
protoOf($setElevationsCOROUTINE$).
|
|
335
|
-
var suspendResult = this.
|
|
330
|
+
this.qz_1 = _this__u8e3s4;
|
|
331
|
+
this.rz_1 = coordinates;
|
|
332
|
+
this.sz_1 = zoomLevel;
|
|
333
|
+
this.tz_1 = interpolation;
|
|
334
|
+
this.uz_1 = maxParallelTiles;
|
|
335
|
+
}
|
|
336
|
+
protoOf($setElevationsCOROUTINE$).o7 = function () {
|
|
337
|
+
var suspendResult = this.i7_1;
|
|
336
338
|
$sm: do
|
|
337
339
|
try {
|
|
338
|
-
var tmp = this.
|
|
340
|
+
var tmp = this.g7_1;
|
|
339
341
|
switch (tmp) {
|
|
340
342
|
case 0:
|
|
341
|
-
this.
|
|
342
|
-
if (this.
|
|
343
|
+
this.h7_1 = 2;
|
|
344
|
+
if (this.rz_1.q())
|
|
343
345
|
return emptyList();
|
|
344
346
|
var tmp_0 = this;
|
|
345
|
-
var size = this.
|
|
346
|
-
tmp_0.
|
|
347
|
+
var size = this.rz_1.o();
|
|
348
|
+
tmp_0.vz_1 = Array(size);
|
|
347
349
|
var byTile = LinkedHashMap_init_$Create$();
|
|
348
|
-
var iterator = this.
|
|
350
|
+
var iterator = this.rz_1.l();
|
|
349
351
|
var index = 0;
|
|
350
|
-
while (iterator.
|
|
352
|
+
while (iterator.m()) {
|
|
351
353
|
var i = index;
|
|
352
354
|
index = index + 1 | 0;
|
|
353
|
-
var p = iterator.
|
|
354
|
-
var tile = ElevationFunctions_instance.
|
|
355
|
-
var key = '' + tile.
|
|
356
|
-
var value = byTile.
|
|
355
|
+
var p = iterator.n();
|
|
356
|
+
var tile = ElevationFunctions_instance.yz(p, this.sz_1);
|
|
357
|
+
var key = '' + tile.b10_1 + '/' + tile.zz_1 + '/' + tile.a10_1;
|
|
358
|
+
var value = byTile.q1(key);
|
|
357
359
|
var tmp_1;
|
|
358
360
|
if (value == null) {
|
|
359
361
|
var answer = ArrayList_init_$Create$();
|
|
360
|
-
byTile.
|
|
362
|
+
byTile.s3(key, answer);
|
|
361
363
|
tmp_1 = answer;
|
|
362
364
|
} else {
|
|
363
365
|
tmp_1 = value;
|
|
364
366
|
}
|
|
365
|
-
tmp_1.
|
|
367
|
+
tmp_1.k(i);
|
|
366
368
|
}
|
|
367
369
|
|
|
368
|
-
this.
|
|
370
|
+
this.g7_1 = 1;
|
|
369
371
|
var tmp_2 = Flux_instance;
|
|
370
|
-
var tmp_3 = byTile.
|
|
371
|
-
suspendResult = tmp_2.
|
|
372
|
+
var tmp_3 = byTile.t1();
|
|
373
|
+
suspendResult = tmp_2.c10(tmp_3, this.uz_1, BatchCalculator$setElevations$slambda_0(this.rz_1, this.qz_1, this.sz_1, this.tz_1, this.vz_1, null), this);
|
|
372
374
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
373
375
|
return suspendResult;
|
|
374
376
|
}
|
|
375
377
|
|
|
376
378
|
continue $sm;
|
|
377
379
|
case 1:
|
|
378
|
-
var tmp_4 = toList(this.
|
|
380
|
+
var tmp_4 = toList(this.vz_1);
|
|
379
381
|
return isInterface(tmp_4, KtList) ? tmp_4 : THROW_CCE();
|
|
380
382
|
case 2:
|
|
381
|
-
throw this.
|
|
383
|
+
throw this.j7_1;
|
|
382
384
|
}
|
|
383
385
|
} catch ($p) {
|
|
384
386
|
var e = $p;
|
|
385
|
-
if (this.
|
|
387
|
+
if (this.h7_1 === 2) {
|
|
386
388
|
throw e;
|
|
387
389
|
} else {
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
390
|
+
this.g7_1 = this.h7_1;
|
|
391
|
+
this.j7_1 = e;
|
|
390
392
|
}
|
|
391
393
|
}
|
|
392
394
|
while (true);
|
|
393
395
|
};
|
|
394
396
|
function $getElevationsAlongCOROUTINE$(_this__u8e3s4, path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, resultContinuation) {
|
|
395
397
|
CoroutineImpl.call(this, resultContinuation);
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
403
|
-
this.
|
|
404
|
-
}
|
|
405
|
-
protoOf($getElevationsAlongCOROUTINE$).
|
|
406
|
-
var suspendResult = this.
|
|
398
|
+
this.l10_1 = _this__u8e3s4;
|
|
399
|
+
this.m10_1 = path;
|
|
400
|
+
this.n10_1 = zoomLevel;
|
|
401
|
+
this.o10_1 = step;
|
|
402
|
+
this.p10_1 = minDistance;
|
|
403
|
+
this.q10_1 = interpolation;
|
|
404
|
+
this.r10_1 = smoothingOptions;
|
|
405
|
+
this.s10_1 = filterOptions;
|
|
406
|
+
}
|
|
407
|
+
protoOf($getElevationsAlongCOROUTINE$).o7 = function () {
|
|
408
|
+
var suspendResult = this.i7_1;
|
|
407
409
|
$sm: do
|
|
408
410
|
try {
|
|
409
|
-
var tmp = this.
|
|
411
|
+
var tmp = this.g7_1;
|
|
410
412
|
switch (tmp) {
|
|
411
413
|
case 0:
|
|
412
|
-
this.
|
|
413
|
-
if (!(this.
|
|
414
|
+
this.h7_1 = 2;
|
|
415
|
+
if (!(this.m10_1.o() >= 2)) {
|
|
414
416
|
var message = 'Path must contain at least 2 coordinates';
|
|
415
417
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
416
418
|
}
|
|
417
419
|
|
|
418
|
-
if (!(this.
|
|
419
|
-
var message_0 = 'Step is too small: ' + formatNumber(this.
|
|
420
|
+
if (!(this.o10_1 > 1.0)) {
|
|
421
|
+
var message_0 = 'Step is too small: ' + formatNumber(this.l10_1, this.o10_1) + ' meters';
|
|
420
422
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
421
423
|
}
|
|
422
424
|
|
|
423
|
-
var densified = this.
|
|
424
|
-
this.
|
|
425
|
-
suspendResult = this.
|
|
425
|
+
var densified = this.l10_1.t10(this.m10_1, this.o10_1, this.p10_1);
|
|
426
|
+
this.g7_1 = 1;
|
|
427
|
+
suspendResult = this.l10_1.u10(densified, this.n10_1, this.q10_1, VOID, this);
|
|
426
428
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
427
429
|
return suspendResult;
|
|
428
430
|
}
|
|
@@ -431,9 +433,9 @@
|
|
|
431
433
|
case 1:
|
|
432
434
|
var withElevation = suspendResult;
|
|
433
435
|
var tmp_0;
|
|
434
|
-
var tmp1_safe_receiver = this.
|
|
435
|
-
if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
436
|
-
tmp_0 = withElevation.
|
|
436
|
+
var tmp1_safe_receiver = this.r10_1;
|
|
437
|
+
if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ey_1) === true) {
|
|
438
|
+
tmp_0 = withElevation.o() >= 3;
|
|
437
439
|
} else {
|
|
438
440
|
tmp_0 = false;
|
|
439
441
|
}
|
|
@@ -441,14 +443,14 @@
|
|
|
441
443
|
if (tmp_0) {
|
|
442
444
|
var tmp_1 = ElevationSmoother_instance;
|
|
443
445
|
var tmp_2 = withElevation;
|
|
444
|
-
var tmp0_elvis_lhs = this.
|
|
445
|
-
withElevation = tmp_1.
|
|
446
|
+
var tmp0_elvis_lhs = this.r10_1.dy_1;
|
|
447
|
+
withElevation = tmp_1.v10(tmp_2, tmp0_elvis_lhs == null ? 50.0 : tmp0_elvis_lhs);
|
|
446
448
|
}
|
|
447
449
|
|
|
448
450
|
var tmp_3;
|
|
449
|
-
var tmp4_safe_receiver = this.
|
|
450
|
-
if ((tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
451
|
-
tmp_3 = withElevation.
|
|
451
|
+
var tmp4_safe_receiver = this.s10_1;
|
|
452
|
+
if ((tmp4_safe_receiver == null ? null : tmp4_safe_receiver.hy_1) === true) {
|
|
453
|
+
tmp_3 = withElevation.o() > 2;
|
|
452
454
|
} else {
|
|
453
455
|
tmp_3 = false;
|
|
454
456
|
}
|
|
@@ -456,74 +458,74 @@
|
|
|
456
458
|
if (tmp_3) {
|
|
457
459
|
var tmp_4 = DouglasPeucker_instance;
|
|
458
460
|
var tmp_5 = withElevation;
|
|
459
|
-
var tmp2_elvis_lhs = this.
|
|
461
|
+
var tmp2_elvis_lhs = this.s10_1.fy_1;
|
|
460
462
|
var tmp_6 = tmp2_elvis_lhs == null ? 10.0 : tmp2_elvis_lhs;
|
|
461
|
-
var tmp3_elvis_lhs = this.
|
|
462
|
-
withElevation = tmp_4.
|
|
463
|
+
var tmp3_elvis_lhs = this.s10_1.gy_1;
|
|
464
|
+
withElevation = tmp_4.w10(tmp_5, tmp_6, tmp3_elvis_lhs == null ? 3.0 : tmp3_elvis_lhs);
|
|
463
465
|
}
|
|
464
466
|
|
|
465
467
|
return withElevation;
|
|
466
468
|
case 2:
|
|
467
|
-
throw this.
|
|
469
|
+
throw this.j7_1;
|
|
468
470
|
}
|
|
469
471
|
} catch ($p) {
|
|
470
472
|
var e = $p;
|
|
471
|
-
if (this.
|
|
473
|
+
if (this.h7_1 === 2) {
|
|
472
474
|
throw e;
|
|
473
475
|
} else {
|
|
474
|
-
this.
|
|
475
|
-
this.
|
|
476
|
+
this.g7_1 = this.h7_1;
|
|
477
|
+
this.j7_1 = e;
|
|
476
478
|
}
|
|
477
479
|
}
|
|
478
480
|
while (true);
|
|
479
481
|
};
|
|
480
482
|
function BatchCalculator(calculator) {
|
|
481
|
-
this.
|
|
483
|
+
this.bz_1 = calculator;
|
|
482
484
|
}
|
|
483
|
-
protoOf(BatchCalculator).
|
|
485
|
+
protoOf(BatchCalculator).x10 = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) {
|
|
484
486
|
var tmp = new $setElevationsCOROUTINE$(this, coordinates, zoomLevel, interpolation, maxParallelTiles, $completion);
|
|
485
|
-
tmp.
|
|
486
|
-
tmp.
|
|
487
|
-
return tmp.
|
|
487
|
+
tmp.i7_1 = Unit_instance;
|
|
488
|
+
tmp.j7_1 = null;
|
|
489
|
+
return tmp.o7();
|
|
488
490
|
};
|
|
489
|
-
protoOf(BatchCalculator).
|
|
491
|
+
protoOf(BatchCalculator).u10 = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion, $super) {
|
|
490
492
|
maxParallelTiles = maxParallelTiles === VOID ? 10 : maxParallelTiles;
|
|
491
|
-
return $super === VOID ? this.
|
|
493
|
+
return $super === VOID ? this.x10(coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) : $super.x10.call(this, coordinates, zoomLevel, interpolation, maxParallelTiles, $completion);
|
|
492
494
|
};
|
|
493
|
-
protoOf(BatchCalculator).
|
|
495
|
+
protoOf(BatchCalculator).y10 = function (path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
|
|
494
496
|
var tmp = new $getElevationsAlongCOROUTINE$(this, path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
|
|
495
|
-
tmp.
|
|
496
|
-
tmp.
|
|
497
|
-
return tmp.
|
|
497
|
+
tmp.i7_1 = Unit_instance;
|
|
498
|
+
tmp.j7_1 = null;
|
|
499
|
+
return tmp.o7();
|
|
498
500
|
};
|
|
499
|
-
protoOf(BatchCalculator).
|
|
500
|
-
if (path.
|
|
501
|
+
protoOf(BatchCalculator).t10 = function (path, step, minDistance) {
|
|
502
|
+
if (path.q())
|
|
501
503
|
return emptyList();
|
|
502
|
-
var out = ArrayList_init_$Create$_0(imul(path.
|
|
503
|
-
var anchor = path.
|
|
504
|
+
var out = ArrayList_init_$Create$_0(imul(path.o(), 2));
|
|
505
|
+
var anchor = path.p(0);
|
|
504
506
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
505
507
|
var element = anchor;
|
|
506
|
-
out.
|
|
508
|
+
out.k(element);
|
|
507
509
|
var inductionVariable = 1;
|
|
508
|
-
var last = path.
|
|
510
|
+
var last = path.o();
|
|
509
511
|
if (inductionVariable < last)
|
|
510
512
|
$l$loop: do {
|
|
511
513
|
var i = inductionVariable;
|
|
512
514
|
inductionVariable = inductionVariable + 1 | 0;
|
|
513
|
-
var b = path.
|
|
514
|
-
var d = Distance_instance.
|
|
515
|
+
var b = path.p(i);
|
|
516
|
+
var d = Distance_instance.z10(anchor, b);
|
|
515
517
|
if (d < minDistance)
|
|
516
518
|
continue $l$loop;
|
|
517
|
-
var between = this.
|
|
519
|
+
var between = this.a11(anchor, b, step, d);
|
|
518
520
|
var inductionVariable_0 = 1;
|
|
519
|
-
var last_0 = between.
|
|
521
|
+
var last_0 = between.o();
|
|
520
522
|
if (inductionVariable_0 < last_0)
|
|
521
523
|
do {
|
|
522
524
|
var j = inductionVariable_0;
|
|
523
525
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
524
526
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
525
|
-
var element_0 = between.
|
|
526
|
-
out.
|
|
527
|
+
var element_0 = between.p(j);
|
|
528
|
+
out.k(element_0);
|
|
527
529
|
}
|
|
528
530
|
while (inductionVariable_0 < last_0);
|
|
529
531
|
anchor = b;
|
|
@@ -531,15 +533,15 @@
|
|
|
531
533
|
while (inductionVariable < last);
|
|
532
534
|
return out;
|
|
533
535
|
};
|
|
534
|
-
protoOf(BatchCalculator).
|
|
536
|
+
protoOf(BatchCalculator).a11 = function (a, b, step, distance) {
|
|
535
537
|
if (distance <= step)
|
|
536
538
|
return listOf([a, b]);
|
|
537
539
|
var numSteps = numberToInt(distance / step);
|
|
538
540
|
var out = ArrayList_init_$Create$_0(numSteps + 2 | 0);
|
|
539
541
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
540
|
-
out.
|
|
541
|
-
var latDiff = b.
|
|
542
|
-
var lonDiff = b.
|
|
542
|
+
out.k(a);
|
|
543
|
+
var latDiff = b.gz() - a.gz();
|
|
544
|
+
var lonDiff = b.hz() - a.hz();
|
|
543
545
|
var inductionVariable = 1;
|
|
544
546
|
if (inductionVariable <= numSteps)
|
|
545
547
|
do {
|
|
@@ -547,12 +549,12 @@
|
|
|
547
549
|
inductionVariable = inductionVariable + 1 | 0;
|
|
548
550
|
var f = i * step / distance;
|
|
549
551
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
550
|
-
var element = new LatLon(a.
|
|
551
|
-
out.
|
|
552
|
+
var element = new LatLon(a.gz() + latDiff * f, a.hz() + lonDiff * f);
|
|
553
|
+
out.k(element);
|
|
552
554
|
}
|
|
553
555
|
while (!(i === numSteps));
|
|
554
556
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
555
|
-
out.
|
|
557
|
+
out.k(b);
|
|
556
558
|
return out;
|
|
557
559
|
};
|
|
558
560
|
var static_init_called;
|
|
@@ -639,26 +641,26 @@
|
|
|
639
641
|
}
|
|
640
642
|
function LatLon(latitude, longitude, elevation) {
|
|
641
643
|
elevation = elevation === VOID ? null : elevation;
|
|
642
|
-
this.
|
|
643
|
-
this.
|
|
644
|
-
this.
|
|
644
|
+
this.b11_1 = latitude;
|
|
645
|
+
this.c11_1 = longitude;
|
|
646
|
+
this.d11_1 = elevation;
|
|
645
647
|
}
|
|
646
|
-
protoOf(LatLon).
|
|
647
|
-
return this.
|
|
648
|
+
protoOf(LatLon).gz = function () {
|
|
649
|
+
return this.b11_1;
|
|
648
650
|
};
|
|
649
|
-
protoOf(LatLon).
|
|
650
|
-
return this.
|
|
651
|
+
protoOf(LatLon).hz = function () {
|
|
652
|
+
return this.c11_1;
|
|
651
653
|
};
|
|
652
|
-
protoOf(LatLon).
|
|
653
|
-
return this.
|
|
654
|
+
protoOf(LatLon).e11 = function () {
|
|
655
|
+
return this.d11_1;
|
|
654
656
|
};
|
|
655
657
|
protoOf(LatLon).toString = function () {
|
|
656
|
-
return 'LatLon(latitude=' + this.
|
|
658
|
+
return 'LatLon(latitude=' + this.b11_1 + ', longitude=' + this.c11_1 + ', elevation=' + this.d11_1 + ')';
|
|
657
659
|
};
|
|
658
660
|
protoOf(LatLon).hashCode = function () {
|
|
659
|
-
var result = getNumberHashCode(this.
|
|
660
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
661
|
-
result = imul(result, 31) + (this.
|
|
661
|
+
var result = getNumberHashCode(this.b11_1);
|
|
662
|
+
result = imul(result, 31) + getNumberHashCode(this.c11_1) | 0;
|
|
663
|
+
result = imul(result, 31) + (this.d11_1 == null ? 0 : getNumberHashCode(this.d11_1)) | 0;
|
|
662
664
|
return result;
|
|
663
665
|
};
|
|
664
666
|
protoOf(LatLon).equals = function (other) {
|
|
@@ -666,37 +668,37 @@
|
|
|
666
668
|
return true;
|
|
667
669
|
if (!(other instanceof LatLon))
|
|
668
670
|
return false;
|
|
669
|
-
if (!equals(this.
|
|
671
|
+
if (!equals(this.b11_1, other.b11_1))
|
|
670
672
|
return false;
|
|
671
|
-
if (!equals(this.
|
|
673
|
+
if (!equals(this.c11_1, other.c11_1))
|
|
672
674
|
return false;
|
|
673
|
-
if (!equals(this.
|
|
675
|
+
if (!equals(this.d11_1, other.d11_1))
|
|
674
676
|
return false;
|
|
675
677
|
return true;
|
|
676
678
|
};
|
|
677
679
|
function Coordinates() {
|
|
678
680
|
}
|
|
679
681
|
function LatLonElevation(latitude, longitude, elevation) {
|
|
680
|
-
this.
|
|
681
|
-
this.
|
|
682
|
-
this.
|
|
682
|
+
this.f11_1 = latitude;
|
|
683
|
+
this.g11_1 = longitude;
|
|
684
|
+
this.h11_1 = elevation;
|
|
683
685
|
}
|
|
684
|
-
protoOf(LatLonElevation).
|
|
685
|
-
return this.
|
|
686
|
+
protoOf(LatLonElevation).gz = function () {
|
|
687
|
+
return this.f11_1;
|
|
686
688
|
};
|
|
687
|
-
protoOf(LatLonElevation).
|
|
688
|
-
return this.
|
|
689
|
+
protoOf(LatLonElevation).hz = function () {
|
|
690
|
+
return this.g11_1;
|
|
689
691
|
};
|
|
690
|
-
protoOf(LatLonElevation).
|
|
691
|
-
return this.
|
|
692
|
+
protoOf(LatLonElevation).e11 = function () {
|
|
693
|
+
return this.h11_1;
|
|
692
694
|
};
|
|
693
695
|
protoOf(LatLonElevation).toString = function () {
|
|
694
|
-
return 'LatLonElevation(latitude=' + this.
|
|
696
|
+
return 'LatLonElevation(latitude=' + this.f11_1 + ', longitude=' + this.g11_1 + ', elevation=' + this.h11_1 + ')';
|
|
695
697
|
};
|
|
696
698
|
protoOf(LatLonElevation).hashCode = function () {
|
|
697
|
-
var result = getNumberHashCode(this.
|
|
698
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
699
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
699
|
+
var result = getNumberHashCode(this.f11_1);
|
|
700
|
+
result = imul(result, 31) + getNumberHashCode(this.g11_1) | 0;
|
|
701
|
+
result = imul(result, 31) + getNumberHashCode(this.h11_1) | 0;
|
|
700
702
|
return result;
|
|
701
703
|
};
|
|
702
704
|
protoOf(LatLonElevation).equals = function (other) {
|
|
@@ -704,21 +706,21 @@
|
|
|
704
706
|
return true;
|
|
705
707
|
if (!(other instanceof LatLonElevation))
|
|
706
708
|
return false;
|
|
707
|
-
if (!equals(this.
|
|
709
|
+
if (!equals(this.f11_1, other.f11_1))
|
|
708
710
|
return false;
|
|
709
|
-
if (!equals(this.
|
|
711
|
+
if (!equals(this.g11_1, other.g11_1))
|
|
710
712
|
return false;
|
|
711
|
-
if (!equals(this.
|
|
713
|
+
if (!equals(this.h11_1, other.h11_1))
|
|
712
714
|
return false;
|
|
713
715
|
return true;
|
|
714
716
|
};
|
|
715
717
|
function Distance() {
|
|
716
718
|
}
|
|
717
|
-
protoOf(Distance).
|
|
718
|
-
var lat1Rad = coord1.
|
|
719
|
-
var lat2Rad = coord2.
|
|
720
|
-
var deltaLat = (coord2.
|
|
721
|
-
var deltaLon = (coord2.
|
|
719
|
+
protoOf(Distance).z10 = function (coord1, coord2) {
|
|
720
|
+
var lat1Rad = coord1.gz() * 0.017453292519943295;
|
|
721
|
+
var lat2Rad = coord2.gz() * 0.017453292519943295;
|
|
722
|
+
var deltaLat = (coord2.gz() - coord1.gz()) * 0.017453292519943295;
|
|
723
|
+
var deltaLon = (coord2.hz() - coord1.hz()) * 0.017453292519943295;
|
|
722
724
|
// Inline function 'kotlin.math.sin' call
|
|
723
725
|
var x = deltaLat / 2.0;
|
|
724
726
|
var sinHalfLat = Math.sin(x);
|
|
@@ -740,19 +742,19 @@
|
|
|
740
742
|
var c = 2.0 * Math.atan2(tmp0, x_2);
|
|
741
743
|
return 6371000.0 * c;
|
|
742
744
|
};
|
|
743
|
-
protoOf(Distance).
|
|
744
|
-
if (points.
|
|
745
|
+
protoOf(Distance).i11 = function (points) {
|
|
746
|
+
if (points.q()) {
|
|
745
747
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
746
748
|
return new Float64Array([0.0]);
|
|
747
749
|
}
|
|
748
|
-
var out = new Float64Array(points.
|
|
750
|
+
var out = new Float64Array(points.o());
|
|
749
751
|
var inductionVariable = 1;
|
|
750
|
-
var last = points.
|
|
752
|
+
var last = points.o();
|
|
751
753
|
if (inductionVariable < last)
|
|
752
754
|
do {
|
|
753
755
|
var i = inductionVariable;
|
|
754
756
|
inductionVariable = inductionVariable + 1 | 0;
|
|
755
|
-
out[i] = out[i - 1 | 0] + this.
|
|
757
|
+
out[i] = out[i - 1 | 0] + this.z10(points.p(i - 1 | 0), points.p(i));
|
|
756
758
|
}
|
|
757
759
|
while (inductionVariable < last);
|
|
758
760
|
return out;
|
|
@@ -762,8 +764,8 @@
|
|
|
762
764
|
return Distance_instance;
|
|
763
765
|
}
|
|
764
766
|
function simplifyRecursive($this, points, firstIndex, lastIndex, tolerance, out) {
|
|
765
|
-
var first = points.
|
|
766
|
-
var last = points.
|
|
767
|
+
var first = points.p(firstIndex);
|
|
768
|
+
var last = points.p(lastIndex);
|
|
767
769
|
var maxDistance = 0.0;
|
|
768
770
|
var maxIndex = -1;
|
|
769
771
|
var inductionVariable = firstIndex + 1 | 0;
|
|
@@ -771,7 +773,7 @@
|
|
|
771
773
|
do {
|
|
772
774
|
var i = inductionVariable;
|
|
773
775
|
inductionVariable = inductionVariable + 1 | 0;
|
|
774
|
-
var d = points.
|
|
776
|
+
var d = points.p(i).m11(first, last);
|
|
775
777
|
if (d > maxDistance) {
|
|
776
778
|
maxDistance = d;
|
|
777
779
|
maxIndex = i;
|
|
@@ -782,7 +784,7 @@
|
|
|
782
784
|
if ((maxIndex - firstIndex | 0) > 1) {
|
|
783
785
|
simplifyRecursive($this, points, firstIndex, maxIndex, tolerance, out);
|
|
784
786
|
}
|
|
785
|
-
out.
|
|
787
|
+
out.k(maxIndex);
|
|
786
788
|
if ((lastIndex - maxIndex | 0) > 1) {
|
|
787
789
|
simplifyRecursive($this, points, maxIndex, lastIndex, tolerance, out);
|
|
788
790
|
}
|
|
@@ -790,45 +792,45 @@
|
|
|
790
792
|
}
|
|
791
793
|
function DouglasPeucker() {
|
|
792
794
|
}
|
|
793
|
-
protoOf(DouglasPeucker).
|
|
794
|
-
if (points.
|
|
795
|
+
protoOf(DouglasPeucker).w10 = function (points, tolerance, zExaggeration) {
|
|
796
|
+
if (points.o() <= 2)
|
|
795
797
|
return toList_0(points);
|
|
796
798
|
// Inline function 'kotlin.collections.map' call
|
|
797
799
|
// Inline function 'kotlin.collections.mapTo' call
|
|
798
800
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(points, 10));
|
|
799
|
-
var _iterator__ex2g4s = points.
|
|
800
|
-
while (_iterator__ex2g4s.
|
|
801
|
-
var item = _iterator__ex2g4s.
|
|
802
|
-
var tmp$ret$2 = EcefConverter_instance.
|
|
803
|
-
destination.
|
|
801
|
+
var _iterator__ex2g4s = points.l();
|
|
802
|
+
while (_iterator__ex2g4s.m()) {
|
|
803
|
+
var item = _iterator__ex2g4s.n();
|
|
804
|
+
var tmp$ret$2 = EcefConverter_instance.n11(item, zExaggeration);
|
|
805
|
+
destination.k(tmp$ret$2);
|
|
804
806
|
}
|
|
805
807
|
var ecef = destination;
|
|
806
808
|
// Inline function 'kotlin.collections.map' call
|
|
807
|
-
var this_0 = this.
|
|
809
|
+
var this_0 = this.o11(ecef, tolerance);
|
|
808
810
|
// Inline function 'kotlin.collections.mapTo' call
|
|
809
811
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
810
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
811
|
-
while (_iterator__ex2g4s_0.
|
|
812
|
-
var item_0 = _iterator__ex2g4s_0.
|
|
813
|
-
var tmp$ret$5 = points.
|
|
814
|
-
destination_0.
|
|
812
|
+
var _iterator__ex2g4s_0 = this_0.l();
|
|
813
|
+
while (_iterator__ex2g4s_0.m()) {
|
|
814
|
+
var item_0 = _iterator__ex2g4s_0.n();
|
|
815
|
+
var tmp$ret$5 = points.p(item_0);
|
|
816
|
+
destination_0.k(tmp$ret$5);
|
|
815
817
|
}
|
|
816
818
|
return destination_0;
|
|
817
819
|
};
|
|
818
|
-
protoOf(DouglasPeucker).
|
|
819
|
-
if (points.
|
|
820
|
+
protoOf(DouglasPeucker).o11 = function (points, tolerance) {
|
|
821
|
+
if (points.o() <= 2)
|
|
820
822
|
return toList_0(get_indices(points));
|
|
821
823
|
var lastIndex = get_lastIndex(points);
|
|
822
824
|
// Inline function 'kotlin.collections.buildList' call
|
|
823
825
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
824
|
-
var capacity = points.
|
|
826
|
+
var capacity = points.o();
|
|
825
827
|
checkBuilderCapacity(capacity);
|
|
826
828
|
// Inline function 'kotlin.apply' call
|
|
827
829
|
var this_0 = ArrayList_init_$Create$_0(capacity);
|
|
828
|
-
this_0.
|
|
830
|
+
this_0.k(0);
|
|
829
831
|
simplifyRecursive(DouglasPeucker_instance, points, 0, lastIndex, tolerance, this_0);
|
|
830
|
-
this_0.
|
|
831
|
-
return this_0.
|
|
832
|
+
this_0.k(lastIndex);
|
|
833
|
+
return this_0.b4();
|
|
832
834
|
};
|
|
833
835
|
var DouglasPeucker_instance;
|
|
834
836
|
function DouglasPeucker_getInstance() {
|
|
@@ -836,10 +838,10 @@
|
|
|
836
838
|
}
|
|
837
839
|
function EcefConverter() {
|
|
838
840
|
}
|
|
839
|
-
protoOf(EcefConverter).
|
|
840
|
-
var latRad = coordinates.
|
|
841
|
-
var lonRad = coordinates.
|
|
842
|
-
var tmp0_elvis_lhs = coordinates.
|
|
841
|
+
protoOf(EcefConverter).n11 = function (coordinates, zExaggeration) {
|
|
842
|
+
var latRad = coordinates.gz() * 0.017453292519943295;
|
|
843
|
+
var lonRad = coordinates.hz() * 0.017453292519943295;
|
|
844
|
+
var tmp0_elvis_lhs = coordinates.e11();
|
|
843
845
|
var elevationExaggerated = zExaggeration * (tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs);
|
|
844
846
|
// Inline function 'kotlin.math.sin' call
|
|
845
847
|
var sinLat = Math.sin(latRad);
|
|
@@ -863,43 +865,43 @@
|
|
|
863
865
|
}
|
|
864
866
|
function getInterpolatedElevation($this, coords, zoomLevel, $completion) {
|
|
865
867
|
var tmp = new $getInterpolatedElevationCOROUTINE$($this, coords, zoomLevel, $completion);
|
|
866
|
-
tmp.
|
|
867
|
-
tmp.
|
|
868
|
-
return tmp.
|
|
868
|
+
tmp.i7_1 = Unit_instance;
|
|
869
|
+
tmp.j7_1 = null;
|
|
870
|
+
return tmp.o7();
|
|
869
871
|
}
|
|
870
872
|
function elevationFromPixel($this, pixel, $completion) {
|
|
871
873
|
var tmp = new $elevationFromPixelCOROUTINE$($this, pixel, $completion);
|
|
872
|
-
tmp.
|
|
873
|
-
tmp.
|
|
874
|
-
return tmp.
|
|
874
|
+
tmp.i7_1 = Unit_instance;
|
|
875
|
+
tmp.j7_1 = null;
|
|
876
|
+
return tmp.o7();
|
|
875
877
|
}
|
|
876
878
|
function $getElevationCOROUTINE$(_this__u8e3s4, coords, zoomLevel, interpolation, resultContinuation) {
|
|
877
879
|
CoroutineImpl.call(this, resultContinuation);
|
|
878
|
-
this.
|
|
879
|
-
this.
|
|
880
|
-
this.
|
|
881
|
-
this.
|
|
880
|
+
this.c13_1 = _this__u8e3s4;
|
|
881
|
+
this.d13_1 = coords;
|
|
882
|
+
this.e13_1 = zoomLevel;
|
|
883
|
+
this.f13_1 = interpolation;
|
|
882
884
|
}
|
|
883
|
-
protoOf($getElevationCOROUTINE$).
|
|
884
|
-
var suspendResult = this.
|
|
885
|
+
protoOf($getElevationCOROUTINE$).o7 = function () {
|
|
886
|
+
var suspendResult = this.i7_1;
|
|
885
887
|
$sm: do
|
|
886
888
|
try {
|
|
887
|
-
var tmp = this.
|
|
889
|
+
var tmp = this.g7_1;
|
|
888
890
|
switch (tmp) {
|
|
889
891
|
case 0:
|
|
890
|
-
this.
|
|
891
|
-
this.
|
|
892
|
-
if (this.
|
|
893
|
-
this.
|
|
894
|
-
suspendResult = getInterpolatedElevation(this.
|
|
892
|
+
this.h7_1 = 8;
|
|
893
|
+
this.h7_1 = 4;
|
|
894
|
+
if (this.f13_1) {
|
|
895
|
+
this.g7_1 = 2;
|
|
896
|
+
suspendResult = getInterpolatedElevation(this.c13_1, this.d13_1, this.e13_1, this);
|
|
895
897
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
896
898
|
return suspendResult;
|
|
897
899
|
}
|
|
898
900
|
continue $sm;
|
|
899
901
|
} else {
|
|
900
|
-
var pixel = ElevationFunctions_instance.
|
|
901
|
-
this.
|
|
902
|
-
suspendResult = elevationFromPixel(this.
|
|
902
|
+
var pixel = ElevationFunctions_instance.j13(this.d13_1, this.e13_1, this.c13_1.dz_1);
|
|
903
|
+
this.g7_1 = 1;
|
|
904
|
+
suspendResult = elevationFromPixel(this.c13_1, pixel, this);
|
|
903
905
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
904
906
|
return suspendResult;
|
|
905
907
|
}
|
|
@@ -907,42 +909,42 @@
|
|
|
907
909
|
}
|
|
908
910
|
|
|
909
911
|
case 1:
|
|
910
|
-
this.
|
|
911
|
-
this.
|
|
912
|
+
this.i13_1 = suspendResult;
|
|
913
|
+
this.g7_1 = 3;
|
|
912
914
|
continue $sm;
|
|
913
915
|
case 2:
|
|
914
|
-
this.
|
|
915
|
-
this.
|
|
916
|
+
this.i13_1 = suspendResult;
|
|
917
|
+
this.g7_1 = 3;
|
|
916
918
|
continue $sm;
|
|
917
919
|
case 3:
|
|
918
|
-
this.
|
|
919
|
-
this.
|
|
920
|
-
this.
|
|
920
|
+
this.h13_1 = this.i13_1;
|
|
921
|
+
this.h7_1 = 8;
|
|
922
|
+
this.g7_1 = 5;
|
|
921
923
|
continue $sm;
|
|
922
924
|
case 4:
|
|
923
|
-
this.
|
|
924
|
-
var tmp_0 = this.
|
|
925
|
+
this.h7_1 = 8;
|
|
926
|
+
var tmp_0 = this.j7_1;
|
|
925
927
|
if (tmp_0 instanceof Error) {
|
|
926
|
-
var t = this.
|
|
928
|
+
var t = this.j7_1;
|
|
927
929
|
var tmp_1 = this;
|
|
928
930
|
throw IllegalStateException_init_$Create$_0('Failed to get elevation: ' + t.message, t);
|
|
929
931
|
} else {
|
|
930
|
-
throw this.
|
|
932
|
+
throw this.j7_1;
|
|
931
933
|
}
|
|
932
934
|
|
|
933
935
|
case 5:
|
|
934
|
-
this.
|
|
935
|
-
var own = this.
|
|
936
|
+
this.h7_1 = 8;
|
|
937
|
+
var own = this.h13_1;
|
|
936
938
|
if (!isNaN_0(own))
|
|
937
939
|
return own;
|
|
938
|
-
var tmp0_safe_receiver = this.
|
|
940
|
+
var tmp0_safe_receiver = this.c13_1.ez_1;
|
|
939
941
|
if (tmp0_safe_receiver == null) {
|
|
940
|
-
this.
|
|
941
|
-
this.
|
|
942
|
+
this.g13_1 = null;
|
|
943
|
+
this.g7_1 = 7;
|
|
942
944
|
continue $sm;
|
|
943
945
|
} else {
|
|
944
|
-
this.
|
|
945
|
-
suspendResult = tmp0_safe_receiver(this.
|
|
946
|
+
this.g7_1 = 6;
|
|
947
|
+
suspendResult = tmp0_safe_receiver(this.d13_1, this.f13_1, this);
|
|
946
948
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
947
949
|
return suspendResult;
|
|
948
950
|
}
|
|
@@ -950,80 +952,80 @@
|
|
|
950
952
|
}
|
|
951
953
|
|
|
952
954
|
case 6:
|
|
953
|
-
this.
|
|
954
|
-
this.
|
|
955
|
+
this.g13_1 = suspendResult;
|
|
956
|
+
this.g7_1 = 7;
|
|
955
957
|
continue $sm;
|
|
956
958
|
case 7:
|
|
957
|
-
var tmp1_elvis_lhs = this.
|
|
959
|
+
var tmp1_elvis_lhs = this.g13_1;
|
|
958
960
|
return tmp1_elvis_lhs == null ? 0.0 : tmp1_elvis_lhs;
|
|
959
961
|
case 8:
|
|
960
|
-
throw this.
|
|
962
|
+
throw this.j7_1;
|
|
961
963
|
}
|
|
962
964
|
} catch ($p) {
|
|
963
965
|
var e = $p;
|
|
964
|
-
if (this.
|
|
966
|
+
if (this.h7_1 === 8) {
|
|
965
967
|
throw e;
|
|
966
968
|
} else {
|
|
967
|
-
this.
|
|
968
|
-
this.
|
|
969
|
+
this.g7_1 = this.h7_1;
|
|
970
|
+
this.j7_1 = e;
|
|
969
971
|
}
|
|
970
972
|
}
|
|
971
973
|
while (true);
|
|
972
974
|
};
|
|
973
975
|
function $getInterpolatedElevationCOROUTINE$(_this__u8e3s4, coords, zoomLevel, resultContinuation) {
|
|
974
976
|
CoroutineImpl.call(this, resultContinuation);
|
|
975
|
-
this.
|
|
976
|
-
this.
|
|
977
|
-
this.
|
|
977
|
+
this.x11_1 = _this__u8e3s4;
|
|
978
|
+
this.y11_1 = coords;
|
|
979
|
+
this.z11_1 = zoomLevel;
|
|
978
980
|
}
|
|
979
|
-
protoOf($getInterpolatedElevationCOROUTINE$).
|
|
980
|
-
var suspendResult = this.
|
|
981
|
+
protoOf($getInterpolatedElevationCOROUTINE$).o7 = function () {
|
|
982
|
+
var suspendResult = this.i7_1;
|
|
981
983
|
$sm: do
|
|
982
984
|
try {
|
|
983
|
-
var tmp = this.
|
|
985
|
+
var tmp = this.g7_1;
|
|
984
986
|
switch (tmp) {
|
|
985
987
|
case 0:
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
988
|
+
this.h7_1 = 5;
|
|
989
|
+
this.h12_1 = ElevationFunctions_instance.k13(this.y11_1, this.z11_1, this.x11_1.dz_1);
|
|
990
|
+
var fx = this.h12_1.m13_1 - 0.5;
|
|
991
|
+
var fy = this.h12_1.n13_1 - 0.5;
|
|
988
992
|
var tmp_0 = this;
|
|
989
|
-
|
|
990
|
-
tmp_0.x0i8__1 = numberToInt(Math.floor(x));
|
|
993
|
+
tmp_0.i12_1 = numberToInt(Math.floor(fx));
|
|
991
994
|
var tmp_1 = this;
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
this.
|
|
995
|
-
this.
|
|
996
|
-
this.
|
|
997
|
-
this.
|
|
998
|
-
this.
|
|
999
|
-
suspendResult = elevationFromPixel(this._this__u8e3s4__1, ElevationFunctions_instance.normalizePixel_364azo_k$(new Pixel(this.pf7__1.tile_1, this.x0i8__1, this.y0i9__1), this._this__u8e3s4__1.tileSize_1), this);
|
|
995
|
+
tmp_1.j12_1 = numberToInt(Math.floor(fy));
|
|
996
|
+
this.g12_1 = this.i12_1 + 1 | 0;
|
|
997
|
+
this.f12_1 = this.j12_1 + 1 | 0;
|
|
998
|
+
this.b12_1 = fx - this.i12_1;
|
|
999
|
+
this.a12_1 = fy - this.j12_1;
|
|
1000
|
+
this.g7_1 = 1;
|
|
1001
|
+
suspendResult = elevationFromPixel(this.x11_1, ElevationFunctions_instance.o13(new Pixel(this.h12_1.l13_1, this.i12_1, this.j12_1), this.x11_1.dz_1), this);
|
|
1000
1002
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1001
1003
|
return suspendResult;
|
|
1002
1004
|
}
|
|
1003
1005
|
|
|
1004
1006
|
continue $sm;
|
|
1005
1007
|
case 1:
|
|
1006
|
-
this.
|
|
1007
|
-
this.
|
|
1008
|
-
suspendResult = elevationFromPixel(this.
|
|
1008
|
+
this.e12_1 = suspendResult;
|
|
1009
|
+
this.g7_1 = 2;
|
|
1010
|
+
suspendResult = elevationFromPixel(this.x11_1, ElevationFunctions_instance.o13(new Pixel(this.h12_1.l13_1, this.g12_1, this.j12_1), this.x11_1.dz_1), this);
|
|
1009
1011
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1010
1012
|
return suspendResult;
|
|
1011
1013
|
}
|
|
1012
1014
|
|
|
1013
1015
|
continue $sm;
|
|
1014
1016
|
case 2:
|
|
1015
|
-
this.
|
|
1016
|
-
this.
|
|
1017
|
-
suspendResult = elevationFromPixel(this.
|
|
1017
|
+
this.d12_1 = suspendResult;
|
|
1018
|
+
this.g7_1 = 3;
|
|
1019
|
+
suspendResult = elevationFromPixel(this.x11_1, ElevationFunctions_instance.o13(new Pixel(this.h12_1.l13_1, this.i12_1, this.f12_1), this.x11_1.dz_1), this);
|
|
1018
1020
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1019
1021
|
return suspendResult;
|
|
1020
1022
|
}
|
|
1021
1023
|
|
|
1022
1024
|
continue $sm;
|
|
1023
1025
|
case 3:
|
|
1024
|
-
this.
|
|
1025
|
-
this.
|
|
1026
|
-
suspendResult = elevationFromPixel(this.
|
|
1026
|
+
this.c12_1 = suspendResult;
|
|
1027
|
+
this.g7_1 = 4;
|
|
1028
|
+
suspendResult = elevationFromPixel(this.x11_1, ElevationFunctions_instance.o13(new Pixel(this.h12_1.l13_1, this.g12_1, this.f12_1), this.x11_1.dz_1), this);
|
|
1027
1029
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1028
1030
|
return suspendResult;
|
|
1029
1031
|
}
|
|
@@ -1031,55 +1033,55 @@
|
|
|
1031
1033
|
continue $sm;
|
|
1032
1034
|
case 4:
|
|
1033
1035
|
var p11 = suspendResult;
|
|
1034
|
-
var top = this.
|
|
1035
|
-
var bottom = this.
|
|
1036
|
-
return top * (1.0 - this.
|
|
1036
|
+
var top = this.e12_1 * (1.0 - this.b12_1) + this.d12_1 * this.b12_1;
|
|
1037
|
+
var bottom = this.c12_1 * (1.0 - this.b12_1) + p11 * this.b12_1;
|
|
1038
|
+
return top * (1.0 - this.a12_1) + bottom * this.a12_1;
|
|
1037
1039
|
case 5:
|
|
1038
|
-
throw this.
|
|
1040
|
+
throw this.j7_1;
|
|
1039
1041
|
}
|
|
1040
1042
|
} catch ($p) {
|
|
1041
1043
|
var e = $p;
|
|
1042
|
-
if (this.
|
|
1044
|
+
if (this.h7_1 === 5) {
|
|
1043
1045
|
throw e;
|
|
1044
1046
|
} else {
|
|
1045
|
-
this.
|
|
1046
|
-
this.
|
|
1047
|
+
this.g7_1 = this.h7_1;
|
|
1048
|
+
this.j7_1 = e;
|
|
1047
1049
|
}
|
|
1048
1050
|
}
|
|
1049
1051
|
while (true);
|
|
1050
1052
|
};
|
|
1051
1053
|
function $elevationFromPixelCOROUTINE$(_this__u8e3s4, pixel, resultContinuation) {
|
|
1052
1054
|
CoroutineImpl.call(this, resultContinuation);
|
|
1053
|
-
this.
|
|
1054
|
-
this.
|
|
1055
|
+
this.s12_1 = _this__u8e3s4;
|
|
1056
|
+
this.t12_1 = pixel;
|
|
1055
1057
|
}
|
|
1056
|
-
protoOf($elevationFromPixelCOROUTINE$).
|
|
1057
|
-
var suspendResult = this.
|
|
1058
|
+
protoOf($elevationFromPixelCOROUTINE$).o7 = function () {
|
|
1059
|
+
var suspendResult = this.i7_1;
|
|
1058
1060
|
$sm: do
|
|
1059
1061
|
try {
|
|
1060
|
-
var tmp = this.
|
|
1062
|
+
var tmp = this.g7_1;
|
|
1061
1063
|
switch (tmp) {
|
|
1062
1064
|
case 0:
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1065
|
-
suspendResult = this.
|
|
1065
|
+
this.h7_1 = 2;
|
|
1066
|
+
this.g7_1 = 1;
|
|
1067
|
+
suspendResult = this.s12_1.cz_1.v13(this.t12_1.p13_1, this);
|
|
1066
1068
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1067
1069
|
return suspendResult;
|
|
1068
1070
|
}
|
|
1069
1071
|
|
|
1070
1072
|
continue $sm;
|
|
1071
1073
|
case 1:
|
|
1072
|
-
return suspendResult.
|
|
1074
|
+
return suspendResult.b14(this.t12_1);
|
|
1073
1075
|
case 2:
|
|
1074
|
-
throw this.
|
|
1076
|
+
throw this.j7_1;
|
|
1075
1077
|
}
|
|
1076
1078
|
} catch ($p) {
|
|
1077
1079
|
var e = $p;
|
|
1078
|
-
if (this.
|
|
1080
|
+
if (this.h7_1 === 2) {
|
|
1079
1081
|
throw e;
|
|
1080
1082
|
} else {
|
|
1081
|
-
this.
|
|
1082
|
-
this.
|
|
1083
|
+
this.g7_1 = this.h7_1;
|
|
1084
|
+
this.j7_1 = e;
|
|
1083
1085
|
}
|
|
1084
1086
|
}
|
|
1085
1087
|
while (true);
|
|
@@ -1087,40 +1089,42 @@
|
|
|
1087
1089
|
function ElevationCalculator(tileManager, tileSize, fallback) {
|
|
1088
1090
|
tileSize = tileSize === VOID ? 256 : tileSize;
|
|
1089
1091
|
fallback = fallback === VOID ? null : fallback;
|
|
1090
|
-
this.
|
|
1091
|
-
this.
|
|
1092
|
-
this.
|
|
1092
|
+
this.cz_1 = tileManager;
|
|
1093
|
+
this.dz_1 = tileSize;
|
|
1094
|
+
this.ez_1 = fallback;
|
|
1093
1095
|
}
|
|
1094
|
-
protoOf(ElevationCalculator).
|
|
1096
|
+
protoOf(ElevationCalculator).fz = function (coords, zoomLevel, interpolation, $completion) {
|
|
1095
1097
|
var tmp = new $getElevationCOROUTINE$(this, coords, zoomLevel, interpolation, $completion);
|
|
1096
|
-
tmp.
|
|
1097
|
-
tmp.
|
|
1098
|
-
return tmp.
|
|
1098
|
+
tmp.i7_1 = Unit_instance;
|
|
1099
|
+
tmp.j7_1 = null;
|
|
1100
|
+
return tmp.o7();
|
|
1099
1101
|
};
|
|
1100
1102
|
function formatNumber_0($this, d) {
|
|
1101
1103
|
var asLong = numberToLong(d);
|
|
1102
1104
|
return toNumber(asLong) === d ? asLong.toString() : d.toString();
|
|
1103
1105
|
}
|
|
1104
1106
|
function ElevationFunctions() {
|
|
1107
|
+
this.wz_1 = 0;
|
|
1108
|
+
this.xz_1 = 15;
|
|
1105
1109
|
}
|
|
1106
|
-
protoOf(ElevationFunctions).
|
|
1110
|
+
protoOf(ElevationFunctions).c14 = function (degrees) {
|
|
1107
1111
|
return degrees * 0.017453292519943295;
|
|
1108
1112
|
};
|
|
1109
|
-
protoOf(ElevationFunctions).
|
|
1113
|
+
protoOf(ElevationFunctions).d14 = function (lat) {
|
|
1110
1114
|
return lat >= -85.0511 && lat <= 85.0511;
|
|
1111
1115
|
};
|
|
1112
|
-
protoOf(ElevationFunctions).
|
|
1116
|
+
protoOf(ElevationFunctions).e14 = function (lon) {
|
|
1113
1117
|
return -180.0 <= lon ? lon <= 180.0 : false;
|
|
1114
1118
|
};
|
|
1115
|
-
protoOf(ElevationFunctions).
|
|
1119
|
+
protoOf(ElevationFunctions).f14 = function (zoom) {
|
|
1116
1120
|
return 0 <= zoom ? zoom <= 15 : false;
|
|
1117
1121
|
};
|
|
1118
|
-
protoOf(ElevationFunctions).
|
|
1119
|
-
var x = pixel.
|
|
1120
|
-
var y = pixel.
|
|
1121
|
-
var tileX = pixel.
|
|
1122
|
-
var tileY = pixel.
|
|
1123
|
-
var z = pixel.
|
|
1122
|
+
protoOf(ElevationFunctions).o13 = function (pixel, tileSize) {
|
|
1123
|
+
var x = pixel.q13_1;
|
|
1124
|
+
var y = pixel.r13_1;
|
|
1125
|
+
var tileX = pixel.p13_1.zz_1;
|
|
1126
|
+
var tileY = pixel.p13_1.a10_1;
|
|
1127
|
+
var z = pixel.p13_1.b10_1;
|
|
1124
1128
|
if (x < 0) {
|
|
1125
1129
|
x = x + tileSize | 0;
|
|
1126
1130
|
tileX = tileX - 1 | 0;
|
|
@@ -1154,25 +1158,25 @@
|
|
|
1154
1158
|
}
|
|
1155
1159
|
return new Pixel(new TileCoordinates(tileX, tileY, z), x, y);
|
|
1156
1160
|
};
|
|
1157
|
-
protoOf(ElevationFunctions).
|
|
1161
|
+
protoOf(ElevationFunctions).g14 = function (coords, z) {
|
|
1158
1162
|
// Inline function 'kotlin.require' call
|
|
1159
|
-
if (!this.
|
|
1160
|
-
var message = 'Invalid latitude: ' + formatNumber_0(ElevationFunctions_instance, coords.
|
|
1163
|
+
if (!this.d14(coords.gz())) {
|
|
1164
|
+
var message = 'Invalid latitude: ' + formatNumber_0(ElevationFunctions_instance, coords.gz()) + '. Must be between -85.0511 and 85.0511';
|
|
1161
1165
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1162
1166
|
}
|
|
1163
1167
|
// Inline function 'kotlin.require' call
|
|
1164
|
-
if (!this.
|
|
1165
|
-
var message_0 = 'Invalid longitude: ' + formatNumber_0(ElevationFunctions_instance, coords.
|
|
1168
|
+
if (!this.e14(coords.hz())) {
|
|
1169
|
+
var message_0 = 'Invalid longitude: ' + formatNumber_0(ElevationFunctions_instance, coords.hz()) + '. Must be between -180 and 180';
|
|
1166
1170
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1167
1171
|
}
|
|
1168
1172
|
// Inline function 'kotlin.require' call
|
|
1169
|
-
if (!this.
|
|
1173
|
+
if (!this.f14(z)) {
|
|
1170
1174
|
var message_1 = 'Invalid zoom level: ' + z + '. Must be between 0 and 15';
|
|
1171
1175
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1172
1176
|
}
|
|
1173
|
-
var lat = this.
|
|
1177
|
+
var lat = this.c14(coords.gz());
|
|
1174
1178
|
var n = 1 << z;
|
|
1175
|
-
var xFloat = (coords.
|
|
1179
|
+
var xFloat = (coords.hz() + 180.0) / 360.0 * n;
|
|
1176
1180
|
// Inline function 'kotlin.math.tan' call
|
|
1177
1181
|
var tmp = Math.tan(lat);
|
|
1178
1182
|
// Inline function 'kotlin.math.cos' call
|
|
@@ -1188,27 +1192,27 @@
|
|
|
1188
1192
|
var y = coerceIn_1(numberToInt(tmp$ret$10), 0, maxTile);
|
|
1189
1193
|
return new TileCoordinatesFloat(x_0, y, xFloat, yFloat, z);
|
|
1190
1194
|
};
|
|
1191
|
-
protoOf(ElevationFunctions).
|
|
1192
|
-
var tile = this.
|
|
1193
|
-
return new TileCoordinates(tile.
|
|
1195
|
+
protoOf(ElevationFunctions).yz = function (coords, z) {
|
|
1196
|
+
var tile = this.g14(coords, z);
|
|
1197
|
+
return new TileCoordinates(tile.h14_1, tile.i14_1, tile.l14_1);
|
|
1194
1198
|
};
|
|
1195
|
-
protoOf(ElevationFunctions).
|
|
1196
|
-
var tile = this.
|
|
1199
|
+
protoOf(ElevationFunctions).j13 = function (coords, z, tileSize) {
|
|
1200
|
+
var tile = this.g14(coords, z);
|
|
1197
1201
|
// Inline function 'kotlin.math.floor' call
|
|
1198
|
-
var x = (tile.
|
|
1202
|
+
var x = (tile.j14_1 - tile.h14_1) * tileSize;
|
|
1199
1203
|
var tmp$ret$0 = Math.floor(x);
|
|
1200
1204
|
var px = coerceIn_1(numberToInt(tmp$ret$0), 0, tileSize - 1 | 0);
|
|
1201
1205
|
// Inline function 'kotlin.math.floor' call
|
|
1202
|
-
var x_0 = (tile.
|
|
1206
|
+
var x_0 = (tile.k14_1 - tile.i14_1) * tileSize;
|
|
1203
1207
|
var tmp$ret$1 = Math.floor(x_0);
|
|
1204
1208
|
var py = coerceIn_1(numberToInt(tmp$ret$1), 0, tileSize - 1 | 0);
|
|
1205
|
-
return new Pixel(new TileCoordinates(tile.
|
|
1209
|
+
return new Pixel(new TileCoordinates(tile.h14_1, tile.i14_1, z), px, py);
|
|
1206
1210
|
};
|
|
1207
|
-
protoOf(ElevationFunctions).
|
|
1208
|
-
var tile = this.
|
|
1209
|
-
var px = (tile.
|
|
1210
|
-
var py = (tile.
|
|
1211
|
-
return new PixelFloat(new TileCoordinates(tile.
|
|
1211
|
+
protoOf(ElevationFunctions).k13 = function (coords, z, tileSize) {
|
|
1212
|
+
var tile = this.g14(coords, z);
|
|
1213
|
+
var px = (tile.j14_1 - tile.h14_1) * tileSize;
|
|
1214
|
+
var py = (tile.k14_1 - tile.i14_1) * tileSize;
|
|
1215
|
+
return new PixelFloat(new TileCoordinates(tile.h14_1, tile.i14_1, z), px, py);
|
|
1212
1216
|
};
|
|
1213
1217
|
var ElevationFunctions_instance;
|
|
1214
1218
|
function ElevationFunctions_getInstance() {
|
|
@@ -1217,36 +1221,43 @@
|
|
|
1217
1221
|
function ElevationProvider_init_$Init$(config, fetcher, $this) {
|
|
1218
1222
|
config = config === VOID ? new ElevationProviderConfig() : config;
|
|
1219
1223
|
fetcher = fetcher === VOID ? defaultTileFetcher(config) : fetcher;
|
|
1220
|
-
ElevationProvider.call($this, config, fetcher, null);
|
|
1224
|
+
ElevationProvider.call($this, config, fetcher, null, false, null);
|
|
1221
1225
|
return $this;
|
|
1222
1226
|
}
|
|
1223
1227
|
function ElevationProvider_init_$Create$(config, fetcher) {
|
|
1224
1228
|
return ElevationProvider_init_$Init$(config, fetcher, objectCreate(protoOf(ElevationProvider)));
|
|
1225
1229
|
}
|
|
1226
|
-
function
|
|
1227
|
-
this
|
|
1230
|
+
function ElevationProvider_init_$Init$_0(config, fetcher, keepNoData, $this) {
|
|
1231
|
+
ElevationProvider.call($this, config, fetcher, null, keepNoData, null);
|
|
1232
|
+
return $this;
|
|
1233
|
+
}
|
|
1234
|
+
function ElevationProvider_init_$Create$_0(config, fetcher, keepNoData) {
|
|
1235
|
+
return ElevationProvider_init_$Init$_0(config, fetcher, keepNoData, objectCreate(protoOf(ElevationProvider)));
|
|
1236
|
+
}
|
|
1237
|
+
function ElevationProvider$calculator$slambda(this$0, resultContinuation) {
|
|
1238
|
+
this.u14_1 = this$0;
|
|
1228
1239
|
CoroutineImpl.call(this, resultContinuation);
|
|
1229
1240
|
}
|
|
1230
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1231
|
-
var tmp = this.
|
|
1232
|
-
tmp.
|
|
1233
|
-
tmp.
|
|
1234
|
-
return tmp.
|
|
1241
|
+
protoOf(ElevationProvider$calculator$slambda).x14 = function (coords, interpolation, $completion) {
|
|
1242
|
+
var tmp = this.y14(coords, interpolation, $completion);
|
|
1243
|
+
tmp.i7_1 = Unit_instance;
|
|
1244
|
+
tmp.j7_1 = null;
|
|
1245
|
+
return tmp.o7();
|
|
1235
1246
|
};
|
|
1236
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1247
|
+
protoOf(ElevationProvider$calculator$slambda).z14 = function (p1, p2, $completion) {
|
|
1237
1248
|
var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
|
|
1238
|
-
return this.
|
|
1249
|
+
return this.x14(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
|
|
1239
1250
|
};
|
|
1240
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1241
|
-
var suspendResult = this.
|
|
1251
|
+
protoOf(ElevationProvider$calculator$slambda).o7 = function () {
|
|
1252
|
+
var suspendResult = this.i7_1;
|
|
1242
1253
|
$sm: do
|
|
1243
1254
|
try {
|
|
1244
|
-
var tmp = this.
|
|
1255
|
+
var tmp = this.g7_1;
|
|
1245
1256
|
switch (tmp) {
|
|
1246
1257
|
case 0:
|
|
1247
|
-
this.
|
|
1248
|
-
this.
|
|
1249
|
-
suspendResult = this
|
|
1258
|
+
this.h7_1 = 2;
|
|
1259
|
+
this.g7_1 = 1;
|
|
1260
|
+
suspendResult = this.u14_1.c15_1.i15(this.v14_1.gz(), this.v14_1.hz(), this.w14_1, this);
|
|
1250
1261
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1251
1262
|
return suspendResult;
|
|
1252
1263
|
}
|
|
@@ -1255,95 +1266,156 @@
|
|
|
1255
1266
|
case 1:
|
|
1256
1267
|
return suspendResult;
|
|
1257
1268
|
case 2:
|
|
1258
|
-
throw this.
|
|
1269
|
+
throw this.j7_1;
|
|
1259
1270
|
}
|
|
1260
1271
|
} catch ($p) {
|
|
1261
1272
|
var e = $p;
|
|
1262
|
-
if (this.
|
|
1273
|
+
if (this.h7_1 === 2) {
|
|
1263
1274
|
throw e;
|
|
1264
1275
|
} else {
|
|
1265
|
-
this.
|
|
1266
|
-
this.
|
|
1276
|
+
this.g7_1 = this.h7_1;
|
|
1277
|
+
this.j7_1 = e;
|
|
1267
1278
|
}
|
|
1268
1279
|
}
|
|
1269
1280
|
while (true);
|
|
1270
1281
|
};
|
|
1271
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1272
|
-
var i = new ElevationProvider$calculator$slambda(this
|
|
1273
|
-
i.
|
|
1274
|
-
i.
|
|
1282
|
+
protoOf(ElevationProvider$calculator$slambda).y14 = function (coords, interpolation, completion) {
|
|
1283
|
+
var i = new ElevationProvider$calculator$slambda(this.u14_1, completion);
|
|
1284
|
+
i.v14_1 = coords;
|
|
1285
|
+
i.w14_1 = interpolation;
|
|
1275
1286
|
return i;
|
|
1276
1287
|
};
|
|
1277
|
-
function ElevationProvider$calculator$slambda_0($
|
|
1278
|
-
var i = new ElevationProvider$calculator$slambda($
|
|
1288
|
+
function ElevationProvider$calculator$slambda_0(this$0, resultContinuation) {
|
|
1289
|
+
var i = new ElevationProvider$calculator$slambda(this$0, resultContinuation);
|
|
1279
1290
|
return constructCallableReference(function (coords, interpolation, $completion) {
|
|
1280
|
-
return i.
|
|
1291
|
+
return i.x14(coords, interpolation, $completion);
|
|
1292
|
+
}, 2);
|
|
1293
|
+
}
|
|
1294
|
+
function ElevationProvider$calculator$slambda_1(resultContinuation) {
|
|
1295
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1296
|
+
}
|
|
1297
|
+
protoOf(ElevationProvider$calculator$slambda_1).x14 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
|
|
1298
|
+
var tmp = this.y14(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
|
|
1299
|
+
tmp.i7_1 = Unit_instance;
|
|
1300
|
+
tmp.j7_1 = null;
|
|
1301
|
+
return tmp.o7();
|
|
1302
|
+
};
|
|
1303
|
+
protoOf(ElevationProvider$calculator$slambda_1).z14 = function (p1, p2, $completion) {
|
|
1304
|
+
var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
|
|
1305
|
+
return this.x14(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
|
|
1306
|
+
};
|
|
1307
|
+
protoOf(ElevationProvider$calculator$slambda_1).o7 = function () {
|
|
1308
|
+
var suspendResult = this.i7_1;
|
|
1309
|
+
$sm: do
|
|
1310
|
+
try {
|
|
1311
|
+
var tmp = this.g7_1;
|
|
1312
|
+
if (tmp === 0) {
|
|
1313
|
+
this.h7_1 = 1;
|
|
1314
|
+
return NaN;
|
|
1315
|
+
} else if (tmp === 1) {
|
|
1316
|
+
throw this.j7_1;
|
|
1317
|
+
}
|
|
1318
|
+
} catch ($p) {
|
|
1319
|
+
var e = $p;
|
|
1320
|
+
throw e;
|
|
1321
|
+
}
|
|
1322
|
+
while (true);
|
|
1323
|
+
};
|
|
1324
|
+
protoOf(ElevationProvider$calculator$slambda_1).y14 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, completion) {
|
|
1325
|
+
var i = new ElevationProvider$calculator$slambda_1(completion);
|
|
1326
|
+
i.r15_1 = _unused_var__etf5q3;
|
|
1327
|
+
i.s15_1 = _unused_var__etf5q3_0;
|
|
1328
|
+
return i;
|
|
1329
|
+
};
|
|
1330
|
+
function ElevationProvider$calculator$slambda_2(resultContinuation) {
|
|
1331
|
+
var i = new ElevationProvider$calculator$slambda_1(resultContinuation);
|
|
1332
|
+
return constructCallableReference(function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
|
|
1333
|
+
return i.x14(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
|
|
1281
1334
|
}, 2);
|
|
1282
1335
|
}
|
|
1283
|
-
function ElevationProvider(config, fetcher, fallback) {
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1286
|
-
this.
|
|
1287
|
-
|
|
1336
|
+
function ElevationProvider(config, fetcher, fallback, keepNoData, surfaceModel) {
|
|
1337
|
+
this.a15_1 = config;
|
|
1338
|
+
this.b15_1 = fetcher;
|
|
1339
|
+
this.c15_1 = fallback;
|
|
1340
|
+
this.d15_1 = keepNoData;
|
|
1341
|
+
this.e15_1 = surfaceModel;
|
|
1288
1342
|
// Inline function 'kotlin.require' call
|
|
1289
|
-
if (!(
|
|
1290
|
-
var message = 'Invalid zoom level: ' + this.
|
|
1343
|
+
if (!ElevationFunctions_instance.f14(this.a15_1.t15_1)) {
|
|
1344
|
+
var message = 'Invalid zoom level: ' + this.a15_1.t15_1 + '. Must be an integer between ' + '0 and 15';
|
|
1291
1345
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1292
1346
|
}
|
|
1293
1347
|
// Inline function 'kotlin.require' call
|
|
1294
|
-
if (!(this.
|
|
1295
|
-
var message_0 = 'Invalid cache size: ' + this.
|
|
1348
|
+
if (!(this.a15_1.u15_1 > 0)) {
|
|
1349
|
+
var message_0 = 'Invalid cache size: ' + this.a15_1.u15_1 + '. Must be a positive integer';
|
|
1296
1350
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1297
1351
|
}
|
|
1298
1352
|
// Inline function 'kotlin.require' call
|
|
1299
|
-
if (!(this.
|
|
1300
|
-
var message_1 = 'Invalid tile size: ' + this.
|
|
1353
|
+
if (!(this.a15_1.w15_1 > 0 && (this.a15_1.w15_1 & (this.a15_1.w15_1 - 1 | 0)) === 0)) {
|
|
1354
|
+
var message_1 = 'Invalid tile size: ' + this.a15_1.w15_1 + '. Must be a positive power of 2';
|
|
1301
1355
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1302
1356
|
}
|
|
1303
1357
|
// Inline function 'kotlin.require' call
|
|
1304
|
-
if (!(this.
|
|
1305
|
-
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.
|
|
1358
|
+
if (!(this.a15_1.z15_1 >= 0)) {
|
|
1359
|
+
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.a15_1.z15_1 + '. Must be 0 (no limit) or positive';
|
|
1306
1360
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
1307
1361
|
}
|
|
1308
|
-
this.
|
|
1362
|
+
this.f15_1 = new TileManager(this.a15_1.v15_1, this.a15_1.u15_1, this.b15_1);
|
|
1309
1363
|
var tmp = this;
|
|
1310
|
-
var tmp0_safe_receiver = this.fallback_1;
|
|
1311
1364
|
var tmp_0;
|
|
1312
|
-
if (
|
|
1313
|
-
tmp_0 = null;
|
|
1365
|
+
if (!(this.c15_1 == null)) {
|
|
1366
|
+
tmp_0 = ElevationProvider$calculator$slambda_0(this, null);
|
|
1367
|
+
} else if (this.d15_1) {
|
|
1368
|
+
tmp_0 = ElevationProvider$calculator$slambda_2(null);
|
|
1314
1369
|
} else {
|
|
1315
|
-
|
|
1316
|
-
tmp_0 = ElevationProvider$calculator$slambda_0(tmp0_safe_receiver, null);
|
|
1370
|
+
tmp_0 = null;
|
|
1317
1371
|
}
|
|
1318
|
-
tmp.
|
|
1319
|
-
this.
|
|
1372
|
+
tmp.g15_1 = new ElevationCalculator(this.f15_1, this.a15_1.w15_1, tmp_0);
|
|
1373
|
+
this.h15_1 = new BatchCalculator(this.g15_1);
|
|
1320
1374
|
}
|
|
1321
|
-
protoOf(ElevationProvider).
|
|
1322
|
-
|
|
1375
|
+
protoOf(ElevationProvider).a16 = function (other) {
|
|
1376
|
+
// Inline function 'kotlin.require' call
|
|
1377
|
+
if (!!this.d15_1) {
|
|
1378
|
+
var message = 'a raw IGN LiDAR HD layer takes no fallback: its no-data must stay NaN';
|
|
1379
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1380
|
+
}
|
|
1381
|
+
return new ElevationProvider(this.a15_1, this.b15_1, other, false, this.e15_1);
|
|
1323
1382
|
};
|
|
1324
|
-
protoOf(ElevationProvider).
|
|
1325
|
-
|
|
1383
|
+
protoOf(ElevationProvider).b16 = function (surface) {
|
|
1384
|
+
// Inline function 'kotlin.require' call
|
|
1385
|
+
if (!(surface == null || surface.d15_1)) {
|
|
1386
|
+
var message = 'a surface model must keep its no-data as NaN';
|
|
1387
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1388
|
+
}
|
|
1389
|
+
// Inline function 'kotlin.require' call
|
|
1390
|
+
if (!!this.d15_1) {
|
|
1391
|
+
var message_0 = 'a raw IGN LiDAR HD layer carries no surface model';
|
|
1392
|
+
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1393
|
+
}
|
|
1394
|
+
return new ElevationProvider(this.a15_1, this.b15_1, this.c15_1, false, surface);
|
|
1395
|
+
};
|
|
1396
|
+
protoOf(ElevationProvider).c16 = function () {
|
|
1397
|
+
return this.a15_1.x15_1;
|
|
1326
1398
|
};
|
|
1327
|
-
protoOf(ElevationProvider).
|
|
1328
|
-
return this.
|
|
1399
|
+
protoOf(ElevationProvider).i15 = function (latitude, longitude, interpolation, $completion) {
|
|
1400
|
+
return this.g15_1.fz(new LatLon(latitude, longitude), this.a15_1.t15_1, interpolation, $completion);
|
|
1329
1401
|
};
|
|
1330
|
-
protoOf(ElevationProvider).
|
|
1331
|
-
return this.
|
|
1402
|
+
protoOf(ElevationProvider).d16 = function (coordinates, interpolation, $completion) {
|
|
1403
|
+
return this.h15_1.u10(coordinates, this.a15_1.t15_1, interpolation, VOID, $completion);
|
|
1332
1404
|
};
|
|
1333
|
-
protoOf(ElevationProvider).
|
|
1405
|
+
protoOf(ElevationProvider).e16 = function (coordinates, interpolation, $completion, $super) {
|
|
1334
1406
|
interpolation = interpolation === VOID ? true : interpolation;
|
|
1335
|
-
return $super === VOID ? this.
|
|
1407
|
+
return $super === VOID ? this.d16(coordinates, interpolation, $completion) : $super.d16.call(this, coordinates, interpolation, $completion);
|
|
1336
1408
|
};
|
|
1337
|
-
protoOf(ElevationProvider).
|
|
1338
|
-
return this.
|
|
1409
|
+
protoOf(ElevationProvider).f16 = function (path, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
|
|
1410
|
+
return this.h15_1.y10(path, this.a15_1.t15_1, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
|
|
1339
1411
|
};
|
|
1340
1412
|
function defaultTileFetcher(config) {
|
|
1341
|
-
if (config.
|
|
1413
|
+
if (config.y15_1.equals(TileEncoding_TERRARIUM_getInstance()) && config.z15_1 === 0) {
|
|
1342
1414
|
return fetchAndDecodeTile$ref_1();
|
|
1343
1415
|
}
|
|
1344
|
-
var bytes = pacedTileBytesFetcher(config.
|
|
1416
|
+
var bytes = pacedTileBytesFetcher(config.z15_1);
|
|
1345
1417
|
var tmp;
|
|
1346
|
-
switch (config.
|
|
1418
|
+
switch (config.y15_1.v1_1) {
|
|
1347
1419
|
case 0:
|
|
1348
1420
|
tmp = defaultTileFetcher$slambda_0(bytes, null);
|
|
1349
1421
|
break;
|
|
@@ -1359,35 +1431,35 @@
|
|
|
1359
1431
|
function fetchAndDecodeTile$ref() {
|
|
1360
1432
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
1361
1433
|
}
|
|
1362
|
-
protoOf(fetchAndDecodeTile$ref).
|
|
1434
|
+
protoOf(fetchAndDecodeTile$ref).j16 = function (p0, $completion) {
|
|
1363
1435
|
return fetchAndDecodeTile(p0, $completion);
|
|
1364
1436
|
};
|
|
1365
|
-
protoOf(fetchAndDecodeTile$ref).
|
|
1366
|
-
return this.
|
|
1437
|
+
protoOf(fetchAndDecodeTile$ref).w7 = function (p1, $completion) {
|
|
1438
|
+
return this.j16((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1367
1439
|
};
|
|
1368
1440
|
function defaultTileFetcher$slambda($bytes, resultContinuation) {
|
|
1369
|
-
this
|
|
1441
|
+
this.s16_1 = $bytes;
|
|
1370
1442
|
CoroutineImpl.call(this, resultContinuation);
|
|
1371
1443
|
}
|
|
1372
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1373
|
-
var tmp = this.
|
|
1374
|
-
tmp.
|
|
1375
|
-
tmp.
|
|
1376
|
-
return tmp.
|
|
1444
|
+
protoOf(defaultTileFetcher$slambda).j16 = function (url, $completion) {
|
|
1445
|
+
var tmp = this.u16(url, $completion);
|
|
1446
|
+
tmp.i7_1 = Unit_instance;
|
|
1447
|
+
tmp.j7_1 = null;
|
|
1448
|
+
return tmp.o7();
|
|
1377
1449
|
};
|
|
1378
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1379
|
-
return this.
|
|
1450
|
+
protoOf(defaultTileFetcher$slambda).w7 = function (p1, $completion) {
|
|
1451
|
+
return this.j16((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1380
1452
|
};
|
|
1381
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1382
|
-
var suspendResult = this.
|
|
1453
|
+
protoOf(defaultTileFetcher$slambda).o7 = function () {
|
|
1454
|
+
var suspendResult = this.i7_1;
|
|
1383
1455
|
$sm: do
|
|
1384
1456
|
try {
|
|
1385
|
-
var tmp = this.
|
|
1457
|
+
var tmp = this.g7_1;
|
|
1386
1458
|
switch (tmp) {
|
|
1387
1459
|
case 0:
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
suspendResult = this
|
|
1460
|
+
this.h7_1 = 3;
|
|
1461
|
+
this.g7_1 = 1;
|
|
1462
|
+
suspendResult = this.s16_1(this.t16_1, this);
|
|
1391
1463
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1392
1464
|
return suspendResult;
|
|
1393
1465
|
}
|
|
@@ -1395,8 +1467,8 @@
|
|
|
1395
1467
|
continue $sm;
|
|
1396
1468
|
case 1:
|
|
1397
1469
|
var ARGUMENT = suspendResult;
|
|
1398
|
-
this.
|
|
1399
|
-
suspendResult = decodeTileBytes(ARGUMENT, this.
|
|
1470
|
+
this.g7_1 = 2;
|
|
1471
|
+
suspendResult = decodeTileBytes(ARGUMENT, this.t16_1, this);
|
|
1400
1472
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1401
1473
|
return suspendResult;
|
|
1402
1474
|
}
|
|
@@ -1405,54 +1477,54 @@
|
|
|
1405
1477
|
case 2:
|
|
1406
1478
|
return suspendResult;
|
|
1407
1479
|
case 3:
|
|
1408
|
-
throw this.
|
|
1480
|
+
throw this.j7_1;
|
|
1409
1481
|
}
|
|
1410
1482
|
} catch ($p) {
|
|
1411
1483
|
var e = $p;
|
|
1412
|
-
if (this.
|
|
1484
|
+
if (this.h7_1 === 3) {
|
|
1413
1485
|
throw e;
|
|
1414
1486
|
} else {
|
|
1415
|
-
this.
|
|
1416
|
-
this.
|
|
1487
|
+
this.g7_1 = this.h7_1;
|
|
1488
|
+
this.j7_1 = e;
|
|
1417
1489
|
}
|
|
1418
1490
|
}
|
|
1419
1491
|
while (true);
|
|
1420
1492
|
};
|
|
1421
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1422
|
-
var i = new defaultTileFetcher$slambda(this
|
|
1423
|
-
i.
|
|
1493
|
+
protoOf(defaultTileFetcher$slambda).u16 = function (url, completion) {
|
|
1494
|
+
var i = new defaultTileFetcher$slambda(this.s16_1, completion);
|
|
1495
|
+
i.t16_1 = url;
|
|
1424
1496
|
return i;
|
|
1425
1497
|
};
|
|
1426
1498
|
function defaultTileFetcher$slambda_0($bytes, resultContinuation) {
|
|
1427
1499
|
var i = new defaultTileFetcher$slambda($bytes, resultContinuation);
|
|
1428
1500
|
return constructCallableReference(function (url, $completion) {
|
|
1429
|
-
return i.
|
|
1501
|
+
return i.j16(url, $completion);
|
|
1430
1502
|
}, 1);
|
|
1431
1503
|
}
|
|
1432
1504
|
function defaultTileFetcher$slambda_1($bytes, $config, resultContinuation) {
|
|
1433
|
-
this
|
|
1434
|
-
this
|
|
1505
|
+
this.d17_1 = $bytes;
|
|
1506
|
+
this.e17_1 = $config;
|
|
1435
1507
|
CoroutineImpl.call(this, resultContinuation);
|
|
1436
1508
|
}
|
|
1437
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1438
|
-
var tmp = this.
|
|
1439
|
-
tmp.
|
|
1440
|
-
tmp.
|
|
1441
|
-
return tmp.
|
|
1509
|
+
protoOf(defaultTileFetcher$slambda_1).j16 = function (url, $completion) {
|
|
1510
|
+
var tmp = this.u16(url, $completion);
|
|
1511
|
+
tmp.i7_1 = Unit_instance;
|
|
1512
|
+
tmp.j7_1 = null;
|
|
1513
|
+
return tmp.o7();
|
|
1442
1514
|
};
|
|
1443
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1444
|
-
return this.
|
|
1515
|
+
protoOf(defaultTileFetcher$slambda_1).w7 = function (p1, $completion) {
|
|
1516
|
+
return this.j16((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1445
1517
|
};
|
|
1446
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1447
|
-
var suspendResult = this.
|
|
1518
|
+
protoOf(defaultTileFetcher$slambda_1).o7 = function () {
|
|
1519
|
+
var suspendResult = this.i7_1;
|
|
1448
1520
|
$sm: do
|
|
1449
1521
|
try {
|
|
1450
|
-
var tmp = this.
|
|
1522
|
+
var tmp = this.g7_1;
|
|
1451
1523
|
switch (tmp) {
|
|
1452
1524
|
case 0:
|
|
1453
|
-
this.
|
|
1454
|
-
this.
|
|
1455
|
-
suspendResult = this
|
|
1525
|
+
this.h7_1 = 2;
|
|
1526
|
+
this.g7_1 = 1;
|
|
1527
|
+
suspendResult = this.d17_1(this.f17_1, this);
|
|
1456
1528
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1457
1529
|
return suspendResult;
|
|
1458
1530
|
}
|
|
@@ -1460,30 +1532,30 @@
|
|
|
1460
1532
|
continue $sm;
|
|
1461
1533
|
case 1:
|
|
1462
1534
|
var ARGUMENT = suspendResult;
|
|
1463
|
-
return decodeBil32Tile(ARGUMENT, this
|
|
1535
|
+
return decodeBil32Tile(ARGUMENT, this.e17_1.w15_1, this.f17_1);
|
|
1464
1536
|
case 2:
|
|
1465
|
-
throw this.
|
|
1537
|
+
throw this.j7_1;
|
|
1466
1538
|
}
|
|
1467
1539
|
} catch ($p) {
|
|
1468
1540
|
var e = $p;
|
|
1469
|
-
if (this.
|
|
1541
|
+
if (this.h7_1 === 2) {
|
|
1470
1542
|
throw e;
|
|
1471
1543
|
} else {
|
|
1472
|
-
this.
|
|
1473
|
-
this.
|
|
1544
|
+
this.g7_1 = this.h7_1;
|
|
1545
|
+
this.j7_1 = e;
|
|
1474
1546
|
}
|
|
1475
1547
|
}
|
|
1476
1548
|
while (true);
|
|
1477
1549
|
};
|
|
1478
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1479
|
-
var i = new defaultTileFetcher$slambda_1(this
|
|
1480
|
-
i.
|
|
1550
|
+
protoOf(defaultTileFetcher$slambda_1).u16 = function (url, completion) {
|
|
1551
|
+
var i = new defaultTileFetcher$slambda_1(this.d17_1, this.e17_1, completion);
|
|
1552
|
+
i.f17_1 = url;
|
|
1481
1553
|
return i;
|
|
1482
1554
|
};
|
|
1483
1555
|
function defaultTileFetcher$slambda_2($bytes, $config, resultContinuation) {
|
|
1484
1556
|
var i = new defaultTileFetcher$slambda_1($bytes, $config, resultContinuation);
|
|
1485
1557
|
return constructCallableReference(function (url, $completion) {
|
|
1486
|
-
return i.
|
|
1558
|
+
return i.j16(url, $completion);
|
|
1487
1559
|
}, 1);
|
|
1488
1560
|
}
|
|
1489
1561
|
function defaultTileFetcher$ref() {
|
|
@@ -1499,38 +1571,38 @@
|
|
|
1499
1571
|
attribution = attribution === VOID ? new Attribution('Mapterhorn elevation data. See mapterhorn.com/attribution/ for details.', 'https://mapterhorn.com/attribution/') : attribution;
|
|
1500
1572
|
encoding = encoding === VOID ? TileEncoding_TERRARIUM_getInstance() : encoding;
|
|
1501
1573
|
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? 0 : maxRequestsPerSecond;
|
|
1502
|
-
this.
|
|
1503
|
-
this.
|
|
1504
|
-
this.
|
|
1505
|
-
this.
|
|
1506
|
-
this.
|
|
1507
|
-
this.
|
|
1508
|
-
this.
|
|
1509
|
-
}
|
|
1510
|
-
protoOf(ElevationProviderConfig).
|
|
1574
|
+
this.t15_1 = zoomLevel;
|
|
1575
|
+
this.u15_1 = cacheSize;
|
|
1576
|
+
this.v15_1 = tileUrlTemplate;
|
|
1577
|
+
this.w15_1 = tileSize;
|
|
1578
|
+
this.x15_1 = attribution;
|
|
1579
|
+
this.y15_1 = encoding;
|
|
1580
|
+
this.z15_1 = maxRequestsPerSecond;
|
|
1581
|
+
}
|
|
1582
|
+
protoOf(ElevationProviderConfig).g17 = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) {
|
|
1511
1583
|
return new ElevationProviderConfig(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1512
1584
|
};
|
|
1513
|
-
protoOf(ElevationProviderConfig).
|
|
1514
|
-
zoomLevel = zoomLevel === VOID ? this.
|
|
1515
|
-
cacheSize = cacheSize === VOID ? this.
|
|
1516
|
-
tileUrlTemplate = tileUrlTemplate === VOID ? this.
|
|
1517
|
-
tileSize = tileSize === VOID ? this.
|
|
1518
|
-
attribution = attribution === VOID ? this.
|
|
1519
|
-
encoding = encoding === VOID ? this.
|
|
1520
|
-
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.
|
|
1521
|
-
return $super === VOID ? this.
|
|
1585
|
+
protoOf(ElevationProviderConfig).h17 = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond, $super) {
|
|
1586
|
+
zoomLevel = zoomLevel === VOID ? this.t15_1 : zoomLevel;
|
|
1587
|
+
cacheSize = cacheSize === VOID ? this.u15_1 : cacheSize;
|
|
1588
|
+
tileUrlTemplate = tileUrlTemplate === VOID ? this.v15_1 : tileUrlTemplate;
|
|
1589
|
+
tileSize = tileSize === VOID ? this.w15_1 : tileSize;
|
|
1590
|
+
attribution = attribution === VOID ? this.x15_1 : attribution;
|
|
1591
|
+
encoding = encoding === VOID ? this.y15_1 : encoding;
|
|
1592
|
+
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.z15_1 : maxRequestsPerSecond;
|
|
1593
|
+
return $super === VOID ? this.g17(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) : $super.g17.call(this, zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1522
1594
|
};
|
|
1523
1595
|
protoOf(ElevationProviderConfig).toString = function () {
|
|
1524
|
-
return 'ElevationProviderConfig(zoomLevel=' + this.
|
|
1596
|
+
return 'ElevationProviderConfig(zoomLevel=' + this.t15_1 + ', cacheSize=' + this.u15_1 + ', tileUrlTemplate=' + this.v15_1 + ', tileSize=' + this.w15_1 + ', attribution=' + this.x15_1.toString() + ', encoding=' + this.y15_1.toString() + ', maxRequestsPerSecond=' + this.z15_1 + ')';
|
|
1525
1597
|
};
|
|
1526
1598
|
protoOf(ElevationProviderConfig).hashCode = function () {
|
|
1527
|
-
var result = this.
|
|
1528
|
-
result = imul(result, 31) + this.
|
|
1529
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1530
|
-
result = imul(result, 31) + this.
|
|
1531
|
-
result = imul(result, 31) + this.
|
|
1532
|
-
result = imul(result, 31) + this.
|
|
1533
|
-
result = imul(result, 31) + this.
|
|
1599
|
+
var result = this.t15_1;
|
|
1600
|
+
result = imul(result, 31) + this.u15_1 | 0;
|
|
1601
|
+
result = imul(result, 31) + getStringHashCode(this.v15_1) | 0;
|
|
1602
|
+
result = imul(result, 31) + this.w15_1 | 0;
|
|
1603
|
+
result = imul(result, 31) + this.x15_1.hashCode() | 0;
|
|
1604
|
+
result = imul(result, 31) + this.y15_1.hashCode() | 0;
|
|
1605
|
+
result = imul(result, 31) + this.z15_1 | 0;
|
|
1534
1606
|
return result;
|
|
1535
1607
|
};
|
|
1536
1608
|
protoOf(ElevationProviderConfig).equals = function (other) {
|
|
@@ -1538,33 +1610,33 @@
|
|
|
1538
1610
|
return true;
|
|
1539
1611
|
if (!(other instanceof ElevationProviderConfig))
|
|
1540
1612
|
return false;
|
|
1541
|
-
if (!(this.
|
|
1613
|
+
if (!(this.t15_1 === other.t15_1))
|
|
1542
1614
|
return false;
|
|
1543
|
-
if (!(this.
|
|
1615
|
+
if (!(this.u15_1 === other.u15_1))
|
|
1544
1616
|
return false;
|
|
1545
|
-
if (!(this.
|
|
1617
|
+
if (!(this.v15_1 === other.v15_1))
|
|
1546
1618
|
return false;
|
|
1547
|
-
if (!(this.
|
|
1619
|
+
if (!(this.w15_1 === other.w15_1))
|
|
1548
1620
|
return false;
|
|
1549
|
-
if (!this.
|
|
1621
|
+
if (!this.x15_1.equals(other.x15_1))
|
|
1550
1622
|
return false;
|
|
1551
|
-
if (!this.
|
|
1623
|
+
if (!this.y15_1.equals(other.y15_1))
|
|
1552
1624
|
return false;
|
|
1553
|
-
if (!(this.
|
|
1625
|
+
if (!(this.z15_1 === other.z15_1))
|
|
1554
1626
|
return false;
|
|
1555
1627
|
return true;
|
|
1556
1628
|
};
|
|
1557
1629
|
function Attribution(text, url) {
|
|
1558
1630
|
url = url === VOID ? null : url;
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1631
|
+
this.i17_1 = text;
|
|
1632
|
+
this.j17_1 = url;
|
|
1561
1633
|
}
|
|
1562
1634
|
protoOf(Attribution).toString = function () {
|
|
1563
|
-
return 'Attribution(text=' + this.
|
|
1635
|
+
return 'Attribution(text=' + this.i17_1 + ', url=' + this.j17_1 + ')';
|
|
1564
1636
|
};
|
|
1565
1637
|
protoOf(Attribution).hashCode = function () {
|
|
1566
|
-
var result = getStringHashCode(this.
|
|
1567
|
-
result = imul(result, 31) + (this.
|
|
1638
|
+
var result = getStringHashCode(this.i17_1);
|
|
1639
|
+
result = imul(result, 31) + (this.j17_1 == null ? 0 : getStringHashCode(this.j17_1)) | 0;
|
|
1568
1640
|
return result;
|
|
1569
1641
|
};
|
|
1570
1642
|
protoOf(Attribution).equals = function (other) {
|
|
@@ -1572,9 +1644,9 @@
|
|
|
1572
1644
|
return true;
|
|
1573
1645
|
if (!(other instanceof Attribution))
|
|
1574
1646
|
return false;
|
|
1575
|
-
if (!(this.
|
|
1647
|
+
if (!(this.i17_1 === other.i17_1))
|
|
1576
1648
|
return false;
|
|
1577
|
-
if (!(this.
|
|
1649
|
+
if (!(this.j17_1 == other.j17_1))
|
|
1578
1650
|
return false;
|
|
1579
1651
|
return true;
|
|
1580
1652
|
};
|
|
@@ -1584,28 +1656,28 @@
|
|
|
1584
1656
|
}
|
|
1585
1657
|
function ElevationSmoother() {
|
|
1586
1658
|
}
|
|
1587
|
-
protoOf(ElevationSmoother).
|
|
1588
|
-
if (points.
|
|
1659
|
+
protoOf(ElevationSmoother).v10 = function (points, windowSize) {
|
|
1660
|
+
if (points.o() < 3)
|
|
1589
1661
|
return points;
|
|
1590
1662
|
// Inline function 'kotlin.require' call
|
|
1591
1663
|
if (!(windowSize > 0.0)) {
|
|
1592
1664
|
var message = 'Invalid window size: ' + formatWindow(ElevationSmoother_instance, windowSize) + '. Must be positive';
|
|
1593
1665
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1594
1666
|
}
|
|
1595
|
-
var distances = Distance_instance.
|
|
1667
|
+
var distances = Distance_instance.i11(points);
|
|
1596
1668
|
var tmp = 0;
|
|
1597
|
-
var tmp_0 = points.
|
|
1669
|
+
var tmp_0 = points.o();
|
|
1598
1670
|
var tmp_1 = new Float64Array(tmp_0);
|
|
1599
1671
|
while (tmp < tmp_0) {
|
|
1600
1672
|
var tmp_2 = tmp;
|
|
1601
|
-
tmp_1[tmp_2] = points.
|
|
1673
|
+
tmp_1[tmp_2] = points.p(tmp_2).e11();
|
|
1602
1674
|
tmp = tmp + 1 | 0;
|
|
1603
1675
|
}
|
|
1604
1676
|
var elevations = tmp_1;
|
|
1605
|
-
var smoothed = this.
|
|
1677
|
+
var smoothed = this.k17(distances, elevations, windowSize);
|
|
1606
1678
|
// Inline function 'kotlin.collections.List' call
|
|
1607
1679
|
// Inline function 'kotlin.collections.MutableList' call
|
|
1608
|
-
var size = points.
|
|
1680
|
+
var size = points.o();
|
|
1609
1681
|
var list = ArrayList_init_$Create$_0(size);
|
|
1610
1682
|
// Inline function 'kotlin.repeat' call
|
|
1611
1683
|
var inductionVariable = 0;
|
|
@@ -1613,13 +1685,13 @@
|
|
|
1613
1685
|
do {
|
|
1614
1686
|
var index = inductionVariable;
|
|
1615
1687
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1616
|
-
var tmp$ret$7 = new LatLonElevation(points.
|
|
1617
|
-
list.
|
|
1688
|
+
var tmp$ret$7 = new LatLonElevation(points.p(index).gz(), points.p(index).hz(), smoothed[index]);
|
|
1689
|
+
list.k(tmp$ret$7);
|
|
1618
1690
|
}
|
|
1619
1691
|
while (inductionVariable < size);
|
|
1620
1692
|
return list;
|
|
1621
1693
|
};
|
|
1622
|
-
protoOf(ElevationSmoother).
|
|
1694
|
+
protoOf(ElevationSmoother).k17 = function (distanceM, elevationM, windowSize) {
|
|
1623
1695
|
// Inline function 'kotlin.require' call
|
|
1624
1696
|
if (!(distanceM.length === elevationM.length)) {
|
|
1625
1697
|
var message = 'distanceM (' + distanceM.length + ') and elevationM (' + elevationM.length + ') must have the same length';
|
|
@@ -1702,9 +1774,6 @@
|
|
|
1702
1774
|
function ElevationSmoother_getInstance() {
|
|
1703
1775
|
return ElevationSmoother_instance;
|
|
1704
1776
|
}
|
|
1705
|
-
function ignWmsTemplate($this, layer, tileSize) {
|
|
1706
|
-
return 'https://data.geopf.fr/wms-r/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=' + layer + '&STYLES=normal' + ('&CRS=EPSG:4326&BBOX={bbox}&WIDTH=' + tileSize + '&HEIGHT=' + tileSize + '&FORMAT=image%2Fx-bil%3Bbits%3D32');
|
|
1707
|
-
}
|
|
1708
1777
|
var static_init_called_0;
|
|
1709
1778
|
function static_init_0() {
|
|
1710
1779
|
if (static_init_called_0)
|
|
@@ -1721,33 +1790,30 @@
|
|
|
1721
1790
|
var ElevationSource_IGN_LIDAR_HD_instance;
|
|
1722
1791
|
function Companion() {
|
|
1723
1792
|
Companion_instance_0 = this;
|
|
1724
|
-
this.
|
|
1725
|
-
this.IGN_TILE_SIZE_1 = 256;
|
|
1726
|
-
this.IGN_WMS_URL_1 = 'https://data.geopf.fr/wms-r/wms';
|
|
1727
|
-
this.IGN_LIDAR_HD_MNT_LAYER_1 = 'IGNF_LIDAR-HD_MNT_ELEVATION.ELEVATIONGRIDCOVERAGE.WGS84G';
|
|
1793
|
+
this.l17_1 = ElevationSource_MAPTERHORN_getInstance();
|
|
1728
1794
|
}
|
|
1729
|
-
protoOf(Companion).
|
|
1795
|
+
protoOf(Companion).m17 = function () {
|
|
1730
1796
|
// Inline function 'kotlin.collections.map' call
|
|
1731
1797
|
var this_0 = get_entries();
|
|
1732
1798
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1733
1799
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1734
|
-
var _iterator__ex2g4s = this_0.
|
|
1735
|
-
while (_iterator__ex2g4s.
|
|
1736
|
-
var item = _iterator__ex2g4s.
|
|
1737
|
-
var tmp$ret$2 = item.
|
|
1738
|
-
destination.
|
|
1800
|
+
var _iterator__ex2g4s = this_0.l();
|
|
1801
|
+
while (_iterator__ex2g4s.m()) {
|
|
1802
|
+
var item = _iterator__ex2g4s.n();
|
|
1803
|
+
var tmp$ret$2 = item.p17_1;
|
|
1804
|
+
destination.k(tmp$ret$2);
|
|
1739
1805
|
}
|
|
1740
1806
|
return destination;
|
|
1741
1807
|
};
|
|
1742
|
-
protoOf(Companion).
|
|
1808
|
+
protoOf(Companion).q17 = function (id) {
|
|
1743
1809
|
var tmp0 = get_entries();
|
|
1744
1810
|
var tmp$ret$0;
|
|
1745
1811
|
$l$block: {
|
|
1746
1812
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1747
|
-
var _iterator__ex2g4s = tmp0.
|
|
1748
|
-
while (_iterator__ex2g4s.
|
|
1749
|
-
var element = _iterator__ex2g4s.
|
|
1750
|
-
if (element.
|
|
1813
|
+
var _iterator__ex2g4s = tmp0.l();
|
|
1814
|
+
while (_iterator__ex2g4s.m()) {
|
|
1815
|
+
var element = _iterator__ex2g4s.n();
|
|
1816
|
+
if (element.p17_1 === id) {
|
|
1751
1817
|
tmp$ret$0 = element;
|
|
1752
1818
|
break $l$block;
|
|
1753
1819
|
}
|
|
@@ -1757,7 +1823,7 @@
|
|
|
1757
1823
|
var tmp0_elvis_lhs = tmp$ret$0;
|
|
1758
1824
|
var tmp;
|
|
1759
1825
|
if (tmp0_elvis_lhs == null) {
|
|
1760
|
-
throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.
|
|
1826
|
+
throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.m17()));
|
|
1761
1827
|
} else {
|
|
1762
1828
|
tmp = tmp0_elvis_lhs;
|
|
1763
1829
|
}
|
|
@@ -1781,11 +1847,11 @@
|
|
|
1781
1847
|
var $ENTRIES;
|
|
1782
1848
|
function ElevationSource(name, ordinal, id) {
|
|
1783
1849
|
Enum.call(this, name, ordinal);
|
|
1784
|
-
this.
|
|
1850
|
+
this.p17_1 = id;
|
|
1785
1851
|
}
|
|
1786
|
-
protoOf(ElevationSource).
|
|
1852
|
+
protoOf(ElevationSource).r17 = function () {
|
|
1787
1853
|
var tmp;
|
|
1788
|
-
switch (this.
|
|
1854
|
+
switch (this.v1_1) {
|
|
1789
1855
|
case 0:
|
|
1790
1856
|
tmp = null;
|
|
1791
1857
|
break;
|
|
@@ -1798,14 +1864,14 @@
|
|
|
1798
1864
|
}
|
|
1799
1865
|
return tmp;
|
|
1800
1866
|
};
|
|
1801
|
-
protoOf(ElevationSource).
|
|
1867
|
+
protoOf(ElevationSource).s17 = function () {
|
|
1802
1868
|
var tmp;
|
|
1803
|
-
switch (this.
|
|
1869
|
+
switch (this.v1_1) {
|
|
1804
1870
|
case 0:
|
|
1805
|
-
tmp = (new ElevationProviderConfig()).
|
|
1871
|
+
tmp = (new ElevationProviderConfig()).t15_1;
|
|
1806
1872
|
break;
|
|
1807
1873
|
case 1:
|
|
1808
|
-
tmp =
|
|
1874
|
+
tmp = IgnLidarHdLayer_MNT_getInstance().s17();
|
|
1809
1875
|
break;
|
|
1810
1876
|
default:
|
|
1811
1877
|
noWhenBranchMatchedException();
|
|
@@ -1813,18 +1879,15 @@
|
|
|
1813
1879
|
}
|
|
1814
1880
|
return tmp;
|
|
1815
1881
|
};
|
|
1816
|
-
protoOf(ElevationSource).
|
|
1882
|
+
protoOf(ElevationSource).w17 = function (zoomLevel) {
|
|
1817
1883
|
var tmp;
|
|
1818
|
-
switch (this.
|
|
1884
|
+
switch (this.v1_1) {
|
|
1819
1885
|
case 0:
|
|
1820
|
-
tmp = new ElevationProviderConfig(zoomLevel == null ? this.
|
|
1886
|
+
tmp = new ElevationProviderConfig(zoomLevel == null ? this.s17() : zoomLevel);
|
|
1821
1887
|
break;
|
|
1822
1888
|
case 1:
|
|
1823
|
-
var
|
|
1824
|
-
|
|
1825
|
-
var tmp6_encoding = TileEncoding_BIL32_getInstance();
|
|
1826
|
-
var tmp7_attribution = new Attribution('\xA9 IGN \u2014 LiDAR HD MNT, Licence Ouverte Etalab 2.0', 'https://geoservices.ign.fr/lidarhd');
|
|
1827
|
-
tmp = new ElevationProviderConfig(tmp3_zoomLevel, VOID, tmp5_tileUrlTemplate, 256, tmp7_attribution, tmp6_encoding, 20);
|
|
1889
|
+
var tmp_0 = IgnLidarHdLayer_MNT_getInstance();
|
|
1890
|
+
tmp = tmp_0.w17(zoomLevel == null ? this.s17() : zoomLevel);
|
|
1828
1891
|
break;
|
|
1829
1892
|
default:
|
|
1830
1893
|
noWhenBranchMatchedException();
|
|
@@ -1841,23 +1904,31 @@
|
|
|
1841
1904
|
tmp = fetcherFor;
|
|
1842
1905
|
}
|
|
1843
1906
|
fetcherFor = tmp;
|
|
1844
|
-
var config = _this__u8e3s4.
|
|
1907
|
+
var config = _this__u8e3s4.w17(zoomLevel);
|
|
1845
1908
|
var primary = ElevationProvider_init_$Create$(config, fetcherFor(config));
|
|
1846
|
-
var
|
|
1909
|
+
var tmp0_safe_receiver = _this__u8e3s4.r17();
|
|
1847
1910
|
var tmp_0;
|
|
1848
|
-
if (
|
|
1849
|
-
|
|
1911
|
+
if (tmp0_safe_receiver == null) {
|
|
1912
|
+
tmp_0 = null;
|
|
1913
|
+
} else {
|
|
1914
|
+
// Inline function 'kotlin.let' call
|
|
1915
|
+
tmp_0 = primary.a16(provider(tmp0_safe_receiver, null, fetcherFor));
|
|
1916
|
+
}
|
|
1917
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
1918
|
+
var withFallback = tmp1_elvis_lhs == null ? primary : tmp1_elvis_lhs;
|
|
1919
|
+
var tmp_1;
|
|
1920
|
+
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.t15_1 === IgnLidarHdLayer_MNS_getInstance().s17()) {
|
|
1921
|
+
tmp_1 = withFallback.b16(provider_0(IgnLidarHdLayer_MNS_getInstance(), null, fetcherFor));
|
|
1850
1922
|
} else {
|
|
1851
|
-
|
|
1923
|
+
tmp_1 = withFallback;
|
|
1852
1924
|
}
|
|
1853
|
-
|
|
1854
|
-
return primary.withFallback_7synod_k$(provider(next, null, fetcherFor));
|
|
1925
|
+
return tmp_1;
|
|
1855
1926
|
}
|
|
1856
1927
|
function wmsBbox4326(tc) {
|
|
1857
|
-
var tiles = 1 << tc.
|
|
1858
|
-
var west = tc.
|
|
1859
|
-
var east = (tc.
|
|
1860
|
-
return '' + tileNorthLatitude(tc.
|
|
1928
|
+
var tiles = 1 << tc.b10_1;
|
|
1929
|
+
var west = tc.zz_1 / tiles * 360.0 - 180.0;
|
|
1930
|
+
var east = (tc.zz_1 + 1 | 0) / tiles * 360.0 - 180.0;
|
|
1931
|
+
return '' + tileNorthLatitude(tc.a10_1 + 1 | 0, tiles) + ',' + west + ',' + tileNorthLatitude(tc.a10_1, tiles) + ',' + east;
|
|
1861
1932
|
}
|
|
1862
1933
|
function tileNorthLatitude(y, tiles) {
|
|
1863
1934
|
// Inline function 'kotlin.math.sinh' call
|
|
@@ -1875,120 +1946,120 @@
|
|
|
1875
1946
|
return ElevationSource_IGN_LIDAR_HD_instance;
|
|
1876
1947
|
}
|
|
1877
1948
|
function Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation) {
|
|
1878
|
-
this
|
|
1879
|
-
this
|
|
1880
|
-
this
|
|
1949
|
+
this.f18_1 = $semaphore;
|
|
1950
|
+
this.g18_1 = $action;
|
|
1951
|
+
this.h18_1 = $item;
|
|
1881
1952
|
CoroutineImpl.call(this, resultContinuation);
|
|
1882
1953
|
}
|
|
1883
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
1884
|
-
var tmp = this.
|
|
1885
|
-
tmp.
|
|
1886
|
-
tmp.
|
|
1887
|
-
return tmp.
|
|
1954
|
+
protoOf(Flux$forEachParallel$slambda$slambda).l18 = function ($this$async, $completion) {
|
|
1955
|
+
var tmp = this.m18($this$async, $completion);
|
|
1956
|
+
tmp.i7_1 = Unit_instance;
|
|
1957
|
+
tmp.j7_1 = null;
|
|
1958
|
+
return tmp.o7();
|
|
1888
1959
|
};
|
|
1889
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
1890
|
-
return this.
|
|
1960
|
+
protoOf(Flux$forEachParallel$slambda$slambda).w7 = function (p1, $completion) {
|
|
1961
|
+
return this.l18((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1891
1962
|
};
|
|
1892
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
1893
|
-
var suspendResult = this.
|
|
1963
|
+
protoOf(Flux$forEachParallel$slambda$slambda).o7 = function () {
|
|
1964
|
+
var suspendResult = this.i7_1;
|
|
1894
1965
|
$sm: do
|
|
1895
1966
|
try {
|
|
1896
|
-
var tmp = this.
|
|
1967
|
+
var tmp = this.g7_1;
|
|
1897
1968
|
switch (tmp) {
|
|
1898
1969
|
case 0:
|
|
1899
|
-
this.
|
|
1900
|
-
this.
|
|
1901
|
-
this.
|
|
1902
|
-
suspendResult = this.
|
|
1970
|
+
this.h7_1 = 6;
|
|
1971
|
+
this.j18_1 = this.f18_1;
|
|
1972
|
+
this.g7_1 = 1;
|
|
1973
|
+
suspendResult = this.j18_1.zv(this);
|
|
1903
1974
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1904
1975
|
return suspendResult;
|
|
1905
1976
|
}
|
|
1906
1977
|
|
|
1907
1978
|
continue $sm;
|
|
1908
1979
|
case 1:
|
|
1909
|
-
this.
|
|
1910
|
-
this.
|
|
1980
|
+
this.k18_1 = Unit_instance;
|
|
1981
|
+
this.g7_1 = 2;
|
|
1911
1982
|
continue $sm;
|
|
1912
1983
|
case 2:
|
|
1913
|
-
this.
|
|
1914
|
-
this.
|
|
1915
|
-
suspendResult = this
|
|
1984
|
+
this.h7_1 = 5;
|
|
1985
|
+
this.g7_1 = 3;
|
|
1986
|
+
suspendResult = this.g18_1(this.h18_1, this);
|
|
1916
1987
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1917
1988
|
return suspendResult;
|
|
1918
1989
|
}
|
|
1919
1990
|
|
|
1920
1991
|
continue $sm;
|
|
1921
1992
|
case 3:
|
|
1922
|
-
this.
|
|
1923
|
-
this.
|
|
1924
|
-
this.
|
|
1993
|
+
this.k18_1 = Unit_instance;
|
|
1994
|
+
this.h7_1 = 6;
|
|
1995
|
+
this.g7_1 = 4;
|
|
1925
1996
|
continue $sm;
|
|
1926
1997
|
case 4:
|
|
1927
|
-
this.
|
|
1928
|
-
this.
|
|
1929
|
-
this.
|
|
1998
|
+
this.k18_1;
|
|
1999
|
+
this.h7_1 = 6;
|
|
2000
|
+
this.j18_1.tv();
|
|
1930
2001
|
return Unit_instance;
|
|
1931
2002
|
case 5:
|
|
1932
|
-
this.
|
|
1933
|
-
var t = this.
|
|
1934
|
-
this.
|
|
2003
|
+
this.h7_1 = 6;
|
|
2004
|
+
var t = this.j7_1;
|
|
2005
|
+
this.j18_1.tv();
|
|
1935
2006
|
throw t;
|
|
1936
2007
|
case 6:
|
|
1937
|
-
throw this.
|
|
2008
|
+
throw this.j7_1;
|
|
1938
2009
|
}
|
|
1939
2010
|
} catch ($p) {
|
|
1940
2011
|
var e = $p;
|
|
1941
|
-
if (this.
|
|
2012
|
+
if (this.h7_1 === 6) {
|
|
1942
2013
|
throw e;
|
|
1943
2014
|
} else {
|
|
1944
|
-
this.
|
|
1945
|
-
this.
|
|
2015
|
+
this.g7_1 = this.h7_1;
|
|
2016
|
+
this.j7_1 = e;
|
|
1946
2017
|
}
|
|
1947
2018
|
}
|
|
1948
2019
|
while (true);
|
|
1949
2020
|
};
|
|
1950
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
1951
|
-
var i = new Flux$forEachParallel$slambda$slambda(this
|
|
1952
|
-
i
|
|
2021
|
+
protoOf(Flux$forEachParallel$slambda$slambda).m18 = function ($this$async, completion) {
|
|
2022
|
+
var i = new Flux$forEachParallel$slambda$slambda(this.f18_1, this.g18_1, this.h18_1, completion);
|
|
2023
|
+
i.i18_1 = $this$async;
|
|
1953
2024
|
return i;
|
|
1954
2025
|
};
|
|
1955
2026
|
function Flux$forEachParallel$slambda$slambda_0($semaphore, $action, $item, resultContinuation) {
|
|
1956
2027
|
var i = new Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation);
|
|
1957
2028
|
return constructCallableReference(function ($this$async, $completion) {
|
|
1958
|
-
return i.
|
|
2029
|
+
return i.l18($this$async, $completion);
|
|
1959
2030
|
}, 1);
|
|
1960
2031
|
}
|
|
1961
2032
|
function Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation) {
|
|
1962
|
-
this
|
|
1963
|
-
this
|
|
1964
|
-
this
|
|
2033
|
+
this.v18_1 = $maxParallel;
|
|
2034
|
+
this.w18_1 = $items;
|
|
2035
|
+
this.x18_1 = $action;
|
|
1965
2036
|
CoroutineImpl.call(this, resultContinuation);
|
|
1966
2037
|
}
|
|
1967
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
1968
|
-
var tmp = this.
|
|
1969
|
-
tmp.
|
|
1970
|
-
tmp.
|
|
1971
|
-
return tmp.
|
|
2038
|
+
protoOf(Flux$forEachParallel$slambda).z18 = function ($this$coroutineScope, $completion) {
|
|
2039
|
+
var tmp = this.m18($this$coroutineScope, $completion);
|
|
2040
|
+
tmp.i7_1 = Unit_instance;
|
|
2041
|
+
tmp.j7_1 = null;
|
|
2042
|
+
return tmp.o7();
|
|
1972
2043
|
};
|
|
1973
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
1974
|
-
return this.
|
|
2044
|
+
protoOf(Flux$forEachParallel$slambda).w7 = function (p1, $completion) {
|
|
2045
|
+
return this.z18((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1975
2046
|
};
|
|
1976
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
1977
|
-
var suspendResult = this.
|
|
2047
|
+
protoOf(Flux$forEachParallel$slambda).o7 = function () {
|
|
2048
|
+
var suspendResult = this.i7_1;
|
|
1978
2049
|
$sm: do
|
|
1979
2050
|
try {
|
|
1980
|
-
var tmp = this.
|
|
2051
|
+
var tmp = this.g7_1;
|
|
1981
2052
|
switch (tmp) {
|
|
1982
2053
|
case 0:
|
|
1983
|
-
this.
|
|
1984
|
-
var semaphore = Semaphore(this
|
|
1985
|
-
this.
|
|
1986
|
-
var this_0 = this
|
|
2054
|
+
this.h7_1 = 2;
|
|
2055
|
+
var semaphore = Semaphore(this.v18_1);
|
|
2056
|
+
this.g7_1 = 1;
|
|
2057
|
+
var this_0 = this.w18_1;
|
|
1987
2058
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1988
|
-
var _iterator__ex2g4s = this_0.
|
|
1989
|
-
while (_iterator__ex2g4s.
|
|
1990
|
-
var item = _iterator__ex2g4s.
|
|
1991
|
-
destination.
|
|
2059
|
+
var _iterator__ex2g4s = this_0.l();
|
|
2060
|
+
while (_iterator__ex2g4s.m()) {
|
|
2061
|
+
var item = _iterator__ex2g4s.n();
|
|
2062
|
+
destination.k(async(this.y18_1, VOID, VOID, Flux$forEachParallel$slambda$slambda_0(semaphore, this.x18_1, item, null)));
|
|
1992
2063
|
}
|
|
1993
2064
|
|
|
1994
2065
|
suspendResult = awaitAll(destination, this);
|
|
@@ -2000,52 +2071,52 @@
|
|
|
2000
2071
|
case 1:
|
|
2001
2072
|
return suspendResult;
|
|
2002
2073
|
case 2:
|
|
2003
|
-
throw this.
|
|
2074
|
+
throw this.j7_1;
|
|
2004
2075
|
}
|
|
2005
2076
|
} catch ($p) {
|
|
2006
2077
|
var e = $p;
|
|
2007
|
-
if (this.
|
|
2078
|
+
if (this.h7_1 === 2) {
|
|
2008
2079
|
throw e;
|
|
2009
2080
|
} else {
|
|
2010
|
-
this.
|
|
2011
|
-
this.
|
|
2081
|
+
this.g7_1 = this.h7_1;
|
|
2082
|
+
this.j7_1 = e;
|
|
2012
2083
|
}
|
|
2013
2084
|
}
|
|
2014
2085
|
while (true);
|
|
2015
2086
|
};
|
|
2016
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2017
|
-
var i = new Flux$forEachParallel$slambda(this
|
|
2018
|
-
i
|
|
2087
|
+
protoOf(Flux$forEachParallel$slambda).m18 = function ($this$coroutineScope, completion) {
|
|
2088
|
+
var i = new Flux$forEachParallel$slambda(this.v18_1, this.w18_1, this.x18_1, completion);
|
|
2089
|
+
i.y18_1 = $this$coroutineScope;
|
|
2019
2090
|
return i;
|
|
2020
2091
|
};
|
|
2021
2092
|
function Flux$forEachParallel$slambda_0($maxParallel, $items, $action, resultContinuation) {
|
|
2022
2093
|
var i = new Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation);
|
|
2023
2094
|
return constructCallableReference(function ($this$coroutineScope, $completion) {
|
|
2024
|
-
return i.
|
|
2095
|
+
return i.z18($this$coroutineScope, $completion);
|
|
2025
2096
|
}, 1);
|
|
2026
2097
|
}
|
|
2027
2098
|
function $forEachParallelCOROUTINE$(_this__u8e3s4, items, maxParallel, action, resultContinuation) {
|
|
2028
2099
|
CoroutineImpl.call(this, resultContinuation);
|
|
2029
|
-
this.
|
|
2030
|
-
this.
|
|
2031
|
-
this.
|
|
2032
|
-
this.
|
|
2100
|
+
this.i19_1 = _this__u8e3s4;
|
|
2101
|
+
this.j19_1 = items;
|
|
2102
|
+
this.k19_1 = maxParallel;
|
|
2103
|
+
this.l19_1 = action;
|
|
2033
2104
|
}
|
|
2034
|
-
protoOf($forEachParallelCOROUTINE$).
|
|
2035
|
-
var suspendResult = this.
|
|
2105
|
+
protoOf($forEachParallelCOROUTINE$).o7 = function () {
|
|
2106
|
+
var suspendResult = this.i7_1;
|
|
2036
2107
|
$sm: do
|
|
2037
2108
|
try {
|
|
2038
|
-
var tmp = this.
|
|
2109
|
+
var tmp = this.g7_1;
|
|
2039
2110
|
switch (tmp) {
|
|
2040
2111
|
case 0:
|
|
2041
|
-
this.
|
|
2042
|
-
if (!(this.
|
|
2043
|
-
var message = 'maxParallel must be >= 1, got ' + this.
|
|
2112
|
+
this.h7_1 = 2;
|
|
2113
|
+
if (!(this.k19_1 >= 1)) {
|
|
2114
|
+
var message = 'maxParallel must be >= 1, got ' + this.k19_1;
|
|
2044
2115
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2045
2116
|
}
|
|
2046
2117
|
|
|
2047
|
-
this.
|
|
2048
|
-
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.
|
|
2118
|
+
this.g7_1 = 1;
|
|
2119
|
+
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.k19_1, this.j19_1, this.l19_1, null), this);
|
|
2049
2120
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2050
2121
|
return suspendResult;
|
|
2051
2122
|
}
|
|
@@ -2054,39 +2125,88 @@
|
|
|
2054
2125
|
case 1:
|
|
2055
2126
|
return Unit_instance;
|
|
2056
2127
|
case 2:
|
|
2057
|
-
throw this.
|
|
2128
|
+
throw this.j7_1;
|
|
2058
2129
|
}
|
|
2059
2130
|
} catch ($p) {
|
|
2060
2131
|
var e = $p;
|
|
2061
|
-
if (this.
|
|
2132
|
+
if (this.h7_1 === 2) {
|
|
2062
2133
|
throw e;
|
|
2063
2134
|
} else {
|
|
2064
|
-
this.
|
|
2065
|
-
this.
|
|
2135
|
+
this.g7_1 = this.h7_1;
|
|
2136
|
+
this.j7_1 = e;
|
|
2066
2137
|
}
|
|
2067
2138
|
}
|
|
2068
2139
|
while (true);
|
|
2069
2140
|
};
|
|
2070
2141
|
function Flux() {
|
|
2071
2142
|
}
|
|
2072
|
-
protoOf(Flux).
|
|
2143
|
+
protoOf(Flux).c10 = function (items, maxParallel, action, $completion) {
|
|
2073
2144
|
var tmp = new $forEachParallelCOROUTINE$(this, items, maxParallel, action, $completion);
|
|
2074
|
-
tmp.
|
|
2075
|
-
tmp.
|
|
2076
|
-
return tmp.
|
|
2145
|
+
tmp.i7_1 = Unit_instance;
|
|
2146
|
+
tmp.j7_1 = null;
|
|
2147
|
+
return tmp.o7();
|
|
2077
2148
|
};
|
|
2078
2149
|
var Flux_instance;
|
|
2079
2150
|
function Flux_getInstance() {
|
|
2080
2151
|
return Flux_instance;
|
|
2081
2152
|
}
|
|
2153
|
+
var static_init_called_1;
|
|
2154
|
+
function static_init_1() {
|
|
2155
|
+
if (static_init_called_1)
|
|
2156
|
+
return Unit_instance;
|
|
2157
|
+
static_init_called_1 = true;
|
|
2158
|
+
IgnLidarHdLayer_MNT_instance = new IgnLidarHdLayer('MNT', 0, 'IGNF_LIDAR-HD_MNT_ELEVATION.ELEVATIONGRIDCOVERAGE.WGS84G');
|
|
2159
|
+
IgnLidarHdLayer_MNS_instance = new IgnLidarHdLayer('MNS', 1, 'IGNF_LIDAR-HD_MNS_ELEVATION.ELEVATIONGRIDCOVERAGE.WGS84G');
|
|
2160
|
+
IgnLidarHdLayer_MNH_instance = new IgnLidarHdLayer('MNH', 2, 'IGNF_LIDAR-HD_MNH_ELEVATION.ELEVATIONGRIDCOVERAGE.WGS84G');
|
|
2161
|
+
}
|
|
2162
|
+
var IgnLidarHdLayer_MNT_instance;
|
|
2163
|
+
var IgnLidarHdLayer_MNS_instance;
|
|
2164
|
+
var IgnLidarHdLayer_MNH_instance;
|
|
2165
|
+
function IgnLidarHdLayer(name, ordinal, wmsLayer) {
|
|
2166
|
+
Enum.call(this, name, ordinal);
|
|
2167
|
+
this.v17_1 = wmsLayer;
|
|
2168
|
+
}
|
|
2169
|
+
protoOf(IgnLidarHdLayer).s17 = function () {
|
|
2170
|
+
return 15;
|
|
2171
|
+
};
|
|
2172
|
+
protoOf(IgnLidarHdLayer).w17 = function (zoomLevel) {
|
|
2173
|
+
var tmp1_zoomLevel = zoomLevel == null ? this.s17() : zoomLevel;
|
|
2174
|
+
var tmp3_tileUrlTemplate = ignWmsTemplate(this.v17_1, 256);
|
|
2175
|
+
var tmp4_encoding = TileEncoding_BIL32_getInstance();
|
|
2176
|
+
var tmp5_attribution = new Attribution('\xA9 IGN \u2014 LiDAR HD ' + this.u1_1 + ', Licence Ouverte Etalab 2.0', 'https://geoservices.ign.fr/lidarhd');
|
|
2177
|
+
return new ElevationProviderConfig(tmp1_zoomLevel, VOID, tmp3_tileUrlTemplate, 256, tmp5_attribution, tmp4_encoding, 20);
|
|
2178
|
+
};
|
|
2179
|
+
function provider_0(_this__u8e3s4, zoomLevel, fetcherFor) {
|
|
2180
|
+
zoomLevel = zoomLevel === VOID ? null : zoomLevel;
|
|
2181
|
+
var tmp;
|
|
2182
|
+
if (fetcherFor === VOID) {
|
|
2183
|
+
tmp = defaultTileFetcher$ref();
|
|
2184
|
+
} else {
|
|
2185
|
+
tmp = fetcherFor;
|
|
2186
|
+
}
|
|
2187
|
+
fetcherFor = tmp;
|
|
2188
|
+
var config = _this__u8e3s4.w17(zoomLevel);
|
|
2189
|
+
return ElevationProvider_init_$Create$_0(config, fetcherFor(config), true);
|
|
2190
|
+
}
|
|
2191
|
+
function ignWmsTemplate(layer, tileSize) {
|
|
2192
|
+
return 'https://data.geopf.fr/wms-r/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=' + layer + '&STYLES=normal' + ('&CRS=EPSG:4326&BBOX={bbox}&WIDTH=' + tileSize + '&HEIGHT=' + tileSize + '&FORMAT=image%2Fx-bil%3Bbits%3D32');
|
|
2193
|
+
}
|
|
2194
|
+
function IgnLidarHdLayer_MNT_getInstance() {
|
|
2195
|
+
static_init_1();
|
|
2196
|
+
return IgnLidarHdLayer_MNT_instance;
|
|
2197
|
+
}
|
|
2198
|
+
function IgnLidarHdLayer_MNS_getInstance() {
|
|
2199
|
+
static_init_1();
|
|
2200
|
+
return IgnLidarHdLayer_MNS_instance;
|
|
2201
|
+
}
|
|
2082
2202
|
function Hit(value) {
|
|
2083
|
-
this.
|
|
2203
|
+
this.m19_1 = value;
|
|
2084
2204
|
}
|
|
2085
2205
|
function Await(deferred) {
|
|
2086
|
-
this.
|
|
2206
|
+
this.n19_1 = deferred;
|
|
2087
2207
|
}
|
|
2088
2208
|
function Owner(deferred) {
|
|
2089
|
-
this.
|
|
2209
|
+
this.o19_1 = deferred;
|
|
2090
2210
|
}
|
|
2091
2211
|
function LoadAbandoned() {
|
|
2092
2212
|
Exception_init_$Init$('load abandoned by its cancelled owner', this);
|
|
@@ -2094,42 +2214,42 @@
|
|
|
2094
2214
|
}
|
|
2095
2215
|
function lookupOrClaim($this, key, $completion) {
|
|
2096
2216
|
var tmp = new $lookupOrClaimCOROUTINE$($this, key, $completion);
|
|
2097
|
-
tmp.
|
|
2098
|
-
tmp.
|
|
2099
|
-
return tmp.
|
|
2217
|
+
tmp.i7_1 = Unit_instance;
|
|
2218
|
+
tmp.j7_1 = null;
|
|
2219
|
+
return tmp.o7();
|
|
2100
2220
|
}
|
|
2101
2221
|
function load($this, key, ours, $completion) {
|
|
2102
2222
|
var tmp = new $loadCOROUTINE$($this, key, ours, $completion);
|
|
2103
|
-
tmp.
|
|
2104
|
-
tmp.
|
|
2105
|
-
return tmp.
|
|
2223
|
+
tmp.i7_1 = Unit_instance;
|
|
2224
|
+
tmp.j7_1 = null;
|
|
2225
|
+
return tmp.o7();
|
|
2106
2226
|
}
|
|
2107
2227
|
function LruCache$load$slambda(this$0, $key, resultContinuation) {
|
|
2108
|
-
this.
|
|
2109
|
-
this
|
|
2228
|
+
this.x1a_1 = this$0;
|
|
2229
|
+
this.y1a_1 = $key;
|
|
2110
2230
|
CoroutineImpl.call(this, resultContinuation);
|
|
2111
2231
|
}
|
|
2112
|
-
protoOf(LruCache$load$slambda).
|
|
2113
|
-
var tmp = this.
|
|
2114
|
-
tmp.
|
|
2115
|
-
tmp.
|
|
2116
|
-
return tmp.
|
|
2232
|
+
protoOf(LruCache$load$slambda).c1b = function ($this$withContext, $completion) {
|
|
2233
|
+
var tmp = this.m18($this$withContext, $completion);
|
|
2234
|
+
tmp.i7_1 = Unit_instance;
|
|
2235
|
+
tmp.j7_1 = null;
|
|
2236
|
+
return tmp.o7();
|
|
2117
2237
|
};
|
|
2118
|
-
protoOf(LruCache$load$slambda).
|
|
2119
|
-
return this.
|
|
2238
|
+
protoOf(LruCache$load$slambda).w7 = function (p1, $completion) {
|
|
2239
|
+
return this.c1b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2120
2240
|
};
|
|
2121
|
-
protoOf(LruCache$load$slambda).
|
|
2122
|
-
var suspendResult = this.
|
|
2241
|
+
protoOf(LruCache$load$slambda).o7 = function () {
|
|
2242
|
+
var suspendResult = this.i7_1;
|
|
2123
2243
|
$sm: do
|
|
2124
2244
|
try {
|
|
2125
|
-
var tmp = this.
|
|
2245
|
+
var tmp = this.g7_1;
|
|
2126
2246
|
switch (tmp) {
|
|
2127
2247
|
case 0:
|
|
2128
|
-
this.
|
|
2129
|
-
this.
|
|
2130
|
-
this.
|
|
2131
|
-
this.
|
|
2132
|
-
suspendResult = this.
|
|
2248
|
+
this.h7_1 = 2;
|
|
2249
|
+
this.b1b_1 = this.x1a_1.g1b_1;
|
|
2250
|
+
this.a1b_1 = null;
|
|
2251
|
+
this.g7_1 = 1;
|
|
2252
|
+
suspendResult = this.b1b_1.rv(this.a1b_1, this);
|
|
2133
2253
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2134
2254
|
return suspendResult;
|
|
2135
2255
|
}
|
|
@@ -2140,71 +2260,71 @@
|
|
|
2140
2260
|
l$ret$1: do {
|
|
2141
2261
|
var tmp_0;
|
|
2142
2262
|
try {
|
|
2143
|
-
tmp$ret$0 = this.
|
|
2263
|
+
tmp$ret$0 = this.x1a_1.i1b_1.t3(this.y1a_1);
|
|
2144
2264
|
break l$ret$1;
|
|
2145
2265
|
} catch ($p) {
|
|
2146
2266
|
var tmp_1;
|
|
2147
2267
|
var t = $p;
|
|
2148
|
-
this.
|
|
2268
|
+
this.b1b_1.cv(this.a1b_1);
|
|
2149
2269
|
throw t;
|
|
2150
2270
|
}
|
|
2151
2271
|
}
|
|
2152
2272
|
while (false);
|
|
2153
2273
|
var tmp_2 = tmp$ret$0;
|
|
2154
|
-
this.
|
|
2274
|
+
this.b1b_1.cv(this.a1b_1);
|
|
2155
2275
|
return tmp_2;
|
|
2156
2276
|
case 2:
|
|
2157
|
-
throw this.
|
|
2277
|
+
throw this.j7_1;
|
|
2158
2278
|
}
|
|
2159
2279
|
} catch ($p_0) {
|
|
2160
2280
|
var e = $p_0;
|
|
2161
|
-
if (this.
|
|
2281
|
+
if (this.h7_1 === 2) {
|
|
2162
2282
|
throw e;
|
|
2163
2283
|
} else {
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2284
|
+
this.g7_1 = this.h7_1;
|
|
2285
|
+
this.j7_1 = e;
|
|
2166
2286
|
}
|
|
2167
2287
|
}
|
|
2168
2288
|
while (true);
|
|
2169
2289
|
};
|
|
2170
|
-
protoOf(LruCache$load$slambda).
|
|
2171
|
-
var i = new LruCache$load$slambda(this.
|
|
2172
|
-
i
|
|
2290
|
+
protoOf(LruCache$load$slambda).m18 = function ($this$withContext, completion) {
|
|
2291
|
+
var i = new LruCache$load$slambda(this.x1a_1, this.y1a_1, completion);
|
|
2292
|
+
i.z1a_1 = $this$withContext;
|
|
2173
2293
|
return i;
|
|
2174
2294
|
};
|
|
2175
2295
|
function LruCache$load$slambda_0(this$0, $key, resultContinuation) {
|
|
2176
2296
|
var i = new LruCache$load$slambda(this$0, $key, resultContinuation);
|
|
2177
2297
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2178
|
-
return i.
|
|
2298
|
+
return i.c1b($this$withContext, $completion);
|
|
2179
2299
|
}, 1);
|
|
2180
2300
|
}
|
|
2181
2301
|
function LruCache$load$slambda_1(this$0, $key, $value, resultContinuation) {
|
|
2182
|
-
this.
|
|
2183
|
-
this
|
|
2184
|
-
this
|
|
2302
|
+
this.r1b_1 = this$0;
|
|
2303
|
+
this.s1b_1 = $key;
|
|
2304
|
+
this.t1b_1 = $value;
|
|
2185
2305
|
CoroutineImpl.call(this, resultContinuation);
|
|
2186
2306
|
}
|
|
2187
|
-
protoOf(LruCache$load$slambda_1).
|
|
2188
|
-
var tmp = this.
|
|
2189
|
-
tmp.
|
|
2190
|
-
tmp.
|
|
2191
|
-
return tmp.
|
|
2307
|
+
protoOf(LruCache$load$slambda_1).x1b = function ($this$withContext, $completion) {
|
|
2308
|
+
var tmp = this.m18($this$withContext, $completion);
|
|
2309
|
+
tmp.i7_1 = Unit_instance;
|
|
2310
|
+
tmp.j7_1 = null;
|
|
2311
|
+
return tmp.o7();
|
|
2192
2312
|
};
|
|
2193
|
-
protoOf(LruCache$load$slambda_1).
|
|
2194
|
-
return this.
|
|
2313
|
+
protoOf(LruCache$load$slambda_1).w7 = function (p1, $completion) {
|
|
2314
|
+
return this.x1b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2195
2315
|
};
|
|
2196
|
-
protoOf(LruCache$load$slambda_1).
|
|
2197
|
-
var suspendResult = this.
|
|
2316
|
+
protoOf(LruCache$load$slambda_1).o7 = function () {
|
|
2317
|
+
var suspendResult = this.i7_1;
|
|
2198
2318
|
$sm: do
|
|
2199
2319
|
try {
|
|
2200
|
-
var tmp = this.
|
|
2320
|
+
var tmp = this.g7_1;
|
|
2201
2321
|
switch (tmp) {
|
|
2202
2322
|
case 0:
|
|
2203
|
-
this.
|
|
2204
|
-
this.
|
|
2205
|
-
this.
|
|
2206
|
-
this.
|
|
2207
|
-
suspendResult = this.
|
|
2323
|
+
this.h7_1 = 2;
|
|
2324
|
+
this.w1b_1 = this.r1b_1.g1b_1;
|
|
2325
|
+
this.v1b_1 = null;
|
|
2326
|
+
this.g7_1 = 1;
|
|
2327
|
+
suspendResult = this.w1b_1.rv(this.v1b_1, this);
|
|
2208
2328
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2209
2329
|
return suspendResult;
|
|
2210
2330
|
}
|
|
@@ -2215,86 +2335,86 @@
|
|
|
2215
2335
|
l$ret$1: do {
|
|
2216
2336
|
var tmp_0;
|
|
2217
2337
|
try {
|
|
2218
|
-
this.
|
|
2338
|
+
this.r1b_1.i1b_1.t3(this.s1b_1);
|
|
2219
2339
|
var oldest = null;
|
|
2220
2340
|
var tmp_1;
|
|
2221
|
-
if (this.
|
|
2222
|
-
var tmp0 = this.
|
|
2223
|
-
var key = this
|
|
2224
|
-
tmp_1 = !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).
|
|
2341
|
+
if (this.r1b_1.h1b_1.o() >= this.r1b_1.d1b_1) {
|
|
2342
|
+
var tmp0 = this.r1b_1.h1b_1;
|
|
2343
|
+
var key = this.s1b_1;
|
|
2344
|
+
tmp_1 = !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).o1(key);
|
|
2225
2345
|
} else {
|
|
2226
2346
|
tmp_1 = false;
|
|
2227
2347
|
}
|
|
2228
2348
|
if (tmp_1) {
|
|
2229
|
-
var iter = this.
|
|
2230
|
-
oldest = iter.
|
|
2231
|
-
iter.
|
|
2349
|
+
var iter = this.r1b_1.h1b_1.t1().l();
|
|
2350
|
+
oldest = iter.n().n1();
|
|
2351
|
+
iter.s2();
|
|
2232
2352
|
}
|
|
2233
|
-
var tmp0_0 = this.
|
|
2234
|
-
var tmp2 = this
|
|
2235
|
-
var value = this
|
|
2236
|
-
tmp0_0.
|
|
2353
|
+
var tmp0_0 = this.r1b_1.h1b_1;
|
|
2354
|
+
var tmp2 = this.s1b_1;
|
|
2355
|
+
var value = this.t1b_1;
|
|
2356
|
+
tmp0_0.s3(tmp2, value);
|
|
2237
2357
|
tmp$ret$0 = oldest;
|
|
2238
2358
|
break l$ret$1;
|
|
2239
2359
|
} catch ($p) {
|
|
2240
2360
|
var tmp_2;
|
|
2241
2361
|
var t = $p;
|
|
2242
|
-
this.
|
|
2362
|
+
this.w1b_1.cv(this.v1b_1);
|
|
2243
2363
|
throw t;
|
|
2244
2364
|
}
|
|
2245
2365
|
}
|
|
2246
2366
|
while (false);
|
|
2247
2367
|
var tmp_3 = tmp$ret$0;
|
|
2248
|
-
this.
|
|
2368
|
+
this.w1b_1.cv(this.v1b_1);
|
|
2249
2369
|
return tmp_3;
|
|
2250
2370
|
case 2:
|
|
2251
|
-
throw this.
|
|
2371
|
+
throw this.j7_1;
|
|
2252
2372
|
}
|
|
2253
2373
|
} catch ($p_0) {
|
|
2254
2374
|
var e = $p_0;
|
|
2255
|
-
if (this.
|
|
2375
|
+
if (this.h7_1 === 2) {
|
|
2256
2376
|
throw e;
|
|
2257
2377
|
} else {
|
|
2258
|
-
this.
|
|
2259
|
-
this.
|
|
2378
|
+
this.g7_1 = this.h7_1;
|
|
2379
|
+
this.j7_1 = e;
|
|
2260
2380
|
}
|
|
2261
2381
|
}
|
|
2262
2382
|
while (true);
|
|
2263
2383
|
};
|
|
2264
|
-
protoOf(LruCache$load$slambda_1).
|
|
2265
|
-
var i = new LruCache$load$slambda_1(this.
|
|
2266
|
-
i
|
|
2384
|
+
protoOf(LruCache$load$slambda_1).m18 = function ($this$withContext, completion) {
|
|
2385
|
+
var i = new LruCache$load$slambda_1(this.r1b_1, this.s1b_1, this.t1b_1, completion);
|
|
2386
|
+
i.u1b_1 = $this$withContext;
|
|
2267
2387
|
return i;
|
|
2268
2388
|
};
|
|
2269
2389
|
function LruCache$load$slambda_2(this$0, $key, $value, resultContinuation) {
|
|
2270
2390
|
var i = new LruCache$load$slambda_1(this$0, $key, $value, resultContinuation);
|
|
2271
2391
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2272
|
-
return i.
|
|
2392
|
+
return i.x1b($this$withContext, $completion);
|
|
2273
2393
|
}, 1);
|
|
2274
2394
|
}
|
|
2275
2395
|
function $getCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2276
2396
|
CoroutineImpl.call(this, resultContinuation);
|
|
2277
|
-
this.
|
|
2278
|
-
this.
|
|
2397
|
+
this.g1c_1 = _this__u8e3s4;
|
|
2398
|
+
this.h1c_1 = key;
|
|
2279
2399
|
}
|
|
2280
|
-
protoOf($getCOROUTINE$).
|
|
2281
|
-
var suspendResult = this.
|
|
2400
|
+
protoOf($getCOROUTINE$).o7 = function () {
|
|
2401
|
+
var suspendResult = this.i7_1;
|
|
2282
2402
|
$sm: do
|
|
2283
2403
|
try {
|
|
2284
|
-
var tmp = this.
|
|
2404
|
+
var tmp = this.g7_1;
|
|
2285
2405
|
switch (tmp) {
|
|
2286
2406
|
case 0:
|
|
2287
|
-
this.
|
|
2288
|
-
this.
|
|
2407
|
+
this.h7_1 = 8;
|
|
2408
|
+
this.g7_1 = 1;
|
|
2289
2409
|
continue $sm;
|
|
2290
2410
|
case 1:
|
|
2291
2411
|
if (!true) {
|
|
2292
|
-
this.
|
|
2412
|
+
this.g7_1 = 9;
|
|
2293
2413
|
continue $sm;
|
|
2294
2414
|
}
|
|
2295
2415
|
|
|
2296
|
-
this.
|
|
2297
|
-
suspendResult = lookupOrClaim(this.
|
|
2416
|
+
this.g7_1 = 2;
|
|
2417
|
+
suspendResult = lookupOrClaim(this.g1c_1, this.h1c_1, this);
|
|
2298
2418
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2299
2419
|
return suspendResult;
|
|
2300
2420
|
}
|
|
@@ -2303,20 +2423,20 @@
|
|
|
2303
2423
|
case 2:
|
|
2304
2424
|
var lookup = suspendResult;
|
|
2305
2425
|
if (lookup instanceof Hit) {
|
|
2306
|
-
return lookup.
|
|
2426
|
+
return lookup.m19_1;
|
|
2307
2427
|
} else {
|
|
2308
2428
|
if (lookup instanceof Owner) {
|
|
2309
|
-
this.
|
|
2310
|
-
suspendResult = load(this.
|
|
2429
|
+
this.g7_1 = 7;
|
|
2430
|
+
suspendResult = load(this.g1c_1, this.h1c_1, lookup.o19_1, this);
|
|
2311
2431
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2312
2432
|
return suspendResult;
|
|
2313
2433
|
}
|
|
2314
2434
|
continue $sm;
|
|
2315
2435
|
} else {
|
|
2316
2436
|
if (lookup instanceof Await) {
|
|
2317
|
-
this.
|
|
2318
|
-
this.
|
|
2319
|
-
suspendResult = lookup.
|
|
2437
|
+
this.h7_1 = 4;
|
|
2438
|
+
this.g7_1 = 3;
|
|
2439
|
+
suspendResult = lookup.n19_1.gn(this);
|
|
2320
2440
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2321
2441
|
return suspendResult;
|
|
2322
2442
|
}
|
|
@@ -2331,58 +2451,58 @@
|
|
|
2331
2451
|
case 3:
|
|
2332
2452
|
return suspendResult;
|
|
2333
2453
|
case 4:
|
|
2334
|
-
this.
|
|
2335
|
-
var tmp_0 = this.
|
|
2454
|
+
this.h7_1 = 8;
|
|
2455
|
+
var tmp_0 = this.j7_1;
|
|
2336
2456
|
if (tmp_0 instanceof LoadAbandoned) {
|
|
2337
|
-
var _unused_var__etf5q3 = this.
|
|
2338
|
-
this.
|
|
2457
|
+
var _unused_var__etf5q3 = this.j7_1;
|
|
2458
|
+
this.g7_1 = 5;
|
|
2339
2459
|
continue $sm;
|
|
2340
2460
|
} else {
|
|
2341
|
-
throw this.
|
|
2461
|
+
throw this.j7_1;
|
|
2342
2462
|
}
|
|
2343
2463
|
|
|
2344
2464
|
case 5:
|
|
2345
|
-
this.
|
|
2346
|
-
this.
|
|
2465
|
+
this.h7_1 = 8;
|
|
2466
|
+
this.g7_1 = 6;
|
|
2347
2467
|
continue $sm;
|
|
2348
2468
|
case 6:
|
|
2349
|
-
this.
|
|
2469
|
+
this.g7_1 = 1;
|
|
2350
2470
|
continue $sm;
|
|
2351
2471
|
case 7:
|
|
2352
2472
|
return suspendResult;
|
|
2353
2473
|
case 8:
|
|
2354
|
-
throw this.
|
|
2474
|
+
throw this.j7_1;
|
|
2355
2475
|
case 9:
|
|
2356
2476
|
return Unit_instance;
|
|
2357
2477
|
}
|
|
2358
2478
|
} catch ($p) {
|
|
2359
2479
|
var e = $p;
|
|
2360
|
-
if (this.
|
|
2480
|
+
if (this.h7_1 === 8) {
|
|
2361
2481
|
throw e;
|
|
2362
2482
|
} else {
|
|
2363
|
-
this.
|
|
2364
|
-
this.
|
|
2483
|
+
this.g7_1 = this.h7_1;
|
|
2484
|
+
this.j7_1 = e;
|
|
2365
2485
|
}
|
|
2366
2486
|
}
|
|
2367
2487
|
while (true);
|
|
2368
2488
|
};
|
|
2369
2489
|
function $lookupOrClaimCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2370
2490
|
CoroutineImpl.call(this, resultContinuation);
|
|
2371
|
-
this.
|
|
2372
|
-
this.
|
|
2491
|
+
this.x19_1 = _this__u8e3s4;
|
|
2492
|
+
this.y19_1 = key;
|
|
2373
2493
|
}
|
|
2374
|
-
protoOf($lookupOrClaimCOROUTINE$).
|
|
2375
|
-
var suspendResult = this.
|
|
2494
|
+
protoOf($lookupOrClaimCOROUTINE$).o7 = function () {
|
|
2495
|
+
var suspendResult = this.i7_1;
|
|
2376
2496
|
$sm: do
|
|
2377
2497
|
try {
|
|
2378
|
-
var tmp = this.
|
|
2498
|
+
var tmp = this.g7_1;
|
|
2379
2499
|
switch (tmp) {
|
|
2380
2500
|
case 0:
|
|
2381
|
-
this.
|
|
2382
|
-
this.
|
|
2383
|
-
this.
|
|
2384
|
-
this.
|
|
2385
|
-
suspendResult = this.
|
|
2501
|
+
this.h7_1 = 2;
|
|
2502
|
+
this.a1a_1 = this.x19_1.g1b_1;
|
|
2503
|
+
this.z19_1 = null;
|
|
2504
|
+
this.g7_1 = 1;
|
|
2505
|
+
suspendResult = this.a1a_1.rv(this.z19_1, this);
|
|
2386
2506
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2387
2507
|
return suspendResult;
|
|
2388
2508
|
}
|
|
@@ -2395,23 +2515,23 @@
|
|
|
2395
2515
|
try {
|
|
2396
2516
|
var tmp$ret$0 = Unit_instance;
|
|
2397
2517
|
l$ret$1: do {
|
|
2398
|
-
var hit = this.
|
|
2518
|
+
var hit = this.x19_1.h1b_1.t3(this.y19_1);
|
|
2399
2519
|
if (!(hit == null)) {
|
|
2400
|
-
var tmp0 = this.
|
|
2401
|
-
var key = this.
|
|
2402
|
-
tmp0.
|
|
2520
|
+
var tmp0 = this.x19_1.h1b_1;
|
|
2521
|
+
var key = this.y19_1;
|
|
2522
|
+
tmp0.s3(key, hit);
|
|
2403
2523
|
tmp$ret$0 = new Hit(hit);
|
|
2404
2524
|
break l$ret$1;
|
|
2405
2525
|
}
|
|
2406
|
-
var raced = this.
|
|
2526
|
+
var raced = this.x19_1.i1b_1.q1(this.y19_1);
|
|
2407
2527
|
var tmp_1;
|
|
2408
2528
|
if (!(raced == null)) {
|
|
2409
2529
|
tmp_1 = new Await(raced);
|
|
2410
2530
|
} else {
|
|
2411
2531
|
var ours = CompletableDeferred();
|
|
2412
|
-
var tmp0_0 = this.
|
|
2413
|
-
var key_0 = this.
|
|
2414
|
-
tmp0_0.
|
|
2532
|
+
var tmp0_0 = this.x19_1.i1b_1;
|
|
2533
|
+
var key_0 = this.y19_1;
|
|
2534
|
+
tmp0_0.s3(key_0, ours);
|
|
2415
2535
|
tmp_1 = new Owner(ours);
|
|
2416
2536
|
}
|
|
2417
2537
|
tmp$ret$0 = tmp_1;
|
|
@@ -2422,89 +2542,89 @@
|
|
|
2422
2542
|
} catch ($p) {
|
|
2423
2543
|
var tmp_2;
|
|
2424
2544
|
var t = $p;
|
|
2425
|
-
this.
|
|
2545
|
+
this.a1a_1.cv(this.z19_1);
|
|
2426
2546
|
throw t;
|
|
2427
2547
|
}
|
|
2428
2548
|
}
|
|
2429
2549
|
while (false);
|
|
2430
2550
|
var tmp_3 = tmp$ret$2;
|
|
2431
|
-
this.
|
|
2551
|
+
this.a1a_1.cv(this.z19_1);
|
|
2432
2552
|
return tmp_3;
|
|
2433
2553
|
case 2:
|
|
2434
|
-
throw this.
|
|
2554
|
+
throw this.j7_1;
|
|
2435
2555
|
}
|
|
2436
2556
|
} catch ($p_0) {
|
|
2437
2557
|
var e = $p_0;
|
|
2438
|
-
if (this.
|
|
2558
|
+
if (this.h7_1 === 2) {
|
|
2439
2559
|
throw e;
|
|
2440
2560
|
} else {
|
|
2441
|
-
this.
|
|
2442
|
-
this.
|
|
2561
|
+
this.g7_1 = this.h7_1;
|
|
2562
|
+
this.j7_1 = e;
|
|
2443
2563
|
}
|
|
2444
2564
|
}
|
|
2445
2565
|
while (true);
|
|
2446
2566
|
};
|
|
2447
2567
|
function $loadCOROUTINE$(_this__u8e3s4, key, ours, resultContinuation) {
|
|
2448
2568
|
CoroutineImpl.call(this, resultContinuation);
|
|
2449
|
-
this.
|
|
2450
|
-
this.
|
|
2451
|
-
this.
|
|
2569
|
+
this.j1a_1 = _this__u8e3s4;
|
|
2570
|
+
this.k1a_1 = key;
|
|
2571
|
+
this.l1a_1 = ours;
|
|
2452
2572
|
}
|
|
2453
|
-
protoOf($loadCOROUTINE$).
|
|
2454
|
-
var suspendResult = this.
|
|
2573
|
+
protoOf($loadCOROUTINE$).o7 = function () {
|
|
2574
|
+
var suspendResult = this.i7_1;
|
|
2455
2575
|
$sm: do
|
|
2456
2576
|
try {
|
|
2457
|
-
var tmp = this.
|
|
2577
|
+
var tmp = this.g7_1;
|
|
2458
2578
|
switch (tmp) {
|
|
2459
2579
|
case 0:
|
|
2460
|
-
this.
|
|
2461
|
-
this.
|
|
2462
|
-
this.
|
|
2463
|
-
suspendResult = this.
|
|
2580
|
+
this.h7_1 = 6;
|
|
2581
|
+
this.h7_1 = 2;
|
|
2582
|
+
this.g7_1 = 1;
|
|
2583
|
+
suspendResult = this.j1a_1.e1b_1(this.k1a_1, this);
|
|
2464
2584
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2465
2585
|
return suspendResult;
|
|
2466
2586
|
}
|
|
2467
2587
|
|
|
2468
2588
|
continue $sm;
|
|
2469
2589
|
case 1:
|
|
2470
|
-
this.
|
|
2471
|
-
this.
|
|
2472
|
-
this.
|
|
2590
|
+
this.n1a_1 = suspendResult;
|
|
2591
|
+
this.h7_1 = 6;
|
|
2592
|
+
this.g7_1 = 4;
|
|
2473
2593
|
continue $sm;
|
|
2474
2594
|
case 2:
|
|
2475
|
-
this.
|
|
2476
|
-
var tmp_0 = this.
|
|
2595
|
+
this.h7_1 = 6;
|
|
2596
|
+
var tmp_0 = this.j7_1;
|
|
2477
2597
|
if (tmp_0 instanceof Error) {
|
|
2478
|
-
this.
|
|
2479
|
-
this.
|
|
2598
|
+
this.o1a_1 = this.j7_1;
|
|
2599
|
+
this.g7_1 = 3;
|
|
2480
2600
|
var tmp_1 = NonCancellable_getInstance();
|
|
2481
|
-
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.
|
|
2601
|
+
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.j1a_1, this.k1a_1, null), this);
|
|
2482
2602
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2483
2603
|
return suspendResult;
|
|
2484
2604
|
}
|
|
2485
2605
|
continue $sm;
|
|
2486
2606
|
} else {
|
|
2487
|
-
throw this.
|
|
2607
|
+
throw this.j7_1;
|
|
2488
2608
|
}
|
|
2489
2609
|
|
|
2490
2610
|
case 3:
|
|
2491
2611
|
var tmp_2;
|
|
2492
|
-
var tmp_3 = this.
|
|
2612
|
+
var tmp_3 = this.o1a_1;
|
|
2493
2613
|
if (tmp_3 instanceof CancellationException) {
|
|
2494
2614
|
tmp_2 = new LoadAbandoned();
|
|
2495
2615
|
} else {
|
|
2496
|
-
tmp_2 = this.
|
|
2616
|
+
tmp_2 = this.o1a_1;
|
|
2497
2617
|
}
|
|
2498
2618
|
|
|
2499
|
-
this.
|
|
2619
|
+
this.l1a_1.kq(tmp_2);
|
|
2500
2620
|
var tmp_4 = this;
|
|
2501
|
-
throw this.
|
|
2621
|
+
throw this.o1a_1;
|
|
2502
2622
|
case 4:
|
|
2503
|
-
this.
|
|
2504
|
-
this.
|
|
2505
|
-
this.
|
|
2623
|
+
this.h7_1 = 6;
|
|
2624
|
+
this.m1a_1 = this.n1a_1;
|
|
2625
|
+
this.g7_1 = 5;
|
|
2506
2626
|
var tmp_5 = NonCancellable_getInstance();
|
|
2507
|
-
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.
|
|
2627
|
+
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.j1a_1, this.k1a_1, this.m1a_1, null), this);
|
|
2508
2628
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2509
2629
|
return suspendResult;
|
|
2510
2630
|
}
|
|
@@ -2512,59 +2632,59 @@
|
|
|
2512
2632
|
continue $sm;
|
|
2513
2633
|
case 5:
|
|
2514
2634
|
var evicted = suspendResult;
|
|
2515
|
-
this.
|
|
2635
|
+
this.l1a_1.jq(this.m1a_1);
|
|
2516
2636
|
if (!(evicted == null)) {
|
|
2517
|
-
var tmp0_safe_receiver = this.
|
|
2637
|
+
var tmp0_safe_receiver = this.j1a_1.f1b_1;
|
|
2518
2638
|
if (tmp0_safe_receiver == null)
|
|
2519
2639
|
null;
|
|
2520
2640
|
else
|
|
2521
2641
|
tmp0_safe_receiver(evicted);
|
|
2522
2642
|
}
|
|
2523
2643
|
|
|
2524
|
-
return this.
|
|
2644
|
+
return this.m1a_1;
|
|
2525
2645
|
case 6:
|
|
2526
|
-
throw this.
|
|
2646
|
+
throw this.j7_1;
|
|
2527
2647
|
}
|
|
2528
2648
|
} catch ($p) {
|
|
2529
2649
|
var e = $p;
|
|
2530
|
-
if (this.
|
|
2650
|
+
if (this.h7_1 === 6) {
|
|
2531
2651
|
throw e;
|
|
2532
2652
|
} else {
|
|
2533
|
-
this.
|
|
2534
|
-
this.
|
|
2653
|
+
this.g7_1 = this.h7_1;
|
|
2654
|
+
this.j7_1 = e;
|
|
2535
2655
|
}
|
|
2536
2656
|
}
|
|
2537
2657
|
while (true);
|
|
2538
2658
|
};
|
|
2539
2659
|
function LruCache(maxSize, loader, onEvict) {
|
|
2540
2660
|
onEvict = onEvict === VOID ? null : onEvict;
|
|
2541
|
-
this.
|
|
2542
|
-
this.
|
|
2543
|
-
this.
|
|
2661
|
+
this.d1b_1 = maxSize;
|
|
2662
|
+
this.e1b_1 = loader;
|
|
2663
|
+
this.f1b_1 = onEvict;
|
|
2544
2664
|
// Inline function 'kotlin.require' call
|
|
2545
|
-
if (!(this.
|
|
2665
|
+
if (!(this.d1b_1 > 0)) {
|
|
2546
2666
|
var message = 'Cache size must be greater than 0';
|
|
2547
2667
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2548
2668
|
}
|
|
2549
|
-
this.
|
|
2550
|
-
this.
|
|
2669
|
+
this.g1b_1 = Mutex();
|
|
2670
|
+
this.h1b_1 = LinkedHashMap_init_$Create$();
|
|
2551
2671
|
var tmp = this;
|
|
2552
2672
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2553
|
-
tmp.
|
|
2673
|
+
tmp.i1b_1 = LinkedHashMap_init_$Create$();
|
|
2554
2674
|
}
|
|
2555
|
-
protoOf(LruCache).
|
|
2675
|
+
protoOf(LruCache).i1c = function (key, $completion) {
|
|
2556
2676
|
var tmp = new $getCOROUTINE$(this, key, $completion);
|
|
2557
|
-
tmp.
|
|
2558
|
-
tmp.
|
|
2559
|
-
return tmp.
|
|
2677
|
+
tmp.i7_1 = Unit_instance;
|
|
2678
|
+
tmp.j7_1 = null;
|
|
2679
|
+
return tmp.o7();
|
|
2560
2680
|
};
|
|
2561
2681
|
function RawTile(width, height, rgba) {
|
|
2562
|
-
this.
|
|
2563
|
-
this.
|
|
2564
|
-
this.
|
|
2682
|
+
this.j1c_1 = width;
|
|
2683
|
+
this.k1c_1 = height;
|
|
2684
|
+
this.l1c_1 = rgba;
|
|
2565
2685
|
// Inline function 'kotlin.require' call
|
|
2566
|
-
if (!(this.
|
|
2567
|
-
var message = 'rgba size ' + this.
|
|
2686
|
+
if (!(this.l1c_1.length === imul(imul(this.j1c_1, this.k1c_1), 4))) {
|
|
2687
|
+
var message = 'rgba size ' + this.l1c_1.length + ' does not match width*height*4 (' + imul(imul(this.j1c_1, this.k1c_1), 4) + ')';
|
|
2568
2688
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2569
2689
|
}
|
|
2570
2690
|
}
|
|
@@ -2573,16 +2693,16 @@
|
|
|
2573
2693
|
return true;
|
|
2574
2694
|
if (!(other instanceof RawTile))
|
|
2575
2695
|
return false;
|
|
2576
|
-
return this.
|
|
2696
|
+
return this.j1c_1 === other.j1c_1 && this.k1c_1 === other.k1c_1 && contentEquals(this.l1c_1, other.l1c_1);
|
|
2577
2697
|
};
|
|
2578
2698
|
protoOf(RawTile).hashCode = function () {
|
|
2579
|
-
var result = this.
|
|
2580
|
-
result = imul(31, result) + this.
|
|
2581
|
-
result = imul(31, result) + contentHashCode(this.
|
|
2699
|
+
var result = this.j1c_1;
|
|
2700
|
+
result = imul(31, result) + this.k1c_1 | 0;
|
|
2701
|
+
result = imul(31, result) + contentHashCode(this.l1c_1) | 0;
|
|
2582
2702
|
return result;
|
|
2583
2703
|
};
|
|
2584
2704
|
function Tile_init_$Init$(raw, $this) {
|
|
2585
|
-
Tile.call($this, raw.
|
|
2705
|
+
Tile.call($this, raw.j1c_1, raw.k1c_1, raw.l1c_1);
|
|
2586
2706
|
return $this;
|
|
2587
2707
|
}
|
|
2588
2708
|
function Tile_init_$Create$(raw) {
|
|
@@ -2590,7 +2710,7 @@
|
|
|
2590
2710
|
}
|
|
2591
2711
|
function Companion_0() {
|
|
2592
2712
|
}
|
|
2593
|
-
protoOf(Companion_0).
|
|
2713
|
+
protoOf(Companion_0).m1c = function (r, g, b) {
|
|
2594
2714
|
var raw = r * 256.0 + g + b / 256.0 - 32768.0;
|
|
2595
2715
|
return round(raw * 100.0) / 100.0;
|
|
2596
2716
|
};
|
|
@@ -2599,85 +2719,85 @@
|
|
|
2599
2719
|
return Companion_instance_1;
|
|
2600
2720
|
}
|
|
2601
2721
|
function Tile(width, height, rgba) {
|
|
2602
|
-
this.
|
|
2603
|
-
this.
|
|
2604
|
-
this.
|
|
2722
|
+
this.w13_1 = width;
|
|
2723
|
+
this.x13_1 = height;
|
|
2724
|
+
this.y13_1 = rgba;
|
|
2605
2725
|
var tmp = this;
|
|
2606
2726
|
var tmp_0 = 0;
|
|
2607
|
-
var tmp_1 = imul(this.
|
|
2727
|
+
var tmp_1 = imul(this.w13_1, this.x13_1);
|
|
2608
2728
|
var tmp_2 = new Float64Array(tmp_1);
|
|
2609
2729
|
while (tmp_0 < tmp_1) {
|
|
2610
2730
|
tmp_2[tmp_0] = NaN;
|
|
2611
2731
|
tmp_0 = tmp_0 + 1 | 0;
|
|
2612
2732
|
}
|
|
2613
|
-
tmp.
|
|
2614
|
-
this.
|
|
2733
|
+
tmp.z13_1 = tmp_2;
|
|
2734
|
+
this.a14_1 = 0;
|
|
2615
2735
|
}
|
|
2616
|
-
protoOf(Tile).
|
|
2617
|
-
var containsUpper = this.
|
|
2618
|
-
var containsArg = pixel.
|
|
2736
|
+
protoOf(Tile).b14 = function (pixel) {
|
|
2737
|
+
var containsUpper = this.w13_1;
|
|
2738
|
+
var containsArg = pixel.q13_1;
|
|
2619
2739
|
// Inline function 'kotlin.require' call
|
|
2620
2740
|
if (!(0 <= containsArg ? containsArg < containsUpper : false)) {
|
|
2621
|
-
var message = 'Invalid x position: ' + pixel.
|
|
2741
|
+
var message = 'Invalid x position: ' + pixel.q13_1 + '. Must be between 0 and ' + (this.w13_1 - 1 | 0);
|
|
2622
2742
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2623
2743
|
}
|
|
2624
|
-
var containsUpper_0 = this.
|
|
2625
|
-
var containsArg_0 = pixel.
|
|
2744
|
+
var containsUpper_0 = this.x13_1;
|
|
2745
|
+
var containsArg_0 = pixel.r13_1;
|
|
2626
2746
|
// Inline function 'kotlin.require' call
|
|
2627
2747
|
if (!(0 <= containsArg_0 ? containsArg_0 < containsUpper_0 : false)) {
|
|
2628
|
-
var message_0 = 'Invalid y position: ' + pixel.
|
|
2748
|
+
var message_0 = 'Invalid y position: ' + pixel.r13_1 + '. Must be between 0 and ' + (this.x13_1 - 1 | 0);
|
|
2629
2749
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2630
2750
|
}
|
|
2631
|
-
var idx = imul(pixel.
|
|
2632
|
-
var cached = this.
|
|
2751
|
+
var idx = imul(pixel.r13_1, this.w13_1) + pixel.q13_1 | 0;
|
|
2752
|
+
var cached = this.z13_1[idx];
|
|
2633
2753
|
if (!isNaN_0(cached))
|
|
2634
2754
|
return cached;
|
|
2635
2755
|
var byteOffset = imul(idx, 4);
|
|
2636
|
-
var r = this.
|
|
2637
|
-
var g = this.
|
|
2638
|
-
var b = this.
|
|
2639
|
-
var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_1.
|
|
2640
|
-
this.
|
|
2641
|
-
this.
|
|
2756
|
+
var r = this.y13_1[byteOffset] & 255;
|
|
2757
|
+
var g = this.y13_1[byteOffset + 1 | 0] & 255;
|
|
2758
|
+
var b = this.y13_1[byteOffset + 2 | 0] & 255;
|
|
2759
|
+
var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_1.m1c(r, g, b);
|
|
2760
|
+
this.z13_1[idx] = elevation;
|
|
2761
|
+
this.a14_1 = this.a14_1 + 1 | 0;
|
|
2642
2762
|
return elevation;
|
|
2643
2763
|
};
|
|
2644
2764
|
function buildUrl($this, tc) {
|
|
2645
2765
|
// Inline function 'kotlin.let' call
|
|
2646
|
-
var it = replace(replace(replace($this.
|
|
2766
|
+
var it = replace(replace(replace($this.s13_1, '{z}', tc.b10_1.toString()), '{x}', tc.zz_1.toString()), '{y}', tc.a10_1.toString());
|
|
2647
2767
|
return contains(it, '{bbox}') ? replace(it, '{bbox}', wmsBbox4326(tc)) : it;
|
|
2648
2768
|
}
|
|
2649
2769
|
function fetchAndDecodeTile$ref_0() {
|
|
2650
2770
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
2651
2771
|
}
|
|
2652
|
-
protoOf(fetchAndDecodeTile$ref_0).
|
|
2772
|
+
protoOf(fetchAndDecodeTile$ref_0).j16 = function (p0, $completion) {
|
|
2653
2773
|
return fetchAndDecodeTile(p0, $completion);
|
|
2654
2774
|
};
|
|
2655
|
-
protoOf(fetchAndDecodeTile$ref_0).
|
|
2656
|
-
return this.
|
|
2775
|
+
protoOf(fetchAndDecodeTile$ref_0).w7 = function (p1, $completion) {
|
|
2776
|
+
return this.j16((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
2657
2777
|
};
|
|
2658
2778
|
function TileManager$cache$slambda(this$0, resultContinuation) {
|
|
2659
|
-
this.
|
|
2779
|
+
this.y1c_1 = this$0;
|
|
2660
2780
|
CoroutineImpl.call(this, resultContinuation);
|
|
2661
2781
|
}
|
|
2662
|
-
protoOf(TileManager$cache$slambda).
|
|
2663
|
-
var tmp = this.
|
|
2664
|
-
tmp.
|
|
2665
|
-
tmp.
|
|
2666
|
-
return tmp.
|
|
2782
|
+
protoOf(TileManager$cache$slambda).a1d = function (tc, $completion) {
|
|
2783
|
+
var tmp = this.b1d(tc, $completion);
|
|
2784
|
+
tmp.i7_1 = Unit_instance;
|
|
2785
|
+
tmp.j7_1 = null;
|
|
2786
|
+
return tmp.o7();
|
|
2667
2787
|
};
|
|
2668
|
-
protoOf(TileManager$cache$slambda).
|
|
2669
|
-
return this.
|
|
2788
|
+
protoOf(TileManager$cache$slambda).w7 = function (p1, $completion) {
|
|
2789
|
+
return this.a1d(p1 instanceof TileCoordinates ? p1 : THROW_CCE(), $completion);
|
|
2670
2790
|
};
|
|
2671
|
-
protoOf(TileManager$cache$slambda).
|
|
2672
|
-
var suspendResult = this.
|
|
2791
|
+
protoOf(TileManager$cache$slambda).o7 = function () {
|
|
2792
|
+
var suspendResult = this.i7_1;
|
|
2673
2793
|
$sm: do
|
|
2674
2794
|
try {
|
|
2675
|
-
var tmp = this.
|
|
2795
|
+
var tmp = this.g7_1;
|
|
2676
2796
|
switch (tmp) {
|
|
2677
2797
|
case 0:
|
|
2678
|
-
this.
|
|
2679
|
-
this.
|
|
2680
|
-
suspendResult = this.
|
|
2798
|
+
this.h7_1 = 2;
|
|
2799
|
+
this.g7_1 = 1;
|
|
2800
|
+
suspendResult = this.y1c_1.t13_1(buildUrl(this.y1c_1, this.z1c_1), this);
|
|
2681
2801
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2682
2802
|
return suspendResult;
|
|
2683
2803
|
}
|
|
@@ -2687,28 +2807,28 @@
|
|
|
2687
2807
|
var ARGUMENT = suspendResult;
|
|
2688
2808
|
return Tile_init_$Create$(ARGUMENT);
|
|
2689
2809
|
case 2:
|
|
2690
|
-
throw this.
|
|
2810
|
+
throw this.j7_1;
|
|
2691
2811
|
}
|
|
2692
2812
|
} catch ($p) {
|
|
2693
2813
|
var e = $p;
|
|
2694
|
-
if (this.
|
|
2814
|
+
if (this.h7_1 === 2) {
|
|
2695
2815
|
throw e;
|
|
2696
2816
|
} else {
|
|
2697
|
-
this.
|
|
2698
|
-
this.
|
|
2817
|
+
this.g7_1 = this.h7_1;
|
|
2818
|
+
this.j7_1 = e;
|
|
2699
2819
|
}
|
|
2700
2820
|
}
|
|
2701
2821
|
while (true);
|
|
2702
2822
|
};
|
|
2703
|
-
protoOf(TileManager$cache$slambda).
|
|
2704
|
-
var i = new TileManager$cache$slambda(this.
|
|
2705
|
-
i.
|
|
2823
|
+
protoOf(TileManager$cache$slambda).b1d = function (tc, completion) {
|
|
2824
|
+
var i = new TileManager$cache$slambda(this.y1c_1, completion);
|
|
2825
|
+
i.z1c_1 = tc;
|
|
2706
2826
|
return i;
|
|
2707
2827
|
};
|
|
2708
2828
|
function TileManager$cache$slambda_0(this$0, resultContinuation) {
|
|
2709
2829
|
var i = new TileManager$cache$slambda(this$0, resultContinuation);
|
|
2710
2830
|
return constructCallableReference(function (tc, $completion) {
|
|
2711
|
-
return i.
|
|
2831
|
+
return i.a1d(tc, $completion);
|
|
2712
2832
|
}, 1);
|
|
2713
2833
|
}
|
|
2714
2834
|
function TileManager(urlTemplate, cacheSize, fetcher) {
|
|
@@ -2719,13 +2839,13 @@
|
|
|
2719
2839
|
tmp = fetcher;
|
|
2720
2840
|
}
|
|
2721
2841
|
fetcher = tmp;
|
|
2722
|
-
this.
|
|
2723
|
-
this.
|
|
2842
|
+
this.s13_1 = urlTemplate;
|
|
2843
|
+
this.t13_1 = fetcher;
|
|
2724
2844
|
var tmp_0 = this;
|
|
2725
|
-
tmp_0.
|
|
2845
|
+
tmp_0.u13_1 = new LruCache(cacheSize, TileManager$cache$slambda_0(this, null));
|
|
2726
2846
|
}
|
|
2727
|
-
protoOf(TileManager).
|
|
2728
|
-
return this.
|
|
2847
|
+
protoOf(TileManager).v13 = function (tileCoords, $completion) {
|
|
2848
|
+
return this.u13_1.i1c(tileCoords, $completion);
|
|
2729
2849
|
};
|
|
2730
2850
|
function pacedTileBytesFetcher(maxRequestsPerSecond, fetch, maxAttempts, now) {
|
|
2731
2851
|
var tmp;
|
|
@@ -2754,30 +2874,30 @@
|
|
|
2754
2874
|
retryAfterSeconds = retryAfterSeconds === VOID ? null : retryAfterSeconds;
|
|
2755
2875
|
IllegalStateException_init_$Init$('Tile fetch failed for ' + url + ': HTTP ' + status, this);
|
|
2756
2876
|
captureStack(this, TileFetchException);
|
|
2757
|
-
this.
|
|
2758
|
-
this.
|
|
2759
|
-
this.
|
|
2877
|
+
this.c1d_1 = url;
|
|
2878
|
+
this.d1d_1 = status;
|
|
2879
|
+
this.e1d_1 = retryAfterSeconds;
|
|
2760
2880
|
}
|
|
2761
2881
|
function monotonicMillis() {
|
|
2762
|
-
var origin = Monotonic_instance.
|
|
2882
|
+
var origin = Monotonic_instance.va();
|
|
2763
2883
|
return monotonicMillis$lambda(origin);
|
|
2764
2884
|
}
|
|
2765
2885
|
function $awaitTurnCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2766
2886
|
CoroutineImpl.call(this, resultContinuation);
|
|
2767
|
-
this.
|
|
2887
|
+
this.n1d_1 = _this__u8e3s4;
|
|
2768
2888
|
}
|
|
2769
|
-
protoOf($awaitTurnCOROUTINE$).
|
|
2770
|
-
var suspendResult = this.
|
|
2889
|
+
protoOf($awaitTurnCOROUTINE$).o7 = function () {
|
|
2890
|
+
var suspendResult = this.i7_1;
|
|
2771
2891
|
$sm: do
|
|
2772
2892
|
try {
|
|
2773
|
-
var tmp = this.
|
|
2893
|
+
var tmp = this.g7_1;
|
|
2774
2894
|
switch (tmp) {
|
|
2775
2895
|
case 0:
|
|
2776
|
-
this.
|
|
2777
|
-
this.
|
|
2778
|
-
this.
|
|
2779
|
-
this.
|
|
2780
|
-
suspendResult = this.
|
|
2896
|
+
this.h7_1 = 4;
|
|
2897
|
+
this.p1d_1 = this.n1d_1.s1d_1;
|
|
2898
|
+
this.o1d_1 = null;
|
|
2899
|
+
this.g7_1 = 1;
|
|
2900
|
+
suspendResult = this.p1d_1.rv(this.o1d_1, this);
|
|
2781
2901
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2782
2902
|
return suspendResult;
|
|
2783
2903
|
}
|
|
@@ -2788,116 +2908,116 @@
|
|
|
2788
2908
|
l$ret$1: do {
|
|
2789
2909
|
var tmp_0;
|
|
2790
2910
|
try {
|
|
2791
|
-
var t = toNumber(this.
|
|
2792
|
-
var b = this.
|
|
2911
|
+
var t = toNumber(this.n1d_1.q1d_1());
|
|
2912
|
+
var b = this.n1d_1.t1d_1;
|
|
2793
2913
|
var slot = Math.max(t, b);
|
|
2794
|
-
this.
|
|
2914
|
+
this.n1d_1.t1d_1 = slot + this.n1d_1.r1d_1;
|
|
2795
2915
|
tmp$ret$0 = slot - t;
|
|
2796
2916
|
break l$ret$1;
|
|
2797
2917
|
} catch ($p) {
|
|
2798
2918
|
var tmp_1;
|
|
2799
2919
|
var t_0 = $p;
|
|
2800
|
-
this.
|
|
2920
|
+
this.p1d_1.cv(this.o1d_1);
|
|
2801
2921
|
throw t_0;
|
|
2802
2922
|
}
|
|
2803
2923
|
}
|
|
2804
2924
|
while (false);
|
|
2805
2925
|
var tmp_2 = tmp$ret$0;
|
|
2806
|
-
this.
|
|
2926
|
+
this.p1d_1.cv(this.o1d_1);
|
|
2807
2927
|
var waitMs = tmp_2;
|
|
2808
2928
|
if (waitMs > 0) {
|
|
2809
|
-
this.
|
|
2929
|
+
this.g7_1 = 2;
|
|
2810
2930
|
suspendResult = delay(numberToLong(Math.ceil(waitMs)), this);
|
|
2811
2931
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2812
2932
|
return suspendResult;
|
|
2813
2933
|
}
|
|
2814
2934
|
continue $sm;
|
|
2815
2935
|
} else {
|
|
2816
|
-
this.
|
|
2936
|
+
this.g7_1 = 3;
|
|
2817
2937
|
continue $sm;
|
|
2818
2938
|
}
|
|
2819
2939
|
|
|
2820
2940
|
case 2:
|
|
2821
|
-
this.
|
|
2941
|
+
this.g7_1 = 3;
|
|
2822
2942
|
continue $sm;
|
|
2823
2943
|
case 3:
|
|
2824
2944
|
return Unit_instance;
|
|
2825
2945
|
case 4:
|
|
2826
|
-
throw this.
|
|
2946
|
+
throw this.j7_1;
|
|
2827
2947
|
}
|
|
2828
2948
|
} catch ($p_0) {
|
|
2829
2949
|
var e = $p_0;
|
|
2830
|
-
if (this.
|
|
2950
|
+
if (this.h7_1 === 4) {
|
|
2831
2951
|
throw e;
|
|
2832
2952
|
} else {
|
|
2833
|
-
this.
|
|
2834
|
-
this.
|
|
2953
|
+
this.g7_1 = this.h7_1;
|
|
2954
|
+
this.j7_1 = e;
|
|
2835
2955
|
}
|
|
2836
2956
|
}
|
|
2837
2957
|
while (true);
|
|
2838
2958
|
};
|
|
2839
2959
|
function RequestPacer(perSecond, now) {
|
|
2840
|
-
this.
|
|
2841
|
-
this.
|
|
2842
|
-
this.
|
|
2843
|
-
this.
|
|
2960
|
+
this.q1d_1 = now;
|
|
2961
|
+
this.r1d_1 = 1000.0 / perSecond;
|
|
2962
|
+
this.s1d_1 = Mutex();
|
|
2963
|
+
this.t1d_1 = -Infinity;
|
|
2844
2964
|
}
|
|
2845
|
-
protoOf(RequestPacer).
|
|
2965
|
+
protoOf(RequestPacer).u1d = function ($completion) {
|
|
2846
2966
|
var tmp = new $awaitTurnCOROUTINE$(this, $completion);
|
|
2847
|
-
tmp.
|
|
2848
|
-
tmp.
|
|
2849
|
-
return tmp.
|
|
2967
|
+
tmp.i7_1 = Unit_instance;
|
|
2968
|
+
tmp.j7_1 = null;
|
|
2969
|
+
return tmp.o7();
|
|
2850
2970
|
};
|
|
2851
2971
|
function fetchTileBytes$ref() {
|
|
2852
2972
|
KFunctionImpl.call(this, 1, 2, 4);
|
|
2853
2973
|
}
|
|
2854
|
-
protoOf(fetchTileBytes$ref).
|
|
2974
|
+
protoOf(fetchTileBytes$ref).y1d = function (p0, $completion) {
|
|
2855
2975
|
return fetchTileBytes(p0, $completion);
|
|
2856
2976
|
};
|
|
2857
|
-
protoOf(fetchTileBytes$ref).
|
|
2858
|
-
return this.
|
|
2977
|
+
protoOf(fetchTileBytes$ref).w7 = function (p1, $completion) {
|
|
2978
|
+
return this.y1d((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
2859
2979
|
};
|
|
2860
2980
|
function pacedTileBytesFetcher$slambda($pacer, $fetch, $maxAttempts, resultContinuation) {
|
|
2861
|
-
this
|
|
2862
|
-
this
|
|
2863
|
-
this
|
|
2981
|
+
this.h1e_1 = $pacer;
|
|
2982
|
+
this.i1e_1 = $fetch;
|
|
2983
|
+
this.j1e_1 = $maxAttempts;
|
|
2864
2984
|
CoroutineImpl.call(this, resultContinuation);
|
|
2865
2985
|
}
|
|
2866
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
2867
|
-
var tmp = this.
|
|
2868
|
-
tmp.
|
|
2869
|
-
tmp.
|
|
2870
|
-
return tmp.
|
|
2986
|
+
protoOf(pacedTileBytesFetcher$slambda).y1d = function (url, $completion) {
|
|
2987
|
+
var tmp = this.u16(url, $completion);
|
|
2988
|
+
tmp.i7_1 = Unit_instance;
|
|
2989
|
+
tmp.j7_1 = null;
|
|
2990
|
+
return tmp.o7();
|
|
2871
2991
|
};
|
|
2872
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
2873
|
-
return this.
|
|
2992
|
+
protoOf(pacedTileBytesFetcher$slambda).w7 = function (p1, $completion) {
|
|
2993
|
+
return this.y1d((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
2874
2994
|
};
|
|
2875
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
2876
|
-
var suspendResult = this.
|
|
2995
|
+
protoOf(pacedTileBytesFetcher$slambda).o7 = function () {
|
|
2996
|
+
var suspendResult = this.i7_1;
|
|
2877
2997
|
$sm: do
|
|
2878
2998
|
try {
|
|
2879
|
-
var tmp = this.
|
|
2999
|
+
var tmp = this.g7_1;
|
|
2880
3000
|
switch (tmp) {
|
|
2881
3001
|
case 0:
|
|
2882
|
-
this.
|
|
2883
|
-
this.
|
|
2884
|
-
this.
|
|
2885
|
-
this.
|
|
3002
|
+
this.h7_1 = 9;
|
|
3003
|
+
this.n1e_1 = 1;
|
|
3004
|
+
this.l1e_1 = null;
|
|
3005
|
+
this.g7_1 = 1;
|
|
2886
3006
|
continue $sm;
|
|
2887
3007
|
case 1:
|
|
2888
|
-
if (!(this.
|
|
2889
|
-
this.
|
|
3008
|
+
if (!(this.l1e_1 == null)) {
|
|
3009
|
+
this.g7_1 = 8;
|
|
2890
3010
|
continue $sm;
|
|
2891
3011
|
}
|
|
2892
3012
|
|
|
2893
|
-
var tmp0_safe_receiver = this
|
|
3013
|
+
var tmp0_safe_receiver = this.h1e_1;
|
|
2894
3014
|
if (tmp0_safe_receiver == null) {
|
|
2895
|
-
this.
|
|
2896
|
-
this.
|
|
3015
|
+
this.o1e_1 = null;
|
|
3016
|
+
this.g7_1 = 3;
|
|
2897
3017
|
continue $sm;
|
|
2898
3018
|
} else {
|
|
2899
|
-
this.
|
|
2900
|
-
suspendResult = tmp0_safe_receiver.
|
|
3019
|
+
this.g7_1 = 2;
|
|
3020
|
+
suspendResult = tmp0_safe_receiver.u1d(this);
|
|
2901
3021
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2902
3022
|
return suspendResult;
|
|
2903
3023
|
}
|
|
@@ -2906,13 +3026,13 @@
|
|
|
2906
3026
|
|
|
2907
3027
|
case 2:
|
|
2908
3028
|
var tmp_0 = this;
|
|
2909
|
-
tmp_0.
|
|
2910
|
-
this.
|
|
3029
|
+
tmp_0.o1e_1 = Unit_instance;
|
|
3030
|
+
this.g7_1 = 3;
|
|
2911
3031
|
continue $sm;
|
|
2912
3032
|
case 3:
|
|
2913
|
-
this.
|
|
2914
|
-
this.
|
|
2915
|
-
suspendResult = this
|
|
3033
|
+
this.h7_1 = 5;
|
|
3034
|
+
this.g7_1 = 4;
|
|
3035
|
+
suspendResult = this.i1e_1(this.k1e_1, this);
|
|
2916
3036
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2917
3037
|
return suspendResult;
|
|
2918
3038
|
}
|
|
@@ -2920,65 +3040,65 @@
|
|
|
2920
3040
|
continue $sm;
|
|
2921
3041
|
case 4:
|
|
2922
3042
|
var tmp_1 = this;
|
|
2923
|
-
this.
|
|
2924
|
-
tmp_1.
|
|
2925
|
-
this.
|
|
2926
|
-
this.
|
|
3043
|
+
this.l1e_1 = suspendResult;
|
|
3044
|
+
tmp_1.m1e_1 = Unit_instance;
|
|
3045
|
+
this.h7_1 = 9;
|
|
3046
|
+
this.g7_1 = 7;
|
|
2927
3047
|
continue $sm;
|
|
2928
3048
|
case 5:
|
|
2929
|
-
this.
|
|
2930
|
-
var tmp_2 = this.
|
|
3049
|
+
this.h7_1 = 9;
|
|
3050
|
+
var tmp_2 = this.j7_1;
|
|
2931
3051
|
if (tmp_2 instanceof TileFetchException) {
|
|
2932
|
-
var e = this.
|
|
2933
|
-
if (!(e.
|
|
3052
|
+
var e = this.j7_1;
|
|
3053
|
+
if (!(e.d1d_1 === 429) && !(e.d1d_1 === 503) || this.n1e_1 >= this.j1e_1)
|
|
2934
3054
|
throw e;
|
|
2935
|
-
this.
|
|
2936
|
-
var tmp1_elvis_lhs = e.
|
|
2937
|
-
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.
|
|
3055
|
+
this.g7_1 = 6;
|
|
3056
|
+
var tmp1_elvis_lhs = e.e1d_1;
|
|
3057
|
+
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.n1e_1 - 1 | 0) : tmp1_elvis_lhs, new Long(1000, 0)), this);
|
|
2938
3058
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2939
3059
|
return suspendResult;
|
|
2940
3060
|
}
|
|
2941
3061
|
continue $sm;
|
|
2942
3062
|
} else {
|
|
2943
|
-
throw this.
|
|
3063
|
+
throw this.j7_1;
|
|
2944
3064
|
}
|
|
2945
3065
|
|
|
2946
3066
|
case 6:
|
|
2947
3067
|
var tmp_3 = this;
|
|
2948
|
-
var _unary__edvuaz = this.
|
|
2949
|
-
this.
|
|
2950
|
-
tmp_3.
|
|
2951
|
-
this.
|
|
3068
|
+
var _unary__edvuaz = this.n1e_1;
|
|
3069
|
+
this.n1e_1 = _unary__edvuaz + 1 | 0;
|
|
3070
|
+
tmp_3.m1e_1 = _unary__edvuaz;
|
|
3071
|
+
this.g7_1 = 7;
|
|
2952
3072
|
continue $sm;
|
|
2953
3073
|
case 7:
|
|
2954
|
-
this.
|
|
2955
|
-
this.
|
|
3074
|
+
this.h7_1 = 9;
|
|
3075
|
+
this.g7_1 = 1;
|
|
2956
3076
|
continue $sm;
|
|
2957
3077
|
case 8:
|
|
2958
|
-
return this.
|
|
3078
|
+
return this.l1e_1;
|
|
2959
3079
|
case 9:
|
|
2960
|
-
throw this.
|
|
3080
|
+
throw this.j7_1;
|
|
2961
3081
|
}
|
|
2962
3082
|
} catch ($p) {
|
|
2963
3083
|
var e_0 = $p;
|
|
2964
|
-
if (this.
|
|
3084
|
+
if (this.h7_1 === 9) {
|
|
2965
3085
|
throw e_0;
|
|
2966
3086
|
} else {
|
|
2967
|
-
this.
|
|
2968
|
-
this.
|
|
3087
|
+
this.g7_1 = this.h7_1;
|
|
3088
|
+
this.j7_1 = e_0;
|
|
2969
3089
|
}
|
|
2970
3090
|
}
|
|
2971
3091
|
while (true);
|
|
2972
3092
|
};
|
|
2973
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
2974
|
-
var i = new pacedTileBytesFetcher$slambda(this
|
|
2975
|
-
i.
|
|
3093
|
+
protoOf(pacedTileBytesFetcher$slambda).u16 = function (url, completion) {
|
|
3094
|
+
var i = new pacedTileBytesFetcher$slambda(this.h1e_1, this.i1e_1, this.j1e_1, completion);
|
|
3095
|
+
i.k1e_1 = url;
|
|
2976
3096
|
return i;
|
|
2977
3097
|
};
|
|
2978
3098
|
function pacedTileBytesFetcher$slambda_0($pacer, $fetch, $maxAttempts, resultContinuation) {
|
|
2979
3099
|
var i = new pacedTileBytesFetcher$slambda($pacer, $fetch, $maxAttempts, resultContinuation);
|
|
2980
3100
|
return constructCallableReference(function (url, $completion) {
|
|
2981
|
-
return i.
|
|
3101
|
+
return i.y1d(url, $completion);
|
|
2982
3102
|
}, 1);
|
|
2983
3103
|
}
|
|
2984
3104
|
function monotonicMillis$lambda($origin) {
|
|
@@ -2987,17 +3107,17 @@
|
|
|
2987
3107
|
};
|
|
2988
3108
|
}
|
|
2989
3109
|
function TileCoordinates(x, y, z) {
|
|
2990
|
-
this.
|
|
2991
|
-
this.
|
|
2992
|
-
this.
|
|
3110
|
+
this.zz_1 = x;
|
|
3111
|
+
this.a10_1 = y;
|
|
3112
|
+
this.b10_1 = z;
|
|
2993
3113
|
}
|
|
2994
3114
|
protoOf(TileCoordinates).toString = function () {
|
|
2995
|
-
return 'TileCoordinates(x=' + this.
|
|
3115
|
+
return 'TileCoordinates(x=' + this.zz_1 + ', y=' + this.a10_1 + ', z=' + this.b10_1 + ')';
|
|
2996
3116
|
};
|
|
2997
3117
|
protoOf(TileCoordinates).hashCode = function () {
|
|
2998
|
-
var result = this.
|
|
2999
|
-
result = imul(result, 31) + this.
|
|
3000
|
-
result = imul(result, 31) + this.
|
|
3118
|
+
var result = this.zz_1;
|
|
3119
|
+
result = imul(result, 31) + this.a10_1 | 0;
|
|
3120
|
+
result = imul(result, 31) + this.b10_1 | 0;
|
|
3001
3121
|
return result;
|
|
3002
3122
|
};
|
|
3003
3123
|
protoOf(TileCoordinates).equals = function (other) {
|
|
@@ -3005,26 +3125,26 @@
|
|
|
3005
3125
|
return true;
|
|
3006
3126
|
if (!(other instanceof TileCoordinates))
|
|
3007
3127
|
return false;
|
|
3008
|
-
if (!(this.
|
|
3128
|
+
if (!(this.zz_1 === other.zz_1))
|
|
3009
3129
|
return false;
|
|
3010
|
-
if (!(this.
|
|
3130
|
+
if (!(this.a10_1 === other.a10_1))
|
|
3011
3131
|
return false;
|
|
3012
|
-
if (!(this.
|
|
3132
|
+
if (!(this.b10_1 === other.b10_1))
|
|
3013
3133
|
return false;
|
|
3014
3134
|
return true;
|
|
3015
3135
|
};
|
|
3016
3136
|
function Pixel(tile, x, y) {
|
|
3017
|
-
this.
|
|
3018
|
-
this.
|
|
3019
|
-
this.
|
|
3137
|
+
this.p13_1 = tile;
|
|
3138
|
+
this.q13_1 = x;
|
|
3139
|
+
this.r13_1 = y;
|
|
3020
3140
|
}
|
|
3021
3141
|
protoOf(Pixel).toString = function () {
|
|
3022
|
-
return 'Pixel(tile=' + this.
|
|
3142
|
+
return 'Pixel(tile=' + this.p13_1.toString() + ', x=' + this.q13_1 + ', y=' + this.r13_1 + ')';
|
|
3023
3143
|
};
|
|
3024
3144
|
protoOf(Pixel).hashCode = function () {
|
|
3025
|
-
var result = this.
|
|
3026
|
-
result = imul(result, 31) + this.
|
|
3027
|
-
result = imul(result, 31) + this.
|
|
3145
|
+
var result = this.p13_1.hashCode();
|
|
3146
|
+
result = imul(result, 31) + this.q13_1 | 0;
|
|
3147
|
+
result = imul(result, 31) + this.r13_1 | 0;
|
|
3028
3148
|
return result;
|
|
3029
3149
|
};
|
|
3030
3150
|
protoOf(Pixel).equals = function (other) {
|
|
@@ -3032,79 +3152,79 @@
|
|
|
3032
3152
|
return true;
|
|
3033
3153
|
if (!(other instanceof Pixel))
|
|
3034
3154
|
return false;
|
|
3035
|
-
if (!this.
|
|
3155
|
+
if (!this.p13_1.equals(other.p13_1))
|
|
3036
3156
|
return false;
|
|
3037
|
-
if (!(this.
|
|
3157
|
+
if (!(this.q13_1 === other.q13_1))
|
|
3038
3158
|
return false;
|
|
3039
|
-
if (!(this.
|
|
3159
|
+
if (!(this.r13_1 === other.r13_1))
|
|
3040
3160
|
return false;
|
|
3041
3161
|
return true;
|
|
3042
3162
|
};
|
|
3043
|
-
function
|
|
3044
|
-
this.
|
|
3045
|
-
this.
|
|
3046
|
-
this.
|
|
3163
|
+
function TileCoordinatesFloat(x, y, xFloat, yFloat, z) {
|
|
3164
|
+
this.h14_1 = x;
|
|
3165
|
+
this.i14_1 = y;
|
|
3166
|
+
this.j14_1 = xFloat;
|
|
3167
|
+
this.k14_1 = yFloat;
|
|
3168
|
+
this.l14_1 = z;
|
|
3047
3169
|
}
|
|
3048
|
-
protoOf(
|
|
3049
|
-
return '
|
|
3170
|
+
protoOf(TileCoordinatesFloat).toString = function () {
|
|
3171
|
+
return 'TileCoordinatesFloat(x=' + this.h14_1 + ', y=' + this.i14_1 + ', xFloat=' + this.j14_1 + ', yFloat=' + this.k14_1 + ', z=' + this.l14_1 + ')';
|
|
3050
3172
|
};
|
|
3051
|
-
protoOf(
|
|
3052
|
-
var result = this.
|
|
3053
|
-
result = imul(result, 31) +
|
|
3054
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3173
|
+
protoOf(TileCoordinatesFloat).hashCode = function () {
|
|
3174
|
+
var result = this.h14_1;
|
|
3175
|
+
result = imul(result, 31) + this.i14_1 | 0;
|
|
3176
|
+
result = imul(result, 31) + getNumberHashCode(this.j14_1) | 0;
|
|
3177
|
+
result = imul(result, 31) + getNumberHashCode(this.k14_1) | 0;
|
|
3178
|
+
result = imul(result, 31) + this.l14_1 | 0;
|
|
3055
3179
|
return result;
|
|
3056
3180
|
};
|
|
3057
|
-
protoOf(
|
|
3181
|
+
protoOf(TileCoordinatesFloat).equals = function (other) {
|
|
3058
3182
|
if (this === other)
|
|
3059
3183
|
return true;
|
|
3060
|
-
if (!(other instanceof
|
|
3184
|
+
if (!(other instanceof TileCoordinatesFloat))
|
|
3185
|
+
return false;
|
|
3186
|
+
if (!(this.h14_1 === other.h14_1))
|
|
3187
|
+
return false;
|
|
3188
|
+
if (!(this.i14_1 === other.i14_1))
|
|
3061
3189
|
return false;
|
|
3062
|
-
if (!this.
|
|
3190
|
+
if (!equals(this.j14_1, other.j14_1))
|
|
3063
3191
|
return false;
|
|
3064
|
-
if (!equals(this.
|
|
3192
|
+
if (!equals(this.k14_1, other.k14_1))
|
|
3065
3193
|
return false;
|
|
3066
|
-
if (!
|
|
3194
|
+
if (!(this.l14_1 === other.l14_1))
|
|
3067
3195
|
return false;
|
|
3068
3196
|
return true;
|
|
3069
3197
|
};
|
|
3070
|
-
function
|
|
3071
|
-
this.
|
|
3072
|
-
this.
|
|
3073
|
-
this.
|
|
3074
|
-
this.yFloat_1 = yFloat;
|
|
3075
|
-
this.z_1 = z;
|
|
3198
|
+
function PixelFloat(tile, x, y) {
|
|
3199
|
+
this.l13_1 = tile;
|
|
3200
|
+
this.m13_1 = x;
|
|
3201
|
+
this.n13_1 = y;
|
|
3076
3202
|
}
|
|
3077
|
-
protoOf(
|
|
3078
|
-
return '
|
|
3203
|
+
protoOf(PixelFloat).toString = function () {
|
|
3204
|
+
return 'PixelFloat(tile=' + this.l13_1.toString() + ', x=' + this.m13_1 + ', y=' + this.n13_1 + ')';
|
|
3079
3205
|
};
|
|
3080
|
-
protoOf(
|
|
3081
|
-
var result = this.
|
|
3082
|
-
result = imul(result, 31) + this.
|
|
3083
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3084
|
-
result = imul(result, 31) + getNumberHashCode(this.yFloat_1) | 0;
|
|
3085
|
-
result = imul(result, 31) + this.z_1 | 0;
|
|
3206
|
+
protoOf(PixelFloat).hashCode = function () {
|
|
3207
|
+
var result = this.l13_1.hashCode();
|
|
3208
|
+
result = imul(result, 31) + getNumberHashCode(this.m13_1) | 0;
|
|
3209
|
+
result = imul(result, 31) + getNumberHashCode(this.n13_1) | 0;
|
|
3086
3210
|
return result;
|
|
3087
3211
|
};
|
|
3088
|
-
protoOf(
|
|
3212
|
+
protoOf(PixelFloat).equals = function (other) {
|
|
3089
3213
|
if (this === other)
|
|
3090
3214
|
return true;
|
|
3091
|
-
if (!(other instanceof
|
|
3092
|
-
return false;
|
|
3093
|
-
if (!(this.x_1 === other.x_1))
|
|
3094
|
-
return false;
|
|
3095
|
-
if (!(this.y_1 === other.y_1))
|
|
3215
|
+
if (!(other instanceof PixelFloat))
|
|
3096
3216
|
return false;
|
|
3097
|
-
if (!equals(
|
|
3217
|
+
if (!this.l13_1.equals(other.l13_1))
|
|
3098
3218
|
return false;
|
|
3099
|
-
if (!equals(this.
|
|
3219
|
+
if (!equals(this.m13_1, other.m13_1))
|
|
3100
3220
|
return false;
|
|
3101
|
-
if (!(this.
|
|
3221
|
+
if (!equals(this.n13_1, other.n13_1))
|
|
3102
3222
|
return false;
|
|
3103
3223
|
return true;
|
|
3104
3224
|
};
|
|
3105
3225
|
function Companion_1() {
|
|
3106
3226
|
Companion_instance_2 = this;
|
|
3107
|
-
this.
|
|
3227
|
+
this.p1e_1 = new Vector3D(0.0, 0.0, 0.0);
|
|
3108
3228
|
}
|
|
3109
3229
|
var Companion_instance_2;
|
|
3110
3230
|
function Companion_getInstance_1() {
|
|
@@ -3114,49 +3234,49 @@
|
|
|
3114
3234
|
}
|
|
3115
3235
|
function Vector3D(x, y, z) {
|
|
3116
3236
|
Companion_getInstance_1();
|
|
3117
|
-
this.
|
|
3118
|
-
this.
|
|
3119
|
-
this.
|
|
3237
|
+
this.j11_1 = x;
|
|
3238
|
+
this.k11_1 = y;
|
|
3239
|
+
this.l11_1 = z;
|
|
3120
3240
|
}
|
|
3121
|
-
protoOf(Vector3D).
|
|
3122
|
-
var tmp0 = this.
|
|
3241
|
+
protoOf(Vector3D).q1e = function (other) {
|
|
3242
|
+
var tmp0 = this.j11_1 - other.j11_1;
|
|
3123
3243
|
// Inline function 'kotlin.math.hypot' call
|
|
3124
|
-
var y = this.
|
|
3244
|
+
var y = this.k11_1 - other.k11_1;
|
|
3125
3245
|
var tmp0_0 = hypot(tmp0, y);
|
|
3126
3246
|
// Inline function 'kotlin.math.hypot' call
|
|
3127
|
-
var y_0 = this.
|
|
3247
|
+
var y_0 = this.l11_1 - other.l11_1;
|
|
3128
3248
|
return hypot(tmp0_0, y_0);
|
|
3129
3249
|
};
|
|
3130
|
-
protoOf(Vector3D).
|
|
3131
|
-
return new Vector3D(this.
|
|
3250
|
+
protoOf(Vector3D).r1e = function (other) {
|
|
3251
|
+
return new Vector3D(this.j11_1 - other.j11_1, this.k11_1 - other.k11_1, this.l11_1 - other.l11_1);
|
|
3132
3252
|
};
|
|
3133
|
-
protoOf(Vector3D).
|
|
3134
|
-
return new Vector3D(this.
|
|
3253
|
+
protoOf(Vector3D).s1e = function (other) {
|
|
3254
|
+
return new Vector3D(this.j11_1 + other.j11_1, this.k11_1 + other.k11_1, this.l11_1 + other.l11_1);
|
|
3135
3255
|
};
|
|
3136
|
-
protoOf(Vector3D).
|
|
3137
|
-
return new Vector3D(this.
|
|
3256
|
+
protoOf(Vector3D).t1e = function (scalar) {
|
|
3257
|
+
return new Vector3D(this.j11_1 * scalar, this.k11_1 * scalar, this.l11_1 * scalar);
|
|
3138
3258
|
};
|
|
3139
|
-
protoOf(Vector3D).
|
|
3140
|
-
return this.
|
|
3259
|
+
protoOf(Vector3D).u1e = function (other) {
|
|
3260
|
+
return this.j11_1 * other.j11_1 + this.k11_1 * other.k11_1 + this.l11_1 * other.l11_1;
|
|
3141
3261
|
};
|
|
3142
|
-
protoOf(Vector3D).
|
|
3143
|
-
var segmentVector = segmentEnd.
|
|
3144
|
-
var segmentLengthSq = segmentVector.
|
|
3262
|
+
protoOf(Vector3D).m11 = function (segmentStart, segmentEnd) {
|
|
3263
|
+
var segmentVector = segmentEnd.r1e(segmentStart);
|
|
3264
|
+
var segmentLengthSq = segmentVector.u1e(segmentVector);
|
|
3145
3265
|
if (segmentLengthSq === 0.0)
|
|
3146
|
-
return this.
|
|
3147
|
-
var pointVector = this.
|
|
3148
|
-
var projection = pointVector.
|
|
3266
|
+
return this.q1e(segmentStart);
|
|
3267
|
+
var pointVector = this.r1e(segmentStart);
|
|
3268
|
+
var projection = pointVector.u1e(segmentVector) / segmentLengthSq;
|
|
3149
3269
|
var clamped = coerceIn_0(projection, 0.0, 1.0);
|
|
3150
|
-
var closest = segmentStart.
|
|
3151
|
-
return this.
|
|
3270
|
+
var closest = segmentStart.s1e(segmentVector.t1e(clamped));
|
|
3271
|
+
return this.q1e(closest);
|
|
3152
3272
|
};
|
|
3153
3273
|
protoOf(Vector3D).toString = function () {
|
|
3154
|
-
return 'Vector3D(x=' + this.
|
|
3274
|
+
return 'Vector3D(x=' + this.j11_1 + ', y=' + this.k11_1 + ', z=' + this.l11_1 + ')';
|
|
3155
3275
|
};
|
|
3156
3276
|
protoOf(Vector3D).hashCode = function () {
|
|
3157
|
-
var result = getNumberHashCode(this.
|
|
3158
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3159
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3277
|
+
var result = getNumberHashCode(this.j11_1);
|
|
3278
|
+
result = imul(result, 31) + getNumberHashCode(this.k11_1) | 0;
|
|
3279
|
+
result = imul(result, 31) + getNumberHashCode(this.l11_1) | 0;
|
|
3160
3280
|
return result;
|
|
3161
3281
|
};
|
|
3162
3282
|
protoOf(Vector3D).equals = function (other) {
|
|
@@ -3164,11 +3284,11 @@
|
|
|
3164
3284
|
return true;
|
|
3165
3285
|
if (!(other instanceof Vector3D))
|
|
3166
3286
|
return false;
|
|
3167
|
-
if (!equals(this.
|
|
3287
|
+
if (!equals(this.j11_1, other.j11_1))
|
|
3168
3288
|
return false;
|
|
3169
|
-
if (!equals(this.
|
|
3289
|
+
if (!equals(this.k11_1, other.k11_1))
|
|
3170
3290
|
return false;
|
|
3171
|
-
if (!equals(this.
|
|
3291
|
+
if (!equals(this.l11_1, other.l11_1))
|
|
3172
3292
|
return false;
|
|
3173
3293
|
return true;
|
|
3174
3294
|
};
|
|
@@ -3205,25 +3325,25 @@
|
|
|
3205
3325
|
tmp = null;
|
|
3206
3326
|
} else {
|
|
3207
3327
|
// Inline function 'kotlin.let' call
|
|
3208
|
-
tmp = Companion_getInstance().
|
|
3328
|
+
tmp = Companion_getInstance().q17(tmp2_safe_receiver);
|
|
3209
3329
|
}
|
|
3210
3330
|
var tmp3_elvis_lhs = tmp;
|
|
3211
|
-
var source = tmp3_elvis_lhs == null ? Companion_getInstance().
|
|
3212
|
-
var base = source.
|
|
3331
|
+
var source = tmp3_elvis_lhs == null ? Companion_getInstance().l17_1 : tmp3_elvis_lhs;
|
|
3332
|
+
var base = source.w17(configDto == null ? null : configDto.zoomLevel);
|
|
3213
3333
|
var tmp6_elvis_lhs = configDto == null ? null : configDto.cacheSize;
|
|
3214
|
-
var tmp_0 = tmp6_elvis_lhs == null ? base.
|
|
3334
|
+
var tmp_0 = tmp6_elvis_lhs == null ? base.u15_1 : tmp6_elvis_lhs;
|
|
3215
3335
|
var tmp8_elvis_lhs = configDto == null ? null : configDto.tileUrlTemplate;
|
|
3216
|
-
var tmp_1 = tmp8_elvis_lhs == null ? base.
|
|
3336
|
+
var tmp_1 = tmp8_elvis_lhs == null ? base.v15_1 : tmp8_elvis_lhs;
|
|
3217
3337
|
var tmp10_elvis_lhs = configDto == null ? null : configDto.tileSize;
|
|
3218
|
-
var cfg = base.
|
|
3338
|
+
var cfg = base.h17(VOID, tmp_0, tmp_1, tmp10_elvis_lhs == null ? base.w15_1 : tmp10_elvis_lhs);
|
|
3219
3339
|
var primary = ElevationProvider_init_$Create$(cfg);
|
|
3220
|
-
var tmp11_safe_receiver = source.
|
|
3340
|
+
var tmp11_safe_receiver = source.r17();
|
|
3221
3341
|
var tmp_2;
|
|
3222
3342
|
if (tmp11_safe_receiver == null) {
|
|
3223
3343
|
tmp_2 = null;
|
|
3224
3344
|
} else {
|
|
3225
3345
|
// Inline function 'kotlin.let' call
|
|
3226
|
-
tmp_2 = primary.
|
|
3346
|
+
tmp_2 = primary.a16(provider(tmp11_safe_receiver));
|
|
3227
3347
|
}
|
|
3228
3348
|
var tmp12_elvis_lhs = tmp_2;
|
|
3229
3349
|
return tmp12_elvis_lhs == null ? primary : tmp12_elvis_lhs;
|
|
@@ -3231,8 +3351,8 @@
|
|
|
3231
3351
|
function elevationAttribution(provider) {
|
|
3232
3352
|
_init_properties_ElevationJsApi_kt__1yyas4();
|
|
3233
3353
|
var o = {};
|
|
3234
|
-
o.text = provider.
|
|
3235
|
-
o.url = provider.
|
|
3354
|
+
o.text = provider.c16().i17_1;
|
|
3355
|
+
o.url = provider.c16().j17_1;
|
|
3236
3356
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3237
3357
|
return o;
|
|
3238
3358
|
}
|
|
@@ -3275,13 +3395,13 @@
|
|
|
3275
3395
|
while (inductionVariable < last) {
|
|
3276
3396
|
var element = keys[inductionVariable];
|
|
3277
3397
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3278
|
-
if (!allowed.
|
|
3279
|
-
destination.
|
|
3398
|
+
if (!allowed.i1(element)) {
|
|
3399
|
+
destination.k(element);
|
|
3280
3400
|
}
|
|
3281
3401
|
}
|
|
3282
3402
|
var unknown = destination;
|
|
3283
3403
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3284
|
-
if (!unknown.
|
|
3404
|
+
if (!unknown.q()) {
|
|
3285
3405
|
// Inline function 'kotlin.error' call
|
|
3286
3406
|
var message = 'Unknown ' + dtoName + ' key(s): ' + joinToString(unknown) + ' \u2014 expected one of ' + joinToString(sorted(allowed));
|
|
3287
3407
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -3305,31 +3425,31 @@
|
|
|
3305
3425
|
return o;
|
|
3306
3426
|
}
|
|
3307
3427
|
function getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
3308
|
-
this
|
|
3309
|
-
this
|
|
3310
|
-
this
|
|
3311
|
-
this
|
|
3428
|
+
this.d1f_1 = $provider;
|
|
3429
|
+
this.e1f_1 = $latitude;
|
|
3430
|
+
this.f1f_1 = $longitude;
|
|
3431
|
+
this.g1f_1 = $interpolation;
|
|
3312
3432
|
CoroutineImpl.call(this, resultContinuation);
|
|
3313
3433
|
}
|
|
3314
|
-
protoOf(getElevation$slambda).
|
|
3315
|
-
var tmp = this.
|
|
3316
|
-
tmp.
|
|
3317
|
-
tmp.
|
|
3318
|
-
return tmp.
|
|
3434
|
+
protoOf(getElevation$slambda).i1f = function ($this$promise, $completion) {
|
|
3435
|
+
var tmp = this.m18($this$promise, $completion);
|
|
3436
|
+
tmp.i7_1 = Unit_instance;
|
|
3437
|
+
tmp.j7_1 = null;
|
|
3438
|
+
return tmp.o7();
|
|
3319
3439
|
};
|
|
3320
|
-
protoOf(getElevation$slambda).
|
|
3321
|
-
return this.
|
|
3440
|
+
protoOf(getElevation$slambda).w7 = function (p1, $completion) {
|
|
3441
|
+
return this.i1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
3322
3442
|
};
|
|
3323
|
-
protoOf(getElevation$slambda).
|
|
3324
|
-
var suspendResult = this.
|
|
3443
|
+
protoOf(getElevation$slambda).o7 = function () {
|
|
3444
|
+
var suspendResult = this.i7_1;
|
|
3325
3445
|
$sm: do
|
|
3326
3446
|
try {
|
|
3327
|
-
var tmp = this.
|
|
3447
|
+
var tmp = this.g7_1;
|
|
3328
3448
|
switch (tmp) {
|
|
3329
3449
|
case 0:
|
|
3330
|
-
this.
|
|
3331
|
-
this.
|
|
3332
|
-
suspendResult = this
|
|
3450
|
+
this.h7_1 = 2;
|
|
3451
|
+
this.g7_1 = 1;
|
|
3452
|
+
suspendResult = this.d1f_1.i15(this.e1f_1, this.f1f_1, this.g1f_1, this);
|
|
3333
3453
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3334
3454
|
return suspendResult;
|
|
3335
3455
|
}
|
|
@@ -3338,80 +3458,80 @@
|
|
|
3338
3458
|
case 1:
|
|
3339
3459
|
return suspendResult;
|
|
3340
3460
|
case 2:
|
|
3341
|
-
throw this.
|
|
3461
|
+
throw this.j7_1;
|
|
3342
3462
|
}
|
|
3343
3463
|
} catch ($p) {
|
|
3344
3464
|
var e = $p;
|
|
3345
|
-
if (this.
|
|
3465
|
+
if (this.h7_1 === 2) {
|
|
3346
3466
|
throw e;
|
|
3347
3467
|
} else {
|
|
3348
|
-
this.
|
|
3349
|
-
this.
|
|
3468
|
+
this.g7_1 = this.h7_1;
|
|
3469
|
+
this.j7_1 = e;
|
|
3350
3470
|
}
|
|
3351
3471
|
}
|
|
3352
3472
|
while (true);
|
|
3353
3473
|
};
|
|
3354
|
-
protoOf(getElevation$slambda).
|
|
3355
|
-
var i = new getElevation$slambda(this
|
|
3356
|
-
i
|
|
3474
|
+
protoOf(getElevation$slambda).m18 = function ($this$promise, completion) {
|
|
3475
|
+
var i = new getElevation$slambda(this.d1f_1, this.e1f_1, this.f1f_1, this.g1f_1, completion);
|
|
3476
|
+
i.h1f_1 = $this$promise;
|
|
3357
3477
|
return i;
|
|
3358
3478
|
};
|
|
3359
3479
|
function getElevation$slambda_0($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
3360
3480
|
var i = new getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation);
|
|
3361
3481
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
3362
|
-
return i.
|
|
3482
|
+
return i.i1f($this$promise, $completion);
|
|
3363
3483
|
}, 1);
|
|
3364
3484
|
}
|
|
3365
3485
|
function getElevationsAlong$slambda($path, $provider, $options, resultContinuation) {
|
|
3366
|
-
this
|
|
3367
|
-
this
|
|
3368
|
-
this
|
|
3486
|
+
this.r1f_1 = $path;
|
|
3487
|
+
this.s1f_1 = $provider;
|
|
3488
|
+
this.t1f_1 = $options;
|
|
3369
3489
|
CoroutineImpl.call(this, resultContinuation);
|
|
3370
3490
|
}
|
|
3371
|
-
protoOf(getElevationsAlong$slambda).
|
|
3372
|
-
var tmp = this.
|
|
3373
|
-
tmp.
|
|
3374
|
-
tmp.
|
|
3375
|
-
return tmp.
|
|
3491
|
+
protoOf(getElevationsAlong$slambda).v1f = function ($this$promise, $completion) {
|
|
3492
|
+
var tmp = this.m18($this$promise, $completion);
|
|
3493
|
+
tmp.i7_1 = Unit_instance;
|
|
3494
|
+
tmp.j7_1 = null;
|
|
3495
|
+
return tmp.o7();
|
|
3376
3496
|
};
|
|
3377
|
-
protoOf(getElevationsAlong$slambda).
|
|
3378
|
-
return this.
|
|
3497
|
+
protoOf(getElevationsAlong$slambda).w7 = function (p1, $completion) {
|
|
3498
|
+
return this.v1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
3379
3499
|
};
|
|
3380
|
-
protoOf(getElevationsAlong$slambda).
|
|
3381
|
-
var suspendResult = this.
|
|
3500
|
+
protoOf(getElevationsAlong$slambda).o7 = function () {
|
|
3501
|
+
var suspendResult = this.i7_1;
|
|
3382
3502
|
$sm: do
|
|
3383
3503
|
try {
|
|
3384
|
-
var tmp = this.
|
|
3504
|
+
var tmp = this.g7_1;
|
|
3385
3505
|
switch (tmp) {
|
|
3386
3506
|
case 0:
|
|
3387
|
-
this.
|
|
3388
|
-
var this_0 = this
|
|
3507
|
+
this.h7_1 = 2;
|
|
3508
|
+
var this_0 = this.r1f_1;
|
|
3389
3509
|
var destination = ArrayList_init_$Create$_0(this_0.length);
|
|
3390
3510
|
var inductionVariable = 0;
|
|
3391
3511
|
var last = this_0.length;
|
|
3392
3512
|
while (inductionVariable < last) {
|
|
3393
3513
|
var item = this_0[inductionVariable];
|
|
3394
3514
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3395
|
-
destination.
|
|
3515
|
+
destination.k(new LatLon(item.latitude, item.longitude));
|
|
3396
3516
|
}
|
|
3397
3517
|
|
|
3398
3518
|
var coords = destination;
|
|
3399
|
-
this.
|
|
3400
|
-
var tmp0_safe_receiver = this
|
|
3519
|
+
this.g7_1 = 1;
|
|
3520
|
+
var tmp0_safe_receiver = this.t1f_1;
|
|
3401
3521
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.step;
|
|
3402
3522
|
var tmp_0 = tmp1_elvis_lhs == null ? 10.0 : tmp1_elvis_lhs;
|
|
3403
|
-
var tmp2_safe_receiver = this
|
|
3523
|
+
var tmp2_safe_receiver = this.t1f_1;
|
|
3404
3524
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.minDistance;
|
|
3405
3525
|
var tmp_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
3406
|
-
var tmp4_safe_receiver = this
|
|
3526
|
+
var tmp4_safe_receiver = this.t1f_1;
|
|
3407
3527
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.interpolation;
|
|
3408
3528
|
var tmp_2 = tmp5_elvis_lhs == null ? true : tmp5_elvis_lhs;
|
|
3409
|
-
var tmp6_safe_receiver = this
|
|
3529
|
+
var tmp6_safe_receiver = this.t1f_1;
|
|
3410
3530
|
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.smoothingOptions;
|
|
3411
3531
|
var tmp_3 = tmp7_safe_receiver == null ? null : toKotlin(tmp7_safe_receiver);
|
|
3412
|
-
var tmp8_safe_receiver = this
|
|
3532
|
+
var tmp8_safe_receiver = this.t1f_1;
|
|
3413
3533
|
var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.filterOptions;
|
|
3414
|
-
suspendResult = this
|
|
3534
|
+
suspendResult = this.s1f_1.f16(coords, tmp_0, tmp_1, tmp_2, tmp_3, tmp9_safe_receiver == null ? null : toKotlin_0(tmp9_safe_receiver), this);
|
|
3415
3535
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3416
3536
|
return suspendResult;
|
|
3417
3537
|
}
|
|
@@ -3420,39 +3540,39 @@
|
|
|
3420
3540
|
case 1:
|
|
3421
3541
|
var results = suspendResult;
|
|
3422
3542
|
var tmp_4 = 0;
|
|
3423
|
-
var tmp_5 = results.
|
|
3543
|
+
var tmp_5 = results.o();
|
|
3424
3544
|
var tmp_6 = Array(tmp_5);
|
|
3425
3545
|
while (tmp_4 < tmp_5) {
|
|
3426
3546
|
var tmp_7 = tmp_4;
|
|
3427
|
-
var c = results.
|
|
3428
|
-
tmp_6[tmp_7] = coordsEle(c.
|
|
3547
|
+
var c = results.p(tmp_7);
|
|
3548
|
+
tmp_6[tmp_7] = coordsEle(c.gz(), c.hz(), c.e11());
|
|
3429
3549
|
tmp_4 = tmp_4 + 1 | 0;
|
|
3430
3550
|
}
|
|
3431
3551
|
|
|
3432
3552
|
return tmp_6;
|
|
3433
3553
|
case 2:
|
|
3434
|
-
throw this.
|
|
3554
|
+
throw this.j7_1;
|
|
3435
3555
|
}
|
|
3436
3556
|
} catch ($p) {
|
|
3437
3557
|
var e = $p;
|
|
3438
|
-
if (this.
|
|
3558
|
+
if (this.h7_1 === 2) {
|
|
3439
3559
|
throw e;
|
|
3440
3560
|
} else {
|
|
3441
|
-
this.
|
|
3442
|
-
this.
|
|
3561
|
+
this.g7_1 = this.h7_1;
|
|
3562
|
+
this.j7_1 = e;
|
|
3443
3563
|
}
|
|
3444
3564
|
}
|
|
3445
3565
|
while (true);
|
|
3446
3566
|
};
|
|
3447
|
-
protoOf(getElevationsAlong$slambda).
|
|
3448
|
-
var i = new getElevationsAlong$slambda(this
|
|
3449
|
-
i
|
|
3567
|
+
protoOf(getElevationsAlong$slambda).m18 = function ($this$promise, completion) {
|
|
3568
|
+
var i = new getElevationsAlong$slambda(this.r1f_1, this.s1f_1, this.t1f_1, completion);
|
|
3569
|
+
i.u1f_1 = $this$promise;
|
|
3450
3570
|
return i;
|
|
3451
3571
|
};
|
|
3452
3572
|
function getElevationsAlong$slambda_0($path, $provider, $options, resultContinuation) {
|
|
3453
3573
|
var i = new getElevationsAlong$slambda($path, $provider, $options, resultContinuation);
|
|
3454
3574
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
3455
|
-
return i.
|
|
3575
|
+
return i.v1f($this$promise, $completion);
|
|
3456
3576
|
}, 1);
|
|
3457
3577
|
}
|
|
3458
3578
|
var properties_initialized_ElevationJsApi_kt_8pvyh6;
|
|
@@ -3476,45 +3596,45 @@
|
|
|
3476
3596
|
var tmp = KProperty0;
|
|
3477
3597
|
// Inline function 'kotlin.getValue' call
|
|
3478
3598
|
getPropertyCallableRef('nodeWebpDecoderPromise', 0, tmp, _get_nodeWebpDecoderPromise_$ref_s562t(), null);
|
|
3479
|
-
return tmp0.
|
|
3599
|
+
return tmp0.n1();
|
|
3480
3600
|
}
|
|
3481
3601
|
var nodeWebpDecoderPromise$delegate;
|
|
3482
3602
|
function fetchAndDecodeTile(url, $completion) {
|
|
3483
3603
|
var tmp = new $fetchAndDecodeTileCOROUTINE$(url, $completion);
|
|
3484
|
-
tmp.
|
|
3485
|
-
tmp.
|
|
3486
|
-
return tmp.
|
|
3604
|
+
tmp.i7_1 = Unit_instance;
|
|
3605
|
+
tmp.j7_1 = null;
|
|
3606
|
+
return tmp.o7();
|
|
3487
3607
|
}
|
|
3488
3608
|
function decodeTileBytes(bytes, sourceUrl, $completion) {
|
|
3489
3609
|
sourceUrl = sourceUrl === VOID ? '' : sourceUrl;
|
|
3490
3610
|
var tmp = new $decodeTileBytesCOROUTINE$(bytes, sourceUrl, $completion);
|
|
3491
|
-
tmp.
|
|
3492
|
-
tmp.
|
|
3493
|
-
return tmp.
|
|
3611
|
+
tmp.i7_1 = Unit_instance;
|
|
3612
|
+
tmp.j7_1 = null;
|
|
3613
|
+
return tmp.o7();
|
|
3494
3614
|
}
|
|
3495
3615
|
function decodeNode(url, $completion) {
|
|
3496
3616
|
var tmp = new $decodeNodeCOROUTINE$(url, $completion);
|
|
3497
|
-
tmp.
|
|
3498
|
-
tmp.
|
|
3499
|
-
return tmp.
|
|
3617
|
+
tmp.i7_1 = Unit_instance;
|
|
3618
|
+
tmp.j7_1 = null;
|
|
3619
|
+
return tmp.o7();
|
|
3500
3620
|
}
|
|
3501
3621
|
function decodeBrowser(url, $completion) {
|
|
3502
3622
|
var tmp = new $decodeBrowserCOROUTINE$(url, $completion);
|
|
3503
|
-
tmp.
|
|
3504
|
-
tmp.
|
|
3505
|
-
return tmp.
|
|
3623
|
+
tmp.i7_1 = Unit_instance;
|
|
3624
|
+
tmp.j7_1 = null;
|
|
3625
|
+
return tmp.o7();
|
|
3506
3626
|
}
|
|
3507
3627
|
function decodeBytesNode(bytes, sourceUrl, $completion) {
|
|
3508
3628
|
var tmp = new $decodeBytesNodeCOROUTINE$(bytes, sourceUrl, $completion);
|
|
3509
|
-
tmp.
|
|
3510
|
-
tmp.
|
|
3511
|
-
return tmp.
|
|
3629
|
+
tmp.i7_1 = Unit_instance;
|
|
3630
|
+
tmp.j7_1 = null;
|
|
3631
|
+
return tmp.o7();
|
|
3512
3632
|
}
|
|
3513
3633
|
function decodeBlob(blob, sourceUrl, $completion) {
|
|
3514
3634
|
var tmp = new $decodeBlobCOROUTINE$(blob, sourceUrl, $completion);
|
|
3515
|
-
tmp.
|
|
3516
|
-
tmp.
|
|
3517
|
-
return tmp.
|
|
3635
|
+
tmp.i7_1 = Unit_instance;
|
|
3636
|
+
tmp.j7_1 = null;
|
|
3637
|
+
return tmp.o7();
|
|
3518
3638
|
}
|
|
3519
3639
|
function blobOf(bytes) {
|
|
3520
3640
|
_init_properties_TileFetcher_js_kt__7a2f1e();
|
|
@@ -3566,9 +3686,9 @@
|
|
|
3566
3686
|
}
|
|
3567
3687
|
function decodeWebpNode(buffer, $completion) {
|
|
3568
3688
|
var tmp = new $decodeWebpNodeCOROUTINE$(buffer, $completion);
|
|
3569
|
-
tmp.
|
|
3570
|
-
tmp.
|
|
3571
|
-
return tmp.
|
|
3689
|
+
tmp.i7_1 = Unit_instance;
|
|
3690
|
+
tmp.j7_1 = null;
|
|
3691
|
+
return tmp.o7();
|
|
3572
3692
|
}
|
|
3573
3693
|
function fetchUrlBrowser(url) {
|
|
3574
3694
|
_init_properties_TileFetcher_js_kt__7a2f1e();
|
|
@@ -3577,9 +3697,9 @@
|
|
|
3577
3697
|
}
|
|
3578
3698
|
function fetchTileBytes(url, $completion) {
|
|
3579
3699
|
var tmp = new $fetchTileBytesCOROUTINE$(url, $completion);
|
|
3580
|
-
tmp.
|
|
3581
|
-
tmp.
|
|
3582
|
-
return tmp.
|
|
3700
|
+
tmp.i7_1 = Unit_instance;
|
|
3701
|
+
tmp.j7_1 = null;
|
|
3702
|
+
return tmp.o7();
|
|
3583
3703
|
}
|
|
3584
3704
|
function nodeWebpDecoderPromise$delegate$lambda() {
|
|
3585
3705
|
_init_properties_TileFetcher_js_kt__7a2f1e();
|
|
@@ -3606,26 +3726,26 @@
|
|
|
3606
3726
|
}
|
|
3607
3727
|
function $fetchAndDecodeTileCOROUTINE$(url, resultContinuation) {
|
|
3608
3728
|
CoroutineImpl.call(this, resultContinuation);
|
|
3609
|
-
this.
|
|
3729
|
+
this.e1g_1 = url;
|
|
3610
3730
|
}
|
|
3611
|
-
protoOf($fetchAndDecodeTileCOROUTINE$).
|
|
3612
|
-
var suspendResult = this.
|
|
3731
|
+
protoOf($fetchAndDecodeTileCOROUTINE$).o7 = function () {
|
|
3732
|
+
var suspendResult = this.i7_1;
|
|
3613
3733
|
$sm: do
|
|
3614
3734
|
try {
|
|
3615
|
-
var tmp = this.
|
|
3735
|
+
var tmp = this.g7_1;
|
|
3616
3736
|
switch (tmp) {
|
|
3617
3737
|
case 0:
|
|
3618
|
-
this.
|
|
3738
|
+
this.h7_1 = 4;
|
|
3619
3739
|
if (get_isNode()) {
|
|
3620
|
-
this.
|
|
3621
|
-
suspendResult = decodeNode(this.
|
|
3740
|
+
this.g7_1 = 2;
|
|
3741
|
+
suspendResult = decodeNode(this.e1g_1, this);
|
|
3622
3742
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3623
3743
|
return suspendResult;
|
|
3624
3744
|
}
|
|
3625
3745
|
continue $sm;
|
|
3626
3746
|
} else {
|
|
3627
|
-
this.
|
|
3628
|
-
suspendResult = decodeBrowser(this.
|
|
3747
|
+
this.g7_1 = 1;
|
|
3748
|
+
suspendResult = decodeBrowser(this.e1g_1, this);
|
|
3629
3749
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3630
3750
|
return suspendResult;
|
|
3631
3751
|
}
|
|
@@ -3633,52 +3753,52 @@
|
|
|
3633
3753
|
}
|
|
3634
3754
|
|
|
3635
3755
|
case 1:
|
|
3636
|
-
this.
|
|
3637
|
-
this.
|
|
3756
|
+
this.f1g_1 = suspendResult;
|
|
3757
|
+
this.g7_1 = 3;
|
|
3638
3758
|
continue $sm;
|
|
3639
3759
|
case 2:
|
|
3640
|
-
this.
|
|
3641
|
-
this.
|
|
3760
|
+
this.f1g_1 = suspendResult;
|
|
3761
|
+
this.g7_1 = 3;
|
|
3642
3762
|
continue $sm;
|
|
3643
3763
|
case 3:
|
|
3644
|
-
return this.
|
|
3764
|
+
return this.f1g_1;
|
|
3645
3765
|
case 4:
|
|
3646
|
-
throw this.
|
|
3766
|
+
throw this.j7_1;
|
|
3647
3767
|
}
|
|
3648
3768
|
} catch ($p) {
|
|
3649
3769
|
var e = $p;
|
|
3650
|
-
if (this.
|
|
3770
|
+
if (this.h7_1 === 4) {
|
|
3651
3771
|
throw e;
|
|
3652
3772
|
} else {
|
|
3653
|
-
this.
|
|
3654
|
-
this.
|
|
3773
|
+
this.g7_1 = this.h7_1;
|
|
3774
|
+
this.j7_1 = e;
|
|
3655
3775
|
}
|
|
3656
3776
|
}
|
|
3657
3777
|
while (true);
|
|
3658
3778
|
};
|
|
3659
3779
|
function $decodeTileBytesCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
3660
3780
|
CoroutineImpl.call(this, resultContinuation);
|
|
3661
|
-
this.
|
|
3662
|
-
this.
|
|
3781
|
+
this.o1g_1 = bytes;
|
|
3782
|
+
this.p1g_1 = sourceUrl;
|
|
3663
3783
|
}
|
|
3664
|
-
protoOf($decodeTileBytesCOROUTINE$).
|
|
3665
|
-
var suspendResult = this.
|
|
3784
|
+
protoOf($decodeTileBytesCOROUTINE$).o7 = function () {
|
|
3785
|
+
var suspendResult = this.i7_1;
|
|
3666
3786
|
$sm: do
|
|
3667
3787
|
try {
|
|
3668
|
-
var tmp = this.
|
|
3788
|
+
var tmp = this.g7_1;
|
|
3669
3789
|
switch (tmp) {
|
|
3670
3790
|
case 0:
|
|
3671
|
-
this.
|
|
3791
|
+
this.h7_1 = 4;
|
|
3672
3792
|
if (get_isNode()) {
|
|
3673
|
-
this.
|
|
3674
|
-
suspendResult = decodeBytesNode(this.
|
|
3793
|
+
this.g7_1 = 2;
|
|
3794
|
+
suspendResult = decodeBytesNode(this.o1g_1, this.p1g_1, this);
|
|
3675
3795
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3676
3796
|
return suspendResult;
|
|
3677
3797
|
}
|
|
3678
3798
|
continue $sm;
|
|
3679
3799
|
} else {
|
|
3680
|
-
this.
|
|
3681
|
-
suspendResult = decodeBlob(blobOf(this.
|
|
3800
|
+
this.g7_1 = 1;
|
|
3801
|
+
suspendResult = decodeBlob(blobOf(this.o1g_1), this.p1g_1, this);
|
|
3682
3802
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3683
3803
|
return suspendResult;
|
|
3684
3804
|
}
|
|
@@ -3686,43 +3806,43 @@
|
|
|
3686
3806
|
}
|
|
3687
3807
|
|
|
3688
3808
|
case 1:
|
|
3689
|
-
this.
|
|
3690
|
-
this.
|
|
3809
|
+
this.q1g_1 = suspendResult;
|
|
3810
|
+
this.g7_1 = 3;
|
|
3691
3811
|
continue $sm;
|
|
3692
3812
|
case 2:
|
|
3693
|
-
this.
|
|
3694
|
-
this.
|
|
3813
|
+
this.q1g_1 = suspendResult;
|
|
3814
|
+
this.g7_1 = 3;
|
|
3695
3815
|
continue $sm;
|
|
3696
3816
|
case 3:
|
|
3697
|
-
return this.
|
|
3817
|
+
return this.q1g_1;
|
|
3698
3818
|
case 4:
|
|
3699
|
-
throw this.
|
|
3819
|
+
throw this.j7_1;
|
|
3700
3820
|
}
|
|
3701
3821
|
} catch ($p) {
|
|
3702
3822
|
var e = $p;
|
|
3703
|
-
if (this.
|
|
3823
|
+
if (this.h7_1 === 4) {
|
|
3704
3824
|
throw e;
|
|
3705
3825
|
} else {
|
|
3706
|
-
this.
|
|
3707
|
-
this.
|
|
3826
|
+
this.g7_1 = this.h7_1;
|
|
3827
|
+
this.j7_1 = e;
|
|
3708
3828
|
}
|
|
3709
3829
|
}
|
|
3710
3830
|
while (true);
|
|
3711
3831
|
};
|
|
3712
3832
|
function $decodeNodeCOROUTINE$(url, resultContinuation) {
|
|
3713
3833
|
CoroutineImpl.call(this, resultContinuation);
|
|
3714
|
-
this.
|
|
3834
|
+
this.z1g_1 = url;
|
|
3715
3835
|
}
|
|
3716
|
-
protoOf($decodeNodeCOROUTINE$).
|
|
3717
|
-
var suspendResult = this.
|
|
3836
|
+
protoOf($decodeNodeCOROUTINE$).o7 = function () {
|
|
3837
|
+
var suspendResult = this.i7_1;
|
|
3718
3838
|
$sm: do
|
|
3719
3839
|
try {
|
|
3720
|
-
var tmp = this.
|
|
3840
|
+
var tmp = this.g7_1;
|
|
3721
3841
|
switch (tmp) {
|
|
3722
3842
|
case 0:
|
|
3723
|
-
this.
|
|
3724
|
-
this.
|
|
3725
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
3843
|
+
this.h7_1 = 4;
|
|
3844
|
+
this.g7_1 = 1;
|
|
3845
|
+
suspendResult = await_0(fetchUrlNode(this.z1g_1), this);
|
|
3726
3846
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3727
3847
|
return suspendResult;
|
|
3728
3848
|
}
|
|
@@ -3730,8 +3850,8 @@
|
|
|
3730
3850
|
continue $sm;
|
|
3731
3851
|
case 1:
|
|
3732
3852
|
var res = suspendResult;
|
|
3733
|
-
requireOk(res, this.
|
|
3734
|
-
this.
|
|
3853
|
+
requireOk(res, this.z1g_1);
|
|
3854
|
+
this.g7_1 = 2;
|
|
3735
3855
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
3736
3856
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3737
3857
|
return suspendResult;
|
|
@@ -3740,7 +3860,7 @@
|
|
|
3740
3860
|
continue $sm;
|
|
3741
3861
|
case 2:
|
|
3742
3862
|
var ab = suspendResult;
|
|
3743
|
-
this.
|
|
3863
|
+
this.g7_1 = 3;
|
|
3744
3864
|
suspendResult = decodeWebpNode(ab, this);
|
|
3745
3865
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3746
3866
|
return suspendResult;
|
|
@@ -3751,33 +3871,33 @@
|
|
|
3751
3871
|
var ARGUMENT = suspendResult;
|
|
3752
3872
|
return rawTileFromJsquash(ARGUMENT);
|
|
3753
3873
|
case 4:
|
|
3754
|
-
throw this.
|
|
3874
|
+
throw this.j7_1;
|
|
3755
3875
|
}
|
|
3756
3876
|
} catch ($p) {
|
|
3757
3877
|
var e = $p;
|
|
3758
|
-
if (this.
|
|
3878
|
+
if (this.h7_1 === 4) {
|
|
3759
3879
|
throw e;
|
|
3760
3880
|
} else {
|
|
3761
|
-
this.
|
|
3762
|
-
this.
|
|
3881
|
+
this.g7_1 = this.h7_1;
|
|
3882
|
+
this.j7_1 = e;
|
|
3763
3883
|
}
|
|
3764
3884
|
}
|
|
3765
3885
|
while (true);
|
|
3766
3886
|
};
|
|
3767
3887
|
function $decodeBrowserCOROUTINE$(url, resultContinuation) {
|
|
3768
3888
|
CoroutineImpl.call(this, resultContinuation);
|
|
3769
|
-
this.
|
|
3889
|
+
this.i1h_1 = url;
|
|
3770
3890
|
}
|
|
3771
|
-
protoOf($decodeBrowserCOROUTINE$).
|
|
3772
|
-
var suspendResult = this.
|
|
3891
|
+
protoOf($decodeBrowserCOROUTINE$).o7 = function () {
|
|
3892
|
+
var suspendResult = this.i7_1;
|
|
3773
3893
|
$sm: do
|
|
3774
3894
|
try {
|
|
3775
|
-
var tmp = this.
|
|
3895
|
+
var tmp = this.g7_1;
|
|
3776
3896
|
switch (tmp) {
|
|
3777
3897
|
case 0:
|
|
3778
|
-
this.
|
|
3779
|
-
this.
|
|
3780
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
3898
|
+
this.h7_1 = 4;
|
|
3899
|
+
this.g7_1 = 1;
|
|
3900
|
+
suspendResult = await_0(fetchUrlBrowser(this.i1h_1), this);
|
|
3781
3901
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3782
3902
|
return suspendResult;
|
|
3783
3903
|
}
|
|
@@ -3785,8 +3905,8 @@
|
|
|
3785
3905
|
continue $sm;
|
|
3786
3906
|
case 1:
|
|
3787
3907
|
var res = suspendResult;
|
|
3788
|
-
requireOk(res, this.
|
|
3789
|
-
this.
|
|
3908
|
+
requireOk(res, this.i1h_1);
|
|
3909
|
+
this.g7_1 = 2;
|
|
3790
3910
|
suspendResult = await_0(res.blob(), this);
|
|
3791
3911
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3792
3912
|
return suspendResult;
|
|
@@ -3795,8 +3915,8 @@
|
|
|
3795
3915
|
continue $sm;
|
|
3796
3916
|
case 2:
|
|
3797
3917
|
var ARGUMENT = suspendResult;
|
|
3798
|
-
this.
|
|
3799
|
-
suspendResult = decodeBlob(ARGUMENT, this.
|
|
3918
|
+
this.g7_1 = 3;
|
|
3919
|
+
suspendResult = decodeBlob(ARGUMENT, this.i1h_1, this);
|
|
3800
3920
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3801
3921
|
return suspendResult;
|
|
3802
3922
|
}
|
|
@@ -3805,36 +3925,36 @@
|
|
|
3805
3925
|
case 3:
|
|
3806
3926
|
return suspendResult;
|
|
3807
3927
|
case 4:
|
|
3808
|
-
throw this.
|
|
3928
|
+
throw this.j7_1;
|
|
3809
3929
|
}
|
|
3810
3930
|
} catch ($p) {
|
|
3811
3931
|
var e = $p;
|
|
3812
|
-
if (this.
|
|
3932
|
+
if (this.h7_1 === 4) {
|
|
3813
3933
|
throw e;
|
|
3814
3934
|
} else {
|
|
3815
|
-
this.
|
|
3816
|
-
this.
|
|
3935
|
+
this.g7_1 = this.h7_1;
|
|
3936
|
+
this.j7_1 = e;
|
|
3817
3937
|
}
|
|
3818
3938
|
}
|
|
3819
3939
|
while (true);
|
|
3820
3940
|
};
|
|
3821
3941
|
function $decodeBytesNodeCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
3822
3942
|
CoroutineImpl.call(this, resultContinuation);
|
|
3823
|
-
this.
|
|
3824
|
-
this.
|
|
3943
|
+
this.r1h_1 = bytes;
|
|
3944
|
+
this.s1h_1 = sourceUrl;
|
|
3825
3945
|
}
|
|
3826
|
-
protoOf($decodeBytesNodeCOROUTINE$).
|
|
3827
|
-
var suspendResult = this.
|
|
3946
|
+
protoOf($decodeBytesNodeCOROUTINE$).o7 = function () {
|
|
3947
|
+
var suspendResult = this.i7_1;
|
|
3828
3948
|
$sm: do
|
|
3829
3949
|
try {
|
|
3830
|
-
var tmp = this.
|
|
3950
|
+
var tmp = this.g7_1;
|
|
3831
3951
|
switch (tmp) {
|
|
3832
3952
|
case 0:
|
|
3833
|
-
this.
|
|
3834
|
-
var view = this.
|
|
3953
|
+
this.h7_1 = 4;
|
|
3954
|
+
var view = this.r1h_1;
|
|
3835
3955
|
var buffer = view.buffer.slice(view.byteOffset, view.byteOffset + view.byteLength);
|
|
3836
|
-
this.
|
|
3837
|
-
this.
|
|
3956
|
+
this.h7_1 = 2;
|
|
3957
|
+
this.g7_1 = 1;
|
|
3838
3958
|
suspendResult = decodeWebpNode(buffer, this);
|
|
3839
3959
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3840
3960
|
return suspendResult;
|
|
@@ -3842,17 +3962,17 @@
|
|
|
3842
3962
|
|
|
3843
3963
|
continue $sm;
|
|
3844
3964
|
case 1:
|
|
3845
|
-
this.
|
|
3846
|
-
this.
|
|
3847
|
-
this.
|
|
3965
|
+
this.t1h_1 = suspendResult;
|
|
3966
|
+
this.h7_1 = 4;
|
|
3967
|
+
this.g7_1 = 3;
|
|
3848
3968
|
continue $sm;
|
|
3849
3969
|
case 2:
|
|
3850
|
-
this.
|
|
3851
|
-
var tmp_0 = this.
|
|
3970
|
+
this.h7_1 = 4;
|
|
3971
|
+
var tmp_0 = this.j7_1;
|
|
3852
3972
|
if (tmp_0 instanceof Error) {
|
|
3853
|
-
var e = this.
|
|
3973
|
+
var e = this.j7_1;
|
|
3854
3974
|
var tmp_1 = this;
|
|
3855
|
-
var this_0 = this.
|
|
3975
|
+
var this_0 = this.s1h_1;
|
|
3856
3976
|
var tmp_2;
|
|
3857
3977
|
if (charSequenceLength(this_0) === 0) {
|
|
3858
3978
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -3862,60 +3982,60 @@
|
|
|
3862
3982
|
var message = 'Cannot decode tile at ' + tmp_2 + ': ' + e.message;
|
|
3863
3983
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3864
3984
|
} else {
|
|
3865
|
-
throw this.
|
|
3985
|
+
throw this.j7_1;
|
|
3866
3986
|
}
|
|
3867
3987
|
|
|
3868
3988
|
case 3:
|
|
3869
|
-
this.
|
|
3870
|
-
var image = this.
|
|
3989
|
+
this.h7_1 = 4;
|
|
3990
|
+
var image = this.t1h_1;
|
|
3871
3991
|
return rawTileFromJsquash(image);
|
|
3872
3992
|
case 4:
|
|
3873
|
-
throw this.
|
|
3993
|
+
throw this.j7_1;
|
|
3874
3994
|
}
|
|
3875
3995
|
} catch ($p) {
|
|
3876
3996
|
var e_0 = $p;
|
|
3877
|
-
if (this.
|
|
3997
|
+
if (this.h7_1 === 4) {
|
|
3878
3998
|
throw e_0;
|
|
3879
3999
|
} else {
|
|
3880
|
-
this.
|
|
3881
|
-
this.
|
|
4000
|
+
this.g7_1 = this.h7_1;
|
|
4001
|
+
this.j7_1 = e_0;
|
|
3882
4002
|
}
|
|
3883
4003
|
}
|
|
3884
4004
|
while (true);
|
|
3885
4005
|
};
|
|
3886
4006
|
function $decodeBlobCOROUTINE$(blob, sourceUrl, resultContinuation) {
|
|
3887
4007
|
CoroutineImpl.call(this, resultContinuation);
|
|
3888
|
-
this.
|
|
3889
|
-
this.
|
|
4008
|
+
this.c1i_1 = blob;
|
|
4009
|
+
this.d1i_1 = sourceUrl;
|
|
3890
4010
|
}
|
|
3891
|
-
protoOf($decodeBlobCOROUTINE$).
|
|
3892
|
-
var suspendResult = this.
|
|
4011
|
+
protoOf($decodeBlobCOROUTINE$).o7 = function () {
|
|
4012
|
+
var suspendResult = this.i7_1;
|
|
3893
4013
|
$sm: do
|
|
3894
4014
|
try {
|
|
3895
|
-
var tmp = this.
|
|
4015
|
+
var tmp = this.g7_1;
|
|
3896
4016
|
switch (tmp) {
|
|
3897
4017
|
case 0:
|
|
3898
|
-
this.
|
|
3899
|
-
this.
|
|
3900
|
-
this.
|
|
3901
|
-
suspendResult = await_0(window.createImageBitmap(this.
|
|
4018
|
+
this.h7_1 = 3;
|
|
4019
|
+
this.h7_1 = 2;
|
|
4020
|
+
this.g7_1 = 1;
|
|
4021
|
+
suspendResult = await_0(window.createImageBitmap(this.c1i_1), this);
|
|
3902
4022
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3903
4023
|
return suspendResult;
|
|
3904
4024
|
}
|
|
3905
4025
|
|
|
3906
4026
|
continue $sm;
|
|
3907
4027
|
case 1:
|
|
3908
|
-
this.
|
|
3909
|
-
this.
|
|
3910
|
-
this.
|
|
4028
|
+
this.e1i_1 = suspendResult;
|
|
4029
|
+
this.h7_1 = 3;
|
|
4030
|
+
this.g7_1 = 4;
|
|
3911
4031
|
continue $sm;
|
|
3912
4032
|
case 2:
|
|
3913
|
-
this.
|
|
3914
|
-
var tmp_0 = this.
|
|
4033
|
+
this.h7_1 = 3;
|
|
4034
|
+
var tmp_0 = this.j7_1;
|
|
3915
4035
|
if (tmp_0 instanceof Error) {
|
|
3916
|
-
var e = this.
|
|
4036
|
+
var e = this.j7_1;
|
|
3917
4037
|
var tmp_1 = this;
|
|
3918
|
-
var this_0 = this.
|
|
4038
|
+
var this_0 = this.d1i_1;
|
|
3919
4039
|
var tmp_2;
|
|
3920
4040
|
if (charSequenceLength(this_0) === 0) {
|
|
3921
4041
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -3925,14 +4045,14 @@
|
|
|
3925
4045
|
var message = 'Cannot decode tile at ' + tmp_2 + ': ' + e.message;
|
|
3926
4046
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3927
4047
|
} else {
|
|
3928
|
-
throw this.
|
|
4048
|
+
throw this.j7_1;
|
|
3929
4049
|
}
|
|
3930
4050
|
|
|
3931
4051
|
case 3:
|
|
3932
|
-
throw this.
|
|
4052
|
+
throw this.j7_1;
|
|
3933
4053
|
case 4:
|
|
3934
|
-
this.
|
|
3935
|
-
var bitmap = this.
|
|
4054
|
+
this.h7_1 = 3;
|
|
4055
|
+
var bitmap = this.e1i_1;
|
|
3936
4056
|
l$ret$3: do {
|
|
3937
4057
|
var tmp$ret$0;
|
|
3938
4058
|
l$ret$1: do {
|
|
@@ -3969,28 +4089,28 @@
|
|
|
3969
4089
|
}
|
|
3970
4090
|
} catch ($p_0) {
|
|
3971
4091
|
var e_0 = $p_0;
|
|
3972
|
-
if (this.
|
|
4092
|
+
if (this.h7_1 === 3) {
|
|
3973
4093
|
throw e_0;
|
|
3974
4094
|
} else {
|
|
3975
|
-
this.
|
|
3976
|
-
this.
|
|
4095
|
+
this.g7_1 = this.h7_1;
|
|
4096
|
+
this.j7_1 = e_0;
|
|
3977
4097
|
}
|
|
3978
4098
|
}
|
|
3979
4099
|
while (true);
|
|
3980
4100
|
};
|
|
3981
4101
|
function $decodeWebpNodeCOROUTINE$(buffer, resultContinuation) {
|
|
3982
4102
|
CoroutineImpl.call(this, resultContinuation);
|
|
3983
|
-
this.
|
|
4103
|
+
this.n1i_1 = buffer;
|
|
3984
4104
|
}
|
|
3985
|
-
protoOf($decodeWebpNodeCOROUTINE$).
|
|
3986
|
-
var suspendResult = this.
|
|
4105
|
+
protoOf($decodeWebpNodeCOROUTINE$).o7 = function () {
|
|
4106
|
+
var suspendResult = this.i7_1;
|
|
3987
4107
|
$sm: do
|
|
3988
4108
|
try {
|
|
3989
|
-
var tmp = this.
|
|
4109
|
+
var tmp = this.g7_1;
|
|
3990
4110
|
switch (tmp) {
|
|
3991
4111
|
case 0:
|
|
3992
|
-
this.
|
|
3993
|
-
this.
|
|
4112
|
+
this.h7_1 = 3;
|
|
4113
|
+
this.g7_1 = 1;
|
|
3994
4114
|
suspendResult = await_0(get_nodeWebpDecoderPromise(), this);
|
|
3995
4115
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3996
4116
|
return suspendResult;
|
|
@@ -3999,8 +4119,8 @@
|
|
|
3999
4119
|
continue $sm;
|
|
4000
4120
|
case 1:
|
|
4001
4121
|
var decode = suspendResult;
|
|
4002
|
-
var resultPromise = decode(this.
|
|
4003
|
-
this.
|
|
4122
|
+
var resultPromise = decode(this.n1i_1);
|
|
4123
|
+
this.g7_1 = 2;
|
|
4004
4124
|
suspendResult = await_0(resultPromise, this);
|
|
4005
4125
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4006
4126
|
return suspendResult;
|
|
@@ -4010,41 +4130,41 @@
|
|
|
4010
4130
|
case 2:
|
|
4011
4131
|
return suspendResult;
|
|
4012
4132
|
case 3:
|
|
4013
|
-
throw this.
|
|
4133
|
+
throw this.j7_1;
|
|
4014
4134
|
}
|
|
4015
4135
|
} catch ($p) {
|
|
4016
4136
|
var e = $p;
|
|
4017
|
-
if (this.
|
|
4137
|
+
if (this.h7_1 === 3) {
|
|
4018
4138
|
throw e;
|
|
4019
4139
|
} else {
|
|
4020
|
-
this.
|
|
4021
|
-
this.
|
|
4140
|
+
this.g7_1 = this.h7_1;
|
|
4141
|
+
this.j7_1 = e;
|
|
4022
4142
|
}
|
|
4023
4143
|
}
|
|
4024
4144
|
while (true);
|
|
4025
4145
|
};
|
|
4026
4146
|
function $fetchTileBytesCOROUTINE$(url, resultContinuation) {
|
|
4027
4147
|
CoroutineImpl.call(this, resultContinuation);
|
|
4028
|
-
this.
|
|
4148
|
+
this.w1i_1 = url;
|
|
4029
4149
|
}
|
|
4030
|
-
protoOf($fetchTileBytesCOROUTINE$).
|
|
4031
|
-
var suspendResult = this.
|
|
4150
|
+
protoOf($fetchTileBytesCOROUTINE$).o7 = function () {
|
|
4151
|
+
var suspendResult = this.i7_1;
|
|
4032
4152
|
$sm: do
|
|
4033
4153
|
try {
|
|
4034
|
-
var tmp = this.
|
|
4154
|
+
var tmp = this.g7_1;
|
|
4035
4155
|
switch (tmp) {
|
|
4036
4156
|
case 0:
|
|
4037
|
-
this.
|
|
4157
|
+
this.h7_1 = 5;
|
|
4038
4158
|
if (get_isNode()) {
|
|
4039
|
-
this.
|
|
4040
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
4159
|
+
this.g7_1 = 2;
|
|
4160
|
+
suspendResult = await_0(fetchUrlNode(this.w1i_1), this);
|
|
4041
4161
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4042
4162
|
return suspendResult;
|
|
4043
4163
|
}
|
|
4044
4164
|
continue $sm;
|
|
4045
4165
|
} else {
|
|
4046
|
-
this.
|
|
4047
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
4166
|
+
this.g7_1 = 1;
|
|
4167
|
+
suspendResult = await_0(fetchUrlBrowser(this.w1i_1), this);
|
|
4048
4168
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4049
4169
|
return suspendResult;
|
|
4050
4170
|
}
|
|
@@ -4052,17 +4172,17 @@
|
|
|
4052
4172
|
}
|
|
4053
4173
|
|
|
4054
4174
|
case 1:
|
|
4055
|
-
this.
|
|
4056
|
-
this.
|
|
4175
|
+
this.x1i_1 = suspendResult;
|
|
4176
|
+
this.g7_1 = 3;
|
|
4057
4177
|
continue $sm;
|
|
4058
4178
|
case 2:
|
|
4059
|
-
this.
|
|
4060
|
-
this.
|
|
4179
|
+
this.x1i_1 = suspendResult;
|
|
4180
|
+
this.g7_1 = 3;
|
|
4061
4181
|
continue $sm;
|
|
4062
4182
|
case 3:
|
|
4063
|
-
var res = this.
|
|
4064
|
-
requireOk(res, this.
|
|
4065
|
-
this.
|
|
4183
|
+
var res = this.x1i_1;
|
|
4184
|
+
requireOk(res, this.w1i_1);
|
|
4185
|
+
this.g7_1 = 4;
|
|
4066
4186
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
4067
4187
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4068
4188
|
return suspendResult;
|
|
@@ -4073,15 +4193,15 @@
|
|
|
4073
4193
|
var ab = suspendResult;
|
|
4074
4194
|
return new Int8Array(ab);
|
|
4075
4195
|
case 5:
|
|
4076
|
-
throw this.
|
|
4196
|
+
throw this.j7_1;
|
|
4077
4197
|
}
|
|
4078
4198
|
} catch ($p) {
|
|
4079
4199
|
var e = $p;
|
|
4080
|
-
if (this.
|
|
4200
|
+
if (this.h7_1 === 5) {
|
|
4081
4201
|
throw e;
|
|
4082
4202
|
} else {
|
|
4083
|
-
this.
|
|
4084
|
-
this.
|
|
4203
|
+
this.g7_1 = this.h7_1;
|
|
4204
|
+
this.j7_1 = e;
|
|
4085
4205
|
}
|
|
4086
4206
|
}
|
|
4087
4207
|
while (true);
|
|
@@ -4098,13 +4218,13 @@
|
|
|
4098
4218
|
function fetchAndDecodeTile$ref_1() {
|
|
4099
4219
|
var i = new fetchAndDecodeTile$ref();
|
|
4100
4220
|
return constructCallableReference(function (p0, $completion) {
|
|
4101
|
-
return i.
|
|
4221
|
+
return i.j16(p0, $completion);
|
|
4102
4222
|
}, 1, 1, 2, 'fetchAndDecodeTile');
|
|
4103
4223
|
}
|
|
4104
4224
|
function fetchTileBytes$ref_0() {
|
|
4105
4225
|
var i = new fetchTileBytes$ref();
|
|
4106
4226
|
return constructCallableReference(function (p0, $completion) {
|
|
4107
|
-
return i.
|
|
4227
|
+
return i.y1d(p0, $completion);
|
|
4108
4228
|
}, 1, 1, 4, 'fetchTileBytes');
|
|
4109
4229
|
}
|
|
4110
4230
|
//region block: init
|