@solibo/solibo-sdk 1.0.23 → 1.0.24-SNAPSHOT
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/KmLogging-logging.js +228 -5
- package/KmLogging-logging.js.map +1 -1
- package/Stately-stately-concurrency.js +27 -5
- package/Stately-stately-concurrency.js.map +1 -1
- package/cryptography-kotlin-cryptography-core.js +58 -58
- package/cryptography-kotlin-cryptography-core.js.map +1 -1
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +7 -7
- package/cryptography-kotlin-cryptography-provider-webcrypto.js.map +1 -1
- package/cryptography-kotlin-cryptography-random.js +74 -8
- package/cryptography-kotlin-cryptography-random.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +14076 -1100
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +187 -8
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-browser.js +19 -0
- package/kotlinx-browser.js.map +1 -0
- package/kotlinx-coroutines-core.js +9817 -5
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +204 -5
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +2025 -5
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +5906 -5
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +5073 -5
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-auth.js +1500 -5
- package/ktor-ktor-client-auth.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +757 -5
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +13613 -36
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +3276 -5
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +84 -5
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http-cio.js +2261 -5
- package/ktor-ktor-http-cio.js.map +1 -1
- package/ktor-ktor-http.js +5127 -5
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +3510 -5
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +57 -5
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js +855 -5
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +369 -5
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +3610 -5
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +2542 -5
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +2040 -5
- package/solibo-sdk-sdk-home-api.js.map +1 -1
- package/solibo-sdk-sdk.d.ts +12 -0
- package/solibo-sdk-sdk.js +2543 -4
- package/solibo-sdk-sdk.js.map +1 -1
package/solibo-sdk-sdk.js
CHANGED
|
@@ -1,22 +1,2561 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './ktor-ktor-client-core.js', './cryptography-kotlin-cryptography-provider-webcrypto.js'], factory);
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './ktor-ktor-client-auth.js', './ktor-ktor-client-core.js', './kotlinx-serialization-kotlinx-serialization-json.js', './ktor-ktor-serialization-kotlinx-json.js', './ktor-ktor-http.js', './kotlinx-serialization-kotlinx-serialization-core.js', './ktor-ktor-utils.js', './ktor-ktor-client-logging.js', './ktor-ktor-client-content-negotiation.js', './solibo-sdk-sdk-home-api.js', './KmLogging-logging.js', './ktor-ktor-io.js', './kotlinx-coroutines-core.js', './cryptography-kotlin-cryptography-provider-webcrypto.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./ktor-ktor-client-core.js'), require('./cryptography-kotlin-cryptography-provider-webcrypto.js'));
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-client-auth.js'), require('./ktor-ktor-client-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./ktor-ktor-serialization-kotlinx-json.js'), require('./ktor-ktor-http.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-client-logging.js'), require('./ktor-ktor-client-content-negotiation.js'), require('./solibo-sdk-sdk-home-api.js'), require('./KmLogging-logging.js'), require('./ktor-ktor-io.js'), require('./kotlinx-coroutines-core.js'), require('./cryptography-kotlin-cryptography-provider-webcrypto.js'));
|
|
6
6
|
else {
|
|
7
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
9
|
+
}
|
|
10
|
+
if (typeof globalThis['ktor-ktor-client-auth'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'ktor-ktor-client-auth' was not found. Please, check whether 'ktor-ktor-client-auth' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
12
|
+
}
|
|
7
13
|
if (typeof globalThis['ktor-ktor-client-core'] === 'undefined') {
|
|
8
14
|
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'ktor-ktor-client-core' was not found. Please, check whether 'ktor-ktor-client-core' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
9
15
|
}
|
|
16
|
+
if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-json'] === 'undefined') {
|
|
17
|
+
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
18
|
+
}
|
|
19
|
+
if (typeof globalThis['ktor-ktor-serialization-kotlinx-json'] === 'undefined') {
|
|
20
|
+
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'ktor-ktor-serialization-kotlinx-json' was not found. Please, check whether 'ktor-ktor-serialization-kotlinx-json' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
21
|
+
}
|
|
22
|
+
if (typeof globalThis['ktor-ktor-http'] === 'undefined') {
|
|
23
|
+
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
24
|
+
}
|
|
25
|
+
if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
|
|
26
|
+
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
27
|
+
}
|
|
28
|
+
if (typeof globalThis['ktor-ktor-utils'] === 'undefined') {
|
|
29
|
+
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'ktor-ktor-utils' was not found. Please, check whether 'ktor-ktor-utils' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
30
|
+
}
|
|
31
|
+
if (typeof globalThis['ktor-ktor-client-logging'] === 'undefined') {
|
|
32
|
+
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'ktor-ktor-client-logging' was not found. Please, check whether 'ktor-ktor-client-logging' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
33
|
+
}
|
|
34
|
+
if (typeof globalThis['ktor-ktor-client-content-negotiation'] === 'undefined') {
|
|
35
|
+
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'ktor-ktor-client-content-negotiation' was not found. Please, check whether 'ktor-ktor-client-content-negotiation' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
36
|
+
}
|
|
37
|
+
if (typeof globalThis['solibo-sdk-sdk-home-api'] === 'undefined') {
|
|
38
|
+
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'solibo-sdk-sdk-home-api' was not found. Please, check whether 'solibo-sdk-sdk-home-api' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
39
|
+
}
|
|
40
|
+
if (typeof globalThis['KmLogging-logging'] === 'undefined') {
|
|
41
|
+
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'KmLogging-logging' was not found. Please, check whether 'KmLogging-logging' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
42
|
+
}
|
|
43
|
+
if (typeof globalThis['ktor-ktor-io'] === 'undefined') {
|
|
44
|
+
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'ktor-ktor-io' was not found. Please, check whether 'ktor-ktor-io' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
45
|
+
}
|
|
46
|
+
if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
|
|
47
|
+
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
48
|
+
}
|
|
10
49
|
if (typeof globalThis['cryptography-kotlin-cryptography-provider-webcrypto'] === 'undefined') {
|
|
11
50
|
throw new Error("Error loading module 'no.solibo.oss:sdk'. Its dependency 'cryptography-kotlin-cryptography-provider-webcrypto' was not found. Please, check whether 'cryptography-kotlin-cryptography-provider-webcrypto' is loaded prior to 'no.solibo.oss:sdk'.");
|
|
12
51
|
}
|
|
13
|
-
globalThis['no.solibo.oss:sdk'] = factory(typeof globalThis['no.solibo.oss:sdk'] === 'undefined' ? {} : globalThis['no.solibo.oss:sdk'], globalThis['ktor-ktor-client-core'], globalThis['cryptography-kotlin-cryptography-provider-webcrypto']);
|
|
52
|
+
globalThis['no.solibo.oss:sdk'] = factory(typeof globalThis['no.solibo.oss:sdk'] === 'undefined' ? {} : globalThis['no.solibo.oss:sdk'], globalThis['kotlin-kotlin-stdlib'], globalThis['ktor-ktor-client-auth'], globalThis['ktor-ktor-client-core'], globalThis['kotlinx-serialization-kotlinx-serialization-json'], globalThis['ktor-ktor-serialization-kotlinx-json'], globalThis['ktor-ktor-http'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-client-logging'], globalThis['ktor-ktor-client-content-negotiation'], globalThis['solibo-sdk-sdk-home-api'], globalThis['KmLogging-logging'], globalThis['ktor-ktor-io'], globalThis['kotlinx-coroutines-core'], globalThis['cryptography-kotlin-cryptography-provider-webcrypto']);
|
|
14
53
|
}
|
|
15
|
-
}(function (_, kotlin_io_ktor_ktor_client_core, kotlin_dev_whyoleg_cryptography_cryptography_provider_webcrypto) {
|
|
54
|
+
}(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_client_auth, kotlin_io_ktor_ktor_client_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_ktor_ktor_serialization_kotlinx_json, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_logging, kotlin_io_ktor_ktor_client_content_negotiation, kotlin_no_solibo_oss_home_api, kotlin_com_diamondedge_logging, kotlin_io_ktor_ktor_io, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_dev_whyoleg_cryptography_cryptography_provider_webcrypto) {
|
|
16
55
|
'use strict';
|
|
56
|
+
//region block: imports
|
|
57
|
+
var Unit_instance = kotlin_kotlin.$_$.y4;
|
|
58
|
+
var Enum = kotlin_kotlin.$_$.of;
|
|
59
|
+
var protoOf = kotlin_kotlin.$_$.qb;
|
|
60
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ta;
|
|
61
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
62
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.xa;
|
|
63
|
+
var Exception = kotlin_kotlin.$_$.qf;
|
|
64
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.g1;
|
|
65
|
+
var captureStack = kotlin_kotlin.$_$.da;
|
|
66
|
+
var Companion_instance = kotlin_kotlin.$_$.t4;
|
|
67
|
+
var get_Auth = kotlin_io_ktor_ktor_client_auth.$_$.e;
|
|
68
|
+
var plugin = kotlin_io_ktor_ktor_client_core.$_$.c1;
|
|
69
|
+
var get_authProviders = kotlin_io_ktor_ktor_client_auth.$_$.f;
|
|
70
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.i;
|
|
71
|
+
var BearerAuthProvider = kotlin_io_ktor_ktor_client_auth.$_$.a;
|
|
72
|
+
var first = kotlin_kotlin.$_$.r6;
|
|
73
|
+
var closeFinally = kotlin_kotlin.$_$.mg;
|
|
74
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.m2;
|
|
75
|
+
var createFailure = kotlin_kotlin.$_$.og;
|
|
76
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.q2;
|
|
77
|
+
var THROW_CCE = kotlin_kotlin.$_$.xf;
|
|
78
|
+
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.p2;
|
|
79
|
+
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.n2;
|
|
80
|
+
var CoroutineImpl = kotlin_kotlin.$_$.d9;
|
|
81
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ya;
|
|
82
|
+
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.j;
|
|
83
|
+
var json = kotlin_io_ktor_ktor_serialization_kotlinx_json.$_$.a;
|
|
84
|
+
var ConnectTimeoutException = kotlin_io_ktor_ktor_client_core.$_$.m;
|
|
85
|
+
var HttpRequestTimeoutException = kotlin_io_ktor_ktor_client_core.$_$.x;
|
|
86
|
+
var Send_instance = kotlin_io_ktor_ktor_client_core.$_$.b;
|
|
87
|
+
var Sender = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
88
|
+
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.e1;
|
|
89
|
+
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.c;
|
|
90
|
+
var TextContent = kotlin_io_ktor_ktor_http.$_$.y;
|
|
91
|
+
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
92
|
+
var JsonElement = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
93
|
+
var getKClass = kotlin_kotlin.$_$.jc;
|
|
94
|
+
var arrayOf = kotlin_kotlin.$_$.lg;
|
|
95
|
+
var createKType = kotlin_kotlin.$_$.hc;
|
|
96
|
+
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r2;
|
|
97
|
+
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
98
|
+
var isInterface = kotlin_kotlin.$_$.ib;
|
|
99
|
+
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.w;
|
|
100
|
+
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.w;
|
|
101
|
+
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
102
|
+
var equals = kotlin_kotlin.$_$.ma;
|
|
103
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.n8;
|
|
104
|
+
var LogLevel_NONE_getInstance = kotlin_io_ktor_ktor_client_logging.$_$.a;
|
|
105
|
+
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
106
|
+
var get_request = kotlin_io_ktor_ktor_client_core.$_$.m1;
|
|
107
|
+
var bodyAsText = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
108
|
+
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.k;
|
|
109
|
+
var contains = kotlin_kotlin.$_$.wc;
|
|
110
|
+
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.k;
|
|
111
|
+
var get_jsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.l;
|
|
112
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.o2;
|
|
113
|
+
var charSequenceLength = kotlin_kotlin.$_$.ia;
|
|
114
|
+
var Exception_init_$Create$ = kotlin_kotlin.$_$.h1;
|
|
115
|
+
var BearerTokens = kotlin_io_ktor_ktor_client_auth.$_$.b;
|
|
116
|
+
var RefreshTokensParams = kotlin_io_ktor_ktor_client_auth.$_$.c;
|
|
117
|
+
var bearer = kotlin_io_ktor_ktor_client_auth.$_$.d;
|
|
118
|
+
var contentType = kotlin_io_ktor_ktor_http.$_$.s1;
|
|
119
|
+
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.t1;
|
|
120
|
+
var accept = kotlin_io_ktor_ktor_client_core.$_$.f1;
|
|
121
|
+
var header = kotlin_io_ktor_ktor_client_core.$_$.h1;
|
|
122
|
+
var get_ContentNegotiation = kotlin_io_ktor_ktor_client_content_negotiation.$_$.a;
|
|
123
|
+
var Companion_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
124
|
+
var get_HttpRequestRetry = kotlin_io_ktor_ktor_client_core.$_$.w;
|
|
125
|
+
var get_HttpTimeout = kotlin_io_ktor_ktor_client_core.$_$.z;
|
|
126
|
+
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
127
|
+
var get_Logging = kotlin_io_ktor_ktor_client_logging.$_$.b;
|
|
128
|
+
var HttpResponseValidator = kotlin_io_ktor_ktor_client_core.$_$.y;
|
|
129
|
+
var Companion_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
130
|
+
var defaultRequest = kotlin_io_ktor_ktor_client_core.$_$.a1;
|
|
131
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.q1;
|
|
132
|
+
var UserApi = kotlin_no_solibo_oss_home_api.$_$.c1;
|
|
133
|
+
var DocumentApi = kotlin_no_solibo_oss_home_api.$_$.f;
|
|
134
|
+
var ConversationApi = kotlin_no_solibo_oss_home_api.$_$.e;
|
|
135
|
+
var CompanyApi = kotlin_no_solibo_oss_home_api.$_$.d;
|
|
136
|
+
var SectionApi = kotlin_no_solibo_oss_home_api.$_$.x;
|
|
137
|
+
var HomepageApi = kotlin_no_solibo_oss_home_api.$_$.j;
|
|
138
|
+
var InvoicingApi = kotlin_no_solibo_oss_home_api.$_$.m;
|
|
139
|
+
var ThirdPartyInformationApi = kotlin_no_solibo_oss_home_api.$_$.b1;
|
|
140
|
+
var ResidentApi = kotlin_no_solibo_oss_home_api.$_$.v;
|
|
141
|
+
var PersonApi = kotlin_no_solibo_oss_home_api.$_$.u;
|
|
142
|
+
var AuthApi = kotlin_no_solibo_oss_home_api.$_$.a;
|
|
143
|
+
var OrganizationApi = kotlin_no_solibo_oss_home_api.$_$.s;
|
|
144
|
+
var InsuranceApi = kotlin_no_solibo_oss_home_api.$_$.k;
|
|
145
|
+
var HMSApi = kotlin_no_solibo_oss_home_api.$_$.i;
|
|
146
|
+
var RoutinesApi = kotlin_no_solibo_oss_home_api.$_$.w;
|
|
147
|
+
var StorageApi = kotlin_no_solibo_oss_home_api.$_$.y;
|
|
148
|
+
var LanguageApi = kotlin_no_solibo_oss_home_api.$_$.o;
|
|
149
|
+
var BoardApi = kotlin_no_solibo_oss_home_api.$_$.b;
|
|
150
|
+
var InvoiceApi = kotlin_no_solibo_oss_home_api.$_$.l;
|
|
151
|
+
var LoanApi = kotlin_no_solibo_oss_home_api.$_$.p;
|
|
152
|
+
var MeetingApi = kotlin_no_solibo_oss_home_api.$_$.r;
|
|
153
|
+
var TaskApi = kotlin_no_solibo_oss_home_api.$_$.a1;
|
|
154
|
+
var CommunicationApi = kotlin_no_solibo_oss_home_api.$_$.c;
|
|
155
|
+
var ParkingApi = kotlin_no_solibo_oss_home_api.$_$.t;
|
|
156
|
+
var SupplierApi = kotlin_no_solibo_oss_home_api.$_$.z;
|
|
157
|
+
var MarketingApi = kotlin_no_solibo_oss_home_api.$_$.q;
|
|
158
|
+
var ExpenseApi = kotlin_no_solibo_oss_home_api.$_$.h;
|
|
159
|
+
var IssueApi = kotlin_no_solibo_oss_home_api.$_$.n;
|
|
160
|
+
var EconomyApi = kotlin_no_solibo_oss_home_api.$_$.g;
|
|
161
|
+
var RefreshTokensCommand = kotlin_no_solibo_oss_home_api.$_$.d1;
|
|
162
|
+
var isBlank = kotlin_kotlin.$_$.kd;
|
|
163
|
+
var ensureNotNull = kotlin_kotlin.$_$.pg;
|
|
164
|
+
var logging = kotlin_com_diamondedge_logging.$_$.a;
|
|
165
|
+
var toString = kotlin_kotlin.$_$.ah;
|
|
166
|
+
var KmLogging_getInstance = kotlin_com_diamondedge_logging.$_$.b;
|
|
167
|
+
var Result = kotlin_kotlin.$_$.vf;
|
|
168
|
+
var JsonObjectBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
|
|
169
|
+
var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
|
|
170
|
+
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.g;
|
|
171
|
+
var Default_getInstance_0 = kotlin_kotlin.$_$.d4;
|
|
172
|
+
var toByteArray = kotlin_io_ktor_ktor_io.$_$.g1;
|
|
173
|
+
var CancellationException = kotlin_kotlin.$_$.m8;
|
|
174
|
+
var throwOnFailure = kotlin_kotlin.$_$.zg;
|
|
175
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.va;
|
|
176
|
+
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1;
|
|
177
|
+
var lazy = kotlin_kotlin.$_$.vg;
|
|
178
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.m4;
|
|
179
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.m1;
|
|
180
|
+
var KProperty1 = kotlin_kotlin.$_$.oc;
|
|
181
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.qa;
|
|
182
|
+
var getStringHashCode = kotlin_kotlin.$_$.ra;
|
|
183
|
+
var defineProp = kotlin_kotlin.$_$.la;
|
|
184
|
+
var isCharSequence = kotlin_kotlin.$_$.eb;
|
|
185
|
+
var trim = kotlin_kotlin.$_$.cf;
|
|
186
|
+
var toString_0 = kotlin_kotlin.$_$.tb;
|
|
187
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.e2;
|
|
188
|
+
var charArrayOf = kotlin_kotlin.$_$.ea;
|
|
189
|
+
var split = kotlin_kotlin.$_$.vd;
|
|
190
|
+
var firstOrNull = kotlin_kotlin.$_$.p6;
|
|
191
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.r5;
|
|
192
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
|
|
193
|
+
var listOf = kotlin_kotlin.$_$.h7;
|
|
194
|
+
var plus = kotlin_kotlin.$_$.n7;
|
|
195
|
+
var joinToString = kotlin_kotlin.$_$.a7;
|
|
196
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.wg;
|
|
197
|
+
var JsonNull_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
198
|
+
var JsonPrimitive_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
199
|
+
var JsonNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e;
|
|
200
|
+
var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
201
|
+
var to = kotlin_kotlin.$_$.bh;
|
|
202
|
+
var toMap = kotlin_kotlin.$_$.f8;
|
|
203
|
+
var JsClientEngineConfig = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
204
|
+
//endregion
|
|
17
205
|
//region block: pre-declaration
|
|
206
|
+
initMetadataForClass(AuthMode, 'AuthMode', VOID, Enum);
|
|
207
|
+
function refresh$default(oldTokens, $completion, $super) {
|
|
208
|
+
oldTokens = oldTokens === VOID ? null : oldTokens;
|
|
209
|
+
return $super === VOID ? this.g6o(oldTokens, $completion) : $super.g6o.call(this, oldTokens, $completion);
|
|
210
|
+
}
|
|
211
|
+
function revoke$default(deviceKey, deviceKeyGroup, $completion, $super) {
|
|
212
|
+
deviceKey = deviceKey === VOID ? null : deviceKey;
|
|
213
|
+
deviceKeyGroup = deviceKeyGroup === VOID ? null : deviceKeyGroup;
|
|
214
|
+
return $super === VOID ? this.i6o(deviceKey, deviceKeyGroup, $completion) : $super.i6o.call(this, deviceKey, deviceKeyGroup, $completion);
|
|
215
|
+
}
|
|
216
|
+
initMetadataForInterface(HomeApi, 'HomeApi', VOID, VOID, VOID, [1, 2]);
|
|
217
|
+
initMetadataForClass(RedirectException, 'RedirectException', VOID, Exception);
|
|
218
|
+
initMetadataForLambda(KtorHomeApi$_init_$slambda_1egs9p, CoroutineImpl, VOID, [0]);
|
|
219
|
+
initMetadataForLambda(KtorHomeApi$clientConfigurator$lambda$lambda$slambda, CoroutineImpl, VOID, [2]);
|
|
220
|
+
initMetadataForLambda(KtorHomeApi$clientConfigurator$lambda$lambda$slambda_1, CoroutineImpl, VOID, [1]);
|
|
221
|
+
initMetadataForLambda(KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda, CoroutineImpl, VOID, [0]);
|
|
222
|
+
initMetadataForLambda(KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda_1, CoroutineImpl, VOID, [1]);
|
|
223
|
+
initMetadataForCoroutine($refreshCOROUTINE$, CoroutineImpl);
|
|
224
|
+
initMetadataForCoroutine($revokeCOROUTINE$, CoroutineImpl);
|
|
225
|
+
initMetadataForClass(KtorHomeApi, 'KtorHomeApi', VOID, VOID, [HomeApi], [1, 2]);
|
|
226
|
+
initMetadataForClass(UnknownRefreshErrorException, 'UnknownRefreshErrorException', UnknownRefreshErrorException, Exception);
|
|
227
|
+
initMetadataForClass(Platform, 'Platform', Platform);
|
|
228
|
+
//endregion
|
|
229
|
+
var AuthMode_TOKEN_instance;
|
|
230
|
+
var AuthMode_COOKIE_instance;
|
|
231
|
+
var AuthMode_entriesInitialized;
|
|
232
|
+
function AuthMode_initEntries() {
|
|
233
|
+
if (AuthMode_entriesInitialized)
|
|
234
|
+
return Unit_instance;
|
|
235
|
+
AuthMode_entriesInitialized = true;
|
|
236
|
+
AuthMode_TOKEN_instance = new AuthMode('TOKEN', 0);
|
|
237
|
+
AuthMode_COOKIE_instance = new AuthMode('COOKIE', 1);
|
|
238
|
+
}
|
|
239
|
+
function AuthMode(name, ordinal) {
|
|
240
|
+
Enum.call(this, name, ordinal);
|
|
241
|
+
}
|
|
242
|
+
function HomeApi() {
|
|
243
|
+
}
|
|
244
|
+
function RedirectException(url) {
|
|
245
|
+
Exception_init_$Init$('Redirect to ' + url + ' required', this);
|
|
246
|
+
captureStack(this, RedirectException);
|
|
247
|
+
this.k6o_1 = url;
|
|
248
|
+
}
|
|
249
|
+
function AuthMode_COOKIE_getInstance() {
|
|
250
|
+
AuthMode_initEntries();
|
|
251
|
+
return AuthMode_COOKIE_instance;
|
|
252
|
+
}
|
|
253
|
+
function invalidateBearerTokens($this, _this__u8e3s4) {
|
|
254
|
+
// Inline function 'kotlin.runCatching' call
|
|
255
|
+
var tmp;
|
|
256
|
+
try {
|
|
257
|
+
var tmp0 = plugin(_this__u8e3s4, get_Auth());
|
|
258
|
+
$l$block: {
|
|
259
|
+
// Inline function 'kotlin.use' call
|
|
260
|
+
var exception = null;
|
|
261
|
+
try {
|
|
262
|
+
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
263
|
+
var tmp0_0 = get_authProviders(_this__u8e3s4);
|
|
264
|
+
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
265
|
+
var destination = ArrayList_init_$Create$();
|
|
266
|
+
var _iterator__ex2g4s = tmp0_0.t();
|
|
267
|
+
while (_iterator__ex2g4s.u()) {
|
|
268
|
+
var element = _iterator__ex2g4s.v();
|
|
269
|
+
if (element instanceof BearerAuthProvider) {
|
|
270
|
+
destination.b1(element);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
first(destination).x5s();
|
|
274
|
+
break $l$block;
|
|
275
|
+
} catch ($p) {
|
|
276
|
+
if ($p instanceof Error) {
|
|
277
|
+
var e = $p;
|
|
278
|
+
exception = e;
|
|
279
|
+
throw e;
|
|
280
|
+
} else {
|
|
281
|
+
throw $p;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
finally {
|
|
285
|
+
closeFinally(tmp0, exception);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
// Inline function 'kotlin.Companion.success' call
|
|
289
|
+
tmp = _Result___init__impl__xyqfz8(Unit_instance);
|
|
290
|
+
} catch ($p) {
|
|
291
|
+
var tmp_0;
|
|
292
|
+
if ($p instanceof Error) {
|
|
293
|
+
var e_0 = $p;
|
|
294
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
295
|
+
tmp_0 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
296
|
+
} else {
|
|
297
|
+
throw $p;
|
|
298
|
+
}
|
|
299
|
+
tmp = tmp_0;
|
|
300
|
+
}
|
|
301
|
+
// Inline function 'kotlin.map' call
|
|
302
|
+
var this_0 = tmp;
|
|
303
|
+
var tmp_1;
|
|
304
|
+
if (_Result___get_isSuccess__impl__sndoy8(this_0)) {
|
|
305
|
+
var tmp_2 = _Result___get_value__impl__bjfvqg(this_0);
|
|
306
|
+
if (!(tmp_2 == null ? true : !(tmp_2 == null)))
|
|
307
|
+
THROW_CCE();
|
|
308
|
+
// Inline function 'kotlin.Companion.success' call
|
|
309
|
+
tmp_1 = _Result___init__impl__xyqfz8(true);
|
|
310
|
+
} else {
|
|
311
|
+
tmp_1 = _Result___init__impl__xyqfz8(_Result___get_value__impl__bjfvqg(this_0));
|
|
312
|
+
}
|
|
313
|
+
// Inline function 'kotlin.getOrElse' call
|
|
314
|
+
var this_1 = tmp_1;
|
|
315
|
+
var exception_0 = Result__exceptionOrNull_impl_p6xea9(this_1);
|
|
316
|
+
var tmp_3;
|
|
317
|
+
if (exception_0 == null) {
|
|
318
|
+
var tmp_4 = _Result___get_value__impl__bjfvqg(this_1);
|
|
319
|
+
tmp_3 = (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : THROW_CCE();
|
|
320
|
+
} else {
|
|
321
|
+
tmp_3 = false;
|
|
322
|
+
}
|
|
323
|
+
return tmp_3;
|
|
324
|
+
}
|
|
325
|
+
function KtorHomeApi$_init_$lambda_qcejss(_this__u8e3s4) {
|
|
326
|
+
return Unit_instance;
|
|
327
|
+
}
|
|
328
|
+
function KtorHomeApi$_init_$slambda_1egs9p(resultContinuation) {
|
|
329
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
330
|
+
}
|
|
331
|
+
protoOf(KtorHomeApi$_init_$slambda_1egs9p).o1s = function ($completion) {
|
|
332
|
+
var tmp = this.f5r($completion);
|
|
333
|
+
tmp.k8_1 = Unit_instance;
|
|
334
|
+
tmp.l8_1 = null;
|
|
335
|
+
return tmp.q8();
|
|
336
|
+
};
|
|
337
|
+
protoOf(KtorHomeApi$_init_$slambda_1egs9p).z9 = function ($completion) {
|
|
338
|
+
return this.o1s($completion);
|
|
339
|
+
};
|
|
340
|
+
protoOf(KtorHomeApi$_init_$slambda_1egs9p).q8 = function () {
|
|
341
|
+
var suspendResult = this.k8_1;
|
|
342
|
+
$sm: do
|
|
343
|
+
try {
|
|
344
|
+
var tmp = this.i8_1;
|
|
345
|
+
if (tmp === 0) {
|
|
346
|
+
this.j8_1 = 1;
|
|
347
|
+
return Unit_instance;
|
|
348
|
+
} else if (tmp === 1) {
|
|
349
|
+
throw this.l8_1;
|
|
350
|
+
}
|
|
351
|
+
} catch ($p) {
|
|
352
|
+
var e = $p;
|
|
353
|
+
throw e;
|
|
354
|
+
}
|
|
355
|
+
while (true);
|
|
356
|
+
};
|
|
357
|
+
protoOf(KtorHomeApi$_init_$slambda_1egs9p).f5r = function (completion) {
|
|
358
|
+
return new KtorHomeApi$_init_$slambda_1egs9p(completion);
|
|
359
|
+
};
|
|
360
|
+
function KtorHomeApi$_init_$slambda_1egs9p_0(resultContinuation) {
|
|
361
|
+
var i = new KtorHomeApi$_init_$slambda_1egs9p(resultContinuation);
|
|
362
|
+
var l = function ($completion) {
|
|
363
|
+
return i.o1s($completion);
|
|
364
|
+
};
|
|
365
|
+
l.$arity = 0;
|
|
366
|
+
return l;
|
|
367
|
+
}
|
|
368
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda($this$install) {
|
|
369
|
+
json($this$install, Json(VOID, KtorHomeApi$clientConfigurator$lambda$lambda$lambda));
|
|
370
|
+
return Unit_instance;
|
|
371
|
+
}
|
|
372
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda$lambda($this$Json) {
|
|
373
|
+
$this$Json.c69_1 = true;
|
|
374
|
+
$this$Json.a69_1 = false;
|
|
375
|
+
$this$Json.b69_1 = false;
|
|
376
|
+
return Unit_instance;
|
|
377
|
+
}
|
|
378
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda_0($this$install) {
|
|
379
|
+
$this$install.q4a(5);
|
|
380
|
+
$this$install.n4a(VOID, KtorHomeApi$clientConfigurator$lambda$lambda$lambda_0);
|
|
381
|
+
$this$install.h4a();
|
|
382
|
+
return Unit_instance;
|
|
383
|
+
}
|
|
384
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda$lambda_0($this$retryOnExceptionIf, _unused_var__etf5q3, cause) {
|
|
385
|
+
var tmp;
|
|
386
|
+
if (cause instanceof HttpRequestTimeoutException) {
|
|
387
|
+
tmp = true;
|
|
388
|
+
} else {
|
|
389
|
+
tmp = cause instanceof ConnectTimeoutException;
|
|
390
|
+
}
|
|
391
|
+
return tmp;
|
|
392
|
+
}
|
|
393
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda_1($this$install) {
|
|
394
|
+
$this$install.t4e(30000n);
|
|
395
|
+
$this$install.u4e(5000n);
|
|
396
|
+
return Unit_instance;
|
|
397
|
+
}
|
|
398
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda_2($this$createClientPlugin) {
|
|
399
|
+
var tmp = Send_instance;
|
|
400
|
+
$this$createClientPlugin.n3w(tmp, KtorHomeApi$clientConfigurator$lambda$lambda$slambda_0(null));
|
|
401
|
+
return Unit_instance;
|
|
402
|
+
}
|
|
403
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda$slambda(resultContinuation) {
|
|
404
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
405
|
+
}
|
|
406
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$slambda).m43 = function ($this$on, request, $completion) {
|
|
407
|
+
var tmp = this.n43($this$on, request, $completion);
|
|
408
|
+
tmp.k8_1 = Unit_instance;
|
|
409
|
+
tmp.l8_1 = null;
|
|
410
|
+
return tmp.q8();
|
|
411
|
+
};
|
|
412
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$slambda).d9 = function (p1, p2, $completion) {
|
|
413
|
+
var tmp = p1 instanceof Sender ? p1 : THROW_CCE();
|
|
414
|
+
return this.m43(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
415
|
+
};
|
|
416
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$slambda).q8 = function () {
|
|
417
|
+
var suspendResult = this.k8_1;
|
|
418
|
+
$sm: do
|
|
419
|
+
try {
|
|
420
|
+
var tmp = this.i8_1;
|
|
421
|
+
switch (tmp) {
|
|
422
|
+
case 0:
|
|
423
|
+
this.j8_1 = 2;
|
|
424
|
+
var body = this.c6p_1.x3n_1;
|
|
425
|
+
var tmp_0;
|
|
426
|
+
if (body instanceof TextContent) {
|
|
427
|
+
tmp_0 = body.z33_1.a2s(Application_getInstance().g2q_1);
|
|
428
|
+
} else {
|
|
429
|
+
tmp_0 = false;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
if (tmp_0) {
|
|
433
|
+
var jsonElement = Default_getInstance().l68(body.y33_1);
|
|
434
|
+
var cleaned = removeEmptyStringsAndNulls(jsonElement);
|
|
435
|
+
if (!equals(cleaned, jsonElement)) {
|
|
436
|
+
var tmp0 = this.c6p_1;
|
|
437
|
+
var this_0 = Default_getInstance();
|
|
438
|
+
var this_1 = this_0.z1v();
|
|
439
|
+
var this_2 = serializer(this_1, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
440
|
+
var body_0 = new TextContent(this_0.o1w(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), cleaned), body.z33_1);
|
|
441
|
+
if (body_0 == null) {
|
|
442
|
+
tmp0.x3n_1 = NullBody_instance;
|
|
443
|
+
var tmp_1 = getKClass(TextContent);
|
|
444
|
+
var tmp_2;
|
|
445
|
+
try {
|
|
446
|
+
tmp_2 = createKType(getKClass(TextContent), arrayOf([]), false);
|
|
447
|
+
} catch ($p) {
|
|
448
|
+
var tmp_3;
|
|
449
|
+
if ($p instanceof Error) {
|
|
450
|
+
var _unused_var__etf5q3 = $p;
|
|
451
|
+
tmp_3 = null;
|
|
452
|
+
} else {
|
|
453
|
+
throw $p;
|
|
454
|
+
}
|
|
455
|
+
tmp_2 = tmp_3;
|
|
456
|
+
}
|
|
457
|
+
tmp0.a3u(new TypeInfo(tmp_1, tmp_2));
|
|
458
|
+
} else {
|
|
459
|
+
if (body_0 instanceof OutgoingContent) {
|
|
460
|
+
tmp0.x3n_1 = body_0;
|
|
461
|
+
tmp0.a3u(null);
|
|
462
|
+
} else {
|
|
463
|
+
tmp0.x3n_1 = body_0;
|
|
464
|
+
var tmp_4 = getKClass(TextContent);
|
|
465
|
+
var tmp_5;
|
|
466
|
+
try {
|
|
467
|
+
tmp_5 = createKType(getKClass(TextContent), arrayOf([]), false);
|
|
468
|
+
} catch ($p) {
|
|
469
|
+
var tmp_6;
|
|
470
|
+
if ($p instanceof Error) {
|
|
471
|
+
var _unused_var__etf5q3_0 = $p;
|
|
472
|
+
tmp_6 = null;
|
|
473
|
+
} else {
|
|
474
|
+
throw $p;
|
|
475
|
+
}
|
|
476
|
+
tmp_5 = tmp_6;
|
|
477
|
+
}
|
|
478
|
+
tmp0.a3u(new TypeInfo(tmp_4, tmp_5));
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
this.i8_1 = 1;
|
|
485
|
+
suspendResult = this.b6p_1.q43(this.c6p_1, this);
|
|
486
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
487
|
+
return suspendResult;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
continue $sm;
|
|
491
|
+
case 1:
|
|
492
|
+
return suspendResult;
|
|
493
|
+
case 2:
|
|
494
|
+
throw this.l8_1;
|
|
495
|
+
}
|
|
496
|
+
} catch ($p) {
|
|
497
|
+
var e = $p;
|
|
498
|
+
if (this.j8_1 === 2) {
|
|
499
|
+
throw e;
|
|
500
|
+
} else {
|
|
501
|
+
this.i8_1 = this.j8_1;
|
|
502
|
+
this.l8_1 = e;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
while (true);
|
|
506
|
+
};
|
|
507
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$slambda).n43 = function ($this$on, request, completion) {
|
|
508
|
+
var i = new KtorHomeApi$clientConfigurator$lambda$lambda$slambda(completion);
|
|
509
|
+
i.b6p_1 = $this$on;
|
|
510
|
+
i.c6p_1 = request;
|
|
511
|
+
return i;
|
|
512
|
+
};
|
|
513
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda$slambda_0(resultContinuation) {
|
|
514
|
+
var i = new KtorHomeApi$clientConfigurator$lambda$lambda$slambda(resultContinuation);
|
|
515
|
+
var l = function ($this$on, request, $completion) {
|
|
516
|
+
return i.m43($this$on, request, $completion);
|
|
517
|
+
};
|
|
518
|
+
l.$arity = 2;
|
|
519
|
+
return l;
|
|
520
|
+
}
|
|
521
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda_3($this$install) {
|
|
522
|
+
$this$install.i5w_1 = LogLevel_NONE_getInstance();
|
|
523
|
+
$this$install.m5w(VOID, KtorHomeApi$clientConfigurator$lambda$lambda$lambda_1);
|
|
524
|
+
return Unit_instance;
|
|
525
|
+
}
|
|
526
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda$lambda_1(header) {
|
|
527
|
+
return header === 'Authorization';
|
|
528
|
+
}
|
|
529
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda_4($this$HttpResponseValidator) {
|
|
530
|
+
$this$HttpResponseValidator.a3z(KtorHomeApi$clientConfigurator$lambda$lambda$slambda_2($this$HttpResponseValidator, null));
|
|
531
|
+
return Unit_instance;
|
|
532
|
+
}
|
|
533
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda$slambda_1($this_HttpResponseValidator, resultContinuation) {
|
|
534
|
+
this.l6p_1 = $this_HttpResponseValidator;
|
|
535
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
536
|
+
}
|
|
537
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$slambda_1).w3y = function (response, $completion) {
|
|
538
|
+
var tmp = this.k3x(response, $completion);
|
|
539
|
+
tmp.k8_1 = Unit_instance;
|
|
540
|
+
tmp.l8_1 = null;
|
|
541
|
+
return tmp.q8();
|
|
542
|
+
};
|
|
543
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$slambda_1).c9 = function (p1, $completion) {
|
|
544
|
+
return this.w3y(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
545
|
+
};
|
|
546
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$slambda_1).q8 = function () {
|
|
547
|
+
var suspendResult = this.k8_1;
|
|
548
|
+
$sm: do
|
|
549
|
+
try {
|
|
550
|
+
var tmp = this.i8_1;
|
|
551
|
+
switch (tmp) {
|
|
552
|
+
case 0:
|
|
553
|
+
this.j8_1 = 5;
|
|
554
|
+
this.n6p_1 = get_request(this.m6p_1).n3p().o32();
|
|
555
|
+
if (this.m6p_1.k33().equals(Companion_getInstance().s2y_1) && contains(this.n6p_1, '/auth')) {
|
|
556
|
+
this.i8_1 = 1;
|
|
557
|
+
suspendResult = bodyAsText(this.m6p_1, VOID, this);
|
|
558
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
559
|
+
return suspendResult;
|
|
560
|
+
}
|
|
561
|
+
continue $sm;
|
|
562
|
+
} else {
|
|
563
|
+
this.i8_1 = 2;
|
|
564
|
+
continue $sm;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
case 1:
|
|
568
|
+
var body = suspendResult;
|
|
569
|
+
this.l6p_1;
|
|
570
|
+
var tmp_0;
|
|
571
|
+
try {
|
|
572
|
+
var tmp0_safe_receiver = get_jsonObject(Default_getInstance().l68(body)).p2i('url');
|
|
573
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
|
|
574
|
+
var value = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o3p();
|
|
575
|
+
tmp_0 = _Result___init__impl__xyqfz8(value);
|
|
576
|
+
} catch ($p) {
|
|
577
|
+
var tmp_1;
|
|
578
|
+
if ($p instanceof Error) {
|
|
579
|
+
var e = $p;
|
|
580
|
+
tmp_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
581
|
+
} else {
|
|
582
|
+
throw $p;
|
|
583
|
+
}
|
|
584
|
+
tmp_0 = tmp_1;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
var this_0 = tmp_0;
|
|
588
|
+
var tmp_2;
|
|
589
|
+
if (_Result___get_isFailure__impl__jpiriv(this_0)) {
|
|
590
|
+
tmp_2 = null;
|
|
591
|
+
} else {
|
|
592
|
+
var tmp_3 = _Result___get_value__impl__bjfvqg(this_0);
|
|
593
|
+
tmp_2 = (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE();
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
var tmp0_elvis_lhs = tmp_2;
|
|
597
|
+
var redirectUrl = tmp0_elvis_lhs == null ? this.m6p_1.k2x().p2i('Location') : tmp0_elvis_lhs;
|
|
598
|
+
if (!(redirectUrl == null || charSequenceLength(redirectUrl) === 0)) {
|
|
599
|
+
throw new RedirectException(redirectUrl);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
this.i8_1 = 2;
|
|
603
|
+
continue $sm;
|
|
604
|
+
case 2:
|
|
605
|
+
var tmp1_subject = this.m6p_1.k33();
|
|
606
|
+
if (tmp1_subject.equals(Companion_getInstance().d2z_1)) {
|
|
607
|
+
throw Exception_init_$Create$('Resource not found');
|
|
608
|
+
} else {
|
|
609
|
+
if (tmp1_subject.equals(Companion_getInstance().w2z_1)) {
|
|
610
|
+
throw Exception_init_$Create$('Too many requests');
|
|
611
|
+
} else {
|
|
612
|
+
if (tmp1_subject.equals(Companion_getInstance().r2z_1)) {
|
|
613
|
+
this.i8_1 = 3;
|
|
614
|
+
suspendResult = bodyAsText(this.m6p_1, VOID, this);
|
|
615
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
616
|
+
return suspendResult;
|
|
617
|
+
}
|
|
618
|
+
continue $sm;
|
|
619
|
+
} else {
|
|
620
|
+
if (tmp1_subject.equals(Companion_getInstance().b30_1) || tmp1_subject.equals(Companion_getInstance().c30_1)) {
|
|
621
|
+
throw Exception_init_$Create$('Server unavailable');
|
|
622
|
+
} else {
|
|
623
|
+
if (tmp1_subject.equals(Companion_getInstance().a2z_1)) {
|
|
624
|
+
if (!contains(this.n6p_1, '/auth')) {
|
|
625
|
+
throw Exception_init_$Create$('Unauthorized');
|
|
626
|
+
}
|
|
627
|
+
this.i8_1 = 4;
|
|
628
|
+
continue $sm;
|
|
629
|
+
} else {
|
|
630
|
+
this.i8_1 = 4;
|
|
631
|
+
continue $sm;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
case 3:
|
|
639
|
+
var body_0 = suspendResult;
|
|
640
|
+
this.l6p_1;
|
|
641
|
+
var tmp_4;
|
|
642
|
+
try {
|
|
643
|
+
var tmp0_safe_receiver_0 = get_jsonObject(Default_getInstance().l68(body_0)).p2i('message');
|
|
644
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : get_jsonPrimitive(tmp0_safe_receiver_0);
|
|
645
|
+
var value_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.o3p();
|
|
646
|
+
tmp_4 = _Result___init__impl__xyqfz8(value_0);
|
|
647
|
+
} catch ($p) {
|
|
648
|
+
var tmp_5;
|
|
649
|
+
if ($p instanceof Error) {
|
|
650
|
+
var e_0 = $p;
|
|
651
|
+
tmp_5 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
652
|
+
} else {
|
|
653
|
+
throw $p;
|
|
654
|
+
}
|
|
655
|
+
tmp_4 = tmp_5;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
var this_1 = tmp_4;
|
|
659
|
+
var tmp_6;
|
|
660
|
+
if (_Result___get_isFailure__impl__jpiriv(this_1)) {
|
|
661
|
+
tmp_6 = null;
|
|
662
|
+
} else {
|
|
663
|
+
var tmp_7 = _Result___get_value__impl__bjfvqg(this_1);
|
|
664
|
+
tmp_6 = (tmp_7 == null ? true : !(tmp_7 == null)) ? tmp_7 : THROW_CCE();
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
var tmp2_elvis_lhs = tmp_6;
|
|
668
|
+
var message = tmp2_elvis_lhs == null ? 'Validation error' : tmp2_elvis_lhs;
|
|
669
|
+
throw Exception_init_$Create$(message);
|
|
670
|
+
case 4:
|
|
671
|
+
return Unit_instance;
|
|
672
|
+
case 5:
|
|
673
|
+
throw this.l8_1;
|
|
674
|
+
}
|
|
675
|
+
} catch ($p) {
|
|
676
|
+
var e_1 = $p;
|
|
677
|
+
if (this.j8_1 === 5) {
|
|
678
|
+
throw e_1;
|
|
679
|
+
} else {
|
|
680
|
+
this.i8_1 = this.j8_1;
|
|
681
|
+
this.l8_1 = e_1;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
while (true);
|
|
685
|
+
};
|
|
686
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$slambda_1).k3x = function (response, completion) {
|
|
687
|
+
var i = new KtorHomeApi$clientConfigurator$lambda$lambda$slambda_1(this.l6p_1, completion);
|
|
688
|
+
i.m6p_1 = response;
|
|
689
|
+
return i;
|
|
690
|
+
};
|
|
691
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda$slambda_2($this_HttpResponseValidator, resultContinuation) {
|
|
692
|
+
var i = new KtorHomeApi$clientConfigurator$lambda$lambda$slambda_1($this_HttpResponseValidator, resultContinuation);
|
|
693
|
+
var l = function (response, $completion) {
|
|
694
|
+
return i.w3y(response, $completion);
|
|
695
|
+
};
|
|
696
|
+
l.$arity = 1;
|
|
697
|
+
return l;
|
|
698
|
+
}
|
|
699
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda(this$0, resultContinuation) {
|
|
700
|
+
this.w6p_1 = this$0;
|
|
701
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
702
|
+
}
|
|
703
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda).e5r = function ($completion) {
|
|
704
|
+
var tmp = this.f5r($completion);
|
|
705
|
+
tmp.k8_1 = Unit_instance;
|
|
706
|
+
tmp.l8_1 = null;
|
|
707
|
+
return tmp.q8();
|
|
708
|
+
};
|
|
709
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda).z9 = function ($completion) {
|
|
710
|
+
return this.e5r($completion);
|
|
711
|
+
};
|
|
712
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda).q8 = function () {
|
|
713
|
+
var suspendResult = this.k8_1;
|
|
714
|
+
$sm: do
|
|
715
|
+
try {
|
|
716
|
+
var tmp = this.i8_1;
|
|
717
|
+
if (tmp === 0) {
|
|
718
|
+
this.j8_1 = 1;
|
|
719
|
+
var tmp0_elvis_lhs = this.w6p_1.g6q_1;
|
|
720
|
+
var tmp_0 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
721
|
+
var tmp1_elvis_lhs = this.w6p_1.h6q_1;
|
|
722
|
+
var tokens = new BearerTokens(tmp_0, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
|
|
723
|
+
return tokens;
|
|
724
|
+
} else if (tmp === 1) {
|
|
725
|
+
throw this.l8_1;
|
|
726
|
+
}
|
|
727
|
+
} catch ($p) {
|
|
728
|
+
var e = $p;
|
|
729
|
+
throw e;
|
|
730
|
+
}
|
|
731
|
+
while (true);
|
|
732
|
+
};
|
|
733
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda).f5r = function (completion) {
|
|
734
|
+
return new KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda(this.w6p_1, completion);
|
|
735
|
+
};
|
|
736
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda_0(this$0, resultContinuation) {
|
|
737
|
+
var i = new KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda(this$0, resultContinuation);
|
|
738
|
+
var l = function ($completion) {
|
|
739
|
+
return i.e5r($completion);
|
|
740
|
+
};
|
|
741
|
+
l.$arity = 0;
|
|
742
|
+
return l;
|
|
743
|
+
}
|
|
744
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda_1(this$0, resultContinuation) {
|
|
745
|
+
this.w6r_1 = this$0;
|
|
746
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
747
|
+
}
|
|
748
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda_1).u5q = function ($this$refreshTokens, $completion) {
|
|
749
|
+
var tmp = this.v5q($this$refreshTokens, $completion);
|
|
750
|
+
tmp.k8_1 = Unit_instance;
|
|
751
|
+
tmp.l8_1 = null;
|
|
752
|
+
return tmp.q8();
|
|
753
|
+
};
|
|
754
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda_1).c9 = function (p1, $completion) {
|
|
755
|
+
return this.u5q(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
|
|
756
|
+
};
|
|
757
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda_1).q8 = function () {
|
|
758
|
+
var suspendResult = this.k8_1;
|
|
759
|
+
$sm: do
|
|
760
|
+
try {
|
|
761
|
+
var tmp = this.i8_1;
|
|
762
|
+
switch (tmp) {
|
|
763
|
+
case 0:
|
|
764
|
+
this.j8_1 = 3;
|
|
765
|
+
var tmp0_safe_receiver = this.x6r_1.k5r_1;
|
|
766
|
+
if (tmp0_safe_receiver == null) {
|
|
767
|
+
this.y6r_1 = null;
|
|
768
|
+
this.i8_1 = 2;
|
|
769
|
+
continue $sm;
|
|
770
|
+
} else {
|
|
771
|
+
this.i8_1 = 1;
|
|
772
|
+
suspendResult = this.w6r_1.g6o(tmp0_safe_receiver, this);
|
|
773
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
774
|
+
return suspendResult;
|
|
775
|
+
}
|
|
776
|
+
continue $sm;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
case 1:
|
|
780
|
+
this.y6r_1 = suspendResult;
|
|
781
|
+
this.i8_1 = 2;
|
|
782
|
+
continue $sm;
|
|
783
|
+
case 2:
|
|
784
|
+
return this.y6r_1;
|
|
785
|
+
case 3:
|
|
786
|
+
throw this.l8_1;
|
|
787
|
+
}
|
|
788
|
+
} catch ($p) {
|
|
789
|
+
var e = $p;
|
|
790
|
+
if (this.j8_1 === 3) {
|
|
791
|
+
throw e;
|
|
792
|
+
} else {
|
|
793
|
+
this.i8_1 = this.j8_1;
|
|
794
|
+
this.l8_1 = e;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
while (true);
|
|
798
|
+
};
|
|
799
|
+
protoOf(KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda_1).v5q = function ($this$refreshTokens, completion) {
|
|
800
|
+
var i = new KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda_1(this.w6r_1, completion);
|
|
801
|
+
i.x6r_1 = $this$refreshTokens;
|
|
802
|
+
return i;
|
|
803
|
+
};
|
|
804
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda_2(this$0, resultContinuation) {
|
|
805
|
+
var i = new KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda_1(this$0, resultContinuation);
|
|
806
|
+
var l = function ($this$refreshTokens, $completion) {
|
|
807
|
+
return i.u5q($this$refreshTokens, $completion);
|
|
808
|
+
};
|
|
809
|
+
l.$arity = 1;
|
|
810
|
+
return l;
|
|
811
|
+
}
|
|
812
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda$lambda_2(this$0) {
|
|
813
|
+
return function ($this$bearer) {
|
|
814
|
+
$this$bearer.h5r(KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda_0(this$0, null));
|
|
815
|
+
$this$bearer.g5r(KtorHomeApi$clientConfigurator$lambda$lambda$lambda$slambda_2(this$0, null));
|
|
816
|
+
return Unit_instance;
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda_5(this$0) {
|
|
820
|
+
return function ($this$install) {
|
|
821
|
+
bearer($this$install, KtorHomeApi$clientConfigurator$lambda$lambda$lambda_2(this$0));
|
|
822
|
+
return Unit_instance;
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
function KtorHomeApi$clientConfigurator$lambda$lambda_6(this$0) {
|
|
826
|
+
return function ($this$defaultRequest) {
|
|
827
|
+
if (contentType($this$defaultRequest) == null) {
|
|
828
|
+
contentType_0($this$defaultRequest, Application_getInstance().g2q_1);
|
|
829
|
+
}
|
|
830
|
+
accept($this$defaultRequest, Application_getInstance().g2q_1);
|
|
831
|
+
header($this$defaultRequest, 'Accept-Language', buildAcceptLanguage(this$0.z6r()));
|
|
832
|
+
return Unit_instance;
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
function KtorHomeApi$clientConfigurator$lambda(this$0) {
|
|
836
|
+
return function (_this__u8e3s4) {
|
|
837
|
+
var tmp = get_ContentNegotiation();
|
|
838
|
+
_this__u8e3s4.c3p(tmp, KtorHomeApi$clientConfigurator$lambda$lambda);
|
|
839
|
+
_this__u8e3s4.p3o(Companion_getInstance_0());
|
|
840
|
+
var tmp_0 = get_HttpRequestRetry();
|
|
841
|
+
_this__u8e3s4.c3p(tmp_0, KtorHomeApi$clientConfigurator$lambda$lambda_0);
|
|
842
|
+
var tmp_1 = get_HttpTimeout();
|
|
843
|
+
_this__u8e3s4.c3p(tmp_1, KtorHomeApi$clientConfigurator$lambda$lambda_1);
|
|
844
|
+
_this__u8e3s4.p3o(createClientPlugin('RemoveEmptyFields', KtorHomeApi$clientConfigurator$lambda$lambda_2));
|
|
845
|
+
var tmp_2 = get_Logging();
|
|
846
|
+
_this__u8e3s4.c3p(tmp_2, KtorHomeApi$clientConfigurator$lambda$lambda_3);
|
|
847
|
+
HttpResponseValidator(_this__u8e3s4, KtorHomeApi$clientConfigurator$lambda$lambda_4);
|
|
848
|
+
var tmp_3;
|
|
849
|
+
if (this$0.a6s().a1_1 === 0) {
|
|
850
|
+
var tmp_4 = get_Auth();
|
|
851
|
+
_this__u8e3s4.c3p(tmp_4, KtorHomeApi$clientConfigurator$lambda$lambda_5(this$0));
|
|
852
|
+
tmp_3 = Unit_instance;
|
|
853
|
+
} else {
|
|
854
|
+
_this__u8e3s4.p3o(Companion_getInstance_1());
|
|
855
|
+
tmp_3 = Unit_instance;
|
|
856
|
+
}
|
|
857
|
+
defaultRequest(_this__u8e3s4, KtorHomeApi$clientConfigurator$lambda$lambda_6(this$0));
|
|
858
|
+
applyPlatformSpecificHttpClientConfig(_this__u8e3s4);
|
|
859
|
+
this$0.b6q_1(_this__u8e3s4);
|
|
860
|
+
return Unit_instance;
|
|
861
|
+
};
|
|
862
|
+
}
|
|
863
|
+
function KtorHomeApi$users$delegate$lambda(this$0) {
|
|
864
|
+
return function () {
|
|
865
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
866
|
+
var tmp;
|
|
867
|
+
if (tmp0_elvis_lhs == null) {
|
|
868
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
869
|
+
} else {
|
|
870
|
+
tmp = tmp0_elvis_lhs;
|
|
871
|
+
}
|
|
872
|
+
return new UserApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
function KtorHomeApi$_get_users_$ref_spoxab() {
|
|
876
|
+
return function (p0) {
|
|
877
|
+
return p0.b6s();
|
|
878
|
+
};
|
|
879
|
+
}
|
|
880
|
+
function KtorHomeApi$documents$delegate$lambda(this$0) {
|
|
881
|
+
return function () {
|
|
882
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
883
|
+
var tmp;
|
|
884
|
+
if (tmp0_elvis_lhs == null) {
|
|
885
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
886
|
+
} else {
|
|
887
|
+
tmp = tmp0_elvis_lhs;
|
|
888
|
+
}
|
|
889
|
+
return new DocumentApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
function KtorHomeApi$_get_documents_$ref_nl8s7n() {
|
|
893
|
+
return function (p0) {
|
|
894
|
+
return p0.c6s();
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
function KtorHomeApi$conversations$delegate$lambda(this$0) {
|
|
898
|
+
return function () {
|
|
899
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
900
|
+
var tmp;
|
|
901
|
+
if (tmp0_elvis_lhs == null) {
|
|
902
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
903
|
+
} else {
|
|
904
|
+
tmp = tmp0_elvis_lhs;
|
|
905
|
+
}
|
|
906
|
+
return new ConversationApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
907
|
+
};
|
|
908
|
+
}
|
|
909
|
+
function KtorHomeApi$_get_conversations_$ref_x5iyj() {
|
|
910
|
+
return function (p0) {
|
|
911
|
+
return p0.d6s();
|
|
912
|
+
};
|
|
913
|
+
}
|
|
914
|
+
function KtorHomeApi$companies$delegate$lambda(this$0) {
|
|
915
|
+
return function () {
|
|
916
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
917
|
+
var tmp;
|
|
918
|
+
if (tmp0_elvis_lhs == null) {
|
|
919
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
920
|
+
} else {
|
|
921
|
+
tmp = tmp0_elvis_lhs;
|
|
922
|
+
}
|
|
923
|
+
return new CompanyApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
function KtorHomeApi$_get_companies_$ref_xrn6og() {
|
|
927
|
+
return function (p0) {
|
|
928
|
+
return p0.e6s();
|
|
929
|
+
};
|
|
930
|
+
}
|
|
931
|
+
function KtorHomeApi$sections$delegate$lambda(this$0) {
|
|
932
|
+
return function () {
|
|
933
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
934
|
+
var tmp;
|
|
935
|
+
if (tmp0_elvis_lhs == null) {
|
|
936
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
937
|
+
} else {
|
|
938
|
+
tmp = tmp0_elvis_lhs;
|
|
939
|
+
}
|
|
940
|
+
return new SectionApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
function KtorHomeApi$_get_sections_$ref_rbft5r() {
|
|
944
|
+
return function (p0) {
|
|
945
|
+
return p0.f6s();
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
function KtorHomeApi$homepage$delegate$lambda(this$0) {
|
|
949
|
+
return function () {
|
|
950
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
951
|
+
var tmp;
|
|
952
|
+
if (tmp0_elvis_lhs == null) {
|
|
953
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
954
|
+
} else {
|
|
955
|
+
tmp = tmp0_elvis_lhs;
|
|
956
|
+
}
|
|
957
|
+
return new HomepageApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
958
|
+
};
|
|
959
|
+
}
|
|
960
|
+
function KtorHomeApi$_get_homepage_$ref_8jvfl() {
|
|
961
|
+
return function (p0) {
|
|
962
|
+
return p0.g6s();
|
|
963
|
+
};
|
|
964
|
+
}
|
|
965
|
+
function KtorHomeApi$invoicing$delegate$lambda(this$0) {
|
|
966
|
+
return function () {
|
|
967
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
968
|
+
var tmp;
|
|
969
|
+
if (tmp0_elvis_lhs == null) {
|
|
970
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
971
|
+
} else {
|
|
972
|
+
tmp = tmp0_elvis_lhs;
|
|
973
|
+
}
|
|
974
|
+
return new InvoicingApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
function KtorHomeApi$_get_invoicing_$ref_uln36n() {
|
|
978
|
+
return function (p0) {
|
|
979
|
+
return p0.h6s();
|
|
980
|
+
};
|
|
981
|
+
}
|
|
982
|
+
function KtorHomeApi$thirdParty$delegate$lambda(this$0) {
|
|
983
|
+
return function () {
|
|
984
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
985
|
+
var tmp;
|
|
986
|
+
if (tmp0_elvis_lhs == null) {
|
|
987
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
988
|
+
} else {
|
|
989
|
+
tmp = tmp0_elvis_lhs;
|
|
990
|
+
}
|
|
991
|
+
return new ThirdPartyInformationApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
992
|
+
};
|
|
993
|
+
}
|
|
994
|
+
function KtorHomeApi$_get_thirdParty_$ref_g1r034() {
|
|
995
|
+
return function (p0) {
|
|
996
|
+
return p0.i6s();
|
|
997
|
+
};
|
|
998
|
+
}
|
|
999
|
+
function KtorHomeApi$residents$delegate$lambda(this$0) {
|
|
1000
|
+
return function () {
|
|
1001
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1002
|
+
var tmp;
|
|
1003
|
+
if (tmp0_elvis_lhs == null) {
|
|
1004
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1005
|
+
} else {
|
|
1006
|
+
tmp = tmp0_elvis_lhs;
|
|
1007
|
+
}
|
|
1008
|
+
return new ResidentApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
function KtorHomeApi$_get_residents_$ref_jxiafc() {
|
|
1012
|
+
return function (p0) {
|
|
1013
|
+
return p0.j6s();
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
function KtorHomeApi$person$delegate$lambda(this$0) {
|
|
1017
|
+
return function () {
|
|
1018
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1019
|
+
var tmp;
|
|
1020
|
+
if (tmp0_elvis_lhs == null) {
|
|
1021
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1022
|
+
} else {
|
|
1023
|
+
tmp = tmp0_elvis_lhs;
|
|
1024
|
+
}
|
|
1025
|
+
return new PersonApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1026
|
+
};
|
|
1027
|
+
}
|
|
1028
|
+
function KtorHomeApi$_get_person_$ref_lhpt46() {
|
|
1029
|
+
return function (p0) {
|
|
1030
|
+
return p0.k6s();
|
|
1031
|
+
};
|
|
1032
|
+
}
|
|
1033
|
+
function KtorHomeApi$auth$delegate$lambda(this$0) {
|
|
1034
|
+
return function () {
|
|
1035
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1036
|
+
var tmp;
|
|
1037
|
+
if (tmp0_elvis_lhs == null) {
|
|
1038
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1039
|
+
} else {
|
|
1040
|
+
tmp = tmp0_elvis_lhs;
|
|
1041
|
+
}
|
|
1042
|
+
return new AuthApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
function KtorHomeApi$_get_auth_$ref_b4x2ft() {
|
|
1046
|
+
return function (p0) {
|
|
1047
|
+
return p0.l6s();
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
function KtorHomeApi$organization$delegate$lambda(this$0) {
|
|
1051
|
+
return function () {
|
|
1052
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1053
|
+
var tmp;
|
|
1054
|
+
if (tmp0_elvis_lhs == null) {
|
|
1055
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1056
|
+
} else {
|
|
1057
|
+
tmp = tmp0_elvis_lhs;
|
|
1058
|
+
}
|
|
1059
|
+
return new OrganizationApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
function KtorHomeApi$_get_organization_$ref_bjt96k() {
|
|
1063
|
+
return function (p0) {
|
|
1064
|
+
return p0.m6s();
|
|
1065
|
+
};
|
|
1066
|
+
}
|
|
1067
|
+
function KtorHomeApi$insurance$delegate$lambda(this$0) {
|
|
1068
|
+
return function () {
|
|
1069
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1070
|
+
var tmp;
|
|
1071
|
+
if (tmp0_elvis_lhs == null) {
|
|
1072
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1073
|
+
} else {
|
|
1074
|
+
tmp = tmp0_elvis_lhs;
|
|
1075
|
+
}
|
|
1076
|
+
return new InsuranceApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1079
|
+
function KtorHomeApi$_get_insurance_$ref_a0vxf5() {
|
|
1080
|
+
return function (p0) {
|
|
1081
|
+
return p0.n6s();
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
function KtorHomeApi$hms$delegate$lambda(this$0) {
|
|
1085
|
+
return function () {
|
|
1086
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1087
|
+
var tmp;
|
|
1088
|
+
if (tmp0_elvis_lhs == null) {
|
|
1089
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1090
|
+
} else {
|
|
1091
|
+
tmp = tmp0_elvis_lhs;
|
|
1092
|
+
}
|
|
1093
|
+
return new HMSApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
function KtorHomeApi$_get_hms_$ref_8ssj0j() {
|
|
1097
|
+
return function (p0) {
|
|
1098
|
+
return p0.o6s();
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
function KtorHomeApi$routines$delegate$lambda(this$0) {
|
|
1102
|
+
return function () {
|
|
1103
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1104
|
+
var tmp;
|
|
1105
|
+
if (tmp0_elvis_lhs == null) {
|
|
1106
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1107
|
+
} else {
|
|
1108
|
+
tmp = tmp0_elvis_lhs;
|
|
1109
|
+
}
|
|
1110
|
+
return new RoutinesApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1111
|
+
};
|
|
1112
|
+
}
|
|
1113
|
+
function KtorHomeApi$_get_routines_$ref_dc8zls() {
|
|
1114
|
+
return function (p0) {
|
|
1115
|
+
return p0.p6s();
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
function KtorHomeApi$storage$delegate$lambda(this$0) {
|
|
1119
|
+
return function () {
|
|
1120
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1121
|
+
var tmp;
|
|
1122
|
+
if (tmp0_elvis_lhs == null) {
|
|
1123
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1124
|
+
} else {
|
|
1125
|
+
tmp = tmp0_elvis_lhs;
|
|
1126
|
+
}
|
|
1127
|
+
return new StorageApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1128
|
+
};
|
|
1129
|
+
}
|
|
1130
|
+
function KtorHomeApi$_get_storage_$ref_997blc() {
|
|
1131
|
+
return function (p0) {
|
|
1132
|
+
return p0.q6s();
|
|
1133
|
+
};
|
|
1134
|
+
}
|
|
1135
|
+
function KtorHomeApi$language$delegate$lambda(this$0) {
|
|
1136
|
+
return function () {
|
|
1137
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1138
|
+
var tmp;
|
|
1139
|
+
if (tmp0_elvis_lhs == null) {
|
|
1140
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1141
|
+
} else {
|
|
1142
|
+
tmp = tmp0_elvis_lhs;
|
|
1143
|
+
}
|
|
1144
|
+
return new LanguageApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
function KtorHomeApi$_get_language_$ref_ln75mx() {
|
|
1148
|
+
return function (p0) {
|
|
1149
|
+
return p0.r6s();
|
|
1150
|
+
};
|
|
1151
|
+
}
|
|
1152
|
+
function KtorHomeApi$board$delegate$lambda(this$0) {
|
|
1153
|
+
return function () {
|
|
1154
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1155
|
+
var tmp;
|
|
1156
|
+
if (tmp0_elvis_lhs == null) {
|
|
1157
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1158
|
+
} else {
|
|
1159
|
+
tmp = tmp0_elvis_lhs;
|
|
1160
|
+
}
|
|
1161
|
+
return new BoardApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
function KtorHomeApi$_get_board_$ref_glu3c5() {
|
|
1165
|
+
return function (p0) {
|
|
1166
|
+
return p0.s6s();
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
function KtorHomeApi$invoice$delegate$lambda(this$0) {
|
|
1170
|
+
return function () {
|
|
1171
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1172
|
+
var tmp;
|
|
1173
|
+
if (tmp0_elvis_lhs == null) {
|
|
1174
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1175
|
+
} else {
|
|
1176
|
+
tmp = tmp0_elvis_lhs;
|
|
1177
|
+
}
|
|
1178
|
+
return new InvoiceApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1179
|
+
};
|
|
1180
|
+
}
|
|
1181
|
+
function KtorHomeApi$_get_invoice_$ref_l63j7m() {
|
|
1182
|
+
return function (p0) {
|
|
1183
|
+
return p0.t6s();
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
function KtorHomeApi$loan$delegate$lambda(this$0) {
|
|
1187
|
+
return function () {
|
|
1188
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1189
|
+
var tmp;
|
|
1190
|
+
if (tmp0_elvis_lhs == null) {
|
|
1191
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1192
|
+
} else {
|
|
1193
|
+
tmp = tmp0_elvis_lhs;
|
|
1194
|
+
}
|
|
1195
|
+
return new LoanApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
1198
|
+
function KtorHomeApi$_get_loan_$ref_7kx7mp() {
|
|
1199
|
+
return function (p0) {
|
|
1200
|
+
return p0.u6s();
|
|
1201
|
+
};
|
|
1202
|
+
}
|
|
1203
|
+
function KtorHomeApi$meeting$delegate$lambda(this$0) {
|
|
1204
|
+
return function () {
|
|
1205
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1206
|
+
var tmp;
|
|
1207
|
+
if (tmp0_elvis_lhs == null) {
|
|
1208
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1209
|
+
} else {
|
|
1210
|
+
tmp = tmp0_elvis_lhs;
|
|
1211
|
+
}
|
|
1212
|
+
return new MeetingApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
function KtorHomeApi$_get_meeting_$ref_w4n80g() {
|
|
1216
|
+
return function (p0) {
|
|
1217
|
+
return p0.v6s();
|
|
1218
|
+
};
|
|
1219
|
+
}
|
|
1220
|
+
function KtorHomeApi$task$delegate$lambda(this$0) {
|
|
1221
|
+
return function () {
|
|
1222
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1223
|
+
var tmp;
|
|
1224
|
+
if (tmp0_elvis_lhs == null) {
|
|
1225
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1226
|
+
} else {
|
|
1227
|
+
tmp = tmp0_elvis_lhs;
|
|
1228
|
+
}
|
|
1229
|
+
return new TaskApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1232
|
+
function KtorHomeApi$_get_task_$ref_wazi3a() {
|
|
1233
|
+
return function (p0) {
|
|
1234
|
+
return p0.w6s();
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
function KtorHomeApi$communication$delegate$lambda(this$0) {
|
|
1238
|
+
return function () {
|
|
1239
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1240
|
+
var tmp;
|
|
1241
|
+
if (tmp0_elvis_lhs == null) {
|
|
1242
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1243
|
+
} else {
|
|
1244
|
+
tmp = tmp0_elvis_lhs;
|
|
1245
|
+
}
|
|
1246
|
+
return new CommunicationApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
function KtorHomeApi$_get_communication_$ref_ei6eet() {
|
|
1250
|
+
return function (p0) {
|
|
1251
|
+
return p0.x6s();
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
function KtorHomeApi$parking$delegate$lambda(this$0) {
|
|
1255
|
+
return function () {
|
|
1256
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1257
|
+
var tmp;
|
|
1258
|
+
if (tmp0_elvis_lhs == null) {
|
|
1259
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1260
|
+
} else {
|
|
1261
|
+
tmp = tmp0_elvis_lhs;
|
|
1262
|
+
}
|
|
1263
|
+
return new ParkingApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1264
|
+
};
|
|
1265
|
+
}
|
|
1266
|
+
function KtorHomeApi$_get_parking_$ref_z876b1() {
|
|
1267
|
+
return function (p0) {
|
|
1268
|
+
return p0.y6s();
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
function KtorHomeApi$supplier$delegate$lambda(this$0) {
|
|
1272
|
+
return function () {
|
|
1273
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1274
|
+
var tmp;
|
|
1275
|
+
if (tmp0_elvis_lhs == null) {
|
|
1276
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1277
|
+
} else {
|
|
1278
|
+
tmp = tmp0_elvis_lhs;
|
|
1279
|
+
}
|
|
1280
|
+
return new SupplierApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1283
|
+
function KtorHomeApi$_get_supplier_$ref_jnkvcz() {
|
|
1284
|
+
return function (p0) {
|
|
1285
|
+
return p0.z6s();
|
|
1286
|
+
};
|
|
1287
|
+
}
|
|
1288
|
+
function KtorHomeApi$marketing$delegate$lambda(this$0) {
|
|
1289
|
+
return function () {
|
|
1290
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1291
|
+
var tmp;
|
|
1292
|
+
if (tmp0_elvis_lhs == null) {
|
|
1293
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1294
|
+
} else {
|
|
1295
|
+
tmp = tmp0_elvis_lhs;
|
|
1296
|
+
}
|
|
1297
|
+
return new MarketingApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
function KtorHomeApi$_get_marketing_$ref_un1l97() {
|
|
1301
|
+
return function (p0) {
|
|
1302
|
+
return p0.a6t();
|
|
1303
|
+
};
|
|
1304
|
+
}
|
|
1305
|
+
function KtorHomeApi$expense$delegate$lambda(this$0) {
|
|
1306
|
+
return function () {
|
|
1307
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1308
|
+
var tmp;
|
|
1309
|
+
if (tmp0_elvis_lhs == null) {
|
|
1310
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1311
|
+
} else {
|
|
1312
|
+
tmp = tmp0_elvis_lhs;
|
|
1313
|
+
}
|
|
1314
|
+
return new ExpenseApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1315
|
+
};
|
|
1316
|
+
}
|
|
1317
|
+
function KtorHomeApi$_get_expense_$ref_fbxbjn() {
|
|
1318
|
+
return function (p0) {
|
|
1319
|
+
return p0.b6t();
|
|
1320
|
+
};
|
|
1321
|
+
}
|
|
1322
|
+
function KtorHomeApi$issue$delegate$lambda(this$0) {
|
|
1323
|
+
return function () {
|
|
1324
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1325
|
+
var tmp;
|
|
1326
|
+
if (tmp0_elvis_lhs == null) {
|
|
1327
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1328
|
+
} else {
|
|
1329
|
+
tmp = tmp0_elvis_lhs;
|
|
1330
|
+
}
|
|
1331
|
+
return new IssueApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1332
|
+
};
|
|
1333
|
+
}
|
|
1334
|
+
function KtorHomeApi$_get_issue_$ref_bf6wya() {
|
|
1335
|
+
return function (p0) {
|
|
1336
|
+
return p0.c6t();
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
function KtorHomeApi$economy$delegate$lambda(this$0) {
|
|
1340
|
+
return function () {
|
|
1341
|
+
var tmp0_elvis_lhs = this$0.f6q_1;
|
|
1342
|
+
var tmp;
|
|
1343
|
+
if (tmp0_elvis_lhs == null) {
|
|
1344
|
+
throw IllegalStateException_init_$Create$('No Baseurl set!');
|
|
1345
|
+
} else {
|
|
1346
|
+
tmp = tmp0_elvis_lhs;
|
|
1347
|
+
}
|
|
1348
|
+
return new EconomyApi(tmp, this$0.z6p_1, this$0.clientConfigurator);
|
|
1349
|
+
};
|
|
1350
|
+
}
|
|
1351
|
+
function KtorHomeApi$_get_economy_$ref_vagzn7() {
|
|
1352
|
+
return function (p0) {
|
|
1353
|
+
return p0.d6t();
|
|
1354
|
+
};
|
|
1355
|
+
}
|
|
1356
|
+
function $refreshCOROUTINE$(_this__u8e3s4, oldTokens, resultContinuation) {
|
|
1357
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1358
|
+
this.m6t_1 = _this__u8e3s4;
|
|
1359
|
+
this.n6t_1 = oldTokens;
|
|
1360
|
+
}
|
|
1361
|
+
protoOf($refreshCOROUTINE$).q8 = function () {
|
|
1362
|
+
var suspendResult = this.k8_1;
|
|
1363
|
+
$sm: do
|
|
1364
|
+
try {
|
|
1365
|
+
var tmp = this.i8_1;
|
|
1366
|
+
switch (tmp) {
|
|
1367
|
+
case 0:
|
|
1368
|
+
this.j8_1 = 26;
|
|
1369
|
+
this.p6t_1 = this.m6t_1.e6q_1;
|
|
1370
|
+
this.o6t_1 = null;
|
|
1371
|
+
this.i8_1 = 1;
|
|
1372
|
+
suspendResult = this.p6t_1.d1b(this.o6t_1, this);
|
|
1373
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1374
|
+
return suspendResult;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
continue $sm;
|
|
1378
|
+
case 1:
|
|
1379
|
+
this.q6t_1 = Unit_instance;
|
|
1380
|
+
this.i8_1 = 2;
|
|
1381
|
+
continue $sm;
|
|
1382
|
+
case 2:
|
|
1383
|
+
this.j8_1 = 25;
|
|
1384
|
+
this.r6t_1 = Unit_instance;
|
|
1385
|
+
this.i8_1 = 3;
|
|
1386
|
+
continue $sm;
|
|
1387
|
+
case 3:
|
|
1388
|
+
if (this.m6t_1.a6s().equals(AuthMode_COOKIE_getInstance())) {
|
|
1389
|
+
var tmp0_elvis_lhs = this.m6t_1.d6u();
|
|
1390
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? this.m6t_1.a6q_1.e6u('userLogin') : tmp0_elvis_lhs;
|
|
1391
|
+
var id = tmp1_elvis_lhs == null ? 'unknown' : tmp1_elvis_lhs;
|
|
1392
|
+
var fingerprint = this.m6t_1.x6p_1.f6u(id);
|
|
1393
|
+
var this_0 = this.m6t_1;
|
|
1394
|
+
this.j8_1 = 18;
|
|
1395
|
+
this.u6t_1 = Companion_instance;
|
|
1396
|
+
this.w6t_1 = this_0;
|
|
1397
|
+
this.i8_1 = 14;
|
|
1398
|
+
var tmp_0 = this.w6t_1.l6s();
|
|
1399
|
+
var tmp0_elvis_lhs_0 = this.w6t_1.g6u();
|
|
1400
|
+
var tmp_1;
|
|
1401
|
+
if (tmp0_elvis_lhs_0 == null) {
|
|
1402
|
+
throw IllegalStateException_init_$Create$('No ClientId set!');
|
|
1403
|
+
} else {
|
|
1404
|
+
tmp_1 = tmp0_elvis_lhs_0;
|
|
1405
|
+
}
|
|
1406
|
+
suspendResult = tmp_0.s5g(new RefreshTokensCommand(tmp_1, VOID, fingerprint), this);
|
|
1407
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1408
|
+
return suspendResult;
|
|
1409
|
+
}
|
|
1410
|
+
continue $sm;
|
|
1411
|
+
} else {
|
|
1412
|
+
this.i8_1 = 4;
|
|
1413
|
+
continue $sm;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
case 4:
|
|
1417
|
+
var tmp_2 = this;
|
|
1418
|
+
var tmp2_elvis_lhs = this.n6t_1;
|
|
1419
|
+
var tmp_3;
|
|
1420
|
+
if (tmp2_elvis_lhs == null) {
|
|
1421
|
+
var tmp3_elvis_lhs = this.m6t_1.g6q_1;
|
|
1422
|
+
tmp_3 = new BearerTokens(tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs, this.m6t_1.h6q_1);
|
|
1423
|
+
} else {
|
|
1424
|
+
tmp_3 = tmp2_elvis_lhs;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
tmp_2.y6t_1 = tmp_3;
|
|
1428
|
+
var persisted = this.m6t_1.a6q_1.e6u('refreshToken');
|
|
1429
|
+
var current = this.m6t_1.h6q_1;
|
|
1430
|
+
var old = this.y6t_1.e5q_1;
|
|
1431
|
+
var tmp_4;
|
|
1432
|
+
var tmp_5;
|
|
1433
|
+
if (old == null || isBlank(old)) {
|
|
1434
|
+
tmp_5 = true;
|
|
1435
|
+
} else {
|
|
1436
|
+
tmp_5 = !(old == persisted);
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
if (tmp_5) {
|
|
1440
|
+
tmp_4 = true;
|
|
1441
|
+
} else {
|
|
1442
|
+
tmp_4 = !(old == current);
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
if (tmp_4) {
|
|
1446
|
+
var tmp_6 = this;
|
|
1447
|
+
var tmp0_elvis_lhs_1 = this.m6t_1.g6q_1;
|
|
1448
|
+
var tmp_7 = tmp0_elvis_lhs_1 == null ? '' : tmp0_elvis_lhs_1;
|
|
1449
|
+
tmp_6.r6t_1 = new BearerTokens(tmp_7, current == null ? '' : current);
|
|
1450
|
+
this.i8_1 = 23;
|
|
1451
|
+
continue $sm;
|
|
1452
|
+
} else {
|
|
1453
|
+
this.i8_1 = 5;
|
|
1454
|
+
continue $sm;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
case 5:
|
|
1458
|
+
if (!(this.m6t_1.h6q_1 == this.y6t_1.e5q_1)) {
|
|
1459
|
+
var tmp_8 = this;
|
|
1460
|
+
var tmp4_elvis_lhs = this.m6t_1.g6q_1;
|
|
1461
|
+
var tmp_9 = tmp4_elvis_lhs == null ? '' : tmp4_elvis_lhs;
|
|
1462
|
+
var tmp5_elvis_lhs = this.m6t_1.h6q_1;
|
|
1463
|
+
tmp_8.r6t_1 = new BearerTokens(tmp_9, tmp5_elvis_lhs == null ? '' : tmp5_elvis_lhs);
|
|
1464
|
+
this.i8_1 = 23;
|
|
1465
|
+
continue $sm;
|
|
1466
|
+
} else {
|
|
1467
|
+
this.i8_1 = 6;
|
|
1468
|
+
continue $sm;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
case 6:
|
|
1472
|
+
var this_1 = this.y6t_1.e5q_1;
|
|
1473
|
+
if (this_1 == null || isBlank(this_1)) {
|
|
1474
|
+
var tmp_10 = this;
|
|
1475
|
+
tmp_10.x6t_1 = null;
|
|
1476
|
+
this.i8_1 = 13;
|
|
1477
|
+
continue $sm;
|
|
1478
|
+
} else {
|
|
1479
|
+
var this_2 = this.m6t_1.d6u();
|
|
1480
|
+
if (this_2 == null || isBlank(this_2)) {
|
|
1481
|
+
var tmp_11 = this;
|
|
1482
|
+
tmp_11.x6t_1 = null;
|
|
1483
|
+
this.i8_1 = 13;
|
|
1484
|
+
continue $sm;
|
|
1485
|
+
} else {
|
|
1486
|
+
var this_3 = this.m6t_1.g6u();
|
|
1487
|
+
if (this_3 == null || isBlank(this_3)) {
|
|
1488
|
+
var tmp_12 = this;
|
|
1489
|
+
tmp_12.x6t_1 = null;
|
|
1490
|
+
this.i8_1 = 13;
|
|
1491
|
+
continue $sm;
|
|
1492
|
+
} else {
|
|
1493
|
+
var this_4 = this.m6t_1;
|
|
1494
|
+
this.j8_1 = 11;
|
|
1495
|
+
this.a6u_1 = Companion_instance;
|
|
1496
|
+
this.c6u_1 = this_4;
|
|
1497
|
+
var deviceKey = this.c6u_1.y6p_1.h6u(ensureNotNull(this.c6u_1.d6u()));
|
|
1498
|
+
var this_5 = logging();
|
|
1499
|
+
if (KmLogging_getInstance().n5k_1) {
|
|
1500
|
+
this_5.s5k(this_5.r5k_1, toString('Device key for refresh: ' + deviceKey));
|
|
1501
|
+
}
|
|
1502
|
+
this.i8_1 = 7;
|
|
1503
|
+
var tmp_13 = this.c6u_1.l6s();
|
|
1504
|
+
var tmp1_clientId = ensureNotNull(this.c6u_1.g6u());
|
|
1505
|
+
var tmp2_fingerprint = this.c6u_1.x6p_1.f6u(ensureNotNull(this.c6u_1.d6u()));
|
|
1506
|
+
var tmp0_elvis_lhs_2 = this.c6u_1.h6q_1;
|
|
1507
|
+
var tmp3_refreshToken = tmp0_elvis_lhs_2 == null ? ensureNotNull(this.y6t_1.e5q_1) : tmp0_elvis_lhs_2;
|
|
1508
|
+
var tmp4_userId = ensureNotNull(this.c6u_1.d6u());
|
|
1509
|
+
var tmp5_deviceKey = this.c6u_1.y6p_1.h6u(ensureNotNull(this.c6u_1.d6u()));
|
|
1510
|
+
suspendResult = tmp_13.s5g(new RefreshTokensCommand(tmp1_clientId, tmp5_deviceKey, tmp2_fingerprint, tmp3_refreshToken, tmp4_userId), this);
|
|
1511
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1512
|
+
return suspendResult;
|
|
1513
|
+
}
|
|
1514
|
+
continue $sm;
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
case 7:
|
|
1520
|
+
var response = suspendResult;
|
|
1521
|
+
var tmp6_subject = response.w5h_1;
|
|
1522
|
+
if (tmp6_subject === Companion_getInstance().k2y_1.i30_1) {
|
|
1523
|
+
this.i8_1 = 9;
|
|
1524
|
+
suspendResult = response.z5h(this);
|
|
1525
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1526
|
+
return suspendResult;
|
|
1527
|
+
}
|
|
1528
|
+
continue $sm;
|
|
1529
|
+
} else {
|
|
1530
|
+
if (tmp6_subject === Companion_getInstance().a2z_1.i30_1) {
|
|
1531
|
+
this.c6u_1.a6q_1.l2k('activeLogin');
|
|
1532
|
+
this.i8_1 = 8;
|
|
1533
|
+
suspendResult = this.c6u_1.c6q_1(this);
|
|
1534
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1535
|
+
return suspendResult;
|
|
1536
|
+
}
|
|
1537
|
+
continue $sm;
|
|
1538
|
+
} else {
|
|
1539
|
+
var tmp_14 = this;
|
|
1540
|
+
throw new UnknownRefreshErrorException('Refresh failed with status ' + response.w5h_1);
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
case 8:
|
|
1545
|
+
this.r6t_1 = null;
|
|
1546
|
+
this.i8_1 = 23;
|
|
1547
|
+
var tmp_15 = this;
|
|
1548
|
+
continue $sm;
|
|
1549
|
+
case 9:
|
|
1550
|
+
this.b6u_1 = suspendResult;
|
|
1551
|
+
this.i8_1 = 10;
|
|
1552
|
+
continue $sm;
|
|
1553
|
+
case 10:
|
|
1554
|
+
var tmp2 = this.b6u_1;
|
|
1555
|
+
var tmp_16 = this;
|
|
1556
|
+
this.a6u_1;
|
|
1557
|
+
tmp_16.z6t_1 = _Result___init__impl__xyqfz8(tmp2);
|
|
1558
|
+
this.j8_1 = 25;
|
|
1559
|
+
this.i8_1 = 12;
|
|
1560
|
+
continue $sm;
|
|
1561
|
+
case 11:
|
|
1562
|
+
this.j8_1 = 25;
|
|
1563
|
+
var tmp_17 = this.l8_1;
|
|
1564
|
+
if (tmp_17 instanceof Error) {
|
|
1565
|
+
var e = this.l8_1;
|
|
1566
|
+
var tmp_18 = this;
|
|
1567
|
+
tmp_18.z6t_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
1568
|
+
this.i8_1 = 12;
|
|
1569
|
+
continue $sm;
|
|
1570
|
+
} else {
|
|
1571
|
+
throw this.l8_1;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
case 12:
|
|
1575
|
+
this.j8_1 = 25;
|
|
1576
|
+
var this_6 = this.z6t_1;
|
|
1577
|
+
var tmp_19;
|
|
1578
|
+
if (_Result___get_isSuccess__impl__sndoy8(this_6)) {
|
|
1579
|
+
var this_7 = new Result(this_6);
|
|
1580
|
+
var tmp_20;
|
|
1581
|
+
try {
|
|
1582
|
+
var $this$runCatching = this_7.lm_1;
|
|
1583
|
+
var tmp_21 = _Result___get_value__impl__bjfvqg($this$runCatching);
|
|
1584
|
+
var authResult = (tmp_21 == null ? true : !(tmp_21 == null)) ? tmp_21 : THROW_CCE();
|
|
1585
|
+
var tmp0_elvis_lhs_3 = authResult.n5j_1;
|
|
1586
|
+
var tmp_22;
|
|
1587
|
+
if (tmp0_elvis_lhs_3 == null) {
|
|
1588
|
+
throw Exception_init_$Create$('Refresh succeeded but tokens were missing');
|
|
1589
|
+
} else {
|
|
1590
|
+
tmp_22 = tmp0_elvis_lhs_3;
|
|
1591
|
+
}
|
|
1592
|
+
var tokens = tmp_22;
|
|
1593
|
+
var builder = new JsonObjectBuilder();
|
|
1594
|
+
builder.x6a('accessToken', JsonPrimitive(tokens.q5j_1));
|
|
1595
|
+
builder.x6a('identity', JsonPrimitive(tokens.v5j_1));
|
|
1596
|
+
builder.x6a('data', JsonPrimitive(tokens.s5j_1));
|
|
1597
|
+
var jsonObject = builder.s69();
|
|
1598
|
+
var this_8 = Default_getInstance();
|
|
1599
|
+
var this_9 = this_8.z1v();
|
|
1600
|
+
var this_10 = serializer(this_9, createKType(getKClass(JsonObject), arrayOf([]), false));
|
|
1601
|
+
var jsonString = this_8.o1w(isInterface(this_10, KSerializer) ? this_10 : THROW_CCE(), jsonObject);
|
|
1602
|
+
var encoded = Default_getInstance_0().xh_1.bi(toByteArray(jsonString));
|
|
1603
|
+
this.m6t_1.i6u(encoded);
|
|
1604
|
+
var tmp1_elvis_lhs_0 = authResult.k5j_1;
|
|
1605
|
+
var tmp_23;
|
|
1606
|
+
if (tmp1_elvis_lhs_0 == null) {
|
|
1607
|
+
var tmp2_safe_receiver = authResult.n5j_1;
|
|
1608
|
+
tmp_23 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.w5j_1;
|
|
1609
|
+
} else {
|
|
1610
|
+
tmp_23 = tmp1_elvis_lhs_0;
|
|
1611
|
+
}
|
|
1612
|
+
var tmp3_safe_receiver = tmp_23;
|
|
1613
|
+
if (tmp3_safe_receiver == null)
|
|
1614
|
+
null;
|
|
1615
|
+
else {
|
|
1616
|
+
this.m6t_1.j6u(tmp3_safe_receiver);
|
|
1617
|
+
}
|
|
1618
|
+
this.m6t_1.k6u(tokens.v5j_1);
|
|
1619
|
+
var tmp4_elvis_lhs_0 = authResult.k5j_1;
|
|
1620
|
+
var tmp_24;
|
|
1621
|
+
if (tmp4_elvis_lhs_0 == null) {
|
|
1622
|
+
var tmp5_safe_receiver = authResult.n5j_1;
|
|
1623
|
+
tmp_24 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.w5j_1;
|
|
1624
|
+
} else {
|
|
1625
|
+
tmp_24 = tmp4_elvis_lhs_0;
|
|
1626
|
+
}
|
|
1627
|
+
var tmp6_elvis_lhs = tmp_24;
|
|
1628
|
+
var value = new BearerTokens(encoded, tmp6_elvis_lhs == null ? this.y6t_1.e5q_1 : tmp6_elvis_lhs);
|
|
1629
|
+
tmp_20 = _Result___init__impl__xyqfz8(value);
|
|
1630
|
+
} catch ($p) {
|
|
1631
|
+
var tmp_25;
|
|
1632
|
+
if ($p instanceof Error) {
|
|
1633
|
+
var e_0 = $p;
|
|
1634
|
+
tmp_25 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
1635
|
+
} else {
|
|
1636
|
+
throw $p;
|
|
1637
|
+
}
|
|
1638
|
+
tmp_20 = tmp_25;
|
|
1639
|
+
}
|
|
1640
|
+
tmp_19 = tmp_20;
|
|
1641
|
+
} else {
|
|
1642
|
+
tmp_19 = _Result___init__impl__xyqfz8(_Result___get_value__impl__bjfvqg(this_6));
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
var this_11 = tmp_19;
|
|
1646
|
+
var tmp0_safe_receiver = Result__exceptionOrNull_impl_p6xea9(this_11);
|
|
1647
|
+
if (tmp0_safe_receiver == null)
|
|
1648
|
+
null;
|
|
1649
|
+
else {
|
|
1650
|
+
if (tmp0_safe_receiver instanceof CancellationException)
|
|
1651
|
+
throw tmp0_safe_receiver;
|
|
1652
|
+
var this_12 = logging();
|
|
1653
|
+
if (KmLogging_getInstance().n5k_1) {
|
|
1654
|
+
this_12.s5k(this_12.r5k_1, toString('Refresh successfully failed!'));
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
var tmp_26 = this;
|
|
1659
|
+
throwOnFailure(this_11);
|
|
1660
|
+
var tmp_27 = _Result___get_value__impl__bjfvqg(this_11);
|
|
1661
|
+
tmp_26.x6t_1 = (tmp_27 == null ? true : !(tmp_27 == null)) ? tmp_27 : THROW_CCE();
|
|
1662
|
+
this.i8_1 = 13;
|
|
1663
|
+
continue $sm;
|
|
1664
|
+
case 13:
|
|
1665
|
+
this.r6t_1 = this.x6t_1;
|
|
1666
|
+
if (false) {
|
|
1667
|
+
this.i8_1 = 3;
|
|
1668
|
+
continue $sm;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
this.i8_1 = 23;
|
|
1672
|
+
continue $sm;
|
|
1673
|
+
case 14:
|
|
1674
|
+
var response_0 = suspendResult;
|
|
1675
|
+
if (response_0.w5h_1 === Companion_getInstance().a2z_1.i30_1) {
|
|
1676
|
+
this.w6t_1.a6q_1.l2k('activeLogin');
|
|
1677
|
+
this.w6t_1.a6q_1.l2k('userLogin');
|
|
1678
|
+
this.i8_1 = 16;
|
|
1679
|
+
suspendResult = this.w6t_1.c6q_1(this);
|
|
1680
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1681
|
+
return suspendResult;
|
|
1682
|
+
}
|
|
1683
|
+
continue $sm;
|
|
1684
|
+
} else {
|
|
1685
|
+
this.i8_1 = 15;
|
|
1686
|
+
suspendResult = response_0.z5h(this);
|
|
1687
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1688
|
+
return suspendResult;
|
|
1689
|
+
}
|
|
1690
|
+
continue $sm;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
case 15:
|
|
1694
|
+
var authResult_0 = suspendResult;
|
|
1695
|
+
this.w6t_1.k6u(authResult_0.f5j_1);
|
|
1696
|
+
this.v6t_1 = null;
|
|
1697
|
+
this.i8_1 = 17;
|
|
1698
|
+
continue $sm;
|
|
1699
|
+
case 16:
|
|
1700
|
+
this.v6t_1 = null;
|
|
1701
|
+
this.i8_1 = 17;
|
|
1702
|
+
continue $sm;
|
|
1703
|
+
case 17:
|
|
1704
|
+
var tmp2_0 = this.v6t_1;
|
|
1705
|
+
var tmp_28 = this;
|
|
1706
|
+
this.u6t_1;
|
|
1707
|
+
tmp_28.t6t_1 = _Result___init__impl__xyqfz8(tmp2_0);
|
|
1708
|
+
this.j8_1 = 25;
|
|
1709
|
+
this.i8_1 = 19;
|
|
1710
|
+
continue $sm;
|
|
1711
|
+
case 18:
|
|
1712
|
+
this.j8_1 = 25;
|
|
1713
|
+
var tmp_29 = this.l8_1;
|
|
1714
|
+
if (tmp_29 instanceof Error) {
|
|
1715
|
+
var e_1 = this.l8_1;
|
|
1716
|
+
var tmp_30 = this;
|
|
1717
|
+
tmp_30.t6t_1 = _Result___init__impl__xyqfz8(createFailure(e_1));
|
|
1718
|
+
this.i8_1 = 19;
|
|
1719
|
+
continue $sm;
|
|
1720
|
+
} else {
|
|
1721
|
+
throw this.l8_1;
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
case 19:
|
|
1725
|
+
this.j8_1 = 25;
|
|
1726
|
+
var this_13 = this.t6t_1;
|
|
1727
|
+
var exception = Result__exceptionOrNull_impl_p6xea9(this_13);
|
|
1728
|
+
if (exception == null) {
|
|
1729
|
+
var tmp_31 = this;
|
|
1730
|
+
var tmp_32 = _Result___get_value__impl__bjfvqg(this_13);
|
|
1731
|
+
tmp_31.s6t_1 = (tmp_32 == null ? true : !(tmp_32 == null)) ? tmp_32 : THROW_CCE();
|
|
1732
|
+
this.i8_1 = 22;
|
|
1733
|
+
continue $sm;
|
|
1734
|
+
} else {
|
|
1735
|
+
var tmp_33;
|
|
1736
|
+
if (exception instanceof Exception) {
|
|
1737
|
+
var tmp0_safe_receiver_0 = exception.message;
|
|
1738
|
+
tmp_33 = (tmp0_safe_receiver_0 == null ? null : contains(tmp0_safe_receiver_0, '401')) === true;
|
|
1739
|
+
} else {
|
|
1740
|
+
tmp_33 = false;
|
|
1741
|
+
}
|
|
1742
|
+
if (tmp_33) {
|
|
1743
|
+
this.m6t_1.a6q_1.l2k('activeLogin');
|
|
1744
|
+
this.m6t_1.a6q_1.l2k('userLogin');
|
|
1745
|
+
this.i8_1 = 20;
|
|
1746
|
+
suspendResult = this.m6t_1.c6q_1(this);
|
|
1747
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1748
|
+
return suspendResult;
|
|
1749
|
+
}
|
|
1750
|
+
continue $sm;
|
|
1751
|
+
} else {
|
|
1752
|
+
this.i8_1 = 21;
|
|
1753
|
+
continue $sm;
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
case 20:
|
|
1758
|
+
this.i8_1 = 21;
|
|
1759
|
+
continue $sm;
|
|
1760
|
+
case 21:
|
|
1761
|
+
this.s6t_1 = null;
|
|
1762
|
+
this.i8_1 = 22;
|
|
1763
|
+
continue $sm;
|
|
1764
|
+
case 22:
|
|
1765
|
+
this.r6t_1 = this.s6t_1;
|
|
1766
|
+
this.i8_1 = 23;
|
|
1767
|
+
continue $sm;
|
|
1768
|
+
case 23:
|
|
1769
|
+
this.q6t_1 = this.r6t_1;
|
|
1770
|
+
this.j8_1 = 26;
|
|
1771
|
+
this.i8_1 = 24;
|
|
1772
|
+
continue $sm;
|
|
1773
|
+
case 24:
|
|
1774
|
+
var tmp_34 = this.q6t_1;
|
|
1775
|
+
this.j8_1 = 26;
|
|
1776
|
+
this.p6t_1.e1b(this.o6t_1);
|
|
1777
|
+
return tmp_34;
|
|
1778
|
+
case 25:
|
|
1779
|
+
this.j8_1 = 26;
|
|
1780
|
+
var t = this.l8_1;
|
|
1781
|
+
this.p6t_1.e1b(this.o6t_1);
|
|
1782
|
+
throw t;
|
|
1783
|
+
case 26:
|
|
1784
|
+
throw this.l8_1;
|
|
1785
|
+
}
|
|
1786
|
+
} catch ($p) {
|
|
1787
|
+
var e_2 = $p;
|
|
1788
|
+
if (this.j8_1 === 26) {
|
|
1789
|
+
throw e_2;
|
|
1790
|
+
} else {
|
|
1791
|
+
this.i8_1 = this.j8_1;
|
|
1792
|
+
this.l8_1 = e_2;
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
while (true);
|
|
1796
|
+
};
|
|
1797
|
+
function $revokeCOROUTINE$(_this__u8e3s4, deviceKey, deviceKeyGroup, resultContinuation) {
|
|
1798
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1799
|
+
this.t6u_1 = _this__u8e3s4;
|
|
1800
|
+
this.u6u_1 = deviceKey;
|
|
1801
|
+
this.v6u_1 = deviceKeyGroup;
|
|
1802
|
+
}
|
|
1803
|
+
protoOf($revokeCOROUTINE$).q8 = function () {
|
|
1804
|
+
var suspendResult = this.k8_1;
|
|
1805
|
+
$sm: do
|
|
1806
|
+
try {
|
|
1807
|
+
var tmp = this.i8_1;
|
|
1808
|
+
switch (tmp) {
|
|
1809
|
+
case 0:
|
|
1810
|
+
this.j8_1 = 3;
|
|
1811
|
+
var tmp0_safe_receiver = this.t6u_1.h6q_1;
|
|
1812
|
+
if (tmp0_safe_receiver == null) {
|
|
1813
|
+
this.w6u_1 = null;
|
|
1814
|
+
this.i8_1 = 2;
|
|
1815
|
+
continue $sm;
|
|
1816
|
+
} else {
|
|
1817
|
+
var tmp0_$this = this.t6u_1.l6s();
|
|
1818
|
+
var tmp1_clientId = ensureNotNull(this.t6u_1.g6u());
|
|
1819
|
+
var tmp2_userId = this.t6u_1.d6u();
|
|
1820
|
+
this.i8_1 = 1;
|
|
1821
|
+
suspendResult = tmp0_$this.t5g(tmp1_clientId, this.u6u_1, this.v6u_1, tmp2_userId, tmp0_safe_receiver, this);
|
|
1822
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1823
|
+
return suspendResult;
|
|
1824
|
+
}
|
|
1825
|
+
continue $sm;
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
case 1:
|
|
1829
|
+
var result = suspendResult;
|
|
1830
|
+
this.w6u_1 = result.x5h_1;
|
|
1831
|
+
this.i8_1 = 2;
|
|
1832
|
+
continue $sm;
|
|
1833
|
+
case 2:
|
|
1834
|
+
var tmp1_elvis_lhs = this.w6u_1;
|
|
1835
|
+
return tmp1_elvis_lhs == null ? true : tmp1_elvis_lhs;
|
|
1836
|
+
case 3:
|
|
1837
|
+
throw this.l8_1;
|
|
1838
|
+
}
|
|
1839
|
+
} catch ($p) {
|
|
1840
|
+
var e = $p;
|
|
1841
|
+
if (this.j8_1 === 3) {
|
|
1842
|
+
throw e;
|
|
1843
|
+
} else {
|
|
1844
|
+
this.i8_1 = this.j8_1;
|
|
1845
|
+
this.l8_1 = e;
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
while (true);
|
|
1849
|
+
};
|
|
1850
|
+
function KtorHomeApi(fingerprinter, device, httpClientEngine, settings, configurator, refreshFailure) {
|
|
1851
|
+
httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
|
|
1852
|
+
var tmp;
|
|
1853
|
+
if (configurator === VOID) {
|
|
1854
|
+
tmp = KtorHomeApi$_init_$lambda_qcejss;
|
|
1855
|
+
} else {
|
|
1856
|
+
tmp = configurator;
|
|
1857
|
+
}
|
|
1858
|
+
configurator = tmp;
|
|
1859
|
+
var tmp_0;
|
|
1860
|
+
if (refreshFailure === VOID) {
|
|
1861
|
+
tmp_0 = KtorHomeApi$_init_$slambda_1egs9p_0(null);
|
|
1862
|
+
} else {
|
|
1863
|
+
tmp_0 = refreshFailure;
|
|
1864
|
+
}
|
|
1865
|
+
refreshFailure = tmp_0;
|
|
1866
|
+
this.x6p_1 = fingerprinter;
|
|
1867
|
+
this.y6p_1 = device;
|
|
1868
|
+
this.z6p_1 = httpClientEngine;
|
|
1869
|
+
this.a6q_1 = settings;
|
|
1870
|
+
this.b6q_1 = configurator;
|
|
1871
|
+
this.c6q_1 = refreshFailure;
|
|
1872
|
+
this.d6q_1 = (new Platform()).y6u_1;
|
|
1873
|
+
this.e6q_1 = Mutex();
|
|
1874
|
+
this.f6q_1 = null;
|
|
1875
|
+
this.g6q_1 = null;
|
|
1876
|
+
this.h6q_1 = null;
|
|
1877
|
+
this.i6q_1 = null;
|
|
1878
|
+
this.j6q_1 = null;
|
|
1879
|
+
this.k6q_1 = 'nb-NO';
|
|
1880
|
+
this.g6q_1 = this.a6q_1.e6u('bearerToken');
|
|
1881
|
+
this.h6q_1 = this.a6q_1.e6u('refreshToken');
|
|
1882
|
+
this.k6u(this.a6q_1.e6u('userId'));
|
|
1883
|
+
var tmp0_elvis_lhs = this.a6q_1.e6u('userLanguage');
|
|
1884
|
+
this.z6u(tmp0_elvis_lhs == null ? 'nb-NO' : tmp0_elvis_lhs);
|
|
1885
|
+
var tmp_1 = this;
|
|
1886
|
+
tmp_1.clientConfigurator = KtorHomeApi$clientConfigurator$lambda(this);
|
|
1887
|
+
var tmp_2 = this;
|
|
1888
|
+
tmp_2.l6q_1 = lazy(KtorHomeApi$users$delegate$lambda(this));
|
|
1889
|
+
var tmp_3 = this;
|
|
1890
|
+
tmp_3.m6q_1 = lazy(KtorHomeApi$documents$delegate$lambda(this));
|
|
1891
|
+
var tmp_4 = this;
|
|
1892
|
+
tmp_4.n6q_1 = lazy(KtorHomeApi$conversations$delegate$lambda(this));
|
|
1893
|
+
var tmp_5 = this;
|
|
1894
|
+
tmp_5.o6q_1 = lazy(KtorHomeApi$companies$delegate$lambda(this));
|
|
1895
|
+
var tmp_6 = this;
|
|
1896
|
+
tmp_6.p6q_1 = lazy(KtorHomeApi$sections$delegate$lambda(this));
|
|
1897
|
+
var tmp_7 = this;
|
|
1898
|
+
tmp_7.q6q_1 = lazy(KtorHomeApi$homepage$delegate$lambda(this));
|
|
1899
|
+
var tmp_8 = this;
|
|
1900
|
+
tmp_8.r6q_1 = lazy(KtorHomeApi$invoicing$delegate$lambda(this));
|
|
1901
|
+
var tmp_9 = this;
|
|
1902
|
+
tmp_9.s6q_1 = lazy(KtorHomeApi$thirdParty$delegate$lambda(this));
|
|
1903
|
+
var tmp_10 = this;
|
|
1904
|
+
tmp_10.t6q_1 = lazy(KtorHomeApi$residents$delegate$lambda(this));
|
|
1905
|
+
var tmp_11 = this;
|
|
1906
|
+
tmp_11.u6q_1 = lazy(KtorHomeApi$person$delegate$lambda(this));
|
|
1907
|
+
var tmp_12 = this;
|
|
1908
|
+
tmp_12.v6q_1 = lazy(KtorHomeApi$auth$delegate$lambda(this));
|
|
1909
|
+
var tmp_13 = this;
|
|
1910
|
+
tmp_13.w6q_1 = lazy(KtorHomeApi$organization$delegate$lambda(this));
|
|
1911
|
+
var tmp_14 = this;
|
|
1912
|
+
tmp_14.x6q_1 = lazy(KtorHomeApi$insurance$delegate$lambda(this));
|
|
1913
|
+
var tmp_15 = this;
|
|
1914
|
+
tmp_15.y6q_1 = lazy(KtorHomeApi$hms$delegate$lambda(this));
|
|
1915
|
+
var tmp_16 = this;
|
|
1916
|
+
tmp_16.z6q_1 = lazy(KtorHomeApi$routines$delegate$lambda(this));
|
|
1917
|
+
var tmp_17 = this;
|
|
1918
|
+
tmp_17.a6r_1 = lazy(KtorHomeApi$storage$delegate$lambda(this));
|
|
1919
|
+
var tmp_18 = this;
|
|
1920
|
+
tmp_18.b6r_1 = lazy(KtorHomeApi$language$delegate$lambda(this));
|
|
1921
|
+
var tmp_19 = this;
|
|
1922
|
+
tmp_19.c6r_1 = lazy(KtorHomeApi$board$delegate$lambda(this));
|
|
1923
|
+
var tmp_20 = this;
|
|
1924
|
+
tmp_20.d6r_1 = lazy(KtorHomeApi$invoice$delegate$lambda(this));
|
|
1925
|
+
var tmp_21 = this;
|
|
1926
|
+
tmp_21.e6r_1 = lazy(KtorHomeApi$loan$delegate$lambda(this));
|
|
1927
|
+
var tmp_22 = this;
|
|
1928
|
+
tmp_22.f6r_1 = lazy(KtorHomeApi$meeting$delegate$lambda(this));
|
|
1929
|
+
var tmp_23 = this;
|
|
1930
|
+
tmp_23.g6r_1 = lazy(KtorHomeApi$task$delegate$lambda(this));
|
|
1931
|
+
var tmp_24 = this;
|
|
1932
|
+
tmp_24.h6r_1 = lazy(KtorHomeApi$communication$delegate$lambda(this));
|
|
1933
|
+
var tmp_25 = this;
|
|
1934
|
+
tmp_25.i6r_1 = lazy(KtorHomeApi$parking$delegate$lambda(this));
|
|
1935
|
+
var tmp_26 = this;
|
|
1936
|
+
tmp_26.j6r_1 = lazy(KtorHomeApi$supplier$delegate$lambda(this));
|
|
1937
|
+
var tmp_27 = this;
|
|
1938
|
+
tmp_27.k6r_1 = lazy(KtorHomeApi$marketing$delegate$lambda(this));
|
|
1939
|
+
var tmp_28 = this;
|
|
1940
|
+
tmp_28.l6r_1 = lazy(KtorHomeApi$expense$delegate$lambda(this));
|
|
1941
|
+
var tmp_29 = this;
|
|
1942
|
+
tmp_29.m6r_1 = lazy(KtorHomeApi$issue$delegate$lambda(this));
|
|
1943
|
+
var tmp_30 = this;
|
|
1944
|
+
tmp_30.n6r_1 = lazy(KtorHomeApi$economy$delegate$lambda(this));
|
|
1945
|
+
}
|
|
1946
|
+
protoOf(KtorHomeApi).a6s = function () {
|
|
1947
|
+
return this.d6q_1;
|
|
1948
|
+
};
|
|
1949
|
+
protoOf(KtorHomeApi).a6v = function (_set____db54di) {
|
|
1950
|
+
this.i6q_1 = _set____db54di;
|
|
1951
|
+
};
|
|
1952
|
+
protoOf(KtorHomeApi).g6u = function () {
|
|
1953
|
+
return this.i6q_1;
|
|
1954
|
+
};
|
|
1955
|
+
protoOf(KtorHomeApi).k6u = function (value) {
|
|
1956
|
+
this.j6q_1 = value;
|
|
1957
|
+
// Inline function 'com.russhwolf.settings.set' call
|
|
1958
|
+
var this_0 = this.a6q_1;
|
|
1959
|
+
var tmp;
|
|
1960
|
+
if (value == null) {
|
|
1961
|
+
// Inline function 'com.russhwolf.settings.minusAssign' call
|
|
1962
|
+
this_0.l2k('userId');
|
|
1963
|
+
tmp = Unit_instance;
|
|
1964
|
+
} else {
|
|
1965
|
+
var tmp0_subject = PrimitiveClasses_getInstance().jb();
|
|
1966
|
+
var tmp_0;
|
|
1967
|
+
if (tmp0_subject.equals(PrimitiveClasses_getInstance().eb())) {
|
|
1968
|
+
this_0.g6v('userId', (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
1969
|
+
tmp_0 = Unit_instance;
|
|
1970
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().fb())) {
|
|
1971
|
+
this_0.f6v('userId', (!(value == null) ? typeof value === 'bigint' : false) ? value : THROW_CCE());
|
|
1972
|
+
tmp_0 = Unit_instance;
|
|
1973
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().jb())) {
|
|
1974
|
+
this_0.e6v('userId', (!(value == null) ? typeof value === 'string' : false) ? value : THROW_CCE());
|
|
1975
|
+
tmp_0 = Unit_instance;
|
|
1976
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().gb())) {
|
|
1977
|
+
this_0.d6v('userId', (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
1978
|
+
tmp_0 = Unit_instance;
|
|
1979
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().hb())) {
|
|
1980
|
+
this_0.c6v('userId', (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
1981
|
+
tmp_0 = Unit_instance;
|
|
1982
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().bb())) {
|
|
1983
|
+
this_0.b6v('userId', (!(value == null) ? typeof value === 'boolean' : false) ? value : THROW_CCE());
|
|
1984
|
+
tmp_0 = Unit_instance;
|
|
1985
|
+
} else {
|
|
1986
|
+
throw IllegalArgumentException_init_$Create$('Invalid type!');
|
|
1987
|
+
}
|
|
1988
|
+
tmp = tmp_0;
|
|
1989
|
+
}
|
|
1990
|
+
};
|
|
1991
|
+
protoOf(KtorHomeApi).d6u = function () {
|
|
1992
|
+
return this.j6q_1;
|
|
1993
|
+
};
|
|
1994
|
+
protoOf(KtorHomeApi).z6u = function (value) {
|
|
1995
|
+
this.k6q_1 = value;
|
|
1996
|
+
var tmp0 = this.a6q_1;
|
|
1997
|
+
// Inline function 'com.russhwolf.settings.set' call
|
|
1998
|
+
var key = 'userLanguage';
|
|
1999
|
+
tmp0.e6v(key, value);
|
|
2000
|
+
};
|
|
2001
|
+
protoOf(KtorHomeApi).z6r = function () {
|
|
2002
|
+
return this.k6q_1;
|
|
2003
|
+
};
|
|
2004
|
+
protoOf(KtorHomeApi).h6v = function () {
|
|
2005
|
+
return this.clientConfigurator;
|
|
2006
|
+
};
|
|
2007
|
+
protoOf(KtorHomeApi).i6v = function (url) {
|
|
2008
|
+
this.f6q_1 = url;
|
|
2009
|
+
};
|
|
2010
|
+
protoOf(KtorHomeApi).i6u = function (bearer) {
|
|
2011
|
+
this.g6q_1 = bearer;
|
|
2012
|
+
var tmp0 = this.a6q_1;
|
|
2013
|
+
var tmp2 = 'bearerToken';
|
|
2014
|
+
// Inline function 'com.russhwolf.settings.set' call
|
|
2015
|
+
var value = this.g6q_1;
|
|
2016
|
+
var tmp;
|
|
2017
|
+
if (value == null) {
|
|
2018
|
+
// Inline function 'com.russhwolf.settings.minusAssign' call
|
|
2019
|
+
tmp0.l2k(tmp2);
|
|
2020
|
+
tmp = Unit_instance;
|
|
2021
|
+
} else {
|
|
2022
|
+
var tmp0_subject = PrimitiveClasses_getInstance().jb();
|
|
2023
|
+
var tmp_0;
|
|
2024
|
+
if (tmp0_subject.equals(PrimitiveClasses_getInstance().eb())) {
|
|
2025
|
+
tmp0.g6v(tmp2, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
2026
|
+
tmp_0 = Unit_instance;
|
|
2027
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().fb())) {
|
|
2028
|
+
tmp0.f6v(tmp2, (!(value == null) ? typeof value === 'bigint' : false) ? value : THROW_CCE());
|
|
2029
|
+
tmp_0 = Unit_instance;
|
|
2030
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().jb())) {
|
|
2031
|
+
tmp0.e6v(tmp2, (!(value == null) ? typeof value === 'string' : false) ? value : THROW_CCE());
|
|
2032
|
+
tmp_0 = Unit_instance;
|
|
2033
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().gb())) {
|
|
2034
|
+
tmp0.d6v(tmp2, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
2035
|
+
tmp_0 = Unit_instance;
|
|
2036
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().hb())) {
|
|
2037
|
+
tmp0.c6v(tmp2, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
2038
|
+
tmp_0 = Unit_instance;
|
|
2039
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().bb())) {
|
|
2040
|
+
tmp0.b6v(tmp2, (!(value == null) ? typeof value === 'boolean' : false) ? value : THROW_CCE());
|
|
2041
|
+
tmp_0 = Unit_instance;
|
|
2042
|
+
} else {
|
|
2043
|
+
throw IllegalArgumentException_init_$Create$('Invalid type!');
|
|
2044
|
+
}
|
|
2045
|
+
tmp = tmp_0;
|
|
2046
|
+
}
|
|
2047
|
+
};
|
|
2048
|
+
protoOf(KtorHomeApi).j6u = function (refresh) {
|
|
2049
|
+
this.h6q_1 = refresh;
|
|
2050
|
+
var tmp0 = this.a6q_1;
|
|
2051
|
+
var tmp2 = 'refreshToken';
|
|
2052
|
+
// Inline function 'com.russhwolf.settings.set' call
|
|
2053
|
+
var value = this.h6q_1;
|
|
2054
|
+
var tmp;
|
|
2055
|
+
if (value == null) {
|
|
2056
|
+
// Inline function 'com.russhwolf.settings.minusAssign' call
|
|
2057
|
+
tmp0.l2k(tmp2);
|
|
2058
|
+
tmp = Unit_instance;
|
|
2059
|
+
} else {
|
|
2060
|
+
var tmp0_subject = PrimitiveClasses_getInstance().jb();
|
|
2061
|
+
var tmp_0;
|
|
2062
|
+
if (tmp0_subject.equals(PrimitiveClasses_getInstance().eb())) {
|
|
2063
|
+
tmp0.g6v(tmp2, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
2064
|
+
tmp_0 = Unit_instance;
|
|
2065
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().fb())) {
|
|
2066
|
+
tmp0.f6v(tmp2, (!(value == null) ? typeof value === 'bigint' : false) ? value : THROW_CCE());
|
|
2067
|
+
tmp_0 = Unit_instance;
|
|
2068
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().jb())) {
|
|
2069
|
+
tmp0.e6v(tmp2, (!(value == null) ? typeof value === 'string' : false) ? value : THROW_CCE());
|
|
2070
|
+
tmp_0 = Unit_instance;
|
|
2071
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().gb())) {
|
|
2072
|
+
tmp0.d6v(tmp2, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
2073
|
+
tmp_0 = Unit_instance;
|
|
2074
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().hb())) {
|
|
2075
|
+
tmp0.c6v(tmp2, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
2076
|
+
tmp_0 = Unit_instance;
|
|
2077
|
+
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().bb())) {
|
|
2078
|
+
tmp0.b6v(tmp2, (!(value == null) ? typeof value === 'boolean' : false) ? value : THROW_CCE());
|
|
2079
|
+
tmp_0 = Unit_instance;
|
|
2080
|
+
} else {
|
|
2081
|
+
throw IllegalArgumentException_init_$Create$('Invalid type!');
|
|
2082
|
+
}
|
|
2083
|
+
tmp = tmp_0;
|
|
2084
|
+
}
|
|
2085
|
+
};
|
|
2086
|
+
protoOf(KtorHomeApi).g6o = function (oldTokens, $completion) {
|
|
2087
|
+
var tmp = new $refreshCOROUTINE$(this, oldTokens, $completion);
|
|
2088
|
+
tmp.k8_1 = Unit_instance;
|
|
2089
|
+
tmp.l8_1 = null;
|
|
2090
|
+
return tmp.q8();
|
|
2091
|
+
};
|
|
2092
|
+
protoOf(KtorHomeApi).j6v = function () {
|
|
2093
|
+
this.k6v();
|
|
2094
|
+
this.g6q_1 = null;
|
|
2095
|
+
this.h6q_1 = null;
|
|
2096
|
+
this.k6u(null);
|
|
2097
|
+
};
|
|
2098
|
+
protoOf(KtorHomeApi).k6v = function () {
|
|
2099
|
+
invalidateBearerTokens(this, this.b6s().u5g());
|
|
2100
|
+
invalidateBearerTokens(this, this.c6s().u5g());
|
|
2101
|
+
invalidateBearerTokens(this, this.d6s().u5g());
|
|
2102
|
+
invalidateBearerTokens(this, this.e6s().u5g());
|
|
2103
|
+
invalidateBearerTokens(this, this.f6s().u5g());
|
|
2104
|
+
invalidateBearerTokens(this, this.g6s().u5g());
|
|
2105
|
+
invalidateBearerTokens(this, this.h6s().u5g());
|
|
2106
|
+
invalidateBearerTokens(this, this.j6s().u5g());
|
|
2107
|
+
invalidateBearerTokens(this, this.l6s().u5g());
|
|
2108
|
+
invalidateBearerTokens(this, this.i6s().u5g());
|
|
2109
|
+
invalidateBearerTokens(this, this.k6s().u5g());
|
|
2110
|
+
invalidateBearerTokens(this, this.m6s().u5g());
|
|
2111
|
+
invalidateBearerTokens(this, this.n6s().u5g());
|
|
2112
|
+
invalidateBearerTokens(this, this.o6s().u5g());
|
|
2113
|
+
invalidateBearerTokens(this, this.p6s().u5g());
|
|
2114
|
+
invalidateBearerTokens(this, this.q6s().u5g());
|
|
2115
|
+
invalidateBearerTokens(this, this.r6s().u5g());
|
|
2116
|
+
invalidateBearerTokens(this, this.s6s().u5g());
|
|
2117
|
+
invalidateBearerTokens(this, this.t6s().u5g());
|
|
2118
|
+
invalidateBearerTokens(this, this.u6s().u5g());
|
|
2119
|
+
invalidateBearerTokens(this, this.v6s().u5g());
|
|
2120
|
+
invalidateBearerTokens(this, this.w6s().u5g());
|
|
2121
|
+
invalidateBearerTokens(this, this.x6s().u5g());
|
|
2122
|
+
invalidateBearerTokens(this, this.y6s().u5g());
|
|
2123
|
+
invalidateBearerTokens(this, this.z6s().u5g());
|
|
2124
|
+
invalidateBearerTokens(this, this.a6t().u5g());
|
|
2125
|
+
invalidateBearerTokens(this, this.b6t().u5g());
|
|
2126
|
+
invalidateBearerTokens(this, this.c6t().u5g());
|
|
2127
|
+
invalidateBearerTokens(this, this.d6t().u5g());
|
|
2128
|
+
};
|
|
2129
|
+
protoOf(KtorHomeApi).b6s = function () {
|
|
2130
|
+
var tmp0 = this.l6q_1;
|
|
2131
|
+
var tmp = KProperty1;
|
|
2132
|
+
// Inline function 'kotlin.getValue' call
|
|
2133
|
+
getPropertyCallableRef('users', 1, tmp, KtorHomeApi$_get_users_$ref_spoxab(), null);
|
|
2134
|
+
return tmp0.n1();
|
|
2135
|
+
};
|
|
2136
|
+
protoOf(KtorHomeApi).c6s = function () {
|
|
2137
|
+
var tmp0 = this.m6q_1;
|
|
2138
|
+
var tmp = KProperty1;
|
|
2139
|
+
// Inline function 'kotlin.getValue' call
|
|
2140
|
+
getPropertyCallableRef('documents', 1, tmp, KtorHomeApi$_get_documents_$ref_nl8s7n(), null);
|
|
2141
|
+
return tmp0.n1();
|
|
2142
|
+
};
|
|
2143
|
+
protoOf(KtorHomeApi).d6s = function () {
|
|
2144
|
+
var tmp0 = this.n6q_1;
|
|
2145
|
+
var tmp = KProperty1;
|
|
2146
|
+
// Inline function 'kotlin.getValue' call
|
|
2147
|
+
getPropertyCallableRef('conversations', 1, tmp, KtorHomeApi$_get_conversations_$ref_x5iyj(), null);
|
|
2148
|
+
return tmp0.n1();
|
|
2149
|
+
};
|
|
2150
|
+
protoOf(KtorHomeApi).e6s = function () {
|
|
2151
|
+
var tmp0 = this.o6q_1;
|
|
2152
|
+
var tmp = KProperty1;
|
|
2153
|
+
// Inline function 'kotlin.getValue' call
|
|
2154
|
+
getPropertyCallableRef('companies', 1, tmp, KtorHomeApi$_get_companies_$ref_xrn6og(), null);
|
|
2155
|
+
return tmp0.n1();
|
|
2156
|
+
};
|
|
2157
|
+
protoOf(KtorHomeApi).f6s = function () {
|
|
2158
|
+
var tmp0 = this.p6q_1;
|
|
2159
|
+
var tmp = KProperty1;
|
|
2160
|
+
// Inline function 'kotlin.getValue' call
|
|
2161
|
+
getPropertyCallableRef('sections', 1, tmp, KtorHomeApi$_get_sections_$ref_rbft5r(), null);
|
|
2162
|
+
return tmp0.n1();
|
|
2163
|
+
};
|
|
2164
|
+
protoOf(KtorHomeApi).g6s = function () {
|
|
2165
|
+
var tmp0 = this.q6q_1;
|
|
2166
|
+
var tmp = KProperty1;
|
|
2167
|
+
// Inline function 'kotlin.getValue' call
|
|
2168
|
+
getPropertyCallableRef('homepage', 1, tmp, KtorHomeApi$_get_homepage_$ref_8jvfl(), null);
|
|
2169
|
+
return tmp0.n1();
|
|
2170
|
+
};
|
|
2171
|
+
protoOf(KtorHomeApi).h6s = function () {
|
|
2172
|
+
var tmp0 = this.r6q_1;
|
|
2173
|
+
var tmp = KProperty1;
|
|
2174
|
+
// Inline function 'kotlin.getValue' call
|
|
2175
|
+
getPropertyCallableRef('invoicing', 1, tmp, KtorHomeApi$_get_invoicing_$ref_uln36n(), null);
|
|
2176
|
+
return tmp0.n1();
|
|
2177
|
+
};
|
|
2178
|
+
protoOf(KtorHomeApi).i6s = function () {
|
|
2179
|
+
var tmp0 = this.s6q_1;
|
|
2180
|
+
var tmp = KProperty1;
|
|
2181
|
+
// Inline function 'kotlin.getValue' call
|
|
2182
|
+
getPropertyCallableRef('thirdParty', 1, tmp, KtorHomeApi$_get_thirdParty_$ref_g1r034(), null);
|
|
2183
|
+
return tmp0.n1();
|
|
2184
|
+
};
|
|
2185
|
+
protoOf(KtorHomeApi).j6s = function () {
|
|
2186
|
+
var tmp0 = this.t6q_1;
|
|
2187
|
+
var tmp = KProperty1;
|
|
2188
|
+
// Inline function 'kotlin.getValue' call
|
|
2189
|
+
getPropertyCallableRef('residents', 1, tmp, KtorHomeApi$_get_residents_$ref_jxiafc(), null);
|
|
2190
|
+
return tmp0.n1();
|
|
2191
|
+
};
|
|
2192
|
+
protoOf(KtorHomeApi).k6s = function () {
|
|
2193
|
+
var tmp0 = this.u6q_1;
|
|
2194
|
+
var tmp = KProperty1;
|
|
2195
|
+
// Inline function 'kotlin.getValue' call
|
|
2196
|
+
getPropertyCallableRef('person', 1, tmp, KtorHomeApi$_get_person_$ref_lhpt46(), null);
|
|
2197
|
+
return tmp0.n1();
|
|
2198
|
+
};
|
|
2199
|
+
protoOf(KtorHomeApi).l6s = function () {
|
|
2200
|
+
var tmp0 = this.v6q_1;
|
|
2201
|
+
var tmp = KProperty1;
|
|
2202
|
+
// Inline function 'kotlin.getValue' call
|
|
2203
|
+
getPropertyCallableRef('auth', 1, tmp, KtorHomeApi$_get_auth_$ref_b4x2ft(), null);
|
|
2204
|
+
return tmp0.n1();
|
|
2205
|
+
};
|
|
2206
|
+
protoOf(KtorHomeApi).m6s = function () {
|
|
2207
|
+
var tmp0 = this.w6q_1;
|
|
2208
|
+
var tmp = KProperty1;
|
|
2209
|
+
// Inline function 'kotlin.getValue' call
|
|
2210
|
+
getPropertyCallableRef('organization', 1, tmp, KtorHomeApi$_get_organization_$ref_bjt96k(), null);
|
|
2211
|
+
return tmp0.n1();
|
|
2212
|
+
};
|
|
2213
|
+
protoOf(KtorHomeApi).n6s = function () {
|
|
2214
|
+
var tmp0 = this.x6q_1;
|
|
2215
|
+
var tmp = KProperty1;
|
|
2216
|
+
// Inline function 'kotlin.getValue' call
|
|
2217
|
+
getPropertyCallableRef('insurance', 1, tmp, KtorHomeApi$_get_insurance_$ref_a0vxf5(), null);
|
|
2218
|
+
return tmp0.n1();
|
|
2219
|
+
};
|
|
2220
|
+
protoOf(KtorHomeApi).o6s = function () {
|
|
2221
|
+
var tmp0 = this.y6q_1;
|
|
2222
|
+
var tmp = KProperty1;
|
|
2223
|
+
// Inline function 'kotlin.getValue' call
|
|
2224
|
+
getPropertyCallableRef('hms', 1, tmp, KtorHomeApi$_get_hms_$ref_8ssj0j(), null);
|
|
2225
|
+
return tmp0.n1();
|
|
2226
|
+
};
|
|
2227
|
+
protoOf(KtorHomeApi).p6s = function () {
|
|
2228
|
+
var tmp0 = this.z6q_1;
|
|
2229
|
+
var tmp = KProperty1;
|
|
2230
|
+
// Inline function 'kotlin.getValue' call
|
|
2231
|
+
getPropertyCallableRef('routines', 1, tmp, KtorHomeApi$_get_routines_$ref_dc8zls(), null);
|
|
2232
|
+
return tmp0.n1();
|
|
2233
|
+
};
|
|
2234
|
+
protoOf(KtorHomeApi).q6s = function () {
|
|
2235
|
+
var tmp0 = this.a6r_1;
|
|
2236
|
+
var tmp = KProperty1;
|
|
2237
|
+
// Inline function 'kotlin.getValue' call
|
|
2238
|
+
getPropertyCallableRef('storage', 1, tmp, KtorHomeApi$_get_storage_$ref_997blc(), null);
|
|
2239
|
+
return tmp0.n1();
|
|
2240
|
+
};
|
|
2241
|
+
protoOf(KtorHomeApi).r6s = function () {
|
|
2242
|
+
var tmp0 = this.b6r_1;
|
|
2243
|
+
var tmp = KProperty1;
|
|
2244
|
+
// Inline function 'kotlin.getValue' call
|
|
2245
|
+
getPropertyCallableRef('language', 1, tmp, KtorHomeApi$_get_language_$ref_ln75mx(), null);
|
|
2246
|
+
return tmp0.n1();
|
|
2247
|
+
};
|
|
2248
|
+
protoOf(KtorHomeApi).s6s = function () {
|
|
2249
|
+
var tmp0 = this.c6r_1;
|
|
2250
|
+
var tmp = KProperty1;
|
|
2251
|
+
// Inline function 'kotlin.getValue' call
|
|
2252
|
+
getPropertyCallableRef('board', 1, tmp, KtorHomeApi$_get_board_$ref_glu3c5(), null);
|
|
2253
|
+
return tmp0.n1();
|
|
2254
|
+
};
|
|
2255
|
+
protoOf(KtorHomeApi).t6s = function () {
|
|
2256
|
+
var tmp0 = this.d6r_1;
|
|
2257
|
+
var tmp = KProperty1;
|
|
2258
|
+
// Inline function 'kotlin.getValue' call
|
|
2259
|
+
getPropertyCallableRef('invoice', 1, tmp, KtorHomeApi$_get_invoice_$ref_l63j7m(), null);
|
|
2260
|
+
return tmp0.n1();
|
|
2261
|
+
};
|
|
2262
|
+
protoOf(KtorHomeApi).u6s = function () {
|
|
2263
|
+
var tmp0 = this.e6r_1;
|
|
2264
|
+
var tmp = KProperty1;
|
|
2265
|
+
// Inline function 'kotlin.getValue' call
|
|
2266
|
+
getPropertyCallableRef('loan', 1, tmp, KtorHomeApi$_get_loan_$ref_7kx7mp(), null);
|
|
2267
|
+
return tmp0.n1();
|
|
2268
|
+
};
|
|
2269
|
+
protoOf(KtorHomeApi).v6s = function () {
|
|
2270
|
+
var tmp0 = this.f6r_1;
|
|
2271
|
+
var tmp = KProperty1;
|
|
2272
|
+
// Inline function 'kotlin.getValue' call
|
|
2273
|
+
getPropertyCallableRef('meeting', 1, tmp, KtorHomeApi$_get_meeting_$ref_w4n80g(), null);
|
|
2274
|
+
return tmp0.n1();
|
|
2275
|
+
};
|
|
2276
|
+
protoOf(KtorHomeApi).w6s = function () {
|
|
2277
|
+
var tmp0 = this.g6r_1;
|
|
2278
|
+
var tmp = KProperty1;
|
|
2279
|
+
// Inline function 'kotlin.getValue' call
|
|
2280
|
+
getPropertyCallableRef('task', 1, tmp, KtorHomeApi$_get_task_$ref_wazi3a(), null);
|
|
2281
|
+
return tmp0.n1();
|
|
2282
|
+
};
|
|
2283
|
+
protoOf(KtorHomeApi).x6s = function () {
|
|
2284
|
+
var tmp0 = this.h6r_1;
|
|
2285
|
+
var tmp = KProperty1;
|
|
2286
|
+
// Inline function 'kotlin.getValue' call
|
|
2287
|
+
getPropertyCallableRef('communication', 1, tmp, KtorHomeApi$_get_communication_$ref_ei6eet(), null);
|
|
2288
|
+
return tmp0.n1();
|
|
2289
|
+
};
|
|
2290
|
+
protoOf(KtorHomeApi).y6s = function () {
|
|
2291
|
+
var tmp0 = this.i6r_1;
|
|
2292
|
+
var tmp = KProperty1;
|
|
2293
|
+
// Inline function 'kotlin.getValue' call
|
|
2294
|
+
getPropertyCallableRef('parking', 1, tmp, KtorHomeApi$_get_parking_$ref_z876b1(), null);
|
|
2295
|
+
return tmp0.n1();
|
|
2296
|
+
};
|
|
2297
|
+
protoOf(KtorHomeApi).z6s = function () {
|
|
2298
|
+
var tmp0 = this.j6r_1;
|
|
2299
|
+
var tmp = KProperty1;
|
|
2300
|
+
// Inline function 'kotlin.getValue' call
|
|
2301
|
+
getPropertyCallableRef('supplier', 1, tmp, KtorHomeApi$_get_supplier_$ref_jnkvcz(), null);
|
|
2302
|
+
return tmp0.n1();
|
|
2303
|
+
};
|
|
2304
|
+
protoOf(KtorHomeApi).a6t = function () {
|
|
2305
|
+
var tmp0 = this.k6r_1;
|
|
2306
|
+
var tmp = KProperty1;
|
|
2307
|
+
// Inline function 'kotlin.getValue' call
|
|
2308
|
+
getPropertyCallableRef('marketing', 1, tmp, KtorHomeApi$_get_marketing_$ref_un1l97(), null);
|
|
2309
|
+
return tmp0.n1();
|
|
2310
|
+
};
|
|
2311
|
+
protoOf(KtorHomeApi).b6t = function () {
|
|
2312
|
+
var tmp0 = this.l6r_1;
|
|
2313
|
+
var tmp = KProperty1;
|
|
2314
|
+
// Inline function 'kotlin.getValue' call
|
|
2315
|
+
getPropertyCallableRef('expense', 1, tmp, KtorHomeApi$_get_expense_$ref_fbxbjn(), null);
|
|
2316
|
+
return tmp0.n1();
|
|
2317
|
+
};
|
|
2318
|
+
protoOf(KtorHomeApi).c6t = function () {
|
|
2319
|
+
var tmp0 = this.m6r_1;
|
|
2320
|
+
var tmp = KProperty1;
|
|
2321
|
+
// Inline function 'kotlin.getValue' call
|
|
2322
|
+
getPropertyCallableRef('issue', 1, tmp, KtorHomeApi$_get_issue_$ref_bf6wya(), null);
|
|
2323
|
+
return tmp0.n1();
|
|
2324
|
+
};
|
|
2325
|
+
protoOf(KtorHomeApi).d6t = function () {
|
|
2326
|
+
var tmp0 = this.n6r_1;
|
|
2327
|
+
var tmp = KProperty1;
|
|
2328
|
+
// Inline function 'kotlin.getValue' call
|
|
2329
|
+
getPropertyCallableRef('economy', 1, tmp, KtorHomeApi$_get_economy_$ref_vagzn7(), null);
|
|
2330
|
+
return tmp0.n1();
|
|
2331
|
+
};
|
|
2332
|
+
protoOf(KtorHomeApi).i6o = function (deviceKey, deviceKeyGroup, $completion) {
|
|
2333
|
+
var tmp = new $revokeCOROUTINE$(this, deviceKey, deviceKeyGroup, $completion);
|
|
2334
|
+
tmp.k8_1 = Unit_instance;
|
|
2335
|
+
tmp.l8_1 = null;
|
|
2336
|
+
return tmp.q8();
|
|
2337
|
+
};
|
|
2338
|
+
function UnknownRefreshErrorException(message) {
|
|
2339
|
+
message = message === VOID ? null : message;
|
|
2340
|
+
Exception_init_$Init$(message == null ? 'Unknown refresh error' : message, this);
|
|
2341
|
+
captureStack(this, UnknownRefreshErrorException);
|
|
2342
|
+
this.l6v_1 = message;
|
|
2343
|
+
delete this.message;
|
|
2344
|
+
}
|
|
2345
|
+
protoOf(UnknownRefreshErrorException).e = function () {
|
|
2346
|
+
return this.l6v_1;
|
|
2347
|
+
};
|
|
2348
|
+
protoOf(UnknownRefreshErrorException).toString = function () {
|
|
2349
|
+
return 'UnknownRefreshErrorException(message=' + this.l6v_1 + ')';
|
|
2350
|
+
};
|
|
2351
|
+
protoOf(UnknownRefreshErrorException).hashCode = function () {
|
|
2352
|
+
return this.l6v_1 == null ? 0 : getStringHashCode(this.l6v_1);
|
|
2353
|
+
};
|
|
2354
|
+
protoOf(UnknownRefreshErrorException).equals = function (other) {
|
|
2355
|
+
if (this === other)
|
|
2356
|
+
return true;
|
|
2357
|
+
if (!(other instanceof UnknownRefreshErrorException))
|
|
2358
|
+
return false;
|
|
2359
|
+
if (!(this.l6v_1 == other.l6v_1))
|
|
2360
|
+
return false;
|
|
2361
|
+
return true;
|
|
2362
|
+
};
|
|
2363
|
+
function buildAcceptLanguage(currentLanguage) {
|
|
2364
|
+
// Inline function 'kotlin.text.trim' call
|
|
2365
|
+
var cl = toString_0(trim(isCharSequence(currentLanguage) ? currentLanguage : THROW_CCE()));
|
|
2366
|
+
var tmp0_elvis_lhs = firstOrNull(split(cl, charArrayOf([_Char___init__impl__6a9atx(45)])));
|
|
2367
|
+
var base = tmp0_elvis_lhs == null ? cl : tmp0_elvis_lhs;
|
|
2368
|
+
// Inline function 'kotlin.collections.map' call
|
|
2369
|
+
var this_0 = split('nb-NO;q=0.8,nb;q=0.7,en-US;q=0.6', charArrayOf([_Char___init__impl__6a9atx(44)]));
|
|
2370
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
2371
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2372
|
+
var _iterator__ex2g4s = this_0.t();
|
|
2373
|
+
while (_iterator__ex2g4s.u()) {
|
|
2374
|
+
var item = _iterator__ex2g4s.v();
|
|
2375
|
+
// Inline function 'kotlin.text.trim' call
|
|
2376
|
+
var tmp$ret$2 = toString_0(trim(isCharSequence(item) ? item : THROW_CCE()));
|
|
2377
|
+
destination.b1(tmp$ret$2);
|
|
2378
|
+
}
|
|
2379
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2380
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2381
|
+
var destination_0 = ArrayList_init_$Create$();
|
|
2382
|
+
var _iterator__ex2g4s_0 = destination.t();
|
|
2383
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2384
|
+
var element = _iterator__ex2g4s_0.v();
|
|
2385
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2386
|
+
if (charSequenceLength(element) > 0) {
|
|
2387
|
+
destination_0.b1(element);
|
|
2388
|
+
}
|
|
2389
|
+
}
|
|
2390
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2391
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2392
|
+
var destination_1 = ArrayList_init_$Create$();
|
|
2393
|
+
var _iterator__ex2g4s_1 = destination_0.t();
|
|
2394
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
2395
|
+
var element_0 = _iterator__ex2g4s_1.v();
|
|
2396
|
+
// Inline function 'kotlin.text.trim' call
|
|
2397
|
+
var this_1 = first(split(element_0, charArrayOf([_Char___init__impl__6a9atx(59)])));
|
|
2398
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
2399
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2400
|
+
var tag = toString_0(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())).toLowerCase();
|
|
2401
|
+
var tmp;
|
|
2402
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
2403
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2404
|
+
if (!(tag === cl.toLowerCase())) {
|
|
2405
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
2406
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2407
|
+
tmp = !(tag === base.toLowerCase());
|
|
2408
|
+
} else {
|
|
2409
|
+
tmp = false;
|
|
2410
|
+
}
|
|
2411
|
+
if (tmp) {
|
|
2412
|
+
destination_1.b1(element_0);
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
var tail = destination_1;
|
|
2416
|
+
var preferred = listOf([cl, base + ';q=0.9']);
|
|
2417
|
+
return joinToString(plus(preferred, tail), ',');
|
|
2418
|
+
}
|
|
2419
|
+
function removeEmptyStringsAndNulls(element) {
|
|
2420
|
+
var tmp;
|
|
2421
|
+
if (element instanceof JsonObject) {
|
|
2422
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2423
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2424
|
+
var destination = ArrayList_init_$Create$();
|
|
2425
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
2426
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
2427
|
+
var _iterator__ex2g4s = element.l1().t();
|
|
2428
|
+
while (_iterator__ex2g4s.u()) {
|
|
2429
|
+
var element_0 = _iterator__ex2g4s.v();
|
|
2430
|
+
// Inline function 'kotlin.collections.component1' call
|
|
2431
|
+
var key = element_0.m1();
|
|
2432
|
+
// Inline function 'kotlin.collections.component2' call
|
|
2433
|
+
var value = element_0.n1();
|
|
2434
|
+
var cleaned = removeEmptyStringsAndNulls(value);
|
|
2435
|
+
var tmp_0;
|
|
2436
|
+
if (cleaned instanceof JsonNull) {
|
|
2437
|
+
tmp_0 = null;
|
|
2438
|
+
} else {
|
|
2439
|
+
var tmp_1;
|
|
2440
|
+
if (cleaned instanceof JsonPrimitive_0) {
|
|
2441
|
+
var tmp_2;
|
|
2442
|
+
if (cleaned.m6a()) {
|
|
2443
|
+
// Inline function 'kotlin.text.trim' call
|
|
2444
|
+
var this_0 = cleaned.o3p();
|
|
2445
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
2446
|
+
var this_1 = toString_0(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
2447
|
+
tmp_2 = charSequenceLength(this_1) === 0;
|
|
2448
|
+
} else {
|
|
2449
|
+
tmp_2 = false;
|
|
2450
|
+
}
|
|
2451
|
+
tmp_1 = tmp_2;
|
|
2452
|
+
} else {
|
|
2453
|
+
tmp_1 = false;
|
|
2454
|
+
}
|
|
2455
|
+
if (tmp_1) {
|
|
2456
|
+
tmp_0 = null;
|
|
2457
|
+
} else {
|
|
2458
|
+
var tmp_3;
|
|
2459
|
+
if (cleaned instanceof JsonObject) {
|
|
2460
|
+
tmp_3 = cleaned.r();
|
|
2461
|
+
} else {
|
|
2462
|
+
tmp_3 = false;
|
|
2463
|
+
}
|
|
2464
|
+
if (tmp_3) {
|
|
2465
|
+
tmp_0 = null;
|
|
2466
|
+
} else {
|
|
2467
|
+
tmp_0 = to(key, cleaned);
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
var tmp0_safe_receiver = tmp_0;
|
|
2472
|
+
if (tmp0_safe_receiver == null)
|
|
2473
|
+
null;
|
|
2474
|
+
else {
|
|
2475
|
+
// Inline function 'kotlin.let' call
|
|
2476
|
+
destination.b1(tmp0_safe_receiver);
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
tmp = new JsonObject(toMap(destination));
|
|
2480
|
+
} else {
|
|
2481
|
+
if (element instanceof JsonArray) {
|
|
2482
|
+
// Inline function 'kotlin.collections.map' call
|
|
2483
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
2484
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(element, 10));
|
|
2485
|
+
var _iterator__ex2g4s_0 = element.t();
|
|
2486
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2487
|
+
var item = _iterator__ex2g4s_0.v();
|
|
2488
|
+
var tmp$ret$12 = removeEmptyStringsAndNulls(item);
|
|
2489
|
+
destination_0.b1(tmp$ret$12);
|
|
2490
|
+
}
|
|
2491
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2492
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2493
|
+
var destination_1 = ArrayList_init_$Create$();
|
|
2494
|
+
var _iterator__ex2g4s_1 = destination_0.t();
|
|
2495
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
2496
|
+
var element_1 = _iterator__ex2g4s_1.v();
|
|
2497
|
+
if (!(element_1 instanceof JsonNull)) {
|
|
2498
|
+
destination_1.b1(element_1);
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2501
|
+
tmp = new JsonArray(destination_1);
|
|
2502
|
+
} else {
|
|
2503
|
+
if (element instanceof JsonPrimitive_0) {
|
|
2504
|
+
var tmp_4;
|
|
2505
|
+
var tmp_5;
|
|
2506
|
+
if (element.m6a()) {
|
|
2507
|
+
// Inline function 'kotlin.text.trim' call
|
|
2508
|
+
var this_2 = element.o3p();
|
|
2509
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
2510
|
+
var this_3 = toString_0(trim(isCharSequence(this_2) ? this_2 : THROW_CCE()));
|
|
2511
|
+
tmp_5 = charSequenceLength(this_3) === 0;
|
|
2512
|
+
} else {
|
|
2513
|
+
tmp_5 = false;
|
|
2514
|
+
}
|
|
2515
|
+
if (tmp_5) {
|
|
2516
|
+
tmp_4 = JsonNull_getInstance();
|
|
2517
|
+
} else {
|
|
2518
|
+
tmp_4 = element;
|
|
2519
|
+
}
|
|
2520
|
+
tmp = tmp_4;
|
|
2521
|
+
} else {
|
|
2522
|
+
noWhenBranchMatchedException();
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
}
|
|
2526
|
+
return tmp;
|
|
2527
|
+
}
|
|
2528
|
+
function applyPlatformSpecificHttpClientConfig(_this__u8e3s4) {
|
|
2529
|
+
_this__u8e3s4.b3p(applyPlatformSpecificHttpClientConfig$lambda);
|
|
2530
|
+
}
|
|
2531
|
+
function applyPlatformSpecificHttpClientConfig$lambda($this$engine) {
|
|
2532
|
+
if ($this$engine instanceof JsClientEngineConfig) {
|
|
2533
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2534
|
+
$this$engine.withCredentials = true;
|
|
2535
|
+
}
|
|
2536
|
+
return Unit_instance;
|
|
2537
|
+
}
|
|
2538
|
+
function Platform() {
|
|
2539
|
+
this.x6u_1 = 'Js';
|
|
2540
|
+
this.y6u_1 = AuthMode_COOKIE_getInstance();
|
|
2541
|
+
}
|
|
2542
|
+
//region block: post-declaration
|
|
2543
|
+
protoOf(KtorHomeApi).h6o = refresh$default;
|
|
2544
|
+
protoOf(KtorHomeApi).j6o = revoke$default;
|
|
2545
|
+
defineProp(protoOf(UnknownRefreshErrorException), 'message', function () {
|
|
2546
|
+
return this.e();
|
|
2547
|
+
});
|
|
18
2548
|
//endregion
|
|
19
2549
|
//region block: exports
|
|
2550
|
+
function $jsExportAll$(_) {
|
|
2551
|
+
var $no = _.no || (_.no = {});
|
|
2552
|
+
var $no$solibo = $no.solibo || ($no.solibo = {});
|
|
2553
|
+
var $no$solibo$oss = $no$solibo.oss || ($no$solibo.oss = {});
|
|
2554
|
+
var $no$solibo$oss$sdk = $no$solibo$oss.sdk || ($no$solibo$oss.sdk = {});
|
|
2555
|
+
var $no$solibo$oss$sdk$api = $no$solibo$oss$sdk.api || ($no$solibo$oss$sdk.api = {});
|
|
2556
|
+
$no$solibo$oss$sdk$api.KtorHomeApi = KtorHomeApi;
|
|
2557
|
+
}
|
|
2558
|
+
$jsExportAll$(_);
|
|
20
2559
|
kotlin_io_ktor_ktor_client_core.$jsExportAll$(_);
|
|
21
2560
|
kotlin_dev_whyoleg_cryptography_cryptography_provider_webcrypto.$jsExportAll$(_);
|
|
22
2561
|
//endregion
|