@cruglobal/godtools-shared 1.1.5-SNAPSHOT.1755 → 1.2.0-PR799-SNAPSHOT.1762

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.
@@ -1,8 +1,8 @@
1
1
  (function (factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports', 'sax', './kotlinx-coroutines-core.js', './kotlin-kotlin-stdlib.js', './KustomExport-lib.js', './Kermit-kermit.js', './Kermit-kermit-core.js', './fluid-locale.js', './android-gto-support-gto-support-fluidsonic-locale.js', './kotlin-mpp-godtools-tool-parser-module-common.js', './kotlin-mpp-godtools-tool-parser-module-parser-expressions.js', './colormath-root-colormath.js'], factory);
3
+ define(['exports', 'sax', './kotlinx-coroutines-core.js', './kotlin-kotlin-stdlib.js', './KustomExport-lib.js', './Kermit-kermit.js', './Kermit-kermit-core.js', './colormath-root-colormath.js', './fluid-locale.js', './android-gto-support-gto-support-fluidsonic-locale.js', './kotlin-mpp-godtools-tool-parser-module-common.js', './kotlin-mpp-godtools-tool-parser-module-parser-expressions.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports, require('sax'), require('./kotlinx-coroutines-core.js'), require('./kotlin-kotlin-stdlib.js'), require('./KustomExport-lib.js'), require('./Kermit-kermit.js'), require('./Kermit-kermit-core.js'), require('./fluid-locale.js'), require('./android-gto-support-gto-support-fluidsonic-locale.js'), require('./kotlin-mpp-godtools-tool-parser-module-common.js'), require('./kotlin-mpp-godtools-tool-parser-module-parser-expressions.js'), require('./colormath-root-colormath.js'));
5
+ factory(module.exports, require('sax'), require('./kotlinx-coroutines-core.js'), require('./kotlin-kotlin-stdlib.js'), require('./KustomExport-lib.js'), require('./Kermit-kermit.js'), require('./Kermit-kermit-core.js'), require('./colormath-root-colormath.js'), require('./fluid-locale.js'), require('./android-gto-support-gto-support-fluidsonic-locale.js'), require('./kotlin-mpp-godtools-tool-parser-module-common.js'), require('./kotlin-mpp-godtools-tool-parser-module-parser-expressions.js'));
6
6
  else {
7
7
  if (typeof sax === 'undefined') {
8
8
  throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-module-parser'. Its dependency 'sax' was not found. Please, check whether 'sax' is loaded prior to 'kotlin-mpp-godtools-tool-parser-module-parser'.");
@@ -22,6 +22,9 @@
22
22
  if (typeof globalThis['Kermit-kermit-core'] === 'undefined') {
23
23
  throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-module-parser'. Its dependency 'Kermit-kermit-core' was not found. Please, check whether 'Kermit-kermit-core' is loaded prior to 'kotlin-mpp-godtools-tool-parser-module-parser'.");
24
24
  }
25
+ if (typeof globalThis['colormath-root-colormath'] === 'undefined') {
26
+ throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-module-parser'. Its dependency 'colormath-root-colormath' was not found. Please, check whether 'colormath-root-colormath' is loaded prior to 'kotlin-mpp-godtools-tool-parser-module-parser'.");
27
+ }
25
28
  if (typeof globalThis['fluid-locale'] === 'undefined') {
26
29
  throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-module-parser'. Its dependency 'fluid-locale' was not found. Please, check whether 'fluid-locale' is loaded prior to 'kotlin-mpp-godtools-tool-parser-module-parser'.");
27
30
  }
@@ -34,12 +37,9 @@
34
37
  if (typeof globalThis['kotlin-mpp-godtools-tool-parser-module-parser-expressions'] === 'undefined') {
35
38
  throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-module-parser'. Its dependency 'kotlin-mpp-godtools-tool-parser-module-parser-expressions' was not found. Please, check whether 'kotlin-mpp-godtools-tool-parser-module-parser-expressions' is loaded prior to 'kotlin-mpp-godtools-tool-parser-module-parser'.");
36
39
  }
37
- if (typeof globalThis['colormath-root-colormath'] === 'undefined') {
38
- throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-module-parser'. Its dependency 'colormath-root-colormath' was not found. Please, check whether 'colormath-root-colormath' is loaded prior to 'kotlin-mpp-godtools-tool-parser-module-parser'.");
39
- }
40
- globalThis['kotlin-mpp-godtools-tool-parser-module-parser'] = factory(typeof globalThis['kotlin-mpp-godtools-tool-parser-module-parser'] === 'undefined' ? {} : globalThis['kotlin-mpp-godtools-tool-parser-module-parser'], sax, globalThis['kotlinx-coroutines-core'], globalThis['kotlin-kotlin-stdlib'], globalThis['KustomExport-lib'], globalThis['Kermit-kermit'], globalThis['Kermit-kermit-core'], globalThis['fluid-locale'], globalThis['android-gto-support-gto-support-fluidsonic-locale'], globalThis['kotlin-mpp-godtools-tool-parser-module-common'], globalThis['kotlin-mpp-godtools-tool-parser-module-parser-expressions'], globalThis['colormath-root-colormath']);
40
+ globalThis['kotlin-mpp-godtools-tool-parser-module-parser'] = factory(typeof globalThis['kotlin-mpp-godtools-tool-parser-module-parser'] === 'undefined' ? {} : globalThis['kotlin-mpp-godtools-tool-parser-module-parser'], sax, globalThis['kotlinx-coroutines-core'], globalThis['kotlin-kotlin-stdlib'], globalThis['KustomExport-lib'], globalThis['Kermit-kermit'], globalThis['Kermit-kermit-core'], globalThis['colormath-root-colormath'], globalThis['fluid-locale'], globalThis['android-gto-support-gto-support-fluidsonic-locale'], globalThis['kotlin-mpp-godtools-tool-parser-module-common'], globalThis['kotlin-mpp-godtools-tool-parser-module-parser-expressions']);
41
41
  }
42
- }(function (_, $module$sax, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_kotlin, kotlin_deezer_kustomexport_lib, kotlin_co_touchlab_kermit, kotlin_co_touchlab_kermit_core, kotlin_io_fluidsonic_locale_fluid_locale, kotlin_org_ccci_gto_android_gto_support_fluidsonic_locale, kotlin_org_cru_godtools_kotlin_common, kotlin_org_cru_godtools_kotlin_parser_expressions, kotlin_colormath_root_colormath) {
42
+ }(function (_, $module$sax, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_kotlin, kotlin_deezer_kustomexport_lib, kotlin_co_touchlab_kermit, kotlin_co_touchlab_kermit_core, kotlin_colormath_root_colormath, kotlin_io_fluidsonic_locale_fluid_locale, kotlin_org_ccci_gto_android_gto_support_fluidsonic_locale, kotlin_org_cru_godtools_kotlin_common, kotlin_org_cru_godtools_kotlin_parser_expressions) {
43
43
  'use strict';
44
44
  //region block: imports
45
45
  var imul = Math.imul;
@@ -75,9 +75,18 @@
75
75
  var toString_0 = kotlin_kotlin.$_$.z6;
76
76
  var hashCode = kotlin_kotlin.$_$.g6;
77
77
  var getBooleanHashCode = kotlin_kotlin.$_$.b6;
78
+ var toInt = kotlin_kotlin.$_$.t8;
79
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.a1;
80
+ var toDouble = kotlin_kotlin.$_$.q8;
81
+ var contains = kotlin_kotlin.$_$.j7;
82
+ var IllegalArgumentException = kotlin_kotlin.$_$.g9;
83
+ var Companion_getInstance_0 = kotlin_colormath_root_colormath.$_$.d;
84
+ var Regex_init_$Create$ = kotlin_kotlin.$_$.s;
85
+ var numberRangeToNumber = kotlin_kotlin.$_$.q6;
86
+ var rangeTo = kotlin_kotlin.$_$.k7;
78
87
  var Exception_init_$Init$ = kotlin_kotlin.$_$.z;
79
88
  var captureStack = kotlin_kotlin.$_$.u5;
80
- var Companion_getInstance_0 = kotlin_io_fluidsonic_locale_fluid_locale.$_$.a;
89
+ var Companion_getInstance_1 = kotlin_io_fluidsonic_locale_fluid_locale.$_$.a;
81
90
  var toPlatform = kotlin_org_ccci_gto_android_gto_support_fluidsonic_locale.$_$.a;
82
91
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
83
92
  var addAll = kotlin_kotlin.$_$.x2;
@@ -89,7 +98,7 @@
89
98
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.n;
90
99
  var emptyMap = kotlin_kotlin.$_$.n3;
91
100
  var Enum = kotlin_kotlin.$_$.d9;
92
- var contains = kotlin_kotlin.$_$.d3;
101
+ var contains_0 = kotlin_kotlin.$_$.d3;
93
102
  var toBoolean = kotlin_kotlin.$_$.n8;
94
103
  var toSet_0 = kotlin_kotlin.$_$.u4;
95
104
  var toUriOrNull = kotlin_org_cru_godtools_kotlin_common.$_$.b;
@@ -97,7 +106,6 @@
97
106
  var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t1;
98
107
  var charArrayOf = kotlin_kotlin.$_$.v5;
99
108
  var split = kotlin_kotlin.$_$.i8;
100
- var toInt = kotlin_kotlin.$_$.t8;
101
109
  var NumberFormatException = kotlin_kotlin.$_$.k9;
102
110
  var initMetadataForInterface = kotlin_kotlin.$_$.k6;
103
111
  var emptyList = kotlin_kotlin.$_$.m3;
@@ -114,7 +122,6 @@
114
122
  var trimEnd = kotlin_kotlin.$_$.x8;
115
123
  var toDoubleOrNull = kotlin_kotlin.$_$.p8;
116
124
  var getNumberHashCode = kotlin_kotlin.$_$.d6;
117
- var Regex_init_$Create$ = kotlin_kotlin.$_$.s;
118
125
  var charSequenceLength = kotlin_kotlin.$_$.x5;
119
126
  var listOf = kotlin_kotlin.$_$.f4;
120
127
  var collectionSizeOrDefault = kotlin_kotlin.$_$.c3;
@@ -123,8 +130,6 @@
123
130
  var getStringHashCode = kotlin_kotlin.$_$.f6;
124
131
  var take = kotlin_kotlin.$_$.s4;
125
132
  var listOfNotNull = kotlin_kotlin.$_$.e4;
126
- var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.a1;
127
- var IllegalArgumentException = kotlin_kotlin.$_$.g9;
128
133
  var initMetadataForObject = kotlin_kotlin.$_$.m6;
129
134
  var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
130
135
  var awaitAll = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
@@ -147,11 +152,6 @@
147
152
  var setOf = kotlin_kotlin.$_$.o4;
148
153
  var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k;
149
154
  var coerceAtMost = kotlin_kotlin.$_$.f7;
150
- var toDouble = kotlin_kotlin.$_$.q8;
151
- var contains_0 = kotlin_kotlin.$_$.j7;
152
- var Companion_getInstance_1 = kotlin_colormath_root_colormath.$_$.d;
153
- var numberRangeToNumber = kotlin_kotlin.$_$.q6;
154
- var rangeTo = kotlin_kotlin.$_$.k7;
155
155
  var coerceIn = kotlin_kotlin.$_$.i7;
156
156
  var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.f2;
157
157
  var UInt = kotlin_kotlin.$_$.q9;
@@ -1113,13 +1113,108 @@
1113
1113
  return false;
1114
1114
  return true;
1115
1115
  };
1116
+ function get_COLOR_REGEX() {
1117
+ _init_properties_Color_kt__6h0l1r();
1118
+ return COLOR_REGEX;
1119
+ }
1120
+ var COLOR_REGEX;
1121
+ function get_VALID_RGB() {
1122
+ _init_properties_Color_kt__6h0l1r();
1123
+ return VALID_RGB;
1124
+ }
1125
+ var VALID_RGB;
1126
+ function get_VALID_ALPHA() {
1127
+ _init_properties_Color_kt__6h0l1r();
1128
+ return VALID_ALPHA;
1129
+ }
1130
+ var VALID_ALPHA;
1131
+ function toColorOrNull(_this__u8e3s4) {
1132
+ _init_properties_Color_kt__6h0l1r();
1133
+ var tmp0_safe_receiver = get_COLOR_REGEX().fc(_this__u8e3s4);
1134
+ var tmp;
1135
+ if (tmp0_safe_receiver == null) {
1136
+ tmp = null;
1137
+ } else {
1138
+ // Inline function 'kotlin.let' call
1139
+ var tmp_0;
1140
+ try {
1141
+ // Inline function 'kotlin.also' call
1142
+ var this_0 = toInt(tmp0_safe_receiver.bd().o(1));
1143
+ var progression = get_VALID_RGB();
1144
+ var containsLower = progression.rg_1;
1145
+ // Inline function 'kotlin.require' call
1146
+ // Inline function 'kotlin.require' call
1147
+ if (!(this_0 <= progression.sg_1 ? containsLower <= this_0 : false)) {
1148
+ var message = 'Failed requirement.';
1149
+ throw IllegalArgumentException_init_$Create$(toString_0(message));
1150
+ }
1151
+ var red = this_0;
1152
+ // Inline function 'kotlin.also' call
1153
+ var this_1 = toInt(tmp0_safe_receiver.bd().o(2));
1154
+ var progression_0 = get_VALID_RGB();
1155
+ var containsLower_0 = progression_0.rg_1;
1156
+ // Inline function 'kotlin.require' call
1157
+ // Inline function 'kotlin.require' call
1158
+ if (!(this_1 <= progression_0.sg_1 ? containsLower_0 <= this_1 : false)) {
1159
+ var message_0 = 'Failed requirement.';
1160
+ throw IllegalArgumentException_init_$Create$(toString_0(message_0));
1161
+ }
1162
+ var green = this_1;
1163
+ // Inline function 'kotlin.also' call
1164
+ var this_2 = toInt(tmp0_safe_receiver.bd().o(3));
1165
+ var progression_1 = get_VALID_RGB();
1166
+ var containsLower_1 = progression_1.rg_1;
1167
+ // Inline function 'kotlin.require' call
1168
+ // Inline function 'kotlin.require' call
1169
+ if (!(this_2 <= progression_1.sg_1 ? containsLower_1 <= this_2 : false)) {
1170
+ var message_1 = 'Failed requirement.';
1171
+ throw IllegalArgumentException_init_$Create$(toString_0(message_1));
1172
+ }
1173
+ var blue = this_2;
1174
+ // Inline function 'kotlin.also' call
1175
+ var this_3 = toDouble(tmp0_safe_receiver.bd().o(4));
1176
+ // Inline function 'kotlin.require' call
1177
+ // Inline function 'kotlin.require' call
1178
+ if (!contains(get_VALID_ALPHA(), this_3)) {
1179
+ var message_2 = 'Failed requirement.';
1180
+ throw IllegalArgumentException_init_$Create$(toString_0(message_2));
1181
+ }
1182
+ var alpha = this_3;
1183
+ tmp_0 = color(red, green, blue, alpha);
1184
+ } catch ($p) {
1185
+ var tmp_1;
1186
+ if ($p instanceof IllegalArgumentException) {
1187
+ var ignored = $p;
1188
+ tmp_1 = null;
1189
+ } else {
1190
+ throw $p;
1191
+ }
1192
+ tmp_0 = tmp_1;
1193
+ }
1194
+ tmp = tmp_0;
1195
+ }
1196
+ return tmp;
1197
+ }
1198
+ function color(red, green, blue, alpha) {
1199
+ _init_properties_Color_kt__6h0l1r();
1200
+ return Companion_getInstance_0().g1s(red / 255.0, green / 255.0, blue / 255.0, alpha);
1201
+ }
1202
+ var properties_initialized_Color_kt_bdybnx;
1203
+ function _init_properties_Color_kt__6h0l1r() {
1204
+ if (!properties_initialized_Color_kt_bdybnx) {
1205
+ properties_initialized_Color_kt_bdybnx = true;
1206
+ COLOR_REGEX = Regex_init_$Create$('^\\s*rgba\\(\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9.]+)\\s*\\)\\s*$');
1207
+ VALID_RGB = numberRangeToNumber(0, 255);
1208
+ VALID_ALPHA = rangeTo(0.0, 1.0);
1209
+ }
1210
+ }
1116
1211
  function DeprecationException(message) {
1117
1212
  message = message === VOID ? null : message;
1118
1213
  Exception_init_$Init$(message, this);
1119
1214
  captureStack(this, DeprecationException);
1120
1215
  }
1121
1216
  function toLocaleOrNull(_this__u8e3s4) {
1122
- var tmp0_safe_receiver = Companion_getInstance_0().i37(_this__u8e3s4);
1217
+ var tmp0_safe_receiver = Companion_getInstance_1().i37(_this__u8e3s4);
1123
1218
  return tmp0_safe_receiver == null ? null : toPlatform(tmp0_safe_receiver);
1124
1219
  }
1125
1220
  function Section_init_$Init$(parent, parser, $this) {
@@ -1593,7 +1688,7 @@
1593
1688
  return this.attributes;
1594
1689
  };
1595
1690
  protoOf(AnalyticsEvent).q3c = function (types) {
1596
- return contains(types, this.o3c_1);
1691
+ return contains_0(types, this.o3c_1);
1597
1692
  };
1598
1693
  protoOf(AnalyticsEvent).isForSystem = function (system) {
1599
1694
  return this.systems.u1(system);
@@ -1899,7 +1994,7 @@
1899
1994
  this.r3f_1 = 'button';
1900
1995
  this.s3f_1 = Horizontal_CENTER_getInstance();
1901
1996
  this.t3f_1 = new Percent(1.0);
1902
- this.u3f_1 = get_TRANSPARENT();
1997
+ this.u3f_1 = toPlatformColor(get_TRANSPARENT());
1903
1998
  this.v3f_1 = Horizontal_START_getInstance();
1904
1999
  this.w3f_1 = 18;
1905
2000
  }
@@ -1974,27 +2069,29 @@
1974
2069
  tmp_3.width = tmp4_elvis_lhs == null ? Companion_getInstance_11().t3f_1 : tmp4_elvis_lhs;
1975
2070
  var tmp_6 = $this;
1976
2071
  var tmp5_safe_receiver = parser.d3d('color');
1977
- tmp_6.g3g_1 = tmp5_safe_receiver == null ? null : toColorOrNull(tmp5_safe_receiver);
2072
+ var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : toColorOrNull(tmp5_safe_receiver);
2073
+ tmp_6.g3g_1 = tmp6_safe_receiver == null ? null : toPlatformColor(tmp6_safe_receiver);
1978
2074
  var tmp_7 = $this;
1979
- var tmp6_safe_receiver = parser.d3d('background-color');
1980
- var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : toColorOrNull(tmp6_safe_receiver);
1981
- tmp_7.backgroundColor = tmp7_elvis_lhs == null ? Companion_getInstance_11().u3f_1 : tmp7_elvis_lhs;
2075
+ var tmp7_safe_receiver = parser.d3d('background-color');
2076
+ var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : toColorOrNull(tmp7_safe_receiver);
2077
+ var tmp9_elvis_lhs = tmp8_safe_receiver == null ? null : toPlatformColor(tmp8_safe_receiver);
2078
+ tmp_7.backgroundColor = tmp9_elvis_lhs == null ? Companion_getInstance_11().u3f_1 : tmp9_elvis_lhs;
1982
2079
  $this.h3g_1 = parser.d3d('icon');
1983
2080
  var tmp_8 = $this;
1984
- var tmp8_safe_receiver = Companion_getInstance_22().k3g(parser.d3d('icon-gravity'));
1985
- var tmp9_elvis_lhs = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.horizontal;
1986
- tmp_8.iconGravity = tmp9_elvis_lhs == null ? Companion_getInstance_11().v3f_1 : tmp9_elvis_lhs;
2081
+ var tmp10_safe_receiver = Companion_getInstance_22().k3g(parser.d3d('icon-gravity'));
2082
+ var tmp11_elvis_lhs = tmp10_safe_receiver == null ? null : tmp10_safe_receiver.horizontal;
2083
+ tmp_8.iconGravity = tmp11_elvis_lhs == null ? Companion_getInstance_11().v3f_1 : tmp11_elvis_lhs;
1987
2084
  var tmp_9 = $this;
1988
- var tmp10_safe_receiver = parser.d3d('icon-size');
1989
- var tmp11_elvis_lhs = tmp10_safe_receiver == null ? null : toIntOrNull(tmp10_safe_receiver);
1990
- tmp_9.iconSize = tmp11_elvis_lhs == null ? 18 : tmp11_elvis_lhs;
2085
+ var tmp12_safe_receiver = parser.d3d('icon-size');
2086
+ var tmp13_elvis_lhs = tmp12_safe_receiver == null ? null : toIntOrNull(tmp12_safe_receiver);
2087
+ tmp_9.iconSize = tmp13_elvis_lhs == null ? 18 : tmp13_elvis_lhs;
1991
2088
  var tmp_10 = $this;
1992
2089
  // Inline function 'kotlin.collections.mutableListOf' call
1993
2090
  tmp_10.j3g_1 = ArrayList_init_$Create$();
1994
2091
  var tmp_11 = $this;
1995
2092
  var tmp_12 = _get_defaultTextStyles__fjozb5($this);
1996
- var tmp12_elvis_lhs = parseTextChild(parser, tmp_12, 'https://mobile-content-api.cru.org/xmlns/content', 'button', Button$_init_$lambda_iw8cbr(parser, $this));
1997
- tmp_11.text = tmp12_elvis_lhs == null ? createTestText(_get_defaultTextStyles__fjozb5($this)) : tmp12_elvis_lhs;
2093
+ var tmp14_elvis_lhs = parseTextChild(parser, tmp_12, 'https://mobile-content-api.cru.org/xmlns/content', 'button', Button$_init_$lambda_iw8cbr(parser, $this));
2094
+ tmp_11.text = tmp14_elvis_lhs == null ? createTestText(_get_defaultTextStyles__fjozb5($this)) : tmp14_elvis_lhs;
1998
2095
  return $this;
1999
2096
  }
2000
2097
  function Button_init_$Create$(parent, parser) {
@@ -2024,7 +2121,7 @@
2024
2121
  noWhenBranchMatchedException();
2025
2122
  break;
2026
2123
  }
2027
- return tmp;
2124
+ return toRGB(tmp);
2028
2125
  };
2029
2126
  }
2030
2127
  function Button$defaultTextStyles$delegate$lambda(this$0) {
@@ -2170,17 +2267,20 @@
2170
2267
  Content_init_$Init$(parent, parser, $this);
2171
2268
  Card.call($this);
2172
2269
  parser.o3b(2, 'https://mobile-content-api.cru.org/xmlns/content', 'card');
2173
- $this.e3h_1 = toColorOrNull(parser.d3d('background-color'));
2270
+ var tmp = $this;
2271
+ var tmp0_safe_receiver = parser.d3d('background-color');
2272
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toColorOrNull(tmp0_safe_receiver);
2273
+ tmp.e3h_1 = tmp1_safe_receiver == null ? null : toPlatformColor(tmp1_safe_receiver);
2174
2274
  // Inline function 'org.cru.godtools.shared.tool.parser.model.parseClickableAttrs' call
2175
- var tmp0_safe_receiver = parser.d3d('url');
2176
- var tmp;
2177
- if (tmp0_safe_receiver == null) {
2178
- tmp = null;
2275
+ var tmp0_safe_receiver_0 = parser.d3d('url');
2276
+ var tmp_0;
2277
+ if (tmp0_safe_receiver_0 == null) {
2278
+ tmp_0 = null;
2179
2279
  } else {
2180
2280
  // Inline function 'kotlin.run' call
2181
- var tmp_0;
2182
- if (!get_hasUriScheme(tmp0_safe_receiver)) {
2183
- var message = 'Non-absolute uri tool: ' + $this.s38().code + ' locale: ' + $this.s38().locale + ' uri: ' + tmp0_safe_receiver;
2281
+ var tmp_1;
2282
+ if (!get_hasUriScheme(tmp0_safe_receiver_0)) {
2283
+ var message = 'Non-absolute uri tool: ' + $this.s38().code + ' locale: ' + $this.s38().locale + ' uri: ' + tmp0_safe_receiver_0;
2184
2284
  var tmp0 = Companion_getInstance();
2185
2285
  // Inline function 'co.touchlab.kermit.Logger.d' call
2186
2286
  var throwable = new DeprecationException(message);
@@ -2189,16 +2289,16 @@
2189
2289
  if (tmp0.c1u().t1u().n2(severity) <= 0) {
2190
2290
  tmp0.d1u(severity, 'Uri', throwable, message);
2191
2291
  }
2192
- tmp_0 = toAbsoluteUriOrNull(tmp0_safe_receiver);
2292
+ tmp_1 = toAbsoluteUriOrNull(tmp0_safe_receiver_0);
2193
2293
  } else {
2194
- tmp_0 = toUriOrNull(tmp0_safe_receiver);
2294
+ tmp_1 = toUriOrNull(tmp0_safe_receiver_0);
2195
2295
  }
2196
- tmp = tmp_0;
2296
+ tmp_0 = tmp_1;
2197
2297
  }
2198
- var uri = tmp;
2298
+ var uri = tmp_0;
2199
2299
  $this.g3h_1 = toEventIds(parser.d3d('events'));
2200
2300
  $this.h3h_1 = uri;
2201
- var tmp_1 = $this;
2301
+ var tmp_2 = $this;
2202
2302
  // Inline function 'org.cru.godtools.shared.tool.parser.model.parseContent' call
2203
2303
  // Inline function 'kotlin.collections.buildList' call
2204
2304
  // Inline function 'kotlin.collections.buildListInternal' call
@@ -2213,33 +2313,33 @@
2213
2313
  if (parser.p3b() === 3) {
2214
2314
  break $l$block;
2215
2315
  }
2216
- var tmp0_safe_receiver_0 = Companion_instance_12.t3b(parser, $this);
2217
- var tmp_2;
2218
- if (tmp0_safe_receiver_0 == null) {
2219
- tmp_2 = null;
2316
+ var tmp0_safe_receiver_1 = Companion_instance_12.t3b(parser, $this);
2317
+ var tmp_3;
2318
+ if (tmp0_safe_receiver_1 == null) {
2319
+ tmp_3 = null;
2220
2320
  } else {
2221
2321
  // Inline function 'kotlin.takeUnless' call
2222
- var tmp_3;
2223
- if (!tmp0_safe_receiver_0.a3c()) {
2224
- tmp_3 = tmp0_safe_receiver_0;
2322
+ var tmp_4;
2323
+ if (!tmp0_safe_receiver_1.a3c()) {
2324
+ tmp_4 = tmp0_safe_receiver_1;
2225
2325
  } else {
2226
- tmp_3 = null;
2326
+ tmp_4 = null;
2227
2327
  }
2228
- tmp_2 = tmp_3;
2328
+ tmp_3 = tmp_4;
2229
2329
  }
2230
- var tmp1_safe_receiver = tmp_2;
2231
- if (tmp1_safe_receiver == null)
2330
+ var tmp1_safe_receiver_0 = tmp_3;
2331
+ if (tmp1_safe_receiver_0 == null)
2232
2332
  null;
2233
2333
  else {
2234
2334
  // Inline function 'kotlin.let' call
2235
- this_0.e(tmp1_safe_receiver);
2335
+ this_0.e(tmp1_safe_receiver_0);
2236
2336
  }
2237
2337
  }
2238
2338
  if (parser.p3b() === 3)
2239
2339
  continue $l$loop_0;
2240
2340
  skipTag(parser);
2241
2341
  }
2242
- tmp_1.f3h_1 = this_0.k3();
2342
+ tmp_2.f3h_1 = this_0.k3();
2243
2343
  return $this;
2244
2344
  }
2245
2345
  function Card_init_$Create$(parent, parser) {
@@ -2313,7 +2413,7 @@
2313
2413
  return Category_init_$Init$(manifest, parser, objectCreate(protoOf(Category)));
2314
2414
  }
2315
2415
  protoOf(Category).o3h = function () {
2316
- return this.s38().p3h();
2416
+ return toRGB(this.s38().p3h());
2317
2417
  };
2318
2418
  function Category() {
2319
2419
  }
@@ -4123,7 +4223,7 @@
4123
4223
  }
4124
4224
  function Link$defaultTextStyles$delegate$lambda$lambda(this$0) {
4125
4225
  return function () {
4126
- return get_primaryColor_0(get_stylesParent(this$0));
4226
+ return toRGB(get_primaryColor_0(get_stylesParent(this$0)));
4127
4227
  };
4128
4228
  }
4129
4229
  function Link$defaultTextStyles$delegate$lambda(this$0) {
@@ -4652,9 +4752,9 @@
4652
4752
  }
4653
4753
  function Companion_26() {
4654
4754
  Companion_instance_27 = this;
4655
- this.v39_1 = color(59, 164, 219, 1.0);
4656
- this.w39_1 = color(255, 255, 255, 1.0);
4657
- this.x39_1 = color(255, 255, 255, 1.0);
4755
+ this.v39_1 = toPlatformColor(color(59, 164, 219, 1.0));
4756
+ this.w39_1 = toPlatformColor(color(255, 255, 255, 1.0));
4757
+ this.x39_1 = toPlatformColor(color(255, 255, 255, 1.0));
4658
4758
  this.y39_1 = Companion_getInstance_22().CENTER;
4659
4759
  this.z39_1 = ImageScaleType_FILL_getInstance();
4660
4760
  this.a3a_1 = Style_CONTAINED_getInstance();
@@ -4693,46 +4793,55 @@
4693
4793
  $this._dismissListeners = toSet_0(toEventIds(parser.d3d('dismiss-listeners')));
4694
4794
  var tmp_1 = $this;
4695
4795
  var tmp2_safe_receiver = parser.d3d('primary-color');
4696
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toColorOrNull(tmp2_safe_receiver);
4697
- tmp_1.b3e_1 = tmp3_elvis_lhs == null ? Companion_getInstance_29().v39_1 : tmp3_elvis_lhs;
4796
+ var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toColorOrNull(tmp2_safe_receiver);
4797
+ var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : toPlatformColor(tmp3_safe_receiver);
4798
+ tmp_1.b3e_1 = tmp4_elvis_lhs == null ? Companion_getInstance_29().v39_1 : tmp4_elvis_lhs;
4698
4799
  var tmp_2 = $this;
4699
- var tmp4_safe_receiver = parser.d3d('primary-text-color');
4700
- var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : toColorOrNull(tmp4_safe_receiver);
4701
- tmp_2.c3e_1 = tmp5_elvis_lhs == null ? Companion_getInstance_29().w39_1 : tmp5_elvis_lhs;
4800
+ var tmp5_safe_receiver = parser.d3d('primary-text-color');
4801
+ var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : toColorOrNull(tmp5_safe_receiver);
4802
+ var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : toPlatformColor(tmp6_safe_receiver);
4803
+ tmp_2.c3e_1 = tmp7_elvis_lhs == null ? Companion_getInstance_29().w39_1 : tmp7_elvis_lhs;
4702
4804
  var tmp_3 = $this;
4703
- var tmp6_safe_receiver = parser.d3d('navbar-color');
4704
- tmp_3.d3e_1 = tmp6_safe_receiver == null ? null : toColorOrNull(tmp6_safe_receiver);
4805
+ var tmp8_safe_receiver = parser.d3d('navbar-color');
4806
+ var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : toColorOrNull(tmp8_safe_receiver);
4807
+ tmp_3.d3e_1 = tmp9_safe_receiver == null ? null : toPlatformColor(tmp9_safe_receiver);
4705
4808
  var tmp_4 = $this;
4706
- var tmp7_safe_receiver = parser.d3d('navbar-control-color');
4707
- tmp_4.e3e_1 = tmp7_safe_receiver == null ? null : toColorOrNull(tmp7_safe_receiver);
4809
+ var tmp10_safe_receiver = parser.d3d('navbar-control-color');
4810
+ var tmp11_safe_receiver = tmp10_safe_receiver == null ? null : toColorOrNull(tmp10_safe_receiver);
4811
+ tmp_4.e3e_1 = tmp11_safe_receiver == null ? null : toPlatformColor(tmp11_safe_receiver);
4708
4812
  var tmp_5 = $this;
4709
- var tmp8_safe_receiver = parser.d3d('background-color');
4710
- var tmp9_elvis_lhs = tmp8_safe_receiver == null ? null : toColorOrNull(tmp8_safe_receiver);
4711
- tmp_5.f3e_1 = tmp9_elvis_lhs == null ? Companion_getInstance_29().x39_1 : tmp9_elvis_lhs;
4813
+ var tmp12_safe_receiver = parser.d3d('background-color');
4814
+ var tmp13_safe_receiver = tmp12_safe_receiver == null ? null : toColorOrNull(tmp12_safe_receiver);
4815
+ var tmp14_elvis_lhs = tmp13_safe_receiver == null ? null : toPlatformColor(tmp13_safe_receiver);
4816
+ tmp_5.f3e_1 = tmp14_elvis_lhs == null ? Companion_getInstance_29().x39_1 : tmp14_elvis_lhs;
4712
4817
  $this.g3e_1 = parser.d3d('background-image');
4713
4818
  var tmp_6 = $this;
4714
- var tmp10_safe_receiver = parser.d3d('background-image-align');
4715
- var tmp11_elvis_lhs = tmp10_safe_receiver == null ? null : Companion_getInstance_22().k3g(tmp10_safe_receiver);
4716
- tmp_6.h3e_1 = tmp11_elvis_lhs == null ? Companion_getInstance_29().y39_1 : tmp11_elvis_lhs;
4819
+ var tmp15_safe_receiver = parser.d3d('background-image-align');
4820
+ var tmp16_elvis_lhs = tmp15_safe_receiver == null ? null : Companion_getInstance_22().k3g(tmp15_safe_receiver);
4821
+ tmp_6.h3e_1 = tmp16_elvis_lhs == null ? Companion_getInstance_29().y39_1 : tmp16_elvis_lhs;
4717
4822
  var tmp_7 = $this;
4718
- var tmp12_safe_receiver = parser.d3d('background-image-scale-type');
4719
- var tmp13_elvis_lhs = tmp12_safe_receiver == null ? null : Companion_instance_22.v3k(tmp12_safe_receiver);
4720
- tmp_7.i3e_1 = tmp13_elvis_lhs == null ? Companion_getInstance_29().z39_1 : tmp13_elvis_lhs;
4823
+ var tmp17_safe_receiver = parser.d3d('background-image-scale-type');
4824
+ var tmp18_elvis_lhs = tmp17_safe_receiver == null ? null : Companion_instance_22.v3k(tmp17_safe_receiver);
4825
+ tmp_7.i3e_1 = tmp18_elvis_lhs == null ? Companion_getInstance_29().z39_1 : tmp18_elvis_lhs;
4721
4826
  var tmp_8 = $this;
4722
- var tmp14_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/content', 'card-background-color');
4723
- tmp_8.j3e_1 = tmp14_safe_receiver == null ? null : toColorOrNull(tmp14_safe_receiver);
4827
+ var tmp19_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/content', 'card-background-color');
4828
+ var tmp20_safe_receiver = tmp19_safe_receiver == null ? null : toColorOrNull(tmp19_safe_receiver);
4829
+ tmp_8.j3e_1 = tmp20_safe_receiver == null ? null : toPlatformColor(tmp20_safe_receiver);
4724
4830
  var tmp_9 = $this;
4725
- var tmp15_safe_receiver = parser.d3d('category-label-color');
4726
- tmp_9.k3e_1 = tmp15_safe_receiver == null ? null : toColorOrNull(tmp15_safe_receiver);
4831
+ var tmp21_safe_receiver = parser.d3d('category-label-color');
4832
+ var tmp22_safe_receiver = tmp21_safe_receiver == null ? null : toColorOrNull(tmp21_safe_receiver);
4833
+ tmp_9.k3e_1 = tmp22_safe_receiver == null ? null : toPlatformColor(tmp22_safe_receiver);
4727
4834
  var tmp_10 = $this;
4728
- var tmp16_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/page', 'control-color');
4729
- var tmp17_elvis_lhs = tmp16_safe_receiver == null ? null : toColorOrNull(tmp16_safe_receiver);
4835
+ var tmp23_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/page', 'control-color');
4836
+ var tmp24_safe_receiver = tmp23_safe_receiver == null ? null : toColorOrNull(tmp23_safe_receiver);
4837
+ var tmp25_elvis_lhs = tmp24_safe_receiver == null ? null : toPlatformColor(tmp24_safe_receiver);
4730
4838
  var tmp_11;
4731
- if (tmp17_elvis_lhs == null) {
4732
- var tmp18_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/lesson', 'control-color');
4733
- var tmp19_safe_receiver = tmp18_safe_receiver == null ? null : toColorOrNull(tmp18_safe_receiver);
4839
+ if (tmp25_elvis_lhs == null) {
4840
+ var tmp26_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/lesson', 'control-color');
4841
+ var tmp27_safe_receiver = tmp26_safe_receiver == null ? null : toColorOrNull(tmp26_safe_receiver);
4842
+ var tmp28_safe_receiver = tmp27_safe_receiver == null ? null : toPlatformColor(tmp27_safe_receiver);
4734
4843
  var tmp_12;
4735
- if (tmp19_safe_receiver == null) {
4844
+ if (tmp28_safe_receiver == null) {
4736
4845
  tmp_12 = null;
4737
4846
  } else {
4738
4847
  // Inline function 'kotlin.also' call
@@ -4746,28 +4855,30 @@
4746
4855
  if (tmp0.c1u().t1u().n2(severity) <= 0) {
4747
4856
  tmp0.d1u(severity, tag, tmp2, message);
4748
4857
  }
4749
- tmp_12 = tmp19_safe_receiver;
4858
+ tmp_12 = tmp28_safe_receiver;
4750
4859
  }
4751
4860
  tmp_11 = tmp_12;
4752
4861
  } else {
4753
- tmp_11 = tmp17_elvis_lhs;
4862
+ tmp_11 = tmp25_elvis_lhs;
4754
4863
  }
4755
- var tmp20_elvis_lhs = tmp_11;
4756
- tmp_10.l3e_1 = tmp20_elvis_lhs == null ? get_DEFAULT_CONTROL_COLOR() : tmp20_elvis_lhs;
4864
+ var tmp29_elvis_lhs = tmp_11;
4865
+ tmp_10.l3e_1 = tmp29_elvis_lhs == null ? get_DEFAULT_CONTROL_COLOR() : tmp29_elvis_lhs;
4757
4866
  var tmp_13 = $this;
4758
- var tmp21_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/content', 'multiselect-option-background-color');
4759
- tmp_13.m3e_1 = tmp21_safe_receiver == null ? null : toColorOrNull(tmp21_safe_receiver);
4867
+ var tmp30_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/content', 'multiselect-option-background-color');
4868
+ var tmp31_safe_receiver = tmp30_safe_receiver == null ? null : toColorOrNull(tmp30_safe_receiver);
4869
+ tmp_13.m3e_1 = tmp31_safe_receiver == null ? null : toPlatformColor(tmp31_safe_receiver);
4760
4870
  var tmp_14 = $this;
4761
- var tmp22_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/content', 'multiselect-option-selected-color');
4762
- tmp_14.n3e_1 = tmp22_safe_receiver == null ? null : toColorOrNull(tmp22_safe_receiver);
4871
+ var tmp32_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/content', 'multiselect-option-selected-color');
4872
+ var tmp33_safe_receiver = tmp32_safe_receiver == null ? null : toColorOrNull(tmp32_safe_receiver);
4873
+ tmp_14.n3e_1 = tmp33_safe_receiver == null ? null : toPlatformColor(tmp33_safe_receiver);
4763
4874
  var tmp_15 = $this;
4764
- var tmp23_safe_receiver = parser.d3d('text-color');
4765
- var tmp24_elvis_lhs = tmp23_safe_receiver == null ? null : toColorOrNull(tmp23_safe_receiver);
4766
- tmp_15.o3e_1 = tmp24_elvis_lhs == null ? Companion_getInstance_29().b3a_1 : tmp24_elvis_lhs;
4875
+ var tmp34_safe_receiver = parser.d3d('text-color');
4876
+ var tmp35_elvis_lhs = tmp34_safe_receiver == null ? null : toColorOrNull(tmp34_safe_receiver);
4877
+ tmp_15.o3e_1 = tmp35_elvis_lhs == null ? Companion_getInstance_29().b3a_1 : tmp35_elvis_lhs;
4767
4878
  var tmp_16 = $this;
4768
- var tmp25_safe_receiver = parser.d3d('text-scale');
4769
- var tmp26_elvis_lhs = tmp25_safe_receiver == null ? null : toDoubleOrNull(tmp25_safe_receiver);
4770
- tmp_16.p3e_1 = tmp26_elvis_lhs == null ? 1.0 : tmp26_elvis_lhs;
4879
+ var tmp36_safe_receiver = parser.d3d('text-scale');
4880
+ var tmp37_elvis_lhs = tmp36_safe_receiver == null ? null : toDoubleOrNull(tmp36_safe_receiver);
4881
+ tmp_16.p3e_1 = tmp37_elvis_lhs == null ? 1.0 : tmp37_elvis_lhs;
4771
4882
  var title = null;
4772
4883
  var tmp_17 = $this;
4773
4884
  // Inline function 'kotlin.collections.mutableListOf' call
@@ -5280,7 +5391,7 @@
5280
5391
  };
5281
5392
  protoOf(Manifest).p3h = function () {
5282
5393
  var tmp0_elvis_lhs = this.k3e_1;
5283
- return tmp0_elvis_lhs == null ? this.o3e_1 : tmp0_elvis_lhs;
5394
+ return tmp0_elvis_lhs == null ? toPlatformColor(this.o3e_1) : tmp0_elvis_lhs;
5284
5395
  };
5285
5396
  protoOf(Manifest).m3q = function () {
5286
5397
  return this.l3e_1;
@@ -5585,10 +5696,12 @@
5585
5696
  $this.u3r_1 = Companion_instance_28.m3r(parser.d3d('style'));
5586
5697
  var tmp = $this;
5587
5698
  var tmp0_safe_receiver = parser.d3d('background-color');
5588
- tmp.v3r_1 = tmp0_safe_receiver == null ? null : toColorOrNull(tmp0_safe_receiver);
5699
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toColorOrNull(tmp0_safe_receiver);
5700
+ tmp.v3r_1 = tmp1_safe_receiver == null ? null : toPlatformColor(tmp1_safe_receiver);
5589
5701
  var tmp_0 = $this;
5590
- var tmp1_safe_receiver = parser.d3d('selected-color');
5591
- tmp_0.w3r_1 = tmp1_safe_receiver == null ? null : toColorOrNull(tmp1_safe_receiver);
5702
+ var tmp2_safe_receiver = parser.d3d('selected-color');
5703
+ var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toColorOrNull(tmp2_safe_receiver);
5704
+ tmp_0.w3r_1 = tmp3_safe_receiver == null ? null : toPlatformColor(tmp3_safe_receiver);
5592
5705
  var tmp_1 = $this;
5593
5706
  // Inline function 'kotlin.text.orEmpty' call
5594
5707
  var tmp0_elvis_lhs = parser.d3d('value');
@@ -5714,10 +5827,12 @@
5714
5827
  tmp_2.p3s_1 = tmp4_elvis_lhs == null ? Companion_getInstance_31().s3r_1 : tmp4_elvis_lhs;
5715
5828
  var tmp_3 = $this;
5716
5829
  var tmp5_safe_receiver = parser.d3d('option-background-color');
5717
- tmp_3.q3s_1 = tmp5_safe_receiver == null ? null : toColorOrNull(tmp5_safe_receiver);
5830
+ var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : toColorOrNull(tmp5_safe_receiver);
5831
+ tmp_3.q3s_1 = tmp6_safe_receiver == null ? null : toPlatformColor(tmp6_safe_receiver);
5718
5832
  var tmp_4 = $this;
5719
- var tmp6_safe_receiver = parser.d3d('option-selected-color');
5720
- tmp_4.r3s_1 = tmp6_safe_receiver == null ? null : toColorOrNull(tmp6_safe_receiver);
5833
+ var tmp7_safe_receiver = parser.d3d('option-selected-color');
5834
+ var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : toColorOrNull(tmp7_safe_receiver);
5835
+ tmp_4.r3s_1 = tmp8_safe_receiver == null ? null : toPlatformColor(tmp8_safe_receiver);
5721
5836
  var tmp_5 = $this;
5722
5837
  // Inline function 'kotlin.collections.mutableListOf' call
5723
5838
  tmp_5._options = ArrayList_init_$Create$();
@@ -5969,116 +6084,9 @@
5969
6084
  }
5970
6085
  function Parent() {
5971
6086
  }
5972
- function get_COLOR_REGEX() {
5973
- _init_properties_PlatformColor_kt__naxuf2();
5974
- return COLOR_REGEX;
5975
- }
5976
- var COLOR_REGEX;
5977
- function get_VALID_RGB() {
5978
- _init_properties_PlatformColor_kt__naxuf2();
5979
- return VALID_RGB;
5980
- }
5981
- var VALID_RGB;
5982
- function get_VALID_ALPHA() {
5983
- _init_properties_PlatformColor_kt__naxuf2();
5984
- return VALID_ALPHA;
5985
- }
5986
- var VALID_ALPHA;
5987
- function toColorOrNull(_this__u8e3s4) {
5988
- _init_properties_PlatformColor_kt__naxuf2();
5989
- var tmp;
5990
- if (_this__u8e3s4 == null) {
5991
- tmp = null;
5992
- } else {
5993
- // Inline function 'kotlin.let' call
5994
- tmp = get_COLOR_REGEX().fc(_this__u8e3s4);
5995
- }
5996
- var tmp1_safe_receiver = tmp;
5997
- var tmp_0;
5998
- if (tmp1_safe_receiver == null) {
5999
- tmp_0 = null;
6000
- } else {
6001
- // Inline function 'kotlin.let' call
6002
- var tmp_1;
6003
- try {
6004
- // Inline function 'kotlin.also' call
6005
- var this_0 = toInt(tmp1_safe_receiver.bd().o(1));
6006
- var progression = get_VALID_RGB();
6007
- var containsLower = progression.rg_1;
6008
- // Inline function 'kotlin.require' call
6009
- // Inline function 'kotlin.require' call
6010
- if (!(this_0 <= progression.sg_1 ? containsLower <= this_0 : false)) {
6011
- var message = 'Failed requirement.';
6012
- throw IllegalArgumentException_init_$Create$(toString_0(message));
6013
- }
6014
- var red = this_0;
6015
- // Inline function 'kotlin.also' call
6016
- var this_1 = toInt(tmp1_safe_receiver.bd().o(2));
6017
- var progression_0 = get_VALID_RGB();
6018
- var containsLower_0 = progression_0.rg_1;
6019
- // Inline function 'kotlin.require' call
6020
- // Inline function 'kotlin.require' call
6021
- if (!(this_1 <= progression_0.sg_1 ? containsLower_0 <= this_1 : false)) {
6022
- var message_0 = 'Failed requirement.';
6023
- throw IllegalArgumentException_init_$Create$(toString_0(message_0));
6024
- }
6025
- var green = this_1;
6026
- // Inline function 'kotlin.also' call
6027
- var this_2 = toInt(tmp1_safe_receiver.bd().o(3));
6028
- var progression_1 = get_VALID_RGB();
6029
- var containsLower_1 = progression_1.rg_1;
6030
- // Inline function 'kotlin.require' call
6031
- // Inline function 'kotlin.require' call
6032
- if (!(this_2 <= progression_1.sg_1 ? containsLower_1 <= this_2 : false)) {
6033
- var message_1 = 'Failed requirement.';
6034
- throw IllegalArgumentException_init_$Create$(toString_0(message_1));
6035
- }
6036
- var blue = this_2;
6037
- // Inline function 'kotlin.also' call
6038
- var this_3 = toDouble(tmp1_safe_receiver.bd().o(4));
6039
- // Inline function 'kotlin.require' call
6040
- // Inline function 'kotlin.require' call
6041
- if (!contains_0(get_VALID_ALPHA(), this_3)) {
6042
- var message_2 = 'Failed requirement.';
6043
- throw IllegalArgumentException_init_$Create$(toString_0(message_2));
6044
- }
6045
- var alpha = this_3;
6046
- tmp_1 = color(red, green, blue, alpha);
6047
- } catch ($p) {
6048
- var tmp_2;
6049
- if ($p instanceof IllegalArgumentException) {
6050
- var ignored = $p;
6051
- tmp_2 = null;
6052
- } else {
6053
- throw $p;
6054
- }
6055
- tmp_1 = tmp_2;
6056
- }
6057
- tmp_0 = tmp_1;
6058
- }
6059
- return tmp_0;
6060
- }
6061
- function color(red, green, blue, alpha) {
6062
- _init_properties_PlatformColor_kt__naxuf2();
6063
- return toPlatformColor_0(Companion_getInstance_1().g1s(red / 255.0, green / 255.0, blue / 255.0, alpha));
6064
- }
6065
- function toPlatformColor(_this__u8e3s4) {
6066
- _init_properties_PlatformColor_kt__naxuf2();
6067
- return toPlatformColor_0(_this__u8e3s4.f1n());
6068
- }
6069
6087
  function toHSL(_this__u8e3s4) {
6070
- _init_properties_PlatformColor_kt__naxuf2();
6071
6088
  return toRGB(_this__u8e3s4).g1n();
6072
6089
  }
6073
- var properties_initialized_PlatformColor_kt_ppum8w;
6074
- function _init_properties_PlatformColor_kt__naxuf2() {
6075
- if (!properties_initialized_PlatformColor_kt_ppum8w) {
6076
- properties_initialized_PlatformColor_kt_ppum8w = true;
6077
- COLOR_REGEX = Regex_init_$Create$('^\\s*rgba\\(\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9.]+)\\s*\\)\\s*$');
6078
- VALID_RGB = numberRangeToNumber(0, 255);
6079
- VALID_ALPHA = rangeTo(0.0, 1.0);
6080
- }
6081
- }
6082
6090
  function Companion_31() {
6083
6091
  this.k3t_1 = 'resource';
6084
6092
  }
@@ -6793,35 +6801,35 @@
6793
6801
  var tmp0_elvis_lhs = this.u3q_1;
6794
6802
  return tmp0_elvis_lhs == null ? get_textAlign_0(get_stylesParent(this)) : tmp0_elvis_lhs;
6795
6803
  };
6796
- protoOf(Text).o3h = function () {
6804
+ protoOf(Text).h3v = function () {
6797
6805
  var tmp0_elvis_lhs = this.v3q_1;
6798
6806
  return tmp0_elvis_lhs == null ? get_textColor_0(get_stylesParent(this)) : tmp0_elvis_lhs;
6799
6807
  };
6800
6808
  protoOf(Text).w3h = function () {
6801
6809
  return this.w3q_1 * get_textScale_0(get_stylesParent(this));
6802
6810
  };
6803
- protoOf(Text).h3v = function () {
6811
+ protoOf(Text).i3v = function () {
6804
6812
  return this._textStyles;
6805
6813
  };
6806
- protoOf(Text).i3v = function () {
6814
+ protoOf(Text).j3v = function () {
6807
6815
  return this.minimumLines;
6808
6816
  };
6809
- protoOf(Text).j3v = function () {
6817
+ protoOf(Text).k3v = function () {
6810
6818
  return this.x3q_1;
6811
6819
  };
6812
- protoOf(Text).k3v = function () {
6820
+ protoOf(Text).l3v = function () {
6813
6821
  return getResource(this, this.x3q_1);
6814
6822
  };
6815
- protoOf(Text).l3v = function () {
6823
+ protoOf(Text).m3v = function () {
6816
6824
  return this.startImageSize;
6817
6825
  };
6818
- protoOf(Text).m3v = function () {
6826
+ protoOf(Text).n3v = function () {
6819
6827
  return this.y3q_1;
6820
6828
  };
6821
- protoOf(Text).n3v = function () {
6829
+ protoOf(Text).o3v = function () {
6822
6830
  return getResource(this, this.y3q_1);
6823
6831
  };
6824
- protoOf(Text).o3v = function () {
6832
+ protoOf(Text).p3v = function () {
6825
6833
  return this.endImageSize;
6826
6834
  };
6827
6835
  protoOf(Text).equals = function (other) {
@@ -6844,7 +6852,7 @@
6844
6852
  if (!this.textAlign.equals(other.textAlign)) {
6845
6853
  tmp = false;
6846
6854
  } else {
6847
- if (!(this.textColor === other.textColor)) {
6855
+ if (!equals(this.h3v(), other.h3v())) {
6848
6856
  tmp = false;
6849
6857
  } else {
6850
6858
  if (!(this.textScale === other.textScale)) {
@@ -6900,7 +6908,7 @@
6900
6908
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver;
6901
6909
  result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
6902
6910
  result = imul(31, result) + this.textAlign.hashCode() | 0;
6903
- result = imul(31, result) + getStringHashCode(this.textColor) | 0;
6911
+ result = imul(31, result) + hashCode(this.h3v()) | 0;
6904
6912
  result = imul(31, result) + getNumberHashCode(this.textScale) | 0;
6905
6913
  result = imul(31, result) + hashCode(this._textStyles) | 0;
6906
6914
  result = imul(31, result) + this.minimumLines | 0;
@@ -6916,7 +6924,10 @@
6916
6924
  result = imul(31, result) + this.endImageSize | 0;
6917
6925
  return result;
6918
6926
  };
6919
- protoOf(Text).p3v = function () {
6927
+ protoOf(Text).o3h = function () {
6928
+ return toPlatformColor(this.h3v());
6929
+ };
6930
+ protoOf(Text).q3v = function () {
6920
6931
  // Inline function 'kotlin.collections.toTypedArray' call
6921
6932
  var this_0 = this._textStyles;
6922
6933
  return copyToArray(this_0);
@@ -7104,7 +7115,7 @@
7104
7115
  Companion_getInstance_42();
7105
7116
  this.b3i_1 = version;
7106
7117
  }
7107
- protoOf(Version).q3v = function (other) {
7118
+ protoOf(Version).r3v = function (other) {
7108
7119
  return Version__compareTo_impl_crux23(this.b3i_1, other);
7109
7120
  };
7110
7121
  protoOf(Version).d = function (other) {
@@ -7123,7 +7134,7 @@
7123
7134
  var Provider_UNKNOWN_instance;
7124
7135
  function Companion_40() {
7125
7136
  Companion_instance_41 = this;
7126
- this.r3v_1 = Provider_UNKNOWN_getInstance();
7137
+ this.s3v_1 = Provider_UNKNOWN_getInstance();
7127
7138
  }
7128
7139
  protoOf(Companion_40).l3p = function (value) {
7129
7140
  return value === 'youtube' ? Provider_YOUTUBE_getInstance() : null;
@@ -7161,10 +7172,10 @@
7161
7172
  }
7162
7173
  function Companion_41() {
7163
7174
  Companion_instance_42 = this;
7164
- this.s3v_1 = 'video';
7165
- this.t3v_1 = new AspectRatio(16, 9);
7166
- this.u3v_1 = Horizontal_CENTER_getInstance();
7167
- this.v3v_1 = new Percent(1.0);
7175
+ this.t3v_1 = 'video';
7176
+ this.u3v_1 = new AspectRatio(16, 9);
7177
+ this.v3v_1 = Horizontal_CENTER_getInstance();
7178
+ this.w3v_1 = new Percent(1.0);
7168
7179
  }
7169
7180
  var Companion_instance_42;
7170
7181
  function Companion_getInstance_44() {
@@ -7181,15 +7192,15 @@
7181
7192
  parser.o3b(2, 'https://mobile-content-api.cru.org/xmlns/content', 'video');
7182
7193
  var tmp = $this;
7183
7194
  var tmp0_elvis_lhs = Companion_getInstance_43().l3p(parser.d3d('provider'));
7184
- tmp.provider = tmp0_elvis_lhs == null ? Companion_getInstance_43().r3v_1 : tmp0_elvis_lhs;
7195
+ tmp.provider = tmp0_elvis_lhs == null ? Companion_getInstance_43().s3v_1 : tmp0_elvis_lhs;
7185
7196
  $this.videoId = parser.d3d('video-id');
7186
7197
  var tmp_0 = $this;
7187
7198
  var tmp1_elvis_lhs = Companion_instance_6.i3f(parser.d3d('aspect-ratio'));
7188
- tmp_0.aspectRatio = tmp1_elvis_lhs == null ? Companion_getInstance_44().t3v_1 : tmp1_elvis_lhs;
7199
+ tmp_0.aspectRatio = tmp1_elvis_lhs == null ? Companion_getInstance_44().u3v_1 : tmp1_elvis_lhs;
7189
7200
  var tmp_1 = $this;
7190
7201
  var tmp2_safe_receiver = Companion_getInstance_22().k3g(parser.d3d('gravity'));
7191
7202
  var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.horizontal;
7192
- tmp_1.gravity = tmp3_elvis_lhs == null ? Companion_getInstance_44().u3v_1 : tmp3_elvis_lhs;
7203
+ tmp_1.gravity = tmp3_elvis_lhs == null ? Companion_getInstance_44().v3v_1 : tmp3_elvis_lhs;
7193
7204
  var tmp_2 = $this;
7194
7205
  var tmp4_safe_receiver = Companion_instance_14.l3g(parser.d3d('width'));
7195
7206
  var tmp_3;
@@ -7206,7 +7217,7 @@
7206
7217
  tmp_3 = tmp_4;
7207
7218
  }
7208
7219
  var tmp5_elvis_lhs = tmp_3;
7209
- tmp_2.width = tmp5_elvis_lhs == null ? Companion_getInstance_44().v3v_1 : tmp5_elvis_lhs;
7220
+ tmp_2.width = tmp5_elvis_lhs == null ? Companion_getInstance_44().w3v_1 : tmp5_elvis_lhs;
7210
7221
  skipTag(parser);
7211
7222
  return $this;
7212
7223
  }
@@ -7221,13 +7232,13 @@
7221
7232
  Provider_initEntries();
7222
7233
  return Provider_UNKNOWN_instance;
7223
7234
  }
7224
- protoOf(Video).e3w = function () {
7235
+ protoOf(Video).f3w = function () {
7225
7236
  return this.provider;
7226
7237
  };
7227
- protoOf(Video).f3w = function () {
7238
+ protoOf(Video).g3w = function () {
7228
7239
  return this.videoId;
7229
7240
  };
7230
- protoOf(Video).g3w = function () {
7241
+ protoOf(Video).h3w = function () {
7231
7242
  return this.aspectRatio;
7232
7243
  };
7233
7244
  protoOf(Video).p3g = function () {
@@ -7255,15 +7266,15 @@
7255
7266
  function Visibility$watchVisibility$slambda(resultContinuation) {
7256
7267
  CoroutineImpl.call(this, resultContinuation);
7257
7268
  }
7258
- protoOf(Visibility$watchVisibility$slambda).r3w = function (invisible, gone, $completion) {
7259
- var tmp = this.s3w(invisible, gone, $completion);
7269
+ protoOf(Visibility$watchVisibility$slambda).s3w = function (invisible, gone, $completion) {
7270
+ var tmp = this.t3w(invisible, gone, $completion);
7260
7271
  tmp.x8_1 = Unit_instance;
7261
7272
  tmp.y8_1 = null;
7262
7273
  return tmp.d9();
7263
7274
  };
7264
7275
  protoOf(Visibility$watchVisibility$slambda).o1f = function (p1, p2, $completion) {
7265
7276
  var tmp = (!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE();
7266
- return this.r3w(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
7277
+ return this.s3w(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
7267
7278
  };
7268
7279
  protoOf(Visibility$watchVisibility$slambda).d9 = function () {
7269
7280
  var suspendResult = this.x8_1;
@@ -7272,7 +7283,7 @@
7272
7283
  var tmp = this.v8_1;
7273
7284
  if (tmp === 0) {
7274
7285
  this.w8_1 = 1;
7275
- return new Pair(this.p3w_1, this.q3w_1);
7286
+ return new Pair(this.q3w_1, this.r3w_1);
7276
7287
  } else if (tmp === 1) {
7277
7288
  throw this.y8_1;
7278
7289
  }
@@ -7282,16 +7293,16 @@
7282
7293
  }
7283
7294
  while (true);
7284
7295
  };
7285
- protoOf(Visibility$watchVisibility$slambda).s3w = function (invisible, gone, completion) {
7296
+ protoOf(Visibility$watchVisibility$slambda).t3w = function (invisible, gone, completion) {
7286
7297
  var i = new Visibility$watchVisibility$slambda(completion);
7287
- i.p3w_1 = invisible;
7288
- i.q3w_1 = gone;
7298
+ i.q3w_1 = invisible;
7299
+ i.r3w_1 = gone;
7289
7300
  return i;
7290
7301
  };
7291
7302
  function Visibility$watchVisibility$slambda_0(resultContinuation) {
7292
7303
  var i = new Visibility$watchVisibility$slambda(resultContinuation);
7293
7304
  var l = function (invisible, gone, $completion) {
7294
- return i.r3w(invisible, gone, $completion);
7305
+ return i.s3w(invisible, gone, $completion);
7295
7306
  };
7296
7307
  l.$arity = 2;
7297
7308
  return l;
@@ -7313,7 +7324,7 @@
7313
7324
  function _init_properties_Constants_kt__atb1ur_0() {
7314
7325
  if (!properties_initialized_Constants_kt_w4w61t_0) {
7315
7326
  properties_initialized_Constants_kt_w4w61t_0 = true;
7316
- DEFAULT_LESSON_NAV_BAR_COLOR = color(0, 0, 0, 0.0);
7327
+ DEFAULT_LESSON_NAV_BAR_COLOR = toPlatformColor(color(0, 0, 0, 0.0));
7317
7328
  }
7318
7329
  }
7319
7330
  function LessonPage_init_$Init$(container, fileName, parser, $this) {
@@ -7322,10 +7333,10 @@
7322
7333
  parser.o3b(2, 'https://mobile-content-api.cru.org/xmlns/lesson', 'page');
7323
7334
  var tmp = $this;
7324
7335
  // Inline function 'kotlin.collections.mutableListOf' call
7325
- tmp.l3x_1 = ArrayList_init_$Create$();
7336
+ tmp.m3x_1 = ArrayList_init_$Create$();
7326
7337
  var tmp_0 = $this;
7327
7338
  // Inline function 'kotlin.collections.mutableListOf' call
7328
- tmp_0.m3x_1 = ArrayList_init_$Create$();
7339
+ tmp_0.n3x_1 = ArrayList_init_$Create$();
7329
7340
  // Inline function 'org.cru.godtools.shared.tool.parser.xml.parseChildren' call
7330
7341
  $l$loop_2: while (!(parser.l() === 3)) {
7331
7342
  if (!(parser.p3b() === 2))
@@ -7333,14 +7344,14 @@
7333
7344
  var tmp0_subject = parser.q3b();
7334
7345
  if (tmp0_subject === 'https://mobile-content-api.cru.org/xmlns/analytics') {
7335
7346
  if (parser.l2() === 'events') {
7336
- var tmp0 = $this.l3x_1;
7347
+ var tmp0 = $this.m3x_1;
7337
7348
  // Inline function 'kotlin.collections.plusAssign' call
7338
7349
  var elements = Companion_instance_4.s3b(parser, $this);
7339
7350
  addAll(tmp0, elements);
7340
7351
  }
7341
7352
  } else if (tmp0_subject === 'https://mobile-content-api.cru.org/xmlns/lesson') {
7342
7353
  if (parser.l2() === 'content') {
7343
- var tmp4 = $this.m3x_1;
7354
+ var tmp4 = $this.n3x_1;
7344
7355
  // Inline function 'org.cru.godtools.shared.tool.parser.model.parseContent' call
7345
7356
  // Inline function 'kotlin.collections.buildList' call
7346
7357
  // Inline function 'kotlin.collections.buildListInternal' call
@@ -7396,17 +7407,17 @@
7396
7407
  return LessonPage_init_$Init$(container, fileName, parser, objectCreate(protoOf(LessonPage)));
7397
7408
  }
7398
7409
  protoOf(LessonPage).v3g = function () {
7399
- return this.l3x_1;
7410
+ return this.m3x_1;
7400
7411
  };
7401
7412
  protoOf(LessonPage).k3c = function () {
7402
- return this.m3x_1;
7413
+ return this.n3x_1;
7403
7414
  };
7404
7415
  function LessonPage() {
7405
7416
  }
7406
7417
  function Companion_42() {
7407
7418
  Companion_instance_43 = this;
7408
- this.m3y_1 = 'header';
7409
- this.n3y_1 = Align_CENTER_getInstance();
7419
+ this.n3y_1 = 'header';
7420
+ this.o3y_1 = Align_CENTER_getInstance();
7410
7421
  }
7411
7422
  var Companion_instance_43;
7412
7423
  function Companion_getInstance_45() {
@@ -7459,16 +7470,16 @@
7459
7470
  continue $l$loop_0;
7460
7471
  skipTag(parser);
7461
7472
  }
7462
- tmp.q3y_1 = this_0.k3();
7473
+ tmp.r3y_1 = this_0.k3();
7463
7474
  return $this;
7464
7475
  }
7465
7476
  function Header_init_$Create$(page, parser) {
7466
7477
  return Header_init_$Init$(page, parser, objectCreate(protoOf(Header)));
7467
7478
  }
7468
7479
  function Companion_43() {
7469
- this.r3y_1 = 'card';
7470
- this.s3y_1 = 'id';
7471
- this.t3y_1 = 'content';
7480
+ this.s3y_1 = 'card';
7481
+ this.t3y_1 = 'id';
7482
+ this.u3y_1 = 'content';
7472
7483
  }
7473
7484
  var Companion_instance_44;
7474
7485
  function Companion_getInstance_46() {
@@ -7479,16 +7490,17 @@
7479
7490
  Card_0.call($this);
7480
7491
  $this.page = page;
7481
7492
  parser.o3b(2, 'https://mobile-content-api.cru.org/xmlns/page', 'card');
7482
- $this.v3y_1 = parser.d3d('id');
7493
+ $this.w3y_1 = parser.d3d('id');
7483
7494
  var tmp = $this;
7484
7495
  var tmp0_safe_receiver = parser.d3d('background-color');
7485
- tmp.w3y_1 = tmp0_safe_receiver == null ? null : toColorOrNull(tmp0_safe_receiver);
7496
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toColorOrNull(tmp0_safe_receiver);
7497
+ tmp.x3y_1 = tmp1_safe_receiver == null ? null : toPlatformColor(tmp1_safe_receiver);
7486
7498
  var tmp_0 = $this;
7487
7499
  // Inline function 'kotlin.collections.mutableListOf' call
7488
- tmp_0.x3y_1 = ArrayList_init_$Create$();
7500
+ tmp_0.y3y_1 = ArrayList_init_$Create$();
7489
7501
  var tmp_1 = $this;
7490
7502
  // Inline function 'kotlin.collections.mutableListOf' call
7491
- tmp_1.y3y_1 = ArrayList_init_$Create$();
7503
+ tmp_1.z3y_1 = ArrayList_init_$Create$();
7492
7504
  // Inline function 'org.cru.godtools.shared.tool.parser.xml.parseChildren' call
7493
7505
  $l$loop_2: while (!(parser.l() === 3)) {
7494
7506
  if (!(parser.p3b() === 2))
@@ -7496,14 +7508,14 @@
7496
7508
  var tmp0_subject = parser.q3b();
7497
7509
  if (tmp0_subject === 'https://mobile-content-api.cru.org/xmlns/analytics') {
7498
7510
  if (parser.l2() === 'events') {
7499
- var tmp0 = $this.x3y_1;
7511
+ var tmp0 = $this.y3y_1;
7500
7512
  // Inline function 'kotlin.collections.plusAssign' call
7501
7513
  var elements = Companion_instance_4.s3b(parser, $this);
7502
7514
  addAll(tmp0, elements);
7503
7515
  }
7504
7516
  } else if (tmp0_subject === 'https://mobile-content-api.cru.org/xmlns/page') {
7505
7517
  if (parser.l2() === 'content') {
7506
- var tmp4 = $this.y3y_1;
7518
+ var tmp4 = $this.z3y_1;
7507
7519
  // Inline function 'org.cru.godtools.shared.tool.parser.model.parseContent' call
7508
7520
  // Inline function 'kotlin.collections.buildList' call
7509
7521
  // Inline function 'kotlin.collections.buildListInternal' call
@@ -7532,12 +7544,12 @@
7532
7544
  }
7533
7545
  tmp_2 = tmp_3;
7534
7546
  }
7535
- var tmp1_safe_receiver = tmp_2;
7536
- if (tmp1_safe_receiver == null)
7547
+ var tmp1_safe_receiver_0 = tmp_2;
7548
+ if (tmp1_safe_receiver_0 == null)
7537
7549
  null;
7538
7550
  else {
7539
7551
  // Inline function 'kotlin.let' call
7540
- this_0.e(tmp1_safe_receiver);
7552
+ this_0.e(tmp1_safe_receiver_0);
7541
7553
  }
7542
7554
  }
7543
7555
  if (parser.p3b() === 3)
@@ -7559,7 +7571,7 @@
7559
7571
  return Card_init_$Init$_0(page, parser, objectCreate(protoOf(Card_0)));
7560
7572
  }
7561
7573
  function Companion_44() {
7562
- this.z3y_1 = 'cardcollection';
7574
+ this.a3z_1 = 'cardcollection';
7563
7575
  }
7564
7576
  var Companion_instance_45;
7565
7577
  function Companion_getInstance_47() {
@@ -7569,10 +7581,10 @@
7569
7581
  Page_init_$Init$(container, fileName, parser, $this);
7570
7582
  CardCollectionPage.call($this);
7571
7583
  parser.o3b(2, 'https://mobile-content-api.cru.org/xmlns/page', 'page');
7572
- Companion_getInstance_49().a3z(parser, 'cardcollection');
7584
+ Companion_getInstance_49().b3z(parser, 'cardcollection');
7573
7585
  var tmp = $this;
7574
7586
  // Inline function 'kotlin.collections.mutableListOf' call
7575
- tmp.t3z_1 = ArrayList_init_$Create$();
7587
+ tmp.u3z_1 = ArrayList_init_$Create$();
7576
7588
  var header = null;
7577
7589
  var tmp_0 = $this;
7578
7590
  // Inline function 'kotlin.collections.mutableListOf' call
@@ -7584,7 +7596,7 @@
7584
7596
  var tmp0_subject = parser.q3b();
7585
7597
  if (tmp0_subject === 'https://mobile-content-api.cru.org/xmlns/analytics') {
7586
7598
  if (parser.l2() === 'events') {
7587
- var tmp0 = $this.t3z_1;
7599
+ var tmp0 = $this.u3z_1;
7588
7600
  // Inline function 'kotlin.collections.plusAssign' call
7589
7601
  var elements = Companion_instance_4.s3b(parser, $this);
7590
7602
  addAll(tmp0, elements);
@@ -7629,31 +7641,31 @@
7629
7641
  return this_0.k3();
7630
7642
  }
7631
7643
  protoOf(Header).x3h = function () {
7632
- return this.p3y_1;
7644
+ return this.q3y_1;
7633
7645
  };
7634
7646
  protoOf(Header).k3c = function () {
7635
- return this.q3y_1;
7647
+ return this.r3y_1;
7636
7648
  };
7637
7649
  function Header() {
7638
7650
  Companion_getInstance_45();
7639
- this.p3y_1 = Companion_getInstance_45().n3y_1;
7651
+ this.q3y_1 = Companion_getInstance_45().o3y_1;
7640
7652
  }
7641
- protoOf(Card_0).u3z = function () {
7653
+ protoOf(Card_0).v3z = function () {
7642
7654
  return this.page;
7643
7655
  };
7644
7656
  protoOf(Card_0).i3c = function () {
7645
- var tmp0_elvis_lhs = this.v3y_1;
7657
+ var tmp0_elvis_lhs = this.w3y_1;
7646
7658
  return tmp0_elvis_lhs == null ? this.page.id + '-' + this.position : tmp0_elvis_lhs;
7647
7659
  };
7648
7660
  protoOf(Card_0).p3u = function () {
7649
7661
  return this.page._cards.w1(this);
7650
7662
  };
7651
7663
  protoOf(Card_0).i3q = function () {
7652
- var tmp0_elvis_lhs = this.w3y_1;
7664
+ var tmp0_elvis_lhs = this.x3y_1;
7653
7665
  return tmp0_elvis_lhs == null ? this.page.t3h() : tmp0_elvis_lhs;
7654
7666
  };
7655
7667
  protoOf(Card_0).k3c = function () {
7656
- return this.y3y_1;
7668
+ return this.z3y_1;
7657
7669
  };
7658
7670
  protoOf(Card_0).u3c = function () {
7659
7671
  // Inline function 'org.cru.godtools.shared.tool.parser.model.contentTips' call
@@ -7675,7 +7687,7 @@
7675
7687
  case 0:
7676
7688
  // Inline function 'kotlin.collections.filter' call
7677
7689
 
7678
- var tmp0 = this.x3y_1;
7690
+ var tmp0 = this.y3y_1;
7679
7691
  // Inline function 'kotlin.collections.filterTo' call
7680
7692
 
7681
7693
  var destination = ArrayList_init_$Create$();
@@ -7692,7 +7704,7 @@
7692
7704
  case 1:
7693
7705
  // Inline function 'kotlin.collections.filter' call
7694
7706
 
7695
- var tmp0_0 = this.x3y_1;
7707
+ var tmp0_0 = this.y3y_1;
7696
7708
  // Inline function 'kotlin.collections.filterTo' call
7697
7709
 
7698
7710
  var destination_0 = ArrayList_init_$Create$();
@@ -7718,15 +7730,15 @@
7718
7730
  function Card_0() {
7719
7731
  }
7720
7732
  protoOf(CardCollectionPage).v3g = function () {
7721
- return this.t3z_1;
7733
+ return this.u3z_1;
7722
7734
  };
7723
7735
  protoOf(CardCollectionPage).j3c = function () {
7724
7736
  return this.header;
7725
7737
  };
7726
- protoOf(CardCollectionPage).v3z = function () {
7738
+ protoOf(CardCollectionPage).w3z = function () {
7727
7739
  return this._cards;
7728
7740
  };
7729
- protoOf(CardCollectionPage).w3z = function () {
7741
+ protoOf(CardCollectionPage).x3z = function () {
7730
7742
  // Inline function 'kotlin.collections.toTypedArray' call
7731
7743
  var this_0 = this._cards;
7732
7744
  return copyToArray(this_0);
@@ -7742,11 +7754,11 @@
7742
7754
  function _init_properties_Constants_kt__atb1ur_1() {
7743
7755
  if (!properties_initialized_Constants_kt_w4w61t_1) {
7744
7756
  properties_initialized_Constants_kt_w4w61t_1 = true;
7745
- DEFAULT_CONTROL_COLOR = color(225, 225, 225, 1.0);
7757
+ DEFAULT_CONTROL_COLOR = toPlatformColor(color(225, 225, 225, 1.0));
7746
7758
  }
7747
7759
  }
7748
7760
  function Companion_45() {
7749
- this.x3z_1 = 'content';
7761
+ this.y3z_1 = 'content';
7750
7762
  }
7751
7763
  var Companion_instance_46;
7752
7764
  function Companion_getInstance_48() {
@@ -7756,13 +7768,13 @@
7756
7768
  Page_init_$Init$(container, fileName, parser, $this);
7757
7769
  ContentPage.call($this);
7758
7770
  parser.o3b(2, 'https://mobile-content-api.cru.org/xmlns/page', 'page');
7759
- Companion_getInstance_49().a3z(parser, 'content');
7771
+ Companion_getInstance_49().b3z(parser, 'content');
7760
7772
  var tmp = $this;
7761
7773
  // Inline function 'kotlin.collections.mutableListOf' call
7762
- tmp.q40_1 = ArrayList_init_$Create$();
7774
+ tmp.r40_1 = ArrayList_init_$Create$();
7763
7775
  var tmp_0 = $this;
7764
7776
  // Inline function 'kotlin.collections.mutableListOf' call
7765
- tmp_0.r40_1 = ArrayList_init_$Create$();
7777
+ tmp_0.s40_1 = ArrayList_init_$Create$();
7766
7778
  // Inline function 'org.cru.godtools.shared.tool.parser.xml.parseChildren' call
7767
7779
  $l$loop_2: while (!(parser.l() === 3)) {
7768
7780
  if (!(parser.p3b() === 2))
@@ -7770,14 +7782,14 @@
7770
7782
  var tmp0_subject = parser.q3b();
7771
7783
  if (tmp0_subject === 'https://mobile-content-api.cru.org/xmlns/analytics') {
7772
7784
  if (parser.l2() === 'events') {
7773
- var tmp0 = $this.q40_1;
7785
+ var tmp0 = $this.r40_1;
7774
7786
  // Inline function 'kotlin.collections.plusAssign' call
7775
7787
  var elements = Companion_instance_4.s3b(parser, $this);
7776
7788
  addAll(tmp0, elements);
7777
7789
  }
7778
7790
  } else if (tmp0_subject === 'https://mobile-content-api.cru.org/xmlns/page') {
7779
7791
  if (parser.l2() === 'content') {
7780
- var tmp4 = $this.r40_1;
7792
+ var tmp4 = $this.s40_1;
7781
7793
  // Inline function 'org.cru.godtools.shared.tool.parser.model.parseContent' call
7782
7794
  // Inline function 'kotlin.collections.buildList' call
7783
7795
  // Inline function 'kotlin.collections.buildListInternal' call
@@ -7833,20 +7845,20 @@
7833
7845
  return ContentPage_init_$Init$(container, fileName, parser, objectCreate(protoOf(ContentPage)));
7834
7846
  }
7835
7847
  protoOf(ContentPage).v3g = function () {
7836
- return this.q40_1;
7848
+ return this.r40_1;
7837
7849
  };
7838
7850
  protoOf(ContentPage).k3c = function () {
7839
- return this.r40_1;
7851
+ return this.s40_1;
7840
7852
  };
7841
7853
  function ContentPage() {
7842
7854
  }
7843
7855
  function $parseCOROUTINE$1(_this__u8e3s4, container, fileName, parser, parseFile, resultContinuation) {
7844
7856
  CoroutineImpl.call(this, resultContinuation);
7845
- this.a41_1 = _this__u8e3s4;
7846
- this.b41_1 = container;
7847
- this.c41_1 = fileName;
7848
- this.d41_1 = parser;
7849
- this.e41_1 = parseFile;
7857
+ this.b41_1 = _this__u8e3s4;
7858
+ this.c41_1 = container;
7859
+ this.d41_1 = fileName;
7860
+ this.e41_1 = parser;
7861
+ this.f41_1 = parseFile;
7850
7862
  }
7851
7863
  protoOf($parseCOROUTINE$1).d9 = function () {
7852
7864
  var suspendResult = this.x8_1;
@@ -7856,35 +7868,35 @@
7856
7868
  switch (tmp) {
7857
7869
  case 0:
7858
7870
  this.w8_1 = 3;
7859
- this.d41_1.o3b(2, null, 'page');
7860
- this.f41_1 = to(this.d41_1.q3b(), this.d41_1.n3p('http://www.w3.org/2001/XMLSchema-instance', 'type'));
7861
- if (this.f41_1.equals(to('https://mobile-content-api.cru.org/xmlns/page', 'page-collection'))) {
7862
- if (!this.b41_1.h3k(getKClass(PageCollectionPage)))
7871
+ this.e41_1.o3b(2, null, 'page');
7872
+ this.g41_1 = to(this.e41_1.q3b(), this.e41_1.n3p('http://www.w3.org/2001/XMLSchema-instance', 'type'));
7873
+ if (this.g41_1.equals(to('https://mobile-content-api.cru.org/xmlns/page', 'page-collection'))) {
7874
+ if (!this.c41_1.h3k(getKClass(PageCollectionPage)))
7863
7875
  return null;
7864
7876
  this.v8_1 = 1;
7865
- suspendResult = Companion_instance_48.m41(this.b41_1, this.c41_1, this.d41_1, this.e41_1, this);
7877
+ suspendResult = Companion_instance_48.n41(this.c41_1, this.d41_1, this.e41_1, this.f41_1, this);
7866
7878
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
7867
7879
  return suspendResult;
7868
7880
  }
7869
7881
  continue $sm;
7870
7882
  } else {
7871
- this.g41_1 = this.a41_1.h41(this.b41_1, this.c41_1, this.d41_1);
7883
+ this.h41_1 = this.b41_1.i41(this.c41_1, this.d41_1, this.e41_1);
7872
7884
  this.v8_1 = 2;
7873
7885
  continue $sm;
7874
7886
  }
7875
7887
 
7876
7888
  case 1:
7877
- this.g41_1 = suspendResult;
7889
+ this.h41_1 = suspendResult;
7878
7890
  this.v8_1 = 2;
7879
7891
  continue $sm;
7880
7892
  case 2:
7881
- var tmp1_safe_receiver = this.g41_1;
7893
+ var tmp1_safe_receiver = this.h41_1;
7882
7894
  var tmp_0;
7883
7895
  if (tmp1_safe_receiver == null) {
7884
7896
  tmp_0 = null;
7885
7897
  } else {
7886
7898
  var tmp_1;
7887
- if (this.b41_1.h3k(getKClassFromExpression(tmp1_safe_receiver))) {
7899
+ if (this.c41_1.h3k(getKClassFromExpression(tmp1_safe_receiver))) {
7888
7900
  tmp_1 = tmp1_safe_receiver;
7889
7901
  } else {
7890
7902
  tmp_1 = null;
@@ -7911,7 +7923,7 @@
7911
7923
  Companion_instance_47 = this;
7912
7924
  this.l3m_1 = 'page';
7913
7925
  this.m3m_1 = 'parent_override_page-collection';
7914
- this.n3m_1 = color(0, 0, 0, 0.0);
7926
+ this.n3m_1 = toPlatformColor(color(0, 0, 0, 0.0));
7915
7927
  this.o3m_1 = Companion_getInstance_22().CENTER;
7916
7928
  this.p3m_1 = ImageScaleType_FILL_X_getInstance();
7917
7929
  }
@@ -7921,7 +7933,7 @@
7921
7933
  tmp.y8_1 = null;
7922
7934
  return tmp.d9();
7923
7935
  };
7924
- protoOf(Companion_46).h41 = function (container, fileName, parser) {
7936
+ protoOf(Companion_46).i41 = function (container, fileName, parser) {
7925
7937
  parser.o3b(2, null, 'page');
7926
7938
  var tmp;
7927
7939
  switch (parser.q3b()) {
@@ -7992,7 +8004,7 @@
7992
8004
  }
7993
8005
  return tmp_1;
7994
8006
  };
7995
- protoOf(Companion_46).a3z = function (_this__u8e3s4, type) {
8007
+ protoOf(Companion_46).b3z = function (_this__u8e3s4, type) {
7996
8008
  var actual = _this__u8e3s4.n3p('http://www.w3.org/2001/XMLSchema-instance', 'type');
7997
8009
  if (!(type === actual))
7998
8010
  throw new XmlPullParserException('expected ' + type + ' not ' + actual);
@@ -8022,8 +8034,8 @@
8022
8034
  BaseModel.call($this, container);
8023
8035
  Page.call($this);
8024
8036
  parser.o3b(2, null, 'page');
8025
- $this.q3x_1 = parser.d3d('id');
8026
- $this.r3x_1 = fileName;
8037
+ $this.r3x_1 = parser.d3d('id');
8038
+ $this.s3x_1 = fileName;
8027
8039
  var tmp = $this;
8028
8040
  var tmp0_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/cyoa', 'parent_override_page-collection');
8029
8041
  var tmp_0;
@@ -8040,7 +8052,7 @@
8040
8052
  tmp_0 = tmp_1;
8041
8053
  }
8042
8054
  var tmp1_elvis_lhs = tmp_0;
8043
- tmp.s3x_1 = tmp1_elvis_lhs == null ? parser.n3p('https://mobile-content-api.cru.org/xmlns/cyoa', 'parent') : tmp1_elvis_lhs;
8055
+ tmp.t3x_1 = tmp1_elvis_lhs == null ? parser.n3p('https://mobile-content-api.cru.org/xmlns/cyoa', 'parent') : tmp1_elvis_lhs;
8044
8056
  var tmp_2 = $this;
8045
8057
  var tmp2_safe_receiver = parser.d3d('hidden');
8046
8058
  var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toBoolean(tmp2_safe_receiver);
@@ -8049,42 +8061,49 @@
8049
8061
  $this._dismissListeners = toSet_0(toEventIds(parser.d3d('dismiss-listeners')));
8050
8062
  var tmp_3 = $this;
8051
8063
  var tmp4_safe_receiver = parser.d3d('primary-color');
8052
- tmp_3.t3x_1 = tmp4_safe_receiver == null ? null : toColorOrNull(tmp4_safe_receiver);
8064
+ var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : toColorOrNull(tmp4_safe_receiver);
8065
+ tmp_3.u3x_1 = tmp5_safe_receiver == null ? null : toPlatformColor(tmp5_safe_receiver);
8053
8066
  var tmp_4 = $this;
8054
- var tmp5_safe_receiver = parser.d3d('primary-text-color');
8055
- tmp_4.u3x_1 = tmp5_safe_receiver == null ? null : toColorOrNull(tmp5_safe_receiver);
8067
+ var tmp6_safe_receiver = parser.d3d('primary-text-color');
8068
+ var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : toColorOrNull(tmp6_safe_receiver);
8069
+ tmp_4.v3x_1 = tmp7_safe_receiver == null ? null : toPlatformColor(tmp7_safe_receiver);
8056
8070
  var tmp_5 = $this;
8057
- var tmp6_safe_receiver = parser.d3d('background-color');
8058
- var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : toColorOrNull(tmp6_safe_receiver);
8059
- tmp_5.v3x_1 = tmp7_elvis_lhs == null ? Companion_getInstance_49().n3m_1 : tmp7_elvis_lhs;
8060
- $this.w3x_1 = parser.d3d('background-image');
8071
+ var tmp8_safe_receiver = parser.d3d('background-color');
8072
+ var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : toColorOrNull(tmp8_safe_receiver);
8073
+ var tmp10_elvis_lhs = tmp9_safe_receiver == null ? null : toPlatformColor(tmp9_safe_receiver);
8074
+ tmp_5.w3x_1 = tmp10_elvis_lhs == null ? Companion_getInstance_49().n3m_1 : tmp10_elvis_lhs;
8075
+ $this.x3x_1 = parser.d3d('background-image');
8061
8076
  var tmp_6 = $this;
8062
- var tmp8_safe_receiver = parser.d3d('background-image-align');
8063
- var tmp9_elvis_lhs = tmp8_safe_receiver == null ? null : Companion_getInstance_22().k3g(tmp8_safe_receiver);
8064
- tmp_6.x3x_1 = tmp9_elvis_lhs == null ? Companion_getInstance_49().o3m_1 : tmp9_elvis_lhs;
8077
+ var tmp11_safe_receiver = parser.d3d('background-image-align');
8078
+ var tmp12_elvis_lhs = tmp11_safe_receiver == null ? null : Companion_getInstance_22().k3g(tmp11_safe_receiver);
8079
+ tmp_6.y3x_1 = tmp12_elvis_lhs == null ? Companion_getInstance_49().o3m_1 : tmp12_elvis_lhs;
8065
8080
  var tmp_7 = $this;
8066
- var tmp10_safe_receiver = parser.d3d('background-image-scale-type');
8067
- var tmp11_elvis_lhs = tmp10_safe_receiver == null ? null : Companion_instance_22.v3k(tmp10_safe_receiver);
8068
- tmp_7.y3x_1 = tmp11_elvis_lhs == null ? Companion_getInstance_49().p3m_1 : tmp11_elvis_lhs;
8081
+ var tmp13_safe_receiver = parser.d3d('background-image-scale-type');
8082
+ var tmp14_elvis_lhs = tmp13_safe_receiver == null ? null : Companion_instance_22.v3k(tmp13_safe_receiver);
8083
+ tmp_7.z3x_1 = tmp14_elvis_lhs == null ? Companion_getInstance_49().p3m_1 : tmp14_elvis_lhs;
8069
8084
  var tmp_8 = $this;
8070
- var tmp12_safe_receiver = parser.d3d('control-color');
8071
- tmp_8.z3x_1 = tmp12_safe_receiver == null ? null : toColorOrNull(tmp12_safe_receiver);
8085
+ var tmp15_safe_receiver = parser.d3d('control-color');
8086
+ var tmp16_safe_receiver = tmp15_safe_receiver == null ? null : toColorOrNull(tmp15_safe_receiver);
8087
+ tmp_8.a3y_1 = tmp16_safe_receiver == null ? null : toPlatformColor(tmp16_safe_receiver);
8072
8088
  var tmp_9 = $this;
8073
- var tmp13_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/content', 'card-background-color');
8074
- tmp_9.a3y_1 = tmp13_safe_receiver == null ? null : toColorOrNull(tmp13_safe_receiver);
8089
+ var tmp17_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/content', 'card-background-color');
8090
+ var tmp18_safe_receiver = tmp17_safe_receiver == null ? null : toColorOrNull(tmp17_safe_receiver);
8091
+ tmp_9.b3y_1 = tmp18_safe_receiver == null ? null : toPlatformColor(tmp18_safe_receiver);
8075
8092
  var tmp_10 = $this;
8076
- var tmp14_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/content', 'multiselect-option-background-color');
8077
- tmp_10.b3y_1 = tmp14_safe_receiver == null ? null : toColorOrNull(tmp14_safe_receiver);
8093
+ var tmp19_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/content', 'multiselect-option-background-color');
8094
+ var tmp20_safe_receiver = tmp19_safe_receiver == null ? null : toColorOrNull(tmp19_safe_receiver);
8095
+ tmp_10.c3y_1 = tmp20_safe_receiver == null ? null : toPlatformColor(tmp20_safe_receiver);
8078
8096
  var tmp_11 = $this;
8079
- var tmp15_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/content', 'multiselect-option-selected-color');
8080
- tmp_11.c3y_1 = tmp15_safe_receiver == null ? null : toColorOrNull(tmp15_safe_receiver);
8097
+ var tmp21_safe_receiver = parser.n3p('https://mobile-content-api.cru.org/xmlns/content', 'multiselect-option-selected-color');
8098
+ var tmp22_safe_receiver = tmp21_safe_receiver == null ? null : toColorOrNull(tmp21_safe_receiver);
8099
+ tmp_11.d3y_1 = tmp22_safe_receiver == null ? null : toPlatformColor(tmp22_safe_receiver);
8081
8100
  var tmp_12 = $this;
8082
- var tmp16_safe_receiver = parser.d3d('text-color');
8083
- tmp_12.d3y_1 = tmp16_safe_receiver == null ? null : toColorOrNull(tmp16_safe_receiver);
8101
+ var tmp23_safe_receiver = parser.d3d('text-color');
8102
+ tmp_12.e3y_1 = tmp23_safe_receiver == null ? null : toColorOrNull(tmp23_safe_receiver);
8084
8103
  var tmp_13 = $this;
8085
- var tmp17_safe_receiver = parser.d3d('text-scale');
8086
- var tmp18_elvis_lhs = tmp17_safe_receiver == null ? null : toDoubleOrNull(tmp17_safe_receiver);
8087
- tmp_13.e3y_1 = tmp18_elvis_lhs == null ? 1.0 : tmp18_elvis_lhs;
8104
+ var tmp24_safe_receiver = parser.d3d('text-scale');
8105
+ var tmp25_elvis_lhs = tmp24_safe_receiver == null ? null : toDoubleOrNull(tmp24_safe_receiver);
8106
+ tmp_13.f3y_1 = tmp25_elvis_lhs == null ? 1.0 : tmp25_elvis_lhs;
8088
8107
  return $this;
8089
8108
  }
8090
8109
  function Page_init_$Init$_0(container, id, fileName, parentPage, primaryColor, backgroundColor, backgroundImage, backgroundImageGravity, backgroundImageScaleType, controlColor, cardBackgroundColor, multiselectOptionBackgroundColor, multiselectOptionSelectedColor, textColor, textScale, $this) {
@@ -8105,30 +8124,30 @@
8105
8124
  textScale = textScale === VOID ? 1.0 : textScale;
8106
8125
  BaseModel.call($this, container);
8107
8126
  Page.call($this);
8108
- $this.q3x_1 = id;
8109
- $this.r3x_1 = fileName;
8110
- $this.s3x_1 = parentPage;
8127
+ $this.r3x_1 = id;
8128
+ $this.s3x_1 = fileName;
8129
+ $this.t3x_1 = parentPage;
8111
8130
  $this.isHidden = false;
8112
8131
  $this._listeners = emptySet();
8113
8132
  $this._dismissListeners = emptySet();
8114
- $this.t3x_1 = primaryColor;
8115
- $this.u3x_1 = null;
8116
- $this.v3x_1 = backgroundColor;
8117
- $this.w3x_1 = backgroundImage;
8118
- $this.x3x_1 = backgroundImageGravity;
8119
- $this.y3x_1 = backgroundImageScaleType;
8120
- $this.z3x_1 = controlColor;
8121
- $this.a3y_1 = cardBackgroundColor;
8122
- $this.b3y_1 = multiselectOptionBackgroundColor;
8123
- $this.c3y_1 = multiselectOptionSelectedColor;
8124
- $this.d3y_1 = textColor;
8125
- $this.e3y_1 = textScale;
8133
+ $this.u3x_1 = primaryColor;
8134
+ $this.v3x_1 = null;
8135
+ $this.w3x_1 = backgroundColor;
8136
+ $this.x3x_1 = backgroundImage;
8137
+ $this.y3x_1 = backgroundImageGravity;
8138
+ $this.z3x_1 = backgroundImageScaleType;
8139
+ $this.a3y_1 = controlColor;
8140
+ $this.b3y_1 = cardBackgroundColor;
8141
+ $this.c3y_1 = multiselectOptionBackgroundColor;
8142
+ $this.d3y_1 = multiselectOptionSelectedColor;
8143
+ $this.e3y_1 = textColor;
8144
+ $this.f3y_1 = textScale;
8126
8145
  return $this;
8127
8146
  }
8128
8147
  function Page$id$delegate$lambda(this$0) {
8129
8148
  return function () {
8130
- var tmp0_elvis_lhs = this$0.q3x_1;
8131
- var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? this$0.r3x_1 : tmp0_elvis_lhs;
8149
+ var tmp0_elvis_lhs = this$0.r3x_1;
8150
+ var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? this$0.s3x_1 : tmp0_elvis_lhs;
8132
8151
  return tmp1_elvis_lhs == null ? '' + this$0.s38().code + '-' + this$0.position : tmp1_elvis_lhs;
8133
8152
  };
8134
8153
  }
@@ -8138,32 +8157,32 @@
8138
8157
  };
8139
8158
  }
8140
8159
  protoOf(Page).i3c = function () {
8141
- var tmp0 = this.o3x_1;
8160
+ var tmp0 = this.p3x_1;
8142
8161
  // Inline function 'kotlin.getValue' call
8143
8162
  id$factory();
8144
8163
  return tmp0.c2();
8145
8164
  };
8146
8165
  protoOf(Page).p3u = function () {
8147
- var tmp0 = this.p3x_1;
8166
+ var tmp0 = this.q3x_1;
8148
8167
  // Inline function 'kotlin.getValue' call
8149
8168
  position$factory();
8150
8169
  return tmp0.c2();
8151
8170
  };
8152
- protoOf(Page).f3y = function () {
8153
- return this.r3x_1;
8154
- };
8155
8171
  protoOf(Page).g3y = function () {
8172
+ return this.s3x_1;
8173
+ };
8174
+ protoOf(Page).h3y = function () {
8156
8175
  var tmp = _get_parentPageContainer__qsoup5(this);
8157
- var tmp0_safe_receiver = this.s3x_1;
8176
+ var tmp0_safe_receiver = this.t3x_1;
8158
8177
  return tmp.findPage(tmp0_safe_receiver == null ? null : substringBefore(tmp0_safe_receiver, '?'));
8159
8178
  };
8160
- protoOf(Page).h3y = function () {
8179
+ protoOf(Page).i3y = function () {
8161
8180
  var tmp;
8162
8181
  if (this.parentPage == null) {
8163
8182
  tmp = emptyMap();
8164
8183
  } else {
8165
8184
  // Inline function 'kotlin.text.orEmpty' call
8166
- var tmp0_elvis_lhs = this.s3x_1;
8185
+ var tmp0_elvis_lhs = this.t3x_1;
8167
8186
  var tmp$ret$0 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
8168
8187
  // Inline function 'kotlin.collections.mapNotNull' call
8169
8188
  var tmp0 = split_0(substringAfter(tmp$ret$0, '?', ''), ['&']);
@@ -8208,13 +8227,13 @@
8208
8227
  }
8209
8228
  return tmp;
8210
8229
  };
8211
- protoOf(Page).i3y = function () {
8230
+ protoOf(Page).j3y = function () {
8212
8231
  return getOrNull(_get_parentPageContainer__qsoup5(this).g3k(), this.position + 1 | 0);
8213
8232
  };
8214
- protoOf(Page).j3y = function () {
8233
+ protoOf(Page).k3y = function () {
8215
8234
  return getOrNull(_get_parentPageContainer__qsoup5(this).g3k(), this.position - 1 | 0);
8216
8235
  };
8217
- protoOf(Page).k3y = function () {
8236
+ protoOf(Page).l3y = function () {
8218
8237
  return this.isHidden;
8219
8238
  };
8220
8239
  protoOf(Page).q3u = function () {
@@ -8224,27 +8243,27 @@
8224
8243
  return this._dismissListeners;
8225
8244
  };
8226
8245
  protoOf(Page).q3h = function () {
8227
- var tmp0_elvis_lhs = this.t3x_1;
8246
+ var tmp0_elvis_lhs = this.u3x_1;
8228
8247
  return tmp0_elvis_lhs == null ? get_primaryColor_0(get_stylesParent(this)) : tmp0_elvis_lhs;
8229
8248
  };
8230
8249
  protoOf(Page).r3h = function () {
8231
- var tmp0_elvis_lhs = this.u3x_1;
8250
+ var tmp0_elvis_lhs = this.v3x_1;
8232
8251
  return tmp0_elvis_lhs == null ? get_primaryTextColor_0(get_stylesParent(this)) : tmp0_elvis_lhs;
8233
8252
  };
8234
8253
  protoOf(Page).i3q = function () {
8235
- return this.v3x_1;
8254
+ return this.w3x_1;
8236
8255
  };
8237
8256
  protoOf(Page).j3q = function () {
8238
- return getResource(this, this.w3x_1);
8257
+ return getResource(this, this.x3x_1);
8239
8258
  };
8240
8259
  protoOf(Page).k3q = function () {
8241
- return this.x3x_1;
8260
+ return this.y3x_1;
8242
8261
  };
8243
8262
  protoOf(Page).l3q = function () {
8244
- return this.y3x_1;
8263
+ return this.z3x_1;
8245
8264
  };
8246
- protoOf(Page).l3y = function () {
8247
- var tmp0_elvis_lhs = this.z3x_1;
8265
+ protoOf(Page).m3y = function () {
8266
+ var tmp0_elvis_lhs = this.a3y_1;
8248
8267
  var tmp;
8249
8268
  if (tmp0_elvis_lhs == null) {
8250
8269
  var tmp_0 = _get_parentPageContainer__qsoup5(this);
@@ -8257,23 +8276,23 @@
8257
8276
  return tmp2_elvis_lhs == null ? this.s38().l3e_1 : tmp2_elvis_lhs;
8258
8277
  };
8259
8278
  protoOf(Page).t3h = function () {
8260
- var tmp0_elvis_lhs = this.a3y_1;
8279
+ var tmp0_elvis_lhs = this.b3y_1;
8261
8280
  return tmp0_elvis_lhs == null ? get_cardBackgroundColor.call(this) : tmp0_elvis_lhs;
8262
8281
  };
8263
8282
  protoOf(Page).u3h = function () {
8264
- var tmp0_elvis_lhs = this.b3y_1;
8283
+ var tmp0_elvis_lhs = this.c3y_1;
8265
8284
  return tmp0_elvis_lhs == null ? get_multiselectOptionBackgroundColor.call(this) : tmp0_elvis_lhs;
8266
8285
  };
8267
8286
  protoOf(Page).v3h = function () {
8268
- var tmp0_elvis_lhs = this.c3y_1;
8287
+ var tmp0_elvis_lhs = this.d3y_1;
8269
8288
  return tmp0_elvis_lhs == null ? get_multiselectOptionSelectedColor.call(this) : tmp0_elvis_lhs;
8270
8289
  };
8271
8290
  protoOf(Page).o3h = function () {
8272
- var tmp0_elvis_lhs = this.d3y_1;
8291
+ var tmp0_elvis_lhs = this.e3y_1;
8273
8292
  return tmp0_elvis_lhs == null ? get_textColor_0(get_stylesParent(this)) : tmp0_elvis_lhs;
8274
8293
  };
8275
8294
  protoOf(Page).w3h = function () {
8276
- return this.e3y_1 * get_textScale_0(get_stylesParent(this));
8295
+ return this.f3y_1 * get_textScale_0(get_stylesParent(this));
8277
8296
  };
8278
8297
  protoOf(Page).l3c = function (type) {
8279
8298
  var tmp;
@@ -8334,9 +8353,9 @@
8334
8353
  function Page() {
8335
8354
  Companion_getInstance_49();
8336
8355
  var tmp = this;
8337
- tmp.o3x_1 = lazy(Page$id$delegate$lambda(this));
8356
+ tmp.p3x_1 = lazy(Page$id$delegate$lambda(this));
8338
8357
  var tmp_0 = this;
8339
- tmp_0.p3x_1 = lazy(Page$position$delegate$lambda(this));
8358
+ tmp_0.q3x_1 = lazy(Page$position$delegate$lambda(this));
8340
8359
  }
8341
8360
  function id$factory() {
8342
8361
  return getPropertyCallableRef('id', 1, KProperty1, function (receiver) {
@@ -8350,11 +8369,11 @@
8350
8369
  }
8351
8370
  function $parseCOROUTINE$2(_this__u8e3s4, container, fileName, parser, parseFile, resultContinuation) {
8352
8371
  CoroutineImpl.call(this, resultContinuation);
8353
- this.v41_1 = _this__u8e3s4;
8354
- this.w41_1 = container;
8355
- this.x41_1 = fileName;
8356
- this.y41_1 = parser;
8357
- this.z41_1 = parseFile;
8372
+ this.w41_1 = _this__u8e3s4;
8373
+ this.x41_1 = container;
8374
+ this.y41_1 = fileName;
8375
+ this.z41_1 = parser;
8376
+ this.a42_1 = parseFile;
8358
8377
  }
8359
8378
  protoOf($parseCOROUTINE$2).d9 = function () {
8360
8379
  var suspendResult = this.x8_1;
@@ -8365,20 +8384,20 @@
8365
8384
  case 0:
8366
8385
  this.w8_1 = 2;
8367
8386
  var tmp_0 = this;
8368
- tmp_0.a42_1 = PageCollectionPage_init_$Create$(this.w41_1, this.x41_1, this.y41_1);
8369
- this.b42_1 = this.a42_1;
8387
+ tmp_0.b42_1 = PageCollectionPage_init_$Create$(this.x41_1, this.y41_1, this.z41_1);
8388
+ this.c42_1 = this.b42_1;
8370
8389
  var tmp_1 = this;
8371
- tmp_1.c42_1 = this.b42_1;
8372
- this.d42_1 = this.c42_1;
8390
+ tmp_1.d42_1 = this.c42_1;
8391
+ this.e42_1 = this.d42_1;
8373
8392
  this.v8_1 = 1;
8374
- suspendResult = buildPagesFromParsedPages(this.d42_1, this.z41_1, this);
8393
+ suspendResult = buildPagesFromParsedPages(this.e42_1, this.a42_1, this);
8375
8394
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
8376
8395
  return suspendResult;
8377
8396
  }
8378
8397
 
8379
8398
  continue $sm;
8380
8399
  case 1:
8381
- return this.b42_1;
8400
+ return this.c42_1;
8382
8401
  case 2:
8383
8402
  throw this.y8_1;
8384
8403
  }
@@ -8394,10 +8413,10 @@
8394
8413
  while (true);
8395
8414
  };
8396
8415
  function PageCollectionPage$buildPagesFromParsedPages$slambda$slambda($it, this$0, $parseFile, $pageIndex$delegate, resultContinuation) {
8397
- this.m42_1 = $it;
8398
- this.n42_1 = this$0;
8399
- this.o42_1 = $parseFile;
8400
- this.p42_1 = $pageIndex$delegate;
8416
+ this.n42_1 = $it;
8417
+ this.o42_1 = this$0;
8418
+ this.p42_1 = $parseFile;
8419
+ this.q42_1 = $pageIndex$delegate;
8401
8420
  CoroutineImpl.call(this, resultContinuation);
8402
8421
  }
8403
8422
  protoOf(PageCollectionPage$buildPagesFromParsedPages$slambda$slambda).k3m = function ($this$async, $completion) {
@@ -8418,12 +8437,12 @@
8418
8437
  case 0:
8419
8438
  this.w8_1 = 3;
8420
8439
  var tmp_0 = this;
8421
- var tmp0_safe_receiver = this.m42_1.w42_1;
8440
+ var tmp0_safe_receiver = this.n42_1.x42_1;
8422
8441
  var tmp_1;
8423
8442
  if (tmp0_safe_receiver == null) {
8424
8443
  tmp_1 = null;
8425
8444
  } else {
8426
- tmp_1 = buildPagesFromParsedPages$lambda(this.p42_1).f2(tmp0_safe_receiver);
8445
+ tmp_1 = buildPagesFromParsedPages$lambda(this.q42_1).f2(tmp0_safe_receiver);
8427
8446
  }
8428
8447
 
8429
8448
  var tmp1_elvis_lhs = tmp_1;
@@ -8434,20 +8453,20 @@
8434
8453
  tmp_2 = tmp1_elvis_lhs;
8435
8454
  }
8436
8455
 
8437
- tmp_0.r42_1 = tmp_2;
8438
- this.s42_1 = Companion_getInstance_49();
8439
- this.t42_1 = this.m42_1.w42_1;
8456
+ tmp_0.s42_1 = tmp_2;
8457
+ this.t42_1 = Companion_getInstance_49();
8458
+ this.u42_1 = this.n42_1.x42_1;
8440
8459
  this.v8_1 = 1;
8441
- suspendResult = this.o42_1(this.r42_1, this);
8460
+ suspendResult = this.p42_1(this.s42_1, this);
8442
8461
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
8443
8462
  return suspendResult;
8444
8463
  }
8445
8464
 
8446
8465
  continue $sm;
8447
8466
  case 1:
8448
- this.u42_1 = suspendResult;
8467
+ this.v42_1 = suspendResult;
8449
8468
  this.v8_1 = 2;
8450
- suspendResult = this.s42_1.q3m(this.n42_1, this.t42_1, this.u42_1, this.o42_1, this);
8469
+ suspendResult = this.t42_1.q3m(this.o42_1, this.u42_1, this.v42_1, this.p42_1, this);
8451
8470
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
8452
8471
  return suspendResult;
8453
8472
  }
@@ -8470,8 +8489,8 @@
8470
8489
  while (true);
8471
8490
  };
8472
8491
  protoOf(PageCollectionPage$buildPagesFromParsedPages$slambda$slambda).b19 = function ($this$async, completion) {
8473
- var i = new PageCollectionPage$buildPagesFromParsedPages$slambda$slambda(this.m42_1, this.n42_1, this.o42_1, this.p42_1, completion);
8474
- i.q42_1 = $this$async;
8492
+ var i = new PageCollectionPage$buildPagesFromParsedPages$slambda$slambda(this.n42_1, this.o42_1, this.p42_1, this.q42_1, completion);
8493
+ i.r42_1 = $this$async;
8475
8494
  return i;
8476
8495
  };
8477
8496
  function PageCollectionPage$buildPagesFromParsedPages$slambda$slambda_0($it, this$0, $parseFile, $pageIndex$delegate, resultContinuation) {
@@ -8483,19 +8502,19 @@
8483
8502
  return l;
8484
8503
  }
8485
8504
  function Companion_47() {
8486
- this.i41_1 = 'page-collection';
8487
- this.j41_1 = 'pages';
8488
- this.k41_1 = 'import';
8489
- this.l41_1 = 'filename';
8505
+ this.j41_1 = 'page-collection';
8506
+ this.k41_1 = 'pages';
8507
+ this.l41_1 = 'import';
8508
+ this.m41_1 = 'filename';
8490
8509
  this.PARENT_PARAM_ACTIVE_PAGE = 'active-page';
8491
8510
  }
8492
- protoOf(Companion_47).x42 = function () {
8493
- return this.i41_1;
8494
- };
8495
8511
  protoOf(Companion_47).y42 = function () {
8512
+ return this.j41_1;
8513
+ };
8514
+ protoOf(Companion_47).z42 = function () {
8496
8515
  return this.PARENT_PARAM_ACTIVE_PAGE;
8497
8516
  };
8498
- protoOf(Companion_47).m41 = function (container, fileName, parser, parseFile, $completion) {
8517
+ protoOf(Companion_47).n41 = function (container, fileName, parser, parseFile, $completion) {
8499
8518
  var tmp = new $parseCOROUTINE$2(this, container, fileName, parser, parseFile, $completion);
8500
8519
  tmp.x8_1 = Unit_instance;
8501
8520
  tmp.y8_1 = null;
@@ -8506,19 +8525,19 @@
8506
8525
  return Companion_instance_48;
8507
8526
  }
8508
8527
  function _set_pages__j2nojl_0($this, _set____db54di) {
8509
- return $this.t43_1.m3p($this, pages$factory_1(), _set____db54di);
8528
+ return $this.u43_1.m3p($this, pages$factory_1(), _set____db54di);
8510
8529
  }
8511
8530
  function PageCollectionPage_init_$Init$(container, fileName, parser, $this) {
8512
8531
  Page_init_$Init$(container, fileName, parser, $this);
8513
8532
  PageCollectionPage.call($this);
8514
8533
  parser.o3b(2, 'https://mobile-content-api.cru.org/xmlns/page', 'page');
8515
- Companion_getInstance_49().a3z(parser, 'page-collection');
8534
+ Companion_getInstance_49().b3z(parser, 'page-collection');
8516
8535
  var tmp = $this;
8517
8536
  // Inline function 'kotlin.collections.mutableListOf' call
8518
- tmp.r43_1 = ArrayList_init_$Create$();
8537
+ tmp.s43_1 = ArrayList_init_$Create$();
8519
8538
  var tmp_0 = $this;
8520
8539
  // Inline function 'kotlin.collections.mutableListOf' call
8521
- tmp_0.s43_1 = ArrayList_init_$Create$();
8540
+ tmp_0.t43_1 = ArrayList_init_$Create$();
8522
8541
  // Inline function 'org.cru.godtools.shared.tool.parser.xml.parseChildren' call
8523
8542
  $l$loop_0: while (!(parser.l() === 3)) {
8524
8543
  if (!(parser.p3b() === 2))
@@ -8526,14 +8545,14 @@
8526
8545
  var tmp0_subject = parser.q3b();
8527
8546
  if (tmp0_subject === 'https://mobile-content-api.cru.org/xmlns/analytics') {
8528
8547
  if (parser.l2() === 'events') {
8529
- var tmp0 = $this.r43_1;
8548
+ var tmp0 = $this.s43_1;
8530
8549
  // Inline function 'kotlin.collections.plusAssign' call
8531
8550
  var elements = Companion_instance_4.s3b(parser, $this);
8532
8551
  addAll(tmp0, elements);
8533
8552
  }
8534
8553
  } else if (tmp0_subject === 'https://mobile-content-api.cru.org/xmlns/page') {
8535
8554
  if (parser.l2() === 'pages') {
8536
- var tmp2 = $this.s43_1;
8555
+ var tmp2 = $this.t43_1;
8537
8556
  // Inline function 'kotlin.collections.plusAssign' call
8538
8557
  var elements_0 = parsePages_0($this, parser);
8539
8558
  addAll(tmp2, elements_0);
@@ -8561,7 +8580,7 @@
8561
8580
  if (_this__u8e3s4.q3b() === 'https://mobile-content-api.cru.org/xmlns/page') {
8562
8581
  var tmp1_subject = _this__u8e3s4.l2();
8563
8582
  if (tmp1_subject === 'page') {
8564
- var tmp2_safe_receiver = Companion_getInstance_49().h41($this, null, _this__u8e3s4);
8583
+ var tmp2_safe_receiver = Companion_getInstance_49().i41($this, null, _this__u8e3s4);
8565
8584
  if (tmp2_safe_receiver == null)
8566
8585
  null;
8567
8586
  else {
@@ -8587,8 +8606,8 @@
8587
8606
  function PageOrImport(page, ref) {
8588
8607
  page = page === VOID ? null : page;
8589
8608
  ref = ref === VOID ? null : ref;
8590
- this.v42_1 = page;
8591
- this.w42_1 = ref;
8609
+ this.w42_1 = page;
8610
+ this.x42_1 = ref;
8592
8611
  }
8593
8612
  function buildPagesFromParsedPages$lambda($pageIndex$delegate) {
8594
8613
  // Inline function 'kotlin.getValue' call
@@ -8615,19 +8634,19 @@
8615
8634
  };
8616
8635
  }
8617
8636
  function PageCollectionPage$buildPagesFromParsedPages$slambda(this$0, $parseFile, $pageIndex$delegate, resultContinuation) {
8618
- this.n44_1 = this$0;
8619
- this.o44_1 = $parseFile;
8620
- this.p44_1 = $pageIndex$delegate;
8637
+ this.o44_1 = this$0;
8638
+ this.p44_1 = $parseFile;
8639
+ this.q44_1 = $pageIndex$delegate;
8621
8640
  CoroutineImpl.call(this, resultContinuation);
8622
8641
  }
8623
- protoOf(PageCollectionPage$buildPagesFromParsedPages$slambda).r44 = function ($this$coroutineScope, $completion) {
8642
+ protoOf(PageCollectionPage$buildPagesFromParsedPages$slambda).s44 = function ($this$coroutineScope, $completion) {
8624
8643
  var tmp = this.b19($this$coroutineScope, $completion);
8625
8644
  tmp.x8_1 = Unit_instance;
8626
8645
  tmp.y8_1 = null;
8627
8646
  return tmp.d9();
8628
8647
  };
8629
8648
  protoOf(PageCollectionPage$buildPagesFromParsedPages$slambda).l9 = function (p1, $completion) {
8630
- return this.r44((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
8649
+ return this.s44((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
8631
8650
  };
8632
8651
  protoOf(PageCollectionPage$buildPagesFromParsedPages$slambda).d9 = function () {
8633
8652
  var suspendResult = this.x8_1;
@@ -8638,12 +8657,12 @@
8638
8657
  case 0:
8639
8658
  this.w8_1 = 2;
8640
8659
  this.v8_1 = 1;
8641
- var this_0 = this.n44_1.s43_1;
8660
+ var this_0 = this.o44_1.t43_1;
8642
8661
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
8643
8662
  var _iterator__ex2g4s = this_0.j();
8644
8663
  while (_iterator__ex2g4s.k()) {
8645
8664
  var item = _iterator__ex2g4s.l();
8646
- var tmp0_safe_receiver = item.v42_1;
8665
+ var tmp0_safe_receiver = item.w42_1;
8647
8666
  var tmp_0;
8648
8667
  if (tmp0_safe_receiver == null) {
8649
8668
  tmp_0 = null;
@@ -8653,7 +8672,7 @@
8653
8672
  var tmp1_elvis_lhs = tmp_0;
8654
8673
  var tmp_1;
8655
8674
  if (tmp1_elvis_lhs == null) {
8656
- tmp_1 = async(this.q44_1, VOID, VOID, PageCollectionPage$buildPagesFromParsedPages$slambda$slambda_0(item, this.n44_1, this.o44_1, this.p44_1, null));
8675
+ tmp_1 = async(this.r44_1, VOID, VOID, PageCollectionPage$buildPagesFromParsedPages$slambda$slambda_0(item, this.o44_1, this.p44_1, this.q44_1, null));
8657
8676
  } else {
8658
8677
  tmp_1 = tmp1_elvis_lhs;
8659
8678
  }
@@ -8684,22 +8703,22 @@
8684
8703
  while (true);
8685
8704
  };
8686
8705
  protoOf(PageCollectionPage$buildPagesFromParsedPages$slambda).b19 = function ($this$coroutineScope, completion) {
8687
- var i = new PageCollectionPage$buildPagesFromParsedPages$slambda(this.n44_1, this.o44_1, this.p44_1, completion);
8688
- i.q44_1 = $this$coroutineScope;
8706
+ var i = new PageCollectionPage$buildPagesFromParsedPages$slambda(this.o44_1, this.p44_1, this.q44_1, completion);
8707
+ i.r44_1 = $this$coroutineScope;
8689
8708
  return i;
8690
8709
  };
8691
8710
  function PageCollectionPage$buildPagesFromParsedPages$slambda_0(this$0, $parseFile, $pageIndex$delegate, resultContinuation) {
8692
8711
  var i = new PageCollectionPage$buildPagesFromParsedPages$slambda(this$0, $parseFile, $pageIndex$delegate, resultContinuation);
8693
8712
  var l = function ($this$coroutineScope, $completion) {
8694
- return i.r44($this$coroutineScope, $completion);
8713
+ return i.s44($this$coroutineScope, $completion);
8695
8714
  };
8696
8715
  l.$arity = 1;
8697
8716
  return l;
8698
8717
  }
8699
8718
  function $buildPagesFromParsedPagesCOROUTINE$3(_this__u8e3s4, parseFile, resultContinuation) {
8700
8719
  CoroutineImpl.call(this, resultContinuation);
8701
- this.c44_1 = _this__u8e3s4;
8702
- this.d44_1 = parseFile;
8720
+ this.d44_1 = _this__u8e3s4;
8721
+ this.e44_1 = parseFile;
8703
8722
  }
8704
8723
  protoOf($buildPagesFromParsedPagesCOROUTINE$3).d9 = function () {
8705
8724
  var suspendResult = this.x8_1;
@@ -8710,9 +8729,9 @@
8710
8729
  case 0:
8711
8730
  this.w8_1 = 2;
8712
8731
  var tmp_0 = this;
8713
- tmp_0.e44_1 = lazy(PageCollectionPage$buildPagesFromParsedPages$lambda(this.c44_1));
8732
+ tmp_0.f44_1 = lazy(PageCollectionPage$buildPagesFromParsedPages$lambda(this.d44_1));
8714
8733
  this.v8_1 = 1;
8715
- suspendResult = coroutineScope(PageCollectionPage$buildPagesFromParsedPages$slambda_0(this.c44_1, this.d44_1, this.e44_1, null), this);
8734
+ suspendResult = coroutineScope(PageCollectionPage$buildPagesFromParsedPages$slambda_0(this.d44_1, this.e44_1, this.f44_1, null), this);
8716
8735
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
8717
8736
  return suspendResult;
8718
8737
  }
@@ -8720,7 +8739,7 @@
8720
8739
  continue $sm;
8721
8740
  case 1:
8722
8741
  var ARGUMENT = suspendResult;
8723
- _set_pages__j2nojl_0(this.c44_1, ARGUMENT);
8742
+ _set_pages__j2nojl_0(this.d44_1, ARGUMENT);
8724
8743
  return Unit_instance;
8725
8744
  case 2:
8726
8745
  throw this.y8_1;
@@ -8737,16 +8756,16 @@
8737
8756
  while (true);
8738
8757
  };
8739
8758
  protoOf(PageCollectionPage).v3g = function () {
8740
- return this.r43_1;
8759
+ return this.s43_1;
8741
8760
  };
8742
8761
  protoOf(PageCollectionPage).g3k = function () {
8743
- return this.t43_1.b3r(this, pages$factory_2());
8762
+ return this.u43_1.b3r(this, pages$factory_2());
8744
8763
  };
8745
8764
  protoOf(PageCollectionPage).h3k = function (type) {
8746
8765
  return type.equals(getKClass(ContentPage));
8747
8766
  };
8748
8767
  function PageCollectionPage() {
8749
- this.t43_1 = setOnce();
8768
+ this.u43_1 = setOnce();
8750
8769
  }
8751
8770
  function pages$factory_1() {
8752
8771
  return getPropertyCallableRef('pages', 1, KMutableProperty1, function (receiver) {
@@ -8776,7 +8795,7 @@
8776
8795
  if (!(_this__u8e3s4.p3b() === 2))
8777
8796
  continue $l$loop_0;
8778
8797
  if (_this__u8e3s4.q3b() === 'https://mobile-content-api.cru.org/xmlns/shareable') {
8779
- var tmp1_safe_receiver = Companion_instance_49.s44(manifest, _this__u8e3s4);
8798
+ var tmp1_safe_receiver = Companion_instance_49.t44(manifest, _this__u8e3s4);
8780
8799
  if (tmp1_safe_receiver == null)
8781
8800
  null;
8782
8801
  else {
@@ -8790,8 +8809,8 @@
8790
8809
  }
8791
8810
  return this_0.k3();
8792
8811
  };
8793
- protoOf(Companion_48).s44 = function (manifest, parser) {
8794
- parser.t44(2, 'https://mobile-content-api.cru.org/xmlns/shareable');
8812
+ protoOf(Companion_48).t44 = function (manifest, parser) {
8813
+ parser.u44(2, 'https://mobile-content-api.cru.org/xmlns/shareable');
8795
8814
  var tmp;
8796
8815
  if (parser.q3b() === 'https://mobile-content-api.cru.org/xmlns/shareable') {
8797
8816
  tmp = parser.l2() === 'image' ? ShareableImage_init_$Create$(manifest, parser) : null;
@@ -8807,7 +8826,7 @@
8807
8826
  function Shareable_init_$Init$(parent, parser, $this) {
8808
8827
  BaseModel.call($this, parent);
8809
8828
  Shareable.call($this);
8810
- parser.t44(2, 'https://mobile-content-api.cru.org/xmlns/shareable');
8829
+ parser.u44(2, 'https://mobile-content-api.cru.org/xmlns/shareable');
8811
8830
  $this.u3p_1 = parser.d3d('id');
8812
8831
  var tmp = $this;
8813
8832
  var tmp0_safe_receiver = parser.d3d('order');
@@ -8821,7 +8840,7 @@
8821
8840
  function Shareable() {
8822
8841
  }
8823
8842
  function Companion_49() {
8824
- this.u44_1 = 'image';
8843
+ this.v44_1 = 'image';
8825
8844
  }
8826
8845
  var Companion_instance_50;
8827
8846
  function Companion_getInstance_52() {
@@ -8831,7 +8850,7 @@
8831
8850
  Shareable_init_$Init$(manifest, parser, $this);
8832
8851
  ShareableImage.call($this);
8833
8852
  parser.o3b(2, 'https://mobile-content-api.cru.org/xmlns/shareable', 'image');
8834
- $this.y44_1 = parser.d3d('resource');
8853
+ $this.z44_1 = parser.d3d('resource');
8835
8854
  var description = null;
8836
8855
  // Inline function 'org.cru.godtools.shared.tool.parser.xml.parseChildren' call
8837
8856
  $l$loop_0: while (!(parser.l() === 3)) {
@@ -8845,7 +8864,7 @@
8845
8864
  continue $l$loop_0;
8846
8865
  skipTag(parser);
8847
8866
  }
8848
- $this.z44_1 = description;
8867
+ $this.a45_1 = description;
8849
8868
  return $this;
8850
8869
  }
8851
8870
  function ShareableImage_init_$Create$(manifest, parser) {
@@ -8853,12 +8872,12 @@
8853
8872
  }
8854
8873
  protoOf(ShareableImage).i3c = function () {
8855
8874
  var tmp0_elvis_lhs = protoOf(Shareable).i3c.call(this);
8856
- return tmp0_elvis_lhs == null ? this.y44_1 : tmp0_elvis_lhs;
8875
+ return tmp0_elvis_lhs == null ? this.z44_1 : tmp0_elvis_lhs;
8857
8876
  };
8858
8877
  function ShareableImage() {
8859
8878
  }
8860
8879
  function Companion_50() {
8861
- this.a45_1 = 'tip';
8880
+ this.b45_1 = 'tip';
8862
8881
  }
8863
8882
  var Companion_instance_51;
8864
8883
  function Companion_getInstance_53() {
@@ -8888,7 +8907,7 @@
8888
8907
  protoOf(InlineTip).i3c = function () {
8889
8908
  return this.id;
8890
8909
  };
8891
- protoOf(InlineTip).h45 = function () {
8910
+ protoOf(InlineTip).i45 = function () {
8892
8911
  return this.s38().k3r(this.id);
8893
8912
  };
8894
8913
  protoOf(InlineTip).u3c = function () {
@@ -8903,7 +8922,7 @@
8903
8922
  var Type_QUOTE_instance;
8904
8923
  function Companion_51() {
8905
8924
  Companion_instance_52 = this;
8906
- this.i45_1 = Type_TIP_getInstance();
8925
+ this.j45_1 = Type_TIP_getInstance();
8907
8926
  }
8908
8927
  protoOf(Companion_51).x3k = function (_this__u8e3s4) {
8909
8928
  switch (_this__u8e3s4) {
@@ -8948,7 +8967,7 @@
8948
8967
  var tmp = $this;
8949
8968
  var tmp0_safe_receiver = parser.d3d('type');
8950
8969
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : Companion_getInstance_54().x3k(tmp0_safe_receiver);
8951
- tmp.h3o_1 = tmp1_elvis_lhs == null ? Companion_getInstance_54().i45_1 : tmp1_elvis_lhs;
8970
+ tmp.h3o_1 = tmp1_elvis_lhs == null ? Companion_getInstance_54().j45_1 : tmp1_elvis_lhs;
8952
8971
  var tmp_0 = $this;
8953
8972
  // Inline function 'kotlin.collections.buildList' call
8954
8973
  // Inline function 'kotlin.collections.buildListInternal' call
@@ -8976,7 +8995,7 @@
8976
8995
  function Tip_init_$Init$_0(manifest, id, type, $this) {
8977
8996
  manifest = manifest === VOID ? null : manifest;
8978
8997
  id = id === VOID ? '' : id;
8979
- type = type === VOID ? Companion_getInstance_54().i45_1 : type;
8998
+ type = type === VOID ? Companion_getInstance_54().j45_1 : type;
8980
8999
  BaseModel.call($this, manifest);
8981
9000
  Tip.call($this);
8982
9001
  $this.g3o_1 = id;
@@ -9043,7 +9062,7 @@
9043
9062
  function Tip() {
9044
9063
  }
9045
9064
  function Companion_52() {
9046
- this.j45_1 = 'page';
9065
+ this.k45_1 = 'page';
9047
9066
  }
9048
9067
  var Companion_instance_53;
9049
9068
  function Companion_getInstance_55() {
@@ -9053,8 +9072,8 @@
9053
9072
  BaseModel.call($this, tip);
9054
9073
  TipPage.call($this);
9055
9074
  parser.o3b(2, 'https://mobile-content-api.cru.org/xmlns/training', 'page');
9056
- $this.l45_1 = tip;
9057
- $this.m45_1 = position;
9075
+ $this.m45_1 = tip;
9076
+ $this.n45_1 = position;
9058
9077
  var tmp = $this;
9059
9078
  // Inline function 'org.cru.godtools.shared.tool.parser.model.parseContent' call
9060
9079
  // Inline function 'kotlin.collections.buildList' call
@@ -9096,19 +9115,19 @@
9096
9115
  continue $l$loop_0;
9097
9116
  skipTag(parser);
9098
9117
  }
9099
- tmp.n45_1 = this_0.k3();
9118
+ tmp.o45_1 = this_0.k3();
9100
9119
  return $this;
9101
9120
  }
9102
9121
  function TipPage_init_$Create$(tip, position, parser) {
9103
9122
  return TipPage_init_$Init$(tip, position, parser, objectCreate(protoOf(TipPage)));
9104
9123
  }
9105
9124
  protoOf(TipPage).k3c = function () {
9106
- return this.n45_1;
9125
+ return this.o45_1;
9107
9126
  };
9108
9127
  function TipPage() {
9109
9128
  }
9110
9129
  function Companion_53() {
9111
- this.o45_1 = 'call-to-action';
9130
+ this.p45_1 = 'call-to-action';
9112
9131
  }
9113
9132
  var Companion_instance_54;
9114
9133
  function Companion_getInstance_56() {
@@ -9117,10 +9136,10 @@
9117
9136
  function CallToAction_init_$Init$(parent, $this) {
9118
9137
  BaseModel.call($this, parent);
9119
9138
  CallToAction.call($this);
9120
- $this.q45_1 = parent;
9139
+ $this.r45_1 = parent;
9121
9140
  $this.label = null;
9122
- $this.r45_1 = null;
9123
9141
  $this.s45_1 = null;
9142
+ $this.t45_1 = null;
9124
9143
  return $this;
9125
9144
  }
9126
9145
  function CallToAction_init_$Create$(parent) {
@@ -9130,11 +9149,12 @@
9130
9149
  BaseModel.call($this, page);
9131
9150
  CallToAction.call($this);
9132
9151
  parser.o3b(2, 'https://mobile-content-api.cru.org/xmlns/tract', 'call-to-action');
9133
- $this.q45_1 = page;
9152
+ $this.r45_1 = page;
9134
9153
  var tmp = $this;
9135
9154
  var tmp0_safe_receiver = parser.d3d('control-color');
9136
- tmp.r45_1 = tmp0_safe_receiver == null ? null : toColorOrNull(tmp0_safe_receiver);
9137
- $this.s45_1 = parser.n3p('https://mobile-content-api.cru.org/xmlns/training', 'tip');
9155
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toColorOrNull(tmp0_safe_receiver);
9156
+ tmp.s45_1 = tmp1_safe_receiver == null ? null : toPlatformColor(tmp1_safe_receiver);
9157
+ $this.t45_1 = parser.n3p('https://mobile-content-api.cru.org/xmlns/training', 'tip');
9138
9158
  $this.label = parseTextChild(parser, $this, 'https://mobile-content-api.cru.org/xmlns/tract', 'call-to-action');
9139
9159
  return $this;
9140
9160
  }
@@ -9148,11 +9168,11 @@
9148
9168
  tip = tip === VOID ? null : tip;
9149
9169
  BaseModel.call($this, page);
9150
9170
  CallToAction.call($this);
9151
- $this.q45_1 = page;
9171
+ $this.r45_1 = page;
9152
9172
  var tmp = $this;
9153
9173
  tmp.label = label == null ? null : label($this);
9154
- $this.r45_1 = controlColor;
9155
- $this.s45_1 = tip;
9174
+ $this.s45_1 = controlColor;
9175
+ $this.t45_1 = tip;
9156
9176
  return $this;
9157
9177
  }
9158
9178
  function createTestCallToAction(page, label, controlColor, tip) {
@@ -9161,20 +9181,20 @@
9161
9181
  protoOf(CallToAction).i3l = function () {
9162
9182
  return this.label;
9163
9183
  };
9164
- protoOf(CallToAction).t45 = function () {
9165
- var tmp0_elvis_lhs = this.r45_1;
9184
+ protoOf(CallToAction).u45 = function () {
9185
+ var tmp0_elvis_lhs = this.s45_1;
9166
9186
  return tmp0_elvis_lhs == null ? get_primaryColor_0(get_stylesParent(this)) : tmp0_elvis_lhs;
9167
9187
  };
9168
- protoOf(CallToAction).u45 = function () {
9169
- return this.s45_1;
9188
+ protoOf(CallToAction).v45 = function () {
9189
+ return this.t45_1;
9170
9190
  };
9171
- protoOf(CallToAction).h45 = function () {
9172
- return this.s38().k3r(this.s45_1);
9191
+ protoOf(CallToAction).i45 = function () {
9192
+ return this.s38().k3r(this.t45_1);
9173
9193
  };
9174
9194
  function CallToAction() {
9175
9195
  }
9176
9196
  function Companion_54() {
9177
- this.v45_1 = 'header';
9197
+ this.w45_1 = 'header';
9178
9198
  }
9179
9199
  var Companion_instance_55;
9180
9200
  function Companion_getInstance_57() {
@@ -9186,8 +9206,9 @@
9186
9206
  parser.o3b(2, 'https://mobile-content-api.cru.org/xmlns/tract', 'header');
9187
9207
  var tmp = $this;
9188
9208
  var tmp0_safe_receiver = parser.d3d('background-color');
9189
- tmp.x45_1 = tmp0_safe_receiver == null ? null : toColorOrNull(tmp0_safe_receiver);
9190
- $this.y45_1 = parser.n3p('https://mobile-content-api.cru.org/xmlns/training', 'tip');
9209
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toColorOrNull(tmp0_safe_receiver);
9210
+ tmp.y45_1 = tmp1_safe_receiver == null ? null : toPlatformColor(tmp1_safe_receiver);
9211
+ $this.z45_1 = parser.n3p('https://mobile-content-api.cru.org/xmlns/training', 'tip');
9191
9212
  var number = null;
9192
9213
  var title = null;
9193
9214
  // Inline function 'org.cru.godtools.shared.tool.parser.xml.parseChildren' call
@@ -9213,11 +9234,11 @@
9213
9234
  return Header_init_$Init$_0(page, parser, objectCreate(protoOf(Header_0)));
9214
9235
  }
9215
9236
  protoOf(Header_0).i3q = function () {
9216
- var tmp0_elvis_lhs = this.x45_1;
9237
+ var tmp0_elvis_lhs = this.y45_1;
9217
9238
  return tmp0_elvis_lhs == null ? this.q3h() : tmp0_elvis_lhs;
9218
9239
  };
9219
9240
  protoOf(Header_0).o3h = function () {
9220
- return this.r3h();
9241
+ return toRGB(this.r3h());
9221
9242
  };
9222
9243
  protoOf(Header_0).ji = function () {
9223
9244
  return this.number;
@@ -9225,23 +9246,23 @@
9225
9246
  protoOf(Header_0).n3q = function () {
9226
9247
  return this.title;
9227
9248
  };
9228
- protoOf(Header_0).u45 = function () {
9229
- return this.y45_1;
9249
+ protoOf(Header_0).v45 = function () {
9250
+ return this.z45_1;
9230
9251
  };
9231
- protoOf(Header_0).h45 = function () {
9232
- return this.s38().k3r(this.y45_1);
9252
+ protoOf(Header_0).i45 = function () {
9253
+ return this.s38().k3r(this.z45_1);
9233
9254
  };
9234
9255
  function Header_0() {
9235
9256
  }
9236
9257
  function Companion_55() {
9237
- this.z45_1 = 'hero';
9258
+ this.a46_1 = 'hero';
9238
9259
  }
9239
9260
  var Companion_instance_56;
9240
9261
  function Companion_getInstance_58() {
9241
9262
  return Companion_instance_56;
9242
9263
  }
9243
9264
  function _get_headingParent__2ts5bv($this) {
9244
- var tmp0 = $this.b46_1;
9265
+ var tmp0 = $this.c46_1;
9245
9266
  // Inline function 'kotlin.getValue' call
9246
9267
  headingParent$factory();
9247
9268
  return tmp0.c2();
@@ -9252,7 +9273,7 @@
9252
9273
  parser.o3b(2, 'https://mobile-content-api.cru.org/xmlns/tract', 'hero');
9253
9274
  var tmp = $this;
9254
9275
  // Inline function 'kotlin.collections.mutableListOf' call
9255
- tmp.d46_1 = ArrayList_init_$Create$();
9276
+ tmp.e46_1 = ArrayList_init_$Create$();
9256
9277
  var heading = null;
9257
9278
  var tmp_0 = $this;
9258
9279
  // Inline function 'org.cru.godtools.shared.tool.parser.model.parseContent' call
@@ -9269,7 +9290,7 @@
9269
9290
  var tmp0_subject = parser.q3b();
9270
9291
  if (tmp0_subject === 'https://mobile-content-api.cru.org/xmlns/analytics') {
9271
9292
  if (parser.l2() === 'events') {
9272
- var tmp0 = $this.d46_1;
9293
+ var tmp0 = $this.e46_1;
9273
9294
  // Inline function 'kotlin.collections.plusAssign' call
9274
9295
  var elements = Companion_instance_4.s3b(parser, $this);
9275
9296
  addAll(tmp0, elements);
@@ -9307,7 +9328,7 @@
9307
9328
  continue $l$loop_0;
9308
9329
  skipTag(parser);
9309
9330
  }
9310
- tmp_0.c46_1 = this_0.k3();
9331
+ tmp_0.d46_1 = this_0.k3();
9311
9332
  $this.heading = heading;
9312
9333
  return $this;
9313
9334
  }
@@ -9320,10 +9341,10 @@
9320
9341
  heading = heading === VOID ? null : heading;
9321
9342
  BaseModel.call($this, page);
9322
9343
  Hero.call($this);
9323
- $this.d46_1 = analyticsEvents;
9344
+ $this.e46_1 = analyticsEvents;
9324
9345
  var tmp = $this;
9325
9346
  tmp.heading = heading == null ? null : heading(_get_headingParent__2ts5bv($this));
9326
- $this.c46_1 = emptyList();
9347
+ $this.d46_1 = emptyList();
9327
9348
  return $this;
9328
9349
  }
9329
9350
  function createTestHero(page, analyticsEvents, heading) {
@@ -9331,7 +9352,7 @@
9331
9352
  }
9332
9353
  function Hero$headingParent$delegate$lambda$lambda(this$0) {
9333
9354
  return function () {
9334
- return get_primaryColor_0(get_stylesParent(this$0));
9355
+ return toRGB(get_primaryColor_0(get_stylesParent(this$0)));
9335
9356
  };
9336
9357
  }
9337
9358
  function Hero$headingParent$delegate$lambda(this$0) {
@@ -9339,14 +9360,14 @@
9339
9360
  return stylesOverride(this$0, VOID, Hero$headingParent$delegate$lambda$lambda(this$0));
9340
9361
  };
9341
9362
  }
9342
- protoOf(Hero).e46 = function () {
9363
+ protoOf(Hero).f46 = function () {
9343
9364
  return this.heading;
9344
9365
  };
9345
9366
  protoOf(Hero).k3c = function () {
9346
- return this.c46_1;
9367
+ return this.d46_1;
9347
9368
  };
9348
9369
  protoOf(Hero).v3g = function () {
9349
- return this.d46_1;
9370
+ return this.e46_1;
9350
9371
  };
9351
9372
  protoOf(Hero).l3c = function (type) {
9352
9373
  var tmp;
@@ -9354,7 +9375,7 @@
9354
9375
  case 0:
9355
9376
  // Inline function 'kotlin.collections.filter' call
9356
9377
 
9357
- var tmp0 = this.d46_1;
9378
+ var tmp0 = this.e46_1;
9358
9379
  // Inline function 'kotlin.collections.filterTo' call
9359
9380
 
9360
9381
  var destination = ArrayList_init_$Create$();
@@ -9371,7 +9392,7 @@
9371
9392
  case 1:
9372
9393
  // Inline function 'kotlin.collections.filter' call
9373
9394
 
9374
- var tmp0_0 = this.d46_1;
9395
+ var tmp0_0 = this.e46_1;
9375
9396
  // Inline function 'kotlin.collections.filterTo' call
9376
9397
 
9377
9398
  var destination_0 = ArrayList_init_$Create$();
@@ -9396,7 +9417,7 @@
9396
9417
  };
9397
9418
  function Hero() {
9398
9419
  var tmp = this;
9399
- tmp.b46_1 = lazy(Hero$headingParent$delegate$lambda(this));
9420
+ tmp.c46_1 = lazy(Hero$headingParent$delegate$lambda(this));
9400
9421
  }
9401
9422
  function headingParent$factory() {
9402
9423
  return getPropertyCallableRef('headingParent', 1, KProperty1, function (receiver) {
@@ -9404,7 +9425,7 @@
9404
9425
  }, null);
9405
9426
  }
9406
9427
  function Companion_56() {
9407
- this.f46_1 = 'modal';
9428
+ this.g46_1 = 'modal';
9408
9429
  }
9409
9430
  var Companion_instance_57;
9410
9431
  function Companion_getInstance_59() {
@@ -9466,14 +9487,14 @@
9466
9487
  continue $l$loop_0;
9467
9488
  skipTag(parser);
9468
9489
  }
9469
- tmp.b47_1 = this_0.k3();
9490
+ tmp.c47_1 = this_0.k3();
9470
9491
  $this.title = title;
9471
9492
  return $this;
9472
9493
  }
9473
9494
  function Modal_init_$Create$(parent, parser) {
9474
9495
  return Modal_init_$Init$(parent, parser, objectCreate(protoOf(Modal)));
9475
9496
  }
9476
- protoOf(Modal).u3z = function () {
9497
+ protoOf(Modal).v3z = function () {
9477
9498
  return this.page;
9478
9499
  };
9479
9500
  protoOf(Modal).i3c = function () {
@@ -9483,7 +9504,7 @@
9483
9504
  return this.title;
9484
9505
  };
9485
9506
  protoOf(Modal).k3c = function () {
9486
- return this.b47_1;
9507
+ return this.c47_1;
9487
9508
  };
9488
9509
  protoOf(Modal).q3u = function () {
9489
9510
  return this._listeners;
@@ -9492,13 +9513,13 @@
9492
9513
  return this._dismissListeners;
9493
9514
  };
9494
9515
  protoOf(Modal).q3h = function () {
9495
- return get_TRANSPARENT();
9516
+ return toPlatformColor(get_TRANSPARENT());
9496
9517
  };
9497
9518
  protoOf(Modal).r3h = function () {
9498
- return get_WHITE();
9519
+ return toPlatformColor(get_WHITE());
9499
9520
  };
9500
9521
  protoOf(Modal).q3g = function () {
9501
- return get_WHITE();
9522
+ return toPlatformColor(get_WHITE());
9502
9523
  };
9503
9524
  protoOf(Modal).s3h = function () {
9504
9525
  return Style_OUTLINED_getInstance();
@@ -9523,11 +9544,11 @@
9523
9544
  }
9524
9545
  function Companion_57() {
9525
9546
  Companion_instance_58 = this;
9526
- this.c47_1 = 'card';
9527
- this.d47_1 = 'label';
9528
- this.e47_1 = 'hidden';
9529
- this.f47_1 = ImageScaleType_FILL_X_getInstance();
9530
- this.g47_1 = Companion_getInstance_22().CENTER;
9547
+ this.d47_1 = 'card';
9548
+ this.e47_1 = 'label';
9549
+ this.f47_1 = 'hidden';
9550
+ this.g47_1 = ImageScaleType_FILL_X_getInstance();
9551
+ this.h47_1 = Companion_getInstance_22().CENTER;
9531
9552
  }
9532
9553
  var Companion_instance_58;
9533
9554
  function Companion_getInstance_60() {
@@ -9536,7 +9557,7 @@
9536
9557
  return Companion_instance_58;
9537
9558
  }
9538
9559
  function _get_labelParent__664ln7($this) {
9539
- var tmp0 = $this.n47_1;
9560
+ var tmp0 = $this.o47_1;
9540
9561
  // Inline function 'kotlin.getValue' call
9541
9562
  labelParent$factory();
9542
9563
  return tmp0.c2();
@@ -9555,22 +9576,23 @@
9555
9576
  $this._dismissListeners = toSet_0(toEventIds(parser.d3d('dismiss-listeners')));
9556
9577
  var tmp_0 = $this;
9557
9578
  var tmp2_safe_receiver = parser.d3d('background-color');
9558
- tmp_0.i47_1 = tmp2_safe_receiver == null ? null : toColorOrNull(tmp2_safe_receiver);
9559
- $this.j47_1 = parser.d3d('background-image');
9579
+ var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toColorOrNull(tmp2_safe_receiver);
9580
+ tmp_0.j47_1 = tmp3_safe_receiver == null ? null : toPlatformColor(tmp3_safe_receiver);
9581
+ $this.k47_1 = parser.d3d('background-image');
9560
9582
  var tmp_1 = $this;
9561
- var tmp3_safe_receiver = parser.d3d('background-image-align');
9562
- var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : Companion_getInstance_22().k3g(tmp3_safe_receiver);
9563
- tmp_1.k47_1 = tmp4_elvis_lhs == null ? Companion_getInstance_60().g47_1 : tmp4_elvis_lhs;
9583
+ var tmp4_safe_receiver = parser.d3d('background-image-align');
9584
+ var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : Companion_getInstance_22().k3g(tmp4_safe_receiver);
9585
+ tmp_1.l47_1 = tmp5_elvis_lhs == null ? Companion_getInstance_60().h47_1 : tmp5_elvis_lhs;
9564
9586
  var tmp_2 = $this;
9565
- var tmp5_safe_receiver = parser.d3d('background-image-scale-type');
9566
- var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : Companion_instance_22.v3k(tmp5_safe_receiver);
9567
- tmp_2.l47_1 = tmp6_elvis_lhs == null ? Companion_getInstance_60().f47_1 : tmp6_elvis_lhs;
9587
+ var tmp6_safe_receiver = parser.d3d('background-image-scale-type');
9588
+ var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : Companion_instance_22.v3k(tmp6_safe_receiver);
9589
+ tmp_2.m47_1 = tmp7_elvis_lhs == null ? Companion_getInstance_60().g47_1 : tmp7_elvis_lhs;
9568
9590
  var tmp_3 = $this;
9569
- var tmp7_safe_receiver = parser.d3d('text-color');
9570
- tmp_3.m47_1 = tmp7_safe_receiver == null ? null : toColorOrNull(tmp7_safe_receiver);
9591
+ var tmp8_safe_receiver = parser.d3d('text-color');
9592
+ tmp_3.n47_1 = tmp8_safe_receiver == null ? null : toColorOrNull(tmp8_safe_receiver);
9571
9593
  var tmp_4 = $this;
9572
9594
  // Inline function 'kotlin.collections.mutableListOf' call
9573
- tmp_4.p47_1 = ArrayList_init_$Create$();
9595
+ tmp_4.q47_1 = ArrayList_init_$Create$();
9574
9596
  var label = null;
9575
9597
  var tmp_5 = $this;
9576
9598
  // Inline function 'org.cru.godtools.shared.tool.parser.model.parseContent' call
@@ -9587,7 +9609,7 @@
9587
9609
  var tmp0_subject = parser.q3b();
9588
9610
  if (tmp0_subject === 'https://mobile-content-api.cru.org/xmlns/analytics') {
9589
9611
  if (parser.l2() === 'events') {
9590
- var tmp0 = $this.p47_1;
9612
+ var tmp0 = $this.q47_1;
9591
9613
  // Inline function 'kotlin.collections.plusAssign' call
9592
9614
  var elements = Companion_instance_4.s3b(parser, $this);
9593
9615
  addAll(tmp0, elements);
@@ -9625,7 +9647,7 @@
9625
9647
  continue $l$loop_0;
9626
9648
  skipTag(parser);
9627
9649
  }
9628
- tmp_5.o47_1 = this_0.k3();
9650
+ tmp_5.p47_1 = this_0.k3();
9629
9651
  $this.label = label;
9630
9652
  return $this;
9631
9653
  }
@@ -9637,8 +9659,8 @@
9637
9659
  position = position === VOID ? 0 : position;
9638
9660
  backgroundColor = backgroundColor === VOID ? null : backgroundColor;
9639
9661
  backgroundImage = backgroundImage === VOID ? null : backgroundImage;
9640
- backgroundImageGravity = backgroundImageGravity === VOID ? Companion_getInstance_60().g47_1 : backgroundImageGravity;
9641
- backgroundImageScaleType = backgroundImageScaleType === VOID ? Companion_getInstance_60().f47_1 : backgroundImageScaleType;
9662
+ backgroundImageGravity = backgroundImageGravity === VOID ? Companion_getInstance_60().h47_1 : backgroundImageGravity;
9663
+ backgroundImageScaleType = backgroundImageScaleType === VOID ? Companion_getInstance_60().g47_1 : backgroundImageScaleType;
9642
9664
  isHidden = isHidden === VOID ? false : isHidden;
9643
9665
  analyticsEvents = analyticsEvents === VOID ? emptyList() : analyticsEvents;
9644
9666
  label = label === VOID ? null : label;
@@ -9650,18 +9672,18 @@
9650
9672
  $this.isHidden = isHidden;
9651
9673
  $this._listeners = emptySet();
9652
9674
  $this._dismissListeners = emptySet();
9653
- $this.p47_1 = analyticsEvents;
9654
- $this.i47_1 = backgroundColor;
9655
- $this.j47_1 = backgroundImage;
9656
- $this.k47_1 = backgroundImageGravity;
9657
- $this.l47_1 = backgroundImageScaleType;
9658
- $this.m47_1 = null;
9675
+ $this.q47_1 = analyticsEvents;
9676
+ $this.j47_1 = backgroundColor;
9677
+ $this.k47_1 = backgroundImage;
9678
+ $this.l47_1 = backgroundImageGravity;
9679
+ $this.m47_1 = backgroundImageScaleType;
9680
+ $this.n47_1 = null;
9659
9681
  var tmp = $this;
9660
9682
  tmp.label = label == null ? null : label(_get_labelParent__664ln7($this));
9661
9683
  var tmp_0 = $this;
9662
9684
  // Inline function 'kotlin.collections.orEmpty' call
9663
9685
  var tmp0_elvis_lhs = content == null ? null : content($this);
9664
- tmp_0.o47_1 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
9686
+ tmp_0.p47_1 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
9665
9687
  return $this;
9666
9688
  }
9667
9689
  function createTestCard(page, position, backgroundColor, backgroundImage, backgroundImageGravity, backgroundImageScaleType, isHidden, analyticsEvents, label, content) {
@@ -9669,7 +9691,7 @@
9669
9691
  }
9670
9692
  function TractPage$Card$labelParent$delegate$lambda$lambda(this$0) {
9671
9693
  return function () {
9672
- return this$0.q3h();
9694
+ return toRGB(this$0.q3h());
9673
9695
  };
9674
9696
  }
9675
9697
  function TractPage$Card$labelParent$delegate$lambda(this$0) {
@@ -9683,7 +9705,8 @@
9683
9705
  parser.o3b(2, 'https://mobile-content-api.cru.org/xmlns/tract', 'page');
9684
9706
  var tmp = $this;
9685
9707
  var tmp0_safe_receiver = parser.d3d('card-text-color');
9686
- tmp.z46_1 = tmp0_safe_receiver == null ? null : toColorOrNull(tmp0_safe_receiver);
9708
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toColorOrNull(tmp0_safe_receiver);
9709
+ tmp.a47_1 = tmp1_safe_receiver == null ? null : toPlatformColor(tmp1_safe_receiver);
9687
9710
  var header = null;
9688
9711
  var hero = null;
9689
9712
  var tmp_0 = $this;
@@ -9731,8 +9754,8 @@
9731
9754
  $this.header = header;
9732
9755
  $this.hero = hero;
9733
9756
  var tmp_2 = $this;
9734
- var tmp1_elvis_lhs = callToAction;
9735
- tmp_2.callToAction = tmp1_elvis_lhs == null ? CallToAction_init_$Create$($this) : tmp1_elvis_lhs;
9757
+ var tmp2_elvis_lhs = callToAction;
9758
+ tmp_2.callToAction = tmp2_elvis_lhs == null ? CallToAction_init_$Create$($this) : tmp2_elvis_lhs;
9736
9759
  return $this;
9737
9760
  }
9738
9761
  function TractPage_init_$Create$(container, fileName, parser) {
@@ -9754,7 +9777,7 @@
9754
9777
  callToAction = callToAction === VOID ? null : callToAction;
9755
9778
  Page_init_$Init$_0(manifest, VOID, fileName, VOID, primaryColor, backgroundColor, backgroundImage, backgroundImageGravity, backgroundImageScaleType, VOID, cardBackgroundColor, VOID, VOID, textColor, textScale, $this);
9756
9779
  TractPage.call($this);
9757
- $this.z46_1 = cardTextColor;
9780
+ $this.a47_1 = cardTextColor;
9758
9781
  $this.header = null;
9759
9782
  $this.hero = null;
9760
9783
  var tmp = $this;
@@ -9770,7 +9793,7 @@
9770
9793
  function createTestTractPage(manifest, fileName, backgroundColor, backgroundImage, primaryColor, backgroundImageGravity, backgroundImageScaleType, textColor, textScale, cardBackgroundColor, cardTextColor, cards, callToAction) {
9771
9794
  return TractPage_init_$Init$_0(manifest, fileName, backgroundColor, backgroundImage, primaryColor, backgroundImageGravity, backgroundImageScaleType, textColor, textScale, cardBackgroundColor, cardTextColor, cards, callToAction, objectCreate(protoOf(TractPage)));
9772
9795
  }
9773
- protoOf(Card_1).u3z = function () {
9796
+ protoOf(Card_1).v3z = function () {
9774
9797
  return this.page;
9775
9798
  };
9776
9799
  protoOf(Card_1).i3c = function () {
@@ -9779,7 +9802,7 @@
9779
9802
  protoOf(Card_1).p3u = function () {
9780
9803
  return this.position;
9781
9804
  };
9782
- protoOf(Card_1).q47 = function () {
9805
+ protoOf(Card_1).r47 = function () {
9783
9806
  // Inline function 'kotlin.takeUnless' call
9784
9807
  var this_0 = this.page.visibleCards.w1(this);
9785
9808
  var tmp;
@@ -9790,10 +9813,10 @@
9790
9813
  }
9791
9814
  return tmp;
9792
9815
  };
9793
- protoOf(Card_1).r47 = function () {
9816
+ protoOf(Card_1).s47 = function () {
9794
9817
  return equals(this, lastOrNull(this.page.visibleCards));
9795
9818
  };
9796
- protoOf(Card_1).k3y = function () {
9819
+ protoOf(Card_1).l3y = function () {
9797
9820
  return this.isHidden;
9798
9821
  };
9799
9822
  protoOf(Card_1).q3u = function () {
@@ -9803,27 +9826,27 @@
9803
9826
  return this._dismissListeners;
9804
9827
  };
9805
9828
  protoOf(Card_1).i3q = function () {
9806
- var tmp0_elvis_lhs = this.i47_1;
9829
+ var tmp0_elvis_lhs = this.j47_1;
9807
9830
  return tmp0_elvis_lhs == null ? this.page.t3h() : tmp0_elvis_lhs;
9808
9831
  };
9809
9832
  protoOf(Card_1).j3q = function () {
9810
- return getResource(this, this.j47_1);
9833
+ return getResource(this, this.k47_1);
9811
9834
  };
9812
9835
  protoOf(Card_1).k3q = function () {
9813
- return this.k47_1;
9836
+ return this.l47_1;
9814
9837
  };
9815
9838
  protoOf(Card_1).l3q = function () {
9816
- return this.l47_1;
9839
+ return this.m47_1;
9817
9840
  };
9818
9841
  protoOf(Card_1).o3h = function () {
9819
- var tmp0_elvis_lhs = this.m47_1;
9820
- return tmp0_elvis_lhs == null ? this.page.cardTextColor : tmp0_elvis_lhs;
9842
+ var tmp0_elvis_lhs = this.n47_1;
9843
+ return tmp0_elvis_lhs == null ? toRGB(this.page.cardTextColor) : tmp0_elvis_lhs;
9821
9844
  };
9822
9845
  protoOf(Card_1).i3l = function () {
9823
9846
  return this.label;
9824
9847
  };
9825
9848
  protoOf(Card_1).k3c = function () {
9826
- return this.o47_1;
9849
+ return this.p47_1;
9827
9850
  };
9828
9851
  protoOf(Card_1).u3c = function () {
9829
9852
  // Inline function 'org.cru.godtools.shared.tool.parser.model.contentTips' call
@@ -9840,7 +9863,7 @@
9840
9863
  return destination;
9841
9864
  };
9842
9865
  protoOf(Card_1).v3g = function () {
9843
- return this.p47_1;
9866
+ return this.q47_1;
9844
9867
  };
9845
9868
  protoOf(Card_1).l3c = function (type) {
9846
9869
  var tmp;
@@ -9848,7 +9871,7 @@
9848
9871
  case 0:
9849
9872
  // Inline function 'kotlin.collections.filter' call
9850
9873
 
9851
- var tmp0 = this.p47_1;
9874
+ var tmp0 = this.q47_1;
9852
9875
  // Inline function 'kotlin.collections.filterTo' call
9853
9876
 
9854
9877
  var destination = ArrayList_init_$Create$();
@@ -9865,7 +9888,7 @@
9865
9888
  case 1:
9866
9889
  // Inline function 'kotlin.collections.filter' call
9867
9890
 
9868
- var tmp0_0 = this.p47_1;
9891
+ var tmp0_0 = this.q47_1;
9869
9892
  // Inline function 'kotlin.collections.filterTo' call
9870
9893
 
9871
9894
  var destination_0 = ArrayList_init_$Create$();
@@ -9901,7 +9924,7 @@
9901
9924
  function Card_1() {
9902
9925
  Companion_getInstance_60();
9903
9926
  var tmp = this;
9904
- tmp.n47_1 = lazy(TractPage$Card$labelParent$delegate$lambda(this));
9927
+ tmp.o47_1 = lazy(TractPage$Card$labelParent$delegate$lambda(this));
9905
9928
  }
9906
9929
  function parseCardsXml($this, _this__u8e3s4) {
9907
9930
  // Inline function 'kotlin.collections.buildList' call
@@ -9945,22 +9968,22 @@
9945
9968
  }
9946
9969
  return this_0.k3();
9947
9970
  }
9948
- protoOf(TractPage).s47 = function () {
9971
+ protoOf(TractPage).t47 = function () {
9949
9972
  return equals(lastOrNull(this.s38().g3k()), this);
9950
9973
  };
9951
9974
  protoOf(TractPage).v3g = function () {
9952
- return this.y46_1;
9975
+ return this.z46_1;
9953
9976
  };
9954
9977
  protoOf(TractPage).j3c = function () {
9955
9978
  return this.header;
9956
9979
  };
9957
- protoOf(TractPage).t47 = function () {
9980
+ protoOf(TractPage).u47 = function () {
9958
9981
  return this.hero;
9959
9982
  };
9960
- protoOf(TractPage).u47 = function () {
9983
+ protoOf(TractPage).v47 = function () {
9961
9984
  return this._modals;
9962
9985
  };
9963
- protoOf(TractPage).v47 = function () {
9986
+ protoOf(TractPage).w47 = function () {
9964
9987
  return this.callToAction;
9965
9988
  };
9966
9989
  protoOf(TractPage).findModal = function (id) {
@@ -9980,10 +10003,10 @@
9980
10003
  }
9981
10004
  return tmp$ret$1;
9982
10005
  };
9983
- protoOf(TractPage).v3z = function () {
10006
+ protoOf(TractPage).w3z = function () {
9984
10007
  return this._cards;
9985
10008
  };
9986
- protoOf(TractPage).w47 = function () {
10009
+ protoOf(TractPage).x47 = function () {
9987
10010
  // Inline function 'kotlin.collections.filter' call
9988
10011
  var tmp0 = this._cards;
9989
10012
  // Inline function 'kotlin.collections.filterTo' call
@@ -9997,22 +10020,22 @@
9997
10020
  }
9998
10021
  return destination;
9999
10022
  };
10000
- protoOf(TractPage).x47 = function () {
10001
- var tmp0_elvis_lhs = this.z46_1;
10002
- return tmp0_elvis_lhs == null ? this.o3h() : tmp0_elvis_lhs;
10023
+ protoOf(TractPage).y47 = function () {
10024
+ var tmp0_elvis_lhs = this.a47_1;
10025
+ return tmp0_elvis_lhs == null ? toPlatformColor(this.o3h()) : tmp0_elvis_lhs;
10003
10026
  };
10004
- protoOf(TractPage).w3z = function () {
10027
+ protoOf(TractPage).x3z = function () {
10005
10028
  // Inline function 'kotlin.collections.toTypedArray' call
10006
10029
  var this_0 = this._cards;
10007
10030
  return copyToArray(this_0);
10008
10031
  };
10009
- protoOf(TractPage).y47 = function () {
10032
+ protoOf(TractPage).z47 = function () {
10010
10033
  // Inline function 'kotlin.collections.toTypedArray' call
10011
10034
  var this_0 = this._modals;
10012
10035
  return copyToArray(this_0);
10013
10036
  };
10014
10037
  function TractPage() {
10015
- this.y46_1 = emptyList();
10038
+ this.z46_1 = emptyList();
10016
10039
  }
10017
10040
  function labelParent$factory() {
10018
10041
  return getPropertyCallableRef('labelParent', 1, KProperty1, function (receiver) {
@@ -10023,7 +10046,7 @@
10023
10046
  return new FlowWatcher(launchIn(onEach(_this__u8e3s4, FlowWatcher$Companion$watchIn$slambda_0(block, null)), scope));
10024
10047
  }
10025
10048
  function FlowWatcher$Companion$watchIn$slambda($block, resultContinuation) {
10026
- this.h48_1 = $block;
10049
+ this.i48_1 = $block;
10027
10050
  CoroutineImpl.call(this, resultContinuation);
10028
10051
  }
10029
10052
  protoOf(FlowWatcher$Companion$watchIn$slambda).m19 = function (it, $completion) {
@@ -10042,7 +10065,7 @@
10042
10065
  var tmp = this.v8_1;
10043
10066
  if (tmp === 0) {
10044
10067
  this.w8_1 = 1;
10045
- this.h48_1(this.i48_1);
10068
+ this.i48_1(this.j48_1);
10046
10069
  return Unit_instance;
10047
10070
  } else if (tmp === 1) {
10048
10071
  throw this.y8_1;
@@ -10054,8 +10077,8 @@
10054
10077
  while (true);
10055
10078
  };
10056
10079
  protoOf(FlowWatcher$Companion$watchIn$slambda).n19 = function (it, completion) {
10057
- var i = new FlowWatcher$Companion$watchIn$slambda(this.h48_1, completion);
10058
- i.i48_1 = it;
10080
+ var i = new FlowWatcher$Companion$watchIn$slambda(this.i48_1, completion);
10081
+ i.j48_1 = it;
10059
10082
  return i;
10060
10083
  };
10061
10084
  function FlowWatcher$Companion$watchIn$slambda_0($block, resultContinuation) {
@@ -10076,10 +10099,10 @@
10076
10099
  return Companion_instance_59;
10077
10100
  }
10078
10101
  function FlowWatcher(job) {
10079
- this.j48_1 = job;
10102
+ this.k48_1 = job;
10080
10103
  }
10081
10104
  protoOf(FlowWatcher).close = function () {
10082
- return this.j48_1.vl();
10105
+ return this.k48_1.vl();
10083
10106
  };
10084
10107
  function get_REGEX_SEQUENCE_SEPARATOR() {
10085
10108
  _init_properties_Regex_kt__v9a4ph();
@@ -10107,31 +10130,31 @@
10107
10130
  return EMPTY_instance;
10108
10131
  }
10109
10132
  function SetOnceProperty() {
10110
- this.k48_1 = EMPTY_instance;
10133
+ this.l48_1 = EMPTY_instance;
10111
10134
  }
10112
- protoOf(SetOnceProperty).l48 = function (thisRef, property) {
10135
+ protoOf(SetOnceProperty).m48 = function (thisRef, property) {
10113
10136
  // Inline function 'kotlin.check' call
10114
- if (!!(this.k48_1 === EMPTY_instance)) {
10137
+ if (!!(this.l48_1 === EMPTY_instance)) {
10115
10138
  var message = "Value isn't initialized";
10116
10139
  throw IllegalStateException_init_$Create$(toString_0(message));
10117
10140
  }
10118
- var tmp = this.k48_1;
10141
+ var tmp = this.l48_1;
10119
10142
  return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
10120
10143
  };
10121
10144
  protoOf(SetOnceProperty).b3r = function (thisRef, property) {
10122
- return this.l48(!(thisRef == null) ? thisRef : THROW_CCE(), property);
10145
+ return this.m48(!(thisRef == null) ? thisRef : THROW_CCE(), property);
10123
10146
  };
10124
- protoOf(SetOnceProperty).m48 = function (thisRef, property, value) {
10147
+ protoOf(SetOnceProperty).n48 = function (thisRef, property, value) {
10125
10148
  // Inline function 'kotlin.check' call
10126
- if (!(this.k48_1 === EMPTY_instance)) {
10149
+ if (!(this.l48_1 === EMPTY_instance)) {
10127
10150
  var message = 'Value is initialized';
10128
10151
  throw IllegalStateException_init_$Create$(toString_0(message));
10129
10152
  }
10130
- this.k48_1 = value;
10153
+ this.l48_1 = value;
10131
10154
  };
10132
10155
  protoOf(SetOnceProperty).m3p = function (thisRef, property, value) {
10133
10156
  var tmp = !(thisRef == null) ? thisRef : THROW_CCE();
10134
- return this.m48(tmp, property, (value == null ? true : !(value == null)) ? value : THROW_CCE());
10157
+ return this.n48(tmp, property, (value == null ? true : !(value == null)) ? value : THROW_CCE());
10135
10158
  };
10136
10159
  function get_hasUriScheme(_this__u8e3s4) {
10137
10160
  return contains_1(_this__u8e3s4, _Char___init__impl__6a9atx(58));
@@ -10146,9 +10169,9 @@
10146
10169
  }
10147
10170
  function getAttributeValueInt($this, namespace, name) {
10148
10171
  // Inline function 'kotlin.takeIf' call
10149
- var this_0 = $this.n48_1;
10172
+ var this_0 = $this.o48_1;
10150
10173
  var tmp;
10151
- if (this_0.q48_1 === 2) {
10174
+ if (this_0.r48_1 === 2) {
10152
10175
  tmp = this_0;
10153
10176
  } else {
10154
10177
  tmp = null;
@@ -10161,20 +10184,20 @@
10161
10184
  tmp_0 = tmp0_elvis_lhs;
10162
10185
  }
10163
10186
  var event = tmp_0;
10164
- var tmp1_safe_receiver = event.t48_1;
10187
+ var tmp1_safe_receiver = event.u48_1;
10165
10188
  return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f2(new QName(namespace, name));
10166
10189
  }
10167
10190
  function QName(uri, local) {
10168
10191
  uri = uri === VOID ? null : uri;
10169
- this.u48_1 = uri;
10170
- this.v48_1 = local;
10192
+ this.v48_1 = uri;
10193
+ this.w48_1 = local;
10171
10194
  }
10172
10195
  protoOf(QName).toString = function () {
10173
- return 'QName(uri=' + this.u48_1 + ', local=' + this.v48_1 + ')';
10196
+ return 'QName(uri=' + this.v48_1 + ', local=' + this.w48_1 + ')';
10174
10197
  };
10175
10198
  protoOf(QName).hashCode = function () {
10176
- var result = this.u48_1 == null ? 0 : getStringHashCode(this.u48_1);
10177
- result = imul(result, 31) + getStringHashCode(this.v48_1) | 0;
10199
+ var result = this.v48_1 == null ? 0 : getStringHashCode(this.v48_1);
10200
+ result = imul(result, 31) + getStringHashCode(this.w48_1) | 0;
10178
10201
  return result;
10179
10202
  };
10180
10203
  protoOf(QName).equals = function (other) {
@@ -10183,9 +10206,9 @@
10183
10206
  if (!(other instanceof QName))
10184
10207
  return false;
10185
10208
  var tmp0_other_with_cast = other instanceof QName ? other : THROW_CCE();
10186
- if (!(this.u48_1 == tmp0_other_with_cast.u48_1))
10209
+ if (!(this.v48_1 == tmp0_other_with_cast.v48_1))
10187
10210
  return false;
10188
- if (!(this.v48_1 === tmp0_other_with_cast.v48_1))
10211
+ if (!(this.w48_1 === tmp0_other_with_cast.w48_1))
10189
10212
  return false;
10190
10213
  return true;
10191
10214
  };
@@ -10193,51 +10216,51 @@
10193
10216
  qname = qname === VOID ? null : qname;
10194
10217
  content = content === VOID ? null : content;
10195
10218
  attrs = attrs === VOID ? null : attrs;
10196
- this.q48_1 = type;
10197
- this.r48_1 = qname;
10198
- this.s48_1 = content;
10199
- this.t48_1 = attrs;
10219
+ this.r48_1 = type;
10220
+ this.s48_1 = qname;
10221
+ this.t48_1 = content;
10222
+ this.u48_1 = attrs;
10200
10223
  }
10201
10224
  function enqueueEvent($this, event) {
10202
10225
  // Inline function 'kotlin.text.isNotEmpty' call
10203
- var this_0 = $this.p48_1;
10226
+ var this_0 = $this.q48_1;
10204
10227
  if (charSequenceLength(this_0) > 0) {
10205
- var tmp1 = $this.o48_1;
10228
+ var tmp1 = $this.p48_1;
10206
10229
  // Inline function 'kotlin.collections.plusAssign' call
10207
- var element = new ParserEvent(4, VOID, $this.p48_1.toString());
10230
+ var element = new ParserEvent(4, VOID, $this.q48_1.toString());
10208
10231
  tmp1.e(element);
10209
- $this.p48_1.nb();
10232
+ $this.q48_1.nb();
10210
10233
  }
10211
10234
  // Inline function 'kotlin.collections.plusAssign' call
10212
- $this.o48_1.e(event);
10235
+ $this.p48_1.e(event);
10213
10236
  }
10214
10237
  function SaxXmlPullParser() {
10215
- this.n48_1 = new ParserEvent(0);
10238
+ this.o48_1 = new ParserEvent(0);
10216
10239
  var tmp = this;
10217
10240
  // Inline function 'kotlin.collections.mutableListOf' call
10218
- tmp.o48_1 = ArrayList_init_$Create$();
10219
- this.p48_1 = StringBuilder_init_$Create$();
10241
+ tmp.p48_1 = ArrayList_init_$Create$();
10242
+ this.q48_1 = StringBuilder_init_$Create$();
10220
10243
  }
10221
10244
  protoOf(SaxXmlPullParser).p3b = function () {
10222
- return this.n48_1.q48_1;
10245
+ return this.o48_1.r48_1;
10223
10246
  };
10224
10247
  protoOf(SaxXmlPullParser).q3b = function () {
10225
- var tmp0_safe_receiver = this.n48_1.r48_1;
10226
- return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u48_1;
10248
+ var tmp0_safe_receiver = this.o48_1.s48_1;
10249
+ return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v48_1;
10227
10250
  };
10228
10251
  protoOf(SaxXmlPullParser).l2 = function () {
10229
- var tmp0_safe_receiver = this.n48_1.r48_1;
10230
- return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v48_1;
10252
+ var tmp0_safe_receiver = this.o48_1.s48_1;
10253
+ return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w48_1;
10231
10254
  };
10232
10255
  protoOf(SaxXmlPullParser).o3b = function (type, namespace, name) {
10233
10256
  // Inline function 'kotlin.with' call
10234
- var $this$with = this.n48_1;
10235
- if (!($this$with.q48_1 === type))
10257
+ var $this$with = this.o48_1;
10258
+ if (!($this$with.r48_1 === type))
10236
10259
  throw new XmlPullParserException('expected ' + type);
10237
10260
  var tmp;
10238
10261
  if (!(namespace == null)) {
10239
- var tmp0_safe_receiver = $this$with.r48_1;
10240
- tmp = !(namespace == (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u48_1));
10262
+ var tmp0_safe_receiver = $this$with.s48_1;
10263
+ tmp = !(namespace == (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v48_1));
10241
10264
  } else {
10242
10265
  tmp = false;
10243
10266
  }
@@ -10245,8 +10268,8 @@
10245
10268
  throw new XmlPullParserException('expected ' + namespace);
10246
10269
  var tmp_0;
10247
10270
  if (!(name == null)) {
10248
- var tmp1_safe_receiver = $this$with.r48_1;
10249
- tmp_0 = !((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v48_1) == name);
10271
+ var tmp1_safe_receiver = $this$with.s48_1;
10272
+ tmp_0 = !((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w48_1) == name);
10250
10273
  } else {
10251
10274
  tmp_0 = false;
10252
10275
  }
@@ -10256,15 +10279,15 @@
10256
10279
  };
10257
10280
  protoOf(SaxXmlPullParser).l = function () {
10258
10281
  // Inline function 'kotlin.also' call
10259
- var this_0 = removeFirst(this.o48_1);
10260
- this.n48_1 = this_0;
10261
- return this_0.q48_1;
10282
+ var this_0 = removeFirst(this.p48_1);
10283
+ this.o48_1 = this_0;
10284
+ return this_0.r48_1;
10262
10285
  };
10263
10286
  protoOf(SaxXmlPullParser).h39 = function () {
10264
10287
  var tmp;
10265
10288
  if (this.l() === 4) {
10266
10289
  // Inline function 'kotlin.text.isNullOrBlank' call
10267
- var this_0 = this.n48_1.s48_1;
10290
+ var this_0 = this.o48_1.t48_1;
10268
10291
  tmp = this_0 == null || isBlank(this_0);
10269
10292
  } else {
10270
10293
  tmp = false;
@@ -10272,20 +10295,20 @@
10272
10295
  if (tmp) {
10273
10296
  this.l();
10274
10297
  }
10275
- var event = this.n48_1;
10276
- if (!(event.q48_1 === 2) && !(event.q48_1 === 3)) {
10277
- throw new XmlPullParserException('Expected start or end tag. Found: ' + event.q48_1);
10298
+ var event = this.o48_1;
10299
+ if (!(event.r48_1 === 2) && !(event.r48_1 === 3)) {
10300
+ throw new XmlPullParserException('Expected start or end tag. Found: ' + event.r48_1);
10278
10301
  }
10279
- return event.q48_1;
10302
+ return event.r48_1;
10280
10303
  };
10281
10304
  protoOf(SaxXmlPullParser).b3v = function () {
10282
- this.t44(2);
10305
+ this.u44(2);
10283
10306
  var tmp;
10284
10307
  switch (this.l()) {
10285
10308
  case 4:
10286
10309
  // Inline function 'kotlin.text.orEmpty' call
10287
10310
 
10288
- var tmp0_elvis_lhs = this.n48_1.s48_1;
10311
+ var tmp0_elvis_lhs = this.o48_1.t48_1;
10289
10312
  // Inline function 'kotlin.also' call
10290
10313
 
10291
10314
  var this_0 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
@@ -10311,13 +10334,13 @@
10311
10334
  protoOf(SaxXmlPullParser).n3p = function (namespace, name) {
10312
10335
  return getAttributeValueInt(this, namespace, name);
10313
10336
  };
10314
- protoOf(SaxXmlPullParser).w48 = function (qname, attrs) {
10337
+ protoOf(SaxXmlPullParser).x48 = function (qname, attrs) {
10315
10338
  enqueueEvent(this, new ParserEvent(2, qname, VOID, attrs));
10316
10339
  };
10317
- protoOf(SaxXmlPullParser).x48 = function (text) {
10318
- this.p48_1.g8(text);
10340
+ protoOf(SaxXmlPullParser).y48 = function (text) {
10341
+ this.q48_1.g8(text);
10319
10342
  };
10320
- protoOf(SaxXmlPullParser).y48 = function (qname) {
10343
+ protoOf(SaxXmlPullParser).z48 = function (qname) {
10321
10344
  enqueueEvent(this, new ParserEvent(3, qname));
10322
10345
  };
10323
10346
  function XmlPullParser() {
@@ -10351,9 +10374,10 @@
10351
10374
  function get_DEFAULT(_this__u8e3s4) {
10352
10375
  return DeviceType_WEB_getInstance();
10353
10376
  }
10354
- function toPlatformColor_0(_this__u8e3s4) {
10355
- var tmp0_renderAlpha = RenderCondition_ALWAYS_getInstance();
10356
- return formatCssString(_this__u8e3s4, VOID, tmp0_renderAlpha, VOID, VOID, true, true);
10377
+ function toPlatformColor(_this__u8e3s4) {
10378
+ var tmp0_$receiver = _this__u8e3s4.f1n();
10379
+ var tmp1_renderAlpha = RenderCondition_ALWAYS_getInstance();
10380
+ return formatCssString(tmp0_$receiver, VOID, tmp1_renderAlpha, VOID, VOID, true, true);
10357
10381
  }
10358
10382
  function toRGB(_this__u8e3s4) {
10359
10383
  return parse(Companion_instance, _this__u8e3s4).f1n();
@@ -10364,26 +10388,26 @@
10364
10388
  }
10365
10389
  var SAX_OPTIONS;
10366
10390
  function InternalSAXParser($outer) {
10367
- this.z48_1 = $outer;
10391
+ this.a49_1 = $outer;
10368
10392
  SAXParser.call(this, true, get_SAX_OPTIONS());
10369
10393
  }
10370
- protoOf(InternalSAXParser).a49 = function (tag) {
10371
- return this.z48_1.w48(new QName(tag.uri, tag.local), convert(this.z48_1, tag.attributes));
10394
+ protoOf(InternalSAXParser).b49 = function (tag) {
10395
+ return this.a49_1.x48(new QName(tag.uri, tag.local), convert(this.a49_1, tag.attributes));
10372
10396
  };
10373
10397
  protoOf(InternalSAXParser).onopentag = function (tag) {
10374
- return this.a49(tag);
10398
+ return this.b49(tag);
10375
10399
  };
10376
- protoOf(InternalSAXParser).b49 = function (tagName) {
10377
- return this.z48_1.y48(new QName(VOID, tagName));
10400
+ protoOf(InternalSAXParser).c49 = function (tagName) {
10401
+ return this.a49_1.z48(new QName(VOID, tagName));
10378
10402
  };
10379
10403
  protoOf(InternalSAXParser).onclosetag = function (tagName) {
10380
- return this.b49(tagName);
10404
+ return this.c49(tagName);
10381
10405
  };
10382
- protoOf(InternalSAXParser).c49 = function (t) {
10383
- return this.z48_1.x48(t);
10406
+ protoOf(InternalSAXParser).d49 = function (t) {
10407
+ return this.a49_1.y48(t);
10384
10408
  };
10385
10409
  protoOf(InternalSAXParser).ontext = function (t) {
10386
- return this.c49(t);
10410
+ return this.d49(t);
10387
10411
  };
10388
10412
  function convert($this, _this__u8e3s4) {
10389
10413
  var tmp = Object.values;
@@ -10427,13 +10451,13 @@
10427
10451
  var this_0 = new InternalSAXParser(this);
10428
10452
  this_0.write(xml);
10429
10453
  this_0.close();
10430
- tmp.g49_1 = this_0;
10454
+ tmp.h49_1 = this_0;
10431
10455
  }
10432
10456
  function SAX_OPTIONS$1() {
10433
- this.h49_1 = true;
10457
+ this.i49_1 = true;
10434
10458
  }
10435
- protoOf(SAX_OPTIONS$1).i49 = function () {
10436
- return this.h49_1;
10459
+ protoOf(SAX_OPTIONS$1).j49 = function () {
10460
+ return this.i49_1;
10437
10461
  };
10438
10462
  var properties_initialized_JsXmlPullParser_kt_u4cdem;
10439
10463
  function _init_properties_JsXmlPullParser_kt__2zt5j4() {
@@ -10444,8 +10468,8 @@
10444
10468
  }
10445
10469
  function $getXmlParserCOROUTINE$4(_this__u8e3s4, fileName, resultContinuation) {
10446
10470
  CoroutineImpl.call(this, resultContinuation);
10447
- this.r49_1 = _this__u8e3s4;
10448
- this.s49_1 = fileName;
10471
+ this.s49_1 = _this__u8e3s4;
10472
+ this.t49_1 = fileName;
10449
10473
  }
10450
10474
  protoOf($getXmlParserCOROUTINE$4).d9 = function () {
10451
10475
  var suspendResult = this.x8_1;
@@ -10456,7 +10480,7 @@
10456
10480
  case 0:
10457
10481
  this.w8_1 = 2;
10458
10482
  this.v8_1 = 1;
10459
- suspendResult = await_0(this.r49_1.readFile(this.s49_1), this);
10483
+ suspendResult = await_0(this.s49_1.readFile(this.t49_1), this);
10460
10484
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
10461
10485
  return suspendResult;
10462
10486
  }
@@ -10489,14 +10513,14 @@
10489
10513
  function JsXmlPullParserFactory() {
10490
10514
  XmlPullParserFactory.call(this);
10491
10515
  }
10492
- protoOf(JsXmlPullParserFactory).t49 = function (fileName, $completion) {
10516
+ protoOf(JsXmlPullParserFactory).u49 = function (fileName, $completion) {
10493
10517
  var tmp = new $getXmlParserCOROUTINE$4(this, fileName, $completion);
10494
10518
  tmp.x8_1 = Unit_instance;
10495
10519
  tmp.y8_1 = null;
10496
10520
  return tmp.d9();
10497
10521
  };
10498
10522
  protoOf(JsXmlPullParserFactory).g39 = function (fileName, $completion) {
10499
- return this.t49(fileName, $completion);
10523
+ return this.u49(fileName, $completion);
10500
10524
  };
10501
10525
  function XmlPullParserException(s) {
10502
10526
  Exception_init_$Init$(s, this);
@@ -10700,11 +10724,11 @@
10700
10724
  defineProp(protoOf(Style_1), 'name', protoOf(Style_1).l2);
10701
10725
  defineProp(protoOf(Style_1), 'ordinal', protoOf(Style_1).m2);
10702
10726
  defineProp(protoOf(Text), 'textAlign', protoOf(Text).x3h);
10703
- defineProp(protoOf(Text), 'textColor', protoOf(Text).o3h);
10704
10727
  defineProp(protoOf(Text), 'textScale', protoOf(Text).w3h);
10705
- defineProp(protoOf(Text), 'startImage', protoOf(Text).k3v);
10706
- defineProp(protoOf(Text), 'endImage', protoOf(Text).n3v);
10707
- defineProp(protoOf(Text), 'textStyles', protoOf(Text).p3v);
10728
+ defineProp(protoOf(Text), 'startImage', protoOf(Text).l3v);
10729
+ defineProp(protoOf(Text), 'endImage', protoOf(Text).o3v);
10730
+ defineProp(protoOf(Text), 'textColor', protoOf(Text).o3h);
10731
+ defineProp(protoOf(Text), 'textStyles', protoOf(Text).q3v);
10708
10732
  defineProp(protoOf(Provider), 'name', protoOf(Provider).l2);
10709
10733
  defineProp(protoOf(Provider), 'ordinal', protoOf(Provider).m2);
10710
10734
  protoOf(Page).s3h = get_buttonStyle;
@@ -10713,12 +10737,12 @@
10713
10737
  protoOf(Page).getAnalyticsEvents = getAnalyticsEvents;
10714
10738
  defineProp(protoOf(Page), 'id', protoOf(Page).i3c);
10715
10739
  defineProp(protoOf(Page), 'position', protoOf(Page).p3u);
10716
- defineProp(protoOf(Page), 'parentPage', protoOf(Page).g3y);
10717
- defineProp(protoOf(Page), 'parentPageParams', protoOf(Page).h3y);
10718
- defineProp(protoOf(Page), 'nextPage', protoOf(Page).i3y);
10719
- defineProp(protoOf(Page), 'previousPage', protoOf(Page).j3y);
10740
+ defineProp(protoOf(Page), 'parentPage', protoOf(Page).h3y);
10741
+ defineProp(protoOf(Page), 'parentPageParams', protoOf(Page).i3y);
10742
+ defineProp(protoOf(Page), 'nextPage', protoOf(Page).j3y);
10743
+ defineProp(protoOf(Page), 'previousPage', protoOf(Page).k3y);
10720
10744
  defineProp(protoOf(Page), 'backgroundImage', protoOf(Page).j3q);
10721
- defineProp(protoOf(Page), 'controlColor', protoOf(Page).l3y);
10745
+ defineProp(protoOf(Page), 'controlColor', protoOf(Page).m3y);
10722
10746
  defineProp(protoOf(Page), 'dismissListeners', protoOf(Page).l3r);
10723
10747
  defineProp(protoOf(Page), 'listeners', protoOf(Page).r3u);
10724
10748
  protoOf(LessonPage).s3c = get_content;
@@ -10745,7 +10769,7 @@
10745
10769
  defineProp(protoOf(Card_0), 'content', function () {
10746
10770
  return this.s3c();
10747
10771
  });
10748
- defineProp(protoOf(CardCollectionPage), 'cards', protoOf(CardCollectionPage).w3z);
10772
+ defineProp(protoOf(CardCollectionPage), 'cards', protoOf(CardCollectionPage).x3z);
10749
10773
  protoOf(ContentPage).s3c = get_content;
10750
10774
  defineProp(protoOf(ContentPage), 'content', function () {
10751
10775
  return this.s3c();
@@ -10758,7 +10782,7 @@
10758
10782
  defineProp(protoOf(PageCollectionPage), 'pages', function () {
10759
10783
  return this.i3k();
10760
10784
  });
10761
- defineProp(protoOf(InlineTip), 'tip', protoOf(InlineTip).h45);
10785
+ defineProp(protoOf(InlineTip), 'tip', protoOf(InlineTip).i45);
10762
10786
  protoOf(Tip).s3h = get_buttonStyle;
10763
10787
  protoOf(Tip).q3g = get_buttonColor;
10764
10788
  protoOf(Tip).t3h = get_cardBackgroundColor;
@@ -10770,7 +10794,7 @@
10770
10794
  defineProp(protoOf(TipPage), 'content', function () {
10771
10795
  return this.s3c();
10772
10796
  });
10773
- defineProp(protoOf(CallToAction), 'tip', protoOf(CallToAction).h45);
10797
+ defineProp(protoOf(CallToAction), 'tip', protoOf(CallToAction).i45);
10774
10798
  protoOf(Header_0).q3h = get_primaryColor;
10775
10799
  protoOf(Header_0).r3h = get_primaryTextColor;
10776
10800
  protoOf(Header_0).s3h = get_buttonStyle;
@@ -10780,7 +10804,7 @@
10780
10804
  protoOf(Header_0).v3h = get_multiselectOptionSelectedColor;
10781
10805
  protoOf(Header_0).w3h = get_textScale;
10782
10806
  protoOf(Header_0).x3h = get_textAlign;
10783
- defineProp(protoOf(Header_0), 'tip', protoOf(Header_0).h45);
10807
+ defineProp(protoOf(Header_0), 'tip', protoOf(Header_0).i45);
10784
10808
  protoOf(Hero).s3c = get_content;
10785
10809
  protoOf(Hero).getAnalyticsEvents = getAnalyticsEvents;
10786
10810
  defineProp(protoOf(Hero), 'content', function () {
@@ -10809,8 +10833,8 @@
10809
10833
  protoOf(Card_1).s3c = get_content;
10810
10834
  protoOf(Card_1).getAnalyticsEvents = getAnalyticsEvents;
10811
10835
  defineProp(protoOf(Card_1), 'id', protoOf(Card_1).i3c);
10812
- defineProp(protoOf(Card_1), 'visiblePosition', protoOf(Card_1).q47);
10813
- defineProp(protoOf(Card_1), 'isLastVisibleCard', protoOf(Card_1).r47);
10836
+ defineProp(protoOf(Card_1), 'visiblePosition', protoOf(Card_1).r47);
10837
+ defineProp(protoOf(Card_1), 'isLastVisibleCard', protoOf(Card_1).s47);
10814
10838
  defineProp(protoOf(Card_1), 'backgroundImage', protoOf(Card_1).j3q);
10815
10839
  defineProp(protoOf(Card_1), 'tips', protoOf(Card_1).u3c);
10816
10840
  defineProp(protoOf(Card_1), 'dismissListeners', protoOf(Card_1).l3r);
@@ -10818,14 +10842,14 @@
10818
10842
  defineProp(protoOf(Card_1), 'content', function () {
10819
10843
  return this.s3c();
10820
10844
  });
10821
- defineProp(protoOf(TractPage), 'isLastPage', protoOf(TractPage).s47);
10822
- defineProp(protoOf(TractPage), 'visibleCards', protoOf(TractPage).w47);
10823
- defineProp(protoOf(TractPage), 'cardTextColor', protoOf(TractPage).x47);
10824
- defineProp(protoOf(TractPage), 'cards', protoOf(TractPage).w3z);
10825
- defineProp(protoOf(TractPage), 'modals', protoOf(TractPage).y47);
10826
- protoOf(SaxXmlPullParser).t44 = require$default;
10845
+ defineProp(protoOf(TractPage), 'isLastPage', protoOf(TractPage).t47);
10846
+ defineProp(protoOf(TractPage), 'visibleCards', protoOf(TractPage).x47);
10847
+ defineProp(protoOf(TractPage), 'cardTextColor', protoOf(TractPage).y47);
10848
+ defineProp(protoOf(TractPage), 'cards', protoOf(TractPage).x3z);
10849
+ defineProp(protoOf(TractPage), 'modals', protoOf(TractPage).z47);
10850
+ protoOf(SaxXmlPullParser).u44 = require$default;
10827
10851
  defineProp(protoOf(SAX_OPTIONS$1), 'xmlns', function () {
10828
- return this.i49();
10852
+ return this.j49();
10829
10853
  });
10830
10854
  //endregion
10831
10855
  //region block: init