mrs-toolbox-cli 0.0.1 → 0.0.11

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.
Files changed (132) hide show
  1. package/88b0986a7186d029-atomicfu-js-ir.js +53 -72
  2. package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
  3. package/{Kotlin-DateTime-library-kotlinx-datetime-js-ir.js → Kotlin-DateTime-library-kotlinx-datetime.js} +1 -1
  4. package/app.properties +1 -0
  5. package/clikt-clikt-mordant.js +245 -0
  6. package/clikt-clikt-mordant.js.map +1 -0
  7. package/clikt-clikt.js +6653 -0
  8. package/clikt-clikt.js.map +1 -0
  9. package/colormath-root-colormath.js +1670 -0
  10. package/colormath-root-colormath.js.map +1 -0
  11. package/com.mrs.platform.configuration.dto.js +11391 -9555
  12. package/com.mrs.platform.configuration.dto.js.map +1 -1
  13. package/kotlin-kotlin-stdlib.js +16354 -0
  14. package/kotlin-kotlin-stdlib.js.map +1 -0
  15. package/kotlin-logging-js-ir.js +88 -111
  16. package/kotlin-logging-js-ir.js.map +1 -1
  17. package/kotlin-node.js +14 -5
  18. package/kotlin-node.js.map +1 -1
  19. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
  20. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
  21. package/kotlinx-html.js +8 -0
  22. package/kotlinx-html.js.map +1 -0
  23. package/kotlinx-serialization-kotlinx-serialization-core.js +6098 -0
  24. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  25. package/kotlinx-serialization-kotlinx-serialization-json.js +5116 -0
  26. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
  27. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +3931 -3753
  28. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
  29. package/ktor-ktor-client-content-negotiation.js +293 -302
  30. package/ktor-ktor-client-content-negotiation.js.map +1 -1
  31. package/ktor-ktor-client-core.js +3108 -3459
  32. package/ktor-ktor-client-core.js.map +1 -1
  33. package/ktor-ktor-events.js +21 -27
  34. package/ktor-ktor-events.js.map +1 -1
  35. package/ktor-ktor-http.js +1241 -1722
  36. package/ktor-ktor-http.js.map +1 -1
  37. package/ktor-ktor-io.js +2222 -3125
  38. package/ktor-ktor-io.js.map +1 -1
  39. package/ktor-ktor-serialization-kotlinx-json.js +12 -13
  40. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
  41. package/ktor-ktor-serialization-kotlinx.js +365 -396
  42. package/ktor-ktor-serialization-kotlinx.js.map +1 -1
  43. package/ktor-ktor-serialization.js +154 -150
  44. package/ktor-ktor-serialization.js.map +1 -1
  45. package/ktor-ktor-utils.js +749 -943
  46. package/ktor-ktor-utils.js.map +1 -1
  47. package/ktor-ktor-websockets.js +102 -116
  48. package/ktor-ktor-websockets.js.map +1 -1
  49. package/mordant-mordant-omnibus.js +8 -0
  50. package/mordant-mordant-omnibus.js.map +1 -0
  51. package/mordant-mordant.js +7129 -0
  52. package/mordant-mordant.js.map +1 -0
  53. package/mrs-toolbox-cli.d.ts +801 -829
  54. package/mrs-toolbox-cli.js +1055 -264
  55. package/mrs-toolbox-cli.js.map +1 -1
  56. package/package.json +3 -2
  57. package/static/demo.test.ts.txt +1 -1
  58. package/static/init/hooks.webpack.config.js +35 -0
  59. package/static/init/webpackRoot.config.js +35 -0
  60. package/static/mrscconfig.json +0 -1
  61. package/toolbox.js +14903 -12592
  62. package/toolbox.js.map +1 -1
  63. package/88b0986a7186d029-atomicfu-js-ir.js.hash +0 -1
  64. package/88b0986a7186d029-atomicfu-js-ir.js.map.hash +0 -1
  65. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.hash +0 -1
  66. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map.hash +0 -1
  67. package/clikt-clikt-js-ir.js +0 -7044
  68. package/clikt-clikt-js-ir.js.hash +0 -1
  69. package/clikt-clikt-js-ir.js.map +0 -1
  70. package/clikt-clikt-js-ir.js.map.hash +0 -1
  71. package/com.mrs.platform.configuration.dto.js.hash +0 -1
  72. package/com.mrs.platform.configuration.dto.js.map.hash +0 -1
  73. package/kotlin-js.js.hash +0 -1
  74. package/kotlin-js.js.map.hash +0 -1
  75. package/kotlin-kotlin-stdlib-js-ir.js +0 -15789
  76. package/kotlin-kotlin-stdlib-js-ir.js.hash +0 -1
  77. package/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
  78. package/kotlin-kotlin-stdlib-js-ir.js.map.hash +0 -1
  79. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.hash +0 -1
  80. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map.hash +0 -1
  81. package/kotlin-logging-js-ir.js.hash +0 -1
  82. package/kotlin-logging-js-ir.js.map.hash +0 -1
  83. package/kotlin-node.js.hash +0 -1
  84. package/kotlin-node.js.map.hash +0 -1
  85. package/kotlin-web.js.hash +0 -1
  86. package/kotlin-web.js.map.hash +0 -1
  87. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +0 -6431
  88. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +0 -1
  89. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +0 -1
  90. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +0 -1
  91. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +0 -5102
  92. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +0 -1
  93. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +0 -1
  94. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +0 -1
  95. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.hash +0 -1
  96. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map.hash +0 -1
  97. package/ktor-ktor-client-content-negotiation.js.hash +0 -1
  98. package/ktor-ktor-client-content-negotiation.js.map.hash +0 -1
  99. package/ktor-ktor-client-core.js.hash +0 -1
  100. package/ktor-ktor-client-core.js.map.hash +0 -1
  101. package/ktor-ktor-events.js.hash +0 -1
  102. package/ktor-ktor-events.js.map.hash +0 -1
  103. package/ktor-ktor-http.js.hash +0 -1
  104. package/ktor-ktor-http.js.map.hash +0 -1
  105. package/ktor-ktor-io.js.hash +0 -1
  106. package/ktor-ktor-io.js.map.hash +0 -1
  107. package/ktor-ktor-serialization-kotlinx-json.js.hash +0 -1
  108. package/ktor-ktor-serialization-kotlinx-json.js.map.hash +0 -1
  109. package/ktor-ktor-serialization-kotlinx.js.hash +0 -1
  110. package/ktor-ktor-serialization-kotlinx.js.map.hash +0 -1
  111. package/ktor-ktor-serialization.js.hash +0 -1
  112. package/ktor-ktor-serialization.js.map.hash +0 -1
  113. package/ktor-ktor-utils.js.hash +0 -1
  114. package/ktor-ktor-utils.js.map.hash +0 -1
  115. package/ktor-ktor-websocket-serialization.js.hash +0 -1
  116. package/ktor-ktor-websocket-serialization.js.map.hash +0 -1
  117. package/ktor-ktor-websockets.js.hash +0 -1
  118. package/ktor-ktor-websockets.js.map.hash +0 -1
  119. package/mrs-toolbox-cli.d.ts.hash +0 -1
  120. package/mrs-toolbox-cli.js.hash +0 -1
  121. package/mrs-toolbox-cli.js.map.hash +0 -1
  122. package/static/access.query.txt.hash +0 -1
  123. package/static/demo.test.ts.txt.hash +0 -1
  124. package/static/git.ignore.hash +0 -1
  125. package/static/graph.query.txt.hash +0 -1
  126. package/static/hook.ts.txt.hash +0 -1
  127. package/static/mrscconfig.json.hash +0 -1
  128. package/static/readme.md.hash +0 -1
  129. package/static/tsconfig.json.txt.hash +0 -1
  130. package/toolbox.js.hash +0 -1
  131. package/toolbox.js.map.hash +0 -1
  132. /package/{Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map → Kotlin-DateTime-library-kotlinx-datetime.js.map} +0 -0
