@guardian/feast-multiplatform-library 9.0.1 → 9.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/feast-multiplatform-library-library.d.ts +16 -37
- package/kotlin/feast-multiplatform-library-library.js +1356 -1365
- package/kotlin/feast-multiplatform-library-library.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +3454 -3082
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1874 -1881
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1608 -1615
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,33 +3,33 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.b;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var toString = kotlin_kotlin.$_$.
|
|
8
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
9
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
10
|
-
var equals = kotlin_kotlin.$_$.
|
|
11
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.z7;
|
|
7
|
+
var toString = kotlin_kotlin.$_$.eb;
|
|
8
|
+
var getNumberHashCode = kotlin_kotlin.$_$.z6;
|
|
9
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.y6;
|
|
10
|
+
var equals = kotlin_kotlin.$_$.x6;
|
|
11
|
+
var initMetadataForClass = kotlin_kotlin.$_$.d7;
|
|
12
12
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
13
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
13
|
+
var numberToInt = kotlin_kotlin.$_$.x7;
|
|
14
14
|
var Unit_instance = kotlin_kotlin.$_$.n3;
|
|
15
|
-
var round = kotlin_kotlin.$_$.
|
|
16
|
-
var replace = kotlin_kotlin.$_$.
|
|
17
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
15
|
+
var round = kotlin_kotlin.$_$.c8;
|
|
16
|
+
var replace = kotlin_kotlin.$_$.y8;
|
|
17
|
+
var initMetadataForObject = kotlin_kotlin.$_$.i7;
|
|
18
18
|
var listOfNotNull = kotlin_kotlin.$_$.c5;
|
|
19
19
|
var joinToString = kotlin_kotlin.$_$.x4;
|
|
20
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
20
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.bb;
|
|
21
21
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.d4;
|
|
22
22
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
23
23
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.d1;
|
|
24
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
25
|
-
var indexOfAny = kotlin_kotlin.$_$.
|
|
26
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
27
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
28
|
-
var trim = kotlin_kotlin.$_$.
|
|
29
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
30
|
-
var to = kotlin_kotlin.$_$.
|
|
31
|
-
var take = kotlin_kotlin.$_$.
|
|
32
|
-
var drop = kotlin_kotlin.$_$.
|
|
24
|
+
var charArrayOf = kotlin_kotlin.$_$.r6;
|
|
25
|
+
var indexOfAny = kotlin_kotlin.$_$.s8;
|
|
26
|
+
var THROW_CCE = kotlin_kotlin.$_$.ha;
|
|
27
|
+
var isCharSequence = kotlin_kotlin.$_$.n7;
|
|
28
|
+
var trim = kotlin_kotlin.$_$.s9;
|
|
29
|
+
var toString_0 = kotlin_kotlin.$_$.b8;
|
|
30
|
+
var to = kotlin_kotlin.$_$.fb;
|
|
31
|
+
var take = kotlin_kotlin.$_$.f9;
|
|
32
|
+
var drop = kotlin_kotlin.$_$.q8;
|
|
33
33
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.k1;
|
|
34
34
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.h1;
|
|
35
35
|
var Companion_instance = kotlin_kotlin.$_$.i3;
|
|
@@ -38,52 +38,51 @@
|
|
|
38
38
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
|
|
39
39
|
var JsonElementSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
40
40
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.c;
|
|
41
|
-
var lazy = kotlin_kotlin.$_$.
|
|
42
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
41
|
+
var lazy = kotlin_kotlin.$_$.za;
|
|
42
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.e7;
|
|
43
43
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
44
44
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
|
|
45
45
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
|
|
46
46
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
|
|
47
|
-
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
48
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
49
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
50
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
47
|
+
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1;
|
|
48
|
+
var objectCreate = kotlin_kotlin.$_$.y7;
|
|
49
|
+
var getStringHashCode = kotlin_kotlin.$_$.b7;
|
|
50
|
+
var hashCode = kotlin_kotlin.$_$.c7;
|
|
51
51
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
|
|
52
52
|
var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
|
|
53
53
|
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
54
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
55
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
56
|
-
var createKType = kotlin_kotlin.$_$.
|
|
54
|
+
var getKClass = kotlin_kotlin.$_$.l8;
|
|
55
|
+
var arrayOf = kotlin_kotlin.$_$.sa;
|
|
56
|
+
var createKType = kotlin_kotlin.$_$.j8;
|
|
57
57
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
58
|
-
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
59
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
58
|
+
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
|
|
59
|
+
var isInterface = kotlin_kotlin.$_$.r7;
|
|
60
60
|
var get_jsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.g;
|
|
61
61
|
var get_int = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e;
|
|
62
62
|
var get_float = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
63
63
|
var mapCapacity = kotlin_kotlin.$_$.e5;
|
|
64
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
64
|
+
var coerceAtLeast = kotlin_kotlin.$_$.e8;
|
|
65
65
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
66
66
|
var Exception_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
67
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
68
|
-
var IndexOutOfBoundsException = kotlin_kotlin.$_$.
|
|
69
|
-
var ClassCastException = kotlin_kotlin.$_$.
|
|
70
|
-
var IllegalArgumentException = kotlin_kotlin.$_$.
|
|
67
|
+
var createFailure = kotlin_kotlin.$_$.ua;
|
|
68
|
+
var IndexOutOfBoundsException = kotlin_kotlin.$_$.da;
|
|
69
|
+
var ClassCastException = kotlin_kotlin.$_$.x9;
|
|
70
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.ca;
|
|
71
71
|
var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
72
72
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
73
73
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
|
|
74
74
|
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
75
75
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.e;
|
|
76
|
-
var substring = kotlin_kotlin.$_$.
|
|
77
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
76
|
+
var substring = kotlin_kotlin.$_$.e9;
|
|
77
|
+
var charSequenceLength = kotlin_kotlin.$_$.v6;
|
|
78
78
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
|
|
79
|
-
var print = kotlin_kotlin.$_$.
|
|
80
|
-
var Exception = kotlin_kotlin.$_$.
|
|
81
|
-
var substring_0 = kotlin_kotlin.$_$.
|
|
82
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
79
|
+
var print = kotlin_kotlin.$_$.w5;
|
|
80
|
+
var Exception = kotlin_kotlin.$_$.ba;
|
|
81
|
+
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
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
85
|
-
var
|
|
86
|
-
var Enum = kotlin_kotlin.$_$.z9;
|
|
84
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.g7;
|
|
85
|
+
var Enum = kotlin_kotlin.$_$.aa;
|
|
87
86
|
var setOf = kotlin_kotlin.$_$.j5;
|
|
88
87
|
var setOf_0 = kotlin_kotlin.$_$.k5;
|
|
89
88
|
var listOf = kotlin_kotlin.$_$.d5;
|
|
@@ -91,7 +90,7 @@
|
|
|
91
90
|
var emptySet = kotlin_kotlin.$_$.t4;
|
|
92
91
|
var contains = kotlin_kotlin.$_$.e4;
|
|
93
92
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
94
|
-
var throwOnFailure = kotlin_kotlin.$_$.
|
|
93
|
+
var throwOnFailure = kotlin_kotlin.$_$.db;
|
|
95
94
|
//endregion
|
|
96
95
|
//region block: pre-declaration
|
|
97
96
|
initMetadataForClass(Amount, 'Amount');
|
|
@@ -149,29 +148,29 @@
|
|
|
149
148
|
max = max === VOID ? null : max;
|
|
150
149
|
unit = unit === VOID ? null : unit;
|
|
151
150
|
usCust = usCust === VOID ? null : usCust;
|
|
152
|
-
this.
|
|
153
|
-
this.
|
|
154
|
-
this.
|
|
155
|
-
this.
|
|
151
|
+
this.a1d_1 = min;
|
|
152
|
+
this.b1d_1 = max;
|
|
153
|
+
this.c1d_1 = unit;
|
|
154
|
+
this.d1d_1 = usCust;
|
|
156
155
|
}
|
|
157
|
-
protoOf(Amount).
|
|
156
|
+
protoOf(Amount).e1d = function (min, max, unit, usCust) {
|
|
158
157
|
return new Amount(min, max, unit, usCust);
|
|
159
158
|
};
|
|
160
|
-
protoOf(Amount).
|
|
161
|
-
min = min === VOID ? this.
|
|
162
|
-
max = max === VOID ? this.
|
|
163
|
-
unit = unit === VOID ? this.
|
|
164
|
-
usCust = usCust === VOID ? this.
|
|
165
|
-
return $super === VOID ? this.
|
|
159
|
+
protoOf(Amount).f1d = function (min, max, unit, usCust, $super) {
|
|
160
|
+
min = min === VOID ? this.a1d_1 : min;
|
|
161
|
+
max = max === VOID ? this.b1d_1 : max;
|
|
162
|
+
unit = unit === VOID ? this.c1d_1 : unit;
|
|
163
|
+
usCust = usCust === VOID ? this.d1d_1 : usCust;
|
|
164
|
+
return $super === VOID ? this.e1d(min, max, unit, usCust) : $super.e1d.call(this, min, max, unit, usCust);
|
|
166
165
|
};
|
|
167
166
|
protoOf(Amount).toString = function () {
|
|
168
|
-
return 'Amount(min=' + this.
|
|
167
|
+
return 'Amount(min=' + this.a1d_1 + ', max=' + this.b1d_1 + ', unit=' + toString(this.c1d_1) + ', usCust=' + this.d1d_1 + ')';
|
|
169
168
|
};
|
|
170
169
|
protoOf(Amount).hashCode = function () {
|
|
171
|
-
var result = getNumberHashCode(this.
|
|
172
|
-
result = imul(result, 31) + (this.
|
|
173
|
-
result = imul(result, 31) + (this.
|
|
174
|
-
result = imul(result, 31) + (this.
|
|
170
|
+
var result = getNumberHashCode(this.a1d_1);
|
|
171
|
+
result = imul(result, 31) + (this.b1d_1 == null ? 0 : getNumberHashCode(this.b1d_1)) | 0;
|
|
172
|
+
result = imul(result, 31) + (this.c1d_1 == null ? 0 : this.c1d_1.hashCode()) | 0;
|
|
173
|
+
result = imul(result, 31) + (this.d1d_1 == null ? 0 : getBooleanHashCode(this.d1d_1)) | 0;
|
|
175
174
|
return result;
|
|
176
175
|
};
|
|
177
176
|
protoOf(Amount).equals = function (other) {
|
|
@@ -179,24 +178,24 @@
|
|
|
179
178
|
return true;
|
|
180
179
|
if (!(other instanceof Amount))
|
|
181
180
|
return false;
|
|
182
|
-
if (!equals(this.
|
|
181
|
+
if (!equals(this.a1d_1, other.a1d_1))
|
|
183
182
|
return false;
|
|
184
|
-
if (!equals(this.
|
|
183
|
+
if (!equals(this.b1d_1, other.b1d_1))
|
|
185
184
|
return false;
|
|
186
|
-
if (!equals(this.
|
|
185
|
+
if (!equals(this.c1d_1, other.c1d_1))
|
|
187
186
|
return false;
|
|
188
|
-
if (!(this.
|
|
187
|
+
if (!(this.d1d_1 == other.d1d_1))
|
|
189
188
|
return false;
|
|
190
189
|
return true;
|
|
191
190
|
};
|
|
192
191
|
function FormatUtils$applySmartPunctuation$lambda(matchResult) {
|
|
193
|
-
return '\u201C' + matchResult.
|
|
192
|
+
return '\u201C' + matchResult.sb().b1(2) + '\u201D';
|
|
194
193
|
}
|
|
195
194
|
function FormatUtils() {
|
|
196
195
|
FormatUtils_instance = this;
|
|
197
|
-
this.
|
|
196
|
+
this.g1d_1 = Regex_init_$Create$('(["])(.*?)(["])');
|
|
198
197
|
}
|
|
199
|
-
protoOf(FormatUtils).
|
|
198
|
+
protoOf(FormatUtils).h1d = function (number) {
|
|
200
199
|
if (number === 0.0)
|
|
201
200
|
return '0';
|
|
202
201
|
var integerPart = numberToInt(number);
|
|
@@ -204,9 +203,9 @@
|
|
|
204
203
|
var fractionalPart = number - integerPart;
|
|
205
204
|
return (0.0 <= fractionalPart ? fractionalPart <= 0.0625 : false) ? integerPartStr : (0.0625 <= fractionalPart ? fractionalPart <= 0.1875 : false) ? integerPartStr + '\u215B' : (0.1875 <= fractionalPart ? fractionalPart <= 0.291667 : false) ? integerPartStr + '\xBC' : (0.291667 <= fractionalPart ? fractionalPart <= 0.354167 : false) ? integerPartStr + '\u2153' : (0.354167 <= fractionalPart ? fractionalPart <= 0.4375 : false) ? integerPartStr + '\u215C' : (0.4375 <= fractionalPart ? fractionalPart <= 0.5625 : false) ? integerPartStr + '\xBD' : (0.5625 <= fractionalPart ? fractionalPart <= 0.645833 : false) ? integerPartStr + '\u215D' : (0.645833 <= fractionalPart ? fractionalPart <= 0.708333 : false) ? integerPartStr + '\u2154' : (0.708333 <= fractionalPart ? fractionalPart <= 0.8125 : false) ? integerPartStr + '\xBE' : (0.8125 <= fractionalPart ? fractionalPart <= 0.9375 : false) ? integerPartStr + '\u215E' : '' + (integerPart + 1 | 0);
|
|
206
205
|
};
|
|
207
|
-
protoOf(FormatUtils).
|
|
206
|
+
protoOf(FormatUtils).i1d = function (number, decimals, fraction) {
|
|
208
207
|
if (fraction) {
|
|
209
|
-
return this.
|
|
208
|
+
return this.h1d(number);
|
|
210
209
|
} else {
|
|
211
210
|
var multiplier = 1.0;
|
|
212
211
|
// Inline function 'kotlin.repeat' call
|
|
@@ -228,8 +227,8 @@
|
|
|
228
227
|
return tmp;
|
|
229
228
|
}
|
|
230
229
|
};
|
|
231
|
-
protoOf(FormatUtils).
|
|
232
|
-
var withQuotes = this.
|
|
230
|
+
protoOf(FormatUtils).j1d = function (text) {
|
|
231
|
+
var withQuotes = this.g1d_1.xa(text, FormatUtils$applySmartPunctuation$lambda);
|
|
233
232
|
return replace(replace(withQuotes, "'", '\u2019'), ' - ', ' \u2013 ');
|
|
234
233
|
};
|
|
235
234
|
var FormatUtils_instance;
|
|
@@ -239,9 +238,9 @@
|
|
|
239
238
|
return FormatUtils_instance;
|
|
240
239
|
}
|
|
241
240
|
function TemplateSession(densityTable) {
|
|
242
|
-
this.
|
|
241
|
+
this.k1d_1 = densityTable;
|
|
243
242
|
}
|
|
244
|
-
protoOf(TemplateSession).
|
|
243
|
+
protoOf(TemplateSession).l1d = function (element) {
|
|
245
244
|
var tmp;
|
|
246
245
|
if (element.temperatureFanC == null) {
|
|
247
246
|
tmp = null;
|
|
@@ -279,11 +278,11 @@
|
|
|
279
278
|
tmp_5 = null;
|
|
280
279
|
} else {
|
|
281
280
|
// Inline function 'kotlin.let' call
|
|
282
|
-
tmp_5 = '/gas mark ' + FormatUtils_getInstance().
|
|
281
|
+
tmp_5 = '/gas mark ' + FormatUtils_getInstance().h1d(tmp3_safe_receiver);
|
|
283
282
|
}
|
|
284
283
|
return joinToString(listOfNotNull([tmp_2, fanTempC, tmp_4, tmp_5]), '');
|
|
285
284
|
};
|
|
286
|
-
protoOf(TemplateSession).
|
|
285
|
+
protoOf(TemplateSession).m1d = function (element, factor, measuringSystem) {
|
|
287
286
|
var tmp = !(element.min === element.max) ? element.max : null;
|
|
288
287
|
var tmp0_safe_receiver = element.unit;
|
|
289
288
|
var tmp_0;
|
|
@@ -291,7 +290,7 @@
|
|
|
291
290
|
tmp_0 = null;
|
|
292
291
|
} else {
|
|
293
292
|
// Inline function 'kotlin.let' call
|
|
294
|
-
tmp_0 = Units_getInstance().
|
|
293
|
+
tmp_0 = Units_getInstance().l1e(tmp0_safe_receiver);
|
|
295
294
|
}
|
|
296
295
|
var amount = new Amount(element.min, tmp, tmp_0, element.usCust);
|
|
297
296
|
var factorToUse = !element.scale ? 1.0 : factor;
|
|
@@ -301,52 +300,52 @@
|
|
|
301
300
|
tmp_1 = null;
|
|
302
301
|
} else {
|
|
303
302
|
// Inline function 'kotlin.let' call
|
|
304
|
-
tmp_1 = this.
|
|
303
|
+
tmp_1 = this.k1d_1.p1e(tmp1_safe_receiver);
|
|
305
304
|
}
|
|
306
305
|
var density = tmp_1;
|
|
307
|
-
amount = UnitConversions_getInstance().
|
|
308
|
-
var tmp2_subject = amount.
|
|
309
|
-
var decimals = equals(tmp2_subject, Units_getInstance().
|
|
310
|
-
var tmp3_subject = amount.
|
|
311
|
-
var fraction = equals(tmp3_subject, Units_getInstance().
|
|
306
|
+
amount = UnitConversions_getInstance().x1e(amount, measuringSystem, factorToUse, density);
|
|
307
|
+
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 : 2;
|
|
309
|
+
var tmp3_subject = amount.c1d_1;
|
|
310
|
+
var fraction = equals(tmp3_subject, Units_getInstance().w1d_1) || (equals(tmp3_subject, Units_getInstance().u1d_1) || equals(tmp3_subject, Units_getInstance().x1d_1)) || (equals(tmp3_subject, Units_getInstance().v1d_1) || (equals(tmp3_subject, Units_getInstance().a1e_1) || equals(tmp3_subject, Units_getInstance().z1d_1))) ? true : tmp3_subject == null ? true : false;
|
|
312
311
|
var tmp_2;
|
|
313
|
-
if (!(amount.
|
|
312
|
+
if (!(amount.c1d_1 == null)) {
|
|
314
313
|
var tmp_3;
|
|
315
|
-
var tmp0 = amount.
|
|
316
|
-
var tmp4_elvis_lhs = amount.
|
|
314
|
+
var tmp0 = amount.a1d_1;
|
|
315
|
+
var tmp4_elvis_lhs = amount.b1d_1;
|
|
317
316
|
// Inline function 'kotlin.math.max' call
|
|
318
|
-
var b = tmp4_elvis_lhs == null ? amount.
|
|
317
|
+
var b = tmp4_elvis_lhs == null ? amount.a1d_1 : tmp4_elvis_lhs;
|
|
319
318
|
if (Math.max(tmp0, b) > 1.1) {
|
|
320
|
-
tmp_3 = ' ' + amount.
|
|
319
|
+
tmp_3 = ' ' + amount.c1d_1.b1f_1;
|
|
321
320
|
} else {
|
|
322
|
-
tmp_3 = ' ' + amount.
|
|
321
|
+
tmp_3 = ' ' + amount.c1d_1.a1f_1;
|
|
323
322
|
}
|
|
324
323
|
tmp_2 = tmp_3;
|
|
325
324
|
} else {
|
|
326
325
|
tmp_2 = '';
|
|
327
326
|
}
|
|
328
327
|
var unitString = tmp_2;
|
|
329
|
-
var tmp_4 = FormatUtils_getInstance().
|
|
330
|
-
var tmp5_safe_receiver = amount.
|
|
328
|
+
var tmp_4 = FormatUtils_getInstance().i1d(amount.a1d_1, decimals, fraction);
|
|
329
|
+
var tmp5_safe_receiver = amount.b1d_1;
|
|
331
330
|
var tmp_5;
|
|
332
331
|
if (tmp5_safe_receiver == null) {
|
|
333
332
|
tmp_5 = null;
|
|
334
333
|
} else {
|
|
335
334
|
// Inline function 'kotlin.let' call
|
|
336
|
-
tmp_5 = '-' + FormatUtils_getInstance().
|
|
335
|
+
tmp_5 = '-' + FormatUtils_getInstance().i1d(tmp5_safe_receiver, decimals, fraction);
|
|
337
336
|
}
|
|
338
337
|
return joinToString(listOfNotNull([tmp_4, tmp_5, unitString]), '');
|
|
339
338
|
};
|
|
340
|
-
protoOf(TemplateSession).
|
|
339
|
+
protoOf(TemplateSession).f1f = function (element, factor, measuringSystem) {
|
|
341
340
|
var tmp;
|
|
342
341
|
if (element instanceof TemplateConst) {
|
|
343
342
|
tmp = element.value;
|
|
344
343
|
} else {
|
|
345
344
|
if (element instanceof QuantityPlaceholder) {
|
|
346
|
-
tmp = this.
|
|
345
|
+
tmp = this.m1d(element, factor, measuringSystem);
|
|
347
346
|
} else {
|
|
348
347
|
if (element instanceof OvenTemperaturePlaceholder) {
|
|
349
|
-
tmp = this.
|
|
348
|
+
tmp = this.l1d(element);
|
|
350
349
|
} else {
|
|
351
350
|
noWhenBranchMatchedException();
|
|
352
351
|
}
|
|
@@ -354,22 +353,22 @@
|
|
|
354
353
|
}
|
|
355
354
|
return tmp;
|
|
356
355
|
};
|
|
357
|
-
protoOf(TemplateSession).
|
|
356
|
+
protoOf(TemplateSession).g1f = function (template, factor, measuringSystem) {
|
|
358
357
|
// Inline function 'kotlin.collections.map' call
|
|
359
|
-
var this_0 = template.
|
|
358
|
+
var this_0 = template.h1f_1;
|
|
360
359
|
// Inline function 'kotlin.collections.mapTo' call
|
|
361
360
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
362
|
-
var _iterator__ex2g4s = this_0.
|
|
363
|
-
while (_iterator__ex2g4s.
|
|
364
|
-
var item = _iterator__ex2g4s.
|
|
365
|
-
var tmp$ret$0 = this.
|
|
366
|
-
destination.
|
|
361
|
+
var _iterator__ex2g4s = this_0.s();
|
|
362
|
+
while (_iterator__ex2g4s.t()) {
|
|
363
|
+
var item = _iterator__ex2g4s.u();
|
|
364
|
+
var tmp$ret$0 = this.f1f(item, factor, measuringSystem);
|
|
365
|
+
destination.w(tmp$ret$0);
|
|
367
366
|
}
|
|
368
367
|
var renderedParts = destination;
|
|
369
|
-
return FormatUtils_getInstance().
|
|
368
|
+
return FormatUtils_getInstance().j1d(joinToString(renderedParts, ''));
|
|
370
369
|
};
|
|
371
370
|
protoOf(TemplateSession).scaleAndConvertUnitRecipe = function (recipe, factor, measuringSystem) {
|
|
372
|
-
var tmp0_safe_receiver = recipe.
|
|
371
|
+
var tmp0_safe_receiver = recipe.u1f_1;
|
|
373
372
|
var tmp;
|
|
374
373
|
if (tmp0_safe_receiver == null) {
|
|
375
374
|
tmp = null;
|
|
@@ -377,10 +376,10 @@
|
|
|
377
376
|
// Inline function 'kotlin.collections.map' call
|
|
378
377
|
// Inline function 'kotlin.collections.mapTo' call
|
|
379
378
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_safe_receiver, 10));
|
|
380
|
-
var _iterator__ex2g4s = tmp0_safe_receiver.
|
|
381
|
-
while (_iterator__ex2g4s.
|
|
382
|
-
var item = _iterator__ex2g4s.
|
|
383
|
-
var tmp0_safe_receiver_0 = item.
|
|
379
|
+
var _iterator__ex2g4s = tmp0_safe_receiver.s();
|
|
380
|
+
while (_iterator__ex2g4s.t()) {
|
|
381
|
+
var item = _iterator__ex2g4s.u();
|
|
382
|
+
var tmp0_safe_receiver_0 = item.f1g_1;
|
|
384
383
|
var tmp_0;
|
|
385
384
|
if (tmp0_safe_receiver_0 == null) {
|
|
386
385
|
tmp_0 = null;
|
|
@@ -388,31 +387,31 @@
|
|
|
388
387
|
// Inline function 'kotlin.collections.map' call
|
|
389
388
|
// Inline function 'kotlin.collections.mapTo' call
|
|
390
389
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_safe_receiver_0, 10));
|
|
391
|
-
var _iterator__ex2g4s_0 = tmp0_safe_receiver_0.
|
|
392
|
-
while (_iterator__ex2g4s_0.
|
|
393
|
-
var item_0 = _iterator__ex2g4s_0.
|
|
394
|
-
var tmp0_safe_receiver_1 = item_0.
|
|
390
|
+
var _iterator__ex2g4s_0 = tmp0_safe_receiver_0.s();
|
|
391
|
+
while (_iterator__ex2g4s_0.t()) {
|
|
392
|
+
var item_0 = _iterator__ex2g4s_0.u();
|
|
393
|
+
var tmp0_safe_receiver_1 = item_0.n1g_1;
|
|
395
394
|
var tmp_1;
|
|
396
395
|
if (tmp0_safe_receiver_1 == null) {
|
|
397
396
|
tmp_1 = null;
|
|
398
397
|
} else {
|
|
399
398
|
// Inline function 'kotlin.let' call
|
|
400
|
-
tmp_1 = wrapWithStrongTag(this.
|
|
399
|
+
tmp_1 = wrapWithStrongTag(this.g1f(parseTemplate(tmp0_safe_receiver_1), factor, measuringSystem));
|
|
401
400
|
}
|
|
402
401
|
var tmp1_elvis_lhs = tmp_1;
|
|
403
|
-
var scaledText = tmp1_elvis_lhs == null ? item_0.
|
|
404
|
-
var tmp$ret$2 = item_0.
|
|
405
|
-
destination_0.
|
|
402
|
+
var scaledText = tmp1_elvis_lhs == null ? item_0.o1g_1 : tmp1_elvis_lhs;
|
|
403
|
+
var tmp$ret$2 = item_0.q1g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledText);
|
|
404
|
+
destination_0.w(tmp$ret$2);
|
|
406
405
|
}
|
|
407
406
|
tmp_0 = destination_0;
|
|
408
407
|
}
|
|
409
|
-
var tmp$ret$5 = new IngredientsList(tmp_0, item.
|
|
410
|
-
destination.
|
|
408
|
+
var tmp$ret$5 = new IngredientsList(tmp_0, item.g1g_1);
|
|
409
|
+
destination.w(tmp$ret$5);
|
|
411
410
|
}
|
|
412
411
|
tmp = destination;
|
|
413
412
|
}
|
|
414
413
|
var scaledIngredients = tmp;
|
|
415
|
-
var tmp1_safe_receiver = recipe.
|
|
414
|
+
var tmp1_safe_receiver = recipe.v1f_1;
|
|
416
415
|
var tmp_2;
|
|
417
416
|
if (tmp1_safe_receiver == null) {
|
|
418
417
|
tmp_2 = null;
|
|
@@ -420,25 +419,25 @@
|
|
|
420
419
|
// Inline function 'kotlin.collections.map' call
|
|
421
420
|
// Inline function 'kotlin.collections.mapTo' call
|
|
422
421
|
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp1_safe_receiver, 10));
|
|
423
|
-
var _iterator__ex2g4s_1 = tmp1_safe_receiver.
|
|
424
|
-
while (_iterator__ex2g4s_1.
|
|
425
|
-
var item_1 = _iterator__ex2g4s_1.
|
|
426
|
-
var tmp0_safe_receiver_2 = item_1.
|
|
422
|
+
var _iterator__ex2g4s_1 = tmp1_safe_receiver.s();
|
|
423
|
+
while (_iterator__ex2g4s_1.t()) {
|
|
424
|
+
var item_1 = _iterator__ex2g4s_1.u();
|
|
425
|
+
var tmp0_safe_receiver_2 = item_1.s1g_1;
|
|
427
426
|
var tmp_3;
|
|
428
427
|
if (tmp0_safe_receiver_2 == null) {
|
|
429
428
|
tmp_3 = null;
|
|
430
429
|
} else {
|
|
431
430
|
// Inline function 'kotlin.let' call
|
|
432
|
-
tmp_3 = this.
|
|
431
|
+
tmp_3 = this.g1f(parseTemplate(tmp0_safe_receiver_2), factor, measuringSystem);
|
|
433
432
|
}
|
|
434
433
|
var description = tmp_3;
|
|
435
|
-
var tmp$ret$10 = item_1.
|
|
436
|
-
destination_1.
|
|
434
|
+
var tmp$ret$10 = item_1.v1g(description == null ? item_1.r1g_1 : description);
|
|
435
|
+
destination_1.w(tmp$ret$10);
|
|
437
436
|
}
|
|
438
437
|
tmp_2 = destination_1;
|
|
439
438
|
}
|
|
440
439
|
var scaledInstructions = tmp_2;
|
|
441
|
-
return recipe.
|
|
440
|
+
return recipe.w1g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledIngredients, scaledInstructions);
|
|
442
441
|
};
|
|
443
442
|
function splitBeforeSuffix(value) {
|
|
444
443
|
// Inline function 'kotlin.charArrayOf' call
|
|
@@ -458,8 +457,8 @@
|
|
|
458
457
|
}
|
|
459
458
|
function wrapWithStrongTag(value) {
|
|
460
459
|
var _destruct__k2r9zo = splitBeforeSuffix(value);
|
|
461
|
-
var before = _destruct__k2r9zo.
|
|
462
|
-
var after = _destruct__k2r9zo.
|
|
460
|
+
var before = _destruct__k2r9zo.hd();
|
|
461
|
+
var after = _destruct__k2r9zo.id();
|
|
463
462
|
// Inline function 'kotlin.text.orEmpty' call
|
|
464
463
|
return '<strong>' + before + '<\/strong>' + (after == null ? '' : after);
|
|
465
464
|
}
|
|
@@ -493,7 +492,7 @@
|
|
|
493
492
|
// Inline function 'kotlin.arrayOf' call
|
|
494
493
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
495
494
|
// Inline function 'kotlin.js.asDynamic' call
|
|
496
|
-
tmp.
|
|
495
|
+
tmp.x1g_1 = [null, tmp_1, lazy(tmp_2, TableSchema$Companion$$childSerializers$_anonymous__48gmsb_0)];
|
|
497
496
|
}
|
|
498
497
|
var Companion_instance_0;
|
|
499
498
|
function Companion_getInstance() {
|
|
@@ -504,75 +503,75 @@
|
|
|
504
503
|
function $serializer() {
|
|
505
504
|
$serializer_instance = this;
|
|
506
505
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.density.TableSchema', this, 3);
|
|
507
|
-
tmp0_serialDesc.
|
|
508
|
-
tmp0_serialDesc.
|
|
509
|
-
tmp0_serialDesc.
|
|
510
|
-
this.
|
|
511
|
-
}
|
|
512
|
-
protoOf($serializer).
|
|
513
|
-
var tmp0_desc = this.
|
|
514
|
-
var tmp1_output = encoder.
|
|
515
|
-
var tmp2_cached = Companion_getInstance().
|
|
516
|
-
tmp1_output.
|
|
517
|
-
tmp1_output.
|
|
518
|
-
tmp1_output.
|
|
519
|
-
tmp1_output.
|
|
520
|
-
};
|
|
521
|
-
protoOf($serializer).
|
|
522
|
-
return this.
|
|
523
|
-
};
|
|
524
|
-
protoOf($serializer).
|
|
525
|
-
var tmp0_desc = this.
|
|
506
|
+
tmp0_serialDesc.rs('prepared_at', false);
|
|
507
|
+
tmp0_serialDesc.rs('key', false);
|
|
508
|
+
tmp0_serialDesc.rs('values', false);
|
|
509
|
+
this.y1g_1 = tmp0_serialDesc;
|
|
510
|
+
}
|
|
511
|
+
protoOf($serializer).z1g = function (encoder, value) {
|
|
512
|
+
var tmp0_desc = this.y1g_1;
|
|
513
|
+
var tmp1_output = encoder.il(tmp0_desc);
|
|
514
|
+
var tmp2_cached = Companion_getInstance().x1g_1;
|
|
515
|
+
tmp1_output.wm(tmp0_desc, 0, value.a1h_1);
|
|
516
|
+
tmp1_output.ym(tmp0_desc, 1, tmp2_cached[1].h2(), value.b1h_1);
|
|
517
|
+
tmp1_output.ym(tmp0_desc, 2, tmp2_cached[2].h2(), value.c1h_1);
|
|
518
|
+
tmp1_output.jl(tmp0_desc);
|
|
519
|
+
};
|
|
520
|
+
protoOf($serializer).li = function (encoder, value) {
|
|
521
|
+
return this.z1g(encoder, value instanceof TableSchema ? value : THROW_CCE());
|
|
522
|
+
};
|
|
523
|
+
protoOf($serializer).mi = function (decoder) {
|
|
524
|
+
var tmp0_desc = this.y1g_1;
|
|
526
525
|
var tmp1_flag = true;
|
|
527
526
|
var tmp2_index = 0;
|
|
528
527
|
var tmp3_bitMask0 = 0;
|
|
529
528
|
var tmp4_local0 = null;
|
|
530
529
|
var tmp5_local1 = null;
|
|
531
530
|
var tmp6_local2 = null;
|
|
532
|
-
var tmp7_input = decoder.
|
|
533
|
-
var tmp8_cached = Companion_getInstance().
|
|
534
|
-
if (tmp7_input.
|
|
535
|
-
tmp4_local0 = tmp7_input.
|
|
531
|
+
var tmp7_input = decoder.il(tmp0_desc);
|
|
532
|
+
var tmp8_cached = Companion_getInstance().x1g_1;
|
|
533
|
+
if (tmp7_input.yl()) {
|
|
534
|
+
tmp4_local0 = tmp7_input.sl(tmp0_desc, 0);
|
|
536
535
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
537
|
-
tmp5_local1 = tmp7_input.
|
|
536
|
+
tmp5_local1 = tmp7_input.ul(tmp0_desc, 1, tmp8_cached[1].h2(), tmp5_local1);
|
|
538
537
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
539
|
-
tmp6_local2 = tmp7_input.
|
|
538
|
+
tmp6_local2 = tmp7_input.ul(tmp0_desc, 2, tmp8_cached[2].h2(), tmp6_local2);
|
|
540
539
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
541
540
|
} else
|
|
542
541
|
while (tmp1_flag) {
|
|
543
|
-
tmp2_index = tmp7_input.
|
|
542
|
+
tmp2_index = tmp7_input.zl(tmp0_desc);
|
|
544
543
|
switch (tmp2_index) {
|
|
545
544
|
case -1:
|
|
546
545
|
tmp1_flag = false;
|
|
547
546
|
break;
|
|
548
547
|
case 0:
|
|
549
|
-
tmp4_local0 = tmp7_input.
|
|
548
|
+
tmp4_local0 = tmp7_input.sl(tmp0_desc, 0);
|
|
550
549
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
551
550
|
break;
|
|
552
551
|
case 1:
|
|
553
|
-
tmp5_local1 = tmp7_input.
|
|
552
|
+
tmp5_local1 = tmp7_input.ul(tmp0_desc, 1, tmp8_cached[1].h2(), tmp5_local1);
|
|
554
553
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
555
554
|
break;
|
|
556
555
|
case 2:
|
|
557
|
-
tmp6_local2 = tmp7_input.
|
|
556
|
+
tmp6_local2 = tmp7_input.ul(tmp0_desc, 2, tmp8_cached[2].h2(), tmp6_local2);
|
|
558
557
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
559
558
|
break;
|
|
560
559
|
default:
|
|
561
560
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
562
561
|
}
|
|
563
562
|
}
|
|
564
|
-
tmp7_input.
|
|
563
|
+
tmp7_input.jl(tmp0_desc);
|
|
565
564
|
return TableSchema_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
566
565
|
};
|
|
567
|
-
protoOf($serializer).
|
|
568
|
-
return this.
|
|
566
|
+
protoOf($serializer).ki = function () {
|
|
567
|
+
return this.y1g_1;
|
|
569
568
|
};
|
|
570
|
-
protoOf($serializer).
|
|
571
|
-
var tmp0_cached = Companion_getInstance().
|
|
569
|
+
protoOf($serializer).ts = function () {
|
|
570
|
+
var tmp0_cached = Companion_getInstance().x1g_1;
|
|
572
571
|
// Inline function 'kotlin.arrayOf' call
|
|
573
572
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
574
573
|
// Inline function 'kotlin.js.asDynamic' call
|
|
575
|
-
return [StringSerializer_getInstance(), tmp0_cached[1].
|
|
574
|
+
return [StringSerializer_getInstance(), tmp0_cached[1].h2(), tmp0_cached[2].h2()];
|
|
576
575
|
};
|
|
577
576
|
var $serializer_instance;
|
|
578
577
|
function $serializer_getInstance() {
|
|
@@ -582,11 +581,11 @@
|
|
|
582
581
|
}
|
|
583
582
|
function TableSchema_init_$Init$(seen0, preparedAt, key, values, serializationConstructorMarker, $this) {
|
|
584
583
|
if (!(7 === (7 & seen0))) {
|
|
585
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance().
|
|
584
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance().y1g_1);
|
|
586
585
|
}
|
|
587
|
-
$this.
|
|
588
|
-
$this.
|
|
589
|
-
$this.
|
|
586
|
+
$this.a1h_1 = preparedAt;
|
|
587
|
+
$this.b1h_1 = key;
|
|
588
|
+
$this.c1h_1 = values;
|
|
590
589
|
return $this;
|
|
591
590
|
}
|
|
592
591
|
function TableSchema_init_$Create$(seen0, preparedAt, key, values, serializationConstructorMarker) {
|
|
@@ -594,17 +593,17 @@
|
|
|
594
593
|
}
|
|
595
594
|
function TableSchema(preparedAt, key, values) {
|
|
596
595
|
Companion_getInstance();
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
596
|
+
this.a1h_1 = preparedAt;
|
|
597
|
+
this.b1h_1 = key;
|
|
598
|
+
this.c1h_1 = values;
|
|
600
599
|
}
|
|
601
600
|
protoOf(TableSchema).toString = function () {
|
|
602
|
-
return 'TableSchema(preparedAt=' + this.
|
|
601
|
+
return 'TableSchema(preparedAt=' + this.a1h_1 + ', key=' + toString_0(this.b1h_1) + ', values=' + toString_0(this.c1h_1) + ')';
|
|
603
602
|
};
|
|
604
603
|
protoOf(TableSchema).hashCode = function () {
|
|
605
|
-
var result = getStringHashCode(this.
|
|
606
|
-
result = imul(result, 31) + hashCode(this.
|
|
607
|
-
result = imul(result, 31) + hashCode(this.
|
|
604
|
+
var result = getStringHashCode(this.a1h_1);
|
|
605
|
+
result = imul(result, 31) + hashCode(this.b1h_1) | 0;
|
|
606
|
+
result = imul(result, 31) + hashCode(this.c1h_1) | 0;
|
|
608
607
|
return result;
|
|
609
608
|
};
|
|
610
609
|
protoOf(TableSchema).equals = function (other) {
|
|
@@ -612,11 +611,11 @@
|
|
|
612
611
|
return true;
|
|
613
612
|
if (!(other instanceof TableSchema))
|
|
614
613
|
return false;
|
|
615
|
-
if (!(this.
|
|
614
|
+
if (!(this.a1h_1 === other.a1h_1))
|
|
616
615
|
return false;
|
|
617
|
-
if (!equals(this.
|
|
616
|
+
if (!equals(this.b1h_1, other.b1h_1))
|
|
618
617
|
return false;
|
|
619
|
-
if (!equals(this.
|
|
618
|
+
if (!equals(this.c1h_1, other.c1h_1))
|
|
620
619
|
return false;
|
|
621
620
|
return true;
|
|
622
621
|
};
|
|
@@ -629,26 +628,26 @@
|
|
|
629
628
|
function $serializer_0() {
|
|
630
629
|
$serializer_instance_0 = this;
|
|
631
630
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.density.Ingredient', this, 4);
|
|
632
|
-
tmp0_serialDesc.
|
|
633
|
-
tmp0_serialDesc.
|
|
634
|
-
tmp0_serialDesc.
|
|
635
|
-
tmp0_serialDesc.
|
|
636
|
-
this.
|
|
637
|
-
}
|
|
638
|
-
protoOf($serializer_0).
|
|
639
|
-
var tmp0_desc = this.
|
|
640
|
-
var tmp1_output = encoder.
|
|
641
|
-
tmp1_output.
|
|
642
|
-
tmp1_output.
|
|
643
|
-
tmp1_output.
|
|
644
|
-
tmp1_output.
|
|
645
|
-
tmp1_output.
|
|
646
|
-
};
|
|
647
|
-
protoOf($serializer_0).
|
|
648
|
-
return this.
|
|
649
|
-
};
|
|
650
|
-
protoOf($serializer_0).
|
|
651
|
-
var tmp0_desc = this.
|
|
631
|
+
tmp0_serialDesc.rs('id', false);
|
|
632
|
+
tmp0_serialDesc.rs('name', false);
|
|
633
|
+
tmp0_serialDesc.rs('normalised_name', false);
|
|
634
|
+
tmp0_serialDesc.rs('density', false);
|
|
635
|
+
this.d1h_1 = tmp0_serialDesc;
|
|
636
|
+
}
|
|
637
|
+
protoOf($serializer_0).e1h = function (encoder, value) {
|
|
638
|
+
var tmp0_desc = this.d1h_1;
|
|
639
|
+
var tmp1_output = encoder.il(tmp0_desc);
|
|
640
|
+
tmp1_output.rm(tmp0_desc, 0, value.f1h_1);
|
|
641
|
+
tmp1_output.wm(tmp0_desc, 1, value.g1h_1);
|
|
642
|
+
tmp1_output.wm(tmp0_desc, 2, value.h1h_1);
|
|
643
|
+
tmp1_output.tm(tmp0_desc, 3, value.i1h_1);
|
|
644
|
+
tmp1_output.jl(tmp0_desc);
|
|
645
|
+
};
|
|
646
|
+
protoOf($serializer_0).li = function (encoder, value) {
|
|
647
|
+
return this.e1h(encoder, value instanceof Ingredient ? value : THROW_CCE());
|
|
648
|
+
};
|
|
649
|
+
protoOf($serializer_0).mi = function (decoder) {
|
|
650
|
+
var tmp0_desc = this.d1h_1;
|
|
652
651
|
var tmp1_flag = true;
|
|
653
652
|
var tmp2_index = 0;
|
|
654
653
|
var tmp3_bitMask0 = 0;
|
|
@@ -656,50 +655,50 @@
|
|
|
656
655
|
var tmp5_local1 = null;
|
|
657
656
|
var tmp6_local2 = null;
|
|
658
657
|
var tmp7_local3 = 0.0;
|
|
659
|
-
var tmp8_input = decoder.
|
|
660
|
-
if (tmp8_input.
|
|
661
|
-
tmp4_local0 = tmp8_input.
|
|
658
|
+
var tmp8_input = decoder.il(tmp0_desc);
|
|
659
|
+
if (tmp8_input.yl()) {
|
|
660
|
+
tmp4_local0 = tmp8_input.nl(tmp0_desc, 0);
|
|
662
661
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
663
|
-
tmp5_local1 = tmp8_input.
|
|
662
|
+
tmp5_local1 = tmp8_input.sl(tmp0_desc, 1);
|
|
664
663
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
665
|
-
tmp6_local2 = tmp8_input.
|
|
664
|
+
tmp6_local2 = tmp8_input.sl(tmp0_desc, 2);
|
|
666
665
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
667
|
-
tmp7_local3 = tmp8_input.
|
|
666
|
+
tmp7_local3 = tmp8_input.pl(tmp0_desc, 3);
|
|
668
667
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
669
668
|
} else
|
|
670
669
|
while (tmp1_flag) {
|
|
671
|
-
tmp2_index = tmp8_input.
|
|
670
|
+
tmp2_index = tmp8_input.zl(tmp0_desc);
|
|
672
671
|
switch (tmp2_index) {
|
|
673
672
|
case -1:
|
|
674
673
|
tmp1_flag = false;
|
|
675
674
|
break;
|
|
676
675
|
case 0:
|
|
677
|
-
tmp4_local0 = tmp8_input.
|
|
676
|
+
tmp4_local0 = tmp8_input.nl(tmp0_desc, 0);
|
|
678
677
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
679
678
|
break;
|
|
680
679
|
case 1:
|
|
681
|
-
tmp5_local1 = tmp8_input.
|
|
680
|
+
tmp5_local1 = tmp8_input.sl(tmp0_desc, 1);
|
|
682
681
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
683
682
|
break;
|
|
684
683
|
case 2:
|
|
685
|
-
tmp6_local2 = tmp8_input.
|
|
684
|
+
tmp6_local2 = tmp8_input.sl(tmp0_desc, 2);
|
|
686
685
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
687
686
|
break;
|
|
688
687
|
case 3:
|
|
689
|
-
tmp7_local3 = tmp8_input.
|
|
688
|
+
tmp7_local3 = tmp8_input.pl(tmp0_desc, 3);
|
|
690
689
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
691
690
|
break;
|
|
692
691
|
default:
|
|
693
692
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
694
693
|
}
|
|
695
694
|
}
|
|
696
|
-
tmp8_input.
|
|
695
|
+
tmp8_input.jl(tmp0_desc);
|
|
697
696
|
return Ingredient_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
698
697
|
};
|
|
699
|
-
protoOf($serializer_0).
|
|
700
|
-
return this.
|
|
698
|
+
protoOf($serializer_0).ki = function () {
|
|
699
|
+
return this.d1h_1;
|
|
701
700
|
};
|
|
702
|
-
protoOf($serializer_0).
|
|
701
|
+
protoOf($serializer_0).ts = function () {
|
|
703
702
|
// Inline function 'kotlin.arrayOf' call
|
|
704
703
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
705
704
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -713,31 +712,31 @@
|
|
|
713
712
|
}
|
|
714
713
|
function Ingredient_init_$Init$(seen0, id, name, normalised_name, density, serializationConstructorMarker, $this) {
|
|
715
714
|
if (!(15 === (15 & seen0))) {
|
|
716
|
-
throwMissingFieldException(seen0, 15, $serializer_getInstance_0().
|
|
715
|
+
throwMissingFieldException(seen0, 15, $serializer_getInstance_0().d1h_1);
|
|
717
716
|
}
|
|
718
|
-
$this.
|
|
719
|
-
$this.
|
|
720
|
-
$this.
|
|
721
|
-
$this.
|
|
717
|
+
$this.f1h_1 = id;
|
|
718
|
+
$this.g1h_1 = name;
|
|
719
|
+
$this.h1h_1 = normalised_name;
|
|
720
|
+
$this.i1h_1 = density;
|
|
722
721
|
return $this;
|
|
723
722
|
}
|
|
724
723
|
function Ingredient_init_$Create$(seen0, id, name, normalised_name, density, serializationConstructorMarker) {
|
|
725
724
|
return Ingredient_init_$Init$(seen0, id, name, normalised_name, density, serializationConstructorMarker, objectCreate(protoOf(Ingredient)));
|
|
726
725
|
}
|
|
727
726
|
function Ingredient(id, name, normalised_name, density) {
|
|
728
|
-
this.
|
|
729
|
-
this.
|
|
730
|
-
this.
|
|
731
|
-
this.
|
|
727
|
+
this.f1h_1 = id;
|
|
728
|
+
this.g1h_1 = name;
|
|
729
|
+
this.h1h_1 = normalised_name;
|
|
730
|
+
this.i1h_1 = density;
|
|
732
731
|
}
|
|
733
732
|
protoOf(Ingredient).toString = function () {
|
|
734
|
-
return 'Ingredient(id=' + this.
|
|
733
|
+
return 'Ingredient(id=' + this.f1h_1 + ', name=' + this.g1h_1 + ', normalised_name=' + this.h1h_1 + ', density=' + this.i1h_1 + ')';
|
|
735
734
|
};
|
|
736
735
|
protoOf(Ingredient).hashCode = function () {
|
|
737
|
-
var result = this.
|
|
738
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
739
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
740
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
736
|
+
var result = this.f1h_1;
|
|
737
|
+
result = imul(result, 31) + getStringHashCode(this.g1h_1) | 0;
|
|
738
|
+
result = imul(result, 31) + getStringHashCode(this.h1h_1) | 0;
|
|
739
|
+
result = imul(result, 31) + getNumberHashCode(this.i1h_1) | 0;
|
|
741
740
|
return result;
|
|
742
741
|
};
|
|
743
742
|
protoOf(Ingredient).equals = function (other) {
|
|
@@ -745,29 +744,29 @@
|
|
|
745
744
|
return true;
|
|
746
745
|
if (!(other instanceof Ingredient))
|
|
747
746
|
return false;
|
|
748
|
-
if (!(this.
|
|
747
|
+
if (!(this.f1h_1 === other.f1h_1))
|
|
749
748
|
return false;
|
|
750
|
-
if (!(this.
|
|
749
|
+
if (!(this.g1h_1 === other.g1h_1))
|
|
751
750
|
return false;
|
|
752
|
-
if (!(this.
|
|
751
|
+
if (!(this.h1h_1 === other.h1h_1))
|
|
753
752
|
return false;
|
|
754
|
-
if (!equals(this.
|
|
753
|
+
if (!equals(this.i1h_1, other.i1h_1))
|
|
755
754
|
return false;
|
|
756
755
|
return true;
|
|
757
756
|
};
|
|
758
757
|
function DensityTable(preparedAt, normalised_map, name_map) {
|
|
759
|
-
this.
|
|
760
|
-
this.
|
|
761
|
-
this.
|
|
758
|
+
this.m1e_1 = preparedAt;
|
|
759
|
+
this.n1e_1 = normalised_map;
|
|
760
|
+
this.o1e_1 = name_map;
|
|
762
761
|
}
|
|
763
|
-
protoOf(DensityTable).
|
|
764
|
-
var tmp0_safe_receiver = this.
|
|
762
|
+
protoOf(DensityTable).p1e = function (name) {
|
|
763
|
+
var tmp0_safe_receiver = this.n1e_1.k2(name);
|
|
765
764
|
var tmp;
|
|
766
765
|
if (tmp0_safe_receiver == null) {
|
|
767
766
|
tmp = null;
|
|
768
767
|
} else {
|
|
769
768
|
// Inline function 'kotlin.let' call
|
|
770
|
-
return tmp0_safe_receiver.
|
|
769
|
+
return tmp0_safe_receiver.i1h_1;
|
|
771
770
|
}
|
|
772
771
|
return tmp;
|
|
773
772
|
};
|
|
@@ -779,47 +778,47 @@
|
|
|
779
778
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
780
779
|
var this_0 = Default_getInstance();
|
|
781
780
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
782
|
-
var this_1 = this_0.
|
|
781
|
+
var this_1 = this_0.xl();
|
|
783
782
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
784
783
|
var this_2 = serializer(this_1, createKType(getKClass(TableSchema), arrayOf([]), false));
|
|
785
784
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
786
|
-
var data = this_0.
|
|
785
|
+
var data = this_0.u11(tmp$ret$1, raw);
|
|
787
786
|
// Inline function 'kotlin.collections.map' call
|
|
788
|
-
var this_3 = data.
|
|
787
|
+
var this_3 = data.c1h_1;
|
|
789
788
|
// Inline function 'kotlin.collections.mapTo' call
|
|
790
789
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
791
|
-
var _iterator__ex2g4s = this_3.
|
|
792
|
-
while (_iterator__ex2g4s.
|
|
793
|
-
var item = _iterator__ex2g4s.
|
|
794
|
-
var tmp$ret$3 = new Ingredient(get_int(get_jsonPrimitive(item.
|
|
795
|
-
destination.
|
|
790
|
+
var _iterator__ex2g4s = this_3.s();
|
|
791
|
+
while (_iterator__ex2g4s.t()) {
|
|
792
|
+
var item = _iterator__ex2g4s.u();
|
|
793
|
+
var tmp$ret$3 = new Ingredient(get_int(get_jsonPrimitive(item.b1(0))), get_jsonPrimitive(item.b1(1)).y13(), get_jsonPrimitive(item.b1(2)).y13(), get_float(get_jsonPrimitive(item.b1(3))));
|
|
794
|
+
destination.w(tmp$ret$3);
|
|
796
795
|
}
|
|
797
796
|
var ingredients = destination;
|
|
798
797
|
// Inline function 'kotlin.collections.associate' call
|
|
799
798
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(ingredients, 10)), 16);
|
|
800
799
|
// Inline function 'kotlin.collections.associateTo' call
|
|
801
800
|
var destination_0 = LinkedHashMap_init_$Create$(capacity);
|
|
802
|
-
var _iterator__ex2g4s_0 = ingredients.
|
|
803
|
-
while (_iterator__ex2g4s_0.
|
|
804
|
-
var element = _iterator__ex2g4s_0.
|
|
801
|
+
var _iterator__ex2g4s_0 = ingredients.s();
|
|
802
|
+
while (_iterator__ex2g4s_0.t()) {
|
|
803
|
+
var element = _iterator__ex2g4s_0.u();
|
|
805
804
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
806
|
-
var pair = to(element.
|
|
807
|
-
destination_0.
|
|
805
|
+
var pair = to(element.h1h_1, element);
|
|
806
|
+
destination_0.o2(pair.fd_1, pair.gd_1);
|
|
808
807
|
}
|
|
809
808
|
var normalised_map = destination_0;
|
|
810
809
|
// Inline function 'kotlin.collections.associate' call
|
|
811
810
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(ingredients, 10)), 16);
|
|
812
811
|
// Inline function 'kotlin.collections.associateTo' call
|
|
813
812
|
var destination_1 = LinkedHashMap_init_$Create$(capacity_0);
|
|
814
|
-
var _iterator__ex2g4s_1 = ingredients.
|
|
815
|
-
while (_iterator__ex2g4s_1.
|
|
816
|
-
var element_0 = _iterator__ex2g4s_1.
|
|
813
|
+
var _iterator__ex2g4s_1 = ingredients.s();
|
|
814
|
+
while (_iterator__ex2g4s_1.t()) {
|
|
815
|
+
var element_0 = _iterator__ex2g4s_1.u();
|
|
817
816
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
818
|
-
var pair_0 = to(element_0.
|
|
819
|
-
destination_1.
|
|
817
|
+
var pair_0 = to(element_0.g1h_1, element_0);
|
|
818
|
+
destination_1.o2(pair_0.fd_1, pair_0.gd_1);
|
|
820
819
|
}
|
|
821
820
|
var name_map = destination_1;
|
|
822
|
-
var table = new DensityTable(data.
|
|
821
|
+
var table = new DensityTable(data.a1h_1, normalised_map, name_map);
|
|
823
822
|
// Inline function 'kotlin.Companion.success' call
|
|
824
823
|
return _Result___init__impl__xyqfz8(table);
|
|
825
824
|
} catch ($p) {
|
|
@@ -927,7 +926,7 @@
|
|
|
927
926
|
// Inline function 'kotlin.arrayOf' call
|
|
928
927
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
929
928
|
// Inline function 'kotlin.js.asDynamic' call
|
|
930
|
-
tmp.
|
|
929
|
+
tmp.j1h_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];
|
|
931
930
|
}
|
|
932
931
|
var Companion_instance_2;
|
|
933
932
|
function Companion_getInstance_1() {
|
|
@@ -938,109 +937,109 @@
|
|
|
938
937
|
function $serializer_1() {
|
|
939
938
|
$serializer_instance_1 = this;
|
|
940
939
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.RecipeV3', this, 23);
|
|
941
|
-
tmp0_serialDesc.
|
|
942
|
-
tmp0_serialDesc.
|
|
943
|
-
tmp0_serialDesc.
|
|
944
|
-
tmp0_serialDesc.
|
|
945
|
-
tmp0_serialDesc.
|
|
946
|
-
tmp0_serialDesc.
|
|
947
|
-
tmp0_serialDesc.
|
|
948
|
-
tmp0_serialDesc.
|
|
949
|
-
tmp0_serialDesc.
|
|
950
|
-
tmp0_serialDesc.
|
|
951
|
-
tmp0_serialDesc.
|
|
952
|
-
tmp0_serialDesc.
|
|
953
|
-
tmp0_serialDesc.
|
|
954
|
-
tmp0_serialDesc.
|
|
955
|
-
tmp0_serialDesc.
|
|
956
|
-
tmp0_serialDesc.
|
|
957
|
-
tmp0_serialDesc.
|
|
958
|
-
tmp0_serialDesc.
|
|
959
|
-
tmp0_serialDesc.
|
|
960
|
-
tmp0_serialDesc.
|
|
961
|
-
tmp0_serialDesc.
|
|
962
|
-
tmp0_serialDesc.
|
|
963
|
-
tmp0_serialDesc.
|
|
964
|
-
this.
|
|
940
|
+
tmp0_serialDesc.rs('bookCredit', true);
|
|
941
|
+
tmp0_serialDesc.rs('byline', true);
|
|
942
|
+
tmp0_serialDesc.rs('canonicalArticle', true);
|
|
943
|
+
tmp0_serialDesc.rs('celebrationIds', true);
|
|
944
|
+
tmp0_serialDesc.rs('commerceCtas', true);
|
|
945
|
+
tmp0_serialDesc.rs('composerId', true);
|
|
946
|
+
tmp0_serialDesc.rs('contributors', true);
|
|
947
|
+
tmp0_serialDesc.rs('cuisineIds', true);
|
|
948
|
+
tmp0_serialDesc.rs('description', true);
|
|
949
|
+
tmp0_serialDesc.rs('difficultyLevel', true);
|
|
950
|
+
tmp0_serialDesc.rs('featuredImage', true);
|
|
951
|
+
tmp0_serialDesc.rs('id', false);
|
|
952
|
+
tmp0_serialDesc.rs('ingredients', true);
|
|
953
|
+
tmp0_serialDesc.rs('instructions', true);
|
|
954
|
+
tmp0_serialDesc.rs('isAppReady', true);
|
|
955
|
+
tmp0_serialDesc.rs('mealTypeIds', true);
|
|
956
|
+
tmp0_serialDesc.rs('serves', true);
|
|
957
|
+
tmp0_serialDesc.rs('suitableForDietIds', true);
|
|
958
|
+
tmp0_serialDesc.rs('techniquesUsedIds', true);
|
|
959
|
+
tmp0_serialDesc.rs('timings', true);
|
|
960
|
+
tmp0_serialDesc.rs('title', true);
|
|
961
|
+
tmp0_serialDesc.rs('utensilsAndApplianceIds', true);
|
|
962
|
+
tmp0_serialDesc.rs('webPublicationDate', true);
|
|
963
|
+
this.k1h_1 = tmp0_serialDesc;
|
|
965
964
|
}
|
|
966
|
-
protoOf($serializer_1).
|
|
967
|
-
var tmp0_desc = this.
|
|
968
|
-
var tmp1_output = encoder.
|
|
969
|
-
var tmp2_cached = Companion_getInstance_1().
|
|
970
|
-
if (tmp1_output.
|
|
971
|
-
tmp1_output.
|
|
965
|
+
protoOf($serializer_1).l1h = function (encoder, value) {
|
|
966
|
+
var tmp0_desc = this.k1h_1;
|
|
967
|
+
var tmp1_output = encoder.il(tmp0_desc);
|
|
968
|
+
var tmp2_cached = Companion_getInstance_1().j1h_1;
|
|
969
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.i1f_1 == null)) {
|
|
970
|
+
tmp1_output.an(tmp0_desc, 0, StringSerializer_getInstance(), value.i1f_1);
|
|
972
971
|
}
|
|
973
|
-
if (tmp1_output.
|
|
974
|
-
tmp1_output.
|
|
972
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.j1f_1 == null)) {
|
|
973
|
+
tmp1_output.an(tmp0_desc, 1, tmp2_cached[1].h2(), value.j1f_1);
|
|
975
974
|
}
|
|
976
|
-
if (tmp1_output.
|
|
977
|
-
tmp1_output.
|
|
975
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.k1f_1 == null)) {
|
|
976
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.k1f_1);
|
|
978
977
|
}
|
|
979
|
-
if (tmp1_output.
|
|
980
|
-
tmp1_output.
|
|
978
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.l1f_1 == null)) {
|
|
979
|
+
tmp1_output.an(tmp0_desc, 3, tmp2_cached[3].h2(), value.l1f_1);
|
|
981
980
|
}
|
|
982
|
-
if (tmp1_output.
|
|
983
|
-
tmp1_output.
|
|
981
|
+
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.m1f_1 == null)) {
|
|
982
|
+
tmp1_output.an(tmp0_desc, 4, tmp2_cached[4].h2(), value.m1f_1);
|
|
984
983
|
}
|
|
985
|
-
if (tmp1_output.
|
|
986
|
-
tmp1_output.
|
|
984
|
+
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.n1f_1 == null)) {
|
|
985
|
+
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.n1f_1);
|
|
987
986
|
}
|
|
988
|
-
if (tmp1_output.
|
|
989
|
-
tmp1_output.
|
|
987
|
+
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.o1f_1 == null)) {
|
|
988
|
+
tmp1_output.an(tmp0_desc, 6, tmp2_cached[6].h2(), value.o1f_1);
|
|
990
989
|
}
|
|
991
|
-
if (tmp1_output.
|
|
992
|
-
tmp1_output.
|
|
990
|
+
if (tmp1_output.en(tmp0_desc, 7) ? true : !(value.p1f_1 == null)) {
|
|
991
|
+
tmp1_output.an(tmp0_desc, 7, tmp2_cached[7].h2(), value.p1f_1);
|
|
993
992
|
}
|
|
994
|
-
if (tmp1_output.
|
|
995
|
-
tmp1_output.
|
|
993
|
+
if (tmp1_output.en(tmp0_desc, 8) ? true : !(value.q1f_1 == null)) {
|
|
994
|
+
tmp1_output.an(tmp0_desc, 8, StringSerializer_getInstance(), value.q1f_1);
|
|
996
995
|
}
|
|
997
|
-
if (tmp1_output.
|
|
998
|
-
tmp1_output.
|
|
996
|
+
if (tmp1_output.en(tmp0_desc, 9) ? true : !(value.r1f_1 == null)) {
|
|
997
|
+
tmp1_output.an(tmp0_desc, 9, StringSerializer_getInstance(), value.r1f_1);
|
|
999
998
|
}
|
|
1000
|
-
if (tmp1_output.
|
|
1001
|
-
tmp1_output.
|
|
999
|
+
if (tmp1_output.en(tmp0_desc, 10) ? true : !(value.s1f_1 == null)) {
|
|
1000
|
+
tmp1_output.an(tmp0_desc, 10, $serializer_getInstance_3(), value.s1f_1);
|
|
1002
1001
|
}
|
|
1003
|
-
tmp1_output.
|
|
1004
|
-
if (tmp1_output.
|
|
1005
|
-
tmp1_output.
|
|
1002
|
+
tmp1_output.wm(tmp0_desc, 11, value.t1f_1);
|
|
1003
|
+
if (tmp1_output.en(tmp0_desc, 12) ? true : !(value.u1f_1 == null)) {
|
|
1004
|
+
tmp1_output.an(tmp0_desc, 12, tmp2_cached[12].h2(), value.u1f_1);
|
|
1006
1005
|
}
|
|
1007
|
-
if (tmp1_output.
|
|
1008
|
-
tmp1_output.
|
|
1006
|
+
if (tmp1_output.en(tmp0_desc, 13) ? true : !(value.v1f_1 == null)) {
|
|
1007
|
+
tmp1_output.an(tmp0_desc, 13, tmp2_cached[13].h2(), value.v1f_1);
|
|
1009
1008
|
}
|
|
1010
|
-
if (tmp1_output.
|
|
1011
|
-
tmp1_output.
|
|
1009
|
+
if (tmp1_output.en(tmp0_desc, 14) ? true : !(value.w1f_1 == null)) {
|
|
1010
|
+
tmp1_output.an(tmp0_desc, 14, BooleanSerializer_getInstance(), value.w1f_1);
|
|
1012
1011
|
}
|
|
1013
|
-
if (tmp1_output.
|
|
1014
|
-
tmp1_output.
|
|
1012
|
+
if (tmp1_output.en(tmp0_desc, 15) ? true : !(value.x1f_1 == null)) {
|
|
1013
|
+
tmp1_output.an(tmp0_desc, 15, tmp2_cached[15].h2(), value.x1f_1);
|
|
1015
1014
|
}
|
|
1016
|
-
if (tmp1_output.
|
|
1017
|
-
tmp1_output.
|
|
1015
|
+
if (tmp1_output.en(tmp0_desc, 16) ? true : !(value.y1f_1 == null)) {
|
|
1016
|
+
tmp1_output.an(tmp0_desc, 16, tmp2_cached[16].h2(), value.y1f_1);
|
|
1018
1017
|
}
|
|
1019
|
-
if (tmp1_output.
|
|
1020
|
-
tmp1_output.
|
|
1018
|
+
if (tmp1_output.en(tmp0_desc, 17) ? true : !(value.z1f_1 == null)) {
|
|
1019
|
+
tmp1_output.an(tmp0_desc, 17, tmp2_cached[17].h2(), value.z1f_1);
|
|
1021
1020
|
}
|
|
1022
|
-
if (tmp1_output.
|
|
1023
|
-
tmp1_output.
|
|
1021
|
+
if (tmp1_output.en(tmp0_desc, 18) ? true : !(value.a1g_1 == null)) {
|
|
1022
|
+
tmp1_output.an(tmp0_desc, 18, tmp2_cached[18].h2(), value.a1g_1);
|
|
1024
1023
|
}
|
|
1025
|
-
if (tmp1_output.
|
|
1026
|
-
tmp1_output.
|
|
1024
|
+
if (tmp1_output.en(tmp0_desc, 19) ? true : !(value.b1g_1 == null)) {
|
|
1025
|
+
tmp1_output.an(tmp0_desc, 19, tmp2_cached[19].h2(), value.b1g_1);
|
|
1027
1026
|
}
|
|
1028
|
-
if (tmp1_output.
|
|
1029
|
-
tmp1_output.
|
|
1027
|
+
if (tmp1_output.en(tmp0_desc, 20) ? true : !(value.c1g_1 == null)) {
|
|
1028
|
+
tmp1_output.an(tmp0_desc, 20, StringSerializer_getInstance(), value.c1g_1);
|
|
1030
1029
|
}
|
|
1031
|
-
if (tmp1_output.
|
|
1032
|
-
tmp1_output.
|
|
1030
|
+
if (tmp1_output.en(tmp0_desc, 21) ? true : !(value.d1g_1 == null)) {
|
|
1031
|
+
tmp1_output.an(tmp0_desc, 21, tmp2_cached[21].h2(), value.d1g_1);
|
|
1033
1032
|
}
|
|
1034
|
-
if (tmp1_output.
|
|
1035
|
-
tmp1_output.
|
|
1033
|
+
if (tmp1_output.en(tmp0_desc, 22) ? true : !(value.e1g_1 == null)) {
|
|
1034
|
+
tmp1_output.an(tmp0_desc, 22, StringSerializer_getInstance(), value.e1g_1);
|
|
1036
1035
|
}
|
|
1037
|
-
tmp1_output.
|
|
1036
|
+
tmp1_output.jl(tmp0_desc);
|
|
1038
1037
|
};
|
|
1039
|
-
protoOf($serializer_1).
|
|
1040
|
-
return this.
|
|
1038
|
+
protoOf($serializer_1).li = function (encoder, value) {
|
|
1039
|
+
return this.l1h(encoder, value instanceof RecipeV3 ? value : THROW_CCE());
|
|
1041
1040
|
};
|
|
1042
|
-
protoOf($serializer_1).
|
|
1043
|
-
var tmp0_desc = this.
|
|
1041
|
+
protoOf($serializer_1).mi = function (decoder) {
|
|
1042
|
+
var tmp0_desc = this.k1h_1;
|
|
1044
1043
|
var tmp1_flag = true;
|
|
1045
1044
|
var tmp2_index = 0;
|
|
1046
1045
|
var tmp3_bitMask0 = 0;
|
|
@@ -1067,170 +1066,170 @@
|
|
|
1067
1066
|
var tmp24_local20 = null;
|
|
1068
1067
|
var tmp25_local21 = null;
|
|
1069
1068
|
var tmp26_local22 = null;
|
|
1070
|
-
var tmp27_input = decoder.
|
|
1071
|
-
var tmp28_cached = Companion_getInstance_1().
|
|
1072
|
-
if (tmp27_input.
|
|
1073
|
-
tmp4_local0 = tmp27_input.
|
|
1069
|
+
var tmp27_input = decoder.il(tmp0_desc);
|
|
1070
|
+
var tmp28_cached = Companion_getInstance_1().j1h_1;
|
|
1071
|
+
if (tmp27_input.yl()) {
|
|
1072
|
+
tmp4_local0 = tmp27_input.wl(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1074
1073
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1075
|
-
tmp5_local1 = tmp27_input.
|
|
1074
|
+
tmp5_local1 = tmp27_input.wl(tmp0_desc, 1, tmp28_cached[1].h2(), tmp5_local1);
|
|
1076
1075
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1077
|
-
tmp6_local2 = tmp27_input.
|
|
1076
|
+
tmp6_local2 = tmp27_input.wl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1078
1077
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1079
|
-
tmp7_local3 = tmp27_input.
|
|
1078
|
+
tmp7_local3 = tmp27_input.wl(tmp0_desc, 3, tmp28_cached[3].h2(), tmp7_local3);
|
|
1080
1079
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1081
|
-
tmp8_local4 = tmp27_input.
|
|
1080
|
+
tmp8_local4 = tmp27_input.wl(tmp0_desc, 4, tmp28_cached[4].h2(), tmp8_local4);
|
|
1082
1081
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1083
|
-
tmp9_local5 = tmp27_input.
|
|
1082
|
+
tmp9_local5 = tmp27_input.wl(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1084
1083
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1085
|
-
tmp10_local6 = tmp27_input.
|
|
1084
|
+
tmp10_local6 = tmp27_input.wl(tmp0_desc, 6, tmp28_cached[6].h2(), tmp10_local6);
|
|
1086
1085
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1087
|
-
tmp11_local7 = tmp27_input.
|
|
1086
|
+
tmp11_local7 = tmp27_input.wl(tmp0_desc, 7, tmp28_cached[7].h2(), tmp11_local7);
|
|
1088
1087
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1089
|
-
tmp12_local8 = tmp27_input.
|
|
1088
|
+
tmp12_local8 = tmp27_input.wl(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
1090
1089
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
1091
|
-
tmp13_local9 = tmp27_input.
|
|
1090
|
+
tmp13_local9 = tmp27_input.wl(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
|
|
1092
1091
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
1093
|
-
tmp14_local10 = tmp27_input.
|
|
1092
|
+
tmp14_local10 = tmp27_input.wl(tmp0_desc, 10, $serializer_getInstance_3(), tmp14_local10);
|
|
1094
1093
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
1095
|
-
tmp15_local11 = tmp27_input.
|
|
1094
|
+
tmp15_local11 = tmp27_input.sl(tmp0_desc, 11);
|
|
1096
1095
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
1097
|
-
tmp16_local12 = tmp27_input.
|
|
1096
|
+
tmp16_local12 = tmp27_input.wl(tmp0_desc, 12, tmp28_cached[12].h2(), tmp16_local12);
|
|
1098
1097
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
1099
|
-
tmp17_local13 = tmp27_input.
|
|
1098
|
+
tmp17_local13 = tmp27_input.wl(tmp0_desc, 13, tmp28_cached[13].h2(), tmp17_local13);
|
|
1100
1099
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
1101
|
-
tmp18_local14 = tmp27_input.
|
|
1100
|
+
tmp18_local14 = tmp27_input.wl(tmp0_desc, 14, BooleanSerializer_getInstance(), tmp18_local14);
|
|
1102
1101
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
1103
|
-
tmp19_local15 = tmp27_input.
|
|
1102
|
+
tmp19_local15 = tmp27_input.wl(tmp0_desc, 15, tmp28_cached[15].h2(), tmp19_local15);
|
|
1104
1103
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
1105
|
-
tmp20_local16 = tmp27_input.
|
|
1104
|
+
tmp20_local16 = tmp27_input.wl(tmp0_desc, 16, tmp28_cached[16].h2(), tmp20_local16);
|
|
1106
1105
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
1107
|
-
tmp21_local17 = tmp27_input.
|
|
1106
|
+
tmp21_local17 = tmp27_input.wl(tmp0_desc, 17, tmp28_cached[17].h2(), tmp21_local17);
|
|
1108
1107
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
1109
|
-
tmp22_local18 = tmp27_input.
|
|
1108
|
+
tmp22_local18 = tmp27_input.wl(tmp0_desc, 18, tmp28_cached[18].h2(), tmp22_local18);
|
|
1110
1109
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
1111
|
-
tmp23_local19 = tmp27_input.
|
|
1110
|
+
tmp23_local19 = tmp27_input.wl(tmp0_desc, 19, tmp28_cached[19].h2(), tmp23_local19);
|
|
1112
1111
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
1113
|
-
tmp24_local20 = tmp27_input.
|
|
1112
|
+
tmp24_local20 = tmp27_input.wl(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
|
|
1114
1113
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
1115
|
-
tmp25_local21 = tmp27_input.
|
|
1114
|
+
tmp25_local21 = tmp27_input.wl(tmp0_desc, 21, tmp28_cached[21].h2(), tmp25_local21);
|
|
1116
1115
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
1117
|
-
tmp26_local22 = tmp27_input.
|
|
1116
|
+
tmp26_local22 = tmp27_input.wl(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
|
|
1118
1117
|
tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
|
|
1119
1118
|
} else
|
|
1120
1119
|
while (tmp1_flag) {
|
|
1121
|
-
tmp2_index = tmp27_input.
|
|
1120
|
+
tmp2_index = tmp27_input.zl(tmp0_desc);
|
|
1122
1121
|
switch (tmp2_index) {
|
|
1123
1122
|
case -1:
|
|
1124
1123
|
tmp1_flag = false;
|
|
1125
1124
|
break;
|
|
1126
1125
|
case 0:
|
|
1127
|
-
tmp4_local0 = tmp27_input.
|
|
1126
|
+
tmp4_local0 = tmp27_input.wl(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1128
1127
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1129
1128
|
break;
|
|
1130
1129
|
case 1:
|
|
1131
|
-
tmp5_local1 = tmp27_input.
|
|
1130
|
+
tmp5_local1 = tmp27_input.wl(tmp0_desc, 1, tmp28_cached[1].h2(), tmp5_local1);
|
|
1132
1131
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1133
1132
|
break;
|
|
1134
1133
|
case 2:
|
|
1135
|
-
tmp6_local2 = tmp27_input.
|
|
1134
|
+
tmp6_local2 = tmp27_input.wl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1136
1135
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1137
1136
|
break;
|
|
1138
1137
|
case 3:
|
|
1139
|
-
tmp7_local3 = tmp27_input.
|
|
1138
|
+
tmp7_local3 = tmp27_input.wl(tmp0_desc, 3, tmp28_cached[3].h2(), tmp7_local3);
|
|
1140
1139
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1141
1140
|
break;
|
|
1142
1141
|
case 4:
|
|
1143
|
-
tmp8_local4 = tmp27_input.
|
|
1142
|
+
tmp8_local4 = tmp27_input.wl(tmp0_desc, 4, tmp28_cached[4].h2(), tmp8_local4);
|
|
1144
1143
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1145
1144
|
break;
|
|
1146
1145
|
case 5:
|
|
1147
|
-
tmp9_local5 = tmp27_input.
|
|
1146
|
+
tmp9_local5 = tmp27_input.wl(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1148
1147
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1149
1148
|
break;
|
|
1150
1149
|
case 6:
|
|
1151
|
-
tmp10_local6 = tmp27_input.
|
|
1150
|
+
tmp10_local6 = tmp27_input.wl(tmp0_desc, 6, tmp28_cached[6].h2(), tmp10_local6);
|
|
1152
1151
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1153
1152
|
break;
|
|
1154
1153
|
case 7:
|
|
1155
|
-
tmp11_local7 = tmp27_input.
|
|
1154
|
+
tmp11_local7 = tmp27_input.wl(tmp0_desc, 7, tmp28_cached[7].h2(), tmp11_local7);
|
|
1156
1155
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1157
1156
|
break;
|
|
1158
1157
|
case 8:
|
|
1159
|
-
tmp12_local8 = tmp27_input.
|
|
1158
|
+
tmp12_local8 = tmp27_input.wl(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
1160
1159
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
1161
1160
|
break;
|
|
1162
1161
|
case 9:
|
|
1163
|
-
tmp13_local9 = tmp27_input.
|
|
1162
|
+
tmp13_local9 = tmp27_input.wl(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
|
|
1164
1163
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
1165
1164
|
break;
|
|
1166
1165
|
case 10:
|
|
1167
|
-
tmp14_local10 = tmp27_input.
|
|
1166
|
+
tmp14_local10 = tmp27_input.wl(tmp0_desc, 10, $serializer_getInstance_3(), tmp14_local10);
|
|
1168
1167
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
1169
1168
|
break;
|
|
1170
1169
|
case 11:
|
|
1171
|
-
tmp15_local11 = tmp27_input.
|
|
1170
|
+
tmp15_local11 = tmp27_input.sl(tmp0_desc, 11);
|
|
1172
1171
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
1173
1172
|
break;
|
|
1174
1173
|
case 12:
|
|
1175
|
-
tmp16_local12 = tmp27_input.
|
|
1174
|
+
tmp16_local12 = tmp27_input.wl(tmp0_desc, 12, tmp28_cached[12].h2(), tmp16_local12);
|
|
1176
1175
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
1177
1176
|
break;
|
|
1178
1177
|
case 13:
|
|
1179
|
-
tmp17_local13 = tmp27_input.
|
|
1178
|
+
tmp17_local13 = tmp27_input.wl(tmp0_desc, 13, tmp28_cached[13].h2(), tmp17_local13);
|
|
1180
1179
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
1181
1180
|
break;
|
|
1182
1181
|
case 14:
|
|
1183
|
-
tmp18_local14 = tmp27_input.
|
|
1182
|
+
tmp18_local14 = tmp27_input.wl(tmp0_desc, 14, BooleanSerializer_getInstance(), tmp18_local14);
|
|
1184
1183
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
1185
1184
|
break;
|
|
1186
1185
|
case 15:
|
|
1187
|
-
tmp19_local15 = tmp27_input.
|
|
1186
|
+
tmp19_local15 = tmp27_input.wl(tmp0_desc, 15, tmp28_cached[15].h2(), tmp19_local15);
|
|
1188
1187
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
1189
1188
|
break;
|
|
1190
1189
|
case 16:
|
|
1191
|
-
tmp20_local16 = tmp27_input.
|
|
1190
|
+
tmp20_local16 = tmp27_input.wl(tmp0_desc, 16, tmp28_cached[16].h2(), tmp20_local16);
|
|
1192
1191
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
1193
1192
|
break;
|
|
1194
1193
|
case 17:
|
|
1195
|
-
tmp21_local17 = tmp27_input.
|
|
1194
|
+
tmp21_local17 = tmp27_input.wl(tmp0_desc, 17, tmp28_cached[17].h2(), tmp21_local17);
|
|
1196
1195
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
1197
1196
|
break;
|
|
1198
1197
|
case 18:
|
|
1199
|
-
tmp22_local18 = tmp27_input.
|
|
1198
|
+
tmp22_local18 = tmp27_input.wl(tmp0_desc, 18, tmp28_cached[18].h2(), tmp22_local18);
|
|
1200
1199
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
1201
1200
|
break;
|
|
1202
1201
|
case 19:
|
|
1203
|
-
tmp23_local19 = tmp27_input.
|
|
1202
|
+
tmp23_local19 = tmp27_input.wl(tmp0_desc, 19, tmp28_cached[19].h2(), tmp23_local19);
|
|
1204
1203
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
1205
1204
|
break;
|
|
1206
1205
|
case 20:
|
|
1207
|
-
tmp24_local20 = tmp27_input.
|
|
1206
|
+
tmp24_local20 = tmp27_input.wl(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
|
|
1208
1207
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
1209
1208
|
break;
|
|
1210
1209
|
case 21:
|
|
1211
|
-
tmp25_local21 = tmp27_input.
|
|
1210
|
+
tmp25_local21 = tmp27_input.wl(tmp0_desc, 21, tmp28_cached[21].h2(), tmp25_local21);
|
|
1212
1211
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
1213
1212
|
break;
|
|
1214
1213
|
case 22:
|
|
1215
|
-
tmp26_local22 = tmp27_input.
|
|
1214
|
+
tmp26_local22 = tmp27_input.wl(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
|
|
1216
1215
|
tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
|
|
1217
1216
|
break;
|
|
1218
1217
|
default:
|
|
1219
1218
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1220
1219
|
}
|
|
1221
1220
|
}
|
|
1222
|
-
tmp27_input.
|
|
1221
|
+
tmp27_input.jl(tmp0_desc);
|
|
1223
1222
|
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);
|
|
1224
1223
|
};
|
|
1225
|
-
protoOf($serializer_1).
|
|
1226
|
-
return this.
|
|
1224
|
+
protoOf($serializer_1).ki = function () {
|
|
1225
|
+
return this.k1h_1;
|
|
1227
1226
|
};
|
|
1228
|
-
protoOf($serializer_1).
|
|
1229
|
-
var tmp0_cached = Companion_getInstance_1().
|
|
1227
|
+
protoOf($serializer_1).ts = function () {
|
|
1228
|
+
var tmp0_cached = Companion_getInstance_1().j1h_1;
|
|
1230
1229
|
// Inline function 'kotlin.arrayOf' call
|
|
1231
1230
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1232
1231
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1233
|
-
return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1].
|
|
1232
|
+
return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1].h2()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[3].h2()), get_nullable(tmp0_cached[4].h2()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[6].h2()), get_nullable(tmp0_cached[7].h2()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_3()), StringSerializer_getInstance(), get_nullable(tmp0_cached[12].h2()), get_nullable(tmp0_cached[13].h2()), get_nullable(BooleanSerializer_getInstance()), get_nullable(tmp0_cached[15].h2()), get_nullable(tmp0_cached[16].h2()), get_nullable(tmp0_cached[17].h2()), get_nullable(tmp0_cached[18].h2()), get_nullable(tmp0_cached[19].h2()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[21].h2()), get_nullable(StringSerializer_getInstance())];
|
|
1234
1233
|
};
|
|
1235
1234
|
var $serializer_instance_1;
|
|
1236
1235
|
function $serializer_getInstance_1() {
|
|
@@ -1240,97 +1239,97 @@
|
|
|
1240
1239
|
}
|
|
1241
1240
|
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) {
|
|
1242
1241
|
if (!(2048 === (2048 & seen0))) {
|
|
1243
|
-
throwMissingFieldException(seen0, 2048, $serializer_getInstance_1().
|
|
1242
|
+
throwMissingFieldException(seen0, 2048, $serializer_getInstance_1().k1h_1);
|
|
1244
1243
|
}
|
|
1245
1244
|
if (0 === (seen0 & 1))
|
|
1246
|
-
$this.
|
|
1245
|
+
$this.i1f_1 = null;
|
|
1247
1246
|
else
|
|
1248
|
-
$this.
|
|
1247
|
+
$this.i1f_1 = bookCredit;
|
|
1249
1248
|
if (0 === (seen0 & 2))
|
|
1250
|
-
$this.
|
|
1249
|
+
$this.j1f_1 = null;
|
|
1251
1250
|
else
|
|
1252
|
-
$this.
|
|
1251
|
+
$this.j1f_1 = byline;
|
|
1253
1252
|
if (0 === (seen0 & 4))
|
|
1254
|
-
$this.
|
|
1253
|
+
$this.k1f_1 = null;
|
|
1255
1254
|
else
|
|
1256
|
-
$this.
|
|
1255
|
+
$this.k1f_1 = canonicalArticle;
|
|
1257
1256
|
if (0 === (seen0 & 8))
|
|
1258
|
-
$this.
|
|
1257
|
+
$this.l1f_1 = null;
|
|
1259
1258
|
else
|
|
1260
|
-
$this.
|
|
1259
|
+
$this.l1f_1 = celebrationIds;
|
|
1261
1260
|
if (0 === (seen0 & 16))
|
|
1262
|
-
$this.
|
|
1261
|
+
$this.m1f_1 = null;
|
|
1263
1262
|
else
|
|
1264
|
-
$this.
|
|
1263
|
+
$this.m1f_1 = commerceCtas;
|
|
1265
1264
|
if (0 === (seen0 & 32))
|
|
1266
|
-
$this.
|
|
1265
|
+
$this.n1f_1 = null;
|
|
1267
1266
|
else
|
|
1268
|
-
$this.
|
|
1267
|
+
$this.n1f_1 = composerId;
|
|
1269
1268
|
if (0 === (seen0 & 64))
|
|
1270
|
-
$this.
|
|
1269
|
+
$this.o1f_1 = null;
|
|
1271
1270
|
else
|
|
1272
|
-
$this.
|
|
1271
|
+
$this.o1f_1 = contributors;
|
|
1273
1272
|
if (0 === (seen0 & 128))
|
|
1274
|
-
$this.
|
|
1273
|
+
$this.p1f_1 = null;
|
|
1275
1274
|
else
|
|
1276
|
-
$this.
|
|
1275
|
+
$this.p1f_1 = cuisineIds;
|
|
1277
1276
|
if (0 === (seen0 & 256))
|
|
1278
|
-
$this.
|
|
1277
|
+
$this.q1f_1 = null;
|
|
1279
1278
|
else
|
|
1280
|
-
$this.
|
|
1279
|
+
$this.q1f_1 = description;
|
|
1281
1280
|
if (0 === (seen0 & 512))
|
|
1282
|
-
$this.
|
|
1281
|
+
$this.r1f_1 = null;
|
|
1283
1282
|
else
|
|
1284
|
-
$this.
|
|
1283
|
+
$this.r1f_1 = difficultyLevel;
|
|
1285
1284
|
if (0 === (seen0 & 1024))
|
|
1286
|
-
$this.
|
|
1285
|
+
$this.s1f_1 = null;
|
|
1287
1286
|
else
|
|
1288
|
-
$this.
|
|
1289
|
-
$this.
|
|
1287
|
+
$this.s1f_1 = featuredImage;
|
|
1288
|
+
$this.t1f_1 = id;
|
|
1290
1289
|
if (0 === (seen0 & 4096))
|
|
1291
|
-
$this.
|
|
1290
|
+
$this.u1f_1 = null;
|
|
1292
1291
|
else
|
|
1293
|
-
$this.
|
|
1292
|
+
$this.u1f_1 = ingredients;
|
|
1294
1293
|
if (0 === (seen0 & 8192))
|
|
1295
|
-
$this.
|
|
1294
|
+
$this.v1f_1 = null;
|
|
1296
1295
|
else
|
|
1297
|
-
$this.
|
|
1296
|
+
$this.v1f_1 = instructions;
|
|
1298
1297
|
if (0 === (seen0 & 16384))
|
|
1299
|
-
$this.
|
|
1298
|
+
$this.w1f_1 = null;
|
|
1300
1299
|
else
|
|
1301
|
-
$this.
|
|
1300
|
+
$this.w1f_1 = isAppReady;
|
|
1302
1301
|
if (0 === (seen0 & 32768))
|
|
1303
|
-
$this.
|
|
1302
|
+
$this.x1f_1 = null;
|
|
1304
1303
|
else
|
|
1305
|
-
$this.
|
|
1304
|
+
$this.x1f_1 = mealTypeIds;
|
|
1306
1305
|
if (0 === (seen0 & 65536))
|
|
1307
|
-
$this.
|
|
1306
|
+
$this.y1f_1 = null;
|
|
1308
1307
|
else
|
|
1309
|
-
$this.
|
|
1308
|
+
$this.y1f_1 = serves;
|
|
1310
1309
|
if (0 === (seen0 & 131072))
|
|
1311
|
-
$this.
|
|
1310
|
+
$this.z1f_1 = null;
|
|
1312
1311
|
else
|
|
1313
|
-
$this.
|
|
1312
|
+
$this.z1f_1 = suitableForDietIds;
|
|
1314
1313
|
if (0 === (seen0 & 262144))
|
|
1315
|
-
$this.
|
|
1314
|
+
$this.a1g_1 = null;
|
|
1316
1315
|
else
|
|
1317
|
-
$this.
|
|
1316
|
+
$this.a1g_1 = techniquesUsedIds;
|
|
1318
1317
|
if (0 === (seen0 & 524288))
|
|
1319
|
-
$this.
|
|
1318
|
+
$this.b1g_1 = null;
|
|
1320
1319
|
else
|
|
1321
|
-
$this.
|
|
1320
|
+
$this.b1g_1 = timings;
|
|
1322
1321
|
if (0 === (seen0 & 1048576))
|
|
1323
|
-
$this.
|
|
1322
|
+
$this.c1g_1 = null;
|
|
1324
1323
|
else
|
|
1325
|
-
$this.
|
|
1324
|
+
$this.c1g_1 = title;
|
|
1326
1325
|
if (0 === (seen0 & 2097152))
|
|
1327
|
-
$this.
|
|
1326
|
+
$this.d1g_1 = null;
|
|
1328
1327
|
else
|
|
1329
|
-
$this.
|
|
1328
|
+
$this.d1g_1 = utensilsAndApplianceIds;
|
|
1330
1329
|
if (0 === (seen0 & 4194304))
|
|
1331
|
-
$this.
|
|
1330
|
+
$this.e1g_1 = null;
|
|
1332
1331
|
else
|
|
1333
|
-
$this.
|
|
1332
|
+
$this.e1g_1 = webPublicationDate;
|
|
1334
1333
|
return $this;
|
|
1335
1334
|
}
|
|
1336
1335
|
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) {
|
|
@@ -1360,86 +1359,86 @@
|
|
|
1360
1359
|
title = title === VOID ? null : title;
|
|
1361
1360
|
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? null : utensilsAndApplianceIds;
|
|
1362
1361
|
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
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
|
-
this.
|
|
1386
|
-
}
|
|
1387
|
-
protoOf(RecipeV3).
|
|
1362
|
+
this.i1f_1 = bookCredit;
|
|
1363
|
+
this.j1f_1 = byline;
|
|
1364
|
+
this.k1f_1 = canonicalArticle;
|
|
1365
|
+
this.l1f_1 = celebrationIds;
|
|
1366
|
+
this.m1f_1 = commerceCtas;
|
|
1367
|
+
this.n1f_1 = composerId;
|
|
1368
|
+
this.o1f_1 = contributors;
|
|
1369
|
+
this.p1f_1 = cuisineIds;
|
|
1370
|
+
this.q1f_1 = description;
|
|
1371
|
+
this.r1f_1 = difficultyLevel;
|
|
1372
|
+
this.s1f_1 = featuredImage;
|
|
1373
|
+
this.t1f_1 = id;
|
|
1374
|
+
this.u1f_1 = ingredients;
|
|
1375
|
+
this.v1f_1 = instructions;
|
|
1376
|
+
this.w1f_1 = isAppReady;
|
|
1377
|
+
this.x1f_1 = mealTypeIds;
|
|
1378
|
+
this.y1f_1 = serves;
|
|
1379
|
+
this.z1f_1 = suitableForDietIds;
|
|
1380
|
+
this.a1g_1 = techniquesUsedIds;
|
|
1381
|
+
this.b1g_1 = timings;
|
|
1382
|
+
this.c1g_1 = title;
|
|
1383
|
+
this.d1g_1 = utensilsAndApplianceIds;
|
|
1384
|
+
this.e1g_1 = webPublicationDate;
|
|
1385
|
+
}
|
|
1386
|
+
protoOf(RecipeV3).m1h = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) {
|
|
1388
1387
|
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);
|
|
1389
1388
|
};
|
|
1390
|
-
protoOf(RecipeV3).
|
|
1391
|
-
bookCredit = bookCredit === VOID ? this.
|
|
1392
|
-
byline = byline === VOID ? this.
|
|
1393
|
-
canonicalArticle = canonicalArticle === VOID ? this.
|
|
1394
|
-
celebrationIds = celebrationIds === VOID ? this.
|
|
1395
|
-
commerceCtas = commerceCtas === VOID ? this.
|
|
1396
|
-
composerId = composerId === VOID ? this.
|
|
1397
|
-
contributors = contributors === VOID ? this.
|
|
1398
|
-
cuisineIds = cuisineIds === VOID ? this.
|
|
1399
|
-
description = description === VOID ? this.
|
|
1400
|
-
difficultyLevel = difficultyLevel === VOID ? this.
|
|
1401
|
-
featuredImage = featuredImage === VOID ? this.
|
|
1402
|
-
id = id === VOID ? this.
|
|
1403
|
-
ingredients = ingredients === VOID ? this.
|
|
1404
|
-
instructions = instructions === VOID ? this.
|
|
1405
|
-
isAppReady = isAppReady === VOID ? this.
|
|
1406
|
-
mealTypeIds = mealTypeIds === VOID ? this.
|
|
1407
|
-
serves = serves === VOID ? this.
|
|
1408
|
-
suitableForDietIds = suitableForDietIds === VOID ? this.
|
|
1409
|
-
techniquesUsedIds = techniquesUsedIds === VOID ? this.
|
|
1410
|
-
timings = timings === VOID ? this.
|
|
1411
|
-
title = title === VOID ? this.
|
|
1412
|
-
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.
|
|
1413
|
-
webPublicationDate = webPublicationDate === VOID ? this.
|
|
1414
|
-
return $super === VOID ? this.
|
|
1389
|
+
protoOf(RecipeV3).w1g = 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) {
|
|
1390
|
+
bookCredit = bookCredit === VOID ? this.i1f_1 : bookCredit;
|
|
1391
|
+
byline = byline === VOID ? this.j1f_1 : byline;
|
|
1392
|
+
canonicalArticle = canonicalArticle === VOID ? this.k1f_1 : canonicalArticle;
|
|
1393
|
+
celebrationIds = celebrationIds === VOID ? this.l1f_1 : celebrationIds;
|
|
1394
|
+
commerceCtas = commerceCtas === VOID ? this.m1f_1 : commerceCtas;
|
|
1395
|
+
composerId = composerId === VOID ? this.n1f_1 : composerId;
|
|
1396
|
+
contributors = contributors === VOID ? this.o1f_1 : contributors;
|
|
1397
|
+
cuisineIds = cuisineIds === VOID ? this.p1f_1 : cuisineIds;
|
|
1398
|
+
description = description === VOID ? this.q1f_1 : description;
|
|
1399
|
+
difficultyLevel = difficultyLevel === VOID ? this.r1f_1 : difficultyLevel;
|
|
1400
|
+
featuredImage = featuredImage === VOID ? this.s1f_1 : featuredImage;
|
|
1401
|
+
id = id === VOID ? this.t1f_1 : id;
|
|
1402
|
+
ingredients = ingredients === VOID ? this.u1f_1 : ingredients;
|
|
1403
|
+
instructions = instructions === VOID ? this.v1f_1 : instructions;
|
|
1404
|
+
isAppReady = isAppReady === VOID ? this.w1f_1 : isAppReady;
|
|
1405
|
+
mealTypeIds = mealTypeIds === VOID ? this.x1f_1 : mealTypeIds;
|
|
1406
|
+
serves = serves === VOID ? this.y1f_1 : serves;
|
|
1407
|
+
suitableForDietIds = suitableForDietIds === VOID ? this.z1f_1 : suitableForDietIds;
|
|
1408
|
+
techniquesUsedIds = techniquesUsedIds === VOID ? this.a1g_1 : techniquesUsedIds;
|
|
1409
|
+
timings = timings === VOID ? this.b1g_1 : timings;
|
|
1410
|
+
title = title === VOID ? this.c1g_1 : title;
|
|
1411
|
+
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.d1g_1 : utensilsAndApplianceIds;
|
|
1412
|
+
webPublicationDate = webPublicationDate === VOID ? this.e1g_1 : webPublicationDate;
|
|
1413
|
+
return $super === VOID ? this.m1h(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) : $super.m1h.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);
|
|
1415
1414
|
};
|
|
1416
1415
|
protoOf(RecipeV3).toString = function () {
|
|
1417
|
-
return 'RecipeV3(bookCredit=' + this.
|
|
1416
|
+
return 'RecipeV3(bookCredit=' + this.i1f_1 + ', byline=' + toString(this.j1f_1) + ', canonicalArticle=' + this.k1f_1 + ', celebrationIds=' + toString(this.l1f_1) + ', commerceCtas=' + toString(this.m1f_1) + ', composerId=' + this.n1f_1 + ', contributors=' + toString(this.o1f_1) + ', cuisineIds=' + toString(this.p1f_1) + ', description=' + this.q1f_1 + ', difficultyLevel=' + this.r1f_1 + ', featuredImage=' + toString(this.s1f_1) + ', id=' + this.t1f_1 + ', ingredients=' + toString(this.u1f_1) + ', instructions=' + toString(this.v1f_1) + ', isAppReady=' + this.w1f_1 + ', mealTypeIds=' + toString(this.x1f_1) + ', serves=' + toString(this.y1f_1) + ', suitableForDietIds=' + toString(this.z1f_1) + ', techniquesUsedIds=' + toString(this.a1g_1) + ', timings=' + toString(this.b1g_1) + ', title=' + this.c1g_1 + ', utensilsAndApplianceIds=' + toString(this.d1g_1) + ', webPublicationDate=' + this.e1g_1 + ')';
|
|
1418
1417
|
};
|
|
1419
1418
|
protoOf(RecipeV3).hashCode = function () {
|
|
1420
|
-
var result = this.
|
|
1419
|
+
var result = this.i1f_1 == null ? 0 : getStringHashCode(this.i1f_1);
|
|
1420
|
+
result = imul(result, 31) + (this.j1f_1 == null ? 0 : hashCode(this.j1f_1)) | 0;
|
|
1421
|
+
result = imul(result, 31) + (this.k1f_1 == null ? 0 : getStringHashCode(this.k1f_1)) | 0;
|
|
1422
|
+
result = imul(result, 31) + (this.l1f_1 == null ? 0 : hashCode(this.l1f_1)) | 0;
|
|
1423
|
+
result = imul(result, 31) + (this.m1f_1 == null ? 0 : hashCode(this.m1f_1)) | 0;
|
|
1424
|
+
result = imul(result, 31) + (this.n1f_1 == null ? 0 : getStringHashCode(this.n1f_1)) | 0;
|
|
1425
|
+
result = imul(result, 31) + (this.o1f_1 == null ? 0 : hashCode(this.o1f_1)) | 0;
|
|
1426
|
+
result = imul(result, 31) + (this.p1f_1 == null ? 0 : hashCode(this.p1f_1)) | 0;
|
|
1427
|
+
result = imul(result, 31) + (this.q1f_1 == null ? 0 : getStringHashCode(this.q1f_1)) | 0;
|
|
1428
|
+
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.hashCode()) | 0;
|
|
1430
|
+
result = imul(result, 31) + getStringHashCode(this.t1f_1) | 0;
|
|
1431
|
+
result = imul(result, 31) + (this.u1f_1 == null ? 0 : hashCode(this.u1f_1)) | 0;
|
|
1432
|
+
result = imul(result, 31) + (this.v1f_1 == null ? 0 : hashCode(this.v1f_1)) | 0;
|
|
1433
|
+
result = imul(result, 31) + (this.w1f_1 == null ? 0 : getBooleanHashCode(this.w1f_1)) | 0;
|
|
1434
|
+
result = imul(result, 31) + (this.x1f_1 == null ? 0 : hashCode(this.x1f_1)) | 0;
|
|
1435
|
+
result = imul(result, 31) + (this.y1f_1 == null ? 0 : hashCode(this.y1f_1)) | 0;
|
|
1436
|
+
result = imul(result, 31) + (this.z1f_1 == null ? 0 : hashCode(this.z1f_1)) | 0;
|
|
1421
1437
|
result = imul(result, 31) + (this.a1g_1 == null ? 0 : hashCode(this.a1g_1)) | 0;
|
|
1422
|
-
result = imul(result, 31) + (this.b1g_1 == null ? 0 :
|
|
1423
|
-
result = imul(result, 31) + (this.c1g_1 == null ? 0 :
|
|
1438
|
+
result = imul(result, 31) + (this.b1g_1 == null ? 0 : hashCode(this.b1g_1)) | 0;
|
|
1439
|
+
result = imul(result, 31) + (this.c1g_1 == null ? 0 : getStringHashCode(this.c1g_1)) | 0;
|
|
1424
1440
|
result = imul(result, 31) + (this.d1g_1 == null ? 0 : hashCode(this.d1g_1)) | 0;
|
|
1425
1441
|
result = imul(result, 31) + (this.e1g_1 == null ? 0 : getStringHashCode(this.e1g_1)) | 0;
|
|
1426
|
-
result = imul(result, 31) + (this.f1g_1 == null ? 0 : hashCode(this.f1g_1)) | 0;
|
|
1427
|
-
result = imul(result, 31) + (this.g1g_1 == null ? 0 : hashCode(this.g1g_1)) | 0;
|
|
1428
|
-
result = imul(result, 31) + (this.h1g_1 == null ? 0 : getStringHashCode(this.h1g_1)) | 0;
|
|
1429
|
-
result = imul(result, 31) + (this.i1g_1 == null ? 0 : getStringHashCode(this.i1g_1)) | 0;
|
|
1430
|
-
result = imul(result, 31) + (this.j1g_1 == null ? 0 : this.j1g_1.hashCode()) | 0;
|
|
1431
|
-
result = imul(result, 31) + getStringHashCode(this.k1g_1) | 0;
|
|
1432
|
-
result = imul(result, 31) + (this.l1g_1 == null ? 0 : hashCode(this.l1g_1)) | 0;
|
|
1433
|
-
result = imul(result, 31) + (this.m1g_1 == null ? 0 : hashCode(this.m1g_1)) | 0;
|
|
1434
|
-
result = imul(result, 31) + (this.n1g_1 == null ? 0 : getBooleanHashCode(this.n1g_1)) | 0;
|
|
1435
|
-
result = imul(result, 31) + (this.o1g_1 == null ? 0 : hashCode(this.o1g_1)) | 0;
|
|
1436
|
-
result = imul(result, 31) + (this.p1g_1 == null ? 0 : hashCode(this.p1g_1)) | 0;
|
|
1437
|
-
result = imul(result, 31) + (this.q1g_1 == null ? 0 : hashCode(this.q1g_1)) | 0;
|
|
1438
|
-
result = imul(result, 31) + (this.r1g_1 == null ? 0 : hashCode(this.r1g_1)) | 0;
|
|
1439
|
-
result = imul(result, 31) + (this.s1g_1 == null ? 0 : hashCode(this.s1g_1)) | 0;
|
|
1440
|
-
result = imul(result, 31) + (this.t1g_1 == null ? 0 : getStringHashCode(this.t1g_1)) | 0;
|
|
1441
|
-
result = imul(result, 31) + (this.u1g_1 == null ? 0 : hashCode(this.u1g_1)) | 0;
|
|
1442
|
-
result = imul(result, 31) + (this.v1g_1 == null ? 0 : getStringHashCode(this.v1g_1)) | 0;
|
|
1443
1442
|
return result;
|
|
1444
1443
|
};
|
|
1445
1444
|
protoOf(RecipeV3).equals = function (other) {
|
|
@@ -1447,119 +1446,119 @@
|
|
|
1447
1446
|
return true;
|
|
1448
1447
|
if (!(other instanceof RecipeV3))
|
|
1449
1448
|
return false;
|
|
1450
|
-
if (!(this.
|
|
1449
|
+
if (!(this.i1f_1 == other.i1f_1))
|
|
1451
1450
|
return false;
|
|
1452
|
-
if (!equals(this.
|
|
1451
|
+
if (!equals(this.j1f_1, other.j1f_1))
|
|
1453
1452
|
return false;
|
|
1454
|
-
if (!(this.
|
|
1453
|
+
if (!(this.k1f_1 == other.k1f_1))
|
|
1455
1454
|
return false;
|
|
1456
|
-
if (!equals(this.
|
|
1455
|
+
if (!equals(this.l1f_1, other.l1f_1))
|
|
1457
1456
|
return false;
|
|
1458
|
-
if (!equals(this.
|
|
1457
|
+
if (!equals(this.m1f_1, other.m1f_1))
|
|
1459
1458
|
return false;
|
|
1460
|
-
if (!(this.
|
|
1459
|
+
if (!(this.n1f_1 == other.n1f_1))
|
|
1461
1460
|
return false;
|
|
1462
|
-
if (!equals(this.
|
|
1461
|
+
if (!equals(this.o1f_1, other.o1f_1))
|
|
1463
1462
|
return false;
|
|
1464
|
-
if (!equals(this.
|
|
1463
|
+
if (!equals(this.p1f_1, other.p1f_1))
|
|
1465
1464
|
return false;
|
|
1466
|
-
if (!(this.
|
|
1465
|
+
if (!(this.q1f_1 == other.q1f_1))
|
|
1467
1466
|
return false;
|
|
1468
|
-
if (!(this.
|
|
1467
|
+
if (!(this.r1f_1 == other.r1f_1))
|
|
1469
1468
|
return false;
|
|
1470
|
-
if (!equals(this.
|
|
1469
|
+
if (!equals(this.s1f_1, other.s1f_1))
|
|
1471
1470
|
return false;
|
|
1472
|
-
if (!(this.
|
|
1471
|
+
if (!(this.t1f_1 === other.t1f_1))
|
|
1473
1472
|
return false;
|
|
1474
|
-
if (!equals(this.
|
|
1473
|
+
if (!equals(this.u1f_1, other.u1f_1))
|
|
1475
1474
|
return false;
|
|
1476
|
-
if (!equals(this.
|
|
1475
|
+
if (!equals(this.v1f_1, other.v1f_1))
|
|
1477
1476
|
return false;
|
|
1478
|
-
if (!(this.
|
|
1477
|
+
if (!(this.w1f_1 == other.w1f_1))
|
|
1479
1478
|
return false;
|
|
1480
|
-
if (!equals(this.
|
|
1479
|
+
if (!equals(this.x1f_1, other.x1f_1))
|
|
1481
1480
|
return false;
|
|
1482
|
-
if (!equals(this.
|
|
1481
|
+
if (!equals(this.y1f_1, other.y1f_1))
|
|
1483
1482
|
return false;
|
|
1484
|
-
if (!equals(this.
|
|
1483
|
+
if (!equals(this.z1f_1, other.z1f_1))
|
|
1485
1484
|
return false;
|
|
1486
|
-
if (!equals(this.
|
|
1485
|
+
if (!equals(this.a1g_1, other.a1g_1))
|
|
1487
1486
|
return false;
|
|
1488
|
-
if (!equals(this.
|
|
1487
|
+
if (!equals(this.b1g_1, other.b1g_1))
|
|
1489
1488
|
return false;
|
|
1490
|
-
if (!(this.
|
|
1489
|
+
if (!(this.c1g_1 == other.c1g_1))
|
|
1491
1490
|
return false;
|
|
1492
|
-
if (!equals(this.
|
|
1491
|
+
if (!equals(this.d1g_1, other.d1g_1))
|
|
1493
1492
|
return false;
|
|
1494
|
-
if (!(this.
|
|
1493
|
+
if (!(this.e1g_1 == other.e1g_1))
|
|
1495
1494
|
return false;
|
|
1496
1495
|
return true;
|
|
1497
1496
|
};
|
|
1498
1497
|
function $serializer_2() {
|
|
1499
1498
|
$serializer_instance_2 = this;
|
|
1500
1499
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.CommerceCta', this, 3);
|
|
1501
|
-
tmp0_serialDesc.
|
|
1502
|
-
tmp0_serialDesc.
|
|
1503
|
-
tmp0_serialDesc.
|
|
1504
|
-
this.
|
|
1505
|
-
}
|
|
1506
|
-
protoOf($serializer_2).
|
|
1507
|
-
var tmp0_desc = this.
|
|
1508
|
-
var tmp1_output = encoder.
|
|
1509
|
-
tmp1_output.
|
|
1510
|
-
tmp1_output.
|
|
1511
|
-
tmp1_output.
|
|
1512
|
-
tmp1_output.
|
|
1513
|
-
};
|
|
1514
|
-
protoOf($serializer_2).
|
|
1515
|
-
return this.
|
|
1516
|
-
};
|
|
1517
|
-
protoOf($serializer_2).
|
|
1518
|
-
var tmp0_desc = this.
|
|
1500
|
+
tmp0_serialDesc.rs('sponsorName', false);
|
|
1501
|
+
tmp0_serialDesc.rs('territory', false);
|
|
1502
|
+
tmp0_serialDesc.rs('url', false);
|
|
1503
|
+
this.n1h_1 = tmp0_serialDesc;
|
|
1504
|
+
}
|
|
1505
|
+
protoOf($serializer_2).o1h = function (encoder, value) {
|
|
1506
|
+
var tmp0_desc = this.n1h_1;
|
|
1507
|
+
var tmp1_output = encoder.il(tmp0_desc);
|
|
1508
|
+
tmp1_output.wm(tmp0_desc, 0, value.p1h_1);
|
|
1509
|
+
tmp1_output.wm(tmp0_desc, 1, value.q1h_1);
|
|
1510
|
+
tmp1_output.wm(tmp0_desc, 2, value.r1h_1);
|
|
1511
|
+
tmp1_output.jl(tmp0_desc);
|
|
1512
|
+
};
|
|
1513
|
+
protoOf($serializer_2).li = function (encoder, value) {
|
|
1514
|
+
return this.o1h(encoder, value instanceof CommerceCta ? value : THROW_CCE());
|
|
1515
|
+
};
|
|
1516
|
+
protoOf($serializer_2).mi = function (decoder) {
|
|
1517
|
+
var tmp0_desc = this.n1h_1;
|
|
1519
1518
|
var tmp1_flag = true;
|
|
1520
1519
|
var tmp2_index = 0;
|
|
1521
1520
|
var tmp3_bitMask0 = 0;
|
|
1522
1521
|
var tmp4_local0 = null;
|
|
1523
1522
|
var tmp5_local1 = null;
|
|
1524
1523
|
var tmp6_local2 = null;
|
|
1525
|
-
var tmp7_input = decoder.
|
|
1526
|
-
if (tmp7_input.
|
|
1527
|
-
tmp4_local0 = tmp7_input.
|
|
1524
|
+
var tmp7_input = decoder.il(tmp0_desc);
|
|
1525
|
+
if (tmp7_input.yl()) {
|
|
1526
|
+
tmp4_local0 = tmp7_input.sl(tmp0_desc, 0);
|
|
1528
1527
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1529
|
-
tmp5_local1 = tmp7_input.
|
|
1528
|
+
tmp5_local1 = tmp7_input.sl(tmp0_desc, 1);
|
|
1530
1529
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1531
|
-
tmp6_local2 = tmp7_input.
|
|
1530
|
+
tmp6_local2 = tmp7_input.sl(tmp0_desc, 2);
|
|
1532
1531
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1533
1532
|
} else
|
|
1534
1533
|
while (tmp1_flag) {
|
|
1535
|
-
tmp2_index = tmp7_input.
|
|
1534
|
+
tmp2_index = tmp7_input.zl(tmp0_desc);
|
|
1536
1535
|
switch (tmp2_index) {
|
|
1537
1536
|
case -1:
|
|
1538
1537
|
tmp1_flag = false;
|
|
1539
1538
|
break;
|
|
1540
1539
|
case 0:
|
|
1541
|
-
tmp4_local0 = tmp7_input.
|
|
1540
|
+
tmp4_local0 = tmp7_input.sl(tmp0_desc, 0);
|
|
1542
1541
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1543
1542
|
break;
|
|
1544
1543
|
case 1:
|
|
1545
|
-
tmp5_local1 = tmp7_input.
|
|
1544
|
+
tmp5_local1 = tmp7_input.sl(tmp0_desc, 1);
|
|
1546
1545
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1547
1546
|
break;
|
|
1548
1547
|
case 2:
|
|
1549
|
-
tmp6_local2 = tmp7_input.
|
|
1548
|
+
tmp6_local2 = tmp7_input.sl(tmp0_desc, 2);
|
|
1550
1549
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1551
1550
|
break;
|
|
1552
1551
|
default:
|
|
1553
1552
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1554
1553
|
}
|
|
1555
1554
|
}
|
|
1556
|
-
tmp7_input.
|
|
1555
|
+
tmp7_input.jl(tmp0_desc);
|
|
1557
1556
|
return CommerceCta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1558
1557
|
};
|
|
1559
|
-
protoOf($serializer_2).
|
|
1560
|
-
return this.
|
|
1558
|
+
protoOf($serializer_2).ki = function () {
|
|
1559
|
+
return this.n1h_1;
|
|
1561
1560
|
};
|
|
1562
|
-
protoOf($serializer_2).
|
|
1561
|
+
protoOf($serializer_2).ts = function () {
|
|
1563
1562
|
// Inline function 'kotlin.arrayOf' call
|
|
1564
1563
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1565
1564
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1573,11 +1572,11 @@
|
|
|
1573
1572
|
}
|
|
1574
1573
|
function CommerceCta_init_$Init$(seen0, sponsorName, territory, url, serializationConstructorMarker, $this) {
|
|
1575
1574
|
if (!(7 === (7 & seen0))) {
|
|
1576
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_2().
|
|
1575
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_2().n1h_1);
|
|
1577
1576
|
}
|
|
1578
|
-
$this.
|
|
1579
|
-
$this.
|
|
1580
|
-
$this.
|
|
1577
|
+
$this.p1h_1 = sponsorName;
|
|
1578
|
+
$this.q1h_1 = territory;
|
|
1579
|
+
$this.r1h_1 = url;
|
|
1581
1580
|
return $this;
|
|
1582
1581
|
}
|
|
1583
1582
|
function CommerceCta_init_$Create$(seen0, sponsorName, territory, url, serializationConstructorMarker) {
|
|
@@ -1586,12 +1585,12 @@
|
|
|
1586
1585
|
function CommerceCta() {
|
|
1587
1586
|
}
|
|
1588
1587
|
protoOf(CommerceCta).toString = function () {
|
|
1589
|
-
return 'CommerceCta(sponsorName=' + this.
|
|
1588
|
+
return 'CommerceCta(sponsorName=' + this.p1h_1 + ', territory=' + this.q1h_1 + ', url=' + this.r1h_1 + ')';
|
|
1590
1589
|
};
|
|
1591
1590
|
protoOf(CommerceCta).hashCode = function () {
|
|
1592
|
-
var result = getStringHashCode(this.
|
|
1593
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1594
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1591
|
+
var result = getStringHashCode(this.p1h_1);
|
|
1592
|
+
result = imul(result, 31) + getStringHashCode(this.q1h_1) | 0;
|
|
1593
|
+
result = imul(result, 31) + getStringHashCode(this.r1h_1) | 0;
|
|
1595
1594
|
return result;
|
|
1596
1595
|
};
|
|
1597
1596
|
protoOf(CommerceCta).equals = function (other) {
|
|
@@ -1599,55 +1598,55 @@
|
|
|
1599
1598
|
return true;
|
|
1600
1599
|
if (!(other instanceof CommerceCta))
|
|
1601
1600
|
return false;
|
|
1602
|
-
if (!(this.
|
|
1601
|
+
if (!(this.p1h_1 === other.p1h_1))
|
|
1603
1602
|
return false;
|
|
1604
|
-
if (!(this.
|
|
1603
|
+
if (!(this.q1h_1 === other.q1h_1))
|
|
1605
1604
|
return false;
|
|
1606
|
-
if (!(this.
|
|
1605
|
+
if (!(this.r1h_1 === other.r1h_1))
|
|
1607
1606
|
return false;
|
|
1608
1607
|
return true;
|
|
1609
1608
|
};
|
|
1610
1609
|
function $serializer_3() {
|
|
1611
1610
|
$serializer_instance_3 = this;
|
|
1612
1611
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Image', this, 8);
|
|
1613
|
-
tmp0_serialDesc.
|
|
1614
|
-
tmp0_serialDesc.
|
|
1615
|
-
tmp0_serialDesc.
|
|
1616
|
-
tmp0_serialDesc.
|
|
1617
|
-
tmp0_serialDesc.
|
|
1618
|
-
tmp0_serialDesc.
|
|
1619
|
-
tmp0_serialDesc.
|
|
1620
|
-
tmp0_serialDesc.
|
|
1621
|
-
this.
|
|
1622
|
-
}
|
|
1623
|
-
protoOf($serializer_3).
|
|
1624
|
-
var tmp0_desc = this.
|
|
1625
|
-
var tmp1_output = encoder.
|
|
1626
|
-
if (tmp1_output.
|
|
1627
|
-
tmp1_output.
|
|
1628
|
-
}
|
|
1629
|
-
tmp1_output.
|
|
1630
|
-
if (tmp1_output.
|
|
1631
|
-
tmp1_output.
|
|
1632
|
-
}
|
|
1633
|
-
if (tmp1_output.
|
|
1634
|
-
tmp1_output.
|
|
1635
|
-
}
|
|
1636
|
-
tmp1_output.
|
|
1637
|
-
if (tmp1_output.
|
|
1638
|
-
tmp1_output.
|
|
1639
|
-
}
|
|
1640
|
-
if (tmp1_output.
|
|
1641
|
-
tmp1_output.
|
|
1642
|
-
}
|
|
1643
|
-
tmp1_output.
|
|
1644
|
-
tmp1_output.
|
|
1645
|
-
};
|
|
1646
|
-
protoOf($serializer_3).
|
|
1647
|
-
return this.
|
|
1648
|
-
};
|
|
1649
|
-
protoOf($serializer_3).
|
|
1650
|
-
var tmp0_desc = this.
|
|
1612
|
+
tmp0_serialDesc.rs('caption', true);
|
|
1613
|
+
tmp0_serialDesc.rs('cropId', false);
|
|
1614
|
+
tmp0_serialDesc.rs('imageType', true);
|
|
1615
|
+
tmp0_serialDesc.rs('mediaApiUrl', true);
|
|
1616
|
+
tmp0_serialDesc.rs('mediaId', false);
|
|
1617
|
+
tmp0_serialDesc.rs('photographer', true);
|
|
1618
|
+
tmp0_serialDesc.rs('source', true);
|
|
1619
|
+
tmp0_serialDesc.rs('url', false);
|
|
1620
|
+
this.s1h_1 = tmp0_serialDesc;
|
|
1621
|
+
}
|
|
1622
|
+
protoOf($serializer_3).t1h = function (encoder, value) {
|
|
1623
|
+
var tmp0_desc = this.s1h_1;
|
|
1624
|
+
var tmp1_output = encoder.il(tmp0_desc);
|
|
1625
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.u1h_1 == null)) {
|
|
1626
|
+
tmp1_output.an(tmp0_desc, 0, StringSerializer_getInstance(), value.u1h_1);
|
|
1627
|
+
}
|
|
1628
|
+
tmp1_output.wm(tmp0_desc, 1, value.v1h_1);
|
|
1629
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.w1h_1 == null)) {
|
|
1630
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.w1h_1);
|
|
1631
|
+
}
|
|
1632
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.x1h_1 == null)) {
|
|
1633
|
+
tmp1_output.an(tmp0_desc, 3, StringSerializer_getInstance(), value.x1h_1);
|
|
1634
|
+
}
|
|
1635
|
+
tmp1_output.wm(tmp0_desc, 4, value.y1h_1);
|
|
1636
|
+
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.z1h_1 == null)) {
|
|
1637
|
+
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.z1h_1);
|
|
1638
|
+
}
|
|
1639
|
+
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.a1i_1 == null)) {
|
|
1640
|
+
tmp1_output.an(tmp0_desc, 6, StringSerializer_getInstance(), value.a1i_1);
|
|
1641
|
+
}
|
|
1642
|
+
tmp1_output.wm(tmp0_desc, 7, value.b1i_1);
|
|
1643
|
+
tmp1_output.jl(tmp0_desc);
|
|
1644
|
+
};
|
|
1645
|
+
protoOf($serializer_3).li = function (encoder, value) {
|
|
1646
|
+
return this.t1h(encoder, value instanceof Image ? value : THROW_CCE());
|
|
1647
|
+
};
|
|
1648
|
+
protoOf($serializer_3).mi = function (decoder) {
|
|
1649
|
+
var tmp0_desc = this.s1h_1;
|
|
1651
1650
|
var tmp1_flag = true;
|
|
1652
1651
|
var tmp2_index = 0;
|
|
1653
1652
|
var tmp3_bitMask0 = 0;
|
|
@@ -1659,74 +1658,74 @@
|
|
|
1659
1658
|
var tmp9_local5 = null;
|
|
1660
1659
|
var tmp10_local6 = null;
|
|
1661
1660
|
var tmp11_local7 = null;
|
|
1662
|
-
var tmp12_input = decoder.
|
|
1663
|
-
if (tmp12_input.
|
|
1664
|
-
tmp4_local0 = tmp12_input.
|
|
1661
|
+
var tmp12_input = decoder.il(tmp0_desc);
|
|
1662
|
+
if (tmp12_input.yl()) {
|
|
1663
|
+
tmp4_local0 = tmp12_input.wl(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1665
1664
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1666
|
-
tmp5_local1 = tmp12_input.
|
|
1665
|
+
tmp5_local1 = tmp12_input.sl(tmp0_desc, 1);
|
|
1667
1666
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1668
|
-
tmp6_local2 = tmp12_input.
|
|
1667
|
+
tmp6_local2 = tmp12_input.wl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1669
1668
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1670
|
-
tmp7_local3 = tmp12_input.
|
|
1669
|
+
tmp7_local3 = tmp12_input.wl(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
1671
1670
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1672
|
-
tmp8_local4 = tmp12_input.
|
|
1671
|
+
tmp8_local4 = tmp12_input.sl(tmp0_desc, 4);
|
|
1673
1672
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1674
|
-
tmp9_local5 = tmp12_input.
|
|
1673
|
+
tmp9_local5 = tmp12_input.wl(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1675
1674
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1676
|
-
tmp10_local6 = tmp12_input.
|
|
1675
|
+
tmp10_local6 = tmp12_input.wl(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1677
1676
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1678
|
-
tmp11_local7 = tmp12_input.
|
|
1677
|
+
tmp11_local7 = tmp12_input.sl(tmp0_desc, 7);
|
|
1679
1678
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1680
1679
|
} else
|
|
1681
1680
|
while (tmp1_flag) {
|
|
1682
|
-
tmp2_index = tmp12_input.
|
|
1681
|
+
tmp2_index = tmp12_input.zl(tmp0_desc);
|
|
1683
1682
|
switch (tmp2_index) {
|
|
1684
1683
|
case -1:
|
|
1685
1684
|
tmp1_flag = false;
|
|
1686
1685
|
break;
|
|
1687
1686
|
case 0:
|
|
1688
|
-
tmp4_local0 = tmp12_input.
|
|
1687
|
+
tmp4_local0 = tmp12_input.wl(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1689
1688
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1690
1689
|
break;
|
|
1691
1690
|
case 1:
|
|
1692
|
-
tmp5_local1 = tmp12_input.
|
|
1691
|
+
tmp5_local1 = tmp12_input.sl(tmp0_desc, 1);
|
|
1693
1692
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1694
1693
|
break;
|
|
1695
1694
|
case 2:
|
|
1696
|
-
tmp6_local2 = tmp12_input.
|
|
1695
|
+
tmp6_local2 = tmp12_input.wl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1697
1696
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1698
1697
|
break;
|
|
1699
1698
|
case 3:
|
|
1700
|
-
tmp7_local3 = tmp12_input.
|
|
1699
|
+
tmp7_local3 = tmp12_input.wl(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
1701
1700
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1702
1701
|
break;
|
|
1703
1702
|
case 4:
|
|
1704
|
-
tmp8_local4 = tmp12_input.
|
|
1703
|
+
tmp8_local4 = tmp12_input.sl(tmp0_desc, 4);
|
|
1705
1704
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1706
1705
|
break;
|
|
1707
1706
|
case 5:
|
|
1708
|
-
tmp9_local5 = tmp12_input.
|
|
1707
|
+
tmp9_local5 = tmp12_input.wl(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1709
1708
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1710
1709
|
break;
|
|
1711
1710
|
case 6:
|
|
1712
|
-
tmp10_local6 = tmp12_input.
|
|
1711
|
+
tmp10_local6 = tmp12_input.wl(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1713
1712
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1714
1713
|
break;
|
|
1715
1714
|
case 7:
|
|
1716
|
-
tmp11_local7 = tmp12_input.
|
|
1715
|
+
tmp11_local7 = tmp12_input.sl(tmp0_desc, 7);
|
|
1717
1716
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1718
1717
|
break;
|
|
1719
1718
|
default:
|
|
1720
1719
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1721
1720
|
}
|
|
1722
1721
|
}
|
|
1723
|
-
tmp12_input.
|
|
1722
|
+
tmp12_input.jl(tmp0_desc);
|
|
1724
1723
|
return Image_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1725
1724
|
};
|
|
1726
|
-
protoOf($serializer_3).
|
|
1727
|
-
return this.
|
|
1725
|
+
protoOf($serializer_3).ki = function () {
|
|
1726
|
+
return this.s1h_1;
|
|
1728
1727
|
};
|
|
1729
|
-
protoOf($serializer_3).
|
|
1728
|
+
protoOf($serializer_3).ts = function () {
|
|
1730
1729
|
// Inline function 'kotlin.arrayOf' call
|
|
1731
1730
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1732
1731
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1740,31 +1739,31 @@
|
|
|
1740
1739
|
}
|
|
1741
1740
|
function Image_init_$Init$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker, $this) {
|
|
1742
1741
|
if (!(146 === (146 & seen0))) {
|
|
1743
|
-
throwMissingFieldException(seen0, 146, $serializer_getInstance_3().
|
|
1742
|
+
throwMissingFieldException(seen0, 146, $serializer_getInstance_3().s1h_1);
|
|
1744
1743
|
}
|
|
1745
1744
|
if (0 === (seen0 & 1))
|
|
1746
|
-
$this.
|
|
1745
|
+
$this.u1h_1 = null;
|
|
1747
1746
|
else
|
|
1748
|
-
$this.
|
|
1749
|
-
$this.
|
|
1747
|
+
$this.u1h_1 = caption;
|
|
1748
|
+
$this.v1h_1 = cropId;
|
|
1750
1749
|
if (0 === (seen0 & 4))
|
|
1751
|
-
$this.
|
|
1750
|
+
$this.w1h_1 = null;
|
|
1752
1751
|
else
|
|
1753
|
-
$this.
|
|
1752
|
+
$this.w1h_1 = imageType;
|
|
1754
1753
|
if (0 === (seen0 & 8))
|
|
1755
|
-
$this.
|
|
1754
|
+
$this.x1h_1 = null;
|
|
1756
1755
|
else
|
|
1757
|
-
$this.
|
|
1758
|
-
$this.
|
|
1756
|
+
$this.x1h_1 = mediaApiUrl;
|
|
1757
|
+
$this.y1h_1 = mediaId;
|
|
1759
1758
|
if (0 === (seen0 & 32))
|
|
1760
|
-
$this.
|
|
1759
|
+
$this.z1h_1 = null;
|
|
1761
1760
|
else
|
|
1762
|
-
$this.
|
|
1761
|
+
$this.z1h_1 = photographer;
|
|
1763
1762
|
if (0 === (seen0 & 64))
|
|
1764
|
-
$this.
|
|
1763
|
+
$this.a1i_1 = null;
|
|
1765
1764
|
else
|
|
1766
|
-
$this.
|
|
1767
|
-
$this.
|
|
1765
|
+
$this.a1i_1 = source;
|
|
1766
|
+
$this.b1i_1 = url;
|
|
1768
1767
|
return $this;
|
|
1769
1768
|
}
|
|
1770
1769
|
function Image_init_$Create$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker) {
|
|
@@ -1773,17 +1772,17 @@
|
|
|
1773
1772
|
function Image() {
|
|
1774
1773
|
}
|
|
1775
1774
|
protoOf(Image).toString = function () {
|
|
1776
|
-
return 'Image(caption=' + this.
|
|
1775
|
+
return 'Image(caption=' + this.u1h_1 + ', cropId=' + this.v1h_1 + ', imageType=' + this.w1h_1 + ', mediaApiUrl=' + this.x1h_1 + ', mediaId=' + this.y1h_1 + ', photographer=' + this.z1h_1 + ', source=' + this.a1i_1 + ', url=' + this.b1i_1 + ')';
|
|
1777
1776
|
};
|
|
1778
1777
|
protoOf(Image).hashCode = function () {
|
|
1779
|
-
var result = this.
|
|
1780
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1781
|
-
result = imul(result, 31) + (this.
|
|
1782
|
-
result = imul(result, 31) + (this.
|
|
1783
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1784
|
-
result = imul(result, 31) + (this.
|
|
1785
|
-
result = imul(result, 31) + (this.
|
|
1786
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1778
|
+
var result = this.u1h_1 == null ? 0 : getStringHashCode(this.u1h_1);
|
|
1779
|
+
result = imul(result, 31) + getStringHashCode(this.v1h_1) | 0;
|
|
1780
|
+
result = imul(result, 31) + (this.w1h_1 == null ? 0 : getStringHashCode(this.w1h_1)) | 0;
|
|
1781
|
+
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) + (this.z1h_1 == null ? 0 : getStringHashCode(this.z1h_1)) | 0;
|
|
1784
|
+
result = imul(result, 31) + (this.a1i_1 == null ? 0 : getStringHashCode(this.a1i_1)) | 0;
|
|
1785
|
+
result = imul(result, 31) + getStringHashCode(this.b1i_1) | 0;
|
|
1787
1786
|
return result;
|
|
1788
1787
|
};
|
|
1789
1788
|
protoOf(Image).equals = function (other) {
|
|
@@ -1791,21 +1790,21 @@
|
|
|
1791
1790
|
return true;
|
|
1792
1791
|
if (!(other instanceof Image))
|
|
1793
1792
|
return false;
|
|
1794
|
-
if (!(this.
|
|
1793
|
+
if (!(this.u1h_1 == other.u1h_1))
|
|
1795
1794
|
return false;
|
|
1796
|
-
if (!(this.
|
|
1795
|
+
if (!(this.v1h_1 === other.v1h_1))
|
|
1797
1796
|
return false;
|
|
1798
|
-
if (!(this.
|
|
1797
|
+
if (!(this.w1h_1 == other.w1h_1))
|
|
1799
1798
|
return false;
|
|
1800
|
-
if (!(this.
|
|
1799
|
+
if (!(this.x1h_1 == other.x1h_1))
|
|
1801
1800
|
return false;
|
|
1802
|
-
if (!(this.
|
|
1801
|
+
if (!(this.y1h_1 === other.y1h_1))
|
|
1803
1802
|
return false;
|
|
1804
|
-
if (!(this.
|
|
1803
|
+
if (!(this.z1h_1 == other.z1h_1))
|
|
1805
1804
|
return false;
|
|
1806
|
-
if (!(this.
|
|
1805
|
+
if (!(this.a1i_1 == other.a1i_1))
|
|
1807
1806
|
return false;
|
|
1808
|
-
if (!(this.
|
|
1807
|
+
if (!(this.b1i_1 === other.b1i_1))
|
|
1809
1808
|
return false;
|
|
1810
1809
|
return true;
|
|
1811
1810
|
};
|
|
@@ -1819,7 +1818,7 @@
|
|
|
1819
1818
|
// Inline function 'kotlin.arrayOf' call
|
|
1820
1819
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1821
1820
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1822
|
-
tmp.
|
|
1821
|
+
tmp.c1i_1 = [lazy(tmp_0, IngredientsList$Companion$$childSerializers$_anonymous__y7k6ja), null];
|
|
1823
1822
|
}
|
|
1824
1823
|
var Companion_instance_3;
|
|
1825
1824
|
function Companion_getInstance_2() {
|
|
@@ -1830,70 +1829,70 @@
|
|
|
1830
1829
|
function $serializer_4() {
|
|
1831
1830
|
$serializer_instance_4 = this;
|
|
1832
1831
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsList', this, 2);
|
|
1833
|
-
tmp0_serialDesc.
|
|
1834
|
-
tmp0_serialDesc.
|
|
1835
|
-
this.
|
|
1832
|
+
tmp0_serialDesc.rs('ingredientsList', true);
|
|
1833
|
+
tmp0_serialDesc.rs('recipeSection', true);
|
|
1834
|
+
this.d1i_1 = tmp0_serialDesc;
|
|
1836
1835
|
}
|
|
1837
|
-
protoOf($serializer_4).
|
|
1838
|
-
var tmp0_desc = this.
|
|
1839
|
-
var tmp1_output = encoder.
|
|
1840
|
-
var tmp2_cached = Companion_getInstance_2().
|
|
1841
|
-
if (tmp1_output.
|
|
1842
|
-
tmp1_output.
|
|
1836
|
+
protoOf($serializer_4).e1i = function (encoder, value) {
|
|
1837
|
+
var tmp0_desc = this.d1i_1;
|
|
1838
|
+
var tmp1_output = encoder.il(tmp0_desc);
|
|
1839
|
+
var tmp2_cached = Companion_getInstance_2().c1i_1;
|
|
1840
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.f1g_1 == null)) {
|
|
1841
|
+
tmp1_output.an(tmp0_desc, 0, tmp2_cached[0].h2(), value.f1g_1);
|
|
1843
1842
|
}
|
|
1844
|
-
if (tmp1_output.
|
|
1845
|
-
tmp1_output.
|
|
1843
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.g1g_1 == null)) {
|
|
1844
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.g1g_1);
|
|
1846
1845
|
}
|
|
1847
|
-
tmp1_output.
|
|
1846
|
+
tmp1_output.jl(tmp0_desc);
|
|
1848
1847
|
};
|
|
1849
|
-
protoOf($serializer_4).
|
|
1850
|
-
return this.
|
|
1848
|
+
protoOf($serializer_4).li = function (encoder, value) {
|
|
1849
|
+
return this.e1i(encoder, value instanceof IngredientsList ? value : THROW_CCE());
|
|
1851
1850
|
};
|
|
1852
|
-
protoOf($serializer_4).
|
|
1853
|
-
var tmp0_desc = this.
|
|
1851
|
+
protoOf($serializer_4).mi = function (decoder) {
|
|
1852
|
+
var tmp0_desc = this.d1i_1;
|
|
1854
1853
|
var tmp1_flag = true;
|
|
1855
1854
|
var tmp2_index = 0;
|
|
1856
1855
|
var tmp3_bitMask0 = 0;
|
|
1857
1856
|
var tmp4_local0 = null;
|
|
1858
1857
|
var tmp5_local1 = null;
|
|
1859
|
-
var tmp6_input = decoder.
|
|
1860
|
-
var tmp7_cached = Companion_getInstance_2().
|
|
1861
|
-
if (tmp6_input.
|
|
1862
|
-
tmp4_local0 = tmp6_input.
|
|
1858
|
+
var tmp6_input = decoder.il(tmp0_desc);
|
|
1859
|
+
var tmp7_cached = Companion_getInstance_2().c1i_1;
|
|
1860
|
+
if (tmp6_input.yl()) {
|
|
1861
|
+
tmp4_local0 = tmp6_input.wl(tmp0_desc, 0, tmp7_cached[0].h2(), tmp4_local0);
|
|
1863
1862
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1864
|
-
tmp5_local1 = tmp6_input.
|
|
1863
|
+
tmp5_local1 = tmp6_input.wl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1865
1864
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1866
1865
|
} else
|
|
1867
1866
|
while (tmp1_flag) {
|
|
1868
|
-
tmp2_index = tmp6_input.
|
|
1867
|
+
tmp2_index = tmp6_input.zl(tmp0_desc);
|
|
1869
1868
|
switch (tmp2_index) {
|
|
1870
1869
|
case -1:
|
|
1871
1870
|
tmp1_flag = false;
|
|
1872
1871
|
break;
|
|
1873
1872
|
case 0:
|
|
1874
|
-
tmp4_local0 = tmp6_input.
|
|
1873
|
+
tmp4_local0 = tmp6_input.wl(tmp0_desc, 0, tmp7_cached[0].h2(), tmp4_local0);
|
|
1875
1874
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1876
1875
|
break;
|
|
1877
1876
|
case 1:
|
|
1878
|
-
tmp5_local1 = tmp6_input.
|
|
1877
|
+
tmp5_local1 = tmp6_input.wl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1879
1878
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1880
1879
|
break;
|
|
1881
1880
|
default:
|
|
1882
1881
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1883
1882
|
}
|
|
1884
1883
|
}
|
|
1885
|
-
tmp6_input.
|
|
1884
|
+
tmp6_input.jl(tmp0_desc);
|
|
1886
1885
|
return IngredientsList_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1887
1886
|
};
|
|
1888
|
-
protoOf($serializer_4).
|
|
1889
|
-
return this.
|
|
1887
|
+
protoOf($serializer_4).ki = function () {
|
|
1888
|
+
return this.d1i_1;
|
|
1890
1889
|
};
|
|
1891
|
-
protoOf($serializer_4).
|
|
1892
|
-
var tmp0_cached = Companion_getInstance_2().
|
|
1890
|
+
protoOf($serializer_4).ts = function () {
|
|
1891
|
+
var tmp0_cached = Companion_getInstance_2().c1i_1;
|
|
1893
1892
|
// Inline function 'kotlin.arrayOf' call
|
|
1894
1893
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1895
1894
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1896
|
-
return [get_nullable(tmp0_cached[0].
|
|
1895
|
+
return [get_nullable(tmp0_cached[0].h2()), get_nullable(StringSerializer_getInstance())];
|
|
1897
1896
|
};
|
|
1898
1897
|
var $serializer_instance_4;
|
|
1899
1898
|
function $serializer_getInstance_4() {
|
|
@@ -1903,16 +1902,16 @@
|
|
|
1903
1902
|
}
|
|
1904
1903
|
function IngredientsList_init_$Init$(seen0, ingredientsList, recipeSection, serializationConstructorMarker, $this) {
|
|
1905
1904
|
if (!(0 === (0 & seen0))) {
|
|
1906
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().
|
|
1905
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().d1i_1);
|
|
1907
1906
|
}
|
|
1908
1907
|
if (0 === (seen0 & 1))
|
|
1909
|
-
$this.
|
|
1908
|
+
$this.f1g_1 = null;
|
|
1910
1909
|
else
|
|
1911
|
-
$this.
|
|
1910
|
+
$this.f1g_1 = ingredientsList;
|
|
1912
1911
|
if (0 === (seen0 & 2))
|
|
1913
|
-
$this.
|
|
1912
|
+
$this.g1g_1 = null;
|
|
1914
1913
|
else
|
|
1915
|
-
$this.
|
|
1914
|
+
$this.g1g_1 = recipeSection;
|
|
1916
1915
|
return $this;
|
|
1917
1916
|
}
|
|
1918
1917
|
function IngredientsList_init_$Create$(seen0, ingredientsList, recipeSection, serializationConstructorMarker) {
|
|
@@ -1922,15 +1921,15 @@
|
|
|
1922
1921
|
Companion_getInstance_2();
|
|
1923
1922
|
ingredientsList = ingredientsList === VOID ? null : ingredientsList;
|
|
1924
1923
|
recipeSection = recipeSection === VOID ? null : recipeSection;
|
|
1925
|
-
this.
|
|
1926
|
-
this.
|
|
1924
|
+
this.f1g_1 = ingredientsList;
|
|
1925
|
+
this.g1g_1 = recipeSection;
|
|
1927
1926
|
}
|
|
1928
1927
|
protoOf(IngredientsList).toString = function () {
|
|
1929
|
-
return 'IngredientsList(ingredientsList=' + toString(this.
|
|
1928
|
+
return 'IngredientsList(ingredientsList=' + toString(this.f1g_1) + ', recipeSection=' + this.g1g_1 + ')';
|
|
1930
1929
|
};
|
|
1931
1930
|
protoOf(IngredientsList).hashCode = function () {
|
|
1932
|
-
var result = this.
|
|
1933
|
-
result = imul(result, 31) + (this.
|
|
1931
|
+
var result = this.f1g_1 == null ? 0 : hashCode(this.f1g_1);
|
|
1932
|
+
result = imul(result, 31) + (this.g1g_1 == null ? 0 : getStringHashCode(this.g1g_1)) | 0;
|
|
1934
1933
|
return result;
|
|
1935
1934
|
};
|
|
1936
1935
|
protoOf(IngredientsList).equals = function (other) {
|
|
@@ -1938,9 +1937,9 @@
|
|
|
1938
1937
|
return true;
|
|
1939
1938
|
if (!(other instanceof IngredientsList))
|
|
1940
1939
|
return false;
|
|
1941
|
-
if (!equals(this.
|
|
1940
|
+
if (!equals(this.f1g_1, other.f1g_1))
|
|
1942
1941
|
return false;
|
|
1943
|
-
if (!(this.
|
|
1942
|
+
if (!(this.g1g_1 == other.g1g_1))
|
|
1944
1943
|
return false;
|
|
1945
1944
|
return true;
|
|
1946
1945
|
};
|
|
@@ -1953,54 +1952,54 @@
|
|
|
1953
1952
|
function $serializer_5() {
|
|
1954
1953
|
$serializer_instance_5 = this;
|
|
1955
1954
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientItem', this, 9);
|
|
1956
|
-
tmp0_serialDesc.
|
|
1957
|
-
tmp0_serialDesc.
|
|
1958
|
-
tmp0_serialDesc.
|
|
1959
|
-
tmp0_serialDesc.
|
|
1960
|
-
tmp0_serialDesc.
|
|
1961
|
-
tmp0_serialDesc.
|
|
1962
|
-
tmp0_serialDesc.
|
|
1963
|
-
tmp0_serialDesc.
|
|
1964
|
-
tmp0_serialDesc.
|
|
1965
|
-
this.
|
|
1955
|
+
tmp0_serialDesc.rs('amount', true);
|
|
1956
|
+
tmp0_serialDesc.rs('ingredientId', true);
|
|
1957
|
+
tmp0_serialDesc.rs('name', true);
|
|
1958
|
+
tmp0_serialDesc.rs('optional', true);
|
|
1959
|
+
tmp0_serialDesc.rs('prefix', true);
|
|
1960
|
+
tmp0_serialDesc.rs('suffix', true);
|
|
1961
|
+
tmp0_serialDesc.rs('template', true);
|
|
1962
|
+
tmp0_serialDesc.rs('text', true);
|
|
1963
|
+
tmp0_serialDesc.rs('unit', true);
|
|
1964
|
+
this.f1i_1 = tmp0_serialDesc;
|
|
1966
1965
|
}
|
|
1967
|
-
protoOf($serializer_5).
|
|
1968
|
-
var tmp0_desc = this.
|
|
1969
|
-
var tmp1_output = encoder.
|
|
1970
|
-
if (tmp1_output.
|
|
1971
|
-
tmp1_output.
|
|
1966
|
+
protoOf($serializer_5).g1i = function (encoder, value) {
|
|
1967
|
+
var tmp0_desc = this.f1i_1;
|
|
1968
|
+
var tmp1_output = encoder.il(tmp0_desc);
|
|
1969
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.h1g_1 == null)) {
|
|
1970
|
+
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.h1g_1);
|
|
1972
1971
|
}
|
|
1973
|
-
if (tmp1_output.
|
|
1974
|
-
tmp1_output.
|
|
1972
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.i1g_1 == null)) {
|
|
1973
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.i1g_1);
|
|
1975
1974
|
}
|
|
1976
|
-
if (tmp1_output.
|
|
1977
|
-
tmp1_output.
|
|
1975
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.j1g_1 == null)) {
|
|
1976
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.j1g_1);
|
|
1978
1977
|
}
|
|
1979
|
-
if (tmp1_output.
|
|
1980
|
-
tmp1_output.
|
|
1978
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.k1g_1 == null)) {
|
|
1979
|
+
tmp1_output.an(tmp0_desc, 3, BooleanSerializer_getInstance(), value.k1g_1);
|
|
1981
1980
|
}
|
|
1982
|
-
if (tmp1_output.
|
|
1983
|
-
tmp1_output.
|
|
1981
|
+
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.l1g_1 == null)) {
|
|
1982
|
+
tmp1_output.an(tmp0_desc, 4, StringSerializer_getInstance(), value.l1g_1);
|
|
1984
1983
|
}
|
|
1985
|
-
if (tmp1_output.
|
|
1986
|
-
tmp1_output.
|
|
1984
|
+
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.m1g_1 == null)) {
|
|
1985
|
+
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.m1g_1);
|
|
1987
1986
|
}
|
|
1988
|
-
if (tmp1_output.
|
|
1989
|
-
tmp1_output.
|
|
1987
|
+
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.n1g_1 == null)) {
|
|
1988
|
+
tmp1_output.an(tmp0_desc, 6, StringSerializer_getInstance(), value.n1g_1);
|
|
1990
1989
|
}
|
|
1991
|
-
if (tmp1_output.
|
|
1992
|
-
tmp1_output.
|
|
1990
|
+
if (tmp1_output.en(tmp0_desc, 7) ? true : !(value.o1g_1 == null)) {
|
|
1991
|
+
tmp1_output.an(tmp0_desc, 7, StringSerializer_getInstance(), value.o1g_1);
|
|
1993
1992
|
}
|
|
1994
|
-
if (tmp1_output.
|
|
1995
|
-
tmp1_output.
|
|
1993
|
+
if (tmp1_output.en(tmp0_desc, 8) ? true : !(value.p1g_1 == null)) {
|
|
1994
|
+
tmp1_output.an(tmp0_desc, 8, StringSerializer_getInstance(), value.p1g_1);
|
|
1996
1995
|
}
|
|
1997
|
-
tmp1_output.
|
|
1996
|
+
tmp1_output.jl(tmp0_desc);
|
|
1998
1997
|
};
|
|
1999
|
-
protoOf($serializer_5).
|
|
2000
|
-
return this.
|
|
1998
|
+
protoOf($serializer_5).li = function (encoder, value) {
|
|
1999
|
+
return this.g1i(encoder, value instanceof IngredientItem ? value : THROW_CCE());
|
|
2001
2000
|
};
|
|
2002
|
-
protoOf($serializer_5).
|
|
2003
|
-
var tmp0_desc = this.
|
|
2001
|
+
protoOf($serializer_5).mi = function (decoder) {
|
|
2002
|
+
var tmp0_desc = this.f1i_1;
|
|
2004
2003
|
var tmp1_flag = true;
|
|
2005
2004
|
var tmp2_index = 0;
|
|
2006
2005
|
var tmp3_bitMask0 = 0;
|
|
@@ -2013,80 +2012,80 @@
|
|
|
2013
2012
|
var tmp10_local6 = null;
|
|
2014
2013
|
var tmp11_local7 = null;
|
|
2015
2014
|
var tmp12_local8 = null;
|
|
2016
|
-
var tmp13_input = decoder.
|
|
2017
|
-
if (tmp13_input.
|
|
2018
|
-
tmp4_local0 = tmp13_input.
|
|
2015
|
+
var tmp13_input = decoder.il(tmp0_desc);
|
|
2016
|
+
if (tmp13_input.yl()) {
|
|
2017
|
+
tmp4_local0 = tmp13_input.wl(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2019
2018
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2020
|
-
tmp5_local1 = tmp13_input.
|
|
2019
|
+
tmp5_local1 = tmp13_input.wl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2021
2020
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2022
|
-
tmp6_local2 = tmp13_input.
|
|
2021
|
+
tmp6_local2 = tmp13_input.wl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2023
2022
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2024
|
-
tmp7_local3 = tmp13_input.
|
|
2023
|
+
tmp7_local3 = tmp13_input.wl(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
2025
2024
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2026
|
-
tmp8_local4 = tmp13_input.
|
|
2025
|
+
tmp8_local4 = tmp13_input.wl(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2027
2026
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2028
|
-
tmp9_local5 = tmp13_input.
|
|
2027
|
+
tmp9_local5 = tmp13_input.wl(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
2029
2028
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2030
|
-
tmp10_local6 = tmp13_input.
|
|
2029
|
+
tmp10_local6 = tmp13_input.wl(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
2031
2030
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
2032
|
-
tmp11_local7 = tmp13_input.
|
|
2031
|
+
tmp11_local7 = tmp13_input.wl(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2033
2032
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2034
|
-
tmp12_local8 = tmp13_input.
|
|
2033
|
+
tmp12_local8 = tmp13_input.wl(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
2035
2034
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2036
2035
|
} else
|
|
2037
2036
|
while (tmp1_flag) {
|
|
2038
|
-
tmp2_index = tmp13_input.
|
|
2037
|
+
tmp2_index = tmp13_input.zl(tmp0_desc);
|
|
2039
2038
|
switch (tmp2_index) {
|
|
2040
2039
|
case -1:
|
|
2041
2040
|
tmp1_flag = false;
|
|
2042
2041
|
break;
|
|
2043
2042
|
case 0:
|
|
2044
|
-
tmp4_local0 = tmp13_input.
|
|
2043
|
+
tmp4_local0 = tmp13_input.wl(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2045
2044
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2046
2045
|
break;
|
|
2047
2046
|
case 1:
|
|
2048
|
-
tmp5_local1 = tmp13_input.
|
|
2047
|
+
tmp5_local1 = tmp13_input.wl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2049
2048
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2050
2049
|
break;
|
|
2051
2050
|
case 2:
|
|
2052
|
-
tmp6_local2 = tmp13_input.
|
|
2051
|
+
tmp6_local2 = tmp13_input.wl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2053
2052
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2054
2053
|
break;
|
|
2055
2054
|
case 3:
|
|
2056
|
-
tmp7_local3 = tmp13_input.
|
|
2055
|
+
tmp7_local3 = tmp13_input.wl(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
2057
2056
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2058
2057
|
break;
|
|
2059
2058
|
case 4:
|
|
2060
|
-
tmp8_local4 = tmp13_input.
|
|
2059
|
+
tmp8_local4 = tmp13_input.wl(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2061
2060
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2062
2061
|
break;
|
|
2063
2062
|
case 5:
|
|
2064
|
-
tmp9_local5 = tmp13_input.
|
|
2063
|
+
tmp9_local5 = tmp13_input.wl(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
2065
2064
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2066
2065
|
break;
|
|
2067
2066
|
case 6:
|
|
2068
|
-
tmp10_local6 = tmp13_input.
|
|
2067
|
+
tmp10_local6 = tmp13_input.wl(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
2069
2068
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
2070
2069
|
break;
|
|
2071
2070
|
case 7:
|
|
2072
|
-
tmp11_local7 = tmp13_input.
|
|
2071
|
+
tmp11_local7 = tmp13_input.wl(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2073
2072
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2074
2073
|
break;
|
|
2075
2074
|
case 8:
|
|
2076
|
-
tmp12_local8 = tmp13_input.
|
|
2075
|
+
tmp12_local8 = tmp13_input.wl(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
2077
2076
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2078
2077
|
break;
|
|
2079
2078
|
default:
|
|
2080
2079
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2081
2080
|
}
|
|
2082
2081
|
}
|
|
2083
|
-
tmp13_input.
|
|
2082
|
+
tmp13_input.jl(tmp0_desc);
|
|
2084
2083
|
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);
|
|
2085
2084
|
};
|
|
2086
|
-
protoOf($serializer_5).
|
|
2087
|
-
return this.
|
|
2085
|
+
protoOf($serializer_5).ki = function () {
|
|
2086
|
+
return this.f1i_1;
|
|
2088
2087
|
};
|
|
2089
|
-
protoOf($serializer_5).
|
|
2088
|
+
protoOf($serializer_5).ts = function () {
|
|
2090
2089
|
// Inline function 'kotlin.arrayOf' call
|
|
2091
2090
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2092
2091
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2100,44 +2099,44 @@
|
|
|
2100
2099
|
}
|
|
2101
2100
|
function IngredientItem_init_$Init$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker, $this) {
|
|
2102
2101
|
if (!(0 === (0 & seen0))) {
|
|
2103
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_5().
|
|
2102
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_5().f1i_1);
|
|
2104
2103
|
}
|
|
2105
2104
|
if (0 === (seen0 & 1))
|
|
2106
|
-
$this.
|
|
2105
|
+
$this.h1g_1 = null;
|
|
2107
2106
|
else
|
|
2108
|
-
$this.
|
|
2107
|
+
$this.h1g_1 = amount;
|
|
2109
2108
|
if (0 === (seen0 & 2))
|
|
2110
|
-
$this.
|
|
2109
|
+
$this.i1g_1 = null;
|
|
2111
2110
|
else
|
|
2112
|
-
$this.
|
|
2111
|
+
$this.i1g_1 = ingredientId;
|
|
2113
2112
|
if (0 === (seen0 & 4))
|
|
2114
|
-
$this.
|
|
2113
|
+
$this.j1g_1 = null;
|
|
2115
2114
|
else
|
|
2116
|
-
$this.
|
|
2115
|
+
$this.j1g_1 = name;
|
|
2117
2116
|
if (0 === (seen0 & 8))
|
|
2118
|
-
$this.
|
|
2117
|
+
$this.k1g_1 = null;
|
|
2119
2118
|
else
|
|
2120
|
-
$this.
|
|
2119
|
+
$this.k1g_1 = optional;
|
|
2121
2120
|
if (0 === (seen0 & 16))
|
|
2122
|
-
$this.
|
|
2121
|
+
$this.l1g_1 = null;
|
|
2123
2122
|
else
|
|
2124
|
-
$this.
|
|
2123
|
+
$this.l1g_1 = prefix;
|
|
2125
2124
|
if (0 === (seen0 & 32))
|
|
2126
|
-
$this.
|
|
2125
|
+
$this.m1g_1 = null;
|
|
2127
2126
|
else
|
|
2128
|
-
$this.
|
|
2127
|
+
$this.m1g_1 = suffix;
|
|
2129
2128
|
if (0 === (seen0 & 64))
|
|
2130
|
-
$this.
|
|
2129
|
+
$this.n1g_1 = null;
|
|
2131
2130
|
else
|
|
2132
|
-
$this.
|
|
2131
|
+
$this.n1g_1 = template;
|
|
2133
2132
|
if (0 === (seen0 & 128))
|
|
2134
|
-
$this.
|
|
2133
|
+
$this.o1g_1 = null;
|
|
2135
2134
|
else
|
|
2136
|
-
$this.
|
|
2135
|
+
$this.o1g_1 = text;
|
|
2137
2136
|
if (0 === (seen0 & 256))
|
|
2138
|
-
$this.
|
|
2137
|
+
$this.p1g_1 = null;
|
|
2139
2138
|
else
|
|
2140
|
-
$this.
|
|
2139
|
+
$this.p1g_1 = unit;
|
|
2141
2140
|
return $this;
|
|
2142
2141
|
}
|
|
2143
2142
|
function IngredientItem_init_$Create$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker) {
|
|
@@ -2153,44 +2152,44 @@
|
|
|
2153
2152
|
template = template === VOID ? null : template;
|
|
2154
2153
|
text = text === VOID ? null : text;
|
|
2155
2154
|
unit = unit === VOID ? null : unit;
|
|
2156
|
-
this.
|
|
2157
|
-
this.
|
|
2158
|
-
this.
|
|
2159
|
-
this.
|
|
2160
|
-
this.
|
|
2161
|
-
this.
|
|
2162
|
-
this.
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
}
|
|
2166
|
-
protoOf(IngredientItem).
|
|
2155
|
+
this.h1g_1 = amount;
|
|
2156
|
+
this.i1g_1 = ingredientId;
|
|
2157
|
+
this.j1g_1 = name;
|
|
2158
|
+
this.k1g_1 = optional;
|
|
2159
|
+
this.l1g_1 = prefix;
|
|
2160
|
+
this.m1g_1 = suffix;
|
|
2161
|
+
this.n1g_1 = template;
|
|
2162
|
+
this.o1g_1 = text;
|
|
2163
|
+
this.p1g_1 = unit;
|
|
2164
|
+
}
|
|
2165
|
+
protoOf(IngredientItem).h1i = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit) {
|
|
2167
2166
|
return new IngredientItem(amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
2168
2167
|
};
|
|
2169
|
-
protoOf(IngredientItem).
|
|
2170
|
-
amount = amount === VOID ? this.
|
|
2171
|
-
ingredientId = ingredientId === VOID ? this.
|
|
2172
|
-
name = name === VOID ? this.
|
|
2173
|
-
optional = optional === VOID ? this.
|
|
2174
|
-
prefix = prefix === VOID ? this.
|
|
2175
|
-
suffix = suffix === VOID ? this.
|
|
2176
|
-
template = template === VOID ? this.
|
|
2177
|
-
text = text === VOID ? this.
|
|
2178
|
-
unit = unit === VOID ? this.
|
|
2179
|
-
return $super === VOID ? this.
|
|
2168
|
+
protoOf(IngredientItem).q1g = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit, $super) {
|
|
2169
|
+
amount = amount === VOID ? this.h1g_1 : amount;
|
|
2170
|
+
ingredientId = ingredientId === VOID ? this.i1g_1 : ingredientId;
|
|
2171
|
+
name = name === VOID ? this.j1g_1 : name;
|
|
2172
|
+
optional = optional === VOID ? this.k1g_1 : optional;
|
|
2173
|
+
prefix = prefix === VOID ? this.l1g_1 : prefix;
|
|
2174
|
+
suffix = suffix === VOID ? this.m1g_1 : suffix;
|
|
2175
|
+
template = template === VOID ? this.n1g_1 : template;
|
|
2176
|
+
text = text === VOID ? this.o1g_1 : text;
|
|
2177
|
+
unit = unit === VOID ? this.p1g_1 : unit;
|
|
2178
|
+
return $super === VOID ? this.h1i(amount, ingredientId, name, optional, prefix, suffix, template, text, unit) : $super.h1i.call(this, amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
2180
2179
|
};
|
|
2181
2180
|
protoOf(IngredientItem).toString = function () {
|
|
2182
|
-
return 'IngredientItem(amount=' + toString(this.
|
|
2181
|
+
return 'IngredientItem(amount=' + toString(this.h1g_1) + ', ingredientId=' + this.i1g_1 + ', name=' + this.j1g_1 + ', optional=' + this.k1g_1 + ', prefix=' + this.l1g_1 + ', suffix=' + this.m1g_1 + ', template=' + this.n1g_1 + ', text=' + this.o1g_1 + ', unit=' + this.p1g_1 + ')';
|
|
2183
2182
|
};
|
|
2184
2183
|
protoOf(IngredientItem).hashCode = function () {
|
|
2185
|
-
var result = this.
|
|
2186
|
-
result = imul(result, 31) + (this.
|
|
2187
|
-
result = imul(result, 31) + (this.
|
|
2188
|
-
result = imul(result, 31) + (this.
|
|
2189
|
-
result = imul(result, 31) + (this.
|
|
2190
|
-
result = imul(result, 31) + (this.
|
|
2191
|
-
result = imul(result, 31) + (this.
|
|
2192
|
-
result = imul(result, 31) + (this.
|
|
2193
|
-
result = imul(result, 31) + (this.
|
|
2184
|
+
var result = this.h1g_1 == null ? 0 : this.h1g_1.hashCode();
|
|
2185
|
+
result = imul(result, 31) + (this.i1g_1 == null ? 0 : getStringHashCode(this.i1g_1)) | 0;
|
|
2186
|
+
result = imul(result, 31) + (this.j1g_1 == null ? 0 : getStringHashCode(this.j1g_1)) | 0;
|
|
2187
|
+
result = imul(result, 31) + (this.k1g_1 == null ? 0 : getBooleanHashCode(this.k1g_1)) | 0;
|
|
2188
|
+
result = imul(result, 31) + (this.l1g_1 == null ? 0 : getStringHashCode(this.l1g_1)) | 0;
|
|
2189
|
+
result = imul(result, 31) + (this.m1g_1 == null ? 0 : getStringHashCode(this.m1g_1)) | 0;
|
|
2190
|
+
result = imul(result, 31) + (this.n1g_1 == null ? 0 : getStringHashCode(this.n1g_1)) | 0;
|
|
2191
|
+
result = imul(result, 31) + (this.o1g_1 == null ? 0 : getStringHashCode(this.o1g_1)) | 0;
|
|
2192
|
+
result = imul(result, 31) + (this.p1g_1 == null ? 0 : getStringHashCode(this.p1g_1)) | 0;
|
|
2194
2193
|
return result;
|
|
2195
2194
|
};
|
|
2196
2195
|
protoOf(IngredientItem).equals = function (other) {
|
|
@@ -2198,23 +2197,23 @@
|
|
|
2198
2197
|
return true;
|
|
2199
2198
|
if (!(other instanceof IngredientItem))
|
|
2200
2199
|
return false;
|
|
2201
|
-
if (!equals(this.
|
|
2200
|
+
if (!equals(this.h1g_1, other.h1g_1))
|
|
2202
2201
|
return false;
|
|
2203
|
-
if (!(this.
|
|
2202
|
+
if (!(this.i1g_1 == other.i1g_1))
|
|
2204
2203
|
return false;
|
|
2205
|
-
if (!(this.
|
|
2204
|
+
if (!(this.j1g_1 == other.j1g_1))
|
|
2206
2205
|
return false;
|
|
2207
|
-
if (!(this.
|
|
2206
|
+
if (!(this.k1g_1 == other.k1g_1))
|
|
2208
2207
|
return false;
|
|
2209
|
-
if (!(this.
|
|
2208
|
+
if (!(this.l1g_1 == other.l1g_1))
|
|
2210
2209
|
return false;
|
|
2211
|
-
if (!(this.
|
|
2210
|
+
if (!(this.m1g_1 == other.m1g_1))
|
|
2212
2211
|
return false;
|
|
2213
|
-
if (!(this.
|
|
2212
|
+
if (!(this.n1g_1 == other.n1g_1))
|
|
2214
2213
|
return false;
|
|
2215
|
-
if (!(this.
|
|
2214
|
+
if (!(this.o1g_1 == other.o1g_1))
|
|
2216
2215
|
return false;
|
|
2217
|
-
if (!(this.
|
|
2216
|
+
if (!(this.p1g_1 == other.p1g_1))
|
|
2218
2217
|
return false;
|
|
2219
2218
|
return true;
|
|
2220
2219
|
};
|
|
@@ -2227,63 +2226,63 @@
|
|
|
2227
2226
|
function $serializer_6() {
|
|
2228
2227
|
$serializer_instance_6 = this;
|
|
2229
2228
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Range', this, 2);
|
|
2230
|
-
tmp0_serialDesc.
|
|
2231
|
-
tmp0_serialDesc.
|
|
2232
|
-
this.
|
|
2229
|
+
tmp0_serialDesc.rs('max', true);
|
|
2230
|
+
tmp0_serialDesc.rs('min', true);
|
|
2231
|
+
this.i1i_1 = tmp0_serialDesc;
|
|
2233
2232
|
}
|
|
2234
|
-
protoOf($serializer_6).
|
|
2235
|
-
var tmp0_desc = this.
|
|
2236
|
-
var tmp1_output = encoder.
|
|
2237
|
-
if (tmp1_output.
|
|
2238
|
-
tmp1_output.
|
|
2233
|
+
protoOf($serializer_6).j1i = function (encoder, value) {
|
|
2234
|
+
var tmp0_desc = this.i1i_1;
|
|
2235
|
+
var tmp1_output = encoder.il(tmp0_desc);
|
|
2236
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.k1i_1 == null)) {
|
|
2237
|
+
tmp1_output.an(tmp0_desc, 0, DoubleSerializer_getInstance(), value.k1i_1);
|
|
2239
2238
|
}
|
|
2240
|
-
if (tmp1_output.
|
|
2241
|
-
tmp1_output.
|
|
2239
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.l1i_1 == null)) {
|
|
2240
|
+
tmp1_output.an(tmp0_desc, 1, DoubleSerializer_getInstance(), value.l1i_1);
|
|
2242
2241
|
}
|
|
2243
|
-
tmp1_output.
|
|
2242
|
+
tmp1_output.jl(tmp0_desc);
|
|
2244
2243
|
};
|
|
2245
|
-
protoOf($serializer_6).
|
|
2246
|
-
return this.
|
|
2244
|
+
protoOf($serializer_6).li = function (encoder, value) {
|
|
2245
|
+
return this.j1i(encoder, value instanceof Range ? value : THROW_CCE());
|
|
2247
2246
|
};
|
|
2248
|
-
protoOf($serializer_6).
|
|
2249
|
-
var tmp0_desc = this.
|
|
2247
|
+
protoOf($serializer_6).mi = function (decoder) {
|
|
2248
|
+
var tmp0_desc = this.i1i_1;
|
|
2250
2249
|
var tmp1_flag = true;
|
|
2251
2250
|
var tmp2_index = 0;
|
|
2252
2251
|
var tmp3_bitMask0 = 0;
|
|
2253
2252
|
var tmp4_local0 = null;
|
|
2254
2253
|
var tmp5_local1 = null;
|
|
2255
|
-
var tmp6_input = decoder.
|
|
2256
|
-
if (tmp6_input.
|
|
2257
|
-
tmp4_local0 = tmp6_input.
|
|
2254
|
+
var tmp6_input = decoder.il(tmp0_desc);
|
|
2255
|
+
if (tmp6_input.yl()) {
|
|
2256
|
+
tmp4_local0 = tmp6_input.wl(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
2258
2257
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2259
|
-
tmp5_local1 = tmp6_input.
|
|
2258
|
+
tmp5_local1 = tmp6_input.wl(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1);
|
|
2260
2259
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2261
2260
|
} else
|
|
2262
2261
|
while (tmp1_flag) {
|
|
2263
|
-
tmp2_index = tmp6_input.
|
|
2262
|
+
tmp2_index = tmp6_input.zl(tmp0_desc);
|
|
2264
2263
|
switch (tmp2_index) {
|
|
2265
2264
|
case -1:
|
|
2266
2265
|
tmp1_flag = false;
|
|
2267
2266
|
break;
|
|
2268
2267
|
case 0:
|
|
2269
|
-
tmp4_local0 = tmp6_input.
|
|
2268
|
+
tmp4_local0 = tmp6_input.wl(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
2270
2269
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2271
2270
|
break;
|
|
2272
2271
|
case 1:
|
|
2273
|
-
tmp5_local1 = tmp6_input.
|
|
2272
|
+
tmp5_local1 = tmp6_input.wl(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1);
|
|
2274
2273
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2275
2274
|
break;
|
|
2276
2275
|
default:
|
|
2277
2276
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2278
2277
|
}
|
|
2279
2278
|
}
|
|
2280
|
-
tmp6_input.
|
|
2279
|
+
tmp6_input.jl(tmp0_desc);
|
|
2281
2280
|
return Range_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2282
2281
|
};
|
|
2283
|
-
protoOf($serializer_6).
|
|
2284
|
-
return this.
|
|
2282
|
+
protoOf($serializer_6).ki = function () {
|
|
2283
|
+
return this.i1i_1;
|
|
2285
2284
|
};
|
|
2286
|
-
protoOf($serializer_6).
|
|
2285
|
+
protoOf($serializer_6).ts = function () {
|
|
2287
2286
|
// Inline function 'kotlin.arrayOf' call
|
|
2288
2287
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2289
2288
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2297,16 +2296,16 @@
|
|
|
2297
2296
|
}
|
|
2298
2297
|
function Range_init_$Init$(seen0, max, min, serializationConstructorMarker, $this) {
|
|
2299
2298
|
if (!(0 === (0 & seen0))) {
|
|
2300
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().
|
|
2299
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().i1i_1);
|
|
2301
2300
|
}
|
|
2302
2301
|
if (0 === (seen0 & 1))
|
|
2303
|
-
$this.
|
|
2302
|
+
$this.k1i_1 = null;
|
|
2304
2303
|
else
|
|
2305
|
-
$this.
|
|
2304
|
+
$this.k1i_1 = max;
|
|
2306
2305
|
if (0 === (seen0 & 2))
|
|
2307
|
-
$this.
|
|
2306
|
+
$this.l1i_1 = null;
|
|
2308
2307
|
else
|
|
2309
|
-
$this.
|
|
2308
|
+
$this.l1i_1 = min;
|
|
2310
2309
|
return $this;
|
|
2311
2310
|
}
|
|
2312
2311
|
function Range_init_$Create$(seen0, max, min, serializationConstructorMarker) {
|
|
@@ -2315,15 +2314,15 @@
|
|
|
2315
2314
|
function Range(max, min) {
|
|
2316
2315
|
max = max === VOID ? null : max;
|
|
2317
2316
|
min = min === VOID ? null : min;
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2317
|
+
this.k1i_1 = max;
|
|
2318
|
+
this.l1i_1 = min;
|
|
2320
2319
|
}
|
|
2321
2320
|
protoOf(Range).toString = function () {
|
|
2322
|
-
return 'Range(max=' + this.
|
|
2321
|
+
return 'Range(max=' + this.k1i_1 + ', min=' + this.l1i_1 + ')';
|
|
2323
2322
|
};
|
|
2324
2323
|
protoOf(Range).hashCode = function () {
|
|
2325
|
-
var result = this.
|
|
2326
|
-
result = imul(result, 31) + (this.
|
|
2324
|
+
var result = this.k1i_1 == null ? 0 : getNumberHashCode(this.k1i_1);
|
|
2325
|
+
result = imul(result, 31) + (this.l1i_1 == null ? 0 : getNumberHashCode(this.l1i_1)) | 0;
|
|
2327
2326
|
return result;
|
|
2328
2327
|
};
|
|
2329
2328
|
protoOf(Range).equals = function (other) {
|
|
@@ -2331,9 +2330,9 @@
|
|
|
2331
2330
|
return true;
|
|
2332
2331
|
if (!(other instanceof Range))
|
|
2333
2332
|
return false;
|
|
2334
|
-
if (!equals(this.
|
|
2333
|
+
if (!equals(this.k1i_1, other.k1i_1))
|
|
2335
2334
|
return false;
|
|
2336
|
-
if (!equals(this.
|
|
2335
|
+
if (!equals(this.l1i_1, other.l1i_1))
|
|
2337
2336
|
return false;
|
|
2338
2337
|
return true;
|
|
2339
2338
|
};
|
|
@@ -2347,7 +2346,7 @@
|
|
|
2347
2346
|
// Inline function 'kotlin.arrayOf' call
|
|
2348
2347
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2349
2348
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2350
|
-
tmp.
|
|
2349
|
+
tmp.m1i_1 = [null, null, lazy(tmp_0, Instruction$Companion$$childSerializers$_anonymous__sbbefw), null];
|
|
2351
2350
|
}
|
|
2352
2351
|
var Companion_instance_6;
|
|
2353
2352
|
function Companion_getInstance_5() {
|
|
@@ -2358,33 +2357,33 @@
|
|
|
2358
2357
|
function $serializer_7() {
|
|
2359
2358
|
$serializer_instance_7 = this;
|
|
2360
2359
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Instruction', this, 4);
|
|
2361
|
-
tmp0_serialDesc.
|
|
2362
|
-
tmp0_serialDesc.
|
|
2363
|
-
tmp0_serialDesc.
|
|
2364
|
-
tmp0_serialDesc.
|
|
2365
|
-
this.
|
|
2360
|
+
tmp0_serialDesc.rs('description', false);
|
|
2361
|
+
tmp0_serialDesc.rs('descriptionTemplate', true);
|
|
2362
|
+
tmp0_serialDesc.rs('images', true);
|
|
2363
|
+
tmp0_serialDesc.rs('stepNumber', true);
|
|
2364
|
+
this.n1i_1 = tmp0_serialDesc;
|
|
2366
2365
|
}
|
|
2367
|
-
protoOf($serializer_7).
|
|
2368
|
-
var tmp0_desc = this.
|
|
2369
|
-
var tmp1_output = encoder.
|
|
2370
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
2371
|
-
tmp1_output.
|
|
2372
|
-
if (tmp1_output.
|
|
2373
|
-
tmp1_output.
|
|
2366
|
+
protoOf($serializer_7).o1i = function (encoder, value) {
|
|
2367
|
+
var tmp0_desc = this.n1i_1;
|
|
2368
|
+
var tmp1_output = encoder.il(tmp0_desc);
|
|
2369
|
+
var tmp2_cached = Companion_getInstance_5().m1i_1;
|
|
2370
|
+
tmp1_output.wm(tmp0_desc, 0, value.r1g_1);
|
|
2371
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.s1g_1 == null)) {
|
|
2372
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.s1g_1);
|
|
2374
2373
|
}
|
|
2375
|
-
if (tmp1_output.
|
|
2376
|
-
tmp1_output.
|
|
2374
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.t1g_1 == null)) {
|
|
2375
|
+
tmp1_output.an(tmp0_desc, 2, tmp2_cached[2].h2(), value.t1g_1);
|
|
2377
2376
|
}
|
|
2378
|
-
if (tmp1_output.
|
|
2379
|
-
tmp1_output.
|
|
2377
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.u1g_1 == null)) {
|
|
2378
|
+
tmp1_output.an(tmp0_desc, 3, DoubleSerializer_getInstance(), value.u1g_1);
|
|
2380
2379
|
}
|
|
2381
|
-
tmp1_output.
|
|
2380
|
+
tmp1_output.jl(tmp0_desc);
|
|
2382
2381
|
};
|
|
2383
|
-
protoOf($serializer_7).
|
|
2384
|
-
return this.
|
|
2382
|
+
protoOf($serializer_7).li = function (encoder, value) {
|
|
2383
|
+
return this.o1i(encoder, value instanceof Instruction ? value : THROW_CCE());
|
|
2385
2384
|
};
|
|
2386
|
-
protoOf($serializer_7).
|
|
2387
|
-
var tmp0_desc = this.
|
|
2385
|
+
protoOf($serializer_7).mi = function (decoder) {
|
|
2386
|
+
var tmp0_desc = this.n1i_1;
|
|
2388
2387
|
var tmp1_flag = true;
|
|
2389
2388
|
var tmp2_index = 0;
|
|
2390
2389
|
var tmp3_bitMask0 = 0;
|
|
@@ -2392,56 +2391,56 @@
|
|
|
2392
2391
|
var tmp5_local1 = null;
|
|
2393
2392
|
var tmp6_local2 = null;
|
|
2394
2393
|
var tmp7_local3 = null;
|
|
2395
|
-
var tmp8_input = decoder.
|
|
2396
|
-
var tmp9_cached = Companion_getInstance_5().
|
|
2397
|
-
if (tmp8_input.
|
|
2398
|
-
tmp4_local0 = tmp8_input.
|
|
2394
|
+
var tmp8_input = decoder.il(tmp0_desc);
|
|
2395
|
+
var tmp9_cached = Companion_getInstance_5().m1i_1;
|
|
2396
|
+
if (tmp8_input.yl()) {
|
|
2397
|
+
tmp4_local0 = tmp8_input.sl(tmp0_desc, 0);
|
|
2399
2398
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2400
|
-
tmp5_local1 = tmp8_input.
|
|
2399
|
+
tmp5_local1 = tmp8_input.wl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2401
2400
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2402
|
-
tmp6_local2 = tmp8_input.
|
|
2401
|
+
tmp6_local2 = tmp8_input.wl(tmp0_desc, 2, tmp9_cached[2].h2(), tmp6_local2);
|
|
2403
2402
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2404
|
-
tmp7_local3 = tmp8_input.
|
|
2403
|
+
tmp7_local3 = tmp8_input.wl(tmp0_desc, 3, DoubleSerializer_getInstance(), tmp7_local3);
|
|
2405
2404
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2406
2405
|
} else
|
|
2407
2406
|
while (tmp1_flag) {
|
|
2408
|
-
tmp2_index = tmp8_input.
|
|
2407
|
+
tmp2_index = tmp8_input.zl(tmp0_desc);
|
|
2409
2408
|
switch (tmp2_index) {
|
|
2410
2409
|
case -1:
|
|
2411
2410
|
tmp1_flag = false;
|
|
2412
2411
|
break;
|
|
2413
2412
|
case 0:
|
|
2414
|
-
tmp4_local0 = tmp8_input.
|
|
2413
|
+
tmp4_local0 = tmp8_input.sl(tmp0_desc, 0);
|
|
2415
2414
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2416
2415
|
break;
|
|
2417
2416
|
case 1:
|
|
2418
|
-
tmp5_local1 = tmp8_input.
|
|
2417
|
+
tmp5_local1 = tmp8_input.wl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2419
2418
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2420
2419
|
break;
|
|
2421
2420
|
case 2:
|
|
2422
|
-
tmp6_local2 = tmp8_input.
|
|
2421
|
+
tmp6_local2 = tmp8_input.wl(tmp0_desc, 2, tmp9_cached[2].h2(), tmp6_local2);
|
|
2423
2422
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2424
2423
|
break;
|
|
2425
2424
|
case 3:
|
|
2426
|
-
tmp7_local3 = tmp8_input.
|
|
2425
|
+
tmp7_local3 = tmp8_input.wl(tmp0_desc, 3, DoubleSerializer_getInstance(), tmp7_local3);
|
|
2427
2426
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2428
2427
|
break;
|
|
2429
2428
|
default:
|
|
2430
2429
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2431
2430
|
}
|
|
2432
2431
|
}
|
|
2433
|
-
tmp8_input.
|
|
2432
|
+
tmp8_input.jl(tmp0_desc);
|
|
2434
2433
|
return Instruction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2435
2434
|
};
|
|
2436
|
-
protoOf($serializer_7).
|
|
2437
|
-
return this.
|
|
2435
|
+
protoOf($serializer_7).ki = function () {
|
|
2436
|
+
return this.n1i_1;
|
|
2438
2437
|
};
|
|
2439
|
-
protoOf($serializer_7).
|
|
2440
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
2438
|
+
protoOf($serializer_7).ts = function () {
|
|
2439
|
+
var tmp0_cached = Companion_getInstance_5().m1i_1;
|
|
2441
2440
|
// Inline function 'kotlin.arrayOf' call
|
|
2442
2441
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2443
2442
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2444
|
-
return [StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[2].
|
|
2443
|
+
return [StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[2].h2()), get_nullable(DoubleSerializer_getInstance())];
|
|
2445
2444
|
};
|
|
2446
2445
|
var $serializer_instance_7;
|
|
2447
2446
|
function $serializer_getInstance_7() {
|
|
@@ -2451,21 +2450,21 @@
|
|
|
2451
2450
|
}
|
|
2452
2451
|
function Instruction_init_$Init$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker, $this) {
|
|
2453
2452
|
if (!(1 === (1 & seen0))) {
|
|
2454
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_7().
|
|
2453
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_7().n1i_1);
|
|
2455
2454
|
}
|
|
2456
|
-
$this.
|
|
2455
|
+
$this.r1g_1 = description;
|
|
2457
2456
|
if (0 === (seen0 & 2))
|
|
2458
|
-
$this.
|
|
2457
|
+
$this.s1g_1 = null;
|
|
2459
2458
|
else
|
|
2460
|
-
$this.
|
|
2459
|
+
$this.s1g_1 = descriptionTemplate;
|
|
2461
2460
|
if (0 === (seen0 & 4))
|
|
2462
|
-
$this.
|
|
2461
|
+
$this.t1g_1 = null;
|
|
2463
2462
|
else
|
|
2464
|
-
$this.
|
|
2463
|
+
$this.t1g_1 = images;
|
|
2465
2464
|
if (0 === (seen0 & 8))
|
|
2466
|
-
$this.
|
|
2465
|
+
$this.u1g_1 = null;
|
|
2467
2466
|
else
|
|
2468
|
-
$this.
|
|
2467
|
+
$this.u1g_1 = stepNumber;
|
|
2469
2468
|
return $this;
|
|
2470
2469
|
}
|
|
2471
2470
|
function Instruction_init_$Create$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker) {
|
|
@@ -2476,29 +2475,29 @@
|
|
|
2476
2475
|
descriptionTemplate = descriptionTemplate === VOID ? null : descriptionTemplate;
|
|
2477
2476
|
images = images === VOID ? null : images;
|
|
2478
2477
|
stepNumber = stepNumber === VOID ? null : stepNumber;
|
|
2479
|
-
this.
|
|
2480
|
-
this.
|
|
2481
|
-
this.
|
|
2482
|
-
this.
|
|
2478
|
+
this.r1g_1 = description;
|
|
2479
|
+
this.s1g_1 = descriptionTemplate;
|
|
2480
|
+
this.t1g_1 = images;
|
|
2481
|
+
this.u1g_1 = stepNumber;
|
|
2483
2482
|
}
|
|
2484
|
-
protoOf(Instruction).
|
|
2483
|
+
protoOf(Instruction).p1i = function (description, descriptionTemplate, images, stepNumber) {
|
|
2485
2484
|
return new Instruction(description, descriptionTemplate, images, stepNumber);
|
|
2486
2485
|
};
|
|
2487
|
-
protoOf(Instruction).
|
|
2488
|
-
description = description === VOID ? this.
|
|
2489
|
-
descriptionTemplate = descriptionTemplate === VOID ? this.
|
|
2490
|
-
images = images === VOID ? this.
|
|
2491
|
-
stepNumber = stepNumber === VOID ? this.
|
|
2492
|
-
return $super === VOID ? this.
|
|
2486
|
+
protoOf(Instruction).v1g = function (description, descriptionTemplate, images, stepNumber, $super) {
|
|
2487
|
+
description = description === VOID ? this.r1g_1 : description;
|
|
2488
|
+
descriptionTemplate = descriptionTemplate === VOID ? this.s1g_1 : descriptionTemplate;
|
|
2489
|
+
images = images === VOID ? this.t1g_1 : images;
|
|
2490
|
+
stepNumber = stepNumber === VOID ? this.u1g_1 : stepNumber;
|
|
2491
|
+
return $super === VOID ? this.p1i(description, descriptionTemplate, images, stepNumber) : $super.p1i.call(this, description, descriptionTemplate, images, stepNumber);
|
|
2493
2492
|
};
|
|
2494
2493
|
protoOf(Instruction).toString = function () {
|
|
2495
|
-
return 'Instruction(description=' + this.
|
|
2494
|
+
return 'Instruction(description=' + this.r1g_1 + ', descriptionTemplate=' + this.s1g_1 + ', images=' + toString(this.t1g_1) + ', stepNumber=' + this.u1g_1 + ')';
|
|
2496
2495
|
};
|
|
2497
2496
|
protoOf(Instruction).hashCode = function () {
|
|
2498
|
-
var result = getStringHashCode(this.
|
|
2499
|
-
result = imul(result, 31) + (this.
|
|
2500
|
-
result = imul(result, 31) + (this.
|
|
2501
|
-
result = imul(result, 31) + (this.
|
|
2497
|
+
var result = getStringHashCode(this.r1g_1);
|
|
2498
|
+
result = imul(result, 31) + (this.s1g_1 == null ? 0 : getStringHashCode(this.s1g_1)) | 0;
|
|
2499
|
+
result = imul(result, 31) + (this.t1g_1 == null ? 0 : hashCode(this.t1g_1)) | 0;
|
|
2500
|
+
result = imul(result, 31) + (this.u1g_1 == null ? 0 : getNumberHashCode(this.u1g_1)) | 0;
|
|
2502
2501
|
return result;
|
|
2503
2502
|
};
|
|
2504
2503
|
protoOf(Instruction).equals = function (other) {
|
|
@@ -2506,85 +2505,85 @@
|
|
|
2506
2505
|
return true;
|
|
2507
2506
|
if (!(other instanceof Instruction))
|
|
2508
2507
|
return false;
|
|
2509
|
-
if (!(this.
|
|
2508
|
+
if (!(this.r1g_1 === other.r1g_1))
|
|
2510
2509
|
return false;
|
|
2511
|
-
if (!(this.
|
|
2510
|
+
if (!(this.s1g_1 == other.s1g_1))
|
|
2512
2511
|
return false;
|
|
2513
|
-
if (!equals(this.
|
|
2512
|
+
if (!equals(this.t1g_1, other.t1g_1))
|
|
2514
2513
|
return false;
|
|
2515
|
-
if (!equals(this.
|
|
2514
|
+
if (!equals(this.u1g_1, other.u1g_1))
|
|
2516
2515
|
return false;
|
|
2517
2516
|
return true;
|
|
2518
2517
|
};
|
|
2519
2518
|
function $serializer_8() {
|
|
2520
2519
|
$serializer_instance_8 = this;
|
|
2521
2520
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Serves', this, 3);
|
|
2522
|
-
tmp0_serialDesc.
|
|
2523
|
-
tmp0_serialDesc.
|
|
2524
|
-
tmp0_serialDesc.
|
|
2525
|
-
this.
|
|
2521
|
+
tmp0_serialDesc.rs('amount', true);
|
|
2522
|
+
tmp0_serialDesc.rs('text', true);
|
|
2523
|
+
tmp0_serialDesc.rs('unit', false);
|
|
2524
|
+
this.q1i_1 = tmp0_serialDesc;
|
|
2526
2525
|
}
|
|
2527
|
-
protoOf($serializer_8).
|
|
2528
|
-
var tmp0_desc = this.
|
|
2529
|
-
var tmp1_output = encoder.
|
|
2530
|
-
if (tmp1_output.
|
|
2531
|
-
tmp1_output.
|
|
2526
|
+
protoOf($serializer_8).r1i = function (encoder, value) {
|
|
2527
|
+
var tmp0_desc = this.q1i_1;
|
|
2528
|
+
var tmp1_output = encoder.il(tmp0_desc);
|
|
2529
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.s1i_1 == null)) {
|
|
2530
|
+
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.s1i_1);
|
|
2532
2531
|
}
|
|
2533
|
-
if (tmp1_output.
|
|
2534
|
-
tmp1_output.
|
|
2532
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.t1i_1 == null)) {
|
|
2533
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.t1i_1);
|
|
2535
2534
|
}
|
|
2536
|
-
tmp1_output.
|
|
2537
|
-
tmp1_output.
|
|
2535
|
+
tmp1_output.wm(tmp0_desc, 2, value.u1i_1);
|
|
2536
|
+
tmp1_output.jl(tmp0_desc);
|
|
2538
2537
|
};
|
|
2539
|
-
protoOf($serializer_8).
|
|
2540
|
-
return this.
|
|
2538
|
+
protoOf($serializer_8).li = function (encoder, value) {
|
|
2539
|
+
return this.r1i(encoder, value instanceof Serves ? value : THROW_CCE());
|
|
2541
2540
|
};
|
|
2542
|
-
protoOf($serializer_8).
|
|
2543
|
-
var tmp0_desc = this.
|
|
2541
|
+
protoOf($serializer_8).mi = function (decoder) {
|
|
2542
|
+
var tmp0_desc = this.q1i_1;
|
|
2544
2543
|
var tmp1_flag = true;
|
|
2545
2544
|
var tmp2_index = 0;
|
|
2546
2545
|
var tmp3_bitMask0 = 0;
|
|
2547
2546
|
var tmp4_local0 = null;
|
|
2548
2547
|
var tmp5_local1 = null;
|
|
2549
2548
|
var tmp6_local2 = null;
|
|
2550
|
-
var tmp7_input = decoder.
|
|
2551
|
-
if (tmp7_input.
|
|
2552
|
-
tmp4_local0 = tmp7_input.
|
|
2549
|
+
var tmp7_input = decoder.il(tmp0_desc);
|
|
2550
|
+
if (tmp7_input.yl()) {
|
|
2551
|
+
tmp4_local0 = tmp7_input.wl(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2553
2552
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2554
|
-
tmp5_local1 = tmp7_input.
|
|
2553
|
+
tmp5_local1 = tmp7_input.wl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2555
2554
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2556
|
-
tmp6_local2 = tmp7_input.
|
|
2555
|
+
tmp6_local2 = tmp7_input.sl(tmp0_desc, 2);
|
|
2557
2556
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2558
2557
|
} else
|
|
2559
2558
|
while (tmp1_flag) {
|
|
2560
|
-
tmp2_index = tmp7_input.
|
|
2559
|
+
tmp2_index = tmp7_input.zl(tmp0_desc);
|
|
2561
2560
|
switch (tmp2_index) {
|
|
2562
2561
|
case -1:
|
|
2563
2562
|
tmp1_flag = false;
|
|
2564
2563
|
break;
|
|
2565
2564
|
case 0:
|
|
2566
|
-
tmp4_local0 = tmp7_input.
|
|
2565
|
+
tmp4_local0 = tmp7_input.wl(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2567
2566
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2568
2567
|
break;
|
|
2569
2568
|
case 1:
|
|
2570
|
-
tmp5_local1 = tmp7_input.
|
|
2569
|
+
tmp5_local1 = tmp7_input.wl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2571
2570
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2572
2571
|
break;
|
|
2573
2572
|
case 2:
|
|
2574
|
-
tmp6_local2 = tmp7_input.
|
|
2573
|
+
tmp6_local2 = tmp7_input.sl(tmp0_desc, 2);
|
|
2575
2574
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2576
2575
|
break;
|
|
2577
2576
|
default:
|
|
2578
2577
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2579
2578
|
}
|
|
2580
2579
|
}
|
|
2581
|
-
tmp7_input.
|
|
2580
|
+
tmp7_input.jl(tmp0_desc);
|
|
2582
2581
|
return Serves_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2583
2582
|
};
|
|
2584
|
-
protoOf($serializer_8).
|
|
2585
|
-
return this.
|
|
2583
|
+
protoOf($serializer_8).ki = function () {
|
|
2584
|
+
return this.q1i_1;
|
|
2586
2585
|
};
|
|
2587
|
-
protoOf($serializer_8).
|
|
2586
|
+
protoOf($serializer_8).ts = function () {
|
|
2588
2587
|
// Inline function 'kotlin.arrayOf' call
|
|
2589
2588
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2590
2589
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2598,17 +2597,17 @@
|
|
|
2598
2597
|
}
|
|
2599
2598
|
function Serves_init_$Init$(seen0, amount, text, unit, serializationConstructorMarker, $this) {
|
|
2600
2599
|
if (!(4 === (4 & seen0))) {
|
|
2601
|
-
throwMissingFieldException(seen0, 4, $serializer_getInstance_8().
|
|
2600
|
+
throwMissingFieldException(seen0, 4, $serializer_getInstance_8().q1i_1);
|
|
2602
2601
|
}
|
|
2603
2602
|
if (0 === (seen0 & 1))
|
|
2604
|
-
$this.
|
|
2603
|
+
$this.s1i_1 = null;
|
|
2605
2604
|
else
|
|
2606
|
-
$this.
|
|
2605
|
+
$this.s1i_1 = amount;
|
|
2607
2606
|
if (0 === (seen0 & 2))
|
|
2608
|
-
$this.
|
|
2607
|
+
$this.t1i_1 = null;
|
|
2609
2608
|
else
|
|
2610
|
-
$this.
|
|
2611
|
-
$this.
|
|
2609
|
+
$this.t1i_1 = text;
|
|
2610
|
+
$this.u1i_1 = unit;
|
|
2612
2611
|
return $this;
|
|
2613
2612
|
}
|
|
2614
2613
|
function Serves_init_$Create$(seen0, amount, text, unit, serializationConstructorMarker) {
|
|
@@ -2617,12 +2616,12 @@
|
|
|
2617
2616
|
function Serves() {
|
|
2618
2617
|
}
|
|
2619
2618
|
protoOf(Serves).toString = function () {
|
|
2620
|
-
return 'Serves(amount=' + toString(this.
|
|
2619
|
+
return 'Serves(amount=' + toString(this.s1i_1) + ', text=' + this.t1i_1 + ', unit=' + this.u1i_1 + ')';
|
|
2621
2620
|
};
|
|
2622
2621
|
protoOf(Serves).hashCode = function () {
|
|
2623
|
-
var result = this.
|
|
2624
|
-
result = imul(result, 31) + (this.
|
|
2625
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2622
|
+
var result = this.s1i_1 == null ? 0 : this.s1i_1.hashCode();
|
|
2623
|
+
result = imul(result, 31) + (this.t1i_1 == null ? 0 : getStringHashCode(this.t1i_1)) | 0;
|
|
2624
|
+
result = imul(result, 31) + getStringHashCode(this.u1i_1) | 0;
|
|
2626
2625
|
return result;
|
|
2627
2626
|
};
|
|
2628
2627
|
protoOf(Serves).equals = function (other) {
|
|
@@ -2630,11 +2629,11 @@
|
|
|
2630
2629
|
return true;
|
|
2631
2630
|
if (!(other instanceof Serves))
|
|
2632
2631
|
return false;
|
|
2633
|
-
if (!equals(this.
|
|
2632
|
+
if (!equals(this.s1i_1, other.s1i_1))
|
|
2634
2633
|
return false;
|
|
2635
|
-
if (!(this.
|
|
2634
|
+
if (!(this.t1i_1 == other.t1i_1))
|
|
2636
2635
|
return false;
|
|
2637
|
-
if (!(this.
|
|
2636
|
+
if (!(this.u1i_1 === other.u1i_1))
|
|
2638
2637
|
return false;
|
|
2639
2638
|
return true;
|
|
2640
2639
|
};
|
|
@@ -2647,74 +2646,74 @@
|
|
|
2647
2646
|
function $serializer_9() {
|
|
2648
2647
|
$serializer_instance_9 = this;
|
|
2649
2648
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Timing', this, 3);
|
|
2650
|
-
tmp0_serialDesc.
|
|
2651
|
-
tmp0_serialDesc.
|
|
2652
|
-
tmp0_serialDesc.
|
|
2653
|
-
this.
|
|
2649
|
+
tmp0_serialDesc.rs('durationInMins', true);
|
|
2650
|
+
tmp0_serialDesc.rs('qualifier', true);
|
|
2651
|
+
tmp0_serialDesc.rs('text', true);
|
|
2652
|
+
this.v1i_1 = tmp0_serialDesc;
|
|
2654
2653
|
}
|
|
2655
|
-
protoOf($serializer_9).
|
|
2656
|
-
var tmp0_desc = this.
|
|
2657
|
-
var tmp1_output = encoder.
|
|
2658
|
-
if (tmp1_output.
|
|
2659
|
-
tmp1_output.
|
|
2654
|
+
protoOf($serializer_9).w1i = function (encoder, value) {
|
|
2655
|
+
var tmp0_desc = this.v1i_1;
|
|
2656
|
+
var tmp1_output = encoder.il(tmp0_desc);
|
|
2657
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.x1i_1 == null)) {
|
|
2658
|
+
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.x1i_1);
|
|
2660
2659
|
}
|
|
2661
|
-
if (tmp1_output.
|
|
2662
|
-
tmp1_output.
|
|
2660
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.y1i_1 == null)) {
|
|
2661
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.y1i_1);
|
|
2663
2662
|
}
|
|
2664
|
-
if (tmp1_output.
|
|
2665
|
-
tmp1_output.
|
|
2663
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.z1i_1 == null)) {
|
|
2664
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.z1i_1);
|
|
2666
2665
|
}
|
|
2667
|
-
tmp1_output.
|
|
2666
|
+
tmp1_output.jl(tmp0_desc);
|
|
2668
2667
|
};
|
|
2669
|
-
protoOf($serializer_9).
|
|
2670
|
-
return this.
|
|
2668
|
+
protoOf($serializer_9).li = function (encoder, value) {
|
|
2669
|
+
return this.w1i(encoder, value instanceof Timing ? value : THROW_CCE());
|
|
2671
2670
|
};
|
|
2672
|
-
protoOf($serializer_9).
|
|
2673
|
-
var tmp0_desc = this.
|
|
2671
|
+
protoOf($serializer_9).mi = function (decoder) {
|
|
2672
|
+
var tmp0_desc = this.v1i_1;
|
|
2674
2673
|
var tmp1_flag = true;
|
|
2675
2674
|
var tmp2_index = 0;
|
|
2676
2675
|
var tmp3_bitMask0 = 0;
|
|
2677
2676
|
var tmp4_local0 = null;
|
|
2678
2677
|
var tmp5_local1 = null;
|
|
2679
2678
|
var tmp6_local2 = null;
|
|
2680
|
-
var tmp7_input = decoder.
|
|
2681
|
-
if (tmp7_input.
|
|
2682
|
-
tmp4_local0 = tmp7_input.
|
|
2679
|
+
var tmp7_input = decoder.il(tmp0_desc);
|
|
2680
|
+
if (tmp7_input.yl()) {
|
|
2681
|
+
tmp4_local0 = tmp7_input.wl(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2683
2682
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2684
|
-
tmp5_local1 = tmp7_input.
|
|
2683
|
+
tmp5_local1 = tmp7_input.wl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2685
2684
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2686
|
-
tmp6_local2 = tmp7_input.
|
|
2685
|
+
tmp6_local2 = tmp7_input.wl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2687
2686
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2688
2687
|
} else
|
|
2689
2688
|
while (tmp1_flag) {
|
|
2690
|
-
tmp2_index = tmp7_input.
|
|
2689
|
+
tmp2_index = tmp7_input.zl(tmp0_desc);
|
|
2691
2690
|
switch (tmp2_index) {
|
|
2692
2691
|
case -1:
|
|
2693
2692
|
tmp1_flag = false;
|
|
2694
2693
|
break;
|
|
2695
2694
|
case 0:
|
|
2696
|
-
tmp4_local0 = tmp7_input.
|
|
2695
|
+
tmp4_local0 = tmp7_input.wl(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2697
2696
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2698
2697
|
break;
|
|
2699
2698
|
case 1:
|
|
2700
|
-
tmp5_local1 = tmp7_input.
|
|
2699
|
+
tmp5_local1 = tmp7_input.wl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2701
2700
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2702
2701
|
break;
|
|
2703
2702
|
case 2:
|
|
2704
|
-
tmp6_local2 = tmp7_input.
|
|
2703
|
+
tmp6_local2 = tmp7_input.wl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2705
2704
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2706
2705
|
break;
|
|
2707
2706
|
default:
|
|
2708
2707
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2709
2708
|
}
|
|
2710
2709
|
}
|
|
2711
|
-
tmp7_input.
|
|
2710
|
+
tmp7_input.jl(tmp0_desc);
|
|
2712
2711
|
return Timing_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2713
2712
|
};
|
|
2714
|
-
protoOf($serializer_9).
|
|
2715
|
-
return this.
|
|
2713
|
+
protoOf($serializer_9).ki = function () {
|
|
2714
|
+
return this.v1i_1;
|
|
2716
2715
|
};
|
|
2717
|
-
protoOf($serializer_9).
|
|
2716
|
+
protoOf($serializer_9).ts = function () {
|
|
2718
2717
|
// Inline function 'kotlin.arrayOf' call
|
|
2719
2718
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2720
2719
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2728,20 +2727,20 @@
|
|
|
2728
2727
|
}
|
|
2729
2728
|
function Timing_init_$Init$(seen0, durationInMins, qualifier, text, serializationConstructorMarker, $this) {
|
|
2730
2729
|
if (!(0 === (0 & seen0))) {
|
|
2731
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().
|
|
2730
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().v1i_1);
|
|
2732
2731
|
}
|
|
2733
2732
|
if (0 === (seen0 & 1))
|
|
2734
|
-
$this.
|
|
2733
|
+
$this.x1i_1 = null;
|
|
2735
2734
|
else
|
|
2736
|
-
$this.
|
|
2735
|
+
$this.x1i_1 = durationInMins;
|
|
2737
2736
|
if (0 === (seen0 & 2))
|
|
2738
|
-
$this.
|
|
2737
|
+
$this.y1i_1 = null;
|
|
2739
2738
|
else
|
|
2740
|
-
$this.
|
|
2739
|
+
$this.y1i_1 = qualifier;
|
|
2741
2740
|
if (0 === (seen0 & 4))
|
|
2742
|
-
$this.
|
|
2741
|
+
$this.z1i_1 = null;
|
|
2743
2742
|
else
|
|
2744
|
-
$this.
|
|
2743
|
+
$this.z1i_1 = text;
|
|
2745
2744
|
return $this;
|
|
2746
2745
|
}
|
|
2747
2746
|
function Timing_init_$Create$(seen0, durationInMins, qualifier, text, serializationConstructorMarker) {
|
|
@@ -2751,17 +2750,17 @@
|
|
|
2751
2750
|
durationInMins = durationInMins === VOID ? null : durationInMins;
|
|
2752
2751
|
qualifier = qualifier === VOID ? null : qualifier;
|
|
2753
2752
|
text = text === VOID ? null : text;
|
|
2754
|
-
this.
|
|
2755
|
-
this.
|
|
2756
|
-
this.
|
|
2753
|
+
this.x1i_1 = durationInMins;
|
|
2754
|
+
this.y1i_1 = qualifier;
|
|
2755
|
+
this.z1i_1 = text;
|
|
2757
2756
|
}
|
|
2758
2757
|
protoOf(Timing).toString = function () {
|
|
2759
|
-
return 'Timing(durationInMins=' + toString(this.
|
|
2758
|
+
return 'Timing(durationInMins=' + toString(this.x1i_1) + ', qualifier=' + this.y1i_1 + ', text=' + this.z1i_1 + ')';
|
|
2760
2759
|
};
|
|
2761
2760
|
protoOf(Timing).hashCode = function () {
|
|
2762
|
-
var result = this.
|
|
2763
|
-
result = imul(result, 31) + (this.
|
|
2764
|
-
result = imul(result, 31) + (this.
|
|
2761
|
+
var result = this.x1i_1 == null ? 0 : this.x1i_1.hashCode();
|
|
2762
|
+
result = imul(result, 31) + (this.y1i_1 == null ? 0 : getStringHashCode(this.y1i_1)) | 0;
|
|
2763
|
+
result = imul(result, 31) + (this.z1i_1 == null ? 0 : getStringHashCode(this.z1i_1)) | 0;
|
|
2765
2764
|
return result;
|
|
2766
2765
|
};
|
|
2767
2766
|
protoOf(Timing).equals = function (other) {
|
|
@@ -2769,29 +2768,29 @@
|
|
|
2769
2768
|
return true;
|
|
2770
2769
|
if (!(other instanceof Timing))
|
|
2771
2770
|
return false;
|
|
2772
|
-
if (!equals(this.
|
|
2771
|
+
if (!equals(this.x1i_1, other.x1i_1))
|
|
2773
2772
|
return false;
|
|
2774
|
-
if (!(this.
|
|
2773
|
+
if (!(this.y1i_1 == other.y1i_1))
|
|
2775
2774
|
return false;
|
|
2776
|
-
if (!(this.
|
|
2775
|
+
if (!(this.z1i_1 == other.z1i_1))
|
|
2777
2776
|
return false;
|
|
2778
2777
|
return true;
|
|
2779
2778
|
};
|
|
2780
2779
|
function ParsedTemplate(elements) {
|
|
2781
|
-
this.
|
|
2780
|
+
this.h1f_1 = elements;
|
|
2782
2781
|
}
|
|
2783
2782
|
protoOf(ParsedTemplate).toString = function () {
|
|
2784
|
-
return 'ParsedTemplate(elements=' + toString_0(this.
|
|
2783
|
+
return 'ParsedTemplate(elements=' + toString_0(this.h1f_1) + ')';
|
|
2785
2784
|
};
|
|
2786
2785
|
protoOf(ParsedTemplate).hashCode = function () {
|
|
2787
|
-
return hashCode(this.
|
|
2786
|
+
return hashCode(this.h1f_1);
|
|
2788
2787
|
};
|
|
2789
2788
|
protoOf(ParsedTemplate).equals = function (other) {
|
|
2790
2789
|
if (this === other)
|
|
2791
2790
|
return true;
|
|
2792
2791
|
if (!(other instanceof ParsedTemplate))
|
|
2793
2792
|
return false;
|
|
2794
|
-
if (!equals(this.
|
|
2793
|
+
if (!equals(this.h1f_1, other.h1f_1))
|
|
2795
2794
|
return false;
|
|
2796
2795
|
return true;
|
|
2797
2796
|
};
|
|
@@ -2807,64 +2806,64 @@
|
|
|
2807
2806
|
var parts = ArrayList_init_$Create$_0();
|
|
2808
2807
|
var lastEnd = 0;
|
|
2809
2808
|
// Inline function 'kotlin.sequences.forEach' call
|
|
2810
|
-
var _iterator__ex2g4s = pattern.
|
|
2811
|
-
while (_iterator__ex2g4s.
|
|
2812
|
-
var element = _iterator__ex2g4s.
|
|
2813
|
-
if (element.
|
|
2814
|
-
var textPart = substring(template, lastEnd, element.
|
|
2809
|
+
var _iterator__ex2g4s = pattern.wa(template).s();
|
|
2810
|
+
while (_iterator__ex2g4s.t()) {
|
|
2811
|
+
var element = _iterator__ex2g4s.u();
|
|
2812
|
+
if (element.ya().e1_1 > lastEnd) {
|
|
2813
|
+
var textPart = substring(template, lastEnd, element.ya().e1_1);
|
|
2815
2814
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2816
2815
|
if (charSequenceLength(textPart) > 0) {
|
|
2817
|
-
parts.
|
|
2816
|
+
parts.w(new TemplateConst(textPart));
|
|
2818
2817
|
}
|
|
2819
2818
|
}
|
|
2820
2819
|
try {
|
|
2821
|
-
var jsonObj = get_jsonObject(Default_getInstance().
|
|
2822
|
-
if (jsonObj.
|
|
2820
|
+
var jsonObj = get_jsonObject(Default_getInstance().w11(element.h2()));
|
|
2821
|
+
if (jsonObj.l2().z('min')) {
|
|
2823
2822
|
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
2824
2823
|
var this_0 = get_tolerantJson();
|
|
2825
2824
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2826
|
-
var this_1 = this_0.
|
|
2825
|
+
var this_1 = this_0.xl();
|
|
2827
2826
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2828
2827
|
var this_2 = serializer(this_1, createKType(getKClass(QuantityPlaceholder), arrayOf([]), false));
|
|
2829
2828
|
var tmp$ret$3 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
2830
2829
|
// Inline function 'kotlin.let' call
|
|
2831
|
-
var it = this_0.
|
|
2832
|
-
parts.
|
|
2830
|
+
var it = this_0.v11(tmp$ret$3, jsonObj);
|
|
2831
|
+
parts.w(it);
|
|
2833
2832
|
} else {
|
|
2834
2833
|
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
2835
2834
|
var this_3 = get_tolerantJson();
|
|
2836
2835
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2837
|
-
var this_4 = this_3.
|
|
2836
|
+
var this_4 = this_3.xl();
|
|
2838
2837
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2839
2838
|
var this_5 = serializer(this_4, createKType(getKClass(OvenTemperaturePlaceholder), arrayOf([]), false));
|
|
2840
2839
|
var tmp$ret$8 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
2841
2840
|
// Inline function 'kotlin.let' call
|
|
2842
|
-
var it_0 = this_3.
|
|
2843
|
-
parts.
|
|
2841
|
+
var it_0 = this_3.v11(tmp$ret$8, jsonObj);
|
|
2842
|
+
parts.w(it_0);
|
|
2844
2843
|
}
|
|
2845
2844
|
} catch ($p) {
|
|
2846
2845
|
if ($p instanceof Exception) {
|
|
2847
2846
|
var e = $p;
|
|
2848
|
-
print('Failed to parse JSON: ' + element.
|
|
2849
|
-
parts.
|
|
2847
|
+
print('Failed to parse JSON: ' + element.h2() + ', error: ' + e.message);
|
|
2848
|
+
parts.w(new TemplateConst(element.h2()));
|
|
2850
2849
|
} else {
|
|
2851
2850
|
throw $p;
|
|
2852
2851
|
}
|
|
2853
2852
|
}
|
|
2854
|
-
lastEnd = element.
|
|
2853
|
+
lastEnd = element.ya().f1_1 + 1 | 0;
|
|
2855
2854
|
}
|
|
2856
2855
|
if (lastEnd < template.length) {
|
|
2857
2856
|
var remaining = substring_0(template, lastEnd);
|
|
2858
2857
|
// Inline function 'kotlin.text.isNotBlank' call
|
|
2859
2858
|
if (!isBlank(remaining)) {
|
|
2860
|
-
parts.
|
|
2859
|
+
parts.w(new TemplateConst(remaining));
|
|
2861
2860
|
}
|
|
2862
2861
|
}
|
|
2863
2862
|
return new ParsedTemplate(parts);
|
|
2864
2863
|
}
|
|
2865
2864
|
function tolerantJson$lambda($this$Json) {
|
|
2866
2865
|
_init_properties_Parser_kt__o3jwn5();
|
|
2867
|
-
$this$Json.
|
|
2866
|
+
$this$Json.o12_1 = true;
|
|
2868
2867
|
return Unit_instance;
|
|
2869
2868
|
}
|
|
2870
2869
|
var properties_initialized_Parser_kt_5uifb3;
|
|
@@ -2879,18 +2878,18 @@
|
|
|
2879
2878
|
function TemplateConst(value) {
|
|
2880
2879
|
this.value = value;
|
|
2881
2880
|
}
|
|
2882
|
-
protoOf(TemplateConst).
|
|
2881
|
+
protoOf(TemplateConst).h2 = function () {
|
|
2883
2882
|
return this.value;
|
|
2884
2883
|
};
|
|
2885
|
-
protoOf(TemplateConst).
|
|
2884
|
+
protoOf(TemplateConst).hd = function () {
|
|
2886
2885
|
return this.value;
|
|
2887
2886
|
};
|
|
2888
|
-
protoOf(TemplateConst).
|
|
2887
|
+
protoOf(TemplateConst).a1j = function (value) {
|
|
2889
2888
|
return new TemplateConst(value);
|
|
2890
2889
|
};
|
|
2891
2890
|
protoOf(TemplateConst).copy = function (value, $super) {
|
|
2892
2891
|
value = value === VOID ? this.value : value;
|
|
2893
|
-
return $super === VOID ? this.
|
|
2892
|
+
return $super === VOID ? this.a1j(value) : $super.a1j.call(this, value);
|
|
2894
2893
|
};
|
|
2895
2894
|
protoOf(TemplateConst).toString = function () {
|
|
2896
2895
|
return 'TemplateConst(value=' + this.value + ')';
|
|
@@ -2909,9 +2908,6 @@
|
|
|
2909
2908
|
};
|
|
2910
2909
|
function Companion_7() {
|
|
2911
2910
|
}
|
|
2912
|
-
protoOf(Companion_7).z14 = function () {
|
|
2913
|
-
return $serializer_getInstance_10();
|
|
2914
|
-
};
|
|
2915
2911
|
var Companion_instance_8;
|
|
2916
2912
|
function Companion_getInstance_7() {
|
|
2917
2913
|
return Companion_instance_8;
|
|
@@ -2919,40 +2915,40 @@
|
|
|
2919
2915
|
function $serializer_10() {
|
|
2920
2916
|
$serializer_instance_10 = this;
|
|
2921
2917
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.QuantityPlaceholder', this, 6);
|
|
2922
|
-
tmp0_serialDesc.
|
|
2923
|
-
tmp0_serialDesc.
|
|
2924
|
-
tmp0_serialDesc.
|
|
2925
|
-
tmp0_serialDesc.
|
|
2926
|
-
tmp0_serialDesc.
|
|
2927
|
-
tmp0_serialDesc.
|
|
2928
|
-
this.
|
|
2918
|
+
tmp0_serialDesc.rs('min', false);
|
|
2919
|
+
tmp0_serialDesc.rs('max', true);
|
|
2920
|
+
tmp0_serialDesc.rs('unit', true);
|
|
2921
|
+
tmp0_serialDesc.rs('scale', true);
|
|
2922
|
+
tmp0_serialDesc.rs('ingredient', true);
|
|
2923
|
+
tmp0_serialDesc.rs('usCust', true);
|
|
2924
|
+
this.b1j_1 = tmp0_serialDesc;
|
|
2929
2925
|
}
|
|
2930
|
-
protoOf($serializer_10).
|
|
2931
|
-
var tmp0_desc = this.
|
|
2932
|
-
var tmp1_output = encoder.
|
|
2933
|
-
tmp1_output.
|
|
2934
|
-
if (tmp1_output.
|
|
2935
|
-
tmp1_output.
|
|
2926
|
+
protoOf($serializer_10).c1j = function (encoder, value) {
|
|
2927
|
+
var tmp0_desc = this.b1j_1;
|
|
2928
|
+
var tmp1_output = encoder.il(tmp0_desc);
|
|
2929
|
+
tmp1_output.tm(tmp0_desc, 0, value.min);
|
|
2930
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.max == null)) {
|
|
2931
|
+
tmp1_output.an(tmp0_desc, 1, FloatSerializer_getInstance(), value.max);
|
|
2936
2932
|
}
|
|
2937
|
-
if (tmp1_output.
|
|
2938
|
-
tmp1_output.
|
|
2933
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.unit == null)) {
|
|
2934
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.unit);
|
|
2939
2935
|
}
|
|
2940
|
-
if (tmp1_output.
|
|
2941
|
-
tmp1_output.
|
|
2936
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.scale === false)) {
|
|
2937
|
+
tmp1_output.om(tmp0_desc, 3, value.scale);
|
|
2942
2938
|
}
|
|
2943
|
-
if (tmp1_output.
|
|
2944
|
-
tmp1_output.
|
|
2939
|
+
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.ingredient == null)) {
|
|
2940
|
+
tmp1_output.an(tmp0_desc, 4, StringSerializer_getInstance(), value.ingredient);
|
|
2945
2941
|
}
|
|
2946
|
-
if (tmp1_output.
|
|
2947
|
-
tmp1_output.
|
|
2942
|
+
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.usCust == null)) {
|
|
2943
|
+
tmp1_output.an(tmp0_desc, 5, BooleanSerializer_getInstance(), value.usCust);
|
|
2948
2944
|
}
|
|
2949
|
-
tmp1_output.
|
|
2945
|
+
tmp1_output.jl(tmp0_desc);
|
|
2950
2946
|
};
|
|
2951
|
-
protoOf($serializer_10).
|
|
2952
|
-
return this.
|
|
2947
|
+
protoOf($serializer_10).li = function (encoder, value) {
|
|
2948
|
+
return this.c1j(encoder, value instanceof QuantityPlaceholder ? value : THROW_CCE());
|
|
2953
2949
|
};
|
|
2954
|
-
protoOf($serializer_10).
|
|
2955
|
-
var tmp0_desc = this.
|
|
2950
|
+
protoOf($serializer_10).mi = function (decoder) {
|
|
2951
|
+
var tmp0_desc = this.b1j_1;
|
|
2956
2952
|
var tmp1_flag = true;
|
|
2957
2953
|
var tmp2_index = 0;
|
|
2958
2954
|
var tmp3_bitMask0 = 0;
|
|
@@ -2962,62 +2958,62 @@
|
|
|
2962
2958
|
var tmp7_local3 = false;
|
|
2963
2959
|
var tmp8_local4 = null;
|
|
2964
2960
|
var tmp9_local5 = null;
|
|
2965
|
-
var tmp10_input = decoder.
|
|
2966
|
-
if (tmp10_input.
|
|
2967
|
-
tmp4_local0 = tmp10_input.
|
|
2961
|
+
var tmp10_input = decoder.il(tmp0_desc);
|
|
2962
|
+
if (tmp10_input.yl()) {
|
|
2963
|
+
tmp4_local0 = tmp10_input.pl(tmp0_desc, 0);
|
|
2968
2964
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2969
|
-
tmp5_local1 = tmp10_input.
|
|
2965
|
+
tmp5_local1 = tmp10_input.wl(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
2970
2966
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2971
|
-
tmp6_local2 = tmp10_input.
|
|
2967
|
+
tmp6_local2 = tmp10_input.wl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2972
2968
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2973
|
-
tmp7_local3 = tmp10_input.
|
|
2969
|
+
tmp7_local3 = tmp10_input.kl(tmp0_desc, 3);
|
|
2974
2970
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2975
|
-
tmp8_local4 = tmp10_input.
|
|
2971
|
+
tmp8_local4 = tmp10_input.wl(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2976
2972
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2977
|
-
tmp9_local5 = tmp10_input.
|
|
2973
|
+
tmp9_local5 = tmp10_input.wl(tmp0_desc, 5, BooleanSerializer_getInstance(), tmp9_local5);
|
|
2978
2974
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2979
2975
|
} else
|
|
2980
2976
|
while (tmp1_flag) {
|
|
2981
|
-
tmp2_index = tmp10_input.
|
|
2977
|
+
tmp2_index = tmp10_input.zl(tmp0_desc);
|
|
2982
2978
|
switch (tmp2_index) {
|
|
2983
2979
|
case -1:
|
|
2984
2980
|
tmp1_flag = false;
|
|
2985
2981
|
break;
|
|
2986
2982
|
case 0:
|
|
2987
|
-
tmp4_local0 = tmp10_input.
|
|
2983
|
+
tmp4_local0 = tmp10_input.pl(tmp0_desc, 0);
|
|
2988
2984
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2989
2985
|
break;
|
|
2990
2986
|
case 1:
|
|
2991
|
-
tmp5_local1 = tmp10_input.
|
|
2987
|
+
tmp5_local1 = tmp10_input.wl(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
2992
2988
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2993
2989
|
break;
|
|
2994
2990
|
case 2:
|
|
2995
|
-
tmp6_local2 = tmp10_input.
|
|
2991
|
+
tmp6_local2 = tmp10_input.wl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2996
2992
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2997
2993
|
break;
|
|
2998
2994
|
case 3:
|
|
2999
|
-
tmp7_local3 = tmp10_input.
|
|
2995
|
+
tmp7_local3 = tmp10_input.kl(tmp0_desc, 3);
|
|
3000
2996
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3001
2997
|
break;
|
|
3002
2998
|
case 4:
|
|
3003
|
-
tmp8_local4 = tmp10_input.
|
|
2999
|
+
tmp8_local4 = tmp10_input.wl(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
3004
3000
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
3005
3001
|
break;
|
|
3006
3002
|
case 5:
|
|
3007
|
-
tmp9_local5 = tmp10_input.
|
|
3003
|
+
tmp9_local5 = tmp10_input.wl(tmp0_desc, 5, BooleanSerializer_getInstance(), tmp9_local5);
|
|
3008
3004
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
3009
3005
|
break;
|
|
3010
3006
|
default:
|
|
3011
3007
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
3012
3008
|
}
|
|
3013
3009
|
}
|
|
3014
|
-
tmp10_input.
|
|
3010
|
+
tmp10_input.jl(tmp0_desc);
|
|
3015
3011
|
return QuantityPlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
3016
3012
|
};
|
|
3017
|
-
protoOf($serializer_10).
|
|
3018
|
-
return this.
|
|
3013
|
+
protoOf($serializer_10).ki = function () {
|
|
3014
|
+
return this.b1j_1;
|
|
3019
3015
|
};
|
|
3020
|
-
protoOf($serializer_10).
|
|
3016
|
+
protoOf($serializer_10).ts = function () {
|
|
3021
3017
|
// Inline function 'kotlin.arrayOf' call
|
|
3022
3018
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3023
3019
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3031,7 +3027,7 @@
|
|
|
3031
3027
|
}
|
|
3032
3028
|
function QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, ingredient, usCust, serializationConstructorMarker, $this) {
|
|
3033
3029
|
if (!(1 === (1 & seen0))) {
|
|
3034
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().
|
|
3030
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().b1j_1);
|
|
3035
3031
|
}
|
|
3036
3032
|
$this.min = min;
|
|
3037
3033
|
if (0 === (seen0 & 2))
|
|
@@ -3072,43 +3068,43 @@
|
|
|
3072
3068
|
this.ingredient = ingredient;
|
|
3073
3069
|
this.usCust = usCust;
|
|
3074
3070
|
}
|
|
3075
|
-
protoOf(QuantityPlaceholder).
|
|
3071
|
+
protoOf(QuantityPlaceholder).d1j = function () {
|
|
3076
3072
|
return this.min;
|
|
3077
3073
|
};
|
|
3078
|
-
protoOf(QuantityPlaceholder).
|
|
3074
|
+
protoOf(QuantityPlaceholder).e1j = function () {
|
|
3079
3075
|
return this.max;
|
|
3080
3076
|
};
|
|
3081
|
-
protoOf(QuantityPlaceholder).
|
|
3077
|
+
protoOf(QuantityPlaceholder).f1j = function () {
|
|
3082
3078
|
return this.unit;
|
|
3083
3079
|
};
|
|
3084
|
-
protoOf(QuantityPlaceholder).
|
|
3080
|
+
protoOf(QuantityPlaceholder).g1j = function () {
|
|
3085
3081
|
return this.scale;
|
|
3086
3082
|
};
|
|
3087
|
-
protoOf(QuantityPlaceholder).
|
|
3083
|
+
protoOf(QuantityPlaceholder).h1j = function () {
|
|
3088
3084
|
return this.ingredient;
|
|
3089
3085
|
};
|
|
3090
|
-
protoOf(QuantityPlaceholder).
|
|
3086
|
+
protoOf(QuantityPlaceholder).i1j = function () {
|
|
3091
3087
|
return this.usCust;
|
|
3092
3088
|
};
|
|
3093
|
-
protoOf(QuantityPlaceholder).
|
|
3089
|
+
protoOf(QuantityPlaceholder).hd = function () {
|
|
3094
3090
|
return this.min;
|
|
3095
3091
|
};
|
|
3096
|
-
protoOf(QuantityPlaceholder).
|
|
3092
|
+
protoOf(QuantityPlaceholder).id = function () {
|
|
3097
3093
|
return this.max;
|
|
3098
3094
|
};
|
|
3099
|
-
protoOf(QuantityPlaceholder).
|
|
3095
|
+
protoOf(QuantityPlaceholder).j1j = function () {
|
|
3100
3096
|
return this.unit;
|
|
3101
3097
|
};
|
|
3102
|
-
protoOf(QuantityPlaceholder).
|
|
3098
|
+
protoOf(QuantityPlaceholder).k1j = function () {
|
|
3103
3099
|
return this.scale;
|
|
3104
3100
|
};
|
|
3105
|
-
protoOf(QuantityPlaceholder).
|
|
3101
|
+
protoOf(QuantityPlaceholder).l1j = function () {
|
|
3106
3102
|
return this.ingredient;
|
|
3107
3103
|
};
|
|
3108
|
-
protoOf(QuantityPlaceholder).
|
|
3104
|
+
protoOf(QuantityPlaceholder).m1j = function () {
|
|
3109
3105
|
return this.usCust;
|
|
3110
3106
|
};
|
|
3111
|
-
protoOf(QuantityPlaceholder).
|
|
3107
|
+
protoOf(QuantityPlaceholder).n1j = function (min, max, unit, scale, ingredient, usCust) {
|
|
3112
3108
|
return new QuantityPlaceholder(min, max, unit, scale, ingredient, usCust);
|
|
3113
3109
|
};
|
|
3114
3110
|
protoOf(QuantityPlaceholder).copy = function (min, max, unit, scale, ingredient, usCust, $super) {
|
|
@@ -3118,7 +3114,7 @@
|
|
|
3118
3114
|
scale = scale === VOID ? this.scale : scale;
|
|
3119
3115
|
ingredient = ingredient === VOID ? this.ingredient : ingredient;
|
|
3120
3116
|
usCust = usCust === VOID ? this.usCust : usCust;
|
|
3121
|
-
return $super === VOID ? this.
|
|
3117
|
+
return $super === VOID ? this.n1j(min, max, unit, scale, ingredient, usCust) : $super.n1j.call(this, min, max, unit, scale, ingredient, usCust);
|
|
3122
3118
|
};
|
|
3123
3119
|
protoOf(QuantityPlaceholder).toString = function () {
|
|
3124
3120
|
return 'QuantityPlaceholder(min=' + this.min + ', max=' + this.max + ', unit=' + this.unit + ', scale=' + this.scale + ', ingredient=' + this.ingredient + ', usCust=' + this.usCust + ')';
|
|
@@ -3153,9 +3149,6 @@
|
|
|
3153
3149
|
};
|
|
3154
3150
|
function Companion_8() {
|
|
3155
3151
|
}
|
|
3156
|
-
protoOf(Companion_8).z14 = function () {
|
|
3157
|
-
return $serializer_getInstance_11();
|
|
3158
|
-
};
|
|
3159
3152
|
var Companion_instance_9;
|
|
3160
3153
|
function Companion_getInstance_8() {
|
|
3161
3154
|
return Companion_instance_9;
|
|
@@ -3163,34 +3156,34 @@
|
|
|
3163
3156
|
function $serializer_11() {
|
|
3164
3157
|
$serializer_instance_11 = this;
|
|
3165
3158
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.OvenTemperaturePlaceholder', this, 4);
|
|
3166
|
-
tmp0_serialDesc.
|
|
3167
|
-
tmp0_serialDesc.
|
|
3168
|
-
tmp0_serialDesc.
|
|
3169
|
-
tmp0_serialDesc.
|
|
3170
|
-
this.
|
|
3159
|
+
tmp0_serialDesc.rs('temperatureC', true);
|
|
3160
|
+
tmp0_serialDesc.rs('temperatureFanC', true);
|
|
3161
|
+
tmp0_serialDesc.rs('temperatureF', true);
|
|
3162
|
+
tmp0_serialDesc.rs('gasMark', true);
|
|
3163
|
+
this.o1j_1 = tmp0_serialDesc;
|
|
3171
3164
|
}
|
|
3172
|
-
protoOf($serializer_11).
|
|
3173
|
-
var tmp0_desc = this.
|
|
3174
|
-
var tmp1_output = encoder.
|
|
3175
|
-
if (tmp1_output.
|
|
3176
|
-
tmp1_output.
|
|
3165
|
+
protoOf($serializer_11).p1j = function (encoder, value) {
|
|
3166
|
+
var tmp0_desc = this.o1j_1;
|
|
3167
|
+
var tmp1_output = encoder.il(tmp0_desc);
|
|
3168
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.temperatureC == null)) {
|
|
3169
|
+
tmp1_output.an(tmp0_desc, 0, IntSerializer_getInstance(), value.temperatureC);
|
|
3177
3170
|
}
|
|
3178
|
-
if (tmp1_output.
|
|
3179
|
-
tmp1_output.
|
|
3171
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.temperatureFanC == null)) {
|
|
3172
|
+
tmp1_output.an(tmp0_desc, 1, IntSerializer_getInstance(), value.temperatureFanC);
|
|
3180
3173
|
}
|
|
3181
|
-
if (tmp1_output.
|
|
3182
|
-
tmp1_output.
|
|
3174
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.temperatureF == null)) {
|
|
3175
|
+
tmp1_output.an(tmp0_desc, 2, IntSerializer_getInstance(), value.temperatureF);
|
|
3183
3176
|
}
|
|
3184
|
-
if (tmp1_output.
|
|
3185
|
-
tmp1_output.
|
|
3177
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.gasMark == null)) {
|
|
3178
|
+
tmp1_output.an(tmp0_desc, 3, FloatSerializer_getInstance(), value.gasMark);
|
|
3186
3179
|
}
|
|
3187
|
-
tmp1_output.
|
|
3180
|
+
tmp1_output.jl(tmp0_desc);
|
|
3188
3181
|
};
|
|
3189
|
-
protoOf($serializer_11).
|
|
3190
|
-
return this.
|
|
3182
|
+
protoOf($serializer_11).li = function (encoder, value) {
|
|
3183
|
+
return this.p1j(encoder, value instanceof OvenTemperaturePlaceholder ? value : THROW_CCE());
|
|
3191
3184
|
};
|
|
3192
|
-
protoOf($serializer_11).
|
|
3193
|
-
var tmp0_desc = this.
|
|
3185
|
+
protoOf($serializer_11).mi = function (decoder) {
|
|
3186
|
+
var tmp0_desc = this.o1j_1;
|
|
3194
3187
|
var tmp1_flag = true;
|
|
3195
3188
|
var tmp2_index = 0;
|
|
3196
3189
|
var tmp3_bitMask0 = 0;
|
|
@@ -3198,50 +3191,50 @@
|
|
|
3198
3191
|
var tmp5_local1 = null;
|
|
3199
3192
|
var tmp6_local2 = null;
|
|
3200
3193
|
var tmp7_local3 = null;
|
|
3201
|
-
var tmp8_input = decoder.
|
|
3202
|
-
if (tmp8_input.
|
|
3203
|
-
tmp4_local0 = tmp8_input.
|
|
3194
|
+
var tmp8_input = decoder.il(tmp0_desc);
|
|
3195
|
+
if (tmp8_input.yl()) {
|
|
3196
|
+
tmp4_local0 = tmp8_input.wl(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
3204
3197
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3205
|
-
tmp5_local1 = tmp8_input.
|
|
3198
|
+
tmp5_local1 = tmp8_input.wl(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
3206
3199
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3207
|
-
tmp6_local2 = tmp8_input.
|
|
3200
|
+
tmp6_local2 = tmp8_input.wl(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
3208
3201
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3209
|
-
tmp7_local3 = tmp8_input.
|
|
3202
|
+
tmp7_local3 = tmp8_input.wl(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
3210
3203
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3211
3204
|
} else
|
|
3212
3205
|
while (tmp1_flag) {
|
|
3213
|
-
tmp2_index = tmp8_input.
|
|
3206
|
+
tmp2_index = tmp8_input.zl(tmp0_desc);
|
|
3214
3207
|
switch (tmp2_index) {
|
|
3215
3208
|
case -1:
|
|
3216
3209
|
tmp1_flag = false;
|
|
3217
3210
|
break;
|
|
3218
3211
|
case 0:
|
|
3219
|
-
tmp4_local0 = tmp8_input.
|
|
3212
|
+
tmp4_local0 = tmp8_input.wl(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
3220
3213
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3221
3214
|
break;
|
|
3222
3215
|
case 1:
|
|
3223
|
-
tmp5_local1 = tmp8_input.
|
|
3216
|
+
tmp5_local1 = tmp8_input.wl(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
3224
3217
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3225
3218
|
break;
|
|
3226
3219
|
case 2:
|
|
3227
|
-
tmp6_local2 = tmp8_input.
|
|
3220
|
+
tmp6_local2 = tmp8_input.wl(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
3228
3221
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3229
3222
|
break;
|
|
3230
3223
|
case 3:
|
|
3231
|
-
tmp7_local3 = tmp8_input.
|
|
3224
|
+
tmp7_local3 = tmp8_input.wl(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
3232
3225
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3233
3226
|
break;
|
|
3234
3227
|
default:
|
|
3235
3228
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
3236
3229
|
}
|
|
3237
3230
|
}
|
|
3238
|
-
tmp8_input.
|
|
3231
|
+
tmp8_input.jl(tmp0_desc);
|
|
3239
3232
|
return OvenTemperaturePlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
3240
3233
|
};
|
|
3241
|
-
protoOf($serializer_11).
|
|
3242
|
-
return this.
|
|
3234
|
+
protoOf($serializer_11).ki = function () {
|
|
3235
|
+
return this.o1j_1;
|
|
3243
3236
|
};
|
|
3244
|
-
protoOf($serializer_11).
|
|
3237
|
+
protoOf($serializer_11).ts = function () {
|
|
3245
3238
|
// Inline function 'kotlin.arrayOf' call
|
|
3246
3239
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3247
3240
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3255,7 +3248,7 @@
|
|
|
3255
3248
|
}
|
|
3256
3249
|
function OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, $this) {
|
|
3257
3250
|
if (!(0 === (0 & seen0))) {
|
|
3258
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_11().
|
|
3251
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_11().o1j_1);
|
|
3259
3252
|
}
|
|
3260
3253
|
if (0 === (seen0 & 1))
|
|
3261
3254
|
$this.temperatureC = null;
|
|
@@ -3288,31 +3281,31 @@
|
|
|
3288
3281
|
this.temperatureF = temperatureF;
|
|
3289
3282
|
this.gasMark = gasMark;
|
|
3290
3283
|
}
|
|
3291
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3284
|
+
protoOf(OvenTemperaturePlaceholder).q1j = function () {
|
|
3292
3285
|
return this.temperatureC;
|
|
3293
3286
|
};
|
|
3294
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3287
|
+
protoOf(OvenTemperaturePlaceholder).r1j = function () {
|
|
3295
3288
|
return this.temperatureFanC;
|
|
3296
3289
|
};
|
|
3297
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3290
|
+
protoOf(OvenTemperaturePlaceholder).s1j = function () {
|
|
3298
3291
|
return this.temperatureF;
|
|
3299
3292
|
};
|
|
3300
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3293
|
+
protoOf(OvenTemperaturePlaceholder).t1j = function () {
|
|
3301
3294
|
return this.gasMark;
|
|
3302
3295
|
};
|
|
3303
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3296
|
+
protoOf(OvenTemperaturePlaceholder).hd = function () {
|
|
3304
3297
|
return this.temperatureC;
|
|
3305
3298
|
};
|
|
3306
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3299
|
+
protoOf(OvenTemperaturePlaceholder).id = function () {
|
|
3307
3300
|
return this.temperatureFanC;
|
|
3308
3301
|
};
|
|
3309
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3302
|
+
protoOf(OvenTemperaturePlaceholder).j1j = function () {
|
|
3310
3303
|
return this.temperatureF;
|
|
3311
3304
|
};
|
|
3312
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3305
|
+
protoOf(OvenTemperaturePlaceholder).k1j = function () {
|
|
3313
3306
|
return this.gasMark;
|
|
3314
3307
|
};
|
|
3315
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3308
|
+
protoOf(OvenTemperaturePlaceholder).u1j = function (temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
3316
3309
|
return new OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3317
3310
|
};
|
|
3318
3311
|
protoOf(OvenTemperaturePlaceholder).copy = function (temperatureC, temperatureFanC, temperatureF, gasMark, $super) {
|
|
@@ -3320,7 +3313,7 @@
|
|
|
3320
3313
|
temperatureFanC = temperatureFanC === VOID ? this.temperatureFanC : temperatureFanC;
|
|
3321
3314
|
temperatureF = temperatureF === VOID ? this.temperatureF : temperatureF;
|
|
3322
3315
|
gasMark = gasMark === VOID ? this.gasMark : gasMark;
|
|
3323
|
-
return $super === VOID ? this.
|
|
3316
|
+
return $super === VOID ? this.u1j(temperatureC, temperatureFanC, temperatureF, gasMark) : $super.u1j.call(this, temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3324
3317
|
};
|
|
3325
3318
|
protoOf(OvenTemperaturePlaceholder).toString = function () {
|
|
3326
3319
|
return 'OvenTemperaturePlaceholder(temperatureC=' + this.temperatureC + ', temperatureFanC=' + this.temperatureFanC + ', temperatureF=' + this.temperatureF + ', gasMark=' + this.gasMark + ')';
|
|
@@ -3381,25 +3374,25 @@
|
|
|
3381
3374
|
Enum.call(this, name, ordinal);
|
|
3382
3375
|
}
|
|
3383
3376
|
function MeasurementUnit(singular, plural, symbol, symbolPlural, unitType, measuringSystems, quantity) {
|
|
3384
|
-
this.
|
|
3385
|
-
this.
|
|
3386
|
-
this.
|
|
3387
|
-
this.
|
|
3388
|
-
this.
|
|
3389
|
-
this.
|
|
3390
|
-
this.
|
|
3377
|
+
this.y1e_1 = singular;
|
|
3378
|
+
this.z1e_1 = plural;
|
|
3379
|
+
this.a1f_1 = symbol;
|
|
3380
|
+
this.b1f_1 = symbolPlural;
|
|
3381
|
+
this.c1f_1 = unitType;
|
|
3382
|
+
this.d1f_1 = measuringSystems;
|
|
3383
|
+
this.e1f_1 = quantity;
|
|
3391
3384
|
}
|
|
3392
3385
|
protoOf(MeasurementUnit).toString = function () {
|
|
3393
|
-
return 'MeasurementUnit(singular=' + this.
|
|
3386
|
+
return 'MeasurementUnit(singular=' + this.y1e_1 + ', plural=' + this.z1e_1 + ', symbol=' + this.a1f_1 + ', symbolPlural=' + this.b1f_1 + ', unitType=' + toString(this.c1f_1) + ', measuringSystems=' + toString_0(this.d1f_1) + ', quantity=' + this.e1f_1 + ')';
|
|
3394
3387
|
};
|
|
3395
3388
|
protoOf(MeasurementUnit).hashCode = function () {
|
|
3396
|
-
var result = getStringHashCode(this.
|
|
3397
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3398
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3399
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3400
|
-
result = imul(result, 31) + (this.
|
|
3401
|
-
result = imul(result, 31) + hashCode(this.
|
|
3402
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3389
|
+
var result = getStringHashCode(this.y1e_1);
|
|
3390
|
+
result = imul(result, 31) + getStringHashCode(this.z1e_1) | 0;
|
|
3391
|
+
result = imul(result, 31) + getStringHashCode(this.a1f_1) | 0;
|
|
3392
|
+
result = imul(result, 31) + getStringHashCode(this.b1f_1) | 0;
|
|
3393
|
+
result = imul(result, 31) + (this.c1f_1 == null ? 0 : this.c1f_1.hashCode()) | 0;
|
|
3394
|
+
result = imul(result, 31) + hashCode(this.d1f_1) | 0;
|
|
3395
|
+
result = imul(result, 31) + getNumberHashCode(this.e1f_1) | 0;
|
|
3403
3396
|
return result;
|
|
3404
3397
|
};
|
|
3405
3398
|
protoOf(MeasurementUnit).equals = function (other) {
|
|
@@ -3407,55 +3400,55 @@
|
|
|
3407
3400
|
return true;
|
|
3408
3401
|
if (!(other instanceof MeasurementUnit))
|
|
3409
3402
|
return false;
|
|
3410
|
-
if (!(this.
|
|
3403
|
+
if (!(this.y1e_1 === other.y1e_1))
|
|
3411
3404
|
return false;
|
|
3412
|
-
if (!(this.
|
|
3405
|
+
if (!(this.z1e_1 === other.z1e_1))
|
|
3413
3406
|
return false;
|
|
3414
|
-
if (!(this.
|
|
3407
|
+
if (!(this.a1f_1 === other.a1f_1))
|
|
3415
3408
|
return false;
|
|
3416
|
-
if (!(this.
|
|
3409
|
+
if (!(this.b1f_1 === other.b1f_1))
|
|
3417
3410
|
return false;
|
|
3418
|
-
if (!equals(this.
|
|
3411
|
+
if (!equals(this.c1f_1, other.c1f_1))
|
|
3419
3412
|
return false;
|
|
3420
|
-
if (!equals(this.
|
|
3413
|
+
if (!equals(this.d1f_1, other.d1f_1))
|
|
3421
3414
|
return false;
|
|
3422
|
-
if (!equals(this.
|
|
3415
|
+
if (!equals(this.e1f_1, other.e1f_1))
|
|
3423
3416
|
return false;
|
|
3424
3417
|
return true;
|
|
3425
3418
|
};
|
|
3426
3419
|
function Units() {
|
|
3427
3420
|
Units_instance = this;
|
|
3428
|
-
this.
|
|
3429
|
-
this.
|
|
3430
|
-
this.
|
|
3431
|
-
this.
|
|
3432
|
-
this.
|
|
3433
|
-
this.
|
|
3434
|
-
this.
|
|
3435
|
-
this.
|
|
3436
|
-
this.
|
|
3437
|
-
this.
|
|
3438
|
-
this.
|
|
3439
|
-
this.
|
|
3440
|
-
this.
|
|
3441
|
-
this.
|
|
3442
|
-
this.
|
|
3443
|
-
this.
|
|
3444
|
-
this.
|
|
3445
|
-
this.
|
|
3446
|
-
this.
|
|
3447
|
-
this.
|
|
3448
|
-
this.
|
|
3421
|
+
this.n1d_1 = new MeasurementUnit('gram', 'grams', 'g', 'g', UnitType_WEIGHT_getInstance(), setOf(Metric_instance), 1.0);
|
|
3422
|
+
this.o1d_1 = new MeasurementUnit('kilogram', 'kilograms', 'kg', 'kg', UnitType_WEIGHT_getInstance(), setOf(Metric_instance), 1000.0);
|
|
3423
|
+
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.e1f_1);
|
|
3425
|
+
this.r1d_1 = new MeasurementUnit('millilitre', 'millilitres', 'ml', 'ml', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 1.0);
|
|
3426
|
+
this.s1d_1 = new MeasurementUnit('centilitre', 'centilitres', 'cl', 'cl', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 10.0);
|
|
3427
|
+
this.t1d_1 = new MeasurementUnit('litre', 'litres', 'l', 'l', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 1000.0);
|
|
3428
|
+
this.u1d_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 5.0);
|
|
3429
|
+
this.v1d_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 15.0);
|
|
3430
|
+
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.e1f_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.e1f_1);
|
|
3433
|
+
this.z1d_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf(USCustomary_instance), 48 * this.w1d_1.e1f_1);
|
|
3434
|
+
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.e1f_1);
|
|
3436
|
+
this.c1e_1 = new MeasurementUnit('quart', 'quarts', 'qt', 'qts', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 2 * this.b1e_1.e1f_1);
|
|
3437
|
+
this.d1e_1 = new MeasurementUnit('gallon', 'gallons', 'gal', 'gals', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 4 * this.c1e_1.e1f_1);
|
|
3438
|
+
this.e1e_1 = new MeasurementUnit('millimetre', 'millimetres', 'mm', 'mm', UnitType_LENGTH_getInstance(), setOf(Metric_instance), 1.0);
|
|
3439
|
+
this.f1e_1 = new MeasurementUnit('centimetre', 'centimetres', 'cm', 'cm', UnitType_LENGTH_getInstance(), setOf(Metric_instance), 10.0);
|
|
3440
|
+
this.g1e_1 = new MeasurementUnit('inch', 'inches', 'in', 'in', UnitType_LENGTH_getInstance(), setOf(Imperial_instance), 25.4);
|
|
3441
|
+
this.h1e_1 = listOf([this.n1d_1, this.o1d_1, this.p1d_1, this.q1d_1, this.r1d_1, this.s1d_1, this.t1d_1, this.u1d_1, this.v1d_1, this.w1d_1, this.x1d_1, this.y1d_1, this.z1d_1, this.a1e_1, this.b1e_1, this.c1e_1, this.d1e_1, this.e1e_1, this.f1e_1, this.g1e_1]);
|
|
3449
3442
|
var tmp = this;
|
|
3450
3443
|
// Inline function 'kotlin.collections.filter' call
|
|
3451
|
-
var tmp0 = this.
|
|
3444
|
+
var tmp0 = this.h1e_1;
|
|
3452
3445
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3453
3446
|
var destination = ArrayList_init_$Create$_0();
|
|
3454
|
-
var _iterator__ex2g4s = tmp0.
|
|
3455
|
-
while (_iterator__ex2g4s.
|
|
3456
|
-
var element = _iterator__ex2g4s.
|
|
3457
|
-
if (element.
|
|
3458
|
-
destination.
|
|
3447
|
+
var _iterator__ex2g4s = tmp0.s();
|
|
3448
|
+
while (_iterator__ex2g4s.t()) {
|
|
3449
|
+
var element = _iterator__ex2g4s.u();
|
|
3450
|
+
if (element.d1f_1.z(Metric_instance)) {
|
|
3451
|
+
destination.w(element);
|
|
3459
3452
|
}
|
|
3460
3453
|
}
|
|
3461
3454
|
// Inline function 'kotlin.let' call
|
|
@@ -3463,56 +3456,56 @@
|
|
|
3463
3456
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3464
3457
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3465
3458
|
var destination_0 = LinkedHashMap_init_$Create$(capacity);
|
|
3466
|
-
var _iterator__ex2g4s_0 = destination.
|
|
3467
|
-
while (_iterator__ex2g4s_0.
|
|
3468
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
3469
|
-
var tmp$ret$3 = element_0.
|
|
3470
|
-
destination_0.
|
|
3459
|
+
var _iterator__ex2g4s_0 = destination.s();
|
|
3460
|
+
while (_iterator__ex2g4s_0.t()) {
|
|
3461
|
+
var element_0 = _iterator__ex2g4s_0.u();
|
|
3462
|
+
var tmp$ret$3 = element_0.a1f_1;
|
|
3463
|
+
destination_0.o2(tmp$ret$3, element_0);
|
|
3471
3464
|
}
|
|
3472
3465
|
var tmp_0 = destination_0;
|
|
3473
3466
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3474
3467
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3475
3468
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3476
3469
|
var destination_1 = LinkedHashMap_init_$Create$(capacity_0);
|
|
3477
|
-
var _iterator__ex2g4s_1 = destination.
|
|
3478
|
-
while (_iterator__ex2g4s_1.
|
|
3479
|
-
var element_1 = _iterator__ex2g4s_1.
|
|
3480
|
-
var tmp$ret$6 = element_1.
|
|
3481
|
-
destination_1.
|
|
3470
|
+
var _iterator__ex2g4s_1 = destination.s();
|
|
3471
|
+
while (_iterator__ex2g4s_1.t()) {
|
|
3472
|
+
var element_1 = _iterator__ex2g4s_1.u();
|
|
3473
|
+
var tmp$ret$6 = element_1.b1f_1;
|
|
3474
|
+
destination_1.o2(tmp$ret$6, element_1);
|
|
3482
3475
|
}
|
|
3483
3476
|
var tmp_1 = plus(tmp_0, destination_1);
|
|
3484
3477
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3485
3478
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3486
3479
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3487
3480
|
var destination_2 = LinkedHashMap_init_$Create$(capacity_1);
|
|
3488
|
-
var _iterator__ex2g4s_2 = destination.
|
|
3489
|
-
while (_iterator__ex2g4s_2.
|
|
3490
|
-
var element_2 = _iterator__ex2g4s_2.
|
|
3491
|
-
var tmp$ret$9 = element_2.
|
|
3492
|
-
destination_2.
|
|
3481
|
+
var _iterator__ex2g4s_2 = destination.s();
|
|
3482
|
+
while (_iterator__ex2g4s_2.t()) {
|
|
3483
|
+
var element_2 = _iterator__ex2g4s_2.u();
|
|
3484
|
+
var tmp$ret$9 = element_2.y1e_1;
|
|
3485
|
+
destination_2.o2(tmp$ret$9, element_2);
|
|
3493
3486
|
}
|
|
3494
3487
|
var tmp_2 = plus(tmp_1, destination_2);
|
|
3495
3488
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3496
3489
|
var capacity_2 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3497
3490
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3498
3491
|
var destination_3 = LinkedHashMap_init_$Create$(capacity_2);
|
|
3499
|
-
var _iterator__ex2g4s_3 = destination.
|
|
3500
|
-
while (_iterator__ex2g4s_3.
|
|
3501
|
-
var element_3 = _iterator__ex2g4s_3.
|
|
3502
|
-
var tmp$ret$12 = element_3.
|
|
3503
|
-
destination_3.
|
|
3492
|
+
var _iterator__ex2g4s_3 = destination.s();
|
|
3493
|
+
while (_iterator__ex2g4s_3.t()) {
|
|
3494
|
+
var element_3 = _iterator__ex2g4s_3.u();
|
|
3495
|
+
var tmp$ret$12 = element_3.z1e_1;
|
|
3496
|
+
destination_3.o2(tmp$ret$12, element_3);
|
|
3504
3497
|
}
|
|
3505
|
-
tmp.
|
|
3498
|
+
tmp.i1e_1 = plus(tmp_2, destination_3);
|
|
3506
3499
|
var tmp_3 = this;
|
|
3507
3500
|
// Inline function 'kotlin.collections.filter' call
|
|
3508
|
-
var tmp0_0 = this.
|
|
3501
|
+
var tmp0_0 = this.h1e_1;
|
|
3509
3502
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3510
3503
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
3511
|
-
var _iterator__ex2g4s_4 = tmp0_0.
|
|
3512
|
-
while (_iterator__ex2g4s_4.
|
|
3513
|
-
var element_4 = _iterator__ex2g4s_4.
|
|
3514
|
-
if (element_4.
|
|
3515
|
-
destination_4.
|
|
3504
|
+
var _iterator__ex2g4s_4 = tmp0_0.s();
|
|
3505
|
+
while (_iterator__ex2g4s_4.t()) {
|
|
3506
|
+
var element_4 = _iterator__ex2g4s_4.u();
|
|
3507
|
+
if (element_4.d1f_1.z(Imperial_instance)) {
|
|
3508
|
+
destination_4.w(element_4);
|
|
3516
3509
|
}
|
|
3517
3510
|
}
|
|
3518
3511
|
// Inline function 'kotlin.let' call
|
|
@@ -3520,56 +3513,56 @@
|
|
|
3520
3513
|
var capacity_3 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3521
3514
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3522
3515
|
var destination_5 = LinkedHashMap_init_$Create$(capacity_3);
|
|
3523
|
-
var _iterator__ex2g4s_5 = destination_4.
|
|
3524
|
-
while (_iterator__ex2g4s_5.
|
|
3525
|
-
var element_5 = _iterator__ex2g4s_5.
|
|
3526
|
-
var tmp$ret$20 = element_5.
|
|
3527
|
-
destination_5.
|
|
3516
|
+
var _iterator__ex2g4s_5 = destination_4.s();
|
|
3517
|
+
while (_iterator__ex2g4s_5.t()) {
|
|
3518
|
+
var element_5 = _iterator__ex2g4s_5.u();
|
|
3519
|
+
var tmp$ret$20 = element_5.a1f_1;
|
|
3520
|
+
destination_5.o2(tmp$ret$20, element_5);
|
|
3528
3521
|
}
|
|
3529
3522
|
var tmp_4 = destination_5;
|
|
3530
3523
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3531
3524
|
var capacity_4 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3532
3525
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3533
3526
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_4);
|
|
3534
|
-
var _iterator__ex2g4s_6 = destination_4.
|
|
3535
|
-
while (_iterator__ex2g4s_6.
|
|
3536
|
-
var element_6 = _iterator__ex2g4s_6.
|
|
3537
|
-
var tmp$ret$23 = element_6.
|
|
3538
|
-
destination_6.
|
|
3527
|
+
var _iterator__ex2g4s_6 = destination_4.s();
|
|
3528
|
+
while (_iterator__ex2g4s_6.t()) {
|
|
3529
|
+
var element_6 = _iterator__ex2g4s_6.u();
|
|
3530
|
+
var tmp$ret$23 = element_6.b1f_1;
|
|
3531
|
+
destination_6.o2(tmp$ret$23, element_6);
|
|
3539
3532
|
}
|
|
3540
3533
|
var tmp_5 = plus(tmp_4, destination_6);
|
|
3541
3534
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3542
3535
|
var capacity_5 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3543
3536
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3544
3537
|
var destination_7 = LinkedHashMap_init_$Create$(capacity_5);
|
|
3545
|
-
var _iterator__ex2g4s_7 = destination_4.
|
|
3546
|
-
while (_iterator__ex2g4s_7.
|
|
3547
|
-
var element_7 = _iterator__ex2g4s_7.
|
|
3548
|
-
var tmp$ret$26 = element_7.
|
|
3549
|
-
destination_7.
|
|
3538
|
+
var _iterator__ex2g4s_7 = destination_4.s();
|
|
3539
|
+
while (_iterator__ex2g4s_7.t()) {
|
|
3540
|
+
var element_7 = _iterator__ex2g4s_7.u();
|
|
3541
|
+
var tmp$ret$26 = element_7.y1e_1;
|
|
3542
|
+
destination_7.o2(tmp$ret$26, element_7);
|
|
3550
3543
|
}
|
|
3551
3544
|
var tmp_6 = plus(tmp_5, destination_7);
|
|
3552
3545
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3553
3546
|
var capacity_6 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3554
3547
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3555
3548
|
var destination_8 = LinkedHashMap_init_$Create$(capacity_6);
|
|
3556
|
-
var _iterator__ex2g4s_8 = destination_4.
|
|
3557
|
-
while (_iterator__ex2g4s_8.
|
|
3558
|
-
var element_8 = _iterator__ex2g4s_8.
|
|
3559
|
-
var tmp$ret$29 = element_8.
|
|
3560
|
-
destination_8.
|
|
3549
|
+
var _iterator__ex2g4s_8 = destination_4.s();
|
|
3550
|
+
while (_iterator__ex2g4s_8.t()) {
|
|
3551
|
+
var element_8 = _iterator__ex2g4s_8.u();
|
|
3552
|
+
var tmp$ret$29 = element_8.z1e_1;
|
|
3553
|
+
destination_8.o2(tmp$ret$29, element_8);
|
|
3561
3554
|
}
|
|
3562
|
-
tmp_3.
|
|
3555
|
+
tmp_3.j1e_1 = plus(tmp_6, destination_8);
|
|
3563
3556
|
var tmp_7 = this;
|
|
3564
3557
|
// Inline function 'kotlin.collections.filter' call
|
|
3565
|
-
var tmp0_1 = this.
|
|
3558
|
+
var tmp0_1 = this.h1e_1;
|
|
3566
3559
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3567
3560
|
var destination_9 = ArrayList_init_$Create$_0();
|
|
3568
|
-
var _iterator__ex2g4s_9 = tmp0_1.
|
|
3569
|
-
while (_iterator__ex2g4s_9.
|
|
3570
|
-
var element_9 = _iterator__ex2g4s_9.
|
|
3571
|
-
if (element_9.
|
|
3572
|
-
destination_9.
|
|
3561
|
+
var _iterator__ex2g4s_9 = tmp0_1.s();
|
|
3562
|
+
while (_iterator__ex2g4s_9.t()) {
|
|
3563
|
+
var element_9 = _iterator__ex2g4s_9.u();
|
|
3564
|
+
if (element_9.d1f_1.z(USCustomary_instance)) {
|
|
3565
|
+
destination_9.w(element_9);
|
|
3573
3566
|
}
|
|
3574
3567
|
}
|
|
3575
3568
|
// Inline function 'kotlin.let' call
|
|
@@ -3577,51 +3570,51 @@
|
|
|
3577
3570
|
var capacity_7 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3578
3571
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3579
3572
|
var destination_10 = LinkedHashMap_init_$Create$(capacity_7);
|
|
3580
|
-
var _iterator__ex2g4s_10 = destination_9.
|
|
3581
|
-
while (_iterator__ex2g4s_10.
|
|
3582
|
-
var element_10 = _iterator__ex2g4s_10.
|
|
3583
|
-
var tmp$ret$37 = element_10.
|
|
3584
|
-
destination_10.
|
|
3573
|
+
var _iterator__ex2g4s_10 = destination_9.s();
|
|
3574
|
+
while (_iterator__ex2g4s_10.t()) {
|
|
3575
|
+
var element_10 = _iterator__ex2g4s_10.u();
|
|
3576
|
+
var tmp$ret$37 = element_10.a1f_1;
|
|
3577
|
+
destination_10.o2(tmp$ret$37, element_10);
|
|
3585
3578
|
}
|
|
3586
3579
|
var tmp_8 = destination_10;
|
|
3587
3580
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3588
3581
|
var capacity_8 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3589
3582
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3590
3583
|
var destination_11 = LinkedHashMap_init_$Create$(capacity_8);
|
|
3591
|
-
var _iterator__ex2g4s_11 = destination_9.
|
|
3592
|
-
while (_iterator__ex2g4s_11.
|
|
3593
|
-
var element_11 = _iterator__ex2g4s_11.
|
|
3594
|
-
var tmp$ret$40 = element_11.
|
|
3595
|
-
destination_11.
|
|
3584
|
+
var _iterator__ex2g4s_11 = destination_9.s();
|
|
3585
|
+
while (_iterator__ex2g4s_11.t()) {
|
|
3586
|
+
var element_11 = _iterator__ex2g4s_11.u();
|
|
3587
|
+
var tmp$ret$40 = element_11.b1f_1;
|
|
3588
|
+
destination_11.o2(tmp$ret$40, element_11);
|
|
3596
3589
|
}
|
|
3597
3590
|
var tmp_9 = plus(tmp_8, destination_11);
|
|
3598
3591
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3599
3592
|
var capacity_9 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3600
3593
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3601
3594
|
var destination_12 = LinkedHashMap_init_$Create$(capacity_9);
|
|
3602
|
-
var _iterator__ex2g4s_12 = destination_9.
|
|
3603
|
-
while (_iterator__ex2g4s_12.
|
|
3604
|
-
var element_12 = _iterator__ex2g4s_12.
|
|
3605
|
-
var tmp$ret$43 = element_12.
|
|
3606
|
-
destination_12.
|
|
3595
|
+
var _iterator__ex2g4s_12 = destination_9.s();
|
|
3596
|
+
while (_iterator__ex2g4s_12.t()) {
|
|
3597
|
+
var element_12 = _iterator__ex2g4s_12.u();
|
|
3598
|
+
var tmp$ret$43 = element_12.y1e_1;
|
|
3599
|
+
destination_12.o2(tmp$ret$43, element_12);
|
|
3607
3600
|
}
|
|
3608
3601
|
var tmp_10 = plus(tmp_9, destination_12);
|
|
3609
3602
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3610
3603
|
var capacity_10 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3611
3604
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3612
3605
|
var destination_13 = LinkedHashMap_init_$Create$(capacity_10);
|
|
3613
|
-
var _iterator__ex2g4s_13 = destination_9.
|
|
3614
|
-
while (_iterator__ex2g4s_13.
|
|
3615
|
-
var element_13 = _iterator__ex2g4s_13.
|
|
3616
|
-
var tmp$ret$46 = element_13.
|
|
3617
|
-
destination_13.
|
|
3618
|
-
}
|
|
3619
|
-
tmp_7.
|
|
3620
|
-
}
|
|
3621
|
-
protoOf(Units).
|
|
3622
|
-
var tmp0_elvis_lhs = this.
|
|
3623
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? this.
|
|
3624
|
-
var unit = tmp1_elvis_lhs == null ? this.
|
|
3606
|
+
var _iterator__ex2g4s_13 = destination_9.s();
|
|
3607
|
+
while (_iterator__ex2g4s_13.t()) {
|
|
3608
|
+
var element_13 = _iterator__ex2g4s_13.u();
|
|
3609
|
+
var tmp$ret$46 = element_13.z1e_1;
|
|
3610
|
+
destination_13.o2(tmp$ret$46, element_13);
|
|
3611
|
+
}
|
|
3612
|
+
tmp_7.k1e_1 = plus(tmp_10, destination_13);
|
|
3613
|
+
}
|
|
3614
|
+
protoOf(Units).l1e = function (name) {
|
|
3615
|
+
var tmp0_elvis_lhs = this.i1e_1.k2(name);
|
|
3616
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? this.j1e_1.k2(name) : tmp0_elvis_lhs;
|
|
3617
|
+
var unit = tmp1_elvis_lhs == null ? this.k1e_1.k2(name) : tmp1_elvis_lhs;
|
|
3625
3618
|
if (!(unit == null)) {
|
|
3626
3619
|
return unit;
|
|
3627
3620
|
} else {
|
|
@@ -3650,38 +3643,38 @@
|
|
|
3650
3643
|
}
|
|
3651
3644
|
function UnitConversions() {
|
|
3652
3645
|
UnitConversions_instance = this;
|
|
3653
|
-
this.
|
|
3654
|
-
this.
|
|
3655
|
-
this.
|
|
3656
|
-
this.
|
|
3657
|
-
this.
|
|
3658
|
-
this.
|
|
3659
|
-
this.
|
|
3660
|
-
}
|
|
3661
|
-
protoOf(UnitConversions).
|
|
3646
|
+
this.q1e_1 = 0.00422675;
|
|
3647
|
+
this.r1e_1 = 0.202884;
|
|
3648
|
+
this.s1e_1 = setOf_0([Units_getInstance().u1d_1, Units_getInstance().v1d_1, Units_getInstance().a1e_1]);
|
|
3649
|
+
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
|
+
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.e1f_1, Units_getInstance().q1d_1), to(0.0, Units_getInstance().w1d_1), to(3.0 * Units_getInstance().w1d_1.e1f_1, Units_getInstance().x1d_1), to(12.0 * Units_getInstance().w1d_1.e1f_1, Units_getInstance().z1d_1), to(192 * Units_getInstance().w1d_1.e1f_1, Units_getInstance().c1e_1), to(768.0 * Units_getInstance().w1d_1.e1f_1, Units_getInstance().d1e_1), to(0.0, Units_getInstance().g1e_1)]);
|
|
3652
|
+
this.w1e_1 = listOf([to(0.0, Units_getInstance().p1d_1), to(16.0 * Units_getInstance().p1d_1.e1f_1, Units_getInstance().q1d_1), to(0.0, Units_getInstance().w1d_1), to(3.0 * Units_getInstance().w1d_1.e1f_1, Units_getInstance().x1d_1), to(6.0 * Units_getInstance().w1d_1.e1f_1, Units_getInstance().y1d_1), to(768.0 * Units_getInstance().w1d_1.e1f_1, Units_getInstance().d1e_1), to(0.0, Units_getInstance().g1e_1)]);
|
|
3653
|
+
}
|
|
3654
|
+
protoOf(UnitConversions).v1j = function (amount) {
|
|
3662
3655
|
var tmp;
|
|
3663
|
-
if (!(amount.
|
|
3664
|
-
var tmp_0 = amount.
|
|
3665
|
-
var tmp0_safe_receiver = amount.
|
|
3656
|
+
if (!(amount.c1d_1 == null)) {
|
|
3657
|
+
var tmp_0 = amount.a1d_1 * amount.c1d_1.e1f_1;
|
|
3658
|
+
var tmp0_safe_receiver = amount.b1d_1;
|
|
3666
3659
|
var tmp_1;
|
|
3667
3660
|
if (tmp0_safe_receiver == null) {
|
|
3668
3661
|
tmp_1 = null;
|
|
3669
3662
|
} else {
|
|
3670
3663
|
// Inline function 'kotlin.let' call
|
|
3671
|
-
tmp_1 = tmp0_safe_receiver * amount.
|
|
3664
|
+
tmp_1 = tmp0_safe_receiver * amount.c1d_1.e1f_1;
|
|
3672
3665
|
}
|
|
3673
3666
|
var tmp_2 = tmp_1;
|
|
3674
|
-
var tmp1_subject = amount.
|
|
3675
|
-
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.
|
|
3676
|
-
tmp = amount.
|
|
3667
|
+
var tmp1_subject = amount.c1d_1.c1f_1;
|
|
3668
|
+
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.s2_1;
|
|
3669
|
+
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);
|
|
3677
3670
|
} else {
|
|
3678
3671
|
tmp = amount;
|
|
3679
3672
|
}
|
|
3680
3673
|
return tmp;
|
|
3681
3674
|
};
|
|
3682
|
-
protoOf(UnitConversions).
|
|
3683
|
-
var tmp = amount.
|
|
3684
|
-
var tmp0_safe_receiver = amount.
|
|
3675
|
+
protoOf(UnitConversions).x1e = function (amount, target, factor, density) {
|
|
3676
|
+
var tmp = amount.a1d_1 * factor;
|
|
3677
|
+
var tmp0_safe_receiver = amount.b1d_1;
|
|
3685
3678
|
var tmp_0;
|
|
3686
3679
|
if (tmp0_safe_receiver == null) {
|
|
3687
3680
|
tmp_0 = null;
|
|
@@ -3689,33 +3682,33 @@
|
|
|
3689
3682
|
// Inline function 'kotlin.let' call
|
|
3690
3683
|
tmp_0 = tmp0_safe_receiver * factor;
|
|
3691
3684
|
}
|
|
3692
|
-
var scaledAmount = amount.
|
|
3693
|
-
if (scaledAmount.
|
|
3685
|
+
var scaledAmount = amount.f1d(tmp, tmp_0);
|
|
3686
|
+
if (scaledAmount.c1d_1 == null || (equals(target, Metric_instance) && factor === 1.0)) {
|
|
3694
3687
|
return scaledAmount;
|
|
3695
3688
|
}
|
|
3696
|
-
var smallestUnitAmount = this.
|
|
3689
|
+
var smallestUnitAmount = this.v1j(scaledAmount);
|
|
3697
3690
|
var tmp_1;
|
|
3698
3691
|
if (equals(target, Metric_instance)) {
|
|
3699
|
-
tmp_1 = contains(this.
|
|
3692
|
+
tmp_1 = contains(this.s1e_1, amount.c1d_1) ? this.t1e_1 : this.u1e_1;
|
|
3700
3693
|
} else if (equals(target, USCustomary_instance)) {
|
|
3701
|
-
tmp_1 = amount.
|
|
3694
|
+
tmp_1 = amount.d1d_1 === true ? this.v1e_1 : this.w1e_1;
|
|
3702
3695
|
} else if (equals(target, Imperial_instance)) {
|
|
3703
|
-
tmp_1 = this.
|
|
3696
|
+
tmp_1 = this.w1e_1;
|
|
3704
3697
|
} else {
|
|
3705
3698
|
noWhenBranchMatchedException();
|
|
3706
3699
|
}
|
|
3707
3700
|
var ladder = tmp_1;
|
|
3708
3701
|
var tmp_2;
|
|
3709
3702
|
var tmp_3;
|
|
3710
|
-
if (amount.
|
|
3711
|
-
var tmp3_safe_receiver = amount.
|
|
3712
|
-
tmp_3 = equals(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
3703
|
+
if (amount.d1d_1 === true && !(density == null)) {
|
|
3704
|
+
var tmp3_safe_receiver = amount.c1d_1;
|
|
3705
|
+
tmp_3 = equals(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.c1f_1, UnitType_WEIGHT_getInstance());
|
|
3713
3706
|
} else {
|
|
3714
3707
|
tmp_3 = false;
|
|
3715
3708
|
}
|
|
3716
3709
|
if (tmp_3) {
|
|
3717
|
-
var tmp_4 = smallestUnitAmount.
|
|
3718
|
-
var tmp2_safe_receiver = smallestUnitAmount.
|
|
3710
|
+
var tmp_4 = smallestUnitAmount.a1d_1 / density;
|
|
3711
|
+
var tmp2_safe_receiver = smallestUnitAmount.b1d_1;
|
|
3719
3712
|
var tmp_5;
|
|
3720
3713
|
if (tmp2_safe_receiver == null) {
|
|
3721
3714
|
tmp_5 = null;
|
|
@@ -3723,7 +3716,7 @@
|
|
|
3723
3716
|
// Inline function 'kotlin.let' call
|
|
3724
3717
|
tmp_5 = tmp2_safe_receiver / density;
|
|
3725
3718
|
}
|
|
3726
|
-
tmp_2 = new Amount(tmp_4, tmp_5, Units_getInstance().
|
|
3719
|
+
tmp_2 = new Amount(tmp_4, tmp_5, Units_getInstance().r1d_1);
|
|
3727
3720
|
} else {
|
|
3728
3721
|
tmp_2 = smallestUnitAmount;
|
|
3729
3722
|
}
|
|
@@ -3731,21 +3724,21 @@
|
|
|
3731
3724
|
// Inline function 'kotlin.collections.filter' call
|
|
3732
3725
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3733
3726
|
var destination = ArrayList_init_$Create$_0();
|
|
3734
|
-
var _iterator__ex2g4s = ladder.
|
|
3735
|
-
while (_iterator__ex2g4s.
|
|
3736
|
-
var element = _iterator__ex2g4s.
|
|
3737
|
-
var tmp0_safe_receiver_0 = amountToConvert.
|
|
3738
|
-
if (equals(element.
|
|
3739
|
-
destination.
|
|
3727
|
+
var _iterator__ex2g4s = ladder.s();
|
|
3728
|
+
while (_iterator__ex2g4s.t()) {
|
|
3729
|
+
var element = _iterator__ex2g4s.u();
|
|
3730
|
+
var tmp0_safe_receiver_0 = amountToConvert.c1d_1;
|
|
3731
|
+
if (equals(element.gd_1.c1f_1, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.c1f_1)) {
|
|
3732
|
+
destination.w(element);
|
|
3740
3733
|
}
|
|
3741
3734
|
}
|
|
3742
3735
|
var tmp$ret$8;
|
|
3743
3736
|
$l$block: {
|
|
3744
3737
|
// Inline function 'kotlin.collections.lastOrNull' call
|
|
3745
|
-
var iterator = destination.
|
|
3746
|
-
while (iterator.
|
|
3747
|
-
var element_0 = iterator.
|
|
3748
|
-
if (amountToConvert.
|
|
3738
|
+
var iterator = destination.e2(destination.y());
|
|
3739
|
+
while (iterator.y3()) {
|
|
3740
|
+
var element_0 = iterator.a4();
|
|
3741
|
+
if (amountToConvert.a1d_1 >= element_0.fd_1) {
|
|
3749
3742
|
tmp$ret$8 = element_0;
|
|
3750
3743
|
break $l$block;
|
|
3751
3744
|
}
|
|
@@ -3753,20 +3746,20 @@
|
|
|
3753
3746
|
tmp$ret$8 = null;
|
|
3754
3747
|
}
|
|
3755
3748
|
var tmp4_safe_receiver = tmp$ret$8;
|
|
3756
|
-
var mostRelevantUnit = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
3749
|
+
var mostRelevantUnit = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.gd_1;
|
|
3757
3750
|
var tmp_6;
|
|
3758
3751
|
if (mostRelevantUnit == null) {
|
|
3759
3752
|
tmp_6 = null;
|
|
3760
3753
|
} else {
|
|
3761
3754
|
// Inline function 'kotlin.let' call
|
|
3762
|
-
var tmp_7 = amountToConvert.
|
|
3763
|
-
var tmp0_safe_receiver_1 = amountToConvert.
|
|
3755
|
+
var tmp_7 = amountToConvert.a1d_1 / mostRelevantUnit.e1f_1;
|
|
3756
|
+
var tmp0_safe_receiver_1 = amountToConvert.b1d_1;
|
|
3764
3757
|
var tmp_8;
|
|
3765
3758
|
if (tmp0_safe_receiver_1 == null) {
|
|
3766
3759
|
tmp_8 = null;
|
|
3767
3760
|
} else {
|
|
3768
3761
|
// Inline function 'kotlin.let' call
|
|
3769
|
-
tmp_8 = tmp0_safe_receiver_1 / mostRelevantUnit.
|
|
3762
|
+
tmp_8 = tmp0_safe_receiver_1 / mostRelevantUnit.e1f_1;
|
|
3770
3763
|
}
|
|
3771
3764
|
tmp_6 = new Amount(tmp_7, tmp_8, mostRelevantUnit);
|
|
3772
3765
|
}
|
|
@@ -3789,11 +3782,11 @@
|
|
|
3789
3782
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
3790
3783
|
var this_0 = get_tolerantJson_0();
|
|
3791
3784
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3792
|
-
var this_1 = this_0.
|
|
3785
|
+
var this_1 = this_0.xl();
|
|
3793
3786
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3794
3787
|
var this_2 = serializer(this_1, createKType(getKClass(RecipeV3), arrayOf([]), false));
|
|
3795
3788
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
3796
|
-
var parsedRecipe = this_0.
|
|
3789
|
+
var parsedRecipe = this_0.u11(tmp$ret$1, recipe);
|
|
3797
3790
|
var tmp;
|
|
3798
3791
|
switch (unit) {
|
|
3799
3792
|
case 'Imperial':
|
|
@@ -3813,21 +3806,21 @@
|
|
|
3813
3806
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
3814
3807
|
var this_3 = Default_getInstance();
|
|
3815
3808
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3816
|
-
var this_4 = this_3.
|
|
3809
|
+
var this_4 = this_3.xl();
|
|
3817
3810
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3818
3811
|
var this_5 = serializer(this_4, createKType(getKClass(RecipeV3), arrayOf([]), false));
|
|
3819
3812
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
3820
|
-
return this_3.
|
|
3813
|
+
return this_3.t11(tmp$ret$4, scaledRecipe);
|
|
3821
3814
|
}
|
|
3822
3815
|
function parseTemplate_0(templateString) {
|
|
3823
3816
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3824
3817
|
var parsedTemplate = parseTemplate(templateString);
|
|
3825
|
-
return parsedTemplate.
|
|
3818
|
+
return parsedTemplate.h1f_1;
|
|
3826
3819
|
}
|
|
3827
3820
|
function renderTemplate(templateElements, session) {
|
|
3828
3821
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3829
3822
|
var template = new ParsedTemplate(templateElements);
|
|
3830
|
-
return session.
|
|
3823
|
+
return session.g1f(template, 1.0, Metric_instance);
|
|
3831
3824
|
}
|
|
3832
3825
|
function createTemplateSession() {
|
|
3833
3826
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
@@ -3839,7 +3832,7 @@
|
|
|
3839
3832
|
}
|
|
3840
3833
|
function tolerantJson$lambda_0($this$Json) {
|
|
3841
3834
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3842
|
-
$this$Json.
|
|
3835
|
+
$this$Json.o12_1 = true;
|
|
3843
3836
|
return Unit_instance;
|
|
3844
3837
|
}
|
|
3845
3838
|
var properties_initialized_ScaleRecipeJsContract_kt_yki7mr;
|
|
@@ -3850,19 +3843,19 @@
|
|
|
3850
3843
|
}
|
|
3851
3844
|
}
|
|
3852
3845
|
//region block: post-declaration
|
|
3853
|
-
protoOf($serializer).
|
|
3854
|
-
protoOf($serializer_0).
|
|
3855
|
-
protoOf($serializer_1).
|
|
3856
|
-
protoOf($serializer_2).
|
|
3857
|
-
protoOf($serializer_3).
|
|
3858
|
-
protoOf($serializer_4).
|
|
3859
|
-
protoOf($serializer_5).
|
|
3860
|
-
protoOf($serializer_6).
|
|
3861
|
-
protoOf($serializer_7).
|
|
3862
|
-
protoOf($serializer_8).
|
|
3863
|
-
protoOf($serializer_9).
|
|
3864
|
-
protoOf($serializer_10).
|
|
3865
|
-
protoOf($serializer_11).
|
|
3846
|
+
protoOf($serializer).us = typeParametersSerializers;
|
|
3847
|
+
protoOf($serializer_0).us = typeParametersSerializers;
|
|
3848
|
+
protoOf($serializer_1).us = typeParametersSerializers;
|
|
3849
|
+
protoOf($serializer_2).us = typeParametersSerializers;
|
|
3850
|
+
protoOf($serializer_3).us = typeParametersSerializers;
|
|
3851
|
+
protoOf($serializer_4).us = typeParametersSerializers;
|
|
3852
|
+
protoOf($serializer_5).us = typeParametersSerializers;
|
|
3853
|
+
protoOf($serializer_6).us = typeParametersSerializers;
|
|
3854
|
+
protoOf($serializer_7).us = typeParametersSerializers;
|
|
3855
|
+
protoOf($serializer_8).us = typeParametersSerializers;
|
|
3856
|
+
protoOf($serializer_9).us = typeParametersSerializers;
|
|
3857
|
+
protoOf($serializer_10).us = typeParametersSerializers;
|
|
3858
|
+
protoOf($serializer_11).us = typeParametersSerializers;
|
|
3866
3859
|
//endregion
|
|
3867
3860
|
//region block: init
|
|
3868
3861
|
Companion_instance_1 = new Companion_0();
|
|
@@ -3888,9 +3881,7 @@
|
|
|
3888
3881
|
var $com$gu$recipe$template = $com$gu$recipe.template || ($com$gu$recipe.template = {});
|
|
3889
3882
|
$com$gu$recipe$template.TemplateConst = TemplateConst;
|
|
3890
3883
|
$com$gu$recipe$template.QuantityPlaceholder = QuantityPlaceholder;
|
|
3891
|
-
defineProp($com$gu$recipe$template.QuantityPlaceholder, 'Companion', Companion_getInstance_7, VOID, true);
|
|
3892
3884
|
$com$gu$recipe$template.OvenTemperaturePlaceholder = OvenTemperaturePlaceholder;
|
|
3893
|
-
defineProp($com$gu$recipe$template.OvenTemperaturePlaceholder, 'Companion', Companion_getInstance_8, VOID, true);
|
|
3894
3885
|
var $com = _.com || (_.com = {});
|
|
3895
3886
|
var $com$gu = $com.gu || ($com.gu = {});
|
|
3896
3887
|
var $com$gu$recipe = $com$gu.recipe || ($com$gu.recipe = {});
|