@sddsjs/design-system-builder-cli 0.0.0-stage → 0.2.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/LICENSE +4 -0
- package/README.md +969 -2
- package/bin/dsbuilder.js +2 -0
- package/dist/kotlin/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +3170 -0
- package/dist/kotlin/Stately-stately-concurrency.js +32 -0
- package/dist/kotlin/Stately-stately-concurrent-collections.js +302 -0
- package/dist/kotlin/Stately-stately-strict.js +12 -0
- package/dist/kotlin/clikt-clikt-mordant.js +304 -0
- package/dist/kotlin/clikt-clikt.js +6960 -0
- package/dist/kotlin/colormath-root-colormath.js +1653 -0
- package/dist/kotlin/design-system-builder-frontend-analytics-metrica.js +1026 -0
- package/dist/kotlin/design-system-builder-frontend-cli.js +10690 -0
- package/dist/kotlin/design-system-builder-frontend-core-analytics.js +128 -0
- package/dist/kotlin/design-system-builder-frontend-core-application.js +3634 -0
- package/dist/kotlin/design-system-builder-frontend-core-auth.js +1772 -0
- package/dist/kotlin/design-system-builder-frontend-core-domain.js +501 -0
- package/dist/kotlin/design-system-builder-frontend-core-network.js +3318 -0
- package/dist/kotlin/design-system-builder-frontend-core-platform.js +972 -0
- package/dist/kotlin/design-system-builder-frontend-core-process.js +236 -0
- package/dist/kotlin/design-system-builder-frontend-core-workspace.js +1058 -0
- package/dist/kotlin/design-system-builder-frontend-feature-auth.js +1664 -0
- package/dist/kotlin/design-system-builder-frontend-feature-components.js +24819 -0
- package/dist/kotlin/design-system-builder-frontend-feature-docs.js +7625 -0
- package/dist/kotlin/design-system-builder-frontend-feature-ds.js +2219 -0
- package/dist/kotlin/design-system-builder-frontend-feature-init.js +318 -0
- package/dist/kotlin/design-system-builder-frontend-feature-projects.js +624 -0
- package/dist/kotlin/design-system-builder-frontend-feature-status.js +984 -0
- package/dist/kotlin/design-system-builder-frontend-feature-theme.js +10456 -0
- package/dist/kotlin/design-system-builder-frontend-feature-toolchain.js +586 -0
- package/dist/kotlin/design-system-builder-frontend-mcp-server-core.js +6878 -0
- package/dist/kotlin/design-system-builder-frontend-platform-android.js +451 -0
- package/dist/kotlin/design-system-builder-frontend-platform-ios.js +1858 -0
- package/dist/kotlin/design-system-builder-frontend-platform-web.js +1555 -0
- package/dist/kotlin/design-system-builder-frontend-runtime-node.js +1763 -0
- package/dist/kotlin/kotlin-kotlin-stdlib.js +17881 -0
- package/dist/kotlin/kotlin-logging.js +440 -0
- package/dist/kotlin/kotlin-sdk-kotlin-sdk-core.js +20228 -0
- package/dist/kotlin/kotlin-sdk-kotlin-sdk-server.js +2771 -0
- package/dist/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
- package/dist/kotlin/kotlinx-atomicfu.js +252 -0
- package/dist/kotlin/kotlinx-coroutines-core.js +10822 -0
- package/dist/kotlin/kotlinx-io-kotlinx-io-bytestring.js +203 -0
- package/dist/kotlin/kotlinx-io-kotlinx-io-core.js +2032 -0
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +6171 -0
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +5690 -0
- package/dist/kotlin/ktor-ktor-client-core.js +8382 -0
- package/dist/kotlin/ktor-ktor-events.js +80 -0
- package/dist/kotlin/ktor-ktor-http-cio.js +2252 -0
- package/dist/kotlin/ktor-ktor-http.js +3320 -0
- package/dist/kotlin/ktor-ktor-io.js +3328 -0
- package/dist/kotlin/ktor-ktor-serialization.js +8 -0
- package/dist/kotlin/ktor-ktor-server-core.js +12 -0
- package/dist/kotlin/ktor-ktor-server-sse.js +8 -0
- package/dist/kotlin/ktor-ktor-server-websockets.js +8 -0
- package/dist/kotlin/ktor-ktor-sse.js +8 -0
- package/dist/kotlin/ktor-ktor-utils.js +2524 -0
- package/dist/kotlin/ktor-ktor-websocket-serialization.js +8 -0
- package/dist/kotlin/ktor-ktor-websockets.js +433 -0
- package/dist/kotlin/mordant-mordant-omnibus.js +8 -0
- package/dist/kotlin/mordant-mordant.js +12111 -0
- package/dist/kotlin/okio-parent-okio.js +2335 -0
- package/dist/kotlin/projects-core-koin-core.js +1285 -0
- package/package.json +26 -5
|
@@ -0,0 +1,1772 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var imul = Math.imul;
|
|
5
|
+
var Unit_instance = kotlin_kotlin.$_$.r5;
|
|
6
|
+
var Enum = kotlin_kotlin.$_$.kk;
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.te;
|
|
8
|
+
var initMetadataForClass = kotlin_kotlin.$_$.qd;
|
|
9
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
10
|
+
var getStringHashCode = kotlin_kotlin.$_$.od;
|
|
11
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ud;
|
|
12
|
+
var toString = kotlin_kotlin.$_$.bm;
|
|
13
|
+
var hashCode = kotlin_kotlin.$_$.pd;
|
|
14
|
+
var equals = kotlin_kotlin.$_$.jd;
|
|
15
|
+
var Long = kotlin_kotlin.$_$.qk;
|
|
16
|
+
var equalsLong = kotlin_kotlin.$_$.kc;
|
|
17
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.nk;
|
|
18
|
+
var _ULong___init__impl__c78o9k = kotlin_kotlin.$_$.b4;
|
|
19
|
+
var encodeToByteArray = kotlin_kotlin.$_$.xg;
|
|
20
|
+
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.j3;
|
|
21
|
+
var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.k3;
|
|
22
|
+
var fromInt = kotlin_kotlin.$_$.lc;
|
|
23
|
+
var bitwiseAnd = kotlin_kotlin.$_$.cc;
|
|
24
|
+
var _ULong___get_data__impl__fggpzb = kotlin_kotlin.$_$.c4;
|
|
25
|
+
var bitwiseXor = kotlin_kotlin.$_$.ec;
|
|
26
|
+
var multiply = kotlin_kotlin.$_$.oc;
|
|
27
|
+
var toString_0 = kotlin_kotlin.$_$.hj;
|
|
28
|
+
var CoroutineImpl = kotlin_kotlin.$_$.tb;
|
|
29
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.vd;
|
|
30
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.db;
|
|
31
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.vl;
|
|
32
|
+
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.r;
|
|
33
|
+
var initMetadataForObject = kotlin_kotlin.$_$.wd;
|
|
34
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.rd;
|
|
35
|
+
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
|
|
36
|
+
var THROW_CCE = kotlin_kotlin.$_$.wk;
|
|
37
|
+
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e;
|
|
38
|
+
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p;
|
|
39
|
+
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
40
|
+
var LongSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q;
|
|
41
|
+
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
|
|
42
|
+
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
43
|
+
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
44
|
+
var objectCreate = kotlin_kotlin.$_$.se;
|
|
45
|
+
var isBlank = kotlin_kotlin.$_$.gh;
|
|
46
|
+
var listOfNotNull = kotlin_kotlin.$_$.d9;
|
|
47
|
+
var distinct = kotlin_kotlin.$_$.t7;
|
|
48
|
+
var joinToString = kotlin_kotlin.$_$.r8;
|
|
49
|
+
var RuntimeException = kotlin_kotlin.$_$.vk;
|
|
50
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.k2;
|
|
51
|
+
var captureStack = kotlin_kotlin.$_$.ad;
|
|
52
|
+
var toString_1 = kotlin_kotlin.$_$.we;
|
|
53
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.b2;
|
|
54
|
+
var IllegalStateException = kotlin_kotlin.$_$.ok;
|
|
55
|
+
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.a2;
|
|
56
|
+
var singleOrNull = kotlin_kotlin.$_$.aa;
|
|
57
|
+
var toLongOrNull = kotlin_kotlin.$_$.cj;
|
|
58
|
+
var compare = kotlin_kotlin.$_$.fc;
|
|
59
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1;
|
|
60
|
+
var isInterface = kotlin_kotlin.$_$.fe;
|
|
61
|
+
var delay = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d;
|
|
62
|
+
var Companion_getInstance = kotlin_kotlin.$_$.j5;
|
|
63
|
+
var withTimeoutOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
64
|
+
var addSuppressed = kotlin_kotlin.$_$.il;
|
|
65
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.sd;
|
|
66
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
67
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
68
|
+
var isCharSequence = kotlin_kotlin.$_$.be;
|
|
69
|
+
var trim = kotlin_kotlin.$_$.uj;
|
|
70
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.w2;
|
|
71
|
+
var charArrayOf = kotlin_kotlin.$_$.bd;
|
|
72
|
+
var trimEnd = kotlin_kotlin.$_$.oj;
|
|
73
|
+
var substringBefore = kotlin_kotlin.$_$.oi;
|
|
74
|
+
var substringAfter = kotlin_kotlin.$_$.ni;
|
|
75
|
+
var substringBefore_0 = kotlin_kotlin.$_$.pi;
|
|
76
|
+
var charSequenceLength = kotlin_kotlin.$_$.fd;
|
|
77
|
+
var charSequenceGet = kotlin_kotlin.$_$.ed;
|
|
78
|
+
var contains = kotlin_kotlin.$_$.sg;
|
|
79
|
+
var removeSuffix = kotlin_kotlin.$_$.xh;
|
|
80
|
+
var removePrefix = kotlin_kotlin.$_$.wh;
|
|
81
|
+
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
82
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
83
|
+
var add = kotlin_kotlin.$_$.bc;
|
|
84
|
+
//endregion
|
|
85
|
+
//region block: pre-declaration
|
|
86
|
+
initMetadataForClass(AuthErrorCode, 'AuthErrorCode', VOID, Enum);
|
|
87
|
+
initMetadataForClass(PersonalAccessToken, 'PersonalAccessToken');
|
|
88
|
+
initMetadataForClass(Bearer, 'Bearer');
|
|
89
|
+
initMetadataForClass(ServiceToken, 'ServiceToken');
|
|
90
|
+
function exchangeCode(apiUrl, code, verifier, redirectUri, $completion) {
|
|
91
|
+
return new Failed(AuthErrorCode_AUTH_REQUIRED_getInstance(), 'PKCE \u043D\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D.');
|
|
92
|
+
}
|
|
93
|
+
function username(apiUrl, accessToken, $completion) {
|
|
94
|
+
return new Failed(AuthErrorCode_AUTH_REQUIRED_getInstance(), 'Userinfo \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D.');
|
|
95
|
+
}
|
|
96
|
+
function clientCredentials(apiUrl, clientId, clientSecret, $completion) {
|
|
97
|
+
return new Failed(AuthErrorCode_BACKEND_UNAVAILABLE_getInstance(), 'Error: service account login is not supported.');
|
|
98
|
+
}
|
|
99
|
+
initMetadataForInterface(TokenClient, 'TokenClient', VOID, VOID, VOID, [4, 2, 3]);
|
|
100
|
+
initMetadataForInterface(CredentialStore, 'CredentialStore', VOID, VOID, VOID, [1]);
|
|
101
|
+
initMetadataForClass(Success, 'Success');
|
|
102
|
+
initMetadataForClass(Failed, 'Failed');
|
|
103
|
+
initMetadataForClass(TokenResponse, 'TokenResponse');
|
|
104
|
+
initMetadataForClass(UserSession, 'UserSession');
|
|
105
|
+
initMetadataForInterface(RotatingCredentialStore, 'RotatingCredentialStore', VOID, VOID, [CredentialStore], [2, 1]);
|
|
106
|
+
initMetadataForClass(AccessTokenResponse, 'AccessTokenResponse');
|
|
107
|
+
initMetadataForClass(BackendCredentialType, 'BackendCredentialType', VOID, Enum);
|
|
108
|
+
initMetadataForInterface(EnvironmentReader, 'EnvironmentReader');
|
|
109
|
+
initMetadataForLambda(FileCredentialStore$read$slambda, CoroutineImpl, VOID, [0]);
|
|
110
|
+
initMetadataForLambda(FileCredentialStore$save$slambda, CoroutineImpl, VOID, [0]);
|
|
111
|
+
initMetadataForLambda(FileCredentialStore$delete$slambda, CoroutineImpl, VOID, [0]);
|
|
112
|
+
initMetadataForLambda(FileCredentialStore$logoutSession$slambda, CoroutineImpl, VOID, [0]);
|
|
113
|
+
initMetadataForLambda(FileCredentialStore$refreshSession$slambda, CoroutineImpl, VOID, [0]);
|
|
114
|
+
initMetadataForClass(FileCredentialStore, 'FileCredentialStore', VOID, VOID, [RotatingCredentialStore], [1, 2]);
|
|
115
|
+
initMetadataForObject(NoopCredentialStoreLock, 'NoopCredentialStoreLock', VOID, VOID, VOID, [2]);
|
|
116
|
+
initMetadataForCompanion(Companion);
|
|
117
|
+
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
118
|
+
initMetadataForClass(SessionFile, 'SessionFile', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
119
|
+
initMetadataForClass(PatResolver, 'PatResolver');
|
|
120
|
+
initMetadataForClass(ResolvedPat, 'ResolvedPat');
|
|
121
|
+
initMetadataForClass(MissingPatException, 'MissingPatException', VOID, RuntimeException);
|
|
122
|
+
initMetadataForInterface(PkcePlatform, 'PkcePlatform', VOID, VOID, VOID, [0, 1]);
|
|
123
|
+
initMetadataForClass(PkceChallenge, 'PkceChallenge');
|
|
124
|
+
initMetadataForClass(OAuthCallback, 'OAuthCallback');
|
|
125
|
+
initMetadataForObject(UnavailablePkcePlatform, 'UnavailablePkcePlatform', VOID, VOID, [PkcePlatform], [0, 1]);
|
|
126
|
+
initMetadataForClass(CredentialStoreLockException, 'CredentialStoreLockException', VOID, IllegalStateException);
|
|
127
|
+
initMetadataForLambda(ProcessCredentialStoreLock$withLock$slambda, CoroutineImpl, VOID, [1]);
|
|
128
|
+
initMetadataForCoroutine($withLockCOROUTINE$, CoroutineImpl);
|
|
129
|
+
initMetadataForClass(ProcessCredentialStoreLock, 'ProcessCredentialStoreLock', VOID, VOID, VOID, [2]);
|
|
130
|
+
initMetadataForClass(Entry, 'Entry');
|
|
131
|
+
initMetadataForCoroutine($withSessionLockCOROUTINE$, CoroutineImpl);
|
|
132
|
+
initMetadataForClass(UserAccessTokenCache, 'UserAccessTokenCache', UserAccessTokenCache, VOID, VOID, [1]);
|
|
133
|
+
//endregion
|
|
134
|
+
var AuthErrorCode_AUTH_REQUIRED_instance;
|
|
135
|
+
var AuthErrorCode_PAT_INVALID_instance;
|
|
136
|
+
var AuthErrorCode_FORBIDDEN_instance;
|
|
137
|
+
var AuthErrorCode_BACKEND_UNAVAILABLE_instance;
|
|
138
|
+
var AuthErrorCode_INVALID_AUTH_URL_instance;
|
|
139
|
+
var AuthErrorCode_entriesInitialized;
|
|
140
|
+
function AuthErrorCode_initEntries() {
|
|
141
|
+
if (AuthErrorCode_entriesInitialized)
|
|
142
|
+
return Unit_instance;
|
|
143
|
+
AuthErrorCode_entriesInitialized = true;
|
|
144
|
+
AuthErrorCode_AUTH_REQUIRED_instance = new AuthErrorCode('AUTH_REQUIRED', 0);
|
|
145
|
+
AuthErrorCode_PAT_INVALID_instance = new AuthErrorCode('PAT_INVALID', 1);
|
|
146
|
+
AuthErrorCode_FORBIDDEN_instance = new AuthErrorCode('FORBIDDEN', 2);
|
|
147
|
+
AuthErrorCode_BACKEND_UNAVAILABLE_instance = new AuthErrorCode('BACKEND_UNAVAILABLE', 3);
|
|
148
|
+
AuthErrorCode_INVALID_AUTH_URL_instance = new AuthErrorCode('INVALID_AUTH_URL', 4);
|
|
149
|
+
}
|
|
150
|
+
function AuthErrorCode(name, ordinal) {
|
|
151
|
+
Enum.call(this, name, ordinal);
|
|
152
|
+
}
|
|
153
|
+
function PersonalAccessToken(value) {
|
|
154
|
+
this.n4x_1 = value;
|
|
155
|
+
}
|
|
156
|
+
protoOf(PersonalAccessToken).toString = function () {
|
|
157
|
+
return 'PersonalAccessToken(value=' + this.n4x_1 + ')';
|
|
158
|
+
};
|
|
159
|
+
protoOf(PersonalAccessToken).hashCode = function () {
|
|
160
|
+
return getStringHashCode(this.n4x_1);
|
|
161
|
+
};
|
|
162
|
+
protoOf(PersonalAccessToken).equals = function (other) {
|
|
163
|
+
if (this === other)
|
|
164
|
+
return true;
|
|
165
|
+
if (!(other instanceof PersonalAccessToken))
|
|
166
|
+
return false;
|
|
167
|
+
if (!(this.n4x_1 === other.n4x_1))
|
|
168
|
+
return false;
|
|
169
|
+
return true;
|
|
170
|
+
};
|
|
171
|
+
function Bearer(accessToken) {
|
|
172
|
+
this.o4x_1 = accessToken;
|
|
173
|
+
}
|
|
174
|
+
protoOf(Bearer).toString = function () {
|
|
175
|
+
return 'Bearer(accessToken=' + this.o4x_1 + ')';
|
|
176
|
+
};
|
|
177
|
+
protoOf(Bearer).hashCode = function () {
|
|
178
|
+
return getStringHashCode(this.o4x_1);
|
|
179
|
+
};
|
|
180
|
+
protoOf(Bearer).equals = function (other) {
|
|
181
|
+
if (this === other)
|
|
182
|
+
return true;
|
|
183
|
+
if (!(other instanceof Bearer))
|
|
184
|
+
return false;
|
|
185
|
+
if (!(this.o4x_1 === other.o4x_1))
|
|
186
|
+
return false;
|
|
187
|
+
return true;
|
|
188
|
+
};
|
|
189
|
+
function ServiceToken(accessToken) {
|
|
190
|
+
this.p4x_1 = accessToken;
|
|
191
|
+
}
|
|
192
|
+
protoOf(ServiceToken).toString = function () {
|
|
193
|
+
return 'ServiceToken(accessToken=' + this.p4x_1 + ')';
|
|
194
|
+
};
|
|
195
|
+
protoOf(ServiceToken).hashCode = function () {
|
|
196
|
+
return getStringHashCode(this.p4x_1);
|
|
197
|
+
};
|
|
198
|
+
protoOf(ServiceToken).equals = function (other) {
|
|
199
|
+
if (this === other)
|
|
200
|
+
return true;
|
|
201
|
+
if (!(other instanceof ServiceToken))
|
|
202
|
+
return false;
|
|
203
|
+
if (!(this.p4x_1 === other.p4x_1))
|
|
204
|
+
return false;
|
|
205
|
+
return true;
|
|
206
|
+
};
|
|
207
|
+
function TokenClient() {
|
|
208
|
+
}
|
|
209
|
+
function CredentialStore() {
|
|
210
|
+
}
|
|
211
|
+
function Success(value) {
|
|
212
|
+
this.y4x_1 = value;
|
|
213
|
+
}
|
|
214
|
+
protoOf(Success).toString = function () {
|
|
215
|
+
return 'Success(value=' + toString(this.y4x_1) + ')';
|
|
216
|
+
};
|
|
217
|
+
protoOf(Success).hashCode = function () {
|
|
218
|
+
return this.y4x_1 == null ? 0 : hashCode(this.y4x_1);
|
|
219
|
+
};
|
|
220
|
+
protoOf(Success).equals = function (other) {
|
|
221
|
+
if (this === other)
|
|
222
|
+
return true;
|
|
223
|
+
if (!(other instanceof Success))
|
|
224
|
+
return false;
|
|
225
|
+
if (!equals(this.y4x_1, other.y4x_1))
|
|
226
|
+
return false;
|
|
227
|
+
return true;
|
|
228
|
+
};
|
|
229
|
+
function Failed(code, message) {
|
|
230
|
+
this.z4x_1 = code;
|
|
231
|
+
this.a4y_1 = message;
|
|
232
|
+
}
|
|
233
|
+
protoOf(Failed).toString = function () {
|
|
234
|
+
return 'Failed(code=' + this.z4x_1.toString() + ', message=' + this.a4y_1 + ')';
|
|
235
|
+
};
|
|
236
|
+
protoOf(Failed).hashCode = function () {
|
|
237
|
+
var result = this.z4x_1.hashCode();
|
|
238
|
+
result = imul(result, 31) + getStringHashCode(this.a4y_1) | 0;
|
|
239
|
+
return result;
|
|
240
|
+
};
|
|
241
|
+
protoOf(Failed).equals = function (other) {
|
|
242
|
+
if (this === other)
|
|
243
|
+
return true;
|
|
244
|
+
if (!(other instanceof Failed))
|
|
245
|
+
return false;
|
|
246
|
+
if (!this.z4x_1.equals(other.z4x_1))
|
|
247
|
+
return false;
|
|
248
|
+
if (!(this.a4y_1 === other.a4y_1))
|
|
249
|
+
return false;
|
|
250
|
+
return true;
|
|
251
|
+
};
|
|
252
|
+
function TokenResponse(accessToken, refreshToken, refreshExpiresAt, expiresInSeconds) {
|
|
253
|
+
expiresInSeconds = expiresInSeconds === VOID ? new Long(0, 0) : expiresInSeconds;
|
|
254
|
+
this.b4y_1 = accessToken;
|
|
255
|
+
this.c4y_1 = refreshToken;
|
|
256
|
+
this.d4y_1 = refreshExpiresAt;
|
|
257
|
+
this.e4y_1 = expiresInSeconds;
|
|
258
|
+
}
|
|
259
|
+
protoOf(TokenResponse).toString = function () {
|
|
260
|
+
return 'TokenResponse(accessToken=' + this.b4y_1 + ', refreshToken=' + this.c4y_1 + ', refreshExpiresAt=' + this.d4y_1.toString() + ', expiresInSeconds=' + this.e4y_1.toString() + ')';
|
|
261
|
+
};
|
|
262
|
+
protoOf(TokenResponse).hashCode = function () {
|
|
263
|
+
var result = getStringHashCode(this.b4y_1);
|
|
264
|
+
result = imul(result, 31) + getStringHashCode(this.c4y_1) | 0;
|
|
265
|
+
result = imul(result, 31) + this.d4y_1.hashCode() | 0;
|
|
266
|
+
result = imul(result, 31) + this.e4y_1.hashCode() | 0;
|
|
267
|
+
return result;
|
|
268
|
+
};
|
|
269
|
+
protoOf(TokenResponse).equals = function (other) {
|
|
270
|
+
if (this === other)
|
|
271
|
+
return true;
|
|
272
|
+
if (!(other instanceof TokenResponse))
|
|
273
|
+
return false;
|
|
274
|
+
if (!(this.b4y_1 === other.b4y_1))
|
|
275
|
+
return false;
|
|
276
|
+
if (!(this.c4y_1 === other.c4y_1))
|
|
277
|
+
return false;
|
|
278
|
+
if (!equalsLong(this.d4y_1, other.d4y_1))
|
|
279
|
+
return false;
|
|
280
|
+
if (!equalsLong(this.e4y_1, other.e4y_1))
|
|
281
|
+
return false;
|
|
282
|
+
return true;
|
|
283
|
+
};
|
|
284
|
+
function UserSession(schemaVersion, apiUrl, username, refreshToken, refreshExpiresAt, updatedAt, clientId) {
|
|
285
|
+
clientId = clientId === VOID ? 'dsbuilder-studio-plugin' : clientId;
|
|
286
|
+
this.f4y_1 = schemaVersion;
|
|
287
|
+
this.g4y_1 = apiUrl;
|
|
288
|
+
this.h4y_1 = username;
|
|
289
|
+
this.i4y_1 = refreshToken;
|
|
290
|
+
this.j4y_1 = refreshExpiresAt;
|
|
291
|
+
this.k4y_1 = updatedAt;
|
|
292
|
+
this.l4y_1 = clientId;
|
|
293
|
+
}
|
|
294
|
+
protoOf(UserSession).m4y = function (schemaVersion, apiUrl, username, refreshToken, refreshExpiresAt, updatedAt, clientId) {
|
|
295
|
+
return new UserSession(schemaVersion, apiUrl, username, refreshToken, refreshExpiresAt, updatedAt, clientId);
|
|
296
|
+
};
|
|
297
|
+
protoOf(UserSession).n4y = function (schemaVersion, apiUrl, username, refreshToken, refreshExpiresAt, updatedAt, clientId, $super) {
|
|
298
|
+
schemaVersion = schemaVersion === VOID ? this.f4y_1 : schemaVersion;
|
|
299
|
+
apiUrl = apiUrl === VOID ? this.g4y_1 : apiUrl;
|
|
300
|
+
username = username === VOID ? this.h4y_1 : username;
|
|
301
|
+
refreshToken = refreshToken === VOID ? this.i4y_1 : refreshToken;
|
|
302
|
+
refreshExpiresAt = refreshExpiresAt === VOID ? this.j4y_1 : refreshExpiresAt;
|
|
303
|
+
updatedAt = updatedAt === VOID ? this.k4y_1 : updatedAt;
|
|
304
|
+
clientId = clientId === VOID ? this.l4y_1 : clientId;
|
|
305
|
+
return $super === VOID ? this.m4y(schemaVersion, apiUrl, username, refreshToken, refreshExpiresAt, updatedAt, clientId) : $super.m4y.call(this, schemaVersion, apiUrl, username, refreshToken, refreshExpiresAt, updatedAt, clientId);
|
|
306
|
+
};
|
|
307
|
+
protoOf(UserSession).toString = function () {
|
|
308
|
+
return 'UserSession(schemaVersion=' + this.f4y_1 + ', apiUrl=' + this.g4y_1 + ', username=' + this.h4y_1 + ', refreshToken=' + this.i4y_1 + ', refreshExpiresAt=' + this.j4y_1.toString() + ', updatedAt=' + this.k4y_1.toString() + ', clientId=' + this.l4y_1 + ')';
|
|
309
|
+
};
|
|
310
|
+
protoOf(UserSession).hashCode = function () {
|
|
311
|
+
var result = this.f4y_1;
|
|
312
|
+
result = imul(result, 31) + getStringHashCode(this.g4y_1) | 0;
|
|
313
|
+
result = imul(result, 31) + getStringHashCode(this.h4y_1) | 0;
|
|
314
|
+
result = imul(result, 31) + getStringHashCode(this.i4y_1) | 0;
|
|
315
|
+
result = imul(result, 31) + this.j4y_1.hashCode() | 0;
|
|
316
|
+
result = imul(result, 31) + this.k4y_1.hashCode() | 0;
|
|
317
|
+
result = imul(result, 31) + getStringHashCode(this.l4y_1) | 0;
|
|
318
|
+
return result;
|
|
319
|
+
};
|
|
320
|
+
protoOf(UserSession).equals = function (other) {
|
|
321
|
+
if (this === other)
|
|
322
|
+
return true;
|
|
323
|
+
if (!(other instanceof UserSession))
|
|
324
|
+
return false;
|
|
325
|
+
if (!(this.f4y_1 === other.f4y_1))
|
|
326
|
+
return false;
|
|
327
|
+
if (!(this.g4y_1 === other.g4y_1))
|
|
328
|
+
return false;
|
|
329
|
+
if (!(this.h4y_1 === other.h4y_1))
|
|
330
|
+
return false;
|
|
331
|
+
if (!(this.i4y_1 === other.i4y_1))
|
|
332
|
+
return false;
|
|
333
|
+
if (!equalsLong(this.j4y_1, other.j4y_1))
|
|
334
|
+
return false;
|
|
335
|
+
if (!equalsLong(this.k4y_1, other.k4y_1))
|
|
336
|
+
return false;
|
|
337
|
+
if (!(this.l4y_1 === other.l4y_1))
|
|
338
|
+
return false;
|
|
339
|
+
return true;
|
|
340
|
+
};
|
|
341
|
+
function RotatingCredentialStore() {
|
|
342
|
+
}
|
|
343
|
+
function AccessTokenResponse(accessToken) {
|
|
344
|
+
this.q4y_1 = accessToken;
|
|
345
|
+
}
|
|
346
|
+
protoOf(AccessTokenResponse).toString = function () {
|
|
347
|
+
return 'AccessTokenResponse(accessToken=' + this.q4y_1 + ')';
|
|
348
|
+
};
|
|
349
|
+
protoOf(AccessTokenResponse).hashCode = function () {
|
|
350
|
+
return getStringHashCode(this.q4y_1);
|
|
351
|
+
};
|
|
352
|
+
protoOf(AccessTokenResponse).equals = function (other) {
|
|
353
|
+
if (this === other)
|
|
354
|
+
return true;
|
|
355
|
+
if (!(other instanceof AccessTokenResponse))
|
|
356
|
+
return false;
|
|
357
|
+
if (!(this.q4y_1 === other.q4y_1))
|
|
358
|
+
return false;
|
|
359
|
+
return true;
|
|
360
|
+
};
|
|
361
|
+
var BackendCredentialType_PERSONAL_ACCESS_TOKEN_instance;
|
|
362
|
+
var BackendCredentialType_USER_SESSION_instance;
|
|
363
|
+
var BackendCredentialType_SERVICE_ACCOUNT_instance;
|
|
364
|
+
var BackendCredentialType_entriesInitialized;
|
|
365
|
+
function BackendCredentialType_initEntries() {
|
|
366
|
+
if (BackendCredentialType_entriesInitialized)
|
|
367
|
+
return Unit_instance;
|
|
368
|
+
BackendCredentialType_entriesInitialized = true;
|
|
369
|
+
BackendCredentialType_PERSONAL_ACCESS_TOKEN_instance = new BackendCredentialType('PERSONAL_ACCESS_TOKEN', 0);
|
|
370
|
+
BackendCredentialType_USER_SESSION_instance = new BackendCredentialType('USER_SESSION', 1);
|
|
371
|
+
BackendCredentialType_SERVICE_ACCOUNT_instance = new BackendCredentialType('SERVICE_ACCOUNT', 2);
|
|
372
|
+
}
|
|
373
|
+
function BackendCredentialType(name, ordinal) {
|
|
374
|
+
Enum.call(this, name, ordinal);
|
|
375
|
+
}
|
|
376
|
+
function AuthErrorCode_AUTH_REQUIRED_getInstance() {
|
|
377
|
+
AuthErrorCode_initEntries();
|
|
378
|
+
return AuthErrorCode_AUTH_REQUIRED_instance;
|
|
379
|
+
}
|
|
380
|
+
function AuthErrorCode_PAT_INVALID_getInstance() {
|
|
381
|
+
AuthErrorCode_initEntries();
|
|
382
|
+
return AuthErrorCode_PAT_INVALID_instance;
|
|
383
|
+
}
|
|
384
|
+
function AuthErrorCode_FORBIDDEN_getInstance() {
|
|
385
|
+
AuthErrorCode_initEntries();
|
|
386
|
+
return AuthErrorCode_FORBIDDEN_instance;
|
|
387
|
+
}
|
|
388
|
+
function AuthErrorCode_BACKEND_UNAVAILABLE_getInstance() {
|
|
389
|
+
AuthErrorCode_initEntries();
|
|
390
|
+
return AuthErrorCode_BACKEND_UNAVAILABLE_instance;
|
|
391
|
+
}
|
|
392
|
+
function AuthErrorCode_INVALID_AUTH_URL_getInstance() {
|
|
393
|
+
AuthErrorCode_initEntries();
|
|
394
|
+
return AuthErrorCode_INVALID_AUTH_URL_instance;
|
|
395
|
+
}
|
|
396
|
+
function BackendCredentialType_PERSONAL_ACCESS_TOKEN_getInstance() {
|
|
397
|
+
BackendCredentialType_initEntries();
|
|
398
|
+
return BackendCredentialType_PERSONAL_ACCESS_TOKEN_instance;
|
|
399
|
+
}
|
|
400
|
+
function BackendCredentialType_USER_SESSION_getInstance() {
|
|
401
|
+
BackendCredentialType_initEntries();
|
|
402
|
+
return BackendCredentialType_USER_SESSION_instance;
|
|
403
|
+
}
|
|
404
|
+
function BackendCredentialType_SERVICE_ACCOUNT_getInstance() {
|
|
405
|
+
BackendCredentialType_initEntries();
|
|
406
|
+
return BackendCredentialType_SERVICE_ACCOUNT_instance;
|
|
407
|
+
}
|
|
408
|
+
function EnvironmentReader() {
|
|
409
|
+
}
|
|
410
|
+
function deleteUnlocked($this, apiUrl) {
|
|
411
|
+
var path = sessionPath($this, apiUrl);
|
|
412
|
+
if ($this.r4y_1.v4y(path)) {
|
|
413
|
+
$this.r4y_1.u4y(path);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
function saveUnlocked($this, session) {
|
|
417
|
+
var sessions = sessionsDirectory($this);
|
|
418
|
+
$this.r4y_1.w4y(sessions);
|
|
419
|
+
$this.r4y_1.x4y(sessions, '0700');
|
|
420
|
+
var target = sessionPath($this, session.g4y_1);
|
|
421
|
+
var temp = target + '.tmp';
|
|
422
|
+
$this.r4y_1.y4y(temp, '');
|
|
423
|
+
$this.r4y_1.x4y(temp, '0600');
|
|
424
|
+
$this.r4y_1.y4y(temp, $this.t4y_1.o35(Companion_instance.x37(), toFile(session)));
|
|
425
|
+
$this.r4y_1.z4y(temp, target);
|
|
426
|
+
$this.r4y_1.x4y(target, '0600');
|
|
427
|
+
}
|
|
428
|
+
function decodeSession($this, apiUrl) {
|
|
429
|
+
var path = sessionPath($this, apiUrl);
|
|
430
|
+
var tmp;
|
|
431
|
+
try {
|
|
432
|
+
tmp = $this.t4y_1.p35(Companion_instance.x37(), $this.r4y_1.a4z(path)).i4z();
|
|
433
|
+
} catch ($p) {
|
|
434
|
+
var tmp_0;
|
|
435
|
+
if ($p instanceof IllegalArgumentException) {
|
|
436
|
+
var exception = $p;
|
|
437
|
+
tmp_0 = null;
|
|
438
|
+
} else {
|
|
439
|
+
throw $p;
|
|
440
|
+
}
|
|
441
|
+
tmp = tmp_0;
|
|
442
|
+
}
|
|
443
|
+
var session = tmp;
|
|
444
|
+
var tmp_1;
|
|
445
|
+
var tmp_2;
|
|
446
|
+
var tmp_3;
|
|
447
|
+
if ((session == null ? null : session.f4y_1) === 2) {
|
|
448
|
+
tmp_3 = session.g4y_1 === apiUrl;
|
|
449
|
+
} else {
|
|
450
|
+
tmp_3 = false;
|
|
451
|
+
}
|
|
452
|
+
if (tmp_3) {
|
|
453
|
+
tmp_2 = session.l4y_1 === 'dsbuilder-studio-plugin';
|
|
454
|
+
} else {
|
|
455
|
+
tmp_2 = false;
|
|
456
|
+
}
|
|
457
|
+
if (tmp_2) {
|
|
458
|
+
tmp_1 = session;
|
|
459
|
+
} else {
|
|
460
|
+
tmp_1 = null;
|
|
461
|
+
}
|
|
462
|
+
return tmp_1;
|
|
463
|
+
}
|
|
464
|
+
function sessionsDirectory($this) {
|
|
465
|
+
return $this.r4y_1.k4z($this.r4y_1.k4z($this.r4y_1.j4z(), '.sdds'), 'sessions');
|
|
466
|
+
}
|
|
467
|
+
function sessionPath($this, apiUrl) {
|
|
468
|
+
return $this.r4y_1.k4z(sessionsDirectory($this), stableHash($this, normalizeSessionApiUrl(apiUrl)) + '.json');
|
|
469
|
+
}
|
|
470
|
+
function lockPath($this, apiUrl) {
|
|
471
|
+
return sessionPath($this, apiUrl) + '.lock';
|
|
472
|
+
}
|
|
473
|
+
function stableHash($this, value) {
|
|
474
|
+
var hash = _ULong___init__impl__c78o9k(new Long(-2078137563, -873292572));
|
|
475
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
476
|
+
var indexedObject = encodeToByteArray(value);
|
|
477
|
+
var inductionVariable = 0;
|
|
478
|
+
var last = indexedObject.length;
|
|
479
|
+
while (inductionVariable < last) {
|
|
480
|
+
var element = indexedObject[inductionVariable];
|
|
481
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
482
|
+
var tmp0 = hash;
|
|
483
|
+
// Inline function 'kotlin.toUByte' call
|
|
484
|
+
// Inline function 'kotlin.UByte.toULong' call
|
|
485
|
+
var this_0 = _UByte___init__impl__g9hnc4(element);
|
|
486
|
+
// Inline function 'kotlin.ULong.xor' call
|
|
487
|
+
var other = _ULong___init__impl__c78o9k(bitwiseAnd(fromInt(_UByte___get_data__impl__jof9qr(this_0)), new Long(255, 0)));
|
|
488
|
+
hash = _ULong___init__impl__c78o9k(bitwiseXor(_ULong___get_data__impl__fggpzb(tmp0), _ULong___get_data__impl__fggpzb(other)));
|
|
489
|
+
var tmp0_0 = hash;
|
|
490
|
+
// Inline function 'kotlin.ULong.times' call
|
|
491
|
+
var other_0 = _ULong___init__impl__c78o9k(new Long(435, 256));
|
|
492
|
+
hash = _ULong___init__impl__c78o9k(multiply(_ULong___get_data__impl__fggpzb(tmp0_0), _ULong___get_data__impl__fggpzb(other_0)));
|
|
493
|
+
}
|
|
494
|
+
return toString_0(hash, 16);
|
|
495
|
+
}
|
|
496
|
+
function FileCredentialStore$_init_$lambda_ru13kt($this$Json) {
|
|
497
|
+
$this$Json.j36_1 = true;
|
|
498
|
+
return Unit_instance;
|
|
499
|
+
}
|
|
500
|
+
function FileCredentialStore$read$slambda(this$0, $apiUrl, resultContinuation) {
|
|
501
|
+
this.t4z_1 = this$0;
|
|
502
|
+
this.u4z_1 = $apiUrl;
|
|
503
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
504
|
+
}
|
|
505
|
+
protoOf(FileCredentialStore$read$slambda).v4z = function ($completion) {
|
|
506
|
+
var tmp = this.n4t($completion);
|
|
507
|
+
tmp.y8_1 = Unit_instance;
|
|
508
|
+
tmp.z8_1 = null;
|
|
509
|
+
return tmp.e9();
|
|
510
|
+
};
|
|
511
|
+
protoOf(FileCredentialStore$read$slambda).na = function ($completion) {
|
|
512
|
+
return this.v4z($completion);
|
|
513
|
+
};
|
|
514
|
+
protoOf(FileCredentialStore$read$slambda).e9 = function () {
|
|
515
|
+
var suspendResult = this.y8_1;
|
|
516
|
+
$sm: do
|
|
517
|
+
try {
|
|
518
|
+
var tmp = this.w8_1;
|
|
519
|
+
if (tmp === 0) {
|
|
520
|
+
this.x8_1 = 1;
|
|
521
|
+
return this.t4z_1.w4z(normalizeSessionApiUrl(this.u4z_1));
|
|
522
|
+
} else if (tmp === 1) {
|
|
523
|
+
throw this.z8_1;
|
|
524
|
+
}
|
|
525
|
+
} catch ($p) {
|
|
526
|
+
var e = $p;
|
|
527
|
+
throw e;
|
|
528
|
+
}
|
|
529
|
+
while (true);
|
|
530
|
+
};
|
|
531
|
+
protoOf(FileCredentialStore$read$slambda).n4t = function (completion) {
|
|
532
|
+
return new FileCredentialStore$read$slambda(this.t4z_1, this.u4z_1, completion);
|
|
533
|
+
};
|
|
534
|
+
function FileCredentialStore$read$slambda_0(this$0, $apiUrl, resultContinuation) {
|
|
535
|
+
var i = new FileCredentialStore$read$slambda(this$0, $apiUrl, resultContinuation);
|
|
536
|
+
var l = function ($completion) {
|
|
537
|
+
return i.v4z($completion);
|
|
538
|
+
};
|
|
539
|
+
l.$arity = 0;
|
|
540
|
+
return l;
|
|
541
|
+
}
|
|
542
|
+
function FileCredentialStore$save$slambda(this$0, $session, resultContinuation) {
|
|
543
|
+
this.f50_1 = this$0;
|
|
544
|
+
this.g50_1 = $session;
|
|
545
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
546
|
+
}
|
|
547
|
+
protoOf(FileCredentialStore$save$slambda).w1x = function ($completion) {
|
|
548
|
+
var tmp = this.n4t($completion);
|
|
549
|
+
tmp.y8_1 = Unit_instance;
|
|
550
|
+
tmp.z8_1 = null;
|
|
551
|
+
return tmp.e9();
|
|
552
|
+
};
|
|
553
|
+
protoOf(FileCredentialStore$save$slambda).na = function ($completion) {
|
|
554
|
+
return this.w1x($completion);
|
|
555
|
+
};
|
|
556
|
+
protoOf(FileCredentialStore$save$slambda).e9 = function () {
|
|
557
|
+
var suspendResult = this.y8_1;
|
|
558
|
+
$sm: do
|
|
559
|
+
try {
|
|
560
|
+
var tmp = this.w8_1;
|
|
561
|
+
if (tmp === 0) {
|
|
562
|
+
this.x8_1 = 1;
|
|
563
|
+
saveUnlocked(this.f50_1, this.g50_1.n4y(VOID, normalizeSessionApiUrl(this.g50_1.g4y_1)));
|
|
564
|
+
return Unit_instance;
|
|
565
|
+
} else if (tmp === 1) {
|
|
566
|
+
throw this.z8_1;
|
|
567
|
+
}
|
|
568
|
+
} catch ($p) {
|
|
569
|
+
var e = $p;
|
|
570
|
+
throw e;
|
|
571
|
+
}
|
|
572
|
+
while (true);
|
|
573
|
+
};
|
|
574
|
+
protoOf(FileCredentialStore$save$slambda).n4t = function (completion) {
|
|
575
|
+
return new FileCredentialStore$save$slambda(this.f50_1, this.g50_1, completion);
|
|
576
|
+
};
|
|
577
|
+
function FileCredentialStore$save$slambda_0(this$0, $session, resultContinuation) {
|
|
578
|
+
var i = new FileCredentialStore$save$slambda(this$0, $session, resultContinuation);
|
|
579
|
+
var l = function ($completion) {
|
|
580
|
+
return i.w1x($completion);
|
|
581
|
+
};
|
|
582
|
+
l.$arity = 0;
|
|
583
|
+
return l;
|
|
584
|
+
}
|
|
585
|
+
function FileCredentialStore$delete$slambda(this$0, $apiUrl, resultContinuation) {
|
|
586
|
+
this.p50_1 = this$0;
|
|
587
|
+
this.q50_1 = $apiUrl;
|
|
588
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
589
|
+
}
|
|
590
|
+
protoOf(FileCredentialStore$delete$slambda).w1x = function ($completion) {
|
|
591
|
+
var tmp = this.n4t($completion);
|
|
592
|
+
tmp.y8_1 = Unit_instance;
|
|
593
|
+
tmp.z8_1 = null;
|
|
594
|
+
return tmp.e9();
|
|
595
|
+
};
|
|
596
|
+
protoOf(FileCredentialStore$delete$slambda).na = function ($completion) {
|
|
597
|
+
return this.w1x($completion);
|
|
598
|
+
};
|
|
599
|
+
protoOf(FileCredentialStore$delete$slambda).e9 = function () {
|
|
600
|
+
var suspendResult = this.y8_1;
|
|
601
|
+
$sm: do
|
|
602
|
+
try {
|
|
603
|
+
var tmp = this.w8_1;
|
|
604
|
+
if (tmp === 0) {
|
|
605
|
+
this.x8_1 = 1;
|
|
606
|
+
deleteUnlocked(this.p50_1, this.q50_1);
|
|
607
|
+
return Unit_instance;
|
|
608
|
+
} else if (tmp === 1) {
|
|
609
|
+
throw this.z8_1;
|
|
610
|
+
}
|
|
611
|
+
} catch ($p) {
|
|
612
|
+
var e = $p;
|
|
613
|
+
throw e;
|
|
614
|
+
}
|
|
615
|
+
while (true);
|
|
616
|
+
};
|
|
617
|
+
protoOf(FileCredentialStore$delete$slambda).n4t = function (completion) {
|
|
618
|
+
return new FileCredentialStore$delete$slambda(this.p50_1, this.q50_1, completion);
|
|
619
|
+
};
|
|
620
|
+
function FileCredentialStore$delete$slambda_0(this$0, $apiUrl, resultContinuation) {
|
|
621
|
+
var i = new FileCredentialStore$delete$slambda(this$0, $apiUrl, resultContinuation);
|
|
622
|
+
var l = function ($completion) {
|
|
623
|
+
return i.w1x($completion);
|
|
624
|
+
};
|
|
625
|
+
l.$arity = 0;
|
|
626
|
+
return l;
|
|
627
|
+
}
|
|
628
|
+
function FileCredentialStore$logoutSession$slambda(this$0, $apiUrl, $revoke, resultContinuation) {
|
|
629
|
+
this.z50_1 = this$0;
|
|
630
|
+
this.a51_1 = $apiUrl;
|
|
631
|
+
this.b51_1 = $revoke;
|
|
632
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
633
|
+
}
|
|
634
|
+
protoOf(FileCredentialStore$logoutSession$slambda).e51 = function ($completion) {
|
|
635
|
+
var tmp = this.n4t($completion);
|
|
636
|
+
tmp.y8_1 = Unit_instance;
|
|
637
|
+
tmp.z8_1 = null;
|
|
638
|
+
return tmp.e9();
|
|
639
|
+
};
|
|
640
|
+
protoOf(FileCredentialStore$logoutSession$slambda).na = function ($completion) {
|
|
641
|
+
return this.e51($completion);
|
|
642
|
+
};
|
|
643
|
+
protoOf(FileCredentialStore$logoutSession$slambda).e9 = function () {
|
|
644
|
+
var suspendResult = this.y8_1;
|
|
645
|
+
$sm: do
|
|
646
|
+
try {
|
|
647
|
+
var tmp = this.w8_1;
|
|
648
|
+
switch (tmp) {
|
|
649
|
+
case 0:
|
|
650
|
+
this.x8_1 = 6;
|
|
651
|
+
this.w8_1 = 1;
|
|
652
|
+
continue $sm;
|
|
653
|
+
case 1:
|
|
654
|
+
this.x8_1 = 5;
|
|
655
|
+
var session = this.z50_1.w4z(normalizeSessionApiUrl(this.a51_1));
|
|
656
|
+
if (session == null) {
|
|
657
|
+
this.d51_1 = new Success(Unit_instance);
|
|
658
|
+
this.w8_1 = 3;
|
|
659
|
+
continue $sm;
|
|
660
|
+
} else {
|
|
661
|
+
this.w8_1 = 2;
|
|
662
|
+
suspendResult = this.b51_1(session, this);
|
|
663
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
664
|
+
return suspendResult;
|
|
665
|
+
}
|
|
666
|
+
continue $sm;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
case 2:
|
|
670
|
+
this.d51_1 = suspendResult;
|
|
671
|
+
this.w8_1 = 3;
|
|
672
|
+
continue $sm;
|
|
673
|
+
case 3:
|
|
674
|
+
this.c51_1 = this.d51_1;
|
|
675
|
+
this.x8_1 = 6;
|
|
676
|
+
this.w8_1 = 4;
|
|
677
|
+
continue $sm;
|
|
678
|
+
case 4:
|
|
679
|
+
var tmp_0 = this.c51_1;
|
|
680
|
+
this.x8_1 = 6;
|
|
681
|
+
deleteUnlocked(this.z50_1, this.a51_1);
|
|
682
|
+
return tmp_0;
|
|
683
|
+
case 5:
|
|
684
|
+
this.x8_1 = 6;
|
|
685
|
+
var t = this.z8_1;
|
|
686
|
+
deleteUnlocked(this.z50_1, this.a51_1);
|
|
687
|
+
throw t;
|
|
688
|
+
case 6:
|
|
689
|
+
throw this.z8_1;
|
|
690
|
+
}
|
|
691
|
+
} catch ($p) {
|
|
692
|
+
var e = $p;
|
|
693
|
+
if (this.x8_1 === 6) {
|
|
694
|
+
throw e;
|
|
695
|
+
} else {
|
|
696
|
+
this.w8_1 = this.x8_1;
|
|
697
|
+
this.z8_1 = e;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
while (true);
|
|
701
|
+
};
|
|
702
|
+
protoOf(FileCredentialStore$logoutSession$slambda).n4t = function (completion) {
|
|
703
|
+
return new FileCredentialStore$logoutSession$slambda(this.z50_1, this.a51_1, this.b51_1, completion);
|
|
704
|
+
};
|
|
705
|
+
function FileCredentialStore$logoutSession$slambda_0(this$0, $apiUrl, $revoke, resultContinuation) {
|
|
706
|
+
var i = new FileCredentialStore$logoutSession$slambda(this$0, $apiUrl, $revoke, resultContinuation);
|
|
707
|
+
var l = function ($completion) {
|
|
708
|
+
return i.e51($completion);
|
|
709
|
+
};
|
|
710
|
+
l.$arity = 0;
|
|
711
|
+
return l;
|
|
712
|
+
}
|
|
713
|
+
function FileCredentialStore$refreshSession$slambda(this$0, $apiUrl, $refresh, resultContinuation) {
|
|
714
|
+
this.n51_1 = this$0;
|
|
715
|
+
this.o51_1 = $apiUrl;
|
|
716
|
+
this.p51_1 = $refresh;
|
|
717
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
718
|
+
}
|
|
719
|
+
protoOf(FileCredentialStore$refreshSession$slambda).r51 = function ($completion) {
|
|
720
|
+
var tmp = this.n4t($completion);
|
|
721
|
+
tmp.y8_1 = Unit_instance;
|
|
722
|
+
tmp.z8_1 = null;
|
|
723
|
+
return tmp.e9();
|
|
724
|
+
};
|
|
725
|
+
protoOf(FileCredentialStore$refreshSession$slambda).na = function ($completion) {
|
|
726
|
+
return this.r51($completion);
|
|
727
|
+
};
|
|
728
|
+
protoOf(FileCredentialStore$refreshSession$slambda).e9 = function () {
|
|
729
|
+
var suspendResult = this.y8_1;
|
|
730
|
+
$sm: do
|
|
731
|
+
try {
|
|
732
|
+
var tmp = this.w8_1;
|
|
733
|
+
switch (tmp) {
|
|
734
|
+
case 0:
|
|
735
|
+
this.x8_1 = 2;
|
|
736
|
+
var tmp_0 = this;
|
|
737
|
+
var tmp0_elvis_lhs = this.n51_1.w4z(normalizeSessionApiUrl(this.o51_1));
|
|
738
|
+
var tmp_1;
|
|
739
|
+
if (tmp0_elvis_lhs == null) {
|
|
740
|
+
return new Failed(AuthErrorCode_AUTH_REQUIRED_getInstance(), 'Error: authentication is required.');
|
|
741
|
+
} else {
|
|
742
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
tmp_0.q51_1 = tmp_1;
|
|
746
|
+
this.w8_1 = 1;
|
|
747
|
+
suspendResult = this.p51_1(this.q51_1, this);
|
|
748
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
749
|
+
return suspendResult;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
continue $sm;
|
|
753
|
+
case 1:
|
|
754
|
+
var refreshed = suspendResult;
|
|
755
|
+
var tmp_2;
|
|
756
|
+
if (refreshed instanceof Failed) {
|
|
757
|
+
if (refreshed.z4x_1.equals(AuthErrorCode_AUTH_REQUIRED_getInstance())) {
|
|
758
|
+
deleteUnlocked(this.n51_1, this.o51_1);
|
|
759
|
+
}
|
|
760
|
+
tmp_2 = refreshed;
|
|
761
|
+
} else {
|
|
762
|
+
if (refreshed instanceof Success) {
|
|
763
|
+
saveUnlocked(this.n51_1, this.q51_1.n4y(VOID, VOID, VOID, refreshed.y4x_1.c4y_1, refreshed.y4x_1.d4y_1));
|
|
764
|
+
tmp_2 = refreshed;
|
|
765
|
+
} else {
|
|
766
|
+
noWhenBranchMatchedException();
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
return tmp_2;
|
|
771
|
+
case 2:
|
|
772
|
+
throw this.z8_1;
|
|
773
|
+
}
|
|
774
|
+
} catch ($p) {
|
|
775
|
+
var e = $p;
|
|
776
|
+
if (this.x8_1 === 2) {
|
|
777
|
+
throw e;
|
|
778
|
+
} else {
|
|
779
|
+
this.w8_1 = this.x8_1;
|
|
780
|
+
this.z8_1 = e;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
while (true);
|
|
784
|
+
};
|
|
785
|
+
protoOf(FileCredentialStore$refreshSession$slambda).n4t = function (completion) {
|
|
786
|
+
return new FileCredentialStore$refreshSession$slambda(this.n51_1, this.o51_1, this.p51_1, completion);
|
|
787
|
+
};
|
|
788
|
+
function FileCredentialStore$refreshSession$slambda_0(this$0, $apiUrl, $refresh, resultContinuation) {
|
|
789
|
+
var i = new FileCredentialStore$refreshSession$slambda(this$0, $apiUrl, $refresh, resultContinuation);
|
|
790
|
+
var l = function ($completion) {
|
|
791
|
+
return i.r51($completion);
|
|
792
|
+
};
|
|
793
|
+
l.$arity = 0;
|
|
794
|
+
return l;
|
|
795
|
+
}
|
|
796
|
+
function FileCredentialStore(fileSystem, lock, json) {
|
|
797
|
+
lock = lock === VOID ? NoopCredentialStoreLock_instance : lock;
|
|
798
|
+
var tmp;
|
|
799
|
+
if (json === VOID) {
|
|
800
|
+
tmp = Json(VOID, FileCredentialStore$_init_$lambda_ru13kt);
|
|
801
|
+
} else {
|
|
802
|
+
tmp = json;
|
|
803
|
+
}
|
|
804
|
+
json = tmp;
|
|
805
|
+
this.r4y_1 = fileSystem;
|
|
806
|
+
this.s4y_1 = lock;
|
|
807
|
+
this.t4y_1 = json;
|
|
808
|
+
}
|
|
809
|
+
protoOf(FileCredentialStore).v4x = function (apiUrl, $completion) {
|
|
810
|
+
var tmp = lockPath(this, apiUrl);
|
|
811
|
+
return this.s4y_1.s51(tmp, FileCredentialStore$read$slambda_0(this, apiUrl, null), $completion);
|
|
812
|
+
};
|
|
813
|
+
protoOf(FileCredentialStore).w4x = function (session, $completion) {
|
|
814
|
+
var tmp = lockPath(this, session.g4y_1);
|
|
815
|
+
return this.s4y_1.s51(tmp, FileCredentialStore$save$slambda_0(this, session, null), $completion);
|
|
816
|
+
};
|
|
817
|
+
protoOf(FileCredentialStore).x4x = function (apiUrl, $completion) {
|
|
818
|
+
var tmp = lockPath(this, apiUrl);
|
|
819
|
+
return this.s4y_1.s51(tmp, FileCredentialStore$delete$slambda_0(this, apiUrl, null), $completion);
|
|
820
|
+
};
|
|
821
|
+
protoOf(FileCredentialStore).o4y = function (apiUrl, revoke, $completion) {
|
|
822
|
+
var tmp = lockPath(this, apiUrl);
|
|
823
|
+
return this.s4y_1.s51(tmp, FileCredentialStore$logoutSession$slambda_0(this, apiUrl, revoke, null), $completion);
|
|
824
|
+
};
|
|
825
|
+
protoOf(FileCredentialStore).p4y = function (apiUrl, refresh, $completion) {
|
|
826
|
+
var tmp = lockPath(this, apiUrl);
|
|
827
|
+
return this.s4y_1.s51(tmp, FileCredentialStore$refreshSession$slambda_0(this, apiUrl, refresh, null), $completion);
|
|
828
|
+
};
|
|
829
|
+
protoOf(FileCredentialStore).w4z = function (apiUrl) {
|
|
830
|
+
var tmp;
|
|
831
|
+
if (!this.r4y_1.v4y(sessionPath(this, apiUrl))) {
|
|
832
|
+
tmp = null;
|
|
833
|
+
} else {
|
|
834
|
+
tmp = decodeSession(this, apiUrl);
|
|
835
|
+
}
|
|
836
|
+
return tmp;
|
|
837
|
+
};
|
|
838
|
+
function NoopCredentialStoreLock() {
|
|
839
|
+
}
|
|
840
|
+
protoOf(NoopCredentialStoreLock).s51 = function (lockPath, block, $completion) {
|
|
841
|
+
return block($completion);
|
|
842
|
+
};
|
|
843
|
+
var NoopCredentialStoreLock_instance;
|
|
844
|
+
function NoopCredentialStoreLock_getInstance() {
|
|
845
|
+
return NoopCredentialStoreLock_instance;
|
|
846
|
+
}
|
|
847
|
+
function Companion() {
|
|
848
|
+
}
|
|
849
|
+
protoOf(Companion).x37 = function () {
|
|
850
|
+
return $serializer_getInstance();
|
|
851
|
+
};
|
|
852
|
+
var Companion_instance;
|
|
853
|
+
function Companion_getInstance_0() {
|
|
854
|
+
return Companion_instance;
|
|
855
|
+
}
|
|
856
|
+
function $serializer() {
|
|
857
|
+
$serializer_instance = this;
|
|
858
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.dsbuilder.frontend.core.auth.SessionFile', this, 7);
|
|
859
|
+
tmp0_serialDesc.k2b('schemaVersion', false);
|
|
860
|
+
tmp0_serialDesc.k2b('apiUrl', false);
|
|
861
|
+
tmp0_serialDesc.k2b('username', false);
|
|
862
|
+
tmp0_serialDesc.k2b('refreshToken', false);
|
|
863
|
+
tmp0_serialDesc.k2b('refreshExpiresAt', false);
|
|
864
|
+
tmp0_serialDesc.k2b('updatedAt', false);
|
|
865
|
+
tmp0_serialDesc.k2b('clientId', false);
|
|
866
|
+
this.t51_1 = tmp0_serialDesc;
|
|
867
|
+
}
|
|
868
|
+
protoOf($serializer).u51 = function (encoder, value) {
|
|
869
|
+
var tmp0_desc = this.t51_1;
|
|
870
|
+
var tmp1_output = encoder.s23(tmp0_desc);
|
|
871
|
+
tmp1_output.c25(tmp0_desc, 0, value.b4z_1);
|
|
872
|
+
tmp1_output.h25(tmp0_desc, 1, value.c4z_1);
|
|
873
|
+
tmp1_output.h25(tmp0_desc, 2, value.d4z_1);
|
|
874
|
+
tmp1_output.h25(tmp0_desc, 3, value.e4z_1);
|
|
875
|
+
tmp1_output.d25(tmp0_desc, 4, value.f4z_1);
|
|
876
|
+
tmp1_output.d25(tmp0_desc, 5, value.g4z_1);
|
|
877
|
+
tmp1_output.h25(tmp0_desc, 6, value.h4z_1);
|
|
878
|
+
tmp1_output.t23(tmp0_desc);
|
|
879
|
+
};
|
|
880
|
+
protoOf($serializer).m20 = function (encoder, value) {
|
|
881
|
+
return this.u51(encoder, value instanceof SessionFile ? value : THROW_CCE());
|
|
882
|
+
};
|
|
883
|
+
protoOf($serializer).n20 = function (decoder) {
|
|
884
|
+
var tmp0_desc = this.t51_1;
|
|
885
|
+
var tmp1_flag = true;
|
|
886
|
+
var tmp2_index = 0;
|
|
887
|
+
var tmp3_bitMask0 = 0;
|
|
888
|
+
var tmp4_local0 = 0;
|
|
889
|
+
var tmp5_local1 = null;
|
|
890
|
+
var tmp6_local2 = null;
|
|
891
|
+
var tmp7_local3 = null;
|
|
892
|
+
var tmp8_local4 = new Long(0, 0);
|
|
893
|
+
var tmp9_local5 = new Long(0, 0);
|
|
894
|
+
var tmp10_local6 = null;
|
|
895
|
+
var tmp11_input = decoder.s23(tmp0_desc);
|
|
896
|
+
if (tmp11_input.i24()) {
|
|
897
|
+
tmp4_local0 = tmp11_input.x23(tmp0_desc, 0);
|
|
898
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
899
|
+
tmp5_local1 = tmp11_input.c24(tmp0_desc, 1);
|
|
900
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
901
|
+
tmp6_local2 = tmp11_input.c24(tmp0_desc, 2);
|
|
902
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
903
|
+
tmp7_local3 = tmp11_input.c24(tmp0_desc, 3);
|
|
904
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
905
|
+
tmp8_local4 = tmp11_input.y23(tmp0_desc, 4);
|
|
906
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
907
|
+
tmp9_local5 = tmp11_input.y23(tmp0_desc, 5);
|
|
908
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
909
|
+
tmp10_local6 = tmp11_input.c24(tmp0_desc, 6);
|
|
910
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
911
|
+
} else
|
|
912
|
+
while (tmp1_flag) {
|
|
913
|
+
tmp2_index = tmp11_input.j24(tmp0_desc);
|
|
914
|
+
switch (tmp2_index) {
|
|
915
|
+
case -1:
|
|
916
|
+
tmp1_flag = false;
|
|
917
|
+
break;
|
|
918
|
+
case 0:
|
|
919
|
+
tmp4_local0 = tmp11_input.x23(tmp0_desc, 0);
|
|
920
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
921
|
+
break;
|
|
922
|
+
case 1:
|
|
923
|
+
tmp5_local1 = tmp11_input.c24(tmp0_desc, 1);
|
|
924
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
925
|
+
break;
|
|
926
|
+
case 2:
|
|
927
|
+
tmp6_local2 = tmp11_input.c24(tmp0_desc, 2);
|
|
928
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
929
|
+
break;
|
|
930
|
+
case 3:
|
|
931
|
+
tmp7_local3 = tmp11_input.c24(tmp0_desc, 3);
|
|
932
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
933
|
+
break;
|
|
934
|
+
case 4:
|
|
935
|
+
tmp8_local4 = tmp11_input.y23(tmp0_desc, 4);
|
|
936
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
937
|
+
break;
|
|
938
|
+
case 5:
|
|
939
|
+
tmp9_local5 = tmp11_input.y23(tmp0_desc, 5);
|
|
940
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
941
|
+
break;
|
|
942
|
+
case 6:
|
|
943
|
+
tmp10_local6 = tmp11_input.c24(tmp0_desc, 6);
|
|
944
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
945
|
+
break;
|
|
946
|
+
default:
|
|
947
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
tmp11_input.t23(tmp0_desc);
|
|
951
|
+
return SessionFile_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
|
|
952
|
+
};
|
|
953
|
+
protoOf($serializer).l20 = function () {
|
|
954
|
+
return this.t51_1;
|
|
955
|
+
};
|
|
956
|
+
protoOf($serializer).z2b = function () {
|
|
957
|
+
// Inline function 'kotlin.arrayOf' call
|
|
958
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
959
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
960
|
+
return [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()];
|
|
961
|
+
};
|
|
962
|
+
var $serializer_instance;
|
|
963
|
+
function $serializer_getInstance() {
|
|
964
|
+
if ($serializer_instance == null)
|
|
965
|
+
new $serializer();
|
|
966
|
+
return $serializer_instance;
|
|
967
|
+
}
|
|
968
|
+
function SessionFile_init_$Init$(seen0, schemaVersion, apiUrl, username, refreshToken, refreshExpiresAt, updatedAt, clientId, serializationConstructorMarker, $this) {
|
|
969
|
+
if (!(127 === (127 & seen0))) {
|
|
970
|
+
throwMissingFieldException(seen0, 127, $serializer_getInstance().t51_1);
|
|
971
|
+
}
|
|
972
|
+
$this.b4z_1 = schemaVersion;
|
|
973
|
+
$this.c4z_1 = apiUrl;
|
|
974
|
+
$this.d4z_1 = username;
|
|
975
|
+
$this.e4z_1 = refreshToken;
|
|
976
|
+
$this.f4z_1 = refreshExpiresAt;
|
|
977
|
+
$this.g4z_1 = updatedAt;
|
|
978
|
+
$this.h4z_1 = clientId;
|
|
979
|
+
return $this;
|
|
980
|
+
}
|
|
981
|
+
function SessionFile_init_$Create$(seen0, schemaVersion, apiUrl, username, refreshToken, refreshExpiresAt, updatedAt, clientId, serializationConstructorMarker) {
|
|
982
|
+
return SessionFile_init_$Init$(seen0, schemaVersion, apiUrl, username, refreshToken, refreshExpiresAt, updatedAt, clientId, serializationConstructorMarker, objectCreate(protoOf(SessionFile)));
|
|
983
|
+
}
|
|
984
|
+
function SessionFile(schemaVersion, apiUrl, username, refreshToken, refreshExpiresAt, updatedAt, clientId) {
|
|
985
|
+
this.b4z_1 = schemaVersion;
|
|
986
|
+
this.c4z_1 = apiUrl;
|
|
987
|
+
this.d4z_1 = username;
|
|
988
|
+
this.e4z_1 = refreshToken;
|
|
989
|
+
this.f4z_1 = refreshExpiresAt;
|
|
990
|
+
this.g4z_1 = updatedAt;
|
|
991
|
+
this.h4z_1 = clientId;
|
|
992
|
+
}
|
|
993
|
+
protoOf(SessionFile).i4z = function () {
|
|
994
|
+
return new UserSession(this.b4z_1, this.c4z_1, this.d4z_1, this.e4z_1, this.f4z_1, this.g4z_1, this.h4z_1);
|
|
995
|
+
};
|
|
996
|
+
protoOf(SessionFile).toString = function () {
|
|
997
|
+
return 'SessionFile(schemaVersion=' + this.b4z_1 + ', apiUrl=' + this.c4z_1 + ', username=' + this.d4z_1 + ', refreshToken=' + this.e4z_1 + ', refreshExpiresAt=' + this.f4z_1.toString() + ', updatedAt=' + this.g4z_1.toString() + ', clientId=' + this.h4z_1 + ')';
|
|
998
|
+
};
|
|
999
|
+
protoOf(SessionFile).hashCode = function () {
|
|
1000
|
+
var result = this.b4z_1;
|
|
1001
|
+
result = imul(result, 31) + getStringHashCode(this.c4z_1) | 0;
|
|
1002
|
+
result = imul(result, 31) + getStringHashCode(this.d4z_1) | 0;
|
|
1003
|
+
result = imul(result, 31) + getStringHashCode(this.e4z_1) | 0;
|
|
1004
|
+
result = imul(result, 31) + this.f4z_1.hashCode() | 0;
|
|
1005
|
+
result = imul(result, 31) + this.g4z_1.hashCode() | 0;
|
|
1006
|
+
result = imul(result, 31) + getStringHashCode(this.h4z_1) | 0;
|
|
1007
|
+
return result;
|
|
1008
|
+
};
|
|
1009
|
+
protoOf(SessionFile).equals = function (other) {
|
|
1010
|
+
if (this === other)
|
|
1011
|
+
return true;
|
|
1012
|
+
if (!(other instanceof SessionFile))
|
|
1013
|
+
return false;
|
|
1014
|
+
if (!(this.b4z_1 === other.b4z_1))
|
|
1015
|
+
return false;
|
|
1016
|
+
if (!(this.c4z_1 === other.c4z_1))
|
|
1017
|
+
return false;
|
|
1018
|
+
if (!(this.d4z_1 === other.d4z_1))
|
|
1019
|
+
return false;
|
|
1020
|
+
if (!(this.e4z_1 === other.e4z_1))
|
|
1021
|
+
return false;
|
|
1022
|
+
if (!equalsLong(this.f4z_1, other.f4z_1))
|
|
1023
|
+
return false;
|
|
1024
|
+
if (!equalsLong(this.g4z_1, other.g4z_1))
|
|
1025
|
+
return false;
|
|
1026
|
+
if (!(this.h4z_1 === other.h4z_1))
|
|
1027
|
+
return false;
|
|
1028
|
+
return true;
|
|
1029
|
+
};
|
|
1030
|
+
function toFile(_this__u8e3s4) {
|
|
1031
|
+
return new SessionFile(2, _this__u8e3s4.g4y_1, _this__u8e3s4.h4y_1, _this__u8e3s4.i4y_1, _this__u8e3s4.j4y_1, _this__u8e3s4.k4y_1, _this__u8e3s4.l4y_1);
|
|
1032
|
+
}
|
|
1033
|
+
function PatResolver(environmentReader) {
|
|
1034
|
+
this.v51_1 = environmentReader;
|
|
1035
|
+
}
|
|
1036
|
+
protoOf(PatResolver).w51 = function (override, configuredEnvName, projectEnvironment) {
|
|
1037
|
+
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
1038
|
+
if (!(override == null || isBlank(override))) {
|
|
1039
|
+
return new ResolvedPat(override, '--api-key');
|
|
1040
|
+
}
|
|
1041
|
+
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
1042
|
+
if (!(configuredEnvName == null || isBlank(configuredEnvName))) {
|
|
1043
|
+
var tmp0_safe_receiver = this.v51_1.xd(configuredEnvName);
|
|
1044
|
+
var tmp;
|
|
1045
|
+
if (tmp0_safe_receiver == null) {
|
|
1046
|
+
tmp = null;
|
|
1047
|
+
} else {
|
|
1048
|
+
// Inline function 'kotlin.takeIf' call
|
|
1049
|
+
var tmp_0;
|
|
1050
|
+
// Inline function 'kotlin.text.isNotBlank' call
|
|
1051
|
+
if (!isBlank(tmp0_safe_receiver)) {
|
|
1052
|
+
tmp_0 = tmp0_safe_receiver;
|
|
1053
|
+
} else {
|
|
1054
|
+
tmp_0 = null;
|
|
1055
|
+
}
|
|
1056
|
+
tmp = tmp_0;
|
|
1057
|
+
}
|
|
1058
|
+
var tmp1_elvis_lhs = tmp;
|
|
1059
|
+
var tmp_1;
|
|
1060
|
+
if (tmp1_elvis_lhs == null) {
|
|
1061
|
+
var tmp3_safe_receiver = projectEnvironment == null ? null : projectEnvironment.xd(configuredEnvName);
|
|
1062
|
+
var tmp_2;
|
|
1063
|
+
if (tmp3_safe_receiver == null) {
|
|
1064
|
+
tmp_2 = null;
|
|
1065
|
+
} else {
|
|
1066
|
+
// Inline function 'kotlin.takeIf' call
|
|
1067
|
+
var tmp_3;
|
|
1068
|
+
// Inline function 'kotlin.text.isNotBlank' call
|
|
1069
|
+
if (!isBlank(tmp3_safe_receiver)) {
|
|
1070
|
+
tmp_3 = tmp3_safe_receiver;
|
|
1071
|
+
} else {
|
|
1072
|
+
tmp_3 = null;
|
|
1073
|
+
}
|
|
1074
|
+
tmp_2 = tmp_3;
|
|
1075
|
+
}
|
|
1076
|
+
tmp_1 = tmp_2;
|
|
1077
|
+
} else {
|
|
1078
|
+
tmp_1 = tmp1_elvis_lhs;
|
|
1079
|
+
}
|
|
1080
|
+
var tmp4_safe_receiver = tmp_1;
|
|
1081
|
+
if (tmp4_safe_receiver == null)
|
|
1082
|
+
null;
|
|
1083
|
+
else {
|
|
1084
|
+
// Inline function 'kotlin.let' call
|
|
1085
|
+
return new ResolvedPat(tmp4_safe_receiver, configuredEnvName);
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
var tmp5_safe_receiver = this.v51_1.xd('DSBUILDER_API_KEY');
|
|
1089
|
+
var tmp_4;
|
|
1090
|
+
if (tmp5_safe_receiver == null) {
|
|
1091
|
+
tmp_4 = null;
|
|
1092
|
+
} else {
|
|
1093
|
+
// Inline function 'kotlin.takeIf' call
|
|
1094
|
+
var tmp_5;
|
|
1095
|
+
// Inline function 'kotlin.text.isNotBlank' call
|
|
1096
|
+
if (!isBlank(tmp5_safe_receiver)) {
|
|
1097
|
+
tmp_5 = tmp5_safe_receiver;
|
|
1098
|
+
} else {
|
|
1099
|
+
tmp_5 = null;
|
|
1100
|
+
}
|
|
1101
|
+
tmp_4 = tmp_5;
|
|
1102
|
+
}
|
|
1103
|
+
var tmp6_elvis_lhs = tmp_4;
|
|
1104
|
+
var tmp_6;
|
|
1105
|
+
if (tmp6_elvis_lhs == null) {
|
|
1106
|
+
var tmp8_safe_receiver = projectEnvironment == null ? null : projectEnvironment.xd('DSBUILDER_API_KEY');
|
|
1107
|
+
var tmp_7;
|
|
1108
|
+
if (tmp8_safe_receiver == null) {
|
|
1109
|
+
tmp_7 = null;
|
|
1110
|
+
} else {
|
|
1111
|
+
// Inline function 'kotlin.takeIf' call
|
|
1112
|
+
var tmp_8;
|
|
1113
|
+
// Inline function 'kotlin.text.isNotBlank' call
|
|
1114
|
+
if (!isBlank(tmp8_safe_receiver)) {
|
|
1115
|
+
tmp_8 = tmp8_safe_receiver;
|
|
1116
|
+
} else {
|
|
1117
|
+
tmp_8 = null;
|
|
1118
|
+
}
|
|
1119
|
+
tmp_7 = tmp_8;
|
|
1120
|
+
}
|
|
1121
|
+
tmp_6 = tmp_7;
|
|
1122
|
+
} else {
|
|
1123
|
+
tmp_6 = tmp6_elvis_lhs;
|
|
1124
|
+
}
|
|
1125
|
+
var tmp9_safe_receiver = tmp_6;
|
|
1126
|
+
if (tmp9_safe_receiver == null)
|
|
1127
|
+
null;
|
|
1128
|
+
else {
|
|
1129
|
+
// Inline function 'kotlin.let' call
|
|
1130
|
+
return new ResolvedPat(tmp9_safe_receiver, 'DSBUILDER_API_KEY');
|
|
1131
|
+
}
|
|
1132
|
+
var expected = joinToString(distinct(listOfNotNull([configuredEnvName, 'DSBUILDER_API_KEY'])), ', ');
|
|
1133
|
+
throw new MissingPatException('API key is not configured. Set one of: ' + expected + ', or pass --api-key.');
|
|
1134
|
+
};
|
|
1135
|
+
function ResolvedPat(value, source) {
|
|
1136
|
+
this.x51_1 = value;
|
|
1137
|
+
this.y51_1 = source;
|
|
1138
|
+
}
|
|
1139
|
+
protoOf(ResolvedPat).toString = function () {
|
|
1140
|
+
return 'ResolvedPat(value=' + this.x51_1 + ', source=' + this.y51_1 + ')';
|
|
1141
|
+
};
|
|
1142
|
+
protoOf(ResolvedPat).hashCode = function () {
|
|
1143
|
+
var result = getStringHashCode(this.x51_1);
|
|
1144
|
+
result = imul(result, 31) + getStringHashCode(this.y51_1) | 0;
|
|
1145
|
+
return result;
|
|
1146
|
+
};
|
|
1147
|
+
protoOf(ResolvedPat).equals = function (other) {
|
|
1148
|
+
if (this === other)
|
|
1149
|
+
return true;
|
|
1150
|
+
if (!(other instanceof ResolvedPat))
|
|
1151
|
+
return false;
|
|
1152
|
+
if (!(this.x51_1 === other.x51_1))
|
|
1153
|
+
return false;
|
|
1154
|
+
if (!(this.y51_1 === other.y51_1))
|
|
1155
|
+
return false;
|
|
1156
|
+
return true;
|
|
1157
|
+
};
|
|
1158
|
+
function MissingPatException(message) {
|
|
1159
|
+
RuntimeException_init_$Init$(message, this);
|
|
1160
|
+
captureStack(this, MissingPatException);
|
|
1161
|
+
}
|
|
1162
|
+
function PkcePlatform() {
|
|
1163
|
+
}
|
|
1164
|
+
function PkceChallenge(verifier, challenge, state) {
|
|
1165
|
+
this.d52_1 = verifier;
|
|
1166
|
+
this.e52_1 = challenge;
|
|
1167
|
+
this.f52_1 = state;
|
|
1168
|
+
}
|
|
1169
|
+
protoOf(PkceChallenge).toString = function () {
|
|
1170
|
+
return 'PkceChallenge(verifier=' + this.d52_1 + ', challenge=' + this.e52_1 + ', state=' + this.f52_1 + ')';
|
|
1171
|
+
};
|
|
1172
|
+
protoOf(PkceChallenge).hashCode = function () {
|
|
1173
|
+
var result = getStringHashCode(this.d52_1);
|
|
1174
|
+
result = imul(result, 31) + getStringHashCode(this.e52_1) | 0;
|
|
1175
|
+
result = imul(result, 31) + getStringHashCode(this.f52_1) | 0;
|
|
1176
|
+
return result;
|
|
1177
|
+
};
|
|
1178
|
+
protoOf(PkceChallenge).equals = function (other) {
|
|
1179
|
+
if (this === other)
|
|
1180
|
+
return true;
|
|
1181
|
+
if (!(other instanceof PkceChallenge))
|
|
1182
|
+
return false;
|
|
1183
|
+
if (!(this.d52_1 === other.d52_1))
|
|
1184
|
+
return false;
|
|
1185
|
+
if (!(this.e52_1 === other.e52_1))
|
|
1186
|
+
return false;
|
|
1187
|
+
if (!(this.f52_1 === other.f52_1))
|
|
1188
|
+
return false;
|
|
1189
|
+
return true;
|
|
1190
|
+
};
|
|
1191
|
+
function OAuthCallback(path, parameters) {
|
|
1192
|
+
this.g52_1 = path;
|
|
1193
|
+
this.h52_1 = parameters;
|
|
1194
|
+
}
|
|
1195
|
+
protoOf(OAuthCallback).toString = function () {
|
|
1196
|
+
return 'OAuthCallback(path=' + this.g52_1 + ', parameters=' + toString_1(this.h52_1) + ')';
|
|
1197
|
+
};
|
|
1198
|
+
protoOf(OAuthCallback).hashCode = function () {
|
|
1199
|
+
var result = getStringHashCode(this.g52_1);
|
|
1200
|
+
result = imul(result, 31) + hashCode(this.h52_1) | 0;
|
|
1201
|
+
return result;
|
|
1202
|
+
};
|
|
1203
|
+
protoOf(OAuthCallback).equals = function (other) {
|
|
1204
|
+
if (this === other)
|
|
1205
|
+
return true;
|
|
1206
|
+
if (!(other instanceof OAuthCallback))
|
|
1207
|
+
return false;
|
|
1208
|
+
if (!(this.g52_1 === other.g52_1))
|
|
1209
|
+
return false;
|
|
1210
|
+
if (!equals(this.h52_1, other.h52_1))
|
|
1211
|
+
return false;
|
|
1212
|
+
return true;
|
|
1213
|
+
};
|
|
1214
|
+
function UnavailablePkcePlatform() {
|
|
1215
|
+
}
|
|
1216
|
+
protoOf(UnavailablePkcePlatform).z51 = function () {
|
|
1217
|
+
var message = '\u0421\u0438\u0441\u0442\u0435\u043C\u043D\u044B\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D; \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 project key \u0432 CI.';
|
|
1218
|
+
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
1219
|
+
};
|
|
1220
|
+
protoOf(UnavailablePkcePlatform).a52 = function ($completion) {
|
|
1221
|
+
var message = 'Loopback listener \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D.';
|
|
1222
|
+
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
1223
|
+
};
|
|
1224
|
+
protoOf(UnavailablePkcePlatform).b52 = function (url, $completion) {
|
|
1225
|
+
var message = '\u0421\u0438\u0441\u0442\u0435\u043C\u043D\u044B\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D.';
|
|
1226
|
+
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
1227
|
+
};
|
|
1228
|
+
protoOf(UnavailablePkcePlatform).c52 = function () {
|
|
1229
|
+
return new Long(0, 0);
|
|
1230
|
+
};
|
|
1231
|
+
var UnavailablePkcePlatform_instance;
|
|
1232
|
+
function UnavailablePkcePlatform_getInstance() {
|
|
1233
|
+
return UnavailablePkcePlatform_instance;
|
|
1234
|
+
}
|
|
1235
|
+
function get_OWNER_PATTERN() {
|
|
1236
|
+
_init_properties_ProcessCredentialStoreLock_kt__7r0gze();
|
|
1237
|
+
return OWNER_PATTERN;
|
|
1238
|
+
}
|
|
1239
|
+
var OWNER_PATTERN;
|
|
1240
|
+
function CredentialStoreLockException(lockPath) {
|
|
1241
|
+
IllegalStateException_init_$Init$('Error: timed out waiting for credential store lock: ' + lockPath + '. ' + 'Stop other CLI/MCP processes and retry. If an old client left a regular lock file, remove it only after stopping those clients.', this);
|
|
1242
|
+
captureStack(this, CredentialStoreLockException);
|
|
1243
|
+
}
|
|
1244
|
+
function recover($this, lockPath) {
|
|
1245
|
+
var tmp0_elvis_lhs = $this.i52_1.l52(lockPath);
|
|
1246
|
+
var tmp;
|
|
1247
|
+
if (tmp0_elvis_lhs == null) {
|
|
1248
|
+
return Unit_instance;
|
|
1249
|
+
} else {
|
|
1250
|
+
tmp = tmp0_elvis_lhs;
|
|
1251
|
+
}
|
|
1252
|
+
var entries = tmp;
|
|
1253
|
+
if (entries.r()) {
|
|
1254
|
+
$this.i52_1.m52(lockPath);
|
|
1255
|
+
return Unit_instance;
|
|
1256
|
+
}
|
|
1257
|
+
var tmp1_elvis_lhs = singleOrNull(entries);
|
|
1258
|
+
var tmp_0;
|
|
1259
|
+
if (tmp1_elvis_lhs == null) {
|
|
1260
|
+
return Unit_instance;
|
|
1261
|
+
} else {
|
|
1262
|
+
tmp_0 = tmp1_elvis_lhs;
|
|
1263
|
+
}
|
|
1264
|
+
var owner = tmp_0;
|
|
1265
|
+
var tmp2_safe_receiver = get_OWNER_PATTERN().pd(owner);
|
|
1266
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.le();
|
|
1267
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.p(1);
|
|
1268
|
+
var pid = tmp4_safe_receiver == null ? null : toLongOrNull(tmp4_safe_receiver);
|
|
1269
|
+
var abandoned = !(pid == null) && compare(pid, new Long(0, 0)) > 0 && !$this.i52_1.n52(pid);
|
|
1270
|
+
if (abandoned && $this.i52_1.o52(lockPath, owner)) {
|
|
1271
|
+
$this.i52_1.m52(lockPath);
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
function ProcessCredentialStoreLock$withLock$slambda(this$0, $lockPath, $candidate, $owner, $prepared, $held, $acquired, resultContinuation) {
|
|
1275
|
+
this.x52_1 = this$0;
|
|
1276
|
+
this.y52_1 = $lockPath;
|
|
1277
|
+
this.z52_1 = $candidate;
|
|
1278
|
+
this.a53_1 = $owner;
|
|
1279
|
+
this.b53_1 = $prepared;
|
|
1280
|
+
this.c53_1 = $held;
|
|
1281
|
+
this.d53_1 = $acquired;
|
|
1282
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1283
|
+
}
|
|
1284
|
+
protoOf(ProcessCredentialStoreLock$withLock$slambda).d4w = function ($this$withTimeoutOrNull, $completion) {
|
|
1285
|
+
var tmp = this.p1y($this$withTimeoutOrNull, $completion);
|
|
1286
|
+
tmp.y8_1 = Unit_instance;
|
|
1287
|
+
tmp.z8_1 = null;
|
|
1288
|
+
return tmp.e9();
|
|
1289
|
+
};
|
|
1290
|
+
protoOf(ProcessCredentialStoreLock$withLock$slambda).q9 = function (p1, $completion) {
|
|
1291
|
+
return this.d4w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1292
|
+
};
|
|
1293
|
+
protoOf(ProcessCredentialStoreLock$withLock$slambda).e9 = function () {
|
|
1294
|
+
var suspendResult = this.y8_1;
|
|
1295
|
+
$sm: do
|
|
1296
|
+
try {
|
|
1297
|
+
var tmp = this.w8_1;
|
|
1298
|
+
switch (tmp) {
|
|
1299
|
+
case 0:
|
|
1300
|
+
this.x8_1 = 7;
|
|
1301
|
+
this.w8_1 = 1;
|
|
1302
|
+
continue $sm;
|
|
1303
|
+
case 1:
|
|
1304
|
+
if (!!this.x52_1.i52_1.f53(this.y52_1)) {
|
|
1305
|
+
this.w8_1 = 3;
|
|
1306
|
+
continue $sm;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
this.w8_1 = 2;
|
|
1310
|
+
suspendResult = delay(this.x52_1.k52_1, this);
|
|
1311
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1312
|
+
return suspendResult;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
continue $sm;
|
|
1316
|
+
case 2:
|
|
1317
|
+
this.w8_1 = 1;
|
|
1318
|
+
continue $sm;
|
|
1319
|
+
case 3:
|
|
1320
|
+
this.x52_1.i52_1.g53(this.z52_1, this.a53_1);
|
|
1321
|
+
this.b53_1._v = true;
|
|
1322
|
+
this.w8_1 = 4;
|
|
1323
|
+
continue $sm;
|
|
1324
|
+
case 4:
|
|
1325
|
+
if (!!this.x52_1.i52_1.h53(this.z52_1, this.c53_1)) {
|
|
1326
|
+
this.w8_1 = 6;
|
|
1327
|
+
continue $sm;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
recover(this.x52_1, this.c53_1);
|
|
1331
|
+
this.w8_1 = 5;
|
|
1332
|
+
suspendResult = delay(this.x52_1.k52_1, this);
|
|
1333
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1334
|
+
return suspendResult;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
continue $sm;
|
|
1338
|
+
case 5:
|
|
1339
|
+
this.w8_1 = 4;
|
|
1340
|
+
continue $sm;
|
|
1341
|
+
case 6:
|
|
1342
|
+
this.d53_1._v = true;
|
|
1343
|
+
return true;
|
|
1344
|
+
case 7:
|
|
1345
|
+
throw this.z8_1;
|
|
1346
|
+
}
|
|
1347
|
+
} catch ($p) {
|
|
1348
|
+
var e = $p;
|
|
1349
|
+
if (this.x8_1 === 7) {
|
|
1350
|
+
throw e;
|
|
1351
|
+
} else {
|
|
1352
|
+
this.w8_1 = this.x8_1;
|
|
1353
|
+
this.z8_1 = e;
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
while (true);
|
|
1357
|
+
};
|
|
1358
|
+
protoOf(ProcessCredentialStoreLock$withLock$slambda).p1y = function ($this$withTimeoutOrNull, completion) {
|
|
1359
|
+
var i = new ProcessCredentialStoreLock$withLock$slambda(this.x52_1, this.y52_1, this.z52_1, this.a53_1, this.b53_1, this.c53_1, this.d53_1, completion);
|
|
1360
|
+
i.e53_1 = $this$withTimeoutOrNull;
|
|
1361
|
+
return i;
|
|
1362
|
+
};
|
|
1363
|
+
function ProcessCredentialStoreLock$withLock$slambda_0(this$0, $lockPath, $candidate, $owner, $prepared, $held, $acquired, resultContinuation) {
|
|
1364
|
+
var i = new ProcessCredentialStoreLock$withLock$slambda(this$0, $lockPath, $candidate, $owner, $prepared, $held, $acquired, resultContinuation);
|
|
1365
|
+
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1366
|
+
return i.d4w($this$withTimeoutOrNull, $completion);
|
|
1367
|
+
};
|
|
1368
|
+
l.$arity = 1;
|
|
1369
|
+
return l;
|
|
1370
|
+
}
|
|
1371
|
+
function $withLockCOROUTINE$(_this__u8e3s4, lockPath, block, resultContinuation) {
|
|
1372
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1373
|
+
this.q53_1 = _this__u8e3s4;
|
|
1374
|
+
this.r53_1 = lockPath;
|
|
1375
|
+
this.s53_1 = block;
|
|
1376
|
+
}
|
|
1377
|
+
protoOf($withLockCOROUTINE$).e9 = function () {
|
|
1378
|
+
var suspendResult = this.y8_1;
|
|
1379
|
+
$sm: do
|
|
1380
|
+
try {
|
|
1381
|
+
var tmp = this.w8_1;
|
|
1382
|
+
switch (tmp) {
|
|
1383
|
+
case 0:
|
|
1384
|
+
this.x8_1 = 8;
|
|
1385
|
+
var nonce = Companion_getInstance().up().yp();
|
|
1386
|
+
this.u53_1 = 'owner-' + this.q53_1.i52_1.a54().toString() + '-' + nonce;
|
|
1387
|
+
this.x53_1 = this.r53_1 + '/held';
|
|
1388
|
+
this.w53_1 = this.r53_1 + '/pending-' + nonce;
|
|
1389
|
+
this.v53_1 = {_v: false};
|
|
1390
|
+
this.y53_1 = {_v: false};
|
|
1391
|
+
this.t53_1 = null;
|
|
1392
|
+
this.w8_1 = 1;
|
|
1393
|
+
continue $sm;
|
|
1394
|
+
case 1:
|
|
1395
|
+
this.w8_1 = 2;
|
|
1396
|
+
continue $sm;
|
|
1397
|
+
case 2:
|
|
1398
|
+
this.x8_1 = 7;
|
|
1399
|
+
this.x8_1 = 6;
|
|
1400
|
+
this.w8_1 = 3;
|
|
1401
|
+
suspendResult = withTimeoutOrNull(this.q53_1.j52_1, ProcessCredentialStoreLock$withLock$slambda_0(this.q53_1, this.r53_1, this.w53_1, this.u53_1, this.v53_1, this.x53_1, this.y53_1, null), this);
|
|
1402
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1403
|
+
return suspendResult;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
continue $sm;
|
|
1407
|
+
case 3:
|
|
1408
|
+
var tmp0_elvis_lhs = suspendResult;
|
|
1409
|
+
var ready = tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
1410
|
+
if (!ready)
|
|
1411
|
+
throw new CredentialStoreLockException(this.r53_1);
|
|
1412
|
+
this.w8_1 = 4;
|
|
1413
|
+
suspendResult = this.s53_1(this);
|
|
1414
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1415
|
+
return suspendResult;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
continue $sm;
|
|
1419
|
+
case 4:
|
|
1420
|
+
this.z53_1 = suspendResult;
|
|
1421
|
+
this.x8_1 = 8;
|
|
1422
|
+
this.w8_1 = 5;
|
|
1423
|
+
var tmp_0 = this;
|
|
1424
|
+
continue $sm;
|
|
1425
|
+
case 5:
|
|
1426
|
+
var tmp_1 = this.z53_1;
|
|
1427
|
+
this.x8_1 = 8;
|
|
1428
|
+
var directory = this.y53_1._v ? this.x53_1 : this.w53_1;
|
|
1429
|
+
try {
|
|
1430
|
+
if (this.v53_1._v && this.q53_1.i52_1.o52(directory, this.u53_1)) {
|
|
1431
|
+
this.q53_1.i52_1.m52(directory);
|
|
1432
|
+
}
|
|
1433
|
+
} catch ($p) {
|
|
1434
|
+
if ($p instanceof Error) {
|
|
1435
|
+
var cleanupError = $p;
|
|
1436
|
+
if (this.t53_1 == null)
|
|
1437
|
+
throw cleanupError;
|
|
1438
|
+
addSuppressed(this.t53_1, cleanupError);
|
|
1439
|
+
} else {
|
|
1440
|
+
throw $p;
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
return tmp_1;
|
|
1445
|
+
case 6:
|
|
1446
|
+
this.x8_1 = 7;
|
|
1447
|
+
var tmp_2 = this.z8_1;
|
|
1448
|
+
if (tmp_2 instanceof Error) {
|
|
1449
|
+
var error = this.z8_1;
|
|
1450
|
+
var tmp_3 = this;
|
|
1451
|
+
this.t53_1 = error;
|
|
1452
|
+
throw error;
|
|
1453
|
+
} else {
|
|
1454
|
+
throw this.z8_1;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
case 7:
|
|
1458
|
+
this.x8_1 = 8;
|
|
1459
|
+
var t = this.z8_1;
|
|
1460
|
+
var directory_0 = this.y53_1._v ? this.x53_1 : this.w53_1;
|
|
1461
|
+
try {
|
|
1462
|
+
if (this.v53_1._v && this.q53_1.i52_1.o52(directory_0, this.u53_1)) {
|
|
1463
|
+
this.q53_1.i52_1.m52(directory_0);
|
|
1464
|
+
}
|
|
1465
|
+
} catch ($p) {
|
|
1466
|
+
if ($p instanceof Error) {
|
|
1467
|
+
var cleanupError_0 = $p;
|
|
1468
|
+
if (this.t53_1 == null)
|
|
1469
|
+
throw cleanupError_0;
|
|
1470
|
+
addSuppressed(this.t53_1, cleanupError_0);
|
|
1471
|
+
} else {
|
|
1472
|
+
throw $p;
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
throw t;
|
|
1477
|
+
case 8:
|
|
1478
|
+
throw this.z8_1;
|
|
1479
|
+
case 9:
|
|
1480
|
+
this.x8_1 = 8;
|
|
1481
|
+
var directory_1 = this.y53_1._v ? this.x53_1 : this.w53_1;
|
|
1482
|
+
try {
|
|
1483
|
+
if (this.v53_1._v && this.q53_1.i52_1.o52(directory_1, this.u53_1)) {
|
|
1484
|
+
this.q53_1.i52_1.m52(directory_1);
|
|
1485
|
+
}
|
|
1486
|
+
} catch ($p) {
|
|
1487
|
+
if ($p instanceof Error) {
|
|
1488
|
+
var cleanupError_1 = $p;
|
|
1489
|
+
if (this.t53_1 == null)
|
|
1490
|
+
throw cleanupError_1;
|
|
1491
|
+
addSuppressed(this.t53_1, cleanupError_1);
|
|
1492
|
+
} else {
|
|
1493
|
+
throw $p;
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
return Unit_instance;
|
|
1498
|
+
}
|
|
1499
|
+
} catch ($p) {
|
|
1500
|
+
var e = $p;
|
|
1501
|
+
if (this.x8_1 === 8) {
|
|
1502
|
+
throw e;
|
|
1503
|
+
} else {
|
|
1504
|
+
this.w8_1 = this.x8_1;
|
|
1505
|
+
this.z8_1 = e;
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
while (true);
|
|
1509
|
+
};
|
|
1510
|
+
function ProcessCredentialStoreLock(platform, timeoutMillis, retryMillis) {
|
|
1511
|
+
timeoutMillis = timeoutMillis === VOID ? new Long(30000, 0) : timeoutMillis;
|
|
1512
|
+
retryMillis = retryMillis === VOID ? new Long(50, 0) : retryMillis;
|
|
1513
|
+
this.i52_1 = platform;
|
|
1514
|
+
this.j52_1 = timeoutMillis;
|
|
1515
|
+
this.k52_1 = retryMillis;
|
|
1516
|
+
// Inline function 'kotlin.require' call
|
|
1517
|
+
// Inline function 'kotlin.require' call
|
|
1518
|
+
if (!(compare(this.j52_1, new Long(0, 0)) > 0 && compare(this.k52_1, new Long(0, 0)) > 0)) {
|
|
1519
|
+
var message = 'Failed requirement.';
|
|
1520
|
+
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
protoOf(ProcessCredentialStoreLock).s51 = function (lockPath, block, $completion) {
|
|
1524
|
+
var tmp = new $withLockCOROUTINE$(this, lockPath, block, $completion);
|
|
1525
|
+
tmp.y8_1 = Unit_instance;
|
|
1526
|
+
tmp.z8_1 = null;
|
|
1527
|
+
return tmp.e9();
|
|
1528
|
+
};
|
|
1529
|
+
var properties_initialized_ProcessCredentialStoreLock_kt_4xmql4;
|
|
1530
|
+
function _init_properties_ProcessCredentialStoreLock_kt__7r0gze() {
|
|
1531
|
+
if (!properties_initialized_ProcessCredentialStoreLock_kt_4xmql4) {
|
|
1532
|
+
properties_initialized_ProcessCredentialStoreLock_kt_4xmql4 = true;
|
|
1533
|
+
OWNER_PATTERN = Regex_init_$Create$('owner-([0-9]+)-[a-f0-9]+');
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
function normalizeSessionApiUrl(value) {
|
|
1537
|
+
// Inline function 'kotlin.text.trim' call
|
|
1538
|
+
var tmp$ret$0 = toString_1(trim(isCharSequence(value) ? value : THROW_CCE()));
|
|
1539
|
+
var trimmed = trimEnd(tmp$ret$0, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
1540
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
1541
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1542
|
+
var scheme = substringBefore(trimmed, '://', '').toLowerCase();
|
|
1543
|
+
// Inline function 'kotlin.require' call
|
|
1544
|
+
if (!(scheme === 'https' || scheme === 'http')) {
|
|
1545
|
+
var message = '\u041E\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044F HTTP(S) API URL.';
|
|
1546
|
+
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1547
|
+
}
|
|
1548
|
+
var rest = substringAfter(trimmed, '://');
|
|
1549
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
1550
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1551
|
+
var authority = substringBefore_0(rest, _Char___init__impl__6a9atx(47)).toLowerCase();
|
|
1552
|
+
var tmp;
|
|
1553
|
+
// Inline function 'kotlin.text.isNotBlank' call
|
|
1554
|
+
if (!isBlank(authority)) {
|
|
1555
|
+
var tmp$ret$9;
|
|
1556
|
+
$l$block: {
|
|
1557
|
+
// Inline function 'kotlin.text.none' call
|
|
1558
|
+
var inductionVariable = 0;
|
|
1559
|
+
while (inductionVariable < charSequenceLength(authority)) {
|
|
1560
|
+
var element = charSequenceGet(authority, inductionVariable);
|
|
1561
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1562
|
+
if (element === _Char___init__impl__6a9atx(64) || element === _Char___init__impl__6a9atx(63) || element === _Char___init__impl__6a9atx(35)) {
|
|
1563
|
+
tmp$ret$9 = false;
|
|
1564
|
+
break $l$block;
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
tmp$ret$9 = true;
|
|
1568
|
+
}
|
|
1569
|
+
tmp = tmp$ret$9;
|
|
1570
|
+
} else {
|
|
1571
|
+
tmp = false;
|
|
1572
|
+
}
|
|
1573
|
+
// Inline function 'kotlin.require' call
|
|
1574
|
+
if (!tmp) {
|
|
1575
|
+
var message_0 = '\u041D\u0435\u043A\u043E\u0440\u0440\u0435\u043A\u0442\u043D\u044B\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 API URL.';
|
|
1576
|
+
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
1577
|
+
}
|
|
1578
|
+
// Inline function 'kotlin.require' call
|
|
1579
|
+
if (!(!contains(rest, _Char___init__impl__6a9atx(63)) && !contains(rest, _Char___init__impl__6a9atx(35)))) {
|
|
1580
|
+
var message_1 = 'API URL \u043D\u0435 \u0434\u043E\u043B\u0436\u0435\u043D \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C query \u0438\u043B\u0438 fragment.';
|
|
1581
|
+
throw IllegalArgumentException_init_$Create$(toString_1(message_1));
|
|
1582
|
+
}
|
|
1583
|
+
var host = scheme === 'https' ? removeSuffix(authority, ':443') : removeSuffix(authority, ':80');
|
|
1584
|
+
return scheme + '://' + host + removePrefix(rest, substringBefore_0(rest, _Char___init__impl__6a9atx(47)));
|
|
1585
|
+
}
|
|
1586
|
+
function Entry(accessToken, username, sessionUpdatedAt, expiresAt) {
|
|
1587
|
+
this.b54_1 = accessToken;
|
|
1588
|
+
this.c54_1 = username;
|
|
1589
|
+
this.d54_1 = sessionUpdatedAt;
|
|
1590
|
+
this.e54_1 = expiresAt;
|
|
1591
|
+
}
|
|
1592
|
+
protoOf(Entry).toString = function () {
|
|
1593
|
+
return 'Entry(accessToken=' + this.b54_1 + ', username=' + this.c54_1 + ', sessionUpdatedAt=' + this.d54_1.toString() + ', expiresAt=' + this.e54_1.toString() + ')';
|
|
1594
|
+
};
|
|
1595
|
+
protoOf(Entry).hashCode = function () {
|
|
1596
|
+
var result = getStringHashCode(this.b54_1);
|
|
1597
|
+
result = imul(result, 31) + getStringHashCode(this.c54_1) | 0;
|
|
1598
|
+
result = imul(result, 31) + this.d54_1.hashCode() | 0;
|
|
1599
|
+
result = imul(result, 31) + this.e54_1.hashCode() | 0;
|
|
1600
|
+
return result;
|
|
1601
|
+
};
|
|
1602
|
+
protoOf(Entry).equals = function (other) {
|
|
1603
|
+
if (this === other)
|
|
1604
|
+
return true;
|
|
1605
|
+
if (!(other instanceof Entry))
|
|
1606
|
+
return false;
|
|
1607
|
+
if (!(this.b54_1 === other.b54_1))
|
|
1608
|
+
return false;
|
|
1609
|
+
if (!(this.c54_1 === other.c54_1))
|
|
1610
|
+
return false;
|
|
1611
|
+
if (!equalsLong(this.d54_1, other.d54_1))
|
|
1612
|
+
return false;
|
|
1613
|
+
if (!equalsLong(this.e54_1, other.e54_1))
|
|
1614
|
+
return false;
|
|
1615
|
+
return true;
|
|
1616
|
+
};
|
|
1617
|
+
function $withSessionLockCOROUTINE$(_this__u8e3s4, block, resultContinuation) {
|
|
1618
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1619
|
+
this.n54_1 = _this__u8e3s4;
|
|
1620
|
+
this.o54_1 = block;
|
|
1621
|
+
}
|
|
1622
|
+
protoOf($withSessionLockCOROUTINE$).e9 = function () {
|
|
1623
|
+
var suspendResult = this.y8_1;
|
|
1624
|
+
$sm: do
|
|
1625
|
+
try {
|
|
1626
|
+
var tmp = this.w8_1;
|
|
1627
|
+
switch (tmp) {
|
|
1628
|
+
case 0:
|
|
1629
|
+
this.x8_1 = 6;
|
|
1630
|
+
this.q54_1 = this.n54_1.s54_1;
|
|
1631
|
+
var tmp_0 = this;
|
|
1632
|
+
tmp_0.p54_1 = null;
|
|
1633
|
+
this.w8_1 = 1;
|
|
1634
|
+
suspendResult = this.q54_1.c1l(this.p54_1, this);
|
|
1635
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1636
|
+
return suspendResult;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
continue $sm;
|
|
1640
|
+
case 1:
|
|
1641
|
+
this.r54_1 = Unit_instance;
|
|
1642
|
+
this.w8_1 = 2;
|
|
1643
|
+
continue $sm;
|
|
1644
|
+
case 2:
|
|
1645
|
+
this.x8_1 = 5;
|
|
1646
|
+
this.w8_1 = 3;
|
|
1647
|
+
suspendResult = this.o54_1(this);
|
|
1648
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1649
|
+
return suspendResult;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
continue $sm;
|
|
1653
|
+
case 3:
|
|
1654
|
+
this.r54_1 = suspendResult;
|
|
1655
|
+
this.x8_1 = 6;
|
|
1656
|
+
this.w8_1 = 4;
|
|
1657
|
+
continue $sm;
|
|
1658
|
+
case 4:
|
|
1659
|
+
var tmp_1 = this.r54_1;
|
|
1660
|
+
this.x8_1 = 6;
|
|
1661
|
+
this.q54_1.o1k(this.p54_1);
|
|
1662
|
+
return tmp_1;
|
|
1663
|
+
case 5:
|
|
1664
|
+
this.x8_1 = 6;
|
|
1665
|
+
var t = this.z8_1;
|
|
1666
|
+
this.q54_1.o1k(this.p54_1);
|
|
1667
|
+
throw t;
|
|
1668
|
+
case 6:
|
|
1669
|
+
throw this.z8_1;
|
|
1670
|
+
}
|
|
1671
|
+
} catch ($p) {
|
|
1672
|
+
var e = $p;
|
|
1673
|
+
if (this.x8_1 === 6) {
|
|
1674
|
+
throw e;
|
|
1675
|
+
} else {
|
|
1676
|
+
this.w8_1 = this.x8_1;
|
|
1677
|
+
this.z8_1 = e;
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
while (true);
|
|
1681
|
+
};
|
|
1682
|
+
function UserAccessTokenCache() {
|
|
1683
|
+
this.s54_1 = Mutex();
|
|
1684
|
+
var tmp = this;
|
|
1685
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
1686
|
+
tmp.t54_1 = LinkedHashMap_init_$Create$();
|
|
1687
|
+
}
|
|
1688
|
+
protoOf(UserAccessTokenCache).u54 = function (block, $completion) {
|
|
1689
|
+
var tmp = new $withSessionLockCOROUTINE$(this, block, $completion);
|
|
1690
|
+
tmp.y8_1 = Unit_instance;
|
|
1691
|
+
tmp.z8_1 = null;
|
|
1692
|
+
return tmp.e9();
|
|
1693
|
+
};
|
|
1694
|
+
protoOf(UserAccessTokenCache).v54 = function (session, nowMillis) {
|
|
1695
|
+
var tmp0_elvis_lhs = this.t54_1.c2(session.g4y_1);
|
|
1696
|
+
var tmp;
|
|
1697
|
+
if (tmp0_elvis_lhs == null) {
|
|
1698
|
+
return null;
|
|
1699
|
+
} else {
|
|
1700
|
+
tmp = tmp0_elvis_lhs;
|
|
1701
|
+
}
|
|
1702
|
+
var entry = tmp;
|
|
1703
|
+
if (!(entry.c54_1 === session.h4y_1) || !equalsLong(entry.d54_1, session.k4y_1))
|
|
1704
|
+
return null;
|
|
1705
|
+
// Inline function 'kotlin.takeIf' call
|
|
1706
|
+
var this_0 = entry.b54_1;
|
|
1707
|
+
var tmp_0;
|
|
1708
|
+
if (compare(entry.e54_1, add(nowMillis, new Long(30000, 0))) > 0) {
|
|
1709
|
+
tmp_0 = this_0;
|
|
1710
|
+
} else {
|
|
1711
|
+
tmp_0 = null;
|
|
1712
|
+
}
|
|
1713
|
+
return tmp_0;
|
|
1714
|
+
};
|
|
1715
|
+
protoOf(UserAccessTokenCache).w54 = function (session, tokens, nowMillis) {
|
|
1716
|
+
var tmp0 = this.t54_1;
|
|
1717
|
+
var tmp2 = session.g4y_1;
|
|
1718
|
+
// Inline function 'kotlin.collections.set' call
|
|
1719
|
+
var value = new Entry(tokens.b4y_1, session.h4y_1, session.k4y_1, add(nowMillis, multiply(tokens.e4y_1, new Long(1000, 0))));
|
|
1720
|
+
tmp0.f2(tmp2, value);
|
|
1721
|
+
};
|
|
1722
|
+
protoOf(UserAccessTokenCache).x54 = function (apiUrl) {
|
|
1723
|
+
this.t54_1.g2(apiUrl);
|
|
1724
|
+
};
|
|
1725
|
+
//region block: post-declaration
|
|
1726
|
+
protoOf($serializer).a2c = typeParametersSerializers;
|
|
1727
|
+
//endregion
|
|
1728
|
+
//region block: init
|
|
1729
|
+
NoopCredentialStoreLock_instance = new NoopCredentialStoreLock();
|
|
1730
|
+
Companion_instance = new Companion();
|
|
1731
|
+
UnavailablePkcePlatform_instance = new UnavailablePkcePlatform();
|
|
1732
|
+
//endregion
|
|
1733
|
+
//region block: exports
|
|
1734
|
+
_.$_$ = _.$_$ || {};
|
|
1735
|
+
_.$_$.a = AccessTokenResponse;
|
|
1736
|
+
_.$_$.b = Failed;
|
|
1737
|
+
_.$_$.c = Success;
|
|
1738
|
+
_.$_$.d = Bearer;
|
|
1739
|
+
_.$_$.e = PersonalAccessToken;
|
|
1740
|
+
_.$_$.f = ServiceToken;
|
|
1741
|
+
_.$_$.g = CredentialStoreLockException;
|
|
1742
|
+
_.$_$.h = CredentialStore;
|
|
1743
|
+
_.$_$.i = EnvironmentReader;
|
|
1744
|
+
_.$_$.j = FileCredentialStore;
|
|
1745
|
+
_.$_$.k = MissingPatException;
|
|
1746
|
+
_.$_$.l = OAuthCallback;
|
|
1747
|
+
_.$_$.m = PatResolver;
|
|
1748
|
+
_.$_$.n = PkceChallenge;
|
|
1749
|
+
_.$_$.o = PkcePlatform;
|
|
1750
|
+
_.$_$.p = ProcessCredentialStoreLock;
|
|
1751
|
+
_.$_$.q = RotatingCredentialStore;
|
|
1752
|
+
_.$_$.r = TokenClient;
|
|
1753
|
+
_.$_$.s = TokenResponse;
|
|
1754
|
+
_.$_$.t = UserAccessTokenCache;
|
|
1755
|
+
_.$_$.u = UserSession;
|
|
1756
|
+
_.$_$.v = normalizeSessionApiUrl;
|
|
1757
|
+
_.$_$.w = AuthErrorCode_AUTH_REQUIRED_getInstance;
|
|
1758
|
+
_.$_$.x = AuthErrorCode_BACKEND_UNAVAILABLE_getInstance;
|
|
1759
|
+
_.$_$.y = AuthErrorCode_FORBIDDEN_getInstance;
|
|
1760
|
+
_.$_$.z = AuthErrorCode_INVALID_AUTH_URL_getInstance;
|
|
1761
|
+
_.$_$.a1 = AuthErrorCode_PAT_INVALID_getInstance;
|
|
1762
|
+
_.$_$.b1 = BackendCredentialType_PERSONAL_ACCESS_TOKEN_getInstance;
|
|
1763
|
+
_.$_$.c1 = BackendCredentialType_SERVICE_ACCOUNT_getInstance;
|
|
1764
|
+
_.$_$.d1 = BackendCredentialType_USER_SESSION_getInstance;
|
|
1765
|
+
_.$_$.e1 = clientCredentials;
|
|
1766
|
+
_.$_$.f1 = username;
|
|
1767
|
+
_.$_$.g1 = UnavailablePkcePlatform_instance;
|
|
1768
|
+
//endregion
|
|
1769
|
+
return _;
|
|
1770
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-coroutines-core.js')));
|
|
1771
|
+
|
|
1772
|
+
//# sourceMappingURL=design-system-builder-frontend-core-auth.js.map
|