@glandais/vcyclist-engine 6.9.1 → 6.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fit-kotlin-sdk.js +3728 -3728
- package/kotlin-kotlin-stdlib.js +9 -9
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
- package/vcyclist-engine.js +1313 -1313
- package/vcyclist-fit.js +170 -170
- package/vcyclist-gpx.js +253 -197
- package/vcyclist-gpx.js.map +1 -1
package/vcyclist-fit.js
CHANGED
|
@@ -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.k55_1 = value;
|
|
109
109
|
}
|
|
110
110
|
function Companion() {
|
|
111
111
|
}
|
|
@@ -115,17 +115,17 @@
|
|
|
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.l55_1 = name;
|
|
119
|
+
this.m55_1 = startTime;
|
|
120
|
+
this.n55_1 = segments;
|
|
121
|
+
this.o55_1 = sport;
|
|
122
122
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
123
123
|
// Inline function 'kotlin.require' call
|
|
124
|
-
if (!!this.
|
|
124
|
+
if (!!this.n55_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.n55_1;
|
|
129
129
|
var tmp$ret$3;
|
|
130
130
|
$l$block_0: {
|
|
131
131
|
// Inline function 'kotlin.collections.all' call
|
|
@@ -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.p55_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.l55_1 + ', startTime=' + this.m55_1.toString() + ', segments=' + toString(this.n55_1) + ', sport=' + this.o55_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.l55_1);
|
|
164
|
+
result = imul(result, 31) + this.m55_1.hashCode() | 0;
|
|
165
|
+
result = imul(result, 31) + hashCode(this.n55_1) | 0;
|
|
166
|
+
result = imul(result, 31) + this.o55_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.l55_1 === other.l55_1))
|
|
175
175
|
return false;
|
|
176
|
-
if (!this.
|
|
176
|
+
if (!this.m55_1.equals(other.m55_1))
|
|
177
177
|
return false;
|
|
178
|
-
if (!equals(this.
|
|
178
|
+
if (!equals(this.n55_1, other.n55_1))
|
|
179
179
|
return false;
|
|
180
|
-
if (!this.
|
|
180
|
+
if (!this.o55_1.equals(other.o55_1))
|
|
181
181
|
return false;
|
|
182
182
|
return true;
|
|
183
183
|
};
|
|
184
184
|
function FitSegment(records, lap) {
|
|
185
|
-
this.
|
|
186
|
-
this.
|
|
185
|
+
this.p55_1 = records;
|
|
186
|
+
this.q55_1 = lap;
|
|
187
187
|
}
|
|
188
188
|
protoOf(FitSegment).toString = function () {
|
|
189
|
-
return 'FitSegment(records=' + toString(this.
|
|
189
|
+
return 'FitSegment(records=' + toString(this.p55_1) + ', lap=' + this.q55_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.p55_1);
|
|
193
|
+
result = imul(result, 31) + this.q55_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.p55_1, other.p55_1))
|
|
202
202
|
return false;
|
|
203
|
-
if (!this.
|
|
203
|
+
if (!this.q55_1.equals(other.q55_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.r55_1 = timestamp;
|
|
215
|
+
this.s55_1 = latitudeDeg;
|
|
216
|
+
this.t55_1 = longitudeDeg;
|
|
217
|
+
this.u55_1 = altitudeM;
|
|
218
|
+
this.v55_1 = distanceM;
|
|
219
|
+
this.w55_1 = speedMs;
|
|
220
|
+
this.x55_1 = powerW;
|
|
221
|
+
this.y55_1 = heartRate;
|
|
222
|
+
this.z55_1 = cadence;
|
|
223
|
+
this.a56_1 = temperatureC;
|
|
224
224
|
}
|
|
225
225
|
protoOf(FitRecord).toString = function () {
|
|
226
|
-
return 'FitRecord(timestamp=' + this.
|
|
226
|
+
return 'FitRecord(timestamp=' + this.r55_1.toString() + ', latitudeDeg=' + this.s55_1 + ', longitudeDeg=' + this.t55_1 + ', altitudeM=' + this.u55_1 + ', distanceM=' + this.v55_1 + ', speedMs=' + this.w55_1 + ', powerW=' + this.x55_1 + ', heartRate=' + this.y55_1 + ', cadence=' + this.z55_1 + ', temperatureC=' + this.a56_1 + ')';
|
|
227
227
|
};
|
|
228
228
|
protoOf(FitRecord).hashCode = function () {
|
|
229
|
-
var result = this.
|
|
230
|
-
result = imul(result, 31) + getNumberHashCode(this.p55_1) | 0;
|
|
231
|
-
result = imul(result, 31) + getNumberHashCode(this.q55_1) | 0;
|
|
232
|
-
result = imul(result, 31) + (this.r55_1 == null ? 0 : getNumberHashCode(this.r55_1)) | 0;
|
|
229
|
+
var result = this.r55_1.hashCode();
|
|
233
230
|
result = imul(result, 31) + getNumberHashCode(this.s55_1) | 0;
|
|
234
|
-
result = imul(result, 31) +
|
|
235
|
-
result = imul(result, 31) + (this.u55_1 == null ? 0 : this.u55_1) | 0;
|
|
236
|
-
result = imul(result, 31) + (this.v55_1
|
|
237
|
-
result = imul(result, 31) + (this.w55_1 == null ? 0 : this.w55_1) | 0;
|
|
238
|
-
result = imul(result, 31) + (this.x55_1 == null ? 0 :
|
|
231
|
+
result = imul(result, 31) + getNumberHashCode(this.t55_1) | 0;
|
|
232
|
+
result = imul(result, 31) + (this.u55_1 == null ? 0 : getNumberHashCode(this.u55_1)) | 0;
|
|
233
|
+
result = imul(result, 31) + getNumberHashCode(this.v55_1) | 0;
|
|
234
|
+
result = imul(result, 31) + (this.w55_1 == null ? 0 : getNumberHashCode(this.w55_1)) | 0;
|
|
235
|
+
result = imul(result, 31) + (this.x55_1 == null ? 0 : this.x55_1) | 0;
|
|
236
|
+
result = imul(result, 31) + (this.y55_1 == null ? 0 : this.y55_1) | 0;
|
|
237
|
+
result = imul(result, 31) + (this.z55_1 == null ? 0 : this.z55_1) | 0;
|
|
238
|
+
result = imul(result, 31) + (this.a56_1 == null ? 0 : getNumberHashCode(this.a56_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.r55_1.equals(other.r55_1))
|
|
247
247
|
return false;
|
|
248
|
-
if (!equals(this.
|
|
248
|
+
if (!equals(this.s55_1, other.s55_1))
|
|
249
249
|
return false;
|
|
250
|
-
if (!equals(this.
|
|
250
|
+
if (!equals(this.t55_1, other.t55_1))
|
|
251
251
|
return false;
|
|
252
|
-
if (!equals(this.
|
|
252
|
+
if (!equals(this.u55_1, other.u55_1))
|
|
253
253
|
return false;
|
|
254
|
-
if (!equals(this.
|
|
254
|
+
if (!equals(this.v55_1, other.v55_1))
|
|
255
255
|
return false;
|
|
256
|
-
if (!equals(this.
|
|
256
|
+
if (!equals(this.w55_1, other.w55_1))
|
|
257
257
|
return false;
|
|
258
|
-
if (!(this.
|
|
258
|
+
if (!(this.x55_1 == other.x55_1))
|
|
259
259
|
return false;
|
|
260
|
-
if (!(this.
|
|
260
|
+
if (!(this.y55_1 == other.y55_1))
|
|
261
261
|
return false;
|
|
262
|
-
if (!(this.
|
|
262
|
+
if (!(this.z55_1 == other.z55_1))
|
|
263
263
|
return false;
|
|
264
|
-
if (!equals(this.
|
|
264
|
+
if (!equals(this.a56_1, other.a56_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.b56_1 = startTime;
|
|
277
|
+
this.c56_1 = totalElapsedTimeS;
|
|
278
|
+
this.d56_1 = totalTimerTimeS;
|
|
279
|
+
this.e56_1 = totalDistanceM;
|
|
280
|
+
this.f56_1 = totalAscentM;
|
|
281
|
+
this.g56_1 = totalDescentM;
|
|
282
|
+
this.h56_1 = maxSpeedMs;
|
|
283
|
+
this.i56_1 = minAltitudeM;
|
|
284
|
+
this.j56_1 = maxAltitudeM;
|
|
285
|
+
this.k56_1 = startLatitudeDeg;
|
|
286
|
+
this.l56_1 = startLongitudeDeg;
|
|
287
|
+
this.m56_1 = endLatitudeDeg;
|
|
288
|
+
this.n56_1 = endLongitudeDeg;
|
|
289
289
|
}
|
|
290
290
|
protoOf(FitLap).toString = function () {
|
|
291
|
-
return 'FitLap(startTime=' + this.
|
|
291
|
+
return 'FitLap(startTime=' + this.b56_1.toString() + ', totalElapsedTimeS=' + this.c56_1 + ', totalTimerTimeS=' + this.d56_1 + ', totalDistanceM=' + this.e56_1 + ', totalAscentM=' + this.f56_1 + ', totalDescentM=' + this.g56_1 + ', maxSpeedMs=' + this.h56_1 + ', minAltitudeM=' + this.i56_1 + ', maxAltitudeM=' + this.j56_1 + ', startLatitudeDeg=' + this.k56_1 + ', startLongitudeDeg=' + this.l56_1 + ', endLatitudeDeg=' + this.m56_1 + ', endLongitudeDeg=' + this.n56_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.e56_1 == null ? 0 : getNumberHashCode(this.e56_1)) | 0;
|
|
301
|
-
result = imul(result, 31) + (this.f56_1 == null ? 0 : getNumberHashCode(this.f56_1)) | 0;
|
|
302
|
-
result = imul(result, 31) + (this.g56_1 == null ? 0 : getNumberHashCode(this.g56_1)) | 0;
|
|
294
|
+
var result = this.b56_1.hashCode();
|
|
295
|
+
result = imul(result, 31) + getNumberHashCode(this.c56_1) | 0;
|
|
296
|
+
result = imul(result, 31) + getNumberHashCode(this.d56_1) | 0;
|
|
297
|
+
result = imul(result, 31) + getNumberHashCode(this.e56_1) | 0;
|
|
298
|
+
result = imul(result, 31) + this.f56_1 | 0;
|
|
299
|
+
result = imul(result, 31) + this.g56_1 | 0;
|
|
303
300
|
result = imul(result, 31) + (this.h56_1 == null ? 0 : getNumberHashCode(this.h56_1)) | 0;
|
|
304
301
|
result = imul(result, 31) + (this.i56_1 == null ? 0 : getNumberHashCode(this.i56_1)) | 0;
|
|
305
302
|
result = imul(result, 31) + (this.j56_1 == null ? 0 : getNumberHashCode(this.j56_1)) | 0;
|
|
306
303
|
result = imul(result, 31) + (this.k56_1 == null ? 0 : getNumberHashCode(this.k56_1)) | 0;
|
|
304
|
+
result = imul(result, 31) + (this.l56_1 == null ? 0 : getNumberHashCode(this.l56_1)) | 0;
|
|
305
|
+
result = imul(result, 31) + (this.m56_1 == null ? 0 : getNumberHashCode(this.m56_1)) | 0;
|
|
306
|
+
result = imul(result, 31) + (this.n56_1 == null ? 0 : getNumberHashCode(this.n56_1)) | 0;
|
|
307
307
|
return result;
|
|
308
308
|
};
|
|
309
309
|
protoOf(FitLap).equals = function (other) {
|
|
@@ -311,23 +311,17 @@
|
|
|
311
311
|
return true;
|
|
312
312
|
if (!(other instanceof FitLap))
|
|
313
313
|
return false;
|
|
314
|
-
if (!this.
|
|
315
|
-
return false;
|
|
316
|
-
if (!equals(this.z55_1, other.z55_1))
|
|
317
|
-
return false;
|
|
318
|
-
if (!equals(this.a56_1, other.a56_1))
|
|
319
|
-
return false;
|
|
320
|
-
if (!equals(this.b56_1, other.b56_1))
|
|
314
|
+
if (!this.b56_1.equals(other.b56_1))
|
|
321
315
|
return false;
|
|
322
|
-
if (!(this.c56_1
|
|
316
|
+
if (!equals(this.c56_1, other.c56_1))
|
|
323
317
|
return false;
|
|
324
|
-
if (!(this.d56_1
|
|
318
|
+
if (!equals(this.d56_1, other.d56_1))
|
|
325
319
|
return false;
|
|
326
320
|
if (!equals(this.e56_1, other.e56_1))
|
|
327
321
|
return false;
|
|
328
|
-
if (!
|
|
322
|
+
if (!(this.f56_1 === other.f56_1))
|
|
329
323
|
return false;
|
|
330
|
-
if (!
|
|
324
|
+
if (!(this.g56_1 === other.g56_1))
|
|
331
325
|
return false;
|
|
332
326
|
if (!equals(this.h56_1, other.h56_1))
|
|
333
327
|
return false;
|
|
@@ -337,6 +331,12 @@
|
|
|
337
331
|
return false;
|
|
338
332
|
if (!equals(this.k56_1, other.k56_1))
|
|
339
333
|
return false;
|
|
334
|
+
if (!equals(this.l56_1, other.l56_1))
|
|
335
|
+
return false;
|
|
336
|
+
if (!equals(this.m56_1, other.m56_1))
|
|
337
|
+
return false;
|
|
338
|
+
if (!equals(this.n56_1, other.n56_1))
|
|
339
|
+
return false;
|
|
340
340
|
return true;
|
|
341
341
|
};
|
|
342
342
|
function FitSport_CYCLING_getInstance() {
|
|
@@ -346,158 +346,158 @@
|
|
|
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.a4v(File_COURSE_getInstance());
|
|
350
|
+
this_0.e4v(Manufacturer_DYNASTREAM_getInstance());
|
|
351
|
+
this_0.i4v(_UShort___init__impl__jigrne(12345));
|
|
352
|
+
this_0.j4v(_UInt___init__impl__l7qpdl(12345));
|
|
353
353
|
// Inline function 'kotlin.toUShort' call
|
|
354
|
-
var this_1 = getStringHashCode(course.
|
|
354
|
+
var this_1 = getStringHashCode(course.l55_1) & 65535;
|
|
355
355
|
var tmp$ret$2 = _UShort___init__impl__jigrne(toShort(this_1));
|
|
356
|
-
this_0.
|
|
357
|
-
this_0.
|
|
356
|
+
this_0.l4v(tmp$ret$2);
|
|
357
|
+
this_0.k4v(course.m55_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.l31(course.l55_1);
|
|
364
|
+
this_0.h31(toSdkSport(FitEncoder_getInstance(), course.o55_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.f53(lap.b56_1);
|
|
371
|
+
this_0.l3c(lap.b56_1.hh(secondsAsDuration(FitEncoder_getInstance(), lap.c56_1)));
|
|
372
|
+
this_0.k53(lap.c56_1);
|
|
373
|
+
this_0.l53(lap.d56_1);
|
|
374
|
+
this_0.m53(lap.e56_1);
|
|
375
375
|
// Inline function 'kotlin.toUShort' call
|
|
376
|
-
var this_1 = lap.
|
|
376
|
+
var this_1 = lap.f56_1;
|
|
377
377
|
var tmp$ret$2 = _UShort___init__impl__jigrne(toShort(this_1));
|
|
378
|
-
this_0.
|
|
378
|
+
this_0.p53(tmp$ret$2);
|
|
379
379
|
// Inline function 'kotlin.toUShort' call
|
|
380
|
-
var this_2 = lap.
|
|
380
|
+
var this_2 = lap.g56_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.q53(tmp$ret$3);
|
|
383
|
+
if (lap.d56_1 > 0.0) {
|
|
384
|
+
this_0.n53(lap.e56_1 / lap.d56_1);
|
|
385
385
|
}
|
|
386
|
-
var tmp0_safe_receiver = lap.
|
|
386
|
+
var tmp0_safe_receiver = lap.h56_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.o53(tmp0_safe_receiver);
|
|
392
392
|
}
|
|
393
|
-
var tmp1_safe_receiver = lap.
|
|
393
|
+
var tmp1_safe_receiver = lap.i56_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.s53(tmp1_safe_receiver);
|
|
399
399
|
}
|
|
400
|
-
var tmp2_safe_receiver = lap.
|
|
400
|
+
var tmp2_safe_receiver = lap.j56_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.r53(tmp2_safe_receiver);
|
|
406
406
|
}
|
|
407
|
-
var tmp3_safe_receiver = lap.
|
|
407
|
+
var tmp3_safe_receiver = lap.k56_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.g53(FitUnits_getInstance().w56(tmp3_safe_receiver));
|
|
413
413
|
}
|
|
414
|
-
var tmp4_safe_receiver = lap.
|
|
414
|
+
var tmp4_safe_receiver = lap.l56_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.h53(FitUnits_getInstance().w56(tmp4_safe_receiver));
|
|
420
420
|
}
|
|
421
|
-
var tmp5_safe_receiver = lap.
|
|
421
|
+
var tmp5_safe_receiver = lap.m56_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.i53(FitUnits_getInstance().w56(tmp5_safe_receiver));
|
|
427
427
|
}
|
|
428
|
-
var tmp6_safe_receiver = lap.
|
|
428
|
+
var tmp6_safe_receiver = lap.n56_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.j53(FitUnits_getInstance().w56(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.l3c(record.r55_1);
|
|
441
|
+
this_0.x53(FitUnits_getInstance().w56(record.s55_1));
|
|
442
|
+
this_0.y53(FitUnits_getInstance().w56(record.t55_1));
|
|
443
|
+
this_0.b54(record.v55_1);
|
|
444
|
+
var tmp0_safe_receiver = record.u55_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.z53(tmp0_safe_receiver);
|
|
450
450
|
}
|
|
451
|
-
var tmp1_safe_receiver = record.
|
|
451
|
+
var tmp1_safe_receiver = record.w55_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.c54(tmp1_safe_receiver);
|
|
457
457
|
}
|
|
458
|
-
var tmp2_safe_receiver = record.
|
|
458
|
+
var tmp2_safe_receiver = record.x55_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.d54(tmp$ret$8);
|
|
466
466
|
}
|
|
467
|
-
var tmp3_safe_receiver = record.
|
|
467
|
+
var tmp3_safe_receiver = record.y55_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.y52(tmp$ret$11);
|
|
475
475
|
}
|
|
476
|
-
var tmp4_safe_receiver = record.
|
|
476
|
+
var tmp4_safe_receiver = record.z55_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.a54(tmp$ret$14);
|
|
484
484
|
}
|
|
485
|
-
var tmp5_safe_receiver = record.
|
|
485
|
+
var tmp5_safe_receiver = record.a56_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.e54(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.p3c(Event_TIMER_getInstance());
|
|
498
|
+
this_0.t3c(type);
|
|
499
|
+
this_0.x3c(_UByte___init__impl__g9hnc4(0));
|
|
500
|
+
this_0.l3c(at);
|
|
501
501
|
return this_0;
|
|
502
502
|
}
|
|
503
503
|
function toSdkSport($this, $receiver) {
|
|
@@ -526,37 +526,37 @@
|
|
|
526
526
|
}
|
|
527
527
|
function FitEncoder_0() {
|
|
528
528
|
FitEncoder_instance = this;
|
|
529
|
-
this.
|
|
530
|
-
this.
|
|
529
|
+
this.x56_1 = _UShort___init__impl__jigrne(12345);
|
|
530
|
+
this.y56_1 = _UInt___init__impl__l7qpdl(12345);
|
|
531
531
|
}
|
|
532
|
-
protoOf(FitEncoder_0).
|
|
532
|
+
protoOf(FitEncoder_0).z56 = 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.c52(fileIdMesg(FitEncoder_getInstance(), course));
|
|
538
|
+
this_0.c52(courseMesg(FitEncoder_getInstance(), course));
|
|
539
|
+
var _iterator__ex2g4s = course.n55_1.l();
|
|
540
540
|
while (_iterator__ex2g4s.m()) {
|
|
541
541
|
var segment = _iterator__ex2g4s.n();
|
|
542
|
-
this_0.
|
|
542
|
+
this_0.c52(lapMesg(FitEncoder_getInstance(), segment.q55_1));
|
|
543
543
|
}
|
|
544
|
-
var iterator = course.
|
|
544
|
+
var iterator = course.n55_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.n55_1);
|
|
551
|
+
this_0.c52(timerEvent(FitEncoder_getInstance(), first(segment_0.p55_1).r55_1, EventType_START_getInstance()));
|
|
552
|
+
var _iterator__ex2g4s_0 = segment_0.p55_1.l();
|
|
553
553
|
while (_iterator__ex2g4s_0.m()) {
|
|
554
554
|
var record = _iterator__ex2g4s_0.n();
|
|
555
|
-
this_0.
|
|
555
|
+
this_0.c52(recordMesg(FitEncoder_getInstance(), record));
|
|
556
556
|
}
|
|
557
|
-
this_0.
|
|
557
|
+
this_0.c52(timerEvent(FitEncoder_getInstance(), last(segment_0.p55_1).r55_1, isLast ? EventType_STOP_ALL_getInstance() : EventType_STOP_getInstance()));
|
|
558
558
|
}
|
|
559
|
-
return this_0.
|
|
559
|
+
return this_0.e52();
|
|
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.o56_1 = new Long(-294592512, 146);
|
|
570
|
+
this.p56_1 = new Long(631065600, 0);
|
|
571
|
+
this.q56_1 = 1.1930464711111112E7;
|
|
572
|
+
this.r56_1 = 5.0;
|
|
573
|
+
this.s56_1 = 500.0;
|
|
574
|
+
this.t56_1 = 100.0;
|
|
575
|
+
this.u56_1 = 1000.0;
|
|
576
|
+
this.v56_1 = new Long(-2147483648, 0);
|
|
577
577
|
}
|
|
578
|
-
protoOf(FitUnits).
|
|
578
|
+
protoOf(FitUnits).w56 = 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().z56(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
600
|
interPathGap = interPathGap === VOID ? Companion_getInstance().dc_1 : interPathGap;
|
|
601
|
-
return FitEncoder_getInstance().
|
|
601
|
+
return FitEncoder_getInstance().z56(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;
|
|
@@ -650,8 +650,8 @@
|
|
|
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.p55_1).r55_1.hh(interPathGap);
|
|
654
|
+
segmentDistanceStart = last(segment.p55_1).v55_1;
|
|
655
655
|
destination.k(segment);
|
|
656
656
|
}
|
|
657
657
|
var segments = destination;
|
|
@@ -698,7 +698,7 @@
|
|
|
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.z2j(index);
|
|
702
702
|
// Inline function 'kotlin.takeUnless' call
|
|
703
703
|
var this_2 = _this__u8e3s4.l2m(index);
|
|
704
704
|
var tmp_5;
|