@guardian/feast-multiplatform-library 3.0.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/feast-multiplatform-library-library.d.ts +94 -0
- package/kotlin/feast-multiplatform-library-library.js +1568 -1451
- package/kotlin/feast-multiplatform-library-library.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +1889 -1488
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1777 -1777
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1536 -1494
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,60 +2,62 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
6
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
7
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
5
|
+
var protoOf = kotlin_kotlin.$_$.n7;
|
|
6
|
+
var initMetadataForObject = kotlin_kotlin.$_$.w6;
|
|
7
|
+
var numberToInt = kotlin_kotlin.$_$.l7;
|
|
8
8
|
var Unit_instance = kotlin_kotlin.$_$.j3;
|
|
9
|
-
var round = kotlin_kotlin.$_$.
|
|
10
|
-
var
|
|
11
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
12
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ha;
|
|
9
|
+
var round = kotlin_kotlin.$_$.q7;
|
|
10
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ia;
|
|
13
11
|
var listOfNotNull = kotlin_kotlin.$_$.x4;
|
|
14
12
|
var joinToString = kotlin_kotlin.$_$.s4;
|
|
15
|
-
var Pair = kotlin_kotlin.$_$.
|
|
16
|
-
var
|
|
13
|
+
var Pair = kotlin_kotlin.$_$.m9;
|
|
14
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.z3;
|
|
15
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
16
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.s6;
|
|
17
17
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
18
18
|
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
19
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
19
|
+
var THROW_CCE = kotlin_kotlin.$_$.o9;
|
|
20
20
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
|
|
21
21
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
22
22
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
|
|
23
23
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
|
|
24
24
|
var VOID = kotlin_kotlin.$_$.b;
|
|
25
25
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
26
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
27
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
28
|
-
var equals = kotlin_kotlin.$_$.
|
|
29
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
26
|
+
var objectCreate = kotlin_kotlin.$_$.m7;
|
|
27
|
+
var getNumberHashCode = kotlin_kotlin.$_$.n6;
|
|
28
|
+
var equals = kotlin_kotlin.$_$.l6;
|
|
29
|
+
var initMetadataForClass = kotlin_kotlin.$_$.r6;
|
|
30
30
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
|
|
31
31
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
|
|
32
|
-
var toString = kotlin_kotlin.$_$.
|
|
33
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
34
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
32
|
+
var toString = kotlin_kotlin.$_$.ka;
|
|
33
|
+
var getStringHashCode = kotlin_kotlin.$_$.p6;
|
|
34
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.m6;
|
|
35
35
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
|
|
36
36
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.c;
|
|
37
|
-
var lazy = kotlin_kotlin.$_$.
|
|
38
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
37
|
+
var lazy = kotlin_kotlin.$_$.ga;
|
|
38
|
+
var hashCode = kotlin_kotlin.$_$.q6;
|
|
39
39
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
40
40
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.e;
|
|
41
|
-
var substring = kotlin_kotlin.$_$.
|
|
41
|
+
var substring = kotlin_kotlin.$_$.p8;
|
|
42
42
|
var charSequenceLength = kotlin_kotlin.$_$.i6;
|
|
43
43
|
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
44
44
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
45
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
46
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
47
|
-
var createKType = kotlin_kotlin.$_$.
|
|
45
|
+
var getKClass = kotlin_kotlin.$_$.z7;
|
|
46
|
+
var arrayOf = kotlin_kotlin.$_$.z9;
|
|
47
|
+
var createKType = kotlin_kotlin.$_$.x7;
|
|
48
48
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
49
49
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
|
|
50
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
50
|
+
var isInterface = kotlin_kotlin.$_$.e7;
|
|
51
51
|
var print = kotlin_kotlin.$_$.m5;
|
|
52
|
-
var Exception = kotlin_kotlin.$_$.
|
|
53
|
-
var substring_0 = kotlin_kotlin.$_$.
|
|
54
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
52
|
+
var Exception = kotlin_kotlin.$_$.j9;
|
|
53
|
+
var substring_0 = kotlin_kotlin.$_$.o8;
|
|
54
|
+
var isBlank = kotlin_kotlin.$_$.h8;
|
|
55
55
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
56
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.u6;
|
|
56
57
|
var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
|
|
57
58
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
|
|
58
|
-
var
|
|
59
|
+
var defineProp = kotlin_kotlin.$_$.k6;
|
|
60
|
+
var toString_0 = kotlin_kotlin.$_$.p7;
|
|
59
61
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
60
62
|
//endregion
|
|
61
63
|
//region block: pre-declaration
|
|
@@ -95,13 +97,14 @@
|
|
|
95
97
|
initMetadataForCompanion(Companion_8);
|
|
96
98
|
initMetadataForObject($serializer_10, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
97
99
|
initMetadataForClass(InstructionsTemplateElement, 'InstructionsTemplateElement', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_10});
|
|
100
|
+
initMetadataForInterface(TemplateElement, 'TemplateElement');
|
|
101
|
+
initMetadataForClass(TemplateConst, 'TemplateConst', VOID, VOID, [TemplateElement]);
|
|
98
102
|
initMetadataForCompanion(Companion_9);
|
|
99
103
|
initMetadataForObject($serializer_11, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
104
|
+
initMetadataForClass(QuantityPlaceholder, 'QuantityPlaceholder', VOID, VOID, [TemplateElement], VOID, VOID, {0: $serializer_getInstance_11});
|
|
100
105
|
initMetadataForCompanion(Companion_10);
|
|
101
106
|
initMetadataForObject($serializer_12, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
102
|
-
initMetadataForClass(
|
|
103
|
-
initMetadataForClass(QuantityPlaceholder, 'QuantityPlaceholder', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_11});
|
|
104
|
-
initMetadataForClass(OvenTemperaturePlaceholder, 'OvenTemperaturePlaceholder', OvenTemperaturePlaceholder, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_12});
|
|
107
|
+
initMetadataForClass(OvenTemperaturePlaceholder, 'OvenTemperaturePlaceholder', OvenTemperaturePlaceholder, VOID, [TemplateElement], VOID, VOID, {0: $serializer_getInstance_12});
|
|
105
108
|
initMetadataForClass(ParsedTemplate, 'ParsedTemplate');
|
|
106
109
|
//endregion
|
|
107
110
|
function Imperial() {
|
|
@@ -154,126 +157,129 @@
|
|
|
154
157
|
}
|
|
155
158
|
return roundedNumber.toString();
|
|
156
159
|
}
|
|
157
|
-
function
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
160
|
+
function renderTemplateElement(element, factor) {
|
|
161
|
+
var tmp;
|
|
162
|
+
if (element instanceof TemplateConst) {
|
|
163
|
+
tmp = element.value;
|
|
164
|
+
} else {
|
|
165
|
+
if (element instanceof QuantityPlaceholder) {
|
|
166
|
+
var max = !(element.min === element.max) ? element.max : null;
|
|
167
|
+
var tmp_0;
|
|
168
|
+
if (element.scale) {
|
|
169
|
+
var scaledMin = element.min * factor;
|
|
170
|
+
var tmp_1;
|
|
171
|
+
if (max == null) {
|
|
172
|
+
tmp_1 = null;
|
|
173
|
+
} else {
|
|
174
|
+
// Inline function 'kotlin.let' call
|
|
175
|
+
tmp_1 = max * factor;
|
|
176
|
+
}
|
|
177
|
+
var scaledMax = tmp_1;
|
|
178
|
+
tmp_0 = new Pair(scaledMin, scaledMax);
|
|
179
|
+
} else {
|
|
180
|
+
tmp_0 = new Pair(element.min, max);
|
|
181
|
+
}
|
|
182
|
+
var _destruct__k2r9zo = tmp_0;
|
|
183
|
+
var scaledMin_0 = _destruct__k2r9zo.cd();
|
|
184
|
+
var scaledMax_0 = _destruct__k2r9zo.dd();
|
|
185
|
+
var unit = !(element.unit == null) ? ' ' + element.unit : '';
|
|
186
|
+
var decimals;
|
|
187
|
+
switch (unit) {
|
|
188
|
+
case 'g':
|
|
189
|
+
case 'ml':
|
|
190
|
+
decimals = 0;
|
|
191
|
+
break;
|
|
192
|
+
default:
|
|
193
|
+
decimals = 2;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
var fraction;
|
|
197
|
+
switch (element.unit) {
|
|
198
|
+
case 'tsp':
|
|
199
|
+
case 'tbsp':
|
|
200
|
+
case 'cup':
|
|
201
|
+
case 'cups':
|
|
202
|
+
fraction = true;
|
|
203
|
+
break;
|
|
204
|
+
case null:
|
|
205
|
+
fraction = true;
|
|
206
|
+
break;
|
|
207
|
+
default:
|
|
208
|
+
fraction = false;
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
var tmp_2;
|
|
212
|
+
if (!(scaledMax_0 == null)) {
|
|
213
|
+
tmp_2 = formatAmount(scaledMin_0, decimals, fraction) + '-' + formatAmount(scaledMax_0, decimals, fraction) + unit;
|
|
214
|
+
} else {
|
|
215
|
+
tmp_2 = formatAmount(scaledMin_0, decimals, fraction) + unit;
|
|
216
|
+
}
|
|
217
|
+
tmp = tmp_2;
|
|
168
218
|
} else {
|
|
169
|
-
if (
|
|
170
|
-
var
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
219
|
+
if (element instanceof OvenTemperaturePlaceholder) {
|
|
220
|
+
var tmp_3;
|
|
221
|
+
if (element.temperatureFanC == null) {
|
|
222
|
+
tmp_3 = null;
|
|
223
|
+
} else {
|
|
224
|
+
// Inline function 'kotlin.let' call
|
|
225
|
+
var tmp_4;
|
|
226
|
+
if (element.temperatureC == null) {
|
|
227
|
+
tmp_4 = '' + element.temperatureFanC + 'C fan';
|
|
177
228
|
} else {
|
|
178
|
-
|
|
179
|
-
tmp_1 = max * factor;
|
|
229
|
+
tmp_4 = ' (' + element.temperatureFanC + 'C fan)';
|
|
180
230
|
}
|
|
181
|
-
|
|
182
|
-
tmp_0 = new Pair(scaledMin, scaledMax);
|
|
183
|
-
} else {
|
|
184
|
-
tmp_0 = new Pair(item.h1c_1, max);
|
|
231
|
+
tmp_3 = tmp_4;
|
|
185
232
|
}
|
|
186
|
-
var
|
|
187
|
-
var
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
case 'ml':
|
|
194
|
-
decimals = 0;
|
|
195
|
-
break;
|
|
196
|
-
default:
|
|
197
|
-
decimals = 2;
|
|
198
|
-
break;
|
|
199
|
-
}
|
|
200
|
-
var fraction;
|
|
201
|
-
switch (item.j1c_1) {
|
|
202
|
-
case 'tsp':
|
|
203
|
-
case 'tbsp':
|
|
204
|
-
case 'cup':
|
|
205
|
-
case 'cups':
|
|
206
|
-
fraction = true;
|
|
207
|
-
break;
|
|
208
|
-
case null:
|
|
209
|
-
fraction = true;
|
|
210
|
-
break;
|
|
211
|
-
default:
|
|
212
|
-
fraction = false;
|
|
213
|
-
break;
|
|
233
|
+
var fanTempC = tmp_3;
|
|
234
|
+
var tmp_5;
|
|
235
|
+
if (element.temperatureC == null) {
|
|
236
|
+
tmp_5 = null;
|
|
237
|
+
} else {
|
|
238
|
+
// Inline function 'kotlin.let' call
|
|
239
|
+
tmp_5 = '' + element.temperatureC + 'C';
|
|
214
240
|
}
|
|
215
|
-
var
|
|
216
|
-
|
|
217
|
-
|
|
241
|
+
var tmp_6 = tmp_5;
|
|
242
|
+
var tmp6_safe_receiver = element.temperatureF;
|
|
243
|
+
var tmp_7;
|
|
244
|
+
if (tmp6_safe_receiver == null) {
|
|
245
|
+
tmp_7 = null;
|
|
218
246
|
} else {
|
|
219
|
-
|
|
247
|
+
// Inline function 'kotlin.let' call
|
|
248
|
+
tmp_7 = '/' + tmp6_safe_receiver + 'F';
|
|
220
249
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
tmp_3 = null;
|
|
227
|
-
} else {
|
|
228
|
-
// Inline function 'kotlin.let' call
|
|
229
|
-
var tmp_4;
|
|
230
|
-
if (item.d1c_1 == null) {
|
|
231
|
-
tmp_4 = '' + item.e1c_1 + 'C fan';
|
|
232
|
-
} else {
|
|
233
|
-
tmp_4 = ' (' + item.e1c_1 + 'C fan)';
|
|
234
|
-
}
|
|
235
|
-
tmp_3 = tmp_4;
|
|
236
|
-
}
|
|
237
|
-
var fanTempC = tmp_3;
|
|
238
|
-
var tmp_5;
|
|
239
|
-
if (item.d1c_1 == null) {
|
|
240
|
-
tmp_5 = null;
|
|
241
|
-
} else {
|
|
242
|
-
// Inline function 'kotlin.let' call
|
|
243
|
-
tmp_5 = '' + item.d1c_1 + 'C';
|
|
244
|
-
}
|
|
245
|
-
var tmp_6 = tmp_5;
|
|
246
|
-
var tmp6_safe_receiver = item.f1c_1;
|
|
247
|
-
var tmp_7;
|
|
248
|
-
if (tmp6_safe_receiver == null) {
|
|
249
|
-
tmp_7 = null;
|
|
250
|
-
} else {
|
|
251
|
-
// Inline function 'kotlin.let' call
|
|
252
|
-
tmp_7 = '/' + tmp6_safe_receiver + 'F';
|
|
253
|
-
}
|
|
254
|
-
var tmp_8 = tmp_7;
|
|
255
|
-
var tmp7_safe_receiver = item.g1c_1;
|
|
256
|
-
var tmp_9;
|
|
257
|
-
if (tmp7_safe_receiver == null) {
|
|
258
|
-
tmp_9 = null;
|
|
259
|
-
} else {
|
|
260
|
-
// Inline function 'kotlin.let' call
|
|
261
|
-
tmp_9 = '/gas mark ' + formatFraction(tmp7_safe_receiver);
|
|
262
|
-
}
|
|
263
|
-
tmp = joinToString(listOfNotNull([tmp_6, fanTempC, tmp_8, tmp_9]), '');
|
|
250
|
+
var tmp_8 = tmp_7;
|
|
251
|
+
var tmp7_safe_receiver = element.gasMark;
|
|
252
|
+
var tmp_9;
|
|
253
|
+
if (tmp7_safe_receiver == null) {
|
|
254
|
+
tmp_9 = null;
|
|
264
255
|
} else {
|
|
265
|
-
|
|
256
|
+
// Inline function 'kotlin.let' call
|
|
257
|
+
tmp_9 = '/gas mark ' + formatFraction(tmp7_safe_receiver);
|
|
266
258
|
}
|
|
259
|
+
tmp = joinToString(listOfNotNull([tmp_6, fanTempC, tmp_8, tmp_9]), '');
|
|
260
|
+
} else {
|
|
261
|
+
noWhenBranchMatchedException();
|
|
267
262
|
}
|
|
268
263
|
}
|
|
269
|
-
|
|
270
|
-
|
|
264
|
+
}
|
|
265
|
+
return tmp;
|
|
266
|
+
}
|
|
267
|
+
function renderTemplate(template, factor) {
|
|
268
|
+
// Inline function 'kotlin.collections.map' call
|
|
269
|
+
var this_0 = template.g1d_1;
|
|
270
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
271
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
272
|
+
var _iterator__ex2g4s = this_0.h();
|
|
273
|
+
while (_iterator__ex2g4s.i()) {
|
|
274
|
+
var item = _iterator__ex2g4s.j();
|
|
275
|
+
var tmp$ret$0 = renderTemplateElement(item, factor);
|
|
276
|
+
destination.f(tmp$ret$0);
|
|
271
277
|
}
|
|
272
278
|
var scaledParts = destination;
|
|
273
279
|
return joinToString(scaledParts, '');
|
|
274
280
|
}
|
|
275
|
-
function
|
|
276
|
-
var tmp0_safe_receiver = recipe.
|
|
281
|
+
function scaleAndConvertUnitRecipe(recipe, factor, unit) {
|
|
282
|
+
var tmp0_safe_receiver = recipe.t1d_1;
|
|
277
283
|
var tmp;
|
|
278
284
|
if (tmp0_safe_receiver == null) {
|
|
279
285
|
tmp = null;
|
|
@@ -284,7 +290,7 @@
|
|
|
284
290
|
var _iterator__ex2g4s = tmp0_safe_receiver.h();
|
|
285
291
|
while (_iterator__ex2g4s.i()) {
|
|
286
292
|
var item = _iterator__ex2g4s.j();
|
|
287
|
-
var tmp0_safe_receiver_0 = item.
|
|
293
|
+
var tmp0_safe_receiver_0 = item.f1e_1;
|
|
288
294
|
var tmp_0;
|
|
289
295
|
if (tmp0_safe_receiver_0 == null) {
|
|
290
296
|
tmp_0 = null;
|
|
@@ -295,28 +301,28 @@
|
|
|
295
301
|
var _iterator__ex2g4s_0 = tmp0_safe_receiver_0.h();
|
|
296
302
|
while (_iterator__ex2g4s_0.i()) {
|
|
297
303
|
var item_0 = _iterator__ex2g4s_0.j();
|
|
298
|
-
var tmp0_safe_receiver_1 = item_0.
|
|
304
|
+
var tmp0_safe_receiver_1 = item_0.p1e_1;
|
|
299
305
|
var tmp_1;
|
|
300
306
|
if (tmp0_safe_receiver_1 == null) {
|
|
301
307
|
tmp_1 = null;
|
|
302
308
|
} else {
|
|
303
309
|
// Inline function 'kotlin.let' call
|
|
304
|
-
tmp_1 =
|
|
310
|
+
tmp_1 = renderTemplate(parseTemplate(tmp0_safe_receiver_1), factor);
|
|
305
311
|
}
|
|
306
312
|
var tmp1_elvis_lhs = tmp_1;
|
|
307
|
-
var scaledText = tmp1_elvis_lhs == null ? item_0.
|
|
308
|
-
var tmp$ret$2 = new IngredientsListIngredientsList(item_0.
|
|
313
|
+
var scaledText = tmp1_elvis_lhs == null ? item_0.n1e_1 : tmp1_elvis_lhs;
|
|
314
|
+
var tmp$ret$2 = new IngredientsListIngredientsList(item_0.h1e_1, item_0.i1e_1, item_0.j1e_1, item_0.k1e_1, item_0.l1e_1, item_0.m1e_1, scaledText, item_0.o1e_1);
|
|
309
315
|
destination_0.f(tmp$ret$2);
|
|
310
316
|
}
|
|
311
317
|
tmp_0 = destination_0;
|
|
312
318
|
}
|
|
313
|
-
var tmp$ret$5 = new IngredientElement(tmp_0, item.
|
|
319
|
+
var tmp$ret$5 = new IngredientElement(tmp_0, item.g1e_1);
|
|
314
320
|
destination.f(tmp$ret$5);
|
|
315
321
|
}
|
|
316
322
|
tmp = destination;
|
|
317
323
|
}
|
|
318
324
|
var scaledIngredients = tmp;
|
|
319
|
-
var tmp1_safe_receiver = recipe.
|
|
325
|
+
var tmp1_safe_receiver = recipe.v1d_1;
|
|
320
326
|
var tmp_2;
|
|
321
327
|
if (tmp1_safe_receiver == null) {
|
|
322
328
|
tmp_2 = null;
|
|
@@ -327,14 +333,14 @@
|
|
|
327
333
|
var _iterator__ex2g4s_1 = tmp1_safe_receiver.h();
|
|
328
334
|
while (_iterator__ex2g4s_1.i()) {
|
|
329
335
|
var item_1 = _iterator__ex2g4s_1.j();
|
|
330
|
-
var description =
|
|
331
|
-
var tmp$ret$8 = new InstructionElement(description, item_1.
|
|
336
|
+
var description = renderTemplate(parseTemplate(item_1.q1e_1), factor);
|
|
337
|
+
var tmp$ret$8 = new InstructionElement(description, item_1.r1e_1, item_1.s1e_1);
|
|
332
338
|
destination_1.f(tmp$ret$8);
|
|
333
339
|
}
|
|
334
340
|
tmp_2 = destination_1;
|
|
335
341
|
}
|
|
336
342
|
var scaledInstructions = tmp_2;
|
|
337
|
-
return new RecipeV2(recipe.
|
|
343
|
+
return new RecipeV2(recipe.h1d_1, recipe.i1d_1, recipe.j1d_1, recipe.k1d_1, recipe.l1d_1, recipe.m1d_1, recipe.n1d_1, recipe.o1d_1, recipe.p1d_1, recipe.q1d_1, recipe.r1d_1, scaledIngredients, scaledInstructions, recipe.w1d_1, recipe.x1d_1, recipe.y1d_1, recipe.z1d_1, recipe.a1e_1, recipe.b1e_1, recipe.c1e_1, recipe.d1e_1, recipe.e1e_1);
|
|
338
344
|
}
|
|
339
345
|
function Companion() {
|
|
340
346
|
}
|
|
@@ -345,63 +351,63 @@
|
|
|
345
351
|
function $serializer() {
|
|
346
352
|
$serializer_instance = this;
|
|
347
353
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.RangeClass', this, 2);
|
|
348
|
-
tmp0_serialDesc.
|
|
349
|
-
tmp0_serialDesc.
|
|
350
|
-
this.
|
|
354
|
+
tmp0_serialDesc.ws('max', true);
|
|
355
|
+
tmp0_serialDesc.ws('min', true);
|
|
356
|
+
this.t1e_1 = tmp0_serialDesc;
|
|
351
357
|
}
|
|
352
|
-
protoOf($serializer).
|
|
353
|
-
var tmp0_desc = this.
|
|
354
|
-
var tmp1_output = encoder.
|
|
355
|
-
if (tmp1_output.
|
|
356
|
-
tmp1_output.
|
|
358
|
+
protoOf($serializer).u1e = function (encoder, value) {
|
|
359
|
+
var tmp0_desc = this.t1e_1;
|
|
360
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
361
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.v1e_1 == null)) {
|
|
362
|
+
tmp1_output.fn(tmp0_desc, 0, DoubleSerializer_getInstance(), value.v1e_1);
|
|
357
363
|
}
|
|
358
|
-
if (tmp1_output.
|
|
359
|
-
tmp1_output.
|
|
364
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.w1e_1 == null)) {
|
|
365
|
+
tmp1_output.fn(tmp0_desc, 1, DoubleSerializer_getInstance(), value.w1e_1);
|
|
360
366
|
}
|
|
361
|
-
tmp1_output.
|
|
367
|
+
tmp1_output.ol(tmp0_desc);
|
|
362
368
|
};
|
|
363
|
-
protoOf($serializer).
|
|
364
|
-
return this.
|
|
369
|
+
protoOf($serializer).ri = function (encoder, value) {
|
|
370
|
+
return this.u1e(encoder, value instanceof RangeClass ? value : THROW_CCE());
|
|
365
371
|
};
|
|
366
|
-
protoOf($serializer).
|
|
367
|
-
var tmp0_desc = this.
|
|
372
|
+
protoOf($serializer).si = function (decoder) {
|
|
373
|
+
var tmp0_desc = this.t1e_1;
|
|
368
374
|
var tmp1_flag = true;
|
|
369
375
|
var tmp2_index = 0;
|
|
370
376
|
var tmp3_bitMask0 = 0;
|
|
371
377
|
var tmp4_local0 = null;
|
|
372
378
|
var tmp5_local1 = null;
|
|
373
|
-
var tmp6_input = decoder.
|
|
374
|
-
if (tmp6_input.
|
|
375
|
-
tmp4_local0 = tmp6_input.
|
|
379
|
+
var tmp6_input = decoder.nl(tmp0_desc);
|
|
380
|
+
if (tmp6_input.dm()) {
|
|
381
|
+
tmp4_local0 = tmp6_input.bm(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
376
382
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
377
|
-
tmp5_local1 = tmp6_input.
|
|
383
|
+
tmp5_local1 = tmp6_input.bm(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1);
|
|
378
384
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
379
385
|
} else
|
|
380
386
|
while (tmp1_flag) {
|
|
381
|
-
tmp2_index = tmp6_input.
|
|
387
|
+
tmp2_index = tmp6_input.em(tmp0_desc);
|
|
382
388
|
switch (tmp2_index) {
|
|
383
389
|
case -1:
|
|
384
390
|
tmp1_flag = false;
|
|
385
391
|
break;
|
|
386
392
|
case 0:
|
|
387
|
-
tmp4_local0 = tmp6_input.
|
|
393
|
+
tmp4_local0 = tmp6_input.bm(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
388
394
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
389
395
|
break;
|
|
390
396
|
case 1:
|
|
391
|
-
tmp5_local1 = tmp6_input.
|
|
397
|
+
tmp5_local1 = tmp6_input.bm(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1);
|
|
392
398
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
393
399
|
break;
|
|
394
400
|
default:
|
|
395
401
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
396
402
|
}
|
|
397
403
|
}
|
|
398
|
-
tmp6_input.
|
|
404
|
+
tmp6_input.ol(tmp0_desc);
|
|
399
405
|
return RangeClass_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
400
406
|
};
|
|
401
|
-
protoOf($serializer).
|
|
402
|
-
return this.
|
|
407
|
+
protoOf($serializer).qi = function () {
|
|
408
|
+
return this.t1e_1;
|
|
403
409
|
};
|
|
404
|
-
protoOf($serializer).
|
|
410
|
+
protoOf($serializer).ys = function () {
|
|
405
411
|
// Inline function 'kotlin.arrayOf' call
|
|
406
412
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
407
413
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -415,16 +421,16 @@
|
|
|
415
421
|
}
|
|
416
422
|
function RangeClass_init_$Init$(seen0, max, min, serializationConstructorMarker, $this) {
|
|
417
423
|
if (!(0 === (0 & seen0))) {
|
|
418
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance().
|
|
424
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance().t1e_1);
|
|
419
425
|
}
|
|
420
426
|
if (0 === (seen0 & 1))
|
|
421
|
-
$this.
|
|
427
|
+
$this.v1e_1 = null;
|
|
422
428
|
else
|
|
423
|
-
$this.
|
|
429
|
+
$this.v1e_1 = max;
|
|
424
430
|
if (0 === (seen0 & 2))
|
|
425
|
-
$this.
|
|
431
|
+
$this.w1e_1 = null;
|
|
426
432
|
else
|
|
427
|
-
$this.
|
|
433
|
+
$this.w1e_1 = min;
|
|
428
434
|
return $this;
|
|
429
435
|
}
|
|
430
436
|
function RangeClass_init_$Create$(seen0, max, min, serializationConstructorMarker) {
|
|
@@ -433,15 +439,15 @@
|
|
|
433
439
|
function RangeClass(max, min) {
|
|
434
440
|
max = max === VOID ? null : max;
|
|
435
441
|
min = min === VOID ? null : min;
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
442
|
+
this.v1e_1 = max;
|
|
443
|
+
this.w1e_1 = min;
|
|
438
444
|
}
|
|
439
445
|
protoOf(RangeClass).toString = function () {
|
|
440
|
-
return 'RangeClass(max=' + this.
|
|
446
|
+
return 'RangeClass(max=' + this.v1e_1 + ', min=' + this.w1e_1 + ')';
|
|
441
447
|
};
|
|
442
448
|
protoOf(RangeClass).hashCode = function () {
|
|
443
|
-
var result = this.
|
|
444
|
-
result = imul(result, 31) + (this.
|
|
449
|
+
var result = this.v1e_1 == null ? 0 : getNumberHashCode(this.v1e_1);
|
|
450
|
+
result = imul(result, 31) + (this.w1e_1 == null ? 0 : getNumberHashCode(this.w1e_1)) | 0;
|
|
445
451
|
return result;
|
|
446
452
|
};
|
|
447
453
|
protoOf(RangeClass).equals = function (other) {
|
|
@@ -449,9 +455,9 @@
|
|
|
449
455
|
return true;
|
|
450
456
|
if (!(other instanceof RangeClass))
|
|
451
457
|
return false;
|
|
452
|
-
if (!equals(this.
|
|
458
|
+
if (!equals(this.v1e_1, other.v1e_1))
|
|
453
459
|
return false;
|
|
454
|
-
if (!equals(this.
|
|
460
|
+
if (!equals(this.w1e_1, other.w1e_1))
|
|
455
461
|
return false;
|
|
456
462
|
return true;
|
|
457
463
|
};
|
|
@@ -464,50 +470,50 @@
|
|
|
464
470
|
function $serializer_0() {
|
|
465
471
|
$serializer_instance_0 = this;
|
|
466
472
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsListIngredientsList', this, 8);
|
|
467
|
-
tmp0_serialDesc.
|
|
468
|
-
tmp0_serialDesc.
|
|
469
|
-
tmp0_serialDesc.
|
|
470
|
-
tmp0_serialDesc.
|
|
471
|
-
tmp0_serialDesc.
|
|
472
|
-
tmp0_serialDesc.
|
|
473
|
-
tmp0_serialDesc.
|
|
474
|
-
tmp0_serialDesc.
|
|
475
|
-
this.
|
|
473
|
+
tmp0_serialDesc.ws('amount', true);
|
|
474
|
+
tmp0_serialDesc.ws('ingredientId', true);
|
|
475
|
+
tmp0_serialDesc.ws('name', true);
|
|
476
|
+
tmp0_serialDesc.ws('optional', true);
|
|
477
|
+
tmp0_serialDesc.ws('prefix', true);
|
|
478
|
+
tmp0_serialDesc.ws('suffix', true);
|
|
479
|
+
tmp0_serialDesc.ws('text', true);
|
|
480
|
+
tmp0_serialDesc.ws('unit', true);
|
|
481
|
+
this.x1e_1 = tmp0_serialDesc;
|
|
476
482
|
}
|
|
477
|
-
protoOf($serializer_0).
|
|
478
|
-
var tmp0_desc = this.
|
|
479
|
-
var tmp1_output = encoder.
|
|
480
|
-
if (tmp1_output.
|
|
481
|
-
tmp1_output.
|
|
483
|
+
protoOf($serializer_0).y1e = function (encoder, value) {
|
|
484
|
+
var tmp0_desc = this.x1e_1;
|
|
485
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
486
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.z1e_1 == null)) {
|
|
487
|
+
tmp1_output.fn(tmp0_desc, 0, $serializer_getInstance(), value.z1e_1);
|
|
482
488
|
}
|
|
483
|
-
if (tmp1_output.
|
|
484
|
-
tmp1_output.
|
|
489
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.a1f_1 == null)) {
|
|
490
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.a1f_1);
|
|
485
491
|
}
|
|
486
|
-
if (tmp1_output.
|
|
487
|
-
tmp1_output.
|
|
492
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.b1f_1 == null)) {
|
|
493
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.b1f_1);
|
|
488
494
|
}
|
|
489
|
-
if (tmp1_output.
|
|
490
|
-
tmp1_output.
|
|
495
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.c1f_1 == null)) {
|
|
496
|
+
tmp1_output.fn(tmp0_desc, 3, BooleanSerializer_getInstance(), value.c1f_1);
|
|
491
497
|
}
|
|
492
|
-
if (tmp1_output.
|
|
493
|
-
tmp1_output.
|
|
498
|
+
if (tmp1_output.jn(tmp0_desc, 4) ? true : !(value.d1f_1 == null)) {
|
|
499
|
+
tmp1_output.fn(tmp0_desc, 4, StringSerializer_getInstance(), value.d1f_1);
|
|
494
500
|
}
|
|
495
|
-
if (tmp1_output.
|
|
496
|
-
tmp1_output.
|
|
501
|
+
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.e1f_1 == null)) {
|
|
502
|
+
tmp1_output.fn(tmp0_desc, 5, StringSerializer_getInstance(), value.e1f_1);
|
|
497
503
|
}
|
|
498
|
-
if (tmp1_output.
|
|
499
|
-
tmp1_output.
|
|
504
|
+
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.f1f_1 == null)) {
|
|
505
|
+
tmp1_output.fn(tmp0_desc, 6, StringSerializer_getInstance(), value.f1f_1);
|
|
500
506
|
}
|
|
501
|
-
if (tmp1_output.
|
|
502
|
-
tmp1_output.
|
|
507
|
+
if (tmp1_output.jn(tmp0_desc, 7) ? true : !(value.g1f_1 == null)) {
|
|
508
|
+
tmp1_output.fn(tmp0_desc, 7, StringSerializer_getInstance(), value.g1f_1);
|
|
503
509
|
}
|
|
504
|
-
tmp1_output.
|
|
510
|
+
tmp1_output.ol(tmp0_desc);
|
|
505
511
|
};
|
|
506
|
-
protoOf($serializer_0).
|
|
507
|
-
return this.
|
|
512
|
+
protoOf($serializer_0).ri = function (encoder, value) {
|
|
513
|
+
return this.y1e(encoder, value instanceof IngredientsListIngredientsList ? value : THROW_CCE());
|
|
508
514
|
};
|
|
509
|
-
protoOf($serializer_0).
|
|
510
|
-
var tmp0_desc = this.
|
|
515
|
+
protoOf($serializer_0).si = function (decoder) {
|
|
516
|
+
var tmp0_desc = this.x1e_1;
|
|
511
517
|
var tmp1_flag = true;
|
|
512
518
|
var tmp2_index = 0;
|
|
513
519
|
var tmp3_bitMask0 = 0;
|
|
@@ -519,74 +525,74 @@
|
|
|
519
525
|
var tmp9_local5 = null;
|
|
520
526
|
var tmp10_local6 = null;
|
|
521
527
|
var tmp11_local7 = null;
|
|
522
|
-
var tmp12_input = decoder.
|
|
523
|
-
if (tmp12_input.
|
|
524
|
-
tmp4_local0 = tmp12_input.
|
|
528
|
+
var tmp12_input = decoder.nl(tmp0_desc);
|
|
529
|
+
if (tmp12_input.dm()) {
|
|
530
|
+
tmp4_local0 = tmp12_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
525
531
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
526
|
-
tmp5_local1 = tmp12_input.
|
|
532
|
+
tmp5_local1 = tmp12_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
527
533
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
528
|
-
tmp6_local2 = tmp12_input.
|
|
534
|
+
tmp6_local2 = tmp12_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
529
535
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
530
|
-
tmp7_local3 = tmp12_input.
|
|
536
|
+
tmp7_local3 = tmp12_input.bm(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
531
537
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
532
|
-
tmp8_local4 = tmp12_input.
|
|
538
|
+
tmp8_local4 = tmp12_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
533
539
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
534
|
-
tmp9_local5 = tmp12_input.
|
|
540
|
+
tmp9_local5 = tmp12_input.bm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
535
541
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
536
|
-
tmp10_local6 = tmp12_input.
|
|
542
|
+
tmp10_local6 = tmp12_input.bm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
537
543
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
538
|
-
tmp11_local7 = tmp12_input.
|
|
544
|
+
tmp11_local7 = tmp12_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
539
545
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
540
546
|
} else
|
|
541
547
|
while (tmp1_flag) {
|
|
542
|
-
tmp2_index = tmp12_input.
|
|
548
|
+
tmp2_index = tmp12_input.em(tmp0_desc);
|
|
543
549
|
switch (tmp2_index) {
|
|
544
550
|
case -1:
|
|
545
551
|
tmp1_flag = false;
|
|
546
552
|
break;
|
|
547
553
|
case 0:
|
|
548
|
-
tmp4_local0 = tmp12_input.
|
|
554
|
+
tmp4_local0 = tmp12_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
549
555
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
550
556
|
break;
|
|
551
557
|
case 1:
|
|
552
|
-
tmp5_local1 = tmp12_input.
|
|
558
|
+
tmp5_local1 = tmp12_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
553
559
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
554
560
|
break;
|
|
555
561
|
case 2:
|
|
556
|
-
tmp6_local2 = tmp12_input.
|
|
562
|
+
tmp6_local2 = tmp12_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
557
563
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
558
564
|
break;
|
|
559
565
|
case 3:
|
|
560
|
-
tmp7_local3 = tmp12_input.
|
|
566
|
+
tmp7_local3 = tmp12_input.bm(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
561
567
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
562
568
|
break;
|
|
563
569
|
case 4:
|
|
564
|
-
tmp8_local4 = tmp12_input.
|
|
570
|
+
tmp8_local4 = tmp12_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
565
571
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
566
572
|
break;
|
|
567
573
|
case 5:
|
|
568
|
-
tmp9_local5 = tmp12_input.
|
|
574
|
+
tmp9_local5 = tmp12_input.bm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
569
575
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
570
576
|
break;
|
|
571
577
|
case 6:
|
|
572
|
-
tmp10_local6 = tmp12_input.
|
|
578
|
+
tmp10_local6 = tmp12_input.bm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
573
579
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
574
580
|
break;
|
|
575
581
|
case 7:
|
|
576
|
-
tmp11_local7 = tmp12_input.
|
|
582
|
+
tmp11_local7 = tmp12_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
577
583
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
578
584
|
break;
|
|
579
585
|
default:
|
|
580
586
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
581
587
|
}
|
|
582
588
|
}
|
|
583
|
-
tmp12_input.
|
|
589
|
+
tmp12_input.ol(tmp0_desc);
|
|
584
590
|
return IngredientsListIngredientsList_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
585
591
|
};
|
|
586
|
-
protoOf($serializer_0).
|
|
587
|
-
return this.
|
|
592
|
+
protoOf($serializer_0).qi = function () {
|
|
593
|
+
return this.x1e_1;
|
|
588
594
|
};
|
|
589
|
-
protoOf($serializer_0).
|
|
595
|
+
protoOf($serializer_0).ys = function () {
|
|
590
596
|
// Inline function 'kotlin.arrayOf' call
|
|
591
597
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
592
598
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -600,40 +606,40 @@
|
|
|
600
606
|
}
|
|
601
607
|
function IngredientsListIngredientsList_init_$Init$(seen0, amount, ingredientID, name, optional, prefix, suffix, text, unit, serializationConstructorMarker, $this) {
|
|
602
608
|
if (!(0 === (0 & seen0))) {
|
|
603
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_0().
|
|
609
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_0().x1e_1);
|
|
604
610
|
}
|
|
605
611
|
if (0 === (seen0 & 1))
|
|
606
|
-
$this.
|
|
612
|
+
$this.z1e_1 = null;
|
|
607
613
|
else
|
|
608
|
-
$this.
|
|
614
|
+
$this.z1e_1 = amount;
|
|
609
615
|
if (0 === (seen0 & 2))
|
|
610
|
-
$this.
|
|
616
|
+
$this.a1f_1 = null;
|
|
611
617
|
else
|
|
612
|
-
$this.
|
|
618
|
+
$this.a1f_1 = ingredientID;
|
|
613
619
|
if (0 === (seen0 & 4))
|
|
614
|
-
$this.
|
|
620
|
+
$this.b1f_1 = null;
|
|
615
621
|
else
|
|
616
|
-
$this.
|
|
622
|
+
$this.b1f_1 = name;
|
|
617
623
|
if (0 === (seen0 & 8))
|
|
618
|
-
$this.
|
|
624
|
+
$this.c1f_1 = null;
|
|
619
625
|
else
|
|
620
|
-
$this.
|
|
626
|
+
$this.c1f_1 = optional;
|
|
621
627
|
if (0 === (seen0 & 16))
|
|
622
|
-
$this.
|
|
628
|
+
$this.d1f_1 = null;
|
|
623
629
|
else
|
|
624
|
-
$this.
|
|
630
|
+
$this.d1f_1 = prefix;
|
|
625
631
|
if (0 === (seen0 & 32))
|
|
626
|
-
$this.
|
|
632
|
+
$this.e1f_1 = null;
|
|
627
633
|
else
|
|
628
|
-
$this.
|
|
634
|
+
$this.e1f_1 = suffix;
|
|
629
635
|
if (0 === (seen0 & 64))
|
|
630
|
-
$this.
|
|
636
|
+
$this.f1f_1 = null;
|
|
631
637
|
else
|
|
632
|
-
$this.
|
|
638
|
+
$this.f1f_1 = text;
|
|
633
639
|
if (0 === (seen0 & 128))
|
|
634
|
-
$this.
|
|
640
|
+
$this.g1f_1 = null;
|
|
635
641
|
else
|
|
636
|
-
$this.
|
|
642
|
+
$this.g1f_1 = unit;
|
|
637
643
|
return $this;
|
|
638
644
|
}
|
|
639
645
|
function IngredientsListIngredientsList_init_$Create$(seen0, amount, ingredientID, name, optional, prefix, suffix, text, unit, serializationConstructorMarker) {
|
|
@@ -648,27 +654,27 @@
|
|
|
648
654
|
suffix = suffix === VOID ? null : suffix;
|
|
649
655
|
text = text === VOID ? null : text;
|
|
650
656
|
unit = unit === VOID ? null : unit;
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
657
|
+
this.z1e_1 = amount;
|
|
658
|
+
this.a1f_1 = ingredientID;
|
|
659
|
+
this.b1f_1 = name;
|
|
660
|
+
this.c1f_1 = optional;
|
|
661
|
+
this.d1f_1 = prefix;
|
|
662
|
+
this.e1f_1 = suffix;
|
|
663
|
+
this.f1f_1 = text;
|
|
664
|
+
this.g1f_1 = unit;
|
|
659
665
|
}
|
|
660
666
|
protoOf(IngredientsListIngredientsList).toString = function () {
|
|
661
|
-
return 'IngredientsListIngredientsList(amount=' + toString(this.
|
|
667
|
+
return 'IngredientsListIngredientsList(amount=' + toString(this.z1e_1) + ', ingredientID=' + this.a1f_1 + ', name=' + this.b1f_1 + ', optional=' + this.c1f_1 + ', prefix=' + this.d1f_1 + ', suffix=' + this.e1f_1 + ', text=' + this.f1f_1 + ', unit=' + this.g1f_1 + ')';
|
|
662
668
|
};
|
|
663
669
|
protoOf(IngredientsListIngredientsList).hashCode = function () {
|
|
664
|
-
var result = this.
|
|
665
|
-
result = imul(result, 31) + (this.
|
|
666
|
-
result = imul(result, 31) + (this.
|
|
667
|
-
result = imul(result, 31) + (this.
|
|
668
|
-
result = imul(result, 31) + (this.
|
|
669
|
-
result = imul(result, 31) + (this.
|
|
670
|
-
result = imul(result, 31) + (this.
|
|
671
|
-
result = imul(result, 31) + (this.
|
|
670
|
+
var result = this.z1e_1 == null ? 0 : this.z1e_1.hashCode();
|
|
671
|
+
result = imul(result, 31) + (this.a1f_1 == null ? 0 : getStringHashCode(this.a1f_1)) | 0;
|
|
672
|
+
result = imul(result, 31) + (this.b1f_1 == null ? 0 : getStringHashCode(this.b1f_1)) | 0;
|
|
673
|
+
result = imul(result, 31) + (this.c1f_1 == null ? 0 : getBooleanHashCode(this.c1f_1)) | 0;
|
|
674
|
+
result = imul(result, 31) + (this.d1f_1 == null ? 0 : getStringHashCode(this.d1f_1)) | 0;
|
|
675
|
+
result = imul(result, 31) + (this.e1f_1 == null ? 0 : getStringHashCode(this.e1f_1)) | 0;
|
|
676
|
+
result = imul(result, 31) + (this.f1f_1 == null ? 0 : getStringHashCode(this.f1f_1)) | 0;
|
|
677
|
+
result = imul(result, 31) + (this.g1f_1 == null ? 0 : getStringHashCode(this.g1f_1)) | 0;
|
|
672
678
|
return result;
|
|
673
679
|
};
|
|
674
680
|
protoOf(IngredientsListIngredientsList).equals = function (other) {
|
|
@@ -676,21 +682,21 @@
|
|
|
676
682
|
return true;
|
|
677
683
|
if (!(other instanceof IngredientsListIngredientsList))
|
|
678
684
|
return false;
|
|
679
|
-
if (!equals(this.
|
|
685
|
+
if (!equals(this.z1e_1, other.z1e_1))
|
|
680
686
|
return false;
|
|
681
|
-
if (!(this.
|
|
687
|
+
if (!(this.a1f_1 == other.a1f_1))
|
|
682
688
|
return false;
|
|
683
|
-
if (!(this.
|
|
689
|
+
if (!(this.b1f_1 == other.b1f_1))
|
|
684
690
|
return false;
|
|
685
|
-
if (!(this.
|
|
691
|
+
if (!(this.c1f_1 == other.c1f_1))
|
|
686
692
|
return false;
|
|
687
|
-
if (!(this.
|
|
693
|
+
if (!(this.d1f_1 == other.d1f_1))
|
|
688
694
|
return false;
|
|
689
|
-
if (!(this.
|
|
695
|
+
if (!(this.e1f_1 == other.e1f_1))
|
|
690
696
|
return false;
|
|
691
|
-
if (!(this.
|
|
697
|
+
if (!(this.f1f_1 == other.f1f_1))
|
|
692
698
|
return false;
|
|
693
|
-
if (!(this.
|
|
699
|
+
if (!(this.g1f_1 == other.g1f_1))
|
|
694
700
|
return false;
|
|
695
701
|
return true;
|
|
696
702
|
};
|
|
@@ -759,7 +765,7 @@
|
|
|
759
765
|
// Inline function 'kotlin.arrayOf' call
|
|
760
766
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
761
767
|
// Inline function 'kotlin.js.asDynamic' call
|
|
762
|
-
tmp.
|
|
768
|
+
tmp.h1f_1 = [null, tmp_1, null, tmp_3, null, tmp_5, tmp_7, null, null, null, null, tmp_9, tmp_11, null, tmp_13, tmp_15, tmp_17, tmp_19, tmp_21, null, lazy(tmp_22, RecipeV2$Companion$$childSerializers$_anonymous__obtsao_10), null];
|
|
763
769
|
}
|
|
764
770
|
var Companion_instance_1;
|
|
765
771
|
function Companion_getInstance_1() {
|
|
@@ -770,105 +776,105 @@
|
|
|
770
776
|
function $serializer_1() {
|
|
771
777
|
$serializer_instance_1 = this;
|
|
772
778
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.RecipeV2', this, 22);
|
|
773
|
-
tmp0_serialDesc.
|
|
774
|
-
tmp0_serialDesc.
|
|
775
|
-
tmp0_serialDesc.
|
|
776
|
-
tmp0_serialDesc.
|
|
777
|
-
tmp0_serialDesc.
|
|
778
|
-
tmp0_serialDesc.
|
|
779
|
-
tmp0_serialDesc.
|
|
780
|
-
tmp0_serialDesc.
|
|
781
|
-
tmp0_serialDesc.
|
|
782
|
-
tmp0_serialDesc.
|
|
783
|
-
tmp0_serialDesc.
|
|
784
|
-
tmp0_serialDesc.
|
|
785
|
-
tmp0_serialDesc.
|
|
786
|
-
tmp0_serialDesc.
|
|
787
|
-
tmp0_serialDesc.
|
|
788
|
-
tmp0_serialDesc.
|
|
789
|
-
tmp0_serialDesc.
|
|
790
|
-
tmp0_serialDesc.
|
|
791
|
-
tmp0_serialDesc.
|
|
792
|
-
tmp0_serialDesc.
|
|
793
|
-
tmp0_serialDesc.
|
|
794
|
-
tmp0_serialDesc.
|
|
795
|
-
this.
|
|
779
|
+
tmp0_serialDesc.ws('bookCredit', true);
|
|
780
|
+
tmp0_serialDesc.ws('byline', true);
|
|
781
|
+
tmp0_serialDesc.ws('canonicalArticle', true);
|
|
782
|
+
tmp0_serialDesc.ws('celebrationIds', true);
|
|
783
|
+
tmp0_serialDesc.ws('composerId', true);
|
|
784
|
+
tmp0_serialDesc.ws('contributors', true);
|
|
785
|
+
tmp0_serialDesc.ws('cuisineIds', true);
|
|
786
|
+
tmp0_serialDesc.ws('description', true);
|
|
787
|
+
tmp0_serialDesc.ws('difficultyLevel', true);
|
|
788
|
+
tmp0_serialDesc.ws('featuredImage', true);
|
|
789
|
+
tmp0_serialDesc.ws('id', false);
|
|
790
|
+
tmp0_serialDesc.ws('ingredients', true);
|
|
791
|
+
tmp0_serialDesc.ws('instructions', true);
|
|
792
|
+
tmp0_serialDesc.ws('isAppReady', true);
|
|
793
|
+
tmp0_serialDesc.ws('mealTypeIds', true);
|
|
794
|
+
tmp0_serialDesc.ws('serves', true);
|
|
795
|
+
tmp0_serialDesc.ws('suitableForDietIds', true);
|
|
796
|
+
tmp0_serialDesc.ws('techniquesUsedIds', true);
|
|
797
|
+
tmp0_serialDesc.ws('timings', true);
|
|
798
|
+
tmp0_serialDesc.ws('title', true);
|
|
799
|
+
tmp0_serialDesc.ws('utensilsAndApplianceIds', true);
|
|
800
|
+
tmp0_serialDesc.ws('webPublicationDate', true);
|
|
801
|
+
this.i1f_1 = tmp0_serialDesc;
|
|
796
802
|
}
|
|
797
|
-
protoOf($serializer_1).
|
|
798
|
-
var tmp0_desc = this.
|
|
799
|
-
var tmp1_output = encoder.
|
|
800
|
-
var tmp2_cached = Companion_getInstance_1().
|
|
801
|
-
if (tmp1_output.
|
|
802
|
-
tmp1_output.
|
|
803
|
+
protoOf($serializer_1).j1f = function (encoder, value) {
|
|
804
|
+
var tmp0_desc = this.i1f_1;
|
|
805
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
806
|
+
var tmp2_cached = Companion_getInstance_1().h1f_1;
|
|
807
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.k1f_1 == null)) {
|
|
808
|
+
tmp1_output.fn(tmp0_desc, 0, StringSerializer_getInstance(), value.k1f_1);
|
|
803
809
|
}
|
|
804
|
-
if (tmp1_output.
|
|
805
|
-
tmp1_output.
|
|
810
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.l1f_1 == null)) {
|
|
811
|
+
tmp1_output.fn(tmp0_desc, 1, tmp2_cached[1].t1(), value.l1f_1);
|
|
806
812
|
}
|
|
807
|
-
if (tmp1_output.
|
|
808
|
-
tmp1_output.
|
|
813
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.m1f_1 == null)) {
|
|
814
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.m1f_1);
|
|
809
815
|
}
|
|
810
|
-
if (tmp1_output.
|
|
811
|
-
tmp1_output.
|
|
816
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.n1f_1 == null)) {
|
|
817
|
+
tmp1_output.fn(tmp0_desc, 3, tmp2_cached[3].t1(), value.n1f_1);
|
|
812
818
|
}
|
|
813
|
-
if (tmp1_output.
|
|
814
|
-
tmp1_output.
|
|
819
|
+
if (tmp1_output.jn(tmp0_desc, 4) ? true : !(value.o1f_1 == null)) {
|
|
820
|
+
tmp1_output.fn(tmp0_desc, 4, StringSerializer_getInstance(), value.o1f_1);
|
|
815
821
|
}
|
|
816
|
-
if (tmp1_output.
|
|
817
|
-
tmp1_output.
|
|
822
|
+
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.p1f_1 == null)) {
|
|
823
|
+
tmp1_output.fn(tmp0_desc, 5, tmp2_cached[5].t1(), value.p1f_1);
|
|
818
824
|
}
|
|
819
|
-
if (tmp1_output.
|
|
820
|
-
tmp1_output.
|
|
825
|
+
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.q1f_1 == null)) {
|
|
826
|
+
tmp1_output.fn(tmp0_desc, 6, tmp2_cached[6].t1(), value.q1f_1);
|
|
821
827
|
}
|
|
822
|
-
if (tmp1_output.
|
|
823
|
-
tmp1_output.
|
|
828
|
+
if (tmp1_output.jn(tmp0_desc, 7) ? true : !(value.r1f_1 == null)) {
|
|
829
|
+
tmp1_output.fn(tmp0_desc, 7, StringSerializer_getInstance(), value.r1f_1);
|
|
824
830
|
}
|
|
825
|
-
if (tmp1_output.
|
|
826
|
-
tmp1_output.
|
|
831
|
+
if (tmp1_output.jn(tmp0_desc, 8) ? true : !(value.s1f_1 == null)) {
|
|
832
|
+
tmp1_output.fn(tmp0_desc, 8, StringSerializer_getInstance(), value.s1f_1);
|
|
827
833
|
}
|
|
828
|
-
if (tmp1_output.
|
|
829
|
-
tmp1_output.
|
|
834
|
+
if (tmp1_output.jn(tmp0_desc, 9) ? true : !(value.t1f_1 == null)) {
|
|
835
|
+
tmp1_output.fn(tmp0_desc, 9, $serializer_getInstance_2(), value.t1f_1);
|
|
830
836
|
}
|
|
831
|
-
tmp1_output.
|
|
832
|
-
if (tmp1_output.
|
|
833
|
-
tmp1_output.
|
|
837
|
+
tmp1_output.bn(tmp0_desc, 10, value.u1f_1);
|
|
838
|
+
if (tmp1_output.jn(tmp0_desc, 11) ? true : !(value.v1f_1 == null)) {
|
|
839
|
+
tmp1_output.fn(tmp0_desc, 11, tmp2_cached[11].t1(), value.v1f_1);
|
|
834
840
|
}
|
|
835
|
-
if (tmp1_output.
|
|
836
|
-
tmp1_output.
|
|
841
|
+
if (tmp1_output.jn(tmp0_desc, 12) ? true : !(value.w1f_1 == null)) {
|
|
842
|
+
tmp1_output.fn(tmp0_desc, 12, tmp2_cached[12].t1(), value.w1f_1);
|
|
837
843
|
}
|
|
838
|
-
if (tmp1_output.
|
|
839
|
-
tmp1_output.
|
|
844
|
+
if (tmp1_output.jn(tmp0_desc, 13) ? true : !(value.x1f_1 == null)) {
|
|
845
|
+
tmp1_output.fn(tmp0_desc, 13, BooleanSerializer_getInstance(), value.x1f_1);
|
|
840
846
|
}
|
|
841
|
-
if (tmp1_output.
|
|
842
|
-
tmp1_output.
|
|
847
|
+
if (tmp1_output.jn(tmp0_desc, 14) ? true : !(value.y1f_1 == null)) {
|
|
848
|
+
tmp1_output.fn(tmp0_desc, 14, tmp2_cached[14].t1(), value.y1f_1);
|
|
843
849
|
}
|
|
844
|
-
if (tmp1_output.
|
|
845
|
-
tmp1_output.
|
|
850
|
+
if (tmp1_output.jn(tmp0_desc, 15) ? true : !(value.z1f_1 == null)) {
|
|
851
|
+
tmp1_output.fn(tmp0_desc, 15, tmp2_cached[15].t1(), value.z1f_1);
|
|
846
852
|
}
|
|
847
|
-
if (tmp1_output.
|
|
848
|
-
tmp1_output.
|
|
853
|
+
if (tmp1_output.jn(tmp0_desc, 16) ? true : !(value.a1g_1 == null)) {
|
|
854
|
+
tmp1_output.fn(tmp0_desc, 16, tmp2_cached[16].t1(), value.a1g_1);
|
|
849
855
|
}
|
|
850
|
-
if (tmp1_output.
|
|
851
|
-
tmp1_output.
|
|
856
|
+
if (tmp1_output.jn(tmp0_desc, 17) ? true : !(value.b1g_1 == null)) {
|
|
857
|
+
tmp1_output.fn(tmp0_desc, 17, tmp2_cached[17].t1(), value.b1g_1);
|
|
852
858
|
}
|
|
853
|
-
if (tmp1_output.
|
|
854
|
-
tmp1_output.
|
|
859
|
+
if (tmp1_output.jn(tmp0_desc, 18) ? true : !(value.c1g_1 == null)) {
|
|
860
|
+
tmp1_output.fn(tmp0_desc, 18, tmp2_cached[18].t1(), value.c1g_1);
|
|
855
861
|
}
|
|
856
|
-
if (tmp1_output.
|
|
857
|
-
tmp1_output.
|
|
862
|
+
if (tmp1_output.jn(tmp0_desc, 19) ? true : !(value.d1g_1 == null)) {
|
|
863
|
+
tmp1_output.fn(tmp0_desc, 19, StringSerializer_getInstance(), value.d1g_1);
|
|
858
864
|
}
|
|
859
|
-
if (tmp1_output.
|
|
860
|
-
tmp1_output.
|
|
865
|
+
if (tmp1_output.jn(tmp0_desc, 20) ? true : !(value.e1g_1 == null)) {
|
|
866
|
+
tmp1_output.fn(tmp0_desc, 20, tmp2_cached[20].t1(), value.e1g_1);
|
|
861
867
|
}
|
|
862
|
-
if (tmp1_output.
|
|
863
|
-
tmp1_output.
|
|
868
|
+
if (tmp1_output.jn(tmp0_desc, 21) ? true : !(value.f1g_1 == null)) {
|
|
869
|
+
tmp1_output.fn(tmp0_desc, 21, StringSerializer_getInstance(), value.f1g_1);
|
|
864
870
|
}
|
|
865
|
-
tmp1_output.
|
|
871
|
+
tmp1_output.ol(tmp0_desc);
|
|
866
872
|
};
|
|
867
|
-
protoOf($serializer_1).
|
|
868
|
-
return this.
|
|
873
|
+
protoOf($serializer_1).ri = function (encoder, value) {
|
|
874
|
+
return this.j1f(encoder, value instanceof RecipeV2 ? value : THROW_CCE());
|
|
869
875
|
};
|
|
870
|
-
protoOf($serializer_1).
|
|
871
|
-
var tmp0_desc = this.
|
|
876
|
+
protoOf($serializer_1).si = function (decoder) {
|
|
877
|
+
var tmp0_desc = this.i1f_1;
|
|
872
878
|
var tmp1_flag = true;
|
|
873
879
|
var tmp2_index = 0;
|
|
874
880
|
var tmp3_bitMask0 = 0;
|
|
@@ -894,164 +900,164 @@
|
|
|
894
900
|
var tmp23_local19 = null;
|
|
895
901
|
var tmp24_local20 = null;
|
|
896
902
|
var tmp25_local21 = null;
|
|
897
|
-
var tmp26_input = decoder.
|
|
898
|
-
var tmp27_cached = Companion_getInstance_1().
|
|
899
|
-
if (tmp26_input.
|
|
900
|
-
tmp4_local0 = tmp26_input.
|
|
903
|
+
var tmp26_input = decoder.nl(tmp0_desc);
|
|
904
|
+
var tmp27_cached = Companion_getInstance_1().h1f_1;
|
|
905
|
+
if (tmp26_input.dm()) {
|
|
906
|
+
tmp4_local0 = tmp26_input.bm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
901
907
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
902
|
-
tmp5_local1 = tmp26_input.
|
|
908
|
+
tmp5_local1 = tmp26_input.bm(tmp0_desc, 1, tmp27_cached[1].t1(), tmp5_local1);
|
|
903
909
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
904
|
-
tmp6_local2 = tmp26_input.
|
|
910
|
+
tmp6_local2 = tmp26_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
905
911
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
906
|
-
tmp7_local3 = tmp26_input.
|
|
912
|
+
tmp7_local3 = tmp26_input.bm(tmp0_desc, 3, tmp27_cached[3].t1(), tmp7_local3);
|
|
907
913
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
908
|
-
tmp8_local4 = tmp26_input.
|
|
914
|
+
tmp8_local4 = tmp26_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
909
915
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
910
|
-
tmp9_local5 = tmp26_input.
|
|
916
|
+
tmp9_local5 = tmp26_input.bm(tmp0_desc, 5, tmp27_cached[5].t1(), tmp9_local5);
|
|
911
917
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
912
|
-
tmp10_local6 = tmp26_input.
|
|
918
|
+
tmp10_local6 = tmp26_input.bm(tmp0_desc, 6, tmp27_cached[6].t1(), tmp10_local6);
|
|
913
919
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
914
|
-
tmp11_local7 = tmp26_input.
|
|
920
|
+
tmp11_local7 = tmp26_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
915
921
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
916
|
-
tmp12_local8 = tmp26_input.
|
|
922
|
+
tmp12_local8 = tmp26_input.bm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
917
923
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
918
|
-
tmp13_local9 = tmp26_input.
|
|
924
|
+
tmp13_local9 = tmp26_input.bm(tmp0_desc, 9, $serializer_getInstance_2(), tmp13_local9);
|
|
919
925
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
920
|
-
tmp14_local10 = tmp26_input.
|
|
926
|
+
tmp14_local10 = tmp26_input.xl(tmp0_desc, 10);
|
|
921
927
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
922
|
-
tmp15_local11 = tmp26_input.
|
|
928
|
+
tmp15_local11 = tmp26_input.bm(tmp0_desc, 11, tmp27_cached[11].t1(), tmp15_local11);
|
|
923
929
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
924
|
-
tmp16_local12 = tmp26_input.
|
|
930
|
+
tmp16_local12 = tmp26_input.bm(tmp0_desc, 12, tmp27_cached[12].t1(), tmp16_local12);
|
|
925
931
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
926
|
-
tmp17_local13 = tmp26_input.
|
|
932
|
+
tmp17_local13 = tmp26_input.bm(tmp0_desc, 13, BooleanSerializer_getInstance(), tmp17_local13);
|
|
927
933
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
928
|
-
tmp18_local14 = tmp26_input.
|
|
934
|
+
tmp18_local14 = tmp26_input.bm(tmp0_desc, 14, tmp27_cached[14].t1(), tmp18_local14);
|
|
929
935
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
930
|
-
tmp19_local15 = tmp26_input.
|
|
936
|
+
tmp19_local15 = tmp26_input.bm(tmp0_desc, 15, tmp27_cached[15].t1(), tmp19_local15);
|
|
931
937
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
932
|
-
tmp20_local16 = tmp26_input.
|
|
938
|
+
tmp20_local16 = tmp26_input.bm(tmp0_desc, 16, tmp27_cached[16].t1(), tmp20_local16);
|
|
933
939
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
934
|
-
tmp21_local17 = tmp26_input.
|
|
940
|
+
tmp21_local17 = tmp26_input.bm(tmp0_desc, 17, tmp27_cached[17].t1(), tmp21_local17);
|
|
935
941
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
936
|
-
tmp22_local18 = tmp26_input.
|
|
942
|
+
tmp22_local18 = tmp26_input.bm(tmp0_desc, 18, tmp27_cached[18].t1(), tmp22_local18);
|
|
937
943
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
938
|
-
tmp23_local19 = tmp26_input.
|
|
944
|
+
tmp23_local19 = tmp26_input.bm(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
|
|
939
945
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
940
|
-
tmp24_local20 = tmp26_input.
|
|
946
|
+
tmp24_local20 = tmp26_input.bm(tmp0_desc, 20, tmp27_cached[20].t1(), tmp24_local20);
|
|
941
947
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
942
|
-
tmp25_local21 = tmp26_input.
|
|
948
|
+
tmp25_local21 = tmp26_input.bm(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
|
|
943
949
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
944
950
|
} else
|
|
945
951
|
while (tmp1_flag) {
|
|
946
|
-
tmp2_index = tmp26_input.
|
|
952
|
+
tmp2_index = tmp26_input.em(tmp0_desc);
|
|
947
953
|
switch (tmp2_index) {
|
|
948
954
|
case -1:
|
|
949
955
|
tmp1_flag = false;
|
|
950
956
|
break;
|
|
951
957
|
case 0:
|
|
952
|
-
tmp4_local0 = tmp26_input.
|
|
958
|
+
tmp4_local0 = tmp26_input.bm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
953
959
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
954
960
|
break;
|
|
955
961
|
case 1:
|
|
956
|
-
tmp5_local1 = tmp26_input.
|
|
962
|
+
tmp5_local1 = tmp26_input.bm(tmp0_desc, 1, tmp27_cached[1].t1(), tmp5_local1);
|
|
957
963
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
958
964
|
break;
|
|
959
965
|
case 2:
|
|
960
|
-
tmp6_local2 = tmp26_input.
|
|
966
|
+
tmp6_local2 = tmp26_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
961
967
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
962
968
|
break;
|
|
963
969
|
case 3:
|
|
964
|
-
tmp7_local3 = tmp26_input.
|
|
970
|
+
tmp7_local3 = tmp26_input.bm(tmp0_desc, 3, tmp27_cached[3].t1(), tmp7_local3);
|
|
965
971
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
966
972
|
break;
|
|
967
973
|
case 4:
|
|
968
|
-
tmp8_local4 = tmp26_input.
|
|
974
|
+
tmp8_local4 = tmp26_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
969
975
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
970
976
|
break;
|
|
971
977
|
case 5:
|
|
972
|
-
tmp9_local5 = tmp26_input.
|
|
978
|
+
tmp9_local5 = tmp26_input.bm(tmp0_desc, 5, tmp27_cached[5].t1(), tmp9_local5);
|
|
973
979
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
974
980
|
break;
|
|
975
981
|
case 6:
|
|
976
|
-
tmp10_local6 = tmp26_input.
|
|
982
|
+
tmp10_local6 = tmp26_input.bm(tmp0_desc, 6, tmp27_cached[6].t1(), tmp10_local6);
|
|
977
983
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
978
984
|
break;
|
|
979
985
|
case 7:
|
|
980
|
-
tmp11_local7 = tmp26_input.
|
|
986
|
+
tmp11_local7 = tmp26_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
981
987
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
982
988
|
break;
|
|
983
989
|
case 8:
|
|
984
|
-
tmp12_local8 = tmp26_input.
|
|
990
|
+
tmp12_local8 = tmp26_input.bm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
985
991
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
986
992
|
break;
|
|
987
993
|
case 9:
|
|
988
|
-
tmp13_local9 = tmp26_input.
|
|
994
|
+
tmp13_local9 = tmp26_input.bm(tmp0_desc, 9, $serializer_getInstance_2(), tmp13_local9);
|
|
989
995
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
990
996
|
break;
|
|
991
997
|
case 10:
|
|
992
|
-
tmp14_local10 = tmp26_input.
|
|
998
|
+
tmp14_local10 = tmp26_input.xl(tmp0_desc, 10);
|
|
993
999
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
994
1000
|
break;
|
|
995
1001
|
case 11:
|
|
996
|
-
tmp15_local11 = tmp26_input.
|
|
1002
|
+
tmp15_local11 = tmp26_input.bm(tmp0_desc, 11, tmp27_cached[11].t1(), tmp15_local11);
|
|
997
1003
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
998
1004
|
break;
|
|
999
1005
|
case 12:
|
|
1000
|
-
tmp16_local12 = tmp26_input.
|
|
1006
|
+
tmp16_local12 = tmp26_input.bm(tmp0_desc, 12, tmp27_cached[12].t1(), tmp16_local12);
|
|
1001
1007
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
1002
1008
|
break;
|
|
1003
1009
|
case 13:
|
|
1004
|
-
tmp17_local13 = tmp26_input.
|
|
1010
|
+
tmp17_local13 = tmp26_input.bm(tmp0_desc, 13, BooleanSerializer_getInstance(), tmp17_local13);
|
|
1005
1011
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
1006
1012
|
break;
|
|
1007
1013
|
case 14:
|
|
1008
|
-
tmp18_local14 = tmp26_input.
|
|
1014
|
+
tmp18_local14 = tmp26_input.bm(tmp0_desc, 14, tmp27_cached[14].t1(), tmp18_local14);
|
|
1009
1015
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
1010
1016
|
break;
|
|
1011
1017
|
case 15:
|
|
1012
|
-
tmp19_local15 = tmp26_input.
|
|
1018
|
+
tmp19_local15 = tmp26_input.bm(tmp0_desc, 15, tmp27_cached[15].t1(), tmp19_local15);
|
|
1013
1019
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
1014
1020
|
break;
|
|
1015
1021
|
case 16:
|
|
1016
|
-
tmp20_local16 = tmp26_input.
|
|
1022
|
+
tmp20_local16 = tmp26_input.bm(tmp0_desc, 16, tmp27_cached[16].t1(), tmp20_local16);
|
|
1017
1023
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
1018
1024
|
break;
|
|
1019
1025
|
case 17:
|
|
1020
|
-
tmp21_local17 = tmp26_input.
|
|
1026
|
+
tmp21_local17 = tmp26_input.bm(tmp0_desc, 17, tmp27_cached[17].t1(), tmp21_local17);
|
|
1021
1027
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
1022
1028
|
break;
|
|
1023
1029
|
case 18:
|
|
1024
|
-
tmp22_local18 = tmp26_input.
|
|
1030
|
+
tmp22_local18 = tmp26_input.bm(tmp0_desc, 18, tmp27_cached[18].t1(), tmp22_local18);
|
|
1025
1031
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
1026
1032
|
break;
|
|
1027
1033
|
case 19:
|
|
1028
|
-
tmp23_local19 = tmp26_input.
|
|
1034
|
+
tmp23_local19 = tmp26_input.bm(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
|
|
1029
1035
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
1030
1036
|
break;
|
|
1031
1037
|
case 20:
|
|
1032
|
-
tmp24_local20 = tmp26_input.
|
|
1038
|
+
tmp24_local20 = tmp26_input.bm(tmp0_desc, 20, tmp27_cached[20].t1(), tmp24_local20);
|
|
1033
1039
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
1034
1040
|
break;
|
|
1035
1041
|
case 21:
|
|
1036
|
-
tmp25_local21 = tmp26_input.
|
|
1042
|
+
tmp25_local21 = tmp26_input.bm(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
|
|
1037
1043
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
1038
1044
|
break;
|
|
1039
1045
|
default:
|
|
1040
1046
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1041
1047
|
}
|
|
1042
1048
|
}
|
|
1043
|
-
tmp26_input.
|
|
1049
|
+
tmp26_input.ol(tmp0_desc);
|
|
1044
1050
|
return RecipeV2_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, null);
|
|
1045
1051
|
};
|
|
1046
|
-
protoOf($serializer_1).
|
|
1047
|
-
return this.
|
|
1052
|
+
protoOf($serializer_1).qi = function () {
|
|
1053
|
+
return this.i1f_1;
|
|
1048
1054
|
};
|
|
1049
|
-
protoOf($serializer_1).
|
|
1050
|
-
var tmp0_cached = Companion_getInstance_1().
|
|
1055
|
+
protoOf($serializer_1).ys = function () {
|
|
1056
|
+
var tmp0_cached = Companion_getInstance_1().h1f_1;
|
|
1051
1057
|
// Inline function 'kotlin.arrayOf' call
|
|
1052
1058
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1053
1059
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1054
|
-
return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1].
|
|
1060
|
+
return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[3].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[5].t1()), get_nullable(tmp0_cached[6].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_2()), StringSerializer_getInstance(), get_nullable(tmp0_cached[11].t1()), get_nullable(tmp0_cached[12].t1()), get_nullable(BooleanSerializer_getInstance()), get_nullable(tmp0_cached[14].t1()), get_nullable(tmp0_cached[15].t1()), get_nullable(tmp0_cached[16].t1()), get_nullable(tmp0_cached[17].t1()), get_nullable(tmp0_cached[18].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[20].t1()), get_nullable(StringSerializer_getInstance())];
|
|
1055
1061
|
};
|
|
1056
1062
|
var $serializer_instance_1;
|
|
1057
1063
|
function $serializer_getInstance_1() {
|
|
@@ -1061,93 +1067,93 @@
|
|
|
1061
1067
|
}
|
|
1062
1068
|
function RecipeV2_init_$Init$(seen0, bookCredit, byline, canonicalArticle, celebrationIDS, composerID, contributors, cuisineIDS, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIDS, serves, suitableForDietIDS, techniquesUsedIDS, timings, title, utensilsAndApplianceIDS, webPublicationDate, serializationConstructorMarker, $this) {
|
|
1063
1069
|
if (!(1024 === (1024 & seen0))) {
|
|
1064
|
-
throwMissingFieldException(seen0, 1024, $serializer_getInstance_1().
|
|
1070
|
+
throwMissingFieldException(seen0, 1024, $serializer_getInstance_1().i1f_1);
|
|
1065
1071
|
}
|
|
1066
1072
|
if (0 === (seen0 & 1))
|
|
1067
|
-
$this.
|
|
1073
|
+
$this.k1f_1 = null;
|
|
1068
1074
|
else
|
|
1069
|
-
$this.
|
|
1075
|
+
$this.k1f_1 = bookCredit;
|
|
1070
1076
|
if (0 === (seen0 & 2))
|
|
1071
|
-
$this.
|
|
1077
|
+
$this.l1f_1 = null;
|
|
1072
1078
|
else
|
|
1073
|
-
$this.
|
|
1079
|
+
$this.l1f_1 = byline;
|
|
1074
1080
|
if (0 === (seen0 & 4))
|
|
1075
|
-
$this.
|
|
1081
|
+
$this.m1f_1 = null;
|
|
1076
1082
|
else
|
|
1077
|
-
$this.
|
|
1083
|
+
$this.m1f_1 = canonicalArticle;
|
|
1078
1084
|
if (0 === (seen0 & 8))
|
|
1079
|
-
$this.
|
|
1085
|
+
$this.n1f_1 = null;
|
|
1080
1086
|
else
|
|
1081
|
-
$this.
|
|
1087
|
+
$this.n1f_1 = celebrationIDS;
|
|
1082
1088
|
if (0 === (seen0 & 16))
|
|
1083
|
-
$this.
|
|
1089
|
+
$this.o1f_1 = null;
|
|
1084
1090
|
else
|
|
1085
|
-
$this.
|
|
1091
|
+
$this.o1f_1 = composerID;
|
|
1086
1092
|
if (0 === (seen0 & 32))
|
|
1087
|
-
$this.
|
|
1093
|
+
$this.p1f_1 = null;
|
|
1088
1094
|
else
|
|
1089
|
-
$this.
|
|
1095
|
+
$this.p1f_1 = contributors;
|
|
1090
1096
|
if (0 === (seen0 & 64))
|
|
1091
|
-
$this.
|
|
1097
|
+
$this.q1f_1 = null;
|
|
1092
1098
|
else
|
|
1093
|
-
$this.
|
|
1099
|
+
$this.q1f_1 = cuisineIDS;
|
|
1094
1100
|
if (0 === (seen0 & 128))
|
|
1095
|
-
$this.
|
|
1101
|
+
$this.r1f_1 = null;
|
|
1096
1102
|
else
|
|
1097
|
-
$this.
|
|
1103
|
+
$this.r1f_1 = description;
|
|
1098
1104
|
if (0 === (seen0 & 256))
|
|
1099
|
-
$this.
|
|
1105
|
+
$this.s1f_1 = null;
|
|
1100
1106
|
else
|
|
1101
|
-
$this.
|
|
1107
|
+
$this.s1f_1 = difficultyLevel;
|
|
1102
1108
|
if (0 === (seen0 & 512))
|
|
1103
|
-
$this.
|
|
1109
|
+
$this.t1f_1 = null;
|
|
1104
1110
|
else
|
|
1105
|
-
$this.
|
|
1106
|
-
$this.
|
|
1111
|
+
$this.t1f_1 = featuredImage;
|
|
1112
|
+
$this.u1f_1 = id;
|
|
1107
1113
|
if (0 === (seen0 & 2048))
|
|
1108
|
-
$this.
|
|
1114
|
+
$this.v1f_1 = null;
|
|
1109
1115
|
else
|
|
1110
|
-
$this.
|
|
1116
|
+
$this.v1f_1 = ingredients;
|
|
1111
1117
|
if (0 === (seen0 & 4096))
|
|
1112
|
-
$this.
|
|
1118
|
+
$this.w1f_1 = null;
|
|
1113
1119
|
else
|
|
1114
|
-
$this.
|
|
1120
|
+
$this.w1f_1 = instructions;
|
|
1115
1121
|
if (0 === (seen0 & 8192))
|
|
1116
|
-
$this.
|
|
1122
|
+
$this.x1f_1 = null;
|
|
1117
1123
|
else
|
|
1118
|
-
$this.
|
|
1124
|
+
$this.x1f_1 = isAppReady;
|
|
1119
1125
|
if (0 === (seen0 & 16384))
|
|
1120
|
-
$this.
|
|
1126
|
+
$this.y1f_1 = null;
|
|
1121
1127
|
else
|
|
1122
|
-
$this.
|
|
1128
|
+
$this.y1f_1 = mealTypeIDS;
|
|
1123
1129
|
if (0 === (seen0 & 32768))
|
|
1124
|
-
$this.
|
|
1130
|
+
$this.z1f_1 = null;
|
|
1125
1131
|
else
|
|
1126
|
-
$this.
|
|
1132
|
+
$this.z1f_1 = serves;
|
|
1127
1133
|
if (0 === (seen0 & 65536))
|
|
1128
|
-
$this.
|
|
1134
|
+
$this.a1g_1 = null;
|
|
1129
1135
|
else
|
|
1130
|
-
$this.
|
|
1136
|
+
$this.a1g_1 = suitableForDietIDS;
|
|
1131
1137
|
if (0 === (seen0 & 131072))
|
|
1132
|
-
$this.
|
|
1138
|
+
$this.b1g_1 = null;
|
|
1133
1139
|
else
|
|
1134
|
-
$this.
|
|
1140
|
+
$this.b1g_1 = techniquesUsedIDS;
|
|
1135
1141
|
if (0 === (seen0 & 262144))
|
|
1136
|
-
$this.
|
|
1142
|
+
$this.c1g_1 = null;
|
|
1137
1143
|
else
|
|
1138
|
-
$this.
|
|
1144
|
+
$this.c1g_1 = timings;
|
|
1139
1145
|
if (0 === (seen0 & 524288))
|
|
1140
|
-
$this.
|
|
1146
|
+
$this.d1g_1 = null;
|
|
1141
1147
|
else
|
|
1142
|
-
$this.
|
|
1148
|
+
$this.d1g_1 = title;
|
|
1143
1149
|
if (0 === (seen0 & 1048576))
|
|
1144
|
-
$this.
|
|
1150
|
+
$this.e1g_1 = null;
|
|
1145
1151
|
else
|
|
1146
|
-
$this.
|
|
1152
|
+
$this.e1g_1 = utensilsAndApplianceIDS;
|
|
1147
1153
|
if (0 === (seen0 & 2097152))
|
|
1148
|
-
$this.
|
|
1154
|
+
$this.f1g_1 = null;
|
|
1149
1155
|
else
|
|
1150
|
-
$this.
|
|
1156
|
+
$this.f1g_1 = webPublicationDate;
|
|
1151
1157
|
return $this;
|
|
1152
1158
|
}
|
|
1153
1159
|
function RecipeV2_init_$Create$(seen0, bookCredit, byline, canonicalArticle, celebrationIDS, composerID, contributors, cuisineIDS, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIDS, serves, suitableForDietIDS, techniquesUsedIDS, timings, title, utensilsAndApplianceIDS, webPublicationDate, serializationConstructorMarker) {
|
|
@@ -1176,55 +1182,55 @@
|
|
|
1176
1182
|
title = title === VOID ? null : title;
|
|
1177
1183
|
utensilsAndApplianceIDS = utensilsAndApplianceIDS === VOID ? null : utensilsAndApplianceIDS;
|
|
1178
1184
|
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
1179
|
-
this.
|
|
1180
|
-
this.
|
|
1181
|
-
this.
|
|
1182
|
-
this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1185
|
-
this.
|
|
1186
|
-
this.
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1189
|
-
this.
|
|
1190
|
-
this.
|
|
1191
|
-
this.
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1194
|
-
this.
|
|
1195
|
-
this.
|
|
1196
|
-
this.
|
|
1197
|
-
this.
|
|
1198
|
-
this.
|
|
1199
|
-
this.
|
|
1200
|
-
this.
|
|
1185
|
+
this.k1f_1 = bookCredit;
|
|
1186
|
+
this.l1f_1 = byline;
|
|
1187
|
+
this.m1f_1 = canonicalArticle;
|
|
1188
|
+
this.n1f_1 = celebrationIDS;
|
|
1189
|
+
this.o1f_1 = composerID;
|
|
1190
|
+
this.p1f_1 = contributors;
|
|
1191
|
+
this.q1f_1 = cuisineIDS;
|
|
1192
|
+
this.r1f_1 = description;
|
|
1193
|
+
this.s1f_1 = difficultyLevel;
|
|
1194
|
+
this.t1f_1 = featuredImage;
|
|
1195
|
+
this.u1f_1 = id;
|
|
1196
|
+
this.v1f_1 = ingredients;
|
|
1197
|
+
this.w1f_1 = instructions;
|
|
1198
|
+
this.x1f_1 = isAppReady;
|
|
1199
|
+
this.y1f_1 = mealTypeIDS;
|
|
1200
|
+
this.z1f_1 = serves;
|
|
1201
|
+
this.a1g_1 = suitableForDietIDS;
|
|
1202
|
+
this.b1g_1 = techniquesUsedIDS;
|
|
1203
|
+
this.c1g_1 = timings;
|
|
1204
|
+
this.d1g_1 = title;
|
|
1205
|
+
this.e1g_1 = utensilsAndApplianceIDS;
|
|
1206
|
+
this.f1g_1 = webPublicationDate;
|
|
1201
1207
|
}
|
|
1202
1208
|
protoOf(RecipeV2).toString = function () {
|
|
1203
|
-
return 'RecipeV2(bookCredit=' + this.
|
|
1209
|
+
return 'RecipeV2(bookCredit=' + this.k1f_1 + ', byline=' + toString(this.l1f_1) + ', canonicalArticle=' + this.m1f_1 + ', celebrationIDS=' + toString(this.n1f_1) + ', composerID=' + this.o1f_1 + ', contributors=' + toString(this.p1f_1) + ', cuisineIDS=' + toString(this.q1f_1) + ', description=' + this.r1f_1 + ', difficultyLevel=' + this.s1f_1 + ', featuredImage=' + toString(this.t1f_1) + ', id=' + this.u1f_1 + ', ingredients=' + toString(this.v1f_1) + ', instructions=' + toString(this.w1f_1) + ', isAppReady=' + this.x1f_1 + ', mealTypeIDS=' + toString(this.y1f_1) + ', serves=' + toString(this.z1f_1) + ', suitableForDietIDS=' + toString(this.a1g_1) + ', techniquesUsedIDS=' + toString(this.b1g_1) + ', timings=' + toString(this.c1g_1) + ', title=' + this.d1g_1 + ', utensilsAndApplianceIDS=' + toString(this.e1g_1) + ', webPublicationDate=' + this.f1g_1 + ')';
|
|
1204
1210
|
};
|
|
1205
1211
|
protoOf(RecipeV2).hashCode = function () {
|
|
1206
|
-
var result = this.
|
|
1207
|
-
result = imul(result, 31) + (this.
|
|
1208
|
-
result = imul(result, 31) + (this.
|
|
1209
|
-
result = imul(result, 31) + (this.
|
|
1210
|
-
result = imul(result, 31) + (this.
|
|
1211
|
-
result = imul(result, 31) + (this.
|
|
1212
|
-
result = imul(result, 31) + (this.
|
|
1213
|
-
result = imul(result, 31) + (this.
|
|
1214
|
-
result = imul(result, 31) + (this.
|
|
1215
|
-
result = imul(result, 31) + (this.
|
|
1216
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1217
|
-
result = imul(result, 31) + (this.
|
|
1218
|
-
result = imul(result, 31) + (this.
|
|
1219
|
-
result = imul(result, 31) + (this.
|
|
1220
|
-
result = imul(result, 31) + (this.
|
|
1221
|
-
result = imul(result, 31) + (this.
|
|
1222
|
-
result = imul(result, 31) + (this.
|
|
1223
|
-
result = imul(result, 31) + (this.
|
|
1224
|
-
result = imul(result, 31) + (this.
|
|
1225
|
-
result = imul(result, 31) + (this.
|
|
1226
|
-
result = imul(result, 31) + (this.
|
|
1227
|
-
result = imul(result, 31) + (this.
|
|
1212
|
+
var result = this.k1f_1 == null ? 0 : getStringHashCode(this.k1f_1);
|
|
1213
|
+
result = imul(result, 31) + (this.l1f_1 == null ? 0 : hashCode(this.l1f_1)) | 0;
|
|
1214
|
+
result = imul(result, 31) + (this.m1f_1 == null ? 0 : getStringHashCode(this.m1f_1)) | 0;
|
|
1215
|
+
result = imul(result, 31) + (this.n1f_1 == null ? 0 : hashCode(this.n1f_1)) | 0;
|
|
1216
|
+
result = imul(result, 31) + (this.o1f_1 == null ? 0 : getStringHashCode(this.o1f_1)) | 0;
|
|
1217
|
+
result = imul(result, 31) + (this.p1f_1 == null ? 0 : hashCode(this.p1f_1)) | 0;
|
|
1218
|
+
result = imul(result, 31) + (this.q1f_1 == null ? 0 : hashCode(this.q1f_1)) | 0;
|
|
1219
|
+
result = imul(result, 31) + (this.r1f_1 == null ? 0 : getStringHashCode(this.r1f_1)) | 0;
|
|
1220
|
+
result = imul(result, 31) + (this.s1f_1 == null ? 0 : getStringHashCode(this.s1f_1)) | 0;
|
|
1221
|
+
result = imul(result, 31) + (this.t1f_1 == null ? 0 : this.t1f_1.hashCode()) | 0;
|
|
1222
|
+
result = imul(result, 31) + getStringHashCode(this.u1f_1) | 0;
|
|
1223
|
+
result = imul(result, 31) + (this.v1f_1 == null ? 0 : hashCode(this.v1f_1)) | 0;
|
|
1224
|
+
result = imul(result, 31) + (this.w1f_1 == null ? 0 : hashCode(this.w1f_1)) | 0;
|
|
1225
|
+
result = imul(result, 31) + (this.x1f_1 == null ? 0 : getBooleanHashCode(this.x1f_1)) | 0;
|
|
1226
|
+
result = imul(result, 31) + (this.y1f_1 == null ? 0 : hashCode(this.y1f_1)) | 0;
|
|
1227
|
+
result = imul(result, 31) + (this.z1f_1 == null ? 0 : hashCode(this.z1f_1)) | 0;
|
|
1228
|
+
result = imul(result, 31) + (this.a1g_1 == null ? 0 : hashCode(this.a1g_1)) | 0;
|
|
1229
|
+
result = imul(result, 31) + (this.b1g_1 == null ? 0 : hashCode(this.b1g_1)) | 0;
|
|
1230
|
+
result = imul(result, 31) + (this.c1g_1 == null ? 0 : hashCode(this.c1g_1)) | 0;
|
|
1231
|
+
result = imul(result, 31) + (this.d1g_1 == null ? 0 : getStringHashCode(this.d1g_1)) | 0;
|
|
1232
|
+
result = imul(result, 31) + (this.e1g_1 == null ? 0 : hashCode(this.e1g_1)) | 0;
|
|
1233
|
+
result = imul(result, 31) + (this.f1g_1 == null ? 0 : getStringHashCode(this.f1g_1)) | 0;
|
|
1228
1234
|
return result;
|
|
1229
1235
|
};
|
|
1230
1236
|
protoOf(RecipeV2).equals = function (other) {
|
|
@@ -1232,93 +1238,93 @@
|
|
|
1232
1238
|
return true;
|
|
1233
1239
|
if (!(other instanceof RecipeV2))
|
|
1234
1240
|
return false;
|
|
1235
|
-
if (!(this.
|
|
1241
|
+
if (!(this.k1f_1 == other.k1f_1))
|
|
1236
1242
|
return false;
|
|
1237
|
-
if (!equals(this.
|
|
1243
|
+
if (!equals(this.l1f_1, other.l1f_1))
|
|
1238
1244
|
return false;
|
|
1239
|
-
if (!(this.
|
|
1245
|
+
if (!(this.m1f_1 == other.m1f_1))
|
|
1240
1246
|
return false;
|
|
1241
|
-
if (!equals(this.
|
|
1247
|
+
if (!equals(this.n1f_1, other.n1f_1))
|
|
1242
1248
|
return false;
|
|
1243
|
-
if (!(this.
|
|
1249
|
+
if (!(this.o1f_1 == other.o1f_1))
|
|
1244
1250
|
return false;
|
|
1245
|
-
if (!equals(this.
|
|
1251
|
+
if (!equals(this.p1f_1, other.p1f_1))
|
|
1246
1252
|
return false;
|
|
1247
|
-
if (!equals(this.
|
|
1253
|
+
if (!equals(this.q1f_1, other.q1f_1))
|
|
1248
1254
|
return false;
|
|
1249
|
-
if (!(this.
|
|
1255
|
+
if (!(this.r1f_1 == other.r1f_1))
|
|
1250
1256
|
return false;
|
|
1251
|
-
if (!(this.
|
|
1257
|
+
if (!(this.s1f_1 == other.s1f_1))
|
|
1252
1258
|
return false;
|
|
1253
|
-
if (!equals(this.
|
|
1259
|
+
if (!equals(this.t1f_1, other.t1f_1))
|
|
1254
1260
|
return false;
|
|
1255
|
-
if (!(this.
|
|
1261
|
+
if (!(this.u1f_1 === other.u1f_1))
|
|
1256
1262
|
return false;
|
|
1257
|
-
if (!equals(this.
|
|
1263
|
+
if (!equals(this.v1f_1, other.v1f_1))
|
|
1258
1264
|
return false;
|
|
1259
|
-
if (!equals(this.
|
|
1265
|
+
if (!equals(this.w1f_1, other.w1f_1))
|
|
1260
1266
|
return false;
|
|
1261
|
-
if (!(this.
|
|
1267
|
+
if (!(this.x1f_1 == other.x1f_1))
|
|
1262
1268
|
return false;
|
|
1263
|
-
if (!equals(this.
|
|
1269
|
+
if (!equals(this.y1f_1, other.y1f_1))
|
|
1264
1270
|
return false;
|
|
1265
|
-
if (!equals(this.
|
|
1271
|
+
if (!equals(this.z1f_1, other.z1f_1))
|
|
1266
1272
|
return false;
|
|
1267
|
-
if (!equals(this.
|
|
1273
|
+
if (!equals(this.a1g_1, other.a1g_1))
|
|
1268
1274
|
return false;
|
|
1269
|
-
if (!equals(this.
|
|
1275
|
+
if (!equals(this.b1g_1, other.b1g_1))
|
|
1270
1276
|
return false;
|
|
1271
|
-
if (!equals(this.
|
|
1277
|
+
if (!equals(this.c1g_1, other.c1g_1))
|
|
1272
1278
|
return false;
|
|
1273
|
-
if (!(this.
|
|
1279
|
+
if (!(this.d1g_1 == other.d1g_1))
|
|
1274
1280
|
return false;
|
|
1275
|
-
if (!equals(this.
|
|
1281
|
+
if (!equals(this.e1g_1, other.e1g_1))
|
|
1276
1282
|
return false;
|
|
1277
|
-
if (!(this.
|
|
1283
|
+
if (!(this.f1g_1 == other.f1g_1))
|
|
1278
1284
|
return false;
|
|
1279
1285
|
return true;
|
|
1280
1286
|
};
|
|
1281
1287
|
function $serializer_2() {
|
|
1282
1288
|
$serializer_instance_2 = this;
|
|
1283
1289
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.ImageClass', this, 8);
|
|
1284
|
-
tmp0_serialDesc.
|
|
1285
|
-
tmp0_serialDesc.
|
|
1286
|
-
tmp0_serialDesc.
|
|
1287
|
-
tmp0_serialDesc.
|
|
1288
|
-
tmp0_serialDesc.
|
|
1289
|
-
tmp0_serialDesc.
|
|
1290
|
-
tmp0_serialDesc.
|
|
1291
|
-
tmp0_serialDesc.
|
|
1292
|
-
this.
|
|
1293
|
-
}
|
|
1294
|
-
protoOf($serializer_2).
|
|
1295
|
-
var tmp0_desc = this.
|
|
1296
|
-
var tmp1_output = encoder.
|
|
1297
|
-
if (tmp1_output.
|
|
1298
|
-
tmp1_output.
|
|
1299
|
-
}
|
|
1300
|
-
tmp1_output.
|
|
1301
|
-
if (tmp1_output.
|
|
1302
|
-
tmp1_output.
|
|
1303
|
-
}
|
|
1304
|
-
if (tmp1_output.
|
|
1305
|
-
tmp1_output.
|
|
1306
|
-
}
|
|
1307
|
-
tmp1_output.
|
|
1308
|
-
if (tmp1_output.
|
|
1309
|
-
tmp1_output.
|
|
1310
|
-
}
|
|
1311
|
-
if (tmp1_output.
|
|
1312
|
-
tmp1_output.
|
|
1313
|
-
}
|
|
1314
|
-
tmp1_output.
|
|
1315
|
-
tmp1_output.
|
|
1316
|
-
};
|
|
1317
|
-
protoOf($serializer_2).
|
|
1318
|
-
return this.
|
|
1319
|
-
};
|
|
1320
|
-
protoOf($serializer_2).
|
|
1321
|
-
var tmp0_desc = this.
|
|
1290
|
+
tmp0_serialDesc.ws('caption', true);
|
|
1291
|
+
tmp0_serialDesc.ws('cropId', false);
|
|
1292
|
+
tmp0_serialDesc.ws('imageType', true);
|
|
1293
|
+
tmp0_serialDesc.ws('mediaApiUrl', true);
|
|
1294
|
+
tmp0_serialDesc.ws('mediaId', false);
|
|
1295
|
+
tmp0_serialDesc.ws('photographer', true);
|
|
1296
|
+
tmp0_serialDesc.ws('source', true);
|
|
1297
|
+
tmp0_serialDesc.ws('url', false);
|
|
1298
|
+
this.g1g_1 = tmp0_serialDesc;
|
|
1299
|
+
}
|
|
1300
|
+
protoOf($serializer_2).h1g = function (encoder, value) {
|
|
1301
|
+
var tmp0_desc = this.g1g_1;
|
|
1302
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1303
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.i1g_1 == null)) {
|
|
1304
|
+
tmp1_output.fn(tmp0_desc, 0, StringSerializer_getInstance(), value.i1g_1);
|
|
1305
|
+
}
|
|
1306
|
+
tmp1_output.bn(tmp0_desc, 1, value.j1g_1);
|
|
1307
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.k1g_1 == null)) {
|
|
1308
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.k1g_1);
|
|
1309
|
+
}
|
|
1310
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.l1g_1 == null)) {
|
|
1311
|
+
tmp1_output.fn(tmp0_desc, 3, StringSerializer_getInstance(), value.l1g_1);
|
|
1312
|
+
}
|
|
1313
|
+
tmp1_output.bn(tmp0_desc, 4, value.m1g_1);
|
|
1314
|
+
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.n1g_1 == null)) {
|
|
1315
|
+
tmp1_output.fn(tmp0_desc, 5, StringSerializer_getInstance(), value.n1g_1);
|
|
1316
|
+
}
|
|
1317
|
+
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.o1g_1 == null)) {
|
|
1318
|
+
tmp1_output.fn(tmp0_desc, 6, StringSerializer_getInstance(), value.o1g_1);
|
|
1319
|
+
}
|
|
1320
|
+
tmp1_output.bn(tmp0_desc, 7, value.p1g_1);
|
|
1321
|
+
tmp1_output.ol(tmp0_desc);
|
|
1322
|
+
};
|
|
1323
|
+
protoOf($serializer_2).ri = function (encoder, value) {
|
|
1324
|
+
return this.h1g(encoder, value instanceof ImageClass ? value : THROW_CCE());
|
|
1325
|
+
};
|
|
1326
|
+
protoOf($serializer_2).si = function (decoder) {
|
|
1327
|
+
var tmp0_desc = this.g1g_1;
|
|
1322
1328
|
var tmp1_flag = true;
|
|
1323
1329
|
var tmp2_index = 0;
|
|
1324
1330
|
var tmp3_bitMask0 = 0;
|
|
@@ -1330,74 +1336,74 @@
|
|
|
1330
1336
|
var tmp9_local5 = null;
|
|
1331
1337
|
var tmp10_local6 = null;
|
|
1332
1338
|
var tmp11_local7 = null;
|
|
1333
|
-
var tmp12_input = decoder.
|
|
1334
|
-
if (tmp12_input.
|
|
1335
|
-
tmp4_local0 = tmp12_input.
|
|
1339
|
+
var tmp12_input = decoder.nl(tmp0_desc);
|
|
1340
|
+
if (tmp12_input.dm()) {
|
|
1341
|
+
tmp4_local0 = tmp12_input.bm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1336
1342
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1337
|
-
tmp5_local1 = tmp12_input.
|
|
1343
|
+
tmp5_local1 = tmp12_input.xl(tmp0_desc, 1);
|
|
1338
1344
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1339
|
-
tmp6_local2 = tmp12_input.
|
|
1345
|
+
tmp6_local2 = tmp12_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1340
1346
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1341
|
-
tmp7_local3 = tmp12_input.
|
|
1347
|
+
tmp7_local3 = tmp12_input.bm(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
1342
1348
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1343
|
-
tmp8_local4 = tmp12_input.
|
|
1349
|
+
tmp8_local4 = tmp12_input.xl(tmp0_desc, 4);
|
|
1344
1350
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1345
|
-
tmp9_local5 = tmp12_input.
|
|
1351
|
+
tmp9_local5 = tmp12_input.bm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1346
1352
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1347
|
-
tmp10_local6 = tmp12_input.
|
|
1353
|
+
tmp10_local6 = tmp12_input.bm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1348
1354
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1349
|
-
tmp11_local7 = tmp12_input.
|
|
1355
|
+
tmp11_local7 = tmp12_input.xl(tmp0_desc, 7);
|
|
1350
1356
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1351
1357
|
} else
|
|
1352
1358
|
while (tmp1_flag) {
|
|
1353
|
-
tmp2_index = tmp12_input.
|
|
1359
|
+
tmp2_index = tmp12_input.em(tmp0_desc);
|
|
1354
1360
|
switch (tmp2_index) {
|
|
1355
1361
|
case -1:
|
|
1356
1362
|
tmp1_flag = false;
|
|
1357
1363
|
break;
|
|
1358
1364
|
case 0:
|
|
1359
|
-
tmp4_local0 = tmp12_input.
|
|
1365
|
+
tmp4_local0 = tmp12_input.bm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1360
1366
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1361
1367
|
break;
|
|
1362
1368
|
case 1:
|
|
1363
|
-
tmp5_local1 = tmp12_input.
|
|
1369
|
+
tmp5_local1 = tmp12_input.xl(tmp0_desc, 1);
|
|
1364
1370
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1365
1371
|
break;
|
|
1366
1372
|
case 2:
|
|
1367
|
-
tmp6_local2 = tmp12_input.
|
|
1373
|
+
tmp6_local2 = tmp12_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1368
1374
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1369
1375
|
break;
|
|
1370
1376
|
case 3:
|
|
1371
|
-
tmp7_local3 = tmp12_input.
|
|
1377
|
+
tmp7_local3 = tmp12_input.bm(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
1372
1378
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1373
1379
|
break;
|
|
1374
1380
|
case 4:
|
|
1375
|
-
tmp8_local4 = tmp12_input.
|
|
1381
|
+
tmp8_local4 = tmp12_input.xl(tmp0_desc, 4);
|
|
1376
1382
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1377
1383
|
break;
|
|
1378
1384
|
case 5:
|
|
1379
|
-
tmp9_local5 = tmp12_input.
|
|
1385
|
+
tmp9_local5 = tmp12_input.bm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1380
1386
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1381
1387
|
break;
|
|
1382
1388
|
case 6:
|
|
1383
|
-
tmp10_local6 = tmp12_input.
|
|
1389
|
+
tmp10_local6 = tmp12_input.bm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1384
1390
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1385
1391
|
break;
|
|
1386
1392
|
case 7:
|
|
1387
|
-
tmp11_local7 = tmp12_input.
|
|
1393
|
+
tmp11_local7 = tmp12_input.xl(tmp0_desc, 7);
|
|
1388
1394
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1389
1395
|
break;
|
|
1390
1396
|
default:
|
|
1391
1397
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1392
1398
|
}
|
|
1393
1399
|
}
|
|
1394
|
-
tmp12_input.
|
|
1400
|
+
tmp12_input.ol(tmp0_desc);
|
|
1395
1401
|
return ImageClass_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1396
1402
|
};
|
|
1397
|
-
protoOf($serializer_2).
|
|
1398
|
-
return this.
|
|
1403
|
+
protoOf($serializer_2).qi = function () {
|
|
1404
|
+
return this.g1g_1;
|
|
1399
1405
|
};
|
|
1400
|
-
protoOf($serializer_2).
|
|
1406
|
+
protoOf($serializer_2).ys = function () {
|
|
1401
1407
|
// Inline function 'kotlin.arrayOf' call
|
|
1402
1408
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1403
1409
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1411,31 +1417,31 @@
|
|
|
1411
1417
|
}
|
|
1412
1418
|
function ImageClass_init_$Init$(seen0, caption, cropID, imageType, mediaAPIURL, mediaID, photographer, source, url, serializationConstructorMarker, $this) {
|
|
1413
1419
|
if (!(146 === (146 & seen0))) {
|
|
1414
|
-
throwMissingFieldException(seen0, 146, $serializer_getInstance_2().
|
|
1420
|
+
throwMissingFieldException(seen0, 146, $serializer_getInstance_2().g1g_1);
|
|
1415
1421
|
}
|
|
1416
1422
|
if (0 === (seen0 & 1))
|
|
1417
|
-
$this.
|
|
1423
|
+
$this.i1g_1 = null;
|
|
1418
1424
|
else
|
|
1419
|
-
$this.
|
|
1420
|
-
$this.
|
|
1425
|
+
$this.i1g_1 = caption;
|
|
1426
|
+
$this.j1g_1 = cropID;
|
|
1421
1427
|
if (0 === (seen0 & 4))
|
|
1422
|
-
$this.
|
|
1428
|
+
$this.k1g_1 = null;
|
|
1423
1429
|
else
|
|
1424
|
-
$this.
|
|
1430
|
+
$this.k1g_1 = imageType;
|
|
1425
1431
|
if (0 === (seen0 & 8))
|
|
1426
|
-
$this.
|
|
1432
|
+
$this.l1g_1 = null;
|
|
1427
1433
|
else
|
|
1428
|
-
$this.
|
|
1429
|
-
$this.
|
|
1434
|
+
$this.l1g_1 = mediaAPIURL;
|
|
1435
|
+
$this.m1g_1 = mediaID;
|
|
1430
1436
|
if (0 === (seen0 & 32))
|
|
1431
|
-
$this.
|
|
1437
|
+
$this.n1g_1 = null;
|
|
1432
1438
|
else
|
|
1433
|
-
$this.
|
|
1439
|
+
$this.n1g_1 = photographer;
|
|
1434
1440
|
if (0 === (seen0 & 64))
|
|
1435
|
-
$this.
|
|
1441
|
+
$this.o1g_1 = null;
|
|
1436
1442
|
else
|
|
1437
|
-
$this.
|
|
1438
|
-
$this.
|
|
1443
|
+
$this.o1g_1 = source;
|
|
1444
|
+
$this.p1g_1 = url;
|
|
1439
1445
|
return $this;
|
|
1440
1446
|
}
|
|
1441
1447
|
function ImageClass_init_$Create$(seen0, caption, cropID, imageType, mediaAPIURL, mediaID, photographer, source, url, serializationConstructorMarker) {
|
|
@@ -1444,17 +1450,17 @@
|
|
|
1444
1450
|
function ImageClass() {
|
|
1445
1451
|
}
|
|
1446
1452
|
protoOf(ImageClass).toString = function () {
|
|
1447
|
-
return 'ImageClass(caption=' + this.
|
|
1453
|
+
return 'ImageClass(caption=' + this.i1g_1 + ', cropID=' + this.j1g_1 + ', imageType=' + this.k1g_1 + ', mediaAPIURL=' + this.l1g_1 + ', mediaID=' + this.m1g_1 + ', photographer=' + this.n1g_1 + ', source=' + this.o1g_1 + ', url=' + this.p1g_1 + ')';
|
|
1448
1454
|
};
|
|
1449
1455
|
protoOf(ImageClass).hashCode = function () {
|
|
1450
|
-
var result = this.
|
|
1451
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1452
|
-
result = imul(result, 31) + (this.
|
|
1453
|
-
result = imul(result, 31) + (this.
|
|
1454
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1455
|
-
result = imul(result, 31) + (this.
|
|
1456
|
-
result = imul(result, 31) + (this.
|
|
1457
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1456
|
+
var result = this.i1g_1 == null ? 0 : getStringHashCode(this.i1g_1);
|
|
1457
|
+
result = imul(result, 31) + getStringHashCode(this.j1g_1) | 0;
|
|
1458
|
+
result = imul(result, 31) + (this.k1g_1 == null ? 0 : getStringHashCode(this.k1g_1)) | 0;
|
|
1459
|
+
result = imul(result, 31) + (this.l1g_1 == null ? 0 : getStringHashCode(this.l1g_1)) | 0;
|
|
1460
|
+
result = imul(result, 31) + getStringHashCode(this.m1g_1) | 0;
|
|
1461
|
+
result = imul(result, 31) + (this.n1g_1 == null ? 0 : getStringHashCode(this.n1g_1)) | 0;
|
|
1462
|
+
result = imul(result, 31) + (this.o1g_1 == null ? 0 : getStringHashCode(this.o1g_1)) | 0;
|
|
1463
|
+
result = imul(result, 31) + getStringHashCode(this.p1g_1) | 0;
|
|
1458
1464
|
return result;
|
|
1459
1465
|
};
|
|
1460
1466
|
protoOf(ImageClass).equals = function (other) {
|
|
@@ -1462,21 +1468,21 @@
|
|
|
1462
1468
|
return true;
|
|
1463
1469
|
if (!(other instanceof ImageClass))
|
|
1464
1470
|
return false;
|
|
1465
|
-
if (!(this.
|
|
1471
|
+
if (!(this.i1g_1 == other.i1g_1))
|
|
1466
1472
|
return false;
|
|
1467
|
-
if (!(this.
|
|
1473
|
+
if (!(this.j1g_1 === other.j1g_1))
|
|
1468
1474
|
return false;
|
|
1469
|
-
if (!(this.
|
|
1475
|
+
if (!(this.k1g_1 == other.k1g_1))
|
|
1470
1476
|
return false;
|
|
1471
|
-
if (!(this.
|
|
1477
|
+
if (!(this.l1g_1 == other.l1g_1))
|
|
1472
1478
|
return false;
|
|
1473
|
-
if (!(this.
|
|
1479
|
+
if (!(this.m1g_1 === other.m1g_1))
|
|
1474
1480
|
return false;
|
|
1475
|
-
if (!(this.
|
|
1481
|
+
if (!(this.n1g_1 == other.n1g_1))
|
|
1476
1482
|
return false;
|
|
1477
|
-
if (!(this.
|
|
1483
|
+
if (!(this.o1g_1 == other.o1g_1))
|
|
1478
1484
|
return false;
|
|
1479
|
-
if (!(this.
|
|
1485
|
+
if (!(this.p1g_1 === other.p1g_1))
|
|
1480
1486
|
return false;
|
|
1481
1487
|
return true;
|
|
1482
1488
|
};
|
|
@@ -1490,7 +1496,7 @@
|
|
|
1490
1496
|
// Inline function 'kotlin.arrayOf' call
|
|
1491
1497
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1492
1498
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1493
|
-
tmp.
|
|
1499
|
+
tmp.q1g_1 = [lazy(tmp_0, IngredientElement$Companion$$childSerializers$_anonymous__4w7loh), null];
|
|
1494
1500
|
}
|
|
1495
1501
|
var Companion_instance_2;
|
|
1496
1502
|
function Companion_getInstance_2() {
|
|
@@ -1501,70 +1507,70 @@
|
|
|
1501
1507
|
function $serializer_3() {
|
|
1502
1508
|
$serializer_instance_3 = this;
|
|
1503
1509
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientElement', this, 2);
|
|
1504
|
-
tmp0_serialDesc.
|
|
1505
|
-
tmp0_serialDesc.
|
|
1506
|
-
this.
|
|
1510
|
+
tmp0_serialDesc.ws('ingredientsList', true);
|
|
1511
|
+
tmp0_serialDesc.ws('recipeSection', true);
|
|
1512
|
+
this.r1g_1 = tmp0_serialDesc;
|
|
1507
1513
|
}
|
|
1508
|
-
protoOf($serializer_3).
|
|
1509
|
-
var tmp0_desc = this.
|
|
1510
|
-
var tmp1_output = encoder.
|
|
1511
|
-
var tmp2_cached = Companion_getInstance_2().
|
|
1512
|
-
if (tmp1_output.
|
|
1513
|
-
tmp1_output.
|
|
1514
|
+
protoOf($serializer_3).s1g = function (encoder, value) {
|
|
1515
|
+
var tmp0_desc = this.r1g_1;
|
|
1516
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1517
|
+
var tmp2_cached = Companion_getInstance_2().q1g_1;
|
|
1518
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.t1g_1 == null)) {
|
|
1519
|
+
tmp1_output.fn(tmp0_desc, 0, tmp2_cached[0].t1(), value.t1g_1);
|
|
1514
1520
|
}
|
|
1515
|
-
if (tmp1_output.
|
|
1516
|
-
tmp1_output.
|
|
1521
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.u1g_1 == null)) {
|
|
1522
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.u1g_1);
|
|
1517
1523
|
}
|
|
1518
|
-
tmp1_output.
|
|
1524
|
+
tmp1_output.ol(tmp0_desc);
|
|
1519
1525
|
};
|
|
1520
|
-
protoOf($serializer_3).
|
|
1521
|
-
return this.
|
|
1526
|
+
protoOf($serializer_3).ri = function (encoder, value) {
|
|
1527
|
+
return this.s1g(encoder, value instanceof IngredientElement ? value : THROW_CCE());
|
|
1522
1528
|
};
|
|
1523
|
-
protoOf($serializer_3).
|
|
1524
|
-
var tmp0_desc = this.
|
|
1529
|
+
protoOf($serializer_3).si = function (decoder) {
|
|
1530
|
+
var tmp0_desc = this.r1g_1;
|
|
1525
1531
|
var tmp1_flag = true;
|
|
1526
1532
|
var tmp2_index = 0;
|
|
1527
1533
|
var tmp3_bitMask0 = 0;
|
|
1528
1534
|
var tmp4_local0 = null;
|
|
1529
1535
|
var tmp5_local1 = null;
|
|
1530
|
-
var tmp6_input = decoder.
|
|
1531
|
-
var tmp7_cached = Companion_getInstance_2().
|
|
1532
|
-
if (tmp6_input.
|
|
1533
|
-
tmp4_local0 = tmp6_input.
|
|
1536
|
+
var tmp6_input = decoder.nl(tmp0_desc);
|
|
1537
|
+
var tmp7_cached = Companion_getInstance_2().q1g_1;
|
|
1538
|
+
if (tmp6_input.dm()) {
|
|
1539
|
+
tmp4_local0 = tmp6_input.bm(tmp0_desc, 0, tmp7_cached[0].t1(), tmp4_local0);
|
|
1534
1540
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1535
|
-
tmp5_local1 = tmp6_input.
|
|
1541
|
+
tmp5_local1 = tmp6_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1536
1542
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1537
1543
|
} else
|
|
1538
1544
|
while (tmp1_flag) {
|
|
1539
|
-
tmp2_index = tmp6_input.
|
|
1545
|
+
tmp2_index = tmp6_input.em(tmp0_desc);
|
|
1540
1546
|
switch (tmp2_index) {
|
|
1541
1547
|
case -1:
|
|
1542
1548
|
tmp1_flag = false;
|
|
1543
1549
|
break;
|
|
1544
1550
|
case 0:
|
|
1545
|
-
tmp4_local0 = tmp6_input.
|
|
1551
|
+
tmp4_local0 = tmp6_input.bm(tmp0_desc, 0, tmp7_cached[0].t1(), tmp4_local0);
|
|
1546
1552
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1547
1553
|
break;
|
|
1548
1554
|
case 1:
|
|
1549
|
-
tmp5_local1 = tmp6_input.
|
|
1555
|
+
tmp5_local1 = tmp6_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1550
1556
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1551
1557
|
break;
|
|
1552
1558
|
default:
|
|
1553
1559
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1554
1560
|
}
|
|
1555
1561
|
}
|
|
1556
|
-
tmp6_input.
|
|
1562
|
+
tmp6_input.ol(tmp0_desc);
|
|
1557
1563
|
return IngredientElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1558
1564
|
};
|
|
1559
|
-
protoOf($serializer_3).
|
|
1560
|
-
return this.
|
|
1565
|
+
protoOf($serializer_3).qi = function () {
|
|
1566
|
+
return this.r1g_1;
|
|
1561
1567
|
};
|
|
1562
|
-
protoOf($serializer_3).
|
|
1563
|
-
var tmp0_cached = Companion_getInstance_2().
|
|
1568
|
+
protoOf($serializer_3).ys = function () {
|
|
1569
|
+
var tmp0_cached = Companion_getInstance_2().q1g_1;
|
|
1564
1570
|
// Inline function 'kotlin.arrayOf' call
|
|
1565
1571
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1566
1572
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1567
|
-
return [get_nullable(tmp0_cached[0].
|
|
1573
|
+
return [get_nullable(tmp0_cached[0].t1()), get_nullable(StringSerializer_getInstance())];
|
|
1568
1574
|
};
|
|
1569
1575
|
var $serializer_instance_3;
|
|
1570
1576
|
function $serializer_getInstance_3() {
|
|
@@ -1574,16 +1580,16 @@
|
|
|
1574
1580
|
}
|
|
1575
1581
|
function IngredientElement_init_$Init$(seen0, ingredientsList, recipeSection, serializationConstructorMarker, $this) {
|
|
1576
1582
|
if (!(0 === (0 & seen0))) {
|
|
1577
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_3().
|
|
1583
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_3().r1g_1);
|
|
1578
1584
|
}
|
|
1579
1585
|
if (0 === (seen0 & 1))
|
|
1580
|
-
$this.
|
|
1586
|
+
$this.t1g_1 = null;
|
|
1581
1587
|
else
|
|
1582
|
-
$this.
|
|
1588
|
+
$this.t1g_1 = ingredientsList;
|
|
1583
1589
|
if (0 === (seen0 & 2))
|
|
1584
|
-
$this.
|
|
1590
|
+
$this.u1g_1 = null;
|
|
1585
1591
|
else
|
|
1586
|
-
$this.
|
|
1592
|
+
$this.u1g_1 = recipeSection;
|
|
1587
1593
|
return $this;
|
|
1588
1594
|
}
|
|
1589
1595
|
function IngredientElement_init_$Create$(seen0, ingredientsList, recipeSection, serializationConstructorMarker) {
|
|
@@ -1593,15 +1599,15 @@
|
|
|
1593
1599
|
Companion_getInstance_2();
|
|
1594
1600
|
ingredientsList = ingredientsList === VOID ? null : ingredientsList;
|
|
1595
1601
|
recipeSection = recipeSection === VOID ? null : recipeSection;
|
|
1596
|
-
this.
|
|
1597
|
-
this.
|
|
1602
|
+
this.t1g_1 = ingredientsList;
|
|
1603
|
+
this.u1g_1 = recipeSection;
|
|
1598
1604
|
}
|
|
1599
1605
|
protoOf(IngredientElement).toString = function () {
|
|
1600
|
-
return 'IngredientElement(ingredientsList=' + toString(this.
|
|
1606
|
+
return 'IngredientElement(ingredientsList=' + toString(this.t1g_1) + ', recipeSection=' + this.u1g_1 + ')';
|
|
1601
1607
|
};
|
|
1602
1608
|
protoOf(IngredientElement).hashCode = function () {
|
|
1603
|
-
var result = this.
|
|
1604
|
-
result = imul(result, 31) + (this.
|
|
1609
|
+
var result = this.t1g_1 == null ? 0 : hashCode(this.t1g_1);
|
|
1610
|
+
result = imul(result, 31) + (this.u1g_1 == null ? 0 : getStringHashCode(this.u1g_1)) | 0;
|
|
1605
1611
|
return result;
|
|
1606
1612
|
};
|
|
1607
1613
|
protoOf(IngredientElement).equals = function (other) {
|
|
@@ -1609,9 +1615,9 @@
|
|
|
1609
1615
|
return true;
|
|
1610
1616
|
if (!(other instanceof IngredientElement))
|
|
1611
1617
|
return false;
|
|
1612
|
-
if (!equals(this.
|
|
1618
|
+
if (!equals(this.t1g_1, other.t1g_1))
|
|
1613
1619
|
return false;
|
|
1614
|
-
if (!(this.
|
|
1620
|
+
if (!(this.u1g_1 == other.u1g_1))
|
|
1615
1621
|
return false;
|
|
1616
1622
|
return true;
|
|
1617
1623
|
};
|
|
@@ -1625,7 +1631,7 @@
|
|
|
1625
1631
|
// Inline function 'kotlin.arrayOf' call
|
|
1626
1632
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1627
1633
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1628
|
-
tmp.
|
|
1634
|
+
tmp.v1g_1 = [null, lazy(tmp_0, InstructionElement$Companion$$childSerializers$_anonymous__fr382k), null];
|
|
1629
1635
|
}
|
|
1630
1636
|
var Companion_instance_3;
|
|
1631
1637
|
function Companion_getInstance_3() {
|
|
@@ -1636,79 +1642,79 @@
|
|
|
1636
1642
|
function $serializer_4() {
|
|
1637
1643
|
$serializer_instance_4 = this;
|
|
1638
1644
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.InstructionElement', this, 3);
|
|
1639
|
-
tmp0_serialDesc.
|
|
1640
|
-
tmp0_serialDesc.
|
|
1641
|
-
tmp0_serialDesc.
|
|
1642
|
-
this.
|
|
1645
|
+
tmp0_serialDesc.ws('description', false);
|
|
1646
|
+
tmp0_serialDesc.ws('images', true);
|
|
1647
|
+
tmp0_serialDesc.ws('stepNumber', true);
|
|
1648
|
+
this.w1g_1 = tmp0_serialDesc;
|
|
1643
1649
|
}
|
|
1644
|
-
protoOf($serializer_4).
|
|
1645
|
-
var tmp0_desc = this.
|
|
1646
|
-
var tmp1_output = encoder.
|
|
1647
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
1648
|
-
tmp1_output.
|
|
1649
|
-
if (tmp1_output.
|
|
1650
|
-
tmp1_output.
|
|
1650
|
+
protoOf($serializer_4).x1g = function (encoder, value) {
|
|
1651
|
+
var tmp0_desc = this.w1g_1;
|
|
1652
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1653
|
+
var tmp2_cached = Companion_getInstance_3().v1g_1;
|
|
1654
|
+
tmp1_output.bn(tmp0_desc, 0, value.y1g_1);
|
|
1655
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.z1g_1 == null)) {
|
|
1656
|
+
tmp1_output.fn(tmp0_desc, 1, tmp2_cached[1].t1(), value.z1g_1);
|
|
1651
1657
|
}
|
|
1652
|
-
if (tmp1_output.
|
|
1653
|
-
tmp1_output.
|
|
1658
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.a1h_1 == null)) {
|
|
1659
|
+
tmp1_output.fn(tmp0_desc, 2, DoubleSerializer_getInstance(), value.a1h_1);
|
|
1654
1660
|
}
|
|
1655
|
-
tmp1_output.
|
|
1661
|
+
tmp1_output.ol(tmp0_desc);
|
|
1656
1662
|
};
|
|
1657
|
-
protoOf($serializer_4).
|
|
1658
|
-
return this.
|
|
1663
|
+
protoOf($serializer_4).ri = function (encoder, value) {
|
|
1664
|
+
return this.x1g(encoder, value instanceof InstructionElement ? value : THROW_CCE());
|
|
1659
1665
|
};
|
|
1660
|
-
protoOf($serializer_4).
|
|
1661
|
-
var tmp0_desc = this.
|
|
1666
|
+
protoOf($serializer_4).si = function (decoder) {
|
|
1667
|
+
var tmp0_desc = this.w1g_1;
|
|
1662
1668
|
var tmp1_flag = true;
|
|
1663
1669
|
var tmp2_index = 0;
|
|
1664
1670
|
var tmp3_bitMask0 = 0;
|
|
1665
1671
|
var tmp4_local0 = null;
|
|
1666
1672
|
var tmp5_local1 = null;
|
|
1667
1673
|
var tmp6_local2 = null;
|
|
1668
|
-
var tmp7_input = decoder.
|
|
1669
|
-
var tmp8_cached = Companion_getInstance_3().
|
|
1670
|
-
if (tmp7_input.
|
|
1671
|
-
tmp4_local0 = tmp7_input.
|
|
1674
|
+
var tmp7_input = decoder.nl(tmp0_desc);
|
|
1675
|
+
var tmp8_cached = Companion_getInstance_3().v1g_1;
|
|
1676
|
+
if (tmp7_input.dm()) {
|
|
1677
|
+
tmp4_local0 = tmp7_input.xl(tmp0_desc, 0);
|
|
1672
1678
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1673
|
-
tmp5_local1 = tmp7_input.
|
|
1679
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, tmp8_cached[1].t1(), tmp5_local1);
|
|
1674
1680
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1675
|
-
tmp6_local2 = tmp7_input.
|
|
1681
|
+
tmp6_local2 = tmp7_input.bm(tmp0_desc, 2, DoubleSerializer_getInstance(), tmp6_local2);
|
|
1676
1682
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1677
1683
|
} else
|
|
1678
1684
|
while (tmp1_flag) {
|
|
1679
|
-
tmp2_index = tmp7_input.
|
|
1685
|
+
tmp2_index = tmp7_input.em(tmp0_desc);
|
|
1680
1686
|
switch (tmp2_index) {
|
|
1681
1687
|
case -1:
|
|
1682
1688
|
tmp1_flag = false;
|
|
1683
1689
|
break;
|
|
1684
1690
|
case 0:
|
|
1685
|
-
tmp4_local0 = tmp7_input.
|
|
1691
|
+
tmp4_local0 = tmp7_input.xl(tmp0_desc, 0);
|
|
1686
1692
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1687
1693
|
break;
|
|
1688
1694
|
case 1:
|
|
1689
|
-
tmp5_local1 = tmp7_input.
|
|
1695
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, tmp8_cached[1].t1(), tmp5_local1);
|
|
1690
1696
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1691
1697
|
break;
|
|
1692
1698
|
case 2:
|
|
1693
|
-
tmp6_local2 = tmp7_input.
|
|
1699
|
+
tmp6_local2 = tmp7_input.bm(tmp0_desc, 2, DoubleSerializer_getInstance(), tmp6_local2);
|
|
1694
1700
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1695
1701
|
break;
|
|
1696
1702
|
default:
|
|
1697
1703
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1698
1704
|
}
|
|
1699
1705
|
}
|
|
1700
|
-
tmp7_input.
|
|
1706
|
+
tmp7_input.ol(tmp0_desc);
|
|
1701
1707
|
return InstructionElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1702
1708
|
};
|
|
1703
|
-
protoOf($serializer_4).
|
|
1704
|
-
return this.
|
|
1709
|
+
protoOf($serializer_4).qi = function () {
|
|
1710
|
+
return this.w1g_1;
|
|
1705
1711
|
};
|
|
1706
|
-
protoOf($serializer_4).
|
|
1707
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
1712
|
+
protoOf($serializer_4).ys = function () {
|
|
1713
|
+
var tmp0_cached = Companion_getInstance_3().v1g_1;
|
|
1708
1714
|
// Inline function 'kotlin.arrayOf' call
|
|
1709
1715
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1710
1716
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1711
|
-
return [StringSerializer_getInstance(), get_nullable(tmp0_cached[1].
|
|
1717
|
+
return [StringSerializer_getInstance(), get_nullable(tmp0_cached[1].t1()), get_nullable(DoubleSerializer_getInstance())];
|
|
1712
1718
|
};
|
|
1713
1719
|
var $serializer_instance_4;
|
|
1714
1720
|
function $serializer_getInstance_4() {
|
|
@@ -1718,17 +1724,17 @@
|
|
|
1718
1724
|
}
|
|
1719
1725
|
function InstructionElement_init_$Init$(seen0, description, images, stepNumber, serializationConstructorMarker, $this) {
|
|
1720
1726
|
if (!(1 === (1 & seen0))) {
|
|
1721
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_4().
|
|
1727
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_4().w1g_1);
|
|
1722
1728
|
}
|
|
1723
|
-
$this.
|
|
1729
|
+
$this.y1g_1 = description;
|
|
1724
1730
|
if (0 === (seen0 & 2))
|
|
1725
|
-
$this.
|
|
1731
|
+
$this.z1g_1 = null;
|
|
1726
1732
|
else
|
|
1727
|
-
$this.
|
|
1733
|
+
$this.z1g_1 = images;
|
|
1728
1734
|
if (0 === (seen0 & 4))
|
|
1729
|
-
$this.
|
|
1735
|
+
$this.a1h_1 = null;
|
|
1730
1736
|
else
|
|
1731
|
-
$this.
|
|
1737
|
+
$this.a1h_1 = stepNumber;
|
|
1732
1738
|
return $this;
|
|
1733
1739
|
}
|
|
1734
1740
|
function InstructionElement_init_$Create$(seen0, description, images, stepNumber, serializationConstructorMarker) {
|
|
@@ -1738,17 +1744,17 @@
|
|
|
1738
1744
|
Companion_getInstance_3();
|
|
1739
1745
|
images = images === VOID ? null : images;
|
|
1740
1746
|
stepNumber = stepNumber === VOID ? null : stepNumber;
|
|
1741
|
-
this.
|
|
1742
|
-
this.
|
|
1743
|
-
this.
|
|
1747
|
+
this.y1g_1 = description;
|
|
1748
|
+
this.z1g_1 = images;
|
|
1749
|
+
this.a1h_1 = stepNumber;
|
|
1744
1750
|
}
|
|
1745
1751
|
protoOf(InstructionElement).toString = function () {
|
|
1746
|
-
return 'InstructionElement(description=' + this.
|
|
1752
|
+
return 'InstructionElement(description=' + this.y1g_1 + ', images=' + toString(this.z1g_1) + ', stepNumber=' + this.a1h_1 + ')';
|
|
1747
1753
|
};
|
|
1748
1754
|
protoOf(InstructionElement).hashCode = function () {
|
|
1749
|
-
var result = getStringHashCode(this.
|
|
1750
|
-
result = imul(result, 31) + (this.
|
|
1751
|
-
result = imul(result, 31) + (this.
|
|
1755
|
+
var result = getStringHashCode(this.y1g_1);
|
|
1756
|
+
result = imul(result, 31) + (this.z1g_1 == null ? 0 : hashCode(this.z1g_1)) | 0;
|
|
1757
|
+
result = imul(result, 31) + (this.a1h_1 == null ? 0 : getNumberHashCode(this.a1h_1)) | 0;
|
|
1752
1758
|
return result;
|
|
1753
1759
|
};
|
|
1754
1760
|
protoOf(InstructionElement).equals = function (other) {
|
|
@@ -1756,83 +1762,83 @@
|
|
|
1756
1762
|
return true;
|
|
1757
1763
|
if (!(other instanceof InstructionElement))
|
|
1758
1764
|
return false;
|
|
1759
|
-
if (!(this.
|
|
1765
|
+
if (!(this.y1g_1 === other.y1g_1))
|
|
1760
1766
|
return false;
|
|
1761
|
-
if (!equals(this.
|
|
1767
|
+
if (!equals(this.z1g_1, other.z1g_1))
|
|
1762
1768
|
return false;
|
|
1763
|
-
if (!equals(this.
|
|
1769
|
+
if (!equals(this.a1h_1, other.a1h_1))
|
|
1764
1770
|
return false;
|
|
1765
1771
|
return true;
|
|
1766
1772
|
};
|
|
1767
1773
|
function $serializer_5() {
|
|
1768
1774
|
$serializer_instance_5 = this;
|
|
1769
1775
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.ServeElement', this, 3);
|
|
1770
|
-
tmp0_serialDesc.
|
|
1771
|
-
tmp0_serialDesc.
|
|
1772
|
-
tmp0_serialDesc.
|
|
1773
|
-
this.
|
|
1776
|
+
tmp0_serialDesc.ws('amount', true);
|
|
1777
|
+
tmp0_serialDesc.ws('text', true);
|
|
1778
|
+
tmp0_serialDesc.ws('unit', false);
|
|
1779
|
+
this.b1h_1 = tmp0_serialDesc;
|
|
1774
1780
|
}
|
|
1775
|
-
protoOf($serializer_5).
|
|
1776
|
-
var tmp0_desc = this.
|
|
1777
|
-
var tmp1_output = encoder.
|
|
1778
|
-
if (tmp1_output.
|
|
1779
|
-
tmp1_output.
|
|
1781
|
+
protoOf($serializer_5).c1h = function (encoder, value) {
|
|
1782
|
+
var tmp0_desc = this.b1h_1;
|
|
1783
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1784
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.d1h_1 == null)) {
|
|
1785
|
+
tmp1_output.fn(tmp0_desc, 0, $serializer_getInstance(), value.d1h_1);
|
|
1780
1786
|
}
|
|
1781
|
-
if (tmp1_output.
|
|
1782
|
-
tmp1_output.
|
|
1787
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.e1h_1 == null)) {
|
|
1788
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.e1h_1);
|
|
1783
1789
|
}
|
|
1784
|
-
tmp1_output.
|
|
1785
|
-
tmp1_output.
|
|
1790
|
+
tmp1_output.bn(tmp0_desc, 2, value.f1h_1);
|
|
1791
|
+
tmp1_output.ol(tmp0_desc);
|
|
1786
1792
|
};
|
|
1787
|
-
protoOf($serializer_5).
|
|
1788
|
-
return this.
|
|
1793
|
+
protoOf($serializer_5).ri = function (encoder, value) {
|
|
1794
|
+
return this.c1h(encoder, value instanceof ServeElement ? value : THROW_CCE());
|
|
1789
1795
|
};
|
|
1790
|
-
protoOf($serializer_5).
|
|
1791
|
-
var tmp0_desc = this.
|
|
1796
|
+
protoOf($serializer_5).si = function (decoder) {
|
|
1797
|
+
var tmp0_desc = this.b1h_1;
|
|
1792
1798
|
var tmp1_flag = true;
|
|
1793
1799
|
var tmp2_index = 0;
|
|
1794
1800
|
var tmp3_bitMask0 = 0;
|
|
1795
1801
|
var tmp4_local0 = null;
|
|
1796
1802
|
var tmp5_local1 = null;
|
|
1797
1803
|
var tmp6_local2 = null;
|
|
1798
|
-
var tmp7_input = decoder.
|
|
1799
|
-
if (tmp7_input.
|
|
1800
|
-
tmp4_local0 = tmp7_input.
|
|
1804
|
+
var tmp7_input = decoder.nl(tmp0_desc);
|
|
1805
|
+
if (tmp7_input.dm()) {
|
|
1806
|
+
tmp4_local0 = tmp7_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
1801
1807
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1802
|
-
tmp5_local1 = tmp7_input.
|
|
1808
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1803
1809
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1804
|
-
tmp6_local2 = tmp7_input.
|
|
1810
|
+
tmp6_local2 = tmp7_input.xl(tmp0_desc, 2);
|
|
1805
1811
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1806
1812
|
} else
|
|
1807
1813
|
while (tmp1_flag) {
|
|
1808
|
-
tmp2_index = tmp7_input.
|
|
1814
|
+
tmp2_index = tmp7_input.em(tmp0_desc);
|
|
1809
1815
|
switch (tmp2_index) {
|
|
1810
1816
|
case -1:
|
|
1811
1817
|
tmp1_flag = false;
|
|
1812
1818
|
break;
|
|
1813
1819
|
case 0:
|
|
1814
|
-
tmp4_local0 = tmp7_input.
|
|
1820
|
+
tmp4_local0 = tmp7_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
1815
1821
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1816
1822
|
break;
|
|
1817
1823
|
case 1:
|
|
1818
|
-
tmp5_local1 = tmp7_input.
|
|
1824
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1819
1825
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1820
1826
|
break;
|
|
1821
1827
|
case 2:
|
|
1822
|
-
tmp6_local2 = tmp7_input.
|
|
1828
|
+
tmp6_local2 = tmp7_input.xl(tmp0_desc, 2);
|
|
1823
1829
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1824
1830
|
break;
|
|
1825
1831
|
default:
|
|
1826
1832
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1827
1833
|
}
|
|
1828
1834
|
}
|
|
1829
|
-
tmp7_input.
|
|
1835
|
+
tmp7_input.ol(tmp0_desc);
|
|
1830
1836
|
return ServeElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1831
1837
|
};
|
|
1832
|
-
protoOf($serializer_5).
|
|
1833
|
-
return this.
|
|
1838
|
+
protoOf($serializer_5).qi = function () {
|
|
1839
|
+
return this.b1h_1;
|
|
1834
1840
|
};
|
|
1835
|
-
protoOf($serializer_5).
|
|
1841
|
+
protoOf($serializer_5).ys = function () {
|
|
1836
1842
|
// Inline function 'kotlin.arrayOf' call
|
|
1837
1843
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1838
1844
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1846,17 +1852,17 @@
|
|
|
1846
1852
|
}
|
|
1847
1853
|
function ServeElement_init_$Init$(seen0, amount, text, unit, serializationConstructorMarker, $this) {
|
|
1848
1854
|
if (!(4 === (4 & seen0))) {
|
|
1849
|
-
throwMissingFieldException(seen0, 4, $serializer_getInstance_5().
|
|
1855
|
+
throwMissingFieldException(seen0, 4, $serializer_getInstance_5().b1h_1);
|
|
1850
1856
|
}
|
|
1851
1857
|
if (0 === (seen0 & 1))
|
|
1852
|
-
$this.
|
|
1858
|
+
$this.d1h_1 = null;
|
|
1853
1859
|
else
|
|
1854
|
-
$this.
|
|
1860
|
+
$this.d1h_1 = amount;
|
|
1855
1861
|
if (0 === (seen0 & 2))
|
|
1856
|
-
$this.
|
|
1862
|
+
$this.e1h_1 = null;
|
|
1857
1863
|
else
|
|
1858
|
-
$this.
|
|
1859
|
-
$this.
|
|
1864
|
+
$this.e1h_1 = text;
|
|
1865
|
+
$this.f1h_1 = unit;
|
|
1860
1866
|
return $this;
|
|
1861
1867
|
}
|
|
1862
1868
|
function ServeElement_init_$Create$(seen0, amount, text, unit, serializationConstructorMarker) {
|
|
@@ -1865,12 +1871,12 @@
|
|
|
1865
1871
|
function ServeElement() {
|
|
1866
1872
|
}
|
|
1867
1873
|
protoOf(ServeElement).toString = function () {
|
|
1868
|
-
return 'ServeElement(amount=' + toString(this.
|
|
1874
|
+
return 'ServeElement(amount=' + toString(this.d1h_1) + ', text=' + this.e1h_1 + ', unit=' + this.f1h_1 + ')';
|
|
1869
1875
|
};
|
|
1870
1876
|
protoOf(ServeElement).hashCode = function () {
|
|
1871
|
-
var result = this.
|
|
1872
|
-
result = imul(result, 31) + (this.
|
|
1873
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1877
|
+
var result = this.d1h_1 == null ? 0 : this.d1h_1.hashCode();
|
|
1878
|
+
result = imul(result, 31) + (this.e1h_1 == null ? 0 : getStringHashCode(this.e1h_1)) | 0;
|
|
1879
|
+
result = imul(result, 31) + getStringHashCode(this.f1h_1) | 0;
|
|
1874
1880
|
return result;
|
|
1875
1881
|
};
|
|
1876
1882
|
protoOf(ServeElement).equals = function (other) {
|
|
@@ -1878,11 +1884,11 @@
|
|
|
1878
1884
|
return true;
|
|
1879
1885
|
if (!(other instanceof ServeElement))
|
|
1880
1886
|
return false;
|
|
1881
|
-
if (!equals(this.
|
|
1887
|
+
if (!equals(this.d1h_1, other.d1h_1))
|
|
1882
1888
|
return false;
|
|
1883
|
-
if (!(this.
|
|
1889
|
+
if (!(this.e1h_1 == other.e1h_1))
|
|
1884
1890
|
return false;
|
|
1885
|
-
if (!(this.
|
|
1891
|
+
if (!(this.f1h_1 === other.f1h_1))
|
|
1886
1892
|
return false;
|
|
1887
1893
|
return true;
|
|
1888
1894
|
};
|
|
@@ -1895,74 +1901,74 @@
|
|
|
1895
1901
|
function $serializer_6() {
|
|
1896
1902
|
$serializer_instance_6 = this;
|
|
1897
1903
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.TimingElement', this, 3);
|
|
1898
|
-
tmp0_serialDesc.
|
|
1899
|
-
tmp0_serialDesc.
|
|
1900
|
-
tmp0_serialDesc.
|
|
1901
|
-
this.
|
|
1904
|
+
tmp0_serialDesc.ws('durationInMins', true);
|
|
1905
|
+
tmp0_serialDesc.ws('qualifier', true);
|
|
1906
|
+
tmp0_serialDesc.ws('text', true);
|
|
1907
|
+
this.g1h_1 = tmp0_serialDesc;
|
|
1902
1908
|
}
|
|
1903
|
-
protoOf($serializer_6).
|
|
1904
|
-
var tmp0_desc = this.
|
|
1905
|
-
var tmp1_output = encoder.
|
|
1906
|
-
if (tmp1_output.
|
|
1907
|
-
tmp1_output.
|
|
1909
|
+
protoOf($serializer_6).h1h = function (encoder, value) {
|
|
1910
|
+
var tmp0_desc = this.g1h_1;
|
|
1911
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1912
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.i1h_1 == null)) {
|
|
1913
|
+
tmp1_output.fn(tmp0_desc, 0, $serializer_getInstance(), value.i1h_1);
|
|
1908
1914
|
}
|
|
1909
|
-
if (tmp1_output.
|
|
1910
|
-
tmp1_output.
|
|
1915
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.j1h_1 == null)) {
|
|
1916
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.j1h_1);
|
|
1911
1917
|
}
|
|
1912
|
-
if (tmp1_output.
|
|
1913
|
-
tmp1_output.
|
|
1918
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.k1h_1 == null)) {
|
|
1919
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.k1h_1);
|
|
1914
1920
|
}
|
|
1915
|
-
tmp1_output.
|
|
1921
|
+
tmp1_output.ol(tmp0_desc);
|
|
1916
1922
|
};
|
|
1917
|
-
protoOf($serializer_6).
|
|
1918
|
-
return this.
|
|
1923
|
+
protoOf($serializer_6).ri = function (encoder, value) {
|
|
1924
|
+
return this.h1h(encoder, value instanceof TimingElement ? value : THROW_CCE());
|
|
1919
1925
|
};
|
|
1920
|
-
protoOf($serializer_6).
|
|
1921
|
-
var tmp0_desc = this.
|
|
1926
|
+
protoOf($serializer_6).si = function (decoder) {
|
|
1927
|
+
var tmp0_desc = this.g1h_1;
|
|
1922
1928
|
var tmp1_flag = true;
|
|
1923
1929
|
var tmp2_index = 0;
|
|
1924
1930
|
var tmp3_bitMask0 = 0;
|
|
1925
1931
|
var tmp4_local0 = null;
|
|
1926
1932
|
var tmp5_local1 = null;
|
|
1927
1933
|
var tmp6_local2 = null;
|
|
1928
|
-
var tmp7_input = decoder.
|
|
1929
|
-
if (tmp7_input.
|
|
1930
|
-
tmp4_local0 = tmp7_input.
|
|
1934
|
+
var tmp7_input = decoder.nl(tmp0_desc);
|
|
1935
|
+
if (tmp7_input.dm()) {
|
|
1936
|
+
tmp4_local0 = tmp7_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
1931
1937
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1932
|
-
tmp5_local1 = tmp7_input.
|
|
1938
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1933
1939
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1934
|
-
tmp6_local2 = tmp7_input.
|
|
1940
|
+
tmp6_local2 = tmp7_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1935
1941
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1936
1942
|
} else
|
|
1937
1943
|
while (tmp1_flag) {
|
|
1938
|
-
tmp2_index = tmp7_input.
|
|
1944
|
+
tmp2_index = tmp7_input.em(tmp0_desc);
|
|
1939
1945
|
switch (tmp2_index) {
|
|
1940
1946
|
case -1:
|
|
1941
1947
|
tmp1_flag = false;
|
|
1942
1948
|
break;
|
|
1943
1949
|
case 0:
|
|
1944
|
-
tmp4_local0 = tmp7_input.
|
|
1950
|
+
tmp4_local0 = tmp7_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
1945
1951
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1946
1952
|
break;
|
|
1947
1953
|
case 1:
|
|
1948
|
-
tmp5_local1 = tmp7_input.
|
|
1954
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1949
1955
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1950
1956
|
break;
|
|
1951
1957
|
case 2:
|
|
1952
|
-
tmp6_local2 = tmp7_input.
|
|
1958
|
+
tmp6_local2 = tmp7_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1953
1959
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1954
1960
|
break;
|
|
1955
1961
|
default:
|
|
1956
1962
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1957
1963
|
}
|
|
1958
1964
|
}
|
|
1959
|
-
tmp7_input.
|
|
1965
|
+
tmp7_input.ol(tmp0_desc);
|
|
1960
1966
|
return TimingElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1961
1967
|
};
|
|
1962
|
-
protoOf($serializer_6).
|
|
1963
|
-
return this.
|
|
1968
|
+
protoOf($serializer_6).qi = function () {
|
|
1969
|
+
return this.g1h_1;
|
|
1964
1970
|
};
|
|
1965
|
-
protoOf($serializer_6).
|
|
1971
|
+
protoOf($serializer_6).ys = function () {
|
|
1966
1972
|
// Inline function 'kotlin.arrayOf' call
|
|
1967
1973
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1968
1974
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1976,20 +1982,20 @@
|
|
|
1976
1982
|
}
|
|
1977
1983
|
function TimingElement_init_$Init$(seen0, durationInMins, qualifier, text, serializationConstructorMarker, $this) {
|
|
1978
1984
|
if (!(0 === (0 & seen0))) {
|
|
1979
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().
|
|
1985
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().g1h_1);
|
|
1980
1986
|
}
|
|
1981
1987
|
if (0 === (seen0 & 1))
|
|
1982
|
-
$this.
|
|
1988
|
+
$this.i1h_1 = null;
|
|
1983
1989
|
else
|
|
1984
|
-
$this.
|
|
1990
|
+
$this.i1h_1 = durationInMins;
|
|
1985
1991
|
if (0 === (seen0 & 2))
|
|
1986
|
-
$this.
|
|
1992
|
+
$this.j1h_1 = null;
|
|
1987
1993
|
else
|
|
1988
|
-
$this.
|
|
1994
|
+
$this.j1h_1 = qualifier;
|
|
1989
1995
|
if (0 === (seen0 & 4))
|
|
1990
|
-
$this.
|
|
1996
|
+
$this.k1h_1 = null;
|
|
1991
1997
|
else
|
|
1992
|
-
$this.
|
|
1998
|
+
$this.k1h_1 = text;
|
|
1993
1999
|
return $this;
|
|
1994
2000
|
}
|
|
1995
2001
|
function TimingElement_init_$Create$(seen0, durationInMins, qualifier, text, serializationConstructorMarker) {
|
|
@@ -1999,17 +2005,17 @@
|
|
|
1999
2005
|
durationInMins = durationInMins === VOID ? null : durationInMins;
|
|
2000
2006
|
qualifier = qualifier === VOID ? null : qualifier;
|
|
2001
2007
|
text = text === VOID ? null : text;
|
|
2002
|
-
this.
|
|
2003
|
-
this.
|
|
2004
|
-
this.
|
|
2008
|
+
this.i1h_1 = durationInMins;
|
|
2009
|
+
this.j1h_1 = qualifier;
|
|
2010
|
+
this.k1h_1 = text;
|
|
2005
2011
|
}
|
|
2006
2012
|
protoOf(TimingElement).toString = function () {
|
|
2007
|
-
return 'TimingElement(durationInMins=' + toString(this.
|
|
2013
|
+
return 'TimingElement(durationInMins=' + toString(this.i1h_1) + ', qualifier=' + this.j1h_1 + ', text=' + this.k1h_1 + ')';
|
|
2008
2014
|
};
|
|
2009
2015
|
protoOf(TimingElement).hashCode = function () {
|
|
2010
|
-
var result = this.
|
|
2011
|
-
result = imul(result, 31) + (this.
|
|
2012
|
-
result = imul(result, 31) + (this.
|
|
2016
|
+
var result = this.i1h_1 == null ? 0 : this.i1h_1.hashCode();
|
|
2017
|
+
result = imul(result, 31) + (this.j1h_1 == null ? 0 : getStringHashCode(this.j1h_1)) | 0;
|
|
2018
|
+
result = imul(result, 31) + (this.k1h_1 == null ? 0 : getStringHashCode(this.k1h_1)) | 0;
|
|
2013
2019
|
return result;
|
|
2014
2020
|
};
|
|
2015
2021
|
protoOf(TimingElement).equals = function (other) {
|
|
@@ -2017,11 +2023,11 @@
|
|
|
2017
2023
|
return true;
|
|
2018
2024
|
if (!(other instanceof TimingElement))
|
|
2019
2025
|
return false;
|
|
2020
|
-
if (!equals(this.
|
|
2026
|
+
if (!equals(this.i1h_1, other.i1h_1))
|
|
2021
2027
|
return false;
|
|
2022
|
-
if (!(this.
|
|
2028
|
+
if (!(this.j1h_1 == other.j1h_1))
|
|
2023
2029
|
return false;
|
|
2024
|
-
if (!(this.
|
|
2030
|
+
if (!(this.k1h_1 == other.k1h_1))
|
|
2025
2031
|
return false;
|
|
2026
2032
|
return true;
|
|
2027
2033
|
};
|
|
@@ -2100,7 +2106,7 @@
|
|
|
2100
2106
|
// Inline function 'kotlin.arrayOf' call
|
|
2101
2107
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2102
2108
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2103
|
-
tmp.
|
|
2109
|
+
tmp.l1h_1 = [null, tmp_1, null, tmp_3, null, tmp_5, tmp_7, null, null, null, null, tmp_9, tmp_11, tmp_13, tmp_15, null, tmp_17, tmp_19, tmp_21, tmp_23, tmp_25, null, lazy(tmp_26, RecipeV3$Companion$$childSerializers$_anonymous__7om4qn_12), null];
|
|
2104
2110
|
}
|
|
2105
2111
|
var Companion_instance_5;
|
|
2106
2112
|
function Companion_getInstance_5() {
|
|
@@ -2111,113 +2117,113 @@
|
|
|
2111
2117
|
function $serializer_7() {
|
|
2112
2118
|
$serializer_instance_7 = this;
|
|
2113
2119
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.RecipeV3', this, 24);
|
|
2114
|
-
tmp0_serialDesc.
|
|
2115
|
-
tmp0_serialDesc.
|
|
2116
|
-
tmp0_serialDesc.
|
|
2117
|
-
tmp0_serialDesc.
|
|
2118
|
-
tmp0_serialDesc.
|
|
2119
|
-
tmp0_serialDesc.
|
|
2120
|
-
tmp0_serialDesc.
|
|
2121
|
-
tmp0_serialDesc.
|
|
2122
|
-
tmp0_serialDesc.
|
|
2123
|
-
tmp0_serialDesc.
|
|
2124
|
-
tmp0_serialDesc.
|
|
2125
|
-
tmp0_serialDesc.
|
|
2126
|
-
tmp0_serialDesc.
|
|
2127
|
-
tmp0_serialDesc.
|
|
2128
|
-
tmp0_serialDesc.
|
|
2129
|
-
tmp0_serialDesc.
|
|
2130
|
-
tmp0_serialDesc.
|
|
2131
|
-
tmp0_serialDesc.
|
|
2132
|
-
tmp0_serialDesc.
|
|
2133
|
-
tmp0_serialDesc.
|
|
2134
|
-
tmp0_serialDesc.
|
|
2135
|
-
tmp0_serialDesc.
|
|
2136
|
-
tmp0_serialDesc.
|
|
2137
|
-
tmp0_serialDesc.
|
|
2138
|
-
this.
|
|
2120
|
+
tmp0_serialDesc.ws('bookCredit', true);
|
|
2121
|
+
tmp0_serialDesc.ws('byline', true);
|
|
2122
|
+
tmp0_serialDesc.ws('canonicalArticle', true);
|
|
2123
|
+
tmp0_serialDesc.ws('celebrationIds', true);
|
|
2124
|
+
tmp0_serialDesc.ws('composerId', true);
|
|
2125
|
+
tmp0_serialDesc.ws('contributors', true);
|
|
2126
|
+
tmp0_serialDesc.ws('cuisineIds', true);
|
|
2127
|
+
tmp0_serialDesc.ws('description', true);
|
|
2128
|
+
tmp0_serialDesc.ws('difficultyLevel', true);
|
|
2129
|
+
tmp0_serialDesc.ws('featuredImage', true);
|
|
2130
|
+
tmp0_serialDesc.ws('id', false);
|
|
2131
|
+
tmp0_serialDesc.ws('ingredients', true);
|
|
2132
|
+
tmp0_serialDesc.ws('ingredientsTemplate', true);
|
|
2133
|
+
tmp0_serialDesc.ws('instructions', true);
|
|
2134
|
+
tmp0_serialDesc.ws('instructionsTemplate', true);
|
|
2135
|
+
tmp0_serialDesc.ws('isAppReady', true);
|
|
2136
|
+
tmp0_serialDesc.ws('mealTypeIds', true);
|
|
2137
|
+
tmp0_serialDesc.ws('serves', true);
|
|
2138
|
+
tmp0_serialDesc.ws('suitableForDietIds', true);
|
|
2139
|
+
tmp0_serialDesc.ws('techniquesUsedIds', true);
|
|
2140
|
+
tmp0_serialDesc.ws('timings', true);
|
|
2141
|
+
tmp0_serialDesc.ws('title', true);
|
|
2142
|
+
tmp0_serialDesc.ws('utensilsAndApplianceIds', true);
|
|
2143
|
+
tmp0_serialDesc.ws('webPublicationDate', true);
|
|
2144
|
+
this.m1h_1 = tmp0_serialDesc;
|
|
2139
2145
|
}
|
|
2140
|
-
protoOf($serializer_7).
|
|
2141
|
-
var tmp0_desc = this.
|
|
2142
|
-
var tmp1_output = encoder.
|
|
2143
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
2144
|
-
if (tmp1_output.
|
|
2145
|
-
tmp1_output.
|
|
2146
|
+
protoOf($serializer_7).n1h = function (encoder, value) {
|
|
2147
|
+
var tmp0_desc = this.m1h_1;
|
|
2148
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
2149
|
+
var tmp2_cached = Companion_getInstance_5().l1h_1;
|
|
2150
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.h1d_1 == null)) {
|
|
2151
|
+
tmp1_output.fn(tmp0_desc, 0, StringSerializer_getInstance(), value.h1d_1);
|
|
2146
2152
|
}
|
|
2147
|
-
if (tmp1_output.
|
|
2148
|
-
tmp1_output.
|
|
2153
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.i1d_1 == null)) {
|
|
2154
|
+
tmp1_output.fn(tmp0_desc, 1, tmp2_cached[1].t1(), value.i1d_1);
|
|
2149
2155
|
}
|
|
2150
|
-
if (tmp1_output.
|
|
2151
|
-
tmp1_output.
|
|
2156
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.j1d_1 == null)) {
|
|
2157
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.j1d_1);
|
|
2152
2158
|
}
|
|
2153
|
-
if (tmp1_output.
|
|
2154
|
-
tmp1_output.
|
|
2159
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.k1d_1 == null)) {
|
|
2160
|
+
tmp1_output.fn(tmp0_desc, 3, tmp2_cached[3].t1(), value.k1d_1);
|
|
2155
2161
|
}
|
|
2156
|
-
if (tmp1_output.
|
|
2157
|
-
tmp1_output.
|
|
2162
|
+
if (tmp1_output.jn(tmp0_desc, 4) ? true : !(value.l1d_1 == null)) {
|
|
2163
|
+
tmp1_output.fn(tmp0_desc, 4, StringSerializer_getInstance(), value.l1d_1);
|
|
2158
2164
|
}
|
|
2159
|
-
if (tmp1_output.
|
|
2160
|
-
tmp1_output.
|
|
2165
|
+
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.m1d_1 == null)) {
|
|
2166
|
+
tmp1_output.fn(tmp0_desc, 5, tmp2_cached[5].t1(), value.m1d_1);
|
|
2161
2167
|
}
|
|
2162
|
-
if (tmp1_output.
|
|
2163
|
-
tmp1_output.
|
|
2168
|
+
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.n1d_1 == null)) {
|
|
2169
|
+
tmp1_output.fn(tmp0_desc, 6, tmp2_cached[6].t1(), value.n1d_1);
|
|
2164
2170
|
}
|
|
2165
|
-
if (tmp1_output.
|
|
2166
|
-
tmp1_output.
|
|
2171
|
+
if (tmp1_output.jn(tmp0_desc, 7) ? true : !(value.o1d_1 == null)) {
|
|
2172
|
+
tmp1_output.fn(tmp0_desc, 7, StringSerializer_getInstance(), value.o1d_1);
|
|
2167
2173
|
}
|
|
2168
|
-
if (tmp1_output.
|
|
2169
|
-
tmp1_output.
|
|
2174
|
+
if (tmp1_output.jn(tmp0_desc, 8) ? true : !(value.p1d_1 == null)) {
|
|
2175
|
+
tmp1_output.fn(tmp0_desc, 8, StringSerializer_getInstance(), value.p1d_1);
|
|
2170
2176
|
}
|
|
2171
|
-
if (tmp1_output.
|
|
2172
|
-
tmp1_output.
|
|
2177
|
+
if (tmp1_output.jn(tmp0_desc, 9) ? true : !(value.q1d_1 == null)) {
|
|
2178
|
+
tmp1_output.fn(tmp0_desc, 9, $serializer_getInstance_2(), value.q1d_1);
|
|
2173
2179
|
}
|
|
2174
|
-
tmp1_output.
|
|
2175
|
-
if (tmp1_output.
|
|
2176
|
-
tmp1_output.
|
|
2180
|
+
tmp1_output.bn(tmp0_desc, 10, value.r1d_1);
|
|
2181
|
+
if (tmp1_output.jn(tmp0_desc, 11) ? true : !(value.s1d_1 == null)) {
|
|
2182
|
+
tmp1_output.fn(tmp0_desc, 11, tmp2_cached[11].t1(), value.s1d_1);
|
|
2177
2183
|
}
|
|
2178
|
-
if (tmp1_output.
|
|
2179
|
-
tmp1_output.
|
|
2184
|
+
if (tmp1_output.jn(tmp0_desc, 12) ? true : !(value.t1d_1 == null)) {
|
|
2185
|
+
tmp1_output.fn(tmp0_desc, 12, tmp2_cached[12].t1(), value.t1d_1);
|
|
2180
2186
|
}
|
|
2181
|
-
if (tmp1_output.
|
|
2182
|
-
tmp1_output.
|
|
2187
|
+
if (tmp1_output.jn(tmp0_desc, 13) ? true : !(value.u1d_1 == null)) {
|
|
2188
|
+
tmp1_output.fn(tmp0_desc, 13, tmp2_cached[13].t1(), value.u1d_1);
|
|
2183
2189
|
}
|
|
2184
|
-
if (tmp1_output.
|
|
2185
|
-
tmp1_output.
|
|
2190
|
+
if (tmp1_output.jn(tmp0_desc, 14) ? true : !(value.v1d_1 == null)) {
|
|
2191
|
+
tmp1_output.fn(tmp0_desc, 14, tmp2_cached[14].t1(), value.v1d_1);
|
|
2186
2192
|
}
|
|
2187
|
-
if (tmp1_output.
|
|
2188
|
-
tmp1_output.
|
|
2193
|
+
if (tmp1_output.jn(tmp0_desc, 15) ? true : !(value.w1d_1 == null)) {
|
|
2194
|
+
tmp1_output.fn(tmp0_desc, 15, BooleanSerializer_getInstance(), value.w1d_1);
|
|
2189
2195
|
}
|
|
2190
|
-
if (tmp1_output.
|
|
2191
|
-
tmp1_output.
|
|
2196
|
+
if (tmp1_output.jn(tmp0_desc, 16) ? true : !(value.x1d_1 == null)) {
|
|
2197
|
+
tmp1_output.fn(tmp0_desc, 16, tmp2_cached[16].t1(), value.x1d_1);
|
|
2192
2198
|
}
|
|
2193
|
-
if (tmp1_output.
|
|
2194
|
-
tmp1_output.
|
|
2199
|
+
if (tmp1_output.jn(tmp0_desc, 17) ? true : !(value.y1d_1 == null)) {
|
|
2200
|
+
tmp1_output.fn(tmp0_desc, 17, tmp2_cached[17].t1(), value.y1d_1);
|
|
2195
2201
|
}
|
|
2196
|
-
if (tmp1_output.
|
|
2197
|
-
tmp1_output.
|
|
2202
|
+
if (tmp1_output.jn(tmp0_desc, 18) ? true : !(value.z1d_1 == null)) {
|
|
2203
|
+
tmp1_output.fn(tmp0_desc, 18, tmp2_cached[18].t1(), value.z1d_1);
|
|
2198
2204
|
}
|
|
2199
|
-
if (tmp1_output.
|
|
2200
|
-
tmp1_output.
|
|
2205
|
+
if (tmp1_output.jn(tmp0_desc, 19) ? true : !(value.a1e_1 == null)) {
|
|
2206
|
+
tmp1_output.fn(tmp0_desc, 19, tmp2_cached[19].t1(), value.a1e_1);
|
|
2201
2207
|
}
|
|
2202
|
-
if (tmp1_output.
|
|
2203
|
-
tmp1_output.
|
|
2208
|
+
if (tmp1_output.jn(tmp0_desc, 20) ? true : !(value.b1e_1 == null)) {
|
|
2209
|
+
tmp1_output.fn(tmp0_desc, 20, tmp2_cached[20].t1(), value.b1e_1);
|
|
2204
2210
|
}
|
|
2205
|
-
if (tmp1_output.
|
|
2206
|
-
tmp1_output.
|
|
2211
|
+
if (tmp1_output.jn(tmp0_desc, 21) ? true : !(value.c1e_1 == null)) {
|
|
2212
|
+
tmp1_output.fn(tmp0_desc, 21, StringSerializer_getInstance(), value.c1e_1);
|
|
2207
2213
|
}
|
|
2208
|
-
if (tmp1_output.
|
|
2209
|
-
tmp1_output.
|
|
2214
|
+
if (tmp1_output.jn(tmp0_desc, 22) ? true : !(value.d1e_1 == null)) {
|
|
2215
|
+
tmp1_output.fn(tmp0_desc, 22, tmp2_cached[22].t1(), value.d1e_1);
|
|
2210
2216
|
}
|
|
2211
|
-
if (tmp1_output.
|
|
2212
|
-
tmp1_output.
|
|
2217
|
+
if (tmp1_output.jn(tmp0_desc, 23) ? true : !(value.e1e_1 == null)) {
|
|
2218
|
+
tmp1_output.fn(tmp0_desc, 23, StringSerializer_getInstance(), value.e1e_1);
|
|
2213
2219
|
}
|
|
2214
|
-
tmp1_output.
|
|
2220
|
+
tmp1_output.ol(tmp0_desc);
|
|
2215
2221
|
};
|
|
2216
|
-
protoOf($serializer_7).
|
|
2217
|
-
return this.
|
|
2222
|
+
protoOf($serializer_7).ri = function (encoder, value) {
|
|
2223
|
+
return this.n1h(encoder, value instanceof RecipeV3 ? value : THROW_CCE());
|
|
2218
2224
|
};
|
|
2219
|
-
protoOf($serializer_7).
|
|
2220
|
-
var tmp0_desc = this.
|
|
2225
|
+
protoOf($serializer_7).si = function (decoder) {
|
|
2226
|
+
var tmp0_desc = this.m1h_1;
|
|
2221
2227
|
var tmp1_flag = true;
|
|
2222
2228
|
var tmp2_index = 0;
|
|
2223
2229
|
var tmp3_bitMask0 = 0;
|
|
@@ -2245,176 +2251,176 @@
|
|
|
2245
2251
|
var tmp25_local21 = null;
|
|
2246
2252
|
var tmp26_local22 = null;
|
|
2247
2253
|
var tmp27_local23 = null;
|
|
2248
|
-
var tmp28_input = decoder.
|
|
2249
|
-
var tmp29_cached = Companion_getInstance_5().
|
|
2250
|
-
if (tmp28_input.
|
|
2251
|
-
tmp4_local0 = tmp28_input.
|
|
2254
|
+
var tmp28_input = decoder.nl(tmp0_desc);
|
|
2255
|
+
var tmp29_cached = Companion_getInstance_5().l1h_1;
|
|
2256
|
+
if (tmp28_input.dm()) {
|
|
2257
|
+
tmp4_local0 = tmp28_input.bm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
2252
2258
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2253
|
-
tmp5_local1 = tmp28_input.
|
|
2259
|
+
tmp5_local1 = tmp28_input.bm(tmp0_desc, 1, tmp29_cached[1].t1(), tmp5_local1);
|
|
2254
2260
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2255
|
-
tmp6_local2 = tmp28_input.
|
|
2261
|
+
tmp6_local2 = tmp28_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2256
2262
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2257
|
-
tmp7_local3 = tmp28_input.
|
|
2263
|
+
tmp7_local3 = tmp28_input.bm(tmp0_desc, 3, tmp29_cached[3].t1(), tmp7_local3);
|
|
2258
2264
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2259
|
-
tmp8_local4 = tmp28_input.
|
|
2265
|
+
tmp8_local4 = tmp28_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2260
2266
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2261
|
-
tmp9_local5 = tmp28_input.
|
|
2267
|
+
tmp9_local5 = tmp28_input.bm(tmp0_desc, 5, tmp29_cached[5].t1(), tmp9_local5);
|
|
2262
2268
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2263
|
-
tmp10_local6 = tmp28_input.
|
|
2269
|
+
tmp10_local6 = tmp28_input.bm(tmp0_desc, 6, tmp29_cached[6].t1(), tmp10_local6);
|
|
2264
2270
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
2265
|
-
tmp11_local7 = tmp28_input.
|
|
2271
|
+
tmp11_local7 = tmp28_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2266
2272
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2267
|
-
tmp12_local8 = tmp28_input.
|
|
2273
|
+
tmp12_local8 = tmp28_input.bm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
2268
2274
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2269
|
-
tmp13_local9 = tmp28_input.
|
|
2275
|
+
tmp13_local9 = tmp28_input.bm(tmp0_desc, 9, $serializer_getInstance_2(), tmp13_local9);
|
|
2270
2276
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
2271
|
-
tmp14_local10 = tmp28_input.
|
|
2277
|
+
tmp14_local10 = tmp28_input.xl(tmp0_desc, 10);
|
|
2272
2278
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
2273
|
-
tmp15_local11 = tmp28_input.
|
|
2279
|
+
tmp15_local11 = tmp28_input.bm(tmp0_desc, 11, tmp29_cached[11].t1(), tmp15_local11);
|
|
2274
2280
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
2275
|
-
tmp16_local12 = tmp28_input.
|
|
2281
|
+
tmp16_local12 = tmp28_input.bm(tmp0_desc, 12, tmp29_cached[12].t1(), tmp16_local12);
|
|
2276
2282
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
2277
|
-
tmp17_local13 = tmp28_input.
|
|
2283
|
+
tmp17_local13 = tmp28_input.bm(tmp0_desc, 13, tmp29_cached[13].t1(), tmp17_local13);
|
|
2278
2284
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
2279
|
-
tmp18_local14 = tmp28_input.
|
|
2285
|
+
tmp18_local14 = tmp28_input.bm(tmp0_desc, 14, tmp29_cached[14].t1(), tmp18_local14);
|
|
2280
2286
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
2281
|
-
tmp19_local15 = tmp28_input.
|
|
2287
|
+
tmp19_local15 = tmp28_input.bm(tmp0_desc, 15, BooleanSerializer_getInstance(), tmp19_local15);
|
|
2282
2288
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
2283
|
-
tmp20_local16 = tmp28_input.
|
|
2289
|
+
tmp20_local16 = tmp28_input.bm(tmp0_desc, 16, tmp29_cached[16].t1(), tmp20_local16);
|
|
2284
2290
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
2285
|
-
tmp21_local17 = tmp28_input.
|
|
2291
|
+
tmp21_local17 = tmp28_input.bm(tmp0_desc, 17, tmp29_cached[17].t1(), tmp21_local17);
|
|
2286
2292
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
2287
|
-
tmp22_local18 = tmp28_input.
|
|
2293
|
+
tmp22_local18 = tmp28_input.bm(tmp0_desc, 18, tmp29_cached[18].t1(), tmp22_local18);
|
|
2288
2294
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
2289
|
-
tmp23_local19 = tmp28_input.
|
|
2295
|
+
tmp23_local19 = tmp28_input.bm(tmp0_desc, 19, tmp29_cached[19].t1(), tmp23_local19);
|
|
2290
2296
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
2291
|
-
tmp24_local20 = tmp28_input.
|
|
2297
|
+
tmp24_local20 = tmp28_input.bm(tmp0_desc, 20, tmp29_cached[20].t1(), tmp24_local20);
|
|
2292
2298
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
2293
|
-
tmp25_local21 = tmp28_input.
|
|
2299
|
+
tmp25_local21 = tmp28_input.bm(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
|
|
2294
2300
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
2295
|
-
tmp26_local22 = tmp28_input.
|
|
2301
|
+
tmp26_local22 = tmp28_input.bm(tmp0_desc, 22, tmp29_cached[22].t1(), tmp26_local22);
|
|
2296
2302
|
tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
|
|
2297
|
-
tmp27_local23 = tmp28_input.
|
|
2303
|
+
tmp27_local23 = tmp28_input.bm(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
|
|
2298
2304
|
tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
|
|
2299
2305
|
} else
|
|
2300
2306
|
while (tmp1_flag) {
|
|
2301
|
-
tmp2_index = tmp28_input.
|
|
2307
|
+
tmp2_index = tmp28_input.em(tmp0_desc);
|
|
2302
2308
|
switch (tmp2_index) {
|
|
2303
2309
|
case -1:
|
|
2304
2310
|
tmp1_flag = false;
|
|
2305
2311
|
break;
|
|
2306
2312
|
case 0:
|
|
2307
|
-
tmp4_local0 = tmp28_input.
|
|
2313
|
+
tmp4_local0 = tmp28_input.bm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
2308
2314
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2309
2315
|
break;
|
|
2310
2316
|
case 1:
|
|
2311
|
-
tmp5_local1 = tmp28_input.
|
|
2317
|
+
tmp5_local1 = tmp28_input.bm(tmp0_desc, 1, tmp29_cached[1].t1(), tmp5_local1);
|
|
2312
2318
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2313
2319
|
break;
|
|
2314
2320
|
case 2:
|
|
2315
|
-
tmp6_local2 = tmp28_input.
|
|
2321
|
+
tmp6_local2 = tmp28_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2316
2322
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2317
2323
|
break;
|
|
2318
2324
|
case 3:
|
|
2319
|
-
tmp7_local3 = tmp28_input.
|
|
2325
|
+
tmp7_local3 = tmp28_input.bm(tmp0_desc, 3, tmp29_cached[3].t1(), tmp7_local3);
|
|
2320
2326
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2321
2327
|
break;
|
|
2322
2328
|
case 4:
|
|
2323
|
-
tmp8_local4 = tmp28_input.
|
|
2329
|
+
tmp8_local4 = tmp28_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2324
2330
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2325
2331
|
break;
|
|
2326
2332
|
case 5:
|
|
2327
|
-
tmp9_local5 = tmp28_input.
|
|
2333
|
+
tmp9_local5 = tmp28_input.bm(tmp0_desc, 5, tmp29_cached[5].t1(), tmp9_local5);
|
|
2328
2334
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2329
2335
|
break;
|
|
2330
2336
|
case 6:
|
|
2331
|
-
tmp10_local6 = tmp28_input.
|
|
2337
|
+
tmp10_local6 = tmp28_input.bm(tmp0_desc, 6, tmp29_cached[6].t1(), tmp10_local6);
|
|
2332
2338
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
2333
2339
|
break;
|
|
2334
2340
|
case 7:
|
|
2335
|
-
tmp11_local7 = tmp28_input.
|
|
2341
|
+
tmp11_local7 = tmp28_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2336
2342
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2337
2343
|
break;
|
|
2338
2344
|
case 8:
|
|
2339
|
-
tmp12_local8 = tmp28_input.
|
|
2345
|
+
tmp12_local8 = tmp28_input.bm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
2340
2346
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2341
2347
|
break;
|
|
2342
2348
|
case 9:
|
|
2343
|
-
tmp13_local9 = tmp28_input.
|
|
2349
|
+
tmp13_local9 = tmp28_input.bm(tmp0_desc, 9, $serializer_getInstance_2(), tmp13_local9);
|
|
2344
2350
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
2345
2351
|
break;
|
|
2346
2352
|
case 10:
|
|
2347
|
-
tmp14_local10 = tmp28_input.
|
|
2353
|
+
tmp14_local10 = tmp28_input.xl(tmp0_desc, 10);
|
|
2348
2354
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
2349
2355
|
break;
|
|
2350
2356
|
case 11:
|
|
2351
|
-
tmp15_local11 = tmp28_input.
|
|
2357
|
+
tmp15_local11 = tmp28_input.bm(tmp0_desc, 11, tmp29_cached[11].t1(), tmp15_local11);
|
|
2352
2358
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
2353
2359
|
break;
|
|
2354
2360
|
case 12:
|
|
2355
|
-
tmp16_local12 = tmp28_input.
|
|
2361
|
+
tmp16_local12 = tmp28_input.bm(tmp0_desc, 12, tmp29_cached[12].t1(), tmp16_local12);
|
|
2356
2362
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
2357
2363
|
break;
|
|
2358
2364
|
case 13:
|
|
2359
|
-
tmp17_local13 = tmp28_input.
|
|
2365
|
+
tmp17_local13 = tmp28_input.bm(tmp0_desc, 13, tmp29_cached[13].t1(), tmp17_local13);
|
|
2360
2366
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
2361
2367
|
break;
|
|
2362
2368
|
case 14:
|
|
2363
|
-
tmp18_local14 = tmp28_input.
|
|
2369
|
+
tmp18_local14 = tmp28_input.bm(tmp0_desc, 14, tmp29_cached[14].t1(), tmp18_local14);
|
|
2364
2370
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
2365
2371
|
break;
|
|
2366
2372
|
case 15:
|
|
2367
|
-
tmp19_local15 = tmp28_input.
|
|
2373
|
+
tmp19_local15 = tmp28_input.bm(tmp0_desc, 15, BooleanSerializer_getInstance(), tmp19_local15);
|
|
2368
2374
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
2369
2375
|
break;
|
|
2370
2376
|
case 16:
|
|
2371
|
-
tmp20_local16 = tmp28_input.
|
|
2377
|
+
tmp20_local16 = tmp28_input.bm(tmp0_desc, 16, tmp29_cached[16].t1(), tmp20_local16);
|
|
2372
2378
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
2373
2379
|
break;
|
|
2374
2380
|
case 17:
|
|
2375
|
-
tmp21_local17 = tmp28_input.
|
|
2381
|
+
tmp21_local17 = tmp28_input.bm(tmp0_desc, 17, tmp29_cached[17].t1(), tmp21_local17);
|
|
2376
2382
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
2377
2383
|
break;
|
|
2378
2384
|
case 18:
|
|
2379
|
-
tmp22_local18 = tmp28_input.
|
|
2385
|
+
tmp22_local18 = tmp28_input.bm(tmp0_desc, 18, tmp29_cached[18].t1(), tmp22_local18);
|
|
2380
2386
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
2381
2387
|
break;
|
|
2382
2388
|
case 19:
|
|
2383
|
-
tmp23_local19 = tmp28_input.
|
|
2389
|
+
tmp23_local19 = tmp28_input.bm(tmp0_desc, 19, tmp29_cached[19].t1(), tmp23_local19);
|
|
2384
2390
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
2385
2391
|
break;
|
|
2386
2392
|
case 20:
|
|
2387
|
-
tmp24_local20 = tmp28_input.
|
|
2393
|
+
tmp24_local20 = tmp28_input.bm(tmp0_desc, 20, tmp29_cached[20].t1(), tmp24_local20);
|
|
2388
2394
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
2389
2395
|
break;
|
|
2390
2396
|
case 21:
|
|
2391
|
-
tmp25_local21 = tmp28_input.
|
|
2397
|
+
tmp25_local21 = tmp28_input.bm(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
|
|
2392
2398
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
2393
2399
|
break;
|
|
2394
2400
|
case 22:
|
|
2395
|
-
tmp26_local22 = tmp28_input.
|
|
2401
|
+
tmp26_local22 = tmp28_input.bm(tmp0_desc, 22, tmp29_cached[22].t1(), tmp26_local22);
|
|
2396
2402
|
tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
|
|
2397
2403
|
break;
|
|
2398
2404
|
case 23:
|
|
2399
|
-
tmp27_local23 = tmp28_input.
|
|
2405
|
+
tmp27_local23 = tmp28_input.bm(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
|
|
2400
2406
|
tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
|
|
2401
2407
|
break;
|
|
2402
2408
|
default:
|
|
2403
2409
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2404
2410
|
}
|
|
2405
2411
|
}
|
|
2406
|
-
tmp28_input.
|
|
2412
|
+
tmp28_input.ol(tmp0_desc);
|
|
2407
2413
|
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, tmp27_local23, null);
|
|
2408
2414
|
};
|
|
2409
|
-
protoOf($serializer_7).
|
|
2410
|
-
return this.
|
|
2415
|
+
protoOf($serializer_7).qi = function () {
|
|
2416
|
+
return this.m1h_1;
|
|
2411
2417
|
};
|
|
2412
|
-
protoOf($serializer_7).
|
|
2413
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
2418
|
+
protoOf($serializer_7).ys = function () {
|
|
2419
|
+
var tmp0_cached = Companion_getInstance_5().l1h_1;
|
|
2414
2420
|
// Inline function 'kotlin.arrayOf' call
|
|
2415
2421
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2416
2422
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2417
|
-
return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1].
|
|
2423
|
+
return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[3].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[5].t1()), get_nullable(tmp0_cached[6].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_2()), StringSerializer_getInstance(), get_nullable(tmp0_cached[11].t1()), get_nullable(tmp0_cached[12].t1()), get_nullable(tmp0_cached[13].t1()), get_nullable(tmp0_cached[14].t1()), get_nullable(BooleanSerializer_getInstance()), get_nullable(tmp0_cached[16].t1()), get_nullable(tmp0_cached[17].t1()), get_nullable(tmp0_cached[18].t1()), get_nullable(tmp0_cached[19].t1()), get_nullable(tmp0_cached[20].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[22].t1()), get_nullable(StringSerializer_getInstance())];
|
|
2418
2424
|
};
|
|
2419
2425
|
var $serializer_instance_7;
|
|
2420
2426
|
function $serializer_getInstance_7() {
|
|
@@ -2424,101 +2430,101 @@
|
|
|
2424
2430
|
}
|
|
2425
2431
|
function RecipeV3_init_$Init$(seen0, bookCredit, byline, canonicalArticle, celebrationIDS, composerID, contributors, cuisineIDS, description, difficultyLevel, featuredImage, id, ingredients, ingredientsTemplate, instructions, instructionsTemplate, isAppReady, mealTypeIDS, serves, suitableForDietIDS, techniquesUsedIDS, timings, title, utensilsAndApplianceIDS, webPublicationDate, serializationConstructorMarker, $this) {
|
|
2426
2432
|
if (!(1024 === (1024 & seen0))) {
|
|
2427
|
-
throwMissingFieldException(seen0, 1024, $serializer_getInstance_7().
|
|
2433
|
+
throwMissingFieldException(seen0, 1024, $serializer_getInstance_7().m1h_1);
|
|
2428
2434
|
}
|
|
2429
2435
|
if (0 === (seen0 & 1))
|
|
2430
|
-
$this.
|
|
2436
|
+
$this.h1d_1 = null;
|
|
2431
2437
|
else
|
|
2432
|
-
$this.
|
|
2438
|
+
$this.h1d_1 = bookCredit;
|
|
2433
2439
|
if (0 === (seen0 & 2))
|
|
2434
|
-
$this.
|
|
2440
|
+
$this.i1d_1 = null;
|
|
2435
2441
|
else
|
|
2436
|
-
$this.
|
|
2442
|
+
$this.i1d_1 = byline;
|
|
2437
2443
|
if (0 === (seen0 & 4))
|
|
2438
|
-
$this.
|
|
2444
|
+
$this.j1d_1 = null;
|
|
2439
2445
|
else
|
|
2440
|
-
$this.
|
|
2446
|
+
$this.j1d_1 = canonicalArticle;
|
|
2441
2447
|
if (0 === (seen0 & 8))
|
|
2442
|
-
$this.
|
|
2448
|
+
$this.k1d_1 = null;
|
|
2443
2449
|
else
|
|
2444
|
-
$this.
|
|
2450
|
+
$this.k1d_1 = celebrationIDS;
|
|
2445
2451
|
if (0 === (seen0 & 16))
|
|
2446
|
-
$this.
|
|
2452
|
+
$this.l1d_1 = null;
|
|
2447
2453
|
else
|
|
2448
|
-
$this.
|
|
2454
|
+
$this.l1d_1 = composerID;
|
|
2449
2455
|
if (0 === (seen0 & 32))
|
|
2450
|
-
$this.
|
|
2456
|
+
$this.m1d_1 = null;
|
|
2451
2457
|
else
|
|
2452
|
-
$this.
|
|
2458
|
+
$this.m1d_1 = contributors;
|
|
2453
2459
|
if (0 === (seen0 & 64))
|
|
2454
|
-
$this.
|
|
2460
|
+
$this.n1d_1 = null;
|
|
2455
2461
|
else
|
|
2456
|
-
$this.
|
|
2462
|
+
$this.n1d_1 = cuisineIDS;
|
|
2457
2463
|
if (0 === (seen0 & 128))
|
|
2458
|
-
$this.
|
|
2464
|
+
$this.o1d_1 = null;
|
|
2459
2465
|
else
|
|
2460
|
-
$this.
|
|
2466
|
+
$this.o1d_1 = description;
|
|
2461
2467
|
if (0 === (seen0 & 256))
|
|
2462
|
-
$this.
|
|
2468
|
+
$this.p1d_1 = null;
|
|
2463
2469
|
else
|
|
2464
|
-
$this.
|
|
2470
|
+
$this.p1d_1 = difficultyLevel;
|
|
2465
2471
|
if (0 === (seen0 & 512))
|
|
2466
|
-
$this.
|
|
2472
|
+
$this.q1d_1 = null;
|
|
2467
2473
|
else
|
|
2468
|
-
$this.
|
|
2469
|
-
$this.
|
|
2474
|
+
$this.q1d_1 = featuredImage;
|
|
2475
|
+
$this.r1d_1 = id;
|
|
2470
2476
|
if (0 === (seen0 & 2048))
|
|
2471
|
-
$this.
|
|
2477
|
+
$this.s1d_1 = null;
|
|
2472
2478
|
else
|
|
2473
|
-
$this.
|
|
2479
|
+
$this.s1d_1 = ingredients;
|
|
2474
2480
|
if (0 === (seen0 & 4096))
|
|
2475
|
-
$this.
|
|
2481
|
+
$this.t1d_1 = null;
|
|
2476
2482
|
else
|
|
2477
|
-
$this.
|
|
2483
|
+
$this.t1d_1 = ingredientsTemplate;
|
|
2478
2484
|
if (0 === (seen0 & 8192))
|
|
2479
|
-
$this.
|
|
2485
|
+
$this.u1d_1 = null;
|
|
2480
2486
|
else
|
|
2481
|
-
$this.
|
|
2487
|
+
$this.u1d_1 = instructions;
|
|
2482
2488
|
if (0 === (seen0 & 16384))
|
|
2483
|
-
$this.
|
|
2489
|
+
$this.v1d_1 = null;
|
|
2484
2490
|
else
|
|
2485
|
-
$this.
|
|
2491
|
+
$this.v1d_1 = instructionsTemplate;
|
|
2486
2492
|
if (0 === (seen0 & 32768))
|
|
2487
|
-
$this.
|
|
2493
|
+
$this.w1d_1 = null;
|
|
2488
2494
|
else
|
|
2489
|
-
$this.
|
|
2495
|
+
$this.w1d_1 = isAppReady;
|
|
2490
2496
|
if (0 === (seen0 & 65536))
|
|
2491
|
-
$this.
|
|
2497
|
+
$this.x1d_1 = null;
|
|
2492
2498
|
else
|
|
2493
|
-
$this.
|
|
2499
|
+
$this.x1d_1 = mealTypeIDS;
|
|
2494
2500
|
if (0 === (seen0 & 131072))
|
|
2495
|
-
$this.
|
|
2501
|
+
$this.y1d_1 = null;
|
|
2496
2502
|
else
|
|
2497
|
-
$this.
|
|
2503
|
+
$this.y1d_1 = serves;
|
|
2498
2504
|
if (0 === (seen0 & 262144))
|
|
2499
|
-
$this.
|
|
2505
|
+
$this.z1d_1 = null;
|
|
2500
2506
|
else
|
|
2501
|
-
$this.
|
|
2507
|
+
$this.z1d_1 = suitableForDietIDS;
|
|
2502
2508
|
if (0 === (seen0 & 524288))
|
|
2503
|
-
$this.
|
|
2509
|
+
$this.a1e_1 = null;
|
|
2504
2510
|
else
|
|
2505
|
-
$this.
|
|
2511
|
+
$this.a1e_1 = techniquesUsedIDS;
|
|
2506
2512
|
if (0 === (seen0 & 1048576))
|
|
2507
|
-
$this.
|
|
2513
|
+
$this.b1e_1 = null;
|
|
2508
2514
|
else
|
|
2509
|
-
$this.
|
|
2515
|
+
$this.b1e_1 = timings;
|
|
2510
2516
|
if (0 === (seen0 & 2097152))
|
|
2511
|
-
$this.
|
|
2517
|
+
$this.c1e_1 = null;
|
|
2512
2518
|
else
|
|
2513
|
-
$this.
|
|
2519
|
+
$this.c1e_1 = title;
|
|
2514
2520
|
if (0 === (seen0 & 4194304))
|
|
2515
|
-
$this.
|
|
2521
|
+
$this.d1e_1 = null;
|
|
2516
2522
|
else
|
|
2517
|
-
$this.
|
|
2523
|
+
$this.d1e_1 = utensilsAndApplianceIDS;
|
|
2518
2524
|
if (0 === (seen0 & 8388608))
|
|
2519
|
-
$this.
|
|
2525
|
+
$this.e1e_1 = null;
|
|
2520
2526
|
else
|
|
2521
|
-
$this.
|
|
2527
|
+
$this.e1e_1 = webPublicationDate;
|
|
2522
2528
|
return $this;
|
|
2523
2529
|
}
|
|
2524
2530
|
function RecipeV3_init_$Create$(seen0, bookCredit, byline, canonicalArticle, celebrationIDS, composerID, contributors, cuisineIDS, description, difficultyLevel, featuredImage, id, ingredients, ingredientsTemplate, instructions, instructionsTemplate, isAppReady, mealTypeIDS, serves, suitableForDietIDS, techniquesUsedIDS, timings, title, utensilsAndApplianceIDS, webPublicationDate, serializationConstructorMarker) {
|
|
@@ -2549,59 +2555,59 @@
|
|
|
2549
2555
|
title = title === VOID ? null : title;
|
|
2550
2556
|
utensilsAndApplianceIDS = utensilsAndApplianceIDS === VOID ? null : utensilsAndApplianceIDS;
|
|
2551
2557
|
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
2552
|
-
this.
|
|
2553
|
-
this.
|
|
2554
|
-
this.
|
|
2555
|
-
this.
|
|
2556
|
-
this.
|
|
2557
|
-
this.
|
|
2558
|
-
this.
|
|
2559
|
-
this.
|
|
2560
|
-
this.
|
|
2561
|
-
this.
|
|
2562
|
-
this.
|
|
2563
|
-
this.
|
|
2564
|
-
this.
|
|
2565
|
-
this.
|
|
2566
|
-
this.
|
|
2567
|
-
this.
|
|
2568
|
-
this.
|
|
2569
|
-
this.
|
|
2570
|
-
this.
|
|
2571
|
-
this.
|
|
2572
|
-
this.
|
|
2573
|
-
this.
|
|
2574
|
-
this.
|
|
2575
|
-
this.
|
|
2558
|
+
this.h1d_1 = bookCredit;
|
|
2559
|
+
this.i1d_1 = byline;
|
|
2560
|
+
this.j1d_1 = canonicalArticle;
|
|
2561
|
+
this.k1d_1 = celebrationIDS;
|
|
2562
|
+
this.l1d_1 = composerID;
|
|
2563
|
+
this.m1d_1 = contributors;
|
|
2564
|
+
this.n1d_1 = cuisineIDS;
|
|
2565
|
+
this.o1d_1 = description;
|
|
2566
|
+
this.p1d_1 = difficultyLevel;
|
|
2567
|
+
this.q1d_1 = featuredImage;
|
|
2568
|
+
this.r1d_1 = id;
|
|
2569
|
+
this.s1d_1 = ingredients;
|
|
2570
|
+
this.t1d_1 = ingredientsTemplate;
|
|
2571
|
+
this.u1d_1 = instructions;
|
|
2572
|
+
this.v1d_1 = instructionsTemplate;
|
|
2573
|
+
this.w1d_1 = isAppReady;
|
|
2574
|
+
this.x1d_1 = mealTypeIDS;
|
|
2575
|
+
this.y1d_1 = serves;
|
|
2576
|
+
this.z1d_1 = suitableForDietIDS;
|
|
2577
|
+
this.a1e_1 = techniquesUsedIDS;
|
|
2578
|
+
this.b1e_1 = timings;
|
|
2579
|
+
this.c1e_1 = title;
|
|
2580
|
+
this.d1e_1 = utensilsAndApplianceIDS;
|
|
2581
|
+
this.e1e_1 = webPublicationDate;
|
|
2576
2582
|
}
|
|
2577
2583
|
protoOf(RecipeV3).toString = function () {
|
|
2578
|
-
return 'RecipeV3(bookCredit=' + this.
|
|
2584
|
+
return 'RecipeV3(bookCredit=' + this.h1d_1 + ', byline=' + toString(this.i1d_1) + ', canonicalArticle=' + this.j1d_1 + ', celebrationIDS=' + toString(this.k1d_1) + ', composerID=' + this.l1d_1 + ', contributors=' + toString(this.m1d_1) + ', cuisineIDS=' + toString(this.n1d_1) + ', description=' + this.o1d_1 + ', difficultyLevel=' + this.p1d_1 + ', featuredImage=' + toString(this.q1d_1) + ', id=' + this.r1d_1 + ', ingredients=' + toString(this.s1d_1) + ', ingredientsTemplate=' + toString(this.t1d_1) + ', instructions=' + toString(this.u1d_1) + ', instructionsTemplate=' + toString(this.v1d_1) + ', isAppReady=' + this.w1d_1 + ', mealTypeIDS=' + toString(this.x1d_1) + ', serves=' + toString(this.y1d_1) + ', suitableForDietIDS=' + toString(this.z1d_1) + ', techniquesUsedIDS=' + toString(this.a1e_1) + ', timings=' + toString(this.b1e_1) + ', title=' + this.c1e_1 + ', utensilsAndApplianceIDS=' + toString(this.d1e_1) + ', webPublicationDate=' + this.e1e_1 + ')';
|
|
2579
2585
|
};
|
|
2580
2586
|
protoOf(RecipeV3).hashCode = function () {
|
|
2581
|
-
var result = this.
|
|
2582
|
-
result = imul(result, 31) + (this.n1c_1 == null ? 0 : hashCode(this.n1c_1)) | 0;
|
|
2583
|
-
result = imul(result, 31) + (this.o1c_1 == null ? 0 : getStringHashCode(this.o1c_1)) | 0;
|
|
2584
|
-
result = imul(result, 31) + (this.p1c_1 == null ? 0 : hashCode(this.p1c_1)) | 0;
|
|
2585
|
-
result = imul(result, 31) + (this.q1c_1 == null ? 0 : getStringHashCode(this.q1c_1)) | 0;
|
|
2586
|
-
result = imul(result, 31) + (this.r1c_1 == null ? 0 : hashCode(this.r1c_1)) | 0;
|
|
2587
|
-
result = imul(result, 31) + (this.s1c_1 == null ? 0 : hashCode(this.s1c_1)) | 0;
|
|
2588
|
-
result = imul(result, 31) + (this.t1c_1 == null ? 0 : getStringHashCode(this.t1c_1)) | 0;
|
|
2589
|
-
result = imul(result, 31) + (this.u1c_1 == null ? 0 : getStringHashCode(this.u1c_1)) | 0;
|
|
2590
|
-
result = imul(result, 31) + (this.v1c_1 == null ? 0 : this.v1c_1.hashCode()) | 0;
|
|
2591
|
-
result = imul(result, 31) + getStringHashCode(this.w1c_1) | 0;
|
|
2592
|
-
result = imul(result, 31) + (this.x1c_1 == null ? 0 : hashCode(this.x1c_1)) | 0;
|
|
2593
|
-
result = imul(result, 31) + (this.y1c_1 == null ? 0 : hashCode(this.y1c_1)) | 0;
|
|
2594
|
-
result = imul(result, 31) + (this.z1c_1 == null ? 0 : hashCode(this.z1c_1)) | 0;
|
|
2595
|
-
result = imul(result, 31) + (this.a1d_1 == null ? 0 : hashCode(this.a1d_1)) | 0;
|
|
2596
|
-
result = imul(result, 31) + (this.b1d_1 == null ? 0 : getBooleanHashCode(this.b1d_1)) | 0;
|
|
2597
|
-
result = imul(result, 31) + (this.c1d_1 == null ? 0 : hashCode(this.c1d_1)) | 0;
|
|
2598
|
-
result = imul(result, 31) + (this.d1d_1 == null ? 0 : hashCode(this.d1d_1)) | 0;
|
|
2599
|
-
result = imul(result, 31) + (this.e1d_1 == null ? 0 : hashCode(this.e1d_1)) | 0;
|
|
2600
|
-
result = imul(result, 31) + (this.f1d_1 == null ? 0 : hashCode(this.f1d_1)) | 0;
|
|
2601
|
-
result = imul(result, 31) + (this.g1d_1 == null ? 0 : hashCode(this.g1d_1)) | 0;
|
|
2602
|
-
result = imul(result, 31) + (this.h1d_1 == null ? 0 : getStringHashCode(this.h1d_1)) | 0;
|
|
2587
|
+
var result = this.h1d_1 == null ? 0 : getStringHashCode(this.h1d_1);
|
|
2603
2588
|
result = imul(result, 31) + (this.i1d_1 == null ? 0 : hashCode(this.i1d_1)) | 0;
|
|
2604
2589
|
result = imul(result, 31) + (this.j1d_1 == null ? 0 : getStringHashCode(this.j1d_1)) | 0;
|
|
2590
|
+
result = imul(result, 31) + (this.k1d_1 == null ? 0 : hashCode(this.k1d_1)) | 0;
|
|
2591
|
+
result = imul(result, 31) + (this.l1d_1 == null ? 0 : getStringHashCode(this.l1d_1)) | 0;
|
|
2592
|
+
result = imul(result, 31) + (this.m1d_1 == null ? 0 : hashCode(this.m1d_1)) | 0;
|
|
2593
|
+
result = imul(result, 31) + (this.n1d_1 == null ? 0 : hashCode(this.n1d_1)) | 0;
|
|
2594
|
+
result = imul(result, 31) + (this.o1d_1 == null ? 0 : getStringHashCode(this.o1d_1)) | 0;
|
|
2595
|
+
result = imul(result, 31) + (this.p1d_1 == null ? 0 : getStringHashCode(this.p1d_1)) | 0;
|
|
2596
|
+
result = imul(result, 31) + (this.q1d_1 == null ? 0 : this.q1d_1.hashCode()) | 0;
|
|
2597
|
+
result = imul(result, 31) + getStringHashCode(this.r1d_1) | 0;
|
|
2598
|
+
result = imul(result, 31) + (this.s1d_1 == null ? 0 : hashCode(this.s1d_1)) | 0;
|
|
2599
|
+
result = imul(result, 31) + (this.t1d_1 == null ? 0 : hashCode(this.t1d_1)) | 0;
|
|
2600
|
+
result = imul(result, 31) + (this.u1d_1 == null ? 0 : hashCode(this.u1d_1)) | 0;
|
|
2601
|
+
result = imul(result, 31) + (this.v1d_1 == null ? 0 : hashCode(this.v1d_1)) | 0;
|
|
2602
|
+
result = imul(result, 31) + (this.w1d_1 == null ? 0 : getBooleanHashCode(this.w1d_1)) | 0;
|
|
2603
|
+
result = imul(result, 31) + (this.x1d_1 == null ? 0 : hashCode(this.x1d_1)) | 0;
|
|
2604
|
+
result = imul(result, 31) + (this.y1d_1 == null ? 0 : hashCode(this.y1d_1)) | 0;
|
|
2605
|
+
result = imul(result, 31) + (this.z1d_1 == null ? 0 : hashCode(this.z1d_1)) | 0;
|
|
2606
|
+
result = imul(result, 31) + (this.a1e_1 == null ? 0 : hashCode(this.a1e_1)) | 0;
|
|
2607
|
+
result = imul(result, 31) + (this.b1e_1 == null ? 0 : hashCode(this.b1e_1)) | 0;
|
|
2608
|
+
result = imul(result, 31) + (this.c1e_1 == null ? 0 : getStringHashCode(this.c1e_1)) | 0;
|
|
2609
|
+
result = imul(result, 31) + (this.d1e_1 == null ? 0 : hashCode(this.d1e_1)) | 0;
|
|
2610
|
+
result = imul(result, 31) + (this.e1e_1 == null ? 0 : getStringHashCode(this.e1e_1)) | 0;
|
|
2605
2611
|
return result;
|
|
2606
2612
|
};
|
|
2607
2613
|
protoOf(RecipeV3).equals = function (other) {
|
|
@@ -2609,53 +2615,53 @@
|
|
|
2609
2615
|
return true;
|
|
2610
2616
|
if (!(other instanceof RecipeV3))
|
|
2611
2617
|
return false;
|
|
2612
|
-
if (!(this.
|
|
2618
|
+
if (!(this.h1d_1 == other.h1d_1))
|
|
2613
2619
|
return false;
|
|
2614
|
-
if (!equals(this.
|
|
2620
|
+
if (!equals(this.i1d_1, other.i1d_1))
|
|
2615
2621
|
return false;
|
|
2616
|
-
if (!(this.
|
|
2622
|
+
if (!(this.j1d_1 == other.j1d_1))
|
|
2617
2623
|
return false;
|
|
2618
|
-
if (!equals(this.
|
|
2624
|
+
if (!equals(this.k1d_1, other.k1d_1))
|
|
2619
2625
|
return false;
|
|
2620
|
-
if (!(this.
|
|
2626
|
+
if (!(this.l1d_1 == other.l1d_1))
|
|
2621
2627
|
return false;
|
|
2622
|
-
if (!equals(this.
|
|
2628
|
+
if (!equals(this.m1d_1, other.m1d_1))
|
|
2623
2629
|
return false;
|
|
2624
|
-
if (!equals(this.
|
|
2630
|
+
if (!equals(this.n1d_1, other.n1d_1))
|
|
2625
2631
|
return false;
|
|
2626
|
-
if (!(this.
|
|
2632
|
+
if (!(this.o1d_1 == other.o1d_1))
|
|
2627
2633
|
return false;
|
|
2628
|
-
if (!(this.
|
|
2634
|
+
if (!(this.p1d_1 == other.p1d_1))
|
|
2629
2635
|
return false;
|
|
2630
|
-
if (!equals(this.
|
|
2636
|
+
if (!equals(this.q1d_1, other.q1d_1))
|
|
2631
2637
|
return false;
|
|
2632
|
-
if (!(this.
|
|
2638
|
+
if (!(this.r1d_1 === other.r1d_1))
|
|
2633
2639
|
return false;
|
|
2634
|
-
if (!equals(this.
|
|
2640
|
+
if (!equals(this.s1d_1, other.s1d_1))
|
|
2635
2641
|
return false;
|
|
2636
|
-
if (!equals(this.
|
|
2642
|
+
if (!equals(this.t1d_1, other.t1d_1))
|
|
2637
2643
|
return false;
|
|
2638
|
-
if (!equals(this.
|
|
2644
|
+
if (!equals(this.u1d_1, other.u1d_1))
|
|
2639
2645
|
return false;
|
|
2640
|
-
if (!equals(this.
|
|
2646
|
+
if (!equals(this.v1d_1, other.v1d_1))
|
|
2641
2647
|
return false;
|
|
2642
|
-
if (!(this.
|
|
2648
|
+
if (!(this.w1d_1 == other.w1d_1))
|
|
2643
2649
|
return false;
|
|
2644
|
-
if (!equals(this.
|
|
2650
|
+
if (!equals(this.x1d_1, other.x1d_1))
|
|
2645
2651
|
return false;
|
|
2646
|
-
if (!equals(this.
|
|
2652
|
+
if (!equals(this.y1d_1, other.y1d_1))
|
|
2647
2653
|
return false;
|
|
2648
|
-
if (!equals(this.
|
|
2654
|
+
if (!equals(this.z1d_1, other.z1d_1))
|
|
2649
2655
|
return false;
|
|
2650
|
-
if (!equals(this.
|
|
2656
|
+
if (!equals(this.a1e_1, other.a1e_1))
|
|
2651
2657
|
return false;
|
|
2652
|
-
if (!equals(this.
|
|
2658
|
+
if (!equals(this.b1e_1, other.b1e_1))
|
|
2653
2659
|
return false;
|
|
2654
|
-
if (!(this.
|
|
2660
|
+
if (!(this.c1e_1 == other.c1e_1))
|
|
2655
2661
|
return false;
|
|
2656
|
-
if (!equals(this.
|
|
2662
|
+
if (!equals(this.d1e_1, other.d1e_1))
|
|
2657
2663
|
return false;
|
|
2658
|
-
if (!(this.
|
|
2664
|
+
if (!(this.e1e_1 == other.e1e_1))
|
|
2659
2665
|
return false;
|
|
2660
2666
|
return true;
|
|
2661
2667
|
};
|
|
@@ -2669,7 +2675,7 @@
|
|
|
2669
2675
|
// Inline function 'kotlin.arrayOf' call
|
|
2670
2676
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2671
2677
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2672
|
-
tmp.
|
|
2678
|
+
tmp.o1h_1 = [lazy(tmp_0, IngredientsTemplateElement$Companion$$childSerializers$_anonymous__8t0no6), null];
|
|
2673
2679
|
}
|
|
2674
2680
|
var Companion_instance_6;
|
|
2675
2681
|
function Companion_getInstance_6() {
|
|
@@ -2680,70 +2686,70 @@
|
|
|
2680
2686
|
function $serializer_8() {
|
|
2681
2687
|
$serializer_instance_8 = this;
|
|
2682
2688
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsTemplateElement', this, 2);
|
|
2683
|
-
tmp0_serialDesc.
|
|
2684
|
-
tmp0_serialDesc.
|
|
2685
|
-
this.
|
|
2689
|
+
tmp0_serialDesc.ws('ingredientsList', true);
|
|
2690
|
+
tmp0_serialDesc.ws('recipeSection', true);
|
|
2691
|
+
this.p1h_1 = tmp0_serialDesc;
|
|
2686
2692
|
}
|
|
2687
|
-
protoOf($serializer_8).
|
|
2688
|
-
var tmp0_desc = this.
|
|
2689
|
-
var tmp1_output = encoder.
|
|
2690
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
2691
|
-
if (tmp1_output.
|
|
2692
|
-
tmp1_output.
|
|
2693
|
+
protoOf($serializer_8).q1h = function (encoder, value) {
|
|
2694
|
+
var tmp0_desc = this.p1h_1;
|
|
2695
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
2696
|
+
var tmp2_cached = Companion_getInstance_6().o1h_1;
|
|
2697
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.f1e_1 == null)) {
|
|
2698
|
+
tmp1_output.fn(tmp0_desc, 0, tmp2_cached[0].t1(), value.f1e_1);
|
|
2693
2699
|
}
|
|
2694
|
-
if (tmp1_output.
|
|
2695
|
-
tmp1_output.
|
|
2700
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.g1e_1 == null)) {
|
|
2701
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.g1e_1);
|
|
2696
2702
|
}
|
|
2697
|
-
tmp1_output.
|
|
2703
|
+
tmp1_output.ol(tmp0_desc);
|
|
2698
2704
|
};
|
|
2699
|
-
protoOf($serializer_8).
|
|
2700
|
-
return this.
|
|
2705
|
+
protoOf($serializer_8).ri = function (encoder, value) {
|
|
2706
|
+
return this.q1h(encoder, value instanceof IngredientsTemplateElement ? value : THROW_CCE());
|
|
2701
2707
|
};
|
|
2702
|
-
protoOf($serializer_8).
|
|
2703
|
-
var tmp0_desc = this.
|
|
2708
|
+
protoOf($serializer_8).si = function (decoder) {
|
|
2709
|
+
var tmp0_desc = this.p1h_1;
|
|
2704
2710
|
var tmp1_flag = true;
|
|
2705
2711
|
var tmp2_index = 0;
|
|
2706
2712
|
var tmp3_bitMask0 = 0;
|
|
2707
2713
|
var tmp4_local0 = null;
|
|
2708
2714
|
var tmp5_local1 = null;
|
|
2709
|
-
var tmp6_input = decoder.
|
|
2710
|
-
var tmp7_cached = Companion_getInstance_6().
|
|
2711
|
-
if (tmp6_input.
|
|
2712
|
-
tmp4_local0 = tmp6_input.
|
|
2715
|
+
var tmp6_input = decoder.nl(tmp0_desc);
|
|
2716
|
+
var tmp7_cached = Companion_getInstance_6().o1h_1;
|
|
2717
|
+
if (tmp6_input.dm()) {
|
|
2718
|
+
tmp4_local0 = tmp6_input.bm(tmp0_desc, 0, tmp7_cached[0].t1(), tmp4_local0);
|
|
2713
2719
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2714
|
-
tmp5_local1 = tmp6_input.
|
|
2720
|
+
tmp5_local1 = tmp6_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2715
2721
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2716
2722
|
} else
|
|
2717
2723
|
while (tmp1_flag) {
|
|
2718
|
-
tmp2_index = tmp6_input.
|
|
2724
|
+
tmp2_index = tmp6_input.em(tmp0_desc);
|
|
2719
2725
|
switch (tmp2_index) {
|
|
2720
2726
|
case -1:
|
|
2721
2727
|
tmp1_flag = false;
|
|
2722
2728
|
break;
|
|
2723
2729
|
case 0:
|
|
2724
|
-
tmp4_local0 = tmp6_input.
|
|
2730
|
+
tmp4_local0 = tmp6_input.bm(tmp0_desc, 0, tmp7_cached[0].t1(), tmp4_local0);
|
|
2725
2731
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2726
2732
|
break;
|
|
2727
2733
|
case 1:
|
|
2728
|
-
tmp5_local1 = tmp6_input.
|
|
2734
|
+
tmp5_local1 = tmp6_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2729
2735
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2730
2736
|
break;
|
|
2731
2737
|
default:
|
|
2732
2738
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2733
2739
|
}
|
|
2734
2740
|
}
|
|
2735
|
-
tmp6_input.
|
|
2741
|
+
tmp6_input.ol(tmp0_desc);
|
|
2736
2742
|
return IngredientsTemplateElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2737
2743
|
};
|
|
2738
|
-
protoOf($serializer_8).
|
|
2739
|
-
return this.
|
|
2744
|
+
protoOf($serializer_8).qi = function () {
|
|
2745
|
+
return this.p1h_1;
|
|
2740
2746
|
};
|
|
2741
|
-
protoOf($serializer_8).
|
|
2742
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
2747
|
+
protoOf($serializer_8).ys = function () {
|
|
2748
|
+
var tmp0_cached = Companion_getInstance_6().o1h_1;
|
|
2743
2749
|
// Inline function 'kotlin.arrayOf' call
|
|
2744
2750
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2745
2751
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2746
|
-
return [get_nullable(tmp0_cached[0].
|
|
2752
|
+
return [get_nullable(tmp0_cached[0].t1()), get_nullable(StringSerializer_getInstance())];
|
|
2747
2753
|
};
|
|
2748
2754
|
var $serializer_instance_8;
|
|
2749
2755
|
function $serializer_getInstance_8() {
|
|
@@ -2753,16 +2759,16 @@
|
|
|
2753
2759
|
}
|
|
2754
2760
|
function IngredientsTemplateElement_init_$Init$(seen0, ingredientsList, recipeSection, serializationConstructorMarker, $this) {
|
|
2755
2761
|
if (!(0 === (0 & seen0))) {
|
|
2756
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_8().
|
|
2762
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_8().p1h_1);
|
|
2757
2763
|
}
|
|
2758
2764
|
if (0 === (seen0 & 1))
|
|
2759
|
-
$this.
|
|
2765
|
+
$this.f1e_1 = null;
|
|
2760
2766
|
else
|
|
2761
|
-
$this.
|
|
2767
|
+
$this.f1e_1 = ingredientsList;
|
|
2762
2768
|
if (0 === (seen0 & 2))
|
|
2763
|
-
$this.
|
|
2769
|
+
$this.g1e_1 = null;
|
|
2764
2770
|
else
|
|
2765
|
-
$this.
|
|
2771
|
+
$this.g1e_1 = recipeSection;
|
|
2766
2772
|
return $this;
|
|
2767
2773
|
}
|
|
2768
2774
|
function IngredientsTemplateElement_init_$Create$(seen0, ingredientsList, recipeSection, serializationConstructorMarker) {
|
|
@@ -2772,15 +2778,15 @@
|
|
|
2772
2778
|
Companion_getInstance_6();
|
|
2773
2779
|
ingredientsList = ingredientsList === VOID ? null : ingredientsList;
|
|
2774
2780
|
recipeSection = recipeSection === VOID ? null : recipeSection;
|
|
2775
|
-
this.
|
|
2776
|
-
this.
|
|
2781
|
+
this.f1e_1 = ingredientsList;
|
|
2782
|
+
this.g1e_1 = recipeSection;
|
|
2777
2783
|
}
|
|
2778
2784
|
protoOf(IngredientsTemplateElement).toString = function () {
|
|
2779
|
-
return 'IngredientsTemplateElement(ingredientsList=' + toString(this.
|
|
2785
|
+
return 'IngredientsTemplateElement(ingredientsList=' + toString(this.f1e_1) + ', recipeSection=' + this.g1e_1 + ')';
|
|
2780
2786
|
};
|
|
2781
2787
|
protoOf(IngredientsTemplateElement).hashCode = function () {
|
|
2782
|
-
var result = this.
|
|
2783
|
-
result = imul(result, 31) + (this.
|
|
2788
|
+
var result = this.f1e_1 == null ? 0 : hashCode(this.f1e_1);
|
|
2789
|
+
result = imul(result, 31) + (this.g1e_1 == null ? 0 : getStringHashCode(this.g1e_1)) | 0;
|
|
2784
2790
|
return result;
|
|
2785
2791
|
};
|
|
2786
2792
|
protoOf(IngredientsTemplateElement).equals = function (other) {
|
|
@@ -2788,9 +2794,9 @@
|
|
|
2788
2794
|
return true;
|
|
2789
2795
|
if (!(other instanceof IngredientsTemplateElement))
|
|
2790
2796
|
return false;
|
|
2791
|
-
if (!equals(this.
|
|
2797
|
+
if (!equals(this.f1e_1, other.f1e_1))
|
|
2792
2798
|
return false;
|
|
2793
|
-
if (!(this.
|
|
2799
|
+
if (!(this.g1e_1 == other.g1e_1))
|
|
2794
2800
|
return false;
|
|
2795
2801
|
return true;
|
|
2796
2802
|
};
|
|
@@ -2803,54 +2809,54 @@
|
|
|
2803
2809
|
function $serializer_9() {
|
|
2804
2810
|
$serializer_instance_9 = this;
|
|
2805
2811
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsTemplateIngredientsList', this, 9);
|
|
2806
|
-
tmp0_serialDesc.
|
|
2807
|
-
tmp0_serialDesc.
|
|
2808
|
-
tmp0_serialDesc.
|
|
2809
|
-
tmp0_serialDesc.
|
|
2810
|
-
tmp0_serialDesc.
|
|
2811
|
-
tmp0_serialDesc.
|
|
2812
|
-
tmp0_serialDesc.
|
|
2813
|
-
tmp0_serialDesc.
|
|
2814
|
-
tmp0_serialDesc.
|
|
2815
|
-
this.
|
|
2812
|
+
tmp0_serialDesc.ws('amount', true);
|
|
2813
|
+
tmp0_serialDesc.ws('ingredientId', true);
|
|
2814
|
+
tmp0_serialDesc.ws('name', true);
|
|
2815
|
+
tmp0_serialDesc.ws('optional', true);
|
|
2816
|
+
tmp0_serialDesc.ws('prefix', true);
|
|
2817
|
+
tmp0_serialDesc.ws('suffix', true);
|
|
2818
|
+
tmp0_serialDesc.ws('text', true);
|
|
2819
|
+
tmp0_serialDesc.ws('unit', true);
|
|
2820
|
+
tmp0_serialDesc.ws('template', true);
|
|
2821
|
+
this.r1h_1 = tmp0_serialDesc;
|
|
2816
2822
|
}
|
|
2817
|
-
protoOf($serializer_9).
|
|
2818
|
-
var tmp0_desc = this.
|
|
2819
|
-
var tmp1_output = encoder.
|
|
2820
|
-
if (tmp1_output.
|
|
2821
|
-
tmp1_output.
|
|
2823
|
+
protoOf($serializer_9).s1h = function (encoder, value) {
|
|
2824
|
+
var tmp0_desc = this.r1h_1;
|
|
2825
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
2826
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.h1e_1 == null)) {
|
|
2827
|
+
tmp1_output.fn(tmp0_desc, 0, $serializer_getInstance(), value.h1e_1);
|
|
2822
2828
|
}
|
|
2823
|
-
if (tmp1_output.
|
|
2824
|
-
tmp1_output.
|
|
2829
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.i1e_1 == null)) {
|
|
2830
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.i1e_1);
|
|
2825
2831
|
}
|
|
2826
|
-
if (tmp1_output.
|
|
2827
|
-
tmp1_output.
|
|
2832
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.j1e_1 == null)) {
|
|
2833
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.j1e_1);
|
|
2828
2834
|
}
|
|
2829
|
-
if (tmp1_output.
|
|
2830
|
-
tmp1_output.
|
|
2835
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.k1e_1 == null)) {
|
|
2836
|
+
tmp1_output.fn(tmp0_desc, 3, BooleanSerializer_getInstance(), value.k1e_1);
|
|
2831
2837
|
}
|
|
2832
|
-
if (tmp1_output.
|
|
2833
|
-
tmp1_output.
|
|
2838
|
+
if (tmp1_output.jn(tmp0_desc, 4) ? true : !(value.l1e_1 == null)) {
|
|
2839
|
+
tmp1_output.fn(tmp0_desc, 4, StringSerializer_getInstance(), value.l1e_1);
|
|
2834
2840
|
}
|
|
2835
|
-
if (tmp1_output.
|
|
2836
|
-
tmp1_output.
|
|
2841
|
+
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.m1e_1 == null)) {
|
|
2842
|
+
tmp1_output.fn(tmp0_desc, 5, StringSerializer_getInstance(), value.m1e_1);
|
|
2837
2843
|
}
|
|
2838
|
-
if (tmp1_output.
|
|
2839
|
-
tmp1_output.
|
|
2844
|
+
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.n1e_1 == null)) {
|
|
2845
|
+
tmp1_output.fn(tmp0_desc, 6, StringSerializer_getInstance(), value.n1e_1);
|
|
2840
2846
|
}
|
|
2841
|
-
if (tmp1_output.
|
|
2842
|
-
tmp1_output.
|
|
2847
|
+
if (tmp1_output.jn(tmp0_desc, 7) ? true : !(value.o1e_1 == null)) {
|
|
2848
|
+
tmp1_output.fn(tmp0_desc, 7, StringSerializer_getInstance(), value.o1e_1);
|
|
2843
2849
|
}
|
|
2844
|
-
if (tmp1_output.
|
|
2845
|
-
tmp1_output.
|
|
2850
|
+
if (tmp1_output.jn(tmp0_desc, 8) ? true : !(value.p1e_1 == null)) {
|
|
2851
|
+
tmp1_output.fn(tmp0_desc, 8, StringSerializer_getInstance(), value.p1e_1);
|
|
2846
2852
|
}
|
|
2847
|
-
tmp1_output.
|
|
2853
|
+
tmp1_output.ol(tmp0_desc);
|
|
2848
2854
|
};
|
|
2849
|
-
protoOf($serializer_9).
|
|
2850
|
-
return this.
|
|
2855
|
+
protoOf($serializer_9).ri = function (encoder, value) {
|
|
2856
|
+
return this.s1h(encoder, value instanceof IngredientsTemplateIngredientsList ? value : THROW_CCE());
|
|
2851
2857
|
};
|
|
2852
|
-
protoOf($serializer_9).
|
|
2853
|
-
var tmp0_desc = this.
|
|
2858
|
+
protoOf($serializer_9).si = function (decoder) {
|
|
2859
|
+
var tmp0_desc = this.r1h_1;
|
|
2854
2860
|
var tmp1_flag = true;
|
|
2855
2861
|
var tmp2_index = 0;
|
|
2856
2862
|
var tmp3_bitMask0 = 0;
|
|
@@ -2863,80 +2869,80 @@
|
|
|
2863
2869
|
var tmp10_local6 = null;
|
|
2864
2870
|
var tmp11_local7 = null;
|
|
2865
2871
|
var tmp12_local8 = null;
|
|
2866
|
-
var tmp13_input = decoder.
|
|
2867
|
-
if (tmp13_input.
|
|
2868
|
-
tmp4_local0 = tmp13_input.
|
|
2872
|
+
var tmp13_input = decoder.nl(tmp0_desc);
|
|
2873
|
+
if (tmp13_input.dm()) {
|
|
2874
|
+
tmp4_local0 = tmp13_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
2869
2875
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2870
|
-
tmp5_local1 = tmp13_input.
|
|
2876
|
+
tmp5_local1 = tmp13_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2871
2877
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2872
|
-
tmp6_local2 = tmp13_input.
|
|
2878
|
+
tmp6_local2 = tmp13_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2873
2879
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2874
|
-
tmp7_local3 = tmp13_input.
|
|
2880
|
+
tmp7_local3 = tmp13_input.bm(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
2875
2881
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2876
|
-
tmp8_local4 = tmp13_input.
|
|
2882
|
+
tmp8_local4 = tmp13_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2877
2883
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2878
|
-
tmp9_local5 = tmp13_input.
|
|
2884
|
+
tmp9_local5 = tmp13_input.bm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
2879
2885
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2880
|
-
tmp10_local6 = tmp13_input.
|
|
2886
|
+
tmp10_local6 = tmp13_input.bm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
2881
2887
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
2882
|
-
tmp11_local7 = tmp13_input.
|
|
2888
|
+
tmp11_local7 = tmp13_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2883
2889
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2884
|
-
tmp12_local8 = tmp13_input.
|
|
2890
|
+
tmp12_local8 = tmp13_input.bm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
2885
2891
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2886
2892
|
} else
|
|
2887
2893
|
while (tmp1_flag) {
|
|
2888
|
-
tmp2_index = tmp13_input.
|
|
2894
|
+
tmp2_index = tmp13_input.em(tmp0_desc);
|
|
2889
2895
|
switch (tmp2_index) {
|
|
2890
2896
|
case -1:
|
|
2891
2897
|
tmp1_flag = false;
|
|
2892
2898
|
break;
|
|
2893
2899
|
case 0:
|
|
2894
|
-
tmp4_local0 = tmp13_input.
|
|
2900
|
+
tmp4_local0 = tmp13_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
2895
2901
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2896
2902
|
break;
|
|
2897
2903
|
case 1:
|
|
2898
|
-
tmp5_local1 = tmp13_input.
|
|
2904
|
+
tmp5_local1 = tmp13_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2899
2905
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2900
2906
|
break;
|
|
2901
2907
|
case 2:
|
|
2902
|
-
tmp6_local2 = tmp13_input.
|
|
2908
|
+
tmp6_local2 = tmp13_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2903
2909
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2904
2910
|
break;
|
|
2905
2911
|
case 3:
|
|
2906
|
-
tmp7_local3 = tmp13_input.
|
|
2912
|
+
tmp7_local3 = tmp13_input.bm(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
2907
2913
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2908
2914
|
break;
|
|
2909
2915
|
case 4:
|
|
2910
|
-
tmp8_local4 = tmp13_input.
|
|
2916
|
+
tmp8_local4 = tmp13_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2911
2917
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2912
2918
|
break;
|
|
2913
2919
|
case 5:
|
|
2914
|
-
tmp9_local5 = tmp13_input.
|
|
2920
|
+
tmp9_local5 = tmp13_input.bm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
2915
2921
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2916
2922
|
break;
|
|
2917
2923
|
case 6:
|
|
2918
|
-
tmp10_local6 = tmp13_input.
|
|
2924
|
+
tmp10_local6 = tmp13_input.bm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
2919
2925
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
2920
2926
|
break;
|
|
2921
2927
|
case 7:
|
|
2922
|
-
tmp11_local7 = tmp13_input.
|
|
2928
|
+
tmp11_local7 = tmp13_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2923
2929
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2924
2930
|
break;
|
|
2925
2931
|
case 8:
|
|
2926
|
-
tmp12_local8 = tmp13_input.
|
|
2932
|
+
tmp12_local8 = tmp13_input.bm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
2927
2933
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2928
2934
|
break;
|
|
2929
2935
|
default:
|
|
2930
2936
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2931
2937
|
}
|
|
2932
2938
|
}
|
|
2933
|
-
tmp13_input.
|
|
2939
|
+
tmp13_input.ol(tmp0_desc);
|
|
2934
2940
|
return IngredientsTemplateIngredientsList_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null);
|
|
2935
2941
|
};
|
|
2936
|
-
protoOf($serializer_9).
|
|
2937
|
-
return this.
|
|
2942
|
+
protoOf($serializer_9).qi = function () {
|
|
2943
|
+
return this.r1h_1;
|
|
2938
2944
|
};
|
|
2939
|
-
protoOf($serializer_9).
|
|
2945
|
+
protoOf($serializer_9).ys = function () {
|
|
2940
2946
|
// Inline function 'kotlin.arrayOf' call
|
|
2941
2947
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2942
2948
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2950,44 +2956,44 @@
|
|
|
2950
2956
|
}
|
|
2951
2957
|
function IngredientsTemplateIngredientsList_init_$Init$(seen0, amount, ingredientID, name, optional, prefix, suffix, text, unit, template, serializationConstructorMarker, $this) {
|
|
2952
2958
|
if (!(0 === (0 & seen0))) {
|
|
2953
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().
|
|
2959
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().r1h_1);
|
|
2954
2960
|
}
|
|
2955
2961
|
if (0 === (seen0 & 1))
|
|
2956
|
-
$this.
|
|
2962
|
+
$this.h1e_1 = null;
|
|
2957
2963
|
else
|
|
2958
|
-
$this.
|
|
2964
|
+
$this.h1e_1 = amount;
|
|
2959
2965
|
if (0 === (seen0 & 2))
|
|
2960
|
-
$this.
|
|
2966
|
+
$this.i1e_1 = null;
|
|
2961
2967
|
else
|
|
2962
|
-
$this.
|
|
2968
|
+
$this.i1e_1 = ingredientID;
|
|
2963
2969
|
if (0 === (seen0 & 4))
|
|
2964
|
-
$this.
|
|
2970
|
+
$this.j1e_1 = null;
|
|
2965
2971
|
else
|
|
2966
|
-
$this.
|
|
2972
|
+
$this.j1e_1 = name;
|
|
2967
2973
|
if (0 === (seen0 & 8))
|
|
2968
|
-
$this.
|
|
2974
|
+
$this.k1e_1 = null;
|
|
2969
2975
|
else
|
|
2970
|
-
$this.
|
|
2976
|
+
$this.k1e_1 = optional;
|
|
2971
2977
|
if (0 === (seen0 & 16))
|
|
2972
|
-
$this.
|
|
2978
|
+
$this.l1e_1 = null;
|
|
2973
2979
|
else
|
|
2974
|
-
$this.
|
|
2980
|
+
$this.l1e_1 = prefix;
|
|
2975
2981
|
if (0 === (seen0 & 32))
|
|
2976
|
-
$this.
|
|
2982
|
+
$this.m1e_1 = null;
|
|
2977
2983
|
else
|
|
2978
|
-
$this.
|
|
2984
|
+
$this.m1e_1 = suffix;
|
|
2979
2985
|
if (0 === (seen0 & 64))
|
|
2980
|
-
$this.
|
|
2986
|
+
$this.n1e_1 = null;
|
|
2981
2987
|
else
|
|
2982
|
-
$this.
|
|
2988
|
+
$this.n1e_1 = text;
|
|
2983
2989
|
if (0 === (seen0 & 128))
|
|
2984
|
-
$this.
|
|
2990
|
+
$this.o1e_1 = null;
|
|
2985
2991
|
else
|
|
2986
|
-
$this.
|
|
2992
|
+
$this.o1e_1 = unit;
|
|
2987
2993
|
if (0 === (seen0 & 256))
|
|
2988
|
-
$this.
|
|
2994
|
+
$this.p1e_1 = null;
|
|
2989
2995
|
else
|
|
2990
|
-
$this.
|
|
2996
|
+
$this.p1e_1 = template;
|
|
2991
2997
|
return $this;
|
|
2992
2998
|
}
|
|
2993
2999
|
function IngredientsTemplateIngredientsList_init_$Create$(seen0, amount, ingredientID, name, optional, prefix, suffix, text, unit, template, serializationConstructorMarker) {
|
|
@@ -3003,29 +3009,29 @@
|
|
|
3003
3009
|
text = text === VOID ? null : text;
|
|
3004
3010
|
unit = unit === VOID ? null : unit;
|
|
3005
3011
|
template = template === VOID ? null : template;
|
|
3006
|
-
this.
|
|
3007
|
-
this.
|
|
3008
|
-
this.
|
|
3009
|
-
this.
|
|
3010
|
-
this.
|
|
3011
|
-
this.
|
|
3012
|
-
this.
|
|
3013
|
-
this.
|
|
3014
|
-
this.
|
|
3012
|
+
this.h1e_1 = amount;
|
|
3013
|
+
this.i1e_1 = ingredientID;
|
|
3014
|
+
this.j1e_1 = name;
|
|
3015
|
+
this.k1e_1 = optional;
|
|
3016
|
+
this.l1e_1 = prefix;
|
|
3017
|
+
this.m1e_1 = suffix;
|
|
3018
|
+
this.n1e_1 = text;
|
|
3019
|
+
this.o1e_1 = unit;
|
|
3020
|
+
this.p1e_1 = template;
|
|
3015
3021
|
}
|
|
3016
3022
|
protoOf(IngredientsTemplateIngredientsList).toString = function () {
|
|
3017
|
-
return 'IngredientsTemplateIngredientsList(amount=' + toString(this.
|
|
3023
|
+
return 'IngredientsTemplateIngredientsList(amount=' + toString(this.h1e_1) + ', ingredientID=' + this.i1e_1 + ', name=' + this.j1e_1 + ', optional=' + this.k1e_1 + ', prefix=' + this.l1e_1 + ', suffix=' + this.m1e_1 + ', text=' + this.n1e_1 + ', unit=' + this.o1e_1 + ', template=' + this.p1e_1 + ')';
|
|
3018
3024
|
};
|
|
3019
3025
|
protoOf(IngredientsTemplateIngredientsList).hashCode = function () {
|
|
3020
|
-
var result = this.
|
|
3021
|
-
result = imul(result, 31) + (this.
|
|
3022
|
-
result = imul(result, 31) + (this.
|
|
3023
|
-
result = imul(result, 31) + (this.
|
|
3024
|
-
result = imul(result, 31) + (this.
|
|
3025
|
-
result = imul(result, 31) + (this.
|
|
3026
|
-
result = imul(result, 31) + (this.
|
|
3027
|
-
result = imul(result, 31) + (this.
|
|
3028
|
-
result = imul(result, 31) + (this.
|
|
3026
|
+
var result = this.h1e_1 == null ? 0 : this.h1e_1.hashCode();
|
|
3027
|
+
result = imul(result, 31) + (this.i1e_1 == null ? 0 : getStringHashCode(this.i1e_1)) | 0;
|
|
3028
|
+
result = imul(result, 31) + (this.j1e_1 == null ? 0 : getStringHashCode(this.j1e_1)) | 0;
|
|
3029
|
+
result = imul(result, 31) + (this.k1e_1 == null ? 0 : getBooleanHashCode(this.k1e_1)) | 0;
|
|
3030
|
+
result = imul(result, 31) + (this.l1e_1 == null ? 0 : getStringHashCode(this.l1e_1)) | 0;
|
|
3031
|
+
result = imul(result, 31) + (this.m1e_1 == null ? 0 : getStringHashCode(this.m1e_1)) | 0;
|
|
3032
|
+
result = imul(result, 31) + (this.n1e_1 == null ? 0 : getStringHashCode(this.n1e_1)) | 0;
|
|
3033
|
+
result = imul(result, 31) + (this.o1e_1 == null ? 0 : getStringHashCode(this.o1e_1)) | 0;
|
|
3034
|
+
result = imul(result, 31) + (this.p1e_1 == null ? 0 : getStringHashCode(this.p1e_1)) | 0;
|
|
3029
3035
|
return result;
|
|
3030
3036
|
};
|
|
3031
3037
|
protoOf(IngredientsTemplateIngredientsList).equals = function (other) {
|
|
@@ -3033,23 +3039,23 @@
|
|
|
3033
3039
|
return true;
|
|
3034
3040
|
if (!(other instanceof IngredientsTemplateIngredientsList))
|
|
3035
3041
|
return false;
|
|
3036
|
-
if (!equals(this.
|
|
3042
|
+
if (!equals(this.h1e_1, other.h1e_1))
|
|
3037
3043
|
return false;
|
|
3038
|
-
if (!(this.
|
|
3044
|
+
if (!(this.i1e_1 == other.i1e_1))
|
|
3039
3045
|
return false;
|
|
3040
|
-
if (!(this.
|
|
3046
|
+
if (!(this.j1e_1 == other.j1e_1))
|
|
3041
3047
|
return false;
|
|
3042
|
-
if (!(this.
|
|
3048
|
+
if (!(this.k1e_1 == other.k1e_1))
|
|
3043
3049
|
return false;
|
|
3044
|
-
if (!(this.
|
|
3050
|
+
if (!(this.l1e_1 == other.l1e_1))
|
|
3045
3051
|
return false;
|
|
3046
|
-
if (!(this.
|
|
3052
|
+
if (!(this.m1e_1 == other.m1e_1))
|
|
3047
3053
|
return false;
|
|
3048
|
-
if (!(this.
|
|
3054
|
+
if (!(this.n1e_1 == other.n1e_1))
|
|
3049
3055
|
return false;
|
|
3050
|
-
if (!(this.
|
|
3056
|
+
if (!(this.o1e_1 == other.o1e_1))
|
|
3051
3057
|
return false;
|
|
3052
|
-
if (!(this.
|
|
3058
|
+
if (!(this.p1e_1 == other.p1e_1))
|
|
3053
3059
|
return false;
|
|
3054
3060
|
return true;
|
|
3055
3061
|
};
|
|
@@ -3063,7 +3069,7 @@
|
|
|
3063
3069
|
// Inline function 'kotlin.arrayOf' call
|
|
3064
3070
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3065
3071
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3066
|
-
tmp.
|
|
3072
|
+
tmp.t1h_1 = [null, lazy(tmp_0, InstructionsTemplateElement$Companion$$childSerializers$_anonymous__ebx60d), null];
|
|
3067
3073
|
}
|
|
3068
3074
|
var Companion_instance_8;
|
|
3069
3075
|
function Companion_getInstance_8() {
|
|
@@ -3074,79 +3080,79 @@
|
|
|
3074
3080
|
function $serializer_10() {
|
|
3075
3081
|
$serializer_instance_10 = this;
|
|
3076
3082
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.InstructionsTemplateElement', this, 3);
|
|
3077
|
-
tmp0_serialDesc.
|
|
3078
|
-
tmp0_serialDesc.
|
|
3079
|
-
tmp0_serialDesc.
|
|
3080
|
-
this.
|
|
3083
|
+
tmp0_serialDesc.ws('descriptionTemplate', false);
|
|
3084
|
+
tmp0_serialDesc.ws('images', true);
|
|
3085
|
+
tmp0_serialDesc.ws('stepNumber', true);
|
|
3086
|
+
this.u1h_1 = tmp0_serialDesc;
|
|
3081
3087
|
}
|
|
3082
|
-
protoOf($serializer_10).
|
|
3083
|
-
var tmp0_desc = this.
|
|
3084
|
-
var tmp1_output = encoder.
|
|
3085
|
-
var tmp2_cached = Companion_getInstance_8().
|
|
3086
|
-
tmp1_output.
|
|
3087
|
-
if (tmp1_output.
|
|
3088
|
-
tmp1_output.
|
|
3088
|
+
protoOf($serializer_10).v1h = function (encoder, value) {
|
|
3089
|
+
var tmp0_desc = this.u1h_1;
|
|
3090
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
3091
|
+
var tmp2_cached = Companion_getInstance_8().t1h_1;
|
|
3092
|
+
tmp1_output.bn(tmp0_desc, 0, value.q1e_1);
|
|
3093
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.r1e_1 == null)) {
|
|
3094
|
+
tmp1_output.fn(tmp0_desc, 1, tmp2_cached[1].t1(), value.r1e_1);
|
|
3089
3095
|
}
|
|
3090
|
-
if (tmp1_output.
|
|
3091
|
-
tmp1_output.
|
|
3096
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.s1e_1 == null)) {
|
|
3097
|
+
tmp1_output.fn(tmp0_desc, 2, DoubleSerializer_getInstance(), value.s1e_1);
|
|
3092
3098
|
}
|
|
3093
|
-
tmp1_output.
|
|
3099
|
+
tmp1_output.ol(tmp0_desc);
|
|
3094
3100
|
};
|
|
3095
|
-
protoOf($serializer_10).
|
|
3096
|
-
return this.
|
|
3101
|
+
protoOf($serializer_10).ri = function (encoder, value) {
|
|
3102
|
+
return this.v1h(encoder, value instanceof InstructionsTemplateElement ? value : THROW_CCE());
|
|
3097
3103
|
};
|
|
3098
|
-
protoOf($serializer_10).
|
|
3099
|
-
var tmp0_desc = this.
|
|
3104
|
+
protoOf($serializer_10).si = function (decoder) {
|
|
3105
|
+
var tmp0_desc = this.u1h_1;
|
|
3100
3106
|
var tmp1_flag = true;
|
|
3101
3107
|
var tmp2_index = 0;
|
|
3102
3108
|
var tmp3_bitMask0 = 0;
|
|
3103
3109
|
var tmp4_local0 = null;
|
|
3104
3110
|
var tmp5_local1 = null;
|
|
3105
3111
|
var tmp6_local2 = null;
|
|
3106
|
-
var tmp7_input = decoder.
|
|
3107
|
-
var tmp8_cached = Companion_getInstance_8().
|
|
3108
|
-
if (tmp7_input.
|
|
3109
|
-
tmp4_local0 = tmp7_input.
|
|
3112
|
+
var tmp7_input = decoder.nl(tmp0_desc);
|
|
3113
|
+
var tmp8_cached = Companion_getInstance_8().t1h_1;
|
|
3114
|
+
if (tmp7_input.dm()) {
|
|
3115
|
+
tmp4_local0 = tmp7_input.xl(tmp0_desc, 0);
|
|
3110
3116
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3111
|
-
tmp5_local1 = tmp7_input.
|
|
3117
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, tmp8_cached[1].t1(), tmp5_local1);
|
|
3112
3118
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3113
|
-
tmp6_local2 = tmp7_input.
|
|
3119
|
+
tmp6_local2 = tmp7_input.bm(tmp0_desc, 2, DoubleSerializer_getInstance(), tmp6_local2);
|
|
3114
3120
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3115
3121
|
} else
|
|
3116
3122
|
while (tmp1_flag) {
|
|
3117
|
-
tmp2_index = tmp7_input.
|
|
3123
|
+
tmp2_index = tmp7_input.em(tmp0_desc);
|
|
3118
3124
|
switch (tmp2_index) {
|
|
3119
3125
|
case -1:
|
|
3120
3126
|
tmp1_flag = false;
|
|
3121
3127
|
break;
|
|
3122
3128
|
case 0:
|
|
3123
|
-
tmp4_local0 = tmp7_input.
|
|
3129
|
+
tmp4_local0 = tmp7_input.xl(tmp0_desc, 0);
|
|
3124
3130
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3125
3131
|
break;
|
|
3126
3132
|
case 1:
|
|
3127
|
-
tmp5_local1 = tmp7_input.
|
|
3133
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, tmp8_cached[1].t1(), tmp5_local1);
|
|
3128
3134
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3129
3135
|
break;
|
|
3130
3136
|
case 2:
|
|
3131
|
-
tmp6_local2 = tmp7_input.
|
|
3137
|
+
tmp6_local2 = tmp7_input.bm(tmp0_desc, 2, DoubleSerializer_getInstance(), tmp6_local2);
|
|
3132
3138
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3133
3139
|
break;
|
|
3134
3140
|
default:
|
|
3135
3141
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
3136
3142
|
}
|
|
3137
3143
|
}
|
|
3138
|
-
tmp7_input.
|
|
3144
|
+
tmp7_input.ol(tmp0_desc);
|
|
3139
3145
|
return InstructionsTemplateElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
3140
3146
|
};
|
|
3141
|
-
protoOf($serializer_10).
|
|
3142
|
-
return this.
|
|
3147
|
+
protoOf($serializer_10).qi = function () {
|
|
3148
|
+
return this.u1h_1;
|
|
3143
3149
|
};
|
|
3144
|
-
protoOf($serializer_10).
|
|
3145
|
-
var tmp0_cached = Companion_getInstance_8().
|
|
3150
|
+
protoOf($serializer_10).ys = function () {
|
|
3151
|
+
var tmp0_cached = Companion_getInstance_8().t1h_1;
|
|
3146
3152
|
// Inline function 'kotlin.arrayOf' call
|
|
3147
3153
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3148
3154
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3149
|
-
return [StringSerializer_getInstance(), get_nullable(tmp0_cached[1].
|
|
3155
|
+
return [StringSerializer_getInstance(), get_nullable(tmp0_cached[1].t1()), get_nullable(DoubleSerializer_getInstance())];
|
|
3150
3156
|
};
|
|
3151
3157
|
var $serializer_instance_10;
|
|
3152
3158
|
function $serializer_getInstance_10() {
|
|
@@ -3156,17 +3162,17 @@
|
|
|
3156
3162
|
}
|
|
3157
3163
|
function InstructionsTemplateElement_init_$Init$(seen0, descriptionTemplate, images, stepNumber, serializationConstructorMarker, $this) {
|
|
3158
3164
|
if (!(1 === (1 & seen0))) {
|
|
3159
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().
|
|
3165
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().u1h_1);
|
|
3160
3166
|
}
|
|
3161
|
-
$this.
|
|
3167
|
+
$this.q1e_1 = descriptionTemplate;
|
|
3162
3168
|
if (0 === (seen0 & 2))
|
|
3163
|
-
$this.
|
|
3169
|
+
$this.r1e_1 = null;
|
|
3164
3170
|
else
|
|
3165
|
-
$this.
|
|
3171
|
+
$this.r1e_1 = images;
|
|
3166
3172
|
if (0 === (seen0 & 4))
|
|
3167
|
-
$this.
|
|
3173
|
+
$this.s1e_1 = null;
|
|
3168
3174
|
else
|
|
3169
|
-
$this.
|
|
3175
|
+
$this.s1e_1 = stepNumber;
|
|
3170
3176
|
return $this;
|
|
3171
3177
|
}
|
|
3172
3178
|
function InstructionsTemplateElement_init_$Create$(seen0, descriptionTemplate, images, stepNumber, serializationConstructorMarker) {
|
|
@@ -3175,12 +3181,12 @@
|
|
|
3175
3181
|
function InstructionsTemplateElement() {
|
|
3176
3182
|
}
|
|
3177
3183
|
protoOf(InstructionsTemplateElement).toString = function () {
|
|
3178
|
-
return 'InstructionsTemplateElement(descriptionTemplate=' + this.
|
|
3184
|
+
return 'InstructionsTemplateElement(descriptionTemplate=' + this.q1e_1 + ', images=' + toString(this.r1e_1) + ', stepNumber=' + this.s1e_1 + ')';
|
|
3179
3185
|
};
|
|
3180
3186
|
protoOf(InstructionsTemplateElement).hashCode = function () {
|
|
3181
|
-
var result = getStringHashCode(this.
|
|
3182
|
-
result = imul(result, 31) + (this.
|
|
3183
|
-
result = imul(result, 31) + (this.
|
|
3187
|
+
var result = getStringHashCode(this.q1e_1);
|
|
3188
|
+
result = imul(result, 31) + (this.r1e_1 == null ? 0 : hashCode(this.r1e_1)) | 0;
|
|
3189
|
+
result = imul(result, 31) + (this.s1e_1 == null ? 0 : getNumberHashCode(this.s1e_1)) | 0;
|
|
3184
3190
|
return result;
|
|
3185
3191
|
};
|
|
3186
3192
|
protoOf(InstructionsTemplateElement).equals = function (other) {
|
|
@@ -3188,11 +3194,11 @@
|
|
|
3188
3194
|
return true;
|
|
3189
3195
|
if (!(other instanceof InstructionsTemplateElement))
|
|
3190
3196
|
return false;
|
|
3191
|
-
if (!(this.
|
|
3197
|
+
if (!(this.q1e_1 === other.q1e_1))
|
|
3192
3198
|
return false;
|
|
3193
|
-
if (!equals(this.
|
|
3199
|
+
if (!equals(this.r1e_1, other.r1e_1))
|
|
3194
3200
|
return false;
|
|
3195
|
-
if (!equals(this.
|
|
3201
|
+
if (!equals(this.s1e_1, other.s1e_1))
|
|
3196
3202
|
return false;
|
|
3197
3203
|
return true;
|
|
3198
3204
|
};
|
|
@@ -3208,51 +3214,51 @@
|
|
|
3208
3214
|
var parts = ArrayList_init_$Create$_0();
|
|
3209
3215
|
var lastEnd = 0;
|
|
3210
3216
|
// Inline function 'kotlin.sequences.forEach' call
|
|
3211
|
-
var _iterator__ex2g4s = pattern.
|
|
3217
|
+
var _iterator__ex2g4s = pattern.va(template).h();
|
|
3212
3218
|
while (_iterator__ex2g4s.i()) {
|
|
3213
3219
|
var element = _iterator__ex2g4s.j();
|
|
3214
|
-
if (element.
|
|
3215
|
-
var textPart = substring(template, lastEnd, element.
|
|
3220
|
+
if (element.jb().p_1 > lastEnd) {
|
|
3221
|
+
var textPart = substring(template, lastEnd, element.jb().p_1);
|
|
3216
3222
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
3217
3223
|
if (charSequenceLength(textPart) > 0) {
|
|
3218
3224
|
parts.f(new TemplateConst(textPart));
|
|
3219
3225
|
}
|
|
3220
3226
|
}
|
|
3221
3227
|
try {
|
|
3222
|
-
var jsonObj = get_jsonObject(Default_getInstance().
|
|
3223
|
-
if (jsonObj.
|
|
3228
|
+
var jsonObj = get_jsonObject(Default_getInstance().b12(element.t1()));
|
|
3229
|
+
if (jsonObj.x1().l1('min')) {
|
|
3224
3230
|
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
3225
3231
|
var this_0 = get_tolerantJson();
|
|
3226
3232
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3227
|
-
var this_1 = this_0.
|
|
3233
|
+
var this_1 = this_0.cm();
|
|
3228
3234
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3229
3235
|
var this_2 = serializer(this_1, createKType(getKClass(QuantityPlaceholder), arrayOf([]), false));
|
|
3230
3236
|
var tmp$ret$3 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
3231
3237
|
// Inline function 'kotlin.let' call
|
|
3232
|
-
var it = this_0.
|
|
3238
|
+
var it = this_0.a12(tmp$ret$3, jsonObj);
|
|
3233
3239
|
parts.f(it);
|
|
3234
3240
|
} else {
|
|
3235
3241
|
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
3236
3242
|
var this_3 = get_tolerantJson();
|
|
3237
3243
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3238
|
-
var this_4 = this_3.
|
|
3244
|
+
var this_4 = this_3.cm();
|
|
3239
3245
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3240
3246
|
var this_5 = serializer(this_4, createKType(getKClass(OvenTemperaturePlaceholder), arrayOf([]), false));
|
|
3241
3247
|
var tmp$ret$8 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
3242
3248
|
// Inline function 'kotlin.let' call
|
|
3243
|
-
var it_0 = this_3.
|
|
3249
|
+
var it_0 = this_3.a12(tmp$ret$8, jsonObj);
|
|
3244
3250
|
parts.f(it_0);
|
|
3245
3251
|
}
|
|
3246
3252
|
} catch ($p) {
|
|
3247
3253
|
if ($p instanceof Exception) {
|
|
3248
3254
|
var e = $p;
|
|
3249
|
-
print('Failed to parse JSON: ' + element.
|
|
3250
|
-
parts.f(new TemplateConst(element.
|
|
3255
|
+
print('Failed to parse JSON: ' + element.t1() + ', error: ' + e.message);
|
|
3256
|
+
parts.f(new TemplateConst(element.t1()));
|
|
3251
3257
|
} else {
|
|
3252
3258
|
throw $p;
|
|
3253
3259
|
}
|
|
3254
3260
|
}
|
|
3255
|
-
lastEnd = element.
|
|
3261
|
+
lastEnd = element.jb().q_1 + 1 | 0;
|
|
3256
3262
|
}
|
|
3257
3263
|
if (lastEnd < template.length) {
|
|
3258
3264
|
var remaining = substring_0(template, lastEnd);
|
|
@@ -3265,7 +3271,7 @@
|
|
|
3265
3271
|
}
|
|
3266
3272
|
function tolerantJson$lambda($this$Json) {
|
|
3267
3273
|
_init_properties_Parser_kt__o3jwn5();
|
|
3268
|
-
$this$Json.
|
|
3274
|
+
$this$Json.t12_1 = true;
|
|
3269
3275
|
return Unit_instance;
|
|
3270
3276
|
}
|
|
3271
3277
|
var properties_initialized_Parser_kt_5uifb3;
|
|
@@ -3275,41 +3281,77 @@
|
|
|
3275
3281
|
tolerantJson = Json(VOID, tolerantJson$lambda);
|
|
3276
3282
|
}
|
|
3277
3283
|
}
|
|
3284
|
+
function TemplateElement() {
|
|
3285
|
+
}
|
|
3286
|
+
function TemplateConst(value) {
|
|
3287
|
+
this.value = value;
|
|
3288
|
+
}
|
|
3289
|
+
protoOf(TemplateConst).t1 = function () {
|
|
3290
|
+
return this.value;
|
|
3291
|
+
};
|
|
3292
|
+
protoOf(TemplateConst).cd = function () {
|
|
3293
|
+
return this.value;
|
|
3294
|
+
};
|
|
3295
|
+
protoOf(TemplateConst).w1h = function (value) {
|
|
3296
|
+
return new TemplateConst(value);
|
|
3297
|
+
};
|
|
3298
|
+
protoOf(TemplateConst).copy = function (value, $super) {
|
|
3299
|
+
value = value === VOID ? this.value : value;
|
|
3300
|
+
return $super === VOID ? this.w1h(value) : $super.w1h.call(this, value);
|
|
3301
|
+
};
|
|
3302
|
+
protoOf(TemplateConst).toString = function () {
|
|
3303
|
+
return 'TemplateConst(value=' + this.value + ')';
|
|
3304
|
+
};
|
|
3305
|
+
protoOf(TemplateConst).hashCode = function () {
|
|
3306
|
+
return getStringHashCode(this.value);
|
|
3307
|
+
};
|
|
3308
|
+
protoOf(TemplateConst).equals = function (other) {
|
|
3309
|
+
if (this === other)
|
|
3310
|
+
return true;
|
|
3311
|
+
if (!(other instanceof TemplateConst))
|
|
3312
|
+
return false;
|
|
3313
|
+
if (!(this.value === other.value))
|
|
3314
|
+
return false;
|
|
3315
|
+
return true;
|
|
3316
|
+
};
|
|
3278
3317
|
function Companion_9() {
|
|
3279
3318
|
}
|
|
3319
|
+
protoOf(Companion_9).n14 = function () {
|
|
3320
|
+
return $serializer_getInstance_11();
|
|
3321
|
+
};
|
|
3280
3322
|
var Companion_instance_9;
|
|
3281
3323
|
function Companion_getInstance_9() {
|
|
3282
3324
|
return Companion_instance_9;
|
|
3283
3325
|
}
|
|
3284
3326
|
function $serializer_11() {
|
|
3285
3327
|
$serializer_instance_11 = this;
|
|
3286
|
-
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.
|
|
3287
|
-
tmp0_serialDesc.
|
|
3288
|
-
tmp0_serialDesc.
|
|
3289
|
-
tmp0_serialDesc.
|
|
3290
|
-
tmp0_serialDesc.
|
|
3291
|
-
this.
|
|
3328
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.QuantityPlaceholder', this, 4);
|
|
3329
|
+
tmp0_serialDesc.ws('min', false);
|
|
3330
|
+
tmp0_serialDesc.ws('max', true);
|
|
3331
|
+
tmp0_serialDesc.ws('unit', true);
|
|
3332
|
+
tmp0_serialDesc.ws('scale', true);
|
|
3333
|
+
this.x1h_1 = tmp0_serialDesc;
|
|
3292
3334
|
}
|
|
3293
|
-
protoOf($serializer_11).
|
|
3294
|
-
var tmp0_desc = this.
|
|
3295
|
-
var tmp1_output = encoder.
|
|
3296
|
-
tmp1_output.
|
|
3297
|
-
if (tmp1_output.
|
|
3298
|
-
tmp1_output.
|
|
3335
|
+
protoOf($serializer_11).y1h = function (encoder, value) {
|
|
3336
|
+
var tmp0_desc = this.x1h_1;
|
|
3337
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
3338
|
+
tmp1_output.ym(tmp0_desc, 0, value.min);
|
|
3339
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.max == null)) {
|
|
3340
|
+
tmp1_output.fn(tmp0_desc, 1, FloatSerializer_getInstance(), value.max);
|
|
3299
3341
|
}
|
|
3300
|
-
if (tmp1_output.
|
|
3301
|
-
tmp1_output.
|
|
3342
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.unit == null)) {
|
|
3343
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.unit);
|
|
3302
3344
|
}
|
|
3303
|
-
if (tmp1_output.
|
|
3304
|
-
tmp1_output.
|
|
3345
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.scale === false)) {
|
|
3346
|
+
tmp1_output.tm(tmp0_desc, 3, value.scale);
|
|
3305
3347
|
}
|
|
3306
|
-
tmp1_output.
|
|
3348
|
+
tmp1_output.ol(tmp0_desc);
|
|
3307
3349
|
};
|
|
3308
|
-
protoOf($serializer_11).
|
|
3309
|
-
return this.
|
|
3350
|
+
protoOf($serializer_11).ri = function (encoder, value) {
|
|
3351
|
+
return this.y1h(encoder, value instanceof QuantityPlaceholder ? value : THROW_CCE());
|
|
3310
3352
|
};
|
|
3311
|
-
protoOf($serializer_11).
|
|
3312
|
-
var tmp0_desc = this.
|
|
3353
|
+
protoOf($serializer_11).si = function (decoder) {
|
|
3354
|
+
var tmp0_desc = this.x1h_1;
|
|
3313
3355
|
var tmp1_flag = true;
|
|
3314
3356
|
var tmp2_index = 0;
|
|
3315
3357
|
var tmp3_bitMask0 = 0;
|
|
@@ -3317,50 +3359,50 @@
|
|
|
3317
3359
|
var tmp5_local1 = null;
|
|
3318
3360
|
var tmp6_local2 = null;
|
|
3319
3361
|
var tmp7_local3 = false;
|
|
3320
|
-
var tmp8_input = decoder.
|
|
3321
|
-
if (tmp8_input.
|
|
3322
|
-
tmp4_local0 = tmp8_input.
|
|
3362
|
+
var tmp8_input = decoder.nl(tmp0_desc);
|
|
3363
|
+
if (tmp8_input.dm()) {
|
|
3364
|
+
tmp4_local0 = tmp8_input.ul(tmp0_desc, 0);
|
|
3323
3365
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3324
|
-
tmp5_local1 = tmp8_input.
|
|
3366
|
+
tmp5_local1 = tmp8_input.bm(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
3325
3367
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3326
|
-
tmp6_local2 = tmp8_input.
|
|
3368
|
+
tmp6_local2 = tmp8_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
3327
3369
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3328
|
-
tmp7_local3 = tmp8_input.
|
|
3370
|
+
tmp7_local3 = tmp8_input.pl(tmp0_desc, 3);
|
|
3329
3371
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3330
3372
|
} else
|
|
3331
3373
|
while (tmp1_flag) {
|
|
3332
|
-
tmp2_index = tmp8_input.
|
|
3374
|
+
tmp2_index = tmp8_input.em(tmp0_desc);
|
|
3333
3375
|
switch (tmp2_index) {
|
|
3334
3376
|
case -1:
|
|
3335
3377
|
tmp1_flag = false;
|
|
3336
3378
|
break;
|
|
3337
3379
|
case 0:
|
|
3338
|
-
tmp4_local0 = tmp8_input.
|
|
3380
|
+
tmp4_local0 = tmp8_input.ul(tmp0_desc, 0);
|
|
3339
3381
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3340
3382
|
break;
|
|
3341
3383
|
case 1:
|
|
3342
|
-
tmp5_local1 = tmp8_input.
|
|
3384
|
+
tmp5_local1 = tmp8_input.bm(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
3343
3385
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3344
3386
|
break;
|
|
3345
3387
|
case 2:
|
|
3346
|
-
tmp6_local2 = tmp8_input.
|
|
3388
|
+
tmp6_local2 = tmp8_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
3347
3389
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3348
3390
|
break;
|
|
3349
3391
|
case 3:
|
|
3350
|
-
tmp7_local3 = tmp8_input.
|
|
3392
|
+
tmp7_local3 = tmp8_input.pl(tmp0_desc, 3);
|
|
3351
3393
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3352
3394
|
break;
|
|
3353
3395
|
default:
|
|
3354
3396
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
3355
3397
|
}
|
|
3356
3398
|
}
|
|
3357
|
-
tmp8_input.
|
|
3399
|
+
tmp8_input.ol(tmp0_desc);
|
|
3358
3400
|
return QuantityPlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
3359
3401
|
};
|
|
3360
|
-
protoOf($serializer_11).
|
|
3361
|
-
return this.
|
|
3402
|
+
protoOf($serializer_11).qi = function () {
|
|
3403
|
+
return this.x1h_1;
|
|
3362
3404
|
};
|
|
3363
|
-
protoOf($serializer_11).
|
|
3405
|
+
protoOf($serializer_11).ys = function () {
|
|
3364
3406
|
// Inline function 'kotlin.arrayOf' call
|
|
3365
3407
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3366
3408
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3374,63 +3416,134 @@
|
|
|
3374
3416
|
}
|
|
3375
3417
|
function QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, serializationConstructorMarker, $this) {
|
|
3376
3418
|
if (!(1 === (1 & seen0))) {
|
|
3377
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_11().
|
|
3419
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_11().x1h_1);
|
|
3378
3420
|
}
|
|
3379
|
-
$this.
|
|
3421
|
+
$this.min = min;
|
|
3380
3422
|
if (0 === (seen0 & 2))
|
|
3381
|
-
$this.
|
|
3423
|
+
$this.max = null;
|
|
3382
3424
|
else
|
|
3383
|
-
$this.
|
|
3425
|
+
$this.max = max;
|
|
3384
3426
|
if (0 === (seen0 & 4))
|
|
3385
|
-
$this.
|
|
3427
|
+
$this.unit = null;
|
|
3386
3428
|
else
|
|
3387
|
-
$this.
|
|
3429
|
+
$this.unit = unit;
|
|
3388
3430
|
if (0 === (seen0 & 8))
|
|
3389
|
-
$this.
|
|
3431
|
+
$this.scale = false;
|
|
3390
3432
|
else
|
|
3391
|
-
$this.
|
|
3433
|
+
$this.scale = scale;
|
|
3392
3434
|
return $this;
|
|
3393
3435
|
}
|
|
3394
3436
|
function QuantityPlaceholder_init_$Create$(seen0, min, max, unit, scale, serializationConstructorMarker) {
|
|
3395
3437
|
return QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, serializationConstructorMarker, objectCreate(protoOf(QuantityPlaceholder)));
|
|
3396
3438
|
}
|
|
3439
|
+
function QuantityPlaceholder(min, max, unit, scale) {
|
|
3440
|
+
max = max === VOID ? null : max;
|
|
3441
|
+
unit = unit === VOID ? null : unit;
|
|
3442
|
+
scale = scale === VOID ? false : scale;
|
|
3443
|
+
this.min = min;
|
|
3444
|
+
this.max = max;
|
|
3445
|
+
this.unit = unit;
|
|
3446
|
+
this.scale = scale;
|
|
3447
|
+
}
|
|
3448
|
+
protoOf(QuantityPlaceholder).z1h = function () {
|
|
3449
|
+
return this.min;
|
|
3450
|
+
};
|
|
3451
|
+
protoOf(QuantityPlaceholder).a1i = function () {
|
|
3452
|
+
return this.max;
|
|
3453
|
+
};
|
|
3454
|
+
protoOf(QuantityPlaceholder).b1i = function () {
|
|
3455
|
+
return this.unit;
|
|
3456
|
+
};
|
|
3457
|
+
protoOf(QuantityPlaceholder).c1i = function () {
|
|
3458
|
+
return this.scale;
|
|
3459
|
+
};
|
|
3460
|
+
protoOf(QuantityPlaceholder).cd = function () {
|
|
3461
|
+
return this.min;
|
|
3462
|
+
};
|
|
3463
|
+
protoOf(QuantityPlaceholder).dd = function () {
|
|
3464
|
+
return this.max;
|
|
3465
|
+
};
|
|
3466
|
+
protoOf(QuantityPlaceholder).d1i = function () {
|
|
3467
|
+
return this.unit;
|
|
3468
|
+
};
|
|
3469
|
+
protoOf(QuantityPlaceholder).e1i = function () {
|
|
3470
|
+
return this.scale;
|
|
3471
|
+
};
|
|
3472
|
+
protoOf(QuantityPlaceholder).f1i = function (min, max, unit, scale) {
|
|
3473
|
+
return new QuantityPlaceholder(min, max, unit, scale);
|
|
3474
|
+
};
|
|
3475
|
+
protoOf(QuantityPlaceholder).copy = function (min, max, unit, scale, $super) {
|
|
3476
|
+
min = min === VOID ? this.min : min;
|
|
3477
|
+
max = max === VOID ? this.max : max;
|
|
3478
|
+
unit = unit === VOID ? this.unit : unit;
|
|
3479
|
+
scale = scale === VOID ? this.scale : scale;
|
|
3480
|
+
return $super === VOID ? this.f1i(min, max, unit, scale) : $super.f1i.call(this, min, max, unit, scale);
|
|
3481
|
+
};
|
|
3482
|
+
protoOf(QuantityPlaceholder).toString = function () {
|
|
3483
|
+
return 'QuantityPlaceholder(min=' + this.min + ', max=' + this.max + ', unit=' + this.unit + ', scale=' + this.scale + ')';
|
|
3484
|
+
};
|
|
3485
|
+
protoOf(QuantityPlaceholder).hashCode = function () {
|
|
3486
|
+
var result = getNumberHashCode(this.min);
|
|
3487
|
+
result = imul(result, 31) + (this.max == null ? 0 : getNumberHashCode(this.max)) | 0;
|
|
3488
|
+
result = imul(result, 31) + (this.unit == null ? 0 : getStringHashCode(this.unit)) | 0;
|
|
3489
|
+
result = imul(result, 31) + getBooleanHashCode(this.scale) | 0;
|
|
3490
|
+
return result;
|
|
3491
|
+
};
|
|
3492
|
+
protoOf(QuantityPlaceholder).equals = function (other) {
|
|
3493
|
+
if (this === other)
|
|
3494
|
+
return true;
|
|
3495
|
+
if (!(other instanceof QuantityPlaceholder))
|
|
3496
|
+
return false;
|
|
3497
|
+
if (!equals(this.min, other.min))
|
|
3498
|
+
return false;
|
|
3499
|
+
if (!equals(this.max, other.max))
|
|
3500
|
+
return false;
|
|
3501
|
+
if (!(this.unit == other.unit))
|
|
3502
|
+
return false;
|
|
3503
|
+
if (!(this.scale === other.scale))
|
|
3504
|
+
return false;
|
|
3505
|
+
return true;
|
|
3506
|
+
};
|
|
3397
3507
|
function Companion_10() {
|
|
3398
3508
|
}
|
|
3509
|
+
protoOf(Companion_10).n14 = function () {
|
|
3510
|
+
return $serializer_getInstance_12();
|
|
3511
|
+
};
|
|
3399
3512
|
var Companion_instance_10;
|
|
3400
3513
|
function Companion_getInstance_10() {
|
|
3401
3514
|
return Companion_instance_10;
|
|
3402
3515
|
}
|
|
3403
3516
|
function $serializer_12() {
|
|
3404
3517
|
$serializer_instance_12 = this;
|
|
3405
|
-
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.
|
|
3406
|
-
tmp0_serialDesc.
|
|
3407
|
-
tmp0_serialDesc.
|
|
3408
|
-
tmp0_serialDesc.
|
|
3409
|
-
tmp0_serialDesc.
|
|
3410
|
-
this.
|
|
3518
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.OvenTemperaturePlaceholder', this, 4);
|
|
3519
|
+
tmp0_serialDesc.ws('temperatureC', true);
|
|
3520
|
+
tmp0_serialDesc.ws('temperatureFanC', true);
|
|
3521
|
+
tmp0_serialDesc.ws('temperatureF', true);
|
|
3522
|
+
tmp0_serialDesc.ws('gasMark', true);
|
|
3523
|
+
this.g1i_1 = tmp0_serialDesc;
|
|
3411
3524
|
}
|
|
3412
|
-
protoOf($serializer_12).
|
|
3413
|
-
var tmp0_desc = this.
|
|
3414
|
-
var tmp1_output = encoder.
|
|
3415
|
-
if (tmp1_output.
|
|
3416
|
-
tmp1_output.
|
|
3525
|
+
protoOf($serializer_12).h1i = function (encoder, value) {
|
|
3526
|
+
var tmp0_desc = this.g1i_1;
|
|
3527
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
3528
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.temperatureC == null)) {
|
|
3529
|
+
tmp1_output.fn(tmp0_desc, 0, IntSerializer_getInstance(), value.temperatureC);
|
|
3417
3530
|
}
|
|
3418
|
-
if (tmp1_output.
|
|
3419
|
-
tmp1_output.
|
|
3531
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.temperatureFanC == null)) {
|
|
3532
|
+
tmp1_output.fn(tmp0_desc, 1, IntSerializer_getInstance(), value.temperatureFanC);
|
|
3420
3533
|
}
|
|
3421
|
-
if (tmp1_output.
|
|
3422
|
-
tmp1_output.
|
|
3534
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.temperatureF == null)) {
|
|
3535
|
+
tmp1_output.fn(tmp0_desc, 2, IntSerializer_getInstance(), value.temperatureF);
|
|
3423
3536
|
}
|
|
3424
|
-
if (tmp1_output.
|
|
3425
|
-
tmp1_output.
|
|
3537
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.gasMark == null)) {
|
|
3538
|
+
tmp1_output.fn(tmp0_desc, 3, FloatSerializer_getInstance(), value.gasMark);
|
|
3426
3539
|
}
|
|
3427
|
-
tmp1_output.
|
|
3540
|
+
tmp1_output.ol(tmp0_desc);
|
|
3428
3541
|
};
|
|
3429
|
-
protoOf($serializer_12).
|
|
3430
|
-
return this.
|
|
3542
|
+
protoOf($serializer_12).ri = function (encoder, value) {
|
|
3543
|
+
return this.h1i(encoder, value instanceof OvenTemperaturePlaceholder ? value : THROW_CCE());
|
|
3431
3544
|
};
|
|
3432
|
-
protoOf($serializer_12).
|
|
3433
|
-
var tmp0_desc = this.
|
|
3545
|
+
protoOf($serializer_12).si = function (decoder) {
|
|
3546
|
+
var tmp0_desc = this.g1i_1;
|
|
3434
3547
|
var tmp1_flag = true;
|
|
3435
3548
|
var tmp2_index = 0;
|
|
3436
3549
|
var tmp3_bitMask0 = 0;
|
|
@@ -3438,50 +3551,50 @@
|
|
|
3438
3551
|
var tmp5_local1 = null;
|
|
3439
3552
|
var tmp6_local2 = null;
|
|
3440
3553
|
var tmp7_local3 = null;
|
|
3441
|
-
var tmp8_input = decoder.
|
|
3442
|
-
if (tmp8_input.
|
|
3443
|
-
tmp4_local0 = tmp8_input.
|
|
3554
|
+
var tmp8_input = decoder.nl(tmp0_desc);
|
|
3555
|
+
if (tmp8_input.dm()) {
|
|
3556
|
+
tmp4_local0 = tmp8_input.bm(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
3444
3557
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3445
|
-
tmp5_local1 = tmp8_input.
|
|
3558
|
+
tmp5_local1 = tmp8_input.bm(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
3446
3559
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3447
|
-
tmp6_local2 = tmp8_input.
|
|
3560
|
+
tmp6_local2 = tmp8_input.bm(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
3448
3561
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3449
|
-
tmp7_local3 = tmp8_input.
|
|
3562
|
+
tmp7_local3 = tmp8_input.bm(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
3450
3563
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3451
3564
|
} else
|
|
3452
3565
|
while (tmp1_flag) {
|
|
3453
|
-
tmp2_index = tmp8_input.
|
|
3566
|
+
tmp2_index = tmp8_input.em(tmp0_desc);
|
|
3454
3567
|
switch (tmp2_index) {
|
|
3455
3568
|
case -1:
|
|
3456
3569
|
tmp1_flag = false;
|
|
3457
3570
|
break;
|
|
3458
3571
|
case 0:
|
|
3459
|
-
tmp4_local0 = tmp8_input.
|
|
3572
|
+
tmp4_local0 = tmp8_input.bm(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
3460
3573
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3461
3574
|
break;
|
|
3462
3575
|
case 1:
|
|
3463
|
-
tmp5_local1 = tmp8_input.
|
|
3576
|
+
tmp5_local1 = tmp8_input.bm(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
3464
3577
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3465
3578
|
break;
|
|
3466
3579
|
case 2:
|
|
3467
|
-
tmp6_local2 = tmp8_input.
|
|
3580
|
+
tmp6_local2 = tmp8_input.bm(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
3468
3581
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3469
3582
|
break;
|
|
3470
3583
|
case 3:
|
|
3471
|
-
tmp7_local3 = tmp8_input.
|
|
3584
|
+
tmp7_local3 = tmp8_input.bm(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
3472
3585
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3473
3586
|
break;
|
|
3474
3587
|
default:
|
|
3475
3588
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
3476
3589
|
}
|
|
3477
3590
|
}
|
|
3478
|
-
tmp8_input.
|
|
3591
|
+
tmp8_input.ol(tmp0_desc);
|
|
3479
3592
|
return OvenTemperaturePlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
3480
3593
|
};
|
|
3481
|
-
protoOf($serializer_12).
|
|
3482
|
-
return this.
|
|
3594
|
+
protoOf($serializer_12).qi = function () {
|
|
3595
|
+
return this.g1i_1;
|
|
3483
3596
|
};
|
|
3484
|
-
protoOf($serializer_12).
|
|
3597
|
+
protoOf($serializer_12).ys = function () {
|
|
3485
3598
|
// Inline function 'kotlin.arrayOf' call
|
|
3486
3599
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3487
3600
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3495,99 +3608,81 @@
|
|
|
3495
3608
|
}
|
|
3496
3609
|
function OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, $this) {
|
|
3497
3610
|
if (!(0 === (0 & seen0))) {
|
|
3498
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_12().
|
|
3611
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_12().g1i_1);
|
|
3499
3612
|
}
|
|
3500
3613
|
if (0 === (seen0 & 1))
|
|
3501
|
-
$this.
|
|
3614
|
+
$this.temperatureC = null;
|
|
3502
3615
|
else
|
|
3503
|
-
$this.
|
|
3616
|
+
$this.temperatureC = temperatureC;
|
|
3504
3617
|
if (0 === (seen0 & 2))
|
|
3505
|
-
$this.
|
|
3618
|
+
$this.temperatureFanC = null;
|
|
3506
3619
|
else
|
|
3507
|
-
$this.
|
|
3620
|
+
$this.temperatureFanC = temperatureFanC;
|
|
3508
3621
|
if (0 === (seen0 & 4))
|
|
3509
|
-
$this.
|
|
3622
|
+
$this.temperatureF = null;
|
|
3510
3623
|
else
|
|
3511
|
-
$this.
|
|
3624
|
+
$this.temperatureF = temperatureF;
|
|
3512
3625
|
if (0 === (seen0 & 8))
|
|
3513
|
-
$this.
|
|
3626
|
+
$this.gasMark = null;
|
|
3514
3627
|
else
|
|
3515
|
-
$this.
|
|
3628
|
+
$this.gasMark = gasMark;
|
|
3516
3629
|
return $this;
|
|
3517
3630
|
}
|
|
3518
3631
|
function OvenTemperaturePlaceholder_init_$Create$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker) {
|
|
3519
3632
|
return OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, objectCreate(protoOf(OvenTemperaturePlaceholder)));
|
|
3520
3633
|
}
|
|
3521
|
-
function
|
|
3522
|
-
|
|
3634
|
+
function OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
3635
|
+
temperatureC = temperatureC === VOID ? null : temperatureC;
|
|
3636
|
+
temperatureFanC = temperatureFanC === VOID ? null : temperatureFanC;
|
|
3637
|
+
temperatureF = temperatureF === VOID ? null : temperatureF;
|
|
3638
|
+
gasMark = gasMark === VOID ? null : gasMark;
|
|
3639
|
+
this.temperatureC = temperatureC;
|
|
3640
|
+
this.temperatureFanC = temperatureFanC;
|
|
3641
|
+
this.temperatureF = temperatureF;
|
|
3642
|
+
this.gasMark = gasMark;
|
|
3523
3643
|
}
|
|
3524
|
-
protoOf(
|
|
3525
|
-
return
|
|
3644
|
+
protoOf(OvenTemperaturePlaceholder).i1i = function () {
|
|
3645
|
+
return this.temperatureC;
|
|
3526
3646
|
};
|
|
3527
|
-
protoOf(
|
|
3528
|
-
return
|
|
3647
|
+
protoOf(OvenTemperaturePlaceholder).j1i = function () {
|
|
3648
|
+
return this.temperatureFanC;
|
|
3529
3649
|
};
|
|
3530
|
-
protoOf(
|
|
3531
|
-
|
|
3532
|
-
return true;
|
|
3533
|
-
if (!(other instanceof TemplateConst))
|
|
3534
|
-
return false;
|
|
3535
|
-
if (!(this.l1c_1 === other.l1c_1))
|
|
3536
|
-
return false;
|
|
3537
|
-
return true;
|
|
3650
|
+
protoOf(OvenTemperaturePlaceholder).k1i = function () {
|
|
3651
|
+
return this.temperatureF;
|
|
3538
3652
|
};
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
unit = unit === VOID ? null : unit;
|
|
3542
|
-
scale = scale === VOID ? false : scale;
|
|
3543
|
-
this.h1c_1 = min;
|
|
3544
|
-
this.i1c_1 = max;
|
|
3545
|
-
this.j1c_1 = unit;
|
|
3546
|
-
this.k1c_1 = scale;
|
|
3547
|
-
}
|
|
3548
|
-
protoOf(QuantityPlaceholder).toString = function () {
|
|
3549
|
-
return 'QuantityPlaceholder(min=' + this.h1c_1 + ', max=' + this.i1c_1 + ', unit=' + this.j1c_1 + ', scale=' + this.k1c_1 + ')';
|
|
3653
|
+
protoOf(OvenTemperaturePlaceholder).l1i = function () {
|
|
3654
|
+
return this.gasMark;
|
|
3550
3655
|
};
|
|
3551
|
-
protoOf(
|
|
3552
|
-
|
|
3553
|
-
result = imul(result, 31) + (this.i1c_1 == null ? 0 : getNumberHashCode(this.i1c_1)) | 0;
|
|
3554
|
-
result = imul(result, 31) + (this.j1c_1 == null ? 0 : getStringHashCode(this.j1c_1)) | 0;
|
|
3555
|
-
result = imul(result, 31) + getBooleanHashCode(this.k1c_1) | 0;
|
|
3556
|
-
return result;
|
|
3656
|
+
protoOf(OvenTemperaturePlaceholder).cd = function () {
|
|
3657
|
+
return this.temperatureC;
|
|
3557
3658
|
};
|
|
3558
|
-
protoOf(
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3659
|
+
protoOf(OvenTemperaturePlaceholder).dd = function () {
|
|
3660
|
+
return this.temperatureFanC;
|
|
3661
|
+
};
|
|
3662
|
+
protoOf(OvenTemperaturePlaceholder).d1i = function () {
|
|
3663
|
+
return this.temperatureF;
|
|
3664
|
+
};
|
|
3665
|
+
protoOf(OvenTemperaturePlaceholder).e1i = function () {
|
|
3666
|
+
return this.gasMark;
|
|
3667
|
+
};
|
|
3668
|
+
protoOf(OvenTemperaturePlaceholder).m1i = function (temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
3669
|
+
return new OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3670
|
+
};
|
|
3671
|
+
protoOf(OvenTemperaturePlaceholder).copy = function (temperatureC, temperatureFanC, temperatureF, gasMark, $super) {
|
|
3672
|
+
temperatureC = temperatureC === VOID ? this.temperatureC : temperatureC;
|
|
3673
|
+
temperatureFanC = temperatureFanC === VOID ? this.temperatureFanC : temperatureFanC;
|
|
3674
|
+
temperatureF = temperatureF === VOID ? this.temperatureF : temperatureF;
|
|
3675
|
+
gasMark = gasMark === VOID ? this.gasMark : gasMark;
|
|
3676
|
+
return $super === VOID ? this.m1i(temperatureC, temperatureFanC, temperatureF, gasMark) : $super.m1i.call(this, temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3572
3677
|
};
|
|
3573
|
-
function OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
3574
|
-
temperatureC = temperatureC === VOID ? null : temperatureC;
|
|
3575
|
-
temperatureFanC = temperatureFanC === VOID ? null : temperatureFanC;
|
|
3576
|
-
temperatureF = temperatureF === VOID ? null : temperatureF;
|
|
3577
|
-
gasMark = gasMark === VOID ? null : gasMark;
|
|
3578
|
-
this.d1c_1 = temperatureC;
|
|
3579
|
-
this.e1c_1 = temperatureFanC;
|
|
3580
|
-
this.f1c_1 = temperatureF;
|
|
3581
|
-
this.g1c_1 = gasMark;
|
|
3582
|
-
}
|
|
3583
3678
|
protoOf(OvenTemperaturePlaceholder).toString = function () {
|
|
3584
|
-
return 'OvenTemperaturePlaceholder(temperatureC=' + this.
|
|
3679
|
+
return 'OvenTemperaturePlaceholder(temperatureC=' + this.temperatureC + ', temperatureFanC=' + this.temperatureFanC + ', temperatureF=' + this.temperatureF + ', gasMark=' + this.gasMark + ')';
|
|
3585
3680
|
};
|
|
3586
3681
|
protoOf(OvenTemperaturePlaceholder).hashCode = function () {
|
|
3587
|
-
var result = this.
|
|
3588
|
-
result = imul(result, 31) + (this.
|
|
3589
|
-
result = imul(result, 31) + (this.
|
|
3590
|
-
result = imul(result, 31) + (this.
|
|
3682
|
+
var result = this.temperatureC == null ? 0 : this.temperatureC;
|
|
3683
|
+
result = imul(result, 31) + (this.temperatureFanC == null ? 0 : this.temperatureFanC) | 0;
|
|
3684
|
+
result = imul(result, 31) + (this.temperatureF == null ? 0 : this.temperatureF) | 0;
|
|
3685
|
+
result = imul(result, 31) + (this.gasMark == null ? 0 : getNumberHashCode(this.gasMark)) | 0;
|
|
3591
3686
|
return result;
|
|
3592
3687
|
};
|
|
3593
3688
|
protoOf(OvenTemperaturePlaceholder).equals = function (other) {
|
|
@@ -3595,31 +3690,31 @@
|
|
|
3595
3690
|
return true;
|
|
3596
3691
|
if (!(other instanceof OvenTemperaturePlaceholder))
|
|
3597
3692
|
return false;
|
|
3598
|
-
if (!(this.
|
|
3693
|
+
if (!(this.temperatureC == other.temperatureC))
|
|
3599
3694
|
return false;
|
|
3600
|
-
if (!(this.
|
|
3695
|
+
if (!(this.temperatureFanC == other.temperatureFanC))
|
|
3601
3696
|
return false;
|
|
3602
|
-
if (!(this.
|
|
3697
|
+
if (!(this.temperatureF == other.temperatureF))
|
|
3603
3698
|
return false;
|
|
3604
|
-
if (!equals(this.
|
|
3699
|
+
if (!equals(this.gasMark, other.gasMark))
|
|
3605
3700
|
return false;
|
|
3606
3701
|
return true;
|
|
3607
3702
|
};
|
|
3608
3703
|
function ParsedTemplate(elements) {
|
|
3609
|
-
this.
|
|
3704
|
+
this.g1d_1 = elements;
|
|
3610
3705
|
}
|
|
3611
3706
|
protoOf(ParsedTemplate).toString = function () {
|
|
3612
|
-
return 'ParsedTemplate(elements=' + toString_0(this.
|
|
3707
|
+
return 'ParsedTemplate(elements=' + toString_0(this.g1d_1) + ')';
|
|
3613
3708
|
};
|
|
3614
3709
|
protoOf(ParsedTemplate).hashCode = function () {
|
|
3615
|
-
return hashCode(this.
|
|
3710
|
+
return hashCode(this.g1d_1);
|
|
3616
3711
|
};
|
|
3617
3712
|
protoOf(ParsedTemplate).equals = function (other) {
|
|
3618
3713
|
if (this === other)
|
|
3619
3714
|
return true;
|
|
3620
3715
|
if (!(other instanceof ParsedTemplate))
|
|
3621
3716
|
return false;
|
|
3622
|
-
if (!equals(this.
|
|
3717
|
+
if (!equals(this.g1d_1, other.g1d_1))
|
|
3623
3718
|
return false;
|
|
3624
3719
|
return true;
|
|
3625
3720
|
};
|
|
@@ -3628,16 +3723,16 @@
|
|
|
3628
3723
|
return tolerantJson_0;
|
|
3629
3724
|
}
|
|
3630
3725
|
var tolerantJson_0;
|
|
3631
|
-
function
|
|
3726
|
+
function scaleRecipe(recipe, factor, unit) {
|
|
3632
3727
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3633
3728
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
3634
3729
|
var this_0 = get_tolerantJson_0();
|
|
3635
3730
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3636
|
-
var this_1 = this_0.
|
|
3731
|
+
var this_1 = this_0.cm();
|
|
3637
3732
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3638
3733
|
var this_2 = serializer(this_1, createKType(getKClass(RecipeV3), arrayOf([]), false));
|
|
3639
3734
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
3640
|
-
var parsedRecipe = this_0.
|
|
3735
|
+
var parsedRecipe = this_0.z11(tmp$ret$1, recipe);
|
|
3641
3736
|
var tmp;
|
|
3642
3737
|
switch (unit) {
|
|
3643
3738
|
case 'Imperial':
|
|
@@ -3650,19 +3745,29 @@
|
|
|
3650
3745
|
throw IllegalArgumentException_init_$Create$('Unknown unit: ' + unit);
|
|
3651
3746
|
}
|
|
3652
3747
|
var ingredientUnit = tmp;
|
|
3653
|
-
var scaledRecipe =
|
|
3748
|
+
var scaledRecipe = scaleAndConvertUnitRecipe(parsedRecipe, factor, ingredientUnit);
|
|
3654
3749
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
3655
3750
|
var this_3 = Default_getInstance();
|
|
3656
3751
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3657
|
-
var this_4 = this_3.
|
|
3752
|
+
var this_4 = this_3.cm();
|
|
3658
3753
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3659
3754
|
var this_5 = serializer(this_4, createKType(getKClass(RecipeV2), arrayOf([]), false));
|
|
3660
3755
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
3661
|
-
return this_3.
|
|
3756
|
+
return this_3.y11(tmp$ret$4, scaledRecipe);
|
|
3757
|
+
}
|
|
3758
|
+
function parseTemplate_0(templateString) {
|
|
3759
|
+
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3760
|
+
var parsedTemplate = parseTemplate(templateString);
|
|
3761
|
+
return parsedTemplate.g1d_1;
|
|
3762
|
+
}
|
|
3763
|
+
function renderTemplate_0(templateElements) {
|
|
3764
|
+
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3765
|
+
var template = new ParsedTemplate(templateElements);
|
|
3766
|
+
return renderTemplate(template, 1.0);
|
|
3662
3767
|
}
|
|
3663
3768
|
function tolerantJson$lambda_0($this$Json) {
|
|
3664
3769
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3665
|
-
$this$Json.
|
|
3770
|
+
$this$Json.t12_1 = true;
|
|
3666
3771
|
return Unit_instance;
|
|
3667
3772
|
}
|
|
3668
3773
|
var properties_initialized_ScaleRecipeJsContract_kt_yki7mr;
|
|
@@ -3673,20 +3778,20 @@
|
|
|
3673
3778
|
}
|
|
3674
3779
|
}
|
|
3675
3780
|
//region block: post-declaration
|
|
3676
|
-
protoOf($serializer).
|
|
3677
|
-
protoOf($serializer_0).
|
|
3678
|
-
protoOf($serializer_1).
|
|
3679
|
-
protoOf($serializer_2).
|
|
3680
|
-
protoOf($serializer_3).
|
|
3681
|
-
protoOf($serializer_4).
|
|
3682
|
-
protoOf($serializer_5).
|
|
3683
|
-
protoOf($serializer_6).
|
|
3684
|
-
protoOf($serializer_7).
|
|
3685
|
-
protoOf($serializer_8).
|
|
3686
|
-
protoOf($serializer_9).
|
|
3687
|
-
protoOf($serializer_10).
|
|
3688
|
-
protoOf($serializer_11).
|
|
3689
|
-
protoOf($serializer_12).
|
|
3781
|
+
protoOf($serializer).zs = typeParametersSerializers;
|
|
3782
|
+
protoOf($serializer_0).zs = typeParametersSerializers;
|
|
3783
|
+
protoOf($serializer_1).zs = typeParametersSerializers;
|
|
3784
|
+
protoOf($serializer_2).zs = typeParametersSerializers;
|
|
3785
|
+
protoOf($serializer_3).zs = typeParametersSerializers;
|
|
3786
|
+
protoOf($serializer_4).zs = typeParametersSerializers;
|
|
3787
|
+
protoOf($serializer_5).zs = typeParametersSerializers;
|
|
3788
|
+
protoOf($serializer_6).zs = typeParametersSerializers;
|
|
3789
|
+
protoOf($serializer_7).zs = typeParametersSerializers;
|
|
3790
|
+
protoOf($serializer_8).zs = typeParametersSerializers;
|
|
3791
|
+
protoOf($serializer_9).zs = typeParametersSerializers;
|
|
3792
|
+
protoOf($serializer_10).zs = typeParametersSerializers;
|
|
3793
|
+
protoOf($serializer_11).zs = typeParametersSerializers;
|
|
3794
|
+
protoOf($serializer_12).zs = typeParametersSerializers;
|
|
3690
3795
|
//endregion
|
|
3691
3796
|
//region block: init
|
|
3692
3797
|
Imperial_instance = new Imperial();
|
|
@@ -3700,13 +3805,25 @@
|
|
|
3700
3805
|
//endregion
|
|
3701
3806
|
//region block: exports
|
|
3702
3807
|
function $jsExportAll$(_) {
|
|
3808
|
+
var $com = _.com || (_.com = {});
|
|
3809
|
+
var $com$gu = $com.gu || ($com.gu = {});
|
|
3810
|
+
var $com$gu$recipe = $com$gu.recipe || ($com$gu.recipe = {});
|
|
3811
|
+
var $com$gu$recipe$template = $com$gu$recipe.template || ($com$gu$recipe.template = {});
|
|
3812
|
+
$com$gu$recipe$template.TemplateConst = TemplateConst;
|
|
3813
|
+
$com$gu$recipe$template.QuantityPlaceholder = QuantityPlaceholder;
|
|
3814
|
+
defineProp($com$gu$recipe$template.QuantityPlaceholder, 'Companion', Companion_getInstance_9, VOID, true);
|
|
3815
|
+
$com$gu$recipe$template.OvenTemperaturePlaceholder = OvenTemperaturePlaceholder;
|
|
3816
|
+
defineProp($com$gu$recipe$template.OvenTemperaturePlaceholder, 'Companion', Companion_getInstance_10, VOID, true);
|
|
3703
3817
|
var $com = _.com || (_.com = {});
|
|
3704
3818
|
var $com$gu = $com.gu || ($com.gu = {});
|
|
3705
3819
|
var $com$gu$recipe = $com$gu.recipe || ($com$gu.recipe = {});
|
|
3706
3820
|
var $com$gu$recipe$js = $com$gu$recipe.js || ($com$gu$recipe.js = {});
|
|
3707
|
-
$com$gu$recipe$js.scaleRecipe =
|
|
3821
|
+
$com$gu$recipe$js.scaleRecipe = scaleRecipe;
|
|
3822
|
+
$com$gu$recipe$js.parseTemplate = parseTemplate_0;
|
|
3823
|
+
$com$gu$recipe$js.renderTemplate = renderTemplate_0;
|
|
3708
3824
|
}
|
|
3709
3825
|
$jsExportAll$(_);
|
|
3826
|
+
kotlin_kotlin.$jsExportAll$(_);
|
|
3710
3827
|
//endregion
|
|
3711
3828
|
return _;
|
|
3712
3829
|
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js')));
|