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