@guardian/feast-multiplatform-library 17.1.2 → 17.1.4
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.js +1327 -1299
- package/kotlin/feast-multiplatform-library-library.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +1638 -1397
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1720 -1720
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1926 -1596
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,50 +5,51 @@
|
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.b;
|
|
6
6
|
var protoOf = kotlin_kotlin.$_$.a8;
|
|
7
7
|
var toString = kotlin_kotlin.$_$.fb;
|
|
8
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
9
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
10
|
-
var equals = kotlin_kotlin.$_$.
|
|
11
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
8
|
+
var getNumberHashCode = kotlin_kotlin.$_$.b7;
|
|
9
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.a7;
|
|
10
|
+
var equals = kotlin_kotlin.$_$.z6;
|
|
11
|
+
var initMetadataForClass = kotlin_kotlin.$_$.f7;
|
|
12
12
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
13
13
|
var numberToInt = kotlin_kotlin.$_$.y7;
|
|
14
14
|
var Unit_instance = kotlin_kotlin.$_$.u;
|
|
15
15
|
var round = kotlin_kotlin.$_$.d8;
|
|
16
16
|
var replace = kotlin_kotlin.$_$.z8;
|
|
17
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
17
|
+
var initMetadataForObject = kotlin_kotlin.$_$.k7;
|
|
18
18
|
var listOfNotNull = kotlin_kotlin.$_$.c5;
|
|
19
19
|
var joinToString = kotlin_kotlin.$_$.x4;
|
|
20
20
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.cb;
|
|
21
|
+
var plus = kotlin_kotlin.$_$.db;
|
|
21
22
|
var isBlank = kotlin_kotlin.$_$.w8;
|
|
22
23
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.d4;
|
|
23
24
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
24
25
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.w1;
|
|
25
26
|
var charArrayOf = kotlin_kotlin.$_$.s6;
|
|
26
27
|
var indexOfAny = kotlin_kotlin.$_$.t8;
|
|
27
|
-
var
|
|
28
|
-
var isCharSequence = kotlin_kotlin.$_$.o7;
|
|
29
|
-
var trim = kotlin_kotlin.$_$.t9;
|
|
30
|
-
var toString_0 = kotlin_kotlin.$_$.c8;
|
|
31
|
-
var to = kotlin_kotlin.$_$.gb;
|
|
32
|
-
var take = kotlin_kotlin.$_$.g9;
|
|
28
|
+
var take = kotlin_kotlin.$_$.h9;
|
|
33
29
|
var drop = kotlin_kotlin.$_$.r8;
|
|
30
|
+
var split = kotlin_kotlin.$_$.b9;
|
|
34
31
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.d2;
|
|
35
32
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.a2;
|
|
36
33
|
var Companion_instance = kotlin_kotlin.$_$.p;
|
|
37
34
|
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.c2;
|
|
35
|
+
var charSequenceLength = kotlin_kotlin.$_$.w6;
|
|
36
|
+
var startsWith = kotlin_kotlin.$_$.c9;
|
|
38
37
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
|
|
39
38
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
|
|
40
39
|
var JsonElementSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
41
40
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.v;
|
|
42
41
|
var lazy = kotlin_kotlin.$_$.ab;
|
|
43
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
42
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.g7;
|
|
44
43
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
44
|
+
var THROW_CCE = kotlin_kotlin.$_$.ia;
|
|
45
45
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
|
|
46
46
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
|
|
47
47
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
|
|
48
48
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1;
|
|
49
49
|
var objectCreate = kotlin_kotlin.$_$.z7;
|
|
50
|
-
var
|
|
51
|
-
var
|
|
50
|
+
var toString_0 = kotlin_kotlin.$_$.c8;
|
|
51
|
+
var getStringHashCode = kotlin_kotlin.$_$.d7;
|
|
52
|
+
var hashCode = kotlin_kotlin.$_$.e7;
|
|
52
53
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
53
54
|
var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
|
|
54
55
|
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
var mapCapacity = kotlin_kotlin.$_$.f5;
|
|
65
66
|
var coerceAtLeast = kotlin_kotlin.$_$.f8;
|
|
66
67
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
68
|
+
var to = kotlin_kotlin.$_$.gb;
|
|
67
69
|
var Exception_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
68
70
|
var createFailure = kotlin_kotlin.$_$.va;
|
|
69
71
|
var IndexOutOfBoundsException = kotlin_kotlin.$_$.ea;
|
|
@@ -74,19 +76,18 @@
|
|
|
74
76
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
|
|
75
77
|
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j;
|
|
76
78
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.x;
|
|
77
|
-
var substring = kotlin_kotlin.$_$.
|
|
78
|
-
var charSequenceLength = kotlin_kotlin.$_$.w6;
|
|
79
|
+
var substring = kotlin_kotlin.$_$.g9;
|
|
79
80
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
|
|
80
81
|
var print = kotlin_kotlin.$_$.x5;
|
|
81
82
|
var Exception = kotlin_kotlin.$_$.ca;
|
|
82
|
-
var substring_0 = kotlin_kotlin.$_$.
|
|
83
|
+
var substring_0 = kotlin_kotlin.$_$.f9;
|
|
83
84
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
84
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
85
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.i7;
|
|
85
86
|
var Enum = kotlin_kotlin.$_$.ba;
|
|
86
87
|
var setOf = kotlin_kotlin.$_$.l5;
|
|
87
88
|
var setOf_0 = kotlin_kotlin.$_$.k5;
|
|
88
89
|
var listOf = kotlin_kotlin.$_$.e5;
|
|
89
|
-
var
|
|
90
|
+
var plus_0 = kotlin_kotlin.$_$.h5;
|
|
90
91
|
var emptySet = kotlin_kotlin.$_$.t4;
|
|
91
92
|
var listOf_0 = kotlin_kotlin.$_$.d5;
|
|
92
93
|
var contains = kotlin_kotlin.$_$.e4;
|
|
@@ -153,29 +154,29 @@
|
|
|
153
154
|
max = max === VOID ? null : max;
|
|
154
155
|
unit = unit === VOID ? null : unit;
|
|
155
156
|
usCust = usCust === VOID ? null : usCust;
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
157
|
+
this.z1d_1 = min;
|
|
158
|
+
this.a1e_1 = max;
|
|
159
|
+
this.b1e_1 = unit;
|
|
160
|
+
this.c1e_1 = usCust;
|
|
160
161
|
}
|
|
161
|
-
protoOf(Amount).
|
|
162
|
+
protoOf(Amount).d1e = function (min, max, unit, usCust) {
|
|
162
163
|
return new Amount(min, max, unit, usCust);
|
|
163
164
|
};
|
|
164
|
-
protoOf(Amount).
|
|
165
|
-
min = min === VOID ? this.
|
|
166
|
-
max = max === VOID ? this.
|
|
167
|
-
unit = unit === VOID ? this.
|
|
168
|
-
usCust = usCust === VOID ? this.
|
|
169
|
-
return $super === VOID ? this.
|
|
165
|
+
protoOf(Amount).e1e = function (min, max, unit, usCust, $super) {
|
|
166
|
+
min = min === VOID ? this.z1d_1 : min;
|
|
167
|
+
max = max === VOID ? this.a1e_1 : max;
|
|
168
|
+
unit = unit === VOID ? this.b1e_1 : unit;
|
|
169
|
+
usCust = usCust === VOID ? this.c1e_1 : usCust;
|
|
170
|
+
return $super === VOID ? this.d1e(min, max, unit, usCust) : $super.d1e.call(this, min, max, unit, usCust);
|
|
170
171
|
};
|
|
171
172
|
protoOf(Amount).toString = function () {
|
|
172
|
-
return 'Amount(min=' + this.
|
|
173
|
+
return 'Amount(min=' + this.z1d_1 + ', max=' + this.a1e_1 + ', unit=' + toString(this.b1e_1) + ', usCust=' + this.c1e_1 + ')';
|
|
173
174
|
};
|
|
174
175
|
protoOf(Amount).hashCode = function () {
|
|
175
|
-
var result = getNumberHashCode(this.
|
|
176
|
-
result = imul(result, 31) + (this.
|
|
177
|
-
result = imul(result, 31) + (this.
|
|
178
|
-
result = imul(result, 31) + (this.
|
|
176
|
+
var result = getNumberHashCode(this.z1d_1);
|
|
177
|
+
result = imul(result, 31) + (this.a1e_1 == null ? 0 : getNumberHashCode(this.a1e_1)) | 0;
|
|
178
|
+
result = imul(result, 31) + (this.b1e_1 == null ? 0 : this.b1e_1.hashCode()) | 0;
|
|
179
|
+
result = imul(result, 31) + (this.c1e_1 == null ? 0 : getBooleanHashCode(this.c1e_1)) | 0;
|
|
179
180
|
return result;
|
|
180
181
|
};
|
|
181
182
|
protoOf(Amount).equals = function (other) {
|
|
@@ -183,24 +184,24 @@
|
|
|
183
184
|
return true;
|
|
184
185
|
if (!(other instanceof Amount))
|
|
185
186
|
return false;
|
|
186
|
-
if (!equals(this.
|
|
187
|
+
if (!equals(this.z1d_1, other.z1d_1))
|
|
187
188
|
return false;
|
|
188
|
-
if (!equals(this.
|
|
189
|
+
if (!equals(this.a1e_1, other.a1e_1))
|
|
189
190
|
return false;
|
|
190
|
-
if (!equals(this.
|
|
191
|
+
if (!equals(this.b1e_1, other.b1e_1))
|
|
191
192
|
return false;
|
|
192
|
-
if (!(this.
|
|
193
|
+
if (!(this.c1e_1 == other.c1e_1))
|
|
193
194
|
return false;
|
|
194
195
|
return true;
|
|
195
196
|
};
|
|
196
197
|
function FormatUtils$applySmartPunctuation$lambda(matchResult) {
|
|
197
|
-
return '\u201C' + matchResult.
|
|
198
|
+
return '\u201C' + matchResult.tb().z(2) + '\u201D';
|
|
198
199
|
}
|
|
199
200
|
function FormatUtils() {
|
|
200
201
|
FormatUtils_instance = this;
|
|
201
|
-
this.
|
|
202
|
+
this.f1e_1 = Regex_init_$Create$('(["])(.*?)(["])');
|
|
202
203
|
}
|
|
203
|
-
protoOf(FormatUtils).
|
|
204
|
+
protoOf(FormatUtils).g1e = function (number) {
|
|
204
205
|
if (number === 0.0)
|
|
205
206
|
return '0';
|
|
206
207
|
var integerPart = numberToInt(number);
|
|
@@ -208,9 +209,9 @@
|
|
|
208
209
|
var fractionalPart = number - integerPart;
|
|
209
210
|
return (0.0 <= fractionalPart ? fractionalPart <= 0.125 : false) ? integerPartStr : (0.125 <= fractionalPart ? fractionalPart <= 0.291667 : false) ? integerPartStr + '\xBC' : (0.291667 <= fractionalPart ? fractionalPart <= 0.416667 : false) ? integerPartStr + '\u2153' : (0.416667 <= fractionalPart ? fractionalPart <= 0.583333 : false) ? integerPartStr + '\xBD' : (0.583333 <= fractionalPart ? fractionalPart <= 0.708333 : false) ? integerPartStr + '\u2154' : (0.708333 <= fractionalPart ? fractionalPart <= 0.875 : false) ? integerPartStr + '\xBE' : '' + (integerPart + 1 | 0);
|
|
210
211
|
};
|
|
211
|
-
protoOf(FormatUtils).
|
|
212
|
+
protoOf(FormatUtils).h1e = function (number, decimals, fraction) {
|
|
212
213
|
if (fraction) {
|
|
213
|
-
return this.
|
|
214
|
+
return this.g1e(number);
|
|
214
215
|
} else {
|
|
215
216
|
var multiplier = 1.0;
|
|
216
217
|
// Inline function 'kotlin.repeat' call
|
|
@@ -232,8 +233,8 @@
|
|
|
232
233
|
return tmp;
|
|
233
234
|
}
|
|
234
235
|
};
|
|
235
|
-
protoOf(FormatUtils).
|
|
236
|
-
var withQuotes = this.
|
|
236
|
+
protoOf(FormatUtils).i1e = function (text) {
|
|
237
|
+
var withQuotes = this.f1e_1.ya(text, FormatUtils$applySmartPunctuation$lambda);
|
|
237
238
|
return replace(replace(withQuotes, "'", '\u2019'), ' - ', ' \u2013 ');
|
|
238
239
|
};
|
|
239
240
|
var FormatUtils_instance;
|
|
@@ -242,10 +243,15 @@
|
|
|
242
243
|
new FormatUtils();
|
|
243
244
|
return FormatUtils_instance;
|
|
244
245
|
}
|
|
246
|
+
function get_NON_BOLD_REGEX() {
|
|
247
|
+
_init_properties_ScaleRecipe_kt__qu4y0q();
|
|
248
|
+
return NON_BOLD_REGEX;
|
|
249
|
+
}
|
|
250
|
+
var NON_BOLD_REGEX;
|
|
245
251
|
function TemplateSession(densityTable) {
|
|
246
|
-
this.
|
|
252
|
+
this.j1e_1 = densityTable;
|
|
247
253
|
}
|
|
248
|
-
protoOf(TemplateSession).
|
|
254
|
+
protoOf(TemplateSession).k1e = function (element) {
|
|
249
255
|
var tmp;
|
|
250
256
|
if (element.temperatureFanC == null) {
|
|
251
257
|
tmp = null;
|
|
@@ -283,11 +289,11 @@
|
|
|
283
289
|
tmp_5 = null;
|
|
284
290
|
} else {
|
|
285
291
|
// Inline function 'kotlin.let' call
|
|
286
|
-
tmp_5 = '/gas mark ' + FormatUtils_getInstance().
|
|
292
|
+
tmp_5 = '/gas mark ' + FormatUtils_getInstance().g1e(tmp3_safe_receiver);
|
|
287
293
|
}
|
|
288
294
|
return joinToString(listOfNotNull([tmp_2, fanTempC, tmp_4, tmp_5]), '');
|
|
289
295
|
};
|
|
290
|
-
protoOf(TemplateSession).
|
|
296
|
+
protoOf(TemplateSession).l1e = function (element, factor, measuringSystem) {
|
|
291
297
|
var tmp = !(element.min === element.max) ? element.max : null;
|
|
292
298
|
var tmp0_safe_receiver = element.unit;
|
|
293
299
|
var tmp_0;
|
|
@@ -295,7 +301,7 @@
|
|
|
295
301
|
tmp_0 = null;
|
|
296
302
|
} else {
|
|
297
303
|
// Inline function 'kotlin.let' call
|
|
298
|
-
tmp_0 = Units_getInstance().
|
|
304
|
+
tmp_0 = Units_getInstance().l1f(tmp0_safe_receiver);
|
|
299
305
|
}
|
|
300
306
|
var amount = new Amount(element.min, tmp, tmp_0, element.ingredient === 'butter' ? true : element.usCust);
|
|
301
307
|
var factorToUse = !element.scale ? 1.0 : factor;
|
|
@@ -305,7 +311,7 @@
|
|
|
305
311
|
tmp_1 = null;
|
|
306
312
|
} else {
|
|
307
313
|
// Inline function 'kotlin.let' call
|
|
308
|
-
tmp_1 = this.
|
|
314
|
+
tmp_1 = this.j1e_1.p1f(tmp1_safe_receiver);
|
|
309
315
|
}
|
|
310
316
|
var density = tmp_1;
|
|
311
317
|
var tmp_2;
|
|
@@ -315,40 +321,40 @@
|
|
|
315
321
|
tmp_2 = measuringSystem;
|
|
316
322
|
}
|
|
317
323
|
var targetSystem = tmp_2;
|
|
318
|
-
amount = UnitConversions_getInstance().
|
|
319
|
-
var tmp2_subject = amount.
|
|
320
|
-
var decimals = equals(tmp2_subject, Units_getInstance().
|
|
321
|
-
var tmp3_subject = amount.
|
|
322
|
-
var fraction = equals(tmp3_subject, Units_getInstance().
|
|
324
|
+
amount = UnitConversions_getInstance().z1f(amount, targetSystem, factorToUse, density);
|
|
325
|
+
var tmp2_subject = amount.b1e_1;
|
|
326
|
+
var decimals = equals(tmp2_subject, Units_getInstance().n1e_1) || (equals(tmp2_subject, Units_getInstance().r1e_1) || equals(tmp2_subject, Units_getInstance().e1f_1)) || (equals(tmp2_subject, Units_getInstance().w1e_1) || equals(tmp2_subject, Units_getInstance().u1e_1) || (equals(tmp2_subject, Units_getInstance().x1e_1) || equals(tmp2_subject, Units_getInstance().v1e_1))) ? 0 : equals(tmp2_subject, Units_getInstance().f1f_1) || equals(tmp2_subject, Units_getInstance().g1f_1) ? 1 : 1;
|
|
327
|
+
var tmp3_subject = amount.b1e_1;
|
|
328
|
+
var fraction = equals(tmp3_subject, Units_getInstance().s1e_1) || (equals(tmp3_subject, Units_getInstance().r1e_1) || equals(tmp3_subject, Units_getInstance().f1f_1)) || (equals(tmp3_subject, Units_getInstance().n1e_1) || (equals(tmp3_subject, Units_getInstance().o1e_1) || equals(tmp3_subject, Units_getInstance().e1f_1))) ? false : equals(tmp3_subject, Units_getInstance().u1e_1) || equals(tmp3_subject, Units_getInstance().v1e_1) || (equals(tmp3_subject, Units_getInstance().x1e_1) || equals(tmp3_subject, Units_getInstance().w1e_1)) ? amount.z1d_1 < 1.0 : true;
|
|
323
329
|
var tmp_3;
|
|
324
|
-
if (!(amount.
|
|
330
|
+
if (!(amount.b1e_1 == null)) {
|
|
325
331
|
var tmp_4;
|
|
326
|
-
var tmp0 = amount.
|
|
327
|
-
var tmp4_elvis_lhs = amount.
|
|
332
|
+
var tmp0 = amount.z1d_1;
|
|
333
|
+
var tmp4_elvis_lhs = amount.a1e_1;
|
|
328
334
|
// Inline function 'kotlin.math.max' call
|
|
329
|
-
var b = tmp4_elvis_lhs == null ? amount.
|
|
335
|
+
var b = tmp4_elvis_lhs == null ? amount.z1d_1 : tmp4_elvis_lhs;
|
|
330
336
|
if (Math.max(tmp0, b) > 1.1) {
|
|
331
|
-
tmp_4 = ' ' + amount.
|
|
337
|
+
tmp_4 = ' ' + amount.b1e_1.d1g_1;
|
|
332
338
|
} else {
|
|
333
|
-
tmp_4 = ' ' + amount.
|
|
339
|
+
tmp_4 = ' ' + amount.b1e_1.c1g_1;
|
|
334
340
|
}
|
|
335
341
|
tmp_3 = tmp_4;
|
|
336
342
|
} else {
|
|
337
343
|
tmp_3 = '';
|
|
338
344
|
}
|
|
339
345
|
var unitString = tmp_3;
|
|
340
|
-
var tmp_5 = FormatUtils_getInstance().
|
|
341
|
-
var tmp5_safe_receiver = amount.
|
|
346
|
+
var tmp_5 = FormatUtils_getInstance().h1e(amount.z1d_1, decimals, fraction);
|
|
347
|
+
var tmp5_safe_receiver = amount.a1e_1;
|
|
342
348
|
var tmp_6;
|
|
343
349
|
if (tmp5_safe_receiver == null) {
|
|
344
350
|
tmp_6 = null;
|
|
345
351
|
} else {
|
|
346
352
|
// Inline function 'kotlin.let' call
|
|
347
|
-
tmp_6 = '-' + FormatUtils_getInstance().
|
|
353
|
+
tmp_6 = '-' + FormatUtils_getInstance().h1e(tmp5_safe_receiver, decimals, fraction);
|
|
348
354
|
}
|
|
349
355
|
return joinToString(listOfNotNull([tmp_5, tmp_6, unitString]), '');
|
|
350
356
|
};
|
|
351
|
-
protoOf(TemplateSession).
|
|
357
|
+
protoOf(TemplateSession).h1g = function (element, factor, measuringSystem) {
|
|
352
358
|
var tmp;
|
|
353
359
|
if (element instanceof TemplateConst) {
|
|
354
360
|
tmp = element.value;
|
|
@@ -374,22 +380,22 @@
|
|
|
374
380
|
tmp_1 = tmp_3;
|
|
375
381
|
}
|
|
376
382
|
if (tmp_1) {
|
|
377
|
-
tmp_0 = this.
|
|
383
|
+
tmp_0 = this.l1e(element, factor, measuringSystem);
|
|
378
384
|
} else {
|
|
379
385
|
if (measuringSystem instanceof USCustomaryWithMetric) {
|
|
380
386
|
var tmp_4;
|
|
381
387
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
382
388
|
var this_0 = element.unit;
|
|
383
389
|
if (this_0 == null || isBlank(this_0)) {
|
|
384
|
-
tmp_4 = this.
|
|
390
|
+
tmp_4 = this.l1e(element, factor, USCustomary_instance);
|
|
385
391
|
} else {
|
|
386
|
-
var cupsPart = this.
|
|
387
|
-
var metricPart = this.
|
|
392
|
+
var cupsPart = this.l1e(element, factor, USCustomary_instance);
|
|
393
|
+
var metricPart = this.l1e(element, factor, Metric_instance);
|
|
388
394
|
var tmp_5;
|
|
389
395
|
if (cupsPart === metricPart) {
|
|
390
396
|
tmp_5 = cupsPart;
|
|
391
397
|
} else {
|
|
392
|
-
tmp_5 =
|
|
398
|
+
tmp_5 = cupsPart + ' (' + metricPart + ')';
|
|
393
399
|
}
|
|
394
400
|
tmp_4 = tmp_5;
|
|
395
401
|
}
|
|
@@ -400,15 +406,15 @@
|
|
|
400
406
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
401
407
|
var this_1 = element.unit;
|
|
402
408
|
if (this_1 == null || isBlank(this_1)) {
|
|
403
|
-
tmp_6 = this.
|
|
409
|
+
tmp_6 = this.l1e(element, factor, USCustomary_instance);
|
|
404
410
|
} else {
|
|
405
|
-
var cupsPart_0 = this.
|
|
406
|
-
var imperialPart = this.
|
|
411
|
+
var cupsPart_0 = this.l1e(element, factor, USCustomary_instance);
|
|
412
|
+
var imperialPart = this.l1e(element, factor, Imperial_instance);
|
|
407
413
|
var tmp_7;
|
|
408
414
|
if (cupsPart_0 === imperialPart) {
|
|
409
415
|
tmp_7 = cupsPart_0;
|
|
410
416
|
} else {
|
|
411
|
-
tmp_7 =
|
|
417
|
+
tmp_7 = cupsPart_0 + ' (' + imperialPart + ')';
|
|
412
418
|
}
|
|
413
419
|
tmp_6 = tmp_7;
|
|
414
420
|
}
|
|
@@ -421,29 +427,31 @@
|
|
|
421
427
|
tmp_8 = null;
|
|
422
428
|
} else {
|
|
423
429
|
// Inline function 'kotlin.let' call
|
|
424
|
-
tmp_8 = Units_getInstance().
|
|
430
|
+
tmp_8 = Units_getInstance().l1f(tmp2_safe_receiver);
|
|
425
431
|
}
|
|
426
432
|
var unit = tmp_8;
|
|
427
433
|
var tmp_9;
|
|
428
|
-
if (unit == null || equals(unit, Units_getInstance().
|
|
429
|
-
tmp_9 = this.
|
|
434
|
+
if (unit == null || equals(unit, Units_getInstance().u1e_1) || equals(unit, Units_getInstance().v1e_1) || equals(unit, Units_getInstance().w1e_1) || equals(unit, Units_getInstance().x1e_1)) {
|
|
435
|
+
tmp_9 = this.l1e(element, factor, USCustomary_instance);
|
|
430
436
|
} else {
|
|
431
|
-
var cupsPart_1 = this.
|
|
437
|
+
var cupsPart_1 = this.l1e(element, factor, USCustomary_instance);
|
|
432
438
|
var tmp_10;
|
|
433
|
-
if (equals(unit
|
|
439
|
+
if (equals(unit, Units_getInstance().y1e_1)) {
|
|
440
|
+
tmp_10 = null;
|
|
441
|
+
} else if (equals(unit.e1g_1, UnitType_VOLUME_getInstance())) {
|
|
434
442
|
tmp_10 = cupsPart_1;
|
|
435
443
|
} else {
|
|
436
|
-
tmp_10 = this.
|
|
444
|
+
tmp_10 = this.l1e(element, factor, Imperial_instance);
|
|
437
445
|
}
|
|
438
446
|
var imperialPart_0 = tmp_10;
|
|
439
|
-
var metricPart_0 = this.
|
|
447
|
+
var metricPart_0 = this.l1e(element, factor, Metric_instance);
|
|
440
448
|
var tmp_11;
|
|
441
449
|
if (cupsPart_1 === metricPart_0 && cupsPart_1 === imperialPart_0) {
|
|
442
450
|
tmp_11 = metricPart_0;
|
|
443
451
|
} else if (cupsPart_1 === imperialPart_0) {
|
|
444
|
-
tmp_11 =
|
|
452
|
+
tmp_11 = cupsPart_1 + ' (' + metricPart_0 + ')';
|
|
445
453
|
} else {
|
|
446
|
-
tmp_11 =
|
|
454
|
+
tmp_11 = plus(imperialPart_0, ' \u2022 ') + cupsPart_1 + ' (' + metricPart_0 + ')';
|
|
447
455
|
}
|
|
448
456
|
tmp_9 = tmp_11;
|
|
449
457
|
}
|
|
@@ -457,7 +465,7 @@
|
|
|
457
465
|
tmp = tmp_0;
|
|
458
466
|
} else {
|
|
459
467
|
if (element instanceof OvenTemperaturePlaceholder) {
|
|
460
|
-
tmp = this.
|
|
468
|
+
tmp = this.k1e(element);
|
|
461
469
|
} else {
|
|
462
470
|
noWhenBranchMatchedException();
|
|
463
471
|
}
|
|
@@ -465,22 +473,22 @@
|
|
|
465
473
|
}
|
|
466
474
|
return tmp;
|
|
467
475
|
};
|
|
468
|
-
protoOf(TemplateSession).
|
|
476
|
+
protoOf(TemplateSession).i1g = function (template, factor, measuringSystem) {
|
|
469
477
|
// Inline function 'kotlin.collections.map' call
|
|
470
|
-
var this_0 = template.
|
|
478
|
+
var this_0 = template.j1g_1;
|
|
471
479
|
// Inline function 'kotlin.collections.mapTo' call
|
|
472
480
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
473
481
|
var _iterator__ex2g4s = this_0.q();
|
|
474
482
|
while (_iterator__ex2g4s.r()) {
|
|
475
483
|
var item = _iterator__ex2g4s.s();
|
|
476
|
-
var tmp$ret$2 = this.
|
|
484
|
+
var tmp$ret$2 = this.h1g(item, factor, measuringSystem);
|
|
477
485
|
destination.u(tmp$ret$2);
|
|
478
486
|
}
|
|
479
487
|
var renderedParts = destination;
|
|
480
|
-
return FormatUtils_getInstance().
|
|
488
|
+
return FormatUtils_getInstance().i1e(joinToString(renderedParts, ''));
|
|
481
489
|
};
|
|
482
490
|
protoOf(TemplateSession).scaleAndConvertUnitRecipe = function (recipe, factor, measuringSystem) {
|
|
483
|
-
var tmp0_safe_receiver = recipe.
|
|
491
|
+
var tmp0_safe_receiver = recipe.w1g_1;
|
|
484
492
|
var tmp;
|
|
485
493
|
if (tmp0_safe_receiver == null) {
|
|
486
494
|
tmp = null;
|
|
@@ -491,7 +499,7 @@
|
|
|
491
499
|
var _iterator__ex2g4s = tmp0_safe_receiver.q();
|
|
492
500
|
while (_iterator__ex2g4s.r()) {
|
|
493
501
|
var item = _iterator__ex2g4s.s();
|
|
494
|
-
var tmp0_safe_receiver_0 = item.
|
|
502
|
+
var tmp0_safe_receiver_0 = item.h1h_1;
|
|
495
503
|
var tmp_0;
|
|
496
504
|
if (tmp0_safe_receiver_0 == null) {
|
|
497
505
|
tmp_0 = null;
|
|
@@ -502,28 +510,28 @@
|
|
|
502
510
|
var _iterator__ex2g4s_0 = tmp0_safe_receiver_0.q();
|
|
503
511
|
while (_iterator__ex2g4s_0.r()) {
|
|
504
512
|
var item_0 = _iterator__ex2g4s_0.s();
|
|
505
|
-
var tmp0_safe_receiver_1 = item_0.
|
|
513
|
+
var tmp0_safe_receiver_1 = item_0.p1h_1;
|
|
506
514
|
var tmp_1;
|
|
507
515
|
if (tmp0_safe_receiver_1 == null) {
|
|
508
516
|
tmp_1 = null;
|
|
509
517
|
} else {
|
|
510
518
|
// Inline function 'kotlin.let' call
|
|
511
|
-
tmp_1 = wrapWithStrongTag(this.
|
|
519
|
+
tmp_1 = wrapWithStrongTag(this.i1g(parseTemplate(tmp0_safe_receiver_1), factor, measuringSystem));
|
|
512
520
|
}
|
|
513
521
|
var tmp1_elvis_lhs = tmp_1;
|
|
514
|
-
var scaledText = tmp1_elvis_lhs == null ? item_0.
|
|
515
|
-
var tmp$ret$5 = item_0.
|
|
522
|
+
var scaledText = tmp1_elvis_lhs == null ? item_0.q1h_1 : tmp1_elvis_lhs;
|
|
523
|
+
var tmp$ret$5 = item_0.s1h(VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledText);
|
|
516
524
|
destination_0.u(tmp$ret$5);
|
|
517
525
|
}
|
|
518
526
|
tmp_0 = destination_0;
|
|
519
527
|
}
|
|
520
|
-
var tmp$ret$2 = new IngredientsList(tmp_0, item.
|
|
528
|
+
var tmp$ret$2 = new IngredientsList(tmp_0, item.i1h_1);
|
|
521
529
|
destination.u(tmp$ret$2);
|
|
522
530
|
}
|
|
523
531
|
tmp = destination;
|
|
524
532
|
}
|
|
525
533
|
var scaledIngredients = tmp;
|
|
526
|
-
var tmp1_safe_receiver = recipe.
|
|
534
|
+
var tmp1_safe_receiver = recipe.x1g_1;
|
|
527
535
|
var tmp_2;
|
|
528
536
|
if (tmp1_safe_receiver == null) {
|
|
529
537
|
tmp_2 = null;
|
|
@@ -534,48 +542,38 @@
|
|
|
534
542
|
var _iterator__ex2g4s_1 = tmp1_safe_receiver.q();
|
|
535
543
|
while (_iterator__ex2g4s_1.r()) {
|
|
536
544
|
var item_1 = _iterator__ex2g4s_1.s();
|
|
537
|
-
var tmp0_safe_receiver_2 = item_1.
|
|
545
|
+
var tmp0_safe_receiver_2 = item_1.u1h_1;
|
|
538
546
|
var tmp_3;
|
|
539
547
|
if (tmp0_safe_receiver_2 == null) {
|
|
540
548
|
tmp_3 = null;
|
|
541
549
|
} else {
|
|
542
550
|
// Inline function 'kotlin.let' call
|
|
543
|
-
tmp_3 = this.
|
|
551
|
+
tmp_3 = this.i1g(parseTemplate(tmp0_safe_receiver_2), factor, measuringSystem);
|
|
544
552
|
}
|
|
545
553
|
var description = tmp_3;
|
|
546
|
-
var tmp$ret$10 = item_1.
|
|
554
|
+
var tmp$ret$10 = item_1.x1h(description == null ? item_1.t1h_1 : description);
|
|
547
555
|
destination_1.u(tmp$ret$10);
|
|
548
556
|
}
|
|
549
557
|
tmp_2 = destination_1;
|
|
550
558
|
}
|
|
551
559
|
var scaledInstructions = tmp_2;
|
|
552
|
-
return recipe.
|
|
560
|
+
return recipe.y1h(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledIngredients, scaledInstructions);
|
|
553
561
|
};
|
|
554
|
-
function splitBeforeSuffix(value) {
|
|
555
|
-
// Inline function 'kotlin.charArrayOf' call
|
|
556
|
-
var separators = charArrayOf([_Char___init__impl__6a9atx(44), _Char___init__impl__6a9atx(59), _Char___init__impl__6a9atx(40)]);
|
|
557
|
-
var index = indexOfAny(value, separators);
|
|
558
|
-
var tmp;
|
|
559
|
-
if (!(index === -1)) {
|
|
560
|
-
var before = take(value, index);
|
|
561
|
-
var after = drop(value, index);
|
|
562
|
-
tmp = to(before, after);
|
|
563
|
-
} else {
|
|
564
|
-
// Inline function 'kotlin.text.trim' call
|
|
565
|
-
var tmp$ret$1 = toString_0(trim(isCharSequence(value) ? value : THROW_CCE()));
|
|
566
|
-
tmp = to(tmp$ret$1, null);
|
|
567
|
-
}
|
|
568
|
-
return tmp;
|
|
569
|
-
}
|
|
570
562
|
function wrapWithStrongTag(value) {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
var
|
|
574
|
-
|
|
575
|
-
|
|
563
|
+
_init_properties_ScaleRecipe_kt__qu4y0q();
|
|
564
|
+
// Inline function 'kotlin.charArrayOf' call
|
|
565
|
+
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(44), _Char___init__impl__6a9atx(59)]);
|
|
566
|
+
var suffixStart = indexOfAny(value, tmp$ret$0);
|
|
567
|
+
var boldPart = suffixStart >= 0 ? take(value, suffixStart) : value;
|
|
568
|
+
var plainSuffix = suffixStart >= 0 ? drop(value, suffixStart) : '';
|
|
569
|
+
var tmp = get_NON_BOLD_REGEX();
|
|
570
|
+
var tmp_0 = split(tmp.ya(boldPart, wrapWithStrongTag$lambda), ['\x00']);
|
|
571
|
+
var result = joinToString(tmp_0, '', VOID, VOID, VOID, VOID, wrapWithStrongTag$lambda_0);
|
|
572
|
+
return result + plainSuffix;
|
|
576
573
|
}
|
|
577
574
|
function newTemplateSession(rawDensityData) {
|
|
578
575
|
rawDensityData = rawDensityData === VOID ? null : rawDensityData;
|
|
576
|
+
_init_properties_ScaleRecipe_kt__qu4y0q();
|
|
579
577
|
var densityTable = !(rawDensityData == null) ? loadDensityTable(rawDensityData) : loadInternalDensityTable();
|
|
580
578
|
// Inline function 'kotlin.map' call
|
|
581
579
|
var tmp;
|
|
@@ -589,6 +587,36 @@
|
|
|
589
587
|
}
|
|
590
588
|
return tmp;
|
|
591
589
|
}
|
|
590
|
+
function wrapWithStrongTag$lambda(it) {
|
|
591
|
+
_init_properties_ScaleRecipe_kt__qu4y0q();
|
|
592
|
+
return '\x00' + it.g2() + '\x00';
|
|
593
|
+
}
|
|
594
|
+
function wrapWithStrongTag$lambda_0(chunk) {
|
|
595
|
+
_init_properties_ScaleRecipe_kt__qu4y0q();
|
|
596
|
+
var tmp;
|
|
597
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
598
|
+
if (charSequenceLength(chunk) === 0) {
|
|
599
|
+
tmp = '';
|
|
600
|
+
} else {
|
|
601
|
+
if (startsWith(chunk, '(')) {
|
|
602
|
+
tmp = chunk;
|
|
603
|
+
} else {
|
|
604
|
+
if (isBlank(chunk) || chunk === ' \u2022 ') {
|
|
605
|
+
tmp = chunk;
|
|
606
|
+
} else {
|
|
607
|
+
tmp = '<strong>' + chunk + '<\/strong>';
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
return tmp;
|
|
612
|
+
}
|
|
613
|
+
var properties_initialized_ScaleRecipe_kt_2csdy0;
|
|
614
|
+
function _init_properties_ScaleRecipe_kt__qu4y0q() {
|
|
615
|
+
if (!properties_initialized_ScaleRecipe_kt_2csdy0) {
|
|
616
|
+
properties_initialized_ScaleRecipe_kt_2csdy0 = true;
|
|
617
|
+
NON_BOLD_REGEX = Regex_init_$Create$('\\([^()]*\\)| \u2022 ');
|
|
618
|
+
}
|
|
619
|
+
}
|
|
592
620
|
function TableSchema$Companion$$childSerializers$_anonymous__48gmsb() {
|
|
593
621
|
return new ArrayListSerializer(StringSerializer_getInstance());
|
|
594
622
|
}
|
|
@@ -604,7 +632,7 @@
|
|
|
604
632
|
// Inline function 'kotlin.arrayOf' call
|
|
605
633
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
606
634
|
// Inline function 'kotlin.js.asDynamic' call
|
|
607
|
-
tmp.
|
|
635
|
+
tmp.z1h_1 = [null, tmp_1, lazy(tmp_2, TableSchema$Companion$$childSerializers$_anonymous__48gmsb_0)];
|
|
608
636
|
}
|
|
609
637
|
var Companion_instance_0;
|
|
610
638
|
function Companion_getInstance() {
|
|
@@ -615,75 +643,75 @@
|
|
|
615
643
|
function $serializer() {
|
|
616
644
|
$serializer_instance = this;
|
|
617
645
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.density.TableSchema', this, 3);
|
|
618
|
-
tmp0_serialDesc.
|
|
619
|
-
tmp0_serialDesc.
|
|
620
|
-
tmp0_serialDesc.
|
|
621
|
-
this.
|
|
622
|
-
}
|
|
623
|
-
protoOf($serializer).
|
|
624
|
-
var tmp0_desc = this.
|
|
625
|
-
var tmp1_output = encoder.
|
|
626
|
-
var tmp2_cached = Companion_getInstance().
|
|
627
|
-
tmp1_output.
|
|
628
|
-
tmp1_output.
|
|
629
|
-
tmp1_output.
|
|
630
|
-
tmp1_output.
|
|
631
|
-
};
|
|
632
|
-
protoOf($serializer).
|
|
633
|
-
return this.
|
|
634
|
-
};
|
|
635
|
-
protoOf($serializer).
|
|
636
|
-
var tmp0_desc = this.
|
|
646
|
+
tmp0_serialDesc.zs('prepared_at', false);
|
|
647
|
+
tmp0_serialDesc.zs('key', false);
|
|
648
|
+
tmp0_serialDesc.zs('values', false);
|
|
649
|
+
this.a1i_1 = tmp0_serialDesc;
|
|
650
|
+
}
|
|
651
|
+
protoOf($serializer).b1i = function (encoder, value) {
|
|
652
|
+
var tmp0_desc = this.a1i_1;
|
|
653
|
+
var tmp1_output = encoder.ql(tmp0_desc);
|
|
654
|
+
var tmp2_cached = Companion_getInstance().z1h_1;
|
|
655
|
+
tmp1_output.en(tmp0_desc, 0, value.c1i_1);
|
|
656
|
+
tmp1_output.gn(tmp0_desc, 1, tmp2_cached[1].g2(), value.d1i_1);
|
|
657
|
+
tmp1_output.gn(tmp0_desc, 2, tmp2_cached[2].g2(), value.e1i_1);
|
|
658
|
+
tmp1_output.rl(tmp0_desc);
|
|
659
|
+
};
|
|
660
|
+
protoOf($serializer).ti = function (encoder, value) {
|
|
661
|
+
return this.b1i(encoder, value instanceof TableSchema ? value : THROW_CCE());
|
|
662
|
+
};
|
|
663
|
+
protoOf($serializer).ui = function (decoder) {
|
|
664
|
+
var tmp0_desc = this.a1i_1;
|
|
637
665
|
var tmp1_flag = true;
|
|
638
666
|
var tmp2_index = 0;
|
|
639
667
|
var tmp3_bitMask0 = 0;
|
|
640
668
|
var tmp4_local0 = null;
|
|
641
669
|
var tmp5_local1 = null;
|
|
642
670
|
var tmp6_local2 = null;
|
|
643
|
-
var tmp7_input = decoder.
|
|
644
|
-
var tmp8_cached = Companion_getInstance().
|
|
645
|
-
if (tmp7_input.
|
|
646
|
-
tmp4_local0 = tmp7_input.
|
|
671
|
+
var tmp7_input = decoder.ql(tmp0_desc);
|
|
672
|
+
var tmp8_cached = Companion_getInstance().z1h_1;
|
|
673
|
+
if (tmp7_input.gm()) {
|
|
674
|
+
tmp4_local0 = tmp7_input.am(tmp0_desc, 0);
|
|
647
675
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
648
|
-
tmp5_local1 = tmp7_input.
|
|
676
|
+
tmp5_local1 = tmp7_input.cm(tmp0_desc, 1, tmp8_cached[1].g2(), tmp5_local1);
|
|
649
677
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
650
|
-
tmp6_local2 = tmp7_input.
|
|
678
|
+
tmp6_local2 = tmp7_input.cm(tmp0_desc, 2, tmp8_cached[2].g2(), tmp6_local2);
|
|
651
679
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
652
680
|
} else
|
|
653
681
|
while (tmp1_flag) {
|
|
654
|
-
tmp2_index = tmp7_input.
|
|
682
|
+
tmp2_index = tmp7_input.hm(tmp0_desc);
|
|
655
683
|
switch (tmp2_index) {
|
|
656
684
|
case -1:
|
|
657
685
|
tmp1_flag = false;
|
|
658
686
|
break;
|
|
659
687
|
case 0:
|
|
660
|
-
tmp4_local0 = tmp7_input.
|
|
688
|
+
tmp4_local0 = tmp7_input.am(tmp0_desc, 0);
|
|
661
689
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
662
690
|
break;
|
|
663
691
|
case 1:
|
|
664
|
-
tmp5_local1 = tmp7_input.
|
|
692
|
+
tmp5_local1 = tmp7_input.cm(tmp0_desc, 1, tmp8_cached[1].g2(), tmp5_local1);
|
|
665
693
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
666
694
|
break;
|
|
667
695
|
case 2:
|
|
668
|
-
tmp6_local2 = tmp7_input.
|
|
696
|
+
tmp6_local2 = tmp7_input.cm(tmp0_desc, 2, tmp8_cached[2].g2(), tmp6_local2);
|
|
669
697
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
670
698
|
break;
|
|
671
699
|
default:
|
|
672
700
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
673
701
|
}
|
|
674
702
|
}
|
|
675
|
-
tmp7_input.
|
|
703
|
+
tmp7_input.rl(tmp0_desc);
|
|
676
704
|
return TableSchema_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
677
705
|
};
|
|
678
|
-
protoOf($serializer).
|
|
679
|
-
return this.
|
|
706
|
+
protoOf($serializer).si = function () {
|
|
707
|
+
return this.a1i_1;
|
|
680
708
|
};
|
|
681
|
-
protoOf($serializer).
|
|
682
|
-
var tmp0_cached = Companion_getInstance().
|
|
709
|
+
protoOf($serializer).bt = function () {
|
|
710
|
+
var tmp0_cached = Companion_getInstance().z1h_1;
|
|
683
711
|
// Inline function 'kotlin.arrayOf' call
|
|
684
712
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
685
713
|
// Inline function 'kotlin.js.asDynamic' call
|
|
686
|
-
return [StringSerializer_getInstance(), tmp0_cached[1].
|
|
714
|
+
return [StringSerializer_getInstance(), tmp0_cached[1].g2(), tmp0_cached[2].g2()];
|
|
687
715
|
};
|
|
688
716
|
var $serializer_instance;
|
|
689
717
|
function $serializer_getInstance() {
|
|
@@ -693,11 +721,11 @@
|
|
|
693
721
|
}
|
|
694
722
|
function TableSchema_init_$Init$(seen0, preparedAt, key, values, serializationConstructorMarker, $this) {
|
|
695
723
|
if (!(7 === (7 & seen0))) {
|
|
696
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance().
|
|
724
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance().a1i_1);
|
|
697
725
|
}
|
|
698
|
-
$this.
|
|
699
|
-
$this.
|
|
700
|
-
$this.
|
|
726
|
+
$this.c1i_1 = preparedAt;
|
|
727
|
+
$this.d1i_1 = key;
|
|
728
|
+
$this.e1i_1 = values;
|
|
701
729
|
return $this;
|
|
702
730
|
}
|
|
703
731
|
function TableSchema_init_$Create$(seen0, preparedAt, key, values, serializationConstructorMarker) {
|
|
@@ -705,17 +733,17 @@
|
|
|
705
733
|
}
|
|
706
734
|
function TableSchema(preparedAt, key, values) {
|
|
707
735
|
Companion_getInstance();
|
|
708
|
-
this.
|
|
709
|
-
this.
|
|
710
|
-
this.
|
|
736
|
+
this.c1i_1 = preparedAt;
|
|
737
|
+
this.d1i_1 = key;
|
|
738
|
+
this.e1i_1 = values;
|
|
711
739
|
}
|
|
712
740
|
protoOf(TableSchema).toString = function () {
|
|
713
|
-
return 'TableSchema(preparedAt=' + this.
|
|
741
|
+
return 'TableSchema(preparedAt=' + this.c1i_1 + ', key=' + toString_0(this.d1i_1) + ', values=' + toString_0(this.e1i_1) + ')';
|
|
714
742
|
};
|
|
715
743
|
protoOf(TableSchema).hashCode = function () {
|
|
716
|
-
var result = getStringHashCode(this.
|
|
717
|
-
result = imul(result, 31) + hashCode(this.
|
|
718
|
-
result = imul(result, 31) + hashCode(this.
|
|
744
|
+
var result = getStringHashCode(this.c1i_1);
|
|
745
|
+
result = imul(result, 31) + hashCode(this.d1i_1) | 0;
|
|
746
|
+
result = imul(result, 31) + hashCode(this.e1i_1) | 0;
|
|
719
747
|
return result;
|
|
720
748
|
};
|
|
721
749
|
protoOf(TableSchema).equals = function (other) {
|
|
@@ -723,11 +751,11 @@
|
|
|
723
751
|
return true;
|
|
724
752
|
if (!(other instanceof TableSchema))
|
|
725
753
|
return false;
|
|
726
|
-
if (!(this.
|
|
754
|
+
if (!(this.c1i_1 === other.c1i_1))
|
|
727
755
|
return false;
|
|
728
|
-
if (!equals(this.
|
|
756
|
+
if (!equals(this.d1i_1, other.d1i_1))
|
|
729
757
|
return false;
|
|
730
|
-
if (!equals(this.
|
|
758
|
+
if (!equals(this.e1i_1, other.e1i_1))
|
|
731
759
|
return false;
|
|
732
760
|
return true;
|
|
733
761
|
};
|
|
@@ -740,26 +768,26 @@
|
|
|
740
768
|
function $serializer_0() {
|
|
741
769
|
$serializer_instance_0 = this;
|
|
742
770
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.density.Ingredient', this, 4);
|
|
743
|
-
tmp0_serialDesc.
|
|
744
|
-
tmp0_serialDesc.
|
|
745
|
-
tmp0_serialDesc.
|
|
746
|
-
tmp0_serialDesc.
|
|
747
|
-
this.
|
|
748
|
-
}
|
|
749
|
-
protoOf($serializer_0).
|
|
750
|
-
var tmp0_desc = this.
|
|
751
|
-
var tmp1_output = encoder.
|
|
752
|
-
tmp1_output.
|
|
753
|
-
tmp1_output.
|
|
754
|
-
tmp1_output.
|
|
755
|
-
tmp1_output.
|
|
756
|
-
tmp1_output.
|
|
757
|
-
};
|
|
758
|
-
protoOf($serializer_0).
|
|
759
|
-
return this.
|
|
760
|
-
};
|
|
761
|
-
protoOf($serializer_0).
|
|
762
|
-
var tmp0_desc = this.
|
|
771
|
+
tmp0_serialDesc.zs('id', false);
|
|
772
|
+
tmp0_serialDesc.zs('name', false);
|
|
773
|
+
tmp0_serialDesc.zs('normalised_name', false);
|
|
774
|
+
tmp0_serialDesc.zs('density', false);
|
|
775
|
+
this.f1i_1 = tmp0_serialDesc;
|
|
776
|
+
}
|
|
777
|
+
protoOf($serializer_0).g1i = function (encoder, value) {
|
|
778
|
+
var tmp0_desc = this.f1i_1;
|
|
779
|
+
var tmp1_output = encoder.ql(tmp0_desc);
|
|
780
|
+
tmp1_output.zm(tmp0_desc, 0, value.h1i_1);
|
|
781
|
+
tmp1_output.en(tmp0_desc, 1, value.i1i_1);
|
|
782
|
+
tmp1_output.en(tmp0_desc, 2, value.j1i_1);
|
|
783
|
+
tmp1_output.bn(tmp0_desc, 3, value.k1i_1);
|
|
784
|
+
tmp1_output.rl(tmp0_desc);
|
|
785
|
+
};
|
|
786
|
+
protoOf($serializer_0).ti = function (encoder, value) {
|
|
787
|
+
return this.g1i(encoder, value instanceof Ingredient ? value : THROW_CCE());
|
|
788
|
+
};
|
|
789
|
+
protoOf($serializer_0).ui = function (decoder) {
|
|
790
|
+
var tmp0_desc = this.f1i_1;
|
|
763
791
|
var tmp1_flag = true;
|
|
764
792
|
var tmp2_index = 0;
|
|
765
793
|
var tmp3_bitMask0 = 0;
|
|
@@ -767,50 +795,50 @@
|
|
|
767
795
|
var tmp5_local1 = null;
|
|
768
796
|
var tmp6_local2 = null;
|
|
769
797
|
var tmp7_local3 = 0.0;
|
|
770
|
-
var tmp8_input = decoder.
|
|
771
|
-
if (tmp8_input.
|
|
772
|
-
tmp4_local0 = tmp8_input.
|
|
798
|
+
var tmp8_input = decoder.ql(tmp0_desc);
|
|
799
|
+
if (tmp8_input.gm()) {
|
|
800
|
+
tmp4_local0 = tmp8_input.vl(tmp0_desc, 0);
|
|
773
801
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
774
|
-
tmp5_local1 = tmp8_input.
|
|
802
|
+
tmp5_local1 = tmp8_input.am(tmp0_desc, 1);
|
|
775
803
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
776
|
-
tmp6_local2 = tmp8_input.
|
|
804
|
+
tmp6_local2 = tmp8_input.am(tmp0_desc, 2);
|
|
777
805
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
778
|
-
tmp7_local3 = tmp8_input.
|
|
806
|
+
tmp7_local3 = tmp8_input.xl(tmp0_desc, 3);
|
|
779
807
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
780
808
|
} else
|
|
781
809
|
while (tmp1_flag) {
|
|
782
|
-
tmp2_index = tmp8_input.
|
|
810
|
+
tmp2_index = tmp8_input.hm(tmp0_desc);
|
|
783
811
|
switch (tmp2_index) {
|
|
784
812
|
case -1:
|
|
785
813
|
tmp1_flag = false;
|
|
786
814
|
break;
|
|
787
815
|
case 0:
|
|
788
|
-
tmp4_local0 = tmp8_input.
|
|
816
|
+
tmp4_local0 = tmp8_input.vl(tmp0_desc, 0);
|
|
789
817
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
790
818
|
break;
|
|
791
819
|
case 1:
|
|
792
|
-
tmp5_local1 = tmp8_input.
|
|
820
|
+
tmp5_local1 = tmp8_input.am(tmp0_desc, 1);
|
|
793
821
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
794
822
|
break;
|
|
795
823
|
case 2:
|
|
796
|
-
tmp6_local2 = tmp8_input.
|
|
824
|
+
tmp6_local2 = tmp8_input.am(tmp0_desc, 2);
|
|
797
825
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
798
826
|
break;
|
|
799
827
|
case 3:
|
|
800
|
-
tmp7_local3 = tmp8_input.
|
|
828
|
+
tmp7_local3 = tmp8_input.xl(tmp0_desc, 3);
|
|
801
829
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
802
830
|
break;
|
|
803
831
|
default:
|
|
804
832
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
805
833
|
}
|
|
806
834
|
}
|
|
807
|
-
tmp8_input.
|
|
835
|
+
tmp8_input.rl(tmp0_desc);
|
|
808
836
|
return Ingredient_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
809
837
|
};
|
|
810
|
-
protoOf($serializer_0).
|
|
811
|
-
return this.
|
|
838
|
+
protoOf($serializer_0).si = function () {
|
|
839
|
+
return this.f1i_1;
|
|
812
840
|
};
|
|
813
|
-
protoOf($serializer_0).
|
|
841
|
+
protoOf($serializer_0).bt = function () {
|
|
814
842
|
// Inline function 'kotlin.arrayOf' call
|
|
815
843
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
816
844
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -824,31 +852,31 @@
|
|
|
824
852
|
}
|
|
825
853
|
function Ingredient_init_$Init$(seen0, id, name, normalised_name, density, serializationConstructorMarker, $this) {
|
|
826
854
|
if (!(15 === (15 & seen0))) {
|
|
827
|
-
throwMissingFieldException(seen0, 15, $serializer_getInstance_0().
|
|
855
|
+
throwMissingFieldException(seen0, 15, $serializer_getInstance_0().f1i_1);
|
|
828
856
|
}
|
|
829
|
-
$this.
|
|
830
|
-
$this.
|
|
831
|
-
$this.
|
|
832
|
-
$this.
|
|
857
|
+
$this.h1i_1 = id;
|
|
858
|
+
$this.i1i_1 = name;
|
|
859
|
+
$this.j1i_1 = normalised_name;
|
|
860
|
+
$this.k1i_1 = density;
|
|
833
861
|
return $this;
|
|
834
862
|
}
|
|
835
863
|
function Ingredient_init_$Create$(seen0, id, name, normalised_name, density, serializationConstructorMarker) {
|
|
836
864
|
return Ingredient_init_$Init$(seen0, id, name, normalised_name, density, serializationConstructorMarker, objectCreate(protoOf(Ingredient)));
|
|
837
865
|
}
|
|
838
866
|
function Ingredient(id, name, normalised_name, density) {
|
|
839
|
-
this.
|
|
840
|
-
this.
|
|
841
|
-
this.
|
|
842
|
-
this.
|
|
867
|
+
this.h1i_1 = id;
|
|
868
|
+
this.i1i_1 = name;
|
|
869
|
+
this.j1i_1 = normalised_name;
|
|
870
|
+
this.k1i_1 = density;
|
|
843
871
|
}
|
|
844
872
|
protoOf(Ingredient).toString = function () {
|
|
845
|
-
return 'Ingredient(id=' + this.
|
|
873
|
+
return 'Ingredient(id=' + this.h1i_1 + ', name=' + this.i1i_1 + ', normalised_name=' + this.j1i_1 + ', density=' + this.k1i_1 + ')';
|
|
846
874
|
};
|
|
847
875
|
protoOf(Ingredient).hashCode = function () {
|
|
848
|
-
var result = this.
|
|
849
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
850
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
851
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
876
|
+
var result = this.h1i_1;
|
|
877
|
+
result = imul(result, 31) + getStringHashCode(this.i1i_1) | 0;
|
|
878
|
+
result = imul(result, 31) + getStringHashCode(this.j1i_1) | 0;
|
|
879
|
+
result = imul(result, 31) + getNumberHashCode(this.k1i_1) | 0;
|
|
852
880
|
return result;
|
|
853
881
|
};
|
|
854
882
|
protoOf(Ingredient).equals = function (other) {
|
|
@@ -856,29 +884,29 @@
|
|
|
856
884
|
return true;
|
|
857
885
|
if (!(other instanceof Ingredient))
|
|
858
886
|
return false;
|
|
859
|
-
if (!(this.
|
|
887
|
+
if (!(this.h1i_1 === other.h1i_1))
|
|
860
888
|
return false;
|
|
861
|
-
if (!(this.
|
|
889
|
+
if (!(this.i1i_1 === other.i1i_1))
|
|
862
890
|
return false;
|
|
863
|
-
if (!(this.
|
|
891
|
+
if (!(this.j1i_1 === other.j1i_1))
|
|
864
892
|
return false;
|
|
865
|
-
if (!equals(this.
|
|
893
|
+
if (!equals(this.k1i_1, other.k1i_1))
|
|
866
894
|
return false;
|
|
867
895
|
return true;
|
|
868
896
|
};
|
|
869
897
|
function DensityTable(preparedAt, normalised_map, name_map) {
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
872
|
-
this.
|
|
898
|
+
this.m1f_1 = preparedAt;
|
|
899
|
+
this.n1f_1 = normalised_map;
|
|
900
|
+
this.o1f_1 = name_map;
|
|
873
901
|
}
|
|
874
|
-
protoOf(DensityTable).
|
|
875
|
-
var tmp0_safe_receiver = this.
|
|
902
|
+
protoOf(DensityTable).p1f = function (name) {
|
|
903
|
+
var tmp0_safe_receiver = this.n1f_1.j2(name);
|
|
876
904
|
var tmp;
|
|
877
905
|
if (tmp0_safe_receiver == null) {
|
|
878
906
|
tmp = null;
|
|
879
907
|
} else {
|
|
880
908
|
// Inline function 'kotlin.let' call
|
|
881
|
-
return tmp0_safe_receiver.
|
|
909
|
+
return tmp0_safe_receiver.k1i_1;
|
|
882
910
|
}
|
|
883
911
|
return tmp;
|
|
884
912
|
};
|
|
@@ -890,19 +918,19 @@
|
|
|
890
918
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
891
919
|
var this_0 = Default_getInstance();
|
|
892
920
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
893
|
-
var this_1 = this_0.
|
|
921
|
+
var this_1 = this_0.fm();
|
|
894
922
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
895
923
|
var this_2 = serializer(this_1, createKType(getKClass(TableSchema), arrayOf([]), false));
|
|
896
924
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
897
|
-
var data = this_0.
|
|
925
|
+
var data = this_0.c12(tmp$ret$1, raw);
|
|
898
926
|
// Inline function 'kotlin.collections.map' call
|
|
899
|
-
var this_3 = data.
|
|
927
|
+
var this_3 = data.e1i_1;
|
|
900
928
|
// Inline function 'kotlin.collections.mapTo' call
|
|
901
929
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
902
930
|
var _iterator__ex2g4s = this_3.q();
|
|
903
931
|
while (_iterator__ex2g4s.r()) {
|
|
904
932
|
var item = _iterator__ex2g4s.s();
|
|
905
|
-
var tmp$ret$5 = new Ingredient(get_int(get_jsonPrimitive(item.z(0))), get_jsonPrimitive(item.z(1)).
|
|
933
|
+
var tmp$ret$5 = new Ingredient(get_int(get_jsonPrimitive(item.z(0))), get_jsonPrimitive(item.z(1)).k14(), get_jsonPrimitive(item.z(2)).k14(), get_float(get_jsonPrimitive(item.z(3))));
|
|
906
934
|
destination.u(tmp$ret$5);
|
|
907
935
|
}
|
|
908
936
|
var ingredients = destination;
|
|
@@ -914,8 +942,8 @@
|
|
|
914
942
|
while (_iterator__ex2g4s_0.r()) {
|
|
915
943
|
var element = _iterator__ex2g4s_0.s();
|
|
916
944
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
917
|
-
var pair = to(element.
|
|
918
|
-
destination_0.
|
|
945
|
+
var pair = to(element.j1i_1, element);
|
|
946
|
+
destination_0.n2(pair.dd_1, pair.ed_1);
|
|
919
947
|
}
|
|
920
948
|
var normalised_map = destination_0;
|
|
921
949
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -926,11 +954,11 @@
|
|
|
926
954
|
while (_iterator__ex2g4s_1.r()) {
|
|
927
955
|
var element_0 = _iterator__ex2g4s_1.s();
|
|
928
956
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
929
|
-
var pair_0 = to(element_0.
|
|
930
|
-
destination_1.
|
|
957
|
+
var pair_0 = to(element_0.i1i_1, element_0);
|
|
958
|
+
destination_1.n2(pair_0.dd_1, pair_0.ed_1);
|
|
931
959
|
}
|
|
932
960
|
var name_map = destination_1;
|
|
933
|
-
var table = new DensityTable(data.
|
|
961
|
+
var table = new DensityTable(data.c1i_1, normalised_map, name_map);
|
|
934
962
|
// Inline function 'kotlin.Companion.success' call
|
|
935
963
|
return _Result___init__impl__xyqfz8(table);
|
|
936
964
|
} catch ($p) {
|
|
@@ -1038,7 +1066,7 @@
|
|
|
1038
1066
|
// Inline function 'kotlin.arrayOf' call
|
|
1039
1067
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1040
1068
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1041
|
-
tmp.
|
|
1069
|
+
tmp.l1i_1 = [null, tmp_1, null, tmp_3, tmp_5, null, tmp_7, tmp_9, null, null, null, null, tmp_11, tmp_13, null, tmp_15, tmp_17, tmp_19, tmp_21, tmp_23, null, lazy(tmp_24, RecipeV3$Companion$$childSerializers$_anonymous__7om4qn_11), null];
|
|
1042
1070
|
}
|
|
1043
1071
|
var Companion_instance_2;
|
|
1044
1072
|
function Companion_getInstance_1() {
|
|
@@ -1049,109 +1077,109 @@
|
|
|
1049
1077
|
function $serializer_1() {
|
|
1050
1078
|
$serializer_instance_1 = this;
|
|
1051
1079
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.RecipeV3', this, 23);
|
|
1052
|
-
tmp0_serialDesc.
|
|
1053
|
-
tmp0_serialDesc.
|
|
1054
|
-
tmp0_serialDesc.
|
|
1055
|
-
tmp0_serialDesc.
|
|
1056
|
-
tmp0_serialDesc.
|
|
1057
|
-
tmp0_serialDesc.
|
|
1058
|
-
tmp0_serialDesc.
|
|
1059
|
-
tmp0_serialDesc.
|
|
1060
|
-
tmp0_serialDesc.
|
|
1061
|
-
tmp0_serialDesc.
|
|
1062
|
-
tmp0_serialDesc.
|
|
1063
|
-
tmp0_serialDesc.
|
|
1064
|
-
tmp0_serialDesc.
|
|
1065
|
-
tmp0_serialDesc.
|
|
1066
|
-
tmp0_serialDesc.
|
|
1067
|
-
tmp0_serialDesc.
|
|
1068
|
-
tmp0_serialDesc.
|
|
1069
|
-
tmp0_serialDesc.
|
|
1070
|
-
tmp0_serialDesc.
|
|
1071
|
-
tmp0_serialDesc.
|
|
1072
|
-
tmp0_serialDesc.
|
|
1073
|
-
tmp0_serialDesc.
|
|
1074
|
-
tmp0_serialDesc.
|
|
1075
|
-
this.
|
|
1076
|
-
}
|
|
1077
|
-
protoOf($serializer_1).
|
|
1078
|
-
var tmp0_desc = this.
|
|
1079
|
-
var tmp1_output = encoder.
|
|
1080
|
-
var tmp2_cached = Companion_getInstance_1().
|
|
1081
|
-
if (tmp1_output.
|
|
1082
|
-
tmp1_output.
|
|
1080
|
+
tmp0_serialDesc.zs('bookCredit', true);
|
|
1081
|
+
tmp0_serialDesc.zs('byline', true);
|
|
1082
|
+
tmp0_serialDesc.zs('canonicalArticle', true);
|
|
1083
|
+
tmp0_serialDesc.zs('celebrationIds', true);
|
|
1084
|
+
tmp0_serialDesc.zs('commerceCtas', true);
|
|
1085
|
+
tmp0_serialDesc.zs('composerId', true);
|
|
1086
|
+
tmp0_serialDesc.zs('contributors', true);
|
|
1087
|
+
tmp0_serialDesc.zs('cuisineIds', true);
|
|
1088
|
+
tmp0_serialDesc.zs('description', true);
|
|
1089
|
+
tmp0_serialDesc.zs('difficultyLevel', true);
|
|
1090
|
+
tmp0_serialDesc.zs('featuredImage', true);
|
|
1091
|
+
tmp0_serialDesc.zs('id', false);
|
|
1092
|
+
tmp0_serialDesc.zs('ingredients', true);
|
|
1093
|
+
tmp0_serialDesc.zs('instructions', true);
|
|
1094
|
+
tmp0_serialDesc.zs('isAppReady', true);
|
|
1095
|
+
tmp0_serialDesc.zs('mealTypeIds', true);
|
|
1096
|
+
tmp0_serialDesc.zs('serves', true);
|
|
1097
|
+
tmp0_serialDesc.zs('suitableForDietIds', true);
|
|
1098
|
+
tmp0_serialDesc.zs('techniquesUsedIds', true);
|
|
1099
|
+
tmp0_serialDesc.zs('timings', true);
|
|
1100
|
+
tmp0_serialDesc.zs('title', true);
|
|
1101
|
+
tmp0_serialDesc.zs('utensilsAndApplianceIds', true);
|
|
1102
|
+
tmp0_serialDesc.zs('webPublicationDate', true);
|
|
1103
|
+
this.m1i_1 = tmp0_serialDesc;
|
|
1104
|
+
}
|
|
1105
|
+
protoOf($serializer_1).n1i = function (encoder, value) {
|
|
1106
|
+
var tmp0_desc = this.m1i_1;
|
|
1107
|
+
var tmp1_output = encoder.ql(tmp0_desc);
|
|
1108
|
+
var tmp2_cached = Companion_getInstance_1().l1i_1;
|
|
1109
|
+
if (tmp1_output.mn(tmp0_desc, 0) ? true : !(value.k1g_1 == null)) {
|
|
1110
|
+
tmp1_output.in(tmp0_desc, 0, StringSerializer_getInstance(), value.k1g_1);
|
|
1083
1111
|
}
|
|
1084
|
-
if (tmp1_output.
|
|
1085
|
-
tmp1_output.
|
|
1112
|
+
if (tmp1_output.mn(tmp0_desc, 1) ? true : !(value.l1g_1 == null)) {
|
|
1113
|
+
tmp1_output.in(tmp0_desc, 1, tmp2_cached[1].g2(), value.l1g_1);
|
|
1086
1114
|
}
|
|
1087
|
-
if (tmp1_output.
|
|
1088
|
-
tmp1_output.
|
|
1115
|
+
if (tmp1_output.mn(tmp0_desc, 2) ? true : !(value.m1g_1 == null)) {
|
|
1116
|
+
tmp1_output.in(tmp0_desc, 2, StringSerializer_getInstance(), value.m1g_1);
|
|
1089
1117
|
}
|
|
1090
|
-
if (tmp1_output.
|
|
1091
|
-
tmp1_output.
|
|
1118
|
+
if (tmp1_output.mn(tmp0_desc, 3) ? true : !(value.n1g_1 == null)) {
|
|
1119
|
+
tmp1_output.in(tmp0_desc, 3, tmp2_cached[3].g2(), value.n1g_1);
|
|
1092
1120
|
}
|
|
1093
|
-
if (tmp1_output.
|
|
1094
|
-
tmp1_output.
|
|
1121
|
+
if (tmp1_output.mn(tmp0_desc, 4) ? true : !(value.o1g_1 == null)) {
|
|
1122
|
+
tmp1_output.in(tmp0_desc, 4, tmp2_cached[4].g2(), value.o1g_1);
|
|
1095
1123
|
}
|
|
1096
|
-
if (tmp1_output.
|
|
1097
|
-
tmp1_output.
|
|
1124
|
+
if (tmp1_output.mn(tmp0_desc, 5) ? true : !(value.p1g_1 == null)) {
|
|
1125
|
+
tmp1_output.in(tmp0_desc, 5, StringSerializer_getInstance(), value.p1g_1);
|
|
1098
1126
|
}
|
|
1099
|
-
if (tmp1_output.
|
|
1100
|
-
tmp1_output.
|
|
1127
|
+
if (tmp1_output.mn(tmp0_desc, 6) ? true : !(value.q1g_1 == null)) {
|
|
1128
|
+
tmp1_output.in(tmp0_desc, 6, tmp2_cached[6].g2(), value.q1g_1);
|
|
1101
1129
|
}
|
|
1102
|
-
if (tmp1_output.
|
|
1103
|
-
tmp1_output.
|
|
1130
|
+
if (tmp1_output.mn(tmp0_desc, 7) ? true : !(value.r1g_1 == null)) {
|
|
1131
|
+
tmp1_output.in(tmp0_desc, 7, tmp2_cached[7].g2(), value.r1g_1);
|
|
1104
1132
|
}
|
|
1105
|
-
if (tmp1_output.
|
|
1106
|
-
tmp1_output.
|
|
1133
|
+
if (tmp1_output.mn(tmp0_desc, 8) ? true : !(value.s1g_1 == null)) {
|
|
1134
|
+
tmp1_output.in(tmp0_desc, 8, StringSerializer_getInstance(), value.s1g_1);
|
|
1107
1135
|
}
|
|
1108
|
-
if (tmp1_output.
|
|
1109
|
-
tmp1_output.
|
|
1136
|
+
if (tmp1_output.mn(tmp0_desc, 9) ? true : !(value.t1g_1 == null)) {
|
|
1137
|
+
tmp1_output.in(tmp0_desc, 9, StringSerializer_getInstance(), value.t1g_1);
|
|
1110
1138
|
}
|
|
1111
|
-
if (tmp1_output.
|
|
1112
|
-
tmp1_output.
|
|
1139
|
+
if (tmp1_output.mn(tmp0_desc, 10) ? true : !(value.u1g_1 == null)) {
|
|
1140
|
+
tmp1_output.in(tmp0_desc, 10, $serializer_getInstance_3(), value.u1g_1);
|
|
1113
1141
|
}
|
|
1114
|
-
tmp1_output.
|
|
1115
|
-
if (tmp1_output.
|
|
1116
|
-
tmp1_output.
|
|
1142
|
+
tmp1_output.en(tmp0_desc, 11, value.v1g_1);
|
|
1143
|
+
if (tmp1_output.mn(tmp0_desc, 12) ? true : !(value.w1g_1 == null)) {
|
|
1144
|
+
tmp1_output.in(tmp0_desc, 12, tmp2_cached[12].g2(), value.w1g_1);
|
|
1117
1145
|
}
|
|
1118
|
-
if (tmp1_output.
|
|
1119
|
-
tmp1_output.
|
|
1146
|
+
if (tmp1_output.mn(tmp0_desc, 13) ? true : !(value.x1g_1 == null)) {
|
|
1147
|
+
tmp1_output.in(tmp0_desc, 13, tmp2_cached[13].g2(), value.x1g_1);
|
|
1120
1148
|
}
|
|
1121
|
-
if (tmp1_output.
|
|
1122
|
-
tmp1_output.
|
|
1149
|
+
if (tmp1_output.mn(tmp0_desc, 14) ? true : !(value.y1g_1 == null)) {
|
|
1150
|
+
tmp1_output.in(tmp0_desc, 14, BooleanSerializer_getInstance(), value.y1g_1);
|
|
1123
1151
|
}
|
|
1124
|
-
if (tmp1_output.
|
|
1125
|
-
tmp1_output.
|
|
1152
|
+
if (tmp1_output.mn(tmp0_desc, 15) ? true : !(value.z1g_1 == null)) {
|
|
1153
|
+
tmp1_output.in(tmp0_desc, 15, tmp2_cached[15].g2(), value.z1g_1);
|
|
1126
1154
|
}
|
|
1127
|
-
if (tmp1_output.
|
|
1128
|
-
tmp1_output.
|
|
1155
|
+
if (tmp1_output.mn(tmp0_desc, 16) ? true : !(value.a1h_1 == null)) {
|
|
1156
|
+
tmp1_output.in(tmp0_desc, 16, tmp2_cached[16].g2(), value.a1h_1);
|
|
1129
1157
|
}
|
|
1130
|
-
if (tmp1_output.
|
|
1131
|
-
tmp1_output.
|
|
1158
|
+
if (tmp1_output.mn(tmp0_desc, 17) ? true : !(value.b1h_1 == null)) {
|
|
1159
|
+
tmp1_output.in(tmp0_desc, 17, tmp2_cached[17].g2(), value.b1h_1);
|
|
1132
1160
|
}
|
|
1133
|
-
if (tmp1_output.
|
|
1134
|
-
tmp1_output.
|
|
1161
|
+
if (tmp1_output.mn(tmp0_desc, 18) ? true : !(value.c1h_1 == null)) {
|
|
1162
|
+
tmp1_output.in(tmp0_desc, 18, tmp2_cached[18].g2(), value.c1h_1);
|
|
1135
1163
|
}
|
|
1136
|
-
if (tmp1_output.
|
|
1137
|
-
tmp1_output.
|
|
1164
|
+
if (tmp1_output.mn(tmp0_desc, 19) ? true : !(value.d1h_1 == null)) {
|
|
1165
|
+
tmp1_output.in(tmp0_desc, 19, tmp2_cached[19].g2(), value.d1h_1);
|
|
1138
1166
|
}
|
|
1139
|
-
if (tmp1_output.
|
|
1140
|
-
tmp1_output.
|
|
1167
|
+
if (tmp1_output.mn(tmp0_desc, 20) ? true : !(value.e1h_1 == null)) {
|
|
1168
|
+
tmp1_output.in(tmp0_desc, 20, StringSerializer_getInstance(), value.e1h_1);
|
|
1141
1169
|
}
|
|
1142
|
-
if (tmp1_output.
|
|
1143
|
-
tmp1_output.
|
|
1170
|
+
if (tmp1_output.mn(tmp0_desc, 21) ? true : !(value.f1h_1 == null)) {
|
|
1171
|
+
tmp1_output.in(tmp0_desc, 21, tmp2_cached[21].g2(), value.f1h_1);
|
|
1144
1172
|
}
|
|
1145
|
-
if (tmp1_output.
|
|
1146
|
-
tmp1_output.
|
|
1173
|
+
if (tmp1_output.mn(tmp0_desc, 22) ? true : !(value.g1h_1 == null)) {
|
|
1174
|
+
tmp1_output.in(tmp0_desc, 22, StringSerializer_getInstance(), value.g1h_1);
|
|
1147
1175
|
}
|
|
1148
|
-
tmp1_output.
|
|
1176
|
+
tmp1_output.rl(tmp0_desc);
|
|
1149
1177
|
};
|
|
1150
|
-
protoOf($serializer_1).
|
|
1151
|
-
return this.
|
|
1178
|
+
protoOf($serializer_1).ti = function (encoder, value) {
|
|
1179
|
+
return this.n1i(encoder, value instanceof RecipeV3 ? value : THROW_CCE());
|
|
1152
1180
|
};
|
|
1153
|
-
protoOf($serializer_1).
|
|
1154
|
-
var tmp0_desc = this.
|
|
1181
|
+
protoOf($serializer_1).ui = function (decoder) {
|
|
1182
|
+
var tmp0_desc = this.m1i_1;
|
|
1155
1183
|
var tmp1_flag = true;
|
|
1156
1184
|
var tmp2_index = 0;
|
|
1157
1185
|
var tmp3_bitMask0 = 0;
|
|
@@ -1178,170 +1206,170 @@
|
|
|
1178
1206
|
var tmp24_local20 = null;
|
|
1179
1207
|
var tmp25_local21 = null;
|
|
1180
1208
|
var tmp26_local22 = null;
|
|
1181
|
-
var tmp27_input = decoder.
|
|
1182
|
-
var tmp28_cached = Companion_getInstance_1().
|
|
1183
|
-
if (tmp27_input.
|
|
1184
|
-
tmp4_local0 = tmp27_input.
|
|
1209
|
+
var tmp27_input = decoder.ql(tmp0_desc);
|
|
1210
|
+
var tmp28_cached = Companion_getInstance_1().l1i_1;
|
|
1211
|
+
if (tmp27_input.gm()) {
|
|
1212
|
+
tmp4_local0 = tmp27_input.em(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1185
1213
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1186
|
-
tmp5_local1 = tmp27_input.
|
|
1214
|
+
tmp5_local1 = tmp27_input.em(tmp0_desc, 1, tmp28_cached[1].g2(), tmp5_local1);
|
|
1187
1215
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1188
|
-
tmp6_local2 = tmp27_input.
|
|
1216
|
+
tmp6_local2 = tmp27_input.em(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1189
1217
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1190
|
-
tmp7_local3 = tmp27_input.
|
|
1218
|
+
tmp7_local3 = tmp27_input.em(tmp0_desc, 3, tmp28_cached[3].g2(), tmp7_local3);
|
|
1191
1219
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1192
|
-
tmp8_local4 = tmp27_input.
|
|
1220
|
+
tmp8_local4 = tmp27_input.em(tmp0_desc, 4, tmp28_cached[4].g2(), tmp8_local4);
|
|
1193
1221
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1194
|
-
tmp9_local5 = tmp27_input.
|
|
1222
|
+
tmp9_local5 = tmp27_input.em(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1195
1223
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1196
|
-
tmp10_local6 = tmp27_input.
|
|
1224
|
+
tmp10_local6 = tmp27_input.em(tmp0_desc, 6, tmp28_cached[6].g2(), tmp10_local6);
|
|
1197
1225
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1198
|
-
tmp11_local7 = tmp27_input.
|
|
1226
|
+
tmp11_local7 = tmp27_input.em(tmp0_desc, 7, tmp28_cached[7].g2(), tmp11_local7);
|
|
1199
1227
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1200
|
-
tmp12_local8 = tmp27_input.
|
|
1228
|
+
tmp12_local8 = tmp27_input.em(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
1201
1229
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
1202
|
-
tmp13_local9 = tmp27_input.
|
|
1230
|
+
tmp13_local9 = tmp27_input.em(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
|
|
1203
1231
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
1204
|
-
tmp14_local10 = tmp27_input.
|
|
1232
|
+
tmp14_local10 = tmp27_input.em(tmp0_desc, 10, $serializer_getInstance_3(), tmp14_local10);
|
|
1205
1233
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
1206
|
-
tmp15_local11 = tmp27_input.
|
|
1234
|
+
tmp15_local11 = tmp27_input.am(tmp0_desc, 11);
|
|
1207
1235
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
1208
|
-
tmp16_local12 = tmp27_input.
|
|
1236
|
+
tmp16_local12 = tmp27_input.em(tmp0_desc, 12, tmp28_cached[12].g2(), tmp16_local12);
|
|
1209
1237
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
1210
|
-
tmp17_local13 = tmp27_input.
|
|
1238
|
+
tmp17_local13 = tmp27_input.em(tmp0_desc, 13, tmp28_cached[13].g2(), tmp17_local13);
|
|
1211
1239
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
1212
|
-
tmp18_local14 = tmp27_input.
|
|
1240
|
+
tmp18_local14 = tmp27_input.em(tmp0_desc, 14, BooleanSerializer_getInstance(), tmp18_local14);
|
|
1213
1241
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
1214
|
-
tmp19_local15 = tmp27_input.
|
|
1242
|
+
tmp19_local15 = tmp27_input.em(tmp0_desc, 15, tmp28_cached[15].g2(), tmp19_local15);
|
|
1215
1243
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
1216
|
-
tmp20_local16 = tmp27_input.
|
|
1244
|
+
tmp20_local16 = tmp27_input.em(tmp0_desc, 16, tmp28_cached[16].g2(), tmp20_local16);
|
|
1217
1245
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
1218
|
-
tmp21_local17 = tmp27_input.
|
|
1246
|
+
tmp21_local17 = tmp27_input.em(tmp0_desc, 17, tmp28_cached[17].g2(), tmp21_local17);
|
|
1219
1247
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
1220
|
-
tmp22_local18 = tmp27_input.
|
|
1248
|
+
tmp22_local18 = tmp27_input.em(tmp0_desc, 18, tmp28_cached[18].g2(), tmp22_local18);
|
|
1221
1249
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
1222
|
-
tmp23_local19 = tmp27_input.
|
|
1250
|
+
tmp23_local19 = tmp27_input.em(tmp0_desc, 19, tmp28_cached[19].g2(), tmp23_local19);
|
|
1223
1251
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
1224
|
-
tmp24_local20 = tmp27_input.
|
|
1252
|
+
tmp24_local20 = tmp27_input.em(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
|
|
1225
1253
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
1226
|
-
tmp25_local21 = tmp27_input.
|
|
1254
|
+
tmp25_local21 = tmp27_input.em(tmp0_desc, 21, tmp28_cached[21].g2(), tmp25_local21);
|
|
1227
1255
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
1228
|
-
tmp26_local22 = tmp27_input.
|
|
1256
|
+
tmp26_local22 = tmp27_input.em(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
|
|
1229
1257
|
tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
|
|
1230
1258
|
} else
|
|
1231
1259
|
while (tmp1_flag) {
|
|
1232
|
-
tmp2_index = tmp27_input.
|
|
1260
|
+
tmp2_index = tmp27_input.hm(tmp0_desc);
|
|
1233
1261
|
switch (tmp2_index) {
|
|
1234
1262
|
case -1:
|
|
1235
1263
|
tmp1_flag = false;
|
|
1236
1264
|
break;
|
|
1237
1265
|
case 0:
|
|
1238
|
-
tmp4_local0 = tmp27_input.
|
|
1266
|
+
tmp4_local0 = tmp27_input.em(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1239
1267
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1240
1268
|
break;
|
|
1241
1269
|
case 1:
|
|
1242
|
-
tmp5_local1 = tmp27_input.
|
|
1270
|
+
tmp5_local1 = tmp27_input.em(tmp0_desc, 1, tmp28_cached[1].g2(), tmp5_local1);
|
|
1243
1271
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1244
1272
|
break;
|
|
1245
1273
|
case 2:
|
|
1246
|
-
tmp6_local2 = tmp27_input.
|
|
1274
|
+
tmp6_local2 = tmp27_input.em(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1247
1275
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1248
1276
|
break;
|
|
1249
1277
|
case 3:
|
|
1250
|
-
tmp7_local3 = tmp27_input.
|
|
1278
|
+
tmp7_local3 = tmp27_input.em(tmp0_desc, 3, tmp28_cached[3].g2(), tmp7_local3);
|
|
1251
1279
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1252
1280
|
break;
|
|
1253
1281
|
case 4:
|
|
1254
|
-
tmp8_local4 = tmp27_input.
|
|
1282
|
+
tmp8_local4 = tmp27_input.em(tmp0_desc, 4, tmp28_cached[4].g2(), tmp8_local4);
|
|
1255
1283
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1256
1284
|
break;
|
|
1257
1285
|
case 5:
|
|
1258
|
-
tmp9_local5 = tmp27_input.
|
|
1286
|
+
tmp9_local5 = tmp27_input.em(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1259
1287
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1260
1288
|
break;
|
|
1261
1289
|
case 6:
|
|
1262
|
-
tmp10_local6 = tmp27_input.
|
|
1290
|
+
tmp10_local6 = tmp27_input.em(tmp0_desc, 6, tmp28_cached[6].g2(), tmp10_local6);
|
|
1263
1291
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1264
1292
|
break;
|
|
1265
1293
|
case 7:
|
|
1266
|
-
tmp11_local7 = tmp27_input.
|
|
1294
|
+
tmp11_local7 = tmp27_input.em(tmp0_desc, 7, tmp28_cached[7].g2(), tmp11_local7);
|
|
1267
1295
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1268
1296
|
break;
|
|
1269
1297
|
case 8:
|
|
1270
|
-
tmp12_local8 = tmp27_input.
|
|
1298
|
+
tmp12_local8 = tmp27_input.em(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
1271
1299
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
1272
1300
|
break;
|
|
1273
1301
|
case 9:
|
|
1274
|
-
tmp13_local9 = tmp27_input.
|
|
1302
|
+
tmp13_local9 = tmp27_input.em(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
|
|
1275
1303
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
1276
1304
|
break;
|
|
1277
1305
|
case 10:
|
|
1278
|
-
tmp14_local10 = tmp27_input.
|
|
1306
|
+
tmp14_local10 = tmp27_input.em(tmp0_desc, 10, $serializer_getInstance_3(), tmp14_local10);
|
|
1279
1307
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
1280
1308
|
break;
|
|
1281
1309
|
case 11:
|
|
1282
|
-
tmp15_local11 = tmp27_input.
|
|
1310
|
+
tmp15_local11 = tmp27_input.am(tmp0_desc, 11);
|
|
1283
1311
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
1284
1312
|
break;
|
|
1285
1313
|
case 12:
|
|
1286
|
-
tmp16_local12 = tmp27_input.
|
|
1314
|
+
tmp16_local12 = tmp27_input.em(tmp0_desc, 12, tmp28_cached[12].g2(), tmp16_local12);
|
|
1287
1315
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
1288
1316
|
break;
|
|
1289
1317
|
case 13:
|
|
1290
|
-
tmp17_local13 = tmp27_input.
|
|
1318
|
+
tmp17_local13 = tmp27_input.em(tmp0_desc, 13, tmp28_cached[13].g2(), tmp17_local13);
|
|
1291
1319
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
1292
1320
|
break;
|
|
1293
1321
|
case 14:
|
|
1294
|
-
tmp18_local14 = tmp27_input.
|
|
1322
|
+
tmp18_local14 = tmp27_input.em(tmp0_desc, 14, BooleanSerializer_getInstance(), tmp18_local14);
|
|
1295
1323
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
1296
1324
|
break;
|
|
1297
1325
|
case 15:
|
|
1298
|
-
tmp19_local15 = tmp27_input.
|
|
1326
|
+
tmp19_local15 = tmp27_input.em(tmp0_desc, 15, tmp28_cached[15].g2(), tmp19_local15);
|
|
1299
1327
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
1300
1328
|
break;
|
|
1301
1329
|
case 16:
|
|
1302
|
-
tmp20_local16 = tmp27_input.
|
|
1330
|
+
tmp20_local16 = tmp27_input.em(tmp0_desc, 16, tmp28_cached[16].g2(), tmp20_local16);
|
|
1303
1331
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
1304
1332
|
break;
|
|
1305
1333
|
case 17:
|
|
1306
|
-
tmp21_local17 = tmp27_input.
|
|
1334
|
+
tmp21_local17 = tmp27_input.em(tmp0_desc, 17, tmp28_cached[17].g2(), tmp21_local17);
|
|
1307
1335
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
1308
1336
|
break;
|
|
1309
1337
|
case 18:
|
|
1310
|
-
tmp22_local18 = tmp27_input.
|
|
1338
|
+
tmp22_local18 = tmp27_input.em(tmp0_desc, 18, tmp28_cached[18].g2(), tmp22_local18);
|
|
1311
1339
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
1312
1340
|
break;
|
|
1313
1341
|
case 19:
|
|
1314
|
-
tmp23_local19 = tmp27_input.
|
|
1342
|
+
tmp23_local19 = tmp27_input.em(tmp0_desc, 19, tmp28_cached[19].g2(), tmp23_local19);
|
|
1315
1343
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
1316
1344
|
break;
|
|
1317
1345
|
case 20:
|
|
1318
|
-
tmp24_local20 = tmp27_input.
|
|
1346
|
+
tmp24_local20 = tmp27_input.em(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
|
|
1319
1347
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
1320
1348
|
break;
|
|
1321
1349
|
case 21:
|
|
1322
|
-
tmp25_local21 = tmp27_input.
|
|
1350
|
+
tmp25_local21 = tmp27_input.em(tmp0_desc, 21, tmp28_cached[21].g2(), tmp25_local21);
|
|
1323
1351
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
1324
1352
|
break;
|
|
1325
1353
|
case 22:
|
|
1326
|
-
tmp26_local22 = tmp27_input.
|
|
1354
|
+
tmp26_local22 = tmp27_input.em(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
|
|
1327
1355
|
tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
|
|
1328
1356
|
break;
|
|
1329
1357
|
default:
|
|
1330
1358
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1331
1359
|
}
|
|
1332
1360
|
}
|
|
1333
|
-
tmp27_input.
|
|
1361
|
+
tmp27_input.rl(tmp0_desc);
|
|
1334
1362
|
return RecipeV3_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, null);
|
|
1335
1363
|
};
|
|
1336
|
-
protoOf($serializer_1).
|
|
1337
|
-
return this.
|
|
1364
|
+
protoOf($serializer_1).si = function () {
|
|
1365
|
+
return this.m1i_1;
|
|
1338
1366
|
};
|
|
1339
|
-
protoOf($serializer_1).
|
|
1340
|
-
var tmp0_cached = Companion_getInstance_1().
|
|
1367
|
+
protoOf($serializer_1).bt = function () {
|
|
1368
|
+
var tmp0_cached = Companion_getInstance_1().l1i_1;
|
|
1341
1369
|
// Inline function 'kotlin.arrayOf' call
|
|
1342
1370
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1343
1371
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1344
|
-
return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1].
|
|
1372
|
+
return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1].g2()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[3].g2()), get_nullable(tmp0_cached[4].g2()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[6].g2()), get_nullable(tmp0_cached[7].g2()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_3()), StringSerializer_getInstance(), get_nullable(tmp0_cached[12].g2()), get_nullable(tmp0_cached[13].g2()), get_nullable(BooleanSerializer_getInstance()), get_nullable(tmp0_cached[15].g2()), get_nullable(tmp0_cached[16].g2()), get_nullable(tmp0_cached[17].g2()), get_nullable(tmp0_cached[18].g2()), get_nullable(tmp0_cached[19].g2()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[21].g2()), get_nullable(StringSerializer_getInstance())];
|
|
1345
1373
|
};
|
|
1346
1374
|
var $serializer_instance_1;
|
|
1347
1375
|
function $serializer_getInstance_1() {
|
|
@@ -1351,97 +1379,97 @@
|
|
|
1351
1379
|
}
|
|
1352
1380
|
function RecipeV3_init_$Init$(seen0, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, serializationConstructorMarker, $this) {
|
|
1353
1381
|
if (!(2048 === (2048 & seen0))) {
|
|
1354
|
-
throwMissingFieldException(seen0, 2048, $serializer_getInstance_1().
|
|
1382
|
+
throwMissingFieldException(seen0, 2048, $serializer_getInstance_1().m1i_1);
|
|
1355
1383
|
}
|
|
1356
1384
|
if (0 === (seen0 & 1))
|
|
1357
|
-
$this.
|
|
1385
|
+
$this.k1g_1 = null;
|
|
1358
1386
|
else
|
|
1359
|
-
$this.
|
|
1387
|
+
$this.k1g_1 = bookCredit;
|
|
1360
1388
|
if (0 === (seen0 & 2))
|
|
1361
|
-
$this.
|
|
1389
|
+
$this.l1g_1 = null;
|
|
1362
1390
|
else
|
|
1363
|
-
$this.
|
|
1391
|
+
$this.l1g_1 = byline;
|
|
1364
1392
|
if (0 === (seen0 & 4))
|
|
1365
|
-
$this.
|
|
1393
|
+
$this.m1g_1 = null;
|
|
1366
1394
|
else
|
|
1367
|
-
$this.
|
|
1395
|
+
$this.m1g_1 = canonicalArticle;
|
|
1368
1396
|
if (0 === (seen0 & 8))
|
|
1369
|
-
$this.
|
|
1397
|
+
$this.n1g_1 = null;
|
|
1370
1398
|
else
|
|
1371
|
-
$this.
|
|
1399
|
+
$this.n1g_1 = celebrationIds;
|
|
1372
1400
|
if (0 === (seen0 & 16))
|
|
1373
|
-
$this.
|
|
1401
|
+
$this.o1g_1 = null;
|
|
1374
1402
|
else
|
|
1375
|
-
$this.
|
|
1403
|
+
$this.o1g_1 = commerceCtas;
|
|
1376
1404
|
if (0 === (seen0 & 32))
|
|
1377
|
-
$this.
|
|
1405
|
+
$this.p1g_1 = null;
|
|
1378
1406
|
else
|
|
1379
|
-
$this.
|
|
1407
|
+
$this.p1g_1 = composerId;
|
|
1380
1408
|
if (0 === (seen0 & 64))
|
|
1381
|
-
$this.
|
|
1409
|
+
$this.q1g_1 = null;
|
|
1382
1410
|
else
|
|
1383
|
-
$this.
|
|
1411
|
+
$this.q1g_1 = contributors;
|
|
1384
1412
|
if (0 === (seen0 & 128))
|
|
1385
|
-
$this.
|
|
1413
|
+
$this.r1g_1 = null;
|
|
1386
1414
|
else
|
|
1387
|
-
$this.
|
|
1415
|
+
$this.r1g_1 = cuisineIds;
|
|
1388
1416
|
if (0 === (seen0 & 256))
|
|
1389
|
-
$this.
|
|
1417
|
+
$this.s1g_1 = null;
|
|
1390
1418
|
else
|
|
1391
|
-
$this.
|
|
1419
|
+
$this.s1g_1 = description;
|
|
1392
1420
|
if (0 === (seen0 & 512))
|
|
1393
|
-
$this.
|
|
1421
|
+
$this.t1g_1 = null;
|
|
1394
1422
|
else
|
|
1395
|
-
$this.
|
|
1423
|
+
$this.t1g_1 = difficultyLevel;
|
|
1396
1424
|
if (0 === (seen0 & 1024))
|
|
1397
|
-
$this.
|
|
1425
|
+
$this.u1g_1 = null;
|
|
1398
1426
|
else
|
|
1399
|
-
$this.
|
|
1400
|
-
$this.
|
|
1427
|
+
$this.u1g_1 = featuredImage;
|
|
1428
|
+
$this.v1g_1 = id;
|
|
1401
1429
|
if (0 === (seen0 & 4096))
|
|
1402
|
-
$this.
|
|
1430
|
+
$this.w1g_1 = null;
|
|
1403
1431
|
else
|
|
1404
|
-
$this.
|
|
1432
|
+
$this.w1g_1 = ingredients;
|
|
1405
1433
|
if (0 === (seen0 & 8192))
|
|
1406
|
-
$this.
|
|
1434
|
+
$this.x1g_1 = null;
|
|
1407
1435
|
else
|
|
1408
|
-
$this.
|
|
1436
|
+
$this.x1g_1 = instructions;
|
|
1409
1437
|
if (0 === (seen0 & 16384))
|
|
1410
|
-
$this.
|
|
1438
|
+
$this.y1g_1 = null;
|
|
1411
1439
|
else
|
|
1412
|
-
$this.
|
|
1440
|
+
$this.y1g_1 = isAppReady;
|
|
1413
1441
|
if (0 === (seen0 & 32768))
|
|
1414
|
-
$this.
|
|
1442
|
+
$this.z1g_1 = null;
|
|
1415
1443
|
else
|
|
1416
|
-
$this.
|
|
1444
|
+
$this.z1g_1 = mealTypeIds;
|
|
1417
1445
|
if (0 === (seen0 & 65536))
|
|
1418
|
-
$this.
|
|
1446
|
+
$this.a1h_1 = null;
|
|
1419
1447
|
else
|
|
1420
|
-
$this.
|
|
1448
|
+
$this.a1h_1 = serves;
|
|
1421
1449
|
if (0 === (seen0 & 131072))
|
|
1422
|
-
$this.
|
|
1450
|
+
$this.b1h_1 = null;
|
|
1423
1451
|
else
|
|
1424
|
-
$this.
|
|
1452
|
+
$this.b1h_1 = suitableForDietIds;
|
|
1425
1453
|
if (0 === (seen0 & 262144))
|
|
1426
|
-
$this.
|
|
1454
|
+
$this.c1h_1 = null;
|
|
1427
1455
|
else
|
|
1428
|
-
$this.
|
|
1456
|
+
$this.c1h_1 = techniquesUsedIds;
|
|
1429
1457
|
if (0 === (seen0 & 524288))
|
|
1430
|
-
$this.
|
|
1458
|
+
$this.d1h_1 = null;
|
|
1431
1459
|
else
|
|
1432
|
-
$this.
|
|
1460
|
+
$this.d1h_1 = timings;
|
|
1433
1461
|
if (0 === (seen0 & 1048576))
|
|
1434
|
-
$this.
|
|
1462
|
+
$this.e1h_1 = null;
|
|
1435
1463
|
else
|
|
1436
|
-
$this.
|
|
1464
|
+
$this.e1h_1 = title;
|
|
1437
1465
|
if (0 === (seen0 & 2097152))
|
|
1438
|
-
$this.
|
|
1466
|
+
$this.f1h_1 = null;
|
|
1439
1467
|
else
|
|
1440
|
-
$this.
|
|
1468
|
+
$this.f1h_1 = utensilsAndApplianceIds;
|
|
1441
1469
|
if (0 === (seen0 & 4194304))
|
|
1442
|
-
$this.
|
|
1470
|
+
$this.g1h_1 = null;
|
|
1443
1471
|
else
|
|
1444
|
-
$this.
|
|
1472
|
+
$this.g1h_1 = webPublicationDate;
|
|
1445
1473
|
return $this;
|
|
1446
1474
|
}
|
|
1447
1475
|
function RecipeV3_init_$Create$(seen0, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, serializationConstructorMarker) {
|
|
@@ -1471,86 +1499,86 @@
|
|
|
1471
1499
|
title = title === VOID ? null : title;
|
|
1472
1500
|
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? null : utensilsAndApplianceIds;
|
|
1473
1501
|
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
1474
|
-
this.
|
|
1475
|
-
this.
|
|
1476
|
-
this.
|
|
1477
|
-
this.
|
|
1478
|
-
this.
|
|
1479
|
-
this.
|
|
1480
|
-
this.
|
|
1481
|
-
this.
|
|
1482
|
-
this.
|
|
1483
|
-
this.
|
|
1484
|
-
this.
|
|
1485
|
-
this.
|
|
1486
|
-
this.
|
|
1487
|
-
this.
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1490
|
-
this.
|
|
1491
|
-
this.
|
|
1492
|
-
this.
|
|
1493
|
-
this.
|
|
1494
|
-
this.
|
|
1495
|
-
this.
|
|
1496
|
-
this.
|
|
1497
|
-
}
|
|
1498
|
-
protoOf(RecipeV3).
|
|
1502
|
+
this.k1g_1 = bookCredit;
|
|
1503
|
+
this.l1g_1 = byline;
|
|
1504
|
+
this.m1g_1 = canonicalArticle;
|
|
1505
|
+
this.n1g_1 = celebrationIds;
|
|
1506
|
+
this.o1g_1 = commerceCtas;
|
|
1507
|
+
this.p1g_1 = composerId;
|
|
1508
|
+
this.q1g_1 = contributors;
|
|
1509
|
+
this.r1g_1 = cuisineIds;
|
|
1510
|
+
this.s1g_1 = description;
|
|
1511
|
+
this.t1g_1 = difficultyLevel;
|
|
1512
|
+
this.u1g_1 = featuredImage;
|
|
1513
|
+
this.v1g_1 = id;
|
|
1514
|
+
this.w1g_1 = ingredients;
|
|
1515
|
+
this.x1g_1 = instructions;
|
|
1516
|
+
this.y1g_1 = isAppReady;
|
|
1517
|
+
this.z1g_1 = mealTypeIds;
|
|
1518
|
+
this.a1h_1 = serves;
|
|
1519
|
+
this.b1h_1 = suitableForDietIds;
|
|
1520
|
+
this.c1h_1 = techniquesUsedIds;
|
|
1521
|
+
this.d1h_1 = timings;
|
|
1522
|
+
this.e1h_1 = title;
|
|
1523
|
+
this.f1h_1 = utensilsAndApplianceIds;
|
|
1524
|
+
this.g1h_1 = webPublicationDate;
|
|
1525
|
+
}
|
|
1526
|
+
protoOf(RecipeV3).o1i = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) {
|
|
1499
1527
|
return new RecipeV3(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate);
|
|
1500
1528
|
};
|
|
1501
|
-
protoOf(RecipeV3).
|
|
1502
|
-
bookCredit = bookCredit === VOID ? this.
|
|
1503
|
-
byline = byline === VOID ? this.
|
|
1504
|
-
canonicalArticle = canonicalArticle === VOID ? this.
|
|
1505
|
-
celebrationIds = celebrationIds === VOID ? this.
|
|
1506
|
-
commerceCtas = commerceCtas === VOID ? this.
|
|
1507
|
-
composerId = composerId === VOID ? this.
|
|
1508
|
-
contributors = contributors === VOID ? this.
|
|
1509
|
-
cuisineIds = cuisineIds === VOID ? this.
|
|
1510
|
-
description = description === VOID ? this.
|
|
1511
|
-
difficultyLevel = difficultyLevel === VOID ? this.
|
|
1512
|
-
featuredImage = featuredImage === VOID ? this.
|
|
1513
|
-
id = id === VOID ? this.
|
|
1514
|
-
ingredients = ingredients === VOID ? this.
|
|
1515
|
-
instructions = instructions === VOID ? this.
|
|
1516
|
-
isAppReady = isAppReady === VOID ? this.
|
|
1517
|
-
mealTypeIds = mealTypeIds === VOID ? this.
|
|
1518
|
-
serves = serves === VOID ? this.
|
|
1519
|
-
suitableForDietIds = suitableForDietIds === VOID ? this.
|
|
1520
|
-
techniquesUsedIds = techniquesUsedIds === VOID ? this.
|
|
1521
|
-
timings = timings === VOID ? this.
|
|
1522
|
-
title = title === VOID ? this.
|
|
1523
|
-
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.
|
|
1524
|
-
webPublicationDate = webPublicationDate === VOID ? this.
|
|
1525
|
-
return $super === VOID ? this.
|
|
1529
|
+
protoOf(RecipeV3).y1h = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, $super) {
|
|
1530
|
+
bookCredit = bookCredit === VOID ? this.k1g_1 : bookCredit;
|
|
1531
|
+
byline = byline === VOID ? this.l1g_1 : byline;
|
|
1532
|
+
canonicalArticle = canonicalArticle === VOID ? this.m1g_1 : canonicalArticle;
|
|
1533
|
+
celebrationIds = celebrationIds === VOID ? this.n1g_1 : celebrationIds;
|
|
1534
|
+
commerceCtas = commerceCtas === VOID ? this.o1g_1 : commerceCtas;
|
|
1535
|
+
composerId = composerId === VOID ? this.p1g_1 : composerId;
|
|
1536
|
+
contributors = contributors === VOID ? this.q1g_1 : contributors;
|
|
1537
|
+
cuisineIds = cuisineIds === VOID ? this.r1g_1 : cuisineIds;
|
|
1538
|
+
description = description === VOID ? this.s1g_1 : description;
|
|
1539
|
+
difficultyLevel = difficultyLevel === VOID ? this.t1g_1 : difficultyLevel;
|
|
1540
|
+
featuredImage = featuredImage === VOID ? this.u1g_1 : featuredImage;
|
|
1541
|
+
id = id === VOID ? this.v1g_1 : id;
|
|
1542
|
+
ingredients = ingredients === VOID ? this.w1g_1 : ingredients;
|
|
1543
|
+
instructions = instructions === VOID ? this.x1g_1 : instructions;
|
|
1544
|
+
isAppReady = isAppReady === VOID ? this.y1g_1 : isAppReady;
|
|
1545
|
+
mealTypeIds = mealTypeIds === VOID ? this.z1g_1 : mealTypeIds;
|
|
1546
|
+
serves = serves === VOID ? this.a1h_1 : serves;
|
|
1547
|
+
suitableForDietIds = suitableForDietIds === VOID ? this.b1h_1 : suitableForDietIds;
|
|
1548
|
+
techniquesUsedIds = techniquesUsedIds === VOID ? this.c1h_1 : techniquesUsedIds;
|
|
1549
|
+
timings = timings === VOID ? this.d1h_1 : timings;
|
|
1550
|
+
title = title === VOID ? this.e1h_1 : title;
|
|
1551
|
+
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.f1h_1 : utensilsAndApplianceIds;
|
|
1552
|
+
webPublicationDate = webPublicationDate === VOID ? this.g1h_1 : webPublicationDate;
|
|
1553
|
+
return $super === VOID ? this.o1i(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) : $super.o1i.call(this, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate);
|
|
1526
1554
|
};
|
|
1527
1555
|
protoOf(RecipeV3).toString = function () {
|
|
1528
|
-
return 'RecipeV3(bookCredit=' + this.
|
|
1556
|
+
return 'RecipeV3(bookCredit=' + this.k1g_1 + ', byline=' + toString(this.l1g_1) + ', canonicalArticle=' + this.m1g_1 + ', celebrationIds=' + toString(this.n1g_1) + ', commerceCtas=' + toString(this.o1g_1) + ', composerId=' + this.p1g_1 + ', contributors=' + toString(this.q1g_1) + ', cuisineIds=' + toString(this.r1g_1) + ', description=' + this.s1g_1 + ', difficultyLevel=' + this.t1g_1 + ', featuredImage=' + toString(this.u1g_1) + ', id=' + this.v1g_1 + ', ingredients=' + toString(this.w1g_1) + ', instructions=' + toString(this.x1g_1) + ', isAppReady=' + this.y1g_1 + ', mealTypeIds=' + toString(this.z1g_1) + ', serves=' + toString(this.a1h_1) + ', suitableForDietIds=' + toString(this.b1h_1) + ', techniquesUsedIds=' + toString(this.c1h_1) + ', timings=' + toString(this.d1h_1) + ', title=' + this.e1h_1 + ', utensilsAndApplianceIds=' + toString(this.f1h_1) + ', webPublicationDate=' + this.g1h_1 + ')';
|
|
1529
1557
|
};
|
|
1530
1558
|
protoOf(RecipeV3).hashCode = function () {
|
|
1531
|
-
var result = this.
|
|
1532
|
-
result = imul(result, 31) + (this.
|
|
1533
|
-
result = imul(result, 31) + (this.
|
|
1534
|
-
result = imul(result, 31) + (this.
|
|
1535
|
-
result = imul(result, 31) + (this.
|
|
1536
|
-
result = imul(result, 31) + (this.
|
|
1537
|
-
result = imul(result, 31) + (this.
|
|
1538
|
-
result = imul(result, 31) + (this.
|
|
1539
|
-
result = imul(result, 31) + (this.
|
|
1540
|
-
result = imul(result, 31) + (this.
|
|
1541
|
-
result = imul(result, 31) + (this.
|
|
1542
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1543
|
-
result = imul(result, 31) + (this.
|
|
1544
|
-
result = imul(result, 31) + (this.
|
|
1545
|
-
result = imul(result, 31) + (this.
|
|
1546
|
-
result = imul(result, 31) + (this.
|
|
1547
|
-
result = imul(result, 31) + (this.
|
|
1548
|
-
result = imul(result, 31) + (this.
|
|
1549
|
-
result = imul(result, 31) + (this.
|
|
1550
|
-
result = imul(result, 31) + (this.
|
|
1551
|
-
result = imul(result, 31) + (this.
|
|
1552
|
-
result = imul(result, 31) + (this.
|
|
1553
|
-
result = imul(result, 31) + (this.
|
|
1559
|
+
var result = this.k1g_1 == null ? 0 : getStringHashCode(this.k1g_1);
|
|
1560
|
+
result = imul(result, 31) + (this.l1g_1 == null ? 0 : hashCode(this.l1g_1)) | 0;
|
|
1561
|
+
result = imul(result, 31) + (this.m1g_1 == null ? 0 : getStringHashCode(this.m1g_1)) | 0;
|
|
1562
|
+
result = imul(result, 31) + (this.n1g_1 == null ? 0 : hashCode(this.n1g_1)) | 0;
|
|
1563
|
+
result = imul(result, 31) + (this.o1g_1 == null ? 0 : hashCode(this.o1g_1)) | 0;
|
|
1564
|
+
result = imul(result, 31) + (this.p1g_1 == null ? 0 : getStringHashCode(this.p1g_1)) | 0;
|
|
1565
|
+
result = imul(result, 31) + (this.q1g_1 == null ? 0 : hashCode(this.q1g_1)) | 0;
|
|
1566
|
+
result = imul(result, 31) + (this.r1g_1 == null ? 0 : hashCode(this.r1g_1)) | 0;
|
|
1567
|
+
result = imul(result, 31) + (this.s1g_1 == null ? 0 : getStringHashCode(this.s1g_1)) | 0;
|
|
1568
|
+
result = imul(result, 31) + (this.t1g_1 == null ? 0 : getStringHashCode(this.t1g_1)) | 0;
|
|
1569
|
+
result = imul(result, 31) + (this.u1g_1 == null ? 0 : this.u1g_1.hashCode()) | 0;
|
|
1570
|
+
result = imul(result, 31) + getStringHashCode(this.v1g_1) | 0;
|
|
1571
|
+
result = imul(result, 31) + (this.w1g_1 == null ? 0 : hashCode(this.w1g_1)) | 0;
|
|
1572
|
+
result = imul(result, 31) + (this.x1g_1 == null ? 0 : hashCode(this.x1g_1)) | 0;
|
|
1573
|
+
result = imul(result, 31) + (this.y1g_1 == null ? 0 : getBooleanHashCode(this.y1g_1)) | 0;
|
|
1574
|
+
result = imul(result, 31) + (this.z1g_1 == null ? 0 : hashCode(this.z1g_1)) | 0;
|
|
1575
|
+
result = imul(result, 31) + (this.a1h_1 == null ? 0 : hashCode(this.a1h_1)) | 0;
|
|
1576
|
+
result = imul(result, 31) + (this.b1h_1 == null ? 0 : hashCode(this.b1h_1)) | 0;
|
|
1577
|
+
result = imul(result, 31) + (this.c1h_1 == null ? 0 : hashCode(this.c1h_1)) | 0;
|
|
1578
|
+
result = imul(result, 31) + (this.d1h_1 == null ? 0 : hashCode(this.d1h_1)) | 0;
|
|
1579
|
+
result = imul(result, 31) + (this.e1h_1 == null ? 0 : getStringHashCode(this.e1h_1)) | 0;
|
|
1580
|
+
result = imul(result, 31) + (this.f1h_1 == null ? 0 : hashCode(this.f1h_1)) | 0;
|
|
1581
|
+
result = imul(result, 31) + (this.g1h_1 == null ? 0 : getStringHashCode(this.g1h_1)) | 0;
|
|
1554
1582
|
return result;
|
|
1555
1583
|
};
|
|
1556
1584
|
protoOf(RecipeV3).equals = function (other) {
|
|
@@ -1558,119 +1586,119 @@
|
|
|
1558
1586
|
return true;
|
|
1559
1587
|
if (!(other instanceof RecipeV3))
|
|
1560
1588
|
return false;
|
|
1561
|
-
if (!(this.
|
|
1589
|
+
if (!(this.k1g_1 == other.k1g_1))
|
|
1562
1590
|
return false;
|
|
1563
|
-
if (!equals(this.
|
|
1591
|
+
if (!equals(this.l1g_1, other.l1g_1))
|
|
1564
1592
|
return false;
|
|
1565
|
-
if (!(this.
|
|
1593
|
+
if (!(this.m1g_1 == other.m1g_1))
|
|
1566
1594
|
return false;
|
|
1567
|
-
if (!equals(this.
|
|
1595
|
+
if (!equals(this.n1g_1, other.n1g_1))
|
|
1568
1596
|
return false;
|
|
1569
|
-
if (!equals(this.
|
|
1597
|
+
if (!equals(this.o1g_1, other.o1g_1))
|
|
1570
1598
|
return false;
|
|
1571
|
-
if (!(this.
|
|
1599
|
+
if (!(this.p1g_1 == other.p1g_1))
|
|
1572
1600
|
return false;
|
|
1573
|
-
if (!equals(this.
|
|
1601
|
+
if (!equals(this.q1g_1, other.q1g_1))
|
|
1574
1602
|
return false;
|
|
1575
|
-
if (!equals(this.
|
|
1603
|
+
if (!equals(this.r1g_1, other.r1g_1))
|
|
1576
1604
|
return false;
|
|
1577
|
-
if (!(this.
|
|
1605
|
+
if (!(this.s1g_1 == other.s1g_1))
|
|
1578
1606
|
return false;
|
|
1579
|
-
if (!(this.
|
|
1607
|
+
if (!(this.t1g_1 == other.t1g_1))
|
|
1580
1608
|
return false;
|
|
1581
|
-
if (!equals(this.
|
|
1609
|
+
if (!equals(this.u1g_1, other.u1g_1))
|
|
1582
1610
|
return false;
|
|
1583
|
-
if (!(this.
|
|
1611
|
+
if (!(this.v1g_1 === other.v1g_1))
|
|
1584
1612
|
return false;
|
|
1585
|
-
if (!equals(this.
|
|
1613
|
+
if (!equals(this.w1g_1, other.w1g_1))
|
|
1586
1614
|
return false;
|
|
1587
|
-
if (!equals(this.
|
|
1615
|
+
if (!equals(this.x1g_1, other.x1g_1))
|
|
1588
1616
|
return false;
|
|
1589
|
-
if (!(this.
|
|
1617
|
+
if (!(this.y1g_1 == other.y1g_1))
|
|
1590
1618
|
return false;
|
|
1591
|
-
if (!equals(this.
|
|
1619
|
+
if (!equals(this.z1g_1, other.z1g_1))
|
|
1592
1620
|
return false;
|
|
1593
|
-
if (!equals(this.
|
|
1621
|
+
if (!equals(this.a1h_1, other.a1h_1))
|
|
1594
1622
|
return false;
|
|
1595
|
-
if (!equals(this.
|
|
1623
|
+
if (!equals(this.b1h_1, other.b1h_1))
|
|
1596
1624
|
return false;
|
|
1597
|
-
if (!equals(this.
|
|
1625
|
+
if (!equals(this.c1h_1, other.c1h_1))
|
|
1598
1626
|
return false;
|
|
1599
|
-
if (!equals(this.
|
|
1627
|
+
if (!equals(this.d1h_1, other.d1h_1))
|
|
1600
1628
|
return false;
|
|
1601
|
-
if (!(this.
|
|
1629
|
+
if (!(this.e1h_1 == other.e1h_1))
|
|
1602
1630
|
return false;
|
|
1603
|
-
if (!equals(this.
|
|
1631
|
+
if (!equals(this.f1h_1, other.f1h_1))
|
|
1604
1632
|
return false;
|
|
1605
|
-
if (!(this.
|
|
1633
|
+
if (!(this.g1h_1 == other.g1h_1))
|
|
1606
1634
|
return false;
|
|
1607
1635
|
return true;
|
|
1608
1636
|
};
|
|
1609
1637
|
function $serializer_2() {
|
|
1610
1638
|
$serializer_instance_2 = this;
|
|
1611
1639
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.CommerceCta', this, 3);
|
|
1612
|
-
tmp0_serialDesc.
|
|
1613
|
-
tmp0_serialDesc.
|
|
1614
|
-
tmp0_serialDesc.
|
|
1615
|
-
this.
|
|
1616
|
-
}
|
|
1617
|
-
protoOf($serializer_2).
|
|
1618
|
-
var tmp0_desc = this.
|
|
1619
|
-
var tmp1_output = encoder.
|
|
1620
|
-
tmp1_output.
|
|
1621
|
-
tmp1_output.
|
|
1622
|
-
tmp1_output.
|
|
1623
|
-
tmp1_output.
|
|
1624
|
-
};
|
|
1625
|
-
protoOf($serializer_2).
|
|
1626
|
-
return this.
|
|
1627
|
-
};
|
|
1628
|
-
protoOf($serializer_2).
|
|
1629
|
-
var tmp0_desc = this.
|
|
1640
|
+
tmp0_serialDesc.zs('sponsorName', false);
|
|
1641
|
+
tmp0_serialDesc.zs('territory', false);
|
|
1642
|
+
tmp0_serialDesc.zs('url', false);
|
|
1643
|
+
this.p1i_1 = tmp0_serialDesc;
|
|
1644
|
+
}
|
|
1645
|
+
protoOf($serializer_2).q1i = function (encoder, value) {
|
|
1646
|
+
var tmp0_desc = this.p1i_1;
|
|
1647
|
+
var tmp1_output = encoder.ql(tmp0_desc);
|
|
1648
|
+
tmp1_output.en(tmp0_desc, 0, value.r1i_1);
|
|
1649
|
+
tmp1_output.en(tmp0_desc, 1, value.s1i_1);
|
|
1650
|
+
tmp1_output.en(tmp0_desc, 2, value.t1i_1);
|
|
1651
|
+
tmp1_output.rl(tmp0_desc);
|
|
1652
|
+
};
|
|
1653
|
+
protoOf($serializer_2).ti = function (encoder, value) {
|
|
1654
|
+
return this.q1i(encoder, value instanceof CommerceCta ? value : THROW_CCE());
|
|
1655
|
+
};
|
|
1656
|
+
protoOf($serializer_2).ui = function (decoder) {
|
|
1657
|
+
var tmp0_desc = this.p1i_1;
|
|
1630
1658
|
var tmp1_flag = true;
|
|
1631
1659
|
var tmp2_index = 0;
|
|
1632
1660
|
var tmp3_bitMask0 = 0;
|
|
1633
1661
|
var tmp4_local0 = null;
|
|
1634
1662
|
var tmp5_local1 = null;
|
|
1635
1663
|
var tmp6_local2 = null;
|
|
1636
|
-
var tmp7_input = decoder.
|
|
1637
|
-
if (tmp7_input.
|
|
1638
|
-
tmp4_local0 = tmp7_input.
|
|
1664
|
+
var tmp7_input = decoder.ql(tmp0_desc);
|
|
1665
|
+
if (tmp7_input.gm()) {
|
|
1666
|
+
tmp4_local0 = tmp7_input.am(tmp0_desc, 0);
|
|
1639
1667
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1640
|
-
tmp5_local1 = tmp7_input.
|
|
1668
|
+
tmp5_local1 = tmp7_input.am(tmp0_desc, 1);
|
|
1641
1669
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1642
|
-
tmp6_local2 = tmp7_input.
|
|
1670
|
+
tmp6_local2 = tmp7_input.am(tmp0_desc, 2);
|
|
1643
1671
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1644
1672
|
} else
|
|
1645
1673
|
while (tmp1_flag) {
|
|
1646
|
-
tmp2_index = tmp7_input.
|
|
1674
|
+
tmp2_index = tmp7_input.hm(tmp0_desc);
|
|
1647
1675
|
switch (tmp2_index) {
|
|
1648
1676
|
case -1:
|
|
1649
1677
|
tmp1_flag = false;
|
|
1650
1678
|
break;
|
|
1651
1679
|
case 0:
|
|
1652
|
-
tmp4_local0 = tmp7_input.
|
|
1680
|
+
tmp4_local0 = tmp7_input.am(tmp0_desc, 0);
|
|
1653
1681
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1654
1682
|
break;
|
|
1655
1683
|
case 1:
|
|
1656
|
-
tmp5_local1 = tmp7_input.
|
|
1684
|
+
tmp5_local1 = tmp7_input.am(tmp0_desc, 1);
|
|
1657
1685
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1658
1686
|
break;
|
|
1659
1687
|
case 2:
|
|
1660
|
-
tmp6_local2 = tmp7_input.
|
|
1688
|
+
tmp6_local2 = tmp7_input.am(tmp0_desc, 2);
|
|
1661
1689
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1662
1690
|
break;
|
|
1663
1691
|
default:
|
|
1664
1692
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1665
1693
|
}
|
|
1666
1694
|
}
|
|
1667
|
-
tmp7_input.
|
|
1695
|
+
tmp7_input.rl(tmp0_desc);
|
|
1668
1696
|
return CommerceCta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1669
1697
|
};
|
|
1670
|
-
protoOf($serializer_2).
|
|
1671
|
-
return this.
|
|
1698
|
+
protoOf($serializer_2).si = function () {
|
|
1699
|
+
return this.p1i_1;
|
|
1672
1700
|
};
|
|
1673
|
-
protoOf($serializer_2).
|
|
1701
|
+
protoOf($serializer_2).bt = function () {
|
|
1674
1702
|
// Inline function 'kotlin.arrayOf' call
|
|
1675
1703
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1676
1704
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1684,11 +1712,11 @@
|
|
|
1684
1712
|
}
|
|
1685
1713
|
function CommerceCta_init_$Init$(seen0, sponsorName, territory, url, serializationConstructorMarker, $this) {
|
|
1686
1714
|
if (!(7 === (7 & seen0))) {
|
|
1687
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_2().
|
|
1715
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_2().p1i_1);
|
|
1688
1716
|
}
|
|
1689
|
-
$this.
|
|
1690
|
-
$this.
|
|
1691
|
-
$this.
|
|
1717
|
+
$this.r1i_1 = sponsorName;
|
|
1718
|
+
$this.s1i_1 = territory;
|
|
1719
|
+
$this.t1i_1 = url;
|
|
1692
1720
|
return $this;
|
|
1693
1721
|
}
|
|
1694
1722
|
function CommerceCta_init_$Create$(seen0, sponsorName, territory, url, serializationConstructorMarker) {
|
|
@@ -1697,12 +1725,12 @@
|
|
|
1697
1725
|
function CommerceCta() {
|
|
1698
1726
|
}
|
|
1699
1727
|
protoOf(CommerceCta).toString = function () {
|
|
1700
|
-
return 'CommerceCta(sponsorName=' + this.
|
|
1728
|
+
return 'CommerceCta(sponsorName=' + this.r1i_1 + ', territory=' + this.s1i_1 + ', url=' + this.t1i_1 + ')';
|
|
1701
1729
|
};
|
|
1702
1730
|
protoOf(CommerceCta).hashCode = function () {
|
|
1703
|
-
var result = getStringHashCode(this.
|
|
1704
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1705
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1731
|
+
var result = getStringHashCode(this.r1i_1);
|
|
1732
|
+
result = imul(result, 31) + getStringHashCode(this.s1i_1) | 0;
|
|
1733
|
+
result = imul(result, 31) + getStringHashCode(this.t1i_1) | 0;
|
|
1706
1734
|
return result;
|
|
1707
1735
|
};
|
|
1708
1736
|
protoOf(CommerceCta).equals = function (other) {
|
|
@@ -1710,55 +1738,55 @@
|
|
|
1710
1738
|
return true;
|
|
1711
1739
|
if (!(other instanceof CommerceCta))
|
|
1712
1740
|
return false;
|
|
1713
|
-
if (!(this.
|
|
1741
|
+
if (!(this.r1i_1 === other.r1i_1))
|
|
1714
1742
|
return false;
|
|
1715
|
-
if (!(this.
|
|
1743
|
+
if (!(this.s1i_1 === other.s1i_1))
|
|
1716
1744
|
return false;
|
|
1717
|
-
if (!(this.
|
|
1745
|
+
if (!(this.t1i_1 === other.t1i_1))
|
|
1718
1746
|
return false;
|
|
1719
1747
|
return true;
|
|
1720
1748
|
};
|
|
1721
1749
|
function $serializer_3() {
|
|
1722
1750
|
$serializer_instance_3 = this;
|
|
1723
1751
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Image', this, 8);
|
|
1724
|
-
tmp0_serialDesc.
|
|
1725
|
-
tmp0_serialDesc.
|
|
1726
|
-
tmp0_serialDesc.
|
|
1727
|
-
tmp0_serialDesc.
|
|
1728
|
-
tmp0_serialDesc.
|
|
1729
|
-
tmp0_serialDesc.
|
|
1730
|
-
tmp0_serialDesc.
|
|
1731
|
-
tmp0_serialDesc.
|
|
1732
|
-
this.
|
|
1733
|
-
}
|
|
1734
|
-
protoOf($serializer_3).
|
|
1735
|
-
var tmp0_desc = this.
|
|
1736
|
-
var tmp1_output = encoder.
|
|
1737
|
-
if (tmp1_output.
|
|
1738
|
-
tmp1_output.
|
|
1752
|
+
tmp0_serialDesc.zs('caption', true);
|
|
1753
|
+
tmp0_serialDesc.zs('cropId', false);
|
|
1754
|
+
tmp0_serialDesc.zs('imageType', true);
|
|
1755
|
+
tmp0_serialDesc.zs('mediaApiUrl', true);
|
|
1756
|
+
tmp0_serialDesc.zs('mediaId', false);
|
|
1757
|
+
tmp0_serialDesc.zs('photographer', true);
|
|
1758
|
+
tmp0_serialDesc.zs('source', true);
|
|
1759
|
+
tmp0_serialDesc.zs('url', false);
|
|
1760
|
+
this.u1i_1 = tmp0_serialDesc;
|
|
1761
|
+
}
|
|
1762
|
+
protoOf($serializer_3).v1i = function (encoder, value) {
|
|
1763
|
+
var tmp0_desc = this.u1i_1;
|
|
1764
|
+
var tmp1_output = encoder.ql(tmp0_desc);
|
|
1765
|
+
if (tmp1_output.mn(tmp0_desc, 0) ? true : !(value.w1i_1 == null)) {
|
|
1766
|
+
tmp1_output.in(tmp0_desc, 0, StringSerializer_getInstance(), value.w1i_1);
|
|
1739
1767
|
}
|
|
1740
|
-
tmp1_output.
|
|
1741
|
-
if (tmp1_output.
|
|
1742
|
-
tmp1_output.
|
|
1768
|
+
tmp1_output.en(tmp0_desc, 1, value.x1i_1);
|
|
1769
|
+
if (tmp1_output.mn(tmp0_desc, 2) ? true : !(value.y1i_1 == null)) {
|
|
1770
|
+
tmp1_output.in(tmp0_desc, 2, StringSerializer_getInstance(), value.y1i_1);
|
|
1743
1771
|
}
|
|
1744
|
-
if (tmp1_output.
|
|
1745
|
-
tmp1_output.
|
|
1772
|
+
if (tmp1_output.mn(tmp0_desc, 3) ? true : !(value.z1i_1 == null)) {
|
|
1773
|
+
tmp1_output.in(tmp0_desc, 3, StringSerializer_getInstance(), value.z1i_1);
|
|
1746
1774
|
}
|
|
1747
|
-
tmp1_output.
|
|
1748
|
-
if (tmp1_output.
|
|
1749
|
-
tmp1_output.
|
|
1775
|
+
tmp1_output.en(tmp0_desc, 4, value.a1j_1);
|
|
1776
|
+
if (tmp1_output.mn(tmp0_desc, 5) ? true : !(value.b1j_1 == null)) {
|
|
1777
|
+
tmp1_output.in(tmp0_desc, 5, StringSerializer_getInstance(), value.b1j_1);
|
|
1750
1778
|
}
|
|
1751
|
-
if (tmp1_output.
|
|
1752
|
-
tmp1_output.
|
|
1779
|
+
if (tmp1_output.mn(tmp0_desc, 6) ? true : !(value.c1j_1 == null)) {
|
|
1780
|
+
tmp1_output.in(tmp0_desc, 6, StringSerializer_getInstance(), value.c1j_1);
|
|
1753
1781
|
}
|
|
1754
|
-
tmp1_output.
|
|
1755
|
-
tmp1_output.
|
|
1782
|
+
tmp1_output.en(tmp0_desc, 7, value.d1j_1);
|
|
1783
|
+
tmp1_output.rl(tmp0_desc);
|
|
1756
1784
|
};
|
|
1757
|
-
protoOf($serializer_3).
|
|
1758
|
-
return this.
|
|
1785
|
+
protoOf($serializer_3).ti = function (encoder, value) {
|
|
1786
|
+
return this.v1i(encoder, value instanceof Image ? value : THROW_CCE());
|
|
1759
1787
|
};
|
|
1760
|
-
protoOf($serializer_3).
|
|
1761
|
-
var tmp0_desc = this.
|
|
1788
|
+
protoOf($serializer_3).ui = function (decoder) {
|
|
1789
|
+
var tmp0_desc = this.u1i_1;
|
|
1762
1790
|
var tmp1_flag = true;
|
|
1763
1791
|
var tmp2_index = 0;
|
|
1764
1792
|
var tmp3_bitMask0 = 0;
|
|
@@ -1770,74 +1798,74 @@
|
|
|
1770
1798
|
var tmp9_local5 = null;
|
|
1771
1799
|
var tmp10_local6 = null;
|
|
1772
1800
|
var tmp11_local7 = null;
|
|
1773
|
-
var tmp12_input = decoder.
|
|
1774
|
-
if (tmp12_input.
|
|
1775
|
-
tmp4_local0 = tmp12_input.
|
|
1801
|
+
var tmp12_input = decoder.ql(tmp0_desc);
|
|
1802
|
+
if (tmp12_input.gm()) {
|
|
1803
|
+
tmp4_local0 = tmp12_input.em(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1776
1804
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1777
|
-
tmp5_local1 = tmp12_input.
|
|
1805
|
+
tmp5_local1 = tmp12_input.am(tmp0_desc, 1);
|
|
1778
1806
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1779
|
-
tmp6_local2 = tmp12_input.
|
|
1807
|
+
tmp6_local2 = tmp12_input.em(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1780
1808
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1781
|
-
tmp7_local3 = tmp12_input.
|
|
1809
|
+
tmp7_local3 = tmp12_input.em(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
1782
1810
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1783
|
-
tmp8_local4 = tmp12_input.
|
|
1811
|
+
tmp8_local4 = tmp12_input.am(tmp0_desc, 4);
|
|
1784
1812
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1785
|
-
tmp9_local5 = tmp12_input.
|
|
1813
|
+
tmp9_local5 = tmp12_input.em(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1786
1814
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1787
|
-
tmp10_local6 = tmp12_input.
|
|
1815
|
+
tmp10_local6 = tmp12_input.em(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1788
1816
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1789
|
-
tmp11_local7 = tmp12_input.
|
|
1817
|
+
tmp11_local7 = tmp12_input.am(tmp0_desc, 7);
|
|
1790
1818
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1791
1819
|
} else
|
|
1792
1820
|
while (tmp1_flag) {
|
|
1793
|
-
tmp2_index = tmp12_input.
|
|
1821
|
+
tmp2_index = tmp12_input.hm(tmp0_desc);
|
|
1794
1822
|
switch (tmp2_index) {
|
|
1795
1823
|
case -1:
|
|
1796
1824
|
tmp1_flag = false;
|
|
1797
1825
|
break;
|
|
1798
1826
|
case 0:
|
|
1799
|
-
tmp4_local0 = tmp12_input.
|
|
1827
|
+
tmp4_local0 = tmp12_input.em(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1800
1828
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1801
1829
|
break;
|
|
1802
1830
|
case 1:
|
|
1803
|
-
tmp5_local1 = tmp12_input.
|
|
1831
|
+
tmp5_local1 = tmp12_input.am(tmp0_desc, 1);
|
|
1804
1832
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1805
1833
|
break;
|
|
1806
1834
|
case 2:
|
|
1807
|
-
tmp6_local2 = tmp12_input.
|
|
1835
|
+
tmp6_local2 = tmp12_input.em(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1808
1836
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1809
1837
|
break;
|
|
1810
1838
|
case 3:
|
|
1811
|
-
tmp7_local3 = tmp12_input.
|
|
1839
|
+
tmp7_local3 = tmp12_input.em(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
1812
1840
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1813
1841
|
break;
|
|
1814
1842
|
case 4:
|
|
1815
|
-
tmp8_local4 = tmp12_input.
|
|
1843
|
+
tmp8_local4 = tmp12_input.am(tmp0_desc, 4);
|
|
1816
1844
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1817
1845
|
break;
|
|
1818
1846
|
case 5:
|
|
1819
|
-
tmp9_local5 = tmp12_input.
|
|
1847
|
+
tmp9_local5 = tmp12_input.em(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1820
1848
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1821
1849
|
break;
|
|
1822
1850
|
case 6:
|
|
1823
|
-
tmp10_local6 = tmp12_input.
|
|
1851
|
+
tmp10_local6 = tmp12_input.em(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1824
1852
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1825
1853
|
break;
|
|
1826
1854
|
case 7:
|
|
1827
|
-
tmp11_local7 = tmp12_input.
|
|
1855
|
+
tmp11_local7 = tmp12_input.am(tmp0_desc, 7);
|
|
1828
1856
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1829
1857
|
break;
|
|
1830
1858
|
default:
|
|
1831
1859
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1832
1860
|
}
|
|
1833
1861
|
}
|
|
1834
|
-
tmp12_input.
|
|
1862
|
+
tmp12_input.rl(tmp0_desc);
|
|
1835
1863
|
return Image_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1836
1864
|
};
|
|
1837
|
-
protoOf($serializer_3).
|
|
1838
|
-
return this.
|
|
1865
|
+
protoOf($serializer_3).si = function () {
|
|
1866
|
+
return this.u1i_1;
|
|
1839
1867
|
};
|
|
1840
|
-
protoOf($serializer_3).
|
|
1868
|
+
protoOf($serializer_3).bt = function () {
|
|
1841
1869
|
// Inline function 'kotlin.arrayOf' call
|
|
1842
1870
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1843
1871
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1851,31 +1879,31 @@
|
|
|
1851
1879
|
}
|
|
1852
1880
|
function Image_init_$Init$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker, $this) {
|
|
1853
1881
|
if (!(146 === (146 & seen0))) {
|
|
1854
|
-
throwMissingFieldException(seen0, 146, $serializer_getInstance_3().
|
|
1882
|
+
throwMissingFieldException(seen0, 146, $serializer_getInstance_3().u1i_1);
|
|
1855
1883
|
}
|
|
1856
1884
|
if (0 === (seen0 & 1))
|
|
1857
|
-
$this.
|
|
1885
|
+
$this.w1i_1 = null;
|
|
1858
1886
|
else
|
|
1859
|
-
$this.
|
|
1860
|
-
$this.
|
|
1887
|
+
$this.w1i_1 = caption;
|
|
1888
|
+
$this.x1i_1 = cropId;
|
|
1861
1889
|
if (0 === (seen0 & 4))
|
|
1862
|
-
$this.
|
|
1890
|
+
$this.y1i_1 = null;
|
|
1863
1891
|
else
|
|
1864
|
-
$this.
|
|
1892
|
+
$this.y1i_1 = imageType;
|
|
1865
1893
|
if (0 === (seen0 & 8))
|
|
1866
|
-
$this.
|
|
1894
|
+
$this.z1i_1 = null;
|
|
1867
1895
|
else
|
|
1868
|
-
$this.
|
|
1869
|
-
$this.
|
|
1896
|
+
$this.z1i_1 = mediaApiUrl;
|
|
1897
|
+
$this.a1j_1 = mediaId;
|
|
1870
1898
|
if (0 === (seen0 & 32))
|
|
1871
|
-
$this.
|
|
1899
|
+
$this.b1j_1 = null;
|
|
1872
1900
|
else
|
|
1873
|
-
$this.
|
|
1901
|
+
$this.b1j_1 = photographer;
|
|
1874
1902
|
if (0 === (seen0 & 64))
|
|
1875
|
-
$this.
|
|
1903
|
+
$this.c1j_1 = null;
|
|
1876
1904
|
else
|
|
1877
|
-
$this.
|
|
1878
|
-
$this.
|
|
1905
|
+
$this.c1j_1 = source;
|
|
1906
|
+
$this.d1j_1 = url;
|
|
1879
1907
|
return $this;
|
|
1880
1908
|
}
|
|
1881
1909
|
function Image_init_$Create$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker) {
|
|
@@ -1884,17 +1912,17 @@
|
|
|
1884
1912
|
function Image() {
|
|
1885
1913
|
}
|
|
1886
1914
|
protoOf(Image).toString = function () {
|
|
1887
|
-
return 'Image(caption=' + this.
|
|
1915
|
+
return 'Image(caption=' + this.w1i_1 + ', cropId=' + this.x1i_1 + ', imageType=' + this.y1i_1 + ', mediaApiUrl=' + this.z1i_1 + ', mediaId=' + this.a1j_1 + ', photographer=' + this.b1j_1 + ', source=' + this.c1j_1 + ', url=' + this.d1j_1 + ')';
|
|
1888
1916
|
};
|
|
1889
1917
|
protoOf(Image).hashCode = function () {
|
|
1890
|
-
var result = this.
|
|
1891
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1892
|
-
result = imul(result, 31) + (this.
|
|
1893
|
-
result = imul(result, 31) + (this.
|
|
1894
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1895
|
-
result = imul(result, 31) + (this.
|
|
1896
|
-
result = imul(result, 31) + (this.
|
|
1897
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1918
|
+
var result = this.w1i_1 == null ? 0 : getStringHashCode(this.w1i_1);
|
|
1919
|
+
result = imul(result, 31) + getStringHashCode(this.x1i_1) | 0;
|
|
1920
|
+
result = imul(result, 31) + (this.y1i_1 == null ? 0 : getStringHashCode(this.y1i_1)) | 0;
|
|
1921
|
+
result = imul(result, 31) + (this.z1i_1 == null ? 0 : getStringHashCode(this.z1i_1)) | 0;
|
|
1922
|
+
result = imul(result, 31) + getStringHashCode(this.a1j_1) | 0;
|
|
1923
|
+
result = imul(result, 31) + (this.b1j_1 == null ? 0 : getStringHashCode(this.b1j_1)) | 0;
|
|
1924
|
+
result = imul(result, 31) + (this.c1j_1 == null ? 0 : getStringHashCode(this.c1j_1)) | 0;
|
|
1925
|
+
result = imul(result, 31) + getStringHashCode(this.d1j_1) | 0;
|
|
1898
1926
|
return result;
|
|
1899
1927
|
};
|
|
1900
1928
|
protoOf(Image).equals = function (other) {
|
|
@@ -1902,21 +1930,21 @@
|
|
|
1902
1930
|
return true;
|
|
1903
1931
|
if (!(other instanceof Image))
|
|
1904
1932
|
return false;
|
|
1905
|
-
if (!(this.
|
|
1933
|
+
if (!(this.w1i_1 == other.w1i_1))
|
|
1906
1934
|
return false;
|
|
1907
|
-
if (!(this.
|
|
1935
|
+
if (!(this.x1i_1 === other.x1i_1))
|
|
1908
1936
|
return false;
|
|
1909
|
-
if (!(this.
|
|
1937
|
+
if (!(this.y1i_1 == other.y1i_1))
|
|
1910
1938
|
return false;
|
|
1911
|
-
if (!(this.
|
|
1939
|
+
if (!(this.z1i_1 == other.z1i_1))
|
|
1912
1940
|
return false;
|
|
1913
|
-
if (!(this.
|
|
1941
|
+
if (!(this.a1j_1 === other.a1j_1))
|
|
1914
1942
|
return false;
|
|
1915
|
-
if (!(this.
|
|
1943
|
+
if (!(this.b1j_1 == other.b1j_1))
|
|
1916
1944
|
return false;
|
|
1917
|
-
if (!(this.
|
|
1945
|
+
if (!(this.c1j_1 == other.c1j_1))
|
|
1918
1946
|
return false;
|
|
1919
|
-
if (!(this.
|
|
1947
|
+
if (!(this.d1j_1 === other.d1j_1))
|
|
1920
1948
|
return false;
|
|
1921
1949
|
return true;
|
|
1922
1950
|
};
|
|
@@ -1930,7 +1958,7 @@
|
|
|
1930
1958
|
// Inline function 'kotlin.arrayOf' call
|
|
1931
1959
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1932
1960
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1933
|
-
tmp.
|
|
1961
|
+
tmp.e1j_1 = [lazy(tmp_0, IngredientsList$Companion$$childSerializers$_anonymous__y7k6ja), null];
|
|
1934
1962
|
}
|
|
1935
1963
|
var Companion_instance_3;
|
|
1936
1964
|
function Companion_getInstance_2() {
|
|
@@ -1941,70 +1969,70 @@
|
|
|
1941
1969
|
function $serializer_4() {
|
|
1942
1970
|
$serializer_instance_4 = this;
|
|
1943
1971
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsList', this, 2);
|
|
1944
|
-
tmp0_serialDesc.
|
|
1945
|
-
tmp0_serialDesc.
|
|
1946
|
-
this.
|
|
1947
|
-
}
|
|
1948
|
-
protoOf($serializer_4).
|
|
1949
|
-
var tmp0_desc = this.
|
|
1950
|
-
var tmp1_output = encoder.
|
|
1951
|
-
var tmp2_cached = Companion_getInstance_2().
|
|
1952
|
-
if (tmp1_output.
|
|
1953
|
-
tmp1_output.
|
|
1972
|
+
tmp0_serialDesc.zs('ingredientsList', true);
|
|
1973
|
+
tmp0_serialDesc.zs('recipeSection', true);
|
|
1974
|
+
this.f1j_1 = tmp0_serialDesc;
|
|
1975
|
+
}
|
|
1976
|
+
protoOf($serializer_4).g1j = function (encoder, value) {
|
|
1977
|
+
var tmp0_desc = this.f1j_1;
|
|
1978
|
+
var tmp1_output = encoder.ql(tmp0_desc);
|
|
1979
|
+
var tmp2_cached = Companion_getInstance_2().e1j_1;
|
|
1980
|
+
if (tmp1_output.mn(tmp0_desc, 0) ? true : !(value.h1h_1 == null)) {
|
|
1981
|
+
tmp1_output.in(tmp0_desc, 0, tmp2_cached[0].g2(), value.h1h_1);
|
|
1954
1982
|
}
|
|
1955
|
-
if (tmp1_output.
|
|
1956
|
-
tmp1_output.
|
|
1983
|
+
if (tmp1_output.mn(tmp0_desc, 1) ? true : !(value.i1h_1 == null)) {
|
|
1984
|
+
tmp1_output.in(tmp0_desc, 1, StringSerializer_getInstance(), value.i1h_1);
|
|
1957
1985
|
}
|
|
1958
|
-
tmp1_output.
|
|
1986
|
+
tmp1_output.rl(tmp0_desc);
|
|
1959
1987
|
};
|
|
1960
|
-
protoOf($serializer_4).
|
|
1961
|
-
return this.
|
|
1988
|
+
protoOf($serializer_4).ti = function (encoder, value) {
|
|
1989
|
+
return this.g1j(encoder, value instanceof IngredientsList ? value : THROW_CCE());
|
|
1962
1990
|
};
|
|
1963
|
-
protoOf($serializer_4).
|
|
1964
|
-
var tmp0_desc = this.
|
|
1991
|
+
protoOf($serializer_4).ui = function (decoder) {
|
|
1992
|
+
var tmp0_desc = this.f1j_1;
|
|
1965
1993
|
var tmp1_flag = true;
|
|
1966
1994
|
var tmp2_index = 0;
|
|
1967
1995
|
var tmp3_bitMask0 = 0;
|
|
1968
1996
|
var tmp4_local0 = null;
|
|
1969
1997
|
var tmp5_local1 = null;
|
|
1970
|
-
var tmp6_input = decoder.
|
|
1971
|
-
var tmp7_cached = Companion_getInstance_2().
|
|
1972
|
-
if (tmp6_input.
|
|
1973
|
-
tmp4_local0 = tmp6_input.
|
|
1998
|
+
var tmp6_input = decoder.ql(tmp0_desc);
|
|
1999
|
+
var tmp7_cached = Companion_getInstance_2().e1j_1;
|
|
2000
|
+
if (tmp6_input.gm()) {
|
|
2001
|
+
tmp4_local0 = tmp6_input.em(tmp0_desc, 0, tmp7_cached[0].g2(), tmp4_local0);
|
|
1974
2002
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1975
|
-
tmp5_local1 = tmp6_input.
|
|
2003
|
+
tmp5_local1 = tmp6_input.em(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1976
2004
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1977
2005
|
} else
|
|
1978
2006
|
while (tmp1_flag) {
|
|
1979
|
-
tmp2_index = tmp6_input.
|
|
2007
|
+
tmp2_index = tmp6_input.hm(tmp0_desc);
|
|
1980
2008
|
switch (tmp2_index) {
|
|
1981
2009
|
case -1:
|
|
1982
2010
|
tmp1_flag = false;
|
|
1983
2011
|
break;
|
|
1984
2012
|
case 0:
|
|
1985
|
-
tmp4_local0 = tmp6_input.
|
|
2013
|
+
tmp4_local0 = tmp6_input.em(tmp0_desc, 0, tmp7_cached[0].g2(), tmp4_local0);
|
|
1986
2014
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1987
2015
|
break;
|
|
1988
2016
|
case 1:
|
|
1989
|
-
tmp5_local1 = tmp6_input.
|
|
2017
|
+
tmp5_local1 = tmp6_input.em(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1990
2018
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1991
2019
|
break;
|
|
1992
2020
|
default:
|
|
1993
2021
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1994
2022
|
}
|
|
1995
2023
|
}
|
|
1996
|
-
tmp6_input.
|
|
2024
|
+
tmp6_input.rl(tmp0_desc);
|
|
1997
2025
|
return IngredientsList_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1998
2026
|
};
|
|
1999
|
-
protoOf($serializer_4).
|
|
2000
|
-
return this.
|
|
2027
|
+
protoOf($serializer_4).si = function () {
|
|
2028
|
+
return this.f1j_1;
|
|
2001
2029
|
};
|
|
2002
|
-
protoOf($serializer_4).
|
|
2003
|
-
var tmp0_cached = Companion_getInstance_2().
|
|
2030
|
+
protoOf($serializer_4).bt = function () {
|
|
2031
|
+
var tmp0_cached = Companion_getInstance_2().e1j_1;
|
|
2004
2032
|
// Inline function 'kotlin.arrayOf' call
|
|
2005
2033
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2006
2034
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2007
|
-
return [get_nullable(tmp0_cached[0].
|
|
2035
|
+
return [get_nullable(tmp0_cached[0].g2()), get_nullable(StringSerializer_getInstance())];
|
|
2008
2036
|
};
|
|
2009
2037
|
var $serializer_instance_4;
|
|
2010
2038
|
function $serializer_getInstance_4() {
|
|
@@ -2014,16 +2042,16 @@
|
|
|
2014
2042
|
}
|
|
2015
2043
|
function IngredientsList_init_$Init$(seen0, ingredientsList, recipeSection, serializationConstructorMarker, $this) {
|
|
2016
2044
|
if (!(0 === (0 & seen0))) {
|
|
2017
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().
|
|
2045
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().f1j_1);
|
|
2018
2046
|
}
|
|
2019
2047
|
if (0 === (seen0 & 1))
|
|
2020
|
-
$this.
|
|
2048
|
+
$this.h1h_1 = null;
|
|
2021
2049
|
else
|
|
2022
|
-
$this.
|
|
2050
|
+
$this.h1h_1 = ingredientsList;
|
|
2023
2051
|
if (0 === (seen0 & 2))
|
|
2024
|
-
$this.
|
|
2052
|
+
$this.i1h_1 = null;
|
|
2025
2053
|
else
|
|
2026
|
-
$this.
|
|
2054
|
+
$this.i1h_1 = recipeSection;
|
|
2027
2055
|
return $this;
|
|
2028
2056
|
}
|
|
2029
2057
|
function IngredientsList_init_$Create$(seen0, ingredientsList, recipeSection, serializationConstructorMarker) {
|
|
@@ -2033,15 +2061,15 @@
|
|
|
2033
2061
|
Companion_getInstance_2();
|
|
2034
2062
|
ingredientsList = ingredientsList === VOID ? null : ingredientsList;
|
|
2035
2063
|
recipeSection = recipeSection === VOID ? null : recipeSection;
|
|
2036
|
-
this.
|
|
2037
|
-
this.
|
|
2064
|
+
this.h1h_1 = ingredientsList;
|
|
2065
|
+
this.i1h_1 = recipeSection;
|
|
2038
2066
|
}
|
|
2039
2067
|
protoOf(IngredientsList).toString = function () {
|
|
2040
|
-
return 'IngredientsList(ingredientsList=' + toString(this.
|
|
2068
|
+
return 'IngredientsList(ingredientsList=' + toString(this.h1h_1) + ', recipeSection=' + this.i1h_1 + ')';
|
|
2041
2069
|
};
|
|
2042
2070
|
protoOf(IngredientsList).hashCode = function () {
|
|
2043
|
-
var result = this.
|
|
2044
|
-
result = imul(result, 31) + (this.
|
|
2071
|
+
var result = this.h1h_1 == null ? 0 : hashCode(this.h1h_1);
|
|
2072
|
+
result = imul(result, 31) + (this.i1h_1 == null ? 0 : getStringHashCode(this.i1h_1)) | 0;
|
|
2045
2073
|
return result;
|
|
2046
2074
|
};
|
|
2047
2075
|
protoOf(IngredientsList).equals = function (other) {
|
|
@@ -2049,9 +2077,9 @@
|
|
|
2049
2077
|
return true;
|
|
2050
2078
|
if (!(other instanceof IngredientsList))
|
|
2051
2079
|
return false;
|
|
2052
|
-
if (!equals(this.
|
|
2080
|
+
if (!equals(this.h1h_1, other.h1h_1))
|
|
2053
2081
|
return false;
|
|
2054
|
-
if (!(this.
|
|
2082
|
+
if (!(this.i1h_1 == other.i1h_1))
|
|
2055
2083
|
return false;
|
|
2056
2084
|
return true;
|
|
2057
2085
|
};
|
|
@@ -2064,54 +2092,54 @@
|
|
|
2064
2092
|
function $serializer_5() {
|
|
2065
2093
|
$serializer_instance_5 = this;
|
|
2066
2094
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientItem', this, 9);
|
|
2067
|
-
tmp0_serialDesc.
|
|
2068
|
-
tmp0_serialDesc.
|
|
2069
|
-
tmp0_serialDesc.
|
|
2070
|
-
tmp0_serialDesc.
|
|
2071
|
-
tmp0_serialDesc.
|
|
2072
|
-
tmp0_serialDesc.
|
|
2073
|
-
tmp0_serialDesc.
|
|
2074
|
-
tmp0_serialDesc.
|
|
2075
|
-
tmp0_serialDesc.
|
|
2076
|
-
this.
|
|
2077
|
-
}
|
|
2078
|
-
protoOf($serializer_5).
|
|
2079
|
-
var tmp0_desc = this.
|
|
2080
|
-
var tmp1_output = encoder.
|
|
2081
|
-
if (tmp1_output.
|
|
2082
|
-
tmp1_output.
|
|
2095
|
+
tmp0_serialDesc.zs('amount', true);
|
|
2096
|
+
tmp0_serialDesc.zs('ingredientId', true);
|
|
2097
|
+
tmp0_serialDesc.zs('name', true);
|
|
2098
|
+
tmp0_serialDesc.zs('optional', true);
|
|
2099
|
+
tmp0_serialDesc.zs('prefix', true);
|
|
2100
|
+
tmp0_serialDesc.zs('suffix', true);
|
|
2101
|
+
tmp0_serialDesc.zs('template', true);
|
|
2102
|
+
tmp0_serialDesc.zs('text', true);
|
|
2103
|
+
tmp0_serialDesc.zs('unit', true);
|
|
2104
|
+
this.h1j_1 = tmp0_serialDesc;
|
|
2105
|
+
}
|
|
2106
|
+
protoOf($serializer_5).i1j = function (encoder, value) {
|
|
2107
|
+
var tmp0_desc = this.h1j_1;
|
|
2108
|
+
var tmp1_output = encoder.ql(tmp0_desc);
|
|
2109
|
+
if (tmp1_output.mn(tmp0_desc, 0) ? true : !(value.j1h_1 == null)) {
|
|
2110
|
+
tmp1_output.in(tmp0_desc, 0, $serializer_getInstance_6(), value.j1h_1);
|
|
2083
2111
|
}
|
|
2084
|
-
if (tmp1_output.
|
|
2085
|
-
tmp1_output.
|
|
2112
|
+
if (tmp1_output.mn(tmp0_desc, 1) ? true : !(value.k1h_1 == null)) {
|
|
2113
|
+
tmp1_output.in(tmp0_desc, 1, StringSerializer_getInstance(), value.k1h_1);
|
|
2086
2114
|
}
|
|
2087
|
-
if (tmp1_output.
|
|
2088
|
-
tmp1_output.
|
|
2115
|
+
if (tmp1_output.mn(tmp0_desc, 2) ? true : !(value.l1h_1 == null)) {
|
|
2116
|
+
tmp1_output.in(tmp0_desc, 2, StringSerializer_getInstance(), value.l1h_1);
|
|
2089
2117
|
}
|
|
2090
|
-
if (tmp1_output.
|
|
2091
|
-
tmp1_output.
|
|
2118
|
+
if (tmp1_output.mn(tmp0_desc, 3) ? true : !(value.m1h_1 == null)) {
|
|
2119
|
+
tmp1_output.in(tmp0_desc, 3, BooleanSerializer_getInstance(), value.m1h_1);
|
|
2092
2120
|
}
|
|
2093
|
-
if (tmp1_output.
|
|
2094
|
-
tmp1_output.
|
|
2121
|
+
if (tmp1_output.mn(tmp0_desc, 4) ? true : !(value.n1h_1 == null)) {
|
|
2122
|
+
tmp1_output.in(tmp0_desc, 4, StringSerializer_getInstance(), value.n1h_1);
|
|
2095
2123
|
}
|
|
2096
|
-
if (tmp1_output.
|
|
2097
|
-
tmp1_output.
|
|
2124
|
+
if (tmp1_output.mn(tmp0_desc, 5) ? true : !(value.o1h_1 == null)) {
|
|
2125
|
+
tmp1_output.in(tmp0_desc, 5, StringSerializer_getInstance(), value.o1h_1);
|
|
2098
2126
|
}
|
|
2099
|
-
if (tmp1_output.
|
|
2100
|
-
tmp1_output.
|
|
2127
|
+
if (tmp1_output.mn(tmp0_desc, 6) ? true : !(value.p1h_1 == null)) {
|
|
2128
|
+
tmp1_output.in(tmp0_desc, 6, StringSerializer_getInstance(), value.p1h_1);
|
|
2101
2129
|
}
|
|
2102
|
-
if (tmp1_output.
|
|
2103
|
-
tmp1_output.
|
|
2130
|
+
if (tmp1_output.mn(tmp0_desc, 7) ? true : !(value.q1h_1 == null)) {
|
|
2131
|
+
tmp1_output.in(tmp0_desc, 7, StringSerializer_getInstance(), value.q1h_1);
|
|
2104
2132
|
}
|
|
2105
|
-
if (tmp1_output.
|
|
2106
|
-
tmp1_output.
|
|
2133
|
+
if (tmp1_output.mn(tmp0_desc, 8) ? true : !(value.r1h_1 == null)) {
|
|
2134
|
+
tmp1_output.in(tmp0_desc, 8, StringSerializer_getInstance(), value.r1h_1);
|
|
2107
2135
|
}
|
|
2108
|
-
tmp1_output.
|
|
2136
|
+
tmp1_output.rl(tmp0_desc);
|
|
2109
2137
|
};
|
|
2110
|
-
protoOf($serializer_5).
|
|
2111
|
-
return this.
|
|
2138
|
+
protoOf($serializer_5).ti = function (encoder, value) {
|
|
2139
|
+
return this.i1j(encoder, value instanceof IngredientItem ? value : THROW_CCE());
|
|
2112
2140
|
};
|
|
2113
|
-
protoOf($serializer_5).
|
|
2114
|
-
var tmp0_desc = this.
|
|
2141
|
+
protoOf($serializer_5).ui = function (decoder) {
|
|
2142
|
+
var tmp0_desc = this.h1j_1;
|
|
2115
2143
|
var tmp1_flag = true;
|
|
2116
2144
|
var tmp2_index = 0;
|
|
2117
2145
|
var tmp3_bitMask0 = 0;
|
|
@@ -2124,80 +2152,80 @@
|
|
|
2124
2152
|
var tmp10_local6 = null;
|
|
2125
2153
|
var tmp11_local7 = null;
|
|
2126
2154
|
var tmp12_local8 = null;
|
|
2127
|
-
var tmp13_input = decoder.
|
|
2128
|
-
if (tmp13_input.
|
|
2129
|
-
tmp4_local0 = tmp13_input.
|
|
2155
|
+
var tmp13_input = decoder.ql(tmp0_desc);
|
|
2156
|
+
if (tmp13_input.gm()) {
|
|
2157
|
+
tmp4_local0 = tmp13_input.em(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2130
2158
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2131
|
-
tmp5_local1 = tmp13_input.
|
|
2159
|
+
tmp5_local1 = tmp13_input.em(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2132
2160
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2133
|
-
tmp6_local2 = tmp13_input.
|
|
2161
|
+
tmp6_local2 = tmp13_input.em(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2134
2162
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2135
|
-
tmp7_local3 = tmp13_input.
|
|
2163
|
+
tmp7_local3 = tmp13_input.em(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
2136
2164
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2137
|
-
tmp8_local4 = tmp13_input.
|
|
2165
|
+
tmp8_local4 = tmp13_input.em(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2138
2166
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2139
|
-
tmp9_local5 = tmp13_input.
|
|
2167
|
+
tmp9_local5 = tmp13_input.em(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
2140
2168
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2141
|
-
tmp10_local6 = tmp13_input.
|
|
2169
|
+
tmp10_local6 = tmp13_input.em(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
2142
2170
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
2143
|
-
tmp11_local7 = tmp13_input.
|
|
2171
|
+
tmp11_local7 = tmp13_input.em(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2144
2172
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2145
|
-
tmp12_local8 = tmp13_input.
|
|
2173
|
+
tmp12_local8 = tmp13_input.em(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
2146
2174
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2147
2175
|
} else
|
|
2148
2176
|
while (tmp1_flag) {
|
|
2149
|
-
tmp2_index = tmp13_input.
|
|
2177
|
+
tmp2_index = tmp13_input.hm(tmp0_desc);
|
|
2150
2178
|
switch (tmp2_index) {
|
|
2151
2179
|
case -1:
|
|
2152
2180
|
tmp1_flag = false;
|
|
2153
2181
|
break;
|
|
2154
2182
|
case 0:
|
|
2155
|
-
tmp4_local0 = tmp13_input.
|
|
2183
|
+
tmp4_local0 = tmp13_input.em(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2156
2184
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2157
2185
|
break;
|
|
2158
2186
|
case 1:
|
|
2159
|
-
tmp5_local1 = tmp13_input.
|
|
2187
|
+
tmp5_local1 = tmp13_input.em(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2160
2188
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2161
2189
|
break;
|
|
2162
2190
|
case 2:
|
|
2163
|
-
tmp6_local2 = tmp13_input.
|
|
2191
|
+
tmp6_local2 = tmp13_input.em(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2164
2192
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2165
2193
|
break;
|
|
2166
2194
|
case 3:
|
|
2167
|
-
tmp7_local3 = tmp13_input.
|
|
2195
|
+
tmp7_local3 = tmp13_input.em(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
2168
2196
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2169
2197
|
break;
|
|
2170
2198
|
case 4:
|
|
2171
|
-
tmp8_local4 = tmp13_input.
|
|
2199
|
+
tmp8_local4 = tmp13_input.em(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2172
2200
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2173
2201
|
break;
|
|
2174
2202
|
case 5:
|
|
2175
|
-
tmp9_local5 = tmp13_input.
|
|
2203
|
+
tmp9_local5 = tmp13_input.em(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
2176
2204
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2177
2205
|
break;
|
|
2178
2206
|
case 6:
|
|
2179
|
-
tmp10_local6 = tmp13_input.
|
|
2207
|
+
tmp10_local6 = tmp13_input.em(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
2180
2208
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
2181
2209
|
break;
|
|
2182
2210
|
case 7:
|
|
2183
|
-
tmp11_local7 = tmp13_input.
|
|
2211
|
+
tmp11_local7 = tmp13_input.em(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2184
2212
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2185
2213
|
break;
|
|
2186
2214
|
case 8:
|
|
2187
|
-
tmp12_local8 = tmp13_input.
|
|
2215
|
+
tmp12_local8 = tmp13_input.em(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
2188
2216
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2189
2217
|
break;
|
|
2190
2218
|
default:
|
|
2191
2219
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2192
2220
|
}
|
|
2193
2221
|
}
|
|
2194
|
-
tmp13_input.
|
|
2222
|
+
tmp13_input.rl(tmp0_desc);
|
|
2195
2223
|
return IngredientItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null);
|
|
2196
2224
|
};
|
|
2197
|
-
protoOf($serializer_5).
|
|
2198
|
-
return this.
|
|
2225
|
+
protoOf($serializer_5).si = function () {
|
|
2226
|
+
return this.h1j_1;
|
|
2199
2227
|
};
|
|
2200
|
-
protoOf($serializer_5).
|
|
2228
|
+
protoOf($serializer_5).bt = function () {
|
|
2201
2229
|
// Inline function 'kotlin.arrayOf' call
|
|
2202
2230
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2203
2231
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2211,44 +2239,44 @@
|
|
|
2211
2239
|
}
|
|
2212
2240
|
function IngredientItem_init_$Init$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker, $this) {
|
|
2213
2241
|
if (!(0 === (0 & seen0))) {
|
|
2214
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_5().
|
|
2242
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_5().h1j_1);
|
|
2215
2243
|
}
|
|
2216
2244
|
if (0 === (seen0 & 1))
|
|
2217
|
-
$this.
|
|
2245
|
+
$this.j1h_1 = null;
|
|
2218
2246
|
else
|
|
2219
|
-
$this.
|
|
2247
|
+
$this.j1h_1 = amount;
|
|
2220
2248
|
if (0 === (seen0 & 2))
|
|
2221
|
-
$this.
|
|
2249
|
+
$this.k1h_1 = null;
|
|
2222
2250
|
else
|
|
2223
|
-
$this.
|
|
2251
|
+
$this.k1h_1 = ingredientId;
|
|
2224
2252
|
if (0 === (seen0 & 4))
|
|
2225
|
-
$this.
|
|
2253
|
+
$this.l1h_1 = null;
|
|
2226
2254
|
else
|
|
2227
|
-
$this.
|
|
2255
|
+
$this.l1h_1 = name;
|
|
2228
2256
|
if (0 === (seen0 & 8))
|
|
2229
|
-
$this.
|
|
2257
|
+
$this.m1h_1 = null;
|
|
2230
2258
|
else
|
|
2231
|
-
$this.
|
|
2259
|
+
$this.m1h_1 = optional;
|
|
2232
2260
|
if (0 === (seen0 & 16))
|
|
2233
|
-
$this.
|
|
2261
|
+
$this.n1h_1 = null;
|
|
2234
2262
|
else
|
|
2235
|
-
$this.
|
|
2263
|
+
$this.n1h_1 = prefix;
|
|
2236
2264
|
if (0 === (seen0 & 32))
|
|
2237
|
-
$this.
|
|
2265
|
+
$this.o1h_1 = null;
|
|
2238
2266
|
else
|
|
2239
|
-
$this.
|
|
2267
|
+
$this.o1h_1 = suffix;
|
|
2240
2268
|
if (0 === (seen0 & 64))
|
|
2241
|
-
$this.
|
|
2269
|
+
$this.p1h_1 = null;
|
|
2242
2270
|
else
|
|
2243
|
-
$this.
|
|
2271
|
+
$this.p1h_1 = template;
|
|
2244
2272
|
if (0 === (seen0 & 128))
|
|
2245
|
-
$this.
|
|
2273
|
+
$this.q1h_1 = null;
|
|
2246
2274
|
else
|
|
2247
|
-
$this.
|
|
2275
|
+
$this.q1h_1 = text;
|
|
2248
2276
|
if (0 === (seen0 & 256))
|
|
2249
|
-
$this.
|
|
2277
|
+
$this.r1h_1 = null;
|
|
2250
2278
|
else
|
|
2251
|
-
$this.
|
|
2279
|
+
$this.r1h_1 = unit;
|
|
2252
2280
|
return $this;
|
|
2253
2281
|
}
|
|
2254
2282
|
function IngredientItem_init_$Create$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker) {
|
|
@@ -2264,44 +2292,44 @@
|
|
|
2264
2292
|
template = template === VOID ? null : template;
|
|
2265
2293
|
text = text === VOID ? null : text;
|
|
2266
2294
|
unit = unit === VOID ? null : unit;
|
|
2267
|
-
this.
|
|
2268
|
-
this.
|
|
2269
|
-
this.
|
|
2270
|
-
this.
|
|
2271
|
-
this.
|
|
2272
|
-
this.
|
|
2273
|
-
this.
|
|
2274
|
-
this.
|
|
2275
|
-
this.
|
|
2276
|
-
}
|
|
2277
|
-
protoOf(IngredientItem).
|
|
2295
|
+
this.j1h_1 = amount;
|
|
2296
|
+
this.k1h_1 = ingredientId;
|
|
2297
|
+
this.l1h_1 = name;
|
|
2298
|
+
this.m1h_1 = optional;
|
|
2299
|
+
this.n1h_1 = prefix;
|
|
2300
|
+
this.o1h_1 = suffix;
|
|
2301
|
+
this.p1h_1 = template;
|
|
2302
|
+
this.q1h_1 = text;
|
|
2303
|
+
this.r1h_1 = unit;
|
|
2304
|
+
}
|
|
2305
|
+
protoOf(IngredientItem).j1j = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit) {
|
|
2278
2306
|
return new IngredientItem(amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
2279
2307
|
};
|
|
2280
|
-
protoOf(IngredientItem).
|
|
2281
|
-
amount = amount === VOID ? this.
|
|
2282
|
-
ingredientId = ingredientId === VOID ? this.
|
|
2283
|
-
name = name === VOID ? this.
|
|
2284
|
-
optional = optional === VOID ? this.
|
|
2285
|
-
prefix = prefix === VOID ? this.
|
|
2286
|
-
suffix = suffix === VOID ? this.
|
|
2287
|
-
template = template === VOID ? this.
|
|
2288
|
-
text = text === VOID ? this.
|
|
2289
|
-
unit = unit === VOID ? this.
|
|
2290
|
-
return $super === VOID ? this.
|
|
2308
|
+
protoOf(IngredientItem).s1h = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit, $super) {
|
|
2309
|
+
amount = amount === VOID ? this.j1h_1 : amount;
|
|
2310
|
+
ingredientId = ingredientId === VOID ? this.k1h_1 : ingredientId;
|
|
2311
|
+
name = name === VOID ? this.l1h_1 : name;
|
|
2312
|
+
optional = optional === VOID ? this.m1h_1 : optional;
|
|
2313
|
+
prefix = prefix === VOID ? this.n1h_1 : prefix;
|
|
2314
|
+
suffix = suffix === VOID ? this.o1h_1 : suffix;
|
|
2315
|
+
template = template === VOID ? this.p1h_1 : template;
|
|
2316
|
+
text = text === VOID ? this.q1h_1 : text;
|
|
2317
|
+
unit = unit === VOID ? this.r1h_1 : unit;
|
|
2318
|
+
return $super === VOID ? this.j1j(amount, ingredientId, name, optional, prefix, suffix, template, text, unit) : $super.j1j.call(this, amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
2291
2319
|
};
|
|
2292
2320
|
protoOf(IngredientItem).toString = function () {
|
|
2293
|
-
return 'IngredientItem(amount=' + toString(this.
|
|
2321
|
+
return 'IngredientItem(amount=' + toString(this.j1h_1) + ', ingredientId=' + this.k1h_1 + ', name=' + this.l1h_1 + ', optional=' + this.m1h_1 + ', prefix=' + this.n1h_1 + ', suffix=' + this.o1h_1 + ', template=' + this.p1h_1 + ', text=' + this.q1h_1 + ', unit=' + this.r1h_1 + ')';
|
|
2294
2322
|
};
|
|
2295
2323
|
protoOf(IngredientItem).hashCode = function () {
|
|
2296
|
-
var result = this.
|
|
2297
|
-
result = imul(result, 31) + (this.
|
|
2298
|
-
result = imul(result, 31) + (this.
|
|
2299
|
-
result = imul(result, 31) + (this.
|
|
2300
|
-
result = imul(result, 31) + (this.
|
|
2301
|
-
result = imul(result, 31) + (this.
|
|
2302
|
-
result = imul(result, 31) + (this.
|
|
2303
|
-
result = imul(result, 31) + (this.
|
|
2304
|
-
result = imul(result, 31) + (this.
|
|
2324
|
+
var result = this.j1h_1 == null ? 0 : this.j1h_1.hashCode();
|
|
2325
|
+
result = imul(result, 31) + (this.k1h_1 == null ? 0 : getStringHashCode(this.k1h_1)) | 0;
|
|
2326
|
+
result = imul(result, 31) + (this.l1h_1 == null ? 0 : getStringHashCode(this.l1h_1)) | 0;
|
|
2327
|
+
result = imul(result, 31) + (this.m1h_1 == null ? 0 : getBooleanHashCode(this.m1h_1)) | 0;
|
|
2328
|
+
result = imul(result, 31) + (this.n1h_1 == null ? 0 : getStringHashCode(this.n1h_1)) | 0;
|
|
2329
|
+
result = imul(result, 31) + (this.o1h_1 == null ? 0 : getStringHashCode(this.o1h_1)) | 0;
|
|
2330
|
+
result = imul(result, 31) + (this.p1h_1 == null ? 0 : getStringHashCode(this.p1h_1)) | 0;
|
|
2331
|
+
result = imul(result, 31) + (this.q1h_1 == null ? 0 : getStringHashCode(this.q1h_1)) | 0;
|
|
2332
|
+
result = imul(result, 31) + (this.r1h_1 == null ? 0 : getStringHashCode(this.r1h_1)) | 0;
|
|
2305
2333
|
return result;
|
|
2306
2334
|
};
|
|
2307
2335
|
protoOf(IngredientItem).equals = function (other) {
|
|
@@ -2309,23 +2337,23 @@
|
|
|
2309
2337
|
return true;
|
|
2310
2338
|
if (!(other instanceof IngredientItem))
|
|
2311
2339
|
return false;
|
|
2312
|
-
if (!equals(this.
|
|
2340
|
+
if (!equals(this.j1h_1, other.j1h_1))
|
|
2313
2341
|
return false;
|
|
2314
|
-
if (!(this.
|
|
2342
|
+
if (!(this.k1h_1 == other.k1h_1))
|
|
2315
2343
|
return false;
|
|
2316
|
-
if (!(this.
|
|
2344
|
+
if (!(this.l1h_1 == other.l1h_1))
|
|
2317
2345
|
return false;
|
|
2318
|
-
if (!(this.
|
|
2346
|
+
if (!(this.m1h_1 == other.m1h_1))
|
|
2319
2347
|
return false;
|
|
2320
|
-
if (!(this.
|
|
2348
|
+
if (!(this.n1h_1 == other.n1h_1))
|
|
2321
2349
|
return false;
|
|
2322
|
-
if (!(this.
|
|
2350
|
+
if (!(this.o1h_1 == other.o1h_1))
|
|
2323
2351
|
return false;
|
|
2324
|
-
if (!(this.
|
|
2352
|
+
if (!(this.p1h_1 == other.p1h_1))
|
|
2325
2353
|
return false;
|
|
2326
|
-
if (!(this.
|
|
2354
|
+
if (!(this.q1h_1 == other.q1h_1))
|
|
2327
2355
|
return false;
|
|
2328
|
-
if (!(this.
|
|
2356
|
+
if (!(this.r1h_1 == other.r1h_1))
|
|
2329
2357
|
return false;
|
|
2330
2358
|
return true;
|
|
2331
2359
|
};
|
|
@@ -2338,63 +2366,63 @@
|
|
|
2338
2366
|
function $serializer_6() {
|
|
2339
2367
|
$serializer_instance_6 = this;
|
|
2340
2368
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Range', this, 2);
|
|
2341
|
-
tmp0_serialDesc.
|
|
2342
|
-
tmp0_serialDesc.
|
|
2343
|
-
this.
|
|
2344
|
-
}
|
|
2345
|
-
protoOf($serializer_6).
|
|
2346
|
-
var tmp0_desc = this.
|
|
2347
|
-
var tmp1_output = encoder.
|
|
2348
|
-
if (tmp1_output.
|
|
2349
|
-
tmp1_output.
|
|
2369
|
+
tmp0_serialDesc.zs('max', true);
|
|
2370
|
+
tmp0_serialDesc.zs('min', true);
|
|
2371
|
+
this.k1j_1 = tmp0_serialDesc;
|
|
2372
|
+
}
|
|
2373
|
+
protoOf($serializer_6).l1j = function (encoder, value) {
|
|
2374
|
+
var tmp0_desc = this.k1j_1;
|
|
2375
|
+
var tmp1_output = encoder.ql(tmp0_desc);
|
|
2376
|
+
if (tmp1_output.mn(tmp0_desc, 0) ? true : !(value.m1j_1 == null)) {
|
|
2377
|
+
tmp1_output.in(tmp0_desc, 0, DoubleSerializer_getInstance(), value.m1j_1);
|
|
2350
2378
|
}
|
|
2351
|
-
if (tmp1_output.
|
|
2352
|
-
tmp1_output.
|
|
2379
|
+
if (tmp1_output.mn(tmp0_desc, 1) ? true : !(value.n1j_1 == null)) {
|
|
2380
|
+
tmp1_output.in(tmp0_desc, 1, DoubleSerializer_getInstance(), value.n1j_1);
|
|
2353
2381
|
}
|
|
2354
|
-
tmp1_output.
|
|
2382
|
+
tmp1_output.rl(tmp0_desc);
|
|
2355
2383
|
};
|
|
2356
|
-
protoOf($serializer_6).
|
|
2357
|
-
return this.
|
|
2384
|
+
protoOf($serializer_6).ti = function (encoder, value) {
|
|
2385
|
+
return this.l1j(encoder, value instanceof Range ? value : THROW_CCE());
|
|
2358
2386
|
};
|
|
2359
|
-
protoOf($serializer_6).
|
|
2360
|
-
var tmp0_desc = this.
|
|
2387
|
+
protoOf($serializer_6).ui = function (decoder) {
|
|
2388
|
+
var tmp0_desc = this.k1j_1;
|
|
2361
2389
|
var tmp1_flag = true;
|
|
2362
2390
|
var tmp2_index = 0;
|
|
2363
2391
|
var tmp3_bitMask0 = 0;
|
|
2364
2392
|
var tmp4_local0 = null;
|
|
2365
2393
|
var tmp5_local1 = null;
|
|
2366
|
-
var tmp6_input = decoder.
|
|
2367
|
-
if (tmp6_input.
|
|
2368
|
-
tmp4_local0 = tmp6_input.
|
|
2394
|
+
var tmp6_input = decoder.ql(tmp0_desc);
|
|
2395
|
+
if (tmp6_input.gm()) {
|
|
2396
|
+
tmp4_local0 = tmp6_input.em(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
2369
2397
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2370
|
-
tmp5_local1 = tmp6_input.
|
|
2398
|
+
tmp5_local1 = tmp6_input.em(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1);
|
|
2371
2399
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2372
2400
|
} else
|
|
2373
2401
|
while (tmp1_flag) {
|
|
2374
|
-
tmp2_index = tmp6_input.
|
|
2402
|
+
tmp2_index = tmp6_input.hm(tmp0_desc);
|
|
2375
2403
|
switch (tmp2_index) {
|
|
2376
2404
|
case -1:
|
|
2377
2405
|
tmp1_flag = false;
|
|
2378
2406
|
break;
|
|
2379
2407
|
case 0:
|
|
2380
|
-
tmp4_local0 = tmp6_input.
|
|
2408
|
+
tmp4_local0 = tmp6_input.em(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
2381
2409
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2382
2410
|
break;
|
|
2383
2411
|
case 1:
|
|
2384
|
-
tmp5_local1 = tmp6_input.
|
|
2412
|
+
tmp5_local1 = tmp6_input.em(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1);
|
|
2385
2413
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2386
2414
|
break;
|
|
2387
2415
|
default:
|
|
2388
2416
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2389
2417
|
}
|
|
2390
2418
|
}
|
|
2391
|
-
tmp6_input.
|
|
2419
|
+
tmp6_input.rl(tmp0_desc);
|
|
2392
2420
|
return Range_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2393
2421
|
};
|
|
2394
|
-
protoOf($serializer_6).
|
|
2395
|
-
return this.
|
|
2422
|
+
protoOf($serializer_6).si = function () {
|
|
2423
|
+
return this.k1j_1;
|
|
2396
2424
|
};
|
|
2397
|
-
protoOf($serializer_6).
|
|
2425
|
+
protoOf($serializer_6).bt = function () {
|
|
2398
2426
|
// Inline function 'kotlin.arrayOf' call
|
|
2399
2427
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2400
2428
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2408,16 +2436,16 @@
|
|
|
2408
2436
|
}
|
|
2409
2437
|
function Range_init_$Init$(seen0, max, min, serializationConstructorMarker, $this) {
|
|
2410
2438
|
if (!(0 === (0 & seen0))) {
|
|
2411
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().
|
|
2439
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().k1j_1);
|
|
2412
2440
|
}
|
|
2413
2441
|
if (0 === (seen0 & 1))
|
|
2414
|
-
$this.
|
|
2442
|
+
$this.m1j_1 = null;
|
|
2415
2443
|
else
|
|
2416
|
-
$this.
|
|
2444
|
+
$this.m1j_1 = max;
|
|
2417
2445
|
if (0 === (seen0 & 2))
|
|
2418
|
-
$this.
|
|
2446
|
+
$this.n1j_1 = null;
|
|
2419
2447
|
else
|
|
2420
|
-
$this.
|
|
2448
|
+
$this.n1j_1 = min;
|
|
2421
2449
|
return $this;
|
|
2422
2450
|
}
|
|
2423
2451
|
function Range_init_$Create$(seen0, max, min, serializationConstructorMarker) {
|
|
@@ -2426,15 +2454,15 @@
|
|
|
2426
2454
|
function Range(max, min) {
|
|
2427
2455
|
max = max === VOID ? null : max;
|
|
2428
2456
|
min = min === VOID ? null : min;
|
|
2429
|
-
this.
|
|
2430
|
-
this.
|
|
2457
|
+
this.m1j_1 = max;
|
|
2458
|
+
this.n1j_1 = min;
|
|
2431
2459
|
}
|
|
2432
2460
|
protoOf(Range).toString = function () {
|
|
2433
|
-
return 'Range(max=' + this.
|
|
2461
|
+
return 'Range(max=' + this.m1j_1 + ', min=' + this.n1j_1 + ')';
|
|
2434
2462
|
};
|
|
2435
2463
|
protoOf(Range).hashCode = function () {
|
|
2436
|
-
var result = this.
|
|
2437
|
-
result = imul(result, 31) + (this.
|
|
2464
|
+
var result = this.m1j_1 == null ? 0 : getNumberHashCode(this.m1j_1);
|
|
2465
|
+
result = imul(result, 31) + (this.n1j_1 == null ? 0 : getNumberHashCode(this.n1j_1)) | 0;
|
|
2438
2466
|
return result;
|
|
2439
2467
|
};
|
|
2440
2468
|
protoOf(Range).equals = function (other) {
|
|
@@ -2442,9 +2470,9 @@
|
|
|
2442
2470
|
return true;
|
|
2443
2471
|
if (!(other instanceof Range))
|
|
2444
2472
|
return false;
|
|
2445
|
-
if (!equals(this.
|
|
2473
|
+
if (!equals(this.m1j_1, other.m1j_1))
|
|
2446
2474
|
return false;
|
|
2447
|
-
if (!equals(this.
|
|
2475
|
+
if (!equals(this.n1j_1, other.n1j_1))
|
|
2448
2476
|
return false;
|
|
2449
2477
|
return true;
|
|
2450
2478
|
};
|
|
@@ -2458,7 +2486,7 @@
|
|
|
2458
2486
|
// Inline function 'kotlin.arrayOf' call
|
|
2459
2487
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2460
2488
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2461
|
-
tmp.
|
|
2489
|
+
tmp.o1j_1 = [null, null, lazy(tmp_0, Instruction$Companion$$childSerializers$_anonymous__sbbefw), null];
|
|
2462
2490
|
}
|
|
2463
2491
|
var Companion_instance_6;
|
|
2464
2492
|
function Companion_getInstance_5() {
|
|
@@ -2469,33 +2497,33 @@
|
|
|
2469
2497
|
function $serializer_7() {
|
|
2470
2498
|
$serializer_instance_7 = this;
|
|
2471
2499
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Instruction', this, 4);
|
|
2472
|
-
tmp0_serialDesc.
|
|
2473
|
-
tmp0_serialDesc.
|
|
2474
|
-
tmp0_serialDesc.
|
|
2475
|
-
tmp0_serialDesc.
|
|
2476
|
-
this.
|
|
2477
|
-
}
|
|
2478
|
-
protoOf($serializer_7).
|
|
2479
|
-
var tmp0_desc = this.
|
|
2480
|
-
var tmp1_output = encoder.
|
|
2481
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
2482
|
-
tmp1_output.
|
|
2483
|
-
if (tmp1_output.
|
|
2484
|
-
tmp1_output.
|
|
2500
|
+
tmp0_serialDesc.zs('description', false);
|
|
2501
|
+
tmp0_serialDesc.zs('descriptionTemplate', true);
|
|
2502
|
+
tmp0_serialDesc.zs('images', true);
|
|
2503
|
+
tmp0_serialDesc.zs('stepNumber', true);
|
|
2504
|
+
this.p1j_1 = tmp0_serialDesc;
|
|
2505
|
+
}
|
|
2506
|
+
protoOf($serializer_7).q1j = function (encoder, value) {
|
|
2507
|
+
var tmp0_desc = this.p1j_1;
|
|
2508
|
+
var tmp1_output = encoder.ql(tmp0_desc);
|
|
2509
|
+
var tmp2_cached = Companion_getInstance_5().o1j_1;
|
|
2510
|
+
tmp1_output.en(tmp0_desc, 0, value.t1h_1);
|
|
2511
|
+
if (tmp1_output.mn(tmp0_desc, 1) ? true : !(value.u1h_1 == null)) {
|
|
2512
|
+
tmp1_output.in(tmp0_desc, 1, StringSerializer_getInstance(), value.u1h_1);
|
|
2485
2513
|
}
|
|
2486
|
-
if (tmp1_output.
|
|
2487
|
-
tmp1_output.
|
|
2514
|
+
if (tmp1_output.mn(tmp0_desc, 2) ? true : !(value.v1h_1 == null)) {
|
|
2515
|
+
tmp1_output.in(tmp0_desc, 2, tmp2_cached[2].g2(), value.v1h_1);
|
|
2488
2516
|
}
|
|
2489
|
-
if (tmp1_output.
|
|
2490
|
-
tmp1_output.
|
|
2517
|
+
if (tmp1_output.mn(tmp0_desc, 3) ? true : !(value.w1h_1 == null)) {
|
|
2518
|
+
tmp1_output.in(tmp0_desc, 3, DoubleSerializer_getInstance(), value.w1h_1);
|
|
2491
2519
|
}
|
|
2492
|
-
tmp1_output.
|
|
2520
|
+
tmp1_output.rl(tmp0_desc);
|
|
2493
2521
|
};
|
|
2494
|
-
protoOf($serializer_7).
|
|
2495
|
-
return this.
|
|
2522
|
+
protoOf($serializer_7).ti = function (encoder, value) {
|
|
2523
|
+
return this.q1j(encoder, value instanceof Instruction ? value : THROW_CCE());
|
|
2496
2524
|
};
|
|
2497
|
-
protoOf($serializer_7).
|
|
2498
|
-
var tmp0_desc = this.
|
|
2525
|
+
protoOf($serializer_7).ui = function (decoder) {
|
|
2526
|
+
var tmp0_desc = this.p1j_1;
|
|
2499
2527
|
var tmp1_flag = true;
|
|
2500
2528
|
var tmp2_index = 0;
|
|
2501
2529
|
var tmp3_bitMask0 = 0;
|
|
@@ -2503,56 +2531,56 @@
|
|
|
2503
2531
|
var tmp5_local1 = null;
|
|
2504
2532
|
var tmp6_local2 = null;
|
|
2505
2533
|
var tmp7_local3 = null;
|
|
2506
|
-
var tmp8_input = decoder.
|
|
2507
|
-
var tmp9_cached = Companion_getInstance_5().
|
|
2508
|
-
if (tmp8_input.
|
|
2509
|
-
tmp4_local0 = tmp8_input.
|
|
2534
|
+
var tmp8_input = decoder.ql(tmp0_desc);
|
|
2535
|
+
var tmp9_cached = Companion_getInstance_5().o1j_1;
|
|
2536
|
+
if (tmp8_input.gm()) {
|
|
2537
|
+
tmp4_local0 = tmp8_input.am(tmp0_desc, 0);
|
|
2510
2538
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2511
|
-
tmp5_local1 = tmp8_input.
|
|
2539
|
+
tmp5_local1 = tmp8_input.em(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2512
2540
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2513
|
-
tmp6_local2 = tmp8_input.
|
|
2541
|
+
tmp6_local2 = tmp8_input.em(tmp0_desc, 2, tmp9_cached[2].g2(), tmp6_local2);
|
|
2514
2542
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2515
|
-
tmp7_local3 = tmp8_input.
|
|
2543
|
+
tmp7_local3 = tmp8_input.em(tmp0_desc, 3, DoubleSerializer_getInstance(), tmp7_local3);
|
|
2516
2544
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2517
2545
|
} else
|
|
2518
2546
|
while (tmp1_flag) {
|
|
2519
|
-
tmp2_index = tmp8_input.
|
|
2547
|
+
tmp2_index = tmp8_input.hm(tmp0_desc);
|
|
2520
2548
|
switch (tmp2_index) {
|
|
2521
2549
|
case -1:
|
|
2522
2550
|
tmp1_flag = false;
|
|
2523
2551
|
break;
|
|
2524
2552
|
case 0:
|
|
2525
|
-
tmp4_local0 = tmp8_input.
|
|
2553
|
+
tmp4_local0 = tmp8_input.am(tmp0_desc, 0);
|
|
2526
2554
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2527
2555
|
break;
|
|
2528
2556
|
case 1:
|
|
2529
|
-
tmp5_local1 = tmp8_input.
|
|
2557
|
+
tmp5_local1 = tmp8_input.em(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2530
2558
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2531
2559
|
break;
|
|
2532
2560
|
case 2:
|
|
2533
|
-
tmp6_local2 = tmp8_input.
|
|
2561
|
+
tmp6_local2 = tmp8_input.em(tmp0_desc, 2, tmp9_cached[2].g2(), tmp6_local2);
|
|
2534
2562
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2535
2563
|
break;
|
|
2536
2564
|
case 3:
|
|
2537
|
-
tmp7_local3 = tmp8_input.
|
|
2565
|
+
tmp7_local3 = tmp8_input.em(tmp0_desc, 3, DoubleSerializer_getInstance(), tmp7_local3);
|
|
2538
2566
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2539
2567
|
break;
|
|
2540
2568
|
default:
|
|
2541
2569
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2542
2570
|
}
|
|
2543
2571
|
}
|
|
2544
|
-
tmp8_input.
|
|
2572
|
+
tmp8_input.rl(tmp0_desc);
|
|
2545
2573
|
return Instruction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2546
2574
|
};
|
|
2547
|
-
protoOf($serializer_7).
|
|
2548
|
-
return this.
|
|
2575
|
+
protoOf($serializer_7).si = function () {
|
|
2576
|
+
return this.p1j_1;
|
|
2549
2577
|
};
|
|
2550
|
-
protoOf($serializer_7).
|
|
2551
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
2578
|
+
protoOf($serializer_7).bt = function () {
|
|
2579
|
+
var tmp0_cached = Companion_getInstance_5().o1j_1;
|
|
2552
2580
|
// Inline function 'kotlin.arrayOf' call
|
|
2553
2581
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2554
2582
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2555
|
-
return [StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[2].
|
|
2583
|
+
return [StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[2].g2()), get_nullable(DoubleSerializer_getInstance())];
|
|
2556
2584
|
};
|
|
2557
2585
|
var $serializer_instance_7;
|
|
2558
2586
|
function $serializer_getInstance_7() {
|
|
@@ -2562,21 +2590,21 @@
|
|
|
2562
2590
|
}
|
|
2563
2591
|
function Instruction_init_$Init$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker, $this) {
|
|
2564
2592
|
if (!(1 === (1 & seen0))) {
|
|
2565
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_7().
|
|
2593
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_7().p1j_1);
|
|
2566
2594
|
}
|
|
2567
|
-
$this.
|
|
2595
|
+
$this.t1h_1 = description;
|
|
2568
2596
|
if (0 === (seen0 & 2))
|
|
2569
|
-
$this.
|
|
2597
|
+
$this.u1h_1 = null;
|
|
2570
2598
|
else
|
|
2571
|
-
$this.
|
|
2599
|
+
$this.u1h_1 = descriptionTemplate;
|
|
2572
2600
|
if (0 === (seen0 & 4))
|
|
2573
|
-
$this.
|
|
2601
|
+
$this.v1h_1 = null;
|
|
2574
2602
|
else
|
|
2575
|
-
$this.
|
|
2603
|
+
$this.v1h_1 = images;
|
|
2576
2604
|
if (0 === (seen0 & 8))
|
|
2577
|
-
$this.
|
|
2605
|
+
$this.w1h_1 = null;
|
|
2578
2606
|
else
|
|
2579
|
-
$this.
|
|
2607
|
+
$this.w1h_1 = stepNumber;
|
|
2580
2608
|
return $this;
|
|
2581
2609
|
}
|
|
2582
2610
|
function Instruction_init_$Create$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker) {
|
|
@@ -2587,29 +2615,29 @@
|
|
|
2587
2615
|
descriptionTemplate = descriptionTemplate === VOID ? null : descriptionTemplate;
|
|
2588
2616
|
images = images === VOID ? null : images;
|
|
2589
2617
|
stepNumber = stepNumber === VOID ? null : stepNumber;
|
|
2590
|
-
this.
|
|
2591
|
-
this.
|
|
2592
|
-
this.
|
|
2593
|
-
this.
|
|
2618
|
+
this.t1h_1 = description;
|
|
2619
|
+
this.u1h_1 = descriptionTemplate;
|
|
2620
|
+
this.v1h_1 = images;
|
|
2621
|
+
this.w1h_1 = stepNumber;
|
|
2594
2622
|
}
|
|
2595
|
-
protoOf(Instruction).
|
|
2623
|
+
protoOf(Instruction).r1j = function (description, descriptionTemplate, images, stepNumber) {
|
|
2596
2624
|
return new Instruction(description, descriptionTemplate, images, stepNumber);
|
|
2597
2625
|
};
|
|
2598
|
-
protoOf(Instruction).
|
|
2599
|
-
description = description === VOID ? this.
|
|
2600
|
-
descriptionTemplate = descriptionTemplate === VOID ? this.
|
|
2601
|
-
images = images === VOID ? this.
|
|
2602
|
-
stepNumber = stepNumber === VOID ? this.
|
|
2603
|
-
return $super === VOID ? this.
|
|
2626
|
+
protoOf(Instruction).x1h = function (description, descriptionTemplate, images, stepNumber, $super) {
|
|
2627
|
+
description = description === VOID ? this.t1h_1 : description;
|
|
2628
|
+
descriptionTemplate = descriptionTemplate === VOID ? this.u1h_1 : descriptionTemplate;
|
|
2629
|
+
images = images === VOID ? this.v1h_1 : images;
|
|
2630
|
+
stepNumber = stepNumber === VOID ? this.w1h_1 : stepNumber;
|
|
2631
|
+
return $super === VOID ? this.r1j(description, descriptionTemplate, images, stepNumber) : $super.r1j.call(this, description, descriptionTemplate, images, stepNumber);
|
|
2604
2632
|
};
|
|
2605
2633
|
protoOf(Instruction).toString = function () {
|
|
2606
|
-
return 'Instruction(description=' + this.
|
|
2634
|
+
return 'Instruction(description=' + this.t1h_1 + ', descriptionTemplate=' + this.u1h_1 + ', images=' + toString(this.v1h_1) + ', stepNumber=' + this.w1h_1 + ')';
|
|
2607
2635
|
};
|
|
2608
2636
|
protoOf(Instruction).hashCode = function () {
|
|
2609
|
-
var result = getStringHashCode(this.
|
|
2610
|
-
result = imul(result, 31) + (this.
|
|
2611
|
-
result = imul(result, 31) + (this.
|
|
2612
|
-
result = imul(result, 31) + (this.
|
|
2637
|
+
var result = getStringHashCode(this.t1h_1);
|
|
2638
|
+
result = imul(result, 31) + (this.u1h_1 == null ? 0 : getStringHashCode(this.u1h_1)) | 0;
|
|
2639
|
+
result = imul(result, 31) + (this.v1h_1 == null ? 0 : hashCode(this.v1h_1)) | 0;
|
|
2640
|
+
result = imul(result, 31) + (this.w1h_1 == null ? 0 : getNumberHashCode(this.w1h_1)) | 0;
|
|
2613
2641
|
return result;
|
|
2614
2642
|
};
|
|
2615
2643
|
protoOf(Instruction).equals = function (other) {
|
|
@@ -2617,85 +2645,85 @@
|
|
|
2617
2645
|
return true;
|
|
2618
2646
|
if (!(other instanceof Instruction))
|
|
2619
2647
|
return false;
|
|
2620
|
-
if (!(this.
|
|
2648
|
+
if (!(this.t1h_1 === other.t1h_1))
|
|
2621
2649
|
return false;
|
|
2622
|
-
if (!(this.
|
|
2650
|
+
if (!(this.u1h_1 == other.u1h_1))
|
|
2623
2651
|
return false;
|
|
2624
|
-
if (!equals(this.
|
|
2652
|
+
if (!equals(this.v1h_1, other.v1h_1))
|
|
2625
2653
|
return false;
|
|
2626
|
-
if (!equals(this.
|
|
2654
|
+
if (!equals(this.w1h_1, other.w1h_1))
|
|
2627
2655
|
return false;
|
|
2628
2656
|
return true;
|
|
2629
2657
|
};
|
|
2630
2658
|
function $serializer_8() {
|
|
2631
2659
|
$serializer_instance_8 = this;
|
|
2632
2660
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Serves', this, 3);
|
|
2633
|
-
tmp0_serialDesc.
|
|
2634
|
-
tmp0_serialDesc.
|
|
2635
|
-
tmp0_serialDesc.
|
|
2636
|
-
this.
|
|
2637
|
-
}
|
|
2638
|
-
protoOf($serializer_8).
|
|
2639
|
-
var tmp0_desc = this.
|
|
2640
|
-
var tmp1_output = encoder.
|
|
2641
|
-
if (tmp1_output.
|
|
2642
|
-
tmp1_output.
|
|
2661
|
+
tmp0_serialDesc.zs('amount', true);
|
|
2662
|
+
tmp0_serialDesc.zs('text', true);
|
|
2663
|
+
tmp0_serialDesc.zs('unit', false);
|
|
2664
|
+
this.s1j_1 = tmp0_serialDesc;
|
|
2665
|
+
}
|
|
2666
|
+
protoOf($serializer_8).t1j = function (encoder, value) {
|
|
2667
|
+
var tmp0_desc = this.s1j_1;
|
|
2668
|
+
var tmp1_output = encoder.ql(tmp0_desc);
|
|
2669
|
+
if (tmp1_output.mn(tmp0_desc, 0) ? true : !(value.u1j_1 == null)) {
|
|
2670
|
+
tmp1_output.in(tmp0_desc, 0, $serializer_getInstance_6(), value.u1j_1);
|
|
2643
2671
|
}
|
|
2644
|
-
if (tmp1_output.
|
|
2645
|
-
tmp1_output.
|
|
2672
|
+
if (tmp1_output.mn(tmp0_desc, 1) ? true : !(value.v1j_1 == null)) {
|
|
2673
|
+
tmp1_output.in(tmp0_desc, 1, StringSerializer_getInstance(), value.v1j_1);
|
|
2646
2674
|
}
|
|
2647
|
-
tmp1_output.
|
|
2648
|
-
tmp1_output.
|
|
2675
|
+
tmp1_output.en(tmp0_desc, 2, value.w1j_1);
|
|
2676
|
+
tmp1_output.rl(tmp0_desc);
|
|
2649
2677
|
};
|
|
2650
|
-
protoOf($serializer_8).
|
|
2651
|
-
return this.
|
|
2678
|
+
protoOf($serializer_8).ti = function (encoder, value) {
|
|
2679
|
+
return this.t1j(encoder, value instanceof Serves ? value : THROW_CCE());
|
|
2652
2680
|
};
|
|
2653
|
-
protoOf($serializer_8).
|
|
2654
|
-
var tmp0_desc = this.
|
|
2681
|
+
protoOf($serializer_8).ui = function (decoder) {
|
|
2682
|
+
var tmp0_desc = this.s1j_1;
|
|
2655
2683
|
var tmp1_flag = true;
|
|
2656
2684
|
var tmp2_index = 0;
|
|
2657
2685
|
var tmp3_bitMask0 = 0;
|
|
2658
2686
|
var tmp4_local0 = null;
|
|
2659
2687
|
var tmp5_local1 = null;
|
|
2660
2688
|
var tmp6_local2 = null;
|
|
2661
|
-
var tmp7_input = decoder.
|
|
2662
|
-
if (tmp7_input.
|
|
2663
|
-
tmp4_local0 = tmp7_input.
|
|
2689
|
+
var tmp7_input = decoder.ql(tmp0_desc);
|
|
2690
|
+
if (tmp7_input.gm()) {
|
|
2691
|
+
tmp4_local0 = tmp7_input.em(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2664
2692
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2665
|
-
tmp5_local1 = tmp7_input.
|
|
2693
|
+
tmp5_local1 = tmp7_input.em(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2666
2694
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2667
|
-
tmp6_local2 = tmp7_input.
|
|
2695
|
+
tmp6_local2 = tmp7_input.am(tmp0_desc, 2);
|
|
2668
2696
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2669
2697
|
} else
|
|
2670
2698
|
while (tmp1_flag) {
|
|
2671
|
-
tmp2_index = tmp7_input.
|
|
2699
|
+
tmp2_index = tmp7_input.hm(tmp0_desc);
|
|
2672
2700
|
switch (tmp2_index) {
|
|
2673
2701
|
case -1:
|
|
2674
2702
|
tmp1_flag = false;
|
|
2675
2703
|
break;
|
|
2676
2704
|
case 0:
|
|
2677
|
-
tmp4_local0 = tmp7_input.
|
|
2705
|
+
tmp4_local0 = tmp7_input.em(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2678
2706
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2679
2707
|
break;
|
|
2680
2708
|
case 1:
|
|
2681
|
-
tmp5_local1 = tmp7_input.
|
|
2709
|
+
tmp5_local1 = tmp7_input.em(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2682
2710
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2683
2711
|
break;
|
|
2684
2712
|
case 2:
|
|
2685
|
-
tmp6_local2 = tmp7_input.
|
|
2713
|
+
tmp6_local2 = tmp7_input.am(tmp0_desc, 2);
|
|
2686
2714
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2687
2715
|
break;
|
|
2688
2716
|
default:
|
|
2689
2717
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2690
2718
|
}
|
|
2691
2719
|
}
|
|
2692
|
-
tmp7_input.
|
|
2720
|
+
tmp7_input.rl(tmp0_desc);
|
|
2693
2721
|
return Serves_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2694
2722
|
};
|
|
2695
|
-
protoOf($serializer_8).
|
|
2696
|
-
return this.
|
|
2723
|
+
protoOf($serializer_8).si = function () {
|
|
2724
|
+
return this.s1j_1;
|
|
2697
2725
|
};
|
|
2698
|
-
protoOf($serializer_8).
|
|
2726
|
+
protoOf($serializer_8).bt = function () {
|
|
2699
2727
|
// Inline function 'kotlin.arrayOf' call
|
|
2700
2728
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2701
2729
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2709,17 +2737,17 @@
|
|
|
2709
2737
|
}
|
|
2710
2738
|
function Serves_init_$Init$(seen0, amount, text, unit, serializationConstructorMarker, $this) {
|
|
2711
2739
|
if (!(4 === (4 & seen0))) {
|
|
2712
|
-
throwMissingFieldException(seen0, 4, $serializer_getInstance_8().
|
|
2740
|
+
throwMissingFieldException(seen0, 4, $serializer_getInstance_8().s1j_1);
|
|
2713
2741
|
}
|
|
2714
2742
|
if (0 === (seen0 & 1))
|
|
2715
|
-
$this.
|
|
2743
|
+
$this.u1j_1 = null;
|
|
2716
2744
|
else
|
|
2717
|
-
$this.
|
|
2745
|
+
$this.u1j_1 = amount;
|
|
2718
2746
|
if (0 === (seen0 & 2))
|
|
2719
|
-
$this.
|
|
2747
|
+
$this.v1j_1 = null;
|
|
2720
2748
|
else
|
|
2721
|
-
$this.
|
|
2722
|
-
$this.
|
|
2749
|
+
$this.v1j_1 = text;
|
|
2750
|
+
$this.w1j_1 = unit;
|
|
2723
2751
|
return $this;
|
|
2724
2752
|
}
|
|
2725
2753
|
function Serves_init_$Create$(seen0, amount, text, unit, serializationConstructorMarker) {
|
|
@@ -2728,12 +2756,12 @@
|
|
|
2728
2756
|
function Serves() {
|
|
2729
2757
|
}
|
|
2730
2758
|
protoOf(Serves).toString = function () {
|
|
2731
|
-
return 'Serves(amount=' + toString(this.
|
|
2759
|
+
return 'Serves(amount=' + toString(this.u1j_1) + ', text=' + this.v1j_1 + ', unit=' + this.w1j_1 + ')';
|
|
2732
2760
|
};
|
|
2733
2761
|
protoOf(Serves).hashCode = function () {
|
|
2734
|
-
var result = this.
|
|
2735
|
-
result = imul(result, 31) + (this.
|
|
2736
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2762
|
+
var result = this.u1j_1 == null ? 0 : this.u1j_1.hashCode();
|
|
2763
|
+
result = imul(result, 31) + (this.v1j_1 == null ? 0 : getStringHashCode(this.v1j_1)) | 0;
|
|
2764
|
+
result = imul(result, 31) + getStringHashCode(this.w1j_1) | 0;
|
|
2737
2765
|
return result;
|
|
2738
2766
|
};
|
|
2739
2767
|
protoOf(Serves).equals = function (other) {
|
|
@@ -2741,11 +2769,11 @@
|
|
|
2741
2769
|
return true;
|
|
2742
2770
|
if (!(other instanceof Serves))
|
|
2743
2771
|
return false;
|
|
2744
|
-
if (!equals(this.
|
|
2772
|
+
if (!equals(this.u1j_1, other.u1j_1))
|
|
2745
2773
|
return false;
|
|
2746
|
-
if (!(this.
|
|
2774
|
+
if (!(this.v1j_1 == other.v1j_1))
|
|
2747
2775
|
return false;
|
|
2748
|
-
if (!(this.
|
|
2776
|
+
if (!(this.w1j_1 === other.w1j_1))
|
|
2749
2777
|
return false;
|
|
2750
2778
|
return true;
|
|
2751
2779
|
};
|
|
@@ -2758,74 +2786,74 @@
|
|
|
2758
2786
|
function $serializer_9() {
|
|
2759
2787
|
$serializer_instance_9 = this;
|
|
2760
2788
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Timing', this, 3);
|
|
2761
|
-
tmp0_serialDesc.
|
|
2762
|
-
tmp0_serialDesc.
|
|
2763
|
-
tmp0_serialDesc.
|
|
2764
|
-
this.
|
|
2765
|
-
}
|
|
2766
|
-
protoOf($serializer_9).
|
|
2767
|
-
var tmp0_desc = this.
|
|
2768
|
-
var tmp1_output = encoder.
|
|
2769
|
-
if (tmp1_output.
|
|
2770
|
-
tmp1_output.
|
|
2789
|
+
tmp0_serialDesc.zs('durationInMins', true);
|
|
2790
|
+
tmp0_serialDesc.zs('qualifier', true);
|
|
2791
|
+
tmp0_serialDesc.zs('text', true);
|
|
2792
|
+
this.x1j_1 = tmp0_serialDesc;
|
|
2793
|
+
}
|
|
2794
|
+
protoOf($serializer_9).y1j = function (encoder, value) {
|
|
2795
|
+
var tmp0_desc = this.x1j_1;
|
|
2796
|
+
var tmp1_output = encoder.ql(tmp0_desc);
|
|
2797
|
+
if (tmp1_output.mn(tmp0_desc, 0) ? true : !(value.z1j_1 == null)) {
|
|
2798
|
+
tmp1_output.in(tmp0_desc, 0, $serializer_getInstance_6(), value.z1j_1);
|
|
2771
2799
|
}
|
|
2772
|
-
if (tmp1_output.
|
|
2773
|
-
tmp1_output.
|
|
2800
|
+
if (tmp1_output.mn(tmp0_desc, 1) ? true : !(value.a1k_1 == null)) {
|
|
2801
|
+
tmp1_output.in(tmp0_desc, 1, StringSerializer_getInstance(), value.a1k_1);
|
|
2774
2802
|
}
|
|
2775
|
-
if (tmp1_output.
|
|
2776
|
-
tmp1_output.
|
|
2803
|
+
if (tmp1_output.mn(tmp0_desc, 2) ? true : !(value.b1k_1 == null)) {
|
|
2804
|
+
tmp1_output.in(tmp0_desc, 2, StringSerializer_getInstance(), value.b1k_1);
|
|
2777
2805
|
}
|
|
2778
|
-
tmp1_output.
|
|
2806
|
+
tmp1_output.rl(tmp0_desc);
|
|
2779
2807
|
};
|
|
2780
|
-
protoOf($serializer_9).
|
|
2781
|
-
return this.
|
|
2808
|
+
protoOf($serializer_9).ti = function (encoder, value) {
|
|
2809
|
+
return this.y1j(encoder, value instanceof Timing ? value : THROW_CCE());
|
|
2782
2810
|
};
|
|
2783
|
-
protoOf($serializer_9).
|
|
2784
|
-
var tmp0_desc = this.
|
|
2811
|
+
protoOf($serializer_9).ui = function (decoder) {
|
|
2812
|
+
var tmp0_desc = this.x1j_1;
|
|
2785
2813
|
var tmp1_flag = true;
|
|
2786
2814
|
var tmp2_index = 0;
|
|
2787
2815
|
var tmp3_bitMask0 = 0;
|
|
2788
2816
|
var tmp4_local0 = null;
|
|
2789
2817
|
var tmp5_local1 = null;
|
|
2790
2818
|
var tmp6_local2 = null;
|
|
2791
|
-
var tmp7_input = decoder.
|
|
2792
|
-
if (tmp7_input.
|
|
2793
|
-
tmp4_local0 = tmp7_input.
|
|
2819
|
+
var tmp7_input = decoder.ql(tmp0_desc);
|
|
2820
|
+
if (tmp7_input.gm()) {
|
|
2821
|
+
tmp4_local0 = tmp7_input.em(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2794
2822
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2795
|
-
tmp5_local1 = tmp7_input.
|
|
2823
|
+
tmp5_local1 = tmp7_input.em(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2796
2824
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2797
|
-
tmp6_local2 = tmp7_input.
|
|
2825
|
+
tmp6_local2 = tmp7_input.em(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2798
2826
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2799
2827
|
} else
|
|
2800
2828
|
while (tmp1_flag) {
|
|
2801
|
-
tmp2_index = tmp7_input.
|
|
2829
|
+
tmp2_index = tmp7_input.hm(tmp0_desc);
|
|
2802
2830
|
switch (tmp2_index) {
|
|
2803
2831
|
case -1:
|
|
2804
2832
|
tmp1_flag = false;
|
|
2805
2833
|
break;
|
|
2806
2834
|
case 0:
|
|
2807
|
-
tmp4_local0 = tmp7_input.
|
|
2835
|
+
tmp4_local0 = tmp7_input.em(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2808
2836
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2809
2837
|
break;
|
|
2810
2838
|
case 1:
|
|
2811
|
-
tmp5_local1 = tmp7_input.
|
|
2839
|
+
tmp5_local1 = tmp7_input.em(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2812
2840
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2813
2841
|
break;
|
|
2814
2842
|
case 2:
|
|
2815
|
-
tmp6_local2 = tmp7_input.
|
|
2843
|
+
tmp6_local2 = tmp7_input.em(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2816
2844
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2817
2845
|
break;
|
|
2818
2846
|
default:
|
|
2819
2847
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2820
2848
|
}
|
|
2821
2849
|
}
|
|
2822
|
-
tmp7_input.
|
|
2850
|
+
tmp7_input.rl(tmp0_desc);
|
|
2823
2851
|
return Timing_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2824
2852
|
};
|
|
2825
|
-
protoOf($serializer_9).
|
|
2826
|
-
return this.
|
|
2853
|
+
protoOf($serializer_9).si = function () {
|
|
2854
|
+
return this.x1j_1;
|
|
2827
2855
|
};
|
|
2828
|
-
protoOf($serializer_9).
|
|
2856
|
+
protoOf($serializer_9).bt = function () {
|
|
2829
2857
|
// Inline function 'kotlin.arrayOf' call
|
|
2830
2858
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2831
2859
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2839,20 +2867,20 @@
|
|
|
2839
2867
|
}
|
|
2840
2868
|
function Timing_init_$Init$(seen0, durationInMins, qualifier, text, serializationConstructorMarker, $this) {
|
|
2841
2869
|
if (!(0 === (0 & seen0))) {
|
|
2842
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().
|
|
2870
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().x1j_1);
|
|
2843
2871
|
}
|
|
2844
2872
|
if (0 === (seen0 & 1))
|
|
2845
|
-
$this.
|
|
2873
|
+
$this.z1j_1 = null;
|
|
2846
2874
|
else
|
|
2847
|
-
$this.
|
|
2875
|
+
$this.z1j_1 = durationInMins;
|
|
2848
2876
|
if (0 === (seen0 & 2))
|
|
2849
|
-
$this.
|
|
2877
|
+
$this.a1k_1 = null;
|
|
2850
2878
|
else
|
|
2851
|
-
$this.
|
|
2879
|
+
$this.a1k_1 = qualifier;
|
|
2852
2880
|
if (0 === (seen0 & 4))
|
|
2853
|
-
$this.
|
|
2881
|
+
$this.b1k_1 = null;
|
|
2854
2882
|
else
|
|
2855
|
-
$this.
|
|
2883
|
+
$this.b1k_1 = text;
|
|
2856
2884
|
return $this;
|
|
2857
2885
|
}
|
|
2858
2886
|
function Timing_init_$Create$(seen0, durationInMins, qualifier, text, serializationConstructorMarker) {
|
|
@@ -2862,17 +2890,17 @@
|
|
|
2862
2890
|
durationInMins = durationInMins === VOID ? null : durationInMins;
|
|
2863
2891
|
qualifier = qualifier === VOID ? null : qualifier;
|
|
2864
2892
|
text = text === VOID ? null : text;
|
|
2865
|
-
this.
|
|
2866
|
-
this.
|
|
2867
|
-
this.
|
|
2893
|
+
this.z1j_1 = durationInMins;
|
|
2894
|
+
this.a1k_1 = qualifier;
|
|
2895
|
+
this.b1k_1 = text;
|
|
2868
2896
|
}
|
|
2869
2897
|
protoOf(Timing).toString = function () {
|
|
2870
|
-
return 'Timing(durationInMins=' + toString(this.
|
|
2898
|
+
return 'Timing(durationInMins=' + toString(this.z1j_1) + ', qualifier=' + this.a1k_1 + ', text=' + this.b1k_1 + ')';
|
|
2871
2899
|
};
|
|
2872
2900
|
protoOf(Timing).hashCode = function () {
|
|
2873
|
-
var result = this.
|
|
2874
|
-
result = imul(result, 31) + (this.
|
|
2875
|
-
result = imul(result, 31) + (this.
|
|
2901
|
+
var result = this.z1j_1 == null ? 0 : this.z1j_1.hashCode();
|
|
2902
|
+
result = imul(result, 31) + (this.a1k_1 == null ? 0 : getStringHashCode(this.a1k_1)) | 0;
|
|
2903
|
+
result = imul(result, 31) + (this.b1k_1 == null ? 0 : getStringHashCode(this.b1k_1)) | 0;
|
|
2876
2904
|
return result;
|
|
2877
2905
|
};
|
|
2878
2906
|
protoOf(Timing).equals = function (other) {
|
|
@@ -2880,29 +2908,29 @@
|
|
|
2880
2908
|
return true;
|
|
2881
2909
|
if (!(other instanceof Timing))
|
|
2882
2910
|
return false;
|
|
2883
|
-
if (!equals(this.
|
|
2911
|
+
if (!equals(this.z1j_1, other.z1j_1))
|
|
2884
2912
|
return false;
|
|
2885
|
-
if (!(this.
|
|
2913
|
+
if (!(this.a1k_1 == other.a1k_1))
|
|
2886
2914
|
return false;
|
|
2887
|
-
if (!(this.
|
|
2915
|
+
if (!(this.b1k_1 == other.b1k_1))
|
|
2888
2916
|
return false;
|
|
2889
2917
|
return true;
|
|
2890
2918
|
};
|
|
2891
2919
|
function ParsedTemplate(elements) {
|
|
2892
|
-
this.
|
|
2920
|
+
this.j1g_1 = elements;
|
|
2893
2921
|
}
|
|
2894
2922
|
protoOf(ParsedTemplate).toString = function () {
|
|
2895
|
-
return 'ParsedTemplate(elements=' + toString_0(this.
|
|
2923
|
+
return 'ParsedTemplate(elements=' + toString_0(this.j1g_1) + ')';
|
|
2896
2924
|
};
|
|
2897
2925
|
protoOf(ParsedTemplate).hashCode = function () {
|
|
2898
|
-
return hashCode(this.
|
|
2926
|
+
return hashCode(this.j1g_1);
|
|
2899
2927
|
};
|
|
2900
2928
|
protoOf(ParsedTemplate).equals = function (other) {
|
|
2901
2929
|
if (this === other)
|
|
2902
2930
|
return true;
|
|
2903
2931
|
if (!(other instanceof ParsedTemplate))
|
|
2904
2932
|
return false;
|
|
2905
|
-
if (!equals(this.
|
|
2933
|
+
if (!equals(this.j1g_1, other.j1g_1))
|
|
2906
2934
|
return false;
|
|
2907
2935
|
return true;
|
|
2908
2936
|
};
|
|
@@ -2918,51 +2946,51 @@
|
|
|
2918
2946
|
var parts = ArrayList_init_$Create$_0();
|
|
2919
2947
|
var lastEnd = 0;
|
|
2920
2948
|
// Inline function 'kotlin.sequences.forEach' call
|
|
2921
|
-
var _iterator__ex2g4s = pattern.
|
|
2949
|
+
var _iterator__ex2g4s = pattern.xa(template).q();
|
|
2922
2950
|
while (_iterator__ex2g4s.r()) {
|
|
2923
2951
|
var element = _iterator__ex2g4s.s();
|
|
2924
|
-
if (element.
|
|
2925
|
-
var textPart = substring(template, lastEnd, element.
|
|
2952
|
+
if (element.za().d1_1 > lastEnd) {
|
|
2953
|
+
var textPart = substring(template, lastEnd, element.za().d1_1);
|
|
2926
2954
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2927
2955
|
if (charSequenceLength(textPart) > 0) {
|
|
2928
2956
|
parts.u(new TemplateConst(textPart));
|
|
2929
2957
|
}
|
|
2930
2958
|
}
|
|
2931
2959
|
try {
|
|
2932
|
-
var jsonObj = get_jsonObject(Default_getInstance().
|
|
2933
|
-
if (jsonObj.
|
|
2960
|
+
var jsonObj = get_jsonObject(Default_getInstance().e12(element.g2()));
|
|
2961
|
+
if (jsonObj.k2().x('min')) {
|
|
2934
2962
|
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
2935
2963
|
var this_0 = get_tolerantJson();
|
|
2936
2964
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2937
|
-
var this_1 = this_0.
|
|
2965
|
+
var this_1 = this_0.fm();
|
|
2938
2966
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2939
2967
|
var this_2 = serializer(this_1, createKType(getKClass(QuantityPlaceholder), arrayOf([]), false));
|
|
2940
2968
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
2941
2969
|
// Inline function 'kotlin.let' call
|
|
2942
|
-
var it = this_0.
|
|
2970
|
+
var it = this_0.d12(tmp$ret$5, jsonObj);
|
|
2943
2971
|
parts.u(it);
|
|
2944
2972
|
} else {
|
|
2945
2973
|
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
2946
2974
|
var this_3 = get_tolerantJson();
|
|
2947
2975
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2948
|
-
var this_4 = this_3.
|
|
2976
|
+
var this_4 = this_3.fm();
|
|
2949
2977
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2950
2978
|
var this_5 = serializer(this_4, createKType(getKClass(OvenTemperaturePlaceholder), arrayOf([]), false));
|
|
2951
2979
|
var tmp$ret$10 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
2952
2980
|
// Inline function 'kotlin.let' call
|
|
2953
|
-
var it_0 = this_3.
|
|
2981
|
+
var it_0 = this_3.d12(tmp$ret$10, jsonObj);
|
|
2954
2982
|
parts.u(it_0);
|
|
2955
2983
|
}
|
|
2956
2984
|
} catch ($p) {
|
|
2957
2985
|
if ($p instanceof Exception) {
|
|
2958
2986
|
var e = $p;
|
|
2959
|
-
print('Failed to parse JSON: ' + element.
|
|
2960
|
-
parts.u(new TemplateConst(element.
|
|
2987
|
+
print('Failed to parse JSON: ' + element.g2() + ', error: ' + e.message);
|
|
2988
|
+
parts.u(new TemplateConst(element.g2()));
|
|
2961
2989
|
} else {
|
|
2962
2990
|
throw $p;
|
|
2963
2991
|
}
|
|
2964
2992
|
}
|
|
2965
|
-
lastEnd = element.
|
|
2993
|
+
lastEnd = element.za().e1_1 + 1 | 0;
|
|
2966
2994
|
}
|
|
2967
2995
|
if (lastEnd < template.length) {
|
|
2968
2996
|
var remaining = substring_0(template, lastEnd);
|
|
@@ -2975,7 +3003,7 @@
|
|
|
2975
3003
|
}
|
|
2976
3004
|
function tolerantJson$lambda($this$Json) {
|
|
2977
3005
|
_init_properties_Parser_kt__o3jwn5();
|
|
2978
|
-
$this$Json.
|
|
3006
|
+
$this$Json.x12_1 = true;
|
|
2979
3007
|
return Unit_instance;
|
|
2980
3008
|
}
|
|
2981
3009
|
var properties_initialized_Parser_kt_5uifb3;
|
|
@@ -2990,18 +3018,18 @@
|
|
|
2990
3018
|
function TemplateConst(value) {
|
|
2991
3019
|
this.value = value;
|
|
2992
3020
|
}
|
|
2993
|
-
protoOf(TemplateConst).
|
|
3021
|
+
protoOf(TemplateConst).g2 = function () {
|
|
2994
3022
|
return this.value;
|
|
2995
3023
|
};
|
|
2996
|
-
protoOf(TemplateConst).
|
|
3024
|
+
protoOf(TemplateConst).fd = function () {
|
|
2997
3025
|
return this.value;
|
|
2998
3026
|
};
|
|
2999
|
-
protoOf(TemplateConst).
|
|
3027
|
+
protoOf(TemplateConst).c1k = function (value) {
|
|
3000
3028
|
return new TemplateConst(value);
|
|
3001
3029
|
};
|
|
3002
3030
|
protoOf(TemplateConst).copy = function (value, $super) {
|
|
3003
3031
|
value = value === VOID ? this.value : value;
|
|
3004
|
-
return $super === VOID ? this.
|
|
3032
|
+
return $super === VOID ? this.c1k(value) : $super.c1k.call(this, value);
|
|
3005
3033
|
};
|
|
3006
3034
|
protoOf(TemplateConst).toString = function () {
|
|
3007
3035
|
return 'TemplateConst(value=' + this.value + ')';
|
|
@@ -3027,40 +3055,40 @@
|
|
|
3027
3055
|
function $serializer_10() {
|
|
3028
3056
|
$serializer_instance_10 = this;
|
|
3029
3057
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.QuantityPlaceholder', this, 6);
|
|
3030
|
-
tmp0_serialDesc.
|
|
3031
|
-
tmp0_serialDesc.
|
|
3032
|
-
tmp0_serialDesc.
|
|
3033
|
-
tmp0_serialDesc.
|
|
3034
|
-
tmp0_serialDesc.
|
|
3035
|
-
tmp0_serialDesc.
|
|
3036
|
-
this.
|
|
3037
|
-
}
|
|
3038
|
-
protoOf($serializer_10).
|
|
3039
|
-
var tmp0_desc = this.
|
|
3040
|
-
var tmp1_output = encoder.
|
|
3041
|
-
tmp1_output.
|
|
3042
|
-
if (tmp1_output.
|
|
3043
|
-
tmp1_output.
|
|
3058
|
+
tmp0_serialDesc.zs('min', false);
|
|
3059
|
+
tmp0_serialDesc.zs('max', true);
|
|
3060
|
+
tmp0_serialDesc.zs('unit', true);
|
|
3061
|
+
tmp0_serialDesc.zs('scale', true);
|
|
3062
|
+
tmp0_serialDesc.zs('ingredient', true);
|
|
3063
|
+
tmp0_serialDesc.zs('usCust', true);
|
|
3064
|
+
this.d1k_1 = tmp0_serialDesc;
|
|
3065
|
+
}
|
|
3066
|
+
protoOf($serializer_10).e1k = function (encoder, value) {
|
|
3067
|
+
var tmp0_desc = this.d1k_1;
|
|
3068
|
+
var tmp1_output = encoder.ql(tmp0_desc);
|
|
3069
|
+
tmp1_output.bn(tmp0_desc, 0, value.min);
|
|
3070
|
+
if (tmp1_output.mn(tmp0_desc, 1) ? true : !(value.max == null)) {
|
|
3071
|
+
tmp1_output.in(tmp0_desc, 1, FloatSerializer_getInstance(), value.max);
|
|
3044
3072
|
}
|
|
3045
|
-
if (tmp1_output.
|
|
3046
|
-
tmp1_output.
|
|
3073
|
+
if (tmp1_output.mn(tmp0_desc, 2) ? true : !(value.unit == null)) {
|
|
3074
|
+
tmp1_output.in(tmp0_desc, 2, StringSerializer_getInstance(), value.unit);
|
|
3047
3075
|
}
|
|
3048
|
-
if (tmp1_output.
|
|
3049
|
-
tmp1_output.
|
|
3076
|
+
if (tmp1_output.mn(tmp0_desc, 3) ? true : !(value.scale === false)) {
|
|
3077
|
+
tmp1_output.wm(tmp0_desc, 3, value.scale);
|
|
3050
3078
|
}
|
|
3051
|
-
if (tmp1_output.
|
|
3052
|
-
tmp1_output.
|
|
3079
|
+
if (tmp1_output.mn(tmp0_desc, 4) ? true : !(value.ingredient == null)) {
|
|
3080
|
+
tmp1_output.in(tmp0_desc, 4, StringSerializer_getInstance(), value.ingredient);
|
|
3053
3081
|
}
|
|
3054
|
-
if (tmp1_output.
|
|
3055
|
-
tmp1_output.
|
|
3082
|
+
if (tmp1_output.mn(tmp0_desc, 5) ? true : !(value.usCust == null)) {
|
|
3083
|
+
tmp1_output.in(tmp0_desc, 5, BooleanSerializer_getInstance(), value.usCust);
|
|
3056
3084
|
}
|
|
3057
|
-
tmp1_output.
|
|
3085
|
+
tmp1_output.rl(tmp0_desc);
|
|
3058
3086
|
};
|
|
3059
|
-
protoOf($serializer_10).
|
|
3060
|
-
return this.
|
|
3087
|
+
protoOf($serializer_10).ti = function (encoder, value) {
|
|
3088
|
+
return this.e1k(encoder, value instanceof QuantityPlaceholder ? value : THROW_CCE());
|
|
3061
3089
|
};
|
|
3062
|
-
protoOf($serializer_10).
|
|
3063
|
-
var tmp0_desc = this.
|
|
3090
|
+
protoOf($serializer_10).ui = function (decoder) {
|
|
3091
|
+
var tmp0_desc = this.d1k_1;
|
|
3064
3092
|
var tmp1_flag = true;
|
|
3065
3093
|
var tmp2_index = 0;
|
|
3066
3094
|
var tmp3_bitMask0 = 0;
|
|
@@ -3070,62 +3098,62 @@
|
|
|
3070
3098
|
var tmp7_local3 = false;
|
|
3071
3099
|
var tmp8_local4 = null;
|
|
3072
3100
|
var tmp9_local5 = null;
|
|
3073
|
-
var tmp10_input = decoder.
|
|
3074
|
-
if (tmp10_input.
|
|
3075
|
-
tmp4_local0 = tmp10_input.
|
|
3101
|
+
var tmp10_input = decoder.ql(tmp0_desc);
|
|
3102
|
+
if (tmp10_input.gm()) {
|
|
3103
|
+
tmp4_local0 = tmp10_input.xl(tmp0_desc, 0);
|
|
3076
3104
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3077
|
-
tmp5_local1 = tmp10_input.
|
|
3105
|
+
tmp5_local1 = tmp10_input.em(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
3078
3106
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3079
|
-
tmp6_local2 = tmp10_input.
|
|
3107
|
+
tmp6_local2 = tmp10_input.em(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
3080
3108
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3081
|
-
tmp7_local3 = tmp10_input.
|
|
3109
|
+
tmp7_local3 = tmp10_input.sl(tmp0_desc, 3);
|
|
3082
3110
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3083
|
-
tmp8_local4 = tmp10_input.
|
|
3111
|
+
tmp8_local4 = tmp10_input.em(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
3084
3112
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
3085
|
-
tmp9_local5 = tmp10_input.
|
|
3113
|
+
tmp9_local5 = tmp10_input.em(tmp0_desc, 5, BooleanSerializer_getInstance(), tmp9_local5);
|
|
3086
3114
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
3087
3115
|
} else
|
|
3088
3116
|
while (tmp1_flag) {
|
|
3089
|
-
tmp2_index = tmp10_input.
|
|
3117
|
+
tmp2_index = tmp10_input.hm(tmp0_desc);
|
|
3090
3118
|
switch (tmp2_index) {
|
|
3091
3119
|
case -1:
|
|
3092
3120
|
tmp1_flag = false;
|
|
3093
3121
|
break;
|
|
3094
3122
|
case 0:
|
|
3095
|
-
tmp4_local0 = tmp10_input.
|
|
3123
|
+
tmp4_local0 = tmp10_input.xl(tmp0_desc, 0);
|
|
3096
3124
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3097
3125
|
break;
|
|
3098
3126
|
case 1:
|
|
3099
|
-
tmp5_local1 = tmp10_input.
|
|
3127
|
+
tmp5_local1 = tmp10_input.em(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
3100
3128
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3101
3129
|
break;
|
|
3102
3130
|
case 2:
|
|
3103
|
-
tmp6_local2 = tmp10_input.
|
|
3131
|
+
tmp6_local2 = tmp10_input.em(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
3104
3132
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3105
3133
|
break;
|
|
3106
3134
|
case 3:
|
|
3107
|
-
tmp7_local3 = tmp10_input.
|
|
3135
|
+
tmp7_local3 = tmp10_input.sl(tmp0_desc, 3);
|
|
3108
3136
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3109
3137
|
break;
|
|
3110
3138
|
case 4:
|
|
3111
|
-
tmp8_local4 = tmp10_input.
|
|
3139
|
+
tmp8_local4 = tmp10_input.em(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
3112
3140
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
3113
3141
|
break;
|
|
3114
3142
|
case 5:
|
|
3115
|
-
tmp9_local5 = tmp10_input.
|
|
3143
|
+
tmp9_local5 = tmp10_input.em(tmp0_desc, 5, BooleanSerializer_getInstance(), tmp9_local5);
|
|
3116
3144
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
3117
3145
|
break;
|
|
3118
3146
|
default:
|
|
3119
3147
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
3120
3148
|
}
|
|
3121
3149
|
}
|
|
3122
|
-
tmp10_input.
|
|
3150
|
+
tmp10_input.rl(tmp0_desc);
|
|
3123
3151
|
return QuantityPlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
3124
3152
|
};
|
|
3125
|
-
protoOf($serializer_10).
|
|
3126
|
-
return this.
|
|
3153
|
+
protoOf($serializer_10).si = function () {
|
|
3154
|
+
return this.d1k_1;
|
|
3127
3155
|
};
|
|
3128
|
-
protoOf($serializer_10).
|
|
3156
|
+
protoOf($serializer_10).bt = function () {
|
|
3129
3157
|
// Inline function 'kotlin.arrayOf' call
|
|
3130
3158
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3131
3159
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3139,7 +3167,7 @@
|
|
|
3139
3167
|
}
|
|
3140
3168
|
function QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, ingredient, usCust, serializationConstructorMarker, $this) {
|
|
3141
3169
|
if (!(1 === (1 & seen0))) {
|
|
3142
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().
|
|
3170
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().d1k_1);
|
|
3143
3171
|
}
|
|
3144
3172
|
$this.min = min;
|
|
3145
3173
|
if (0 === (seen0 & 2))
|
|
@@ -3180,43 +3208,43 @@
|
|
|
3180
3208
|
this.ingredient = ingredient;
|
|
3181
3209
|
this.usCust = usCust;
|
|
3182
3210
|
}
|
|
3183
|
-
protoOf(QuantityPlaceholder).
|
|
3211
|
+
protoOf(QuantityPlaceholder).f1k = function () {
|
|
3184
3212
|
return this.min;
|
|
3185
3213
|
};
|
|
3186
|
-
protoOf(QuantityPlaceholder).
|
|
3214
|
+
protoOf(QuantityPlaceholder).g1k = function () {
|
|
3187
3215
|
return this.max;
|
|
3188
3216
|
};
|
|
3189
|
-
protoOf(QuantityPlaceholder).
|
|
3217
|
+
protoOf(QuantityPlaceholder).h1k = function () {
|
|
3190
3218
|
return this.unit;
|
|
3191
3219
|
};
|
|
3192
|
-
protoOf(QuantityPlaceholder).
|
|
3220
|
+
protoOf(QuantityPlaceholder).i1k = function () {
|
|
3193
3221
|
return this.scale;
|
|
3194
3222
|
};
|
|
3195
|
-
protoOf(QuantityPlaceholder).
|
|
3223
|
+
protoOf(QuantityPlaceholder).j1k = function () {
|
|
3196
3224
|
return this.ingredient;
|
|
3197
3225
|
};
|
|
3198
|
-
protoOf(QuantityPlaceholder).
|
|
3226
|
+
protoOf(QuantityPlaceholder).k1k = function () {
|
|
3199
3227
|
return this.usCust;
|
|
3200
3228
|
};
|
|
3201
|
-
protoOf(QuantityPlaceholder).
|
|
3229
|
+
protoOf(QuantityPlaceholder).fd = function () {
|
|
3202
3230
|
return this.min;
|
|
3203
3231
|
};
|
|
3204
|
-
protoOf(QuantityPlaceholder).
|
|
3232
|
+
protoOf(QuantityPlaceholder).gd = function () {
|
|
3205
3233
|
return this.max;
|
|
3206
3234
|
};
|
|
3207
|
-
protoOf(QuantityPlaceholder).
|
|
3235
|
+
protoOf(QuantityPlaceholder).l1k = function () {
|
|
3208
3236
|
return this.unit;
|
|
3209
3237
|
};
|
|
3210
|
-
protoOf(QuantityPlaceholder).
|
|
3238
|
+
protoOf(QuantityPlaceholder).m1k = function () {
|
|
3211
3239
|
return this.scale;
|
|
3212
3240
|
};
|
|
3213
|
-
protoOf(QuantityPlaceholder).
|
|
3241
|
+
protoOf(QuantityPlaceholder).n1k = function () {
|
|
3214
3242
|
return this.ingredient;
|
|
3215
3243
|
};
|
|
3216
|
-
protoOf(QuantityPlaceholder).
|
|
3244
|
+
protoOf(QuantityPlaceholder).o1k = function () {
|
|
3217
3245
|
return this.usCust;
|
|
3218
3246
|
};
|
|
3219
|
-
protoOf(QuantityPlaceholder).
|
|
3247
|
+
protoOf(QuantityPlaceholder).p1k = function (min, max, unit, scale, ingredient, usCust) {
|
|
3220
3248
|
return new QuantityPlaceholder(min, max, unit, scale, ingredient, usCust);
|
|
3221
3249
|
};
|
|
3222
3250
|
protoOf(QuantityPlaceholder).copy = function (min, max, unit, scale, ingredient, usCust, $super) {
|
|
@@ -3226,7 +3254,7 @@
|
|
|
3226
3254
|
scale = scale === VOID ? this.scale : scale;
|
|
3227
3255
|
ingredient = ingredient === VOID ? this.ingredient : ingredient;
|
|
3228
3256
|
usCust = usCust === VOID ? this.usCust : usCust;
|
|
3229
|
-
return $super === VOID ? this.
|
|
3257
|
+
return $super === VOID ? this.p1k(min, max, unit, scale, ingredient, usCust) : $super.p1k.call(this, min, max, unit, scale, ingredient, usCust);
|
|
3230
3258
|
};
|
|
3231
3259
|
protoOf(QuantityPlaceholder).toString = function () {
|
|
3232
3260
|
return 'QuantityPlaceholder(min=' + this.min + ', max=' + this.max + ', unit=' + this.unit + ', scale=' + this.scale + ', ingredient=' + this.ingredient + ', usCust=' + this.usCust + ')';
|
|
@@ -3268,34 +3296,34 @@
|
|
|
3268
3296
|
function $serializer_11() {
|
|
3269
3297
|
$serializer_instance_11 = this;
|
|
3270
3298
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.OvenTemperaturePlaceholder', this, 4);
|
|
3271
|
-
tmp0_serialDesc.
|
|
3272
|
-
tmp0_serialDesc.
|
|
3273
|
-
tmp0_serialDesc.
|
|
3274
|
-
tmp0_serialDesc.
|
|
3275
|
-
this.
|
|
3276
|
-
}
|
|
3277
|
-
protoOf($serializer_11).
|
|
3278
|
-
var tmp0_desc = this.
|
|
3279
|
-
var tmp1_output = encoder.
|
|
3280
|
-
if (tmp1_output.
|
|
3281
|
-
tmp1_output.
|
|
3299
|
+
tmp0_serialDesc.zs('temperatureC', true);
|
|
3300
|
+
tmp0_serialDesc.zs('temperatureFanC', true);
|
|
3301
|
+
tmp0_serialDesc.zs('temperatureF', true);
|
|
3302
|
+
tmp0_serialDesc.zs('gasMark', true);
|
|
3303
|
+
this.q1k_1 = tmp0_serialDesc;
|
|
3304
|
+
}
|
|
3305
|
+
protoOf($serializer_11).r1k = function (encoder, value) {
|
|
3306
|
+
var tmp0_desc = this.q1k_1;
|
|
3307
|
+
var tmp1_output = encoder.ql(tmp0_desc);
|
|
3308
|
+
if (tmp1_output.mn(tmp0_desc, 0) ? true : !(value.temperatureC == null)) {
|
|
3309
|
+
tmp1_output.in(tmp0_desc, 0, IntSerializer_getInstance(), value.temperatureC);
|
|
3282
3310
|
}
|
|
3283
|
-
if (tmp1_output.
|
|
3284
|
-
tmp1_output.
|
|
3311
|
+
if (tmp1_output.mn(tmp0_desc, 1) ? true : !(value.temperatureFanC == null)) {
|
|
3312
|
+
tmp1_output.in(tmp0_desc, 1, IntSerializer_getInstance(), value.temperatureFanC);
|
|
3285
3313
|
}
|
|
3286
|
-
if (tmp1_output.
|
|
3287
|
-
tmp1_output.
|
|
3314
|
+
if (tmp1_output.mn(tmp0_desc, 2) ? true : !(value.temperatureF == null)) {
|
|
3315
|
+
tmp1_output.in(tmp0_desc, 2, IntSerializer_getInstance(), value.temperatureF);
|
|
3288
3316
|
}
|
|
3289
|
-
if (tmp1_output.
|
|
3290
|
-
tmp1_output.
|
|
3317
|
+
if (tmp1_output.mn(tmp0_desc, 3) ? true : !(value.gasMark == null)) {
|
|
3318
|
+
tmp1_output.in(tmp0_desc, 3, FloatSerializer_getInstance(), value.gasMark);
|
|
3291
3319
|
}
|
|
3292
|
-
tmp1_output.
|
|
3320
|
+
tmp1_output.rl(tmp0_desc);
|
|
3293
3321
|
};
|
|
3294
|
-
protoOf($serializer_11).
|
|
3295
|
-
return this.
|
|
3322
|
+
protoOf($serializer_11).ti = function (encoder, value) {
|
|
3323
|
+
return this.r1k(encoder, value instanceof OvenTemperaturePlaceholder ? value : THROW_CCE());
|
|
3296
3324
|
};
|
|
3297
|
-
protoOf($serializer_11).
|
|
3298
|
-
var tmp0_desc = this.
|
|
3325
|
+
protoOf($serializer_11).ui = function (decoder) {
|
|
3326
|
+
var tmp0_desc = this.q1k_1;
|
|
3299
3327
|
var tmp1_flag = true;
|
|
3300
3328
|
var tmp2_index = 0;
|
|
3301
3329
|
var tmp3_bitMask0 = 0;
|
|
@@ -3303,50 +3331,50 @@
|
|
|
3303
3331
|
var tmp5_local1 = null;
|
|
3304
3332
|
var tmp6_local2 = null;
|
|
3305
3333
|
var tmp7_local3 = null;
|
|
3306
|
-
var tmp8_input = decoder.
|
|
3307
|
-
if (tmp8_input.
|
|
3308
|
-
tmp4_local0 = tmp8_input.
|
|
3334
|
+
var tmp8_input = decoder.ql(tmp0_desc);
|
|
3335
|
+
if (tmp8_input.gm()) {
|
|
3336
|
+
tmp4_local0 = tmp8_input.em(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
3309
3337
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3310
|
-
tmp5_local1 = tmp8_input.
|
|
3338
|
+
tmp5_local1 = tmp8_input.em(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
3311
3339
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3312
|
-
tmp6_local2 = tmp8_input.
|
|
3340
|
+
tmp6_local2 = tmp8_input.em(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
3313
3341
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3314
|
-
tmp7_local3 = tmp8_input.
|
|
3342
|
+
tmp7_local3 = tmp8_input.em(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
3315
3343
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3316
3344
|
} else
|
|
3317
3345
|
while (tmp1_flag) {
|
|
3318
|
-
tmp2_index = tmp8_input.
|
|
3346
|
+
tmp2_index = tmp8_input.hm(tmp0_desc);
|
|
3319
3347
|
switch (tmp2_index) {
|
|
3320
3348
|
case -1:
|
|
3321
3349
|
tmp1_flag = false;
|
|
3322
3350
|
break;
|
|
3323
3351
|
case 0:
|
|
3324
|
-
tmp4_local0 = tmp8_input.
|
|
3352
|
+
tmp4_local0 = tmp8_input.em(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
3325
3353
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3326
3354
|
break;
|
|
3327
3355
|
case 1:
|
|
3328
|
-
tmp5_local1 = tmp8_input.
|
|
3356
|
+
tmp5_local1 = tmp8_input.em(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
3329
3357
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3330
3358
|
break;
|
|
3331
3359
|
case 2:
|
|
3332
|
-
tmp6_local2 = tmp8_input.
|
|
3360
|
+
tmp6_local2 = tmp8_input.em(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
3333
3361
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3334
3362
|
break;
|
|
3335
3363
|
case 3:
|
|
3336
|
-
tmp7_local3 = tmp8_input.
|
|
3364
|
+
tmp7_local3 = tmp8_input.em(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
3337
3365
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3338
3366
|
break;
|
|
3339
3367
|
default:
|
|
3340
3368
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
3341
3369
|
}
|
|
3342
3370
|
}
|
|
3343
|
-
tmp8_input.
|
|
3371
|
+
tmp8_input.rl(tmp0_desc);
|
|
3344
3372
|
return OvenTemperaturePlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
3345
3373
|
};
|
|
3346
|
-
protoOf($serializer_11).
|
|
3347
|
-
return this.
|
|
3374
|
+
protoOf($serializer_11).si = function () {
|
|
3375
|
+
return this.q1k_1;
|
|
3348
3376
|
};
|
|
3349
|
-
protoOf($serializer_11).
|
|
3377
|
+
protoOf($serializer_11).bt = function () {
|
|
3350
3378
|
// Inline function 'kotlin.arrayOf' call
|
|
3351
3379
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3352
3380
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3360,7 +3388,7 @@
|
|
|
3360
3388
|
}
|
|
3361
3389
|
function OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, $this) {
|
|
3362
3390
|
if (!(0 === (0 & seen0))) {
|
|
3363
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_11().
|
|
3391
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_11().q1k_1);
|
|
3364
3392
|
}
|
|
3365
3393
|
if (0 === (seen0 & 1))
|
|
3366
3394
|
$this.temperatureC = null;
|
|
@@ -3393,31 +3421,31 @@
|
|
|
3393
3421
|
this.temperatureF = temperatureF;
|
|
3394
3422
|
this.gasMark = gasMark;
|
|
3395
3423
|
}
|
|
3396
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3424
|
+
protoOf(OvenTemperaturePlaceholder).s1k = function () {
|
|
3397
3425
|
return this.temperatureC;
|
|
3398
3426
|
};
|
|
3399
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3427
|
+
protoOf(OvenTemperaturePlaceholder).t1k = function () {
|
|
3400
3428
|
return this.temperatureFanC;
|
|
3401
3429
|
};
|
|
3402
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3430
|
+
protoOf(OvenTemperaturePlaceholder).u1k = function () {
|
|
3403
3431
|
return this.temperatureF;
|
|
3404
3432
|
};
|
|
3405
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3433
|
+
protoOf(OvenTemperaturePlaceholder).v1k = function () {
|
|
3406
3434
|
return this.gasMark;
|
|
3407
3435
|
};
|
|
3408
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3436
|
+
protoOf(OvenTemperaturePlaceholder).fd = function () {
|
|
3409
3437
|
return this.temperatureC;
|
|
3410
3438
|
};
|
|
3411
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3439
|
+
protoOf(OvenTemperaturePlaceholder).gd = function () {
|
|
3412
3440
|
return this.temperatureFanC;
|
|
3413
3441
|
};
|
|
3414
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3442
|
+
protoOf(OvenTemperaturePlaceholder).l1k = function () {
|
|
3415
3443
|
return this.temperatureF;
|
|
3416
3444
|
};
|
|
3417
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3445
|
+
protoOf(OvenTemperaturePlaceholder).m1k = function () {
|
|
3418
3446
|
return this.gasMark;
|
|
3419
3447
|
};
|
|
3420
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3448
|
+
protoOf(OvenTemperaturePlaceholder).w1k = function (temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
3421
3449
|
return new OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3422
3450
|
};
|
|
3423
3451
|
protoOf(OvenTemperaturePlaceholder).copy = function (temperatureC, temperatureFanC, temperatureF, gasMark, $super) {
|
|
@@ -3425,7 +3453,7 @@
|
|
|
3425
3453
|
temperatureFanC = temperatureFanC === VOID ? this.temperatureFanC : temperatureFanC;
|
|
3426
3454
|
temperatureF = temperatureF === VOID ? this.temperatureF : temperatureF;
|
|
3427
3455
|
gasMark = gasMark === VOID ? this.gasMark : gasMark;
|
|
3428
|
-
return $super === VOID ? this.
|
|
3456
|
+
return $super === VOID ? this.w1k(temperatureC, temperatureFanC, temperatureF, gasMark) : $super.w1k.call(this, temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3429
3457
|
};
|
|
3430
3458
|
protoOf(OvenTemperaturePlaceholder).toString = function () {
|
|
3431
3459
|
return 'OvenTemperaturePlaceholder(temperatureC=' + this.temperatureC + ', temperatureFanC=' + this.temperatureFanC + ', temperatureF=' + this.temperatureF + ', gasMark=' + this.gasMark + ')';
|
|
@@ -3510,25 +3538,25 @@
|
|
|
3510
3538
|
Enum.call(this, name, ordinal);
|
|
3511
3539
|
}
|
|
3512
3540
|
function MeasurementUnit(singular, plural, symbol, symbolPlural, unitType, measuringSystems, quantity) {
|
|
3513
|
-
this.
|
|
3514
|
-
this.
|
|
3515
|
-
this.
|
|
3516
|
-
this.
|
|
3517
|
-
this.
|
|
3518
|
-
this.
|
|
3519
|
-
this.
|
|
3541
|
+
this.a1g_1 = singular;
|
|
3542
|
+
this.b1g_1 = plural;
|
|
3543
|
+
this.c1g_1 = symbol;
|
|
3544
|
+
this.d1g_1 = symbolPlural;
|
|
3545
|
+
this.e1g_1 = unitType;
|
|
3546
|
+
this.f1g_1 = measuringSystems;
|
|
3547
|
+
this.g1g_1 = quantity;
|
|
3520
3548
|
}
|
|
3521
3549
|
protoOf(MeasurementUnit).toString = function () {
|
|
3522
|
-
return 'MeasurementUnit(singular=' + this.
|
|
3550
|
+
return 'MeasurementUnit(singular=' + this.a1g_1 + ', plural=' + this.b1g_1 + ', symbol=' + this.c1g_1 + ', symbolPlural=' + this.d1g_1 + ', unitType=' + toString(this.e1g_1) + ', measuringSystems=' + toString_0(this.f1g_1) + ', quantity=' + this.g1g_1 + ')';
|
|
3523
3551
|
};
|
|
3524
3552
|
protoOf(MeasurementUnit).hashCode = function () {
|
|
3525
|
-
var result = getStringHashCode(this.
|
|
3526
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3527
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3528
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3529
|
-
result = imul(result, 31) + (this.
|
|
3530
|
-
result = imul(result, 31) + hashCode(this.
|
|
3531
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3553
|
+
var result = getStringHashCode(this.a1g_1);
|
|
3554
|
+
result = imul(result, 31) + getStringHashCode(this.b1g_1) | 0;
|
|
3555
|
+
result = imul(result, 31) + getStringHashCode(this.c1g_1) | 0;
|
|
3556
|
+
result = imul(result, 31) + getStringHashCode(this.d1g_1) | 0;
|
|
3557
|
+
result = imul(result, 31) + (this.e1g_1 == null ? 0 : this.e1g_1.hashCode()) | 0;
|
|
3558
|
+
result = imul(result, 31) + hashCode(this.f1g_1) | 0;
|
|
3559
|
+
result = imul(result, 31) + getNumberHashCode(this.g1g_1) | 0;
|
|
3532
3560
|
return result;
|
|
3533
3561
|
};
|
|
3534
3562
|
protoOf(MeasurementUnit).equals = function (other) {
|
|
@@ -3536,19 +3564,19 @@
|
|
|
3536
3564
|
return true;
|
|
3537
3565
|
if (!(other instanceof MeasurementUnit))
|
|
3538
3566
|
return false;
|
|
3539
|
-
if (!(this.
|
|
3567
|
+
if (!(this.a1g_1 === other.a1g_1))
|
|
3540
3568
|
return false;
|
|
3541
|
-
if (!(this.
|
|
3569
|
+
if (!(this.b1g_1 === other.b1g_1))
|
|
3542
3570
|
return false;
|
|
3543
|
-
if (!(this.
|
|
3571
|
+
if (!(this.c1g_1 === other.c1g_1))
|
|
3544
3572
|
return false;
|
|
3545
|
-
if (!(this.
|
|
3573
|
+
if (!(this.d1g_1 === other.d1g_1))
|
|
3546
3574
|
return false;
|
|
3547
|
-
if (!equals(this.
|
|
3575
|
+
if (!equals(this.e1g_1, other.e1g_1))
|
|
3548
3576
|
return false;
|
|
3549
|
-
if (!equals(this.
|
|
3577
|
+
if (!equals(this.f1g_1, other.f1g_1))
|
|
3550
3578
|
return false;
|
|
3551
|
-
if (!equals(this.
|
|
3579
|
+
if (!equals(this.g1g_1, other.g1g_1))
|
|
3552
3580
|
return false;
|
|
3553
3581
|
return true;
|
|
3554
3582
|
};
|
|
@@ -3557,37 +3585,37 @@
|
|
|
3557
3585
|
var tmp = this;
|
|
3558
3586
|
var tmp0_unitType = UnitType_VOLUME_getInstance();
|
|
3559
3587
|
var tmp1_measuringSystems = setOf([USCustomary_instance, Imperial_instance]);
|
|
3560
|
-
tmp.
|
|
3561
|
-
this.
|
|
3562
|
-
this.
|
|
3563
|
-
this.
|
|
3564
|
-
this.
|
|
3565
|
-
this.
|
|
3566
|
-
this.
|
|
3567
|
-
this.
|
|
3568
|
-
this.
|
|
3569
|
-
this.
|
|
3570
|
-
this.
|
|
3571
|
-
this.
|
|
3572
|
-
this.
|
|
3573
|
-
this.
|
|
3574
|
-
this.
|
|
3575
|
-
this.
|
|
3576
|
-
this.
|
|
3577
|
-
this.
|
|
3578
|
-
this.
|
|
3579
|
-
this.
|
|
3580
|
-
this.
|
|
3581
|
-
this.
|
|
3588
|
+
tmp.m1e_1 = new MeasurementUnit('stick', 'sticks', 'stick', 'sticks', tmp0_unitType, tmp1_measuringSystems, 118.294);
|
|
3589
|
+
this.n1e_1 = new MeasurementUnit('gram', 'grams', 'g', 'g', UnitType_WEIGHT_getInstance(), setOf_0(Metric_instance), 1.0);
|
|
3590
|
+
this.o1e_1 = new MeasurementUnit('kilogram', 'kilograms', 'kg', 'kg', UnitType_WEIGHT_getInstance(), setOf_0(Metric_instance), 1000.0);
|
|
3591
|
+
this.p1e_1 = new MeasurementUnit('ounce', 'ounces', 'oz', 'oz', UnitType_WEIGHT_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 28.3495);
|
|
3592
|
+
this.q1e_1 = new MeasurementUnit('pound', 'pounds', 'lb', 'lbs', UnitType_WEIGHT_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 16 * this.p1e_1.g1g_1);
|
|
3593
|
+
this.r1e_1 = new MeasurementUnit('millilitre', 'millilitres', 'ml', 'ml', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 1.0);
|
|
3594
|
+
this.s1e_1 = new MeasurementUnit('centilitre', 'centilitres', 'cl', 'cl', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 10.0);
|
|
3595
|
+
this.t1e_1 = new MeasurementUnit('litre', 'litres', 'l', 'l', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 1000.0);
|
|
3596
|
+
this.u1e_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 5.0);
|
|
3597
|
+
this.v1e_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 15.0);
|
|
3598
|
+
this.w1e_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 4.9289);
|
|
3599
|
+
this.x1e_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 3 * this.w1e_1.g1g_1);
|
|
3600
|
+
this.y1e_1 = new MeasurementUnit('fluid ounce', 'fluid ounces', 'fl oz', 'fl oz', UnitType_VOLUME_getInstance(), setOf_0(Imperial_instance), 6 * this.w1e_1.g1g_1);
|
|
3601
|
+
this.z1e_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf_0(USCustomary_instance), 48 * this.w1e_1.g1g_1);
|
|
3602
|
+
this.a1f_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 250.0);
|
|
3603
|
+
this.b1f_1 = new MeasurementUnit('pint', 'pints', 'pt', 'pts', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 2 * this.z1e_1.g1g_1);
|
|
3604
|
+
this.c1f_1 = new MeasurementUnit('quart', 'quarts', 'qt', 'qts', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 2 * this.b1f_1.g1g_1);
|
|
3605
|
+
this.d1f_1 = new MeasurementUnit('gallon', 'gallons', 'gal', 'gals', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 4 * this.c1f_1.g1g_1);
|
|
3606
|
+
this.e1f_1 = new MeasurementUnit('millimetre', 'millimetres', 'mm', 'mm', UnitType_LENGTH_getInstance(), setOf_0(Metric_instance), 1.0);
|
|
3607
|
+
this.f1f_1 = new MeasurementUnit('centimetre', 'centimetres', 'cm', 'cm', UnitType_LENGTH_getInstance(), setOf_0(Metric_instance), 10.0);
|
|
3608
|
+
this.g1f_1 = new MeasurementUnit('inch', 'inches', 'in', 'in', UnitType_LENGTH_getInstance(), setOf_0(Imperial_instance), 25.4);
|
|
3609
|
+
this.h1f_1 = listOf([this.m1e_1, this.n1e_1, this.o1e_1, this.p1e_1, this.q1e_1, this.r1e_1, this.s1e_1, this.t1e_1, this.u1e_1, this.v1e_1, this.w1e_1, this.x1e_1, this.y1e_1, this.z1e_1, this.a1f_1, this.b1f_1, this.c1f_1, this.d1f_1, this.e1f_1, this.f1f_1, this.g1f_1]);
|
|
3582
3610
|
var tmp_0 = this;
|
|
3583
3611
|
// Inline function 'kotlin.collections.filter' call
|
|
3584
|
-
var tmp0 = this.
|
|
3612
|
+
var tmp0 = this.h1f_1;
|
|
3585
3613
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3586
3614
|
var destination = ArrayList_init_$Create$_0();
|
|
3587
3615
|
var _iterator__ex2g4s = tmp0.q();
|
|
3588
3616
|
while (_iterator__ex2g4s.r()) {
|
|
3589
3617
|
var element = _iterator__ex2g4s.s();
|
|
3590
|
-
if (element.
|
|
3618
|
+
if (element.f1g_1.x(Metric_instance)) {
|
|
3591
3619
|
destination.u(element);
|
|
3592
3620
|
}
|
|
3593
3621
|
}
|
|
@@ -3599,8 +3627,8 @@
|
|
|
3599
3627
|
var _iterator__ex2g4s_0 = destination.q();
|
|
3600
3628
|
while (_iterator__ex2g4s_0.r()) {
|
|
3601
3629
|
var element_0 = _iterator__ex2g4s_0.s();
|
|
3602
|
-
var tmp$ret$7 = element_0.
|
|
3603
|
-
destination_0.
|
|
3630
|
+
var tmp$ret$7 = element_0.c1g_1;
|
|
3631
|
+
destination_0.n2(tmp$ret$7, element_0);
|
|
3604
3632
|
}
|
|
3605
3633
|
var tmp_1 = destination_0;
|
|
3606
3634
|
// Inline function 'kotlin.collections.associateBy' call
|
|
@@ -3610,10 +3638,10 @@
|
|
|
3610
3638
|
var _iterator__ex2g4s_1 = destination.q();
|
|
3611
3639
|
while (_iterator__ex2g4s_1.r()) {
|
|
3612
3640
|
var element_1 = _iterator__ex2g4s_1.s();
|
|
3613
|
-
var tmp$ret$10 = element_1.
|
|
3614
|
-
destination_1.
|
|
3641
|
+
var tmp$ret$10 = element_1.d1g_1;
|
|
3642
|
+
destination_1.n2(tmp$ret$10, element_1);
|
|
3615
3643
|
}
|
|
3616
|
-
var tmp_2 =
|
|
3644
|
+
var tmp_2 = plus_0(tmp_1, destination_1);
|
|
3617
3645
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3618
3646
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3619
3647
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3621,10 +3649,10 @@
|
|
|
3621
3649
|
var _iterator__ex2g4s_2 = destination.q();
|
|
3622
3650
|
while (_iterator__ex2g4s_2.r()) {
|
|
3623
3651
|
var element_2 = _iterator__ex2g4s_2.s();
|
|
3624
|
-
var tmp$ret$13 = element_2.
|
|
3625
|
-
destination_2.
|
|
3652
|
+
var tmp$ret$13 = element_2.a1g_1;
|
|
3653
|
+
destination_2.n2(tmp$ret$13, element_2);
|
|
3626
3654
|
}
|
|
3627
|
-
var tmp_3 =
|
|
3655
|
+
var tmp_3 = plus_0(tmp_2, destination_2);
|
|
3628
3656
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3629
3657
|
var capacity_2 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3630
3658
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3632,19 +3660,19 @@
|
|
|
3632
3660
|
var _iterator__ex2g4s_3 = destination.q();
|
|
3633
3661
|
while (_iterator__ex2g4s_3.r()) {
|
|
3634
3662
|
var element_3 = _iterator__ex2g4s_3.s();
|
|
3635
|
-
var tmp$ret$16 = element_3.
|
|
3636
|
-
destination_3.
|
|
3663
|
+
var tmp$ret$16 = element_3.b1g_1;
|
|
3664
|
+
destination_3.n2(tmp$ret$16, element_3);
|
|
3637
3665
|
}
|
|
3638
|
-
tmp_0.
|
|
3666
|
+
tmp_0.i1f_1 = plus_0(tmp_3, destination_3);
|
|
3639
3667
|
var tmp_4 = this;
|
|
3640
3668
|
// Inline function 'kotlin.collections.filter' call
|
|
3641
|
-
var tmp0_0 = this.
|
|
3669
|
+
var tmp0_0 = this.h1f_1;
|
|
3642
3670
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3643
3671
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
3644
3672
|
var _iterator__ex2g4s_4 = tmp0_0.q();
|
|
3645
3673
|
while (_iterator__ex2g4s_4.r()) {
|
|
3646
3674
|
var element_4 = _iterator__ex2g4s_4.s();
|
|
3647
|
-
if (element_4.
|
|
3675
|
+
if (element_4.f1g_1.x(Imperial_instance)) {
|
|
3648
3676
|
destination_4.u(element_4);
|
|
3649
3677
|
}
|
|
3650
3678
|
}
|
|
@@ -3656,8 +3684,8 @@
|
|
|
3656
3684
|
var _iterator__ex2g4s_5 = destination_4.q();
|
|
3657
3685
|
while (_iterator__ex2g4s_5.r()) {
|
|
3658
3686
|
var element_5 = _iterator__ex2g4s_5.s();
|
|
3659
|
-
var tmp$ret$24 = element_5.
|
|
3660
|
-
destination_5.
|
|
3687
|
+
var tmp$ret$24 = element_5.c1g_1;
|
|
3688
|
+
destination_5.n2(tmp$ret$24, element_5);
|
|
3661
3689
|
}
|
|
3662
3690
|
var tmp_5 = destination_5;
|
|
3663
3691
|
// Inline function 'kotlin.collections.associateBy' call
|
|
@@ -3667,10 +3695,10 @@
|
|
|
3667
3695
|
var _iterator__ex2g4s_6 = destination_4.q();
|
|
3668
3696
|
while (_iterator__ex2g4s_6.r()) {
|
|
3669
3697
|
var element_6 = _iterator__ex2g4s_6.s();
|
|
3670
|
-
var tmp$ret$27 = element_6.
|
|
3671
|
-
destination_6.
|
|
3698
|
+
var tmp$ret$27 = element_6.d1g_1;
|
|
3699
|
+
destination_6.n2(tmp$ret$27, element_6);
|
|
3672
3700
|
}
|
|
3673
|
-
var tmp_6 =
|
|
3701
|
+
var tmp_6 = plus_0(tmp_5, destination_6);
|
|
3674
3702
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3675
3703
|
var capacity_5 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3676
3704
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3678,10 +3706,10 @@
|
|
|
3678
3706
|
var _iterator__ex2g4s_7 = destination_4.q();
|
|
3679
3707
|
while (_iterator__ex2g4s_7.r()) {
|
|
3680
3708
|
var element_7 = _iterator__ex2g4s_7.s();
|
|
3681
|
-
var tmp$ret$30 = element_7.
|
|
3682
|
-
destination_7.
|
|
3709
|
+
var tmp$ret$30 = element_7.a1g_1;
|
|
3710
|
+
destination_7.n2(tmp$ret$30, element_7);
|
|
3683
3711
|
}
|
|
3684
|
-
var tmp_7 =
|
|
3712
|
+
var tmp_7 = plus_0(tmp_6, destination_7);
|
|
3685
3713
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3686
3714
|
var capacity_6 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3687
3715
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3689,19 +3717,19 @@
|
|
|
3689
3717
|
var _iterator__ex2g4s_8 = destination_4.q();
|
|
3690
3718
|
while (_iterator__ex2g4s_8.r()) {
|
|
3691
3719
|
var element_8 = _iterator__ex2g4s_8.s();
|
|
3692
|
-
var tmp$ret$33 = element_8.
|
|
3693
|
-
destination_8.
|
|
3720
|
+
var tmp$ret$33 = element_8.b1g_1;
|
|
3721
|
+
destination_8.n2(tmp$ret$33, element_8);
|
|
3694
3722
|
}
|
|
3695
|
-
tmp_4.
|
|
3723
|
+
tmp_4.j1f_1 = plus_0(tmp_7, destination_8);
|
|
3696
3724
|
var tmp_8 = this;
|
|
3697
3725
|
// Inline function 'kotlin.collections.filter' call
|
|
3698
|
-
var tmp0_1 = this.
|
|
3726
|
+
var tmp0_1 = this.h1f_1;
|
|
3699
3727
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3700
3728
|
var destination_9 = ArrayList_init_$Create$_0();
|
|
3701
3729
|
var _iterator__ex2g4s_9 = tmp0_1.q();
|
|
3702
3730
|
while (_iterator__ex2g4s_9.r()) {
|
|
3703
3731
|
var element_9 = _iterator__ex2g4s_9.s();
|
|
3704
|
-
if (element_9.
|
|
3732
|
+
if (element_9.f1g_1.x(USCustomary_instance)) {
|
|
3705
3733
|
destination_9.u(element_9);
|
|
3706
3734
|
}
|
|
3707
3735
|
}
|
|
@@ -3713,8 +3741,8 @@
|
|
|
3713
3741
|
var _iterator__ex2g4s_10 = destination_9.q();
|
|
3714
3742
|
while (_iterator__ex2g4s_10.r()) {
|
|
3715
3743
|
var element_10 = _iterator__ex2g4s_10.s();
|
|
3716
|
-
var tmp$ret$41 = element_10.
|
|
3717
|
-
destination_10.
|
|
3744
|
+
var tmp$ret$41 = element_10.c1g_1;
|
|
3745
|
+
destination_10.n2(tmp$ret$41, element_10);
|
|
3718
3746
|
}
|
|
3719
3747
|
var tmp_9 = destination_10;
|
|
3720
3748
|
// Inline function 'kotlin.collections.associateBy' call
|
|
@@ -3724,10 +3752,10 @@
|
|
|
3724
3752
|
var _iterator__ex2g4s_11 = destination_9.q();
|
|
3725
3753
|
while (_iterator__ex2g4s_11.r()) {
|
|
3726
3754
|
var element_11 = _iterator__ex2g4s_11.s();
|
|
3727
|
-
var tmp$ret$44 = element_11.
|
|
3728
|
-
destination_11.
|
|
3755
|
+
var tmp$ret$44 = element_11.d1g_1;
|
|
3756
|
+
destination_11.n2(tmp$ret$44, element_11);
|
|
3729
3757
|
}
|
|
3730
|
-
var tmp_10 =
|
|
3758
|
+
var tmp_10 = plus_0(tmp_9, destination_11);
|
|
3731
3759
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3732
3760
|
var capacity_9 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3733
3761
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3735,10 +3763,10 @@
|
|
|
3735
3763
|
var _iterator__ex2g4s_12 = destination_9.q();
|
|
3736
3764
|
while (_iterator__ex2g4s_12.r()) {
|
|
3737
3765
|
var element_12 = _iterator__ex2g4s_12.s();
|
|
3738
|
-
var tmp$ret$47 = element_12.
|
|
3739
|
-
destination_12.
|
|
3766
|
+
var tmp$ret$47 = element_12.a1g_1;
|
|
3767
|
+
destination_12.n2(tmp$ret$47, element_12);
|
|
3740
3768
|
}
|
|
3741
|
-
var tmp_11 =
|
|
3769
|
+
var tmp_11 = plus_0(tmp_10, destination_12);
|
|
3742
3770
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3743
3771
|
var capacity_10 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3744
3772
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3746,15 +3774,15 @@
|
|
|
3746
3774
|
var _iterator__ex2g4s_13 = destination_9.q();
|
|
3747
3775
|
while (_iterator__ex2g4s_13.r()) {
|
|
3748
3776
|
var element_13 = _iterator__ex2g4s_13.s();
|
|
3749
|
-
var tmp$ret$50 = element_13.
|
|
3750
|
-
destination_13.
|
|
3777
|
+
var tmp$ret$50 = element_13.b1g_1;
|
|
3778
|
+
destination_13.n2(tmp$ret$50, element_13);
|
|
3751
3779
|
}
|
|
3752
|
-
tmp_8.
|
|
3780
|
+
tmp_8.k1f_1 = plus_0(tmp_11, destination_13);
|
|
3753
3781
|
}
|
|
3754
|
-
protoOf(Units).
|
|
3755
|
-
var tmp0_elvis_lhs = this.
|
|
3756
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? this.
|
|
3757
|
-
var unit = tmp1_elvis_lhs == null ? this.
|
|
3782
|
+
protoOf(Units).l1f = function (name) {
|
|
3783
|
+
var tmp0_elvis_lhs = this.i1f_1.j2(name);
|
|
3784
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? this.j1f_1.j2(name) : tmp0_elvis_lhs;
|
|
3785
|
+
var unit = tmp1_elvis_lhs == null ? this.k1f_1.j2(name) : tmp1_elvis_lhs;
|
|
3758
3786
|
if (!(unit == null)) {
|
|
3759
3787
|
return unit;
|
|
3760
3788
|
} else {
|
|
@@ -3783,40 +3811,40 @@
|
|
|
3783
3811
|
}
|
|
3784
3812
|
function UnitConversions() {
|
|
3785
3813
|
UnitConversions_instance = this;
|
|
3786
|
-
this.
|
|
3787
|
-
this.
|
|
3788
|
-
this.
|
|
3789
|
-
this.
|
|
3790
|
-
this.
|
|
3791
|
-
this.
|
|
3792
|
-
this.
|
|
3793
|
-
this.
|
|
3794
|
-
this.
|
|
3795
|
-
}
|
|
3796
|
-
protoOf(UnitConversions).
|
|
3814
|
+
this.q1f_1 = 0.00422675;
|
|
3815
|
+
this.r1f_1 = 0.202884;
|
|
3816
|
+
this.s1f_1 = setOf([Units_getInstance().u1e_1, Units_getInstance().v1e_1, Units_getInstance().a1f_1]);
|
|
3817
|
+
this.t1f_1 = listOf([to(0.0, Units_getInstance().n1e_1), to(1000.0, Units_getInstance().o1e_1), to(0.0, Units_getInstance().r1e_1), to(2.5, Units_getInstance().u1e_1), to(15.0, Units_getInstance().v1e_1), to(125.0, Units_getInstance().a1f_1), to(1000.0, Units_getInstance().t1e_1), to(0.0, Units_getInstance().e1f_1), to(10.0, Units_getInstance().f1f_1)]);
|
|
3818
|
+
this.u1f_1 = listOf([to(0.0, Units_getInstance().n1e_1), to(1000.0, Units_getInstance().o1e_1), to(0.0, Units_getInstance().r1e_1), to(1000.0, Units_getInstance().t1e_1), to(0.0, Units_getInstance().e1f_1), to(10.0, Units_getInstance().f1f_1)]);
|
|
3819
|
+
this.v1f_1 = listOf_0(to(0.0, Units_getInstance().m1e_1));
|
|
3820
|
+
this.w1f_1 = listOf([to(0.0, Units_getInstance().p1e_1), to(16.0 * Units_getInstance().p1e_1.g1g_1, Units_getInstance().q1e_1), to(0.0, Units_getInstance().w1e_1), to(3.0 * Units_getInstance().w1e_1.g1g_1, Units_getInstance().x1e_1), to(4.0 * Units_getInstance().w1e_1.g1g_1, Units_getInstance().w1e_1), to(6.0 * Units_getInstance().w1e_1.g1g_1, Units_getInstance().x1e_1), to(7.0 * Units_getInstance().w1e_1.g1g_1, Units_getInstance().w1e_1), to(9.0 * Units_getInstance().w1e_1.g1g_1, Units_getInstance().x1e_1), to(10.0 * Units_getInstance().w1e_1.g1g_1, Units_getInstance().w1e_1), to(12.0 * Units_getInstance().w1e_1.g1g_1, Units_getInstance().z1e_1), to(768.0 * Units_getInstance().w1e_1.g1g_1, Units_getInstance().d1f_1), to(0.0, Units_getInstance().g1f_1)]);
|
|
3821
|
+
this.x1f_1 = listOf([to(0.0, Units_getInstance().p1e_1), to(16.0 * Units_getInstance().p1e_1.g1g_1, Units_getInstance().q1e_1), to(0.0, Units_getInstance().w1e_1), to(3.0 * Units_getInstance().w1e_1.g1g_1, Units_getInstance().x1e_1), to(12.0 * Units_getInstance().w1e_1.g1g_1, Units_getInstance().z1e_1), to(0.0, Units_getInstance().g1f_1)]);
|
|
3822
|
+
this.y1f_1 = listOf([to(0.0, Units_getInstance().p1e_1), to(16.0 * Units_getInstance().p1e_1.g1g_1, Units_getInstance().q1e_1), to(0.0, Units_getInstance().w1e_1), to(3.0 * Units_getInstance().w1e_1.g1g_1, Units_getInstance().x1e_1), to(6.0 * Units_getInstance().w1e_1.g1g_1, Units_getInstance().y1e_1), to(768.0 * Units_getInstance().w1e_1.g1g_1, Units_getInstance().d1f_1), to(0.0, Units_getInstance().g1f_1)]);
|
|
3823
|
+
}
|
|
3824
|
+
protoOf(UnitConversions).x1k = function (amount) {
|
|
3797
3825
|
var tmp;
|
|
3798
|
-
if (!(amount.
|
|
3799
|
-
var tmp_0 = amount.
|
|
3800
|
-
var tmp0_safe_receiver = amount.
|
|
3826
|
+
if (!(amount.b1e_1 == null)) {
|
|
3827
|
+
var tmp_0 = amount.z1d_1 * amount.b1e_1.g1g_1;
|
|
3828
|
+
var tmp0_safe_receiver = amount.a1e_1;
|
|
3801
3829
|
var tmp_1;
|
|
3802
3830
|
if (tmp0_safe_receiver == null) {
|
|
3803
3831
|
tmp_1 = null;
|
|
3804
3832
|
} else {
|
|
3805
3833
|
// Inline function 'kotlin.let' call
|
|
3806
|
-
tmp_1 = tmp0_safe_receiver * amount.
|
|
3834
|
+
tmp_1 = tmp0_safe_receiver * amount.b1e_1.g1g_1;
|
|
3807
3835
|
}
|
|
3808
3836
|
var tmp_2 = tmp_1;
|
|
3809
|
-
var tmp1_subject = amount.
|
|
3810
|
-
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.
|
|
3811
|
-
tmp = amount.
|
|
3837
|
+
var tmp1_subject = amount.b1e_1.e1g_1;
|
|
3838
|
+
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.r2_1;
|
|
3839
|
+
tmp = amount.e1e(tmp_0, tmp_2, tmp0 === 2 ? Units_getInstance().e1f_1 : tmp0 === 1 ? Units_getInstance().r1e_1 : tmp0 === 0 ? Units_getInstance().n1e_1 : amount.b1e_1);
|
|
3812
3840
|
} else {
|
|
3813
3841
|
tmp = amount;
|
|
3814
3842
|
}
|
|
3815
3843
|
return tmp;
|
|
3816
3844
|
};
|
|
3817
|
-
protoOf(UnitConversions).
|
|
3818
|
-
var tmp = amount.
|
|
3819
|
-
var tmp0_safe_receiver = amount.
|
|
3845
|
+
protoOf(UnitConversions).z1f = function (amount, target, factor, density) {
|
|
3846
|
+
var tmp = amount.z1d_1 * factor;
|
|
3847
|
+
var tmp0_safe_receiver = amount.a1e_1;
|
|
3820
3848
|
var tmp_0;
|
|
3821
3849
|
if (tmp0_safe_receiver == null) {
|
|
3822
3850
|
tmp_0 = null;
|
|
@@ -3824,33 +3852,33 @@
|
|
|
3824
3852
|
// Inline function 'kotlin.let' call
|
|
3825
3853
|
tmp_0 = tmp0_safe_receiver * factor;
|
|
3826
3854
|
}
|
|
3827
|
-
var scaledAmount = amount.
|
|
3828
|
-
if (scaledAmount.
|
|
3855
|
+
var scaledAmount = amount.e1e(tmp, tmp_0);
|
|
3856
|
+
if (scaledAmount.b1e_1 == null || (equals(target, Metric_instance) && factor === 1.0)) {
|
|
3829
3857
|
return scaledAmount;
|
|
3830
3858
|
}
|
|
3831
|
-
var smallestUnitAmount = this.
|
|
3859
|
+
var smallestUnitAmount = this.x1k(scaledAmount);
|
|
3832
3860
|
var tmp_1;
|
|
3833
3861
|
if (equals(target, Metric_instance)) {
|
|
3834
|
-
tmp_1 = contains(this.
|
|
3862
|
+
tmp_1 = contains(this.s1f_1, amount.b1e_1) ? this.t1f_1 : this.u1f_1;
|
|
3835
3863
|
} else if (equals(target, USCustomary_instance)) {
|
|
3836
3864
|
var tmp_2;
|
|
3837
3865
|
var tmp_3;
|
|
3838
|
-
if (amount.
|
|
3839
|
-
var tmp2_safe_receiver = amount.
|
|
3840
|
-
tmp_3 = equals(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3866
|
+
if (amount.c1e_1 === true) {
|
|
3867
|
+
var tmp2_safe_receiver = amount.b1e_1;
|
|
3868
|
+
tmp_3 = equals(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.e1g_1, UnitType_WEIGHT_getInstance());
|
|
3841
3869
|
} else {
|
|
3842
3870
|
tmp_3 = false;
|
|
3843
3871
|
}
|
|
3844
3872
|
if (tmp_3) {
|
|
3845
|
-
tmp_2 = this.
|
|
3873
|
+
tmp_2 = this.x1f_1;
|
|
3846
3874
|
} else {
|
|
3847
|
-
tmp_2 = this.
|
|
3875
|
+
tmp_2 = this.w1f_1;
|
|
3848
3876
|
}
|
|
3849
3877
|
tmp_1 = tmp_2;
|
|
3850
3878
|
} else if (equals(target, Imperial_instance)) {
|
|
3851
|
-
tmp_1 = this.
|
|
3879
|
+
tmp_1 = this.y1f_1;
|
|
3852
3880
|
} else if (equals(target, Butter_instance)) {
|
|
3853
|
-
tmp_1 = this.
|
|
3881
|
+
tmp_1 = this.v1f_1;
|
|
3854
3882
|
} else {
|
|
3855
3883
|
noWhenBranchMatchedException();
|
|
3856
3884
|
}
|
|
@@ -3861,17 +3889,17 @@
|
|
|
3861
3889
|
tmp_5 = true;
|
|
3862
3890
|
} else {
|
|
3863
3891
|
var tmp_6;
|
|
3864
|
-
if (amount.
|
|
3865
|
-
var tmp4_safe_receiver = amount.
|
|
3866
|
-
tmp_6 = equals(tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
3892
|
+
if (amount.c1e_1 === true && equals(target, USCustomary_instance) && !(density == null)) {
|
|
3893
|
+
var tmp4_safe_receiver = amount.b1e_1;
|
|
3894
|
+
tmp_6 = equals(tmp4_safe_receiver == null ? null : tmp4_safe_receiver.e1g_1, UnitType_WEIGHT_getInstance());
|
|
3867
3895
|
} else {
|
|
3868
3896
|
tmp_6 = false;
|
|
3869
3897
|
}
|
|
3870
3898
|
tmp_5 = tmp_6;
|
|
3871
3899
|
}
|
|
3872
3900
|
if (tmp_5) {
|
|
3873
|
-
var tmp_7 = smallestUnitAmount.
|
|
3874
|
-
var tmp3_safe_receiver = smallestUnitAmount.
|
|
3901
|
+
var tmp_7 = smallestUnitAmount.z1d_1 / density;
|
|
3902
|
+
var tmp3_safe_receiver = smallestUnitAmount.a1e_1;
|
|
3875
3903
|
var tmp_8;
|
|
3876
3904
|
if (tmp3_safe_receiver == null) {
|
|
3877
3905
|
tmp_8 = null;
|
|
@@ -3879,7 +3907,7 @@
|
|
|
3879
3907
|
// Inline function 'kotlin.let' call
|
|
3880
3908
|
tmp_8 = tmp3_safe_receiver / density;
|
|
3881
3909
|
}
|
|
3882
|
-
tmp_4 = new Amount(tmp_7, tmp_8, Units_getInstance().
|
|
3910
|
+
tmp_4 = new Amount(tmp_7, tmp_8, Units_getInstance().r1e_1);
|
|
3883
3911
|
} else {
|
|
3884
3912
|
tmp_4 = smallestUnitAmount;
|
|
3885
3913
|
}
|
|
@@ -3890,18 +3918,18 @@
|
|
|
3890
3918
|
var _iterator__ex2g4s = ladder.q();
|
|
3891
3919
|
while (_iterator__ex2g4s.r()) {
|
|
3892
3920
|
var element = _iterator__ex2g4s.s();
|
|
3893
|
-
var tmp0_safe_receiver_0 = amountToConvert.
|
|
3894
|
-
if (equals(element.
|
|
3921
|
+
var tmp0_safe_receiver_0 = amountToConvert.b1e_1;
|
|
3922
|
+
if (equals(element.ed_1.e1g_1, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.e1g_1)) {
|
|
3895
3923
|
destination.u(element);
|
|
3896
3924
|
}
|
|
3897
3925
|
}
|
|
3898
3926
|
var tmp$ret$7;
|
|
3899
3927
|
$l$block: {
|
|
3900
3928
|
// Inline function 'kotlin.collections.lastOrNull' call
|
|
3901
|
-
var iterator = destination.
|
|
3902
|
-
while (iterator.
|
|
3903
|
-
var element_0 = iterator.
|
|
3904
|
-
if (amountToConvert.
|
|
3929
|
+
var iterator = destination.d2(destination.w());
|
|
3930
|
+
while (iterator.x3()) {
|
|
3931
|
+
var element_0 = iterator.z3();
|
|
3932
|
+
if (amountToConvert.z1d_1 >= element_0.dd_1) {
|
|
3905
3933
|
tmp$ret$7 = element_0;
|
|
3906
3934
|
break $l$block;
|
|
3907
3935
|
}
|
|
@@ -3909,20 +3937,20 @@
|
|
|
3909
3937
|
tmp$ret$7 = null;
|
|
3910
3938
|
}
|
|
3911
3939
|
var tmp5_safe_receiver = tmp$ret$7;
|
|
3912
|
-
var mostRelevantUnit = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
3940
|
+
var mostRelevantUnit = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.ed_1;
|
|
3913
3941
|
var tmp_9;
|
|
3914
3942
|
if (mostRelevantUnit == null) {
|
|
3915
3943
|
tmp_9 = null;
|
|
3916
3944
|
} else {
|
|
3917
3945
|
// Inline function 'kotlin.let' call
|
|
3918
|
-
var tmp_10 = amountToConvert.
|
|
3919
|
-
var tmp0_safe_receiver_1 = amountToConvert.
|
|
3946
|
+
var tmp_10 = amountToConvert.z1d_1 / mostRelevantUnit.g1g_1;
|
|
3947
|
+
var tmp0_safe_receiver_1 = amountToConvert.a1e_1;
|
|
3920
3948
|
var tmp_11;
|
|
3921
3949
|
if (tmp0_safe_receiver_1 == null) {
|
|
3922
3950
|
tmp_11 = null;
|
|
3923
3951
|
} else {
|
|
3924
3952
|
// Inline function 'kotlin.let' call
|
|
3925
|
-
tmp_11 = tmp0_safe_receiver_1 / mostRelevantUnit.
|
|
3953
|
+
tmp_11 = tmp0_safe_receiver_1 / mostRelevantUnit.g1g_1;
|
|
3926
3954
|
}
|
|
3927
3955
|
tmp_9 = new Amount(tmp_10, tmp_11, mostRelevantUnit);
|
|
3928
3956
|
}
|
|
@@ -3945,11 +3973,11 @@
|
|
|
3945
3973
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
3946
3974
|
var this_0 = get_tolerantJson_0();
|
|
3947
3975
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3948
|
-
var this_1 = this_0.
|
|
3976
|
+
var this_1 = this_0.fm();
|
|
3949
3977
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3950
3978
|
var this_2 = serializer(this_1, createKType(getKClass(RecipeV3), arrayOf([]), false));
|
|
3951
3979
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
3952
|
-
var parsedRecipe = this_0.
|
|
3980
|
+
var parsedRecipe = this_0.c12(tmp$ret$1, recipe);
|
|
3953
3981
|
var tmp;
|
|
3954
3982
|
switch (unit) {
|
|
3955
3983
|
case 'Imperial':
|
|
@@ -3978,16 +4006,16 @@
|
|
|
3978
4006
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
3979
4007
|
var this_3 = Default_getInstance();
|
|
3980
4008
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3981
|
-
var this_4 = this_3.
|
|
4009
|
+
var this_4 = this_3.fm();
|
|
3982
4010
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3983
4011
|
var this_5 = serializer(this_4, createKType(getKClass(RecipeV3), arrayOf([]), false));
|
|
3984
4012
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
3985
|
-
return this_3.
|
|
4013
|
+
return this_3.b12(tmp$ret$4, scaledRecipe);
|
|
3986
4014
|
}
|
|
3987
4015
|
function parseTemplate_0(templateString) {
|
|
3988
4016
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3989
4017
|
var parsedTemplate = parseTemplate(templateString);
|
|
3990
|
-
return parsedTemplate.
|
|
4018
|
+
return parsedTemplate.j1g_1;
|
|
3991
4019
|
}
|
|
3992
4020
|
function renderTemplate(templateElements, session, unit) {
|
|
3993
4021
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
@@ -4016,7 +4044,7 @@
|
|
|
4016
4044
|
}
|
|
4017
4045
|
var measuringSystem = tmp;
|
|
4018
4046
|
var template = new ParsedTemplate(templateElements);
|
|
4019
|
-
return session.
|
|
4047
|
+
return session.i1g(template, 1.0, measuringSystem);
|
|
4020
4048
|
}
|
|
4021
4049
|
function createTemplateSession(rawDensityData) {
|
|
4022
4050
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
@@ -4027,7 +4055,7 @@
|
|
|
4027
4055
|
}
|
|
4028
4056
|
function tolerantJson$lambda_0($this$Json) {
|
|
4029
4057
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
4030
|
-
$this$Json.
|
|
4058
|
+
$this$Json.x12_1 = true;
|
|
4031
4059
|
return Unit_instance;
|
|
4032
4060
|
}
|
|
4033
4061
|
var properties_initialized_ScaleRecipeJsContract_kt_yki7mr;
|
|
@@ -4038,19 +4066,19 @@
|
|
|
4038
4066
|
}
|
|
4039
4067
|
}
|
|
4040
4068
|
//region block: post-declaration
|
|
4041
|
-
protoOf($serializer).
|
|
4042
|
-
protoOf($serializer_0).
|
|
4043
|
-
protoOf($serializer_1).
|
|
4044
|
-
protoOf($serializer_2).
|
|
4045
|
-
protoOf($serializer_3).
|
|
4046
|
-
protoOf($serializer_4).
|
|
4047
|
-
protoOf($serializer_5).
|
|
4048
|
-
protoOf($serializer_6).
|
|
4049
|
-
protoOf($serializer_7).
|
|
4050
|
-
protoOf($serializer_8).
|
|
4051
|
-
protoOf($serializer_9).
|
|
4052
|
-
protoOf($serializer_10).
|
|
4053
|
-
protoOf($serializer_11).
|
|
4069
|
+
protoOf($serializer).ct = typeParametersSerializers;
|
|
4070
|
+
protoOf($serializer_0).ct = typeParametersSerializers;
|
|
4071
|
+
protoOf($serializer_1).ct = typeParametersSerializers;
|
|
4072
|
+
protoOf($serializer_2).ct = typeParametersSerializers;
|
|
4073
|
+
protoOf($serializer_3).ct = typeParametersSerializers;
|
|
4074
|
+
protoOf($serializer_4).ct = typeParametersSerializers;
|
|
4075
|
+
protoOf($serializer_5).ct = typeParametersSerializers;
|
|
4076
|
+
protoOf($serializer_6).ct = typeParametersSerializers;
|
|
4077
|
+
protoOf($serializer_7).ct = typeParametersSerializers;
|
|
4078
|
+
protoOf($serializer_8).ct = typeParametersSerializers;
|
|
4079
|
+
protoOf($serializer_9).ct = typeParametersSerializers;
|
|
4080
|
+
protoOf($serializer_10).ct = typeParametersSerializers;
|
|
4081
|
+
protoOf($serializer_11).ct = typeParametersSerializers;
|
|
4054
4082
|
//endregion
|
|
4055
4083
|
//region block: init
|
|
4056
4084
|
Companion_instance_1 = new Companion_0();
|