@glandais/vcyclist-engine 6.5.1 → 6.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fit-kotlin-sdk.js +5519 -5519
- package/kotlin-kotlin-stdlib.js +2370 -2008
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +1244 -1244
- 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 +1718 -1387
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +1785 -1785
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +260 -260
- package/vcyclist-fit.js.map +1 -1
- package/vcyclist-gpx.js +1643 -1643
- package/vcyclist-gpx.js.map +1 -1
- package/xmlutil-core.js +2582 -2582
- package/xmlutil-core.js.map +1 -1
package/vcyclist-fit.js
CHANGED
|
@@ -16,70 +16,70 @@
|
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
18
|
var imul = Math.imul;
|
|
19
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
20
|
-
var Enum = kotlin_kotlin.$_$.
|
|
21
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
22
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
19
|
+
var Unit_instance = kotlin_kotlin.$_$.l1;
|
|
20
|
+
var Enum = kotlin_kotlin.$_$.lb;
|
|
21
|
+
var protoOf = kotlin_kotlin.$_$.m8;
|
|
22
|
+
var initMetadataForClass = kotlin_kotlin.$_$.x7;
|
|
23
23
|
var VOID = kotlin_kotlin.$_$.a;
|
|
24
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
25
|
-
var toString = kotlin_kotlin.$_$.
|
|
26
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
27
|
-
var Collection = kotlin_kotlin.$_$.
|
|
28
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
29
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
30
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
31
|
-
var equals = kotlin_kotlin.$_$.
|
|
32
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
24
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.y7;
|
|
25
|
+
var toString = kotlin_kotlin.$_$.p8;
|
|
26
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.g2;
|
|
27
|
+
var Collection = kotlin_kotlin.$_$.u2;
|
|
28
|
+
var isInterface = kotlin_kotlin.$_$.f8;
|
|
29
|
+
var getStringHashCode = kotlin_kotlin.$_$.v7;
|
|
30
|
+
var hashCode = kotlin_kotlin.$_$.w7;
|
|
31
|
+
var equals = kotlin_kotlin.$_$.q7;
|
|
32
|
+
var getNumberHashCode = kotlin_kotlin.$_$.t7;
|
|
33
33
|
var FileIdMesg_init_$Create$ = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.n;
|
|
34
34
|
var File_COURSE_getInstance = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.f;
|
|
35
35
|
var Manufacturer_DYNASTREAM_getInstance = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.g;
|
|
36
36
|
var _UShort___init__impl__jigrne = kotlin_kotlin.$_$.w;
|
|
37
37
|
var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.s;
|
|
38
|
-
var toShort = kotlin_kotlin.$_$.
|
|
38
|
+
var toShort = kotlin_kotlin.$_$.o8;
|
|
39
39
|
var CourseMesg_init_$Create$ = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.l;
|
|
40
40
|
var LapMesg_init_$Create$ = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.o;
|
|
41
41
|
var RecordMesg_init_$Create$ = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.p;
|
|
42
|
-
var toByte = kotlin_kotlin.$_$.
|
|
42
|
+
var toByte = kotlin_kotlin.$_$.n8;
|
|
43
43
|
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.p;
|
|
44
|
-
var roundToInt = kotlin_kotlin.$_$.
|
|
44
|
+
var roundToInt = kotlin_kotlin.$_$.r8;
|
|
45
45
|
var EventMesg_init_$Create$ = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.m;
|
|
46
46
|
var Event_TIMER_getInstance = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.b;
|
|
47
47
|
var Sport_CYCLING_getInstance = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.h;
|
|
48
48
|
var Sport_RUNNING_getInstance = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.j;
|
|
49
49
|
var Sport_GENERIC_getInstance = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.i;
|
|
50
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
51
|
-
var Companion_getInstance = kotlin_kotlin.$_$.
|
|
52
|
-
var roundToLong = kotlin_kotlin.$_$.
|
|
50
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.kc;
|
|
51
|
+
var Companion_getInstance = kotlin_kotlin.$_$.g1;
|
|
52
|
+
var roundToLong = kotlin_kotlin.$_$.s8;
|
|
53
53
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.z;
|
|
54
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
54
|
+
var toDuration = kotlin_kotlin.$_$.ib;
|
|
55
55
|
var Endianness_LITTLE_getInstance = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.k;
|
|
56
56
|
var FitEncoder = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.a;
|
|
57
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
58
|
-
var first = kotlin_kotlin.$_$.
|
|
57
|
+
var get_lastIndex = kotlin_kotlin.$_$.e4;
|
|
58
|
+
var first = kotlin_kotlin.$_$.w3;
|
|
59
59
|
var EventType_START_getInstance = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.c;
|
|
60
|
-
var last = kotlin_kotlin.$_$.
|
|
60
|
+
var last = kotlin_kotlin.$_$.g4;
|
|
61
61
|
var EventType_STOP_getInstance = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.e;
|
|
62
62
|
var EventType_STOP_ALL_getInstance = kotlin_io_github_glandais_fit_kotlin_sdk.$_$.d;
|
|
63
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
64
|
-
var Long = kotlin_kotlin.$_$.
|
|
65
|
-
var add = kotlin_kotlin.$_$.
|
|
66
|
-
var modulo = kotlin_kotlin.$_$.
|
|
67
|
-
var bitwiseXor = kotlin_kotlin.$_$.
|
|
68
|
-
var negate = kotlin_kotlin.$_$.
|
|
69
|
-
var bitwiseOr = kotlin_kotlin.$_$.
|
|
70
|
-
var bitwiseAnd = kotlin_kotlin.$_$.
|
|
71
|
-
var shiftRight = kotlin_kotlin.$_$.
|
|
72
|
-
var subtract = kotlin_kotlin.$_$.
|
|
73
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
74
|
-
var listOf = kotlin_kotlin.$_$.
|
|
75
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
76
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
77
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
78
|
-
var isNaN_0 = kotlin_kotlin.$_$.
|
|
79
|
-
var until = kotlin_kotlin.$_$.
|
|
80
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
81
|
-
var maxOrNull = kotlin_kotlin.$_$.
|
|
82
|
-
var minOrNull = kotlin_kotlin.$_$.
|
|
63
|
+
var initMetadataForObject = kotlin_kotlin.$_$.d8;
|
|
64
|
+
var Long = kotlin_kotlin.$_$.qb;
|
|
65
|
+
var add = kotlin_kotlin.$_$.k6;
|
|
66
|
+
var modulo = kotlin_kotlin.$_$.v6;
|
|
67
|
+
var bitwiseXor = kotlin_kotlin.$_$.n6;
|
|
68
|
+
var negate = kotlin_kotlin.$_$.x6;
|
|
69
|
+
var bitwiseOr = kotlin_kotlin.$_$.m6;
|
|
70
|
+
var bitwiseAnd = kotlin_kotlin.$_$.l6;
|
|
71
|
+
var shiftRight = kotlin_kotlin.$_$.b7;
|
|
72
|
+
var subtract = kotlin_kotlin.$_$.c7;
|
|
73
|
+
var convertToInt = kotlin_kotlin.$_$.q6;
|
|
74
|
+
var listOf = kotlin_kotlin.$_$.j4;
|
|
75
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.g3;
|
|
76
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
77
|
+
var numberToLong = kotlin_kotlin.$_$.y6;
|
|
78
|
+
var isNaN_0 = kotlin_kotlin.$_$.ic;
|
|
79
|
+
var until = kotlin_kotlin.$_$.f9;
|
|
80
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.o1;
|
|
81
|
+
var maxOrNull = kotlin_kotlin.$_$.n4;
|
|
82
|
+
var minOrNull = kotlin_kotlin.$_$.p4;
|
|
83
83
|
//endregion
|
|
84
84
|
//region block: pre-declaration
|
|
85
85
|
initMetadataForClass(FitSport, 'FitSport', VOID, Enum);
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
var FitSport_GENERIC_instance;
|
|
106
106
|
function FitSport(name, ordinal, value) {
|
|
107
107
|
Enum.call(this, name, ordinal);
|
|
108
|
-
this.
|
|
108
|
+
this.f4z_1 = value;
|
|
109
109
|
}
|
|
110
110
|
function Companion() {
|
|
111
111
|
}
|
|
@@ -115,23 +115,23 @@
|
|
|
115
115
|
}
|
|
116
116
|
function FitCourse(name, startTime, segments, sport) {
|
|
117
117
|
sport = sport === VOID ? FitSport_CYCLING_getInstance() : sport;
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
120
|
-
this.
|
|
121
|
-
this.
|
|
118
|
+
this.g4z_1 = name;
|
|
119
|
+
this.h4z_1 = startTime;
|
|
120
|
+
this.i4z_1 = segments;
|
|
121
|
+
this.j4z_1 = sport;
|
|
122
122
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
123
123
|
// Inline function 'kotlin.require' call
|
|
124
|
-
if (!!this.
|
|
124
|
+
if (!!this.i4z_1.r()) {
|
|
125
125
|
var message = 'A FIT course needs at least one segment';
|
|
126
126
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
127
127
|
}
|
|
128
|
-
var tmp0 = this.
|
|
128
|
+
var tmp0 = this.i4z_1;
|
|
129
129
|
var tmp$ret$3;
|
|
130
130
|
$l$block_0: {
|
|
131
131
|
// Inline function 'kotlin.collections.all' call
|
|
132
132
|
var tmp;
|
|
133
133
|
if (isInterface(tmp0, Collection)) {
|
|
134
|
-
tmp = tmp0.
|
|
134
|
+
tmp = tmp0.r();
|
|
135
135
|
} else {
|
|
136
136
|
tmp = false;
|
|
137
137
|
}
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
while (_iterator__ex2g4s.m()) {
|
|
144
144
|
var element = _iterator__ex2g4s.n();
|
|
145
145
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
146
|
-
if (!!element.
|
|
146
|
+
if (!!element.k4z_1.r()) {
|
|
147
147
|
tmp$ret$3 = false;
|
|
148
148
|
break $l$block_0;
|
|
149
149
|
}
|
|
@@ -157,13 +157,13 @@
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
protoOf(FitCourse).toString = function () {
|
|
160
|
-
return 'FitCourse(name=' + this.
|
|
160
|
+
return 'FitCourse(name=' + this.g4z_1 + ', startTime=' + this.h4z_1.toString() + ', segments=' + toString(this.i4z_1) + ', sport=' + this.j4z_1.toString() + ')';
|
|
161
161
|
};
|
|
162
162
|
protoOf(FitCourse).hashCode = function () {
|
|
163
|
-
var result = getStringHashCode(this.
|
|
164
|
-
result = imul(result, 31) + this.
|
|
165
|
-
result = imul(result, 31) + hashCode(this.
|
|
166
|
-
result = imul(result, 31) + this.
|
|
163
|
+
var result = getStringHashCode(this.g4z_1);
|
|
164
|
+
result = imul(result, 31) + this.h4z_1.hashCode() | 0;
|
|
165
|
+
result = imul(result, 31) + hashCode(this.i4z_1) | 0;
|
|
166
|
+
result = imul(result, 31) + this.j4z_1.hashCode() | 0;
|
|
167
167
|
return result;
|
|
168
168
|
};
|
|
169
169
|
protoOf(FitCourse).equals = function (other) {
|
|
@@ -171,26 +171,26 @@
|
|
|
171
171
|
return true;
|
|
172
172
|
if (!(other instanceof FitCourse))
|
|
173
173
|
return false;
|
|
174
|
-
if (!(this.
|
|
174
|
+
if (!(this.g4z_1 === other.g4z_1))
|
|
175
175
|
return false;
|
|
176
|
-
if (!this.
|
|
176
|
+
if (!this.h4z_1.equals(other.h4z_1))
|
|
177
177
|
return false;
|
|
178
|
-
if (!equals(this.
|
|
178
|
+
if (!equals(this.i4z_1, other.i4z_1))
|
|
179
179
|
return false;
|
|
180
|
-
if (!this.
|
|
180
|
+
if (!this.j4z_1.equals(other.j4z_1))
|
|
181
181
|
return false;
|
|
182
182
|
return true;
|
|
183
183
|
};
|
|
184
184
|
function FitSegment(records, lap) {
|
|
185
|
-
this.
|
|
186
|
-
this.
|
|
185
|
+
this.k4z_1 = records;
|
|
186
|
+
this.l4z_1 = lap;
|
|
187
187
|
}
|
|
188
188
|
protoOf(FitSegment).toString = function () {
|
|
189
|
-
return 'FitSegment(records=' + toString(this.
|
|
189
|
+
return 'FitSegment(records=' + toString(this.k4z_1) + ', lap=' + this.l4z_1.toString() + ')';
|
|
190
190
|
};
|
|
191
191
|
protoOf(FitSegment).hashCode = function () {
|
|
192
|
-
var result = hashCode(this.
|
|
193
|
-
result = imul(result, 31) + this.
|
|
192
|
+
var result = hashCode(this.k4z_1);
|
|
193
|
+
result = imul(result, 31) + this.l4z_1.hashCode() | 0;
|
|
194
194
|
return result;
|
|
195
195
|
};
|
|
196
196
|
protoOf(FitSegment).equals = function (other) {
|
|
@@ -198,9 +198,9 @@
|
|
|
198
198
|
return true;
|
|
199
199
|
if (!(other instanceof FitSegment))
|
|
200
200
|
return false;
|
|
201
|
-
if (!equals(this.
|
|
201
|
+
if (!equals(this.k4z_1, other.k4z_1))
|
|
202
202
|
return false;
|
|
203
|
-
if (!this.
|
|
203
|
+
if (!this.l4z_1.equals(other.l4z_1))
|
|
204
204
|
return false;
|
|
205
205
|
return true;
|
|
206
206
|
};
|
|
@@ -211,31 +211,31 @@
|
|
|
211
211
|
heartRate = heartRate === VOID ? null : heartRate;
|
|
212
212
|
cadence = cadence === VOID ? null : cadence;
|
|
213
213
|
temperatureC = temperatureC === VOID ? null : temperatureC;
|
|
214
|
-
this.
|
|
215
|
-
this.
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
219
|
-
this.
|
|
220
|
-
this.
|
|
221
|
-
this.
|
|
222
|
-
this.
|
|
223
|
-
this.
|
|
214
|
+
this.m4z_1 = timestamp;
|
|
215
|
+
this.n4z_1 = latitudeDeg;
|
|
216
|
+
this.o4z_1 = longitudeDeg;
|
|
217
|
+
this.p4z_1 = altitudeM;
|
|
218
|
+
this.q4z_1 = distanceM;
|
|
219
|
+
this.r4z_1 = speedMs;
|
|
220
|
+
this.s4z_1 = powerW;
|
|
221
|
+
this.t4z_1 = heartRate;
|
|
222
|
+
this.u4z_1 = cadence;
|
|
223
|
+
this.v4z_1 = temperatureC;
|
|
224
224
|
}
|
|
225
225
|
protoOf(FitRecord).toString = function () {
|
|
226
|
-
return 'FitRecord(timestamp=' + this.
|
|
226
|
+
return 'FitRecord(timestamp=' + this.m4z_1.toString() + ', latitudeDeg=' + this.n4z_1 + ', longitudeDeg=' + this.o4z_1 + ', altitudeM=' + this.p4z_1 + ', distanceM=' + this.q4z_1 + ', speedMs=' + this.r4z_1 + ', powerW=' + this.s4z_1 + ', heartRate=' + this.t4z_1 + ', cadence=' + this.u4z_1 + ', temperatureC=' + this.v4z_1 + ')';
|
|
227
227
|
};
|
|
228
228
|
protoOf(FitRecord).hashCode = function () {
|
|
229
|
-
var result = this.
|
|
230
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
231
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
232
|
-
result = imul(result, 31) + (this.
|
|
233
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
234
|
-
result = imul(result, 31) + (this.
|
|
235
|
-
result = imul(result, 31) + (this.
|
|
236
|
-
result = imul(result, 31) + (this.
|
|
237
|
-
result = imul(result, 31) + (this.
|
|
238
|
-
result = imul(result, 31) + (this.
|
|
229
|
+
var result = this.m4z_1.hashCode();
|
|
230
|
+
result = imul(result, 31) + getNumberHashCode(this.n4z_1) | 0;
|
|
231
|
+
result = imul(result, 31) + getNumberHashCode(this.o4z_1) | 0;
|
|
232
|
+
result = imul(result, 31) + (this.p4z_1 == null ? 0 : getNumberHashCode(this.p4z_1)) | 0;
|
|
233
|
+
result = imul(result, 31) + getNumberHashCode(this.q4z_1) | 0;
|
|
234
|
+
result = imul(result, 31) + (this.r4z_1 == null ? 0 : getNumberHashCode(this.r4z_1)) | 0;
|
|
235
|
+
result = imul(result, 31) + (this.s4z_1 == null ? 0 : this.s4z_1) | 0;
|
|
236
|
+
result = imul(result, 31) + (this.t4z_1 == null ? 0 : this.t4z_1) | 0;
|
|
237
|
+
result = imul(result, 31) + (this.u4z_1 == null ? 0 : this.u4z_1) | 0;
|
|
238
|
+
result = imul(result, 31) + (this.v4z_1 == null ? 0 : getNumberHashCode(this.v4z_1)) | 0;
|
|
239
239
|
return result;
|
|
240
240
|
};
|
|
241
241
|
protoOf(FitRecord).equals = function (other) {
|
|
@@ -243,25 +243,25 @@
|
|
|
243
243
|
return true;
|
|
244
244
|
if (!(other instanceof FitRecord))
|
|
245
245
|
return false;
|
|
246
|
-
if (!this.
|
|
246
|
+
if (!this.m4z_1.equals(other.m4z_1))
|
|
247
247
|
return false;
|
|
248
|
-
if (!equals(this.
|
|
248
|
+
if (!equals(this.n4z_1, other.n4z_1))
|
|
249
249
|
return false;
|
|
250
|
-
if (!equals(this.
|
|
250
|
+
if (!equals(this.o4z_1, other.o4z_1))
|
|
251
251
|
return false;
|
|
252
|
-
if (!equals(this.
|
|
252
|
+
if (!equals(this.p4z_1, other.p4z_1))
|
|
253
253
|
return false;
|
|
254
|
-
if (!equals(this.
|
|
254
|
+
if (!equals(this.q4z_1, other.q4z_1))
|
|
255
255
|
return false;
|
|
256
|
-
if (!equals(this.
|
|
256
|
+
if (!equals(this.r4z_1, other.r4z_1))
|
|
257
257
|
return false;
|
|
258
|
-
if (!(this.
|
|
258
|
+
if (!(this.s4z_1 == other.s4z_1))
|
|
259
259
|
return false;
|
|
260
|
-
if (!(this.
|
|
260
|
+
if (!(this.t4z_1 == other.t4z_1))
|
|
261
261
|
return false;
|
|
262
|
-
if (!(this.
|
|
262
|
+
if (!(this.u4z_1 == other.u4z_1))
|
|
263
263
|
return false;
|
|
264
|
-
if (!equals(this.
|
|
264
|
+
if (!equals(this.v4z_1, other.v4z_1))
|
|
265
265
|
return false;
|
|
266
266
|
return true;
|
|
267
267
|
};
|
|
@@ -273,37 +273,37 @@
|
|
|
273
273
|
startLongitudeDeg = startLongitudeDeg === VOID ? null : startLongitudeDeg;
|
|
274
274
|
endLatitudeDeg = endLatitudeDeg === VOID ? null : endLatitudeDeg;
|
|
275
275
|
endLongitudeDeg = endLongitudeDeg === VOID ? null : endLongitudeDeg;
|
|
276
|
-
this.
|
|
277
|
-
this.
|
|
278
|
-
this.
|
|
279
|
-
this.
|
|
280
|
-
this.
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
283
|
-
this.
|
|
284
|
-
this.
|
|
285
|
-
this.
|
|
286
|
-
this.
|
|
287
|
-
this.
|
|
288
|
-
this.
|
|
276
|
+
this.w4z_1 = startTime;
|
|
277
|
+
this.x4z_1 = totalElapsedTimeS;
|
|
278
|
+
this.y4z_1 = totalTimerTimeS;
|
|
279
|
+
this.z4z_1 = totalDistanceM;
|
|
280
|
+
this.a50_1 = totalAscentM;
|
|
281
|
+
this.b50_1 = totalDescentM;
|
|
282
|
+
this.c50_1 = maxSpeedMs;
|
|
283
|
+
this.d50_1 = minAltitudeM;
|
|
284
|
+
this.e50_1 = maxAltitudeM;
|
|
285
|
+
this.f50_1 = startLatitudeDeg;
|
|
286
|
+
this.g50_1 = startLongitudeDeg;
|
|
287
|
+
this.h50_1 = endLatitudeDeg;
|
|
288
|
+
this.i50_1 = endLongitudeDeg;
|
|
289
289
|
}
|
|
290
290
|
protoOf(FitLap).toString = function () {
|
|
291
|
-
return 'FitLap(startTime=' + this.
|
|
291
|
+
return 'FitLap(startTime=' + this.w4z_1.toString() + ', totalElapsedTimeS=' + this.x4z_1 + ', totalTimerTimeS=' + this.y4z_1 + ', totalDistanceM=' + this.z4z_1 + ', totalAscentM=' + this.a50_1 + ', totalDescentM=' + this.b50_1 + ', maxSpeedMs=' + this.c50_1 + ', minAltitudeM=' + this.d50_1 + ', maxAltitudeM=' + this.e50_1 + ', startLatitudeDeg=' + this.f50_1 + ', startLongitudeDeg=' + this.g50_1 + ', endLatitudeDeg=' + this.h50_1 + ', endLongitudeDeg=' + this.i50_1 + ')';
|
|
292
292
|
};
|
|
293
293
|
protoOf(FitLap).hashCode = function () {
|
|
294
|
-
var result = this.
|
|
295
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
296
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
297
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
298
|
-
result = imul(result, 31) + this.
|
|
299
|
-
result = imul(result, 31) + this.
|
|
300
|
-
result = imul(result, 31) + (this.
|
|
301
|
-
result = imul(result, 31) + (this.
|
|
302
|
-
result = imul(result, 31) + (this.
|
|
303
|
-
result = imul(result, 31) + (this.
|
|
304
|
-
result = imul(result, 31) + (this.
|
|
305
|
-
result = imul(result, 31) + (this.
|
|
306
|
-
result = imul(result, 31) + (this.
|
|
294
|
+
var result = this.w4z_1.hashCode();
|
|
295
|
+
result = imul(result, 31) + getNumberHashCode(this.x4z_1) | 0;
|
|
296
|
+
result = imul(result, 31) + getNumberHashCode(this.y4z_1) | 0;
|
|
297
|
+
result = imul(result, 31) + getNumberHashCode(this.z4z_1) | 0;
|
|
298
|
+
result = imul(result, 31) + this.a50_1 | 0;
|
|
299
|
+
result = imul(result, 31) + this.b50_1 | 0;
|
|
300
|
+
result = imul(result, 31) + (this.c50_1 == null ? 0 : getNumberHashCode(this.c50_1)) | 0;
|
|
301
|
+
result = imul(result, 31) + (this.d50_1 == null ? 0 : getNumberHashCode(this.d50_1)) | 0;
|
|
302
|
+
result = imul(result, 31) + (this.e50_1 == null ? 0 : getNumberHashCode(this.e50_1)) | 0;
|
|
303
|
+
result = imul(result, 31) + (this.f50_1 == null ? 0 : getNumberHashCode(this.f50_1)) | 0;
|
|
304
|
+
result = imul(result, 31) + (this.g50_1 == null ? 0 : getNumberHashCode(this.g50_1)) | 0;
|
|
305
|
+
result = imul(result, 31) + (this.h50_1 == null ? 0 : getNumberHashCode(this.h50_1)) | 0;
|
|
306
|
+
result = imul(result, 31) + (this.i50_1 == null ? 0 : getNumberHashCode(this.i50_1)) | 0;
|
|
307
307
|
return result;
|
|
308
308
|
};
|
|
309
309
|
protoOf(FitLap).equals = function (other) {
|
|
@@ -311,31 +311,31 @@
|
|
|
311
311
|
return true;
|
|
312
312
|
if (!(other instanceof FitLap))
|
|
313
313
|
return false;
|
|
314
|
-
if (!this.
|
|
314
|
+
if (!this.w4z_1.equals(other.w4z_1))
|
|
315
315
|
return false;
|
|
316
|
-
if (!equals(this.
|
|
316
|
+
if (!equals(this.x4z_1, other.x4z_1))
|
|
317
317
|
return false;
|
|
318
|
-
if (!equals(this.
|
|
318
|
+
if (!equals(this.y4z_1, other.y4z_1))
|
|
319
319
|
return false;
|
|
320
|
-
if (!equals(this.
|
|
320
|
+
if (!equals(this.z4z_1, other.z4z_1))
|
|
321
321
|
return false;
|
|
322
|
-
if (!(this.
|
|
322
|
+
if (!(this.a50_1 === other.a50_1))
|
|
323
323
|
return false;
|
|
324
|
-
if (!(this.
|
|
324
|
+
if (!(this.b50_1 === other.b50_1))
|
|
325
325
|
return false;
|
|
326
|
-
if (!equals(this.
|
|
326
|
+
if (!equals(this.c50_1, other.c50_1))
|
|
327
327
|
return false;
|
|
328
|
-
if (!equals(this.
|
|
328
|
+
if (!equals(this.d50_1, other.d50_1))
|
|
329
329
|
return false;
|
|
330
|
-
if (!equals(this.
|
|
330
|
+
if (!equals(this.e50_1, other.e50_1))
|
|
331
331
|
return false;
|
|
332
|
-
if (!equals(this.
|
|
332
|
+
if (!equals(this.f50_1, other.f50_1))
|
|
333
333
|
return false;
|
|
334
|
-
if (!equals(this.
|
|
334
|
+
if (!equals(this.g50_1, other.g50_1))
|
|
335
335
|
return false;
|
|
336
|
-
if (!equals(this.
|
|
336
|
+
if (!equals(this.h50_1, other.h50_1))
|
|
337
337
|
return false;
|
|
338
|
-
if (!equals(this.
|
|
338
|
+
if (!equals(this.i50_1, other.i50_1))
|
|
339
339
|
return false;
|
|
340
340
|
return true;
|
|
341
341
|
};
|
|
@@ -346,163 +346,163 @@
|
|
|
346
346
|
function fileIdMesg($this, course) {
|
|
347
347
|
// Inline function 'kotlin.apply' call
|
|
348
348
|
var this_0 = FileIdMesg_init_$Create$();
|
|
349
|
-
this_0.
|
|
350
|
-
this_0.
|
|
351
|
-
this_0.
|
|
352
|
-
this_0.
|
|
349
|
+
this_0.v4o(File_COURSE_getInstance());
|
|
350
|
+
this_0.z4o(Manufacturer_DYNASTREAM_getInstance());
|
|
351
|
+
this_0.d4p(_UShort___init__impl__jigrne(12345));
|
|
352
|
+
this_0.e4p(_UInt___init__impl__l7qpdl(12345));
|
|
353
353
|
// Inline function 'kotlin.toUShort' call
|
|
354
|
-
var this_1 = getStringHashCode(course.
|
|
354
|
+
var this_1 = getStringHashCode(course.g4z_1) & 65535;
|
|
355
355
|
var tmp$ret$2 = _UShort___init__impl__jigrne(toShort(this_1));
|
|
356
|
-
this_0.
|
|
357
|
-
this_0.
|
|
356
|
+
this_0.g4p(tmp$ret$2);
|
|
357
|
+
this_0.f4p(course.h4z_1);
|
|
358
358
|
return this_0;
|
|
359
359
|
}
|
|
360
360
|
function courseMesg($this, course) {
|
|
361
361
|
// Inline function 'kotlin.apply' call
|
|
362
362
|
var this_0 = CourseMesg_init_$Create$();
|
|
363
|
-
this_0.
|
|
364
|
-
this_0.
|
|
363
|
+
this_0.g2v(course.g4z_1);
|
|
364
|
+
this_0.c2v(toSdkSport(FitEncoder_getInstance(), course.j4z_1));
|
|
365
365
|
return this_0;
|
|
366
366
|
}
|
|
367
367
|
function lapMesg($this, lap) {
|
|
368
368
|
// Inline function 'kotlin.apply' call
|
|
369
369
|
var this_0 = LapMesg_init_$Create$();
|
|
370
|
-
this_0.
|
|
371
|
-
this_0.
|
|
372
|
-
this_0.
|
|
373
|
-
this_0.
|
|
374
|
-
this_0.
|
|
370
|
+
this_0.a4x(lap.w4z_1);
|
|
371
|
+
this_0.g36(lap.w4z_1.hh(secondsAsDuration(FitEncoder_getInstance(), lap.x4z_1)));
|
|
372
|
+
this_0.f4x(lap.x4z_1);
|
|
373
|
+
this_0.g4x(lap.y4z_1);
|
|
374
|
+
this_0.h4x(lap.z4z_1);
|
|
375
375
|
// Inline function 'kotlin.toUShort' call
|
|
376
|
-
var this_1 = lap.
|
|
376
|
+
var this_1 = lap.a50_1;
|
|
377
377
|
var tmp$ret$2 = _UShort___init__impl__jigrne(toShort(this_1));
|
|
378
|
-
this_0.
|
|
378
|
+
this_0.k4x(tmp$ret$2);
|
|
379
379
|
// Inline function 'kotlin.toUShort' call
|
|
380
|
-
var this_2 = lap.
|
|
380
|
+
var this_2 = lap.b50_1;
|
|
381
381
|
var tmp$ret$3 = _UShort___init__impl__jigrne(toShort(this_2));
|
|
382
|
-
this_0.
|
|
383
|
-
if (lap.
|
|
384
|
-
this_0.
|
|
382
|
+
this_0.l4x(tmp$ret$3);
|
|
383
|
+
if (lap.y4z_1 > 0.0) {
|
|
384
|
+
this_0.i4x(lap.z4z_1 / lap.y4z_1);
|
|
385
385
|
}
|
|
386
|
-
var tmp0_safe_receiver = lap.
|
|
386
|
+
var tmp0_safe_receiver = lap.c50_1;
|
|
387
387
|
if (tmp0_safe_receiver == null)
|
|
388
388
|
null;
|
|
389
389
|
else {
|
|
390
390
|
// Inline function 'kotlin.let' call
|
|
391
|
-
this_0.
|
|
391
|
+
this_0.j4x(tmp0_safe_receiver);
|
|
392
392
|
}
|
|
393
|
-
var tmp1_safe_receiver = lap.
|
|
393
|
+
var tmp1_safe_receiver = lap.d50_1;
|
|
394
394
|
if (tmp1_safe_receiver == null)
|
|
395
395
|
null;
|
|
396
396
|
else {
|
|
397
397
|
// Inline function 'kotlin.let' call
|
|
398
|
-
this_0.
|
|
398
|
+
this_0.n4x(tmp1_safe_receiver);
|
|
399
399
|
}
|
|
400
|
-
var tmp2_safe_receiver = lap.
|
|
400
|
+
var tmp2_safe_receiver = lap.e50_1;
|
|
401
401
|
if (tmp2_safe_receiver == null)
|
|
402
402
|
null;
|
|
403
403
|
else {
|
|
404
404
|
// Inline function 'kotlin.let' call
|
|
405
|
-
this_0.
|
|
405
|
+
this_0.m4x(tmp2_safe_receiver);
|
|
406
406
|
}
|
|
407
|
-
var tmp3_safe_receiver = lap.
|
|
407
|
+
var tmp3_safe_receiver = lap.f50_1;
|
|
408
408
|
if (tmp3_safe_receiver == null)
|
|
409
409
|
null;
|
|
410
410
|
else {
|
|
411
411
|
// Inline function 'kotlin.let' call
|
|
412
|
-
this_0.
|
|
412
|
+
this_0.b4x(FitUnits_getInstance().r50(tmp3_safe_receiver));
|
|
413
413
|
}
|
|
414
|
-
var tmp4_safe_receiver = lap.
|
|
414
|
+
var tmp4_safe_receiver = lap.g50_1;
|
|
415
415
|
if (tmp4_safe_receiver == null)
|
|
416
416
|
null;
|
|
417
417
|
else {
|
|
418
418
|
// Inline function 'kotlin.let' call
|
|
419
|
-
this_0.
|
|
419
|
+
this_0.c4x(FitUnits_getInstance().r50(tmp4_safe_receiver));
|
|
420
420
|
}
|
|
421
|
-
var tmp5_safe_receiver = lap.
|
|
421
|
+
var tmp5_safe_receiver = lap.h50_1;
|
|
422
422
|
if (tmp5_safe_receiver == null)
|
|
423
423
|
null;
|
|
424
424
|
else {
|
|
425
425
|
// Inline function 'kotlin.let' call
|
|
426
|
-
this_0.
|
|
426
|
+
this_0.d4x(FitUnits_getInstance().r50(tmp5_safe_receiver));
|
|
427
427
|
}
|
|
428
|
-
var tmp6_safe_receiver = lap.
|
|
428
|
+
var tmp6_safe_receiver = lap.i50_1;
|
|
429
429
|
if (tmp6_safe_receiver == null)
|
|
430
430
|
null;
|
|
431
431
|
else {
|
|
432
432
|
// Inline function 'kotlin.let' call
|
|
433
|
-
this_0.
|
|
433
|
+
this_0.e4x(FitUnits_getInstance().r50(tmp6_safe_receiver));
|
|
434
434
|
}
|
|
435
435
|
return this_0;
|
|
436
436
|
}
|
|
437
437
|
function recordMesg($this, record) {
|
|
438
438
|
// Inline function 'kotlin.apply' call
|
|
439
439
|
var this_0 = RecordMesg_init_$Create$();
|
|
440
|
-
this_0.
|
|
441
|
-
this_0.
|
|
442
|
-
this_0.
|
|
443
|
-
this_0.
|
|
444
|
-
var tmp0_safe_receiver = record.
|
|
440
|
+
this_0.g36(record.m4z_1);
|
|
441
|
+
this_0.s4x(FitUnits_getInstance().r50(record.n4z_1));
|
|
442
|
+
this_0.t4x(FitUnits_getInstance().r50(record.o4z_1));
|
|
443
|
+
this_0.w4x(record.q4z_1);
|
|
444
|
+
var tmp0_safe_receiver = record.p4z_1;
|
|
445
445
|
if (tmp0_safe_receiver == null)
|
|
446
446
|
null;
|
|
447
447
|
else {
|
|
448
448
|
// Inline function 'kotlin.let' call
|
|
449
|
-
this_0.
|
|
449
|
+
this_0.u4x(tmp0_safe_receiver);
|
|
450
450
|
}
|
|
451
|
-
var tmp1_safe_receiver = record.
|
|
451
|
+
var tmp1_safe_receiver = record.r4z_1;
|
|
452
452
|
if (tmp1_safe_receiver == null)
|
|
453
453
|
null;
|
|
454
454
|
else {
|
|
455
455
|
// Inline function 'kotlin.let' call
|
|
456
|
-
this_0.
|
|
456
|
+
this_0.x4x(tmp1_safe_receiver);
|
|
457
457
|
}
|
|
458
|
-
var tmp2_safe_receiver = record.
|
|
458
|
+
var tmp2_safe_receiver = record.s4z_1;
|
|
459
459
|
if (tmp2_safe_receiver == null)
|
|
460
460
|
null;
|
|
461
461
|
else {
|
|
462
462
|
// Inline function 'kotlin.let' call
|
|
463
463
|
// Inline function 'kotlin.toUShort' call
|
|
464
464
|
var tmp$ret$8 = _UShort___init__impl__jigrne(toShort(tmp2_safe_receiver));
|
|
465
|
-
this_0.
|
|
465
|
+
this_0.y4x(tmp$ret$8);
|
|
466
466
|
}
|
|
467
|
-
var tmp3_safe_receiver = record.
|
|
467
|
+
var tmp3_safe_receiver = record.t4z_1;
|
|
468
468
|
if (tmp3_safe_receiver == null)
|
|
469
469
|
null;
|
|
470
470
|
else {
|
|
471
471
|
// Inline function 'kotlin.let' call
|
|
472
472
|
// Inline function 'kotlin.toUByte' call
|
|
473
473
|
var tmp$ret$11 = _UByte___init__impl__g9hnc4(toByte(tmp3_safe_receiver));
|
|
474
|
-
this_0.
|
|
474
|
+
this_0.t4w(tmp$ret$11);
|
|
475
475
|
}
|
|
476
|
-
var tmp4_safe_receiver = record.
|
|
476
|
+
var tmp4_safe_receiver = record.u4z_1;
|
|
477
477
|
if (tmp4_safe_receiver == null)
|
|
478
478
|
null;
|
|
479
479
|
else {
|
|
480
480
|
// Inline function 'kotlin.let' call
|
|
481
481
|
// Inline function 'kotlin.toUByte' call
|
|
482
482
|
var tmp$ret$14 = _UByte___init__impl__g9hnc4(toByte(tmp4_safe_receiver));
|
|
483
|
-
this_0.
|
|
483
|
+
this_0.v4x(tmp$ret$14);
|
|
484
484
|
}
|
|
485
|
-
var tmp5_safe_receiver = record.
|
|
485
|
+
var tmp5_safe_receiver = record.v4z_1;
|
|
486
486
|
if (tmp5_safe_receiver == null)
|
|
487
487
|
null;
|
|
488
488
|
else {
|
|
489
489
|
// Inline function 'kotlin.let' call
|
|
490
|
-
this_0.
|
|
490
|
+
this_0.z4x(toByte(roundToInt(tmp5_safe_receiver)));
|
|
491
491
|
}
|
|
492
492
|
return this_0;
|
|
493
493
|
}
|
|
494
494
|
function timerEvent($this, at, type) {
|
|
495
495
|
// Inline function 'kotlin.apply' call
|
|
496
496
|
var this_0 = EventMesg_init_$Create$();
|
|
497
|
-
this_0.
|
|
498
|
-
this_0.
|
|
499
|
-
this_0.
|
|
500
|
-
this_0.
|
|
497
|
+
this_0.k36(Event_TIMER_getInstance());
|
|
498
|
+
this_0.o36(type);
|
|
499
|
+
this_0.s36(_UByte___init__impl__g9hnc4(0));
|
|
500
|
+
this_0.g36(at);
|
|
501
501
|
return this_0;
|
|
502
502
|
}
|
|
503
503
|
function toSdkSport($this, $receiver) {
|
|
504
504
|
var tmp;
|
|
505
|
-
switch ($receiver.
|
|
505
|
+
switch ($receiver.y1_1) {
|
|
506
506
|
case 0:
|
|
507
507
|
tmp = Sport_CYCLING_getInstance();
|
|
508
508
|
break;
|
|
@@ -526,37 +526,37 @@
|
|
|
526
526
|
}
|
|
527
527
|
function FitEncoder_0() {
|
|
528
528
|
FitEncoder_instance = this;
|
|
529
|
-
this.
|
|
530
|
-
this.
|
|
529
|
+
this.s50_1 = _UShort___init__impl__jigrne(12345);
|
|
530
|
+
this.t50_1 = _UInt___init__impl__l7qpdl(12345);
|
|
531
531
|
}
|
|
532
|
-
protoOf(FitEncoder_0).
|
|
532
|
+
protoOf(FitEncoder_0).u50 = function (course) {
|
|
533
533
|
// Inline function 'com.garmin.fit.encodeFit' call
|
|
534
534
|
var endianness = Endianness_LITTLE_getInstance();
|
|
535
535
|
// Inline function 'kotlin.apply' call
|
|
536
536
|
var this_0 = new FitEncoder(VOID, VOID, endianness);
|
|
537
|
-
this_0.
|
|
538
|
-
this_0.
|
|
539
|
-
var _iterator__ex2g4s = course.
|
|
537
|
+
this_0.x4v(fileIdMesg(FitEncoder_getInstance(), course));
|
|
538
|
+
this_0.x4v(courseMesg(FitEncoder_getInstance(), course));
|
|
539
|
+
var _iterator__ex2g4s = course.i4z_1.l();
|
|
540
540
|
while (_iterator__ex2g4s.m()) {
|
|
541
541
|
var segment = _iterator__ex2g4s.n();
|
|
542
|
-
this_0.
|
|
542
|
+
this_0.x4v(lapMesg(FitEncoder_getInstance(), segment.l4z_1));
|
|
543
543
|
}
|
|
544
|
-
var iterator = course.
|
|
544
|
+
var iterator = course.i4z_1.l();
|
|
545
545
|
var index = 0;
|
|
546
546
|
while (iterator.m()) {
|
|
547
547
|
var index_0 = index;
|
|
548
548
|
index = index + 1 | 0;
|
|
549
549
|
var segment_0 = iterator.n();
|
|
550
|
-
var isLast = index_0 === get_lastIndex(course.
|
|
551
|
-
this_0.
|
|
552
|
-
var _iterator__ex2g4s_0 = segment_0.
|
|
550
|
+
var isLast = index_0 === get_lastIndex(course.i4z_1);
|
|
551
|
+
this_0.x4v(timerEvent(FitEncoder_getInstance(), first(segment_0.k4z_1).m4z_1, EventType_START_getInstance()));
|
|
552
|
+
var _iterator__ex2g4s_0 = segment_0.k4z_1.l();
|
|
553
553
|
while (_iterator__ex2g4s_0.m()) {
|
|
554
554
|
var record = _iterator__ex2g4s_0.n();
|
|
555
|
-
this_0.
|
|
555
|
+
this_0.x4v(recordMesg(FitEncoder_getInstance(), record));
|
|
556
556
|
}
|
|
557
|
-
this_0.
|
|
557
|
+
this_0.x4v(timerEvent(FitEncoder_getInstance(), last(segment_0.k4z_1).m4z_1, isLast ? EventType_STOP_ALL_getInstance() : EventType_STOP_getInstance()));
|
|
558
558
|
}
|
|
559
|
-
return this_0.
|
|
559
|
+
return this_0.z4v();
|
|
560
560
|
};
|
|
561
561
|
var FitEncoder_instance;
|
|
562
562
|
function FitEncoder_getInstance() {
|
|
@@ -566,16 +566,16 @@
|
|
|
566
566
|
}
|
|
567
567
|
function FitUnits() {
|
|
568
568
|
FitUnits_instance = this;
|
|
569
|
-
this.
|
|
570
|
-
this.
|
|
571
|
-
this.
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
569
|
+
this.j50_1 = new Long(-294592512, 146);
|
|
570
|
+
this.k50_1 = new Long(631065600, 0);
|
|
571
|
+
this.l50_1 = 1.1930464711111112E7;
|
|
572
|
+
this.m50_1 = 5.0;
|
|
573
|
+
this.n50_1 = 500.0;
|
|
574
|
+
this.o50_1 = 100.0;
|
|
575
|
+
this.p50_1 = 1000.0;
|
|
576
|
+
this.q50_1 = new Long(-2147483648, 0);
|
|
577
577
|
}
|
|
578
|
-
protoOf(FitUnits).
|
|
578
|
+
protoOf(FitUnits).r50 = function (degrees) {
|
|
579
579
|
var raw = roundToLong(degrees * 1.1930464711111112E7);
|
|
580
580
|
var tmp0 = add(raw, new Long(-2147483648, 0));
|
|
581
581
|
// Inline function 'kotlin.mod' call
|
|
@@ -593,12 +593,12 @@
|
|
|
593
593
|
}
|
|
594
594
|
function toFitBytes(_this__u8e3s4, name, startTime, sport) {
|
|
595
595
|
sport = sport === VOID ? FitSport_CYCLING_getInstance() : sport;
|
|
596
|
-
return FitEncoder_getInstance().
|
|
596
|
+
return FitEncoder_getInstance().u50(toFitCourse(_this__u8e3s4, name, startTime, sport));
|
|
597
597
|
}
|
|
598
598
|
function toFitBytes_0(_this__u8e3s4, name, startTime, sport, interPathGap) {
|
|
599
599
|
sport = sport === VOID ? FitSport_CYCLING_getInstance() : sport;
|
|
600
|
-
interPathGap = interPathGap === VOID ? Companion_getInstance().
|
|
601
|
-
return FitEncoder_getInstance().
|
|
600
|
+
interPathGap = interPathGap === VOID ? Companion_getInstance().dc_1 : interPathGap;
|
|
601
|
+
return FitEncoder_getInstance().u50(toFitCourse_0(_this__u8e3s4, name, startTime, sport, interPathGap));
|
|
602
602
|
}
|
|
603
603
|
function toFitCourse(_this__u8e3s4, name, startTime, sport) {
|
|
604
604
|
sport = sport === VOID ? FitSport_CYCLING_getInstance() : sport;
|
|
@@ -606,10 +606,10 @@
|
|
|
606
606
|
}
|
|
607
607
|
function toFitCourse_0(_this__u8e3s4, name, startTime, sport, interPathGap) {
|
|
608
608
|
sport = sport === VOID ? FitSport_CYCLING_getInstance() : sport;
|
|
609
|
-
interPathGap = interPathGap === VOID ? Companion_getInstance().
|
|
609
|
+
interPathGap = interPathGap === VOID ? Companion_getInstance().dc_1 : interPathGap;
|
|
610
610
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
611
611
|
// Inline function 'kotlin.require' call
|
|
612
|
-
if (!!_this__u8e3s4.
|
|
612
|
+
if (!!_this__u8e3s4.r()) {
|
|
613
613
|
var message = 'Cannot build a FIT course from an empty list of paths';
|
|
614
614
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
615
615
|
}
|
|
@@ -618,7 +618,7 @@
|
|
|
618
618
|
// Inline function 'kotlin.collections.all' call
|
|
619
619
|
var tmp;
|
|
620
620
|
if (isInterface(_this__u8e3s4, Collection)) {
|
|
621
|
-
tmp = _this__u8e3s4.
|
|
621
|
+
tmp = _this__u8e3s4.r();
|
|
622
622
|
} else {
|
|
623
623
|
tmp = false;
|
|
624
624
|
}
|
|
@@ -629,7 +629,7 @@
|
|
|
629
629
|
var _iterator__ex2g4s = _this__u8e3s4.l();
|
|
630
630
|
while (_iterator__ex2g4s.m()) {
|
|
631
631
|
var element = _iterator__ex2g4s.n();
|
|
632
|
-
if (!(element.
|
|
632
|
+
if (!(element.x25_1 > 0)) {
|
|
633
633
|
tmp$ret$3 = false;
|
|
634
634
|
break $l$block_0;
|
|
635
635
|
}
|
|
@@ -650,31 +650,31 @@
|
|
|
650
650
|
while (_iterator__ex2g4s_0.m()) {
|
|
651
651
|
var item = _iterator__ex2g4s_0.n();
|
|
652
652
|
var segment = toFitSegment(item, segmentStart, segmentDistanceStart);
|
|
653
|
-
segmentStart = last(segment.
|
|
654
|
-
segmentDistanceStart = last(segment.
|
|
653
|
+
segmentStart = last(segment.k4z_1).m4z_1.hh(interPathGap);
|
|
654
|
+
segmentDistanceStart = last(segment.k4z_1).q4z_1;
|
|
655
655
|
destination.k(segment);
|
|
656
656
|
}
|
|
657
657
|
var segments = destination;
|
|
658
658
|
return new FitCourse(name, startTime, segments, sport);
|
|
659
659
|
}
|
|
660
660
|
function toFitSegment(_this__u8e3s4, startTime, distanceStart) {
|
|
661
|
-
var t0 = _this__u8e3s4.
|
|
661
|
+
var t0 = _this__u8e3s4.z25(0);
|
|
662
662
|
var inductionVariable = 1;
|
|
663
|
-
var last = _this__u8e3s4.
|
|
663
|
+
var last = _this__u8e3s4.x25_1;
|
|
664
664
|
if (inductionVariable < last)
|
|
665
665
|
do {
|
|
666
666
|
var i = inductionVariable;
|
|
667
667
|
inductionVariable = inductionVariable + 1 | 0;
|
|
668
668
|
// Inline function 'kotlin.require' call
|
|
669
|
-
if (!(_this__u8e3s4.
|
|
670
|
-
var message = 'Path time must be monotonic to encode a FIT file, but time(' + i + ') = ' + _this__u8e3s4.
|
|
669
|
+
if (!(_this__u8e3s4.z25(i) >= _this__u8e3s4.z25(i - 1 | 0))) {
|
|
670
|
+
var message = 'Path time must be monotonic to encode a FIT file, but time(' + i + ') = ' + _this__u8e3s4.z25(i) + ' < time(' + (i - 1 | 0) + ') = ' + _this__u8e3s4.z25(i - 1 | 0);
|
|
671
671
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
while (inductionVariable < last);
|
|
675
675
|
// Inline function 'kotlin.collections.List' call
|
|
676
676
|
// Inline function 'kotlin.collections.MutableList' call
|
|
677
|
-
var size = _this__u8e3s4.
|
|
677
|
+
var size = _this__u8e3s4.x25_1;
|
|
678
678
|
var list = ArrayList_init_$Create$(size);
|
|
679
679
|
// Inline function 'kotlin.repeat' call
|
|
680
680
|
var inductionVariable_0 = 0;
|
|
@@ -684,13 +684,13 @@
|
|
|
684
684
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
685
685
|
Companion_getInstance();
|
|
686
686
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
687
|
-
var this_0 = numberToLong(_this__u8e3s4.
|
|
687
|
+
var this_0 = numberToLong(_this__u8e3s4.z25(index) - t0);
|
|
688
688
|
var tmp$ret$7 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
689
|
-
var tmp = startTime.
|
|
690
|
-
var tmp_0 = _this__u8e3s4.
|
|
691
|
-
var tmp_1 = _this__u8e3s4.
|
|
689
|
+
var tmp = startTime.hh(tmp$ret$7);
|
|
690
|
+
var tmp_0 = _this__u8e3s4.a26(index) * 57.29577951308232;
|
|
691
|
+
var tmp_1 = _this__u8e3s4.b26(index) * 57.29577951308232;
|
|
692
692
|
// Inline function 'kotlin.takeUnless' call
|
|
693
|
-
var this_1 = _this__u8e3s4.
|
|
693
|
+
var this_1 = _this__u8e3s4.c26(index);
|
|
694
694
|
var tmp_2;
|
|
695
695
|
if (!isNaN_0(this_1)) {
|
|
696
696
|
tmp_2 = this_1;
|
|
@@ -698,9 +698,9 @@
|
|
|
698
698
|
tmp_2 = null;
|
|
699
699
|
}
|
|
700
700
|
var tmp_3 = tmp_2;
|
|
701
|
-
var tmp_4 = distanceStart + _this__u8e3s4.
|
|
701
|
+
var tmp_4 = distanceStart + _this__u8e3s4.b2e(index);
|
|
702
702
|
// Inline function 'kotlin.takeUnless' call
|
|
703
|
-
var this_2 = _this__u8e3s4.
|
|
703
|
+
var this_2 = _this__u8e3s4.j2g(index);
|
|
704
704
|
var tmp_5;
|
|
705
705
|
if (!isNaN_0(this_2)) {
|
|
706
706
|
tmp_5 = this_2;
|
|
@@ -708,34 +708,34 @@
|
|
|
708
708
|
tmp_5 = null;
|
|
709
709
|
}
|
|
710
710
|
var tmp_6 = tmp_5;
|
|
711
|
-
var tmp0_safe_receiver = optionalComputed(_this__u8e3s4.
|
|
711
|
+
var tmp0_safe_receiver = optionalComputed(_this__u8e3s4.h26(index));
|
|
712
712
|
var tmp_7 = tmp0_safe_receiver == null ? null : roundToInt(tmp0_safe_receiver);
|
|
713
|
-
var tmp1_safe_receiver = optionalSensor(_this__u8e3s4.
|
|
713
|
+
var tmp1_safe_receiver = optionalSensor(_this__u8e3s4.d26(index));
|
|
714
714
|
var tmp_8 = tmp1_safe_receiver == null ? null : roundToInt(tmp1_safe_receiver);
|
|
715
|
-
var tmp2_safe_receiver = optionalSensor(_this__u8e3s4.
|
|
716
|
-
var tmp$ret$6 = new FitRecord(tmp, tmp_0, tmp_1, tmp_3, tmp_4, tmp_6, tmp_7, tmp_8, tmp2_safe_receiver == null ? null : roundToInt(tmp2_safe_receiver), optionalSensor(_this__u8e3s4.
|
|
715
|
+
var tmp2_safe_receiver = optionalSensor(_this__u8e3s4.e26(index));
|
|
716
|
+
var tmp$ret$6 = new FitRecord(tmp, tmp_0, tmp_1, tmp_3, tmp_4, tmp_6, tmp_7, tmp_8, tmp2_safe_receiver == null ? null : roundToInt(tmp2_safe_receiver), optionalSensor(_this__u8e3s4.f26(index)));
|
|
717
717
|
list.k(tmp$ret$6);
|
|
718
718
|
}
|
|
719
719
|
while (inductionVariable_0 < size);
|
|
720
720
|
var records = list;
|
|
721
|
-
var tmp_9 = _this__u8e3s4.
|
|
722
|
-
var tmp_10 = _this__u8e3s4.
|
|
723
|
-
var tmp_11 = _this__u8e3s4.
|
|
724
|
-
var tmp_12 = roundToIntOrZero(_this__u8e3s4.
|
|
725
|
-
var tmp_13 = roundToIntOrZero(-_this__u8e3s4.
|
|
721
|
+
var tmp_9 = _this__u8e3s4.p27_1 / 1000.0;
|
|
722
|
+
var tmp_10 = _this__u8e3s4.p27_1 / 1000.0;
|
|
723
|
+
var tmp_11 = _this__u8e3s4.h27_1;
|
|
724
|
+
var tmp_12 = roundToIntOrZero(_this__u8e3s4.f2h());
|
|
725
|
+
var tmp_13 = roundToIntOrZero(-_this__u8e3s4.g2h());
|
|
726
726
|
// Inline function 'io.github.glandais.fit.presentValues' call
|
|
727
727
|
// Inline function 'kotlin.collections.map' call
|
|
728
|
-
var this_3 = until(0, _this__u8e3s4.
|
|
728
|
+
var this_3 = until(0, _this__u8e3s4.x25_1);
|
|
729
729
|
// Inline function 'kotlin.collections.mapTo' call
|
|
730
730
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
731
|
-
var inductionVariable_1 = this_3.
|
|
732
|
-
var last_0 = this_3.
|
|
731
|
+
var inductionVariable_1 = this_3.v_1;
|
|
732
|
+
var last_0 = this_3.w_1;
|
|
733
733
|
if (inductionVariable_1 <= last_0)
|
|
734
734
|
do {
|
|
735
735
|
var item = inductionVariable_1;
|
|
736
736
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
737
737
|
var it = item;
|
|
738
|
-
var tmp$ret$15 = _this__u8e3s4.
|
|
738
|
+
var tmp$ret$15 = _this__u8e3s4.j2g(it);
|
|
739
739
|
destination.k(tmp$ret$15);
|
|
740
740
|
}
|
|
741
741
|
while (!(item === last_0));
|
|
@@ -752,17 +752,17 @@
|
|
|
752
752
|
var tmp_14 = maxOrNull(destination_0);
|
|
753
753
|
// Inline function 'io.github.glandais.fit.presentValues' call
|
|
754
754
|
// Inline function 'kotlin.collections.map' call
|
|
755
|
-
var this_4 = until(0, _this__u8e3s4.
|
|
755
|
+
var this_4 = until(0, _this__u8e3s4.x25_1);
|
|
756
756
|
// Inline function 'kotlin.collections.mapTo' call
|
|
757
757
|
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
758
|
-
var inductionVariable_2 = this_4.
|
|
759
|
-
var last_1 = this_4.
|
|
758
|
+
var inductionVariable_2 = this_4.v_1;
|
|
759
|
+
var last_1 = this_4.w_1;
|
|
760
760
|
if (inductionVariable_2 <= last_1)
|
|
761
761
|
do {
|
|
762
762
|
var item_0 = inductionVariable_2;
|
|
763
763
|
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
764
764
|
var it_0 = item_0;
|
|
765
|
-
var tmp$ret$23 = _this__u8e3s4.
|
|
765
|
+
var tmp$ret$23 = _this__u8e3s4.c26(it_0);
|
|
766
766
|
destination_1.k(tmp$ret$23);
|
|
767
767
|
}
|
|
768
768
|
while (!(item_0 === last_1));
|
|
@@ -779,17 +779,17 @@
|
|
|
779
779
|
var tmp_15 = minOrNull(destination_2);
|
|
780
780
|
// Inline function 'io.github.glandais.fit.presentValues' call
|
|
781
781
|
// Inline function 'kotlin.collections.map' call
|
|
782
|
-
var this_5 = until(0, _this__u8e3s4.
|
|
782
|
+
var this_5 = until(0, _this__u8e3s4.x25_1);
|
|
783
783
|
// Inline function 'kotlin.collections.mapTo' call
|
|
784
784
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(this_5, 10));
|
|
785
|
-
var inductionVariable_3 = this_5.
|
|
786
|
-
var last_2 = this_5.
|
|
785
|
+
var inductionVariable_3 = this_5.v_1;
|
|
786
|
+
var last_2 = this_5.w_1;
|
|
787
787
|
if (inductionVariable_3 <= last_2)
|
|
788
788
|
do {
|
|
789
789
|
var item_1 = inductionVariable_3;
|
|
790
790
|
inductionVariable_3 = inductionVariable_3 + 1 | 0;
|
|
791
791
|
var it_1 = item_1;
|
|
792
|
-
var tmp$ret$31 = _this__u8e3s4.
|
|
792
|
+
var tmp$ret$31 = _this__u8e3s4.c26(it_1);
|
|
793
793
|
destination_3.k(tmp$ret$31);
|
|
794
794
|
}
|
|
795
795
|
while (!(item_1 === last_2));
|
|
@@ -803,7 +803,7 @@
|
|
|
803
803
|
destination_4.k(element_1);
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
|
-
return new FitSegment(records, new FitLap(startTime, tmp_9, tmp_10, tmp_11, tmp_12, tmp_13, tmp_14, tmp_15, maxOrNull(destination_4), _this__u8e3s4.
|
|
806
|
+
return new FitSegment(records, new FitLap(startTime, tmp_9, tmp_10, tmp_11, tmp_12, tmp_13, tmp_14, tmp_15, maxOrNull(destination_4), _this__u8e3s4.a26(0) * 57.29577951308232, _this__u8e3s4.b26(0) * 57.29577951308232, _this__u8e3s4.a26(_this__u8e3s4.x25_1 - 1 | 0) * 57.29577951308232, _this__u8e3s4.b26(_this__u8e3s4.x25_1 - 1 | 0) * 57.29577951308232));
|
|
807
807
|
}
|
|
808
808
|
function optionalComputed(_this__u8e3s4) {
|
|
809
809
|
// Inline function 'kotlin.takeUnless' call
|