var H264bsd = (() => { var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined; if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename; return ( function(H264bsd) { H264bsd = H264bsd || {}; var Module=typeof H264bsd!="undefined"?H264bsd:{};var readyPromiseResolve,readyPromiseReject;Module["ready"]=new Promise(function(resolve,reject){readyPromiseResolve=resolve;readyPromiseReject=reject});var moduleOverrides=Object.assign({},Module);var arguments_=[];var thisProgram="./this.program";var quit_=(status,toThrow)=>{throw toThrow};var ENVIRONMENT_IS_WEB=typeof window=="object";var ENVIRONMENT_IS_WORKER=typeof importScripts=="function";var ENVIRONMENT_IS_NODE=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;function logExceptionOnExit(e){if(e instanceof ExitStatus)return;let toLog=e;err("exiting due to exception: "+toLog)}var fs;var nodePath;var requireNodeFS;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}requireNodeFS=(()=>{if(!nodePath){fs=require("fs");nodePath=require("path")}});read_=function shell_read(filename,binary){var ret=tryParseAsDataURI(filename);if(ret){return binary?ret:ret.toString()}requireNodeFS();filename=nodePath["normalize"](filename);return fs.readFileSync(filename,binary?undefined:"utf8")};readBinary=(filename=>{var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}return ret});readAsync=((filename,onload,onerror)=>{var ret=tryParseAsDataURI(filename);if(ret){onload(ret)}requireNodeFS();filename=nodePath["normalize"](filename);fs.readFile(filename,function(err,data){if(err)onerror(err);else onload(data.buffer)})});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",function(reason){throw reason});quit_=((status,toThrow)=>{if(keepRuntimeAlive()){process["exitCode"]=status;throw toThrow}logExceptionOnExit(toThrow);process["exit"](status)});Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1)}else{scriptDirectory=""}{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=(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=((url,onload,onerror)=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";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=(title=>document.title=title)}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var wasmBinary;if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];var noExitRuntime=Module["noExitRuntime"]||true;var WebAssembly={Memory:function(opts){this.buffer=new ArrayBuffer(opts["initial"]*65536)},Module:function(binary){},Instance:function(module,info){this.exports=( // EMSCRIPTEN_START_ASM function instantiate(Z){function c(d){d.set=function(a,b){this[a]=b};d.get=function(a){return this[a]};return d}var e;var f=new Uint8Array(123);for(var a=25;a>=0;--a){f[48+a]=52+a;f[65+a]=a;f[97+a]=26+a}f[43]=62;f[47]=63;function l(m,n,o){var g,h,a=0,i=n,j=o.length,k=n+(j*3>>2)-(o[j-2]=="=")-(o[j-1]=="=");for(;a>4;if(i>2;if(i>2]=0;a:{b:{if(!(!v[a+3344>>2]|v[a+3348>>2]!=(b|0))){v[F+208>>2]=v[a+3372>>2];c=a+3364|0;b=v[c+4>>2];v[F+200>>2]=v[c>>2];v[F+204>>2]=b;c=v[a+3356>>2];b=v[a+3360>>2];v[F+208>>2]=0;v[F+200>>2]=0;v[F+192>>2]=c;v[F+196>>2]=b;v[F+196>>2]=c;v[e>>2]=v[a+3352>>2];break b}c:{d:{e:{j=b;if(w[b|0]|c>>>0<4|w[b+1|0]){break e}D=w[j+2|0];if(D>>>0>1){break e}f=3;g=j+3|0;i=2;f:{while(1){z=g;b=D&255;if(b){D=0;if((b|0)==1&i>>>0>1){break f}i=0}else{i=i+1|0}g=z+1|0;D=w[z|0];f=f+1|0;if((f|0)!=(c|0)){continue}break}v[e>>2]=c;g=1;break c}b=f;i=0;g=0;while(1){h=w[z|0];l=!h+D|0;i=(h|0)==3?(l|0)==2?1:i:i;if(!((h|0)!=1|l>>>0<2)){c=b-(f+l|0)|0;v[F+204>>2]=c;b=l-3|0;D=b>>>0>l>>>0?0:b;break d}D=h?0:l;g=h?l>>>0>2?1:g:g;z=z+1|0;b=b+1|0;if((c|0)!=(b|0)){continue}break}c=c-(f+D|0)|0;v[F+204>>2]=c;break d}v[F+204>>2]=c;i=1;D=0}v[F+208>>2]=0;v[F+200>>2]=0;b=f+j|0;v[F+196>>2]=b;v[F+192>>2]=b;v[e>>2]=(f+D|0)+c;D=1;g:{if(g){break g}D=0;if(!i){break g}h=F;f=v[h+204>>2];h:{if(!f){c=b;g=0;break h}c=b;z=0;while(1){f=f-1|0;g=w[c|0];i:{j:{if((z|0)!=2){break j}if((g|0)==3){g=1;if(!f){break c}g=1;if(w[c+1|0]>3){break c}z=0;c=c+1|0;break i}if(g>>>0>=3){break j}g=1;break c}t[b|0]=g;z=g?0:z+1|0;b=b+1|0;c=c+1|0}if(f){continue}break}g=v[F+204>>2]}v[h+204>>2]=g+(b-c|0)}g=D}if(g){v[F+176>>2]=4084;aa(v[2372],F+176|0);b=3;break a}b=v[F+196>>2];v[a+3356>>2]=v[F+192>>2];v[a+3360>>2]=b;v[a+3372>>2]=v[F+208>>2];b=v[F+204>>2];c=a+3364|0;v[c>>2]=v[F+200>>2];v[c+4>>2]=b;b=v[e>>2];v[a+3348>>2]=j;v[a+3352>>2]=b}b=0;v[a+3344>>2]=0;f=1;c=F+192|0;k:{if(($(c,1)|0)==-1){break k}v[F+316>>2]=$(c,2);h=$(c,5);v[F+312>>2]=h;if(h-2>>>0<3){break k}l:{if(h>>>0>12){break l}c=1<>2]){break k}if((h|0)!=6){break l}break k}if(v[F+316>>2]){break k}}f=0}if(f){v[F+160>>2]=4034;aa(v[2372],F+160|0);b=3;break a}if(v[F+312>>2]-13>>>0<4294967284){break a}n=F+192|0;g=0;k=T-32|0;T=k;v[F+188>>2]=0;c=v[F+312>>2];m:{if(c>>>0>18){break m}c=1<>2]){v[F+188>>2]=1;v[a+1332>>2]=0}g=Ia(n,k+28|0);if(g){break m}g=65520;i=v[((v[k+28>>2]<<2)+a|0)+148>>2];if(!i){break m}h=v[i+4>>2];l=v[((h<<2)+a|0)+20>>2];if(!l){break m}c=v[a+8>>2];if(!((c|0)==32|(c|0)==(h|0))&v[F+312>>2]!=5){break m}h=v[a+1304>>2];c=v[F+316>>2];if(!((h|0)==(c|0)|(c?h:0))){v[F+188>>2]=1}c=v[F+312>>2];n:{o:{if(v[a+1300>>2]==5){if((c|0)!=5){break o}break n}if((c|0)!=5){break n}}v[F+188>>2]=1}g=1;h=v[l+12>>2];f=T-32|0;T=f;v[f+16>>2]=v[n+16>>2];c=v[n+12>>2];v[f+8>>2]=v[n+8>>2];v[f+12>>2]=c;c=v[n+4>>2];v[f>>2]=v[n>>2];v[f+4>>2]=c;o=_(f,f+28|0);p:{if(o){break p}o=_(f,f+28|0);if(o){break p}o=_(f,f+28|0);if(o){break p}c=$(f,31-E(h)|0);if((c|0)==-1){o=1;break p}v[k+24>>2]=c;o=0}T=f+32|0;if(o){break m}c=v[k+24>>2];if((c|0)!=v[a+1308>>2]){v[a+1308>>2]=c;v[F+188>>2]=1}if(v[F+312>>2]==5){j=v[l+12>>2];h=k+20|0;r=T-32|0;T=r;v[r+16>>2]=v[n+16>>2];c=v[n+4>>2];v[r>>2]=v[n>>2];v[r+4>>2]=c;c=v[n+12>>2];v[r+8>>2]=v[n+8>>2];v[r+12>>2]=c;f=_(r,r+28|0);q:{if(f){break q}f=_(r,r+28|0);if(f){break q}f=_(r,r+28|0);if(f){break q}f=1;if(($(r,31-E(j)|0)|0)==-1){break q}f=_(r,h)}T=r+32|0;if(f){break m}r:{if(v[a+1300>>2]!=5){c=v[k+20>>2];break r}c=v[a+1312>>2];h=v[k+20>>2];if((c|0)==(h|0)){break r}v[F+188>>2]=1;c=h}v[a+1312>>2]=c}s:{t:{u:{switch(v[l+16>>2]){case 0:h=v[F+312>>2];f=T-32|0;T=f;v[f+16>>2]=v[n+16>>2];c=v[n+12>>2];v[f+8>>2]=v[n+8>>2];v[f+12>>2]=c;c=v[n+4>>2];v[f>>2]=v[n>>2];v[f+4>>2]=c;o=_(f,f+28|0);v:{if(o){break v}o=_(f,f+28|0);if(o){break v}o=_(f,f+28|0);if(o){break v}o=1;if(($(f,31-E(v[l+12>>2])|0)|0)==-1){break v}if((h|0)==5){o=_(f,f+28|0);if(o){break v}}o=1;c=$(f,31-E(v[l+20>>2])|0);if((c|0)==-1){break v}v[k+8>>2]=c;o=0}T=f+32|0;if(o){break m}c=v[k+8>>2];if((c|0)!=v[a+1316>>2]){v[a+1316>>2]=c;v[F+188>>2]=1}if(!v[i+8>>2]){break s}f=v[F+312>>2];h=k+16|0;g=T-32|0;T=g;v[g+16>>2]=v[n+16>>2];c=v[n+12>>2];v[g+8>>2]=v[n+8>>2];v[g+12>>2]=c;c=v[n+4>>2];v[g>>2]=v[n>>2];v[g+4>>2]=c;o=_(g,g+28|0);w:{if(o){break w}o=_(g,g+28|0);if(o){break w}o=_(g,g+28|0);if(o){break w}o=1;if(($(g,31-E(v[l+12>>2])|0)|0)==-1){break w}if((f|0)==5){o=_(g,g+28|0);if(o){break w}}o=1;if(($(g,31-E(v[l+20>>2])|0)|0)==-1){break w}o=da(g,h)}T=g+32|0;g=o;if(g){break m}c=v[k+16>>2];if((c|0)==v[a+1320>>2]){break s}v[a+1320>>2]=c;break t;case 1:break u;default:break s}}if(v[l+24>>2]){break s}g=v[F+312>>2];h=v[i+8>>2];j=k+8|0;r=T-32|0;T=r;v[r+16>>2]=v[n+16>>2];c=v[n+12>>2];v[r+8>>2]=v[n+8>>2];v[r+12>>2]=c;c=v[n+4>>2];v[r>>2]=v[n>>2];v[r+4>>2]=c;f=_(r,r+28|0);x:{if(f){break x}f=_(r,r+28|0);if(f){break x}f=_(r,r+28|0);if(f){break x}if(($(r,31-E(v[l+12>>2])|0)|0)==-1){f=1;break x}if((g|0)==5){f=_(r,r+28|0);if(f){break x}}f=da(r,j);if(f){break x}if(h){f=da(r,j+4|0);if(f){break x}}f=0}T=r+32|0;g=f;if(f){break m}c=v[k+8>>2];if((c|0)!=v[a+1324>>2]){v[a+1324>>2]=c;v[F+188>>2]=1}if(!v[i+8>>2]){break s}c=v[k+12>>2];if((c|0)==v[a+1328>>2]){break s}v[a+1328>>2]=c}v[F+188>>2]=1}c=v[F+316>>2];v[a+1300>>2]=v[F+312>>2];v[a+1304>>2]=c;g=0;break m}v[F+188>>2]=1}T=k+32|0;if(g){v[F+144>>2]=4108;aa(v[2372],F+144|0);b=(g|0)==65520?4:3;break a}y:{if(v[F+188>>2]){if(!(!v[a+1184>>2]|!v[a+16>>2])){if(v[a+3380>>2]){v[F+128>>2]=3881;aa(v[2372],F+128|0);b=3;break a}z:{if(!v[a+1188>>2]){c=a+1220|0;b=v[c>>2]+B(v[c+28>>2],40)|0;v[c+8>>2]=b;v[a+1336>>2]=v[b>>2];Na(c);Oa(a,a+1336|0,0);break z}Oa(a,a+1336|0,v[a+1372>>2])}v[e>>2]=0;v[a+1180>>2]=0;v[a+3344>>2]=1;break y}v[a+1180>>2]=0;v[a+1188>>2]=0}A:{switch(v[F+312>>2]-1|0){case 6:h=T-128|0;T=h;f=ba(F+216|0,0,92);j=F+192|0;c=$(j,8);B:{if((c|0)==-1){d=1;break B}v[f>>2]=c;d=1;$(j,1);$(j,1);if(($(j,1)|0)==-1){break B}if(($(j,5)|0)==-1){break B}c=$(j,8);if((c|0)==-1){break B}v[f+4>>2]=c;d=_(j,f+8|0);if(d){break B}if(y[f+8>>2]>=32){v[h>>2]=3838;aa(v[2372],h);d=1;break B}d=_(j,h+124|0);if(d){break B}c=v[h+124>>2];if(c>>>0>=13){v[h+16>>2]=4221;aa(v[2372],h+16|0);d=1;break B}v[f+12>>2]=1<>2];if(c>>>0>=3){v[h+32>>2]=3685;aa(v[2372],h+32|0);d=1;break B}v[f+16>>2]=c;C:{D:{switch(c|0){case 0:d=_(j,h+124|0);if(d){break B}c=v[h+124>>2];if(c>>>0>=13){v[h+96>>2]=4247;aa(v[2372],h+96|0);d=1;break B}v[f+20>>2]=1<>2]=(c|0)==1;d=da(j,f+28|0);if(d){break B}d=da(j,f+32|0);if(d){break B}d=_(j,f+36|0);if(d){break B}c=v[f+36>>2];if(c>>>0>=256){v[h+112>>2]=3736;aa(v[2372],h+112|0);d=1;break B}if(c){c=ha(c<<2);v[f+40>>2]=c;if(!c){d=65535;break B}d=da(j,c);if(d){break B}z=0;while(1){z=z+1|0;if(z>>>0>=y[f+36>>2]){break C}d=da(j,v[f+40>>2]+(z<<2)|0);if(!d){continue}break}break B}v[f+40>>2]=0}d=_(j,f+44|0);if(d){break B}if(y[f+44>>2]>=17){v[h+48>>2]=3342;aa(v[2372],h+48|0);d=1;break B}d=1;c=$(j,1);if((c|0)==-1){break B}v[f+48>>2]=(c|0)==1;d=_(j,h+124|0);if(d){break B}v[f+52>>2]=v[h+124>>2]+1;d=_(j,h+124|0);if(d){break B}d=1;v[f+56>>2]=v[h+124>>2]+1;E:{switch($(j,1)+1|0){case 1:v[h+80>>2]=3563;aa(v[2372],h+80|0);break B;case 0:break B;default:break E}}if(($(j,1)|0)==-1){break B}c=$(j,1);if((c|0)==-1){break B}c=(c|0)==1;v[f+60>>2]=c;F:{if(!c){z=v[f+56>>2];d=v[f+52>>2];break F}d=_(j,f- -64|0);if(d){break B}d=_(j,f+68|0);if(d){break B}d=_(j,f+72|0);if(d){break B}d=_(j,f+76|0);if(d){break B}d=v[f+52>>2];if(v[f+64>>2]<=((v[f+68>>2]^-1)+(d<<3)|0)){z=v[f+56>>2];if(v[f+72>>2]<=((v[f+76>>2]^-1)+(z<<3)|0)){break F}}v[h+64>>2]=3548;aa(v[2372],h- -64|0);d=1;break B}c=B(d,z);g=99;z=152064;d=2147483647;G:{H:{I:{switch(v[f+4>>2]-10|0){case 1:g=396;z=345600;break H;case 2:case 3:case 10:g=396;z=912384;break H;case 11:g=792;z=1824768;break H;case 12:case 20:g=1620;z=3110400;break H;case 21:g=3600;z=6912e3;break H;case 22:g=5120;z=7864320;break H;case 30:case 31:g=8192;z=12582912;break H;case 32:g=8704;z=13369344;break H;case 40:g=22080;z=42393600;break H;case 0:break H;case 41:break I;default:break G}}g=36864;z=70778880}if(c>>>0>g>>>0){break G}c=(z>>>0)/(B(c,384)>>>0)|0;d=c>>>0<16?c:16}v[h+124>>2]=d;c=v[f+44>>2];c=(d|0)==2147483647?c:c>>>0>d>>>0?c:d;v[h+124>>2]=c;v[f+88>>2]=c;d=1;c=$(j,1);if((c|0)==-1){break B}v[f+80>>2]=(c|0)==1;J:{if((c|0)!=1){break J}c=ha(952);v[f+84>>2]=c;if(!c){d=65535;break B}g=ba(c,0,952);e=1;K:{L:{c=$(j,1);M:{if((c|0)==-1){break M}v[g>>2]=(c|0)==1;N:{if((c|0)!=1){break N}c=$(j,8);if((c|0)==-1){break M}v[g+4>>2]=c;if((c|0)!=255){break N}c=$(j,16);if((c|0)==-1){break M}v[g+8>>2]=c;c=$(j,16);if((c|0)==-1){break M}v[g+12>>2]=c}c=$(j,1);if((c|0)==-1){break M}c=(c|0)==1;v[g+16>>2]=c;if(c){c=$(j,1);if((c|0)==-1){break M}v[g+20>>2]=(c|0)==1}c=$(j,1);if((c|0)==-1){break M}c=(c|0)==1;v[g+24>>2]=c;O:{P:{if(c){c=$(j,3);if((c|0)==-1){break M}v[g+28>>2]=c;c=$(j,1);if((c|0)==-1){break M}v[g+32>>2]=(c|0)==1;c=$(j,1);if((c|0)==-1){break M}v[g+36>>2]=(c|0)==1;if((c|0)!=1){break P}c=$(j,8);if((c|0)==-1){break M}v[g+40>>2]=c;c=$(j,8);if((c|0)==-1){break M}v[g+44>>2]=c;d=$(j,8);if((d|0)!=-1){break O}break M}v[g+28>>2]=5}v[g+40>>2]=2;v[g+44>>2]=2;d=2}v[g+48>>2]=d;c=$(j,1);if((c|0)==-1){break M}v[g+52>>2]=(c|0)==1;Q:{if((c|0)!=1){break Q}e=_(j,g+56|0);if(e){break M}if(y[g+56>>2]>5){break L}e=_(j,g+60|0);if(e){break M}if(y[g+60>>2]<=5){break Q}break L}e=1;c=$(j,1);if((c|0)==-1){break M}c=(c|0)==1;v[g+64>>2]=c;if(c){c=na(j);if(!c|(ia(j,32)|0)==-1){break L}v[g+68>>2]=c;c=na(j);if(!c|(ia(j,32)|0)==-1){break L}v[g+72>>2]=c;c=$(j,1);if((c|0)==-1){break M}v[g+76>>2]=(c|0)==1}c=$(j,1);if((c|0)==-1){break M}c=(c|0)==1;v[g+80>>2]=c;R:{if(c){e=Ea(j,g+84|0);if(!e){break R}break M}v[g+84>>2]=1;v[g+488>>2]=24;v[g+492>>2]=24;v[g+480>>2]=24;v[g+484>>2]=24;v[g+224>>2]=288000001;v[g+96>>2]=288000001}e=1;c=$(j,1);if((c|0)==-1){break M}c=(c|0)==1;v[g+496>>2]=c;S:{if(c){e=Ea(j,g+500|0);if(!e){break S}break M}v[g+500>>2]=1;v[g+904>>2]=24;v[g+908>>2]=24;v[g+896>>2]=24;v[g+900>>2]=24;v[g+640>>2]=240000001;v[g+512>>2]=240000001}if(v[g+496>>2]?1:v[g+80>>2]){e=1;c=$(j,1);if((c|0)==-1){break M}v[g+912>>2]=(c|0)==1}e=1;c=$(j,1);if((c|0)==-1){break M}v[g+916>>2]=(c|0)==1;c=$(j,1);if((c|0)==-1){break M}c=(c|0)==1;v[g+920>>2]=c;T:{if(c){c=$(j,1);if((c|0)==-1){break M}v[g+924>>2]=(c|0)==1;e=_(j,g+928|0);if(e){break M}if(y[g+928>>2]>16){break L}e=_(j,g+932|0);if(e){break M}if(y[g+932>>2]>16){break L}e=_(j,g+936|0);if(e){break M}if(y[g+936>>2]>16){break L}e=_(j,g+940|0);if(e){break M}e=1;if(y[g+940>>2]>16){break M}e=_(j,g+944|0);if(e){break M}e=_(j,g+948|0);if(!e){break T}break M}v[g+948>>2]=16;v[g+940>>2]=16;v[g+944>>2]=16;v[g+932>>2]=1;v[g+936>>2]=16;v[g+924>>2]=1;v[g+928>>2]=2}e=0}d=e;break K}d=1}if(d){break B}c=v[f+84>>2];if(!v[c+920>>2]){break J}d=1;e=v[c+944>>2];c=v[c+948>>2];if(e>>>0>c>>>0|c>>>0>2]|c>>>0>y[f+88>>2]){break B}v[f+88>>2]=c?c:1}Ha(j);d=0}T=h+128|0;if(d){v[F>>2]=4043;aa(v[2372],F);ca(v[F+256>>2]);v[F+256>>2]=0;ca(v[F+300>>2]);b=3;break a}l=F+216|0;d=v[l+8>>2];j=(d<<2)+a|0;c=v[j+20>>2];U:{V:{if(!c){a=ha(92);v[j+20>>2]=a;if(a){break V}break U}if((d|0)==v[a+8>>2]){W:{X:{i=v[a+16>>2];if(v[l>>2]!=v[i>>2]|v[l+4>>2]!=v[i+4>>2]|v[l+12>>2]!=v[i+12>>2]){break X}c=v[l+16>>2];if((c|0)!=v[i+16>>2]|v[l+44>>2]!=v[i+44>>2]|(v[l+48>>2]!=v[i+48>>2]|v[l+52>>2]!=v[i+52>>2])){break X}if(v[l+56>>2]!=v[i+56>>2]){break X}f=v[l+60>>2];if((f|0)!=v[i+60>>2]|v[l+80>>2]!=v[i+80>>2]){break X}Y:{Z:{switch(c|0){case 0:if(v[l+20>>2]!=v[i+20>>2]){break X}break Y;case 1:break Z;default:break Y}}if(v[l+24>>2]!=v[i+24>>2]|v[l+28>>2]!=v[i+28>>2]|v[l+32>>2]!=v[i+32>>2]){break X}g=v[l+36>>2];if((g|0)!=v[i+36>>2]){break X}if(!g){break Y}h=v[i+40>>2];e=v[l+40>>2];c=0;while(1){d=c<<2;if(v[d+e>>2]==v[d+h>>2]){c=c+1|0;if((g|0)!=(c|0)){continue}break Y}break}break X}if(f){if(v[l+64>>2]!=v[i+64>>2]|v[l+68>>2]!=v[i+68>>2]|(v[l+72>>2]!=v[i+72>>2]|v[l+76>>2]!=v[i+76>>2])){break X}}c=0;break W}c=1}if(c){ca(v[v[j+20>>2]+40>>2]);v[v[j+20>>2]+40>>2]=0;ca(v[v[j+20>>2]+84>>2]);v[v[j+20>>2]+84>>2]=0;v[a+16>>2]=0;v[a+4>>2]=257;v[a+8>>2]=33;v[a+12>>2]=0;break V}ca(v[l+40>>2]);v[l+40>>2]=0;ca(v[l+84>>2]);v[l+84>>2]=0;break U}ca(v[c+40>>2]);v[v[j+20>>2]+40>>2]=0;ca(v[v[j+20>>2]+84>>2]);v[v[j+20>>2]+84>>2]=0}fa(v[j+20>>2],l,92)}break a;case 7:j=T-208|0;T=j;f=F+192|0;g=ba(F+216|0,0,72);d=_(f,g);_:{if(d){break _}if(y[g>>2]>=256){v[j>>2]=3817;aa(v[2372],j);d=1;break _}d=_(f,g+4|0);if(d){break _}if(y[g+4>>2]>=32){v[j+16>>2]=3838;aa(v[2372],j+16|0);d=1;break _}d=1;if($(f,1)){v[j+192>>2]=3583;aa(v[2372],j+192|0);break _}c=$(f,1);if((c|0)==-1){break _}v[g+8>>2]=(c|0)==1;d=_(f,j+204|0);if(d){break _}c=v[j+204>>2]+1|0;v[g+12>>2]=c;if(c>>>0>=9){v[j+32>>2]=4331;aa(v[2372],j+32|0);d=1;break _}$:{if(c>>>0<2){break $}d=_(f,g+16|0);if(d){break _}c=v[g+16>>2];if(c>>>0>=7){v[j+48>>2]=3704;aa(v[2372],j+48|0);d=1;break _}aa:{switch(c|0){case 0:d=v[g+12>>2];c=ha(d<<2);v[g+20>>2]=c;if(!c){d=65535;break _}if(!d){break $}z=0;while(1){d=_(f,j+204|0);if(d){break _}v[v[g+20>>2]+(z<<2)>>2]=v[j+204>>2]+1;z=z+1|0;if(z>>>0>2]){continue}break};break $;case 2:h=v[g+12>>2];c=(h<<2)-4|0;e=ha(c);v[g+24>>2]=e;c=ha(c);v[g+28>>2]=c;d=65535;if(!e|!c){break _}if((h|0)==1){break $}z=0;while(1){d=_(f,j+204|0);if(d){break _}c=z<<2;v[c+v[g+24>>2]>>2]=v[j+204>>2];d=_(f,j+204|0);if(d){break _}v[c+v[g+28>>2]>>2]=v[j+204>>2];z=z+1|0;if(z>>>0>2]-1>>>0){continue}break};break $;case 3:case 4:case 5:d=1;c=$(f,1);if((c|0)==-1){break _}v[g+32>>2]=(c|0)==1;d=_(f,j+204|0);if(d){break _}v[g+36>>2]=v[j+204>>2]+1;break $;case 6:break aa;default:break $}}d=_(f,j+204|0);if(d){break _}d=v[j+204>>2]+1|0;v[g+40>>2]=d;c=ha(d<<2);v[g+44>>2]=c;if(!c){d=65535;break _}if(!d){break $}c=v[(v[g+12>>2]<<2)+8844>>2];d=0;while(1){ba:{e=$(f,c);v[v[g+44>>2]+(d<<2)>>2]=e;if(e>>>0>=y[g+12>>2]){break ba}d=d+1|0;if(d>>>0>2]){continue}break $}break}v[j+176>>2]=3855;aa(v[2372],j+176|0);d=1;break _}d=_(f,j+204|0);if(d){break _}c=v[j+204>>2];if(c>>>0>=32){v[j+64>>2]=4408;aa(v[2372],j- -64|0);d=1;break _}v[g+48>>2]=c+1;d=_(f,j+204|0);if(d){break _}if(y[j+204>>2]>=32){v[j+80>>2]=4379;aa(v[2372],j+80|0);d=1;break _}if($(f,1)){v[j+160>>2]=3666;aa(v[2372],j+160|0);d=1;break _}if($(f,2)>>>0>=3){v[j+96>>2]=3999;aa(v[2372],j+96|0);d=1;break _}d=da(f,j+200|0);if(d){break _}c=v[j+200>>2];if(c-26>>>0<=4294967243){v[j+112>>2]=4201;aa(v[2372],j+112|0);d=1;break _}v[g+52>>2]=c+26;d=da(f,j+200|0);if(d){break _}if(v[j+200>>2]-26>>>0<=4294967243){v[j+128>>2]=4181;aa(v[2372],j+128|0);d=1;break _}d=da(f,j+200|0);if(d){break _}c=v[j+200>>2];if(c-13>>>0<=4294967270){v[j+144>>2]=3272;aa(v[2372],j+144|0);d=1;break _}v[g+56>>2]=c;d=1;c=$(f,1);if((c|0)==-1){break _}v[g+60>>2]=(c|0)==1;c=$(f,1);if((c|0)==-1){break _}v[g+64>>2]=(c|0)==1;c=$(f,1);if((c|0)==-1){break _}v[g+68>>2]=(c|0)==1;Ha(f);d=0}T=j+208|0;if(d){v[F+16>>2]=4057;aa(v[2372],F+16|0);ca(v[F+236>>2]);v[F+236>>2]=0;ca(v[F+240>>2]);v[F+240>>2]=0;ca(v[F+244>>2]);v[F+244>>2]=0;ca(v[F+260>>2]);v[F+260>>2]=0;b=3;break a}e=F+216|0;d=v[e>>2];h=(d<<2)+a|0;c=v[h+148>>2];ca:{da:{if(!c){a=ha(72);v[h+148>>2]=a;if(a){break da}break ca}if(!(v[e+4>>2]==v[a+8>>2]|(d|0)!=v[a+4>>2])){v[a+4>>2]=257}ca(v[c+20>>2]);v[v[h+148>>2]+20>>2]=0;ca(v[v[h+148>>2]+24>>2]);v[v[h+148>>2]+24>>2]=0;ca(v[v[h+148>>2]+28>>2]);v[v[h+148>>2]+28>>2]=0;ca(v[v[h+148>>2]+44>>2]);v[v[h+148>>2]+44>>2]=0}fa(v[h+148>>2],e,72)}break a;case 0:case 4:break A;default:break a}}if(v[a+1180>>2]){break a}v[a+1184>>2]=1;ea:{if(v[a+1188>>2]){break ea}v[a+1208>>2]=d;v[a+1204>>2]=0;Ia(F+192|0,F+216|0);n=v[a+8>>2];r=v[F+312>>2]==5;f=1;D=v[F+216>>2];s=v[((D<<2)+a|0)+148>>2];fa:{ga:{if(!s){break ga}p=v[s+4>>2];o=(p<<2)+a|0;c=v[o+20>>2];if(!c){break ga}h=v[s+12>>2];ha:{if(h>>>0<2){break ha}k=v[c+52>>2];z=B(k,v[c+56>>2]);ia:{ja:{ka:{la:{c=v[s+16>>2];switch(c|0){case 0:break ka;case 2:break la;default:break ia}}l=h-2|0;i=v[s+28>>2];j=v[s+24>>2];d=0;break ja}c=v[s+20>>2];d=0;while(1){if(z>>>0>=y[c+(d<<2)>>2]){d=d+1|0;if((h|0)!=(d|0)){continue}break ha}break}c=1;break fa}while(1){g=d<<2;h=v[g+j>>2];g=v[g+i>>2];c=1;if(h>>>0>g>>>0){break fa}c=1;if(g>>>0>=z>>>0){break fa}if((h>>>0)%(k>>>0)>>>0<=(g>>>0)%(k>>>0)>>>0){c=(d|0)==(l|0);d=d+1|0;if(c){break ha}continue}break}c=1;break fa}if(c-3>>>0<=2){if(z>>>0>=y[s+36>>2]){break ha}break ga}if((c|0)!=6){break ha}if(z>>>0>y[s+40>>2]){break ga}}c=v[a+4>>2];ma:{if((c|0)==256){v[a+12>>2]=s;v[a+4>>2]=D;v[a+8>>2]=p;c=v[o+20>>2];v[a+16>>2]=c;d=v[c+52>>2];c=v[c+56>>2];v[a+3380>>2]=1;v[a+1344>>2]=c;v[a+1340>>2]=d;v[a+1176>>2]=B(c,d);break ma}if(v[a+3380>>2]){v[a+3380>>2]=0;ca(v[a+1212>>2]);v[a+1212>>2]=0;ca(v[a+1172>>2]);z=v[a+1176>>2];d=B(z,216);h=ha(d);v[a+1212>>2]=h;c=ha(z<<2);v[a+1172>>2]=c;f=65535;if(!h|!c){break ga}p=ba(h,0,d);D=v[v[a+16>>2]+52>>2];k=0;i=0;j=0;if(z){r=p-216|0;g=D-1|0;f=p+B(D^-1,216)|0;h=B(D,-216);d=B(1-D|0,216);while(1){o=B(j,216);s=o+p|0;v[s+200>>2]=k?o+r|0:0;na:{if(!i){v[s+204>>2]=0;l=0;c=0;break na}v[s+204>>2]=h+s;l=g>>>0>k>>>0?d+s|0:0;c=(k|0)!=0}v[s+208>>2]=l;v[s+212>>2]=c?f+o|0:0;c=k+1|0;l=(c|0)==(D|0);k=l?0:c;i=i+l|0;j=j+1|0;if((z|0)!=(j|0)){continue}break}}d=1;h=v[a+16>>2];oa:{if(v[a+1216>>2]|v[h+16>>2]==2){break oa}pa:{if(!v[h+80>>2]){break pa}c=v[h+84>>2];if(!v[c+920>>2]){break pa}if(!v[c+944>>2]){break oa}}d=0}j=B(v[h+56>>2],v[h+52>>2]);g=v[h+88>>2];i=v[h+44>>2];f=v[h+12>>2];h=d;d=0;l=0;r=a+1220|0;c=v[r>>2];qa:{if(!c){break qa}if(v[r+28>>2]==-1){d=c;break qa}d=c;while(1){c=B(l,40);ca(v[(c+d|0)+4>>2]);d=v[r>>2];v[(c+d|0)+4>>2]=0;l=l+1|0;if(l>>>0>2]+1>>>0){continue}break}}ca(d);v[r>>2]=0;ca(v[r+4>>2]);v[r+4>>2]=0;ca(v[r+12>>2]);v[r+12>>2]=0;v[r+56>>2]=h;v[r+32>>2]=f;v[r+36>>2]=65535;v[r+40>>2]=0;v[r+44>>2]=0;v[r+48>>2]=0;c=i>>>0>1?i:1;v[r+24>>2]=c;g=h?c:g;v[r+28>>2]=g;i=ha(680);if(!(!i|!(w[i-4|0]&3))){ba(i,0,680)}v[r>>2]=i;o=65535;ra:{if(!i){break ra}if((g|0)!=-1){h=B(j,384)|47;d=0;while(1){c=i+B(d,40)|0;f=ha(h);v[c+4>>2]=f;if(!f){break ra}v[c>>2]=f+(0-f&15);c=(d|0)!=(g|0);d=d+1|0;if(c){continue}break}}d=ha(68);v[r+4>>2]=d;c=ha((g<<4)+16|0);v[r+12>>2]=c;if(!c|!d){break ra}o=0;ba(d,0,68);v[r+16>>2]=0;v[r+20>>2]=0}f=o;if(!f){break ma}break ga}if((c|0)==(D|0)){break ma}if((p|0)!=v[a+8>>2]){if(!r){break ga}v[a+12>>2]=s;v[a+4>>2]=D;v[a+8>>2]=p;c=v[o+20>>2];v[a+16>>2]=c;d=v[c+52>>2];c=v[c+56>>2];v[a+3380>>2]=1;v[a+1344>>2]=c;v[a+1340>>2]=d;v[a+1176>>2]=B(c,d);break ma}v[a+12>>2]=s;v[a+4>>2]=D}f=0}c=f}if(c){v[F+112>>2]=3428;aa(v[2372],F+112|0);v[a+4>>2]=256;v[a+8>>2]=32;v[a+3380>>2]=0;v[a+12>>2]=0;v[a+16>>2]=0;b=(c|0)==65535?5:4;break a}if((n|0)==v[a+8>>2]){break ea}h=v[a+16>>2];v[F+184>>2]=1;c=v[a>>2];if(c>>>0<=31){b=v[((c<<2)+a|0)+20>>2]}v[e>>2]=0;v[a+3344>>2]=1;sa:{ta:{ua:{if(v[F+312>>2]!=5){break ua}d=v[a+12>>2];f=T-32|0;T=f;v[f+16>>2]=v[F+208>>2];c=v[F+204>>2];v[f+8>>2]=v[F+200>>2];v[f+12>>2]=c;c=v[F+196>>2];v[f>>2]=v[F+192>>2];v[f+4>>2]=c;e=_(f,f+28|0);va:{if(e){break va}e=_(f,f+28|0);if(e){break va}e=_(f,f+28|0);if(e){break va}e=1;if(($(f,31-E(v[h+12>>2])|0)|0)==-1){break va}e=_(f,f+28|0);if(e){break va}c=v[h+16>>2];if(!c){e=1;if(($(f,31-E(v[h+20>>2])|0)|0)==-1){break va}if(v[d+8>>2]){e=da(f,f+24|0);if(e){break va}}c=v[h+16>>2]}wa:{if(v[h+24>>2]|(c|0)!=1){break wa}e=da(f,f+24|0);if(e){break va}if(!v[d+8>>2]){break wa}e=da(f,f+24|0);if(e){break va}}if(v[d+68>>2]){e=_(f,f+28|0);if(e){break va}}c=$(f,1);v[F+184>>2]=c;e=(c|0)==-1}T=f+32|0;if(v[a+1276>>2]|(v[F+184>>2]|e)|(!b|v[b+52>>2]!=v[h+52>>2])){break ua}if(v[b+56>>2]!=v[h+56>>2]){break ua}if(v[b+88>>2]==v[h+88>>2]){break ta}}v[a+1280>>2]=0;break sa}b=0;d=0;xa:{j=a+1220|0;g=v[j>>2];if(!g){break xa}v[j+60>>2]=1;if(v[j+56>>2]){break xa}f=v[j+28>>2];e=2147483647;while(1){while(1){c=g+B(d,40)|0;if(v[c+24>>2]){i=c;h=v[c+16>>2];c=(h|0)<(e|0);b=c?i:b;e=c?h:e}c=(d|0)!=(f|0);d=d+1|0;if(c){continue}if(!b){break xa}c=v[j+16>>2];d=v[j+12>>2]+(c<<4)|0;v[d>>2]=v[b>>2];v[d+12>>2]=v[b+36>>2];v[d+4>>2]=v[b+28>>2];v[d+8>>2]=v[b+32>>2];v[j+16>>2]=c+1;d=0;v[b+24>>2]=0;c=v[b+20>>2];b=0;e=2147483647;if(c){continue}break}v[j+44>>2]=v[j+44>>2]-1;continue}}}v[a>>2]=v[a+8>>2];b=2;break a}if(v[a+3380>>2]){v[F+96>>2]=3881;aa(v[2372],F+96|0);b=3;break a}o=v[a+16>>2];r=v[a+12>>2];s=T-16|0;T=s;k=a+2356|0;n=ba(k,0,988);e=v[o+52>>2];d=v[o+56>>2];p=F+192|0;c=_(p,s+12|0);ya:{if(c){break ya}c=v[s+12>>2];v[n>>2]=c;i=B(d,e);za:{Aa:{if(i>>>0<=c>>>0){c=3799;break Aa}c=_(p,s+12|0);if(c){break ya}d=v[s+12>>2];v[n+4>>2]=d;c=3725;Ba:{switch(d|0){case 0:case 5:if(!v[o+44>>2]|v[F+312>>2]==5){break Aa}break;case 2:case 7:break Ba;default:break Aa}}c=_(p,s+12|0);if(c){break ya}c=v[s+12>>2];v[n+8>>2]=c;if((c|0)!=v[r>>2]){c=3817;break Aa}c=1;d=$(p,31-E(v[o+12>>2])|0);if((d|0)==-1){break ya}c=v[F+312>>2]!=5;if(!(c|!d)){c=3485;break Aa}v[n+12>>2]=d;Ca:{if(c){break Ca}c=_(p,s+12|0);if(c){break ya}c=v[s+12>>2];v[n+16>>2]=c;if(c>>>0<=65535){break Ca}c=3870;break Aa}c=v[o+16>>2];if(!c){c=1;d=$(p,31-E(v[o+20>>2])|0);if((d|0)==-1){break ya}v[n+20>>2]=d;if(v[r+8>>2]){c=da(p,s+8|0);if(c){break ya}v[n+24>>2]=v[s+8>>2]}if(v[F+312>>2]==5){c=1;e=v[n+20>>2];if(e>>>0>v[o+20>>2]>>>1>>>0){break ya}d=v[n+24>>2];if((e|0)!=(0-(d>>31&d)|0)){break ya}}c=v[o+16>>2]}Da:{if(v[o+24>>2]|(c|0)!=1){break Da}c=da(p,s+8|0);if(c){break ya}v[n+28>>2]=v[s+8>>2];if(v[r+8>>2]){c=da(p,s+8|0);if(c){break ya}v[n+32>>2]=v[s+8>>2]}if(v[F+312>>2]!=5){break Da}c=1;e=v[n+28>>2];d=v[n+32>>2]+(e+v[o+32>>2]|0)|0;if((d|0)>(e|0)?e:d){break ya}}Ea:{if(!v[r+68>>2]){break Ea}c=_(p,s+12|0);if(c){break ya}c=v[s+12>>2];v[n+36>>2]=c;if(c>>>0<=127){break Ea}c=3254;break Aa}Fa:{Ga:{c=v[n+4>>2];switch(c|0){case 0:case 5:break Ga;default:break Fa}}c=1;d=$(p,1);if((d|0)==-1){break ya}v[n+40>>2]=d;Ha:{Ia:{if(d){c=_(p,s+12|0);if(c){break ya}c=v[s+12>>2];if(c>>>0<=15){break Ia}c=4408;break Aa}c=v[r+48>>2];if(c>>>0<=16){break Ha}c=3608;break Aa}c=c+1|0}v[n+44>>2]=c;c=v[n+4>>2]}Ja:{switch(c|0){case 0:case 5:j=n+68|0;f=v[n+44>>2];h=v[o+12>>2];c=T-16|0;T=c;e=1;d=$(p,1);Ka:{if((d|0)==-1){break Ka}v[j>>2]=d;e=0;if(!d){break Ka}La:{while(1){d=e;l=3357;if(d>>>0>f>>>0){break La}e=_(p,c+8|0);if(e){break Ka}e=v[c+8>>2];l=3942;if(e>>>0>3){break La}g=j+B(d,12)|0;v[g+4>>2]=e;Ma:{if(e>>>0<=1){e=_(p,c+12|0);if(e){break Ka}e=v[c+12>>2];l=4355;if(e>>>0>=h>>>0){break La}v[g+8>>2]=e+1;break Ma}if((e|0)!=2){break Ma}e=_(p,c+12|0);if(e){break Ka}v[g+12>>2]=v[c+12>>2]}e=d+1|0;if(v[c+8>>2]!=3){continue}break}e=0;if(d){break Ka}l=3513}v[c>>2]=l;aa(v[2372],c);e=1}T=c+16|0;c=e;if(c){break ya}break;default:break Ja}}if(v[F+316>>2]){f=n+276|0;c=v[F+312>>2];e=v[o+44>>2];o=0;g=0;z=0;l=T+-64|0;T=l;m=1;d=$(p,1);Na:{Oa:{if((c|0)==5){if((d|0)==-1){break Na}v[f>>2]=d;c=$(p,1);if((c|0)==-1){break Na}v[f+4>>2]=c;if(!c|e){break Oa}v[l>>2]=3641;aa(v[2372],l);break Na}if((d|0)==-1){break Na}v[f+8>>2]=d;if(!d){break Oa}c=(e<<1)+3|0;j=0;D=0;while(1){if((c|0)==(j|0)){v[l+16>>2]=3311;aa(v[2372],l+16|0);m=1;break Na}m=_(p,l+56|0);if(m){break Na}m=v[l+56>>2];if(m>>>0>=7){v[l+32>>2]=3449;aa(v[2372],l+32|0);m=1;break Na}h=f+B(j,20)|0;v[h+12>>2]=m;if((m&-3)==1){m=_(p,l+60|0);if(m){break Na}v[h+16>>2]=v[l+60>>2]+1;m=v[l+56>>2]}if((m|0)==2){m=_(p,l+60|0);if(m){break Na}v[h+20>>2]=v[l+60>>2];m=v[l+56>>2]}Pa:{switch(m-3|0){case 0:case 3:m=_(p,l+60|0);if(m){break Na}v[h+24>>2]=v[l+60>>2];m=v[l+56>>2];break;default:break Pa}}if((m|0)==4){m=_(p,l+60|0);if(m){break Na}d=v[l+60>>2];if(d>>>0>e>>>0){v[l+48>>2]=4437;aa(v[2372],l+48|0);m=1;break Na}v[h+28>>2]=d?d-1|0:65535;m=v[l+56>>2];o=o+1|0}j=j+1|0;g=((m|0)==6)+g|0;D=((m|0)==5)+D|0;z=(m-1>>>0<3)+z|0;if(m){continue}break}m=1;if(o>>>0>1|D>>>0>1|g>>>0>1){break Na}if(!z){break Oa}if(D){break Na}}m=0}T=l- -64|0;c=m;if(c){break ya}}c=da(p,s+8|0);if(c){break ya}c=v[s+8>>2];v[n+48>>2]=c;c=c+v[r+52>>2]|0;v[s+8>>2]=c;if(c>>>0>51){c=4019;break Aa}Qa:{if(!v[r+60>>2]){break Qa}c=_(p,s+12|0);if(c){break ya}c=v[s+12>>2];v[n+52>>2]=c;if(c>>>0>2){c=3969;break Aa}if((c|0)==1){break Qa}c=da(p,s+8|0);if(c){break ya}c=v[s+8>>2];if(c-7>>>0<4294967283){c=4304;break Aa}v[n+56>>2]=c<<1;c=da(p,s+8|0);if(c){break ya}c=v[s+8>>2];if(c-7>>>0<4294967283){c=4281;break Aa}v[n+60>>2]=c<<1}c=0;if(y[r+12>>2]<2|v[r+16>>2]-3>>>0>2){break ya}c=v[r+36>>2];d=(i>>>0)/(c>>>0)|0;e=d+(i-B(c,d)|0?2:1)|0;c=0;while(1){d=c;c=c+1|0;if(e>>>c|0){continue}break}e=$(p,e&(-1<>2]=e;if((e|0)==-1){break za}v[n+64>>2]=e;c=0;d=v[r+36>>2];if(e>>>0<=((d+i|0)-1>>>0)/(d>>>0)>>>0){break ya}c=3774}v[s>>2]=c;aa(v[2372],s)}c=1}T=s+16|0;if(c){v[F+80>>2]=4071;aa(v[2372],F+80|0);b=3;break a}if(!v[a+1188>>2]){Ra:{if(v[F+312>>2]==5){break Ra}m=v[a+2368>>2];h=v[F+316>>2]!=0;c=v[v[a+16>>2]+48>>2];s=a+1220|0;v[s+16>>2]=0;v[s+20>>2]=0;Sa:{Ta:{Ua:{if(!c){break Ua}Va:{Wa:{Xa:{e=v[s+48>>2];if((m|0)!=(e|0)){g=v[s+32>>2];D=(e+1>>>0)%(g>>>0)|0;if((D|0)==(m|0)){break Xa}o=v[v[s>>2]+B(v[s+28>>2],40)>>2];while(1){Ya:{Za:{_a:{c=v[s+40>>2];if(c){r=c&1;n=v[s>>2];d=c-1|0;$a:{if(!d){e=0;break $a}j=c&-2;e=0;z=0;while(1){f=n+B(e,40)|0;if(v[f+20>>2]-1>>>0<=1){i=f;f=v[f+12>>2];v[i+8>>2]=f-(f>>>0>D>>>0?g:0)}f=n+B(e|1,40)|0;if(v[f+20>>2]-1>>>0<=1){i=f;f=v[f+12>>2];v[i+8>>2]=f-(f>>>0>D>>>0?g:0)}e=e+2|0;z=z+2|0;if((j|0)!=(z|0)){continue}break}}ab:{if(!r){break ab}e=n+B(e,40)|0;if(v[e+20>>2]-1>>>0>1){break ab}f=e;e=v[e+12>>2];v[f+8>>2]=e-(e>>>0>D>>>0?g:0)}if(c>>>0>2]){d=c;break Ya}if(d){break _a}z=-1;e=0;c=0;break Za}d=0;if(v[s+24>>2]){break Ya}c=1;break Sa}i=c&-2;z=-1;e=0;c=0;g=0;while(1){f=n+B(e,40)|0;if(v[f+20>>2]-1>>>0<=1){f=v[f+8>>2];j=(z|0)==-1|(f|0)<(c|0);z=j?e:z;c=j?f:c}j=e|1;f=n+B(j,40)|0;if(v[f+20>>2]-1>>>0<=1){f=v[f+8>>2];l=(z|0)==-1|(f|0)<(c|0);z=l?j:z;c=l?f:c}e=e+2|0;g=g+2|0;if((i|0)!=(g|0)){continue}break}}bb:{if(!r){break bb}f=n+B(e,40)|0;if(v[f+20>>2]-1>>>0>1){break bb}z=v[f+8>>2]<(c|0)?e:(z|0)==-1?e:z}c=1;if((z|0)<0){break Sa}c=n+B(z,40)|0;v[c+20>>2]=0;v[s+40>>2]=d;if(v[c+24>>2]){break Ya}v[s+44>>2]=v[s+44>>2]-1}l=v[s+44>>2];p=v[s+28>>2];if(l>>>0>=p>>>0){if(v[s+56>>2]){break Ta}c=p+1|0;r=c&-2;i=c&1;n=v[s>>2];while(1){z=0;c=2147483647;e=0;g=0;if(p){while(1){f=n+B(e,40)|0;if(v[f+24>>2]){C=f;j=v[f+16>>2];f=(j|0)<(c|0);z=f?C:z;c=f?j:c}f=n+B(e|1,40)|0;if(v[f+24>>2]){C=f;j=v[f+16>>2];f=(j|0)<(c|0);z=f?C:z;c=f?j:c}e=e+2|0;g=g+2|0;if((r|0)!=(g|0)){continue}break}}cb:{if(!i){break cb}e=n+B(e,40)|0;if(!v[e+24>>2]){break cb}z=v[e+16>>2]<(c|0)?e:z}db:{if(!z){break db}c=v[s+16>>2];e=v[s+12>>2]+(c<<4)|0;v[e>>2]=v[z>>2];v[e+12>>2]=v[z+36>>2];v[e+4>>2]=v[z+28>>2];v[e+8>>2]=v[z+32>>2];v[s+16>>2]=c+1;v[z+24>>2]=0;if(v[z+20>>2]){break db}l=l-1|0;v[s+44>>2]=l}if(l>>>0>=p>>>0){continue}break}}c=v[s>>2];e=c+B(p,40)|0;v[e+12>>2]=D;v[e+16>>2]=0;v[e+20>>2]=1;v[e+24>>2]=0;v[e+8>>2]=D;v[s+40>>2]=d+1;v[s+44>>2]=l+1;Pa(c,p+1|0);g=v[s+32>>2];D=(D+1>>>0)%(g>>>0)|0;if((D|0)!=(m|0)){continue}break}g=v[s+16>>2];eb:{if(!g){break eb}f=v[s>>2];i=v[s+28>>2];d=f+B(i,40)|0;j=v[d>>2];c=v[s+12>>2];e=0;while(1){if((j|0)!=v[c+(e<<4)>>2]){e=e+1|0;if((g|0)!=(e|0)){continue}break eb}break}if(!i){break eb}e=0;while(1){c=f+B(e,40)|0;if((o|0)!=v[c>>2]){e=e+1|0;if((i|0)!=(e|0)){continue}break eb}break}v[c>>2]=j;v[d>>2]=o}if(h){break Va}e=v[s+48>>2];break Wa}c=h;break Sa}if(h){break Va}}if((e|0)==(m|0)){break Ua}c=v[s+32>>2];m=((c+m|0)-1>>>0)%(c>>>0)|0}v[s+48>>2]=m}c=0;break Sa}while(1)continue}if(!c){break Ra}v[F+64>>2]=3495;aa(v[2372],F- -64|0);b=3;break a}d=a+1220|0;c=v[d>>2]+B(v[d+28>>2],40)|0;v[d+8>>2]=c;v[a+1336>>2]=v[c>>2]}Z=fa(a+1368|0,k,988);v[a+1188>>2]=1;c=v[F+316>>2];v[a+1360>>2]=v[F+312>>2];v[a+1364>>2]=c;s=v[a+1172>>2];d=v[a+1432>>2];r=0;m=0;c=v[a+16>>2];D=v[c+52>>2];l=v[c+56>>2];k=B(D,l);h=v[a+12>>2];f=v[h+12>>2];fb:{if((f|0)==1){ba(s,0,k<<2);break fb}gb:{hb:{e=v[h+16>>2];if(e-3>>>0<=2){c=B(d,v[h+36>>2]);z=c>>>0>>0?c:k;d=v[h+32>>2];if((e&-2)!=4){break hb}r=d?k-z|0:z}ib:{switch(e|0){default:if(!k){break gb}f=v[h+44>>2];c=0;if(k-1>>>0>=3){e=k&-4;j=0;while(1){h=c<<2;v[h+s>>2]=v[f+h>>2];d=h|4;v[d+s>>2]=v[d+f>>2];d=h|8;v[d+s>>2]=v[d+f>>2];d=h|12;v[d+s>>2]=v[d+f>>2];c=c+4|0;j=j+4|0;if((e|0)!=(j|0)){continue}break}}e=k&3;if(!e){break gb}while(1){d=c<<2;v[d+s>>2]=v[d+f>>2];c=c+1|0;m=m+1|0;if((e|0)!=(m|0)){continue}break};break gb;case 0:if(f){h=v[h+20>>2];g=0;while(1){r=0;if(g>>>0>=k>>>0){break gb}while(1){m=0;e=h+(r<<2)|0;c=v[e>>2];jb:{if(!c){break jb}m=c;if(g>>>0>=k>>>0){break jb}c=0;d=k-g|0;d=d>>>0>k>>>0?0:d;while(1){v[s+(c+g<<2)>>2]=r;c=c+1|0;m=v[e>>2];if(c>>>0>=m>>>0){break jb}if((c|0)!=(d|0)){continue}break}}r=r+1|0;g=g+m|0;if(f>>>0>r>>>0&k>>>0>g>>>0){continue}break}if(g>>>0>>0){continue}break}break gb}if(!k){break gb}while(1)continue;case 1:if(!k){break gb}c=0;while(1){d=(c>>>0)/(D>>>0)|0;v[s+(c<<2)>>2]=((B(d,f)>>>1)+(c-B(d,D))>>>0)%(f>>>0);c=c+1|0;if((k|0)!=(c|0)){continue}break};break gb;case 2:i=v[h+28>>2];g=v[h+24>>2];kb:{if(!k){break kb}e=f-1|0;r=0;if(k-1>>>0>=7){c=k&-8;j=0;while(1){d=r<<2;v[d+s>>2]=e;v[s+(d|4)>>2]=e;v[s+(d|8)>>2]=e;v[s+(d|12)>>2]=e;v[s+(d|16)>>2]=e;v[s+(d|20)>>2]=e;v[s+(d|24)>>2]=e;v[s+(d|28)>>2]=e;r=r+8|0;j=j+8|0;if((c|0)!=(j|0)){continue}break}}c=k&7;if(!c){break kb}while(1){v[s+(r<<2)>>2]=e;r=r+1|0;m=m+1|0;if((c|0)!=(m|0)){continue}break}}c=f-2|0;while(1){e=c;c=c<<2;d=v[c+g>>2];j=(d>>>0)/(D>>>0)|0;c=v[c+i>>2];l=(c>>>0)/(D>>>0)|0;lb:{if(j>>>0>l>>>0){break lb}d=d-B(j,D)|0;f=c-B(l,D)|0;if(d>>>0>f>>>0){break lb}while(1){h=B(j,D);c=d;while(1){v[s+(c+h<<2)>>2]=e;c=c+1|0;if(f>>>0>=c>>>0){continue}break}j=j+1|0;if(l>>>0>=j>>>0){continue}break}}c=e-1|0;if(e){continue}break};break gb;case 5:if(!D|!l){break gb}i=v[h+32>>2];f=1-i|0;h=l&-2;e=l&1;d=0;while(1){c=d;g=0;j=0;if((l|0)!=1){while(1){v[s+(B(g,D)+m<<2)>>2]=c>>>0>>0?i:f;v[s+(B(D,g|1)+m<<2)>>2]=c+1>>>0>>0?i:f;g=g+2|0;c=c+2|0;j=j+2|0;if((h|0)!=(j|0)){continue}break}}if(e){v[s+(B(g,D)+m<<2)>>2]=c>>>0>>0?i:f}d=d+l|0;m=m+1|0;if((D|0)!=(m|0)){continue}break};break gb;case 4:break ib}}if(!k){break gb}f=v[h+32>>2];h=1-f|0;j=0;c=0;if(k-1>>>0>=3){e=k&-4;z=0;while(1){v[s+(c<<2)>>2]=c>>>0>>0?f:h;d=c|1;v[s+(d<<2)>>2]=d>>>0>>0?f:h;d=c|2;v[s+(d<<2)>>2]=d>>>0>>0?f:h;d=c|3;v[s+(d<<2)>>2]=d>>>0>>0?f:h;c=c+4|0;z=z+4|0;if((e|0)!=(z|0)){continue}break}}d=k&3;if(!d){break gb}while(1){v[s+(c<<2)>>2]=c>>>0>>0?f:h;c=c+1|0;j=j+1|0;if((d|0)!=(j|0)){continue}break}break gb}mb:{if(!k){break mb}g=0;if(k-1>>>0>=7){c=k&-8;while(1){e=g<<2;v[e+s>>2]=1;v[s+(e|4)>>2]=1;v[s+(e|8)>>2]=1;v[s+(e|12)>>2]=1;v[s+(e|16)>>2]=1;v[s+(e|20)>>2]=1;v[s+(e|24)>>2]=1;v[s+(e|28)>>2]=1;g=g+8|0;m=m+8|0;if((c|0)!=(m|0)){continue}break}}c=k&7;if(!c){break mb}while(1){v[s+(g<<2)>>2]=1;g=g+1|0;r=r+1|0;if((c|0)!=(r|0)){continue}break}}if(!z){break gb}p=D-1|0;n=l-1|0;g=d-1|0;c=d<<1;h=1-c|0;e=c-1|0;f=l-d>>>1|0;k=f;o=D-d>>>1|0;r=o;l=f;c=o;m=0;while(1){i=s+(B(l,D)+c<<2)|0;j=v[i>>2];if((j|0)==1){v[i>>2]=0}j=(j|0)==1;nb:{if(!((g|0)!=-1|(c|0)!=(r|0))){g=0;d=e;c=((r|0)>1?r:1)-1|0;r=c;break nb}if(!((g|0)!=1|(c|0)!=(o|0))){g=0;d=h;c=o+1|0;c=(c|0)<(p|0)?c:p;o=c;break nb}if(!((d|0)!=-1|(k|0)!=(l|0))){d=0;g=h;l=((k|0)>1?k:1)-1|0;k=l;break nb}if(!((d|0)!=1|(f|0)!=(l|0))){d=0;g=e;f=f+1|0;l=(f|0)<(n|0)?f:n;f=l;break nb}l=d+l|0;c=c+g|0}m=j+m|0;if(z>>>0>m>>>0){continue}break}}}k=a+1220|0;Na(k);h=v[a+1380>>2];f=v[a+1412>>2];d=0;j=v[k+40>>2];if(j){g=v[k>>2];while(1){c=g+B(d,40)|0;if(v[c+20>>2]-1>>>0<=1){e=v[c+12>>2];if(e>>>0>h>>>0){e=e-v[k+32>>2]|0}v[c+8>>2]=e}d=d+1|0;if((j|0)!=(d|0)){continue}break}}e=0;r=a+1436|0;ob:{if(!v[r>>2]){break ob}d=v[r+4>>2];if(d>>>0>2){break ob}z=0;c=h;while(1){pb:{qb:{rb:{sb:{tb:{ub:{switch(d|0){case 0:c=c-v[(r+B(z,12)|0)+8>>2]|0;if((c|0)>=0){break tb}c=v[k+32>>2]+c|0;break tb;case 2:break sb;default:break ub}}d=v[(r+B(z,12)|0)+8>>2]+c|0;c=v[k+32>>2];c=d-((c|0)>(d|0)?0:c)|0}D=c>>>0>h>>>0?c-v[k+32>>2]|0:c;e=1;j=v[k+24>>2];if(!j){break ob}l=v[k>>2];d=0;while(1){e=B(d,40)+l|0;g=v[e+20>>2];if(g-1>>>0<=1&v[e+8>>2]==(D|0)){break rb}e=1;d=d+1|0;if((j|0)!=(d|0)){continue}break}break ob}e=1;j=v[k+24>>2];if(!j){break ob}g=v[(r+B(z,12)|0)+12>>2];l=v[k>>2];d=0;while(1){e=B(d,40)+l|0;if(v[e+20>>2]==3&(g|0)==v[e+8>>2]){break qb}e=1;d=d+1|0;if((j|0)!=(d|0)){continue}break}break ob}e=1;if((d|0)<0){break ob}if(g>>>0>1){break pb}break ob}e=1;if((d|0)<0){break ob}}if(f>>>0>z>>>0){l=0;e=f;j=f-z&3;if(j){while(1){g=v[k+4>>2];i=g+(e<<2)|0;e=e-1|0;v[i>>2]=v[g+(e<<2)>>2];l=l+1|0;if((j|0)!=(l|0)){continue}break}}if(f+(z^-1)>>>0>=3){while(1){i=e<<2;j=i-4|0;g=v[k+4>>2];v[i+g>>2]=v[g+j>>2];g=v[k+4>>2];o=g+j|0;j=g;g=i-8|0;v[o>>2]=v[j+g>>2];j=g;g=v[k+4>>2];o=j+g|0;j=g;g=i-12|0;v[o>>2]=v[j+g>>2];j=g;g=v[k+4>>2];e=e-4|0;v[j+g>>2]=v[g+(e<<2)>>2];if(e>>>0>z>>>0){continue}break}}l=v[k>>2]}i=B(d,40);v[v[k+4>>2]+(z<<2)>>2]=i+l;z=z+1|0;e=z;d=e;if(f>>>0>=d>>>0){while(1){j=v[k+4>>2];g=v[j+(d<<2)>>2];if((g|0)!=(i+v[k>>2]|0)){v[j+(e<<2)>>2]=g;e=e+1|0}d=d+1|0;if(f>>>0>=d>>>0){continue}break}}e=0;d=v[(r+B(z,12)|0)+4>>2];if(d>>>0<3){continue}break}}if(e){v[F+48>>2]=3537;aa(v[2372],F+48|0);b=3;break a}H=F+192|0;V=a+1336|0;z=0;D=0;U=T-528|0;T=U;e=v[Z>>2];I=v[a+3376>>2];v[U+92>>2]=0;v[a+1200>>2]=0;v[a+1192>>2]=v[a+1192>>2]+1;v[U+88>>2]=v[Z+48>>2]+v[v[a+12>>2]+52>>2];pa=a+1220|0;Ya=I+12|0;vb:{while(1){g=v[a+1212>>2];if(!(v[Z+36>>2]|!v[(g+B(e,216)|0)+196>>2])){v[U+80>>2]=3914;aa(v[2372],U+80|0);f=1;break vb}f=v[a+1192>>2];h=v[Z+52>>2];d=v[Z+56>>2];c=v[Z+60>>2];Ca=B(e,216);g=Ca+g|0;v[g+24>>2]=v[v[a+12>>2]+56>>2];v[g+16>>2]=c;v[g+8>>2]=h;v[g+12>>2]=d;v[g+4>>2]=f;c=v[Z+4>>2];wb:{if(z|((c|0)==2|(c|0)==7)){break wb}f=_(H,U+92|0);if(f){break vb}c=v[U+92>>2];if(c>>>0>v[a+1176>>2]-e>>>0){v[U+64>>2]=3419;aa(v[2372],U- -64|0);f=1;break vb}if(!c){z=0;break wb}ba(Ya,0,164);v[I>>2]=0;z=1}xb:{c=v[U+92>>2];if(c){v[U+92>>2]=c-1;break xb}z=0;r=Ca+v[a+1212>>2]|0;c=v[Z+4>>2];l=v[Z+44>>2];m=0;h=T-16|0;T=h;k=ba(I,0,2088);d=_(H,h+4|0);yb:{zb:{Ab:{switch(c-2|0){case 0:case 5:f=1;i=v[h+4>>2]+6|0;if(i>>>0>31){break yb}if(!d){break zb}break yb;default:break Ab}}f=1;i=v[h+4>>2]+1|0;if(d|i>>>0>31){break yb}}v[k>>2]=i;Bb:{if((i|0)==31){while(1){if(v[H+8>>2]){if(!$(H,1)){continue}break yb}break}i=k+328|0;while(1){c=$(H,8);v[h+4>>2]=c;if((c|0)==-1){break yb}v[i>>2]=c;i=i+4|0;m=m+1|0;if((m|0)!=384){continue}break}break Bb}j=i>>>0<6?2:(i|0)!=6;Cb:{if((i&-2)==4){if(_(H,h+12|0)){break Cb}c=v[h+12>>2];if(c>>>0>3){break Cb}v[k+176>>2]=c;if(_(H,h+12|0)){break Cb}c=v[h+12>>2];if(c>>>0>3){break Cb}v[k+180>>2]=c;if(_(H,h+12|0)){break Cb}c=v[h+12>>2];if(c>>>0>3){break Cb}v[k+184>>2]=c;if(_(H,h+12|0)){break Cb}c=v[h+12>>2];if(c>>>0>3){break Cb}v[k+188>>2]=c;if(!((i|0)==5|l>>>0<2)){d=l>>>0>2;if(ta(H,h+12|0,d)){break Cb}c=v[h+12>>2];if(c>>>0>=l>>>0){break Cb}v[k+192>>2]=c;if(ta(H,h+12|0,d)){break Cb}c=v[h+12>>2];if(c>>>0>=l>>>0){break Cb}v[k+196>>2]=c;if(ta(H,h+12|0,d)){break Cb}c=v[h+12>>2];if(c>>>0>=l>>>0){break Cb}v[k+200>>2]=c;if(ta(H,h+12|0,d)){break Cb}c=v[h+12>>2];if(c>>>0>=l>>>0){break Cb}v[k+204>>2]=c}c=v[k+176>>2];if(c>>>0<=2){c=v[(c<<2)+8016>>2]}else{c=3}v[h+12>>2]=c;i=0;while(1){f=da(H,h+8|0);if(f){break Cb}c=k+(i<<2)|0;u[c+208>>1]=v[h+8>>2];f=da(H,h+8|0);if(f){break Cb}u[c+210>>1]=v[h+8>>2];c=v[h+12>>2];v[h+12>>2]=c-1;i=i+1|0;if(c){continue}break}c=v[k+180>>2];if(c>>>0<=2){c=v[(c<<2)+8016>>2]}else{c=3}v[h+12>>2]=c;i=0;while(1){f=da(H,h+8|0);if(f){break Cb}c=k+(i<<2)|0;u[c+224>>1]=v[h+8>>2];f=da(H,h+8|0);if(f){break Cb}u[c+226>>1]=v[h+8>>2];c=v[h+12>>2];v[h+12>>2]=c-1;i=i+1|0;if(c){continue}break}c=v[k+184>>2];if(c>>>0<=2){c=v[(c<<2)+8016>>2]}else{c=3}v[h+12>>2]=c;i=0;while(1){f=da(H,h+8|0);if(f){break Cb}c=k+(i<<2)|0;u[c+240>>1]=v[h+8>>2];f=da(H,h+8|0);if(f){break Cb}u[c+242>>1]=v[h+8>>2];c=v[h+12>>2];v[h+12>>2]=c-1;i=i+1|0;if(c){continue}break}c=v[k+188>>2];if(c>>>0<=2){c=v[(c<<2)+8016>>2]}else{c=3}v[h+12>>2]=c;i=0;while(1){f=da(H,h+8|0);if(f){break Cb}c=k+(i<<2)|0;u[c+256>>1]=v[h+8>>2];f=da(H,h+8|0);if(f){break Cb}u[c+258>>1]=v[h+8>>2];c=v[h+12>>2];v[h+12>>2]=c-1;i=i+1|0;f=0;if(c){continue}break}break Cb}f=0;Db:{Eb:{Fb:{Gb:{Hb:{switch(j|0){case 0:c=na(H);v[k+12>>2]=c>>>31;i=c<<1;if((c|0)>=0){break Gb}f=0;break Fb;case 1:break Eb;case 2:break Hb;default:break Cb}}if(l>>>0>=2){c=3;c=i>>>0<=3?v[(i<<2)+8028>>2]:c;g=l>>>0>2;f=1;while(1){if(ta(H,h+12|0,g)){break Cb}d=v[h+12>>2];if(d>>>0>=l>>>0){break Cb}v[(k+(m<<2)|0)+144>>2]=d;d=c;c=c-1|0;m=m+1|0;if(d){continue}break}}f=3;f=i>>>0<=3?v[(i<<2)+8028>>2]:f;i=0;while(1){c=f;f=da(H,h+8|0);if(f){break Cb}d=k+(i<<2)|0;u[d+160>>1]=v[h+8>>2];f=da(H,h+8|0);if(f){break Cb}u[d+162>>1]=v[h+8>>2];f=c-1|0;i=i+1|0;if(c){continue}break}break Db}v[k+76>>2]=i>>>29;i=c<<4;f=1}v[k+16>>2]=i>>>31;m=i<<1;if((i|0)>=0){v[k+80>>2]=m>>>29;m=i<<4;f=f+1|0}v[k+20>>2]=m>>>31;i=m<<1;if((m|0)>=0){v[k+84>>2]=i>>>29;i=m<<4;f=f+1|0}v[k+24>>2]=i>>>31;m=i<<1;if((i|0)>=0){v[k+88>>2]=m>>>29;m=i<<4;f=f+1|0}v[k+28>>2]=m>>>31;i=m<<1;if((m|0)>=0){v[k+92>>2]=i>>>29;i=m<<4;f=f+1|0}v[k+32>>2]=i>>>31;m=i<<1;if((i|0)>=0){v[k+96>>2]=m>>>29;m=i<<4;f=f+1|0}v[k+36>>2]=m>>>31;i=m<<1;if((m|0)>=0){v[k+100>>2]=i>>>29;i=m<<4;f=f+1|0}v[k+40>>2]=i>>>31;if((i|0)>=0){v[k+104>>2]=i>>>28;f=f+1|0}if((ia(H,B(f,3)+8|0)|0)==-1){f=1;break Cb}c=na(H);v[k+44>>2]=c>>>31;i=c<<1;if((c|0)<0){f=0}else{v[k+108>>2]=i>>>29;i=c<<4;f=1}v[k+48>>2]=i>>>31;m=i<<1;if((i|0)>=0){v[k+112>>2]=m>>>29;m=i<<4;f=f+1|0}v[k+52>>2]=m>>>31;i=m<<1;if((m|0)>=0){v[k+116>>2]=i>>>29;i=m<<4;f=f+1|0}v[k+56>>2]=i>>>31;m=i<<1;if((i|0)>=0){v[k+120>>2]=m>>>29;m=i<<4;f=f+1|0}v[k+60>>2]=m>>>31;i=m<<1;if((m|0)>=0){v[k+124>>2]=i>>>29;i=m<<4;f=f+1|0}v[k- -64>>2]=i>>>31;m=i<<1;if((i|0)>=0){v[k+128>>2]=m>>>29;m=i<<4;f=f+1|0}v[k+68>>2]=m>>>31;i=m<<1;if((m|0)>=0){v[k+132>>2]=i>>>29;i=m<<4;f=f+1|0}v[k+72>>2]=i>>>31;m=i<<1;if((i|0)>=0){v[k+136>>2]=m>>>29;m=i<<4;f=f+1|0}if((ia(H,B(f,3)+8|0)|0)==-1){f=1;break Cb}v[h+12>>2]=m;v[h+8>>2]=2}f=1;if(_(H,h+12|0)){break Cb}c=v[h+12>>2];if(c>>>0>3){break Cb}v[k+140>>2]=c}f=0}if(f){break yb}Ib:{if((j|0)!=1){d=!j;g=T-16|0;T=g;f=1;Jb:{if(_(H,g+12|0)){break Jb}c=v[g+12>>2];if(c>>>0>47){break Jb}v[h+4>>2]=w[c+(d?9392:9440)|0];f=0}T=g+16|0;if(f){break yb}c=v[h+4>>2];v[k+4>>2]=c;if(!c){break Bb}break Ib}f=v[k>>2];d=f-7|0;c=d<<2&-16;v[k+4>>2]=(d>>>0>11?c-48|0:c)|(f>>>0>18?15:0)}f=1;if(da(H,h+12|0)){break yb}c=v[h+12>>2];if((c|0)<-26|(c|0)>25){break yb}v[k+8>>2]=c;g=k+272|0;i=v[k+4>>2];j=0;Kb:{Lb:{Mb:{if(y[k>>2]<7){d=3;while(1){c=d;if(i&1){d=ga(H,(g+(j<<6)|0)+56|0,ka(r,j,g),16);v[(g+(j<<2)|0)+1720>>2]=d>>>16;if(d&15){break Lb}u[g+(j<<1)>>1]=d>>>4&255;f=j|1;d=ga(H,(g+(f<<6)|0)+56|0,ka(r,f,g),16);v[(g+(f<<2)|0)+1720>>2]=d>>>16;if(d&15){break Lb}u[g+(f<<1)>>1]=d>>>4&255;f=j|2;d=ga(H,(g+(f<<6)|0)+56|0,ka(r,f,g),16);v[(g+(f<<2)|0)+1720>>2]=d>>>16;if(d&15){break Lb}u[g+(f<<1)>>1]=d>>>4&255;f=j|3;d=ga(H,(g+(f<<6)|0)+56|0,ka(r,f,g),16);v[(g+(f<<2)|0)+1720>>2]=d>>>16;if(d&15){break Lb}u[g+(f<<1)>>1]=d>>>4&255}i=i>>>1|0;d=c-1|0;j=j+4|0;if(c){continue}break}break Mb}d=ga(H,g+1592|0,ka(r,0,g),16);if(d&15){break Lb}u[g+48>>1]=d>>>4&255;d=3;while(1){c=d;if(i&1){d=ga(H,(g+(j<<6)|0)+60|0,ka(r,j,g),15);v[(g+(j<<2)|0)+1720>>2]=d>>>15;if(d&15){break Lb}u[g+(j<<1)>>1]=d>>>4&255;f=j|1;d=ga(H,(g+(f<<6)|0)+60|0,ka(r,f,g),15);v[(g+(f<<2)|0)+1720>>2]=d>>>15;if(d&15){break Lb}u[g+(f<<1)>>1]=d>>>4&255;f=j|2;d=ga(H,(g+(f<<6)|0)+60|0,ka(r,f,g),15);v[(g+(f<<2)|0)+1720>>2]=d>>>15;if(d&15){break Lb}u[g+(f<<1)>>1]=d>>>4&255;f=j|3;d=ga(H,(g+(f<<6)|0)+60|0,ka(r,f,g),15);v[(g+(f<<2)|0)+1720>>2]=d>>>15;if(d&15){break Lb}u[g+(f<<1)>>1]=d>>>4&255}i=i>>>1|0;d=c-1|0;j=j+4|0;if(c){continue}break}}if(i&3){d=ga(H,g+1656|0,-1,4);if(d&15){break Lb}u[g+50>>1]=d>>>4&255;d=ga(H,g+1672|0,-1,4);if(d&15){break Lb}u[g+52>>1]=d>>>4&255}d=0;if(!(i&2)){break Lb}f=ga(H,(g+(j<<6)|0)+60|0,ka(r,j,g),15);if(f&15){break Kb}u[g+(j<<1)>>1]=f>>>4&255;v[(g+(j<<2)|0)+1720>>2]=f>>>15;c=j+1|0;f=ga(H,(g+(c<<6)|0)+60|0,ka(r,c,g),15);if(f&15){break Kb}u[g+(c<<1)>>1]=f>>>4&255;v[(g+(c<<2)|0)+1720>>2]=f>>>15;c=j+2|0;f=ga(H,(g+(c<<6)|0)+60|0,ka(r,c,g),15);if(f&15){break Kb}u[g+(c<<1)>>1]=f>>>4&255;v[(g+(c<<2)|0)+1720>>2]=f>>>15;c=j+3|0;f=ga(H,(g+(c<<6)|0)+60|0,ka(r,c,g),15);if(f&15){break Kb}u[g+(c<<1)>>1]=f>>>4&255;v[(g+(c<<2)|0)+1720>>2]=f>>>15;c=j+4|0;f=ga(H,(g+(c<<6)|0)+60|0,ka(r,c,g),15);if(f&15){break Kb}u[g+(c<<1)>>1]=f>>>4&255;v[(g+(c<<2)|0)+1720>>2]=f>>>15;c=j+5|0;f=ga(H,(g+(c<<6)|0)+60|0,ka(r,c,g),15);if(f&15){break Kb}u[g+(c<<1)>>1]=f>>>4&255;v[(g+(c<<2)|0)+1720>>2]=f>>>15;c=j+6|0;f=ga(H,(g+(c<<6)|0)+60|0,ka(r,c,g),15);if(f&15){break Kb}u[g+(c<<1)>>1]=f>>>4&255;v[(g+(c<<2)|0)+1720>>2]=f>>>15;c=j+7|0;f=ga(H,(g+(c<<6)|0)+60|0,ka(r,c,g),15);if(f&15){break Kb}u[g+(c<<1)>>1]=f>>>4&255;v[(g+(c<<2)|0)+1720>>2]=f>>>15}f=d}v[H+16>>2]=v[H+8>>2]+(v[H+4>>2]-v[H>>2]<<3);if(f){break yb}}f=0}T=h+16|0;if(!f){break xb}v[U+48>>2]=3402;aa(v[2372],U+48|0);break vb}ja=v[v[a+12>>2]+64>>2];h=U+96|0;q=Ca+v[a+1212>>2]|0;o=v[I>>2];v[q>>2]=o;v[q+196>>2]=v[q+196>>2]+1;m=e;Fa(V,e);Nb:{Ob:{Pb:{if(o){if((o|0)==31){v[q+20>>2]=0;if(y[q+196>>2]>=2){u[q+28>>1]=16;u[q+30>>1]=16;u[q+32>>1]=16;u[q+34>>1]=16;u[q+68>>1]=16;u[q+70>>1]=16;u[q+72>>1]=16;u[q+74>>1]=16;u[q+60>>1]=16;u[q+62>>1]=16;u[q+64>>1]=16;u[q+66>>1]=16;u[q+52>>1]=16;u[q+54>>1]=16;u[q+56>>1]=16;u[q+58>>1]=16;u[q+44>>1]=16;u[q+46>>1]=16;u[q+48>>1]=16;u[q+50>>1]=16;u[q+36>>1]=16;u[q+38>>1]=16;u[q+40>>1]=16;u[q+42>>1]=16;e=0;break Nb}k=q+28|0;i=I+328|0;e=23;j=h;while(1){u[k>>1]=16;t[j|0]=v[i>>2];t[j+1|0]=v[i+4>>2];t[j+2|0]=v[i+8>>2];t[j+3|0]=v[i+12>>2];t[j+4|0]=v[i+16>>2];t[j+5|0]=v[i+20>>2];t[j+6|0]=v[i+24>>2];t[j+7|0]=v[i+28>>2];t[j+8|0]=v[i+32>>2];t[j+9|0]=v[i+36>>2];t[j+10|0]=v[i+40>>2];t[j+11|0]=v[i+44>>2];t[j+12|0]=v[i+48>>2];t[j+13|0]=v[i+52>>2];t[j+14|0]=v[i+56>>2];t[j+15|0]=v[i+60>>2];c=e;e=c-1|0;k=k+2|0;j=j+16|0;i=i- -64|0;if(c){continue}break}va(V,h);break Ob}c=v[I+276>>2];v[q+28>>2]=v[I+272>>2];v[q+32>>2]=c;d=x[I+322>>1]|x[I+324>>1]<<16;c=x[I+318>>1]|x[I+320>>1]<<16;u[q+74>>1]=c;u[q+76>>1]=c>>>16;u[q+78>>1]=d;u[q+80>>1]=d>>>16;c=v[I+316>>2];v[q+68>>2]=v[I+312>>2];v[q+72>>2]=c;c=v[I+308>>2];v[q+60>>2]=v[I+304>>2];v[q+64>>2]=c;k=52;c=v[I+300>>2];v[q+52>>2]=v[I+296>>2];v[q+56>>2]=c;c=v[I+292>>2];v[q+44>>2]=v[I+288>>2];v[q+48>>2]=c;c=v[I+284>>2];v[q+36>>2]=v[I+280>>2];v[q+40>>2]=c;g=v[U+88>>2];c=v[I+8>>2];Qb:{if(!c){break Qb}g=c+g|0;v[U+88>>2]=g;if((g|0)>=0){k=-52;if(g>>>0<52){break Qb}}g=g+k|0;v[U+88>>2]=g}i=q+28|0;v[q+20>>2]=g;k=I+1992|0;j=I+328|0;Rb:{Sb:{Tb:{if(y[q>>2]<=6){if(!x[i>>1]){break Tb}e=1;if(!ea(j,g,0,v[k>>2])){break Sb}break Nb}if(x[q+76>>1]){Ub:{K=I+1864|0;r=v[K+56>>2];d=v[K+36>>2];l=r+d|0;f=v[K+60>>2];c=v[K+40>>2];e=f+c|0;O=l-e|0;d=d-r|0;c=c-f|0;Q=d-c|0;M=c+d|0;S=e+l|0;r=v[K+44>>2];d=v[K+12>>2];l=r+d|0;f=v[K+52>>2];c=v[K+32>>2];e=f+c|0;L=l-e|0;d=d-r|0;c=c-f|0;N=d-c|0;R=c+d|0;J=e+l|0;r=v[K+28>>2];d=v[K+8>>2];l=r+d|0;f=v[K+48>>2];c=v[K+16>>2];e=f+c|0;G=l-e|0;d=d-r|0;c=c-f|0;C=d-c|0;A=c+d|0;s=e+l|0;r=v[K+20>>2];d=v[K>>2];l=r+d|0;f=v[K+24>>2];c=v[K+4>>2];e=f+c|0;p=l-e|0;d=d-r|0;c=c-f|0;n=d-c|0;r=c+d|0;d=e+l|0;c=w[g+8944|0];P=v[B(w[g+9088|0],12)+9008>>2];if(g>>>0>=12){g=P<>2]=B(g,f-e|0);d=d-J|0;c=s-S|0;v[K+32>>2]=B(g,d-c|0);v[K+16>>2]=B(g,c+d|0);v[K>>2]=B(g,e+f|0);f=r+R|0;e=A+M|0;v[K+52>>2]=B(g,f-e|0);d=r-R|0;c=A-M|0;v[K+36>>2]=B(g,d-c|0);v[K+20>>2]=B(g,c+d|0);v[K+4>>2]=B(g,e+f|0);f=n+N|0;e=C+Q|0;v[K+56>>2]=B(g,f-e|0);d=n-N|0;c=C-Q|0;v[K+40>>2]=B(g,d-c|0);v[K+24>>2]=B(g,c+d|0);v[K+8>>2]=B(g,e+f|0);f=p+L|0;e=G+O|0;v[K+60>>2]=B(g,f-e|0);d=p-L|0;c=G-O|0;v[K+44>>2]=B(g,d-c|0);v[K+28>>2]=B(g,c+d|0);v[K+12>>2]=B(g,e+f|0);break Ub}l=g-6>>>0<6?1:2;f=d+J|0;e=s+S|0;g=2-c|0;v[K+48>>2]=l+B(P,f-e|0)>>g;d=d-J|0;c=s-S|0;v[K+32>>2]=l+B(P,d-c|0)>>g;v[K+16>>2]=l+B(P,c+d|0)>>g;v[K>>2]=l+B(P,e+f|0)>>g;f=r+R|0;e=A+M|0;v[K+52>>2]=l+B(P,f-e|0)>>g;d=r-R|0;c=A-M|0;v[K+36>>2]=l+B(P,d-c|0)>>g;v[K+20>>2]=l+B(P,c+d|0)>>g;v[K+4>>2]=l+B(P,e+f|0)>>g;f=n+N|0;e=C+Q|0;v[K+56>>2]=l+B(P,f-e|0)>>g;d=n-N|0;c=C-Q|0;v[K+40>>2]=l+B(P,d-c|0)>>g;v[K+24>>2]=l+B(P,c+d|0)>>g;v[K+8>>2]=l+B(P,e+f|0)>>g;f=p+L|0;e=G+O|0;v[K+60>>2]=l+B(P,f-e|0)>>g;d=p-L|0;c=G-O|0;v[K+44>>2]=l+B(P,d-c|0)>>g;v[K+28>>2]=l+B(P,c+d|0)>>g;v[K+12>>2]=l+B(P,e+f|0)>>g}}g=7952;e=15;while(1){c=e;d=v[(I+(v[g>>2]<<2)|0)+1864>>2];v[j>>2]=d;Vb:{if(x[i>>1]?1:d){e=1;if(!ea(j,v[q+20>>2],1,v[k>>2])){break Vb}break Nb}v[j>>2]=16777215}g=g+4|0;e=c-1|0;k=k+4|0;i=i+2|0;j=j- -64|0;if(c){continue}break}break Rb}v[j>>2]=16777215}c=I+392|0;Wb:{if(x[q+30>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+1996>>2])){break Wb}break Nb}v[c>>2]=16777215}c=I+456|0;Xb:{if(x[q+32>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+2e3>>2])){break Xb}break Nb}v[c>>2]=16777215}c=I+520|0;Yb:{if(x[q+34>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+2004>>2])){break Yb}break Nb}v[c>>2]=16777215}c=I+584|0;Zb:{if(x[q+36>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+2008>>2])){break Zb}break Nb}v[c>>2]=16777215}c=I+648|0;_b:{if(x[q+38>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+2012>>2])){break _b}break Nb}v[c>>2]=16777215}c=I+712|0;$b:{if(x[q+40>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+2016>>2])){break $b}break Nb}v[c>>2]=16777215}c=I+776|0;ac:{if(x[q+42>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+2020>>2])){break ac}break Nb}v[c>>2]=16777215}c=I+840|0;bc:{if(x[q+44>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+2024>>2])){break bc}break Nb}v[c>>2]=16777215}c=I+904|0;cc:{if(x[q+46>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+2028>>2])){break cc}break Nb}v[c>>2]=16777215}c=I+968|0;dc:{if(x[q+48>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+2032>>2])){break dc}break Nb}v[c>>2]=16777215}c=I+1032|0;ec:{if(x[q+50>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+2036>>2])){break ec}break Nb}v[c>>2]=16777215}c=I+1096|0;fc:{if(x[q+52>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+2040>>2])){break fc}break Nb}v[c>>2]=16777215}c=I+1160|0;gc:{if(x[q+54>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+2044>>2])){break gc}break Nb}v[c>>2]=16777215}c=I+1224|0;hc:{if(x[q+56>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+2048>>2])){break hc}break Nb}v[c>>2]=16777215}c=I+1288|0;ic:{if(x[q+58>>1]){e=1;if(!ea(c,v[q+20>>2],0,v[I+2052>>2])){break ic}break Nb}v[c>>2]=16777215}k=I+2056|0;j=I+1352|0}c=v[q+24>>2]+v[q+20>>2]|0;c=(c|0)<51?c:51;n=v[(((c|0)>0?c:0)<<2)+9152>>2];if(x[q+80>>1]?1:x[q+78>>1]){e=v[B(w[n+9088|0],12)+9008>>2];i=1;p=I+1928|0;r=v[p>>2];if(n>>>0>=6){i=0;e=e<>2];d=r-l|0;g=v[p+4>>2];f=v[p+12>>2];c=g-f|0;v[p+12>>2]=B(d-c|0,e)>>i;v[p+8>>2]=B(c+d|0,e)>>i;d=l+r|0;c=f+g|0;v[p+4>>2]=B(d-c|0,e)>>i;v[p>>2]=B(c+d|0,e)>>i;r=v[p+28>>2];d=v[p+20>>2];l=r+d|0;g=v[p+24>>2];c=v[p+16>>2];f=g+c|0;v[p+16>>2]=B(l+f|0,e)>>i;d=d-r|0;c=c-g|0;v[p+24>>2]=B(d+c|0,e)>>i;v[p+20>>2]=B(f-l|0,e)>>i;v[p+28>>2]=B(c-d|0,e)>>i}c=v[I+1928>>2];v[j>>2]=c;jc:{if(x[q+60>>1]?1:c){e=1;if(!ea(j,n,1,v[k>>2])){break jc}break Nb}v[j>>2]=16777215}c=v[I+1932>>2];v[j+64>>2]=c;d=j- -64|0;kc:{if(x[q+62>>1]?1:c){e=1;if(!ea(d,n,1,v[k+4>>2])){break kc}break Nb}v[d>>2]=16777215}c=v[I+1936>>2];v[j+128>>2]=c;d=j+128|0;lc:{if(x[q- -64>>1]?1:c){e=1;if(!ea(d,n,1,v[k+8>>2])){break lc}break Nb}v[d>>2]=16777215}c=v[I+1940>>2];v[j+192>>2]=c;d=j+192|0;mc:{if(x[q+66>>1]?1:c){e=1;if(!ea(d,n,1,v[k+12>>2])){break mc}break Nb}v[d>>2]=16777215}c=v[I+1944>>2];v[j+256>>2]=c;d=j+256|0;nc:{if(x[q+68>>1]?1:c){e=1;if(!ea(d,n,1,v[k+16>>2])){break nc}break Nb}v[d>>2]=16777215}c=v[I+1948>>2];v[j+320>>2]=c;d=j+320|0;oc:{if(x[q+70>>1]?1:c){e=1;if(!ea(d,n,1,v[k+20>>2])){break oc}break Nb}v[d>>2]=16777215}c=v[I+1952>>2];v[j+384>>2]=c;d=j+384|0;pc:{if(x[q+72>>1]?1:c){e=1;if(!ea(d,n,1,v[k+24>>2])){break pc}break Nb}v[d>>2]=16777215}c=v[I+1956>>2];v[j+448>>2]=c;d=j+448|0;qc:{if(x[q+74>>1]?1:c){e=1;if(!ea(d,n,1,v[k+28>>2])){break qc}break Nb}v[d>>2]=16777215}if(o>>>0<6){break Pb}A=0;M=0;C=T-80|0;T=C;p=C+32|0;c=C;rc:{if(!m){break rc}r=v[V+4>>2];i=(m>>>0)/(r>>>0)|0;d=B(i,r);j=m-d|0;l=(v[V>>2]+(d<<8)|0)+(j<<4)|0;k=r<<4;g=v[V+8>>2];f=m>>>0>>0;if(!f){e=l+(k^-1)|0;t[p|0]=w[e|0];t[p+1|0]=w[l-k|0];t[p+2|0]=w[e+2|0];t[p+3|0]=w[e+3|0];t[p+4|0]=w[e+4|0];t[p+5|0]=w[e+5|0];t[p+6|0]=w[e+6|0];t[p+7|0]=w[e+7|0];t[p+8|0]=w[e+8|0];t[p+9|0]=w[e+9|0];t[p+10|0]=w[e+10|0];t[p+11|0]=w[e+11|0];t[p+12|0]=w[e+12|0];t[p+13|0]=w[e+13|0];t[p+14|0]=w[e+14|0];t[p+15|0]=w[e+15|0];t[p+16|0]=w[e+16|0];t[p+17|0]=w[e+17|0];t[p+18|0]=w[e+18|0];t[p+19|0]=w[e+19|0];t[p+20|0]=w[e+20|0];p=p+21|0}e=(d|0)==(m|0);if(!e){d=l-1|0;t[c|0]=w[d|0];d=d+k|0;t[c+1|0]=w[d|0];d=d+k|0;t[c+2|0]=w[d|0];d=d+k|0;t[c+3|0]=w[d|0];d=d+k|0;t[c+4|0]=w[d|0];d=d+k|0;t[c+5|0]=w[d|0];d=d+k|0;t[c+6|0]=w[d|0];d=d+k|0;t[c+7|0]=w[d|0];d=d+k|0;t[c+8|0]=w[d|0];d=d+k|0;t[c+9|0]=w[d|0];d=d+k|0;t[c+10|0]=w[d|0];d=d+k|0;t[c+11|0]=w[d|0];d=d+k|0;t[c+12|0]=w[d|0];d=d+k|0;t[c+13|0]=w[d|0];d=d+k|0;t[c+14|0]=w[d|0];t[c+15|0]=w[d+k|0];c=c+16|0}g=B(g,r);d=i;i=k>>>1|0;j=((v[V>>2]+(g<<8)|0)+(B(d,i)<<3)|0)+(j<<3)|0;if(!f){d=j+(i^-1)|0;t[p|0]=w[d|0];t[p+1|0]=w[j-i|0];t[p+2|0]=w[d+2|0];t[p+3|0]=w[d+3|0];t[p+4|0]=w[d+4|0];t[p+5|0]=w[d+5|0];t[p+6|0]=w[d+6|0];t[p+7|0]=w[d+7|0];d=d+8|0;t[p+8|0]=w[d|0];d=d+(g<<6)|0;t[p+9|0]=w[d-8|0];t[p+10|0]=w[d-7|0];t[p+11|0]=w[d-6|0];t[p+12|0]=w[d-5|0];t[p+13|0]=w[d-4|0];t[p+14|0]=w[d-3|0];t[p+15|0]=w[d-2|0];t[p+16|0]=w[d-1|0];t[p+17|0]=w[d|0]}if(e){break rc}d=j-1|0;t[c|0]=w[d|0];d=d+i|0;t[c+1|0]=w[d|0];d=d+i|0;t[c+2|0]=w[d|0];d=d+i|0;t[c+3|0]=w[d|0];d=d+i|0;t[c+4|0]=w[d|0];d=d+i|0;t[c+5|0]=w[d|0];d=d+i|0;t[c+6|0]=w[d|0];d=d+i|0;t[c+7|0]=w[d|0];d=(d+i|0)+(g-r<<6)|0;t[c+8|0]=w[d|0];d=d+i|0;t[c+9|0]=w[d|0];d=d+i|0;t[c+10|0]=w[d|0];d=d+i|0;t[c+11|0]=w[d|0];d=d+i|0;t[c+12|0]=w[d|0];d=d+i|0;t[c+13|0]=w[d|0];d=d+i|0;t[c+14|0]=w[d|0];t[c+15|0]=w[d+i|0]}c=v[q>>2];sc:{tc:{if(((c>>>0<6?2:(c|0)!=6)|0)==1){S=I+328|0;e=!ja;c=v[q+200>>2];if(c){d=v[q+4>>2]==v[c+4>>2]}else{d=0}if(!(e|!d)){c=v[v[q+200>>2]>>2];d=((c>>>0<6?2:(c|0)!=6)|0)==2?0:d}g=!ja;c=v[q+204>>2];if(c){e=v[q+4>>2]==v[c+4>>2]}else{e=0}if(!(g|!e)){c=v[v[q+204>>2]>>2];e=((c>>>0<6?2:(c|0)!=6)|0)==2?0:e}f=!ja;c=v[q+212>>2];if(c){g=v[q+4>>2]==v[c+4>>2]}else{g=0}if(!(f|!g)){c=v[v[q+212>>2]>>2];g=((c>>>0<6?2:(c|0)!=6)|0)!=2}uc:{vc:{wc:{switch(v[q>>2]+1&3){case 0:c=1;if(!e){break uc}c=h;while(1){t[c|0]=w[C+33|0];t[c+1|0]=w[C+34|0];t[c+2|0]=w[C+35|0];t[c+3|0]=w[C+36|0];t[c+4|0]=w[C+37|0];t[c+5|0]=w[C+38|0];t[c+6|0]=w[C+39|0];t[c+7|0]=w[C+40|0];t[c+8|0]=w[C+41|0];t[c+9|0]=w[C+42|0];t[c+10|0]=w[C+43|0];t[c+11|0]=w[C+44|0];t[c+12|0]=w[C+45|0];t[c+13|0]=w[C+46|0];t[c+14|0]=w[C+47|0];t[c+15|0]=w[C+48|0];c=c+16|0;A=A+1|0;if((A|0)!=16){continue}break};break vc;case 1:c=1;if(!d){break uc}c=h;while(1){d=A+C|0;t[c|0]=w[d|0];t[c+1|0]=w[d|0];t[c+2|0]=w[d|0];t[c+3|0]=w[d|0];t[c+4|0]=w[d|0];t[c+5|0]=w[d|0];t[c+6|0]=w[d|0];t[c+7|0]=w[d|0];t[c+8|0]=w[d|0];t[c+9|0]=w[d|0];t[c+10|0]=w[d|0];t[c+11|0]=w[d|0];t[c+12|0]=w[d|0];t[c+13|0]=w[d|0];t[c+14|0]=w[d|0];t[c+15|0]=w[d|0];c=c+16|0;A=A+1|0;if((A|0)!=16){continue}break};break vc;case 2:c=(w[C+15|0]+(w[C+48|0]+(w[C+14|0]+(w[C+47|0]+(w[C+13|0]+(w[C+46|0]+(w[C+12|0]+(w[C+45|0]+(w[C+11|0]+(w[C+44|0]+(w[C+10|0]+(w[C+43|0]+(w[C+9|0]+(w[C+42|0]+(w[C+8|0]+(w[C+41|0]+(w[C+7|0]+(w[C+40|0]+(w[C+6|0]+(w[C+39|0]+(w[C+5|0]+(w[C+38|0]+(w[C+4|0]+(w[C+37|0]+(w[C+3|0]+(w[C+36|0]+(w[C+2|0]+(w[C+35|0]+(w[C+1|0]+(w[C+34|0]+(w[C+33|0]+w[C|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)+16>>>5|0;xc:{if(!(!d|!e)){break xc}c=(w[C+15|0]+(w[C+14|0]+(w[C+13|0]+(w[C+12|0]+(w[C+11|0]+(w[C+10|0]+(w[C+9|0]+(w[C+8|0]+(w[C+7|0]+(w[C+6|0]+(w[C+5|0]+(w[C+4|0]+(w[C+3|0]+(w[C+2|0]+(w[C|0]+w[C+1|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)+8>>>4|0;if(d){break xc}c=128;if(!e){break xc}c=(w[C+48|0]+(w[C+47|0]+(w[C+46|0]+(w[C+45|0]+(w[C+44|0]+(w[C+43|0]+(w[C+42|0]+(w[C+41|0]+(w[C+40|0]+(w[C+39|0]+(w[C+38|0]+(w[C+37|0]+(w[C+36|0]+(w[C+35|0]+(w[C+33|0]+w[C+34|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)+8>>>4|0}ba(h,c,256);break vc;default:break wc}}c=1;if(!g|(!d|!e)){break uc}R=w[C+15|0];d=w[C+32|0];J=B((((((((w[C+8|0]-w[C+6|0]|0)+(R-d<<3)|0)+(w[C+9|0]-w[C+5|0]<<1)|0)+B(w[C+10|0]-w[C+4|0]|0,3)|0)+(w[C+11|0]-w[C+3|0]<<2)|0)+B(w[C+12|0]-w[C+2|0]|0,5)|0)+B(w[C+13|0]-w[C+1|0]|0,6)|0)+B(w[C+14|0]-w[C|0]|0,7)|0,5)+32>>6;c=w[C+48|0];N=B((((((((w[C+41|0]-w[C+39|0]|0)+(w[C+42|0]-w[C+38|0]<<1)|0)+B(w[C+43|0]-w[C+37|0]|0,3)|0)+(w[C+44|0]-w[C+36|0]<<2)|0)+B(w[C+45|0]-w[C+35|0]|0,5)|0)+B(w[C+46|0]-w[C+34|0]|0,6)|0)+B(w[C+47|0]-w[C+33|0]|0,7)|0)+(c-d<<3)|0,5)+32>>6;G=N<<3;s=B(N,7);p=B(N,6);n=B(N,5);o=B(N,3);k=B(N,-3);r=B(N,-5);l=B(N,-6);i=B(N,-7);j=N<<1;g=0-j|0;f=N<<2;e=0-f|0;d=(c+R<<4)+16|0;while(1){L=h+(A<<4)|0;R=d+B(J,A-7|0)|0;c=R>>5;c=(c|0)<255?c:255;t[L+7|0]=(c|0)>0?c:0;c=l+R>>5;c=(c|0)<255?c:255;t[L+1|0]=(c|0)>0?c:0;c=i+R>>5;c=(c|0)<255?c:255;t[L|0]=(c|0)>0?c:0;c=r+R>>5;c=(c|0)<255?c:255;t[L+2|0]=(c|0)>0?c:0;c=e+R>>5;c=(c|0)<255?c:255;t[L+3|0]=(c|0)>0?c:0;c=k+R>>5;c=(c|0)<255?c:255;t[L+4|0]=(c|0)>0?c:0;c=g+R>>5;c=(c|0)<255?c:255;t[L+5|0]=(c|0)>0?c:0;c=R-N>>5;c=(c|0)<255?c:255;t[L+6|0]=(c|0)>0?c:0;c=N+R>>5;c=(c|0)<255?c:255;t[L+8|0]=(c|0)>0?c:0;c=j+R>>5;c=(c|0)<255?c:255;t[L+9|0]=(c|0)>0?c:0;c=o+R>>5;c=(c|0)<255?c:255;t[L+10|0]=(c|0)>0?c:0;c=f+R>>5;c=(c|0)<255?c:255;t[L+11|0]=(c|0)>0?c:0;c=n+R>>5;c=(c|0)<255?c:255;t[L+12|0]=(c|0)>0?c:0;c=p+R>>5;c=(c|0)<255?c:255;t[L+13|0]=(c|0)>0?c:0;c=s+R>>5;c=(c|0)<255?c:255;t[L+14|0]=(c|0)>0?c:0;c=G+R>>5;c=(c|0)<255?c:255;t[L+15|0]=(c|0)>0?c:0;A=A+1|0;if((A|0)!=16){continue}break}}c=0;la(h,S,0);la(h,S- -64|0,1);la(h,S+128|0,2);la(h,S+192|0,3);la(h,S+256|0,4);la(h,S+320|0,5);la(h,S+384|0,6);la(h,S+448|0,7);la(h,S+512|0,8);la(h,S+576|0,9);la(h,S+640|0,10);la(h,S+704|0,11);la(h,S+768|0,12);la(h,S+832|0,13);la(h,S+896|0,14);la(h,S+960|0,15)}g=c;if(!c){break tc}break sc}R=C+32|0;yc:{zc:{while(1){c=(M<<3)+8080|0;i=v[c>>2];c=v[c+4>>2];e=!ja;r=oa(q,i);d=r;if(d){j=v[q+4>>2]==v[d+4>>2]}else{j=0}if(!(e|!j)){d=v[r>>2];j=((d>>>0<6?2:(d|0)!=6)|0)==2?0:j}d=(M<<3)+8272|0;g=v[d>>2];d=v[d+4>>2];l=2;e=!ja;k=oa(q,g);if(k){p=v[q+4>>2]==v[k+4>>2]}else{p=0}if(!(e|!p)){e=v[k>>2];p=((e>>>0<6?2:(e|0)!=6)|0)==2?0:p}N=(j|0)!=0&(p|0)!=0;if(N){e=2;f=v[r>>2];l=(f>>>0<6?2:(f|0)!=6)?l:w[((c&255)+r|0)+82|0];c=v[k>>2];e=(c>>>0<6?2:(c|0)!=6)?e:w[((d&255)+k|0)+82|0];l=e>>>0>l>>>0?l:e}d=M<<2;c=d+I|0;if(!v[c+12>>2]){c=v[c+76>>2];l=(c>>>0>=l>>>0)+c|0}t[(q+M|0)+82|0]=l;e=!ja;c=oa(q,v[(M<<3)+8464>>2]);if(c){s=v[q+4>>2]==v[c+4>>2]}else{s=0}if(!(e|!s)){c=v[c>>2];s=((c>>>0<6?2:(c|0)!=6)|0)==2?0:s}e=!ja;c=oa(q,v[(M<<3)+8656>>2]);if(c){k=v[q+4>>2]==v[c+4>>2]}else{k=0}if(!(e|!k)){c=v[c>>2];k=((c>>>0<6?2:(c|0)!=6)|0)==2?0:k}S=v[d+6608>>2];L=v[d+6544>>2];J=1285>>>M&1;Ac:{if(J){d=C+S|0;G=d+3|0;i=d+1|0;c=d+2|0;break Ac}c=h+(L+(S<<4)|0)|0;G=c+47|0;i=c+15|0;d=c-1|0;c=c+31|0}P=w[c|0];r=w[G|0];O=w[i|0];Q=w[d|0];Bc:{if(51>>>M&1){G=L+R|0;c=w[G+8|0];o=w[G+7|0];n=w[G+6|0];A=w[G+5|0];e=w[G+4|0];i=w[G+3|0];g=w[G+2|0];d=w[G+1|0];break Bc}f=S-1|0;G=h+(L+(f<<4)|0)|0;d=w[G|0];c=w[G+7|0];o=w[G+6|0];n=w[G+5|0];A=w[G+4|0];e=w[G+3|0];i=w[G+2|0];g=w[G+1|0];if(J){G=f+C|0;break Bc}G=G-1|0}G=w[G|0];Cc:{Dc:{switch(l|0){case 0:f=1;if(!p){break yc}s=d&255|(g&255)<<8|(i&255)<<16|e<<24;l=d;p=d;k=g;o=g;n=i;r=i;j=e;c=e;break Cc;case 1:f=1;if(!j){break yc}s=B(r,16843009);p=B(P,16843009);c=p>>>24|0;r=p>>>16|0;o=p>>>8|0;l=B(O,16843009);j=l>>>24|0;n=l>>>16|0;k=l>>>8|0;d=B(Q,16843009);e=d>>>24|0;i=d>>>16|0;g=d>>>8|0;break Cc;case 2:c=((((((P+((O+Q|0)+r|0)|0)+(e&255)|0)+(i&255)|0)+(g&255)|0)+(d&255)|0)+4&65528)>>>3|0;Ec:{if(!(!j|!p)){break Ec}c=(P+((O+Q|0)+r|0)|0)+2>>>2|0;if(j){break Ec}c=128;if(!p){break Ec}c=((((e&255)+(i&255)|0)+(g&255)|0)+(d&255)|0)+2>>>2|0}d=c;s=B(d&255,16843009);g=d;i=d;e=d;l=d;k=d;n=d;j=d;p=d;o=d;r=d;c=d;break Cc;case 3:f=1;if(!p){break yc}if(!s){c=e;o=c;A=c;n=c}j=n&255;l=c&255;c=o&255;f=((j+l|0)+(c<<1)|0)+2|0;k=e&255;r=k+2|0;o=A&255;e=(r+j|0)+(o<<1)>>>2|0;c=c+2|0;j=(c+o|0)+(j<<1)>>>2|0;s=f<<14&16711680|(e|j<<8)&65535|c+B(l,3)<<22&-16777216;c=f>>>2|0;l=i&255;i=l+2|0;f=g&255;d=(i+(d&255)|0)+(f<<1)>>>2|0;g=(f+r|0)+(l<<1)>>>2|0;l=g;i=o+(i+(k<<1)|0)>>>2|0;k=i;p=i;n=e;o=e;r=j;break Cc;case 4:f=1;if(!(N&(k|0)!=0)){break zc}n=(P+(Q+(O<<1)|0)|0)+2|0;o=d&255;k=o+2|0;d=(k+Q|0)+(G<<1)>>>2|0;c=O+2|0;l=G+(c+(Q<<1)|0)>>>2|0;s=n<<6&65280|(d<<24|l<<16)|(c+r|0)+(P<<1)>>>2;j=g&255;f=j+2|0;c=i&255;e=(f+(e&255)|0)+(c<<1)>>>2|0;p=n>>>2|0;g=G+(f+(o<<1)|0)>>>2|0;n=g;i=k+(c+(j<<1)|0)>>>2|0;j=i;o=l;k=d;r=d;c=g;break Cc;case 5:f=1;if(!(N&(k|0)!=0)){break zc}A=g&255;g=A+2|0;r=d&255;k=G+(g+(r<<1)|0)>>>2|0;c=r+2|0;d=(c+Q|0)+(G<<1)|0;j=i&255;n=c+(j+(A<<1)|0)>>>2|0;s=k<<16|d<<6&65280|n<<24|(P+(Q+(O<<1)|0)|0)+2>>>2;f=j+1|0;c=e&255;e=f+c>>>1|0;p=(G+(O+(Q<<1)|0)|0)+2>>>2|0;j=(c+g|0)+(j<<1)>>>2|0;l=d>>>2|0;d=(r+G|0)+1>>>1|0;o=d;g=(r+A|0)+1>>>1|0;r=g;i=f+A>>>1|0;c=i;break Cc;case 6:f=1;if(!(N&(k|0)!=0)){break zc}k=O+2|0;f=Q+2|0;o=P+(f+(O<<1)|0)>>>2|0;p=(O+P|0)+1>>>1|0;s=(k+r|0)+(P<<1)<<6&65280|(o<<24|p<<16)|(r+P|0)+1>>>1;j=d&255;c=g&255;e=((j+(i&255)|0)+(c<<1)|0)+2>>>2|0;i=(G+(c+(j<<1)|0)|0)+2>>>2|0;c=Q+1|0;n=c+G>>>1|0;d=n;j=(f+j|0)+(G<<1)>>>2|0;g=j;l=c+O>>>1|0;r=l;k=G+(k+(Q<<1)|0)>>>2|0;c=k;break Cc;case 7:f=1;if(!p){break yc}r=e&255;c=r+2|0;l=(s?n:e)&255;A=(s?A:e)&255;j=(c+l|0)+(A<<1)|0;g=g&255;i=i&255;k=(g+c|0)+(i<<1)>>>2|0;f=i+2|0;n=(f+A|0)+(r<<1)>>>2|0;s=j<<14&16711680|(k|n<<8)&65535|((A+((s?o:e)&255)|0)+(l<<1)<<22)+8388608&-16777216;c=(l+A|0)+1>>>1|0;j=j>>>2|0;e=d&255;d=(e+g|0)+1>>>1|0;l=(e+f|0)+(g<<1)>>>2|0;g=(g+i|0)+1>>>1|0;p=g;e=r+1|0;i=e+i>>>1|0;o=i;e=e+A>>>1|0;r=e;break Cc;default:break Dc}}f=1;if(!j){break yc}s=r<<8|r|r<<16|r<<24;f=P+2|0;g=(f+Q|0)+(O<<1)>>>2|0;c=O+1|0;d=c+Q>>>1|0;i=c+P>>>1|0;l=i;e=((r+O|0)+(P<<1)|0)+2>>>2|0;k=e;n=(r+P|0)+1>>>1|0;p=n;j=f+B(r,3)>>>2|0;o=j;c=r}f=h+(L+(S<<4)|0)|0;v[f+48>>2]=s;v[f+32>>2]=p&255|(c<<24|(r&255)<<16|(o&255)<<8);v[f+16>>2]=l&255|(j<<24|(n&255)<<16|(k&255)<<8);v[f>>2]=d&255|(e<<24|(i&255)<<16|(g&255)<<8);la(h,(I+(M<<6)|0)+328|0,M);M=M+1|0;if((M|0)!=16){continue}break}f=0}}g=f;if(g){break sc}}g=1;c=h+256|0;i=I+1352|0;d=C+53|0;A=C+16|0;J=v[I+140>>2];r=0;f=!ja;e=v[q+200>>2];if(e){e=v[q+4>>2]==v[e+4>>2]}else{e=0}G=e;if(!(f|!G)){e=v[v[q+200>>2]>>2];G=((e>>>0<6?2:(e|0)!=6)|0)==2?0:G}f=!ja;e=v[q+204>>2];if(e){j=v[q+4>>2]==v[e+4>>2]}else{j=0}if(!(f|!j)){e=v[v[q+204>>2]>>2];j=((e>>>0<6?2:(e|0)!=6)|0)==2?0:j}s=(G|0)!=0&(j|0)!=0;f=!ja;e=v[q+212>>2];if(e){e=v[q+4>>2]==v[e+4>>2]}else{e=0}if(!(f|!e)){e=v[v[q+212>>2]>>2];e=((e>>>0<6?2:(e|0)!=6)|0)!=2}p=s&(e|0)!=0;o=16;Fc:{while(1){Gc:{Hc:{switch(J|0){case 0:f=c;Ic:{if(s){e=(w[A+3|0]+(w[A+2|0]+(w[A+1|0]+(w[A|0]+(w[d+4|0]+(w[d+3|0]+(w[d+1|0]+w[d+2|0]|0)|0)|0)|0)|0)|0)|0)+4>>>3|0;l=(w[d+8|0]+(w[d+7|0]+(w[d+5|0]+w[d+6|0]|0)|0)|0)+2>>>2|0;break Ic}if(j){e=(w[d+4|0]+(w[d+3|0]+(w[d+1|0]+w[d+2|0]|0)|0)|0)+2>>>2|0;l=(w[d+8|0]+(w[d+7|0]+(w[d+5|0]+w[d+6|0]|0)|0)|0)+2>>>2|0;break Ic}if(!G){e=128;l=128;break Ic}e=(w[A+3|0]+(w[A+2|0]+(w[A|0]+w[A+1|0]|0)|0)|0)+2>>>2|0;l=e}l=B(l&255,16843009);t[c+28|0]=l;k=l>>>8|0;t[f+29|0]=k;n=l>>>16|0;t[f+30|0]=n;La=f;f=l>>>24|0;t[La+31|0]=f;e=B(e&255,16843009);t[c+24|0]=e;K=e>>>8|0;t[c+25|0]=K;L=e>>>16|0;t[c+26|0]=L;M=e>>>24|0;t[c+27|0]=M;t[c+20|0]=l;t[c+21|0]=k;t[c+22|0]=n;t[c+23|0]=f;t[c+16|0]=e;t[c+17|0]=K;t[c+18|0]=L;t[c+19|0]=M;t[c+12|0]=l;t[c+13|0]=k;t[c+14|0]=n;t[c+15|0]=f;t[c+8|0]=e;t[c+9|0]=K;t[c+10|0]=L;t[c+11|0]=M;t[c+4|0]=l;t[c+5|0]=k;t[c+6|0]=n;t[c+7|0]=f;t[c|0]=e;t[c+1|0]=K;t[c+2|0]=L;t[c+3|0]=M;Jc:{if(G){f=w[A+7|0]+(w[A+6|0]+(w[A+5|0]+w[A+4|0]|0)|0)|0;e=f+2>>>2|0;l=e;if(!j){break Jc}l=(w[d+8|0]+(w[d+7|0]+(w[d+6|0]+(f+w[d+5|0]|0)|0)|0)|0)+4>>>3|0;break Jc}if(!j){e=128;l=128;break Jc}e=(w[d+4|0]+(w[d+3|0]+(w[d+1|0]+w[d+2|0]|0)|0)|0)+2>>>2|0;l=(w[d+8|0]+(w[d+7|0]+(w[d+5|0]+w[d+6|0]|0)|0)|0)+2>>>2|0}l=B(l&255,16843009);t[c+60|0]=l;f=l>>>8|0;t[c+61|0]=f;k=l>>>16|0;t[c+62|0]=k;n=l>>>24|0;t[c+63|0]=n;e=B(e&255,16843009);t[c+56|0]=e;K=e>>>8|0;t[c+57|0]=K;L=e>>>16|0;t[c+58|0]=L;M=e>>>24|0;t[c+59|0]=M;t[c+52|0]=l;t[c+53|0]=f;t[c+54|0]=k;t[c+55|0]=n;t[c+48|0]=e;t[c+49|0]=K;t[c+50|0]=L;t[c+51|0]=M;t[c+44|0]=l;t[c+45|0]=f;t[c+46|0]=k;t[c+47|0]=n;t[c+40|0]=e;t[c+41|0]=K;t[c+42|0]=L;t[c+43|0]=M;t[c+36|0]=l;t[c+37|0]=f;t[c+38|0]=k;t[c+39|0]=n;t[c+32|0]=e;t[c+33|0]=K;t[c+34|0]=L;t[c+35|0]=M;break Gc;case 1:e=1;if(!G){break Fc}t[c|0]=w[A|0];t[c+1|0]=w[A|0];t[c+2|0]=w[A|0];t[c+3|0]=w[A|0];t[c+4|0]=w[A|0];t[c+5|0]=w[A|0];t[c+6|0]=w[A|0];t[c+7|0]=w[A|0];t[c+8|0]=w[A+1|0];t[c+9|0]=w[A+1|0];t[c+10|0]=w[A+1|0];t[c+11|0]=w[A+1|0];t[c+12|0]=w[A+1|0];t[c+13|0]=w[A+1|0];t[c+14|0]=w[A+1|0];t[c+15|0]=w[A+1|0];t[c+16|0]=w[A+2|0];t[c+17|0]=w[A+2|0];t[c+18|0]=w[A+2|0];t[c+19|0]=w[A+2|0];t[c+20|0]=w[A+2|0];t[c+21|0]=w[A+2|0];t[c+22|0]=w[A+2|0];t[c+23|0]=w[A+2|0];t[c+24|0]=w[A+3|0];t[c+25|0]=w[A+3|0];t[c+26|0]=w[A+3|0];t[c+27|0]=w[A+3|0];t[c+28|0]=w[A+3|0];t[c+29|0]=w[A+3|0];t[c+30|0]=w[A+3|0];t[c+31|0]=w[A+3|0];t[c+32|0]=w[A+4|0];t[c+33|0]=w[A+4|0];t[c+34|0]=w[A+4|0];t[c+35|0]=w[A+4|0];t[c+36|0]=w[A+4|0];t[c+37|0]=w[A+4|0];t[c+38|0]=w[A+4|0];t[c+39|0]=w[A+4|0];t[c+40|0]=w[A+5|0];t[c+41|0]=w[A+5|0];t[c+42|0]=w[A+5|0];t[c+43|0]=w[A+5|0];t[c+44|0]=w[A+5|0];t[c+45|0]=w[A+5|0];t[c+46|0]=w[A+5|0];t[c+47|0]=w[A+5|0];t[c+48|0]=w[A+6|0];t[c+49|0]=w[A+6|0];t[c+50|0]=w[A+6|0];t[c+51|0]=w[A+6|0];t[c+52|0]=w[A+6|0];t[c+53|0]=w[A+6|0];t[c+54|0]=w[A+6|0];t[c+55|0]=w[A+6|0];t[c+56|0]=w[A+7|0];t[c+57|0]=w[A+7|0];t[c+58|0]=w[A+7|0];t[c+59|0]=w[A+7|0];t[c+60|0]=w[A+7|0];t[c+61|0]=w[A+7|0];t[c+62|0]=w[A+7|0];t[c+63|0]=w[A+7|0];break Gc;case 2:e=1;if(!j){break Fc}t[c|0]=w[d+1|0];t[c+8|0]=w[d+1|0];t[c+16|0]=w[d+1|0];t[c+24|0]=w[d+1|0];t[c+32|0]=w[d+1|0];t[c+40|0]=w[d+1|0];t[c+48|0]=w[d+1|0];t[c+56|0]=w[d+1|0];t[c+1|0]=w[d+2|0];t[c+9|0]=w[d+2|0];t[c+17|0]=w[d+2|0];t[c+25|0]=w[d+2|0];t[c+33|0]=w[d+2|0];t[c+41|0]=w[d+2|0];t[c+49|0]=w[d+2|0];t[c+57|0]=w[d+2|0];t[c+2|0]=w[d+3|0];t[c+10|0]=w[d+3|0];t[c+18|0]=w[d+3|0];t[c+26|0]=w[d+3|0];t[c+34|0]=w[d+3|0];t[c+42|0]=w[d+3|0];t[c+50|0]=w[d+3|0];t[c+58|0]=w[d+3|0];t[c+3|0]=w[d+4|0];t[c+11|0]=w[d+4|0];t[c+19|0]=w[d+4|0];t[c+27|0]=w[d+4|0];t[c+35|0]=w[d+4|0];t[c+43|0]=w[d+4|0];t[c+51|0]=w[d+4|0];t[c+59|0]=w[d+4|0];t[c+4|0]=w[d+5|0];t[c+12|0]=w[d+5|0];t[c+20|0]=w[d+5|0];t[c+28|0]=w[d+5|0];t[c+36|0]=w[d+5|0];t[c+44|0]=w[d+5|0];t[c+52|0]=w[d+5|0];t[c+60|0]=w[d+5|0];t[c+5|0]=w[d+6|0];t[c+13|0]=w[d+6|0];t[c+21|0]=w[d+6|0];t[c+29|0]=w[d+6|0];t[c+37|0]=w[d+6|0];t[c+45|0]=w[d+6|0];t[c+53|0]=w[d+6|0];t[c+61|0]=w[d+6|0];t[c+6|0]=w[d+7|0];t[c+14|0]=w[d+7|0];t[c+22|0]=w[d+7|0];t[c+30|0]=w[d+7|0];t[c+38|0]=w[d+7|0];t[c+46|0]=w[d+7|0];t[c+54|0]=w[d+7|0];t[c+62|0]=w[d+7|0];t[c+7|0]=w[d+8|0];t[c+15|0]=w[d+8|0];t[c+23|0]=w[d+8|0];t[c+31|0]=w[d+8|0];t[c+39|0]=w[d+8|0];t[c+47|0]=w[d+8|0];t[c+55|0]=w[d+8|0];t[c+63|0]=w[d+8|0];break Gc;default:break Hc}}e=1;if(!p){break Fc}l=w[d+8|0];f=w[d|0];N=B((((w[d+5|0]-w[d+3|0]|0)+(w[d+6|0]-w[d+2|0]<<1)|0)+B(w[d+7|0]-w[d+1|0]|0,3)|0)+(l-f<<2)|0,17)+16>>5;n=B(N,-3);e=w[A+7|0];R=B((((w[A+4|0]-w[A+2|0]|0)+(e-f<<2)|0)+(w[A+5|0]-w[A+1|0]<<1)|0)+B(w[A+6|0]-w[A|0]|0,3)|0,17)+16>>5;e=(B(R,-3)+(e+l<<4)|0)+16|0;l=8;k=c;while(1){f=e+n|0;t[k|0]=w[(f>>5)+7184|0];f=f+N|0;t[k+1|0]=w[(f>>5)+7184|0];f=f+N|0;t[k+2|0]=w[(f>>5)+7184|0];f=f+N|0;t[k+3|0]=w[(f>>5)+7184|0];f=f+N|0;t[k+4|0]=w[(f>>5)+7184|0];f=f+N|0;t[k+5|0]=w[(f>>5)+7184|0];f=f+N|0;t[k+6|0]=w[(f>>5)+7184|0];t[k+7|0]=w[(f+N>>5)+7184|0];e=e+R|0;k=k+8|0;l=l-1|0;if(l){continue}break}}e=0;while(1){L=(e<<6)+i|0;n=v[L>>2];if((n|0)!=16777215){k=v[L+4>>2];l=o>>>0<16;f=(l?o:o&3)<<2;R=l?16:8;N=(B(v[f+6608>>2],R)+c|0)+v[f+6544>>2]|0;t[N|0]=w[(n+w[N|0]|0)+7184|0];l=v[L+8>>2];t[N+1|0]=w[(k+w[N+1|0]|0)+7184|0];f=v[L+12>>2];t[N+2|0]=w[(l+w[N+2|0]|0)+7184|0];t[N+3|0]=w[(f+w[N+3|0]|0)+7184|0];f=v[L+20>>2];k=N+R|0;t[k|0]=w[(v[L+16>>2]+w[k|0]|0)+7184|0];l=v[L+24>>2];t[k+1|0]=w[(f+w[k+1|0]|0)+7184|0];f=v[L+28>>2];t[k+2|0]=w[(l+w[k+2|0]|0)+7184|0];t[k+3|0]=w[(f+w[k+3|0]|0)+7184|0];f=v[L+36>>2];k=k+R|0;t[k|0]=w[(v[L+32>>2]+w[k|0]|0)+7184|0];l=v[L+40>>2];t[k+1|0]=w[(f+w[k+1|0]|0)+7184|0];f=v[L+44>>2];t[k+2|0]=w[(l+w[k+2|0]|0)+7184|0];t[k+3|0]=w[(f+w[k+3|0]|0)+7184|0];f=v[L+52>>2];k=k+R|0;t[k|0]=w[(v[L+48>>2]+w[k|0]|0)+7184|0];l=v[L+56>>2];t[k+1|0]=w[(f+w[k+1|0]|0)+7184|0];f=v[L+60>>2];t[k+2|0]=w[(l+w[k+2|0]|0)+7184|0];t[k+3|0]=w[(f+w[k+3|0]|0)+7184|0]}o=o+1|0;e=e+1|0;if((e|0)!=4){continue}break}i=i+256|0;A=A+8|0;d=d+9|0;c=c- -64|0;r=r+1|0;if((r|0)!=2){continue}break}e=0}if(e){break sc}g=0;if(y[q+196>>2]>1){break sc}va(V,h)}T=C+80|0;e=g;if(!g){break Ob}break Nb}v[q+28>>2]=0;v[q+32>>2]=0;u[q+74>>1]=0;u[q+76>>1]=0;u[q+78>>1]=0;u[q+80>>1]=0;v[q+68>>2]=0;v[q+72>>2]=0;v[q+60>>2]=0;v[q+64>>2]=0;v[q+52>>2]=0;v[q+56>>2]=0;v[q+44>>2]=0;v[q+48>>2]=0;v[q+36>>2]=0;v[q+40>>2]=0;v[q+20>>2]=v[U+88>>2]}k=h;d=0;e=0;j=0;l=0;g=0;W=0;p=0;O=T-32|0;T=O;h=v[V+4>>2];v[O+12>>2]=h;v[O+16>>2]=v[V+8>>2];c=(m>>>0)/(h>>>0)|0;Q=c<<4;M=m-B(c,h)<<4;Kc:{Lc:{Mc:{Nc:{Oc:{Pc:{Qc:{Rc:{Sc:{Tc:{Uc:{Vc:{Wc:{Xc:{c=v[q>>2];switch(c|0){case 3:break Vc;case 2:break Wc;case 0:case 1:break Xc;default:break Uc}}h=v[q+4>>2];A=1;o=-1;d=v[q+200>>2];Yc:{if(!d){f=0;l=-1;e=0;break Yc}f=0;l=-1;e=0;if((h|0)!=v[d+4>>2]){break Yc}p=1;A=0;e=0;if(y[d>>2]>5){break Yc}l=v[d+104>>2];f=v[d+152>>2];e=f>>>16|0}d=v[q+204>>2];if(!d|(h|0)!=v[d+4>>2]){break Mc}j=1;if(y[d>>2]>5){break Mc}W=v[d+172>>2];g=W>>>16|0;o=v[d+108>>2];break Mc}n=v[I+144>>2];i=-1;c=v[q+204>>2];f=v[q+4>>2];Zc:{if(!c|(f|0)!=v[c+4>>2]){break Zc}j=1;if(y[c>>2]>5){break Zc}d=v[c+172>>2];e=d>>>16|0;i=v[c+108>>2]}r=x[I+162>>1];l=x[I+160>>1];if((i|0)==(n|0)){g=e;c=d;break Nc}A=1;p=-1;h=v[q+200>>2];_c:{if(!h){c=0;break _c}if((f|0)!=v[h+4>>2]){c=0;break _c}A=0;if(y[h>>2]>5){c=0;break _c}c=v[h+152>>2];g=c>>>16|0;p=v[h+104>>2]}$c:{ad:{h=v[q+208>>2];if(!(!h|(f|0)!=v[h+4>>2])){if(y[h>>2]<=5){break ad}break Pc}h=v[q+212>>2];if(!(!h|(f|0)!=v[h+4>>2])){if(y[h>>2]>5){break Pc}j=h+192|0;h=h+112|0;break $c}if(j|A){break Pc}break Nc}j=h+172|0;h=h+108|0}i=v[h>>2];h=v[j>>2];break Oc}n=v[I+144>>2];d=1;f=-1;i=0;e=v[q+200>>2];c=v[q+4>>2];bd:{if(!e|(c|0)!=v[e+4>>2]){break bd}d=0;if(y[e>>2]>5){break bd}l=v[e+152>>2];i=l>>>16|0;f=v[e+104>>2]}g=x[I+160>>1];if((f|0)==(n|0)){break Rc}cd:{dd:{f=v[q+204>>2];if(!(!f|(c|0)!=v[f+4>>2])){if(y[f>>2]<=5){break dd}break Tc}f=v[q+212>>2];if(!(!f|(c|0)!=v[f+4>>2])){if(y[f>>2]>5){break Tc}j=f+192|0;c=0;o=-1;e=0;break cd}if(!d){break Rc}break Tc}j=f+188|0;o=v[f+108>>2];c=v[f+172>>2];e=c>>>16|0}h=v[j>>2];f=v[f+112>>2];break Sc}while(1){N=l<<2;R=N+I|0;c=v[R+176>>2];if(c>>>0<=2){r=v[(c<<2)+8060>>2]}else{r=4}c=q+N|0;v[c+100>>2]=v[R+192>>2];d=c;c=ra(pa,v[R+192>>2]);v[d+116>>2]=c;if(!c){i=1;break Kc}if(r){g=N|3;s=l<<4;L=s+q|0;j=0;while(1){c=(s+I|0)+(j<<2)|0;p=x[c+210>>1];n=x[c+208>>1];J=v[R+192>>2];W=1;A=-1;ed:{fd:{o=v[R+176>>2];S=((l<<7)+(o<<5)|0)+(j<<3)|0;d=oa(q,v[S+4496>>2]);if(!d){break fd}e=0;f=0;h=-1;if(v[d+4>>2]!=v[q+4>>2]){break ed}W=0;if(y[d>>2]>5){break fd}c=w[S+4500|0];f=v[(d+(c<<2)|0)+132>>2];e=f>>>16|0;h=v[(d+(c&252)|0)+100>>2];break ed}e=0;f=0;h=-1}gd:{hd:{i=oa(q,v[S+5008>>2]);id:{if(!i){d=0;break id}d=0;if(v[i+4>>2]==v[q+4>>2]){break hd}}G=0;C=0;break gd}C=1;if(y[i>>2]>5){G=0;break gd}c=w[S+5012|0];G=v[(i+(c<<2)|0)+132>>2];d=G>>>16|0;A=v[(i+(c&252)|0)+100>>2]}jd:{kd:{ld:{md:{nd:{i=oa(q,v[S+5520>>2]);if(!(!i|v[i+4>>2]!=v[q+4>>2])){if(y[i>>2]<=5){break nd}break ld}i=oa(q,v[S+6032>>2]);if(!(!i|v[i+4>>2]!=v[q+4>>2])){if(y[i>>2]>5){break ld}c=w[S+6036|0];C=((c<<2)+i|0)+132|0;break md}if(C|W){break ld}break jd}c=w[S+5524|0];C=((c<<2)+i|0)+132|0}W=v[((c&252)+i|0)+100>>2];c=v[C>>2];break kd}W=-1;c=0}i=(A|0)==(J|0);h=(h|0)==(J|0);if(((i+h|0)+((J|0)==(W|0))|0)!=1){h=d<<16>>16;i=e<<16>>16;d=(h|0)>(i|0);e=d?h:i;d=d?i:(h|0)<(i|0)?h:i;h=c>>16;e=(e|0)<(h|0)?e:(d|0)>(h|0)?d:h;i=G<<16>>16;f=f<<16>>16;d=(i|0)>(f|0);h=d?i:f;d=d?f:(f|0)>(i|0)?i:f;c=c<<16>>16;f=(c|0)>(h|0)?h:(c|0)<(d|0)?d:c;break jd}f=h?f:G;e=h?e:d;if(h|i){break jd}e=c>>>16|0;f=c}i=1;f=f+n|0;if((f<<16>>16)+-8192>>>0<4294950912){break Kc}h=e+p|0;if((h<<16>>16)-2048>>>0<4294963200){break Kc}od:{pd:{qd:{switch(o|0){case 0:u[L+132>>1]=f;u[L+134>>1]=h;u[L+136>>1]=f;u[L+138>>1]=h;u[L+140>>1]=f;u[L+142>>1]=h;c=g;break pd;case 1:e=N+(j<<1)|0;d=q+(e<<2)|0;u[d+134>>1]=h;u[d+132>>1]=f;c=e|1;break pd;case 2:e=j+N|0;d=q+(e<<2)|0;u[d+134>>1]=h;u[d+132>>1]=f;c=e+2|0;break pd;case 3:break qd;default:break od}}c=j+N|0}c=(c<<2)+q|0;u[c+134>>1]=h;u[c+132>>1]=f}j=j+1|0;if((r|0)!=(j|0)){continue}break}}l=l+1|0;if((l|0)!=4){continue}break}j=0;while(1){c=j<<2;v[O+8>>2]=v[(c+q|0)+116>>2];g=(j>>>0>1)<<3;f=j<<3&8;rd:{sd:{switch(v[(c+I|0)+176>>2]){case 0:ma(k,(q+(j<<4)|0)+132|0,O+8|0,M,Q,f,g,8,8);break rd;case 1:d=q+(j<<4)|0;c=O+8|0;ma(k,d+132|0,c,M,Q,f,g,8,4);ma(k,d+140|0,c,M,Q,f,g|4,8,4);break rd;case 2:d=q+(j<<4)|0;c=O+8|0;ma(k,d+132|0,c,M,Q,f,g,4,8);ma(k,d+136|0,c,M,Q,f|4,g,4,8);break rd;default:break sd}}h=q+(j<<4)|0;e=O+8|0;ma(k,h+132|0,e,M,Q,f,g,4,4);d=f|4;ma(k,h+136|0,e,M,Q,d,g,4,4);c=g|4;ma(k,h+140|0,e,M,Q,f,c,4,4);ma(k,h+144|0,e,M,Q,d,c,4,4)}j=j+1|0;if((j|0)!=4){continue}break}break Lc}o=-1;c=0;e=0;h=0;f=-1}d=(n|0)==(o|0);if((((f|0)==(n|0))+d|0)!=1){f=e<<16>>16;j=i<<16>>16;d=(f|0)>(j|0);e=d?f:j;d=d?j:(f|0)<(j|0)?f:j;f=h>>16;e=(e|0)<(f|0)?e:(d|0)>(f|0)?d:f;f=c<<16>>16;j=l<<16>>16;c=(f|0)>(j|0);d=c?f:j;c=c?j:(f|0)<(j|0)?f:j;h=h<<16>>16;c=(d|0)<(h|0)?d:(c|0)>(h|0)?c:h;break Qc}if(d){break Qc}e=h>>>16|0;c=h;break Qc}e=i;c=l}i=1;d=c+g|0;if((d<<16>>16)+-8192>>>0<4294950912){break Kc}c=x[I+162>>1]+e|0;if((c<<16>>16)-2048>>>0<4294963200){break Kc}e=ra(pa,n);if(!e){break Kc}u[q+178>>1]=c;u[q+176>>1]=d;v[q+116>>2]=e;v[q+100>>2]=n;v[q+124>>2]=e;v[q+108>>2]=n;c=v[q+176>>2];v[q+172>>2]=c;v[q+168>>2]=c;v[q+164>>2]=c;v[q+144>>2]=c;v[q+140>>2]=c;v[q+136>>2]=c;v[q+132>>2]=c;r=v[I+148>>2];f=v[q+208>>2];e=v[q+4>>2];td:{ud:{vd:{if(!(!f|(e|0)!=v[f+4>>2])){if(y[f>>2]>5){g=0;d=-1;break ud}d=f+172|0;break vd}d=-1;g=0;f=v[q+204>>2];j=1;if(!f|(e|0)!=v[f+4>>2]){break td}j=0;if(y[f>>2]>5){break td}d=f+176|0}g=v[d>>2];d=v[f+108>>2]}j=0}f=x[I+164>>1];wd:{if((d|0)!=(r|0)){d=c>>>16|0;h=v[q+204>>2];xd:{yd:{if(!(!h|(e|0)!=v[h+4>>2])){if(y[h>>2]>5){break yd}l=v[h+112>>2];p=v[h+188>>2];e=p>>>16|0;break xd}if(j){break wd}}l=-1;e=0}h=(n|0)==(r|0);if((h+((l|0)==(r|0))|0)!=1){j=e<<16>>16;h=c>>16;e=(h|0)<(j|0)?j:h;d=(j|0)>d<<16>>16?h:(h|0)>(j|0)?j:h;h=g>>16;d=(e|0)<(h|0)?e:(d|0)>(h|0)?d:h;h=p<<16>>16;j=c<<16>>16;c=(h|0)>(j|0);e=c?h:j;c=c?j:(h|0)<(j|0)?h:j;h=g<<16>>16;c=(e|0)<(h|0)?e:(c|0)>(h|0)?c:h;break wd}if(h){break wd}if((l|0)==(r|0)){c=p&65535|e<<16;d=e;break wd}}d=g>>>16|0;c=g}e=c+f|0;if((e<<16>>16)+-8192>>>0<4294950912){break Kc}c=x[I+166>>1]+d|0;if((c<<16>>16)-2048>>>0<4294963200){break Kc}d=ra(pa,r);if(!d){break Kc}u[q+194>>1]=c;u[q+192>>1]=e;v[q+128>>2]=d;v[q+120>>2]=d;v[q+112>>2]=r;v[q+104>>2]=r;c=v[q+192>>2];v[q+188>>2]=c;v[q+184>>2]=c;v[q+180>>2]=c;v[q+160>>2]=c;v[q+156>>2]=c;v[q+152>>2]=c;d=q+148|0;v[d>>2]=c;v[O+8>>2]=v[q+116>>2];c=O+8|0;ma(k,q+132|0,c,M,Q,0,0,8,16);v[O+8>>2]=v[q+120>>2];ma(k,d,c,M,Q,8,0,8,16);break Lc}i=-1;h=0}f=(n|0)==(p|0);if((f+((i|0)==(n|0))|0)!=1){j=e<<16>>16;g=g<<16>>16;e=(j|0)>(g|0);f=e?j:g;e=e?g:(g|0)>(j|0)?j:g;g=h>>16;g=(f|0)<(g|0)?f:(e|0)>(g|0)?e:g;e=d<<16>>16;f=c<<16>>16;c=(e|0)>(f|0);d=c?e:f;c=c?f:(e|0)<(f|0)?e:f;e=h<<16>>16;c=(d|0)<(e|0)?d:(c|0)>(e|0)?c:e;break Nc}if(f){break Nc}g=h>>>16|0;c=h}i=1;d=c+l|0;if((d<<16>>16)+-8192>>>0<4294950912){break Kc}c=g+r|0;if((c<<16>>16)-2048>>>0<4294963200){break Kc}e=ra(pa,n);if(!e){break Kc}u[q+162>>1]=c;u[q+160>>1]=d;v[q+116>>2]=e;v[q+100>>2]=n;v[q+120>>2]=e;v[q+104>>2]=n;c=v[q+160>>2];v[q+156>>2]=c;v[q+152>>2]=c;v[q+148>>2]=c;v[q+144>>2]=c;v[q+140>>2]=c;v[q+136>>2]=c;v[q+132>>2]=c;r=v[I+148>>2];h=x[I+164>>1];zd:{Ad:{Bd:{d=v[q+200>>2];Cd:{if(d){if(v[d+4>>2]==v[q+4>>2]){if(y[d>>2]<=5){j=v[d+184>>2];e=j>>>16|0;if((r|0)!=v[d+112>>2]){break Bd}d=j;break Cd}o=-1;d=0;e=0;j=0;g=0;if((r|0)==-1){break Cd}break Ad}o=-1;d=0;e=0;j=0;g=0;if((r|0)==-1){break Cd}break Ad}o=-1;d=0;e=0;j=0;g=0;if((r|0)!=-1){break Ad}}c=d&65535|e<<16;break zd}o=v[d+104>>2];g=v[d+160>>2];d=e}if((((o|0)==(r|0))+((n|0)==(r|0))|0)!=1){f=c>>16;l=d<<16>>16;d=(f|0)>(l|0);e=d?f:l;d=d?l:(f|0)<(l|0)?f:l;f=g>>16;e=(e|0)<(f|0)?e:(d|0)>(f|0)?d:f;f=c<<16>>16;j=j<<16>>16;c=(f|0)>(j|0);d=c?f:j;c=c?j:(f|0)<(j|0)?f:j;f=g<<16>>16;c=(d|0)<(f|0)?d:(c|0)>(f|0)?c:f;break zd}if((n|0)==(r|0)){e=c>>>16|0;break zd}e=g>>>16|0;c=g}d=c+h|0;if((d<<16>>16)+-8192>>>0<4294950912){break Kc}c=x[I+166>>1]+e|0;if((c<<16>>16)-2048>>>0<4294963200){break Kc}e=ra(pa,r);if(!e){break Kc}u[q+194>>1]=c;u[q+192>>1]=d;v[q+128>>2]=e;v[q+124>>2]=e;v[q+112>>2]=r;v[q+108>>2]=r;c=v[q+192>>2];v[q+188>>2]=c;v[q+184>>2]=c;v[q+180>>2]=c;v[q+176>>2]=c;v[q+172>>2]=c;v[q+168>>2]=c;d=q+164|0;v[d>>2]=c;v[O+8>>2]=v[q+116>>2];c=O+8|0;ma(k,q+132|0,c,M,Q,0,0,16,8);v[O+8>>2]=v[q+124>>2];ma(k,d,c,M,Q,0,8,16,8);break Lc}n=v[I+144>>2];Dd:{if(!c){d=0;if((j&p)!=1){p=0;break Dd}if(!(f&65535|e<<16|l)){p=0;break Dd}p=0;if(!(W&65535|g<<16|o)){break Dd}}r=x[I+160>>1];Ed:{Fd:{Gd:{Hd:{Id:{c=v[q+208>>2];if(!(!c|(h|0)!=v[c+4>>2])){if(y[c>>2]<=5){break Id}break Gd}c=v[q+212>>2];if(!(!c|(h|0)!=v[c+4>>2])){if(y[c>>2]>5){break Gd}i=c+112|0;c=c+192|0;break Hd}if(j|A){break Gd}break Ed}i=c+108|0;c=c+172|0}j=v[i>>2];c=v[c>>2];break Fd}j=-1;c=0}d=(n|0)==(o|0);h=(l|0)==(n|0);if(((d+h|0)+((j|0)==(n|0))|0)!=1){h=g<<16>>16;g=e<<16>>16;d=(h|0)>(g|0);e=d?h:g;d=d?g:(g|0)>(h|0)?h:g;h=c>>16;e=(e|0)<(h|0)?e:(d|0)>(h|0)?d:h;g=W<<16>>16;f=f<<16>>16;d=(g|0)>(f|0);h=d?g:f;d=d?f:(f|0)>(g|0)?g:f;c=c<<16>>16;f=(c|0)>(h|0)?h:(c|0)<(d|0)?d:c;break Ed}f=h?f:W;e=h?e:g;if(d|h){break Ed}e=c>>>16|0;f=c}i=1;d=f+r|0;if((d<<16>>16)+-8192>>>0<4294950912){break Kc}p=x[I+162>>1]+e|0;if((p<<16>>16)-2048>>>0<4294963200){break Kc}}c=ra(pa,n);if(!c){i=1;break Kc}u[q+194>>1]=p;u[q+192>>1]=d;v[q+116>>2]=c;v[q+100>>2]=n;v[q+128>>2]=c;v[q+124>>2]=c;v[q+120>>2]=c;v[q+112>>2]=n;v[q+108>>2]=n;v[q+104>>2]=n;d=v[q+192>>2];v[q+188>>2]=d;v[q+184>>2]=d;v[q+180>>2]=d;v[q+176>>2]=d;v[q+172>>2]=d;v[q+168>>2]=d;v[q+164>>2]=d;v[q+160>>2]=d;v[q+156>>2]=d;v[q+152>>2]=d;v[q+148>>2]=d;v[q+144>>2]=d;v[q+140>>2]=d;v[q+136>>2]=d;v[q+132>>2]=d;v[O+8>>2]=c;ma(k,q+132|0,O+8|0,M,Q,0,0,16,16)}i=0;if(y[q+196>>2]>1){break Kc}if(v[q>>2]){r=I+328|0;c=0;e=v[V>>2];f=v[V+4>>2];l=B(f,v[V+8>>2]);h=(m>>>0)%(f>>>0)|0;d=m-h|0;j=((e+(l<<8)|0)+(d<<6)|0)+(h<<3)|0;g=(e+(d<<8)|0)+(h<<4)|0;p=f<<4;n=p>>>2<<2;while(1){d=c<<2;e=v[d+6608>>2];d=v[d+6544>>2];o=(g+B(e,p)|0)+d|0;A=d+(k+(e<<4)|0)|0;s=r+(c<<6)|0;h=v[s>>2];Jd:{if((h|0)!=16777215){e=v[s+4>>2];d=w[A+1|0];t[o|0]=w[(h+w[A|0]|0)+7184|0];f=v[s+8>>2];h=w[A+2|0];t[o+1|0]=w[(d+e|0)+7184|0];e=v[s+12>>2];d=w[A+3|0];t[o+2|0]=w[(f+h|0)+7184|0];t[o+3|0]=w[(d+e|0)+7184|0];e=v[s+20>>2];d=w[A+17|0];o=p+o|0;t[o|0]=w[(v[s+16>>2]+w[A+16|0]|0)+7184|0];f=v[s+24>>2];h=w[A+18|0];t[o+1|0]=w[(d+e|0)+7184|0];e=v[s+28>>2];d=w[A+19|0];t[o+2|0]=w[(f+h|0)+7184|0];t[o+3|0]=w[(d+e|0)+7184|0];e=v[s+36>>2];d=w[A+33|0];o=p+o|0;t[o|0]=w[(v[s+32>>2]+w[A+32|0]|0)+7184|0];f=v[s+40>>2];h=w[A+34|0];t[o+1|0]=w[(d+e|0)+7184|0];e=v[s+44>>2];d=w[A+35|0];t[o+2|0]=w[(f+h|0)+7184|0];t[o+3|0]=w[(d+e|0)+7184|0];e=v[s+52>>2];d=w[A+49|0];o=p+o|0;t[o|0]=w[(v[s+48>>2]+w[A+48|0]|0)+7184|0];f=v[s+56>>2];h=w[A+50|0];t[o+1|0]=w[(d+e|0)+7184|0];e=v[s+60>>2];d=w[A+51|0];t[o+2|0]=w[(f+h|0)+7184|0];t[o+3|0]=w[(d+e|0)+7184|0];break Jd}e=v[A+16>>2];v[o>>2]=v[A>>2];d=n+o|0;v[d>>2]=e;e=v[A+48>>2];d=d+n|0;v[d>>2]=v[A+32>>2];v[d+n>>2]=e}c=c+1|0;if((c|0)!=16){continue}break}n=p>>>1|0;f=l<<6;o=p>>>3<<2;g=16;while(1){e=g>>>0>19;c=g<<2&12;d=v[c+6608>>2];c=v[c+6544>>2];l=j+(e?f:0)+(B(d,n)+c)|0;s=k+(e?320:256)+(c+(d<<3))|0;p=r+(g<<6)|0;e=v[p>>2];Kd:{if((e|0)!=16777215){d=v[p+4>>2];c=w[s+1|0];t[l|0]=w[(e+w[s|0]|0)+7184|0];h=v[p+8>>2];e=w[s+2|0];t[l+1|0]=w[(c+d|0)+7184|0];d=v[p+12>>2];c=w[s+3|0];t[l+2|0]=w[(e+h|0)+7184|0];t[l+3|0]=w[(c+d|0)+7184|0];d=v[p+20>>2];c=w[s+9|0];l=l+n|0;t[l|0]=w[(v[p+16>>2]+w[s+8|0]|0)+7184|0];h=v[p+24>>2];e=w[s+10|0];t[l+1|0]=w[(c+d|0)+7184|0];d=v[p+28>>2];c=w[s+11|0];t[l+2|0]=w[(e+h|0)+7184|0];t[l+3|0]=w[(c+d|0)+7184|0];d=v[p+36>>2];c=w[s+17|0];l=l+n|0;t[l|0]=w[(v[p+32>>2]+w[s+16|0]|0)+7184|0];h=v[p+40>>2];e=w[s+18|0];t[l+1|0]=w[(c+d|0)+7184|0];d=v[p+44>>2];c=w[s+19|0];t[l+2|0]=w[(e+h|0)+7184|0];t[l+3|0]=w[(c+d|0)+7184|0];d=v[p+52>>2];c=w[s+25|0];l=l+n|0;t[l|0]=w[(v[p+48>>2]+w[s+24|0]|0)+7184|0];h=v[p+56>>2];e=w[s+26|0];t[l+1|0]=w[(c+d|0)+7184|0];d=v[p+60>>2];c=w[s+27|0];t[l+2|0]=w[(e+h|0)+7184|0];t[l+3|0]=w[(c+d|0)+7184|0];break Kd}d=v[s+8>>2];v[l>>2]=v[s>>2];c=l+o|0;v[c>>2]=d;d=v[s+24>>2];c=c+o|0;v[c>>2]=v[s+16>>2];v[c+o>>2]=d}g=g+1|0;if((g|0)!=24){continue}break}break Kc}va(V,k)}T=O+32|0;e=i;if(e){break Nb}}e=0}f=e;if(f){v[U+32>>2]=4096;aa(v[2372],U+32|0);break vb}h=v[(Ca+v[a+1212>>2]|0)+196>>2];d=v[H+12>>2]<<3;c=v[H+16>>2];e=0;Ld:{if((d|0)==(c|0)){break Ld}c=d-c|0;e=1;if(c>>>0>8){break Ld}e=1<>>32-c|0)}c=(e|v[U+92>>2])!=0;Md:{switch(v[Z+4>>2]-2|0){case 0:case 5:v[a+1200>>2]=m;break;default:break Md}}e=Ga(v[a+1172>>2],v[a+1176>>2],m);if(!(e|!c)){v[U+16>>2]=3295;aa(v[2372],U+16|0);f=1;break vb}D=((h|0)==1)+D|0;if(c){continue}break}c=v[a+1196>>2]+D|0;if(c>>>0>y[a+1176>>2]){v[U>>2]=3386;aa(v[2372],U);f=1;break vb}v[a+1196>>2]=c;f=0}T=U+528|0;if(f){v[F+32>>2]=4170;aa(v[2372],F+32|0);b=v[a+1368>>2];d=0;c=a;f=v[c+1192>>2];a=v[c+1200>>2];Nd:{if(!a){break Nd}a=a-1|0;if(b>>>0>=a>>>0){b=a;break Nd}h=v[c+1212>>2];while(1){Od:{if((f|0)!=v[(h+B(a,216)|0)+4>>2]){break Od}d=d+1|0;e=v[v[c+16>>2]+52>>2];if(d>>>0<(e>>>0>10?e:10)>>>0){break Od}b=a;break Nd}a=a-1|0;if(b>>>0>>0){continue}break}}while(1){Pd:{d=v[c+1212>>2]+B(b,216)|0;if((f|0)!=v[d+4>>2]){break Pd}a=v[d+196>>2];if(!a){break Pd}v[d+196>>2]=a-1;b=Ga(v[c+1172>>2],v[c+1176>>2],b);if(b){continue}}break}b=3;break a}d=0;z=0;g=0;Qd:{Rd:{if(v[a+1404>>2]){h=v[a+1176>>2];Sd:{if(!h){break Sd}f=v[a+1212>>2];c=0;if(h-1>>>0>=3){e=h&-4;while(1){d=((((v[(f+B(c,216)|0)+196>>2]!=0)+d|0)+(v[(f+B(c|1,216)|0)+196>>2]!=0)|0)+(v[(f+B(c|2,216)|0)+196>>2]!=0)|0)+(v[(f+B(c|3,216)|0)+196>>2]!=0)|0;c=c+4|0;z=z+4|0;if((e|0)!=(z|0)){continue}break}}e=h&3;if(!e){break Sd}while(1){d=(v[(f+B(c,216)|0)+196>>2]!=0)+d|0;c=c+1|0;g=g+1|0;if((e|0)!=(g|0)){continue}break}}c=1;if((d|0)==(h|0)){break Qd}break Rd}c=1;if(v[a+1196>>2]==v[a+1176>>2]){break Qd}}c=0}if(!c){break a}v[a+1180>>2]=1}m=v[a+1212>>2];h=T-176|0;T=h;Ba=a+1336|0;b=v[Ba+8>>2];if(b){ya=v[Ba+4>>2];S=ya<<6;L=B(ya,48);za=ya<<5;Ja=B(ya,-48);b=B(b,ya);Ca=b<<6;N=b<<8;X=ya<<3;qa=0-X|0;sa=qa<<1;ua=ya<<4;Aa=0-ua|0;Ya=Aa<<2;Ka=Aa<<1;Za=h+24|0;R=h|12;while(1){b=v[m+8>>2];Td:{if((b|0)==1){break Td}Ud:{Vd:{Wd:{Xd:{g=v[m+200>>2];if(!g){c=1;break Xd}c=5;if((b|0)!=2){break Xd}r=v[m+4>>2];c=(r|0)==v[g+4>>2]?5:1;j=v[m+204>>2];if(j){break Wd}j=0;break Ud}j=v[m+204>>2];if(!j){j=0;break Ud}if((b|0)!=2){break Vd}r=v[m+4>>2]}if(v[j+4>>2]!=(r|0)){break Ud}}c=c|2}Yd:{Zd:{K=c&2;_d:{if(K){if(!(y[j>>2]<6&y[m>>2]<=5)){v[h+64>>2]=4;v[h+72>>2]=4;v[h+56>>2]=4;v[h+48>>2]=4;break Zd}l=2;r=2;$d:{if(x[m+28>>1]|x[j+48>>1]){break $d}r=1;if(v[m+116>>2]!=v[j+124>>2]){break $d}b=u[m+132>>1]-u[j+172>>1]|0;d=b>>31;if((b^d)-d>>>0>3){break $d}b=u[m+134>>1]-u[j+174>>1]|0;d=b>>31;r=(b^d)-d>>>0>3}v[h+48>>2]=r;ae:{if(x[m+30>>1]|x[j+50>>1]){break ae}l=1;if(v[m+116>>2]!=v[j+124>>2]){break ae}b=u[m+136>>1]-u[j+176>>1]|0;d=b>>31;if((b^d)-d>>>0>3){break ae}b=u[m+138>>1]-u[j+178>>1]|0;d=b>>31;l=(b^d)-d>>>0>3}v[h+56>>2]=l;Y=2;f=2;be:{if(x[m+36>>1]|x[j+56>>1]){break be}f=1;if(v[m+120>>2]!=v[j+128>>2]){break be}b=u[m+148>>1]-u[j+188>>1]|0;d=b>>31;if((b^d)-d>>>0>3){break be}b=u[m+150>>1]-u[j+190>>1]|0;d=b>>31;f=(b^d)-d>>>0>3}v[h+64>>2]=f;ce:{if(x[m+38>>1]|x[j+58>>1]){break ce}Y=1;if(v[m+120>>2]!=v[j+128>>2]){break ce}b=u[m+152>>1]-u[j+192>>1]|0;d=b>>31;if((b^d)-d>>>0>3){break ce}b=u[m+154>>1]-u[j+194>>1]|0;d=b>>31;Y=(b^d)-d>>>0>3}v[h+72>>2]=Y;if(l|r|(f|Y)){break Zd}break _d}v[h+64>>2]=0;v[h+72>>2]=0;v[h+56>>2]=0;v[h+48>>2]=0}r=0;b=1;break Yd}r=1;b=0}de:{ee:{U=c&4;fe:{if(U){c=v[m>>2];if(!(y[g>>2]<6&c>>>0<=5)){v[h+116>>2]=4;v[h+148>>2]=4;v[h+84>>2]=4;v[h+52>>2]=4;r=1;break fe}Y=2;l=2;ge:{if(x[m+28>>1]|x[g+38>>1]){break ge}l=1;if(v[m+116>>2]!=v[g+120>>2]){break ge}d=u[m+132>>1]-u[g+152>>1]|0;e=d>>31;if((d^e)-e>>>0>3){break ge}d=u[m+134>>1]-u[g+154>>1]|0;e=d>>31;l=(d^e)-e>>>0>3}v[h+52>>2]=l;he:{if(x[m+32>>1]|x[g+42>>1]){break he}Y=1;if(v[m+116>>2]!=v[g+120>>2]){break he}d=u[m+140>>1]-u[g+160>>1]|0;e=d>>31;if((d^e)-e>>>0>3){break he}d=u[m+142>>1]-u[g+162>>1]|0;e=d>>31;Y=(d^e)-e>>>0>3}v[h+84>>2]=Y;o=2;f=2;ie:{if(x[m+44>>1]|x[g+54>>1]){break ie}f=1;if(v[m+124>>2]!=v[g+128>>2]){break ie}d=u[m+164>>1]-u[g+184>>1]|0;e=d>>31;if((d^e)-e>>>0>3){break ie}d=u[m+166>>1]-u[g+186>>1]|0;e=d>>31;f=(d^e)-e>>>0>3}v[h+116>>2]=f;je:{if(x[m+48>>1]|x[g+58>>1]){break je}o=1;if(v[m+124>>2]!=v[g+128>>2]){break je}d=u[m+172>>1]-u[g+192>>1]|0;e=d>>31;if((d^e)-e>>>0>3){break je}d=u[m+174>>1]-u[g+194>>1]|0;e=d>>31;o=(d^e)-e>>>0>3}v[h+148>>2]=o;r=1;if(!b|(l|Y)|(f|o)){break ee}r=0;break ee}v[h+116>>2]=0;v[h+148>>2]=0;v[h+84>>2]=0;v[h+52>>2]=0;c=v[m>>2]}if(c>>>0<6){break ee}v[h+160>>2]=3;v[h+164>>2]=3;v[h+168>>2]=3;v[h+144>>2]=3;v[h+112>>2]=3;v[h+172>>2]=3;v[h+152>>2]=3;v[h+156>>2]=3;v[h+136>>2]=3;v[h+140>>2]=3;v[h+128>>2]=3;v[h+132>>2]=3;v[h+120>>2]=3;v[h+124>>2]=3;v[h+104>>2]=3;v[h+108>>2]=3;v[h+96>>2]=3;v[h+100>>2]=3;v[h+88>>2]=3;v[h+92>>2]=3;v[h+76>>2]=3;v[h+80>>2]=3;v[h+68>>2]=3;v[h+60>>2]=3;break de}ke:{if(((c>>>0<=3?v[(c<<2)+8044>>2]:4)|0)==1){k=x[m+32>>1];if(k|x[m+28>>1]){b=2}else{b=0}v[h+80>>2]=b;D=x[m+34>>1];if(D|x[m+30>>1]){b=2}else{b=0}v[h+88>>2]=b;z=x[m+40>>1];if(z|x[m+36>>1]){b=2}else{b=0}v[h+96>>2]=b;l=x[m+42>>1];if(l|x[m+38>>1]){b=2}else{b=0}v[h+104>>2]=b;i=x[m+44>>1];v[h+112>>2]=i?2:((k|0)!=0)<<1;p=x[m+46>>1];v[h+120>>2]=p?2:((D|0)!=0)<<1;o=x[m+52>>1];v[h+128>>2]=o?2:((z|0)!=0)<<1;j=x[m+54>>1];v[h+136>>2]=j?2:((l|0)!=0)<<1;e=x[m+48>>1];v[h+144>>2]=((e|i)!=0)<<1;g=x[m+50>>1];v[h+152>>2]=((g|p)!=0)<<1;f=x[m+56>>1];v[h+160>>2]=((f|o)!=0)<<1;d=x[m+58>>1];v[h+168>>2]=((d|j)!=0)<<1;n=2;if(x[m+30>>1]){b=2}else{n=0;b=(x[m+28>>1]!=0)<<1}v[h+60>>2]=b;c=x[m+36>>1];v[h+68>>2]=c?2:n;b=x[m+38>>1];v[h+172>>2]=((d|f)!=0)<<1;v[h+164>>2]=((f|g)!=0)<<1;v[h+156>>2]=((e|g)!=0)<<1;v[h+140>>2]=((j|o)!=0)<<1;v[h+132>>2]=((p|o)!=0)<<1;v[h+124>>2]=((i|p)!=0)<<1;v[h+108>>2]=((l|z)!=0)<<1;v[h+100>>2]=((z|D)!=0)<<1;v[h+92>>2]=((k|D)!=0)<<1;v[h+76>>2]=((b|c)!=0)<<1;g=v[h+172>>2];i=v[h+164>>2];P=v[h+156>>2];A=v[h+140>>2];W=v[h+132>>2];H=v[h+124>>2];k=v[h+108>>2];xa=v[h+100>>2];G=v[h+92>>2];z=v[h+76>>2];c=v[h+68>>2];D=v[h+60>>2];s=v[h+168>>2];d=v[h+160>>2];C=v[h+152>>2];p=v[h+144>>2];Y=v[h+136>>2];o=v[h+128>>2];b=v[h+120>>2];n=v[h+112>>2];j=v[h+104>>2];e=v[h+96>>2];l=v[h+88>>2];f=v[h+80>>2];break ke}c=h;le:{me:{ne:{oe:{pe:{qe:{switch(v[m>>2]-2|0){case 0:ja=x[m+32>>1];if(ja|x[m+28>>1]){f=2}else{f=0}v[h+80>>2]=f;V=x[m+34>>1];if(V|x[m+30>>1]){l=2}else{l=0}v[h+88>>2]=l;Z=x[m+40>>1];if(Z|x[m+36>>1]){e=2}else{e=0}v[h+96>>2]=e;pa=x[m+42>>1];if(pa|x[m+38>>1]){j=2}else{j=0}v[h+104>>2]=j;A=x[m+48>>1];if(A|x[m+44>>1]){p=2}else{p=0}v[h+144>>2]=p;O=x[m+50>>1];if(O|x[m+46>>1]){C=2}else{C=0}v[h+152>>2]=C;G=x[m+56>>1];if(G|x[m+52>>1]){d=2}else{d=0}v[h+160>>2]=d;k=x[m+58>>1];if(k|x[m+54>>1]){s=2}else{s=0}v[h+168>>2]=s;b=2;n=2;J=x[m+44>>1];re:{if(J|ja){break re}n=1;g=u[m+164>>1]-u[m+140>>1]|0;i=g>>31;if((g^i)-i>>>0>3){break re}g=u[m+166>>1]-u[m+142>>1]|0;i=g>>31;if((g^i)-i>>>0>3){break re}n=v[m+124>>2]!=v[m+116>>2]}v[h+112>>2]=n;Q=x[m+46>>1];se:{if(Q|V){break se}b=1;g=u[m+168>>1]-u[m+144>>1]|0;i=g>>31;if((g^i)-i>>>0>3){break se}g=u[m+170>>1]-u[m+146>>1]|0;i=g>>31;if((g^i)-i>>>0>3){break se}b=v[m+124>>2]!=v[m+116>>2]}v[h+120>>2]=b;Y=2;o=2;M=x[m+52>>1];te:{if(M|Z){break te}o=1;g=u[m+180>>1]-u[m+156>>1]|0;i=g>>31;if((g^i)-i>>>0>3){break te}g=u[m+182>>1]-u[m+158>>1]|0;i=g>>31;if((g^i)-i>>>0>3){break te}o=v[m+128>>2]!=v[m+120>>2]}v[h+128>>2]=o;H=x[m+54>>1];ue:{if(H|pa){break ue}Y=1;g=u[m+184>>1]-u[m+160>>1]|0;i=g>>31;if((g^i)-i>>>0>3){break ue}g=u[m+186>>1]-u[m+162>>1]|0;i=g>>31;if((g^i)-i>>>0>3){break ue}Y=v[m+128>>2]!=v[m+120>>2]}v[h+136>>2]=Y;if(x[m+30>>1]){break pe}if(x[m+28>>1]){D=2;v[h+60>>2]=2;g=x[m+36>>1];if(g){break me}z=0;i=0;break le}D=0;v[h+60>>2]=0;z=0;g=x[m+36>>1];i=0;if(!g){break le}break me;case 1:O=x[m+32>>1];if(O|x[m+28>>1]){f=2}else{f=0}v[h+80>>2]=f;V=x[m+34>>1];if(V|x[m+30>>1]){l=2}else{l=0}v[h+88>>2]=l;Z=x[m+40>>1];if(Z|x[m+36>>1]){e=2}else{e=0}v[h+96>>2]=e;J=x[m+42>>1];if(J|x[m+38>>1]){j=2}else{j=0}v[h+104>>2]=j;G=x[m+44>>1];n=((G|O)!=0)<<1;v[h+112>>2]=n;ja=x[m+46>>1];b=((ja|V)!=0)<<1;v[h+120>>2]=b;pa=x[m+52>>1];o=((pa|Z)!=0)<<1;v[h+128>>2]=o;H=x[m+54>>1];Y=((H|J)!=0)<<1;v[h+136>>2]=Y;k=x[m+48>>1];p=k?2:((G|0)!=0)<<1;v[h+144>>2]=p;Q=x[m+50>>1];C=Q?2:((ja|0)!=0)<<1;v[h+152>>2]=C;M=x[m+56>>1];d=M?2:((pa|0)!=0)<<1;v[h+160>>2]=d;g=x[m+58>>1];s=g?2:((H|0)!=0)<<1;v[h+168>>2]=s;q=x[m+30>>1];if(q|x[m+28>>1]){D=2}else{D=0}v[h+60>>2]=D;if(x[m+38>>1]){i=x[m+36>>1];break oe}i=x[m+36>>1];if(i){break oe}i=0;z=0;break ne;default:break qe}}G=u[m+134>>1];_a=u[m+142>>1];l=2;P=x[m+32>>1];g=x[m+28>>1];f=2;ve:{if(P|g){break ve}b=u[m+140>>1]-u[m+132>>1]|0;c=b>>31;f=1;if((b^c)-c>>>0>3){break ve}b=_a-G|0;c=b>>31;f=(b^c)-c>>>0>3}v[h+80>>2]=f;$a=u[m+138>>1];Ma=u[m+146>>1];z=x[m+30>>1];Qa=x[m+34>>1];we:{if(z|Qa){break we}l=1;b=u[m+144>>1]-u[m+136>>1]|0;c=b>>31;if((b^c)-c>>>0>3){break we}b=Ma-$a|0;c=b>>31;l=(b^c)-c>>>0>3}v[h+88>>2]=l;xa=u[m+150>>1];Sa=u[m+158>>1];j=2;V=x[m+36>>1];Ta=x[m+40>>1];e=2;xe:{if(V|Ta){break xe}b=u[m+156>>1]-u[m+148>>1]|0;c=b>>31;e=1;if((b^c)-c>>>0>3){break xe}b=Sa-xa|0;c=b>>31;e=(b^c)-c>>>0>3}v[h+96>>2]=e;Z=u[m+154>>1];W=u[m+162>>1];ja=x[m+42>>1];i=x[m+38>>1];ye:{if(ja|i){break ye}j=1;b=u[m+160>>1]-u[m+152>>1]|0;c=b>>31;if((b^c)-c>>>0>3){break ye}b=W-Z|0;c=b>>31;j=(b^c)-c>>>0>3}v[h+104>>2]=j;ab=u[m+166>>1];b=2;n=2;H=x[m+44>>1];ze:{if(H|P){break ze}n=1;c=u[m+164>>1]-u[m+140>>1]|0;d=c>>31;if((c^d)-d>>>0>3){break ze}c=ab-_a|0;d=c>>31;if((c^d)-d>>>0>3){break ze}n=v[m+124>>2]!=v[m+116>>2]}v[h+112>>2]=n;Ua=u[m+170>>1];Va=x[m+46>>1];Ae:{if(Va|Qa){break Ae}b=1;c=u[m+168>>1]-u[m+144>>1]|0;d=c>>31;if((c^d)-d>>>0>3){break Ae}c=Ua-Ma|0;d=c>>31;if((c^d)-d>>>0>3){break Ae}b=v[m+124>>2]!=v[m+116>>2]}v[h+120>>2]=b;Wa=u[m+182>>1];Y=2;o=2;Xa=x[m+52>>1];Be:{if(Xa|Ta){break Be}o=1;c=u[m+180>>1]-u[m+156>>1]|0;d=c>>31;if((c^d)-d>>>0>3){break Be}c=Wa-Sa|0;d=c>>31;if((c^d)-d>>>0>3){break Be}o=v[m+128>>2]!=v[m+120>>2]}v[h+128>>2]=o;bb=u[m+186>>1];A=x[m+54>>1];Ce:{if(A|ja){break Ce}Y=1;c=u[m+184>>1]-u[m+160>>1]|0;d=c>>31;if((c^d)-d>>>0>3){break Ce}c=bb-W|0;d=c>>31;if((c^d)-d>>>0>3){break Ce}Y=v[m+128>>2]!=v[m+120>>2]}v[h+136>>2]=Y;pa=u[m+174>>1];C=2;q=x[m+48>>1];p=2;De:{if(q|H){break De}c=u[m+172>>1]-u[m+164>>1]|0;d=c>>31;p=1;if((c^d)-d>>>0>3){break De}c=pa-ab|0;d=c>>31;p=(c^d)-d>>>0>3}v[h+144>>2]=p;La=u[m+178>>1];M=x[m+50>>1];Ee:{if(Va|M){break Ee}C=1;c=u[m+176>>1]-u[m+168>>1]|0;d=c>>31;if((c^d)-d>>>0>3){break Ee}c=La-Ua|0;d=c>>31;C=(c^d)-d>>>0>3}v[h+152>>2]=C;I=u[m+190>>1];s=2;O=x[m+56>>1];d=2;Fe:{if(Xa|O){break Fe}c=u[m+188>>1]-u[m+180>>1]|0;k=c>>31;d=1;if((c^k)-k>>>0>3){break Fe}c=I-Wa|0;d=c>>31;d=(c^d)-d>>>0>3}v[h+160>>2]=d;Q=u[m+194>>1];J=x[m+58>>1];Ge:{if(J|A){break Ge}s=1;c=u[m+192>>1]-u[m+184>>1]|0;k=c>>31;if((c^k)-k>>>0>3){break Ge}c=Q-bb|0;k=c>>31;s=(c^k)-k>>>0>3}v[h+168>>2]=s;c=2;D=2;He:{if(g|z){break He}g=u[m+136>>1]-u[m+132>>1]|0;k=g>>31;D=1;if((g^k)-k>>>0>3){break He}g=$a-G|0;k=g>>31;D=(g^k)-k>>>0>3}v[h+60>>2]=D;Ie:{if(z|V){break Ie}c=1;g=u[m+148>>1]-u[m+136>>1]|0;k=g>>31;if((g^k)-k>>>0>3){break Ie}g=xa-$a|0;k=g>>31;if((g^k)-k>>>0>3){break Ie}c=v[m+120>>2]!=v[m+116>>2]}v[h+68>>2]=c;G=2;z=2;Je:{if(i|V){break Je}g=u[m+152>>1]-u[m+148>>1]|0;i=g>>31;z=1;if((g^i)-i>>>0>3){break Je}g=Z-xa|0;i=g>>31;z=(g^i)-i>>>0>3}v[h+76>>2]=z;Ke:{if(P|Qa){break Ke}G=1;g=u[m+144>>1]-u[m+140>>1]|0;i=g>>31;if((g^i)-i>>>0>3){break Ke}g=Ma-_a|0;i=g>>31;G=(g^i)-i>>>0>3}v[h+92>>2]=G;k=2;xa=2;Le:{if(Qa|Ta){break Le}xa=1;g=u[m+156>>1]-u[m+144>>1]|0;i=g>>31;if((g^i)-i>>>0>3){break Le}g=Sa-Ma|0;i=g>>31;if((g^i)-i>>>0>3){break Le}xa=v[m+120>>2]!=v[m+116>>2]}v[h+100>>2]=xa;Me:{if(ja|Ta){break Me}k=1;g=u[m+160>>1]-u[m+156>>1]|0;i=g>>31;if((g^i)-i>>>0>3){break Me}g=W-Sa|0;i=g>>31;k=(g^i)-i>>>0>3}v[h+108>>2]=k;W=2;g=2;Ne:{if(H|Va){break Ne}i=u[m+168>>1]-u[m+164>>1]|0;H=i>>31;g=1;if((i^H)-H>>>0>3){break Ne}g=Ua-ab|0;i=g>>31;g=(g^i)-i>>>0>3}H=g;v[h+124>>2]=H;Oe:{if(Va|Xa){break Oe}W=1;g=u[m+180>>1]-u[m+168>>1]|0;i=g>>31;if((g^i)-i>>>0>3){break Oe}g=Wa-Ua|0;i=g>>31;if((g^i)-i>>>0>3){break Oe}W=v[m+128>>2]!=v[m+124>>2]}v[h+132>>2]=W;P=2;g=2;Pe:{if(A|Xa){break Pe}i=u[m+184>>1]-u[m+180>>1]|0;A=i>>31;g=1;if((i^A)-A>>>0>3){break Pe}g=bb-Wa|0;i=g>>31;g=(g^i)-i>>>0>3}A=g;v[h+140>>2]=A;Qe:{if(q|M){break Qe}P=1;g=u[m+176>>1]-u[m+172>>1]|0;i=g>>31;if((g^i)-i>>>0>3){break Qe}g=La-pa|0;i=g>>31;P=(g^i)-i>>>0>3}v[h+156>>2]=P;g=2;i=2;Re:{if(M|O){break Re}i=1;q=u[m+188>>1]-u[m+176>>1]|0;M=q>>31;if((q^M)-M>>>0>3){break Re}q=I-La|0;M=q>>31;if((q^M)-M>>>0>3){break Re}i=v[m+128>>2]!=v[m+124>>2]}v[h+164>>2]=i;Se:{if(J|O){break Se}g=1;q=u[m+192>>1]-u[m+188>>1]|0;J=q>>31;if((q^J)-J>>>0>3){break Se}g=Q-I|0;q=g>>31;g=(g^q)-q>>>0>3}v[h+172>>2]=g;break ke}D=2;v[h+60>>2]=2;g=x[m+36>>1];break me}z=2}v[c+76>>2]=z;g=((g|M)!=0)<<1;v[h+172>>2]=g;P=((k|Q)!=0)<<1;v[h+156>>2]=P;A=((H|pa)!=0)<<1;v[h+140>>2]=A;H=((G|ja)!=0)<<1;v[h+124>>2]=H;xa=2;k=J?2:((Z|0)!=0)<<1;v[h+108>>2]=k;G=V?2:((O|0)!=0)<<1;v[h+92>>2]=G;c=2;Te:{if(i|q){break Te}c=1;i=u[m+148>>1]-u[m+136>>1]|0;q=i>>31;if((i^q)-q>>>0>3){break Te}i=u[m+150>>1]-u[m+138>>1]|0;q=i>>31;if((i^q)-q>>>0>3){break Te}c=v[m+120>>2]!=v[m+116>>2]}v[h+68>>2]=c;Ue:{if(V|Z){break Ue}xa=1;i=u[m+156>>1]-u[m+144>>1]|0;q=i>>31;if((i^q)-q>>>0>3){break Ue}i=u[m+158>>1]-u[m+146>>1]|0;q=i>>31;if((i^q)-q>>>0>3){break Ue}xa=v[m+120>>2]!=v[m+116>>2]}v[h+100>>2]=xa;i=2;W=2;Ve:{if(ja|pa){break Ve}W=1;q=u[m+180>>1]-u[m+168>>1]|0;J=q>>31;if((q^J)-J>>>0>3){break Ve}q=u[m+182>>1]-u[m+170>>1]|0;J=q>>31;if((q^J)-J>>>0>3){break Ve}W=v[m+128>>2]!=v[m+124>>2]}v[h+132>>2]=W;We:{if(M|Q){break We}i=1;q=u[m+188>>1]-u[m+176>>1]|0;J=q>>31;if((q^J)-J>>>0>3){break We}q=u[m+190>>1]-u[m+178>>1]|0;J=q>>31;if((q^J)-J>>>0>3){break We}i=v[m+128>>2]!=v[m+124>>2]}v[h+164>>2]=i;break ke}z=g;i=2}g=c;c=i;v[g+68>>2]=c;q=x[m+38>>1];g=((k|G)!=0)<<1;v[h+172>>2]=g;i=((G|O)!=0)<<1;v[h+164>>2]=i;P=O?2:((A|0)!=0)<<1;v[h+156>>2]=P;k=pa?2:((Z|0)!=0)<<1;v[h+108>>2]=k;xa=Z?2:((V|0)!=0)<<1;v[h+100>>2]=xa;G=V?2:((ja|0)!=0)<<1;v[h+92>>2]=G;A=((H|M)!=0)<<1;v[h+140>>2]=A;W=((M|Q)!=0)<<1;v[h+132>>2]=W;H=((J|Q)!=0)<<1;v[h+124>>2]=H;z=((q|z&65535)!=0)<<1;v[h+76>>2]=z}if(f|r|(e|l)){break de}if(j|n|(b|o)){break de}if(p|Y|(d|C)){break de}if(s|D|(c|z)){break de}if(G|xa|(k|H)){break de}if(A|W|(i|P)){break de}if(!g){break Td}}g=v[m+12>>2];f=v[m+16>>2];i=v[m+20>>2];b=f+i|0;b=(b|0)<51?b:51;e=w[((b|0)>0?b:0)+3024|0];v[h+32>>2]=e;b=g+i|0;b=(b|0)<51?b:51;b=(b|0)>0?b:0;d=w[b+2960|0];v[h+28>>2]=d;j=B(b,3)+3088|0;v[h+24>>2]=j;if(K){b=v[v[m+204>>2]+20>>2];Xe:{if((b|0)!=(i|0)){c=(b+i|0)+1>>>1|0;b=c+f|0;b=(b|0)<51?b:51;v[h+8>>2]=w[((b|0)>0?b:0)+3024|0];b=c+g|0;b=(b|0)<51?b:51;b=(b|0)>0?b:0;v[h+4>>2]=w[b+2960|0];b=B(b,3)+3088|0;break Xe}v[h+8>>2]=e;v[h+4>>2]=d;b=j}v[h>>2]=b}if(U){b=v[v[m+200>>2]+20>>2];Ye:{if((b|0)!=(i|0)){c=(b+i|0)+1>>>1|0;b=c+f|0;b=(b|0)<51?b:51;v[h+20>>2]=w[((b|0)>0?b:0)+3024|0];b=c+g|0;b=(b|0)<51?b:51;b=(b|0)>0?b:0;v[h+16>>2]=w[b+2960|0];j=B(b,3)+3088|0;break Ye}v[h+20>>2]=e;v[h+16>>2]=d}v[h+12>>2]=j}D=B(ya,cb);d=(v[Ba>>2]+(D<<8)|0)+(db<<4)|0;i=0;c=3;n=h+48|0;while(1){b=v[n+4>>2];if(b){wa(d,b,R,ua)}b=v[n+12>>2];if(b){wa(d+4|0,b,Za,ua)}b=v[n+20>>2];if(b){wa(d+8|0,b,Za,ua)}b=v[n+28>>2];if(b){wa(d+12|0,b,Za,ua)}f=c;Ze:{_e:{j=v[n+8>>2];c=v[n>>2];if(!((j|0)!=(c|0)|(c|0)!=v[n+16>>2]|(c|0)!=v[n+24>>2])){if(!c){break Ze}b=h+B(i,12)|0;q=v[b+8>>2];H=v[b+4>>2];if(c>>>0<4){break _e}r=(H>>>2|0)+2|0;j=16;c=d;while(1){o=c+Aa|0;G=w[o|0];C=w[c|0];b=G-C|0;e=b>>31;e=(b^e)-e|0;$e:{if(e>>>0>=H>>>0){break $e}l=c+Ka|0;A=w[l|0];b=A-G|0;g=b>>31;if(q>>>0<=(b^g)-g>>>0){break $e}i=c+ua|0;s=w[i|0];b=s-C|0;g=b>>31;if(q>>>0<=(b^g)-g>>>0){break $e}af:{bf:{if(e>>>0>>0){e=c+za|0;z=w[e|0];b=c+Ja|0;p=w[b|0];g=p-G|0;k=g>>31;if(q>>>0<=(g^k)-k>>>0){b=((s+G|0)+(A<<1)|0)+2>>>2|0}else{g=A+(C+G|0)|0;t[o|0]=(p+(s+(g<<1)|0)|0)+4>>>3;t[l|0]=(g+p|0)+2>>>2;o=b;b=((g+B(p,3)|0)+(w[c+Ya|0]<<1)|0)+4>>>3|0}t[o|0]=b;b=z-C|0;g=b>>31;if(q>>>0<=(b^g)-g>>>0){break bf}b=C+(s+G|0)|0;t[c|0]=(z+(A+(b<<1)|0)|0)+4>>>3;t[i|0]=(b+z|0)+2>>>2;b=((b+B(z,3)|0)+(w[c+L|0]<<1)|0)+4>>>3|0;break af}t[o|0]=((s+G|0)+(A<<1)|0)+2>>>2}e=c;b=((A+C|0)+(s<<1)|0)+2>>>2|0}t[e|0]=b}c=c+1|0;j=j-1|0;if(j){continue}break}break Ze}if(c){r=4;C=h+B(i,12)|0;g=w[(c+v[C>>2]|0)-1|0];e=g+1|0;G=0-g|0;c=d;while(1){z=c+Aa|0;J=w[z|0];q=w[c|0];b=J-q|0;j=b>>31;cf:{if(y[C+4>>2]<=(b^j)-j>>>0){break cf}p=c+Ka|0;A=w[p|0];b=A-J|0;l=b>>31;j=v[C+8>>2];if(j>>>0<=(b^l)-l>>>0){break cf}o=c+ua|0;H=w[o|0];b=H-q|0;l=b>>31;if((b^l)-l>>>0>=j>>>0){break cf}b=g;k=w[c+Ja|0];l=k-J|0;s=l>>31;if((l^s)-s>>>0>>0){b=k+(((q+J|0)+1>>>1|0)-(A<<1)|0)>>1;t[p|0]=A+((b|0)<(G|0)?G:(b|0)<(g|0)?b:g);j=v[C+8>>2];b=e}k=w[c+za|0];l=k-q|0;p=l>>31;if((l^p)-p>>>0>>0){j=k+(((q+J|0)+1>>>1|0)-(H<<1)|0)>>1;t[o|0]=H+((j|0)<(G|0)?G:(g|0)>(j|0)?j:g);b=b+1|0}j=0-b|0;l=((A-H|0)+(q-J<<2)|0)+4>>3;b=(j|0)>(l|0)?j:(b|0)>(l|0)?l:b;t[z|0]=w[(b+J|0)+7184|0];t[c|0]=w[(q-b|0)+7184|0]}c=c+1|0;r=r-1|0;if(r){continue}break}j=v[n+8>>2]}if(j){r=4;c=d+4|0;C=h+B(i,12)|0;g=w[(v[C>>2]+j|0)-1|0];e=g+1|0;G=0-g|0;while(1){z=c+Aa|0;J=w[z|0];q=w[c|0];b=J-q|0;j=b>>31;df:{if(y[C+4>>2]<=(b^j)-j>>>0){break df}p=c+Ka|0;A=w[p|0];b=A-J|0;l=b>>31;j=v[C+8>>2];if(j>>>0<=(b^l)-l>>>0){break df}o=c+ua|0;H=w[o|0];b=H-q|0;l=b>>31;if((b^l)-l>>>0>=j>>>0){break df}b=g;k=w[c+Ja|0];l=k-J|0;s=l>>31;if((l^s)-s>>>0>>0){b=k+(((q+J|0)+1>>>1|0)-(A<<1)|0)>>1;t[p|0]=A+((b|0)<(G|0)?G:(b|0)<(g|0)?b:g);j=v[C+8>>2];b=e}k=w[c+za|0];l=k-q|0;p=l>>31;if((l^p)-p>>>0>>0){j=k+(((q+J|0)+1>>>1|0)-(H<<1)|0)>>1;t[o|0]=H+((j|0)<(G|0)?G:(g|0)>(j|0)?j:g);b=b+1|0}j=0-b|0;l=((A-H|0)+(q-J<<2)|0)+4>>3;b=(j|0)>(l|0)?j:(b|0)>(l|0)?l:b;t[z|0]=w[(b+J|0)+7184|0];t[c|0]=w[(q-b|0)+7184|0]}c=c+1|0;r=r-1|0;if(r){continue}break}}b=v[n+16>>2];if(b){c=d+8|0;r=4;C=h+B(i,12)|0;g=w[(b+v[C>>2]|0)-1|0];e=g+1|0;G=0-g|0;while(1){z=c+Aa|0;J=w[z|0];q=w[c|0];b=J-q|0;j=b>>31;ef:{if(y[C+4>>2]<=(b^j)-j>>>0){break ef}p=c+Ka|0;A=w[p|0];b=A-J|0;l=b>>31;j=v[C+8>>2];if(j>>>0<=(b^l)-l>>>0){break ef}o=c+ua|0;H=w[o|0];b=H-q|0;l=b>>31;if((b^l)-l>>>0>=j>>>0){break ef}b=g;k=w[c+Ja|0];l=k-J|0;s=l>>31;if((l^s)-s>>>0>>0){b=k+(((q+J|0)+1>>>1|0)-(A<<1)|0)>>1;t[p|0]=A+((b|0)<(G|0)?G:(b|0)<(g|0)?b:g);j=v[C+8>>2];b=e}k=w[c+za|0];l=k-q|0;p=l>>31;if((l^p)-p>>>0>>0){j=k+(((q+J|0)+1>>>1|0)-(H<<1)|0)>>1;t[o|0]=H+((j|0)<(G|0)?G:(g|0)>(j|0)?j:g);b=b+1|0}j=0-b|0;l=((A-H|0)+(q-J<<2)|0)+4>>3;b=(j|0)>(l|0)?j:(b|0)>(l|0)?l:b;t[z|0]=w[(b+J|0)+7184|0];t[c|0]=w[(q-b|0)+7184|0]}c=c+1|0;r=r-1|0;if(r){continue}break}}b=v[n+24>>2];if(!b){break Ze}c=d+12|0;r=4;A=h+B(i,12)|0;g=w[(b+v[A>>2]|0)-1|0];e=g+1|0;C=0-g|0;while(1){p=c+Aa|0;q=w[p|0];G=w[c|0];b=q-G|0;j=b>>31;ff:{if(y[A+4>>2]<=(b^j)-j>>>0){break ff}o=c+Ka|0;H=w[o|0];b=H-q|0;i=b>>31;j=v[A+8>>2];if(j>>>0<=(b^i)-i>>>0){break ff}k=c+ua|0;s=w[k|0];b=s-G|0;i=b>>31;if((b^i)-i>>>0>=j>>>0){break ff}b=g;l=w[c+Ja|0];i=l-q|0;z=i>>31;if((i^z)-z>>>0>>0){b=l+(((q+G|0)+1>>>1|0)-(H<<1)|0)>>1;t[o|0]=H+((b|0)<(C|0)?C:(b|0)<(g|0)?b:g);j=v[A+8>>2];b=e}l=w[c+za|0];i=l-G|0;o=i>>31;if((i^o)-o>>>0>>0){j=l+(((q+G|0)+1>>>1|0)-(s<<1)|0)>>1;t[k|0]=s+((j|0)<(C|0)?C:(g|0)>(j|0)?j:g);b=b+1|0}j=0-b|0;i=((H-s|0)+(G-q<<2)|0)+4>>3;b=(i|0)<(j|0)?j:(b|0)>(i|0)?i:b;t[p|0]=w[(b+q|0)+7184|0];t[c|0]=w[(G-b|0)+7184|0]}c=c+1|0;r=r-1|0;if(r){continue}break}break Ze}g=w[(c+v[b>>2]|0)-1|0];b=g+1|0;A=0-g|0;j=16;c=d;while(1){o=c+Aa|0;G=w[o|0];C=w[c|0];e=G-C|0;i=e>>31;gf:{if(H>>>0<=(e^i)-i>>>0){break gf}k=c+Ka|0;s=w[k|0];e=s-G|0;i=e>>31;if(q>>>0<=(e^i)-i>>>0){break gf}r=c+ua|0;z=w[r|0];e=z-C|0;i=e>>31;if(q>>>0<=(e^i)-i>>>0){break gf}e=g;l=w[c+Ja|0];i=l-G|0;p=i>>31;if(q>>>0>(i^p)-p>>>0){e=l+(((C+G|0)+1>>>1|0)-(s<<1)|0)>>1;t[k|0]=s+((e|0)<(A|0)?A:(e|0)<(g|0)?e:g);e=b}l=w[c+za|0];i=l-C|0;k=i>>31;if(q>>>0>(i^k)-k>>>0){i=l+(((C+G|0)+1>>>1|0)-(z<<1)|0)>>1;t[r|0]=z+((i|0)<(A|0)?A:(g|0)>(i|0)?i:g);e=e+1|0}i=0-e|0;l=((s-z|0)+(C-G<<2)|0)+4>>3;e=(i|0)>(l|0)?i:(e|0)>(l|0)?l:e;t[o|0]=w[(e+G|0)+7184|0];t[c|0]=w[(C-e|0)+7184|0]}c=c+1|0;j=j-1|0;if(j){continue}break}}c=f-1|0;n=n+32|0;d=d+S|0;i=2;if(f){continue}break}r=v[m+12>>2];i=v[m+16>>2];j=v[m+20>>2];g=v[m+24>>2];b=j+g|0;b=(b|0)<51?b:51;l=v[(((b|0)>0?b:0)<<2)+9152>>2];b=i+l|0;b=(b|0)<51?b:51;f=w[((b|0)>0?b:0)+3024|0];v[h+32>>2]=f;b=l+r|0;b=(b|0)<51?b:51;b=(b|0)>0?b:0;d=w[b+2960|0];v[h+28>>2]=d;e=B(b,3)+3088|0;v[h+24>>2]=e;if(K){b=v[v[m+204>>2]+20>>2];hf:{if((b|0)!=(j|0)){b=b+g|0;b=(b|0)<51?b:51;c=(l+v[(((b|0)>0?b:0)<<2)+9152>>2]|0)+1>>>1|0;b=c+i|0;b=(b|0)<51?b:51;v[h+8>>2]=w[((b|0)>0?b:0)+3024|0];b=c+r|0;b=(b|0)<51?b:51;b=(b|0)>0?b:0;v[h+4>>2]=w[b+2960|0];b=B(b,3)+3088|0;break hf}v[h+8>>2]=f;v[h+4>>2]=d;b=e}v[h>>2]=b}if(U){b=v[v[m+200>>2]+20>>2];jf:{if((b|0)!=(j|0)){b=b+g|0;b=(b|0)<51?b:51;c=(l+v[(((b|0)>0?b:0)<<2)+9152>>2]|0)+1>>>1|0;b=c+i|0;b=(b|0)<51?b:51;v[h+20>>2]=w[((b|0)>0?b:0)+3024|0];b=c+r|0;b=(b|0)<51?b:51;b=(b|0)>0?b:0;v[h+16>>2]=w[b+2960|0];e=B(b,3)+3088|0;break jf}v[h+20>>2]=f;v[h+16>>2]=d}v[h+12>>2]=e}c=((v[Ba>>2]+N|0)+(D<<6)|0)+(db<<3)|0;r=Ca+c|0;Y=1;l=0;j=h+48|0;while(1){z=v[j+4>>2];kf:{if(!z){break kf}g=c-1|0;n=w[g|0];o=w[c|0];b=n-o|0;d=b>>31;e=v[h+16>>2];lf:{if(e>>>0<=(b^d)-d>>>0){break lf}k=w[c-2|0];b=k-n|0;d=b>>31;b=(b^d)-d|0;d=v[h+20>>2];if(b>>>0>=d>>>0){break lf}i=w[c+1|0];b=i-o|0;f=b>>31;if(d>>>0<=(b^f)-f>>>0){break lf}mf:{if(z>>>0<=3){b=w[(z+v[h+12>>2]|0)-1|0];d=b^-1;e=(k+((o-n<<2)-i|0)|0)+4>>3;b=b+1|0;b=(d|0)>(e|0)?d:(b|0)>(e|0)?e:b;t[g|0]=w[(b+n|0)+7184|0];b=w[(o-b|0)+7184|0];break mf}t[g|0]=((i+n|0)+(k<<1)|0)+2>>>2;b=(k+(o+(i<<1)|0)|0)+2>>>2|0}t[c|0]=b;e=v[h+16>>2]}b=c+X|0;i=b-1|0;p=w[i|0];n=w[b|0];d=p-n|0;f=d>>31;nf:{if((d^f)-f>>>0>=e>>>0){break nf}o=w[b-2|0];d=o-p|0;f=d>>31;d=(d^f)-f|0;f=v[h+20>>2];if(d>>>0>=f>>>0){break nf}k=w[b+1|0];d=k-n|0;g=d>>31;if(f>>>0<=(d^g)-g>>>0){break nf}of:{if(z>>>0<=3){d=w[(z+v[h+12>>2]|0)-1|0];e=d^-1;f=(o+((n-p<<2)-k|0)|0)+4>>3;d=d+1|0;d=(e|0)>(f|0)?e:(d|0)>(f|0)?f:d;t[i|0]=w[(d+p|0)+7184|0];d=w[(n-d|0)+7184|0];break of}t[i|0]=((k+p|0)+(o<<1)|0)+2>>>2;d=(o+(n+(k<<1)|0)|0)+2>>>2|0}t[b|0]=d;e=v[h+16>>2]}p=v[j+4>>2];g=r-1|0;n=w[g|0];o=w[r|0];b=n-o|0;d=b>>31;pf:{if((b^d)-d>>>0>=e>>>0){break pf}k=w[r-2|0];b=k-n|0;d=b>>31;b=(b^d)-d|0;d=v[h+20>>2];if(b>>>0>=d>>>0){break pf}i=w[r+1|0];b=i-o|0;f=b>>31;if(d>>>0<=(b^f)-f>>>0){break pf}qf:{if(p>>>0<=3){b=w[(p+v[h+12>>2]|0)-1|0];d=b^-1;e=(k+((o-n<<2)-i|0)|0)+4>>3;b=b+1|0;b=(d|0)>(e|0)?d:(b|0)>(e|0)?e:b;t[g|0]=w[(b+n|0)+7184|0];b=w[(o-b|0)+7184|0];break qf}t[g|0]=((i+n|0)+(k<<1)|0)+2>>>2;b=(k+(o+(i<<1)|0)|0)+2>>>2|0}t[r|0]=b;e=v[h+16>>2]}b=r+X|0;g=b-1|0;n=w[g|0];o=w[b|0];d=n-o|0;f=d>>31;if((d^f)-f>>>0>=e>>>0){break kf}k=w[b-2|0];d=k-n|0;e=d>>31;d=(d^e)-e|0;e=v[h+20>>2];if(d>>>0>=e>>>0){break kf}i=w[b+1|0];d=i-o|0;f=d>>31;if(e>>>0<=(d^f)-f>>>0){break kf}rf:{if(p>>>0<=3){d=w[(p+v[h+12>>2]|0)-1|0];e=d^-1;f=(k+((o-n<<2)-i|0)|0)+4>>3;d=d+1|0;d=(e|0)>(f|0)?e:(d|0)>(f|0)?f:d;t[g|0]=w[(d+n|0)+7184|0];d=w[(o-d|0)+7184|0];break rf}t[g|0]=((i+n|0)+(k<<1)|0)+2>>>2;d=(k+(o+(i<<1)|0)|0)+2>>>2|0}t[b|0]=d}z=v[j+36>>2];sf:{if(!z){break sf}b=c+ua|0;i=b-1|0;p=w[i|0];n=w[b|0];d=p-n|0;f=d>>31;e=v[h+16>>2];tf:{if(e>>>0<=(d^f)-f>>>0){break tf}o=w[b-2|0];d=o-p|0;f=d>>31;d=(d^f)-f|0;f=v[h+20>>2];if(d>>>0>=f>>>0){break tf}k=w[b+1|0];d=k-n|0;g=d>>31;if(f>>>0<=(d^g)-g>>>0){break tf}uf:{if(z>>>0<=3){d=w[(z+v[h+12>>2]|0)-1|0];e=d^-1;f=(o+((n-p<<2)-k|0)|0)+4>>3;d=d+1|0;d=(e|0)>(f|0)?e:(d|0)>(f|0)?f:d;t[i|0]=w[(d+p|0)+7184|0];d=w[(n-d|0)+7184|0];break uf}t[i|0]=((k+p|0)+(o<<1)|0)+2>>>2;d=(o+(n+(k<<1)|0)|0)+2>>>2|0}t[b|0]=d;e=v[h+16>>2]}b=b+X|0;i=b-1|0;p=w[i|0];n=w[b|0];d=p-n|0;f=d>>31;vf:{if((d^f)-f>>>0>=e>>>0){break vf}o=w[b-2|0];d=o-p|0;f=d>>31;d=(d^f)-f|0;f=v[h+20>>2];if(d>>>0>=f>>>0){break vf}k=w[b+1|0];d=k-n|0;g=d>>31;if(f>>>0<=(d^g)-g>>>0){break vf}wf:{if(z>>>0<=3){d=w[(z+v[h+12>>2]|0)-1|0];e=d^-1;f=(o+((n-p<<2)-k|0)|0)+4>>3;d=d+1|0;d=(e|0)>(f|0)?e:(d|0)>(f|0)?f:d;t[i|0]=w[(d+p|0)+7184|0];d=w[(n-d|0)+7184|0];break wf}t[i|0]=((k+p|0)+(o<<1)|0)+2>>>2;d=(o+(n+(k<<1)|0)|0)+2>>>2|0}t[b|0]=d;e=v[h+16>>2]}z=v[j+36>>2];b=r+ua|0;i=b-1|0;p=w[i|0];n=w[b|0];d=p-n|0;f=d>>31;xf:{if((d^f)-f>>>0>=e>>>0){break xf}o=w[b-2|0];d=o-p|0;f=d>>31;d=(d^f)-f|0;f=v[h+20>>2];if(d>>>0>=f>>>0){break xf}k=w[b+1|0];d=k-n|0;g=d>>31;if(f>>>0<=(d^g)-g>>>0){break xf}yf:{if(z>>>0<=3){d=w[(z+v[h+12>>2]|0)-1|0];e=d^-1;f=(o+((n-p<<2)-k|0)|0)+4>>3;d=d+1|0;d=(e|0)>(f|0)?e:(d|0)>(f|0)?f:d;t[i|0]=w[(d+p|0)+7184|0];d=w[(n-d|0)+7184|0];break yf}t[i|0]=((k+p|0)+(o<<1)|0)+2>>>2;d=(o+(n+(k<<1)|0)|0)+2>>>2|0}t[b|0]=d;e=v[h+16>>2]}b=b+X|0;g=b-1|0;n=w[g|0];o=w[b|0];d=n-o|0;f=d>>31;if((d^f)-f>>>0>=e>>>0){break sf}k=w[b-2|0];d=k-n|0;e=d>>31;d=(d^e)-e|0;e=v[h+20>>2];if(d>>>0>=e>>>0){break sf}i=w[b+1|0];d=i-o|0;f=d>>31;if(e>>>0<=(d^f)-f>>>0){break sf}zf:{if(z>>>0<=3){d=w[(z+v[h+12>>2]|0)-1|0];e=d^-1;f=(k+((o-n<<2)-i|0)|0)+4>>3;d=d+1|0;d=(e|0)>(f|0)?e:(d|0)>(f|0)?f:d;t[g|0]=w[(d+n|0)+7184|0];d=w[(o-d|0)+7184|0];break zf}t[g|0]=((i+n|0)+(k<<1)|0)+2>>>2;d=(k+(o+(i<<1)|0)|0)+2>>>2|0}t[b|0]=d}z=v[j+20>>2];Af:{if(!z){break Af}b=c+4|0;n=w[c+3|0];o=w[c+4|0];d=n-o|0;f=d>>31;e=v[h+28>>2];Bf:{if(e>>>0<=(d^f)-f>>>0){break Bf}k=w[c+2|0];d=k-n|0;f=d>>31;d=(d^f)-f|0;f=v[h+32>>2];if(d>>>0>=f>>>0){break Bf}i=w[c+5|0];d=i-o|0;g=d>>31;if(f>>>0<=(d^g)-g>>>0){break Bf}Cf:{if(z>>>0<=3){d=w[(z+v[h+24>>2]|0)-1|0];e=d^-1;f=(k+((o-n<<2)-i|0)|0)+4>>3;d=d+1|0;d=(e|0)>(f|0)?e:(d|0)>(f|0)?f:d;t[c+3|0]=w[(d+n|0)+7184|0];d=w[(o-d|0)+7184|0];break Cf}t[c+3|0]=((i+n|0)+(k<<1)|0)+2>>>2;d=(k+(o+(i<<1)|0)|0)+2>>>2|0}t[b|0]=d;e=v[h+28>>2]}b=b+X|0;i=b-1|0;p=w[i|0];n=w[b|0];d=p-n|0;f=d>>31;Df:{if((d^f)-f>>>0>=e>>>0){break Df}o=w[b-2|0];d=o-p|0;f=d>>31;d=(d^f)-f|0;f=v[h+32>>2];if(d>>>0>=f>>>0){break Df}k=w[b+1|0];d=k-n|0;g=d>>31;if(f>>>0<=(d^g)-g>>>0){break Df}Ef:{if(z>>>0<=3){d=w[(z+v[h+24>>2]|0)-1|0];e=d^-1;f=(o+((n-p<<2)-k|0)|0)+4>>3;d=d+1|0;d=(e|0)>(f|0)?e:(d|0)>(f|0)?f:d;t[i|0]=w[(d+p|0)+7184|0];d=w[(n-d|0)+7184|0];break Ef}t[i|0]=((k+p|0)+(o<<1)|0)+2>>>2;d=(o+(n+(k<<1)|0)|0)+2>>>2|0}t[b|0]=d;e=v[h+28>>2]}b=r+4|0;p=v[j+20>>2];n=w[r+3|0];o=w[r+4|0];d=n-o|0;f=d>>31;Ff:{if((d^f)-f>>>0>=e>>>0){break Ff}k=w[r+2|0];d=k-n|0;f=d>>31;d=(d^f)-f|0;f=v[h+32>>2];if(d>>>0>=f>>>0){break Ff}i=w[r+5|0];d=i-o|0;g=d>>31;if(f>>>0<=(d^g)-g>>>0){break Ff}Gf:{if(p>>>0<=3){d=w[(p+v[h+24>>2]|0)-1|0];e=d^-1;f=(k+((o-n<<2)-i|0)|0)+4>>3;d=d+1|0;d=(e|0)>(f|0)?e:(d|0)>(f|0)?f:d;t[r+3|0]=w[(d+n|0)+7184|0];d=w[(o-d|0)+7184|0];break Gf}t[r+3|0]=((i+n|0)+(k<<1)|0)+2>>>2;d=(k+(o+(i<<1)|0)|0)+2>>>2|0}t[b|0]=d;e=v[h+28>>2]}b=b+X|0;g=b-1|0;n=w[g|0];o=w[b|0];d=n-o|0;f=d>>31;if((d^f)-f>>>0>=e>>>0){break Af}k=w[b-2|0];d=k-n|0;e=d>>31;d=(d^e)-e|0;e=v[h+32>>2];if(d>>>0>=e>>>0){break Af}i=w[b+1|0];d=i-o|0;f=d>>31;if(e>>>0<=(d^f)-f>>>0){break Af}Hf:{if(p>>>0<=3){d=w[(p+v[h+24>>2]|0)-1|0];e=d^-1;f=(k+((o-n<<2)-i|0)|0)+4>>3;d=d+1|0;d=(e|0)>(f|0)?e:(d|0)>(f|0)?f:d;t[g|0]=w[(d+n|0)+7184|0];d=w[(o-d|0)+7184|0];break Hf}t[g|0]=((i+n|0)+(k<<1)|0)+2>>>2;d=(k+(o+(i<<1)|0)|0)+2>>>2|0}t[b|0]=d}z=v[j+52>>2];If:{if(!z){break If}p=c+ua|0;b=p+4|0;n=w[p+3|0];o=w[p+4|0];d=n-o|0;f=d>>31;e=v[h+28>>2];Jf:{if(e>>>0<=(d^f)-f>>>0){break Jf}k=w[b-2|0];d=k-n|0;f=d>>31;d=(d^f)-f|0;f=v[h+32>>2];if(d>>>0>=f>>>0){break Jf}i=w[p+5|0];d=i-o|0;g=d>>31;if(f>>>0<=(d^g)-g>>>0){break Jf}Kf:{if(z>>>0<=3){d=w[(z+v[h+24>>2]|0)-1|0];e=d^-1;f=(k+((o-n<<2)-i|0)|0)+4>>3;d=d+1|0;d=(e|0)>(f|0)?e:(d|0)>(f|0)?f:d;t[p+3|0]=w[(d+n|0)+7184|0];d=w[(o-d|0)+7184|0];break Kf}t[p+3|0]=((i+n|0)+(k<<1)|0)+2>>>2;d=(k+(o+(i<<1)|0)|0)+2>>>2|0}t[b|0]=d;e=v[h+28>>2]}b=b+X|0;i=b-1|0;p=w[i|0];n=w[b|0];d=p-n|0;f=d>>31;Lf:{if((d^f)-f>>>0>=e>>>0){break Lf}o=w[b-2|0];d=o-p|0;f=d>>31;d=(d^f)-f|0;f=v[h+32>>2];if(d>>>0>=f>>>0){break Lf}k=w[b+1|0];d=k-n|0;g=d>>31;if(f>>>0<=(d^g)-g>>>0){break Lf}Mf:{if(z>>>0<=3){d=w[(z+v[h+24>>2]|0)-1|0];e=d^-1;f=(o+((n-p<<2)-k|0)|0)+4>>3;d=d+1|0;d=(e|0)>(f|0)?e:(d|0)>(f|0)?f:d;t[i|0]=w[(d+p|0)+7184|0];d=w[(n-d|0)+7184|0];break Mf}t[i|0]=((k+p|0)+(o<<1)|0)+2>>>2;d=(o+(n+(k<<1)|0)|0)+2>>>2|0}t[b|0]=d;e=v[h+28>>2]}z=r+ua|0;b=z+4|0;p=v[j+52>>2];n=w[z+3|0];o=w[z+4|0];d=n-o|0;f=d>>31;Nf:{if((d^f)-f>>>0>=e>>>0){break Nf}k=w[b-2|0];d=k-n|0;f=d>>31;d=(d^f)-f|0;f=v[h+32>>2];if(d>>>0>=f>>>0){break Nf}i=w[z+5|0];d=i-o|0;g=d>>31;if(f>>>0<=(d^g)-g>>>0){break Nf}Of:{if(p>>>0<=3){d=w[(p+v[h+24>>2]|0)-1|0];e=d^-1;f=(k+((o-n<<2)-i|0)|0)+4>>3;d=d+1|0;d=(e|0)>(f|0)?e:(d|0)>(f|0)?f:d;t[z+3|0]=w[(d+n|0)+7184|0];d=w[(o-d|0)+7184|0];break Of}t[z+3|0]=((i+n|0)+(k<<1)|0)+2>>>2;d=(k+(o+(i<<1)|0)|0)+2>>>2|0}t[b|0]=d;e=v[h+28>>2]}b=b+X|0;g=b-1|0;n=w[g|0];o=w[b|0];d=n-o|0;f=d>>31;if((d^f)-f>>>0>=e>>>0){break If}k=w[b-2|0];d=k-n|0;e=d>>31;d=(d^e)-e|0;e=v[h+32>>2];if(d>>>0>=e>>>0){break If}i=w[b+1|0];d=i-o|0;f=d>>31;if(e>>>0<=(d^f)-f>>>0){break If}Pf:{if(p>>>0<=3){d=w[(p+v[h+24>>2]|0)-1|0];e=d^-1;f=(k+((o-n<<2)-i|0)|0)+4>>3;d=d+1|0;d=(e|0)>(f|0)?e:(d|0)>(f|0)?f:d;t[g|0]=w[(d+n|0)+7184|0];d=w[(o-d|0)+7184|0];break Pf}t[g|0]=((i+n|0)+(k<<1)|0)+2>>>2;d=(k+(o+(i<<1)|0)|0)+2>>>2|0}t[b|0]=d}f=v[j+8>>2];b=v[j>>2];Qf:{if(!((f|0)!=(b|0)|(b|0)!=v[j+16>>2]|(b|0)!=v[j+24>>2])){if(!b){break Qf}d=b;b=h+B(l,12)|0;Da(c,d,b,X);Da(r,v[j>>2],b,X);break Qf}if(b){s=h+B(l,12)|0;b=w[(b+v[s>>2]|0)-1|0];D=b^-1;z=b+1|0;i=c+qa|0;n=w[i|0];o=w[c|0];b=n-o|0;d=b>>31;e=v[s+4>>2];Rf:{if(e>>>0<=(b^d)-d>>>0){break Rf}g=w[c+sa|0];b=g-n|0;d=b>>31;f=v[s+8>>2];if(f>>>0<=(b^d)-d>>>0){break Rf}d=w[c+X|0];b=d-o|0;k=b>>31;if(f>>>0<=(b^k)-k>>>0){break Rf}b=(g+((o-n<<2)-d|0)|0)+4>>3;b=(b|0)<(D|0)?D:(b|0)<(z|0)?b:z;t[i|0]=w[(b+n|0)+7184|0];t[c|0]=w[(o-b|0)+7184|0];e=v[s+4>>2]}p=c+1|0;i=p+qa|0;n=w[i|0];o=w[c+1|0];b=n-o|0;d=b>>31;Sf:{if((b^d)-d>>>0>=e>>>0){break Sf}g=w[p+sa|0];b=g-n|0;d=b>>31;f=v[s+8>>2];if(f>>>0<=(b^d)-d>>>0){break Sf}d=w[p+X|0];b=d-o|0;k=b>>31;if(f>>>0<=(b^k)-k>>>0){break Sf}b=(g+((o-n<<2)-d|0)|0)+4>>3;b=(b|0)<(D|0)?D:(b|0)<(z|0)?b:z;t[i|0]=w[(b+n|0)+7184|0];t[p|0]=w[(o-b|0)+7184|0];e=v[s+4>>2]}b=w[(v[j>>2]+v[s>>2]|0)-1|0];z=b^-1;p=b+1|0;i=r+qa|0;n=w[i|0];o=w[r|0];b=n-o|0;d=b>>31;Tf:{if((b^d)-d>>>0>=e>>>0){break Tf}g=w[r+sa|0];b=g-n|0;d=b>>31;f=v[s+8>>2];if(f>>>0<=(b^d)-d>>>0){break Tf}d=w[r+X|0];b=d-o|0;k=b>>31;if(f>>>0<=(b^k)-k>>>0){break Tf}b=(g+((o-n<<2)-d|0)|0)+4>>3;b=(b|0)<(z|0)?z:(b|0)<(p|0)?b:p;t[i|0]=w[(b+n|0)+7184|0];t[r|0]=w[(o-b|0)+7184|0];e=v[s+4>>2]}n=r+1|0;g=n+qa|0;o=w[g|0];k=w[r+1|0];b=o-k|0;d=b>>31;Uf:{if((b^d)-d>>>0>=e>>>0){break Uf}f=w[n+sa|0];b=f-o|0;d=b>>31;e=v[s+8>>2];if(e>>>0<=(b^d)-d>>>0){break Uf}d=w[n+X|0];b=d-k|0;i=b>>31;if(e>>>0<=(b^i)-i>>>0){break Uf}b=(f+((k-o<<2)-d|0)|0)+4>>3;b=(b|0)<(z|0)?z:(b|0)<(p|0)?b:p;t[g|0]=w[(b+o|0)+7184|0];t[n|0]=w[(k-b|0)+7184|0]}f=v[j+8>>2]}Vf:{if(!f){break Vf}s=h+B(l,12)|0;b=w[(v[s>>2]+f|0)-1|0];D=b^-1;z=b+1|0;p=c+2|0;i=p+qa|0;n=w[i|0];o=w[c+2|0];b=n-o|0;d=b>>31;f=v[s+4>>2];Wf:{if(f>>>0<=(b^d)-d>>>0){break Wf}g=w[p+sa|0];b=g-n|0;d=b>>31;e=v[s+8>>2];if(e>>>0<=(b^d)-d>>>0){break Wf}d=w[p+X|0];b=d-o|0;k=b>>31;if(e>>>0<=(b^k)-k>>>0){break Wf}b=(g+((o-n<<2)-d|0)|0)+4>>3;b=(b|0)<(D|0)?D:(b|0)<(z|0)?b:z;t[i|0]=w[(b+n|0)+7184|0];t[p|0]=w[(o-b|0)+7184|0];f=v[s+4>>2]}p=c+3|0;i=p+qa|0;n=w[i|0];o=w[c+3|0];b=n-o|0;d=b>>31;Xf:{if((b^d)-d>>>0>=f>>>0){break Xf}g=w[p+sa|0];b=g-n|0;d=b>>31;e=v[s+8>>2];if(e>>>0<=(b^d)-d>>>0){break Xf}d=w[p+X|0];b=d-o|0;k=b>>31;if(e>>>0<=(b^k)-k>>>0){break Xf}b=(g+((o-n<<2)-d|0)|0)+4>>3;b=(b|0)<(D|0)?D:(b|0)<(z|0)?b:z;t[i|0]=w[(b+n|0)+7184|0];t[p|0]=w[(o-b|0)+7184|0];f=v[s+4>>2]}b=w[(v[j+8>>2]+v[s>>2]|0)-1|0];D=b^-1;z=b+1|0;p=r+2|0;i=p+qa|0;n=w[i|0];o=w[r+2|0];b=n-o|0;d=b>>31;Yf:{if((b^d)-d>>>0>=f>>>0){break Yf}g=w[p+sa|0];b=g-n|0;d=b>>31;e=v[s+8>>2];if(e>>>0<=(b^d)-d>>>0){break Yf}d=w[p+X|0];b=d-o|0;k=b>>31;if(e>>>0<=(b^k)-k>>>0){break Yf}b=(g+((o-n<<2)-d|0)|0)+4>>3;b=(b|0)<(D|0)?D:(b|0)<(z|0)?b:z;t[i|0]=w[(b+n|0)+7184|0];t[p|0]=w[(o-b|0)+7184|0];f=v[s+4>>2]}n=r+3|0;g=n+qa|0;o=w[g|0];k=w[r+3|0];b=o-k|0;d=b>>31;if((b^d)-d>>>0>=f>>>0){break Vf}f=w[n+sa|0];b=f-o|0;d=b>>31;e=v[s+8>>2];if(e>>>0<=(b^d)-d>>>0){break Vf}d=w[n+X|0];b=d-k|0;i=b>>31;if(e>>>0<=(b^i)-i>>>0){break Vf}b=(f+((k-o<<2)-d|0)|0)+4>>3;b=(b|0)<(D|0)?D:(b|0)<(z|0)?b:z;t[g|0]=w[(b+o|0)+7184|0];t[n|0]=w[(k-b|0)+7184|0]}b=v[j+16>>2];Zf:{if(!b){break Zf}s=h+B(l,12)|0;b=w[(b+v[s>>2]|0)-1|0];D=b^-1;z=b+1|0;p=c+4|0;i=p+qa|0;n=w[i|0];o=w[c+4|0];b=n-o|0;d=b>>31;f=v[s+4>>2];_f:{if(f>>>0<=(b^d)-d>>>0){break _f}g=w[p+sa|0];b=g-n|0;d=b>>31;e=v[s+8>>2];if(e>>>0<=(b^d)-d>>>0){break _f}d=w[p+X|0];b=d-o|0;k=b>>31;if(e>>>0<=(b^k)-k>>>0){break _f}b=(g+((o-n<<2)-d|0)|0)+4>>3;b=(b|0)<(D|0)?D:(b|0)<(z|0)?b:z;t[i|0]=w[(b+n|0)+7184|0];t[p|0]=w[(o-b|0)+7184|0];f=v[s+4>>2]}p=c+5|0;i=p+qa|0;n=w[i|0];o=w[c+5|0];b=n-o|0;d=b>>31;$f:{if((b^d)-d>>>0>=f>>>0){break $f}g=w[p+sa|0];b=g-n|0;d=b>>31;e=v[s+8>>2];if(e>>>0<=(b^d)-d>>>0){break $f}d=w[p+X|0];b=d-o|0;k=b>>31;if(e>>>0<=(b^k)-k>>>0){break $f}b=(g+((o-n<<2)-d|0)|0)+4>>3;b=(b|0)<(D|0)?D:(b|0)<(z|0)?b:z;t[i|0]=w[(b+n|0)+7184|0];t[p|0]=w[(o-b|0)+7184|0];f=v[s+4>>2]}b=w[(v[j+16>>2]+v[s>>2]|0)-1|0];D=b^-1;z=b+1|0;p=r+4|0;i=p+qa|0;n=w[i|0];o=w[r+4|0];b=n-o|0;d=b>>31;ag:{if((b^d)-d>>>0>=f>>>0){break ag}g=w[p+sa|0];b=g-n|0;d=b>>31;e=v[s+8>>2];if(e>>>0<=(b^d)-d>>>0){break ag}d=w[p+X|0];b=d-o|0;k=b>>31;if(e>>>0<=(b^k)-k>>>0){break ag}b=(g+((o-n<<2)-d|0)|0)+4>>3;b=(b|0)<(D|0)?D:(b|0)<(z|0)?b:z;t[i|0]=w[(b+n|0)+7184|0];t[p|0]=w[(o-b|0)+7184|0];f=v[s+4>>2]}n=r+5|0;g=n+qa|0;o=w[g|0];k=w[r+5|0];b=o-k|0;d=b>>31;if((b^d)-d>>>0>=f>>>0){break Zf}f=w[n+sa|0];b=f-o|0;d=b>>31;e=v[s+8>>2];if(e>>>0<=(b^d)-d>>>0){break Zf}d=w[n+X|0];b=d-k|0;i=b>>31;if(e>>>0<=(b^i)-i>>>0){break Zf}b=(f+((k-o<<2)-d|0)|0)+4>>3;b=(b|0)<(D|0)?D:(b|0)<(z|0)?b:z;t[g|0]=w[(b+o|0)+7184|0];t[n|0]=w[(k-b|0)+7184|0]}b=v[j+24>>2];if(!b){break Qf}D=h+B(l,12)|0;b=w[(b+v[D>>2]|0)-1|0];z=b^-1;p=b+1|0;n=c+6|0;g=n+qa|0;o=w[g|0];k=w[c+6|0];b=o-k|0;d=b>>31;l=v[D+4>>2];bg:{if(l>>>0<=(b^d)-d>>>0){break bg}f=w[n+sa|0];b=f-o|0;d=b>>31;e=v[D+8>>2];if(e>>>0<=(b^d)-d>>>0){break bg}d=w[n+X|0];b=d-k|0;i=b>>31;if(e>>>0<=(b^i)-i>>>0){break bg}b=(f+((k-o<<2)-d|0)|0)+4>>3;b=(b|0)<(z|0)?z:(b|0)<(p|0)?b:p;t[g|0]=w[(b+o|0)+7184|0];t[n|0]=w[(k-b|0)+7184|0];l=v[D+4>>2]}n=c+7|0;g=n+qa|0;o=w[g|0];k=w[c+7|0];b=o-k|0;d=b>>31;cg:{if((b^d)-d>>>0>=l>>>0){break cg}f=w[n+sa|0];b=f-o|0;d=b>>31;e=v[D+8>>2];if(e>>>0<=(b^d)-d>>>0){break cg}d=w[n+X|0];b=d-k|0;i=b>>31;if(e>>>0<=(b^i)-i>>>0){break cg}b=(f+((k-o<<2)-d|0)|0)+4>>3;b=(b|0)<(z|0)?z:(b|0)<(p|0)?b:p;t[g|0]=w[(b+o|0)+7184|0];t[n|0]=w[(k-b|0)+7184|0];l=v[D+4>>2]}b=w[(v[j+24>>2]+v[D>>2]|0)-1|0];z=b^-1;p=b+1|0;n=r+6|0;g=n+qa|0;o=w[g|0];k=w[r+6|0];b=o-k|0;d=b>>31;dg:{if((b^d)-d>>>0>=l>>>0){break dg}f=w[n+sa|0];b=f-o|0;d=b>>31;e=v[D+8>>2];if(e>>>0<=(b^d)-d>>>0){break dg}d=w[n+X|0];b=d-k|0;i=b>>31;if(e>>>0<=(b^i)-i>>>0){break dg}b=(f+((k-o<<2)-d|0)|0)+4>>3;b=(b|0)<(z|0)?z:(b|0)<(p|0)?b:p;t[g|0]=w[(b+o|0)+7184|0];t[n|0]=w[(k-b|0)+7184|0];l=v[D+4>>2]}n=r+7|0;g=n+qa|0;o=w[g|0];k=w[r+7|0];b=o-k|0;d=b>>31;if((b^d)-d>>>0>=l>>>0){break Qf}f=w[n+sa|0];b=f-o|0;d=b>>31;e=v[D+8>>2];if(e>>>0<=(b^d)-d>>>0){break Qf}d=w[n+X|0];b=d-k|0;i=b>>31;if(e>>>0<=(b^i)-i>>>0){break Qf}b=(f+((k-o<<2)-d|0)|0)+4>>3;b=(b|0)<(z|0)?z:(b|0)<(p|0)?b:p;t[g|0]=w[(b+o|0)+7184|0];t[n|0]=w[(k-b|0)+7184|0]}r=r+za|0;c=c+za|0;j=j- -64|0;b=Y&1;Y=0;l=2;if(b){continue}break}}b=db+1|0;c=(b|0)==(ya|0);db=c?0:b;m=m+216|0;cb=c+cb|0;if(cb>>>0>2]){continue}break}}T=h+176|0;e=0;f=0;v[a+1192>>2]=0;v[a+1196>>2]=0;h=v[a+1176>>2];eg:{if(!h){break eg}g=v[a+1212>>2];b=0;if(h-1>>>0>=3){d=h&-4;while(1){c=g+B(b,216)|0;v[c+196>>2]=0;v[c+4>>2]=0;c=g+B(b|1,216)|0;v[c+196>>2]=0;v[c+4>>2]=0;c=g+B(b|2,216)|0;v[c+196>>2]=0;v[c+4>>2]=0;c=g+B(b|3,216)|0;v[c+196>>2]=0;v[c+4>>2]=0;b=b+4|0;e=e+4|0;if((d|0)!=(e|0)){continue}break}}d=h&3;if(!d){break eg}while(1){c=g+B(b,216)|0;v[c+196>>2]=0;v[c+4>>2]=0;b=b+1|0;f=f+1|0;if((d|0)!=(f|0)){continue}break}}p=a+1284|0;k=v[a+16>>2];e=a+1360|0;b=0;c=0;i=0;m=0;D=0;l=0;o=0;fg:{gg:{n=a+1368|0;if(!v[n+284>>2]){break gg}while(1){hg:{switch(v[(n+B(b,20)|0)+288>>2]){case 5:break fg;case 0:break gg;default:break hg}}b=b+1|0;continue}}l=1}ig:{jg:{kg:{lg:{switch(v[k+16>>2]){case 0:if(v[e>>2]==5){v[p>>2]=0;v[p+4>>2]=0;b=v[n+20>>2];break kg}b=v[n+20>>2];c=v[p>>2];if(b>>>0>=c>>>0){break kg}d=v[k+20>>2];if(c-b>>>0>>1>>>0){break kg}c=d+v[p+4>>2]|0;break jg;case 1:b=0;d=0;mg:{if(v[e>>2]==5){break mg}d=v[p+12>>2];if(y[p+8>>2]<=y[n+12>>2]){break mg}d=d+v[k+12>>2]|0}r=v[k+36>>2];b=r?d+v[n+12>>2]|0:b;h=v[e+4>>2];f=b-(!h&(b|0)!=0)|0;if(f){b=f-1|0;o=(b>>>0)/(r>>>0)|0;i=(b-B(o,r)|0)+1|0}ng:{if(!r){break ng}j=v[k+40>>2];b=0;if(r-1>>>0>=3){e=r&-4;while(1){g=b<<2;c=v[j+(g|12)>>2]+(v[j+(g|8)>>2]+(v[j+(g|4)>>2]+(v[g+j>>2]+c|0)|0)|0)|0;b=b+4|0;D=D+4|0;if((e|0)!=(D|0)){continue}break}}e=r&3;if(!e){break ng}while(1){c=v[j+(b<<2)>>2]+c|0;b=b+1|0;m=m+1|0;if((e|0)!=(m|0)){continue}break}}og:{if(!f){c=0;break og}f=i&3;c=B(c,o);j=v[k+40>>2];m=0;pg:{if(i-1>>>0<3){b=0;break pg}e=i&-4;b=0;D=0;while(1){g=b<<2;c=v[j+(g|12)>>2]+(v[j+(g|8)>>2]+(v[j+(g|4)>>2]+(v[g+j>>2]+c|0)|0)|0)|0;b=b+4|0;D=D+4|0;if((e|0)!=(D|0)){continue}break}}if(!f){break og}while(1){c=v[j+(b<<2)>>2]+c|0;b=b+1|0;m=m+1|0;if((f|0)!=(m|0)){continue}break}}c=h?c:v[k+28>>2]+c|0;if(l){h=v[n+32>>2];e=v[n+28>>2];b=v[k+32>>2];v[p+12>>2]=d;v[p+8>>2]=v[n+12>>2];b=b+h|0;c=(c+e|0)+(b>>31&b)|0;break ig}v[p+8>>2]=0;v[p+12>>2]=0;c=0;break ig;default:break lg}}b=0;if(v[e>>2]!=5){b=v[p+12>>2];c=v[n+12>>2];b=c>>>0>2]?v[k+12>>2]+b|0:b;c=(b+c<<1)-!v[e+4>>2]|0}if(l){v[p+12>>2]=b;v[p+8>>2]=v[n+12>>2];break ig}v[p+8>>2]=0;v[p+12>>2]=0;c=0;break ig}qg:{if(b>>>0<=c>>>0){break qg}d=b-c|0;c=v[k+20>>2];if(d>>>0<=c>>>1>>>0){break qg}c=v[p+4>>2]-c|0;break jg}c=v[p+4>>2]}if(!v[e+4>>2]){c=b+c|0;b=v[n+24>>2];c=c+(b>>31&b)|0;break ig}v[p+4>>2]=c;d=v[n+24>>2];if(!l){v[p+4>>2]=0;v[p>>2]=0-d&d>>31;c=0;break ig}v[p>>2]=b;c=(b+c|0)+(d&d>>31)|0}rg:{if(!v[a+1188>>2]){break rg}b=a+1220|0;if(v[a+1364>>2]){Ra(b,a+1644|0,Ba,v[a+1380>>2],c,v[a+1360>>2]==5,v[a+1208>>2],v[a+1204>>2]);break rg}Ra(b,0,Ba,v[a+1380>>2],c,v[a+1360>>2]==5,v[a+1208>>2],v[a+1204>>2])}v[a+1184>>2]=0;v[a+1188>>2]=0;b=1}T=F+320|0;return b|0}function ha(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;l=T-16|0;T=l;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(a>>>0<=244){e=v[2578];g=a>>>0<11?16:a+11&-8;c=g>>>3|0;b=e>>>c|0;if(b&3){d=c+((b^-1)&1)|0;b=d<<3;f=v[b+10360>>2];a=f+8|0;c=v[f+8>>2];b=b+10352|0;l:{if((c|0)==(b|0)){v[2578]=fb(d)&e;break l}v[c+12>>2]=b;v[b+8>>2]=c}b=d<<3;v[f+4>>2]=b|3;b=b+f|0;v[b+4>>2]=v[b+4>>2]|1;break a}k=v[2580];if(k>>>0>=g>>>0){break k}if(b){a=2<>>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;j=v[a+10360>>2];b=v[j+8>>2];a=a+10352|0;m:{if((b|0)==(a|0)){e=fb(c)&e;v[2578]=e;break m}v[b+12>>2]=a;v[a+8>>2]=b}a=j+8|0;v[j+4>>2]=g|3;d=g+j|0;b=c<<3;f=b-g|0;v[d+4>>2]=f|1;v[b+j>>2]=f;if(k){b=k>>>3|0;c=(b<<3)+10352|0;j=v[2583];b=1<>2]}v[c+8>>2]=j;v[b+12>>2]=j;v[j+12>>2]=c;v[j+8>>2]=b}v[2583]=d;v[2580]=f;break a}h=v[2579];if(!h){break k}b=(0-h&h)-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=v[((c|a)+(b>>>a|0)<<2)+10616>>2];d=(v[b+4>>2]&-8)-g|0;c=b;while(1){o:{a=v[c+16>>2];if(!a){a=v[c+20>>2];if(!a){break o}}c=(v[a+4>>2]&-8)-g|0;f=c>>>0>>0;d=f?c:d;b=f?a:b;c=a;continue}break}i=v[b+24>>2];f=v[b+12>>2];if((f|0)!=(b|0)){a=v[b+8>>2];v[a+12>>2]=f;v[f+8>>2]=a;break b}c=b+20|0;a=v[c>>2];if(!a){a=v[b+16>>2];if(!a){break j}c=b+16|0}while(1){j=c;f=a;c=a+20|0;a=v[c>>2];if(a){continue}c=f+16|0;a=v[f+16>>2];if(a){continue}break}v[j>>2]=0;break b}g=-1;if(a>>>0>4294967231){break k}a=a+11|0;g=a&-8;i=v[2579];if(!i){break k}d=0-g|0;e=0;p:{if(g>>>0<256){break p}e=31;if(g>>>0>16777215){break p}a=a>>>8|0;j=a+1048320>>>16&8;a=a<>>16&4;a=a<>>16&2;a=(a<>>15|0)-(b|(c|j))|0;e=(a<<1|g>>>a+21&1)+28|0}c=v[(e<<2)+10616>>2];q:{r:{s:{if(!c){a=0;break s}a=0;b=g<<((e|0)==31?0:25-(e>>>1|0)|0);while(1){t:{h=v[c+4>>2]&-8;j=h-g|0;if(j>>>0>=d>>>0){break t}d=j;f=c;if((g|0)!=(h|0)){break t}d=0;a=c;break r}j=v[c+20>>2];c=v[((b>>>29&4)+c|0)+16>>2];a=j?(j|0)==(c|0)?a:j:a;b=b<<1;if(c){continue}break}}if(!(a|f)){f=0;a=2<>>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;a=v[((c|a)+(b>>>a|0)<<2)+10616>>2]}if(!a){break q}}while(1){b=(v[a+4>>2]&-8)-g|0;c=b>>>0>>0;d=c?b:d;f=c?a:f;b=v[a+16>>2];if(b){a=b}else{a=v[a+20>>2]}if(a){continue}break}}if(!f|v[2580]-g>>>0<=d>>>0){break k}e=v[f+24>>2];b=v[f+12>>2];if((f|0)!=(b|0)){a=v[f+8>>2];v[a+12>>2]=b;v[b+8>>2]=a;break c}c=f+20|0;a=v[c>>2];if(!a){a=v[f+16>>2];if(!a){break i}c=f+16|0}while(1){j=c;b=a;c=a+20|0;a=v[c>>2];if(a){continue}c=b+16|0;a=v[b+16>>2];if(a){continue}break}v[j>>2]=0;break c}c=v[2580];if(c>>>0>=g>>>0){d=v[2583];b=c-g|0;u:{if(b>>>0>=16){v[2580]=b;a=d+g|0;v[2583]=a;v[a+4>>2]=b|1;v[c+d>>2]=b;v[d+4>>2]=g|3;break u}v[2583]=0;v[2580]=0;v[d+4>>2]=c|3;a=c+d|0;v[a+4>>2]=v[a+4>>2]|1}a=d+8|0;break a}i=v[2581];if(i>>>0>g>>>0){b=i-g|0;v[2581]=b;c=v[2584];a=c+g|0;v[2584]=a;v[a+4>>2]=b|1;v[c+4>>2]=g|3;a=c+8|0;break a}a=0;h=g+47|0;if(v[2696]){c=v[2698]}else{v[2699]=-1;v[2700]=-1;v[2697]=4096;v[2698]=4096;v[2696]=l+12&-16^1431655768;v[2701]=0;v[2689]=0;c=4096}j=h+c|0;f=0-c|0;c=j&f;if(c>>>0<=g>>>0){break a}d=v[2688];if(d){b=v[2686];e=b+c|0;if(e>>>0>d>>>0|b>>>0>=e>>>0){break a}}if(w[10756]&4){break f}v:{w:{d=v[2584];if(d){a=10760;while(1){b=v[a>>2];if(b>>>0<=d>>>0&d>>>0>2]>>>0){break w}a=v[a+8>>2];if(a){continue}break}}b=pa(0);if((b|0)==-1){break g}e=c;d=v[2697];a=d-1|0;if(a&b){e=(c-b|0)+(a+b&0-d)|0}if(e>>>0<=g>>>0|e>>>0>2147483646){break g}d=v[2688];if(d){a=v[2686];f=a+e|0;if(d>>>0>>0|a>>>0>=f>>>0){break g}}a=pa(e);if((b|0)!=(a|0)){break v}break e}e=f&j-i;if(e>>>0>2147483646){break g}b=pa(e);if((b|0)==(v[a>>2]+v[a+4>>2]|0)){break h}a=b}if(!((a|0)==-1|g+48>>>0<=e>>>0)){b=v[2698];b=b+(h-e|0)&0-b;if(b>>>0>2147483646){b=a;break e}if((pa(b)|0)!=-1){e=b+e|0;b=a;break e}pa(0-e|0);break g}b=a;if((a|0)!=-1){break e}break g}f=0;break b}b=0;break c}if((b|0)!=-1){break e}}v[2689]=v[2689]|4}if(c>>>0>2147483646){break d}b=pa(c);a=pa(0);if((b|0)==-1|(a|0)==-1|a>>>0<=b>>>0){break d}e=a-b|0;if(e>>>0<=g+40>>>0){break d}}a=v[2686]+e|0;v[2686]=a;if(a>>>0>y[2687]){v[2687]=a}x:{y:{z:{h=v[2584];if(h){a=10760;while(1){d=v[a>>2];c=v[a+4>>2];if((d+c|0)==(b|0)){break z}a=v[a+8>>2];if(a){continue}break}break y}a=v[2582];if(!(a>>>0<=b>>>0?a:0)){v[2582]=b}a=0;v[2691]=e;v[2690]=b;v[2586]=-1;v[2587]=v[2696];v[2693]=0;while(1){d=a<<3;c=d+10352|0;v[d+10360>>2]=c;v[d+10364>>2]=c;a=a+1|0;if((a|0)!=32){continue}break}d=e-40|0;a=b+8&7?-8-b&7:0;c=d-a|0;v[2581]=c;a=a+b|0;v[2584]=a;v[a+4>>2]=c|1;v[(b+d|0)+4>>2]=40;v[2585]=v[2700];break x}if(w[a+12|0]&8|d>>>0>h>>>0|b>>>0<=h>>>0){break y}v[a+4>>2]=c+e;a=h+8&7?-8-h&7:0;c=a+h|0;v[2584]=c;b=v[2581]+e|0;a=b-a|0;v[2581]=a;v[c+4>>2]=a|1;v[(b+h|0)+4>>2]=40;v[2585]=v[2700];break x}if(y[2582]>b>>>0){v[2582]=b}c=b+e|0;a=10760;A:{B:{C:{D:{E:{F:{while(1){if((c|0)!=v[a>>2]){a=v[a+8>>2];if(a){continue}break F}break}if(!(w[a+12|0]&8)){break E}}a=10760;while(1){c=v[a>>2];if(c>>>0<=h>>>0){f=c+v[a+4>>2]|0;if(f>>>0>h>>>0){break D}}a=v[a+8>>2];continue}}v[a>>2]=b;v[a+4>>2]=v[a+4>>2]+e;j=(b+8&7?-8-b&7:0)+b|0;v[j+4>>2]=g|3;e=c+(c+8&7?-8-c&7:0)|0;i=g+j|0;g=e-i|0;if((e|0)==(h|0)){v[2584]=i;a=v[2581]+g|0;v[2581]=a;v[i+4>>2]=a|1;break B}if(v[2583]==(e|0)){v[2583]=i;a=v[2580]+g|0;v[2580]=a;v[i+4>>2]=a|1;v[a+i>>2]=a;break B}a=v[e+4>>2];if((a&3)==1){f=a&-8;G:{if(a>>>0<=255){c=v[e+8>>2];a=a>>>3|0;b=v[e+12>>2];if((b|0)==(c|0)){v[2578]=v[2578]&fb(a);break G}v[c+12>>2]=b;v[b+8>>2]=c;break G}h=v[e+24>>2];b=v[e+12>>2];H:{if((e|0)!=(b|0)){a=v[e+8>>2];v[a+12>>2]=b;v[b+8>>2]=a;break H}I:{a=e+20|0;d=v[a>>2];if(d){break I}a=e+16|0;d=v[a>>2];if(d){break I}b=0;break H}while(1){c=a;b=d;a=b+20|0;d=v[a>>2];if(d){continue}a=b+16|0;d=v[b+16>>2];if(d){continue}break}v[c>>2]=0}if(!h){break G}c=v[e+28>>2];a=(c<<2)+10616|0;J:{if(v[a>>2]==(e|0)){v[a>>2]=b;if(b){break J}v[2579]=v[2579]&fb(c);break G}v[h+(v[h+16>>2]==(e|0)?16:20)>>2]=b;if(!b){break G}}v[b+24>>2]=h;a=v[e+16>>2];if(a){v[b+16>>2]=a;v[a+24>>2]=b}a=v[e+20>>2];if(!a){break G}v[b+20>>2]=a;v[a+24>>2]=b}g=f+g|0;e=e+f|0}v[e+4>>2]=v[e+4>>2]&-2;v[i+4>>2]=g|1;v[g+i>>2]=g;if(g>>>0<=255){a=g>>>3|0;b=(a<<3)+10352|0;c=v[2578];a=1<>2]}v[b+8>>2]=i;v[a+12>>2]=i;v[i+12>>2]=b;v[i+8>>2]=a;break B}a=31;if(g>>>0<=16777215){a=g>>>8|0;d=a+1048320>>>16&8;a=a<>>16&4;a=a<>>16&2;a=(a<>>15|0)-(b|(c|d))|0;a=(a<<1|g>>>a+21&1)+28|0}v[i+28>>2]=a;v[i+16>>2]=0;v[i+20>>2]=0;d=(a<<2)+10616|0;c=v[2579];b=1<>2]=i;v[i+24>>2]=d;break L}a=g<<((a|0)==31?0:25-(a>>>1|0)|0);b=v[d>>2];while(1){c=b;if((v[b+4>>2]&-8)==(g|0)){break C}b=a>>>29|0;a=a<<1;d=c+(b&4)|0;b=v[d+16>>2];if(b){continue}break}v[d+16>>2]=i;v[i+24>>2]=c}v[i+12>>2]=i;v[i+8>>2]=i;break B}d=e-40|0;a=b+8&7?-8-b&7:0;c=d-a|0;v[2581]=c;a=a+b|0;v[2584]=a;v[a+4>>2]=c|1;v[(b+d|0)+4>>2]=40;v[2585]=v[2700];a=(f+(f-39&7?39-f&7:0)|0)-47|0;c=a>>>0>>0?h:a;v[c+4>>2]=27;a=v[2693];v[c+16>>2]=v[2692];v[c+20>>2]=a;a=v[2691];v[c+8>>2]=v[2690];v[c+12>>2]=a;v[2692]=c+8;v[2691]=e;v[2690]=b;v[2693]=0;a=c+24|0;while(1){v[a+4>>2]=7;b=a+8|0;a=a+4|0;if(b>>>0>>0){continue}break}if((c|0)==(h|0)){break x}v[c+4>>2]=v[c+4>>2]&-2;f=c-h|0;v[h+4>>2]=f|1;v[c>>2]=f;if(f>>>0<=255){a=f>>>3|0;b=(a<<3)+10352|0;c=v[2578];a=1<>2]}v[b+8>>2]=h;v[a+12>>2]=h;v[h+12>>2]=b;v[h+8>>2]=a;break x}a=31;v[h+16>>2]=0;v[h+20>>2]=0;if(f>>>0<=16777215){a=f>>>8|0;d=a+1048320>>>16&8;a=a<>>16&4;a=a<>>16&2;a=(a<>>15|0)-(b|(c|d))|0;a=(a<<1|f>>>a+21&1)+28|0}v[h+28>>2]=a;d=(a<<2)+10616|0;c=v[2579];b=1<>2]=h;v[h+24>>2]=d;break N}a=f<<((a|0)==31?0:25-(a>>>1|0)|0);b=v[d>>2];while(1){c=b;if((f|0)==(v[b+4>>2]&-8)){break A}b=a>>>29|0;a=a<<1;d=c+(b&4)|0;b=v[d+16>>2];if(b){continue}break}v[d+16>>2]=h;v[h+24>>2]=c}v[h+12>>2]=h;v[h+8>>2]=h;break x}a=v[c+8>>2];v[a+12>>2]=i;v[c+8>>2]=i;v[i+24>>2]=0;v[i+12>>2]=c;v[i+8>>2]=a}a=j+8|0;break a}a=v[c+8>>2];v[a+12>>2]=h;v[c+8>>2]=h;v[h+24>>2]=0;v[h+12>>2]=c;v[h+8>>2]=a}a=v[2581];if(a>>>0<=g>>>0){break d}b=a-g|0;v[2581]=b;c=v[2584];a=c+g|0;v[2584]=a;v[a+4>>2]=b|1;v[c+4>>2]=g|3;a=c+8|0;break a}v[2535]=48;a=0;break a}O:{if(!e){break O}c=v[f+28>>2];a=(c<<2)+10616|0;P:{if(v[a>>2]==(f|0)){v[a>>2]=b;if(b){break P}i=fb(c)&i;v[2579]=i;break O}v[e+(v[e+16>>2]==(f|0)?16:20)>>2]=b;if(!b){break O}}v[b+24>>2]=e;a=v[f+16>>2];if(a){v[b+16>>2]=a;v[a+24>>2]=b}a=v[f+20>>2];if(!a){break O}v[b+20>>2]=a;v[a+24>>2]=b}Q:{if(d>>>0<=15){a=d+g|0;v[f+4>>2]=a|3;a=a+f|0;v[a+4>>2]=v[a+4>>2]|1;break Q}v[f+4>>2]=g|3;e=f+g|0;v[e+4>>2]=d|1;v[e+d>>2]=d;if(d>>>0<=255){a=d>>>3|0;b=(a<<3)+10352|0;c=v[2578];a=1<>2]}v[b+8>>2]=e;v[a+12>>2]=e;v[e+12>>2]=b;v[e+8>>2]=a;break Q}a=31;if(d>>>0<=16777215){a=d>>>8|0;j=a+1048320>>>16&8;a=a<>>16&4;a=a<>>16&2;a=(a<>>15|0)-(b|(c|j))|0;a=(a<<1|d>>>a+21&1)+28|0}v[e+28>>2]=a;v[e+16>>2]=0;v[e+20>>2]=0;b=(a<<2)+10616|0;S:{c=1<>2]=e;break T}a=d<<((a|0)==31?0:25-(a>>>1|0)|0);c=v[b>>2];while(1){b=c;if((v[b+4>>2]&-8)==(d|0)){break S}c=a>>>29|0;a=a<<1;j=(c&4)+b|0;c=v[j+16>>2];if(c){continue}break}v[j+16>>2]=e}v[e+24>>2]=b;v[e+12>>2]=e;v[e+8>>2]=e;break Q}a=v[b+8>>2];v[a+12>>2]=e;v[b+8>>2]=e;v[e+24>>2]=0;v[e+12>>2]=b;v[e+8>>2]=a}a=f+8|0;break a}U:{if(!i){break U}c=v[b+28>>2];a=(c<<2)+10616|0;V:{if(v[a>>2]==(b|0)){v[a>>2]=f;if(f){break V}v[2579]=fb(c)&h;break U}v[i+(v[i+16>>2]==(b|0)?16:20)>>2]=f;if(!f){break U}}v[f+24>>2]=i;a=v[b+16>>2];if(a){v[f+16>>2]=a;v[a+24>>2]=f}a=v[b+20>>2];if(!a){break U}v[f+20>>2]=a;v[a+24>>2]=f}W:{if(d>>>0<=15){a=d+g|0;v[b+4>>2]=a|3;a=a+b|0;v[a+4>>2]=v[a+4>>2]|1;break W}v[b+4>>2]=g|3;f=b+g|0;v[f+4>>2]=d|1;v[d+f>>2]=d;if(k){a=k>>>3|0;c=(a<<3)+10352|0;j=v[2583];a=1<>2]}v[c+8>>2]=j;v[a+12>>2]=j;v[j+12>>2]=c;v[j+8>>2]=a}v[2583]=f;v[2580]=d}a=b+8|0}T=l+16|0;return a|0}function ma(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;G=e+g|0;k=u[b+2>>1];n=G+(k>>2)|0;I=d+f|0;q=u[b>>1];l=I+(q>>2)|0;d=v[c+8>>2]<<4;e=v[c+4>>2]<<4;j=((g<<4)+a|0)+f|0;a:{b:{switch(v[((q&3)<<4|(k&3)<<2)+8880>>2]){case 0:ja(v[c>>2],j,l,n,e,d,h,i,16);break a;case 1:Ma(v[c>>2],j,l,n-2|0,e,d,h,i,0);break a;case 2:k=v[c>>2];q=n-2|0;n=d;d=T-448|0;T=d;c:{if(!(n>>>0<(i+q|0)+5>>>0|h+l>>>0>e>>>0|(l|q)<0)){m=q;break c}ja(k,d,l,q,e,n,h,i+5|0,h);k=d;e=h;l=0}if(!(!h|i>>>0<4)){z=64-h|0;p=e<<1;x=(e<<2)-h|0;s=0-e|0;F=s<<1;k=((B(e,m)+l|0)+k|0)+e|0;l=k+B(e,5)|0;y=i>>>2|0;while(1){m=h;while(1){o=w[e+l|0];q=w[l+F|0];n=o+q|0;A=(w[l+p|0]-n|0)-(n<<2)|0;n=w[k+p|0];C=w[l|0];r=w[l+s|0];t[j+48|0]=w[(((A+n|0)+B(C+r|0,20)|0)+16>>5)+7184|0];E=q+r|0;A=n+C|0;D=(o+(E<<4)|0)-A|0;o=w[e+k|0];t[j+32|0]=w[(((D+o|0)+(E-A<<2)|0)+16>>5)+7184|0];A=w[k|0];E=n+q|0;D=C+(E<<4)|0;C=o+r|0;t[j+16|0]=w[(((A+(D-C|0)|0)+(E-C<<2)|0)+16>>5)+7184|0];n=o+n|0;q=q+A|0;t[j|0]=w[(((w[k+s|0]+((r+(n<<4)|0)-q|0)|0)+(n-q<<2)|0)+16>>5)+7184|0];k=k+1|0;j=j+1|0;l=l+1|0;m=m-1|0;if(m){continue}break}j=j+z|0;l=l+x|0;k=k+x|0;y=y-1|0;if(y){continue}break}}T=d+448|0;break a;case 3:Ma(v[c>>2],j,l,n-2|0,e,d,h,i,1);break a;case 4:La(v[c>>2],j,l-2|0,n,e,d,h,i,0);break a;case 5:xa(v[c>>2],j,l-2|0,n-2|0,e,d,h,i,0);break a;case 6:Ja(v[c>>2],j,l-2|0,n-2|0,e,d,h,i,0);break a;case 7:xa(v[c>>2],j,l-2|0,n-2|0,e,d,h,i,2);break a;case 8:k=v[c>>2];q=j;j=n;n=e;r=d;e=0;x=T-448|0;T=x;d=h+5|0;o=l-2|0;m=i;d:{if(!((o|0)<0|r>>>0>>0|((j|0)<0|n>>>0>>0))){d=n;e=j;break d}ja(k,x,o,j,n,r,d,m,d);k=x;o=0}if(!(!m|h>>>0<4)){z=16-h|0;F=d-h|0;y=h>>>2|0;o=((B(d,e)+o|0)+k|0)+5|0;while(1){d=w[o-1|0];j=w[o-2|0];k=w[o-3|0];e=w[o-4|0];p=w[o-5|0];r=y;while(1){l=j+k|0;n=d+e|0;n=(((l<<4)+p|0)-n|0)+(l-n<<2)|0;l=w[o|0];t[q|0]=w[((n+l|0)+16>>5)+7184|0];n=w[o+1|0];s=e;e=d+j|0;p=k+l|0;t[q+1|0]=w[(((n+((s+(e<<4)|0)-p|0)|0)+(e-p<<2)|0)+16>>5)+7184|0];s=w[o+2|0];e=d+l|0;p=(e<<4)+k|0;k=j+n|0;t[q+2|0]=w[(((s+(p-k|0)|0)+(e-k<<2)|0)+16>>5)+7184|0];C=w[o+3|0];e=l+n|0;k=d+s|0;t[q+3|0]=w[(((C+(((e<<4)+j|0)-k|0)|0)+(e-k<<2)|0)+16>>5)+7184|0];q=q+4|0;o=o+4|0;p=d;e=l;k=n;j=s;d=C;r=r-1|0;if(r){continue}break}q=q+z|0;o=o+F|0;m=m-1|0;if(m){continue}break}}T=x+448|0;break a;case 9:Ka(v[c>>2],j,l-2|0,n-2|0,e,d,h,i,0);break a;case 10:k=v[c>>2];q=j;m=n-2|0;j=e;r=d;e=0;n=T-1792|0;T=n;d=h+5|0;e:{f:{o=l-2|0;if((o|m)<0|j>>>0>>0){break f}z=i+5|0;if(r>>>0>>0){break f}d=j;e=m;break e}l=k;k=n+1344|0;z=i+5|0;ja(l,k,o,m,j,r,d,z,d);o=0}if(!(!z|h>>>0<4)){F=d-h|0;y=h>>>2|0;o=((B(d,e)+o|0)+k|0)+5|0;k=n;while(1){d=w[o-1|0];j=w[o-2|0];m=w[o-3|0];e=w[o-4|0];p=w[o-5|0];r=y;while(1){l=j+m|0;s=(l<<4)+p|0;p=d+e|0;p=(s-p|0)+(l-p<<2)|0;l=w[o|0];v[k>>2]=p+l;x=w[o+1|0];s=e;e=d+j|0;p=l+m|0;v[k+4>>2]=(x+((s+(e<<4)|0)-p|0)|0)+(e-p<<2);s=w[o+2|0];e=d+l|0;p=(e<<4)+m|0;m=j+x|0;v[k+8>>2]=(s+(p-m|0)|0)+(e-m<<2);C=w[o+3|0];e=l+x|0;m=(e<<4)+j|0;j=d+s|0;v[k+12>>2]=(C+(m-j|0)|0)+(e-j<<2);k=k+16|0;o=o+4|0;p=d;e=l;m=x;j=s;d=C;r=r-1|0;if(r){continue}break}o=o+F|0;z=z-1|0;if(z){continue}break}}if(!(!h|i>>>0<4)){C=64-h|0;m=h<<2;d=m+n|0;o=d+B(h,20)|0;r=i>>>2|0;z=0-h|0;F=z<<3;p=h<<3;x=B(h,3)<<2;while(1){k=h;while(1){y=v[m+o>>2];e=v[o+F>>2];j=y+e|0;A=(v[o+p>>2]-j|0)-(j<<2)|0;j=v[d+p>>2];s=v[o>>2];E=z<<2;l=v[E+o>>2];t[q+48|0]=w[(((A+j|0)+B(s+l|0,20)|0)+512>>10)+7184|0];A=e+l|0;D=j+s|0;H=(y+(A<<4)|0)-D|0;y=v[d+m>>2];t[q+32|0]=w[(((H+y|0)+(A-D<<2)|0)+512>>10)+7184|0];D=v[d>>2];A=e+j|0;H=s+(A<<4)|0;s=l+y|0;t[q+16|0]=w[(((D+(H-s|0)|0)+(A-s<<2)|0)+512>>10)+7184|0];j=j+y|0;e=e+D|0;t[q|0]=w[(((v[d+E>>2]+((l+(j<<4)|0)-e|0)|0)+(j-e<<2)|0)+512>>10)+7184|0];d=d+4|0;q=q+1|0;o=o+4|0;k=k-1|0;if(k){continue}break}q=q+C|0;o=o+x|0;d=d+x|0;r=r-1|0;if(r){continue}break}}T=n+1792|0;break a;case 11:Ka(v[c>>2],j,l-2|0,n-2|0,e,d,h,i,1);break a;case 12:La(v[c>>2],j,l-2|0,n,e,d,h,i,1);break a;case 13:xa(v[c>>2],j,l-2|0,n-2|0,e,d,h,i,1);break a;case 14:Ja(v[c>>2],j,l-2|0,n-2|0,e,d,h,i,1);break a;default:break b}}xa(v[c>>2],j,l-2|0,n-2|0,e,d,h,i,3)}k=u[b+2>>1];d=(k>>3)+(G>>>1|0)|0;j=u[b>>1];e=(j>>3)+(I>>>1|0)|0;n=((g<<2&-8)+a+(f>>>1)|0)+256|0;f=i>>>1|0;h=h>>>1|0;g=v[c+8>>2];a=g<<3;i=v[c+4>>2];b=i<<3;c=v[c>>2]+(B(g,i)<<8)|0;j=j&7;p=k&7;if(!(!j|!p)){q=0;i=T-176|0;T=i;g=h+1|0;g:{if(!(e+g>>>0>b>>>0|(d+f|0)+1>>>0>a>>>0|(e|d)<0)){l=a;g=b;q=d;break g}l=f+1|0;ja(c,i,e,d,b,a,g,l,g);ja(B(a,b)+c|0,i+B(g,l)|0,e,d,b,a,g,l,g);c=i;e=0}if(!(f>>>0<2|h>>>0<2)){y=16-h|0;b=h>>>1|0;m=8-p|0;x=8-j|0;s=g<<1;C=s-h|0;h=(B(g,q)+c|0)+e|0;d=n;f=f>>>1|0;o=f;while(1){a=w[g+h|0];k=B(p,w[h+s|0])+B(a,m)|0;r=B(a,p)+B(m,w[h|0])|0;a=b;while(1){z=h+1|0;G=w[z+s|0];A=B(r,x);r=w[g+z|0];z=B(r,p)+B(m,w[h+1|0])|0;t[d|0]=(A+B(z,j)|0)+32>>>6;A=B(k,x);k=B(p,G)+B(m,r)|0;t[d+8|0]=(A+B(k,j)|0)+32>>>6;r=w[h+2|0];h=h+2|0;G=w[s+h|0];A=B(x,z);z=w[g+h|0];r=B(z,p)+B(m,r)|0;t[d+1|0]=(A+B(j,r)|0)+32>>>6;A=B(k,x);k=B(p,G)+B(m,z)|0;t[d+9|0]=(A+B(j,k)|0)+32>>>6;d=d+2|0;a=a-1|0;if(a){continue}break}h=h+C|0;d=d+y|0;o=o-1|0;if(o){continue}break}d=n- -64|0;h=(B(l+q|0,g)+c|0)+e|0;while(1){a=w[g+h|0];k=B(p,w[h+s|0])+B(a,m)|0;r=B(a,p)+B(m,w[h|0])|0;a=b;while(1){c=h+1|0;e=w[c+s|0];c=w[c+g|0];l=B(c,p)+B(m,w[h+1|0])|0;t[d|0]=(B(r,x)+B(l,j)|0)+32>>>6;c=B(e,p)+B(c,m)|0;t[d+8|0]=(B(k,x)+B(c,j)|0)+32>>>6;e=w[h+2|0];h=h+2|0;k=w[s+h|0];n=B(l,x);l=w[g+h|0];r=B(l,p)+B(e,m)|0;t[d+1|0]=(n+B(j,r)|0)+32>>>6;k=B(k,p)+B(l,m)|0;t[d+9|0]=(B(c,x)+B(j,k)|0)+32>>>6;d=d+2|0;a=a-1|0;if(a){continue}break}h=h+C|0;d=d+y|0;f=f-1|0;if(f){continue}break}}T=i+176|0;return}if(j){l=0;k=T-144|0;T=k;g=h;h=h+1|0;i=e;h:{if(!((e|0)<0|d+f>>>0>a>>>0|((d|0)<0|h+e>>>0>b>>>0))){h=b;l=d;break h}ja(c,k,i,d,b,a,h,f,h);ja(B(a,b)+c|0,k+B(f,h)|0,i,d,b,a,h,f,h);c=k;a=f;i=0}if(!(f>>>0<2|g>>>0<2)){r=16-g|0;d=g>>>1|0;q=8-j|0;x=(h<<1)-g|0;m=(B(h,l)+c|0)+i|0;e=n;g=f>>>1|0;p=g;while(1){b=d;while(1){f=w[(m+1|0)+h|0];s=w[h+m|0];y=w[m+1|0];t[e|0]=(B(y,j)+B(q,w[m|0])<<3)+32>>>6;t[e+8|0]=(B(f,j)+B(q,s)<<3)+32>>>6;s=w[m+2|0];m=m+2|0;C=w[m+h|0];t[e+1|0]=(B(j,s)+B(q,y)<<3)+32>>>6;t[e+9|0]=(B(j,C)+B(f,q)<<3)+32>>>6;e=e+2|0;b=b-1|0;if(b){continue}break}m=m+x|0;e=e+r|0;p=p-1|0;if(p){continue}break}e=n- -64|0;m=(B(a+l|0,h)+c|0)+i|0;while(1){b=d;while(1){a=w[(m+1|0)+h|0];c=w[h+m|0];f=w[m+1|0];t[e|0]=(B(f,j)+B(q,w[m|0])<<3)+32>>>6;t[e+8|0]=(B(a,j)+B(c,q)<<3)+32>>>6;c=w[m+2|0];m=m+2|0;i=w[m+h|0];t[e+1|0]=(B(c,j)+B(f,q)<<3)+32>>>6;t[e+9|0]=(B(i,j)+B(a,q)<<3)+32>>>6;e=e+2|0;b=b-1|0;if(b){continue}break}m=m+x|0;e=e+r|0;g=g-1|0;if(g){continue}break}}T=k+144|0;return}if(p){l=0;i=T-144|0;T=i;g=e;i:{if(!(e+h>>>0>b>>>0|(d+f|0)+1>>>0>a>>>0|(e|d)<0)){m=a;l=d;break i}m=f+1|0;ja(c,i,g,d,b,a,h,m,h);ja(B(a,b)+c|0,i+B(h,m)|0,g,d,b,a,h,m,h);c=i;b=h;g=0}if(!(f>>>0<2|h>>>0<2)){x=16-h|0;d=h>>>1|0;k=8-p|0;q=b<<1;s=q-h|0;h=(B(b,l)+c|0)+g|0;e=n;j=f>>>1|0;r=j;while(1){a=d;while(1){f=w[h+q|0];y=w[b+h|0];t[e|0]=(B(k,w[h|0])+B(y,p)<<3)+32>>>6;t[e+8|0]=(B(k,y)+B(f,p)<<3)+32>>>6;f=h+1|0;y=w[f+q|0];f=w[b+f|0];t[e+1|0]=(B(k,w[h+1|0])+B(f,p)<<3)+32>>>6;t[e+9|0]=(B(f,k)+B(p,y)<<3)+32>>>6;e=e+2|0;h=h+2|0;a=a-1|0;if(a){continue}break}h=h+s|0;e=e+x|0;r=r-1|0;if(r){continue}break}e=n- -64|0;h=(B(l+m|0,b)+c|0)+g|0;while(1){a=d;while(1){c=w[h+q|0];f=w[b+h|0];t[e|0]=(B(k,w[h|0])+B(f,p)<<3)+32>>>6;t[e+8|0]=(B(f,k)+B(c,p)<<3)+32>>>6;c=h+1|0;f=w[c+q|0];c=w[b+c|0];t[e+1|0]=(B(k,w[h+1|0])+B(c,p)<<3)+32>>>6;t[e+9|0]=(B(c,k)+B(f,p)<<3)+32>>>6;e=e+2|0;h=h+2|0;a=a-1|0;if(a){continue}break}h=h+s|0;e=e+x|0;j=j-1|0;if(j){continue}break}}T=i+144|0;return}ja(c,n,e,d,b,a,h,f,8);ja(B(a,b)+c|0,n- -64|0,e,d,b,a,h,f,8)}function Ba(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,p=0,q=0,r=0,s=0,x=0,y=0,z=0,C=0,D=0,F=0,G=0,H=0,I=0,J=0;i=T-80|0;T=i;v[i+76>>2]=4474;I=i+55|0;x=i+56|0;a:{b:{c:{d:{e:while(1){if((2147483647-n|0)<(e|0)){break d}n=e+n|0;f:{g:{h:{g=v[i+76>>2];e=g;h=w[e|0];if(h){while(1){i:{h=h&255;j:{if(!h){h=e;break j}if((h|0)!=37){break i}h=e;while(1){if(w[e+1|0]!=37){break j}f=e+2|0;v[i+76>>2]=f;h=h+1|0;j=w[e+2|0];e=f;if((j|0)==37){continue}break}}e=h-g|0;F=2147483647-n|0;if((e|0)>(F|0)){break d}if(a){sa(a,g,e)}if((g|0)!=(h|0)){continue e}r=-1;e=v[i+76>>2];if(t[e+1|0]-48>>>0>=10|w[e+2|0]!=36){h=1}else{r=t[e+1|0]-48|0;y=1;h=3}e=h+e|0;v[i+76>>2]=e;o=0;f=t[e|0];j=f-32|0;k:{if(j>>>0>31){h=e;break k}h=e;k=1<>2]=h;o=k|o;f=t[e+1|0];j=f-32|0;if(j>>>0>=32){break k}e=h;k=1<>>0>=10){break n}e=v[i+76>>2];if(w[e+2|0]!=36){break n}v[((t[e+1|0]<<2)+d|0)-192>>2]=10;p=v[((t[e+1|0]<<3)+c|0)-384>>2];y=1;e=e+3|0;break m}if(y){break h}y=0;p=0;if(a){e=v[b>>2];v[b>>2]=e+4;p=v[e>>2]}e=v[i+76>>2]+1|0}v[i+76>>2]=e;if((p|0)>=0){break l}p=0-p|0;o=o|8192;break l}p=Aa(i+76|0);if((p|0)<0){break d}e=v[i+76>>2]}h=0;k=-1;f=0;o:{if(w[e|0]!=46){break o}if(w[e+1|0]==42){p:{q:{if(t[e+2|0]-48>>>0>=10){break q}e=v[i+76>>2];if(w[e+3|0]!=36){break q}v[((t[e+2|0]<<2)+d|0)-192>>2]=10;k=v[((t[e+2|0]<<3)+c|0)-384>>2];e=e+4|0;break p}if(y){break h}if(a){e=v[b>>2];v[b>>2]=e+4;k=v[e>>2]}else{k=0}e=v[i+76>>2]+2|0}v[i+76>>2]=e;f=(k^-1)>>>31|0;break o}v[i+76>>2]=e+1;k=Aa(i+76|0);e=v[i+76>>2];f=1}C=f;while(1){m=h;l=28;if(t[e|0]-123>>>0<4294967238){break c}f=e+1|0;v[i+76>>2]=f;h=t[e|0];e=f;h=w[(h+B(m,58)|0)+9439|0];if(h-1>>>0<8){continue}break}r:{s:{if((h|0)!=27){if(!h){break c}if((r|0)>=0){v[(r<<2)+d>>2]=h;e=(r<<3)+c|0;h=v[e+4>>2];v[i+64>>2]=v[e>>2];v[i+68>>2]=h;break s}if(!a){break f}za(i- -64|0,h,b);f=v[i+76>>2];break r}if((r|0)>=0){break c}}e=0;if(!a){continue e}}j=o&-65537;h=o&8192?j:o;o=0;r=3244;l=x;t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{e=t[f-1|0];e=m?(e&15)==3?e&-33:e:e;switch(e-88|0){case 11:break t;case 9:case 13:case 14:case 15:break u;case 27:break z;case 12:case 17:break C;case 23:break D;case 0:case 32:break E;case 24:break F;case 22:break G;case 29:break H;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 10:case 16:case 18:case 19:case 20:case 21:case 25:case 26:case 28:case 30:case 31:break g;default:break I}}J:{switch(e-65|0){case 0:case 4:case 5:case 6:break u;case 2:break x;case 1:case 3:break g;default:break J}}if((e|0)==83){break y}break g}f=v[i+64>>2];j=v[i+68>>2];r=3244;break B}e=0;K:{switch(m&255){case 0:v[v[i+64>>2]>>2]=n;continue e;case 1:v[v[i+64>>2]>>2]=n;continue e;case 2:h=v[i+64>>2];v[h>>2]=n;v[h+4>>2]=n>>31;continue e;case 3:u[v[i+64>>2]>>1]=n;continue e;case 4:t[v[i+64>>2]]=n;continue e;case 6:v[v[i+64>>2]>>2]=n;continue e;case 7:break K;default:continue e}}h=v[i+64>>2];v[h>>2]=n;v[h+4>>2]=n>>31;continue e}k=k>>>0>8?k:8;h=h|8;e=120}g=x;q=e&32;f=v[i+64>>2];j=v[i+68>>2];if(f|j){while(1){g=g-1|0;t[g|0]=q|w[(f&15)+9968|0];s=!j&f>>>0>15|(j|0)!=0;m=j;j=j>>>4|0;f=(m&15)<<28|f>>>4;if(s){continue}break}}if(!(v[i+64>>2]|v[i+68>>2])|!(h&8)){break A}r=(e>>>4|0)+3244|0;o=2;break A}e=x;g=v[i+68>>2];j=g;f=v[i+64>>2];if(g|f){while(1){e=e-1|0;t[e|0]=f&7|48;m=!j&f>>>0>7|(j|0)!=0;g=j;j=g>>>3|0;f=(g&7)<<29|f>>>3;if(m){continue}break}}g=e;if(!(h&8)){break A}e=x-g|0;k=(e|0)<(k|0)?k:e+1|0;break A}e=v[i+68>>2];j=e;f=v[i+64>>2];if((e|0)<0){j=0-(((f|0)!=0)+j|0)|0;f=0-f|0;v[i+64>>2]=f;v[i+68>>2]=j;o=1;r=3244;break B}if(h&2048){o=1;r=3245;break B}o=h&1;r=o?3246:3244}e=x;L:{if(!j){g=f;break L}while(1){e=e-1|0;J=f;D=0;M:{if(!j){U=0;g=(f>>>0)/10|0;break M}s=61-E(j)|0;q=0-s|0;g=s&63;m=g&31;if(g>>>0>=32){g=0;z=j>>>m|0}else{g=j>>>m|0;z=((1<>>m}m=g;g=q&63;q=g&31;if(g>>>0>=32){g=f<>>32-q|j<>>31;m=m<<1|z>>>31;G=0-(m+(q>>>0>9)|0)>>31;H=G&10;z=q-H|0;m=m-(q>>>0>>0)|0;g=g<<1|f>>>31;f=D|f<<1;D=G&1;s=s-1|0;if(s){continue}break}}U=g<<1|f>>>31;g=D|f<<1}m=U;t[e|0]=J-eb(g,m,10,0)|48;q=j>>>0>9;f=g;j=m;if(q){continue}break}}if(g){while(1){e=e-1|0;f=(g>>>0)/10|0;t[e|0]=g-B(f,10)|48;j=g>>>0>9;g=f;if(j){continue}break}}g=e}if((k|0)<0?C:0){break d}h=C?h&-65537:h;e=v[i+64>>2];f=v[i+68>>2];if(!(k|(e|f)!=0)){g=x;l=g;k=0;break g}e=!(e|f)+(x-g|0)|0;k=(e|0)<(k|0)?k:e;break g}h=k>>>0<2147483647?k:2147483647;l=h;f=(h|0)!=0;e=v[i+64>>2];g=e?e:4467;e=g;N:{O:{P:{Q:{if(!(e&3)|!h){break Q}while(1){if(!w[e|0]){break P}l=l-1|0;f=(l|0)!=0;e=e+1|0;if(!(e&3)){break Q}if(l){continue}break}}if(!f){break O}}R:{if(!w[e|0]|l>>>0<4){break R}while(1){f=v[e>>2];if((f^-1)&f-16843009&-2139062144){break R}e=e+4|0;l=l-4|0;if(l>>>0>3){continue}break}}if(!l){break O}while(1){if(!w[e|0]){break N}e=e+1|0;l=l-1|0;if(l){continue}break}}e=0}e=e?e-g|0:h;l=e+g|0;if((k|0)>=0){h=j;k=e;break g}h=j;k=e;if(w[l|0]){break d}break g}if(k){l=v[i+64>>2];break w}e=0;qa(a,32,p,0,h);break v}v[i+12>>2]=0;v[i+8>>2]=v[i+64>>2];l=i+8|0;v[i+64>>2]=l;k=-1}e=0;S:{while(1){g=v[l>>2];if(!g){break S}g=ya(i+4|0,g);f=(g|0)<0;if(!(f|g>>>0>k-e>>>0)){l=l+4|0;e=e+g|0;if(k>>>0>e>>>0){continue}break S}break}if(f){break b}}l=61;if((e|0)<0){break c}qa(a,32,p,e,h);if(!e){e=0;break v}k=0;l=v[i+64>>2];while(1){g=v[l>>2];if(!g){break v}g=ya(i+4|0,g);k=g+k|0;if(k>>>0>e>>>0){break v}sa(a,i+4|0,g);l=l+4|0;if(e>>>0>k>>>0){continue}break}}qa(a,32,p,e,h^8192);e=(e|0)<(p|0)?p:e;continue e}if((k|0)<0?C:0){break d}l=61;e=V[0](a,A[i+64>>3],p,k,h,e)|0;if((e|0)>=0){continue e}break c}t[i+55|0]=v[i+64>>2];k=1;g=I;h=j;break g}f=e+1|0;v[i+76>>2]=f;h=w[e+1|0];e=f;continue}}if(a){break a}if(!y){break f}e=1;while(1){a=v[(e<<2)+d>>2];if(a){za((e<<3)+c|0,a,b);n=1;e=e+1|0;if((e|0)!=10){continue}break a}break}n=1;if(e>>>0>=10){break a}while(1){if(v[(e<<2)+d>>2]){break h}e=e+1|0;if((e|0)!=10){continue}break}break a}l=28;break c}j=l-g|0;k=(k|0)>(j|0)?k:j;if((k|0)>(2147483647-o|0)){break d}l=61;f=k+o|0;e=(f|0)<(p|0)?p:f;if((F|0)<(e|0)){break c}qa(a,32,e,f,h);sa(a,r,o);qa(a,48,e,f,h^65536);qa(a,48,k,j,0);sa(a,g,j);qa(a,32,e,f,h^8192);continue}break}n=0;break a}l=61}v[2535]=l}n=-1}T=i+80|0;return n}function ua(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,u=0,x=0,y=0,z=0,A=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,O=0;g=T-464|0;T=g;o=v[b+8>>2];j=v[b+4>>2];q=B(j,c);Fa(b,q+d|0);J=v[b>>2];v[a+8>>2]=0;v[a+20>>2]=40;v[a+24>>2]=0;v[a+12>>2]=0;v[a+16>>2]=0;v[a>>2]=6;h=d<<4;a:{b:{c:{switch(e-2|0){case 0:case 5:break b;default:break c}}v[g+12>>2]=0;v[g+24>>2]=o;v[g+20>>2]=j;v[g+16>>2]=f;if(!f){break b}a=g+80|0;ma(a,g+12|0,g+16|0,h,c<<4,0,0,16,16);va(b,a);break a}ba(g+80|0,0,384);m=h+(J+(q<<8)|0)|0;v[g+72>>2]=0;v[g+76>>2]=0;e=g- -64|0;v[e>>2]=0;v[e+4>>2]=0;v[g+56>>2]=0;v[g+60>>2]=0;v[g+48>>2]=0;v[g+52>>2]=0;v[g+40>>2]=0;v[g+44>>2]=0;v[g+32>>2]=0;v[g+36>>2]=0;v[g+24>>2]=0;v[g+28>>2]=0;v[g+16>>2]=0;v[g+20>>2]=0;if(v[(B(j,-216)+a|0)+196>>2]?c:0){e=m-(j<<4)|0;y=((w[e+5|0]+w[e+4|0]|0)+w[e+6|0]|0)+w[e+7|0]|0;z=w[e+3|0]+(w[e+2|0]+(w[e+1|0]+w[e|0]|0)|0)|0;f=y+z|0;A=w[e+11|0]+(w[e+10|0]+(w[e+9|0]+w[e+8|0]|0)|0)|0;C=w[e+15|0]+(w[e+14|0]+(w[e+13|0]+w[e+12|0]|0)|0)|0;e=A+C|0;i=f-e|0;v[g+20>>2]=i;k=e+f|0;v[g+16>>2]=k;L=1;f=1}else{f=0}if(!(!v[(B(j,216)+a|0)+196>>2]|(o-1|0)==(c|0))){c=m+(j<<8)|0;D=((w[c+5|0]+w[c+4|0]|0)+w[c+6|0]|0)+w[c+7|0]|0;E=w[c+3|0]+(w[c+2|0]+(w[c+1|0]+w[c|0]|0)|0)|0;e=D+E|0;F=w[c+15|0]+(w[c+14|0]+(w[c+13|0]+w[c+12|0]|0)|0)|0;G=w[c+11|0]+(w[c+10|0]+(w[c+9|0]+w[c+8|0]|0)|0)|0;c=F+G|0;i=(e-c|0)+i|0;v[g+20>>2]=i;k=(c+e|0)+k|0;v[g+16>>2]=k;M=1;f=f+1|0}d:{if(!(!d|!v[a-20>>2])){c=m-1|0;n=j<<6;e=c+n|0;h=j<<4;p=j<<5;s=B(j,48);H=((w[e+h|0]+w[e|0]|0)+w[p+e|0]|0)+w[s+e|0]|0;e=e+n|0;n=e+n|0;n=((w[n+h|0]+w[n|0]|0)+w[n+p|0]|0)+w[n+s|0]|0;I=w[c+s|0]+(w[c+p|0]+(w[c+h|0]+w[c|0]|0)|0)|0;c=I+H|0;p=w[e+s|0]+(w[e+p|0]+(w[e+h|0]+w[e|0]|0)|0)|0;h=n+p|0;e=c-h|0;v[g+32>>2]=e;k=(c+h|0)+k|0;v[g+16>>2]=k;s=1;h=f+1|0;c=1;break d}e=0;h=f;c=0}e:{f:{g:{h:{if(!(v[a+412>>2]?(j-1|0)!=(d|0):0)){if(f){break h}break g}K=e;e=m+16|0;u=j<<6;a=e+u|0;r=j<<4;x=j<<5;l=B(j,48);m=((w[a+r|0]+w[a|0]|0)+w[x+a|0]|0)+w[l+a|0]+(w[e+l|0]+(w[e+x|0]+(w[e+r|0]+w[m+16|0]|0)|0))|0;a=a+u|0;e=a+u|0;u=((w[e+r|0]+w[e|0]|0)+w[e+x|0]|0)+w[e+l|0]|0;a=w[a+l|0]+(w[a+x|0]+(w[a+r|0]+w[a|0]|0)|0)|0;r=u+a|0;e=K+(m-r|0)|0;k=(m+r|0)+k|0;r=1;c=c+1|0;h=h+1|0;if(!(!s|(f|0)!=0)){i=((H+I|0)+p|0)+n-(u+(a+m|0))>>5;break f}if(!f){break f}}i=i>>f+3}if(!c&L&M){e=((y+z|0)+A|0)+C-(((F+G|0)+D|0)+E)>>5;break e}if(!c){break e}}e=e>>c+3}i:{j:{switch(h-1|0){case 0:a=k>>>4|0;break i;case 1:a=k>>>5|0;break i;case 2:a=B(k,21)>>>10|0;break i;default:break j}}a=k>>>6|0}v[g+16>>2]=a;k:{if(!(e|i)){v[g+72>>2]=a;v[g+76>>2]=a;v[g+68>>2]=a;v[g+64>>2]=a;v[g+60>>2]=a;v[g+56>>2]=a;v[g+52>>2]=a;v[g+48>>2]=a;v[g+44>>2]=a;v[g+40>>2]=a;v[g+36>>2]=a;v[g+32>>2]=a;v[g+28>>2]=a;v[g+24>>2]=a;v[g+20>>2]=a;break k}f=a+i|0;v[g+64>>2]=f-e;c=e>>1;v[g+48>>2]=f-c;v[g+32>>2]=c+f;v[g+16>>2]=e+f;f=a-i|0;v[g+76>>2]=f-e;v[g+60>>2]=f-c;v[g+44>>2]=c+f;v[g+28>>2]=e+f;h=i>>1;f=h+a|0;v[g+68>>2]=f-e;v[g+52>>2]=f-c;v[g+36>>2]=c+f;v[g+20>>2]=e+f;a=a-h|0;v[g+72>>2]=a-e;v[g+56>>2]=a-c;v[g+40>>2]=a+c;v[g+24>>2]=a+e}a=g+80|0;i=g+16|0;e=0;while(1){c=(e&12)+i|0;f=v[c>>2];f=(f|0)<255?f:255;t[a|0]=(f|0)>0?f:0;c=v[c>>2];c=(c|0)<255?c:255;t[a+1|0]=(c|0)>0?c:0;a=a+2|0;e=e+2|0;i=(!(e&62)<<4)+i|0;if((e|0)!=256){continue}break}a=B(j,o);d=((J+(a<<8)|0)+(q<<6)|0)+(d<<3)|0;k=j<<4;J=j<<6;j=j<<3;u=0-j|0;N=a<<6;O=g+336|0;x=g- -64|0;m=0;while(1){v[g+72>>2]=0;v[g+76>>2]=0;v[x>>2]=0;v[x+4>>2]=0;v[g+56>>2]=0;v[g+60>>2]=0;v[g+48>>2]=0;v[g+52>>2]=0;v[g+40>>2]=0;v[g+44>>2]=0;v[g+32>>2]=0;v[g+36>>2]=0;v[g+24>>2]=0;v[g+28>>2]=0;v[g+16>>2]=0;v[g+20>>2]=0;i=0;a=0;c=0;if(L){a=d+u|0;y=w[a+3|0]+w[a+2|0]|0;z=w[a+1|0]+w[a|0]|0;c=y+z|0;A=w[a+5|0]+w[a+4|0]|0;C=w[a+7|0]+w[a+6|0]|0;a=A+C|0;i=c-a|0;v[g+20>>2]=i;a=a+c|0;v[g+16>>2]=a;c=1}if(M){e=d+J|0;D=w[e+3|0]+w[e+2|0]|0;E=w[e+1|0]+w[e|0]|0;f=D+E|0;F=w[e+7|0]+w[e+6|0]|0;G=w[e+5|0]+w[e+4|0]|0;e=F+G|0;i=(f-e|0)+i|0;v[g+20>>2]=i;a=(e+f|0)+a|0;v[g+16>>2]=a;c=c+1|0}e=0;l:{if(!s){h=c;f=0;break l}e=d-1|0;f=e+k|0;H=w[f+j|0]+w[f|0]|0;f=f+k|0;h=f+k|0;n=w[h+j|0]+w[h|0]|0;I=w[e+j|0]+w[e|0]|0;h=I+H|0;p=w[f+j|0]+w[f|0]|0;f=n+p|0;e=h-f|0;v[g+32>>2]=e;a=(f+h|0)+a|0;v[g+16>>2]=a;h=c+1|0;f=1}m:{n:{o:{p:{if(!r){if(c){break p}break o}o=d+8|0;l=o+k|0;o=w[l+j|0]+w[l|0]+(w[j+o|0]+w[d+8|0])|0;l=k+l|0;q=l+k|0;q=w[q+j|0]+w[q|0]|0;l=w[j+l|0]+w[l|0]|0;K=q+l|0;e=(o-K|0)+e|0;a=(o+K|0)+a|0;f=f+1|0;h=h+1|0;if(!(!s|(c|0)!=0)){i=((H+I|0)+p|0)+n-(q+(l+o|0))>>4;break n}if(!c){break n}}i=i>>c+2}if(!f&L&M){e=((y+z|0)+A|0)+C-(((F+G|0)+D|0)+E)>>4;break m}if(!f){break m}}e=e>>f+2}q:{r:{switch(h-1|0){case 0:a=a>>>3|0;break q;case 1:a=a>>>4|0;break q;case 2:a=B(a,21)>>>9|0;break q;default:break r}}a=a>>>5|0}v[g+16>>2]=a;s:{if(!(e|i)){v[g+72>>2]=a;v[g+76>>2]=a;v[g+68>>2]=a;v[g+64>>2]=a;v[g+60>>2]=a;v[g+56>>2]=a;v[g+52>>2]=a;v[g+48>>2]=a;v[g+44>>2]=a;v[g+40>>2]=a;v[g+36>>2]=a;v[g+32>>2]=a;v[g+28>>2]=a;v[g+24>>2]=a;v[g+20>>2]=a;break s}f=a+i|0;v[g+64>>2]=f-e;c=e>>1;v[g+48>>2]=f-c;v[g+32>>2]=c+f;v[g+16>>2]=e+f;f=a-i|0;v[g+76>>2]=f-e;v[g+60>>2]=f-c;v[g+44>>2]=c+f;v[g+28>>2]=e+f;h=i>>1;f=h+a|0;v[g+68>>2]=f-e;v[g+52>>2]=f-c;v[g+36>>2]=c+f;v[g+20>>2]=e+f;a=a-h|0;v[g+72>>2]=a-e;v[g+56>>2]=a-c;v[g+40>>2]=a+c;v[g+24>>2]=a+e}a=O+(m<<6)|0;e=0;i=g+16|0;while(1){c=(e<<1&12)+i|0;f=v[c>>2];f=(f|0)<255?f:255;t[a|0]=(f|0)>0?f:0;c=v[c>>2];c=(c|0)<255?c:255;t[a+1|0]=(c|0)>0?c:0;a=a+2|0;e=e+2|0;i=(!(e&14)<<4)+i|0;if((e|0)!=64){continue}break}d=d+N|0;m=m+1|0;if((m|0)!=2){continue}break}va(b,g+80|0)}T=g+464|0}function ja(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,u=0,v=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0;m=a;a=(c+g|0)<0?0-g|0:c;p=(a|0)<(e|0)?a:e;x=(p|0)>0?p:0;a=(d+h|0)<0?0-h|0:d;d=(a|0)<(f|0)?a:f;l=(m+x|0)+((d|0)>0?B(e,d):0)|0;j=0-d&d>>31;y=d+h|0;u=y-f|0;D=(f|0)<(y|0)?u:0;C=j+D|0;v=h-C|0;q=g+p|0;a=(q|0)>(e|0);n=0-p&p>>31;o=a?q-e|0:0;A=n+o|0;m=g-A|0;E=a|(p|0)<0;a:{if(!E){b:{if(!j){break b}c=0;a=j&3;if(a){while(1){j=j-1|0;b=fa(b,l,m)+i|0;c=c+1|0;if((a|0)!=(c|0)){continue}break}}if((d^-1)+((d|0)>0?d:0)>>>0<3){break b}while(1){b=fa(fa(fa(fa(b,l,m)+i|0,l,m)+i|0,l,m)+i|0,l,m)+i|0;j=j-4|0;if(j){continue}break}}if((h|0)==(C|0)){break a}c=0;a=v&3;if(a){while(1){v=v-1|0;b=fa(b,l,m)+i|0;l=e+l|0;c=c+1|0;if((a|0)!=(c|0)){continue}break}}if((((f+h|0)+d|0)+(((f|0)>(y|0)?f:y)^-1)|0)-((d|0)>0?d:0)>>>0<3){break a}while(1){c=e+l|0;a=c+e|0;d=a+e|0;b=fa(fa(fa(fa(b,l,m)+i|0,c,m)+i|0,a,m)+i|0,d,m)+i|0;l=d+e|0;v=v-4|0;if(v){continue}break}break a}c:{if(!j){break c}d:{if((g|0)==(A|0)){k=l-1|0;if(!n){if(!o){break d}a=0;c=j&3;if(c){while(1){j=j-1|0;b=ba(b,w[k|0],o)+i|0;a=a+1|0;if((c|0)!=(a|0)){continue}break}}if((d^-1)+((d|0)>0?d:0)>>>0<3){break c}while(1){b=ba(ba(ba(ba(b,w[k|0],o)+i|0,w[k|0],o)+i|0,w[k|0],o)+i|0,w[k|0],o)+i|0;j=j-4|0;if(j){continue}break}break c}if(o){a=0;c=j&3;if(c){while(1){b=ba(b,w[l|0],n);ba(b+n|0,w[k|0],o);j=j-1|0;b=b+i|0;a=a+1|0;if((c|0)!=(a|0)){continue}break}}if((d^-1)+((d|0)>0?d:0)>>>0<3){break c}while(1){a=ba(b,w[l|0],n);ba(a+n|0,w[k|0],o);a=ba(a+i|0,w[l|0],n);ba(a+n|0,w[k|0],o);a=ba(a+i|0,w[l|0],n);ba(a+n|0,w[k|0],o);a=ba(a+i|0,w[l|0],n);ba(a+n|0,w[k|0],o);b=a+i|0;j=j-4|0;if(j){continue}break}break c}c=0;a=j&3;if(a){while(1){j=j-1|0;b=ba(b,w[l|0],n)+i|0;c=c+1|0;if((a|0)!=(c|0)){continue}break}}if((d^-1)+((d|0)>0?d:0)>>>0<3){break c}while(1){b=ba(ba(ba(ba(b,w[l|0],n)+i|0,w[l|0],n)+i|0,w[l|0],n)+i|0,w[l|0],n)+i|0;j=j-4|0;if(j){continue}break}break c}if(!n){if(o){z=m&7;r=(((e+g|0)+p|0)+(((e|0)>(q|0)?e:q)^-1)|0)-x>>>0<7;while(1){s=0;a=m;c=b;k=l;if(z){while(1){d=k;t[c|0]=w[d|0];a=a-1|0;c=c+1|0;k=d+1|0;s=s+1|0;if((z|0)!=(s|0)){continue}break}}if(!r){while(1){d=k;t[c|0]=w[d|0];t[c+1|0]=w[d+1|0];t[c+2|0]=w[d+2|0];t[c+3|0]=w[d+3|0];t[c+4|0]=w[d+4|0];t[c+5|0]=w[d+5|0];t[c+6|0]=w[d+6|0];t[c+7|0]=w[d+7|0];c=c+8|0;k=d+8|0;a=a-8|0;if(a){continue}break}d=d+7|0}ba(c,w[d|0],o);b=b+i|0;j=j-1|0;if(j){continue}break}break c}s=m&7;r=(((e+g|0)+p|0)+(((e|0)>(q|0)?e:q)^-1)|0)-x>>>0<7;while(1){k=0;a=m;c=b;d=l;if(s){while(1){t[c|0]=w[d|0];a=a-1|0;c=c+1|0;d=d+1|0;k=k+1|0;if((s|0)!=(k|0)){continue}break}}if(!r){while(1){t[c|0]=w[d|0];t[c+1|0]=w[d+1|0];t[c+2|0]=w[d+2|0];t[c+3|0]=w[d+3|0];t[c+4|0]=w[d+4|0];t[c+5|0]=w[d+5|0];t[c+6|0]=w[d+6|0];t[c+7|0]=w[d+7|0];c=c+8|0;d=d+8|0;a=a-8|0;if(a){continue}break}}b=b+i|0;j=j-1|0;if(j){continue}break}break c}if(o){z=m&7;s=(((e+g|0)+p|0)+(((e|0)>(q|0)?e:q)^-1)|0)-((p|0)>0?p:0)>>>0<7;while(1){r=ba(b,w[l|0],n);c=r+n|0;a=m;k=l;b=0;if(z){while(1){d=k;t[c|0]=w[d|0];a=a-1|0;c=c+1|0;k=d+1|0;b=b+1|0;if((z|0)!=(b|0)){continue}break}}if(!s){while(1){b=k;t[c|0]=w[b|0];t[c+1|0]=w[b+1|0];t[c+2|0]=w[b+2|0];t[c+3|0]=w[b+3|0];t[c+4|0]=w[b+4|0];t[c+5|0]=w[b+5|0];t[c+6|0]=w[b+6|0];t[c+7|0]=w[b+7|0];c=c+8|0;k=b+8|0;a=a-8|0;if(a){continue}break}d=b+7|0}ba(c,w[d|0],o);b=i+r|0;j=j-1|0;if(j){continue}break}break c}s=m&7;r=(((e+g|0)+p|0)+(((e|0)>(q|0)?e:q)^-1)|0)-x>>>0<7;while(1){b=ba(b,w[l|0],n);c=b+n|0;k=0;a=m;d=l;if(s){while(1){t[c|0]=w[d|0];a=a-1|0;c=c+1|0;d=d+1|0;k=k+1|0;if((s|0)!=(k|0)){continue}break}}if(!r){while(1){t[c|0]=w[d|0];t[c+1|0]=w[d+1|0];t[c+2|0]=w[d+2|0];t[c+3|0]=w[d+3|0];t[c+4|0]=w[d+4|0];t[c+5|0]=w[d+5|0];t[c+6|0]=w[d+6|0];t[c+7|0]=w[d+7|0];c=c+8|0;d=d+8|0;a=a-8|0;if(a){continue}break}}b=b+i|0;j=j-1|0;if(j){continue}break}break c}b=B(i,j)+b|0}if((h|0)==(C|0)){break a}r=m&7;h=(((e+g|0)+p|0)+(((e|0)>(q|0)?e:q)^-1)|0)-x>>>0<7;while(1){c=b;if(n){c=ba(b,w[l|0],n)+n|0}e:{if((g|0)==(A|0)){d=l;break e}k=0;a=m;d=l;if(r){while(1){t[c|0]=w[d|0];a=a-1|0;c=c+1|0;d=d+1|0;k=k+1|0;if((r|0)!=(k|0)){continue}break}}if(h){break e}while(1){t[c|0]=w[d|0];t[c+1|0]=w[d+1|0];t[c+2|0]=w[d+2|0];t[c+3|0]=w[d+3|0];t[c+4|0]=w[d+4|0];t[c+5|0]=w[d+5|0];t[c+6|0]=w[d+6|0];t[c+7|0]=w[d+7|0];c=c+8|0;d=d+8|0;a=a-8|0;if(a){continue}break}}if(o){ba(c,w[d-1|0],o)}b=b+i|0;l=e+l|0;v=v-1|0;if(v){continue}break}}f:{if(!D){break f}h=l-e|0;if(!E){a=u&3;if(a){c=0;while(1){u=u-1|0;b=fa(b,h,m)+i|0;c=c+1|0;if((a|0)!=(c|0)){continue}break}}if((f^-1)+y>>>0<3){break f}while(1){b=fa(fa(fa(fa(b,h,m)+i|0,h,m)+i|0,h,m)+i|0,h,m)+i|0;u=u-4|0;if(u){continue}break}break f}f=m&7;e=(((e+g|0)+p|0)+(((e|0)>(q|0)?e:q)^-1)|0)-x>>>0<7;while(1){c=b;if(n){c=ba(b,w[h|0],n)+n|0}g:{if((g|0)==(A|0)){d=h;break g}k=0;a=m;d=h;if(f){while(1){t[c|0]=w[d|0];a=a-1|0;c=c+1|0;d=d+1|0;k=k+1|0;if((f|0)!=(k|0)){continue}break}}if(e){break g}while(1){t[c|0]=w[d|0];t[c+1|0]=w[d+1|0];t[c+2|0]=w[d+2|0];t[c+3|0]=w[d+3|0];t[c+4|0]=w[d+4|0];t[c+5|0]=w[d+5|0];t[c+6|0]=w[d+6|0];t[c+7|0]=w[d+7|0];c=c+8|0;d=d+8|0;a=a-8|0;if(a){continue}break}}if(o){ba(c,w[d-1|0],o)}b=b+i|0;u=u-1|0;if(u){continue}break}}}function Ra(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;q=T-16|0;T=q;n=v[c>>2];c=v[a+8>>2];a:{if((n|0)!=v[c>>2]){v[q>>2]=4135;aa(v[2372],q);break a}v[a+52>>2]=0;i=v[a+56>>2];s=!i;b:{if(!b){v[c+12>>2]=d;v[c+20>>2]=0;v[c+24>>2]=s;v[c+16>>2]=e;v[c+8>>2]=d;if(i){break b}v[a+44>>2]=v[a+44>>2]+1;break b}if(f){v[a+16>>2]=0;v[a+20>>2]=0;Qa(a);if(v[a+56>>2]?1:v[b>>2]){v[a+16>>2]=0;v[a+20>>2]=0}c=v[a+8>>2];b=v[b+4>>2];v[c+20>>2]=b?3:2;v[a+36>>2]=b?0:65535;v[c+24>>2]=s;v[c+16>>2]=0;v[c+8>>2]=0;v[c+12>>2]=0;v[a+40>>2]=1;v[a+44>>2]=1;break b}c:{d:{e:{if(v[b+8>>2]){while(1){f:{g:{h:{i:{j:{k:{l:{c=B(k,20)+b|0;switch(v[c+12>>2]-1|0){case 5:break g;case 4:break h;case 3:break i;case 2:break j;case 1:break k;case 0:break l;default:break e}}j=v[a+24>>2];if(!j){break e}m=d-v[c+16>>2]|0;l=v[a>>2];i=0;while(1){c=l+B(i,40)|0;if(!(v[c+20>>2]-1>>>0<=1&(m|0)==v[c+8>>2])){i=i+1|0;if((j|0)!=(i|0)){continue}break e}break}if((i|0)<0){break e}v[c+20>>2]=0;v[a+40>>2]=v[a+40>>2]-1;if(v[c+24>>2]){break f}v[a+44>>2]=v[a+44>>2]-1;k=k+1|0;continue}j=v[a+24>>2];if(!j){break e}m=v[c+20>>2];l=v[a>>2];i=0;while(1){c=l+B(i,40)|0;if(!(v[c+20>>2]==3&(m|0)==v[c+8>>2])){i=i+1|0;if((j|0)!=(i|0)){continue}break e}break}if((i|0)<0){break e}v[c+20>>2]=0;v[a+40>>2]=v[a+40>>2]-1;if(v[c+24>>2]){break f}v[a+44>>2]=v[a+44>>2]-1;k=k+1|0;continue}i=v[a+36>>2];if((i|0)==65535){break e}m=v[c+24>>2];if(m>>>0>i>>>0){break e}i=v[a+24>>2];if(!i){break e}p=v[c+16>>2];l=v[a>>2];c=0;while(1){m:{j=l+B(c,40)|0;if(!(v[j+20>>2]!=3|(m|0)!=v[j+8>>2])){v[j+20>>2]=0;v[a+40>>2]=v[a+40>>2]-1;if(v[j+24>>2]){break m}v[a+44>>2]=v[a+44>>2]-1;break m}c=c+1|0;if((i|0)!=(c|0)){continue}}break}j=i>>>0>1?i:1;p=d-p|0;i=0;while(1){c=l+B(i,40)|0;r=v[c+20>>2];if(!(r-1>>>0<=1&(p|0)==v[c+8>>2])){i=i+1|0;if((j|0)!=(i|0)){continue}break e}break}if((i|0)<0|r>>>0<2){break e}v[c+20>>2]=3;v[c+8>>2]=m;k=k+1|0;continue}j=v[c+28>>2];v[a+36>>2]=j;m=v[a+24>>2];if(!m){break f}l=v[a>>2];c=0;if((j|0)==65535){while(1){i=l+B(c,40)|0;n:{if(v[i+20>>2]!=3){break n}v[i+20>>2]=0;v[a+40>>2]=v[a+40>>2]-1;if(v[i+24>>2]){break n}v[a+44>>2]=v[a+44>>2]-1}c=c+1|0;if((m|0)!=(c|0)){continue}break f}}while(1){i=l+B(c,40)|0;o:{if(v[i+20>>2]!=3|j>>>0>=y[i+8>>2]){break o}v[i+20>>2]=0;v[a+40>>2]=v[a+40>>2]-1;if(v[i+24>>2]){break o}v[a+44>>2]=v[a+44>>2]-1}c=c+1|0;if((m|0)!=(c|0)){continue}break}break f}Qa(a);v[a+52>>2]=1;d=0;k=k+1|0;continue}i=v[a+36>>2];if((i|0)==65535){break e}j=v[c+24>>2];if(j>>>0>i>>>0){break e}m=v[a+24>>2];p:{if(!m){break p}l=v[a>>2];c=0;while(1){i=l+B(c,40)|0;if(!(v[i+20>>2]!=3|(j|0)!=v[i+8>>2])){v[i+20>>2]=0;v[a+40>>2]=v[a+40>>2]-1;if(v[i+24>>2]){break p}v[a+44>>2]=v[a+44>>2]-1;break p}c=c+1|0;if((m|0)!=(c|0)){continue}break}}i=v[a+40>>2];if(i>>>0>=m>>>0){break e}c=v[a+8>>2];v[c+20>>2]=3;v[c+16>>2]=e;v[c+8>>2]=j;v[c+12>>2]=d;v[c+24>>2]=!v[a+56>>2];o=1;v[a+40>>2]=i+1;v[a+44>>2]=v[a+44>>2]+1}k=k+1|0;continue}}c=0;k=v[a+40>>2];o=v[a+24>>2];if(k>>>0>>0){break d}if(!k){k=0;break d}p=k&1;m=v[a>>2];q:{if((k|0)==1){i=-1;b=0;break q}r=k&-2;b=0;i=-1;while(1){l=m+B(c,40)|0;if(v[l+20>>2]-1>>>0<=1){n=v[l+8>>2];l=(i|0)==-1|(n|0)<(b|0);i=l?c:i;b=l?n:b}n=c|1;l=m+B(n,40)|0;if(v[l+20>>2]-1>>>0<=1){t=n;n=v[l+8>>2];l=(i|0)==-1|(n|0)<(b|0);i=l?t:i;b=l?n:b}c=c+2|0;j=j+2|0;if((r|0)!=(j|0)){continue}break}}r:{if(!p){break r}j=m+B(c,40)|0;if(v[j+20>>2]-1>>>0>1){break r}i=v[j+8>>2]<(b|0)?c:(i|0)==-1?c:i}if((i|0)<0){break d}b=m+B(i,40)|0;v[b+20>>2]=0;k=k-1|0;v[a+40>>2]=k;if(v[b+24>>2]){break d}v[a+44>>2]=v[a+44>>2]-1;break d}if(o){break c}o=v[a+24>>2];k=v[a+40>>2]}if(k>>>0>=o>>>0){break b}b=v[a+8>>2];v[b+24>>2]=s;v[b+20>>2]=2;v[b+16>>2]=e;v[b+8>>2]=d;v[b+12>>2]=d;v[a+40>>2]=k+1;v[a+44>>2]=v[a+44>>2]+1}}b=v[a+8>>2];v[b+32>>2]=h;v[b+28>>2]=g;v[b+36>>2]=f;s:{if(!v[a+56>>2]){e=v[a+28>>2];j=v[a+44>>2];if(e>>>0>=j>>>0){break s}b=e+1|0;h=b&-2;k=b&1;d=v[a>>2];while(1){i=2147483647;b=0;c=0;f=0;if(e){while(1){g=d+B(c,40)|0;if(v[g+24>>2]){n=g;g=v[g+16>>2];o=(g|0)<(i|0);b=o?n:b;i=o?g:i}g=d+B(c|1,40)|0;if(v[g+24>>2]){n=g;g=v[g+16>>2];o=(g|0)<(i|0);b=o?n:b;i=o?g:i}c=c+2|0;f=f+2|0;if((h|0)!=(f|0)){continue}break}}t:{if(!k){break t}c=d+B(c,40)|0;if(!v[c+24>>2]){break t}b=v[c+16>>2]<(i|0)?c:b}u:{if(!b){break u}f=v[a+16>>2];c=v[a+12>>2]+(f<<4)|0;v[c>>2]=v[b>>2];v[c+12>>2]=v[b+36>>2];v[c+4>>2]=v[b+28>>2];v[c+8>>2]=v[b+32>>2];v[a+16>>2]=f+1;v[b+24>>2]=0;if(v[b+20>>2]){break u}j=j-1|0;v[a+44>>2]=j}if(e>>>0>>0){continue}break}break s}c=v[b>>2];d=v[a+16>>2];b=v[a+12>>2]+(d<<4)|0;v[b+12>>2]=f;v[b>>2]=c;v[b+8>>2]=h;v[b+4>>2]=g;v[a+16>>2]=d+1;e=v[a+28>>2]}Pa(v[a>>2],e+1|0)}T=q+16|0}function ga(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,p=0;j=T-128|0;T=j;e=na(a);f=1;a:{b:{c:{if(c>>>0<=1){if((e|0)<0){break b}f=(e>>>25&126)+1024|0;if(e>>>0>=201326592){break c}f=(e>>>21&2046)+1088|0;if(e>>>0>=16777216){break c}f=(e>>>17&32766)+1168|0;if(e>>>0>=2097152){break c}f=(e>>>16<<1)+1296|0;break c}if(c>>>0<=3){if((e|0)<0){f=e&1073741824?2:2082;break b}f=(e>>>25&126)+1360|0;if(e>>>0>=268435456){break c}f=(e>>>22&1022)+1424|0;if(e>>>0>=33554432){break c}f=(e>>>17&32766)+1488|0;break c}if(c>>>0<=7){f=(e>>>25&126)+1744|0;if(e>>>0>536870911){break c}f=(e>>>21&2046)+1872|0;break c}f=(e>>>25&126)+2128|0;if(c>>>0<=16){break c}f=(e>>>28&14)+2256|0;if(e>>>0>536870911){break c}f=(e>>>23&510)+2272|0}f=x[f>>1];if(f){break b}n=1;break a}n=1;k=f>>>11|0;if(k>>>0>d>>>0){break a}g=f&31;c=32-g|0;d:{if(f>>>0<2048){break d}e=e<>>5&63;if(m){if(c>>>0>>0){if((ia(a,g)|0)==-1){break a}e=na(a);c=32}g=e<>>32-m|0;while(1){v[(j- -64|0)+(h<<2)>>2]=e&i?-1:1;h=h+1|0;l=i>>>0>1;i=i>>>1|0;if(l){continue}break}e=g;c=c-m|0}if(h>>>0>>0){o=m>>>0<3;f=o&f>>>0>22527;while(1){if(c>>>0<=15){if((ia(a,32-c|0)|0)==-1){break a}e=na(a);c=32}g=0;e:{f:{g:{h:{if((e|0)<0){break h}g=1;if(e>>>0>1073741823){break h}g=2;if(e>>>0>536870911){break h}g=3;if(e>>>0>268435455){break h}g=4;if(e>>>0>134217727){break h}g=5;if(e>>>0>67108863){break h}g=6;if(e>>>0>33554431){break h}g=7;if(e>>>0>16777215){break h}g=8;if(e>>>0>8388607){break h}g=9;if(e>>>0>4194303){break h}g=10;if(e>>>0>2097151){break h}g=11;if(e>>>0>1048575){break h}g=12;if(e>>>0>524287){break h}g=13;if(e>>>0>262143){break h}i:{j:{if(e>>>0<=131071){if((e&-65536)==65536){break j}break a}g=f?f:4;e=e<<15;i=14;c=c-15|0;break i}f=f?f:1;e=e<<16;g=12;i=15;c=c-16|0}i=i<>>0>=g>>>0)){if((ia(a,32-c|0)|0)==-1){break a}c=32;e=na(a)}l=e;c=c-g|0;e=l<>>32-g|0)+i|0;break e}f=0}l=o?(h|0)==(m|0)?i+2|0:i:i;g=l+2>>>1|0;v[(j- -64|0)+(h<<2)>>2]=l&1?0-g|0:g;f=p?1:f;f=(f>>>0<6&(g|0)>3<>>0<=k>>>0){h=0;break k}l:{if(c>>>0>8){f=c;break l}f=32;if((ia(a,32-c|0)|0)==-1){break a}e=na(a)}m:{n:{o:{p:{if((d|0)!=4){q:{switch(k-1|0){case 1:c=(e>>>26|0)+2400|0;break o;case 2:c=(e>>>26|0)+2464|0;break o;case 3:c=(e>>>27|0)+2528|0;break o;case 4:c=(e>>>27|0)+2560|0;break o;case 5:c=(e>>>26|0)+2592|0;break o;case 6:c=(e>>>26|0)+2656|0;break o;case 7:c=(e>>>26|0)+2720|0;break o;case 8:c=(e>>>26|0)+2784|0;break o;case 9:c=(e>>>27|0)+2848|0;break o;case 10:c=(e>>>28|0)+2880|0;break o;case 11:c=(e>>>28|0)+2896|0;break o;case 12:c=(e>>>29|0)+2912|0;break o;case 0:break p;case 13:break q;default:break n}}c=(e>>>30|0)+2920|0;break o}if((e|0)<0){c=1;break m}c=17;if((k|0)==3){break m}c=18;if(e>>>0>1073741823){break m}c=34;if((k|0)==2){break m}c=e>>>0<536870912?51:35;break m}c=(e>>>23|0)+2368|0;d=c;c=e>>>27|0;c=e>>>0<134217728?d:(c|0)==1?d:c+2336|0}c=w[c|0];if(c){break m}break a}c=(e|0)>=0?1:17}h=c>>>4|0;d=c&15;c=f-d|0;e=e<>>0<=10){if((ia(a,32-c|0)|0)==-1){break a}e=na(a);c=32}s:{t:{u:{switch(h-1|0){case 1:d=(e>>>30|0)+2926|0;break t;case 2:d=(e>>>30|0)+2930|0;break t;case 3:d=(e>>>29|0)+2934|0;break t;case 4:d=(e>>>29|0)+2942|0;break t;case 5:d=(e>>>29|0)+2950|0;break t;default:f=115-(e>>>25&112)|0;v:{if(e>>>0>=536870912){break v}f=116;if(e>>>0>268435455){break v}f=133;if(e>>>0>134217727){break v}f=150;if(e>>>0>67108863){break v}f=167;if(e>>>0>33554431){break v}f=184;if(e>>>0>16777215){break v}f=201;if(e>>>0>8388607){break v}f=218;if(e>>>0>4194303){break v}f=e>>>0<2097152?0:235}if(f>>>4>>>0<=h>>>0){break s}break a;case 0:break u}}d=(e>>>31|0)+2924|0}f=w[d|0]}if(!f){break a}d=f>>>4|0;v[(i<<2)+j>>2]=d+1;h=h-d|0;d=f&15;c=c-d|0;e=e<>2]=1;h=0}i=i+1|0;if((i|0)!=(g|0)){continue}break}v[(h<<2)+b>>2]=v[(j- -64|0)+(g<<2)>>2];i=1<>2]+h|0;v[(h<<2)+b>>2]=v[d+(j- -64|0)>>2];i=1<>2]+h|0;v[(d<<2)+b>>2]=v[f+(j- -64|0)>>2];g=g-2|0;f=g<<2;h=d+v[f+j>>2]|0;v[(h<<2)+b>>2]=v[f+(j- -64|0)>>2];i=1<>2]=v[(j- -64|0)+(g<<2)>>2];i=1<>2];a=b&-8;f=d+a|0;b:{if(b&1){break b}if(!(b&3)){break a}b=v[d>>2];d=d-b|0;if(d>>>0>>0<=255){e=v[d+8>>2];b=b>>>3|0;c=v[d+12>>2];if((c|0)==(e|0)){v[2578]=v[2578]&fb(b);break b}v[e+12>>2]=c;v[c+8>>2]=e;break b}h=v[d+24>>2];b=v[d+12>>2];c:{if((d|0)!=(b|0)){c=v[d+8>>2];v[c+12>>2]=b;v[b+8>>2]=c;break c}d:{e=d+20|0;c=v[e>>2];if(c){break d}e=d+16|0;c=v[e>>2];if(c){break d}b=0;break c}while(1){g=e;b=c;e=b+20|0;c=v[e>>2];if(c){continue}e=b+16|0;c=v[b+16>>2];if(c){continue}break}v[g>>2]=0}if(!h){break b}e=v[d+28>>2];c=(e<<2)+10616|0;e:{if(v[c>>2]==(d|0)){v[c>>2]=b;if(b){break e}v[2579]=v[2579]&fb(e);break b}v[h+(v[h+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break b}}v[b+24>>2]=h;c=v[d+16>>2];if(c){v[b+16>>2]=c;v[c+24>>2]=b}c=v[d+20>>2];if(!c){break b}v[b+20>>2]=c;v[c+24>>2]=b;break b}b=v[f+4>>2];if((b&3)!=3){break b}v[2580]=a;v[f+4>>2]=b&-2;v[d+4>>2]=a|1;v[a+d>>2]=a;return}if(d>>>0>=f>>>0){break a}b=v[f+4>>2];if(!(b&1)){break a}f:{if(!(b&2)){if(v[2584]==(f|0)){v[2584]=d;a=v[2581]+a|0;v[2581]=a;v[d+4>>2]=a|1;if(v[2583]!=(d|0)){break a}v[2580]=0;v[2583]=0;return}if(v[2583]==(f|0)){v[2583]=d;a=v[2580]+a|0;v[2580]=a;v[d+4>>2]=a|1;v[a+d>>2]=a;return}a=(b&-8)+a|0;g:{if(b>>>0<=255){e=v[f+8>>2];b=b>>>3|0;c=v[f+12>>2];if((c|0)==(e|0)){v[2578]=v[2578]&fb(b);break g}v[e+12>>2]=c;v[c+8>>2]=e;break g}h=v[f+24>>2];b=v[f+12>>2];h:{if((f|0)!=(b|0)){c=v[f+8>>2];v[c+12>>2]=b;v[b+8>>2]=c;break h}i:{e=f+20|0;c=v[e>>2];if(c){break i}e=f+16|0;c=v[e>>2];if(c){break i}b=0;break h}while(1){g=e;b=c;e=b+20|0;c=v[e>>2];if(c){continue}e=b+16|0;c=v[b+16>>2];if(c){continue}break}v[g>>2]=0}if(!h){break g}e=v[f+28>>2];c=(e<<2)+10616|0;j:{if(v[c>>2]==(f|0)){v[c>>2]=b;if(b){break j}v[2579]=v[2579]&fb(e);break g}v[h+(v[h+16>>2]==(f|0)?16:20)>>2]=b;if(!b){break g}}v[b+24>>2]=h;c=v[f+16>>2];if(c){v[b+16>>2]=c;v[c+24>>2]=b}c=v[f+20>>2];if(!c){break g}v[b+20>>2]=c;v[c+24>>2]=b}v[d+4>>2]=a|1;v[a+d>>2]=a;if(v[2583]!=(d|0)){break f}v[2580]=a;return}v[f+4>>2]=b&-2;v[d+4>>2]=a|1;v[a+d>>2]=a}if(a>>>0<=255){a=a>>>3|0;b=(a<<3)+10352|0;c=v[2578];a=1<>2]}v[b+8>>2]=d;v[a+12>>2]=d;v[d+12>>2]=b;v[d+8>>2]=a;return}e=31;v[d+16>>2]=0;v[d+20>>2]=0;if(a>>>0<=16777215){b=a>>>8|0;g=b+1048320>>>16&8;b=b<>>16&4;b=b<>>16&2;b=(b<>>15|0)-(c|(e|g))|0;e=(b<<1|a>>>b+21&1)+28|0}v[d+28>>2]=e;g=(e<<2)+10616|0;l:{m:{c=v[2579];b=1<>2]=d;v[d+24>>2]=g;break n}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=v[g>>2];while(1){c=b;if((v[b+4>>2]&-8)==(a|0)){break m}b=e>>>29|0;e=e<<1;g=c+(b&4)|0;b=v[g+16>>2];if(b){continue}break}v[g+16>>2]=d;v[d+24>>2]=c}v[d+12>>2]=d;v[d+8>>2]=d;break l}a=v[c+8>>2];v[a+12>>2]=d;v[c+8>>2]=d;v[d+24>>2]=0;v[d+12>>2]=c;v[d+8>>2]=a}a=v[2586]-1|0;v[2586]=a?a:-1}}function Da(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,p=0;a:{if(b>>>0>=4){o=0-d|0;k=o<<1;h=a-d|0;i=w[h|0];j=w[a|0];f=i-j|0;g=f>>31;b=v[c+4>>2];b:{if(b>>>0<=(f^g)-g>>>0){break b}g=w[a+k|0];e=g-i|0;f=e>>31;l=v[c+8>>2];if(l>>>0<=(e^f)-f>>>0){break b}f=w[a+d|0];m=f-j|0;e=m>>31;if((e^m)-e>>>0>=l>>>0){break b}t[h|0]=((f+i|0)+(g<<1)|0)+2>>>2;t[a|0]=(g+(j+(f<<1)|0)|0)+2>>>2;b=v[c+4>>2]}i=a+1|0;l=i+o|0;j=w[l|0];g=w[a+1|0];e=j-g|0;f=e>>31;c:{if((e^f)-f>>>0>=b>>>0){break c}f=w[i+k|0];h=f-j|0;e=h>>31;m=v[c+8>>2];if(m>>>0<=(e^h)-e>>>0){break c}e=w[d+i|0];n=e-g|0;h=n>>31;if((h^n)-h>>>0>=m>>>0){break c}t[l|0]=((e+j|0)+(f<<1)|0)+2>>>2;t[i|0]=(f+(g+(e<<1)|0)|0)+2>>>2;b=v[c+4>>2]}i=a+2|0;l=i+o|0;j=w[l|0];g=w[a+2|0];e=j-g|0;f=e>>31;d:{if((e^f)-f>>>0>=b>>>0){break d}f=w[i+k|0];h=f-j|0;e=h>>31;m=v[c+8>>2];if(m>>>0<=(e^h)-e>>>0){break d}e=w[d+i|0];n=e-g|0;h=n>>31;if((h^n)-h>>>0>=m>>>0){break d}t[l|0]=((e+j|0)+(f<<1)|0)+2>>>2;t[i|0]=(f+(g+(e<<1)|0)|0)+2>>>2;b=v[c+4>>2]}i=a+3|0;l=i+o|0;j=w[l|0];g=w[a+3|0];e=j-g|0;f=e>>31;e:{if((e^f)-f>>>0>=b>>>0){break e}f=w[i+k|0];h=f-j|0;e=h>>31;m=v[c+8>>2];if(m>>>0<=(e^h)-e>>>0){break e}e=w[d+i|0];n=e-g|0;h=n>>31;if((h^n)-h>>>0>=m>>>0){break e}t[l|0]=((e+j|0)+(f<<1)|0)+2>>>2;t[i|0]=(f+(g+(e<<1)|0)|0)+2>>>2;b=v[c+4>>2]}i=a+4|0;l=i+o|0;j=w[l|0];g=w[a+4|0];e=j-g|0;f=e>>31;f:{if((e^f)-f>>>0>=b>>>0){break f}f=w[i+k|0];h=f-j|0;e=h>>31;m=v[c+8>>2];if(m>>>0<=(e^h)-e>>>0){break f}e=w[d+i|0];n=e-g|0;h=n>>31;if((h^n)-h>>>0>=m>>>0){break f}t[l|0]=((e+j|0)+(f<<1)|0)+2>>>2;t[i|0]=(f+(g+(e<<1)|0)|0)+2>>>2;b=v[c+4>>2]}i=a+5|0;l=i+o|0;j=w[l|0];g=w[a+5|0];e=j-g|0;f=e>>31;g:{if((e^f)-f>>>0>=b>>>0){break g}f=w[i+k|0];h=f-j|0;e=h>>31;m=v[c+8>>2];if(m>>>0<=(e^h)-e>>>0){break g}e=w[d+i|0];n=e-g|0;h=n>>31;if((h^n)-h>>>0>=m>>>0){break g}t[l|0]=((e+j|0)+(f<<1)|0)+2>>>2;t[i|0]=(f+(g+(e<<1)|0)|0)+2>>>2;b=v[c+4>>2]}i=a+6|0;l=i+o|0;j=w[l|0];g=w[a+6|0];e=j-g|0;f=e>>31;h:{if((e^f)-f>>>0>=b>>>0){break h}f=w[i+k|0];h=f-j|0;e=h>>31;m=v[c+8>>2];if(m>>>0<=(e^h)-e>>>0){break h}e=w[d+i|0];n=e-g|0;h=n>>31;if((h^n)-h>>>0>=m>>>0){break h}t[l|0]=((e+j|0)+(f<<1)|0)+2>>>2;t[i|0]=(f+(g+(e<<1)|0)|0)+2>>>2;b=v[c+4>>2]}g=o;o=a+7|0;g=g+o|0;i=w[g|0];a=w[a+7|0];f=i-a|0;j=f>>31;if((f^j)-j>>>0>=b>>>0){break a}b=w[k+o|0];j=b-i|0;k=j>>31;e=(j^k)-k|0;k=v[c+8>>2];if(e>>>0>=k>>>0){break a}c=w[d+o|0];j=c-a|0;d=j>>31;if(k>>>0<=(d^j)-d>>>0){break a}t[g|0]=((c+i|0)+(b<<1)|0)+2>>>2;t[o|0]=(b+(a+(c<<1)|0)|0)+2>>>2;return}f=0-d|0;e=f<<1;b=w[(v[c>>2]+b|0)-1|0];i=b^-1;j=b+1|0;b=8;while(1){h=a+f|0;k=w[h|0];o=w[a|0];l=k-o|0;g=l>>31;i:{if(y[c+4>>2]<=(g^l)-g>>>0){break i}l=w[a+e|0];m=l-k|0;g=m>>31;g=(g^m)-g|0;m=v[c+8>>2];if(g>>>0>=m>>>0){break i}n=w[a+d|0];p=n-o|0;g=p>>31;if((g^p)-g>>>0>=m>>>0){break i}g=k;k=(l+((o-k<<2)-n|0)|0)+4>>3;k=(i|0)>(k|0)?i:(j|0)>(k|0)?k:j;t[h|0]=w[(g+k|0)+7184|0];t[a|0]=w[(o-k|0)+7184|0]}a=a+1|0;b=b-1|0;if(b){continue}break}}}function ea(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,p=0,q=0,r=0,s=0,t=0,u=0,x=0,y=0,z=0;g=B(w[b+9088|0],12);e=v[g+9012>>2];h=w[b+8944|0];f=v[g+9008>>2]<>2]=B(f,v[a>>2])}b=e<>2]<>2]=B(d,v[a+60>>2]);v[a+56>>2]=B(b,v[a+56>>2]);c=1;h=B(f,v[a+44>>2]);e=B(f,v[a+12>>2]);l=h+e|0;n=B(b,v[a+32>>2]);o=B(b,v[a+52>>2]);q=n+(o>>1)|0;g=l-q|0;v[a+44>>2]=g;r=v[a+40>>2];e=e-h|0;o=(n>>1)-o|0;h=e-o|0;v[a+40>>2]=h;i=v[a+36>>2];e=e+o|0;v[a+36>>2]=e;n=B(b,v[a+28>>2]);k=B(b,v[a+8>>2]);s=n+k|0;m=B(d,v[a+16>>2]);p=B(d,v[a+48>>2]);t=m+(p>>1)|0;o=s-t|0;v[a+28>>2]=o;j=v[a+24>>2];k=k-n|0;p=(m>>1)-p|0;n=k-p|0;v[a+24>>2]=n;m=v[a+20>>2];k=k+p|0;v[a+20>>2]=k;p=B(f,m);m=v[a>>2];u=p+m|0;x=B(b,v[a+4>>2]);j=B(b,j);y=x+(j>>1)|0;f=u-y|0;v[a+12>>2]=f;m=m-p|0;j=(x>>1)-j|0;p=m-j|0;v[a+8>>2]=p;m=j+m|0;v[a+4>>2]=m;i=B(b,i);j=v[a+56>>2];x=i-j|0;r=B(d,r);z=v[a+60>>2];d=(r>>1)-z|0;b=x-d|0;v[a+56>>2]=b;d=d+x|0;v[a+52>>2]=d;i=i+j|0;j=r+(z>>1)|0;r=i-j|0;v[a+60>>2]=r;u=u+y|0;l=l+q|0;q=(u-l|0)+32|0;s=s+t|0;i=i+j|0;t=(s>>1)-i|0;j=q-t>>6;v[a+32>>2]=j;q=q+t>>6;v[a+16>>2]=q;l=(l+u|0)+32|0;i=s+(i>>1)|0;s=l-i>>6;v[a+48>>2]=s;l=i+l>>6;v[a>>2]=l;if(l-512>>>0<4294966272|q-512>>>0<4294966272|(j-512>>>0<4294966272|s-512>>>0<4294966272)){break a}l=(e+m|0)+32|0;q=k+(d>>1)|0;i=l-q>>6;v[a+52>>2]=i;e=(m-e|0)+32|0;d=(k>>1)-d|0;k=e-d>>6;v[a+36>>2]=k;d=d+e>>6;v[a+20>>2]=d;e=l+q>>6;v[a+4>>2]=e;if(e-512>>>0<4294966272|d-512>>>0<4294966272|(k-512>>>0<4294966272|i-512>>>0<4294966272)){break a}d=(h+p|0)+32|0;e=n+(b>>1)|0;k=d-e>>6;v[a+56>>2]=k;h=(p-h|0)+32|0;b=(n>>1)-b|0;n=h-b>>6;v[a+40>>2]=n;b=b+h>>6;v[a+24>>2]=b;d=d+e>>6;v[a+8>>2]=d;if(d-512>>>0<4294966272|b-512>>>0<4294966272|(n-512>>>0<4294966272|k-512>>>0<4294966272)){break a}b=(f+g|0)+32|0;d=o+(r>>1)|0;h=b-d>>6;v[a+60>>2]=h;f=(f-g|0)+32|0;g=(o>>1)-r|0;e=f-g>>6;v[a+44>>2]=e;f=f+g>>6;v[a+28>>2]=f;g=a;a=b+d>>6;v[g+12>>2]=a;if(a-512>>>0<4294966272|f-512>>>0<4294966272|e-512>>>0<4294966272){break a}if(h-512>>>0>=4294966272){break b}break a}if(!(d&98)){c=1;b=v[a>>2]+32>>6;if(b-512>>>0<4294966272){break a}v[a+56>>2]=b;v[a+60>>2]=b;v[a+52>>2]=b;v[a+48>>2]=b;v[a+44>>2]=b;v[a+40>>2]=b;v[a+36>>2]=b;v[a+32>>2]=b;v[a+28>>2]=b;v[a+24>>2]=b;v[a+20>>2]=b;v[a+16>>2]=b;v[a+12>>2]=b;v[a+8>>2]=b;v[a+4>>2]=b;v[a>>2]=b;break b}c=1;o=B(b,v[a+4>>2]);e=B(b,v[a+24>>2]);d=o+(e>>1)|0;g=v[a>>2];h=B(f,v[a+20>>2]);f=g+h|0;b=(d+f|0)+32>>6;v[a+48>>2]=b;d=(f-d|0)+32>>6;v[a+12>>2]=d;e=(o>>1)-e|0;f=(e+(g-h|0)|0)+32>>6;v[a+4>>2]=f;v[a>>2]=b;v[a+32>>2]=b;v[a+52>>2]=f;v[a+16>>2]=b;v[a+36>>2]=f;v[a+20>>2]=f;v[a+60>>2]=d;g=(g-(e+h|0)|0)+32>>6;v[a+8>>2]=g;v[a+56>>2]=g;v[a+40>>2]=g;v[a+24>>2]=g;v[a+44>>2]=d;v[a+28>>2]=d;if(b-512>>>0<4294966272|f-512>>>0<4294966272|(g-512>>>0<4294966272|d-512>>>0<4294966272)){break a}}c=0}return c}function va(a,b){var c=0,d=0,e=0,f=0,g=0;f=v[a+20>>2];d=v[a+16>>2];g=v[a+4>>2];c=v[b+4>>2];a=v[a+12>>2];v[a>>2]=v[b>>2];v[a+4>>2]=c;c=v[b+12>>2];v[a+8>>2]=v[b+8>>2];v[a+12>>2]=c;c=v[b+20>>2];e=g<<4;a=e+a|0;v[a>>2]=v[b+16>>2];v[a+4>>2]=c;c=v[b+28>>2];v[a+8>>2]=v[b+24>>2];v[a+12>>2]=c;c=v[b+36>>2];a=a+e|0;v[a>>2]=v[b+32>>2];v[a+4>>2]=c;c=v[b+44>>2];v[a+8>>2]=v[b+40>>2];v[a+12>>2]=c;c=v[b+52>>2];a=a+e|0;v[a>>2]=v[b+48>>2];v[a+4>>2]=c;c=v[b+60>>2];v[a+8>>2]=v[b+56>>2];v[a+12>>2]=c;c=v[b+68>>2];a=a+e|0;v[a>>2]=v[b+64>>2];v[a+4>>2]=c;c=v[b+76>>2];v[a+8>>2]=v[b+72>>2];v[a+12>>2]=c;c=v[b+84>>2];a=a+e|0;v[a>>2]=v[b+80>>2];v[a+4>>2]=c;c=v[b+92>>2];v[a+8>>2]=v[b+88>>2];v[a+12>>2]=c;c=v[b+100>>2];a=a+e|0;v[a>>2]=v[b+96>>2];v[a+4>>2]=c;c=v[b+108>>2];v[a+8>>2]=v[b+104>>2];v[a+12>>2]=c;c=v[b+116>>2];a=a+e|0;v[a>>2]=v[b+112>>2];v[a+4>>2]=c;c=v[b+124>>2];v[a+8>>2]=v[b+120>>2];v[a+12>>2]=c;c=v[b+132>>2];a=a+e|0;v[a>>2]=v[b+128>>2];v[a+4>>2]=c;c=v[b+140>>2];v[a+8>>2]=v[b+136>>2];v[a+12>>2]=c;c=v[b+148>>2];a=a+e|0;v[a>>2]=v[b+144>>2];v[a+4>>2]=c;c=v[b+156>>2];v[a+8>>2]=v[b+152>>2];v[a+12>>2]=c;c=v[b+164>>2];a=a+e|0;v[a>>2]=v[b+160>>2];v[a+4>>2]=c;c=v[b+172>>2];v[a+8>>2]=v[b+168>>2];v[a+12>>2]=c;c=v[b+180>>2];a=a+e|0;v[a>>2]=v[b+176>>2];v[a+4>>2]=c;c=v[b+188>>2];v[a+8>>2]=v[b+184>>2];v[a+12>>2]=c;c=v[b+196>>2];a=a+e|0;v[a>>2]=v[b+192>>2];v[a+4>>2]=c;c=v[b+204>>2];v[a+8>>2]=v[b+200>>2];v[a+12>>2]=c;c=v[b+212>>2];a=a+e|0;v[a>>2]=v[b+208>>2];v[a+4>>2]=c;c=v[b+220>>2];v[a+8>>2]=v[b+216>>2];v[a+12>>2]=c;c=v[b+228>>2];a=a+e|0;v[a>>2]=v[b+224>>2];v[a+4>>2]=c;c=v[b+236>>2];v[a+8>>2]=v[b+232>>2];v[a+12>>2]=c;c=a+e|0;a=v[b+244>>2];v[c>>2]=v[b+240>>2];v[c+4>>2]=a;a=v[b+252>>2];v[c+8>>2]=v[b+248>>2];v[c+12>>2]=a;a=v[b+260>>2];v[d>>2]=v[b+256>>2];v[d+4>>2]=a;a=v[b+268>>2];c=g<<3;d=c+d|0;v[d>>2]=v[b+264>>2];v[d+4>>2]=a;a=v[b+276>>2];d=c+d|0;v[d>>2]=v[b+272>>2];v[d+4>>2]=a;a=v[b+284>>2];d=c+d|0;v[d>>2]=v[b+280>>2];v[d+4>>2]=a;a=v[b+292>>2];d=c+d|0;v[d>>2]=v[b+288>>2];v[d+4>>2]=a;a=v[b+300>>2];d=c+d|0;v[d>>2]=v[b+296>>2];v[d+4>>2]=a;a=v[b+308>>2];d=c+d|0;v[d>>2]=v[b+304>>2];v[d+4>>2]=a;a=v[b+316>>2];d=c+d|0;v[d>>2]=v[b+312>>2];v[d+4>>2]=a;a=v[b+324>>2];v[f>>2]=v[b+320>>2];v[f+4>>2]=a;a=v[b+332>>2];d=c+f|0;v[d>>2]=v[b+328>>2];v[d+4>>2]=a;a=v[b+340>>2];d=c+d|0;v[d>>2]=v[b+336>>2];v[d+4>>2]=a;a=v[b+348>>2];d=c+d|0;v[d>>2]=v[b+344>>2];v[d+4>>2]=a;a=v[b+356>>2];d=c+d|0;v[d>>2]=v[b+352>>2];v[d+4>>2]=a;a=v[b+364>>2];d=c+d|0;v[d>>2]=v[b+360>>2];v[d+4>>2]=a;a=v[b+372>>2];d=c+d|0;v[d>>2]=v[b+368>>2];v[d+4>>2]=a;a=v[b+380>>2];d=c+d|0;v[d>>2]=v[b+376>>2];v[d+4>>2]=a}function Oa(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;k=v[b+8>>2];g=v[b+4>>2];a:{b:{c:{switch(c|0){case 0:case 5:break b;default:break c}}if(v[a+3384>>2]){break b}break a}e=a+1220|0;while(1){h=ra(e,d);if(d>>>0>14){break a}d=d+1|0;if(!h){continue}break}}d:{e:{f=v[a+1176>>2];f:{if(!f){break f}l=v[a+1212>>2];d=0;e=0;while(1){if(!v[(l+B(d,216)|0)+196>>2]){e=e+1|0;i=(e|0)==(g|0);e=i?0:e;j=i+j|0;d=d+1|0;if((f|0)!=(d|0)){continue}break f}break}if((d|0)!=(f|0)){break e}}g:{h:{i:{j:{switch(c-2|0){case 0:case 5:if(!v[a+3384>>2]){break i}break;default:break j}}if(h){break h}}ba(v[b>>2],128,B(B(g,k),384));break g}fa(v[b>>2],h,B(B(g,k),384))}b=v[a+1176>>2];v[a+1204>>2]=b;if(!b){break d}a=v[a+1212>>2];e=0;d=0;if(b-1>>>0>=7){c=b&-8;h=0;while(1){v[(a+B(d,216)|0)+8>>2]=1;v[(a+B(d|1,216)|0)+8>>2]=1;v[(a+B(d|2,216)|0)+8>>2]=1;v[(a+B(d|3,216)|0)+8>>2]=1;v[(a+B(d|4,216)|0)+8>>2]=1;v[(a+B(d|5,216)|0)+8>>2]=1;v[(a+B(d|6,216)|0)+8>>2]=1;v[(a+B(d|7,216)|0)+8>>2]=1;d=d+8|0;h=h+8|0;if((c|0)!=(h|0)){continue}break}}b=b&7;if(!b){break d}while(1){v[(a+B(d,216)|0)+8>>2]=1;d=d+1|0;e=e+1|0;if((b|0)!=(e|0)){continue}break}break d}f=v[a+1212>>2]+B(B(g,j),216)|0;if(e){d=e;while(1){d=d-1|0;i=f+B(d,216)|0;ua(i,b,j,d,c,h);v[i+196>>2]=1;v[a+1204>>2]=v[a+1204>>2]+1;if(d){continue}break}}d=e+1|0;if(g>>>0>d>>>0){while(1){e=f+B(d,216)|0;if(!v[e+196>>2]){ua(e,b,j,d,c,h);v[e+196>>2]=1;v[a+1204>>2]=v[a+1204>>2]+1}d=d+1|0;if((g|0)!=(d|0)){continue}break}}if(!(!j|!g)){i=0;f=j-1|0;l=B(B(f,g),216);m=B(g,-216);while(1){d=(l+v[a+1212>>2]|0)+B(i,216)|0;ua(d,b,f,i,c,h);v[d+196>>2]=1;v[a+1204>>2]=v[a+1204>>2]+1;e=f;if(e){while(1){d=d+m|0;e=e-1|0;ua(d,b,e,i,c,h);v[d+196>>2]=1;v[a+1204>>2]=v[a+1204>>2]+1;if(e){continue}break}}i=i+1|0;if((i|0)!=(g|0)){continue}break}}e=j+1|0;if(!g|k>>>0<=e>>>0){break d}while(1){j=v[a+1212>>2]+B(B(e,g),216)|0;d=0;while(1){f=j+B(d,216)|0;if(!v[f+196>>2]){ua(f,b,e,d,c,h);v[f+196>>2]=1;v[a+1204>>2]=v[a+1204>>2]+1}d=d+1|0;if((g|0)!=(d|0)){continue}break}e=e+1|0;if((k|0)!=(e|0)){continue}break}}}function Qa(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=v[a>>2];a:{if(!v[b+20>>2]){break a}v[b+20>>2]=0;if(v[b+24>>2]){break a}v[a+44>>2]=v[a+44>>2]-1}b:{if(!v[b+60>>2]){break b}v[b+60>>2]=0;if(v[b- -64>>2]){break b}v[a+44>>2]=v[a+44>>2]-1}c:{if(!v[b+100>>2]){break c}v[b+100>>2]=0;if(v[b+104>>2]){break c}v[a+44>>2]=v[a+44>>2]-1}d:{if(!v[b+140>>2]){break d}v[b+140>>2]=0;if(v[b+144>>2]){break d}v[a+44>>2]=v[a+44>>2]-1}e:{if(!v[b+180>>2]){break e}v[b+180>>2]=0;if(v[b+184>>2]){break e}v[a+44>>2]=v[a+44>>2]-1}f:{if(!v[b+220>>2]){break f}v[b+220>>2]=0;if(v[b+224>>2]){break f}v[a+44>>2]=v[a+44>>2]-1}g:{if(!v[b+260>>2]){break g}v[b+260>>2]=0;if(v[b+264>>2]){break g}v[a+44>>2]=v[a+44>>2]-1}h:{if(!v[b+300>>2]){break h}v[b+300>>2]=0;if(v[b+304>>2]){break h}v[a+44>>2]=v[a+44>>2]-1}i:{if(!v[b+340>>2]){break i}v[b+340>>2]=0;if(v[b+344>>2]){break i}v[a+44>>2]=v[a+44>>2]-1}j:{if(!v[b+380>>2]){break j}v[b+380>>2]=0;if(v[b+384>>2]){break j}v[a+44>>2]=v[a+44>>2]-1}k:{if(!v[b+420>>2]){break k}v[b+420>>2]=0;if(v[b+424>>2]){break k}v[a+44>>2]=v[a+44>>2]-1}l:{if(!v[b+460>>2]){break l}v[b+460>>2]=0;if(v[b+464>>2]){break l}v[a+44>>2]=v[a+44>>2]-1}m:{if(!v[b+500>>2]){break m}v[b+500>>2]=0;if(v[b+504>>2]){break m}v[a+44>>2]=v[a+44>>2]-1}n:{if(!v[b+540>>2]){break n}v[b+540>>2]=0;if(v[b+544>>2]){break n}v[a+44>>2]=v[a+44>>2]-1}o:{if(!v[b+580>>2]){break o}v[b+580>>2]=0;if(v[b+584>>2]){break o}v[a+44>>2]=v[a+44>>2]-1}p:{if(!v[b+620>>2]){break p}v[b+620>>2]=0;if(v[b+624>>2]){break p}v[a+44>>2]=v[a+44>>2]-1}q:{if(v[a+56>>2]){break q}h=v[a+28>>2];d=2147483647;while(1){while(1){c=B(f,40)+b|0;if(v[c+24>>2]){i=c;c=v[c+16>>2];g=(c|0)<(d|0);e=g?i:e;d=g?c:d}c=(f|0)!=(h|0);f=f+1|0;if(c){continue}if(!e){break q}f=v[a+16>>2];d=v[a+12>>2]+(f<<4)|0;v[d>>2]=v[e>>2];v[d+12>>2]=v[e+36>>2];v[d+4>>2]=v[e+28>>2];v[d+8>>2]=v[e+32>>2];v[a+16>>2]=f+1;f=0;v[e+24>>2]=0;c=v[e+20>>2];e=0;d=2147483647;if(c){continue}break}v[a+44>>2]=v[a+44>>2]-1;continue}}v[a+48>>2]=0;v[a+36>>2]=65535;v[a+40>>2]=0}function Pa(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,o=0,p=0,q=0;g=7;i=T-16|0;while(1){if(b>>>0>g>>>0){j=0-g|0;h=g;while(1){d=B(h,40)+a|0;m=v[d+24>>2];k=v[d+20>>2];n=v[d+12>>2];o=v[d+16>>2];l=v[d+8>>2];p=v[d>>2];q=v[d+4>>2];v[i+8>>2]=v[d+36>>2];e=v[d+32>>2];v[i>>2]=v[d+28>>2];v[i+4>>2]=e;d=h;a:{if(g>>>0>d>>>0){break a}if(!k){if(!m){break a}while(1){e=B(d,40)+a|0;c=e+B(j,40)|0;if(v[c+20>>2]|v[c+24>>2]){break a}d=d-g|0;c=B(d,40)+a|0;f=v[c+4>>2];v[e>>2]=v[c>>2];v[e+4>>2]=f;f=v[c+36>>2];v[e+32>>2]=v[c+32>>2];v[e+36>>2]=f;f=v[c+28>>2];v[e+24>>2]=v[c+24>>2];v[e+28>>2]=f;f=v[c+20>>2];v[e+16>>2]=v[c+16>>2];v[e+20>>2]=f;f=v[c+12>>2];v[e+8>>2]=v[c+8>>2];v[e+12>>2]=f;if(d>>>0>=g>>>0){continue}break}break a}if(k-1>>>0<=1){while(1){e=B(d,40)+a|0;c=e+B(j,40)|0;if(v[c+20>>2]-1>>>0<=1&v[c+8>>2]>=(l|0)){break a}d=d-g|0;c=B(d,40)+a|0;f=v[c+4>>2];v[e>>2]=v[c>>2];v[e+4>>2]=f;f=v[c+36>>2];v[e+32>>2]=v[c+32>>2];v[e+36>>2]=f;f=v[c+28>>2];v[e+24>>2]=v[c+24>>2];v[e+28>>2]=f;f=v[c+20>>2];v[e+16>>2]=v[c+16>>2];v[e+20>>2]=f;f=v[c+12>>2];v[e+8>>2]=v[c+8>>2];v[e+12>>2]=f;if(d>>>0>=g>>>0){continue}break a}}while(1){e=B(d,40)+a|0;c=e+B(j,40)|0;f=v[c+20>>2];if(f-1>>>0<2|v[c+8>>2]<=(l|0)?f:0){break a}d=d-g|0;c=B(d,40)+a|0;f=v[c+4>>2];v[e>>2]=v[c>>2];v[e+4>>2]=f;f=v[c+36>>2];v[e+32>>2]=v[c+32>>2];v[e+36>>2]=f;f=v[c+28>>2];v[e+24>>2]=v[c+24>>2];v[e+28>>2]=f;f=v[c+20>>2];v[e+16>>2]=v[c+16>>2];v[e+20>>2]=f;f=v[c+12>>2];v[e+8>>2]=v[c+8>>2];v[e+12>>2]=f;if(d>>>0>=g>>>0){continue}break}}d=B(d,40)+a|0;v[d+24>>2]=m;v[d+20>>2]=k;v[d+12>>2]=n;v[d+16>>2]=o;v[d+8>>2]=l;v[d>>2]=p;v[d+4>>2]=q;e=v[i+4>>2];v[d+28>>2]=v[i>>2];v[d+32>>2]=e;v[d+36>>2]=v[i+8>>2];h=h+1|0;if((h|0)!=(b|0)){continue}break}}h=g>>>0>1;g=g>>>1|0;if(h){continue}break}}function Ja(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,u=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0;p=T-1792|0;T=p;k=g+5|0;a:{if(!(c+k>>>0>e>>>0|(d+h|0)+5>>>0>f>>>0|(c|d)<0)){j=d;break a}l=a;a=p+1344|0;ja(l,a,c,d,e,f,k,h+5|0,k);e=k;c=0}b:{c:{if(h>>>0>=4){if(!k){s=21;e=1073741822;break c}E=e<<1;z=0-e|0;s=z<<1;F=((e<<2)-g|0)-5|0;a=((B(e,j)+c|0)+a|0)+e|0;c=a+B(e,5)|0;A=h>>>2|0;m=k<<2;d=m+p|0;o=k<<3;r=-5-g<<2;q=B(k,3)<<2;while(1){f=k;while(1){u=w[a+E|0];n=w[c+e|0];x=w[c+s|0];j=n+x|0;C=w[c|0];y=w[c+z|0];v[d+o>>2]=(u+((w[c+E|0]-j|0)-(j<<2)|0)|0)+B(C+y|0,20);D=w[a+e|0];l=x+y|0;j=u+C|0;v[d+m>>2]=(D+((n+(l<<4)|0)-j|0)|0)+(l-j<<2);j=w[a|0];n=x+u|0;l=y+D|0;v[d>>2]=(j+((C+(n<<4)|0)-l|0)|0)+(n-l<<2);l=u+D|0;j=j+x|0;v[d+r>>2]=(w[a+z|0]+((y+(l<<4)|0)-j|0)|0)+(l-j<<2);a=a+1|0;d=d+4|0;c=c+1|0;f=f-1|0;if(f){continue}break}c=c+F|0;a=a+F|0;d=d+q|0;A=A-1|0;if(A){continue}break}}if(!h|g>>>0<4){break b}s=16-g|0;e=g>>>2|0}r=((i<<2)+p|0)+8|0;c=p+20|0;while(1){a=v[c-4>>2];d=v[c-8>>2];g=v[c-12>>2];f=v[c-16>>2];n=v[c-20>>2];l=e;while(1){o=v[c>>2];k=d+g|0;i=a+f|0;m=r;t[b|0]=(w[((o+((((k<<4)+n|0)-i|0)+(k-i<<2)|0)|0)+512>>10)+7184|0]+w[(v[m>>2]+16>>5)+7184|0]|0)+1>>>1;k=c;q=v[c+4>>2];i=a+d|0;j=(i<<4)+f|0;f=g+o|0;t[b+1|0]=(w[((q+((j-f|0)+(i-f<<2)|0)|0)+512>>10)+7184|0]+w[(v[m+4>>2]+16>>5)+7184|0]|0)+1>>>1;j=v[c+8>>2];i=g;g=a+o|0;f=d+q|0;t[b+2|0]=(w[((j+(((i+(g<<4)|0)-f|0)+(g-f<<2)|0)|0)+512>>10)+7184|0]+w[(v[m+8>>2]+16>>5)+7184|0]|0)+1>>>1;i=v[c+12>>2];f=o+q|0;g=(f<<4)+d|0;d=a+j|0;t[b+3|0]=(w[((i+((g-d|0)+(f-d<<2)|0)|0)+512>>10)+7184|0]+w[(v[m+12>>2]+16>>5)+7184|0]|0)+1>>>1;b=b+4|0;r=m+16|0;c=c+16|0;n=a;f=o;g=q;d=j;a=i;l=l-1|0;if(l){continue}break}b=b+s|0;r=m+36|0;c=k+36|0;h=h-1|0;if(h){continue}break}}T=p+1792|0}function xa(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,u=0,v=0,x=0;s=T-448|0;T=s;j=g+5|0;a:{if(!(c+j>>>0>e>>>0|(d+h|0)+5>>>0>f>>>0|(c|d)<0)){j=e;l=d;break a}ja(a,s,c,d,e,f,j,h+5|0,j);a=s;c=0}b:{if(!h){break b}v=(B(j,l)+c|0)+a|0;x=16-g|0;c:{if(g>>>0>=4){r=j-g|0;u=g>>>2|0;c=(v+B(i>>>1&1|2,j)|0)+5|0;m=h;while(1){a=w[c-1|0];d=w[c-2|0];f=w[c-3|0];l=w[c-4|0];e=w[c-5|0];n=u;while(1){p=e;e=d+f|0;o=a+l|0;e=((p+(e<<4)|0)-o|0)+(e-o<<2)|0;o=w[c|0];t[b|0]=w[((e+o|0)+16>>5)+7184|0];q=w[c+1|0];e=a+d|0;p=(e<<4)+l|0;l=f+o|0;t[b+1|0]=w[(((q+(p-l|0)|0)+(e-l<<2)|0)+16>>5)+7184|0];p=w[c+2|0];e=a+o|0;l=(e<<4)+f|0;f=d+q|0;t[b+2|0]=w[(((p+(l-f|0)|0)+(e-f<<2)|0)+16>>5)+7184|0];k=w[c+3|0];f=d;d=o+q|0;e=a+p|0;t[b+3|0]=w[(((k+((f+(d<<4)|0)-e|0)|0)+(d-e<<2)|0)+16>>5)+7184|0];b=b+4|0;c=c+4|0;e=a;l=o;f=q;d=p;a=k;n=n-1|0;if(n){continue}break}b=b+x|0;c=c+r|0;m=m-1|0;if(m){continue}break}break c}b=((B(h-1|0,x)-g|0)+b|0)+16|0}if(!g|h>>>0<4){break b}p=64-g|0;l=j<<1;o=(j<<2)-g|0;q=0-j|0;u=q<<1;e=h>>>2|0;d=((j+v|0)+(i&1)|0)+2|0;a=d+B(j,5)|0;c=b-(h<<4)|0;while(1){b=g;while(1){n=w[a+j|0];f=w[a+u|0];h=n+f|0;k=(w[a+l|0]-h|0)-(h<<2)|0;h=w[d+l|0];m=w[a|0];i=w[a+q|0];t[c+48|0]=(w[(((k+h|0)+B(m+i|0,20)|0)+16>>5)+7184|0]+w[c+48|0]|0)+1>>>1;k=f+i|0;r=n+(k<<4)|0;n=h+m|0;k=(r-n|0)+(k-n<<2)|0;n=w[d+j|0];t[c+32|0]=(w[((k+n|0)+16>>5)+7184|0]+w[c+32|0]|0)+1>>>1;k=f+h|0;r=m+(k<<4)|0;m=i+n|0;k=(r-m|0)+(k-m<<2)|0;m=w[d|0];t[c+16|0]=(w[((k+m|0)+16>>5)+7184|0]+w[c+16|0]|0)+1>>>1;h=h+n|0;f=f+m|0;t[c|0]=(w[((w[d+q|0]+(((i+(h<<4)|0)-f|0)+(h-f<<2)|0)|0)+16>>5)+7184|0]+w[c|0]|0)+1>>>1;d=d+1|0;c=c+1|0;a=a+1|0;b=b-1|0;if(b){continue}break}c=c+p|0;a=a+o|0;d=d+o|0;e=e-1|0;if(e){continue}break}}T=s+448|0}function Ka(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,u=0,x=0,y=0;r=T-1792|0;T=r;j=g+5|0;a:{b:{if((c|d)<0|c+j>>>0>e>>>0){break b}n=h+5|0;if(n+d>>>0>f>>>0){break b}j=e;l=d;break a}k=a;a=r+1344|0;n=h+5|0;ja(k,a,c,d,e,f,j,n,j);c=0}if(!(!n|g>>>0<4)){u=j-g|0;x=g>>>2|0;c=((B(j,l)+c|0)+a|0)+5|0;a=r;while(1){j=w[c-1|0];d=w[c-2|0];f=w[c-3|0];l=w[c-4|0];k=w[c-5|0];q=x;while(1){e=d+f|0;o=j+l|0;k=(((e<<4)+k|0)-o|0)+(e-o<<2)|0;e=w[c|0];v[a>>2]=k+e;o=w[c+1|0];m=l;l=d+j|0;k=e+f|0;v[a+4>>2]=(o+((m+(l<<4)|0)-k|0)|0)+(l-k<<2);m=w[c+2|0];k=f;f=e+j|0;l=d+o|0;v[a+8>>2]=(m+((k+(f<<4)|0)-l|0)|0)+(f-l<<2);s=w[c+3|0];l=d;d=e+o|0;f=j+m|0;v[a+12>>2]=(s+((l+(d<<4)|0)-f|0)|0)+(d-f<<2);a=a+16|0;c=c+4|0;k=j;l=e;f=o;d=m;j=s;q=q-1|0;if(q){continue}break}c=c+u|0;n=n-1|0;if(n){continue}break}}if(!(!g|h>>>0<4)){x=64-g|0;c=g<<2;a=c+r|0;j=a+B(g,20)|0;d=(B(i+2|0,g)<<2)+a|0;o=h>>>2|0;s=0-g|0;u=s<<3;e=g<<3;f=B(g,3)<<2;while(1){n=g;while(1){m=v[c+j>>2];h=v[j+u>>2];i=m+h|0;p=(v[e+j>>2]-i|0)-(i<<2)|0;i=v[a+e>>2];k=v[j>>2];q=s<<2;l=v[q+j>>2];t[b+48|0]=(w[(((p+i|0)+B(k+l|0,20)|0)+512>>10)+7184|0]+w[(v[d+e>>2]+16>>5)+7184|0]|0)+1>>>1;p=h+l|0;y=m+(p<<4)|0;m=i+k|0;p=(y-m|0)+(p-m<<2)|0;m=v[a+c>>2];t[b+32|0]=(w[((p+m|0)+512>>10)+7184|0]+w[(v[c+d>>2]+16>>5)+7184|0]|0)+1>>>1;p=h+i|0;y=k+(p<<4)|0;k=l+m|0;p=(y-k|0)+(p-k<<2)|0;k=v[a>>2];t[b+16|0]=(w[((p+k|0)+512>>10)+7184|0]+w[(v[d>>2]+16>>5)+7184|0]|0)+1>>>1;i=i+m|0;h=h+k|0;t[b|0]=(w[((v[a+q>>2]+(((l+(i<<4)|0)-h|0)+(i-h<<2)|0)|0)+512>>10)+7184|0]+w[(v[d+q>>2]+16>>5)+7184|0]|0)+1>>>1;d=d+4|0;a=a+4|0;b=b+1|0;j=j+4|0;n=n-1|0;if(n){continue}break}b=b+x|0;d=d+f|0;j=f+j|0;a=a+f|0;o=o-1|0;if(o){continue}break}}T=r+1792|0}function wa(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,p=0,q=0,r=0,s=0;n=v[c+8>>2];q=v[c+4>>2];a:{if(b>>>0>=4){o=(q>>>2|0)+2|0;c=4;while(1){e=a-1|0;f=w[e|0];j=w[a|0];m=f-j|0;b=m>>31;m=(b^m)-b|0;b:{if(m>>>0>=q>>>0){break b}p=a-2|0;l=w[p|0];g=l-f|0;b=g>>31;if((b^g)-b>>>0>=n>>>0){break b}g=w[a+1|0];h=g-j|0;b=h>>31;if((b^h)-b>>>0>=n>>>0){break b}c:{d:{if(o>>>0>m>>>0){h=w[a+2|0];m=a-3|0;b=w[m|0];k=b-f|0;i=k>>31;e:{if((i^k)-i>>>0>=n>>>0){b=((f+g|0)+(l<<1)|0)+2>>>2|0;break e}k=e;e=l+(f+j|0)|0;t[k|0]=(b+(g+(e<<1)|0)|0)+4>>>3;t[p|0]=(b+e|0)+2>>>2;b=((e+B(b,3)|0)+(w[a-4|0]<<1)|0)+4>>>3|0;e=m}t[e|0]=b;e=h-j|0;b=e>>31;if((b^e)-b>>>0>=n>>>0){break d}b=j+(f+g|0)|0;t[a+1|0]=(b+h|0)+2>>>2;t[a|0]=(h+(l+(b<<1)|0)|0)+4>>>3;e=((b+B(h,3)|0)+(w[a+3|0]<<1)|0)+4>>>3|0;b=a+2|0;break c}t[e|0]=((f+g|0)+(l<<1)|0)+2>>>2}e=((j+l|0)+(g<<1)|0)+2>>>2|0;b=a}t[b|0]=e}a=a+d|0;c=c-1|0;if(c){continue}break}break a}e=w[(v[c>>2]+b|0)-1|0];m=e+1|0;l=0-e|0;c=4;while(1){p=a-1|0;f=w[p|0];j=w[a|0];g=f-j|0;b=g>>31;f:{if((b^g)-b>>>0>=q>>>0){break f}k=a-2|0;g=w[k|0];h=g-f|0;b=h>>31;if((b^h)-b>>>0>=n>>>0){break f}h=w[a+1|0];i=h-j|0;b=i>>31;if((b^i)-b>>>0>=n>>>0){break f}i=w[a+2|0];b=e;r=w[a-3|0];s=r-f|0;o=s>>31;if((o^s)-o>>>0>>0){b=(((f+j|0)+1>>>1|0)-(g<<1)|0)+r>>1;t[k|0]=g+((b|0)<(l|0)?l:(b|0)<(e|0)?b:e);b=m}k=i-j|0;o=k>>31;if((o^k)-o>>>0>>0){i=i+(((f+j|0)+1>>>1|0)-(h<<1)|0)>>1;t[a+1|0]=h+((i|0)<(l|0)?l:(e|0)>(i|0)?i:e);b=b+1|0}k=f;i=0-b|0;f=((g-h|0)+(j-f<<2)|0)+4>>3;b=(f|0)<(i|0)?i:(b|0)>(f|0)?f:b;t[p|0]=w[(k+b|0)+7184|0];t[a|0]=w[(j-b|0)+7184|0]}a=a+d|0;c=c-1|0;if(c){continue}break}}}function fa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if(c>>>0>=512){S(a|0,b|0,c|0)|0;return a|0}e=a+c|0;a:{if(!((a^b)&3)){b:{if(!(a&3)){c=a;break b}if(!c){c=a;break b}c=a;while(1){t[c|0]=w[b|0];b=b+1|0;c=c+1|0;if(!(c&3)){break b}if(c>>>0>>0){continue}break}}d=e&-4;c:{if(d>>>0<64){break c}f=d+-64|0;if(f>>>0>>0){break c}while(1){v[c>>2]=v[b>>2];v[c+4>>2]=v[b+4>>2];v[c+8>>2]=v[b+8>>2];v[c+12>>2]=v[b+12>>2];v[c+16>>2]=v[b+16>>2];v[c+20>>2]=v[b+20>>2];v[c+24>>2]=v[b+24>>2];v[c+28>>2]=v[b+28>>2];v[c+32>>2]=v[b+32>>2];v[c+36>>2]=v[b+36>>2];v[c+40>>2]=v[b+40>>2];v[c+44>>2]=v[b+44>>2];v[c+48>>2]=v[b+48>>2];v[c+52>>2]=v[b+52>>2];v[c+56>>2]=v[b+56>>2];v[c+60>>2]=v[b+60>>2];b=b- -64|0;c=c- -64|0;if(f>>>0>=c>>>0){continue}break}}if(c>>>0>=d>>>0){break a}while(1){v[c>>2]=v[b>>2];b=b+4|0;c=c+4|0;if(d>>>0>c>>>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){t[c|0]=w[b|0];t[c+1|0]=w[b+1|0];t[c+2|0]=w[b+2|0];t[c+3|0]=w[b+3|0];b=b+4|0;c=c+4|0;if(d>>>0>=c>>>0){continue}break}}if(c>>>0>>0){while(1){t[c|0]=w[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}return a|0}function Ma(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,u=0,v=0,x=0;n=T-448|0;T=n;a:{if(!(c+g>>>0>e>>>0|(d+h|0)+5>>>0>f>>>0|(c|d)<0)){l=d;break a}ja(a,n,c,d,e,f,g,h+5|0,g);a=n;e=g;c=0}if(!(!g|h>>>0<4)){u=64-g|0;q=e<<1;r=(e<<2)-g|0;o=0-e|0;v=o<<1;a=((B(e,l)+c|0)+a|0)+e|0;d=a+B(i+2|0,e)|0;c=B(e,5)+a|0;s=h>>>2|0;while(1){f=g;while(1){j=w[c+e|0];h=w[c+v|0];i=j+h|0;m=(w[c+q|0]-i|0)-(i<<2)|0;i=w[a+q|0];k=w[c|0];l=w[c+o|0];t[b+48|0]=(w[(((m+i|0)+B(k+l|0,20)|0)+16>>5)+7184|0]+w[d+q|0]|0)+1>>>1;m=w[a+e|0];p=h+l|0;x=j+(p<<4)|0;j=i+k|0;t[b+32|0]=(w[((m+((x-j|0)+(p-j<<2)|0)|0)+16>>5)+7184|0]+w[d+e|0]|0)+1>>>1;j=h+i|0;p=k+(j<<4)|0;k=l+m|0;j=(p-k|0)+(j-k<<2)|0;k=w[a|0];t[b+16|0]=(w[((j+k|0)+16>>5)+7184|0]+w[d|0]|0)+1>>>1;i=i+m|0;h=h+k|0;t[b|0]=(w[((w[a+o|0]+(((l+(i<<4)|0)-h|0)+(i-h<<2)|0)|0)+16>>5)+7184|0]+w[d+o|0]|0)+1>>>1;d=d+1|0;a=a+1|0;b=b+1|0;c=c+1|0;f=f-1|0;if(f){continue}break}b=b+u|0;d=d+r|0;c=c+r|0;a=a+r|0;s=s-1|0;if(s){continue}break}}T=n+448|0}function db(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;e=v[a+16>>2];if(e){h=v[e+52>>2];g=h<<6;h=h<<4;j=v[e+56>>2]<<4}e=a+1220|0;f=v[e+20>>2];if(f>>>0>2]){v[e+20>>2]=f+1;e=v[e+12>>2]+(f<<4)|0}else{e=0}a:{if(!e){break a}v[b>>2]=v[e+4>>2];v[c>>2]=v[e+12>>2];v[d>>2]=v[e+8>>2];c=v[e>>2];if(!c){break a}b=v[a+3388>>2];d=B(g,j);if(d>>>0>y[a+3392>>2]){if(b){ca(b)}v[a+3392>>2]=d;b=ha(d);v[a+3388>>2]=b}if((j|0)>0){d=B(j,h)+c|0;f=(h|0)/2|0;e=d+((B(f,j)|0)/2|0)|0;n=0-f|0;while(1){f=B(w[c|0],298)-4768|0;l=w[d|0]-128|0;m=w[e|0]-128|0;g=(f+B(l,-100)|0)+B(m,-208)|0;o=(g|0)<-128?0:(g|0)>65407?255:g+128>>>8|0;g=f+B(l,516)|0;f=f+B(m,409)|0;v[b>>2]=(o+((g|0)<-128?16711680:(g|0)>65407?16776960:g+16711808&16776960)<<8)+((f|0)<-128?0:(f|0)>65407?255:f+128>>8);i=i+1|0;f=(i^-1)&1;d=f+d|0;e=e+f|0;if((h|0)<=(i|0)){k=k+1|0;f=n&0-(k&1);d=f+d|0;i=0;e=e+f|0}c=c+1|0;b=b+4|0;if((j|0)>(k|0)){continue}break}}i=v[a+3388>>2]}return i|0}function Ua(a){a=a|0;var b=0,c=0,d=0;while(1){b=(c<<2)+a|0;d=v[b+20>>2];if(d){ca(v[d+40>>2]);v[v[b+20>>2]+40>>2]=0;ca(v[v[b+20>>2]+84>>2]);v[v[b+20>>2]+84>>2]=0;ca(v[b+20>>2]);v[b+20>>2]=0}c=c+1|0;if((c|0)!=32){continue}break}c=0;while(1){b=(c<<2)+a|0;d=v[b+148>>2];if(d){ca(v[d+20>>2]);v[v[b+148>>2]+20>>2]=0;ca(v[v[b+148>>2]+24>>2]);v[v[b+148>>2]+24>>2]=0;ca(v[v[b+148>>2]+28>>2]);v[v[b+148>>2]+28>>2]=0;ca(v[v[b+148>>2]+44>>2]);v[v[b+148>>2]+44>>2]=0;ca(v[b+148>>2]);v[b+148>>2]=0}c=c+1|0;if((c|0)!=256){continue}break}ca(v[a+3376>>2]);v[a+3376>>2]=0;ca(v[a+1212>>2]);v[a+1212>>2]=0;ca(v[a+1172>>2]);v[a+1172>>2]=0;b=v[a+3388>>2];if(b){ca(b);v[a+3388>>2]=0}b=0;d=0;c=a+1220|0;a=v[c>>2];a:{if(!a){break a}if(v[c+28>>2]==-1){b=a;break a}b=a;while(1){a=B(d,40);ca(v[(a+b|0)+4>>2]);b=v[c>>2];v[(a+b|0)+4>>2]=0;d=d+1|0;if(d>>>0>2]+1>>>0){continue}break}}ca(b);v[c>>2]=0;ca(v[c+4>>2]);v[c+4>>2]=0;ca(v[c+12>>2]);v[c+12>>2]=0} function La(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;m=T-448|0;T=m;j=g+5|0;a:{if(!((c|0)<0|d+h>>>0>f>>>0|((d|0)<0|c+j>>>0>e>>>0))){j=e;k=d;break a}ja(a,m,c,d,e,f,j,h,j);a=m;c=0}if(!(!h|g>>>0<4)){p=16-g|0;q=j-g|0;r=g>>>2|0;d=((B(j,k)+c|0)+a|0)+5|0;while(1){c=w[d-1|0];j=w[d-2|0];a=w[d-3|0];k=w[d-4|0];g=w[d-5|0];n=r;while(1){e=a+j|0;f=c+k|0;f=(((e<<4)+g|0)-f|0)+(e-f<<2)|0;e=w[d|0];t[b|0]=(w[((f+e|0)+16>>5)+7184|0]+(i?j:a)|0)+1>>>1;f=w[d+1|0];g=c+j|0;l=(g<<4)+k|0;k=a+e|0;t[b+1|0]=(w[(((f+(l-k|0)|0)+(g-k<<2)|0)+16>>5)+7184|0]+(i?c:j)|0)+1>>>1;l=w[d+2|0];k=a;a=c+e|0;g=f+j|0;t[b+2|0]=(w[(((l+((k+(a<<4)|0)-g|0)|0)+(a-g<<2)|0)+16>>5)+7184|0]+(i?e:c)|0)+1>>>1;o=w[d+3|0];a=e+f|0;g=c+l|0;t[b+3|0]=(w[(((o+(((a<<4)+j|0)-g|0)|0)+(a-g<<2)|0)+16>>5)+7184|0]+(i?f:e)|0)+1>>>1;b=b+4|0;d=d+4|0;g=c;k=e;a=f;j=l;c=o;n=n-1|0;if(n){continue}break}b=b+p|0;d=d+q|0;h=h-1|0;if(h){continue}break}}T=m+448|0}function la(a,b,c){var d=0,e=0,f=0,g=0;d=v[b>>2];if((d|0)!=16777215){e=v[b+4>>2];g=a;a=c>>>0<16;f=(a?c:c&3)<<2;c=a?16:8;a=(g+B(v[f+6608>>2],c)|0)+v[f+6544>>2]|0;t[a|0]=w[(d+w[a|0]|0)+7184|0];d=v[b+8>>2];t[a+1|0]=w[(e+w[a+1|0]|0)+7184|0];e=v[b+12>>2];t[a+2|0]=w[(d+w[a+2|0]|0)+7184|0];t[a+3|0]=w[(e+w[a+3|0]|0)+7184|0];d=v[b+20>>2];a=a+c|0;t[a|0]=w[(v[b+16>>2]+w[a|0]|0)+7184|0];e=v[b+24>>2];t[a+1|0]=w[(d+w[a+1|0]|0)+7184|0];d=v[b+28>>2];t[a+2|0]=w[(e+w[a+2|0]|0)+7184|0];t[a+3|0]=w[(d+w[a+3|0]|0)+7184|0];d=v[b+36>>2];a=a+c|0;t[a|0]=w[(v[b+32>>2]+w[a|0]|0)+7184|0];e=v[b+40>>2];t[a+1|0]=w[(d+w[a+1|0]|0)+7184|0];d=v[b+44>>2];t[a+2|0]=w[(e+w[a+2|0]|0)+7184|0];t[a+3|0]=w[(d+w[a+3|0]|0)+7184|0];d=v[b+52>>2];a=a+c|0;t[a|0]=w[(v[b+48>>2]+w[a|0]|0)+7184|0];c=v[b+56>>2];t[a+1|0]=w[(d+w[a+1|0]|0)+7184|0];b=v[b+60>>2];t[a+2|0]=w[(c+w[a+2|0]|0)+7184|0];t[a+3|0]=w[(b+w[a+3|0]|0)+7184|0]}}function Ya(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;e=T-32|0;T=e;f=v[a+28>>2];v[e+16>>2]=f;d=v[a+20>>2];v[e+28>>2]=c;v[e+24>>2]=b;b=d-f|0;v[e+20>>2]=b;f=b+c|0;j=2;a:{b:{b=e+16|0;d=O(v[a+60>>2],b|0,2,e+12|0)|0;if(d){v[2535]=d;d=-1}else{d=0}c:{if(!d){while(1){d=v[e+12>>2];if((d|0)==(f|0)){break c}if((d|0)<0){break b}g=v[b+4>>2];h=g>>>0>>0;i=(h<<3)+b|0;g=d-(h?g:0)|0;v[i>>2]=g+v[i>>2];i=(h?12:4)+b|0;v[i>>2]=v[i>>2]-g;f=f-d|0;b=h?b+8|0:b;j=j-h|0;d=O(v[a+60>>2],b|0,j|0,e+12|0)|0;if(d){v[2535]=d;d=-1}else{d=0}if(!d){continue}break}}if((f|0)!=-1){break b}}b=v[a+44>>2];v[a+28>>2]=b;v[a+20>>2]=b;v[a+16>>2]=b+v[a+48>>2];a=c;break a}v[a+28>>2]=0;v[a+16>>2]=0;v[a+20>>2]=0;v[a>>2]=v[a>>2]|32;a=0;if((j|0)==2){break a}a=c-v[b+4>>2]|0}T=e+32|0;return a|0}function Ea(a,b){var c=0,d=0,e=0,f=0;d=_(a,b);a:{if(d){break a}d=1;c=v[b>>2]+1|0;v[b>>2]=c;if(c>>>0>32){break a}c=$(a,4);if((c|0)==-1){break a}v[b+4>>2]=c;c=$(a,4);if((c|0)==-1){break a}v[b+8>>2]=c;if(v[b>>2]){while(1){c=(f<<2)+b|0;d=_(a,c+12|0);if(d){break a}d=1;e=v[c+12>>2];if((e|0)==-1){break a}d=e+1|0;v[c+12>>2]=d;v[c+12>>2]=d<>2]+6;d=_(a,c+140|0);if(d){break a}d=1;e=v[c+140>>2];if((e|0)==-1){break a}e=e+1|0;v[c+140>>2]=e;v[c+140>>2]=e<>2]+4;e=$(a,1);if((e|0)==-1){break a}v[c+268>>2]=(e|0)==1;f=f+1|0;if(f>>>0>2]){continue}break}}c=$(a,5);if((c|0)==-1){break a}v[b+396>>2]=c+1;c=$(a,5);if((c|0)==-1){break a}v[b+400>>2]=c+1;c=$(a,5);if((c|0)==-1){break a}v[b+404>>2]=c+1;a=$(a,5);if((a|0)==-1){break a}v[b+408>>2]=a;d=0}return d}function ka(a,b,c){var d=0,e=0,f=0;b=b<<3;d=b+8272|0;f=v[d>>2];d=w[d+4|0];b=b+8080|0;e=w[b+4|0];a:{b:{if(v[b>>2]==4){b=u[(e<<1)+c>>1];if((f|0)==4){return(u[(d<<1)+c>>1]+b|0)+1>>1}c=v[a+204>>2];if(c){c=v[a+4>>2]==v[c+4>>2]}else{c=0}if(!c){break b}break a}if((f|0)==4){b=u[(d<<1)+c>>1];c=v[a+200>>2];if(c){c=v[a+4>>2]==v[c+4>>2]}else{c=0}if(!c){break b}return(u[(v[a+200>>2]+(e<<1)|0)+28>>1]+b|0)+1>>1}c:{b=v[a+200>>2];if(b){b=v[a+4>>2]==v[b+4>>2]}else{b=0}if(!b){b=v[a+204>>2];if(b){b=v[a+4>>2]==v[b+4>>2]}else{b=0}if(b){break c}return 0}b=u[(v[a+200>>2]+(e<<1)|0)+28>>1];c=v[a+204>>2];if(c){c=v[a+4>>2]==v[c+4>>2]}else{c=0}if(!c){break b}break a}b=u[(v[a+204>>2]+(d<<1)|0)+28>>1]}return b}return(u[(v[a+204>>2]+(d<<1)|0)+28>>1]+b|0)+1>>1}function za(a,b,c){a:{switch(b-9|0){case 0:b=v[c>>2];v[c>>2]=b+4;v[a>>2]=v[b>>2];return;case 6:b=v[c>>2];v[c>>2]=b+4;b=u[b>>1];v[a>>2]=b;v[a+4>>2]=b>>31;return;case 7:b=v[c>>2];v[c>>2]=b+4;v[a>>2]=x[b>>1];v[a+4>>2]=0;return;case 8:b=v[c>>2];v[c>>2]=b+4;b=t[b|0];v[a>>2]=b;v[a+4>>2]=b>>31;return;case 9:b=v[c>>2];v[c>>2]=b+4;v[a>>2]=w[b|0];v[a+4>>2]=0;return;case 16:b=v[c>>2]+7&-8;v[c>>2]=b+8;A[a>>3]=A[b>>3];return;case 17:V[0](a,c);default:return;case 1:case 4:case 14:b=v[c>>2];v[c>>2]=b+4;b=v[b>>2];v[a>>2]=b;v[a+4>>2]=b>>31;return;case 2:case 5:case 11:case 15:b=v[c>>2];v[c>>2]=b+4;v[a>>2]=v[b>>2];v[a+4>>2]=0;return;case 3:case 10:case 12:case 13:break a}}b=v[c>>2]+7&-8;v[c>>2]=b+8;c=v[b+4>>2];v[a>>2]=v[b>>2];v[a+4>>2]=c}function ba(a,b,c){var d=0,e=0,f=0;a:{if(!c){break a}t[a|0]=b;e=a+c|0;t[e-1|0]=b;if(c>>>0<3){break a}t[a+2|0]=b;t[a+1|0]=b;t[e-3|0]=b;t[e-2|0]=b;if(c>>>0<7){break a}t[a+3|0]=b;t[e-4|0]=b;if(c>>>0<9){break a}e=0-a&3;f=e+a|0;d=B(b&255,16843009);v[f>>2]=d;b=c-e&-4;c=b+f|0;v[c-4>>2]=d;if(b>>>0<9){break a}v[f+8>>2]=d;v[f+4>>2]=d;v[c-8>>2]=d;v[c-12>>2]=d;if(b>>>0<25){break a}v[f+24>>2]=d;v[f+20>>2]=d;v[f+16>>2]=d;v[f+12>>2]=d;v[c-16>>2]=d;v[c-20>>2]=d;v[c-24>>2]=d;v[c-28>>2]=d;c=b;b=f&4|24;c=c-b|0;if(c>>>0<32){break a}d=eb(d,0,1,1);e=U;b=b+f|0;while(1){v[b+24>>2]=d;v[b+28>>2]=e;v[b+16>>2]=d;v[b+20>>2]=e;v[b+8>>2]=d;v[b+12>>2]=e;v[b>>2]=d;v[b+4>>2]=e;b=b+32|0;c=c-32|0;if(c>>>0>31){continue}break}}return a}function _(a,b){var c=0,d=0,e=0;c=na(a);a:{b:{c:{if((c|0)<0){ia(a,1);a=0;break c}if(c>>>0>=1073741824){if((ia(a,3)|0)==-1){return 1}a=(c>>>29&1)+1|0;break c}if(c>>>0>=536870912){if((ia(a,5)|0)==-1){return 1}a=(c>>>27&3)+3|0;break c}if(c>>>0>=268435456){if((ia(a,7)|0)==-1){return 1}a=(c>>>25&7)+7|0;break c}d=134217728;d:{if(c&134217728){break d}while(1){e=e+1|0;if(d>>>0<2){break d}d=d>>>1|0;if(!(c&d)){continue}break}}d=e+4|0;if((d|0)==32){v[b>>2]=0;ia(a,32);e=1;if(($(a,1)|0)!=1){break a}d=-1;c=na(a);if((ia(a,32)|0)==-1){break a}e:{switch(c|0){case 1:break e;case 0:break b;default:break a}}c=1;break b}ia(a,e+5|0);a=$(a,d);if((a|0)==-1){return 1}a=a+(-1<>2]=d;e=c}return e}function aa(a,b){var c=0,d=0,e=0,f=0;d=T-16|0;T=d;v[d+12>>2]=b;c=T-208|0;T=c;v[c+204>>2]=b;b=c+160|0;ba(b,0,40);v[c+200>>2]=v[c+204>>2];a:{if((Ba(0,c+200|0,c+80|0,b)|0)<0){break a}f=v[a+76>>2]>=0;b=v[a>>2];if(v[a+72>>2]<=0){v[a>>2]=b&-33}b:{c:{d:{if(!v[a+48>>2]){v[a+48>>2]=80;v[a+28>>2]=0;v[a+16>>2]=0;v[a+20>>2]=0;e=v[a+44>>2];v[a+44>>2]=c;break d}if(v[a+16>>2]){break c}}if(Ca(a)){break b}}Ba(a,c+200|0,c+80|0,c+160|0)}if(e){V[v[a+36>>2]](a,0,0)|0;v[a+48>>2]=0;v[a+44>>2]=e;v[a+28>>2]=0;v[a+16>>2]=0;v[a+20>>2]=0}v[a>>2]=v[a>>2]|b&32;if(!f){break a}}T=c+208|0;T=d+16|0}function $(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=v[a+4>>2];h=v[a+12>>2]<<3;i=v[a+16>>2];d=h-i|0;a:{if((d|0)>=32){e=w[c|0]|w[c+1|0]<<8|(w[c+2|0]<<16|w[c+3|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);d=v[a+8>>2];if(!d){break a}e=e<>>8-d;break a}if((d|0)<=0){break a}f=v[a+8>>2];g=f+24|0;e=w[c|0]<>>0>8;d=d-8|0;c=c+1|0;if(f){continue}break}}c=b+i|0;v[a+16>>2]=c;v[a+8>>2]=c&7;if(c>>>0<=h>>>0){v[a+4>>2]=v[a>>2]+(c>>>3|0);a=e>>>32-b|0}else{a=-1}return a}function ya(a,b){if(!a){return 0}a:{b:{if(a){if(b>>>0<=127){break b}c:{if(!v[v[2572]>>2]){if((b&-128)==57216){break b}break c}if(b>>>0<=2047){t[a+1|0]=b&63|128;t[a|0]=b>>>6|192;a=2;break a}if(!((b&-8192)!=57344&b>>>0>=55296)){t[a+2|0]=b&63|128;t[a|0]=b>>>12|224;t[a+1|0]=b>>>6&63|128;a=3;break a}if(b-65536>>>0<=1048575){t[a+3|0]=b&63|128;t[a|0]=b>>>18|240;t[a+2|0]=b>>>6&63|128;t[a+1|0]=b>>>12&63|128;a=4;break a}}v[2535]=25;a=-1}else{a=1}break a}t[a|0]=b;a=1}return a}function Na(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{d=v[a+40>>2];if(!d){break a}if(d-1>>>0>=3){g=d&-4;while(1){v[v[a+4>>2]+(b<<2)>>2]=v[a>>2]+B(b,40);c=b|1;v[v[a+4>>2]+(c<<2)>>2]=v[a>>2]+B(c,40);c=b|2;v[v[a+4>>2]+(c<<2)>>2]=v[a>>2]+B(c,40);c=b|3;v[v[a+4>>2]+(c<<2)>>2]=v[a>>2]+B(c,40);b=b+4|0;e=e+4|0;if((g|0)!=(e|0)){continue}break}}d=d&3;if(!d){break a}while(1){v[v[a+4>>2]+(b<<2)>>2]=v[a>>2]+B(b,40);b=b+1|0;f=f+1|0;if((d|0)!=(f|0)){continue}break}}}function na(a){var b=0,c=0,d=0,e=0;c=v[a+4>>2];d=(v[a+12>>2]<<3)-v[a+16>>2]|0;a:{if((d|0)>=32){b=w[c|0]|w[c+1|0]<<8|(w[c+2|0]<<16|w[c+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);a=v[a+8>>2];if(!a){break a}return b<>>8-a}if((d|0)<=0){return 0}a=v[a+8>>2];e=a+24|0;b=w[c|0]<>>0>8;a=a-8|0;c=c+1|0;if(d){continue}break}}return b}function sa(a,b,c){var d=0,e=0,f=0;if(!(w[a|0]&32)){a:{d=b;b=a;a=v[b+16>>2];b:{if(!a){if(Ca(b)){break b}a=v[b+16>>2]}f=v[b+20>>2];if(a-f>>>0>>0){V[v[b+36>>2]](b,d,c)|0;break a}c:{if(v[b+80>>2]<0){break c}a=c;while(1){e=a;if(!a){break c}a=e-1|0;if(w[d+a|0]!=10){continue}break}if(V[v[b+36>>2]](b,d,e)>>>0>>0){break b}d=d+e|0;c=c-e|0;f=v[b+20>>2]}fa(f,d,c);v[b+20>>2]=v[b+20>>2]+c}}}}function ab(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;a=v[a+16>>2];if(!(!a|!v[a+60>>2])){v[b>>2]=1;v[c>>2]=v[a+64>>2]<<1;v[d>>2]=(v[a+52>>2]<<4)-(v[a+68>>2]+v[a+64>>2]<<1);v[e>>2]=v[a+72>>2]<<1;v[f>>2]=(v[a+56>>2]<<4)-(v[a+76>>2]+v[a+72>>2]<<1);return}v[b>>2]=0;v[c>>2]=0;v[d>>2]=0;v[e>>2]=0;v[f>>2]=0}function Ia(a,b){var c=0,d=0;c=T-32|0;T=c;v[c+16>>2]=v[a+16>>2];d=v[a+12>>2];v[c+8>>2]=v[a+8>>2];v[c+12>>2]=d;d=v[a+4>>2];v[c>>2]=v[a>>2];v[c+4>>2]=d;a=_(c,c+28|0);a:{if(a){break a}a=_(c,c+28|0);if(a){break a}a=_(c,c+28|0);if(a){break a}a=1;d=v[c+28>>2];if(d>>>0>255){break a}v[b>>2]=d;a=0}T=c+32|0;return a}function Aa(a){var b=0,c=0,d=0;if(t[v[a>>2]]-48>>>0>=10){return 0}while(1){d=v[a>>2];c=-1;if(b>>>0<=214748364){c=t[d|0]-48|0;b=B(b,10);c=(c|0)>(2147483647-b|0)?-1:c+b|0}v[a>>2]=d+1;b=c;if(t[d+1|0]-48>>>0<10){continue}break}return b}function Ta(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a=a+1220|0;e=v[a+20>>2];if(e>>>0>2]){v[a+20>>2]=e+1;a=v[a+12>>2]+(e<<4)|0}else{a=0}if(!a){return 0}v[b>>2]=v[a+4>>2];v[c>>2]=v[a+12>>2];v[d>>2]=v[a+8>>2];return v[a>>2]}function da(a,b){var c=0,d=0;c=T-16|0;T=c;v[c+12>>2]=0;a=_(a,c+12|0);T=c+16|0;d=b;b=v[c+12>>2];a:{b:{if((b|0)==-1){b=-2147483648;if(a){break b}c=1;break a}c=1;if(a){break a}a=b+1>>>1|0;b=b&1?a:0-a|0}v[d>>2]=b;c=0}return c}function eb(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=B(e,f);g=c&65535;h=a&65535;i=B(g,h);f=(i>>>16|0)+B(f,g)|0;e=(f&65535)+B(e,h)|0;U=(B(b,c)+j|0)+B(a,d)+(f>>>16)+(e>>>16)|0;return i&65535|e<<16}function Fa(a,b){var c=0,d=0,e=0;d=b;c=v[a+4>>2];b=(b>>>0)%(c>>>0)|0;d=d-b|0;e=v[a>>2];v[a+12>>2]=(e+(b<<4)|0)+(d<<8);c=B(c,v[a+8>>2]);b=(((c<<8)+e|0)+(d<<6)|0)+(b<<3)|0;v[a+16>>2]=b;v[a+20>>2]=b+(c<<6)}function qa(a,b,c,d,e){var f=0;f=T-256|0;T=f;if(!(e&73728|(c|0)<=(d|0))){c=c-d|0;d=c>>>0<256;ba(f,b&255,d?c:256);if(!d){while(1){sa(a,f,256);c=c-256|0;if(c>>>0>255){continue}break}}sa(a,f,c)}T=f+256|0}function Ca(a){var b=0;b=v[a+72>>2];v[a+72>>2]=b-1|b;b=v[a>>2];if(b&8){v[a>>2]=b|32;return-1}v[a+4>>2]=0;v[a+8>>2]=0;b=v[a+44>>2];v[a+28>>2]=b;v[a+20>>2]=b;v[a+16>>2]=b+v[a+48>>2];return 0}function Ga(a,b,c){var d=0,e=0;d=c+1|0;d=b>>>0>d>>>0?b:d;e=v[(c<<2)+a>>2];while(1){a:{c=c+1|0;if(c>>>0>=b>>>0){c=d;break a}if(v[(c<<2)+a>>2]!=(e|0)){continue}}break}return(b|0)==(c|0)?0:c}function Xa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=T-16|0;T=e;a=P(v[a+60>>2],b|0,c|0,d&255,e+8|0)|0;if(a){v[2535]=a;a=-1}else{a=0}T=e+16|0;U=a?-1:v[e+12>>2];return(a?-1:v[e+8>>2])|0}function oa(a,b){a:{switch(b|0){case 0:return v[a+200>>2];case 1:return v[a+204>>2];case 2:return v[a+208>>2];case 3:return v[a+212>>2];default:a=0;break;case 4:break a}}return a}function pa(a){var b=0,c=0;b=v[2532];c=a+3&-4;a=b+c|0;a:{if(a>>>0<=b>>>0?c:0){break a}if(a>>>0>W()<<16>>>0){if(!(Q(a|0)|0)){break a}}v[2532]=a;return b}v[2535]=48;return-1}function Wa(a,b){a=a|0;b=b|0;var c=0;c=ba(a,0,3396);v[c+1332>>2]=1;v[c+4>>2]=256;v[c+8>>2]=32;c=ha(2112);v[a+3376>>2]=c;if(!c){return 1}if(b){v[a+1216>>2]=1}return 0}function ia(a,b){b=v[a+16>>2]+b|0;v[a+16>>2]=b;v[a+8>>2]=b&7;if(b>>>0<=v[a+12>>2]<<3>>>0){v[a+4>>2]=v[a>>2]+(b>>>3|0);a=0}else{a=-1}return a}function ra(a,b){var c=0;a:{if(b>>>0>16){break a}a=v[v[a+4>>2]+(b<<2)>>2];if(!a|y[a+20>>2]<2){break a}c=v[a>>2]}return c}function ta(a,b,c){if(c){return _(a,b)}a=$(a,1);v[b>>2]=a;if((a|0)!=-1){v[b>>2]=a^1;a=0}else{a=1}return a}function fb(a){var b=0;b=a&31;a=0-a&31;return(-1>>>b&-2)<>>a} function cb(a){a=a|0;a=v[a+16>>2];if(!a){return 0}return v[a+52>>2]}function bb(a){a=a|0;a=v[a+16>>2];if(!a){return 0}return v[a+56>>2]}function Za(a){a=a|0;return R(v[a+60>>2])|0}function Sa(){v[2572]=10176;v[2554]=42}function Ha(a){$(a,8-v[a+8>>2]|0)}function $a(){return ha(3396)|0}function _a(a){a=a|0;ca(a)} // EMSCRIPTEN_END_FUNCS e=w;p(Y);var V=c([null,Za,Ya,Xa]);function W(){return s.byteLength/65536|0}return{"g":Sa,"h":fa,"i":Wa,"j":ha,"k":Va,"l":ca,"m":Ua,"n":Ta,"o":db,"p":cb,"q":bb,"r":ab,"s":$a,"t":_a,"u":V}}return X(Z)} // EMSCRIPTEN_END_ASM )(asmLibraryArg)},instantiate:function(binary,info){return{then:function(ok){var module=new WebAssembly.Module(binary);ok({"instance":new WebAssembly.Instance(module)})}}},RuntimeError:Error};wasmBinary=[];if(typeof WebAssembly!="object"){abort("no native wasm support detected")}function setValue(ptr,value,type="i8",noSafe){if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":HEAP8[ptr>>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)}}function getValue(ptr,type="i8",noSafe){if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":return HEAP8[ptr>>0];case"i8":return HEAP8[ptr>>0];case"i16":return HEAP16[ptr>>1];case"i32":return HEAP32[ptr>>2];case"i64":return HEAP32[ptr>>2];case"float":return HEAPF32[ptr>>2];case"double":return Number(HEAPF64[ptr>>3]);default:abort("invalid type for getValue: "+type)}return null}var wasmMemory;var ABORT=false;var EXITSTATUS;function assert(condition,text){if(!condition){abort(text)}}var UTF8Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):undefined;function UTF8ArrayToString(heapOrArray,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heapOrArray[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder){return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr))}else{var str="";while(idx>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}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 INITIAL_MEMORY=Module["INITIAL_MEMORY"]||67108864;if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_MEMORY/65536,"maximum":INITIAL_MEMORY/65536})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;function keepRuntimeAlive(){return noExitRuntime}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 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 addOnInit(cb){__ATINIT__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}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="Aborted("+what+")";err(what);ABORT=true;EXITSTATUS=1;what+=". Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return filename.startsWith(dataURIPrefix)}function isFileURI(filename){return filename.startsWith("file://")}var wasmBinaryFile;wasmBinaryFile="h264bsd_asm.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(file){try{if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}var binary=tryParseAsDataURI(file);if(binary){return binary}if(readBinary){return readBinary(file)}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)){if(typeof fetch=="function"&&!isFileURI(wasmBinaryFile)){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(wasmBinaryFile)})}else{if(readAsync){return new Promise(function(resolve,reject){readAsync(wasmBinaryFile,function(response){resolve(new Uint8Array(response))},reject)})}}}return Promise.resolve().then(function(){return getBinary(wasmBinaryFile)})}function createWasm(){var info={"a":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;wasmTable=Module["asm"]["u"];addOnInit(Module["asm"]["g"]);removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiationResult(result){receiveInstance(result["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(function(instance){return instance}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&typeof fetch=="function"){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiationResult,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiationResult)})})}else{return instantiateArrayBuffer(receiveInstantiationResult)}}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().catch(readyPromiseReject);return{}}var tempDouble;var tempI64;function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback(Module);continue}var func=callback.func;if(typeof func=="number"){if(callback.arg===undefined){getWasmTableEntry(func)()}else{getWasmTableEntry(func)(callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}var wasmTableMirror=[];function getWasmTableEntry(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}function abortOnCannotGrowMemory(requestedSize){abort("OOM")}function _emscripten_resize_heap(requestedSize){var oldSize=HEAPU8.length;requestedSize=requestedSize>>>0;abortOnCannotGrowMemory(requestedSize)}var SYSCALLS={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+4>>2];iov+=8;for(var j=0;j>2]=num;return 0}var ASSERTIONS=false;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();readyPromiseResolve(Module);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()()}}run(); return H264bsd.ready } ); })(); if (typeof exports === 'object' && typeof module === 'object') module.exports = H264bsd; else if (typeof define === 'function' && define['amd']) define([], function() { return H264bsd; }); else if (typeof exports === 'object') exports["H264bsd"] = H264bsd;