diff --git a/src/vi/cuutruyen/AndroidManifest.xml b/src/vi/cuutruyen/AndroidManifest.xml
new file mode 100644
index 000000000..2eedd9869
--- /dev/null
+++ b/src/vi/cuutruyen/AndroidManifest.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/vi/cuutruyen/build.gradle b/src/vi/cuutruyen/build.gradle
new file mode 100644
index 000000000..d0740e52c
--- /dev/null
+++ b/src/vi/cuutruyen/build.gradle
@@ -0,0 +1,12 @@
+apply plugin: 'com.android.application'
+apply plugin: 'kotlin-android'
+apply plugin: 'kotlinx-serialization'
+
+ext {
+ extName = 'Cứu Truyện'
+ pkgNameSuffix = 'vi.cuutruyen'
+ extClass = '.CuuTruyen'
+ extVersionCode = 1
+}
+
+apply from: "$rootDir/common.gradle"
\ No newline at end of file
diff --git a/src/vi/cuutruyen/res/mipmap-hdpi/ic_launcher.png b/src/vi/cuutruyen/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 000000000..4163a35df
Binary files /dev/null and b/src/vi/cuutruyen/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/src/vi/cuutruyen/res/mipmap-mdpi/ic_launcher.png b/src/vi/cuutruyen/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 000000000..5159fe2b3
Binary files /dev/null and b/src/vi/cuutruyen/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/src/vi/cuutruyen/res/mipmap-xhdpi/ic_launcher.png b/src/vi/cuutruyen/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 000000000..b02c7ce8c
Binary files /dev/null and b/src/vi/cuutruyen/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/src/vi/cuutruyen/res/mipmap-xxhdpi/ic_launcher.png b/src/vi/cuutruyen/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 000000000..734e12dd8
Binary files /dev/null and b/src/vi/cuutruyen/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/src/vi/cuutruyen/res/mipmap-xxxhdpi/ic_launcher.png b/src/vi/cuutruyen/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 000000000..4840e1f88
Binary files /dev/null and b/src/vi/cuutruyen/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/src/vi/cuutruyen/res/web_hi_res_512.png b/src/vi/cuutruyen/res/web_hi_res_512.png
new file mode 100644
index 000000000..9f8907e3b
Binary files /dev/null and b/src/vi/cuutruyen/res/web_hi_res_512.png differ
diff --git a/src/vi/cuutruyen/src/eu/kanade/tachiyomi/extension/vi/cuutruyen/CuuTruyen.kt b/src/vi/cuutruyen/src/eu/kanade/tachiyomi/extension/vi/cuutruyen/CuuTruyen.kt
new file mode 100644
index 000000000..3c0c12fb8
--- /dev/null
+++ b/src/vi/cuutruyen/src/eu/kanade/tachiyomi/extension/vi/cuutruyen/CuuTruyen.kt
@@ -0,0 +1,194 @@
+package eu.kanade.tachiyomi.extension.vi.cuutruyen
+
+import android.app.Application
+import android.content.SharedPreferences
+import androidx.preference.ListPreference
+import androidx.preference.PreferenceScreen
+import eu.kanade.tachiyomi.extension.vi.cuutruyen.dto.ChapterDto
+import eu.kanade.tachiyomi.extension.vi.cuutruyen.dto.MangaDto
+import eu.kanade.tachiyomi.extension.vi.cuutruyen.dto.ResponseDto
+import eu.kanade.tachiyomi.network.GET
+import eu.kanade.tachiyomi.network.asObservableSuccess
+import eu.kanade.tachiyomi.network.interceptor.rateLimit
+import eu.kanade.tachiyomi.source.ConfigurableSource
+import eu.kanade.tachiyomi.source.model.FilterList
+import eu.kanade.tachiyomi.source.model.MangasPage
+import eu.kanade.tachiyomi.source.model.Page
+import eu.kanade.tachiyomi.source.model.SChapter
+import eu.kanade.tachiyomi.source.model.SManga
+import eu.kanade.tachiyomi.source.online.HttpSource
+import kotlinx.serialization.decodeFromString
+import kotlinx.serialization.json.Json
+import okhttp3.CacheControl
+import okhttp3.Headers
+import okhttp3.HttpUrl.Companion.toHttpUrl
+import okhttp3.Request
+import okhttp3.Response
+import rx.Observable
+import uy.kohesive.injekt.Injekt
+import uy.kohesive.injekt.api.get
+
+class CuuTruyen : HttpSource(), ConfigurableSource {
+
+ override val name = "Cứu Truyện"
+
+ override val lang = "vi"
+
+ override val baseUrl = "https://cuutruyen.net"
+ private val apiUrl = "https://kakarot.cuutruyen.net/api/v2"
+
+ override val supportsLatest = true
+
+ private val preferences: SharedPreferences by lazy {
+ Injekt.get().getSharedPreferences("source_$id", 0x0000)
+ }
+
+ override fun headersBuilder() = Headers.Builder()
+ .add("Referer", "$baseUrl/")
+
+ override val client = network.client.newBuilder()
+ .rateLimit(3)
+ .addInterceptor(CuuTruyenImageInterceptor())
+ .build()
+
+ override fun popularMangaRequest(page: Int): Request {
+ val url = apiUrl.toHttpUrl().newBuilder().apply {
+ addPathSegments("mangas/top")
+ addQueryParameter("duration", "all")
+ addQueryParameter("page", page.toString())
+ addQueryParameter("per_page", "24")
+ }.build().toString()
+ return GET(url, headers = headers, cache = CacheControl.FORCE_NETWORK)
+ }
+
+ override fun popularMangaParse(response: Response): MangasPage {
+ if (response.code == 500) {
+ return MangasPage(emptyList(), false)
+ }
+
+ val responseDto = response.parseAs>>()
+ val hasMoreResults = responseDto.metadata!!.currentPage < responseDto.metadata.totalPages
+
+ val coverKey = preferences.coverQuality
+ return MangasPage(
+ responseDto.data.map { it.toSManga(coverKey) },
+ hasMoreResults
+ )
+ }
+
+ override fun latestUpdatesRequest(page: Int): Request {
+ val url = apiUrl.toHttpUrl().newBuilder().apply {
+ addPathSegments("mangas/recently_updated")
+ addQueryParameter("page", page.toString())
+ addQueryParameter("per_page", "24")
+ }.build().toString()
+ return GET(url, headers = headers, cache = CacheControl.FORCE_NETWORK)
+ }
+
+ override fun latestUpdatesParse(response: Response): MangasPage = popularMangaParse(response)
+
+ override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable {
+ return when {
+ query.startsWith(PREFIX_ID_SEARCH) -> {
+ val id = query.removePrefix(PREFIX_ID_SEARCH).trim()
+ if (id.toIntOrNull() == null) {
+ throw Exception("ID tìm kiếm không hợp lệ (phải là một số).")
+ }
+ fetchMangaDetails(
+ SManga.create().apply {
+ url = "/mangas/$id"
+ }
+ )
+ .map { MangasPage(listOf(it), false) }
+ }
+ else -> super.fetchSearchManga(page, query, filters)
+ }
+ }
+
+ override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
+ val url = apiUrl.toHttpUrl().newBuilder().apply {
+ addPathSegments("mangas/search")
+ addQueryParameter("q", query)
+ addQueryParameter("page", page.toString())
+ addQueryParameter("per_page", "24")
+ }.build().toString()
+ return GET(url, headers = headers, cache = CacheControl.FORCE_NETWORK)
+ }
+
+ override fun searchMangaParse(response: Response) = popularMangaParse(response)
+
+ override fun fetchMangaDetails(manga: SManga): Observable =
+ client.newCall(GET("$apiUrl${manga.url}", headers = headers, cache = CacheControl.FORCE_NETWORK))
+ .asObservableSuccess()
+ .map { mangaDetailsParse(it) }
+
+ override fun mangaDetailsRequest(manga: SManga): Request = GET("$baseUrl${manga.url}")
+
+ override fun mangaDetailsParse(response: Response): SManga {
+ val responseDto = response.parseAs>()
+ return responseDto.data.toSManga(preferences.coverQuality)
+ }
+
+ override fun chapterListRequest(manga: SManga): Request =
+ GET("$apiUrl${manga.url}/chapters", headers = headers, cache = CacheControl.FORCE_NETWORK)
+
+ override fun chapterListParse(response: Response): List {
+ val segments = response.request.url.pathSegments
+ val lastIndex = segments.lastIndex
+ val mangaUrl = "/${segments[lastIndex - 2]}/${segments[lastIndex - 1]}"
+ return response.parseAs>>().data.map { it.toSChapter(mangaUrl) }
+ }
+
+ override fun pageListRequest(chapter: SChapter): Request {
+ val url = apiUrl.toHttpUrl().newBuilder().apply {
+ val chapterId = chapter.url.split("/").last()
+ addPathSegment("chapters")
+ addPathSegment(chapterId)
+ }.build().toString()
+ return GET(url, headers = headers, cache = CacheControl.FORCE_NETWORK)
+ }
+
+ override fun pageListParse(response: Response): List {
+ val chapterDto = response.parseAs>()
+ return chapterDto.data.pages!!.map { it.toPage() }
+ }
+
+ override fun imageUrlParse(response: Response): String = throw Exception("Not used")
+
+ private val json = Json {
+ ignoreUnknownKeys = true
+ }
+
+ private inline fun Response.parseAs(): T = use {
+ json.decodeFromString(body?.string().orEmpty())
+ }
+
+ override fun setupPreferenceScreen(screen: PreferenceScreen) {
+ val coverQualityPref = ListPreference(screen.context).apply {
+ key = "coverQuality"
+ title = "Chất lượng ảnh bìa"
+ entries = arrayOf("Chất lượng cao", "Di động")
+ entryValues = arrayOf("cover_url", "cover_mobile_url")
+ setDefaultValue("cover_url")
+
+ setOnPreferenceChangeListener { _, newValue ->
+ val selected = newValue as String
+ val index = findIndexOfValue(selected)
+ val entry = entryValues[index] as String
+
+ preferences.edit()
+ .putString("coverQuality", entry)
+ .commit()
+ }
+ }
+
+ screen.addPreference(coverQualityPref)
+ }
+
+ private val SharedPreferences.coverQuality
+ get() = getString("coverQuality", "")
+
+ companion object {
+ const val PREFIX_ID_SEARCH = "id:"
+ }
+}
diff --git a/src/vi/cuutruyen/src/eu/kanade/tachiyomi/extension/vi/cuutruyen/CuuTruyenImageInterceptor.kt b/src/vi/cuutruyen/src/eu/kanade/tachiyomi/extension/vi/cuutruyen/CuuTruyenImageInterceptor.kt
new file mode 100644
index 000000000..47c325e0d
--- /dev/null
+++ b/src/vi/cuutruyen/src/eu/kanade/tachiyomi/extension/vi/cuutruyen/CuuTruyenImageInterceptor.kt
@@ -0,0 +1,79 @@
+package eu.kanade.tachiyomi.extension.vi.cuutruyen
+
+import android.graphics.Bitmap
+import android.graphics.BitmapFactory
+import android.graphics.Canvas
+import android.graphics.Rect
+import android.util.Log
+import app.cash.quickjs.QuickJs
+import kotlinx.serialization.json.Json
+import kotlinx.serialization.json.int
+import kotlinx.serialization.json.jsonArray
+import kotlinx.serialization.json.jsonPrimitive
+import okhttp3.Interceptor
+import okhttp3.MediaType.Companion.toMediaTypeOrNull
+import okhttp3.Response
+import okhttp3.ResponseBody.Companion.toResponseBody
+import uy.kohesive.injekt.injectLazy
+import java.io.ByteArrayOutputStream
+import java.io.InputStream
+
+class CuuTruyenImageInterceptor : Interceptor {
+ override fun intercept(chain: Interceptor.Chain): Response {
+ val response = chain.proceed(chain.request())
+
+ var drmData = chain.request().url.queryParameter(KEY) ?: return response
+ drmData = drmData.replace("\n", "\\n")
+
+ val image = unscrambleImage(response.body!!.byteStream(), drmData)
+ val body = image.toResponseBody("image/jpeg".toMediaTypeOrNull())
+ return response.newBuilder()
+ .body(body)
+ .build()
+ }
+
+ private fun unscrambleImage(image: InputStream, drmData: String): ByteArray {
+ val bitmap = BitmapFactory.decodeStream(image)
+
+ val result = Bitmap.createBitmap(bitmap.width, bitmap.height, Bitmap.Config.ARGB_8888)
+ val canvas = Canvas(result)
+
+ val decryptScript = cuudrmJs + "JSON.stringify(cuudrm.render_image(undefined, undefined, '$drmData'))"
+ try {
+ val transformationsString = QuickJs.create().use { it.evaluate(decryptScript).toString() }
+ json.parseToJsonElement(transformationsString).jsonArray.forEach {
+ val coordinates = it.jsonArray.map { i -> i.jsonPrimitive.int }
+ // Scrambling only happens horizontally (along the height).
+ //
+ // The coordinates array are arguments of JS' CanvasRenderingContext2D.drawImage():
+ // sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight
+ //
+ // coordinates[2] and coordinates[6] are not used because they are set to a specific
+ // width (1115) to keep cuudrm_bg happy without giving it an actual image to work with.
+ // We use bitmap.width instead.
+ val srcRect = Rect(coordinates[0], coordinates[1], coordinates[0] + bitmap.width, coordinates[1] + coordinates[3])
+ val dstRect = Rect(coordinates[4], coordinates[5], coordinates[4] + bitmap.width, coordinates[5] + coordinates[7])
+ canvas.drawBitmap(bitmap, srcRect, dstRect, null)
+ }
+ } catch (e: Exception) {
+ Log.e("cuutruyen", "exception during decryption: $e")
+ }
+
+ val output = ByteArrayOutputStream()
+ result.compress(Bitmap.CompressFormat.JPEG, 100, output)
+ return output.toByteArray()
+ }
+
+ private val json: Json by injectLazy()
+
+ companion object {
+ const val KEY = "drm_data"
+ /*
+ This is the combined, minified mess of:
+ - https://github.com/inexorabletash/text-encoding/raw/master/lib/encoding.js
+ - https://gist.githubusercontent.com/beerpiss/9fe90191d4e67bba1ab69a14618e2036/raw/ce078b70265633f0b619fb6c0d454c0c3c195ab3/cuudrm_bg.js
+ - https://cuutruyen.net/ec6c013a024fb3d1.module.wasm, converted to js using binaryen's wasm2js
+ */
+ val cuudrmJs = "!function(n){\"use strict\";function e(n,e,r){return e<=n&&n<=r}\"undefined\"!=typeof module&&module.exports&&!n[\"encoding-indexes\"]&&(n[\"encoding-indexes\"]=require(\"./encoding-indexes.js\")[\"encoding-indexes\"]);var r=Math.floor;function i(n){if(void 0===n)return{};if(n===Object(n))return n;throw TypeError(\"Could not convert argument to dictionary\")}function t(n){return 0<=n&&n<=127}var o=t,s=-1;function a(n){this.tokens=[].slice.call(n),this.tokens.reverse()}a.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.pop():s},prepend:function(n){if(Array.isArray(n))for(var e=n;e.length;)this.tokens.push(e.pop());else this.tokens.push(n)},push:function(n){if(Array.isArray(n))for(var e=n;e.length;)this.tokens.unshift(e.shift());else this.tokens.unshift(n)}};var u=-1;function l(n,e){if(n)throw TypeError(\"Decoder error\");return e||65533}function f(n){throw TypeError(\"The code point \"+n+\" could not be encoded.\")}function c(n){return n=String(n).trim().toLowerCase(),Object.prototype.hasOwnProperty.call(h,n)?h[n]:null}var d=[{encodings:[{labels:[\"unicode-1-1-utf-8\",\"utf-8\",\"utf8\"],name:\"UTF-8\"}],heading:\"The Encoding\"},{encodings:[{labels:[\"866\",\"cp866\",\"csibm866\",\"ibm866\"],name:\"IBM866\"},{labels:[\"csisolatin2\",\"iso-8859-2\",\"iso-ir-101\",\"iso8859-2\",\"iso88592\",\"iso_8859-2\",\"iso_8859-2:1987\",\"l2\",\"latin2\"],name:\"ISO-8859-2\"},{labels:[\"csisolatin3\",\"iso-8859-3\",\"iso-ir-109\",\"iso8859-3\",\"iso88593\",\"iso_8859-3\",\"iso_8859-3:1988\",\"l3\",\"latin3\"],name:\"ISO-8859-3\"},{labels:[\"csisolatin4\",\"iso-8859-4\",\"iso-ir-110\",\"iso8859-4\",\"iso88594\",\"iso_8859-4\",\"iso_8859-4:1988\",\"l4\",\"latin4\"],name:\"ISO-8859-4\"},{labels:[\"csisolatincyrillic\",\"cyrillic\",\"iso-8859-5\",\"iso-ir-144\",\"iso8859-5\",\"iso88595\",\"iso_8859-5\",\"iso_8859-5:1988\"],name:\"ISO-8859-5\"},{labels:[\"arabic\",\"asmo-708\",\"csiso88596e\",\"csiso88596i\",\"csisolatinarabic\",\"ecma-114\",\"iso-8859-6\",\"iso-8859-6-e\",\"iso-8859-6-i\",\"iso-ir-127\",\"iso8859-6\",\"iso88596\",\"iso_8859-6\",\"iso_8859-6:1987\"],name:\"ISO-8859-6\"},{labels:[\"csisolatingreek\",\"ecma-118\",\"elot_928\",\"greek\",\"greek8\",\"iso-8859-7\",\"iso-ir-126\",\"iso8859-7\",\"iso88597\",\"iso_8859-7\",\"iso_8859-7:1987\",\"sun_eu_greek\"],name:\"ISO-8859-7\"},{labels:[\"csiso88598e\",\"csisolatinhebrew\",\"hebrew\",\"iso-8859-8\",\"iso-8859-8-e\",\"iso-ir-138\",\"iso8859-8\",\"iso88598\",\"iso_8859-8\",\"iso_8859-8:1988\",\"visual\"],name:\"ISO-8859-8\"},{labels:[\"csiso88598i\",\"iso-8859-8-i\",\"logical\"],name:\"ISO-8859-8-I\"},{labels:[\"csisolatin6\",\"iso-8859-10\",\"iso-ir-157\",\"iso8859-10\",\"iso885910\",\"l6\",\"latin6\"],name:\"ISO-8859-10\"},{labels:[\"iso-8859-13\",\"iso8859-13\",\"iso885913\"],name:\"ISO-8859-13\"},{labels:[\"iso-8859-14\",\"iso8859-14\",\"iso885914\"],name:\"ISO-8859-14\"},{labels:[\"csisolatin9\",\"iso-8859-15\",\"iso8859-15\",\"iso885915\",\"iso_8859-15\",\"l9\"],name:\"ISO-8859-15\"},{labels:[\"iso-8859-16\"],name:\"ISO-8859-16\"},{labels:[\"cskoi8r\",\"koi\",\"koi8\",\"koi8-r\",\"koi8_r\"],name:\"KOI8-R\"},{labels:[\"koi8-ru\",\"koi8-u\"],name:\"KOI8-U\"},{labels:[\"csmacintosh\",\"mac\",\"macintosh\",\"x-mac-roman\"],name:\"macintosh\"},{labels:[\"dos-874\",\"iso-8859-11\",\"iso8859-11\",\"iso885911\",\"tis-620\",\"windows-874\"],name:\"windows-874\"},{labels:[\"cp1250\",\"windows-1250\",\"x-cp1250\"],name:\"windows-1250\"},{labels:[\"cp1251\",\"windows-1251\",\"x-cp1251\"],name:\"windows-1251\"},{labels:[\"ansi_x3.4-1968\",\"ascii\",\"cp1252\",\"cp819\",\"csisolatin1\",\"ibm819\",\"iso-8859-1\",\"iso-ir-100\",\"iso8859-1\",\"iso88591\",\"iso_8859-1\",\"iso_8859-1:1987\",\"l1\",\"latin1\",\"us-ascii\",\"windows-1252\",\"x-cp1252\"],name:\"windows-1252\"},{labels:[\"cp1253\",\"windows-1253\",\"x-cp1253\"],name:\"windows-1253\"},{labels:[\"cp1254\",\"csisolatin5\",\"iso-8859-9\",\"iso-ir-148\",\"iso8859-9\",\"iso88599\",\"iso_8859-9\",\"iso_8859-9:1989\",\"l5\",\"latin5\",\"windows-1254\",\"x-cp1254\"],name:\"windows-1254\"},{labels:[\"cp1255\",\"windows-1255\",\"x-cp1255\"],name:\"windows-1255\"},{labels:[\"cp1256\",\"windows-1256\",\"x-cp1256\"],name:\"windows-1256\"},{labels:[\"cp1257\",\"windows-1257\",\"x-cp1257\"],name:\"windows-1257\"},{labels:[\"cp1258\",\"windows-1258\",\"x-cp1258\"],name:\"windows-1258\"},{labels:[\"x-mac-cyrillic\",\"x-mac-ukrainian\"],name:\"x-mac-cyrillic\"}],heading:\"Legacy single-byte encodings\"},{encodings:[{labels:[\"chinese\",\"csgb2312\",\"csiso58gb231280\",\"gb2312\",\"gb_2312\",\"gb_2312-80\",\"gbk\",\"iso-ir-58\",\"x-gbk\"],name:\"GBK\"},{labels:[\"gb18030\"],name:\"gb18030\"}],heading:\"Legacy multi-byte Chinese (simplified) encodings\"},{encodings:[{labels:[\"big5\",\"big5-hkscs\",\"cn-big5\",\"csbig5\",\"x-x-big5\"],name:\"Big5\"}],heading:\"Legacy multi-byte Chinese (traditional) encodings\"},{encodings:[{labels:[\"cseucpkdfmtjapanese\",\"euc-jp\",\"x-euc-jp\"],name:\"EUC-JP\"},{labels:[\"csiso2022jp\",\"iso-2022-jp\"],name:\"ISO-2022-JP\"},{labels:[\"csshiftjis\",\"ms932\",\"ms_kanji\",\"shift-jis\",\"shift_jis\",\"sjis\",\"windows-31j\",\"x-sjis\"],name:\"Shift_JIS\"}],heading:\"Legacy multi-byte Japanese encodings\"},{encodings:[{labels:[\"cseuckr\",\"csksc56011987\",\"euc-kr\",\"iso-ir-149\",\"korean\",\"ks_c_5601-1987\",\"ks_c_5601-1989\",\"ksc5601\",\"ksc_5601\",\"windows-949\"],name:\"EUC-KR\"}],heading:\"Legacy multi-byte Korean encodings\"},{encodings:[{labels:[\"csiso2022kr\",\"hz-gb-2312\",\"iso-2022-cn\",\"iso-2022-cn-ext\",\"iso-2022-kr\"],name:\"replacement\"},{labels:[\"utf-16be\"],name:\"UTF-16BE\"},{labels:[\"utf-16\",\"utf-16le\"],name:\"UTF-16LE\"},{labels:[\"x-user-defined\"],name:\"x-user-defined\"}],heading:\"Legacy miscellaneous encodings\"}],h={};d.forEach(function(n){n.encodings.forEach(function(n){n.labels.forEach(function(e){h[e]=n})})});var g,p,_={},b={};function w(n,e){return e&&e[n]||null}function m(n,e){var r=e.indexOf(n);return-1===r?null:r}function v(e){if(!(\"encoding-indexes\"in n))throw Error(\"Indexes missing. Did you forget to include encoding-indexes.js first?\");return n[\"encoding-indexes\"][e]}var y=\"utf-8\";function x(n,e){if(!(this instanceof x))throw TypeError(\"Called as a function. Did you forget 'new'?\");n=void 0!==n?String(n):y,e=i(e),this._encoding=null,this._decoder=null,this._ignoreBOM=!1,this._BOMseen=!1,this._error_mode=\"replacement\",this._do_not_flush=!1;var r=c(n);if(null===r||\"replacement\"===r.name)throw RangeError(\"Unknown encoding: \"+n);if(!b[r.name])throw Error(\"Decoder not present. Did you forget to include encoding-indexes.js first?\");return this._encoding=r,Boolean(e.fatal)&&(this._error_mode=\"fatal\"),Boolean(e.ignoreBOM)&&(this._ignoreBOM=!0),Object.defineProperty||(this.encoding=this._encoding.name.toLowerCase(),this.fatal=\"fatal\"===this._error_mode,this.ignoreBOM=this._ignoreBOM),this}function O(e,r){if(!(this instanceof O))throw TypeError(\"Called as a function. Did you forget 'new'?\");r=i(r),this._encoding=null,this._encoder=null,this._do_not_flush=!1,this._fatal=Boolean(r.fatal)?\"fatal\":\"replacement\";if(Boolean(r.NONSTANDARD_allowLegacyEncoding)){var t=c(e=void 0!==e?String(e):y);if(null===t||\"replacement\"===t.name)throw RangeError(\"Unknown encoding: \"+e);if(!_[t.name])throw Error(\"Encoder not present. Did you forget to include encoding-indexes.js first?\");this._encoding=t}else this._encoding=c(\"utf-8\"),void 0!==e&&\"console\"in n&&console.warn(\"TextEncoder constructor called with encoding label, which is ignored.\");return Object.defineProperty||(this.encoding=this._encoding.name.toLowerCase()),this}function k(n){var r=n.fatal,i=0,o=0,a=0;this.handler=function(n,f){if(f===s&&0===i&&0===o&&0===a)return u;var c;if(f!==s||0===i&&0===o&&0===a||(i=0,o=0,a=0,l(r)),0!==a){c=null,e(f,48,57)&&(c=function(n){if(n>39419&&n<189e3||n>1237575)return null;if(7457===n)return 59335;var e,r=0,i=0,t=v(\"gb18030-ranges\");for(e=0;e>8,i=255&n;return e?[r,i]:[i,r]}function T(n,r){var i=r.fatal,t=null,o=null;this.handler=function(r,a){if(a===s&&(null!==t||null!==o))return l(i);if(a===s&&null===t&&null===o)return u;if(null===t)return t=a,null;var f;if(f=n?(t<<8)+a:(a<<8)+t,t=null,null!==o){var c=o;return o=null,e(f,56320,57343)?65536+1024*(c-55296)+(f-56320):(r.prepend(S(f,n)),l(i))}return e(f,55296,56319)?(o=f,null):e(f,56320,57343)?l(i):f}}function I(n,r){r.fatal;this.handler=function(r,i){if(i===s)return u;if(e(i,0,65535))return S(i,n);var t=S(55296+(i-65536>>10),n),o=S(56320+(i-65536&1023),n);return t.concat(o)}}Object.defineProperty&&(Object.defineProperty(x.prototype,\"encoding\",{get:function(){return this._encoding.name.toLowerCase()}}),Object.defineProperty(x.prototype,\"fatal\",{get:function(){return\"fatal\"===this._error_mode}}),Object.defineProperty(x.prototype,\"ignoreBOM\",{get:function(){return this._ignoreBOM}})),x.prototype.decode=function(n,e){var r;r=\"object\"==typeof n&&n instanceof ArrayBuffer?new Uint8Array(n):\"object\"==typeof n&&\"buffer\"in n&&n.buffer instanceof ArrayBuffer?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(0),e=i(e),this._do_not_flush||(this._decoder=b[this._encoding.name]({fatal:\"fatal\"===this._error_mode}),this._BOMseen=!1),this._do_not_flush=Boolean(e.stream);for(var t,o=new a(r),l=[];;){var f=o.read();if(f===s)break;if((t=this._decoder.handler(o,f))===u)break;null!==t&&(Array.isArray(t)?l.push.apply(l,t):l.push(t))}if(!this._do_not_flush){do{if((t=this._decoder.handler(o,o.read()))===u)break;null!==t&&(Array.isArray(t)?l.push.apply(l,t):l.push(t))}while(!o.endOfStream());this._decoder=null}return function(n){var e,r;return e=[\"UTF-8\",\"UTF-16LE\",\"UTF-16BE\"],r=this._encoding.name,-1===e.indexOf(r)||this._ignoreBOM||this._BOMseen||(n.length>0&&65279===n[0]?(this._BOMseen=!0,n.shift()):n.length>0&&(this._BOMseen=!0)),function(n){for(var e=\"\",r=0;r>10),56320+(1023&i)))}return e}(n)}.call(this,l)},Object.defineProperty&&Object.defineProperty(O.prototype,\"encoding\",{get:function(){return this._encoding.name.toLowerCase()}}),O.prototype.encode=function(n,e){n=void 0===n?\"\":String(n),e=i(e),this._do_not_flush||(this._encoder=_[this._encoding.name]({fatal:\"fatal\"===this._fatal})),this._do_not_flush=Boolean(e.stream);for(var r,t=new a(function(n){for(var e=String(n),r=e.length,i=0,t=[];i57343)t.push(o);else if(56320<=o&&o<=57343)t.push(65533);else if(55296<=o&&o<=56319)if(i===r-1)t.push(65533);else{var s=e.charCodeAt(i+1);if(56320<=s&&s<=57343){var a=1023&o,u=1023&s;t.push(65536+(a<<10)+u),i+=1}else t.push(65533)}i+=1}return t}(n)),o=[];;){var l=t.read();if(l===s)break;if((r=this._encoder.handler(t,l))===u)break;Array.isArray(r)?o.push.apply(o,r):o.push(r)}if(!this._do_not_flush){for(;(r=this._encoder.handler(t,t.read()))!==u;)Array.isArray(r)?o.push.apply(o,r):o.push(r);this._encoder=null}return new Uint8Array(o)},_[\"UTF-8\"]=function(n){return new function(n){n.fatal,this.handler=function(n,r){if(r===s)return u;if(o(r))return r;var i,t;e(r,128,2047)?(i=1,t=192):e(r,2048,65535)?(i=2,t=224):e(r,65536,1114111)&&(i=3,t=240);for(var a=[(r>>6*i)+t];i>0;){var l=r>>6*(i-1);a.push(128|63&l),i-=1}return a}}(n)},b[\"UTF-8\"]=function(n){return new function(n){var r=n.fatal,i=0,t=0,o=0,a=128,f=191;this.handler=function(n,c){if(c===s&&0!==o)return o=0,l(r);if(c===s)return u;if(0===o){if(e(c,0,127))return c;if(e(c,194,223))o=1,i=31&c;else if(e(c,224,239))224===c&&(a=160),237===c&&(f=159),o=2,i=15&c;else{if(!e(c,240,244))return l(r);240===c&&(a=144),244===c&&(f=143),o=3,i=7&c}return null}if(!e(c,a,f))return i=o=t=0,a=128,f=191,n.prepend(c),l(r);if(a=128,f=191,i=i<<6|63&c,(t+=1)!==o)return null;var d=i;return i=o=t=0,d}}(n)},\"encoding-indexes\"in n&&d.forEach(function(n){\"Legacy single-byte encodings\"===n.heading&&n.encodings.forEach(function(n){var e=n.name,r=v(e.toLowerCase());b[e]=function(n){return new function(n,e){var r=e.fatal;this.handler=function(e,i){if(i===s)return u;if(t(i))return i;var o=n[i-128];return null===o?l(r):o}}(r,n)},_[e]=function(n){return new function(n,e){e.fatal,this.handler=function(e,r){if(r===s)return u;if(o(r))return r;var i=m(r,n);return null===i&&f(r),i+128}}(r,n)}})}),b.GBK=function(n){return new k(n)},_.GBK=function(n){return new E(n,!0)},_.gb18030=function(n){return new E(n)},b.gb18030=function(n){return new k(n)},_.Big5=function(n){return new j(n)},b.Big5=function(n){return new function(n){var r=n.fatal,i=0;this.handler=function(n,o){if(o===s&&0!==i)return i=0,l(r);if(o===s&&0===i)return u;if(0!==i){var a=i,f=null;i=0;var c=o<127?64:98;switch((e(o,64,126)||e(o,161,254))&&(f=157*(a-129)+(o-c)),f){case 1133:return[202,772];case 1135:return[202,780];case 1164:return[234,772];case 1166:return[234,780]}var d=null===f?null:w(f,v(\"big5\"));return null===d&&t(o)&&n.prepend(o),null===d?l(r):d}return t(o)?o:e(o,129,254)?(i=o,null):l(r)}}(n)},_[\"EUC-JP\"]=function(n){return new function(n){n.fatal,this.handler=function(n,i){if(i===s)return u;if(o(i))return i;if(165===i)return 92;if(8254===i)return 126;if(e(i,65377,65439))return[142,i-65377+161];8722===i&&(i=65293);var t=m(i,v(\"jis0208\"));return null===t?f(i):[r(t/94)+161,t%94+161]}}(n)},b[\"EUC-JP\"]=function(n){return new function(n){var r=n.fatal,i=!1,o=0;this.handler=function(n,a){if(a===s&&0!==o)return o=0,l(r);if(a===s&&0===o)return u;if(142===o&&e(a,161,223))return o=0,65216+a;if(143===o&&e(a,161,254))return i=!0,o=a,null;if(0!==o){var f=o;o=0;var c=null;return e(f,161,254)&&e(a,161,254)&&(c=w(94*(f-161)+(a-161),v(i?\"jis0212\":\"jis0208\"))),i=!1,e(a,161,254)||n.prepend(a),null===c?l(r):c}return t(a)?a:142===a||143===a||e(a,161,254)?(o=a,null):l(r)}}(n)},_[\"ISO-2022-JP\"]=function(n){return new function(n){n.fatal;var e=0,i=1,t=2,a=e;this.handler=function(n,l){if(l===s&&a!==e)return n.prepend(l),a=e,[27,40,66];if(l===s&&a===e)return u;if(!(a!==e&&a!==i||14!==l&&15!==l&&27!==l))return f(65533);if(a===e&&o(l))return l;if(a===i&&(o(l)&&92!==l&&126!==l||165==l||8254==l)){if(o(l))return l;if(165===l)return 92;if(8254===l)return 126}if(o(l)&&a!==e)return n.prepend(l),a=e,[27,40,66];if((165===l||8254===l)&&a!==i)return n.prepend(l),a=i,[27,40,74];8722===l&&(l=65293);var c=m(l,v(\"jis0208\"));return null===c?f(l):a!==t?(n.prepend(l),a=t,[27,36,66]):[r(c/94)+33,c%94+33]}}(n)},b[\"ISO-2022-JP\"]=function(n){return new function(n){var r=n.fatal,i=0,t=1,o=2,a=3,f=4,c=5,d=6,h=i,g=i,p=0,_=!1;this.handler=function(n,b){switch(h){default:case i:return 27===b?(h=c,null):e(b,0,127)&&14!==b&&15!==b&&27!==b?(_=!1,b):b===s?u:(_=!1,l(r));case t:return 27===b?(h=c,null):92===b?(_=!1,165):126===b?(_=!1,8254):e(b,0,127)&&14!==b&&15!==b&&27!==b&&92!==b&&126!==b?(_=!1,b):b===s?u:(_=!1,l(r));case o:return 27===b?(h=c,null):e(b,33,95)?(_=!1,65344+b):b===s?u:(_=!1,l(r));case a:return 27===b?(h=c,null):e(b,33,126)?(_=!1,p=b,h=f,null):b===s?u:(_=!1,l(r));case f:if(27===b)return h=c,l(r);if(e(b,33,126)){h=a;var m=w(94*(p-33)+b-33,v(\"jis0208\"));return null===m?l(r):m}return b===s?(h=a,n.prepend(b),l(r)):(h=a,l(r));case c:return 36===b||40===b?(p=b,h=d,null):(n.prepend(b),_=!1,h=g,l(r));case d:var y=p;p=0;var x=null;if(40===y&&66===b&&(x=i),40===y&&74===b&&(x=t),40===y&&73===b&&(x=o),36!==y||64!==b&&66!==b||(x=a),null!==x){h=h=x;var O=_;return _=!0,O?l(r):null}return n.prepend([y,b]),_=!1,h=g,l(r)}}}(n)},_.Shift_JIS=function(n){return new B(n)},b.Shift_JIS=function(n){return new function(n){var r=n.fatal,i=0;this.handler=function(n,o){if(o===s&&0!==i)return i=0,l(r);if(o===s&&0===i)return u;if(0!==i){var a=i,f=null;i=0;var c=o<127?64:65,d=a<160?129:193;if((e(o,64,126)||e(o,128,252))&&(f=188*(a-d)+o-c),e(f,8836,10715))return 48508+f;var h=null===f?null:w(f,v(\"jis0208\"));return null===h&&t(o)&&n.prepend(o),null===h?l(r):h}return t(o)||128===o?o:e(o,161,223)?65216+o:e(o,129,159)||e(o,224,252)?(i=o,null):l(r)}}(n)},_[\"EUC-KR\"]=function(n){return new function(n){n.fatal,this.handler=function(n,e){if(e===s)return u;if(o(e))return e;var i=m(e,v(\"euc-kr\"));return null===i?f(e):[r(i/190)+129,i%190+65]}}(n)},b[\"EUC-KR\"]=function(n){return new function(n){var r=n.fatal,i=0;this.handler=function(n,o){if(o===s&&0!==i)return i=0,l(r);if(o===s&&0===i)return u;if(0!==i){var a=i,f=null;i=0,e(o,65,254)&&(f=190*(a-129)+(o-65));var c=null===f?null:w(f,v(\"euc-kr\"));return null===f&&t(o)&&n.prepend(o),null===c?l(r):c}return t(o)?o:e(o,129,254)?(i=o,null):l(r)}}(n)},_[\"UTF-16BE\"]=function(n){return new I(!0,n)},b[\"UTF-16BE\"]=function(n){return new T(!0,n)},_[\"UTF-16LE\"]=function(n){return new I(!1,n)},b[\"UTF-16LE\"]=function(n){return new T(!1,n)},_[\"x-user-defined\"]=function(n){return new function(n){n.fatal,this.handler=function(n,r){return r===s?u:o(r)?r:e(r,63360,63487)?r-63360+128:f(r)}}(n)},b[\"x-user-defined\"]=function(n){return new function(n){n.fatal,this.handler=function(n,e){return e===s?u:t(e)?e:63360+e-128}}(n)},n.TextEncoder||(n.TextEncoder=O),n.TextDecoder||(n.TextDecoder=x),\"undefined\"!=typeof module&&module.exports&&(module.exports={TextEncoder:n.TextEncoder,TextDecoder:n.TextDecoder,EncodingIndexes:n[\"encoding-indexes\"]})}(this||{});var cuudrm=function(A){\"use strict\";for(var r,e=new Uint8Array(123),f=25;f>=0;--f)e[48+f]=52+f,e[65+f]=f,e[97+f]=26+f;function i(A,r,f){for(var i,a,b=0,k=r,n=f.length,c=r+(3*n>>2)-(\"=\"==f[n-2])-(\"=\"==f[n-1]);b>4,k>2),k>2];A:{r:{e:{f:{i:{if(d=0|function(A,r){A|=0,r|=0,A=r+7|0,A>>>0>>0&&(hA(1050724,51,1050864),Q());return 0|A>>>3}(0|(W=0|b[(i+8|0)>>2]),0|(D=0|b[(i+12|0)>>2])),g=n=0|Xr(0|d,0|(a=0),6,0|(n=0)),l=a=Y,t=n,n=0,o=31&(c=32)|0,32<=(63&c|0)>>>0?(n=0,tA=a>>>o|0):(n=a>>>o|0,tA=0|((((1<>>o)),!(tA||(n=l,s=g,(w=g+e|0)>>>0>>0))){if(w>>>0<=e>>>0?b[(r+8|0)>>2]=w:(!function(A,r){A|=0,r|=0;var e=0,i=0,a=0;rr(0|A,0|r),a=0|b[A>>2],e=0|b[(A+8|0)>>2],i=a+e|0;a:{if(r>>>0>=2)BA(0|i,0,0|(r=r+-1|0)),i=a+(e=r+e|0)|0;else if(!r)break a;f[i>>0]=0,e=e+1|0}b[(A+8|0)>>2]=e}(0|r,0|w-e),w=0|b[(r+8|0)>>2]),w>>>0>=e>>>0){${'$'}=0|b[r>>2],v=0|b[263123];a:{b:{k:{n:{c:{t:switch(0|(s=7&D|0)){case 4:break b;case 3:break k;case 2:break n;case 1:case 5:break c;case 0:break t;default:break a}s=8;break a}if(g=1,l=n=0,!D)break r;if(61==(0|(r=0|k[(W+(w=D+-1|0)|0)>>0])))break r;if(255!=(0|k[(r+v|0)>>0]))break r;n=0,a=r,t=0,o=31&(c=8)|0,32<=(63&c|0)>>>0?(t=a<>>(32-o|0)|0)|0|n<>>0?(a=n<>>(32-o|0)|0)|0|t<>>0>D>>>0?0:w)+-32|0)>>>0>M>>>0){s=0;break e}p=e+${'$'}|0,s=0,w=0;a:for(;;){b:{k:{n:{if((0|(a=h))!=(0|(c=-536870912))|(0|(n=I))!=(0|(t=16777215))|0){if((C=w+32|0)>>>0>D>>>0)break n;if((s+26|0)>>>0>j>>>0)break k;c:{if(E=0|k[(w=w+W|0)>>0],g=a=0|k[(c=v+E|0)>>0],l=n=0,(0|(c=a))==(0|(t=255))&(0|n)==(0|(a=0))|0)c=I,Ue=c=0,_=(t=h)|(a=E)|0,K=n=(c=I)|(n=Ue)|0;else if(E=0|k[(w+1|0)>>0],m=n=0|k[(c=v+E|0)>>0],N=t=0,(0|(c=n))==(0|(a=255))&(0|t)==(0|(n=0))|0)c=I,Le=c=0,t=(c=I)|(t=Le)|0,_=(c=(a=h)|(n=E)|0)|(n=16777216)|0,K=a=t|(a=0)|0;else if(E=0|k[(w+2|0)>>0],R=a=0|k[(t=v+E|0)>>0],U=c=0,(0|(t=a))==(0|(n=255))&(0|c)==(0|(a=0))|0)t=I,ze=t=0,c=(t=I)|(c=ze)|0,_=(t=(n=h)|(a=E)|0)|(a=33554432)|0,K=n=c|(n=0)|0;else if(E=0|k[(w+3|0)>>0],L=n=0|k[(c=v+E|0)>>0],z=t=0,(0|(c=n))==(0|(a=255))&(0|t)==(0|(n=0))|0)c=I,Xe=c=0,t=(c=I)|(t=Xe)|0,_=(c=(a=h)|(n=E)|0)|(n=50331648)|0,K=a=t|(a=0)|0;else if(E=0|k[(w+4|0)>>0],X=a=0|k[(t=v+E|0)>>0],V=c=0,(0|(t=a))==(0|(n=255))&(0|c)==(0|(a=0))|0)t=I,Ve=t=0,c=(t=I)|(c=Ve)|0,_=(t=(n=h)|(a=E)|0)|(a=67108864)|0,K=n=c|(n=0)|0;else if(E=0|k[(w+5|0)>>0],x=n=0|k[(c=v+E|0)>>0],H=t=0,(0|(c=n))==(0|(a=255))&(0|t)==(0|(n=0))|0)c=I,xe=c=0,t=(c=I)|(t=xe)|0,_=(c=(a=h)|(n=E)|0)|(n=83886080)|0,K=a=t|(a=0)|0;else if(E=0|k[(w+6|0)>>0],T=a=0|k[(t=v+E|0)>>0],O=c=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>0?(c=0,NA=a>>>o|0):(c=a>>>o|0,NA=0|((((1<>>o)),Jf=c,yf=t=(c=Zf)|(t=Jf)|0,Ff=(c=Df)|(n=(a=hf)|(n=NA)|0)|0,Wf=a=(t=Mf)|(a=yf)|0,c=(a=If)|(c=Wf)|0,AA=(t=Cf)|(n=Ff)|0,f[(t=Z=s+p|0)>>0]=AA,f[(t+1|0)>>0]=AA>>>8|0,f[(t+2|0)>>0]=AA>>>16|0,f[(t+3|0)>>0]=AA>>>24|0,f[(t+4|0)>>0]=c,f[(t+5|0)>>0]=c>>>8|0,f[(t+6|0)>>0]=c>>>16|0,f[(t+7|0)>>0]=c>>>24|0,E=0|k[(w+8|0)>>0],g=c=0|k[(a=v+E|0)>>0],l=t=0,(0|(a=c))==(0|(n=255))&(0|t)==(0|(c=0))|0){g=134217728,l=a=0;break f}if(E=0|k[(w+9|0)>>0],m=a=0|k[(n=v+E|0)>>0],N=t=0,(0|(n=a))==(0|(c=255))&(0|t)==(0|(a=0))|0){g=150994944,l=n=0;break f}if(E=0|k[(w+10|0)>>0],R=n=0|k[(c=v+E|0)>>0],U=t=0,(0|(c=n))==(0|(a=255))&(0|t)==(0|(n=0))|0){g=167772160,l=c=0;break f}if(E=0|k[(w+11|0)>>0],L=c=0|k[(a=v+E|0)>>0],z=t=0,(0|(a=c))==(0|(n=255))&(0|t)==(0|(c=0))|0){g=184549376,l=a=0;break f}if(E=0|k[(w+12|0)>>0],X=a=0|k[(n=v+E|0)>>0],V=t=0,(0|(n=a))==(0|(c=255))&(0|t)==(0|(a=0))|0){g=201326592,l=n=0;break f}if(E=0|k[(w+13|0)>>0],x=n=0|k[(c=v+E|0)>>0],H=t=0,(0|(c=n))==(0|(a=255))&(0|t)==(0|(n=0))|0){g=218103808,l=c=0;break f}if(E=0|k[(w+14|0)>>0],T=c=0|k[(a=v+E|0)>>0],O=t=0,(0|(a=c))==(0|(n=255))&(0|t)==(0|(c=0))|0){g=234881024,l=a=0;break f}if(E=0|k[(w+15|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2|0)>>0]=rA>>>16|0,f[(t+3|0)>>0]=rA>>>24|0,f[(t+4|0)>>0]=n,f[(t+5|0)>>0]=n>>>8|0,f[(t+6|0)>>0]=n>>>16|0,f[(t+7|0)>>0]=n>>>24|0,E=0|k[(w+16|0)>>0],g=n=0|k[(c=v+E|0)>>0],l=t=0,(0|(c=n))==(0|(a=255))&(0|t)==(0|(n=0))|0){g=268435456,l=c=0;break i}if(E=0|k[(w+17|0)>>0],m=c=0|k[(a=v+E|0)>>0],N=t=0,(0|(a=c))==(0|(n=255))&(0|t)==(0|(c=0))|0){g=285212672,l=a=0;break i}if(E=0|k[(w+18|0)>>0],R=a=0|k[(n=v+E|0)>>0],U=t=0,(0|(n=a))==(0|(c=255))&(0|t)==(0|(a=0))|0){g=301989888,l=n=0;break i}if(E=0|k[(w+19|0)>>0],L=n=0|k[(c=v+E|0)>>0],z=t=0,(0|(c=n))==(0|(a=255))&(0|t)==(0|(n=0))|0){g=318767104,l=c=0;break i}if(E=0|k[(w+20|0)>>0],X=c=0|k[(a=v+E|0)>>0],V=t=0,(0|(a=c))==(0|(n=255))&(0|t)==(0|(c=0))|0){g=335544320,l=a=0;break i}if(E=0|k[(w+21|0)>>0],x=a=0|k[(n=v+E|0)>>0],H=t=0,(0|(n=a))==(0|(c=255))&(0|t)==(0|(a=0))|0){g=352321536,l=n=0;break i}if(E=0|k[(w+22|0)>>0],T=n=0|k[(c=v+E|0)>>0],O=t=0,(0|(c=n))==(0|(a=255))&(0|t)==(0|(n=0))|0){g=369098752,l=c=0;break i}if(E=0|k[(w+23|0)>>0],P=c=0|k[(a=v+E|0)>>0],S=t=0,(0|(a=c))==(0|(n=255))&(0|t)==(0|(c=0))|0){g=385875968,l=a=0;break i}if(a=N,n=m,t=0,o=31&(c=52)|0,32<=(63&c|0)>>>0?(t=n<>>(32-o|0)|0)|0|a<>>0?(n=a<>>(32-o|0)|0)|0|t<>>0?(t=n<>>(32-o|0)|0)|0|a<>>0?(a=t<>>(32-o|0)|0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J=n=0,!(ta||(n=J,E=0|k[(w+25|0)>>0],m=n=0|k[(c=v+E|0)>>0],N=t=0,oa=(0|(c=n))==(0|(a=255))&(0|t)==(0|(n=0))|0,y=419430400,J=c=0,oa||(c=J,E=0|k[(w+26|0)>>0],R=c=0|k[(a=v+E|0)>>0],U=t=0,ua=(0|(a=c))==(0|(n=255))&(0|t)==(0|(c=0))|0,y=436207616,J=a=0,ua||(a=J,E=0|k[(w+27|0)>>0],L=a=0|k[(n=v+E|0)>>0],z=t=0,Ba=(0|(n=a))==(0|(c=255))&(0|t)==(0|(a=0))|0,y=452984832,J=n=0,Ba||(n=J,E=0|k[(w+28|0)>>0],X=n=0|k[(c=v+E|0)>>0],V=t=0,ga=(0|(c=n))==(0|(a=255))&(0|t)==(0|(n=0))|0,y=469762048,J=c=0,ga||(c=J,E=0|k[(w+29|0)>>0],x=c=0|k[(a=v+E|0)>>0],H=t=0,Qa=(0|(a=c))==(0|(n=255))&(0|t)==(0|(c=0))|0,y=486539264,J=a=0,Qa||(a=J,E=0|k[(w+30|0)>>0],T=a=0|k[(n=v+E|0)>>0],O=t=0,Ea=(0|(n=a))==(0|(c=255))&(0|t)==(0|(a=0))|0,y=503316480,J=n=0,Ea)))))))){if(n=J,E=0|k[(w+31|0)>>0],P=n=0|k[(c=v+E|0)>>0],S=t=0,(0|(c=n))!=(0|(a=255))|(0|t)!=(0|(n=0))|0)break b;y=520093696,J=c=0}c=J,c=I,la=c=0,wa=(a=h)|(n=E)|0,va=t=(c=I)|(t=la)|0,a=(t=J)|(a=va)|0,t=(c=y)|(n=wa)|0,c=0,o=31&(n=8)|0,32<=(63&n|0)>>>0?(c=t<>>(32-o|0)|0)|0|a<>>0?(t=a<>>(32-o|0)|0)|0|c<>>0?(a=c<>>(32-o|0)|0)|0|t<>>0?(t=a<>>(32-o|0)|0)|0|c<>>0?(c=t<>>(32-o|0)|0)|0|a<>>0?(a=c<>>(32-o|0)|0)|0|t<>>0?(t=a<>>(32-o|0)|0)|0|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616),Q()}B=I,nb=B=0,cb=a=(B=I)|(a=nb)|0,a=l,B=(c=h)|(n=E)|0,c=(a=cb)|(c=l)|0,a=B|(n=g)|0,B=0,t=31&(n=8)|0,32<=(63&n|0)>>>0?(B=a<>>(32-t|0)|0)|0|c<>>0?(B=a<>>(32-t|0)|0)|0|c<>>0>M>>>0|C>>>0>=Z>>>0|0)){F=e+${'$'}|0;f:{i:{a:{b:{k:{n:for(;;){if(-8==(0|C))break b;if((w=C+8|0)>>>0>D>>>0)break a;if(s>>>0>-9>>>0)break i;if((s+8|0)>>>0>j>>>0)break f;if(E=0|k[(M=C+W|0)>>0],g=B=0|k[(c=v+E|0)>>0],l=a=0,(0|(c=B))==(0|(n=255))&(0|a)==(0|(B=0))|0)break k;if(E=0|k[(M+1|0)>>0],h=c=0|k[(n=v+E|0)>>0],I=a=0,(0|(n=c))==(0|(B=255))&(0|a)==(0|(c=0))|0){C|=1;break k}if(E=0|k[(M+2|0)>>0],m=n=0|k[(B=v+E|0)>>0],N=a=0,(0|(B=n))==(0|(c=255))&(0|a)==(0|(n=0))|0){C|=2;break k}if(E=0|k[(M+3|0)>>0],R=B=0|k[(c=v+E|0)>>0],U=a=0,(0|(c=B))==(0|(n=255))&(0|a)==(0|(B=0))|0){C|=3;break k}if(E=0|k[(M+4|0)>>0],L=c=0|k[(n=v+E|0)>>0],z=a=0,(0|(n=c))==(0|(B=255))&(0|a)==(0|(c=0))|0){C|=4;break k}if(E=0|k[(M+5|0)>>0],X=n=0|k[(B=v+E|0)>>0],V=a=0,(0|(B=n))==(0|(c=255))&(0|a)==(0|(n=0))|0){C|=5;break k}if(E=0|k[(M+6|0)>>0],x=B=0|k[(c=v+E|0)>>0],H=a=0,(0|(c=B))==(0|(n=255))&(0|a)==(0|(B=0))|0){C|=6;break k}if(E=0|k[(M+7|0)>>0],T=c=0|k[(n=v+E|0)>>0],O=a=0,!((0|(n=c))!=(0|(B=255))|(0|a)!=(0|(c=0))|0))break n;if(n=I,B=h,a=0,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|0)>>0]=n>>>8|0,f[(a+6|0)>>0]=n>>>16|0,f[(a+7|0)>>0]=n>>>24|0,d=d+-1|0,s=s+6|0,C=w,w>>>0>=Z>>>0)break e}C|=7}n=0,B=E,a=0,t=31&(c=8)|0,32<=(63&c|0)>>>0?(a=B<>>(32-t|0)|0)|0|n<>>0?(B=n<>>(32-t|0)|0)|0|a<>>0<2)E=s;else{F=d+-1|0,C=D-w|0,p=e+${'$'}|0;e:for(;;){f:{i:{a:{b:{k:{n:{c:{t:{o:{u:{B:{g:{Q:{E:{l:{w:{v:{if(D>>>0>=w>>>0){if(s>>>0>-7>>>0)break v;if((E=s+6|0)>>>0>j>>>0)break w;if((0|w)==(0|D))break l;if(M=w,d=0|k[(Z=w+W|0)>>0],g=n=0|k[(B=v+d|0)>>0],l=a=0,(0|(B=n))==(0|(c=255))&(0|a)==(0|(n=0))|0)break i;if(C>>>0<2)break E;if(d=0|k[(Z+1|0)>>0],h=B=0|k[(c=v+d|0)>>0],I=a=0,(0|(c=B))!=(0|(n=255))|(0|a)!=(0|(B=0))|0){if(C>>>0<=2)break Q;if(d=0|k[(Z+2|0)>>0],m=c=0|k[(n=v+d|0)>>0],N=a=0,(0|(n=c))==(0|(B=255))&(0|a)==(0|(c=0))|0)break g;if(C>>>0<=3)break B;if(d=0|k[(Z+3|0)>>0],R=n=0|k[(B=v+d|0)>>0],U=a=0,(0|(B=n))==(0|(c=255))&(0|a)==(0|(n=0))|0)break u;if(C>>>0<=4)break o;if(d=0|k[(Z+4|0)>>0],L=B=0|k[(c=v+d|0)>>0],z=a=0,(0|(c=B))==(0|(n=255))&(0|a)==(0|(B=0))|0)break t;if(C>>>0<=5)break c;if(d=0|k[(Z+5|0)>>0],X=c=0|k[(n=v+d|0)>>0],V=a=0,(0|(n=c))==(0|(B=255))&(0|a)==(0|(c=0))|0)break n;if(C>>>0<=6)break k;if(d=0|k[(Z+6|0)>>0],x=n=0|k[(B=v+d|0)>>0],H=a=0,(0|(B=n))==(0|(c=255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(n=Fk)|(c=Wk)|0,a=(c=Jk)|(a=Nk)|0,bA=(n=Zk)|(B=mk)|0,f[(aA=s)>>0]=bA,f[(aA+1|0)>>0]=bA>>>8|0,f[(aA+2|0)>>0]=bA>>>16|0,f[(aA+3|0)>>0]=bA>>>24|0,h=0,I=a=0,se=3,kA=a=0;break f}M=w+1|0;break i}CA(0|w,0|D,1049344),Q()}dA(0|s,0|s+6,1049360),Q()}IA(0|s+6,0|j,1049360),Q()}sA(0,0,1049152),Q()}sA(1,1,1049168),Q()}sA(2,2,1049184),Q()}M=w+2|0;break i}sA(3,3,1049200),Q()}M=w+3|0;break i}sA(4,4,1049216),Q()}M=w+4|0;break i}sA(5,5,1049232),Q()}M=w+5|0;break i}sA(6,6,1049248),Q()}M=w+6|0;break i}sA(7,7,1049264),Q()}a=0,c=d,n=0,t=31&(B=8)|0,32<=(63&B|0)>>>0?(n=c<>>(32-t|0)|0)|0|a<>>0?(c=a<>>(32-t|0)|0)|0|n<>>0<=D>>>0){if((0|w)==(0|D)){d=0,g=0,l=n=0,Z=0,D=0,s=0;break e}de=D+W|0,C=w+W|0,g=0,l=n=0,D=0,M=0,Z=0,F=0;i:{a:{b:{k:for(;;){s=0;n:for(;;){if(p=s+F|0,W=s+M|0,61!=(0|(d=0|k[(Ge=s+C|0)>>0]))){if((0|W)>0)break b;if(h=n=0|k[(B=v+d|0)>>0],I=c=0,(0|(B=n))==(0|(a=255))&(0|c)==(0|(n=0))|0)break a;if(F=p+1|0,B=I,Lk=B=0,B=I,a=h,c=Lk,t=31&(n=62&u(Z=Z+1|0,-6)|0)|0,32<=(63&n|0)>>>0?(c=a<>>(32-t|0)|0)|0|B<>>0?(B=c<>>(32-t|0)|0)|0|a<>>0?(a=B<>>(32-t|0)|0)|0|c<>>0?(B=c<>>(32-t|0)|0)|0|a<0?nA:p)+w|0,a=0,t=31&(n=32)|0,32<=(63&n|0)>>>0?(a=B<>>(32-t|0)|0)|0|c<>2]=1,B=0,b[((c=i)+20|0)>>2]=1,b[(c+24|0)>>2]=B,b[(c+16|0)>>2]=1049528,B=0|b[(a=c)>>2],c=0|b[(a+4|0)>>2],xk=B,B=a,b[(a+40|0)>>2]=xk,b[(a+44|0)>>2]=c,b[(a+32|0)>>2]=a+40|0,OA(0|a+16,1049536),Q()}q=8;break f}q=16;break f}q=24;break f}q=32;break f}q=40;break f}q=48}s=q,D=1}e:{if(Hk=c=0,c=-1,a=-1,B=Hk,t=31&(n=s)|0,32<=(63&n|0)>>>0?(B=0,Je=c>>>t|0):(B=c>>>t|0,Je=0|((((1<>>t)),Tk=B,B=l,a=(B=Tk)&(a=l)|0,!((0|(B=(c=Je)&(n=g)|0))!=(0|(n=0))|(0|a)!=(0|(c=0))|0)){if(D){C=E>>>0>j>>>0?E:j,d=e+${'$'}|0,w=0,D=56;f:for(;;){if((0|E)==(0|C))break e;if(B=l,Ok=B=0,B=l,n=g,a=Ok,t=31&(c=56&D|0)|0,32<=(63&c|0)>>>0?(a=0,ye=B>>>t|0):(a=B>>>t|0,ye=0|((((1<>>t)),f[(E+d|0)>>0]=ye,D=D+-8|0,E=E+1|0,!((w=w+8|0)>>>0>>0))break f}}w=E+e|0,(0|b[(r+8|0)>>2])>>>0>=w>>>0&&(b[(r+8|0)>>2]=w),ir(0|A),h=3,I=a=0,Fe=0,cA=a=0;break A}a=0,B=(w+Z|0)-1|0,n=0,t=31&(c=32)|0,32<=(63&c|0)>>>0?(n=B<>>(32-t|0)|0)|0|a<>>0?(a=n<>>(32-t|0)|0)|0|B<>>0>=245){if(f=(-9&(((e=0|Nr(0))-(((0|nr(0|e,8))+(0|nr(20,8))|0)+(0|nr(16,8))|0)|0)-65544|0)|0)-3|0,((e=0-((0|nr(16,8))<<2|0)|0)>>>0>f>>>0?f:e)>>>0<=A>>>0)break A;if(a=0|nr(0|A+4,8),!(0|b[265438]))break r;i=0-a|0;e:{f:{if(Q=0,a>>>0<256||(Q=31,a>>>0>16777215||(Q=62+((1&(a>>>(6-(A=g(a>>>8|0))|0)|0)|0)-(A<<1|0)|0)|0)),A=0|b[(1062020+((n=Q)<<2|0)|0)>>2]){c=a<<(0|br(0|n))|0,e=0;i:for(;;){if(!((f=0|Mr(0|A))>>>0>>0||(f=f-a|0)>>>0>=i>>>0||(e=A,i=f,f))){i=0;break f}if(f=0|b[(A+20|0)>>2],A=0|b[(16+(A+(4&(c>>>29|0)|0)|0)|0)>>2],k=f&&(0|f)!=(0|A)?f:k,c=c<<1|0,!A)break i}if(k){A=k;break f}if(e)break e}if(e=0,!(A=(0|or(0|1<>2]))break r}f:for(;Z=e,e=(f=(e=0|Mr(0|A))>>>0>=a>>>0&(k=e-a|0)>>>0>>0|0)?A:Z,i=f?k:i,A=0|ar(0|A););if(!e)break r}if(i>>>0>=((A=0|b[265537])-a|0)>>>0&&A>>>0>=a>>>0)break r;n=0|Wr(0|(A=e),0|a),kA(0|A);e:if(i>>>0>=(0|nr(16,8))>>>0){if(sr(0|A,0|a),kr(0|n,0|i),i>>>0>=256){aA(0|n,0|i);break e}k=1061756+((e=i>>>3|0)<<3|0)|0,(f=0|b[265437])&(e=1<>2]:(b[265437]=e|f|0,I=k),e=I,b[(k+8|0)>>2]=n,b[(e+12|0)>>2]=n,b[(n+12|0)>>2]=k,b[(n+8|0)>>2]=e}else KA(0|A,0|i+a);if(!(i=0|Nr(0|A)))break r;break A}a=0|nr(0|(((0|nr(16,8))-5|0)>>>0>A>>>0?16:A+4|0),8);e:{f:{i:{a:{b:{k:{if(!(3&(f=(e=0|b[265437])>>>(A=a>>>3|0)|0)|0)){if(a>>>0<=(0|b[265537])>>>0)break r;if(f)break k;if(!(A=0|b[265438]))break r;if(i=(0|Mr(0|(e=0|b[(1062020+((0|zr(0|wr(0|A)))<<2|0)|0)>>2])))-a|0,A=0|ar(0|e))n:for(;J=f=(0|Mr(0|A))-a|0,i=(f=f>>>0>>0)?J:i,e=f?A:e,A=0|ar(0|A););if(k=0|Wr(0|(A=e),0|a),kA(0|A),i>>>0<(0|nr(16,8))>>>0)break f;if(sr(0|A,0|a),kr(0|k,0|i),!(e=0|b[265537]))break i;if(c=1061756+((e=e>>>3|0)<<3|0)|0,n=0|b[265539],!((f=0|b[265437])&(e=1<>2];break a}k=0|b[((A=(i=(1&(-1^f|0)|0)+A|0)<<3|0)+1061764|0)>>2],(0|(f=0|b[(k+8|0)>>2]))==(0|(A=A+1061756|0))?(m=1061748,N=e&(0|xr(-2,0|i))|0,b[m>>2]=N):(b[(f+12|0)>>2]=A,b[(A+8|0)>>2]=f),KA(0|k,0|i<<3),i=0|Nr(0|k);break A}f=0|zr(0|wr(0|(0|or(0|1<<(A=31&A|0)))&(f<>2],(0|(e=0|b[(i+8|0)>>2]))==(0|(A=A+1061756|0))?(m=1061748,N=(0|b[265437])&(0|xr(-2,0|f))|0,b[m>>2]=N):(b[(e+12|0)>>2]=A,b[(A+8|0)>>2]=e),sr(0|i,0|a),kr(0|(k=0|Wr(0|i,0|a)),0|(f=(f<<3|0)-a|0)),(A=0|b[265537])&&(c=1061756+((A=A>>>3|0)<<3|0)|0,n=0|b[265539],(e=0|b[265437])&(A=1<>2]:(b[265437]=A|e|0,Y=c),A=Y,b[(c+8|0)>>2]=n,b[(A+12|0)>>2]=n,b[(n+12|0)>>2]=c,b[(n+8|0)>>2]=A),b[265539]=k,b[265537]=f,i=0|Nr(0|i);break A}b[265437]=e|f|0,d=c}e=d,b[(c+8|0)>>2]=n,b[(e+12|0)>>2]=n,b[(n+12|0)>>2]=c,b[(n+8|0)>>2]=e}b[265539]=k,b[265537]=i;break e}KA(0|A,0|i+a)}if(i=0|Nr(0|A))break A}r:{e:{f:{i:{a:{b:{k:{n:{c:{t:{if((A=0|b[265537])>>>0>>0){if((A=0|b[265538])>>>0>a>>>0)break k;if(i=0,function(A,r){A|=0,r|=0;var e=0,f=0;e=Or(0|r>>>16),b[(A+8|0)>>2]=0,f=-65536&r|0,r=-1==(0|e),b[(A+4|0)>>2]=r?0:f,b[A>>2]=r?0:e<<16|0}(0|r,0|nr(0|8+((((a-(A=0|Nr(0))|0)+(0|nr(0|A,8))|0)+(0|nr(20,8))|0)+(0|nr(16,8))|0),65536)),!(t=0|b[r>>2]))break A;if(v=0|b[(r+8|0)>>2],e=(B=0|b[(r+4|0)>>2])+(0|b[265541])|0,b[265541]=e,A=0|b[265542],b[265542]=A>>>0>e>>>0?A:e,!(0|b[265540]))break t;A=1062172;o:for(;;){if((0|Cr(0|A))==(0|t))break c;if(!(A=0|b[(A+8|0)>>2]))break o}break n}if(f=0|b[265539],(e=A-a|0)>>>0<(0|nr(16,8))>>>0){b[265539]=0,A=0|b[265537],b[265537]=0,KA(0|f,0|A),i=0|Nr(0|f);break A}A=0|Wr(0|f,0|a),b[265537]=e,b[265539]=A,kr(0|A,0|e),sr(0|f,0|a),i=0|Nr(0|f);break A}if(!(A=0|b[265548])|t>>>0>>0|0)break b;break e}if(!(0|Zr(0|A))&&((0|Jr(0|A))==(0|v)&&(e=A,(k=0|b[A>>2])>>>0<=(f=0|b[265540])>>>0?(k+(0|b[(e+4|0)>>2])|0)>>>0>f>>>0:0)))break a}A=0|b[265548],b[265548]=t>>>0>A>>>0?A:t,e=t+B|0,A=1062172;n:{c:{t:for(;;){if((0|e)!=(0|b[A>>2])){if(A=0|b[(A+8|0)>>2])continue t;break c}break t}if(!(0|Zr(0|A))&&(0|Jr(0|A))==(0|v))break n}o=0|b[265540],A=1062172;c:{t:for(;;){if((0|b[A>>2])>>>0<=o>>>0&&(0|Cr(0|A))>>>0>o>>>0)break c;if(!(A=0|b[(A+8|0)>>2]))break t}A=0}A=0|Nr(0|(e=((c=0|Cr(0|A))-(s=0|nr(20,8))|0)-23|0)),D=0|Nr(0|(E=(A=((0|nr(0|A,8))-A|0)+e|0)>>>0<((0|nr(16,8))+o|0)>>>0?o:A)),A=0|Wr(0|E,0|s),i=0|nr(0|(n=0|Nr(0)),8),k=0|nr(20,8),f=0|nr(16,8),C=0|Wr(0|t,0|(e=(0|nr(0|(e=0|Nr(0|t)),8))-e|0)),b[265540]=C,n=(n+B|0)-((f+(i+k|0)|0)+e|0)|0,b[265538]=n,b[(C+4|0)>>2]=1|n,k=0|nr(0|(i=0|Nr(0)),8),f=0|nr(20,8),e=0|nr(16,8),m=0|Wr(0|C,0|n),N=e+(f+(k-i|0)|0)|0,b[(m+4|0)>>2]=N,b[265547]=2097152,sr(0|E,0|s),y=w=0|b[(l=1062172)>>2],F=u=0|b[(l+4|0)>>2],u=0|b[(l=1062180)>>2],w=0|b[(l+4|0)>>2],W=u,b[(u=D+8|0)>>2]=W,b[(u+4|0)>>2]=w,w=F,b[(u=D)>>2]=y,b[(u+4|0)>>2]=w,b[265546]=v,b[265544]=B,b[265543]=t,b[265545]=u;c:for(;e=0|Wr(0|A,4),b[(A+4|0)>>2]=7,c>>>0>((A=e)+4|0)>>>0;);if((0|o)==(0|E))break r;if(PA(0|o,0|(A=E-o|0),0|Wr(0|o,0|A)),A>>>0>=256){aA(0|o,0|A);break r}f=1061756+((A=A>>>3|0)<<3|0)|0,(e=0|b[265437])&(A=1<>2]:(b[265437]=A|e|0,M=f),A=M,b[(f+8|0)>>2]=o,b[(A+12|0)>>2]=o,b[(o+12|0)>>2]=f,b[(o+8|0)>>2]=A;break r}if(i=0|b[A>>2],b[A>>2]=t,b[(A+4|0)>>2]=(0|b[(A+4|0)>>2])+B|0,f=0|nr(0|(k=0|Nr(0|t)),8),A=0|nr(0|(e=0|Nr(0|i)),8),c=0|Wr(0|(n=t+(f-k|0)|0),0|a),sr(0|n,0|a),a=(A=i+(A-e|0)|0)-(a+n|0)|0,(0|A)!=(0|b[265540])){if((0|b[265539])==(0|A))break i;if(1!=(0|3&(0|b[(A+4|0)>>2])))break f;(k=0|Mr(0|A))>>>0>=256?kA(0|A):(0|(f=0|b[(A+12|0)>>2]))==(0|(e=0|b[(A+8|0)>>2]))?(m=1061748,N=(0|b[265437])&(0|xr(-2,0|k>>>3))|0,b[m>>2]=N):(b[(e+12|0)>>2]=f,b[(f+8|0)>>2]=e),a=a+k|0,A=0|Wr(0|A,0|k);break f}b[265540]=c,A=(0|b[265538])+a|0,b[265538]=A,b[(c+4|0)>>2]=1|A,i=0|Nr(0|n);break A}e=A-a|0,b[265538]=e,A=0|Wr(0|(f=0|b[265540]),0|a),b[265540]=A,b[(A+4|0)>>2]=1|e,sr(0|f,0|a),i=0|Nr(0|f);break A}b[265548]=t;break e}b[(A+4|0)>>2]=(0|b[(A+4|0)>>2])+B|0,e=0|b[265538],n=0|Wr(0|(A=0|b[265540]),0|(A=(0|nr(0|(A=0|Nr(0|A)),8))-A|0)),i=(e+B|0)-A|0,b[265538]=i,b[265540]=n,b[(n+4|0)>>2]=1|i,f=0|nr(0|(k=0|Nr(0)),8),e=0|nr(20,8),A=0|nr(16,8),m=0|Wr(0|n,0|i),N=A+(e+(f-k|0)|0)|0,b[(m+4|0)>>2]=N,b[265547]=2097152;break r}b[265539]=c,A=(0|b[265537])+a|0,b[265537]=A,kr(0|c,0|A),i=0|Nr(0|n);break A}if(PA(0|c,0|a,0|A),a>>>0>=256){aA(0|c,0|a),i=0|Nr(0|n);break A}f=1061756+((A=a>>>3|0)<<3|0)|0,(e=0|b[265437])&(A=1<>2]:(b[265437]=A|e|0,h=f),A=h,b[(f+8|0)>>2]=c,b[(A+12|0)>>2]=c,b[(c+12|0)>>2]=f,b[(c+8|0)>>2]=A,i=0|Nr(0|n);break A}b[265549]=4095,b[265546]=v,b[265544]=B,b[265543]=t,b[265442]=1061756,b[265444]=1061764,b[265441]=1061756,b[265446]=1061772,b[265443]=1061764,b[265448]=1061780,b[265445]=1061772,b[265450]=1061788,b[265447]=1061780,b[265452]=1061796,b[265449]=1061788,b[265454]=1061804,b[265451]=1061796,b[265456]=1061812,b[265453]=1061804,b[265458]=1061820,b[265455]=1061812,b[265457]=1061820,b[265460]=1061828,b[265459]=1061828,b[265462]=1061836,b[265461]=1061836,b[265464]=1061844,b[265463]=1061844,b[265466]=1061852,b[265465]=1061852,b[265468]=1061860,b[265467]=1061860,b[265470]=1061868,b[265469]=1061868,b[265472]=1061876,b[265471]=1061876,b[265474]=1061884,b[265476]=1061892,b[265473]=1061884,b[265478]=1061900,b[265475]=1061892,b[265480]=1061908,b[265477]=1061900,b[265482]=1061916,b[265479]=1061908,b[265484]=1061924,b[265481]=1061916,b[265486]=1061932,b[265483]=1061924,b[265488]=1061940,b[265485]=1061932,b[265490]=1061948,b[265487]=1061940,b[265492]=1061956,b[265489]=1061948,b[265494]=1061964,b[265491]=1061956,b[265496]=1061972,b[265493]=1061964,b[265498]=1061980,b[265495]=1061972,b[265500]=1061988,b[265497]=1061980,b[265502]=1061996,b[265499]=1061988,b[265504]=1062004,b[265501]=1061996,b[265503]=1062004,k=0|nr(0|(i=0|Nr(0)),8),f=0|nr(20,8),e=0|nr(16,8),n=0|Wr(0|t,0|(A=(0|nr(0|(A=0|Nr(0|t)),8))-A|0)),b[265540]=n,i=(i+B|0)-((e+(f+k|0)|0)+A|0)|0,b[265538]=i,b[(n+4|0)>>2]=1|i,f=0|nr(0|(k=0|Nr(0)),8),e=0|nr(20,8),A=0|nr(16,8),m=0|Wr(0|n,0|i),N=A+(e+(f-k|0)|0)|0,b[(m+4|0)>>2]=N,b[265547]=2097152}i=0,(A=0|b[265538])>>>0<=a>>>0||(e=A-a|0,b[265538]=e,A=0|Wr(0|(f=0|b[265540]),0|a),b[265540]=A,b[(A+4|0)>>2]=1|e,sr(0|f,0|a),i=0|Nr(0|f))}return G=r+16|0,0|i}function h(A,r,e){A|=0,e|=0;var i,k=0,n=0,c=0,o=0,B=0,g=0,E=0,l=0,w=0,v=0,s=0,C=0,I=0,d=0,D=0,M=0,h=0,Z=0,J=0,y=0,F=0,W=0,m=0,N=0,R=0,U=0,L=0,z=0,X=0,V=0,x=0,H=0,T=0,O=0,j=0,p=0,_=0,K=0,S=0,q=0,${'$'}=0,AA=0,rA=0,eA=0,fA=0,iA=0,aA=0,bA=0,kA=0,nA=0,cA=0,tA=0,oA=0,uA=0,BA=0,gA=0,QA=0,EA=0,lA=0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