@doordeck/doordeck-headless-sdk 0.149.0 → 0.152.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +65 -65
- package/kotlin/Kermit-kermit.js +9 -9
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +59 -59
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +25 -25
- package/kotlin/doordeck-sdk.d.ts +1 -1
- package/kotlin/doordeck-sdk.js +13870 -15047
- package/kotlin/kotlin-kotlin-stdlib.js +4885 -4837
- package/kotlin/kotlinx-atomicfu.js +92 -88
- package/kotlin/kotlinx-coroutines-core.js +2871 -2878
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +71 -71
- package/kotlin/kotlinx-io-kotlinx-io-core.js +697 -676
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2632 -2628
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1841 -1829
- package/kotlin/ktor-ktor-client-auth.js +493 -512
- package/kotlin/ktor-ktor-client-content-negotiation.js +300 -308
- package/kotlin/ktor-ktor-client-core.js +3260 -3343
- package/kotlin/ktor-ktor-client-logging.js +1267 -1301
- package/kotlin/ktor-ktor-events.js +18 -18
- package/kotlin/ktor-ktor-http-cio.js +724 -719
- package/kotlin/ktor-ktor-http.js +1171 -1166
- package/kotlin/ktor-ktor-io.js +1413 -1440
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +9 -9
- package/kotlin/ktor-ktor-serialization-kotlinx.js +295 -311
- package/kotlin/ktor-ktor-serialization.js +128 -136
- package/kotlin/ktor-ktor-utils.js +1128 -1129
- package/kotlin/ktor-ktor-websockets.js +68 -68
- package/package.json +3 -2
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_utils, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
5
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
4
|
+
var CoroutineImpl = kotlin_kotlin.$_$.h9;
|
|
5
|
+
var Unit_instance = kotlin_kotlin.$_$.z4;
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.zb;
|
|
7
|
+
var THROW_CCE = kotlin_kotlin.$_$.yf;
|
|
8
8
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.g1;
|
|
9
9
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.j;
|
|
10
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
11
|
-
var VOID = kotlin_kotlin.$_$.
|
|
12
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
13
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
10
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.eb;
|
|
11
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
12
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
13
|
+
var initMetadataForClass = kotlin_kotlin.$_$.za;
|
|
14
14
|
var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
|
|
15
|
-
var toList = kotlin_kotlin.$_$.
|
|
15
|
+
var toList = kotlin_kotlin.$_$.e8;
|
|
16
16
|
var ConcurrentMap = kotlin_io_ktor_ktor_utils.$_$.d;
|
|
17
|
-
var KtMutableMap = kotlin_kotlin.$_$.
|
|
18
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
19
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
20
|
-
var createKType = kotlin_kotlin.$_$.
|
|
21
|
-
var createInvariantKTypeProjection = kotlin_kotlin.$_$.
|
|
22
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
17
|
+
var KtMutableMap = kotlin_kotlin.$_$.m5;
|
|
18
|
+
var getKClass = kotlin_kotlin.$_$.qc;
|
|
19
|
+
var arrayOf = kotlin_kotlin.$_$.mg;
|
|
20
|
+
var createKType = kotlin_kotlin.$_$.oc;
|
|
21
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.mc;
|
|
22
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.n4;
|
|
23
23
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
24
24
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
25
25
|
var Send_instance = kotlin_io_ktor_ktor_client_core.$_$.b;
|
|
26
26
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
27
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
28
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
27
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.u5;
|
|
28
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
|
|
29
29
|
var parseAuthorizationHeaders = kotlin_io_ktor_ktor_http.$_$.l;
|
|
30
|
-
var flatten = kotlin_kotlin.$_$.
|
|
31
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
32
|
-
var to = kotlin_kotlin.$_$.
|
|
30
|
+
var flatten = kotlin_kotlin.$_$.x6;
|
|
31
|
+
var emptyList = kotlin_kotlin.$_$.o6;
|
|
32
|
+
var to = kotlin_kotlin.$_$.ch;
|
|
33
33
|
var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.i;
|
|
34
|
-
var first = kotlin_kotlin.$_$.
|
|
35
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
34
|
+
var first = kotlin_kotlin.$_$.w6;
|
|
35
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
36
36
|
var OnRequestContext = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
37
37
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.z;
|
|
38
|
-
var toString = kotlin_kotlin.$_$.
|
|
39
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
38
|
+
var toString = kotlin_kotlin.$_$.cc;
|
|
39
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r8;
|
|
40
40
|
var Sender = kotlin_io_ktor_ktor_client_core.$_$.k;
|
|
41
|
-
var HashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
42
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
41
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
42
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.bb;
|
|
43
43
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
44
|
-
var Unit = kotlin_kotlin.$_$.
|
|
44
|
+
var Unit = kotlin_kotlin.$_$.jg;
|
|
45
45
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
46
|
-
var KtList = kotlin_kotlin.$_$.
|
|
47
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
48
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
49
|
-
var get = kotlin_kotlin.$_$.
|
|
50
|
-
var fold = kotlin_kotlin.$_$.
|
|
51
|
-
var minusKey = kotlin_kotlin.$_$.
|
|
52
|
-
var plus = kotlin_kotlin.$_$.
|
|
53
|
-
var Element = kotlin_kotlin.$_$.
|
|
46
|
+
var KtList = kotlin_kotlin.$_$.g5;
|
|
47
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.db;
|
|
48
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ab;
|
|
49
|
+
var get = kotlin_kotlin.$_$.d9;
|
|
50
|
+
var fold = kotlin_kotlin.$_$.c9;
|
|
51
|
+
var minusKey = kotlin_kotlin.$_$.e9;
|
|
52
|
+
var plus = kotlin_kotlin.$_$.g9;
|
|
53
|
+
var Element = kotlin_kotlin.$_$.f9;
|
|
54
54
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
55
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
56
|
-
var equals = kotlin_kotlin.$_$.
|
|
55
|
+
var isInterface = kotlin_kotlin.$_$.ob;
|
|
56
|
+
var equals = kotlin_kotlin.$_$.sa;
|
|
57
57
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
|
|
58
58
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
59
59
|
var headers = kotlin_io_ktor_ktor_client_core.$_$.c1;
|
|
60
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
60
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
61
61
|
var Parameterized = kotlin_io_ktor_ktor_http.$_$.k;
|
|
62
62
|
//endregion
|
|
63
63
|
//region block: pre-declaration
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
initMetadataForCoroutine($invoke$refreshTokenIfNeededCOROUTINE$, CoroutineImpl);
|
|
70
70
|
initMetadataForCoroutine($invoke$executeWithNewTokenCOROUTINE$, CoroutineImpl);
|
|
71
71
|
function sendWithoutRequest(request) {
|
|
72
|
-
return this.
|
|
72
|
+
return this.q4k();
|
|
73
73
|
}
|
|
74
74
|
function addRequestHeaders$default(request, authHeader, $completion, $super) {
|
|
75
75
|
authHeader = authHeader === VOID ? null : authHeader;
|
|
76
|
-
return $super === VOID ? this.
|
|
76
|
+
return $super === VOID ? this.p4k(request, authHeader, $completion) : $super.p4k.call(this, request, authHeader, $completion);
|
|
77
77
|
}
|
|
78
78
|
function refreshToken(response, $completion) {
|
|
79
79
|
return true;
|
|
@@ -118,25 +118,25 @@
|
|
|
118
118
|
function AuthConfig$isUnauthorizedResponse$slambda(resultContinuation) {
|
|
119
119
|
CoroutineImpl.call(this, resultContinuation);
|
|
120
120
|
}
|
|
121
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
122
|
-
var tmp = this.
|
|
123
|
-
tmp.
|
|
124
|
-
tmp.
|
|
125
|
-
return tmp.
|
|
121
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).w4h = function (it, $completion) {
|
|
122
|
+
var tmp = this.g3m(it, $completion);
|
|
123
|
+
tmp.w8_1 = Unit_instance;
|
|
124
|
+
tmp.x8_1 = null;
|
|
125
|
+
return tmp.c9();
|
|
126
126
|
};
|
|
127
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
128
|
-
return this.
|
|
127
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).o9 = function (p1, $completion) {
|
|
128
|
+
return this.w4h(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
129
129
|
};
|
|
130
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
131
|
-
var suspendResult = this.
|
|
130
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).c9 = function () {
|
|
131
|
+
var suspendResult = this.w8_1;
|
|
132
132
|
$sm: do
|
|
133
133
|
try {
|
|
134
|
-
var tmp = this.
|
|
134
|
+
var tmp = this.u8_1;
|
|
135
135
|
if (tmp === 0) {
|
|
136
|
-
this.
|
|
137
|
-
return this.
|
|
136
|
+
this.v8_1 = 1;
|
|
137
|
+
return this.v4h_1.j33().equals(Companion_getInstance().a2z_1);
|
|
138
138
|
} else if (tmp === 1) {
|
|
139
|
-
throw this.
|
|
139
|
+
throw this.x8_1;
|
|
140
140
|
}
|
|
141
141
|
} catch ($p) {
|
|
142
142
|
var e = $p;
|
|
@@ -144,15 +144,15 @@
|
|
|
144
144
|
}
|
|
145
145
|
while (true);
|
|
146
146
|
};
|
|
147
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
147
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).g3m = function (it, completion) {
|
|
148
148
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(completion);
|
|
149
|
-
i.
|
|
149
|
+
i.v4h_1 = it;
|
|
150
150
|
return i;
|
|
151
151
|
};
|
|
152
152
|
function AuthConfig$isUnauthorizedResponse$slambda_0(resultContinuation) {
|
|
153
153
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(resultContinuation);
|
|
154
154
|
var l = function (it, $completion) {
|
|
155
|
-
return i.
|
|
155
|
+
return i.w4h(it, $completion);
|
|
156
156
|
};
|
|
157
157
|
l.$arity = 1;
|
|
158
158
|
return l;
|
|
@@ -160,12 +160,12 @@
|
|
|
160
160
|
function AuthConfig() {
|
|
161
161
|
var tmp = this;
|
|
162
162
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
163
|
-
tmp.
|
|
163
|
+
tmp.x4h_1 = ArrayList_init_$Create$();
|
|
164
164
|
var tmp_0 = this;
|
|
165
|
-
tmp_0.
|
|
165
|
+
tmp_0.y4h_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
|
|
166
166
|
}
|
|
167
167
|
function AtomicCounter() {
|
|
168
|
-
this.
|
|
168
|
+
this.z4h_1 = atomic$int$1(0);
|
|
169
169
|
}
|
|
170
170
|
function AuthConfig$_init_$ref_ms3pb9() {
|
|
171
171
|
var l = function () {
|
|
@@ -176,8 +176,8 @@
|
|
|
176
176
|
}
|
|
177
177
|
function Auth$lambda($this$createClientPlugin) {
|
|
178
178
|
_init_properties_Auth_kt__9ob1dk();
|
|
179
|
-
var providers = toList($this$createClientPlugin.
|
|
180
|
-
$this$createClientPlugin.
|
|
179
|
+
var providers = toList($this$createClientPlugin.g3l_1.x4h_1);
|
|
180
|
+
$this$createClientPlugin.f3l_1.h3b_1.b2i(get_AuthProvidersKey(), providers);
|
|
181
181
|
var tokenVersions = new ConcurrentMap();
|
|
182
182
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
183
183
|
var name = 'ProviderVersionAttributeKey';
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
187
187
|
var tmp_0;
|
|
188
188
|
try {
|
|
189
|
-
tmp_0 = createKType(getKClass(KtMutableMap), arrayOf([createInvariantKTypeProjection(createKType(getKClass(AuthProvider), arrayOf([]), false)), createInvariantKTypeProjection(createKType(PrimitiveClasses_getInstance().
|
|
189
|
+
tmp_0 = createKType(getKClass(KtMutableMap), arrayOf([createInvariantKTypeProjection(createKType(getKClass(AuthProvider), arrayOf([]), false)), createInvariantKTypeProjection(createKType(PrimitiveClasses_getInstance().xb(), arrayOf([]), false))]), false);
|
|
190
190
|
} catch ($p) {
|
|
191
191
|
var tmp_1;
|
|
192
192
|
if ($p instanceof Error) {
|
|
@@ -200,13 +200,13 @@
|
|
|
200
200
|
var tmp$ret$0 = tmp_0;
|
|
201
201
|
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
|
|
202
202
|
var tokenVersionsAttributeKey = new AttributeKey(name, tmp$ret$1);
|
|
203
|
-
$this$createClientPlugin.
|
|
203
|
+
$this$createClientPlugin.v41(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
204
204
|
var tmp_2 = Send_instance;
|
|
205
|
-
$this$createClientPlugin.
|
|
205
|
+
$this$createClientPlugin.j3l(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
206
206
|
return Unit_instance;
|
|
207
207
|
}
|
|
208
208
|
function invoke$findProvider(call, candidateProviders) {
|
|
209
|
-
var headerValues = call.
|
|
209
|
+
var headerValues = call.d3c().n2x().c2m(HttpHeaders_getInstance().m2w_1);
|
|
210
210
|
var tmp;
|
|
211
211
|
if (headerValues == null) {
|
|
212
212
|
tmp = null;
|
|
@@ -214,11 +214,11 @@
|
|
|
214
214
|
// Inline function 'kotlin.collections.map' call
|
|
215
215
|
// Inline function 'kotlin.collections.mapTo' call
|
|
216
216
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(headerValues, 10));
|
|
217
|
-
var _iterator__ex2g4s = headerValues.
|
|
218
|
-
while (_iterator__ex2g4s.
|
|
219
|
-
var item = _iterator__ex2g4s.
|
|
217
|
+
var _iterator__ex2g4s = headerValues.r();
|
|
218
|
+
while (_iterator__ex2g4s.s()) {
|
|
219
|
+
var item = _iterator__ex2g4s.t();
|
|
220
220
|
var tmp$ret$0 = parseAuthorizationHeaders(item);
|
|
221
|
-
destination.
|
|
221
|
+
destination.p(tmp$ret$0);
|
|
222
222
|
}
|
|
223
223
|
tmp = destination;
|
|
224
224
|
}
|
|
@@ -226,31 +226,31 @@
|
|
|
226
226
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : flatten(tmp1_safe_receiver);
|
|
227
227
|
var authHeaders = tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs;
|
|
228
228
|
var tmp_0;
|
|
229
|
-
if (authHeaders.
|
|
229
|
+
if (authHeaders.j() && candidateProviders.u() === 1) {
|
|
230
230
|
tmp_0 = to(first(candidateProviders), null);
|
|
231
|
-
} else if (authHeaders.
|
|
231
|
+
} else if (authHeaders.j()) {
|
|
232
232
|
// Inline function 'io.ktor.util.logging.trace' call
|
|
233
233
|
var this_0 = get_LOGGER();
|
|
234
234
|
if (get_isTraceEnabled(this_0)) {
|
|
235
|
-
var tmp$ret$3 = 'Unauthorized response ' + call.
|
|
236
|
-
this_0.
|
|
235
|
+
var tmp$ret$3 = 'Unauthorized response ' + call.l3e().u3e().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
|
|
236
|
+
this_0.s2q(tmp$ret$3);
|
|
237
237
|
}
|
|
238
238
|
tmp_0 = null;
|
|
239
239
|
} else {
|
|
240
240
|
var tmp$ret$11;
|
|
241
241
|
$l$block_0: {
|
|
242
242
|
// Inline function 'kotlin.collections.firstNotNullOfOrNull' call
|
|
243
|
-
var _iterator__ex2g4s_0 = authHeaders.
|
|
244
|
-
while (_iterator__ex2g4s_0.
|
|
245
|
-
var element = _iterator__ex2g4s_0.
|
|
243
|
+
var _iterator__ex2g4s_0 = authHeaders.r();
|
|
244
|
+
while (_iterator__ex2g4s_0.s()) {
|
|
245
|
+
var element = _iterator__ex2g4s_0.t();
|
|
246
246
|
// Inline function 'kotlin.collections.find' call
|
|
247
247
|
var tmp$ret$6;
|
|
248
248
|
$l$block: {
|
|
249
249
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
250
|
-
var _iterator__ex2g4s_1 = candidateProviders.
|
|
251
|
-
while (_iterator__ex2g4s_1.
|
|
252
|
-
var element_0 = _iterator__ex2g4s_1.
|
|
253
|
-
if (element_0.
|
|
250
|
+
var _iterator__ex2g4s_1 = candidateProviders.r();
|
|
251
|
+
while (_iterator__ex2g4s_1.s()) {
|
|
252
|
+
var element_0 = _iterator__ex2g4s_1.t();
|
|
253
|
+
if (element_0.a4i(element)) {
|
|
254
254
|
tmp$ret$6 = element_0;
|
|
255
255
|
break $l$block;
|
|
256
256
|
}
|
|
@@ -279,15 +279,15 @@
|
|
|
279
279
|
}
|
|
280
280
|
function invoke$refreshTokenIfNeeded(tokenVersions, tokenVersionsAttributeKey, call, provider, request, $completion) {
|
|
281
281
|
var tmp = new $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, $completion);
|
|
282
|
-
tmp.
|
|
283
|
-
tmp.
|
|
284
|
-
return tmp.
|
|
282
|
+
tmp.w8_1 = Unit_instance;
|
|
283
|
+
tmp.x8_1 = null;
|
|
284
|
+
return tmp.c9();
|
|
285
285
|
}
|
|
286
286
|
function invoke$executeWithNewToken(_this__u8e3s4, call, provider, oldRequest, authHeader, $completion) {
|
|
287
287
|
var tmp = new $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, $completion);
|
|
288
|
-
tmp.
|
|
289
|
-
tmp.
|
|
290
|
-
return tmp.
|
|
288
|
+
tmp.w8_1 = Unit_instance;
|
|
289
|
+
tmp.x8_1 = null;
|
|
290
|
+
return tmp.c9();
|
|
291
291
|
}
|
|
292
292
|
function Auth$lambda$slambda$lambda() {
|
|
293
293
|
return new AtomicCounter();
|
|
@@ -297,170 +297,159 @@
|
|
|
297
297
|
return LinkedHashMap_init_$Create$();
|
|
298
298
|
}
|
|
299
299
|
function Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
300
|
-
this.
|
|
301
|
-
this.
|
|
302
|
-
this.
|
|
300
|
+
this.m4j_1 = $providers;
|
|
301
|
+
this.n4j_1 = $tokenVersions;
|
|
302
|
+
this.o4j_1 = $tokenVersionsAttributeKey;
|
|
303
303
|
CoroutineImpl.call(this, resultContinuation);
|
|
304
304
|
}
|
|
305
|
-
protoOf(Auth$lambda$slambda).
|
|
306
|
-
var tmp = this.
|
|
307
|
-
tmp.
|
|
308
|
-
tmp.
|
|
309
|
-
return tmp.
|
|
305
|
+
protoOf(Auth$lambda$slambda).i42 = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
306
|
+
var tmp = this.j42($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
307
|
+
tmp.w8_1 = Unit_instance;
|
|
308
|
+
tmp.x8_1 = null;
|
|
309
|
+
return tmp.c9();
|
|
310
310
|
};
|
|
311
|
-
protoOf(Auth$lambda$slambda).
|
|
311
|
+
protoOf(Auth$lambda$slambda).k42 = function (p1, p2, p3, $completion) {
|
|
312
312
|
var tmp = p1 instanceof OnRequestContext ? p1 : THROW_CCE();
|
|
313
313
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
314
|
-
return this.
|
|
314
|
+
return this.i42(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
|
|
315
315
|
};
|
|
316
|
-
protoOf(Auth$lambda$slambda).
|
|
317
|
-
var suspendResult = this.
|
|
316
|
+
protoOf(Auth$lambda$slambda).c9 = function () {
|
|
317
|
+
var suspendResult = this.w8_1;
|
|
318
318
|
$sm: do
|
|
319
319
|
try {
|
|
320
|
-
var tmp = this.
|
|
320
|
+
var tmp = this.u8_1;
|
|
321
321
|
switch (tmp) {
|
|
322
322
|
case 0:
|
|
323
|
-
this.
|
|
324
|
-
var
|
|
325
|
-
var tmp0 = this.i4u_1;
|
|
323
|
+
this.v8_1 = 4;
|
|
324
|
+
var tmp0 = this.m4j_1;
|
|
326
325
|
var destination = ArrayList_init_$Create$();
|
|
327
|
-
var _iterator__ex2g4s = tmp0.
|
|
328
|
-
while (_iterator__ex2g4s.
|
|
329
|
-
var element = _iterator__ex2g4s.
|
|
330
|
-
if (element.
|
|
331
|
-
destination.
|
|
326
|
+
var _iterator__ex2g4s = tmp0.r();
|
|
327
|
+
while (_iterator__ex2g4s.s()) {
|
|
328
|
+
var element = _iterator__ex2g4s.t();
|
|
329
|
+
if (element.t4j(this.q4j_1)) {
|
|
330
|
+
destination.p(element);
|
|
332
331
|
}
|
|
333
332
|
}
|
|
334
333
|
|
|
335
|
-
|
|
336
|
-
this.
|
|
337
|
-
this.q4u_1 = this.p4u_1.p();
|
|
338
|
-
this.n9_1 = 1;
|
|
334
|
+
this.s4j_1 = destination.r();
|
|
335
|
+
this.u8_1 = 1;
|
|
339
336
|
continue $sm;
|
|
340
337
|
case 1:
|
|
341
|
-
if (!this.
|
|
342
|
-
this.
|
|
338
|
+
if (!this.s4j_1.s()) {
|
|
339
|
+
this.u8_1 = 3;
|
|
343
340
|
continue $sm;
|
|
344
341
|
}
|
|
345
342
|
|
|
346
|
-
|
|
347
|
-
var tmp_1 = this;
|
|
348
|
-
tmp_1.s4u_1 = this.r4u_1;
|
|
349
|
-
this.t4u_1 = this.s4u_1;
|
|
343
|
+
var element_0 = this.s4j_1.t();
|
|
350
344
|
var this_0 = get_LOGGER();
|
|
351
345
|
if (get_isTraceEnabled(this_0)) {
|
|
352
|
-
this_0.
|
|
346
|
+
this_0.s2q('Adding auth headers for ' + this.q4j_1.d3d_1.toString() + ' from provider ' + toString(element_0));
|
|
353
347
|
}
|
|
354
348
|
|
|
355
|
-
var
|
|
356
|
-
|
|
357
|
-
var
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
var value = this.u4u_1.u4s_1.kotlinx$atomicfu$value;
|
|
362
|
-
tmp0_0.p2(tmp2, value);
|
|
363
|
-
this.n9_1 = 2;
|
|
364
|
-
suspendResult = this.t4u_1.x4u(this.m4u_1, VOID, this);
|
|
349
|
+
var tokenVersion = this.n4j_1.h2q(element_0, Auth$lambda$slambda$lambda);
|
|
350
|
+
var requestTokenVersions = this.q4j_1.i3d_1.d2i(this.o4j_1, Auth$lambda$slambda$lambda_0);
|
|
351
|
+
var value = tokenVersion.z4h_1.kotlinx$atomicfu$value;
|
|
352
|
+
requestTokenVersions.g2(element_0, value);
|
|
353
|
+
this.u8_1 = 2;
|
|
354
|
+
suspendResult = element_0.u4j(this.q4j_1, VOID, this);
|
|
365
355
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
366
356
|
return suspendResult;
|
|
367
357
|
}
|
|
368
358
|
|
|
369
359
|
continue $sm;
|
|
370
360
|
case 2:
|
|
371
|
-
this.
|
|
361
|
+
this.u8_1 = 1;
|
|
372
362
|
continue $sm;
|
|
373
363
|
case 3:
|
|
374
364
|
return Unit_instance;
|
|
375
365
|
case 4:
|
|
376
|
-
throw this.
|
|
366
|
+
throw this.x8_1;
|
|
377
367
|
}
|
|
378
368
|
} catch ($p) {
|
|
379
369
|
var e = $p;
|
|
380
|
-
if (this.
|
|
370
|
+
if (this.v8_1 === 4) {
|
|
381
371
|
throw e;
|
|
382
372
|
} else {
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
373
|
+
this.u8_1 = this.v8_1;
|
|
374
|
+
this.x8_1 = e;
|
|
385
375
|
}
|
|
386
376
|
}
|
|
387
377
|
while (true);
|
|
388
378
|
};
|
|
389
|
-
protoOf(Auth$lambda$slambda).
|
|
390
|
-
var i = new Auth$lambda$slambda(this.
|
|
391
|
-
i.
|
|
392
|
-
i.
|
|
393
|
-
i.
|
|
379
|
+
protoOf(Auth$lambda$slambda).j42 = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
|
|
380
|
+
var i = new Auth$lambda$slambda(this.m4j_1, this.n4j_1, this.o4j_1, completion);
|
|
381
|
+
i.p4j_1 = $this$onRequest;
|
|
382
|
+
i.q4j_1 = request;
|
|
383
|
+
i.r4j_1 = _unused_var__etf5q3;
|
|
394
384
|
return i;
|
|
395
385
|
};
|
|
396
386
|
function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
397
387
|
var i = new Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
398
388
|
var l = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
399
|
-
return i.
|
|
389
|
+
return i.i42($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
400
390
|
};
|
|
401
391
|
l.$arity = 3;
|
|
402
392
|
return l;
|
|
403
393
|
}
|
|
404
394
|
function Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
407
|
-
this.
|
|
408
|
-
this.
|
|
395
|
+
this.d4k_1 = $this_createClientPlugin;
|
|
396
|
+
this.e4k_1 = $providers;
|
|
397
|
+
this.f4k_1 = $tokenVersions;
|
|
398
|
+
this.g4k_1 = $tokenVersionsAttributeKey;
|
|
409
399
|
CoroutineImpl.call(this, resultContinuation);
|
|
410
400
|
}
|
|
411
|
-
protoOf(Auth$lambda$slambda_1).
|
|
412
|
-
var tmp = this.
|
|
413
|
-
tmp.
|
|
414
|
-
tmp.
|
|
415
|
-
return tmp.
|
|
401
|
+
protoOf(Auth$lambda$slambda_1).l3s = function ($this$on, originalRequest, $completion) {
|
|
402
|
+
var tmp = this.m3s($this$on, originalRequest, $completion);
|
|
403
|
+
tmp.w8_1 = Unit_instance;
|
|
404
|
+
tmp.x8_1 = null;
|
|
405
|
+
return tmp.c9();
|
|
416
406
|
};
|
|
417
|
-
protoOf(Auth$lambda$slambda_1).
|
|
407
|
+
protoOf(Auth$lambda$slambda_1).p9 = function (p1, p2, $completion) {
|
|
418
408
|
var tmp = p1 instanceof Sender ? p1 : THROW_CCE();
|
|
419
|
-
return this.
|
|
409
|
+
return this.l3s(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
420
410
|
};
|
|
421
|
-
protoOf(Auth$lambda$slambda_1).
|
|
422
|
-
var suspendResult = this.
|
|
411
|
+
protoOf(Auth$lambda$slambda_1).c9 = function () {
|
|
412
|
+
var suspendResult = this.w8_1;
|
|
423
413
|
$sm: do
|
|
424
414
|
try {
|
|
425
|
-
var tmp = this.
|
|
415
|
+
var tmp = this.u8_1;
|
|
426
416
|
switch (tmp) {
|
|
427
417
|
case 0:
|
|
428
|
-
this.
|
|
429
|
-
this.
|
|
430
|
-
suspendResult = this.
|
|
418
|
+
this.v8_1 = 10;
|
|
419
|
+
this.u8_1 = 1;
|
|
420
|
+
suspendResult = this.h4k_1.p3s(this.i4k_1, this);
|
|
431
421
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
432
422
|
return suspendResult;
|
|
433
423
|
}
|
|
434
424
|
|
|
435
425
|
continue $sm;
|
|
436
426
|
case 1:
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
439
|
-
suspendResult = this.
|
|
427
|
+
this.n4k_1 = suspendResult;
|
|
428
|
+
this.u8_1 = 2;
|
|
429
|
+
suspendResult = this.d4k_1.g3l_1.y4h_1(this.n4k_1.d3c(), this);
|
|
440
430
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
441
431
|
return suspendResult;
|
|
442
432
|
}
|
|
443
433
|
|
|
444
434
|
continue $sm;
|
|
445
435
|
case 2:
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
return this.m4v_1;
|
|
436
|
+
if (!suspendResult) {
|
|
437
|
+
return this.n4k_1;
|
|
449
438
|
} else {
|
|
450
|
-
this.
|
|
439
|
+
this.u8_1 = 3;
|
|
451
440
|
continue $sm;
|
|
452
441
|
}
|
|
453
442
|
|
|
454
443
|
case 3:
|
|
455
|
-
if (this.
|
|
456
|
-
return this.
|
|
457
|
-
this.
|
|
458
|
-
this.
|
|
459
|
-
this.
|
|
444
|
+
if (this.n4k_1.l3e().m3e().a2i(get_AuthCircuitBreaker()))
|
|
445
|
+
return this.n4k_1;
|
|
446
|
+
this.j4k_1 = this.n4k_1;
|
|
447
|
+
this.m4k_1 = HashSet_init_$Create$(this.e4k_1);
|
|
448
|
+
this.u8_1 = 4;
|
|
460
449
|
continue $sm;
|
|
461
450
|
case 4:
|
|
462
|
-
this.
|
|
463
|
-
suspendResult = this.
|
|
451
|
+
this.u8_1 = 5;
|
|
452
|
+
suspendResult = this.d4k_1.g3l_1.y4h_1(this.j4k_1.d3c(), this);
|
|
464
453
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
465
454
|
return suspendResult;
|
|
466
455
|
}
|
|
@@ -468,92 +457,90 @@
|
|
|
468
457
|
continue $sm;
|
|
469
458
|
case 5:
|
|
470
459
|
if (!suspendResult) {
|
|
471
|
-
this.
|
|
460
|
+
this.u8_1 = 9;
|
|
472
461
|
continue $sm;
|
|
473
462
|
}
|
|
474
463
|
|
|
475
464
|
var this_0 = get_LOGGER();
|
|
476
465
|
if (get_isTraceEnabled(this_0)) {
|
|
477
|
-
this_0.
|
|
466
|
+
this_0.s2q('Unauthorized response for ' + this.j4k_1.l3e().u3e().toString());
|
|
478
467
|
}
|
|
479
468
|
|
|
480
|
-
var
|
|
481
|
-
var
|
|
482
|
-
var tmp_1;
|
|
469
|
+
var tmp0_elvis_lhs = invoke$findProvider(this.j4k_1, this.m4k_1);
|
|
470
|
+
var tmp_0;
|
|
483
471
|
if (tmp0_elvis_lhs == null) {
|
|
484
|
-
this.
|
|
472
|
+
this.h4k_1;
|
|
485
473
|
var this_1 = get_LOGGER();
|
|
486
474
|
if (get_isTraceEnabled(this_1)) {
|
|
487
|
-
this_1.
|
|
475
|
+
this_1.s2q('Can not find auth provider for ' + this.j4k_1.l3e().u3e().toString());
|
|
488
476
|
}
|
|
489
|
-
return this.
|
|
477
|
+
return this.j4k_1;
|
|
490
478
|
} else {
|
|
491
|
-
|
|
479
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
492
480
|
}
|
|
493
481
|
|
|
494
|
-
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
482
|
+
var _destruct__k2r9zo = tmp_0;
|
|
483
|
+
this.l4k_1 = _destruct__k2r9zo.ig();
|
|
484
|
+
this.k4k_1 = _destruct__k2r9zo.jg();
|
|
497
485
|
var this_2 = get_LOGGER();
|
|
498
486
|
if (get_isTraceEnabled(this_2)) {
|
|
499
|
-
this_2.
|
|
487
|
+
this_2.s2q('Using provider ' + toString(this.l4k_1) + ' for ' + this.j4k_1.l3e().u3e().toString());
|
|
500
488
|
}
|
|
501
489
|
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
504
|
-
suspendResult = invoke$refreshTokenIfNeeded(this.
|
|
490
|
+
this.m4k_1.p2(this.l4k_1);
|
|
491
|
+
this.u8_1 = 6;
|
|
492
|
+
suspendResult = invoke$refreshTokenIfNeeded(this.f4k_1, this.g4k_1, this.j4k_1, this.l4k_1, this.i4k_1, this);
|
|
505
493
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
506
494
|
return suspendResult;
|
|
507
495
|
}
|
|
508
496
|
|
|
509
497
|
continue $sm;
|
|
510
498
|
case 6:
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
return this.o4v_1;
|
|
499
|
+
if (!suspendResult) {
|
|
500
|
+
return this.j4k_1;
|
|
514
501
|
} else {
|
|
515
|
-
this.
|
|
502
|
+
this.u8_1 = 7;
|
|
516
503
|
continue $sm;
|
|
517
504
|
}
|
|
518
505
|
|
|
519
506
|
case 7:
|
|
520
|
-
this.
|
|
521
|
-
suspendResult = invoke$executeWithNewToken(this.
|
|
507
|
+
this.u8_1 = 8;
|
|
508
|
+
suspendResult = invoke$executeWithNewToken(this.h4k_1, this.j4k_1, this.l4k_1, this.i4k_1, this.k4k_1, this);
|
|
522
509
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
523
510
|
return suspendResult;
|
|
524
511
|
}
|
|
525
512
|
|
|
526
513
|
continue $sm;
|
|
527
514
|
case 8:
|
|
528
|
-
this.
|
|
529
|
-
this.
|
|
515
|
+
this.j4k_1 = suspendResult;
|
|
516
|
+
this.u8_1 = 4;
|
|
530
517
|
continue $sm;
|
|
531
518
|
case 9:
|
|
532
|
-
return this.
|
|
519
|
+
return this.j4k_1;
|
|
533
520
|
case 10:
|
|
534
|
-
throw this.
|
|
521
|
+
throw this.x8_1;
|
|
535
522
|
}
|
|
536
523
|
} catch ($p) {
|
|
537
524
|
var e = $p;
|
|
538
|
-
if (this.
|
|
525
|
+
if (this.v8_1 === 10) {
|
|
539
526
|
throw e;
|
|
540
527
|
} else {
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
528
|
+
this.u8_1 = this.v8_1;
|
|
529
|
+
this.x8_1 = e;
|
|
543
530
|
}
|
|
544
531
|
}
|
|
545
532
|
while (true);
|
|
546
533
|
};
|
|
547
|
-
protoOf(Auth$lambda$slambda_1).
|
|
548
|
-
var i = new Auth$lambda$slambda_1(this.
|
|
549
|
-
i.
|
|
550
|
-
i.
|
|
534
|
+
protoOf(Auth$lambda$slambda_1).m3s = function ($this$on, originalRequest, completion) {
|
|
535
|
+
var i = new Auth$lambda$slambda_1(this.d4k_1, this.e4k_1, this.f4k_1, this.g4k_1, completion);
|
|
536
|
+
i.h4k_1 = $this$on;
|
|
537
|
+
i.i4k_1 = originalRequest;
|
|
551
538
|
return i;
|
|
552
539
|
};
|
|
553
540
|
function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
554
541
|
var i = new Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
555
542
|
var l = function ($this$on, originalRequest, $completion) {
|
|
556
|
-
return i.
|
|
543
|
+
return i.l3s($this$on, originalRequest, $completion);
|
|
557
544
|
};
|
|
558
545
|
l.$arity = 2;
|
|
559
546
|
return l;
|
|
@@ -569,111 +556,110 @@
|
|
|
569
556
|
}
|
|
570
557
|
function $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, resultContinuation) {
|
|
571
558
|
CoroutineImpl.call(this, resultContinuation);
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
559
|
+
this.j4i_1 = tokenVersions;
|
|
560
|
+
this.k4i_1 = tokenVersionsAttributeKey;
|
|
561
|
+
this.l4i_1 = call;
|
|
562
|
+
this.m4i_1 = provider;
|
|
563
|
+
this.n4i_1 = request;
|
|
577
564
|
}
|
|
578
|
-
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).
|
|
579
|
-
var suspendResult = this.
|
|
565
|
+
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).c9 = function () {
|
|
566
|
+
var suspendResult = this.w8_1;
|
|
580
567
|
$sm: do
|
|
581
568
|
try {
|
|
582
|
-
var tmp = this.
|
|
569
|
+
var tmp = this.u8_1;
|
|
583
570
|
switch (tmp) {
|
|
584
571
|
case 0:
|
|
585
|
-
this.
|
|
572
|
+
this.v8_1 = 4;
|
|
586
573
|
var tmp_0 = this;
|
|
587
|
-
tmp_0.
|
|
574
|
+
tmp_0.o4i_1 = this.j4i_1.h2q(this.m4i_1, Auth$lambda$refreshTokenIfNeeded$lambda);
|
|
588
575
|
var tmp_1 = this;
|
|
589
|
-
tmp_1.
|
|
590
|
-
|
|
591
|
-
if (!(
|
|
576
|
+
tmp_1.p4i_1 = this.n4i_1.i3d_1.d2i(this.k4i_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
|
|
577
|
+
var requestTokenVersion = this.p4i_1.o2(this.m4i_1);
|
|
578
|
+
if (!(requestTokenVersion == null) && requestTokenVersion >= this.o4i_1.z4h_1.kotlinx$atomicfu$value) {
|
|
592
579
|
var this_0 = get_LOGGER();
|
|
593
580
|
if (get_isTraceEnabled(this_0)) {
|
|
594
|
-
this_0.
|
|
581
|
+
this_0.s2q('Refreshing token for ' + this.l4i_1.l3e().u3e().toString());
|
|
595
582
|
}
|
|
596
|
-
this.
|
|
597
|
-
suspendResult = this.
|
|
583
|
+
this.u8_1 = 1;
|
|
584
|
+
suspendResult = this.m4i_1.o4k(this.l4i_1.d3c(), this);
|
|
598
585
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
599
586
|
return suspendResult;
|
|
600
587
|
}
|
|
601
588
|
continue $sm;
|
|
602
589
|
} else {
|
|
603
|
-
this.
|
|
590
|
+
this.u8_1 = 3;
|
|
604
591
|
continue $sm;
|
|
605
592
|
}
|
|
606
593
|
|
|
607
594
|
case 1:
|
|
608
|
-
|
|
609
|
-
if (!ARGUMENT) {
|
|
595
|
+
if (!suspendResult) {
|
|
610
596
|
var this_1 = get_LOGGER();
|
|
611
597
|
if (get_isTraceEnabled(this_1)) {
|
|
612
|
-
this_1.
|
|
598
|
+
this_1.s2q('Refreshing token failed for ' + this.l4i_1.l3e().u3e().toString());
|
|
613
599
|
}
|
|
614
600
|
return false;
|
|
615
601
|
} else {
|
|
616
|
-
var tmp0 = this.
|
|
617
|
-
var tmp2 = this.
|
|
618
|
-
var value = this.
|
|
619
|
-
tmp0.
|
|
620
|
-
this.
|
|
602
|
+
var tmp0 = this.p4i_1;
|
|
603
|
+
var tmp2 = this.m4i_1;
|
|
604
|
+
var value = this.o4i_1.z4h_1.atomicfu$incrementAndGet();
|
|
605
|
+
tmp0.g2(tmp2, value);
|
|
606
|
+
this.u8_1 = 2;
|
|
621
607
|
continue $sm;
|
|
622
608
|
}
|
|
623
609
|
|
|
624
610
|
case 2:
|
|
625
|
-
this.
|
|
611
|
+
this.u8_1 = 3;
|
|
626
612
|
continue $sm;
|
|
627
613
|
case 3:
|
|
628
614
|
return true;
|
|
629
615
|
case 4:
|
|
630
|
-
throw this.
|
|
616
|
+
throw this.x8_1;
|
|
631
617
|
}
|
|
632
618
|
} catch ($p) {
|
|
633
619
|
var e = $p;
|
|
634
|
-
if (this.
|
|
620
|
+
if (this.v8_1 === 4) {
|
|
635
621
|
throw e;
|
|
636
622
|
} else {
|
|
637
|
-
this.
|
|
638
|
-
this.
|
|
623
|
+
this.u8_1 = this.v8_1;
|
|
624
|
+
this.x8_1 = e;
|
|
639
625
|
}
|
|
640
626
|
}
|
|
641
627
|
while (true);
|
|
642
628
|
};
|
|
643
629
|
function $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, resultContinuation) {
|
|
644
630
|
CoroutineImpl.call(this, resultContinuation);
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
631
|
+
this.y4i_1 = _this__u8e3s4;
|
|
632
|
+
this.z4i_1 = call;
|
|
633
|
+
this.a4j_1 = provider;
|
|
634
|
+
this.b4j_1 = oldRequest;
|
|
635
|
+
this.c4j_1 = authHeader;
|
|
650
636
|
}
|
|
651
|
-
protoOf($invoke$executeWithNewTokenCOROUTINE$).
|
|
652
|
-
var suspendResult = this.
|
|
637
|
+
protoOf($invoke$executeWithNewTokenCOROUTINE$).c9 = function () {
|
|
638
|
+
var suspendResult = this.w8_1;
|
|
653
639
|
$sm: do
|
|
654
640
|
try {
|
|
655
|
-
var tmp = this.
|
|
641
|
+
var tmp = this.u8_1;
|
|
656
642
|
switch (tmp) {
|
|
657
643
|
case 0:
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
661
|
-
this.
|
|
662
|
-
suspendResult = this.
|
|
644
|
+
this.v8_1 = 3;
|
|
645
|
+
this.d4j_1 = new HttpRequestBuilder();
|
|
646
|
+
this.d4j_1.v3i(this.b4j_1);
|
|
647
|
+
this.u8_1 = 1;
|
|
648
|
+
suspendResult = this.a4j_1.p4k(this.d4j_1, this.c4j_1, this);
|
|
663
649
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
664
650
|
return suspendResult;
|
|
665
651
|
}
|
|
666
652
|
|
|
667
653
|
continue $sm;
|
|
668
654
|
case 1:
|
|
669
|
-
this.
|
|
655
|
+
this.d4j_1.i3d_1.b2i(get_AuthCircuitBreaker(), Unit_instance);
|
|
670
656
|
var this_0 = get_LOGGER();
|
|
671
657
|
if (get_isTraceEnabled(this_0)) {
|
|
672
|
-
this_0.
|
|
658
|
+
this_0.s2q('Sending new request to ' + this.z4i_1.l3e().u3e().toString());
|
|
673
659
|
}
|
|
674
660
|
|
|
675
|
-
this.
|
|
676
|
-
suspendResult = this.
|
|
661
|
+
this.u8_1 = 2;
|
|
662
|
+
suspendResult = this.y4i_1.p3s(this.d4j_1, this);
|
|
677
663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
678
664
|
return suspendResult;
|
|
679
665
|
}
|
|
@@ -682,15 +668,15 @@
|
|
|
682
668
|
case 2:
|
|
683
669
|
return suspendResult;
|
|
684
670
|
case 3:
|
|
685
|
-
throw this.
|
|
671
|
+
throw this.x8_1;
|
|
686
672
|
}
|
|
687
673
|
} catch ($p) {
|
|
688
674
|
var e = $p;
|
|
689
|
-
if (this.
|
|
675
|
+
if (this.v8_1 === 3) {
|
|
690
676
|
throw e;
|
|
691
677
|
} else {
|
|
692
|
-
this.
|
|
693
|
-
this.
|
|
678
|
+
this.u8_1 = this.v8_1;
|
|
679
|
+
this.x8_1 = e;
|
|
694
680
|
}
|
|
695
681
|
}
|
|
696
682
|
while (true);
|
|
@@ -756,32 +742,32 @@
|
|
|
756
742
|
}
|
|
757
743
|
function SetTokenContext() {
|
|
758
744
|
}
|
|
759
|
-
protoOf(SetTokenContext).
|
|
745
|
+
protoOf(SetTokenContext).z = function () {
|
|
760
746
|
return Companion_instance;
|
|
761
747
|
};
|
|
762
748
|
function AuthTokenHolder$setToken$slambda($block, resultContinuation) {
|
|
763
|
-
this.
|
|
749
|
+
this.z4k_1 = $block;
|
|
764
750
|
CoroutineImpl.call(this, resultContinuation);
|
|
765
751
|
}
|
|
766
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
767
|
-
var tmp = this.
|
|
768
|
-
tmp.
|
|
769
|
-
tmp.
|
|
770
|
-
return tmp.
|
|
752
|
+
protoOf(AuthTokenHolder$setToken$slambda).b4l = function ($this$withContext, $completion) {
|
|
753
|
+
var tmp = this.j1v($this$withContext, $completion);
|
|
754
|
+
tmp.w8_1 = Unit_instance;
|
|
755
|
+
tmp.x8_1 = null;
|
|
756
|
+
return tmp.c9();
|
|
771
757
|
};
|
|
772
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
773
|
-
return this.
|
|
758
|
+
protoOf(AuthTokenHolder$setToken$slambda).o9 = function (p1, $completion) {
|
|
759
|
+
return this.b4l((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
774
760
|
};
|
|
775
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
776
|
-
var suspendResult = this.
|
|
761
|
+
protoOf(AuthTokenHolder$setToken$slambda).c9 = function () {
|
|
762
|
+
var suspendResult = this.w8_1;
|
|
777
763
|
$sm: do
|
|
778
764
|
try {
|
|
779
|
-
var tmp = this.
|
|
765
|
+
var tmp = this.u8_1;
|
|
780
766
|
switch (tmp) {
|
|
781
767
|
case 0:
|
|
782
|
-
this.
|
|
783
|
-
this.
|
|
784
|
-
suspendResult = this.
|
|
768
|
+
this.v8_1 = 2;
|
|
769
|
+
this.u8_1 = 1;
|
|
770
|
+
suspendResult = this.z4k_1(this);
|
|
785
771
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
786
772
|
return suspendResult;
|
|
787
773
|
}
|
|
@@ -790,62 +776,60 @@
|
|
|
790
776
|
case 1:
|
|
791
777
|
return suspendResult;
|
|
792
778
|
case 2:
|
|
793
|
-
throw this.
|
|
779
|
+
throw this.x8_1;
|
|
794
780
|
}
|
|
795
781
|
} catch ($p) {
|
|
796
782
|
var e = $p;
|
|
797
|
-
if (this.
|
|
783
|
+
if (this.v8_1 === 2) {
|
|
798
784
|
throw e;
|
|
799
785
|
} else {
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
786
|
+
this.u8_1 = this.v8_1;
|
|
787
|
+
this.x8_1 = e;
|
|
802
788
|
}
|
|
803
789
|
}
|
|
804
790
|
while (true);
|
|
805
791
|
};
|
|
806
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
807
|
-
var i = new AuthTokenHolder$setToken$slambda(this.
|
|
808
|
-
i.
|
|
792
|
+
protoOf(AuthTokenHolder$setToken$slambda).j1v = function ($this$withContext, completion) {
|
|
793
|
+
var i = new AuthTokenHolder$setToken$slambda(this.z4k_1, completion);
|
|
794
|
+
i.a4l_1 = $this$withContext;
|
|
809
795
|
return i;
|
|
810
796
|
};
|
|
811
797
|
function AuthTokenHolder$setToken$slambda_0($block, resultContinuation) {
|
|
812
798
|
var i = new AuthTokenHolder$setToken$slambda($block, resultContinuation);
|
|
813
799
|
var l = function ($this$withContext, $completion) {
|
|
814
|
-
return i.
|
|
800
|
+
return i.b4l($this$withContext, $completion);
|
|
815
801
|
};
|
|
816
802
|
l.$arity = 1;
|
|
817
803
|
return l;
|
|
818
804
|
}
|
|
819
805
|
function $loadTokenCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
820
806
|
CoroutineImpl.call(this, resultContinuation);
|
|
821
|
-
this.
|
|
807
|
+
this.k4l_1 = _this__u8e3s4;
|
|
822
808
|
}
|
|
823
|
-
protoOf($loadTokenCOROUTINE$).
|
|
824
|
-
var suspendResult = this.
|
|
809
|
+
protoOf($loadTokenCOROUTINE$).c9 = function () {
|
|
810
|
+
var suspendResult = this.w8_1;
|
|
825
811
|
$sm: do
|
|
826
812
|
try {
|
|
827
|
-
var tmp = this.
|
|
813
|
+
var tmp = this.u8_1;
|
|
828
814
|
switch (tmp) {
|
|
829
815
|
case 0:
|
|
830
|
-
this.
|
|
831
|
-
if (!(this.
|
|
832
|
-
return this.
|
|
833
|
-
this.
|
|
834
|
-
if (!(this.
|
|
835
|
-
this.
|
|
836
|
-
suspendResult = this.
|
|
816
|
+
this.v8_1 = 12;
|
|
817
|
+
if (!(this.k4l_1.r4l_1 == null))
|
|
818
|
+
return this.k4l_1.r4l_1;
|
|
819
|
+
this.p4l_1 = this.k4l_1.r4l_1;
|
|
820
|
+
if (!(this.a9().h9(Companion_instance) == null)) {
|
|
821
|
+
this.u8_1 = 10;
|
|
822
|
+
suspendResult = this.k4l_1.q4l_1(this);
|
|
837
823
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
838
824
|
return suspendResult;
|
|
839
825
|
}
|
|
840
826
|
continue $sm;
|
|
841
827
|
} else {
|
|
828
|
+
this.n4l_1 = this.k4l_1.t4l_1;
|
|
842
829
|
var tmp_0 = this;
|
|
843
|
-
tmp_0.
|
|
844
|
-
this.
|
|
845
|
-
|
|
846
|
-
tmp_1.v4w_1 = null;
|
|
847
|
-
this.n9_1 = 1;
|
|
848
|
-
suspendResult = this.u4w_1.e1g(this.v4w_1, this);
|
|
830
|
+
tmp_0.m4l_1 = null;
|
|
831
|
+
this.u8_1 = 1;
|
|
832
|
+
suspendResult = this.n4l_1.l1h(this.m4l_1, this);
|
|
849
833
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
850
834
|
return suspendResult;
|
|
851
835
|
}
|
|
@@ -853,211 +837,208 @@
|
|
|
853
837
|
}
|
|
854
838
|
|
|
855
839
|
case 1:
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
840
|
+
this.o4l_1 = Unit_instance;
|
|
841
|
+
this.u8_1 = 2;
|
|
858
842
|
continue $sm;
|
|
859
843
|
case 2:
|
|
860
|
-
this.
|
|
861
|
-
this.
|
|
862
|
-
this.
|
|
844
|
+
this.v8_1 = 9;
|
|
845
|
+
this.k4l_1.s4l_1 = true;
|
|
846
|
+
this.u8_1 = 3;
|
|
863
847
|
continue $sm;
|
|
864
848
|
case 3:
|
|
865
|
-
this.
|
|
866
|
-
if (equals(this.
|
|
867
|
-
this.
|
|
868
|
-
suspendResult = this.
|
|
849
|
+
this.v8_1 = 8;
|
|
850
|
+
if (equals(this.p4l_1, this.k4l_1.r4l_1)) {
|
|
851
|
+
this.u8_1 = 4;
|
|
852
|
+
suspendResult = this.k4l_1.q4l_1(this);
|
|
869
853
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
870
854
|
return suspendResult;
|
|
871
855
|
}
|
|
872
856
|
continue $sm;
|
|
873
857
|
} else {
|
|
874
|
-
this.
|
|
858
|
+
this.u8_1 = 5;
|
|
875
859
|
continue $sm;
|
|
876
860
|
}
|
|
877
861
|
|
|
878
862
|
case 4:
|
|
879
863
|
var ARGUMENT = suspendResult;
|
|
880
|
-
this.
|
|
881
|
-
this.
|
|
864
|
+
this.k4l_1.r4l_1 = ARGUMENT;
|
|
865
|
+
this.u8_1 = 5;
|
|
882
866
|
continue $sm;
|
|
883
867
|
case 5:
|
|
884
|
-
this.
|
|
885
|
-
this.n9_1 = 6;
|
|
868
|
+
this.u8_1 = 6;
|
|
886
869
|
continue $sm;
|
|
887
870
|
case 6:
|
|
888
|
-
this.
|
|
889
|
-
this.
|
|
890
|
-
this.
|
|
891
|
-
this.
|
|
892
|
-
this.
|
|
871
|
+
this.v8_1 = 9;
|
|
872
|
+
this.k4l_1.s4l_1 = false;
|
|
873
|
+
this.o4l_1 = this.k4l_1.r4l_1;
|
|
874
|
+
this.v8_1 = 12;
|
|
875
|
+
this.u8_1 = 7;
|
|
893
876
|
continue $sm;
|
|
894
877
|
case 7:
|
|
895
|
-
var
|
|
896
|
-
this.
|
|
897
|
-
this.
|
|
898
|
-
this.
|
|
899
|
-
this.
|
|
878
|
+
var tmp_1 = this.o4l_1;
|
|
879
|
+
this.v8_1 = 12;
|
|
880
|
+
this.n4l_1.x1g(this.m4l_1);
|
|
881
|
+
this.l4l_1 = tmp_1;
|
|
882
|
+
this.u8_1 = 11;
|
|
900
883
|
continue $sm;
|
|
901
884
|
case 8:
|
|
902
|
-
this.
|
|
903
|
-
var t = this.
|
|
904
|
-
this.
|
|
885
|
+
this.v8_1 = 9;
|
|
886
|
+
var t = this.x8_1;
|
|
887
|
+
this.k4l_1.s4l_1 = false;
|
|
905
888
|
throw t;
|
|
906
889
|
case 9:
|
|
907
|
-
this.
|
|
908
|
-
var t_0 = this.
|
|
909
|
-
this.
|
|
890
|
+
this.v8_1 = 12;
|
|
891
|
+
var t_0 = this.x8_1;
|
|
892
|
+
this.n4l_1.x1g(this.m4l_1);
|
|
910
893
|
throw t_0;
|
|
911
894
|
case 10:
|
|
912
895
|
var ARGUMENT_0 = suspendResult;
|
|
913
|
-
this.
|
|
914
|
-
this.
|
|
915
|
-
this.
|
|
896
|
+
this.k4l_1.r4l_1 = ARGUMENT_0;
|
|
897
|
+
this.l4l_1 = this.k4l_1.r4l_1;
|
|
898
|
+
this.u8_1 = 11;
|
|
916
899
|
continue $sm;
|
|
917
900
|
case 11:
|
|
918
|
-
return this.
|
|
901
|
+
return this.l4l_1;
|
|
919
902
|
case 12:
|
|
920
|
-
throw this.
|
|
903
|
+
throw this.x8_1;
|
|
921
904
|
}
|
|
922
905
|
} catch ($p) {
|
|
923
906
|
var e = $p;
|
|
924
|
-
if (this.
|
|
907
|
+
if (this.v8_1 === 12) {
|
|
925
908
|
throw e;
|
|
926
909
|
} else {
|
|
927
|
-
this.
|
|
928
|
-
this.
|
|
910
|
+
this.u8_1 = this.v8_1;
|
|
911
|
+
this.x8_1 = e;
|
|
929
912
|
}
|
|
930
913
|
}
|
|
931
914
|
while (true);
|
|
932
915
|
};
|
|
933
916
|
function $setTokenCOROUTINE$(_this__u8e3s4, block, resultContinuation) {
|
|
934
917
|
CoroutineImpl.call(this, resultContinuation);
|
|
935
|
-
this.
|
|
936
|
-
this.
|
|
918
|
+
this.d4m_1 = _this__u8e3s4;
|
|
919
|
+
this.e4m_1 = block;
|
|
937
920
|
}
|
|
938
|
-
protoOf($setTokenCOROUTINE$).
|
|
939
|
-
var suspendResult = this.
|
|
921
|
+
protoOf($setTokenCOROUTINE$).c9 = function () {
|
|
922
|
+
var suspendResult = this.w8_1;
|
|
940
923
|
$sm: do
|
|
941
924
|
try {
|
|
942
|
-
var tmp = this.
|
|
925
|
+
var tmp = this.u8_1;
|
|
943
926
|
switch (tmp) {
|
|
944
927
|
case 0:
|
|
945
|
-
this.
|
|
946
|
-
this.
|
|
947
|
-
this.
|
|
928
|
+
this.v8_1 = 7;
|
|
929
|
+
this.j4m_1 = this.d4m_1.r4l_1;
|
|
930
|
+
this.i4m_1 = this.d4m_1.s4l_1;
|
|
931
|
+
this.g4m_1 = this.d4m_1.t4l_1;
|
|
948
932
|
var tmp_0 = this;
|
|
949
|
-
tmp_0.
|
|
950
|
-
this.
|
|
951
|
-
|
|
952
|
-
tmp_1.r4x_1 = null;
|
|
953
|
-
this.n9_1 = 1;
|
|
954
|
-
suspendResult = this.q4x_1.e1g(this.r4x_1, this);
|
|
933
|
+
tmp_0.f4m_1 = null;
|
|
934
|
+
this.u8_1 = 1;
|
|
935
|
+
suspendResult = this.g4m_1.l1h(this.f4m_1, this);
|
|
955
936
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
956
937
|
return suspendResult;
|
|
957
938
|
}
|
|
958
939
|
|
|
959
940
|
continue $sm;
|
|
960
941
|
case 1:
|
|
961
|
-
this.
|
|
962
|
-
this.
|
|
942
|
+
this.h4m_1 = Unit_instance;
|
|
943
|
+
this.u8_1 = 2;
|
|
963
944
|
continue $sm;
|
|
964
945
|
case 2:
|
|
965
|
-
this.
|
|
966
|
-
if (equals(this.
|
|
967
|
-
this.
|
|
968
|
-
var
|
|
969
|
-
suspendResult = withContext(
|
|
946
|
+
this.v8_1 = 6;
|
|
947
|
+
if (equals(this.j4m_1, this.d4m_1.r4l_1) || this.i4m_1) {
|
|
948
|
+
this.u8_1 = 3;
|
|
949
|
+
var tmp_1 = this.a9().gh(this.d4m_1.u4l_1);
|
|
950
|
+
suspendResult = withContext(tmp_1, AuthTokenHolder$setToken$slambda_0(this.e4m_1, null), this);
|
|
970
951
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
971
952
|
return suspendResult;
|
|
972
953
|
}
|
|
973
954
|
continue $sm;
|
|
974
955
|
} else {
|
|
975
|
-
this.
|
|
956
|
+
this.u8_1 = 4;
|
|
976
957
|
continue $sm;
|
|
977
958
|
}
|
|
978
959
|
|
|
979
960
|
case 3:
|
|
980
961
|
var ARGUMENT = suspendResult;
|
|
981
|
-
this.
|
|
982
|
-
this.
|
|
962
|
+
this.d4m_1.r4l_1 = ARGUMENT;
|
|
963
|
+
this.u8_1 = 4;
|
|
983
964
|
continue $sm;
|
|
984
965
|
case 4:
|
|
985
|
-
this.
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
966
|
+
this.h4m_1 = this.d4m_1.r4l_1;
|
|
967
|
+
this.v8_1 = 7;
|
|
968
|
+
this.u8_1 = 5;
|
|
988
969
|
continue $sm;
|
|
989
970
|
case 5:
|
|
990
|
-
var
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
993
|
-
return
|
|
971
|
+
var tmp_2 = this.h4m_1;
|
|
972
|
+
this.v8_1 = 7;
|
|
973
|
+
this.g4m_1.x1g(this.f4m_1);
|
|
974
|
+
return tmp_2;
|
|
994
975
|
case 6:
|
|
995
|
-
this.
|
|
996
|
-
var t = this.
|
|
997
|
-
this.
|
|
976
|
+
this.v8_1 = 7;
|
|
977
|
+
var t = this.x8_1;
|
|
978
|
+
this.g4m_1.x1g(this.f4m_1);
|
|
998
979
|
throw t;
|
|
999
980
|
case 7:
|
|
1000
|
-
throw this.
|
|
981
|
+
throw this.x8_1;
|
|
1001
982
|
}
|
|
1002
983
|
} catch ($p) {
|
|
1003
984
|
var e = $p;
|
|
1004
|
-
if (this.
|
|
985
|
+
if (this.v8_1 === 7) {
|
|
1005
986
|
throw e;
|
|
1006
987
|
} else {
|
|
1007
|
-
this.
|
|
1008
|
-
this.
|
|
988
|
+
this.u8_1 = this.v8_1;
|
|
989
|
+
this.x8_1 = e;
|
|
1009
990
|
}
|
|
1010
991
|
}
|
|
1011
992
|
while (true);
|
|
1012
993
|
};
|
|
1013
994
|
function AuthTokenHolder(loadTokens) {
|
|
1014
|
-
this.
|
|
1015
|
-
this.
|
|
1016
|
-
this.
|
|
1017
|
-
this.
|
|
1018
|
-
this.
|
|
995
|
+
this.q4l_1 = loadTokens;
|
|
996
|
+
this.r4l_1 = null;
|
|
997
|
+
this.s4l_1 = false;
|
|
998
|
+
this.t4l_1 = Mutex();
|
|
999
|
+
this.u4l_1 = new SetTokenContext();
|
|
1019
1000
|
}
|
|
1020
|
-
protoOf(AuthTokenHolder).
|
|
1001
|
+
protoOf(AuthTokenHolder).k4m = function ($completion) {
|
|
1021
1002
|
var tmp = new $loadTokenCOROUTINE$(this, $completion);
|
|
1022
|
-
tmp.
|
|
1023
|
-
tmp.
|
|
1024
|
-
return tmp.
|
|
1003
|
+
tmp.w8_1 = Unit_instance;
|
|
1004
|
+
tmp.x8_1 = null;
|
|
1005
|
+
return tmp.c9();
|
|
1025
1006
|
};
|
|
1026
|
-
protoOf(AuthTokenHolder).
|
|
1007
|
+
protoOf(AuthTokenHolder).l4m = function (block, $completion) {
|
|
1027
1008
|
var tmp = new $setTokenCOROUTINE$(this, block, $completion);
|
|
1028
|
-
tmp.
|
|
1029
|
-
tmp.
|
|
1030
|
-
return tmp.
|
|
1009
|
+
tmp.w8_1 = Unit_instance;
|
|
1010
|
+
tmp.x8_1 = null;
|
|
1011
|
+
return tmp.c9();
|
|
1031
1012
|
};
|
|
1032
1013
|
function bearer(_this__u8e3s4, block) {
|
|
1033
1014
|
// Inline function 'kotlin.apply' call
|
|
1034
1015
|
var this_0 = new BearerAuthConfig();
|
|
1035
1016
|
block(this_0);
|
|
1036
1017
|
// Inline function 'kotlin.with' call
|
|
1037
|
-
_this__u8e3s4.
|
|
1018
|
+
_this__u8e3s4.x4h_1.p(new BearerAuthProvider(this_0.m4m_1, this_0.n4m_1, this_0.o4m_1, this_0.p4m_1));
|
|
1038
1019
|
}
|
|
1039
1020
|
function BearerAuthConfig$refreshTokens$slambda(resultContinuation) {
|
|
1040
1021
|
CoroutineImpl.call(this, resultContinuation);
|
|
1041
1022
|
}
|
|
1042
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1043
|
-
var tmp = this.
|
|
1044
|
-
tmp.
|
|
1045
|
-
tmp.
|
|
1046
|
-
return tmp.
|
|
1023
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).z4m = function (_this__u8e3s4, $completion) {
|
|
1024
|
+
var tmp = this.a4n(_this__u8e3s4, $completion);
|
|
1025
|
+
tmp.w8_1 = Unit_instance;
|
|
1026
|
+
tmp.x8_1 = null;
|
|
1027
|
+
return tmp.c9();
|
|
1047
1028
|
};
|
|
1048
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1049
|
-
return this.
|
|
1029
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).o9 = function (p1, $completion) {
|
|
1030
|
+
return this.z4m(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
|
|
1050
1031
|
};
|
|
1051
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1052
|
-
var suspendResult = this.
|
|
1032
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).c9 = function () {
|
|
1033
|
+
var suspendResult = this.w8_1;
|
|
1053
1034
|
$sm: do
|
|
1054
1035
|
try {
|
|
1055
|
-
var tmp = this.
|
|
1036
|
+
var tmp = this.u8_1;
|
|
1056
1037
|
if (tmp === 0) {
|
|
1057
|
-
this.
|
|
1038
|
+
this.v8_1 = 1;
|
|
1058
1039
|
return null;
|
|
1059
1040
|
} else if (tmp === 1) {
|
|
1060
|
-
throw this.
|
|
1041
|
+
throw this.x8_1;
|
|
1061
1042
|
}
|
|
1062
1043
|
} catch ($p) {
|
|
1063
1044
|
var e = $p;
|
|
@@ -1065,15 +1046,15 @@
|
|
|
1065
1046
|
}
|
|
1066
1047
|
while (true);
|
|
1067
1048
|
};
|
|
1068
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1049
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).a4n = function (_this__u8e3s4, completion) {
|
|
1069
1050
|
var i = new BearerAuthConfig$refreshTokens$slambda(completion);
|
|
1070
|
-
i.
|
|
1051
|
+
i.y4m_1 = _this__u8e3s4;
|
|
1071
1052
|
return i;
|
|
1072
1053
|
};
|
|
1073
1054
|
function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
|
|
1074
1055
|
var i = new BearerAuthConfig$refreshTokens$slambda(resultContinuation);
|
|
1075
1056
|
var l = function (_this__u8e3s4, $completion) {
|
|
1076
|
-
return i.
|
|
1057
|
+
return i.z4m(_this__u8e3s4, $completion);
|
|
1077
1058
|
};
|
|
1078
1059
|
l.$arity = 1;
|
|
1079
1060
|
return l;
|
|
@@ -1081,25 +1062,25 @@
|
|
|
1081
1062
|
function BearerAuthConfig$loadTokens$slambda(resultContinuation) {
|
|
1082
1063
|
CoroutineImpl.call(this, resultContinuation);
|
|
1083
1064
|
}
|
|
1084
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1085
|
-
var tmp = this.
|
|
1086
|
-
tmp.
|
|
1087
|
-
tmp.
|
|
1088
|
-
return tmp.
|
|
1065
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).j4n = function ($completion) {
|
|
1066
|
+
var tmp = this.k4n($completion);
|
|
1067
|
+
tmp.w8_1 = Unit_instance;
|
|
1068
|
+
tmp.x8_1 = null;
|
|
1069
|
+
return tmp.c9();
|
|
1089
1070
|
};
|
|
1090
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1091
|
-
return this.
|
|
1071
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).la = function ($completion) {
|
|
1072
|
+
return this.j4n($completion);
|
|
1092
1073
|
};
|
|
1093
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1094
|
-
var suspendResult = this.
|
|
1074
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).c9 = function () {
|
|
1075
|
+
var suspendResult = this.w8_1;
|
|
1095
1076
|
$sm: do
|
|
1096
1077
|
try {
|
|
1097
|
-
var tmp = this.
|
|
1078
|
+
var tmp = this.u8_1;
|
|
1098
1079
|
if (tmp === 0) {
|
|
1099
|
-
this.
|
|
1080
|
+
this.v8_1 = 1;
|
|
1100
1081
|
return null;
|
|
1101
1082
|
} else if (tmp === 1) {
|
|
1102
|
-
throw this.
|
|
1083
|
+
throw this.x8_1;
|
|
1103
1084
|
}
|
|
1104
1085
|
} catch ($p) {
|
|
1105
1086
|
var e = $p;
|
|
@@ -1107,13 +1088,13 @@
|
|
|
1107
1088
|
}
|
|
1108
1089
|
while (true);
|
|
1109
1090
|
};
|
|
1110
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1091
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).k4n = function (completion) {
|
|
1111
1092
|
return new BearerAuthConfig$loadTokens$slambda(completion);
|
|
1112
1093
|
};
|
|
1113
1094
|
function BearerAuthConfig$loadTokens$slambda_0(resultContinuation) {
|
|
1114
1095
|
var i = new BearerAuthConfig$loadTokens$slambda(resultContinuation);
|
|
1115
1096
|
var l = function ($completion) {
|
|
1116
|
-
return i.
|
|
1097
|
+
return i.j4n($completion);
|
|
1117
1098
|
};
|
|
1118
1099
|
l.$arity = 0;
|
|
1119
1100
|
return l;
|
|
@@ -1123,83 +1104,83 @@
|
|
|
1123
1104
|
}
|
|
1124
1105
|
function BearerAuthConfig() {
|
|
1125
1106
|
var tmp = this;
|
|
1126
|
-
tmp.
|
|
1107
|
+
tmp.m4m_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
|
|
1127
1108
|
var tmp_0 = this;
|
|
1128
|
-
tmp_0.
|
|
1109
|
+
tmp_0.n4m_1 = BearerAuthConfig$loadTokens$slambda_0(null);
|
|
1129
1110
|
var tmp_1 = this;
|
|
1130
|
-
tmp_1.
|
|
1131
|
-
this.
|
|
1111
|
+
tmp_1.o4m_1 = BearerAuthConfig$sendWithoutRequest$lambda;
|
|
1112
|
+
this.p4m_1 = null;
|
|
1132
1113
|
}
|
|
1133
|
-
protoOf(BearerAuthConfig).
|
|
1134
|
-
this.
|
|
1114
|
+
protoOf(BearerAuthConfig).l4n = function (block) {
|
|
1115
|
+
this.m4m_1 = block;
|
|
1135
1116
|
};
|
|
1136
1117
|
function RefreshTokensParams(client, response, oldTokens) {
|
|
1137
|
-
this.
|
|
1138
|
-
this.
|
|
1139
|
-
this.
|
|
1118
|
+
this.m4n_1 = client;
|
|
1119
|
+
this.n4n_1 = response;
|
|
1120
|
+
this.o4n_1 = oldTokens;
|
|
1140
1121
|
}
|
|
1141
|
-
protoOf(RefreshTokensParams).
|
|
1142
|
-
_this__u8e3s4.
|
|
1122
|
+
protoOf(RefreshTokensParams).p4n = function (_this__u8e3s4) {
|
|
1123
|
+
_this__u8e3s4.i3d_1.b2i(get_AuthCircuitBreaker(), Unit_instance);
|
|
1143
1124
|
};
|
|
1144
1125
|
function BearerTokens(accessToken, refreshToken) {
|
|
1145
|
-
this.
|
|
1146
|
-
this.
|
|
1126
|
+
this.q4n_1 = accessToken;
|
|
1127
|
+
this.r4n_1 = refreshToken;
|
|
1147
1128
|
}
|
|
1148
1129
|
function BearerAuthProvider$_init_$lambda_lcdiwf(it) {
|
|
1149
1130
|
return true;
|
|
1150
1131
|
}
|
|
1151
1132
|
function BearerAuthProvider$addRequestHeaders$lambda($token, $request) {
|
|
1152
1133
|
return function ($this$headers) {
|
|
1153
|
-
var tokenValue = 'Bearer ' + $token.
|
|
1134
|
+
var tokenValue = 'Bearer ' + $token.q4n_1;
|
|
1154
1135
|
var tmp;
|
|
1155
|
-
if ($this$headers.
|
|
1156
|
-
$this$headers.
|
|
1136
|
+
if ($this$headers.x2l(HttpHeaders_getInstance().t2t_1)) {
|
|
1137
|
+
$this$headers.m2m(HttpHeaders_getInstance().t2t_1);
|
|
1157
1138
|
tmp = Unit_instance;
|
|
1158
1139
|
}
|
|
1159
1140
|
var tmp_0;
|
|
1160
|
-
if (!$request.
|
|
1161
|
-
$this$headers.
|
|
1141
|
+
if (!$request.i3d_1.a2i(get_AuthCircuitBreaker())) {
|
|
1142
|
+
$this$headers.y2l(HttpHeaders_getInstance().t2t_1, tokenValue);
|
|
1162
1143
|
tmp_0 = Unit_instance;
|
|
1163
1144
|
}
|
|
1164
1145
|
return Unit_instance;
|
|
1165
1146
|
};
|
|
1166
1147
|
}
|
|
1167
1148
|
function BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation) {
|
|
1168
|
-
this.
|
|
1169
|
-
this.
|
|
1149
|
+
this.a4o_1 = this$0;
|
|
1150
|
+
this.b4o_1 = $response;
|
|
1170
1151
|
CoroutineImpl.call(this, resultContinuation);
|
|
1171
1152
|
}
|
|
1172
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1173
|
-
var tmp = this.
|
|
1174
|
-
tmp.
|
|
1175
|
-
tmp.
|
|
1176
|
-
return tmp.
|
|
1153
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).e4o = function ($completion) {
|
|
1154
|
+
var tmp = this.k4n($completion);
|
|
1155
|
+
tmp.w8_1 = Unit_instance;
|
|
1156
|
+
tmp.x8_1 = null;
|
|
1157
|
+
return tmp.c9();
|
|
1177
1158
|
};
|
|
1178
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1179
|
-
return this.
|
|
1159
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).la = function ($completion) {
|
|
1160
|
+
return this.e4o($completion);
|
|
1180
1161
|
};
|
|
1181
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1182
|
-
var suspendResult = this.
|
|
1162
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).c9 = function () {
|
|
1163
|
+
var suspendResult = this.w8_1;
|
|
1183
1164
|
$sm: do
|
|
1184
1165
|
try {
|
|
1185
|
-
var tmp = this.
|
|
1166
|
+
var tmp = this.u8_1;
|
|
1186
1167
|
switch (tmp) {
|
|
1187
1168
|
case 0:
|
|
1188
|
-
this.
|
|
1189
|
-
this.
|
|
1190
|
-
this.
|
|
1191
|
-
this.
|
|
1192
|
-
suspendResult = this.
|
|
1169
|
+
this.v8_1 = 3;
|
|
1170
|
+
this.c4o_1 = this.a4o_1.f4o_1;
|
|
1171
|
+
this.d4o_1 = this.b4o_1.s3e().y3b_1;
|
|
1172
|
+
this.u8_1 = 1;
|
|
1173
|
+
suspendResult = this.a4o_1.i4o_1.k4m(this);
|
|
1193
1174
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1194
1175
|
return suspendResult;
|
|
1195
1176
|
}
|
|
1196
1177
|
|
|
1197
1178
|
continue $sm;
|
|
1198
1179
|
case 1:
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
this.
|
|
1202
|
-
suspendResult = this.
|
|
1180
|
+
var ARGUMENT = suspendResult;
|
|
1181
|
+
var ARGUMENT_0 = new RefreshTokensParams(this.d4o_1, this.b4o_1, ARGUMENT);
|
|
1182
|
+
this.u8_1 = 2;
|
|
1183
|
+
suspendResult = this.c4o_1(ARGUMENT_0, this);
|
|
1203
1184
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1204
1185
|
return suspendResult;
|
|
1205
1186
|
}
|
|
@@ -1208,46 +1189,46 @@
|
|
|
1208
1189
|
case 2:
|
|
1209
1190
|
return suspendResult;
|
|
1210
1191
|
case 3:
|
|
1211
|
-
throw this.
|
|
1192
|
+
throw this.x8_1;
|
|
1212
1193
|
}
|
|
1213
1194
|
} catch ($p) {
|
|
1214
1195
|
var e = $p;
|
|
1215
|
-
if (this.
|
|
1196
|
+
if (this.v8_1 === 3) {
|
|
1216
1197
|
throw e;
|
|
1217
1198
|
} else {
|
|
1218
|
-
this.
|
|
1219
|
-
this.
|
|
1199
|
+
this.u8_1 = this.v8_1;
|
|
1200
|
+
this.x8_1 = e;
|
|
1220
1201
|
}
|
|
1221
1202
|
}
|
|
1222
1203
|
while (true);
|
|
1223
1204
|
};
|
|
1224
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1225
|
-
return new BearerAuthProvider$refreshToken$slambda(this.
|
|
1205
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).k4n = function (completion) {
|
|
1206
|
+
return new BearerAuthProvider$refreshToken$slambda(this.a4o_1, this.b4o_1, completion);
|
|
1226
1207
|
};
|
|
1227
1208
|
function BearerAuthProvider$refreshToken$slambda_0(this$0, $response, resultContinuation) {
|
|
1228
1209
|
var i = new BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation);
|
|
1229
1210
|
var l = function ($completion) {
|
|
1230
|
-
return i.
|
|
1211
|
+
return i.e4o($completion);
|
|
1231
1212
|
};
|
|
1232
1213
|
l.$arity = 0;
|
|
1233
1214
|
return l;
|
|
1234
1215
|
}
|
|
1235
1216
|
function $addRequestHeadersCOROUTINE$(_this__u8e3s4, request, authHeader, resultContinuation) {
|
|
1236
1217
|
CoroutineImpl.call(this, resultContinuation);
|
|
1237
|
-
this.
|
|
1238
|
-
this.
|
|
1239
|
-
this.
|
|
1218
|
+
this.r4o_1 = _this__u8e3s4;
|
|
1219
|
+
this.s4o_1 = request;
|
|
1220
|
+
this.t4o_1 = authHeader;
|
|
1240
1221
|
}
|
|
1241
|
-
protoOf($addRequestHeadersCOROUTINE$).
|
|
1242
|
-
var suspendResult = this.
|
|
1222
|
+
protoOf($addRequestHeadersCOROUTINE$).c9 = function () {
|
|
1223
|
+
var suspendResult = this.w8_1;
|
|
1243
1224
|
$sm: do
|
|
1244
1225
|
try {
|
|
1245
|
-
var tmp = this.
|
|
1226
|
+
var tmp = this.u8_1;
|
|
1246
1227
|
switch (tmp) {
|
|
1247
1228
|
case 0:
|
|
1248
|
-
this.
|
|
1249
|
-
this.
|
|
1250
|
-
suspendResult = this.
|
|
1229
|
+
this.v8_1 = 2;
|
|
1230
|
+
this.u8_1 = 1;
|
|
1231
|
+
suspendResult = this.r4o_1.i4o_1.k4m(this);
|
|
1251
1232
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1252
1233
|
return suspendResult;
|
|
1253
1234
|
}
|
|
@@ -1263,37 +1244,37 @@
|
|
|
1263
1244
|
}
|
|
1264
1245
|
|
|
1265
1246
|
var token = tmp_0;
|
|
1266
|
-
headers(this.
|
|
1247
|
+
headers(this.s4o_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.s4o_1));
|
|
1267
1248
|
return Unit_instance;
|
|
1268
1249
|
case 2:
|
|
1269
|
-
throw this.
|
|
1250
|
+
throw this.x8_1;
|
|
1270
1251
|
}
|
|
1271
1252
|
} catch ($p) {
|
|
1272
1253
|
var e = $p;
|
|
1273
|
-
if (this.
|
|
1254
|
+
if (this.v8_1 === 2) {
|
|
1274
1255
|
throw e;
|
|
1275
1256
|
} else {
|
|
1276
|
-
this.
|
|
1277
|
-
this.
|
|
1257
|
+
this.u8_1 = this.v8_1;
|
|
1258
|
+
this.x8_1 = e;
|
|
1278
1259
|
}
|
|
1279
1260
|
}
|
|
1280
1261
|
while (true);
|
|
1281
1262
|
};
|
|
1282
1263
|
function $refreshTokenCOROUTINE$(_this__u8e3s4, response, resultContinuation) {
|
|
1283
1264
|
CoroutineImpl.call(this, resultContinuation);
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1265
|
+
this.c4p_1 = _this__u8e3s4;
|
|
1266
|
+
this.d4p_1 = response;
|
|
1286
1267
|
}
|
|
1287
|
-
protoOf($refreshTokenCOROUTINE$).
|
|
1288
|
-
var suspendResult = this.
|
|
1268
|
+
protoOf($refreshTokenCOROUTINE$).c9 = function () {
|
|
1269
|
+
var suspendResult = this.w8_1;
|
|
1289
1270
|
$sm: do
|
|
1290
1271
|
try {
|
|
1291
|
-
var tmp = this.
|
|
1272
|
+
var tmp = this.u8_1;
|
|
1292
1273
|
switch (tmp) {
|
|
1293
1274
|
case 0:
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1296
|
-
suspendResult = this.
|
|
1275
|
+
this.v8_1 = 2;
|
|
1276
|
+
this.u8_1 = 1;
|
|
1277
|
+
suspendResult = this.c4p_1.i4o_1.l4m(BearerAuthProvider$refreshToken$slambda_0(this.c4p_1, this.d4p_1, null), this);
|
|
1297
1278
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1298
1279
|
return suspendResult;
|
|
1299
1280
|
}
|
|
@@ -1303,15 +1284,15 @@
|
|
|
1303
1284
|
var newToken = suspendResult;
|
|
1304
1285
|
return !(newToken == null);
|
|
1305
1286
|
case 2:
|
|
1306
|
-
throw this.
|
|
1287
|
+
throw this.x8_1;
|
|
1307
1288
|
}
|
|
1308
1289
|
} catch ($p) {
|
|
1309
1290
|
var e = $p;
|
|
1310
|
-
if (this.
|
|
1291
|
+
if (this.v8_1 === 2) {
|
|
1311
1292
|
throw e;
|
|
1312
1293
|
} else {
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1294
|
+
this.u8_1 = this.v8_1;
|
|
1295
|
+
this.x8_1 = e;
|
|
1315
1296
|
}
|
|
1316
1297
|
}
|
|
1317
1298
|
while (true);
|
|
@@ -1324,57 +1305,57 @@
|
|
|
1324
1305
|
tmp = sendWithoutRequestCallback;
|
|
1325
1306
|
}
|
|
1326
1307
|
sendWithoutRequestCallback = tmp;
|
|
1327
|
-
this.
|
|
1328
|
-
this.
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1308
|
+
this.f4o_1 = refreshTokens;
|
|
1309
|
+
this.g4o_1 = sendWithoutRequestCallback;
|
|
1310
|
+
this.h4o_1 = realm;
|
|
1311
|
+
this.i4o_1 = new AuthTokenHolder(loadTokens);
|
|
1331
1312
|
}
|
|
1332
|
-
protoOf(BearerAuthProvider).
|
|
1313
|
+
protoOf(BearerAuthProvider).q4k = function () {
|
|
1333
1314
|
var message = 'Deprecated';
|
|
1334
1315
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1335
1316
|
};
|
|
1336
|
-
protoOf(BearerAuthProvider).
|
|
1337
|
-
return this.
|
|
1317
|
+
protoOf(BearerAuthProvider).t4j = function (request) {
|
|
1318
|
+
return this.g4o_1(request);
|
|
1338
1319
|
};
|
|
1339
|
-
protoOf(BearerAuthProvider).
|
|
1340
|
-
if (!(auth.
|
|
1341
|
-
get_LOGGER().
|
|
1320
|
+
protoOf(BearerAuthProvider).a4i = function (auth) {
|
|
1321
|
+
if (!(auth.z32_1 === 'Bearer')) {
|
|
1322
|
+
get_LOGGER().s2q('Bearer Auth Provider is not applicable for ' + auth.toString());
|
|
1342
1323
|
return false;
|
|
1343
1324
|
}
|
|
1344
1325
|
var tmp;
|
|
1345
|
-
if (this.
|
|
1326
|
+
if (this.h4o_1 == null) {
|
|
1346
1327
|
tmp = true;
|
|
1347
1328
|
} else {
|
|
1348
1329
|
if (!(auth instanceof Parameterized)) {
|
|
1349
1330
|
tmp = false;
|
|
1350
1331
|
} else {
|
|
1351
|
-
tmp = auth.
|
|
1332
|
+
tmp = auth.f2t('realm') == this.h4o_1;
|
|
1352
1333
|
}
|
|
1353
1334
|
}
|
|
1354
1335
|
var isSameRealm = tmp;
|
|
1355
1336
|
if (!isSameRealm) {
|
|
1356
|
-
get_LOGGER().
|
|
1337
|
+
get_LOGGER().s2q('Bearer Auth Provider is not applicable for this realm');
|
|
1357
1338
|
}
|
|
1358
1339
|
return isSameRealm;
|
|
1359
1340
|
};
|
|
1360
|
-
protoOf(BearerAuthProvider).
|
|
1341
|
+
protoOf(BearerAuthProvider).p4k = function (request, authHeader, $completion) {
|
|
1361
1342
|
var tmp = new $addRequestHeadersCOROUTINE$(this, request, authHeader, $completion);
|
|
1362
|
-
tmp.
|
|
1363
|
-
tmp.
|
|
1364
|
-
return tmp.
|
|
1343
|
+
tmp.w8_1 = Unit_instance;
|
|
1344
|
+
tmp.x8_1 = null;
|
|
1345
|
+
return tmp.c9();
|
|
1365
1346
|
};
|
|
1366
|
-
protoOf(BearerAuthProvider).
|
|
1347
|
+
protoOf(BearerAuthProvider).o4k = function (response, $completion) {
|
|
1367
1348
|
var tmp = new $refreshTokenCOROUTINE$(this, response, $completion);
|
|
1368
|
-
tmp.
|
|
1369
|
-
tmp.
|
|
1370
|
-
return tmp.
|
|
1349
|
+
tmp.w8_1 = Unit_instance;
|
|
1350
|
+
tmp.x8_1 = null;
|
|
1351
|
+
return tmp.c9();
|
|
1371
1352
|
};
|
|
1372
1353
|
//region block: post-declaration
|
|
1373
|
-
protoOf(SetTokenContext).
|
|
1374
|
-
protoOf(SetTokenContext).
|
|
1375
|
-
protoOf(SetTokenContext).
|
|
1376
|
-
protoOf(SetTokenContext).
|
|
1377
|
-
protoOf(BearerAuthProvider).
|
|
1354
|
+
protoOf(SetTokenContext).h9 = get;
|
|
1355
|
+
protoOf(SetTokenContext).fh = fold;
|
|
1356
|
+
protoOf(SetTokenContext).eh = minusKey;
|
|
1357
|
+
protoOf(SetTokenContext).gh = plus;
|
|
1358
|
+
protoOf(BearerAuthProvider).u4j = addRequestHeaders$default;
|
|
1378
1359
|
//endregion
|
|
1379
1360
|
//region block: init
|
|
1380
1361
|
Companion_instance = new Companion();
|