@cpaassdk/cpaas-sdk
Version:
1,038 lines (1,037 loc) • 303 kB
JavaScript
(function (root, factory) {
if (typeof define === 'function' && define.amd)
define(['exports', './kotlin_kotlin.js', './kotlin_io_ktor_ktor_io.js', './kotlin_io_ktor_ktor_utils.js', './kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.js'], factory);
else if (typeof exports === 'object')
factory(module.exports, require('./kotlin_kotlin.js'), require('./kotlin_io_ktor_ktor_io.js'), require('./kotlin_io_ktor_ktor_utils.js'), require('./kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.js'));
else {
if (typeof kotlin_kotlin === 'undefined') {
throw new Error("Error loading module 'kotlin_io_ktor_ktor_http'. Its dependency 'kotlin_kotlin' was not found. Please, check whether 'kotlin_kotlin' is loaded prior to 'kotlin_io_ktor_ktor_http'.");
}
if (typeof kotlin_io_ktor_ktor_io === 'undefined') {
throw new Error("Error loading module 'kotlin_io_ktor_ktor_http'. Its dependency 'kotlin_io_ktor_ktor_io' was not found. Please, check whether 'kotlin_io_ktor_ktor_io' is loaded prior to 'kotlin_io_ktor_ktor_http'.");
}
if (typeof kotlin_io_ktor_ktor_utils === 'undefined') {
throw new Error("Error loading module 'kotlin_io_ktor_ktor_http'. Its dependency 'kotlin_io_ktor_ktor_utils' was not found. Please, check whether 'kotlin_io_ktor_ktor_utils' is loaded prior to 'kotlin_io_ktor_ktor_http'.");
}
if (typeof kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core === 'undefined') {
throw new Error("Error loading module 'kotlin_io_ktor_ktor_http'. Its dependency 'kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core' was not found. Please, check whether 'kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core' is loaded prior to 'kotlin_io_ktor_ktor_http'.");
}
root.kotlin_io_ktor_ktor_http = factory(typeof kotlin_io_ktor_ktor_http === 'undefined' ? {} : kotlin_io_ktor_ktor_http, kotlin_kotlin, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_utils, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core);
}
}(this, function (_, kotlin_kotlin, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_utils, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core) {
//region block: imports
var imul = Math.imul;
var THROW_ISE = kotlin_kotlin.$crossModule$.THROW_ISE;
var Unit_getInstance = kotlin_kotlin.$crossModule$.Unit_getInstance;
var Enum = kotlin_kotlin.$crossModule$.Enum;
var equals = kotlin_kotlin.$crossModule$.equals;
var hashCode = kotlin_kotlin.$crossModule$.hashCode;
var ArrayList_init_$Create$ = kotlin_kotlin.$crossModule$.ArrayList_init_$Create$;
var joinToString$default = kotlin_kotlin.$crossModule$.joinToString$default;
var StringBuilder_init_$Create$ = kotlin_kotlin.$crossModule$.StringBuilder_init_$Create$_1;
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$crossModule$.Charsets_getInstance;
var charSequenceGet = kotlin_kotlin.$crossModule$.charSequenceGet;
var Char = kotlin_kotlin.$crossModule$.Char;
var _Char___init__impl__380027157 = kotlin_kotlin.$crossModule$._Char___init__impl__380027157;
var isSurrogate = kotlin_kotlin.$crossModule$.isSurrogate;
var encode = kotlin_io_ktor_ktor_io.$crossModule$.encode;
var encode$default = kotlin_io_ktor_ktor_io.$crossModule$.encode$default;
var prepareReadFirstHead = kotlin_io_ktor_ktor_io.$crossModule$.prepareReadFirstHead;
var prepareReadNextHead = kotlin_io_ktor_ktor_io.$crossModule$.prepareReadNextHead;
var completeReadHead = kotlin_io_ktor_ktor_io.$crossModule$.completeReadHead;
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$crossModule$.StringBuilder_init_$Create$;
var toString = kotlin_kotlin.$crossModule$.toString_1;
var Char__plus_impl_2692254045 = kotlin_kotlin.$crossModule$.Char__plus_impl_2692254045;
var Char__minus_impl_3686210483 = kotlin_kotlin.$crossModule$.Char__minus_impl_3686210483_1;
var charSequenceLength = kotlin_kotlin.$crossModule$.charSequenceLength;
var charSequenceSubSequence = kotlin_kotlin.$crossModule$.charSequenceSubSequence;
var toByte = kotlin_kotlin.$crossModule$.toByte;
var String_0 = kotlin_io_ktor_ktor_io.$crossModule$.String;
var Exception = kotlin_kotlin.$crossModule$.Exception;
var Exception_init_$Init$ = kotlin_kotlin.$crossModule$.Exception_init_$Init$;
var captureStack = kotlin_kotlin.$crossModule$.captureStack;
var Char__minus_impl_3686210483_0 = kotlin_kotlin.$crossModule$.Char__minus_impl_3686210483;
var numberToChar = kotlin_kotlin.$crossModule$.numberToChar;
var Char__rangeTo_impl_2506766091 = kotlin_kotlin.$crossModule$.Char__rangeTo_impl_2506766091;
var plus = kotlin_kotlin.$crossModule$.plus_1;
var plus_0 = kotlin_kotlin.$crossModule$.plus_2;
var collectionSizeOrDefault = kotlin_kotlin.$crossModule$.collectionSizeOrDefault;
var Char__toByte_impl_470664180 = kotlin_kotlin.$crossModule$.Char__toByte_impl_470664180;
var listOf = kotlin_kotlin.$crossModule$.listOf_1;
var toSet = kotlin_kotlin.$crossModule$.toSet;
var plus_1 = kotlin_kotlin.$crossModule$.plus;
var setOf = kotlin_kotlin.$crossModule$.setOf_1;
var emptyList = kotlin_kotlin.$crossModule$.emptyList;
var equals_0 = kotlin_kotlin.$crossModule$.equals_1;
var Collection = kotlin_kotlin.$crossModule$.Collection;
var isInterface = kotlin_kotlin.$crossModule$.isInterface;
var isBlank = kotlin_kotlin.$crossModule$.isBlank;
var single = kotlin_kotlin.$crossModule$.single;
var indexOf$default = kotlin_kotlin.$crossModule$.indexOf$default_1;
var THROW_CCE = kotlin_kotlin.$crossModule$.THROW_CCE;
var isCharSequence = kotlin_kotlin.$crossModule$.isCharSequence;
var trim = kotlin_kotlin.$crossModule$.trim;
var contains$default = kotlin_kotlin.$crossModule$.contains$default_1;
var plus_2 = kotlin_kotlin.$crossModule$.plus_3;
var getStringHashCode = kotlin_kotlin.$crossModule$.getStringHashCode;
var Companion_getInstance = kotlin_io_ktor_ktor_io.$crossModule$.Companion_getInstance;
var IllegalArgumentException = kotlin_kotlin.$crossModule$.IllegalArgumentException;
var _get_name__804168992 = kotlin_io_ktor_ktor_io.$crossModule$._get_name__804168992;
var Regex_init_$Create$ = kotlin_kotlin.$crossModule$.Regex_init_$Create$;
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$crossModule$.LinkedHashMap_init_$Create$_1;
var ArrayList_init_$Create$_0 = kotlin_kotlin.$crossModule$.ArrayList_init_$Create$_1;
var mapCapacity = kotlin_kotlin.$crossModule$.mapCapacity;
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$crossModule$.LinkedHashMap_init_$Create$;
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$crossModule$.IllegalArgumentException_init_$Create$_2;
var caseInsensitiveMap = kotlin_io_ktor_ktor_utils.$crossModule$.caseInsensitiveMap;
var asSequence = kotlin_kotlin.$crossModule$.asSequence_1;
var to = kotlin_kotlin.$crossModule$.to;
var map = kotlin_kotlin.$crossModule$.map;
var KProperty0 = kotlin_kotlin.$crossModule$.KProperty0;
var getPropertyCallableRef = kotlin_kotlin.$crossModule$.getPropertyCallableRef;
var lazy = kotlin_kotlin.$crossModule$.lazy_1;
var last = kotlin_kotlin.$crossModule$.last_1;
var first = kotlin_kotlin.$crossModule$.first_1;
var _get_lastIndex__339712501 = kotlin_kotlin.$crossModule$._get_lastIndex__339712501_3;
var StringValuesBuilder = kotlin_io_ktor_ktor_utils.$crossModule$.StringValuesBuilder;
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$crossModule$.IllegalArgumentException_init_$Create$_1;
var StringValues = kotlin_io_ktor_ktor_utils.$crossModule$.StringValues;
var emptyMap = kotlin_kotlin.$crossModule$.emptyMap;
var StringValuesImpl = kotlin_io_ktor_ktor_utils.$crossModule$.StringValuesImpl;
var emptySet = kotlin_kotlin.$crossModule$.emptySet;
var get = kotlin_io_ktor_ktor_utils.$crossModule$.get;
var contains = kotlin_io_ktor_ktor_utils.$crossModule$.contains_1;
var contains_0 = kotlin_io_ktor_ktor_utils.$crossModule$.contains;
var forEach = kotlin_io_ktor_ktor_utils.$crossModule$.forEach;
var toDoubleOrNull = kotlin_kotlin.$crossModule$.toDoubleOrNull;
var rangeTo = kotlin_kotlin.$crossModule$.rangeTo;
var LazyThreadSafetyMode_NONE_getInstance = kotlin_kotlin.$crossModule$.LazyThreadSafetyMode_NONE_getInstance;
var lazy_0 = kotlin_kotlin.$crossModule$.lazy;
var asList = kotlin_kotlin.$crossModule$.asList;
var Char__compareTo_impl_2098686179 = kotlin_kotlin.$crossModule$.Char__compareTo_impl_2098686179;
var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$crossModule$.IllegalArgumentException_init_$Init$_2;
var Char__toInt_impl_2402388783 = kotlin_kotlin.$crossModule$.Char__toInt_impl_2402388783;
var toLong = kotlin_kotlin.$crossModule$.toLong_1;
var split$default = kotlin_kotlin.$crossModule$.split$default;
var IllegalStateException_init_$Create$ = kotlin_kotlin.$crossModule$.IllegalStateException_init_$Create$;
var toInt = kotlin_kotlin.$crossModule$.toInt;
var fillArrayVal = kotlin_kotlin.$crossModule$.fillArrayVal;
var listOf_0 = kotlin_kotlin.$crossModule$.listOf;
var addAll = kotlin_kotlin.$crossModule$.addAll_1;
var joinTo$default = kotlin_kotlin.$crossModule$.joinTo$default;
var toString_0 = kotlin_kotlin.$crossModule$.toString_2;
var lineSequence = kotlin_kotlin.$crossModule$.lineSequence;
var mapNotNull = kotlin_kotlin.$crossModule$.mapNotNull;
var toList = kotlin_kotlin.$crossModule$.toList_3;
var removePrefix = kotlin_kotlin.$crossModule$.removePrefix;
var toLowerCasePreservingASCIIRules = kotlin_io_ktor_ktor_utils.$crossModule$.toLowerCasePreservingASCIIRules;
var isWhitespace = kotlin_kotlin.$crossModule$.isWhitespace;
var toCharArray = kotlin_io_ktor_ktor_utils.$crossModule$.toCharArray;
var indexOfAny$default = kotlin_kotlin.$crossModule$.indexOfAny$default;
var lastIndexOf$default = kotlin_kotlin.$crossModule$.lastIndexOf$default;
var IllegalStateException = kotlin_kotlin.$crossModule$.IllegalStateException;
var IllegalStateException_init_$Init$ = kotlin_kotlin.$crossModule$.IllegalStateException_init_$Init$_2;
var indexOf$default_0 = kotlin_kotlin.$crossModule$.indexOf$default;
var coerceAtLeast = kotlin_kotlin.$crossModule$.coerceAtLeast;
var isLowerCase = kotlin_io_ktor_ktor_utils.$crossModule$.isLowerCase;
var appendAll = kotlin_io_ktor_ktor_utils.$crossModule$.appendAll;
var startsWith$default = kotlin_kotlin.$crossModule$.startsWith$default;
var AttributeKey = kotlin_io_ktor_ktor_utils.$crossModule$.AttributeKey;
var CoroutineImpl = kotlin_kotlin.$crossModule$.CoroutineImpl;
var WriterScope = kotlin_io_ktor_ktor_io.$crossModule$.WriterScope;
var _get_COROUTINE_SUSPENDED__2870145053 = kotlin_kotlin.$crossModule$._get_COROUTINE_SUSPENDED__2870145053;
var Long = kotlin_kotlin.$crossModule$.Long;
var copyTo = kotlin_io_ktor_ktor_io.$crossModule$.copyTo;
var GlobalScope_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$crossModule$.GlobalScope_getInstance;
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$crossModule$.Dispatchers_getInstance;
var writer = kotlin_io_ktor_ktor_io.$crossModule$.writer;
var Companion_getInstance_0 = kotlin_io_ktor_ktor_io.$crossModule$.Companion_getInstance_1;
var Attributes$default = kotlin_io_ktor_ktor_utils.$crossModule$.Attributes$default;
var SuspendFunction1 = kotlin_kotlin.$crossModule$.SuspendFunction1;
var encodeToByteArray = kotlin_io_ktor_ktor_io.$crossModule$.encodeToByteArray;
var toLong_0 = kotlin_kotlin.$crossModule$.toLong;
var take = kotlin_kotlin.$crossModule$.take;
var firstOrNull = kotlin_kotlin.$crossModule$.firstOrNull;
var Map = kotlin_kotlin.$crossModule$.Map;
var Companion_getInstance_1 = kotlin_kotlin.$crossModule$.Companion_getInstance;
var checkIndexOverflow = kotlin_kotlin.$crossModule$.checkIndexOverflow;
var ensureNotNull = kotlin_kotlin.$crossModule$.ensureNotNull;
var PlatformUtils_getInstance = kotlin_io_ktor_ktor_utils.$crossModule$.PlatformUtils_getInstance;
//endregion
'use strict';
//region block: pre-declaration
Visibility.prototype = Object.create(Enum.prototype);
Visibility.prototype.constructor = Visibility;
NoCache.prototype = Object.create(CacheControl.prototype);
NoCache.prototype.constructor = NoCache;
NoStore.prototype = Object.create(CacheControl.prototype);
NoStore.prototype.constructor = NoStore;
MaxAge.prototype = Object.create(CacheControl.prototype);
MaxAge.prototype.constructor = MaxAge;
URLDecodeException.prototype = Object.create(Exception.prototype);
URLDecodeException.prototype.constructor = URLDecodeException;
ContentType.prototype = Object.create(HeaderValueWithParameters.prototype);
ContentType.prototype.constructor = ContentType;
BadContentTypeFormatException.prototype = Object.create(Exception.prototype);
BadContentTypeFormatException.prototype.constructor = BadContentTypeFormatException;
HeadersBuilder.prototype = Object.create(StringValuesBuilder.prototype);
HeadersBuilder.prototype.constructor = HeadersBuilder;
HeadersImpl.prototype = Object.create(StringValuesImpl.prototype);
HeadersImpl.prototype.constructor = HeadersImpl;
UnsafeHeaderException.prototype = Object.create(IllegalArgumentException.prototype);
UnsafeHeaderException.prototype.constructor = UnsafeHeaderException;
IllegalHeaderNameException.prototype = Object.create(IllegalArgumentException.prototype);
IllegalHeaderNameException.prototype.constructor = IllegalHeaderNameException;
IllegalHeaderValueException.prototype = Object.create(IllegalArgumentException.prototype);
IllegalHeaderValueException.prototype.constructor = IllegalHeaderValueException;
UrlEncodingOption.prototype = Object.create(Enum.prototype);
UrlEncodingOption.prototype.constructor = UrlEncodingOption;
ParametersBuilder.prototype = Object.create(StringValuesBuilder.prototype);
ParametersBuilder.prototype.constructor = ParametersBuilder;
function _get_urlEncodingOption__1363252026() {
return UrlEncodingOption_DEFAULT_getInstance();
}
ParametersImpl.prototype = Object.create(StringValuesImpl.prototype);
ParametersImpl.prototype.constructor = ParametersImpl;
URLParserException.prototype = Object.create(IllegalStateException.prototype);
URLParserException.prototype.constructor = URLParserException;
OutgoingContent$ReadChannelContent$readFrom$slambda.prototype = Object.create(CoroutineImpl.prototype);
OutgoingContent$ReadChannelContent$readFrom$slambda.prototype.constructor = OutgoingContent$ReadChannelContent$readFrom$slambda;
NoContent.prototype = Object.create(OutgoingContent.prototype);
NoContent.prototype.constructor = NoContent;
ReadChannelContent.prototype = Object.create(OutgoingContent.prototype);
ReadChannelContent.prototype.constructor = ReadChannelContent;
WriteChannelContent.prototype = Object.create(OutgoingContent.prototype);
WriteChannelContent.prototype.constructor = WriteChannelContent;
ByteArrayContent.prototype = Object.create(OutgoingContent.prototype);
ByteArrayContent.prototype.constructor = ByteArrayContent;
ProtocolUpgrade.prototype = Object.create(OutgoingContent.prototype);
ProtocolUpgrade.prototype.constructor = ProtocolUpgrade;
TextContent.prototype = Object.create(ByteArrayContent.prototype);
TextContent.prototype.constructor = TextContent;
SequenceGrammar.prototype = Object.create(Grammar.prototype);
SequenceGrammar.prototype.constructor = SequenceGrammar;
StringGrammar.prototype = Object.create(Grammar.prototype);
StringGrammar.prototype.constructor = StringGrammar;
AtLeastOne.prototype = Object.create(Grammar.prototype);
AtLeastOne.prototype.constructor = AtLeastOne;
OrGrammar.prototype = Object.create(Grammar.prototype);
OrGrammar.prototype.constructor = OrGrammar;
RawGrammar.prototype = Object.create(Grammar.prototype);
RawGrammar.prototype.constructor = RawGrammar;
NamedGrammar.prototype = Object.create(Grammar.prototype);
NamedGrammar.prototype.constructor = NamedGrammar;
MaybeGrammar.prototype = Object.create(Grammar.prototype);
MaybeGrammar.prototype.constructor = MaybeGrammar;
ManyGrammar.prototype = Object.create(Grammar.prototype);
ManyGrammar.prototype.constructor = ManyGrammar;
AnyOfGrammar.prototype = Object.create(Grammar.prototype);
AnyOfGrammar.prototype.constructor = AnyOfGrammar;
RangeGrammar.prototype = Object.create(Grammar.prototype);
RangeGrammar.prototype.constructor = RangeGrammar;
//endregion
var Visibility_Public_instance;
var Visibility_Private_instance;
function values() {
return [Visibility_Public_getInstance(), Visibility_Private_getInstance()];
}
function valueOf(value) {
switch (value) {
case 'Public':
return Visibility_Public_getInstance();
case 'Private':
return Visibility_Private_getInstance();
default:
Visibility_initEntries();
THROW_ISE();
break;
}
}
var Visibility_entriesInitialized;
function Visibility_initEntries() {
if (Visibility_entriesInitialized)
return Unit_getInstance();
Visibility_entriesInitialized = true;
Visibility_Public_instance = new Visibility('Public', 0, 'public');
Visibility_Private_instance = new Visibility('Private', 1, 'private');
}
function MaxAge_init_$Init$(maxAgeSeconds, proxyMaxAgeSeconds, mustRevalidate, proxyRevalidate, visibility, $mask0, $marker, $this) {
if (!(($mask0 & 2) === 0))
proxyMaxAgeSeconds = null;
if (!(($mask0 & 4) === 0))
mustRevalidate = false;
if (!(($mask0 & 8) === 0))
proxyRevalidate = false;
if (!(($mask0 & 16) === 0))
visibility = null;
MaxAge.call($this, maxAgeSeconds, proxyMaxAgeSeconds, mustRevalidate, proxyRevalidate, visibility);
return $this;
}
function MaxAge_init_$Create$(maxAgeSeconds, proxyMaxAgeSeconds, mustRevalidate, proxyRevalidate, visibility, $mask0, $marker) {
return MaxAge_init_$Init$(maxAgeSeconds, proxyMaxAgeSeconds, mustRevalidate, proxyRevalidate, visibility, $mask0, $marker, Object.create(MaxAge.prototype));
}
function Visibility(name, ordinal, headerValue) {
Enum.call(this, name, ordinal);
this.headerValue_1 = headerValue;
}
Visibility.prototype._get_headerValue__3728033581_9djcur_k$ = function () {
return this.headerValue_1;
};
Visibility.$metadata$ = {
simpleName: 'Visibility',
kind: 'class',
interfaces: []
};
function NoCache(visibility) {
CacheControl.call(this, visibility);
}
NoCache.prototype.toString = function () {
var tmp;
if (this._get_visibility__2460438457_uc8bif_k$() == null) {
tmp = 'no-cache';
} else {
tmp = 'no-cache, ' + this._get_visibility__2460438457_uc8bif_k$().headerValue_1;
}
return tmp;
};
NoCache.prototype.equals = function (other) {
var tmp;
if (other instanceof NoCache) {
tmp = equals(this._get_visibility__2460438457_uc8bif_k$(), other._get_visibility__2460438457_uc8bif_k$());
} else {
{
tmp = false;
}
}
return tmp;
};
NoCache.prototype.hashCode = function () {
var tmp$ret$0;
$l$block: {
var tmp0_hashCode_0 = this._get_visibility__2460438457_uc8bif_k$();
var tmp0_safe_receiver_2 = tmp0_hashCode_0;
var tmp1_elvis_lhs_1 = tmp0_safe_receiver_2 == null ? null : hashCode(tmp0_safe_receiver_2);
tmp$ret$0 = tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1;
break $l$block;
}
return tmp$ret$0;
};
NoCache.$metadata$ = {
simpleName: 'NoCache',
kind: 'class',
interfaces: []
};
function NoStore(visibility) {
CacheControl.call(this, visibility);
}
NoStore.prototype.toString = function () {
var tmp;
if (this._get_visibility__2460438457_uc8bif_k$() == null) {
tmp = 'no-store';
} else {
tmp = 'no-store, ' + this._get_visibility__2460438457_uc8bif_k$().headerValue_1;
}
return tmp;
};
NoStore.prototype.equals = function (other) {
var tmp;
if (other instanceof NoStore) {
tmp = equals(other._get_visibility__2460438457_uc8bif_k$(), this._get_visibility__2460438457_uc8bif_k$());
} else {
{
tmp = false;
}
}
return tmp;
};
NoStore.prototype.hashCode = function () {
var tmp$ret$0;
$l$block: {
var tmp0_hashCode_0 = this._get_visibility__2460438457_uc8bif_k$();
var tmp0_safe_receiver_2 = tmp0_hashCode_0;
var tmp1_elvis_lhs_1 = tmp0_safe_receiver_2 == null ? null : hashCode(tmp0_safe_receiver_2);
tmp$ret$0 = tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1;
break $l$block;
}
return tmp$ret$0;
};
NoStore.$metadata$ = {
simpleName: 'NoStore',
kind: 'class',
interfaces: []
};
function MaxAge(maxAgeSeconds, proxyMaxAgeSeconds, mustRevalidate, proxyRevalidate, visibility) {
CacheControl.call(this, visibility);
this.maxAgeSeconds_1 = maxAgeSeconds;
this.proxyMaxAgeSeconds_1 = proxyMaxAgeSeconds;
this.mustRevalidate_1 = mustRevalidate;
this.proxyRevalidate_1 = proxyRevalidate;
}
MaxAge.prototype._get_maxAgeSeconds__408789069_6rdrnx_k$ = function () {
return this.maxAgeSeconds_1;
};
MaxAge.prototype._get_proxyMaxAgeSeconds__3647562005_apg54b_k$ = function () {
return this.proxyMaxAgeSeconds_1;
};
MaxAge.prototype._get_mustRevalidate__3101658393_jqgr1j_k$ = function () {
return this.mustRevalidate_1;
};
MaxAge.prototype._get_proxyRevalidate__1833814426_ubt09m_k$ = function () {
return this.proxyRevalidate_1;
};
MaxAge.prototype.toString = function () {
var parts = ArrayList_init_$Create$(5);
parts.add_1j60pz_k$('max-age=' + this.maxAgeSeconds_1);
Unit_getInstance();
if (!(this.proxyMaxAgeSeconds_1 == null)) {
parts.add_1j60pz_k$('s-maxage=' + this.proxyMaxAgeSeconds_1);
Unit_getInstance();
}
if (this.mustRevalidate_1) {
parts.add_1j60pz_k$('must-revalidate');
Unit_getInstance();
}
if (this.proxyRevalidate_1) {
parts.add_1j60pz_k$('proxy-revalidate');
Unit_getInstance();
}
if (!(this._get_visibility__2460438457_uc8bif_k$() == null)) {
parts.add_1j60pz_k$(this._get_visibility__2460438457_uc8bif_k$().headerValue_1);
Unit_getInstance();
}
return joinToString$default(parts, ', ', null, null, 0, null, null, 62, null);
};
MaxAge.prototype.equals = function (other) {
var tmp;
if (other === this) {
tmp = true;
} else {
var tmp_0;
var tmp_1;
var tmp_2;
var tmp_3;
var tmp_4;
if (other instanceof MaxAge) {
tmp_4 = other.maxAgeSeconds_1 === this.maxAgeSeconds_1;
} else {
{
tmp_4 = false;
}
}
if (tmp_4) {
tmp_3 = other.proxyMaxAgeSeconds_1 == this.proxyMaxAgeSeconds_1;
} else {
{
tmp_3 = false;
}
}
if (tmp_3) {
tmp_2 = other.mustRevalidate_1 === this.mustRevalidate_1;
} else {
{
tmp_2 = false;
}
}
if (tmp_2) {
tmp_1 = other.proxyRevalidate_1 === this.proxyRevalidate_1;
} else {
{
tmp_1 = false;
}
}
if (tmp_1) {
tmp_0 = equals(other._get_visibility__2460438457_uc8bif_k$(), this._get_visibility__2460438457_uc8bif_k$());
} else {
{
tmp_0 = false;
}
}
tmp = tmp_0;
}
return tmp;
};
MaxAge.prototype.hashCode = function () {
var result = this.maxAgeSeconds_1;
var tmp = imul(31, result);
var tmp0_elvis_lhs = this.proxyMaxAgeSeconds_1;
result = tmp + (tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs) | 0;
result = imul(31, result) + (this.mustRevalidate_1 | 0) | 0;
result = imul(31, result) + (this.proxyRevalidate_1 | 0) | 0;
var tmp_0 = imul(31, result);
var tmp$ret$0;
$l$block: {
var tmp0_hashCode_0 = this._get_visibility__2460438457_uc8bif_k$();
var tmp0_safe_receiver_2 = tmp0_hashCode_0;
var tmp1_elvis_lhs_1 = tmp0_safe_receiver_2 == null ? null : hashCode(tmp0_safe_receiver_2);
tmp$ret$0 = tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1;
break $l$block;
}
result = tmp_0 + tmp$ret$0 | 0;
return result;
};
MaxAge.$metadata$ = {
simpleName: 'MaxAge',
kind: 'class',
interfaces: []
};
function Visibility_Public_getInstance() {
Visibility_initEntries();
return Visibility_Public_instance;
}
function Visibility_Private_getInstance() {
Visibility_initEntries();
return Visibility_Private_instance;
}
function CacheControl(visibility) {
this.visibility_1 = visibility;
}
CacheControl.prototype._get_visibility__2460438457_uc8bif_k$ = function () {
return this.visibility_1;
};
CacheControl.$metadata$ = {
simpleName: 'CacheControl',
kind: 'class',
interfaces: []
};
function _get_URL_ALPHABET__4140340808() {
init_properties_Codecs_kt_3234158621();
return URL_ALPHABET;
}
var URL_ALPHABET;
function _get_URL_ALPHABET_CHARS__3495459786() {
init_properties_Codecs_kt_3234158621();
return URL_ALPHABET_CHARS;
}
var URL_ALPHABET_CHARS;
function _get_HEX_ALPHABET__1892957428() {
init_properties_Codecs_kt_3234158621();
return HEX_ALPHABET;
}
var HEX_ALPHABET;
function _get_URL_PROTOCOL_PART__3537002055() {
init_properties_Codecs_kt_3234158621();
return URL_PROTOCOL_PART;
}
var URL_PROTOCOL_PART;
function _get_VALID_PATH_PART__414762535() {
init_properties_Codecs_kt_3234158621();
return VALID_PATH_PART;
}
var VALID_PATH_PART;
function _get_OAUTH_SYMBOLS__508661566() {
init_properties_Codecs_kt_3234158621();
return OAUTH_SYMBOLS;
}
var OAUTH_SYMBOLS;
function _get_LETTERS_AND_NUMBERS__1184446785() {
init_properties_Codecs_kt_3234158621();
return LETTERS_AND_NUMBERS;
}
var LETTERS_AND_NUMBERS;
function _get_TOKENS__1859336369() {
init_properties_Codecs_kt_3234158621();
return TOKENS;
}
var TOKENS;
function encodeURLPath(_this__1828080292) {
init_properties_Codecs_kt_3234158621();
var tmp$ret$1;
$l$block_0: {
{
}
var tmp$ret$0;
$l$block: {
var tmp0_apply_0_1 = StringBuilder_init_$Create$();
{
}
{
var charset_3 = Charsets_getInstance()._get_UTF_8__2725499985_pyf4q7_k$();
var index_4 = 0;
$l$loop_0: while (index_4 < _this__1828080292.length) {
var current_5 = charSequenceGet(_this__1828080292, index_4);
if ((equals(new Char(current_5), new Char(_Char___init__impl__380027157(47))) ? true : _get_URL_ALPHABET_CHARS__3495459786().contains_2ehdt1_k$(new Char(current_5))) ? true : _get_VALID_PATH_PART__414762535().contains_2ehdt1_k$(new Char(current_5))) {
tmp0_apply_0_1.append_t8oh9e_k$(current_5);
Unit_getInstance();
var tmp0_6 = index_4;
index_4 = tmp0_6 + 1 | 0;
Unit_getInstance();
continue $l$loop_0;
}
if (((equals(new Char(current_5), new Char(_Char___init__impl__380027157(37))) ? (index_4 + 2 | 0) < _this__1828080292.length : false) ? _get_HEX_ALPHABET__1892957428().contains_2ehdt1_k$(new Char(charSequenceGet(_this__1828080292, index_4 + 1 | 0))) : false) ? _get_HEX_ALPHABET__1892957428().contains_2ehdt1_k$(new Char(charSequenceGet(_this__1828080292, index_4 + 2 | 0))) : false) {
tmp0_apply_0_1.append_t8oh9e_k$(current_5);
Unit_getInstance();
tmp0_apply_0_1.append_t8oh9e_k$(charSequenceGet(_this__1828080292, index_4 + 1 | 0));
Unit_getInstance();
tmp0_apply_0_1.append_t8oh9e_k$(charSequenceGet(_this__1828080292, index_4 + 2 | 0));
Unit_getInstance();
index_4 = index_4 + 3 | 0;
continue $l$loop_0;
}
var symbolSize_7 = isSurrogate(current_5) ? 2 : 1;
var tmp = encode(charset_3.newEncoder_gqwcdg_k$(), _this__1828080292, index_4, index_4 + symbolSize_7 | 0);
forEach_0(tmp, encodeURLPath$lambda(tmp0_apply_0_1));
index_4 = index_4 + symbolSize_7 | 0;
}
}
tmp$ret$0 = tmp0_apply_0_1;
break $l$block;
}
tmp$ret$1 = tmp$ret$0.toString();
break $l$block_0;
}
return tmp$ret$1;
}
function encodeURLQueryComponent(_this__1828080292, encodeFull, spaceToPlus, charset) {
init_properties_Codecs_kt_3234158621();
var tmp$ret$1;
$l$block_0: {
{
}
var tmp$ret$0;
$l$block: {
var tmp0_apply_0_1 = StringBuilder_init_$Create$();
{
}
{
var tmp = charset.newEncoder_gqwcdg_k$();
var content_3 = encode$default(tmp, _this__1828080292, 0, 0, 6, null);
forEach_0(content_3, encodeURLQueryComponent$lambda(spaceToPlus, tmp0_apply_0_1, encodeFull));
}
tmp$ret$0 = tmp0_apply_0_1;
break $l$block;
}
tmp$ret$1 = tmp$ret$0.toString();
break $l$block_0;
}
return tmp$ret$1;
}
function encodeURLQueryComponent$default(_this__1828080292, encodeFull, spaceToPlus, charset, $mask0, $handler) {
if (!(($mask0 & 1) === 0))
encodeFull = false;
if (!(($mask0 & 2) === 0))
spaceToPlus = false;
if (!(($mask0 & 4) === 0))
charset = Charsets_getInstance()._get_UTF_8__2725499985_pyf4q7_k$();
return encodeURLQueryComponent(_this__1828080292, encodeFull, spaceToPlus, charset);
}
function encodeURLParameter(_this__1828080292, spaceToPlus) {
init_properties_Codecs_kt_3234158621();
var tmp$ret$1;
$l$block_0: {
{
}
var tmp$ret$0;
$l$block: {
var tmp0_apply_0_1 = StringBuilder_init_$Create$();
{
}
{
var tmp = Charsets_getInstance()._get_UTF_8__2725499985_pyf4q7_k$().newEncoder_gqwcdg_k$();
var content_3 = encode$default(tmp, _this__1828080292, 0, 0, 6, null);
forEach_0(content_3, encodeURLParameter$lambda(tmp0_apply_0_1, spaceToPlus));
}
tmp$ret$0 = tmp0_apply_0_1;
break $l$block;
}
tmp$ret$1 = tmp$ret$0.toString();
break $l$block_0;
}
return tmp$ret$1;
}
function encodeURLParameter$default(_this__1828080292, spaceToPlus, $mask0, $handler) {
if (!(($mask0 & 1) === 0))
spaceToPlus = false;
return encodeURLParameter(_this__1828080292, spaceToPlus);
}
function encodeURLParameterValue(_this__1828080292) {
init_properties_Codecs_kt_3234158621();
return encodeURLParameter(_this__1828080292, true);
}
function decodeURLPart(_this__1828080292, start, end, charset) {
init_properties_Codecs_kt_3234158621();
return decodeScan(_this__1828080292, start, end, false, charset);
}
function decodeURLPart$default(_this__1828080292, start, end, charset, $mask0, $handler) {
if (!(($mask0 & 1) === 0))
start = 0;
if (!(($mask0 & 2) === 0))
end = _this__1828080292.length;
if (!(($mask0 & 4) === 0))
charset = Charsets_getInstance()._get_UTF_8__2725499985_pyf4q7_k$();
return decodeURLPart(_this__1828080292, start, end, charset);
}
function forEach_0(_this__1828080292, block) {
init_properties_Codecs_kt_3234158621();
var tmp$ret$0;
$l$block: {
var release_1 = true;
var tmp0_elvis_lhs_3 = prepareReadFirstHead(_this__1828080292, 1);
var tmp;
if (tmp0_elvis_lhs_3 == null) {
tmp$ret$0 = Unit_getInstance();
break $l$block;
} else {
tmp = tmp0_elvis_lhs_3;
}
var current_2 = tmp;
try {
$l$loop_1: do {
var tmp$ret$2;
$l$block_1: {
var tmp0__anonymous__6_2495602526 = current_2;
$l$loop: while (true) {
var tmp$ret$1;
$l$block_0: {
tmp$ret$1 = tmp0__anonymous__6_2495602526._get_writePosition__829124521_dpn0kp_k$() > tmp0__anonymous__6_2495602526._get_readPosition__3833080908_7mzttg_k$();
break $l$block_0;
}
if (!tmp$ret$1) {
break $l$loop;
}
block(tmp0__anonymous__6_2495602526.readByte_ectjk2_k$());
}
tmp$ret$2 = true;
break $l$block_1;
}
if (!tmp$ret$2) {
break $l$loop_1;
} else {
}
release_1 = false;
var tmp1_elvis_lhs_5 = prepareReadNextHead(_this__1828080292, current_2);
var tmp_0;
if (tmp1_elvis_lhs_5 == null) {
break $l$loop_1;
} else {
tmp_0 = tmp1_elvis_lhs_5;
}
var next_4 = tmp_0;
current_2 = next_4;
release_1 = true;
}
while (true);
}finally {
if (release_1) {
completeReadHead(_this__1828080292, current_2);
}
}
}
}
function percentEncode(_this__1828080292) {
init_properties_Codecs_kt_3234158621();
var tmp$ret$1;
$l$block_0: {
{
}
var tmp$ret$0;
$l$block: {
var tmp0_apply_0_1 = StringBuilder_init_$Create$_0(3);
{
}
{
var code_3 = _this__1828080292 & 255;
tmp0_apply_0_1.append_t8oh9e_k$(_Char___init__impl__380027157(37));
Unit_getInstance();
tmp0_apply_0_1.append_t8oh9e_k$(hexDigitToChar(code_3 >> 4));
Unit_getInstance();
tmp0_apply_0_1.append_t8oh9e_k$(hexDigitToChar(code_3 & 15));
Unit_getInstance();
}
tmp$ret$0 = tmp0_apply_0_1;
break $l$block;
}
tmp$ret$1 = tmp$ret$0.toString();
break $l$block_0;
}
return tmp$ret$1;
}
function decodeScan(_this__1828080292, start, end, plusIsSpace, charset) {
init_properties_Codecs_kt_3234158621();
var inductionVariable = start;
if (inductionVariable < end)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
var ch = charSequenceGet(_this__1828080292, index);
if (equals(new Char(ch), new Char(_Char___init__impl__380027157(37))) ? true : plusIsSpace ? equals(new Char(ch), new Char(_Char___init__impl__380027157(43))) : false) {
return decodeImpl(_this__1828080292, start, end, index, plusIsSpace, charset);
}
}
while (inductionVariable < end);
var tmp;
if (start === 0 ? end === _this__1828080292.length : false) {
tmp = toString(_this__1828080292);
} else {
var tmp$ret$1;
$l$block_0: {
var tmp$ret$0;
$l$block: {
tmp$ret$0 = _this__1828080292;
break $l$block;
}
tmp$ret$1 = tmp$ret$0.substring(start, end);
break $l$block_0;
}
tmp = tmp$ret$1;
}
return tmp;
}
function hexDigitToChar(digit) {
init_properties_Codecs_kt_3234158621();
var tmp0_subject = digit;
return (0 <= tmp0_subject ? tmp0_subject <= 9 : false) ? Char__plus_impl_2692254045(_Char___init__impl__380027157(48), digit) : Char__minus_impl_3686210483(Char__plus_impl_2692254045(_Char___init__impl__380027157(65), digit), 10);
}
function decodeImpl(_this__1828080292, start, end, prefixEnd, plusIsSpace, charset) {
init_properties_Codecs_kt_3234158621();
var length = end - start | 0;
var sbSize = length > 255 ? length / 3 | 0 : length;
var sb = StringBuilder_init_$Create$_0(sbSize);
if (prefixEnd > start) {
sb.append_tbojcw_k$(_this__1828080292, start, prefixEnd);
Unit_getInstance();
}
var index = prefixEnd;
var bytes = null;
while (index < end) {
var c = charSequenceGet(_this__1828080292, index);
if (plusIsSpace ? equals(new Char(c), new Char(_Char___init__impl__380027157(43))) : false) {
sb.append_t8oh9e_k$(_Char___init__impl__380027157(32));
Unit_getInstance();
var tmp0 = index;
index = tmp0 + 1 | 0;
Unit_getInstance();
} else if (equals(new Char(c), new Char(_Char___init__impl__380027157(37)))) {
if (bytes == null) {
bytes = new Int8Array((end - index | 0) / 3 | 0);
}
var count = 0;
while (index < end ? equals(new Char(charSequenceGet(_this__1828080292, index)), new Char(_Char___init__impl__380027157(37))) : false) {
if ((index + 2 | 0) >= end) {
var tmp$ret$0;
$l$block: {
var tmp0_substring_0 = index;
var tmp1_substring_0 = charSequenceLength(_this__1828080292);
tmp$ret$0 = toString(charSequenceSubSequence(_this__1828080292, tmp0_substring_0, tmp1_substring_0));
break $l$block;
}
throw new URLDecodeException('Incomplete trailing HEX escape: ' + tmp$ret$0 + ', in ' + _this__1828080292 + ' at ' + index);
}
var digit1 = charToHexDigit(charSequenceGet(_this__1828080292, index + 1 | 0));
var digit2 = charToHexDigit(charSequenceGet(_this__1828080292, index + 2 | 0));
if (digit1 === -1 ? true : digit2 === -1) {
throw new URLDecodeException('Wrong HEX escape: %' + new Char(charSequenceGet(_this__1828080292, index + 1 | 0)) + new Char(charSequenceGet(_this__1828080292, index + 2 | 0)) + ', in ' + _this__1828080292 + ', at ' + index);
}
var tmp = bytes;
var tmp1 = count;
count = tmp1 + 1 | 0;
tmp[tmp1] = toByte(imul(digit1, 16) + digit2 | 0);
index = index + 3 | 0;
}
sb.append_ssq29y_k$(String_0(bytes, 0, count, charset));
Unit_getInstance();
} else {
sb.append_t8oh9e_k$(c);
Unit_getInstance();
var tmp2 = index;
index = tmp2 + 1 | 0;
Unit_getInstance();
}
}
return sb.toString();
}
function URLDecodeException(message) {
Exception_init_$Init$(message, this);
captureStack(this, URLDecodeException);
}
URLDecodeException.$metadata$ = {
simpleName: 'URLDecodeException',
kind: 'class',
interfaces: []
};
function charToHexDigit(c2) {
init_properties_Codecs_kt_3234158621();
var tmp0_subject = c2;
return (_Char___init__impl__380027157(48) <= tmp0_subject ? tmp0_subject <= _Char___init__impl__380027157(57) : false) ? Char__minus_impl_3686210483_0(c2, _Char___init__impl__380027157(48)) : (_Char___init__impl__380027157(65) <= tmp0_subject ? tmp0_subject <= _Char___init__impl__380027157(70) : false) ? Char__minus_impl_3686210483_0(c2, _Char___init__impl__380027157(65)) + 10 | 0 : (_Char___init__impl__380027157(97) <= tmp0_subject ? tmp0_subject <= _Char___init__impl__380027157(102) : false) ? Char__minus_impl_3686210483_0(c2, _Char___init__impl__380027157(97)) + 10 | 0 : -1;
}
function decodeURLQueryComponent(_this__1828080292, start, end, plusIsSpace, charset) {
init_properties_Codecs_kt_3234158621();
return decodeScan(_this__1828080292, start, end, plusIsSpace, charset);
}
function decodeURLQueryComponent$default(_this__1828080292, start, end, plusIsSpace, charset, $mask0, $handler) {
if (!(($mask0 & 1) === 0))
start = 0;
if (!(($mask0 & 2) === 0))
end = _this__1828080292.length;
if (!(($mask0 & 4) === 0))
plusIsSpace = false;
if (!(($mask0 & 8) === 0))
charset = Charsets_getInstance()._get_UTF_8__2725499985_pyf4q7_k$();
return decodeURLQueryComponent(_this__1828080292, start, end, plusIsSpace, charset);
}
function encodeURLPath$lambda($tmp0_apply_0_1) {
return function (it) {
$tmp0_apply_0_1.append_ssq29y_k$(percentEncode(it));
Unit_getInstance();
return Unit_getInstance();
};
}
function encodeURLQueryComponent$lambda($spaceToPlus, $tmp0_apply_0_1, $encodeFull) {
return function (it) {
var tmp;
if (it === 32) {
var tmp_0;
if ($spaceToPlus) {
$tmp0_apply_0_1.append_t8oh9e_k$(_Char___init__impl__380027157(43));
tmp_0 = Unit_getInstance();
} else {
$tmp0_apply_0_1.append_ssq29y_k$('%20');
tmp_0 = Unit_getInstance();
}
tmp = tmp_0;
} else if (_get_URL_ALPHABET__4140340808().contains_2ehdt1_k$(it) ? true : !$encodeFull ? _get_URL_PROTOCOL_PART__3537002055().contains_2ehdt1_k$(it) : false) {
$tmp0_apply_0_1.append_t8oh9e_k$(numberToChar(it));
tmp = Unit_getInstance();
} else {
$tmp0_apply_0_1.append_ssq29y_k$(percentEncode(it));
tmp = Unit_getInstance();
}
return Unit_getInstance();
};
}
function encodeURLParameter$lambda($tmp0_apply_0_1, $spaceToPlus) {
return function (it) {
var tmp;
if (_get_URL_ALPHABET__4140340808().contains_2ehdt1_k$(it) ? true : _get_OAUTH_SYMBOLS__508661566().contains_2ehdt1_k$(it)) {
$tmp0_apply_0_1.append_t8oh9e_k$(numberToChar(it));
tmp = Unit_getInstance();
} else if ($spaceToPlus ? it === 32 : false) {
$tmp0_apply_0_1.append_t8oh9e_k$(_Char___init__impl__380027157(43));
tmp = Unit_getInstance();
} else {
$tmp0_apply_0_1.append_ssq29y_k$(percentEncode(it));
tmp = Unit_getInstance();
}
return Unit_getInstance();
};
}
var properties_initialized_Codecs_kt_1062416449;
function init_properties_Codecs_kt_3234158621() {
if (!properties_initialized_Codecs_kt_1062416449) {
properties_initialized_Codecs_kt_1062416449 = true;
var tmp$ret$2;
$l$block_1: {
var tmp0_map_0 = plus_0(plus(Char__rangeTo_impl_2506766091(_Char___init__impl__380027157(97), _Char___init__impl__380027157(122)), Char__rangeTo_impl_2506766091(_Char___init__impl__380027157(65), _Char___init__impl__380027157(90))), Char__rangeTo_impl_2506766091(_Char___init__impl__380027157(48), _Char___init__impl__380027157(57)));
var tmp$ret$1;
$l$block_0: {
var tmp0_mapTo_0_1 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map_0, 10));
var tmp0_iterator_1_2 = tmp0_map_0.iterator_jk1svi_k$();
while (tmp0_iterator_1_2.hasNext_bitz1p_k$()) {
var item_2_3 = tmp0_iterator_1_2.next_20eer_k$().value_1;
var tmp$ret$0;
$l$block: {
tmp$ret$0 = Char__toByte_impl_470664180(item_2_3);
break $l$block;
}
tmp0_mapTo_0_1.add_1j60pz_k$(tmp$ret$0);
Unit_getInstance();
}
tmp$ret$1 = tmp0_mapTo_0_1;
break $l$block_0;
}
tmp$ret$2 = tmp$ret$1;
break $l$block_1;
}
URL_ALPHABET = tmp$ret$2;
URL_ALPHABET_CHARS = plus_0(plus(Char__rangeTo_impl_2506766091(_Char___init__impl__380027157(97), _Char___init__impl__380027157(122)), Char__rangeTo_impl_2506766091(_Char___init__impl__380027157(65), _Char___init__impl__380027157(90))), Char__rangeTo_impl_2506766091(_Char___init__impl__380027157(48), _Char___init__impl__380027157(57)));
HEX_ALPHABET = plus_0(plus(Char__rangeTo_impl_2506766091(_Char___init__impl__380027157(97), _Char___init__impl__380027157(102)), Char__rangeTo_impl_2506766091(_Char___init__impl__380027157(65), _Char___init__impl__380027157(70))), Char__rangeTo_impl_2506766091(_Char___init__impl__380027157(48), _Char___init__impl__380027157(57)));
var tmp$ret$2_0;
$l$block_4: {
var tmp0_map_0_0 = listOf([new Char(_Char___init__impl__380027157(58)), new Char(_Char___init__impl__380027157(47)), new Char(_Char___init__impl__380027157(63)), new Char(_Char___init__impl__380027157(35)), new Char(_Char___init__impl__380027157(91)), new Char(_Char___init__impl__380027157(93)), new Char(_Char___init__impl__380027157(64)), new Char(_Char___init__impl__380027157(33)), new Char(_Char___init__impl__380027157(36)), new Char(_Char___init__impl__380027157(38)), new Char(_Char___init__impl__380027157(39)), new Char(_Char___init__impl__380027157(40)), new Char(_Char___init__impl__380027157(41)), new Char(_Char___init__impl__380027157(42)), new Char(_Char___init__impl__380027157(44)), new Char(_Char___init__impl__380027157(59)), new Char(_Char___init__impl__380027157(61)), new Char(_Char___init__impl__380027157(45)), new Char(_Char___init__impl__380027157(46)), new Char(_Char___init__impl__380027157(95)), new Char(_Char___init__impl__380027157(126)), new Char(_Char___init__impl__380027157(43))]);
var tmp$ret$1_0;
$l$block_3: {
var tmp0_mapTo_0_1_0 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map_0_0, 10));
var tmp0_iterator_1_2_0 = tmp0_map_0_0.iterator_jk1svi_k$();
while (tmp0_iterator_1_2_0.hasNext_bitz1p_k$()) {
var item_2_3_0 = tmp0_iterator_1_2_0.next_20eer_k$().value_1;
var tmp$ret$0_0;
$l$block_2: {
tmp$ret$0_0 = Char__toByte_impl_470664180(item_2_3_0);
break $l$block_2;
}
tmp0_mapTo_0_1_0.add_1j60pz_k$(tmp$ret$0_0);
Unit_getInstance();
}
tmp$ret$1_0 = tmp0_mapTo_0_1_0;
break $l$block_3;
}
tmp$ret$2_0 = tmp$ret$1_0;
break $l$block_4;
}
URL_PROTOCOL_PART = tmp$ret$2_0;
VALID_PATH_PART = listOf([new Char(_Char___init__impl__380027157(58)), new Char(_Char___init__impl__380027157(64)), new Char(_Char___init__impl__380027157(33)), new Char(_Char___init__impl__380027157(36)), new Char(_Char___init__impl__380027157(38)), new Char(_Char___init__impl__380027157(39)), new Char(_Char___init__impl__380027157(40)), new Char(_Char___init__impl__380027157(41)), new Char(_Char___init__impl__380027157(42)), new Char(_Char___init__impl__380027157(43)), new Char(_Char___init__impl__380027157(44)), new Char(_Char___init__impl__380027157(59)), new Char(_Char___init__impl__380027157(61)), new Char(_Char___init__impl__380027157(45)), new Char(_Char___init__impl__380027157(46)), new Char(_Char___init__impl__380027157(95)), new Char(_Char___init__impl__380027157(126))]);
var tmp$ret$2_1;
$l$block_7: {
var tmp0_map_0_1 = listOf([new Char(_Char___init__impl__380027157(45)), new Char(_Char___init__impl__380027157(46)), new Char(_Char___init__impl__380027157(95)), new Char(_Char___init__impl__380027157(126))]);
var tmp$ret$1_1;
$l$block_6: {
var tmp0_mapTo_0_1_1 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map_0_1, 10));
var tmp0_iterator_1_2_1 = tmp0_map_0_1.iterator_jk1svi_k$();
while (tmp0_iterator_1_2_1.hasNext_bitz1p_k$()) {
var item_2_3_1 = tmp0_iterator_1_2_1.next_20eer_k$().value_1;
var tmp$ret$0_1;
$l$block_5: {
tmp$ret$0_1 = Char__toByte_impl_470664180(item_2_3_1);
break $l$block_5;
}
tmp0_mapTo_0_1_1.add_1j60pz_k$(tmp$ret$0_1);
Unit_getInstance();
}
tmp$ret$1_1 = tmp0_mapTo_0_1_1;
break $l$block_6;
}
tmp$ret$2_1 = tmp$ret$1_1;
break $l$block_7;
}
OAUTH_SYMBOLS = tmp$ret$2_1;
LETTERS_AND_NUMBERS = plus_1(plus_1(toSet(Char__rangeTo_impl_2506766091(_Char___init__impl__380027157(97), _Char___init__impl__380027157(122))), toSet(Char__rangeTo_impl_2506766091(_Char___init__impl__380027157(65), _Char___init__impl__380027157(90)))), toSet(Char__rangeTo_impl_2506766091(_Char___init__impl__380027157(48), _Char___init__impl__380027157(57))));
TOKENS = plus_1(setOf([new Char(_Char___init__impl__380027157(33)), new Char(_Char___init__impl__380027157(35)), new Char(_Char___init__impl__380027157(37)), new Char(_Char___init__impl__380027157(38)), new Char(_Char___init__impl__380027157(39)), new Char(_Char___init__impl__380027157(42)), new Char(_Char___init__impl__380027157(43)), new Char(_Char___init__impl__380027157(45)), new Char(_Char___init__impl__380027157(46)), new Char(_Char___init__impl__380027157(94)), new Char(_Char___init__impl__380027157(95)), new Char(_Char___init__impl__380027157(96)), new Char(_Char___init__impl__380027157(124)), new Char(_Char___init__impl__380027157(126))]), _get_LETTERS_AND_NUMBERS__1184446785());
}
}
function ContentTypeMatcher() {
}
ContentTypeMatcher.$metadata$ = {
simpleName: 'ContentTypeMatcher',
kind: 'interface',
interfaces: []
};
function ContentType_init_$Init$(contentType, contentSubtype, existingContent, parameters, $mask0, $marker, $this) {
if (!(($mask0 & 8) === 0))
parameters = emptyList();
ContentType.call($this, contentType, contentSubtype, existingContent, parameters);
return $this;
}
function ContentType_init_$Create$(contentType, contentSubtype, existingContent, parameters, $mask0, $marker) {
return ContentType_init_$Init$(contentType, contentSubtype, existingContent, parameters, $mask0, $marker, Object.create(ContentType.prototype));
}
function ContentType_init_$Init$_0(contentType, contentSubtype, parameters, $this) {
ContentType.call($this, contentType, contentSubtype, contentType + '/' + contentSubtype, parameters);
return $this;
}
function ContentType_init_$Create$_0(contentType, contentSubtype, parameters) {
return ContentType_init_$Init$_0(contentType, contentSubtype, parameters, Object.create(ContentType.prototype));
}
function ContentType_init_$Init$_1(contentType, contentSubtype, parameters, $mask0, $marker, $this) {
if (!(($mask0 & 4) === 0))
parameters = emptyList();
ContentType_init_$Init$_0(contentType, contentSubtype, parameters, $this);
return $this;
}
function ContentType_init_$Create$_1(contentType, contentSubtype, parameters, $mask0, $marker) {
return ContentType_init_$Init$_1(contentType, contentSubtype, parameters, $mask0, $marker, Object.create(ContentType.prototype));
}
function hasParameter($this, name, value) {
var tmp0_subject = $this._get_parameters__3744582625_93onj3_k$()._get_size__809037418_ddoh9m_k$();
var tmp;
switch (tmp0_subject) {
case 0:
tmp = false;