@@ -1,74 +1,74 @@
1
1
  (function (_, kotlin_kotlin, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io) {
2
2
  'use strict';
3
3
  //region block: imports
4
- var protoOf = kotlin_kotlin.$_$.ua;
5
- var classMeta = kotlin_kotlin.$_$.o9;
6
- var VOID = kotlin_kotlin.$_$.tf;
7
- var setMetadataFor = kotlin_kotlin.$_$.va;
8
- var CoroutineImpl = kotlin_kotlin.$_$.c9;
9
- var Unit_getInstance = kotlin_kotlin.$_$.v4;
10
- var THROW_CCE = kotlin_kotlin.$_$.pe;
4
+ var protoOf = kotlin_kotlin.$_$.dc;
5
+ var initMetadataForClass = kotlin_kotlin.$_$.db;
6
+ var CoroutineImpl = kotlin_kotlin.$_$.da;
7
+ var Unit_instance = kotlin_kotlin.$_$.g5;
8
+ var THROW_CCE = kotlin_kotlin.$_$.rg;
11
9
  var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.g;
12
- var isObject = kotlin_kotlin.$_$.ia;
13
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.o8;
14
- var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.l;
10
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.n9;
11
+ var initMetadataForLambda = kotlin_kotlin.$_$.ib;
12
+ var VOID = kotlin_kotlin.$_$.g;
13
+ var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.k;
15
14
  var contentType = kotlin_io_ktor_ktor_http.$_$.b1;
16
15
  var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
17
- var plus = kotlin_kotlin.$_$.j7;
18
- var toMutableSet = kotlin_kotlin.$_$.f8;
19
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
16
+ var plus = kotlin_kotlin.$_$.h8;
17
+ var toMutableSet = kotlin_kotlin.$_$.e9;
18
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
20
19
  var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
21
20
  var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
22
21
  var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
23
22
  var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.l;
24
- var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.d;
25
- var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.e;
26
- var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.g;
27
- var objectMeta = kotlin_kotlin.$_$.ta;
28
- var toString = kotlin_kotlin.$_$.za;
29
- var accept = kotlin_io_ktor_ktor_client_core.$_$.i;
30
- var Collection = kotlin_kotlin.$_$.x4;
31
- var isInterface = kotlin_kotlin.$_$.ga;
23
+ var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.c;
24
+ var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.d;
25
+ var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.f;
26
+ var initMetadataForObject = kotlin_kotlin.$_$.jb;
27
+ var toString = kotlin_kotlin.$_$.ic;
28
+ var accept = kotlin_io_ktor_ktor_client_core.$_$.h;
29
+ var Collection = kotlin_kotlin.$_$.i5;
30
+ var isInterface = kotlin_kotlin.$_$.sb;
32
31
  var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.o;
33
- var getKClassFromExpression = kotlin_kotlin.$_$.d;
32
+ var getKClassFromExpression = kotlin_kotlin.$_$.e;
34
33
  var contentType_0 = kotlin_io_ktor_ktor_http.$_$.z;
35
34
  var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
36
- var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.f;
37
- var Unit = kotlin_kotlin.$_$.af;
35
+ var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.e;
36
+ var Unit = kotlin_kotlin.$_$.ch;
38
37
  var charset = kotlin_io_ktor_ktor_http.$_$.x;
39
38
  var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.f;
40
- var ensureNotNull = kotlin_kotlin.$_$.gf;
41
- var NullBody_getInstance = kotlin_io_ktor_ktor_http.$_$.a;
42
- var equals = kotlin_kotlin.$_$.r9;
43
- var joinToString = kotlin_kotlin.$_$.s6;
39
+ var ensureNotNull = kotlin_kotlin.$_$.jh;
40
+ var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
41
+ var equals = kotlin_kotlin.$_$.va;
42
+ var joinToString = kotlin_kotlin.$_$.l7;
43
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.fb;
44
44
  var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.e1;
45
- var collectionSizeOrDefault = kotlin_kotlin.$_$.p5;
46
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
45
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.d6;
46
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
47
47
  var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
48
- var Exception = kotlin_kotlin.$_$.ge;
49
- var Exception_init_$Init$ = kotlin_kotlin.$_$.h1;
50
- var captureStack = kotlin_kotlin.$_$.i9;
48
+ var Exception = kotlin_kotlin.$_$.jg;
49
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.k1;
50
+ var captureStack = kotlin_kotlin.$_$.na;
51
51
  var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.f;
52
- var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.m4;
52
+ var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.v4;
53
53
  var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.r;
54
- var getKClass = kotlin_kotlin.$_$.e;
55
- var setOf = kotlin_kotlin.$_$.r7;
56
- var endsWith = kotlin_kotlin.$_$.ac;
57
- var startsWith = kotlin_kotlin.$_$.ad;
58
- var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.u;
54
+ var getKClass = kotlin_kotlin.$_$.f;
55
+ var setOf = kotlin_kotlin.$_$.q8;
56
+ var startsWith = kotlin_kotlin.$_$.af;
57
+ var endsWith = kotlin_kotlin.$_$.xd;
58
+ var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.x;
59
59
  //endregion
60
60
  //region block: pre-declaration
61
- setMetadataFor(ConverterRegistration, 'ConverterRegistration', classMeta);
62
- setMetadataFor(ContentNegotiation$Config$defaultMatcher$1, VOID, classMeta);
63
- setMetadataFor(ContentNegotiation$Plugin$install$slambda, 'ContentNegotiation$Plugin$install$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [2]);
64
- setMetadataFor(ContentNegotiation$Plugin$install$slambda_1, 'ContentNegotiation$Plugin$install$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [2]);
65
- setMetadataFor(Config, 'Config', classMeta, VOID, [Configuration]);
66
- setMetadataFor(Plugin, 'Plugin', objectMeta, VOID, [HttpClientPlugin]);
67
- setMetadataFor($convertRequestCOROUTINE$0, '$convertRequestCOROUTINE$0', classMeta, CoroutineImpl);
68
- setMetadataFor($convertResponseCOROUTINE$1, '$convertResponseCOROUTINE$1', classMeta, CoroutineImpl);
69
- setMetadataFor(ContentNegotiation, 'ContentNegotiation', classMeta, VOID, VOID, VOID, VOID, [2, 5]);
70
- setMetadataFor(ContentConverterException, 'ContentConverterException', classMeta, Exception);
71
- setMetadataFor(JsonContentTypeMatcher, 'JsonContentTypeMatcher', objectMeta);
61
+ initMetadataForClass(ConverterRegistration, 'ConverterRegistration');
62
+ initMetadataForClass(ContentNegotiation$Config$defaultMatcher$1);
63
+ initMetadataForLambda(ContentNegotiation$Plugin$install$slambda, CoroutineImpl, VOID, [2]);
64
+ initMetadataForLambda(ContentNegotiation$Plugin$install$slambda_1, CoroutineImpl, VOID, [2]);
65
+ initMetadataForClass(Config, 'Config', Config, VOID, [Configuration]);
66
+ initMetadataForObject(Plugin, 'Plugin', VOID, VOID, [HttpClientPlugin]);
67
+ initMetadataForCoroutine($convertRequestCOROUTINE$0, CoroutineImpl);
68
+ initMetadataForCoroutine($convertResponseCOROUTINE$1, CoroutineImpl);
69
+ initMetadataForClass(ContentNegotiation, 'ContentNegotiation', VOID, VOID, VOID, [2, 5]);
70
+ initMetadataForClass(ContentConverterException, 'ContentConverterException', VOID, Exception);
71
+ initMetadataForObject(JsonContentTypeMatcher, 'JsonContentTypeMatcher');
72
72
  //endregion
73
73
  function get_LOGGER() {
74
74
  _init_properties_ContentNegotiation_kt__o183go();
@@ -81,240 +81,232 @@
81
81
  }
82
82
  var DefaultCommonIgnoredTypes;
83
83
  function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
84
- this.t35_1 = converter;
85
- this.u35_1 = contentTypeToSend;
86
- this.v35_1 = contentTypeMatcher;
84
+ this.m53_1 = converter;
85
+ this.n53_1 = contentTypeToSend;
86
+ this.o53_1 = contentTypeMatcher;
87
87
  }
88
88
  function defaultMatcher($this, pattern) {
89
89
  return new ContentNegotiation$Config$defaultMatcher$1(pattern);
90
90
  }
91
91
  function ContentNegotiation$Config$defaultMatcher$1($pattern) {
92
- this.w35_1 = $pattern;
92
+ this.p53_1 = $pattern;
93
93
  }
94
- protoOf(ContentNegotiation$Config$defaultMatcher$1).x35 = function (contentType) {
95
- return contentType.u1r(this.w35_1);
94
+ protoOf(ContentNegotiation$Config$defaultMatcher$1).q53 = function (contentType) {
95
+ return contentType.b20(this.p53_1);
96
96
  };
97
97
  function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
98
- this.g36_1 = $plugin;
98
+ this.z53_1 = $plugin;
99
99
  CoroutineImpl.call(this, resultContinuation);
100
100
  }
101
- protoOf(ContentNegotiation$Plugin$install$slambda).d26 = function ($this$intercept, it, $completion) {
102
- var tmp = this.e26($this$intercept, it, $completion);
103
- tmp.lk_1 = Unit_getInstance();
104
- tmp.mk_1 = null;
105
- return tmp.sk();
101
+ protoOf(ContentNegotiation$Plugin$install$slambda).o43 = function ($this$intercept, it, $completion) {
102
+ var tmp = this.p43($this$intercept, it, $completion);
103
+ tmp.n9_1 = Unit_instance;
104
+ tmp.o9_1 = null;
105
+ return tmp.t9();
106
106
  };
107
107
  protoOf(ContentNegotiation$Plugin$install$slambda).ca = function (p1, p2, $completion) {
108
108
  var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
109
- return this.d26(tmp, isObject(p2) ? p2 : THROW_CCE(), $completion);
109
+ return this.o43(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
110
110
  };
111
- protoOf(ContentNegotiation$Plugin$install$slambda).sk = function () {
112
- var suspendResult = this.lk_1;
111
+ protoOf(ContentNegotiation$Plugin$install$slambda).t9 = function () {
112
+ var suspendResult = this.n9_1;
113
113
  $sm: do
114
114
  try {
115
- var tmp = this.jk_1;
115
+ var tmp = this.l9_1;
116
116
  switch (tmp) {
117
117
  case 0:
118
- this.kk_1 = 3;
119
- this.jk_1 = 1;
120
- suspendResult = this.g36_1.n36(this.h36_1.e1p_1, this.h36_1.h1o(), this);
118
+ this.m9_1 = 3;
119
+ this.l9_1 = 1;
120
+ suspendResult = this.z53_1.g54(this.a54_1.n1x_1, this.a54_1.q1w(), this);
121
121
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
122
122
  return suspendResult;
123
123
  }
124
124
 
125
125
  continue $sm;
126
126
  case 1:
127
- this.j36_1 = suspendResult;
127
+ this.c54_1 = suspendResult;
128
128
  var tmp_0 = this;
129
129
  var tmp_1;
130
- if (this.j36_1 == null) {
131
- return Unit_getInstance();
130
+ if (this.c54_1 == null) {
131
+ return Unit_instance;
132
132
  } else {
133
- tmp_1 = this.j36_1;
133
+ tmp_1 = this.c54_1;
134
134
  }
135
135
 
136
- tmp_0.k36_1 = tmp_1;
137
- this.jk_1 = 2;
138
- suspendResult = this.h36_1.i1o(this.k36_1, this);
136
+ tmp_0.d54_1 = tmp_1;
137
+ this.l9_1 = 2;
138
+ suspendResult = this.a54_1.r1w(this.d54_1, this);
139
139
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
140
140
  return suspendResult;
141
141
  }
142
142
 
143
143
  continue $sm;
144
144
  case 2:
145
- ;
146
- return Unit_getInstance();
145
+ return Unit_instance;
147
146
  case 3:
148
- throw this.mk_1;
147
+ throw this.o9_1;
149
148
  }
150
149
  } catch ($p) {
151
150
  var e = $p;
152
- if (this.kk_1 === 3) {
151
+ if (this.m9_1 === 3) {
153
152
  throw e;
154
153
  } else {
155
- this.jk_1 = this.kk_1;
156
- this.mk_1 = e;
154
+ this.l9_1 = this.m9_1;
155
+ this.o9_1 = e;
157
156
  }
158
157
  }
159
158
  while (true);
160
159
  };
161
- protoOf(ContentNegotiation$Plugin$install$slambda).e26 = function ($this$intercept, it, completion) {
162
- var i = new ContentNegotiation$Plugin$install$slambda(this.g36_1, completion);
163
- i.h36_1 = $this$intercept;
164
- i.i36_1 = it;
160
+ protoOf(ContentNegotiation$Plugin$install$slambda).p43 = function ($this$intercept, it, completion) {
161
+ var i = new ContentNegotiation$Plugin$install$slambda(this.z53_1, completion);
162
+ i.a54_1 = $this$intercept;
163
+ i.b54_1 = it;
165
164
  return i;
166
165
  };
167
166
  function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
168
167
  var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
169
168
  var l = function ($this$intercept, it, $completion) {
170
- return i.d26($this$intercept, it, $completion);
169
+ return i.o43($this$intercept, it, $completion);
171
170
  };
172
171
  l.$arity = 2;
173
172
  return l;
174
173
  }
175
174
  function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
176
- this.w36_1 = $plugin;
175
+ this.p54_1 = $plugin;
177
176
  CoroutineImpl.call(this, resultContinuation);
178
177
  }
179
- protoOf(ContentNegotiation$Plugin$install$slambda_1).x26 = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
180
- var tmp = this.y26($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
181
- tmp.lk_1 = Unit_getInstance();
182
- tmp.mk_1 = null;
183
- return tmp.sk();
178
+ protoOf(ContentNegotiation$Plugin$install$slambda_1).i44 = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
179
+ var tmp = this.j44($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
180
+ tmp.n9_1 = Unit_instance;
181
+ tmp.o9_1 = null;
182
+ return tmp.t9();
184
183
  };
185
184
  protoOf(ContentNegotiation$Plugin$install$slambda_1).ca = function (p1, p2, $completion) {
186
185
  var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
187
- return this.x26(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
186
+ return this.i44(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
188
187
  };
189
- protoOf(ContentNegotiation$Plugin$install$slambda_1).sk = function () {
190
- var suspendResult = this.lk_1;
188
+ protoOf(ContentNegotiation$Plugin$install$slambda_1).t9 = function () {
189
+ var suspendResult = this.n9_1;
191
190
  $sm: do
192
191
  try {
193
- var tmp = this.jk_1;
192
+ var tmp = this.l9_1;
194
193
  switch (tmp) {
195
194
  case 0:
196
- this.kk_1 = 3;
197
- this.z36_1 = this.y36_1.q4();
198
- this.a37_1 = this.y36_1.r4();
195
+ this.m9_1 = 3;
196
+ this.s54_1 = this.r54_1.qg();
197
+ this.t54_1 = this.r54_1.rg();
199
198
  var tmp_0 = this;
200
- var tmp0_elvis_lhs = contentType(this.x36_1.e1p_1.k26());
199
+ var tmp0_elvis_lhs = contentType(this.q54_1.n1x_1.v43());
201
200
  var tmp_1;
202
201
  if (tmp0_elvis_lhs == null) {
203
- get_LOGGER().z1p('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
204
- return Unit_getInstance();
202
+ this.q54_1;
203
+ get_LOGGER().h1y('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
204
+ return Unit_instance;
205
205
  } else {
206
206
  tmp_1 = tmp0_elvis_lhs;
207
207
  }
208
208
 
209
- tmp_0.b37_1 = tmp_1;
210
- this.c37_1 = suitableCharset(this.x36_1.e1p_1.t29().c1w());
211
- this.jk_1 = 1;
212
- suspendResult = this.w36_1.g37(this.x36_1.e1p_1.t29().w29(), this.z36_1, this.a37_1, this.b37_1, this.c37_1, this);
209
+ tmp_0.u54_1 = tmp_1;
210
+ this.v54_1 = suitableCharset(this.q54_1.n1x_1.d47().j24());
211
+ this.l9_1 = 1;
212
+ suspendResult = this.p54_1.z54(this.q54_1.n1x_1.d47().f3p(), this.s54_1, this.t54_1, this.u54_1, this.v54_1, this);
213
213
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
214
214
  return suspendResult;
215
215
  }
216
216
 
217
217
  continue $sm;
218
218
  case 1:
219
- this.d37_1 = suspendResult;
219
+ this.w54_1 = suspendResult;
220
220
  var tmp_2 = this;
221
221
  var tmp_3;
222
- if (this.d37_1 == null) {
223
- return Unit_getInstance();
222
+ if (this.w54_1 == null) {
223
+ return Unit_instance;
224
224
  } else {
225
- tmp_3 = this.d37_1;
225
+ tmp_3 = this.w54_1;
226
226
  }
227
227
 
228
- tmp_2.e37_1 = tmp_3;
229
- this.f37_1 = new HttpResponseContainer(this.z36_1, this.e37_1);
230
- this.jk_1 = 2;
231
- suspendResult = this.x36_1.i1o(this.f37_1, this);
228
+ tmp_2.x54_1 = tmp_3;
229
+ this.y54_1 = new HttpResponseContainer(this.s54_1, this.x54_1);
230
+ this.l9_1 = 2;
231
+ suspendResult = this.q54_1.r1w(this.y54_1, this);
232
232
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
233
233
  return suspendResult;
234
234
  }
235
235
 
236
236
  continue $sm;
237
237
  case 2:
238
- ;
239
- return Unit_getInstance();
238
+ return Unit_instance;
240
239
  case 3:
241
- throw this.mk_1;
240
+ throw this.o9_1;
242
241
  }
243
242
  } catch ($p) {
244
243
  var e = $p;
245
- if (this.kk_1 === 3) {
244
+ if (this.m9_1 === 3) {
246
245
  throw e;
247
246
  } else {
248
- this.jk_1 = this.kk_1;
249
- this.mk_1 = e;
247
+ this.l9_1 = this.m9_1;
248
+ this.o9_1 = e;
250
249
  }
251
250
  }
252
251
  while (true);
253
252
  };
254
- protoOf(ContentNegotiation$Plugin$install$slambda_1).y26 = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
255
- var i = new ContentNegotiation$Plugin$install$slambda_1(this.w36_1, completion);
256
- i.x36_1 = $this$intercept;
257
- i.y36_1 = _name_for_destructuring_parameter_0__wldtmu;
253
+ protoOf(ContentNegotiation$Plugin$install$slambda_1).j44 = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
254
+ var i = new ContentNegotiation$Plugin$install$slambda_1(this.p54_1, completion);
255
+ i.q54_1 = $this$intercept;
256
+ i.r54_1 = _name_for_destructuring_parameter_0__wldtmu;
258
257
  return i;
259
258
  };
260
259
  function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
261
260
  var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
262
261
  var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
263
- return i.x26($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
262
+ return i.i44($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
264
263
  };
265
264
  l.$arity = 2;
266
265
  return l;
267
266
  }
268
267
  function Config() {
269
- this.h37_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
268
+ this.a55_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
270
269
  var tmp = this;
271
- var tmp$ret$0;
272
270
  // Inline function 'kotlin.collections.mutableListOf' call
273
- tmp$ret$0 = ArrayList_init_$Create$();
274
- tmp.i37_1 = tmp$ret$0;
271
+ tmp.b55_1 = ArrayList_init_$Create$();
275
272
  }
276
- protoOf(Config).u22 = function (contentType, converter, configuration) {
277
- var tmp0_subject = contentType;
278
- var matcher = tmp0_subject.equals(Application_getInstance().n1q_1) ? JsonContentTypeMatcher_getInstance() : defaultMatcher(this, contentType);
279
- this.j37(contentType, converter, matcher, configuration);
273
+ protoOf(Config).v2a = function (contentType, converter, configuration) {
274
+ var matcher = contentType.equals(Application_getInstance().u1y_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
275
+ this.c55(contentType, converter, matcher, configuration);
280
276
  };
281
- protoOf(Config).j37 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
282
- var tmp$ret$0;
277
+ protoOf(Config).c55 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
283
278
  // Inline function 'kotlin.apply' call
284
279
  // Inline function 'kotlin.contracts.contract' call
285
280
  configuration(converter);
286
- tmp$ret$0 = converter;
287
- var registration = new ConverterRegistration(tmp$ret$0, contentTypeToSend, contentTypeMatcher);
288
- this.i37_1.a(registration);
281
+ var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
282
+ this.b55_1.e(registration);
289
283
  };
290
284
  function Plugin() {
291
285
  Plugin_instance = this;
292
- this.k37_1 = new AttributeKey('ContentNegotiation');
286
+ this.d55_1 = new AttributeKey('ContentNegotiation');
293
287
  }
294
- protoOf(Plugin).x = function () {
295
- return this.k37_1;
288
+ protoOf(Plugin).u = function () {
289
+ return this.d55_1;
296
290
  };
297
- protoOf(Plugin).l37 = function (block) {
298
- var tmp$ret$0;
291
+ protoOf(Plugin).e55 = function (block) {
299
292
  // Inline function 'kotlin.apply' call
300
- var tmp0_apply = new Config();
293
+ var this_0 = new Config();
301
294
  // Inline function 'kotlin.contracts.contract' call
302
- block(tmp0_apply);
303
- tmp$ret$0 = tmp0_apply;
304
- var config = tmp$ret$0;
305
- return new ContentNegotiation(config.i37_1, config.h37_1);
295
+ block(this_0);
296
+ var config = this_0;
297
+ return new ContentNegotiation(config.b55_1, config.a55_1);
306
298
  };
307
- protoOf(Plugin).o28 = function (block) {
308
- return this.l37(block);
299
+ protoOf(Plugin).z45 = function (block) {
300
+ return this.e55(block);
309
301
  };
310
- protoOf(Plugin).m37 = function (plugin, scope) {
311
- var tmp = Phases_getInstance().i2e_1;
312
- scope.j25_1.i1p(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
313
- var tmp_0 = Phases_getInstance_0().j28_1;
314
- scope.k25_1.i1p(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
302
+ protoOf(Plugin).f55 = function (plugin, scope) {
303
+ var tmp = Phases_getInstance().p4b_1;
304
+ scope.u42_1.r1x(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
305
+ var tmp_0 = Phases_getInstance_0().u45_1;
306
+ scope.v42_1.r1x(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
315
307
  };
316
- protoOf(Plugin).p28 = function (plugin, scope) {
317
- return this.m37(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
308
+ protoOf(Plugin).a46 = function (plugin, scope) {
309
+ return this.f55(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
318
310
  };
319
311
  var Plugin_instance;
320
312
  function Plugin_getInstance() {
@@ -323,41 +315,40 @@
323
315
  return Plugin_instance;
324
316
  }
325
317
  function ContentNegotiation$convertRequest$lambda(it) {
326
- return toString(it.t35_1);
318
+ return toString(it.m53_1);
327
319
  }
328
320
  function $convertRequestCOROUTINE$0(_this__u8e3s4, request, body, resultContinuation) {
329
321
  CoroutineImpl.call(this, resultContinuation);
330
- this.v37_1 = _this__u8e3s4;
331
- this.w37_1 = request;
332
- this.x37_1 = body;
322
+ this.o55_1 = _this__u8e3s4;
323
+ this.p55_1 = request;
324
+ this.q55_1 = body;
333
325
  }
334
- protoOf($convertRequestCOROUTINE$0).sk = function () {
335
- var suspendResult = this.lk_1;
326
+ protoOf($convertRequestCOROUTINE$0).t9 = function () {
327
+ var suspendResult = this.n9_1;
336
328
  $sm: do
337
329
  try {
338
- var tmp = this.jk_1;
330
+ var tmp = this.l9_1;
339
331
  switch (tmp) {
340
332
  case 0:
341
- this.kk_1 = 7;
342
- var tmp0_forEach = this.v37_1.l36_1;
343
- var tmp0_iterator = tmp0_forEach.f();
344
- while (tmp0_iterator.g()) {
345
- var element = tmp0_iterator.h();
346
- get_LOGGER().z1p('Adding Accept=' + element.u35_1.q1r_1 + ' header for ' + this.w37_1.j27_1);
347
- accept(this.w37_1, element.u35_1);
333
+ this.m9_1 = 7;
334
+ var tmp0_iterator = this.o55_1.e54_1.k();
335
+ while (tmp0_iterator.l()) {
336
+ var element = tmp0_iterator.m();
337
+ get_LOGGER().h1y('Adding Accept=' + element.n53_1.x1z_1 + ' header for ' + this.p55_1.u44_1.toString());
338
+ accept(this.p55_1, element.n53_1);
348
339
  }
349
340
 
350
341
  var tmp_0;
351
- var tmp_1 = this.x37_1;
342
+ var tmp_1 = this.q55_1;
352
343
  if (tmp_1 instanceof OutgoingContent) {
353
344
  tmp_0 = true;
354
345
  } else {
355
346
  var tmp$ret$0;
356
347
  l$ret$1: do {
357
- var tmp1_any = this.v37_1.m36_1;
348
+ var this_0 = this.o55_1.f54_1;
358
349
  var tmp_2;
359
- if (isInterface(tmp1_any, Collection)) {
360
- tmp_2 = tmp1_any.l();
350
+ if (isInterface(this_0, Collection)) {
351
+ tmp_2 = this_0.q();
361
352
  } else {
362
353
  tmp_2 = false;
363
354
  }
@@ -365,10 +356,10 @@
365
356
  tmp$ret$0 = false;
366
357
  break l$ret$1;
367
358
  }
368
- var tmp0_iterator_0 = tmp1_any.f();
369
- while (tmp0_iterator_0.g()) {
370
- var element_0 = tmp0_iterator_0.h();
371
- if (element_0.xf(this.x37_1)) {
359
+ var tmp0_iterator_0 = this_0.k();
360
+ while (tmp0_iterator_0.l()) {
361
+ var element_0 = tmp0_iterator_0.m();
362
+ if (element_0.sa(this.q55_1)) {
372
363
  tmp$ret$0 = true;
373
364
  break l$ret$1;
374
365
  }
@@ -380,43 +371,43 @@
380
371
  }
381
372
 
382
373
  if (tmp_0) {
383
- get_LOGGER().z1p('Body type ' + getKClassFromExpression(this.x37_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.w37_1.j27_1 + '.'));
374
+ get_LOGGER().h1y('Body type ' + toString(getKClassFromExpression(this.q55_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.p55_1.u44_1.toString() + '.'));
384
375
  return null;
385
376
  }
386
377
 
387
378
  var tmp_3 = this;
388
- var tmp0_elvis_lhs = contentType_0(this.w37_1);
379
+ var tmp0_elvis_lhs = contentType_0(this.p55_1);
389
380
  var tmp_4;
390
381
  if (tmp0_elvis_lhs == null) {
391
- get_LOGGER().z1p("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.w37_1.j27_1 + '.');
382
+ this.o55_1;
383
+ get_LOGGER().h1y("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.p55_1.u44_1.toString() + '.');
392
384
  return null;
393
385
  } else {
394
386
  tmp_4 = tmp0_elvis_lhs;
395
387
  }
396
388
 
397
- tmp_3.y37_1 = tmp_4;
398
- var tmp_5 = this.x37_1;
389
+ tmp_3.r55_1 = tmp_4;
390
+ var tmp_5 = this.q55_1;
399
391
  if (tmp_5 instanceof Unit) {
400
- get_LOGGER().z1p('Sending empty body for ' + this.w37_1.j27_1);
401
- this.w37_1.l27_1.t1m(HttpHeaders_getInstance().r1s_1);
392
+ get_LOGGER().h1y('Sending empty body for ' + this.p55_1.u44_1.toString());
393
+ this.p55_1.w44_1.b1v(HttpHeaders_getInstance().y20_1);
402
394
  return EmptyContent_getInstance();
403
395
  }
404
396
 
405
397
  var tmp_6 = this;
406
- var tmp3_filter = this.v37_1.l36_1;
407
- var tmp2_filterTo = ArrayList_init_$Create$();
408
- var tmp0_iterator_1 = tmp3_filter.f();
409
- while (tmp0_iterator_1.g()) {
410
- var element_1 = tmp0_iterator_1.h();
411
- if (element_1.v35_1.x35(this.y37_1)) {
412
- tmp2_filterTo.a(element_1);
398
+ var this_1 = this.o55_1.e54_1;
399
+ var destination = ArrayList_init_$Create$();
400
+ var tmp0_iterator_1 = this_1.k();
401
+ while (tmp0_iterator_1.l()) {
402
+ var element_1 = tmp0_iterator_1.m();
403
+ if (element_1.o53_1.q53(this.r55_1)) {
404
+ destination.e(element_1);
413
405
  }
414
406
  }
415
407
 
416
- var tmp4_takeIf = tmp2_filterTo;
417
408
  var tmp_7;
418
- if (!tmp4_takeIf.l()) {
419
- tmp_7 = tmp4_takeIf;
409
+ if (!destination.q()) {
410
+ tmp_7 = destination;
420
411
  } else {
421
412
  tmp_7 = null;
422
413
  }
@@ -424,44 +415,50 @@
424
415
  var tmp1_elvis_lhs = tmp_7;
425
416
  var tmp_8;
426
417
  if (tmp1_elvis_lhs == null) {
427
- get_LOGGER().z1p('None of the registered converters match request Content-Type=' + this.y37_1 + '. ' + ('Skipping ContentNegotiation for ' + this.w37_1.j27_1 + '.'));
418
+ this.o55_1;
419
+ get_LOGGER().h1y('None of the registered converters match request Content-Type=' + this.r55_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.p55_1.u44_1.toString() + '.'));
428
420
  return null;
429
421
  } else {
430
422
  tmp_8 = tmp1_elvis_lhs;
431
423
  }
432
424
 
433
- tmp_6.z37_1 = tmp_8;
434
- if (this.w37_1.k2w() == null) {
435
- get_LOGGER().z1p('Request has unknown body type. Skipping ContentNegotiation for ' + this.w37_1.j27_1 + '.');
425
+ tmp_6.s55_1 = tmp_8;
426
+ if (this.p55_1.x4t() == null) {
427
+ get_LOGGER().h1y('Request has unknown body type. Skipping ContentNegotiation for ' + this.p55_1.u44_1.toString() + '.');
436
428
  return null;
437
429
  }
438
430
 
439
- this.w37_1.l27_1.t1m(HttpHeaders_getInstance().r1s_1);
440
- this.jk_1 = 1;
431
+ this.p55_1.w44_1.b1v(HttpHeaders_getInstance().y20_1);
432
+ this.l9_1 = 1;
441
433
  continue $sm;
442
434
  case 1:
443
- this.b38_1 = this.z37_1.f();
444
- this.jk_1 = 2;
435
+ var tmp_9 = this;
436
+ tmp_9.u55_1 = this.s55_1;
437
+ this.v55_1 = this.u55_1.k();
438
+ this.l9_1 = 2;
445
439
  continue $sm;
446
440
  case 2:
447
- if (!this.b38_1.g()) {
448
- this.jk_1 = 5;
441
+ if (!this.v55_1.l()) {
442
+ this.l9_1 = 5;
449
443
  continue $sm;
450
444
  }
451
445
 
452
- this.c38_1 = this.b38_1.h();
453
- this.jk_1 = 3;
454
- var tmp0_elvis_lhs_0 = charset(this.y37_1);
455
- var tmp_9 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().r1g_1 : tmp0_elvis_lhs_0;
456
- var tmp_10 = ensureNotNull(this.w37_1.k2w());
457
- var tmp_11;
458
- if (!equals(this.x37_1, NullBody_getInstance())) {
459
- tmp_11 = this.x37_1;
446
+ this.w55_1 = this.v55_1.m();
447
+ var tmp_10 = this;
448
+ tmp_10.x55_1 = this.w55_1;
449
+ this.l9_1 = 3;
450
+ var tmp0_elvis_lhs_0 = charset(this.r55_1);
451
+ var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().a1p_1 : tmp0_elvis_lhs_0;
452
+ var tmp_12 = ensureNotNull(this.p55_1.x4t());
453
+ var this_2 = this.q55_1;
454
+ var tmp_13;
455
+ if (!equals(this_2, NullBody_instance)) {
456
+ tmp_13 = this_2;
460
457
  } else {
461
- tmp_11 = null;
458
+ tmp_13 = null;
462
459
  }
463
460
 
464
- suspendResult = this.c38_1.t35_1.x22(this.y37_1, tmp_9, tmp_10, tmp_11, this);
461
+ suspendResult = this.x55_1.m53_1.y2a(this.r55_1, tmp_11, tmp_12, tmp_13, this);
465
462
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
466
463
  return suspendResult;
467
464
  }
@@ -470,109 +467,106 @@
470
467
  case 3:
471
468
  var result = suspendResult;
472
469
  if (!(result == null)) {
473
- get_LOGGER().z1p('Converted request body using ' + this.c38_1.t35_1 + ' for ' + this.w37_1.j27_1);
470
+ get_LOGGER().h1y('Converted request body using ' + toString(this.x55_1.m53_1) + ' for ' + this.p55_1.u44_1.toString());
474
471
  }
475
472
 
476
473
  var result_0 = result;
477
474
  if (!(result_0 == null)) {
478
- this.a38_1 = result_0;
479
- this.jk_1 = 6;
475
+ this.t55_1 = result_0;
476
+ this.l9_1 = 6;
480
477
  continue $sm;
481
478
  } else {
482
- this.jk_1 = 4;
479
+ this.l9_1 = 4;
483
480
  continue $sm;
484
481
  }
485
482
 
486
- break;
487
483
  case 4:
488
- this.jk_1 = 2;
484
+ this.l9_1 = 2;
489
485
  continue $sm;
490
486
  case 5:
491
- this.a38_1 = null;
487
+ this.t55_1 = null;
492
488
  if (false) {
493
- this.jk_1 = 1;
489
+ this.l9_1 = 1;
494
490
  continue $sm;
495
491
  }
496
492
 
497
- this.jk_1 = 6;
493
+ this.l9_1 = 6;
498
494
  continue $sm;
499
495
  case 6:
500
- var tmp2_elvis_lhs = this.a38_1;
501
- var tmp_12;
496
+ var tmp2_elvis_lhs = this.t55_1;
497
+ var tmp_14;
502
498
  if (tmp2_elvis_lhs == null) {
503
- var tmp_13 = "Can't convert " + toString(this.x37_1) + ' with contentType ' + this.y37_1 + ' using converters ';
504
- throw new ContentConverterException(tmp_13 + joinToString(this.z37_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
499
+ var tmp_15 = "Can't convert " + toString(this.q55_1) + ' with contentType ' + this.r55_1.toString() + ' using converters ';
500
+ throw new ContentConverterException(tmp_15 + joinToString(this.s55_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
505
501
  } else {
506
- tmp_12 = tmp2_elvis_lhs;
502
+ tmp_14 = tmp2_elvis_lhs;
507
503
  }
508
504
 
509
- var serializedContent = tmp_12;
505
+ var serializedContent = tmp_14;
510
506
  return serializedContent;
511
507
  case 7:
512
- throw this.mk_1;
508
+ throw this.o9_1;
513
509
  }
514
510
  } catch ($p) {
515
511
  var e = $p;
516
- if (this.kk_1 === 7) {
512
+ if (this.m9_1 === 7) {
517
513
  throw e;
518
514
  } else {
519
- this.jk_1 = this.kk_1;
520
- this.mk_1 = e;
515
+ this.l9_1 = this.m9_1;
516
+ this.o9_1 = e;
521
517
  }
522
518
  }
523
519
  while (true);
524
520
  };
525
521
  function $convertResponseCOROUTINE$1(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
526
522
  CoroutineImpl.call(this, resultContinuation);
527
- this.l38_1 = _this__u8e3s4;
528
- this.m38_1 = requestUrl;
529
- this.n38_1 = info;
530
- this.o38_1 = body;
531
- this.p38_1 = responseContentType;
532
- this.q38_1 = charset;
523
+ this.g56_1 = _this__u8e3s4;
524
+ this.h56_1 = requestUrl;
525
+ this.i56_1 = info;
526
+ this.j56_1 = body;
527
+ this.k56_1 = responseContentType;
528
+ this.l56_1 = charset;
533
529
  }
534
- protoOf($convertResponseCOROUTINE$1).sk = function () {
535
- var suspendResult = this.lk_1;
530
+ protoOf($convertResponseCOROUTINE$1).t9 = function () {
531
+ var suspendResult = this.n9_1;
536
532
  $sm: do
537
533
  try {
538
- var tmp = this.jk_1;
534
+ var tmp = this.l9_1;
539
535
  switch (tmp) {
540
536
  case 0:
541
- this.kk_1 = 2;
542
- var tmp_0 = this.o38_1;
537
+ this.m9_1 = 2;
538
+ var tmp_0 = this.j56_1;
543
539
  if (!isInterface(tmp_0, ByteReadChannel)) {
544
- get_LOGGER().z1p('Response body is already transformed. Skipping ContentNegotiation for ' + this.m38_1 + '.');
540
+ get_LOGGER().h1y('Response body is already transformed. Skipping ContentNegotiation for ' + this.h56_1.toString() + '.');
545
541
  return null;
546
542
  }
547
543
 
548
- if (this.l38_1.m36_1.m(this.n38_1.v1p_1)) {
549
- get_LOGGER().z1p('Response body type ' + this.n38_1.v1p_1 + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.m38_1 + '.'));
544
+ if (this.g56_1.f54_1.h1(this.i56_1.d1y_1)) {
545
+ get_LOGGER().h1y('Response body type ' + toString(this.i56_1.d1y_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.h56_1.toString() + '.'));
550
546
  return null;
551
547
  }
552
548
 
553
549
  var tmp_1 = this;
554
- var tmp1_filter = this.l38_1.l36_1;
555
- var tmp0_filterTo = ArrayList_init_$Create$();
556
- var tmp0_iterator = tmp1_filter.f();
557
- while (tmp0_iterator.g()) {
558
- var element = tmp0_iterator.h();
559
- if (element.v35_1.x35(this.p38_1)) {
560
- tmp0_filterTo.a(element);
550
+ var this_0 = this.g56_1.e54_1;
551
+ var destination = ArrayList_init_$Create$();
552
+ var tmp0_iterator = this_0.k();
553
+ while (tmp0_iterator.l()) {
554
+ var element = tmp0_iterator.m();
555
+ if (element.o53_1.q53(this.k56_1)) {
556
+ destination.e(element);
561
557
  }
562
558
  }
563
559
 
564
- var tmp3_map = tmp0_filterTo;
565
- var tmp2_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
566
- var tmp0_iterator_0 = tmp3_map.f();
567
- while (tmp0_iterator_0.g()) {
568
- var item = tmp0_iterator_0.h();
569
- tmp2_mapTo.a(item.t35_1);
560
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
561
+ var tmp0_iterator_0 = destination.k();
562
+ while (tmp0_iterator_0.l()) {
563
+ var item = tmp0_iterator_0.m();
564
+ destination_0.e(item.m53_1);
570
565
  }
571
566
 
572
- var tmp4_takeIf = tmp2_mapTo;
573
567
  var tmp_2;
574
- if (!tmp4_takeIf.l()) {
575
- tmp_2 = tmp4_takeIf;
568
+ if (!destination_0.q()) {
569
+ tmp_2 = destination_0;
576
570
  } else {
577
571
  tmp_2 = null;
578
572
  }
@@ -580,15 +574,16 @@
580
574
  var tmp0_elvis_lhs = tmp_2;
581
575
  var tmp_3;
582
576
  if (tmp0_elvis_lhs == null) {
583
- get_LOGGER().z1p('None of the registered converters match response with Content-Type=' + this.p38_1 + '. ' + ('Skipping ContentNegotiation for ' + this.m38_1 + '.'));
577
+ this.g56_1;
578
+ get_LOGGER().h1y('None of the registered converters match response with Content-Type=' + this.k56_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.h56_1.toString() + '.'));
584
579
  return null;
585
580
  } else {
586
581
  tmp_3 = tmp0_elvis_lhs;
587
582
  }
588
583
 
589
- tmp_1.r38_1 = tmp_3;
590
- this.jk_1 = 1;
591
- suspendResult = deserialize(this.r38_1, this.o38_1, this.n38_1, this.q38_1, this);
584
+ tmp_1.m56_1 = tmp_3;
585
+ this.l9_1 = 1;
586
+ suspendResult = deserialize(this.m56_1, this.j56_1, this.i56_1, this.l56_1, this);
592
587
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
593
588
  return suspendResult;
594
589
  }
@@ -597,40 +592,40 @@
597
592
  case 1:
598
593
  var result = suspendResult;
599
594
  if (!isInterface(result, ByteReadChannel)) {
600
- get_LOGGER().z1p('Response body was converted to ' + getKClassFromExpression(result) + ' for ' + this.m38_1 + '.');
595
+ get_LOGGER().h1y('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.h56_1.toString() + '.');
601
596
  }
602
597
 
603
598
  return result;
604
599
  case 2:
605
- throw this.mk_1;
600
+ throw this.o9_1;
606
601
  }
607
602
  } catch ($p) {
608
603
  var e = $p;
609
- if (this.kk_1 === 2) {
604
+ if (this.m9_1 === 2) {
610
605
  throw e;
611
606
  } else {
612
- this.jk_1 = this.kk_1;
613
- this.mk_1 = e;
607
+ this.l9_1 = this.m9_1;
608
+ this.o9_1 = e;
614
609
  }
615
610
  }
616
611
  while (true);
617
612
  };
618
613
  function ContentNegotiation(registrations, ignoredTypes) {
619
614
  Plugin_getInstance();
620
- this.l36_1 = registrations;
621
- this.m36_1 = ignoredTypes;
615
+ this.e54_1 = registrations;
616
+ this.f54_1 = ignoredTypes;
622
617
  }
623
- protoOf(ContentNegotiation).n36 = function (request, body, $completion) {
618
+ protoOf(ContentNegotiation).g54 = function (request, body, $completion) {
624
619
  var tmp = new $convertRequestCOROUTINE$0(this, request, body, $completion);
625
- tmp.lk_1 = Unit_getInstance();
626
- tmp.mk_1 = null;
627
- return tmp.sk();
620
+ tmp.n9_1 = Unit_instance;
621
+ tmp.o9_1 = null;
622
+ return tmp.t9();
628
623
  };
629
- protoOf(ContentNegotiation).g37 = function (requestUrl, info, body, responseContentType, charset, $completion) {
624
+ protoOf(ContentNegotiation).z54 = function (requestUrl, info, body, responseContentType, charset, $completion) {
630
625
  var tmp = new $convertResponseCOROUTINE$1(this, requestUrl, info, body, responseContentType, charset, $completion);
631
- tmp.lk_1 = Unit_getInstance();
632
- tmp.mk_1 = null;
633
- return tmp.sk();
626
+ tmp.n9_1 = Unit_instance;
627
+ tmp.o9_1 = null;
628
+ return tmp.t9();
634
629
  };
635
630
  function ContentConverterException(message) {
636
631
  Exception_init_$Init$(message, this);
@@ -638,27 +633,23 @@
638
633
  }
639
634
  var properties_initialized_ContentNegotiation_kt_1ayduy;
640
635
  function _init_properties_ContentNegotiation_kt__o183go() {
641
- if (properties_initialized_ContentNegotiation_kt_1ayduy) {
642
- } else {
636
+ if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
643
637
  properties_initialized_ContentNegotiation_kt_1ayduy = true;
644
638
  LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
645
- DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().zg(), PrimitiveClasses_getInstance().vg(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
639
+ DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().xb(), PrimitiveClasses_getInstance().tb(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
646
640
  }
647
641
  }
648
642
  function JsonContentTypeMatcher() {
649
- JsonContentTypeMatcher_instance = this;
650
643
  }
651
- protoOf(JsonContentTypeMatcher).x35 = function (contentType) {
652
- if (contentType.u1r(Application_getInstance().n1q_1)) {
644
+ protoOf(JsonContentTypeMatcher).q53 = function (contentType) {
645
+ if (contentType.b20(Application_getInstance().u1y_1)) {
653
646
  return true;
654
647
  }
655
- var value = contentType.t1r().toString();
656
- return startsWith(value, 'application/') ? endsWith(value, '+json') : false;
648
+ var value = contentType.a20().toString();
649
+ return startsWith(value, 'application/') && endsWith(value, '+json');
657
650
  };
658
651
  var JsonContentTypeMatcher_instance;
659
652
  function JsonContentTypeMatcher_getInstance() {
660
- if (JsonContentTypeMatcher_instance == null)
661
- new JsonContentTypeMatcher();
662
653
  return JsonContentTypeMatcher_instance;
663
654
  }
664
655
  function get_DefaultIgnoredTypes() {
@@ -668,23 +659,23 @@
668
659
  var DefaultIgnoredTypes;
669
660
  var properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt;
670
661
  function _init_properties_DefaultIgnoredTypesJs_kt__rjtdk1() {
671
- if (properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt) {
672
- } else {
662
+ if (!properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt) {
673
663
  properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt = true;
674
- var tmp$ret$0;
675
664
  // Inline function 'kotlin.collections.mutableSetOf' call
676
- tmp$ret$0 = LinkedHashSet_init_$Create$();
677
- DefaultIgnoredTypes = tmp$ret$0;
665
+ DefaultIgnoredTypes = LinkedHashSet_init_$Create$();
678
666
  }
679
667
  }
680
668
  //region block: post-declaration
681
- protoOf(Config).v22 = register$default;
669
+ protoOf(Config).w2a = register$default;
670
+ //endregion
671
+ //region block: init
672
+ JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
682
673
  //endregion
683
674
  //region block: exports
684
675
  _.$_$ = _.$_$ || {};
685
676
  _.$_$.a = Plugin_getInstance;
686
677
  //endregion
687
678
  return _;
688
- }(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-http.js'), require('./ktor-ktor-serialization.js'), require('./ktor-ktor-io.js')));
679
+ }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-http.js'), require('./ktor-ktor-serialization.js'), require('./ktor-ktor-io.js')));
689
680
 
690
681
  //# sourceMappingURL=ktor-ktor-client-content-negotiation.js.map