var DracoDecoderModule = (function() { var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined; if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename; return ( function(DracoDecoderModule) { DracoDecoderModule = DracoDecoderModule || {}; var Module=typeof DracoDecoderModule!=="undefined"?DracoDecoderModule:{};var isRuntimeInitialized=false;var isModuleParsed=false;Module["onRuntimeInitialized"]=function(){isRuntimeInitialized=true;if(isModuleParsed){if(typeof Module["onModuleLoaded"]==="function"){Module["onModuleLoaded"](Module)}}};Module["onModuleParsed"]=function(){isModuleParsed=true;if(isRuntimeInitialized){if(typeof Module["onModuleLoaded"]==="function"){Module["onModuleLoaded"](Module)}}};function isVersionSupported(versionString){if(typeof versionString!=="string")return false;const version=versionString.split(".");if(version.length<2||version.length>3)return false;if(version[0]==1&&version[1]>=0&&version[1]<=3)return true;if(version[0]!=0||version[1]>10)return false;return true}Module["isVersionSupported"]=isVersionSupported;var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram="./this.program";var quit_=function(status,toThrow){throw toThrow};var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string";ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;var nodeFS;var nodePath;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}read_=function shell_read(filename,binary){var ret=tryParseAsDataURI(filename);if(ret){return binary?ret:ret.toString()}if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);return nodeFS["readFileSync"](filename,binary?null:"utf8")};readBinary=function readBinary(filename){var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process["argv"].length>1){thisProgram=process["argv"][1].replace(/\\/g,"/")}arguments_=process["argv"].slice(2);process["on"]("uncaughtException",function(ex){if(!(ex instanceof ExitStatus)){throw ex}});process["on"]("unhandledRejection",abort);quit_=function(status){process["exit"](status)};Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){read_=function shell_read(f){var data=tryParseAsDataURI(f);if(data){return intArrayToString(data)}return read(f)}}readBinary=function readBinary(f){var data;data=tryParseAsDataURI(f);if(data){return data}if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){arguments_=scriptArgs}else if(typeof arguments!="undefined"){arguments_=arguments}if(typeof quit==="function"){quit_=function(status){quit(status)}}if(typeof print!=="undefined"){if(typeof console==="undefined")console={};console.log=print;console.warn=console.error=typeof printErr!=="undefined"?printErr:print}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1)}else{scriptDirectory=""}{read_=function shell_read(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText}catch(err){var data=tryParseAsDataURI(url);if(data){return intArrayToString(data)}throw err}};if(ENVIRONMENT_IS_WORKER){readBinary=function readBinary(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}catch(err){var data=tryParseAsDataURI(url);if(data){return data}throw err}}}readAsync=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}var data=tryParseAsDataURI(url);if(data){onload(data.buffer);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=function(title){document.title=title}}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var STACK_ALIGN=16;function dynamicAlloc(size){var ret=HEAP32[DYNAMICTOP_PTR>>2];var end=ret+size+15&-16;HEAP32[DYNAMICTOP_PTR>>2]=end;return ret}function getNativeTypeSize(type){switch(type){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:{if(type[type.length-1]==="*"){return 4}else if(type[0]==="i"){var bits=Number(type.substr(1));assert(bits%8===0,"getNativeTypeSize invalid bits "+bits+", type "+type);return bits/8}else{return 0}}}}function warnOnce(text){if(!warnOnce.shown)warnOnce.shown={};if(!warnOnce.shown[text]){warnOnce.shown[text]=1;err(text)}}function convertJsFunctionToWasm(func,sig){return func}var freeTableIndexes=[];function addFunctionWasm(func,sig){var table=wasmTable;var ret;if(freeTableIndexes.length){ret=freeTableIndexes.pop()}else{ret=table.length;try{table.grow(1)}catch(err){if(!(err instanceof RangeError)){throw err}throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}}try{table.set(ret,func)}catch(err){if(!(err instanceof TypeError)){throw err}assert(typeof sig!=="undefined","Missing signature argument to addFunction");var wrapped=convertJsFunctionToWasm(func,sig);table.set(ret,wrapped)}return ret}function removeFunctionWasm(index){freeTableIndexes.push(index)}var funcWrappers={};function dynCall(sig,ptr,args){if(args&&args.length){return Module["dynCall_"+sig].apply(null,[ptr].concat(args))}else{return Module["dynCall_"+sig].call(null,ptr)}}var tempRet0=0;var setTempRet0=function(value){tempRet0=value};var getTempRet0=function(){return tempRet0};var wasmBinary;if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];var noExitRuntime;if(Module["noExitRuntime"])noExitRuntime=Module["noExitRuntime"];var Promise=function(){function noop(){}function bind(fn,thisArg){return function(){fn.apply(thisArg,arguments)}}function Promise(fn){if(!(this instanceof Promise))throw new TypeError("Promises must be constructed via new");if(typeof fn!=="function")throw new TypeError("not a function");this._state=0;this._handled=false;this._value=undefined;this._deferreds=[];doResolve(fn,this)}function handle(self,deferred){while(self._state===3){self=self._value}if(self._state===0){self._deferreds.push(deferred);return}self._handled=true;Promise._immediateFn(function(){var cb=self._state===1?deferred.onFulfilled:deferred.onRejected;if(cb===null){(self._state===1?resolve:reject)(deferred.promise,self._value);return}var ret;try{ret=cb(self._value)}catch(e){reject(deferred.promise,e);return}resolve(deferred.promise,ret)})}function resolve(self,newValue){try{if(newValue===self)throw new TypeError("A promise cannot be resolved with itself.");if(newValue&&(typeof newValue==="object"||typeof newValue==="function")){var then=newValue.then;if(newValue instanceof Promise){self._state=3;self._value=newValue;finale(self);return}else if(typeof then==="function"){doResolve(bind(then,newValue),self);return}}self._state=1;self._value=newValue;finale(self)}catch(e){reject(self,e)}}function reject(self,newValue){self._state=2;self._value=newValue;finale(self)}function finale(self){if(self._state===2&&self._deferreds.length===0){Promise._immediateFn(function(){if(!self._handled){Promise._unhandledRejectionFn(self._value)}})}for(var i=0,len=self._deferreds.length;i=294+0){abort("Unable to grow wasm table. Use a higher value for RESERVED_FUNCTION_POINTERS or set ALLOW_TABLE_GROWTH.")}ret.push(null)};ret.set=function(i,func){ret[i]=func};ret.get=function(i){return ret[i]};return ret},Module:function(binary){return{}},Instance:function(module,info){var exports=( // EMSCRIPTEN_START_ASM function a(asmLibraryArg,wasmMemory,wasmTable){var scratchBuffer=new ArrayBuffer(8);var b=new Int32Array(scratchBuffer);var c=new Float32Array(scratchBuffer);var d=new Float64Array(scratchBuffer);function e(index){return b[index]}function f(index,value){b[index]=value}function g(){return d[0]}function h(value){d[0]=value}function i(low,high){b[0]=low;b[1]=high}function j(global,env,buffer){var k=env.memory;var l=wasmTable;var m=new global.Int8Array(buffer);var n=new global.Int16Array(buffer);var o=new global.Int32Array(buffer);var p=new global.Uint8Array(buffer);var q=new global.Uint16Array(buffer);var r=new global.Uint32Array(buffer);var s=new global.Float32Array(buffer);var t=new global.Float64Array(buffer);var u=global.Math.imul;var v=global.Math.fround;var w=global.Math.abs;var x=global.Math.clz32;var y=global.Math.min;var z=global.Math.max;var A=global.Math.floor;var B=global.Math.ceil;var C=global.Math.sqrt;var D=env.abort;var E=global.NaN;var F=global.Infinity;var G=env.__cxa_allocate_exception;var H=env.__cxa_throw;var I=env.fd_close;var J=env.fd_write;var K=env.abort;var L=env.environ_sizes_get;var M=env.environ_get;var N=env.emscripten_resize_heap;var O=env.emscripten_memcpy_big;var P=env.setTempRet0;var Q=env.fd_seek;var R=5256720;var S=13836;var T=0; // EMSCRIPTEN_START_FUNCS function il(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;l=R-16|0;R=l;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(a>>>0<=244){f=o[3333];h=a>>>0<11?16:a+11&-8;b=h>>>3|0;a=f>>>b|0;if(a&3){d=b+((a^-1)&1)|0;b=d<<3;e=o[b+13380>>2];a=e+8|0;c=o[e+8>>2];b=b+13372|0;l:{if((c|0)==(b|0)){m=13332,n=Sl(d)&f,o[m>>2]=n;break l}o[c+12>>2]=b;o[b+8>>2]=c}b=d<<3;o[e+4>>2]=b|3;b=b+e|0;o[b+4>>2]=o[b+4>>2]|1;break a}k=o[3335];if(h>>>0<=k>>>0){break k}if(a){c=a<>>12&16;c=a;b=b>>>a|0;a=b>>>5&8;c=c|a;b=b>>>a|0;a=b>>>2&4;c=c|a;b=b>>>a|0;a=b>>>1&2;c=c|a;b=b>>>a|0;a=b>>>1&1;c=(c|a)+(b>>>a|0)|0;a=c<<3;g=o[a+13380>>2];b=o[g+8>>2];a=a+13372|0;m:{if((b|0)==(a|0)){f=Sl(c)&f;o[3333]=f;break m}o[b+12>>2]=a;o[a+8>>2]=b}a=g+8|0;o[g+4>>2]=h|3;d=g+h|0;b=c<<3;e=b-h|0;o[d+4>>2]=e|1;o[b+g>>2]=e;if(k){b=k>>>3|0;c=(b<<3)+13372|0;h=o[3338];b=1<>2]}o[c+8>>2]=h;o[b+12>>2]=h;o[h+12>>2]=c;o[h+8>>2]=b}o[3338]=d;o[3335]=e;break a}i=o[3334];if(!i){break k}b=(i&0-i)+ -1|0;a=b>>>12&16;c=a;b=b>>>a|0;a=b>>>5&8;c=c|a;b=b>>>a|0;a=b>>>2&4;c=c|a;b=b>>>a|0;a=b>>>1&2;c=c|a;b=b>>>a|0;a=b>>>1&1;b=o[((c|a)+(b>>>a|0)<<2)+13636>>2];d=(o[b+4>>2]&-8)-h|0;c=b;while(1){o:{a=o[c+16>>2];if(!a){a=o[c+20>>2];if(!a){break o}}c=(o[a+4>>2]&-8)-h|0;e=c>>>0>>0;d=e?c:d;b=e?a:b;c=a;continue}break}j=o[b+24>>2];e=o[b+12>>2];if((e|0)!=(b|0)){a=o[b+8>>2];o[a+12>>2]=e;o[e+8>>2]=a;break b}c=b+20|0;a=o[c>>2];if(!a){a=o[b+16>>2];if(!a){break j}c=b+16|0}while(1){g=c;e=a;c=a+20|0;a=o[c>>2];if(a){continue}c=e+16|0;a=o[e+16>>2];if(a){continue}break}o[g>>2]=0;break b}h=-1;if(a>>>0>4294967231){break k}a=a+11|0;h=a&-8;i=o[3334];if(!i){break k}a=a>>>8|0;g=0;p:{if(!a){break p}g=31;if(h>>>0>16777215){break p}b=a+1048320>>>16&8;a=a<>>16&4;a=a<>>16&2;a=(a<>>15|0)-(c|(b|d))|0;g=(a<<1|h>>>a+21&1)+28|0}c=0-h|0;d=o[(g<<2)+13636>>2];q:{r:{s:{if(!d){a=0;break s}b=h<<((g|0)==31?0:25-(g>>>1|0)|0);a=0;while(1){t:{f=(o[d+4>>2]&-8)-h|0;if(f>>>0>=c>>>0){break t}e=d;c=f;if(c){break t}c=0;a=d;break r}f=o[d+20>>2];d=o[((b>>>29&4)+d|0)+16>>2];a=f?(f|0)==(d|0)?a:f:a;b=b<<((d|0)!=0);if(d){continue}break}}if(!(a|e)){a=2<>>12&16;d=a;b=b>>>a|0;a=b>>>5&8;d=d|a;b=b>>>a|0;a=b>>>2&4;d=d|a;b=b>>>a|0;a=b>>>1&2;d=d|a;b=b>>>a|0;a=b>>>1&1;a=o[((d|a)+(b>>>a|0)<<2)+13636>>2]}if(!a){break q}}while(1){b=(o[a+4>>2]&-8)-h|0;d=b>>>0>>0;c=d?b:c;e=d?a:e;b=o[a+16>>2];if(b){a=b}else{a=o[a+20>>2]}if(a){continue}break}}if(!e|c>>>0>=o[3335]-h>>>0){break k}g=o[e+24>>2];b=o[e+12>>2];if((e|0)!=(b|0)){a=o[e+8>>2];o[a+12>>2]=b;o[b+8>>2]=a;break c}d=e+20|0;a=o[d>>2];if(!a){a=o[e+16>>2];if(!a){break i}d=e+16|0}while(1){f=d;b=a;d=a+20|0;a=o[d>>2];if(a){continue}d=b+16|0;a=o[b+16>>2];if(a){continue}break}o[f>>2]=0;break c}c=o[3335];if(c>>>0>=h>>>0){d=o[3338];b=c-h|0;u:{if(b>>>0>=16){o[3335]=b;a=d+h|0;o[3338]=a;o[a+4>>2]=b|1;o[c+d>>2]=b;o[d+4>>2]=h|3;break u}o[3338]=0;o[3335]=0;o[d+4>>2]=c|3;a=c+d|0;o[a+4>>2]=o[a+4>>2]|1}a=d+8|0;break a}j=o[3336];if(j>>>0>h>>>0){b=j-h|0;o[3336]=b;c=o[3339];a=c+h|0;o[3339]=a;o[a+4>>2]=b|1;o[c+4>>2]=h|3;a=c+8|0;break a}a=0;i=h+47|0;b=i;if(o[3451]){c=o[3453]}else{o[3454]=-1;o[3455]=-1;o[3452]=4096;o[3453]=4096;o[3451]=l+12&-16^1431655768;o[3456]=0;o[3444]=0;c=4096}g=b+c|0;f=0-c|0;c=g&f;if(c>>>0<=h>>>0){break a}e=o[3443];if(e){d=o[3441];b=d+c|0;if(b>>>0<=d>>>0|b>>>0>e>>>0){break a}}if(p[13776]&4){break f}v:{w:{d=o[3339];if(d){a=13780;while(1){b=o[a>>2];if(b+o[a+4>>2]>>>0>d>>>0?b>>>0<=d>>>0:0){break w}a=o[a+8>>2];if(a){continue}break}}b=kl(0);if((b|0)==-1){break g}f=c;d=o[3452];a=d+ -1|0;if(a&b){f=(c-b|0)+(a+b&0-d)|0}if(f>>>0<=h>>>0|f>>>0>2147483646){break g}e=o[3443];if(e){d=o[3441];a=d+f|0;if(a>>>0<=d>>>0|a>>>0>e>>>0){break g}}a=kl(f);if((b|0)!=(a|0)){break v}break e}f=f&g-j;if(f>>>0>2147483646){break g}b=kl(f);if((b|0)==(o[a>>2]+o[a+4>>2]|0)){break h}a=b}if(!((a|0)==-1|h+48>>>0<=f>>>0)){b=o[3453];b=b+(i-f|0)&0-b;if(b>>>0>2147483646){b=a;break e}if((kl(b)|0)!=-1){f=b+f|0;b=a;break e}kl(0-f|0);break g}b=a;if((a|0)!=-1){break e}break g}e=0;break b}b=0;break c}if((b|0)!=-1){break e}}o[3444]=o[3444]|4}if(c>>>0>2147483646){break d}b=kl(c);a=kl(0);if(b>>>0>=a>>>0|(b|0)==-1|(a|0)==-1){break d}f=a-b|0;if(f>>>0<=h+40>>>0){break d}}a=o[3441]+f|0;o[3441]=a;if(a>>>0>r[3442]){o[3442]=a}x:{y:{z:{d=o[3339];if(d){a=13780;while(1){e=o[a>>2];c=o[a+4>>2];if((e+c|0)==(b|0)){break z}a=o[a+8>>2];if(a){continue}break}break y}a=o[3337];if(!(b>>>0>=a>>>0?a:0)){o[3337]=b}a=0;o[3446]=f;o[3445]=b;o[3341]=-1;o[3342]=o[3451];o[3448]=0;while(1){d=a<<3;c=d+13372|0;o[d+13380>>2]=c;o[d+13384>>2]=c;a=a+1|0;if((a|0)!=32){continue}break}d=f+ -40|0;a=b+8&7?-8-b&7:0;c=d-a|0;o[3336]=c;a=a+b|0;o[3339]=a;o[a+4>>2]=c|1;o[(b+d|0)+4>>2]=40;o[3340]=o[3455];break x}if(p[a+12|0]&8|b>>>0<=d>>>0|e>>>0>d>>>0){break y}o[a+4>>2]=c+f;a=d+8&7?-8-d&7:0;c=a+d|0;o[3339]=c;b=o[3336]+f|0;a=b-a|0;o[3336]=a;o[c+4>>2]=a|1;o[(b+d|0)+4>>2]=40;o[3340]=o[3455];break x}e=o[3337];if(b>>>0>>0){o[3337]=b;e=0}c=b+f|0;a=13780;A:{B:{C:{D:{E:{F:{while(1){if((c|0)!=o[a>>2]){a=o[a+8>>2];if(a){continue}break F}break}if(!(p[a+12|0]&8)){break E}}a=13780;while(1){c=o[a>>2];if(c>>>0<=d>>>0){g=c+o[a+4>>2]|0;if(g>>>0>d>>>0){break D}}a=o[a+8>>2];continue}}o[a>>2]=b;o[a+4>>2]=o[a+4>>2]+f;j=(b+8&7?-8-b&7:0)+b|0;o[j+4>>2]=h|3;b=c+(c+8&7?-8-c&7:0)|0;a=(b-j|0)-h|0;g=h+j|0;if((b|0)==(d|0)){o[3339]=g;a=o[3336]+a|0;o[3336]=a;o[g+4>>2]=a|1;break B}if(o[3338]==(b|0)){o[3338]=g;a=o[3335]+a|0;o[3335]=a;o[g+4>>2]=a|1;o[a+g>>2]=a;break B}c=o[b+4>>2];if((c&3)==1){i=c&-8;G:{if(c>>>0<=255){e=o[b+8>>2];c=c>>>3|0;d=o[b+12>>2];if((d|0)==(e|0)){m=13332,n=o[3333]&Sl(c),o[m>>2]=n;break G}o[e+12>>2]=d;o[d+8>>2]=e;break G}k=o[b+24>>2];f=o[b+12>>2];H:{if((f|0)!=(b|0)){c=o[b+8>>2];o[c+12>>2]=f;o[f+8>>2]=c;break H}I:{d=b+20|0;h=o[d>>2];if(h){break I}d=b+16|0;h=o[d>>2];if(h){break I}f=0;break H}while(1){c=d;f=h;d=f+20|0;h=o[d>>2];if(h){continue}d=f+16|0;h=o[f+16>>2];if(h){continue}break}o[c>>2]=0}if(!k){break G}d=o[b+28>>2];c=(d<<2)+13636|0;J:{if(o[c>>2]==(b|0)){o[c>>2]=f;if(f){break J}m=13336,n=o[3334]&Sl(d),o[m>>2]=n;break G}o[k+(o[k+16>>2]==(b|0)?16:20)>>2]=f;if(!f){break G}}o[f+24>>2]=k;c=o[b+16>>2];if(c){o[f+16>>2]=c;o[c+24>>2]=f}c=o[b+20>>2];if(!c){break G}o[f+20>>2]=c;o[c+24>>2]=f}b=b+i|0;a=a+i|0}o[b+4>>2]=o[b+4>>2]&-2;o[g+4>>2]=a|1;o[a+g>>2]=a;if(a>>>0<=255){a=a>>>3|0;b=(a<<3)+13372|0;c=o[3333];a=1<>2]}o[b+8>>2]=g;o[a+12>>2]=g;o[g+12>>2]=b;o[g+8>>2]=a;break B}b=g;d=a>>>8|0;c=0;L:{if(!d){break L}c=31;if(a>>>0>16777215){break L}c=d;d=d+1048320>>>16&8;c=c<>>16&4;c=c<>>16&2;c=(c<>>15|0)-(e|(d|f))|0;c=(c<<1|a>>>c+21&1)+28|0}o[b+28>>2]=c;o[g+16>>2]=0;o[g+20>>2]=0;e=(c<<2)+13636|0;d=o[3334];b=1<>2]=g;o[g+24>>2]=e;break M}d=a<<((c|0)==31?0:25-(c>>>1|0)|0);b=o[e>>2];while(1){c=b;if((o[b+4>>2]&-8)==(a|0)){break C}b=d>>>29|0;d=d<<1;e=(c+(b&4)|0)+16|0;b=o[e>>2];if(b){continue}break}o[e>>2]=g;o[g+24>>2]=c}o[g+12>>2]=g;o[g+8>>2]=g;break B}e=f+ -40|0;a=b+8&7?-8-b&7:0;c=e-a|0;o[3336]=c;a=a+b|0;o[3339]=a;o[a+4>>2]=c|1;o[(b+e|0)+4>>2]=40;o[3340]=o[3455];a=(g+(g+ -39&7?39-g&7:0)|0)+ -47|0;c=a>>>0>>0?d:a;o[c+4>>2]=27;a=o[3448];o[c+16>>2]=o[3447];o[c+20>>2]=a;a=o[3446];o[c+8>>2]=o[3445];o[c+12>>2]=a;o[3447]=c+8;o[3446]=f;o[3445]=b;o[3448]=0;a=c+24|0;while(1){o[a+4>>2]=7;b=a+8|0;a=a+4|0;if(g>>>0>b>>>0){continue}break}if((c|0)==(d|0)){break x}o[c+4>>2]=o[c+4>>2]&-2;g=c-d|0;o[d+4>>2]=g|1;o[c>>2]=g;if(g>>>0<=255){a=g>>>3|0;b=(a<<3)+13372|0;c=o[3333];a=1<>2]}o[b+8>>2]=d;o[a+12>>2]=d;o[d+12>>2]=b;o[d+8>>2]=a;break x}o[d+16>>2]=0;o[d+20>>2]=0;a=d;c=g>>>8|0;b=0;O:{if(!c){break O}b=31;if(g>>>0>16777215){break O}b=c;c=c+1048320>>>16&8;b=b<>>16&4;b=b<>>16&2;b=(b<>>15|0)-(e|(c|f))|0;b=(b<<1|g>>>b+21&1)+28|0}o[a+28>>2]=b;e=(b<<2)+13636|0;c=o[3334];a=1<>2]=d;o[d+24>>2]=e;break P}a=g<<((b|0)==31?0:25-(b>>>1|0)|0);b=o[e>>2];while(1){c=b;if((g|0)==(o[b+4>>2]&-8)){break A}b=a>>>29|0;a=a<<1;e=(c+(b&4)|0)+16|0;b=o[e>>2];if(b){continue}break}o[e>>2]=d;o[d+24>>2]=c}o[d+12>>2]=d;o[d+8>>2]=d;break x}a=o[c+8>>2];o[a+12>>2]=g;o[c+8>>2]=g;o[g+24>>2]=0;o[g+12>>2]=c;o[g+8>>2]=a}a=j+8|0;break a}a=o[c+8>>2];o[a+12>>2]=d;o[c+8>>2]=d;o[d+24>>2]=0;o[d+12>>2]=c;o[d+8>>2]=a}a=o[3336];if(a>>>0<=h>>>0){break d}b=a-h|0;o[3336]=b;c=o[3339];a=c+h|0;o[3339]=a;o[a+4>>2]=b|1;o[c+4>>2]=h|3;a=c+8|0;break a}o[3314]=48;a=0;break a}Q:{if(!g){break Q}d=o[e+28>>2];a=(d<<2)+13636|0;R:{if(o[a>>2]==(e|0)){o[a>>2]=b;if(b){break R}i=Sl(d)&i;o[3334]=i;break Q}o[g+(o[g+16>>2]==(e|0)?16:20)>>2]=b;if(!b){break Q}}o[b+24>>2]=g;a=o[e+16>>2];if(a){o[b+16>>2]=a;o[a+24>>2]=b}a=o[e+20>>2];if(!a){break Q}o[b+20>>2]=a;o[a+24>>2]=b}S:{if(c>>>0<=15){a=c+h|0;o[e+4>>2]=a|3;a=a+e|0;o[a+4>>2]=o[a+4>>2]|1;break S}o[e+4>>2]=h|3;d=e+h|0;o[d+4>>2]=c|1;o[c+d>>2]=c;if(c>>>0<=255){a=c>>>3|0;b=(a<<3)+13372|0;c=o[3333];a=1<>2]}o[b+8>>2]=d;o[a+12>>2]=d;o[d+12>>2]=b;o[d+8>>2]=a;break S}a=d;f=c>>>8|0;b=0;U:{if(!f){break U}b=31;if(c>>>0>16777215){break U}b=f;f=f+1048320>>>16&8;b=b<>>16&4;b=b<>>16&2;b=(b<>>15|0)-(h|(f|g))|0;b=(b<<1|c>>>b+21&1)+28|0}o[a+28>>2]=b;o[d+16>>2]=0;o[d+20>>2]=0;f=(b<<2)+13636|0;V:{a=1<>2]=d;o[d+24>>2]=f;break W}a=c<<((b|0)==31?0:25-(b>>>1|0)|0);h=o[f>>2];while(1){b=h;if((o[b+4>>2]&-8)==(c|0)){break V}f=a>>>29|0;a=a<<1;f=(b+(f&4)|0)+16|0;h=o[f>>2];if(h){continue}break}o[f>>2]=d;o[d+24>>2]=b}o[d+12>>2]=d;o[d+8>>2]=d;break S}a=o[b+8>>2];o[a+12>>2]=d;o[b+8>>2]=d;o[d+24>>2]=0;o[d+12>>2]=b;o[d+8>>2]=a}a=e+8|0;break a}X:{if(!j){break X}c=o[b+28>>2];a=(c<<2)+13636|0;Y:{if(o[a>>2]==(b|0)){o[a>>2]=e;if(e){break Y}m=13336,n=Sl(c)&i,o[m>>2]=n;break X}o[(o[j+16>>2]==(b|0)?16:20)+j>>2]=e;if(!e){break X}}o[e+24>>2]=j;a=o[b+16>>2];if(a){o[e+16>>2]=a;o[a+24>>2]=e}a=o[b+20>>2];if(!a){break X}o[e+20>>2]=a;o[a+24>>2]=e}Z:{if(d>>>0<=15){a=d+h|0;o[b+4>>2]=a|3;a=a+b|0;o[a+4>>2]=o[a+4>>2]|1;break Z}o[b+4>>2]=h|3;e=b+h|0;o[e+4>>2]=d|1;o[d+e>>2]=d;if(k){a=k>>>3|0;c=(a<<3)+13372|0;h=o[3338];a=1<>2]}o[c+8>>2]=h;o[a+12>>2]=h;o[h+12>>2]=c;o[h+8>>2]=a}o[3338]=e;o[3335]=d}a=b+8|0}R=l+16|0;return a|0}function ah(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0,q=0,r=0,s=0,t=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;h=R-96|0;R=h;o[h+72>>2]=0;o[h+64>>2]=0;o[h+68>>2]=0;o[h+48>>2]=0;o[h+52>>2]=0;o[h+40>>2]=0;o[h+44>>2]=0;o[h+56>>2]=1065353216;o[h+32>>2]=0;o[h+24>>2]=0;o[h+28>>2]=0;y=o[a+124>>2];a:{b:{c:{d:{e:{f:{g:{if((b|0)>=1){t=o[a+216>>2]!=o[a+220>>2];while(1){h:{i:{j:{k:{l:{m:{n:{o:{if(!p[a+308|0]){break o}p:{q:{g=o[a+296>>2];i=o[a+304>>2];d=g+(i>>>3|0)|0;f=o[a+300>>2];if(d>>>0>=f>>>0){break q}d=p[d|0];e=i+1|0;o[a+304>>2]=e;if(!(d>>>(i&7)&1)){break q}j=e>>>3|0;d=g+j|0;r:{if(d>>>0>=f>>>0){d=e;e=0;break r}c=p[d|0];d=i+2|0;o[a+304>>2]=d;j=d>>>3|0;e=c>>>(e&7)&1}c=g+j|0;if(c>>>0>>0){c=p[c|0];o[a+304>>2]=d+1;d=c>>>(d&7)<<1&2}else{d=0}e=(d|e)<<1|1;switch(e+ -2|0){case 0:case 2:case 4:break b;case 5:break n;case 1:case 3:break p;default:break o}}e=o[h+68>>2];if((e|0)==o[h+64>>2]){d=-1;break g}c=-1;n=o[a+8>>2];i=o[n+24>>2];f=i;g=e+ -4|0;s=o[g>>2];d=-1;s:{if((s|0)==-1){break s}e=s+1|0;e=(e>>>0)%3|0?e:s+ -2|0;d=-1;if((e|0)==-1){break s}d=o[o[n>>2]+(e<<2)>>2]}f=o[f+(d<<2)>>2];if((f|0)!=-1){e=f+1|0;c=(e>>>0)%3|0?e:f+ -2|0}f=o[n+12>>2];r=u(k,3);e=r+1|0;o[f+(s<<2)>>2]=e;e=e<<2;o[e+f>>2]=s;q=r+2|0;o[f+(c<<2)>>2]=q;j=q<<2;o[j+f>>2]=c;l=o[n>>2];o[l+(r<<2)>>2]=d;x=e+l|0;f=-1;t:{if((c|0)==-1){break t}e=c+1|0;e=(e>>>0)%3|0?e:c+ -2|0;f=-1;if((e|0)==-1){break t}f=o[l+(e<<2)>>2]}o[x>>2]=f;u:{v:{if((s|0)!=-1){e=s+((s>>>0)%3|0?-1:2)|0;if((e|0)!=-1){break v}}o[j+l>>2]=-1;break u}e=o[l+(e<<2)>>2];o[j+l>>2]=e;if((e|0)==-1){break u}o[i+(e<<2)>>2]=q}c=o[a+120>>2]+(d>>>3&536870908)|0;e=o[c>>2];A=c,B=Sl(d)&e,o[A>>2]=B;o[g>>2]=r;break h}c=o[h+68>>2];if((c|0)==o[h+64>>2]){d=-1;break g}q=o[a+8>>2];d=o[q+12>>2];n=u(k,3);i=(e|0)==5;g=n+(i?2:1)|0;e=g<<2;r=o[c+ -4>>2];o[d+e>>2]=r;o[d+(r<<2)>>2]=g;eh(q+24|0,8268);d=-1;f=o[a+8>>2];j=o[f+24>>2];if(o[f+28>>2]-j>>2>(y|0)){break g}c=n+2|0;f=o[f>>2];x=f+e|0;e=o[q+28>>2]-o[q+24>>2]|0;d=(e>>2)+ -1|0;o[x>>2]=d;if(e){o[j+(d<<2)>>2]=g}c=i?n:c;i=f+(i+n<<2)|0;w:{x:{y:{if((r|0)!=-1){d=r+((r>>>0)%3|0?-1:2)|0;if((d|0)==-1){break y}d=o[f+(d<<2)>>2];o[f+(c<<2)>>2]=d;if((d|0)==-1){break x}o[j+(d<<2)>>2]=c;break x}o[f+(c<<2)>>2]=-1;e=-1;break w}o[f+(c<<2)>>2]=-1}d=r+1|0;d=(d>>>0)%3|0?d:r+ -2|0;e=-1;if((d|0)==-1){break w}e=o[f+(d<<2)>>2]}o[i>>2]=e;o[o[h+68>>2]+ -4>>2]=n;break m}d=-1;g=o[h+68>>2];f=o[h+64>>2];if((g|0)==(f|0)){break g}i=g+ -4|0;z=o[i>>2];o[h+68>>2]=i;n=o[h+44>>2];if(!n){break j}x=o[h+40>>2];q=Rl(n)>>>0>1;c=n+2147483647&k;z:{if(!q){break z}e=k;c=e;if(e>>>0>>0){break z}c=(k>>>0)%(n>>>0)|0}e=c;c=o[x+(e<<2)>>2];if(!c){break j}l=o[c>>2];if(!l){break j}j=n+ -1|0;while(1){A:{c=o[l+4>>2];B:{if((k|0)!=(c|0)){C:{if(!q){c=c&j;break C}if(c>>>0>>0){break C}c=(c>>>0)%(n>>>0)|0}if((c|0)!=(e|0)){break j}break B}if(o[l+8>>2]==(k|0)){break A}}l=o[l>>2];if(l){continue}break j}break}e=o[h+72>>2];if((e|0)!=(i|0)){o[i>>2]=o[l+12>>2];o[h+68>>2]=g;c=f;break i}q=i-f|0;i=q>>2;j=i+1|0;if(j>>>0>=1073741824){break l}g=e-f|0;e=g>>1;e=g>>2>>>0<536870911?e>>>0>>0?j:e:1073741823;c=0;D:{if(!e){break D}if(e>>>0>=1073741824){break a}c=yk(e<<2)}g=c+(i<<2)|0;o[g>>2]=o[l+12>>2];e=(e<<2)+c|0;g=g+4|0;if((q|0)>=1){ll(c,f,q)}o[h+72>>2]=e;o[h+68>>2]=g;o[h+64>>2]=c;if(!f){break i}jl(f);g=o[h+68>>2];c=o[h+64>>2];break i}e=o[a+8>>2];eh(e+24|0,8268);d=-1;c=o[a+8>>2];n=u(k,3);i=o[e+28>>2]-o[e+24>>2]|0;j=i>>2;f=j+ -1|0;o[o[c>>2]+(n<<2)>>2]=f;eh(c+24|0,8268);g=n+1|0;o[o[c>>2]+(g<<2)>>2]=(o[c+28>>2]-o[c+24>>2]>>2)+ -1;e=o[a+8>>2];eh(e+24|0,8268);c=n+2|0;o[o[e>>2]+(c<<2)>>2]=(o[e+28>>2]-o[e+24>>2]>>2)+ -1;e=o[a+8>>2];q=o[e+24>>2];if(o[e+28>>2]-q>>2>(y|0)){break g}E:{F:{if(!i){o[q+(j<<2)>>2]=g;d=1;break F}o[q+(f<<2)>>2]=n;d=0;if((i|0)==-4){break F}o[q+(j<<2)>>2]=g;d=j+1|0;if((d|0)==-1){break E}}o[q+(d<<2)>>2]=c}d=o[h+68>>2];e=o[h+72>>2];if((d|0)!=(e|0)){o[d>>2]=n;o[h+68>>2]=d+4;break m}j=o[h+64>>2];i=d-j|0;f=i>>2;g=f+1|0;if(g>>>0>=1073741824){break k}c=e-j|0;e=c>>1;c=c>>2>>>0<536870911?e>>>0>>0?g:e:1073741823;d=0;G:{if(!c){break G}if(c>>>0>=1073741824){break a}d=yk(c<<2)}e=d+(f<<2)|0;o[e>>2]=n;c=d+(c<<2)|0;e=e+4|0;if((i|0)>=1){ll(d,j,i)}o[h+72>>2]=c;o[h+68>>2]=e;o[h+64>>2]=d;if(!j){break m}jl(j)}l=o[a+40>>2];if((l|0)==o[a+36>>2]){break h}g=(k^-1)+b|0;while(1){d=-1;e=o[l+ -8>>2];if(e>>>0>g>>>0){break g}if((e|0)!=(g|0)){break h}c=p[l+ -4|0];e=l+ -12|0;f=o[e>>2];o[a+40>>2]=e;if((f|0)<0){break g}e=o[o[h+68>>2]+ -4>>2];o[h+20>>2]=(f^-1)+b;o[h+88>>2]=h+20;fh(h,h+40|0,h+20|0,h+88|0);f=o[h>>2];H:{if(c&1){d=-1;if((e|0)==-1){break H}d=e+1|0;d=(d>>>0)%3|0?d:e+ -2|0;break H}d=-1;if((e|0)==-1){break H}d=e+ -1|0;if((e>>>0)%3){break H}d=e+2|0}o[f+12>>2]=d;l=o[a+40>>2];if((l|0)!=o[a+36>>2]){continue}break}break h}Nk();D()}Nk();D()}g=i;c=f}if((c|0)==(g|0)){break g}w=o[g+ -4>>2];e=(w|0)==-1;s=o[a+8>>2];if(o[o[s+12>>2]+(w<<2)>>2]!=-1?!e:0){break g}j=(z|0)==-1;l=o[s+12>>2];if(o[l+(z<<2)>>2]!=-1?!j:0){break g}r=u(k,3);q=r+2|0;o[l+(w<<2)>>2]=q;n=q<<2;o[n+l>>2]=w;d=r+1|0;o[l+(z<<2)>>2]=d;i=d<<2;o[i+l>>2]=z;I:{if(!e){d=-1;e=-1;v=o[s>>2];f=v+(r<<2)|0;c=w+((w>>>0)%3|0?-1:2)|0;if((c|0)!=-1){e=o[(c<<2)+v>>2]}o[f>>2]=e;c=w+1|0;c=(c>>>0)%3|0?c:w+ -2|0;if((c|0)==-1){break I}d=o[(c<<2)+v>>2];break I}e=-1;v=o[s>>2];o[v+(r<<2)>>2]=-1;d=-1}o[i+v>>2]=d;J:{K:{L:{if(!j){d=z+((z>>>0)%3|0?-1:2)|0;if((d|0)==-1){break L}d=o[(d<<2)+v>>2];o[n+v>>2]=d;if((d|0)==-1){break K}o[o[s+24>>2]+(d<<2)>>2]=q;break K}o[n+v>>2]=-1;x=-1;d=-1;break J}o[n+v>>2]=-1}x=-1;c=z+1|0;c=(c>>>0)%3|0?c:z+ -2|0;d=-1;if((c|0)==-1){break J}x=o[(c<<2)+v>>2];d=c}c=o[s+24>>2];f=c+(x<<2)|0;if((e|0)!=-1){o[c+(e<<2)>>2]=o[f>>2]}M:{if((d|0)==-1){break M}while(1){o[(d<<2)+v>>2]=e;c=d+1|0;d=(c>>>0)%3|0?c:d+ -2|0;if((d|0)==-1){break M}c=o[l+(d<<2)>>2];if((c|0)==-1){break M}d=c+1|0;d=(d>>>0)%3|0?d:c+ -2|0;if((d|0)!=-1){continue}break}}o[f>>2]=-1;N:{if(t){break N}d=o[h+28>>2];e=o[h+32>>2];if((d|0)!=(e|0)){o[d>>2]=x;o[h+28>>2]=d+4;break N}q=o[h+24>>2];j=d-q|0;f=j>>2;i=f+1|0;O:{if(i>>>0<1073741824){c=e-q|0;e=c>>1;c=c>>2>>>0<536870911?e>>>0>>0?i:e:1073741823;d=0;P:{if(!c){break P}if(c>>>0>=1073741824){break O}d=yk(c<<2)}e=d+(f<<2)|0;o[e>>2]=x;c=d+(c<<2)|0;e=e+4|0;if((j|0)>=1){ll(d,q,j)}o[h+32>>2]=c;o[h+28>>2]=e;o[h+24>>2]=d;if(!q){break N}jl(q);g=o[h+68>>2];break N}Nk();D()}break a}o[g+ -4>>2]=r}k=k+1|0;if((k|0)!=(b|0)){continue}break}e=b}d=-1;l=o[a+8>>2];if(o[l+28>>2]-o[l+24>>2]>>2>(y|0)){break g}k=o[h+68>>2];if((k|0)!=o[h+64>>2]){n=a+72|0;b=a+60|0;q=a+312|0;while(1){c=k+ -4|0;r=o[c>>2];o[h+68>>2]=c;Q:{if(Uf(q)){j=o[a+8>>2];w=o[j>>2];if((e|0)>=((o[j+4>>2]-w>>2>>>0)/3|0)){break g}g=-1;v=-1;k=o[j+24>>2];i=k;c=-1;R:{if((r|0)==-1){break R}f=r+1|0;f=(f>>>0)%3|0?f:r+ -2|0;c=-1;if((f|0)==-1){break R}c=o[w+(f<<2)>>2]}i=o[i+(c<<2)>>2];S:{if((i|0)==-1){break S}f=i+1|0;f=(f>>>0)%3|0?f:i+ -2|0;if((f|0)==-1){break S}g=f+1|0;g=(g>>>0)%3|0?g:f+ -2|0;if((g|0)!=-1){v=o[w+(g<<2)>>2]}g=f}y=-1;x=-1;k=o[k+(v<<2)>>2];i=-1;T:{if((k|0)==-1){break T}f=k+1|0;f=(f>>>0)%3|0?f:k+ -2|0;i=-1;if((f|0)==-1){break T}i=f+1|0;i=(i>>>0)%3|0?i:f+ -2|0;if((i|0)!=-1){x=o[w+(i<<2)>>2]}i=f}l=o[j+12>>2];s=u(e,3);j=s<<2;o[l+j>>2]=r;o[l+(r<<2)>>2]=s;r=s+1|0;k=r<<2;o[k+l>>2]=g;o[l+(g<<2)>>2]=r;t=s+2|0;f=t<<2;o[f+l>>2]=i;o[l+(i<<2)>>2]=t;o[j+w>>2]=v;k=k+w|0;o[k>>2]=x;i=f+w|0;o[i>>2]=c;j=o[a+120>>2];g=r>>>0>>0?-1:v;f=j+(g>>>3&536870908)|0;c=o[f>>2];A=f,B=Sl(g)&c,o[A>>2]=B;y=(r|0)!=-1?o[k>>2]:y;f=j+(y>>>3&536870908)|0;c=o[f>>2];A=f,B=Sl(y)&c,o[A>>2]=B;k=-1;k=(t|0)!=-1?o[i>>2]:k;f=j+(k>>>3&536870908)|0;c=o[f>>2];A=f,B=Sl(k)&c,o[A>>2]=B;k=o[a+64>>2];f=o[a+68>>2];if((k|0)==f<<5){if((k+1|0)<=-1){break e}c=b;if(k>>>0<=1073741822){g=k+32&-32;f=f<<6;f=f>>>0>>0?g:f}else{f=2147483647}fb(c,f);k=o[a+64>>2]}e=e+1|0;o[a+64>>2]=k+1;c=o[a+60>>2]+(k>>>3&536870908)|0;o[c>>2]=o[c>>2]|1<<(k&31);c=o[a+76>>2];f=o[a+80>>2];if((c|0)!=(f|0)){o[c>>2]=s;o[a+76>>2]=c+4;break Q}t=o[n>>2];j=c-t|0;i=j>>2;k=i+1|0;if(k>>>0>=1073741824){break d}g=f-t|0;f=g>>1;g=g>>2>>>0<536870911?f>>>0>>0?k:f:1073741823;c=0;U:{if(!g){break U}if(g>>>0>=1073741824){break a}c=yk(g<<2)}f=c+(i<<2)|0;o[f>>2]=s;g=c+(g<<2)|0;f=f+4|0;if((j|0)>=1){ll(c,t,j)}o[a+80>>2]=g;o[a+76>>2]=f;o[a+72>>2]=c;if(!t){break Q}jl(t);break Q}l=o[a+64>>2];f=o[a+68>>2];if((l|0)==f<<5){if((l+1|0)<=-1){break e}c=b;if(l>>>0<=1073741822){g=l+32&-32;f=f<<6;f=f>>>0>>0?g:f}else{f=2147483647}fb(c,f);l=o[a+64>>2]}o[a+64>>2]=l+1;f=o[a+60>>2]+(l>>>3&536870908)|0;c=o[f>>2];A=f,B=Sl(l)&c,o[A>>2]=B;c=o[a+76>>2];f=o[a+80>>2];if((c|0)!=(f|0)){o[c>>2]=r;o[a+76>>2]=c+4;break Q}t=o[n>>2];j=c-t|0;i=j>>2;k=i+1|0;if(k>>>0>=1073741824){break d}g=f-t|0;f=g>>1;g=g>>2>>>0<536870911?f>>>0>>0?k:f:1073741823;c=0;V:{if(!g){break V}if(g>>>0>=1073741824){break c}c=yk(g<<2)}f=c+(i<<2)|0;o[f>>2]=r;g=c+(g<<2)|0;f=f+4|0;if((j|0)>=1){ll(c,t,j)}o[a+80>>2]=g;o[a+76>>2]=f;o[a+72>>2]=c;if(!t){break Q}jl(t)}k=o[h+68>>2];if((k|0)!=o[h+64>>2]){continue}break}l=o[a+8>>2]}if(((o[l+4>>2]-o[l>>2]>>2>>>0)/3|0)!=(e|0)){break g}d=o[l+28>>2]-o[l+24>>2]>>2;j=o[h+24>>2];f=o[h+28>>2];if((j|0)==(f|0)){break f}while(1){g=o[j>>2];c=o[l+24>>2];k=d+ -1|0;W:{if(o[c+(k<<2)>>2]!=-1){e=d;break W}c=o[l+24>>2];while(1){k=d+ -2|0;e=d+ -1|0;d=e;if(o[(k<<2)+c>>2]==-1){continue}break}}if(!(k>>>0>>0)){o[h>>2]=l;b=k<<2;d=o[b+c>>2];m[h+12|0]=1;o[h+8>>2]=d;o[h+4>>2]=d;if((d|0)!=-1){while(1){o[o[l>>2]+(d<<2)>>2]=g;of(h);l=o[a+8>>2];d=o[h+8>>2];if((d|0)!=-1){continue}break}}d=b;b=o[l+24>>2];d=d+b|0;if((g|0)!=-1){o[b+(g<<2)>>2]=o[d>>2]}o[d>>2]=-1;i=1<<(g&31);b=o[a+120>>2];c=b+(g>>>3&536870908)|0;d=c;g=b+(k>>>3&536870908)|0;b=1<<(k&31);k=i|o[c>>2];X:{if(o[g>>2]&b){break X}k=o[c>>2]&(i^-1)}o[d>>2]=k;o[g>>2]=o[g>>2]&(b^-1);e=e+ -1|0}d=e;j=j+4|0;if((f|0)!=(j|0)){continue}break}}j=o[h+24>>2]}if(j){o[h+28>>2]=j;jl(j)}a=o[h+48>>2];if(a){while(1){b=o[a>>2];jl(a);a=b;if(a){continue}break}}a=o[h+40>>2];o[h+40>>2]=0;if(a){jl(a)}a=o[h+64>>2];if(a){o[h+68>>2]=a;jl(a)}R=h+96|0;return d}Nk();D()}Nk();D()}db(8832)}D()}db(8832);D()}function lh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0,q=0,r=0,s=0,t=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;i=R-96|0;R=i;o[i+72>>2]=0;o[i+64>>2]=0;o[i+68>>2]=0;o[i+48>>2]=0;o[i+52>>2]=0;o[i+40>>2]=0;o[i+44>>2]=0;o[i+56>>2]=1065353216;o[i+32>>2]=0;o[i+24>>2]=0;o[i+28>>2]=0;w=o[a+124>>2];a:{b:{c:{d:{e:{if((b|0)>=1){t=a+232|0;v=o[a+216>>2]!=o[a+220>>2];while(1){f:{g:{h:{i:{j:{c=o[a+404>>2];k:{l:{if((c|0)!=-1){g=-1;d=o[a+428>>2]+(c<<2)|0;e=o[d>>2];c=e+ -1|0;o[d>>2]=c;if((e|0)<1){break e}c=o[o[o[a+416>>2]+u(o[a+404>>2],12)>>2]+(c<<2)>>2];d=o[(c<<2)+8912>>2];o[a+400>>2]=d;if(!c){d=o[i+68>>2];if((d|0)==o[i+64>>2]){break e}c=-1;e=o[a+8>>2];k=o[e+24>>2];h=k;n=d+ -4|0;d=o[n>>2];g=-1;m:{if((d|0)==-1){break m}f=d+1|0;f=(f>>>0)%3|0?f:d+ -2|0;g=-1;if((f|0)==-1){break m}g=o[o[e>>2]+(f<<2)>>2]}j=o[h+(g<<2)>>2];if((j|0)!=-1){c=j+1|0;c=(c>>>0)%3|0?c:j+ -2|0}f=o[e+12>>2];j=u(q,3);h=j+1|0;o[f+(d<<2)>>2]=h;s=h<<2;o[s+f>>2]=d;h=j+2|0;o[f+(c<<2)>>2]=h;l=h<<2;o[l+f>>2]=c;e=o[e>>2];o[e+(j<<2)>>2]=g;f=e+s|0;r=-1;n:{if((c|0)==-1){break n}r=c+1|0;c=(r>>>0)%3|0?r:c+ -2|0;r=-1;if((c|0)==-1){break n}r=o[e+(c<<2)>>2]}o[f>>2]=r;o:{p:{if((d|0)!=-1){c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)!=-1){break p}}o[e+l>>2]=-1;break o}c=o[e+(c<<2)>>2];o[e+l>>2]=c;if((c|0)==-1){break o}o[k+(c<<2)>>2]=h}c=o[a+120>>2]+(g>>>3&536870908)|0;d=o[c>>2];A=c,B=Sl(g)&d,o[A>>2]=B;o[n>>2]=j;nh(t,j);break f}d=d+ -1|0;if(d>>>0>6){break e}q:{switch(d-1|0){case 1:case 3:j=o[i+68>>2];if((j|0)==o[i+64>>2]){break e}e=o[a+8>>2];g=o[e+12>>2];d=u(q,3);f=(c|0)==3;h=d+(f?2:1)|0;k=h<<2;c=o[j+ -4>>2];o[g+k>>2]=c;o[g+(c<<2)>>2]=h;eh(e+24|0,8268);g=-1;l=o[a+8>>2];j=o[l+24>>2];if(o[l+28>>2]-j>>2>(w|0)){break e}n=d+2|0;g=o[l>>2];e=o[e+28>>2]-o[e+24>>2]|0;l=(e>>2)+ -1|0;o[g+k>>2]=l;if(e){o[j+(l<<2)>>2]=h}e=f?d:n;h=g+(d+f<<2)|0;r:{s:{t:{if((c|0)!=-1){f=c+((c>>>0)%3|0?-1:2)|0;if((f|0)==-1){break t}f=o[g+(f<<2)>>2];o[g+(e<<2)>>2]=f;if((f|0)==-1){break s}o[j+(f<<2)>>2]=e;break s}o[g+(e<<2)>>2]=-1;f=-1;break r}o[g+(e<<2)>>2]=-1}j=c+1|0;c=(j>>>0)%3|0?j:c+ -2|0;f=-1;if((c|0)==-1){break r}f=o[g+(c<<2)>>2]}o[h>>2]=f;g=o[i+68>>2];o[g+ -4>>2]=d;break k;case 5:break l;case 0:case 2:case 4:break e;default:break q}}j=o[i+68>>2];d=o[i+64>>2];if((j|0)==(d|0)){break e}f=j+ -4|0;l=o[f>>2];o[i+68>>2]=f;k=o[i+44>>2];if(!k){break h}n=Rl(k)>>>0>1;u:{if(!n){e=k+2147483647&q;break u}e=q;if(e>>>0>>0){break u}e=(q>>>0)%(k>>>0)|0}c=o[o[i+40>>2]+(e<<2)>>2];if(!c){break h}h=o[c>>2];if(!h){break h}s=k+ -1|0;while(1){v:{c=o[h+4>>2];w:{if((q|0)!=(c|0)){x:{if(!n){c=c&s;break x}if(c>>>0>>0){break x}c=(c>>>0)%(k>>>0)|0}if((c|0)!=(e|0)){break h}break w}if(o[h+8>>2]==(q|0)){break v}}h=o[h>>2];if(h){continue}break h}break}k=o[i+72>>2];if((k|0)!=(f|0)){o[f>>2]=o[h+12>>2];o[i+68>>2]=j;c=d;break g}f=f-d|0;j=f>>2;e=j+1|0;if(e>>>0>=1073741824){break j}k=k-d|0;n=k>>1;e=k>>2>>>0<536870911?n>>>0>>0?e:n:1073741823;c=0;y:{if(!e){break y}if(e>>>0>=1073741824){break a}c=yk(e<<2)}j=c+(j<<2)|0;o[j>>2]=o[h+12>>2];e=(e<<2)+c|0;j=j+4|0;if((f|0)>=1){ll(c,d,f)}o[i+72>>2]=e;o[i+68>>2]=j;o[i+64>>2]=c;if(!d){break g}jl(d);j=o[i+68>>2];c=o[i+64>>2];break g}o[a+400>>2]=7}e=o[a+8>>2];eh(e+24|0,8268);g=-1;c=o[a+8>>2];d=u(q,3);j=o[e+28>>2]-o[e+24>>2]|0;e=j>>2;h=e+ -1|0;o[o[c>>2]+(d<<2)>>2]=h;eh(c+24|0,8268);f=d+1|0;o[o[c>>2]+(f<<2)>>2]=(o[c+28>>2]-o[c+24>>2]>>2)+ -1;c=o[a+8>>2];eh(c+24|0,8268);l=d+2|0;o[o[c>>2]+(l<<2)>>2]=(o[c+28>>2]-o[c+24>>2]>>2)+ -1;k=o[a+8>>2];c=o[k+24>>2];if(o[k+28>>2]-c>>2>(w|0)){break e}z:{A:{if(!j){o[c+(e<<2)>>2]=f;g=1;break A}o[c+(h<<2)>>2]=d;g=0;if((j|0)==-4){break A}o[c+(e<<2)>>2]=f;g=e+1|0;if((g|0)==-1){break z}}o[c+(g<<2)>>2]=l}c=o[i+68>>2];f=o[i+72>>2];if((c|0)!=(f|0)){o[c>>2]=d;g=c+4|0;o[i+68>>2]=g;break k}e=o[i+64>>2];j=c-e|0;h=j>>2;g=h+1|0;if(g>>>0>=1073741824){break i}f=f-e|0;l=f>>1;g=f>>2>>>0<536870911?l>>>0>>0?g:l:1073741823;c=0;B:{if(!g){break B}if(g>>>0>=1073741824){break a}c=yk(g<<2)}f=c+(h<<2)|0;o[f>>2]=d;d=c+(g<<2)|0;g=f+4|0;if((j|0)>=1){ll(c,e,j)}o[i+72>>2]=d;o[i+68>>2]=g;o[i+64>>2]=c;if(!e){break k}jl(e);g=o[i+68>>2]}nh(t,o[g+ -4>>2]);h=o[a+40>>2];if((h|0)==o[a+36>>2]){break f}d=(q^-1)+b|0;while(1){g=-1;c=o[h+ -8>>2];if(c>>>0>d>>>0){break e}if((c|0)!=(d|0)){break f}j=p[h+ -4|0];c=h+ -12|0;e=o[c>>2];o[a+40>>2]=c;if((e|0)<0){break e}c=o[o[i+68>>2]+ -4>>2];o[i+20>>2]=(e^-1)+b;o[i+88>>2]=i+20;fh(i,i+40|0,i+20|0,i+88|0);f=o[i>>2];C:{if(j&1){g=-1;if((c|0)==-1){break C}g=c+1|0;g=(g>>>0)%3|0?g:c+ -2|0;break C}g=-1;if((c|0)==-1){break C}g=c+ -1|0;if((c>>>0)%3){break C}g=c+2|0}o[f+12>>2]=g;h=o[a+40>>2];if((h|0)!=o[a+36>>2]){continue}break}break f}Nk();D()}Nk();D()}j=f;c=d}if((c|0)==(j|0)){break e}c=o[j+ -4>>2];d=(c|0)==-1;f=o[a+8>>2];if(o[o[f+12>>2]+(c<<2)>>2]!=-1?!d:0){break e}r=(l|0)==-1;h=o[f+12>>2];if(o[h+(l<<2)>>2]!=-1?!r:0){break e}k=u(q,3);s=k+2|0;o[h+(c<<2)>>2]=s;n=s<<2;o[n+h>>2]=c;g=k+1|0;o[h+(l<<2)>>2]=g;x=g<<2;o[x+h>>2]=l;D:{if(!d){g=-1;e=-1;d=o[f>>2];z=d+(k<<2)|0;y=c+((c>>>0)%3|0?-1:2)|0;if((y|0)!=-1){e=o[(y<<2)+d>>2]}o[z>>2]=e;y=c+1|0;c=(y>>>0)%3|0?y:c+ -2|0;if((c|0)==-1){break D}g=o[(c<<2)+d>>2];break D}e=-1;d=o[f>>2];o[d+(k<<2)>>2]=-1;g=-1}o[d+x>>2]=g;E:{F:{G:{if(!r){c=l+((l>>>0)%3|0?-1:2)|0;if((c|0)==-1){break G}c=o[(c<<2)+d>>2];o[d+n>>2]=c;if((c|0)==-1){break F}o[o[f+24>>2]+(c<<2)>>2]=s;break F}o[d+n>>2]=-1;n=-1;g=-1;break E}o[d+n>>2]=-1}n=-1;c=l+1|0;c=(c>>>0)%3|0?c:l+ -2|0;g=-1;if((c|0)==-1){break E}n=o[(c<<2)+d>>2];g=c}c=o[a+388>>2];l=e<<2;s=c+l|0;r=c;c=n<<2;o[s>>2]=o[s>>2]+o[r+c>>2];f=o[f+24>>2];c=f+c|0;if((e|0)!=-1){o[f+l>>2]=o[c>>2]}H:{if((g|0)==-1){break H}while(1){o[(g<<2)+d>>2]=e;f=g+1|0;g=(f>>>0)%3|0?f:g+ -2|0;if((g|0)==-1){break H}g=o[h+(g<<2)>>2];if((g|0)==-1){break H}f=g+1|0;g=(f>>>0)%3|0?f:g+ -2|0;if((g|0)!=-1){continue}break}}o[c>>2]=-1;I:{if(v){break I}c=o[i+28>>2];f=o[i+32>>2];if((c|0)!=(f|0)){o[c>>2]=n;o[i+28>>2]=c+4;break I}g=o[i+24>>2];e=c-g|0;h=e>>2;d=h+1|0;J:{if(d>>>0<1073741824){f=f-g|0;l=f>>1;d=f>>2>>>0<536870911?l>>>0>>0?d:l:1073741823;c=0;K:{if(!d){break K}if(d>>>0>=1073741824){break J}c=yk(d<<2)}f=c+(h<<2)|0;o[f>>2]=n;d=c+(d<<2)|0;f=f+4|0;if((e|0)>=1){ll(c,g,e)}o[i+32>>2]=d;o[i+28>>2]=f;o[i+24>>2]=c;if(!g){break I}jl(g);j=o[i+68>>2];break I}Nk();D()}break a}o[j+ -4>>2]=k;nh(t,k)}q=q+1|0;if((q|0)!=(b|0)){continue}break}q=b}g=-1;c=o[a+8>>2];if(o[c+28>>2]-o[c+24>>2]>>2>(w|0)){break e}h=o[i+68>>2];if((h|0)!=o[i+64>>2]){w=a+72|0;b=a+60|0;s=a+312|0;while(1){c=h+ -4|0;l=o[c>>2];o[i+68>>2]=c;L:{if(Uf(s)){n=o[a+8>>2];k=o[n>>2];if((q|0)>=((o[n+4>>2]-k>>2>>>0)/3|0)){break e}d=-1;e=-1;f=o[n+24>>2];c=f;j=-1;M:{if((l|0)==-1){break M}h=l+1|0;h=(h>>>0)%3|0?h:l+ -2|0;j=-1;if((h|0)==-1){break M}j=o[k+(h<<2)>>2]}h=j;c=o[c+(h<<2)>>2];N:{if((c|0)==-1){break N}j=c+1|0;c=(j>>>0)%3|0?j:c+ -2|0;if((c|0)==-1){break N}d=c+1|0;d=(d>>>0)%3|0?d:c+ -2|0;if((d|0)!=-1){e=o[k+(d<<2)>>2]}d=c}j=-1;t=-1;f=o[f+(e<<2)>>2];c=-1;O:{if((f|0)==-1){break O}v=f+1|0;f=(v>>>0)%3|0?v:f+ -2|0;c=-1;if((f|0)==-1){break O}c=f+1|0;c=(c>>>0)%3|0?c:f+ -2|0;if((c|0)!=-1){t=o[k+(c<<2)>>2]}c=f}n=o[n+12>>2];f=u(q,3);v=f<<2;o[n+v>>2]=l;o[n+(l<<2)>>2]=f;l=f+1|0;r=l<<2;o[r+n>>2]=d;o[n+(d<<2)>>2]=l;d=f+2|0;x=d<<2;o[x+n>>2]=c;o[n+(c<<2)>>2]=d;o[k+v>>2]=e;n=k+r|0;o[n>>2]=t;k=k+x|0;o[k>>2]=h;c=o[a+120>>2];e=l>>>0>>0?-1:e;h=c+(e>>>3&536870908)|0;t=o[h>>2];A=h,B=Sl(e)&t,o[A>>2]=B;j=(l|0)!=-1?o[n>>2]:j;e=c+(j>>>3&536870908)|0;h=o[e>>2];A=e,B=Sl(j)&h,o[A>>2]=B;h=-1;h=(d|0)!=-1?o[k>>2]:h;c=c+(h>>>3&536870908)|0;d=o[c>>2];A=c,B=Sl(h)&d,o[A>>2]=B;h=o[a+64>>2];d=o[a+68>>2];if((h|0)==d<<5){if((h+1|0)<=-1){break c}c=b;if(h>>>0<=1073741822){e=h+32&-32;d=d<<6;d=d>>>0>>0?e:d}else{d=2147483647}fb(c,d);h=o[a+64>>2]}q=q+1|0;o[a+64>>2]=h+1;c=o[a+60>>2]+(h>>>3&536870908)|0;o[c>>2]=o[c>>2]|1<<(h&31);c=o[a+76>>2];h=o[a+80>>2];if((c|0)!=(h|0)){o[c>>2]=f;o[a+76>>2]=c+4;break L}d=o[w>>2];j=c-d|0;l=j>>2;e=l+1|0;if(e>>>0>=1073741824){break b}h=h-d|0;k=h>>1;e=h>>2>>>0<536870911?k>>>0>>0?e:k:1073741823;c=0;P:{if(!e){break P}if(e>>>0>=1073741824){break a}c=yk(e<<2)}h=c+(l<<2)|0;o[h>>2]=f;e=c+(e<<2)|0;f=h+4|0;if((j|0)>=1){ll(c,d,j)}o[a+80>>2]=e;o[a+76>>2]=f;o[a+72>>2]=c;if(!d){break L}jl(d);break L}c=o[a+64>>2];e=o[a+68>>2];if((c|0)==e<<5){if((c+1|0)<=-1){break c}d=b;if(c>>>0<=1073741822){c=c+32&-32;e=e<<6;c=e>>>0>>0?c:e}else{c=2147483647}fb(d,c);c=o[a+64>>2]}o[a+64>>2]=c+1;d=o[a+60>>2]+(c>>>3&536870908)|0;e=o[d>>2];A=d,B=Sl(c)&e,o[A>>2]=B;c=o[a+76>>2];f=o[a+80>>2];if((c|0)!=(f|0)){o[c>>2]=l;o[a+76>>2]=c+4;break L}d=o[w>>2];j=c-d|0;h=j>>2;e=h+1|0;if(e>>>0>=1073741824){break b}f=f-d|0;k=f>>1;e=f>>2>>>0<536870911?k>>>0>>0?e:k:1073741823;c=0;Q:{if(!e){break Q}if(e>>>0>=1073741824){break a}c=yk(e<<2)}f=c+(h<<2)|0;o[f>>2]=l;e=c+(e<<2)|0;f=f+4|0;if((j|0)>=1){ll(c,d,j)}o[a+80>>2]=e;o[a+76>>2]=f;o[a+72>>2]=c;if(!d){break L}jl(d)}h=o[i+68>>2];if((h|0)!=o[i+64>>2]){continue}break}c=o[a+8>>2]}if(((o[c+4>>2]-o[c>>2]>>2>>>0)/3|0)!=(q|0)){break e}g=o[c+28>>2]-o[c+24>>2]>>2;q=o[i+24>>2];j=o[i+28>>2];if((q|0)==(j|0)){break d}while(1){e=o[q>>2];d=o[c+24>>2];h=g+ -1|0;R:{if(o[d+(h<<2)>>2]!=-1){b=g;break R}d=o[c+24>>2];while(1){h=g+ -2|0;b=g+ -1|0;g=b;if(o[(h<<2)+d>>2]==-1){continue}break}}if(h>>>0>=e>>>0){o[i>>2]=c;g=d;d=h<<2;g=o[g+d>>2];m[i+12|0]=1;o[i+8>>2]=g;o[i+4>>2]=g;if((g|0)!=-1){while(1){o[o[c>>2]+(g<<2)>>2]=e;of(i);c=o[a+8>>2];g=o[i+8>>2];if((g|0)!=-1){continue}break}}g=d;d=o[c+24>>2];g=g+d|0;if((e|0)!=-1){o[d+(e<<2)>>2]=o[g>>2]}o[g>>2]=-1;g=1<<(e&31);d=e>>>3&536870908;e=o[a+120>>2];d=d+e|0;f=d;e=e+(h>>>3&536870908)|0;h=1<<(h&31);k=g|o[d>>2];S:{if(o[e>>2]&h){break S}k=o[d>>2]&(g^-1)}o[f>>2]=k;o[e>>2]=o[e>>2]&(h^-1);b=b+ -1|0}g=b;q=q+4|0;if((j|0)!=(q|0)){continue}break}}q=o[i+24>>2]}if(q){o[i+28>>2]=q;jl(q)}a=o[i+48>>2];if(a){while(1){b=o[a>>2];jl(a);a=b;if(a){continue}break}}a=o[i+40>>2];o[i+40>>2]=0;if(a){jl(a)}a=o[i+64>>2];if(a){o[i+68>>2]=a;jl(a)}R=i+96|0;return g}Nk();D()}Nk();D()}db(8832);D()}function ji(a,b,c,d,e){var f=0,g=0;f=R-32|0;R=f;o[b+32>>2]=d;o[b+40>>2]=c;o[b+4>>2]=e;gi(a,d,f+16|0);a:{if(o[a>>2]){break a}c=a+4|0;if(m[a+15|0]<=-1){jl(o[c>>2])}e=p[f+23|0];if((l[o[o[b>>2]+8>>2]](b)|0)!=(e|0)){b=yk(64);o[f>>2]=b;o[f+4>>2]=50;o[f+8>>2]=-2147483584;m[b+50|0]=0;d=p[10289]|p[10290]<<8;m[b+48|0]=d;m[b+49|0]=d>>>8;d=p[10285]|p[10286]<<8|(p[10287]<<16|p[10288]<<24);e=p[10281]|p[10282]<<8|(p[10283]<<16|p[10284]<<24);m[b+40|0]=e;m[b+41|0]=e>>>8;m[b+42|0]=e>>>16;m[b+43|0]=e>>>24;m[b+44|0]=d;m[b+45|0]=d>>>8;m[b+46|0]=d>>>16;m[b+47|0]=d>>>24;d=p[10277]|p[10278]<<8|(p[10279]<<16|p[10280]<<24);e=p[10273]|p[10274]<<8|(p[10275]<<16|p[10276]<<24);m[b+32|0]=e;m[b+33|0]=e>>>8;m[b+34|0]=e>>>16;m[b+35|0]=e>>>24;m[b+36|0]=d;m[b+37|0]=d>>>8;m[b+38|0]=d>>>16;m[b+39|0]=d>>>24;d=p[10269]|p[10270]<<8|(p[10271]<<16|p[10272]<<24);e=p[10265]|p[10266]<<8|(p[10267]<<16|p[10268]<<24);m[b+24|0]=e;m[b+25|0]=e>>>8;m[b+26|0]=e>>>16;m[b+27|0]=e>>>24;m[b+28|0]=d;m[b+29|0]=d>>>8;m[b+30|0]=d>>>16;m[b+31|0]=d>>>24;d=p[10261]|p[10262]<<8|(p[10263]<<16|p[10264]<<24);e=p[10257]|p[10258]<<8|(p[10259]<<16|p[10260]<<24);m[b+16|0]=e;m[b+17|0]=e>>>8;m[b+18|0]=e>>>16;m[b+19|0]=e>>>24;m[b+20|0]=d;m[b+21|0]=d>>>8;m[b+22|0]=d>>>16;m[b+23|0]=d>>>24;d=p[10253]|p[10254]<<8|(p[10255]<<16|p[10256]<<24);e=p[10249]|p[10250]<<8|(p[10251]<<16|p[10252]<<24);m[b+8|0]=e;m[b+9|0]=e>>>8;m[b+10|0]=e>>>16;m[b+11|0]=e>>>24;m[b+12|0]=d;m[b+13|0]=d>>>8;m[b+14|0]=d>>>16;m[b+15|0]=d>>>24;d=p[10245]|p[10246]<<8|(p[10247]<<16|p[10248]<<24);e=p[10241]|p[10242]<<8|(p[10243]<<16|p[10244]<<24);m[b|0]=e;m[b+1|0]=e>>>8;m[b+2|0]=e>>>16;m[b+3|0]=e>>>24;m[b+4|0]=d;m[b+5|0]=d>>>8;m[b+6|0]=d>>>16;m[b+7|0]=d>>>24;o[a>>2]=-1;Bk(c,f);if(m[f+11|0]>-1){break a}jl(o[f>>2]);break a}d=p[f+21|0];m[b+36|0]=d;g=p[f+22|0];m[b+37|0]=g;if((d+ -1&255)>>>0>=2){b=yk(32);o[f>>2]=b;o[f+4>>2]=22;o[f+8>>2]=-2147483616;m[b+22|0]=0;d=p[10310]|p[10311]<<8|(p[10312]<<16|p[10313]<<24);e=p[10306]|p[10307]<<8|(p[10308]<<16|p[10309]<<24);m[b+14|0]=e;m[b+15|0]=e>>>8;m[b+16|0]=e>>>16;m[b+17|0]=e>>>24;m[b+18|0]=d;m[b+19|0]=d>>>8;m[b+20|0]=d>>>16;m[b+21|0]=d>>>24;d=p[10304]|p[10305]<<8|(p[10306]<<16|p[10307]<<24);e=p[10300]|p[10301]<<8|(p[10302]<<16|p[10303]<<24);m[b+8|0]=e;m[b+9|0]=e>>>8;m[b+10|0]=e>>>16;m[b+11|0]=e>>>24;m[b+12|0]=d;m[b+13|0]=d>>>8;m[b+14|0]=d>>>16;m[b+15|0]=d>>>24;d=p[10296]|p[10297]<<8|(p[10298]<<16|p[10299]<<24);e=p[10292]|p[10293]<<8|(p[10294]<<16|p[10295]<<24);m[b|0]=e;m[b+1|0]=e>>>8;m[b+2|0]=e>>>16;m[b+3|0]=e>>>24;m[b+4|0]=d;m[b+5|0]=d>>>8;m[b+6|0]=d>>>16;m[b+7|0]=d>>>24;o[a>>2]=-5;Bk(c,f);if(m[f+11|0]>-1){break a}jl(o[f>>2]);break a}if(!((d|0)!=2|(e?2:3)>>>0>=g>>>0)){b=yk(32);o[f>>2]=b;o[f+4>>2]=22;o[f+8>>2]=-2147483616;m[b+22|0]=0;d=p[10333]|p[10334]<<8|(p[10335]<<16|p[10336]<<24);e=p[10329]|p[10330]<<8|(p[10331]<<16|p[10332]<<24);m[b+14|0]=e;m[b+15|0]=e>>>8;m[b+16|0]=e>>>16;m[b+17|0]=e>>>24;m[b+18|0]=d;m[b+19|0]=d>>>8;m[b+20|0]=d>>>16;m[b+21|0]=d>>>24;d=p[10327]|p[10328]<<8|(p[10329]<<16|p[10330]<<24);e=p[10323]|p[10324]<<8|(p[10325]<<16|p[10326]<<24);m[b+8|0]=e;m[b+9|0]=e>>>8;m[b+10|0]=e>>>16;m[b+11|0]=e>>>24;m[b+12|0]=d;m[b+13|0]=d>>>8;m[b+14|0]=d>>>16;m[b+15|0]=d>>>24;d=p[10319]|p[10320]<<8|(p[10321]<<16|p[10322]<<24);e=p[10315]|p[10316]<<8|(p[10317]<<16|p[10318]<<24);m[b|0]=e;m[b+1|0]=e>>>8;m[b+2|0]=e>>>16;m[b+3|0]=e>>>24;m[b+4|0]=d;m[b+5|0]=d>>>8;m[b+6|0]=d>>>16;m[b+7|0]=d>>>24;o[a>>2]=-5;Bk(c,f);if(m[f+11|0]>-1){break a}jl(o[f>>2]);break a}d=d<<8|g;n[o[b+32>>2]+38>>1]=d;b:{if((d&65535)>>>0<259|n[f+26>>1]>-1){break b}hi(a,b);if(o[a>>2]){break a}if(m[c+11|0]>-1){break b}jl(o[c>>2])}if(!l[o[o[b>>2]+12>>2]](b)){b=yk(48);o[f>>2]=b;o[f+4>>2]=33;o[f+8>>2]=-2147483600;m[b+33|0]=0;m[b+32|0]=p[10370];d=p[10366]|p[10367]<<8|(p[10368]<<16|p[10369]<<24);e=p[10362]|p[10363]<<8|(p[10364]<<16|p[10365]<<24);m[b+24|0]=e;m[b+25|0]=e>>>8;m[b+26|0]=e>>>16;m[b+27|0]=e>>>24;m[b+28|0]=d;m[b+29|0]=d>>>8;m[b+30|0]=d>>>16;m[b+31|0]=d>>>24;d=p[10358]|p[10359]<<8|(p[10360]<<16|p[10361]<<24);e=p[10354]|p[10355]<<8|(p[10356]<<16|p[10357]<<24);m[b+16|0]=e;m[b+17|0]=e>>>8;m[b+18|0]=e>>>16;m[b+19|0]=e>>>24;m[b+20|0]=d;m[b+21|0]=d>>>8;m[b+22|0]=d>>>16;m[b+23|0]=d>>>24;d=p[10350]|p[10351]<<8|(p[10352]<<16|p[10353]<<24);e=p[10346]|p[10347]<<8|(p[10348]<<16|p[10349]<<24);m[b+8|0]=e;m[b+9|0]=e>>>8;m[b+10|0]=e>>>16;m[b+11|0]=e>>>24;m[b+12|0]=d;m[b+13|0]=d>>>8;m[b+14|0]=d>>>16;m[b+15|0]=d>>>24;d=p[10342]|p[10343]<<8|(p[10344]<<16|p[10345]<<24);e=p[10338]|p[10339]<<8|(p[10340]<<16|p[10341]<<24);m[b|0]=e;m[b+1|0]=e>>>8;m[b+2|0]=e>>>16;m[b+3|0]=e>>>24;m[b+4|0]=d;m[b+5|0]=d>>>8;m[b+6|0]=d>>>16;m[b+7|0]=d>>>24;o[a>>2]=-1;Bk(c,f);if(m[f+11|0]>-1){break a}jl(o[f>>2]);break a}if(!l[o[o[b>>2]+20>>2]](b)){b=yk(32);o[f>>2]=b;o[f+4>>2]=31;o[f+8>>2]=-2147483616;m[b+31|0]=0;d=p[10399]|p[10400]<<8|(p[10401]<<16|p[10402]<<24);e=p[10395]|p[10396]<<8|(p[10397]<<16|p[10398]<<24);m[b+23|0]=e;m[b+24|0]=e>>>8;m[b+25|0]=e>>>16;m[b+26|0]=e>>>24;m[b+27|0]=d;m[b+28|0]=d>>>8;m[b+29|0]=d>>>16;m[b+30|0]=d>>>24;d=p[10392]|p[10393]<<8|(p[10394]<<16|p[10395]<<24);e=p[10388]|p[10389]<<8|(p[10390]<<16|p[10391]<<24);m[b+16|0]=e;m[b+17|0]=e>>>8;m[b+18|0]=e>>>16;m[b+19|0]=e>>>24;m[b+20|0]=d;m[b+21|0]=d>>>8;m[b+22|0]=d>>>16;m[b+23|0]=d>>>24;d=p[10384]|p[10385]<<8|(p[10386]<<16|p[10387]<<24);e=p[10380]|p[10381]<<8|(p[10382]<<16|p[10383]<<24);m[b+8|0]=e;m[b+9|0]=e>>>8;m[b+10|0]=e>>>16;m[b+11|0]=e>>>24;m[b+12|0]=d;m[b+13|0]=d>>>8;m[b+14|0]=d>>>16;m[b+15|0]=d>>>24;d=p[10376]|p[10377]<<8|(p[10378]<<16|p[10379]<<24);e=p[10372]|p[10373]<<8|(p[10374]<<16|p[10375]<<24);m[b|0]=e;m[b+1|0]=e>>>8;m[b+2|0]=e>>>16;m[b+3|0]=e>>>24;m[b+4|0]=d;m[b+5|0]=d>>>8;m[b+6|0]=d>>>16;m[b+7|0]=d>>>24;o[a>>2]=-1;Bk(c,f);if(m[f+11|0]>-1){break a}jl(o[f>>2]);break a}if(!l[o[o[b>>2]+24>>2]](b)){b=yk(48);o[f>>2]=b;o[f+4>>2]=34;o[f+8>>2]=-2147483600;m[b+34|0]=0;d=p[10436]|p[10437]<<8;m[b+32|0]=d;m[b+33|0]=d>>>8;d=p[10432]|p[10433]<<8|(p[10434]<<16|p[10435]<<24);e=p[10428]|p[10429]<<8|(p[10430]<<16|p[10431]<<24);m[b+24|0]=e;m[b+25|0]=e>>>8;m[b+26|0]=e>>>16;m[b+27|0]=e>>>24;m[b+28|0]=d;m[b+29|0]=d>>>8;m[b+30|0]=d>>>16;m[b+31|0]=d>>>24;d=p[10424]|p[10425]<<8|(p[10426]<<16|p[10427]<<24);e=p[10420]|p[10421]<<8|(p[10422]<<16|p[10423]<<24);m[b+16|0]=e;m[b+17|0]=e>>>8;m[b+18|0]=e>>>16;m[b+19|0]=e>>>24;m[b+20|0]=d;m[b+21|0]=d>>>8;m[b+22|0]=d>>>16;m[b+23|0]=d>>>24;d=p[10416]|p[10417]<<8|(p[10418]<<16|p[10419]<<24);e=p[10412]|p[10413]<<8|(p[10414]<<16|p[10415]<<24);m[b+8|0]=e;m[b+9|0]=e>>>8;m[b+10|0]=e>>>16;m[b+11|0]=e>>>24;m[b+12|0]=d;m[b+13|0]=d>>>8;m[b+14|0]=d>>>16;m[b+15|0]=d>>>24;d=p[10408]|p[10409]<<8|(p[10410]<<16|p[10411]<<24);e=p[10404]|p[10405]<<8|(p[10406]<<16|p[10407]<<24);m[b|0]=e;m[b+1|0]=e>>>8;m[b+2|0]=e>>>16;m[b+3|0]=e>>>24;m[b+4|0]=d;m[b+5|0]=d>>>8;m[b+6|0]=d>>>16;m[b+7|0]=d>>>24;o[a>>2]=-1;Bk(c,f);if(m[f+11|0]>-1){break a}jl(o[f>>2]);break a}o[a>>2]=0;o[a+4>>2]=0;o[a+8>>2]=0;o[a+12>>2]=0}R=f+32|0}function gi(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;e=R-16|0;R=e;g=o[b+12>>2];d=o[b+20>>2];f=o[b+16>>2];h=f+5|0;if(h>>>0<5){d=d+1|0}a:{if((g|0)<(d|0)?1:(g|0)<=(d|0)?r[b+8>>2]>=h>>>0?0:1:0){b=yk(32);o[e>>2]=b;o[e+4>>2]=29;o[e+8>>2]=-2147483616;m[b+29|0]=0;c=p[10185]|p[10186]<<8|(p[10187]<<16|p[10188]<<24);d=p[10181]|p[10182]<<8|(p[10183]<<16|p[10184]<<24);m[b+21|0]=d;m[b+22|0]=d>>>8;m[b+23|0]=d>>>16;m[b+24|0]=d>>>24;m[b+25|0]=c;m[b+26|0]=c>>>8;m[b+27|0]=c>>>16;m[b+28|0]=c>>>24;c=o[2545];d=o[2544];m[b+16|0]=d;m[b+17|0]=d>>>8;m[b+18|0]=d>>>16;m[b+19|0]=d>>>24;m[b+20|0]=c;m[b+21|0]=c>>>8;m[b+22|0]=c>>>16;m[b+23|0]=c>>>24;c=o[2543];d=o[2542];m[b+8|0]=d;m[b+9|0]=d>>>8;m[b+10|0]=d>>>16;m[b+11|0]=d>>>24;m[b+12|0]=c;m[b+13|0]=c>>>8;m[b+14|0]=c>>>16;m[b+15|0]=c>>>24;c=o[2541];d=o[2540];m[b|0]=d;m[b+1|0]=d>>>8;m[b+2|0]=d>>>16;m[b+3|0]=d>>>24;m[b+4|0]=c;m[b+5|0]=c>>>8;m[b+6|0]=c>>>16;m[b+7|0]=c>>>24;o[a>>2]=-2;Bk(a+4|0,e);if(m[e+11|0]>-1){break a}jl(o[e>>2]);break a}d=f+o[b>>2]|0;g=p[d|0]|p[d+1|0]<<8|(p[d+2|0]<<16|p[d+3|0]<<24);m[c|0]=g;m[c+1|0]=g>>>8;m[c+2|0]=g>>>16;m[c+3|0]=g>>>24;m[c+4|0]=p[d+4|0];g=b;d=o[b+20>>2];f=o[b+16>>2]+5|0;if(f>>>0<5){d=d+1|0}h=f;f=d;o[g+16>>2]=h;o[g+20>>2]=d;if(Vj(c,10190,5)){b=yk(32);o[e>>2]=b;o[e+4>>2]=17;o[e+8>>2]=-2147483616;m[b+17|0]=0;m[b+16|0]=p[10212];c=p[10208]|p[10209]<<8|(p[10210]<<16|p[10211]<<24);d=p[10204]|p[10205]<<8|(p[10206]<<16|p[10207]<<24);m[b+8|0]=d;m[b+9|0]=d>>>8;m[b+10|0]=d>>>16;m[b+11|0]=d>>>24;m[b+12|0]=c;m[b+13|0]=c>>>8;m[b+14|0]=c>>>16;m[b+15|0]=c>>>24;c=p[10200]|p[10201]<<8|(p[10202]<<16|p[10203]<<24);d=p[10196]|p[10197]<<8|(p[10198]<<16|p[10199]<<24);m[b|0]=d;m[b+1|0]=d>>>8;m[b+2|0]=d>>>16;m[b+3|0]=d>>>24;m[b+4|0]=c;m[b+5|0]=c>>>8;m[b+6|0]=c>>>16;m[b+7|0]=c>>>24;o[a>>2]=-1;Bk(a+4|0,e);if(m[e+11|0]>-1){break a}jl(o[e>>2]);break a}d=o[b+12>>2];if((d|0)<(f|0)?1:(d|0)<=(f|0)?r[b+8>>2]>h>>>0?0:1:0){b=yk(32);o[e>>2]=b;o[e+4>>2]=29;o[e+8>>2]=-2147483616;m[b+29|0]=0;c=p[10185]|p[10186]<<8|(p[10187]<<16|p[10188]<<24);d=p[10181]|p[10182]<<8|(p[10183]<<16|p[10184]<<24);m[b+21|0]=d;m[b+22|0]=d>>>8;m[b+23|0]=d>>>16;m[b+24|0]=d>>>24;m[b+25|0]=c;m[b+26|0]=c>>>8;m[b+27|0]=c>>>16;m[b+28|0]=c>>>24;c=o[2545];d=o[2544];m[b+16|0]=d;m[b+17|0]=d>>>8;m[b+18|0]=d>>>16;m[b+19|0]=d>>>24;m[b+20|0]=c;m[b+21|0]=c>>>8;m[b+22|0]=c>>>16;m[b+23|0]=c>>>24;c=o[2543];d=o[2542];m[b+8|0]=d;m[b+9|0]=d>>>8;m[b+10|0]=d>>>16;m[b+11|0]=d>>>24;m[b+12|0]=c;m[b+13|0]=c>>>8;m[b+14|0]=c>>>16;m[b+15|0]=c>>>24;c=o[2541];d=o[2540];m[b|0]=d;m[b+1|0]=d>>>8;m[b+2|0]=d>>>16;m[b+3|0]=d>>>24;m[b+4|0]=c;m[b+5|0]=c>>>8;m[b+6|0]=c>>>16;m[b+7|0]=c>>>24;o[a>>2]=-2;Bk(a+4|0,e);if(m[e+11|0]>-1){break a}jl(o[e>>2]);break a}m[c+5|0]=p[h+o[b>>2]|0];d=o[b+20>>2];f=o[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}o[b+16>>2]=f;o[g+20>>2]=d;g=o[b+12>>2];if((g|0)<(d|0)?1:(g|0)<=(d|0)?r[b+8>>2]>f>>>0?0:1:0){b=yk(32);o[e>>2]=b;o[e+4>>2]=29;o[e+8>>2]=-2147483616;m[b+29|0]=0;c=p[10185]|p[10186]<<8|(p[10187]<<16|p[10188]<<24);d=p[10181]|p[10182]<<8|(p[10183]<<16|p[10184]<<24);m[b+21|0]=d;m[b+22|0]=d>>>8;m[b+23|0]=d>>>16;m[b+24|0]=d>>>24;m[b+25|0]=c;m[b+26|0]=c>>>8;m[b+27|0]=c>>>16;m[b+28|0]=c>>>24;c=o[2545];d=o[2544];m[b+16|0]=d;m[b+17|0]=d>>>8;m[b+18|0]=d>>>16;m[b+19|0]=d>>>24;m[b+20|0]=c;m[b+21|0]=c>>>8;m[b+22|0]=c>>>16;m[b+23|0]=c>>>24;c=o[2543];d=o[2542];m[b+8|0]=d;m[b+9|0]=d>>>8;m[b+10|0]=d>>>16;m[b+11|0]=d>>>24;m[b+12|0]=c;m[b+13|0]=c>>>8;m[b+14|0]=c>>>16;m[b+15|0]=c>>>24;c=o[2541];d=o[2540];m[b|0]=d;m[b+1|0]=d>>>8;m[b+2|0]=d>>>16;m[b+3|0]=d>>>24;m[b+4|0]=c;m[b+5|0]=c>>>8;m[b+6|0]=c>>>16;m[b+7|0]=c>>>24;o[a>>2]=-2;Bk(a+4|0,e);if(m[e+11|0]>-1){break a}jl(o[e>>2]);break a}m[c+6|0]=p[f+o[b>>2]|0];d=o[b+20>>2];f=o[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}o[b+16>>2]=f;o[b+20>>2]=d;g=o[b+12>>2];if((g|0)<(d|0)?1:(g|0)<=(d|0)?r[b+8>>2]>f>>>0?0:1:0){b=yk(32);o[e>>2]=b;o[e+4>>2]=29;o[e+8>>2]=-2147483616;m[b+29|0]=0;c=p[10185]|p[10186]<<8|(p[10187]<<16|p[10188]<<24);d=p[10181]|p[10182]<<8|(p[10183]<<16|p[10184]<<24);m[b+21|0]=d;m[b+22|0]=d>>>8;m[b+23|0]=d>>>16;m[b+24|0]=d>>>24;m[b+25|0]=c;m[b+26|0]=c>>>8;m[b+27|0]=c>>>16;m[b+28|0]=c>>>24;c=o[2545];d=o[2544];m[b+16|0]=d;m[b+17|0]=d>>>8;m[b+18|0]=d>>>16;m[b+19|0]=d>>>24;m[b+20|0]=c;m[b+21|0]=c>>>8;m[b+22|0]=c>>>16;m[b+23|0]=c>>>24;c=o[2543];d=o[2542];m[b+8|0]=d;m[b+9|0]=d>>>8;m[b+10|0]=d>>>16;m[b+11|0]=d>>>24;m[b+12|0]=c;m[b+13|0]=c>>>8;m[b+14|0]=c>>>16;m[b+15|0]=c>>>24;c=o[2541];d=o[2540];m[b|0]=d;m[b+1|0]=d>>>8;m[b+2|0]=d>>>16;m[b+3|0]=d>>>24;m[b+4|0]=c;m[b+5|0]=c>>>8;m[b+6|0]=c>>>16;m[b+7|0]=c>>>24;o[a>>2]=-2;Bk(a+4|0,e);if(m[e+11|0]>-1){break a}jl(o[e>>2]);break a}m[c+7|0]=p[f+o[b>>2]|0];d=o[b+20>>2];f=o[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}o[b+16>>2]=f;o[b+20>>2]=d;g=o[b+12>>2];if((g|0)<(d|0)?1:(g|0)<=(d|0)?r[b+8>>2]>f>>>0?0:1:0){b=yk(32);o[e>>2]=b;o[e+4>>2]=29;o[e+8>>2]=-2147483616;m[b+29|0]=0;c=p[10185]|p[10186]<<8|(p[10187]<<16|p[10188]<<24);d=p[10181]|p[10182]<<8|(p[10183]<<16|p[10184]<<24);m[b+21|0]=d;m[b+22|0]=d>>>8;m[b+23|0]=d>>>16;m[b+24|0]=d>>>24;m[b+25|0]=c;m[b+26|0]=c>>>8;m[b+27|0]=c>>>16;m[b+28|0]=c>>>24;c=o[2545];d=o[2544];m[b+16|0]=d;m[b+17|0]=d>>>8;m[b+18|0]=d>>>16;m[b+19|0]=d>>>24;m[b+20|0]=c;m[b+21|0]=c>>>8;m[b+22|0]=c>>>16;m[b+23|0]=c>>>24;c=o[2543];d=o[2542];m[b+8|0]=d;m[b+9|0]=d>>>8;m[b+10|0]=d>>>16;m[b+11|0]=d>>>24;m[b+12|0]=c;m[b+13|0]=c>>>8;m[b+14|0]=c>>>16;m[b+15|0]=c>>>24;c=o[2541];d=o[2540];m[b|0]=d;m[b+1|0]=d>>>8;m[b+2|0]=d>>>16;m[b+3|0]=d>>>24;m[b+4|0]=c;m[b+5|0]=c>>>8;m[b+6|0]=c>>>16;m[b+7|0]=c>>>24;o[a>>2]=-2;Bk(a+4|0,e);if(m[e+11|0]>-1){break a}jl(o[e>>2]);break a}m[c+8|0]=p[f+o[b>>2]|0];d=o[b+20>>2];f=d;i=o[b+16>>2];h=i+1|0;if(h>>>0<1){d=d+1|0}o[b+16>>2]=h;o[b+20>>2]=d;g=o[b+12>>2];d=f;f=i+3|0;if(f>>>0<3){d=d+1|0}if((g|0)<(d|0)?1:(g|0)<=(d|0)?r[b+8>>2]>=f>>>0?0:1:0){b=yk(32);o[e>>2]=b;o[e+4>>2]=29;o[e+8>>2]=-2147483616;m[b+29|0]=0;c=p[10185]|p[10186]<<8|(p[10187]<<16|p[10188]<<24);d=p[10181]|p[10182]<<8|(p[10183]<<16|p[10184]<<24);m[b+21|0]=d;m[b+22|0]=d>>>8;m[b+23|0]=d>>>16;m[b+24|0]=d>>>24;m[b+25|0]=c;m[b+26|0]=c>>>8;m[b+27|0]=c>>>16;m[b+28|0]=c>>>24;c=o[2545];d=o[2544];m[b+16|0]=d;m[b+17|0]=d>>>8;m[b+18|0]=d>>>16;m[b+19|0]=d>>>24;m[b+20|0]=c;m[b+21|0]=c>>>8;m[b+22|0]=c>>>16;m[b+23|0]=c>>>24;c=o[2543];d=o[2542];m[b+8|0]=d;m[b+9|0]=d>>>8;m[b+10|0]=d>>>16;m[b+11|0]=d>>>24;m[b+12|0]=c;m[b+13|0]=c>>>8;m[b+14|0]=c>>>16;m[b+15|0]=c>>>24;c=o[2541];d=o[2540];m[b|0]=d;m[b+1|0]=d>>>8;m[b+2|0]=d>>>16;m[b+3|0]=d>>>24;m[b+4|0]=c;m[b+5|0]=c>>>8;m[b+6|0]=c>>>16;m[b+7|0]=c>>>24;o[a>>2]=-2;Bk(a+4|0,e);if(m[e+11|0]>-1){break a}jl(o[e>>2]);break a}f=c;c=h+o[b>>2]|0;n[f+10>>1]=p[c|0]|p[c+1|0]<<8;c=b;f=b;d=o[b+20>>2];b=o[b+16>>2]+2|0;if(b>>>0<2){d=d+1|0}o[f+16>>2]=b;o[c+20>>2]=d;o[a+8>>2]=0;o[a+12>>2]=0;o[a>>2]=0;o[a+4>>2]=0}R=e+16|0}function Oj(a,b,c,d,f,g){a=a|0;b=+b;c=c|0;d=d|0;f=f|0;g=g|0;var i=0,j=0,k=0,l=0,n=0,q=0,r=0,s=0,t=0,v=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;n=R-560|0;R=n;o[n+44>>2]=0;h(+b);i=e(1)|0;a:{if(G=1,H=(J=e(0)>>>0>4294967295?0:1,K=0,L=(i|0)<=-1,L?J:K),I=(i|0)<-1,I?G:H){C=1;b=-b;h(+b);i=e(1)|0;e(0)|0;D=11632;break a}if(f&2048){C=1;D=11635;break a}C=f&1;D=C?11638:11633}b:{if((i&2146435072)==2146435072){r=C+3|0;Kj(a,32,c,r,f&-65537);Hj(a,D,C);d=g>>>5&1;Hj(a,b!=b?d?11659:11663:d?11651:11655,3);break b}y=n+16|0;c:{d:{e:{b=Ej(b,n+44|0);b=b+b;if(b!=0){i=o[n+44>>2];o[n+44>>2]=i+ -1;z=g|32;if((z|0)!=97){break e}break c}z=g|32;if((z|0)==97){break c}j=o[n+44>>2];q=(d|0)<0?6:d;break d}j=i+ -29|0;o[n+44>>2]=j;b=b*268435456;q=(d|0)<0?6:d}s=(j|0)<0?n+48|0:n+336|0;l=s;while(1){d=l;if(b<4294967296&b>=0){i=~~b>>>0}else{i=0}o[d>>2]=i;l=l+4|0;b=(b- +(i>>>0))*1e9;if(b!=0){continue}break}f:{if((j|0)<1){i=l;k=s;break f}k=s;while(1){v=(j|0)<29?j:29;i=l+ -4|0;g:{if(i>>>0>>0){break g}d=v;j=0;while(1){r=i;E=j;x=o[i>>2];t=d&31;if(32<=(d&63)>>>0){j=x<>>32-t;x=x<>>0>>0?j+1|0:j;j=Ql(t,j,1e9,0);x=r;r=Ol(j,T,1e9,0);o[x>>2]=t-r;i=i+ -4|0;if(i>>>0>=k>>>0){continue}break}if(!j){break g}k=k+ -4|0;o[k>>2]=j}while(1){i=l;if(i>>>0>k>>>0){l=i+ -4|0;if(!o[l>>2]){continue}}break}j=o[n+44>>2]-v|0;o[n+44>>2]=j;l=i;if((j|0)>0){continue}break}}if((j|0)<=-1){A=((q+25|0)/9|0)+1|0;v=(z|0)==102;while(1){d=(j|0)<-9?9:0-j|0;h:{if(k>>>0>=i>>>0){k=o[k>>2]?k:k+4|0;break h}r=1e9>>>d|0;t=-1<>2];o[l>>2]=x+(j>>>d|0);j=u(r,j&t);l=l+4|0;if(l>>>0>>0){continue}break}k=o[k>>2]?k:k+4|0;if(!j){break h}o[i>>2]=j;i=i+4|0}j=d+o[n+44>>2]|0;o[n+44>>2]=j;d=v?s:k;i=i-d>>2>(A|0)?d+(A<<2)|0:i;if((j|0)<0){continue}break}}l=0;i:{if(k>>>0>=i>>>0){break i}l=u(s-k>>2,9);j=10;d=o[k>>2];if(d>>>0<10){break i}while(1){l=l+1|0;j=u(j,10);if(d>>>0>=j>>>0){continue}break}}d=(q-((z|0)==102?0:l)|0)-((z|0)==103&(q|0)!=0)|0;if((d|0)<(u(i-s>>2,9)+ -9|0)){d=d+9216|0;v=(d|0)/9|0;r=(s+(v<<2)|0)+ -4092|0;j=10;d=d-u(v,9)|0;if((d|0)<=7){while(1){j=u(j,10);d=d+1|0;if((d|0)!=8){continue}break}}v=o[r>>2];t=(v>>>0)/(j>>>0)|0;A=r+4|0;d=v-u(j,t)|0;j:{if(d?0:(A|0)==(i|0)){break j}x=j>>>1|0;B=d>>>0>>0?.5:(i|0)==(A|0)?(x|0)==(d|0)?1:1.5:1.5;b=t&1?9007199254740994:9007199254740992;if(!(!C|p[D|0]!=45)){B=-B;b=-b}d=v-d|0;o[r>>2]=d;if(b+B==b){break j}d=d+j|0;o[r>>2]=d;if(d>>>0>=1e9){while(1){o[r>>2]=0;r=r+ -4|0;if(r>>>0>>0){k=k+ -4|0;o[k>>2]=0}d=o[r>>2]+1|0;o[r>>2]=d;if(d>>>0>999999999){continue}break}}l=u(s-k>>2,9);j=10;d=o[k>>2];if(d>>>0<10){break j}while(1){l=l+1|0;j=u(j,10);if(d>>>0>=j>>>0){continue}break}}d=r+4|0;i=i>>>0>d>>>0?d:i}k:{while(1){j=i;v=0;if(i>>>0<=k>>>0){break k}i=j+ -4|0;if(!o[i>>2]){continue}break}v=1}l:{if((z|0)!=103){t=f&8;break l}d=q?q:1;i=(d|0)>(l|0)&(l|0)>-5;q=(i?l^-1:-1)+d|0;g=(i?-1:-2)+g|0;t=f&8;if(t){break l}i=9;m:{if(!v){break m}r=o[j+ -4>>2];if(!r){break m}d=10;i=0;if((r>>>0)%10){break m}while(1){i=i+1|0;d=u(d,10);if(!((r>>>0)%(d>>>0))){continue}break}}d=u(j-s>>2,9)+ -9|0;if((g|32)==102){t=0;d=d-i|0;d=(d|0)>0?d:0;q=(q|0)<(d|0)?q:d;break l}t=0;d=(d+l|0)-i|0;d=(d|0)>0?d:0;q=(q|0)<(d|0)?q:d}z=q|t;x=(z|0)!=0;d=a;E=c;F=g|32;i=(l|0)>0?l:0;n:{if((F|0)==102){break n}i=l>>31;i=Nj(i+l^i,0,y);if((y-i|0)<=1){while(1){i=i+ -1|0;m[i|0]=48;if((y-i|0)<2){continue}break}}A=i+ -2|0;m[A|0]=g;m[i+ -1|0]=(l|0)<0?45:43;i=y-A|0}r=(i+(x+(q+C|0)|0)|0)+1|0;Kj(d,32,E,r,f);Hj(a,D,C);Kj(a,48,c,r,f^65536);o:{p:{q:{if((F|0)==102){d=n+16|8;g=n+16|9;l=k>>>0>s>>>0?s:k;k=l;while(1){i=Nj(o[k>>2],0,g);r:{if((k|0)!=(l|0)){if(i>>>0<=n+16>>>0){break r}while(1){i=i+ -1|0;m[i|0]=48;if(i>>>0>n+16>>>0){continue}break}break r}if((g|0)!=(i|0)){break r}m[n+24|0]=48;i=d}Hj(a,i,g-i|0);k=k+4|0;if(k>>>0<=s>>>0){continue}break}if(z){Hj(a,11667,1)}if((q|0)<1|k>>>0>=j>>>0){break q}while(1){i=Nj(o[k>>2],0,g);if(i>>>0>n+16>>>0){while(1){i=i+ -1|0;m[i|0]=48;if(i>>>0>n+16>>>0){continue}break}}Hj(a,i,(q|0)<9?q:9);i=q+ -9|0;k=k+4|0;if(k>>>0>=j>>>0){break p}d=(q|0)>9;q=i;if(d){continue}break}break p}s:{if((q|0)<0){break s}s=v?j:k+4|0;d=n+16|8;g=n+16|9;l=k;while(1){i=Nj(o[l>>2],0,g);if((g|0)==(i|0)){m[n+24|0]=48;i=d}t:{if((k|0)!=(l|0)){if(i>>>0<=n+16>>>0){break t}while(1){i=i+ -1|0;m[i|0]=48;if(i>>>0>n+16>>>0){continue}break}break t}Hj(a,i,1);i=i+1|0;if((q|0)<1?!t:0){break t}Hj(a,11667,1)}j=i;i=g-i|0;Hj(a,j,(q|0)>(i|0)?i:q);q=q-i|0;l=l+4|0;if(l>>>0>=s>>>0){break s}if((q|0)>-1){continue}break}}Kj(a,48,q+18|0,18,0);Hj(a,A,y-A|0);break o}i=q}Kj(a,48,i+9|0,9,0)}break b}q=g&32;j=q?D+9|0:D;u:{if(d>>>0>11){break u}i=12-d|0;if(!i){break u}B=8;while(1){B=B*16;i=i+ -1|0;if(i){continue}break}if(p[j|0]==45){b=-(B+(-b-B));break u}b=b+B-B}l=o[n+44>>2];i=l>>31;i=Nj(i^i+l,0,y);if((y|0)==(i|0)){m[n+15|0]=48;i=n+15|0}l=C|2;k=o[n+44>>2];s=i+ -2|0;m[s|0]=g+15;m[i+ -1|0]=(k|0)<0?45:43;D=f&8;k=n+16|0;while(1){g=k;r=q;if(w(b)<2147483648){i=~~b}else{i=-2147483648}m[k|0]=r|p[i+11616|0];b=(b- +(i|0))*16;k=g+1|0;if(!((k-(n+16|0)|0)!=1|(b==0?!((d|0)>0|D):0))){m[g+1|0]=46;k=g+2|0}if(b!=0){continue}break}g=a;i=c;if(!d|((k-n|0)+ -18|0)>=(d|0)){q=((y-(n+16|0)|0)-s|0)+k|0}else{q=((d+y|0)-s|0)+2|0}d=q;r=d+l|0;Kj(g,32,i,r,f);Hj(a,j,l);Kj(a,48,c,r,f^65536);g=k-(n+16|0)|0;Hj(a,n+16|0,g);d=y-s|0;Kj(a,48,q-(d+g|0)|0,0,0);Hj(a,s,d)}Kj(a,32,c,r,f^8192);R=n+560|0;return((r|0)<(c|0)?c:r)|0}function Ie(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;i=R+ -64|0;R=i;o[a+8>>2]=e;f=a+32|0;j=o[f>>2];d=o[a+36>>2]-j>>2;a:{if(d>>>0>>0){Ia(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}o[a+36>>2]=j+(e<<2)}o[i+56>>2]=0;o[i+60>>2]=0;o[i+48>>2]=0;o[i+52>>2]=0;o[i+40>>2]=0;o[i+44>>2]=0;f=i+32|0;o[f>>2]=0;o[f+4>>2]=0;o[i+24>>2]=0;o[i+28>>2]=0;o[i+16>>2]=0;o[i+20>>2]=0;o[i>>2]=0;d=0;if(e){Dd(i+16|0,e,i);h=o[i+28>>2];d=o[f>>2]}o[i>>2]=0;d=d-h>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}o[i+32>>2]=(e<<2)+h;break b}Dd(i+16|12,e-d|0,i)}o[i>>2]=0;f=o[i+40>>2];d=o[i+44>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}o[i+44>>2]=f+(e<<2);break c}Dd(i+40|0,e-d|0,i)}o[i>>2]=0;f=o[i+52>>2];d=o[i+56>>2]-f>>2;d:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break d}o[i+56>>2]=f+(e<<2);break d}Dd(i+52|0,e-d|0,i)}e:{if(o[a+8>>2]<=0){break e}g=o[i+16>>2];h=0;while(1){d=h<<2;f=o[d+g>>2];k=o[a+16>>2];f:{if((f|0)>(k|0)){j=o[a+32>>2];o[d+j>>2]=k;break f}j=o[a+32>>2];d=d+j|0;k=o[a+12>>2];if((f|0)<(k|0)){o[d>>2]=k;break f}o[d>>2]=f}h=h+1|0;d=o[a+8>>2];if((h|0)<(d|0)){continue}break}if((d|0)<1){break e}d=0;while(1){g=d<<2;f=g+c|0;g=o[b+g>>2]+o[g+j>>2]|0;o[f>>2]=g;g:{if((g|0)>o[a+16>>2]){g=g-o[a+20>>2]|0}else{if((g|0)>=o[a+12>>2]){break g}g=g+o[a+20>>2]|0}o[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}z=o[a+52>>2];p=o[a+48>>2];t=yk(16);d=t;o[d>>2]=0;o[d+4>>2]=0;o[d+8>>2]=0;o[d+12>>2]=0;o[i+8>>2]=0;o[i>>2]=0;o[i+4>>2]=0;h:{if(e){if(e>>>0>=1073741824){break h}d=e<<2;s=yk(d);o[i>>2]=s;f=d+s|0;o[i+8>>2]=f;ml(s,0,d);o[i+4>>2]=f}d=1;f=o[a+56>>2];y=o[f>>2];f=o[f+4>>2]-y|0;i:{if((f|0)<5){break i}d=f>>2;A=(d|0)>2?d:2;B=d>>>0>1?d:1;C=e<<2;k=1;while(1){j:{k:{l:{if((k|0)!=(B|0)){m:{n:{j=o[(k<<2)+y>>2];if((j|0)==-1){break n}m=j+((j>>>0)%3|0?-1:2)|0;v=m>>>5|0;l=1;w=1<<(m&31);x=o[p>>2];f=0;d=j;o:{while(1){p:{if(o[x+(d>>>3&536870908)>>2]>>>(d&31)&1){break p}g=o[o[o[p+64>>2]+12>>2]+(d<<2)>>2];if((g|0)==-1){break p}q=o[z>>2];h=o[p+28>>2];r=o[q+(o[h+(g<<2)>>2]<<2)>>2];if((r|0)>=(k|0)){break p}n=g+1|0;n=o[q+(o[h+(((n>>>0)%3|0?n:g+ -2|0)<<2)>>2]<<2)>>2];if((n|0)>=(k|0)){break p}g=o[q+(o[h+(g+((g>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((g|0)>=(k|0)){break p}if((e|0)>=1){q=o[(i+16|0)+u(f,12)>>2];g=u(e,g);n=u(e,n);r=u(e,r);h=0;while(1){o[q+(h<<2)>>2]=(o[(g+h<<2)+c>>2]+o[(h+n<<2)+c>>2]|0)-o[(h+r<<2)+c>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}g=4;f=f+1|0;if((f|0)==4){break o}}q:{if(l&1){h=-1;g=d+1|0;d=(g>>>0)%3|0?g:d+ -2|0;if((d|0)==-1|o[o[p>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1){break q}d=o[o[o[p+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break q}g=d+1|0;h=(g>>>0)%3|0?g:d+ -2|0;break q}h=-1;d=((d>>>0)%3|0?-1:2)+d|0;if((d|0)==-1|o[o[p>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1){break q}d=o[o[o[p+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break q}if((d>>>0)%3){h=d+ -1|0;break q}h=d+2|0}r:{if((h|0)==(j|0)){break r}d=h;g=(h|0)!=-1;h=(g|l^-1)&1;d=h?d:-1;l=g&l;if(!((m|0)==-1|h)){if(o[o[p>>2]+(v<<2)>>2]&w){break r}g=o[o[o[p+64>>2]+12>>2]+(m<<2)>>2];if((g|0)==-1){break r}l=0;if((g>>>0)%3){d=g+ -1|0}else{d=g+2|0}}if((d|0)!=-1){continue}}break}g=f;if((g|0)<1){break n}}m=(e|0)<1;if(!m){ml(s,0,C)}d=g+ -1|0;l=(d<<2)+t|0;d=u(d,12)+a|0;q=d+60|0;v=o[d- -64>>2];d=0;w=o[i>>2];j=0;f=0;while(1){h=o[l>>2];o[l>>2]=h+1;if(v>>>0<=h>>>0){break i}s:{if(o[o[q>>2]+(h>>>3&536870908)>>2]>>>(h&31)&1){break s}f=f+1|0;if(m){break s}x=o[(i+16|0)+u(j,12)>>2];h=0;while(1){r=h<<2;n=r+w|0;o[n>>2]=o[n>>2]+o[r+x>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}j=j+1|0;if((g|0)!=(j|0)){continue}break}l=u(e,k);g=l;if(!f){break m}h=0;if((e|0)>0){break l}break k}g=u(e,k)}if(o[a+8>>2]<1){break j}l=(u(k+ -1|0,e)<<2)+c|0;h=0;while(1){d=h<<2;f=o[d+l>>2];m=o[a+16>>2];t:{if((f|0)>(m|0)){j=o[a+32>>2];o[d+j>>2]=m;break t}j=o[a+32>>2];d=d+j|0;m=o[a+12>>2];if((f|0)<(m|0)){o[d>>2]=m;break t}o[d>>2]=f}h=h+1|0;f=o[a+8>>2];if((h|0)<(f|0)){continue}break}d=0;if((f|0)<1){break j}f=g<<2;h=f+c|0;l=b+f|0;while(1){g=d<<2;f=g+h|0;g=o[g+l>>2]+o[g+j>>2]|0;o[f>>2]=g;u:{if((g|0)>o[a+16>>2]){g=g-o[a+20>>2]|0}else{if((g|0)>=o[a+12>>2]){break u}g=g+o[a+20>>2]|0}o[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}break j}Ok();D()}while(1){d=(h<<2)+s|0;o[d>>2]=o[d>>2]/(f|0);h=h+1|0;if((h|0)!=(e|0)){continue}break}}if(o[a+8>>2]<1){break j}h=0;while(1){d=h<<2;f=o[d+s>>2];g=o[a+16>>2];v:{if((f|0)>(g|0)){j=o[a+32>>2];o[d+j>>2]=g;break v}j=o[a+32>>2];d=d+j|0;g=o[a+12>>2];if((f|0)<(g|0)){o[d>>2]=g;break v}o[d>>2]=f}h=h+1|0;f=o[a+8>>2];if((h|0)<(f|0)){continue}break}d=0;if((f|0)<1){break j}f=l<<2;h=f+c|0;l=b+f|0;while(1){g=d<<2;f=g+h|0;g=o[g+l>>2]+o[g+j>>2]|0;o[f>>2]=g;w:{if((g|0)>o[a+16>>2]){g=g-o[a+20>>2]|0}else{if((g|0)>=o[a+12>>2]){break w}g=g+o[a+20>>2]|0}o[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}d=1;k=k+1|0;if((A|0)!=(k|0)){continue}break}}a=o[i>>2];if(a){o[i+4>>2]=a;jl(a)}jl(t);a=o[i+52>>2];if(a){o[i+56>>2]=a;jl(a)}a=o[i+40>>2];if(a){o[i+44>>2]=a;jl(a)}a=o[i+28>>2];if(a){o[i+32>>2]=a;jl(a)}a=o[i+16>>2];if(a){o[i+20>>2]=a;jl(a)}R=i- -64|0;return d|0}Nk();D()}function ef(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;h=R+ -64|0;R=h;o[a+8>>2]=e;f=a+32|0;j=o[f>>2];d=o[a+36>>2]-j>>2;a:{if(d>>>0>>0){Ia(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}o[a+36>>2]=j+(e<<2)}o[h+56>>2]=0;o[h+60>>2]=0;o[h+48>>2]=0;o[h+52>>2]=0;o[h+40>>2]=0;o[h+44>>2]=0;d=h+32|0;o[d>>2]=0;o[d+4>>2]=0;o[h+24>>2]=0;o[h+28>>2]=0;o[h+16>>2]=0;o[h+20>>2]=0;o[h>>2]=0;f=0;if(e){Dd(h+16|0,e,h);i=o[h+28>>2];f=o[d>>2]}o[h>>2]=0;d=f-i>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}o[h+32>>2]=(e<<2)+i;break b}Dd(h+16|12,e-d|0,h)}o[h>>2]=0;f=o[h+40>>2];d=o[h+44>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}o[h+44>>2]=f+(e<<2);break c}Dd(h+40|0,e-d|0,h)}o[h>>2]=0;f=o[h+52>>2];d=o[h+56>>2]-f>>2;d:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break d}o[h+56>>2]=f+(e<<2);break d}Dd(h+52|0,e-d|0,h)}e:{if(o[a+8>>2]<=0){break e}g=o[h+16>>2];i=0;while(1){d=i<<2;f=o[d+g>>2];l=o[a+16>>2];f:{if((f|0)>(l|0)){j=o[a+32>>2];o[d+j>>2]=l;break f}j=o[a+32>>2];d=d+j|0;l=o[a+12>>2];if((f|0)<(l|0)){o[d>>2]=l;break f}o[d>>2]=f}i=i+1|0;d=o[a+8>>2];if((i|0)<(d|0)){continue}break}if((d|0)<1){break e}f=0;while(1){g=f<<2;d=g+c|0;g=o[b+g>>2]+o[g+j>>2]|0;o[d>>2]=g;g:{if((g|0)>o[a+16>>2]){g=g-o[a+20>>2]|0}else{if((g|0)>=o[a+12>>2]){break g}g=g+o[a+20>>2]|0}o[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}}z=o[a+52>>2];x=o[a+48>>2];w=yk(16);d=w;o[d>>2]=0;o[d+4>>2]=0;o[d+8>>2]=0;o[d+12>>2]=0;o[h+8>>2]=0;o[h>>2]=0;o[h+4>>2]=0;h:{if(e){if(e>>>0>=1073741824){break h}d=e<<2;r=yk(d);o[h>>2]=r;f=d+r|0;o[h+8>>2]=f;ml(r,0,d);o[h+4>>2]=f}j=1;d=o[a+56>>2];y=o[d>>2];d=o[d+4>>2]-y|0;i:{if((d|0)<5){break i}d=d>>2;A=(d|0)>2?d:2;B=d>>>0>1?d:1;C=e<<2;l=1;while(1){j:{k:{l:{if((l|0)!=(B|0)){m:{n:{j=o[(l<<2)+y>>2];if((j|0)==-1){break n}m=o[x+12>>2];t=j+((j>>>0)%3|0?-1:2)|0;v=m+(t<<2)|0;k=1;f=0;d=j;o:{while(1){g=o[m+(d<<2)>>2];p:{if((g|0)==-1){break p}i=-1;q=o[z>>2];n=o[x>>2];s=o[q+(o[n+(g<<2)>>2]<<2)>>2];p=g+1|0;p=(p>>>0)%3|0?p:g+ -2|0;if((p|0)!=-1){p=o[n+(p<<2)>>2]}else{p=-1}g=g+((g>>>0)%3|0?-1:2)|0;if((g|0)!=-1){i=o[n+(g<<2)>>2]}if((s|0)>=(l|0)){break p}g=o[(p<<2)+q>>2];if((g|0)>=(l|0)){break p}i=o[q+(i<<2)>>2];if((i|0)>=(l|0)){break p}n=o[(h+16|0)+u(f,12)>>2];if((e|0)>=1){q=u(e,i);g=u(e,g);s=u(e,s);i=0;while(1){o[n+(i<<2)>>2]=(o[(i+q<<2)+c>>2]+o[(g+i<<2)+c>>2]|0)-o[(i+s<<2)+c>>2];i=i+1|0;if((i|0)!=(e|0)){continue}break}}g=4;f=f+1|0;if((f|0)==4){break o}}q:{if(k&1){n=d+1|0;d=(n>>>0)%3|0?n:d+ -2|0;g=-1;if((d|0)==-1){break q}d=o[m+(d<<2)>>2];g=-1;if((d|0)==-1){break q}g=d+1|0;g=(g>>>0)%3|0?g:d+ -2|0;break q}d=((d>>>0)%3|0?-1:2)+d|0;g=-1;if((d|0)==-1){break q}d=o[m+(d<<2)>>2];g=-1;if((d|0)==-1){break q}g=d+ -1|0;if((d>>>0)%3){break q}g=d+2|0}r:{if((g|0)==(j|0)){break r}d=g;g=(g|0)!=-1;i=(g|k^-1)&1;d=i?d:-1;k=g&k;if(!((t|0)==-1|i)){g=o[v>>2];if((g|0)==-1){break r}k=0;if((g>>>0)%3){d=g+ -1|0}else{d=g+2|0}}if((d|0)!=-1){continue}}break}g=f;if((g|0)<1){break n}}m=(e|0)<1;if(!m){ml(r,0,C)}d=g+ -1|0;k=(d<<2)+w|0;d=u(d,12)+a|0;n=d+60|0;q=o[d- -64>>2];j=0;s=o[h>>2];d=0;f=0;while(1){i=o[k>>2];o[k>>2]=i+1;if(q>>>0<=i>>>0){break i}s:{if(o[o[n>>2]+(i>>>3&536870908)>>2]>>>(i&31)&1){break s}f=f+1|0;if(m){break s}p=o[(h+16|0)+u(d,12)>>2];i=0;while(1){t=i<<2;v=t+s|0;o[v>>2]=o[v>>2]+o[p+t>>2];i=i+1|0;if((i|0)!=(e|0)){continue}break}}d=d+1|0;if((g|0)!=(d|0)){continue}break}g=u(e,l);d=g;if(!f){break m}i=0;if((e|0)>0){break l}break k}d=u(e,l)}if(o[a+8>>2]<1){break j}k=(u(l+ -1|0,e)<<2)+c|0;i=0;while(1){f=i<<2;g=o[f+k>>2];m=o[a+16>>2];t:{if((g|0)>(m|0)){j=o[a+32>>2];o[f+j>>2]=m;break t}j=o[a+32>>2];f=f+j|0;m=o[a+12>>2];if((g|0)<(m|0)){o[f>>2]=m;break t}o[f>>2]=g}i=i+1|0;g=o[a+8>>2];if((i|0)<(g|0)){continue}break}f=0;if((g|0)<1){break j}d=d<<2;i=d+c|0;k=b+d|0;while(1){g=f<<2;d=g+i|0;g=o[g+k>>2]+o[g+j>>2]|0;o[d>>2]=g;u:{if((g|0)>o[a+16>>2]){g=g-o[a+20>>2]|0}else{if((g|0)>=o[a+12>>2]){break u}g=g+o[a+20>>2]|0}o[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}break j}Ok();D()}while(1){d=(i<<2)+r|0;o[d>>2]=o[d>>2]/(f|0);i=i+1|0;if((i|0)!=(e|0)){continue}break}}if(o[a+8>>2]<1){break j}i=0;while(1){d=i<<2;f=o[d+r>>2];k=o[a+16>>2];v:{if((f|0)>(k|0)){j=o[a+32>>2];o[d+j>>2]=k;break v}j=o[a+32>>2];d=d+j|0;k=o[a+12>>2];if((f|0)<(k|0)){o[d>>2]=k;break v}o[d>>2]=f}i=i+1|0;d=o[a+8>>2];if((i|0)<(d|0)){continue}break}f=0;if((d|0)<1){break j}d=g<<2;i=d+c|0;k=b+d|0;while(1){g=f<<2;d=g+i|0;g=o[g+k>>2]+o[g+j>>2]|0;o[d>>2]=g;w:{if((g|0)>o[a+16>>2]){g=g-o[a+20>>2]|0}else{if((g|0)>=o[a+12>>2]){break w}g=g+o[a+20>>2]|0}o[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}}j=1;l=l+1|0;if((A|0)!=(l|0)){continue}break}}a=o[h>>2];if(a){o[h+4>>2]=a;jl(a)}jl(w);a=o[h+52>>2];if(a){o[h+56>>2]=a;jl(a)}a=o[h+40>>2];if(a){o[h+44>>2]=a;jl(a)}a=o[h+28>>2];if(a){o[h+32>>2]=a;jl(a)}a=o[h+16>>2];if(a){o[h+20>>2]=a;jl(a)}R=h- -64|0;return j|0}Nk();D()}function _j(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=R-16|0;R=e;o[e+12>>2]=a;a:{if(a>>>0<=211){a=o[$j(11680,11872,e+12|0)>>2];break a}if(a>>>0>=4294967292){bk();D()}f=(a>>>0)/210|0;d=u(f,210);o[e+8>>2]=a-d;g=$j(11872,12064,e+8|0)-11872>>2;b:{while(1){a=o[(g<<2)+11872>>2]+d|0;d=5;c:{d:{e:{while(1){if((d|0)==47){break e}b=o[(d<<2)+11680>>2];c=(a>>>0)/(b>>>0)|0;h=c>>>0>>0;i=h?a:i;d=d+1|0;b=h?1:(u(b,c)|0)==(a|0)?7:0;if(!b){continue}break}d=b+ -4|0;if(d>>>0>3){break b}switch(d-1|0){case 0:case 1:break b;case 2:break d;default:break e}}d=211;while(1){b=(a>>>0)/(d>>>0)|0;if(b>>>0>>0){break c}if((u(b,d)|0)==(a|0)){break d}b=d+10|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+12|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+16|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+18|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+22|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+28|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+30|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+36|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+40|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+42|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+46|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+52|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+58|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+60|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+66|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+70|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+72|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+78|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+82|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+88|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+96|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+100|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+102|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+106|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+108|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+112|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+120|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+126|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+130|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+136|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+138|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+142|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+148|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+150|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+156|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+162|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+166|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+168|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+172|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+178|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+180|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+186|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+190|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+192|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+196|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+198|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((u(b,c)|0)==(a|0)){break d}b=d+208|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}d=d+210|0;if((u(b,c)|0)!=(a|0)){continue}break}}d=g+1|0;a=(d|0)==48;g=a?0:d;f=a+f|0;d=u(f,210);continue}break}o[e+12>>2]=a;break a}o[e+12>>2]=a;a=i}R=e+16|0;return a}function Gj(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,q=0,r=0,s=0,v=0,w=0,x=0,y=0,z=0,A=0;f=R-80|0;R=f;o[f+76>>2]=12431;A=f+55|0;x=f+56|0;a:{b:{c:while(1){d:{if((s|0)<0){break d}if((e|0)>(2147483647-s|0)){o[3314]=61;s=-1;break d}s=e+s|0}e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{j=o[f+76>>2];e=j;i=p[e|0];if(i){while(1){r:{s:{g=i&255;t:{if(!g){i=e;break t}if((g|0)!=37){break s}i=e;while(1){if(p[e+1|0]!=37){break t}g=e+2|0;o[f+76>>2]=g;i=i+1|0;h=p[e+2|0];e=g;if((h|0)==37){continue}break}}e=i-j|0;if(a){Hj(a,j,e)}if(e){continue c}v=-1;i=1;g=f;k=!Bj(m[o[f+76>>2]+1|0]);e=o[f+76>>2];if(!(k|p[e+2|0]!=36)){v=m[e+1|0]+ -48|0;y=1;i=3}e=i+e|0;o[g+76>>2]=e;i=0;w=m[e|0];h=w+ -32|0;u:{if(h>>>0>31){g=e;break u}g=e;h=1<>2]=g;i=h|i;w=m[e+1|0];h=w+ -32|0;if(h>>>0>31){break u}e=g;h=1<>2];if(p[e+2|0]!=36){break x}o[((m[e+1|0]<<2)+d|0)+ -192>>2]=10;r=o[((m[e+1|0]<<3)+c|0)+ -384>>2];y=1;e=e+3|0;break w}if(y){break b}y=0;r=0;if(a){e=o[b>>2];o[b>>2]=e+4;r=o[e>>2]}e=o[f+76>>2]+1|0}o[k+76>>2]=e;if((r|0)>-1){break v}r=0-r|0;i=i|8192;break v}r=Ij(f+76|0);if((r|0)<0){break b}e=o[f+76>>2]}h=-1;y:{if(p[e|0]!=46){break y}if(p[e+1|0]==42){z:{if(!Bj(m[e+2|0])){break z}e=o[f+76>>2];if(p[e+3|0]!=36){break z}o[((m[e+2|0]<<2)+d|0)+ -192>>2]=10;h=o[((m[e+2|0]<<3)+c|0)+ -384>>2];e=e+4|0;o[f+76>>2]=e;break y}if(y){break b}if(a){e=o[b>>2];o[b>>2]=e+4;h=o[e>>2]}else{h=0}e=o[f+76>>2]+2|0;o[f+76>>2]=e;break y}o[f+76>>2]=e+1;h=Ij(f+76|0);e=o[f+76>>2]}g=0;while(1){z=g;q=-1;if(m[e|0]+ -65>>>0>57){break a}w=e+1|0;o[f+76>>2]=w;g=m[e|0];e=w;g=p[(g+u(z,58)|0)+11087|0];if(g+ -1>>>0<8){continue}break}if(!g){break a}A:{B:{C:{if((g|0)==19){if((v|0)<=-1){break C}break a}if((v|0)<0){break B}o[(v<<2)+d>>2]=g;e=(v<<3)+c|0;g=o[e+4>>2];o[f+64>>2]=o[e>>2];o[f+68>>2]=g}e=0;if(!a){continue c}break A}if(!a){break e}Jj(f- -64|0,g,b);w=o[f+76>>2]}k=i&-65537;i=i&8192?k:i;q=0;v=11120;g=x;e=m[w+ -1|0];e=z?(e&15)==3?e&-33:e:e;w=e+ -88|0;if(w>>>0<=32){break r}D:{E:{F:{G:{k=e+ -65|0;if(k>>>0>6){if((e|0)!=83){break f}if(!h){break G}g=o[f+64>>2];break E}switch(k-1|0){case 1:break F;case 0:case 2:break f;default:break q}}e=0;Kj(a,32,r,0,i);break D}o[f+12>>2]=0;o[f+8>>2]=o[f+64>>2];o[f+64>>2]=f+8;h=-1;g=f+8|0}e=0;H:{while(1){j=o[g>>2];if(!j){break H}j=Dj(f+4|0,j);k=(j|0)<0;if(!(k|j>>>0>h-e>>>0)){g=g+4|0;e=e+j|0;if(h>>>0>e>>>0){continue}break H}break}q=-1;if(k){break a}}Kj(a,32,r,e,i);if(!e){e=0;break D}h=0;g=o[f+64>>2];while(1){j=o[g>>2];if(!j){break D}j=Dj(f+4|0,j);h=j+h|0;if((h|0)>(e|0)){break D}Hj(a,f+4|0,j);g=g+4|0;if(h>>>0>>0){continue}break}}Kj(a,32,r,e,i^8192);e=(r|0)>(e|0)?r:e;continue c}g=e+1|0;o[f+76>>2]=g;i=p[e+1|0];e=g;continue}break}switch(w-1|0){case 28:break i;case 21:break j;case 23:break l;case 22:break m;case 11:case 16:break n;case 10:break o;case 26:break p;case 8:case 12:case 13:case 14:break q;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 9:case 15:case 17:case 18:case 19:case 20:case 24:case 25:case 27:case 29:case 30:break f;default:break k}}q=s;if(a){break a}if(!y){break e}e=1;while(1){a=o[(e<<2)+d>>2];if(a){Jj((e<<3)+c|0,a,b);q=1;e=e+1|0;if((e|0)!=10){continue}break a}break}q=1;if(e>>>0>9){break a}while(1){a=e;e=e+1|0;if(o[(e<<2)+d>>2]?0:(e|0)!=10){continue}break}q=a>>>0<9?-1:1;break a}e=l[274](a,t[f+64>>3],r,h,i,e)|0;continue}e=o[f+64>>2];j=e?e:11130;e=Uj(j,h);g=e?e:h+j|0;i=k;h=e?e-j|0:h;break f}m[f+55|0]=o[f+64>>2];h=1;j=A;i=k;break f}k=o[f+68>>2];e=k;j=o[f+64>>2];if((e|0)<-1?1:(e|0)<=-1?j>>>0>4294967295?0:1:0){e=0-(e+(0>>0)|0)|0;j=0-j|0;o[f+64>>2]=j;o[f+68>>2]=e;q=1;v=11120;break h}if(i&2048){q=1;v=11121;break h}q=i&1;v=q?11122:11120;break h}j=Lj(o[f+64>>2],o[f+68>>2],x);if(!(i&8)){break g}e=x-j|0;h=(h|0)>(e|0)?h:e+1|0;break g}h=h>>>0>8?h:8;i=i|8;e=120}j=Mj(o[f+64>>2],o[f+68>>2],x,e&32);if(!(i&8)|!(o[f+64>>2]|o[f+68>>2])){break g}v=(e>>>4|0)+11120|0;q=2;break g}e=0;g=z&255;if(g>>>0>7){continue}I:{switch(g-1|0){default:o[o[f+64>>2]>>2]=s;continue;case 0:o[o[f+64>>2]>>2]=s;continue;case 1:g=o[f+64>>2];o[g>>2]=s;o[g+4>>2]=s>>31;continue;case 2:n[o[f+64>>2]>>1]=s;continue;case 3:m[o[f+64>>2]]=s;continue;case 5:o[o[f+64>>2]>>2]=s;continue;case 4:continue;case 6:break I}}g=o[f+64>>2];o[g>>2]=s;o[g+4>>2]=s>>31;continue}j=o[f+64>>2];e=o[f+68>>2];v=11120}j=Nj(j,e,x)}i=(h|0)>-1?i&-65537:i;e=o[f+64>>2];k=o[f+68>>2];J:{if(!(!!(e|k)|h)){j=x;h=0;break J}e=!(e|k)+(x-j|0)|0;h=(h|0)>(e|0)?h:e}}k=g-j|0;h=(h|0)<(k|0)?k:h;g=h+q|0;e=(r|0)<(g|0)?g:r;Kj(a,32,e,g,i);Hj(a,v,q);Kj(a,48,e,g,i^65536);Kj(a,48,h,k,0);Hj(a,j,k);Kj(a,32,e,g,i^8192);continue}break}q=0;break a}q=-1}R=f+80|0;return q}function Wg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,n=0,s=0,t=0,v=0;g=R+ -64|0;R=g;o[a+132>>2]=0;if(o[a+148>>2]){c=o[a+144>>2];if(c){while(1){d=o[c>>2];jl(c);c=d;if(d){continue}break}}o[a+144>>2]=0;d=o[a+140>>2];if(d){c=0;while(1){o[o[a+136>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}}o[a+148>>2]=0}a:{if(!Xg(1,g+52|0,o[o[a+4>>2]+32>>2])){break a}o[a+156>>2]=o[g+52>>2];if(!Xg(1,g+48|0,o[o[a+4>>2]+32>>2])){break a}f=o[g+48>>2];if(f>>>0>1431655765|r[a+156>>2]>u(f,3)>>>0){break a}d=o[o[a+4>>2]+32>>2];j=o[d+16>>2];e=o[d+12>>2];c=o[d+20>>2];if((e|0)<(c|0)?1:(e|0)<=(c|0)?r[d+8>>2]>j>>>0?0:1:0){break a}h=p[j+o[d>>2]|0];j=j+1|0;if(j>>>0<1){c=c+1|0}o[d+16>>2]=j;o[d+20>>2]=c;if(!Xg(1,g+44|0,d)){break a}k=o[g+44>>2];if(f>>>0>>0|f>>>0>k+((k>>>0)/3|0)>>>0){break a}if(!Xg(1,g+40|0,o[o[a+4>>2]+32>>2])){break a}e=o[g+40>>2];if(e>>>0>k>>>0){break a}o[a+28>>2]=o[a+24>>2];c=yk(88);Ci(c);d=o[a+8>>2];o[a+8>>2]=c;j=a+8|0;if(d){za(j,d);if(!o[j>>2]){break a}}b=o[a+160>>2];o[a+164>>2]=b;b:{c:{d:{e:{f:{if(o[a+168>>2]-b>>2>>>0>=f>>>0){break f}if(f>>>0>=1073741824){break e}c=f<<2;d=yk(c);o[a+164>>2]=d;o[a+160>>2]=d;o[a+168>>2]=c+d;if(!b){break f}jl(b)}b=o[a+172>>2];o[a+176>>2]=b;g:{if(o[a+180>>2]-b>>2>>>0>=f>>>0){break g}if(f>>>0>=1073741824){break d}c=f<<2;d=yk(c);o[a+176>>2]=d;o[a+172>>2]=d;o[a+180>>2]=c+d;if(!b){break g}jl(b)}o[a+92>>2]=-1;o[a+84>>2]=-1;o[a+88>>2]=-1;o[a+40>>2]=o[a+36>>2];o[a- -64>>2]=0;o[a+52>>2]=o[a+48>>2];o[a+76>>2]=o[a+72>>2];n=a+216|0;d=o[a+220>>2];b=o[a+216>>2];if((d|0)==(b|0)){break c}while(1){c=o[d+ -12>>2];if(c){o[d+ -8>>2]=c;jl(c)}c=o[d+ -28>>2];if(c){o[d+ -24>>2]=c;jl(c)}c=d+ -144|0;i=o[d+ -40>>2];if(i){o[d+ -36>>2]=i;jl(i)}Yg(d+ -140|0);d=c;if((b|0)!=(d|0)){continue}break}d=o[n>>2];break b}db(8832);D()}db(8832);D()}d=b}o[a+220>>2]=b;c=(b-d|0)/144|0;h:{if(c>>>0>>0){Zg(n,h-c|0);break h}if(c>>>0<=h>>>0){break h}c=d+u(h,144)|0;if((c|0)!=(b|0)){while(1){d=o[b+ -12>>2];if(d){o[b+ -8>>2]=d;jl(d)}d=o[b+ -28>>2];if(d){o[b+ -24>>2]=d;jl(d)}d=b+ -144|0;i=o[b+ -40>>2];if(i){o[b+ -36>>2]=i;jl(i)}Yg(b+ -140|0);b=d;if((b|0)!=(c|0)){continue}break}}o[a+220>>2]=c}b=0;if(!Mi(o[a+8>>2],f,o[a+156>>2]+e|0)){break a}d=o[a+156>>2];m[g|0]=1;eb(a+120|0,d+e|0,g);if((_g(a,o[o[a+4>>2]+32>>2])|0)==-1){break a}o[a+376>>2]=a;e=a+232|0;b=o[(l[o[o[a>>2]+32>>2]](a)|0)+32>>2];f=o[b>>2]+o[b+16>>2]|0;c=o[(l[o[o[a>>2]+32>>2]](a)|0)+32>>2];b=o[c+8>>2];d=o[c+16>>2];ti(e,f,b-d|0,q[o[(l[o[o[a>>2]+32>>2]](a)|0)+32>>2]+38>>1]);o[a+372>>2]=h;d=si(g);b=o[a+268>>2];o[a+304>>2]=o[a+264>>2];o[a+308>>2]=b;b=o[a+260>>2];o[a+296>>2]=o[a+256>>2];o[a+300>>2]=b;c=a+248|0;b=c;f=o[b+4>>2];o[a+288>>2]=o[b>>2];o[a+292>>2]=f;h=a+240|0;b=h;f=o[b+4>>2];o[a+280>>2]=o[b>>2];o[a+284>>2]=f;b=o[a+236>>2];f=a+272|0;o[f>>2]=o[a+232>>2];o[f+4>>2]=b;i:{j:{if(ui(f,1,g+56|0)){b=o[f+4>>2];o[e>>2]=o[f>>2];o[e+4>>2]=b;b=o[f+36>>2];o[e+32>>2]=o[f+32>>2];o[e+36>>2]=b;b=o[f+28>>2];o[e+24>>2]=o[f+24>>2];o[e+28>>2]=b;b=o[f+20>>2];o[e+16>>2]=o[f+16>>2];o[e+20>>2]=b;b=o[f+12>>2];o[e+8>>2]=o[f+8>>2];o[e+12>>2]=b;i=o[h>>2];b=o[c>>2];t=i-b|0;s=o[g+60>>2];v=o[h+4>>2];h=o[c+4>>2];c=v-(h+(i>>>0>>0)|0)|0;i=o[g+56>>2];if((s|0)==(c|0)&i>>>0<=t>>>0|s>>>0>>0){break j}}b=0;break i}h=h+s|0;i=b+i|0;if(i>>>0>>0){h=h+1|0}o[a+248>>2]=i;o[a+252>>2]=h;b=0;if(!Sf(a+312|0,e)){break i}if(!$g(e)){break i}c=o[e+36>>2];o[g+32>>2]=o[e+32>>2];o[g+36>>2]=c;c=o[e+28>>2];o[g+24>>2]=o[e+24>>2];o[g+28>>2]=c;c=o[e+20>>2];o[g+16>>2]=o[e+16>>2];o[g+20>>2]=c;c=o[e+12>>2];o[g+8>>2]=o[e+8>>2];o[g+12>>2]=c;c=o[e+4>>2];o[g>>2]=o[e>>2];o[g+4>>2]=c;h=ah(a,k);if((h|0)==-1){break i}c=o[o[a+4>>2]+32>>2];b=o[d+16>>2];e=b+o[d>>2]|0;d=o[d+8>>2];ti(c,e,d-b|0,q[c+38>>1]);k:{if(o[a+220>>2]==o[a+216>>2]){break k}b=o[j>>2];if(o[b+4>>2]==o[b>>2]){break k}d=0;while(1){if(bh(a,d)){d=d+3|0;b=o[j>>2];if(d>>>0>2]-o[b>>2]>>2>>>0){continue}break k}break}b=0;break i}if(p[a+308|0]){wi(f)}c=o[a+216>>2];if((c|0)!=o[a+220>>2]){b=0;while(1){e=u(b,144);Wi((e+c|0)+4|0,o[j>>2]);d=o[n>>2];f=e+d|0;c=o[f+132>>2];f=o[f+136>>2];if((c|0)!=(f|0)){while(1){Yi((d+e|0)+4|0,o[c>>2]);d=o[n>>2];c=c+4|0;if((f|0)!=(c|0)){continue}break}}Xi((d+e|0)+4|0);b=b+1|0;c=o[a+216>>2];if(b>>>0<(o[a+220>>2]-c|0)/144>>>0){continue}break}}b=o[a+8>>2];ch(a+184|0,o[b+28>>2]-o[b+24>>2]>>2);d=o[a+216>>2];if((d|0)!=o[a+220>>2]){c=0;while(1){b=u(c,144)+d|0;d=o[b+60>>2]-o[b+56>>2]>>2;e=b+104|0;b=o[a+8>>2];b=o[b+28>>2]-o[b+24>>2]>>2;ch(e,(d|0)<(b|0)?b:d);c=c+1|0;d=o[a+216>>2];if(c>>>0<(o[a+220>>2]-d|0)/144>>>0){continue}break}}b=dh(a,h)}}R=g- -64|0;return b|0}function dh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;d=R-48|0;R=d;c=o[o[a+4>>2]+44>>2];f=o[a+8>>2];e=o[f>>2];f=o[f+4>>2];o[d+40>>2]=0;o[d+32>>2]=0;o[d+36>>2]=0;f=(f-e>>2>>>0)/3|0;h=o[c+96>>2];e=(o[c+100>>2]-h|0)/12|0;a:{if(f>>>0>e>>>0){gh(c+96|0,f-e|0,d+32|0);break a}if(f>>>0>=e>>>0){break a}o[c+100>>2]=h+u(f,12)}b:{if(o[a+216>>2]==o[a+220>>2]){j=o[a+4>>2];c=o[j+44>>2];f=o[c+100>>2];l=o[c+96>>2];if((f|0)!=(l|0)){c=(f-l|0)/12|0;i=c>>>0>1?c:1;k=d+40|0;c=0;while(1){o[k>>2]=0;o[d+32>>2]=0;o[d+36>>2]=0;e=d;c:{d:{e:{h=u(c,3);if((h|0)==-1){f=-1;o[d+32>>2]=-1;g=0;break e}f=o[o[o[a+8>>2]>>2]+(h<<2)>>2];o[d+32>>2]=f;g=h+1|0;if((g|0)!=-1){break e}o[d+36>>2]=-1;h=0;break d}o[d+36>>2]=o[o[o[a+8>>2]>>2]+(g<<2)>>2];h=h+2|0;g=-1;if((h|0)==-1){break c}}g=o[o[o[a+8>>2]>>2]+(h<<2)>>2]}o[e+40>>2]=g;e=l+u(c,12)|0;o[e>>2]=f;o[e+4>>2]=o[d+36>>2];o[e+8>>2]=o[d+40>>2];c=c+1|0;if((i|0)!=(c|0)){continue}break}}o[o[j+4>>2]+80>>2]=b;c=1;break b}o[d+40>>2]=0;o[d+32>>2]=0;o[d+36>>2]=0;h=o[a+8>>2];b=o[h>>2];c=o[h+4>>2];o[d+24>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;f:{g:{h:{i:{j:{k:{l:{b=c-b|0;if(b){f=b>>2;if(f>>>0>=1073741824){break l}c=yk(b);o[d+16>>2]=c;f=c+(f<<2)|0;o[d+24>>2]=f;ml(c,0,b);o[d+20>>2]=f}if((o[h+28>>2]-o[h+24>>2]|0)<1){break g}while(1){f=o[o[h+24>>2]+(l<<2)>>2];m:{if((f|0)==-1){break m}n:{if(o[o[a+120>>2]+(l>>>3&536870908)>>2]>>>(l&31)&1){break n}b=o[a+220>>2];j=o[a+216>>2];if((b|0)==(j|0)){break n}m=(b-j|0)/144|0;i=((f>>>0)%3|0?-1:2)+f|0;g=0;while(1){n=f<<2;k=j+u(g,144)|0;b=o[n+o[o[k+68>>2]>>2]>>2];o:{if(!(o[o[k+16>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1)){break o}b=f;c=-1;p:{if((i|0)==-1){break p}e=o[o[h+12>>2]+(i<<2)>>2];c=-1;if((e|0)==-1){break p}c=e+ -1|0;if((e>>>0)%3){break p}c=e+2|0}if((b|0)==(c|0)){break o}k=o[k+32>>2];n=o[k+n>>2];while(1){b=0;if((c|0)==-1){break f}if((n|0)!=o[k+(c<<2)>>2]){f=c;break n}b=f;c=((c>>>0)%3|0?-1:2)+c|0;e=-1;q:{if((c|0)==-1){break q}c=o[o[h+12>>2]+(c<<2)>>2];e=-1;if((c|0)==-1){break q}e=c+ -1|0;if((c>>>0)%3){break q}e=c+2|0}c=e;if((b|0)!=(c|0)){continue}break}}g=g+1|0;if(g>>>0>>0){continue}break}}b=o[d+36>>2];c=o[d+32>>2];g=b-c|0;j=g>>2;o[o[d+16>>2]+(f<<2)>>2]=j;i=o[d+40>>2];r:{if(i>>>0>b>>>0){o[b>>2]=f;o[d+36>>2]=b+4;break r}e=j+1|0;if(e>>>0>=1073741824){break k}i=i-c|0;k=i>>1;e=i>>2>>>0<536870911?k>>>0>>0?e:k:1073741823;b=0;s:{if(!e){break s}if(e>>>0>=1073741824){break j}b=yk(e<<2)}j=b+(j<<2)|0;o[j>>2]=f;e=b+(e<<2)|0;j=j+4|0;if((g|0)>=1){ll(b,c,g)}o[d+40>>2]=e;o[d+36>>2]=j;o[d+32>>2]=b;if(!c){break r}jl(c);h=o[a+8>>2]}if((f|0)==-1){break m}b=((f>>>0)%3|0?-1:2)+f|0;if((b|0)==-1){break m}b=o[o[h+12>>2]+(b<<2)>>2];if((b|0)==-1){break m}c=b+((b>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}e=f;if((c|0)==(f|0)){break m}while(1){b=c;t:{u:{c=o[a+220>>2];g=o[a+216>>2];if((c|0)==(g|0)){break u}j=(c-g|0)/144|0;c=0;while(1){i=o[(g+u(c,144)|0)+32>>2];k=b<<2;if(o[i+k>>2]==o[i+(e<<2)>>2]){c=c+1|0;if(c>>>0>>0){continue}break u}break}c=o[d+36>>2];e=o[d+32>>2];j=c-e|0;i=j>>2;o[k+o[d+16>>2]>>2]=i;k=o[d+40>>2];if(k>>>0>c>>>0){o[c>>2]=b;o[d+36>>2]=c+4;break t}g=i+1|0;if(g>>>0>=1073741824){break i}k=k-e|0;m=k>>1;g=k>>2>>>0<536870911?m>>>0>>0?g:m:1073741823;c=0;v:{if(!g){break v}if(g>>>0>=1073741824){break h}c=yk(g<<2)}i=c+(i<<2)|0;o[i>>2]=b;g=c+(g<<2)|0;i=i+4|0;if((j|0)>=1){ll(c,e,j)}o[d+40>>2]=g;o[d+36>>2]=i;o[d+32>>2]=c;if(!e){break t}jl(e);h=o[a+8>>2];break t}c=o[d+16>>2];o[c+(b<<2)>>2]=o[c+(e<<2)>>2]}if((b|0)==-1){break m}c=b+((b>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}c=o[o[h+12>>2]+(c<<2)>>2];if((c|0)==-1){break m}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}e=b;if((c|0)!=(f|0)){continue}break}}l=l+1|0;if((l|0)>2]-o[h+24>>2]>>2){continue}break}break g}Nk();D()}Nk();D()}db(8832);D()}Nk();D()}db(8832);D()}f=o[a+4>>2];a=o[f+44>>2];b=o[a+100>>2];a=o[a+96>>2];if((b|0)!=(a|0)){b=(b-a|0)/12|0;e=b>>>0>1?b:1;c=0;h=o[d+16>>2];while(1){l=d+8|0;g=u(c,12);b=g+h|0;o[l>>2]=o[b+8>>2];j=o[b+4>>2];i=o[b>>2];o[d>>2]=i;o[d+4>>2]=j;b=a+g|0;o[b>>2]=i;o[b+4>>2]=o[d+4>>2];o[b+8>>2]=o[l>>2];c=c+1|0;if((e|0)!=(c|0)){continue}break}}o[o[f+4>>2]+80>>2]=o[d+36>>2]-o[d+32>>2]>>2;b=1}c=b;a=o[d+16>>2];if(a){o[d+20>>2]=a;jl(a)}a=o[d+32>>2];if(!a){break b}o[d+36>>2]=a;jl(a)}R=d+48|0;return c}function Re(a,b,c,d){var e=0,f=0,g=0,h=0,i=v(0),j=0,k=0;a:{b:{if(!d){break b}e=o[a+28>>2]+ -1|0;if(e>>>0>10){break b}c:{d:{e:{switch(e-1|0){default:e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){g=o[o[a>>2]>>2];e=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=g+e|0;while(1){e=(f<<3)+d|0;h=m[b|0];o[e>>2]=h;o[e+4>>2]=h>>31;b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 0:e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){g=o[o[a>>2]>>2];e=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=g+e|0;while(1){e=(f<<3)+d|0;o[e>>2]=p[b|0];o[e+4>>2]=0;b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){g=o[o[a>>2]>>2];e=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=g+e|0;while(1){e=(f<<3)+d|0;h=n[b>>1];o[e>>2]=h;o[e+4>>2]=h>>31;b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){g=o[o[a>>2]>>2];e=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=g+e|0;while(1){e=(f<<3)+d|0;o[e>>2]=q[b>>1];o[e+4>>2]=0;b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){g=o[o[a>>2]>>2];e=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=g+e|0;while(1){e=(f<<3)+d|0;h=o[b>>2];o[e>>2]=h;o[e+4>>2]=h>>31;b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){g=o[o[a>>2]>>2];e=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=g+e|0;while(1){e=(f<<3)+d|0;o[e>>2]=o[b>>2];o[e+4>>2]=0;b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){g=o[o[a>>2]>>2];e=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=g+e|0;while(1){h=o[b+4>>2];e=(f<<3)+d|0;o[e>>2]=o[b>>2];o[e+4>>2]=h;b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){g=o[o[a>>2]>>2];e=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=g+e|0;while(1){h=o[b+4>>2];e=(f<<3)+d|0;o[e>>2]=o[b>>2];o[e+4>>2]=h;b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break c}g=o[o[a>>2]>>2];e=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=g+e|0;while(1){e=(f<<3)+d|0;g=e;i=s[b>>2];f:{if(v(w(i))=v(1)?i>v(0)?~~v(y(v(A(v(i/v(4294967296)))),v(4294967296)))>>>0:~~v(B(v(v(i-v(~~i>>>0>>>0))/v(4294967296))))>>>0:0;k=~~i>>>0;break f}h=-2147483648;k=0}o[g>>2]=k;o[e+4>>2]=h;b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}break c;case 8:e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break d}g=o[o[a>>2]>>2];e=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=g+e|0;while(1){e=(f<<3)+d|0;g=e;j=t[b>>3];g:{if(w(j)<0x8000000000000000){h=w(j)>=1?j>0?~~y(A(j/4294967296),4294967295)>>>0:~~B((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;k=~~j>>>0;break g}h=-2147483648;k=0}o[g>>2]=k;o[e+4>>2]=h;b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}break d;case 9:break e}}e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){g=o[o[a>>2]>>2];e=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=g+e|0;while(1){e=(f<<3)+d|0;o[e>>2]=p[b|0];o[e+4>>2]=0;b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}ml((e<<3)+d|0,0,c-e<<3);break b}if((e|0)>=(c|0)){break b}break a}if((e|0)>=(c|0)){break b}ml((e<<3)+d|0,0,c-e<<3)}return}ml((e<<3)+d|0,0,c-e<<3)}function Yh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,s=0,t=0,u=0;c=R-32|0;R=c;a:{if(!Zh(1,c+28|0,o[a+32>>2])){break a}if(!Zh(1,c+24|0,o[a+32>>2])){break a}n=o[c+28>>2];if(n>>>0>1431655765){break a}f=Ol(n,0,3,0);b=T;u=o[c+24>>2];if(!b&f>>>0>>0|b>>>0<0){break a}d=o[a+32>>2];g=o[d+16>>2];e=o[d+12>>2];b=o[d+20>>2];if((e|0)<(b|0)?1:(e|0)<=(b|0)?r[d+8>>2]>g>>>0?0:1:0){break a}h=p[g+o[d>>2]|0];f=b;k=g+1|0;if(k>>>0<1){f=f+1|0}o[d+16>>2]=k;o[d+20>>2]=f;b:{if(!h){if(!_h(a,n)){break a}break b}i=d+16|0;c:{if(u>>>0<=255){if(!n){break b}m=c+16|0;o[m>>2]=0;o[c+8>>2]=0;o[c+12>>2]=0;l=o[d+8>>2];e=o[d+12>>2];b=e;if((b|0)<(f|0)?1:(b|0)<=(f|0)?l>>>0>k>>>0?0:1:0){break c}while(1){g=o[d>>2];j=p[g+k|0];b=f;h=k+1|0;if(h>>>0<1){b=b+1|0}o[d+16>>2]=h;o[d+20>>2]=b;o[c+8>>2]=j;if((e|0)<(b|0)?1:(e|0)<=(b|0)?l>>>0>h>>>0?0:1:0){break c}j=p[g+h|0];b=f;d=k+2|0;if(d>>>0<2){b=b+1|0}h=i;o[h>>2]=d;o[h+4>>2]=b;o[c+12>>2]=j;if((e|0)<(b|0)?1:(e|0)<=(b|0)?l>>>0>d>>>0?0:1:0){break c}b=p[d+g|0];e=k+3|0;if(e>>>0<3){f=f+1|0}o[i>>2]=e;o[i+4>>2]=f;o[c+16>>2]=b;$h(o[a+44>>2]+96|0,c+8|0);s=s+1|0;if((s|0)==(n|0)){break b}d=o[a+32>>2];b=d;k=o[b+16>>2];f=o[b+20>>2];o[m>>2]=0;o[c+8>>2]=0;o[c+12>>2]=0;i=b+16|0;l=o[b+8>>2];e=o[b+12>>2];b=e;if((b|0)>(f|0)?1:(b|0)>=(f|0)?l>>>0<=k>>>0?0:1:0){continue}break}break c}if(u>>>0<=65535){if(!n){break b}t=c+16|0;o[t>>2]=0;o[c+8>>2]=0;o[c+12>>2]=0;h=o[d+12>>2];j=h;e=g+3|0;if(e>>>0<3){b=b+1|0}m=o[d+8>>2];l=e;e=b;if((j|0)<(b|0)?1:(j|0)<=(b|0)?m>>>0>=l>>>0?0:1:0){break c}while(1){g=o[d>>2];b=g+k|0;b=p[b|0]|p[b+1|0]<<8;o[d+16>>2]=l;o[d+20>>2]=e;o[c+8>>2]=b;e=h;b=f;d=k+4|0;if(d>>>0<4){b=b+1|0}j=d;d=b;if((e|0)<(b|0)?1:(e|0)<=(b|0)?m>>>0>=j>>>0?0:1:0){break c}b=g+l|0;b=p[b|0]|p[b+1|0]<<8;o[i>>2]=j;o[i+4>>2]=d;o[c+12>>2]=b;b=f;f=k+6|0;if(f>>>0<6){b=b+1|0}e=f;f=b;if((h|0)<(b|0)?1:(h|0)<=(b|0)?m>>>0>=e>>>0?0:1:0){break c}b=g+j|0;b=p[b|0]|p[b+1|0]<<8;o[i>>2]=e;o[i+4>>2]=f;o[c+16>>2]=b;$h(o[a+44>>2]+96|0,c+8|0);s=s+1|0;if((s|0)==(n|0)){break b}d=o[a+32>>2];b=d;k=o[b+16>>2];f=o[b+20>>2];o[t>>2]=0;o[c+8>>2]=0;o[c+12>>2]=0;i=b+16|0;g=o[b+12>>2];h=g;m=o[b+8>>2];j=m;b=f;e=k+2|0;if(e>>>0<2){b=b+1|0}l=e;e=b;if((g|0)>(b|0)?1:(g|0)>=(b|0)?j>>>0>>0?0:1:0){continue}break}break c}d:{if(r[o[a+44>>2]+80>>2]>2097151){break d}e=q[a+36>>1];if((e<<24|e<<8&16711680)>>>16>>>0<514){break d}if(!n){break b}i=0;f=c+16|0;o[f>>2]=0;o[c+8>>2]=0;o[c+12>>2]=0;if(!Zh(1,c+4|0,d)){break c}while(1){o[c+8>>2]=o[c+4>>2];if(!Zh(1,c+4|0,o[a+32>>2])){break c}o[c+12>>2]=o[c+4>>2];if(!Zh(1,c+4|0,o[a+32>>2])){break c}o[c+16>>2]=o[c+4>>2];$h(o[a+44>>2]+96|0,c+8|0);i=i+1|0;if((n|0)==(i|0)){break b}b=o[a+32>>2];o[f>>2]=0;o[c+8>>2]=0;o[c+12>>2]=0;if(Zh(1,c+4|0,b)){continue}break}break c}if(!n){break b}t=c+16|0;o[t>>2]=0;o[c+8>>2]=0;o[c+12>>2]=0;h=o[d+12>>2];j=h;e=g+5|0;if(e>>>0<5){b=b+1|0}m=o[d+8>>2];l=e;e=b;if((j|0)<(b|0)?1:(j|0)<=(b|0)?m>>>0>=l>>>0?0:1:0){break c}while(1){g=o[d>>2];b=g+k|0;b=p[b|0]|p[b+1|0]<<8|(p[b+2|0]<<16|p[b+3|0]<<24);o[d+16>>2]=l;o[d+20>>2]=e;o[c+8>>2]=b;e=h;b=f;d=k+8|0;if(d>>>0<8){b=b+1|0}j=d;d=b;if((e|0)<(b|0)?1:(e|0)<=(b|0)?m>>>0>=j>>>0?0:1:0){break c}b=g+l|0;b=p[b|0]|p[b+1|0]<<8|(p[b+2|0]<<16|p[b+3|0]<<24);o[i>>2]=j;o[i+4>>2]=d;o[c+12>>2]=b;b=k+12|0;if(b>>>0<12){f=f+1|0}e=b;b=f;if((h|0)<(b|0)?1:(h|0)<=(b|0)?m>>>0>=e>>>0?0:1:0){break c}f=g+j|0;f=p[f|0]|p[f+1|0]<<8|(p[f+2|0]<<16|p[f+3|0]<<24);o[i>>2]=e;o[i+4>>2]=b;o[c+16>>2]=f;$h(o[a+44>>2]+96|0,c+8|0);s=s+1|0;if((s|0)==(n|0)){break b}d=o[a+32>>2];b=d;k=o[b+16>>2];f=o[b+20>>2];o[t>>2]=0;o[c+8>>2]=0;o[c+12>>2]=0;i=b+16|0;g=o[b+12>>2];h=g;m=o[b+8>>2];j=m;b=f;e=k+4|0;if(e>>>0<4){b=b+1|0}l=e;e=b;if((g|0)>(b|0)?1:(g|0)>=(b|0)?j>>>0>>0?0:1:0){continue}break}}i=0;break a}o[o[a+4>>2]+80>>2]=u;i=1}R=c+32|0;return i|0}function Dh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;a:{b:{c:{d:{e:{f:{g:{if(o[a+92>>2]==o[a+88>>2]){break g}d=o[a+52>>2];e=o[a+56>>2];h:{if((d|0)!=(e|0)){o[d>>2]=b;o[a+52>>2]=d+4;break h}i=o[a+48>>2];h=d-i|0;f=h>>2;g=f+1|0;if(g>>>0>=1073741824){break a}c=e-i|0;e=c>>1;c=c>>2>>>0<536870911?e>>>0>>0?g:e:1073741823;d=0;i:{if(!c){break i}if(c>>>0>=1073741824){break b}d=yk(c<<2)}e=d+(f<<2)|0;o[e>>2]=b;c=d+(c<<2)|0;e=e+4|0;if((h|0)>=1){ll(d,i,h)}o[a+56>>2]=c;o[a+52>>2]=e;o[a+48>>2]=d;if(!i){break h}jl(i)}o[a+84>>2]=0;e=-1;d=-1;j:{if((b|0)==-1){break j}f=o[a+4>>2];c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){e=o[o[f>>2]+(c<<2)>>2]}c=((b>>>0)%3|0?-1:2)+b|0;if((c|0)==-1){break j}d=o[o[f>>2]+(c<<2)>>2]}c=o[a+36>>2];h=c+(e>>>3&536870908)|0;g=o[h>>2];f=1<<(e&31);if(!(g&f)){o[h>>2]=f|g;f=a+8|0;if((b|0)!=-1){c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0}else{c=-1}Eh(f,e,c);c=o[a+36>>2]}f=(d>>>3&536870908)+c|0;c=o[f>>2];e=1<<(d&31);if(!(c&e)){o[f>>2]=c|e;e=a+8|0;c=-1;k:{if((b|0)==-1){break k}c=b+ -1|0;if((b>>>0)%3){break k}c=b+2|0}Eh(e,d,c)}e=-1;e=(b|0)!=-1?o[o[o[a+4>>2]>>2]+(b<<2)>>2]:e;f=o[a+36>>2]+(e>>>3&536870908)|0;c=o[f>>2];d=1<<(e&31);if(!(c&d)){o[f>>2]=c|d;Eh(a+8|0,e,b)}c=o[a+84>>2];if((c|0)>2){break g}p=a+8|0;while(1){b=u(c,12)+a|0;e=b+52|0;d=o[e>>2];if((d|0)==o[b+48>>2]){c=c+1|0;if((c|0)!=3){continue}break g}d=d+ -4|0;b=o[d>>2];o[e>>2]=d;o[a+84>>2]=c;if((b|0)==-1){break g}e=o[a+24>>2];d=(b>>>0)/3|0;l:{if(o[e+(d>>>3&268435452)>>2]>>>(d&31)&1){break l}m:{while(1){g=(b>>>0)/3|0;d=(g>>>3&268435452)+e|0;o[d>>2]=o[d>>2]|1<<(g&31);e=-1;e=(b|0)!=-1?o[o[o[a+4>>2]>>2]+(b<<2)>>2]:e;f=o[a+36>>2]+(e>>>3&536870908)|0;c=o[f>>2];d=1<<(e&31);if(!(c&d)){o[f>>2]=c|d;Eh(p,e,b)}if((b|0)==-1){break m}h=o[a+4>>2];d=-1;e=-1;c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){e=o[o[h+12>>2]+(c<<2)>>2]}b=(b-u(g,3)|0?-1:2)+b|0;if((b|0)!=-1){d=o[o[h+12>>2]+(b<<2)>>2]}g=(d|0)==-1;f=(d>>>0)/3|0;c=(e>>>0)/3|0;n:{o:{p:{q:{b=(e|0)==-1;if(!b){b=b?-1:c;b=o[o[a+24>>2]+(b>>>3&536870908)>>2]&1<<(b&31);if(g){break q}n=(b|0)!=0;break p}n=1;if(!g){break p}break m}if(!b){break o}break m}b=g?-1:f;r:{if(o[o[a+24>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){break r}b=0;c=o[o[h>>2]+(d<<2)>>2];if(!(o[o[a+36>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1)){b=o[a+88>>2]+(c<<2)|0;c=o[b>>2];o[b>>2]=c+1;b=(c|0)<1?2:1}if(!(!n|(b|0)>o[a+84>>2])){b=d;e=o[a+24>>2];continue}c=u(b,12)+a|0;j=c+52|0;g=o[j>>2];m=c+56|0;f=o[m>>2];s:{if((g|0)!=(f|0)){o[g>>2]=d;o[j>>2]=g+4;break s}i=c+48|0;h=o[i>>2];k=g-h|0;c=k>>2;l=c+1|0;if(l>>>0>=1073741824){break f}q=c<<2;g=f-h|0;f=g>>1;f=g>>2>>>0<536870911?f>>>0>>0?l:f:1073741823;c=0;t:{if(!f){break t}if(f>>>0>=1073741824){break e}c=yk(f<<2)}g=q+c|0;o[g>>2]=d;f=c+(f<<2)|0;d=g+4|0;if((k|0)>=1){ll(c,h,k)}o[i>>2]=c;o[j>>2]=d;o[m>>2]=f;if(!h){break s}jl(h)}if(o[a+84>>2]<=(b|0)){break r}o[a+84>>2]=b}if(n){break m}b=-1;if((e|0)==-1){break n}}b=o[o[o[a+4>>2]>>2]+(e<<2)>>2]}d=0;if(!(o[o[a+36>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1)){b=o[a+88>>2]+(b<<2)|0;d=o[b>>2];o[b>>2]=d+1;d=(d|0)<1?2:1}if((d|0)<=o[a+84>>2]){b=e;e=o[a+24>>2];continue}break}b=u(d,12)+a|0;k=b+52|0;f=o[k>>2];i=b+56|0;c=o[i>>2];u:{if((f|0)!=(c|0)){o[f>>2]=e;o[k>>2]=f+4;break u}h=b+48|0;j=o[h>>2];l=f-j|0;g=l>>2;m=g+1|0;if(m>>>0>=1073741824){break d}f=c-j|0;c=f>>1;c=f>>2>>>0<536870911?c>>>0>>0?m:c:1073741823;b=0;v:{if(!c){break v}if(c>>>0>=1073741824){break c}b=yk(c<<2)}f=b+(g<<2)|0;o[f>>2]=e;c=b+(c<<2)|0;e=f+4|0;if((l|0)>=1){ll(b,j,l)}o[h>>2]=b;o[k>>2]=e;o[i>>2]=c;if(!j){break u}jl(j)}c=o[a+84>>2];if((c|0)<=(d|0)){break l}o[a+84>>2]=d;c=d;break l}c=o[a+84>>2]}if((c|0)<3){continue}break}}return 1}Nk();D()}db(8832);D()}Nk();D()}db(8832);D()}db(8832);D()}Nk();D()}function jh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,n=0,s=0,t=0,v=0;g=R+ -64|0;R=g;o[a+132>>2]=0;if(o[a+148>>2]){b=o[a+144>>2];if(b){while(1){c=o[b>>2];jl(b);b=c;if(b){continue}break}}o[a+144>>2]=0;c=o[a+140>>2];if(c){b=0;while(1){o[o[a+136>>2]+(b<<2)>>2]=0;b=b+1|0;if((c|0)!=(b|0)){continue}break}}o[a+148>>2]=0}a:{if(!Xg(1,g+60|0,o[o[a+4>>2]+32>>2])){break a}o[a+156>>2]=o[g+60>>2];if(!Xg(1,g+56|0,o[o[a+4>>2]+32>>2])){break a}e=o[g+56>>2];if(e>>>0>1431655765|r[a+156>>2]>u(e,3)>>>0){break a}b=o[o[a+4>>2]+32>>2];f=o[b+16>>2];h=o[b+12>>2];c=o[b+20>>2];if((h|0)<(c|0)?1:(h|0)<=(c|0)?r[b+8>>2]>f>>>0?0:1:0){break a}j=p[f+o[b>>2]|0];f=f+1|0;if(f>>>0<1){c=c+1|0}o[b+16>>2]=f;o[b+20>>2]=c;if(!Xg(1,g+52|0,b)){break a}f=o[g+52>>2];if(e>>>0>>0|e>>>0>f+((f>>>0)/3|0)>>>0){break a}if(!Xg(1,g+48|0,o[o[a+4>>2]+32>>2])){break a}k=o[g+48>>2];if(k>>>0>f>>>0){break a}o[a+28>>2]=o[a+24>>2];c=yk(88);Ci(c);b=o[a+8>>2];o[a+8>>2]=c;h=a+8|0;if(b){za(h,b);if(!o[h>>2]){break a}}d=o[a+160>>2];o[a+164>>2]=d;b:{c:{d:{e:{f:{if(o[a+168>>2]-d>>2>>>0>=e>>>0){break f}if(e>>>0>=1073741824){break e}c=e<<2;b=yk(c);o[a+164>>2]=b;o[a+160>>2]=b;o[a+168>>2]=b+c;if(!d){break f}jl(d)}d=o[a+172>>2];o[a+176>>2]=d;g:{if(o[a+180>>2]-d>>2>>>0>=e>>>0){break g}if(e>>>0>=1073741824){break d}c=e<<2;b=yk(c);o[a+176>>2]=b;o[a+172>>2]=b;o[a+180>>2]=b+c;if(!d){break g}jl(d)}o[a+92>>2]=-1;o[a+84>>2]=-1;o[a+88>>2]=-1;o[a+40>>2]=o[a+36>>2];o[a- -64>>2]=0;o[a+52>>2]=o[a+48>>2];o[a+76>>2]=o[a+72>>2];n=a+216|0;c=o[a+220>>2];d=o[a+216>>2];if((c|0)==(d|0)){break c}while(1){b=o[c+ -12>>2];if(b){o[c+ -8>>2]=b;jl(b)}b=o[c+ -28>>2];if(b){o[c+ -24>>2]=b;jl(b)}b=c+ -144|0;i=o[c+ -40>>2];if(i){o[c+ -36>>2]=i;jl(i)}Yg(c+ -140|0);c=b;if((d|0)!=(b|0)){continue}break}b=o[n>>2];break b}db(8832);D()}db(8832);D()}b=d}o[a+220>>2]=d;c=(d-b|0)/144|0;h:{if(c>>>0>>0){Zg(n,j-c|0);break h}if(c>>>0<=j>>>0){break h}c=b+u(j,144)|0;if((c|0)!=(d|0)){while(1){b=o[d+ -12>>2];if(b){o[d+ -8>>2]=b;jl(b)}b=o[d+ -28>>2];if(b){o[d+ -24>>2]=b;jl(b)}b=d+ -144|0;i=o[d+ -40>>2];if(i){o[d+ -36>>2]=i;jl(i)}Yg(d+ -140|0);d=b;if((b|0)!=(c|0)){continue}break}}o[a+220>>2]=c}d=0;if(!Mi(o[a+8>>2],e,o[a+156>>2]+k|0)){break a}b=o[a+156>>2];m[g+8|0]=1;eb(a+120|0,b+k|0,g+8|0);if((_g(a,o[o[a+4>>2]+32>>2])|0)==-1){break a}o[a+376>>2]=a;i=a+232|0;b=o[(l[o[o[a>>2]+32>>2]](a)|0)+32>>2];s=o[b>>2]+o[b+16>>2]|0;e=o[(l[o[o[a>>2]+32>>2]](a)|0)+32>>2];b=o[e+8>>2];c=o[e+16>>2];ti(i,s,b-c|0,q[o[(l[o[o[a>>2]+32>>2]](a)|0)+32>>2]+38>>1]);t=a,v=l[o[o[a>>2]+36>>2]](a)|0,o[t+380>>2]=v;o[a+372>>2]=j;o[a+384>>2]=o[a+156>>2]+k;b=si(g+8|0);i:{if(!kh(i,b)){break i}j=lh(a,f);if((j|0)==-1){break i}e=o[o[a+4>>2]+32>>2];c=o[b+16>>2];f=c+o[b>>2]|0;b=o[b+8>>2];ti(e,f,b-c|0,q[e+38>>1]);j:{if(o[a+220>>2]==o[a+216>>2]){break j}b=o[h>>2];if(o[b+4>>2]==o[b>>2]){break j}b=0;while(1){if(bh(a,b)){b=b+3|0;c=o[h>>2];if(b>>>0>2]-o[c>>2]>>2>>>0){continue}break j}break}break i}if(p[a+308|0]){wi(a+272|0)}b=o[a+216>>2];if((b|0)!=o[a+220>>2]){while(1){e=u(d,144);Wi((e+b|0)+4|0,o[h>>2]);c=o[n>>2];f=e+c|0;b=o[f+132>>2];f=o[f+136>>2];if((b|0)!=(f|0)){while(1){Yi((c+e|0)+4|0,o[b>>2]);c=o[n>>2];b=b+4|0;if((f|0)!=(b|0)){continue}break}}Xi((c+e|0)+4|0);d=d+1|0;b=o[a+216>>2];if(d>>>0<(o[a+220>>2]-b|0)/144>>>0){continue}break}}d=o[a+8>>2];ch(a+184|0,o[d+28>>2]-o[d+24>>2]>>2);c=o[a+216>>2];if((c|0)!=o[a+220>>2]){b=0;while(1){d=u(b,144)+c|0;c=o[d+60>>2]-o[d+56>>2]>>2;h=d+104|0;d=o[a+8>>2];d=o[d+28>>2]-o[d+24>>2]>>2;ch(h,(c|0)<(d|0)?d:c);b=b+1|0;c=o[a+216>>2];if(b>>>0<(o[a+220>>2]-c|0)/144>>>0){continue}break}}d=dh(a,j)}}R=g- -64|0;return d|0}function Ga(a,b,c,d){var e=0,f=0,g=v(0),h=0,i=0;a:{b:{if(!d){break b}e=o[a+28>>2]+ -1|0;if(e>>>0>10){break b}c:{switch(e-1|0){default:i=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;h=p[a+32|0];while(1){g=v(m[b|0]);s[(f<<2)+d>>2]=h?v(g/v(127)):g;b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 0:i=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;h=p[a+32|0];while(1){g=v(p[b|0]);s[(f<<2)+d>>2]=h?v(g/v(255)):g;b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:i=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;h=p[a+32|0];while(1){g=v(n[b>>1]);s[(f<<2)+d>>2]=h?v(g/v(32767)):g;b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:i=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;h=p[a+32|0];while(1){g=v(q[b>>1]);s[(f<<2)+d>>2]=h?v(g/v(65535)):g;b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:i=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;h=p[a+32|0];while(1){g=v(o[b>>2]);s[(f<<2)+d>>2]=h?v(g*v(4.656612873077393e-10)):g;b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:i=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;h=p[a+32|0];while(1){g=v(r[b>>2]);s[(f<<2)+d>>2]=h?v(g*v(2.3283064365386963e-10)):g;b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:i=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;h=p[a+32|0];while(1){g=v(+r[b>>2]+4294967296*+o[b+4>>2]);s[(f<<2)+d>>2]=h?v(g*v(1.0842021724855044e-19)):g;b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:i=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;h=p[a+32|0];while(1){g=v(+r[b>>2]+4294967296*+r[b+4>>2]);s[(f<<2)+d>>2]=h?v(g*v(5.421010862427522e-20)):g;b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:i=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=o[b>>2];b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 8:i=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){s[(f<<2)+d>>2]=t[b>>3];b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 9:break c}}i=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){s[(f<<2)+d>>2]=p[b|0]?v(1):v(0);b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}ml((e<<2)+d|0,0,c-e<<2)}return i}ml((e<<2)+d|0,0,c-e<<2);return 1}function jf(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0;g=R-80|0;R=g;e=-1;f=-1;a:{if((b|0)==-1){break a}h=((b>>>0)%3|0?-1:2)+b|0;i=o[a+32>>2];k=b+1|0;b=(k>>>0)%3|0?k:b+ -2|0;if((b|0)!=-1){e=o[o[i>>2]+(b<<2)>>2]}if((h|0)==-1){break a}f=o[o[i>>2]+(h<<2)>>2]}h=o[a+36>>2];b=o[h>>2];h=o[h+4>>2]-b>>2;b:{c:{d:{e:{if(!(h>>>0<=e>>>0|h>>>0<=f>>>0)){f:{g:{q=o[b+(e<<2)>>2];s=(q|0)>=(d|0);if(s){break g}f=o[b+(f<<2)>>2];if((f|0)>=(d|0)){break g}b=f<<3;x=o[(b|4)+c>>2];e=q<<3;k=o[(e|4)+c>>2];u=o[b+c>>2];w=o[c+e>>2];if(!((u|0)!=(w|0)|(k|0)!=(x|0))){o[a+8>>2]=w;o[a+12>>2]=k;break f}b=o[o[a+4>>2]+(d<<2)>>2];o[g+72>>2]=0;o[g+76>>2]=0;e=g- -64|0;o[e>>2]=0;o[e+4>>2]=0;o[g+56>>2]=0;o[g+60>>2]=0;e=o[a>>2];if(!p[e+84|0]){b=o[o[e+68>>2]+(b<<2)>>2]}Re(e,b,m[e+24|0],g+56|0);b=o[o[a+4>>2]+(q<<2)>>2];o[g+48>>2]=0;o[g+52>>2]=0;o[g+40>>2]=0;o[g+44>>2]=0;o[g+32>>2]=0;o[g+36>>2]=0;e=o[a>>2];if(!p[e+84|0]){b=o[o[e+68>>2]+(b<<2)>>2]}Re(e,b,m[e+24|0],g+32|0);b=o[o[a+4>>2]+(f<<2)>>2];o[g+24>>2]=0;o[g+28>>2]=0;o[g+16>>2]=0;o[g+20>>2]=0;o[g+8>>2]=0;o[g+12>>2]=0;e=o[a>>2];if(!p[e+84|0]){b=o[o[e+68>>2]+(b<<2)>>2]}Re(e,b,m[e+24|0],g+8|0);y=o[g+44>>2];b=o[g+16>>2];j=o[g+40>>2];e=j;f=o[g+20>>2]-(y+(b>>>0>>0)|0)|0;A=b-e|0;b=Ol(A,f,A,f);e=T;n=b;z=o[g+36>>2];b=o[g+8>>2];l=o[g+32>>2];i=l;h=o[g+12>>2]-(z+(b>>>0>>0)|0)|0;B=b-i|0;i=Ol(B,h,B,h);b=n+i|0;e=T+e|0;e=b>>>0>>0?e+1|0:e;t=b;E=o[g+52>>2];b=o[g+24>>2];n=o[g+48>>2];i=n;r=o[g+28>>2]-(E+(b>>>0>>0)|0)|0;C=b-i|0;i=Ol(C,r,C,r);b=t+i|0;e=T+e|0;v=b;i=b>>>0>>0?e+1|0:e;if(!(b|i)){break g}d=1;b=0;e=o[g+64>>2];c=o[g+68>>2]-((e>>>0>>0)+y|0)|0;e=e-j|0;q=e;s=c;c=Ol(A,f,e,c);e=T;t=c;j=o[g+56>>2];c=j-l|0;y=o[g+60>>2]-((j>>>0>>0)+z|0)|0;l=Ol(c,y,B,h);j=t+l|0;e=T+e|0;e=j>>>0>>0?e+1|0:e;t=j;j=o[g+72>>2];l=j-n|0;z=o[g+76>>2]-((j>>>0>>0)+E|0)|0;n=Ol(l,z,C,r);j=t+n|0;e=T+e|0;e=j>>>0>>0?e+1|0:e;n=j;j=e;f=Pl(Ol(n,e,A,f),T,v,i);s=s-(T+(q>>>0>>0)|0)|0;f=q-f|0;f=Ol(f,s,f,s);q=T;t=f;e=Pl(Ol(B,h,n,e),T,v,i);f=y-(T+(c>>>0>>0)|0)|0;c=c-e|0;f=Ol(c,f,c,f);c=t+f|0;e=T+q|0;e=c>>>0>>0?e+1|0:e;h=c;c=Pl(Ol(n,j,C,r),T,v,i);f=z-(T+(l>>>0>>0)|0)|0;c=l-c|0;f=Ol(c,f,c,f);c=h+f|0;e=T+e|0;f=Ol(c,c>>>0>>0?e+1|0:e,v,i);c=T;h=c;if(!c&f>>>0<=1|c>>>0<0){break e}r=f;c=h;while(1){e=b<<1|d>>>31;d=d<<1;b=e;l=!c&r>>>0>7|c>>>0>0;r=(c&3)<<30|r>>>2;c=c>>>2|0;if(l){continue}break}break d}e=a;if(s){if((d|0)<=0){o[a+8>>2]=0;o[a+12>>2]=0;break f}b=(d<<1)+ -2|0}else{b=q<<1}b=(b<<2)+c|0;o[e+8>>2]=o[b>>2];o[a+12>>2]=o[b+4>>2]}c=1;break b}Ok();D()}d=f;b=h;if(f-1){break c}}while(1){c=Ql(f,h,d,b)+d|0;e=b+T|0;e=c>>>0>>0?e+1|0:e;d=(e&1)<<31|c>>>1;b=e>>>1|0;c=Ol(d,b,d,b);e=T;if((h|0)==(e|0)&c>>>0>f>>>0|e>>>0>h>>>0){continue}break}}e=o[a+20>>2];c=0;if(!e){break b}h=e+ -1|0;r=o[o[a+16>>2]+(h>>>3&536870908)>>2];o[a+20>>2]=h;c=x;e=k;l=c-e|0;k=e>>31;x=(c>>31)-(k+(c>>>0>>0)|0)|0;c=Ol(n,j,l,x);f=T;k=Ol(e,k,v,i);c=k+c|0;e=T+f|0;e=c>>>0>>0?e+1|0:e;t=c;c=u;f=w;q=c-f|0;w=f>>31;k=(c>>31)-(w+(c>>>0>>0)|0)|0;c=Ol(d,b,q,k);u=c;c=r>>>(h&31)&1;s=c?0-u|0:u;h=t+s|0;r=e;e=T;e=r+(c?0-(e+(0>>0)|0)|0:e)|0;F=a,G=Pl(h,h>>>0>>0?e+1|0:e,v,i),o[F+12>>2]=G;e=Ol(n,j,q,k);h=T;u=a;f=Ol(f,w,v,i);a=f+e|0;e=T+h|0;e=a>>>0>>0?e+1|0:e;j=a;a=Ol(d,b,l,x);d=c?a:0-a|0;b=j+d|0;j=e;e=T;a=j+(c?e:0-((0>>0)+e|0)|0)|0;F=u,G=Pl(b,b>>>0>>0?a+1|0:a,v,i),o[F+8>>2]=G;c=1}R=g+80|0;return c}function Qe(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0;g=R-80|0;R=g;f=-1;e=-1;a:{if((b|0)==-1){break a}e=b+1|0;f=(e>>>0)%3|0?e:b+ -2|0;e=b+ -1|0;if((b>>>0)%3){break a}e=b+2|0}h=o[a+36>>2];b=o[h>>2];b:{c:{d:{e:{f:{h=o[h+4>>2]-b>>2;i=f<<2;f=o[o[a+32>>2]+28>>2];j=o[i+f>>2];if(h>>>0<=j>>>0){break f}e=o[f+(e<<2)>>2];if(h>>>0<=e>>>0){break f}g:{h:{n=o[b+(j<<2)>>2];s=(n|0)>=(d|0);if(s){break h}f=o[b+(e<<2)>>2];if((f|0)>=(d|0)){break h}b=f<<3;x=o[(b|4)+c>>2];e=n<<3;q=o[(e|4)+c>>2];u=o[b+c>>2];w=o[c+e>>2];if(!((u|0)!=(w|0)|(q|0)!=(x|0))){o[a+8>>2]=w;o[a+12>>2]=q;break g}b=o[o[a+4>>2]+(d<<2)>>2];o[g+72>>2]=0;o[g+76>>2]=0;e=g- -64|0;o[e>>2]=0;o[e+4>>2]=0;o[g+56>>2]=0;o[g+60>>2]=0;e=o[a>>2];if(!p[e+84|0]){b=o[o[e+68>>2]+(b<<2)>>2]}Re(e,b,m[e+24|0],g+56|0);b=o[o[a+4>>2]+(n<<2)>>2];o[g+48>>2]=0;o[g+52>>2]=0;o[g+40>>2]=0;o[g+44>>2]=0;o[g+32>>2]=0;o[g+36>>2]=0;e=o[a>>2];if(!p[e+84|0]){b=o[o[e+68>>2]+(b<<2)>>2]}Re(e,b,m[e+24|0],g+32|0);b=o[o[a+4>>2]+(f<<2)>>2];o[g+24>>2]=0;o[g+28>>2]=0;o[g+16>>2]=0;o[g+20>>2]=0;o[g+8>>2]=0;o[g+12>>2]=0;e=o[a>>2];if(!p[e+84|0]){b=o[o[e+68>>2]+(b<<2)>>2]}Re(e,b,m[e+24|0],g+8|0);y=o[g+44>>2];b=o[g+16>>2];i=o[g+40>>2];e=i;f=o[g+20>>2]-(y+(b>>>0>>0)|0)|0;A=b-e|0;b=Ol(A,f,A,f);e=T;l=b;z=o[g+36>>2];b=o[g+8>>2];k=o[g+32>>2];j=k;h=o[g+12>>2]-(z+(b>>>0>>0)|0)|0;B=b-j|0;j=Ol(B,h,B,h);b=l+j|0;e=T+e|0;e=b>>>0>>0?e+1|0:e;t=b;E=o[g+52>>2];b=o[g+24>>2];l=o[g+48>>2];j=l;r=o[g+28>>2]-(E+(b>>>0>>0)|0)|0;C=b-j|0;j=Ol(C,r,C,r);b=t+j|0;e=T+e|0;v=b;j=b>>>0>>0?e+1|0:e;if(!(b|j)){break h}d=1;b=0;e=o[g+64>>2];c=o[g+68>>2]-((e>>>0>>0)+y|0)|0;e=e-i|0;n=e;s=c;c=Ol(A,f,e,c);e=T;t=c;i=o[g+56>>2];c=i-k|0;y=o[g+60>>2]-((i>>>0>>0)+z|0)|0;k=Ol(c,y,B,h);i=t+k|0;e=T+e|0;e=i>>>0>>0?e+1|0:e;t=i;i=o[g+72>>2];k=i-l|0;z=o[g+76>>2]-((i>>>0>>0)+E|0)|0;l=Ol(k,z,C,r);i=t+l|0;e=T+e|0;e=i>>>0>>0?e+1|0:e;l=i;i=e;f=Pl(Ol(l,e,A,f),T,v,j);s=s-(T+(n>>>0>>0)|0)|0;f=n-f|0;f=Ol(f,s,f,s);n=T;t=f;e=Pl(Ol(B,h,l,e),T,v,j);f=y-(T+(c>>>0>>0)|0)|0;c=c-e|0;f=Ol(c,f,c,f);c=t+f|0;e=T+n|0;e=c>>>0>>0?e+1|0:e;h=c;c=Pl(Ol(l,i,C,r),T,v,j);f=z-(T+(k>>>0>>0)|0)|0;c=k-c|0;f=Ol(c,f,c,f);c=h+f|0;e=T+e|0;f=Ol(c,c>>>0>>0?e+1|0:e,v,j);c=T;h=c;if(!c&f>>>0<=1|c>>>0<0){break e}r=f;c=h;while(1){e=b<<1|d>>>31;d=d<<1;b=e;k=!c&r>>>0>7|c>>>0>0;r=(c&3)<<30|r>>>2;c=c>>>2|0;if(k){continue}break}break d}e=a;if(s){if((d|0)<=0){o[a+8>>2]=0;o[a+12>>2]=0;break g}b=(d<<1)+ -2|0}else{b=n<<1}b=(b<<2)+c|0;o[e+8>>2]=o[b>>2];o[a+12>>2]=o[b+4>>2]}c=1;break b}Ok();D()}d=f;b=h;if(f-1){break c}}while(1){c=Ql(f,h,d,b)+d|0;e=b+T|0;e=c>>>0>>0?e+1|0:e;d=(e&1)<<31|c>>>1;b=e>>>1|0;c=Ol(d,b,d,b);e=T;if((h|0)==(e|0)&c>>>0>f>>>0|e>>>0>h>>>0){continue}break}}e=o[a+20>>2];c=0;if(!e){break b}h=e+ -1|0;r=o[o[a+16>>2]+(h>>>3&536870908)>>2];o[a+20>>2]=h;c=x;e=q;k=c-e|0;q=e>>31;x=(c>>31)-(q+(c>>>0>>0)|0)|0;c=Ol(l,i,k,x);f=T;q=Ol(e,q,v,j);c=q+c|0;e=T+f|0;e=c>>>0>>0?e+1|0:e;t=c;c=u;f=w;n=c-f|0;w=f>>31;q=(c>>31)-(w+(c>>>0>>0)|0)|0;c=Ol(d,b,n,q);u=c;c=r>>>(h&31)&1;s=c?0-u|0:u;h=t+s|0;r=e;e=T;e=r+(c?0-(e+(0>>0)|0)|0:e)|0;F=a,G=Pl(h,h>>>0>>0?e+1|0:e,v,j),o[F+12>>2]=G;e=Ol(l,i,n,q);h=T;u=a;f=Ol(f,w,v,j);a=f+e|0;e=T+h|0;e=a>>>0>>0?e+1|0:e;i=a;a=Ol(d,b,k,x);d=c?a:0-a|0;b=i+d|0;i=e;e=T;a=i+(c?e:0-((0>>0)+e|0)|0)|0;F=u,G=Pl(b,b>>>0>>0?a+1|0:a,v,j),o[F+8>>2]=G;c=1}R=g+80|0;return c}function Ua(a,b,c,d){var e=0,f=0,g=0,h=0,i=v(0),j=0;a:{b:{if(!d){break b}e=o[a+28>>2]+ -1|0;if(e>>>0>10){break b}c:{d:{e:{switch(e-1|0){default:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=m[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 0:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=p[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=n[b>>1];b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=q[b>>1];b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=o[b>>2];b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=o[b>>2];b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=o[b>>2];b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=o[b>>2];b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break c}e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){e=(f<<2)+d|0;i=s[b>>2];f:{if(v(w(i))>2]=h;b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}break c;case 8:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break d}e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){e=(f<<2)+d|0;j=t[b>>3];g:{if(w(j)<2147483648){h=~~j;break g}h=-2147483648}o[e>>2]=h;b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}break d;case 9:break e}}g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=p[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}ml((e<<2)+d|0,0,c-e<<2);break b}if((e|0)>=(c|0)){break b}break a}if((e|0)>=(c|0)){break b}break a}return g}ml((e<<2)+d|0,0,c-e<<2);return 1}function Qa(a,b,c,d){var e=0,f=0,g=0,h=0,i=v(0),j=0;a:{b:{if(!d){break b}e=o[a+28>>2]+ -1|0;if(e>>>0>10){break b}c:{d:{e:{switch(e-1|0){default:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=m[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 0:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=p[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=q[b>>1];b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=q[b>>1];b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=o[b>>2];b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=o[b>>2];b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=o[b>>2];b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=o[b>>2];b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break c}e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){e=(f<<1)+d|0;i=s[b>>2];f:{if(v(w(i))>1]=h;b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}break c;case 8:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break d}e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){e=(f<<1)+d|0;j=t[b>>3];g:{if(w(j)<2147483648){h=~~j;break g}h=-2147483648}n[e>>1]=h;b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}break d;case 9:break e}}g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=p[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}ml((e<<1)+d|0,0,c-e<<1);break b}if((e|0)>=(c|0)){break b}break a}if((e|0)>=(c|0)){break b}break a}return g}ml((e<<1)+d|0,0,c-e<<1);return 1}function Wa(a,b,c,d){var e=0,f=0,g=0,h=0,i=v(0),j=0;a:{b:{if(!d){break b}e=o[a+28>>2]+ -1|0;if(e>>>0>10){break b}c:{d:{e:{switch(e-1|0){default:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=m[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 0:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=p[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=n[b>>1];b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=q[b>>1];b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=o[b>>2];b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=o[b>>2];b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=o[b>>2];b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=o[b>>2];b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break c}e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){e=(f<<2)+d|0;i=s[b>>2];f:{if(i=v(0)){h=~~i>>>0;break f}h=0}o[e>>2]=h;b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}break c;case 8:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break d}e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){e=(f<<2)+d|0;j=t[b>>3];g:{if(j<4294967296&j>=0){h=~~j>>>0;break g}h=0}o[e>>2]=h;b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}break d;case 9:break e}}g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){o[(f<<2)+d>>2]=p[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}ml((e<<2)+d|0,0,c-e<<2);break b}if((e|0)>=(c|0)){break b}break a}if((e|0)>=(c|0)){break b}break a}return g}ml((e<<2)+d|0,0,c-e<<2);return 1}function Sa(a,b,c,d){var e=0,f=0,g=0,h=0,i=v(0),j=0;a:{b:{if(!d){break b}e=o[a+28>>2]+ -1|0;if(e>>>0>10){break b}c:{d:{e:{switch(e-1|0){default:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=m[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 0:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=p[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=q[b>>1];b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=q[b>>1];b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=o[b>>2];b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=o[b>>2];b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=o[b>>2];b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=o[b>>2];b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break c}e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){e=(f<<1)+d|0;i=s[b>>2];f:{if(i=v(0)){h=~~i>>>0;break f}h=0}n[e>>1]=h;b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}break c;case 8:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break d}e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){e=(f<<1)+d|0;j=t[b>>3];g:{if(j<4294967296&j>=0){h=~~j>>>0;break g}h=0}n[e>>1]=h;b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}break d;case 9:break e}}g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){n[(f<<1)+d>>1]=p[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}ml((e<<1)+d|0,0,c-e<<1);break b}if((e|0)>=(c|0)){break b}break a}if((e|0)>=(c|0)){break b}break a}return g}ml((e<<1)+d|0,0,c-e<<1);return 1}function Pg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,n=0,r=0,s=0,t=0,v=0,w=0;e=R-80|0;R=e;a:{b:{v=o[a+4>>2];c=o[v+32>>2];n=o[c+8>>2];j=o[c+16>>2];k=o[c+12>>2];d=k;g=o[c+20>>2];h=g;c:{if((d|0)<(h|0)?1:(d|0)<=(h|0)?n>>>0>j>>>0?0:1:0){break c}s=o[c>>2];i=p[s+j|0];d=g;t=j+1|0;if(t>>>0<1){d=d+1|0}h=c;o[c+16>>2]=t;o[c+20>>2]=d;if((k|0)<(d|0)?1:(k|0)<=(d|0)?n>>>0>t>>>0?0:1:0){break c}t=p[t+s|0];d=g;w=j+2|0;if(w>>>0<2){d=d+1|0}o[c+16>>2]=w;o[h+20>>2]=d;h=i<<24>>24;d:{if((h|0)>=0){r=o[a+216>>2];if((o[a+220>>2]-r|0)/144>>>0<=i>>>0){break c}r=r+u(i,144)|0;if(o[r>>2]<=-1){break d}break c}if(o[a+212>>2]>-1){break c}r=a+212|0}o[r>>2]=b;e:{f:{r=q[v+36>>1];g:{if((r<<24|r<<8&16711680)>>>16>>>0>=258){if((k|0)<(d|0)?1:(k|0)<=(d|0)?n>>>0>w>>>0?0:1:0){break c}d=p[s+w|0];j=j+3|0;if(j>>>0<3){g=g+1|0}o[c+16>>2]=j;o[c+20>>2]=g;if(!t){break g}if(d){break c}break f}if(t){break f}d=0}if((h|0)<=-1){c=a+184|0}else{c=o[a+216>>2]+u(i,144)|0;m[c+100|0]=0;c=c+104|0}if(d>>>0>1){break c}h:{if(d-1){Qg(e+16|0,a,c);break h}Rg(e+16|0,a,c)}c=o[e+16>>2];if(!c){break c}break e}if((h|0)<0){break c}g=o[v+44>>2];f=o[a+216>>2];c=yk(80);o[c+12>>2]=0;o[c+16>>2]=0;o[c>>2]=9700;o[c+4>>2]=0;o[c+76>>2]=0;o[c+68>>2]=g;o[c+64>>2]=0;o[c+56>>2]=0;o[c+60>>2]=0;o[c+8>>2]=8568;d=c+20|0;o[d>>2]=0;o[d+4>>2]=0;j=c+28|0;h=j;o[h>>2]=0;o[h+4>>2]=0;o[c+36>>2]=0;o[c+40>>2]=0;h=c+44|0;o[h>>2]=0;o[h+4>>2]=0;o[c+52>>2]=0;f=f+u(i,144)|0;i=f+104|0;o[c+72>>2]=i;k=e+56|0;o[k>>2]=0;o[k+4>>2]=0;o[e+48>>2]=0;o[e+52>>2]=0;v=e+32|0;n=v;o[n>>2]=0;o[n+4>>2]=0;o[e+72>>2]=0;o[e+40>>2]=0;o[e+44>>2]=0;o[e+24>>2]=0;o[e+28>>2]=0;o[e+64>>2]=0;o[e+68>>2]=0;o[e+16>>2]=8568;n=f+4|0;o[e+20>>2]=n;f=o[f+68>>2];s=o[f>>2];f=o[f+4>>2];m[e+79|0]=0;eb(e+40|0,(f-s>>2>>>0)/3|0,e+79|0);f=o[e+20>>2];s=o[f+56>>2];f=o[f+52>>2];m[e+79|0]=0;eb(e+52|0,s-f>>2,e+79|0);o[e+36>>2]=c;o[v>>2]=g;g=e+28|0;o[g>>2]=i;o[e+24>>2]=n;o[j>>2]=c;f=o[g+4>>2];o[d>>2]=o[g>>2];o[d+4>>2]=f;g=o[e+24>>2];o[c+12>>2]=o[e+20>>2];o[c+16>>2]=g;g=c;f=o[e+44>>2];if(f){d=c+32|0;i:{if(f>>>0<=o[c+40>>2]<<5>>>0){i=f+ -1>>>5|0;f=o[d>>2];break i}d=o[d>>2];if(d){jl(d);o[c+40>>2]=0;o[c+32>>2]=0;o[c+36>>2]=0;f=o[e+44>>2]}if((f|0)<=-1){break b}i=f+ -1>>>5|0;d=i+1|0;f=yk(d<<2);o[c+40>>2]=d;o[c+36>>2]=0;o[c+32>>2]=f}nl(f,o[e+40>>2],(i<<2)+4|0);d=o[e+44>>2]}else{d=0}o[g+36>>2]=d;g=c;f=o[k>>2];if(f){j:{if(f>>>0<=o[c+52>>2]<<5>>>0){d=f+ -1>>>5|0;f=o[h>>2];break j}d=o[h>>2];if(d){jl(d);o[c+52>>2]=0;o[c+44>>2]=0;o[c+48>>2]=0;f=o[e+56>>2]}if((f|0)<=-1){break a}d=f+ -1>>>5|0;h=d+1|0;f=yk(h<<2);o[c+52>>2]=h;o[c+48>>2]=0;o[c+44>>2]=f}nl(f,o[e+52>>2],(d<<2)+4|0);h=o[e+56>>2]}else{h=0}o[g+48>>2]=h;yd(c+56|0,o[e+64>>2],o[e+68>>2]);o[e+16>>2]=8568;g=o[e+64>>2];if(g){o[e+68>>2]=g;jl(g)}o[e+16>>2]=8820;g=o[e+52>>2];if(g){jl(g)}g=o[e+40>>2];if(!g){break e}jl(g)}g=yk(64);o[e+8>>2]=c;Vd(g,e+8|0);c=o[e+8>>2];o[e+8>>2]=0;if(c){l[o[o[c>>2]+4>>2]](c)}if((b|0)>=0){a=o[a+4>>2];f=a+8|0;c=o[a+12>>2];i=o[a+8>>2];d=c-i>>2;k:{if((d|0)>(b|0)){break k}h=b+1|0;if(d>>>0<=b>>>0){Sg(f,h-d|0);break k}if(h>>>0>=d>>>0){break k}h=i+(h<<2)|0;if((h|0)!=(c|0)){while(1){c=c+ -4|0;d=o[c>>2];o[c>>2]=0;if(d){l[o[o[d>>2]+4>>2]](d)}if((c|0)!=(h|0)){continue}break}}o[a+12>>2]=h}b=o[f>>2]+(b<<2)|0;a=o[b>>2];o[b>>2]=g;f=1;if(!a){break c}l[o[o[a>>2]+4>>2]](a);break c}l[o[o[g>>2]+4>>2]](g);f=0}R=e+80|0;return f|0}Nk();D()}Nk();D()}function La(a,b,c,d){var e=0,f=0,g=0,h=0,i=v(0),j=0;a:{b:{if(!d){break b}e=o[a+28>>2]+ -1|0;if(e>>>0>10){break b}c:{d:{e:{switch(e-1|0){default:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=p[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 0:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=p[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=p[b|0];b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=p[b|0];b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=o[b>>2];b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=o[b>>2];b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=o[b>>2];b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=o[b>>2];b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break c}e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){e=d+f|0;i=s[b>>2];f:{if(v(w(i))(c|0)?c:e)<<24>>24){continue}break}break c;case 8:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break d}e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){e=d+f|0;j=t[b>>3];g:{if(w(j)<2147483648){h=~~j;break g}h=-2147483648}m[e|0]=h;b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}break d;case 9:break e}}g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=p[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}ml(d+e|0,0,c-e|0);break b}if((e|0)>=(c|0)){break b}break a}if((e|0)>=(c|0)){break b}break a}return g}ml(d+e|0,0,c-e|0);return 1}function Na(a,b,c,d){var e=0,f=0,g=0,h=0,i=v(0),j=0;a:{b:{if(!d){break b}e=o[a+28>>2]+ -1|0;if(e>>>0>10){break b}c:{d:{e:{switch(e-1|0){default:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=p[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 0:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=p[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=p[b|0];b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=p[b|0];b=b+2|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=o[b>>2];b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=o[b>>2];b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=o[b>>2];b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=o[b>>2];b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break c}e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){e=d+f|0;i=s[b>>2];f:{if(i=v(0)){h=~~i>>>0;break f}h=0}m[e|0]=h;b=b+4|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}break c;case 8:g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break d}e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){e=d+f|0;j=t[b>>3];g:{if(j<4294967296&j>=0){h=~~j>>>0;break g}h=0}m[e|0]=h;b=b+8|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}break d;case 9:break e}}g=1;e=m[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=o[o[a>>2]>>2];b=o[a+48>>2]+Ol(o[a+40>>2],o[a+44>>2],b,0)|0;b=e+b|0;while(1){m[d+f|0]=p[b|0];b=b+1|0;f=f+1|0;e=m[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}ml(d+e|0,0,c-e|0);break b}if((e|0)>=(c|0)){break b}break a}if((e|0)>=(c|0)){break b}break a}return g}ml(d+e|0,0,c-e|0);return 1}function jl(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{if(!a){break a}d=a+ -8|0;c=o[a+ -4>>2];a=c&-8;f=d+a|0;b:{if(c&1){break b}if(!(c&3)){break a}c=o[d>>2];d=d-c|0;if(d>>>0>>0<=255){e=o[d+8>>2];c=c>>>3|0;b=o[d+12>>2];if((b|0)==(e|0)){i=13332,j=o[3333]&Sl(c),o[i>>2]=j;break b}o[e+12>>2]=b;o[b+8>>2]=e;break b}h=o[d+24>>2];c=o[d+12>>2];c:{if((c|0)!=(d|0)){b=o[d+8>>2];o[b+12>>2]=c;o[c+8>>2]=b;break c}d:{e=d+20|0;b=o[e>>2];if(b){break d}e=d+16|0;b=o[e>>2];if(b){break d}c=0;break c}while(1){g=e;c=b;e=c+20|0;b=o[e>>2];if(b){continue}e=c+16|0;b=o[c+16>>2];if(b){continue}break}o[g>>2]=0}if(!h){break b}e=o[d+28>>2];b=(e<<2)+13636|0;e:{if(o[b>>2]==(d|0)){o[b>>2]=c;if(c){break e}i=13336,j=o[3334]&Sl(e),o[i>>2]=j;break b}o[h+(o[h+16>>2]==(d|0)?16:20)>>2]=c;if(!c){break b}}o[c+24>>2]=h;b=o[d+16>>2];if(b){o[c+16>>2]=b;o[b+24>>2]=c}b=o[d+20>>2];if(!b){break b}o[c+20>>2]=b;o[b+24>>2]=c;break b}c=o[f+4>>2];if((c&3)!=3){break b}o[3335]=a;o[f+4>>2]=c&-2;o[d+4>>2]=a|1;o[a+d>>2]=a;return}if(f>>>0<=d>>>0){break a}c=o[f+4>>2];if(!(c&1)){break a}f:{if(!(c&2)){if((f|0)==o[3339]){o[3339]=d;a=o[3336]+a|0;o[3336]=a;o[d+4>>2]=a|1;if(o[3338]!=(d|0)){break a}o[3335]=0;o[3338]=0;return}if((f|0)==o[3338]){o[3338]=d;a=o[3335]+a|0;o[3335]=a;o[d+4>>2]=a|1;o[a+d>>2]=a;return}a=(c&-8)+a|0;g:{if(c>>>0<=255){b=o[f+8>>2];c=c>>>3|0;e=o[f+12>>2];if((b|0)==(e|0)){i=13332,j=o[3333]&Sl(c),o[i>>2]=j;break g}o[b+12>>2]=e;o[e+8>>2]=b;break g}h=o[f+24>>2];c=o[f+12>>2];h:{if((f|0)!=(c|0)){b=o[f+8>>2];o[b+12>>2]=c;o[c+8>>2]=b;break h}i:{e=f+20|0;b=o[e>>2];if(b){break i}e=f+16|0;b=o[e>>2];if(b){break i}c=0;break h}while(1){g=e;c=b;e=c+20|0;b=o[e>>2];if(b){continue}e=c+16|0;b=o[c+16>>2];if(b){continue}break}o[g>>2]=0}if(!h){break g}e=o[f+28>>2];b=(e<<2)+13636|0;j:{if((f|0)==o[b>>2]){o[b>>2]=c;if(c){break j}i=13336,j=o[3334]&Sl(e),o[i>>2]=j;break g}o[h+((f|0)==o[h+16>>2]?16:20)>>2]=c;if(!c){break g}}o[c+24>>2]=h;b=o[f+16>>2];if(b){o[c+16>>2]=b;o[b+24>>2]=c}b=o[f+20>>2];if(!b){break g}o[c+20>>2]=b;o[b+24>>2]=c}o[d+4>>2]=a|1;o[a+d>>2]=a;if(o[3338]!=(d|0)){break f}o[3335]=a;return}o[f+4>>2]=c&-2;o[d+4>>2]=a|1;o[a+d>>2]=a}if(a>>>0<=255){a=a>>>3|0;c=(a<<3)+13372|0;b=o[3333];a=1<>2]}o[c+8>>2]=d;o[a+12>>2]=d;o[d+12>>2]=c;o[d+8>>2]=a;return}o[d+16>>2]=0;o[d+20>>2]=0;c=d;e=a>>>8|0;b=0;l:{if(!e){break l}b=31;if(a>>>0>16777215){break l}b=e;e=e+1048320>>>16&8;b=b<>>16&4;b=b<>>16&2;b=(b<>>15|0)-(g|(e|h))|0;b=(b<<1|a>>>b+21&1)+28|0}o[c+28>>2]=b;g=(b<<2)+13636|0;m:{n:{e=o[3334];c=1<>2]=d;o[d+24>>2]=g;break o}e=a<<((b|0)==31?0:25-(b>>>1|0)|0);c=o[g>>2];while(1){b=c;if((o[c+4>>2]&-8)==(a|0)){break n}c=e>>>29|0;e=e<<1;g=(b+(c&4)|0)+16|0;c=o[g>>2];if(c){continue}break}o[g>>2]=d;o[d+24>>2]=b}o[d+12>>2]=d;o[d+8>>2]=d;break m}a=o[b+8>>2];o[a+12>>2]=d;o[b+8>>2]=d;o[d+24>>2]=0;o[d+12>>2]=b;o[d+8>>2]=a}a=o[3341]+ -1|0;o[3341]=a;if(a){break a}d=13788;while(1){a=o[d>>2];d=a+8|0;if(a){continue}break}o[3341]=-1}}function Xi(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0;o[a+56>>2]=o[a+52>>2];o[a+44>>2]=o[a+40>>2];a:{b:{c:{d=o[a+64>>2];if(o[d+28>>2]!=o[d+24>>2]){m=a+40|0;n=a+52|0;while(1){e=c;j=o[o[d+24>>2]+(l<<2)>>2];d:{if((j|0)==-1){break d}c=o[a+56>>2];b=o[a+60>>2];e:{if((c|0)!=(b|0)){o[c>>2]=e;o[a+56>>2]=c+4;break e}h=o[n>>2];i=c-h|0;f=i>>2;g=f+1|0;if(g>>>0>=1073741824){break c}d=b-h|0;b=d>>1;d=d>>2>>>0<536870911?b>>>0>>0?g:b:1073741823;c=0;f:{if(!d){break f}if(d>>>0>=1073741824){break a}c=yk(d<<2)}b=c+(f<<2)|0;o[b>>2]=e;d=c+(d<<2)|0;b=b+4|0;if((i|0)>=1){ll(c,h,i)}o[a+60>>2]=d;o[a+56>>2]=b;o[a+52>>2]=c;if(!h){break e}jl(h)}g:{if(!(o[o[a+12>>2]+(l>>>3&536870908)>>2]>>>(l&31)&1)){break g}c=j+1|0;c=(c>>>0)%3|0?c:j+ -2|0;if((c|0)==-1|o[o[a>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break g}b=o[o[o[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)==-1){break g}while(1){c=d+1|0;j=d;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|o[o[a>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break g}b=o[o[o[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)!=-1){continue}break}}o[o[a+28>>2]+(j<<2)>>2]=e;c=o[a+44>>2];b=o[a+48>>2];h:{if((c|0)!=(b|0)){o[c>>2]=j;o[a+44>>2]=c+4;break h}h=o[m>>2];i=c-h|0;f=i>>2;g=f+1|0;if(g>>>0>=1073741824){break b}d=b-h|0;b=d>>1;d=d>>2>>>0<536870911?b>>>0>>0?g:b:1073741823;c=0;i:{if(!d){break i}if(d>>>0>=1073741824){break a}c=yk(d<<2)}b=c+(f<<2)|0;o[b>>2]=j;d=c+(d<<2)|0;b=b+4|0;if((i|0)>=1){ll(c,h,i)}o[a+48>>2]=d;o[a+44>>2]=b;o[a+40>>2]=c;if(!h){break h}jl(h)}c=e+1|0;b=((j>>>0)%3|0?-1:2)+j|0;if((b|0)==-1){break d}b=o[o[o[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1|(d|0)==(j|0)){break d}while(1){b=d+1|0;b=(b>>>0)%3|0?b:d+ -2|0;if(o[o[a>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){e=o[a+56>>2];b=o[a+60>>2];j:{if((e|0)!=(b|0)){o[e>>2]=c;o[a+56>>2]=e+4;break j}k=o[n>>2];h=e-k|0;g=h>>2;i=g+1|0;if(i>>>0>=1073741824){break c}f=b-k|0;b=f>>1;f=f>>2>>>0<536870911?b>>>0>>0?i:b:1073741823;e=0;k:{if(!f){break k}if(f>>>0>=1073741824){break a}e=yk(f<<2)}b=e+(g<<2)|0;o[b>>2]=c;f=e+(f<<2)|0;b=b+4|0;if((h|0)>=1){ll(e,k,h)}o[a+60>>2]=f;o[a+56>>2]=b;o[a+52>>2]=e;if(!k){break j}jl(k)}b=c+1|0;e=o[a+44>>2];f=o[a+48>>2];l:{if((e|0)!=(f|0)){o[e>>2]=d;o[a+44>>2]=e+4;break l}i=o[m>>2];k=e-i|0;e=k>>2;h=e+1|0;if(h>>>0>=1073741824){break b}p=e<<2;g=f-i|0;f=g>>1;g=g>>2>>>0<536870911?f>>>0>>0?h:f:1073741823;e=0;m:{if(!g){break m}if(g>>>0>=1073741824){break a}e=yk(g<<2)}f=p+e|0;o[f>>2]=d;g=e+(g<<2)|0;f=f+4|0;if((k|0)>=1){ll(e,i,k)}o[a+48>>2]=g;o[a+44>>2]=f;o[a+40>>2]=e;if(!i){break l}jl(i)}e=c;c=b}o[o[a+28>>2]+(d<<2)>>2]=e;b=((d>>>0)%3|0?-1:2)+d|0;if((b|0)==-1){break d}b=o[o[o[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1){break d}if((d|0)!=(j|0)){continue}break}}l=l+1|0;d=o[a+64>>2];if(l>>>0>2]-o[d+24>>2]>>2>>>0){continue}break}}return}Nk();D()}Nk();D()}db(10720);D()}function nf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0;f=R-96|0;R=f;e=o[a+16>>2];m[f+92|0]=1;o[f+88>>2]=b;o[f+84>>2]=b;o[f+80>>2]=e;d=-1;d=(b|0)!=-1?o[o[e>>2]+(b<<2)>>2]:d;g=o[a+20>>2];e=o[g>>2];a:{b:{c:{d:{if(o[g+4>>2]-e>>2>>>0>d>>>0){e=o[o[a+8>>2]+(o[e+(d<<2)>>2]<<2)>>2];d=o[a+4>>2];if(!p[d+84|0]){e=o[o[d+68>>2]+(e<<2)>>2]}o[f+72>>2]=0;o[f+76>>2]=0;g=f- -64|0;o[g>>2]=0;o[g+4>>2]=0;o[f+56>>2]=0;o[f+60>>2]=0;Re(d,e,m[d+24|0],f+56|0);if((b|0)==-1){break a}d=b+1|0;g=(d>>>0)%3|0?d:b+ -2|0;t=((b>>>0)%3|0?-1:2)+b|0;j=!o[a+28>>2];A=f+48|0;B=f+40|0;while(1){e=g;d=t;e:{if(j){break e}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3){break e}d=b+2|0}b=-1;b=(e|0)!=-1?o[o[o[a+16>>2]>>2]+(e<<2)>>2]:b;j=o[a+20>>2];e=o[j>>2];if(o[j+4>>2]-e>>2>>>0<=b>>>0){break d}e=o[o[a+8>>2]+(o[e+(b<<2)>>2]<<2)>>2];b=o[a+4>>2];if(!p[b+84|0]){e=o[o[b+68>>2]+(e<<2)>>2]}o[A>>2]=0;o[A+4>>2]=0;o[B>>2]=0;o[B+4>>2]=0;o[f+32>>2]=0;o[f+36>>2]=0;Re(b,e,m[b+24|0],f+32|0);b=-1;b=(d|0)!=-1?o[o[o[a+16>>2]>>2]+(d<<2)>>2]:b;e=o[a+20>>2];d=o[e>>2];if(o[e+4>>2]-d>>2>>>0<=b>>>0){break c}d=o[o[a+8>>2]+(o[d+(b<<2)>>2]<<2)>>2];b=o[a+4>>2];if(!p[b+84|0]){d=o[o[b+68>>2]+(d<<2)>>2]}e=f+24|0;o[e>>2]=0;o[e+4>>2]=0;j=f+16|0;k=j;o[k>>2]=0;o[k+4>>2]=0;o[f+8>>2]=0;o[f+12>>2]=0;Re(b,d,m[b+24|0],f+8|0);d=o[f+8>>2];b=o[f+56>>2];u=d-b|0;v=o[f+60>>2];k=o[f+12>>2]-(v+(d>>>0>>0)|0)|0;w=o[f+40>>2];d=o[f+64>>2];C=w-d|0;x=o[f+68>>2];w=o[f+44>>2]-(x+(w>>>0>>0)|0)|0;y=Ol(u,k,C,w);z=h-y|0;l=l-(T+(h>>>0>>0)|0)|0;h=o[j>>2];y=h-d|0;j=o[j+4>>2]-((h>>>0>>0)+x|0)|0;h=o[f+32>>2];x=h-b|0;v=o[f+36>>2]-((h>>>0>>0)+v|0)|0;d=Ol(y,j,x,v);h=d+z|0;b=T+l|0;b=h>>>0>>0?b+1|0:b;l=b;d=i;q=u;E=k;i=o[f+48>>2];b=o[f+72>>2];k=i-b|0;u=o[f+76>>2];z=o[f+52>>2]-(u+(i>>>0>>0)|0)|0;q=Ol(q,E,k,z);i=d+q|0;d=T+r|0;d=i>>>0>>0?d+1|0:d;r=i;i=o[e>>2];q=i-b|0;b=o[e+4>>2]-((i>>>0>>0)+u|0)|0;e=Ol(q,b,x,v);i=r-e|0;r=d-(T+(r>>>0>>0)|0)|0;d=Ol(y,j,k,z);e=n-d|0;s=s-(T+(n>>>0>>0)|0)|0;d=Ol(q,b,C,w);n=d+e|0;b=T+s|0;b=n>>>0>>0?b+1|0:b;s=b;of(f+80|0);k=o[a+28>>2];j=!k;b=o[f+88>>2];if((b|0)!=-1){continue}break}b=r;d=b>>31;a=b>>31;b=a+b|0;g=d+i|0;if(g>>>0>>0){b=b+1|0}d=d^g;j=a^b;b=s;a=b>>31;b=b>>31;g=a;t=s+a|0;e=b+n|0;if(e>>>0>>0){t=t+1|0}a=b^e;e=g^t;f:{if((l|0)<-1?1:(l|0)<=-1?h>>>0>4294967295?0:1:0){b=h;g=a+(d-b|0)|0;b=e+(j-((d>>>0>>0)+l|0)|0)|0;d=g;a=d>>>0>>0?b+1|0:b;if(!k){break f}break b}b=j+l|0;g=d;d=h;g=g+d|0;if(g>>>0>>0){b=b+1|0}d=a;g=d+g|0;a=b+e|0;a=g>>>0>>0?a+1|0:a;d=g;if(k){break b}}if((d|0)<536870913){break a}a=((a&536870911)<<3|d>>>29)&7;b=0;h=Pl(h,l,a,b);i=Pl(i,r,a,b);n=Pl(n,s,a,b);break a}Ok();D()}Ok();D()}Ok();D()}if((a|0)<0?1:(a|0)<=0?d>>>0>=536870913?0:1:0){break a}b=a>>>29|0;a=(a&536870911)<<3|d>>>29;h=Pl(h,l,a,b);i=Pl(i,r,a,b);n=Pl(n,s,a,b)}o[c+8>>2]=h;o[c+4>>2]=i;o[c>>2]=n;R=f+96|0}function Uh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if((b|0)==-1){return 1}i=1;d=(b>>>0)/3|0;a:{if(o[o[a+24>>2]+(d>>>3&268435452)>>2]>>>(d&31)&1){break a}c=o[a+48>>2];o[a+52>>2]=c;b:{if((c|0)!=o[a+56>>2]){o[c>>2]=b;o[a+52>>2]=c+4;break b}e=yk(4);o[e>>2]=b;f=e+4|0;o[a+56>>2]=f;o[a+52>>2]=f;o[a+48>>2]=e;if(!c){break b}jl(c)}i=0;f=o[o[a+4>>2]+28>>2];c=b+1|0;e=(c>>>0)%3|0?c:b+ -2|0;c=o[f+(e<<2)>>2];if((c|0)==-1){break a}h=(b-u(d,3)|0?-1:2)+b|0;d=o[f+(h<<2)>>2];if((d|0)==-1){break a}b=o[a+36>>2];f=b+(c>>>3&536870908)|0;i=o[f>>2];g=1<<(c&31);if(!(i&g)){o[f>>2]=g|i;Eh(a+8|0,c,e);b=o[a+36>>2]}b=(d>>>3&536870908)+b|0;c=o[b>>2];e=1<<(d&31);if(!(c&e)){o[b>>2]=c|e;Eh(a+8|0,d,h)}c=o[a+52>>2];if((c|0)==o[a+48>>2]){return 1}j=a+48|0;k=a+8|0;while(1){c=c+ -4|0;b=o[c>>2];d=(b>>>0)/3|0;c:{d:{e:{if((b|0)==-1){break e}e=o[a+24>>2]+(d>>>3&268435452)|0;f=o[e>>2];d=1<<(d&31);if(f&d){break e}o[e>>2]=d|f;i=0;f=o[a+4>>2];d=o[o[f+28>>2]+(b<<2)>>2];if((d|0)==-1){break a}f:{while(1){g:{c=b;b=o[a+36>>2]+(d>>>3&536870908)|0;e=o[b>>2];h=1<<(d&31);h:{i:{if(e&h){break i}g=o[o[f+40>>2]+(d<<2)>>2];if((g|0)!=-1){j:{l=g+1|0;g=(l>>>0)%3|0?l:g+ -2|0;if((g|0)==-1|o[o[f>>2]+(g>>>3&536870908)>>2]>>>(g&31)&1){break j}f=o[o[o[f+64>>2]+12>>2]+(g<<2)>>2];if((f|0)==-1){break j}o[b>>2]=e|h;Eh(k,d,c);b=f+1|0;if((((b>>>0)%3|0?b:f+ -2|0)|0)==-1){break i}b=-1;f=o[a+4>>2];k:{if((c|0)==-1){break k}d=c+1|0;c=(d>>>0)%3|0?d:c+ -2|0;if((c|0)==-1|o[o[f>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break k}b=o[o[o[f+64>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;break h}}o[b>>2]=e|h;Eh(k,d,c)}if((c|0)==-1){break d}f=o[a+4>>2];d=-1;e=c+1|0;e=(e>>>0)%3|0?e:c+ -2|0;b=-1;l:{if((e|0)==-1){break l}b=-1;if(o[o[f>>2]+(e>>>3&536870908)>>2]>>>(e&31)&1){break l}b=o[o[o[f+64>>2]+12>>2]+(e<<2)>>2]}c=c+((c>>>0)%3|0?-1:2)|0;if(!((c|0)==-1|o[o[f>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1)){d=o[o[o[f+64>>2]+12>>2]+(c<<2)>>2]}h=(d|0)==-1;e=(d>>>0)/3|0;c=(b>>>0)/3|0;m:{g=(b|0)==-1;n:{if(!g){g=g?-1:c;g=o[o[a+24>>2]+(g>>>3&536870908)>>2]&1<<(g&31);if(h){break m}g=(g|0)!=0;break n}c=-1;g=1;if((d|0)==-1){break d}}h=h?-1:e;h=o[o[a+24>>2]+(h>>>3&536870908)>>2]&1<<(h&31);if(g){c=e;b=d;if(!h){break h}break d}if(h){break h}c=o[a+52>>2];o[c+ -4>>2]=d;h=o[a+56>>2];if((h|0)!=(c|0)){o[c>>2]=b;c=c+4|0;break e}e=o[j>>2];f=c-e|0;i=f>>2;c=i+1|0;if(c>>>0>=1073741824){break g}h=h-e|0;g=h>>1;c=h>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;d=0;o:{if(!c){break o}if(c>>>0>=1073741824){break f}d=yk(c<<2)}h=d+(i<<2)|0;o[h>>2]=b;b=d+(c<<2)|0;c=h+4|0;if((f|0)>=1){ll(d,e,f)}o[a+56>>2]=b;o[a+52>>2]=c;o[a+48>>2]=d;if(!e){break c}jl(e);c=o[a+52>>2];break c}if(g){break d}}d=o[a+24>>2]+(c>>>3&536870908)|0;o[d>>2]=o[d>>2]|1<<(c&31);d=o[o[f+28>>2]+(b<<2)>>2];if((d|0)!=-1){continue}break a}break}Nk();D()}db(8832);D()}o[a+52>>2]=c;break c}c=o[a+52>>2]+ -4|0;o[a+52>>2]=c}i=1;if(o[j>>2]!=(c|0)){continue}break}}return i}function Ze(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0;e=R-96|0;R=e;d=o[a+16>>2];m[e+92|0]=1;o[e+88>>2]=b;o[e+84>>2]=b;o[e+80>>2]=d;g=o[a+20>>2];f=o[g>>2];d=o[o[d+28>>2]+(b<<2)>>2];a:{b:{c:{d:{if(o[g+4>>2]-f>>2>>>0>d>>>0){d=o[o[a+8>>2]+(o[f+(d<<2)>>2]<<2)>>2];f=o[a+4>>2];if(!p[f+84|0]){d=o[o[f+68>>2]+(d<<2)>>2]}o[e+72>>2]=0;o[e+76>>2]=0;g=e- -64|0;o[g>>2]=0;o[g+4>>2]=0;o[e+56>>2]=0;o[e+60>>2]=0;Re(f,d,m[f+24|0],e+56|0);if((b|0)==-1){break a}d=b+1|0;g=(d>>>0)%3|0?d:b+ -2|0;t=((b>>>0)%3|0?-1:2)+b|0;j=!o[a+28>>2];A=e+48|0;B=e+40|0;while(1){f=g;d=t;e:{if(j){break e}d=b+1|0;f=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3){break e}d=b+2|0}j=o[a+20>>2];b=o[j>>2];f=o[o[o[a+16>>2]+28>>2]+(f<<2)>>2];if(o[j+4>>2]-b>>2>>>0<=f>>>0){break d}f=o[o[a+8>>2]+(o[b+(f<<2)>>2]<<2)>>2];b=o[a+4>>2];if(!p[b+84|0]){f=o[o[b+68>>2]+(f<<2)>>2]}o[A>>2]=0;o[A+4>>2]=0;o[B>>2]=0;o[B+4>>2]=0;o[e+32>>2]=0;o[e+36>>2]=0;Re(b,f,m[b+24|0],e+32|0);f=o[a+20>>2];b=o[f>>2];d=o[o[o[a+16>>2]+28>>2]+(d<<2)>>2];if(o[f+4>>2]-b>>2>>>0<=d>>>0){break c}f=o[o[a+8>>2]+(o[b+(d<<2)>>2]<<2)>>2];b=o[a+4>>2];if(!p[b+84|0]){f=o[o[b+68>>2]+(f<<2)>>2]}j=e+24|0;d=j;o[d>>2]=0;o[d+4>>2]=0;k=e+16|0;d=k;o[d>>2]=0;o[d+4>>2]=0;o[e+8>>2]=0;o[e+12>>2]=0;Re(b,f,m[b+24|0],e+8|0);d=o[e+8>>2];b=o[e+56>>2];u=d-b|0;v=o[e+60>>2];f=o[e+12>>2]-(v+(d>>>0>>0)|0)|0;w=o[e+40>>2];d=o[e+64>>2];C=w-d|0;x=o[e+68>>2];w=o[e+44>>2]-(x+(w>>>0>>0)|0)|0;y=Ol(u,f,C,w);z=h-y|0;l=l-(T+(h>>>0>>0)|0)|0;h=o[k>>2];y=h-d|0;k=o[k+4>>2]-((h>>>0>>0)+x|0)|0;h=o[e+32>>2];x=h-b|0;v=o[e+36>>2]-((h>>>0>>0)+v|0)|0;d=Ol(y,k,x,v);h=d+z|0;b=T+l|0;b=h>>>0>>0?b+1|0:b;l=b;d=i;q=u;E=f;i=o[e+48>>2];b=o[e+72>>2];f=i-b|0;u=o[e+76>>2];z=o[e+52>>2]-(u+(i>>>0>>0)|0)|0;q=Ol(q,E,f,z);i=d+q|0;d=T+r|0;d=i>>>0>>0?d+1|0:d;r=i;i=o[j>>2];q=i-b|0;b=o[j+4>>2]-((i>>>0>>0)+u|0)|0;j=Ol(q,b,x,v);i=r-j|0;r=d-(T+(r>>>0>>0)|0)|0;d=Ol(y,k,f,z);f=n-d|0;s=s-(T+(n>>>0>>0)|0)|0;d=Ol(q,b,C,w);n=d+f|0;b=T+s|0;b=n>>>0>>0?b+1|0:b;s=b;$e(e+80|0);k=o[a+28>>2];j=!k;b=o[e+88>>2];if((b|0)!=-1){continue}break}b=r;d=b>>31;a=b>>31;b=a+b|0;g=d+i|0;if(g>>>0>>0){b=b+1|0}d=d^g;j=a^b;b=s;a=b>>31;b=b>>31;g=a;t=s+a|0;f=b+n|0;if(f>>>0>>0){t=t+1|0}a=b^f;f=g^t;f:{if((l|0)<-1?1:(l|0)<=-1?h>>>0>4294967295?0:1:0){b=h;g=a+(d-b|0)|0;b=f+(j-((d>>>0>>0)+l|0)|0)|0;d=g;a=d>>>0>>0?b+1|0:b;if(!k){break f}break b}b=j+l|0;g=d;d=h;g=g+d|0;if(g>>>0>>0){b=b+1|0}d=a;g=d+g|0;a=b+f|0;a=g>>>0>>0?a+1|0:a;d=g;if(k){break b}}if((d|0)<536870913){break a}a=((a&536870911)<<3|d>>>29)&7;b=0;h=Pl(h,l,a,b);i=Pl(i,r,a,b);n=Pl(n,s,a,b);break a}Ok();D()}Ok();D()}Ok();D()}if((a|0)<0?1:(a|0)<=0?d>>>0>=536870913?0:1:0){break a}b=a>>>29|0;a=(a&536870911)<<3|d>>>29;h=Pl(h,l,a,b);i=Pl(i,r,a,b);n=Pl(n,s,a,b)}o[c+8>>2]=h;o[c+4>>2]=i;o[c>>2]=n;R=e+96|0}function Oh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if((b|0)==-1){return 1}i=1;d=(b>>>0)/3|0;a:{if(o[o[a+24>>2]+(d>>>3&268435452)>>2]>>>(d&31)&1){break a}c=o[a+48>>2];o[a+52>>2]=c;b:{if((c|0)!=o[a+56>>2]){o[c>>2]=b;o[a+52>>2]=c+4;break b}e=yk(4);o[e>>2]=b;g=e+4|0;o[a+56>>2]=g;o[a+52>>2]=g;o[a+48>>2]=e;if(!c){break b}jl(c)}c=o[a+4>>2];f=-1;i=0;e=b+1|0;e=(e>>>0)%3|0?e:b+ -2|0;if((e|0)!=-1){f=o[o[c>>2]+(e<<2)>>2]}d=(b-u(d,3)|0?-1:2)+b|0;if((d|0)==-1|(f|0)==-1){break a}c=o[o[c>>2]+(d<<2)>>2];if((c|0)==-1){break a}b=o[a+36>>2];g=b+(f>>>3&536870908)|0;i=o[g>>2];j=1<<(f&31);if(!(i&j)){o[g>>2]=i|j;Eh(a+8|0,f,e);b=o[a+36>>2]}b=(c>>>3&536870908)+b|0;e=o[b>>2];g=1<<(c&31);if(!(e&g)){o[b>>2]=e|g;Eh(a+8|0,c,d)}c=o[a+52>>2];if((c|0)==o[a+48>>2]){return 1}j=a+48|0;k=a+8|0;while(1){c=c+ -4|0;b=o[c>>2];d=(b>>>0)/3|0;c:{d:{e:{if((b|0)==-1){break e}e=o[a+24>>2]+(d>>>3&268435452)|0;g=o[e>>2];d=1<<(d&31);if(g&d){break e}o[e>>2]=d|g;f:{while(1){i=0;f=o[a+4>>2];c=o[o[f>>2]+(b<<2)>>2];if((c|0)==-1){break a}g:{d=o[a+36>>2]+(c>>>3&536870908)|0;e=o[d>>2];g=1<<(c&31);h:{i:{if(e&g){break i}h=o[o[f+24>>2]+(c<<2)>>2];if((h|0)!=-1){l=h+1|0;h=(l>>>0)%3|0?l:h+ -2|0;if((h|0)!=-1){f=o[o[f+12>>2]+(h<<2)>>2];if((f|0)!=-1){o[d>>2]=e|g;Eh(k,c,b);c=f+1|0;if((((c>>>0)%3|0?c:f+ -2|0)|0)==-1){break i}d=b+ -2|0;c=b+1|0;b=-1;c=(c>>>0)%3|0?c:d;if((c|0)!=-1){b=o[o[o[a+4>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;f=o[a+24>>2];break h}}}o[d>>2]=e|g;Eh(k,c,b)}c=o[a+4>>2];j:{k:{l:{m:{n:{d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;o:{if((e|0)!=-1){d=((b>>>0)%3|0?-1:2)+b|0;c=o[c+12>>2];b=o[c+(e<<2)>>2];if((d|0)==-1){break n}d=o[c+(d<<2)>>2];if((b|0)!=-1){break m}b=d;break o}b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)==-1){break d}b=o[o[c+12>>2]+(b<<2)>>2]}if((b|0)==-1){break d}f=o[a+24>>2];h=1;e=-1;d=-1;c=(b>>>0)/3|0;break k}if((b|0)==-1){break d}c=(b>>>0)/3|0;d=-1;g=-1;break l}c=(b>>>0)/3|0;g=-1;if((d|0)==-1){d=-1;break l}g=(d>>>0)/3|0}f=o[a+24>>2];e=o[f+(c>>>3&268435452)>>2]&1<<(c&31);if((g|0)==-1){break j}h=(e|0)!=0;e=b;b=d;d=c;c=g}g=o[(c>>>3&536870908)+f>>2]&1<<(c&31);if(h){if(!g){break h}break d}if(g){c=d;b=e;break h}c=o[a+52>>2];o[c+ -4>>2]=b;f=o[a+56>>2];if((f|0)!=(c|0)){o[c>>2]=e;c=c+4|0;break e}d=o[j>>2];g=c-d|0;i=g>>2;c=i+1|0;if(c>>>0>=1073741824){break g}f=f-d|0;h=f>>1;c=f>>2>>>0<536870911?h>>>0>>0?c:h:1073741823;b=0;p:{if(!c){break p}if(c>>>0>=1073741824){break f}b=yk(c<<2)}f=b+(i<<2)|0;o[f>>2]=e;e=b+(c<<2)|0;c=f+4|0;if((g|0)>=1){ll(b,d,g)}o[a+56>>2]=e;o[a+52>>2]=c;o[a+48>>2]=b;if(!d){break c}jl(d);c=o[a+52>>2];break c}if(e){break d}}d=(c>>>3&536870908)+f|0;o[d>>2]=o[d>>2]|1<<(c&31);if((b|0)!=-1){continue}break a}break}Nk();D()}db(8832);D()}o[a+52>>2]=c;break c}c=o[a+52>>2]+ -4|0;o[a+52>>2]=c}i=1;if(o[j>>2]!=(c|0)){continue}break}}return i}function bf(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;o[a+8>>2]=e;f=a+32|0;g=o[f>>2];d=o[a+36>>2]-g>>2;a:{if(d>>>0>>0){Ia(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}o[a+36>>2]=g+(e<<2)}r=o[a+52>>2];p=o[a+48>>2];d=0;f=(e&1073741823)!=(e|0)?-1:e<<2;n=ml(yk(f),0,f);f=o[a+8>>2];b:{if((f|0)<1){break b}while(1){f=d<<2;g=o[f+n>>2];j=o[a+16>>2];c:{if((g|0)>(j|0)){h=o[a+32>>2];o[f+h>>2]=j;break c}h=o[a+32>>2];f=f+h|0;j=o[a+12>>2];if((g|0)<(j|0)){o[f>>2]=j;break c}o[f>>2]=g}d=d+1|0;f=o[a+8>>2];if((d|0)<(f|0)){continue}break}if((f|0)<1){break b}g=0;while(1){f=g<<2;d=f+c|0;f=o[b+f>>2]+o[f+h>>2]|0;o[d>>2]=f;d:{if((f|0)>o[a+16>>2]){f=f-o[a+20>>2]|0}else{if((f|0)>=o[a+12>>2]){break d}f=f+o[a+20>>2]|0}o[d>>2]=f}g=g+1|0;f=o[a+8>>2];if((g|0)<(f|0)){continue}break}}d=o[a+56>>2];q=o[d>>2];d=o[d+4>>2]-q|0;if((d|0)>=5){d=d>>2;s=(d|0)>2?d:2;t=d>>>0>1?d:1;j=1;while(1){e:{f:{if((j|0)!=(t|0)){m=u(e,j);d=o[(j<<2)+q>>2];if((d|0)==-1){break f}d=o[o[p+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}g=-1;i=o[r>>2];h=o[p>>2];k=o[i+(o[h+(d<<2)>>2]<<2)>>2];l=d+1|0;l=(l>>>0)%3|0?l:d+ -2|0;if((l|0)!=-1){l=o[h+(l<<2)>>2]}else{l=-1}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)!=-1){g=o[h+(d<<2)>>2]}if((k|0)>=(j|0)){break f}d=o[(l<<2)+i>>2];if((d|0)>=(j|0)){break f}g=o[i+(g<<2)>>2];if((g|0)>=(j|0)){break f}if((e|0)>=1){g=u(e,g);h=u(d,e);i=u(e,k);d=0;while(1){o[(d<<2)+n>>2]=(o[(d+g<<2)+c>>2]+o[(d+h<<2)+c>>2]|0)-o[(d+i<<2)+c>>2];d=d+1|0;if((e|0)!=(d|0)){continue}break}}if((f|0)<1){break e}d=0;while(1){f=d<<2;g=o[f+n>>2];i=o[a+16>>2];g:{if((g|0)>(i|0)){h=o[a+32>>2];o[f+h>>2]=i;break g}h=o[a+32>>2];f=f+h|0;i=o[a+12>>2];if((g|0)<(i|0)){o[f>>2]=i;break g}o[f>>2]=g}d=d+1|0;f=o[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=m<<2;m=d+c|0;i=b+d|0;while(1){f=g<<2;d=f+m|0;f=o[f+i>>2]+o[f+h>>2]|0;o[d>>2]=f;h:{if((f|0)>o[a+16>>2]){f=f-o[a+20>>2]|0}else{if((f|0)>=o[a+12>>2]){break h}f=f+o[a+20>>2]|0}o[d>>2]=f}g=g+1|0;f=o[a+8>>2];if((g|0)<(f|0)){continue}break}break e}Ok();D()}if((f|0)<1){break e}i=(u(j+ -1|0,e)<<2)+c|0;d=0;while(1){f=d<<2;g=o[f+i>>2];k=o[a+16>>2];i:{if((g|0)>(k|0)){h=o[a+32>>2];o[f+h>>2]=k;break i}h=o[a+32>>2];f=f+h|0;k=o[a+12>>2];if((g|0)<(k|0)){o[f>>2]=k;break i}o[f>>2]=g}d=d+1|0;f=o[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=m<<2;m=d+c|0;i=b+d|0;while(1){f=g<<2;d=f+m|0;f=o[f+i>>2]+o[f+h>>2]|0;o[d>>2]=f;j:{if((f|0)>o[a+16>>2]){f=f-o[a+20>>2]|0}else{if((f|0)>=o[a+12>>2]){break j}f=f+o[a+20>>2]|0}o[d>>2]=f}g=g+1|0;f=o[a+8>>2];if((g|0)<(f|0)){continue}break}}j=j+1|0;if((s|0)!=(j|0)){continue}break}}jl(n);return 1}function Be(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;o[a+8>>2]=e;f=a+32|0;g=o[f>>2];d=o[a+36>>2]-g>>2;a:{if(d>>>0>>0){Ia(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}o[a+36>>2]=g+(e<<2)}q=o[a+52>>2];n=o[a+48>>2];d=0;f=(e&1073741823)!=(e|0)?-1:e<<2;m=ml(yk(f),0,f);f=o[a+8>>2];b:{if((f|0)<1){break b}while(1){f=d<<2;g=o[f+m>>2];i=o[a+16>>2];c:{if((g|0)>(i|0)){h=o[a+32>>2];o[f+h>>2]=i;break c}h=o[a+32>>2];f=f+h|0;i=o[a+12>>2];if((g|0)<(i|0)){o[f>>2]=i;break c}o[f>>2]=g}d=d+1|0;f=o[a+8>>2];if((d|0)<(f|0)){continue}break}if((f|0)<1){break b}g=0;while(1){f=g<<2;d=f+c|0;f=o[b+f>>2]+o[f+h>>2]|0;o[d>>2]=f;d:{if((f|0)>o[a+16>>2]){f=f-o[a+20>>2]|0}else{if((f|0)>=o[a+12>>2]){break d}f=f+o[a+20>>2]|0}o[d>>2]=f}g=g+1|0;f=o[a+8>>2];if((g|0)<(f|0)){continue}break}}d=o[a+56>>2];p=o[d>>2];d=o[d+4>>2]-p|0;if((d|0)>=5){d=d>>2;r=(d|0)>2?d:2;s=d>>>0>1?d:1;i=1;while(1){e:{f:{if((i|0)!=(s|0)){l=u(e,i);d=o[(i<<2)+p>>2];if((d|0)==-1|o[o[n>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1){break f}d=o[o[o[n+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}h=o[q>>2];g=o[n+28>>2];j=o[h+(o[g+(d<<2)>>2]<<2)>>2];if((j|0)>=(i|0)){break f}k=d+1|0;k=o[h+(o[g+(((k>>>0)%3|0?k:d+ -2|0)<<2)>>2]<<2)>>2];if((k|0)>=(i|0)){break f}d=o[h+(o[g+(d+((d>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((d|0)>=(i|0)){break f}if((e|0)>=1){g=u(d,e);h=u(e,k);j=u(e,j);d=0;while(1){o[(d<<2)+m>>2]=(o[(d+g<<2)+c>>2]+o[(d+h<<2)+c>>2]|0)-o[(d+j<<2)+c>>2];d=d+1|0;if((e|0)!=(d|0)){continue}break}}if((f|0)<1){break e}d=0;while(1){f=d<<2;g=o[f+m>>2];j=o[a+16>>2];g:{if((g|0)>(j|0)){h=o[a+32>>2];o[f+h>>2]=j;break g}h=o[a+32>>2];f=f+h|0;j=o[a+12>>2];if((g|0)<(j|0)){o[f>>2]=j;break g}o[f>>2]=g}d=d+1|0;f=o[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=l<<2;l=d+c|0;j=b+d|0;while(1){f=g<<2;d=f+l|0;f=o[f+j>>2]+o[f+h>>2]|0;o[d>>2]=f;h:{if((f|0)>o[a+16>>2]){f=f-o[a+20>>2]|0}else{if((f|0)>=o[a+12>>2]){break h}f=f+o[a+20>>2]|0}o[d>>2]=f}g=g+1|0;f=o[a+8>>2];if((g|0)<(f|0)){continue}break}break e}Ok();D()}if((f|0)<1){break e}j=(u(i+ -1|0,e)<<2)+c|0;d=0;while(1){f=d<<2;g=o[f+j>>2];k=o[a+16>>2];i:{if((g|0)>(k|0)){h=o[a+32>>2];o[f+h>>2]=k;break i}h=o[a+32>>2];f=f+h|0;k=o[a+12>>2];if((g|0)<(k|0)){o[f>>2]=k;break i}o[f>>2]=g}d=d+1|0;f=o[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=l<<2;l=d+c|0;j=b+d|0;while(1){f=g<<2;d=f+l|0;f=o[f+j>>2]+o[f+h>>2]|0;o[d>>2]=f;j:{if((f|0)>o[a+16>>2]){f=f-o[a+20>>2]|0}else{if((f|0)>=o[a+12>>2]){break j}f=f+o[a+20>>2]|0}o[d>>2]=f}g=g+1|0;f=o[a+8>>2];if((g|0)<(f|0)){continue}break}}i=i+1|0;if((r|0)!=(i|0)){continue}break}}jl(m);return 1}function Gi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;d=R-48|0;R=d;if(b){u=a+12|0;k=o[a+4>>2];l=o[a>>2];h=k-l|0;g=h>>2;c=o[a+12>>2];e=o[a+16>>2]-c>>2;a:{if(g>>>0>e>>>0){Ji(u,g-e|0);k=o[a+4>>2];l=o[a>>2];h=k-l|0;g=h>>2;break a}if(g>>>0>=e>>>0){break a}o[a+16>>2]=c+(g<<2)}e=0;o[d+40>>2]=0;o[d+32>>2]=0;o[d+36>>2]=0;b:{c:{d:{if(!g){c=0;f=0;break d}if(g>>>0>=1073741824){break c}c=yk(h);o[d+36>>2]=c;o[d+32>>2]=c;o[d+40>>2]=(g<<2)+c;f=c}if(!h){break b}e=f;i=e;h=0;while(1){j=o[(h<<2)+l>>2];i=i-e>>2;if(j>>>0>=i>>>0){o[d+16>>2]=0;c=j+1|0;e:{if(c>>>0>i>>>0){Dd(d+32|0,c-i|0,d+16|0);l=o[a>>2];k=o[a+4>>2];break e}if(c>>>0>=i>>>0){break e}o[d+36>>2]=(c<<2)+e}c=o[d+32>>2];f=c}e=(j<<2)+c|0;o[e>>2]=o[e>>2]+1;h=h+1|0;e=k-l|0;g=e>>2;if(h>>>0>=g>>>0){break b}i=o[d+36>>2];e=c;continue}}db(10528);D()}o[d+24>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;h=0;f:{g:{if(e){if(g>>>0>=536870912){break g}h=yk(e<<1);o[d+16>>2]=h;j=g<<3;e=j+h|0;o[d+24>>2]=e;ml(h,255,j);o[d+20>>2]=e}o[d+8>>2]=0;o[d>>2]=0;o[d+4>>2]=0;f=o[d+36>>2]-f|0;n=f>>2;h:{if(f){if(n>>>0>=1073741824){break h}m=yk(f);o[d>>2]=m;e=(n<<2)+m|0;o[d+8>>2]=e;g=0;i=ml(m,0,f);o[d+4>>2]=e;j=n>>>0>1?n:1;e=0;while(1){f=e<<2;o[f+i>>2]=g;g=o[c+f>>2]+g|0;e=e+1|0;if((j|0)!=(e|0)){continue}break}}if((k|0)==(l|0)){break f}x=k-l>>2;j=0;v=o[d+32>>2];while(1){s=j<<2;r=o[s+l>>2];k=-1;e=j+1|0;c=(e>>>0)%3|0?e:j+ -2|0;if((c|0)!=-1){k=o[(c<<2)+l>>2]}p=-1;f=(j>>>0)%3|0;c=(f?-1:2)+j|0;if((c|0)!=-1){p=o[(c<<2)+l>>2]}i:{j:{if(f){break j}k:{if((k|0)==(p|0)){break k}c=o[l+s>>2];if((c|0)==(k|0)){break k}if((c|0)!=(p|0)){break j}}o[a+40>>2]=o[a+40>>2]+1;e=j+3|0;break i}c=p<<2;t=o[c+v>>2];l:{m:{if((t|0)<1){break m}c=o[c+m>>2];g=0;while(1){i=(c<<3)+h|0;f=o[i>>2];if((f|0)==-1){break m}n:{if((f|0)!=(k|0)){break n}q=o[i+4>>2];if((q|0)!=-1){f=o[(q<<2)+l>>2]}else{f=-1}if((f|0)==(r|0)){break n}while(1){o:{f=c;g=g+1|0;if((g|0)>=(t|0)){break o}w=(f<<3)+h|0;c=f+1|0;r=(c<<3)+h|0;i=o[r>>2];o[w>>2]=i;o[w+4>>2]=o[r+4>>2];if((i|0)!=-1){continue}}break}o[(f<<3)+h>>2]=-1;if((q|0)==-1){break m}c=o[u>>2];o[c+s>>2]=q;o[c+(q<<2)>>2]=j;break l}c=c+1|0;g=g+1|0;if((t|0)!=(g|0)){continue}break}}c=k<<2;f=o[c+v>>2];if((f|0)<1){break l}c=o[c+m>>2];g=0;while(1){i=(c<<3)+h|0;if(o[i>>2]==-1){o[i>>2]=p;o[i+4>>2]=j;break l}c=c+1|0;g=g+1|0;if((f|0)!=(g|0)){continue}break}}}j=e;if(j>>>0>>0){continue}break}break f}Nk();D()}Nk();D()}o[b>>2]=n;if(m){o[d+4>>2]=m;jl(m)}a=o[d+16>>2];if(a){o[d+20>>2]=a;jl(a)}a=o[d+32>>2];if(a){o[d+36>>2]=a;jl(a)}a=1}else{a=0}R=d+48|0;return a}function Ii(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0,p=0,q=0,r=0,s=0,t=0,v=0;h=R-48|0;R=h;o[a+36>>2]=b;n=a+24|0;e=o[a+24>>2];c=o[a+28>>2]-e>>2;a:{if(c>>>0>>0){Ji(n,b-c|0);break a}if(c>>>0<=b>>>0){break a}o[a+28>>2]=e+(b<<2)}m[h+16|0]=0;i=Ki(h+32|0,b,h+16|0);c=o[a>>2];e=o[a+4>>2];m[h+8|0]=0;p=Ki(h+16|0,e-c>>2,h+8|0);c=o[a>>2];b:{if(o[a+4>>2]-c>>2>>>0<3){break b}s=a+48|0;while(1){k=u(q,3);f=o[(k<<2)+c>>2];g=0;d=-1;e=k+1|0;c:{if((e|0)!=-1){d=o[(e<<2)+c>>2];g=k+2|0;e=-1;if((g|0)==-1){break c}}e=o[(g<<2)+c>>2]}d:{if(!((e|0)==(d|0)|(d|0)==(f|0)|(e|0)==(f|0))){j=o[p>>2];l=0;while(1){e=k+l|0;e:{if(o[(e>>>3&536870908)+j>>2]>>>(e&31)&1){break e}g=o[o[a>>2]+(e<<2)>>2];o[h+8>>2]=g;c=1<<(g&31);d=o[i>>2];g=g>>>5|0;j=o[d+(g<<2)>>2];f=0;f:{if(!(c&j)){break f}eh(n,10524);Li(s,h+8|0);c=o[i+4>>2];f=o[i+8>>2];if((c|0)==f<<5){if((c+1|0)<=-1){break d}d=i;if(c>>>0<=1073741822){c=c+32&-32;f=f<<6;c=f>>>0>>0?c:f}else{c=2147483647}fb(d,c);c=o[i+4>>2]}o[i+4>>2]=c+1;d=o[i>>2];f=d+(c>>>3&536870908)|0;g=o[f>>2];t=f,v=Sl(c)&g,o[t>>2]=v;o[h+8>>2]=b;c=1<<(b&31);g=b>>>5|0;j=o[(g<<2)+d>>2];b=b+1|0;f=1}o[(g<<2)+d>>2]=c|j;j=o[p>>2];c=e;g:{while(1){if((c|0)==-1){break g}d=(c>>>3&536870908)+j|0;o[d>>2]=o[d>>2]|1<<(c&31);d=o[h+8>>2];o[o[n>>2]+(d<<2)>>2]=c;if(f){o[o[a>>2]+(c<<2)>>2]=d}g=e;d=c+1|0;c=(d>>>0)%3|0?d:c+ -2|0;d=-1;h:{if((c|0)==-1){break h}c=o[o[a+12>>2]+(c<<2)>>2];d=-1;if((c|0)==-1){break h}d=c+1|0;d=(d>>>0)%3|0?d:c+ -2|0}c=d;if((g|0)!=(c|0)){continue}break}if((e|0)!=-1){break e}}c=e+((e>>>0)%3|0?-1:2)|0;if((c|0)==-1){break e}c=o[o[a+12>>2]+(c<<2)>>2];if((c|0)==-1){break e}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1){break e}while(1){e=(c>>>3&536870908)+j|0;o[e>>2]=o[e>>2]|1<<(c&31);if(f){o[o[a>>2]+(c<<2)>>2]=o[h+8>>2]}c=((c>>>0)%3|0?-1:2)+c|0;if((c|0)==-1){break e}c=o[o[a+12>>2]+(c<<2)>>2];if((c|0)==-1){break e}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)!=-1){continue}break}}l=l+1|0;if((l|0)!=3){continue}break}}q=q+1|0;c=o[a>>2];if(q>>>0<(o[a+4>>2]-c>>2>>>0)/3>>>0){continue}break b}break}Nk();D()}o[a+44>>2]=0;b=o[i>>2];c=o[i+4>>2];e=c>>>5|0;f=c&31;if(e|f){e=(e<<2)+b|0;d=b;c=0;while(1){if(!(o[d>>2]>>>c&1)){r=r+1|0;o[a+44>>2]=r}g=(c|0)==31;c=g?0:c+1|0;d=g?d+4|0:d;if((e|0)!=(d|0)|(c|0)!=(f|0)){continue}break}}a=o[p>>2];if(a){jl(a);b=o[i>>2]}if(b){jl(b)}R=h+48|0}function pj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{d=b;g=o[b>>2];if(g){c=o[b+4>>2];if(!c){break b}while(1){d=c;c=o[c>>2];if(c){continue}break}}g=o[d+4>>2];if(g){break b}g=0;e=0;break a}o[g+8>>2]=o[d+8>>2];e=1}f=o[d+8>>2];c=o[f>>2];c:{if((c|0)==(d|0)){o[f>>2]=g;if((a|0)==(d|0)){c=0;a=g;break c}c=o[f+4>>2];break c}o[f+4>>2]=g}d:{e:{f:{h=!p[d+12|0];if((b|0)!=(d|0)){f=o[b+8>>2];o[d+8>>2]=f;o[f+((o[o[b+8>>2]>>2]!=(b|0))<<2)>>2]=d;f=o[b>>2];o[d>>2]=f;o[f+8>>2]=d;f=o[b+4>>2];o[d+4>>2]=f;if(f){o[f+8>>2]=d}m[d+12|0]=p[b+12|0];a=(a|0)==(b|0)?d:a}if(!(h|!a)){if(!e){while(1){b=p[c+12|0];g:{e=o[c+8>>2];if(o[e>>2]!=(c|0)){if(!b){m[c+12|0]=1;m[e+12|0]=0;d=o[e+4>>2];b=o[d>>2];o[e+4>>2]=b;if(b){o[b+8>>2]=e}o[d+8>>2]=o[e+8>>2];b=o[e+8>>2];o[(((e|0)!=o[b>>2])<<2)+b>>2]=d;o[d>>2]=e;o[e+8>>2]=d;b=o[c>>2];a=(b|0)==(a|0)?c:a;c=o[b+4>>2]}d=o[c>>2];if(!(p[d+12|0]?0:d)){b=o[c+4>>2];if(p[b+12|0]?0:b){break f}m[c+12|0]=0;c=o[c+8>>2];h:{if((c|0)==(a|0)){c=a;break h}if(p[c+12|0]){break g}}m[c+12|0]=1;return}b=o[c+4>>2];if(b){break f}break e}i:{if(b){b=c;break i}m[c+12|0]=1;m[e+12|0]=0;b=o[c+4>>2];o[e>>2]=b;if(b){o[b+8>>2]=e}o[c+8>>2]=o[e+8>>2];d=o[e+8>>2];j:{if((e|0)==o[d>>2]){o[d>>2]=c;b=o[e>>2];break j}o[d+4>>2]=c}o[c+4>>2]=e;o[e+8>>2]=c;a=(a|0)==(e|0)?c:a}d=o[b>>2];k:{if(!(!d|p[d+12|0])){c=b;break k}c=o[b+4>>2];if(!(p[c+12|0]?0:c)){m[b+12|0]=0;c=o[b+8>>2];if(p[c+12|0]?(c|0)!=(a|0):0){break g}m[c+12|0]=1;return}if(!(p[d+12|0]|!d)){c=b;break k}m[c+12|0]=1;m[b+12|0]=0;a=o[c>>2];o[b+4>>2]=a;if(a){o[a+8>>2]=b}o[c+8>>2]=o[b+8>>2];a=o[b+8>>2];o[((o[a>>2]!=(b|0))<<2)+a>>2]=c;o[c>>2]=b;o[b+8>>2]=c;d=b}a=c;c=o[c+8>>2];m[a+12|0]=p[c+12|0];m[c+12|0]=1;m[d+12|0]=1;b=o[c>>2];a=o[b+4>>2];o[c>>2]=a;if(a){o[a+8>>2]=c}o[b+8>>2]=o[c+8>>2];a=o[c+8>>2];o[(((c|0)!=o[a>>2])<<2)+a>>2]=b;o[b+4>>2]=c;o[c+8>>2]=b;return}b=o[c+8>>2];c=o[((o[b>>2]==(c|0))<<2)+b>>2];continue}}m[g+12|0]=1}return}if(p[b+12|0]){break e}d=c;break d}m[d+12|0]=1;m[c+12|0]=0;a=o[d+4>>2];o[c>>2]=a;if(a){o[a+8>>2]=c}o[d+8>>2]=o[c+8>>2];a=o[c+8>>2];o[((o[a>>2]!=(c|0))<<2)+a>>2]=d;o[d+4>>2]=c;o[c+8>>2]=d;b=c}c=o[d+8>>2];m[d+12|0]=p[c+12|0];m[c+12|0]=1;m[b+12|0]=1;b=o[c+4>>2];a=o[b>>2];o[c+4>>2]=a;if(a){o[a+8>>2]=c}o[b+8>>2]=o[c+8>>2];a=o[c+8>>2];o[(((c|0)!=o[a>>2])<<2)+a>>2]=b;o[b>>2]=c;o[c+8>>2]=b}function mf(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0;h=R-32|0;R=h;o[a+68>>2]=f;d=o[a+56>>2];e=o[d>>2];f=o[d+4>>2];o[h+24>>2]=0;o[h+16>>2]=0;o[h+20>>2]=0;f=f-e|0;a:{if((f|0)<1){break a}e=o[d>>2];if((e|0)!=o[d+4>>2]){m=a+60|0;d=f>>2;n=(d|0)>1?d:1;p=a+108|0;while(1){nf(m,o[(k<<2)+e>>2],h+16|0);e=o[h+20>>2];g=e>>31;f=o[h+16>>2];i=f>>31;l=o[h+24>>2];j=l>>31;d=0;j=j^j+l;g=j+((g^e+g)+(i^f+i)|0)|0;if(g>>>0>>0){d=1}b:{if(!(d|g)){o[h+16>>2]=o[a+104>>2];break b}i=o[a+104>>2];j=i>>31;e=Pl(Ol(i,j,e,e>>31),T,g,d);o[h+20>>2]=e;d=Pl(Ol(i,j,f,f>>31),T,g,d);o[h+16>>2]=d;f=d;d=d>>31;d=(i-(f+d^d)|0)+((e|0)<0?e:0-e|0)|0;if((l|0)>=0){o[h+24>>2]=d;break b}o[h+24>>2]=0-d}d=Uf(p);f=o[h+16>>2];c:{if(!d){e=o[h+20>>2];break c}o[h+24>>2]=0-o[h+24>>2];e=0-o[h+20>>2]|0;o[h+20>>2]=e;f=0-f|0;o[h+16>>2]=f}d:{if((f|0)>=0){d=o[a+104>>2];f=d+o[h+24>>2]|0;d=d+e|0;break d}e:{if((e|0)<=-1){f=o[h+24>>2];d=f>>31;d=d^d+f;break e}f=o[h+24>>2];d=f>>31;d=o[a+100>>2]-(d^d+f)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break d}f=e;e=e>>31;f=o[a+100>>2]-(f+e^e)|0}f:{if(!(d|f)){f=o[a+100>>2];e=f;break f}g=o[a+100>>2];g:{h:{i:{if(!d){if((f|0)==(g|0)){e=f;break f}e=0;if(f|g){break i}f=0;break f}if(!((d|0)!=(g|0)|f)){f=d;e=d;break f}if((d|0)!=(g|0)){break g}i=o[a+104>>2];break h}i=o[a+104>>2];if((i|0)<(f|0)){f=(i<<1)-f|0;break f}if(g){break g}}g=d;if((i|0)<=(f|0)){break g}f=(i<<1)-f|0;e=d;break f}j:{if((f|0)!=(g|0)){break j}e=o[a+104>>2];if((e|0)<=(d|0)){break j}e=(e<<1)-d|0;break f}if(f){e=d;break f}f=0;e=o[a+104>>2];if((e|0)>=(d|0)){e=d;break f}e=(e<<1)-d|0}o[h+12>>2]=f;o[h+8>>2]=e;k:{if(o[a+8>>2]<1){break k}f=0;while(1){g=o[a+16>>2];l:{if((e|0)>(g|0)){d=o[a+32>>2];o[d+(f<<2)>>2]=g;break l}d=o[a+32>>2];g=d+(f<<2)|0;i=o[a+12>>2];if((e|0)<(i|0)){o[g>>2]=i;break l}o[g>>2]=e}f=f+1|0;g=o[a+8>>2];if((f|0)<(g|0)){e=o[(h+8|0)+(f<<2)>>2];continue}break}e=0;if((g|0)<1){break k}f=k<<3;i=f+c|0;l=b+f|0;while(1){g=e<<2;f=g+i|0;g=o[g+l>>2]+o[d+g>>2]|0;o[f>>2]=g;m:{if((g|0)>o[a+16>>2]){g=g-o[a+20>>2]|0}else{if((g|0)>=o[a+12>>2]){break m}g=g+o[a+20>>2]|0}o[f>>2]=g}e=e+1|0;if((e|0)>2]){continue}break}}k=k+1|0;if((n|0)==(k|0)){break a}d=o[a+56>>2];e=o[d>>2];if(o[d+4>>2]-e>>2>>>0>k>>>0){continue}break}}Ok();D()}R=h+32|0;return 1}function Ye(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0;h=R-32|0;R=h;o[a+68>>2]=f;d=o[a+56>>2];e=o[d>>2];f=o[d+4>>2];o[h+24>>2]=0;o[h+16>>2]=0;o[h+20>>2]=0;f=f-e|0;a:{if((f|0)<1){break a}e=o[d>>2];if((e|0)!=o[d+4>>2]){m=a+60|0;d=f>>2;n=(d|0)>1?d:1;p=a+108|0;while(1){Ze(m,o[(k<<2)+e>>2],h+16|0);e=o[h+20>>2];g=e>>31;f=o[h+16>>2];i=f>>31;l=o[h+24>>2];j=l>>31;d=0;j=j^j+l;g=j+((g^e+g)+(i^f+i)|0)|0;if(g>>>0>>0){d=1}b:{if(!(d|g)){o[h+16>>2]=o[a+104>>2];break b}i=o[a+104>>2];j=i>>31;e=Pl(Ol(i,j,e,e>>31),T,g,d);o[h+20>>2]=e;d=Pl(Ol(i,j,f,f>>31),T,g,d);o[h+16>>2]=d;f=d;d=d>>31;d=(i-(f+d^d)|0)+((e|0)<0?e:0-e|0)|0;if((l|0)>=0){o[h+24>>2]=d;break b}o[h+24>>2]=0-d}d=Uf(p);f=o[h+16>>2];c:{if(!d){e=o[h+20>>2];break c}o[h+24>>2]=0-o[h+24>>2];e=0-o[h+20>>2]|0;o[h+20>>2]=e;f=0-f|0;o[h+16>>2]=f}d:{if((f|0)>=0){d=o[a+104>>2];f=d+o[h+24>>2]|0;d=d+e|0;break d}e:{if((e|0)<=-1){f=o[h+24>>2];d=f>>31;d=d^d+f;break e}f=o[h+24>>2];d=f>>31;d=o[a+100>>2]-(d^d+f)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break d}f=e;e=e>>31;f=o[a+100>>2]-(f+e^e)|0}f:{if(!(d|f)){f=o[a+100>>2];e=f;break f}g=o[a+100>>2];g:{h:{i:{if(!d){if((f|0)==(g|0)){e=f;break f}e=0;if(f|g){break i}f=0;break f}if(!((d|0)!=(g|0)|f)){f=d;e=d;break f}if((d|0)!=(g|0)){break g}i=o[a+104>>2];break h}i=o[a+104>>2];if((i|0)<(f|0)){f=(i<<1)-f|0;break f}if(g){break g}}g=d;if((i|0)<=(f|0)){break g}f=(i<<1)-f|0;e=d;break f}j:{if((f|0)!=(g|0)){break j}e=o[a+104>>2];if((e|0)<=(d|0)){break j}e=(e<<1)-d|0;break f}if(f){e=d;break f}f=0;e=o[a+104>>2];if((e|0)>=(d|0)){e=d;break f}e=(e<<1)-d|0}o[h+12>>2]=f;o[h+8>>2]=e;k:{if(o[a+8>>2]<1){break k}f=0;while(1){g=o[a+16>>2];l:{if((e|0)>(g|0)){d=o[a+32>>2];o[d+(f<<2)>>2]=g;break l}d=o[a+32>>2];g=d+(f<<2)|0;i=o[a+12>>2];if((e|0)<(i|0)){o[g>>2]=i;break l}o[g>>2]=e}f=f+1|0;g=o[a+8>>2];if((f|0)<(g|0)){e=o[(h+8|0)+(f<<2)>>2];continue}break}e=0;if((g|0)<1){break k}f=k<<3;i=f+c|0;l=b+f|0;while(1){g=e<<2;f=g+i|0;g=o[g+l>>2]+o[d+g>>2]|0;o[f>>2]=g;m:{if((g|0)>o[a+16>>2]){g=g-o[a+20>>2]|0}else{if((g|0)>=o[a+12>>2]){break m}g=g+o[a+20>>2]|0}o[f>>2]=g}e=e+1|0;if((e|0)>2]){continue}break}}k=k+1|0;if((n|0)==(k|0)){break a}d=o[a+56>>2];e=o[d>>2];if(o[d+4>>2]-e>>2>>>0>k>>>0){continue}break}}Ok();D()}R=h+32|0;return 1}function te(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{b:{c:{d:{b=b+ -1|0;e:{if(b>>>0>5){break e}f:{switch(b-1|0){default:b=yk(60);o[b+4>>2]=c;o[b>>2]=2732;c=o[d+8>>2];f=o[d+12>>2];g=o[d+16>>2];h=o[d+20>>2];i=o[d>>2];j=o[d+4>>2];o[b+40>>2]=0;o[b+32>>2]=0;o[b+36>>2]=0;o[b+24>>2]=g;o[b+28>>2]=h;o[b+16>>2]=c;o[b+20>>2]=f;o[b+8>>2]=i;o[b+12>>2]=j;f=o[d+24>>2];c=o[d+28>>2]-f|0;g:{if(!c){break g}g=c>>2;if(g>>>0>=1073741824){break d}d=yk(c);o[b+32>>2]=d;o[b+36>>2]=d;o[b+40>>2]=d+(g<<2);if((c|0)<1){break g}k=b,l=ll(d,f,c)+c|0,o[k+36>>2]=l}c=o[e+4>>2];o[b+44>>2]=o[e>>2];o[b+48>>2]=c;c=o[e+12>>2];o[b+52>>2]=o[e+8>>2];o[b+56>>2]=c;o[b>>2]=3928;break a;case 2:b=yk(112);o[b+4>>2]=c;o[b>>2]=2732;c=o[d+8>>2];f=o[d+12>>2];g=o[d+16>>2];h=o[d+20>>2];i=o[d>>2];j=o[d+4>>2];o[b+40>>2]=0;o[b+32>>2]=0;o[b+36>>2]=0;o[b+24>>2]=g;o[b+28>>2]=h;o[b+16>>2]=c;o[b+20>>2]=f;o[b+8>>2]=i;o[b+12>>2]=j;f=o[d+24>>2];c=o[d+28>>2]-f|0;h:{if(!c){break h}g=c>>2;if(g>>>0>=1073741824){break c}d=yk(c);o[b+32>>2]=d;o[b+36>>2]=d;o[b+40>>2]=d+(g<<2);if((c|0)<1){break h}k=b,l=ll(d,f,c)+c|0,o[k+36>>2]=l}c=o[e+4>>2];o[b+44>>2]=o[e>>2];o[b+48>>2]=c;c=o[e+12>>2];o[b+52>>2]=o[e+8>>2];o[b+56>>2]=c;o[b+60>>2]=0;o[b+64>>2]=0;o[b>>2]=4352;o[b+68>>2]=0;o[b+72>>2]=0;o[b+76>>2]=0;o[b+80>>2]=0;o[b+84>>2]=0;o[b+88>>2]=0;o[b+92>>2]=0;o[b+96>>2]=0;o[b+100>>2]=0;o[b+104>>2]=0;o[b+108>>2]=0;break a;case 3:b=yk(104);o[b+4>>2]=c;o[b>>2]=2732;c=o[d+8>>2];f=o[d+12>>2];g=o[d+16>>2];h=o[d+20>>2];i=o[d>>2];j=o[d+4>>2];o[b+40>>2]=0;o[b+32>>2]=0;o[b+36>>2]=0;o[b+24>>2]=g;o[b+28>>2]=h;o[b+16>>2]=c;o[b+20>>2]=f;o[b+8>>2]=i;o[b+12>>2]=j;f=o[d+24>>2];c=o[d+28>>2]-f|0;i:{if(!c){break i}g=c>>2;if(g>>>0>=1073741824){break b}d=yk(c);o[b+32>>2]=d;o[b+36>>2]=d;o[b+40>>2]=d+(g<<2);if((c|0)<1){break i}k=b,l=ll(d,f,c)+c|0,o[k+36>>2]=l}c=o[e+4>>2];o[b+44>>2]=o[e>>2];o[b+48>>2]=c;c=e+8|0;d=o[c>>2];f=o[c+4>>2];o[b+84>>2]=0;o[b+76>>2]=0;o[b+80>>2]=0;o[b+60>>2]=0;o[b+64>>2]=0;o[b>>2]=4588;o[b+52>>2]=d;o[b+56>>2]=f;d=o[e+4>>2];o[b+88>>2]=o[e>>2];o[b+92>>2]=d;d=o[c+4>>2];o[b+96>>2]=o[c>>2];o[b+100>>2]=d;break a;case 0:case 1:break e;case 4:break f}}f=yk(124);af(f,c,d,e)}o[a>>2]=f;return}Nk();D()}Nk();D()}Nk();D()}o[a>>2]=b}function se(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{b:{c:{d:{b=b+ -1|0;e:{if(b>>>0>5){break e}f:{switch(b-1|0){default:b=yk(60);o[b+4>>2]=c;o[b>>2]=2732;c=o[d+8>>2];f=o[d+12>>2];g=o[d+16>>2];h=o[d+20>>2];i=o[d>>2];j=o[d+4>>2];o[b+40>>2]=0;o[b+32>>2]=0;o[b+36>>2]=0;o[b+24>>2]=g;o[b+28>>2]=h;o[b+16>>2]=c;o[b+20>>2]=f;o[b+8>>2]=i;o[b+12>>2]=j;f=o[d+24>>2];c=o[d+28>>2]-f|0;g:{if(!c){break g}g=c>>2;if(g>>>0>=1073741824){break d}d=yk(c);o[b+32>>2]=d;o[b+36>>2]=d;o[b+40>>2]=d+(g<<2);if((c|0)<1){break g}k=b,l=ll(d,f,c)+c|0,o[k+36>>2]=l}c=o[e+4>>2];o[b+44>>2]=o[e>>2];o[b+48>>2]=c;c=o[e+12>>2];o[b+52>>2]=o[e+8>>2];o[b+56>>2]=c;o[b>>2]=2024;break a;case 2:b=yk(112);o[b+4>>2]=c;o[b>>2]=2732;c=o[d+8>>2];f=o[d+12>>2];g=o[d+16>>2];h=o[d+20>>2];i=o[d>>2];j=o[d+4>>2];o[b+40>>2]=0;o[b+32>>2]=0;o[b+36>>2]=0;o[b+24>>2]=g;o[b+28>>2]=h;o[b+16>>2]=c;o[b+20>>2]=f;o[b+8>>2]=i;o[b+12>>2]=j;f=o[d+24>>2];c=o[d+28>>2]-f|0;h:{if(!c){break h}g=c>>2;if(g>>>0>=1073741824){break c}d=yk(c);o[b+32>>2]=d;o[b+36>>2]=d;o[b+40>>2]=d+(g<<2);if((c|0)<1){break h}k=b,l=ll(d,f,c)+c|0,o[k+36>>2]=l}c=o[e+4>>2];o[b+44>>2]=o[e>>2];o[b+48>>2]=c;c=o[e+12>>2];o[b+52>>2]=o[e+8>>2];o[b+56>>2]=c;o[b+60>>2]=0;o[b+64>>2]=0;o[b>>2]=2788;o[b+68>>2]=0;o[b+72>>2]=0;o[b+76>>2]=0;o[b+80>>2]=0;o[b+84>>2]=0;o[b+88>>2]=0;o[b+92>>2]=0;o[b+96>>2]=0;o[b+100>>2]=0;o[b+104>>2]=0;o[b+108>>2]=0;break a;case 3:b=yk(104);o[b+4>>2]=c;o[b>>2]=2732;c=o[d+8>>2];f=o[d+12>>2];g=o[d+16>>2];h=o[d+20>>2];i=o[d>>2];j=o[d+4>>2];o[b+40>>2]=0;o[b+32>>2]=0;o[b+36>>2]=0;o[b+24>>2]=g;o[b+28>>2]=h;o[b+16>>2]=c;o[b+20>>2]=f;o[b+8>>2]=i;o[b+12>>2]=j;f=o[d+24>>2];c=o[d+28>>2]-f|0;i:{if(!c){break i}g=c>>2;if(g>>>0>=1073741824){break b}d=yk(c);o[b+32>>2]=d;o[b+36>>2]=d;o[b+40>>2]=d+(g<<2);if((c|0)<1){break i}k=b,l=ll(d,f,c)+c|0,o[k+36>>2]=l}c=o[e+4>>2];o[b+44>>2]=o[e>>2];o[b+48>>2]=c;c=e+8|0;d=o[c>>2];f=o[c+4>>2];o[b+84>>2]=0;o[b+76>>2]=0;o[b+80>>2]=0;o[b+60>>2]=0;o[b+64>>2]=0;o[b>>2]=3036;o[b+52>>2]=d;o[b+56>>2]=f;d=o[e+4>>2];o[b+88>>2]=o[e>>2];o[b+92>>2]=d;d=o[c+4>>2];o[b+96>>2]=o[c>>2];o[b+100>>2]=d;break a;case 0:case 1:break e;case 4:break f}}f=yk(124);ue(f,c,d,e)}o[a>>2]=f;return}Nk();D()}Nk();D()}Nk();D()}o[a>>2]=b}function If(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;g=R-48|0;R=g;d=o[a+8>>2];if(d+ -2>>>0<=28){o[a+72>>2]=d;d=-1<>2]=e;o[a+76>>2]=d^-1;o[a+84>>2]=(e|0)/2}o[a+48>>2]=f;e=o[a+36>>2];d=o[e>>2];f=o[e+4>>2];o[g+16>>2]=0;o[g+8>>2]=0;o[g+12>>2]=0;f=f-d|0;a:{if((f|0)<1){break a}d=o[e>>2];if((d|0)!=o[e+4>>2]){m=a+8|0;n=a+40|0;e=f>>2;p=(e|0)>1?e:1;q=a+88|0;while(1){nf(n,o[(k<<2)+d>>2],g+8|0);e=o[g+12>>2];h=e>>31;f=o[g+8>>2];i=f>>31;l=o[g+16>>2];j=l>>31;d=0;j=j^j+l;h=j+((h^e+h)+(i^f+i)|0)|0;if(h>>>0>>0){d=1}b:{if(!(d|h)){o[g+8>>2]=o[a+84>>2];break b}i=o[a+84>>2];j=i>>31;e=Pl(Ol(i,j,e,e>>31),T,h,d);o[g+12>>2]=e;d=Pl(Ol(i,j,f,f>>31),T,h,d);o[g+8>>2]=d;f=d;d=d>>31;d=(i-(f+d^d)|0)+((e|0)<0?e:0-e|0)|0;if((l|0)>=0){o[g+16>>2]=d;break b}o[g+16>>2]=0-d}d=Uf(q);f=o[g+8>>2];c:{if(!d){e=o[g+12>>2];break c}o[g+16>>2]=0-o[g+16>>2];e=0-o[g+12>>2]|0;o[g+12>>2]=e;f=0-f|0;o[g+8>>2]=f}d:{if((f|0)>=0){d=o[a+84>>2];f=d+o[g+16>>2]|0;d=d+e|0;break d}e:{if((e|0)<=-1){f=o[g+16>>2];d=f>>31;d=d^d+f;break e}f=o[g+16>>2];d=f>>31;d=o[a+80>>2]-(d^d+f)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break d}f=e;e=e>>31;f=o[a+80>>2]-(f+e^e)|0}f:{if(!(d|f)){f=o[a+80>>2];e=f;break f}h=o[a+80>>2];g:{h:{i:{if(!d){if((f|0)==(h|0)){e=f;break f}e=0;if(f|h){break i}f=0;break f}if(!((d|0)!=(h|0)|f)){f=d;e=d;break f}if((d|0)!=(h|0)){break g}i=o[a+84>>2];break h}i=o[a+84>>2];if((i|0)<(f|0)){f=(i<<1)-f|0;break f}if(h){break g}}h=d;if((i|0)<=(f|0)){break g}f=(i<<1)-f|0;e=d;break f}j:{if((f|0)!=(h|0)){break j}e=o[a+84>>2];if((e|0)<=(d|0)){break j}e=(e<<1)-d|0;break f}if(f){e=d;break f}f=0;e=o[a+84>>2];if((e|0)>=(d|0)){e=d;break f}e=(e<<1)-d|0}d=k<<3;h=d+b|0;i=o[h+4>>2];h=o[h>>2];o[g+36>>2]=f;o[g+32>>2]=e;o[g+24>>2]=h;o[g+28>>2]=i;Ef(g+40|0,m,g+32|0,g+24|0);d=c+d|0;o[d>>2]=o[g+40>>2];o[d+4>>2]=o[g+44>>2];k=k+1|0;if((p|0)==(k|0)){break a}e=o[a+36>>2];d=o[e>>2];if(o[e+4>>2]-d>>2>>>0>k>>>0){continue}break}}Ok();D()}R=g+48|0;return 1}function Df(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;g=R-48|0;R=g;d=o[a+8>>2];if(d+ -2>>>0<=28){o[a+72>>2]=d;d=-1<>2]=e;o[a+76>>2]=d^-1;o[a+84>>2]=(e|0)/2}o[a+48>>2]=f;e=o[a+36>>2];d=o[e>>2];f=o[e+4>>2];o[g+16>>2]=0;o[g+8>>2]=0;o[g+12>>2]=0;f=f-d|0;a:{if((f|0)<1){break a}d=o[e>>2];if((d|0)!=o[e+4>>2]){m=a+8|0;n=a+40|0;e=f>>2;p=(e|0)>1?e:1;q=a+88|0;while(1){Ze(n,o[(k<<2)+d>>2],g+8|0);e=o[g+12>>2];h=e>>31;f=o[g+8>>2];i=f>>31;l=o[g+16>>2];j=l>>31;d=0;j=j^j+l;h=j+((h^e+h)+(i^f+i)|0)|0;if(h>>>0>>0){d=1}b:{if(!(d|h)){o[g+8>>2]=o[a+84>>2];break b}i=o[a+84>>2];j=i>>31;e=Pl(Ol(i,j,e,e>>31),T,h,d);o[g+12>>2]=e;d=Pl(Ol(i,j,f,f>>31),T,h,d);o[g+8>>2]=d;f=d;d=d>>31;d=(i-(f+d^d)|0)+((e|0)<0?e:0-e|0)|0;if((l|0)>=0){o[g+16>>2]=d;break b}o[g+16>>2]=0-d}d=Uf(q);f=o[g+8>>2];c:{if(!d){e=o[g+12>>2];break c}o[g+16>>2]=0-o[g+16>>2];e=0-o[g+12>>2]|0;o[g+12>>2]=e;f=0-f|0;o[g+8>>2]=f}d:{if((f|0)>=0){d=o[a+84>>2];f=d+o[g+16>>2]|0;d=d+e|0;break d}e:{if((e|0)<=-1){f=o[g+16>>2];d=f>>31;d=d^d+f;break e}f=o[g+16>>2];d=f>>31;d=o[a+80>>2]-(d^d+f)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break d}f=e;e=e>>31;f=o[a+80>>2]-(f+e^e)|0}f:{if(!(d|f)){f=o[a+80>>2];e=f;break f}h=o[a+80>>2];g:{h:{i:{if(!d){if((f|0)==(h|0)){e=f;break f}e=0;if(f|h){break i}f=0;break f}if(!((d|0)!=(h|0)|f)){f=d;e=d;break f}if((d|0)!=(h|0)){break g}i=o[a+84>>2];break h}i=o[a+84>>2];if((i|0)<(f|0)){f=(i<<1)-f|0;break f}if(h){break g}}h=d;if((i|0)<=(f|0)){break g}f=(i<<1)-f|0;e=d;break f}j:{if((f|0)!=(h|0)){break j}e=o[a+84>>2];if((e|0)<=(d|0)){break j}e=(e<<1)-d|0;break f}if(f){e=d;break f}f=0;e=o[a+84>>2];if((e|0)>=(d|0)){e=d;break f}e=(e<<1)-d|0}d=k<<3;h=d+b|0;i=o[h+4>>2];h=o[h>>2];o[g+36>>2]=f;o[g+32>>2]=e;o[g+24>>2]=h;o[g+28>>2]=i;Ef(g+40|0,m,g+32|0,g+24|0);d=c+d|0;o[d>>2]=o[g+40>>2];o[d+4>>2]=o[g+44>>2];k=k+1|0;if((p|0)==(k|0)){break a}e=o[a+36>>2];d=o[e>>2];if(o[e+4>>2]-d>>2>>>0>k>>>0){continue}break}}Ok();D()}R=g+48|0;return 1}function Hi(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0,p=0,q=0,r=0,s=0;f=R-32|0;R=f;n=o[a>>2];c=o[a+4>>2];m[f|0]=0;p=Ki(f+16|0,c-n>>2,f);o[f+8>>2]=0;o[f>>2]=0;o[f+4>>2]=0;g=o[a>>2];b=o[a+4>>2];a:{b:{while(1){c:{r=0;j=0;if((b|0)==(g|0)){break c}while(1){h=o[p>>2];d:{if(o[h+(j>>>3&536870908)>>2]>>>(j&31)&1){break d}i=o[f>>2];o[f+4>>2]=i;b=j;while(1){e:{c=b+1|0;n=b;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)==-1){break e}d=o[o[a+12>>2]+(c<<2)>>2];if((d|0)==-1){break e}c=d+1|0;b=(c>>>0)%3|0?c:d+ -2|0;if((j|0)==(b|0)|(b|0)==-1){break e}if(!(o[(b>>>3&536870908)+h>>2]>>>(b&31)&1)){continue}}break}d=i;b=d;e=n;while(1){c=(e>>>3&536870908)+h|0;o[c>>2]=o[c>>2]|1<<(e&31);c=e+1|0;c=(c>>>0)%3|0?c:e+ -2|0;l=((e>>>0)%3|0?-1:2)+e|0;if((b|0)!=(d|0)){h=o[(c<<2)+g>>2];while(1){f:{if((h|0)!=o[b>>2]){break f}e=-1;k=o[b+4>>2];e=(l|0)!=-1?o[o[a+12>>2]+(l<<2)>>2]:e;if((k|0)==(e|0)){break f}d=-1;d=(k|0)!=-1?o[o[a+12>>2]+(k<<2)>>2]:d;if((e|0)!=-1){o[o[a+12>>2]+(e<<2)>>2]=-1}c=o[a+12>>2];if((d|0)!=-1){o[c+(d<<2)>>2]=-1}o[c+(l<<2)>>2]=-1;o[c+(k<<2)>>2]=-1;r=1;break d}b=b+8|0;if((d|0)!=(b|0)){continue}break}}k=l<<2;h=o[k+g>>2];b=o[f+8>>2];g:{if((b|0)!=(d|0)){o[d>>2]=h;o[d+4>>2]=c;o[f+4>>2]=o[f+4>>2]+8;break g}q=d-i|0;d=q>>3;g=d+1|0;if(g>>>0>=536870912){break b}s=d<<3;e=b-i|0;b=e>>2;g=e>>3>>>0<268435455?b>>>0>>0?g:b:536870911;d=0;h:{if(!g){break h}if(g>>>0>=536870912){break a}d=yk(g<<3)}e=s+d|0;b=e;o[b>>2]=h;o[b+4>>2]=c;b=d+(g<<3)|0;c=e+8|0;if((q|0)>=1){ll(d,i,q)}o[f+8>>2]=b;o[f+4>>2]=c;o[f>>2]=d;if(!i){break g}jl(i)}i:{if((l|0)==-1){break i}c=o[k+o[a+12>>2]>>2];if((c|0)==-1){break i}e=c+((c>>>0)%3|0?-1:2)|0;if((n|0)==(e|0)|(e|0)==-1){break i}g=o[a>>2];h=o[p>>2];d=o[f+4>>2];i=o[f>>2];b=i;continue}break}g=o[a>>2]}j=j+1|0;b=o[a+4>>2];if(j>>>0>2>>>0){continue}break}if(r){continue}}break}a=o[f>>2];if(a){o[f+4>>2]=a;jl(a)}a=o[p>>2];if(a){jl(a)}R=f+32|0;return}Nk();D()}db(10528);D()}function aj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0;d=R-48|0;R=d;c=yk(8);o[c+4>>2]=b;o[c>>2]=0;b=c+8|0;o[d+40>>2]=b;o[d+36>>2]=b;o[d+32>>2]=c;a:{b:{c:{d:{while(1){b=b+ -8|0;i=o[b+4>>2];n=o[b>>2];o[d+36>>2]=b;if(n){o[d+24>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;j=1;b=o[a>>2];g=o[b+16>>2];f=o[b+12>>2];c=o[b+20>>2];e:{if((f|0)<(c|0)?1:(f|0)<=(c|0)?r[b+8>>2]>g>>>0?0:1:0){break e}e=p[g+o[b>>2]|0];f=g+1|0;if(f>>>0<1){c=c+1|0}o[b+16>>2]=f;o[b+20>>2]=c;Gk(d+16|0,e);if(e){f=o[a>>2];l=Kk(d+16|0);h=o[f+12>>2];g=o[f+20>>2];k=o[f+16>>2];b=e;c=k+b|0;if(c>>>0>>0){g=g+1|0}if((h|0)<(g|0)?1:(h|0)<=(g|0)?r[f+8>>2]>=c>>>0?0:1:0){break e}ll(l,k+o[f>>2]|0,e);c=f;f=c;g=o[c+20>>2];e=b+o[c+16>>2]|0;if(e>>>0>>0){g=g+1|0}o[f+16>>2]=e;o[c+20>>2]=g}i=yk(24);b=i;o[b+4>>2]=0;o[b+8>>2]=0;o[b+16>>2]=0;o[b+20>>2]=0;o[b>>2]=b+4;o[b+12>>2]=b+16;o[d+8>>2]=b;oj(n,d+16|0,d+8|0);b=o[d+8>>2];j=0;o[d+8>>2]=0;if(!b){break e}Kc(b+12|0,o[b+16>>2]);Lc(b,o[b+4>>2]);jl(b)}if(m[d+27|0]<=-1){jl(o[d+16>>2])}if(j){break b}}if(!i){break b}o[d+16>>2]=0;if(!bj(1,d+16|0,o[a>>2])){break b}b=0;c=o[d+16>>2];if(c){while(1){if(!cj(a,i)){break b}b=b+1|0;if((c|0)!=(b|0)){continue}break}}o[d+4>>2]=0;if(!bj(1,d+4|0,o[a>>2])){break b}g=o[d+4>>2];if(g){j=0;while(1){b=o[d+36>>2];c=o[d+40>>2];f:{if(b>>>0>>0){o[b+4>>2]=0;o[b>>2]=i;o[d+36>>2]=o[d+36>>2]+8;break f}h=o[d+32>>2];l=b-h|0;b=l>>3;k=b+1|0;if(k>>>0>=536870912){break d}f=b<<3;e=c-h|0;c=e>>2;e=e>>3>>>0<268435455?c>>>0>>0?k:c:536870911;b=0;g:{if(!e){break g}if(e>>>0>=536870912){break c}b=yk(e<<3)}c=f+b|0;o[c+4>>2]=0;o[c>>2]=i;e=b+(e<<3)|0;c=c+8|0;if((l|0)>=1){ll(b,h,l)}o[d+40>>2]=e;o[d+36>>2]=c;o[d+32>>2]=b;if(!h){break f}jl(h)}j=j+1|0;if((g|0)!=(j|0)){continue}break}}b=o[d+36>>2];c=o[d+32>>2];if((b|0)!=(c|0)){continue}break}a=1;break a}Nk();D()}db(10856);D()}c=o[d+32>>2];a=0}if(c){o[d+36>>2]=c;jl(c)}R=d+48|0;return a}function ke(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,q=0,s=0,t=0;a:{q=l[o[o[a>>2]+44>>2]](a)|0;if((q|0)<1){break a}h=o[b+4>>2]-o[b>>2]>>2;le(a,h,q);d=o[a+16>>2];if(!o[d+80>>2]){break a}f=o[o[d>>2]>>2];if(!f){break a}j=o[c+8>>2];i=o[c+16>>2];g=o[c+12>>2];k=g;e=o[c+20>>2];if((k|0)<(e|0)?1:(k|0)<=(e|0)?j>>>0>i>>>0?0:1:0){break a}k=u(h,q);n=f+o[d+48>>2]|0;s=o[c>>2];t=p[s+i|0];h=c;d=e;f=i+1|0;if(f>>>0<1){d=d+1|0}m=f;f=d;o[h+16>>2]=m;o[h+20>>2]=d;b:{c:{d:{if(t){if(dg(k,q,c,n)){break d}break a}if((g|0)<(f|0)?1:(g|0)<=(f|0)?j>>>0>m>>>0?0:1:0){break a}h=p[m+s|0];d=e;e=i+2|0;if(e>>>0<2){d=d+1|0}o[c+16>>2]=e;o[c+20>>2]=d;d=xi(5);e=o[o[a+16>>2]+64>>2];e=o[e+4>>2]-o[e>>2]|0;e:{if((d|0)==(h|0)){h=k<<2;if(e>>>0>>0){break a}f=o[c+12>>2];d=o[c+20>>2];i=o[c+16>>2];e=h;g=i+e|0;if(g>>>0>>0){d=d+1|0}if((f|0)>(d|0)?1:(f|0)>=(d|0)?r[c+8>>2]>>0?0:1:0){break e}break a}if(e>>>0>>0){break a}i=o[c+12>>2];d=o[c+20>>2];j=o[c+8>>2];f=j;m=o[c+16>>2];g=m;e=h;t=f-g>>>0>=Ol(e,0,k,0)>>>0?0:1;f=i-(d+(f>>>0>>0)|0)|0;g=T;if((f|0)<(g|0)?1:(f|0)<=(g|0)?t:0){break a}f=0;if(!k){break c}g=0;f=j;j=e+m|0;if(j>>>0>>0){d=d+1|0}if((i|0)<(d|0)?1:(i|0)<=(d|0)?f>>>0>=j>>>0?0:1:0){break b}j=0;while(1){ll(n+(j<<2)|0,m+o[c>>2]|0,h);d=o[c+20>>2];m=e+o[c+16>>2]|0;if(m>>>0>>0){d=d+1|0}o[c+16>>2]=m;o[c+20>>2]=d;j=j+1|0;if((k|0)==(j|0)){break d}i=o[c+12>>2];s=e+m|0;if(s>>>0>>0){d=d+1|0}if((i|0)>(d|0)?1:(i|0)>=(d|0)?r[c+8>>2]>>0?0:1:0){continue}break}break b}ll(n,i+o[c>>2]|0,h);d=o[c+20>>2];f=e+o[c+16>>2]|0;if(f>>>0>>0){d=d+1|0}o[c+16>>2]=f;o[c+20>>2]=d}f=0;if(!k){break c}e=o[a+20>>2];if(e){f=1;if(l[o[o[e>>2]+32>>2]](e)){break c}}ni(n,k,n);f=1}e=o[a+20>>2];f:{if(!e){break f}if(!l[o[o[e>>2]+40>>2]](e,c)){break a}if(!f){break f}g=0;a=o[a+20>>2];if(!l[o[o[a>>2]+44>>2]](a,n,n,k,q,o[b>>2])){break b}}g=1}return g|0}return 0}function Qg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0;d=R+ -64|0;R=d;f=o[o[b+4>>2]+44>>2];e=yk(80);o[e+12>>2]=0;o[e+16>>2]=0;o[e>>2]=9408;o[e+4>>2]=0;o[e+76>>2]=0;o[e+72>>2]=c;o[e+68>>2]=f;o[e+64>>2]=0;o[e+56>>2]=0;o[e+60>>2]=0;o[e+8>>2]=9572;g=e+20|0;o[g>>2]=0;o[g+4>>2]=0;l=e+28|0;i=l;o[i>>2]=0;o[i+4>>2]=0;o[e+36>>2]=0;o[e+40>>2]=0;i=e+44|0;o[i>>2]=0;o[i+4>>2]=0;o[e+52>>2]=0;b=o[b+8>>2];n=d+40|0;j=n;o[j>>2]=0;o[j+4>>2]=0;o[d+32>>2]=0;o[d+36>>2]=0;j=d+16|0;h=j;o[h>>2]=0;o[h+4>>2]=0;o[d+56>>2]=0;o[d+24>>2]=0;o[d+28>>2]=0;o[d+8>>2]=0;o[d+12>>2]=0;o[d+48>>2]=0;o[d+52>>2]=0;o[d>>2]=9572;o[d+4>>2]=b;h=o[b>>2];k=o[b+4>>2];m[d+63|0]=0;eb(d+24|0,(k-h>>2>>>0)/3|0,d+63|0);h=o[d+4>>2];k=o[h+28>>2];h=o[h+24>>2];m[d+63|0]=0;eb(d+36|0,k-h>>2,d+63|0);o[d+20>>2]=e;o[j>>2]=f;f=d+12|0;o[f>>2]=c;o[d+8>>2]=b;o[l>>2]=e;b=o[f+4>>2];o[g>>2]=o[f>>2];o[g+4>>2]=b;b=o[d+8>>2];o[e+12>>2]=o[d+4>>2];o[e+16>>2]=b;a:{b:{c=e;b=o[d+28>>2];if(b){f=e+32|0;c:{if(b>>>0<=o[e+40>>2]<<5>>>0){g=b+ -1>>>5|0;b=o[f>>2];break c}f=o[f>>2];if(f){jl(f);o[e+40>>2]=0;o[e+32>>2]=0;o[e+36>>2]=0;b=o[d+28>>2]}if((b|0)<=-1){break b}g=b+ -1>>>5|0;f=g+1|0;b=yk(f<<2);o[e+40>>2]=f;o[e+36>>2]=0;o[e+32>>2]=b}nl(b,o[d+24>>2],(g<<2)+4|0);b=o[d+28>>2]}else{b=0}o[c+36>>2]=b;j=e;b=o[n>>2];if(b){d:{if(b>>>0<=o[e+52>>2]<<5>>>0){c=b+ -1>>>5|0;b=o[i>>2];break d}c=o[i>>2];if(c){jl(c);o[e+52>>2]=0;o[e+44>>2]=0;o[e+48>>2]=0;b=o[d+40>>2]}if((b|0)<=-1){break a}c=b+ -1>>>5|0;g=c+1|0;b=yk(g<<2);o[e+52>>2]=g;o[e+48>>2]=0;o[e+44>>2]=b}nl(b,o[d+36>>2],(c<<2)+4|0);b=o[d+40>>2]}else{b=0}o[j+48>>2]=b;yd(e+56|0,o[d+48>>2],o[d+52>>2]);o[a>>2]=e;o[d>>2]=9572;a=o[d+48>>2];if(a){o[d+52>>2]=a;jl(a)}o[d>>2]=9388;a=o[d+36>>2];if(a){jl(a)}a=o[d+24>>2];if(a){jl(a)}R=d- -64|0;return}Nk();D()}Nk();D()}function _i(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,v=0;d=u(b,12)+a|0;k=d+12|0;m=d+8|0;o[k>>2]=o[m>>2];i=(c|0)==-1?-1:(c>>>0)/3|0;q=d+16|0;d=0;h=c;a:{b:{c:{while(1){d:{n=d;r=(d|0)!=1;if(!r){if((h|0)==-1){break d}if(($i(a,((h>>>0)%3|0?-1:2)+h|0)|0)==-1){break a}c=h+1|0;d=(c>>>0)%3|0?c:h+ -2|0;if((d|0)==-1){break a}c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1){break a}d=o[o[o[a+4>>2]+12>>2]+(c<<2)>>2];if((d|0)==-1){break a}c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1){break a}i=(c>>>0)/3|0}j=o[a+56>>2]+(i>>>3&536870908)|0;g=o[j>>2];f=1<<(i&31);e:{if(g&f){break e}d=0;while(1){o[j>>2]=g|f;e=o[k>>2];f=o[q>>2];f:{if((e|0)!=(f|0)){o[e>>2]=i;o[k>>2]=e+4;break f}l=o[m>>2];p=e-l|0;e=p>>2;j=e+1|0;if(j>>>0>=1073741824){break c}s=e<<2;g=f-l|0;f=g>>1;g=g>>2>>>0<536870911?f>>>0>>0?j:f:1073741823;e=0;g:{if(!g){break g}if(g>>>0>=1073741824){break b}e=yk(g<<2)}f=s+e|0;o[f>>2]=i;g=e+(g<<2)|0;f=f+4|0;if((p|0)>=1){ll(e,l,p)}o[m>>2]=e;o[k>>2]=f;o[q>>2]=g;if(!l){break f}jl(l)}e=d+1|0;h:{if(!d){break h}if(e&1){if((c|0)==-1){c=-1;break h}d=c+1|0;c=(d>>>0)%3|0?d:c+ -2|0;break h}h=(n|0)==1?c:h;if((c|0)==-1){c=-1;break h}if((c>>>0)%3){c=c+ -1|0;break h}c=c+2|0}c=$i(a,c);if((c|0)!=-1){d=e;i=(c>>>0)/3|0;j=o[a+56>>2]+(i>>>3&268435452)|0;g=o[j>>2];f=1<<(i&31);if(!(g&f)){continue}}break}if(r|!(e&1)){break e}g=o[k>>2]+ -4|0;f=o[g>>2];e=o[a+56>>2]+(f>>>3&536870908)|0;d=o[e>>2];t=e,v=Sl(f)&d,o[t>>2]=v;o[k>>2]=g}d=1;if(!n){continue}break a}break}h=-1;$i(a,-1);break a}Nk();D()}db(10788);D()}o[((b<<2)+a|0)+44>>2]=h;b=o[k>>2];h=o[m>>2];if((b|0)!=(h|0)){b=b-h>>2;n=b>>>0>1?b:1;e=o[a+56>>2];c=0;while(1){d=o[h+(c<<2)>>2];b=e+(d>>>3&536870908)|0;a=o[b>>2];t=b,v=Sl(d)&a,o[t>>2]=v;c=c+1|0;if((n|0)!=(c|0)){continue}break}}}function Ef(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=o[b+12>>2];f=o[c+4>>2]-k|0;e=o[c>>2]-k|0;o[c>>2]=e;o[c+4>>2]=f;g=f>>31;h=g+f^g;g=e>>31;i=o[b+12>>2];l=(h+(g+e^g)|0)<=(i|0);if(!l){a:{b:{if((e|0)>=0){g=1;j=1;if((f|0)>-1){break a}h=1;g=-1;j=-1;if((e|0)>=1){break b}break a}h=-1;g=-1;j=-1;if((f|0)<1){break a}}g=(f|0)<1?-1:1;j=h}h=f<<1;f=u(g,i);h=h-f|0;o[c+4>>2]=h;i=u(i,j);e=(e<<1)-i|0;o[c>>2]=e;c:{if((u(g,j)|0)>=0){h=0-h|0;o[c>>2]=h;e=0-e|0;break c}o[c>>2]=h}f=(e+f|0)/2|0;o[c+4>>2]=f;e=(i+h|0)/2|0;o[c>>2]=e}d:{e:{f:{g:{h:{i:{j:{k:{if(!e){if(f){break j}i=1;j=0;break k}i=1;g=(e|0)<0&(f|0)<1;if((e|0)>=1){j=(f|0)>-1?2:1;if(g){break k}break i}j=(f|0)>0?3:0;if(!g){break i}}g=f;h=e;break d}if((f|0)>=1){break f}break h}g=j+ -1|0;if(g>>>0>2){g=f;f=e;j=0;break e}switch(g-1|0){case 0:break g;case 1:break f;default:break h}}g=0-e|0;j=1;break e}g=0-f|0;f=0-e|0;j=2;break e}g=e;f=0-f|0;j=3}e=c;h=f;o[e>>2]=f;o[e+4>>2]=g;i=0}f=o[d>>2]+h|0;o[a>>2]=f;e=o[d+4>>2]+g|0;o[a+4>>2]=e;g=o[b+12>>2];l:{if((g|0)<(f|0)){f=f-o[b+4>>2]|0;break l}if((f|0)>=(0-g|0)){break l}f=o[b+4>>2]+f|0}o[a>>2]=f;m:{if((g|0)<(e|0)){e=e-o[b+4>>2]|0;break m}if((e|0)>=(0-g|0)){break m}e=o[b+4>>2]+e|0}o[a+4>>2]=e;n:{if(i){c=e;e=f;break n}b=(4-j&3)+ -1|0;o:{if(b>>>0>2){c=e;e=f;break o}p:{switch(b-1|0){default:c=0-f|0;break o;case 0:c=0-e|0;e=0-f|0;break o;case 1:break p}}e=0-e|0;c=f}o[a>>2]=e;o[a+4>>2]=c}if(!l){q:{r:{if((e|0)>=0){b=1;i=1;if((c|0)>-1){break q}f=1;b=-1;i=-1;if((e|0)>=1){break r}break q}f=-1;b=-1;i=-1;if((c|0)<1){break q}}b=(c|0)<1?-1:1;i=f}d=c<<1;c=u(b,g);f=d-c|0;o[a+4>>2]=f;d=u(g,i);e=(e<<1)-d|0;o[a>>2]=e;s:{if((u(b,i)|0)>=0){f=0-f|0;o[a>>2]=f;e=0-e|0;break s}o[a>>2]=f}c=(c+e|0)/2|0;o[a+4>>2]=c;e=(d+f|0)/2|0;o[a>>2]=e}o[a>>2]=e+k;o[a+4>>2]=c+k}function Vh(a,b){var c=0,d=0,e=0;o[a>>2]=o[b>>2];o[a+4>>2]=o[b+4>>2];o[a+8>>2]=o[b+8>>2];c=b+12|0;o[a+12>>2]=o[c>>2];o[c>>2]=0;o[b+4>>2]=0;o[b+8>>2]=0;c=b+16|0;o[a+16>>2]=o[c>>2];o[a+20>>2]=o[b+20>>2];d=b+24|0;o[a+24>>2]=o[d>>2];o[d>>2]=0;o[c>>2]=0;o[c+4>>2]=0;d=p[b+28|0];e=a+40|0;o[e>>2]=0;c=a+32|0;o[c>>2]=0;o[c+4>>2]=0;m[a+28|0]=d;d=c;c=b+32|0;o[d>>2]=o[c>>2];o[a+36>>2]=o[b+36>>2];d=b+40|0;o[e>>2]=o[d>>2];o[d>>2]=0;o[c>>2]=0;o[c+4>>2]=0;d=a+52|0;o[d>>2]=0;c=a+44|0;o[c>>2]=0;o[c+4>>2]=0;e=c;c=b+44|0;o[e>>2]=o[c>>2];o[a+48>>2]=o[b+48>>2];e=d;d=b+52|0;o[e>>2]=o[d>>2];o[d>>2]=0;o[c>>2]=0;o[c+4>>2]=0;d=a- -64|0;o[d>>2]=0;c=a+56|0;o[c>>2]=0;o[c+4>>2]=0;e=c;c=b+56|0;o[e>>2]=o[c>>2];o[a+60>>2]=o[b+60>>2];e=d;d=b- -64|0;o[e>>2]=o[d>>2];o[d>>2]=0;o[c>>2]=0;o[c+4>>2]=0;o[a+68>>2]=o[b+68>>2];d=o[b+72>>2];e=a+84|0;o[e>>2]=0;c=a+76|0;o[c>>2]=0;o[c+4>>2]=0;o[a+72>>2]=d;d=c;c=b+76|0;o[d>>2]=o[c>>2];o[a+80>>2]=o[b+80>>2];d=b+84|0;o[e>>2]=o[d>>2];o[d>>2]=0;o[c>>2]=0;o[c+4>>2]=0;d=a+96|0;o[d>>2]=0;c=a+88|0;o[c>>2]=0;o[c+4>>2]=0;e=c;c=b+88|0;o[e>>2]=o[c>>2];o[a+92>>2]=o[b+92>>2];e=d;d=b+96|0;o[e>>2]=o[d>>2];o[d>>2]=0;o[c>>2]=0;o[c+4>>2]=0;c=p[b+100|0];d=a+112|0;o[d>>2]=0;o[a+104>>2]=0;o[a+108>>2]=0;m[a+100|0]=c;o[a+104>>2]=o[b+104>>2];o[a+108>>2]=o[b+108>>2];c=b+112|0;o[d>>2]=o[c>>2];o[c>>2]=0;o[b+104>>2]=0;o[b+108>>2]=0;d=a+124|0;o[d>>2]=0;c=a+116|0;o[c>>2]=0;o[c+4>>2]=0;e=c;c=b+116|0;o[e>>2]=o[c>>2];o[a+120>>2]=o[b+120>>2];e=d;d=b+124|0;o[e>>2]=o[d>>2];o[d>>2]=0;o[c>>2]=0;o[c+4>>2]=0;c=o[b+128>>2];d=a+140|0;o[d>>2]=0;o[a+132>>2]=0;o[a+136>>2]=0;o[a+128>>2]=c;o[a+132>>2]=o[b+132>>2];o[a+136>>2]=o[b+136>>2];c=b+140|0;o[d>>2]=o[c>>2];o[c>>2]=0;o[b+132>>2]=0;o[b+136>>2]=0;return a}function bh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0;h=R-16|0;R=h;o[h>>2]=b;g=-1;a:{if((b|0)==-1){o[h+4>>2]=-1;break a}c=b+1|0;o[h+4>>2]=(c>>>0)%3|0?c:b+ -2|0;if((b>>>0)%3){g=b+ -1|0;break a}g=b+2|0}o[h+8>>2]=g;p=(b|0)==-1?-1:(b>>>0)/3|0;b:{c:{d:{e:{while(1){f:{g:{if((b|0)!=-1){c=o[o[o[a+8>>2]+12>>2]+(b<<2)>>2];if((c|0)!=-1){break g}}g=0;c=o[a+216>>2];if((c|0)==o[a+220>>2]){break f}while(1){f=u(g,144)+c|0;i=f+136|0;c=o[i>>2];k=f+140|0;d=o[k>>2];h:{if(c>>>0>>0){o[c>>2]=b;o[i>>2]=c+4;break h}l=f+132|0;f=o[l>>2];j=c-f|0;c=j>>2;e=c+1|0;if(e>>>0>=1073741824){break e}m=c<<2;d=d-f|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;i:{if(!e){break i}if(e>>>0>=1073741824){break d}c=yk(e<<2)}d=m+c|0;o[d>>2]=b;e=c+(e<<2)|0;d=d+4|0;if((j|0)>=1){ll(c,f,j)}o[l>>2]=c;o[i>>2]=d;o[k>>2]=e;if(!f){break h}jl(f)}g=g+1|0;c=o[a+216>>2];if(g>>>0<(o[a+220>>2]-c|0)/144>>>0){continue}break}break f}if((c>>>0)/3>>>0

>>0){break f}g=0;if(o[a+220>>2]==o[a+216>>2]){break f}while(1){j:{if(!Uf(o[a+368>>2]+(g<<4)|0)){break j}f=o[a+216>>2]+u(g,144)|0;i=f+136|0;c=o[i>>2];k=f+140|0;d=o[k>>2];if(c>>>0>>0){o[c>>2]=b;o[i>>2]=c+4;break j}l=f+132|0;f=o[l>>2];j=c-f|0;c=j>>2;e=c+1|0;if(e>>>0>=1073741824){break c}m=c<<2;d=d-f|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;k:{if(!e){break k}if(e>>>0>=1073741824){break b}c=yk(e<<2)}d=m+c|0;o[d>>2]=b;e=c+(e<<2)|0;d=d+4|0;if((j|0)>=1){ll(c,f,j)}o[l>>2]=c;o[i>>2]=d;o[k>>2]=e;if(!f){break j}jl(f)}g=g+1|0;if(g>>>0<(o[a+220>>2]-o[a+216>>2]|0)/144>>>0){continue}break}}n=n+1|0;if((n|0)!=3){b=o[(n<<2)+h>>2];continue}break}R=h+16|0;return 1}Nk();D()}db(8832);D()}Nk();D()}db(8832);D()}function yj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{if((b|0)<0){break a}c=o[a+12>>2];d=o[a+8>>2];if(c-d>>2>>>0<=b>>>0){break a}d=d+(b<<2)|0;e=o[d>>2];h=o[e+60>>2];f=o[e+56>>2];e=d+4|0;b:{if((e|0)!=(c|0)){while(1){i=o[e>>2];o[e>>2]=0;g=o[d>>2];o[d>>2]=i;if(g){Kb(g)}d=d+4|0;e=e+4|0;if((e|0)!=(c|0)){continue}break}c=o[a+12>>2];if((d|0)==(c|0)){break b}}while(1){c=c+ -4|0;e=o[c>>2];o[c>>2]=0;if(e){Kb(e)}if((c|0)!=(d|0)){continue}break}}o[a+12>>2]=d;c=o[a+4>>2];if(c){zj(c,h)}c:{if((f|0)>4){break c}d:{d=u(f,12)+a|0;c=o[d+20>>2];e=d+24|0;d=o[e>>2];if((c|0)==(d|0)){break d}while(1){if(o[c>>2]==(b|0)){break d}c=c+4|0;if((d|0)!=(c|0)){continue}break}break c}if((c|0)==(d|0)){break c}f=c+4|0;d=d-f|0;g=d>>2;if(d){nl(c,f,d)}o[e>>2]=(g<<2)+c}c=o[a+24>>2];d=o[a+20>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=o[f>>2];if((g|0)>(b|0)){o[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=o[a+36>>2];d=o[a+32>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=o[f>>2];if((g|0)>(b|0)){o[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=o[a+48>>2];d=o[a+44>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=o[f>>2];if((g|0)>(b|0)){o[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=o[a+60>>2];d=o[a+56>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=o[f>>2];if((g|0)>(b|0)){o[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=o[a+72>>2];a=o[a+68>>2];if((c|0)==(a|0)){break a}c=c-a>>2;d=c>>>0>1?c:1;c=0;while(1){e=a+(c<<2)|0;f=o[e>>2];if((f|0)>(b|0)){o[e>>2]=f+ -1}c=c+1|0;if((d|0)!=(c|0)){continue}break}}}function pg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;d=R+ -64|0;R=d;o[d+48>>2]=0;o[d+40>>2]=0;o[d+44>>2]=0;o[d+32>>2]=0;o[d+36>>2]=0;o[d+24>>2]=0;o[d+28>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;o[d+8>>2]=0;o[d+12>>2]=0;o[d>>2]=0;o[d+4>>2]=0;a:{if(!yg(d,b)|(o[d+12>>2]?0:a)){break a}if(!sg(1,d+56|0,b)){break a}f=o[b+8>>2];l=o[b+16>>2];g=l;j=f-g|0;i=o[d+60>>2];e=i;k=o[b+20>>2];g=o[b+12>>2]-(k+(f>>>0>>0)|0)|0;f=o[d+56>>2];if((e|0)==(g|0)&f>>>0>j>>>0|e>>>0>g>>>0){break a}i=i+k|0;g=l;k=g+f|0;if(k>>>0>>0){i=i+1|0}o[b+16>>2]=k;o[b+20>>2]=i;if((f|0)<1){break a}j=l+o[b>>2]|0;o[d+40>>2]=j;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=j+b|0;switch((p[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;o[d+44>>2]=b;e=(f+j|0)+ -2|0;e=p[e+1|0]<<8&16128|p[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;o[d+44>>2]=b;e=(f+j|0)+ -3|0;e=p[e+1|0]<<8|p[e+2|0]<<16&4128768|p[e|0];break b}b=f+ -4|0;o[d+44>>2]=b;e=(f+j|0)+ -4|0;e=p[e+2|0]<<16|p[e+3|0]<<24&1056964608|p[e+1|0]<<8|p[e|0];break b}o[d+44>>2]=b;e=p[e|0]&63}h=e+4194304|0;o[g+48>>2]=h;m=h>>>0<1073741824;if(!a|h>>>0>1073741823){break a}k=o[d+28>>2];i=0;l=o[d+16>>2];while(1){g:{if(h>>>0>4194303){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;o[d+44>>2]=b;h=p[b+j|0]|h<<8;o[d+48>>2]=h;if(h>>>0<4194304){continue}break}}f=h&1048575;e=o[(f<<2)+l>>2];g=(e<<3)+k|0;h=(u(o[g>>2],h>>>20|0)+f|0)-o[g+4>>2]|0;o[d+48>>2]=h;o[(i<<2)+c>>2]=e;m=1;i=i+1|0;if((i|0)!=(a|0)){continue}break}}a=o[d+28>>2];if(a){o[d+32>>2]=a;jl(a)}a=o[d+16>>2];if(a){o[d+20>>2]=a;jl(a)}a=o[d>>2];if(a){o[d+4>>2]=a;jl(a)}R=d- -64|0;return m}function ng(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;d=R+ -64|0;R=d;o[d+48>>2]=0;o[d+40>>2]=0;o[d+44>>2]=0;o[d+32>>2]=0;o[d+36>>2]=0;o[d+24>>2]=0;o[d+28>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;o[d+8>>2]=0;o[d+12>>2]=0;o[d>>2]=0;o[d+4>>2]=0;a:{if(!wg(d,b)|(o[d+12>>2]?0:a)){break a}if(!sg(1,d+56|0,b)){break a}f=o[b+8>>2];l=o[b+16>>2];g=l;j=f-g|0;i=o[d+60>>2];e=i;k=o[b+20>>2];g=o[b+12>>2]-(k+(f>>>0>>0)|0)|0;f=o[d+56>>2];if((e|0)==(g|0)&f>>>0>j>>>0|e>>>0>g>>>0){break a}i=i+k|0;g=l;k=g+f|0;if(k>>>0>>0){i=i+1|0}o[b+16>>2]=k;o[b+20>>2]=i;if((f|0)<1){break a}j=l+o[b>>2]|0;o[d+40>>2]=j;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=j+b|0;switch((p[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;o[d+44>>2]=b;e=(f+j|0)+ -2|0;e=p[e+1|0]<<8&16128|p[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;o[d+44>>2]=b;e=(f+j|0)+ -3|0;e=p[e+1|0]<<8|p[e+2|0]<<16&4128768|p[e|0];break b}b=f+ -4|0;o[d+44>>2]=b;e=(f+j|0)+ -4|0;e=p[e+2|0]<<16|p[e+3|0]<<24&1056964608|p[e+1|0]<<8|p[e|0];break b}o[d+44>>2]=b;e=p[e|0]&63}h=e- -1048576|0;o[g+48>>2]=h;m=h>>>0<268435456;if(!a|h>>>0>268435455){break a}k=o[d+28>>2];i=0;l=o[d+16>>2];while(1){g:{if(h>>>0>1048575){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;o[d+44>>2]=b;h=p[b+j|0]|h<<8;o[d+48>>2]=h;if(h>>>0<1048576){continue}break}}f=h&262143;e=o[(f<<2)+l>>2];g=(e<<3)+k|0;h=(u(o[g>>2],h>>>18|0)+f|0)-o[g+4>>2]|0;o[d+48>>2]=h;o[(i<<2)+c>>2]=e;m=1;i=i+1|0;if((i|0)!=(a|0)){continue}break}}a=o[d+28>>2];if(a){o[d+32>>2]=a;jl(a)}a=o[d+16>>2];if(a){o[d+20>>2]=a;jl(a)}a=o[d>>2];if(a){o[d+4>>2]=a;jl(a)}R=d- -64|0;return m}function og(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;d=R+ -64|0;R=d;o[d+48>>2]=0;o[d+40>>2]=0;o[d+44>>2]=0;o[d+32>>2]=0;o[d+36>>2]=0;o[d+24>>2]=0;o[d+28>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;o[d+8>>2]=0;o[d+12>>2]=0;o[d>>2]=0;o[d+4>>2]=0;a:{if(!xg(d,b)|(o[d+12>>2]?0:a)){break a}if(!sg(1,d+56|0,b)){break a}f=o[b+8>>2];l=o[b+16>>2];g=l;j=f-g|0;i=o[d+60>>2];e=i;k=o[b+20>>2];g=o[b+12>>2]-(k+(f>>>0>>0)|0)|0;f=o[d+56>>2];if((e|0)==(g|0)&f>>>0>j>>>0|e>>>0>g>>>0){break a}i=i+k|0;g=l;k=g+f|0;if(k>>>0>>0){i=i+1|0}o[b+16>>2]=k;o[b+20>>2]=i;if((f|0)<1){break a}j=l+o[b>>2]|0;o[d+40>>2]=j;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=j+b|0;switch((p[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;o[d+44>>2]=b;e=(f+j|0)+ -2|0;e=p[e+1|0]<<8&16128|p[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;o[d+44>>2]=b;e=(f+j|0)+ -3|0;e=p[e+1|0]<<8|p[e+2|0]<<16&4128768|p[e|0];break b}b=f+ -4|0;o[d+44>>2]=b;e=(f+j|0)+ -4|0;e=p[e+2|0]<<16|p[e+3|0]<<24&1056964608|p[e+1|0]<<8|p[e|0];break b}o[d+44>>2]=b;e=p[e|0]&63}h=e+2097152|0;o[g+48>>2]=h;m=h>>>0<536870912;if(!a|h>>>0>536870911){break a}k=o[d+28>>2];i=0;l=o[d+16>>2];while(1){g:{if(h>>>0>2097151){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;o[d+44>>2]=b;h=p[b+j|0]|h<<8;o[d+48>>2]=h;if(h>>>0<2097152){continue}break}}f=h&524287;e=o[(f<<2)+l>>2];g=(e<<3)+k|0;h=(u(o[g>>2],h>>>19|0)+f|0)-o[g+4>>2]|0;o[d+48>>2]=h;o[(i<<2)+c>>2]=e;m=1;i=i+1|0;if((i|0)!=(a|0)){continue}break}}a=o[d+28>>2];if(a){o[d+32>>2]=a;jl(a)}a=o[d+16>>2];if(a){o[d+20>>2]=a;jl(a)}a=o[d>>2];if(a){o[d+4>>2]=a;jl(a)}R=d- -64|0;return m}function mg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;d=R+ -64|0;R=d;o[d+48>>2]=0;o[d+40>>2]=0;o[d+44>>2]=0;o[d+32>>2]=0;o[d+36>>2]=0;o[d+24>>2]=0;o[d+28>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;o[d+8>>2]=0;o[d+12>>2]=0;o[d>>2]=0;o[d+4>>2]=0;a:{if(!vg(d,b)|(o[d+12>>2]?0:a)){break a}if(!sg(1,d+56|0,b)){break a}f=o[b+8>>2];l=o[b+16>>2];g=l;j=f-g|0;i=o[d+60>>2];e=i;k=o[b+20>>2];g=o[b+12>>2]-(k+(f>>>0>>0)|0)|0;f=o[d+56>>2];if((e|0)==(g|0)&f>>>0>j>>>0|e>>>0>g>>>0){break a}i=i+k|0;g=l;k=g+f|0;if(k>>>0>>0){i=i+1|0}o[b+16>>2]=k;o[b+20>>2]=i;if((f|0)<1){break a}j=l+o[b>>2]|0;o[d+40>>2]=j;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=j+b|0;switch((p[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;o[d+44>>2]=b;e=(f+j|0)+ -2|0;e=p[e+1|0]<<8&16128|p[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;o[d+44>>2]=b;e=(f+j|0)+ -3|0;e=p[e+1|0]<<8|p[e+2|0]<<16&4128768|p[e|0];break b}b=f+ -4|0;o[d+44>>2]=b;e=(f+j|0)+ -4|0;e=p[e+2|0]<<16|p[e+3|0]<<24&1056964608|p[e+1|0]<<8|p[e|0];break b}o[d+44>>2]=b;e=p[e|0]&63}h=e+262144|0;o[g+48>>2]=h;m=h>>>0<67108864;if(!a|h>>>0>67108863){break a}k=o[d+28>>2];i=0;l=o[d+16>>2];while(1){g:{if(h>>>0>262143){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;o[d+44>>2]=b;h=p[b+j|0]|h<<8;o[d+48>>2]=h;if(h>>>0<262144){continue}break}}f=h&65535;e=o[(f<<2)+l>>2];g=(e<<3)+k|0;h=(u(o[g>>2],h>>>16|0)+f|0)-o[g+4>>2]|0;o[d+48>>2]=h;o[(i<<2)+c>>2]=e;m=1;i=i+1|0;if((i|0)!=(a|0)){continue}break}}a=o[d+28>>2];if(a){o[d+32>>2]=a;jl(a)}a=o[d+16>>2];if(a){o[d+20>>2]=a;jl(a)}a=o[d>>2];if(a){o[d+4>>2]=a;jl(a)}R=d- -64|0;return m}function lg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;d=R+ -64|0;R=d;o[d+48>>2]=0;o[d+40>>2]=0;o[d+44>>2]=0;o[d+32>>2]=0;o[d+36>>2]=0;o[d+24>>2]=0;o[d+28>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;o[d+8>>2]=0;o[d+12>>2]=0;o[d>>2]=0;o[d+4>>2]=0;a:{if(!ug(d,b)|(o[d+12>>2]?0:a)){break a}if(!sg(1,d+56|0,b)){break a}f=o[b+8>>2];l=o[b+16>>2];g=l;j=f-g|0;i=o[d+60>>2];e=i;k=o[b+20>>2];g=o[b+12>>2]-(k+(f>>>0>>0)|0)|0;f=o[d+56>>2];if((e|0)==(g|0)&f>>>0>j>>>0|e>>>0>g>>>0){break a}i=i+k|0;g=l;k=g+f|0;if(k>>>0>>0){i=i+1|0}o[b+16>>2]=k;o[b+20>>2]=i;if((f|0)<1){break a}j=l+o[b>>2]|0;o[d+40>>2]=j;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=j+b|0;switch((p[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;o[d+44>>2]=b;e=(f+j|0)+ -2|0;e=p[e+1|0]<<8&16128|p[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;o[d+44>>2]=b;e=(f+j|0)+ -3|0;e=p[e+1|0]<<8|p[e+2|0]<<16&4128768|p[e|0];break b}b=f+ -4|0;o[d+44>>2]=b;e=(f+j|0)+ -4|0;e=p[e+2|0]<<16|p[e+3|0]<<24&1056964608|p[e+1|0]<<8|p[e|0];break b}o[d+44>>2]=b;e=p[e|0]&63}h=e+131072|0;o[g+48>>2]=h;m=h>>>0<33554432;if(!a|h>>>0>33554431){break a}k=o[d+28>>2];i=0;l=o[d+16>>2];while(1){g:{if(h>>>0>131071){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;o[d+44>>2]=b;h=p[b+j|0]|h<<8;o[d+48>>2]=h;if(h>>>0<131072){continue}break}}f=h&32767;e=o[(f<<2)+l>>2];g=(e<<3)+k|0;h=(u(o[g>>2],h>>>15|0)+f|0)-o[g+4>>2]|0;o[d+48>>2]=h;o[(i<<2)+c>>2]=e;m=1;i=i+1|0;if((i|0)!=(a|0)){continue}break}}a=o[d+28>>2];if(a){o[d+32>>2]=a;jl(a)}a=o[d+16>>2];if(a){o[d+20>>2]=a;jl(a)}a=o[d>>2];if(a){o[d+4>>2]=a;jl(a)}R=d- -64|0;return m}function kg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;d=R+ -64|0;R=d;o[d+48>>2]=0;o[d+40>>2]=0;o[d+44>>2]=0;o[d+32>>2]=0;o[d+36>>2]=0;o[d+24>>2]=0;o[d+28>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;o[d+8>>2]=0;o[d+12>>2]=0;o[d>>2]=0;o[d+4>>2]=0;a:{if(!tg(d,b)|(o[d+12>>2]?0:a)){break a}if(!sg(1,d+56|0,b)){break a}f=o[b+8>>2];l=o[b+16>>2];g=l;j=f-g|0;i=o[d+60>>2];e=i;k=o[b+20>>2];g=o[b+12>>2]-(k+(f>>>0>>0)|0)|0;f=o[d+56>>2];if((e|0)==(g|0)&f>>>0>j>>>0|e>>>0>g>>>0){break a}i=i+k|0;g=l;k=g+f|0;if(k>>>0>>0){i=i+1|0}o[b+16>>2]=k;o[b+20>>2]=i;if((f|0)<1){break a}j=l+o[b>>2]|0;o[d+40>>2]=j;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=j+b|0;switch((p[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;o[d+44>>2]=b;e=(f+j|0)+ -2|0;e=p[e+1|0]<<8&16128|p[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;o[d+44>>2]=b;e=(f+j|0)+ -3|0;e=p[e+1|0]<<8|p[e+2|0]<<16&4128768|p[e|0];break b}b=f+ -4|0;o[d+44>>2]=b;e=(f+j|0)+ -4|0;e=p[e+2|0]<<16|p[e+3|0]<<24&1056964608|p[e+1|0]<<8|p[e|0];break b}o[d+44>>2]=b;e=p[e|0]&63}h=e+32768|0;o[g+48>>2]=h;m=h>>>0<8388608;if(!a|h>>>0>8388607){break a}k=o[d+28>>2];i=0;l=o[d+16>>2];while(1){g:{if(h>>>0>32767){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;o[d+44>>2]=b;h=p[b+j|0]|h<<8;o[d+48>>2]=h;if(h>>>0<32768){continue}break}}f=h&8191;e=o[(f<<2)+l>>2];g=(e<<3)+k|0;h=(u(o[g>>2],h>>>13|0)+f|0)-o[g+4>>2]|0;o[d+48>>2]=h;o[(i<<2)+c>>2]=e;m=1;i=i+1|0;if((i|0)!=(a|0)){continue}break}}a=o[d+28>>2];if(a){o[d+32>>2]=a;jl(a)}a=o[d+16>>2];if(a){o[d+20>>2]=a;jl(a)}a=o[d>>2];if(a){o[d+4>>2]=a;jl(a)}R=d- -64|0;return m}function ig(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;d=R+ -64|0;R=d;o[d+48>>2]=0;o[d+40>>2]=0;o[d+44>>2]=0;o[d+32>>2]=0;o[d+36>>2]=0;o[d+24>>2]=0;o[d+28>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;o[d+8>>2]=0;o[d+12>>2]=0;o[d>>2]=0;o[d+4>>2]=0;a:{if(!gg(d,b)|(o[d+12>>2]?0:a)){break a}if(!sg(1,d+56|0,b)){break a}f=o[b+8>>2];l=o[b+16>>2];g=l;j=f-g|0;i=o[d+60>>2];e=i;k=o[b+20>>2];g=o[b+12>>2]-(k+(f>>>0>>0)|0)|0;f=o[d+56>>2];if((e|0)==(g|0)&f>>>0>j>>>0|e>>>0>g>>>0){break a}i=i+k|0;g=l;k=g+f|0;if(k>>>0>>0){i=i+1|0}o[b+16>>2]=k;o[b+20>>2]=i;if((f|0)<1){break a}j=l+o[b>>2]|0;o[d+40>>2]=j;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=j+b|0;switch((p[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;o[d+44>>2]=b;e=(f+j|0)+ -2|0;e=p[e+1|0]<<8&16128|p[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;o[d+44>>2]=b;e=(f+j|0)+ -3|0;e=p[e+1|0]<<8|p[e+2|0]<<16&4128768|p[e|0];break b}b=f+ -4|0;o[d+44>>2]=b;e=(f+j|0)+ -4|0;e=p[e+2|0]<<16|p[e+3|0]<<24&1056964608|p[e+1|0]<<8|p[e|0];break b}o[d+44>>2]=b;e=p[e|0]&63}h=e+16384|0;o[g+48>>2]=h;m=h>>>0<4194304;if(!a|h>>>0>4194303){break a}k=o[d+28>>2];i=0;l=o[d+16>>2];while(1){g:{if(h>>>0>16383){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;o[d+44>>2]=b;h=p[b+j|0]|h<<8;o[d+48>>2]=h;if(h>>>0<16384){continue}break}}f=h&4095;e=o[(f<<2)+l>>2];g=(e<<3)+k|0;h=(u(o[g>>2],h>>>12|0)+f|0)-o[g+4>>2]|0;o[d+48>>2]=h;o[(i<<2)+c>>2]=e;m=1;i=i+1|0;if((i|0)!=(a|0)){continue}break}}a=o[d+28>>2];if(a){o[d+32>>2]=a;jl(a)}a=o[d+16>>2];if(a){o[d+20>>2]=a;jl(a)}a=o[d>>2];if(a){o[d+4>>2]=a;jl(a)}R=d- -64|0;return m}function yg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if(!q[b+38>>1]){break a}l=a+12|0;if(!qg(1,l,b)){break a}f=o[a+12>>2];c=o[a>>2];d=o[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){Ia(a,f-d|0);f=o[a+12>>2];break b}if(f>>>0>=d>>>0){break b}o[a+4>>2]=c+(f<<2)}if(!f){return 1}m=o[b+8>>2];i=o[b+12>>2];while(1){e=o[b+16>>2];d=o[b+20>>2];c=d;if((i|0)<(c|0)?1:(i|0)<=(c|0)?m>>>0>e>>>0?0:1:0){break a}n=o[b>>2];j=p[n+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}c=b;h=e;o[c+16>>2]=e;o[c+20>>2]=d;e=j>>>2|0;c:{d:{e:{k=j&3;if(k>>>0>3){c=0;break e}c=0;f:{switch(k-1|0){case 0:case 1:break e;case 2:break f;default:break d}}d=e+g|0;if(d>>>0>=f>>>0){break a}ml(o[a>>2]+(g<<2)|0,0,(j&252)+4|0);g=d;break c}while(1){if((i|0)<(d|0)?1:(i|0)<=(d|0)?m>>>0>h>>>0?0:1:0){break a}j=p[h+n|0];h=h+1|0;if(h>>>0<1){d=d+1|0}f=b;o[f+16>>2]=h;o[f+20>>2]=d;e=j<<(c<<3|6)|e;c=c+1|0;if((k|0)!=(c|0)){continue}break}}o[o[a>>2]+(g<<2)>>2]=e}g=g+1|0;f=o[l>>2];if(g>>>0>>0){continue}break}d=a+16|0;i=o[a>>2];b=o[a+16>>2];c=o[a+20>>2]-b|0;g=c>>2;g:{if(g>>>0<=1048575){Ia(d,1048576-g|0);break g}if((c|0)==4194304){break g}o[a+20>>2]=b+4194304}h:{c=a+28|0;b=o[c>>2];g=o[a+32>>2]-b>>3;if(f>>>0>g>>>0){rg(c,f-g|0);b=o[c>>2];break h}if(f>>>0>>0){o[a+32>>2]=(f<<3)+b}if(f){break h}break a}e=0;c=0;while(1){a=i+(e<<2)|0;g=o[a>>2];h=(e<<3)+b|0;o[h+4>>2]=c;o[h>>2]=g;a=o[a>>2]+c|0;if(a>>>0>1048576){break a}if(c>>>0>>0){g=o[d>>2];while(1){o[g+(c<<2)>>2]=e;c=c+1|0;if((a|0)!=(c|0)){continue}break}}c=a;e=e+1|0;if((f|0)!=(e|0)){continue}break}return(a|0)==1048576}return 0}function wg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if(!q[b+38>>1]){break a}l=a+12|0;if(!qg(1,l,b)){break a}f=o[a+12>>2];c=o[a>>2];d=o[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){Ia(a,f-d|0);f=o[a+12>>2];break b}if(f>>>0>=d>>>0){break b}o[a+4>>2]=c+(f<<2)}if(!f){return 1}m=o[b+8>>2];i=o[b+12>>2];while(1){e=o[b+16>>2];d=o[b+20>>2];c=d;if((i|0)<(c|0)?1:(i|0)<=(c|0)?m>>>0>e>>>0?0:1:0){break a}n=o[b>>2];j=p[n+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}c=b;h=e;o[c+16>>2]=e;o[c+20>>2]=d;e=j>>>2|0;c:{d:{e:{k=j&3;if(k>>>0>3){c=0;break e}c=0;f:{switch(k-1|0){case 0:case 1:break e;case 2:break f;default:break d}}d=e+g|0;if(d>>>0>=f>>>0){break a}ml(o[a>>2]+(g<<2)|0,0,(j&252)+4|0);g=d;break c}while(1){if((i|0)<(d|0)?1:(i|0)<=(d|0)?m>>>0>h>>>0?0:1:0){break a}j=p[h+n|0];h=h+1|0;if(h>>>0<1){d=d+1|0}f=b;o[f+16>>2]=h;o[f+20>>2]=d;e=j<<(c<<3|6)|e;c=c+1|0;if((k|0)!=(c|0)){continue}break}}o[o[a>>2]+(g<<2)>>2]=e}g=g+1|0;f=o[l>>2];if(g>>>0>>0){continue}break}d=a+16|0;i=o[a>>2];b=o[a+16>>2];c=o[a+20>>2]-b|0;g=c>>2;g:{if(g>>>0<=262143){Ia(d,262144-g|0);break g}if((c|0)==1048576){break g}o[a+20>>2]=b- -1048576}h:{c=a+28|0;b=o[c>>2];g=o[a+32>>2]-b>>3;if(f>>>0>g>>>0){rg(c,f-g|0);b=o[c>>2];break h}if(f>>>0>>0){o[a+32>>2]=(f<<3)+b}if(f){break h}break a}e=0;c=0;while(1){a=i+(e<<2)|0;g=o[a>>2];h=(e<<3)+b|0;o[h+4>>2]=c;o[h>>2]=g;a=o[a>>2]+c|0;if(a>>>0>262144){break a}if(c>>>0>>0){g=o[d>>2];while(1){o[g+(c<<2)>>2]=e;c=c+1|0;if((a|0)!=(c|0)){continue}break}}c=a;e=e+1|0;if((f|0)!=(e|0)){continue}break}return(a|0)==262144}return 0}function xg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if(!q[b+38>>1]){break a}l=a+12|0;if(!qg(1,l,b)){break a}f=o[a+12>>2];c=o[a>>2];d=o[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){Ia(a,f-d|0);f=o[a+12>>2];break b}if(f>>>0>=d>>>0){break b}o[a+4>>2]=c+(f<<2)}if(!f){return 1}m=o[b+8>>2];i=o[b+12>>2];while(1){e=o[b+16>>2];d=o[b+20>>2];c=d;if((i|0)<(c|0)?1:(i|0)<=(c|0)?m>>>0>e>>>0?0:1:0){break a}n=o[b>>2];j=p[n+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}c=b;h=e;o[c+16>>2]=e;o[c+20>>2]=d;e=j>>>2|0;c:{d:{e:{k=j&3;if(k>>>0>3){c=0;break e}c=0;f:{switch(k-1|0){case 0:case 1:break e;case 2:break f;default:break d}}d=e+g|0;if(d>>>0>=f>>>0){break a}ml(o[a>>2]+(g<<2)|0,0,(j&252)+4|0);g=d;break c}while(1){if((i|0)<(d|0)?1:(i|0)<=(d|0)?m>>>0>h>>>0?0:1:0){break a}j=p[h+n|0];h=h+1|0;if(h>>>0<1){d=d+1|0}f=b;o[f+16>>2]=h;o[f+20>>2]=d;e=j<<(c<<3|6)|e;c=c+1|0;if((k|0)!=(c|0)){continue}break}}o[o[a>>2]+(g<<2)>>2]=e}g=g+1|0;f=o[l>>2];if(g>>>0>>0){continue}break}d=a+16|0;i=o[a>>2];b=o[a+16>>2];c=o[a+20>>2]-b|0;g=c>>2;g:{if(g>>>0<=524287){Ia(d,524288-g|0);break g}if((c|0)==2097152){break g}o[a+20>>2]=b+2097152}h:{c=a+28|0;b=o[c>>2];g=o[a+32>>2]-b>>3;if(f>>>0>g>>>0){rg(c,f-g|0);b=o[c>>2];break h}if(f>>>0>>0){o[a+32>>2]=(f<<3)+b}if(f){break h}break a}e=0;c=0;while(1){a=i+(e<<2)|0;g=o[a>>2];h=(e<<3)+b|0;o[h+4>>2]=c;o[h>>2]=g;a=o[a>>2]+c|0;if(a>>>0>524288){break a}if(c>>>0>>0){g=o[d>>2];while(1){o[g+(c<<2)>>2]=e;c=c+1|0;if((a|0)!=(c|0)){continue}break}}c=a;e=e+1|0;if((f|0)!=(e|0)){continue}break}return(a|0)==524288}return 0}function vg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if(!q[b+38>>1]){break a}l=a+12|0;if(!qg(1,l,b)){break a}f=o[a+12>>2];c=o[a>>2];d=o[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){Ia(a,f-d|0);f=o[a+12>>2];break b}if(f>>>0>=d>>>0){break b}o[a+4>>2]=c+(f<<2)}if(!f){return 1}m=o[b+8>>2];i=o[b+12>>2];while(1){e=o[b+16>>2];d=o[b+20>>2];c=d;if((i|0)<(c|0)?1:(i|0)<=(c|0)?m>>>0>e>>>0?0:1:0){break a}n=o[b>>2];j=p[n+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}c=b;h=e;o[c+16>>2]=e;o[c+20>>2]=d;e=j>>>2|0;c:{d:{e:{k=j&3;if(k>>>0>3){c=0;break e}c=0;f:{switch(k-1|0){case 0:case 1:break e;case 2:break f;default:break d}}d=e+g|0;if(d>>>0>=f>>>0){break a}ml(o[a>>2]+(g<<2)|0,0,(j&252)+4|0);g=d;break c}while(1){if((i|0)<(d|0)?1:(i|0)<=(d|0)?m>>>0>h>>>0?0:1:0){break a}j=p[h+n|0];h=h+1|0;if(h>>>0<1){d=d+1|0}f=b;o[f+16>>2]=h;o[f+20>>2]=d;e=j<<(c<<3|6)|e;c=c+1|0;if((k|0)!=(c|0)){continue}break}}o[o[a>>2]+(g<<2)>>2]=e}g=g+1|0;f=o[l>>2];if(g>>>0>>0){continue}break}d=a+16|0;i=o[a>>2];b=o[a+16>>2];c=o[a+20>>2]-b|0;g=c>>2;g:{if(g>>>0<=65535){Ia(d,65536-g|0);break g}if((c|0)==262144){break g}o[a+20>>2]=b+262144}h:{c=a+28|0;b=o[c>>2];g=o[a+32>>2]-b>>3;if(f>>>0>g>>>0){rg(c,f-g|0);b=o[c>>2];break h}if(f>>>0>>0){o[a+32>>2]=(f<<3)+b}if(f){break h}break a}e=0;c=0;while(1){a=i+(e<<2)|0;g=o[a>>2];h=(e<<3)+b|0;o[h+4>>2]=c;o[h>>2]=g;a=o[a>>2]+c|0;if(a>>>0>65536){break a}if(c>>>0>>0){g=o[d>>2];while(1){o[g+(c<<2)>>2]=e;c=c+1|0;if((a|0)!=(c|0)){continue}break}}c=a;e=e+1|0;if((f|0)!=(e|0)){continue}break}return(a|0)==65536}return 0}function ug(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if(!q[b+38>>1]){break a}l=a+12|0;if(!qg(1,l,b)){break a}f=o[a+12>>2];c=o[a>>2];d=o[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){Ia(a,f-d|0);f=o[a+12>>2];break b}if(f>>>0>=d>>>0){break b}o[a+4>>2]=c+(f<<2)}if(!f){return 1}m=o[b+8>>2];i=o[b+12>>2];while(1){e=o[b+16>>2];d=o[b+20>>2];c=d;if((i|0)<(c|0)?1:(i|0)<=(c|0)?m>>>0>e>>>0?0:1:0){break a}n=o[b>>2];j=p[n+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}c=b;h=e;o[c+16>>2]=e;o[c+20>>2]=d;e=j>>>2|0;c:{d:{e:{k=j&3;if(k>>>0>3){c=0;break e}c=0;f:{switch(k-1|0){case 0:case 1:break e;case 2:break f;default:break d}}d=e+g|0;if(d>>>0>=f>>>0){break a}ml(o[a>>2]+(g<<2)|0,0,(j&252)+4|0);g=d;break c}while(1){if((i|0)<(d|0)?1:(i|0)<=(d|0)?m>>>0>h>>>0?0:1:0){break a}j=p[h+n|0];h=h+1|0;if(h>>>0<1){d=d+1|0}f=b;o[f+16>>2]=h;o[f+20>>2]=d;e=j<<(c<<3|6)|e;c=c+1|0;if((k|0)!=(c|0)){continue}break}}o[o[a>>2]+(g<<2)>>2]=e}g=g+1|0;f=o[l>>2];if(g>>>0>>0){continue}break}d=a+16|0;i=o[a>>2];b=o[a+16>>2];c=o[a+20>>2]-b|0;g=c>>2;g:{if(g>>>0<=32767){Ia(d,32768-g|0);break g}if((c|0)==131072){break g}o[a+20>>2]=b+131072}h:{c=a+28|0;b=o[c>>2];g=o[a+32>>2]-b>>3;if(f>>>0>g>>>0){rg(c,f-g|0);b=o[c>>2];break h}if(f>>>0>>0){o[a+32>>2]=(f<<3)+b}if(f){break h}break a}e=0;c=0;while(1){a=i+(e<<2)|0;g=o[a>>2];h=(e<<3)+b|0;o[h+4>>2]=c;o[h>>2]=g;a=o[a>>2]+c|0;if(a>>>0>32768){break a}if(c>>>0>>0){g=o[d>>2];while(1){o[g+(c<<2)>>2]=e;c=c+1|0;if((a|0)!=(c|0)){continue}break}}c=a;e=e+1|0;if((f|0)!=(e|0)){continue}break}return(a|0)==32768}return 0}function tg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if(!q[b+38>>1]){break a}l=a+12|0;if(!qg(1,l,b)){break a}f=o[a+12>>2];c=o[a>>2];d=o[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){Ia(a,f-d|0);f=o[a+12>>2];break b}if(f>>>0>=d>>>0){break b}o[a+4>>2]=c+(f<<2)}if(!f){return 1}m=o[b+8>>2];i=o[b+12>>2];while(1){e=o[b+16>>2];d=o[b+20>>2];c=d;if((i|0)<(c|0)?1:(i|0)<=(c|0)?m>>>0>e>>>0?0:1:0){break a}n=o[b>>2];j=p[n+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}c=b;h=e;o[c+16>>2]=e;o[c+20>>2]=d;e=j>>>2|0;c:{d:{e:{k=j&3;if(k>>>0>3){c=0;break e}c=0;f:{switch(k-1|0){case 0:case 1:break e;case 2:break f;default:break d}}d=e+g|0;if(d>>>0>=f>>>0){break a}ml(o[a>>2]+(g<<2)|0,0,(j&252)+4|0);g=d;break c}while(1){if((i|0)<(d|0)?1:(i|0)<=(d|0)?m>>>0>h>>>0?0:1:0){break a}j=p[h+n|0];h=h+1|0;if(h>>>0<1){d=d+1|0}f=b;o[f+16>>2]=h;o[f+20>>2]=d;e=j<<(c<<3|6)|e;c=c+1|0;if((k|0)!=(c|0)){continue}break}}o[o[a>>2]+(g<<2)>>2]=e}g=g+1|0;f=o[l>>2];if(g>>>0>>0){continue}break}d=a+16|0;i=o[a>>2];b=o[a+16>>2];c=o[a+20>>2]-b|0;g=c>>2;g:{if(g>>>0<=8191){Ia(d,8192-g|0);break g}if((c|0)==32768){break g}o[a+20>>2]=b+32768}h:{c=a+28|0;b=o[c>>2];g=o[a+32>>2]-b>>3;if(f>>>0>g>>>0){rg(c,f-g|0);b=o[c>>2];break h}if(f>>>0>>0){o[a+32>>2]=(f<<3)+b}if(f){break h}break a}e=0;c=0;while(1){a=i+(e<<2)|0;g=o[a>>2];h=(e<<3)+b|0;o[h+4>>2]=c;o[h>>2]=g;a=o[a>>2]+c|0;if(a>>>0>8192){break a}if(c>>>0>>0){g=o[d>>2];while(1){o[g+(c<<2)>>2]=e;c=c+1|0;if((a|0)!=(c|0)){continue}break}}c=a;e=e+1|0;if((f|0)!=(e|0)){continue}break}return(a|0)==8192}return 0}function gg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if(!q[b+38>>1]){break a}l=a+12|0;if(!qg(1,l,b)){break a}f=o[a+12>>2];c=o[a>>2];d=o[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){Ia(a,f-d|0);f=o[a+12>>2];break b}if(f>>>0>=d>>>0){break b}o[a+4>>2]=c+(f<<2)}if(!f){return 1}m=o[b+8>>2];i=o[b+12>>2];while(1){e=o[b+16>>2];d=o[b+20>>2];c=d;if((i|0)<(c|0)?1:(i|0)<=(c|0)?m>>>0>e>>>0?0:1:0){break a}n=o[b>>2];j=p[n+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}c=b;h=e;o[c+16>>2]=e;o[c+20>>2]=d;e=j>>>2|0;c:{d:{e:{k=j&3;if(k>>>0>3){c=0;break e}c=0;f:{switch(k-1|0){case 0:case 1:break e;case 2:break f;default:break d}}d=e+g|0;if(d>>>0>=f>>>0){break a}ml(o[a>>2]+(g<<2)|0,0,(j&252)+4|0);g=d;break c}while(1){if((i|0)<(d|0)?1:(i|0)<=(d|0)?m>>>0>h>>>0?0:1:0){break a}j=p[h+n|0];h=h+1|0;if(h>>>0<1){d=d+1|0}f=b;o[f+16>>2]=h;o[f+20>>2]=d;e=j<<(c<<3|6)|e;c=c+1|0;if((k|0)!=(c|0)){continue}break}}o[o[a>>2]+(g<<2)>>2]=e}g=g+1|0;f=o[l>>2];if(g>>>0>>0){continue}break}d=a+16|0;i=o[a>>2];b=o[a+16>>2];c=o[a+20>>2]-b|0;g=c>>2;g:{if(g>>>0<=4095){Ia(d,4096-g|0);break g}if((c|0)==16384){break g}o[a+20>>2]=b+16384}h:{c=a+28|0;b=o[c>>2];g=o[a+32>>2]-b>>3;if(f>>>0>g>>>0){rg(c,f-g|0);b=o[c>>2];break h}if(f>>>0>>0){o[a+32>>2]=(f<<3)+b}if(f){break h}break a}e=0;c=0;while(1){a=i+(e<<2)|0;g=o[a>>2];h=(e<<3)+b|0;o[h+4>>2]=c;o[h>>2]=g;a=o[a>>2]+c|0;if(a>>>0>4096){break a}if(c>>>0>>0){g=o[d>>2];while(1){o[g+(c<<2)>>2]=e;c=c+1|0;if((a|0)!=(c|0)){continue}break}}c=a;e=e+1|0;if((f|0)!=(e|0)){continue}break}return(a|0)==4096}return 0}function Bd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0;f=R-96|0;R=f;a:{if(!Cd(1,f+92|0,b)){break a}c=o[f+92>>2];if(!c){break a}e=o[a+4>>2];d=o[a+8>>2]-e>>2;b:{if(c>>>0>d>>>0){Ia(a+4|0,c-d|0);break b}if(c>>>0>=d>>>0){break b}o[a+8>>2]=e+(c<<2)}t=c>>>0>1?c:1;q=a+16|0;r=o[a+32>>2];while(1){k=o[b+8>>2];j=o[b+16>>2];g=o[b+12>>2];c=g;d=o[b+20>>2];if((c|0)<(d|0)?1:(c|0)<=(d|0)?k>>>0>j>>>0?0:1:0){d=0;break a}l=o[b>>2];s=p[l+j|0];c=d;h=j+1|0;if(h>>>0<1){c=c+1|0}e=b;o[e+16>>2]=h;o[e+20>>2]=c;if((g|0)<(c|0)?1:(g|0)<=(c|0)?k>>>0>h>>>0?0:1:0){d=0;break a}h=p[h+l|0];c=d;i=j+2|0;if(i>>>0<2){c=c+1|0}o[b+16>>2]=i;o[e+20>>2]=c;if((g|0)<(c|0)?1:(g|0)<=(c|0)?k>>>0>i>>>0?0:1:0){d=0;break a}i=p[i+l|0];c=d;m=j+3|0;if(m>>>0<3){c=c+1|0}o[b+16>>2]=m;o[e+20>>2]=c;if((g|0)<(c|0)?1:(g|0)<=(c|0)?k>>>0>m>>>0?0:1:0){d=0;break a}g=p[m+l|0];c=d;d=j+4|0;if(d>>>0<4){c=c+1|0}o[b+16>>2]=d;o[e+20>>2]=c;if(s>>>0>4){d=0;break a}if((h+ -1&255)>>>0>10){d=0;break a}d=qd(f+24|0);c=u(xi(h),i);rd(d,s,i<<24>>24,h,(g|0)!=0,c,c>>31);Cd(1,f+20|0,b);e=o[f+20>>2];o[f+84>>2]=e;c=yk(96);vd(c,d);o[f+16>>2]=c;d=vj(r,f+16|0);c=o[f+16>>2];o[f+16>>2]=0;if(c){Kb(c)}g=d<<2;o[o[g+o[r+8>>2]>>2]+60>>2]=e;o[o[a+4>>2]+(n<<2)>>2]=d;c=o[a+16>>2];e=o[a+20>>2]-c>>2;c:{if((d|0)<(e|0)){break c}o[f+12>>2]=-1;d=d+1|0;if(d>>>0>e>>>0){Dd(q,d-e|0,f+12|0);c=o[q>>2];break c}if(d>>>0>=e>>>0){break c}o[a+20>>2]=(d<<2)+c}o[c+g>>2]=n;d=1;n=n+1|0;if((t|0)!=(n|0)){continue}break}}R=f+96|0;return d|0}function $d(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,n=0,q=0;e=R-16|0;R=e;b=1;g=l[o[o[a>>2]+24>>2]](a)|0;a:{if((g|0)<1){break a}q=a+48|0;while(1){b:{c:{if(!o[(l[o[o[a>>2]+28>>2]](a)|0)+40>>2]){break c}h=f<<2;b=o[h+o[a+36>>2]>>2];c=o[b+8>>2];i=Qd(b);if(!i){break c}j=o[(l[o[o[a>>2]+28>>2]](a)|0)+40>>2];k=o[c+56>>2];b=yk(32);o[e>>2]=b;o[e+4>>2]=24;o[e+8>>2]=-2147483616;m[b+24|0]=0;c=p[1764]|p[1765]<<8|(p[1766]<<16|p[1767]<<24);d=p[1760]|p[1761]<<8|(p[1762]<<16|p[1763]<<24);m[b+16|0]=d;m[b+17|0]=d>>>8;m[b+18|0]=d>>>16;m[b+19|0]=d>>>24;m[b+20|0]=c;m[b+21|0]=c>>>8;m[b+22|0]=c>>>16;m[b+23|0]=c>>>24;c=p[1756]|p[1757]<<8|(p[1758]<<16|p[1759]<<24);d=p[1752]|p[1753]<<8|(p[1754]<<16|p[1755]<<24);m[b+8|0]=d;m[b+9|0]=d>>>8;m[b+10|0]=d>>>16;m[b+11|0]=d>>>24;m[b+12|0]=c;m[b+13|0]=c>>>8;m[b+14|0]=c>>>16;m[b+15|0]=c>>>24;c=p[1748]|p[1749]<<8|(p[1750]<<16|p[1751]<<24);d=p[1744]|p[1745]<<8|(p[1746]<<16|p[1747]<<24);m[b|0]=d;m[b+1|0]=d>>>8;m[b+2|0]=d>>>16;m[b+3|0]=d>>>24;m[b+4|0]=c;m[b+5|0]=c>>>8;m[b+6|0]=c>>>16;m[b+7|0]=c>>>24;d:{e:{d=j+16|0;c=d;b=o[c>>2];if(!b){break e}while(1){n=o[b+16>>2]<(k|0);c=n?c:b;b=o[(n<<2)+b>>2];if(b){continue}break}if((c|0)==(d|0)|(k|0)>2]){break e}b=c+20|0;if(!ja(b,e)){break e}b=Bi(b,e);break d}b=Bi(j,e)}if(m[e+11|0]<=-1){jl(o[e>>2])}if(!b){break c}xd(o[o[o[a+36>>2]+h>>2]+8>>2],i);break b}b=o[o[a+36>>2]+(f<<2)>>2];if(l[o[o[b>>2]+24>>2]](b,q)){break b}b=0;break a}b=1;f=f+1|0;if((g|0)!=(f|0)){continue}break}}R=e+16|0;return b|0}function _g(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0,s=0,t=0;j=R-16|0;R=j;n=-1;a:{b:{c:{if(!Xg(1,j+12|0,b)){break c}d=o[j+12>>2];if(d){c=o[a+8>>2];if(d>>>0>(o[c+4>>2]-o[c>>2]>>2>>>0)/3>>>0){break c}s=a+36|0;while(1){Xg(1,j+8|0,b);c=o[j+8>>2];Xg(1,j+8|0,b);h=c+h|0;c=o[j+8>>2];if(h>>>0>>0){break c}g=h-c|0;c=o[a+40>>2];i=o[a+44>>2];d:{if((c|0)!=(i|0)){o[c+4>>2]=h;o[c>>2]=g;o[a+40>>2]=o[a+40>>2]+12;break d}e=c;c=o[s>>2];k=e-c|0;e=(k|0)/12|0;f=e+1|0;if(f>>>0>=357913942){break b}t=u(e,12);i=(i-c|0)/12|0;e=i<<1;f=i>>>0<178956970?e>>>0>>0?f:e:357913941;e=0;e:{if(!f){break e}if(f>>>0>=357913942){break a}e=yk(u(f,12))}i=t+e|0;o[i+4>>2]=h;o[i>>2]=g;g=i+u((k|0)/-12|0,12)|0;e=e+u(f,12)|0;f=i+12|0;if((k|0)>=1){ll(g,c,k)}o[a+44>>2]=e;o[a+40>>2]=f;o[a+36>>2]=g;if(!c){break d}jl(c)}l=l+1|0;if((d|0)!=(l|0)){continue}break}h=0;ui(b,0,0);k=d>>>0>1?d:1;while(1){d=p[b+36|0];c=q[o[a+4>>2]+36>>1];f:{if((c<<24|c<<8&16711680)>>>16>>>0<=513){if(!d){break f}g=0;d=o[b+32>>2];l=d>>>3|0;e=o[b+24>>2];c=l+e|0;f=o[b+28>>2];g:{if(c>>>0>=f>>>0){c=d;break g}g=p[c|0];c=d+1|0;o[b+32>>2]=c;l=c>>>3|0;g=g>>>(d&7)&1}if(e+l>>>0>=f>>>0){break f}o[b+32>>2]=c+1;break f}if(!d){break f}g=0;d=o[b+32>>2];c=o[b+24>>2]+(d>>>3|0)|0;if(c>>>0>=r[b+28>>2]){break f}c=p[c|0];o[b+32>>2]=d+1;g=c>>>(d&7)&1}d=o[a+36>>2]+u(h,12)|0;m[d+8|0]=p[d+8|0]&254|g&1;h=h+1|0;if((k|0)!=(h|0)){continue}break}wi(b)}n=o[b+16>>2]}R=j+16|0;return n}Nk();D()}db(8832);D()}function bg(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{b:{c:{d:{e:{l=a+4|0;f:{if((l|0)==(b|0)){break f}f=p[b+27|0];i=f<<24>>24<0;h=p[e+11|0];n=h<<24>>24;g=(n|0)<0;f=i?o[b+20>>2]:f;h=g?o[e+4>>2]:h;j=f>>>0>>0;k=j?f:h;if(k){g=g?o[e>>2]:e;m=b+16|0;i=i?o[m>>2]:m;m=Vj(g,i,k);if(!m){if(h>>>0>>0){break f}break e}if((m|0)>-1){break e}break f}if(h>>>0>=f>>>0){break d}}i=o[b>>2];g:{h:{if(o[a>>2]==(b|0)){f=b;break h}i:{if(!i){d=b;while(1){f=o[d+8>>2];h=o[f>>2]==(d|0);d=f;if(h){continue}break}break i}d=i;while(1){f=d;d=o[f+4>>2];if(d){continue}break}}g=p[e+11|0];d=g<<24>>24<0;j=p[f+27|0];h=j<<24>>24<0;j:{g=d?o[e+4>>2]:g;j=h?o[f+20>>2]:j;k=g>>>0>>0?g:j;if(k){l=f+16|0;d=Vj(h?o[l>>2]:l,d?o[e>>2]:e,k);if(d){break j}}if(j>>>0>>0){break h}break g}if((d|0)>-1){break g}}if(!i){o[c>>2]=b;return b}o[c>>2]=f;return f+4|0}return cg(a,c,e)}f=Vj(i,g,k);if(f){break c}}if(j){break b}break a}if((f|0)>-1){break a}}i=o[b+4>>2];k:{if(i){f=i;while(1){d=f;f=o[f>>2];if(f){continue}break}break k}d=o[b+8>>2];if(o[d>>2]==(b|0)){break k}f=b+8|0;while(1){g=o[f>>2];f=g+8|0;d=o[g+8>>2];if((g|0)!=o[d>>2]){continue}break}}l:{m:{if((d|0)==(l|0)){break m}g=p[d+27|0];f=g<<24>>24<0;n:{g=f?o[d+20>>2]:g;j=g>>>0>>0?g:h;if(j){k=d+16|0;f=Vj((n|0)<0?o[e>>2]:e,f?o[k>>2]:k,j);if(f){break n}}if(h>>>0>>0){break m}break l}if((f|0)>-1){break l}}if(!i){o[c>>2]=b;return b+4|0}o[c>>2]=d;return d}return cg(a,c,e)}o[c>>2]=b;o[d>>2]=b;return d}function kh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=R-16|0;R=h;a:{if(!Sf(a+80|0,a)){break a}if(!$g(a)){break a}c=o[a+4>>2];o[b>>2]=o[a>>2];o[b+4>>2]=c;c=o[a+36>>2];o[b+32>>2]=o[a+32>>2];o[b+36>>2]=c;c=o[a+28>>2];o[b+24>>2]=o[a+24>>2];o[b+28>>2]=c;c=o[a+20>>2];o[b+16>>2]=o[a+16>>2];o[b+20>>2]=c;c=o[a+12>>2];o[b+8>>2]=o[a+8>>2];o[b+12>>2]=c;o[a+176>>2]=2;o[a+180>>2]=7;c=o[a+152>>2];if((c|0)<0){break a}o[h+12>>2]=0;d=2;f=o[a+156>>2];g=o[a+160>>2]-f>>2;b:{if(c>>>0>g>>>0){Dd(a+156|0,c-g|0,h+12|0);d=o[a+176>>2];e=o[a+180>>2];break b}e=7;if(c>>>0>=g>>>0){break b}o[a+160>>2]=f+(c<<2)}g=a+184|0;e=(e-d|0)+1|0;c=o[a+188>>2];f=o[a+184>>2];d=(c-f|0)/12|0;c:{if(e>>>0>d>>>0){mh(g,e-d|0);e=o[a+188>>2];break c}if(e>>>0>=d>>>0){e=c;break c}e=f+u(e,12)|0;if((e|0)!=(c|0)){while(1){d=c+ -12|0;f=o[d>>2];if(f){o[c+ -8>>2]=f;jl(f)}c=d;if((c|0)!=(e|0)){continue}break}}o[a+188>>2]=e}k=a+196|0;c=o[a+184>>2];d=(e-c|0)/12|0;i=o[a+196>>2];f=o[a+200>>2]-i>>2;d:{if(d>>>0>f>>>0){Ia(k,d-f|0);c=o[a+184>>2];e=o[a+188>>2];break d}if(d>>>0>=f>>>0){break d}o[a+200>>2]=i+(d<<2)}d=1;if((c|0)==(e|0)){break a}c=0;while(1){Xg(1,h+8|0,b);d=o[h+8>>2];if(d){e=o[g>>2];l=u(c,12);f=e+l|0;i=o[f>>2];j=o[f+4>>2]-i>>2;e:{if(d>>>0>j>>>0){Ia(f,d-j|0);e=o[g>>2];break e}if(d>>>0>=j>>>0){break e}o[f+4>>2]=(d<<2)+i}dg(d,1,b,o[e+l>>2]);o[o[k>>2]+(c<<2)>>2]=d}d=1;c=c+1|0;if(c>>>0<(o[a+188>>2]-o[a+184>>2]|0)/12>>>0){continue}break}}R=h+16|0;return d}function Xf(a,b,c,d){var e=0,f=0,g=0;e=R-80|0;R=e;f=o[c+36>>2];o[e+72>>2]=o[c+32>>2];o[e+76>>2]=f;g=o[c+28>>2];f=e- -64|0;o[f>>2]=o[c+24>>2];o[f+4>>2]=g;f=o[c+20>>2];o[e+56>>2]=o[c+16>>2];o[e+60>>2]=f;f=o[c+12>>2];o[e+48>>2]=o[c+8>>2];o[e+52>>2]=f;f=o[c+4>>2];o[e+40>>2]=o[c>>2];o[e+44>>2]=f;gi(a,e+40|0,e+24|0);a:{if(o[a>>2]){break a}f=a+4|0;if(m[a+15|0]<=-1){jl(o[f>>2])}if(p[e+31|0]!=1){b=yk(32);o[e>>2]=b;o[e+4>>2]=20;o[e+8>>2]=-2147483616;m[b+20|0]=0;c=p[7916]|p[7917]<<8|(p[7918]<<16|p[7919]<<24);m[b+16|0]=c;m[b+17|0]=c>>>8;m[b+18|0]=c>>>16;m[b+19|0]=c>>>24;c=p[7912]|p[7913]<<8|(p[7914]<<16|p[7915]<<24);d=p[7908]|p[7909]<<8|(p[7910]<<16|p[7911]<<24);m[b+8|0]=d;m[b+9|0]=d>>>8;m[b+10|0]=d>>>16;m[b+11|0]=d>>>24;m[b+12|0]=c;m[b+13|0]=c>>>8;m[b+14|0]=c>>>16;m[b+15|0]=c>>>24;c=p[7904]|p[7905]<<8|(p[7906]<<16|p[7907]<<24);d=p[7900]|p[7901]<<8|(p[7902]<<16|p[7903]<<24);m[b|0]=d;m[b+1|0]=d>>>8;m[b+2|0]=d>>>16;m[b+3|0]=d>>>24;m[b+4|0]=c;m[b+5|0]=c>>>8;m[b+6|0]=c>>>16;m[b+7|0]=c>>>24;o[a>>2]=-1;Bk(f,e);if(m[e+11|0]>-1){break a}jl(o[e>>2]);break a}Vf(e,p[e+32|0]);g=o[e>>2];b:{if(g){o[a>>2]=g;Bk(f,e|4);break b}g=o[e+16>>2];o[e+16>>2]=0;o[g+44>>2]=d;ji(a,g,b,c,d);if(!o[a>>2]){if(m[f+11|0]<=-1){jl(o[f>>2])}o[a>>2]=0;o[a+4>>2]=0;o[a+8>>2]=0;o[a+12>>2]=0}if(!g){break b}l[o[o[g>>2]+4>>2]](g)}a=o[e+16>>2];o[e+16>>2]=0;if(a){l[o[o[a>>2]+4>>2]](a)}if(m[e+15|0]>-1){break a}jl(o[e+4>>2])}R=e+80|0}function pf(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;o[a+8>>2]=e;h=a+32|0;g=o[h>>2];f=o[a+36>>2]-g>>2;a:{if(f>>>0>>0){Ia(h,e-f|0);break a}if(f>>>0<=e>>>0){break a}o[a+36>>2]=g+(e<<2)}h=0;f=(e&1073741823)!=(e|0)?-1:e<<2;m=ml(yk(f),0,f);g=o[a+8>>2];b:{if((g|0)<1){break b}while(1){f=h<<2;g=o[f+m>>2];i=o[a+16>>2];c:{if((g|0)>(i|0)){j=o[a+32>>2];o[f+j>>2]=i;break c}j=o[a+32>>2];f=f+j|0;i=o[a+12>>2];if((g|0)<(i|0)){o[f>>2]=i;break c}o[f>>2]=g}h=h+1|0;g=o[a+8>>2];if((h|0)<(g|0)){continue}break}if((g|0)<1){break b}i=0;while(1){h=i<<2;f=h+c|0;h=o[b+h>>2]+o[h+j>>2]|0;o[f>>2]=h;d:{if((h|0)>o[a+16>>2]){h=h-o[a+20>>2]|0}else{if((h|0)>=o[a+12>>2]){break d}h=h+o[a+20>>2]|0}o[f>>2]=h}i=i+1|0;g=o[a+8>>2];if((i|0)<(g|0)){continue}break}}if((e|0)<(d|0)){p=0-e<<2;f=e;while(1){e:{if((g|0)<1){break e}l=f<<2;n=l+c|0;q=n+p|0;h=0;while(1){g=h<<2;i=o[g+q>>2];k=o[a+16>>2];f:{if((i|0)>(k|0)){j=o[a+32>>2];o[g+j>>2]=k;break f}j=o[a+32>>2];g=g+j|0;k=o[a+12>>2];if((i|0)<(k|0)){o[g>>2]=k;break f}o[g>>2]=i}h=h+1|0;g=o[a+8>>2];if((h|0)<(g|0)){continue}break}i=0;if((g|0)<1){break e}l=b+l|0;while(1){g=i<<2;h=g+n|0;g=o[g+l>>2]+o[g+j>>2]|0;o[h>>2]=g;g:{if((g|0)>o[a+16>>2]){g=g-o[a+20>>2]|0}else{if((g|0)>=o[a+12>>2]){break g}g=g+o[a+20>>2]|0}o[h>>2]=g}i=i+1|0;g=o[a+8>>2];if((i|0)<(g|0)){continue}break}}f=e+f|0;if((f|0)<(d|0)){continue}break}}jl(m);return 1}function hi(a,b){var c=0,d=0,e=0;e=R-48|0;R=e;c=yk(36);o[c+4>>2]=0;o[c+8>>2]=0;o[c+16>>2]=0;o[c+20>>2]=0;o[c+32>>2]=0;o[c+24>>2]=0;o[c+28>>2]=0;o[c>>2]=c+4;o[c+12>>2]=c+16;o[e+40>>2]=c;d=e+32|0;o[d>>2]=0;a:{if(!dj(d,o[b+32>>2],c)){b=yk(32);o[e+16>>2]=b;o[e+20>>2]=26;o[e+24>>2]=-2147483616;m[b+26|0]=0;c=p[10238]|p[10239]<<8;m[b+24|0]=c;m[b+25|0]=c>>>8;c=p[10234]|p[10235]<<8|(p[10236]<<16|p[10237]<<24);d=p[10230]|p[10231]<<8|(p[10232]<<16|p[10233]<<24);m[b+16|0]=d;m[b+17|0]=d>>>8;m[b+18|0]=d>>>16;m[b+19|0]=d>>>24;m[b+20|0]=c;m[b+21|0]=c>>>8;m[b+22|0]=c>>>16;m[b+23|0]=c>>>24;c=p[10226]|p[10227]<<8|(p[10228]<<16|p[10229]<<24);d=p[10222]|p[10223]<<8|(p[10224]<<16|p[10225]<<24);m[b+8|0]=d;m[b+9|0]=d>>>8;m[b+10|0]=d>>>16;m[b+11|0]=d>>>24;m[b+12|0]=c;m[b+13|0]=c>>>8;m[b+14|0]=c>>>16;m[b+15|0]=c>>>24;c=p[10218]|p[10219]<<8|(p[10220]<<16|p[10221]<<24);d=p[10214]|p[10215]<<8|(p[10216]<<16|p[10217]<<24);m[b|0]=d;m[b+1|0]=d>>>8;m[b+2|0]=d>>>16;m[b+3|0]=d>>>24;m[b+4|0]=c;m[b+5|0]=c>>>8;m[b+6|0]=c>>>16;m[b+7|0]=c>>>24;o[a>>2]=-1;Bk(a+4|0,e+16|0);if(m[e+27|0]>-1){break a}jl(o[e+16>>2]);break a}b=o[b+4>>2];o[e+8>>2]=0;o[e+40>>2]=0;d=o[b+4>>2];o[b+4>>2]=c;b:{if(!d){o[e+8>>2]=0;break b}ii(d);b=o[e+8>>2];o[e+8>>2]=0;if(!b){break b}ii(b)}o[a>>2]=0;o[a+4>>2]=0;o[a+8>>2]=0;o[a+12>>2]=0}a=o[e+40>>2];o[e+40>>2]=0;if(a){ii(a)}R=e+48|0}function Rg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=R-112|0;R=d;j=o[o[b+4>>2]+44>>2];f=yk(120);e=f;o[e+12>>2]=0;o[e+16>>2]=0;o[e>>2]=8940;o[e+4>>2]=0;o[e+8>>2]=9152;o[e+116>>2]=0;o[e+112>>2]=c;o[e+108>>2]=j;o[e+104>>2]=0;o[e+96>>2]=0;o[e+100>>2]=0;o[e+20>>2]=0;o[e+24>>2]=0;o[e+28>>2]=0;o[e+32>>2]=0;o[e+36>>2]=0;o[e+40>>2]=0;o[e+44>>2]=0;o[e+48>>2]=0;o[e+52>>2]=0;o[e+56>>2]=0;o[e+60>>2]=0;e=e- -64|0;o[e>>2]=0;o[e+4>>2]=0;o[f+72>>2]=0;o[f+76>>2]=0;o[f+80>>2]=0;o[f+84>>2]=0;o[f+88>>2]=0;b=o[b+8>>2];o[d+48>>2]=0;o[d+52>>2]=0;o[d+40>>2]=0;o[d+44>>2]=0;e=d+24|0;o[e>>2]=0;o[e+4>>2]=0;h=d- -64|0;o[h>>2]=0;o[h+4>>2]=0;o[d+72>>2]=0;o[d+76>>2]=0;h=d+80|0;g=h;o[g>>2]=0;o[g+4>>2]=0;o[d+88>>2]=0;o[d+104>>2]=0;o[d+32>>2]=0;o[d+36>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;o[d+56>>2]=0;o[d+60>>2]=0;o[d+8>>2]=9152;o[d+96>>2]=0;o[d+100>>2]=0;o[d+12>>2]=b;g=o[b>>2];i=o[b+4>>2];m[d+111|0]=0;eb(d+32|0,(i-g>>2>>>0)/3|0,d+111|0);g=o[d+12>>2];i=o[g+28>>2];g=o[g+24>>2];m[d+111|0]=0;eb(d+44|0,i-g>>2,d+111|0);o[d+28>>2]=f;o[e>>2]=j;o[d+20>>2]=c;o[d+16>>2]=b;Tg(f,d+8|0);o[a>>2]=f;o[d+8>>2]=9152;a=o[d+96>>2];if(a){o[d+100>>2]=a;jl(a)}a=o[h>>2];if(a){o[d+84>>2]=a;jl(a)}a=o[d+68>>2];if(a){o[d+72>>2]=a;jl(a)}a=o[d+56>>2];if(a){o[d+60>>2]=a;jl(a)}o[d+8>>2]=9388;a=o[d+44>>2];if(a){jl(a)}a=o[d+32>>2];if(a){jl(a)}R=d+112|0}function nh(a,b){var c=0,d=0,e=0,f=0,g=0;f=-1;d=-1;a:{if((b|0)==-1){break a}d=b+1|0;f=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3){break a}d=b+2|0}c=o[a+168>>2];b:{if(c>>>0>7){break b}c:{d:{switch(c-2|0){default:c=o[a+148>>2];e=1;b=o[a+156>>2];g=b+(((f|0)!=-1?o[o[c>>2]+(f<<2)>>2]:-1)<<2)|0;o[g>>2]=o[g>>2]+1;b=(((d|0)!=-1?o[o[c>>2]+(d<<2)>>2]:-1)<<2)+b|0;break c;case 3:e=o[a+148>>2];c=-1;c=((b|0)!=-1?o[o[e>>2]+(b<<2)>>2]:c)<<2;b=o[a+156>>2];c=c+b|0;o[c>>2]=o[c>>2]+1;c=(((f|0)!=-1?o[o[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;o[c>>2]=o[c>>2]+1;c=-1;c=(d|0)!=-1?o[o[e>>2]+(d<<2)>>2]:c;e=2;b=b+(c<<2)|0;break c;case 1:e=o[a+148>>2];c=-1;c=((b|0)!=-1?o[o[e>>2]+(b<<2)>>2]:c)<<2;b=o[a+156>>2];c=c+b|0;o[c>>2]=o[c>>2]+1;c=(((f|0)!=-1?o[o[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;o[c>>2]=o[c>>2]+2;b=(((d|0)!=-1?o[o[e>>2]+(d<<2)>>2]:-1)<<2)+b|0;e=1;break c;case 0:case 2:case 4:break b;case 5:break d}}e=o[a+148>>2];c=-1;c=((b|0)!=-1?o[o[e>>2]+(b<<2)>>2]:c)<<2;b=o[a+156>>2];c=c+b|0;o[c>>2]=o[c>>2]+2;c=(((f|0)!=-1?o[o[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;o[c>>2]=o[c>>2]+2;c=-1;c=(d|0)!=-1?o[o[e>>2]+(d<<2)>>2]:c;e=2;b=b+(c<<2)|0}o[b>>2]=o[b>>2]+e}c=-1;c=(f|0)!=-1?o[o[o[a+148>>2]>>2]+(f<<2)>>2]:c;f=o[a+176>>2];b=f;d=a;c=o[o[a+156>>2]+(c<<2)>>2];if((c|0)>=(b|0)){a=o[a+180>>2];b=(c|0)>(a|0)?a:c}o[d+172>>2]=b-f}function Oe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=R-16|0;R=j;e=o[b+12>>2];c=o[b+20>>2];f=o[b+16>>2];d=f+4|0;if(d>>>0<4){c=c+1|0}g=d;d=c;a:{if((e|0)<(c|0)?1:(e|0)<=(c|0)?r[b+8>>2]>=g>>>0?0:1:0){break a}c=f+o[b>>2]|0;c=p[c|0]|p[c+1|0]<<8|(p[c+2|0]<<16|p[c+3|0]<<24);o[b+16>>2]=g;o[b+20>>2]=d;if((c|0)<0){break a}He(a+76|0,c);g=Rf(j);b:{if(!Sf(g,b)){break b}if((c|0)>=1){e=1;while(1){f=1<<(i&31);h=Uf(g);d=o[a+76>>2]+(i>>>3&536870908)|0;e=e^h;h=o[d>>2]|f;c:{if(!(e&1)){break c}h=o[d>>2]&(f^-1)}f=h;e=e^1;o[d>>2]=f;i=i+1|0;if((c|0)!=(i|0)){continue}break}}d=o[b+12>>2];i=d;c=o[b+20>>2];e=c;g=o[b+16>>2];f=g+4|0;if(f>>>0<4){c=c+1|0}k=o[b+8>>2];h=f;f=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?k>>>0>=h>>>0?0:1:0){break b}l=o[b>>2];c=l+g|0;d=p[c|0]|p[c+1|0]<<8|(p[c+2|0]<<16|p[c+3|0]<<24);o[b+16>>2]=h;o[b+20>>2]=f;c=e;e=g+8|0;if(e>>>0<8){c=c+1|0}f=e;e=c;if((i|0)<(c|0)?1:(i|0)<=(c|0)?k>>>0>=f>>>0?0:1:0){break b}c=h+l|0;c=p[c|0]|p[c+1|0]<<8|(p[c+2|0]<<16|p[c+3|0]<<24);o[b+16>>2]=f;o[b+20>>2]=e;if((d|0)>(c|0)){break b}o[a+16>>2]=c;o[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break b}m=1;b=b+1|0;o[a+20>>2]=b;c=(b|0)/2|0;o[a+24>>2]=c;o[a+28>>2]=0-c;if(b&1){break b}o[a+24>>2]=c+ -1}}R=j+16|0;return m|0}function Nl(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{g=b;if(g){e=c;if(!e){break j}f=d;if(!f){break i}f=x(f)-x(g)|0;if(f>>>0<=31){break h}break b}if((d|0)==1&c>>>0>=0|d>>>0>1){break b}b=(a>>>0)/(c>>>0)|0;Kl(a-u(b,c)|0,0);T=0;return b}e=d;if(!a){break g}if(!e){break f}f=e+ -1|0;if(f&e){break f}Kl(a,f&g);a=g>>>(Tl(e)&31)|0;T=0;return a}f=e+ -1|0;if(!(f&e)){break e}j=(x(e)+33|0)-x(g)|0;h=0-j|0;break c}j=f+1|0;h=63-f|0;break c}a=(g>>>0)/(e>>>0)|0;Kl(0,g-u(a,e)|0);T=0;return a}f=x(e)-x(g)|0;if(f>>>0<31){break d}break b}Kl(a&f,0);if((e|0)==1){break a}c=a;a=Tl(e);d=a&31;if(32<=(a&63)>>>0){f=0;a=b>>>d|0}else{f=b>>>d|0;a=((1<>>d}T=f;return a}j=f+1|0;h=63-f|0}e=b;g=a;f=j&63;i=f&31;if(32<=(f&63)>>>0){f=0;l=e>>>i|0}else{f=e>>>i|0;l=((1<>>i}a=h&63;h=a&31;if(32<=(a&63)>>>0){e=g<>>32-h|b<>>0<4294967295){g=g+1|0}h=e;while(1){e=l;f=f<<1|e>>>31;e=e<<1;k=f;f=b>>>31|e;m=k;e=k;k=f;i=g-((h>>>0>>0)+e|0)|0;e=i>>31;i=i>>31;f=c&i;l=k-f|0;f=m-((d&e)+(k>>>0>>0)|0)|0;e=b<<1|a>>>31;a=n|a<<1;b=e|o;e=0;m=e;k=i&1;n=k;j=j+ -1|0;if(j){continue}break}}Kl(l,f);e=b<<1|a>>>31;a=k|a<<1;T=e|m;return a}Kl(a,b);a=0;b=0}T=b;return a}function me(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=o[a+8>>2];c=o[d+28>>2]+ -1|0;if(c>>>0>5){return 0}a:{switch(c-1|0){case 2:ne(a,b);return 1;case 1:ne(a,b);return 1;case 4:f=m[d+24|0];h=f<<2;i=yk((f|0)!=(f&1073741823)?-1:h);c=o[a+16>>2];d=0;b:{if(!o[c+80>>2]){break b}d=o[o[c>>2]>>2]+o[c+48>>2]|0}if(b){while(1){c=j;e=0;if((f|0)>0){while(1){o[i+(e<<2)>>2]=o[d+(c<<2)>>2];c=c+1|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}j=j+f|0}ll(o[o[o[a+8>>2]+64>>2]>>2]+k|0,i,h);k=h+k|0;g=g+1|0;if((g|0)!=(b|0)){continue}break}}jl(i);return 1;case 3:f=m[d+24|0];h=f<<2;i=yk((f|0)!=(f&1073741823)?-1:h);c=o[a+16>>2];d=0;c:{if(!o[c+80>>2]){break c}d=o[o[c>>2]>>2]+o[c+48>>2]|0}if(b){while(1){c=j;e=0;if((f|0)>0){while(1){o[i+(e<<2)>>2]=o[d+(c<<2)>>2];c=c+1|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}j=j+f|0}ll(o[o[o[a+8>>2]+64>>2]>>2]+k|0,i,h);k=h+k|0;g=g+1|0;if((g|0)!=(b|0)){continue}break}}jl(i);return 1;default:break a}}g=m[d+24|0];h=yk((g|0)>-1?g:-1);c=o[a+16>>2];d=0;d:{if(!o[c+80>>2]){break d}d=o[o[c>>2]>>2]+o[c+48>>2]|0}if(b){while(1){c=j;e=0;if((g|0)>0){while(1){m[e+h|0]=o[d+(c<<2)>>2];c=c+1|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}j=g+j|0}ll(o[o[o[a+8>>2]+64>>2]>>2]+k|0,h,g);k=g+k|0;i=i+1|0;if((i|0)!=(b|0)){continue}break}}jl(h);return 1}function Zg(a,b){var c=0,d=0,e=0,f=0,g=0;a:{e=o[a+8>>2];c=o[a+4>>2];if((e-c|0)/144>>>0>=b>>>0){while(1){o[c>>2]=-1;Vi(c+4|0);o[c+104>>2]=0;o[c+108>>2]=0;m[c+100|0]=1;o[c+112>>2]=0;o[c+116>>2]=0;o[c+120>>2]=0;o[c+124>>2]=0;o[c+128>>2]=0;o[c+132>>2]=0;o[c+136>>2]=0;o[c+140>>2]=0;c=o[a+4>>2]+144|0;o[a+4>>2]=c;b=b+ -1|0;if(b){continue}break a}}d=c;c=o[a>>2];f=(d-c|0)/144|0;g=f+b|0;b:{c:{d:{if(g>>>0<29826162){e=(e-c|0)/144|0;c=e<<1;c=e>>>0<14913080?c>>>0>>0?g:c:29826161;d=0;e:{if(!c){break e}if(c>>>0>=29826162){break d}d=yk(u(c,144))}e=d+u(c,144)|0;f=d+u(f,144)|0;c=f;while(1){o[c>>2]=-1;Vi(c+4|0);o[c+104>>2]=0;o[c+108>>2]=0;m[c+100|0]=1;o[c+112>>2]=0;o[c+116>>2]=0;o[c+120>>2]=0;o[c+124>>2]=0;o[c+128>>2]=0;o[c+132>>2]=0;o[c+136>>2]=0;o[c+140>>2]=0;c=c+144|0;b=b+ -1|0;if(b){continue}break}d=d+u(g,144)|0;b=o[a+4>>2];c=o[a>>2];if((b|0)==(c|0)){break c}while(1){b=b+ -144|0;f=Vh(f+ -144|0,b);if((b|0)!=(c|0)){continue}break}c=o[a+4>>2];b=o[a>>2];break b}Nk();D()}db(8832);D()}b=c}o[a+8>>2]=e;o[a+4>>2]=d;o[a>>2]=f;if((b|0)!=(c|0)){while(1){a=o[c+ -12>>2];if(a){o[c+ -8>>2]=a;jl(a)}a=o[c+ -28>>2];if(a){o[c+ -24>>2]=a;jl(a)}a=c+ -144|0;d=o[c+ -40>>2];if(d){o[c+ -36>>2]=d;jl(d)}Yg(c+ -140|0);c=a;if((b|0)!=(c|0)){continue}break}}if(!b){break a}jl(b)}}function _f(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=R-32|0;R=e;f=a+16|0;d=o[f>>2];a:{b:{if(!d){break b}h=o[b>>2];c=f;while(1){g=o[d+16>>2]<(h|0);c=g?c:d;d=o[(g<<2)+d>>2];if(d){continue}break}if((c|0)==(f|0)){break b}if((h|0)>=o[c+16>>2]){break a}}j=yi(e+16|0);b=o[b>>2];i=e+8|0;o[i>>2]=0;o[i+4>>2]=0;o[e>>2]=b;o[e+4>>2]=i;c=o[j>>2];h=j+4|0;if((c|0)!=(h|0)){g=e|4;while(1){b=c;d=c+16|0;$f(g,i,d,d);d=o[c+4>>2];c:{if(!d){c=o[b+8>>2];if((b|0)==o[c>>2]){break c}d=b+8|0;while(1){b=o[d>>2];d=b+8|0;c=o[b+8>>2];if((b|0)!=o[c>>2]){continue}break}break c}while(1){c=d;d=o[c>>2];if(d){continue}break}}if((c|0)!=(h|0)){continue}break}}d=o[a+16>>2];d:{if(d){f=a+16|0;g=o[e>>2];while(1){b=o[d+16>>2];e:{if((g|0)<(b|0)){c=o[d>>2];if(c){break e}f=d;break d}if((b|0)>=(g|0)){break d}f=d+4|0;c=o[d+4>>2];if(!c){break d}d=f}f=d;d=c;continue}}d=f}c=o[f>>2];if(!c){c=yk(32);o[c+16>>2]=o[e>>2];o[c+20>>2]=o[e+4>>2];g=o[e+8>>2];o[c+24>>2]=g;b=o[e+12>>2];o[c+28>>2]=b;h=c+24|0;f:{if(!b){o[c+20>>2]=h;break f}o[g+8>>2]=h;o[e+8>>2]=0;o[e+12>>2]=0;o[e+4>>2]=i}o[c+8>>2]=d;o[c>>2]=0;o[c+4>>2]=0;o[f>>2]=c;d=o[o[a+12>>2]>>2];b=c;g:{if(!d){break g}o[a+12>>2]=d;b=o[f>>2]}ag(o[a+16>>2],b);a=a+20|0;o[a>>2]=o[a>>2]+1}Fc(e|4,o[e+8>>2]);Fc(j,o[j+4>>2])}R=e+32|0;return c+20|0}function Vf(a,b){var c=0,d=0,e=0;e=R-32|0;R=e;a:{if(b>>>0<=1){if(b-1){b=yk(48);zg(b);o[b>>2]=9880;o[a+8>>2]=0;o[a+12>>2]=0;o[a>>2]=0;o[a+4>>2]=0;o[a+16>>2]=b;break a}b=yk(52);zg(b);o[b+48>>2]=0;o[b>>2]=8120;o[a+8>>2]=0;o[a+12>>2]=0;o[a>>2]=0;o[a+4>>2]=0;o[a+16>>2]=b;break a}b=yk(32);o[e>>2]=b;o[e+4>>2]=28;o[e+8>>2]=-2147483616;m[b+28|0]=0;c=p[7868]|p[7869]<<8|(p[7870]<<16|p[7871]<<24);m[b+24|0]=c;m[b+25|0]=c>>>8;m[b+26|0]=c>>>16;m[b+27|0]=c>>>24;c=p[7864]|p[7865]<<8|(p[7866]<<16|p[7867]<<24);d=p[7860]|p[7861]<<8|(p[7862]<<16|p[7863]<<24);m[b+16|0]=d;m[b+17|0]=d>>>8;m[b+18|0]=d>>>16;m[b+19|0]=d>>>24;m[b+20|0]=c;m[b+21|0]=c>>>8;m[b+22|0]=c>>>16;m[b+23|0]=c>>>24;c=p[7856]|p[7857]<<8|(p[7858]<<16|p[7859]<<24);d=p[7852]|p[7853]<<8|(p[7854]<<16|p[7855]<<24);m[b+8|0]=d;m[b+9|0]=d>>>8;m[b+10|0]=d>>>16;m[b+11|0]=d>>>24;m[b+12|0]=c;m[b+13|0]=c>>>8;m[b+14|0]=c>>>16;m[b+15|0]=c>>>24;c=p[7848]|p[7849]<<8|(p[7850]<<16|p[7851]<<24);d=p[7844]|p[7845]<<8|(p[7846]<<16|p[7847]<<24);m[b|0]=d;m[b+1|0]=d>>>8;m[b+2|0]=d>>>16;m[b+3|0]=d>>>24;m[b+4|0]=c;m[b+5|0]=c>>>8;m[b+6|0]=c>>>16;m[b+7|0]=c>>>24;o[e+16>>2]=-1;b=Bk(e+16|4,e);o[a>>2]=o[e+16>>2];Bk(a+4|0,b);o[a+16>>2]=0;if(m[b+11|0]<=-1){jl(o[b>>2])}if(m[e+11|0]>-1){break a}jl(o[e>>2])}R=e+32|0}function cj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=R-32|0;R=d;o[d+24>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;a:{e=o[a>>2];c=e;g=o[c+16>>2];h=r[c+8>>2]>g>>>0?0:1;f=o[c+12>>2];c=o[c+20>>2];b:{if((f|0)<(c|0)?1:(f|0)<=(c|0)?h:0){break b}h=p[g+o[e>>2]|0];f=c;c=g+1|0;if(c>>>0<1){f=f+1|0}o[e+16>>2]=c;o[e+20>>2]=f;Gk(d+16|0,h);if(h){f=o[a>>2];j=Kk(d+16|0);l=o[f+12>>2];g=o[f+20>>2];k=o[f+16>>2];e=h;c=k+e|0;if(c>>>0>>0){g=g+1|0}if((l|0)<(g|0)?1:(l|0)<=(g|0)?r[f+8>>2]>=c>>>0?0:1:0){break b}ll(j,k+o[f>>2]|0,h);c=f;f=c;g=o[c+20>>2];h=e+o[c+16>>2]|0;if(h>>>0>>0){g=g+1|0}o[f+16>>2]=h;o[c+20>>2]=g}o[d+12>>2]=0;c=bj(1,d+12|0,o[a>>2]);e=o[d+12>>2];if(!e|!c){break b}o[d+8>>2]=0;o[d>>2]=0;o[d+4>>2]=0;if((e|0)<=-1){break a}i=yk(e);o[d>>2]=i;o[d+4>>2]=i;o[d+8>>2]=e+i;c=e;while(1){m[i|0]=0;i=o[d+4>>2]+1|0;o[d+4>>2]=i;c=c+ -1|0;if(c){continue}break}i=0;c=o[a>>2];a=o[c+8>>2];k=o[c+12>>2];f=a;j=o[c+20>>2];g=o[c+16>>2];a=e;h=g+e|0;if(h>>>0>>0){j=j+1|0}if((k|0)>(j|0)?1:(k|0)>=(j|0)?f>>>0>>0?0:1:0){ll(o[d>>2],g+o[c>>2]|0,e);e=c;h=c;f=o[c+20>>2];c=a+o[c+16>>2]|0;if(c>>>0>>0){f=f+1|0}o[h+16>>2]=c;o[e+20>>2]=f;nj(b,d+16|0,d);i=1}a=o[d>>2];if(!a){break b}o[d+4>>2]=a;jl(a)}if(m[d+27|0]<=-1){jl(o[d+16>>2])}R=d+32|0;return i}Nk();D()}function eg(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,v=0,w=0,x=0;e=R+ -64|0;R=e;o[e+56>>2]=0;o[e+48>>2]=0;o[e+52>>2]=0;o[e+40>>2]=0;o[e+44>>2]=0;o[e+32>>2]=0;o[e+36>>2]=0;o[e+24>>2]=0;o[e+28>>2]=0;o[e+16>>2]=0;o[e+20>>2]=0;o[e+8>>2]=0;o[e+12>>2]=0;a:{if(!gg(e+8|0,c)){break a}if(!hg(e+8|0,c)){break a}b:{if(!a){ui(c,0,0);break b}if(!o[e+20>>2]){break a}ui(c,0,0);g=o[e+56>>2];s=o[e+36>>2];t=o[e+48>>2];v=o[e+24>>2];while(1){c:{if(g>>>0>16383){break c}f=o[e+52>>2];while(1){if((f|0)<1){break c}f=f+ -1|0;o[e+52>>2]=f;g=p[f+t|0]|g<<8;o[e+56>>2]=g;if(g>>>0<16384){continue}break}}h=g&4095;m=o[(h<<2)+v>>2];i=(m<<3)+s|0;g=(u(o[i>>2],g>>>12|0)+h|0)-o[i+4>>2]|0;o[e+56>>2]=g;if((b|0)>=1){j=0;i=q;if(!p[c+36|0]){break a}while(1){n=0;if((m|0)>=1){h=o[c+32>>2];w=o[c+28>>2];x=o[c+24>>2];f=0;while(1){k=(h>>>3|0)+x|0;d:{if(k>>>0>=w>>>0){l=0;break d}l=p[k|0];k=h+1|0;o[c+32>>2]=k;l=l>>>(h&7)&1;h=k}n=l<>2]=n;i=i+1|0;j=j+1|0;if((j|0)!=(b|0)){continue}break}q=b+q|0}r=b+r|0;if(r>>>0>>0){continue}break}}wi(c);j=1}a=o[e+36>>2];if(a){o[e+40>>2]=a;jl(a)}a=o[e+24>>2];if(a){o[e+28>>2]=a;jl(a)}a=o[e+8>>2];if(a){o[e+12>>2]=a;jl(a)}R=e- -64|0;return j}function Ca(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=R-16|0;R=e;o[a+68>>2]=o[a+68>>2]+1;d=u(b,12)+a|0;d=o[d+12>>2]-o[d+8>>2]|0;if((d|0)>=1){d=d>>2;j=(d|0)>1?d:1;d=o[((b<<2)+a|0)+44>>2];while(1){b=d;g=(b>>>0)/3|0;f=(b|0)==-1;d=f?-1:g;h=o[a+56>>2]+(d>>>3&536870908)|0;o[h>>2]=o[h>>2]|1<<(d&31);o[a+72>>2]=o[a+72>>2]+1;a:{b:{if(!i){o[e+12>>2]=(b|0)<0?-1:o[(o[o[a>>2]+96>>2]+u(g,12)|0)+((b>>>0)%3<<2)>>2];o[e+8>>2]=c;Ba(e+8|0,e+12|0);c:{if(!f){d=-1;g=e;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)>=0){h=(f>>>0)/3|0;f=o[(o[o[a>>2]+96>>2]+u(h,12)|0)+(f-u(h,3)<<2)>>2]}else{f=-1}o[g+12>>2]=f;o[e+8>>2]=c;Ba(e+8|0,e+12|0);g=((b>>>0)%3|0?-1:2)+b|0;if((g|0)<0){break c}d=(g>>>0)/3|0;d=o[(o[o[a>>2]+96>>2]+u(d,12)|0)+(g-u(d,3)<<2)>>2];break c}d=-1;o[e+12>>2]=-1;o[e+8>>2]=c;Ba(e+8|0,e+12|0)}o[a+76>>2]=d;o[e+12>>2]=d;o[e+8>>2]=c;Ba(e+8|0,e+12|0);break b}f=(b|0)<0?-1:o[(o[o[a>>2]+96>>2]+u(g,12)|0)+((b>>>0)%3<<2)>>2];o[a+76>>2]=f;o[e+12>>2]=f;o[e+8>>2]=c;Ba(e+8|0,e+12|0);if(i&1){d=-1;if((b|0)==-1){break a}if(b-u(g,3)){b=b+ -1|0;break b}b=b+2|0;break b}d=-1;if((b|0)==-1){break a}d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0}d=-1;if((b|0)==-1){break a}d=o[o[o[a+4>>2]+12>>2]+(b<<2)>>2]}i=i+1|0;if((j|0)!=(i|0)){continue}break}}R=e+16|0}function Zj(a,b,c,d){var e=0,h=0,i=0,j=0,k=0,l=0,m=0;i=R-32|0;R=i;e=d&2147483647;k=e;e=e+ -1006698496|0;j=c;h=c;if(c>>>0<0){e=e+1|0}l=h;h=e;e=k+ -1140785152|0;m=j;if(j>>>0<0){e=e+1|0}a:{if((e|0)==(h|0)&l>>>0>>0|h>>>0>>0){e=d<<4|c>>>28;c=c<<4|b>>>28;b=b&268435455;j=b;if((b|0)==134217728&a>>>0>=1|b>>>0>134217728){e=e+1073741824|0;a=c+1|0;if(a>>>0<1){e=e+1|0}h=a;break a}h=c;e=e-((c>>>0<0)+ -1073741824|0)|0;if(a|j^134217728){break a}a=h+(h&1)|0;if(a>>>0>>0){e=e+1|0}h=a;break a}if(!(!j&(k|0)==2147418112?!(a|b):(k|0)==2147418112&j>>>0<0|k>>>0<2147418112)){e=d<<4|c>>>28;h=c<<4|b>>>28;e=e&524287|2146959360;break a}h=0;e=2146435072;if((k|0)==1140785151&j>>>0>4294967295|k>>>0>1140785151){break a}e=0;j=k>>>16|0;if(j>>>0<15249){break a}e=d&65535|65536;Xj(i+16|0,a,b,c,e,j+ -15233|0);Yj(i,a,b,c,e,15361-j|0);c=o[i+4>>2];a=o[i+8>>2];e=o[i+12>>2]<<4|a>>>28;h=a<<4|c>>>28;a=c&268435455;c=a;b=o[i>>2]|((o[i+16>>2]|o[i+24>>2])!=0|(o[i+20>>2]|o[i+28>>2])!=0);if((a|0)==134217728&b>>>0>=1|a>>>0>134217728){a=h+1|0;if(a>>>0<1){e=e+1|0}h=a;break a}if(b|c^134217728){break a}a=h+(h&1)|0;if(a>>>0>>0){e=e+1|0}h=a}R=i+32|0;f(0,h|0);f(1,d&-2147483648|e);return+g()}function fh(a,b,c,d){var e=0,f=0,g=0,h=0,i=v(0),j=0,k=v(0),l=0,n=0;f=o[c>>2];l=a;a:{b:{e=o[b+4>>2];if(!e){break b}h=o[b>>2];j=Rl(e);g=f&e+ -1;c:{if(j>>>0<=1){break c}c=f;g=c;if(c>>>0>>0){break c}g=(f>>>0)%(e>>>0)|0}c=g;g=c;c=o[(c<<2)+h>>2];if(!c){break b}n=e+ -1|0;j=j>>>0>1;while(1){c=o[c>>2];if(!c){break b}h=o[c+4>>2];if((f|0)!=(h|0)){d:{if(!j){h=h&n;break d}if(h>>>0>>0){break d}h=(h>>>0)%(e>>>0)|0}if((h|0)!=(g|0)){break b}}if((f|0)!=o[c+8>>2]){continue}break}b=0;break a}c=yk(16);d=o[o[d>>2]>>2];o[c+12>>2]=0;o[c+8>>2]=d;o[c+4>>2]=f;o[c>>2]=0;i=s[b+16>>2];k=v(o[b+12>>2]+1>>>0);e:{if(v(i*v(e>>>0))>>0<3|e<<1;d=b;i=v(B(v(k/i)));f:{if(i=v(0)){g=~~i>>>0;break f}g=0}Wh(d,e>>>0>>0?g:e);e=o[b+4>>2];if(!(e&e+ -1)){g=f&e+ -1;break e}if(f>>>0>>0){g=f;break e}g=(f>>>0)%(e>>>0)|0}f=o[b>>2]+(g<<2)|0;d=o[f>>2];g:{h:{if(!d){o[c>>2]=o[b+8>>2];o[b+8>>2]=c;o[f>>2]=b+8;d=o[c>>2];if(!d){break g}d=o[d+4>>2];f=e+ -1|0;i:{if(!(f&e)){d=d&f;break i}if(d>>>0>>0){break i}d=(d>>>0)%(e>>>0)|0}d=o[b>>2]+(d<<2)|0;break h}o[c>>2]=o[d>>2]}o[d>>2]=c}o[b+12>>2]=o[b+12>>2]+1;b=1}m[l+4|0]=b;o[a>>2]=c}function ki(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{b=o[a+32>>2];e=o[b+16>>2];g=o[b+12>>2];d=o[b+20>>2];b:{if((g|0)<(d|0)?1:(g|0)<=(d|0)?r[b+8>>2]>e>>>0?0:1:0){break b}h=p[e+o[b>>2]|0];i=e+1|0;if(i>>>0<1){d=d+1|0}o[b+16>>2]=i;o[b+20>>2]=d;c:{if(!h){break c}while(1){if(l[o[o[a>>2]+16>>2]](a,c)){c=c+1|0;if((h|0)!=(c|0)){continue}break c}break}return 0}c=o[a+8>>2];d=o[a+12>>2];if((c|0)!=(d|0)){while(1){b=o[c>>2];if(!l[o[o[b>>2]+8>>2]](b,a,o[a+4>>2])){break b}c=c+4|0;if((d|0)!=(c|0)){continue}break}}if(h){c=0;while(1){b=o[o[a+8>>2]+(c<<2)>>2];if(!l[o[o[b>>2]+12>>2]](b,o[a+32>>2])){break a}c=c+1|0;if((h|0)!=(c|0)){continue}break}g=a+20|0;while(1){c=0;i=j<<2;b=o[i+o[a+8>>2]>>2];d=l[o[o[b>>2]+24>>2]](b)|0;if((d|0)>0){while(1){b=o[o[a+8>>2]+i>>2];b=l[o[o[b>>2]+20>>2]](b,c)|0;k=o[a+20>>2];e=o[a+24>>2]-k>>2;d:{if(b>>>0>>0){break d}f=b+1|0;if(f>>>0>e>>>0){Ia(g,f-e|0);k=o[g>>2];break d}if(f>>>0>=e>>>0){break d}o[a+24>>2]=(f<<2)+k}o[(b<<2)+k>>2]=j;c=c+1|0;if((d|0)!=(c|0)){continue}break}}j=j+1|0;if((j|0)!=(h|0)){continue}break}}f=0;if(!l[o[o[a>>2]+28>>2]](a)){break b}f=l[o[o[a>>2]+32>>2]](a)|0}return f|0}return 0}function Ma(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=R-16|0;R=e;i=o[a+80>>2];g=m[b+24|0];f=u(i,g);a:{a=o[b+28>>2];b:{if(!(!p[b+84|0]|((a|0)!=2?(a|0)!=1:0))){h=o[b+48>>2];b=o[o[b>>2]>>2];o[e+8>>2]=0;o[e>>2]=0;o[e+4>>2]=0;a=0;if(f){if((f|0)<=-1){break a}a=yk(f);o[e>>2]=a;d=a+f|0;o[e+8>>2]=d;ll(a,b+h|0,f);o[e+4>>2]=d}b=o[c>>2];if(b){o[c+4>>2]=b;jl(b);o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0}o[c+8>>2]=d;o[c+4>>2]=d;o[c>>2]=a;d=1;break b}o[e+8>>2]=0;o[e>>2]=0;o[e+4>>2]=0;if(g){if((g|0)<=-1){break a}d=yk(g);o[e>>2]=d;o[e+4>>2]=d;o[e+8>>2]=d+g;a=g;while(1){m[d|0]=0;d=o[e+4>>2]+1|0;o[e+4>>2]=d;a=a+ -1|0;if(a){continue}break}}a=o[c>>2];h=o[c+4>>2]-a|0;c:{if(f>>>0>h>>>0){Ka(c,f-h|0);break c}if(f>>>0>=h>>>0){break c}o[c+4>>2]=a+f}d:{if(i){k=(g|0)<1;f=0;while(1){a=f;h=b;if(!p[b+84|0]){a=o[o[b+68>>2]+(f<<2)>>2]}l=a;a=o[e>>2];d=0;if(!Na(h,l,m[b+24|0],a)){break d}if(!k){m[o[c>>2]+j|0]=p[a|0];d=1;a=j;if((g|0)!=1){while(1){a=a+1|0;m[a+o[c>>2]|0]=p[o[e>>2]+d|0];d=d+1|0;if((g|0)!=(d|0)){continue}break}}j=g+j|0}f=f+1|0;if((i|0)!=(f|0)){continue}break}}a=o[e>>2];d=1}if(!a){break b}o[e+4>>2]=a;jl(a)}R=e+16|0;return d}Nk();D()}function Ja(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=R-16|0;R=e;i=o[a+80>>2];g=m[b+24|0];f=u(i,g);a:{a=o[b+28>>2];b:{if(!(!p[b+84|0]|((a|0)!=2?(a|0)!=1:0))){h=o[b+48>>2];b=o[o[b>>2]>>2];o[e+8>>2]=0;o[e>>2]=0;o[e+4>>2]=0;a=0;if(f){if((f|0)<=-1){break a}a=yk(f);o[e>>2]=a;d=a+f|0;o[e+8>>2]=d;ll(a,b+h|0,f);o[e+4>>2]=d}b=o[c>>2];if(b){o[c+4>>2]=b;jl(b);o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0}o[c+8>>2]=d;o[c+4>>2]=d;o[c>>2]=a;d=1;break b}o[e+8>>2]=0;o[e>>2]=0;o[e+4>>2]=0;if(g){if((g|0)<=-1){break a}d=yk(g);o[e>>2]=d;o[e+4>>2]=d;o[e+8>>2]=d+g;a=g;while(1){m[d|0]=0;d=o[e+4>>2]+1|0;o[e+4>>2]=d;a=a+ -1|0;if(a){continue}break}}a=o[c>>2];h=o[c+4>>2]-a|0;c:{if(f>>>0>h>>>0){Ka(c,f-h|0);break c}if(f>>>0>=h>>>0){break c}o[c+4>>2]=a+f}d:{if(i){k=(g|0)<1;f=0;while(1){a=f;h=b;if(!p[b+84|0]){a=o[o[b+68>>2]+(f<<2)>>2]}l=a;a=o[e>>2];d=0;if(!La(h,l,m[b+24|0],a)){break d}if(!k){m[o[c>>2]+j|0]=p[a|0];d=1;a=j;if((g|0)!=1){while(1){a=a+1|0;m[a+o[c>>2]|0]=p[o[e>>2]+d|0];d=d+1|0;if((g|0)!=(d|0)){continue}break}}j=g+j|0}f=f+1|0;if((i|0)!=(f|0)){continue}break}}a=o[e>>2];d=1}if(!a){break b}o[e+4>>2]=a;jl(a)}R=e+16|0;return d}Nk();D()}function Va(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=R-16|0;R=e;k=o[a+80>>2];h=m[b+24|0];i=u(k,h);a:{a=o[b+28>>2];b:{if(!(!p[b+84|0]|((a|0)!=6?(a|0)!=5:0))){j=o[b+48>>2];b=o[o[b>>2]>>2];o[e+8>>2]=0;o[e>>2]=0;o[e+4>>2]=0;a=0;f=i<<2;c:{if(!f){break c}a=f>>2;if(a>>>0>=1073741824){break a}d=yk(f);o[e>>2]=d;o[e+4>>2]=d;g=(a<<2)+d|0;o[e+8>>2]=g;if((f|0)<1){a=d;break c}a=ll(d,b+j|0,f);d=a+f|0;o[e+4>>2]=d}b=o[c>>2];if(b){o[c+4>>2]=b;jl(b);o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0}o[c+8>>2]=g;o[c+4>>2]=d;o[c>>2]=a;a=1;break b}o[e+8>>2]=0;o[e>>2]=0;o[e+4>>2]=0;if(h){if((h|0)<=-1){break a}d=h<<2;g=yk(d);o[e>>2]=g;a=d+g|0;o[e+8>>2]=a;ml(g,0,d);o[e+4>>2]=a}a=o[c>>2];d=o[c+4>>2]-a>>2;d:{if(i>>>0>d>>>0){Ia(c,i-d|0);break d}if(i>>>0>=d>>>0){break d}o[c+4>>2]=a+(i<<2)}e:{if(!k){a=1;break e}l=(h|0)<1;while(1){a=f;d=b;if(!p[d+84|0]){a=o[o[b+68>>2]+(f<<2)>>2]}if(!Wa(d,a,m[b+24|0],g)){a=0;break e}if(!l){i=o[c>>2];a=0;d=j;while(1){o[i+(d<<2)>>2]=o[(a<<2)+g>>2];d=d+1|0;a=a+1|0;if((h|0)!=(a|0)){continue}break}j=h+j|0}a=1;f=f+1|0;if((k|0)!=(f|0)){continue}break}}if(!g){break b}o[e+4>>2]=g;jl(g)}R=e+16|0;return a}Nk();D()}function Ta(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=R-16|0;R=e;k=o[a+80>>2];h=m[b+24|0];i=u(k,h);a:{a=o[b+28>>2];b:{if(!(!p[b+84|0]|((a|0)!=6?(a|0)!=5:0))){j=o[b+48>>2];b=o[o[b>>2]>>2];o[e+8>>2]=0;o[e>>2]=0;o[e+4>>2]=0;a=0;f=i<<2;c:{if(!f){break c}a=f>>2;if(a>>>0>=1073741824){break a}d=yk(f);o[e>>2]=d;o[e+4>>2]=d;g=(a<<2)+d|0;o[e+8>>2]=g;if((f|0)<1){a=d;break c}a=ll(d,b+j|0,f);d=a+f|0;o[e+4>>2]=d}b=o[c>>2];if(b){o[c+4>>2]=b;jl(b);o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0}o[c+8>>2]=g;o[c+4>>2]=d;o[c>>2]=a;a=1;break b}o[e+8>>2]=0;o[e>>2]=0;o[e+4>>2]=0;if(h){if((h|0)<=-1){break a}d=h<<2;g=yk(d);o[e>>2]=g;a=d+g|0;o[e+8>>2]=a;ml(g,0,d);o[e+4>>2]=a}a=o[c>>2];d=o[c+4>>2]-a>>2;d:{if(i>>>0>d>>>0){Ia(c,i-d|0);break d}if(i>>>0>=d>>>0){break d}o[c+4>>2]=a+(i<<2)}e:{if(!k){a=1;break e}l=(h|0)<1;while(1){a=f;d=b;if(!p[d+84|0]){a=o[o[b+68>>2]+(f<<2)>>2]}if(!Ua(d,a,m[b+24|0],g)){a=0;break e}if(!l){i=o[c>>2];a=0;d=j;while(1){o[i+(d<<2)>>2]=o[(a<<2)+g>>2];d=d+1|0;a=a+1|0;if((h|0)!=(a|0)){continue}break}j=h+j|0}a=1;f=f+1|0;if((k|0)!=(f|0)){continue}break}}if(!g){break b}o[e+4>>2]=g;jl(g)}R=e+16|0;return a}Nk();D()}function ll(a,b,c){var d=0,e=0,f=0;if(c>>>0>=512){O(a|0,b|0,c|0)|0;return a}e=a+c|0;a:{if(!((a^b)&3)){b:{if((c|0)<1){c=a;break b}if(!(a&3)){c=a;break b}c=a;while(1){m[c|0]=p[b|0];b=b+1|0;c=c+1|0;if(c>>>0>=e>>>0){break b}if(c&3){continue}break}}d=e&-4;c:{if(d>>>0<64){break c}f=d+ -64|0;if(c>>>0>f>>>0){break c}while(1){o[c>>2]=o[b>>2];o[c+4>>2]=o[b+4>>2];o[c+8>>2]=o[b+8>>2];o[c+12>>2]=o[b+12>>2];o[c+16>>2]=o[b+16>>2];o[c+20>>2]=o[b+20>>2];o[c+24>>2]=o[b+24>>2];o[c+28>>2]=o[b+28>>2];o[c+32>>2]=o[b+32>>2];o[c+36>>2]=o[b+36>>2];o[c+40>>2]=o[b+40>>2];o[c+44>>2]=o[b+44>>2];o[c+48>>2]=o[b+48>>2];o[c+52>>2]=o[b+52>>2];o[c+56>>2]=o[b+56>>2];o[c+60>>2]=o[b+60>>2];b=b- -64|0;c=c- -64|0;if(c>>>0<=f>>>0){continue}break}}if(c>>>0>=d>>>0){break a}while(1){o[c>>2]=o[b>>2];b=b+4|0;c=c+4|0;if(c>>>0>>0){continue}break}break a}if(e>>>0<4){c=a;break a}d=e+ -4|0;if(d>>>0>>0){c=a;break a}c=a;while(1){m[c|0]=p[b|0];m[c+1|0]=p[b+1|0];m[c+2|0]=p[b+2|0];m[c+3|0]=p[b+3|0];b=b+4|0;c=c+4|0;if(c>>>0<=d>>>0){continue}break}}if(c>>>0>>0){while(1){m[c|0]=p[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}return a}function Fe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=R-32|0;R=i;a:{b:{while(1){if(!Ge(1,i+28|0,b)){break b}c=o[i+28>>2];if(c){f=(u(d,12)+a|0)+60|0;He(f,c);h=Rf(i+8|0);if(!Sf(h,b)){break b}g=0;while(1){j=1<<(g&31);k=Uf(h);e=o[f>>2]+(g>>>3&536870908)|0;l=e;if(k){e=o[e>>2]|j}else{e=o[e>>2]&(j^-1)}o[l>>2]=e;g=g+1|0;if((c|0)!=(g|0)){continue}break}}d=d+1|0;if((d|0)!=4){continue}break}g=0;d=o[b+12>>2];j=d;c=o[b+20>>2];e=c;h=o[b+16>>2];f=h+4|0;if(f>>>0<4){c=c+1|0}l=o[b+8>>2];k=f;f=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?l>>>0>=k>>>0?0:1:0){break a}m=o[b>>2];c=m+h|0;d=p[c|0]|p[c+1|0]<<8|(p[c+2|0]<<16|p[c+3|0]<<24);o[b+16>>2]=k;o[b+20>>2]=f;c=e;e=h+8|0;if(e>>>0<8){c=c+1|0}f=e;e=c;if((j|0)<(c|0)?1:(j|0)<=(c|0)?l>>>0>=f>>>0?0:1:0){break a}c=k+m|0;c=p[c|0]|p[c+1|0]<<8|(p[c+2|0]<<16|p[c+3|0]<<24);o[b+16>>2]=f;o[b+20>>2]=e;if((d|0)>(c|0)){break a}o[a+16>>2]=c;o[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break a}g=1;b=b+1|0;o[a+20>>2]=b;c=(b|0)/2|0;o[a+24>>2]=c;o[a+28>>2]=0-c;if(b&1){break a}o[a+24>>2]=c+ -1;break a}g=0}R=i+32|0;return g|0}function oh(a){a=a|0;var b=0,c=0,d=0,e=0;o[a>>2]=8228;b=a+368|0;d=o[b>>2];o[b>>2]=0;if(d){c=d+ -4|0;b=o[c>>2];if(b){b=d+(b<<4)|0;while(1){b=b+ -16|0;if((d|0)!=(b|0)){continue}break}}jl(c)}d=o[a+216>>2];if(d){b=o[a+220>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=o[b+ -12>>2];if(c){o[b+ -8>>2]=c;jl(c)}c=o[b+ -28>>2];if(c){o[b+ -24>>2]=c;jl(c)}c=b+ -144|0;e=o[b+ -40>>2];if(e){o[b+ -36>>2]=e;jl(e)}Yg(b+ -140|0);b=c;if((d|0)!=(b|0)){continue}break}c=o[a+216>>2]}o[a+220>>2]=d;jl(c)}b=o[a+196>>2];if(b){o[a+200>>2]=b;jl(b)}b=o[a+184>>2];if(b){o[a+188>>2]=b;jl(b)}b=o[a+172>>2];if(b){o[a+176>>2]=b;jl(b)}b=o[a+160>>2];if(b){o[a+164>>2]=b;jl(b)}b=o[a+144>>2];if(b){while(1){d=o[b>>2];jl(b);b=d;if(b){continue}break}}b=o[a+136>>2];o[a+136>>2]=0;if(b){jl(b)}b=o[a+120>>2];if(b){jl(b)}b=o[a+108>>2];if(b){jl(b)}b=o[a+96>>2];if(b){jl(b)}b=o[a+72>>2];if(b){o[a+76>>2]=b;jl(b)}b=o[a+60>>2];if(b){jl(b)}b=o[a+48>>2];if(b){o[a+52>>2]=b;jl(b)}b=o[a+36>>2];if(b){o[a+40>>2]=b;jl(b)}b=o[a+24>>2];if(b){o[a+28>>2]=b;jl(b)}b=o[a+12>>2];if(b){o[a+16>>2]=b;jl(b)}b=o[a+8>>2];o[a+8>>2]=0;if(b){za(a+8|0,b)}return a|0}function Ra(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=R-16|0;R=e;k=o[a+80>>2];h=m[b+24|0];a=u(k,h);a:{g=o[b+28>>2];b:{if(!(!p[b+84|0]|((g|0)!=4?(g|0)!=3:0))){i=o[b+48>>2];j=o[o[b>>2]>>2];o[e+8>>2]=0;o[e>>2]=0;o[e+4>>2]=0;b=0;a=a<<1;if(a){if((a|0)<=-1){break a}d=yk(a);o[e>>2]=d;f=(a>>1<<1)+d|0;o[e+8>>2]=f;b=ll(d,i+j|0,a)+a|0;o[e+4>>2]=b}a=o[c>>2];if(a){o[c+4>>2]=a;jl(a);o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0}o[c+8>>2]=f;o[c+4>>2]=b;o[c>>2]=d;a=1;break b}o[e+8>>2]=0;o[e>>2]=0;o[e+4>>2]=0;if(h){if((h|0)<=-1){break a}d=h<<1;f=yk(d);o[e>>2]=f;g=d+f|0;o[e+8>>2]=g;ml(f,0,d);o[e+4>>2]=g}g=o[c>>2];d=o[c+4>>2]-g>>1;c:{if(a>>>0>d>>>0){Pa(c,a-d|0);break c}if(a>>>0>=d>>>0){break c}o[c+4>>2]=g+(a<<1)}d:{if(!k){a=1;break d}g=(h|0)<1;while(1){a=i;d=b;if(!p[d+84|0]){a=o[o[b+68>>2]+(i<<2)>>2]}if(!Sa(d,a,m[b+24|0],f)){a=0;break d}if(!g){l=o[c>>2];a=0;d=j;while(1){n[l+(d<<1)>>1]=q[(a<<1)+f>>1];d=d+1|0;a=a+1|0;if((h|0)!=(a|0)){continue}break}j=h+j|0}a=1;i=i+1|0;if((k|0)!=(i|0)){continue}break}}if(!f){break b}o[e+4>>2]=f;jl(f)}R=e+16|0;return a}Nk();D()}function Oa(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=R-16|0;R=e;k=o[a+80>>2];h=m[b+24|0];a=u(k,h);a:{g=o[b+28>>2];b:{if(!(!p[b+84|0]|((g|0)!=4?(g|0)!=3:0))){i=o[b+48>>2];j=o[o[b>>2]>>2];o[e+8>>2]=0;o[e>>2]=0;o[e+4>>2]=0;b=0;a=a<<1;if(a){if((a|0)<=-1){break a}d=yk(a);o[e>>2]=d;f=(a>>1<<1)+d|0;o[e+8>>2]=f;b=ll(d,i+j|0,a)+a|0;o[e+4>>2]=b}a=o[c>>2];if(a){o[c+4>>2]=a;jl(a);o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0}o[c+8>>2]=f;o[c+4>>2]=b;o[c>>2]=d;a=1;break b}o[e+8>>2]=0;o[e>>2]=0;o[e+4>>2]=0;if(h){if((h|0)<=-1){break a}d=h<<1;f=yk(d);o[e>>2]=f;g=d+f|0;o[e+8>>2]=g;ml(f,0,d);o[e+4>>2]=g}g=o[c>>2];d=o[c+4>>2]-g>>1;c:{if(a>>>0>d>>>0){Pa(c,a-d|0);break c}if(a>>>0>=d>>>0){break c}o[c+4>>2]=g+(a<<1)}d:{if(!k){a=1;break d}g=(h|0)<1;while(1){a=i;d=b;if(!p[d+84|0]){a=o[o[b+68>>2]+(i<<2)>>2]}if(!Qa(d,a,m[b+24|0],f)){a=0;break d}if(!g){l=o[c>>2];a=0;d=j;while(1){n[l+(d<<1)>>1]=q[(a<<1)+f>>1];d=d+1|0;a=a+1|0;if((h|0)!=(a|0)){continue}break}j=h+j|0}a=1;i=i+1|0;if((k|0)!=(i|0)){continue}break}}if(!f){break b}o[e+4>>2]=f;jl(f)}R=e+16|0;return a}Nk();D()}function hf(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;d=0;a:{if((e|0)!=2){break a}o[a+8>>2]=2;o[a- -64>>2]=f;d=a+32|0;e=o[d>>2];f=o[a+36>>2]-e|0;g=f>>2;b:{if(g>>>0<=1){Ia(d,2-g|0);break b}if((f|0)==8){break b}o[a+36>>2]=e+8}d=1;f=o[a+56>>2];e=o[f>>2];f=o[f+4>>2]-e|0;if((f|0)<1){break a}j=a+60|0;d=f>>2;k=(d|0)>1?d:1;while(1){if(!jf(j,o[(i<<2)+e>>2],c,i)){d=0;break a}c:{if(o[a+8>>2]<1){break c}e=0;while(1){d=e<<2;f=o[(d+a|0)+68>>2];h=o[a+16>>2];d:{if((f|0)>(h|0)){g=o[a+32>>2];o[d+g>>2]=h;break d}g=o[a+32>>2];d=d+g|0;h=o[a+12>>2];if((f|0)<(h|0)){o[d>>2]=h;break d}o[d>>2]=f}e=e+1|0;f=o[a+8>>2];if((e|0)<(f|0)){continue}break}d=0;if((f|0)<1){break c}e=i<<3;h=e+c|0;l=b+e|0;while(1){f=d<<2;e=f+h|0;f=o[f+l>>2]+o[f+g>>2]|0;o[e>>2]=f;e:{if((f|0)>o[a+16>>2]){f=f-o[a+20>>2]|0}else{if((f|0)>=o[a+12>>2]){break e}f=f+o[a+20>>2]|0}o[e>>2]=f}d=d+1|0;if((d|0)>2]){continue}break}}d=1;i=i+1|0;if((k|0)==(i|0)){break a}d=o[a+56>>2];e=o[d>>2];if(o[d+4>>2]-e>>2>>>0>i>>>0){continue}break}Ok();D()}return d|0}function Pe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;d=0;a:{if((e|0)!=2){break a}o[a+8>>2]=2;o[a- -64>>2]=f;d=a+32|0;e=o[d>>2];f=o[a+36>>2]-e|0;g=f>>2;b:{if(g>>>0<=1){Ia(d,2-g|0);break b}if((f|0)==8){break b}o[a+36>>2]=e+8}d=1;f=o[a+56>>2];e=o[f>>2];f=o[f+4>>2]-e|0;if((f|0)<1){break a}j=a+60|0;d=f>>2;k=(d|0)>1?d:1;while(1){if(!Qe(j,o[(i<<2)+e>>2],c,i)){d=0;break a}c:{if(o[a+8>>2]<1){break c}e=0;while(1){d=e<<2;f=o[(d+a|0)+68>>2];h=o[a+16>>2];d:{if((f|0)>(h|0)){g=o[a+32>>2];o[d+g>>2]=h;break d}g=o[a+32>>2];d=d+g|0;h=o[a+12>>2];if((f|0)<(h|0)){o[d>>2]=h;break d}o[d>>2]=f}e=e+1|0;f=o[a+8>>2];if((e|0)<(f|0)){continue}break}d=0;if((f|0)<1){break c}e=i<<3;h=e+c|0;l=b+e|0;while(1){f=d<<2;e=f+h|0;f=o[f+l>>2]+o[f+g>>2]|0;o[e>>2]=f;e:{if((f|0)>o[a+16>>2]){f=f-o[a+20>>2]|0}else{if((f|0)>=o[a+12>>2]){break e}f=f+o[a+20>>2]|0}o[e>>2]=f}d=d+1|0;if((d|0)>2]){continue}break}}d=1;i=i+1|0;if((k|0)==(i|0)){break a}d=o[a+56>>2];e=o[d>>2];if(o[d+4>>2]-e>>2>>>0>i>>>0){continue}break}Ok();D()}return d|0}function ag(a,b){var c=0,d=0,e=0;c=(a|0)==(b|0);m[b+12|0]=c;a:{if(c){break a}while(1){d=o[b+8>>2];if(p[d+12|0]){break a}b:{c=o[d+8>>2];e=o[c>>2];if((e|0)==(d|0)){e=o[c+4>>2];if(!(!e|p[e+12|0])){break b}c:{if(o[d>>2]==(b|0)){b=d;break c}b=o[d+4>>2];e=o[b>>2];o[d+4>>2]=e;a=b;if(e){o[e+8>>2]=d;c=o[d+8>>2]}o[a+8>>2]=c;a=o[d+8>>2];o[(((d|0)!=o[a>>2])<<2)+a>>2]=b;o[b>>2]=d;o[d+8>>2]=b;c=o[b+8>>2]}m[b+12|0]=1;m[c+12|0]=0;a=o[c>>2];b=o[a+4>>2];o[c>>2]=b;if(b){o[b+8>>2]=c}o[a+8>>2]=o[c+8>>2];b=o[c+8>>2];o[((o[b>>2]!=(c|0))<<2)+b>>2]=a;o[a+4>>2]=c;o[c+8>>2]=a;return}if(!(p[e+12|0]|!e)){break b}d:{if(o[d>>2]!=(b|0)){b=d;break d}e=o[b+4>>2];o[d>>2]=e;a=b;if(e){o[e+8>>2]=d;c=o[d+8>>2]}o[a+8>>2]=c;a=o[d+8>>2];o[(((d|0)!=o[a>>2])<<2)+a>>2]=b;o[b+4>>2]=d;o[d+8>>2]=b;c=o[b+8>>2]}m[b+12|0]=1;m[c+12|0]=0;a=o[c+4>>2];b=o[a>>2];o[c+4>>2]=b;if(b){o[b+8>>2]=c}o[a+8>>2]=o[c+8>>2];b=o[c+8>>2];o[((o[b>>2]!=(c|0))<<2)+b>>2]=a;o[a>>2]=c;o[c+8>>2]=a;break a}b=e+12|0;m[d+12|0]=1;m[c+12|0]=(a|0)==(c|0);m[b|0]=1;b=c;if((a|0)!=(b|0)){continue}break}}}function wf(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;j=o[o[o[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((l[o[o[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}h=l[o[o[b>>2]+36>>2]](b)|0;f=l[o[o[b>>2]+44>>2]](b,d)|0;if(!h|!f){break b}g=f+12|0;i=l[o[o[b>>2]+40>>2]](b,d)|0;d=o[b+44>>2];c:{if(i){if((c|0)!=6){break c}b=yk(104);o[b+4>>2]=j;c=o[e+4>>2];o[b+8>>2]=o[e>>2];o[b+12>>2]=c;c=o[e+12>>2];o[b+16>>2]=o[e+8>>2];o[b+20>>2]=c;o[b+36>>2]=f;o[b+32>>2]=g;o[b+28>>2]=i;o[b+24>>2]=d;o[b+64>>2]=f;o[b+60>>2]=g;o[b+56>>2]=i;o[b+52>>2]=d;o[b+44>>2]=0;o[b+48>>2]=0;o[b>>2]=5700;o[b+72>>2]=-1;o[b+76>>2]=-1;o[b+68>>2]=1;o[b+40>>2]=6264;break a}if((c|0)!=6){break c}b=yk(104);o[b+4>>2]=j;c=o[e+4>>2];o[b+8>>2]=o[e>>2];o[b+12>>2]=c;c=o[e+12>>2];o[b+16>>2]=o[e+8>>2];o[b+20>>2]=c;o[b+36>>2]=f;o[b+32>>2]=g;o[b+28>>2]=h;o[b+24>>2]=d;o[b+64>>2]=f;o[b+60>>2]=g;o[b+56>>2]=h;o[b+52>>2]=d;o[b+44>>2]=0;o[b+48>>2]=0;o[b>>2]=6704;o[b+72>>2]=-1;o[b+76>>2]=-1;o[b+68>>2]=1;o[b+40>>2]=7124;break a}o[a>>2]=0}o[a>>2]=0;return}o[b+80>>2]=-1;o[b+84>>2]=-1;Rf(b+88|0);o[a>>2]=b}function hb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=o[b>>2];e=o[c+4>>2]+(o[c>>2]-f<<3)|0;c=o[b+4>>2];g=e-c|0;a:{if((g|0)<=0){c=o[d+4>>2];break a}b:{if(!c){c=o[d+4>>2];break b}e=o[d+4>>2];j=32-e|0;k=32-c|0;h=(g|0)<(k|0)?g:k;i=j>>>0>>0?j:h;l=o[d>>2];f=o[f>>2]&(-1<>>k-h);o[l>>2]=o[l>>2]&(-1<>>j-i^-1)|(e>>>0>c>>>0?f<>>c-e|0);e=e+i|0;c=e&31;o[d+4>>2]=c;j=l+(e>>>3&536870908)|0;o[d>>2]=j;e=h-i|0;if((e|0)>=1){o[j>>2]=o[j>>2]&(-1>>>32-e^-1)|f>>>i+o[b+4>>2];o[d+4>>2]=e;c=e}g=g-h|0;f=o[b>>2]+4|0;o[b>>2]=f}i=-1<>2];f=o[f>>2];o[e>>2]=j&o[e>>2]|f<>2]=e+4;o[e+4>>2]=i&o[e+4>>2]|f>>>h;f=o[b>>2]+4|0;o[b>>2]=f;k=(g|0)>63;e=g+ -32|0;g=e;if(k){continue}break}}if((e|0)<1){break a}b=o[d>>2];g=(h|0)<(e|0)?h:e;i=o[b>>2]&(i&-1>>>h-g^-1);h=o[f>>2]&-1>>>32-e;o[b>>2]=i|h<>2]=c;f=b+(f>>>3&536870908)|0;o[d>>2]=f;b=e-g|0;if((b|0)<1){break a}o[f>>2]=o[f>>2]&(-1>>>32-b^-1)|h>>>g;o[d+4>>2]=b;c=b}b=o[d>>2];o[a+4>>2]=c;o[a>>2]=b}function Wd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,q=0,s=0;g=R-16|0;R=g;a:{if(!Bd(a,b)){break a}k=a+36|0;h=l[o[o[a>>2]+24>>2]](a)|0;e=o[a+40>>2];d=o[a+36>>2];c=e-d>>2;b:{if(h>>>0>c>>>0){Xd(k,h-c|0);break b}if(h>>>0>=c>>>0){break b}d=d+(h<<2)|0;if((d|0)!=(e|0)){while(1){e=e+ -4|0;c=o[e>>2];o[e>>2]=0;if(c){l[o[o[c>>2]+4>>2]](c)}if((e|0)!=(d|0)){continue}break}}o[a+40>>2]=d}j=1;if((h|0)<1){break a}j=0;e=0;while(1){f=o[b+16>>2];d=o[b+12>>2];c=o[b+20>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?r[b+8>>2]>f>>>0?0:1:0){break a}i=p[f+o[b>>2]|0];f=f+1|0;if(f>>>0<1){c=c+1|0}d=b;o[d+16>>2]=f;o[d+20>>2]=c;l[o[o[a>>2]+48>>2]](g+8|0,a,i);c=o[a+36>>2];d=o[g+8>>2];o[g+8>>2]=0;f=e<<2;i=c+f|0;c=o[i>>2];o[i>>2]=d;if(c){l[o[o[c>>2]+4>>2]](c)}c=o[g+8>>2];o[g+8>>2]=0;if(c){l[o[o[c>>2]+4>>2]](c)}c=o[o[k>>2]+f>>2];if(!c){break a}if(!(n=c,q=l[o[o[a>>2]+28>>2]](a)|0,s=l[o[o[a>>2]+20>>2]](a,e)|0,m=o[o[c>>2]+8>>2],l[m](n|0,q|0,s|0)|0)){break a}e=e+1|0;if((h|0)!=(e|0)){continue}break}j=1}R=g+16|0;return j|0}function Nf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=m[o[a+8>>2]+24|0];d=b<<2;b=yk((b|0)!=(b&1073741823)?-1:d);c=o[a+28>>2];o[a+28>>2]=b;if(c){jl(c)}c=o[o[a+4>>2]+32>>2];b=o[c+8>>2];i=o[c+12>>2];g=b;f=o[c+20>>2];h=o[c+16>>2];b=d;e=h+b|0;if(e>>>0>>0){f=f+1|0}a:{if((i|0)<(f|0)?1:(i|0)<=(f|0)?g>>>0>=e>>>0?0:1:0){break a}ll(o[a+28>>2],h+o[c>>2]|0,d);d=c;g=c;e=o[c+20>>2];c=b+o[c+16>>2]|0;if(c>>>0>>0){e=e+1|0}o[g+16>>2]=c;o[d+20>>2]=e;e=o[a+4>>2];d=o[e+32>>2];b=o[d+8>>2];f=o[d+12>>2];g=b;h=o[d+20>>2];c=o[d+16>>2];b=c+4|0;if(b>>>0<4){h=h+1|0}if((f|0)<(h|0)?1:(f|0)<=(h|0)?g>>>0>=b>>>0?0:1:0){break a}b=c+o[d>>2]|0;o[a+32>>2]=p[b|0]|p[b+1|0]<<8|(p[b+2|0]<<16|p[b+3|0]<<24);b=d;g=b;c=o[b+20>>2];d=o[b+16>>2]+4|0;if(d>>>0<4){c=c+1|0}o[g+16>>2]=d;o[b+20>>2]=c;b=o[e+32>>2];f=o[b+16>>2];e=o[b+12>>2];d=o[b+20>>2];c=d;if((e|0)<(c|0)?1:(e|0)<=(c|0)?r[b+8>>2]>f>>>0?0:1:0){break a}e=p[f+o[b>>2]|0];c=f+1|0;if(c>>>0<1){d=d+1|0}o[b+16>>2]=c;o[b+20>>2]=d;if(e>>>0>31){break a}o[a+24>>2]=e;j=1}return j|0}function qh(a){a=a|0;var b=0,c=0,d=0,e=0;o[a>>2]=8280;rh(a+232|0);e=o[a+216>>2];if(e){c=e;b=o[a+220>>2];d=c;a:{if((c|0)==(b|0)){break a}while(1){c=o[b+ -12>>2];if(c){o[b+ -8>>2]=c;jl(c)}c=o[b+ -28>>2];if(c){o[b+ -24>>2]=c;jl(c)}c=b+ -144|0;d=o[b+ -40>>2];if(d){o[b+ -36>>2]=d;jl(d)}Yg(b+ -140|0);b=c;if((e|0)!=(b|0)){continue}break}d=o[a+216>>2]}c=d;o[a+220>>2]=e;jl(c)}b=o[a+196>>2];if(b){o[a+200>>2]=b;jl(b)}b=o[a+184>>2];if(b){o[a+188>>2]=b;jl(b)}b=o[a+172>>2];if(b){o[a+176>>2]=b;jl(b)}b=o[a+160>>2];if(b){o[a+164>>2]=b;jl(b)}b=o[a+144>>2];if(b){while(1){c=o[b>>2];jl(b);b=c;if(b){continue}break}}b=o[a+136>>2];o[a+136>>2]=0;if(b){jl(b)}b=o[a+120>>2];if(b){jl(b)}b=o[a+108>>2];if(b){jl(b)}b=o[a+96>>2];if(b){jl(b)}b=o[a+72>>2];if(b){o[a+76>>2]=b;jl(b)}b=o[a+60>>2];if(b){jl(b)}b=o[a+48>>2];if(b){o[a+52>>2]=b;jl(b)}b=o[a+36>>2];if(b){o[a+40>>2]=b;jl(b)}b=o[a+24>>2];if(b){o[a+28>>2]=b;jl(b)}b=o[a+12>>2];if(b){o[a+16>>2]=b;jl(b)}b=o[a+8>>2];o[a+8>>2]=0;if(b){za(a+8|0,b)}return a|0}function He(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=R-32|0;R=d;a:{c=o[a+4>>2];b:{if(c>>>0>>0){g=o[a+8>>2];e=g<<5;f=b-c|0;c:{if(!(e>>>0>>0|c>>>0>e-f>>>0)){o[a+4>>2]=b;b=c&31;a=o[a>>2]+(c>>>3&536870908)|0;break c}o[d+24>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;if((b|0)<=-1){break a}c=d+16|0;if(e>>>0<=1073741822){b=b+31&-32;e=g<<6;b=e>>>0>>0?b:e}else{b=2147483647}fb(c,b);c=o[a+4>>2];o[d+20>>2]=c+f;b=o[d+16>>2];d:{if((c|0)<1){c=0;break d}g=o[a>>2];e=c>>>5<<2;b=nl(b,g,e)+e|0;c=c&31;if(!c){c=0;break d}h=-1>>>32-c|0;o[b>>2]=o[b>>2]&(h^-1)|o[e+g>>2]&h}o[d+12>>2]=c;o[d+8>>2]=b;c=o[d+8>>2];b=o[d+12>>2];e=o[a>>2];o[a>>2]=o[d+16>>2];o[d+16>>2]=e;g=o[a+4>>2];o[a+4>>2]=o[d+20>>2];o[d+20>>2]=g;g=o[a+8>>2];o[a+8>>2]=o[d+24>>2];o[d+24>>2]=g;if(e){jl(e)}a=c}if(!f){break b}if(b){c=32-b|0;e=c>>>0>f>>>0?f:c;o[a>>2]=o[a>>2]&(-1<>>c-e^-1);f=f-e|0;a=a+4|0}b=a;a=f>>>5<<2;b=ml(b,0,a);c=f&31;if(!c){break b}a=a+b|0;o[a>>2]=o[a>>2]&(-1>>>32-c^-1);break b}o[a+4>>2]=b}R=d+32|0;return}Nk();D()}function Sf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0;g=R-16|0;R=g;f=o[b+16>>2];d=o[b+12>>2];c=o[b+20>>2];a:{if((d|0)<(c|0)?1:(d|0)<=(c|0)?r[b+8>>2]>f>>>0?0:1:0){break a}m[a+12|0]=p[f+o[b>>2]|0];d=o[b+20>>2];c=o[b+16>>2]+1|0;if(c>>>0<1){d=d+1|0}o[b+16>>2]=c;o[b+20>>2]=d;if(!Tf(1,g+12|0,b)){break a}d=o[b+8>>2];h=o[b+16>>2];c=h;e=o[g+12>>2];f=e;i=d-c>>>0>=e>>>0?0:1;c=d>>>0>>0;d=o[b+20>>2];c=o[b+12>>2]-(c+d|0)|0;if(((c|0)<0?1:(c|0)<=0?i:0)|(e|0)<1){break a}c=h+o[b>>2]|0;o[a>>2]=c;j=e+ -1|0;k=j+c|0;l=p[k|0]>>>6|0;if((l|0)==3){break a}i=a;b:{c:{switch(l-1|0){default:o[a+4>>2]=j;a=p[k|0]&63;break b;case 0:if((e|0)<2){break a}o[a+4>>2]=e+ -2;a=(c+e|0)+ -2|0;a=p[a+1|0]<<8&16128|p[a|0];break b;case 1:break c}}if((e|0)<3){break a}o[a+4>>2]=e+ -3;a=(c+e|0)+ -3|0;a=p[a+1|0]<<8|p[a+2|0]<<16&4128768|p[a|0]}a=a+4096|0;o[i+8>>2]=a;if(a>>>0>1048575){break a}a=d;d=f+h|0;if(d>>>0>>0){a=a+1|0}o[b+16>>2]=d;o[b+20>>2]=a;n=1}R=g+16|0;return n}function Ch(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=R-16|0;R=f;b=o[a+4>>2];c=o[b>>2];a:{d=o[a+12>>2];e=o[d+28>>2]-o[d+24>>2]|0;d=e>>2;b:{if(o[b+8>>2]-c>>2>>>0>=d>>>0){break b}if(d>>>0>=1073741824){break a}g=o[b+4>>2];h=d<<2;d=yk(e);h=h+d|0;e=g-c|0;g=e+d|0;if((e|0)>=1){ll(d,c,e)}o[b+8>>2]=h;o[b+4>>2]=g;o[b>>2]=d;if(!c){break b}jl(c)}b=o[a+12>>2];c=o[b+28>>2];b=o[b+24>>2];o[f+12>>2]=0;b=c-b>>2;d=a+96|0;e=o[d>>2];c=o[a+100>>2]-e>>2;c:{if(b>>>0>c>>>0){Dd(d,b-c|0,f+12|0);break c}if(b>>>0>=c>>>0){break c}o[a+100>>2]=e+(b<<2)}e=a+8|0;d:{e:{b=o[a+116>>2];if(b){d=o[b>>2];c=1;if((d|0)==o[b+4>>2]){break d}b=0;while(1){if(!Dh(e,o[(b<<2)+d>>2])){break e}c=o[a+116>>2];d=o[c>>2];b=b+1|0;if(b>>>0>2]-d>>2>>>0){continue}break}c=1;break d}b=0;a=o[a+12>>2];a=(o[a+4>>2]-o[a>>2]>>2>>>0)/3|0;c=1;if((a|0)<=0){break d}while(1){if(!Dh(e,u(b,3))){break e}b=b+1|0;if((a|0)!=(b|0)){continue}break}c=1;break d}c=0}R=f+16|0;return c|0}db(8832);D()}function Wi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;h=R-16|0;R=h;a:{b:{if(b){o[a+88>>2]=0;o[a+92>>2]=0;c=a+84|0;d=o[c>>2];o[c>>2]=0;if(d){jl(d)}o[a+76>>2]=0;o[a+80>>2]=0;c=a+72|0;d=o[c>>2];o[c>>2]=0;if(d){jl(d)}d=o[b>>2];c=o[b+4>>2];m[h+15|0]=0;eb(a,c-d>>2,h+15|0);c=b+28|0;d=o[c>>2];e=o[b+24>>2];m[h+14|0]=0;eb(a+12|0,d-e>>2,h+14|0);Ni(a+28|0,o[b+4>>2]-o[b>>2]>>2,10716);d=o[a+52>>2];e=o[c>>2]-o[b+24>>2]|0;c=e>>2;c:{if(o[a+60>>2]-d>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break b}f=o[a+56>>2];g=c<<2;c=yk(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){ll(c,d,e)}o[a+60>>2]=g;o[a+56>>2]=f;o[a+52>>2]=c;if(!d){break c}jl(d)}d=o[a+40>>2];e=o[b+28>>2]-o[b+24>>2]|0;c=e>>2;d:{if(o[a+48>>2]-d>>2>>>0>=c>>>0){break d}if(c>>>0>=1073741824){break a}f=o[a+44>>2];g=c<<2;c=yk(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){ll(c,d,e)}o[a+48>>2]=g;o[a+44>>2]=f;o[a+40>>2]=c;if(!d){break d}jl(d)}m[a+24|0]=1;o[a+64>>2]=b}R=h+16|0;return}db(10720);D()}db(10720);D()}function Bh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0;l=o[a+12>>2];d=o[a+108>>2];e=o[d+80>>2];m[b+84|0]=0;f=o[b+68>>2];c=o[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){pd(b+68|0,e-c|0,9140);d=o[a+108>>2];e=o[d+80>>2];break a}if(e>>>0>=c>>>0){break a}o[b+72>>2]=f+(e<<2)}k=o[d+96>>2];c=o[d+100>>2]-k|0;d=(c|0)/12|0;if(!c){return 1}n=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=o[l>>2]+(u(d,3)<<2)|0;h=o[c>>2];if((h|0)==-1){break c}f=u(d,12)+k|0;g=o[f>>2];if(g>>>0>=e>>>0){break c}j=o[o[a+112>>2]+12>>2];i=o[j+(h<<2)>>2];if(i>>>0>=e>>>0){break c}h=o[b+68>>2];o[h+(g<<2)>>2]=i;g=o[c+4>>2];if((g|0)==-1){break c}i=o[f+4>>2];if(i>>>0>=e>>>0){break c}g=o[(g<<2)+j>>2];if(g>>>0>=e>>>0){break c}o[h+(i<<2)>>2]=g;c=o[c+8>>2];if((c|0)==-1){break c}f=o[f+8>>2];if(f>>>0>=e>>>0){break c}c=o[(c<<2)+j>>2];if(c>>>0>=e>>>0){break c}o[h+(f<<2)>>2]=c;c=1;d=d+1|0;if((n|0)!=(d|0)){continue}break b}break}c=0}return c|0}function Mh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0;l=o[a+12>>2];d=o[a+68>>2];e=o[d+80>>2];m[b+84|0]=0;f=o[b+68>>2];c=o[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){pd(b+68|0,e-c|0,9140);d=o[a+68>>2];e=o[d+80>>2];break a}if(e>>>0>=c>>>0){break a}o[b+72>>2]=f+(e<<2)}k=o[d+96>>2];c=o[d+100>>2]-k|0;d=(c|0)/12|0;if(!c){return 1}n=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=o[l>>2]+(u(d,3)<<2)|0;h=o[c>>2];if((h|0)==-1){break c}f=u(d,12)+k|0;g=o[f>>2];if(g>>>0>=e>>>0){break c}j=o[o[a+72>>2]+12>>2];i=o[j+(h<<2)>>2];if(i>>>0>=e>>>0){break c}h=o[b+68>>2];o[h+(g<<2)>>2]=i;g=o[c+4>>2];if((g|0)==-1){break c}i=o[f+4>>2];if(i>>>0>=e>>>0){break c}g=o[(g<<2)+j>>2];if(g>>>0>=e>>>0){break c}o[h+(i<<2)>>2]=g;c=o[c+8>>2];if((c|0)==-1){break c}f=o[f+8>>2];if(f>>>0>=e>>>0){break c}c=o[(c<<2)+j>>2];if(c>>>0>=e>>>0){break c}o[h+(f<<2)>>2]=c;c=1;d=d+1|0;if((n|0)!=(d|0)){continue}break b}break}c=0}return c|0}function wj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=a+8|0;d=o[a+12>>2];h=o[a+8>>2];e=d-h>>2;a:{if((e|0)>(b|0)){break a}f=b+1|0;if(f>>>0>e>>>0){xj(i,f-e|0);break a}if(f>>>0>=e>>>0){break a}e=h+(f<<2)|0;if((e|0)!=(d|0)){while(1){d=d+ -4|0;f=o[d>>2];o[d>>2]=0;if(f){Kb(f)}if((d|0)!=(e|0)){continue}break}}o[a+12>>2]=e}b:{c:{d=o[o[c>>2]+56>>2];d:{if((d|0)>4){break d}d=u(d,12)+a|0;f=d+24|0;a=o[f>>2];j=d+28|0;g=o[j>>2];if((a|0)!=(g|0)){o[a>>2]=b;o[f>>2]=a+4;break d}k=d+20|0;d=o[k>>2];h=a-d|0;a=h>>2;e=a+1|0;if(e>>>0>=1073741824){break c}l=a<<2;g=g-d|0;a=g>>1;e=g>>2>>>0<536870911?a>>>0>>0?e:a:1073741823;a=0;e:{if(!e){break e}if(e>>>0>=1073741824){break b}a=yk(e<<2)}g=l+a|0;o[g>>2]=b;e=a+(e<<2)|0;g=g+4|0;if((h|0)>=1){ll(a,d,h)}o[k>>2]=a;o[f>>2]=g;o[j>>2]=e;if(!d){break d}jl(d)}d=o[c>>2];o[d+60>>2]=b;a=o[i>>2];o[c>>2]=0;b=a+(b<<2)|0;a=o[b>>2];o[b>>2]=d;if(a){Kb(a)}return}Nk();D()}db(11048);D()}function Sh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0;h=o[a+12>>2];d=o[a+68>>2];e=o[d+80>>2];m[b+84|0]=0;g=o[b+68>>2];c=o[b+72>>2]-g>>2;a:{if(e>>>0>c>>>0){pd(b+68|0,e-c|0,9140);d=o[a+68>>2];e=o[d+80>>2];break a}if(e>>>0>=c>>>0){break a}o[b+72>>2]=g+(e<<2)}k=o[d+96>>2];c=o[d+100>>2]-k|0;d=(c|0)/12|0;if(!c){return 1}l=d>>>0>1?d:1;n=o[h+28>>2];d=0;b:{while(1){c:{c=(u(d,3)<<2)+n|0;g=o[c>>2];if((g|0)==-1){break c}h=u(d,12)+k|0;i=o[h>>2];if(i>>>0>=e>>>0){break c}f=g<<2;g=o[o[a+72>>2]+12>>2];f=o[f+g>>2];if(f>>>0>=e>>>0){break c}j=i<<2;i=o[b+68>>2];o[j+i>>2]=f;f=o[c+4>>2];if((f|0)==-1){break c}j=o[h+4>>2];if(j>>>0>=e>>>0){break c}f=o[g+(f<<2)>>2];if(f>>>0>=e>>>0){break c}o[i+(j<<2)>>2]=f;c=o[c+8>>2];if((c|0)==-1){break c}h=o[h+8>>2];if(h>>>0>=e>>>0){break c}c=o[g+(c<<2)>>2];if(c>>>0>=e>>>0){break c}o[i+(h<<2)>>2]=c;c=1;d=d+1|0;if((l|0)!=(d|0)){continue}break b}break}c=0}return c|0}function $e(a){var b=0,c=0,d=0;b=o[a+8>>2];d=o[a>>2];a:{if(p[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;if((b|0)==-1|o[o[d>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){break e}b=o[o[o[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}o[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;o[a+8>>2]=b;if((b|0)!=-1){break b}}b=-1;c=o[a+4>>2];f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1|o[o[d>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break f}d=o[o[o[d+64>>2]+12>>2]+(c<<2)>>2];if((d|0)==-1){break f}if((d>>>0)%3){b=d+ -1|0;break f}b=d+2|0}m[a+12|0]=0;o[a+8>>2]=b;return}if((b|0)!=o[a+4>>2]){break a}o[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)==-1|o[o[d>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){break g}b=o[o[o[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break g}if((b>>>0)%3){c=b+ -1|0;break g}c=b+2|0}o[a+8>>2]=c}}function ue(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;o[a+4>>2]=b;o[a>>2]=2732;b=c;e=o[b+8>>2];g=o[b+12>>2];h=o[b+16>>2];i=o[b+20>>2];j=o[b>>2];k=o[b+4>>2];o[a+40>>2]=0;f=a+32|0;o[f>>2]=0;o[f+4>>2]=0;o[a+24>>2]=h;o[a+28>>2]=i;o[a+16>>2]=e;o[a+20>>2]=g;o[a+8>>2]=j;o[a+12>>2]=k;a:{b=o[b+28>>2]-o[b+24>>2]|0;b:{if(!b){break b}e=b>>2;if(e>>>0>=1073741824){break a}b=yk(b);o[a+32>>2]=b;o[a+36>>2]=b;o[a+40>>2]=b+(e<<2);e=o[c+24>>2];c=o[c+28>>2]-e|0;if((c|0)<1){break b}l=a,m=ll(b,e,c)+c|0,o[l+36>>2]=m}o[a>>2]=2676;b=o[d+4>>2];o[a+44>>2]=o[d>>2];o[a+48>>2]=b;b=d+8|0;e=o[b+4>>2];o[a+52>>2]=o[b>>2];o[a+56>>2]=e;c=a- -64|0;o[c>>2]=0;o[c+4>>2]=0;o[a+60>>2]=3900;o[a>>2]=3272;c=o[d+4>>2];o[a+72>>2]=o[d>>2];o[a+76>>2]=c;c=o[b+4>>2];o[a+80>>2]=o[b>>2];o[a+84>>2]=c;o[a+92>>2]=-1;o[a+96>>2]=-1;o[a+88>>2]=1;o[a+60>>2]=3508;o[a+100>>2]=-1;o[a+104>>2]=-1;Rf(a+108|0);return}Nk();D()}function af(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;o[a+4>>2]=b;o[a>>2]=2732;b=c;e=o[b+8>>2];g=o[b+12>>2];h=o[b+16>>2];i=o[b+20>>2];j=o[b>>2];k=o[b+4>>2];o[a+40>>2]=0;f=a+32|0;o[f>>2]=0;o[f+4>>2]=0;o[a+24>>2]=h;o[a+28>>2]=i;o[a+16>>2]=e;o[a+20>>2]=g;o[a+8>>2]=j;o[a+12>>2]=k;a:{b=o[b+28>>2]-o[b+24>>2]|0;b:{if(!b){break b}e=b>>2;if(e>>>0>=1073741824){break a}b=yk(b);o[a+32>>2]=b;o[a+36>>2]=b;o[a+40>>2]=b+(e<<2);e=o[c+24>>2];c=o[c+28>>2]-e|0;if((c|0)<1){break b}l=a,m=ll(b,e,c)+c|0,o[l+36>>2]=m}o[a>>2]=4296;b=o[d+4>>2];o[a+44>>2]=o[d>>2];o[a+48>>2]=b;b=d+8|0;e=o[b+4>>2];o[a+52>>2]=o[b>>2];o[a+56>>2]=e;c=a- -64|0;o[c>>2]=0;o[c+4>>2]=0;o[a+60>>2]=5396;o[a>>2]=4812;c=o[d+4>>2];o[a+72>>2]=o[d>>2];o[a+76>>2]=c;c=o[b+4>>2];o[a+80>>2]=o[b>>2];o[a+84>>2]=c;o[a+92>>2]=-1;o[a+96>>2]=-1;o[a+88>>2]=1;o[a+60>>2]=5032;o[a+100>>2]=-1;o[a+104>>2]=-1;Rf(a+108|0);return}Nk();D()}function Yf(a){var b=0,c=0,d=0,e=0;e=R-16|0;R=e;b=yk(32);o[e>>2]=b;o[e+4>>2]=26;o[e+8>>2]=-2147483616;m[b+26|0]=0;c=p[7897]|p[7898]<<8;m[b+24|0]=c;m[b+25|0]=c>>>8;d=p[7893]|p[7894]<<8|(p[7895]<<16|p[7896]<<24);c=p[7889]|p[7890]<<8|(p[7891]<<16|p[7892]<<24);m[b+16|0]=c;m[b+17|0]=c>>>8;m[b+18|0]=c>>>16;m[b+19|0]=c>>>24;m[b+20|0]=d;m[b+21|0]=d>>>8;m[b+22|0]=d>>>16;m[b+23|0]=d>>>24;d=p[7885]|p[7886]<<8|(p[7887]<<16|p[7888]<<24);c=p[7881]|p[7882]<<8|(p[7883]<<16|p[7884]<<24);m[b+8|0]=c;m[b+9|0]=c>>>8;m[b+10|0]=c>>>16;m[b+11|0]=c>>>24;m[b+12|0]=d;m[b+13|0]=d>>>8;m[b+14|0]=d>>>16;m[b+15|0]=d>>>24;d=p[7877]|p[7878]<<8|(p[7879]<<16|p[7880]<<24);c=p[7873]|p[7874]<<8|(p[7875]<<16|p[7876]<<24);m[b|0]=c;m[b+1|0]=c>>>8;m[b+2|0]=c>>>16;m[b+3|0]=c>>>24;m[b+4|0]=d;m[b+5|0]=d>>>8;m[b+6|0]=d>>>16;m[b+7|0]=d>>>24;o[a>>2]=-1;Bk(a+4|0,e);if(m[e+11|0]<=-1){jl(o[e>>2])}R=e+16|0}function xd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;if(!o[a+64>>2]){d=yk(32);c=oi(d);e=o[a+64>>2];o[a+64>>2]=d;d=a;if(e){c=o[e>>2];if(c){o[e+4>>2]=c;jl(c)}jl(e);c=o[a+64>>2]}td(d,c,0,0)}a:{b:{if(!sd(a,b)){break b}m[a+84|0]=p[b+84|0];o[a+80>>2]=o[b+80>>2];if((a|0)!=(b|0)){yd(a+68|0,o[b+68>>2],o[b+72>>2])}c=o[b+88>>2];if(c){b=yk(40);d=o[c>>2];o[b+16>>2]=0;o[b+8>>2]=0;o[b+12>>2]=0;o[b>>2]=d;d=o[c+12>>2]-o[c+8>>2]|0;c:{if(!d){break c}if((d|0)<=-1){break a}e=yk(d);o[b+8>>2]=e;o[b+12>>2]=e;o[b+16>>2]=d+e;f=o[c+8>>2];d=o[c+12>>2]-f|0;if((d|0)<1){break c}g=b,h=ll(e,f,d)+d|0,o[g+12>>2]=h}d=o[c+36>>2];o[b+32>>2]=o[c+32>>2];o[b+36>>2]=d;d=o[c+28>>2];o[b+24>>2]=o[c+24>>2];o[b+28>>2]=d;c=o[a+88>>2];o[a+88>>2]=b;if(!c){break b}a=o[c+8>>2];if(a){o[c+12>>2]=a;jl(a)}jl(c);return}b=o[a+88>>2];o[a+88>>2]=0;if(!b){break b}a=o[b+8>>2];if(a){o[b+12>>2]=a;jl(a)}jl(b)}return}Nk();D()}function hg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=R-16|0;R=g;a:{if(!sg(1,g+8|0,b)){break a}c=o[b+8>>2];d=o[b+16>>2];h=c-d|0;e=o[g+12>>2];i=o[b+20>>2];f=o[b+12>>2]-(i+(c>>>0>>0)|0)|0;c=o[g+8>>2];if((e|0)==(f|0)&c>>>0>h>>>0|e>>>0>f>>>0){break a}e=e+i|0;f=c+d|0;if(f>>>0>>0){e=e+1|0}o[b+16>>2]=f;o[b+20>>2]=e;if((c|0)<1){break a}d=d+o[b>>2]|0;o[a+40>>2]=d;b=a;b:{c:{d:{e:{f:{f=c+ -1|0;h=d+f|0;switch((p[h|0]>>>6|0)-1|0){case 2:break c;case 1:break d;case 0:break e;default:break f}}o[a+44>>2]=f;a=p[h|0]&63;break b}if((c|0)<2){break a}o[a+44>>2]=c+ -2;a=(c+d|0)+ -2|0;a=p[a+1|0]<<8&16128|p[a|0];break b}if((c|0)<3){break a}o[a+44>>2]=c+ -3;a=(c+d|0)+ -3|0;a=p[a+1|0]<<8|p[a+2|0]<<16&4128768|p[a|0];break b}o[a+44>>2]=c+ -4;a=(c+d|0)+ -4|0;a=p[a+2|0]<<16|p[a+3|0]<<24&1056964608|p[a+1|0]<<8|p[a|0]}a=a+16384|0;o[b+48>>2]=a;j=a>>>0<4194304}R=g+16|0;return j}function Xh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=yk(b<<2);d=o[a>>2];o[a>>2]=c;if(d){jl(d)}o[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){o[o[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=o[a+8>>2];if(!f){break b}d=a+8|0;g=o[f+4>>2];c=Rl(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}o[o[a>>2]+(g<<2)>>2]=d;d=o[f>>2];if(!d){break b}j=b+ -1|0;k=c>>>0>1;while(1){e=o[d+4>>2];d:{if(!k){e=e&j;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;i=h+o[a>>2]|0;if(!o[i>>2]){o[i>>2]=f;f=d;g=e;break e}while(1){e=c;c=o[c>>2];if(o[d+8>>2]==o[c+8>>2]?c:0){continue}break}o[f>>2]=c;o[e>>2]=o[o[o[a>>2]+h>>2]>>2];o[o[o[a>>2]+h>>2]>>2]=d}d=o[f>>2];if(d){continue}break}break b}b=o[a>>2];o[a>>2]=0;if(b){jl(b)}o[a+4>>2]=0}return}db(8832);D()}function ya(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=R-16|0;R=e;a:{if(!Aa(a,b)){break a}d=1;f=o[b+100>>2];g=o[b+96>>2];if((f|0)==(g|0)){break a}while(1){if(!(o[o[a+56>>2]+(i>>>3&536870908)>>2]>>>(i&31)&1)){d=u(i,3);_i(a,0,d);f=o[a+8>>2];g=o[a+12>>2];_i(a,1,d+1|0);h=o[a+20>>2];j=o[a+24>>2];_i(a,2,d+2|0);h=j-h>>2;f=g-f|0;g=f>>2;d=h>>>0>g>>>0;g=o[a+36>>2]-o[a+32>>2]>>2>>>0>(d?h:g)>>>0?2:d?1:f?0:-1;b:{if(o[a+68>>2]<1){break b}o[e+12>>2]=o[a+76>>2];o[e+8>>2]=c;Ba(e+8|0,e+12|0);f=e;h=o[((g<<2)+a|0)+44>>2];d=-1;c:{if((h|0)<0){break c}d=(h>>>0)/3|0;d=o[(o[o[a>>2]+96>>2]+u(d,12)|0)+(h-u(d,3)<<2)>>2]}o[f+12>>2]=d;o[e+8>>2]=c;Ba(e+8|0,e+12|0);f=o[a+72>>2]+2|0;o[a+72>>2]=f;if(!(f&1)){break b}o[e+12>>2]=d;o[e+8>>2]=c;Ba(e+8|0,e+12|0);o[a+72>>2]=o[a+72>>2]+1}Ca(a,g,c);g=o[b+96>>2];f=o[b+100>>2]}d=1;i=i+1|0;if(i>>>0<(f-g|0)/12>>>0){continue}break}}R=e+16|0;return d}function ih(a){o[a>>2]=8280;ml(a+4|0,0,80);o[a+96>>2]=0;o[a+100>>2]=0;o[a+92>>2]=-1;o[a+84>>2]=-1;o[a+88>>2]=-1;o[a+104>>2]=0;o[a+108>>2]=0;o[a+112>>2]=0;o[a+116>>2]=0;o[a+120>>2]=0;o[a+124>>2]=0;o[a+128>>2]=0;o[a+132>>2]=0;o[a+136>>2]=0;o[a+140>>2]=0;o[a+144>>2]=0;o[a+148>>2]=0;o[a+156>>2]=0;o[a+160>>2]=0;o[a+152>>2]=1065353216;o[a+164>>2]=0;o[a+168>>2]=0;o[a+172>>2]=0;o[a+176>>2]=0;o[a+180>>2]=0;o[a+184>>2]=0;o[a+188>>2]=0;o[a+192>>2]=0;o[a+196>>2]=0;o[a+200>>2]=0;o[a+204>>2]=0;o[a+208>>2]=0;o[a+212>>2]=-1;o[a+216>>2]=0;o[a+220>>2]=0;o[a+224>>2]=0;si(a+232|0);si(a+272|0);Rf(a+312|0);si(a+328|0);o[a+392>>2]=0;o[a+396>>2]=0;o[a+384>>2]=0;o[a+388>>2]=0;o[a+376>>2]=0;o[a+380>>2]=0;o[a+368>>2]=0;o[a+372>>2]=0;o[a+416>>2]=0;o[a+420>>2]=0;o[a+408>>2]=2;o[a+412>>2]=7;o[a+400>>2]=-1;o[a+404>>2]=-1;o[a+424>>2]=0;o[a+428>>2]=0;o[a+432>>2]=0;o[a+436>>2]=0}function Yi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=o[a>>2];c=e+(b>>>3&536870908)|0;o[c>>2]=o[c>>2]|1<<(b&31);g=o[a+64>>2];f=(b|0)==-1;c=-1;a:{if(f){break a}d=b+1|0;d=(d>>>0)%3|0?d:b+ -2|0;c=-1;if((d|0)==-1){break a}c=o[o[g>>2]+(d<<2)>>2]}d=o[a+12>>2];h=(c>>>3&536870908)+d|0;o[h>>2]=o[h>>2]|1<<(c&31);b:{c:{if(!f){c=-1;f=((b>>>0)%3|0?-1:2)+b|0;if((f|0)!=-1){c=o[o[g>>2]+(f<<2)>>2]}f=d+(c>>>3&536870908)|0;o[f>>2]=o[f>>2]|1<<(c&31);b=o[o[g+12>>2]+(b<<2)>>2];if((b|0)==-1){break b}m[a+24|0]=0;a=(b>>>3&536870908)+e|0;o[a>>2]=o[a>>2]|1<<(b&31);a=-1;c=-1;e=b+1|0;e=(e>>>0)%3|0?e:b+ -2|0;if((e|0)!=-1){c=o[o[g>>2]+(e<<2)>>2]}e=d+(c>>>3&536870908)|0;o[e>>2]=o[e>>2]|1<<(c&31);b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)!=-1){a=o[o[g>>2]+(b<<2)>>2]}b=1<<(a&31);a=d+(a>>>3&536870908)|0;c=o[a>>2];break c}a=d+536870908|0;b=o[d+536870908>>2];c=-2147483648}o[a>>2]=b|c}}function jg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=R+ -64|0;R=d;o[d+56>>2]=0;o[d+48>>2]=0;o[d+52>>2]=0;o[d+40>>2]=0;o[d+44>>2]=0;o[d+32>>2]=0;o[d+36>>2]=0;o[d+24>>2]=0;o[d+28>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;o[d+8>>2]=0;o[d+12>>2]=0;a:{if(!gg(d+8|0,b)){break a}if(a){if(!o[d+20>>2]){break a}if(!hg(d+8|0,b)){break a}b=o[d+56>>2];i=o[d+36>>2];j=o[d+48>>2];k=o[d+24>>2];while(1){b:{if(b>>>0>16383){break b}e=o[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;o[d+52>>2]=e;b=p[e+j|0]|b<<8;o[d+56>>2]=b;if(b>>>0<16384){continue}break}}e=b&4095;g=o[(e<<2)+k>>2];h=(g<<3)+i|0;b=(u(o[h>>2],b>>>12|0)+e|0)-o[h+4>>2]|0;o[d+56>>2]=b;o[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=hg(d+8|0,b)}a=o[d+36>>2];if(a){o[d+40>>2]=a;jl(a)}a=o[d+24>>2];if(a){o[d+28>>2]=a;jl(a)}a=o[d+8>>2];if(a){o[d+12>>2]=a;jl(a)}R=d- -64|0;return e}function Zf(a,b){var c=0,d=0,e=0;e=R-16|0;R=e;o[e+12>>2]=b;b=yk(32);o[e>>2]=b;o[e+4>>2]=24;o[e+8>>2]=-2147483616;m[b+24|0]=0;c=p[7941]|p[7942]<<8|(p[7943]<<16|p[7944]<<24);d=p[7937]|p[7938]<<8|(p[7939]<<16|p[7940]<<24);m[b+16|0]=d;m[b+17|0]=d>>>8;m[b+18|0]=d>>>16;m[b+19|0]=d>>>24;m[b+20|0]=c;m[b+21|0]=c>>>8;m[b+22|0]=c>>>16;m[b+23|0]=c>>>24;c=p[7933]|p[7934]<<8|(p[7935]<<16|p[7936]<<24);d=p[7929]|p[7930]<<8|(p[7931]<<16|p[7932]<<24);m[b+8|0]=d;m[b+9|0]=d>>>8;m[b+10|0]=d>>>16;m[b+11|0]=d>>>24;m[b+12|0]=c;m[b+13|0]=c>>>8;m[b+14|0]=c>>>16;m[b+15|0]=c>>>24;c=p[7925]|p[7926]<<8|(p[7927]<<16|p[7928]<<24);d=p[7921]|p[7922]<<8|(p[7923]<<16|p[7924]<<24);m[b|0]=d;m[b+1|0]=d>>>8;m[b+2|0]=d>>>16;m[b+3|0]=d>>>24;m[b+4|0]=c;m[b+5|0]=c>>>8;m[b+6|0]=c>>>16;m[b+7|0]=c>>>24;zi(_f(a,e+12|0),e);if(m[e+11|0]<=-1){jl(o[e>>2])}R=e+16|0}function mh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=o[a+8>>2];c=o[a+4>>2];if((e-c|0)/12>>>0>=b>>>0){d=a;a=u(b,12);j=d,k=ml(c,0,a)+a|0,o[j+4>>2]=k;return}f=o[a>>2];g=(c-f|0)/12|0;d=g+b|0;a:{if(d>>>0<357913942){g=u(g,12);e=(e-f|0)/12|0;h=e<<1;e=e>>>0<178956970?h>>>0>>0?d:h:357913941;if(e){if(e>>>0>=357913942){break a}i=yk(u(e,12))}d=g+i|0;b=u(b,12);b=ml(d,0,b)+b|0;e=u(e,12)+i|0;if((c|0)!=(f|0)){while(1){d=d+ -12|0;o[d+8>>2]=0;o[d>>2]=0;o[d+4>>2]=0;c=c+ -12|0;o[d>>2]=o[c>>2];o[d+4>>2]=o[c+4>>2];o[d+8>>2]=o[c+8>>2];o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0;if((c|0)!=(f|0)){continue}break}f=o[a>>2];c=o[a+4>>2]}o[a+8>>2]=e;o[a+4>>2]=b;o[a>>2]=d;if((c|0)!=(f|0)){while(1){a=c+ -12|0;b=o[a>>2];if(b){o[c+ -8>>2]=b;jl(b)}c=a;if((c|0)!=(f|0)){continue}break}}if(f){jl(f)}return}Nk();D()}db(8832);D()}function gb(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;f=R-32|0;R=f;h=o[c+4>>2];d=o[b+4>>2];i=o[c>>2];g=o[b>>2];b=(h-d|0)+(i-g<<3)|0;c=o[a+4>>2];e=b+c|0;o[a+4>>2]=e;a:{if(!(!c|(e+ -1^c+ -1)>>>0>31)){a=o[a>>2];break a}a=o[a>>2];if(e>>>0<=32){o[a>>2]=0;break a}o[(e+ -1>>>3&536870908)+a>>2]=0}a=(c>>>3&536870908)+a|0;c=c&31;b:{if((c|0)==(d|0)){c:{if((b|0)<1){break c}d:{if(!d){c=0;break d}e=32-d|0;c=(b|0)<(e|0)?b:e;e=-1<>>e-c;o[a>>2]=o[a>>2]&(e^-1)|e&o[g>>2];b=b-c|0;d=c+d|0;c=d&31;a=(d>>>3&536870908)+a|0;g=g+4|0}d=(b|0)/32|0;e=d<<2;a=nl(a,g,e)+e|0;d=b-(d<<5)|0;if((d|0)<1){d=c;break c}b=-1>>>32-d|0;o[a>>2]=o[a>>2]&(b^-1)|b&o[e+g>>2]}o[f+4>>2]=d;o[f>>2]=a;break b}o[f+28>>2]=d;o[f+24>>2]=g;o[f+20>>2]=h;o[f+16>>2]=i;o[f+12>>2]=c;o[f+8>>2]=a;hb(f,f+24|0,f+16|0,f+8|0)}R=f+32|0}function nl(a,b,c){var d=0,e=0;a:{if((a|0)==(b|0)){break a}b:{if(b+c>>>0>a>>>0){e=a+c|0;if(e>>>0>b>>>0){break b}}return ll(a,b,c)}d=(a^b)&3;c:{d:{if(a>>>0>>0){if(d){d=a;break c}if(!(a&3)){d=a;break d}d=a;while(1){if(!c){break a}m[d|0]=p[b|0];b=b+1|0;c=c+ -1|0;d=d+1|0;if(d&3){continue}break}break d}e:{if(d){break e}if(e&3){while(1){if(!c){break a}c=c+ -1|0;d=c+a|0;m[d|0]=p[b+c|0];if(d&3){continue}break}}if(c>>>0<=3){break e}while(1){c=c+ -4|0;o[c+a>>2]=o[b+c>>2];if(c>>>0>3){continue}break}}if(!c){break a}while(1){c=c+ -1|0;m[c+a|0]=p[b+c|0];if(c){continue}break}break a}if(c>>>0<=3){break c}while(1){o[d>>2]=o[b>>2];b=b+4|0;d=d+4|0;c=c+ -4|0;if(c>>>0>3){continue}break}}if(!c){break a}while(1){m[d|0]=p[b|0];d=d+1|0;b=b+1|0;c=c+ -1|0;if(c){continue}break}}return a}function ej(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;d=R-16|0;R=d;g=o[a+24>>2];l=o[a+28>>2];a:{if((g|0)!=(l|0)){n=d+8|0;while(1){o[n>>2]=0;o[d>>2]=0;o[d+4>>2]=0;a=mj(o[g>>2],b,d);h=p[d+11|0];k=h<<24>>24;b:{c:{d:{if(!a){a=3;break d}a=0;e=p[c+11|0];f=e<<24>>24;j=(k|0)<0?o[d+4>>2]:h;if((j|0)!=(((f|0)<0?o[c+4>>2]:e)|0)){break d}i=(f|0)<0?o[c>>2]:c;f=o[d>>2];e=(k|0)<0;e:{if(!e){if(!j){break e}e=d;if(p[i|0]!=(f&255)){break d}while(1){h=h+ -1|0;if(!h){break e}f=p[i+1|0];i=i+1|0;e=e+1|0;if((f|0)==p[e|0]){continue}break}break d}if(!j){break e}if(Vj(e?f:d,i,j)){break c}}m=o[g>>2];a=1}if((k|0)>-1){break b}}jl(o[d>>2])}if(a>>>0>3){break a}f:{switch(a-1|0){case 0:case 1:break a;default:break f}}g=g+4|0;if((l|0)!=(g|0)){continue}break}}m=0}R=d+16|0;return m}function id(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;o[b>>2]=1;f=b+8|0;c=o[b+8>>2];d=o[b+12>>2]-c|0;if(d>>>0<=4294967291){ri(f,d+4|0);c=o[f>>2]}d=c+d|0;c=p[a+4|0]|p[a+5|0]<<8|(p[a+6|0]<<16|p[a+7|0]<<24);m[d|0]=c;m[d+1|0]=c>>>8;m[d+2|0]=c>>>16;m[d+3|0]=c>>>24;c=o[a+8>>2];if((c|0)!=o[a+12>>2]){while(1){d=(g<<2)+c|0;c=o[b+8>>2];e=o[b+12>>2]-c|0;if(e>>>0<=4294967291){ri(f,e+4|0);c=o[f>>2]}e=c+e|0;c=p[d|0]|p[d+1|0]<<8|(p[d+2|0]<<16|p[d+3|0]<<24);m[e|0]=c;m[e+1|0]=c>>>8;m[e+2|0]=c>>>16;m[e+3|0]=c>>>24;g=g+1|0;c=o[a+8>>2];if(g>>>0>2]-c>>2>>>0){continue}break}}c=o[b+12>>2];b=o[b+8>>2];c=c-b|0;if(c>>>0<=4294967291){ri(f,c+4|0);b=o[f>>2]}b=b+c|0;a=p[a+20|0]|p[a+21|0]<<8|(p[a+22|0]<<16|p[a+23|0]<<24);m[b|0]=a;m[b+1|0]=a>>>8;m[b+2|0]=a>>>16;m[b+3|0]=a>>>24}function Xe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=o[b+12>>2];g=d;c=o[b+20>>2];f=c;h=o[b+16>>2];e=h+4|0;if(e>>>0<4){c=c+1|0}j=o[b+8>>2];i=e;e=c;a:{if((d|0)<(c|0)?1:(d|0)<=(c|0)?j>>>0>=i>>>0?0:1:0){break a}k=o[b>>2];c=k+h|0;d=p[c|0]|p[c+1|0]<<8|(p[c+2|0]<<16|p[c+3|0]<<24);o[b+16>>2]=i;o[b+20>>2]=e;c=f;f=h+8|0;if(f>>>0<8){c=c+1|0}e=f;f=c;if((g|0)<(c|0)?1:(g|0)<=(c|0)?j>>>0>=e>>>0?0:1:0){break a}c=i+k|0;c=p[c|0]|p[c+1|0]<<8|(p[c+2|0]<<16|p[c+3|0]<<24);o[b+16>>2]=e;o[b+20>>2]=f;if((d|0)>(c|0)){break a}o[a+16>>2]=c;o[a+12>>2]=d;g=d;d=(c>>31)-((d>>31)+(c>>>0>>0)|0)|0;c=c-g|0;if(!d&c>>>0>2147483646|d>>>0>0){break a}c=c+1|0;o[a+20>>2]=c;d=(c|0)/2|0;o[a+24>>2]=d;o[a+28>>2]=0-d;if(!(c&1)){o[a+24>>2]=d+ -1}l=Sf(a+108|0,b)}return l|0}function Ae(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=o[b+12>>2];i=d;c=o[b+20>>2];f=c;g=o[b+16>>2];e=g+4|0;if(e>>>0<4){c=c+1|0}j=o[b+8>>2];h=e;e=c;a:{if((d|0)<(c|0)?1:(d|0)<=(c|0)?j>>>0>=h>>>0?0:1:0){break a}k=o[b>>2];c=k+g|0;d=p[c|0]|p[c+1|0]<<8|(p[c+2|0]<<16|p[c+3|0]<<24);o[b+16>>2]=h;o[b+20>>2]=e;c=f;f=g+8|0;if(f>>>0<8){c=c+1|0}e=f;f=c;if((i|0)<(c|0)?1:(i|0)<=(c|0)?j>>>0>=e>>>0?0:1:0){break a}c=h+k|0;c=p[c|0]|p[c+1|0]<<8|(p[c+2|0]<<16|p[c+3|0]<<24);o[b+16>>2]=e;o[b+20>>2]=f;if((d|0)>(c|0)){break a}o[a+16>>2]=c;o[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break a}l=1;b=b+1|0;o[a+20>>2]=b;c=(b|0)/2|0;o[a+24>>2]=c;o[a+28>>2]=0-c;if(b&1){break a}o[a+24>>2]=c+ -1}return l|0}function of(a){var b=0,c=0,d=0;b=o[a+8>>2];d=o[a>>2];a:{if(p[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;if((b|0)==-1){break e}b=o[o[d+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}o[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;o[a+8>>2]=b;if((b|0)!=-1){break b}}c=o[a+4>>2];b=-1;f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;b=-1;if((c|0)==-1){break f}c=o[o[d+12>>2]+(c<<2)>>2];b=-1;if((c|0)==-1){break f}b=c+ -1|0;if((c>>>0)%3){break f}b=c+2|0}m[a+12|0]=0;o[a+8>>2]=b;return}if((b|0)!=o[a+4>>2]){break a}o[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;c=-1;if((b|0)==-1){break g}b=o[o[d+12>>2]+(b<<2)>>2];c=-1;if((b|0)==-1){break g}c=b+ -1|0;if((b>>>0)%3){break g}c=b+2|0}o[a+8>>2]=c}}function gh(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{f=o[a+8>>2];d=o[a+4>>2];c:{if((f-d|0)/12>>>0>=b>>>0){while(1){e=o[c+4>>2];o[d>>2]=o[c>>2];o[d+4>>2]=e;o[d+8>>2]=o[c+8>>2];d=o[a+4>>2]+12|0;o[a+4>>2]=d;b=b+ -1|0;if(b){continue}break c}}e=d;d=o[a>>2];g=(e-d|0)/12|0;h=g+b|0;if(h>>>0>=357913942){break b}d=(f-d|0)/12|0;f=d<<1;d=d>>>0<178956970?f>>>0>>0?h:f:357913941;e=0;d:{if(!d){break d}if(d>>>0>=357913942){break a}e=yk(u(d,12))}f=e+u(d,12)|0;g=e+u(g,12)|0;d=g;while(1){i=o[c+4>>2];o[d>>2]=o[c>>2];o[d+4>>2]=i;o[d+8>>2]=o[c+8>>2];d=d+12|0;b=b+ -1|0;if(b){continue}break}d=e+u(h,12)|0;b=o[a>>2];c=o[a+4>>2]-b|0;e=g+u((c|0)/-12|0,12)|0;if((c|0)>=1){ll(e,b,c)}o[a+8>>2]=f;o[a+4>>2]=d;o[a>>2]=e;if(!b){break c}jl(b)}return}Nk();D()}db(8832);D()}function Ya(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=R-16|0;R=f;a:{g=m[b+24|0];i=o[a+80>>2];b:{if((u(g,i)|0)!=(c|0)){break b}if(!(!p[b+84|0]|o[b+28>>2]!=1)){ll(d,o[o[b>>2]>>2]+o[b+48>>2]|0,c);e=1;break b}o[f+8>>2]=0;o[f>>2]=0;o[f+4>>2]=0;if(g){if((g|0)<=-1){break a}e=yk(g);o[f>>2]=e;o[f+4>>2]=e;o[f+8>>2]=e+g;c=g;while(1){m[e|0]=0;e=o[f+4>>2]+1|0;o[f+4>>2]=e;c=c+ -1|0;if(c){continue}break}}c:{if(!i){e=1;a=o[f>>2];break c}a=o[f>>2];k=(g|0)<1;while(1){c=h;e=b;if(!p[e+84|0]){c=o[o[b+68>>2]+(h<<2)>>2]}if(!La(e,c,m[b+24|0],a)){e=0;break c}e=0;c=j;if(!k){while(1){m[c+d|0]=p[a+e|0];c=c+1|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}j=g+j|0}e=1;h=h+1|0;if((i|0)!=(h|0)){continue}break}}if(!a){break b}o[f+4>>2]=a;jl(a)}R=f+16|0;return e}Nk();D()}function $a(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=R-16|0;R=f;a:{g=m[b+24|0];i=o[a+80>>2];b:{if((u(g,i)|0)!=(c|0)){break b}if(!(!p[b+84|0]|o[b+28>>2]!=2)){ll(d,o[o[b>>2]>>2]+o[b+48>>2]|0,c);e=1;break b}o[f+8>>2]=0;o[f>>2]=0;o[f+4>>2]=0;if(g){if((g|0)<=-1){break a}e=yk(g);o[f>>2]=e;o[f+4>>2]=e;o[f+8>>2]=e+g;c=g;while(1){m[e|0]=0;e=o[f+4>>2]+1|0;o[f+4>>2]=e;c=c+ -1|0;if(c){continue}break}}c:{if(!i){e=1;a=o[f>>2];break c}a=o[f>>2];k=(g|0)<1;while(1){c=h;e=b;if(!p[e+84|0]){c=o[o[b+68>>2]+(h<<2)>>2]}if(!Na(e,c,m[b+24|0],a)){e=0;break c}e=0;c=j;if(!k){while(1){m[c+d|0]=p[a+e|0];c=c+1|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}j=g+j|0}e=1;h=h+1|0;if((i|0)!=(h|0)){continue}break}}if(!a){break b}o[f+4>>2]=a;jl(a)}R=f+16|0;return e}Nk();D()}function he(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,n=0,p=0;f=R-16|0;R=f;j=o[c+8>>2];g=o[c+16>>2];h=o[c+12>>2];d=h;e=o[c+20>>2];a:{if((d|0)<(e|0)?1:(d|0)<=(e|0)?j>>>0>g>>>0?0:1:0){break a}k=o[c>>2];n=m[k+g|0];d=e;i=g+1|0;if(i>>>0<1){d=d+1|0}o[c+16>>2]=i;o[c+20>>2]=d;b:{if((n|0)==-2){break b}if((h|0)<(d|0)?1:(h|0)<=(d|0)?j>>>0>i>>>0?0:1:0){break a}h=m[i+k|0];g=g+2|0;if(g>>>0<2){e=e+1|0}d=c;o[d+16>>2]=g;o[d+20>>2]=e;l[o[o[a>>2]+40>>2]](f+8|0,a,n,h);e=o[f+8>>2];o[f+8>>2]=0;d=o[a+20>>2];o[a+20>>2]=e;if(!d){o[f+8>>2]=0;break b}l[o[o[d>>2]+4>>2]](d);d=o[f+8>>2];o[f+8>>2]=0;if(!d){break b}l[o[o[d>>2]+4>>2]](d)}d=o[a+20>>2];if(d){if(!l[o[o[a>>2]+28>>2]](a,d)){break a}}p=l[o[o[a>>2]+36>>2]](a,b,c)|0}R=f+16|0;return p|0}function oa(a,b,c){var d=0,e=0,f=0;a:{if(o[a+12>>2]==(b|0)){break a}d=o[a>>2];e=o[a+4>>2];if((d|0)!=(e|0)){while(1){f=e+ -12|0;if(m[e+ -1|0]<=-1){jl(o[f>>2])}e=f;if((e|0)!=(d|0)){continue}break}}o[a+12>>2]=b;o[a+4>>2]=d;e=o[b>>2];f=b+4|0;if((e|0)==(f|0)){break a}while(1){b=e+16|0;b:{if(o[a+8>>2]!=(d|0)){Bk(d,b);o[a+4>>2]=o[a+4>>2]+12;break b}pa(a,b)}d=o[e+4>>2];c:{if(!d){b=o[e+8>>2];if(o[b>>2]==(e|0)){break c}e=e+8|0;while(1){d=o[e>>2];e=d+8|0;b=o[d+8>>2];if((d|0)!=o[b>>2]){continue}break}break c}while(1){b=d;d=o[d>>2];if(d){continue}break}}if((b|0)==(f|0)){break a}d=o[a+4>>2];e=b;continue}}d=0;d:{if((c|0)<0){break d}b=o[a+4>>2];a=o[a>>2];if((b-a|0)/12>>>0<=c>>>0){break d}d=a+u(c,12)|0;if(m[d+11|0]>-1){break d}d=o[d>>2]}return d}function ml(a,b,c){var d=0,e=0,f=0,g=0;a:{if(!c){break a}d=a+c|0;m[d+ -1|0]=b;m[a|0]=b;if(c>>>0<3){break a}m[d+ -2|0]=b;m[a+1|0]=b;m[d+ -3|0]=b;m[a+2|0]=b;if(c>>>0<7){break a}m[d+ -4|0]=b;m[a+3|0]=b;if(c>>>0<9){break a}d=0-a&3;e=d+a|0;b=u(b&255,16843009);o[e>>2]=b;c=c-d&-4;d=c+e|0;o[d+ -4>>2]=b;if(c>>>0<9){break a}o[e+8>>2]=b;o[e+4>>2]=b;o[d+ -8>>2]=b;o[d+ -12>>2]=b;if(c>>>0<25){break a}o[e+24>>2]=b;o[e+20>>2]=b;o[e+16>>2]=b;o[e+12>>2]=b;o[d+ -16>>2]=b;o[d+ -20>>2]=b;o[d+ -24>>2]=b;o[d+ -28>>2]=b;g=e&4|24;c=c-g|0;if(c>>>0<32){break a}d=b;f=b;b=e+g|0;while(1){o[b+24>>2]=f;o[b+28>>2]=d;o[b+16>>2]=f;o[b+20>>2]=d;o[b+8>>2]=f;o[b+12>>2]=d;o[b>>2]=f;o[b+4>>2]=d;b=b+32|0;c=c+ -32|0;if(c>>>0>31){continue}break}}return a}function Th(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=o[a+4>>2];e=o[b>>2];a:{c=o[a+12>>2];d=o[c+56>>2]-o[c+52>>2]|0;c=d>>2;b:{if(o[b+8>>2]-e>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=o[b+4>>2];g=c<<2;c=yk(d);g=g+c|0;d=f-e|0;f=d+c|0;if((d|0)>=1){ll(c,e,d)}o[b+8>>2]=g;o[b+4>>2]=f;o[b>>2]=c;if(!e){break b}jl(e)}c=a+8|0;c:{d:{b=o[a+76>>2];if(b){e=o[b>>2];d=1;if((e|0)==o[b+4>>2]){break c}b=0;while(1){if(!Uh(c,o[(b<<2)+e>>2])){break d}d=o[a+76>>2];e=o[d>>2];b=b+1|0;if(b>>>0>2]-e>>2>>>0){continue}break}return 1}b=0;a=o[o[a+12>>2]+64>>2];a=(o[a+4>>2]-o[a>>2]>>2>>>0)/3|0;if((a|0)<=0){return 1}while(1){if(!Uh(c,u(b,3))){break d}b=b+1|0;if((a|0)!=(b|0)){continue}break}return 1}d=0}return d|0}db(8832);D()}function $i(a,b){var c=0,d=0,e=0,f=0,g=0;d=-1;f=-1;e=-1;a:{b:{if((b|0)==-1){break b}g=1;f=o[o[o[a+4>>2]+12>>2]+(b<<2)>>2];c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)>=0){e=(c>>>0)/3|0;e=o[(o[o[a>>2]+96>>2]+u(e,12)|0)+(c-u(e,3)<<2)>>2]}c:{if((f|0)==-1){break c}g=0;c=((f>>>0)%3|0?-1:2)+f|0;if((c|0)<0){break c}d=(c>>>0)/3|0;d=o[(o[o[a>>2]+96>>2]+u(d,12)|0)+(c-u(d,3)<<2)>>2]}c=-1;if((d|0)!=(e|0)){break a}e=-1;d:{b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)>=0){d=(b>>>0)/3|0;d=o[(o[o[a>>2]+96>>2]+u(d,12)|0)+(b-u(d,3)<<2)>>2];if(g){break b}break d}d=-1;if(!g){break d}break b}b=f+1|0;b=(b>>>0)%3|0?b:f+ -2|0;if((b|0)<0){break b}e=o[o[a>>2]+96>>2];a=(b>>>0)/3|0;e=o[(e+u(a,12)|0)+(b-u(a,3)<<2)>>2]}c=(d|0)==(e|0)?f:-1}return c}function Nh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=o[a+4>>2];e=o[b>>2];a:{c=o[a+12>>2];d=o[c+28>>2]-o[c+24>>2]|0;c=d>>2;b:{if(o[b+8>>2]-e>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=o[b+4>>2];g=c<<2;c=yk(d);g=g+c|0;d=f-e|0;f=d+c|0;if((d|0)>=1){ll(c,e,d)}o[b+8>>2]=g;o[b+4>>2]=f;o[b>>2]=c;if(!e){break b}jl(e)}c=a+8|0;c:{d:{b=o[a+76>>2];if(b){e=o[b>>2];d=1;if((e|0)==o[b+4>>2]){break c}b=0;while(1){if(!Oh(c,o[(b<<2)+e>>2])){break d}d=o[a+76>>2];e=o[d>>2];b=b+1|0;if(b>>>0>2]-e>>2>>>0){continue}break}return 1}b=0;a=o[a+12>>2];a=(o[a+4>>2]-o[a>>2]>>2>>>0)/3|0;if((a|0)<=0){return 1}while(1){if(!Oh(c,u(b,3))){break d}b=b+1|0;if((a|0)!=(b|0)){continue}break}return 1}d=0}return d|0}db(8832);D()}function pa(a,b){var c=0,d=0,e=0,f=0,g=0;e=o[a>>2];g=(o[a+4>>2]-e|0)/12|0;c=g+1|0;a:{b:{c:{if(c>>>0<357913942){e=(o[a+8>>2]-e|0)/12|0;f=e<<1;c=e>>>0<178956970?f>>>0>>0?c:f:357913941;d=0;d:{if(!c){break d}if(c>>>0>=357913942){break c}d=yk(u(c,12))}e=d+u(c,12)|0;b=Bk(d+u(g,12)|0,b);g=b+12|0;c=o[a+4>>2];d=o[a>>2];if((c|0)==(d|0)){break b}while(1){c=c+ -12|0;f=o[c+4>>2];b=b+ -12|0;o[b>>2]=o[c>>2];o[b+4>>2]=f;f=c+8|0;o[b+8>>2]=o[f>>2];o[c>>2]=0;o[c+4>>2]=0;o[f>>2]=0;if((c|0)!=(d|0)){continue}break}d=o[a+4>>2];c=o[a>>2];break a}Nk();D()}db(1040);D()}c=d}o[a+8>>2]=e;o[a+4>>2]=g;o[a>>2]=b;if((c|0)!=(d|0)){while(1){a=d+ -12|0;if(m[d+ -1|0]<=-1){jl(o[a>>2])}d=a;if((a|0)!=(c|0)){continue}break}}if(c){jl(c)}}function Xa(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;g=R-16|0;R=g;c=c+ -1|0;a:{if(c>>>0>8){break a}b:{switch(c-1|0){default:f=Ya(a,b,d,e);break a;case 1:f=Za(a,b,d,e);break a;case 3:f=_a(a,b,d,e);break a;case 0:f=$a(a,b,d,e);break a;case 2:f=ab(a,b,d,e);break a;case 4:f=bb(a,b,d,e);break a;case 5:case 6:break a;case 7:break b}}c=d;d=m[b+24|0];i=d<<2;h=o[a+80>>2];if((c|0)!=(u(i,h)|0)){break a}c=0;a=o[259];o[g+8>>2]=o[258];o[g+12>>2]=a;a=o[257];o[g>>2]=o[256];o[g+4>>2]=a;if(!h){f=1;break a}j=((d|0)>0?d:0)<<2;k=(d|0)<1;while(1){a=c;d=b;if(!p[d+84|0]){a=o[o[b+68>>2]+(c<<2)>>2]}if(!Ga(d,a,m[b+24|0],g)){f=0;break a}if(!k){ll(u(c,j)+e|0,g,i)}f=1;c=c+1|0;if((h|0)!=(c|0)){continue}break}}R=g+16|0;return f}function Sj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=R-32|0;R=d;e=o[a+28>>2];o[d+16>>2]=e;f=o[a+20>>2];o[d+28>>2]=c;o[d+24>>2]=b;b=f-e|0;o[d+20>>2]=b;e=b+c|0;h=2;b=d+16|0;a:{b:{c:{if(!Wj(J(o[a+60>>2],d+16|0,2,d+12|0)|0)){while(1){f=o[d+12>>2];if((f|0)==(e|0)){break c}if((f|0)<=-1){break b}g=o[b+4>>2];i=f>>>0>g>>>0;b=i?b+8|0:b;g=f-(i?g:0)|0;o[b>>2]=g+o[b>>2];o[b+4>>2]=o[b+4>>2]-g;e=e-f|0;h=h-i|0;if(!Wj(J(o[a+60>>2],b|0,h|0,d+12|0)|0)){continue}break}}o[d+12>>2]=-1;if((e|0)!=-1){break b}}b=o[a+44>>2];o[a+28>>2]=b;o[a+20>>2]=b;o[a+16>>2]=b+o[a+48>>2];a=c;break a}o[a+28>>2]=0;o[a+16>>2]=0;o[a+20>>2]=0;o[a>>2]=o[a>>2]|32;a=0;if((h|0)==2){break a}a=c-o[b+4>>2]|0}R=d+32|0;return a|0}function va(a,b,c){var d=0,e=0,f=0,g=0;d=R-32|0;R=d;o[d+24>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;g=rl(b);a:{if(g>>>0<4294967280){b:{c:{if(g>>>0>=11){e=g+16&-16;f=yk(e);o[d+24>>2]=e|-2147483648;o[d+16>>2]=f;o[d+20>>2]=g;break c}m[d+27|0]=g;f=d+16|0;if(!g){break b}}ll(f,b,g)}m[f+g|0]=0;o[d+8>>2]=0;o[d>>2]=0;o[d+4>>2]=0;e=rl(c);if(e>>>0>=4294967280){break a}d:{e:{if(e>>>0>=11){b=e+16&-16;f=yk(b);o[d+8>>2]=b|-2147483648;o[d>>2]=f;o[d+4>>2]=e;break e}m[d+11|0]=e;f=d;if(!e){break d}}ll(f,c,e)}m[e+f|0]=0;c=o[a+4>>2];b=-1;f:{if(!c){break f}c=ej(c,d+16|0,d);b=-1;if(!c){break f}b=uj(a,o[c+24>>2])}a=b;if(m[d+11|0]<=-1){jl(o[d>>2])}if(m[d+27|0]<=-1){jl(o[d+16>>2])}R=d+32|0;return a}Ak();D()}Ak();D()}function bb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=R-16|0;R=f;a:{j=o[a+80>>2];g=m[b+24|0];h=g<<2;b:{if((u(j,h)|0)!=(c|0)){break b}if(!(!p[b+84|0]|o[b+28>>2]!=6)){ll(d,o[o[b>>2]>>2]+o[b+48>>2]|0,c);e=1;break b}a=0;o[f+8>>2]=0;o[f>>2]=0;o[f+4>>2]=0;if(g){if((g|0)<=-1){break a}a=yk(h);o[f>>2]=a;c=(g<<2)+a|0;o[f+8>>2]=c;ml(a,0,h);o[f+4>>2]=c}c:{if(!j){e=1;break c}h=0;k=(g|0)<1;while(1){c=i;e=b;if(!p[b+84|0]){c=o[o[b+68>>2]+(i<<2)>>2]}if(!Wa(e,c,m[b+24|0],a)){e=0;break c}e=0;c=h;if(!k){while(1){o[(c<<2)+d>>2]=o[(e<<2)+a>>2];c=c+1|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}h=h+g|0}e=1;i=i+1|0;if((j|0)!=(i|0)){continue}break}}if(!a){break b}o[f+4>>2]=a;jl(a)}R=f+16|0;return e}Nk();D()}function ab(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=R-16|0;R=f;a:{j=o[a+80>>2];g=m[b+24|0];h=g<<1;b:{if((u(j,h)|0)!=(c|0)){break b}if(!(!p[b+84|0]|o[b+28>>2]!=4)){ll(d,o[o[b>>2]>>2]+o[b+48>>2]|0,c);e=1;break b}a=0;o[f+8>>2]=0;o[f>>2]=0;o[f+4>>2]=0;if(g){if((g|0)<=-1){break a}a=yk(h);o[f>>2]=a;c=(g<<1)+a|0;o[f+8>>2]=c;ml(a,0,h);o[f+4>>2]=c}c:{if(!j){e=1;break c}h=0;k=(g|0)<1;while(1){c=i;e=b;if(!p[b+84|0]){c=o[o[b+68>>2]+(i<<2)>>2]}if(!Sa(e,c,m[b+24|0],a)){e=0;break c}e=0;c=h;if(!k){while(1){n[(c<<1)+d>>1]=q[(e<<1)+a>>1];c=c+1|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}h=h+g|0}e=1;i=i+1|0;if((j|0)!=(i|0)){continue}break}}if(!a){break b}o[f+4>>2]=a;jl(a)}R=f+16|0;return e}Nk();D()}function _a(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=R-16|0;R=f;a:{j=o[a+80>>2];g=m[b+24|0];h=g<<2;b:{if((u(j,h)|0)!=(c|0)){break b}if(!(!p[b+84|0]|o[b+28>>2]!=5)){ll(d,o[o[b>>2]>>2]+o[b+48>>2]|0,c);e=1;break b}a=0;o[f+8>>2]=0;o[f>>2]=0;o[f+4>>2]=0;if(g){if((g|0)<=-1){break a}a=yk(h);o[f>>2]=a;c=(g<<2)+a|0;o[f+8>>2]=c;ml(a,0,h);o[f+4>>2]=c}c:{if(!j){e=1;break c}h=0;k=(g|0)<1;while(1){c=i;e=b;if(!p[b+84|0]){c=o[o[b+68>>2]+(i<<2)>>2]}if(!Ua(e,c,m[b+24|0],a)){e=0;break c}e=0;c=h;if(!k){while(1){o[(c<<2)+d>>2]=o[(e<<2)+a>>2];c=c+1|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}h=h+g|0}e=1;i=i+1|0;if((j|0)!=(i|0)){continue}break}}if(!a){break b}o[f+4>>2]=a;jl(a)}R=f+16|0;return e}Nk();D()}function Za(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=R-16|0;R=f;a:{j=o[a+80>>2];g=m[b+24|0];h=g<<1;b:{if((u(j,h)|0)!=(c|0)){break b}if(!(!p[b+84|0]|o[b+28>>2]!=3)){ll(d,o[o[b>>2]>>2]+o[b+48>>2]|0,c);e=1;break b}a=0;o[f+8>>2]=0;o[f>>2]=0;o[f+4>>2]=0;if(g){if((g|0)<=-1){break a}a=yk(h);o[f>>2]=a;c=(g<<1)+a|0;o[f+8>>2]=c;ml(a,0,h);o[f+4>>2]=c}c:{if(!j){e=1;break c}h=0;k=(g|0)<1;while(1){c=i;e=b;if(!p[b+84|0]){c=o[o[b+68>>2]+(i<<2)>>2]}if(!Qa(e,c,m[b+24|0],a)){e=0;break c}e=0;c=h;if(!k){while(1){n[(c<<1)+d>>1]=q[(e<<1)+a>>1];c=c+1|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}h=h+g|0}e=1;i=i+1|0;if((j|0)!=(i|0)){continue}break}}if(!a){break b}o[f+4>>2]=a;jl(a)}R=f+16|0;return e}Nk();D()}function Zi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0;d=R-16|0;R=d;h=sj(b);a:{if(!h){o[a>>2]=0;break a}e=o[b+100>>2];i=o[b+96>>2];o[d+8>>2]=0;o[d>>2]=0;o[d+4>>2]=0;b=e-i|0;c=(b|0)/12|0;b:{c:{if(b){if(c>>>0>=357913942){break c}g=yk(b);o[d>>2]=g;o[d+8>>2]=u(c,12)+g;n=d,q=ml(g,0,b)+b|0,o[n+4>>2]=q}if((e|0)==(i|0)){break b}l=c>>>0>1?c:1;b=0;m=p[h+84|0];while(1){j=u(b,12);c=j+i|0;e=o[c>>2];d:{if(m){k=c+8|0;c=c+4|0;break d}f=o[h+68>>2];k=f+(o[c+8>>2]<<2)|0;e=o[f+(e<<2)>>2];c=f+(o[c+4>>2]<<2)|0}f=o[c>>2];c=g+j|0;o[c+8>>2]=o[k>>2];o[c+4>>2]=f;o[c>>2]=e;b=b+1|0;if((l|0)!=(b|0)){continue}break}break b}Nk();D()}Di(a,d);a=o[d>>2];if(!a){break a}o[d+4>>2]=a;jl(a)}R=d+16|0}function Xd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=o[a+8>>2];c=o[a+4>>2];if(d-c>>2>>>0>=b>>>0){e=a;a=b<<2;j=e,k=ml(c,0,a)+a|0,o[j+4>>2]=k;return}e=o[a>>2];g=c-e>>2;f=g+b|0;a:{if(f>>>0<1073741824){g=g<<2;d=d-e|0;i=d>>1;f=d>>2>>>0<536870911?i>>>0>>0?f:i:1073741823;if(f){if(f>>>0>=1073741824){break a}h=yk(f<<2)}d=h+g|0;b=b<<2;b=ml(d,0,b)+b|0;f=(f<<2)+h|0;if((c|0)!=(e|0)){while(1){c=c+ -4|0;h=o[c>>2];o[c>>2]=0;d=d+ -4|0;o[d>>2]=h;if((c|0)!=(e|0)){continue}break}e=o[a>>2];c=o[a+4>>2]}o[a+8>>2]=f;o[a+4>>2]=b;o[a>>2]=d;if((c|0)!=(e|0)){while(1){c=c+ -4|0;a=o[c>>2];o[c>>2]=0;if(a){l[o[o[a>>2]+4>>2]](a)}if((c|0)!=(e|0)){continue}break}}if(e){jl(e)}return}Nk();D()}db(1832);D()}function Sg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=o[a+8>>2];c=o[a+4>>2];if(d-c>>2>>>0>=b>>>0){e=a;a=b<<2;j=e,k=ml(c,0,a)+a|0,o[j+4>>2]=k;return}e=o[a>>2];g=c-e>>2;f=g+b|0;a:{if(f>>>0<1073741824){g=g<<2;d=d-e|0;i=d>>1;f=d>>2>>>0<536870911?i>>>0>>0?f:i:1073741823;if(f){if(f>>>0>=1073741824){break a}h=yk(f<<2)}d=h+g|0;b=b<<2;b=ml(d,0,b)+b|0;f=(f<<2)+h|0;if((c|0)!=(e|0)){while(1){c=c+ -4|0;h=o[c>>2];o[c>>2]=0;d=d+ -4|0;o[d>>2]=h;if((c|0)!=(e|0)){continue}break}e=o[a>>2];c=o[a+4>>2]}o[a+8>>2]=f;o[a+4>>2]=b;o[a>>2]=d;if((c|0)!=(e|0)){while(1){c=c+ -4|0;a=o[c>>2];o[c>>2]=0;if(a){l[o[o[a>>2]+4>>2]](a)}if((c|0)!=(e|0)){continue}break}}if(e){jl(e)}return}Nk();D()}db(8832);D()}function Ni(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=o[a+8>>2];f=o[a>>2];a:{if(d-f>>2>>>0>=b>>>0){h=o[a+4>>2];g=h-f>>2;e=g>>>0>>0?g:b;if(e){d=f;while(1){o[d>>2]=o[c>>2];d=d+4|0;e=e+ -1|0;if(e){continue}break}}a=a+4|0;if(g>>>0>>0){d=h;b=b-g|0;e=b;while(1){o[d>>2]=o[c>>2];d=d+4|0;e=e+ -1|0;if(e){continue}break}o[a>>2]=(b<<2)+h;return}break a}if(f){o[a+4>>2]=f;jl(f);o[a+8>>2]=0;o[a>>2]=0;o[a+4>>2]=0;d=0}b:{if(b>>>0>=1073741824){break b}e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?b:e:1073741823;if(d>>>0>=1073741824){break b}d=d<<2;f=yk(d);o[a>>2]=f;o[a+4>>2]=f;o[a+8>>2]=d+f;a=a+4|0;d=f;e=b;while(1){o[d>>2]=o[c>>2];d=d+4|0;e=e+ -1|0;if(e){continue}break}break a}Nk();D()}o[a>>2]=f+(b<<2)}function je(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;a:{b:{if((b|0)!=-2){g=o[o[o[d+4>>2]+8>>2]+(c<<2)>>2];if((l[o[o[d>>2]+8>>2]](d)|0)==1){f=b;b=q[d+36>>1];re(a,d,f,c,e,(b<<24|b<<8&16711680)>>>16|0);if(o[a>>2]){break b}o[a>>2]=0}f=yk(44);o[f+4>>2]=g;o[f>>2]=2732;b=o[e+8>>2];c=o[e+12>>2];d=o[e+16>>2];g=o[e+20>>2];h=o[e>>2];i=o[e+4>>2];o[f+40>>2]=0;o[f+32>>2]=0;o[f+36>>2]=0;o[f+24>>2]=d;o[f+28>>2]=g;o[f+16>>2]=b;o[f+20>>2]=c;o[f+8>>2]=h;o[f+12>>2]=i;d=o[e+24>>2];b=o[e+28>>2]-d|0;c:{if(!b){break c}e=b>>2;if(e>>>0>=1073741824){break a}c=yk(b);o[f+32>>2]=c;o[f+36>>2]=c;o[f+40>>2]=c+(e<<2);if((b|0)<1){break c}j=f,k=ll(c,d,b)+b|0,o[j+36>>2]=k}o[f>>2]=5424}o[a>>2]=f}return}Nk();D()}function _h(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=R-32|0;R=d;o[d+24>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;a:{f=u(b,3);if(f){if(f>>>0>=1073741824){break a}c=u(b,12);e=yk(c);o[d+16>>2]=e;g=(f<<2)+e|0;o[d+24>>2]=g;ml(e,0,c);o[d+20>>2]=g}b:{if(!dg(f,1,o[a+32>>2],e)){break b}if(!b){h=1;break b}f=0;c=0;while(1){g=d+8|0;o[g>>2]=0;o[d>>2]=0;o[d+4>>2]=0;i=c;e=(f<<2)+e|0;c=o[e>>2];j=c>>>1|0;c=i+(c&1?0-j|0:j)|0;o[d>>2]=c;i=c;c=o[e+4>>2];j=c>>>1|0;c=i+(c&1?0-j|0:j)|0;o[d+4>>2]=c;i=c;e=o[e+8>>2];c=e>>>1|0;c=i+(e&1?0-c|0:c)|0;o[g>>2]=c;$h(o[a+44>>2]+96|0,d);h=h+1|0;if((h|0)!=(b|0)){f=f+3|0;e=o[d+16>>2];continue}break}h=1;e=o[d+16>>2]}if(e){o[d+20>>2]=e;jl(e)}R=d+32|0;return h}Nk();D()}function Jj(a,b,c){a:{b:{if(b>>>0>20){break b}b=b+ -9|0;if(b>>>0>9){break b}c:{switch(b-1|0){default:b=o[c>>2];o[c>>2]=b+4;o[a>>2]=o[b>>2];return;case 0:b=o[c>>2];o[c>>2]=b+4;b=o[b>>2];o[a>>2]=b;o[a+4>>2]=b>>31;return;case 1:b=o[c>>2];o[c>>2]=b+4;o[a>>2]=o[b>>2];o[a+4>>2]=0;return;case 3:b=o[c>>2];o[c>>2]=b+4;b=n[b>>1];o[a>>2]=b;o[a+4>>2]=b>>31;return;case 4:b=o[c>>2];o[c>>2]=b+4;o[a>>2]=q[b>>1];o[a+4>>2]=0;return;case 5:b=o[c>>2];o[c>>2]=b+4;b=m[b|0];o[a>>2]=b;o[a+4>>2]=b>>31;return;case 6:b=o[c>>2];o[c>>2]=b+4;o[a>>2]=p[b|0];o[a+4>>2]=0;return;case 2:case 7:break a;case 8:break c}}l[275](a,c)}return}b=o[c>>2]+7&-8;o[c>>2]=b+8;c=o[b+4>>2];o[a>>2]=o[b>>2];o[a+4>>2]=c}function Of(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0,p=0,q=0,r=0,t=v(0);g=R-16|0;R=g;d=o[a+24>>2];f=m[o[a+8>>2]+24|0];h=f<<2;i=yk((f&1073741823)!=(f|0)?-1:h);j=g+8|0;o[j>>2]=1065353216;d=-1<>2]=s[a+32>>2]/v(d|0);c=1}b:{if(!c){break b}c=o[a+16>>2];d=0;c:{if(!o[c+80>>2]){break c}d=o[o[c>>2]>>2]+o[c+48>>2]|0}if(!b){e=1;break b}q=(f|0)<1;while(1){if(!q){r=o[a+28>>2];t=s[j>>2];e=0;c=k;while(1){l=e<<2;s[l+i>>2]=v(t*v(o[d+(c<<2)>>2]))+s[r+l>>2];c=c+1|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}k=f+k|0}ll(o[o[o[a+8>>2]+64>>2]>>2]+n|0,i,h);n=h+n|0;e=1;p=p+1|0;if((p|0)!=(b|0)){continue}break}}jl(i);R=g+16|0;return e|0}function xj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=o[a+8>>2];c=o[a+4>>2];if(d-c>>2>>>0>=b>>>0){e=a;a=b<<2;j=e,k=ml(c,0,a)+a|0,o[j+4>>2]=k;return}e=o[a>>2];g=c-e>>2;f=g+b|0;a:{if(f>>>0<1073741824){g=g<<2;d=d-e|0;i=d>>1;f=d>>2>>>0<536870911?i>>>0>>0?f:i:1073741823;if(f){if(f>>>0>=1073741824){break a}h=yk(f<<2)}d=h+g|0;b=b<<2;b=ml(d,0,b)+b|0;f=(f<<2)+h|0;if((c|0)!=(e|0)){while(1){c=c+ -4|0;h=o[c>>2];o[c>>2]=0;d=d+ -4|0;o[d>>2]=h;if((c|0)!=(e|0)){continue}break}e=o[a>>2];c=o[a+4>>2]}o[a+8>>2]=f;o[a+4>>2]=b;o[a>>2]=d;if((c|0)!=(e|0)){while(1){c=c+ -4|0;a=o[c>>2];o[c>>2]=0;if(a){Kb(a)}if((c|0)!=(e|0)){continue}break}}if(e){jl(e)}return}Nk();D()}db(11048);D()}function gj(a,b){var c=0,d=0,e=0,f=0,g=0;e=o[a>>2];f=o[a+4>>2]-e>>2;c=f+1|0;a:{b:{c:{if(c>>>0<1073741824){e=o[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=yk(c<<2)}e=o[b>>2];o[b>>2]=0;b=(f<<2)+d|0;o[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;c=o[a+4>>2];d=o[a>>2];if((c|0)==(d|0)){break b}while(1){c=c+ -4|0;g=o[c>>2];o[c>>2]=0;b=b+ -4|0;o[b>>2]=g;if((c|0)!=(d|0)){continue}break}d=o[a+4>>2];c=o[a>>2];break a}Nk();D()}db(10924);D()}c=d}o[a+8>>2]=e;o[a+4>>2]=f;o[a>>2]=b;if((c|0)!=(d|0)){while(1){d=d+ -4|0;a=o[d>>2];o[d>>2]=0;if(a){Kc(a+12|0,o[a+16>>2]);Lc(a,o[a+4>>2]);jl(a)}if((c|0)!=(d|0)){continue}break}}if(c){jl(c)}}function uf(a,b,c){var d=0,e=0,f=v(0),g=v(0),h=v(0),i=0,j=0;f=v(a+b);a:{b:{h=v(a-b);if(h<=v(.5)^1|h>=v(-.5)^1|f>=v(.5)^1){break b}e=1;if(!(f<=v(1.5))){break b}g=b;break a}c:{if(!!(f<=v(.5))){g=v(v(.5)-a);a=v(v(.5)-b);break c}if(!!(f>=v(1.5))){g=v(v(1.5)-a);a=v(v(1.5)-b);break c}if(!!(h<=v(-.5))){g=v(a+v(.5));a=v(b+v(-.5));break c}g=v(a+v(-.5));a=v(b+v(.5))}h=v(a-g);f=v(g+a);e=-1}d=+g;b=v(d+d+ -1);d=+a;a=v(d+d+ -1);j=e;e=+h;e=e+e;d=1-e;e=e+1;e=d>2]=0;f=v(0);a=v(0);break d}h=v(v(1)/v(C(f)));s[c>>2]=h*g;f=v(h*b);a=v(h*a)}s[c+8>>2]=f;s[c+4>>2]=a}function yd(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{d=c-b|0;g=d>>2;f=o[a+8>>2];e=o[a>>2];b:{if(g>>>0<=f-e>>2>>>0){h=o[a+4>>2];d=h-e|0;f=d>>2;d=g>>>0>f>>>0?b+d|0:c;if((d|0)!=(b|0)){while(1){o[e>>2]=o[b>>2];e=e+4|0;b=b+4|0;if((d|0)!=(b|0)){continue}break}}if(g>>>0>f>>>0){b=c-d|0;if((b|0)<1){break b}ll(h,d,b);o[a+4>>2]=b+o[a+4>>2];return}o[a+4>>2]=e;return}if(e){o[a+4>>2]=e;jl(e);o[a+8>>2]=0;o[a>>2]=0;o[a+4>>2]=0;f=0}if(g>>>0>=1073741824){break a}c=f>>1;c=f>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=yk(e);o[a>>2]=c;o[a+4>>2]=c;o[a+8>>2]=c+e;if((d|0)<1){break b}i=a,j=ll(c,b,d)+d|0,o[i+4>>2]=j}return}Nk();D()}function eb(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=R-16|0;R=e;o[a+4>>2]=0;a:{b:{if(!b){break b}f=o[a+8>>2];d=f<<5;c:{if(d>>>0>=b>>>0){o[a+4>>2]=b;break c}o[e+8>>2]=0;o[e>>2]=0;o[e+4>>2]=0;if((b|0)<=-1){break a}h=e;if(d>>>0<=1073741822){g=b+31&-32;d=f<<6;g=d>>>0>>0?g:d}else{g=2147483647}fb(h,g);d=o[a>>2];o[a>>2]=o[e>>2];o[e>>2]=d;f=o[a+4>>2];o[a+4>>2]=b;o[e+4>>2]=f;f=o[a+8>>2];o[a+8>>2]=o[e+8>>2];o[e+8>>2]=f;if(!d){break c}jl(d)}d=b>>>5|0;f=d<<2;a=o[a>>2];if(p[c|0]){a=ml(a,255,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;o[a>>2]=o[a>>2]|-1>>>32-b;break b}a=ml(a,0,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;o[a>>2]=o[a>>2]&(-1>>>32-b^-1)}R=e+16|0;return}Nk();D()}function ai(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=R-16|0;R=f;g=yk(64);c=yk(12);o[c+8>>2]=o[o[a+4>>2]+80>>2];o[c>>2]=10052;o[c+4>>2]=0;o[f+8>>2]=c;Vd(g,f+8|0);a:{if((b|0)>=0){h=a+8|0;c=o[a+12>>2];i=o[a+8>>2];d=c-i>>2;b:{if((d|0)>(b|0)){break b}e=b+1|0;if(d>>>0<=b>>>0){Sg(h,e-d|0);break b}if(e>>>0>=d>>>0){break b}e=i+(e<<2)|0;if((e|0)!=(c|0)){while(1){c=c+ -4|0;d=o[c>>2];o[c>>2]=0;if(d){l[o[o[d>>2]+4>>2]](d)}if((c|0)!=(e|0)){continue}break}}o[a+12>>2]=e}b=o[h>>2]+(b<<2)|0;a=o[b>>2];o[b>>2]=g;d=1;if(!a){break a}l[o[o[a>>2]+4>>2]](a);break a}l[o[o[g>>2]+4>>2]](g)}a=o[f+8>>2];o[f+8>>2]=0;if(a){l[o[o[a>>2]+4>>2]](a)}R=f+16|0;return d|0}function Lg(a){o[a>>2]=8228;ml(a+4|0,0,80);o[a+96>>2]=0;o[a+100>>2]=0;o[a+92>>2]=-1;o[a+84>>2]=-1;o[a+88>>2]=-1;o[a+104>>2]=0;o[a+108>>2]=0;o[a+112>>2]=0;o[a+116>>2]=0;o[a+120>>2]=0;o[a+124>>2]=0;o[a+128>>2]=0;o[a+132>>2]=0;o[a+136>>2]=0;o[a+140>>2]=0;o[a+144>>2]=0;o[a+148>>2]=0;o[a+156>>2]=0;o[a+160>>2]=0;o[a+152>>2]=1065353216;o[a+164>>2]=0;o[a+168>>2]=0;o[a+172>>2]=0;o[a+176>>2]=0;o[a+180>>2]=0;o[a+184>>2]=0;o[a+188>>2]=0;o[a+192>>2]=0;o[a+196>>2]=0;o[a+200>>2]=0;o[a+204>>2]=0;o[a+208>>2]=0;o[a+212>>2]=-1;o[a+216>>2]=0;o[a+220>>2]=0;o[a+224>>2]=0;si(a+232|0);si(a+272|0);Rf(a+312|0);si(a+328|0);o[a+376>>2]=0;o[a+368>>2]=0;o[a+372>>2]=0}function Ei(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=R-16|0;R=f;o[a+80>>2]=0;o[a+84>>2]=0;c=a+76|0;d=o[c>>2];o[c>>2]=0;if(d){jl(d)}o[a+68>>2]=0;o[a+72>>2]=0;c=a- -64|0;d=o[c>>2];o[c>>2]=0;if(d){jl(d)}c=o[b+4>>2];d=o[b>>2];e=u((c-d|0)/12|0,3);h=o[a>>2];g=o[a+4>>2]-h>>2;a:{if(e>>>0>g>>>0){Fi(a,e-g|0);d=o[b>>2];c=o[b+4>>2];break a}if(e>>>0>=g>>>0){break a}o[a+4>>2]=h+(e<<2)}if((c|0)!=(d|0)){b=(c-d|0)/12|0;g=b>>>0>1?b:1;h=o[a>>2];b=0;while(1){e=u(b,12);c=e+h|0;e=d+e|0;o[c>>2]=o[e>>2];o[c+4>>2]=o[e+4>>2];o[c+8>>2]=o[e+8>>2];b=b+1|0;if((g|0)!=(b|0)){continue}break}}o[f+12>>2]=-1;b=0;if(Gi(a,f+12|0)){Hi(a);Ii(a,o[f+12>>2]);b=1}R=f+16|0;return b}function Eh(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=(c>>>0)/3|0;Fh(o[a+12>>2],o[(o[o[a+8>>2]+96>>2]+u(d,12)|0)+(c-u(d,3)<<2)>>2]);a:{b:{g=o[a+4>>2];d=o[g+4>>2];f=o[g+8>>2];c:{if((d|0)!=(f|0)){o[d>>2]=c;o[g+4>>2]=d+4;break c}h=o[g>>2];i=d-h|0;d=i>>2;e=d+1|0;if(e>>>0>=1073741824){break b}j=d<<2;f=f-h|0;d=f>>1;e=f>>2>>>0<536870911?d>>>0>>0?e:d:1073741823;d=0;d:{if(!e){break d}if(e>>>0>=1073741824){break a}d=yk(e<<2)}f=j+d|0;o[f>>2]=c;c=d+(e<<2)|0;e=f+4|0;if((i|0)>=1){ll(d,h,i)}o[g+8>>2]=c;o[g+4>>2]=e;o[g>>2]=d;if(!h){break c}jl(h)}a=o[a+4>>2];o[o[a+12>>2]+(b<<2)>>2]=o[a+24>>2];o[a+24>>2]=o[a+24>>2]+1;return}Nk();D()}db(8832);D()}function Jf(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;f=R-32|0;R=f;h=(e&1073741823)!=(e|0)?-1:e<<2;h=ml(yk(h),0,h);g=o[b>>2];i=o[b+4>>2];k=o[h+4>>2];o[f+16>>2]=o[h>>2];o[f+20>>2]=k;o[f+8>>2]=g;o[f+12>>2]=i;i=a+8|0;Ef(f+24|0,i,f+16|0,f+8|0);o[c>>2]=o[f+24>>2];o[c+4>>2]=o[f+28>>2];if((e|0)<(d|0)){k=0-e<<2;a=e;while(1){g=a<<2;j=g+b|0;m=o[j>>2];j=o[j+4>>2];g=c+g|0;l=g+k|0;n=o[l+4>>2];o[f+16>>2]=o[l>>2];o[f+20>>2]=n;o[f+8>>2]=m;o[f+12>>2]=j;Ef(f+24|0,i,f+16|0,f+8|0);o[g>>2]=o[f+24>>2];o[g+4>>2]=o[f+28>>2];a=a+e|0;if((a|0)<(d|0)){continue}break}}jl(h);R=f+32|0;return 1}function fg(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{e=o[b+16>>2];f=o[b+12>>2];d=o[b+20>>2];c:{if((f|0)<(d|0)?1:(f|0)<=(d|0)?r[b+8>>2]>e>>>0?0:1:0){break c}f=p[e+o[b>>2]|0];e=e+1|0;if(e>>>0<1){d=d+1|0}o[b+16>>2]=e;o[b+20>>2]=d;d=f+ -1|0;if(d>>>0>17){break c}d:{e:{f:{g:{h:{i:{j:{switch(d-1|0){case 12:case 13:case 14:case 15:break a;case 8:break h;case 7:break i;case 3:break j;case 16:break d;case 11:break e;case 10:break f;case 9:break g;default:break b}}return jg(a,b,c)}return kg(a,b,c)}return lg(a,b,c)}return mg(a,b,c)}return ng(a,b,c)}return og(a,b,c)}g=pg(a,b,c)}return g}return ig(a,b,c)}return pg(a,b,c)}function Dg(a){a=a|0;var b=0,c=0,d=0,e=0;b=o[a+32>>2];d=o[b+16>>2];e=o[b+12>>2];c=o[b+20>>2];if((e|0)>(c|0)?1:(e|0)>=(c|0)?r[b+8>>2]<=d>>>0?0:1:0){e=p[d+o[b>>2]|0];d=d+1|0;if(d>>>0<1){c=c+1|0}o[b+16>>2]=d;o[b+20>>2]=c;b=o[a+48>>2];o[a+48>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}a:{b:{if(e>>>0>2){break b}c:{switch(e-1|0){default:c=yk(384);Lg(c);b=o[a+48>>2];o[a+48>>2]=c;if(!b){break a}l[o[o[b>>2]+4>>2]](b);break b;case 0:break b;case 1:break c}}c=yk(440);ih(c);b=o[a+48>>2];o[a+48>>2]=c;if(!b){break a}l[o[o[b>>2]+4>>2]](b)}c=o[a+48>>2];if(c){break a}return 0}a=l[o[o[c>>2]+8>>2]](c,a)|0}else{a=0}return a|0}function kd(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{f=c-b|0;g=f>>2;d=o[a+8>>2];e=o[a>>2];b:{if(g>>>0<=d-e>>2>>>0){d=o[a+4>>2]-e|0;f=d>>2;d=g>>>0>f>>>0?b+d|0:c;h=d-b|0;if(h){nl(e,b,h)}if(g>>>0>f>>>0){b=c-d|0;if((b|0)<1){break b}ll(o[a+4>>2],d,b);o[a+4>>2]=b+o[a+4>>2];return}o[a+4>>2]=e+(h>>2<<2);return}if(e){o[a+4>>2]=e;jl(e);o[a+8>>2]=0;o[a>>2]=0;o[a+4>>2]=0;d=0}if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=yk(e);o[a>>2]=c;o[a+4>>2]=c;o[a+8>>2]=c+e;if((f|0)<1){break b}i=a,j=ll(c,b,f)+f|0,o[i+4>>2]=j}return}Nk();D()}function Cf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;c=o[b+12>>2];h=c;e=c;c=o[b+20>>2];f=c;g=o[b+16>>2];d=g+4|0;if(d>>>0<4){c=c+1|0}i=o[b+8>>2];j=d;d=c;a:{if((e|0)<(c|0)?1:(e|0)<=(c|0)?i>>>0>=j>>>0?0:1:0){break a}c=g+o[b>>2]|0;e=p[c|0]|p[c+1|0]<<8|(p[c+2|0]<<16|p[c+3|0]<<24);o[b+16>>2]=j;o[b+20>>2]=d;c=f;d=g+8|0;if(d>>>0<8){c=c+1|0}f=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?i>>>0>=f>>>0?0:1:0){break a}o[b+16>>2]=f;o[b+20>>2]=d;if(!(e&1)){break a}c=x(e)^31;if(c+ -1>>>0>28){break a}o[a+8>>2]=c+1;d=-2<>2]=c;o[a+12>>2]=d^-1;o[a+20>>2]=(c|0)/2;k=Sf(a+88|0,b)}return k|0}function Ha(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=R-16|0;R=e;i=o[a+80>>2];f=m[b+24|0];a=o[259];o[e+8>>2]=o[258];o[e+12>>2]=a;a=o[257];o[e>>2]=o[256];o[e+4>>2]=a;a=u(f,i);g=o[c>>2];d=o[c+4>>2]-g>>2;a:{if(a>>>0>d>>>0){Ia(c,a-d|0);break a}if(a>>>0>=d>>>0){break a}o[c+4>>2]=g+(a<<2)}b:{if(!i){a=1;break b}g=(f|0)<1;while(1){a=h;d=b;if(!p[d+84|0]){a=o[o[b+68>>2]+(h<<2)>>2]}if(!Ga(d,a,m[b+24|0],e)){a=0;break b}if(!g){k=o[c>>2];a=0;d=j;while(1){o[k+(d<<2)>>2]=o[(a<<2)+e>>2];d=d+1|0;a=a+1|0;if((f|0)!=(a|0)){continue}break}j=f+j|0}a=1;h=h+1|0;if((i|0)!=(h|0)){continue}break}}R=e+16|0;return a}function $h(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=o[a+4>>2];f=o[a+8>>2];if((e|0)!=(f|0)){d=o[b+4>>2];o[e>>2]=o[b>>2];o[e+4>>2]=d;o[e+8>>2]=o[b+8>>2];o[a+4>>2]=o[a+4>>2]+12;return}c=e;e=o[a>>2];g=c-e|0;c=(g|0)/12|0;d=c+1|0;a:{if(d>>>0<357913942){h=u(c,12);f=(f-e|0)/12|0;c=f<<1;f=f>>>0<178956970?c>>>0>>0?d:c:357913941;c=0;b:{if(!f){break b}if(f>>>0>=357913942){break a}c=yk(u(f,12))}d=h+c|0;h=o[b+4>>2];o[d>>2]=o[b>>2];o[d+4>>2]=h;o[d+8>>2]=o[b+8>>2];b=d+u((g|0)/-12|0,12)|0;c=c+u(f,12)|0;d=d+12|0;if((g|0)>=1){ll(b,e,g)}o[a+8>>2]=c;o[a+4>>2]=d;o[a>>2]=b;if(e){jl(e)}return}Nk();D()}db(9976);D()}function hd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=o[b+88>>2];if(!(!d|o[d>>2]!=1)){f=o[d+8>>2];c=f;o[a+4>>2]=p[c|0]|p[c+1|0]<<8|(p[c+2|0]<<16|p[c+3|0]<<24);g=a+8|0;h=o[a+8>>2];e=o[a+12>>2]-h>>2;c=m[b+24|0];a:{if(e>>>0>>0){Ia(g,c-e|0);f=o[d+8>>2];c=p[b+24|0];break a}if(e>>>0<=c>>>0){break a}o[a+12>>2]=h+(c<<2)}e=1;b=f;d=p[b+4|0]|p[b+5|0]<<8|(p[b+6|0]<<16|p[b+7|0]<<24);if(c<<24>>24>=1){b=c&255;h=b>>>0>1?b:1;g=o[g>>2];b=0;c=4;while(1){o[g+(b<<2)>>2]=d;c=c+4|0;d=f+c|0;d=p[d|0]|p[d+1|0]<<8|(p[d+2|0]<<16|p[d+3|0]<<24);b=b+1|0;if((h|0)!=(b|0)){continue}break}}o[a+20>>2]=d}return e|0}function Ff(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;c=o[b+12>>2];h=c;e=c;c=o[b+20>>2];f=c;g=o[b+16>>2];d=g+4|0;if(d>>>0<4){c=c+1|0}i=o[b+8>>2];j=d;d=c;a:{if((e|0)<(c|0)?1:(e|0)<=(c|0)?i>>>0>=j>>>0?0:1:0){break a}c=g+o[b>>2]|0;e=p[c|0]|p[c+1|0]<<8|(p[c+2|0]<<16|p[c+3|0]<<24);o[b+16>>2]=j;o[b+20>>2]=d;c=f;d=g+8|0;if(d>>>0<8){c=c+1|0}f=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?i>>>0>=f>>>0?0:1:0){break a}o[b+16>>2]=f;o[b+20>>2]=d;if(!(e&1)){break a}b=x(e)^31;if(b+ -1>>>0>28){break a}k=1;o[a+8>>2]=b+1;c=-2<>2]=b;o[a+12>>2]=c^-1;o[a+20>>2]=(b|0)/2}return k|0}function pd(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=o[a+8>>2];f=o[a+4>>2];if(e-f>>2>>>0>=b>>>0){e=f;d=b;while(1){o[e>>2]=o[c>>2];e=e+4|0;d=d+ -1|0;if(d){continue}break}o[a+4>>2]=f+(b<<2);return}g=o[a>>2];j=f-g|0;h=j>>2;d=h+b|0;a:{if(d>>>0<1073741824){e=e-g|0;i=e>>1;d=e>>2>>>0<536870911?i>>>0>>0?d:i:1073741823;f=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}f=yk(d<<2)}i=f+(d<<2)|0;h=f+(h<<2)|0;e=h;d=b;while(1){o[e>>2]=o[c>>2];e=e+4|0;d=d+ -1|0;if(d){continue}break}b=h+(b<<2)|0;if((j|0)>=1){ll(f,g,j)}o[a+8>>2]=i;o[a+4>>2]=b;o[a>>2]=f;if(g){jl(g)}return}Nk();D()}db(1308);D()}function Dd(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=o[a+8>>2];f=o[a+4>>2];if(e-f>>2>>>0>=b>>>0){e=f;d=b;while(1){o[e>>2]=o[c>>2];e=e+4|0;d=d+ -1|0;if(d){continue}break}o[a+4>>2]=f+(b<<2);return}g=o[a>>2];j=f-g|0;h=j>>2;d=h+b|0;a:{if(d>>>0<1073741824){e=e-g|0;i=e>>1;d=e>>2>>>0<536870911?i>>>0>>0?d:i:1073741823;f=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}f=yk(d<<2)}i=f+(d<<2)|0;h=f+(h<<2)|0;e=h;d=b;while(1){o[e>>2]=o[c>>2];e=e+4|0;d=d+ -1|0;if(d){continue}break}b=h+(b<<2)|0;if((j|0)>=1){ll(f,g,j)}o[a+8>>2]=i;o[a+4>>2]=b;o[a>>2]=f;if(g){jl(g)}return}Nk();D()}db(1520);D()}function Ji(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=o[a+8>>2];e=o[a+4>>2];if(d-e>>2>>>0>=b>>>0){d=e;c=b;while(1){o[d>>2]=o[2631];d=d+4|0;c=c+ -1|0;if(c){continue}break}o[a+4>>2]=e+(b<<2);return}f=o[a>>2];i=e-f|0;g=i>>2;c=g+b|0;a:{if(c>>>0<1073741824){d=d-f|0;h=d>>1;c=d>>2>>>0<536870911?h>>>0>>0?c:h:1073741823;e=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}e=yk(c<<2)}h=e+(c<<2)|0;g=e+(g<<2)|0;d=g;c=b;while(1){o[d>>2]=o[2631];d=d+4|0;c=c+ -1|0;if(c){continue}break}b=g+(b<<2)|0;if((i|0)>=1){ll(e,f,i)}o[a+8>>2]=h;o[a+4>>2]=b;o[a>>2]=e;if(f){jl(f)}return}Nk();D()}db(10528);D()}function tf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=v(0),j=0;d=R-32|0;R=d;f=m[o[a+8>>2]+24|0];c=o[a+16>>2];if(o[c+80>>2]){g=o[o[c>>2]>>2]+o[c+48>>2]|0}o[d+8>>2]=-1;o[d+12>>2]=-1;o[d>>2]=-1;o[d+4>>2]=-1;a:{c=o[a+24>>2];if(c+ -2>>>0>28){break a}o[d>>2]=c;c=-1<>2]=e;o[d+4>>2]=c^-1;o[d+12>>2]=(e|0)/2;if(!b){e=1;break a}h=f<<2;c=0;f=0;while(1){i=v(v(1)/v(e|0));e=c<<2;uf(v(i*v(o[e+g>>2])),v(i*v(o[(e|4)+g>>2])),d+20|0);ll(o[o[o[a+8>>2]+64>>2]>>2]+f|0,d+20|0,h);e=1;j=j+1|0;if((j|0)==(b|0)){break a}c=c+2|0;f=f+h|0;e=o[d+8>>2];continue}}R=d+32|0;return e|0}function qi(a,b,c,d){var e=0,f=0,g=0;a:{if(!b){b=c;d=b>>>0<0?d+1|0:d;if((d|0)<0?1:(d|0)<=0?b>>>0>=0?0:1:0){return 0}d=o[a>>2];c=o[a+4>>2]-d|0;if(c>>>0>>0){Ka(a,b-c|0);break a}if(c>>>0<=b>>>0){break a}o[a+4>>2]=b+d;break a}if((d|0)<0?1:(d|0)<=0?c>>>0>=0?0:1:0){return 0}f=c;if(c>>>0<0){d=d+1|0}g=o[a>>2];e=o[a+4>>2]-g|0;b:{if((d|0)<0?1:(d|0)<=0?f>>>0>e>>>0?0:1:0){break b}d=f;if(e>>>0>>0){Ka(a,d-e|0);break b}if(e>>>0<=d>>>0){break b}o[a+4>>2]=d+g}if(!c){break a}nl(o[a>>2],b,c)}b=a+24|0;c=b;d=b;a=o[b+4>>2];b=o[b>>2]+1|0;if(b>>>0<1){a=a+1|0}o[d>>2]=b;o[c+4>>2]=a;return 1}function vf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=R-32|0;R=e;a:{if((d|0)==3){d=o[b+4>>2];b=o[b+12>>2];o[e+24>>2]=-1;o[e+28>>2]=-1;o[e+16>>2]=-1;o[e+20>>2]=-1;if((c|0)==-2){o[e+8>>2]=0;o[a>>2]=0;break a}f=o[o[o[d+4>>2]+8>>2]+(b<<2)>>2];if((l[o[o[d>>2]+8>>2]](d)|0)==1){g=b;b=q[d+36>>1];wf(e+8|0,d,c,g,e+16|0,(b<<24|b<<8&16711680)>>>16|0);b=o[e+8>>2];if(b){o[a>>2]=b;break a}o[e+8>>2]=0}b=yk(24);o[b+4>>2]=f;c=o[e+20>>2];o[b+8>>2]=o[e+16>>2];o[b+12>>2]=c;c=o[e+28>>2];o[b+16>>2]=o[e+24>>2];o[b+20>>2]=c;o[b>>2]=7536;o[e+8>>2]=b;o[a>>2]=b;break a}o[a>>2]=0}R=e+32|0}function Ti(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=o[a+8>>2];e=o[a+4>>2];if(d-e>>2>>>0>=b>>>0){d=e;c=b;while(1){o[d>>2]=1;d=d+4|0;c=c+ -1|0;if(c){continue}break}o[a+4>>2]=e+(b<<2);return}f=o[a>>2];i=e-f|0;g=i>>2;c=g+b|0;a:{if(c>>>0<1073741824){d=d-f|0;h=d>>1;c=d>>2>>>0<536870911?h>>>0>>0?c:h:1073741823;e=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}e=yk(c<<2)}h=e+(c<<2)|0;g=e+(g<<2)|0;d=g;c=b;while(1){o[d>>2]=1;d=d+4|0;c=c+ -1|0;if(c){continue}break}b=g+(b<<2)|0;if((i|0)>=1){ll(e,f,i)}o[a+8>>2]=h;o[a+4>>2]=b;o[a>>2]=e;if(f){jl(f)}return}Nk();D()}db(10648);D()}function cg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=a+4|0;a:{a=o[a+4>>2];if(a){e=p[c+11|0];d=e<<24>>24<0;i=d?o[c>>2]:c;e=d?o[c+4>>2]:e;while(1){c=p[a+27|0];d=c<<24>>24<0;c=d?o[a+20>>2]:c;j=c>>>0>>0;b:{c:{d:{e:{f:{h=j?c:e;g:{if(h){g=a+16|0;d=d?o[g>>2]:g;g=Vj(i,d,h);if(!g){if(e>>>0>>0){break g}break f}if((g|0)>-1){break f}break g}if(e>>>0>=c>>>0){break e}}c=o[a>>2];if(c){break b}o[b>>2]=a;return a}c=Vj(d,i,h);if(c){break d}}if(j){break c}break a}if((c|0)>-1){break a}}f=a+4|0;c=o[a+4>>2];if(!c){break a}a=f}f=a;a=c;continue}}o[b>>2]=f;return f}o[b>>2]=a;return f}function vd(a,b){var c=0;c=o[b+4>>2];o[a>>2]=o[b>>2];o[a+4>>2]=c;c=o[b+60>>2];o[a+56>>2]=o[b+56>>2];o[a+60>>2]=c;c=o[b+52>>2];o[a+48>>2]=o[b+48>>2];o[a+52>>2]=c;c=o[b+44>>2];o[a+40>>2]=o[b+40>>2];o[a+44>>2]=c;c=o[b+36>>2];o[a+32>>2]=o[b+32>>2];o[a+36>>2]=c;c=o[b+28>>2];o[a+24>>2]=o[b+24>>2];o[a+28>>2]=c;c=o[b+20>>2];o[a+16>>2]=o[b+16>>2];o[a+20>>2]=c;c=o[b+12>>2];o[a+8>>2]=o[b+8>>2];o[a+12>>2]=c;o[a+88>>2]=0;o[a+64>>2]=0;o[a+68>>2]=0;o[a+72>>2]=0;o[a+76>>2]=0;m[a+77|0]=0;m[a+78|0]=0;m[a+79|0]=0;m[a+80|0]=0;m[a+81|0]=0;m[a+82|0]=0;m[a+83|0]=0;m[a+84|0]=0;return a}function Ai(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=a+4|0;a=o[a+4>>2];a:{b:{if(!a){break b}d=p[b+11|0];c=d<<24>>24<0;i=c?o[b>>2]:b;e=c?o[b+4>>2]:d;c=g;while(1){b=p[a+27|0];j=b<<24>>24<0;h=j?o[a+20>>2]:b;f=e>>>0>>0;d=f?e:h;c:{if(d){b=a+16|0;b=Vj(j?o[b>>2]:b,i,d);if(b){break c}}b=h>>>0>>0?-1:f}c=(b|0)<0?c:a;a=o[(b>>>29&4)+a>>2];if(a){continue}break}if((c|0)==(g|0)){break b}a=p[c+27|0];f=a<<24>>24<0;d:{d=f?o[c+20>>2]:a;b=d>>>0>>0?d:e;if(b){a=c+16|0;a=Vj(i,f?o[a>>2]:a,b);if(a){break d}}if(e>>>0>>0){break b}break a}if((a|0)>-1){break a}}c=g}return c}function ij(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=R-16|0;R=g;j=a;h=cg(b,g+12|0,c);c=o[h>>2];if(c){b=0}else{c=yk(40);e=d+8|0;o[c+24>>2]=o[e>>2];f=o[d+4>>2];o[c+16>>2]=o[d>>2];o[c+20>>2]=f;o[d>>2]=0;o[d+4>>2]=0;o[e>>2]=0;o[c+36>>2]=0;o[c+28>>2]=0;o[c+32>>2]=0;f=o[d+16>>2];e=o[d+12>>2];i=f-e|0;if(i){e=c+28|0;Ka(e,i);f=o[d+16>>2];k=o[e>>2];e=o[d+12>>2]}ll(k,e,f-e|0);o[c+8>>2]=o[g+12>>2];o[c>>2]=0;o[c+4>>2]=0;o[h>>2]=c;e=o[o[b>>2]>>2];d=c;a:{if(!e){break a}o[b>>2]=e;d=o[h>>2]}ag(o[b+4>>2],d);o[b+8>>2]=o[b+8>>2]+1;b=1}m[j+4|0]=b;o[a>>2]=c;R=g+16|0}function xa(a,b){var c=0,d=0;c=R-96|0;R=c;ml(c+16|0,0,76);o[c+92>>2]=-1;o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0;a:{if(ya(c+16|0,a,c)){a=o[b>>2];if(a){o[b+4>>2]=a;jl(a);o[b+8>>2]=0;o[b>>2]=0;o[b+4>>2]=0}o[b>>2]=o[c>>2];o[b+4>>2]=o[c+4>>2];o[b+8>>2]=o[c+8>>2];o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0;d=o[c+84>>2];break a}a=o[c>>2];if(!a){break a}o[c+4>>2]=a;jl(a)}a=o[c+72>>2];if(a){jl(a)}a=o[c+48>>2];if(a){o[c+52>>2]=a;jl(a)}a=o[c+36>>2];if(a){o[c+40>>2]=a;jl(a)}a=o[c+24>>2];if(a){o[c+28>>2]=a;jl(a)}a=o[c+20>>2];o[c+20>>2]=0;if(a){za(c+16|4,a)}R=c+96|0;return d}function Fj(a){var b=0,c=0,d=0,e=0;b=R-208|0;R=b;o[b+204>>2]=0;ml(b+160|0,0,40);o[b+200>>2]=o[b+204>>2];a:{if((Gj(0,b+200|0,b+80|0,b+160|0)|0)<0){break a}d=o[a+76>>2]>=0?1:d;c=o[a>>2];if(m[a+74|0]<=0){o[a>>2]=c&-33}e=c&32;b:{if(o[a+48>>2]){Gj(a,b+200|0,b+80|0,b+160|0);break b}o[a+48>>2]=80;o[a+16>>2]=b+80;o[a+28>>2]=b;o[a+20>>2]=b;c=o[a+44>>2];o[a+44>>2]=b;Gj(a,b+200|0,b+80|0,b+160|0);if(!c){break b}l[o[a+36>>2]](a,0,0)|0;o[a+48>>2]=0;o[a+44>>2]=c;o[a+28>>2]=0;o[a+16>>2]=0;o[a+20>>2]=0}o[a>>2]=e|o[a>>2];if(!d){break a}}R=b+208|0}function dj(a,b,c){var d=0,e=0,f=0;e=R-16|0;R=e;a:{b:{if(!c){break b}o[a>>2]=b;o[e+12>>2]=0;d=0;if(!bj(1,e+12|0,b)){break a}c:{f=o[e+12>>2];if(f){b=0;while(1){if(!bj(1,e+8|0,o[a>>2])){break b}d=yk(28);o[d+4>>2]=0;o[d+8>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;o[d>>2]=d+4;o[d+12>>2]=d+16;o[d+24>>2]=o[e+8>>2];if(!aj(a,d)){break c}o[e>>2]=d;fj(c,e);d=o[e>>2];o[e>>2]=0;if(d){Kc(d+12|0,o[d+16>>2]);Lc(d,o[d+4>>2]);jl(d)}b=b+1|0;if((f|0)!=(b|0)){continue}break}}d=aj(a,c);break a}Kc(d+12|0,o[d+16>>2]);Lc(d,o[d+4>>2]);jl(d)}d=0}R=e+16|0;return d}function ua(a,b){var c=0,d=0,e=0,f=0;c=R-32|0;R=c;o[c+24>>2]=0;o[c+16>>2]=0;o[c+20>>2]=0;d=rl(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){f=d+16&-16;e=yk(f);o[c+24>>2]=f|-2147483648;o[c+16>>2]=e;o[c+20>>2]=d;break b}m[c+27|0]=d;e=c+16|0;if(!d){break a}}ll(e,b,d)}m[d+e|0]=0;o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0;m[c+11|0]=4;m[c+4|0]=0;o[c>>2]=1701667182;d=o[a+4>>2];b=-1;c:{if(!d){break c}d=ej(d,c,c+16|0);b=-1;if(!d){break c}b=uj(a,o[d+24>>2])}if(m[c+11|0]<=-1){jl(o[c>>2])}if(m[c+27|0]<=-1){jl(o[c+16>>2])}R=c+32|0;return b}Ak();D()}function rg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{d=o[a+8>>2];c=o[a+4>>2];c:{if(d-c>>3>>>0>=b>>>0){while(1){o[c>>2]=0;o[c+4>>2]=0;c=o[a+4>>2]+8|0;o[a+4>>2]=c;b=b+ -1|0;if(b){continue}break c}}f=o[a>>2];h=c-f|0;g=h>>3;e=g+b|0;if(e>>>0>=536870912){break b}c=0;g=g<<3;d=d-f|0;i=d>>2;d=d>>3>>>0<268435455?i>>>0>>0?e:i:536870911;if(d){if(d>>>0>=536870912){break a}c=yk(d<<3)}ml(c+g|0,0,b<<3);b=(e<<3)+c|0;e=(d<<3)+c|0;if((h|0)>=1){ll(c,f,h)}o[a+8>>2]=e;o[a+4>>2]=b;o[a>>2]=c;if(!f){break c}jl(f)}return}Nk();D()}db(7946);D()}function re(a,b,c,d,e,f){var g=0,h=0,i=0;f=R-32|0;R=f;h=o[o[o[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((l[o[o[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}i=l[o[o[b>>2]+36>>2]](b)|0;g=l[o[o[b>>2]+44>>2]](b,d)|0;if(!(g?i:0)){o[a>>2]=0;break a}d=l[o[o[b>>2]+40>>2]](b,d)|0;if(d){b=o[b+44>>2];o[f+12>>2]=d;o[f+8>>2]=b;o[f+20>>2]=g;o[f+16>>2]=g+12;se(a,c,h,e,f+8|0);if(o[a>>2]){break a}o[a>>2]=0;break b}b=o[b+44>>2];o[f+12>>2]=i;o[f+8>>2]=b;o[f+20>>2]=g;o[f+16>>2]=g+12;te(a,c,h,e,f+8|0);if(o[a>>2]){break a}o[a>>2]=0}o[a>>2]=0}R=f+32|0}function Wf(a,b){var c=0,d=0,e=0;c=R-80|0;R=c;d=o[b+36>>2];o[c+72>>2]=o[b+32>>2];o[c+76>>2]=d;e=o[b+28>>2];d=c- -64|0;o[d>>2]=o[b+24>>2];o[d+4>>2]=e;d=o[b+20>>2];o[c+56>>2]=o[b+16>>2];o[c+60>>2]=d;d=o[b+12>>2];o[c+48>>2]=o[b+8>>2];o[c+52>>2]=d;d=o[b+4>>2];o[c+40>>2]=o[b>>2];o[c+44>>2]=d;gi(c+8|0,c+40|0,c+24|0);b=o[c+8>>2];a:{if(b){o[a>>2]=b;Bk(a+4|0,c+8|4);if(m[c+23|0]>-1){break a}jl(o[c+12>>2]);break a}if(m[c+23|0]<=-1){jl(o[c+12>>2])}b=p[c+31|0];o[a>>2]=0;o[a+4>>2]=0;o[a+16>>2]=b;o[a+8>>2]=0;o[a+12>>2]=0}R=c+80|0}function _k(a){var b=0,c=0,d=0,e=0;b=R+ -64|0;R=b;d=o[a>>2];c=o[d+ -4>>2];d=o[d+ -8>>2];o[b+20>>2]=0;o[b+16>>2]=12680;o[b+12>>2]=a;o[b+8>>2]=12728;ml(b+24|0,0,39);a=a+d|0;a:{if(Yk(c,12728,0)){o[b+56>>2]=1;l[o[o[c>>2]+20>>2]](c,b+8|0,a,a,1,0);e=o[b+32>>2]==1?a:0;break a}l[o[o[c>>2]+24>>2]](c,b+8|0,a,1,0);a=o[b+44>>2];if(a>>>0>1){break a}if(a-1){e=o[b+48>>2]==1?o[b+36>>2]==1?o[b+40>>2]==1?o[b+28>>2]:0:0:0;break a}if(o[b+32>>2]!=1){if(o[b+48>>2]|o[b+36>>2]!=1|o[b+40>>2]!=1){break a}}e=o[b+24>>2]}R=b- -64|0;return e}function zj(a,b){var c=0,d=0,e=0,f=0;a:{if((b|0)<0){break a}c=o[a+28>>2];e=o[a+24>>2];while(1){d=e;if((c|0)==(d|0)){break a}e=d+4|0;if(o[o[d>>2]+24>>2]!=(b|0)){continue}break}b:{if((c|0)!=(e|0)){while(1){b=o[e>>2];o[e>>2]=0;f=o[d>>2];o[d>>2]=b;if(f){Kc(f+12|0,o[f+16>>2]);Lc(f,o[f+4>>2]);jl(f)}d=d+4|0;e=e+4|0;if((c|0)!=(e|0)){continue}break}c=o[a+28>>2];if((c|0)==(d|0)){break b}}while(1){c=c+ -4|0;b=o[c>>2];o[c>>2]=0;if(b){Kc(b+12|0,o[b+16>>2]);Lc(b,o[b+4>>2]);jl(b)}if((d|0)!=(c|0)){continue}break}}o[a+28>>2]=d}}function zi(a,b){var c=0,d=0,e=0,f=0;d=R-16|0;R=d;Lk(d);e=cg(a,d+12|0,b);c=o[e>>2];if(!c){c=yk(40);Bk(c+16|0,b);o[c+36>>2]=0;o[c+28>>2]=0;o[c+32>>2]=0;o[c+8>>2]=o[d+12>>2];o[c>>2]=0;o[c+4>>2]=0;o[e>>2]=c;b=o[o[a>>2]>>2];f=c;a:{if(!b){break a}o[a>>2]=b;f=o[e>>2]}b=f;ag(o[a+4>>2],b);o[a+8>>2]=o[a+8>>2]+1}a=c+28|0;b:{if(m[c+39|0]>=0){m[a+11|0]=0;m[a|0]=0;break b}m[o[c+28>>2]]=0;o[c+32>>2]=0;if(m[c+39|0]>-1){break b}jl(o[c+28>>2]);o[c+36>>2]=0}b=o[d+4>>2];o[a>>2]=o[d>>2];o[a+4>>2]=b;o[a+8>>2]=o[d+8>>2];R=d+16|0}function Yd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=o[a+60>>2];a:{if(!c){break a}o[c+4>>2]=a+48;if(!l[o[o[c>>2]+12>>2]](c)){break a}b:{d=l[o[o[a>>2]+24>>2]](a)|0;if((d|0)<1){break b}c=0;while(1){c:{f=o[(l[o[o[a>>2]+28>>2]](a)|0)+4>>2];g=l[o[o[a>>2]+20>>2]](a,c)|0;e=o[a+60>>2];if(!l[o[o[e>>2]+8>>2]](e,o[o[f+8>>2]+(g<<2)>>2])){break c}c=c+1|0;if((d|0)!=(c|0)){continue}break b}break}return 0}if(!l[o[o[a>>2]+36>>2]](a,b)){break a}if(!l[o[o[a>>2]+40>>2]](a,b)){break a}h=l[o[o[a>>2]+44>>2]](a)|0}return h|0}function el(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(Yk(a,o[b+8>>2],e)){dl(b,c,d);return}a:{if(Yk(a,o[b>>2],e)){if(!(o[b+20>>2]!=(c|0)?o[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}o[b+32>>2]=1;return}o[b+32>>2]=d;b:{if(o[b+44>>2]==4){break b}n[b+52>>1]=0;a=o[a+8>>2];l[o[o[a>>2]+20>>2]](a,b,c,c,1,e);if(p[b+53|0]){o[b+44>>2]=3;if(!p[b+52|0]){break b}break a}o[b+44>>2]=4}o[b+20>>2]=c;o[b+40>>2]=o[b+40>>2]+1;if(o[b+36>>2]!=1|o[b+24>>2]!=2){break a}m[b+54|0]=1;return}a=o[a+8>>2];l[o[o[a>>2]+24>>2]](a,b,c,d,e)}}function Ng(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=o[a+216>>2];if((c|0)!=o[a+220>>2]){while(1){a:{c=o[u(e,144)+c>>2];if((c|0)<0){break a}f=o[a+4>>2];d=o[f+8>>2];if((c|0)>=o[f+12>>2]-d>>2){break a}c=o[d+(c<<2)>>2];if((l[o[o[c>>2]+24>>2]](c)|0)<1){break a}d=0;while(1){if((l[o[o[c>>2]+20>>2]](c,d)|0)!=(b|0)){d=d+1|0;if((d|0)<(l[o[o[c>>2]+24>>2]](c)|0)){continue}break a}break}a=o[a+216>>2]+u(e,144)|0;return(p[a+100|0]?a+4|0:0)|0}e=e+1|0;c=o[a+216>>2];if(e>>>0<(o[a+220>>2]-c|0)/144>>>0){continue}break}}return 0}function Mi(a,b,c){var d=0,e=0,f=0;a:{b:{if((b|c)<0|b>>>0>1431655765){break b}b=u(b,3);Ni(a,b,10520);Ni(a+12|0,b,10524);b=o[a+24>>2];c:{if(o[a+32>>2]-b>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break a}d=o[a+28>>2];e=c<<2;c=yk(e);e=c+e|0;d=d-b|0;f=d+c|0;if((d|0)>=1){ll(c,b,d)}o[a+32>>2]=e;o[a+28>>2]=f;o[a+24>>2]=c;if(!b){break c}jl(b)}o[a+80>>2]=0;o[a+84>>2]=0;c=a+76|0;b=o[c>>2];o[c>>2]=0;if(b){jl(b)}o[a+68>>2]=0;o[a+72>>2]=0;b=a- -64|0;a=o[b>>2];o[b>>2]=0;d=1;if(!a){break b}jl(a)}return d}db(10528);D()}function Yj(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;a:{if(f&64){c=f+ -64|0;b=c&31;if(32<=(c&63)>>>0){c=0;b=e>>>b|0}else{c=e>>>b|0;b=((1<>>b}d=0;e=0;break a}if(!f){break a}h=e;i=d;j=64-f|0;g=j&31;if(32<=(j&63)>>>0){h=i<>>32-g|h<>>0){g=0;b=c>>>b|0}else{g=c>>>b|0;b=((1<>>b}b=j|b;c=g|h;g=d;d=f&31;if(32<=(f&63)>>>0){h=0;d=e>>>d|0}else{h=e>>>d|0;d=((1<>>d}e=h}o[a>>2]=b;o[a+4>>2]=c;o[a+8>>2]=d;o[a+12>>2]=e}function la(a,b,c){var d=0,e=0,f=0,g=0;d=R-32|0;R=d;o[d+24>>2]=0;o[d+16>>2]=0;o[d+20>>2]=0;e=rl(b);if(e>>>0<4294967280){a:{b:{if(e>>>0>=11){g=e+16&-16;f=yk(g);o[d+24>>2]=g|-2147483648;o[d+16>>2]=f;o[d+20>>2]=e;break b}m[d+27|0]=e;f=d+16|0;if(!e){break a}}ll(f,b,e)}m[e+f|0]=0;o[d+8>>2]=0;o[d>>2]=0;o[d+4>>2]=0;kj(a,d+16|0,d);a=o[c>>2];if(a){o[c+4>>2]=a;jl(a);o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0}o[c>>2]=o[d>>2];o[c+4>>2]=o[d+4>>2];o[c+8>>2]=o[d+8>>2];if(m[d+27|0]<=-1){jl(o[d+16>>2])}R=d+32|0;return}Ak();D()}function fb(a,b){var c=0,d=0;c=R-32|0;R=c;a:{b:{if(o[a+8>>2]<<5>>>0>=b>>>0){break b}o[c+24>>2]=0;o[c+16>>2]=0;o[c+20>>2]=0;if((b|0)<=-1){break a}b=(b+ -1>>>5|0)+1|0;d=yk(b<<2);o[c+24>>2]=b;o[c+20>>2]=0;o[c+16>>2]=d;b=o[a>>2];o[c+12>>2]=0;o[c+8>>2]=b;d=o[a+4>>2];o[c+4>>2]=d&31;o[c>>2]=b+(d>>>3&536870908);gb(c+16|0,c+8|0,c);b=o[a>>2];o[a>>2]=o[c+16>>2];o[c+16>>2]=b;d=o[a+4>>2];o[a+4>>2]=o[c+20>>2];o[c+20>>2]=d;d=o[a+8>>2];o[a+8>>2]=o[c+24>>2];o[c+24>>2]=d;if(!b){break b}jl(b)}R=c+32|0;return}Nk();D()}function Og(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=o[a+216>>2];if((c|0)!=o[a+220>>2]){while(1){a:{c=o[u(e,144)+c>>2];if((c|0)<0){break a}f=o[a+4>>2];d=o[f+8>>2];if((c|0)>=o[f+12>>2]-d>>2){break a}c=o[d+(c<<2)>>2];if((l[o[o[c>>2]+24>>2]](c)|0)<1){break a}d=0;while(1){if((l[o[o[c>>2]+20>>2]](c,d)|0)!=(b|0)){d=d+1|0;if((d|0)<(l[o[o[c>>2]+24>>2]](c)|0)){continue}break a}break}return(o[a+216>>2]+u(e,144)|0)+104|0}e=e+1|0;c=o[a+216>>2];if(e>>>0<(o[a+220>>2]-c|0)/144>>>0){continue}break}}return a+184|0}function Sd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;d=o[b>>2];e=o[b+4>>2];b=o[o[a+8>>2]+40>>2];f=b;g=yk((b|0)>-1?b:-1);d=e-d|0;if((d|0)>=1){d=d>>2;m=(d|0)>1?d:1;while(1){i=o[c+12>>2];d=n+o[c+20>>2]|0;j=o[c+16>>2];h=b+j|0;if(h>>>0>>0){d=d+1|0}e=d;if((i|0)<(d|0)?1:(i|0)<=(d|0)?r[c+8>>2]>=h>>>0?0:1:0){jl(g);return 0}d=ll(g,j+o[c>>2]|0,f);o[c+16>>2]=h;o[c+20>>2]=e;ll(o[o[o[a+8>>2]+64>>2]>>2]+k|0,d,f);k=f+k|0;l=l+1|0;if((m|0)!=(l|0)){continue}break}}jl(g);return 1}function Xj(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;a:{if(f&64){d=b;e=f+ -64|0;b=e&31;if(32<=(e&63)>>>0){e=d<>>32-b|c<>>0){h=g<>>32-d|e<>>0){f=0;d=d>>>e|0}else{f=d>>>e|0;d=((1<>>e}d=j|d;e=f|h;f=b;b=i&31;if(32<=(i&63)>>>0){h=f<>>32-b|c<>2]=b;o[a+4>>2]=c;o[a+8>>2]=d;o[a+12>>2]=e}function nj(a,b,c){var d=0,e=0,f=0,g=0;d=R-48|0;R=d;f=Ai(a,b);if((f|0)!=(a+4|0)){hj(a,f)}f=0;o[d+8>>2]=0;o[d>>2]=0;o[d+4>>2]=0;g=o[c>>2];e=o[c+4>>2]-g|0;if(e){Ka(d,e);g=o[c>>2];c=o[d>>2]}else{c=0}ll(c,g,e);g=Bk(d+16|0,b);o[d+36>>2]=0;o[d+28>>2]=0;o[d+32>>2]=0;b=o[d+4>>2];c=o[d>>2];e=b-c|0;if(e){Ka(d+28|0,e);c=o[d>>2];f=o[d+28>>2];b=o[d+4>>2]}ll(f,c,b-c|0);ij(d+40|0,a,g,d+16|0);a=o[d+28>>2];if(a){o[d+32>>2]=a;jl(a)}if(m[d+27|0]<=-1){jl(o[d+16>>2])}a=o[d>>2];if(a){o[d+4>>2]=a;jl(a)}R=d+48|0}function Qd(a){var b=0,c=0,d=0,e=0,f=0;b=o[a+8>>2];a:{if(p[b+84|0]){break a}c=o[a+16>>2];if(!c|!p[c+84|0]){break a}d=o[b+72>>2];e=o[b+68>>2];m[c+84|0]=0;d=d-e>>2;f=o[c+68>>2];e=o[c+72>>2]-f>>2;b:{if(d>>>0>e>>>0){pd(c+68|0,d-e|0,1680);b=o[a+8>>2];break b}if(d>>>0>=e>>>0){break b}o[c+72>>2]=f+(d<<2)}if(p[b+84|0]){break a}c=o[b+68>>2];b=o[b+72>>2]-c|0;if(!b){break a}d=b>>2;e=o[o[a+16>>2]+68>>2];b=0;while(1){f=b<<2;o[f+e>>2]=o[c+f>>2];b=b+1|0;if(b>>>0>>0){continue}break}}return o[a+16>>2]}function Fa(a,b,c){var d=0,e=0,f=0,g=0;d=R-32|0;R=d;e=m[a+24|0];f=o[259];o[d+24>>2]=o[258];o[d+28>>2]=f;f=o[257];o[d+16>>2]=o[256];o[d+20>>2]=f;a:{if(Ga(a,b,e,d+16|0)){a=0;o[d+8>>2]=0;o[d>>2]=0;o[d+4>>2]=0;b=0;if(e){if((e|0)<=-1){break a}b=e<<2;g=yk(b);o[d>>2]=g;a=(e<<2)+g|0;o[d+8>>2]=a;ll(g,d+16|0,b);o[d+4>>2]=a;b=a}e=c;f=o[c>>2];if(f){o[c+4>>2]=f;jl(f);o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0;b=o[d+4>>2];g=o[d>>2];a=o[d+8>>2]}o[e+8>>2]=a;o[c+4>>2]=b;o[c>>2]=g;g=1}R=d+32|0;return g}Nk();D()}function $g(a){var b=0,c=0,d=0,e=0;c=1;d=o[a+140>>2];a:{if((d|0)<1){break a}b=d<<4;c=yk((d|0)!=(d&268435455)?-1:b|4);o[c>>2]=d;c=c+4|0;d=c+b|0;b=c;while(1){b=Rf(b)+16|0;if((d|0)!=(b|0)){continue}break}e=o[a+136>>2];o[a+136>>2]=c;if(e){d=e+ -4|0;c=o[d>>2];if(c){b=e+(c<<4)|0;while(1){b=b+ -16|0;if((e|0)!=(b|0)){continue}break}}jl(d)}c=1;if(o[a+140>>2]<1){break a}c=0;b=0;while(1){if(!Sf(o[a+136>>2]+(b<<4)|0,a)){break a}b=b+1|0;if((b|0)>2]){continue}break}c=1}return c}function Qi(a){a=a|0;var b=0,c=0,d=0,e=0;o[a>>2]=11e3;b=o[a+68>>2];if(b){o[a+72>>2]=b;jl(b)}b=o[a+56>>2];if(b){o[a+60>>2]=b;jl(b)}b=o[a+44>>2];if(b){o[a+48>>2]=b;jl(b)}b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}b=o[a+20>>2];if(b){o[a+24>>2]=b;jl(b)}d=o[a+8>>2];if(d){b=d;c=o[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=o[c>>2];o[c>>2]=0;if(b){Kb(b)}if((c|0)!=(d|0)){continue}break}e=o[a+8>>2]}b=e;o[a+12>>2]=d;jl(b)}b=o[a+4>>2];o[a+4>>2]=0;if(b){ii(b)}return a|0}function Fi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=o[a+8>>2];d=o[a+4>>2];if(e-d>>2>>>0>=b>>>0){c=a;a=b<<2;j=c,k=ml(d,0,a)+a|0,o[j+4>>2]=k;return}f=o[a>>2];h=d-f|0;g=h>>2;c=g+b|0;a:{if(c>>>0<1073741824){d=0;g=g<<2;e=e-f|0;i=e>>1;c=e>>2>>>0<536870911?i>>>0>>0?c:i:1073741823;if(c){if(c>>>0>=1073741824){break a}d=yk(c<<2)}b=b<<2;b=ml(d+g|0,0,b)+b|0;c=(c<<2)+d|0;if((h|0)>=1){ll(d,f,h)}o[a+8>>2]=c;o[a+4>>2]=b;o[a>>2]=d;if(f){jl(f)}return}Nk();D()}db(10528);D()}function ei(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=o[a+8>>2];d=o[a+4>>2];if(e-d>>2>>>0>=b>>>0){c=a;a=b<<2;j=c,k=ml(d,0,a)+a|0,o[j+4>>2]=k;return}f=o[a>>2];h=d-f|0;g=h>>2;c=g+b|0;a:{if(c>>>0<1073741824){d=0;g=g<<2;e=e-f|0;i=e>>1;c=e>>2>>>0<536870911?i>>>0>>0?c:i:1073741823;if(c){if(c>>>0>=1073741824){break a}d=yk(c<<2)}b=b<<2;b=ml(d+g|0,0,b)+b|0;c=(c<<2)+d|0;if((h|0)>=1){ll(d,f,h)}o[a+8>>2]=c;o[a+4>>2]=b;o[a>>2]=d;if(f){jl(f)}return}Nk();D()}db(9976);D()}function Ia(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=o[a+8>>2];d=o[a+4>>2];if(e-d>>2>>>0>=b>>>0){c=a;a=b<<2;j=c,k=ml(d,0,a)+a|0,o[j+4>>2]=k;return}f=o[a>>2];h=d-f|0;g=h>>2;c=g+b|0;a:{if(c>>>0<1073741824){d=0;g=g<<2;e=e-f|0;i=e>>1;c=e>>2>>>0<536870911?i>>>0>>0?c:i:1073741823;if(c){if(c>>>0>=1073741824){break a}d=yk(c<<2)}b=b<<2;b=ml(d+g|0,0,b)+b|0;c=(c<<2)+d|0;if((h|0)>=1){ll(d,f,h)}o[a+8>>2]=c;o[a+4>>2]=b;o[a>>2]=d;if(f){jl(f)}return}Nk();D()}db(1040);D()}function Ba(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=o[a>>2];a=o[e+4>>2];d=o[e+8>>2];if(a>>>0>>0){o[a>>2]=o[b>>2];o[e+4>>2]=a+4;return}f=o[e>>2];g=a-f|0;a=g>>2;c=a+1|0;a:{if(c>>>0<1073741824){h=a<<2;d=d-f|0;a=d>>1;c=d>>2>>>0<536870911?a>>>0>>0?c:a:1073741823;a=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}a=yk(c<<2)}d=h+a|0;o[d>>2]=o[b>>2];b=a+(c<<2)|0;c=d+4|0;if((g|0)>=1){ll(a,f,g)}o[e+8>>2]=b;o[e+4>>2]=c;o[e>>2]=a;if(f){jl(f)}return}Nk();D()}db(1040);D()}function ja(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a=o[a+4>>2];if(a){c=p[b+11|0];d=c<<24>>24<0;g=d?o[b>>2]:b;b=d?o[b+4>>2]:c;while(1){c=p[a+27|0];d=c<<24>>24<0;c=d?o[a+20>>2]:c;h=c>>>0>>0;a:{b:{f=h?c:b;c:{if(f){e=a+16|0;d=d?o[e>>2]:e;e=Vj(g,d,f);d:{if(!e){if(b>>>0>=c>>>0){break d}break a}if((e|0)<=-1){break a}}c=Vj(d,g,f);if(!c){break c}if((c|0)<=-1){break b}return 1}if(b>>>0>>0){break a}}if(h){break b}return 1}a=a+4|0}a=o[a>>2];if(a){continue}break}}return 0}function Li(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=o[a+4>>2];e=o[a+8>>2];if((c|0)!=(e|0)){o[c>>2]=o[b>>2];o[a+4>>2]=c+4;return}f=o[a>>2];g=c-f|0;c=g>>2;d=c+1|0;a:{if(d>>>0<1073741824){h=c<<2;e=e-f|0;c=e>>1;d=e>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=yk(d<<2)}e=h+c|0;o[e>>2]=o[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){ll(c,f,g)}o[a+8>>2]=b;o[a+4>>2]=d;o[a>>2]=c;if(f){jl(f)}return}Nk();D()}db(10528);D()}function eh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=o[a+4>>2];e=o[a+8>>2];if((c|0)!=(e|0)){o[c>>2]=o[b>>2];o[a+4>>2]=c+4;return}f=o[a>>2];g=c-f|0;c=g>>2;d=c+1|0;a:{if(d>>>0<1073741824){h=c<<2;e=e-f|0;c=e>>1;d=e>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=yk(d<<2)}e=h+c|0;o[e>>2]=o[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){ll(c,f,g)}o[a+8>>2]=b;o[a+4>>2]=d;o[a>>2]=c;if(f){jl(f)}return}Nk();D()}db(8832);D()}function Fh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=o[a+4>>2];a=o[e+4>>2];d=o[e+8>>2];if((a|0)!=(d|0)){o[a>>2]=b;o[e+4>>2]=a+4;return}f=o[e>>2];g=a-f|0;a=g>>2;c=a+1|0;a:{if(c>>>0<1073741824){h=a<<2;d=d-f|0;a=d>>1;c=d>>2>>>0<536870911?a>>>0>>0?c:a:1073741823;a=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}a=yk(c<<2)}d=h+a|0;o[d>>2]=b;b=a+(c<<2)|0;c=d+4|0;if((g|0)>=1){ll(a,f,g)}o[e+8>>2]=b;o[e+4>>2]=c;o[e>>2]=a;if(f){jl(f)}return}Nk();D()}db(8832);D()}function oj(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=R-16|0;R=e;f=a+12|0;a:{if((Ai(f,b)|0)!=(a+16|0)){break a}g=cg(f,e+12|0,b);d=o[g>>2];if(!d){d=yk(32);Bk(d+16|0,b);o[d+28>>2]=0;o[d+8>>2]=o[e+12>>2];o[d>>2]=0;o[d+4>>2]=0;o[g>>2]=d;b=o[o[f>>2]>>2];h=d;b:{if(!b){break b}o[f>>2]=b;h=o[g>>2]}b=h;ag(o[a+16>>2],b);a=a+20|0;o[a>>2]=o[a>>2]+1}b=o[c>>2];o[c>>2]=0;c=d+28|0;a=o[c>>2];o[c>>2]=b;if(!a){break a}Kc(a+12|0,o[a+16>>2]);Lc(a,o[a+4>>2]);jl(a)}R=e+16|0}function be(a){a=a|0;var b=0,c=0,d=0,e=0;o[a>>2]=1692;b=o[a+60>>2];o[a+60>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}b=o[a+48>>2];if(b){o[a+52>>2]=b;jl(b)}d=o[a+36>>2];if(d){b=d;c=o[a+40>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=o[c>>2];o[c>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=o[a+36>>2]}b=e;o[a+40>>2]=d;jl(b)}o[a>>2]=1384;b=o[a+16>>2];if(b){o[a+20>>2]=b;jl(b)}b=o[a+4>>2];if(b){o[a+8>>2]=b;jl(b)}return a|0}function Cj(a,b){a:{if(a){if(b>>>0<=127){break a}b:{if(!o[o[3298]>>2]){if((b&-128)==57216){break a}break b}if(b>>>0<=2047){m[a+1|0]=b&63|128;m[a|0]=b>>>6|192;return 2}if(!((b&-8192)!=57344?b>>>0>=55296:0)){m[a+2|0]=b&63|128;m[a|0]=b>>>12|224;m[a+1|0]=b>>>6&63|128;return 3}if(b+ -65536>>>0<=1048575){m[a+3|0]=b&63|128;m[a|0]=b>>>18|240;m[a+2|0]=b>>>6&63|128;m[a+1|0]=b>>>12&63|128;return 4}}o[3314]=25;a=-1}else{a=1}return a}m[a|0]=b;return 1}function ce(a){a=a|0;var b=0,c=0,d=0,e=0;o[a>>2]=1692;b=o[a+60>>2];o[a+60>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}b=o[a+48>>2];if(b){o[a+52>>2]=b;jl(b)}d=o[a+36>>2];if(d){b=d;c=o[a+40>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=o[c>>2];o[c>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=o[a+36>>2]}b=e;o[a+40>>2]=d;jl(b)}o[a>>2]=1384;b=o[a+16>>2];if(b){o[a+20>>2]=b;jl(b)}b=o[a+4>>2];if(b){o[a+8>>2]=b;jl(b)}jl(a)}function Pa(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=o[a+8>>2];d=o[a+4>>2];if(e-d>>1>>>0>=b>>>0){c=a;a=b<<1;i=c,j=ml(d,0,a)+a|0,o[i+4>>2]=j;return}f=o[a>>2];g=d-f|0;h=g>>1;c=h+b|0;a:{if((c|0)>-1){d=0;e=e-f|0;c=e>>1>>>0<1073741823?e>>>0>>0?c:e:2147483647;if(c){if((c|0)<=-1){break a}d=yk(c<<1)}b=b<<1;b=ml((h<<1)+d|0,0,b)+b|0;c=(c<<1)+d|0;if((g|0)>=1){ll(d,f,g)}o[a+8>>2]=c;o[a+4>>2]=b;o[a>>2]=d;if(f){jl(f)}return}Nk();D()}db(1040);D()}function rh(a){var b=0,c=0,d=0,e=0;b=o[a+196>>2];if(b){o[a+200>>2]=b;jl(b)}b=o[a+184>>2];if(b){c=o[a+188>>2];d=b;a:{if((b|0)==(c|0)){break a}while(1){d=c+ -12|0;e=o[d>>2];if(e){o[c+ -8>>2]=e;jl(e)}c=d;if((c|0)!=(b|0)){continue}break}d=o[a+184>>2]}o[a+188>>2]=b;jl(d)}b=o[a+156>>2];if(b){o[a+160>>2]=b;jl(b)}b=o[a+136>>2];o[a+136>>2]=0;if(b){c=b+ -4|0;a=o[c>>2];if(a){a=b+(a<<4)|0;while(1){a=a+ -16|0;if((b|0)!=(a|0)){continue}break}}jl(c)}}function Di(a,b){var c=0,d=0,e=0;d=R-16|0;R=d;e=yk(88);c=e;o[c>>2]=0;o[c+4>>2]=0;o[c+64>>2]=0;o[c+68>>2]=0;o[c+56>>2]=0;o[c+48>>2]=0;o[c+52>>2]=0;o[c+40>>2]=0;o[c+44>>2]=0;o[c+32>>2]=0;o[c+36>>2]=0;o[c+24>>2]=0;o[c+28>>2]=0;o[c+16>>2]=0;o[c+20>>2]=0;o[c+8>>2]=0;o[c+12>>2]=0;o[c+72>>2]=0;o[c+76>>2]=0;o[c+80>>2]=0;o[c+84>>2]=0;o[c+60>>2]=c;o[d+8>>2]=c;a:{if(Ei(c,b)){o[a>>2]=e;o[d+8>>2]=0;break a}o[a>>2]=0;o[d+8>>2]=0;za(d+8|0,e)}R=d+16|0}function Ka(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{f=o[a+8>>2];d=o[a+4>>2];b:{if(f-d>>>0>=b>>>0){while(1){m[d|0]=0;d=o[a+4>>2]+1|0;o[a+4>>2]=d;b=b+ -1|0;if(b){continue}break b}}e=o[a>>2];h=d-e|0;c=h+b|0;if((c|0)<=-1){break a}f=f-e|0;i=f<<1;c=f>>>0<1073741823?i>>>0>>0?c:i:2147483647;if(c){g=yk(c)}ml(g+h|0,0,b);c=c+g|0;b=((b+d|0)-e|0)+g|0;if((h|0)>=1){ll(g,e,h)}o[a+8>>2]=c;o[a+4>>2]=b;o[a>>2]=g;if(!e){break b}jl(e)}return}Nk();D()}function vi(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{if(a>>>0>10){break a}f=o[c+16>>2];d=o[c+12>>2];e=o[c+20>>2];g=e;if((d|0)<(g|0)?1:(d|0)<=(g|0)?r[c+8>>2]>f>>>0?0:1:0){break a}h=m[f+o[c>>2]|0];d=f+1|0;if(d>>>0<1){e=e+1|0}o[c+16>>2]=d;o[c+20>>2]=e;g=b;f=b;d=h;b:{if((d|0)<=-1){if(!vi(a+1|0,b,c)){break a}a=b;c=o[b+4>>2];b=o[b>>2];e=c<<7|b>>>25;b=b<<7;o[a>>2]=b;o[a+4>>2]=e;a=d&127|b;break b}e=0;a=d&255}o[f>>2]=a;o[g+4>>2]=e;i=1}return i}function sg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{if(a>>>0>10){break a}f=o[c+16>>2];d=o[c+12>>2];e=o[c+20>>2];g=e;if((d|0)<(g|0)?1:(d|0)<=(g|0)?r[c+8>>2]>f>>>0?0:1:0){break a}h=m[f+o[c>>2]|0];d=f+1|0;if(d>>>0<1){e=e+1|0}o[c+16>>2]=d;o[c+20>>2]=e;g=b;f=b;d=h;b:{if((d|0)<=-1){if(!sg(a+1|0,b,c)){break a}a=b;c=o[b+4>>2];b=o[b>>2];e=c<<7|b>>>25;b=b<<7;o[a>>2]=b;o[a+4>>2]=e;a=d&127|b;break b}e=0;a=d&255}o[f>>2]=a;o[g+4>>2]=e;i=1}return i}function sd(a,b){var c=0,d=0,e=0;d=o[a>>2];a:{if(!d){break a}c=o[b>>2];if(!c){break a}e=d;d=o[c>>2];pi(e,d,o[c+4>>2]-d|0,0);m[a+24|0]=p[b+24|0];o[a+28>>2]=o[b+28>>2];m[a+32|0]=p[b+32|0];c=o[b+44>>2];o[a+40>>2]=o[b+40>>2];o[a+44>>2]=c;c=o[b+52>>2];o[a+48>>2]=o[b+48>>2];o[a+52>>2]=c;o[a+56>>2]=o[b+56>>2];c=o[b+12>>2];o[a+8>>2]=o[b+8>>2];o[a+12>>2]=c;c=o[b+20>>2];o[a+16>>2]=o[b+16>>2];o[a+20>>2]=c;o[a+60>>2]=o[b+60>>2];e=1}return e}function Uj(a,b){var c=0;c=(b|0)!=0;a:{b:{c:{d:{if(!b|!(a&3)){break d}while(1){if(!p[a|0]){break c}a=a+1|0;b=b+ -1|0;c=(b|0)!=0;if(!b){break d}if(a&3){continue}break}}if(!c){break b}}if(!p[a|0]){break a}e:{if(b>>>0>=4){while(1){c=o[a>>2];if((c^-1)&c+ -16843009&-2139062144){break e}a=a+4|0;b=b+ -4|0;if(b>>>0>3){continue}break}}if(!b){break b}}while(1){if(!p[a|0]){break a}a=a+1|0;b=b+ -1|0;if(b){continue}break}}return 0}return a}function Ki(a,b,c){var d=0,e=0,f=0;o[a+8>>2]=0;o[a>>2]=0;o[a+4>>2]=0;a:{b:{if(!b){break b}if((b|0)<=-1){break a}e=b+ -1>>>5|0;f=e+1|0;d=yk(f<<2);o[a+8>>2]=f;o[a>>2]=d;f=p[c|0];o[a+4>>2]=b;o[(b>>>0<33?d:d+(e<<2)|0)>>2]=0;c=b>>>5|0;e=c<<2;if(f){d=ml(d,255,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;o[c>>2]=o[c>>2]|-1>>>32-b;return a}d=ml(d,0,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;o[c>>2]=o[c>>2]&(-1>>>32-b^-1)}return a}Nk();D()}function Wh(a,b){var c=0,d=0,e=v(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=_j(b)}d=o[a+4>>2];if(c>>>0>d>>>0){Xh(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=v(B(v(v(r[a+12>>2])/s[a+16>>2])));c:{if(e=v(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Rl(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-x(b+ -1|0);break d}b=_j(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}Xh(a,b)}}function sf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=R-16|0;R=d;a:{b:{if(p[o[a+4>>2]+36|0]<=1){b=o[a+24>>2];break b}g=o[c+16>>2];e=o[c+12>>2];f=o[c+20>>2];b=f;h=0;if((e|0)<(b|0)?1:(e|0)<=(b|0)?r[c+8>>2]>g>>>0?0:1:0){break a}b=p[g+o[c>>2]|0];e=g+1|0;if(e>>>0<1){f=f+1|0}o[c+16>>2]=e;o[c+20>>2]=f;o[a+24>>2]=b}o[d+12>>2]=-1;o[d+8>>2]=1116;o[(d+8|0)+4>>2]=b;h=od(d+8|0,o[a+16>>2])}a=h;R=d+16|0;return a|0}function ne(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;c=m[o[a+8>>2]+24|0];e=c+c|0;g=yk(e>>>0>>0?-1:e);d=o[a+16>>2];e=0;a:{if(!o[d+80>>2]){break a}e=o[o[d>>2]>>2]+o[d+48>>2]|0}if(b){h=c<<1;while(1){d=i;f=0;if((c|0)>0){while(1){n[(f<<1)+g>>1]=o[(d<<2)+e>>2];d=d+1|0;f=f+1|0;if((f|0)!=(c|0)){continue}break}i=c+i|0}ll(o[o[o[a+8>>2]+64>>2]>>2]+j|0,g,h);j=h+j|0;k=k+1|0;if((k|0)!=(b|0)){continue}break}}jl(g)}function ma(a,b){var c=0,d=0,e=0,f=0,g=0;c=R-32|0;R=c;o[c+24>>2]=0;o[c+28>>2]=0;o[c+16>>2]=0;o[c+8>>2]=0;o[c+12>>2]=0;d=rl(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=yk(e);o[c+16>>2]=e|-2147483648;o[c+8>>2]=f;o[c+12>>2]=d;e=c+8|0;break b}m[c+19|0]=d;e=c+8|0;f=e;if(!d){break a}}ll(f,b,d)}m[d+f|0]=0;lj(a,c+8|0,c+24|0);g=t[c+24>>3];if(m[e+11|0]<=-1){jl(o[c+8>>2])}R=c+32|0;return g}Ak();D()}function na(a,b,c){var d=0,e=0,f=0,g=0;d=R-16|0;R=d;o[d+8>>2]=0;o[d>>2]=0;o[d+4>>2]=0;e=rl(c);if(e>>>0<4294967280){a:{b:{if(e>>>0>=11){g=e+16&-16;f=yk(g);o[d+8>>2]=g|-2147483648;o[d>>2]=f;o[d+4>>2]=e;break b}m[d+11|0]=e;f=d;if(!e){break a}}ll(f,c,e)}m[e+f|0]=0;a=a+16|0;c=0;c:{if(!mj(b,d,a)){break c}c=o[a>>2];if(m[a+11|0]<=-1){break c}c=a}if(m[d+11|0]<=-1){jl(o[d>>2])}R=d+16|0;return c}Ak();D()}function di(a){a=a|0;var b=0,c=0,d=0,e=0;a:{b=o[a+8>>2];b:{if((b|0)<0){break b}c=o[a+4>>2];e=o[c>>2];d=o[c+4>>2]-e>>2;c:{if(b>>>0>d>>>0){ei(c,b-d|0);b=o[a+8>>2];break c}if(b>>>0>=d>>>0){break c}o[c+4>>2]=e+(b<<2)}e=1;if((b|0)<1){break b}a=o[a+4>>2];c=o[a>>2];d=o[a+4>>2]-c>>2;a=0;while(1){if((a|0)==(d|0)){break a}o[c+(a<<2)>>2]=a;a=a+1|0;if((a|0)<(b|0)){continue}break}}return e|0}Ok();D()}function ch(a,b){var c=0,d=0,e=0,f=0;d=o[a+12>>2];c=o[a+16>>2]-d>>2;a:{if(c>>>0>>0){Ia(a+12|0,b-c|0);break a}if(c>>>0<=b>>>0){break a}o[a+16>>2]=d+(b<<2)}b:{c=o[a>>2];c:{if(o[a+8>>2]-c>>2>>>0>=b>>>0){break c}if(b>>>0>=1073741824){break b}d=o[a+4>>2];e=b<<2;b=yk(e);e=b+e|0;d=d-c|0;f=d+b|0;if((d|0)>=1){ll(b,c,d)}o[a+8>>2]=e;o[a+4>>2]=f;o[a>>2]=b;if(!c){break c}jl(c)}return}db(8832);D()}function xh(a,b){var c=0,d=0,e=0;a:{if((a|0)!=(b|0)){e=a;c=o[b+4>>2];d=0;b:{if(!c){break b}c:{if(c>>>0<=o[a+8>>2]<<5>>>0){d=o[a>>2];break c}d=o[a>>2];if(d){jl(d);o[a+8>>2]=0;o[a>>2]=0;o[a+4>>2]=0;c=o[b+4>>2]}if((c|0)<=-1){break a}c=(c+ -1>>>5|0)+1|0;d=yk(c<<2);o[a+8>>2]=c;o[a+4>>2]=0;o[a>>2]=d;c=o[b+4>>2]}nl(d,o[b>>2],(c+ -1>>>3&536870908)+4|0);d=o[b+4>>2]}o[e+4>>2]=d}return}Nk();D()}function kj(a,b,c){var d=0,e=0,f=0;a:{b=Ai(a,b);b:{if((b|0)==(a+4|0)){break b}a=o[b+28>>2];d=o[b+32>>2];if((a|0)==(d|0)){break b}a=d-a|0;if(a&3){break b}d=a>>>2|0;e=o[c+4>>2];a=o[c>>2];f=e-a>>2;c:{if(d>>>0>f>>>0){Ia(c,d-f|0);a=o[c>>2];e=o[c+4>>2];break c}if(d>>>0>=f>>>0){break c}e=(d<<2)+a|0;o[c+4>>2]=e}if((a|0)==(e|0)){break a}c=a;a=o[b+28>>2];ll(c,a,o[b+32>>2]-a|0)}return}Ok();D()}function Tg(a,b){var c=0;c=o[b+8>>2];o[a+12>>2]=o[b+4>>2];o[a+16>>2]=c;o[a+28>>2]=o[b+20>>2];c=o[b+16>>2];o[a+20>>2]=o[b+12>>2];o[a+24>>2]=c;xh(a+32|0,b+24|0);xh(a+44|0,b+36|0);if((a+8|0)==(b|0)){o[a+92>>2]=o[b+84>>2];return}yd(a+56|0,o[b+48>>2],o[b+52>>2]);yd(a+68|0,o[b+60>>2],o[b- -64>>2]);yd(a+80|0,o[b+72>>2],o[b+76>>2]);o[a+92>>2]=o[b+84>>2];kd(a+96|0,o[b+88>>2],o[b+92>>2])}function hj(a,b){var c=0,d=0,e=0;c=o[b+4>>2];a:{if(!c){d=o[b+8>>2];if(o[d>>2]==(b|0)){break a}e=b+8|0;while(1){c=o[e>>2];e=c+8|0;d=o[c+8>>2];if((c|0)!=o[d>>2]){continue}break}break a}while(1){d=c;c=o[c>>2];if(c){continue}break}}if(o[a>>2]==(b|0)){o[a>>2]=d}o[a+8>>2]=o[a+8>>2]+ -1;pj(o[a+4>>2],b);a=o[b+28>>2];if(a){o[b+32>>2]=a;jl(a)}if(m[b+27|0]<=-1){jl(o[b+16>>2])}jl(b)}function Gg(a){a=a|0;var b=0,c=0,d=0,e=0;o[a>>2]=8120;b=o[a+48>>2];o[a+48>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}o[a>>2]=10116;b=o[a+20>>2];if(b){o[a+24>>2]=b;jl(b)}d=o[a+8>>2];if(d){b=d;c=o[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=o[c>>2];o[c>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=o[a+8>>2]}b=e;o[a+12>>2]=d;jl(b)}return a|0}function Hg(a){a=a|0;var b=0,c=0,d=0,e=0;o[a>>2]=8120;b=o[a+48>>2];o[a+48>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}o[a>>2]=10116;b=o[a+20>>2];if(b){o[a+24>>2]=b;jl(b)}d=o[a+8>>2];if(d){b=d;c=o[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=o[c>>2];o[c>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=o[a+8>>2]}b=e;o[a+12>>2]=d;jl(b)}jl(a)}function Lf(a,b,c){a=a|0;b=b|0;c=c|0;b=R-32|0;R=b;a:{if(p[o[a+4>>2]+36|0]>=2){c=0;if(!l[o[o[a>>2]+52>>2]](a)){break a}}o[b+24>>2]=0;o[b+28>>2]=0;o[b+16>>2]=0;o[b+20>>2]=0;o[b+12>>2]=-1;o[b+8>>2]=1232;jd(b+8|0,o[a+24>>2],o[a+28>>2],m[o[a+8>>2]+24|0],s[a+32>>2]);c=od(b+8|0,o[a+16>>2]);o[b+8>>2]=1232;a=o[b+16>>2];if(!a){break a}o[b+20>>2]=a;jl(a)}R=b+32|0;return c|0}function ka(a,b){var c=0,d=0,e=0,f=0;c=R-16|0;R=c;o[c+12>>2]=0;o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0;d=rl(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=yk(e);o[c+8>>2]=e|-2147483648;o[c>>2]=f;o[c+4>>2]=d;e=c;break b}m[c+11|0]=d;e=c;f=c;if(!d){break a}}ll(f,b,d)}m[d+f|0]=0;jj(a,c,c+12|0);a=o[c+12>>2];if(m[e+11|0]<=-1){jl(o[c>>2])}R=c+16|0;return a}Ak();D()}function Fk(a,b,c,d,e,f,g){var h=0,i=0,j=0;h=R-16|0;R=h;if((b^-1)+ -17>>>0>=c>>>0){i=nk(a);a:{if(2147483623>b>>>0){o[h+8>>2]=b<<1;o[h+12>>2]=b+c;c=sk(o[fk(h+12|0,h+8|0)>>2]);break a}c=-18}j=c+1|0;c=tk(j);if(f){ek(c,g,f)}d=d-e|0;g=d;if(d){ek(c+f|0,e+i|0,g)}if((b|0)!=10){jl(i)}uk(a,c);vk(a,j);b=a;a=d+f|0;qk(b,a);m[h+7|0]=0;pk(a+c|0,h+7|0);R=h+16|0;return}Ak();D()}function le(a,b,c){var d=0,e=0,f=0,g=0;d=R-80|0;R=d;e=qd(d+16|0);f=o[o[a+8>>2]+56>>2];g=c<<24>>24;c=u(xi(5),c);rd(e,f,g,5,0,c,c>>31);c=yk(96);e=vd(c,e);m[c+84|0]=1;o[c+72>>2]=o[c+68>>2];wd(e,b);o[d>>2]=0;o[d+8>>2]=0;b=o[a+16>>2];o[a+16>>2]=c;a:{if(!b){o[d>>2]=0;break a}Kb(b);a=o[d>>2];o[d>>2]=0;if(!a){break a}Kb(a)}a=o[d+8>>2];o[d+8>>2]=0;if(a){Kb(a)}R=d+80|0}function ql(a,b,c){var d=0,e=0,f=0;a:{d=o[c+16>>2];if(!d){if(ol(c)){break a}d=o[c+16>>2]}f=o[c+20>>2];if(d-f>>>0>>0){l[o[c+36>>2]](c,a,b)|0;return}b:{if(m[c+75|0]<0){break b}d=b;while(1){e=d;if(!e){break b}d=e+ -1|0;if(p[d+a|0]!=10){continue}break}if(l[o[c+36>>2]](c,a,e)>>>0>>0){break a}b=b-e|0;a=a+e|0;f=o[c+20>>2]}ll(f,a,b);o[c+20>>2]=o[c+20>>2]+b}}function Tj(a){var b=0,c=0,d=0,e=0,f=0,g=0;while(1){b=a;a=b+1|0;c=m[b|0];if((c|0)==32|c+ -9>>>0<5){continue}break}c=m[b|0];e=c+ -43|0;a:{if(e>>>0>2){break a}b:{switch(e-1|0){case 1:f=1;break;case 0:break a;default:break b}}c=m[a|0];b=a;g=f}if(Bj(c)){while(1){d=(u(d,10)-m[b|0]|0)+48|0;a=m[b+1|0];b=b+1|0;if(Bj(a)){continue}break}}return g?d:0-d|0}function Aa(a,b){var c=0,d=0,e=0;c=R-16|0;R=c;o[a+68>>2]=0;o[a+72>>2]=0;o[a>>2]=b;Zi(c+8|0,b);d=o[c+8>>2];o[c+8>>2]=0;e=o[a+4>>2];o[a+4>>2]=d;a:{if(!e){o[c+8>>2]=0;break a}d=a+4|0;za(d,e);e=o[c+8>>2];o[c+8>>2]=0;if(e){za(c+8|0,e)}d=o[d>>2]}if(d){d=o[b+100>>2];b=o[b+96>>2];m[c+7|0]=0;eb(a+56|0,(d-b|0)/12|0,c+7|0);a=1}else{a=0}R=c+16|0;return a}function cl(a,b,c,d){m[a+53|0]=1;a:{if(o[a+4>>2]!=(c|0)){break a}m[a+52|0]=1;c=o[a+16>>2];if(!c){o[a+36>>2]=1;o[a+24>>2]=d;o[a+16>>2]=b;if((d|0)!=1|o[a+48>>2]!=1){break a}m[a+54|0]=1;return}if((b|0)==(c|0)){c=o[a+24>>2];if((c|0)==2){o[a+24>>2]=d;c=d}if(o[a+48>>2]!=1|(c|0)!=1){break a}m[a+54|0]=1;return}m[a+54|0]=1;o[a+36>>2]=o[a+36>>2]+1}}function ia(a,b){var c=0,d=0,e=0,f=0;c=R-16|0;R=c;o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0;d=rl(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=yk(e);o[c+8>>2]=e|-2147483648;o[c>>2]=f;o[c+4>>2]=d;e=c;break b}m[c+11|0]=d;e=c;f=c;if(!d){break a}}ll(f,b,d)}m[d+f|0]=0;a=ja(a,c);if(m[e+11|0]<=-1){jl(o[c>>2])}R=c+16|0;return(a|0)!=0}Ak();D()}function Zk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=R+ -64|0;R=d;e=1;a:{if(Yk(a,b,0)){break a}e=0;if(!b){break a}b=_k(b);e=0;if(!b){break a}o[d+20>>2]=-1;o[d+16>>2]=a;o[d+12>>2]=0;o[d+8>>2]=b;ml(d+24|0,0,39);o[d+56>>2]=1;l[o[o[b>>2]+28>>2]](b,d+8|0,o[c>>2],1);e=0;if(o[d+32>>2]!=1){break a}o[c>>2]=o[d+24>>2];e=1}R=d- -64|0;return e|0}function qg(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=o[c+16>>2];d=o[c+12>>2];e=o[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?r[c+8>>2]>f>>>0?0:1:0){break a}d=p[f+o[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}o[c+16>>2]=f;o[c+20>>2]=e;e=b;if(d&128){if(!qg(a+1|0,b,c)){break a}a=o[b>>2]<<7;o[b>>2]=a;d=a|d&127}o[e>>2]=d;g=1}return g}function bj(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=o[c+16>>2];d=o[c+12>>2];e=o[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?r[c+8>>2]>f>>>0?0:1:0){break a}d=p[f+o[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}o[c+16>>2]=f;o[c+20>>2]=e;e=b;if(d&128){if(!bj(a+1|0,b,c)){break a}a=o[b>>2]<<7;o[b>>2]=a;d=a|d&127}o[e>>2]=d;g=1}return g}function Zh(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=o[c+16>>2];d=o[c+12>>2];e=o[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?r[c+8>>2]>f>>>0?0:1:0){break a}d=p[f+o[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}o[c+16>>2]=f;o[c+20>>2]=e;e=b;if(d&128){if(!Zh(a+1|0,b,c)){break a}a=o[b>>2]<<7;o[b>>2]=a;d=a|d&127}o[e>>2]=d;g=1}return g}function Xg(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=o[c+16>>2];d=o[c+12>>2];e=o[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?r[c+8>>2]>f>>>0?0:1:0){break a}d=p[f+o[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}o[c+16>>2]=f;o[c+20>>2]=e;e=b;if(d&128){if(!Xg(a+1|0,b,c)){break a}a=o[b>>2]<<7;o[b>>2]=a;d=a|d&127}o[e>>2]=d;g=1}return g}function Ug(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=R-16|0;R=d;o[a+4>>2]=b;b=o[b+64>>2];e=o[b>>2];b=o[b+4>>2];m[d+15|0]=0;eb(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=o[a+4>>2];e=o[b+56>>2];b=o[b+52>>2];m[d+14|0]=0;eb(a+36|0,e-b>>2,d+14|0);b=o[c+12>>2];o[a+16>>2]=o[c+8>>2];o[a+20>>2]=b;b=o[c+4>>2];o[a+8>>2]=o[c>>2];o[a+12>>2]=b;R=d+16|0}function Tf(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=o[c+16>>2];d=o[c+12>>2];e=o[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?r[c+8>>2]>f>>>0?0:1:0){break a}d=p[f+o[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}o[c+16>>2]=f;o[c+20>>2]=e;e=b;if(d&128){if(!Tf(a+1|0,b,c)){break a}a=o[b>>2]<<7;o[b>>2]=a;d=a|d&127}o[e>>2]=d;g=1}return g}function Ge(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=o[c+16>>2];d=o[c+12>>2];e=o[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?r[c+8>>2]>f>>>0?0:1:0){break a}d=p[f+o[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}o[c+16>>2]=f;o[c+20>>2]=e;e=b;if(d&128){if(!Ge(a+1|0,b,c)){break a}a=o[b>>2]<<7;o[b>>2]=a;d=a|d&127}o[e>>2]=d;g=1}return g}function Cd(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=o[c+16>>2];d=o[c+12>>2];e=o[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?r[c+8>>2]>f>>>0?0:1:0){break a}d=p[f+o[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}o[c+16>>2]=f;o[c+20>>2]=e;e=b;if(d&128){if(!Cd(a+1|0,b,c)){break a}a=o[b>>2]<<7;o[b>>2]=a;d=a|d&127}o[e>>2]=d;g=1}return g}function rl(a){var b=0,c=0,d=0;a:{b:{b=a;if(!(b&3)){break b}if(!p[a|0]){return 0}while(1){b=b+1|0;if(!(b&3)){break b}if(p[b|0]){continue}break}break a}while(1){c=b;b=b+4|0;d=o[c>>2];if(!((d^-1)&d+ -16843009&-2139062144)){continue}break}if(!(d&255)){return c-a|0}while(1){d=p[c+1|0];b=c+1|0;c=b;if(d){continue}break}}return b-a|0}function ie(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=R-48|0;R=e;a:{if((d|0)!=1){o[a>>2]=0;break a}d=o[b+4>>2];b=o[b+12>>2];o[e+40>>2]=0;f=e+32|0;o[f>>2]=0;o[f+4>>2]=0;o[e+24>>2]=0;o[e+28>>2]=0;o[e+16>>2]=0;o[e+20>>2]=0;o[e+8>>2]=0;o[e+12>>2]=0;je(e,c,b,d,e+8|0);b=o[f>>2];if(b){o[e+36>>2]=b;jl(b)}o[a>>2]=o[e>>2]}R=e+48|0}function Da(a,b,c){var d=0,e=0,f=0,g=0;a:{if(r[a+80>>2]>65535){break a}d=b;e=o[a+96>>2];b=o[a+100>>2]-e|0;a=(b|0)/12|0;if((d|0)!=(u(a,6)|0)){break a}f=1;if(!b){break a}g=a>>>0>1?a:1;a=0;while(1){b=u(a,6)+c|0;d=u(a,12)+e|0;n[b>>1]=o[d>>2];n[b+2>>1]=o[d+4>>2];n[b+4>>1]=o[d+8>>2];a=a+1|0;if((g|0)!=(a|0)){continue}break}}return f}function Rd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=1;a:{if((l[o[o[b>>2]+20>>2]](b)|0)<1){break a}d=0;while(1){c=rj(o[o[a+4>>2]+4>>2],l[o[o[b>>2]+24>>2]](b,e)|0);if((c|0)==-1){break a}c=mi(o[a+4>>2],c);if(!c){break a}if(!l[o[o[b>>2]+28>>2]](b,c)){break a}e=e+1|0;if((e|0)<(l[o[o[b>>2]+20>>2]](b)|0)){continue}break}d=1}return d|0}function fl(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(Yk(a,o[b+8>>2],e)){dl(b,c,d);return}a:{if(!Yk(a,o[b>>2],e)){break a}if(!(o[b+20>>2]!=(c|0)?o[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}o[b+32>>2]=1;return}o[b+20>>2]=c;o[b+32>>2]=d;o[b+40>>2]=o[b+40>>2]+1;if(!(o[b+36>>2]!=1|o[b+24>>2]!=2)){m[b+54|0]=1}o[b+44>>2]=4}}function Vi(a){o[a>>2]=0;o[a+4>>2]=0;o[a+28>>2]=0;o[a+32>>2]=0;m[a+24|0]=1;o[a+16>>2]=0;o[a+20>>2]=0;o[a+8>>2]=0;o[a+12>>2]=0;o[a+36>>2]=0;o[a+40>>2]=0;o[a+44>>2]=0;o[a+48>>2]=0;o[a+52>>2]=0;o[a+56>>2]=0;o[a+60>>2]=0;o[a+64>>2]=0;o[a+72>>2]=0;o[a+76>>2]=0;o[a+80>>2]=0;o[a+84>>2]=0;o[a+88>>2]=0;o[a+92>>2]=0;o[a+68>>2]=a}function Nj(a,b,c){var d=0,e=0,f=0;a:{if((b|0)==1&a>>>0<0|b>>>0<1){d=a;break a}while(1){d=Ql(a,b,10,0);e=T;f=e;e=Ol(d,e,10,0);c=c+ -1|0;m[c|0]=a-e|48;e=(b|0)==9&a>>>0>4294967295|b>>>0>9;a=d;b=f;if(e){continue}break}}if(d){while(1){c=c+ -1|0;a=(d>>>0)/10|0;m[c|0]=d-u(a,10)|48;b=d>>>0>9;d=a;if(b){continue}break}}return c}function wh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=R-16|0;R=d;o[a+4>>2]=b;e=o[b>>2];b=o[b+4>>2];m[d+15|0]=0;eb(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=o[a+4>>2];e=o[b+28>>2];b=o[b+24>>2];m[d+14|0]=0;eb(a+36|0,e-b>>2,d+14|0);b=o[c+12>>2];o[a+16>>2]=o[c+8>>2];o[a+20>>2]=b;b=o[c+4>>2];o[a+8>>2]=o[c>>2];o[a+12>>2]=b;R=d+16|0}function ae(a,b,c){a=a|0;b=b|0;c=c|0;if(c>>>0>3){o[a>>2]=0;return}a:{b:{switch(c-1|0){default:b=yk(20);Ld(b);break a;case 0:b=yk(24);ee(b);break a;case 1:b=yk(36);ee(b);o[b+32>>2]=0;o[b+24>>2]=-1;o[b+28>>2]=0;o[b>>2]=7720;break a;case 2:break b}}b=yk(28);ee(b);o[b+24>>2]=-1;o[b>>2]=5584;o[a>>2]=b;return}o[a>>2]=b}function wa(a,b,c){var d=0,e=0,f=0;d=R-16|0;R=d;e=o[a+96>>2];o[d+8>>2]=0;o[d>>2]=0;o[d+4>>2]=0;a=yk(12);o[d>>2]=a;o[d+4>>2]=a;f=a+12|0;o[d+8>>2]=f;a=ll(a,e+u(b,12)|0,12);b=a+12|0;o[d+4>>2]=b;e=o[c>>2];if(e){o[c+4>>2]=e;jl(e);o[c+8>>2]=0;o[c>>2]=0;o[c+4>>2]=0}o[c+8>>2]=f;o[c+4>>2]=b;o[c>>2]=a;R=d+16|0;return 1}function ii(a){var b=0,c=0,d=0,e=0;if(a){d=o[a+24>>2];if(d){b=d;c=o[a+28>>2];e=b;a:{if((c|0)==(b|0)){break a}while(1){c=c+ -4|0;b=o[c>>2];o[c>>2]=0;if(b){Kc(b+12|0,o[b+16>>2]);Lc(b,o[b+4>>2]);jl(b)}if((c|0)!=(d|0)){continue}break}e=o[a+24>>2]}b=e;o[a+28>>2]=d;jl(b)}Kc(a+12|0,o[a+16>>2]);Lc(a,o[a+4>>2]);jl(a)}}function Ci(a){var b=0;o[a>>2]=0;o[a+4>>2]=0;o[a+56>>2]=0;o[a+48>>2]=0;o[a+52>>2]=0;o[a+40>>2]=0;o[a+44>>2]=0;o[a+32>>2]=0;o[a+36>>2]=0;o[a+24>>2]=0;o[a+28>>2]=0;o[a+16>>2]=0;o[a+20>>2]=0;o[a+8>>2]=0;o[a+12>>2]=0;b=a- -64|0;o[b>>2]=0;o[b+4>>2]=0;o[a+72>>2]=0;o[a+76>>2]=0;o[a+80>>2]=0;o[a+84>>2]=0;o[a+60>>2]=a}function dg(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;if(!a){return 1}e=o[c+16>>2];h=o[c+12>>2];g=o[c+20>>2];f=g;a:{if((h|0)<(f|0)?1:(h|0)<=(f|0)?r[c+8>>2]>e>>>0?0:1:0){break a}f=p[e+o[c>>2]|0];e=e+1|0;if(e>>>0<1){g=g+1|0}o[c+16>>2]=e;o[c+20>>2]=g;if(f>>>0>1){break a}if(f-1){return eg(a,b,c,d)}i=fg(a,c,d)}return i}function Si(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=R-16|0;R=d;e=o[c>>2];o[c>>2]=0;o[d+8>>2]=e;wj(a,b,d+8|0);c=o[d+8>>2];o[d+8>>2]=0;if(c){Kb(c)}e=o[a+84>>2];c=o[a+88>>2]-e>>2;a:{if((c|0)>(b|0)){break a}b=b+1|0;if(b>>>0>c>>>0){Ti(a+84|0,b-c|0);break a}if(b>>>0>=c>>>0){break a}o[a+88>>2]=e+(b<<2)}R=d+16|0}function Bg(a){a=a|0;var b=0,c=0,d=0,e=0;o[a>>2]=10116;b=o[a+20>>2];if(b){o[a+24>>2]=b;jl(b)}d=o[a+8>>2];if(d){b=d;c=o[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=o[c>>2];o[c>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=o[a+8>>2]}b=e;o[a+12>>2]=d;jl(b)}return a|0}function Jk(a,b,c,d,e){var f=0,g=0,h=0;f=R-16|0;R=f;if(-17-b>>>0>=c>>>0){g=nk(a);a:{if(2147483623>b>>>0){o[f+8>>2]=b<<1;o[f+12>>2]=b+c;c=sk(o[fk(f+12|0,f+8|0)>>2]);break a}c=-18}h=c+1|0;c=tk(h);if(e){ek(c,g,e)}d=d-e|0;if(d){ek(c+e|0,e+g|0,d)}if((b|0)!=10){jl(g)}uk(a,c);vk(a,h);R=f+16|0;return}Ak();D()}function bi(a){a=a|0;var b=0,c=0,d=0,e=0;o[a>>2]=10116;b=o[a+20>>2];if(b){o[a+24>>2]=b;jl(b)}d=o[a+8>>2];if(d){b=d;c=o[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=o[c>>2];o[c>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=o[a+8>>2]}b=e;o[a+12>>2]=d;jl(b)}jl(a)}function xk(a,b,c){var d=0,e=0,f=0,g=0;e=R-16|0;R=e;d=c-b|0;if(d>>>0<=4294967279){a:{if(d>>>0<=10){rk(a,d);f=a;break a}g=sk(d)+1|0;f=tk(g);uk(a,f);vk(a,g);qk(a,d)}d=c-b|0;a=f;while(1){if((b|0)!=(c|0)){pk(a,b);a=a+1|0;b=b+1|0;continue}break}m[e+15|0]=0;pk(d+f|0,e+15|0);R=e+16|0;return}Ak();D()}function Ea(a,b,c){var d=0,e=0,f=0,g=0;e=o[a+96>>2];d=o[a+100>>2]-e|0;a=(d|0)/12|0;a:{if((b|0)!=(d|0)){break a}f=1;if(!b){break a}g=a>>>0>1?a:1;a=0;while(1){d=u(a,12);b=d+c|0;d=d+e|0;o[b>>2]=o[d>>2];o[b+4>>2]=o[d+4>>2];o[b+8>>2]=o[d+8>>2];a=a+1|0;if((g|0)!=(a|0)){continue}break}}return f}function wd(a,b){var c=0,d=0;a:{if(o[a+64>>2]){break a}d=yk(32);oi(d);c=o[a+64>>2];o[a+64>>2]=d;if(!c){break a}d=o[c>>2];if(d){o[c+4>>2]=d;jl(d)}jl(c)}c=xi(o[a+28>>2]);c=u(c,m[a+24|0]);d=c;c=c>>31;if(pi(o[a+64>>2],0,Ol(d,c,b,0),T)){td(a,o[a+64>>2],d,c);o[a+80>>2]=b;a=1}else{a=0}return a}function zh(a){a=a|0;var b=0;o[a+8>>2]=9152;o[a>>2]=8940;b=o[a+96>>2];if(b){o[a+100>>2]=b;jl(b)}b=o[a+80>>2];if(b){o[a+84>>2]=b;jl(b)}b=o[a+68>>2];if(b){o[a+72>>2]=b;jl(b)}b=o[a+56>>2];if(b){o[a+60>>2]=b;jl(b)}o[a+8>>2]=9388;b=o[a+44>>2];if(b){jl(b)}b=o[a+32>>2];if(b){jl(b)}return a|0}function Ah(a){a=a|0;var b=0;o[a+8>>2]=9152;o[a>>2]=8940;b=o[a+96>>2];if(b){o[a+100>>2]=b;jl(b)}b=o[a+80>>2];if(b){o[a+84>>2]=b;jl(b)}b=o[a+68>>2];if(b){o[a+72>>2]=b;jl(b)}b=o[a+56>>2];if(b){o[a+60>>2]=b;jl(b)}o[a+8>>2]=9388;b=o[a+44>>2];if(b){jl(b)}b=o[a+32>>2];if(b){jl(b)}jl(a)}function cb(a,b){var c=0,d=0;c=o[a+4>>2];if(!c){return 0}b=o[o[o[a+8>>2]+(b<<2)>>2]+60>>2];if((b|0)<0){return 0}a=o[c+24>>2];c=o[c+28>>2];if((a|0)==(c|0)){return 0}a:{while(1){d=o[a>>2];if((b|0)==o[d+24>>2]){break a}a=a+4|0;if((c|0)!=(a|0)){continue}break}return 0}return d}function Pk(a){var b=0;if(o[a+76>>2]<0){a:{if(m[a+75|0]==10){break a}b=o[a+20>>2];if(b>>>0>=r[a+16>>2]){break a}o[a+20>>2]=b+1;m[b|0]=10;return}pl(a);return}b:{c:{if(m[a+75|0]==10){break c}b=o[a+20>>2];if(b>>>0>=r[a+16>>2]){break c}o[a+20>>2]=b+1;m[b|0]=10;break b}pl(a)}}function yh(a){a=a|0;var b=0;o[a>>2]=9152;b=o[a+88>>2];if(b){o[a+92>>2]=b;jl(b)}b=o[a+72>>2];if(b){o[a+76>>2]=b;jl(b)}b=o[a+60>>2];if(b){o[a- -64>>2]=b;jl(b)}b=o[a+48>>2];if(b){o[a+52>>2]=b;jl(b)}o[a>>2]=9388;b=o[a+36>>2];if(b){jl(b)}b=o[a+24>>2];if(b){jl(b)}return a|0}function Zb(a){a=a|0;var b=0,c=0,d=0,e=0;if(a){if(m[a+27|0]<=-1){jl(o[a+16>>2])}c=o[a>>2];if(c){b=c;d=o[a+4>>2];e=b;a:{if((d|0)==(b|0)){break a}while(1){b=d+ -12|0;if(m[d+ -1|0]<=-1){jl(o[b>>2])}d=b;if((b|0)!=(c|0)){continue}break}e=o[a>>2]}b=e;o[a+4>>2]=c;jl(b)}jl(a)}}function jk(){var a=0,b=0,c=0;a=R-16|0;R=a;a:{if(L(a+12|0,a+8|0)){break a}b=il((o[a+12>>2]<<2)+4|0);o[3331]=b;if(!b){break a}b:{b=il(o[a+8>>2]);if(b){c=o[3331];if(c){break b}}o[3331]=0;break a}o[(o[a+12>>2]<<2)+c>>2]=0;if(!M(o[3331],b|0)){break a}o[3331]=0}R=a+16|0}function Uf(a){var b=0,c=0,d=0,e=0,f=0;d=0-p[a+12|0]|0;c=o[a+8>>2];a:{if(c>>>0>4095){break a}b=o[a+4>>2];if((b|0)<1){break a}b=b+ -1|0;o[a+4>>2]=b;c=p[b+o[a>>2]|0]|c<<8;o[a+8>>2]=c}d=d&255;b=u(d,c>>>8|0);e=c&255;f=e>>>0>>0;o[a+8>>2]=f?b+e|0:(c-d|0)-b|0;return f}function Gh(a){a=a|0;var b=0;o[a>>2]=9152;b=o[a+88>>2];if(b){o[a+92>>2]=b;jl(b)}b=o[a+72>>2];if(b){o[a+76>>2]=b;jl(b)}b=o[a+60>>2];if(b){o[a- -64>>2]=b;jl(b)}b=o[a+48>>2];if(b){o[a+52>>2]=b;jl(b)}o[a>>2]=9388;b=o[a+36>>2];if(b){jl(b)}b=o[a+24>>2];if(b){jl(b)}jl(a)}function $f(a,b,c,d){var e=0;e=R-16|0;R=e;c=bg(a,b,e+12|0,e+8|0,c);if(!o[c>>2]){b=yk(40);Bk(b+16|0,d);Bk(b+28|0,d+12|0);o[b+8>>2]=o[e+12>>2];o[b>>2]=0;o[b+4>>2]=0;o[c>>2]=b;d=o[o[a>>2]>>2];if(d){o[a>>2]=d;b=o[c>>2]}ag(o[a+4>>2],b);o[a+8>>2]=o[a+8>>2]+1}R=e+16|0}function Yg(a){var b=0;b=o[a+84>>2];if(b){o[a+88>>2]=b;jl(b)}b=o[a+72>>2];if(b){o[a+76>>2]=b;jl(b)}b=o[a+52>>2];if(b){o[a+56>>2]=b;jl(b)}b=o[a+40>>2];if(b){o[a+44>>2]=b;jl(b)}b=o[a+28>>2];if(b){o[a+32>>2]=b;jl(b)}b=o[a+12>>2];if(b){jl(b)}a=o[a>>2];if(a){jl(a)}}function Ej(a,b){var c=0,d=0,i=0;h(+a);c=e(1)|0;d=e(0)|0;i=c;c=c>>>20&2047;if((c|0)!=2047){if(!c){c=b;if(a==0){b=0}else{a=Ej(a*0x10000000000000000,b);b=o[b>>2]+ -64|0}o[c>>2]=b;return a}o[b>>2]=c+ -1022;f(0,d|0);f(1,i&-2146435073|1071644672);a=+g()}return a}function za(a,b){if(b){a=o[b+76>>2];if(a){o[b+80>>2]=a;jl(a)}a=o[b- -64>>2];if(a){o[b+68>>2]=a;jl(a)}a=o[b+48>>2];if(a){o[b+52>>2]=a;jl(a)}a=o[b+24>>2];if(a){o[b+28>>2]=a;jl(a)}a=o[b+12>>2];if(a){o[b+16>>2]=a;jl(a)}a=o[b>>2];if(a){o[b+4>>2]=a;jl(a)}jl(b)}}function _d(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=1;e=l[o[o[a>>2]+24>>2]](a)|0;a:{if((e|0)<1){break a}g=a+48|0;c=0;while(1){f=o[o[a+36>>2]+(d<<2)>>2];if(!l[o[o[f>>2]+20>>2]](f,g,b)){break a}d=d+1|0;if((e|0)!=(d|0)){continue}break}c=1}return c|0}function Zd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=1;e=l[o[o[a>>2]+24>>2]](a)|0;a:{if((e|0)<1){break a}g=a+48|0;c=0;while(1){f=o[o[a+36>>2]+(d<<2)>>2];if(!l[o[o[f>>2]+16>>2]](f,g,b)){break a}d=d+1|0;if((e|0)!=(d|0)){continue}break}c=1}return c|0}function Ml(a,b,c,d){var e=0,f=0,g=0,h=0;e=b;f=e>>31;e=e>>31;a=a^e;g=a-e|0;h=(b^f)-((a>>>0>>0)+f|0)|0;e=d;f=e>>31;e=e>>31;a=c^e;e=Ql(g,h,a-e|0,(d^f)-((a>>>0>>0)+f|0)|0);b=b^d;c=b>>31;a=b>>31;b=e^a;d=b-a|0;T=(c^T)-((b>>>0>>0)+c|0)|0;return d}function dd(a,b){a=a|0;b=b|0;var c=0,d=0;o[b>>2]=2;c=o[b+8>>2];d=o[b+12>>2]-c|0;if(d>>>0<=4294967291){b=b+8|0;ri(b,d+4|0);c=o[b>>2]}b=c+d|0;a=p[a+4|0]|p[a+5|0]<<8|(p[a+6|0]<<16|p[a+7|0]<<24);m[b|0]=a;m[b+1|0]=a>>>8;m[b+2|0]=a>>>16;m[b+3|0]=a>>>24}function pl(a){var b=0,c=0,d=0;b=R-16|0;R=b;m[b+15|0]=10;c=o[a+16>>2];a:{if(!c){if(ol(a)){break a}c=o[a+16>>2]}d=o[a+20>>2];if(!(m[a+75|0]==10|d>>>0>=c>>>0)){o[a+20>>2]=d+1;m[d|0]=10;break a}if((l[o[a+36>>2]](a,b+15|0,1)|0)!=1){break a}}R=b+16|0}function ck(a,b,c){var d=0,e=0,f=0,g=0;d=R-16|0;R=d;b=b-a>>2;while(1){if(b){o[d+12>>2]=a;e=d+12|0;f=e;g=o[e>>2];e=b>>>1|0;o[f>>2]=g+(e<<2);if(dk(o[d+12>>2],c)){a=o[d+12>>2]+4|0;o[d+12>>2]=a;b=(e^-1)+b|0}else{b=e}continue}break}R=d+16|0;return a}function lj(a,b,c){var d=0;a:{d=a+4|0;a=Ai(a,b);if((d|0)==(a|0)){break a}b=o[a+32>>2];a=o[a+28>>2];if((b-a|0)!=8){break a}b=p[a+4|0]|p[a+5|0]<<8|(p[a+6|0]<<16|p[a+7|0]<<24);o[c>>2]=p[a|0]|p[a+1|0]<<8|(p[a+2|0]<<16|p[a+3|0]<<24);o[c+4>>2]=b}}function Kb(a){a=a|0;var b=0,c=0;if(a){b=o[a+88>>2];o[a+88>>2]=0;if(b){c=o[b+8>>2];if(c){o[b+12>>2]=c;jl(c)}jl(b)}b=o[a+68>>2];if(b){o[a+72>>2]=b;jl(b)}b=o[a+64>>2];o[a+64>>2]=0;if(b){c=o[b>>2];if(c){o[b+4>>2]=c;jl(c)}jl(b)}jl(a)}}function vj(a,b){var c=0,d=0,e=0,f=0;c=R-16|0;R=c;d=o[a+12>>2];e=o[a+8>>2];f=o[b>>2];o[b>>2]=0;o[c+8>>2]=f;l[o[o[a>>2]+8>>2]](a,d-e>>2,c+8|0);b=o[c+8>>2];o[c+8>>2]=0;if(b){Kb(b)}R=c+16|0;return(o[a+12>>2]-o[a+8>>2]>>2)+ -1|0}function Ll(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=c>>>16|0;f=a>>>16|0;j=u(e,f);g=c&65535;h=a&65535;i=u(g,h);f=(i>>>16|0)+u(f,g)|0;e=(f&65535)+u(e,h)|0;a=(u(b,c)+j|0)+u(a,d)+(f>>>16)+(e>>>16)|0;b=i&65535|e<<16;T=a;return b}function tj(a,b){var c=0,d=0,e=0;c=o[a+8>>2];a=o[a+12>>2];a:{if((c|0)==(a|0)){break a}a=a-c>>2;e=a>>>0>1?a:1;a=0;while(1){d=o[(a<<2)+c>>2];if(o[d+60>>2]==(b|0)){break a}a=a+1|0;if((e|0)!=(a|0)){continue}break}d=0}return d}function si(a){n[a+38>>1]=0;o[a>>2]=0;o[a+8>>2]=0;o[a+12>>2]=0;o[a+16>>2]=0;o[a+20>>2]=0;o[a+24>>2]=0;o[a+28>>2]=0;m[a+29|0]=0;m[a+30|0]=0;m[a+31|0]=0;m[a+32|0]=0;m[a+33|0]=0;m[a+34|0]=0;m[a+35|0]=0;m[a+36|0]=0;return a}function ri(a,b){var c=0,d=0;d=o[a>>2];c=o[a+4>>2]-d|0;a:{if(c>>>0>>0){Ka(a,b-c|0);break a}if(c>>>0<=b>>>0){break a}o[a+4>>2]=b+d}b=a+24|0;c=b;d=b;a=o[b+4>>2];b=o[b>>2]+1|0;if(b>>>0<1){a=a+1|0}o[d>>2]=b;o[c+4>>2]=a}function li(a){a=a|0;var b=0,c=0,d=0,e=0;c=1;b=o[a+8>>2];d=o[a+12>>2];a:{if((b|0)==(d|0)){break a}while(1){e=o[b>>2];if(l[o[o[e>>2]+16>>2]](e,o[a+32>>2])){b=b+4|0;if((d|0)!=(b|0)){continue}break a}break}c=0}return c|0}function Ck(a,b,c){var d=0,e=0,f=0;d=R-16|0;R=d;if(4294967279>=c>>>0){a:{if(c>>>0<=10){rk(a,c);e=a;break a}f=sk(c)+1|0;e=tk(f);uk(a,e);vk(a,f);qk(a,c)}ek(e,b,c);m[d+15|0]=0;pk(c+e|0,d+15|0);R=d+16|0;return}Ak();D()}function Pf(a){a=a|0;var b=0;o[a>>2]=7720;b=o[a+28>>2];o[a+28>>2]=0;if(b){jl(b)}o[a>>2]=1908;b=o[a+20>>2];o[a+20>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}o[a>>2]=1596;b=o[a+16>>2];o[a+16>>2]=0;if(b){Kb(b)}return a|0}function $k(a,b,c){var d=0;d=o[a+16>>2];if(!d){o[a+36>>2]=1;o[a+24>>2]=c;o[a+16>>2]=b;return}a:{if((b|0)==(d|0)){if(o[a+24>>2]!=2){break a}o[a+24>>2]=c;return}m[a+54|0]=1;o[a+24>>2]=2;o[a+36>>2]=o[a+36>>2]+1}}function wi(a){var b=0,c=0,d=0,e=0,f=0,g=0;m[a+36|0]=0;d=o[a+20>>2];e=a;f=a;g=o[a+16>>2];a=o[a+32>>2]+7|0;if(a>>>0<7){b=1}c=b>>>3|0;a=b<<29|a>>>3;b=g+a|0;c=c+d|0;o[f+16>>2]=b;o[e+20>>2]=b>>>0>>0?c+1|0:c}function cf(a){a=a|0;var b=0;o[a>>2]=4352;b=o[a+96>>2];if(b){jl(b)}b=o[a+84>>2];if(b){jl(b)}b=o[a+72>>2];if(b){jl(b)}b=o[a+60>>2];if(b){jl(b)}o[a>>2]=2732;b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}return a|0}function Qf(a){a=a|0;var b=0;o[a>>2]=7720;b=o[a+28>>2];o[a+28>>2]=0;if(b){jl(b)}o[a>>2]=1908;b=o[a+20>>2];o[a+20>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}o[a>>2]=1596;b=o[a+16>>2];o[a+16>>2]=0;if(b){Kb(b)}jl(a)}function Ce(a){a=a|0;var b=0;o[a>>2]=2788;b=o[a+96>>2];if(b){jl(b)}b=o[a+84>>2];if(b){jl(b)}b=o[a+72>>2];if(b){jl(b)}b=o[a+60>>2];if(b){jl(b)}o[a>>2]=2732;b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}return a|0}function Ui(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;yj(a,b);a:{if((b|0)<0){break a}c=o[a+88>>2];d=o[a+84>>2];if(c-d>>2<=(b|0)){break a}b=d+(b<<2)|0;d=b+4|0;c=c-d|0;e=c>>2;if(c){nl(b,d,c)}o[a+88>>2]=b+(e<<2)}}function Ek(a,b,c){var d=0,e=0,f=0,g=0;e=R-16|0;R=e;d=lk(a);a:{if(d>>>0>=c>>>0){f=nk(a);g=f;d=c;if(c){nl(g,b,d)}m[e+15|0]=0;pk(c+f|0,e+15|0);wk(a,c);break a}f=a;a=kk(a);Fk(f,d,c-d|0,a,a,c,b)}R=e+16|0}function df(a){a=a|0;var b=0;o[a>>2]=4352;b=o[a+96>>2];if(b){jl(b)}b=o[a+84>>2];if(b){jl(b)}b=o[a+72>>2];if(b){jl(b)}b=o[a+60>>2];if(b){jl(b)}o[a>>2]=2732;b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}jl(a)}function Kj(a,b,c,d,e){var f=0;f=R-256|0;R=f;if(!(e&73728|(c|0)<=(d|0))){c=c-d|0;d=c>>>0<256;ml(f,b,d?c:256);if(!d){while(1){Hj(a,f,256);c=c+ -256|0;if(c>>>0>255){continue}break}}Hj(a,f,c)}R=f+256|0}function De(a){a=a|0;var b=0;o[a>>2]=2788;b=o[a+96>>2];if(b){jl(b)}b=o[a+84>>2];if(b){jl(b)}b=o[a+72>>2];if(b){jl(b)}b=o[a+60>>2];if(b){jl(b)}o[a>>2]=2732;b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}jl(a)}function Hk(a,b){var c=0,d=0,e=0,f=0;e=R-16|0;R=e;if(b){d=lk(a);c=kk(a);f=c+b|0;if(d-c>>>0>>0){Jk(a,d,f-d|0,c,c)}d=c;c=nk(a);d=d+c|0;if(b){ml(d,0,b)}wk(a,f);m[e+15|0]=0;pk(c+f|0,e+15|0)}R=e+16|0}function mj(a,b,c){var d=0,e=0;d=a+4|0;a=Ai(a,b);a:{if((d|0)==(a|0)){break a}b=o[a+32>>2];d=o[a+28>>2];if((b|0)==(d|0)){break a}Gk(c,b-d|0);c=Kk(c);b=o[a+28>>2];ll(c,b,o[a+32>>2]-b|0);e=1}return e}function mi(a,b){var c=0,d=0;a:{if((b|0)<0){break a}c=o[a+4>>2];if(o[c+12>>2]-o[c+8>>2]>>2<=(b|0)){break a}a=o[o[a+8>>2]+(o[o[a+20>>2]+(b<<2)>>2]<<2)>>2];d=l[o[o[a>>2]+32>>2]](a,b)|0}return d}function ud(a){qd(a);o[a+64>>2]=0;o[a+68>>2]=0;o[a+88>>2]=0;o[a+72>>2]=0;o[a+76>>2]=0;m[a+77|0]=0;m[a+78|0]=0;m[a+79|0]=0;m[a+80|0]=0;m[a+81|0]=0;m[a+82|0]=0;m[a+83|0]=0;m[a+84|0]=0;return a}function td(a,b,c,d){var e=0;o[a>>2]=b;e=o[b+20>>2];o[a+8>>2]=o[b+16>>2];o[a+12>>2]=e;e=o[b+24>>2];b=o[b+28>>2];o[a+48>>2]=0;o[a+52>>2]=0;o[a+40>>2]=c;o[a+44>>2]=d;o[a+16>>2]=e;o[a+20>>2]=b}function qd(a){o[a+8>>2]=0;o[a+12>>2]=0;o[a>>2]=0;o[a+40>>2]=0;o[a+44>>2]=0;o[a+28>>2]=9;m[a+24|0]=1;o[a+56>>2]=-1;o[a+60>>2]=0;o[a+16>>2]=0;o[a+20>>2]=0;o[a+48>>2]=0;o[a+52>>2]=0;return a}function ol(a){var b=0;b=p[a+74|0];m[a+74|0]=b+ -1|b;b=o[a>>2];if(b&8){o[a>>2]=b|32;return-1}o[a+4>>2]=0;o[a+8>>2]=0;b=o[a+44>>2];o[a+28>>2]=b;o[a+20>>2]=b;o[a+16>>2]=b+o[a+48>>2];return 0}function uj(a,b){var c=0,d=0;c=o[a+8>>2];a=o[a+12>>2];if((c|0)!=(a|0)){d=a-c>>2;a=0;while(1){if(o[o[(a<<2)+c>>2]+60>>2]==(b|0)){return a}a=a+1|0;if(a>>>0>>0){continue}break}}return-1}function ik(a,b){var c=0,d=0;c=p[a|0];d=p[b|0];a:{if(!c|(c|0)!=(d|0)){break a}while(1){d=p[b+1|0];c=p[a+1|0];if(!c){break a}b=b+1|0;a=a+1|0;if((c|0)==(d|0)){continue}break}}return c-d|0}function Kc(a,b){var c=0;if(b){Kc(a,o[b>>2]);Kc(a,o[b+4>>2]);c=b+28|0;a=o[c>>2];o[c>>2]=0;if(a){Kc(a+12|0,o[a+16>>2]);Lc(a,o[a+4>>2]);jl(a)}if(m[b+27|0]<=-1){jl(o[b+16>>2])}jl(b)}}function Bk(a,b){var c=0,d=0,e=0;d=R-16|0;R=d;hk(a);c=a;a:{if(!mk(b)){o[c+8>>2]=o[b+8>>2];e=o[b+4>>2];o[c>>2]=o[b>>2];o[c+4>>2]=e;break a}Ck(a,o[b>>2],o[b+4>>2])}R=d+16|0;return a}function ui(a,b,c){var d=0;a:{if(b){b=0;if(!vi(1,c,a)){break a}}m[a+36|0]=1;o[a+32>>2]=0;b=o[a+16>>2];c=b+o[a>>2]|0;o[a+24>>2]=c;d=a;a=o[a+8>>2];o[d+28>>2]=c+(a-b|0);b=1}return b}function jj(a,b,c){var d=0;a:{d=a+4|0;a=Ai(a,b);if((d|0)==(a|0)){break a}b=o[a+32>>2];a=o[a+28>>2];if((b-a|0)!=4){break a}o[c>>2]=p[a|0]|p[a+1|0]<<8|(p[a+2|0]<<16|p[a+3|0]<<24)}}function de(a,b){a=a|0;b=b|0;var c=0,d=0;d=o[a+16>>2];c=0;a:{if(o[a+20>>2]-d>>2<=(b|0)){break a}b=o[(b<<2)+d>>2];c=0;if((b|0)<0){break a}c=Qd(o[o[a+36>>2]+(b<<2)>>2])}return c|0}function Qh(a){a=a|0;var b=0;o[a+8>>2]=8568;o[a>>2]=9700;b=o[a+56>>2];if(b){o[a+60>>2]=b;jl(b)}o[a+8>>2]=8820;b=o[a+44>>2];if(b){jl(b)}b=o[a+32>>2];if(b){jl(b)}return a|0}function Kh(a){a=a|0;var b=0;o[a+8>>2]=9572;o[a>>2]=9408;b=o[a+56>>2];if(b){o[a+60>>2]=b;jl(b)}o[a+8>>2]=9388;b=o[a+44>>2];if(b){jl(b)}b=o[a+32>>2];if(b){jl(b)}return a|0}function Od(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=o[a+8>>2];a:{if(m[d+24|0]<1){break a}if(!wd(d,o[b+4>>2]-o[b>>2]>>2)){break a}e=l[o[o[a>>2]+32>>2]](a,b,c)|0}return e|0}function Vj(a,b,c){var d=0,e=0,f=0;a:{if(!c){break a}while(1){d=p[a|0];e=p[b|0];if((d|0)==(e|0)){b=b+1|0;a=a+1|0;c=c+ -1|0;if(c){continue}break a}break}f=d-e|0}return f}function Rh(a){a=a|0;var b=0;o[a+8>>2]=8568;o[a>>2]=9700;b=o[a+56>>2];if(b){o[a+60>>2]=b;jl(b)}o[a+8>>2]=8820;b=o[a+44>>2];if(b){jl(b)}b=o[a+32>>2];if(b){jl(b)}jl(a)}function Lh(a){a=a|0;var b=0;o[a+8>>2]=9572;o[a>>2]=9408;b=o[a+56>>2];if(b){o[a+60>>2]=b;jl(b)}o[a+8>>2]=9388;b=o[a+44>>2];if(b){jl(b)}b=o[a+32>>2];if(b){jl(b)}jl(a)}function od(a,b){var c=0;c=yk(40);o[c>>2]=-1;oi(c+8|0);l[o[o[a>>2]+16>>2]](a,c);a=o[b+88>>2];o[b+88>>2]=c;if(a){b=o[a+8>>2];if(b){o[a+12>>2]=b;jl(b)}jl(a)}return 1}function Ve(a){a=a|0;var b=0;a:{if(!o[a- -64>>2]|!o[a+68>>2]|(!o[a+44>>2]|!o[a+48>>2])){break a}if(!o[a+52>>2]|!o[a+56>>2]){break a}b=o[a+92>>2]!=-1}return b|0}function cd(a,b){a=a|0;b=b|0;var c=0;b=o[b+88>>2];if(!(!b|o[b>>2]!=2)){c=a;a=o[b+8>>2];o[c+4>>2]=p[a|0]|p[a+1|0]<<8|(p[a+2|0]<<16|p[a+3|0]<<24);c=1}return c|0}function zf(a){a=a|0;var b=0;a:{if(!o[a+44>>2]|!o[a+48>>2]|(!o[a+24>>2]|!o[a+28>>2])){break a}if(!o[a+32>>2]|!o[a+36>>2]){break a}b=o[a+72>>2]!=-1}return b|0}function oe(a){a=a|0;var b=0;o[a>>2]=1908;b=o[a+20>>2];o[a+20>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}o[a>>2]=1596;b=o[a+16>>2];o[a+16>>2]=0;if(b){Kb(b)}return a|0}function fi(a){o[a+40>>2]=0;o[a>>2]=10116;o[a+4>>2]=0;o[a+8>>2]=0;o[a+12>>2]=0;o[a+16>>2]=0;o[a+20>>2]=0;o[a+24>>2]=0;o[a+28>>2]=0;o[a+32>>2]=0;n[a+36>>1]=0}function Ik(a,b){var c=0,d=0;c=R-16|0;R=c;a:{if(mk(a)){d=o[a>>2];m[c+15|0]=0;pk(b+d|0,c+15|0);qk(a,b);break a}m[c+14|0]=0;pk(a+b|0,c+14|0);rk(a,b)}R=c+16|0}function Vd(a,b){var c=0;zd(a);o[a+36>>2]=0;o[a+40>>2]=0;o[a>>2]=1692;o[a+44>>2]=0;o[a+48>>2]=0;o[a+52>>2]=0;o[a+56>>2]=0;c=o[b>>2];o[b>>2]=0;o[a+60>>2]=c}function Lk(a){var b=0,c=0,d=0,e=0;b=R-32|0;R=b;c=b+8|0;d=b+21|0;e=b+32|0;a:{if((d|0)==(e|0)){break a}}Mk(c,d,e);c=o[b+8>>2];hk(a);xk(a,b+21|0,c);R=b+32|0}function Ij(a){var b=0,c=0,d=0;if(Bj(m[o[a>>2]])){while(1){b=o[a>>2];d=m[b|0];o[a>>2]=b+1;c=(u(c,10)+d|0)+ -48|0;if(Bj(m[b+1|0])){continue}break}}return c}function Vg(a){a=a|0;var b=0;o[a>>2]=8568;b=o[a+48>>2];if(b){o[a+52>>2]=b;jl(b)}o[a>>2]=8820;b=o[a+36>>2];if(b){jl(b)}b=o[a+24>>2];if(b){jl(b)}return a|0}function Jh(a){a=a|0;var b=0;o[a>>2]=9572;b=o[a+48>>2];if(b){o[a+52>>2]=b;jl(b)}o[a>>2]=9388;b=o[a+36>>2];if(b){jl(b)}b=o[a+24>>2];if(b){jl(b)}return a|0}function Gd(a,b){a=a|0;b=b|0;var c=0;a:{if(!l[o[o[a>>2]+36>>2]](a,b)){break a}if(!l[o[o[a>>2]+40>>2]](a,b)){break a}c=l[o[o[a>>2]+44>>2]](a)|0}return c|0}function pe(a){a=a|0;var b=0;o[a>>2]=1908;b=o[a+20>>2];o[a+20>>2]=0;if(b){l[o[o[b>>2]+4>>2]](b)}o[a>>2]=1596;b=o[a+16>>2];o[a+16>>2]=0;if(b){Kb(b)}jl(a)}function Bi(a,b){var c=0;b=Ai(a,b);a:{if((b|0)==(a+4|0)){break a}a=b+28|0;if(m[b+39|0]<=-1){a=o[a>>2]}a=Tj(a);if((a|0)==-1){break a}c=(a|0)!=0}return c}function fj(a,b){var c=0,d=0;c=o[b>>2];if(!c){return}d=o[a+28>>2];if(d>>>0>2]){o[b>>2]=0;o[d>>2]=c;o[a+28>>2]=o[a+28>>2]+4;return}gj(a+24|0,b)}function th(a){a=a|0;var b=0;o[a>>2]=8568;b=o[a+48>>2];if(b){o[a+52>>2]=b;jl(b)}o[a>>2]=8820;b=o[a+36>>2];if(b){jl(b)}b=o[a+24>>2];if(b){jl(b)}jl(a)}function Ph(a){a=a|0;var b=0;o[a>>2]=9572;b=o[a+48>>2];if(b){o[a+52>>2]=b;jl(b)}o[a>>2]=9388;b=o[a+36>>2];if(b){jl(b)}b=o[a+24>>2];if(b){jl(b)}jl(a)}function Mk(a,b,c){var d=0,e=0;e=a;d=c-b|0;a:{if(!((1-(r[3096]>1)|0)>(d|0)?(d|0)<=9:0)){m[b|0]=49;o[a>>2]=b+1;a=0;break a}o[a>>2]=c;a=61}o[e+4>>2]=a}function kl(a){var b=0,c=0;c=U();a:{b=o[3460];a=b+(a+3&-4)|0;if(a>>>0<=c<<16>>>0){break a}if(N(a|0)){break a}o[3314]=48;return-1}o[3460]=a;return b}function gl(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(Yk(a,o[b+8>>2],f)){cl(b,c,d,e);return}a=o[a+8>>2];l[o[o[a>>2]+20>>2]](a,b,c,d,e,f)}function ta(a,b,c){var d=0;d=R-16|0;R=d;Xf(d,a,b,c);o[a+24>>2]=o[d>>2];Dk(a+28|0,d|4);a=a+24|0;if(m[d+15|0]<=-1){jl(o[d+4>>2])}R=d+16|0;return a}function Rj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=R-16|0;R=e;Wj(Q(o[a+60>>2],b|0,c|0,d&255,e+8|0)|0);R=e+16|0;T=o[e+12>>2];return o[e+8>>2]}function ni(a,b,c){var d=0,e=0,f=0;if((b|0)>0){while(1){e=d<<2;f=o[e+a>>2];o[c+e>>2]=0-(f&1)^f>>>1;d=d+1|0;if((d|0)!=(b|0)){continue}break}}}function sj(a){var b=0,c=0;b=o[a+20>>2];a:{if((o[a+24>>2]-b|0)<1){break a}b=o[b>>2];if((b|0)==-1){break a}c=o[o[a+8>>2]+(b<<2)>>2]}return c}function rj(a,b){var c=0;c=-1;a:{if((b|0)==-1|(b|0)>4){break a}b=u(b,12)+a|0;a=o[b+20>>2];if((o[b+24>>2]-a|0)<1){break a}c=o[a>>2]}return c}function rd(a,b,c,d,e,f,g){o[a>>2]=0;o[a+56>>2]=b;o[a+48>>2]=0;o[a+52>>2]=0;o[a+40>>2]=f;o[a+44>>2]=g;m[a+32|0]=e;o[a+28>>2]=d;m[a+24|0]=c}function Pj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=b;b=o[b>>2]+15&-16;o[c>>2]=b+16;d=a,e=Zj(o[b>>2],o[b+4>>2],o[b+8>>2],o[b+12>>2]),t[d>>3]=e}function Rf(a){o[a>>2]=0;o[a+4>>2]=0;m[a+5|0]=0;m[a+6|0]=0;m[a+7|0]=0;m[a+8|0]=0;m[a+9|0]=0;m[a+10|0]=0;m[a+11|0]=0;m[a+12|0]=0;return a}function Pi(a){a=a|0;var b=0;o[a>>2]=10604;b=o[a+96>>2];if(b){o[a+100>>2]=b;jl(b)}b=o[a+84>>2];if(b){o[a+88>>2]=b;jl(b)}Qi(a);return a|0}function Mj(a,b,c,d){if(a|b){while(1){c=c+ -1|0;m[c|0]=p[(a&15)+11616|0]|d;a=(b&15)<<28|a>>>4;b=b>>>4|0;if(a|b){continue}break}}return c}function sa(a){var b=0;b=R-16|0;R=b;Yf(b);o[a+24>>2]=o[b>>2];Dk(a+28|0,b|4);a=a+24|0;if(m[b+15|0]<=-1){jl(o[b+4>>2])}R=b+16|0;return a}function qf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if(!fe(a,b,c)){break a}a=o[a+8>>2];if(p[a+24|0]!=3){break a}d=o[a+28>>2]==9}return d|0}function qa(a){var b=0;yi(a);b=a+16|0;o[b>>2]=0;o[b+4>>2]=0;o[a+24>>2]=0;o[a+28>>2]=0;o[a+12>>2]=b;o[a+32>>2]=0;o[a+36>>2]=0;return a}function Ri(a){a=a|0;var b=0;o[a>>2]=10604;b=o[a+96>>2];if(b){o[a+100>>2]=b;jl(b)}b=o[a+84>>2];if(b){o[a+88>>2]=b;jl(b)}Qi(a);jl(a)}function Lc(a,b){if(b){Lc(a,o[b>>2]);Lc(a,o[b+4>>2]);a=o[b+28>>2];if(a){o[b+32>>2]=a;jl(a)}if(m[b+27|0]<=-1){jl(o[b+16>>2])}jl(b)}}function zd(a){o[a+4>>2]=0;o[a+8>>2]=0;o[a>>2]=1384;o[a+12>>2]=0;o[a+16>>2]=0;o[a+20>>2]=0;o[a+24>>2]=0;o[a+28>>2]=0;o[a+32>>2]=0}function ff(a){a=a|0;var b=0;o[a>>2]=4588;b=o[a+76>>2];if(b){jl(b)}o[a>>2]=2732;b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}return a|0}function Je(a){a=a|0;var b=0;o[a>>2]=3036;b=o[a+76>>2];if(b){jl(b)}o[a>>2]=2732;b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}return a|0}function Rb(){var a=0;a=yk(28);o[a>>2]=0;o[a+4>>2]=0;o[a+24>>2]=0;o[a+16>>2]=0;o[a+20>>2]=0;o[a+8>>2]=0;o[a+12>>2]=0;return a|0}function zk(a,b){var c=0,d=0,e=0,f=0;c=rl(b);d=yk(c+13|0);o[d+8>>2]=0;o[d+4>>2]=c;o[d>>2]=c;e=a,f=ll(d+12|0,b,c+1|0),o[e>>2]=f}function Ed(a){a=a|0;var b=0;o[a>>2]=1384;b=o[a+16>>2];if(b){o[a+20>>2]=b;jl(b)}b=o[a+4>>2];if(b){o[a+8>>2]=b;jl(b)}return a|0}function Fc(a,b){if(b){Fc(a,o[b>>2]);Fc(a,o[b+4>>2]);if(m[b+39|0]<=-1){jl(o[b+28>>2])}if(m[b+27|0]<=-1){jl(o[b+16>>2])}jl(b)}}function yk(a){var b=0,c=0;a=a?a:1;while(1){a:{b=il(a);if(b){break a}c=o[3332];if(!c){break a}l[c]();continue}break}return b}function bl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(Yk(a,o[b+8>>2],0)){$k(b,c,d);return}a=o[a+8>>2];l[o[o[a>>2]+28>>2]](a,b,c,d)}function gf(a){a=a|0;var b=0;o[a>>2]=4588;b=o[a+76>>2];if(b){jl(b)}o[a>>2]=2732;b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}jl(a)}function Oi(a){qj(a);o[a+84>>2]=0;o[a+88>>2]=0;o[a>>2]=10604;o[a+92>>2]=0;o[a+96>>2]=0;o[a+100>>2]=0;o[a+104>>2]=0;return a}function Ke(a){a=a|0;var b=0;o[a>>2]=3036;b=o[a+76>>2];if(b){jl(b)}o[a>>2]=2732;b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}jl(a)}function Lj(a,b,c){if(a|b){while(1){c=c+ -1|0;m[c|0]=a&7|48;a=(b&7)<<29|a>>>3;b=b>>>3|0;if(a|b){continue}break}}return c}function Ic(){var a=0;a=yk(24);o[a+4>>2]=0;o[a+8>>2]=0;o[a+16>>2]=0;o[a+20>>2]=0;o[a>>2]=a+4;o[a+12>>2]=a+16;return a|0}function Nb(){var a=0;a=yk(24);o[a+8>>2]=0;o[a+12>>2]=0;o[a+4>>2]=-1;o[a>>2]=1232;o[a+16>>2]=0;o[a+20>>2]=0;return a|0}function Md(a,b,c){a=a|0;b=b|0;c=c|0;o[a+4>>2]=b;b=o[o[o[b+4>>2]+8>>2]+(c<<2)>>2];o[a+12>>2]=c;o[a+8>>2]=b;return 1}function Kf(a,b,c){a=a|0;b=b|0;c=c|0;if(fe(a,b,c)){a=o[o[o[o[b+4>>2]+8>>2]+(c<<2)>>2]+28>>2]==9}else{a=0}return a|0}function Me(a){a=a|0;var b=0;if(!(!o[a+60>>2]|!o[a+44>>2]|(!o[a+48>>2]|!o[a+52>>2]))){b=o[a+56>>2]!=0}return b|0}function ra(a){var b=0;b=R-32|0;R=b;Wf(b+8|0,a);a=o[b+24>>2];if(m[b+23|0]<=-1){jl(o[b+12>>2])}R=b+32|0;return a}function Yk(a,b,c){if(!c){return o[a+4>>2]==o[b+4>>2]}if((a|0)==(b|0)){return 1}return!ik(o[a+4>>2],o[b+4>>2])}function oi(a){o[a+16>>2]=0;o[a+20>>2]=0;o[a+8>>2]=0;o[a>>2]=0;o[a+4>>2]=0;o[a+24>>2]=0;o[a+28>>2]=0;return a}function Uk(a){var b=0,c=0;a:{b=o[a>>2]+ -12|0;c=b+8|0;a=o[c>>2]+ -1|0;o[c>>2]=a;if((a|0)>-1){break a}jl(b)}}function db(a){var b=0;b=G(8)|0;o[b>>2]=12484;o[b>>2]=12528;zk(b+4|0,a);o[b>>2]=12576;H(b|0,12608,1);D()}function Dc(a){a=a|0;if(a){if(m[a+39|0]<=-1){jl(o[a+28>>2])}Ec(a+12|0,o[a+16>>2]);Fc(a,o[a+4>>2]);jl(a)}}function kf(a){a=a|0;var b=0;o[a>>2]=4812;o[a>>2]=2732;b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}return a|0}function Se(a){a=a|0;var b=0;o[a>>2]=3272;o[a>>2]=2732;b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}return a|0}function uh(a){a=a|0;var b=0;o[a>>2]=8820;b=o[a+36>>2];if(b){jl(b)}b=o[a+24>>2];if(b){jl(b)}return a|0}function Hh(a){a=a|0;var b=0;o[a>>2]=9388;b=o[a+36>>2];if(b){jl(b)}b=o[a+24>>2];if(b){jl(b)}return a|0}function xe(a){a=a|0;var b=0;if(!(!o[a+52>>2]|(!o[a+44>>2]|!o[a+48>>2]))){b=o[a+56>>2]!=0}return b|0}function hl(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(Yk(a,o[b+8>>2],f)){cl(b,c,d,e)}} function lf(a){a=a|0;var b=0;o[a>>2]=4812;o[a>>2]=2732;b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}jl(a)}function Te(a){a=a|0;var b=0;o[a>>2]=3272;o[a>>2]=2732;b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}jl(a)}function Ne(a,b){a=a|0;b=b|0;var c=0;if(!(o[b+56>>2]|!b|p[b+24|0]!=3)){o[a+60>>2]=b;c=1}return c|0}function vh(a){a=a|0;var b=0;o[a>>2]=8820;b=o[a+36>>2];if(b){jl(b)}b=o[a+24>>2];if(b){jl(b)}jl(a)}function dc(a,b,c){a=a|0;b=b|0;c=c|0;o[a+16>>2]=0;o[a+20>>2]=0;o[a>>2]=b;o[a+8>>2]=c;o[a+12>>2]=0}function We(a,b){a=a|0;b=b|0;var c=0;if(!(o[b+56>>2]|p[b+24|0]!=3)){o[a- -64>>2]=b;c=1}return c|0}function Ih(a){a=a|0;var b=0;o[a>>2]=9388;b=o[a+36>>2];if(b){jl(b)}b=o[a+24>>2];if(b){jl(b)}jl(a)}function Fl(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return l[a](b,c,d,e,f,g)|0}function Af(a,b){a=a|0;b=b|0;var c=0;if(!(o[b+56>>2]|p[b+24|0]!=3)){o[a+44>>2]=b;c=1}return c|0}function ti(a,b,c,d){n[a+38>>1]=d;o[a>>2]=b;o[a+16>>2]=0;o[a+20>>2]=0;o[a+8>>2]=c;o[a+12>>2]=0}function Gl(a,b,c,d,e,f,g){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;f=f|0;g=g|0;return l[a](b,c,d,e,f,g)|0}function sk(a){var b=0;if(a>>>0>=11){b=a+16&-16;a=b+ -1|0;a=(a|0)==11?b:a}else{a=10}return a}function ve(a){a=a|0;var b=0;o[a>>2]=2732;b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}return a|0}function Td(a){a=a|0;var b=0;o[a>>2]=1596;b=o[a+16>>2];o[a+16>>2]=0;if(b){Kb(b)}return a|0}function ld(a){a=a|0;var b=0;o[a>>2]=1232;b=o[a+8>>2];if(b){o[a+12>>2]=b;jl(b)}return a|0}function Jl(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=l[a](b,c,d,e)|0;P(T|0);return a|0}function Hl(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;l[a](b,c,d,e,f,g)}function we(a){a=a|0;var b=0;o[a>>2]=2732;b=o[a+32>>2];if(b){o[a+36>>2]=b;jl(b)}jl(a)}function Ud(a){a=a|0;var b=0;o[a>>2]=1596;b=o[a+16>>2];o[a+16>>2]=0;if(b){Kb(b)}jl(a)}function Rl(a){var b=0,c=0;while(1){c=b;if(a){a=a-1&a;b=b+1|0;continue}break}return c}function md(a){a=a|0;var b=0;o[a>>2]=1232;b=o[a+8>>2];if(b){o[a+12>>2]=b;jl(b)}jl(a)}function Bc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Xa(b,c,d,e,f)|0}function ge(a,b){a=a|0;b=b|0;return l[o[o[a>>2]+48>>2]](a,o[b+4>>2]-o[b>>2]>>2)|0}function Ec(a,b){if(b){Ec(a,o[b>>2]);Ec(a,o[b+4>>2]);Fc(b+20|0,o[b+24>>2]);jl(b)}}function Ag(a){a=a|0;if(o[a+44>>2]){return l[o[o[a>>2]+48>>2]](a)|0}return 0} function _e(a,b){a=a|0;b=b|0;if(b>>>0<=1){o[a+28>>2]=b;a=1}else{a=0}return a|0}function Mb(a){a=a|0;var b=0;if(a){b=o[a+8>>2];if(b){o[a+12>>2]=b;jl(b)}jl(a)}}function Ld(a){o[a+12>>2]=-1;o[a+16>>2]=0;o[a+4>>2]=0;o[a+8>>2]=0;o[a>>2]=1596}function al(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(Yk(a,o[b+8>>2],0)){$k(b,c,d)}}function Qk(){var a=0;a=R-16|0;R=a;o[a+12>>2]=0;a=o[2779];Fj(a);Pk(a);K();D()}function Il(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;l[a](b,c,d,e,f)}function pb(a){a=a|0;var b=0;if(a){b=o[a>>2];if(b){o[a+4>>2]=b;jl(b)}jl(a)}}function mb(){var a=0;a=yk(12);o[a>>2]=0;o[a+4>>2]=0;o[a+8>>2]=0;return a|0}function kb(a){a=a|0;var b=0;b=a+4|0;if(m[a+15|0]<=-1){b=o[b>>2]}return b|0}function Kg(a,b){a=a|0;b=b|0;a=o[a+48>>2];return l[o[o[a>>2]+16>>2]](a,b)|0}function Jg(a,b){a=a|0;b=b|0;a=o[a+48>>2];return l[o[o[a>>2]+12>>2]](a,b)|0}function Gk(a,b){var c=0;c=kk(a);if(c>>>0>>0){Hk(a,b-c|0);return}Ik(a,b)}function Cg(a,b){a=a|0;b=b|0;a=o[a+48>>2];return l[o[o[a>>2]+20>>2]](a,b)|0}function lk(a){if(mk(a)){a=(o[a+8>>2]&2147483647)+ -1|0}else{a=10}return a}function Sl(a){var b=0;b=a&31;a=0-a&31;return(-1>>>b&-2)<>>a}function xi(a){a=a+ -1|0;if(a>>>0<=10){return o[(a<<2)+10476>>2]}return-1}function gk(a,b){var c=0,d=0;c=R-16|0;R=c;d=dk(a,b);R=c+16|0;return d?b:a}function ci(a,b){a=a|0;b=b|0;m[b+84|0]=1;o[b+72>>2]=o[b+68>>2];return 1}function Jc(a){a=a|0;if(a){Kc(a+12|0,o[a+16>>2]);Lc(a,o[a+4>>2]);jl(a)}}function Ad(a,b,c){a=a|0;b=b|0;c=c|0;o[a+32>>2]=c;o[a+28>>2]=b;return 1}function jd(a,b,c,d,e){o[a+4>>2]=b;kd(a+8|0,c,(d<<2)+c|0);s[a+20>>2]=e}function dl(a,b,c){if(!(o[a+28>>2]==1|o[a+4>>2]!=(b|0))){o[a+28>>2]=c}}function ak(a,b,c){var d=0;d=R-16|0;R=d;a=ck(a,b,c);R=d+16|0;return a}function yb(){var a=0;a=yk(8);o[a+4>>2]=-1;o[a>>2]=1116;return a|0}function lc(a,b,c){a=a|0;b=b|0;c=c|0;return o[o[b+8>>2]+(c<<2)>>2]}function El(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;l[a](b,c,d,e)}function lb(a){a=a|0;if(a){if(m[a+15|0]<=-1){jl(o[a+4>>2])}jl(a)}}function Ig(a){a=a|0;a=o[a+48>>2];return l[o[o[a>>2]+36>>2]](a)|0}function Fg(a){a=a|0;a=o[a+48>>2];return l[o[o[a>>2]+28>>2]](a)|0}function Eg(a){a=a|0;a=o[a+48>>2];return l[o[o[a>>2]+24>>2]](a)|0}function Bl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return l[a](b,c,d)|0}function zc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ra(b,c,d)|0}function yc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Oa(b,c,d)|0}function xc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ma(b,c,d)|0}function wc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ja(b,c,d)|0}function vc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ta(b,c,d)|0}function uc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ha(b,c,d)|0}function tc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Fa(b,c,d)|0}function sc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ea(b,c,d)|0}function rc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Da(b,c,d)|0}function pc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return wa(b,c,d)|0}function kc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return va(b,c,d)|0}function Nd(a,b){a=a|0;b=b|0;o[a+12>>2]=-1;o[a+8>>2]=b;return 1}function Ac(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Va(b,c,d)|0}function zb(a,b){a=a|0;b=b|0;return l[o[o[a>>2]+12>>2]](a,b)|0}function tk(a){if(4294967295>>0){db(12086);D()}return yk(a)}function sl(a,b){a=a|0;b=b|0;if(!o[3457]){o[3458]=b;o[3457]=a}}function Mf(a,b){a=a|0;b=b|0;return l[o[o[a>>2]+56>>2]](a,b)|0}function Lb(){var a=0;a=yk(40);o[a>>2]=-1;oi(a+8|0);return a|0}function Ob(a,b){a=a|0;b=b|0;return v(s[o[a+8>>2]+(b<<2)>>2])}function yi(a){o[a+4>>2]=0;o[a+8>>2]=0;o[a>>2]=a+4;return a}function $b(a,b){a=a|0;b=b|0;return v(s[o[a>>2]+(b<<2)>>2])}function kk(a){if(mk(a)){return o[a+4>>2]}return p[a+11|0]}function Hd(a,b){a=a|0;b=b|0;return o[o[a+4>>2]+(b<<2)>>2]}function Hc(a){a=a|0;return(o[a+100>>2]-o[a+96>>2]|0)/12|0}function Tl(a){if(a){return 31-x(a+ -1^a)|0}return 32} function wb(a,b){a=a|0;b=b|0;return o[o[a>>2]+(b<<2)>>2]}function nb(a,b){a=a|0;b=b|0;return q[o[a>>2]+(b<<1)>>1]}function _b(a,b){a=a|0;b=b|0;return n[o[a>>2]+(b<<1)>>1]}function Dl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;l[a](b,c,d)}function zl(a,b,c){a=a|0;b=b|0;c=c|0;return l[a](b,c)|0}function rf(a,b,c){a=a|0;b=b|0;c=c|0;return ke(a,b,c)|0}function hc(a,b,c){a=a|0;b=b|0;c=c|0;return ta(a,b,c)|0}function fe(a,b,c){a=a|0;b=b|0;c=c|0;return Md(a,b,c)|0}function Yb(a,b,c){a=a|0;b=b|0;c=c|0;return oa(a,b,c)|0}function Wb(a,b,c){a=a|0;b=b|0;c=c|0;return na(a,b,c)|0}function Tk(a){a=a|0;o[a>>2]=12528;Uk(a+4|0);return a|0}function Ub(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;la(b,c,d)}function qc(a,b,c){a=a|0;b=b|0;c=c|0;return xa(b,c)|0}function oc(a,b,c){a=a|0;b=b|0;c=c|0;return cb(b,c)|0}function mc(a,b,c){a=a|0;b=b|0;c=c|0;return tj(b,c)|0}function jc(a,b,c){a=a|0;b=b|0;c=c|0;return ua(b,c)|0}function ic(a,b,c){a=a|0;b=b|0;c=c|0;return rj(b,c)|0}function Tb(a,b,c){a=a|0;b=b|0;c=c|0;return ka(b,c)|0}function Sb(a,b,c){a=a|0;b=b|0;c=c|0;return ia(b,c)|0}function Kk(a){if(kk(a)>>>0<=0){bk();D()}return nk(a)}function Dk(a,b){if((a|0)!=(b|0)){Ek(a,nk(b),kk(b))}}function rb(a){a=a|0;return o[a+12>>2]-o[a+8>>2]>>2}function qj(a){o[a>>2]=11e3;ml(a+4|0,0,80);return a}function gc(a,b,c){a=a|0;b=b|0;c=c|0;return sa(a)|0}function Vb(a,b,c){a=a|0;b=b|0;c=c|0;return+ma(b,c)}function ub(a,b){a=a|0;b=b|0;return p[o[a>>2]+b|0]}function Qb(a,b){a=a|0;b=b|0;return m[o[a>>2]+b|0]}function Id(a){a=a|0;return o[a+8>>2]-o[a+4>>2]>>2}function wk(a,b){if(mk(a)){qk(a,b);return}rk(a,b)}function tb(a){a=a|0;if(a){l[o[o[a>>2]+4>>2]](a)}}function Wj(a){if(!a){return 0}o[3314]=a;return-1}function Mg(a,b){a=a|0;b=b|0;o[a+4>>2]=b;return 1}function xb(a){a=a|0;return o[a+4>>2]-o[a>>2]>>2}function ob(a){a=a|0;return o[a+4>>2]-o[a>>2]>>1}function nk(a){if(mk(a)){return o[a>>2]}return a}function hk(a){o[a>>2]=0;o[a+4>>2]=0;o[a+8>>2]=0}function vb(a){a=a|0;return o[a+4>>2]-o[a>>2]|0}function Dj(a,b){if(!a){return 0}return Cj(a,b)}function zg(a){fi(a);o[a+44>>2]=0;o[a>>2]=8024}function ee(a){Ld(a);o[a+20>>2]=0;o[a>>2]=1908}function Hj(a,b,c){if(!(p[a|0]&32)){ql(b,c,a)}}function Al(a,b,c){a=a|0;b=b|0;c=c|0;l[a](b,c)}function xl(a,b){a=a|0;b=b|0;return l[a](b)|0}function ul(a){a=a|0;a=R-a&-16;R=a;return a|0}function qe(a){a=a|0;return m[o[a+8>>2]+24|0]}function nc(a,b){a=a|0;b=b|0;return o[b+4>>2]}function Xb(a,b){a=a|0;b=b|0;return o[b+8>>2]}function Pd(a,b,c){a=a|0;b=b|0;c=c|0;return 1}function xf(a){a=a|0;o[a>>2]=5700;return a|0}function Gf(a){a=a|0;o[a>>2]=6704;return a|0}function fc(a,b){a=a|0;b=b|0;return ra(b)|0}function Ql(a,b,c,d){a=Nl(a,b,c,d);return a}function Qj(a){a=a|0;return I(o[a+60>>2])|0}function Pl(a,b,c,d){a=Ml(a,b,c,d);return a}function Ol(a,b,c,d){a=Ll(a,b,c,d);return a}function Pb(a){a=a|0;return v(s[a+20>>2])}function vk(a,b){o[a+8>>2]=b|-2147483648}function yf(a){a=a|0;o[a>>2]=5700;jl(a)}function pi(a,b,c,d){return qi(a,b,c,d)}function dk(a,b){return r[a>>2]>2]}function Hf(a){a=a|0;o[a>>2]=6704;jl(a)}function sb(a){a=a|0;return o[a+80>>2]}function Jb(a){a=a|0;return o[a+60>>2]}function Ib(a){a=a|0;return o[a+48>>2]}function Hb(a){a=a|0;return o[a+40>>2]}function Eb(a){a=a|0;return o[a+28>>2]}function Db(a){a=a|0;return o[a+56>>2]}function Cb(a){a=a|0;return o[a+88>>2]}function ze(a,b){a=a|0;b=b|0;return-1}function jb(a){a=a|0;return!o[a>>2]|0}function hh(a){a=a|0;return o[a+8>>2]}function Wk(a){a=a|0;return o[a+4>>2]}function Kd(a,b){a=a|0;b=b|0;return 1}function Jd(a,b){a=a|0;b=b|0;return 0}function Gb(a){a=a|0;return p[a+32|0]}function Fb(a){a=a|0;return m[a+24|0]}function Ab(a){a=a|0;return o[a+4>>2]}function yl(a,b){a=a|0;b=b|0;l[a](b)}function wl(a){a=a|0;return V(a|0)|0}function Cc(a,b){a=a|0;b=b|0;Zf(a,b)}function ib(a){a=a|0;return o[a>>2]}function ek(a,b,c){if(c){ll(a,b,c)}}function Bj(a){return a+ -48>>>0<10}function $j(a,b,c){return ak(a,b,c)}function Gc(){return Oi(yk(108))|0}function qb(){return qj(yk(84))|0}function mk(a){return m[a+11|0]<0}function ec(){return qa(yk(40))|0}function cc(){return si(yk(40))|0}function bc(a){a=a|0;if(a){jl(a)}}function ac(){return qd(yk(64))|0}function Sk(a){a=a|0;return 12461}function Bb(){return ud(yk(96))|0}function Xk(a){a=a|0;Tk(a);jl(a)}function fk(a,b){return gk(a,b)}function ed(a){a=a|0;return a|0}function sh(a){a=a|0;jl(qh(a))}function pk(a,b){m[a|0]=p[b|0]}function ph(a){a=a|0;jl(oh(a))}function Vk(a){a=a|0;jl(Tk(a))}function Aj(a){a=a|0;jl(Qi(a))}function ye(a){a=a|0;return 0}function nd(a){a=a|0;return 1}function gd(a){a=a|0;return 2}function Ue(a){a=a|0;return 6}function Le(a){a=a|0;return 5}function Ee(a){a=a|0;return 4}function Bf(a){a=a|0;return 3}function rk(a,b){m[a+11|0]=b}function qk(a,b){o[a+4>>2]=b}function Nk(){db(12424);D()}function Kl(a,b){i(a|0,b|0)}function Cl(a){a=a|0;l[a]()}function Ak(){db(12360);D()}function uk(a,b){o[a>>2]=b}function fd(a){a=a|0;jl(a)}function vl(a){a=a|0;R=a}function tl(){return R|0}function Fd(a){a=a|0;D()}function bd(){return 12}function ad(){return 11}function $c(){return 10}function _c(){return 9}function Zc(){return 8}function Yc(){return 7}function Xc(){return 6}function Wc(){return 5}function Vc(){return 4}function Uc(){return 3}function Tc(){return 2}function Sc(){return 1}function Rk(){Qk();D()}function Rc(){return-5}function Qc(){return-4}function Pc(){return-3}function Ok(){bk();D()}function Oc(){return-2}function Nc(){return-1}function Mc(){return 0}function bk(){K();D()}function ok(a){a=a|0}function ha(){jk()} // EMSCRIPTEN_END_FUNCS l[1]=Tk;l[2]=ed;l[3]=fd;l[4]=gd;l[5]=cd;l[6]=dd;l[7]=ld;l[8]=md;l[9]=nd;l[10]=hd;l[11]=id;l[12]=Ed;l[13]=Fd;l[14]=Ad;l[15]=Bd;l[16]=Gd;l[17]=Hd;l[18]=Id;l[19]=Eb;l[20]=Jd;l[21]=Rk;l[22]=Kd;l[23]=nd;l[24]=Td;l[25]=Ud;l[26]=Md;l[27]=Nd;l[28]=Od;l[29]=Pd;l[30]=Kd;l[31]=Rd;l[32]=Sd;l[33]=be;l[34]=ce;l[35]=Wd;l[36]=Yd;l[37]=de;l[38]=Zd;l[39]=_d;l[40]=$d;l[41]=ae;l[42]=oe;l[43]=pe;l[44]=fe;l[45]=ge;l[46]=he;l[47]=ke;l[48]=ie;l[49]=qe;l[50]=me;l[51]=ve;l[52]=we;l[53]=nd;l[54]=Ab;l[55]=xe;l[56]=ye;l[57]=ze;l[58]=Jd;l[59]=ye;l[60]=nd;l[61]=Ae;l[62]=Be;l[63]=Fd;l[64]=Fd;l[65]=Ce;l[66]=De;l[67]=Ee;l[68]=xe;l[69]=Fe;l[70]=Ie;l[71]=Je;l[72]=Ke;l[73]=Le;l[74]=Me;l[75]=nd;l[76]=Jd;l[77]=Ne;l[78]=Oe;l[79]=Pe;l[80]=Se;l[81]=Te;l[82]=Ue;l[83]=Ve;l[84]=nd;l[85]=Jd;l[86]=We;l[87]=Xe;l[88]=Ye;l[89]=ed;l[90]=fd;l[91]=_e;l[92]=Eb;l[93]=Ze;l[94]=Fd;l[95]=we;l[96]=nd;l[97]=xe;l[98]=bf;l[99]=Fd;l[100]=cf;l[101]=df;l[102]=Ee;l[103]=xe;l[104]=Fe;l[105]=ef;l[106]=ff;l[107]=gf;l[108]=Le;l[109]=Me;l[110]=nd;l[111]=Jd;l[112]=Ne;l[113]=Oe;l[114]=hf;l[115]=kf;l[116]=lf;l[117]=Ue;l[118]=Ve;l[119]=nd;l[120]=Jd;l[121]=We;l[122]=Xe;l[123]=mf;l[124]=ed;l[125]=fd;l[126]=_e;l[127]=Eb;l[128]=nf;l[129]=Fd;l[130]=we;l[131]=ye;l[132]=nd;l[133]=pf;l[134]=pe;l[135]=qf;l[136]=sf;l[137]=rf;l[138]=vf;l[139]=gd;l[140]=tf;l[141]=xf;l[142]=yf;l[143]=Ue;l[144]=Ab;l[145]=zf;l[146]=nd;l[147]=Jd;l[148]=Af;l[149]=nd;l[150]=Bf;l[151]=Cf;l[152]=Df;l[153]=ed;l[154]=fd;l[155]=_e;l[156]=Eb;l[157]=Ze;l[158]=Gf;l[159]=Hf;l[160]=Ue;l[161]=zf;l[162]=nd;l[163]=Jd;l[164]=Af;l[165]=Cf;l[166]=If;l[167]=ed;l[168]=fd;l[169]=_e;l[170]=Eb;l[171]=nf;l[172]=ed;l[173]=fd;l[174]=ye;l[175]=nd;l[176]=ye;l[177]=ze;l[178]=Jd;l[179]=Ff;l[180]=Jf;l[181]=Pf;l[182]=Qf;l[183]=Kf;l[184]=Lf;l[185]=rf;l[186]=Mf;l[187]=Nf;l[188]=Of;l[189]=Bg;l[190]=Fd;l[191]=nd;l[192]=nd;l[193]=Ag;l[194]=ki;l[195]=li;l[196]=nd;l[197]=ye;l[198]=Jd;l[199]=Jd;l[200]=Gg;l[201]=Hg;l[202]=Dg;l[203]=Cg;l[204]=Fg;l[205]=Ig;l[206]=Jg;l[207]=Kg;l[208]=Eg;l[209]=oh;l[210]=ph;l[211]=Mg;l[212]=Ng;l[213]=Og;l[214]=Pg;l[215]=Wg;l[216]=nd;l[217]=Ab;l[218]=hh;l[219]=qh;l[220]=sh;l[221]=Mg;l[222]=Ng;l[223]=Og;l[224]=Pg;l[225]=jh;l[226]=nd;l[227]=Ab;l[228]=hh;l[229]=Vg;l[230]=th;l[231]=Ug;l[232]=uh;l[233]=vh;l[234]=zh;l[235]=Ah;l[236]=Bh;l[237]=Ch;l[238]=yh;l[239]=Gh;l[240]=wh;l[241]=Hh;l[242]=Ih;l[243]=Kh;l[244]=Lh;l[245]=Mh;l[246]=Nh;l[247]=Jh;l[248]=Ph;l[249]=Qh;l[250]=Rh;l[251]=Sh;l[252]=Th;l[253]=bi;l[254]=ai;l[255]=Yh;l[256]=ed;l[257]=fd;l[258]=ci;l[259]=di;l[260]=Fd;l[261]=ye;l[262]=nd;l[263]=Pi;l[264]=Ri;l[265]=Si;l[266]=Ui;l[267]=Qi;l[268]=Aj;l[269]=wj;l[270]=yj;l[271]=Qj;l[272]=Sj;l[273]=Rj;l[274]=Oj;l[275]=Pj;l[276]=ed;l[277]=fd;l[278]=Sk;l[279]=Vk;l[280]=Wk;l[281]=Xk;l[282]=ed;l[283]=fd;l[284]=ok;l[285]=ok;l[286]=Zk;l[287]=hl;l[288]=fl;l[289]=al;l[290]=fd;l[291]=gl;l[292]=el;l[293]=bl;function U(){return buffer.byteLength/65536|0}function V(pagesToAdd){pagesToAdd=pagesToAdd|0;var W=U()|0;var X=W+pagesToAdd|0;if(W=0;--$){_[48+$]=52+$;_[65+$]=$;_[97+$]=26+$}_[43]=62;_[47]=63;function aa(uint8Array,offset,b64){var ba,ca,$=0,da=offset,ea=b64.length,fa=offset+(ea*3>>2);if(b64[ea-2]=="=")--fa;if(b64[ea-1]=="=")--fa;for(;$>4;if(da+1>2;if(da+2>0]=value;break;case"i8":HEAP8[ptr>>0]=value;break;case"i16":HEAP16[ptr>>1]=value;break;case"i32":HEAP32[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math_abs(tempDouble)>=1?tempDouble>0?(Math_min(+Math_floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[ptr>>2]=tempI64[0],HEAP32[ptr+4>>2]=tempI64[1];break;case"float":HEAPF32[ptr>>2]=value;break;case"double":HEAPF64[ptr>>3]=value;break;default:abort("invalid type for setValue: "+type)}}var wasmMemory;var wasmTable=new WebAssembly.Table({"initial":294,"maximum":294+0,"element":"anyfunc"});var ABORT=false;var EXITSTATUS=0;function assert(condition,text){if(!condition){abort("Assertion failed: "+text)}}function getCFunc(ident){var func=Module["_"+ident];assert(func,"Cannot call unknown function "+ident+", make sure it is exported");return func}function ccall(ident,returnType,argTypes,args,opts){var toC={"string":function(str){var ret=0;if(str!==null&&str!==undefined&&str!==0){var len=(str.length<<2)+1;ret=stackAlloc(len);stringToUTF8(str,ret,len)}return ret},"array":function(arr){var ret=stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}};function convertReturnValue(ret){if(returnType==="string")return UTF8ToString(ret);if(returnType==="boolean")return Boolean(ret);return ret}var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;i=endIdx))++endPtr;if(endPtr-idx>16&&u8Array.subarray&&UTF8Decoder){return UTF8Decoder.decode(u8Array.subarray(idx,endPtr))}else{var str="";while(idx>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,outU8Array,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;outU8Array[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;outU8Array[outIdx++]=192|u>>6;outU8Array[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;outU8Array[outIdx++]=224|u>>12;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;outU8Array[outIdx++]=240|u>>18;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}}outU8Array[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4}return len}var UTF16Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf-16le"):undefined;function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}var WASM_PAGE_SIZE=65536;function alignUp(x,multiple){if(x%multiple>0){x+=multiple-x%multiple}return x}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf)}var STACK_BASE=5256880,DYNAMIC_BASE=5256880,DYNAMICTOP_PTR=13840;var INITIAL_INITIAL_MEMORY=Module["INITIAL_MEMORY"]||16777216;if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);HEAP32[DYNAMICTOP_PTR>>2]=DYNAMIC_BASE;function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback();continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){Module["dynCall_v"](func)}else{Module["dynCall_vi"](func,callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){runtimeExited=true}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnPreMain(cb){__ATMAIN__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}if(!Math.imul||Math.imul(4294967295,5)!==-5)Math.imul=function imul(a,b){var ah=a>>>16;var al=a&65535;var bh=b>>>16;var bl=b&65535;return al*bl+(ah*bl+al*bh<<16)|0};if(!Math.fround){var froundBuffer=new Float32Array(1);Math.fround=function(x){froundBuffer[0]=x;return froundBuffer[0]}}if(!Math.clz32)Math.clz32=function(x){var n=32;var y=x>>16;if(y){n-=16;x=y}y=x>>8;if(y){n-=8;x=y}y=x>>4;if(y){n-=4;x=y}y=x>>2;if(y){n-=2;x=y}y=x>>1;if(y)return n-2;return n-x};if(!Math.trunc)Math.trunc=function(x){return x<0?Math.ceil(x):Math.floor(x)};var Math_abs=Math.abs;var Math_ceil=Math.ceil;var Math_floor=Math.floor;var Math_min=Math.min;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["preloadedImages"]={};Module["preloadedAudios"]={};function abort(what){if(Module["onAbort"]){Module["onAbort"](what)}what+="";out(what);err(what);ABORT=true;EXITSTATUS=1;what="abort("+what+"). Build with -s ASSERTIONS=1 for more info.";throw new WebAssembly.RuntimeError(what)}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return String.prototype.startsWith?filename.startsWith(dataURIPrefix):filename.indexOf(dataURIPrefix)===0}var wasmBinaryFile="draco_decoder.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(){try{if(wasmBinary){return new Uint8Array(wasmBinary)}var binary=tryParseAsDataURI(wasmBinaryFile);if(binary){return binary}if(readBinary){return readBinary(wasmBinaryFile)}else{throw"both async and sync fetching of the wasm failed"}}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&typeof fetch==="function"){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"]){throw"failed to load wasm binary file at '"+wasmBinaryFile+"'"}return response["arrayBuffer"]()}).catch(function(){return getBinary()})}return new Promise(function(resolve,reject){resolve(getBinary())})}function createWasm(){var info={"env":asmLibraryArg,"wasi_snapshot_preview1":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiatedSource(output){receiveInstance(output["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming==="function"&&!isDataURI(wasmBinaryFile)&&typeof fetch==="function"){fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiatedSource,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");instantiateArrayBuffer(receiveInstantiatedSource)})})}else{return instantiateArrayBuffer(receiveInstantiatedSource)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync();return{}}var tempDouble;var tempI64;__ATINIT__.push({func:function(){___wasm_call_ctors()}});function demangle(func){return func}function demangleAll(text){var regex=/\b_Z[\w\d_]+/g;return text.replace(regex,function(x){var y=demangle(x);return x===y?x:y+" ["+x+"]"})}function jsStackTrace(){var err=new Error;if(!err.stack){try{throw new Error}catch(e){err=e}if(!err.stack){return"(no stack trace available)"}}return err.stack.toString()}function ___cxa_allocate_exception(size){return _malloc(size)}var ___exception_infos={};var ___exception_last=0;function __ZSt18uncaught_exceptionv(){return __ZSt18uncaught_exceptionv.uncaught_exceptions>0}function ___cxa_throw(ptr,type,destructor){___exception_infos[ptr]={ptr:ptr,adjusted:[ptr],type:type,destructor:destructor,refcount:0,caught:false,rethrown:false};___exception_last=ptr;if(!("uncaught_exception"in __ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exceptions=1}else{__ZSt18uncaught_exceptionv.uncaught_exceptions++}throw ptr}function _abort(){abort()}function _emscripten_get_sbrk_ptr(){return 13840}var _emscripten_memcpy_big=Uint8Array.prototype.copyWithin?function(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}:function(dest,src,num){HEAPU8.set(HEAPU8.subarray(src,src+num),dest)};function _emscripten_get_heap_size(){return HEAPU8.length}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){var oldSize=_emscripten_get_heap_size();var PAGE_MULTIPLE=65536;var maxHeapSize=2147483648-PAGE_MULTIPLE;if(requestedSize>maxHeapSize){return false}var minHeapSize=16777216;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(minHeapSize,requestedSize,overGrownHeapSize),PAGE_MULTIPLE));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}var ENV={};function __getExecutableName(){return thisProgram||"./this.program"}function _emscripten_get_environ(){if(!_emscripten_get_environ.strings){var env={"USER":"web_user","LOGNAME":"web_user","PATH":"/","PWD":"/","HOME":"/home/web_user","LANG":(typeof navigator==="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8","_":__getExecutableName()};for(var x in ENV){env[x]=ENV[x]}var strings=[];for(var x in env){strings.push(x+"="+env[x])}_emscripten_get_environ.strings=strings}return _emscripten_get_environ.strings}function _environ_get(__environ,environ_buf){var strings=_emscripten_get_environ();var bufSize=0;strings.forEach(function(string,i){var ptr=environ_buf+bufSize;HEAP32[__environ+i*4>>2]=ptr;writeAsciiToMemory(string,ptr);bufSize+=string.length+1});return 0}function _environ_sizes_get(penviron_count,penviron_buf_size){var strings=_emscripten_get_environ();HEAP32[penviron_count>>2]=strings.length;var bufSize=0;strings.forEach(function(string){bufSize+=string.length+1});HEAP32[penviron_buf_size>>2]=bufSize;return 0}var PATH={splitPath:function(filename){var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)},normalizeArray:function(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up;up--){parts.unshift("..")}}return parts},normalize:function(path){var isAbsolute=path.charAt(0)==="/",trailingSlash=path.substr(-1)==="/";path=PATH.normalizeArray(path.split("/").filter(function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path},dirname:function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir},basename:function(path){if(path==="/")return"/";var lastSlash=path.lastIndexOf("/");if(lastSlash===-1)return path;return path.substr(lastSlash+1)},extname:function(path){return PATH.splitPath(path)[3]},join:function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join("/"))},join2:function(l,r){return PATH.normalize(l+"/"+r)}};var SYSCALLS={mappings:{},buffers:[null,[],[]],printChar:function(stream,curr){var buffer=SYSCALLS.buffers[stream];if(curr===0||curr===10){(stream===1?out:err)(UTF8ArrayToString(buffer,0));buffer.length=0}else{buffer.push(curr)}},varargs:undefined,get:function(){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret},getStr:function(ptr){var ret=UTF8ToString(ptr);return ret},get64:function(low,high){return low}};function _fd_close(fd){return 0}function _fd_seek(fd,offset_low,offset_high,whence,newOffset){}function _fd_write(fd,iov,iovcnt,pnum){var num=0;for(var i=0;i>2];var len=HEAP32[iov+(i*8+4)>>2];for(var j=0;j>2]=num;return 0}var ASSERTIONS=false;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}function intArrayToString(array){var ret=[];for(var i=0;i255){if(ASSERTIONS){assert(false,"Character code "+chr+" ("+String.fromCharCode(chr)+") at offset "+i+" not in 0x00-0xFF.")}chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}var decodeBase64=typeof atob==="function"?atob:function(input){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output=output+String.fromCharCode(chr1);if(enc3!==64){output=output+String.fromCharCode(chr2)}if(enc4!==64){output=output+String.fromCharCode(chr3)}}while(i0){return}preRun();if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();preMain();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else{doRun()}}Module["run"]=run;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}noExitRuntime=true;run();function WrapperObject(){}WrapperObject.prototype=Object.create(WrapperObject.prototype);WrapperObject.prototype.constructor=WrapperObject;WrapperObject.prototype.__class__=WrapperObject;WrapperObject.__cache__={};Module["WrapperObject"]=WrapperObject;function getCache(__class__){return(__class__||WrapperObject).__cache__}Module["getCache"]=getCache;function wrapPointer(ptr,__class__){var cache=getCache(__class__);var ret=cache[ptr];if(ret)return ret;ret=Object.create((__class__||WrapperObject).prototype);ret.ptr=ptr;return cache[ptr]=ret}Module["wrapPointer"]=wrapPointer;function castObject(obj,__class__){return wrapPointer(obj.ptr,__class__)}Module["castObject"]=castObject;Module["NULL"]=wrapPointer(0);function destroy(obj){if(!obj["__destroy__"])throw"Error: Cannot destroy object. (Did you create it yourself?)";obj["__destroy__"]();delete getCache(obj.__class__)[obj.ptr]}Module["destroy"]=destroy;function compare(obj1,obj2){return obj1.ptr===obj2.ptr}Module["compare"]=compare;function getPointer(obj){return obj.ptr}Module["getPointer"]=getPointer;function getClass(obj){return obj.__class__}Module["getClass"]=getClass;var ensureCache={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ensureCache.needed){for(var i=0;i=ensureCache.size){assert(len>0);ensureCache.needed+=len;ret=Module["_malloc"](len);ensureCache.temps.push(ret)}else{ret=ensureCache.buffer+ensureCache.pos;ensureCache.pos+=len}return ret},copy:function(array,view,offset){var offsetShifted=offset;var bytes=view.BYTES_PER_ELEMENT;switch(bytes){case 2:offsetShifted>>=1;break;case 4:offsetShifted>>=2;break;case 8:offsetShifted>>=3;break}for(var i=0;i