@guardian/feast-multiplatform-library 11.0.0 → 13.0.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.
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
var listOfNotNull = kotlin_kotlin.$_$.c5;
|
|
19
19
|
var joinToString = kotlin_kotlin.$_$.x4;
|
|
20
20
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.bb;
|
|
21
|
+
var isBlank = kotlin_kotlin.$_$.v8;
|
|
21
22
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.d4;
|
|
22
23
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
23
24
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.d1;
|
|
@@ -79,7 +80,6 @@
|
|
|
79
80
|
var print = kotlin_kotlin.$_$.w5;
|
|
80
81
|
var Exception = kotlin_kotlin.$_$.ba;
|
|
81
82
|
var substring_0 = kotlin_kotlin.$_$.d9;
|
|
82
|
-
var isBlank = kotlin_kotlin.$_$.v8;
|
|
83
83
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
84
84
|
var initMetadataForInterface = kotlin_kotlin.$_$.g7;
|
|
85
85
|
var Enum = kotlin_kotlin.$_$.aa;
|
|
@@ -139,6 +139,9 @@
|
|
|
139
139
|
initMetadataForObject(Imperial, 'Imperial');
|
|
140
140
|
initMetadataForObject(Metric, 'Metric');
|
|
141
141
|
initMetadataForObject(USCustomary, 'USCustomary');
|
|
142
|
+
initMetadataForObject(USCustomaryWithMetric, 'USCustomaryWithMetric');
|
|
143
|
+
initMetadataForObject(USCustomaryWithImperial, 'USCustomaryWithImperial');
|
|
144
|
+
initMetadataForObject(USCombined, 'USCombined');
|
|
142
145
|
initMetadataForClass(UnitType, 'UnitType', VOID, Enum);
|
|
143
146
|
initMetadataForClass(MeasurementUnit, 'MeasurementUnit');
|
|
144
147
|
initMetadataForObject(Units, 'Units');
|
|
@@ -201,7 +204,7 @@
|
|
|
201
204
|
var integerPart = numberToInt(number);
|
|
202
205
|
var integerPartStr = integerPart > 0 ? integerPart.toString() : '';
|
|
203
206
|
var fractionalPart = number - integerPart;
|
|
204
|
-
return (0.0 <= fractionalPart ? fractionalPart <= 0.
|
|
207
|
+
return (0.0 <= fractionalPart ? fractionalPart <= 0.125 : false) ? integerPartStr : (0.125 <= fractionalPart ? fractionalPart <= 0.291667 : false) ? integerPartStr + '\xBC' : (0.291667 <= fractionalPart ? fractionalPart <= 0.416667 : false) ? integerPartStr + '\u2153' : (0.416667 <= fractionalPart ? fractionalPart <= 0.583333 : false) ? integerPartStr + '\xBD' : (0.583333 <= fractionalPart ? fractionalPart <= 0.708333 : false) ? integerPartStr + '\u2154' : (0.708333 <= fractionalPart ? fractionalPart <= 0.875 : false) ? integerPartStr + '\xBE' : '' + (integerPart + 1 | 0);
|
|
205
208
|
};
|
|
206
209
|
protoOf(FormatUtils).i1d = function (number, decimals, fraction) {
|
|
207
210
|
if (fraction) {
|
|
@@ -303,11 +306,11 @@
|
|
|
303
306
|
tmp_1 = this.k1d_1.p1e(tmp1_safe_receiver);
|
|
304
307
|
}
|
|
305
308
|
var density = tmp_1;
|
|
306
|
-
amount = UnitConversions_getInstance().
|
|
309
|
+
amount = UnitConversions_getInstance().y1e(amount, measuringSystem, factorToUse, density);
|
|
307
310
|
var tmp2_subject = amount.c1d_1;
|
|
308
|
-
var decimals = equals(tmp2_subject, Units_getInstance().n1d_1) || (equals(tmp2_subject, Units_getInstance().r1d_1) || equals(tmp2_subject, Units_getInstance().e1e_1)) ? 0 : equals(tmp2_subject, Units_getInstance().f1e_1) || equals(tmp2_subject, Units_getInstance().g1e_1) ? 1 : 1;
|
|
311
|
+
var decimals = equals(tmp2_subject, Units_getInstance().n1d_1) || (equals(tmp2_subject, Units_getInstance().r1d_1) || equals(tmp2_subject, Units_getInstance().e1e_1)) || (equals(tmp2_subject, Units_getInstance().w1d_1) || equals(tmp2_subject, Units_getInstance().u1d_1) || (equals(tmp2_subject, Units_getInstance().x1d_1) || equals(tmp2_subject, Units_getInstance().v1d_1))) ? 0 : equals(tmp2_subject, Units_getInstance().f1e_1) || equals(tmp2_subject, Units_getInstance().g1e_1) ? 1 : 1;
|
|
309
312
|
var tmp3_subject = amount.c1d_1;
|
|
310
|
-
var fraction = equals(tmp3_subject, Units_getInstance().s1d_1) || (equals(tmp3_subject, Units_getInstance().r1d_1) || equals(tmp3_subject, Units_getInstance().f1e_1)) || (equals(tmp3_subject, Units_getInstance().n1d_1) || (equals(tmp3_subject, Units_getInstance().o1d_1) || equals(tmp3_subject, Units_getInstance().e1e_1))) ? false : true;
|
|
313
|
+
var fraction = equals(tmp3_subject, Units_getInstance().s1d_1) || (equals(tmp3_subject, Units_getInstance().r1d_1) || equals(tmp3_subject, Units_getInstance().f1e_1)) || (equals(tmp3_subject, Units_getInstance().n1d_1) || (equals(tmp3_subject, Units_getInstance().o1d_1) || equals(tmp3_subject, Units_getInstance().e1e_1))) ? false : equals(tmp3_subject, Units_getInstance().u1d_1) || equals(tmp3_subject, Units_getInstance().v1d_1) || (equals(tmp3_subject, Units_getInstance().x1d_1) || equals(tmp3_subject, Units_getInstance().w1d_1)) ? amount.a1d_1 < 1.0 : true;
|
|
311
314
|
var tmp_2;
|
|
312
315
|
if (!(amount.c1d_1 == null)) {
|
|
313
316
|
var tmp_3;
|
|
@@ -316,9 +319,9 @@
|
|
|
316
319
|
// Inline function 'kotlin.math.max' call
|
|
317
320
|
var b = tmp4_elvis_lhs == null ? amount.a1d_1 : tmp4_elvis_lhs;
|
|
318
321
|
if (Math.max(tmp0, b) > 1.1) {
|
|
319
|
-
tmp_3 = ' ' + amount.c1d_1.
|
|
322
|
+
tmp_3 = ' ' + amount.c1d_1.c1f_1;
|
|
320
323
|
} else {
|
|
321
|
-
tmp_3 = ' ' + amount.c1d_1.
|
|
324
|
+
tmp_3 = ' ' + amount.c1d_1.b1f_1;
|
|
322
325
|
}
|
|
323
326
|
tmp_2 = tmp_3;
|
|
324
327
|
} else {
|
|
@@ -336,13 +339,94 @@
|
|
|
336
339
|
}
|
|
337
340
|
return joinToString(listOfNotNull([tmp_4, tmp_5, unitString]), '');
|
|
338
341
|
};
|
|
339
|
-
protoOf(TemplateSession).
|
|
342
|
+
protoOf(TemplateSession).g1f = function (element, factor, measuringSystem) {
|
|
340
343
|
var tmp;
|
|
341
344
|
if (element instanceof TemplateConst) {
|
|
342
345
|
tmp = element.value;
|
|
343
346
|
} else {
|
|
344
347
|
if (element instanceof QuantityPlaceholder) {
|
|
345
|
-
|
|
348
|
+
var tmp_0;
|
|
349
|
+
var tmp_1;
|
|
350
|
+
if (measuringSystem instanceof Metric) {
|
|
351
|
+
tmp_1 = true;
|
|
352
|
+
} else {
|
|
353
|
+
var tmp_2;
|
|
354
|
+
if (measuringSystem instanceof Imperial) {
|
|
355
|
+
tmp_2 = true;
|
|
356
|
+
} else {
|
|
357
|
+
tmp_2 = measuringSystem instanceof USCustomary;
|
|
358
|
+
}
|
|
359
|
+
tmp_1 = tmp_2;
|
|
360
|
+
}
|
|
361
|
+
if (tmp_1) {
|
|
362
|
+
tmp_0 = this.m1d(element, factor, measuringSystem);
|
|
363
|
+
} else {
|
|
364
|
+
if (measuringSystem instanceof USCustomaryWithMetric) {
|
|
365
|
+
var tmp_3;
|
|
366
|
+
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
367
|
+
var this_0 = element.unit;
|
|
368
|
+
if (this_0 == null || isBlank(this_0)) {
|
|
369
|
+
tmp_3 = this.m1d(element, factor, USCustomary_instance);
|
|
370
|
+
} else {
|
|
371
|
+
var cupsPart = this.m1d(element, factor, USCustomary_instance);
|
|
372
|
+
var metricPart = this.m1d(element, factor, Metric_instance);
|
|
373
|
+
var tmp_4;
|
|
374
|
+
if (cupsPart === metricPart) {
|
|
375
|
+
tmp_4 = cupsPart;
|
|
376
|
+
} else {
|
|
377
|
+
tmp_4 = metricPart + ' (' + cupsPart + ')';
|
|
378
|
+
}
|
|
379
|
+
tmp_3 = tmp_4;
|
|
380
|
+
}
|
|
381
|
+
tmp_0 = tmp_3;
|
|
382
|
+
} else {
|
|
383
|
+
if (measuringSystem instanceof USCustomaryWithImperial) {
|
|
384
|
+
var tmp_5;
|
|
385
|
+
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
386
|
+
var this_1 = element.unit;
|
|
387
|
+
if (this_1 == null || isBlank(this_1)) {
|
|
388
|
+
tmp_5 = this.m1d(element, factor, USCustomary_instance);
|
|
389
|
+
} else {
|
|
390
|
+
var cupsPart_0 = this.m1d(element, factor, USCustomary_instance);
|
|
391
|
+
var imperialPart = this.m1d(element, factor, Imperial_instance);
|
|
392
|
+
var tmp_6;
|
|
393
|
+
if (cupsPart_0 === imperialPart) {
|
|
394
|
+
tmp_6 = cupsPart_0;
|
|
395
|
+
} else {
|
|
396
|
+
tmp_6 = imperialPart + ' (' + cupsPart_0 + ')';
|
|
397
|
+
}
|
|
398
|
+
tmp_5 = tmp_6;
|
|
399
|
+
}
|
|
400
|
+
tmp_0 = tmp_5;
|
|
401
|
+
} else {
|
|
402
|
+
if (measuringSystem instanceof USCombined) {
|
|
403
|
+
var tmp_7;
|
|
404
|
+
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
405
|
+
var this_2 = element.unit;
|
|
406
|
+
if (this_2 == null || isBlank(this_2)) {
|
|
407
|
+
tmp_7 = this.m1d(element, factor, USCustomary_instance);
|
|
408
|
+
} else {
|
|
409
|
+
var cupsPart_1 = this.m1d(element, factor, USCustomary_instance);
|
|
410
|
+
var imperialPart_0 = this.m1d(element, factor, Imperial_instance);
|
|
411
|
+
var metricPart_0 = this.m1d(element, factor, Metric_instance);
|
|
412
|
+
var tmp_8;
|
|
413
|
+
if (cupsPart_1 === metricPart_0 && cupsPart_1 === imperialPart_0) {
|
|
414
|
+
tmp_8 = metricPart_0;
|
|
415
|
+
} else if (cupsPart_1 === imperialPart_0) {
|
|
416
|
+
tmp_8 = metricPart_0 + ' (' + cupsPart_1 + ')';
|
|
417
|
+
} else {
|
|
418
|
+
tmp_8 = metricPart_0 + ' (' + imperialPart_0 + ' \u2022 ' + cupsPart_1 + ')';
|
|
419
|
+
}
|
|
420
|
+
tmp_7 = tmp_8;
|
|
421
|
+
}
|
|
422
|
+
tmp_0 = tmp_7;
|
|
423
|
+
} else {
|
|
424
|
+
noWhenBranchMatchedException();
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
tmp = tmp_0;
|
|
346
430
|
} else {
|
|
347
431
|
if (element instanceof OvenTemperaturePlaceholder) {
|
|
348
432
|
tmp = this.l1d(element);
|
|
@@ -353,22 +437,22 @@
|
|
|
353
437
|
}
|
|
354
438
|
return tmp;
|
|
355
439
|
};
|
|
356
|
-
protoOf(TemplateSession).
|
|
440
|
+
protoOf(TemplateSession).h1f = function (template, factor, measuringSystem) {
|
|
357
441
|
// Inline function 'kotlin.collections.map' call
|
|
358
|
-
var this_0 = template.
|
|
442
|
+
var this_0 = template.i1f_1;
|
|
359
443
|
// Inline function 'kotlin.collections.mapTo' call
|
|
360
444
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
361
445
|
var _iterator__ex2g4s = this_0.s();
|
|
362
446
|
while (_iterator__ex2g4s.t()) {
|
|
363
447
|
var item = _iterator__ex2g4s.u();
|
|
364
|
-
var tmp$ret$0 = this.
|
|
448
|
+
var tmp$ret$0 = this.g1f(item, factor, measuringSystem);
|
|
365
449
|
destination.w(tmp$ret$0);
|
|
366
450
|
}
|
|
367
451
|
var renderedParts = destination;
|
|
368
452
|
return FormatUtils_getInstance().j1d(joinToString(renderedParts, ''));
|
|
369
453
|
};
|
|
370
454
|
protoOf(TemplateSession).scaleAndConvertUnitRecipe = function (recipe, factor, measuringSystem) {
|
|
371
|
-
var tmp0_safe_receiver = recipe.
|
|
455
|
+
var tmp0_safe_receiver = recipe.v1f_1;
|
|
372
456
|
var tmp;
|
|
373
457
|
if (tmp0_safe_receiver == null) {
|
|
374
458
|
tmp = null;
|
|
@@ -379,7 +463,7 @@
|
|
|
379
463
|
var _iterator__ex2g4s = tmp0_safe_receiver.s();
|
|
380
464
|
while (_iterator__ex2g4s.t()) {
|
|
381
465
|
var item = _iterator__ex2g4s.u();
|
|
382
|
-
var tmp0_safe_receiver_0 = item.
|
|
466
|
+
var tmp0_safe_receiver_0 = item.g1g_1;
|
|
383
467
|
var tmp_0;
|
|
384
468
|
if (tmp0_safe_receiver_0 == null) {
|
|
385
469
|
tmp_0 = null;
|
|
@@ -390,28 +474,28 @@
|
|
|
390
474
|
var _iterator__ex2g4s_0 = tmp0_safe_receiver_0.s();
|
|
391
475
|
while (_iterator__ex2g4s_0.t()) {
|
|
392
476
|
var item_0 = _iterator__ex2g4s_0.u();
|
|
393
|
-
var tmp0_safe_receiver_1 = item_0.
|
|
477
|
+
var tmp0_safe_receiver_1 = item_0.o1g_1;
|
|
394
478
|
var tmp_1;
|
|
395
479
|
if (tmp0_safe_receiver_1 == null) {
|
|
396
480
|
tmp_1 = null;
|
|
397
481
|
} else {
|
|
398
482
|
// Inline function 'kotlin.let' call
|
|
399
|
-
tmp_1 = wrapWithStrongTag(this.
|
|
483
|
+
tmp_1 = wrapWithStrongTag(this.h1f(parseTemplate(tmp0_safe_receiver_1), factor, measuringSystem));
|
|
400
484
|
}
|
|
401
485
|
var tmp1_elvis_lhs = tmp_1;
|
|
402
|
-
var scaledText = tmp1_elvis_lhs == null ? item_0.
|
|
403
|
-
var tmp$ret$2 = item_0.
|
|
486
|
+
var scaledText = tmp1_elvis_lhs == null ? item_0.p1g_1 : tmp1_elvis_lhs;
|
|
487
|
+
var tmp$ret$2 = item_0.r1g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledText);
|
|
404
488
|
destination_0.w(tmp$ret$2);
|
|
405
489
|
}
|
|
406
490
|
tmp_0 = destination_0;
|
|
407
491
|
}
|
|
408
|
-
var tmp$ret$5 = new IngredientsList(tmp_0, item.
|
|
492
|
+
var tmp$ret$5 = new IngredientsList(tmp_0, item.h1g_1);
|
|
409
493
|
destination.w(tmp$ret$5);
|
|
410
494
|
}
|
|
411
495
|
tmp = destination;
|
|
412
496
|
}
|
|
413
497
|
var scaledIngredients = tmp;
|
|
414
|
-
var tmp1_safe_receiver = recipe.
|
|
498
|
+
var tmp1_safe_receiver = recipe.w1f_1;
|
|
415
499
|
var tmp_2;
|
|
416
500
|
if (tmp1_safe_receiver == null) {
|
|
417
501
|
tmp_2 = null;
|
|
@@ -422,22 +506,22 @@
|
|
|
422
506
|
var _iterator__ex2g4s_1 = tmp1_safe_receiver.s();
|
|
423
507
|
while (_iterator__ex2g4s_1.t()) {
|
|
424
508
|
var item_1 = _iterator__ex2g4s_1.u();
|
|
425
|
-
var tmp0_safe_receiver_2 = item_1.
|
|
509
|
+
var tmp0_safe_receiver_2 = item_1.t1g_1;
|
|
426
510
|
var tmp_3;
|
|
427
511
|
if (tmp0_safe_receiver_2 == null) {
|
|
428
512
|
tmp_3 = null;
|
|
429
513
|
} else {
|
|
430
514
|
// Inline function 'kotlin.let' call
|
|
431
|
-
tmp_3 = this.
|
|
515
|
+
tmp_3 = this.h1f(parseTemplate(tmp0_safe_receiver_2), factor, measuringSystem);
|
|
432
516
|
}
|
|
433
517
|
var description = tmp_3;
|
|
434
|
-
var tmp$ret$10 = item_1.
|
|
518
|
+
var tmp$ret$10 = item_1.w1g(description == null ? item_1.s1g_1 : description);
|
|
435
519
|
destination_1.w(tmp$ret$10);
|
|
436
520
|
}
|
|
437
521
|
tmp_2 = destination_1;
|
|
438
522
|
}
|
|
439
523
|
var scaledInstructions = tmp_2;
|
|
440
|
-
return recipe.
|
|
524
|
+
return recipe.x1g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledIngredients, scaledInstructions);
|
|
441
525
|
};
|
|
442
526
|
function splitBeforeSuffix(value) {
|
|
443
527
|
// Inline function 'kotlin.charArrayOf' call
|
|
@@ -462,8 +546,9 @@
|
|
|
462
546
|
// Inline function 'kotlin.text.orEmpty' call
|
|
463
547
|
return '<strong>' + before + '<\/strong>' + (after == null ? '' : after);
|
|
464
548
|
}
|
|
465
|
-
function newTemplateSession() {
|
|
466
|
-
|
|
549
|
+
function newTemplateSession(rawDensityData) {
|
|
550
|
+
rawDensityData = rawDensityData === VOID ? null : rawDensityData;
|
|
551
|
+
var densityTable = !(rawDensityData == null) ? loadDensityTable(rawDensityData) : loadInternalDensityTable();
|
|
467
552
|
// Inline function 'kotlin.map' call
|
|
468
553
|
var tmp;
|
|
469
554
|
if (_Result___get_isSuccess__impl__sndoy8(densityTable)) {
|
|
@@ -492,7 +577,7 @@
|
|
|
492
577
|
// Inline function 'kotlin.arrayOf' call
|
|
493
578
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
494
579
|
// Inline function 'kotlin.js.asDynamic' call
|
|
495
|
-
tmp.
|
|
580
|
+
tmp.y1g_1 = [null, tmp_1, lazy(tmp_2, TableSchema$Companion$$childSerializers$_anonymous__48gmsb_0)];
|
|
496
581
|
}
|
|
497
582
|
var Companion_instance_0;
|
|
498
583
|
function Companion_getInstance() {
|
|
@@ -506,22 +591,22 @@
|
|
|
506
591
|
tmp0_serialDesc.rs('prepared_at', false);
|
|
507
592
|
tmp0_serialDesc.rs('key', false);
|
|
508
593
|
tmp0_serialDesc.rs('values', false);
|
|
509
|
-
this.
|
|
594
|
+
this.z1g_1 = tmp0_serialDesc;
|
|
510
595
|
}
|
|
511
|
-
protoOf($serializer).
|
|
512
|
-
var tmp0_desc = this.
|
|
596
|
+
protoOf($serializer).a1h = function (encoder, value) {
|
|
597
|
+
var tmp0_desc = this.z1g_1;
|
|
513
598
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
514
|
-
var tmp2_cached = Companion_getInstance().
|
|
515
|
-
tmp1_output.wm(tmp0_desc, 0, value.
|
|
516
|
-
tmp1_output.ym(tmp0_desc, 1, tmp2_cached[1].h2(), value.
|
|
517
|
-
tmp1_output.ym(tmp0_desc, 2, tmp2_cached[2].h2(), value.
|
|
599
|
+
var tmp2_cached = Companion_getInstance().y1g_1;
|
|
600
|
+
tmp1_output.wm(tmp0_desc, 0, value.b1h_1);
|
|
601
|
+
tmp1_output.ym(tmp0_desc, 1, tmp2_cached[1].h2(), value.c1h_1);
|
|
602
|
+
tmp1_output.ym(tmp0_desc, 2, tmp2_cached[2].h2(), value.d1h_1);
|
|
518
603
|
tmp1_output.jl(tmp0_desc);
|
|
519
604
|
};
|
|
520
605
|
protoOf($serializer).li = function (encoder, value) {
|
|
521
|
-
return this.
|
|
606
|
+
return this.a1h(encoder, value instanceof TableSchema ? value : THROW_CCE());
|
|
522
607
|
};
|
|
523
608
|
protoOf($serializer).mi = function (decoder) {
|
|
524
|
-
var tmp0_desc = this.
|
|
609
|
+
var tmp0_desc = this.z1g_1;
|
|
525
610
|
var tmp1_flag = true;
|
|
526
611
|
var tmp2_index = 0;
|
|
527
612
|
var tmp3_bitMask0 = 0;
|
|
@@ -529,7 +614,7 @@
|
|
|
529
614
|
var tmp5_local1 = null;
|
|
530
615
|
var tmp6_local2 = null;
|
|
531
616
|
var tmp7_input = decoder.il(tmp0_desc);
|
|
532
|
-
var tmp8_cached = Companion_getInstance().
|
|
617
|
+
var tmp8_cached = Companion_getInstance().y1g_1;
|
|
533
618
|
if (tmp7_input.yl()) {
|
|
534
619
|
tmp4_local0 = tmp7_input.sl(tmp0_desc, 0);
|
|
535
620
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -564,10 +649,10 @@
|
|
|
564
649
|
return TableSchema_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
565
650
|
};
|
|
566
651
|
protoOf($serializer).ki = function () {
|
|
567
|
-
return this.
|
|
652
|
+
return this.z1g_1;
|
|
568
653
|
};
|
|
569
654
|
protoOf($serializer).ts = function () {
|
|
570
|
-
var tmp0_cached = Companion_getInstance().
|
|
655
|
+
var tmp0_cached = Companion_getInstance().y1g_1;
|
|
571
656
|
// Inline function 'kotlin.arrayOf' call
|
|
572
657
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
573
658
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -581,11 +666,11 @@
|
|
|
581
666
|
}
|
|
582
667
|
function TableSchema_init_$Init$(seen0, preparedAt, key, values, serializationConstructorMarker, $this) {
|
|
583
668
|
if (!(7 === (7 & seen0))) {
|
|
584
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance().
|
|
669
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance().z1g_1);
|
|
585
670
|
}
|
|
586
|
-
$this.
|
|
587
|
-
$this.
|
|
588
|
-
$this.
|
|
671
|
+
$this.b1h_1 = preparedAt;
|
|
672
|
+
$this.c1h_1 = key;
|
|
673
|
+
$this.d1h_1 = values;
|
|
589
674
|
return $this;
|
|
590
675
|
}
|
|
591
676
|
function TableSchema_init_$Create$(seen0, preparedAt, key, values, serializationConstructorMarker) {
|
|
@@ -593,17 +678,17 @@
|
|
|
593
678
|
}
|
|
594
679
|
function TableSchema(preparedAt, key, values) {
|
|
595
680
|
Companion_getInstance();
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
681
|
+
this.b1h_1 = preparedAt;
|
|
682
|
+
this.c1h_1 = key;
|
|
683
|
+
this.d1h_1 = values;
|
|
599
684
|
}
|
|
600
685
|
protoOf(TableSchema).toString = function () {
|
|
601
|
-
return 'TableSchema(preparedAt=' + this.
|
|
686
|
+
return 'TableSchema(preparedAt=' + this.b1h_1 + ', key=' + toString_0(this.c1h_1) + ', values=' + toString_0(this.d1h_1) + ')';
|
|
602
687
|
};
|
|
603
688
|
protoOf(TableSchema).hashCode = function () {
|
|
604
|
-
var result = getStringHashCode(this.
|
|
605
|
-
result = imul(result, 31) + hashCode(this.b1h_1) | 0;
|
|
689
|
+
var result = getStringHashCode(this.b1h_1);
|
|
606
690
|
result = imul(result, 31) + hashCode(this.c1h_1) | 0;
|
|
691
|
+
result = imul(result, 31) + hashCode(this.d1h_1) | 0;
|
|
607
692
|
return result;
|
|
608
693
|
};
|
|
609
694
|
protoOf(TableSchema).equals = function (other) {
|
|
@@ -611,12 +696,12 @@
|
|
|
611
696
|
return true;
|
|
612
697
|
if (!(other instanceof TableSchema))
|
|
613
698
|
return false;
|
|
614
|
-
if (!(this.
|
|
615
|
-
return false;
|
|
616
|
-
if (!equals(this.b1h_1, other.b1h_1))
|
|
699
|
+
if (!(this.b1h_1 === other.b1h_1))
|
|
617
700
|
return false;
|
|
618
701
|
if (!equals(this.c1h_1, other.c1h_1))
|
|
619
702
|
return false;
|
|
703
|
+
if (!equals(this.d1h_1, other.d1h_1))
|
|
704
|
+
return false;
|
|
620
705
|
return true;
|
|
621
706
|
};
|
|
622
707
|
function Companion_0() {
|
|
@@ -632,22 +717,22 @@
|
|
|
632
717
|
tmp0_serialDesc.rs('name', false);
|
|
633
718
|
tmp0_serialDesc.rs('normalised_name', false);
|
|
634
719
|
tmp0_serialDesc.rs('density', false);
|
|
635
|
-
this.
|
|
720
|
+
this.e1h_1 = tmp0_serialDesc;
|
|
636
721
|
}
|
|
637
|
-
protoOf($serializer_0).
|
|
638
|
-
var tmp0_desc = this.
|
|
722
|
+
protoOf($serializer_0).f1h = function (encoder, value) {
|
|
723
|
+
var tmp0_desc = this.e1h_1;
|
|
639
724
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
640
|
-
tmp1_output.rm(tmp0_desc, 0, value.
|
|
641
|
-
tmp1_output.wm(tmp0_desc, 1, value.
|
|
642
|
-
tmp1_output.wm(tmp0_desc, 2, value.
|
|
643
|
-
tmp1_output.tm(tmp0_desc, 3, value.
|
|
725
|
+
tmp1_output.rm(tmp0_desc, 0, value.g1h_1);
|
|
726
|
+
tmp1_output.wm(tmp0_desc, 1, value.h1h_1);
|
|
727
|
+
tmp1_output.wm(tmp0_desc, 2, value.i1h_1);
|
|
728
|
+
tmp1_output.tm(tmp0_desc, 3, value.j1h_1);
|
|
644
729
|
tmp1_output.jl(tmp0_desc);
|
|
645
730
|
};
|
|
646
731
|
protoOf($serializer_0).li = function (encoder, value) {
|
|
647
|
-
return this.
|
|
732
|
+
return this.f1h(encoder, value instanceof Ingredient ? value : THROW_CCE());
|
|
648
733
|
};
|
|
649
734
|
protoOf($serializer_0).mi = function (decoder) {
|
|
650
|
-
var tmp0_desc = this.
|
|
735
|
+
var tmp0_desc = this.e1h_1;
|
|
651
736
|
var tmp1_flag = true;
|
|
652
737
|
var tmp2_index = 0;
|
|
653
738
|
var tmp3_bitMask0 = 0;
|
|
@@ -696,7 +781,7 @@
|
|
|
696
781
|
return Ingredient_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
697
782
|
};
|
|
698
783
|
protoOf($serializer_0).ki = function () {
|
|
699
|
-
return this.
|
|
784
|
+
return this.e1h_1;
|
|
700
785
|
};
|
|
701
786
|
protoOf($serializer_0).ts = function () {
|
|
702
787
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -712,31 +797,31 @@
|
|
|
712
797
|
}
|
|
713
798
|
function Ingredient_init_$Init$(seen0, id, name, normalised_name, density, serializationConstructorMarker, $this) {
|
|
714
799
|
if (!(15 === (15 & seen0))) {
|
|
715
|
-
throwMissingFieldException(seen0, 15, $serializer_getInstance_0().
|
|
800
|
+
throwMissingFieldException(seen0, 15, $serializer_getInstance_0().e1h_1);
|
|
716
801
|
}
|
|
717
|
-
$this.
|
|
718
|
-
$this.
|
|
719
|
-
$this.
|
|
720
|
-
$this.
|
|
802
|
+
$this.g1h_1 = id;
|
|
803
|
+
$this.h1h_1 = name;
|
|
804
|
+
$this.i1h_1 = normalised_name;
|
|
805
|
+
$this.j1h_1 = density;
|
|
721
806
|
return $this;
|
|
722
807
|
}
|
|
723
808
|
function Ingredient_init_$Create$(seen0, id, name, normalised_name, density, serializationConstructorMarker) {
|
|
724
809
|
return Ingredient_init_$Init$(seen0, id, name, normalised_name, density, serializationConstructorMarker, objectCreate(protoOf(Ingredient)));
|
|
725
810
|
}
|
|
726
811
|
function Ingredient(id, name, normalised_name, density) {
|
|
727
|
-
this.
|
|
728
|
-
this.
|
|
729
|
-
this.
|
|
730
|
-
this.
|
|
812
|
+
this.g1h_1 = id;
|
|
813
|
+
this.h1h_1 = name;
|
|
814
|
+
this.i1h_1 = normalised_name;
|
|
815
|
+
this.j1h_1 = density;
|
|
731
816
|
}
|
|
732
817
|
protoOf(Ingredient).toString = function () {
|
|
733
|
-
return 'Ingredient(id=' + this.
|
|
818
|
+
return 'Ingredient(id=' + this.g1h_1 + ', name=' + this.h1h_1 + ', normalised_name=' + this.i1h_1 + ', density=' + this.j1h_1 + ')';
|
|
734
819
|
};
|
|
735
820
|
protoOf(Ingredient).hashCode = function () {
|
|
736
|
-
var result = this.
|
|
737
|
-
result = imul(result, 31) + getStringHashCode(this.g1h_1) | 0;
|
|
821
|
+
var result = this.g1h_1;
|
|
738
822
|
result = imul(result, 31) + getStringHashCode(this.h1h_1) | 0;
|
|
739
|
-
result = imul(result, 31) +
|
|
823
|
+
result = imul(result, 31) + getStringHashCode(this.i1h_1) | 0;
|
|
824
|
+
result = imul(result, 31) + getNumberHashCode(this.j1h_1) | 0;
|
|
740
825
|
return result;
|
|
741
826
|
};
|
|
742
827
|
protoOf(Ingredient).equals = function (other) {
|
|
@@ -744,13 +829,13 @@
|
|
|
744
829
|
return true;
|
|
745
830
|
if (!(other instanceof Ingredient))
|
|
746
831
|
return false;
|
|
747
|
-
if (!(this.f1h_1 === other.f1h_1))
|
|
748
|
-
return false;
|
|
749
832
|
if (!(this.g1h_1 === other.g1h_1))
|
|
750
833
|
return false;
|
|
751
834
|
if (!(this.h1h_1 === other.h1h_1))
|
|
752
835
|
return false;
|
|
753
|
-
if (!
|
|
836
|
+
if (!(this.i1h_1 === other.i1h_1))
|
|
837
|
+
return false;
|
|
838
|
+
if (!equals(this.j1h_1, other.j1h_1))
|
|
754
839
|
return false;
|
|
755
840
|
return true;
|
|
756
841
|
};
|
|
@@ -766,7 +851,7 @@
|
|
|
766
851
|
tmp = null;
|
|
767
852
|
} else {
|
|
768
853
|
// Inline function 'kotlin.let' call
|
|
769
|
-
return tmp0_safe_receiver.
|
|
854
|
+
return tmp0_safe_receiver.j1h_1;
|
|
770
855
|
}
|
|
771
856
|
return tmp;
|
|
772
857
|
};
|
|
@@ -784,7 +869,7 @@
|
|
|
784
869
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
785
870
|
var data = this_0.u11(tmp$ret$1, raw);
|
|
786
871
|
// Inline function 'kotlin.collections.map' call
|
|
787
|
-
var this_3 = data.
|
|
872
|
+
var this_3 = data.d1h_1;
|
|
788
873
|
// Inline function 'kotlin.collections.mapTo' call
|
|
789
874
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
790
875
|
var _iterator__ex2g4s = this_3.s();
|
|
@@ -802,7 +887,7 @@
|
|
|
802
887
|
while (_iterator__ex2g4s_0.t()) {
|
|
803
888
|
var element = _iterator__ex2g4s_0.u();
|
|
804
889
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
805
|
-
var pair = to(element.
|
|
890
|
+
var pair = to(element.i1h_1, element);
|
|
806
891
|
destination_0.o2(pair.fd_1, pair.gd_1);
|
|
807
892
|
}
|
|
808
893
|
var normalised_map = destination_0;
|
|
@@ -814,11 +899,11 @@
|
|
|
814
899
|
while (_iterator__ex2g4s_1.t()) {
|
|
815
900
|
var element_0 = _iterator__ex2g4s_1.u();
|
|
816
901
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
817
|
-
var pair_0 = to(element_0.
|
|
902
|
+
var pair_0 = to(element_0.h1h_1, element_0);
|
|
818
903
|
destination_1.o2(pair_0.fd_1, pair_0.gd_1);
|
|
819
904
|
}
|
|
820
905
|
var name_map = destination_1;
|
|
821
|
-
var table = new DensityTable(data.
|
|
906
|
+
var table = new DensityTable(data.b1h_1, normalised_map, name_map);
|
|
822
907
|
// Inline function 'kotlin.Companion.success' call
|
|
823
908
|
return _Result___init__impl__xyqfz8(table);
|
|
824
909
|
} catch ($p) {
|
|
@@ -926,7 +1011,7 @@
|
|
|
926
1011
|
// Inline function 'kotlin.arrayOf' call
|
|
927
1012
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
928
1013
|
// Inline function 'kotlin.js.asDynamic' call
|
|
929
|
-
tmp.
|
|
1014
|
+
tmp.k1h_1 = [null, tmp_1, null, tmp_3, tmp_5, null, tmp_7, tmp_9, null, null, null, null, tmp_11, tmp_13, null, tmp_15, tmp_17, tmp_19, tmp_21, tmp_23, null, lazy(tmp_24, RecipeV3$Companion$$childSerializers$_anonymous__7om4qn_11), null];
|
|
930
1015
|
}
|
|
931
1016
|
var Companion_instance_2;
|
|
932
1017
|
function Companion_getInstance_1() {
|
|
@@ -960,86 +1045,86 @@
|
|
|
960
1045
|
tmp0_serialDesc.rs('title', true);
|
|
961
1046
|
tmp0_serialDesc.rs('utensilsAndApplianceIds', true);
|
|
962
1047
|
tmp0_serialDesc.rs('webPublicationDate', true);
|
|
963
|
-
this.
|
|
1048
|
+
this.l1h_1 = tmp0_serialDesc;
|
|
964
1049
|
}
|
|
965
|
-
protoOf($serializer_1).
|
|
966
|
-
var tmp0_desc = this.
|
|
1050
|
+
protoOf($serializer_1).m1h = function (encoder, value) {
|
|
1051
|
+
var tmp0_desc = this.l1h_1;
|
|
967
1052
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
968
|
-
var tmp2_cached = Companion_getInstance_1().
|
|
969
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
970
|
-
tmp1_output.an(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
1053
|
+
var tmp2_cached = Companion_getInstance_1().k1h_1;
|
|
1054
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.j1f_1 == null)) {
|
|
1055
|
+
tmp1_output.an(tmp0_desc, 0, StringSerializer_getInstance(), value.j1f_1);
|
|
971
1056
|
}
|
|
972
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
973
|
-
tmp1_output.an(tmp0_desc, 1, tmp2_cached[1].h2(), value.
|
|
1057
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.k1f_1 == null)) {
|
|
1058
|
+
tmp1_output.an(tmp0_desc, 1, tmp2_cached[1].h2(), value.k1f_1);
|
|
974
1059
|
}
|
|
975
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
976
|
-
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1060
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.l1f_1 == null)) {
|
|
1061
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.l1f_1);
|
|
977
1062
|
}
|
|
978
|
-
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.
|
|
979
|
-
tmp1_output.an(tmp0_desc, 3, tmp2_cached[3].h2(), value.
|
|
1063
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.m1f_1 == null)) {
|
|
1064
|
+
tmp1_output.an(tmp0_desc, 3, tmp2_cached[3].h2(), value.m1f_1);
|
|
980
1065
|
}
|
|
981
|
-
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.
|
|
982
|
-
tmp1_output.an(tmp0_desc, 4, tmp2_cached[4].h2(), value.
|
|
1066
|
+
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.n1f_1 == null)) {
|
|
1067
|
+
tmp1_output.an(tmp0_desc, 4, tmp2_cached[4].h2(), value.n1f_1);
|
|
983
1068
|
}
|
|
984
|
-
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.
|
|
985
|
-
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
1069
|
+
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.o1f_1 == null)) {
|
|
1070
|
+
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.o1f_1);
|
|
986
1071
|
}
|
|
987
|
-
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.
|
|
988
|
-
tmp1_output.an(tmp0_desc, 6, tmp2_cached[6].h2(), value.
|
|
1072
|
+
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.p1f_1 == null)) {
|
|
1073
|
+
tmp1_output.an(tmp0_desc, 6, tmp2_cached[6].h2(), value.p1f_1);
|
|
989
1074
|
}
|
|
990
|
-
if (tmp1_output.en(tmp0_desc, 7) ? true : !(value.
|
|
991
|
-
tmp1_output.an(tmp0_desc, 7, tmp2_cached[7].h2(), value.
|
|
1075
|
+
if (tmp1_output.en(tmp0_desc, 7) ? true : !(value.q1f_1 == null)) {
|
|
1076
|
+
tmp1_output.an(tmp0_desc, 7, tmp2_cached[7].h2(), value.q1f_1);
|
|
992
1077
|
}
|
|
993
|
-
if (tmp1_output.en(tmp0_desc, 8) ? true : !(value.
|
|
994
|
-
tmp1_output.an(tmp0_desc, 8, StringSerializer_getInstance(), value.
|
|
1078
|
+
if (tmp1_output.en(tmp0_desc, 8) ? true : !(value.r1f_1 == null)) {
|
|
1079
|
+
tmp1_output.an(tmp0_desc, 8, StringSerializer_getInstance(), value.r1f_1);
|
|
995
1080
|
}
|
|
996
|
-
if (tmp1_output.en(tmp0_desc, 9) ? true : !(value.
|
|
997
|
-
tmp1_output.an(tmp0_desc, 9, StringSerializer_getInstance(), value.
|
|
1081
|
+
if (tmp1_output.en(tmp0_desc, 9) ? true : !(value.s1f_1 == null)) {
|
|
1082
|
+
tmp1_output.an(tmp0_desc, 9, StringSerializer_getInstance(), value.s1f_1);
|
|
998
1083
|
}
|
|
999
|
-
if (tmp1_output.en(tmp0_desc, 10) ? true : !(value.
|
|
1000
|
-
tmp1_output.an(tmp0_desc, 10, $serializer_getInstance_3(), value.
|
|
1084
|
+
if (tmp1_output.en(tmp0_desc, 10) ? true : !(value.t1f_1 == null)) {
|
|
1085
|
+
tmp1_output.an(tmp0_desc, 10, $serializer_getInstance_3(), value.t1f_1);
|
|
1001
1086
|
}
|
|
1002
|
-
tmp1_output.wm(tmp0_desc, 11, value.
|
|
1003
|
-
if (tmp1_output.en(tmp0_desc, 12) ? true : !(value.
|
|
1004
|
-
tmp1_output.an(tmp0_desc, 12, tmp2_cached[12].h2(), value.
|
|
1087
|
+
tmp1_output.wm(tmp0_desc, 11, value.u1f_1);
|
|
1088
|
+
if (tmp1_output.en(tmp0_desc, 12) ? true : !(value.v1f_1 == null)) {
|
|
1089
|
+
tmp1_output.an(tmp0_desc, 12, tmp2_cached[12].h2(), value.v1f_1);
|
|
1005
1090
|
}
|
|
1006
|
-
if (tmp1_output.en(tmp0_desc, 13) ? true : !(value.
|
|
1007
|
-
tmp1_output.an(tmp0_desc, 13, tmp2_cached[13].h2(), value.
|
|
1091
|
+
if (tmp1_output.en(tmp0_desc, 13) ? true : !(value.w1f_1 == null)) {
|
|
1092
|
+
tmp1_output.an(tmp0_desc, 13, tmp2_cached[13].h2(), value.w1f_1);
|
|
1008
1093
|
}
|
|
1009
|
-
if (tmp1_output.en(tmp0_desc, 14) ? true : !(value.
|
|
1010
|
-
tmp1_output.an(tmp0_desc, 14, BooleanSerializer_getInstance(), value.
|
|
1094
|
+
if (tmp1_output.en(tmp0_desc, 14) ? true : !(value.x1f_1 == null)) {
|
|
1095
|
+
tmp1_output.an(tmp0_desc, 14, BooleanSerializer_getInstance(), value.x1f_1);
|
|
1011
1096
|
}
|
|
1012
|
-
if (tmp1_output.en(tmp0_desc, 15) ? true : !(value.
|
|
1013
|
-
tmp1_output.an(tmp0_desc, 15, tmp2_cached[15].h2(), value.
|
|
1097
|
+
if (tmp1_output.en(tmp0_desc, 15) ? true : !(value.y1f_1 == null)) {
|
|
1098
|
+
tmp1_output.an(tmp0_desc, 15, tmp2_cached[15].h2(), value.y1f_1);
|
|
1014
1099
|
}
|
|
1015
|
-
if (tmp1_output.en(tmp0_desc, 16) ? true : !(value.
|
|
1016
|
-
tmp1_output.an(tmp0_desc, 16, tmp2_cached[16].h2(), value.
|
|
1100
|
+
if (tmp1_output.en(tmp0_desc, 16) ? true : !(value.z1f_1 == null)) {
|
|
1101
|
+
tmp1_output.an(tmp0_desc, 16, tmp2_cached[16].h2(), value.z1f_1);
|
|
1017
1102
|
}
|
|
1018
|
-
if (tmp1_output.en(tmp0_desc, 17) ? true : !(value.
|
|
1019
|
-
tmp1_output.an(tmp0_desc, 17, tmp2_cached[17].h2(), value.
|
|
1103
|
+
if (tmp1_output.en(tmp0_desc, 17) ? true : !(value.a1g_1 == null)) {
|
|
1104
|
+
tmp1_output.an(tmp0_desc, 17, tmp2_cached[17].h2(), value.a1g_1);
|
|
1020
1105
|
}
|
|
1021
|
-
if (tmp1_output.en(tmp0_desc, 18) ? true : !(value.
|
|
1022
|
-
tmp1_output.an(tmp0_desc, 18, tmp2_cached[18].h2(), value.
|
|
1106
|
+
if (tmp1_output.en(tmp0_desc, 18) ? true : !(value.b1g_1 == null)) {
|
|
1107
|
+
tmp1_output.an(tmp0_desc, 18, tmp2_cached[18].h2(), value.b1g_1);
|
|
1023
1108
|
}
|
|
1024
|
-
if (tmp1_output.en(tmp0_desc, 19) ? true : !(value.
|
|
1025
|
-
tmp1_output.an(tmp0_desc, 19, tmp2_cached[19].h2(), value.
|
|
1109
|
+
if (tmp1_output.en(tmp0_desc, 19) ? true : !(value.c1g_1 == null)) {
|
|
1110
|
+
tmp1_output.an(tmp0_desc, 19, tmp2_cached[19].h2(), value.c1g_1);
|
|
1026
1111
|
}
|
|
1027
|
-
if (tmp1_output.en(tmp0_desc, 20) ? true : !(value.
|
|
1028
|
-
tmp1_output.an(tmp0_desc, 20, StringSerializer_getInstance(), value.
|
|
1112
|
+
if (tmp1_output.en(tmp0_desc, 20) ? true : !(value.d1g_1 == null)) {
|
|
1113
|
+
tmp1_output.an(tmp0_desc, 20, StringSerializer_getInstance(), value.d1g_1);
|
|
1029
1114
|
}
|
|
1030
|
-
if (tmp1_output.en(tmp0_desc, 21) ? true : !(value.
|
|
1031
|
-
tmp1_output.an(tmp0_desc, 21, tmp2_cached[21].h2(), value.
|
|
1115
|
+
if (tmp1_output.en(tmp0_desc, 21) ? true : !(value.e1g_1 == null)) {
|
|
1116
|
+
tmp1_output.an(tmp0_desc, 21, tmp2_cached[21].h2(), value.e1g_1);
|
|
1032
1117
|
}
|
|
1033
|
-
if (tmp1_output.en(tmp0_desc, 22) ? true : !(value.
|
|
1034
|
-
tmp1_output.an(tmp0_desc, 22, StringSerializer_getInstance(), value.
|
|
1118
|
+
if (tmp1_output.en(tmp0_desc, 22) ? true : !(value.f1g_1 == null)) {
|
|
1119
|
+
tmp1_output.an(tmp0_desc, 22, StringSerializer_getInstance(), value.f1g_1);
|
|
1035
1120
|
}
|
|
1036
1121
|
tmp1_output.jl(tmp0_desc);
|
|
1037
1122
|
};
|
|
1038
1123
|
protoOf($serializer_1).li = function (encoder, value) {
|
|
1039
|
-
return this.
|
|
1124
|
+
return this.m1h(encoder, value instanceof RecipeV3 ? value : THROW_CCE());
|
|
1040
1125
|
};
|
|
1041
1126
|
protoOf($serializer_1).mi = function (decoder) {
|
|
1042
|
-
var tmp0_desc = this.
|
|
1127
|
+
var tmp0_desc = this.l1h_1;
|
|
1043
1128
|
var tmp1_flag = true;
|
|
1044
1129
|
var tmp2_index = 0;
|
|
1045
1130
|
var tmp3_bitMask0 = 0;
|
|
@@ -1067,7 +1152,7 @@
|
|
|
1067
1152
|
var tmp25_local21 = null;
|
|
1068
1153
|
var tmp26_local22 = null;
|
|
1069
1154
|
var tmp27_input = decoder.il(tmp0_desc);
|
|
1070
|
-
var tmp28_cached = Companion_getInstance_1().
|
|
1155
|
+
var tmp28_cached = Companion_getInstance_1().k1h_1;
|
|
1071
1156
|
if (tmp27_input.yl()) {
|
|
1072
1157
|
tmp4_local0 = tmp27_input.wl(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1073
1158
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1222,10 +1307,10 @@
|
|
|
1222
1307
|
return RecipeV3_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, null);
|
|
1223
1308
|
};
|
|
1224
1309
|
protoOf($serializer_1).ki = function () {
|
|
1225
|
-
return this.
|
|
1310
|
+
return this.l1h_1;
|
|
1226
1311
|
};
|
|
1227
1312
|
protoOf($serializer_1).ts = function () {
|
|
1228
|
-
var tmp0_cached = Companion_getInstance_1().
|
|
1313
|
+
var tmp0_cached = Companion_getInstance_1().k1h_1;
|
|
1229
1314
|
// Inline function 'kotlin.arrayOf' call
|
|
1230
1315
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1231
1316
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1239,97 +1324,97 @@
|
|
|
1239
1324
|
}
|
|
1240
1325
|
function RecipeV3_init_$Init$(seen0, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, serializationConstructorMarker, $this) {
|
|
1241
1326
|
if (!(2048 === (2048 & seen0))) {
|
|
1242
|
-
throwMissingFieldException(seen0, 2048, $serializer_getInstance_1().
|
|
1327
|
+
throwMissingFieldException(seen0, 2048, $serializer_getInstance_1().l1h_1);
|
|
1243
1328
|
}
|
|
1244
1329
|
if (0 === (seen0 & 1))
|
|
1245
|
-
$this.
|
|
1330
|
+
$this.j1f_1 = null;
|
|
1246
1331
|
else
|
|
1247
|
-
$this.
|
|
1332
|
+
$this.j1f_1 = bookCredit;
|
|
1248
1333
|
if (0 === (seen0 & 2))
|
|
1249
|
-
$this.
|
|
1334
|
+
$this.k1f_1 = null;
|
|
1250
1335
|
else
|
|
1251
|
-
$this.
|
|
1336
|
+
$this.k1f_1 = byline;
|
|
1252
1337
|
if (0 === (seen0 & 4))
|
|
1253
|
-
$this.
|
|
1338
|
+
$this.l1f_1 = null;
|
|
1254
1339
|
else
|
|
1255
|
-
$this.
|
|
1340
|
+
$this.l1f_1 = canonicalArticle;
|
|
1256
1341
|
if (0 === (seen0 & 8))
|
|
1257
|
-
$this.
|
|
1342
|
+
$this.m1f_1 = null;
|
|
1258
1343
|
else
|
|
1259
|
-
$this.
|
|
1344
|
+
$this.m1f_1 = celebrationIds;
|
|
1260
1345
|
if (0 === (seen0 & 16))
|
|
1261
|
-
$this.
|
|
1346
|
+
$this.n1f_1 = null;
|
|
1262
1347
|
else
|
|
1263
|
-
$this.
|
|
1348
|
+
$this.n1f_1 = commerceCtas;
|
|
1264
1349
|
if (0 === (seen0 & 32))
|
|
1265
|
-
$this.
|
|
1350
|
+
$this.o1f_1 = null;
|
|
1266
1351
|
else
|
|
1267
|
-
$this.
|
|
1352
|
+
$this.o1f_1 = composerId;
|
|
1268
1353
|
if (0 === (seen0 & 64))
|
|
1269
|
-
$this.
|
|
1354
|
+
$this.p1f_1 = null;
|
|
1270
1355
|
else
|
|
1271
|
-
$this.
|
|
1356
|
+
$this.p1f_1 = contributors;
|
|
1272
1357
|
if (0 === (seen0 & 128))
|
|
1273
|
-
$this.
|
|
1358
|
+
$this.q1f_1 = null;
|
|
1274
1359
|
else
|
|
1275
|
-
$this.
|
|
1360
|
+
$this.q1f_1 = cuisineIds;
|
|
1276
1361
|
if (0 === (seen0 & 256))
|
|
1277
|
-
$this.
|
|
1362
|
+
$this.r1f_1 = null;
|
|
1278
1363
|
else
|
|
1279
|
-
$this.
|
|
1364
|
+
$this.r1f_1 = description;
|
|
1280
1365
|
if (0 === (seen0 & 512))
|
|
1281
|
-
$this.
|
|
1366
|
+
$this.s1f_1 = null;
|
|
1282
1367
|
else
|
|
1283
|
-
$this.
|
|
1368
|
+
$this.s1f_1 = difficultyLevel;
|
|
1284
1369
|
if (0 === (seen0 & 1024))
|
|
1285
|
-
$this.
|
|
1370
|
+
$this.t1f_1 = null;
|
|
1286
1371
|
else
|
|
1287
|
-
$this.
|
|
1288
|
-
$this.
|
|
1372
|
+
$this.t1f_1 = featuredImage;
|
|
1373
|
+
$this.u1f_1 = id;
|
|
1289
1374
|
if (0 === (seen0 & 4096))
|
|
1290
|
-
$this.
|
|
1375
|
+
$this.v1f_1 = null;
|
|
1291
1376
|
else
|
|
1292
|
-
$this.
|
|
1377
|
+
$this.v1f_1 = ingredients;
|
|
1293
1378
|
if (0 === (seen0 & 8192))
|
|
1294
|
-
$this.
|
|
1379
|
+
$this.w1f_1 = null;
|
|
1295
1380
|
else
|
|
1296
|
-
$this.
|
|
1381
|
+
$this.w1f_1 = instructions;
|
|
1297
1382
|
if (0 === (seen0 & 16384))
|
|
1298
|
-
$this.
|
|
1383
|
+
$this.x1f_1 = null;
|
|
1299
1384
|
else
|
|
1300
|
-
$this.
|
|
1385
|
+
$this.x1f_1 = isAppReady;
|
|
1301
1386
|
if (0 === (seen0 & 32768))
|
|
1302
|
-
$this.
|
|
1387
|
+
$this.y1f_1 = null;
|
|
1303
1388
|
else
|
|
1304
|
-
$this.
|
|
1389
|
+
$this.y1f_1 = mealTypeIds;
|
|
1305
1390
|
if (0 === (seen0 & 65536))
|
|
1306
|
-
$this.
|
|
1391
|
+
$this.z1f_1 = null;
|
|
1307
1392
|
else
|
|
1308
|
-
$this.
|
|
1393
|
+
$this.z1f_1 = serves;
|
|
1309
1394
|
if (0 === (seen0 & 131072))
|
|
1310
|
-
$this.
|
|
1395
|
+
$this.a1g_1 = null;
|
|
1311
1396
|
else
|
|
1312
|
-
$this.
|
|
1397
|
+
$this.a1g_1 = suitableForDietIds;
|
|
1313
1398
|
if (0 === (seen0 & 262144))
|
|
1314
|
-
$this.
|
|
1399
|
+
$this.b1g_1 = null;
|
|
1315
1400
|
else
|
|
1316
|
-
$this.
|
|
1401
|
+
$this.b1g_1 = techniquesUsedIds;
|
|
1317
1402
|
if (0 === (seen0 & 524288))
|
|
1318
|
-
$this.
|
|
1403
|
+
$this.c1g_1 = null;
|
|
1319
1404
|
else
|
|
1320
|
-
$this.
|
|
1405
|
+
$this.c1g_1 = timings;
|
|
1321
1406
|
if (0 === (seen0 & 1048576))
|
|
1322
|
-
$this.
|
|
1407
|
+
$this.d1g_1 = null;
|
|
1323
1408
|
else
|
|
1324
|
-
$this.
|
|
1409
|
+
$this.d1g_1 = title;
|
|
1325
1410
|
if (0 === (seen0 & 2097152))
|
|
1326
|
-
$this.
|
|
1411
|
+
$this.e1g_1 = null;
|
|
1327
1412
|
else
|
|
1328
|
-
$this.
|
|
1413
|
+
$this.e1g_1 = utensilsAndApplianceIds;
|
|
1329
1414
|
if (0 === (seen0 & 4194304))
|
|
1330
|
-
$this.
|
|
1415
|
+
$this.f1g_1 = null;
|
|
1331
1416
|
else
|
|
1332
|
-
$this.
|
|
1417
|
+
$this.f1g_1 = webPublicationDate;
|
|
1333
1418
|
return $this;
|
|
1334
1419
|
}
|
|
1335
1420
|
function RecipeV3_init_$Create$(seen0, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, serializationConstructorMarker) {
|
|
@@ -1359,86 +1444,86 @@
|
|
|
1359
1444
|
title = title === VOID ? null : title;
|
|
1360
1445
|
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? null : utensilsAndApplianceIds;
|
|
1361
1446
|
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1384
|
-
this.
|
|
1385
|
-
}
|
|
1386
|
-
protoOf(RecipeV3).
|
|
1447
|
+
this.j1f_1 = bookCredit;
|
|
1448
|
+
this.k1f_1 = byline;
|
|
1449
|
+
this.l1f_1 = canonicalArticle;
|
|
1450
|
+
this.m1f_1 = celebrationIds;
|
|
1451
|
+
this.n1f_1 = commerceCtas;
|
|
1452
|
+
this.o1f_1 = composerId;
|
|
1453
|
+
this.p1f_1 = contributors;
|
|
1454
|
+
this.q1f_1 = cuisineIds;
|
|
1455
|
+
this.r1f_1 = description;
|
|
1456
|
+
this.s1f_1 = difficultyLevel;
|
|
1457
|
+
this.t1f_1 = featuredImage;
|
|
1458
|
+
this.u1f_1 = id;
|
|
1459
|
+
this.v1f_1 = ingredients;
|
|
1460
|
+
this.w1f_1 = instructions;
|
|
1461
|
+
this.x1f_1 = isAppReady;
|
|
1462
|
+
this.y1f_1 = mealTypeIds;
|
|
1463
|
+
this.z1f_1 = serves;
|
|
1464
|
+
this.a1g_1 = suitableForDietIds;
|
|
1465
|
+
this.b1g_1 = techniquesUsedIds;
|
|
1466
|
+
this.c1g_1 = timings;
|
|
1467
|
+
this.d1g_1 = title;
|
|
1468
|
+
this.e1g_1 = utensilsAndApplianceIds;
|
|
1469
|
+
this.f1g_1 = webPublicationDate;
|
|
1470
|
+
}
|
|
1471
|
+
protoOf(RecipeV3).n1h = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) {
|
|
1387
1472
|
return new RecipeV3(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate);
|
|
1388
1473
|
};
|
|
1389
|
-
protoOf(RecipeV3).
|
|
1390
|
-
bookCredit = bookCredit === VOID ? this.
|
|
1391
|
-
byline = byline === VOID ? this.
|
|
1392
|
-
canonicalArticle = canonicalArticle === VOID ? this.
|
|
1393
|
-
celebrationIds = celebrationIds === VOID ? this.
|
|
1394
|
-
commerceCtas = commerceCtas === VOID ? this.
|
|
1395
|
-
composerId = composerId === VOID ? this.
|
|
1396
|
-
contributors = contributors === VOID ? this.
|
|
1397
|
-
cuisineIds = cuisineIds === VOID ? this.
|
|
1398
|
-
description = description === VOID ? this.
|
|
1399
|
-
difficultyLevel = difficultyLevel === VOID ? this.
|
|
1400
|
-
featuredImage = featuredImage === VOID ? this.
|
|
1401
|
-
id = id === VOID ? this.
|
|
1402
|
-
ingredients = ingredients === VOID ? this.
|
|
1403
|
-
instructions = instructions === VOID ? this.
|
|
1404
|
-
isAppReady = isAppReady === VOID ? this.
|
|
1405
|
-
mealTypeIds = mealTypeIds === VOID ? this.
|
|
1406
|
-
serves = serves === VOID ? this.
|
|
1407
|
-
suitableForDietIds = suitableForDietIds === VOID ? this.
|
|
1408
|
-
techniquesUsedIds = techniquesUsedIds === VOID ? this.
|
|
1409
|
-
timings = timings === VOID ? this.
|
|
1410
|
-
title = title === VOID ? this.
|
|
1411
|
-
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.
|
|
1412
|
-
webPublicationDate = webPublicationDate === VOID ? this.
|
|
1413
|
-
return $super === VOID ? this.
|
|
1474
|
+
protoOf(RecipeV3).x1g = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, $super) {
|
|
1475
|
+
bookCredit = bookCredit === VOID ? this.j1f_1 : bookCredit;
|
|
1476
|
+
byline = byline === VOID ? this.k1f_1 : byline;
|
|
1477
|
+
canonicalArticle = canonicalArticle === VOID ? this.l1f_1 : canonicalArticle;
|
|
1478
|
+
celebrationIds = celebrationIds === VOID ? this.m1f_1 : celebrationIds;
|
|
1479
|
+
commerceCtas = commerceCtas === VOID ? this.n1f_1 : commerceCtas;
|
|
1480
|
+
composerId = composerId === VOID ? this.o1f_1 : composerId;
|
|
1481
|
+
contributors = contributors === VOID ? this.p1f_1 : contributors;
|
|
1482
|
+
cuisineIds = cuisineIds === VOID ? this.q1f_1 : cuisineIds;
|
|
1483
|
+
description = description === VOID ? this.r1f_1 : description;
|
|
1484
|
+
difficultyLevel = difficultyLevel === VOID ? this.s1f_1 : difficultyLevel;
|
|
1485
|
+
featuredImage = featuredImage === VOID ? this.t1f_1 : featuredImage;
|
|
1486
|
+
id = id === VOID ? this.u1f_1 : id;
|
|
1487
|
+
ingredients = ingredients === VOID ? this.v1f_1 : ingredients;
|
|
1488
|
+
instructions = instructions === VOID ? this.w1f_1 : instructions;
|
|
1489
|
+
isAppReady = isAppReady === VOID ? this.x1f_1 : isAppReady;
|
|
1490
|
+
mealTypeIds = mealTypeIds === VOID ? this.y1f_1 : mealTypeIds;
|
|
1491
|
+
serves = serves === VOID ? this.z1f_1 : serves;
|
|
1492
|
+
suitableForDietIds = suitableForDietIds === VOID ? this.a1g_1 : suitableForDietIds;
|
|
1493
|
+
techniquesUsedIds = techniquesUsedIds === VOID ? this.b1g_1 : techniquesUsedIds;
|
|
1494
|
+
timings = timings === VOID ? this.c1g_1 : timings;
|
|
1495
|
+
title = title === VOID ? this.d1g_1 : title;
|
|
1496
|
+
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.e1g_1 : utensilsAndApplianceIds;
|
|
1497
|
+
webPublicationDate = webPublicationDate === VOID ? this.f1g_1 : webPublicationDate;
|
|
1498
|
+
return $super === VOID ? this.n1h(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) : $super.n1h.call(this, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate);
|
|
1414
1499
|
};
|
|
1415
1500
|
protoOf(RecipeV3).toString = function () {
|
|
1416
|
-
return 'RecipeV3(bookCredit=' + this.
|
|
1501
|
+
return 'RecipeV3(bookCredit=' + this.j1f_1 + ', byline=' + toString(this.k1f_1) + ', canonicalArticle=' + this.l1f_1 + ', celebrationIds=' + toString(this.m1f_1) + ', commerceCtas=' + toString(this.n1f_1) + ', composerId=' + this.o1f_1 + ', contributors=' + toString(this.p1f_1) + ', cuisineIds=' + toString(this.q1f_1) + ', description=' + this.r1f_1 + ', difficultyLevel=' + this.s1f_1 + ', featuredImage=' + toString(this.t1f_1) + ', id=' + this.u1f_1 + ', ingredients=' + toString(this.v1f_1) + ', instructions=' + toString(this.w1f_1) + ', isAppReady=' + this.x1f_1 + ', mealTypeIds=' + toString(this.y1f_1) + ', serves=' + toString(this.z1f_1) + ', suitableForDietIds=' + toString(this.a1g_1) + ', techniquesUsedIds=' + toString(this.b1g_1) + ', timings=' + toString(this.c1g_1) + ', title=' + this.d1g_1 + ', utensilsAndApplianceIds=' + toString(this.e1g_1) + ', webPublicationDate=' + this.f1g_1 + ')';
|
|
1417
1502
|
};
|
|
1418
1503
|
protoOf(RecipeV3).hashCode = function () {
|
|
1419
|
-
var result = this.
|
|
1420
|
-
result = imul(result, 31) + (this.
|
|
1421
|
-
result = imul(result, 31) + (this.
|
|
1422
|
-
result = imul(result, 31) + (this.l1f_1 == null ? 0 : hashCode(this.l1f_1)) | 0;
|
|
1504
|
+
var result = this.j1f_1 == null ? 0 : getStringHashCode(this.j1f_1);
|
|
1505
|
+
result = imul(result, 31) + (this.k1f_1 == null ? 0 : hashCode(this.k1f_1)) | 0;
|
|
1506
|
+
result = imul(result, 31) + (this.l1f_1 == null ? 0 : getStringHashCode(this.l1f_1)) | 0;
|
|
1423
1507
|
result = imul(result, 31) + (this.m1f_1 == null ? 0 : hashCode(this.m1f_1)) | 0;
|
|
1424
|
-
result = imul(result, 31) + (this.n1f_1 == null ? 0 :
|
|
1425
|
-
result = imul(result, 31) + (this.o1f_1 == null ? 0 :
|
|
1508
|
+
result = imul(result, 31) + (this.n1f_1 == null ? 0 : hashCode(this.n1f_1)) | 0;
|
|
1509
|
+
result = imul(result, 31) + (this.o1f_1 == null ? 0 : getStringHashCode(this.o1f_1)) | 0;
|
|
1426
1510
|
result = imul(result, 31) + (this.p1f_1 == null ? 0 : hashCode(this.p1f_1)) | 0;
|
|
1427
|
-
result = imul(result, 31) + (this.q1f_1 == null ? 0 :
|
|
1511
|
+
result = imul(result, 31) + (this.q1f_1 == null ? 0 : hashCode(this.q1f_1)) | 0;
|
|
1428
1512
|
result = imul(result, 31) + (this.r1f_1 == null ? 0 : getStringHashCode(this.r1f_1)) | 0;
|
|
1429
|
-
result = imul(result, 31) + (this.s1f_1 == null ? 0 : this.s1f_1
|
|
1430
|
-
result = imul(result, 31) +
|
|
1431
|
-
result = imul(result, 31) + (this.u1f_1
|
|
1513
|
+
result = imul(result, 31) + (this.s1f_1 == null ? 0 : getStringHashCode(this.s1f_1)) | 0;
|
|
1514
|
+
result = imul(result, 31) + (this.t1f_1 == null ? 0 : this.t1f_1.hashCode()) | 0;
|
|
1515
|
+
result = imul(result, 31) + getStringHashCode(this.u1f_1) | 0;
|
|
1432
1516
|
result = imul(result, 31) + (this.v1f_1 == null ? 0 : hashCode(this.v1f_1)) | 0;
|
|
1433
|
-
result = imul(result, 31) + (this.w1f_1 == null ? 0 :
|
|
1434
|
-
result = imul(result, 31) + (this.x1f_1 == null ? 0 :
|
|
1517
|
+
result = imul(result, 31) + (this.w1f_1 == null ? 0 : hashCode(this.w1f_1)) | 0;
|
|
1518
|
+
result = imul(result, 31) + (this.x1f_1 == null ? 0 : getBooleanHashCode(this.x1f_1)) | 0;
|
|
1435
1519
|
result = imul(result, 31) + (this.y1f_1 == null ? 0 : hashCode(this.y1f_1)) | 0;
|
|
1436
1520
|
result = imul(result, 31) + (this.z1f_1 == null ? 0 : hashCode(this.z1f_1)) | 0;
|
|
1437
1521
|
result = imul(result, 31) + (this.a1g_1 == null ? 0 : hashCode(this.a1g_1)) | 0;
|
|
1438
1522
|
result = imul(result, 31) + (this.b1g_1 == null ? 0 : hashCode(this.b1g_1)) | 0;
|
|
1439
|
-
result = imul(result, 31) + (this.c1g_1 == null ? 0 :
|
|
1440
|
-
result = imul(result, 31) + (this.d1g_1 == null ? 0 :
|
|
1441
|
-
result = imul(result, 31) + (this.e1g_1 == null ? 0 :
|
|
1523
|
+
result = imul(result, 31) + (this.c1g_1 == null ? 0 : hashCode(this.c1g_1)) | 0;
|
|
1524
|
+
result = imul(result, 31) + (this.d1g_1 == null ? 0 : getStringHashCode(this.d1g_1)) | 0;
|
|
1525
|
+
result = imul(result, 31) + (this.e1g_1 == null ? 0 : hashCode(this.e1g_1)) | 0;
|
|
1526
|
+
result = imul(result, 31) + (this.f1g_1 == null ? 0 : getStringHashCode(this.f1g_1)) | 0;
|
|
1442
1527
|
return result;
|
|
1443
1528
|
};
|
|
1444
1529
|
protoOf(RecipeV3).equals = function (other) {
|
|
@@ -1446,37 +1531,35 @@
|
|
|
1446
1531
|
return true;
|
|
1447
1532
|
if (!(other instanceof RecipeV3))
|
|
1448
1533
|
return false;
|
|
1449
|
-
if (!(this.
|
|
1450
|
-
return false;
|
|
1451
|
-
if (!equals(this.j1f_1, other.j1f_1))
|
|
1534
|
+
if (!(this.j1f_1 == other.j1f_1))
|
|
1452
1535
|
return false;
|
|
1453
|
-
if (!(this.k1f_1
|
|
1536
|
+
if (!equals(this.k1f_1, other.k1f_1))
|
|
1454
1537
|
return false;
|
|
1455
|
-
if (!
|
|
1538
|
+
if (!(this.l1f_1 == other.l1f_1))
|
|
1456
1539
|
return false;
|
|
1457
1540
|
if (!equals(this.m1f_1, other.m1f_1))
|
|
1458
1541
|
return false;
|
|
1459
|
-
if (!(this.n1f_1
|
|
1542
|
+
if (!equals(this.n1f_1, other.n1f_1))
|
|
1460
1543
|
return false;
|
|
1461
|
-
if (!
|
|
1544
|
+
if (!(this.o1f_1 == other.o1f_1))
|
|
1462
1545
|
return false;
|
|
1463
1546
|
if (!equals(this.p1f_1, other.p1f_1))
|
|
1464
1547
|
return false;
|
|
1465
|
-
if (!(this.q1f_1
|
|
1548
|
+
if (!equals(this.q1f_1, other.q1f_1))
|
|
1466
1549
|
return false;
|
|
1467
1550
|
if (!(this.r1f_1 == other.r1f_1))
|
|
1468
1551
|
return false;
|
|
1469
|
-
if (!
|
|
1552
|
+
if (!(this.s1f_1 == other.s1f_1))
|
|
1470
1553
|
return false;
|
|
1471
|
-
if (!(this.t1f_1
|
|
1554
|
+
if (!equals(this.t1f_1, other.t1f_1))
|
|
1472
1555
|
return false;
|
|
1473
|
-
if (!
|
|
1556
|
+
if (!(this.u1f_1 === other.u1f_1))
|
|
1474
1557
|
return false;
|
|
1475
1558
|
if (!equals(this.v1f_1, other.v1f_1))
|
|
1476
1559
|
return false;
|
|
1477
|
-
if (!(this.w1f_1
|
|
1560
|
+
if (!equals(this.w1f_1, other.w1f_1))
|
|
1478
1561
|
return false;
|
|
1479
|
-
if (!
|
|
1562
|
+
if (!(this.x1f_1 == other.x1f_1))
|
|
1480
1563
|
return false;
|
|
1481
1564
|
if (!equals(this.y1f_1, other.y1f_1))
|
|
1482
1565
|
return false;
|
|
@@ -1486,11 +1569,13 @@
|
|
|
1486
1569
|
return false;
|
|
1487
1570
|
if (!equals(this.b1g_1, other.b1g_1))
|
|
1488
1571
|
return false;
|
|
1489
|
-
if (!(this.c1g_1
|
|
1572
|
+
if (!equals(this.c1g_1, other.c1g_1))
|
|
1490
1573
|
return false;
|
|
1491
|
-
if (!
|
|
1574
|
+
if (!(this.d1g_1 == other.d1g_1))
|
|
1492
1575
|
return false;
|
|
1493
|
-
if (!(this.e1g_1
|
|
1576
|
+
if (!equals(this.e1g_1, other.e1g_1))
|
|
1577
|
+
return false;
|
|
1578
|
+
if (!(this.f1g_1 == other.f1g_1))
|
|
1494
1579
|
return false;
|
|
1495
1580
|
return true;
|
|
1496
1581
|
};
|
|
@@ -1500,21 +1585,21 @@
|
|
|
1500
1585
|
tmp0_serialDesc.rs('sponsorName', false);
|
|
1501
1586
|
tmp0_serialDesc.rs('territory', false);
|
|
1502
1587
|
tmp0_serialDesc.rs('url', false);
|
|
1503
|
-
this.
|
|
1588
|
+
this.o1h_1 = tmp0_serialDesc;
|
|
1504
1589
|
}
|
|
1505
|
-
protoOf($serializer_2).
|
|
1506
|
-
var tmp0_desc = this.
|
|
1590
|
+
protoOf($serializer_2).p1h = function (encoder, value) {
|
|
1591
|
+
var tmp0_desc = this.o1h_1;
|
|
1507
1592
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
1508
|
-
tmp1_output.wm(tmp0_desc, 0, value.
|
|
1509
|
-
tmp1_output.wm(tmp0_desc, 1, value.
|
|
1510
|
-
tmp1_output.wm(tmp0_desc, 2, value.
|
|
1593
|
+
tmp1_output.wm(tmp0_desc, 0, value.q1h_1);
|
|
1594
|
+
tmp1_output.wm(tmp0_desc, 1, value.r1h_1);
|
|
1595
|
+
tmp1_output.wm(tmp0_desc, 2, value.s1h_1);
|
|
1511
1596
|
tmp1_output.jl(tmp0_desc);
|
|
1512
1597
|
};
|
|
1513
1598
|
protoOf($serializer_2).li = function (encoder, value) {
|
|
1514
|
-
return this.
|
|
1599
|
+
return this.p1h(encoder, value instanceof CommerceCta ? value : THROW_CCE());
|
|
1515
1600
|
};
|
|
1516
1601
|
protoOf($serializer_2).mi = function (decoder) {
|
|
1517
|
-
var tmp0_desc = this.
|
|
1602
|
+
var tmp0_desc = this.o1h_1;
|
|
1518
1603
|
var tmp1_flag = true;
|
|
1519
1604
|
var tmp2_index = 0;
|
|
1520
1605
|
var tmp3_bitMask0 = 0;
|
|
@@ -1556,7 +1641,7 @@
|
|
|
1556
1641
|
return CommerceCta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1557
1642
|
};
|
|
1558
1643
|
protoOf($serializer_2).ki = function () {
|
|
1559
|
-
return this.
|
|
1644
|
+
return this.o1h_1;
|
|
1560
1645
|
};
|
|
1561
1646
|
protoOf($serializer_2).ts = function () {
|
|
1562
1647
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1572,11 +1657,11 @@
|
|
|
1572
1657
|
}
|
|
1573
1658
|
function CommerceCta_init_$Init$(seen0, sponsorName, territory, url, serializationConstructorMarker, $this) {
|
|
1574
1659
|
if (!(7 === (7 & seen0))) {
|
|
1575
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_2().
|
|
1660
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_2().o1h_1);
|
|
1576
1661
|
}
|
|
1577
|
-
$this.
|
|
1578
|
-
$this.
|
|
1579
|
-
$this.
|
|
1662
|
+
$this.q1h_1 = sponsorName;
|
|
1663
|
+
$this.r1h_1 = territory;
|
|
1664
|
+
$this.s1h_1 = url;
|
|
1580
1665
|
return $this;
|
|
1581
1666
|
}
|
|
1582
1667
|
function CommerceCta_init_$Create$(seen0, sponsorName, territory, url, serializationConstructorMarker) {
|
|
@@ -1585,12 +1670,12 @@
|
|
|
1585
1670
|
function CommerceCta() {
|
|
1586
1671
|
}
|
|
1587
1672
|
protoOf(CommerceCta).toString = function () {
|
|
1588
|
-
return 'CommerceCta(sponsorName=' + this.
|
|
1673
|
+
return 'CommerceCta(sponsorName=' + this.q1h_1 + ', territory=' + this.r1h_1 + ', url=' + this.s1h_1 + ')';
|
|
1589
1674
|
};
|
|
1590
1675
|
protoOf(CommerceCta).hashCode = function () {
|
|
1591
|
-
var result = getStringHashCode(this.
|
|
1592
|
-
result = imul(result, 31) + getStringHashCode(this.q1h_1) | 0;
|
|
1676
|
+
var result = getStringHashCode(this.q1h_1);
|
|
1593
1677
|
result = imul(result, 31) + getStringHashCode(this.r1h_1) | 0;
|
|
1678
|
+
result = imul(result, 31) + getStringHashCode(this.s1h_1) | 0;
|
|
1594
1679
|
return result;
|
|
1595
1680
|
};
|
|
1596
1681
|
protoOf(CommerceCta).equals = function (other) {
|
|
@@ -1598,12 +1683,12 @@
|
|
|
1598
1683
|
return true;
|
|
1599
1684
|
if (!(other instanceof CommerceCta))
|
|
1600
1685
|
return false;
|
|
1601
|
-
if (!(this.p1h_1 === other.p1h_1))
|
|
1602
|
-
return false;
|
|
1603
1686
|
if (!(this.q1h_1 === other.q1h_1))
|
|
1604
1687
|
return false;
|
|
1605
1688
|
if (!(this.r1h_1 === other.r1h_1))
|
|
1606
1689
|
return false;
|
|
1690
|
+
if (!(this.s1h_1 === other.s1h_1))
|
|
1691
|
+
return false;
|
|
1607
1692
|
return true;
|
|
1608
1693
|
};
|
|
1609
1694
|
function $serializer_3() {
|
|
@@ -1617,36 +1702,36 @@
|
|
|
1617
1702
|
tmp0_serialDesc.rs('photographer', true);
|
|
1618
1703
|
tmp0_serialDesc.rs('source', true);
|
|
1619
1704
|
tmp0_serialDesc.rs('url', false);
|
|
1620
|
-
this.
|
|
1705
|
+
this.t1h_1 = tmp0_serialDesc;
|
|
1621
1706
|
}
|
|
1622
|
-
protoOf($serializer_3).
|
|
1623
|
-
var tmp0_desc = this.
|
|
1707
|
+
protoOf($serializer_3).u1h = function (encoder, value) {
|
|
1708
|
+
var tmp0_desc = this.t1h_1;
|
|
1624
1709
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
1625
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
1626
|
-
tmp1_output.an(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
1710
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.v1h_1 == null)) {
|
|
1711
|
+
tmp1_output.an(tmp0_desc, 0, StringSerializer_getInstance(), value.v1h_1);
|
|
1627
1712
|
}
|
|
1628
|
-
tmp1_output.wm(tmp0_desc, 1, value.
|
|
1629
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
1630
|
-
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1713
|
+
tmp1_output.wm(tmp0_desc, 1, value.w1h_1);
|
|
1714
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.x1h_1 == null)) {
|
|
1715
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.x1h_1);
|
|
1631
1716
|
}
|
|
1632
|
-
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.
|
|
1633
|
-
tmp1_output.an(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
1717
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.y1h_1 == null)) {
|
|
1718
|
+
tmp1_output.an(tmp0_desc, 3, StringSerializer_getInstance(), value.y1h_1);
|
|
1634
1719
|
}
|
|
1635
|
-
tmp1_output.wm(tmp0_desc, 4, value.
|
|
1636
|
-
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.
|
|
1637
|
-
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
1720
|
+
tmp1_output.wm(tmp0_desc, 4, value.z1h_1);
|
|
1721
|
+
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.a1i_1 == null)) {
|
|
1722
|
+
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.a1i_1);
|
|
1638
1723
|
}
|
|
1639
|
-
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.
|
|
1640
|
-
tmp1_output.an(tmp0_desc, 6, StringSerializer_getInstance(), value.
|
|
1724
|
+
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.b1i_1 == null)) {
|
|
1725
|
+
tmp1_output.an(tmp0_desc, 6, StringSerializer_getInstance(), value.b1i_1);
|
|
1641
1726
|
}
|
|
1642
|
-
tmp1_output.wm(tmp0_desc, 7, value.
|
|
1727
|
+
tmp1_output.wm(tmp0_desc, 7, value.c1i_1);
|
|
1643
1728
|
tmp1_output.jl(tmp0_desc);
|
|
1644
1729
|
};
|
|
1645
1730
|
protoOf($serializer_3).li = function (encoder, value) {
|
|
1646
|
-
return this.
|
|
1731
|
+
return this.u1h(encoder, value instanceof Image ? value : THROW_CCE());
|
|
1647
1732
|
};
|
|
1648
1733
|
protoOf($serializer_3).mi = function (decoder) {
|
|
1649
|
-
var tmp0_desc = this.
|
|
1734
|
+
var tmp0_desc = this.t1h_1;
|
|
1650
1735
|
var tmp1_flag = true;
|
|
1651
1736
|
var tmp2_index = 0;
|
|
1652
1737
|
var tmp3_bitMask0 = 0;
|
|
@@ -1723,7 +1808,7 @@
|
|
|
1723
1808
|
return Image_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1724
1809
|
};
|
|
1725
1810
|
protoOf($serializer_3).ki = function () {
|
|
1726
|
-
return this.
|
|
1811
|
+
return this.t1h_1;
|
|
1727
1812
|
};
|
|
1728
1813
|
protoOf($serializer_3).ts = function () {
|
|
1729
1814
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1739,31 +1824,31 @@
|
|
|
1739
1824
|
}
|
|
1740
1825
|
function Image_init_$Init$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker, $this) {
|
|
1741
1826
|
if (!(146 === (146 & seen0))) {
|
|
1742
|
-
throwMissingFieldException(seen0, 146, $serializer_getInstance_3().
|
|
1827
|
+
throwMissingFieldException(seen0, 146, $serializer_getInstance_3().t1h_1);
|
|
1743
1828
|
}
|
|
1744
1829
|
if (0 === (seen0 & 1))
|
|
1745
|
-
$this.
|
|
1830
|
+
$this.v1h_1 = null;
|
|
1746
1831
|
else
|
|
1747
|
-
$this.
|
|
1748
|
-
$this.
|
|
1832
|
+
$this.v1h_1 = caption;
|
|
1833
|
+
$this.w1h_1 = cropId;
|
|
1749
1834
|
if (0 === (seen0 & 4))
|
|
1750
|
-
$this.
|
|
1835
|
+
$this.x1h_1 = null;
|
|
1751
1836
|
else
|
|
1752
|
-
$this.
|
|
1837
|
+
$this.x1h_1 = imageType;
|
|
1753
1838
|
if (0 === (seen0 & 8))
|
|
1754
|
-
$this.
|
|
1839
|
+
$this.y1h_1 = null;
|
|
1755
1840
|
else
|
|
1756
|
-
$this.
|
|
1757
|
-
$this.
|
|
1841
|
+
$this.y1h_1 = mediaApiUrl;
|
|
1842
|
+
$this.z1h_1 = mediaId;
|
|
1758
1843
|
if (0 === (seen0 & 32))
|
|
1759
|
-
$this.
|
|
1844
|
+
$this.a1i_1 = null;
|
|
1760
1845
|
else
|
|
1761
|
-
$this.
|
|
1846
|
+
$this.a1i_1 = photographer;
|
|
1762
1847
|
if (0 === (seen0 & 64))
|
|
1763
|
-
$this.
|
|
1848
|
+
$this.b1i_1 = null;
|
|
1764
1849
|
else
|
|
1765
|
-
$this.
|
|
1766
|
-
$this.
|
|
1850
|
+
$this.b1i_1 = source;
|
|
1851
|
+
$this.c1i_1 = url;
|
|
1767
1852
|
return $this;
|
|
1768
1853
|
}
|
|
1769
1854
|
function Image_init_$Create$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker) {
|
|
@@ -1772,17 +1857,17 @@
|
|
|
1772
1857
|
function Image() {
|
|
1773
1858
|
}
|
|
1774
1859
|
protoOf(Image).toString = function () {
|
|
1775
|
-
return 'Image(caption=' + this.
|
|
1860
|
+
return 'Image(caption=' + this.v1h_1 + ', cropId=' + this.w1h_1 + ', imageType=' + this.x1h_1 + ', mediaApiUrl=' + this.y1h_1 + ', mediaId=' + this.z1h_1 + ', photographer=' + this.a1i_1 + ', source=' + this.b1i_1 + ', url=' + this.c1i_1 + ')';
|
|
1776
1861
|
};
|
|
1777
1862
|
protoOf(Image).hashCode = function () {
|
|
1778
|
-
var result = this.
|
|
1779
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1780
|
-
result = imul(result, 31) + (this.w1h_1 == null ? 0 : getStringHashCode(this.w1h_1)) | 0;
|
|
1863
|
+
var result = this.v1h_1 == null ? 0 : getStringHashCode(this.v1h_1);
|
|
1864
|
+
result = imul(result, 31) + getStringHashCode(this.w1h_1) | 0;
|
|
1781
1865
|
result = imul(result, 31) + (this.x1h_1 == null ? 0 : getStringHashCode(this.x1h_1)) | 0;
|
|
1782
|
-
result = imul(result, 31) + getStringHashCode(this.y1h_1) | 0;
|
|
1783
|
-
result = imul(result, 31) +
|
|
1866
|
+
result = imul(result, 31) + (this.y1h_1 == null ? 0 : getStringHashCode(this.y1h_1)) | 0;
|
|
1867
|
+
result = imul(result, 31) + getStringHashCode(this.z1h_1) | 0;
|
|
1784
1868
|
result = imul(result, 31) + (this.a1i_1 == null ? 0 : getStringHashCode(this.a1i_1)) | 0;
|
|
1785
|
-
result = imul(result, 31) + getStringHashCode(this.b1i_1) | 0;
|
|
1869
|
+
result = imul(result, 31) + (this.b1i_1 == null ? 0 : getStringHashCode(this.b1i_1)) | 0;
|
|
1870
|
+
result = imul(result, 31) + getStringHashCode(this.c1i_1) | 0;
|
|
1786
1871
|
return result;
|
|
1787
1872
|
};
|
|
1788
1873
|
protoOf(Image).equals = function (other) {
|
|
@@ -1790,21 +1875,21 @@
|
|
|
1790
1875
|
return true;
|
|
1791
1876
|
if (!(other instanceof Image))
|
|
1792
1877
|
return false;
|
|
1793
|
-
if (!(this.
|
|
1878
|
+
if (!(this.v1h_1 == other.v1h_1))
|
|
1794
1879
|
return false;
|
|
1795
|
-
if (!(this.
|
|
1796
|
-
return false;
|
|
1797
|
-
if (!(this.w1h_1 == other.w1h_1))
|
|
1880
|
+
if (!(this.w1h_1 === other.w1h_1))
|
|
1798
1881
|
return false;
|
|
1799
1882
|
if (!(this.x1h_1 == other.x1h_1))
|
|
1800
1883
|
return false;
|
|
1801
|
-
if (!(this.y1h_1
|
|
1884
|
+
if (!(this.y1h_1 == other.y1h_1))
|
|
1802
1885
|
return false;
|
|
1803
|
-
if (!(this.z1h_1
|
|
1886
|
+
if (!(this.z1h_1 === other.z1h_1))
|
|
1804
1887
|
return false;
|
|
1805
1888
|
if (!(this.a1i_1 == other.a1i_1))
|
|
1806
1889
|
return false;
|
|
1807
|
-
if (!(this.b1i_1
|
|
1890
|
+
if (!(this.b1i_1 == other.b1i_1))
|
|
1891
|
+
return false;
|
|
1892
|
+
if (!(this.c1i_1 === other.c1i_1))
|
|
1808
1893
|
return false;
|
|
1809
1894
|
return true;
|
|
1810
1895
|
};
|
|
@@ -1818,7 +1903,7 @@
|
|
|
1818
1903
|
// Inline function 'kotlin.arrayOf' call
|
|
1819
1904
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1820
1905
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1821
|
-
tmp.
|
|
1906
|
+
tmp.d1i_1 = [lazy(tmp_0, IngredientsList$Companion$$childSerializers$_anonymous__y7k6ja), null];
|
|
1822
1907
|
}
|
|
1823
1908
|
var Companion_instance_3;
|
|
1824
1909
|
function Companion_getInstance_2() {
|
|
@@ -1831,32 +1916,32 @@
|
|
|
1831
1916
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsList', this, 2);
|
|
1832
1917
|
tmp0_serialDesc.rs('ingredientsList', true);
|
|
1833
1918
|
tmp0_serialDesc.rs('recipeSection', true);
|
|
1834
|
-
this.
|
|
1919
|
+
this.e1i_1 = tmp0_serialDesc;
|
|
1835
1920
|
}
|
|
1836
|
-
protoOf($serializer_4).
|
|
1837
|
-
var tmp0_desc = this.
|
|
1921
|
+
protoOf($serializer_4).f1i = function (encoder, value) {
|
|
1922
|
+
var tmp0_desc = this.e1i_1;
|
|
1838
1923
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
1839
|
-
var tmp2_cached = Companion_getInstance_2().
|
|
1840
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
1841
|
-
tmp1_output.an(tmp0_desc, 0, tmp2_cached[0].h2(), value.
|
|
1924
|
+
var tmp2_cached = Companion_getInstance_2().d1i_1;
|
|
1925
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.g1g_1 == null)) {
|
|
1926
|
+
tmp1_output.an(tmp0_desc, 0, tmp2_cached[0].h2(), value.g1g_1);
|
|
1842
1927
|
}
|
|
1843
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
1844
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
1928
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.h1g_1 == null)) {
|
|
1929
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.h1g_1);
|
|
1845
1930
|
}
|
|
1846
1931
|
tmp1_output.jl(tmp0_desc);
|
|
1847
1932
|
};
|
|
1848
1933
|
protoOf($serializer_4).li = function (encoder, value) {
|
|
1849
|
-
return this.
|
|
1934
|
+
return this.f1i(encoder, value instanceof IngredientsList ? value : THROW_CCE());
|
|
1850
1935
|
};
|
|
1851
1936
|
protoOf($serializer_4).mi = function (decoder) {
|
|
1852
|
-
var tmp0_desc = this.
|
|
1937
|
+
var tmp0_desc = this.e1i_1;
|
|
1853
1938
|
var tmp1_flag = true;
|
|
1854
1939
|
var tmp2_index = 0;
|
|
1855
1940
|
var tmp3_bitMask0 = 0;
|
|
1856
1941
|
var tmp4_local0 = null;
|
|
1857
1942
|
var tmp5_local1 = null;
|
|
1858
1943
|
var tmp6_input = decoder.il(tmp0_desc);
|
|
1859
|
-
var tmp7_cached = Companion_getInstance_2().
|
|
1944
|
+
var tmp7_cached = Companion_getInstance_2().d1i_1;
|
|
1860
1945
|
if (tmp6_input.yl()) {
|
|
1861
1946
|
tmp4_local0 = tmp6_input.wl(tmp0_desc, 0, tmp7_cached[0].h2(), tmp4_local0);
|
|
1862
1947
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1885,10 +1970,10 @@
|
|
|
1885
1970
|
return IngredientsList_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1886
1971
|
};
|
|
1887
1972
|
protoOf($serializer_4).ki = function () {
|
|
1888
|
-
return this.
|
|
1973
|
+
return this.e1i_1;
|
|
1889
1974
|
};
|
|
1890
1975
|
protoOf($serializer_4).ts = function () {
|
|
1891
|
-
var tmp0_cached = Companion_getInstance_2().
|
|
1976
|
+
var tmp0_cached = Companion_getInstance_2().d1i_1;
|
|
1892
1977
|
// Inline function 'kotlin.arrayOf' call
|
|
1893
1978
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1894
1979
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1902,16 +1987,16 @@
|
|
|
1902
1987
|
}
|
|
1903
1988
|
function IngredientsList_init_$Init$(seen0, ingredientsList, recipeSection, serializationConstructorMarker, $this) {
|
|
1904
1989
|
if (!(0 === (0 & seen0))) {
|
|
1905
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().
|
|
1990
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().e1i_1);
|
|
1906
1991
|
}
|
|
1907
1992
|
if (0 === (seen0 & 1))
|
|
1908
|
-
$this.
|
|
1993
|
+
$this.g1g_1 = null;
|
|
1909
1994
|
else
|
|
1910
|
-
$this.
|
|
1995
|
+
$this.g1g_1 = ingredientsList;
|
|
1911
1996
|
if (0 === (seen0 & 2))
|
|
1912
|
-
$this.
|
|
1997
|
+
$this.h1g_1 = null;
|
|
1913
1998
|
else
|
|
1914
|
-
$this.
|
|
1999
|
+
$this.h1g_1 = recipeSection;
|
|
1915
2000
|
return $this;
|
|
1916
2001
|
}
|
|
1917
2002
|
function IngredientsList_init_$Create$(seen0, ingredientsList, recipeSection, serializationConstructorMarker) {
|
|
@@ -1921,15 +2006,15 @@
|
|
|
1921
2006
|
Companion_getInstance_2();
|
|
1922
2007
|
ingredientsList = ingredientsList === VOID ? null : ingredientsList;
|
|
1923
2008
|
recipeSection = recipeSection === VOID ? null : recipeSection;
|
|
1924
|
-
this.
|
|
1925
|
-
this.
|
|
2009
|
+
this.g1g_1 = ingredientsList;
|
|
2010
|
+
this.h1g_1 = recipeSection;
|
|
1926
2011
|
}
|
|
1927
2012
|
protoOf(IngredientsList).toString = function () {
|
|
1928
|
-
return 'IngredientsList(ingredientsList=' + toString(this.
|
|
2013
|
+
return 'IngredientsList(ingredientsList=' + toString(this.g1g_1) + ', recipeSection=' + this.h1g_1 + ')';
|
|
1929
2014
|
};
|
|
1930
2015
|
protoOf(IngredientsList).hashCode = function () {
|
|
1931
|
-
var result = this.
|
|
1932
|
-
result = imul(result, 31) + (this.
|
|
2016
|
+
var result = this.g1g_1 == null ? 0 : hashCode(this.g1g_1);
|
|
2017
|
+
result = imul(result, 31) + (this.h1g_1 == null ? 0 : getStringHashCode(this.h1g_1)) | 0;
|
|
1933
2018
|
return result;
|
|
1934
2019
|
};
|
|
1935
2020
|
protoOf(IngredientsList).equals = function (other) {
|
|
@@ -1937,9 +2022,9 @@
|
|
|
1937
2022
|
return true;
|
|
1938
2023
|
if (!(other instanceof IngredientsList))
|
|
1939
2024
|
return false;
|
|
1940
|
-
if (!equals(this.
|
|
2025
|
+
if (!equals(this.g1g_1, other.g1g_1))
|
|
1941
2026
|
return false;
|
|
1942
|
-
if (!(this.
|
|
2027
|
+
if (!(this.h1g_1 == other.h1g_1))
|
|
1943
2028
|
return false;
|
|
1944
2029
|
return true;
|
|
1945
2030
|
};
|
|
@@ -1961,45 +2046,45 @@
|
|
|
1961
2046
|
tmp0_serialDesc.rs('template', true);
|
|
1962
2047
|
tmp0_serialDesc.rs('text', true);
|
|
1963
2048
|
tmp0_serialDesc.rs('unit', true);
|
|
1964
|
-
this.
|
|
2049
|
+
this.g1i_1 = tmp0_serialDesc;
|
|
1965
2050
|
}
|
|
1966
|
-
protoOf($serializer_5).
|
|
1967
|
-
var tmp0_desc = this.
|
|
2051
|
+
protoOf($serializer_5).h1i = function (encoder, value) {
|
|
2052
|
+
var tmp0_desc = this.g1i_1;
|
|
1968
2053
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
1969
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
1970
|
-
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.
|
|
2054
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.i1g_1 == null)) {
|
|
2055
|
+
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.i1g_1);
|
|
1971
2056
|
}
|
|
1972
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
1973
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2057
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.j1g_1 == null)) {
|
|
2058
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.j1g_1);
|
|
1974
2059
|
}
|
|
1975
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
1976
|
-
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
2060
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.k1g_1 == null)) {
|
|
2061
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.k1g_1);
|
|
1977
2062
|
}
|
|
1978
|
-
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.
|
|
1979
|
-
tmp1_output.an(tmp0_desc, 3, BooleanSerializer_getInstance(), value.
|
|
2063
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.l1g_1 == null)) {
|
|
2064
|
+
tmp1_output.an(tmp0_desc, 3, BooleanSerializer_getInstance(), value.l1g_1);
|
|
1980
2065
|
}
|
|
1981
|
-
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.
|
|
1982
|
-
tmp1_output.an(tmp0_desc, 4, StringSerializer_getInstance(), value.
|
|
2066
|
+
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.m1g_1 == null)) {
|
|
2067
|
+
tmp1_output.an(tmp0_desc, 4, StringSerializer_getInstance(), value.m1g_1);
|
|
1983
2068
|
}
|
|
1984
|
-
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.
|
|
1985
|
-
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
2069
|
+
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.n1g_1 == null)) {
|
|
2070
|
+
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.n1g_1);
|
|
1986
2071
|
}
|
|
1987
|
-
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.
|
|
1988
|
-
tmp1_output.an(tmp0_desc, 6, StringSerializer_getInstance(), value.
|
|
2072
|
+
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.o1g_1 == null)) {
|
|
2073
|
+
tmp1_output.an(tmp0_desc, 6, StringSerializer_getInstance(), value.o1g_1);
|
|
1989
2074
|
}
|
|
1990
|
-
if (tmp1_output.en(tmp0_desc, 7) ? true : !(value.
|
|
1991
|
-
tmp1_output.an(tmp0_desc, 7, StringSerializer_getInstance(), value.
|
|
2075
|
+
if (tmp1_output.en(tmp0_desc, 7) ? true : !(value.p1g_1 == null)) {
|
|
2076
|
+
tmp1_output.an(tmp0_desc, 7, StringSerializer_getInstance(), value.p1g_1);
|
|
1992
2077
|
}
|
|
1993
|
-
if (tmp1_output.en(tmp0_desc, 8) ? true : !(value.
|
|
1994
|
-
tmp1_output.an(tmp0_desc, 8, StringSerializer_getInstance(), value.
|
|
2078
|
+
if (tmp1_output.en(tmp0_desc, 8) ? true : !(value.q1g_1 == null)) {
|
|
2079
|
+
tmp1_output.an(tmp0_desc, 8, StringSerializer_getInstance(), value.q1g_1);
|
|
1995
2080
|
}
|
|
1996
2081
|
tmp1_output.jl(tmp0_desc);
|
|
1997
2082
|
};
|
|
1998
2083
|
protoOf($serializer_5).li = function (encoder, value) {
|
|
1999
|
-
return this.
|
|
2084
|
+
return this.h1i(encoder, value instanceof IngredientItem ? value : THROW_CCE());
|
|
2000
2085
|
};
|
|
2001
2086
|
protoOf($serializer_5).mi = function (decoder) {
|
|
2002
|
-
var tmp0_desc = this.
|
|
2087
|
+
var tmp0_desc = this.g1i_1;
|
|
2003
2088
|
var tmp1_flag = true;
|
|
2004
2089
|
var tmp2_index = 0;
|
|
2005
2090
|
var tmp3_bitMask0 = 0;
|
|
@@ -2083,7 +2168,7 @@
|
|
|
2083
2168
|
return IngredientItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null);
|
|
2084
2169
|
};
|
|
2085
2170
|
protoOf($serializer_5).ki = function () {
|
|
2086
|
-
return this.
|
|
2171
|
+
return this.g1i_1;
|
|
2087
2172
|
};
|
|
2088
2173
|
protoOf($serializer_5).ts = function () {
|
|
2089
2174
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2099,44 +2184,44 @@
|
|
|
2099
2184
|
}
|
|
2100
2185
|
function IngredientItem_init_$Init$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker, $this) {
|
|
2101
2186
|
if (!(0 === (0 & seen0))) {
|
|
2102
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_5().
|
|
2187
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_5().g1i_1);
|
|
2103
2188
|
}
|
|
2104
2189
|
if (0 === (seen0 & 1))
|
|
2105
|
-
$this.
|
|
2190
|
+
$this.i1g_1 = null;
|
|
2106
2191
|
else
|
|
2107
|
-
$this.
|
|
2192
|
+
$this.i1g_1 = amount;
|
|
2108
2193
|
if (0 === (seen0 & 2))
|
|
2109
|
-
$this.
|
|
2194
|
+
$this.j1g_1 = null;
|
|
2110
2195
|
else
|
|
2111
|
-
$this.
|
|
2196
|
+
$this.j1g_1 = ingredientId;
|
|
2112
2197
|
if (0 === (seen0 & 4))
|
|
2113
|
-
$this.
|
|
2198
|
+
$this.k1g_1 = null;
|
|
2114
2199
|
else
|
|
2115
|
-
$this.
|
|
2200
|
+
$this.k1g_1 = name;
|
|
2116
2201
|
if (0 === (seen0 & 8))
|
|
2117
|
-
$this.
|
|
2202
|
+
$this.l1g_1 = null;
|
|
2118
2203
|
else
|
|
2119
|
-
$this.
|
|
2204
|
+
$this.l1g_1 = optional;
|
|
2120
2205
|
if (0 === (seen0 & 16))
|
|
2121
|
-
$this.
|
|
2206
|
+
$this.m1g_1 = null;
|
|
2122
2207
|
else
|
|
2123
|
-
$this.
|
|
2208
|
+
$this.m1g_1 = prefix;
|
|
2124
2209
|
if (0 === (seen0 & 32))
|
|
2125
|
-
$this.
|
|
2210
|
+
$this.n1g_1 = null;
|
|
2126
2211
|
else
|
|
2127
|
-
$this.
|
|
2212
|
+
$this.n1g_1 = suffix;
|
|
2128
2213
|
if (0 === (seen0 & 64))
|
|
2129
|
-
$this.
|
|
2214
|
+
$this.o1g_1 = null;
|
|
2130
2215
|
else
|
|
2131
|
-
$this.
|
|
2216
|
+
$this.o1g_1 = template;
|
|
2132
2217
|
if (0 === (seen0 & 128))
|
|
2133
|
-
$this.
|
|
2218
|
+
$this.p1g_1 = null;
|
|
2134
2219
|
else
|
|
2135
|
-
$this.
|
|
2220
|
+
$this.p1g_1 = text;
|
|
2136
2221
|
if (0 === (seen0 & 256))
|
|
2137
|
-
$this.
|
|
2222
|
+
$this.q1g_1 = null;
|
|
2138
2223
|
else
|
|
2139
|
-
$this.
|
|
2224
|
+
$this.q1g_1 = unit;
|
|
2140
2225
|
return $this;
|
|
2141
2226
|
}
|
|
2142
2227
|
function IngredientItem_init_$Create$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker) {
|
|
@@ -2152,44 +2237,44 @@
|
|
|
2152
2237
|
template = template === VOID ? null : template;
|
|
2153
2238
|
text = text === VOID ? null : text;
|
|
2154
2239
|
unit = unit === VOID ? null : unit;
|
|
2155
|
-
this.
|
|
2156
|
-
this.
|
|
2157
|
-
this.
|
|
2158
|
-
this.
|
|
2159
|
-
this.
|
|
2160
|
-
this.
|
|
2161
|
-
this.
|
|
2162
|
-
this.
|
|
2163
|
-
this.
|
|
2164
|
-
}
|
|
2165
|
-
protoOf(IngredientItem).
|
|
2240
|
+
this.i1g_1 = amount;
|
|
2241
|
+
this.j1g_1 = ingredientId;
|
|
2242
|
+
this.k1g_1 = name;
|
|
2243
|
+
this.l1g_1 = optional;
|
|
2244
|
+
this.m1g_1 = prefix;
|
|
2245
|
+
this.n1g_1 = suffix;
|
|
2246
|
+
this.o1g_1 = template;
|
|
2247
|
+
this.p1g_1 = text;
|
|
2248
|
+
this.q1g_1 = unit;
|
|
2249
|
+
}
|
|
2250
|
+
protoOf(IngredientItem).i1i = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit) {
|
|
2166
2251
|
return new IngredientItem(amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
2167
2252
|
};
|
|
2168
|
-
protoOf(IngredientItem).
|
|
2169
|
-
amount = amount === VOID ? this.
|
|
2170
|
-
ingredientId = ingredientId === VOID ? this.
|
|
2171
|
-
name = name === VOID ? this.
|
|
2172
|
-
optional = optional === VOID ? this.
|
|
2173
|
-
prefix = prefix === VOID ? this.
|
|
2174
|
-
suffix = suffix === VOID ? this.
|
|
2175
|
-
template = template === VOID ? this.
|
|
2176
|
-
text = text === VOID ? this.
|
|
2177
|
-
unit = unit === VOID ? this.
|
|
2178
|
-
return $super === VOID ? this.
|
|
2253
|
+
protoOf(IngredientItem).r1g = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit, $super) {
|
|
2254
|
+
amount = amount === VOID ? this.i1g_1 : amount;
|
|
2255
|
+
ingredientId = ingredientId === VOID ? this.j1g_1 : ingredientId;
|
|
2256
|
+
name = name === VOID ? this.k1g_1 : name;
|
|
2257
|
+
optional = optional === VOID ? this.l1g_1 : optional;
|
|
2258
|
+
prefix = prefix === VOID ? this.m1g_1 : prefix;
|
|
2259
|
+
suffix = suffix === VOID ? this.n1g_1 : suffix;
|
|
2260
|
+
template = template === VOID ? this.o1g_1 : template;
|
|
2261
|
+
text = text === VOID ? this.p1g_1 : text;
|
|
2262
|
+
unit = unit === VOID ? this.q1g_1 : unit;
|
|
2263
|
+
return $super === VOID ? this.i1i(amount, ingredientId, name, optional, prefix, suffix, template, text, unit) : $super.i1i.call(this, amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
2179
2264
|
};
|
|
2180
2265
|
protoOf(IngredientItem).toString = function () {
|
|
2181
|
-
return 'IngredientItem(amount=' + toString(this.
|
|
2266
|
+
return 'IngredientItem(amount=' + toString(this.i1g_1) + ', ingredientId=' + this.j1g_1 + ', name=' + this.k1g_1 + ', optional=' + this.l1g_1 + ', prefix=' + this.m1g_1 + ', suffix=' + this.n1g_1 + ', template=' + this.o1g_1 + ', text=' + this.p1g_1 + ', unit=' + this.q1g_1 + ')';
|
|
2182
2267
|
};
|
|
2183
2268
|
protoOf(IngredientItem).hashCode = function () {
|
|
2184
|
-
var result = this.
|
|
2185
|
-
result = imul(result, 31) + (this.i1g_1 == null ? 0 : getStringHashCode(this.i1g_1)) | 0;
|
|
2269
|
+
var result = this.i1g_1 == null ? 0 : this.i1g_1.hashCode();
|
|
2186
2270
|
result = imul(result, 31) + (this.j1g_1 == null ? 0 : getStringHashCode(this.j1g_1)) | 0;
|
|
2187
|
-
result = imul(result, 31) + (this.k1g_1 == null ? 0 :
|
|
2188
|
-
result = imul(result, 31) + (this.l1g_1 == null ? 0 :
|
|
2271
|
+
result = imul(result, 31) + (this.k1g_1 == null ? 0 : getStringHashCode(this.k1g_1)) | 0;
|
|
2272
|
+
result = imul(result, 31) + (this.l1g_1 == null ? 0 : getBooleanHashCode(this.l1g_1)) | 0;
|
|
2189
2273
|
result = imul(result, 31) + (this.m1g_1 == null ? 0 : getStringHashCode(this.m1g_1)) | 0;
|
|
2190
2274
|
result = imul(result, 31) + (this.n1g_1 == null ? 0 : getStringHashCode(this.n1g_1)) | 0;
|
|
2191
2275
|
result = imul(result, 31) + (this.o1g_1 == null ? 0 : getStringHashCode(this.o1g_1)) | 0;
|
|
2192
2276
|
result = imul(result, 31) + (this.p1g_1 == null ? 0 : getStringHashCode(this.p1g_1)) | 0;
|
|
2277
|
+
result = imul(result, 31) + (this.q1g_1 == null ? 0 : getStringHashCode(this.q1g_1)) | 0;
|
|
2193
2278
|
return result;
|
|
2194
2279
|
};
|
|
2195
2280
|
protoOf(IngredientItem).equals = function (other) {
|
|
@@ -2197,9 +2282,7 @@
|
|
|
2197
2282
|
return true;
|
|
2198
2283
|
if (!(other instanceof IngredientItem))
|
|
2199
2284
|
return false;
|
|
2200
|
-
if (!equals(this.
|
|
2201
|
-
return false;
|
|
2202
|
-
if (!(this.i1g_1 == other.i1g_1))
|
|
2285
|
+
if (!equals(this.i1g_1, other.i1g_1))
|
|
2203
2286
|
return false;
|
|
2204
2287
|
if (!(this.j1g_1 == other.j1g_1))
|
|
2205
2288
|
return false;
|
|
@@ -2215,6 +2298,8 @@
|
|
|
2215
2298
|
return false;
|
|
2216
2299
|
if (!(this.p1g_1 == other.p1g_1))
|
|
2217
2300
|
return false;
|
|
2301
|
+
if (!(this.q1g_1 == other.q1g_1))
|
|
2302
|
+
return false;
|
|
2218
2303
|
return true;
|
|
2219
2304
|
};
|
|
2220
2305
|
function Companion_4() {
|
|
@@ -2228,24 +2313,24 @@
|
|
|
2228
2313
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Range', this, 2);
|
|
2229
2314
|
tmp0_serialDesc.rs('max', true);
|
|
2230
2315
|
tmp0_serialDesc.rs('min', true);
|
|
2231
|
-
this.
|
|
2316
|
+
this.j1i_1 = tmp0_serialDesc;
|
|
2232
2317
|
}
|
|
2233
|
-
protoOf($serializer_6).
|
|
2234
|
-
var tmp0_desc = this.
|
|
2318
|
+
protoOf($serializer_6).k1i = function (encoder, value) {
|
|
2319
|
+
var tmp0_desc = this.j1i_1;
|
|
2235
2320
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2236
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
2237
|
-
tmp1_output.an(tmp0_desc, 0, DoubleSerializer_getInstance(), value.
|
|
2321
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.l1i_1 == null)) {
|
|
2322
|
+
tmp1_output.an(tmp0_desc, 0, DoubleSerializer_getInstance(), value.l1i_1);
|
|
2238
2323
|
}
|
|
2239
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
2240
|
-
tmp1_output.an(tmp0_desc, 1, DoubleSerializer_getInstance(), value.
|
|
2324
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.m1i_1 == null)) {
|
|
2325
|
+
tmp1_output.an(tmp0_desc, 1, DoubleSerializer_getInstance(), value.m1i_1);
|
|
2241
2326
|
}
|
|
2242
2327
|
tmp1_output.jl(tmp0_desc);
|
|
2243
2328
|
};
|
|
2244
2329
|
protoOf($serializer_6).li = function (encoder, value) {
|
|
2245
|
-
return this.
|
|
2330
|
+
return this.k1i(encoder, value instanceof Range ? value : THROW_CCE());
|
|
2246
2331
|
};
|
|
2247
2332
|
protoOf($serializer_6).mi = function (decoder) {
|
|
2248
|
-
var tmp0_desc = this.
|
|
2333
|
+
var tmp0_desc = this.j1i_1;
|
|
2249
2334
|
var tmp1_flag = true;
|
|
2250
2335
|
var tmp2_index = 0;
|
|
2251
2336
|
var tmp3_bitMask0 = 0;
|
|
@@ -2280,7 +2365,7 @@
|
|
|
2280
2365
|
return Range_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2281
2366
|
};
|
|
2282
2367
|
protoOf($serializer_6).ki = function () {
|
|
2283
|
-
return this.
|
|
2368
|
+
return this.j1i_1;
|
|
2284
2369
|
};
|
|
2285
2370
|
protoOf($serializer_6).ts = function () {
|
|
2286
2371
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2296,16 +2381,16 @@
|
|
|
2296
2381
|
}
|
|
2297
2382
|
function Range_init_$Init$(seen0, max, min, serializationConstructorMarker, $this) {
|
|
2298
2383
|
if (!(0 === (0 & seen0))) {
|
|
2299
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().
|
|
2384
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().j1i_1);
|
|
2300
2385
|
}
|
|
2301
2386
|
if (0 === (seen0 & 1))
|
|
2302
|
-
$this.
|
|
2387
|
+
$this.l1i_1 = null;
|
|
2303
2388
|
else
|
|
2304
|
-
$this.
|
|
2389
|
+
$this.l1i_1 = max;
|
|
2305
2390
|
if (0 === (seen0 & 2))
|
|
2306
|
-
$this.
|
|
2391
|
+
$this.m1i_1 = null;
|
|
2307
2392
|
else
|
|
2308
|
-
$this.
|
|
2393
|
+
$this.m1i_1 = min;
|
|
2309
2394
|
return $this;
|
|
2310
2395
|
}
|
|
2311
2396
|
function Range_init_$Create$(seen0, max, min, serializationConstructorMarker) {
|
|
@@ -2314,15 +2399,15 @@
|
|
|
2314
2399
|
function Range(max, min) {
|
|
2315
2400
|
max = max === VOID ? null : max;
|
|
2316
2401
|
min = min === VOID ? null : min;
|
|
2317
|
-
this.
|
|
2318
|
-
this.
|
|
2402
|
+
this.l1i_1 = max;
|
|
2403
|
+
this.m1i_1 = min;
|
|
2319
2404
|
}
|
|
2320
2405
|
protoOf(Range).toString = function () {
|
|
2321
|
-
return 'Range(max=' + this.
|
|
2406
|
+
return 'Range(max=' + this.l1i_1 + ', min=' + this.m1i_1 + ')';
|
|
2322
2407
|
};
|
|
2323
2408
|
protoOf(Range).hashCode = function () {
|
|
2324
|
-
var result = this.
|
|
2325
|
-
result = imul(result, 31) + (this.
|
|
2409
|
+
var result = this.l1i_1 == null ? 0 : getNumberHashCode(this.l1i_1);
|
|
2410
|
+
result = imul(result, 31) + (this.m1i_1 == null ? 0 : getNumberHashCode(this.m1i_1)) | 0;
|
|
2326
2411
|
return result;
|
|
2327
2412
|
};
|
|
2328
2413
|
protoOf(Range).equals = function (other) {
|
|
@@ -2330,10 +2415,10 @@
|
|
|
2330
2415
|
return true;
|
|
2331
2416
|
if (!(other instanceof Range))
|
|
2332
2417
|
return false;
|
|
2333
|
-
if (!equals(this.k1i_1, other.k1i_1))
|
|
2334
|
-
return false;
|
|
2335
2418
|
if (!equals(this.l1i_1, other.l1i_1))
|
|
2336
2419
|
return false;
|
|
2420
|
+
if (!equals(this.m1i_1, other.m1i_1))
|
|
2421
|
+
return false;
|
|
2337
2422
|
return true;
|
|
2338
2423
|
};
|
|
2339
2424
|
function Instruction$Companion$$childSerializers$_anonymous__sbbefw() {
|
|
@@ -2346,7 +2431,7 @@
|
|
|
2346
2431
|
// Inline function 'kotlin.arrayOf' call
|
|
2347
2432
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2348
2433
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2349
|
-
tmp.
|
|
2434
|
+
tmp.n1i_1 = [null, null, lazy(tmp_0, Instruction$Companion$$childSerializers$_anonymous__sbbefw), null];
|
|
2350
2435
|
}
|
|
2351
2436
|
var Companion_instance_6;
|
|
2352
2437
|
function Companion_getInstance_5() {
|
|
@@ -2361,29 +2446,29 @@
|
|
|
2361
2446
|
tmp0_serialDesc.rs('descriptionTemplate', true);
|
|
2362
2447
|
tmp0_serialDesc.rs('images', true);
|
|
2363
2448
|
tmp0_serialDesc.rs('stepNumber', true);
|
|
2364
|
-
this.
|
|
2449
|
+
this.o1i_1 = tmp0_serialDesc;
|
|
2365
2450
|
}
|
|
2366
|
-
protoOf($serializer_7).
|
|
2367
|
-
var tmp0_desc = this.
|
|
2451
|
+
protoOf($serializer_7).p1i = function (encoder, value) {
|
|
2452
|
+
var tmp0_desc = this.o1i_1;
|
|
2368
2453
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2369
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
2370
|
-
tmp1_output.wm(tmp0_desc, 0, value.
|
|
2371
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
2372
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2454
|
+
var tmp2_cached = Companion_getInstance_5().n1i_1;
|
|
2455
|
+
tmp1_output.wm(tmp0_desc, 0, value.s1g_1);
|
|
2456
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.t1g_1 == null)) {
|
|
2457
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.t1g_1);
|
|
2373
2458
|
}
|
|
2374
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
2375
|
-
tmp1_output.an(tmp0_desc, 2, tmp2_cached[2].h2(), value.
|
|
2459
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.u1g_1 == null)) {
|
|
2460
|
+
tmp1_output.an(tmp0_desc, 2, tmp2_cached[2].h2(), value.u1g_1);
|
|
2376
2461
|
}
|
|
2377
|
-
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.
|
|
2378
|
-
tmp1_output.an(tmp0_desc, 3, DoubleSerializer_getInstance(), value.
|
|
2462
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.v1g_1 == null)) {
|
|
2463
|
+
tmp1_output.an(tmp0_desc, 3, DoubleSerializer_getInstance(), value.v1g_1);
|
|
2379
2464
|
}
|
|
2380
2465
|
tmp1_output.jl(tmp0_desc);
|
|
2381
2466
|
};
|
|
2382
2467
|
protoOf($serializer_7).li = function (encoder, value) {
|
|
2383
|
-
return this.
|
|
2468
|
+
return this.p1i(encoder, value instanceof Instruction ? value : THROW_CCE());
|
|
2384
2469
|
};
|
|
2385
2470
|
protoOf($serializer_7).mi = function (decoder) {
|
|
2386
|
-
var tmp0_desc = this.
|
|
2471
|
+
var tmp0_desc = this.o1i_1;
|
|
2387
2472
|
var tmp1_flag = true;
|
|
2388
2473
|
var tmp2_index = 0;
|
|
2389
2474
|
var tmp3_bitMask0 = 0;
|
|
@@ -2392,7 +2477,7 @@
|
|
|
2392
2477
|
var tmp6_local2 = null;
|
|
2393
2478
|
var tmp7_local3 = null;
|
|
2394
2479
|
var tmp8_input = decoder.il(tmp0_desc);
|
|
2395
|
-
var tmp9_cached = Companion_getInstance_5().
|
|
2480
|
+
var tmp9_cached = Companion_getInstance_5().n1i_1;
|
|
2396
2481
|
if (tmp8_input.yl()) {
|
|
2397
2482
|
tmp4_local0 = tmp8_input.sl(tmp0_desc, 0);
|
|
2398
2483
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -2433,10 +2518,10 @@
|
|
|
2433
2518
|
return Instruction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2434
2519
|
};
|
|
2435
2520
|
protoOf($serializer_7).ki = function () {
|
|
2436
|
-
return this.
|
|
2521
|
+
return this.o1i_1;
|
|
2437
2522
|
};
|
|
2438
2523
|
protoOf($serializer_7).ts = function () {
|
|
2439
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
2524
|
+
var tmp0_cached = Companion_getInstance_5().n1i_1;
|
|
2440
2525
|
// Inline function 'kotlin.arrayOf' call
|
|
2441
2526
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2442
2527
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2450,21 +2535,21 @@
|
|
|
2450
2535
|
}
|
|
2451
2536
|
function Instruction_init_$Init$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker, $this) {
|
|
2452
2537
|
if (!(1 === (1 & seen0))) {
|
|
2453
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_7().
|
|
2538
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_7().o1i_1);
|
|
2454
2539
|
}
|
|
2455
|
-
$this.
|
|
2540
|
+
$this.s1g_1 = description;
|
|
2456
2541
|
if (0 === (seen0 & 2))
|
|
2457
|
-
$this.
|
|
2542
|
+
$this.t1g_1 = null;
|
|
2458
2543
|
else
|
|
2459
|
-
$this.
|
|
2544
|
+
$this.t1g_1 = descriptionTemplate;
|
|
2460
2545
|
if (0 === (seen0 & 4))
|
|
2461
|
-
$this.
|
|
2546
|
+
$this.u1g_1 = null;
|
|
2462
2547
|
else
|
|
2463
|
-
$this.
|
|
2548
|
+
$this.u1g_1 = images;
|
|
2464
2549
|
if (0 === (seen0 & 8))
|
|
2465
|
-
$this.
|
|
2550
|
+
$this.v1g_1 = null;
|
|
2466
2551
|
else
|
|
2467
|
-
$this.
|
|
2552
|
+
$this.v1g_1 = stepNumber;
|
|
2468
2553
|
return $this;
|
|
2469
2554
|
}
|
|
2470
2555
|
function Instruction_init_$Create$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker) {
|
|
@@ -2475,29 +2560,29 @@
|
|
|
2475
2560
|
descriptionTemplate = descriptionTemplate === VOID ? null : descriptionTemplate;
|
|
2476
2561
|
images = images === VOID ? null : images;
|
|
2477
2562
|
stepNumber = stepNumber === VOID ? null : stepNumber;
|
|
2478
|
-
this.
|
|
2479
|
-
this.
|
|
2480
|
-
this.
|
|
2481
|
-
this.
|
|
2563
|
+
this.s1g_1 = description;
|
|
2564
|
+
this.t1g_1 = descriptionTemplate;
|
|
2565
|
+
this.u1g_1 = images;
|
|
2566
|
+
this.v1g_1 = stepNumber;
|
|
2482
2567
|
}
|
|
2483
|
-
protoOf(Instruction).
|
|
2568
|
+
protoOf(Instruction).q1i = function (description, descriptionTemplate, images, stepNumber) {
|
|
2484
2569
|
return new Instruction(description, descriptionTemplate, images, stepNumber);
|
|
2485
2570
|
};
|
|
2486
|
-
protoOf(Instruction).
|
|
2487
|
-
description = description === VOID ? this.
|
|
2488
|
-
descriptionTemplate = descriptionTemplate === VOID ? this.
|
|
2489
|
-
images = images === VOID ? this.
|
|
2490
|
-
stepNumber = stepNumber === VOID ? this.
|
|
2491
|
-
return $super === VOID ? this.
|
|
2571
|
+
protoOf(Instruction).w1g = function (description, descriptionTemplate, images, stepNumber, $super) {
|
|
2572
|
+
description = description === VOID ? this.s1g_1 : description;
|
|
2573
|
+
descriptionTemplate = descriptionTemplate === VOID ? this.t1g_1 : descriptionTemplate;
|
|
2574
|
+
images = images === VOID ? this.u1g_1 : images;
|
|
2575
|
+
stepNumber = stepNumber === VOID ? this.v1g_1 : stepNumber;
|
|
2576
|
+
return $super === VOID ? this.q1i(description, descriptionTemplate, images, stepNumber) : $super.q1i.call(this, description, descriptionTemplate, images, stepNumber);
|
|
2492
2577
|
};
|
|
2493
2578
|
protoOf(Instruction).toString = function () {
|
|
2494
|
-
return 'Instruction(description=' + this.
|
|
2579
|
+
return 'Instruction(description=' + this.s1g_1 + ', descriptionTemplate=' + this.t1g_1 + ', images=' + toString(this.u1g_1) + ', stepNumber=' + this.v1g_1 + ')';
|
|
2495
2580
|
};
|
|
2496
2581
|
protoOf(Instruction).hashCode = function () {
|
|
2497
|
-
var result = getStringHashCode(this.
|
|
2498
|
-
result = imul(result, 31) + (this.
|
|
2499
|
-
result = imul(result, 31) + (this.
|
|
2500
|
-
result = imul(result, 31) + (this.
|
|
2582
|
+
var result = getStringHashCode(this.s1g_1);
|
|
2583
|
+
result = imul(result, 31) + (this.t1g_1 == null ? 0 : getStringHashCode(this.t1g_1)) | 0;
|
|
2584
|
+
result = imul(result, 31) + (this.u1g_1 == null ? 0 : hashCode(this.u1g_1)) | 0;
|
|
2585
|
+
result = imul(result, 31) + (this.v1g_1 == null ? 0 : getNumberHashCode(this.v1g_1)) | 0;
|
|
2501
2586
|
return result;
|
|
2502
2587
|
};
|
|
2503
2588
|
protoOf(Instruction).equals = function (other) {
|
|
@@ -2505,14 +2590,14 @@
|
|
|
2505
2590
|
return true;
|
|
2506
2591
|
if (!(other instanceof Instruction))
|
|
2507
2592
|
return false;
|
|
2508
|
-
if (!(this.
|
|
2509
|
-
return false;
|
|
2510
|
-
if (!(this.s1g_1 == other.s1g_1))
|
|
2593
|
+
if (!(this.s1g_1 === other.s1g_1))
|
|
2511
2594
|
return false;
|
|
2512
|
-
if (!
|
|
2595
|
+
if (!(this.t1g_1 == other.t1g_1))
|
|
2513
2596
|
return false;
|
|
2514
2597
|
if (!equals(this.u1g_1, other.u1g_1))
|
|
2515
2598
|
return false;
|
|
2599
|
+
if (!equals(this.v1g_1, other.v1g_1))
|
|
2600
|
+
return false;
|
|
2516
2601
|
return true;
|
|
2517
2602
|
};
|
|
2518
2603
|
function $serializer_8() {
|
|
@@ -2521,25 +2606,25 @@
|
|
|
2521
2606
|
tmp0_serialDesc.rs('amount', true);
|
|
2522
2607
|
tmp0_serialDesc.rs('text', true);
|
|
2523
2608
|
tmp0_serialDesc.rs('unit', false);
|
|
2524
|
-
this.
|
|
2609
|
+
this.r1i_1 = tmp0_serialDesc;
|
|
2525
2610
|
}
|
|
2526
|
-
protoOf($serializer_8).
|
|
2527
|
-
var tmp0_desc = this.
|
|
2611
|
+
protoOf($serializer_8).s1i = function (encoder, value) {
|
|
2612
|
+
var tmp0_desc = this.r1i_1;
|
|
2528
2613
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2529
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
2530
|
-
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.
|
|
2614
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.t1i_1 == null)) {
|
|
2615
|
+
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.t1i_1);
|
|
2531
2616
|
}
|
|
2532
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
2533
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2617
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.u1i_1 == null)) {
|
|
2618
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.u1i_1);
|
|
2534
2619
|
}
|
|
2535
|
-
tmp1_output.wm(tmp0_desc, 2, value.
|
|
2620
|
+
tmp1_output.wm(tmp0_desc, 2, value.v1i_1);
|
|
2536
2621
|
tmp1_output.jl(tmp0_desc);
|
|
2537
2622
|
};
|
|
2538
2623
|
protoOf($serializer_8).li = function (encoder, value) {
|
|
2539
|
-
return this.
|
|
2624
|
+
return this.s1i(encoder, value instanceof Serves ? value : THROW_CCE());
|
|
2540
2625
|
};
|
|
2541
2626
|
protoOf($serializer_8).mi = function (decoder) {
|
|
2542
|
-
var tmp0_desc = this.
|
|
2627
|
+
var tmp0_desc = this.r1i_1;
|
|
2543
2628
|
var tmp1_flag = true;
|
|
2544
2629
|
var tmp2_index = 0;
|
|
2545
2630
|
var tmp3_bitMask0 = 0;
|
|
@@ -2581,7 +2666,7 @@
|
|
|
2581
2666
|
return Serves_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2582
2667
|
};
|
|
2583
2668
|
protoOf($serializer_8).ki = function () {
|
|
2584
|
-
return this.
|
|
2669
|
+
return this.r1i_1;
|
|
2585
2670
|
};
|
|
2586
2671
|
protoOf($serializer_8).ts = function () {
|
|
2587
2672
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2597,17 +2682,17 @@
|
|
|
2597
2682
|
}
|
|
2598
2683
|
function Serves_init_$Init$(seen0, amount, text, unit, serializationConstructorMarker, $this) {
|
|
2599
2684
|
if (!(4 === (4 & seen0))) {
|
|
2600
|
-
throwMissingFieldException(seen0, 4, $serializer_getInstance_8().
|
|
2685
|
+
throwMissingFieldException(seen0, 4, $serializer_getInstance_8().r1i_1);
|
|
2601
2686
|
}
|
|
2602
2687
|
if (0 === (seen0 & 1))
|
|
2603
|
-
$this.
|
|
2688
|
+
$this.t1i_1 = null;
|
|
2604
2689
|
else
|
|
2605
|
-
$this.
|
|
2690
|
+
$this.t1i_1 = amount;
|
|
2606
2691
|
if (0 === (seen0 & 2))
|
|
2607
|
-
$this.
|
|
2692
|
+
$this.u1i_1 = null;
|
|
2608
2693
|
else
|
|
2609
|
-
$this.
|
|
2610
|
-
$this.
|
|
2694
|
+
$this.u1i_1 = text;
|
|
2695
|
+
$this.v1i_1 = unit;
|
|
2611
2696
|
return $this;
|
|
2612
2697
|
}
|
|
2613
2698
|
function Serves_init_$Create$(seen0, amount, text, unit, serializationConstructorMarker) {
|
|
@@ -2616,12 +2701,12 @@
|
|
|
2616
2701
|
function Serves() {
|
|
2617
2702
|
}
|
|
2618
2703
|
protoOf(Serves).toString = function () {
|
|
2619
|
-
return 'Serves(amount=' + toString(this.
|
|
2704
|
+
return 'Serves(amount=' + toString(this.t1i_1) + ', text=' + this.u1i_1 + ', unit=' + this.v1i_1 + ')';
|
|
2620
2705
|
};
|
|
2621
2706
|
protoOf(Serves).hashCode = function () {
|
|
2622
|
-
var result = this.
|
|
2623
|
-
result = imul(result, 31) + (this.
|
|
2624
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2707
|
+
var result = this.t1i_1 == null ? 0 : this.t1i_1.hashCode();
|
|
2708
|
+
result = imul(result, 31) + (this.u1i_1 == null ? 0 : getStringHashCode(this.u1i_1)) | 0;
|
|
2709
|
+
result = imul(result, 31) + getStringHashCode(this.v1i_1) | 0;
|
|
2625
2710
|
return result;
|
|
2626
2711
|
};
|
|
2627
2712
|
protoOf(Serves).equals = function (other) {
|
|
@@ -2629,11 +2714,11 @@
|
|
|
2629
2714
|
return true;
|
|
2630
2715
|
if (!(other instanceof Serves))
|
|
2631
2716
|
return false;
|
|
2632
|
-
if (!equals(this.
|
|
2717
|
+
if (!equals(this.t1i_1, other.t1i_1))
|
|
2633
2718
|
return false;
|
|
2634
|
-
if (!(this.
|
|
2719
|
+
if (!(this.u1i_1 == other.u1i_1))
|
|
2635
2720
|
return false;
|
|
2636
|
-
if (!(this.
|
|
2721
|
+
if (!(this.v1i_1 === other.v1i_1))
|
|
2637
2722
|
return false;
|
|
2638
2723
|
return true;
|
|
2639
2724
|
};
|
|
@@ -2649,27 +2734,27 @@
|
|
|
2649
2734
|
tmp0_serialDesc.rs('durationInMins', true);
|
|
2650
2735
|
tmp0_serialDesc.rs('qualifier', true);
|
|
2651
2736
|
tmp0_serialDesc.rs('text', true);
|
|
2652
|
-
this.
|
|
2737
|
+
this.w1i_1 = tmp0_serialDesc;
|
|
2653
2738
|
}
|
|
2654
|
-
protoOf($serializer_9).
|
|
2655
|
-
var tmp0_desc = this.
|
|
2739
|
+
protoOf($serializer_9).x1i = function (encoder, value) {
|
|
2740
|
+
var tmp0_desc = this.w1i_1;
|
|
2656
2741
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2657
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
2658
|
-
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.
|
|
2742
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.y1i_1 == null)) {
|
|
2743
|
+
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.y1i_1);
|
|
2659
2744
|
}
|
|
2660
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
2661
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2745
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.z1i_1 == null)) {
|
|
2746
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.z1i_1);
|
|
2662
2747
|
}
|
|
2663
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
2664
|
-
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
2748
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.a1j_1 == null)) {
|
|
2749
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.a1j_1);
|
|
2665
2750
|
}
|
|
2666
2751
|
tmp1_output.jl(tmp0_desc);
|
|
2667
2752
|
};
|
|
2668
2753
|
protoOf($serializer_9).li = function (encoder, value) {
|
|
2669
|
-
return this.
|
|
2754
|
+
return this.x1i(encoder, value instanceof Timing ? value : THROW_CCE());
|
|
2670
2755
|
};
|
|
2671
2756
|
protoOf($serializer_9).mi = function (decoder) {
|
|
2672
|
-
var tmp0_desc = this.
|
|
2757
|
+
var tmp0_desc = this.w1i_1;
|
|
2673
2758
|
var tmp1_flag = true;
|
|
2674
2759
|
var tmp2_index = 0;
|
|
2675
2760
|
var tmp3_bitMask0 = 0;
|
|
@@ -2711,7 +2796,7 @@
|
|
|
2711
2796
|
return Timing_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2712
2797
|
};
|
|
2713
2798
|
protoOf($serializer_9).ki = function () {
|
|
2714
|
-
return this.
|
|
2799
|
+
return this.w1i_1;
|
|
2715
2800
|
};
|
|
2716
2801
|
protoOf($serializer_9).ts = function () {
|
|
2717
2802
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2727,20 +2812,20 @@
|
|
|
2727
2812
|
}
|
|
2728
2813
|
function Timing_init_$Init$(seen0, durationInMins, qualifier, text, serializationConstructorMarker, $this) {
|
|
2729
2814
|
if (!(0 === (0 & seen0))) {
|
|
2730
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().
|
|
2815
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().w1i_1);
|
|
2731
2816
|
}
|
|
2732
2817
|
if (0 === (seen0 & 1))
|
|
2733
|
-
$this.
|
|
2818
|
+
$this.y1i_1 = null;
|
|
2734
2819
|
else
|
|
2735
|
-
$this.
|
|
2820
|
+
$this.y1i_1 = durationInMins;
|
|
2736
2821
|
if (0 === (seen0 & 2))
|
|
2737
|
-
$this.
|
|
2822
|
+
$this.z1i_1 = null;
|
|
2738
2823
|
else
|
|
2739
|
-
$this.
|
|
2824
|
+
$this.z1i_1 = qualifier;
|
|
2740
2825
|
if (0 === (seen0 & 4))
|
|
2741
|
-
$this.
|
|
2826
|
+
$this.a1j_1 = null;
|
|
2742
2827
|
else
|
|
2743
|
-
$this.
|
|
2828
|
+
$this.a1j_1 = text;
|
|
2744
2829
|
return $this;
|
|
2745
2830
|
}
|
|
2746
2831
|
function Timing_init_$Create$(seen0, durationInMins, qualifier, text, serializationConstructorMarker) {
|
|
@@ -2750,17 +2835,17 @@
|
|
|
2750
2835
|
durationInMins = durationInMins === VOID ? null : durationInMins;
|
|
2751
2836
|
qualifier = qualifier === VOID ? null : qualifier;
|
|
2752
2837
|
text = text === VOID ? null : text;
|
|
2753
|
-
this.
|
|
2754
|
-
this.
|
|
2755
|
-
this.
|
|
2838
|
+
this.y1i_1 = durationInMins;
|
|
2839
|
+
this.z1i_1 = qualifier;
|
|
2840
|
+
this.a1j_1 = text;
|
|
2756
2841
|
}
|
|
2757
2842
|
protoOf(Timing).toString = function () {
|
|
2758
|
-
return 'Timing(durationInMins=' + toString(this.
|
|
2843
|
+
return 'Timing(durationInMins=' + toString(this.y1i_1) + ', qualifier=' + this.z1i_1 + ', text=' + this.a1j_1 + ')';
|
|
2759
2844
|
};
|
|
2760
2845
|
protoOf(Timing).hashCode = function () {
|
|
2761
|
-
var result = this.
|
|
2762
|
-
result = imul(result, 31) + (this.y1i_1 == null ? 0 : getStringHashCode(this.y1i_1)) | 0;
|
|
2846
|
+
var result = this.y1i_1 == null ? 0 : this.y1i_1.hashCode();
|
|
2763
2847
|
result = imul(result, 31) + (this.z1i_1 == null ? 0 : getStringHashCode(this.z1i_1)) | 0;
|
|
2848
|
+
result = imul(result, 31) + (this.a1j_1 == null ? 0 : getStringHashCode(this.a1j_1)) | 0;
|
|
2764
2849
|
return result;
|
|
2765
2850
|
};
|
|
2766
2851
|
protoOf(Timing).equals = function (other) {
|
|
@@ -2768,29 +2853,29 @@
|
|
|
2768
2853
|
return true;
|
|
2769
2854
|
if (!(other instanceof Timing))
|
|
2770
2855
|
return false;
|
|
2771
|
-
if (!equals(this.
|
|
2772
|
-
return false;
|
|
2773
|
-
if (!(this.y1i_1 == other.y1i_1))
|
|
2856
|
+
if (!equals(this.y1i_1, other.y1i_1))
|
|
2774
2857
|
return false;
|
|
2775
2858
|
if (!(this.z1i_1 == other.z1i_1))
|
|
2776
2859
|
return false;
|
|
2860
|
+
if (!(this.a1j_1 == other.a1j_1))
|
|
2861
|
+
return false;
|
|
2777
2862
|
return true;
|
|
2778
2863
|
};
|
|
2779
2864
|
function ParsedTemplate(elements) {
|
|
2780
|
-
this.
|
|
2865
|
+
this.i1f_1 = elements;
|
|
2781
2866
|
}
|
|
2782
2867
|
protoOf(ParsedTemplate).toString = function () {
|
|
2783
|
-
return 'ParsedTemplate(elements=' + toString_0(this.
|
|
2868
|
+
return 'ParsedTemplate(elements=' + toString_0(this.i1f_1) + ')';
|
|
2784
2869
|
};
|
|
2785
2870
|
protoOf(ParsedTemplate).hashCode = function () {
|
|
2786
|
-
return hashCode(this.
|
|
2871
|
+
return hashCode(this.i1f_1);
|
|
2787
2872
|
};
|
|
2788
2873
|
protoOf(ParsedTemplate).equals = function (other) {
|
|
2789
2874
|
if (this === other)
|
|
2790
2875
|
return true;
|
|
2791
2876
|
if (!(other instanceof ParsedTemplate))
|
|
2792
2877
|
return false;
|
|
2793
|
-
if (!equals(this.
|
|
2878
|
+
if (!equals(this.i1f_1, other.i1f_1))
|
|
2794
2879
|
return false;
|
|
2795
2880
|
return true;
|
|
2796
2881
|
};
|
|
@@ -2884,12 +2969,12 @@
|
|
|
2884
2969
|
protoOf(TemplateConst).hd = function () {
|
|
2885
2970
|
return this.value;
|
|
2886
2971
|
};
|
|
2887
|
-
protoOf(TemplateConst).
|
|
2972
|
+
protoOf(TemplateConst).b1j = function (value) {
|
|
2888
2973
|
return new TemplateConst(value);
|
|
2889
2974
|
};
|
|
2890
2975
|
protoOf(TemplateConst).copy = function (value, $super) {
|
|
2891
2976
|
value = value === VOID ? this.value : value;
|
|
2892
|
-
return $super === VOID ? this.
|
|
2977
|
+
return $super === VOID ? this.b1j(value) : $super.b1j.call(this, value);
|
|
2893
2978
|
};
|
|
2894
2979
|
protoOf(TemplateConst).toString = function () {
|
|
2895
2980
|
return 'TemplateConst(value=' + this.value + ')';
|
|
@@ -2921,10 +3006,10 @@
|
|
|
2921
3006
|
tmp0_serialDesc.rs('scale', true);
|
|
2922
3007
|
tmp0_serialDesc.rs('ingredient', true);
|
|
2923
3008
|
tmp0_serialDesc.rs('usCust', true);
|
|
2924
|
-
this.
|
|
3009
|
+
this.c1j_1 = tmp0_serialDesc;
|
|
2925
3010
|
}
|
|
2926
|
-
protoOf($serializer_10).
|
|
2927
|
-
var tmp0_desc = this.
|
|
3011
|
+
protoOf($serializer_10).d1j = function (encoder, value) {
|
|
3012
|
+
var tmp0_desc = this.c1j_1;
|
|
2928
3013
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2929
3014
|
tmp1_output.tm(tmp0_desc, 0, value.min);
|
|
2930
3015
|
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.max == null)) {
|
|
@@ -2945,10 +3030,10 @@
|
|
|
2945
3030
|
tmp1_output.jl(tmp0_desc);
|
|
2946
3031
|
};
|
|
2947
3032
|
protoOf($serializer_10).li = function (encoder, value) {
|
|
2948
|
-
return this.
|
|
3033
|
+
return this.d1j(encoder, value instanceof QuantityPlaceholder ? value : THROW_CCE());
|
|
2949
3034
|
};
|
|
2950
3035
|
protoOf($serializer_10).mi = function (decoder) {
|
|
2951
|
-
var tmp0_desc = this.
|
|
3036
|
+
var tmp0_desc = this.c1j_1;
|
|
2952
3037
|
var tmp1_flag = true;
|
|
2953
3038
|
var tmp2_index = 0;
|
|
2954
3039
|
var tmp3_bitMask0 = 0;
|
|
@@ -3011,7 +3096,7 @@
|
|
|
3011
3096
|
return QuantityPlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
3012
3097
|
};
|
|
3013
3098
|
protoOf($serializer_10).ki = function () {
|
|
3014
|
-
return this.
|
|
3099
|
+
return this.c1j_1;
|
|
3015
3100
|
};
|
|
3016
3101
|
protoOf($serializer_10).ts = function () {
|
|
3017
3102
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3027,7 +3112,7 @@
|
|
|
3027
3112
|
}
|
|
3028
3113
|
function QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, ingredient, usCust, serializationConstructorMarker, $this) {
|
|
3029
3114
|
if (!(1 === (1 & seen0))) {
|
|
3030
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().
|
|
3115
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().c1j_1);
|
|
3031
3116
|
}
|
|
3032
3117
|
$this.min = min;
|
|
3033
3118
|
if (0 === (seen0 & 2))
|
|
@@ -3068,22 +3153,22 @@
|
|
|
3068
3153
|
this.ingredient = ingredient;
|
|
3069
3154
|
this.usCust = usCust;
|
|
3070
3155
|
}
|
|
3071
|
-
protoOf(QuantityPlaceholder).
|
|
3156
|
+
protoOf(QuantityPlaceholder).e1j = function () {
|
|
3072
3157
|
return this.min;
|
|
3073
3158
|
};
|
|
3074
|
-
protoOf(QuantityPlaceholder).
|
|
3159
|
+
protoOf(QuantityPlaceholder).f1j = function () {
|
|
3075
3160
|
return this.max;
|
|
3076
3161
|
};
|
|
3077
|
-
protoOf(QuantityPlaceholder).
|
|
3162
|
+
protoOf(QuantityPlaceholder).g1j = function () {
|
|
3078
3163
|
return this.unit;
|
|
3079
3164
|
};
|
|
3080
|
-
protoOf(QuantityPlaceholder).
|
|
3165
|
+
protoOf(QuantityPlaceholder).h1j = function () {
|
|
3081
3166
|
return this.scale;
|
|
3082
3167
|
};
|
|
3083
|
-
protoOf(QuantityPlaceholder).
|
|
3168
|
+
protoOf(QuantityPlaceholder).i1j = function () {
|
|
3084
3169
|
return this.ingredient;
|
|
3085
3170
|
};
|
|
3086
|
-
protoOf(QuantityPlaceholder).
|
|
3171
|
+
protoOf(QuantityPlaceholder).j1j = function () {
|
|
3087
3172
|
return this.usCust;
|
|
3088
3173
|
};
|
|
3089
3174
|
protoOf(QuantityPlaceholder).hd = function () {
|
|
@@ -3092,19 +3177,19 @@
|
|
|
3092
3177
|
protoOf(QuantityPlaceholder).id = function () {
|
|
3093
3178
|
return this.max;
|
|
3094
3179
|
};
|
|
3095
|
-
protoOf(QuantityPlaceholder).
|
|
3180
|
+
protoOf(QuantityPlaceholder).k1j = function () {
|
|
3096
3181
|
return this.unit;
|
|
3097
3182
|
};
|
|
3098
|
-
protoOf(QuantityPlaceholder).
|
|
3183
|
+
protoOf(QuantityPlaceholder).l1j = function () {
|
|
3099
3184
|
return this.scale;
|
|
3100
3185
|
};
|
|
3101
|
-
protoOf(QuantityPlaceholder).
|
|
3186
|
+
protoOf(QuantityPlaceholder).m1j = function () {
|
|
3102
3187
|
return this.ingredient;
|
|
3103
3188
|
};
|
|
3104
|
-
protoOf(QuantityPlaceholder).
|
|
3189
|
+
protoOf(QuantityPlaceholder).n1j = function () {
|
|
3105
3190
|
return this.usCust;
|
|
3106
3191
|
};
|
|
3107
|
-
protoOf(QuantityPlaceholder).
|
|
3192
|
+
protoOf(QuantityPlaceholder).o1j = function (min, max, unit, scale, ingredient, usCust) {
|
|
3108
3193
|
return new QuantityPlaceholder(min, max, unit, scale, ingredient, usCust);
|
|
3109
3194
|
};
|
|
3110
3195
|
protoOf(QuantityPlaceholder).copy = function (min, max, unit, scale, ingredient, usCust, $super) {
|
|
@@ -3114,7 +3199,7 @@
|
|
|
3114
3199
|
scale = scale === VOID ? this.scale : scale;
|
|
3115
3200
|
ingredient = ingredient === VOID ? this.ingredient : ingredient;
|
|
3116
3201
|
usCust = usCust === VOID ? this.usCust : usCust;
|
|
3117
|
-
return $super === VOID ? this.
|
|
3202
|
+
return $super === VOID ? this.o1j(min, max, unit, scale, ingredient, usCust) : $super.o1j.call(this, min, max, unit, scale, ingredient, usCust);
|
|
3118
3203
|
};
|
|
3119
3204
|
protoOf(QuantityPlaceholder).toString = function () {
|
|
3120
3205
|
return 'QuantityPlaceholder(min=' + this.min + ', max=' + this.max + ', unit=' + this.unit + ', scale=' + this.scale + ', ingredient=' + this.ingredient + ', usCust=' + this.usCust + ')';
|
|
@@ -3160,10 +3245,10 @@
|
|
|
3160
3245
|
tmp0_serialDesc.rs('temperatureFanC', true);
|
|
3161
3246
|
tmp0_serialDesc.rs('temperatureF', true);
|
|
3162
3247
|
tmp0_serialDesc.rs('gasMark', true);
|
|
3163
|
-
this.
|
|
3248
|
+
this.p1j_1 = tmp0_serialDesc;
|
|
3164
3249
|
}
|
|
3165
|
-
protoOf($serializer_11).
|
|
3166
|
-
var tmp0_desc = this.
|
|
3250
|
+
protoOf($serializer_11).q1j = function (encoder, value) {
|
|
3251
|
+
var tmp0_desc = this.p1j_1;
|
|
3167
3252
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
3168
3253
|
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.temperatureC == null)) {
|
|
3169
3254
|
tmp1_output.an(tmp0_desc, 0, IntSerializer_getInstance(), value.temperatureC);
|
|
@@ -3180,10 +3265,10 @@
|
|
|
3180
3265
|
tmp1_output.jl(tmp0_desc);
|
|
3181
3266
|
};
|
|
3182
3267
|
protoOf($serializer_11).li = function (encoder, value) {
|
|
3183
|
-
return this.
|
|
3268
|
+
return this.q1j(encoder, value instanceof OvenTemperaturePlaceholder ? value : THROW_CCE());
|
|
3184
3269
|
};
|
|
3185
3270
|
protoOf($serializer_11).mi = function (decoder) {
|
|
3186
|
-
var tmp0_desc = this.
|
|
3271
|
+
var tmp0_desc = this.p1j_1;
|
|
3187
3272
|
var tmp1_flag = true;
|
|
3188
3273
|
var tmp2_index = 0;
|
|
3189
3274
|
var tmp3_bitMask0 = 0;
|
|
@@ -3232,7 +3317,7 @@
|
|
|
3232
3317
|
return OvenTemperaturePlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
3233
3318
|
};
|
|
3234
3319
|
protoOf($serializer_11).ki = function () {
|
|
3235
|
-
return this.
|
|
3320
|
+
return this.p1j_1;
|
|
3236
3321
|
};
|
|
3237
3322
|
protoOf($serializer_11).ts = function () {
|
|
3238
3323
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3248,7 +3333,7 @@
|
|
|
3248
3333
|
}
|
|
3249
3334
|
function OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, $this) {
|
|
3250
3335
|
if (!(0 === (0 & seen0))) {
|
|
3251
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_11().
|
|
3336
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_11().p1j_1);
|
|
3252
3337
|
}
|
|
3253
3338
|
if (0 === (seen0 & 1))
|
|
3254
3339
|
$this.temperatureC = null;
|
|
@@ -3281,16 +3366,16 @@
|
|
|
3281
3366
|
this.temperatureF = temperatureF;
|
|
3282
3367
|
this.gasMark = gasMark;
|
|
3283
3368
|
}
|
|
3284
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3369
|
+
protoOf(OvenTemperaturePlaceholder).r1j = function () {
|
|
3285
3370
|
return this.temperatureC;
|
|
3286
3371
|
};
|
|
3287
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3372
|
+
protoOf(OvenTemperaturePlaceholder).s1j = function () {
|
|
3288
3373
|
return this.temperatureFanC;
|
|
3289
3374
|
};
|
|
3290
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3375
|
+
protoOf(OvenTemperaturePlaceholder).t1j = function () {
|
|
3291
3376
|
return this.temperatureF;
|
|
3292
3377
|
};
|
|
3293
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3378
|
+
protoOf(OvenTemperaturePlaceholder).u1j = function () {
|
|
3294
3379
|
return this.gasMark;
|
|
3295
3380
|
};
|
|
3296
3381
|
protoOf(OvenTemperaturePlaceholder).hd = function () {
|
|
@@ -3299,13 +3384,13 @@
|
|
|
3299
3384
|
protoOf(OvenTemperaturePlaceholder).id = function () {
|
|
3300
3385
|
return this.temperatureFanC;
|
|
3301
3386
|
};
|
|
3302
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3387
|
+
protoOf(OvenTemperaturePlaceholder).k1j = function () {
|
|
3303
3388
|
return this.temperatureF;
|
|
3304
3389
|
};
|
|
3305
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3390
|
+
protoOf(OvenTemperaturePlaceholder).l1j = function () {
|
|
3306
3391
|
return this.gasMark;
|
|
3307
3392
|
};
|
|
3308
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3393
|
+
protoOf(OvenTemperaturePlaceholder).v1j = function (temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
3309
3394
|
return new OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3310
3395
|
};
|
|
3311
3396
|
protoOf(OvenTemperaturePlaceholder).copy = function (temperatureC, temperatureFanC, temperatureF, gasMark, $super) {
|
|
@@ -3313,7 +3398,7 @@
|
|
|
3313
3398
|
temperatureFanC = temperatureFanC === VOID ? this.temperatureFanC : temperatureFanC;
|
|
3314
3399
|
temperatureF = temperatureF === VOID ? this.temperatureF : temperatureF;
|
|
3315
3400
|
gasMark = gasMark === VOID ? this.gasMark : gasMark;
|
|
3316
|
-
return $super === VOID ? this.
|
|
3401
|
+
return $super === VOID ? this.v1j(temperatureC, temperatureFanC, temperatureF, gasMark) : $super.v1j.call(this, temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3317
3402
|
};
|
|
3318
3403
|
protoOf(OvenTemperaturePlaceholder).toString = function () {
|
|
3319
3404
|
return 'OvenTemperaturePlaceholder(temperatureC=' + this.temperatureC + ', temperatureFanC=' + this.temperatureFanC + ', temperatureF=' + this.temperatureF + ', gasMark=' + this.gasMark + ')';
|
|
@@ -3358,6 +3443,24 @@
|
|
|
3358
3443
|
function USCustomary_getInstance() {
|
|
3359
3444
|
return USCustomary_instance;
|
|
3360
3445
|
}
|
|
3446
|
+
function USCustomaryWithMetric() {
|
|
3447
|
+
}
|
|
3448
|
+
var USCustomaryWithMetric_instance;
|
|
3449
|
+
function USCustomaryWithMetric_getInstance() {
|
|
3450
|
+
return USCustomaryWithMetric_instance;
|
|
3451
|
+
}
|
|
3452
|
+
function USCustomaryWithImperial() {
|
|
3453
|
+
}
|
|
3454
|
+
var USCustomaryWithImperial_instance;
|
|
3455
|
+
function USCustomaryWithImperial_getInstance() {
|
|
3456
|
+
return USCustomaryWithImperial_instance;
|
|
3457
|
+
}
|
|
3458
|
+
function USCombined() {
|
|
3459
|
+
}
|
|
3460
|
+
var USCombined_instance;
|
|
3461
|
+
function USCombined_getInstance() {
|
|
3462
|
+
return USCombined_instance;
|
|
3463
|
+
}
|
|
3361
3464
|
var UnitType_WEIGHT_instance;
|
|
3362
3465
|
var UnitType_VOLUME_instance;
|
|
3363
3466
|
var UnitType_LENGTH_instance;
|
|
@@ -3374,25 +3477,25 @@
|
|
|
3374
3477
|
Enum.call(this, name, ordinal);
|
|
3375
3478
|
}
|
|
3376
3479
|
function MeasurementUnit(singular, plural, symbol, symbolPlural, unitType, measuringSystems, quantity) {
|
|
3377
|
-
this.
|
|
3378
|
-
this.
|
|
3379
|
-
this.
|
|
3380
|
-
this.
|
|
3381
|
-
this.
|
|
3382
|
-
this.
|
|
3383
|
-
this.
|
|
3480
|
+
this.z1e_1 = singular;
|
|
3481
|
+
this.a1f_1 = plural;
|
|
3482
|
+
this.b1f_1 = symbol;
|
|
3483
|
+
this.c1f_1 = symbolPlural;
|
|
3484
|
+
this.d1f_1 = unitType;
|
|
3485
|
+
this.e1f_1 = measuringSystems;
|
|
3486
|
+
this.f1f_1 = quantity;
|
|
3384
3487
|
}
|
|
3385
3488
|
protoOf(MeasurementUnit).toString = function () {
|
|
3386
|
-
return 'MeasurementUnit(singular=' + this.
|
|
3489
|
+
return 'MeasurementUnit(singular=' + this.z1e_1 + ', plural=' + this.a1f_1 + ', symbol=' + this.b1f_1 + ', symbolPlural=' + this.c1f_1 + ', unitType=' + toString(this.d1f_1) + ', measuringSystems=' + toString_0(this.e1f_1) + ', quantity=' + this.f1f_1 + ')';
|
|
3387
3490
|
};
|
|
3388
3491
|
protoOf(MeasurementUnit).hashCode = function () {
|
|
3389
|
-
var result = getStringHashCode(this.
|
|
3390
|
-
result = imul(result, 31) + getStringHashCode(this.z1e_1) | 0;
|
|
3492
|
+
var result = getStringHashCode(this.z1e_1);
|
|
3391
3493
|
result = imul(result, 31) + getStringHashCode(this.a1f_1) | 0;
|
|
3392
3494
|
result = imul(result, 31) + getStringHashCode(this.b1f_1) | 0;
|
|
3393
|
-
result = imul(result, 31) + (this.c1f_1
|
|
3394
|
-
result = imul(result, 31) +
|
|
3395
|
-
result = imul(result, 31) +
|
|
3495
|
+
result = imul(result, 31) + getStringHashCode(this.c1f_1) | 0;
|
|
3496
|
+
result = imul(result, 31) + (this.d1f_1 == null ? 0 : this.d1f_1.hashCode()) | 0;
|
|
3497
|
+
result = imul(result, 31) + hashCode(this.e1f_1) | 0;
|
|
3498
|
+
result = imul(result, 31) + getNumberHashCode(this.f1f_1) | 0;
|
|
3396
3499
|
return result;
|
|
3397
3500
|
};
|
|
3398
3501
|
protoOf(MeasurementUnit).equals = function (other) {
|
|
@@ -3400,20 +3503,20 @@
|
|
|
3400
3503
|
return true;
|
|
3401
3504
|
if (!(other instanceof MeasurementUnit))
|
|
3402
3505
|
return false;
|
|
3403
|
-
if (!(this.y1e_1 === other.y1e_1))
|
|
3404
|
-
return false;
|
|
3405
3506
|
if (!(this.z1e_1 === other.z1e_1))
|
|
3406
3507
|
return false;
|
|
3407
3508
|
if (!(this.a1f_1 === other.a1f_1))
|
|
3408
3509
|
return false;
|
|
3409
3510
|
if (!(this.b1f_1 === other.b1f_1))
|
|
3410
3511
|
return false;
|
|
3411
|
-
if (!
|
|
3512
|
+
if (!(this.c1f_1 === other.c1f_1))
|
|
3412
3513
|
return false;
|
|
3413
3514
|
if (!equals(this.d1f_1, other.d1f_1))
|
|
3414
3515
|
return false;
|
|
3415
3516
|
if (!equals(this.e1f_1, other.e1f_1))
|
|
3416
3517
|
return false;
|
|
3518
|
+
if (!equals(this.f1f_1, other.f1f_1))
|
|
3519
|
+
return false;
|
|
3417
3520
|
return true;
|
|
3418
3521
|
};
|
|
3419
3522
|
function Units() {
|
|
@@ -3421,20 +3524,20 @@
|
|
|
3421
3524
|
this.n1d_1 = new MeasurementUnit('gram', 'grams', 'g', 'g', UnitType_WEIGHT_getInstance(), setOf(Metric_instance), 1.0);
|
|
3422
3525
|
this.o1d_1 = new MeasurementUnit('kilogram', 'kilograms', 'kg', 'kg', UnitType_WEIGHT_getInstance(), setOf(Metric_instance), 1000.0);
|
|
3423
3526
|
this.p1d_1 = new MeasurementUnit('ounce', 'ounces', 'oz', 'oz', UnitType_WEIGHT_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 28.3495);
|
|
3424
|
-
this.q1d_1 = new MeasurementUnit('pound', 'pounds', 'lb', 'lbs', UnitType_WEIGHT_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 16 * this.p1d_1.
|
|
3527
|
+
this.q1d_1 = new MeasurementUnit('pound', 'pounds', 'lb', 'lbs', UnitType_WEIGHT_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 16 * this.p1d_1.f1f_1);
|
|
3425
3528
|
this.r1d_1 = new MeasurementUnit('millilitre', 'millilitres', 'ml', 'ml', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 1.0);
|
|
3426
3529
|
this.s1d_1 = new MeasurementUnit('centilitre', 'centilitres', 'cl', 'cl', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 10.0);
|
|
3427
3530
|
this.t1d_1 = new MeasurementUnit('litre', 'litres', 'l', 'l', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 1000.0);
|
|
3428
3531
|
this.u1d_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 5.0);
|
|
3429
3532
|
this.v1d_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 15.0);
|
|
3430
3533
|
this.w1d_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 4.9289);
|
|
3431
|
-
this.x1d_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 3 * this.w1d_1.
|
|
3432
|
-
this.y1d_1 = new MeasurementUnit('fluid ounce', 'fluid ounces', 'fl oz', 'fl oz', UnitType_VOLUME_getInstance(), setOf(Imperial_instance), 6 * this.w1d_1.
|
|
3433
|
-
this.z1d_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf(USCustomary_instance), 48 * this.w1d_1.
|
|
3534
|
+
this.x1d_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 3 * this.w1d_1.f1f_1);
|
|
3535
|
+
this.y1d_1 = new MeasurementUnit('fluid ounce', 'fluid ounces', 'fl oz', 'fl oz', UnitType_VOLUME_getInstance(), setOf(Imperial_instance), 6 * this.w1d_1.f1f_1);
|
|
3536
|
+
this.z1d_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf(USCustomary_instance), 48 * this.w1d_1.f1f_1);
|
|
3434
3537
|
this.a1e_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 250.0);
|
|
3435
|
-
this.b1e_1 = new MeasurementUnit('pint', 'pints', 'pt', 'pts', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 2 * this.z1d_1.
|
|
3436
|
-
this.c1e_1 = new MeasurementUnit('quart', 'quarts', 'qt', 'qts', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 2 * this.b1e_1.
|
|
3437
|
-
this.d1e_1 = new MeasurementUnit('gallon', 'gallons', 'gal', 'gals', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 4 * this.c1e_1.
|
|
3538
|
+
this.b1e_1 = new MeasurementUnit('pint', 'pints', 'pt', 'pts', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 2 * this.z1d_1.f1f_1);
|
|
3539
|
+
this.c1e_1 = new MeasurementUnit('quart', 'quarts', 'qt', 'qts', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 2 * this.b1e_1.f1f_1);
|
|
3540
|
+
this.d1e_1 = new MeasurementUnit('gallon', 'gallons', 'gal', 'gals', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 4 * this.c1e_1.f1f_1);
|
|
3438
3541
|
this.e1e_1 = new MeasurementUnit('millimetre', 'millimetres', 'mm', 'mm', UnitType_LENGTH_getInstance(), setOf(Metric_instance), 1.0);
|
|
3439
3542
|
this.f1e_1 = new MeasurementUnit('centimetre', 'centimetres', 'cm', 'cm', UnitType_LENGTH_getInstance(), setOf(Metric_instance), 10.0);
|
|
3440
3543
|
this.g1e_1 = new MeasurementUnit('inch', 'inches', 'in', 'in', UnitType_LENGTH_getInstance(), setOf(Imperial_instance), 25.4);
|
|
@@ -3447,7 +3550,7 @@
|
|
|
3447
3550
|
var _iterator__ex2g4s = tmp0.s();
|
|
3448
3551
|
while (_iterator__ex2g4s.t()) {
|
|
3449
3552
|
var element = _iterator__ex2g4s.u();
|
|
3450
|
-
if (element.
|
|
3553
|
+
if (element.e1f_1.z(Metric_instance)) {
|
|
3451
3554
|
destination.w(element);
|
|
3452
3555
|
}
|
|
3453
3556
|
}
|
|
@@ -3459,7 +3562,7 @@
|
|
|
3459
3562
|
var _iterator__ex2g4s_0 = destination.s();
|
|
3460
3563
|
while (_iterator__ex2g4s_0.t()) {
|
|
3461
3564
|
var element_0 = _iterator__ex2g4s_0.u();
|
|
3462
|
-
var tmp$ret$3 = element_0.
|
|
3565
|
+
var tmp$ret$3 = element_0.b1f_1;
|
|
3463
3566
|
destination_0.o2(tmp$ret$3, element_0);
|
|
3464
3567
|
}
|
|
3465
3568
|
var tmp_0 = destination_0;
|
|
@@ -3470,7 +3573,7 @@
|
|
|
3470
3573
|
var _iterator__ex2g4s_1 = destination.s();
|
|
3471
3574
|
while (_iterator__ex2g4s_1.t()) {
|
|
3472
3575
|
var element_1 = _iterator__ex2g4s_1.u();
|
|
3473
|
-
var tmp$ret$6 = element_1.
|
|
3576
|
+
var tmp$ret$6 = element_1.c1f_1;
|
|
3474
3577
|
destination_1.o2(tmp$ret$6, element_1);
|
|
3475
3578
|
}
|
|
3476
3579
|
var tmp_1 = plus(tmp_0, destination_1);
|
|
@@ -3481,7 +3584,7 @@
|
|
|
3481
3584
|
var _iterator__ex2g4s_2 = destination.s();
|
|
3482
3585
|
while (_iterator__ex2g4s_2.t()) {
|
|
3483
3586
|
var element_2 = _iterator__ex2g4s_2.u();
|
|
3484
|
-
var tmp$ret$9 = element_2.
|
|
3587
|
+
var tmp$ret$9 = element_2.z1e_1;
|
|
3485
3588
|
destination_2.o2(tmp$ret$9, element_2);
|
|
3486
3589
|
}
|
|
3487
3590
|
var tmp_2 = plus(tmp_1, destination_2);
|
|
@@ -3492,7 +3595,7 @@
|
|
|
3492
3595
|
var _iterator__ex2g4s_3 = destination.s();
|
|
3493
3596
|
while (_iterator__ex2g4s_3.t()) {
|
|
3494
3597
|
var element_3 = _iterator__ex2g4s_3.u();
|
|
3495
|
-
var tmp$ret$12 = element_3.
|
|
3598
|
+
var tmp$ret$12 = element_3.a1f_1;
|
|
3496
3599
|
destination_3.o2(tmp$ret$12, element_3);
|
|
3497
3600
|
}
|
|
3498
3601
|
tmp.i1e_1 = plus(tmp_2, destination_3);
|
|
@@ -3504,7 +3607,7 @@
|
|
|
3504
3607
|
var _iterator__ex2g4s_4 = tmp0_0.s();
|
|
3505
3608
|
while (_iterator__ex2g4s_4.t()) {
|
|
3506
3609
|
var element_4 = _iterator__ex2g4s_4.u();
|
|
3507
|
-
if (element_4.
|
|
3610
|
+
if (element_4.e1f_1.z(Imperial_instance)) {
|
|
3508
3611
|
destination_4.w(element_4);
|
|
3509
3612
|
}
|
|
3510
3613
|
}
|
|
@@ -3516,7 +3619,7 @@
|
|
|
3516
3619
|
var _iterator__ex2g4s_5 = destination_4.s();
|
|
3517
3620
|
while (_iterator__ex2g4s_5.t()) {
|
|
3518
3621
|
var element_5 = _iterator__ex2g4s_5.u();
|
|
3519
|
-
var tmp$ret$20 = element_5.
|
|
3622
|
+
var tmp$ret$20 = element_5.b1f_1;
|
|
3520
3623
|
destination_5.o2(tmp$ret$20, element_5);
|
|
3521
3624
|
}
|
|
3522
3625
|
var tmp_4 = destination_5;
|
|
@@ -3527,7 +3630,7 @@
|
|
|
3527
3630
|
var _iterator__ex2g4s_6 = destination_4.s();
|
|
3528
3631
|
while (_iterator__ex2g4s_6.t()) {
|
|
3529
3632
|
var element_6 = _iterator__ex2g4s_6.u();
|
|
3530
|
-
var tmp$ret$23 = element_6.
|
|
3633
|
+
var tmp$ret$23 = element_6.c1f_1;
|
|
3531
3634
|
destination_6.o2(tmp$ret$23, element_6);
|
|
3532
3635
|
}
|
|
3533
3636
|
var tmp_5 = plus(tmp_4, destination_6);
|
|
@@ -3538,7 +3641,7 @@
|
|
|
3538
3641
|
var _iterator__ex2g4s_7 = destination_4.s();
|
|
3539
3642
|
while (_iterator__ex2g4s_7.t()) {
|
|
3540
3643
|
var element_7 = _iterator__ex2g4s_7.u();
|
|
3541
|
-
var tmp$ret$26 = element_7.
|
|
3644
|
+
var tmp$ret$26 = element_7.z1e_1;
|
|
3542
3645
|
destination_7.o2(tmp$ret$26, element_7);
|
|
3543
3646
|
}
|
|
3544
3647
|
var tmp_6 = plus(tmp_5, destination_7);
|
|
@@ -3549,7 +3652,7 @@
|
|
|
3549
3652
|
var _iterator__ex2g4s_8 = destination_4.s();
|
|
3550
3653
|
while (_iterator__ex2g4s_8.t()) {
|
|
3551
3654
|
var element_8 = _iterator__ex2g4s_8.u();
|
|
3552
|
-
var tmp$ret$29 = element_8.
|
|
3655
|
+
var tmp$ret$29 = element_8.a1f_1;
|
|
3553
3656
|
destination_8.o2(tmp$ret$29, element_8);
|
|
3554
3657
|
}
|
|
3555
3658
|
tmp_3.j1e_1 = plus(tmp_6, destination_8);
|
|
@@ -3561,7 +3664,7 @@
|
|
|
3561
3664
|
var _iterator__ex2g4s_9 = tmp0_1.s();
|
|
3562
3665
|
while (_iterator__ex2g4s_9.t()) {
|
|
3563
3666
|
var element_9 = _iterator__ex2g4s_9.u();
|
|
3564
|
-
if (element_9.
|
|
3667
|
+
if (element_9.e1f_1.z(USCustomary_instance)) {
|
|
3565
3668
|
destination_9.w(element_9);
|
|
3566
3669
|
}
|
|
3567
3670
|
}
|
|
@@ -3573,7 +3676,7 @@
|
|
|
3573
3676
|
var _iterator__ex2g4s_10 = destination_9.s();
|
|
3574
3677
|
while (_iterator__ex2g4s_10.t()) {
|
|
3575
3678
|
var element_10 = _iterator__ex2g4s_10.u();
|
|
3576
|
-
var tmp$ret$37 = element_10.
|
|
3679
|
+
var tmp$ret$37 = element_10.b1f_1;
|
|
3577
3680
|
destination_10.o2(tmp$ret$37, element_10);
|
|
3578
3681
|
}
|
|
3579
3682
|
var tmp_8 = destination_10;
|
|
@@ -3584,7 +3687,7 @@
|
|
|
3584
3687
|
var _iterator__ex2g4s_11 = destination_9.s();
|
|
3585
3688
|
while (_iterator__ex2g4s_11.t()) {
|
|
3586
3689
|
var element_11 = _iterator__ex2g4s_11.u();
|
|
3587
|
-
var tmp$ret$40 = element_11.
|
|
3690
|
+
var tmp$ret$40 = element_11.c1f_1;
|
|
3588
3691
|
destination_11.o2(tmp$ret$40, element_11);
|
|
3589
3692
|
}
|
|
3590
3693
|
var tmp_9 = plus(tmp_8, destination_11);
|
|
@@ -3595,7 +3698,7 @@
|
|
|
3595
3698
|
var _iterator__ex2g4s_12 = destination_9.s();
|
|
3596
3699
|
while (_iterator__ex2g4s_12.t()) {
|
|
3597
3700
|
var element_12 = _iterator__ex2g4s_12.u();
|
|
3598
|
-
var tmp$ret$43 = element_12.
|
|
3701
|
+
var tmp$ret$43 = element_12.z1e_1;
|
|
3599
3702
|
destination_12.o2(tmp$ret$43, element_12);
|
|
3600
3703
|
}
|
|
3601
3704
|
var tmp_10 = plus(tmp_9, destination_12);
|
|
@@ -3606,7 +3709,7 @@
|
|
|
3606
3709
|
var _iterator__ex2g4s_13 = destination_9.s();
|
|
3607
3710
|
while (_iterator__ex2g4s_13.t()) {
|
|
3608
3711
|
var element_13 = _iterator__ex2g4s_13.u();
|
|
3609
|
-
var tmp$ret$46 = element_13.
|
|
3712
|
+
var tmp$ret$46 = element_13.a1f_1;
|
|
3610
3713
|
destination_13.o2(tmp$ret$46, element_13);
|
|
3611
3714
|
}
|
|
3612
3715
|
tmp_7.k1e_1 = plus(tmp_10, destination_13);
|
|
@@ -3648,23 +3751,24 @@
|
|
|
3648
3751
|
this.s1e_1 = setOf_0([Units_getInstance().u1d_1, Units_getInstance().v1d_1, Units_getInstance().a1e_1]);
|
|
3649
3752
|
this.t1e_1 = listOf([to(0.0, Units_getInstance().n1d_1), to(1000.0, Units_getInstance().o1d_1), to(0.0, Units_getInstance().r1d_1), to(2.5, Units_getInstance().u1d_1), to(15.0, Units_getInstance().v1d_1), to(125.0, Units_getInstance().a1e_1), to(1000.0, Units_getInstance().t1d_1), to(0.0, Units_getInstance().e1e_1), to(10.0, Units_getInstance().f1e_1)]);
|
|
3650
3753
|
this.u1e_1 = listOf([to(0.0, Units_getInstance().n1d_1), to(1000.0, Units_getInstance().o1d_1), to(0.0, Units_getInstance().r1d_1), to(1000.0, Units_getInstance().t1d_1), to(0.0, Units_getInstance().e1e_1), to(10.0, Units_getInstance().f1e_1)]);
|
|
3651
|
-
this.v1e_1 = listOf([to(0.0, Units_getInstance().p1d_1), to(16.0 * Units_getInstance().p1d_1.
|
|
3652
|
-
this.w1e_1 = listOf([to(0.0, Units_getInstance().p1d_1), to(16.0 * Units_getInstance().p1d_1.
|
|
3754
|
+
this.v1e_1 = listOf([to(0.0, Units_getInstance().p1d_1), to(16.0 * Units_getInstance().p1d_1.f1f_1, Units_getInstance().q1d_1), to(0.0, Units_getInstance().w1d_1), to(3.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().x1d_1), to(12.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().z1d_1), to(192 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().c1e_1), to(768.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().d1e_1), to(0.0, Units_getInstance().g1e_1)]);
|
|
3755
|
+
this.w1e_1 = listOf([to(0.0, Units_getInstance().p1d_1), to(16.0 * Units_getInstance().p1d_1.f1f_1, Units_getInstance().q1d_1), to(0.0, Units_getInstance().w1d_1), to(3.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().x1d_1), to(12.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().z1d_1), to(0.0, Units_getInstance().g1e_1)]);
|
|
3756
|
+
this.x1e_1 = listOf([to(0.0, Units_getInstance().p1d_1), to(16.0 * Units_getInstance().p1d_1.f1f_1, Units_getInstance().q1d_1), to(0.0, Units_getInstance().w1d_1), to(3.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().x1d_1), to(6.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().y1d_1), to(768.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().d1e_1), to(0.0, Units_getInstance().g1e_1)]);
|
|
3653
3757
|
}
|
|
3654
|
-
protoOf(UnitConversions).
|
|
3758
|
+
protoOf(UnitConversions).w1j = function (amount) {
|
|
3655
3759
|
var tmp;
|
|
3656
3760
|
if (!(amount.c1d_1 == null)) {
|
|
3657
|
-
var tmp_0 = amount.a1d_1 * amount.c1d_1.
|
|
3761
|
+
var tmp_0 = amount.a1d_1 * amount.c1d_1.f1f_1;
|
|
3658
3762
|
var tmp0_safe_receiver = amount.b1d_1;
|
|
3659
3763
|
var tmp_1;
|
|
3660
3764
|
if (tmp0_safe_receiver == null) {
|
|
3661
3765
|
tmp_1 = null;
|
|
3662
3766
|
} else {
|
|
3663
3767
|
// Inline function 'kotlin.let' call
|
|
3664
|
-
tmp_1 = tmp0_safe_receiver * amount.c1d_1.
|
|
3768
|
+
tmp_1 = tmp0_safe_receiver * amount.c1d_1.f1f_1;
|
|
3665
3769
|
}
|
|
3666
3770
|
var tmp_2 = tmp_1;
|
|
3667
|
-
var tmp1_subject = amount.c1d_1.
|
|
3771
|
+
var tmp1_subject = amount.c1d_1.d1f_1;
|
|
3668
3772
|
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.s2_1;
|
|
3669
3773
|
tmp = amount.f1d(tmp_0, tmp_2, tmp0 === 2 ? Units_getInstance().e1e_1 : tmp0 === 1 ? Units_getInstance().r1d_1 : tmp0 === 0 ? Units_getInstance().n1d_1 : amount.c1d_1);
|
|
3670
3774
|
} else {
|
|
@@ -3672,7 +3776,7 @@
|
|
|
3672
3776
|
}
|
|
3673
3777
|
return tmp;
|
|
3674
3778
|
};
|
|
3675
|
-
protoOf(UnitConversions).
|
|
3779
|
+
protoOf(UnitConversions).y1e = function (amount, target, factor, density) {
|
|
3676
3780
|
var tmp = amount.a1d_1 * factor;
|
|
3677
3781
|
var tmp0_safe_receiver = amount.b1d_1;
|
|
3678
3782
|
var tmp_0;
|
|
@@ -3686,41 +3790,54 @@
|
|
|
3686
3790
|
if (scaledAmount.c1d_1 == null || (equals(target, Metric_instance) && factor === 1.0)) {
|
|
3687
3791
|
return scaledAmount;
|
|
3688
3792
|
}
|
|
3689
|
-
var smallestUnitAmount = this.
|
|
3793
|
+
var smallestUnitAmount = this.w1j(scaledAmount);
|
|
3690
3794
|
var tmp_1;
|
|
3691
3795
|
if (equals(target, Metric_instance)) {
|
|
3692
3796
|
tmp_1 = contains(this.s1e_1, amount.c1d_1) ? this.t1e_1 : this.u1e_1;
|
|
3693
3797
|
} else if (equals(target, USCustomary_instance)) {
|
|
3694
|
-
|
|
3798
|
+
var tmp_2;
|
|
3799
|
+
var tmp_3;
|
|
3800
|
+
if (amount.d1d_1 === true) {
|
|
3801
|
+
var tmp2_safe_receiver = amount.c1d_1;
|
|
3802
|
+
tmp_3 = equals(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.d1f_1, UnitType_WEIGHT_getInstance());
|
|
3803
|
+
} else {
|
|
3804
|
+
tmp_3 = false;
|
|
3805
|
+
}
|
|
3806
|
+
if (tmp_3) {
|
|
3807
|
+
tmp_2 = this.w1e_1;
|
|
3808
|
+
} else {
|
|
3809
|
+
tmp_2 = this.v1e_1;
|
|
3810
|
+
}
|
|
3811
|
+
tmp_1 = tmp_2;
|
|
3695
3812
|
} else if (equals(target, Imperial_instance)) {
|
|
3696
|
-
tmp_1 = this.
|
|
3813
|
+
tmp_1 = this.x1e_1;
|
|
3697
3814
|
} else {
|
|
3698
3815
|
noWhenBranchMatchedException();
|
|
3699
3816
|
}
|
|
3700
3817
|
var ladder = tmp_1;
|
|
3701
|
-
var
|
|
3702
|
-
var
|
|
3703
|
-
if (amount.d1d_1 === true && !(density == null)) {
|
|
3704
|
-
var
|
|
3705
|
-
|
|
3818
|
+
var tmp_4;
|
|
3819
|
+
var tmp_5;
|
|
3820
|
+
if (amount.d1d_1 === true && equals(target, USCustomary_instance) && !(density == null)) {
|
|
3821
|
+
var tmp4_safe_receiver = amount.c1d_1;
|
|
3822
|
+
tmp_5 = equals(tmp4_safe_receiver == null ? null : tmp4_safe_receiver.d1f_1, UnitType_WEIGHT_getInstance());
|
|
3706
3823
|
} else {
|
|
3707
|
-
|
|
3708
|
-
}
|
|
3709
|
-
if (
|
|
3710
|
-
var
|
|
3711
|
-
var
|
|
3712
|
-
var
|
|
3713
|
-
if (
|
|
3714
|
-
|
|
3824
|
+
tmp_5 = false;
|
|
3825
|
+
}
|
|
3826
|
+
if (tmp_5) {
|
|
3827
|
+
var tmp_6 = smallestUnitAmount.a1d_1 / density;
|
|
3828
|
+
var tmp3_safe_receiver = smallestUnitAmount.b1d_1;
|
|
3829
|
+
var tmp_7;
|
|
3830
|
+
if (tmp3_safe_receiver == null) {
|
|
3831
|
+
tmp_7 = null;
|
|
3715
3832
|
} else {
|
|
3716
3833
|
// Inline function 'kotlin.let' call
|
|
3717
|
-
|
|
3834
|
+
tmp_7 = tmp3_safe_receiver / density;
|
|
3718
3835
|
}
|
|
3719
|
-
|
|
3836
|
+
tmp_4 = new Amount(tmp_6, tmp_7, Units_getInstance().r1d_1);
|
|
3720
3837
|
} else {
|
|
3721
|
-
|
|
3838
|
+
tmp_4 = smallestUnitAmount;
|
|
3722
3839
|
}
|
|
3723
|
-
var amountToConvert =
|
|
3840
|
+
var amountToConvert = tmp_4;
|
|
3724
3841
|
// Inline function 'kotlin.collections.filter' call
|
|
3725
3842
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3726
3843
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -3728,7 +3845,7 @@
|
|
|
3728
3845
|
while (_iterator__ex2g4s.t()) {
|
|
3729
3846
|
var element = _iterator__ex2g4s.u();
|
|
3730
3847
|
var tmp0_safe_receiver_0 = amountToConvert.c1d_1;
|
|
3731
|
-
if (equals(element.gd_1.
|
|
3848
|
+
if (equals(element.gd_1.d1f_1, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.d1f_1)) {
|
|
3732
3849
|
destination.w(element);
|
|
3733
3850
|
}
|
|
3734
3851
|
}
|
|
@@ -3745,26 +3862,26 @@
|
|
|
3745
3862
|
}
|
|
3746
3863
|
tmp$ret$8 = null;
|
|
3747
3864
|
}
|
|
3748
|
-
var
|
|
3749
|
-
var mostRelevantUnit =
|
|
3750
|
-
var
|
|
3865
|
+
var tmp5_safe_receiver = tmp$ret$8;
|
|
3866
|
+
var mostRelevantUnit = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.gd_1;
|
|
3867
|
+
var tmp_8;
|
|
3751
3868
|
if (mostRelevantUnit == null) {
|
|
3752
|
-
|
|
3869
|
+
tmp_8 = null;
|
|
3753
3870
|
} else {
|
|
3754
3871
|
// Inline function 'kotlin.let' call
|
|
3755
|
-
var
|
|
3872
|
+
var tmp_9 = amountToConvert.a1d_1 / mostRelevantUnit.f1f_1;
|
|
3756
3873
|
var tmp0_safe_receiver_1 = amountToConvert.b1d_1;
|
|
3757
|
-
var
|
|
3874
|
+
var tmp_10;
|
|
3758
3875
|
if (tmp0_safe_receiver_1 == null) {
|
|
3759
|
-
|
|
3876
|
+
tmp_10 = null;
|
|
3760
3877
|
} else {
|
|
3761
3878
|
// Inline function 'kotlin.let' call
|
|
3762
|
-
|
|
3879
|
+
tmp_10 = tmp0_safe_receiver_1 / mostRelevantUnit.f1f_1;
|
|
3763
3880
|
}
|
|
3764
|
-
|
|
3881
|
+
tmp_8 = new Amount(tmp_9, tmp_10, mostRelevantUnit);
|
|
3765
3882
|
}
|
|
3766
|
-
var
|
|
3767
|
-
return
|
|
3883
|
+
var tmp7_elvis_lhs = tmp_8;
|
|
3884
|
+
return tmp7_elvis_lhs == null ? amountToConvert : tmp7_elvis_lhs;
|
|
3768
3885
|
};
|
|
3769
3886
|
var UnitConversions_instance;
|
|
3770
3887
|
function UnitConversions_getInstance() {
|
|
@@ -3798,6 +3915,15 @@
|
|
|
3798
3915
|
case 'US':
|
|
3799
3916
|
tmp = USCustomary_instance;
|
|
3800
3917
|
break;
|
|
3918
|
+
case 'USWithMetric':
|
|
3919
|
+
tmp = USCustomaryWithMetric_instance;
|
|
3920
|
+
break;
|
|
3921
|
+
case 'USWithImperial':
|
|
3922
|
+
tmp = USCustomaryWithImperial_instance;
|
|
3923
|
+
break;
|
|
3924
|
+
case 'Combined':
|
|
3925
|
+
tmp = USCombined_instance;
|
|
3926
|
+
break;
|
|
3801
3927
|
default:
|
|
3802
3928
|
throw IllegalArgumentException_init_$Create$('Unknown unit: ' + unit);
|
|
3803
3929
|
}
|
|
@@ -3815,17 +3941,17 @@
|
|
|
3815
3941
|
function parseTemplate_0(templateString) {
|
|
3816
3942
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3817
3943
|
var parsedTemplate = parseTemplate(templateString);
|
|
3818
|
-
return parsedTemplate.
|
|
3944
|
+
return parsedTemplate.i1f_1;
|
|
3819
3945
|
}
|
|
3820
3946
|
function renderTemplate(templateElements, session) {
|
|
3821
3947
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3822
3948
|
var template = new ParsedTemplate(templateElements);
|
|
3823
|
-
return session.
|
|
3949
|
+
return session.h1f(template, 1.0, Metric_instance);
|
|
3824
3950
|
}
|
|
3825
|
-
function createTemplateSession() {
|
|
3951
|
+
function createTemplateSession(rawDensityData) {
|
|
3826
3952
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3827
3953
|
// Inline function 'kotlin.getOrThrow' call
|
|
3828
|
-
var this_0 = newTemplateSession();
|
|
3954
|
+
var this_0 = newTemplateSession(rawDensityData);
|
|
3829
3955
|
throwOnFailure(this_0);
|
|
3830
3956
|
var tmp = _Result___get_value__impl__bjfvqg(this_0);
|
|
3831
3957
|
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
@@ -3868,6 +3994,9 @@
|
|
|
3868
3994
|
Imperial_instance = new Imperial();
|
|
3869
3995
|
Metric_instance = new Metric();
|
|
3870
3996
|
USCustomary_instance = new USCustomary();
|
|
3997
|
+
USCustomaryWithMetric_instance = new USCustomaryWithMetric();
|
|
3998
|
+
USCustomaryWithImperial_instance = new USCustomaryWithImperial();
|
|
3999
|
+
USCombined_instance = new USCombined();
|
|
3871
4000
|
//endregion
|
|
3872
4001
|
//region block: exports
|
|
3873
4002
|
function $jsExportAll$(_) {
|