diff --git a/README.md b/README.md index 3fed82ec..add66edc 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,21 @@ -

+![Build Status: master](https://travis-ci.org/google/draco.svg?branch=master) + News ======= +### Version 1.4.1 release +* Using the versioned gstatic.com WASM and Javascript decoders is now + recommended. To use v1.4.1, use this URL: + * https://www.gstatic.com/draco/versioned/decoders/1.4.1/* + * Replace the * with the files to load. E.g. + * https://gstatic.com/draco/versioned/decoders/1.4.1/draco_decoder.js + * This works with the v1.3.6 and v1.4.0 releases, and will work with future + Draco releases. +* Bug fixes + ### Version 1.4.0 release * WASM and JavaScript decoders are hosted from a static URL. * It is recommended to always pull your Draco WASM and JavaScript decoders from this URL: diff --git a/cmake/draco_targets.cmake b/cmake/draco_targets.cmake index a914f51d..6dfa6a0c 100644 --- a/cmake/draco_targets.cmake +++ b/cmake/draco_targets.cmake @@ -332,7 +332,6 @@ macro(draco_add_library) # Determine if $lib_NAME is a header only target. unset(sources_list) - if(lib_SOURCES) set(sources_list ${lib_SOURCES}) list(FILTER sources_list INCLUDE REGEX cc$) diff --git a/javascript/draco_decoder.js b/javascript/draco_decoder.js index 43f0c46d..7e784872 100644 --- a/javascript/draco_decoder.js +++ b/javascript/draco_decoder.js @@ -6,29 +6,29 @@ var DracoDecoderModule = (function() { function(DracoDecoderModule) { DracoDecoderModule = DracoDecoderModule || {}; -var Module=typeof DracoDecoderModule!=="undefined"?DracoDecoderModule:{};var readyPromiseResolve,readyPromiseReject;Module["ready"]=new Promise(function(resolve,reject){readyPromiseResolve=resolve;readyPromiseReject=reject});var isRuntimeInitialized=false;var isModuleParsed=false;Module["onRuntimeInitialized"]=function(){isRuntimeInitialized=true;if(isModuleParsed){if(typeof Module["onModuleLoaded"]==="function"){Module["onModuleLoaded"](Module)}}};Module["onModuleParsed"]=function(){isModuleParsed=true;if(isRuntimeInitialized){if(typeof Module["onModuleLoaded"]==="function"){Module["onModuleLoaded"](Module)}}};function isVersionSupported(versionString){if(typeof versionString!=="string")return false;const version=versionString.split(".");if(version.length<2||version.length>3)return false;if(version[0]==1&&version[1]>=0&&version[1]<=3)return true;if(version[0]!=0||version[1]>10)return false;return true}Module["isVersionSupported"]=isVersionSupported;var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram="./this.program";var quit_=function(status,toThrow){throw toThrow};var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string";ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;var nodeFS;var nodePath;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}read_=function shell_read(filename,binary){var ret=tryParseAsDataURI(filename);if(ret){return binary?ret:ret.toString()}if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);return nodeFS["readFileSync"](filename,binary?null:"utf8")};readBinary=function readBinary(filename){var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process["argv"].length>1){thisProgram=process["argv"][1].replace(/\\/g,"/")}arguments_=process["argv"].slice(2);process["on"]("uncaughtException",function(ex){if(!(ex instanceof ExitStatus)){throw ex}});process["on"]("unhandledRejection",abort);quit_=function(status){process["exit"](status)};Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){read_=function shell_read(f){var data=tryParseAsDataURI(f);if(data){return intArrayToString(data)}return read(f)}}readBinary=function readBinary(f){var data;data=tryParseAsDataURI(f);if(data){return data}if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){arguments_=scriptArgs}else if(typeof arguments!="undefined"){arguments_=arguments}if(typeof quit==="function"){quit_=function(status){quit(status)}}if(typeof print!=="undefined"){if(typeof console==="undefined")console={};console.log=print;console.warn=console.error=typeof printErr!=="undefined"?printErr:print}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1)}else{scriptDirectory=""}{read_=function shell_read(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText}catch(err){var data=tryParseAsDataURI(url);if(data){return intArrayToString(data)}throw err}};if(ENVIRONMENT_IS_WORKER){readBinary=function readBinary(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}catch(err){var data=tryParseAsDataURI(url);if(data){return data}throw err}}}readAsync=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}var data=tryParseAsDataURI(url);if(data){onload(data.buffer);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=function(title){document.title=title}}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var STACK_ALIGN=16;function warnOnce(text){if(!warnOnce.shown)warnOnce.shown={};if(!warnOnce.shown[text]){warnOnce.shown[text]=1;err(text)}}function convertJsFunctionToWasm(func,sig){return func}var freeTableIndexes=[];var functionsInTableMap;function addFunctionWasm(func,sig){var table=wasmTable;if(!functionsInTableMap){functionsInTableMap=new WeakMap;for(var i=0;i3)return false;if(version[0]==1&&version[1]>=0&&version[1]<=4)return true;if(version[0]!=0||version[1]>10)return false;return true}Module["isVersionSupported"]=isVersionSupported;var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram="./this.program";var quit_=function(status,toThrow){throw toThrow};var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string";ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;var nodeFS;var nodePath;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}read_=function shell_read(filename,binary){var ret=tryParseAsDataURI(filename);if(ret){return binary?ret:ret.toString()}if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);return nodeFS["readFileSync"](filename,binary?null:"utf8")};readBinary=function readBinary(filename){var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process["argv"].length>1){thisProgram=process["argv"][1].replace(/\\/g,"/")}arguments_=process["argv"].slice(2);quit_=function(status){process["exit"](status)};Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){read_=function shell_read(f){var data=tryParseAsDataURI(f);if(data){return intArrayToString(data)}return read(f)}}readBinary=function readBinary(f){var data;data=tryParseAsDataURI(f);if(data){return data}if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){arguments_=scriptArgs}else if(typeof arguments!="undefined"){arguments_=arguments}if(typeof quit==="function"){quit_=function(status){quit(status)}}if(typeof print!=="undefined"){if(typeof console==="undefined")console={};console.log=print;console.warn=console.error=typeof printErr!=="undefined"?printErr:print}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!=="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1)}else{scriptDirectory=""}{read_=function shell_read(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText}catch(err){var data=tryParseAsDataURI(url);if(data){return intArrayToString(data)}throw err}};if(ENVIRONMENT_IS_WORKER){readBinary=function readBinary(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}catch(err){var data=tryParseAsDataURI(url);if(data){return data}throw err}}}readAsync=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}var data=tryParseAsDataURI(url);if(data){onload(data.buffer);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=function(title){document.title=title}}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var STACK_ALIGN=16;function warnOnce(text){if(!warnOnce.shown)warnOnce.shown={};if(!warnOnce.shown[text]){warnOnce.shown[text]=1;err(text)}}function convertJsFunctionToWasm(func,sig){return func}var freeTableIndexes=[];var functionsInTableMap;function getEmptyTableSlot(){if(freeTableIndexes.length){return freeTableIndexes.pop()}try{wasmTable.grow(1)}catch(err){if(!(err instanceof RangeError)){throw err}throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1}function addFunctionWasm(func,sig){if(!functionsInTableMap){functionsInTableMap=new WeakMap;for(var i=0;i>2]=0;i[h+64>>2]=0;i[h+68>>2]=0;i[h+48>>2]=0;i[h+52>>2]=0;i[h+40>>2]=0;i[h+44>>2]=0;i[h+56>>2]=1065353216;i[h+32>>2]=0;i[h+24>>2]=0;i[h+28>>2]=0;A=i[a+124>>2];a:{b:{c:{d:{e:{f:{if((b|0)<1){break f}C=a+400|0;z=a+232|0;D=i[a+216>>2]!=i[a+220>>2];w=1;while(1){m=y;y=m+1|0;g:{h:{i:{j:{k:{if(i[a+420>>2]!=-1){if(Ee(C)){break k}}d=a;q=d;if(j[d+308|0]){p=i[a+296>>2];r=i[a+304>>2];c=p+(r>>>3|0)|0;n=i[a+300>>2];if(c>>>0>=n>>>0){break j}e=j[c|0];c=r+1|0;i[a+304>>2]=c;if(!(e>>>(r&7)&1)){break j}u=c>>>3|0;e=p+u|0;l:{if(e>>>0>=n>>>0){e=c;c=0;break l}f=j[e|0];e=r+2|0;i[a+304>>2]=e;u=e>>>3|0;c=f>>>(c&7)&1}f=p+u|0;if(f>>>0>>0){f=j[f|0];i[a+304>>2]=e+1;d=f>>>(e&7)<<1&2}else{d=0}c=(c|d)<<1|1}else{c=1}i[q+416>>2]=c;break h}c=i[a+420>>2];i[a+416>>2]=c;if(c){break h}break i}i[a+416>>2]=0}e=i[h+68>>2];if((e|0)==i[h+64>>2]){e=-1;break e}t=-1;u=i[a+8>>2];r=i[u+24>>2];c=r;n=e+ -4|0;v=i[n>>2];d=-1;m:{if((v|0)==-1){break m}e=v+1|0;e=(e>>>0)%3|0?e:v+ -2|0;d=-1;if((e|0)==-1){break m}d=i[i[u>>2]+(e<<2)>>2]}e=i[c+(d<<2)>>2];if((e|0)!=-1){c=e+1|0;t=(c>>>0)%3|0?c:e+ -2|0}e=i[u+12>>2];s=o(m,3);c=s+1|0;i[e+(v<<2)>>2]=c;f=c<<2;i[f+e>>2]=v;q=s+2|0;i[e+(t<<2)>>2]=q;m=q<<2;i[m+e>>2]=t;p=-1;c=-1;n:{if((v|0)==-1){break n}e=v+((v>>>0)%3|0?-1:2)|0;c=-1;if((e|0)==-1){break n}c=i[i[u>>2]+(e<<2)>>2]}o:{if((t|0)==-1){break o}e=t+1|0;e=(e>>>0)%3|0?e:t+ -2|0;if((e|0)==-1){break o}p=i[i[u>>2]+(e<<2)>>2]}e=-1;if((c|0)==(d|0)|(d|0)==(p|0)){break e}e=i[u>>2];i[e+(s<<2)>>2]=d;i[e+f>>2]=p;i[e+m>>2]=c;if((c|0)!=-1){i[r+(c<<2)>>2]=q}e=i[a+120>>2]+(d>>>3&536870908)|0;c=i[e>>2];E=e,F=Nn(d)&c,i[E>>2]=F;i[n>>2]=s;jg(z,s);break g}e=-1;p:{q:{r:{s:{t:{u:{v:{w:{x:{switch(c+ -1|0){case 2:case 4:d=i[h+68>>2];if((d|0)==i[h+64>>2]){break e}q=i[a+8>>2];e=i[q+12>>2];s=o(m,3);p=(c|0)==5;n=s+(p?2:1)|0;c=n<<2;u=i[d+ -4>>2];i[e+c>>2]=u;i[e+(u<<2)>>2]=n;bg(q+24|0,11508);e=-1;f=i[a+8>>2];r=i[f+24>>2];if(i[f+28>>2]-r>>2>(A|0)){break e}d=s+2|0;f=i[f>>2];t=f+c|0;e=i[q+28>>2]-i[q+24>>2]|0;c=(e>>2)+ -1|0;i[t>>2]=c;if(e){i[r+(c<<2)>>2]=n}d=p?s:d;e=f+(p+s<<2)|0;y:{z:{A:{if((u|0)!=-1){c=u+((u>>>0)%3|0?-1:2)|0;if((c|0)==-1){break A}c=i[f+(c<<2)>>2];i[f+(d<<2)>>2]=c;if((c|0)==-1){break z}i[r+(c<<2)>>2]=d;break z}i[f+(d<<2)>>2]=-1;d=-1;break y}i[f+(d<<2)>>2]=-1}c=u+1|0;c=(c>>>0)%3|0?c:u+ -2|0;d=-1;if((c|0)==-1){break y}d=i[f+(c<<2)>>2]}i[e>>2]=d;e=i[h+68>>2];i[e+ -4>>2]=s;break w;case 0:p=i[h+68>>2];d=i[h+64>>2];if((p|0)==(d|0)){break e}n=p+ -4|0;t=i[n>>2];i[h+68>>2]=n;s=i[h+44>>2];if(!s){break t}e=i[h+40>>2];q=Mn(s)>>>0>1;f=m&s+2147483647;B:{if(!q){break B}c=m;f=c;if(c>>>0>>0){break B}f=(m>>>0)%(s>>>0)|0}c=i[e+(f<<2)>>2];if(!c){break t}e=i[c>>2];if(!e){break t}r=s+ -1|0;while(1){C:{c=i[e+4>>2];D:{if((m|0)!=(c|0)){E:{if(!q){c=c&r;break E}if(c>>>0>>0){break E}c=(c>>>0)%(s>>>0)|0}if((c|0)!=(f|0)){break t}break D}if((m|0)==i[e+8>>2]){break C}}e=i[e>>2];if(e){continue}break t}break}f=i[h+72>>2];if((f|0)!=(n|0)){i[n>>2]=i[e+12>>2];i[h+68>>2]=p;c=d;break s}q=n-d|0;p=q>>2;r=p+1|0;if(r>>>0>=1073741824){break v}n=f-d|0;f=n>>1;n=n>>2>>>0<536870911?f>>>0>>0?r:f:1073741823;c=0;F:{if(!n){break F}if(n>>>0>=1073741824){break a}c=Gm(n<<2)}f=c+(p<<2)|0;i[f>>2]=i[e+12>>2];e=(n<<2)+c|0;p=f+4|0;if((q|0)>=1){sn(c,d,q)}i[h+72>>2]=e;i[h+68>>2]=p;i[h+64>>2]=c;if(!d){break s}qn(d);p=i[h+68>>2];c=i[h+64>>2];break s;case 6:break x;default:break e}}c=i[a+8>>2];bg(c+24|0,11508);d=i[a+8>>2];s=o(m,3);p=i[c+28>>2]-i[c+24>>2]|0;r=p>>2;f=r+ -1|0;i[i[d>>2]+(s<<2)>>2]=f;bg(d+24|0,11508);n=s+1|0;i[i[d>>2]+(n<<2)>>2]=(i[d+28>>2]-i[d+24>>2]>>2)+ -1;c=i[a+8>>2];bg(c+24|0,11508);d=s+2|0;i[i[c>>2]+(d<<2)>>2]=(i[c+28>>2]-i[c+24>>2]>>2)+ -1;c=i[a+8>>2];q=i[c+24>>2];if(i[c+28>>2]-q>>2>(A|0)){break e}G:{H:{if(!p){i[q+(r<<2)>>2]=n;e=1;break H}i[q+(f<<2)>>2]=s;e=0;if((p|0)==-4){break H}i[q+(r<<2)>>2]=n;e=r+1|0;if((e|0)==-1){break G}}i[q+(e<<2)>>2]=d}c=i[h+68>>2];e=i[h+72>>2];if((c|0)!=(e|0)){i[c>>2]=s;e=c+4|0;i[h+68>>2]=e;break w}r=i[h+64>>2];p=c-r|0;f=p>>2;n=f+1|0;if(n>>>0>=1073741824){break u}d=e-r|0;e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?n:e:1073741823;c=0;I:{if(!d){break I}if(d>>>0>=1073741824){break a}c=Gm(d<<2)}e=c+(f<<2)|0;i[e>>2]=s;d=c+(d<<2)|0;e=e+4|0;if((p|0)>=1){sn(c,r,p)}i[h+72>>2]=d;i[h+68>>2]=e;i[h+64>>2]=c;if(!r){break w}qn(r);e=i[h+68>>2]}jg(z,i[e+ -4>>2]);e=i[a+40>>2];if((e|0)==i[a+36>>2]){break g}m=(m^-1)+b|0;while(1){c=i[e+ -8>>2];if(c>>>0>m>>>0){break r}if((c|0)!=(m|0)){break g}d=j[e+ -4|0];c=e+ -12|0;e=i[c>>2];i[a+40>>2]=c;if((e|0)<0){break r}f=i[i[h+68>>2]+ -4>>2];i[h+20>>2]=(e^-1)+b;i[h+88>>2]=h+20;cg(h,h+40|0,h+20|0,h+88|0);e=i[h>>2];J:{if(d&1){c=-1;if((f|0)==-1){break J}c=f+1|0;c=(c>>>0)%3|0?c:f+ -2|0;break J}c=-1;if((f|0)==-1){break J}c=f+ -1|0;if((f>>>0)%3|0){break J}c=f+2|0}i[e+12>>2]=c;e=i[a+40>>2];if((e|0)!=i[a+36>>2]){continue}break}break g}Vm();x()}Vm();x()}p=n;c=d}if((c|0)==(p|0)){break r}v=i[p+ -4>>2];e=(v|0)==-1;u=i[a+8>>2];if(i[i[u+12>>2]+(v<<2)>>2]!=-1?!e:0){break r}f=(t|0)==-1;s=i[u+12>>2];if(i[s+(t<<2)>>2]!=-1?!f:0){break r}q=o(m,3);n=q+2|0;i[s+(v<<2)>>2]=n;r=n<<2;i[r+s>>2]=v;c=q+1|0;i[s+(t<<2)>>2]=c;m=c<<2;i[s+m>>2]=t;if(e){break q}B=-1;w=-1;d=i[u>>2];e=d+(q<<2)|0;c=v+((v>>>0)%3|0?-1:2)|0;if((c|0)!=-1){w=i[(c<<2)+d>>2]}i[e>>2]=w;c=v+1|0;c=(c>>>0)%3|0?c:v+ -2|0;if((c|0)==-1){break p}B=i[(c<<2)+d>>2];break p}e=-1;if(w&1){break e}break f}w=-1;d=i[u>>2];i[d+(q<<2)>>2]=-1;B=-1}i[d+m>>2]=B;K:{L:{M:{if(!f){c=t+((t>>>0)%3|0?-1:2)|0;if((c|0)==-1){break M}c=i[(c<<2)+d>>2];i[d+r>>2]=c;if((c|0)==-1){break L}i[i[u+24>>2]+(c<<2)>>2]=n;break L}i[d+r>>2]=-1;B=-1;e=-1;break K}i[d+r>>2]=-1}B=-1;c=t+1|0;c=(c>>>0)%3|0?c:t+ -2|0;e=-1;if((c|0)==-1){break K}B=i[(c<<2)+d>>2];e=c}f=i[a+388>>2];m=w<<2;c=f+m|0;n=c;r=i[c>>2];c=B<<2;i[n>>2]=r+i[c+f>>2];f=c;c=i[u+24>>2];f=f+c|0;if((w|0)!=-1){i[c+m>>2]=i[f>>2]}N:{if((e|0)==-1){break N}while(1){i[(e<<2)+d>>2]=w;c=e+1|0;c=(c>>>0)%3|0?c:e+ -2|0;if((c|0)==-1){break N}e=i[s+(c<<2)>>2];if((e|0)==-1){break N}c=e+1|0;e=(c>>>0)%3|0?c:e+ -2|0;if((e|0)!=-1){continue}break}}i[f>>2]=-1;O:{if(D){break O}c=i[h+28>>2];e=i[h+32>>2];if((c|0)!=(e|0)){i[c>>2]=B;i[h+28>>2]=c+4;break O}P:{r=i[h+24>>2];n=c-r|0;m=n>>2;f=m+1|0;if(f>>>0<1073741824){d=e-r|0;e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?f:e:1073741823;c=0;Q:{if(!d){break Q}if(d>>>0>=1073741824){break P}c=Gm(d<<2)}e=c+(m<<2)|0;i[e>>2]=B;d=c+(d<<2)|0;e=e+4|0;if((n|0)>=1){sn(c,r,n)}i[h+32>>2]=d;i[h+28>>2]=e;i[h+24>>2]=c;if(!r){break O}qn(r);p=i[h+68>>2];break O}Vm();x()}break a}i[p+ -4>>2]=q;jg(z,q)}w=(y|0)<(b|0);if((b|0)!=(y|0)){continue}break}y=b}e=-1;w=i[a+8>>2];if(i[w+28>>2]-i[w+24>>2]>>2>(A|0)){break e}c=i[h+68>>2];if((c|0)!=i[h+64>>2]){C=a+72|0;b=a+60|0;r=a+312|0;while(1){c=c+ -4|0;z=i[c>>2];i[h+68>>2]=c;R:{S:{T:{U:{if(k[a+270>>1]<=513){if(!j[a+364|0]){break T}d=i[a+360>>2];c=i[a+352>>2]+(d>>>3|0)|0;if(c>>>0>=l[a+356>>2]){break S}c=j[c|0];i[a+360>>2]=d+1;c=c>>>(d&7)&1;break U}c=Ee(r)}if(!c){break S}}p=i[a+8>>2];v=i[p>>2];if((y|0)>=((i[p+4>>2]-v>>2>>>0)/3|0)){break e}m=-1;t=-1;n=i[p+24>>2];f=n;c=-1;V:{if((z|0)==-1){break V}d=z+1|0;d=(d>>>0)%3|0?d:z+ -2|0;c=-1;if((d|0)==-1){break V}c=i[v+(d<<2)>>2]}f=i[f+(c<<2)>>2];W:{if((f|0)==-1){break W}d=f+1|0;d=(d>>>0)%3|0?d:f+ -2|0;if((d|0)==-1){break W}m=d+1|0;m=(m>>>0)%3|0?m:d+ -2|0;if((m|0)!=-1){t=i[v+(m<<2)>>2]}m=d}u=-1;D=-1;n=i[n+(t<<2)>>2];f=-1;X:{if((n|0)==-1){break X}d=n+1|0;d=(d>>>0)%3|0?d:n+ -2|0;f=-1;if((d|0)==-1){break X}f=d+1|0;f=(f>>>0)%3|0?f:d+ -2|0;if((f|0)!=-1){D=i[v+(f<<2)>>2]}f=d}A=i[p+12>>2];s=o(y,3);p=s<<2;i[A+p>>2]=z;i[A+(z<<2)>>2]=s;z=s+1|0;n=z<<2;i[n+A>>2]=m;i[A+(m<<2)>>2]=z;q=s+2|0;d=q<<2;i[d+A>>2]=f;i[A+(f<<2)>>2]=q;i[p+v>>2]=t;n=n+v|0;i[n>>2]=D;f=d+v|0;i[f>>2]=c;p=i[a+120>>2];m=z>>>0>>0?-1:t;d=p+(m>>>3&536870908)|0;c=i[d>>2];E=d,F=Nn(m)&c,i[E>>2]=F;u=(z|0)!=-1?i[n>>2]:u;d=p+(u>>>3&536870908)|0;c=i[d>>2];E=d,F=Nn(u)&c,i[E>>2]=F;c=-1;c=(q|0)!=-1?i[f>>2]:c;m=p+(c>>>3&536870908)|0;d=i[m>>2];E=m,F=Nn(c)&d,i[E>>2]=F;c=i[a+64>>2];f=i[a+68>>2];if((c|0)==f<<5){if((c+1|0)<=-1){break c}d=b;if(c>>>0<=1073741822){m=c+32&-32;c=f<<6;c=c>>>0>>0?m:c}else{c=2147483647}Sc(d,c);c=i[a+64>>2]}y=y+1|0;i[a+64>>2]=c+1;d=i[a+60>>2]+(c>>>3&536870908)|0;i[d>>2]=i[d>>2]|1<<(c&31);c=i[a+76>>2];d=i[a+80>>2];if((c|0)!=(d|0)){i[c>>2]=s;i[a+76>>2]=c+4;break R}q=i[C>>2];p=c-q|0;f=p>>2;n=f+1|0;if(n>>>0>=1073741824){break b}m=d-q|0;d=m>>1;m=m>>2>>>0<536870911?d>>>0>>0?n:d:1073741823;c=0;Y:{if(!m){break Y}if(m>>>0>=1073741824){break a}c=Gm(m<<2)}d=c+(f<<2)|0;i[d>>2]=s;m=c+(m<<2)|0;d=d+4|0;if((p|0)>=1){sn(c,q,p)}i[a+80>>2]=m;i[a+76>>2]=d;i[a+72>>2]=c;if(!q){break R}qn(q);break R}d=i[a+64>>2];f=i[a+68>>2];if((d|0)==f<<5){if((d+1|0)<=-1){break c}c=b;if(d>>>0<=1073741822){m=d+32&-32;d=f<<6;d=d>>>0>>0?m:d}else{d=2147483647}Sc(c,d);d=i[a+64>>2]}i[a+64>>2]=d+1;m=i[a+60>>2]+(d>>>3&536870908)|0;c=i[m>>2];E=m,F=Nn(d)&c,i[E>>2]=F;c=i[a+76>>2];d=i[a+80>>2];if((c|0)!=(d|0)){i[c>>2]=z;i[a+76>>2]=c+4;break R}q=i[C>>2];p=c-q|0;f=p>>2;n=f+1|0;if(n>>>0>=1073741824){break b}m=d-q|0;d=m>>1;m=m>>2>>>0<536870911?d>>>0>>0?n:d:1073741823;c=0;Z:{if(!m){break Z}if(m>>>0>=1073741824){break a}c=Gm(m<<2)}d=c+(f<<2)|0;i[d>>2]=z;m=c+(m<<2)|0;d=d+4|0;if((p|0)>=1){sn(c,q,p)}i[a+80>>2]=m;i[a+76>>2]=d;i[a+72>>2]=c;if(!q){break R}qn(q)}c=i[h+68>>2];if((c|0)!=i[h+64>>2]){continue}break}w=i[a+8>>2]}if(((i[w+4>>2]-i[w>>2]>>2>>>0)/3|0)!=(y|0)){break e}e=i[w+28>>2]-i[w+24>>2]>>2;t=i[h+24>>2];m=i[h+28>>2];if((t|0)==(m|0)){break d}while(1){f=i[t>>2];c=i[w+24>>2];y=e+ -1|0;_:{if(i[c+(y<<2)>>2]!=-1){d=e;break _}c=i[w+24>>2];while(1){y=e+ -2|0;d=e+ -1|0;e=d;if(i[(y<<2)+c>>2]==-1){continue}break}}if(!(y>>>0>>0)){i[h>>2]=w;b=y<<2;c=i[b+c>>2];g[h+12|0]=1;i[h+8>>2]=c;i[h+4>>2]=c;n=b;if((c|0)!=-1){i[i[w>>2]+(c<<2)>>2]=f;Ld(h);e=i[h+8>>2];if((e|0)!=-1){while(1){i[i[i[a+8>>2]>>2]+(e<<2)>>2]=f;Ld(h);e=i[h+8>>2];if((e|0)!=-1){continue}break}}w=i[a+8>>2]}b=i[w+24>>2];c=n+b|0;if((f|0)!=-1){i[b+(f<<2)>>2]=i[c>>2]}i[c>>2]=-1;n=1<<(f&31);b=i[a+120>>2];e=b+(f>>>3&536870908)|0;c=e;f=b+(y>>>3&536870908)|0;b=1<<(y&31);y=n|i[e>>2];$:{if(i[f>>2]&b){break $}y=i[e>>2]&(n^-1)}i[c>>2]=y;i[f>>2]=i[f>>2]&(b^-1);d=d+ -1|0}e=d;t=t+4|0;if((m|0)!=(t|0)){continue}break}}t=i[h+24>>2]}if(t){i[h+28>>2]=t;qn(t)}a=i[h+48>>2];if(a){while(1){b=i[a>>2];qn(a);a=b;if(a){continue}break}}a=i[h+40>>2];i[h+40>>2]=0;if(a){qn(a)}a=i[h+64>>2];if(a){i[h+68>>2]=a;qn(a)}L=h+96|0;return e}Vm();x()}Vm();x()}Da(12220);x()}function pn(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0;p=L-16|0;L=p;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(a>>>0<=244){g=i[4333];f=a>>>0<11?16:a+11&-8;a=f>>>3|0;b=g>>>a|0;if(b&3){c=a+((b^-1)&1)|0;f=c<<3;b=i[f+17380>>2];a=b+8|0;d=i[b+8>>2];f=f+17372|0;m:{if((d|0)==(f|0)){q=17332,r=Nn(c)&g,i[q>>2]=r;break m}i[d+12>>2]=f;i[f+8>>2]=d}c=c<<3;i[b+4>>2]=c|3;b=b+c|0;i[b+4>>2]=i[b+4>>2]|1;break a}k=i[4335];if(f>>>0<=k>>>0){break l}if(b){b=b<>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;c=(c|b)+(a>>>b|0)|0;d=c<<3;b=i[d+17380>>2];a=i[b+8>>2];d=d+17372|0;n:{if((a|0)==(d|0)){g=Nn(c)&g;i[4333]=g;break n}i[a+12>>2]=d;i[d+8>>2]=a}a=b+8|0;i[b+4>>2]=f|3;e=b+f|0;c=c<<3;f=c-f|0;i[e+4>>2]=f|1;i[b+c>>2]=f;if(k){c=k>>>3|0;b=(c<<3)+17372|0;d=i[4338];c=1<>2]}i[b+8>>2]=d;i[c+12>>2]=d;i[d+12>>2]=b;i[d+8>>2]=c}i[4338]=e;i[4335]=f;break a}n=i[4334];if(!n){break l}a=(n&0-n)+ -1|0;b=a>>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;b=i[((c|b)+(a>>>b|0)<<2)+17636>>2];e=(i[b+4>>2]&-8)-f|0;c=b;while(1){p:{a=i[c+16>>2];if(!a){a=i[c+20>>2];if(!a){break p}}d=(i[a+4>>2]&-8)-f|0;c=d>>>0>>0;e=c?d:e;b=c?a:b;c=a;continue}break}o=b+f|0;if(o>>>0<=b>>>0){break k}m=i[b+24>>2];d=i[b+12>>2];if((d|0)!=(b|0)){a=i[b+8>>2];i[a+12>>2]=d;i[d+8>>2]=a;break b}c=b+20|0;a=i[c>>2];if(!a){a=i[b+16>>2];if(!a){break j}c=b+16|0}while(1){h=c;d=a;c=a+20|0;a=i[c>>2];if(a){continue}c=d+16|0;a=i[d+16>>2];if(a){continue}break}i[h>>2]=0;break b}f=-1;if(a>>>0>4294967231){break l}a=a+11|0;f=a&-8;k=i[4334];if(!k){break l}h=31;e=0-f|0;if(f>>>0<=16777215){b=a>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;g=c<>>16&2;a=(g<>>15|0)-(c|(a|b))|0;h=(a<<1|f>>>a+21&1)+28|0}c=i[(h<<2)+17636>>2];q:{r:{s:{if(!c){a=0;break s}a=0;b=f<<((h|0)==31?0:25-(h>>>1|0)|0);while(1){t:{g=(i[c+4>>2]&-8)-f|0;if(g>>>0>=e>>>0){break t}d=c;e=g;if(e){break t}e=0;a=c;break r}g=i[c+20>>2];c=i[((b>>>29&4)+c|0)+16>>2];a=g?(g|0)==(c|0)?a:g:a;b=b<<1;if(c){continue}break}}if(!(a|d)){a=2<>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;a=i[((c|b)+(a>>>b|0)<<2)+17636>>2]}if(!a){break q}}while(1){c=(i[a+4>>2]&-8)-f|0;b=c>>>0>>0;e=b?c:e;d=b?a:d;b=i[a+16>>2];if(b){a=b}else{a=i[a+20>>2]}if(a){continue}break}}if(!d|e>>>0>=i[4335]-f>>>0){break l}h=d+f|0;if(h>>>0<=d>>>0){break k}m=i[d+24>>2];b=i[d+12>>2];if((d|0)!=(b|0)){a=i[d+8>>2];i[a+12>>2]=b;i[b+8>>2]=a;break c}c=d+20|0;a=i[c>>2];if(!a){a=i[d+16>>2];if(!a){break i}c=d+16|0}while(1){g=c;b=a;c=a+20|0;a=i[c>>2];if(a){continue}c=b+16|0;a=i[b+16>>2];if(a){continue}break}i[g>>2]=0;break c}b=i[4335];if(b>>>0>=f>>>0){a=i[4338];c=b-f|0;u:{if(c>>>0>=16){i[4335]=c;d=a+f|0;i[4338]=d;i[d+4>>2]=c|1;i[a+b>>2]=c;i[a+4>>2]=f|3;break u}i[4338]=0;i[4335]=0;i[a+4>>2]=b|3;b=a+b|0;i[b+4>>2]=i[b+4>>2]|1}a=a+8|0;break a}d=i[4336];if(d>>>0>f>>>0){b=d-f|0;i[4336]=b;a=i[4339];c=a+f|0;i[4339]=c;i[c+4>>2]=b|1;i[a+4>>2]=f|3;a=a+8|0;break a}a=0;e=f+47|0;c=e;if(i[4451]){b=i[4453]}else{i[4454]=-1;i[4455]=-1;i[4452]=4096;i[4453]=4096;i[4451]=p+12&-16^1431655768;i[4456]=0;i[4444]=0;b=4096}g=c+b|0;h=0-b|0;c=g&h;if(c>>>0<=f>>>0){break a}b=i[4443];if(b){k=i[4441];m=k+c|0;if(m>>>0<=k>>>0|m>>>0>b>>>0){break a}}if(j[17776]&4){break f}v:{w:{b=i[4339];if(b){a=17780;while(1){k=i[a>>2];if(k+i[a+4>>2]>>>0>b>>>0?k>>>0<=b>>>0:0){break w}a=i[a+8>>2];if(a){continue}break}}b=rn(0);if((b|0)==-1){break g}g=c;a=i[4452];d=a+ -1|0;if(d&b){g=(c-b|0)+(b+d&0-a)|0}if(g>>>0<=f>>>0|g>>>0>2147483646){break g}a=i[4443];if(a){d=i[4441];h=d+g|0;if(h>>>0<=d>>>0|h>>>0>a>>>0){break g}}a=rn(g);if((b|0)!=(a|0)){break v}break e}g=h&g-d;if(g>>>0>2147483646){break g}b=rn(g);if((b|0)==(i[a>>2]+i[a+4>>2]|0)){break h}a=b}if(!((a|0)==-1|f+48>>>0<=g>>>0)){b=i[4453];b=b+(e-g|0)&0-b;if(b>>>0>2147483646){b=a;break e}if((rn(b)|0)!=-1){g=b+g|0;b=a;break e}rn(0-g|0);break g}b=a;if((a|0)!=-1){break e}break g}x()}d=0;break b}b=0;break c}if((b|0)!=-1){break e}}i[4444]=i[4444]|4}if(c>>>0>2147483646){break d}b=rn(c);a=rn(0);if(b>>>0>=a>>>0|(b|0)==-1|(a|0)==-1){break d}g=a-b|0;if(g>>>0<=f+40>>>0){break d}}a=i[4441]+g|0;i[4441]=a;if(a>>>0>l[4442]){i[4442]=a}x:{y:{z:{e=i[4339];if(e){a=17780;while(1){c=i[a>>2];d=i[a+4>>2];if((c+d|0)==(b|0)){break z}a=i[a+8>>2];if(a){continue}break}break y}a=i[4337];if(!(b>>>0>=a>>>0?a:0)){i[4337]=b}a=0;i[4446]=g;i[4445]=b;i[4341]=-1;i[4342]=i[4451];i[4448]=0;while(1){c=a<<3;d=c+17372|0;i[c+17380>>2]=d;i[c+17384>>2]=d;a=a+1|0;if((a|0)!=32){continue}break}a=g+ -40|0;c=b+8&7?-8-b&7:0;d=a-c|0;i[4336]=d;c=b+c|0;i[4339]=c;i[c+4>>2]=d|1;i[(a+b|0)+4>>2]=40;i[4340]=i[4455];break x}if(j[a+12|0]&8|b>>>0<=e>>>0|c>>>0>e>>>0){break y}i[a+4>>2]=d+g;a=e+8&7?-8-e&7:0;b=a+e|0;i[4339]=b;c=i[4336]+g|0;a=c-a|0;i[4336]=a;i[b+4>>2]=a|1;i[(c+e|0)+4>>2]=40;i[4340]=i[4455];break x}d=i[4337];if(b>>>0>>0){i[4337]=b;d=0}c=b+g|0;a=17780;A:{B:{C:{D:{E:{F:{while(1){if((c|0)!=i[a>>2]){a=i[a+8>>2];if(a){continue}break F}break}if(!(j[a+12|0]&8)){break E}}a=17780;while(1){c=i[a>>2];if(c>>>0<=e>>>0){d=c+i[a+4>>2]|0;if(d>>>0>e>>>0){break D}}a=i[a+8>>2];continue}}i[a>>2]=b;i[a+4>>2]=i[a+4>>2]+g;m=(b+8&7?-8-b&7:0)+b|0;i[m+4>>2]=f|3;b=c+(c+8&7?-8-c&7:0)|0;a=(b-m|0)-f|0;h=f+m|0;if((b|0)==(e|0)){i[4339]=h;a=i[4336]+a|0;i[4336]=a;i[h+4>>2]=a|1;break B}if(i[4338]==(b|0)){i[4338]=h;a=i[4335]+a|0;i[4335]=a;i[h+4>>2]=a|1;i[a+h>>2]=a;break B}c=i[b+4>>2];if((c&3)==1){n=c&-8;G:{if(c>>>0<=255){f=c>>>3|0;c=i[b+8>>2];d=i[b+12>>2];if((d|0)==(c|0)){q=17332,r=i[4333]&Nn(f),i[q>>2]=r;break G}i[c+12>>2]=d;i[d+8>>2]=c;break G}k=i[b+24>>2];g=i[b+12>>2];H:{if((g|0)!=(b|0)){c=i[b+8>>2];i[c+12>>2]=g;i[g+8>>2]=c;break H}I:{e=b+20|0;f=i[e>>2];if(f){break I}e=b+16|0;f=i[e>>2];if(f){break I}g=0;break H}while(1){c=e;g=f;e=f+20|0;f=i[e>>2];if(f){continue}e=g+16|0;f=i[g+16>>2];if(f){continue}break}i[c>>2]=0}if(!k){break G}c=i[b+28>>2];d=(c<<2)+17636|0;J:{if(i[d>>2]==(b|0)){i[d>>2]=g;if(g){break J}q=17336,r=i[4334]&Nn(c),i[q>>2]=r;break G}i[k+(i[k+16>>2]==(b|0)?16:20)>>2]=g;if(!g){break G}}i[g+24>>2]=k;c=i[b+16>>2];if(c){i[g+16>>2]=c;i[c+24>>2]=g}c=i[b+20>>2];if(!c){break G}i[g+20>>2]=c;i[c+24>>2]=g}b=b+n|0;a=a+n|0}i[b+4>>2]=i[b+4>>2]&-2;i[h+4>>2]=a|1;i[a+h>>2]=a;if(a>>>0<=255){b=a>>>3|0;a=(b<<3)+17372|0;c=i[4333];b=1<>2]}i[a+8>>2]=h;i[b+12>>2]=h;i[h+12>>2]=a;i[h+8>>2]=b;break B}e=31;if(a>>>0<=16777215){c=a>>>8|0;b=c+1048320>>>16&8;d=c<>>16&4;f=d<>>16&2;b=(f<>>15|0)-(d|(b|c))|0;e=(b<<1|a>>>b+21&1)+28|0}i[h+28>>2]=e;i[h+16>>2]=0;i[h+20>>2]=0;b=(e<<2)+17636|0;c=i[4334];d=1<>2]=h;i[h+24>>2]=b;break L}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=i[b>>2];while(1){c=b;if((i[b+4>>2]&-8)==(a|0)){break C}b=e>>>29|0;e=e<<1;d=(c+(b&4)|0)+16|0;b=i[d>>2];if(b){continue}break}i[d>>2]=h;i[h+24>>2]=c}i[h+12>>2]=h;i[h+8>>2]=h;break B}a=g+ -40|0;c=b+8&7?-8-b&7:0;h=a-c|0;i[4336]=h;c=b+c|0;i[4339]=c;i[c+4>>2]=h|1;i[(a+b|0)+4>>2]=40;i[4340]=i[4455];a=(d+(d+ -39&7?39-d&7:0)|0)+ -47|0;c=a>>>0>>0?e:a;i[c+4>>2]=27;a=i[4448];i[c+16>>2]=i[4447];i[c+20>>2]=a;a=i[4446];i[c+8>>2]=i[4445];i[c+12>>2]=a;i[4447]=c+8;i[4446]=g;i[4445]=b;i[4448]=0;a=c+24|0;while(1){i[a+4>>2]=7;b=a+8|0;a=a+4|0;if(d>>>0>b>>>0){continue}break}if((c|0)==(e|0)){break x}i[c+4>>2]=i[c+4>>2]&-2;d=c-e|0;i[e+4>>2]=d|1;i[c>>2]=d;if(d>>>0<=255){b=d>>>3|0;a=(b<<3)+17372|0;c=i[4333];b=1<>2]}i[a+8>>2]=e;i[b+12>>2]=e;i[e+12>>2]=a;i[e+8>>2]=b;break x}a=31;i[e+16>>2]=0;i[e+20>>2]=0;if(d>>>0<=16777215){b=d>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;g=c<>>16&2;a=(g<>>15|0)-(c|(a|b))|0;a=(a<<1|d>>>a+21&1)+28|0}i[e+28>>2]=a;b=(a<<2)+17636|0;c=i[4334];g=1<>2]=e;i[e+24>>2]=b;break N}a=d<<((a|0)==31?0:25-(a>>>1|0)|0);b=i[b>>2];while(1){c=b;if((d|0)==(i[b+4>>2]&-8)){break A}b=a>>>29|0;a=a<<1;g=(c+(b&4)|0)+16|0;b=i[g>>2];if(b){continue}break}i[g>>2]=e;i[e+24>>2]=c}i[e+12>>2]=e;i[e+8>>2]=e;break x}a=i[c+8>>2];i[a+12>>2]=h;i[c+8>>2]=h;i[h+24>>2]=0;i[h+12>>2]=c;i[h+8>>2]=a}a=m+8|0;break a}a=i[c+8>>2];i[a+12>>2]=e;i[c+8>>2]=e;i[e+24>>2]=0;i[e+12>>2]=c;i[e+8>>2]=a}a=i[4336];if(a>>>0<=f>>>0){break d}b=a-f|0;i[4336]=b;a=i[4339];c=a+f|0;i[4339]=c;i[c+4>>2]=b|1;i[a+4>>2]=f|3;a=a+8|0;break a}i[4312]=48;a=0;break a}O:{if(!m){break O}a=i[d+28>>2];c=(a<<2)+17636|0;P:{if(i[c>>2]==(d|0)){i[c>>2]=b;if(b){break P}k=Nn(a)&k;i[4334]=k;break O}i[m+(i[m+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break O}}i[b+24>>2]=m;a=i[d+16>>2];if(a){i[b+16>>2]=a;i[a+24>>2]=b}a=i[d+20>>2];if(!a){break O}i[b+20>>2]=a;i[a+24>>2]=b}Q:{if(e>>>0<=15){a=e+f|0;i[d+4>>2]=a|3;a=a+d|0;i[a+4>>2]=i[a+4>>2]|1;break Q}i[d+4>>2]=f|3;i[h+4>>2]=e|1;i[e+h>>2]=e;if(e>>>0<=255){b=e>>>3|0;a=(b<<3)+17372|0;c=i[4333];b=1<>2]}i[a+8>>2]=h;i[b+12>>2]=h;i[h+12>>2]=a;i[h+8>>2]=b;break Q}a=31;if(e>>>0<=16777215){b=e>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;f=c<>>16&2;a=(f<>>15|0)-(c|(a|b))|0;a=(a<<1|e>>>a+21&1)+28|0}i[h+28>>2]=a;i[h+16>>2]=0;i[h+20>>2]=0;b=(a<<2)+17636|0;S:{c=1<>2]=h;break T}a=e<<((a|0)==31?0:25-(a>>>1|0)|0);f=i[b>>2];while(1){b=f;if((i[b+4>>2]&-8)==(e|0)){break S}c=a>>>29|0;a=a<<1;c=(b+(c&4)|0)+16|0;f=i[c>>2];if(f){continue}break}i[c>>2]=h}i[h+24>>2]=b;i[h+12>>2]=h;i[h+8>>2]=h;break Q}a=i[b+8>>2];i[a+12>>2]=h;i[b+8>>2]=h;i[h+24>>2]=0;i[h+12>>2]=b;i[h+8>>2]=a}a=d+8|0;break a}U:{if(!m){break U}a=i[b+28>>2];c=(a<<2)+17636|0;V:{if(i[c>>2]==(b|0)){i[c>>2]=d;if(d){break V}q=17336,r=Nn(a)&n,i[q>>2]=r;break U}i[(i[m+16>>2]==(b|0)?16:20)+m>>2]=d;if(!d){break U}}i[d+24>>2]=m;a=i[b+16>>2];if(a){i[d+16>>2]=a;i[a+24>>2]=d}a=i[b+20>>2];if(!a){break U}i[d+20>>2]=a;i[a+24>>2]=d}W:{if(e>>>0<=15){a=e+f|0;i[b+4>>2]=a|3;a=a+b|0;i[a+4>>2]=i[a+4>>2]|1;break W}i[b+4>>2]=f|3;i[o+4>>2]=e|1;i[e+o>>2]=e;if(k){c=k>>>3|0;a=(c<<3)+17372|0;d=i[4338];c=1<>2]}i[a+8>>2]=d;i[c+12>>2]=d;i[d+12>>2]=a;i[d+8>>2]=c}i[4338]=o;i[4335]=e}a=b+8|0}L=p+16|0;return a|0}function Xf(a,b){var c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;m=L-96|0;L=m;i[m+72>>2]=0;i[m+64>>2]=0;i[m+68>>2]=0;i[m+48>>2]=0;i[m+52>>2]=0;i[m+40>>2]=0;i[m+44>>2]=0;i[m+56>>2]=1065353216;i[m+32>>2]=0;i[m+24>>2]=0;i[m+28>>2]=0;A=i[a+124>>2];a:{b:{c:{d:{e:{f:{g:{h:{if((b|0)<1){break h}C=i[a+216>>2]!=i[a+220>>2];r=1;while(1){f=w;w=f+1|0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{if(!j[a+308|0]){break s}t:{u:{n=i[a+296>>2];s=i[a+304>>2];c=n+(s>>>3|0)|0;h=i[a+300>>2];if(c>>>0>=h>>>0){break u}d=j[c|0];c=s+1|0;i[a+304>>2]=c;if(!(d>>>(s&7)&1)){break u}p=c>>>3|0;d=n+p|0;v:{if(d>>>0>=h>>>0){d=c;c=0;break v}e=j[d|0];d=s+2|0;i[a+304>>2]=d;p=d>>>3|0;c=e>>>(c&7)&1}e=n+p|0;if(e>>>0>>0){e=j[e|0];i[a+304>>2]=d+1;d=e>>>(d&7)<<1&2}else{d=0}c=(c|d)<<1;switch(c-1|0){case 0:case 2:case 4:break b;case 5:break r;case 1:case 3:break t;default:break s}}d=i[m+68>>2];if((d|0)==i[m+64>>2]){d=-1;break g}y=-1;u=i[a+8>>2];s=i[u+24>>2];c=s;p=d+ -4|0;r=i[p>>2];e=-1;w:{if((r|0)==-1){break w}d=r+1|0;d=(d>>>0)%3|0?d:r+ -2|0;e=-1;if((d|0)==-1){break w}e=i[i[u>>2]+(d<<2)>>2]}d=i[c+(e<<2)>>2];if((d|0)!=-1){c=d+1|0;y=(c>>>0)%3|0?c:d+ -2|0}d=i[u+12>>2];q=o(f,3);c=q+1|0;i[d+(r<<2)>>2]=c;n=c<<2;i[n+d>>2]=r;t=q+2|0;i[d+(y<<2)>>2]=t;f=t<<2;i[f+d>>2]=y;h=-1;c=-1;x:{if((r|0)==-1){break x}d=r+((r>>>0)%3|0?-1:2)|0;c=-1;if((d|0)==-1){break x}c=i[i[u>>2]+(d<<2)>>2]}y:{if((y|0)==-1){break y}d=y+1|0;d=(d>>>0)%3|0?d:y+ -2|0;if((d|0)==-1){break y}h=i[i[u>>2]+(d<<2)>>2]}d=-1;if((c|0)==(e|0)|(e|0)==(h|0)){break g}d=i[u>>2];i[d+(q<<2)>>2]=e;i[d+n>>2]=h;i[d+f>>2]=c;if((c|0)!=-1){i[s+(c<<2)>>2]=t}d=i[a+120>>2]+(e>>>3&536870908)|0;c=i[d>>2];D=d,E=Nn(e)&c,i[D>>2]=E;i[p>>2]=q;break i}e=i[m+68>>2];if((e|0)==i[m+64>>2]){d=-1;break g}t=i[a+8>>2];d=i[t+12>>2];q=o(f,3);p=(c|1)==5;n=q+(p?2:1)|0;c=n<<2;u=i[e+ -4>>2];i[d+c>>2]=u;i[d+(u<<2)>>2]=n;bg(t+24|0,11508);d=-1;h=i[a+8>>2];s=i[h+24>>2];if(i[h+28>>2]-s>>2>(A|0)){break g}e=q+2|0;h=i[h>>2];v=h+c|0;d=i[t+28>>2]-i[t+24>>2]|0;c=(d>>2)+ -1|0;i[v>>2]=c;if(d){i[s+(c<<2)>>2]=n}e=p?q:e;n=h+(p+q<<2)|0;z:{A:{B:{if((u|0)!=-1){c=u+((u>>>0)%3|0?-1:2)|0;if((c|0)==-1){break B}c=i[h+(c<<2)>>2];i[h+(e<<2)>>2]=c;if((c|0)==-1){break A}i[s+(c<<2)>>2]=e;break A}i[h+(e<<2)>>2]=-1;d=-1;break z}i[h+(e<<2)>>2]=-1}c=u+1|0;c=(c>>>0)%3|0?c:u+ -2|0;d=-1;if((c|0)==-1){break z}d=i[h+(c<<2)>>2]}i[n>>2]=d;i[i[m+68>>2]+ -4>>2]=q;break q}p=i[m+68>>2];e=i[m+64>>2];if((p|0)==(e|0)){d=-1;break g}n=p+ -4|0;z=i[n>>2];i[m+68>>2]=n;q=i[m+44>>2];if(!q){break n}d=i[m+40>>2];t=Mn(q)>>>0>1;h=f&q+2147483647;C:{if(!t){break C}c=f;h=c;if(c>>>0>>0){break C}h=(f>>>0)%(q>>>0)|0}c=i[d+(h<<2)>>2];if(!c){break n}d=i[c>>2];if(!d){break n}s=q+ -1|0;while(1){D:{c=i[d+4>>2];E:{if((f|0)!=(c|0)){F:{if(!t){c=c&s;break F}if(c>>>0>>0){break F}c=(c>>>0)%(q>>>0)|0}if((c|0)!=(h|0)){break n}break E}if((f|0)==i[d+8>>2]){break D}}d=i[d>>2];if(d){continue}break n}break}h=i[m+72>>2];if((h|0)!=(n|0)){i[n>>2]=i[d+12>>2];i[m+68>>2]=p;c=e;break m}t=n-e|0;p=t>>2;s=p+1|0;if(s>>>0>=1073741824){break p}n=h-e|0;h=n>>1;n=n>>2>>>0<536870911?h>>>0>>0?s:h:1073741823;c=0;G:{if(!n){break G}if(n>>>0>=1073741824){break a}c=Gm(n<<2)}h=c+(p<<2)|0;i[h>>2]=i[d+12>>2];d=(n<<2)+c|0;p=h+4|0;if((t|0)>=1){sn(c,e,t)}i[m+72>>2]=d;i[m+68>>2]=p;i[m+64>>2]=c;if(!e){break m}qn(e);p=i[m+68>>2];c=i[m+64>>2];break m}c=i[a+8>>2];bg(c+24|0,11508);d=-1;e=i[a+8>>2];q=o(f,3);p=i[c+28>>2]-i[c+24>>2]|0;s=p>>2;h=s+ -1|0;i[i[e>>2]+(q<<2)>>2]=h;bg(e+24|0,11508);n=q+1|0;i[i[e>>2]+(n<<2)>>2]=(i[e+28>>2]-i[e+24>>2]>>2)+ -1;c=i[a+8>>2];bg(c+24|0,11508);e=q+2|0;i[i[c>>2]+(e<<2)>>2]=(i[c+28>>2]-i[c+24>>2]>>2)+ -1;c=i[a+8>>2];t=i[c+24>>2];if(i[c+28>>2]-t>>2>(A|0)){break g}H:{I:{if(!p){i[t+(s<<2)>>2]=n;d=1;break I}i[t+(h<<2)>>2]=q;d=0;if((p|0)==-4){break I}i[t+(s<<2)>>2]=n;d=s+1|0;if((d|0)==-1){break H}}i[t+(d<<2)>>2]=e}c=i[m+68>>2];d=i[m+72>>2];if((c|0)!=(d|0)){i[c>>2]=q;i[m+68>>2]=c+4;break q}s=i[m+64>>2];p=c-s|0;h=p>>2;n=h+1|0;if(n>>>0>=1073741824){break o}e=d-s|0;d=e>>1;e=e>>2>>>0<536870911?d>>>0>>0?n:d:1073741823;c=0;J:{if(!e){break J}if(e>>>0>=1073741824){break a}c=Gm(e<<2)}d=c+(h<<2)|0;i[d>>2]=q;e=c+(e<<2)|0;d=d+4|0;if((p|0)>=1){sn(c,s,p)}i[m+72>>2]=e;i[m+68>>2]=d;i[m+64>>2]=c;if(!s){break q}qn(s)}d=i[a+40>>2];if((d|0)==i[a+36>>2]){break i}f=(f^-1)+b|0;while(1){c=i[d+ -8>>2];if(c>>>0>f>>>0){break l}if((c|0)!=(f|0)){break i}e=j[d+ -4|0];c=d+ -12|0;d=i[c>>2];i[a+40>>2]=c;if((d|0)<0){break l}h=i[i[m+68>>2]+ -4>>2];i[m+20>>2]=(d^-1)+b;i[m+88>>2]=m+20;cg(m,m+40|0,m+20|0,m+88|0);d=i[m>>2];K:{if(e&1){c=-1;if((h|0)==-1){break K}c=h+1|0;c=(c>>>0)%3|0?c:h+ -2|0;break K}c=-1;if((h|0)==-1){break K}c=h+ -1|0;if((h>>>0)%3|0){break K}c=h+2|0}i[d+12>>2]=c;d=i[a+40>>2];if((d|0)!=i[a+36>>2]){continue}break}break i}Vm();x()}Vm();x()}p=n;c=e}if((c|0)==(p|0)){break l}u=i[p+ -4>>2];d=(u|0)==-1;q=i[a+8>>2];if(i[i[q+12>>2]+(u<<2)>>2]!=-1?!d:0){break l}h=(z|0)==-1;s=i[q+12>>2];if(i[s+(z<<2)>>2]!=-1?!h:0){break l}t=o(f,3);f=t+2|0;i[s+(u<<2)>>2]=f;n=f<<2;i[n+s>>2]=u;c=t+1|0;i[s+(z<<2)>>2]=c;e=c<<2;i[e+s>>2]=z;if(d){break k}r=-1;v=-1;y=i[q>>2];d=y+(t<<2)|0;c=u+((u>>>0)%3|0?-1:2)|0;if((c|0)!=-1){v=i[(c<<2)+y>>2]}i[d>>2]=v;c=u+1|0;c=(c>>>0)%3|0?c:u+ -2|0;if((c|0)==-1){break j}r=i[(c<<2)+y>>2];break j}d=-1;if(r&1){break g}break h}v=-1;y=i[q>>2];i[y+(t<<2)>>2]=-1;r=-1}i[e+y>>2]=r;L:{M:{N:{if(!h){c=z+((z>>>0)%3|0?-1:2)|0;if((c|0)==-1){break N}c=i[(c<<2)+y>>2];i[n+y>>2]=c;if((c|0)==-1){break M}i[i[q+24>>2]+(c<<2)>>2]=f;break M}i[n+y>>2]=-1;B=-1;d=-1;break L}i[n+y>>2]=-1}B=-1;c=z+1|0;c=(c>>>0)%3|0?c:z+ -2|0;d=-1;if((c|0)==-1){break L}B=i[(c<<2)+y>>2];d=c}c=i[q+24>>2];e=c+(B<<2)|0;if((v|0)!=-1){i[c+(v<<2)>>2]=i[e>>2]}O:{if((d|0)==-1){break O}while(1){i[(d<<2)+y>>2]=v;c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1){break O}d=i[s+(c<<2)>>2];if((d|0)==-1){break O}c=d+1|0;d=(c>>>0)%3|0?c:d+ -2|0;if((d|0)!=-1){continue}break}}i[e>>2]=-1;P:{if(C){break P}c=i[m+28>>2];d=i[m+32>>2];if((c|0)!=(d|0)){i[c>>2]=B;i[m+28>>2]=c+4;break P}Q:{s=i[m+24>>2];n=c-s|0;f=n>>2;h=f+1|0;if(h>>>0<1073741824){e=d-s|0;d=e>>1;e=e>>2>>>0<536870911?d>>>0>>0?h:d:1073741823;c=0;R:{if(!e){break R}if(e>>>0>=1073741824){break Q}c=Gm(e<<2)}d=c+(f<<2)|0;i[d>>2]=B;e=c+(e<<2)|0;d=d+4|0;if((n|0)>=1){sn(c,s,n)}i[m+32>>2]=e;i[m+28>>2]=d;i[m+24>>2]=c;if(!s){break P}qn(s);p=i[m+68>>2];break P}Vm();x()}break a}i[p+ -4>>2]=t}r=(w|0)<(b|0);if((b|0)!=(w|0)){continue}break}w=b}d=-1;b=i[a+8>>2];if(i[b+28>>2]-i[b+24>>2]>>2>(A|0)){break g}r=i[m+68>>2];if((r|0)!=i[m+64>>2]){C=a+72|0;b=a+60|0;s=a+312|0;while(1){c=r+ -4|0;q=i[c>>2];i[m+68>>2]=c;S:{T:{U:{V:{if(k[a+270>>1]<=513){if(!j[a+364|0]){break U}e=i[a+360>>2];c=i[a+352>>2]+(e>>>3|0)|0;if(c>>>0>=l[a+356>>2]){break T}c=j[c|0];i[a+360>>2]=e+1;c=c>>>(e&7)&1;break V}c=Ee(s)}if(!c){break T}}p=i[a+8>>2];z=i[p>>2];if((w|0)>=((i[p+4>>2]-z>>2>>>0)/3|0)){break g}h=-1;v=-1;n=i[p+24>>2];f=n;c=-1;W:{if((q|0)==-1){break W}e=q+1|0;e=(e>>>0)%3|0?e:q+ -2|0;c=-1;if((e|0)==-1){break W}c=i[z+(e<<2)>>2]}f=i[f+(c<<2)>>2];X:{if((f|0)==-1){break X}e=f+1|0;e=(e>>>0)%3|0?e:f+ -2|0;if((e|0)==-1){break X}f=e+1|0;f=(f>>>0)%3|0?f:e+ -2|0;if((f|0)!=-1){v=i[z+(f<<2)>>2]}h=e}r=-1;B=-1;n=i[n+(v<<2)>>2];f=-1;Y:{if((n|0)==-1){break Y}e=n+1|0;e=(e>>>0)%3|0?e:n+ -2|0;f=-1;if((e|0)==-1){break Y}f=e+1|0;f=(f>>>0)%3|0?f:e+ -2|0;if((f|0)!=-1){B=i[z+(f<<2)>>2]}f=e}A=i[p+12>>2];u=o(w,3);p=u<<2;i[A+p>>2]=q;i[A+(q<<2)>>2]=u;q=u+1|0;n=q<<2;i[n+A>>2]=h;i[A+(h<<2)>>2]=q;t=u+2|0;e=t<<2;i[e+A>>2]=f;i[A+(f<<2)>>2]=t;i[p+z>>2]=v;n=n+z|0;i[n>>2]=B;h=e+z|0;i[h>>2]=c;p=i[a+120>>2];f=q>>>0>>0?-1:v;e=p+(f>>>3&536870908)|0;c=i[e>>2];D=e,E=Nn(f)&c,i[D>>2]=E;r=(q|0)!=-1?i[n>>2]:r;e=p+(r>>>3&536870908)|0;c=i[e>>2];D=e,E=Nn(r)&c,i[D>>2]=E;r=-1;r=(t|0)!=-1?i[h>>2]:r;e=p+(r>>>3&536870908)|0;c=i[e>>2];D=e,E=Nn(r)&c,i[D>>2]=E;r=i[a+64>>2];e=i[a+68>>2];if((r|0)==e<<5){if((r+1|0)<=-1){break e}c=b;if(r>>>0<=1073741822){f=r+32&-32;e=e<<6;e=e>>>0>>0?f:e}else{e=2147483647}Sc(c,e);r=i[a+64>>2]}w=w+1|0;i[a+64>>2]=r+1;c=i[a+60>>2]+(r>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<<(r&31);c=i[a+76>>2];e=i[a+80>>2];if((c|0)!=(e|0)){i[c>>2]=u;i[a+76>>2]=c+4;break S}t=i[C>>2];p=c-t|0;h=p>>2;n=h+1|0;if(n>>>0>=1073741824){break d}f=e-t|0;e=f>>1;f=f>>2>>>0<536870911?e>>>0>>0?n:e:1073741823;c=0;Z:{if(!f){break Z}if(f>>>0>=1073741824){break a}c=Gm(f<<2)}e=c+(h<<2)|0;i[e>>2]=u;f=c+(f<<2)|0;e=e+4|0;if((p|0)>=1){sn(c,t,p)}i[a+80>>2]=f;i[a+76>>2]=e;i[a+72>>2]=c;if(!t){break S}qn(t);break S}c=i[a+64>>2];h=i[a+68>>2];if((c|0)==h<<5){if((c+1|0)<=-1){break e}e=b;if(c>>>0<=1073741822){f=c+32&-32;c=h<<6;c=c>>>0>>0?f:c}else{c=2147483647}Sc(e,c);c=i[a+64>>2]}i[a+64>>2]=c+1;f=i[a+60>>2]+(c>>>3&536870908)|0;e=i[f>>2];D=f,E=Nn(c)&e,i[D>>2]=E;c=i[a+76>>2];e=i[a+80>>2];if((c|0)!=(e|0)){i[c>>2]=q;i[a+76>>2]=c+4;break S}t=i[C>>2];p=c-t|0;h=p>>2;n=h+1|0;if(n>>>0>=1073741824){break d}f=e-t|0;e=f>>1;f=f>>2>>>0<536870911?e>>>0>>0?n:e:1073741823;c=0;_:{if(!f){break _}if(f>>>0>=1073741824){break c}c=Gm(f<<2)}e=c+(h<<2)|0;i[e>>2]=q;f=c+(f<<2)|0;e=e+4|0;if((p|0)>=1){sn(c,t,p)}i[a+80>>2]=f;i[a+76>>2]=e;i[a+72>>2]=c;if(!t){break S}qn(t)}r=i[m+68>>2];if((r|0)!=i[m+64>>2]){continue}break}b=i[a+8>>2]}if(((i[b+4>>2]-i[b>>2]>>2>>>0)/3|0)!=(w|0)){break g}d=i[b+28>>2]-i[b+24>>2]>>2;v=i[m+24>>2];f=i[m+28>>2];if((v|0)==(f|0)){break f}while(1){h=i[v>>2];r=i[b+24>>2];w=d+ -1|0;$:{if(i[r+(w<<2)>>2]!=-1){c=d;break $}r=i[b+24>>2];while(1){w=d+ -2|0;c=d+ -1|0;d=c;if(i[(w<<2)+r>>2]==-1){continue}break}}if(w>>>0>=h>>>0){i[m>>2]=b;e=w<<2;d=i[e+r>>2];g[m+12|0]=1;i[m+8>>2]=d;i[m+4>>2]=d;if((d|0)!=-1){i[i[b>>2]+(d<<2)>>2]=h;Ld(m);d=i[m+8>>2];if((d|0)!=-1){while(1){i[i[i[a+8>>2]>>2]+(d<<2)>>2]=h;Ld(m);d=i[m+8>>2];if((d|0)!=-1){continue}break}}b=i[a+8>>2]}d=i[b+24>>2];e=d+e|0;if((h|0)!=-1){i[d+(h<<2)>>2]=i[e>>2]}i[e>>2]=-1;p=1<<(h&31);d=i[a+120>>2];n=d+(h>>>3&536870908)|0;e=n;h=d+(w>>>3&536870908)|0;d=1<<(w&31);w=p|i[n>>2];aa:{if(i[h>>2]&d){break aa}w=i[n>>2]&(p^-1)}i[e>>2]=w;i[h>>2]=i[h>>2]&(d^-1);c=c+ -1|0}d=c;v=v+4|0;if((f|0)!=(v|0)){continue}break}}v=i[m+24>>2]}if(v){i[m+28>>2]=v;qn(v)}a=i[m+48>>2];if(a){while(1){b=i[a>>2];qn(a);a=b;if(a){continue}break}}a=i[m+40>>2];i[m+40>>2]=0;if(a){qn(a)}a=i[m+64>>2];if(a){i[m+68>>2]=a;qn(a)}L=m+96|0;return d}Vm();x()}Vm();x()}Da(12220)}x()}Da(12220);x()}function ng(a,b){var c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;p=L-96|0;L=p;i[p+72>>2]=0;i[p+64>>2]=0;i[p+68>>2]=0;i[p+48>>2]=0;i[p+52>>2]=0;i[p+40>>2]=0;i[p+44>>2]=0;i[p+56>>2]=1065353216;i[p+32>>2]=0;i[p+24>>2]=0;i[p+28>>2]=0;z=i[a+124>>2];a:{b:{c:{d:{e:{f:{if((b|0)<1){break f}w=a+232|0;y=i[a+216>>2]!=i[a+220>>2];s=1;while(1){e=u;u=e+1|0;c=pg(w);g:{if(!c){d=i[p+68>>2];if((d|0)==i[p+64>>2]){d=-1;break e}n=-1;f=i[a+8>>2];q=i[f+24>>2];m=q;s=d+ -4|0;d=i[s>>2];c=-1;h:{if((d|0)==-1){break h}h=d+1|0;h=(h>>>0)%3|0?h:d+ -2|0;c=-1;if((h|0)==-1){break h}c=i[i[f>>2]+(h<<2)>>2]}m=i[m+(c<<2)>>2];if((m|0)!=-1){h=m+1|0;n=(h>>>0)%3|0?h:m+ -2|0}h=i[f+12>>2];m=o(e,3);e=m+1|0;i[h+(d<<2)>>2]=e;t=e<<2;i[t+h>>2]=d;r=m+2|0;i[h+(n<<2)>>2]=r;v=r<<2;i[v+h>>2]=n;h=-1;e=-1;i:{if((d|0)==-1){break i}d=d+((d>>>0)%3|0?-1:2)|0;e=-1;if((d|0)==-1){break i}e=i[i[f>>2]+(d<<2)>>2]}j:{if((n|0)==-1){break j}d=n+1|0;d=(d>>>0)%3|0?d:n+ -2|0;if((d|0)==-1){break j}h=i[i[f>>2]+(d<<2)>>2]}d=-1;if((c|0)==(e|0)|(c|0)==(h|0)){break e}d=i[f>>2];i[d+(m<<2)>>2]=c;i[d+t>>2]=h;i[d+v>>2]=e;if((e|0)!=-1){i[q+(e<<2)>>2]=r}d=i[a+120>>2]+(c>>>3&536870908)|0;e=i[d>>2];D=d,E=Nn(c)&e,i[D>>2]=E;i[s>>2]=m;qg(w,m);break g}d=-1;k:{l:{m:{n:{o:{p:{q:{r:{s:{switch(c+ -1|0){case 2:case 4:d=i[p+68>>2];if((d|0)==i[p+64>>2]){d=-1;break e}m=i[a+8>>2];h=i[m+12>>2];f=o(e,3);n=(c|0)==5;r=f+(n?2:1)|0;t=r<<2;c=i[d+ -4>>2];i[h+t>>2]=c;i[h+(c<<2)>>2]=r;bg(m+24|0,11508);d=-1;q=i[a+8>>2];h=i[q+24>>2];if(i[q+28>>2]-h>>2>(z|0)){break e}v=f+2|0;d=i[q>>2];m=i[m+28>>2]-i[m+24>>2]|0;q=(m>>2)+ -1|0;i[d+t>>2]=q;if(m){i[h+(q<<2)>>2]=r}m=n?f:v;q=d+(f+n<<2)|0;t:{u:{v:{if((c|0)!=-1){n=c+((c>>>0)%3|0?-1:2)|0;if((n|0)==-1){break v}n=i[d+(n<<2)>>2];i[d+(m<<2)>>2]=n;if((n|0)==-1){break u}i[h+(n<<2)>>2]=m;break u}i[d+(m<<2)>>2]=-1;h=-1;break t}i[d+(m<<2)>>2]=-1}h=c+1|0;c=(h>>>0)%3|0?h:c+ -2|0;h=-1;if((c|0)==-1){break t}h=i[d+(c<<2)>>2]}i[q>>2]=h;d=i[p+68>>2];i[d+ -4>>2]=f;break r;case 0:m=i[p+68>>2];f=i[p+64>>2];if((m|0)==(f|0)){break e}h=m+ -4|0;r=i[h>>2];i[p+68>>2]=h;q=i[p+44>>2];if(!q){break o}v=i[p+40>>2];t=Mn(q)>>>0>1;d=e&q+2147483647;w:{if(!t){break w}c=e;d=c;if(c>>>0>>0){break w}d=(e>>>0)%(q>>>0)|0}n=d;c=i[v+(n<<2)>>2];if(!c){break o}d=i[c>>2];if(!d){break o}v=q+ -1|0;while(1){x:{c=i[d+4>>2];y:{if((e|0)!=(c|0)){z:{if(!t){c=c&v;break z}if(c>>>0>>0){break z}c=(c>>>0)%(q>>>0)|0}if((c|0)!=(n|0)){break o}break y}if((e|0)==i[d+8>>2]){break x}}d=i[d>>2];if(d){continue}break o}break}n=i[p+72>>2];if((n|0)!=(h|0)){i[h>>2]=i[d+12>>2];i[p+68>>2]=m;c=f;break n}h=h-f|0;q=h>>2;m=q+1|0;if(m>>>0>=1073741824){break q}n=n-f|0;t=n>>1;m=n>>2>>>0<536870911?t>>>0>>0?m:t:1073741823;c=0;A:{if(!m){break A}if(m>>>0>=1073741824){break a}c=Gm(m<<2)}n=c+(q<<2)|0;i[n>>2]=i[d+12>>2];d=(m<<2)+c|0;m=n+4|0;if((h|0)>=1){sn(c,f,h)}i[p+72>>2]=d;i[p+68>>2]=m;i[p+64>>2]=c;if(!f){break n}qn(f);m=i[p+68>>2];c=i[p+64>>2];break n;case 6:break s;default:break e}}m=i[a+8>>2];bg(m+24|0,11508);c=i[a+8>>2];f=o(e,3);h=i[m+28>>2]-i[m+24>>2]|0;m=h>>2;r=m+ -1|0;i[i[c>>2]+(f<<2)>>2]=r;bg(c+24|0,11508);n=f+1|0;i[i[c>>2]+(n<<2)>>2]=(i[c+28>>2]-i[c+24>>2]>>2)+ -1;c=i[a+8>>2];bg(c+24|0,11508);q=f+2|0;i[i[c>>2]+(q<<2)>>2]=(i[c+28>>2]-i[c+24>>2]>>2)+ -1;t=i[a+8>>2];c=i[t+24>>2];if(i[t+28>>2]-c>>2>(z|0)){break e}B:{C:{if(!h){i[c+(m<<2)>>2]=n;d=1;break C}i[c+(r<<2)>>2]=f;d=0;if((h|0)==-4){break C}i[c+(m<<2)>>2]=n;d=m+1|0;if((d|0)==-1){break B}}i[c+(d<<2)>>2]=q}c=i[p+68>>2];n=i[p+72>>2];if((c|0)!=(n|0)){i[c>>2]=f;d=c+4|0;i[p+68>>2]=d;break r}m=i[p+64>>2];h=c-m|0;r=h>>2;d=r+1|0;if(d>>>0>=1073741824){break p}n=n-m|0;q=n>>1;d=n>>2>>>0<536870911?q>>>0>>0?d:q:1073741823;c=0;D:{if(!d){break D}if(d>>>0>=1073741824){break a}c=Gm(d<<2)}n=c+(r<<2)|0;i[n>>2]=f;f=c+(d<<2)|0;d=n+4|0;if((h|0)>=1){sn(c,m,h)}i[p+72>>2]=f;i[p+68>>2]=d;i[p+64>>2]=c;if(!m){break r}qn(m);d=i[p+68>>2]}qg(w,i[d+ -4>>2]);d=i[a+40>>2];if((d|0)==i[a+36>>2]){break g}e=(e^-1)+b|0;while(1){c=i[d+ -8>>2];if(c>>>0>e>>>0){break m}if((c|0)!=(e|0)){break g}m=j[d+ -4|0];c=d+ -12|0;f=i[c>>2];i[a+40>>2]=c;if((f|0)<0){break m}c=i[i[p+68>>2]+ -4>>2];i[p+20>>2]=(f^-1)+b;i[p+88>>2]=p+20;cg(p,p+40|0,p+20|0,p+88|0);f=i[p>>2];E:{if(m&1){d=-1;if((c|0)==-1){break E}d=c+1|0;d=(d>>>0)%3|0?d:c+ -2|0;break E}d=-1;if((c|0)==-1){break E}d=c+ -1|0;if((c>>>0)%3|0){break E}d=c+2|0}i[f+12>>2]=d;d=i[a+40>>2];if((d|0)!=i[a+36>>2]){continue}break}break g}Vm();x()}Vm();x()}m=h;c=f}if((c|0)==(m|0)){break m}d=i[m+ -4>>2];c=(d|0)==-1;f=i[a+8>>2];if(i[i[f+12>>2]+(d<<2)>>2]!=-1?!c:0){break m}v=(r|0)==-1;h=i[f+12>>2];if(i[h+(r<<2)>>2]!=-1?!v:0){break m}q=o(e,3);t=q+2|0;i[h+(d<<2)>>2]=t;s=t<<2;i[s+h>>2]=d;e=q+1|0;i[h+(r<<2)>>2]=e;A=e<<2;i[A+h>>2]=r;if(c){break l}e=-1;c=-1;n=i[f>>2];C=n+(q<<2)|0;B=d+((d>>>0)%3|0?-1:2)|0;if((B|0)!=-1){c=i[(B<<2)+n>>2]}i[C>>2]=c;B=d+1|0;d=(B>>>0)%3|0?B:d+ -2|0;if((d|0)==-1){break k}e=i[(d<<2)+n>>2];break k}d=-1;if(s){break e}break f}c=-1;n=i[f>>2];i[n+(q<<2)>>2]=-1;e=-1}i[n+A>>2]=e;F:{G:{H:{if(!v){d=r+((r>>>0)%3|0?-1:2)|0;if((d|0)==-1){break H}d=i[(d<<2)+n>>2];i[n+s>>2]=d;if((d|0)==-1){break G}i[i[f+24>>2]+(d<<2)>>2]=t;break G}i[n+s>>2]=-1;s=-1;d=-1;break F}i[n+s>>2]=-1}s=-1;e=r+1|0;e=(e>>>0)%3|0?e:r+ -2|0;d=-1;if((e|0)==-1){break F}s=i[(e<<2)+n>>2];d=e}e=i[a+388>>2];r=c<<2;t=e+r|0;v=e;e=s<<2;i[t>>2]=i[t>>2]+i[v+e>>2];f=i[f+24>>2];e=f+e|0;if((c|0)!=-1){i[f+r>>2]=i[e>>2]}I:{if((d|0)==-1){break I}while(1){i[(d<<2)+n>>2]=c;f=d+1|0;d=(f>>>0)%3|0?f:d+ -2|0;if((d|0)==-1){break I}d=i[h+(d<<2)>>2];if((d|0)==-1){break I}f=d+1|0;d=(f>>>0)%3|0?f:d+ -2|0;if((d|0)!=-1){continue}break}}i[e>>2]=-1;J:{if(y){break J}c=i[p+28>>2];h=i[p+32>>2];if((c|0)!=(h|0)){i[c>>2]=s;i[p+28>>2]=c+4;break J}K:{d=i[p+24>>2];f=c-d|0;n=f>>2;e=n+1|0;if(e>>>0<1073741824){h=h-d|0;r=h>>1;e=h>>2>>>0<536870911?r>>>0>>0?e:r:1073741823;c=0;L:{if(!e){break L}if(e>>>0>=1073741824){break K}c=Gm(e<<2)}h=c+(n<<2)|0;i[h>>2]=s;e=c+(e<<2)|0;h=h+4|0;if((f|0)>=1){sn(c,d,f)}i[p+32>>2]=e;i[p+28>>2]=h;i[p+24>>2]=c;if(!d){break J}qn(d);m=i[p+68>>2];break J}Vm();x()}break a}i[m+ -4>>2]=q;qg(w,q)}s=(u|0)<(b|0);if((b|0)!=(u|0)){continue}break}u=b}d=-1;b=i[a+8>>2];if(i[b+28>>2]-i[b+24>>2]>>2>(z|0)){break e}e=i[p+68>>2];if((e|0)!=i[p+64>>2]){z=a+72|0;b=a+60|0;t=a+312|0;while(1){c=e+ -4|0;r=i[c>>2];i[p+68>>2]=c;M:{N:{O:{P:{if(k[a+270>>1]<=513){if(!j[a+364|0]){break O}c=i[a+360>>2];e=i[a+352>>2]+(c>>>3|0)|0;if(e>>>0>=l[a+356>>2]){break N}e=j[e|0];i[a+360>>2]=c+1;c=e>>>(c&7)&1;break P}c=Ee(t)}if(!c){break N}}s=i[a+8>>2];q=i[s>>2];if((u|0)>=((i[s+4>>2]-q>>2>>>0)/3|0)){break e}c=-1;n=-1;f=i[s+24>>2];m=f;e=-1;Q:{if((r|0)==-1){break Q}h=r+1|0;h=(h>>>0)%3|0?h:r+ -2|0;e=-1;if((h|0)==-1){break Q}e=i[q+(h<<2)>>2]}h=e;e=i[m+(h<<2)>>2];R:{if((e|0)==-1){break R}m=e+1|0;e=(m>>>0)%3|0?m:e+ -2|0;if((e|0)==-1){break R}c=e+1|0;c=(c>>>0)%3|0?c:e+ -2|0;if((c|0)!=-1){n=i[q+(c<<2)>>2]}c=e}w=-1;m=-1;f=i[f+(n<<2)>>2];e=-1;S:{if((f|0)==-1){break S}y=f+1|0;f=(y>>>0)%3|0?y:f+ -2|0;e=-1;if((f|0)==-1){break S}e=f+1|0;e=(e>>>0)%3|0?e:f+ -2|0;if((e|0)!=-1){m=i[q+(e<<2)>>2]}e=f}s=i[s+12>>2];f=o(u,3);y=f<<2;i[s+y>>2]=r;i[s+(r<<2)>>2]=f;r=f+1|0;v=r<<2;i[v+s>>2]=c;i[s+(c<<2)>>2]=r;c=f+2|0;A=c<<2;i[A+s>>2]=e;i[s+(e<<2)>>2]=c;i[q+y>>2]=n;e=q+v|0;i[e>>2]=m;q=q+A|0;i[q>>2]=h;m=i[a+120>>2];h=r>>>0>>0?-1:n;n=m+(h>>>3&536870908)|0;s=i[n>>2];D=n,E=Nn(h)&s,i[D>>2]=E;w=(r|0)!=-1?i[e>>2]:w;e=m+(w>>>3&536870908)|0;h=i[e>>2];D=e,E=Nn(w)&h,i[D>>2]=E;e=-1;e=(c|0)!=-1?i[q>>2]:e;c=m+(e>>>3&536870908)|0;m=i[c>>2];D=c,E=Nn(e)&m,i[D>>2]=E;e=i[a+64>>2];m=i[a+68>>2];if((e|0)==m<<5){if((e+1|0)<=-1){break c}c=b;if(e>>>0<=1073741822){e=e+32&-32;m=m<<6;e=m>>>0>>0?e:m}else{e=2147483647}Sc(c,e);e=i[a+64>>2]}u=u+1|0;i[a+64>>2]=e+1;c=i[a+60>>2]+(e>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<<(e&31);c=i[a+76>>2];n=i[a+80>>2];if((c|0)!=(n|0)){i[c>>2]=f;i[a+76>>2]=c+4;break M}e=i[z>>2];h=c-e|0;r=h>>2;m=r+1|0;if(m>>>0>=1073741824){break b}n=n-e|0;q=n>>1;m=n>>2>>>0<536870911?q>>>0>>0?m:q:1073741823;c=0;T:{if(!m){break T}if(m>>>0>=1073741824){break a}c=Gm(m<<2)}n=c+(r<<2)|0;i[n>>2]=f;f=c+(m<<2)|0;m=n+4|0;if((h|0)>=1){sn(c,e,h)}i[a+80>>2]=f;i[a+76>>2]=m;i[a+72>>2]=c;if(!e){break M}qn(e);break M}c=i[a+64>>2];f=i[a+68>>2];if((c|0)==f<<5){if((c+1|0)<=-1){break c}e=b;if(c>>>0<=1073741822){c=c+32&-32;f=f<<6;c=f>>>0>>0?c:f}else{c=2147483647}Sc(e,c);c=i[a+64>>2]}i[a+64>>2]=c+1;e=i[a+60>>2]+(c>>>3&536870908)|0;f=i[e>>2];D=e,E=Nn(c)&f,i[D>>2]=E;c=i[a+76>>2];h=i[a+80>>2];if((c|0)!=(h|0)){i[c>>2]=r;i[a+76>>2]=c+4;break M}e=i[z>>2];m=c-e|0;n=m>>2;f=n+1|0;if(f>>>0>=1073741824){break b}h=h-e|0;q=h>>1;f=h>>2>>>0<536870911?q>>>0>>0?f:q:1073741823;c=0;U:{if(!f){break U}if(f>>>0>=1073741824){break a}c=Gm(f<<2)}h=c+(n<<2)|0;i[h>>2]=r;f=c+(f<<2)|0;h=h+4|0;if((m|0)>=1){sn(c,e,m)}i[a+80>>2]=f;i[a+76>>2]=h;i[a+72>>2]=c;if(!e){break M}qn(e)}e=i[p+68>>2];if((e|0)!=i[p+64>>2]){continue}break}b=i[a+8>>2]}if(((i[b+4>>2]-i[b>>2]>>2>>>0)/3|0)!=(u|0)){break e}d=i[b+28>>2]-i[b+24>>2]>>2;n=i[p+24>>2];m=i[p+28>>2];if((n|0)==(m|0)){break d}while(1){f=i[n>>2];e=i[b+24>>2];u=d+ -1|0;V:{if(i[e+(u<<2)>>2]!=-1){c=d;break V}e=i[b+24>>2];while(1){u=d+ -2|0;c=d+ -1|0;d=c;if(i[(u<<2)+e>>2]==-1){continue}break}}if(u>>>0>=f>>>0){i[p>>2]=b;d=e;e=u<<2;d=i[d+e>>2];g[p+12|0]=1;i[p+8>>2]=d;i[p+4>>2]=d;h=e;if((d|0)!=-1){i[i[b>>2]+(d<<2)>>2]=f;Ld(p);d=i[p+8>>2];if((d|0)!=-1){while(1){i[i[i[a+8>>2]>>2]+(d<<2)>>2]=f;Ld(p);d=i[p+8>>2];if((d|0)!=-1){continue}break}}b=i[a+8>>2]}e=i[b+24>>2];d=h+e|0;if((f|0)!=-1){i[e+(f<<2)>>2]=i[d>>2]}i[d>>2]=-1;d=1<<(f&31);e=f>>>3&536870908;f=i[a+120>>2];e=e+f|0;h=e;f=f+(u>>>3&536870908)|0;u=1<<(u&31);q=d|i[e>>2];W:{if(i[f>>2]&u){break W}q=i[e>>2]&(d^-1)}i[h>>2]=q;i[f>>2]=i[f>>2]&(u^-1);c=c+ -1|0}d=c;n=n+4|0;if((m|0)!=(n|0)){continue}break}}n=i[p+24>>2]}if(n){i[p+28>>2]=n;qn(n)}a=i[p+48>>2];if(a){while(1){b=i[a>>2];qn(a);a=b;if(a){continue}break}}a=i[p+40>>2];i[p+40>>2]=0;if(a){qn(a)}a=i[p+64>>2];if(a){i[p+68>>2]=a;qn(a)}L=p+96|0;return d}Vm();x()}Vm();x()}Da(12220);x()}function oh(a,b,c,d,e){var f=0,k=0;f=L-32|0;L=f;i[b+32>>2]=d;i[b+40>>2]=c;i[b+4>>2]=e;lh(a,d,f+16|0);a:{if(i[a>>2]){break a}c=a+4|0;if(g[a+15|0]<=-1){qn(i[c>>2])}e=j[f+23|0];if((O[i[i[b>>2]+8>>2]](b)|0)!=(e|0)){b=Gm(64);i[f>>2]=b;i[f+4>>2]=50;i[f+8>>2]=-2147483584;g[b+50|0]=0;d=j[13665]|j[13666]<<8;g[b+48|0]=d;g[b+49|0]=d>>>8;d=j[13661]|j[13662]<<8|(j[13663]<<16|j[13664]<<24);e=j[13657]|j[13658]<<8|(j[13659]<<16|j[13660]<<24);g[b+40|0]=e;g[b+41|0]=e>>>8;g[b+42|0]=e>>>16;g[b+43|0]=e>>>24;g[b+44|0]=d;g[b+45|0]=d>>>8;g[b+46|0]=d>>>16;g[b+47|0]=d>>>24;d=j[13653]|j[13654]<<8|(j[13655]<<16|j[13656]<<24);e=j[13649]|j[13650]<<8|(j[13651]<<16|j[13652]<<24);g[b+32|0]=e;g[b+33|0]=e>>>8;g[b+34|0]=e>>>16;g[b+35|0]=e>>>24;g[b+36|0]=d;g[b+37|0]=d>>>8;g[b+38|0]=d>>>16;g[b+39|0]=d>>>24;d=j[13645]|j[13646]<<8|(j[13647]<<16|j[13648]<<24);e=j[13641]|j[13642]<<8|(j[13643]<<16|j[13644]<<24);g[b+24|0]=e;g[b+25|0]=e>>>8;g[b+26|0]=e>>>16;g[b+27|0]=e>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[13637]|j[13638]<<8|(j[13639]<<16|j[13640]<<24);e=j[13633]|j[13634]<<8|(j[13635]<<16|j[13636]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[13629]|j[13630]<<8|(j[13631]<<16|j[13632]<<24);e=j[13625]|j[13626]<<8|(j[13627]<<16|j[13628]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[13621]|j[13622]<<8|(j[13623]<<16|j[13624]<<24);e=j[13617]|j[13618]<<8|(j[13619]<<16|j[13620]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;Jm(c,f);if(g[f+11|0]>-1){break a}qn(i[f>>2]);break a}d=j[f+21|0];g[b+36|0]=d;k=j[f+22|0];g[b+37|0]=k;if((d+ -1&255)>>>0>=2){b=Gm(32);i[f>>2]=b;i[f+4>>2]=22;i[f+8>>2]=-2147483616;g[b+22|0]=0;d=j[13686]|j[13687]<<8|(j[13688]<<16|j[13689]<<24);e=j[13682]|j[13683]<<8|(j[13684]<<16|j[13685]<<24);g[b+14|0]=e;g[b+15|0]=e>>>8;g[b+16|0]=e>>>16;g[b+17|0]=e>>>24;g[b+18|0]=d;g[b+19|0]=d>>>8;g[b+20|0]=d>>>16;g[b+21|0]=d>>>24;d=j[13680]|j[13681]<<8|(j[13682]<<16|j[13683]<<24);e=j[13676]|j[13677]<<8|(j[13678]<<16|j[13679]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[13672]|j[13673]<<8|(j[13674]<<16|j[13675]<<24);e=j[13668]|j[13669]<<8|(j[13670]<<16|j[13671]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-5;Jm(c,f);if(g[f+11|0]>-1){break a}qn(i[f>>2]);break a}if(!((d|0)!=2|(e?2:3)>>>0>=k>>>0)){b=Gm(32);i[f>>2]=b;i[f+4>>2]=22;i[f+8>>2]=-2147483616;g[b+22|0]=0;d=j[13709]|j[13710]<<8|(j[13711]<<16|j[13712]<<24);e=j[13705]|j[13706]<<8|(j[13707]<<16|j[13708]<<24);g[b+14|0]=e;g[b+15|0]=e>>>8;g[b+16|0]=e>>>16;g[b+17|0]=e>>>24;g[b+18|0]=d;g[b+19|0]=d>>>8;g[b+20|0]=d>>>16;g[b+21|0]=d>>>24;d=j[13703]|j[13704]<<8|(j[13705]<<16|j[13706]<<24);e=j[13699]|j[13700]<<8|(j[13701]<<16|j[13702]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[13695]|j[13696]<<8|(j[13697]<<16|j[13698]<<24);e=j[13691]|j[13692]<<8|(j[13693]<<16|j[13694]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-5;Jm(c,f);if(g[f+11|0]>-1){break a}qn(i[f>>2]);break a}d=d<<8|k;h[i[b+32>>2]+38>>1]=d;b:{if((d&65535)>>>0<259|h[f+26>>1]>-1){break b}mh(a,b);if(i[a>>2]){break a}if(g[c+11|0]>-1){break b}qn(i[c>>2])}if(!(O[i[i[b>>2]+12>>2]](b)|0)){b=Gm(48);i[f>>2]=b;i[f+4>>2]=33;i[f+8>>2]=-2147483600;g[b+33|0]=0;g[b+32|0]=j[13746];d=j[13742]|j[13743]<<8|(j[13744]<<16|j[13745]<<24);e=j[13738]|j[13739]<<8|(j[13740]<<16|j[13741]<<24);g[b+24|0]=e;g[b+25|0]=e>>>8;g[b+26|0]=e>>>16;g[b+27|0]=e>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[13734]|j[13735]<<8|(j[13736]<<16|j[13737]<<24);e=j[13730]|j[13731]<<8|(j[13732]<<16|j[13733]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[13726]|j[13727]<<8|(j[13728]<<16|j[13729]<<24);e=j[13722]|j[13723]<<8|(j[13724]<<16|j[13725]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[13718]|j[13719]<<8|(j[13720]<<16|j[13721]<<24);e=j[13714]|j[13715]<<8|(j[13716]<<16|j[13717]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;Jm(c,f);if(g[f+11|0]>-1){break a}qn(i[f>>2]);break a}if(!(O[i[i[b>>2]+20>>2]](b)|0)){b=Gm(32);i[f>>2]=b;i[f+4>>2]=31;i[f+8>>2]=-2147483616;g[b+31|0]=0;d=j[13775]|j[13776]<<8|(j[13777]<<16|j[13778]<<24);e=j[13771]|j[13772]<<8|(j[13773]<<16|j[13774]<<24);g[b+23|0]=e;g[b+24|0]=e>>>8;g[b+25|0]=e>>>16;g[b+26|0]=e>>>24;g[b+27|0]=d;g[b+28|0]=d>>>8;g[b+29|0]=d>>>16;g[b+30|0]=d>>>24;d=j[13768]|j[13769]<<8|(j[13770]<<16|j[13771]<<24);e=j[13764]|j[13765]<<8|(j[13766]<<16|j[13767]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[13760]|j[13761]<<8|(j[13762]<<16|j[13763]<<24);e=j[13756]|j[13757]<<8|(j[13758]<<16|j[13759]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[13752]|j[13753]<<8|(j[13754]<<16|j[13755]<<24);e=j[13748]|j[13749]<<8|(j[13750]<<16|j[13751]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;Jm(c,f);if(g[f+11|0]>-1){break a}qn(i[f>>2]);break a}if(!(O[i[i[b>>2]+24>>2]](b)|0)){b=Gm(48);i[f>>2]=b;i[f+4>>2]=34;i[f+8>>2]=-2147483600;g[b+34|0]=0;d=j[13812]|j[13813]<<8;g[b+32|0]=d;g[b+33|0]=d>>>8;d=j[13808]|j[13809]<<8|(j[13810]<<16|j[13811]<<24);e=j[13804]|j[13805]<<8|(j[13806]<<16|j[13807]<<24);g[b+24|0]=e;g[b+25|0]=e>>>8;g[b+26|0]=e>>>16;g[b+27|0]=e>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[13800]|j[13801]<<8|(j[13802]<<16|j[13803]<<24);e=j[13796]|j[13797]<<8|(j[13798]<<16|j[13799]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[13792]|j[13793]<<8|(j[13794]<<16|j[13795]<<24);e=j[13788]|j[13789]<<8|(j[13790]<<16|j[13791]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[13784]|j[13785]<<8|(j[13786]<<16|j[13787]<<24);e=j[13780]|j[13781]<<8|(j[13782]<<16|j[13783]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;Jm(c,f);if(g[f+11|0]>-1){break a}qn(i[f>>2]);break a}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}L=f+32|0}function lh(a,b,c){var d=0,e=0,f=0,k=0,m=0,n=0;e=L-16|0;L=e;k=i[b+12>>2];d=i[b+20>>2];f=i[b+16>>2];m=f+5|0;if(m>>>0<5){d=d+1|0}a:{if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]>>0:0){b=Gm(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[13561]|j[13562]<<8|(j[13563]<<16|j[13564]<<24);d=j[13557]|j[13558]<<8|(j[13559]<<16|j[13560]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[3389];d=i[3388];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[3387];d=i[3386];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[3385];d=i[3384];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;Jm(a+4|0,e);if(g[e+11|0]>-1){break a}qn(i[e>>2]);break a}d=f+i[b>>2]|0;k=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);g[c|0]=k;g[c+1|0]=k>>>8;g[c+2|0]=k>>>16;g[c+3|0]=k>>>24;g[c+4|0]=j[d+4|0];k=b;d=i[b+20>>2];f=i[b+16>>2]+5|0;if(f>>>0<5){d=d+1|0}m=f;f=d;i[k+16>>2]=m;i[k+20>>2]=d;if(Pl(c,13566,5)){b=Gm(32);i[e>>2]=b;i[e+4>>2]=17;i[e+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[13588];c=j[13584]|j[13585]<<8|(j[13586]<<16|j[13587]<<24);d=j[13580]|j[13581]<<8|(j[13582]<<16|j[13583]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13576]|j[13577]<<8|(j[13578]<<16|j[13579]<<24);d=j[13572]|j[13573]<<8|(j[13574]<<16|j[13575]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;Jm(a+4|0,e);if(g[e+11|0]>-1){break a}qn(i[e>>2]);break a}d=i[b+12>>2];if((d|0)<(f|0)?1:(d|0)<=(f|0)?l[b+8>>2]<=m>>>0:0){b=Gm(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[13561]|j[13562]<<8|(j[13563]<<16|j[13564]<<24);d=j[13557]|j[13558]<<8|(j[13559]<<16|j[13560]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[3389];d=i[3388];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[3387];d=i[3386];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[3385];d=i[3384];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;Jm(a+4|0,e);if(g[e+11|0]>-1){break a}qn(i[e>>2]);break a}g[c+5|0]=j[m+i[b>>2]|0];d=i[b+20>>2];f=i[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}i[b+16>>2]=f;i[k+20>>2]=d;k=i[b+12>>2];if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]<=f>>>0:0){b=Gm(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[13561]|j[13562]<<8|(j[13563]<<16|j[13564]<<24);d=j[13557]|j[13558]<<8|(j[13559]<<16|j[13560]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[3389];d=i[3388];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[3387];d=i[3386];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[3385];d=i[3384];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;Jm(a+4|0,e);if(g[e+11|0]>-1){break a}qn(i[e>>2]);break a}g[c+6|0]=j[f+i[b>>2]|0];d=i[b+20>>2];f=i[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}i[b+16>>2]=f;i[b+20>>2]=d;k=i[b+12>>2];if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]<=f>>>0:0){b=Gm(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[13561]|j[13562]<<8|(j[13563]<<16|j[13564]<<24);d=j[13557]|j[13558]<<8|(j[13559]<<16|j[13560]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[3389];d=i[3388];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[3387];d=i[3386];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[3385];d=i[3384];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;Jm(a+4|0,e);if(g[e+11|0]>-1){break a}qn(i[e>>2]);break a}g[c+7|0]=j[f+i[b>>2]|0];d=i[b+20>>2];f=i[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}i[b+16>>2]=f;i[b+20>>2]=d;k=i[b+12>>2];if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]<=f>>>0:0){b=Gm(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[13561]|j[13562]<<8|(j[13563]<<16|j[13564]<<24);d=j[13557]|j[13558]<<8|(j[13559]<<16|j[13560]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[3389];d=i[3388];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[3387];d=i[3386];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[3385];d=i[3384];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;Jm(a+4|0,e);if(g[e+11|0]>-1){break a}qn(i[e>>2]);break a}g[c+8|0]=j[f+i[b>>2]|0];d=i[b+20>>2];f=d;n=i[b+16>>2];m=n+1|0;if(m>>>0<1){d=d+1|0}i[b+16>>2]=m;i[b+20>>2]=d;k=i[b+12>>2];d=f;f=n+3|0;if(f>>>0<3){d=d+1|0}if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]>>0:0){b=Gm(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[13561]|j[13562]<<8|(j[13563]<<16|j[13564]<<24);d=j[13557]|j[13558]<<8|(j[13559]<<16|j[13560]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[3389];d=i[3388];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[3387];d=i[3386];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[3385];d=i[3384];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;Jm(a+4|0,e);if(g[e+11|0]>-1){break a}qn(i[e>>2]);break a}f=c;c=m+i[b>>2]|0;h[f+10>>1]=j[c|0]|j[c+1|0]<<8;c=b;f=b;d=i[b+20>>2];b=i[b+16>>2]+2|0;if(b>>>0<2){d=d+1|0}i[f+16>>2]=b;i[c+20>>2]=d;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0}L=e+16|0}function lg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;p=L+ -64|0;L=p;i[a+132>>2]=0;if(i[a+148>>2]){c=i[a+144>>2];if(c){while(1){b=i[c>>2];qn(c);c=b;if(b){continue}break}}i[a+144>>2]=0;b=i[a+140>>2];if(b){c=0;while(1){i[i[a+136>>2]+(c<<2)>>2]=0;c=c+1|0;if((b|0)!=(c|0)){continue}break}}i[a+148>>2]=0}a:{b:{c:{d:{e:{f:{c=i[a+4>>2];e=j[c+36|0];b=e<<8|j[c+37|0];g:{if(b>>>0>513){break g}f=i[c+32>>2];if(b>>>0<=511){m=i[f+12>>2];b=i[f+20>>2];h=i[f+16>>2];d=h+4|0;if(d>>>0<4){b=b+1|0}n=d;d=b;if((m|0)<(b|0)?1:(m|0)<=(b|0)?l[f+8>>2]>>0:0){break f}b=h+i[f>>2]|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p>>2]=b;i[f+16>>2]=n;i[f+20>>2]=d;i[a+132>>2]=b;break g}if(!Rf(1,p,f)){break f}c=i[a+4>>2];e=j[c+36|0];i[a+132>>2]=i[p>>2]}f=i[c+32>>2];h:{i:{j:{if((e&255)>>>0<=1){e=0;m=i[f+12>>2];b=i[f+20>>2];h=i[f+16>>2];d=h+4|0;if(d>>>0<4){b=b+1|0}n=d;d=b;if((m|0)<(b|0)?1:(m|0)<=(b|0)?l[f+8>>2]>>0:0){break a}b=h+i[f>>2]|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+60>>2]=b;i[f+16>>2]=n;i[f+20>>2]=d;i[a+156>>2]=b;n=a+156|0;break j}e=0;if(!Rf(1,p+60|0,f)){break a}c=i[a+4>>2];b=j[c+36|0];i[a+156>>2]=i[p+60>>2];n=a+156|0;if(b>>>0>1){break i}}d=i[c+32>>2];b=i[d+8>>2];f=i[d+12>>2];q=b;b=i[d+20>>2];m=i[d+16>>2];c=m+4|0;if(c>>>0<4){b=b+1|0}s=c;c=b;if((f|0)<(b|0)?1:(f|0)<=(b|0)?q>>>0>>0:0){break a}b=m+i[d>>2]|0;h=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+56>>2]=h;i[d+16>>2]=s;i[d+20>>2]=c;break h}if(!Rf(1,p+56|0,i[c+32>>2])){break a}h=i[p+56>>2]}if(h>>>0>1431655765|l[n>>2]>o(h,3)>>>0){break a}r=i[a+4>>2];d=i[r+32>>2];t=i[d+8>>2];q=i[d+16>>2];f=i[d+12>>2];b=f;c=i[d+20>>2];if((b|0)<(c|0)?1:(b|0)<=(c|0)?t>>>0<=q>>>0:0){break a}u=i[d>>2];s=j[u+q|0];b=c;m=q+1|0;if(m>>>0<1){b=b+1|0}i[d+16>>2]=m;i[d+20>>2]=b;k:{if(j[r+36|0]<=1){b=c;c=q+5|0;if(c>>>0<5){b=b+1|0}q=c;c=b;if((f|0)<(b|0)?1:(f|0)<=(b|0)?t>>>0>>0:0){break a}b=m+u|0;m=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+52>>2]=m;i[d+16>>2]=q;i[d+20>>2]=c;break k}if(!Rf(1,p+52|0,d)){break a}m=i[p+52>>2]}if(h>>>0>>0|h>>>0>((m>>>0)/3|0)+m>>>0){break a}b=i[a+4>>2];d=i[b+32>>2];l:{if(j[b+36|0]<=1){f=i[d+12>>2];b=i[d+20>>2];q=i[d+16>>2];c=q+4|0;if(c>>>0<4){b=b+1|0}r=c;c=b;if((f|0)<(b|0)?1:(f|0)<=(b|0)?l[d+8>>2]>>0:0){break a}b=q+i[d>>2]|0;q=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+48>>2]=q;i[d+16>>2]=r;i[d+20>>2]=c;break l}if(!Rf(1,p+48|0,d)){break a}q=i[p+48>>2]}if(q>>>0>m>>>0){break a}i[a+28>>2]=i[a+24>>2];c=Gm(88);yk(c);b=i[a+8>>2];i[a+8>>2]=c;f=a+8|0;if(b){Sf(f,b);if(!i[f>>2]){break a}}b=i[a+160>>2];i[a+164>>2]=b;m:{if(i[a+168>>2]-b>>2>>>0>=h>>>0){break m}if(h>>>0>=1073741824){break e}e=h<<2;c=Gm(e);i[a+164>>2]=c;i[a+160>>2]=c;i[a+168>>2]=c+e;if(!b){break m}qn(b)}b=i[a+172>>2];i[a+176>>2]=b;n:{if(i[a+180>>2]-b>>2>>>0>=h>>>0){break n}if(h>>>0>=1073741824){break d}e=h<<2;c=Gm(e);i[a+176>>2]=c;i[a+172>>2]=c;i[a+180>>2]=c+e;if(!b){break n}qn(b)}i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+40>>2]=i[a+36>>2];i[a- -64>>2]=0;i[a+52>>2]=i[a+48>>2];i[a+76>>2]=i[a+72>>2];r=a+216|0;c=i[a+220>>2];e=i[a+216>>2];if((c|0)==(e|0)){break c}while(1){b=i[c+ -12>>2];if(b){i[c+ -8>>2]=b;qn(b)}b=i[c+ -28>>2];if(b){i[c+ -24>>2]=b;qn(b)}b=c+ -144|0;d=i[c+ -40>>2];if(d){i[c+ -36>>2]=d;qn(d)}Tf(c+ -140|0);c=b;if((e|0)!=(b|0)){continue}break}b=i[r>>2];break b}e=0;break a}Da(12220);x()}Da(12220);x()}b=e}i[a+220>>2]=e;c=(e-b|0)/144|0;o:{if(c>>>0>>0){Uf(r,s-c|0);break o}if(c>>>0<=s>>>0){break o}c=b+o(s,144)|0;if((c|0)!=(e|0)){while(1){b=i[e+ -12>>2];if(b){i[e+ -8>>2]=b;qn(b)}b=i[e+ -28>>2];if(b){i[e+ -24>>2]=b;qn(b)}b=e+ -144|0;d=i[e+ -40>>2];if(d){i[e+ -36>>2]=d;qn(d)}Tf(e+ -140|0);e=b;if((b|0)!=(c|0)){continue}break}}i[a+220>>2]=c}e=0;if(!Ik(i[f>>2],h,i[n>>2]+q|0)){break a}b=i[a+156>>2];g[p|0]=1;Lf(a+120|0,b+q|0,p);c=i[a+4>>2];b=k[c+36>>1];b=(b<<24|b<<8&16711680)>>>16|0;p:{if(b>>>0<=513){d=i[c+32>>2];q:{if(b>>>0<=511){h=i[d+12>>2];b=i[d+20>>2];n=i[d+16>>2];c=n+4|0;if(c>>>0<4){b=b+1|0}t=c;c=b;if((h|0)<(b|0)?1:(h|0)<=(b|0)?l[d+8>>2]>>0:0){break a}b=n+i[d>>2]|0;h=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+44>>2]=h;i[d+16>>2]=t;i[d+20>>2]=c;break q}if(!Rf(1,p+44|0,d)){break a}h=i[p+44>>2]}if(!h){break a}b=i[i[a+4>>2]+32>>2];c=i[b+8>>2];d=i[b+16>>2];b=i[b+12>>2]-(i[b+20>>2]+(c>>>0>>0)|0)|0;if((b|0)<0?1:(b|0)<=0?c-d>>>0>>0:0){break a}d=Bh(p);c=i[i[a+4>>2]+32>>2];b=i[c+16>>2];n=i[c+8>>2];Dh(d,(b+i[c>>2]|0)+h|0,(n-b|0)-h|0,k[c+38>>1]);c=Vf(a,d);if((c|0)==-1){break a}b=c;d=b>>31;break p}b=-1;d=-1;if((Vf(a,i[c+32>>2])|0)==-1){break a}}i[a+376>>2]=a;n=a+232|0;c=i[(O[i[i[a>>2]+32>>2]](a)|0)+32>>2];t=i[c>>2]+i[c+16>>2]|0;h=i[(O[i[i[a>>2]+32>>2]](a)|0)+32>>2];c=i[h+8>>2];e=i[h+16>>2];Dh(n,t,c-e|0,k[i[(O[i[i[a>>2]+32>>2]](a)|0)+32>>2]+38>>1]);v=a,w=O[i[i[a>>2]+36>>2]](a)|0,i[v+380>>2]=w;i[a+372>>2]=s;i[a+384>>2]=i[a+156>>2]+q;e=0;c=Bh(p);r:{if(!mg(n,c)){break r}h=ng(a,m);if((h|0)==-1){break r}m=i[i[a+4>>2]+32>>2];e=i[c+16>>2];n=e+i[c>>2]|0;c=i[c+8>>2];Dh(m,n,c-e|0,k[m+38>>1]);c=i[a+4>>2];e=k[c+36>>1];m=(e<<24|e<<8&16711680)>>>16|0;if(m>>>0<=513){e=i[c+32>>2];n=e;q=e;c=d+i[e+20>>2]|0;e=b+i[e+16>>2]|0;if(e>>>0>>0){c=c+1|0}i[q+16>>2]=e;i[n+20>>2]=c}s:{if(i[a+220>>2]==i[a+216>>2]){break s}c=i[f>>2];b=i[c>>2];c=i[c+4>>2];t:{if(m>>>0>=513){if((b|0)==(c|0)){break s}c=0;break t}if((b|0)==(c|0)){break s}c=0;while(1){if(Yf(a,c)){c=c+3|0;b=i[f>>2];if(c>>>0>2]-i[b>>2]>>2>>>0){continue}break s}break}e=0;break r}while(1){if(Zf(a,c)){c=c+3|0;b=i[f>>2];if(c>>>0>2]-i[b>>2]>>2>>>0){continue}break s}break}e=0;break r}if(j[a+308|0]){Gh(a+272|0)}if(k[a+270>>1]<=513){Gh(a+328|0)}c=i[a+216>>2];if((c|0)!=i[a+220>>2]){n=0;while(1){e=o(n,144);Sk((e+c|0)+4|0,i[f>>2]);b=i[r>>2];c=b+e|0;d=i[c+132>>2];m=i[c+136>>2];if((d|0)!=(m|0)){Uk(c+4|0,i[d>>2]);c=d+4|0;if((m|0)!=(c|0)){while(1){Uk((e+i[r>>2]|0)+4|0,i[c>>2]);c=c+4|0;if((m|0)!=(c|0)){continue}break}}b=i[r>>2]}Tk((b+e|0)+4|0);n=n+1|0;c=i[a+216>>2];if(n>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}b=i[a+8>>2];_f(a+184|0,i[b+28>>2]-i[b+24>>2]>>2);e=i[a+216>>2];if((e|0)!=i[a+220>>2]){c=0;while(1){b=o(c,144)+e|0;e=i[b+60>>2]-i[b+56>>2]>>2;d=b+104|0;b=i[a+8>>2];b=i[b+28>>2]-i[b+24>>2]>>2;_f(d,(e|0)<(b|0)?b:e);c=c+1|0;e=i[a+216>>2];if(c>>>0<(i[a+220>>2]-e|0)/144>>>0){continue}break}}e=$f(a,h)}}L=p- -64|0;return e|0}function gg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;p=L+ -64|0;L=p;i[a+132>>2]=0;if(i[a+148>>2]){c=i[a+144>>2];if(c){while(1){b=i[c>>2];qn(c);c=b;if(b){continue}break}}i[a+144>>2]=0;b=i[a+140>>2];if(b){c=0;while(1){i[i[a+136>>2]+(c<<2)>>2]=0;c=c+1|0;if((b|0)!=(c|0)){continue}break}}i[a+148>>2]=0}a:{b:{c:{d:{e:{f:{c=i[a+4>>2];e=j[c+36|0];b=e<<8|j[c+37|0];g:{if(b>>>0>513){break g}f=i[c+32>>2];if(b>>>0<=511){m=i[f+12>>2];b=i[f+20>>2];h=i[f+16>>2];d=h+4|0;if(d>>>0<4){b=b+1|0}n=d;d=b;if((m|0)<(b|0)?1:(m|0)<=(b|0)?l[f+8>>2]>>0:0){break f}b=h+i[f>>2]|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p>>2]=b;i[f+16>>2]=n;i[f+20>>2]=d;i[a+132>>2]=b;break g}if(!Rf(1,p,f)){break f}c=i[a+4>>2];e=j[c+36|0];i[a+132>>2]=i[p>>2]}f=i[c+32>>2];h:{i:{j:{if((e&255)>>>0<=1){e=0;m=i[f+12>>2];b=i[f+20>>2];h=i[f+16>>2];d=h+4|0;if(d>>>0<4){b=b+1|0}n=d;d=b;if((m|0)<(b|0)?1:(m|0)<=(b|0)?l[f+8>>2]>>0:0){break a}b=h+i[f>>2]|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+60>>2]=b;i[f+16>>2]=n;i[f+20>>2]=d;i[a+156>>2]=b;n=a+156|0;break j}e=0;if(!Rf(1,p+60|0,f)){break a}c=i[a+4>>2];b=j[c+36|0];i[a+156>>2]=i[p+60>>2];n=a+156|0;if(b>>>0>1){break i}}d=i[c+32>>2];b=i[d+8>>2];f=i[d+12>>2];q=b;b=i[d+20>>2];m=i[d+16>>2];c=m+4|0;if(c>>>0<4){b=b+1|0}s=c;c=b;if((f|0)<(b|0)?1:(f|0)<=(b|0)?q>>>0>>0:0){break a}b=m+i[d>>2]|0;h=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+56>>2]=h;i[d+16>>2]=s;i[d+20>>2]=c;break h}if(!Rf(1,p+56|0,i[c+32>>2])){break a}h=i[p+56>>2]}if(h>>>0>1431655765|l[n>>2]>o(h,3)>>>0){break a}r=i[a+4>>2];d=i[r+32>>2];t=i[d+8>>2];q=i[d+16>>2];f=i[d+12>>2];b=f;c=i[d+20>>2];if((b|0)<(c|0)?1:(b|0)<=(c|0)?t>>>0<=q>>>0:0){break a}u=i[d>>2];s=j[u+q|0];b=c;m=q+1|0;if(m>>>0<1){b=b+1|0}i[d+16>>2]=m;i[d+20>>2]=b;k:{if(j[r+36|0]<=1){b=c;c=q+5|0;if(c>>>0<5){b=b+1|0}q=c;c=b;if((f|0)<(b|0)?1:(f|0)<=(b|0)?t>>>0>>0:0){break a}b=m+u|0;m=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+52>>2]=m;i[d+16>>2]=q;i[d+20>>2]=c;break k}if(!Rf(1,p+52|0,d)){break a}m=i[p+52>>2]}if(h>>>0>>0|h>>>0>((m>>>0)/3|0)+m>>>0){break a}b=i[a+4>>2];d=i[b+32>>2];l:{if(j[b+36|0]<=1){f=i[d+12>>2];b=i[d+20>>2];q=i[d+16>>2];c=q+4|0;if(c>>>0<4){b=b+1|0}r=c;c=b;if((f|0)<(b|0)?1:(f|0)<=(b|0)?l[d+8>>2]>>0:0){break a}b=q+i[d>>2]|0;q=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+48>>2]=q;i[d+16>>2]=r;i[d+20>>2]=c;break l}if(!Rf(1,p+48|0,d)){break a}q=i[p+48>>2]}if(q>>>0>m>>>0){break a}i[a+28>>2]=i[a+24>>2];c=Gm(88);yk(c);b=i[a+8>>2];i[a+8>>2]=c;f=a+8|0;if(b){Sf(f,b);if(!i[f>>2]){break a}}b=i[a+160>>2];i[a+164>>2]=b;m:{if(i[a+168>>2]-b>>2>>>0>=h>>>0){break m}if(h>>>0>=1073741824){break e}e=h<<2;c=Gm(e);i[a+164>>2]=c;i[a+160>>2]=c;i[a+168>>2]=c+e;if(!b){break m}qn(b)}b=i[a+172>>2];i[a+176>>2]=b;n:{if(i[a+180>>2]-b>>2>>>0>=h>>>0){break n}if(h>>>0>=1073741824){break d}e=h<<2;c=Gm(e);i[a+176>>2]=c;i[a+172>>2]=c;i[a+180>>2]=c+e;if(!b){break n}qn(b)}i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+40>>2]=i[a+36>>2];i[a- -64>>2]=0;i[a+52>>2]=i[a+48>>2];i[a+76>>2]=i[a+72>>2];r=a+216|0;c=i[a+220>>2];e=i[a+216>>2];if((c|0)==(e|0)){break c}while(1){b=i[c+ -12>>2];if(b){i[c+ -8>>2]=b;qn(b)}b=i[c+ -28>>2];if(b){i[c+ -24>>2]=b;qn(b)}b=c+ -144|0;d=i[c+ -40>>2];if(d){i[c+ -36>>2]=d;qn(d)}Tf(c+ -140|0);c=b;if((e|0)!=(b|0)){continue}break}b=i[r>>2];break b}e=0;break a}Da(12220);x()}Da(12220);x()}b=e}i[a+220>>2]=e;c=(e-b|0)/144|0;o:{if(c>>>0>>0){Uf(r,s-c|0);break o}if(c>>>0<=s>>>0){break o}c=b+o(s,144)|0;if((c|0)!=(e|0)){while(1){b=i[e+ -12>>2];if(b){i[e+ -8>>2]=b;qn(b)}b=i[e+ -28>>2];if(b){i[e+ -24>>2]=b;qn(b)}b=e+ -144|0;d=i[e+ -40>>2];if(d){i[e+ -36>>2]=d;qn(d)}Tf(e+ -140|0);e=b;if((b|0)!=(c|0)){continue}break}}i[a+220>>2]=c}e=0;if(!Ik(i[f>>2],h,i[n>>2]+q|0)){break a}b=i[a+156>>2];g[p|0]=1;Lf(a+120|0,b+q|0,p);c=i[a+4>>2];b=k[c+36>>1];b=(b<<24|b<<8&16711680)>>>16|0;p:{if(b>>>0<=513){d=i[c+32>>2];q:{if(b>>>0<=511){h=i[d+12>>2];b=i[d+20>>2];n=i[d+16>>2];c=n+4|0;if(c>>>0<4){b=b+1|0}t=c;c=b;if((h|0)<(b|0)?1:(h|0)<=(b|0)?l[d+8>>2]>>0:0){break a}b=n+i[d>>2]|0;h=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+44>>2]=h;i[d+16>>2]=t;i[d+20>>2]=c;break q}if(!Rf(1,p+44|0,d)){break a}h=i[p+44>>2]}if(!h){break a}b=i[i[a+4>>2]+32>>2];c=i[b+8>>2];d=i[b+16>>2];b=i[b+12>>2]-(i[b+20>>2]+(c>>>0>>0)|0)|0;if((b|0)<0?1:(b|0)<=0?c-d>>>0>>0:0){break a}d=Bh(p);c=i[i[a+4>>2]+32>>2];b=i[c+16>>2];n=i[c+8>>2];Dh(d,(b+i[c>>2]|0)+h|0,(n-b|0)-h|0,k[c+38>>1]);c=Vf(a,d);if((c|0)==-1){break a}b=c;d=b>>31;break p}b=-1;d=-1;if((Vf(a,i[c+32>>2])|0)==-1){break a}}i[a+376>>2]=a;n=a+232|0;c=i[(O[i[i[a>>2]+32>>2]](a)|0)+32>>2];t=i[c>>2]+i[c+16>>2]|0;h=i[(O[i[i[a>>2]+32>>2]](a)|0)+32>>2];c=i[h+8>>2];e=i[h+16>>2];Dh(n,t,c-e|0,k[i[(O[i[i[a>>2]+32>>2]](a)|0)+32>>2]+38>>1]);v=a,w=O[i[i[a>>2]+36>>2]](a)|0,i[v+380>>2]=w;i[a+372>>2]=s;i[a+384>>2]=i[a+156>>2]+q;e=0;c=Bh(p);r:{if(!hg(n,c)){break r}h=ig(a,m);if((h|0)==-1){break r}m=i[i[a+4>>2]+32>>2];e=i[c+16>>2];n=e+i[c>>2]|0;c=i[c+8>>2];Dh(m,n,c-e|0,k[m+38>>1]);c=i[a+4>>2];e=k[c+36>>1];m=(e<<24|e<<8&16711680)>>>16|0;if(m>>>0<=513){e=i[c+32>>2];n=e;q=e;c=d+i[e+20>>2]|0;e=b+i[e+16>>2]|0;if(e>>>0>>0){c=c+1|0}i[q+16>>2]=e;i[n+20>>2]=c}s:{if(i[a+220>>2]==i[a+216>>2]){break s}c=i[f>>2];b=i[c>>2];c=i[c+4>>2];t:{if(m>>>0>=513){if((b|0)==(c|0)){break s}c=0;break t}if((b|0)==(c|0)){break s}c=0;while(1){if(Yf(a,c)){c=c+3|0;b=i[f>>2];if(c>>>0>2]-i[b>>2]>>2>>>0){continue}break s}break}e=0;break r}while(1){if(Zf(a,c)){c=c+3|0;b=i[f>>2];if(c>>>0>2]-i[b>>2]>>2>>>0){continue}break s}break}e=0;break r}if(j[a+308|0]){Gh(a+272|0)}if(k[a+270>>1]<=513){Gh(a+328|0)}c=i[a+216>>2];if((c|0)!=i[a+220>>2]){n=0;while(1){e=o(n,144);Sk((e+c|0)+4|0,i[f>>2]);b=i[r>>2];c=b+e|0;d=i[c+132>>2];m=i[c+136>>2];if((d|0)!=(m|0)){Uk(c+4|0,i[d>>2]);c=d+4|0;if((m|0)!=(c|0)){while(1){Uk((e+i[r>>2]|0)+4|0,i[c>>2]);c=c+4|0;if((m|0)!=(c|0)){continue}break}}b=i[r>>2]}Tk((b+e|0)+4|0);n=n+1|0;c=i[a+216>>2];if(n>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}b=i[a+8>>2];_f(a+184|0,i[b+28>>2]-i[b+24>>2]>>2);e=i[a+216>>2];if((e|0)!=i[a+220>>2]){c=0;while(1){b=o(c,144)+e|0;e=i[b+60>>2]-i[b+56>>2]>>2;d=b+104|0;b=i[a+8>>2];b=i[b+28>>2]-i[b+24>>2]>>2;_f(d,(e|0)<(b|0)?b:e);c=c+1|0;e=i[a+216>>2];if(c>>>0<(i[a+220>>2]-e|0)/144>>>0){continue}break}}e=$f(a,h)}}L=p- -64|0;return e|0}function Qf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;p=L+ -64|0;L=p;i[a+132>>2]=0;if(i[a+148>>2]){c=i[a+144>>2];if(c){while(1){b=i[c>>2];qn(c);c=b;if(b){continue}break}}i[a+144>>2]=0;b=i[a+140>>2];if(b){c=0;while(1){i[i[a+136>>2]+(c<<2)>>2]=0;c=c+1|0;if((b|0)!=(c|0)){continue}break}}i[a+148>>2]=0}a:{b:{c:{d:{e:{f:{c=i[a+4>>2];e=j[c+36|0];b=e<<8|j[c+37|0];g:{if(b>>>0>513){break g}f=i[c+32>>2];if(b>>>0<=511){m=i[f+12>>2];b=i[f+20>>2];h=i[f+16>>2];d=h+4|0;if(d>>>0<4){b=b+1|0}n=d;d=b;if((m|0)<(b|0)?1:(m|0)<=(b|0)?l[f+8>>2]>>0:0){break f}b=h+i[f>>2]|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p>>2]=b;i[f+16>>2]=n;i[f+20>>2]=d;i[a+132>>2]=b;break g}if(!Rf(1,p,f)){break f}c=i[a+4>>2];e=j[c+36|0];i[a+132>>2]=i[p>>2]}f=i[c+32>>2];h:{i:{j:{if((e&255)>>>0<=1){e=0;m=i[f+12>>2];b=i[f+20>>2];h=i[f+16>>2];d=h+4|0;if(d>>>0<4){b=b+1|0}n=d;d=b;if((m|0)<(b|0)?1:(m|0)<=(b|0)?l[f+8>>2]>>0:0){break a}b=h+i[f>>2]|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+60>>2]=b;i[f+16>>2]=n;i[f+20>>2]=d;i[a+156>>2]=b;n=a+156|0;break j}e=0;if(!Rf(1,p+60|0,f)){break a}c=i[a+4>>2];b=j[c+36|0];i[a+156>>2]=i[p+60>>2];n=a+156|0;if(b>>>0>1){break i}}d=i[c+32>>2];b=i[d+8>>2];f=i[d+12>>2];q=b;b=i[d+20>>2];m=i[d+16>>2];c=m+4|0;if(c>>>0<4){b=b+1|0}s=c;c=b;if((f|0)<(b|0)?1:(f|0)<=(b|0)?q>>>0>>0:0){break a}b=m+i[d>>2]|0;h=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+56>>2]=h;i[d+16>>2]=s;i[d+20>>2]=c;break h}if(!Rf(1,p+56|0,i[c+32>>2])){break a}h=i[p+56>>2]}if(h>>>0>1431655765|l[n>>2]>o(h,3)>>>0){break a}r=i[a+4>>2];d=i[r+32>>2];t=i[d+8>>2];q=i[d+16>>2];f=i[d+12>>2];b=f;c=i[d+20>>2];if((b|0)<(c|0)?1:(b|0)<=(c|0)?t>>>0<=q>>>0:0){break a}u=i[d>>2];s=j[u+q|0];b=c;m=q+1|0;if(m>>>0<1){b=b+1|0}i[d+16>>2]=m;i[d+20>>2]=b;k:{if(j[r+36|0]<=1){b=c;c=q+5|0;if(c>>>0<5){b=b+1|0}q=c;c=b;if((f|0)<(b|0)?1:(f|0)<=(b|0)?t>>>0>>0:0){break a}b=m+u|0;m=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+52>>2]=m;i[d+16>>2]=q;i[d+20>>2]=c;break k}if(!Rf(1,p+52|0,d)){break a}m=i[p+52>>2]}if(h>>>0>>0|h>>>0>((m>>>0)/3|0)+m>>>0){break a}b=i[a+4>>2];d=i[b+32>>2];l:{if(j[b+36|0]<=1){f=i[d+12>>2];b=i[d+20>>2];q=i[d+16>>2];c=q+4|0;if(c>>>0<4){b=b+1|0}t=c;c=b;if((f|0)<(b|0)?1:(f|0)<=(b|0)?l[d+8>>2]>>0:0){break a}b=q+i[d>>2]|0;r=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+48>>2]=r;i[d+16>>2]=t;i[d+20>>2]=c;break l}if(!Rf(1,p+48|0,d)){break a}r=i[p+48>>2]}if(r>>>0>m>>>0){break a}i[a+28>>2]=i[a+24>>2];c=Gm(88);yk(c);b=i[a+8>>2];i[a+8>>2]=c;f=a+8|0;if(b){Sf(f,b);if(!i[f>>2]){break a}}b=i[a+160>>2];i[a+164>>2]=b;m:{if(i[a+168>>2]-b>>2>>>0>=h>>>0){break m}if(h>>>0>=1073741824){break e}e=h<<2;c=Gm(e);i[a+164>>2]=c;i[a+160>>2]=c;i[a+168>>2]=c+e;if(!b){break m}qn(b)}b=i[a+172>>2];i[a+176>>2]=b;n:{if(i[a+180>>2]-b>>2>>>0>=h>>>0){break n}if(h>>>0>=1073741824){break d}e=h<<2;c=Gm(e);i[a+176>>2]=c;i[a+172>>2]=c;i[a+180>>2]=c+e;if(!b){break n}qn(b)}i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+40>>2]=i[a+36>>2];i[a- -64>>2]=0;i[a+52>>2]=i[a+48>>2];i[a+76>>2]=i[a+72>>2];q=a+216|0;c=i[a+220>>2];e=i[a+216>>2];if((c|0)==(e|0)){break c}while(1){b=i[c+ -12>>2];if(b){i[c+ -8>>2]=b;qn(b)}b=i[c+ -28>>2];if(b){i[c+ -24>>2]=b;qn(b)}b=c+ -144|0;d=i[c+ -40>>2];if(d){i[c+ -36>>2]=d;qn(d)}Tf(c+ -140|0);c=b;if((e|0)!=(b|0)){continue}break}b=i[q>>2];break b}e=0;break a}Da(12220);x()}Da(12220);x()}b=e}i[a+220>>2]=e;c=(e-b|0)/144|0;o:{if(c>>>0>>0){Uf(q,s-c|0);break o}if(c>>>0<=s>>>0){break o}c=b+o(s,144)|0;if((c|0)!=(e|0)){while(1){b=i[e+ -12>>2];if(b){i[e+ -8>>2]=b;qn(b)}b=i[e+ -28>>2];if(b){i[e+ -24>>2]=b;qn(b)}b=e+ -144|0;d=i[e+ -40>>2];if(d){i[e+ -36>>2]=d;qn(d)}Tf(e+ -140|0);e=b;if((b|0)!=(c|0)){continue}break}}i[a+220>>2]=c}e=0;if(!Ik(i[f>>2],h,i[n>>2]+r|0)){break a}b=i[a+156>>2];g[p|0]=1;Lf(a+120|0,b+r|0,p);c=i[a+4>>2];b=k[c+36>>1];b=(b<<24|b<<8&16711680)>>>16|0;p:{if(b>>>0<=513){d=i[c+32>>2];q:{if(b>>>0<=511){h=i[d+12>>2];b=i[d+20>>2];n=i[d+16>>2];c=n+4|0;if(c>>>0<4){b=b+1|0}r=c;c=b;if((h|0)<(b|0)?1:(h|0)<=(b|0)?l[d+8>>2]>>0:0){break a}b=n+i[d>>2]|0;h=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[p+44>>2]=h;i[d+16>>2]=r;i[d+20>>2]=c;break q}if(!Rf(1,p+44|0,d)){break a}h=i[p+44>>2]}if(!h){break a}b=i[i[a+4>>2]+32>>2];c=i[b+8>>2];d=i[b+16>>2];b=i[b+12>>2]-(i[b+20>>2]+(c>>>0>>0)|0)|0;if((b|0)<0?1:(b|0)<=0?c-d>>>0>>0:0){break a}d=Bh(p);c=i[i[a+4>>2]+32>>2];b=i[c+16>>2];n=i[c+8>>2];Dh(d,(b+i[c>>2]|0)+h|0,(n-b|0)-h|0,k[c+38>>1]);c=Vf(a,d);if((c|0)==-1){break a}b=c;d=b>>31;break p}b=-1;d=-1;if((Vf(a,i[c+32>>2])|0)==-1){break a}}i[a+376>>2]=a;n=a+232|0;c=i[(O[i[i[a>>2]+32>>2]](a)|0)+32>>2];r=i[c>>2]+i[c+16>>2]|0;h=i[(O[i[i[a>>2]+32>>2]](a)|0)+32>>2];c=i[h+8>>2];e=i[h+16>>2];Dh(n,r,c-e|0,k[i[(O[i[i[a>>2]+32>>2]](a)|0)+32>>2]+38>>1]);i[a+372>>2]=s;e=0;c=Bh(p);r:{if(!Wf(n,c)){break r}h=Xf(a,m);if((h|0)==-1){break r}m=i[i[a+4>>2]+32>>2];e=i[c+16>>2];n=e+i[c>>2]|0;c=i[c+8>>2];Dh(m,n,c-e|0,k[m+38>>1]);c=i[a+4>>2];e=k[c+36>>1];m=(e<<24|e<<8&16711680)>>>16|0;if(m>>>0<=513){e=i[c+32>>2];n=e;r=e;c=d+i[e+20>>2]|0;e=b+i[e+16>>2]|0;if(e>>>0>>0){c=c+1|0}i[r+16>>2]=e;i[n+20>>2]=c}s:{if(i[a+220>>2]==i[a+216>>2]){break s}c=i[f>>2];b=i[c>>2];c=i[c+4>>2];t:{if(m>>>0>=513){if((b|0)==(c|0)){break s}c=0;break t}if((b|0)==(c|0)){break s}c=0;while(1){if(Yf(a,c)){c=c+3|0;b=i[f>>2];if(c>>>0>2]-i[b>>2]>>2>>>0){continue}break s}break}e=0;break r}while(1){if(Zf(a,c)){c=c+3|0;b=i[f>>2];if(c>>>0>2]-i[b>>2]>>2>>>0){continue}break s}break}e=0;break r}if(j[a+308|0]){Gh(a+272|0)}if(k[a+270>>1]<=513){Gh(a+328|0)}c=i[a+216>>2];if((c|0)!=i[a+220>>2]){n=0;while(1){e=o(n,144);Sk((e+c|0)+4|0,i[f>>2]);b=i[q>>2];c=b+e|0;d=i[c+132>>2];m=i[c+136>>2];if((d|0)!=(m|0)){Uk(c+4|0,i[d>>2]);c=d+4|0;if((m|0)!=(c|0)){while(1){Uk((e+i[q>>2]|0)+4|0,i[c>>2]);c=c+4|0;if((m|0)!=(c|0)){continue}break}}b=i[q>>2]}Tk((b+e|0)+4|0);n=n+1|0;c=i[a+216>>2];if(n>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}b=i[a+8>>2];_f(a+184|0,i[b+28>>2]-i[b+24>>2]>>2);e=i[a+216>>2];if((e|0)!=i[a+220>>2]){c=0;while(1){b=o(c,144)+e|0;e=i[b+60>>2]-i[b+56>>2]>>2;d=b+104|0;b=i[a+8>>2];b=i[b+28>>2]-i[b+24>>2]>>2;_f(d,(e|0)<(b|0)?b:e);c=c+1|0;e=i[a+216>>2];if(c>>>0<(i[a+220>>2]-e|0)/144>>>0){continue}break}}e=$f(a,h)}}L=p- -64|0;return e|0}function ub(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;g=L-32|0;L=g;f=i[a+12>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{if(f){if(f>>>0>=1073741824){break a}e=f<<2;h=Gm(e);i[g+8>>2]=h;d=e+h|0;i[g+16>>2]=d;tn(h,0,e);i[g+12>>2]=d}k=i[a+120>>2];e=i[k>>2];if(e){i[k+4>>2]=e;qn(e);i[k+8>>2]=0;i[k>>2]=0;i[k+4>>2]=0;f=i[a+12>>2];h=i[g+8>>2];d=i[g+12>>2]}i[k+4>>2]=d;i[k>>2]=h;i[k+8>>2]=i[g+16>>2];h=0;i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;b:{if(f){if(f>>>0>=1073741824){break b}e=f<<2;m=Gm(e);i[g+8>>2]=m;h=e+m|0;i[g+16>>2]=h;tn(m,0,e);i[g+12>>2]=h}d=i[a+132>>2];e=i[d>>2];if(e){i[d+4>>2]=e;qn(e);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;m=i[g+8>>2];h=i[g+12>>2]}i[d+4>>2]=h;i[d>>2]=m;i[d+8>>2]=i[g+16>>2];h=g+24|0;i[h>>2]=0;i[h+4>>2]=0;d=g+16|0;i[d>>2]=0;i[d+4>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;Pb(g+8|0);k=i[g+12>>2];e=0;c:{if((k|0)==i[d>>2]){break c}d=i[h>>2]+i[g+28>>2]|0;e=(d>>>0)/341|0;e=i[k+(e<<2)>>2]+o(d-o(e,341)|0,12)|0}i[e+4>>2]=0;i[e+8>>2]=0;i[e>>2]=b;k=1;e=i[g+28>>2];f=e+1|0;i[g+28>>2]=f;d:{if(f>>>0>>0){break d}while(1){e=i[g+12>>2];k=f+ -1|0;n=k+i[g+24>>2]|0;d=(n>>>0)/341|0;d=i[e+(d<<2)>>2]+o(n-o(d,341)|0,12)|0;u=i[d+8>>2];h=i[d+4>>2];t=i[d>>2];i[g+28>>2]=k;d=i[g+16>>2];e=d-e|0;if((e?o(e>>2,341)+ -1|0:0)-n>>>0>=682){qn(i[d+ -4>>2]);i[g+16>>2]=i[g+16>>2]+ -4}k=0;if(t>>>0>b>>>0){break d}e=i[a+120>>2];v=o(u,12);A=v+i[a+132>>2]|0;m=xl(a,A,h);if(m>>>0>=l[a+12>>2]){break d}z=e+v|0;e:{f:{w=m<<2;e=i[a>>2]-i[w+i[A>>2]>>2]|0;if(!e){if(!t){break f}q=0;while(1){e=0;f=i[c+16>>2];g:{if((f|0)==i[c+20>>2]){break g}while(1){k=o(e,20)+f|0;d=i[z>>2]+(i[k+4>>2]<<2)|0;s=i[k>>2];m=i[k+12>>2];h:{if(m>>>0>3){break h}h=i[c+12>>2];p=k+16|0;if(!i[p>>2]){d=h;break h}n=k+12|0;f=0;while(1){k=sn(h,(f<<2)+d|0,m);m=i[n>>2];h=k+m|0;f=f+1|0;if(f>>>0>2]){continue}break}d=i[c+12>>2]}f=i[c+28>>2];f=j[s+84|0]?f:i[i[s+68>>2]+(f<<2)>>2];if(f>>>0>=l[s+80>>2]){break g}k=i[s+40>>2];sn(i[i[s>>2]>>2]+o(k,f)|0,d,k);e=e+1|0;f=i[c+16>>2];if(e>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;q=q+1|0;if((t|0)!=(q|0)){continue}break}break f}i:{j:{k:{l:{if(t>>>0<=2){e=i[a+108>>2];i[e>>2]=m;h=1;f=i[a+12>>2];if(f>>>0>1){break l}break i}if(l[a+8>>2]>l[a+4>>2]){break d}k=1<>2];q=u+1|0;s=o(q,12);d=e+s|0;if((d|0)!=(z|0)){wa(d,i[z>>2],i[z+4>>2]);e=i[a+120>>2]}e=w+i[e+s>>2]|0;i[e>>2]=k+i[e>>2];p=r(t)^31;n=i[a+32>>2];k=32-n|0;m:{if((p|0)<=(k|0)){h=i[a+28>>2];if((h|0)==i[a+20>>2]){k=0;break m}d=i[h>>2];e=n+p|0;i[a+32>>2]=e;k=d<>>32-p|0;if((e|0)!=32){break m}i[a+32>>2]=0;i[a+28>>2]=h+4;break m}h=i[a+28>>2];e=h+4|0;if((e|0)==i[a+20>>2]){k=0;break m}d=i[h>>2];i[a+28>>2]=e;e=p-k|0;i[a+32>>2]=e;k=i[h+4>>2]>>>32-e|d<>>32-p}d=(t>>>1|0)-k|0;k=t-d|0;n:{if((k|0)==(d|0)){e=d;break n}p=i[a+88>>2];if((p|0)==i[a+80>>2]){break k}n=i[p>>2];h=i[a+92>>2];e=h+1|0;i[a+92>>2]=e;h=n&-2147483648>>>h;o:{if((e|0)==32){i[a+92>>2]=0;i[a+88>>2]=p+4;if(h){break o}break k}if(!h){break k}}e=k}k=d;break j}while(1){m=(f+ -1|0)==(m|0)?0:m+1|0;i[e+(h<<2)>>2]=m;h=h+1|0;f=i[a+12>>2];if(h>>>0>>0){continue}break}break i}e=d}p=i[a+132>>2];n=p+v|0;h=i[n>>2];d=h+w|0;i[d>>2]=i[d>>2]+1;wa(p+s|0,h,i[n+4>>2]);if(k){d=i[g+28>>2]+i[g+24>>2]|0;n=i[g+16>>2];f=i[g+12>>2];h=n-f|0;if((d|0)==((h?o(h>>2,341)+ -1|0:0)|0)){Pb(g+8|0);f=i[g+12>>2];n=i[g+16>>2];d=i[g+24>>2]+i[g+28>>2]|0}if((f|0)==(n|0)){d=0}else{h=(d>>>0)/341|0;d=i[(h<<2)+f>>2]+o(d-o(h,341)|0,12)|0}i[d+8>>2]=u;i[d+4>>2]=m;i[d>>2]=k;i[g+28>>2]=i[g+28>>2]+1}if(!e){break f}h=i[g+28>>2]+i[g+24>>2]|0;d=i[g+16>>2];f=i[g+12>>2];k=d-f|0;if((h|0)==((k?o(k>>2,341)+ -1|0:0)|0)){Pb(g+8|0);f=i[g+12>>2];h=i[g+24>>2]+i[g+28>>2]|0;d=i[g+16>>2]}if((d|0)==(f|0)){d=0}else{d=(h>>>0)/341|0;d=i[(d<<2)+f>>2]+o(h-o(d,341)|0,12)|0}i[d+8>>2]=q;i[d+4>>2]=m;i[d>>2]=e;f=i[g+28>>2]+1|0;i[g+28>>2]=f;break e}if(!t){break f}v=0;while(1){if(f){p=i[z>>2];n=i[A>>2];u=i[a+96>>2];h=i[a+108>>2];f=0;while(1){w=h+(f<<2)|0;i[u+(i[w>>2]<<2)>>2]=0;e=i[w>>2]<<2;y=i[a>>2]-i[e+n>>2]|0;p:{if(!y){break p}m=e+u|0;s=i[a+52>>2];k=32-s|0;if((y|0)<=(k|0)){d=i[a+48>>2];if((d|0)==i[a+40>>2]){i[m>>2]=0;break p}i[m>>2]=i[d>>2]<>>32-y;e=y+i[a+52>>2]|0;i[a+52>>2]=e;if((e|0)!=32){break p}i[a+52>>2]=0;i[a+48>>2]=d+4;break p}q=i[a+48>>2];e=q+4|0;if((e|0)==i[a+40>>2]){i[m>>2]=0;break p}d=i[q>>2];i[a+48>>2]=e;e=y-k|0;i[a+52>>2]=e;i[m>>2]=i[q+4>>2]>>>32-e|d<>>32-y}d=i[w>>2]<<2;e=d+u|0;i[e>>2]=i[e>>2]|i[d+p>>2];f=f+1|0;if(f>>>0>2]){continue}break}}e=0;f=i[c+16>>2];q:{if((f|0)==i[c+20>>2]){break q}while(1){k=o(e,20)+f|0;d=i[a+96>>2]+(i[k+4>>2]<<2)|0;q=i[k>>2];m=i[k+12>>2];r:{if(m>>>0>3){break r}h=i[c+12>>2];p=k+16|0;if(!i[p>>2]){d=h;break r}n=k+12|0;f=0;while(1){k=sn(h,(f<<2)+d|0,m);m=i[n>>2];h=k+m|0;f=f+1|0;if(f>>>0>2]){continue}break}d=i[c+12>>2]}f=i[c+28>>2];f=j[q+84|0]?f:i[i[q+68>>2]+(f<<2)>>2];if(f>>>0>=l[q+80>>2]){break q}k=i[q+40>>2];sn(i[i[q>>2]>>2]+o(k,f)|0,d,k);e=e+1|0;f=i[c+16>>2];if(e>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;v=v+1|0;if((v|0)==(t|0)){break f}f=i[a+12>>2];continue}}f=i[g+28>>2]}if(f){continue}break}k=1}b=i[g+24>>2];a=(b>>>0)/341|0;f=i[g+12>>2];h=i[g+16>>2];s:{if((f|0)==(h|0)){break s}d=(a<<2)+f|0;m=i[d>>2]+o(b-o(a,341)|0,12)|0;b=b+i[g+28>>2]|0;a=(b>>>0)/341|0;a=i[(a<<2)+f>>2]+o(b-o(a,341)|0,12)|0;if((m|0)==(a|0)){break s}while(1){m=m+12|0;if((m-i[d>>2]|0)==4092){m=i[d+4>>2];d=d+4|0}if((a|0)!=(m|0)){continue}break}}i[g+28>>2]=0;m=h-f>>2;if(m>>>0>2){while(1){qn(i[f>>2]);f=i[g+12>>2]+4|0;i[g+12>>2]=f;h=i[g+16>>2];m=h-f>>2;if(m>>>0>2){continue}break}}d=170;t:{switch(m+ -1|0){case 1:d=341;case 0:i[g+24>>2]=d;break;default:break t}}u:{if((f|0)==(h|0)){break u}while(1){qn(i[f>>2]);f=f+4|0;if((h|0)!=(f|0)){continue}break}b=i[g+16>>2];a=i[g+12>>2];if((b|0)==(a|0)){break u}i[g+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[g+8>>2];if(a){qn(a)}L=g+32|0;return k}Vm();x()}Vm();x()}function wb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;g=L-32|0;L=g;f=i[a+12>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{if(f){if(f>>>0>=1073741824){break a}d=f<<2;h=Gm(d);i[g+8>>2]=h;e=d+h|0;i[g+16>>2]=e;tn(h,0,d);i[g+12>>2]=e}k=i[a+120>>2];d=i[k>>2];if(d){i[k+4>>2]=d;qn(d);i[k+8>>2]=0;i[k>>2]=0;i[k+4>>2]=0;f=i[a+12>>2];h=i[g+8>>2];e=i[g+12>>2]}i[k+4>>2]=e;i[k>>2]=h;i[k+8>>2]=i[g+16>>2];h=0;i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;b:{if(f){if(f>>>0>=1073741824){break b}d=f<<2;m=Gm(d);i[g+8>>2]=m;h=d+m|0;i[g+16>>2]=h;tn(m,0,d);i[g+12>>2]=h}e=i[a+132>>2];d=i[e>>2];if(d){i[e+4>>2]=d;qn(d);i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;m=i[g+8>>2];h=i[g+12>>2]}i[e+4>>2]=h;i[e>>2]=m;i[e+8>>2]=i[g+16>>2];h=g+24|0;i[h>>2]=0;i[h+4>>2]=0;e=g+16|0;i[e>>2]=0;i[e+4>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;Pb(g+8|0);k=i[g+12>>2];d=0;c:{if((k|0)==i[e>>2]){break c}e=i[h>>2]+i[g+28>>2]|0;d=(e>>>0)/341|0;d=i[k+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;k=1;d=i[g+28>>2];f=d+1|0;i[g+28>>2]=f;d:{if(f>>>0>>0){break d}while(1){d=i[g+12>>2];k=f+ -1|0;n=k+i[g+24>>2]|0;e=(n>>>0)/341|0;e=i[d+(e<<2)>>2]+o(n-o(e,341)|0,12)|0;v=i[e+8>>2];h=i[e+4>>2];t=i[e>>2];i[g+28>>2]=k;e=i[g+16>>2];d=e-d|0;if((d?o(d>>2,341)+ -1|0:0)-n>>>0>=682){qn(i[e+ -4>>2]);i[g+16>>2]=i[g+16>>2]+ -4}if(t>>>0>b>>>0){k=0;break d}k=0;d=i[a+12>>2];m=(h|0)==(d+ -1|0)?0:h+1|0;if(m>>>0>=d>>>0){break d}d=i[a+120>>2];u=o(v,12);y=d+u|0;e:{f:{q=m<<2;s=u+i[a+132>>2]|0;e=i[a>>2]-i[q+i[s>>2]>>2]|0;if(!e){if(!t){break f}p=0;while(1){q=0;f=i[c+16>>2];g:{if((f|0)==i[c+20>>2]){break g}while(1){d=o(q,20)+f|0;e=i[y>>2]+(i[d+4>>2]<<2)|0;s=i[d>>2];m=i[d+12>>2];h:{if(m>>>0>3){break h}h=i[c+12>>2];n=d+16|0;if(!i[n>>2]){e=h;break h}k=d+12|0;f=0;while(1){d=sn(h,(f<<2)+e|0,m);m=i[k>>2];h=d+m|0;f=f+1|0;if(f>>>0>2]){continue}break}e=i[c+12>>2]}f=i[c+28>>2];f=j[s+84|0]?f:i[i[s+68>>2]+(f<<2)>>2];if(f>>>0>=l[s+80>>2]){break g}d=i[s+40>>2];sn(i[i[s>>2]>>2]+o(d,f)|0,e,d);q=q+1|0;f=i[c+16>>2];if(q>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((t|0)!=(p|0)){continue}break}break f}i:{j:{k:{l:{if(t>>>0<=2){d=i[a+108>>2];i[d>>2]=m;h=1;f=i[a+12>>2];if(f>>>0>1){break l}break i}if(l[a+8>>2]>l[a+4>>2]){break d}h=d;d=u+12|0;wa(h+d|0,i[y>>2],i[y+4>>2]);d=q+i[d+i[a+120>>2]>>2]|0;i[d>>2]=i[d>>2]+(1<>2];k=32-n|0;m:{if((p|0)<=(k|0)){h=i[a+28>>2];if((h|0)==i[a+20>>2]){k=0;break m}e=i[h>>2];d=p+n|0;i[a+32>>2]=d;k=e<>>32-p|0;if((d|0)!=32){break m}i[a+32>>2]=0;i[a+28>>2]=h+4;break m}h=i[a+28>>2];d=h+4|0;if((d|0)==i[a+20>>2]){k=0;break m}e=i[h>>2];i[a+28>>2]=d;d=p-k|0;i[a+32>>2]=d;k=i[h+4>>2]>>>32-d|e<>>32-p}s=v+1|0;e=(t>>>1|0)-k|0;k=t-e|0;n:{if((k|0)==(e|0)){d=e;break n}p=i[a+88>>2];if((p|0)==i[a+80>>2]){break k}n=i[p>>2];h=i[a+92>>2];d=h+1|0;i[a+92>>2]=d;h=n&-2147483648>>>h;o:{if((d|0)==32){i[a+92>>2]=0;i[a+88>>2]=p+4;if(h){break o}break k}if(!h){break k}}d=k}k=e;break j}while(1){m=(f+ -1|0)==(m|0)?0:m+1|0;i[d+(h<<2)>>2]=m;h=h+1|0;f=i[a+12>>2];if(h>>>0>>0){continue}break}break i}d=e}p=i[a+132>>2];n=p+u|0;h=i[n>>2];e=h+q|0;i[e>>2]=i[e>>2]+1;wa(p+o(s,12)|0,h,i[n+4>>2]);if(k){h=i[g+28>>2]+i[g+24>>2]|0;n=i[g+16>>2];f=i[g+12>>2];e=n-f|0;if((h|0)==((e?o(e>>2,341)+ -1|0:0)|0)){Pb(g+8|0);f=i[g+12>>2];n=i[g+16>>2];h=i[g+24>>2]+i[g+28>>2]|0}if((f|0)==(n|0)){e=0}else{e=(h>>>0)/341|0;e=i[(e<<2)+f>>2]+o(h-o(e,341)|0,12)|0}i[e+8>>2]=v;i[e+4>>2]=m;i[e>>2]=k;i[g+28>>2]=i[g+28>>2]+1}if(!d){break f}h=i[g+28>>2]+i[g+24>>2]|0;e=i[g+16>>2];f=i[g+12>>2];k=e-f|0;if((h|0)==((k?o(k>>2,341)+ -1|0:0)|0)){Pb(g+8|0);f=i[g+12>>2];h=i[g+24>>2]+i[g+28>>2]|0;e=i[g+16>>2]}if((e|0)==(f|0)){e=0}else{e=(h>>>0)/341|0;e=i[(e<<2)+f>>2]+o(h-o(e,341)|0,12)|0}i[e+8>>2]=s;i[e+4>>2]=m;i[e>>2]=d;f=i[g+28>>2]+1|0;i[g+28>>2]=f;break e}if(!t){break f}A=0;while(1){if(f){p=i[y>>2];n=i[s>>2];m=i[a+96>>2];h=i[a+108>>2];f=0;while(1){v=h+(f<<2)|0;i[m+(i[v>>2]<<2)>>2]=0;d=i[v>>2]<<2;w=i[a>>2]-i[d+n>>2]|0;p:{if(!w){break p}z=d+m|0;u=i[a+52>>2];k=32-u|0;if((w|0)<=(k|0)){e=i[a+48>>2];if((e|0)==i[a+40>>2]){i[z>>2]=0;break p}i[z>>2]=i[e>>2]<>>32-w;d=w+i[a+52>>2]|0;i[a+52>>2]=d;if((d|0)!=32){break p}i[a+52>>2]=0;i[a+48>>2]=e+4;break p}q=i[a+48>>2];d=q+4|0;if((d|0)==i[a+40>>2]){i[z>>2]=0;break p}e=i[q>>2];i[a+48>>2]=d;d=w-k|0;i[a+52>>2]=d;i[z>>2]=i[q+4>>2]>>>32-d|e<>>32-w}e=i[v>>2]<<2;d=e+m|0;i[d>>2]=i[d>>2]|i[e+p>>2];f=f+1|0;if(f>>>0>2]){continue}break}}q=0;f=i[c+16>>2];q:{if((f|0)==i[c+20>>2]){break q}while(1){d=o(q,20)+f|0;e=i[a+96>>2]+(i[d+4>>2]<<2)|0;p=i[d>>2];m=i[d+12>>2];r:{if(m>>>0>3){break r}h=i[c+12>>2];n=d+16|0;if(!i[n>>2]){e=h;break r}k=d+12|0;f=0;while(1){d=sn(h,(f<<2)+e|0,m);m=i[k>>2];h=d+m|0;f=f+1|0;if(f>>>0>2]){continue}break}e=i[c+12>>2]}f=i[c+28>>2];f=j[p+84|0]?f:i[i[p+68>>2]+(f<<2)>>2];if(f>>>0>=l[p+80>>2]){break q}d=i[p+40>>2];sn(i[i[p>>2]>>2]+o(d,f)|0,e,d);q=q+1|0;f=i[c+16>>2];if(q>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;A=A+1|0;if((A|0)==(t|0)){break f}f=i[a+12>>2];continue}}f=i[g+28>>2]}if(f){continue}break}k=1}b=i[g+24>>2];a=(b>>>0)/341|0;f=i[g+12>>2];h=i[g+16>>2];s:{if((f|0)==(h|0)){break s}e=(a<<2)+f|0;m=i[e>>2]+o(b-o(a,341)|0,12)|0;b=b+i[g+28>>2]|0;a=(b>>>0)/341|0;a=i[(a<<2)+f>>2]+o(b-o(a,341)|0,12)|0;if((m|0)==(a|0)){break s}while(1){m=m+12|0;if((m-i[e>>2]|0)==4092){m=i[e+4>>2];e=e+4|0}if((a|0)!=(m|0)){continue}break}}i[g+28>>2]=0;m=h-f>>2;if(m>>>0>2){while(1){qn(i[f>>2]);f=i[g+12>>2]+4|0;i[g+12>>2]=f;h=i[g+16>>2];m=h-f>>2;if(m>>>0>2){continue}break}}e=170;t:{switch(m+ -1|0){case 1:e=341;case 0:i[g+24>>2]=e;break;default:break t}}u:{if((f|0)==(h|0)){break u}while(1){qn(i[f>>2]);f=f+4|0;if((h|0)!=(f|0)){continue}break}b=i[g+16>>2];a=i[g+12>>2];if((b|0)==(a|0)){break u}i[g+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[g+8>>2];if(a){qn(a)}L=g+32|0;return k}Vm();x()}Vm();x()}function zb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;g=L-32|0;L=g;d=i[a+12>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{if(d){if(d>>>0>=1073741824){break a}h=d<<2;e=Gm(h);i[g+8>>2]=e;f=e+h|0;i[g+16>>2]=f;tn(e,0,h);i[g+12>>2]=f}h=i[a+628>>2];k=i[h>>2];if(k){i[h+4>>2]=k;qn(k);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;d=i[a+12>>2];e=i[g+8>>2];f=i[g+12>>2]}i[h+4>>2]=f;i[h>>2]=e;i[h+8>>2]=i[g+16>>2];e=0;i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;k=0;b:{if(d){if(d>>>0>=1073741824){break b}f=d<<2;k=Gm(f);i[g+8>>2]=k;e=f+k|0;i[g+16>>2]=e;tn(k,0,f);i[g+12>>2]=e}f=i[a+640>>2];d=i[f>>2];if(d){i[f+4>>2]=d;qn(d);i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;k=i[g+8>>2];e=i[g+12>>2]}i[f+4>>2]=e;i[f>>2]=k;i[f+8>>2]=i[g+16>>2];e=g+24|0;i[e>>2]=0;i[e+4>>2]=0;d=g+16|0;i[d>>2]=0;i[d+4>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;Pb(g+8|0);h=i[d>>2];d=i[g+12>>2];f=0;c:{if((h|0)==(d|0)){break c}f=i[e>>2]+i[g+28>>2]|0;e=(f>>>0)/341|0;f=i[d+(e<<2)>>2]+o(f-o(e,341)|0,12)|0}i[f+4>>2]=0;i[f+8>>2]=0;i[f>>2]=b;h=1;f=i[g+28>>2];d=f+1|0;i[g+28>>2]=d;d:{if(d>>>0>>0){break d}while(1){h=i[g+12>>2];d=d+ -1|0;f=d+i[g+24>>2]|0;e=(f>>>0)/341|0;e=i[h+(e<<2)>>2]+o(f-o(e,341)|0,12)|0;n=i[e+8>>2];k=i[e+4>>2];m=i[e>>2];i[g+28>>2]=d;e=i[g+16>>2];d=e-h|0;if((d?o(d>>2,341)+ -1|0:0)-f>>>0>=682){qn(i[e+ -4>>2]);i[g+16>>2]=i[g+16>>2]+ -4}h=0;if(m>>>0>b>>>0){break d}f=i[a+628>>2];s=o(n,12);t=s+i[a+640>>2]|0;k=xl(a,t,k);if(k>>>0>=l[a+12>>2]){break d}q=f+s|0;e:{f:{p=k<<2;f=i[a>>2]-i[p+i[t>>2]>>2]|0;if(!f){if(!m){break f}s=0;while(1){h=0;d=i[c+16>>2];g:{if((d|0)==i[c+20>>2]){break g}while(1){d=o(h,20)+d|0;f=i[q>>2]+(i[d+4>>2]<<2)|0;n=i[d>>2];k=i[d+12>>2];h:{if(k>>>0>3){break h}e=i[c+12>>2];t=d+16|0;if(!i[t>>2]){f=e;break h}p=d+12|0;d=0;while(1){e=sn(e,(d<<2)+f|0,k);k=i[p>>2];e=e+k|0;d=d+1|0;if(d>>>0>2]){continue}break}f=i[c+12>>2]}d=i[c+28>>2];d=j[n+84|0]?d:i[i[n+68>>2]+(d<<2)>>2];if(d>>>0>=l[n+80>>2]){break g}e=i[n+40>>2];sn(i[i[n>>2]>>2]+o(e,d)|0,f,e);h=h+1|0;d=i[c+16>>2];if(h>>>0<(i[c+20>>2]-d|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;s=s+1|0;if((m|0)!=(s|0)){continue}break}break f}i:{j:{k:{l:{if(m>>>0<=2){f=i[a+616>>2];i[f>>2]=k;e=1;d=i[a+12>>2];if(d>>>0>1){break l}break i}if(l[a+8>>2]>l[a+4>>2]){break d}e=1<>2];t=n+1|0;h=o(t,12);d=f+h|0;if((d|0)!=(q|0)){wa(d,i[q>>2],i[q+4>>2]);f=i[a+628>>2]}f=p+i[f+h>>2]|0;i[f>>2]=e+i[f>>2];e=0;d=0;f=r(m)^31;if(f){while(1){e=Ee(((d<<4)+a|0)+16|0)|e<<1;d=d+1|0;if((f|0)!=(d|0)){continue}break}}e=(m>>>1|0)-e|0;d=m-e|0;m:{if((d|0)==(e|0)){f=e;break m}f=i[a+596>>2];if((f|0)==i[a+588>>2]){break k}m=i[f>>2];q=i[a+600>>2];u=q+1|0;i[a+600>>2]=u;m=m&-2147483648>>>q;n:{if((u|0)==32){i[a+600>>2]=0;i[a+596>>2]=f+4;if(m){break n}break k}if(!m){break k}}f=d}d=e;break j}while(1){k=(d+ -1|0)==(k|0)?0:k+1|0;i[f+(e<<2)>>2]=k;e=e+1|0;d=i[a+12>>2];if(e>>>0>>0){continue}break}break i}f=e}e=i[a+640>>2];m=e+s|0;q=i[m>>2];s=q+p|0;i[s>>2]=i[s>>2]+1;wa(e+h|0,q,i[m+4>>2]);if(d){m=i[g+28>>2]+i[g+24>>2]|0;q=i[g+16>>2];e=i[g+12>>2];h=q-e|0;if((m|0)==((h?o(h>>2,341)+ -1|0:0)|0)){Pb(g+8|0);m=i[g+24>>2]+i[g+28>>2]|0;q=i[g+16>>2];e=i[g+12>>2]}h=0;o:{if((e|0)==(q|0)){break o}h=e;e=(m>>>0)/341|0;h=i[h+(e<<2)>>2]+o(m-o(e,341)|0,12)|0}i[h+8>>2]=n;i[h+4>>2]=k;i[h>>2]=d;i[g+28>>2]=i[g+28>>2]+1}if(!f){break f}e=i[g+28>>2]+i[g+24>>2]|0;h=i[g+16>>2];d=i[g+12>>2];m=h-d|0;if((e|0)==((m?o(m>>2,341)+ -1|0:0)|0)){Pb(g+8|0);h=i[g+16>>2];d=i[g+12>>2];e=i[g+24>>2]+i[g+28>>2]|0}if((d|0)==(h|0)){e=0}else{h=d;d=(e>>>0)/341|0;e=i[h+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[e+8>>2]=t;i[e+4>>2]=k;i[e>>2]=f;d=i[g+28>>2]+1|0;i[g+28>>2]=d;break e}if(!m){break f}s=0;while(1){if(d){u=i[q>>2];y=i[t>>2];h=i[a+604>>2];z=i[a+616>>2];d=0;while(1){k=z+(d<<2)|0;i[h+(i[k>>2]<<2)>>2]=0;e=i[k>>2]<<2;f=i[a>>2]-i[e+y>>2]|0;p:{if(!f){break p}e=e+h|0;n=i[a+560>>2];v=32-n|0;if((f|0)<=(v|0)){p=i[a+556>>2];if((p|0)==i[a+548>>2]){i[e>>2]=0;break p}i[e>>2]=i[p>>2]<>>32-f;f=f+i[a+560>>2]|0;i[a+560>>2]=f;if((f|0)!=32){break p}i[a+560>>2]=0;i[a+556>>2]=p+4;break p}p=i[a+556>>2];w=p+4|0;if((w|0)==i[a+548>>2]){i[e>>2]=0;break p}A=i[p>>2];i[a+556>>2]=w;v=f-v|0;i[a+560>>2]=v;i[e>>2]=i[p+4>>2]>>>32-v|A<>>32-f}f=i[k>>2]<<2;e=f+h|0;i[e>>2]=i[e>>2]|i[f+u>>2];d=d+1|0;if(d>>>0>2]){continue}break}}h=0;d=i[c+16>>2];q:{if((d|0)==i[c+20>>2]){break q}while(1){d=o(h,20)+d|0;f=i[a+604>>2]+(i[d+4>>2]<<2)|0;n=i[d>>2];k=i[d+12>>2];r:{if(k>>>0>3){break r}e=i[c+12>>2];p=d+16|0;if(!i[p>>2]){f=e;break r}u=d+12|0;d=0;while(1){e=sn(e,(d<<2)+f|0,k);k=i[u>>2];e=e+k|0;d=d+1|0;if(d>>>0>2]){continue}break}f=i[c+12>>2]}d=i[c+28>>2];d=j[n+84|0]?d:i[i[n+68>>2]+(d<<2)>>2];if(d>>>0>=l[n+80>>2]){break q}e=i[n+40>>2];sn(i[i[n>>2]>>2]+o(e,d)|0,f,e);h=h+1|0;d=i[c+16>>2];if(h>>>0<(i[c+20>>2]-d|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;s=s+1|0;if((s|0)==(m|0)){break f}d=i[a+12>>2];continue}}d=i[g+28>>2]}if(d){continue}break}h=1}a=i[g+24>>2];b=(a>>>0)/341|0;d=i[g+12>>2];e=i[g+16>>2];s:{if((d|0)==(e|0)){break s}f=(b<<2)+d|0;k=i[f>>2]+o(a-o(b,341)|0,12)|0;a=a+i[g+28>>2]|0;b=(a>>>0)/341|0;a=i[(b<<2)+d>>2]+o(a-o(b,341)|0,12)|0;if((k|0)==(a|0)){break s}while(1){k=k+12|0;if((k-i[f>>2]|0)==4092){k=i[f+4>>2];f=f+4|0}if((a|0)!=(k|0)){continue}break}}i[g+28>>2]=0;k=e-d>>2;if(k>>>0>2){while(1){qn(i[d>>2]);d=i[g+12>>2]+4|0;i[g+12>>2]=d;e=i[g+16>>2];k=e-d>>2;if(k>>>0>2){continue}break}}f=170;t:{switch(k+ -1|0){case 1:f=341;case 0:i[g+24>>2]=f;break;default:break t}}u:{if((d|0)==(e|0)){break u}while(1){qn(i[d>>2]);d=d+4|0;if((e|0)!=(d|0)){continue}break}a=i[g+16>>2];b=i[g+12>>2];if((a|0)==(b|0)){break u}i[g+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[g+8>>2];if(a){qn(a)}L=g+32|0;return h}Vm();x()}Vm();x()}function Bb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;g=L-32|0;L=g;d=i[a+12>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{if(d){if(d>>>0>=1073741824){break a}h=d<<2;e=Gm(h);i[g+8>>2]=e;f=e+h|0;i[g+16>>2]=f;tn(e,0,h);i[g+12>>2]=f}h=i[a+628>>2];k=i[h>>2];if(k){i[h+4>>2]=k;qn(k);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;d=i[a+12>>2];e=i[g+8>>2];f=i[g+12>>2]}i[h+4>>2]=f;i[h>>2]=e;i[h+8>>2]=i[g+16>>2];e=0;i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;k=0;b:{if(d){if(d>>>0>=1073741824){break b}f=d<<2;k=Gm(f);i[g+8>>2]=k;e=f+k|0;i[g+16>>2]=e;tn(k,0,f);i[g+12>>2]=e}f=i[a+640>>2];d=i[f>>2];if(d){i[f+4>>2]=d;qn(d);i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;k=i[g+8>>2];e=i[g+12>>2]}i[f+4>>2]=e;i[f>>2]=k;i[f+8>>2]=i[g+16>>2];e=g+24|0;i[e>>2]=0;i[e+4>>2]=0;d=g+16|0;i[d>>2]=0;i[d+4>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;Pb(g+8|0);h=i[d>>2];d=i[g+12>>2];f=0;c:{if((h|0)==(d|0)){break c}f=i[e>>2]+i[g+28>>2]|0;e=(f>>>0)/341|0;f=i[d+(e<<2)>>2]+o(f-o(e,341)|0,12)|0}i[f+4>>2]=0;i[f+8>>2]=0;i[f>>2]=b;h=1;f=i[g+28>>2];d=f+1|0;i[g+28>>2]=d;d:{if(d>>>0>>0){break d}while(1){k=i[g+12>>2];h=d+ -1|0;f=h+i[g+24>>2]|0;e=(f>>>0)/341|0;e=i[k+(e<<2)>>2]+o(f-o(e,341)|0,12)|0;n=i[e+8>>2];d=i[e+4>>2];m=i[e>>2];i[g+28>>2]=h;e=i[g+16>>2];h=e-k|0;if((h?o(h>>2,341)+ -1|0:0)-f>>>0>=682){qn(i[e+ -4>>2]);i[g+16>>2]=i[g+16>>2]+ -4}if(m>>>0>b>>>0){h=0;break d}h=0;f=i[a+12>>2];k=(d|0)==(f+ -1|0)?0:d+1|0;if(k>>>0>=f>>>0){break d}f=i[a+628>>2];p=o(n,12);s=f+p|0;e:{f:{q=k<<2;t=p+i[a+640>>2]|0;e=i[a>>2]-i[q+i[t>>2]>>2]|0;if(!e){if(!m){break f}p=0;while(1){h=0;d=i[c+16>>2];g:{if((d|0)==i[c+20>>2]){break g}while(1){d=o(h,20)+d|0;f=i[s>>2]+(i[d+4>>2]<<2)|0;n=i[d>>2];k=i[d+12>>2];h:{if(k>>>0>3){break h}e=i[c+12>>2];q=d+16|0;if(!i[q>>2]){f=e;break h}t=d+12|0;d=0;while(1){e=sn(e,(d<<2)+f|0,k);k=i[t>>2];e=e+k|0;d=d+1|0;if(d>>>0>2]){continue}break}f=i[c+12>>2]}d=i[c+28>>2];d=j[n+84|0]?d:i[i[n+68>>2]+(d<<2)>>2];if(d>>>0>=l[n+80>>2]){break g}e=i[n+40>>2];sn(i[i[n>>2]>>2]+o(e,d)|0,f,e);h=h+1|0;d=i[c+16>>2];if(h>>>0<(i[c+20>>2]-d|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((m|0)!=(p|0)){continue}break}break f}i:{j:{k:{l:{if(m>>>0<=2){f=i[a+616>>2];i[f>>2]=k;e=1;d=i[a+12>>2];if(d>>>0>1){break l}break i}if(l[a+8>>2]>l[a+4>>2]){break d}d=f;f=p+12|0;wa(d+f|0,i[s>>2],i[s+4>>2]);f=q+i[f+i[a+628>>2]>>2]|0;i[f>>2]=i[f>>2]+(1<>>1|0)-e|0;d=m-e|0;m:{if((d|0)==(e|0)){f=e;break m}f=i[a+596>>2];if((f|0)==i[a+588>>2]){break k}h=i[f>>2];m=i[a+600>>2];t=m+1|0;i[a+600>>2]=t;h=h&-2147483648>>>m;n:{if((t|0)==32){i[a+600>>2]=0;i[a+596>>2]=f+4;if(h){break n}break k}if(!h){break k}}f=d}d=e;break j}while(1){k=(d+ -1|0)==(k|0)?0:k+1|0;i[f+(e<<2)>>2]=k;e=e+1|0;d=i[a+12>>2];if(e>>>0>>0){continue}break}break i}f=e}e=i[a+640>>2];h=e+p|0;m=i[h>>2];p=m+q|0;i[p>>2]=i[p>>2]+1;wa(e+o(s,12)|0,m,i[h+4>>2]);if(d){m=i[g+28>>2]+i[g+24>>2]|0;p=i[g+16>>2];e=i[g+12>>2];h=p-e|0;if((m|0)==((h?o(h>>2,341)+ -1|0:0)|0)){Pb(g+8|0);m=i[g+24>>2]+i[g+28>>2]|0;p=i[g+16>>2];e=i[g+12>>2]}h=0;o:{if((e|0)==(p|0)){break o}h=e;e=(m>>>0)/341|0;h=i[h+(e<<2)>>2]+o(m-o(e,341)|0,12)|0}i[h+8>>2]=n;i[h+4>>2]=k;i[h>>2]=d;i[g+28>>2]=i[g+28>>2]+1}if(!f){break f}e=i[g+28>>2]+i[g+24>>2]|0;m=i[g+16>>2];d=i[g+12>>2];h=m-d|0;if((e|0)==((h?o(h>>2,341)+ -1|0:0)|0)){Pb(g+8|0);m=i[g+16>>2];d=i[g+12>>2];e=i[g+24>>2]+i[g+28>>2]|0}if((d|0)==(m|0)){e=0}else{h=d;d=(e>>>0)/341|0;e=i[h+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[e+8>>2]=s;i[e+4>>2]=k;i[e>>2]=f;d=i[g+28>>2]+1|0;i[g+28>>2]=d;break e}if(!m){break f}p=0;while(1){if(d){v=i[s>>2];y=i[t>>2];h=i[a+604>>2];z=i[a+616>>2];d=0;while(1){k=z+(d<<2)|0;i[h+(i[k>>2]<<2)>>2]=0;e=i[k>>2]<<2;f=i[a>>2]-i[e+y>>2]|0;p:{if(!f){break p}e=e+h|0;n=i[a+560>>2];u=32-n|0;if((f|0)<=(u|0)){q=i[a+556>>2];if((q|0)==i[a+548>>2]){i[e>>2]=0;break p}i[e>>2]=i[q>>2]<>>32-f;f=f+i[a+560>>2]|0;i[a+560>>2]=f;if((f|0)!=32){break p}i[a+560>>2]=0;i[a+556>>2]=q+4;break p}q=i[a+556>>2];w=q+4|0;if((w|0)==i[a+548>>2]){i[e>>2]=0;break p}A=i[q>>2];i[a+556>>2]=w;u=f-u|0;i[a+560>>2]=u;i[e>>2]=i[q+4>>2]>>>32-u|A<>>32-f}f=i[k>>2]<<2;e=f+h|0;i[e>>2]=i[e>>2]|i[f+v>>2];d=d+1|0;if(d>>>0>2]){continue}break}}h=0;d=i[c+16>>2];q:{if((d|0)==i[c+20>>2]){break q}while(1){d=o(h,20)+d|0;f=i[a+604>>2]+(i[d+4>>2]<<2)|0;n=i[d>>2];k=i[d+12>>2];r:{if(k>>>0>3){break r}e=i[c+12>>2];q=d+16|0;if(!i[q>>2]){f=e;break r}v=d+12|0;d=0;while(1){e=sn(e,(d<<2)+f|0,k);k=i[v>>2];e=e+k|0;d=d+1|0;if(d>>>0>2]){continue}break}f=i[c+12>>2]}d=i[c+28>>2];d=j[n+84|0]?d:i[i[n+68>>2]+(d<<2)>>2];if(d>>>0>=l[n+80>>2]){break q}e=i[n+40>>2];sn(i[i[n>>2]>>2]+o(e,d)|0,f,e);h=h+1|0;d=i[c+16>>2];if(h>>>0<(i[c+20>>2]-d|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((p|0)==(m|0)){break f}d=i[a+12>>2];continue}}d=i[g+28>>2]}if(d){continue}break}h=1}a=i[g+24>>2];b=(a>>>0)/341|0;d=i[g+12>>2];e=i[g+16>>2];s:{if((d|0)==(e|0)){break s}f=(b<<2)+d|0;k=i[f>>2]+o(a-o(b,341)|0,12)|0;a=a+i[g+28>>2]|0;b=(a>>>0)/341|0;a=i[(b<<2)+d>>2]+o(a-o(b,341)|0,12)|0;if((k|0)==(a|0)){break s}while(1){k=k+12|0;if((k-i[f>>2]|0)==4092){k=i[f+4>>2];f=f+4|0}if((a|0)!=(k|0)){continue}break}}i[g+28>>2]=0;k=e-d>>2;if(k>>>0>2){while(1){qn(i[d>>2]);d=i[g+12>>2]+4|0;i[g+12>>2]=d;e=i[g+16>>2];k=e-d>>2;if(k>>>0>2){continue}break}}f=170;t:{switch(k+ -1|0){case 1:f=341;case 0:i[g+24>>2]=f;break;default:break t}}u:{if((d|0)==(e|0)){break u}while(1){qn(i[d>>2]);d=d+4|0;if((e|0)!=(d|0)){continue}break}a=i[g+16>>2];b=i[g+12>>2];if((a|0)==(b|0)){break u}i[g+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[g+8>>2];if(a){qn(a)}L=g+32|0;return h}Vm();x()}Vm();x()}function Cb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;g=L-32|0;L=g;d=i[a+12>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{if(d){if(d>>>0>=1073741824){break a}h=d<<2;e=Gm(h);i[g+8>>2]=e;f=e+h|0;i[g+16>>2]=f;tn(e,0,h);i[g+12>>2]=f}h=i[a+628>>2];k=i[h>>2];if(k){i[h+4>>2]=k;qn(k);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;d=i[a+12>>2];e=i[g+8>>2];f=i[g+12>>2]}i[h+4>>2]=f;i[h>>2]=e;i[h+8>>2]=i[g+16>>2];e=0;i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;k=0;b:{if(d){if(d>>>0>=1073741824){break b}f=d<<2;k=Gm(f);i[g+8>>2]=k;e=f+k|0;i[g+16>>2]=e;tn(k,0,f);i[g+12>>2]=e}f=i[a+640>>2];d=i[f>>2];if(d){i[f+4>>2]=d;qn(d);i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;k=i[g+8>>2];e=i[g+12>>2]}i[f+4>>2]=e;i[f>>2]=k;i[f+8>>2]=i[g+16>>2];e=g+24|0;i[e>>2]=0;i[e+4>>2]=0;d=g+16|0;i[d>>2]=0;i[d+4>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;Pb(g+8|0);h=i[d>>2];d=i[g+12>>2];f=0;c:{if((h|0)==(d|0)){break c}f=i[e>>2]+i[g+28>>2]|0;e=(f>>>0)/341|0;f=i[d+(e<<2)>>2]+o(f-o(e,341)|0,12)|0}i[f+4>>2]=0;i[f+8>>2]=0;i[f>>2]=b;h=1;f=i[g+28>>2];d=f+1|0;i[g+28>>2]=d;d:{if(d>>>0>>0){break d}while(1){h=i[g+12>>2];d=d+ -1|0;f=d+i[g+24>>2]|0;e=(f>>>0)/341|0;e=i[h+(e<<2)>>2]+o(f-o(e,341)|0,12)|0;n=i[e+8>>2];m=i[e>>2];i[g+28>>2]=d;e=i[g+16>>2];d=e-h|0;if((d?o(d>>2,341)+ -1|0:0)-f>>>0>=682){qn(i[e+ -4>>2]);i[g+16>>2]=i[g+16>>2]+ -4}h=0;if(m>>>0>b>>>0){break d}f=i[a+628>>2];s=o(n,12);t=s+i[a+640>>2]|0;k=yl(a,m,t);if(k>>>0>=l[a+12>>2]){break d}q=f+s|0;e:{f:{p=k<<2;f=i[a>>2]-i[p+i[t>>2]>>2]|0;if(!f){if(!m){break f}s=0;while(1){h=0;d=i[c+16>>2];g:{if((d|0)==i[c+20>>2]){break g}while(1){d=o(h,20)+d|0;f=i[q>>2]+(i[d+4>>2]<<2)|0;n=i[d>>2];k=i[d+12>>2];h:{if(k>>>0>3){break h}e=i[c+12>>2];t=d+16|0;if(!i[t>>2]){f=e;break h}p=d+12|0;d=0;while(1){e=sn(e,(d<<2)+f|0,k);k=i[p>>2];e=e+k|0;d=d+1|0;if(d>>>0>2]){continue}break}f=i[c+12>>2]}d=i[c+28>>2];d=j[n+84|0]?d:i[i[n+68>>2]+(d<<2)>>2];if(d>>>0>=l[n+80>>2]){break g}e=i[n+40>>2];sn(i[i[n>>2]>>2]+o(e,d)|0,f,e);h=h+1|0;d=i[c+16>>2];if(h>>>0<(i[c+20>>2]-d|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;s=s+1|0;if((m|0)!=(s|0)){continue}break}break f}i:{j:{k:{l:{if(m>>>0<=2){f=i[a+616>>2];i[f>>2]=k;e=1;d=i[a+12>>2];if(d>>>0>1){break l}break i}if(l[a+8>>2]>l[a+4>>2]){break d}e=1<>2];t=n+1|0;h=o(t,12);d=f+h|0;if((d|0)!=(q|0)){wa(d,i[q>>2],i[q+4>>2]);f=i[a+628>>2]}f=p+i[f+h>>2]|0;i[f>>2]=e+i[f>>2];e=0;d=0;f=r(m)^31;if(f){while(1){e=Ee(((d<<4)+a|0)+16|0)|e<<1;d=d+1|0;if((f|0)!=(d|0)){continue}break}}e=(m>>>1|0)-e|0;d=m-e|0;m:{if((d|0)==(e|0)){f=e;break m}f=i[a+596>>2];if((f|0)==i[a+588>>2]){break k}m=i[f>>2];q=i[a+600>>2];u=q+1|0;i[a+600>>2]=u;m=m&-2147483648>>>q;n:{if((u|0)==32){i[a+600>>2]=0;i[a+596>>2]=f+4;if(m){break n}break k}if(!m){break k}}f=d}d=e;break j}while(1){k=(d+ -1|0)==(k|0)?0:k+1|0;i[f+(e<<2)>>2]=k;e=e+1|0;d=i[a+12>>2];if(e>>>0>>0){continue}break}break i}f=e}e=i[a+640>>2];m=e+s|0;q=i[m>>2];s=q+p|0;i[s>>2]=i[s>>2]+1;wa(e+h|0,q,i[m+4>>2]);if(d){m=i[g+28>>2]+i[g+24>>2]|0;q=i[g+16>>2];e=i[g+12>>2];h=q-e|0;if((m|0)==((h?o(h>>2,341)+ -1|0:0)|0)){Pb(g+8|0);m=i[g+24>>2]+i[g+28>>2]|0;q=i[g+16>>2];e=i[g+12>>2]}h=0;o:{if((e|0)==(q|0)){break o}h=e;e=(m>>>0)/341|0;h=i[h+(e<<2)>>2]+o(m-o(e,341)|0,12)|0}i[h+8>>2]=n;i[h+4>>2]=k;i[h>>2]=d;i[g+28>>2]=i[g+28>>2]+1}if(!f){break f}e=i[g+28>>2]+i[g+24>>2]|0;h=i[g+16>>2];d=i[g+12>>2];m=h-d|0;if((e|0)==((m?o(m>>2,341)+ -1|0:0)|0)){Pb(g+8|0);h=i[g+16>>2];d=i[g+12>>2];e=i[g+24>>2]+i[g+28>>2]|0}if((d|0)==(h|0)){e=0}else{h=d;d=(e>>>0)/341|0;e=i[h+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[e+8>>2]=t;i[e+4>>2]=k;i[e>>2]=f;d=i[g+28>>2]+1|0;i[g+28>>2]=d;break e}if(!m){break f}s=0;while(1){if(d){u=i[q>>2];y=i[t>>2];h=i[a+604>>2];z=i[a+616>>2];d=0;while(1){k=z+(d<<2)|0;i[h+(i[k>>2]<<2)>>2]=0;e=i[k>>2]<<2;f=i[a>>2]-i[e+y>>2]|0;p:{if(!f){break p}e=e+h|0;n=i[a+560>>2];v=32-n|0;if((f|0)<=(v|0)){p=i[a+556>>2];if((p|0)==i[a+548>>2]){i[e>>2]=0;break p}i[e>>2]=i[p>>2]<>>32-f;f=f+i[a+560>>2]|0;i[a+560>>2]=f;if((f|0)!=32){break p}i[a+560>>2]=0;i[a+556>>2]=p+4;break p}p=i[a+556>>2];w=p+4|0;if((w|0)==i[a+548>>2]){i[e>>2]=0;break p}A=i[p>>2];i[a+556>>2]=w;v=f-v|0;i[a+560>>2]=v;i[e>>2]=i[p+4>>2]>>>32-v|A<>>32-f}f=i[k>>2]<<2;e=f+h|0;i[e>>2]=i[e>>2]|i[f+u>>2];d=d+1|0;if(d>>>0>2]){continue}break}}h=0;d=i[c+16>>2];q:{if((d|0)==i[c+20>>2]){break q}while(1){d=o(h,20)+d|0;f=i[a+604>>2]+(i[d+4>>2]<<2)|0;n=i[d>>2];k=i[d+12>>2];r:{if(k>>>0>3){break r}e=i[c+12>>2];p=d+16|0;if(!i[p>>2]){f=e;break r}u=d+12|0;d=0;while(1){e=sn(e,(d<<2)+f|0,k);k=i[u>>2];e=e+k|0;d=d+1|0;if(d>>>0>2]){continue}break}f=i[c+12>>2]}d=i[c+28>>2];d=j[n+84|0]?d:i[i[n+68>>2]+(d<<2)>>2];if(d>>>0>=l[n+80>>2]){break q}e=i[n+40>>2];sn(i[i[n>>2]>>2]+o(e,d)|0,f,e);h=h+1|0;d=i[c+16>>2];if(h>>>0<(i[c+20>>2]-d|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;s=s+1|0;if((s|0)==(m|0)){break f}d=i[a+12>>2];continue}}d=i[g+28>>2]}if(d){continue}break}h=1}a=i[g+24>>2];b=(a>>>0)/341|0;d=i[g+12>>2];e=i[g+16>>2];s:{if((d|0)==(e|0)){break s}f=(b<<2)+d|0;k=i[f>>2]+o(a-o(b,341)|0,12)|0;a=a+i[g+28>>2]|0;b=(a>>>0)/341|0;a=i[(b<<2)+d>>2]+o(a-o(b,341)|0,12)|0;if((k|0)==(a|0)){break s}while(1){k=k+12|0;if((k-i[f>>2]|0)==4092){k=i[f+4>>2];f=f+4|0}if((a|0)!=(k|0)){continue}break}}i[g+28>>2]=0;k=e-d>>2;if(k>>>0>2){while(1){qn(i[d>>2]);d=i[g+12>>2]+4|0;i[g+12>>2]=d;e=i[g+16>>2];k=e-d>>2;if(k>>>0>2){continue}break}}f=170;t:{switch(k+ -1|0){case 1:f=341;case 0:i[g+24>>2]=f;break;default:break t}}u:{if((d|0)==(e|0)){break u}while(1){qn(i[d>>2]);d=d+4|0;if((e|0)!=(d|0)){continue}break}a=i[g+16>>2];b=i[g+12>>2];if((a|0)==(b|0)){break u}i[g+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[g+8>>2];if(a){qn(a)}L=g+32|0;return h}Vm();x()}Vm();x()}function xb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0;g=L-32|0;L=g;f=i[a+12>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{if(f){if(f>>>0>=1073741824){break a}d=f<<2;h=Gm(d);i[g+8>>2]=h;e=d+h|0;i[g+16>>2]=e;tn(h,0,d);i[g+12>>2]=e}m=i[a+116>>2];d=i[m>>2];if(d){i[m+4>>2]=d;qn(d);i[m+8>>2]=0;i[m>>2]=0;i[m+4>>2]=0;f=i[a+12>>2];h=i[g+8>>2];e=i[g+12>>2]}i[m+4>>2]=e;i[m>>2]=h;i[m+8>>2]=i[g+16>>2];h=0;i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;b:{if(f){if(f>>>0>=1073741824){break b}d=f<<2;k=Gm(d);i[g+8>>2]=k;h=d+k|0;i[g+16>>2]=h;tn(k,0,d);i[g+12>>2]=h}e=i[a+128>>2];d=i[e>>2];if(d){i[e+4>>2]=d;qn(d);i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;k=i[g+8>>2];h=i[g+12>>2]}i[e+4>>2]=h;i[e>>2]=k;i[e+8>>2]=i[g+16>>2];h=g+24|0;i[h>>2]=0;i[h+4>>2]=0;e=g+16|0;i[e>>2]=0;i[e+4>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;Pb(g+8|0);m=i[g+12>>2];d=0;c:{if((m|0)==i[e>>2]){break c}e=i[h>>2]+i[g+28>>2]|0;d=(e>>>0)/341|0;d=i[m+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;d=1;e=i[g+28>>2];f=e+1|0;i[g+28>>2]=f;d:{if(f>>>0>>0){break d}B=a+16|0;while(1){d=i[g+12>>2];h=f+ -1|0;n=h+i[g+24>>2]|0;e=(n>>>0)/341|0;e=i[d+(e<<2)>>2]+o(n-o(e,341)|0,12)|0;u=i[e+8>>2];m=i[e+4>>2];t=i[e>>2];i[g+28>>2]=h;e=i[g+16>>2];d=e-d|0;if((d?o(d>>2,341)+ -1|0:0)-n>>>0>=682){qn(i[e+ -4>>2]);i[g+16>>2]=i[g+16>>2]+ -4}d=0;if(t>>>0>b>>>0){break d}e=i[a+116>>2];v=o(u,12);A=v+i[a+128>>2]|0;k=xl(a,A,m);if(k>>>0>=l[a+12>>2]){break d}z=e+v|0;e:{w=k<<2;e=i[a>>2]-i[w+i[A>>2]>>2]|0;if(!e){if(!t){break e}p=0;while(1){m=0;f=i[c+16>>2];f:{if((f|0)==i[c+20>>2]){break f}while(1){d=o(m,20)+f|0;e=i[z>>2]+(i[d+4>>2]<<2)|0;s=i[d>>2];k=i[d+12>>2];g:{if(k>>>0>3){break g}h=i[c+12>>2];q=d+16|0;if(!i[q>>2]){e=h;break g}n=d+12|0;f=0;while(1){d=sn(h,(f<<2)+e|0,k);k=i[n>>2];h=d+k|0;f=f+1|0;if(f>>>0>2]){continue}break}e=i[c+12>>2]}f=i[c+28>>2];f=j[s+84|0]?f:i[i[s+68>>2]+(f<<2)>>2];if(f>>>0>=l[s+80>>2]){break f}d=i[s+40>>2];sn(i[i[s>>2]>>2]+o(d,f)|0,e,d);m=m+1|0;f=i[c+16>>2];if(m>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((t|0)!=(p|0)){continue}break}break e}h:{i:{j:{k:{if(t>>>0<=2){d=i[a+104>>2];i[d>>2]=k;h=1;f=i[a+12>>2];if(f>>>0>1){break k}break h}if(l[a+8>>2]>l[a+4>>2]){break d}m=1<>2];p=u+1|0;s=o(p,12);e=d+s|0;if((e|0)!=(z|0)){wa(e,i[z>>2],i[z+4>>2]);d=i[a+116>>2]}d=w+i[d+s>>2]|0;i[d>>2]=m+i[d>>2];i[g+4>>2]=0;Fe(B,r(t)^31,g+4|0);e=(t>>>1|0)-i[g+4>>2]|0;d=t-e|0;l:{if((d|0)==(e|0)){d=e;break l}q=i[a+84>>2];if((q|0)==i[a+76>>2]){break j}n=i[q>>2];h=i[a+88>>2];m=h+1|0;i[a+88>>2]=m;h=n&-2147483648>>>h;m:{if((m|0)==32){i[a+88>>2]=0;i[a+84>>2]=q+4;if(h){break m}break j}if(!h){break j}}}m=d;d=e;break i}while(1){k=(f+ -1|0)==(k|0)?0:k+1|0;i[d+(h<<2)>>2]=k;h=h+1|0;f=i[a+12>>2];if(h>>>0>>0){continue}break}break h}m=e}q=i[a+128>>2];n=q+v|0;h=i[n>>2];e=h+w|0;i[e>>2]=i[e>>2]+1;wa(s+q|0,h,i[n+4>>2]);if(d){e=i[g+28>>2]+i[g+24>>2]|0;n=i[g+16>>2];f=i[g+12>>2];h=n-f|0;if((e|0)==((h?o(h>>2,341)+ -1|0:0)|0)){Pb(g+8|0);f=i[g+12>>2];n=i[g+16>>2];e=i[g+24>>2]+i[g+28>>2]|0}if((f|0)==(n|0)){e=0}else{h=(e>>>0)/341|0;e=i[(h<<2)+f>>2]+o(e-o(h,341)|0,12)|0}i[e+8>>2]=u;i[e+4>>2]=k;i[e>>2]=d;i[g+28>>2]=i[g+28>>2]+1}if(!m){break e}h=i[g+28>>2]+i[g+24>>2]|0;e=i[g+16>>2];f=i[g+12>>2];d=e-f|0;if((h|0)==((d?o(d>>2,341)+ -1|0:0)|0)){Pb(g+8|0);f=i[g+12>>2];h=i[g+24>>2]+i[g+28>>2]|0;e=i[g+16>>2]}if((e|0)==(f|0)){d=0}else{d=(h>>>0)/341|0;d=i[(d<<2)+f>>2]+o(h-o(d,341)|0,12)|0}i[d+8>>2]=p;i[d+4>>2]=k;i[d>>2]=m;i[g+28>>2]=i[g+28>>2]+1;break e}if(!t){break e}v=0;while(1){if(f){q=i[z>>2];n=i[A>>2];u=i[a+92>>2];h=i[a+104>>2];f=0;while(1){w=h+(f<<2)|0;i[u+(i[w>>2]<<2)>>2]=0;d=i[w>>2]<<2;y=i[a>>2]-i[d+n>>2]|0;n:{if(!y){break n}k=d+u|0;s=i[a+48>>2];m=32-s|0;if((y|0)<=(m|0)){e=i[a+44>>2];if((e|0)==i[a+36>>2]){i[k>>2]=0;break n}i[k>>2]=i[e>>2]<>>32-y;d=y+i[a+48>>2]|0;i[a+48>>2]=d;if((d|0)!=32){break n}i[a+48>>2]=0;i[a+44>>2]=e+4;break n}p=i[a+44>>2];d=p+4|0;if((d|0)==i[a+36>>2]){i[k>>2]=0;break n}e=i[p>>2];i[a+44>>2]=d;d=y-m|0;i[a+48>>2]=d;i[k>>2]=i[p+4>>2]>>>32-d|e<>>32-y}e=i[w>>2]<<2;d=e+u|0;i[d>>2]=i[d>>2]|i[e+q>>2];f=f+1|0;if(f>>>0>2]){continue}break}}m=0;f=i[c+16>>2];o:{if((f|0)==i[c+20>>2]){break o}while(1){d=o(m,20)+f|0;e=i[a+92>>2]+(i[d+4>>2]<<2)|0;p=i[d>>2];k=i[d+12>>2];p:{if(k>>>0>3){break p}h=i[c+12>>2];q=d+16|0;if(!i[q>>2]){e=h;break p}n=d+12|0;f=0;while(1){d=sn(h,(f<<2)+e|0,k);k=i[n>>2];h=d+k|0;f=f+1|0;if(f>>>0>2]){continue}break}e=i[c+12>>2]}f=i[c+28>>2];f=j[p+84|0]?f:i[i[p+68>>2]+(f<<2)>>2];if(f>>>0>=l[p+80>>2]){break o}d=i[p+40>>2];sn(i[i[p>>2]>>2]+o(d,f)|0,e,d);m=m+1|0;f=i[c+16>>2];if(m>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;v=v+1|0;if((v|0)==(t|0)){break e}f=i[a+12>>2];continue}}f=i[g+28>>2];if(f){continue}break}d=1}b=i[g+24>>2];a=(b>>>0)/341|0;f=i[g+12>>2];h=i[g+16>>2];q:{if((f|0)==(h|0)){break q}e=(a<<2)+f|0;k=i[e>>2]+o(b-o(a,341)|0,12)|0;b=b+i[g+28>>2]|0;a=(b>>>0)/341|0;a=i[(a<<2)+f>>2]+o(b-o(a,341)|0,12)|0;if((k|0)==(a|0)){break q}while(1){k=k+12|0;if((k-i[e>>2]|0)==4092){k=i[e+4>>2];e=e+4|0}if((a|0)!=(k|0)){continue}break}}i[g+28>>2]=0;k=h-f>>2;if(k>>>0>2){while(1){qn(i[f>>2]);f=i[g+12>>2]+4|0;i[g+12>>2]=f;h=i[g+16>>2];k=h-f>>2;if(k>>>0>2){continue}break}}e=170;r:{switch(k+ -1|0){case 1:e=341;case 0:i[g+24>>2]=e;break;default:break r}}s:{if((f|0)==(h|0)){break s}while(1){qn(i[f>>2]);f=f+4|0;if((h|0)!=(f|0)){continue}break}b=i[g+16>>2];a=i[g+12>>2];if((b|0)==(a|0)){break s}i[g+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[g+8>>2];if(a){qn(a)}L=g+32|0;return d}Vm();x()}Vm();x()}function yb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0;g=L-32|0;L=g;f=i[a+12>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{if(f){if(f>>>0>=1073741824){break a}d=f<<2;h=Gm(d);i[g+8>>2]=h;e=d+h|0;i[g+16>>2]=e;tn(h,0,d);i[g+12>>2]=e}m=i[a+116>>2];d=i[m>>2];if(d){i[m+4>>2]=d;qn(d);i[m+8>>2]=0;i[m>>2]=0;i[m+4>>2]=0;f=i[a+12>>2];h=i[g+8>>2];e=i[g+12>>2]}i[m+4>>2]=e;i[m>>2]=h;i[m+8>>2]=i[g+16>>2];h=0;i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;b:{if(f){if(f>>>0>=1073741824){break b}d=f<<2;k=Gm(d);i[g+8>>2]=k;h=d+k|0;i[g+16>>2]=h;tn(k,0,d);i[g+12>>2]=h}e=i[a+128>>2];d=i[e>>2];if(d){i[e+4>>2]=d;qn(d);i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;k=i[g+8>>2];h=i[g+12>>2]}i[e+4>>2]=h;i[e>>2]=k;i[e+8>>2]=i[g+16>>2];h=g+24|0;i[h>>2]=0;i[h+4>>2]=0;e=g+16|0;i[e>>2]=0;i[e+4>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;Pb(g+8|0);m=i[g+12>>2];d=0;c:{if((m|0)==i[e>>2]){break c}e=i[h>>2]+i[g+28>>2]|0;d=(e>>>0)/341|0;d=i[m+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;m=1;d=i[g+28>>2];f=d+1|0;i[g+28>>2]=f;d:{if(f>>>0>>0){break d}B=a+16|0;while(1){d=i[g+12>>2];m=f+ -1|0;n=m+i[g+24>>2]|0;e=(n>>>0)/341|0;e=i[d+(e<<2)>>2]+o(n-o(e,341)|0,12)|0;v=i[e+8>>2];h=i[e+4>>2];t=i[e>>2];i[g+28>>2]=m;e=i[g+16>>2];d=e-d|0;if((d?o(d>>2,341)+ -1|0:0)-n>>>0>=682){qn(i[e+ -4>>2]);i[g+16>>2]=i[g+16>>2]+ -4}if(t>>>0>b>>>0){m=0;break d}m=0;d=i[a+12>>2];k=(h|0)==(d+ -1|0)?0:h+1|0;if(k>>>0>=d>>>0){break d}d=i[a+116>>2];u=o(v,12);y=d+u|0;e:{q=k<<2;s=u+i[a+128>>2]|0;e=i[a>>2]-i[q+i[s>>2]>>2]|0;if(!e){if(!t){break e}p=0;while(1){q=0;f=i[c+16>>2];f:{if((f|0)==i[c+20>>2]){break f}while(1){d=o(q,20)+f|0;e=i[y>>2]+(i[d+4>>2]<<2)|0;s=i[d>>2];k=i[d+12>>2];g:{if(k>>>0>3){break g}h=i[c+12>>2];n=d+16|0;if(!i[n>>2]){e=h;break g}m=d+12|0;f=0;while(1){d=sn(h,(f<<2)+e|0,k);k=i[m>>2];h=d+k|0;f=f+1|0;if(f>>>0>2]){continue}break}e=i[c+12>>2]}f=i[c+28>>2];f=j[s+84|0]?f:i[i[s+68>>2]+(f<<2)>>2];if(f>>>0>=l[s+80>>2]){break f}d=i[s+40>>2];sn(i[i[s>>2]>>2]+o(d,f)|0,e,d);q=q+1|0;f=i[c+16>>2];if(q>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((t|0)!=(p|0)){continue}break}break e}h:{i:{j:{k:{if(t>>>0<=2){d=i[a+104>>2];i[d>>2]=k;h=1;f=i[a+12>>2];if(f>>>0>1){break k}break h}if(l[a+8>>2]>l[a+4>>2]){break d}h=d;d=u+12|0;wa(h+d|0,i[y>>2],i[y+4>>2]);d=q+i[d+i[a+116>>2]>>2]|0;i[d>>2]=i[d>>2]+(1<>2]=0;Fe(B,r(t)^31,g+4|0);s=v+1|0;e=(t>>>1|0)-i[g+4>>2]|0;m=t-e|0;l:{if((m|0)==(e|0)){d=e;break l}p=i[a+84>>2];if((p|0)==i[a+76>>2]){break j}n=i[p>>2];h=i[a+88>>2];d=h+1|0;i[a+88>>2]=d;h=n&-2147483648>>>h;m:{if((d|0)==32){i[a+88>>2]=0;i[a+84>>2]=p+4;if(h){break m}break j}if(!h){break j}}d=m}m=e;break i}while(1){k=(f+ -1|0)==(k|0)?0:k+1|0;i[d+(h<<2)>>2]=k;h=h+1|0;f=i[a+12>>2];if(h>>>0>>0){continue}break}break h}d=e}p=i[a+128>>2];n=p+u|0;h=i[n>>2];e=h+q|0;i[e>>2]=i[e>>2]+1;wa(p+o(s,12)|0,h,i[n+4>>2]);if(m){h=i[g+28>>2]+i[g+24>>2]|0;n=i[g+16>>2];f=i[g+12>>2];e=n-f|0;if((h|0)==((e?o(e>>2,341)+ -1|0:0)|0)){Pb(g+8|0);f=i[g+12>>2];n=i[g+16>>2];h=i[g+24>>2]+i[g+28>>2]|0}if((f|0)==(n|0)){e=0}else{e=(h>>>0)/341|0;e=i[(e<<2)+f>>2]+o(h-o(e,341)|0,12)|0}i[e+8>>2]=v;i[e+4>>2]=k;i[e>>2]=m;i[g+28>>2]=i[g+28>>2]+1}if(!d){break e}h=i[g+28>>2]+i[g+24>>2]|0;e=i[g+16>>2];f=i[g+12>>2];m=e-f|0;if((h|0)==((m?o(m>>2,341)+ -1|0:0)|0)){Pb(g+8|0);f=i[g+12>>2];h=i[g+24>>2]+i[g+28>>2]|0;e=i[g+16>>2]}if((e|0)==(f|0)){e=0}else{e=(h>>>0)/341|0;e=i[(e<<2)+f>>2]+o(h-o(e,341)|0,12)|0}i[e+8>>2]=s;i[e+4>>2]=k;i[e>>2]=d;i[g+28>>2]=i[g+28>>2]+1;break e}if(!t){break e}A=0;while(1){if(f){p=i[y>>2];n=i[s>>2];k=i[a+92>>2];h=i[a+104>>2];f=0;while(1){v=h+(f<<2)|0;i[k+(i[v>>2]<<2)>>2]=0;d=i[v>>2]<<2;w=i[a>>2]-i[d+n>>2]|0;n:{if(!w){break n}z=d+k|0;u=i[a+48>>2];m=32-u|0;if((w|0)<=(m|0)){e=i[a+44>>2];if((e|0)==i[a+36>>2]){i[z>>2]=0;break n}i[z>>2]=i[e>>2]<>>32-w;d=w+i[a+48>>2]|0;i[a+48>>2]=d;if((d|0)!=32){break n}i[a+48>>2]=0;i[a+44>>2]=e+4;break n}q=i[a+44>>2];d=q+4|0;if((d|0)==i[a+36>>2]){i[z>>2]=0;break n}e=i[q>>2];i[a+44>>2]=d;d=w-m|0;i[a+48>>2]=d;i[z>>2]=i[q+4>>2]>>>32-d|e<>>32-w}e=i[v>>2]<<2;d=e+k|0;i[d>>2]=i[d>>2]|i[e+p>>2];f=f+1|0;if(f>>>0>2]){continue}break}}q=0;f=i[c+16>>2];o:{if((f|0)==i[c+20>>2]){break o}while(1){d=o(q,20)+f|0;e=i[a+92>>2]+(i[d+4>>2]<<2)|0;p=i[d>>2];k=i[d+12>>2];p:{if(k>>>0>3){break p}h=i[c+12>>2];n=d+16|0;if(!i[n>>2]){e=h;break p}m=d+12|0;f=0;while(1){d=sn(h,(f<<2)+e|0,k);k=i[m>>2];h=d+k|0;f=f+1|0;if(f>>>0>2]){continue}break}e=i[c+12>>2]}f=i[c+28>>2];f=j[p+84|0]?f:i[i[p+68>>2]+(f<<2)>>2];if(f>>>0>=l[p+80>>2]){break o}d=i[p+40>>2];sn(i[i[p>>2]>>2]+o(d,f)|0,e,d);q=q+1|0;f=i[c+16>>2];if(q>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;A=A+1|0;if((A|0)==(t|0)){break e}f=i[a+12>>2];continue}}f=i[g+28>>2];if(f){continue}break}m=1}b=i[g+24>>2];a=(b>>>0)/341|0;f=i[g+12>>2];h=i[g+16>>2];q:{if((f|0)==(h|0)){break q}e=(a<<2)+f|0;k=i[e>>2]+o(b-o(a,341)|0,12)|0;b=b+i[g+28>>2]|0;a=(b>>>0)/341|0;a=i[(a<<2)+f>>2]+o(b-o(a,341)|0,12)|0;if((k|0)==(a|0)){break q}while(1){k=k+12|0;if((k-i[e>>2]|0)==4092){k=i[e+4>>2];e=e+4|0}if((a|0)!=(k|0)){continue}break}}i[g+28>>2]=0;k=h-f>>2;if(k>>>0>2){while(1){qn(i[f>>2]);f=i[g+12>>2]+4|0;i[g+12>>2]=f;h=i[g+16>>2];k=h-f>>2;if(k>>>0>2){continue}break}}e=170;r:{switch(k+ -1|0){case 1:e=341;case 0:i[g+24>>2]=e;break;default:break r}}s:{if((f|0)==(h|0)){break s}while(1){qn(i[f>>2]);f=f+4|0;if((h|0)!=(f|0)){continue}break}b=i[g+16>>2];a=i[g+12>>2];if((b|0)==(a|0)){break s}i[g+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[g+8>>2];if(a){qn(a)}L=g+32|0;return m}Vm();x()}Vm();x()}function Rc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0;j=L+ -64|0;L=j;i[a+8>>2]=e;f=a+32|0;k=i[f>>2];d=i[a+36>>2]-k>>2;a:{if(d>>>0>>0){Ta(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=k+(e<<2)}i[j+56>>2]=0;i[j+60>>2]=0;i[j+48>>2]=0;i[j+52>>2]=0;i[j+40>>2]=0;i[j+44>>2]=0;f=j+32|0;i[f>>2]=0;i[f+4>>2]=0;i[j+24>>2]=0;i[j+28>>2]=0;i[j+16>>2]=0;i[j+20>>2]=0;i[j>>2]=0;d=0;if(e){Va(j+16|0,e,j);h=i[j+28>>2];d=i[f>>2]}i[j>>2]=0;d=d-h>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}i[j+32>>2]=(e<<2)+h;break b}Va(j+16|12,e-d|0,j)}i[j>>2]=0;f=i[j+40>>2];d=i[j+44>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}i[j+44>>2]=f+(e<<2);break c}Va(j+40|0,e-d|0,j)}i[j>>2]=0;f=i[j+52>>2];d=i[j+56>>2]-f>>2;d:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break d}i[j+56>>2]=f+(e<<2);break d}Va(j+52|0,e-d|0,j)}e:{if(i[a+8>>2]<=0){break e}g=i[j+16>>2];h=0;while(1){d=h<<2;f=i[d+g>>2];l=i[a+16>>2];f:{if((f|0)>(l|0)){k=i[a+32>>2];i[d+k>>2]=l;break f}k=i[a+32>>2];d=d+k|0;l=i[a+12>>2];if((f|0)<(l|0)){i[d>>2]=l;break f}i[d>>2]=f}h=h+1|0;d=i[a+8>>2];if((h|0)<(d|0)){continue}break}if((d|0)<1){break e}d=0;while(1){g=d<<2;f=g+c|0;g=i[b+g>>2]+i[g+k>>2]|0;i[f>>2]=g;g:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break g}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}A=i[a+52>>2];q=i[a+48>>2];u=Gm(16);d=u;i[d>>2]=0;i[d+4>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[j+8>>2]=0;i[j>>2]=0;i[j+4>>2]=0;h:{if(e){if(e>>>0>=1073741824){break h}d=e<<2;t=Gm(d);i[j>>2]=t;f=d+t|0;i[j+8>>2]=f;tn(t,0,d);i[j+4>>2]=f}d=1;f=i[a+56>>2];z=i[f>>2];f=i[f+4>>2]-z|0;i:{if((f|0)<5){break i}d=f>>2;B=(d|0)>2?d:2;C=d>>>0>1?d:1;D=e<<2;l=1;while(1){j:{k:{l:{if((l|0)!=(C|0)){m:{n:{k=i[(l<<2)+z>>2];if((k|0)==-1){break n}n=k+((k>>>0)%3|0?-1:2)|0;v=n>>>5|0;m=1;w=1<<(n&31);y=i[q>>2];f=0;d=k;o:{while(1){p:{if(i[y+(d>>>3&536870908)>>2]>>>(d&31)&1){break p}g=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((g|0)==-1){break p}r=i[A>>2];h=i[q+28>>2];s=i[r+(i[h+(g<<2)>>2]<<2)>>2];if((s|0)>=(l|0)){break p}p=g+1|0;p=i[r+(i[h+(((p>>>0)%3|0?p:g+ -2|0)<<2)>>2]<<2)>>2];if((p|0)>=(l|0)){break p}g=i[r+(i[h+(g+((g>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((g|0)>=(l|0)){break p}if((e|0)>=1){r=i[(j+16|0)+o(f,12)>>2];g=o(e,g);p=o(e,p);s=o(e,s);h=0;while(1){i[r+(h<<2)>>2]=(i[(g+h<<2)+c>>2]+i[(h+p<<2)+c>>2]|0)-i[(h+s<<2)+c>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}g=4;f=f+1|0;if((f|0)==4){break o}}q:{if(m&1){h=-1;g=d+1|0;d=(g>>>0)%3|0?g:d+ -2|0;if((d|0)==-1|i[i[q>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1){break q}d=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break q}g=d+1|0;h=(g>>>0)%3|0?g:d+ -2|0;break q}h=-1;d=((d>>>0)%3|0?-1:2)+d|0;if((d|0)==-1|i[i[q>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1){break q}d=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break q}if((d>>>0)%3|0){h=d+ -1|0;break q}h=d+2|0}r:{if((h|0)==(k|0)){break r}d=h;g=(h|0)!=-1;h=(g|m^-1)&1;d=h?d:-1;m=g&m;if(!((n|0)==-1|h)){if(i[i[q>>2]+(v<<2)>>2]&w){break r}g=i[i[i[q+64>>2]+12>>2]+(n<<2)>>2];if((g|0)==-1){break r}m=0;if((g>>>0)%3|0){d=g+ -1|0}else{d=g+2|0}}if((d|0)!=-1){continue}}break}g=f;if((g|0)<1){break n}}n=(e|0)<1;if(!n){tn(t,0,D)}d=g+ -1|0;m=(d<<2)+u|0;d=o(d,12)+a|0;r=d+60|0;v=i[d- -64>>2];d=0;w=i[j>>2];k=0;f=0;while(1){h=i[m>>2];i[m>>2]=h+1;if(v>>>0<=h>>>0){break i}s:{if(i[i[r>>2]+(h>>>3&536870908)>>2]>>>(h&31)&1){break s}f=f+1|0;if(n){break s}y=i[(j+16|0)+o(k,12)>>2];h=0;while(1){s=h<<2;p=s+w|0;i[p>>2]=i[p>>2]+i[s+y>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}k=k+1|0;if((g|0)!=(k|0)){continue}break}m=o(e,l);g=m;if(!f){break m}h=0;if((e|0)>0){break l}break k}g=o(e,l)}if(i[a+8>>2]<1){break j}m=(o(l+ -1|0,e)<<2)+c|0;h=0;while(1){d=h<<2;f=i[d+m>>2];n=i[a+16>>2];t:{if((f|0)>(n|0)){k=i[a+32>>2];i[d+k>>2]=n;break t}k=i[a+32>>2];d=d+k|0;n=i[a+12>>2];if((f|0)<(n|0)){i[d>>2]=n;break t}i[d>>2]=f}h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}d=0;if((f|0)<1){break j}f=g<<2;h=f+c|0;m=b+f|0;while(1){g=d<<2;f=g+h|0;g=i[g+m>>2]+i[g+k>>2]|0;i[f>>2]=g;u:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break u}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}break j}Wm();x()}while(1){d=(h<<2)+t|0;i[d>>2]=i[d>>2]/(f|0);h=h+1|0;if((h|0)!=(e|0)){continue}break}}if(i[a+8>>2]<1){break j}h=0;while(1){d=h<<2;f=i[d+t>>2];g=i[a+16>>2];v:{if((f|0)>(g|0)){k=i[a+32>>2];i[d+k>>2]=g;break v}k=i[a+32>>2];d=d+k|0;g=i[a+12>>2];if((f|0)<(g|0)){i[d>>2]=g;break v}i[d>>2]=f}h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}d=0;if((f|0)<1){break j}f=m<<2;h=f+c|0;m=b+f|0;while(1){g=d<<2;f=g+h|0;g=i[g+m>>2]+i[g+k>>2]|0;i[f>>2]=g;w:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break w}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}d=1;l=l+1|0;if((B|0)!=(l|0)){continue}break}}a=i[j>>2];if(a){i[j+4>>2]=a;qn(a)}qn(u);a=i[j+52>>2];if(a){i[j+56>>2]=a;qn(a)}a=i[j+40>>2];if(a){i[j+44>>2]=a;qn(a)}a=i[j+28>>2];if(a){i[j+32>>2]=a;qn(a)}a=i[j+16>>2];if(a){i[j+20>>2]=a;qn(a)}L=j- -64|0;return d|0}Vm();x()}function yd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0;h=L+ -64|0;L=h;i[a+8>>2]=e;f=a+32|0;k=i[f>>2];d=i[a+36>>2]-k>>2;a:{if(d>>>0>>0){Ta(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=k+(e<<2)}i[h+56>>2]=0;i[h+60>>2]=0;i[h+48>>2]=0;i[h+52>>2]=0;i[h+40>>2]=0;i[h+44>>2]=0;d=h+32|0;i[d>>2]=0;i[d+4>>2]=0;i[h+24>>2]=0;i[h+28>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;i[h>>2]=0;f=0;if(e){Va(h+16|0,e,h);j=i[h+28>>2];f=i[d>>2]}i[h>>2]=0;d=f-j>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}i[h+32>>2]=(e<<2)+j;break b}Va(h+16|12,e-d|0,h)}i[h>>2]=0;f=i[h+40>>2];d=i[h+44>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}i[h+44>>2]=f+(e<<2);break c}Va(h+40|0,e-d|0,h)}i[h>>2]=0;f=i[h+52>>2];d=i[h+56>>2]-f>>2;d:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break d}i[h+56>>2]=f+(e<<2);break d}Va(h+52|0,e-d|0,h)}e:{if(i[a+8>>2]<=0){break e}g=i[h+16>>2];j=0;while(1){d=j<<2;f=i[d+g>>2];m=i[a+16>>2];f:{if((f|0)>(m|0)){k=i[a+32>>2];i[d+k>>2]=m;break f}k=i[a+32>>2];d=d+k|0;m=i[a+12>>2];if((f|0)<(m|0)){i[d>>2]=m;break f}i[d>>2]=f}j=j+1|0;d=i[a+8>>2];if((j|0)<(d|0)){continue}break}if((d|0)<1){break e}f=0;while(1){g=f<<2;d=g+c|0;g=i[b+g>>2]+i[g+k>>2]|0;i[d>>2]=g;g:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break g}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}}A=i[a+52>>2];y=i[a+48>>2];w=Gm(16);d=w;i[d>>2]=0;i[d+4>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;h:{if(e){if(e>>>0>=1073741824){break h}d=e<<2;s=Gm(d);i[h>>2]=s;f=d+s|0;i[h+8>>2]=f;tn(s,0,d);i[h+4>>2]=f}k=1;d=i[a+56>>2];z=i[d>>2];d=i[d+4>>2]-z|0;i:{if((d|0)<5){break i}d=d>>2;B=(d|0)>2?d:2;C=d>>>0>1?d:1;D=e<<2;m=1;while(1){j:{k:{l:{if((m|0)!=(C|0)){m:{n:{k=i[(m<<2)+z>>2];if((k|0)==-1){break n}n=i[y+12>>2];u=k+((k>>>0)%3|0?-1:2)|0;v=n+(u<<2)|0;l=1;f=0;d=k;o:{while(1){g=i[n+(d<<2)>>2];p:{if((g|0)==-1){break p}j=-1;r=i[A>>2];p=i[y>>2];t=i[r+(i[p+(g<<2)>>2]<<2)>>2];q=g+1|0;q=(q>>>0)%3|0?q:g+ -2|0;if((q|0)!=-1){q=i[p+(q<<2)>>2]}else{q=-1}g=g+((g>>>0)%3|0?-1:2)|0;if((g|0)!=-1){j=i[p+(g<<2)>>2]}if((t|0)>=(m|0)){break p}g=i[(q<<2)+r>>2];if((g|0)>=(m|0)){break p}j=i[r+(j<<2)>>2];if((j|0)>=(m|0)){break p}p=i[(h+16|0)+o(f,12)>>2];if((e|0)>=1){r=o(e,j);g=o(e,g);t=o(e,t);j=0;while(1){i[p+(j<<2)>>2]=(i[(j+r<<2)+c>>2]+i[(g+j<<2)+c>>2]|0)-i[(j+t<<2)+c>>2];j=j+1|0;if((j|0)!=(e|0)){continue}break}}g=4;f=f+1|0;if((f|0)==4){break o}}q:{if(l&1){p=d+1|0;d=(p>>>0)%3|0?p:d+ -2|0;g=-1;if((d|0)==-1){break q}d=i[n+(d<<2)>>2];g=-1;if((d|0)==-1){break q}g=d+1|0;g=(g>>>0)%3|0?g:d+ -2|0;break q}d=((d>>>0)%3|0?-1:2)+d|0;g=-1;if((d|0)==-1){break q}d=i[n+(d<<2)>>2];g=-1;if((d|0)==-1){break q}g=d+ -1|0;if((d>>>0)%3|0){break q}g=d+2|0}r:{if((g|0)==(k|0)){break r}d=g;g=(g|0)!=-1;j=(g|l^-1)&1;d=j?d:-1;l=g&l;if(!((u|0)==-1|j)){g=i[v>>2];if((g|0)==-1){break r}l=0;if((g>>>0)%3|0){d=g+ -1|0}else{d=g+2|0}}if((d|0)!=-1){continue}}break}g=f;if((g|0)<1){break n}}n=(e|0)<1;if(!n){tn(s,0,D)}d=g+ -1|0;l=(d<<2)+w|0;d=o(d,12)+a|0;p=d+60|0;r=i[d- -64>>2];k=0;t=i[h>>2];d=0;f=0;while(1){j=i[l>>2];i[l>>2]=j+1;if(r>>>0<=j>>>0){break i}s:{if(i[i[p>>2]+(j>>>3&536870908)>>2]>>>(j&31)&1){break s}f=f+1|0;if(n){break s}q=i[(h+16|0)+o(d,12)>>2];j=0;while(1){u=j<<2;v=u+t|0;i[v>>2]=i[v>>2]+i[q+u>>2];j=j+1|0;if((j|0)!=(e|0)){continue}break}}d=d+1|0;if((g|0)!=(d|0)){continue}break}g=o(e,m);d=g;if(!f){break m}j=0;if((e|0)>0){break l}break k}d=o(e,m)}if(i[a+8>>2]<1){break j}l=(o(m+ -1|0,e)<<2)+c|0;j=0;while(1){f=j<<2;g=i[f+l>>2];n=i[a+16>>2];t:{if((g|0)>(n|0)){k=i[a+32>>2];i[f+k>>2]=n;break t}k=i[a+32>>2];f=f+k|0;n=i[a+12>>2];if((g|0)<(n|0)){i[f>>2]=n;break t}i[f>>2]=g}j=j+1|0;g=i[a+8>>2];if((j|0)<(g|0)){continue}break}f=0;if((g|0)<1){break j}d=d<<2;j=d+c|0;l=b+d|0;while(1){g=f<<2;d=g+j|0;g=i[g+l>>2]+i[g+k>>2]|0;i[d>>2]=g;u:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break u}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}break j}Wm();x()}while(1){d=(j<<2)+s|0;i[d>>2]=i[d>>2]/(f|0);j=j+1|0;if((j|0)!=(e|0)){continue}break}}if(i[a+8>>2]<1){break j}j=0;while(1){d=j<<2;f=i[d+s>>2];l=i[a+16>>2];v:{if((f|0)>(l|0)){k=i[a+32>>2];i[d+k>>2]=l;break v}k=i[a+32>>2];d=d+k|0;l=i[a+12>>2];if((f|0)<(l|0)){i[d>>2]=l;break v}i[d>>2]=f}j=j+1|0;d=i[a+8>>2];if((j|0)<(d|0)){continue}break}f=0;if((d|0)<1){break j}d=g<<2;j=d+c|0;l=b+d|0;while(1){g=f<<2;d=g+j|0;g=i[g+l>>2]+i[g+k>>2]|0;i[d>>2]=g;w:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break w}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}}k=1;m=m+1|0;if((B|0)!=(m|0)){continue}break}}a=i[h>>2];if(a){i[h+4>>2]=a;qn(a)}qn(w);a=i[h+52>>2];if(a){i[h+56>>2]=a;qn(a)}a=i[h+40>>2];if(a){i[h+44>>2]=a;qn(a)}a=i[h+28>>2];if(a){i[h+32>>2]=a;qn(a)}a=i[h+16>>2];if(a){i[h+20>>2]=a;qn(a)}L=h- -64|0;return k|0}Vm();x()}function Hl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;f=L-32|0;L=f;g=i[a+12>>2];i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;e=Gm(d);i[f+8>>2]=e;h=d+e|0;i[f+16>>2]=h;tn(e,0,d);i[f+12>>2]=h}d=i[a+120>>2];j=i[d>>2];if(j){i[d+4>>2]=j;qn(j);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=i[f+12>>2];g=i[a+12>>2];e=i[f+8>>2]}i[d+4>>2]=h;i[d>>2]=e;i[d+8>>2]=i[f+16>>2];e=0;i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;b:{if(g){if(g>>>0>=1073741824){break b}d=g<<2;k=Gm(d);i[f+8>>2]=k;e=d+k|0;i[f+16>>2]=e;tn(k,0,d);i[f+12>>2]=e}d=i[a+132>>2];j=i[d>>2];if(j){i[d+4>>2]=j;qn(j);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;k=i[f+8>>2];e=i[f+12>>2]}i[d+4>>2]=e;i[d>>2]=k;i[d+8>>2]=i[f+16>>2];e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;j=f+16|0;i[j>>2]=0;i[j+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Pb(f+8|0);g=i[j>>2];j=i[f+12>>2];d=0;c:{if((g|0)==(j|0)){break c}d=i[e>>2]+i[f+28>>2]|0;e=(d>>>0)/341|0;d=i[j+(e<<2)>>2]+o(d-o(e,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;d=i[f+28>>2];g=d+1|0;i[f+28>>2]=g;d:{if(g>>>0>>0){break d}y=a+96|0;while(1){k=i[f+12>>2];g=g+ -1|0;d=g+i[f+24>>2]|0;e=(d>>>0)/341|0;e=i[k+(e<<2)>>2]+o(d-o(e,341)|0,12)|0;s=i[e+8>>2];h=i[e+4>>2];j=i[e>>2];i[f+28>>2]=g;e=i[f+16>>2];g=e-k|0;if((g?o(g>>2,341)+ -1|0:0)-d>>>0>=682){qn(i[e+ -4>>2]);i[f+16>>2]=i[f+16>>2]+ -4}if(j>>>0>b>>>0){break d}d=i[a+120>>2];g=o(s,12);n=g+i[a+132>>2]|0;k=xl(a,n,h);if(k>>>0>=l[a+12>>2]){break d}h=d+g|0;e:{f:{p=k<<2;d=i[a>>2]-i[p+i[n>>2]>>2]|0;if(!d){g=0;if(!j){break f}while(1){Ol(c,h);i[a+8>>2]=i[a+8>>2]+1;g=g+1|0;if((j|0)!=(g|0)){continue}break}break f}g:{h:{i:{j:{if(j>>>0<=2){d=i[a+108>>2];i[d>>2]=k;e=1;g=i[a+12>>2];if(g>>>0>1){break j}break g}if(l[a+8>>2]>l[a+4>>2]){break d}e=1<>2];t=s+1|0;n=o(t,12);m=d+n|0;if((m|0)!=(h|0)){wa(m,i[h>>2],i[h+4>>2]);d=i[a+120>>2]}d=p+i[d+n>>2]|0;i[d>>2]=e+i[d>>2];d=r(j)^31;e=i[a+32>>2];m=32-e|0;k:{if((d|0)<=(m|0)){h=i[a+28>>2];if((h|0)==i[a+20>>2]){e=0;break k}m=i[h>>2];q=d+e|0;i[a+32>>2]=q;e=m<>>32-d|0;if((q|0)!=32){break k}i[a+32>>2]=0;i[a+28>>2]=h+4;break k}h=i[a+28>>2];q=h+4|0;if((q|0)==i[a+20>>2]){e=0;break k}v=i[h>>2];i[a+28>>2]=q;m=d-m|0;i[a+32>>2]=m;e=i[h+4>>2]>>>32-m|v<>>32-d}d=(j>>>1|0)-e|0;e=j-d|0;l:{if((e|0)==(d|0)){e=d;break l}j=i[a+88>>2];if((j|0)==i[a+80>>2]){break i}h=i[j>>2];m=i[a+92>>2];q=m+1|0;i[a+92>>2]=q;h=h&-2147483648>>>m;m:{if((q|0)==32){i[a+92>>2]=0;i[a+88>>2]=j+4;if(h){break m}break i}if(!h){break i}}}j=e;e=d;break h}while(1){k=(g+ -1|0)==(k|0)?0:k+1|0;i[d+(e<<2)>>2]=k;e=e+1|0;g=i[a+12>>2];if(e>>>0>>0){continue}break}break g}j=d}d=i[a+132>>2];g=d+g|0;h=i[g>>2];p=h+p|0;i[p>>2]=i[p>>2]+1;wa(d+n|0,h,i[g+4>>2]);if(e){h=i[f+28>>2]+i[f+24>>2]|0;d=i[f+16>>2];g=i[f+12>>2];n=d-g|0;if((h|0)==((n?o(n>>2,341)+ -1|0:0)|0)){Pb(f+8|0);h=i[f+24>>2]+i[f+28>>2]|0;g=i[f+12>>2];d=i[f+16>>2]}if((d|0)==(g|0)){d=0}else{d=(h>>>0)/341|0;d=i[(d<<2)+g>>2]+o(h-o(d,341)|0,12)|0}i[d+8>>2]=s;i[d+4>>2]=k;i[d>>2]=e;i[f+28>>2]=i[f+28>>2]+1}if(!j){break f}e=i[f+28>>2]+i[f+24>>2]|0;h=i[f+16>>2];g=i[f+12>>2];d=h-g|0;if((e|0)==((d?o(d>>2,341)+ -1|0:0)|0)){Pb(f+8|0);h=i[f+16>>2];g=i[f+12>>2];e=i[f+24>>2]+i[f+28>>2]|0}d=0;n:{if((g|0)==(h|0)){break n}d=(e>>>0)/341|0;d=i[(d<<2)+g>>2]+o(e-o(d,341)|0,12)|0}i[d+8>>2]=t;i[d+4>>2]=k;i[d>>2]=j;g=i[f+28>>2]+1|0;i[f+28>>2]=g;break e}if(!j){break f}s=0;while(1){if(g){q=i[h>>2];v=i[n>>2];k=i[a+96>>2];z=i[a+108>>2];g=0;while(1){p=z+(g<<2)|0;i[k+(i[p>>2]<<2)>>2]=0;e=i[p>>2]<<2;d=i[a>>2]-i[e+v>>2]|0;o:{if(!d){break o}e=e+k|0;t=i[a+52>>2];u=32-t|0;if((d|0)<=(u|0)){m=i[a+48>>2];if((m|0)==i[a+40>>2]){i[e>>2]=0;break o}i[e>>2]=i[m>>2]<>>32-d;d=d+i[a+52>>2]|0;i[a+52>>2]=d;if((d|0)!=32){break o}i[a+52>>2]=0;i[a+48>>2]=m+4;break o}m=i[a+48>>2];w=m+4|0;if((w|0)==i[a+40>>2]){i[e>>2]=0;break o}A=i[m>>2];i[a+48>>2]=w;u=d-u|0;i[a+52>>2]=u;i[e>>2]=i[m+4>>2]>>>32-u|A<>>32-d}d=i[p>>2]<<2;e=d+k|0;i[e>>2]=i[e>>2]|i[d+q>>2];g=g+1|0;if(g>>>0>2]){continue}break}}Ol(c,y);i[a+8>>2]=i[a+8>>2]+1;s=s+1|0;if((s|0)==(j|0)){break f}g=i[a+12>>2];continue}}g=i[f+28>>2]}if(g){continue}break}}b=i[f+24>>2];c=(b>>>0)/341|0;a=i[f+12>>2];k=i[f+16>>2];p:{if((a|0)==(k|0)){break p}e=(c<<2)+a|0;g=i[e>>2]+o(b-o(c,341)|0,12)|0;b=b+i[f+28>>2]|0;c=(b>>>0)/341|0;b=i[(c<<2)+a>>2]+o(b-o(c,341)|0,12)|0;if((g|0)==(b|0)){break p}while(1){g=g+12|0;if((g-i[e>>2]|0)==4092){g=i[e+4>>2];e=e+4|0}if((b|0)!=(g|0)){continue}break}}i[f+28>>2]=0;g=k-a>>2;if(g>>>0>2){while(1){qn(i[a>>2]);a=i[f+12>>2]+4|0;i[f+12>>2]=a;k=i[f+16>>2];g=k-a>>2;if(g>>>0>2){continue}break}}e=170;q:{switch(g+ -1|0){case 1:e=341;case 0:i[f+24>>2]=e;break;default:break q}}r:{if((a|0)==(k|0)){break r}while(1){qn(i[a>>2]);a=a+4|0;if((k|0)!=(a|0)){continue}break}a=i[f+16>>2];b=i[f+12>>2];if((a|0)==(b|0)){break r}i[f+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[f+8>>2];if(a){qn(a)}L=f+32|0;return}Vm();x()}Vm();x()}function Db(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=L-720|0;L=e;a:{b:{c:{d:{e:{f:{if(k[b+38>>1]>=515){i[e+680>>2]=0;i[e+672>>2]=0;i[e+676>>2]=0;if((O[i[i[a>>2]+24>>2]](a)|0)<1){break d}s=a+36|0;p=e+24|0;while(1){c=O[i[i[a>>2]+20>>2]](a,f)|0;d=i[i[i[(O[i[i[a>>2]+28>>2]](a)|0)+4>>2]+8>>2]+(c<<2)>>2];if(i[d+28>>2]==9){h=i[e+672>>2];c=i[e+676>>2]-h>>2;q=g[d+24|0];g:{if(c>>>0>>0){pa(e+672|0,q-c|0);break g}if(c>>>0<=q>>>0){break g}i[e+676>>2]=h+(q<<2)}d=i[b+12>>2];c=i[b+20>>2];m=i[b+16>>2];n=q<<2;h=n;t=m+h|0;if(t>>>0>>0){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break b}sn(i[e+672>>2],m+i[b>>2]|0,n);c=b;r=c;d=i[c+20>>2];m=h+i[c+16>>2]|0;if(m>>>0>>0){d=d+1|0}h=m;i[r+16>>2]=h;i[c+20>>2]=d;r=i[b+12>>2];n=r;c=d;m=h+4|0;if(m>>>0<4){d=d+1|0}t=i[b+8>>2];if((n|0)<(d|0)?1:(n|0)<=(d|0)?t>>>0>>0:0){break b}u=i[b>>2];n=u+h|0;n=j[n|0]|j[n+1|0]<<8|(j[n+2|0]<<16|j[n+3|0]<<24);i[b+16>>2]=m;i[b+20>>2]=d;if((r|0)<(d|0)?1:(r|0)<=(d|0)?t>>>0<=m>>>0:0){break b}m=j[m+u|0];h=h+5|0;if(h>>>0<5){c=c+1|0}d=b;i[d+16>>2]=h;i[d+20>>2]=c;if(m>>>0>31){break b}i[e+20>>2]=-1;i[e+16>>2]=1140;c=p;i[c+8>>2]=0;i[c+12>>2]=0;i[c>>2]=0;i[c+4>>2]=0;c=0;h:{if(!va(e+16|0,m,i[e+672>>2],q,(Sn(2,n),Tn()))){break h}if(!Ea(e+16|0,i[i[a+60>>2]+((i[a+40>>2]-i[a+36>>2]|0)/24<<2)>>2])){break h}c=i[a+40>>2];i:{if((c|0)!=i[a+44>>2]){i[c>>2]=1140;d=i[e+20>>2];i[c+16>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+4>>2]=d;d=i[e+28>>2]-i[e+24>>2]|0;if(d){h=d>>2;if(h>>>0>=1073741824){break f}d=Gm(d);i[c+8>>2]=d;i[c+12>>2]=d;i[c+16>>2]=d+(h<<2);h=c;m=i[e+24>>2];q=i[e+28>>2]-m|0;if((q|0)>=1){d=sn(d,m,q)+q|0}i[h+12>>2]=d}i[c+20>>2]=i[e+36>>2];i[a+40>>2]=c+24;break i}Eb(s,e+16|0)}c=1}i[e+16>>2]=1140;d=i[e+24>>2];if(d){i[e+28>>2]=d;qn(d)}if(!c){break c}}f=f+1|0;if((f|0)<(O[i[i[a>>2]+24>>2]](a)|0)){continue}break}break d}m=O[i[i[a>>2]+24>>2]](a)|0;i[e+712>>2]=0;i[e+704>>2]=0;i[e+708>>2]=0;j:{k:{if(!m){break k}if(m>>>0>=214748365){break e}d=o(m,20);c=Gm(d);i[e+704>>2]=c;i[e+708>>2]=c;d=c+d|0;i[e+712>>2]=d;f=c;while(1){i[f>>2]=0;i[f+4>>2]=0;i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;f=f+20|0;if((d|0)!=(f|0)){continue}break}i[e+708>>2]=d;if(!m){break k}d=0;while(1){f=O[i[i[a>>2]+20>>2]](a,d)|0;p=i[i[i[(O[i[i[a>>2]+28>>2]](a)|0)+4>>2]+8>>2]+(f<<2)>>2];h=i[p+28>>2];f=Hh(h);n=(f|0)>0?f:0;if(n>>>0>4){break j}f=c+o(d,20)|0;r=g[p+24|0];i[f+16>>2]=r;i[f+12>>2]=n;i[f+8>>2]=h;i[f+4>>2]=q;i[f>>2]=p;q=q+r|0;d=d+1|0;if((m|0)!=(d|0)){continue}break}}c=O[i[i[a>>2]+20>>2]](a,0)|0;t=i[i[i[(O[i[i[a>>2]+28>>2]](a)|0)+4>>2]+8>>2]+(c<<2)>>2];g[t+84|0]=1;i[t+72>>2]=i[t+68>>2];r=i[b+8>>2];n=i[b+16>>2];f=i[b+12>>2];d=f;c=i[b+20>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?r>>>0<=n>>>0:0){break j}u=i[b>>2];w=j[u+n|0];h=b;d=c;p=n+1|0;if(p>>>0<1){d=d+1|0}s=p;p=d;i[h+16>>2]=s;i[h+20>>2]=d;l:{m:{switch(w|0){case 0:if((f|0)<(p|0)?1:(f|0)<=(p|0)?r>>>0<=s>>>0:0){break j}a=c;p=n+2|0;if(p>>>0<2){a=a+1|0}d=b;i[d+16>>2]=p;i[d+20>>2]=a;a=n+6|0;if(a>>>0<6){c=c+1|0}d=a;a=c;if((f|0)<(c|0)?1:(f|0)<=(c|0)?r>>>0>>0:0){break j}c=p+u|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=d;i[b+20>>2]=a;Ma(t,c);a=e+672|0;i[a+20>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+20>>2]=c;c=a;a=fb(e+16|0,e+704|0);c=Fb(c,b,a);b=i[a+16>>2];if(b){i[a+20>>2]=b;qn(b)}b=i[a>>2];if(b){i[a+4>>2]=b;qn(b)}if(c){break l}break j;case 1:break m;default:break j}}if((f|0)<(p|0)?1:(f|0)<=(p|0)?r>>>0<=s>>>0:0){break j}h=j[s+u|0];d=c;s=n+2|0;if(s>>>0<2){d=d+1|0}i[b+16>>2]=s;i[b+20>>2]=d;if(h>>>0>=7){i[e>>2]=h;zn(1620,e);break j}d=n+6|0;if(d>>>0<6){c=c+1|0}p=d;d=c;if((f|0)<(c|0)?1:(f|0)<=(c|0)?r>>>0

>>0:0){break j}c=s+u|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=p;i[b+20>>2]=d;if(m){d=0;while(1){c=O[i[i[a>>2]+20>>2]](a,d)|0;c=i[i[i[(O[i[i[a>>2]+28>>2]](a)|0)+4>>2]+8>>2]+(c<<2)>>2];Ma(c,f);g[c+84|0]=1;i[c+72>>2]=i[c+68>>2];d=d+1|0;if((m|0)!=(d|0)){continue}break}}a=0;c=fb(e+672|0,e+704|0);n:{o:{p:{switch(h|0){case 0:d=ib(e+16|0,q);b=gb(d,b,c);hb(d);if(b){break o}break n;case 1:d=ib(e+16|0,q);b=jb(d,b,c);hb(d);if(b){break o}break n;case 2:d=mb(e+16|0,q);b=kb(d,b,c);lb(d);if(b){break o}break n;case 3:d=mb(e+16|0,q);b=nb(d,b,c);lb(d);if(b){break o}break n;case 4:d=qb(e+16|0,q);b=ob(d,b,c);pb(d);if(b){break o}break n;case 5:d=qb(e+16|0,q);b=rb(d,b,c);pb(d);if(b){break o}break n;case 6:break p;default:break n}}d=qb(e+16|0,q);b=sb(d,b,c);pb(d);if(!b){break n}}a=1}b=i[c+16>>2];if(b){i[c+20>>2]=b;qn(b)}b=i[c>>2];if(b){i[c+4>>2]=b;qn(b)}if(!a){break j}}v=1}a=i[e+704>>2];if(!a){break a}i[e+708>>2]=a;qn(a);break a}Vm();x()}Vm();x()}v=1;if(i[a+52>>2]==i[a+48>>2]){break b}f=0;while(1){if(!Gb(1,e+16|0,b)){break c}c=i[a+48>>2];d=i[e+16>>2];i[c+(f<<2)>>2]=0-(d&1)^d>>>1;f=f+1|0;if(f>>>0>2]-c>>2>>>0){continue}break}break b}v=0}a=i[e+672>>2];if(!a){break a}i[e+676>>2]=a;qn(a)}L=e+720|0;return v|0}function Il(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;e=L-32|0;L=e;g=i[a+12>>2];i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;h=Gm(d);i[e+8>>2]=h;f=d+h|0;i[e+16>>2]=f;tn(h,0,d);i[e+12>>2]=f}d=i[a+120>>2];j=i[d>>2];if(j){i[d+4>>2]=j;qn(j);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=i[e+8>>2];g=i[a+12>>2];f=i[e+12>>2]}i[d+4>>2]=f;i[d>>2]=h;i[d+8>>2]=i[e+16>>2];h=0;i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;b:{if(g){if(g>>>0>=1073741824){break b}d=g<<2;k=Gm(d);i[e+8>>2]=k;h=d+k|0;i[e+16>>2]=h;tn(k,0,d);i[e+12>>2]=h}d=i[a+132>>2];f=i[d>>2];if(f){i[d+4>>2]=f;qn(f);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;k=i[e+8>>2];h=i[e+12>>2]}i[d+4>>2]=h;i[d>>2]=k;i[d+8>>2]=i[e+16>>2];f=e+24|0;i[f>>2]=0;i[f+4>>2]=0;j=e+16|0;i[j>>2]=0;i[j+4>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;Pb(e+8|0);h=i[j>>2];j=i[e+12>>2];d=0;c:{if((h|0)==(j|0)){break c}d=i[f>>2]+i[e+28>>2]|0;f=(d>>>0)/341|0;d=i[j+(f<<2)>>2]+o(d-o(f,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;d=i[e+28>>2];g=d+1|0;i[e+28>>2]=g;d:{if(g>>>0>>0){break d}v=a+96|0;while(1){h=i[e+12>>2];g=g+ -1|0;f=g+i[e+24>>2]|0;d=(f>>>0)/341|0;d=i[h+(d<<2)>>2]+o(f-o(d,341)|0,12)|0;q=i[d+8>>2];j=i[d+4>>2];d=i[d>>2];i[e+28>>2]=g;g=i[e+16>>2];h=g-h|0;if((h?o(h>>2,341)+ -1|0:0)-f>>>0>=682){qn(i[g+ -4>>2]);i[e+16>>2]=i[e+16>>2]+ -4}if(d>>>0>b>>>0){break d}f=i[a+12>>2];k=(j|0)==(f+ -1|0)?0:j+1|0;if(k>>>0>=f>>>0){break d}f=i[a+120>>2];g=o(q,12);j=f+g|0;e:{f:{h=k<<2;s=g+i[a+132>>2]|0;n=i[a>>2]-i[h+i[s>>2]>>2]|0;if(!n){g=0;if(!d){break f}while(1){Ol(c,j);i[a+8>>2]=i[a+8>>2]+1;g=g+1|0;if((d|0)!=(g|0)){continue}break}break f}g:{h:{i:{j:{if(d>>>0<=2){f=i[a+108>>2];i[f>>2]=k;h=1;g=i[a+12>>2];if(g>>>0>1){break j}break g}if(l[a+8>>2]>l[a+4>>2]){break d}m=f;f=g+12|0;wa(m+f|0,i[j>>2],i[j+4>>2]);f=h+i[f+i[a+120>>2]>>2]|0;i[f>>2]=i[f>>2]+(1<>2];m=32-j|0;k:{if((f|0)<=(m|0)){n=i[a+28>>2];if((n|0)==i[a+20>>2]){f=0;break k}m=i[n>>2];p=f+j|0;i[a+32>>2]=p;f=m<>>32-f|0;if((p|0)!=32){break k}i[a+32>>2]=0;i[a+28>>2]=n+4;break k}n=i[a+28>>2];p=n+4|0;if((p|0)==i[a+20>>2]){f=0;break k}s=i[n>>2];i[a+28>>2]=p;m=f-m|0;i[a+32>>2]=m;f=i[n+4>>2]>>>32-m|s<>>32-f}n=q+1|0;j=d;d=(d>>>1|0)-f|0;f=j-d|0;l:{if((f|0)==(d|0)){f=d;break l}j=i[a+88>>2];if((j|0)==i[a+80>>2]){break i}m=i[j>>2];p=i[a+92>>2];s=p+1|0;i[a+92>>2]=s;m=m&-2147483648>>>p;m:{if((s|0)==32){i[a+92>>2]=0;i[a+88>>2]=j+4;if(m){break m}break i}if(!m){break i}}}j=f;f=d;break h}while(1){k=(g+ -1|0)==(k|0)?0:k+1|0;i[f+(h<<2)>>2]=k;h=h+1|0;g=i[a+12>>2];if(h>>>0>>0){continue}break}break g}j=d}m=h;d=i[a+132>>2];g=d+g|0;h=i[g>>2];m=m+h|0;i[m>>2]=i[m>>2]+1;wa(d+o(n,12)|0,h,i[g+4>>2]);if(f){h=i[e+28>>2]+i[e+24>>2]|0;d=i[e+16>>2];g=i[e+12>>2];m=d-g|0;if((h|0)==((m?o(m>>2,341)+ -1|0:0)|0)){Pb(e+8|0);h=i[e+24>>2]+i[e+28>>2]|0;g=i[e+12>>2];d=i[e+16>>2]}if((d|0)==(g|0)){d=0}else{d=(h>>>0)/341|0;d=i[(d<<2)+g>>2]+o(h-o(d,341)|0,12)|0}i[d+8>>2]=q;i[d+4>>2]=k;i[d>>2]=f;i[e+28>>2]=i[e+28>>2]+1}if(!j){break f}h=i[e+28>>2]+i[e+24>>2]|0;f=i[e+16>>2];g=i[e+12>>2];d=f-g|0;if((h|0)==((d?o(d>>2,341)+ -1|0:0)|0)){Pb(e+8|0);h=i[e+24>>2]+i[e+28>>2]|0;g=i[e+12>>2];f=i[e+16>>2]}d=0;n:{if((f|0)==(g|0)){break n}d=(h>>>0)/341|0;d=i[(d<<2)+g>>2]+o(h-o(d,341)|0,12)|0}i[d+8>>2]=n;i[d+4>>2]=k;i[d>>2]=j;g=i[e+28>>2]+1|0;i[e+28>>2]=g;break e}if(!d){break f}q=0;while(1){if(g){w=i[j>>2];y=i[s>>2];k=i[a+96>>2];z=i[a+108>>2];g=0;while(1){n=z+(g<<2)|0;i[k+(i[n>>2]<<2)>>2]=0;h=i[n>>2]<<2;f=i[a>>2]-i[h+y>>2]|0;o:{if(!f){break o}h=h+k|0;m=i[a+52>>2];t=32-m|0;if((f|0)<=(t|0)){p=i[a+48>>2];if((p|0)==i[a+40>>2]){i[h>>2]=0;break o}i[h>>2]=i[p>>2]<>>32-f;f=f+i[a+52>>2]|0;i[a+52>>2]=f;if((f|0)!=32){break o}i[a+52>>2]=0;i[a+48>>2]=p+4;break o}p=i[a+48>>2];u=p+4|0;if((u|0)==i[a+40>>2]){i[h>>2]=0;break o}A=i[p>>2];i[a+48>>2]=u;t=f-t|0;i[a+52>>2]=t;i[h>>2]=i[p+4>>2]>>>32-t|A<>>32-f}f=i[n>>2]<<2;h=f+k|0;i[h>>2]=i[h>>2]|i[f+w>>2];g=g+1|0;if(g>>>0>2]){continue}break}}Ol(c,v);i[a+8>>2]=i[a+8>>2]+1;q=q+1|0;if((q|0)==(d|0)){break f}g=i[a+12>>2];continue}}g=i[e+28>>2]}if(g){continue}break}}b=i[e+24>>2];c=(b>>>0)/341|0;a=i[e+12>>2];k=i[e+16>>2];p:{if((a|0)==(k|0)){break p}h=(c<<2)+a|0;g=i[h>>2]+o(b-o(c,341)|0,12)|0;b=b+i[e+28>>2]|0;c=(b>>>0)/341|0;b=i[(c<<2)+a>>2]+o(b-o(c,341)|0,12)|0;if((g|0)==(b|0)){break p}while(1){g=g+12|0;if((g-i[h>>2]|0)==4092){g=i[h+4>>2];h=h+4|0}if((b|0)!=(g|0)){continue}break}}i[e+28>>2]=0;g=k-a>>2;if(g>>>0>2){while(1){qn(i[a>>2]);a=i[e+12>>2]+4|0;i[e+12>>2]=a;k=i[e+16>>2];g=k-a>>2;if(g>>>0>2){continue}break}}h=170;q:{switch(g+ -1|0){case 1:h=341;case 0:i[e+24>>2]=h;break;default:break q}}r:{if((a|0)==(k|0)){break r}while(1){qn(i[a>>2]);a=a+4|0;if((k|0)!=(a|0)){continue}break}a=i[e+16>>2];b=i[e+12>>2];if((a|0)==(b|0)){break r}i[e+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[e+8>>2];if(a){qn(a)}L=e+32|0;return}Vm();x()}Vm();x()}function Vf(a,b){var c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0;q=L-16|0;L=q;a:{b:{c:{d:{if(j[i[a+4>>2]+36|0]<=1){s=-1;h=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];d=e+4|0;if(d>>>0<4){c=c+1|0}f=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?l[b+8>>2]>>0:0){break c}c=e+i[b>>2]|0;r=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[q+12>>2]=r;i[b+16>>2]=f;i[b+20>>2]=d;break d}s=-1;if(!Rf(1,q+12|0,b)){break c}r=i[q+12>>2]}e:{f:{g:{h:{i:{j:{if(!r){break j}c=i[a+8>>2];if(r>>>0>(i[c+4>>2]-i[c>>2]>>2>>>0)/3>>>0){break c}c=k[i[a+4>>2]+36>>1];if((c<<24|c<<8&16711680)>>>16>>>0>=258){u=a+36|0;h=0;k:{l:{while(1){if(!Rf(1,q+8|0,b)){break c}c=i[q+8>>2];if(!Rf(1,q+8|0,b)){break c}h=c+h|0;c=i[q+8>>2];if(h>>>0>>0){break c}p=h-c|0;m=i[a+40>>2];t=i[a+44>>2];m:{if((m|0)!=(t|0)){i[m+4>>2]=h;i[m>>2]=p;i[a+40>>2]=m+12;break m}c=i[u>>2];d=m-c|0;m=(d|0)/12|0;f=m+1|0;if(f>>>0>=357913942){break l}t=(t-c|0)/12|0;v=t<<1;f=t>>>0<178956970?v>>>0>>0?f:v:357913941;e=0;n:{if(!f){break n}if(f>>>0>=357913942){break k}e=Gm(o(f,12))}m=e+o(m,12)|0;i[m+4>>2]=h;i[m>>2]=p;p=m+o((d|0)/-12|0,12)|0;e=e+o(f,12)|0;m=m+12|0;if((d|0)>=1){sn(p,c,d)}i[a+44>>2]=e;i[a+40>>2]=m;i[a+36>>2]=p;if(!c){break m}qn(c)}n=n+1|0;if((n|0)!=(r|0)){continue}break}h=0;Eh(b,0,0);e=r>>>0>1?r:1;while(1){c=j[b+36|0];d=k[i[a+4>>2]+36>>1];o:{if((d<<24|d<<8&16711680)>>>16>>>0<=513){if(!c){break o}m=0;c=i[b+32>>2];r=c>>>3|0;f=i[b+24>>2];d=r+f|0;s=i[b+28>>2];p:{if(d>>>0>=s>>>0){d=c;break p}m=j[d|0];d=c+1|0;i[b+32>>2]=d;r=d>>>3|0;m=m>>>(c&7)&1}if(f+r>>>0>=s>>>0){break o}i[b+32>>2]=d+1;break o}if(!c){break o}m=0;c=i[b+32>>2];d=i[b+24>>2]+(c>>>3|0)|0;if(d>>>0>=l[b+28>>2]){break o}d=j[d|0];i[b+32>>2]=c+1;m=d>>>(c&7)&1}c=i[a+36>>2]+o(h,12)|0;g[c+8|0]=j[c+8|0]&254|m&1;h=h+1|0;if((e|0)!=(h|0)){continue}break}Gh(b);break j}Vm();x()}break a}z=a+36|0;u=q+10|0;while(1){e=i[b+12>>2];h=e;c=i[b+20>>2];d=c;p=i[b+16>>2];f=p+4|0;if(f>>>0<4){c=c+1|0}t=i[b+8>>2];v=f;f=c;if((e|0)<(c|0)?1:(e|0)<=(c|0)?t>>>0>>0:0){break c}w=i[b>>2];c=w+p|0;y=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=v;i[b+20>>2]=f;e=h;c=d;f=p+8|0;if(f>>>0<8){c=c+1|0}if((e|0)<(c|0)?1:(e|0)<=(c|0)?t>>>0>>0:0){break c}e=v+w|0;v=j[e|0]|j[e+1|0]<<8|(j[e+2|0]<<16|j[e+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?t>>>0<=f>>>0:0){break c}e=j[f+w|0];c=d;d=p+9|0;if(d>>>0<9){c=c+1|0}i[b+16>>2]=d;i[b+20>>2]=c;m=e&1|m&-2;c=i[a+40>>2];f=i[a+44>>2];q:{if((c|0)!=(f|0)){g[c+8|0]=m;i[c+4>>2]=v;i[c>>2]=y;d=j[q+8|0]|j[q+9|0]<<8;g[c+9|0]=d;g[c+10|0]=d>>>8;g[c+11|0]=j[u|0];i[a+40>>2]=c+12;break q}d=i[z>>2];h=c-d|0;e=(h|0)/12|0;c=e+1|0;if(c>>>0>=357913942){break i}w=o(e,12);f=(f-d|0)/12|0;t=f<<1;f=f>>>0<178956970?t>>>0>>0?c:t:357913941;e=0;r:{if(!f){break r}if(f>>>0>=357913942){break a}e=Gm(o(f,12))}c=w+e|0;g[c+8|0]=m;i[c+4>>2]=v;i[c>>2]=y;p=j[q+8|0]|j[q+9|0]<<8;g[c+9|0]=p;g[c+10|0]=p>>>8;g[c+11|0]=j[u|0];p=c+o((h|0)/-12|0,12)|0;e=e+o(f,12)|0;c=c+12|0;if((h|0)>=1){sn(p,d,h)}i[a+44>>2]=e;i[a+40>>2]=c;i[a+36>>2]=p;if(!d){break q}qn(d)}n=n+1|0;if((n|0)!=(r|0)){continue}break}}i[q+8>>2]=0;c=k[i[a+4>>2]+36>>1];c=(c<<24|c<<8&16711680)>>>16|0;s:{if(c>>>0<=511){s=-1;h=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];d=e+4|0;if(d>>>0<4){c=c+1|0}f=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?l[b+8>>2]>>0:0){break c}c=e+i[b>>2]|0;r=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[q+8>>2]=r;i[b+16>>2]=f;i[b+20>>2]=d;break s}if((c|0)!=512){break e}s=-1;if(!Rf(1,q+8|0,b)){break c}r=i[q+8>>2]}if(!r){break e}c=k[i[a+4>>2]+36>>1];if((c<<24|c<<8&16711680)>>>16>>>0<258){break f}s=a+48|0;m=0;h=0;while(1){if(!Rf(1,q+4|0,b)){break g}h=i[q+4>>2]+h|0;c=i[a+52>>2];n=i[a+56>>2];t:{if((c|0)!=(n|0)){i[c>>2]=h;i[a+52>>2]=c+4;break t}d=i[s>>2];f=c-d|0;p=f>>2;e=p+1|0;if(e>>>0>=1073741824){break h}n=n-d|0;u=n>>1;e=n>>2>>>0<536870911?u>>>0>>0?e:u:1073741823;c=0;u:{if(!e){break u}if(e>>>0>=1073741824){break a}c=Gm(e<<2)}n=c+(p<<2)|0;i[n>>2]=h;e=c+(e<<2)|0;n=n+4|0;if((f|0)>=1){sn(c,d,f)}i[a+56>>2]=e;i[a+52>>2]=n;i[a+48>>2]=c;if(!d){break t}qn(d)}m=m+1|0;if((r|0)!=(m|0)){continue}break}break e}Vm();x()}Vm();x()}s=-1;break c}m=a+48|0;s=0;while(1){h=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];d=e+4|0;if(d>>>0<4){c=c+1|0}f=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?l[b+8>>2]>>0:0){s=-1;break c}c=e+i[b>>2]|0;e=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=d;c=i[a+52>>2];n=i[a+56>>2];v:{if((c|0)!=(n|0)){i[c>>2]=e;i[a+52>>2]=c+4;break v}d=i[m>>2];f=c-d|0;p=f>>2;h=p+1|0;if(h>>>0>=1073741824){break b}n=n-d|0;u=n>>1;h=n>>2>>>0<536870911?u>>>0>>0?h:u:1073741823;c=0;w:{if(!h){break w}if(h>>>0>=1073741824){break a}c=Gm(h<<2)}n=c+(p<<2)|0;i[n>>2]=e;h=c+(h<<2)|0;e=n+4|0;if((f|0)>=1){sn(c,d,f)}i[a+56>>2]=h;i[a+52>>2]=e;i[a+48>>2]=c;if(!d){break v}qn(d)}s=s+1|0;if((r|0)!=(s|0)){continue}break}}s=i[b+16>>2]}L=q+16|0;return s}Vm();x()}Da(12220);x()}function ni(a,b,c,d){var e=0,f=0,h=0,o=0,r=p(0),s=0,t=0;a:{if(!d){break a}b:{c:{switch(i[a+28>>2]+ -1|0){case 0:d:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break d}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){g[b+d|0]=j[f|0];b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break d}f=f+1|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 1:e:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break e}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=g[f|0];if((e|0)<0){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break e}f=f+1|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 2:f:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break f}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=k[f>>1];if((e+128&65535)>>>0>255){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break f}f=f+2|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 3:g:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break g}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=k[f>>1];if(e>>>0>127){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break g}f=f+2|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 4:h:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break h}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f>>2];if(e+128>>>0>255){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break h}f=f+4|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 5:i:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break i}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f>>2];if(e>>>0>127){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break i}f=f+4|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 6:j:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break j}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f+4>>2];h=i[f>>2];o=h+128|0;if(o>>>0<128){e=e+1|0}if(!e&o>>>0>255|e>>>0>0){break a}g[b+d|0]=h;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break j}f=f+8|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 7:k:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break k}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f+4>>2];h=i[f>>2];if(!e&h>>>0>127|e>>>0>0){break a}g[b+d|0]=h;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break k}f=f+8|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 8:l:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break l}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){h=b+d|0;r=m[f>>2];m:{if(p(q(r))=((e|0)>(c|0)?c:e)<<24>>24){break l}f=f+4|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 9:n:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break n}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){h=b+d|0;s=n[f>>3];o:{if(q(s)<2147483648){e=~~s;break o}e=-2147483648}g[h|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break n}f=f+8|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 10:break c;default:break a}}p:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break p}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){g[b+d|0]=j[f|0];b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break p}f=f+1|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0)}t=1}return t}function pi(a,b,c,d){var e=0,f=0,h=0,o=p(0),q=0,r=0;a:{if(!d){break a}b:{c:{switch(i[a+28>>2]+ -1|0){case 0:d:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break d}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=g[f|0];if((e|0)<0){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break d}f=f+1|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 1:e:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break e}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){g[b+d|0]=j[f|0];b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break e}f=f+1|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 2:f:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break f}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=k[f>>1];if(e>>>0>255){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break f}f=f+2|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 3:g:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break g}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=k[f>>1];if(e>>>0>255){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break g}f=f+2|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 4:h:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break h}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f>>2];if(e>>>0>255){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break h}f=f+4|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 5:i:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break i}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f>>2];if(e>>>0>255){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break i}f=f+4|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 6:j:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break j}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f+4>>2];h=i[f>>2];if(!e&h>>>0>255|e>>>0>0){break a}g[b+d|0]=h;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break j}f=f+8|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 7:k:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break k}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f+4>>2];h=i[f>>2];if(!e&h>>>0>255|e>>>0>0){break a}g[b+d|0]=h;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break k}f=f+8|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 8:l:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break l}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){h=b+d|0;o=m[f>>2];m:{if(o=p(0)){e=~~o>>>0;break m}e=0}g[h|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break l}f=f+4|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 9:n:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break n}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){h=b+d|0;q=n[f>>3];o:{if(q<4294967296&q>=0){e=~~q>>>0;break o}e=0}g[h|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break n}f=f+8|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0);break b;case 10:break c;default:break a}}p:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break p}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){g[b+d|0]=j[f|0];b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break p}f=f+1|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}tn(d+e|0,0,c-e|0)}r=1}return r}function Wl(a,b,c,d,e){var f=0,k=0,l=0,m=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;f=L-80|0;L=f;i[f+76>>2]=b;z=f+55|0;w=f+56|0;b=0;a:{b:while(1){c:{if((t|0)<0){break c}if((b|0)>(2147483647-t|0)){i[4312]=61;t=-1;break c}t=b+t|0}d:{e:{f:{m=i[f+76>>2];b=m;k=j[b|0];if(k){while(1){g:{k=k&255;h:{if(!k){k=b;break h}if((k|0)!=37){break g}k=b;while(1){if(j[b+1|0]!=37){break h}l=b+2|0;i[f+76>>2]=l;k=k+1|0;p=j[b+2|0];b=l;if((p|0)==37){continue}break}}b=k-m|0;if(a){Xl(a,m,b)}if(b){continue b}k=f;l=!Rl(g[i[f+76>>2]+1|0]);b=i[f+76>>2];i:{if(!(l|j[b+2|0]!=36)){v=g[b+1|0]+ -48|0;x=1;b=b+3|0;break i}v=-1;b=b+1|0}i[k+76>>2]=b;q=0;u=g[b|0];l=u+ -32|0;j:{if(l>>>0>31){k=b;break j}k=b;l=1<>2]=k;q=l|q;u=g[b+1|0];l=u+ -32|0;if(l>>>0>=32){break j}b=k;l=1<>2];if(j[b+2|0]!=36){break m}i[((g[b+1|0]<<2)+e|0)+ -192>>2]=10;r=i[((g[b+1|0]<<3)+d|0)+ -384>>2];x=1;b=b+3|0;break l}if(x){break f}x=0;r=0;if(a){b=i[c>>2];i[c>>2]=b+4;r=i[b>>2]}b=i[f+76>>2]+1|0}i[l+76>>2]=b;if((r|0)>-1){break k}r=0-r|0;q=q|8192;break k}r=Yl(f+76|0);if((r|0)<0){break f}b=i[f+76>>2]}p=-1;n:{if(j[b|0]!=46){break n}if(j[b+1|0]==42){o:{if(!Rl(g[b+2|0])){break o}b=i[f+76>>2];if(j[b+3|0]!=36){break o}i[((g[b+2|0]<<2)+e|0)+ -192>>2]=10;p=i[((g[b+2|0]<<3)+d|0)+ -384>>2];b=b+4|0;i[f+76>>2]=b;break n}if(x){break f}if(a){b=i[c>>2];i[c>>2]=b+4;p=i[b>>2]}else{p=0}b=i[f+76>>2]+2|0;i[f+76>>2]=b;break n}i[f+76>>2]=b+1;p=Yl(f+76|0);b=i[f+76>>2]}k=0;while(1){y=k;s=-1;if(g[b|0]+ -65>>>0>57){break a}u=b+1|0;i[f+76>>2]=u;k=g[b|0];b=u;k=j[(k+o(y,58)|0)+14959|0];if(k+ -1>>>0<8){continue}break}p:{q:{if((k|0)!=19){if(!k){break a}if((v|0)>=0){i[(v<<2)+e>>2]=k;b=(v<<3)+d|0;k=i[b+4>>2];i[f+64>>2]=i[b>>2];i[f+68>>2]=k;break q}if(!a){break d}Zl(f- -64|0,k,c);u=i[f+76>>2];break p}if((v|0)>-1){break a}}b=0;if(!a){continue b}}l=q&-65537;k=q&8192?l:q;s=0;v=15005;q=w;r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{b=g[u+ -1|0];b=y?(b&15)==3?b&-33:b:b;switch(b+ -88|0){case 11:break r;case 9:case 13:case 14:case 15:break s;case 27:break x;case 12:case 17:break A;case 23:break B;case 0:case 32:break C;case 24:break D;case 22:break E;case 29:break F;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 e;default:break G}}H:{switch(b+ -65|0){case 0:case 4:case 5:case 6:break s;case 2:break v;case 1:case 3:break e;default:break H}}if((b|0)==83){break w}break e}b=i[f+64>>2];m=i[f+68>>2];v=15005;break z}b=0;I:{switch(y&255){case 0:i[i[f+64>>2]>>2]=t;continue b;case 1:i[i[f+64>>2]>>2]=t;continue b;case 2:k=i[f+64>>2];i[k>>2]=t;i[k+4>>2]=t>>31;continue b;case 3:h[i[f+64>>2]>>1]=t;continue b;case 4:g[i[f+64>>2]]=t;continue b;case 6:i[i[f+64>>2]>>2]=t;continue b;case 7:break I;default:continue b}}k=i[f+64>>2];i[k>>2]=t;i[k+4>>2]=t>>31;continue b}p=p>>>0>8?p:8;k=k|8;b=120}m=_l(i[f+64>>2],i[f+68>>2],w,b&32);if(!(k&8)|!(i[f+64>>2]|i[f+68>>2])){break y}v=(b>>>4|0)+15005|0;s=2;break y}m=$l(i[f+64>>2],i[f+68>>2],w);if(!(k&8)){break y}b=w-m|0;p=(p|0)>(b|0)?p:b+1|0;break y}l=i[f+68>>2];m=l;b=i[f+64>>2];if((l|0)<-1?1:(l|0)<=-1){m=0-(m+(0>>0)|0)|0;b=0-b|0;i[f+64>>2]=b;i[f+68>>2]=m;s=1;v=15005;break z}if(k&2048){s=1;v=15006;break z}s=k&1;v=s?15007:15005}m=am(b,m,w)}k=(p|0)>-1?k&-65537:k;b=i[f+64>>2];l=i[f+68>>2];if(!(!!(b|l)|p)){p=0;m=w;break e}b=!(b|l)+(w-m|0)|0;p=(p|0)>(b|0)?p:b;break e}b=i[f+64>>2];m=b?b:15015;b=Sl(m,p);q=b?b:p+m|0;k=l;p=b?b-m|0:p;break e}l=i[f+64>>2];if(p){break u}b=0;bm(a,32,r,0,k);break t}i[f+12>>2]=0;i[f+8>>2]=i[f+64>>2];i[f+64>>2]=f+8;p=-1;l=f+8|0}b=0;J:{while(1){m=i[l>>2];if(!m){break J}m=Ul(f+4|0,m);q=(m|0)<0;if(!(q|m>>>0>p-b>>>0)){l=l+4|0;b=b+m|0;if(p>>>0>b>>>0){continue}break J}break}s=-1;if(q){break a}}bm(a,32,r,b,k);if(!b){b=0;break t}u=0;l=i[f+64>>2];while(1){m=i[l>>2];if(!m){break t}m=Ul(f+4|0,m);u=m+u|0;if((u|0)>(b|0)){break t}Xl(a,f+4|0,m);l=l+4|0;if(u>>>0>>0){continue}break}}bm(a,32,r,b,k^8192);b=(r|0)>(b|0)?r:b;continue b}b=O[0](a,n[f+64>>3],r,p,k,b)|0;continue b}g[f+55|0]=i[f+64>>2];p=1;m=z;k=l;break e}l=b+1|0;i[f+76>>2]=l;k=j[b+1|0];b=l;continue}}s=t;if(a){break a}if(!x){break d}b=1;while(1){a=i[(b<<2)+e>>2];if(a){Zl((b<<3)+d|0,a,c);s=1;b=b+1|0;if((b|0)!=10){continue}break a}break}s=1;if(b>>>0>=10){break a}while(1){if(i[(b<<2)+e>>2]){break f}b=b+1|0;if((b|0)!=10){continue}break}break a}s=-1;break a}q=q-m|0;p=(p|0)<(q|0)?q:p;l=p+s|0;b=(r|0)<(l|0)?l:r;bm(a,32,b,l,k);Xl(a,v,s);bm(a,48,b,l,k^65536);bm(a,48,p,q,0);Xl(a,m,q);bm(a,32,b,l,k^8192);continue}break}s=0}L=f+80|0;return s}function hm(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=L-16|0;L=e;i[e+12>>2]=a;a:{if(a>>>0<=211){a=i[im(15520,15712,e+12|0)>>2];break a}if(a>>>0>=4294967292){km();x()}f=(a>>>0)/210|0;d=o(f,210);i[e+8>>2]=a-d;g=im(15712,15904,e+8|0)-15712>>2;b:{while(1){a=i[(g<<2)+15712>>2]+d|0;d=5;b=h;c:{d:{while(1){h=b;if((d|0)==47){d=211;while(1){b=(a>>>0)/(d>>>0)|0;if(b>>>0>>0){break c}if((o(b,d)|0)==(a|0)){break d}b=d+10|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+12|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+16|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+18|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+22|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+28|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+30|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+36|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+40|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+42|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+46|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+52|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+58|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+60|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+66|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+70|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+72|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+78|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+82|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+88|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+96|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+100|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+102|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+106|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+108|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+112|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+120|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+126|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+130|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+136|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+138|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+142|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+148|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+150|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+156|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+162|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+166|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+168|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+172|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+178|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+180|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+186|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+190|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+192|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+196|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+198|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+208|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}d=d+210|0;if((o(b,c)|0)!=(a|0)){continue}break}break d}b=i[(d<<2)+15520>>2];c=(a>>>0)/(b>>>0)|0;j=o(b,c);c=c>>>0>>0;if(!c){b=c?a:h;d=d+1|0;if((a|0)!=(j|0)){continue}}break}if((a|0)!=(j|0)|c){break b}}b=g+1|0;a=(b|0)==48;g=a?0:b;f=a+f|0;d=o(f,210);continue}break}i[e+12>>2]=a;break a}i[e+12>>2]=a;a=c?a:h}L=e+16|0;return a}function Ll(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;f=L-32|0;L=f;e=i[a+12>>2];i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;a:{if(e){if(e>>>0>=1073741824){break a}d=e<<2;g=Gm(d);i[f+8>>2]=g;j=d+g|0;i[f+16>>2]=j;tn(g,0,d);i[f+12>>2]=j}d=i[a+628>>2];h=i[d>>2];if(h){i[d+4>>2]=h;qn(h);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;j=i[f+12>>2];g=i[f+8>>2];e=i[a+12>>2]}i[d+4>>2]=j;i[d>>2]=g;i[d+8>>2]=i[f+16>>2];g=0;i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;h=0;b:{if(e){if(e>>>0>=1073741824){break b}d=e<<2;h=Gm(d);i[f+8>>2]=h;g=d+h|0;i[f+16>>2]=g;tn(h,0,d);i[f+12>>2]=g}d=i[a+640>>2];e=i[d>>2];if(e){i[d+4>>2]=e;qn(e);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=i[f+8>>2];g=i[f+12>>2]}i[d+4>>2]=g;i[d>>2]=h;i[d+8>>2]=i[f+16>>2];e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;j=f+16|0;i[j>>2]=0;i[j+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Pb(f+8|0);g=i[j>>2];j=i[f+12>>2];d=0;c:{if((g|0)==(j|0)){break c}d=i[e>>2]+i[f+28>>2]|0;e=(d>>>0)/341|0;d=i[j+(e<<2)>>2]+o(d-o(e,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;d=i[f+28>>2];e=d+1|0;i[f+28>>2]=e;d:{if(e>>>0>>0){break d}w=a+604|0;while(1){h=i[f+12>>2];g=e+ -1|0;d=g+i[f+24>>2]|0;e=(d>>>0)/341|0;e=i[h+(e<<2)>>2]+o(d-o(e,341)|0,12)|0;p=i[e+8>>2];k=i[e+4>>2];j=i[e>>2];i[f+28>>2]=g;e=i[f+16>>2];g=e-h|0;if((g?o(g>>2,341)+ -1|0:0)-d>>>0>=682){qn(i[e+ -4>>2]);i[f+16>>2]=i[f+16>>2]+ -4}if(j>>>0>b>>>0){break d}d=i[a+628>>2];m=o(p,12);q=m+i[a+640>>2]|0;h=xl(a,q,k);if(h>>>0>=l[a+12>>2]){break d}k=d+m|0;e:{f:{s=h<<2;d=i[a>>2]-i[s+i[q>>2]>>2]|0;if(!d){e=0;if(!j){break f}while(1){Ol(c,k);i[a+8>>2]=i[a+8>>2]+1;e=e+1|0;if((j|0)!=(e|0)){continue}break}break f}g:{h:{i:{j:{if(j>>>0<=2){d=i[a+616>>2];i[d>>2]=h;g=1;e=i[a+12>>2];if(e>>>0>1){break j}break g}if(l[a+8>>2]>l[a+4>>2]){break d}e=1<>2];n=p+1|0;q=o(n,12);g=d+q|0;if((g|0)!=(k|0)){wa(g,i[k>>2],i[k+4>>2]);d=i[a+628>>2]}d=s+i[d+q>>2]|0;i[d>>2]=e+i[d>>2];g=0;e=0;d=r(j)^31;if(d){while(1){g=Ee(((e<<4)+a|0)+16|0)|g<<1;e=e+1|0;if((d|0)!=(e|0)){continue}break}}d=(j>>>1|0)-g|0;e=j-d|0;k:{if((e|0)==(d|0)){e=d;break k}j=i[a+596>>2];if((j|0)==i[a+588>>2]){break i}g=i[j>>2];k=i[a+600>>2];u=k+1|0;i[a+600>>2]=u;g=g&-2147483648>>>k;l:{if((u|0)==32){i[a+600>>2]=0;i[a+596>>2]=j+4;if(g){break l}break i}if(!g){break i}}}j=e;e=d;break h}while(1){h=(e+ -1|0)==(h|0)?0:h+1|0;i[d+(g<<2)>>2]=h;g=g+1|0;e=i[a+12>>2];if(g>>>0>>0){continue}break}break g}j=d}d=i[a+640>>2];g=d+m|0;k=i[g>>2];m=k+s|0;i[m>>2]=i[m>>2]+1;wa(d+q|0,k,i[g+4>>2]);if(e){k=i[f+28>>2]+i[f+24>>2]|0;m=i[f+16>>2];g=i[f+12>>2];d=m-g|0;if((k|0)==((d?o(d>>2,341)+ -1|0:0)|0)){Pb(f+8|0);k=i[f+24>>2]+i[f+28>>2]|0;m=i[f+16>>2];g=i[f+12>>2]}d=0;m:{if((g|0)==(m|0)){break m}d=(k>>>0)/341|0;d=i[(d<<2)+g>>2]+o(k-o(d,341)|0,12)|0}i[d+8>>2]=p;i[d+4>>2]=h;i[d>>2]=e;i[f+28>>2]=i[f+28>>2]+1}if(!j){break f}g=i[f+28>>2]+i[f+24>>2]|0;d=i[f+16>>2];e=i[f+12>>2];k=d-e|0;if((g|0)==((k?o(k>>2,341)+ -1|0:0)|0)){Pb(f+8|0);e=i[f+12>>2];g=i[f+24>>2]+i[f+28>>2]|0;d=i[f+16>>2]}if((d|0)==(e|0)){d=0}else{d=(g>>>0)/341|0;d=i[(d<<2)+e>>2]+o(g-o(d,341)|0,12)|0}i[d+8>>2]=n;i[d+4>>2]=h;i[d>>2]=j;e=i[f+28>>2]+1|0;i[f+28>>2]=e;break e}if(!j){break f}p=0;while(1){if(e){u=i[k>>2];y=i[q>>2];h=i[a+604>>2];z=i[a+616>>2];e=0;while(1){m=z+(e<<2)|0;i[h+(i[m>>2]<<2)>>2]=0;g=i[m>>2]<<2;d=i[a>>2]-i[g+y>>2]|0;n:{if(!d){break n}g=g+h|0;s=i[a+560>>2];t=32-s|0;if((d|0)<=(t|0)){n=i[a+556>>2];if((n|0)==i[a+548>>2]){i[g>>2]=0;break n}i[g>>2]=i[n>>2]<>>32-d;d=d+i[a+560>>2]|0;i[a+560>>2]=d;if((d|0)!=32){break n}i[a+560>>2]=0;i[a+556>>2]=n+4;break n}n=i[a+556>>2];v=n+4|0;if((v|0)==i[a+548>>2]){i[g>>2]=0;break n}A=i[n>>2];i[a+556>>2]=v;t=d-t|0;i[a+560>>2]=t;i[g>>2]=i[n+4>>2]>>>32-t|A<>>32-d}d=i[m>>2]<<2;g=d+h|0;i[g>>2]=i[g>>2]|i[d+u>>2];e=e+1|0;if(e>>>0>2]){continue}break}}Ol(c,w);i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((p|0)==(j|0)){break f}e=i[a+12>>2];continue}}e=i[f+28>>2]}if(e){continue}break}}b=i[f+24>>2];c=(b>>>0)/341|0;a=i[f+12>>2];h=i[f+16>>2];o:{if((a|0)==(h|0)){break o}g=(c<<2)+a|0;e=i[g>>2]+o(b-o(c,341)|0,12)|0;b=b+i[f+28>>2]|0;c=(b>>>0)/341|0;b=i[(c<<2)+a>>2]+o(b-o(c,341)|0,12)|0;if((e|0)==(b|0)){break o}while(1){e=e+12|0;if((e-i[g>>2]|0)==4092){e=i[g+4>>2];g=g+4|0}if((b|0)!=(e|0)){continue}break}}i[f+28>>2]=0;e=h-a>>2;if(e>>>0>2){while(1){qn(i[a>>2]);a=i[f+12>>2]+4|0;i[f+12>>2]=a;h=i[f+16>>2];e=h-a>>2;if(e>>>0>2){continue}break}}g=170;p:{switch(e+ -1|0){case 1:g=341;case 0:i[f+24>>2]=g;break;default:break p}}q:{if((a|0)==(h|0)){break q}while(1){qn(i[a>>2]);a=a+4|0;if((h|0)!=(a|0)){continue}break}a=i[f+16>>2];b=i[f+12>>2];if((a|0)==(b|0)){break q}i[f+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[f+8>>2];if(a){qn(a)}L=f+32|0;return}Vm();x()}Vm();x()}function Ml(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;f=L-32|0;L=f;d=i[a+12>>2];i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;a:{if(d){if(d>>>0>=1073741824){break a}e=d<<2;g=Gm(e);i[f+8>>2]=g;h=e+g|0;i[f+16>>2]=h;tn(g,0,e);i[f+12>>2]=h}e=i[a+628>>2];j=i[e>>2];if(j){i[e+4>>2]=j;qn(j);i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;h=i[f+12>>2];g=i[f+8>>2];d=i[a+12>>2]}i[e+4>>2]=h;i[e>>2]=g;i[e+8>>2]=i[f+16>>2];g=0;i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;j=0;b:{if(d){if(d>>>0>=1073741824){break b}e=d<<2;j=Gm(e);i[f+8>>2]=j;g=e+j|0;i[f+16>>2]=g;tn(j,0,e);i[f+12>>2]=g}e=i[a+640>>2];d=i[e>>2];if(d){i[e+4>>2]=d;qn(d);i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;j=i[f+8>>2];g=i[f+12>>2]}i[e+4>>2]=g;i[e>>2]=j;i[e+8>>2]=i[f+16>>2];d=f+24|0;i[d>>2]=0;i[d+4>>2]=0;h=f+16|0;i[h>>2]=0;i[h+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Pb(f+8|0);g=i[h>>2];h=i[f+12>>2];e=0;c:{if((g|0)==(h|0)){break c}e=i[d>>2]+i[f+28>>2]|0;d=(e>>>0)/341|0;e=i[h+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[e+4>>2]=0;i[e+8>>2]=0;i[e>>2]=b;e=i[f+28>>2];d=e+1|0;i[f+28>>2]=d;d:{if(d>>>0>>0){break d}v=a+604|0;while(1){j=i[f+12>>2];g=d+ -1|0;d=g+i[f+24>>2]|0;e=(d>>>0)/341|0;e=i[j+(e<<2)>>2]+o(d-o(e,341)|0,12)|0;p=i[e+8>>2];h=i[e+4>>2];e=i[e>>2];i[f+28>>2]=g;g=i[f+16>>2];j=g-j|0;if((j?o(j>>2,341)+ -1|0:0)-d>>>0>=682){qn(i[g+ -4>>2]);i[f+16>>2]=i[f+16>>2]+ -4}if(e>>>0>b>>>0){break d}d=i[a+12>>2];j=(h|0)==(d+ -1|0)?0:h+1|0;if(j>>>0>=d>>>0){break d}d=i[a+628>>2];m=o(p,12);k=d+m|0;e:{f:{q=j<<2;s=m+i[a+640>>2]|0;h=i[a>>2]-i[q+i[s>>2]>>2]|0;if(!h){d=0;if(!e){break f}while(1){Ol(c,k);i[a+8>>2]=i[a+8>>2]+1;d=d+1|0;if((e|0)!=(d|0)){continue}break}break f}g:{h:{i:{j:{if(e>>>0<=2){h=i[a+616>>2];i[h>>2]=j;g=1;d=i[a+12>>2];if(d>>>0>1){break j}break g}if(l[a+8>>2]>l[a+4>>2]){break d}g=d;d=m+12|0;wa(g+d|0,i[k>>2],i[k+4>>2]);d=q+i[d+i[a+628>>2]>>2]|0;i[d>>2]=i[d>>2]+(1<>>1|0)-g|0;d=d-e|0;k:{if((d|0)==(e|0)){d=e;break k}h=i[a+596>>2];if((h|0)==i[a+588>>2]){break i}g=i[h>>2];k=i[a+600>>2];s=k+1|0;i[a+600>>2]=s;g=g&-2147483648>>>k;l:{if((s|0)==32){i[a+600>>2]=0;i[a+596>>2]=h+4;if(g){break l}break i}if(!g){break i}}}h=d;d=e;break h}while(1){j=(d+ -1|0)==(j|0)?0:j+1|0;i[h+(g<<2)>>2]=j;g=g+1|0;d=i[a+12>>2];if(g>>>0>>0){continue}break}break g}h=e}e=i[a+640>>2];g=e+m|0;k=i[g>>2];m=k+q|0;i[m>>2]=i[m>>2]+1;wa(e+o(n,12)|0,k,i[g+4>>2]);if(d){k=i[f+28>>2]+i[f+24>>2]|0;m=i[f+16>>2];g=i[f+12>>2];e=m-g|0;if((k|0)==((e?o(e>>2,341)+ -1|0:0)|0)){Pb(f+8|0);k=i[f+24>>2]+i[f+28>>2]|0;m=i[f+16>>2];g=i[f+12>>2]}e=0;m:{if((g|0)==(m|0)){break m}e=(k>>>0)/341|0;e=i[(e<<2)+g>>2]+o(k-o(e,341)|0,12)|0}i[e+8>>2]=p;i[e+4>>2]=j;i[e>>2]=d;i[f+28>>2]=i[f+28>>2]+1}if(!h){break f}g=i[f+28>>2]+i[f+24>>2]|0;k=i[f+16>>2];d=i[f+12>>2];e=k-d|0;if((g|0)==((e?o(e>>2,341)+ -1|0:0)|0)){Pb(f+8|0);k=i[f+16>>2];g=i[f+24>>2]+i[f+28>>2]|0;d=i[f+12>>2]}if((d|0)==(k|0)){e=0}else{e=(g>>>0)/341|0;e=i[(e<<2)+d>>2]+o(g-o(e,341)|0,12)|0}i[e+8>>2]=n;i[e+4>>2]=j;i[e>>2]=h;d=i[f+28>>2]+1|0;i[f+28>>2]=d;break e}if(!e){break f}p=0;while(1){if(d){w=i[k>>2];y=i[s>>2];j=i[a+604>>2];z=i[a+616>>2];d=0;while(1){m=z+(d<<2)|0;i[j+(i[m>>2]<<2)>>2]=0;g=i[m>>2]<<2;h=i[a>>2]-i[g+y>>2]|0;n:{if(!h){break n}g=g+j|0;q=i[a+560>>2];t=32-q|0;if((h|0)<=(t|0)){n=i[a+556>>2];if((n|0)==i[a+548>>2]){i[g>>2]=0;break n}i[g>>2]=i[n>>2]<>>32-h;h=h+i[a+560>>2]|0;i[a+560>>2]=h;if((h|0)!=32){break n}i[a+560>>2]=0;i[a+556>>2]=n+4;break n}n=i[a+556>>2];u=n+4|0;if((u|0)==i[a+548>>2]){i[g>>2]=0;break n}A=i[n>>2];i[a+556>>2]=u;t=h-t|0;i[a+560>>2]=t;i[g>>2]=i[n+4>>2]>>>32-t|A<>>32-h}h=i[m>>2]<<2;g=h+j|0;i[g>>2]=i[g>>2]|i[h+w>>2];d=d+1|0;if(d>>>0>2]){continue}break}}Ol(c,v);i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((p|0)==(e|0)){break f}d=i[a+12>>2];continue}}d=i[f+28>>2]}if(d){continue}break}}b=i[f+24>>2];c=(b>>>0)/341|0;a=i[f+12>>2];j=i[f+16>>2];o:{if((a|0)==(j|0)){break o}g=(c<<2)+a|0;d=i[g>>2]+o(b-o(c,341)|0,12)|0;b=b+i[f+28>>2]|0;c=(b>>>0)/341|0;b=i[(c<<2)+a>>2]+o(b-o(c,341)|0,12)|0;if((d|0)==(b|0)){break o}while(1){d=d+12|0;if((d-i[g>>2]|0)==4092){d=i[g+4>>2];g=g+4|0}if((b|0)!=(d|0)){continue}break}}i[f+28>>2]=0;d=j-a>>2;if(d>>>0>2){while(1){qn(i[a>>2]);a=i[f+12>>2]+4|0;i[f+12>>2]=a;j=i[f+16>>2];d=j-a>>2;if(d>>>0>2){continue}break}}g=170;p:{switch(d+ -1|0){case 1:g=341;case 0:i[f+24>>2]=g;break;default:break p}}q:{if((a|0)==(j|0)){break q}while(1){qn(i[a>>2]);a=a+4|0;if((j|0)!=(a|0)){continue}break}a=i[f+16>>2];b=i[f+12>>2];if((a|0)==(b|0)){break q}i[f+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[f+8>>2];if(a){qn(a)}L=f+32|0;return}Vm();x()}Vm();x()}function Nl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;f=L-32|0;L=f;e=i[a+12>>2];i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;a:{if(e){if(e>>>0>=1073741824){break a}d=e<<2;g=Gm(d);i[f+8>>2]=g;j=d+g|0;i[f+16>>2]=j;tn(g,0,d);i[f+12>>2]=j}d=i[a+628>>2];h=i[d>>2];if(h){i[d+4>>2]=h;qn(h);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;j=i[f+12>>2];g=i[f+8>>2];e=i[a+12>>2]}i[d+4>>2]=j;i[d>>2]=g;i[d+8>>2]=i[f+16>>2];g=0;i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;h=0;b:{if(e){if(e>>>0>=1073741824){break b}d=e<<2;h=Gm(d);i[f+8>>2]=h;g=d+h|0;i[f+16>>2]=g;tn(h,0,d);i[f+12>>2]=g}d=i[a+640>>2];e=i[d>>2];if(e){i[d+4>>2]=e;qn(e);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=i[f+8>>2];g=i[f+12>>2]}i[d+4>>2]=g;i[d>>2]=h;i[d+8>>2]=i[f+16>>2];e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;j=f+16|0;i[j>>2]=0;i[j+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Pb(f+8|0);g=i[j>>2];j=i[f+12>>2];d=0;c:{if((g|0)==(j|0)){break c}d=i[e>>2]+i[f+28>>2]|0;e=(d>>>0)/341|0;d=i[j+(e<<2)>>2]+o(d-o(e,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;d=i[f+28>>2];e=d+1|0;i[f+28>>2]=e;d:{if(e>>>0>>0){break d}w=a+604|0;while(1){h=i[f+12>>2];g=e+ -1|0;d=g+i[f+24>>2]|0;e=(d>>>0)/341|0;e=i[h+(e<<2)>>2]+o(d-o(e,341)|0,12)|0;p=i[e+8>>2];j=i[e>>2];i[f+28>>2]=g;e=i[f+16>>2];g=e-h|0;if((g?o(g>>2,341)+ -1|0:0)-d>>>0>=682){qn(i[e+ -4>>2]);i[f+16>>2]=i[f+16>>2]+ -4}if(j>>>0>b>>>0){break d}d=i[a+628>>2];m=o(p,12);q=m+i[a+640>>2]|0;h=yl(a,j,q);if(h>>>0>=l[a+12>>2]){break d}k=d+m|0;e:{f:{s=h<<2;d=i[a>>2]-i[s+i[q>>2]>>2]|0;if(!d){e=0;if(!j){break f}while(1){Ol(c,k);i[a+8>>2]=i[a+8>>2]+1;e=e+1|0;if((j|0)!=(e|0)){continue}break}break f}g:{h:{i:{j:{if(j>>>0<=2){d=i[a+616>>2];i[d>>2]=h;g=1;e=i[a+12>>2];if(e>>>0>1){break j}break g}if(l[a+8>>2]>l[a+4>>2]){break d}e=1<>2];n=p+1|0;q=o(n,12);g=d+q|0;if((g|0)!=(k|0)){wa(g,i[k>>2],i[k+4>>2]);d=i[a+628>>2]}d=s+i[d+q>>2]|0;i[d>>2]=e+i[d>>2];g=0;e=0;d=r(j)^31;if(d){while(1){g=Ee(((e<<4)+a|0)+16|0)|g<<1;e=e+1|0;if((d|0)!=(e|0)){continue}break}}d=(j>>>1|0)-g|0;e=j-d|0;k:{if((e|0)==(d|0)){e=d;break k}j=i[a+596>>2];if((j|0)==i[a+588>>2]){break i}g=i[j>>2];k=i[a+600>>2];u=k+1|0;i[a+600>>2]=u;g=g&-2147483648>>>k;l:{if((u|0)==32){i[a+600>>2]=0;i[a+596>>2]=j+4;if(g){break l}break i}if(!g){break i}}}j=e;e=d;break h}while(1){h=(e+ -1|0)==(h|0)?0:h+1|0;i[d+(g<<2)>>2]=h;g=g+1|0;e=i[a+12>>2];if(g>>>0>>0){continue}break}break g}j=d}d=i[a+640>>2];g=d+m|0;k=i[g>>2];m=k+s|0;i[m>>2]=i[m>>2]+1;wa(d+q|0,k,i[g+4>>2]);if(e){k=i[f+28>>2]+i[f+24>>2]|0;m=i[f+16>>2];g=i[f+12>>2];d=m-g|0;if((k|0)==((d?o(d>>2,341)+ -1|0:0)|0)){Pb(f+8|0);k=i[f+24>>2]+i[f+28>>2]|0;m=i[f+16>>2];g=i[f+12>>2]}d=0;m:{if((g|0)==(m|0)){break m}d=(k>>>0)/341|0;d=i[(d<<2)+g>>2]+o(k-o(d,341)|0,12)|0}i[d+8>>2]=p;i[d+4>>2]=h;i[d>>2]=e;i[f+28>>2]=i[f+28>>2]+1}if(!j){break f}g=i[f+28>>2]+i[f+24>>2]|0;d=i[f+16>>2];e=i[f+12>>2];k=d-e|0;if((g|0)==((k?o(k>>2,341)+ -1|0:0)|0)){Pb(f+8|0);e=i[f+12>>2];g=i[f+24>>2]+i[f+28>>2]|0;d=i[f+16>>2]}if((d|0)==(e|0)){d=0}else{d=(g>>>0)/341|0;d=i[(d<<2)+e>>2]+o(g-o(d,341)|0,12)|0}i[d+8>>2]=n;i[d+4>>2]=h;i[d>>2]=j;e=i[f+28>>2]+1|0;i[f+28>>2]=e;break e}if(!j){break f}p=0;while(1){if(e){u=i[k>>2];y=i[q>>2];h=i[a+604>>2];z=i[a+616>>2];e=0;while(1){m=z+(e<<2)|0;i[h+(i[m>>2]<<2)>>2]=0;g=i[m>>2]<<2;d=i[a>>2]-i[g+y>>2]|0;n:{if(!d){break n}g=g+h|0;s=i[a+560>>2];t=32-s|0;if((d|0)<=(t|0)){n=i[a+556>>2];if((n|0)==i[a+548>>2]){i[g>>2]=0;break n}i[g>>2]=i[n>>2]<>>32-d;d=d+i[a+560>>2]|0;i[a+560>>2]=d;if((d|0)!=32){break n}i[a+560>>2]=0;i[a+556>>2]=n+4;break n}n=i[a+556>>2];v=n+4|0;if((v|0)==i[a+548>>2]){i[g>>2]=0;break n}A=i[n>>2];i[a+556>>2]=v;t=d-t|0;i[a+560>>2]=t;i[g>>2]=i[n+4>>2]>>>32-t|A<>>32-d}d=i[m>>2]<<2;g=d+h|0;i[g>>2]=i[g>>2]|i[d+u>>2];e=e+1|0;if(e>>>0>2]){continue}break}}Ol(c,w);i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((p|0)==(j|0)){break f}e=i[a+12>>2];continue}}e=i[f+28>>2]}if(e){continue}break}}b=i[f+24>>2];c=(b>>>0)/341|0;a=i[f+12>>2];h=i[f+16>>2];o:{if((a|0)==(h|0)){break o}g=(c<<2)+a|0;e=i[g>>2]+o(b-o(c,341)|0,12)|0;b=b+i[f+28>>2]|0;c=(b>>>0)/341|0;b=i[(c<<2)+a>>2]+o(b-o(c,341)|0,12)|0;if((e|0)==(b|0)){break o}while(1){e=e+12|0;if((e-i[g>>2]|0)==4092){e=i[g+4>>2];g=g+4|0}if((b|0)!=(e|0)){continue}break}}i[f+28>>2]=0;e=h-a>>2;if(e>>>0>2){while(1){qn(i[a>>2]);a=i[f+12>>2]+4|0;i[f+12>>2]=a;h=i[f+16>>2];e=h-a>>2;if(e>>>0>2){continue}break}}g=170;p:{switch(e+ -1|0){case 1:g=341;case 0:i[f+24>>2]=g;break;default:break p}}q:{if((a|0)==(h|0)){break q}while(1){qn(i[a>>2]);a=a+4|0;if((h|0)!=(a|0)){continue}break}a=i[f+16>>2];b=i[f+12>>2];if((a|0)==(b|0)){break q}i[f+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[f+8>>2];if(a){qn(a)}L=f+32|0;return}Vm();x()}Vm();x()}function Jl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0;e=L-32|0;L=e;g=i[a+12>>2];i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;f=Gm(d);i[e+8>>2]=f;j=d+f|0;i[e+16>>2]=j;tn(f,0,d);i[e+12>>2]=j}d=i[a+116>>2];h=i[d>>2];if(h){i[d+4>>2]=h;qn(h);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;j=i[e+12>>2];g=i[a+12>>2];f=i[e+8>>2]}i[d+4>>2]=j;i[d>>2]=f;i[d+8>>2]=i[e+16>>2];f=0;i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;b:{if(g){if(g>>>0>=1073741824){break b}d=g<<2;k=Gm(d);i[e+8>>2]=k;f=d+k|0;i[e+16>>2]=f;tn(k,0,d);i[e+12>>2]=f}d=i[a+128>>2];h=i[d>>2];if(h){i[d+4>>2]=h;qn(h);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;k=i[e+8>>2];f=i[e+12>>2]}i[d+4>>2]=f;i[d>>2]=k;i[d+8>>2]=i[e+16>>2];f=e+24|0;i[f>>2]=0;i[f+4>>2]=0;h=e+16|0;i[h>>2]=0;i[h+4>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;Pb(e+8|0);g=i[h>>2];h=i[e+12>>2];d=0;c:{if((g|0)==(h|0)){break c}d=i[f>>2]+i[e+28>>2]|0;f=(d>>>0)/341|0;d=i[h+(f<<2)>>2]+o(d-o(f,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;d=i[e+28>>2];g=d+1|0;i[e+28>>2]=g;d:{if(g>>>0>>0){break d}w=a+92|0;y=a+16|0;while(1){k=i[e+12>>2];g=g+ -1|0;d=g+i[e+24>>2]|0;f=(d>>>0)/341|0;f=i[k+(f<<2)>>2]+o(d-o(f,341)|0,12)|0;q=i[f+8>>2];j=i[f+4>>2];h=i[f>>2];i[e+28>>2]=g;f=i[e+16>>2];g=f-k|0;if((g?o(g>>2,341)+ -1|0:0)-d>>>0>=682){qn(i[f+ -4>>2]);i[e+16>>2]=i[e+16>>2]+ -4}if(h>>>0>b>>>0){break d}d=i[a+116>>2];g=o(q,12);n=g+i[a+128>>2]|0;k=xl(a,n,j);if(k>>>0>=l[a+12>>2]){break d}j=d+g|0;e:{p=k<<2;d=i[a>>2]-i[p+i[n>>2]>>2]|0;if(!d){g=0;if(!h){break e}while(1){Ol(c,j);i[a+8>>2]=i[a+8>>2]+1;g=g+1|0;if((h|0)!=(g|0)){continue}break}break e}f:{g:{h:{i:{if(h>>>0<=2){d=i[a+104>>2];i[d>>2]=k;f=1;g=i[a+12>>2];if(g>>>0>1){break i}break f}if(l[a+8>>2]>l[a+4>>2]){break d}f=1<>2];s=q+1|0;n=o(s,12);m=d+n|0;if((m|0)!=(j|0)){wa(m,i[j>>2],i[j+4>>2]);d=i[a+116>>2]}d=p+i[d+n>>2]|0;i[d>>2]=f+i[d>>2];i[e+4>>2]=0;Fe(y,r(h)^31,e+4|0);d=(h>>>1|0)-i[e+4>>2]|0;f=h-d|0;j:{if((f|0)==(d|0)){f=d;break j}h=i[a+84>>2];if((h|0)==i[a+76>>2]){break h}j=i[h>>2];m=i[a+88>>2];u=m+1|0;i[a+88>>2]=u;j=j&-2147483648>>>m;k:{if((u|0)==32){i[a+88>>2]=0;i[a+84>>2]=h+4;if(j){break k}break h}if(!j){break h}}}h=f;f=d;break g}while(1){k=(g+ -1|0)==(k|0)?0:k+1|0;i[d+(f<<2)>>2]=k;f=f+1|0;g=i[a+12>>2];if(f>>>0>>0){continue}break}break f}h=d}d=i[a+128>>2];g=d+g|0;j=i[g>>2];p=j+p|0;i[p>>2]=i[p>>2]+1;wa(d+n|0,j,i[g+4>>2]);if(f){j=i[e+28>>2]+i[e+24>>2]|0;d=i[e+16>>2];g=i[e+12>>2];n=d-g|0;if((j|0)==((n?o(n>>2,341)+ -1|0:0)|0)){Pb(e+8|0);j=i[e+24>>2]+i[e+28>>2]|0;g=i[e+12>>2];d=i[e+16>>2]}if((d|0)==(g|0)){d=0}else{d=(j>>>0)/341|0;d=i[(d<<2)+g>>2]+o(j-o(d,341)|0,12)|0}i[d+8>>2]=q;i[d+4>>2]=k;i[d>>2]=f;i[e+28>>2]=i[e+28>>2]+1}if(!h){break e}f=i[e+28>>2]+i[e+24>>2]|0;j=i[e+16>>2];g=i[e+12>>2];d=j-g|0;if((f|0)==((d?o(d>>2,341)+ -1|0:0)|0)){Pb(e+8|0);j=i[e+16>>2];g=i[e+12>>2];f=i[e+24>>2]+i[e+28>>2]|0}d=0;l:{if((g|0)==(j|0)){break l}d=(f>>>0)/341|0;d=i[(d<<2)+g>>2]+o(f-o(d,341)|0,12)|0}i[d+8>>2]=s;i[d+4>>2]=k;i[d>>2]=h;i[e+28>>2]=i[e+28>>2]+1;break e}if(!h){break e}q=0;while(1){if(g){u=i[j>>2];z=i[n>>2];k=i[a+92>>2];A=i[a+104>>2];g=0;while(1){p=A+(g<<2)|0;i[k+(i[p>>2]<<2)>>2]=0;f=i[p>>2]<<2;d=i[a>>2]-i[f+z>>2]|0;m:{if(!d){break m}f=f+k|0;s=i[a+48>>2];t=32-s|0;if((d|0)<=(t|0)){m=i[a+44>>2];if((m|0)==i[a+36>>2]){i[f>>2]=0;break m}i[f>>2]=i[m>>2]<>>32-d;d=d+i[a+48>>2]|0;i[a+48>>2]=d;if((d|0)!=32){break m}i[a+48>>2]=0;i[a+44>>2]=m+4;break m}m=i[a+44>>2];v=m+4|0;if((v|0)==i[a+36>>2]){i[f>>2]=0;break m}B=i[m>>2];i[a+44>>2]=v;t=d-t|0;i[a+48>>2]=t;i[f>>2]=i[m+4>>2]>>>32-t|B<>>32-d}d=i[p>>2]<<2;f=d+k|0;i[f>>2]=i[f>>2]|i[d+u>>2];g=g+1|0;if(g>>>0>2]){continue}break}}Ol(c,w);i[a+8>>2]=i[a+8>>2]+1;q=q+1|0;if((q|0)==(h|0)){break e}g=i[a+12>>2];continue}}g=i[e+28>>2];if(g){continue}break}}b=i[e+24>>2];c=(b>>>0)/341|0;a=i[e+12>>2];k=i[e+16>>2];n:{if((a|0)==(k|0)){break n}f=(c<<2)+a|0;g=i[f>>2]+o(b-o(c,341)|0,12)|0;b=b+i[e+28>>2]|0;c=(b>>>0)/341|0;b=i[(c<<2)+a>>2]+o(b-o(c,341)|0,12)|0;if((g|0)==(b|0)){break n}while(1){g=g+12|0;if((g-i[f>>2]|0)==4092){g=i[f+4>>2];f=f+4|0}if((b|0)!=(g|0)){continue}break}}i[e+28>>2]=0;g=k-a>>2;if(g>>>0>2){while(1){qn(i[a>>2]);a=i[e+12>>2]+4|0;i[e+12>>2]=a;k=i[e+16>>2];g=k-a>>2;if(g>>>0>2){continue}break}}f=170;o:{switch(g+ -1|0){case 1:f=341;case 0:i[e+24>>2]=f;break;default:break o}}p:{if((a|0)==(k|0)){break p}while(1){qn(i[a>>2]);a=a+4|0;if((k|0)!=(a|0)){continue}break}a=i[e+16>>2];b=i[e+12>>2];if((a|0)==(b|0)){break p}i[e+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[e+8>>2];if(a){qn(a)}L=e+32|0;return}Vm();x()}Vm();x()}function Kl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0;e=L-32|0;L=e;f=i[a+12>>2];i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(f){if(f>>>0>=1073741824){break a}d=f<<2;g=Gm(d);i[e+8>>2]=g;h=d+g|0;i[e+16>>2]=h;tn(g,0,d);i[e+12>>2]=h}d=i[a+116>>2];j=i[d>>2];if(j){i[d+4>>2]=j;qn(j);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;g=i[e+8>>2];f=i[a+12>>2];h=i[e+12>>2]}i[d+4>>2]=h;i[d>>2]=g;i[d+8>>2]=i[e+16>>2];g=0;i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;b:{if(f){if(f>>>0>=1073741824){break b}d=f<<2;k=Gm(d);i[e+8>>2]=k;g=d+k|0;i[e+16>>2]=g;tn(k,0,d);i[e+12>>2]=g}d=i[a+128>>2];h=i[d>>2];if(h){i[d+4>>2]=h;qn(h);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;k=i[e+8>>2];g=i[e+12>>2]}i[d+4>>2]=g;i[d>>2]=k;i[d+8>>2]=i[e+16>>2];h=e+24|0;i[h>>2]=0;i[h+4>>2]=0;j=e+16|0;i[j>>2]=0;i[j+4>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;Pb(e+8|0);g=i[j>>2];j=i[e+12>>2];d=0;c:{if((g|0)==(j|0)){break c}d=i[h>>2]+i[e+28>>2]|0;h=(d>>>0)/341|0;d=i[j+(h<<2)>>2]+o(d-o(h,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;d=i[e+28>>2];f=d+1|0;i[e+28>>2]=f;d:{if(f>>>0>>0){break d}v=a+92|0;w=a+16|0;while(1){g=i[e+12>>2];f=f+ -1|0;h=f+i[e+24>>2]|0;d=(h>>>0)/341|0;d=i[g+(d<<2)>>2]+o(h-o(d,341)|0,12)|0;q=i[d+8>>2];j=i[d+4>>2];d=i[d>>2];i[e+28>>2]=f;f=i[e+16>>2];g=f-g|0;if((g?o(g>>2,341)+ -1|0:0)-h>>>0>=682){qn(i[f+ -4>>2]);i[e+16>>2]=i[e+16>>2]+ -4}if(d>>>0>b>>>0){break d}h=i[a+12>>2];k=(j|0)==(h+ -1|0)?0:j+1|0;if(k>>>0>=h>>>0){break d}h=i[a+116>>2];f=o(q,12);j=h+f|0;e:{g=k<<2;s=f+i[a+128>>2]|0;p=i[a>>2]-i[g+i[s>>2]>>2]|0;if(!p){f=0;if(!d){break e}while(1){Ol(c,j);i[a+8>>2]=i[a+8>>2]+1;f=f+1|0;if((d|0)!=(f|0)){continue}break}break e}f:{g:{h:{i:{if(d>>>0<=2){h=i[a+104>>2];i[h>>2]=k;g=1;f=i[a+12>>2];if(f>>>0>1){break i}break f}if(l[a+8>>2]>l[a+4>>2]){break d}m=h;h=f+12|0;wa(m+h|0,i[j>>2],i[j+4>>2]);h=g+i[h+i[a+116>>2]>>2]|0;i[h>>2]=i[h>>2]+(1<>2]=0;Fe(w,r(d)^31,e+4|0);p=q+1|0;h=d;d=(d>>>1|0)-i[e+4>>2]|0;h=h-d|0;j:{if((h|0)==(d|0)){h=d;break j}j=i[a+84>>2];if((j|0)==i[a+76>>2]){break h}m=i[j>>2];n=i[a+88>>2];s=n+1|0;i[a+88>>2]=s;m=m&-2147483648>>>n;k:{if((s|0)==32){i[a+88>>2]=0;i[a+84>>2]=j+4;if(m){break k}break h}if(!m){break h}}}j=h;h=d;break g}while(1){k=(f+ -1|0)==(k|0)?0:k+1|0;i[h+(g<<2)>>2]=k;g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}break f}j=d}m=g;d=i[a+128>>2];f=d+f|0;g=i[f>>2];m=m+g|0;i[m>>2]=i[m>>2]+1;wa(d+o(p,12)|0,g,i[f+4>>2]);if(h){g=i[e+28>>2]+i[e+24>>2]|0;d=i[e+16>>2];f=i[e+12>>2];m=d-f|0;if((g|0)==((m?o(m>>2,341)+ -1|0:0)|0)){Pb(e+8|0);g=i[e+24>>2]+i[e+28>>2]|0;f=i[e+12>>2];d=i[e+16>>2]}if((d|0)==(f|0)){d=0}else{d=(g>>>0)/341|0;d=i[(d<<2)+f>>2]+o(g-o(d,341)|0,12)|0}i[d+8>>2]=q;i[d+4>>2]=k;i[d>>2]=h;i[e+28>>2]=i[e+28>>2]+1}if(!j){break e}g=i[e+28>>2]+i[e+24>>2]|0;h=i[e+16>>2];f=i[e+12>>2];d=h-f|0;if((g|0)==((d?o(d>>2,341)+ -1|0:0)|0)){Pb(e+8|0);g=i[e+24>>2]+i[e+28>>2]|0;f=i[e+12>>2];h=i[e+16>>2]}d=0;l:{if((f|0)==(h|0)){break l}d=(g>>>0)/341|0;d=i[(d<<2)+f>>2]+o(g-o(d,341)|0,12)|0}i[d+8>>2]=p;i[d+4>>2]=k;i[d>>2]=j;i[e+28>>2]=i[e+28>>2]+1;break e}if(!d){break e}q=0;while(1){if(f){y=i[j>>2];z=i[s>>2];k=i[a+92>>2];A=i[a+104>>2];f=0;while(1){p=A+(f<<2)|0;i[k+(i[p>>2]<<2)>>2]=0;g=i[p>>2]<<2;h=i[a>>2]-i[g+z>>2]|0;m:{if(!h){break m}g=g+k|0;m=i[a+48>>2];t=32-m|0;if((h|0)<=(t|0)){n=i[a+44>>2];if((n|0)==i[a+36>>2]){i[g>>2]=0;break m}i[g>>2]=i[n>>2]<>>32-h;h=h+i[a+48>>2]|0;i[a+48>>2]=h;if((h|0)!=32){break m}i[a+48>>2]=0;i[a+44>>2]=n+4;break m}n=i[a+44>>2];u=n+4|0;if((u|0)==i[a+36>>2]){i[g>>2]=0;break m}B=i[n>>2];i[a+44>>2]=u;t=h-t|0;i[a+48>>2]=t;i[g>>2]=i[n+4>>2]>>>32-t|B<>>32-h}h=i[p>>2]<<2;g=h+k|0;i[g>>2]=i[g>>2]|i[h+y>>2];f=f+1|0;if(f>>>0>2]){continue}break}}Ol(c,v);i[a+8>>2]=i[a+8>>2]+1;q=q+1|0;if((q|0)==(d|0)){break e}f=i[a+12>>2];continue}}f=i[e+28>>2];if(f){continue}break}}b=i[e+24>>2];c=(b>>>0)/341|0;a=i[e+12>>2];k=i[e+16>>2];n:{if((a|0)==(k|0)){break n}g=(c<<2)+a|0;f=i[g>>2]+o(b-o(c,341)|0,12)|0;b=b+i[e+28>>2]|0;c=(b>>>0)/341|0;b=i[(c<<2)+a>>2]+o(b-o(c,341)|0,12)|0;if((f|0)==(b|0)){break n}while(1){f=f+12|0;if((f-i[g>>2]|0)==4092){f=i[g+4>>2];g=g+4|0}if((b|0)!=(f|0)){continue}break}}i[e+28>>2]=0;f=k-a>>2;if(f>>>0>2){while(1){qn(i[a>>2]);a=i[e+12>>2]+4|0;i[e+12>>2]=a;k=i[e+16>>2];f=k-a>>2;if(f>>>0>2){continue}break}}g=170;o:{switch(f+ -1|0){case 1:g=341;case 0:i[e+24>>2]=g;break;default:break o}}p:{if((a|0)==(k|0)){break p}while(1){qn(i[a>>2]);a=a+4|0;if((k|0)!=(a|0)){continue}break}a=i[e+16>>2];b=i[e+12>>2];if((a|0)==(b|0)){break p}i[e+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[e+8>>2];if(a){qn(a)}L=e+32|0;return}Vm();x()}Vm();x()}function bh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;e=L-32|0;L=e;g=i[a+32>>2];c=k[a+36>>1];a:{b:{if((c<<24|c<<8&16711680)>>>16>>>0<=513){b=i[g+12>>2];f=b;c=i[g+20>>2];d=c;h=i[g+16>>2];n=h+4|0;if(n>>>0<4){c=c+1|0}m=i[g+8>>2];q=n;n=c;if((b|0)<(c|0)?1:(b|0)<=(c|0)?m>>>0>>0:0){break a}t=i[g>>2];c=t+h|0;r=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+28>>2]=r;i[g+16>>2]=q;i[g+20>>2]=n;c=f;b=d;f=h+8|0;if(f>>>0<8){b=b+1|0}d=f;f=b;if((c|0)<(b|0)?1:(c|0)<=(b|0)?m>>>0>>0:0){break a}c=q+t|0;t=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+24>>2]=t;i[g+16>>2]=d;i[g+20>>2]=f;break b}if(!ch(1,e+28|0,g)){break a}if(!ch(1,e+24|0,i[a+32>>2])){break a}r=i[e+28>>2];t=i[e+24>>2]}if(r>>>0>1431655765){break a}f=i[a+32>>2];c=f;h=i[c+8>>2];b=h;g=i[c+16>>2];n=b-g|0;d=i[c+12>>2];m=b>>>0>>0;b=i[c+20>>2];q=Kn(n,d-(m+b|0)|0,3,0);n=N;if((d|0)<(b|0)?1:(d|0)<=(b|0)?h>>>0<=g>>>0:0){break a}c=r;d=Jn(c,0,3,0);h=N;if(!h&d>>>0>>0|h>>>0<0|(!n&q>>>0>>0|n>>>0<0)){break a}n=j[g+i[f>>2]|0];c=b;h=g+1|0;if(h>>>0<1){c=c+1|0}d=f;i[d+16>>2]=h;i[d+20>>2]=c;c:{if(!n){if(!dh(a,r)){break a}break c}d:{if(t>>>0<=255){if(!r){break c}q=0;p=e+16|0;i[p>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;o=i[f+8>>2];d=i[f+12>>2];b=d;if((b|0)<(c|0)?1:(b|0)<=(c|0)?o>>>0<=h>>>0:0){break d}while(1){g=i[f>>2];s=j[g+h|0];b=c;m=h+1|0;if(m>>>0<1){b=b+1|0}n=f;i[f+16>>2]=m;i[f+20>>2]=b;i[e+8>>2]=s;if((d|0)<(b|0)?1:(d|0)<=(b|0)?o>>>0<=m>>>0:0){break d}s=j[g+m|0];b=c;m=h+2|0;if(m>>>0<2){b=b+1|0}i[f+16>>2]=m;i[n+20>>2]=b;i[e+12>>2]=s;if((d|0)<(b|0)?1:(d|0)<=(b|0)?o>>>0<=m>>>0:0){break d}b=j[g+m|0];d=h+3|0;if(d>>>0<3){c=c+1|0}i[f+16>>2]=d;i[f+20>>2]=c;i[e+16>>2]=b;eh(i[a+44>>2]+96|0,e+8|0);q=q+1|0;if((q|0)==(r|0)){break c}f=i[a+32>>2];b=f;h=i[b+16>>2];c=i[b+20>>2];i[p>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;o=i[b+8>>2];d=i[b+12>>2];b=d;if((b|0)>(c|0)?1:(b|0)>=(c|0)?o>>>0>h>>>0:0){continue}break}break d}if(t>>>0<=65535){if(!r){break c}q=0;u=e+16|0;i[u>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;n=i[f+12>>2];p=n;d=g+3|0;if(d>>>0<3){b=b+1|0}m=i[f+8>>2];o=d;d=b;if((p|0)<(b|0)?1:(p|0)<=(b|0)?m>>>0>>0:0){break d}while(1){p=i[f>>2];b=p+h|0;b=j[b|0]|j[b+1|0]<<8;i[f+16>>2]=o;i[f+20>>2]=d;i[e+8>>2]=b;d=n;b=c;g=h+4|0;if(g>>>0<4){b=b+1|0}s=g;g=b;if((d|0)<(b|0)?1:(d|0)<=(b|0)?m>>>0>>0:0){break d}b=o+p|0;b=j[b|0]|j[b+1|0]<<8;i[f+16>>2]=s;i[f+20>>2]=g;i[e+12>>2]=b;b=c;c=h+6|0;if(c>>>0<6){b=b+1|0}d=c;c=b;if((n|0)<(b|0)?1:(n|0)<=(b|0)?m>>>0>>0:0){break d}b=p+s|0;b=j[b|0]|j[b+1|0]<<8;i[f+16>>2]=d;i[f+20>>2]=c;i[e+16>>2]=b;eh(i[a+44>>2]+96|0,e+8|0);q=q+1|0;if((q|0)==(r|0)){break c}f=i[a+32>>2];b=f;h=i[b+16>>2];c=i[b+20>>2];i[u>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;g=i[b+12>>2];n=g;m=i[b+8>>2];p=m;b=c;d=h+2|0;if(d>>>0<2){b=b+1|0}o=d;d=b;if((g|0)>(b|0)?1:(g|0)>=(b|0)?p>>>0>=o>>>0:0){continue}break}break d}e:{if(l[i[a+44>>2]+80>>2]>2097151){break e}d=k[a+36>>1];if((d<<24|d<<8&16711680)>>>16>>>0<514){break e}if(!r){break c}c=e+16|0;i[c>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;if(!ch(1,e+4|0,f)){break d}while(1){i[e+8>>2]=i[e+4>>2];if(!ch(1,e+4|0,i[a+32>>2])){break d}i[e+12>>2]=i[e+4>>2];if(!ch(1,e+4|0,i[a+32>>2])){break d}i[e+16>>2]=i[e+4>>2];eh(i[a+44>>2]+96|0,e+8|0);o=o+1|0;if((r|0)==(o|0)){break c}b=i[a+32>>2];i[c>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;if(ch(1,e+4|0,b)){continue}break}break d}if(!r){break c}q=0;u=e+16|0;i[u>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;n=i[f+12>>2];p=n;d=g+5|0;if(d>>>0<5){b=b+1|0}m=i[f+8>>2];o=d;d=b;if((p|0)<(b|0)?1:(p|0)<=(b|0)?m>>>0>>0:0){break d}while(1){p=i[f>>2];b=p+h|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[f+16>>2]=o;i[f+20>>2]=d;i[e+8>>2]=b;d=n;b=c;g=h+8|0;if(g>>>0<8){b=b+1|0}s=g;g=b;if((d|0)<(b|0)?1:(d|0)<=(b|0)?m>>>0>>0:0){break d}b=o+p|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[f+16>>2]=s;i[f+20>>2]=g;i[e+12>>2]=b;b=h+12|0;if(b>>>0<12){c=c+1|0}d=b;b=c;if((n|0)<(b|0)?1:(n|0)<=(b|0)?m>>>0>>0:0){break d}c=p+s|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[f+16>>2]=d;i[f+20>>2]=b;i[e+16>>2]=c;eh(i[a+44>>2]+96|0,e+8|0);q=q+1|0;if((q|0)==(r|0)){break c}f=i[a+32>>2];b=f;h=i[b+16>>2];c=i[b+20>>2];i[u>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;g=i[b+12>>2];n=g;m=i[b+8>>2];p=m;b=c;d=h+4|0;if(d>>>0<4){b=b+1|0}o=d;d=b;if((g|0)>(b|0)?1:(g|0)>=(b|0)?p>>>0>=o>>>0:0){continue}break}}o=0;break a}i[i[a+4>>2]+80>>2]=t;o=1}L=e+32|0;return o|0}function id(a,b,c,d){var e=0,f=0,l=0,o=0,r=p(0),t=0,w=0,x=0;a:{b:{if(!d){break b}c:{switch(i[a+28>>2]+ -1|0){case 0:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=g[b|0];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=j[b|0];i[e+4>>2]=0;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=h[b>>1];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=k[b>>1];i[e+4>>2]=0;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=i[b>>2];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=i[b>>2];i[e+4>>2]=0;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}l=i[b+4>>2];e=(f<<3)+d|0;i[e>>2]=i[b>>2];i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=i[b+4>>2];l=e;w=i[b>>2];if((e|0)<0?1:(e|0)<=0?w>>>0<0:0){return}e=(f<<3)+d|0;i[e>>2]=w;i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 8:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;w=i[e+4>>2];f=0;while(1){if(w>>>0<=b>>>0){return}e=(f<<3)+d|0;o=e;r=m[b>>2];d:{if(p(q(r))=p(1)?r>p(0)?~~p(s(p(u(p(r/p(4294967296)))),p(4294967296)))>>>0:~~p(v(p(p(r-p(~~r>>>0>>>0))/p(4294967296))))>>>0:0;x=~~r>>>0;break d}l=-2147483648;x=0}i[o>>2]=x;i[e+4>>2]=l;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 9:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;w=i[e+4>>2];f=0;while(1){if(w>>>0<=b>>>0){return}e=(f<<3)+d|0;o=e;t=n[b>>3];e:{if(q(t)<0x8000000000000000){l=q(t)>=1?t>0?~~s(u(t/4294967296),4294967295)>>>0:~~v((t- +(~~t>>>0>>>0))/4294967296)>>>0:0;x=~~t>>>0;break e}l=-2147483648;x=0}i[o>>2]=x;i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 10:break c;default:break b}}e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=j[b|0];i[e+4>>2]=0;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}tn((e<<3)+d|0,0,c-e<<3)}return}tn((e<<3)+d|0,0,c-e<<3)}function $f(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;d=L-48|0;L=d;c=i[i[a+4>>2]+44>>2];f=i[a+8>>2];e=i[f>>2];f=i[f+4>>2];i[d+40>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;f=(f-e>>2>>>0)/3|0;h=i[c+96>>2];e=(i[c+100>>2]-h|0)/12|0;a:{if(f>>>0>e>>>0){dg(c+96|0,f-e|0,d+32|0);break a}if(f>>>0>=e>>>0){break a}i[c+100>>2]=h+o(f,12)}b:{if(i[a+216>>2]==i[a+220>>2]){k=i[a+4>>2];c=i[k+44>>2];f=i[c+100>>2];m=i[c+96>>2];if((f|0)!=(m|0)){c=(f-m|0)/12|0;j=c>>>0>1?c:1;l=d+40|0;c=0;while(1){i[l>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;e=d;c:{d:{e:{h=o(c,3);if((h|0)==-1){f=-1;i[d+32>>2]=-1;g=0;break e}f=i[i[i[a+8>>2]>>2]+(h<<2)>>2];i[d+32>>2]=f;g=h+1|0;if((g|0)!=-1){break e}i[d+36>>2]=-1;h=0;break d}i[d+36>>2]=i[i[i[a+8>>2]>>2]+(g<<2)>>2];h=h+2|0;g=-1;if((h|0)==-1){break c}}g=i[i[i[a+8>>2]>>2]+(h<<2)>>2]}i[e+40>>2]=g;e=m+o(c,12)|0;i[e>>2]=f;i[e+4>>2]=i[d+36>>2];i[e+8>>2]=i[d+40>>2];c=c+1|0;if((j|0)!=(c|0)){continue}break}}i[i[k+4>>2]+80>>2]=b;c=1;break b}i[d+40>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;h=i[a+8>>2];b=i[h>>2];c=i[h+4>>2];i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;f:{g:{h:{i:{j:{k:{l:{b=c-b|0;if(b){c=b>>2;if(c>>>0>=1073741824){break l}b=Gm(b);i[d+16>>2]=b;c=c<<2;f=c+b|0;i[d+24>>2]=f;tn(b,0,c);i[d+20>>2]=f}if((i[h+28>>2]-i[h+24>>2]|0)<1){break g}while(1){f=i[i[h+24>>2]+(m<<2)>>2];m:{if((f|0)==-1){break m}n:{if(i[i[a+120>>2]+(m>>>3&536870908)>>2]>>>(m&31)&1){break n}b=i[a+220>>2];k=i[a+216>>2];if((b|0)==(k|0)){break n}n=(b-k|0)/144|0;j=((f>>>0)%3|0?-1:2)+f|0;g=0;while(1){p=f<<2;l=k+o(g,144)|0;b=i[p+i[i[l+68>>2]>>2]>>2];o:{if(!(i[i[l+16>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1)){break o}b=f;c=-1;p:{if((j|0)==-1){break p}e=i[i[h+12>>2]+(j<<2)>>2];c=-1;if((e|0)==-1){break p}c=e+ -1|0;if((e>>>0)%3|0){break p}c=e+2|0}if((b|0)==(c|0)){break o}l=i[l+32>>2];p=i[l+p>>2];while(1){b=0;if((c|0)==-1){break f}if((p|0)!=i[l+(c<<2)>>2]){f=c;break n}e=f;c=((c>>>0)%3|0?-1:2)+c|0;b=-1;q:{if((c|0)==-1){break q}c=i[i[h+12>>2]+(c<<2)>>2];b=-1;if((c|0)==-1){break q}b=c+ -1|0;if((c>>>0)%3|0){break q}b=c+2|0}c=b;if((e|0)!=(c|0)){continue}break}}g=g+1|0;if(g>>>0>>0){continue}break}}b=i[d+36>>2];c=i[d+32>>2];g=b-c|0;k=g>>2;i[i[d+16>>2]+(f<<2)>>2]=k;j=i[d+40>>2];r:{if(j>>>0>b>>>0){i[b>>2]=f;i[d+36>>2]=b+4;break r}e=k+1|0;if(e>>>0>=1073741824){break k}j=j-c|0;l=j>>1;e=j>>2>>>0<536870911?l>>>0>>0?e:l:1073741823;b=0;s:{if(!e){break s}if(e>>>0>=1073741824){break j}b=Gm(e<<2)}k=b+(k<<2)|0;i[k>>2]=f;e=b+(e<<2)|0;k=k+4|0;if((g|0)>=1){sn(b,c,g)}i[d+40>>2]=e;i[d+36>>2]=k;i[d+32>>2]=b;if(!c){break r}qn(c);h=i[a+8>>2]}if((f|0)==-1){break m}b=((f>>>0)%3|0?-1:2)+f|0;if((b|0)==-1){break m}b=i[i[h+12>>2]+(b<<2)>>2];if((b|0)==-1){break m}c=b+((b>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}e=f;if((c|0)==(f|0)){break m}while(1){b=c;t:{u:{c=i[a+220>>2];g=i[a+216>>2];if((c|0)==(g|0)){break u}k=(c-g|0)/144|0;c=0;while(1){j=i[(g+o(c,144)|0)+32>>2];l=b<<2;if(i[j+l>>2]==i[j+(e<<2)>>2]){c=c+1|0;if(c>>>0>>0){continue}break u}break}c=i[d+36>>2];e=i[d+32>>2];k=c-e|0;j=k>>2;i[l+i[d+16>>2]>>2]=j;l=i[d+40>>2];if(l>>>0>c>>>0){i[c>>2]=b;i[d+36>>2]=c+4;break t}g=j+1|0;if(g>>>0>=1073741824){break i}l=l-e|0;n=l>>1;g=l>>2>>>0<536870911?n>>>0>>0?g:n:1073741823;c=0;v:{if(!g){break v}if(g>>>0>=1073741824){break h}c=Gm(g<<2)}j=c+(j<<2)|0;i[j>>2]=b;g=c+(g<<2)|0;j=j+4|0;if((k|0)>=1){sn(c,e,k)}i[d+40>>2]=g;i[d+36>>2]=j;i[d+32>>2]=c;if(!e){break t}qn(e);h=i[a+8>>2];break t}c=i[d+16>>2];i[c+(b<<2)>>2]=i[c+(e<<2)>>2]}if((b|0)==-1){break m}c=b+((b>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}c=i[i[h+12>>2]+(c<<2)>>2];if((c|0)==-1){break m}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}e=b;if((c|0)!=(f|0)){continue}break}}m=m+1|0;if((m|0)>2]-i[h+24>>2]>>2){continue}break}break g}Vm();x()}Vm();x()}Da(12220);x()}Vm();x()}Da(12220);x()}f=i[a+4>>2];a=i[f+44>>2];b=i[a+100>>2];a=i[a+96>>2];if((b|0)!=(a|0)){b=(b-a|0)/12|0;e=b>>>0>1?b:1;c=0;h=i[d+16>>2];while(1){m=d+8|0;g=o(c,12);b=g+h|0;i[m>>2]=i[b+8>>2];k=i[b+4>>2];j=i[b>>2];i[d>>2]=j;i[d+4>>2]=k;b=a+g|0;i[b>>2]=j;i[b+4>>2]=i[d+4>>2];i[b+8>>2]=i[m>>2];c=c+1|0;if((e|0)!=(c|0)){continue}break}}i[i[f+4>>2]+80>>2]=i[d+36>>2]-i[d+32>>2]>>2;b=1}c=b;a=i[d+16>>2];if(a){i[d+20>>2]=a;qn(a)}a=i[d+32>>2];if(!a){break b}i[d+36>>2]=a;qn(a)}L=d+48|0;return c}function bd(a,b,c,d){var e=0,f=0,o=p(0),q=0,r=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(g[b|0]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(127)}b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(j[b|0]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(255)}b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(h[b>>1]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(32767)}b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(k[b>>1]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(65535)}b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(i[b>>2]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(4.656612873077393e-10)}b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(l[b>>2]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(2.3283064365386963e-10)}b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(+l[b>>2]+ +i[b+4>>2]*4294967296);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(1.0842021724855044e-19)}b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(+l[b>>2]+ +l[b+4>>2]*4294967296);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(5.421010862427522e-20)}b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}m[(f<<2)+d>>2]=n[b>>3];b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){q=i[a>>2];e=i[q>>2];b=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;while(1){if(l[q+4>>2]<=b>>>0){break b}m[(f<<2)+d>>2]=j[b|0]?p(1):p(0);b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}tn((e<<2)+d|0,0,c-e<<2)}return r}return 0}tn((e<<2)+d|0,0,c-e<<2);return 1}function si(a,b,c,d){var e=0,f=0,l=0,o=0,r=0,s=0,t=p(0),u=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;l=i[e+4>>2];while(1){if(l>>>0<=b>>>0){break b}o=0;e=h[b>>1];if((e|0)<0){break c}h[(f<<1)+d>>1]=e;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}o=1;if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e+32768>>>0>65535){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e>>>0>32767){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];r=i[b>>2];s=r+32768|0;if(s>>>0<32768){e=e+1|0}if(!e&s>>>0>65535|e>>>0>0){break b}h[(f<<1)+d>>1]=r;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];r=i[b>>2];if(!e&r>>>0>32767|e>>>0>0){break b}h[(f<<1)+d>>1]=r;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}r=(f<<1)+d|0;t=m[b>>2];e:{if(p(q(t))>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}r=(f<<1)+d|0;u=n[b>>3];f:{if(q(u)<2147483648){e=~~u;break f}e=-2147483648}h[r>>1]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}tn((e<<1)+d|0,0,c-e<<1)}return o}return 0}tn((e<<1)+d|0,0,c-e<<1);return 1}function ui(a,b,c,d){var e=0,f=0,l=0,o=0,q=0,r=p(0),s=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;l=i[e+4>>2];while(1){if(l>>>0<=b>>>0){break b}o=0;e=g[b|0];if((e|0)<0){break c}h[(f<<1)+d>>1]=e&255;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}o=1;if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;l=i[e+4>>2];while(1){if(l>>>0<=b>>>0){break b}o=0;e=h[b>>1];if((e|0)<0){break c}h[(f<<1)+d>>1]=e;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}o=1;if((e|0)>=(c|0)){break c}break a;case 3:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e>>>0>65535){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e>>>0>65535){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];q=i[b>>2];if(!e&q>>>0>65535|e>>>0>0){break b}h[(f<<1)+d>>1]=q;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];q=i[b>>2];if(!e&q>>>0>65535|e>>>0>0){break b}h[(f<<1)+d>>1]=q;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}q=(f<<1)+d|0;r=m[b>>2];e:{if(r=p(0)){e=~~r>>>0;break e}e=0}h[q>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}q=(f<<1)+d|0;s=n[b>>3];f:{if(s<4294967296&s>=0){e=~~s>>>0;break f}e=0}h[q>>1]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}tn((e<<1)+d|0,0,c-e<<1)}return o}return 0}tn((e<<1)+d|0,0,c-e<<1);return 1}function wi(a,b,c,d){var e=0,f=0,l=0,o=0,r=0,s=p(0),t=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=h[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=g[a+24|0];if(((o|0)>(c|0)?c:o)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;e=i[e+4>>2];while(1){if(e>>>0<=b>>>0){break b}o=0;r=i[b>>2];if((r|0)<0){break c}i[(f<<2)+d>>2]=r;b=b+4|0;f=f+1|0;o=g[a+24|0];if((f|0)<((o|0)>(c|0)?c:o)<<24>>24){continue}break}}if((o|0)>=(c|0)){return 1}tn((o<<2)+d|0,0,c-o<<2);return 1;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=i[b+4>>2];l=i[b>>2];if(l+ -2147483648>>>0<2147483648){e=e+1|0}if(e>>>0>0){break b}i[(f<<2)+d>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=i[b+4>>2];l=i[b>>2];if(!e&l>>>0>2147483647|e>>>0>0){break b}i[(f<<2)+d>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=(f<<2)+d|0;s=m[b>>2];e:{if(p(q(s))>2]=l;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=(f<<2)+d|0;t=n[b>>3];f:{if(q(t)<2147483648){l=~~t;break f}l=-2147483648}i[e>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}tn((e<<2)+d|0,0,c-e<<2)}return o}return 0}tn((e<<2)+d|0,0,c-e<<2);return 1}function hd(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,O=0,P=0,Q=0,R=0,S=0;f=L-80|0;L=f;h=-1;e=-1;a:{if((b|0)==-1){break a}e=b+1|0;h=(e>>>0)%3|0?e:b+ -2|0;e=b+ -1|0;if((b>>>0)%3|0){break a}e=b+2|0}l=i[a+36>>2];b=i[l>>2];b:{c:{d:{e:{f:{l=i[l+4>>2]-b>>2;m=h<<2;h=i[i[a+32>>2]+28>>2];k=i[m+h>>2];if(l>>>0<=k>>>0){break f}e=i[h+(e<<2)>>2];if(l>>>0<=e>>>0){break f}g:{h:{u=i[b+(k<<2)>>2];w=(u|0)>=(d|0);if(w){break h}h=i[b+(e<<2)>>2];if((h|0)>=(d|0)){break h}b=h<<3;B=i[(b|4)+c>>2];e=u<<3;y=i[(e|4)+c>>2];C=i[b+c>>2];z=i[c+e>>2];if(!((C|0)!=(z|0)|(y|0)!=(B|0))){i[a+8>>2]=z;i[a+12>>2]=y;break g}b=i[i[a+4>>2]+(d<<2)>>2];i[f+72>>2]=0;i[f+76>>2]=0;e=f- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}id(e,b,g[e+24|0],f+56|0);b=i[i[a+4>>2]+(u<<2)>>2];i[f+48>>2]=0;i[f+52>>2]=0;i[f+40>>2]=0;i[f+44>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}id(e,b,g[e+24|0],f+32|0);b=i[i[a+4>>2]+(h<<2)>>2];i[f+24>>2]=0;i[f+28>>2]=0;i[f+16>>2]=0;i[f+20>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}id(e,b,g[e+24|0],f+8|0);A=i[f+44>>2];e=i[f+16>>2];b=i[f+40>>2];q=i[f+20>>2]-(A+(e>>>0>>0)|0)|0;h=e-b|0;e=Jn(h,q,h,q);p=N;m=e;E=i[f+36>>2];e=i[f+8>>2];r=i[f+32>>2];l=r;s=i[f+12>>2]-(E+(e>>>0>>0)|0)|0;l=e-l|0;o=Jn(l,s,l,s);k=m+o|0;e=N+p|0;e=k>>>0>>0?e+1|0:e;F=k;n=i[f+52>>2];k=i[f+24>>2];m=i[f+48>>2];o=m;p=i[f+28>>2]-(n+(k>>>0>>0)|0)|0;k=k-o|0;v=Jn(k,p,k,p);o=F+v|0;e=N+e|0;t=o;o=o>>>0>>0?e+1|0:e;if(!(t|o)){break h}c=i[f+64>>2];u=c-b|0;G=i[f+68>>2]-((c>>>0>>0)+A|0)|0;b=Jn(u,G,h,q);c=N;e=b;b=i[f+56>>2];w=b-r|0;H=i[f+60>>2]-((b>>>0>>0)+E|0)|0;d=Jn(w,H,l,s);b=e+d|0;e=N+c|0;e=b>>>0>>0?e+1|0:e;d=b;b=i[f+72>>2];A=b-m|0;I=i[f+76>>2]-((b>>>0>>0)+n|0)|0;c=Jn(A,I,k,p);b=d+c|0;e=N+e|0;D=b;F=b;r=b>>>0>>0?e+1|0:e;J=r;e=p;b=e>>31;c=e>>31;e=b+e|0;m=c+k|0;if(m>>>0>>0){e=e+1|0}c=c^m;b=b^e;K=b;m=c;E=b;d=q;b=d>>31;d=d>>31;n=b;b=q+b|0;e=d;v=e+h|0;if(v>>>0>>0){b=b+1|0}d=d^v;b=b^n;M=b;v=b;e=s;b=e>>31;e=e>>31;P=m;Q=d;n=b+s|0;m=e+l|0;if(m>>>0>>0){n=n+1|0}e=e^m;d=e>>>0>>0;b=b^n;d=(b|0)<(M|0)?1:(b|0)<=(M|0)?d:0;e=d?Q:e;c=e>>>0>>0;b=d?v:b;c=(b|0)<(K|0)?1:(b|0)<=(K|0)?c:0;c=F>>>0>Ln(-1,2147483647,c?P:e,c?E:b)>>>0;b=N;if((J|0)>(b|0)?1:(J|0)>=(b|0)?c:0){break b}d=1;b=0;c=Kn(Jn(h,q,D,r),N,t,o);e=G-(N+(u>>>0>>0)|0)|0;c=u-c|0;c=Jn(c,e,c,e);h=N;m=c;c=Kn(Jn(l,s,D,r),N,t,o);e=H-(N+(w>>>0>>0)|0)|0;c=w-c|0;e=Jn(c,e,c,e);c=m+e|0;n=N+h|0;n=c>>>0>>0?n+1|0:n;l=c;c=Kn(Jn(D,r,k,p),N,t,o);e=I-(N+(A>>>0>>0)|0)|0;c=A-c|0;h=Jn(c,e,c,e);c=l+h|0;e=N+n|0;h=Jn(c,c>>>0>>0?e+1|0:e,t,o);c=N;l=c;if(!c&h>>>0<=1|c>>>0<0){break e}k=h;c=l;while(1){e=b<<1|d>>>31;d=d<<1;b=e;q=!c&k>>>0>7|c>>>0>0;k=(c&3)<<30|k>>>2;c=c>>>2|0;if(q){continue}break}break d}e=a;if(w){if((d|0)<=0){i[a+8>>2]=0;i[a+12>>2]=0;break g}b=(d<<1)+ -2|0}else{b=u<<1}b=(b<<2)+c|0;i[e+8>>2]=i[b>>2];i[a+12>>2]=i[b+4>>2]}O=1;break b}Wm();x()}b=l;d=h;if(d-1|0){break c}}while(1){c=Ln(h,l,d,b)+d|0;e=b+N|0;e=c>>>0>>0?e+1|0:e;d=(e&1)<<31|c>>>1;b=e>>>1|0;c=Jn(d,b,d,b);e=N;if((l|0)==(e|0)&c>>>0>h>>>0|e>>>0>l>>>0){continue}break}}l=i[a+20>>2];if(l){k=l+ -1|0;q=i[i[a+16>>2]+(k>>>3&536870908)>>2];i[a+20>>2]=k;c=B;e=y;s=c-e|0;p=e>>31;y=(c>>31)-(p+(c>>>0>>0)|0)|0;c=Jn(D,r,s,y);h=N;e=Jn(e,p,t,o);c=e+c|0;n=N+h|0;n=c>>>0>>0?n+1|0:n;m=c;c=C;h=z;e=h;p=c-e|0;B=e>>31;z=(c>>31)-(B+(c>>>0>>0)|0)|0;c=Jn(d,b,p,z);e=c;c=q>>>(k&31)&1;C=c?0-e|0:e;k=m+C|0;m=N;e=(c?0-(m+(0>>0)|0)|0:m)+n|0;R=a,S=Kn(k,k>>>0>>0?e+1|0:e,t,o),i[R+12>>2]=S;e=Jn(D,r,p,z);k=N;m=a;a=e;e=Jn(h,B,t,o);a=a+e|0;n=N+k|0;n=a>>>0>>0?n+1|0:n;e=a;a=Jn(d,b,s,y);d=c?a:0-a|0;b=e+d|0;e=N;a=(c?e:0-((0>>0)+e|0)|0)+n|0;R=m,S=Kn(b,b>>>0>>0?a+1|0:a,t,o),i[R+8>>2]=S}O=(l|0)!=0}L=f+80|0;return O}function Gd(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,O=0,P=0,Q=0,R=0,S=0;f=L-80|0;L=f;e=-1;h=-1;a:{if((b|0)==-1){break a}k=((b>>>0)%3|0?-1:2)+b|0;l=i[a+32>>2];p=b+1|0;b=(p>>>0)%3|0?p:b+ -2|0;if((b|0)!=-1){e=i[i[l>>2]+(b<<2)>>2]}if((k|0)==-1){break a}h=i[i[l>>2]+(k<<2)>>2]}k=i[a+36>>2];b=i[k>>2];b:{c:{d:{e:{k=i[k+4>>2]-b>>2;if(!(k>>>0<=e>>>0|k>>>0<=h>>>0)){f:{g:{u=i[b+(e<<2)>>2];w=(u|0)>=(d|0);if(w){break g}h=i[b+(h<<2)>>2];if((h|0)>=(d|0)){break g}b=h<<3;B=i[(b|4)+c>>2];e=u<<3;y=i[(e|4)+c>>2];C=i[b+c>>2];z=i[c+e>>2];if(!((C|0)!=(z|0)|(y|0)!=(B|0))){i[a+8>>2]=z;i[a+12>>2]=y;break f}b=i[i[a+4>>2]+(d<<2)>>2];i[f+72>>2]=0;i[f+76>>2]=0;e=f- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}id(e,b,g[e+24|0],f+56|0);b=i[i[a+4>>2]+(u<<2)>>2];i[f+48>>2]=0;i[f+52>>2]=0;i[f+40>>2]=0;i[f+44>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}id(e,b,g[e+24|0],f+32|0);b=i[i[a+4>>2]+(h<<2)>>2];i[f+24>>2]=0;i[f+28>>2]=0;i[f+16>>2]=0;i[f+20>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}id(e,b,g[e+24|0],f+8|0);A=i[f+44>>2];e=i[f+16>>2];b=i[f+40>>2];p=i[f+20>>2]-(A+(e>>>0>>0)|0)|0;h=e-b|0;e=Jn(h,p,h,p);q=N;n=e;E=i[f+36>>2];e=i[f+8>>2];r=i[f+32>>2];k=r;s=i[f+12>>2]-(E+(e>>>0>>0)|0)|0;k=e-k|0;o=Jn(k,s,k,s);l=n+o|0;e=N+q|0;e=l>>>0>>0?e+1|0:e;F=l;m=i[f+52>>2];l=i[f+24>>2];n=i[f+48>>2];o=n;q=i[f+28>>2]-(m+(l>>>0>>0)|0)|0;l=l-o|0;v=Jn(l,q,l,q);o=F+v|0;e=N+e|0;t=o;o=o>>>0>>0?e+1|0:e;if(!(t|o)){break g}c=i[f+64>>2];u=c-b|0;G=i[f+68>>2]-((c>>>0>>0)+A|0)|0;b=Jn(u,G,h,p);c=N;e=b;b=i[f+56>>2];w=b-r|0;H=i[f+60>>2]-((b>>>0>>0)+E|0)|0;d=Jn(w,H,k,s);b=e+d|0;e=N+c|0;e=b>>>0>>0?e+1|0:e;d=b;b=i[f+72>>2];A=b-n|0;I=i[f+76>>2]-((b>>>0>>0)+m|0)|0;c=Jn(A,I,l,q);b=d+c|0;e=N+e|0;D=b;F=b;r=b>>>0>>0?e+1|0:e;J=r;e=q;b=e>>31;c=e>>31;e=b+e|0;n=c+l|0;if(n>>>0>>0){e=e+1|0}c=c^n;b=b^e;K=b;n=c;E=b;d=p;b=d>>31;d=d>>31;m=b;b=p+b|0;e=d;v=e+h|0;if(v>>>0>>0){b=b+1|0}d=d^v;b=b^m;M=b;v=b;e=s;b=e>>31;e=e>>31;P=n;Q=d;m=b+s|0;n=e+k|0;if(n>>>0>>0){m=m+1|0}e=e^n;d=e>>>0>>0;b=b^m;d=(b|0)<(M|0)?1:(b|0)<=(M|0)?d:0;e=d?Q:e;c=e>>>0>>0;b=d?v:b;c=(b|0)<(K|0)?1:(b|0)<=(K|0)?c:0;c=F>>>0>Ln(-1,2147483647,c?P:e,c?E:b)>>>0;b=N;if((J|0)>(b|0)?1:(J|0)>=(b|0)?c:0){break b}d=1;b=0;c=Kn(Jn(h,p,D,r),N,t,o);e=G-(N+(u>>>0>>0)|0)|0;c=u-c|0;c=Jn(c,e,c,e);h=N;n=c;c=Kn(Jn(k,s,D,r),N,t,o);e=H-(N+(w>>>0>>0)|0)|0;c=w-c|0;e=Jn(c,e,c,e);c=n+e|0;m=N+h|0;m=c>>>0>>0?m+1|0:m;k=c;c=Kn(Jn(D,r,l,q),N,t,o);e=I-(N+(A>>>0>>0)|0)|0;c=A-c|0;h=Jn(c,e,c,e);c=k+h|0;e=N+m|0;h=Jn(c,c>>>0>>0?e+1|0:e,t,o);c=N;k=c;if(!c&h>>>0<=1|c>>>0<0){break e}l=h;c=k;while(1){e=b<<1|d>>>31;d=d<<1;b=e;p=!c&l>>>0>7|c>>>0>0;l=(c&3)<<30|l>>>2;c=c>>>2|0;if(p){continue}break}break d}e=a;if(w){if((d|0)<=0){i[a+8>>2]=0;i[a+12>>2]=0;break f}b=(d<<1)+ -2|0}else{b=u<<1}b=(b<<2)+c|0;i[e+8>>2]=i[b>>2];i[a+12>>2]=i[b+4>>2]}O=1;break b}Wm();x()}b=k;d=h;if(d-1|0){break c}}while(1){c=Ln(h,k,d,b)+d|0;e=b+N|0;e=c>>>0>>0?e+1|0:e;d=(e&1)<<31|c>>>1;b=e>>>1|0;c=Jn(d,b,d,b);e=N;if((k|0)==(e|0)&c>>>0>h>>>0|e>>>0>k>>>0){continue}break}}k=i[a+20>>2];if(k){l=k+ -1|0;p=i[i[a+16>>2]+(l>>>3&536870908)>>2];i[a+20>>2]=l;c=B;e=y;s=c-e|0;q=e>>31;y=(c>>31)-(q+(c>>>0>>0)|0)|0;c=Jn(D,r,s,y);h=N;e=Jn(e,q,t,o);c=e+c|0;m=N+h|0;m=c>>>0>>0?m+1|0:m;n=c;c=C;h=z;e=h;q=c-e|0;B=e>>31;z=(c>>31)-(B+(c>>>0>>0)|0)|0;c=Jn(d,b,q,z);e=c;c=p>>>(l&31)&1;C=c?0-e|0:e;l=n+C|0;n=N;e=(c?0-(n+(0>>0)|0)|0:n)+m|0;R=a,S=Kn(l,l>>>0>>0?e+1|0:e,t,o),i[R+12>>2]=S;e=Jn(D,r,q,z);l=N;n=a;a=e;e=Jn(h,B,t,o);a=a+e|0;m=N+l|0;m=a>>>0>>0?m+1|0:m;e=a;a=Jn(d,b,s,y);d=c?a:0-a|0;b=e+d|0;e=N;a=(c?e:0-((0>>0)+e|0)|0)+m|0;R=n,S=Kn(b,b>>>0>>0?a+1|0:a,t,o),i[R+8>>2]=S}O=(k|0)!=0}L=f+80|0;return O}function yi(a,b,c,d){var e=0,f=0,o=0,q=0,r=0,s=p(0),t=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=h[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}e=i[b>>2];if(l[b+4>>2]>0){break b}i[(f<<2)+d>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}e=i[b>>2];if(l[b+4>>2]>0){break b}i[(f<<2)+d>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}r=(f<<2)+d|0;s=m[b>>2];e:{if(s=p(0)){e=~~s>>>0;break e}e=0}i[r>>2]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}r=(f<<2)+d|0;t=n[b>>3];f:{if(t<4294967296&t>=0){e=~~t>>>0;break f}e=0}i[r>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Jn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}tn((e<<2)+d|0,0,c-e<<2)}return q}return 0}tn((e<<2)+d|0,0,c-e<<2);return 1}function mg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,p=0,q=0;m=L-16|0;L=m;a:{b:{c=i[a+144>>2];c=k[(O[i[i[c>>2]+32>>2]](c)|0)+36>>1];if((c<<24|c<<8&16711680)>>>16>>>0<=513){c=i[a+4>>2];i[a+40>>2]=i[a>>2];i[a+44>>2]=c;e=a+32|0;c=e;d=i[c+4>>2];i[a+72>>2]=i[c>>2];i[a+76>>2]=d;d=i[a+28>>2];c=a- -64|0;i[c>>2]=i[a+24>>2];i[c+4>>2]=d;c=i[a+20>>2];i[a+56>>2]=i[a+16>>2];i[a+60>>2]=c;c=i[a+12>>2];i[a+48>>2]=i[a+8>>2];i[a+52>>2]=c;c=a+40|0;if(!Eh(c,1,m+8|0)){break b}d=i[c+4>>2];i[a>>2]=i[c>>2];i[a+4>>2]=d;d=i[c+36>>2];i[e>>2]=i[c+32>>2];i[e+4>>2]=d;e=i[c+28>>2];i[a+24>>2]=i[c+24>>2];i[a+28>>2]=e;d=i[c+20>>2];g=d;e=i[c+16>>2];i[a+16>>2]=e;i[a+20>>2]=d;d=i[c+12>>2];f=d;c=i[c+8>>2];i[a+8>>2]=c;i[a+12>>2]=d;d=e;h=c-d|0;n=i[m+12>>2];c=f-((c>>>0>>0)+g|0)|0;d=i[m+8>>2];if((n|0)==(c|0)&d>>>0>h>>>0|n>>>0>c>>>0){break b}c=g+n|0;e=d+e|0;if(e>>>0>>0){c=c+1|0}i[a+16>>2]=e;i[a+20>>2]=c}c:{if(k[a+38>>1]<=513){c=i[a+4>>2];i[a+96>>2]=i[a>>2];i[a+100>>2]=c;e=a+32|0;c=e;d=i[c+4>>2];i[a+128>>2]=i[c>>2];i[a+132>>2]=d;d=a+24|0;c=d;f=i[c+4>>2];i[a+120>>2]=i[c>>2];i[a+124>>2]=f;f=a+16|0;c=f;g=i[c+4>>2];i[a+112>>2]=i[c>>2];i[a+116>>2]=g;g=a+8|0;c=g;h=i[c+4>>2];i[a+104>>2]=i[c>>2];i[a+108>>2]=h;c=a+96|0;if(!Eh(c,1,m+8|0)){break b}h=i[c+4>>2];i[a>>2]=i[c>>2];i[a+4>>2]=h;h=i[c+36>>2];i[e>>2]=i[c+32>>2];i[e+4>>2]=h;e=i[c+28>>2];i[d>>2]=i[c+24>>2];i[d+4>>2]=e;d=i[c+20>>2];h=d;e=i[c+16>>2];i[f>>2]=e;i[f+4>>2]=d;d=i[c+12>>2];f=d;c=i[c+8>>2];i[g>>2]=c;i[g+4>>2]=d;d=e;g=c-d|0;n=i[m+12>>2];d=f-((c>>>0>>0)+h|0)|0;c=i[m+8>>2];if((n|0)==(d|0)&c>>>0>g>>>0|n>>>0>d>>>0){break b}f=h+n|0;e=c+e|0;if(e>>>0>>0){f=f+1|0}i[a+16>>2]=e;i[a+20>>2]=f;break c}f=0;if(!Ce(a+80|0,a)){break a}}f=0;if(!ag(a)){break a}c=i[a+4>>2];i[b>>2]=i[a>>2];i[b+4>>2]=c;c=i[a+36>>2];i[b+32>>2]=i[a+32>>2];i[b+36>>2]=c;c=i[a+28>>2];i[b+24>>2]=i[a+24>>2];i[b+28>>2]=c;c=i[a+20>>2];i[b+16>>2]=i[a+16>>2];i[b+20>>2]=c;c=i[a+12>>2];i[b+8>>2]=i[a+8>>2];i[b+12>>2]=c;c=i[a+144>>2];c=k[(O[i[i[c>>2]+32>>2]](c)|0)+36>>1];d:{if((c<<24|c<<8&16711680)>>>16>>>0<=513){c=i[a+144>>2];e:{if(j[(O[i[i[c>>2]+32>>2]](c)|0)+36|0]<=1){d=i[b+12>>2];c=i[b+20>>2];g=i[b+16>>2];e=g+4|0;if(e>>>0<4){c=c+1|0}h=e;e=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=g+i[b>>2]|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[m+8>>2]=c;i[b+16>>2]=h;i[b+20>>2]=e;break e}if(!Rf(1,m+8|0,b)){break a}c=i[m+8>>2]}d=c;c=i[a+152>>2];if(d>>>0>=c>>>0){break a}g=i[b+16>>2];d=i[b+12>>2];e=i[b+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[b+8>>2]<=g>>>0:0){break a}h=j[g+i[b>>2]|0];g=g+1|0;if(g>>>0<1){e=e+1|0}d=b;i[d+16>>2]=g;i[d+20>>2]=e;if(h){break a}i[a+176>>2]=2;i[a+180>>2]=7;break d}i[a+176>>2]=2;i[a+180>>2]=7;c=i[a+152>>2]}if((c|0)<0){break a}i[m+8>>2]=0;f=2;g=i[a+156>>2];d=i[a+160>>2]-g>>2;f:{if(c>>>0>d>>>0){Va(a+156|0,c-d|0,m+8|0);f=i[a+176>>2];e=i[a+180>>2];break f}e=7;if(c>>>0>=d>>>0){break f}i[a+160>>2]=g+(c<<2)}g=a+184|0;e=(e-f|0)+1|0;c=i[a+188>>2];f=i[a+184>>2];d=(c-f|0)/12|0;g:{if(e>>>0>d>>>0){og(g,e-d|0);e=i[a+188>>2];break g}if(e>>>0>=d>>>0){e=c;break g}e=f+o(e,12)|0;if((e|0)!=(c|0)){while(1){d=c+ -12|0;f=i[d>>2];if(f){i[c+ -8>>2]=f;qn(f)}c=d;if((c|0)!=(e|0)){continue}break}}i[a+188>>2]=e}h=a+196|0;c=i[a+184>>2];d=(e-c|0)/12|0;n=i[a+196>>2];f=i[a+200>>2]-n>>2;h:{if(d>>>0>f>>>0){Ta(h,d-f|0);c=i[a+184>>2];e=i[a+188>>2];break h}if(d>>>0>=f>>>0){break h}i[a+200>>2]=n+(d<<2)}f=1;if((c|0)==(e|0)){break a}c=0;while(1){if(!Rf(1,m+8|0,b)){break b}d=i[m+8>>2];e=i[a+148>>2];if(d>>>0>(i[e+4>>2]-i[e>>2]>>2>>>0)/3>>>0){break b}if(d){e=i[g>>2];q=o(c,12);f=e+q|0;n=i[f>>2];p=i[f+4>>2]-n>>2;i:{if(d>>>0>p>>>0){Ae(f,d-p|0);e=i[g>>2];break i}if(d>>>0>=p>>>0){break i}i[f+4>>2]=(d<<2)+n}Se(d,1,b,i[e+q>>2]);i[i[h>>2]+(c<<2)>>2]=d}f=1;c=c+1|0;if(c>>>0<(i[a+188>>2]-i[a+184>>2]|0)/12>>>0){continue}break}break a}f=0}L=m+16|0;return f}function Ig(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;a:{b:{c:{d:{e:{f:{g:{if(i[a+92>>2]==i[a+88>>2]){break g}e=i[a+52>>2];d=i[a+56>>2];h:{if((e|0)!=(d|0)){i[e>>2]=b;i[a+52>>2]=e+4;break h}j=i[a+48>>2];h=e-j|0;f=h>>2;g=f+1|0;if(g>>>0>=1073741824){break a}c=d-j|0;d=c>>1;c=c>>2>>>0<536870911?d>>>0>>0?g:d:1073741823;e=0;i:{if(!c){break i}if(c>>>0>=1073741824){break b}e=Gm(c<<2)}d=e+(f<<2)|0;i[d>>2]=b;c=e+(c<<2)|0;d=d+4|0;if((h|0)>=1){sn(e,j,h)}i[a+56>>2]=c;i[a+52>>2]=d;i[a+48>>2]=e;if(!j){break h}qn(j)}i[a+84>>2]=0;d=-1;e=-1;j:{if((b|0)==-1){break j}f=i[a+4>>2];c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){d=i[i[f>>2]+(c<<2)>>2]}c=((b>>>0)%3|0?-1:2)+b|0;if((c|0)==-1){break j}e=i[i[f>>2]+(c<<2)>>2]}c=i[a+36>>2];h=c+(d>>>3&536870908)|0;g=i[h>>2];f=1<<(d&31);if(!(g&f)){i[h>>2]=f|g;f=a+8|0;if((b|0)!=-1){c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0}else{c=-1}Jg(f,d,c);c=i[a+36>>2]}f=(e>>>3&536870908)+c|0;c=i[f>>2];d=1<<(e&31);if(!(c&d)){i[f>>2]=c|d;c=a+8|0;d=-1;k:{if((b|0)==-1){break k}d=b+ -1|0;if((b>>>0)%3|0){break k}d=b+2|0}Jg(c,e,d)}d=-1;d=(b|0)!=-1?i[i[i[a+4>>2]>>2]+(b<<2)>>2]:d;f=i[a+36>>2]+(d>>>3&536870908)|0;c=i[f>>2];e=1<<(d&31);if(!(c&e)){i[f>>2]=c|e;Jg(a+8|0,d,b)}c=i[a+84>>2];if((c|0)>2){break g}q=a+8|0;while(1){b=o(c,12)+a|0;d=b+52|0;e=i[d>>2];if((e|0)==i[b+48>>2]){c=c+1|0;if((c|0)!=3){continue}break g}e=e+ -4|0;b=i[e>>2];i[d>>2]=e;i[a+84>>2]=c;if((b|0)==-1){break g}d=i[a+24>>2];e=(b>>>0)/3|0;l:{if(i[d+(e>>>3&268435452)>>2]>>>(e&31)&1){break l}m:{while(1){g=(b>>>0)/3|0;e=(g>>>3&268435452)+d|0;i[e>>2]=i[e>>2]|1<<(g&31);d=-1;d=(b|0)!=-1?i[i[i[a+4>>2]>>2]+(b<<2)>>2]:d;f=i[a+36>>2]+(d>>>3&536870908)|0;c=i[f>>2];e=1<<(d&31);if(!(c&e)){i[f>>2]=c|e;Jg(q,d,b)}if((b|0)==-1){break m}h=i[a+4>>2];e=-1;d=-1;c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){d=i[i[h+12>>2]+(c<<2)>>2]}b=(b-o(g,3)|0?-1:2)+b|0;if((b|0)!=-1){e=i[i[h+12>>2]+(b<<2)>>2]}g=(e|0)==-1;f=(e>>>0)/3|0;c=(d>>>0)/3|0;n:{o:{p:{q:{b=(d|0)==-1;if(!b){b=b?-1:c;b=i[i[a+24>>2]+(b>>>3&536870908)>>2]&1<<(b&31);if(g){break q}p=(b|0)!=0;break p}p=1;if(!g){break p}break m}if(!b){break o}break m}b=g?-1:f;r:{if(i[i[a+24>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){break r}b=0;c=i[i[h>>2]+(e<<2)>>2];if(!(i[i[a+36>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1)){b=i[a+88>>2]+(c<<2)|0;c=i[b>>2];i[b>>2]=c+1;b=(c|0)<1?2:1}if(!(!p|(b|0)>i[a+84>>2])){b=e;d=i[a+24>>2];continue}c=o(b,12)+a|0;k=c+52|0;g=i[k>>2];n=c+56|0;f=i[n>>2];s:{if((g|0)!=(f|0)){i[g>>2]=e;i[k>>2]=g+4;break s}j=c+48|0;h=i[j>>2];l=g-h|0;c=l>>2;m=c+1|0;if(m>>>0>=1073741824){break f}r=c<<2;g=f-h|0;f=g>>1;f=g>>2>>>0<536870911?f>>>0>>0?m:f:1073741823;c=0;t:{if(!f){break t}if(f>>>0>=1073741824){break e}c=Gm(f<<2)}g=r+c|0;i[g>>2]=e;f=c+(f<<2)|0;e=g+4|0;if((l|0)>=1){sn(c,h,l)}i[j>>2]=c;i[k>>2]=e;i[n>>2]=f;if(!h){break s}qn(h)}if(i[a+84>>2]<=(b|0)){break r}i[a+84>>2]=b}if(p){break m}b=-1;if((d|0)==-1){break n}}b=i[i[i[a+4>>2]>>2]+(d<<2)>>2]}e=0;if(!(i[i[a+36>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1)){b=i[a+88>>2]+(b<<2)|0;e=i[b>>2];i[b>>2]=e+1;e=(e|0)<1?2:1}if((e|0)<=i[a+84>>2]){b=d;d=i[a+24>>2];continue}break}b=o(e,12)+a|0;l=b+52|0;f=i[l>>2];j=b+56|0;c=i[j>>2];u:{if((f|0)!=(c|0)){i[f>>2]=d;i[l>>2]=f+4;break u}h=b+48|0;k=i[h>>2];m=f-k|0;g=m>>2;n=g+1|0;if(n>>>0>=1073741824){break d}f=c-k|0;c=f>>1;c=f>>2>>>0<536870911?c>>>0>>0?n:c:1073741823;b=0;v:{if(!c){break v}if(c>>>0>=1073741824){break c}b=Gm(c<<2)}f=b+(g<<2)|0;i[f>>2]=d;c=b+(c<<2)|0;d=f+4|0;if((m|0)>=1){sn(b,k,m)}i[h>>2]=b;i[l>>2]=d;i[j>>2]=c;if(!k){break u}qn(k)}c=i[a+84>>2];if((c|0)<=(e|0)){break l}i[a+84>>2]=e;c=e;break l}c=i[a+84>>2]}if((c|0)<3){continue}break}}return 1}Vm();x()}Da(12220);x()}Vm();x()}Da(12220);x()}Da(12220);x()}Vm();x()}function If(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=L-80|0;L=e;a:{b:{n=i[a+4>>2];c=i[n+32>>2];u=i[c+8>>2];q=i[c+16>>2];t=i[c+12>>2];d=t;h=i[c+20>>2];l=h;c:{if((d|0)<(l|0)?1:(d|0)<=(l|0)?u>>>0<=q>>>0:0){break c}r=i[c>>2];m=j[r+q|0];d=h;p=q+1|0;if(p>>>0<1){d=d+1|0}l=c;i[c+16>>2]=p;i[c+20>>2]=d;if((t|0)<(d|0)?1:(t|0)<=(d|0)?u>>>0<=p>>>0:0){break c}p=j[p+r|0];d=h;v=q+2|0;if(v>>>0<2){d=d+1|0}i[c+16>>2]=v;i[l+20>>2]=d;l=m<<24>>24;d:{if((l|0)>=0){s=i[a+216>>2];if((i[a+220>>2]-s|0)/144>>>0<=m>>>0){break c}s=s+o(m,144)|0;if(i[s>>2]<=-1){break d}break c}if(i[a+212>>2]>-1){break c}s=a+212|0}i[s>>2]=b;e:{f:{s=k[n+36>>1];g:{if((s<<24|s<<8&16711680)>>>16>>>0>=258){if((t|0)<(d|0)?1:(t|0)<=(d|0)?u>>>0<=v>>>0:0){break c}d=j[r+v|0];q=q+3|0;if(q>>>0<3){h=h+1|0}i[c+16>>2]=q;i[c+20>>2]=h;if(d>>>0>1){break c}if(!p){break g}if((d|0)==1){break c}break f}if(p){break f}d=0}if((l|0)<=-1){c=a+184|0}else{c=i[a+216>>2]+o(m,144)|0;g[c+100|0]=0;c=c+104|0}h:{i:{switch(d|0){case 0:Jf(e+16|0,a,c);break h;case 1:break i;default:break c}}Kf(e+16|0,a,c)}c=i[e+16>>2];if(!c){break c}break e}if((l|0)<0){break c}h=i[n+44>>2];f=i[a+216>>2];c=Gm(80);i[c+12>>2]=0;i[c+16>>2]=0;i[c>>2]=13076;i[c+4>>2]=0;i[c+76>>2]=0;i[c+68>>2]=h;i[c+64>>2]=0;i[c+56>>2]=0;i[c+60>>2]=0;i[c+8>>2]=11956;d=c+20|0;i[d>>2]=0;i[d+4>>2]=0;q=c+28|0;l=q;i[l>>2]=0;i[l+4>>2]=0;i[c+36>>2]=0;i[c+40>>2]=0;l=c+44|0;i[l>>2]=0;i[l+4>>2]=0;i[c+52>>2]=0;f=f+o(m,144)|0;m=f+104|0;i[c+72>>2]=m;t=e+56|0;n=t;i[n>>2]=0;i[n+4>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;n=e+40|0;i[n>>2]=0;i[n+4>>2]=0;u=e+32|0;r=u;i[r>>2]=0;i[r+4>>2]=0;r=e+24|0;p=r;i[p>>2]=0;i[p+4>>2]=0;i[e+72>>2]=0;i[e+64>>2]=0;i[e+68>>2]=0;i[e+16>>2]=11956;p=f+4|0;i[e+20>>2]=p;f=i[f+68>>2];v=i[f>>2];f=i[f+4>>2];g[e+79|0]=0;Lf(n,(f-v>>2>>>0)/3|0,e+79|0);f=i[e+20>>2];n=i[f+56>>2];f=i[f+52>>2];g[e+79|0]=0;Lf(e+52|0,n-f>>2,e+79|0);i[e+36>>2]=c;i[u>>2]=h;h=e+28|0;i[h>>2]=m;i[r>>2]=p;i[q>>2]=c;f=i[h+4>>2];i[d>>2]=i[h>>2];i[d+4>>2]=f;h=i[e+24>>2];i[c+12>>2]=i[e+20>>2];i[c+16>>2]=h;h=c;f=i[e+44>>2];if(f){d=c+32|0;j:{if(f>>>0<=i[c+40>>2]<<5>>>0){m=f+ -1>>>5|0;f=i[d>>2];break j}d=i[d>>2];if(d){qn(d);i[c+40>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;f=i[e+44>>2]}if((f|0)<=-1){break b}m=f+ -1>>>5|0;d=m+1|0;f=Gm(d<<2);i[c+40>>2]=d;i[c+36>>2]=0;i[c+32>>2]=f}un(f,i[e+40>>2],(m<<2)+4|0);d=i[e+44>>2]}else{d=0}i[h+36>>2]=d;h=c;f=i[t>>2];if(f){k:{if(f>>>0<=i[c+52>>2]<<5>>>0){d=f+ -1>>>5|0;f=i[l>>2];break k}d=i[l>>2];if(d){qn(d);i[c+52>>2]=0;i[c+44>>2]=0;i[c+48>>2]=0;f=i[e+56>>2]}if((f|0)<=-1){break a}d=f+ -1>>>5|0;l=d+1|0;f=Gm(l<<2);i[c+52>>2]=l;i[c+48>>2]=0;i[c+44>>2]=f}un(f,i[e+52>>2],(d<<2)+4|0);l=i[e+56>>2]}else{l=0}i[h+48>>2]=l;Oa(c+56|0,i[e+64>>2],i[e+68>>2]);i[e+16>>2]=11956;h=i[e+64>>2];if(h){i[e+68>>2]=h;qn(h)}i[e+16>>2]=12208;h=i[e+52>>2];if(h){qn(h)}h=i[e+40>>2];if(!h){break e}qn(h)}h=Gm(64);i[e+8>>2]=c;bc(h,e+8|0);c=i[e+8>>2];i[e+8>>2]=0;if(c){O[i[i[c>>2]+4>>2]](c)}if((b|0)>=0){a=i[a+4>>2];f=a+8|0;c=i[a+12>>2];m=i[a+8>>2];d=c-m>>2;l:{if((d|0)>(b|0)){break l}l=b+1|0;if(d>>>0<=b>>>0){Mf(f,l-d|0);break l}if(l>>>0>=d>>>0){break l}l=m+(l<<2)|0;if((l|0)!=(c|0)){while(1){c=c+ -4|0;d=i[c>>2];i[c>>2]=0;if(d){O[i[i[d>>2]+4>>2]](d)}if((c|0)!=(l|0)){continue}break}}i[a+12>>2]=l}b=i[f>>2]+(b<<2)|0;a=i[b>>2];i[b>>2]=h;f=1;if(!a){break c}O[i[i[a>>2]+4>>2]](a);break c}O[i[i[h>>2]+4>>2]](h);f=0}L=e+80|0;return f|0}Vm();x()}Vm();x()}function Kc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){Ta(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}g=0;d=(e&1073741823)!=(e|0)?-1:e<<2;n=tn(Gm(d),0,d);s=tn(Gm(d),0,d);h=i[a+8>>2];b:{if((h|0)<1){break b}while(1){d=g<<2;f=i[d+n>>2];h=i[a+16>>2];c:{if((f|0)>(h|0)){k=i[a+32>>2];i[d+k>>2]=h;break c}k=i[a+32>>2];d=d+k|0;h=i[a+12>>2];if((f|0)<(h|0)){i[d>>2]=h;break c}i[d>>2]=f}g=g+1|0;h=i[a+8>>2];if((g|0)<(h|0)){continue}break}if((h|0)<1){break b}d=0;while(1){g=d<<2;f=g+c|0;g=i[b+g>>2]+i[g+k>>2]|0;i[f>>2]=g;d:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break d}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;h=i[a+8>>2];if((d|0)<(h|0)){continue}break}}d=i[a+56>>2];t=i[d>>2];d=i[d+4>>2]-t|0;if((d|0)>=5){p=i[a+48>>2];d=d>>2;v=(d|0)>2?d:2;w=d>>>0>1?d:1;y=e<<2;z=i[a+52>>2];m=1;while(1){e:{f:{g:{if((m|0)!=(w|0)){f=i[(m<<2)+t>>2];u=(e|0)<1;if(!u){tn(n,0,y)}if((f|0)==-1){f=o(e,m);break f}A=i[p>>2];k=0;d=f;while(1){h:{if(i[A+(d>>>3&536870908)>>2]>>>(d&31)&1){break h}g=i[i[i[p+64>>2]+12>>2]+(d<<2)>>2];if((g|0)==-1){break h}l=i[z>>2];j=i[p+28>>2];r=i[l+(i[j+(g<<2)>>2]<<2)>>2];if((r|0)>=(m|0)){break h}q=g+1|0;q=i[l+(i[j+(((q>>>0)%3|0?q:g+ -2|0)<<2)>>2]<<2)>>2];if((q|0)>=(m|0)){break h}g=i[l+(i[j+(g+((g>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((g|0)>=(m|0)){break h}i:{if(u){break i}j=o(e,g);l=o(e,q);r=o(e,r);g=0;while(1){i[s+(g<<2)>>2]=(i[(g+j<<2)+c>>2]+i[(g+l<<2)+c>>2]|0)-i[(g+r<<2)+c>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}g=0;if((e|0)<=0){break i}while(1){j=g<<2;l=j+n|0;i[l>>2]=i[l>>2]+i[j+s>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}k=k+1|0}g=-1;d=((d>>>0)%3|0?-1:2)+d|0;j:{if((d|0)==-1|i[i[p>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1){break j}d=i[i[i[p+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break j}if((d>>>0)%3|0){g=d+ -1|0;break j}g=d+2|0}d=(f|0)==(g|0)?-1:g;if((d|0)!=-1){continue}break}f=o(e,m);if(!k){break f}g=0;if((e|0)<=0){break g}while(1){d=(g<<2)+n|0;i[d>>2]=i[d>>2]/(k|0);g=g+1|0;if((g|0)!=(e|0)){continue}break}break g}Wm();x()}if((h|0)<1){break e}g=0;while(1){d=g<<2;h=i[d+n>>2];j=i[a+16>>2];k:{if((h|0)>(j|0)){k=i[a+32>>2];i[d+k>>2]=j;break k}k=i[a+32>>2];d=d+k|0;j=i[a+12>>2];if((h|0)<(j|0)){i[d>>2]=j;break k}i[d>>2]=h}g=g+1|0;h=i[a+8>>2];if((g|0)<(h|0)){continue}break}d=0;if((h|0)<1){break e}f=f<<2;j=f+c|0;l=b+f|0;while(1){g=d<<2;f=g+j|0;g=i[g+l>>2]+i[g+k>>2]|0;i[f>>2]=g;l:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break l}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;h=i[a+8>>2];if((d|0)<(h|0)){continue}break}break e}if((h|0)<1){break e}j=(o(m+ -1|0,e)<<2)+c|0;g=0;while(1){d=g<<2;h=i[d+j>>2];l=i[a+16>>2];m:{if((h|0)>(l|0)){k=i[a+32>>2];i[d+k>>2]=l;break m}k=i[a+32>>2];d=d+k|0;l=i[a+12>>2];if((h|0)<(l|0)){i[d>>2]=l;break m}i[d>>2]=h}g=g+1|0;h=i[a+8>>2];if((g|0)<(h|0)){continue}break}d=0;if((h|0)<1){break e}f=f<<2;j=f+c|0;l=b+f|0;while(1){g=d<<2;f=g+j|0;g=i[g+l>>2]+i[g+k>>2]|0;i[f>>2]=g;n:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break n}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;h=i[a+8>>2];if((d|0)<(h|0)){continue}break}}m=m+1|0;if((v|0)!=(m|0)){continue}break}}qn(s);qn(n);return 1}function Kd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=L-96|0;L=f;e=i[a+16>>2];g[f+92|0]=1;i[f+88>>2]=b;i[f+84>>2]=b;i[f+80>>2]=e;d=-1;d=(b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:d;h=i[a+20>>2];e=i[h>>2];a:{b:{if(i[h+4>>2]-e>>2>>>0>d>>>0){e=i[i[a+8>>2]+(i[e+(d<<2)>>2]<<2)>>2];d=i[a+4>>2];if(!j[d+84|0]){e=i[i[d+68>>2]+(e<<2)>>2]}i[f+72>>2]=0;i[f+76>>2]=0;h=f- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;id(d,e,g[d+24|0],f+56|0);if((b|0)!=-1){d=b+1|0;h=(d>>>0)%3|0?d:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;n=f+48|0;o=f+40|0;while(1){e=h;d=m;c:{if(!i[a+28>>2]){break c}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break c}d=b+2|0}b=-1;b=(e|0)!=-1?i[i[i[a+16>>2]>>2]+(e<<2)>>2]:b;k=i[a+20>>2];e=i[k>>2];if(i[k+4>>2]-e>>2>>>0<=b>>>0){break b}e=i[i[a+8>>2]+(i[e+(b<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}i[n>>2]=0;i[n+4>>2]=0;i[o>>2]=0;i[o+4>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;id(b,e,g[b+24|0],f+32|0);b=-1;b=(d|0)!=-1?i[i[i[a+16>>2]>>2]+(d<<2)>>2]:b;e=i[a+20>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0<=b>>>0){break a}d=i[i[a+8>>2]+(i[d+(b<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;k=f+16|0;i[k>>2]=0;i[k+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;id(b,d,g[b+24|0],f+8|0);d=i[f+8>>2];b=i[f+56>>2];s=d-b|0;y=i[f+60>>2];t=i[f+12>>2]-(y+(d>>>0>>0)|0)|0;z=i[f+40>>2];d=i[f+64>>2];D=z-d|0;A=i[f+68>>2];z=i[f+44>>2]-(A+(z>>>0>>0)|0)|0;B=Jn(s,t,D,z);C=l-B|0;u=u-(N+(l>>>0>>0)|0)|0;l=i[k>>2];B=l-d|0;k=i[k+4>>2]-((l>>>0>>0)+A|0)|0;l=i[f+32>>2];A=l-b|0;y=i[f+36>>2]-((l>>>0>>0)+y|0)|0;d=Jn(B,k,A,y);l=d+C|0;b=N+u|0;b=l>>>0>>0?b+1|0:b;u=b;E=p;w=s;F=t;b=i[f+48>>2];p=i[f+72>>2];d=p;t=b-d|0;s=i[f+76>>2];C=i[f+52>>2]-(s+(b>>>0>>0)|0)|0;w=Jn(w,F,t,C);d=E+w|0;b=N+q|0;b=d>>>0>>0?b+1|0:b;q=i[e>>2];w=q-p|0;e=i[e+4>>2]-((q>>>0

>>0)+s|0)|0;q=Jn(w,e,A,y);p=d-q|0;q=b-(N+(d>>>0>>0)|0)|0;b=Jn(B,k,t,C);d=r-b|0;b=v-(N+(r>>>0>>0)|0)|0;v=Jn(w,e,D,z);r=v+d|0;b=N+b|0;b=r>>>0>>0?b+1|0:b;v=b;Ld(f+80|0);b=i[f+88>>2];if((b|0)!=-1){continue}break}}d=v;b=d>>31;d=d>>31;h=b;b=v+b|0;m=d+r|0;if(m>>>0>>0){b=b+1|0}o=d^m;n=b^h;t=-1;e=2147483647;d=q;b=d>>31;d=d>>31;m=b;b=q+b|0;k=d+p|0;if(k>>>0>>0){b=b+1|0}d=d^k;b=b^m;h=b;m=d^-1;b=b^2147483647;d:{if(!i[a+28>>2]){if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break d}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}d=b;h=a;b=u;e=b>>31;o=b>>31;b=o+b|0;k=e+l|0;if(k>>>0>>0){b=b+1|0}e=e^k;m=b^o;n=e+h|0;b=n;h=m^2147483647;a=(h|0)==(d|0)&a>>>0>(e^-1)>>>0|d>>>0>h>>>0;d=a?0:0;b=a?-1:b;a=b;if((b|0)<536870912?1:(b|0)<=536870912?d>>>0<1:0){break d}b=(a|0)/536870912|0;a=b;b=b>>31;l=Kn(l,u,a,b);p=Kn(p,q,a,b);r=Kn(r,v,a,b);break d}e:{if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break e}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}m=b;n=a;d=b;h=u;b=h>>31;h=h>>31;k=b;b=u+b|0;s=h+l|0;if(s>>>0>>0){b=b+1|0}h=h^s;b=b^k;o=b;b=b^2147483647;if((b|0)==(d|0)&n>>>0>(h^-1)>>>0|d>>>0>b>>>0){break e}b=m+o|0;d=a+h|0;if(d>>>0>>0){b=b+1|0}t=d;e=b;if(!b&d>>>0<536870913|b>>>0<0){break d}}a=(e&536870911)<<3|t>>>29;b=e>>>29|0;l=Kn(l,u,a,b);p=Kn(p,q,a,b);r=Kn(r,v,a,b)}i[c+8>>2]=l;i[c+4>>2]=p;i[c>>2]=r;L=f+96|0;return}Wm();x()}Wm();x()}Wm();x()}function zc(a,b,c,d,e,f){var g=0,h=0,j=0,k=0,l=0;a:{b:{c:{d:{e:{f:{g:{switch(b+ -1|0){case 0:b=Gm(60);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break f}c=Gm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=sn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=2380;break a;case 1:b=Gm(60);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break e}c=Gm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=sn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=3144;break a;case 3:b=Gm(112);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break d}c=Gm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=sn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=3380;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=0;i[b+92>>2]=0;i[b+96>>2]=0;i[b+100>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;break a;case 2:b=Gm(92);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];g=i[d+12>>2];h=i[d+16>>2];j=i[d+20>>2];k=i[d>>2];l=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=h;i[b+28>>2]=j;i[b+16>>2]=c;i[b+20>>2]=g;i[b+8>>2]=k;i[b+12>>2]=l;h=i[d+24>>2];g=i[d+28>>2]-h|0;if(g){d=g>>2;if(d>>>0>=1073741824){break c}c=Gm(g);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((g|0)>=1){c=sn(c,h,g)+g|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=3628;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=f;break a;case 4:b=Gm(104);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break b}c=Gm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=sn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=e+8|0;d=i[c>>2];f=i[c+4>>2];i[b+84>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=3856;i[b+52>>2]=d;i[b+56>>2]=f;d=i[e+4>>2];i[b+88>>2]=i[e>>2];i[b+92>>2]=d;d=i[c+4>>2];i[b+96>>2]=i[c>>2];i[b+100>>2]=d;break a;case 5:g=Gm(128);Bc(g,c,d,e);break;default:break g}}i[a>>2]=g;return}Vm();x()}Vm();x()}Vm();x()}Vm();x()}Vm();x()}i[a>>2]=b}function Ac(a,b,c,d,e,f){var g=0,h=0,j=0,k=0,l=0;a:{b:{c:{d:{e:{f:{g:{switch(b+ -1|0){case 0:b=Gm(60);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break f}c=Gm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=sn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=4748;break a;case 1:b=Gm(60);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break e}c=Gm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=sn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=5172;break a;case 3:b=Gm(112);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break d}c=Gm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=sn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=5396;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=0;i[b+92>>2]=0;i[b+96>>2]=0;i[b+100>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;break a;case 2:b=Gm(92);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];g=i[d+12>>2];h=i[d+16>>2];j=i[d+20>>2];k=i[d>>2];l=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=h;i[b+28>>2]=j;i[b+16>>2]=c;i[b+20>>2]=g;i[b+8>>2]=k;i[b+12>>2]=l;h=i[d+24>>2];g=i[d+28>>2]-h|0;if(g){d=g>>2;if(d>>>0>=1073741824){break c}c=Gm(g);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((g|0)>=1){c=sn(c,h,g)+g|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=5632;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=f;break a;case 4:b=Gm(104);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break b}c=Gm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=sn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=e+8|0;d=i[c>>2];f=i[c+4>>2];i[b+84>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=5848;i[b+52>>2]=d;i[b+56>>2]=f;d=i[e+4>>2];i[b+88>>2]=i[e>>2];i[b+92>>2]=d;d=i[c+4>>2];i[b+96>>2]=i[c>>2];i[b+100>>2]=d;break a;case 5:g=Gm(128);td(g,c,d,e);break;default:break g}}i[a>>2]=g;return}Vm();x()}Vm();x()}Vm();x()}Vm();x()}Vm();x()}i[a>>2]=b}function qd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=L-96|0;L=f;d=i[a+16>>2];g[f+92|0]=1;i[f+88>>2]=b;i[f+84>>2]=b;i[f+80>>2]=d;h=i[a+20>>2];e=i[h>>2];a:{b:{d=i[i[d+28>>2]+(b<<2)>>2];if(i[h+4>>2]-e>>2>>>0>d>>>0){d=i[i[a+8>>2]+(i[e+(d<<2)>>2]<<2)>>2];e=i[a+4>>2];if(!j[e+84|0]){d=i[i[e+68>>2]+(d<<2)>>2]}i[f+72>>2]=0;i[f+76>>2]=0;h=f- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;id(e,d,g[e+24|0],f+56|0);if((b|0)!=-1){d=b+1|0;h=(d>>>0)%3|0?d:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;n=f+48|0;o=f+40|0;while(1){e=h;d=m;c:{if(!i[a+28>>2]){break c}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break c}d=b+2|0}k=i[a+20>>2];b=i[k>>2];e=i[i[i[a+16>>2]+28>>2]+(e<<2)>>2];if(i[k+4>>2]-b>>2>>>0<=e>>>0){break b}e=i[i[a+8>>2]+(i[b+(e<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}i[n>>2]=0;i[n+4>>2]=0;i[o>>2]=0;i[o+4>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;id(b,e,g[b+24|0],f+32|0);e=i[a+20>>2];b=i[e>>2];d=i[i[i[a+16>>2]+28>>2]+(d<<2)>>2];if(i[e+4>>2]-b>>2>>>0<=d>>>0){break a}e=i[i[a+8>>2]+(i[b+(d<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}k=f+24|0;d=k;i[d>>2]=0;i[d+4>>2]=0;r=f+16|0;d=r;i[d>>2]=0;i[d+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;id(b,e,g[b+24|0],f+8|0);d=i[f+8>>2];b=i[f+56>>2];t=d-b|0;y=i[f+60>>2];e=i[f+12>>2]-(y+(d>>>0>>0)|0)|0;z=i[f+40>>2];d=i[f+64>>2];D=z-d|0;A=i[f+68>>2];z=i[f+44>>2]-(A+(z>>>0>>0)|0)|0;B=Jn(t,e,D,z);C=l-B|0;u=u-(N+(l>>>0>>0)|0)|0;l=i[r>>2];B=l-d|0;r=i[r+4>>2]-((l>>>0>>0)+A|0)|0;l=i[f+32>>2];A=l-b|0;y=i[f+36>>2]-((l>>>0>>0)+y|0)|0;d=Jn(B,r,A,y);l=d+C|0;b=N+u|0;b=l>>>0>>0?b+1|0:b;u=b;E=p;w=t;F=e;b=i[f+48>>2];p=i[f+72>>2];d=p;e=b-d|0;t=i[f+76>>2];C=i[f+52>>2]-(t+(b>>>0>>0)|0)|0;w=Jn(w,F,e,C);d=E+w|0;b=N+q|0;b=d>>>0>>0?b+1|0:b;q=i[k>>2];w=q-p|0;k=i[k+4>>2]-((q>>>0

>>0)+t|0)|0;q=Jn(w,k,A,y);p=d-q|0;q=b-(N+(d>>>0>>0)|0)|0;b=Jn(B,r,e,C);d=s-b|0;b=v-(N+(s>>>0>>0)|0)|0;v=Jn(w,k,D,z);s=v+d|0;b=N+b|0;b=s>>>0>>0?b+1|0:b;v=b;sd(f+80|0);b=i[f+88>>2];if((b|0)!=-1){continue}break}}d=v;b=d>>31;d=d>>31;h=b;b=v+b|0;m=d+s|0;if(m>>>0>>0){b=b+1|0}o=d^m;n=b^h;r=-1;e=2147483647;d=q;b=d>>31;d=d>>31;m=b;b=q+b|0;k=d+p|0;if(k>>>0>>0){b=b+1|0}d=d^k;b=b^m;h=b;m=d^-1;b=b^2147483647;d:{if(!i[a+28>>2]){if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break d}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}d=b;h=a;b=u;e=b>>31;o=b>>31;b=o+b|0;k=e+l|0;if(k>>>0>>0){b=b+1|0}e=e^k;m=b^o;n=e+h|0;b=n;h=m^2147483647;a=(h|0)==(d|0)&a>>>0>(e^-1)>>>0|d>>>0>h>>>0;d=a?0:0;b=a?-1:b;a=b;if((b|0)<536870912?1:(b|0)<=536870912?d>>>0<1:0){break d}b=(a|0)/536870912|0;a=b;b=b>>31;l=Kn(l,u,a,b);p=Kn(p,q,a,b);s=Kn(s,v,a,b);break d}e:{if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break e}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}m=b;n=a;d=b;h=u;b=h>>31;h=h>>31;k=b;b=u+b|0;t=h+l|0;if(t>>>0>>0){b=b+1|0}h=h^t;b=b^k;o=b;b=b^2147483647;if((b|0)==(d|0)&n>>>0>(h^-1)>>>0|d>>>0>b>>>0){break e}b=m+o|0;d=a+h|0;if(d>>>0>>0){b=b+1|0}r=d;e=b;if(!b&d>>>0<536870913|b>>>0<0){break d}}a=(e&536870911)<<3|r>>>29;b=e>>>29|0;l=Kn(l,u,a,b);p=Kn(p,q,a,b);s=Kn(s,v,a,b)}i[c+8>>2]=l;i[c+4>>2]=p;i[c>>2]=s;L=f+96|0;return}Wm();x()}Wm();x()}Wm();x()}function vd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0;i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){Ta(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}g=0;d=(e&1073741823)!=(e|0)?-1:e<<2;q=tn(Gm(d),0,d);s=tn(Gm(d),0,d);h=i[a+8>>2];b:{if((h|0)<1){break b}while(1){d=g<<2;f=i[d+q>>2];h=i[a+16>>2];c:{if((f|0)>(h|0)){j=i[a+32>>2];i[d+j>>2]=h;break c}j=i[a+32>>2];d=d+j|0;h=i[a+12>>2];if((f|0)<(h|0)){i[d>>2]=h;break c}i[d>>2]=f}g=g+1|0;h=i[a+8>>2];if((g|0)<(h|0)){continue}break}if((h|0)<1){break b}f=0;while(1){g=f<<2;d=g+c|0;g=i[b+g>>2]+i[g+j>>2]|0;i[d>>2]=g;d:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break d}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;h=i[a+8>>2];if((f|0)<(h|0)){continue}break}}d=i[a+56>>2];t=i[d>>2];d=i[d+4>>2]-t|0;if((d|0)>=5){u=i[a+48>>2];d=d>>2;y=(d|0)>2?d:2;z=d>>>0>1?d:1;A=e<<2;B=i[a+52>>2];m=1;while(1){e:{f:{g:{if((m|0)!=(z|0)){f=i[(m<<2)+t>>2];v=(e|0)<1;if(!v){tn(q,0,A)}if((f|0)==-1){d=o(e,m);break f}l=i[u+12>>2];k=0;d=f;while(1){g=i[l+(d<<2)>>2];h:{if((g|0)==-1){break h}j=-1;r=i[B>>2];n=i[u>>2];w=i[r+(i[n+(g<<2)>>2]<<2)>>2];p=g+1|0;p=(p>>>0)%3|0?p:g+ -2|0;if((p|0)!=-1){p=i[n+(p<<2)>>2]}else{p=-1}g=g+((g>>>0)%3|0?-1:2)|0;if((g|0)!=-1){j=i[n+(g<<2)>>2]}if((w|0)>=(m|0)){break h}g=i[(p<<2)+r>>2];if((g|0)>=(m|0)){break h}j=i[r+(j<<2)>>2];if((j|0)>=(m|0)){break h}i:{if(v){break i}j=o(e,j);n=o(e,g);r=o(e,w);g=0;while(1){i[s+(g<<2)>>2]=(i[(g+j<<2)+c>>2]+i[(g+n<<2)+c>>2]|0)-i[(g+r<<2)+c>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}g=0;if((e|0)<=0){break i}while(1){j=g<<2;n=j+q|0;i[n>>2]=i[n>>2]+i[j+s>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}k=k+1|0}d=((d>>>0)%3|0?-1:2)+d|0;g=-1;j:{if((d|0)==-1){break j}d=i[l+(d<<2)>>2];g=-1;if((d|0)==-1){break j}g=d+ -1|0;if((d>>>0)%3|0){break j}g=d+2|0}d=(f|0)==(g|0)?-1:g;if((d|0)!=-1){continue}break}d=o(e,m);if(!k){break f}g=0;if((e|0)<=0){break g}while(1){f=(g<<2)+q|0;i[f>>2]=i[f>>2]/(k|0);g=g+1|0;if((g|0)!=(e|0)){continue}break}break g}Wm();x()}if((h|0)<1){break e}g=0;while(1){f=g<<2;h=i[f+q>>2];k=i[a+16>>2];k:{if((h|0)>(k|0)){j=i[a+32>>2];i[f+j>>2]=k;break k}j=i[a+32>>2];f=f+j|0;k=i[a+12>>2];if((h|0)<(k|0)){i[f>>2]=k;break k}i[f>>2]=h}g=g+1|0;h=i[a+8>>2];if((g|0)<(h|0)){continue}break}f=0;if((h|0)<1){break e}d=d<<2;k=d+c|0;l=b+d|0;while(1){g=f<<2;d=g+k|0;g=i[g+l>>2]+i[g+j>>2]|0;i[d>>2]=g;l:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break l}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;h=i[a+8>>2];if((f|0)<(h|0)){continue}break}break e}if((h|0)<1){break e}k=(o(m+ -1|0,e)<<2)+c|0;g=0;while(1){f=g<<2;h=i[f+k>>2];l=i[a+16>>2];m:{if((h|0)>(l|0)){j=i[a+32>>2];i[f+j>>2]=l;break m}j=i[a+32>>2];f=f+j|0;l=i[a+12>>2];if((h|0)<(l|0)){i[f>>2]=l;break m}i[f>>2]=h}g=g+1|0;h=i[a+8>>2];if((g|0)<(h|0)){continue}break}f=0;if((h|0)<1){break e}d=d<<2;k=d+c|0;l=b+d|0;while(1){g=f<<2;d=g+k|0;g=i[g+l>>2]+i[g+j>>2]|0;i[d>>2]=g;n:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break n}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;h=i[a+8>>2];if((f|0)<(h|0)){continue}break}}m=m+1|0;if((y|0)!=(m|0)){continue}break}}qn(s);qn(q);return 1}function qn(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;a:{if(!a){break a}d=a+ -8|0;b=i[a+ -4>>2];a=b&-8;f=d+a|0;b:{if(b&1){break b}if(!(b&3)){break a}b=i[d>>2];d=d-b|0;if(d>>>0>>0<=255){e=i[d+8>>2];b=b>>>3|0;c=i[d+12>>2];if((c|0)==(e|0)){j=17332,k=i[4333]&Nn(b),i[j>>2]=k;break b}i[e+12>>2]=c;i[c+8>>2]=e;break b}h=i[d+24>>2];b=i[d+12>>2];c:{if((b|0)!=(d|0)){c=i[d+8>>2];i[c+12>>2]=b;i[b+8>>2]=c;break c}d:{e=d+20|0;c=i[e>>2];if(c){break d}e=d+16|0;c=i[e>>2];if(c){break d}b=0;break c}while(1){g=e;b=c;e=b+20|0;c=i[e>>2];if(c){continue}e=b+16|0;c=i[b+16>>2];if(c){continue}break}i[g>>2]=0}if(!h){break b}e=i[d+28>>2];c=(e<<2)+17636|0;e:{if(i[c>>2]==(d|0)){i[c>>2]=b;if(b){break e}j=17336,k=i[4334]&Nn(e),i[j>>2]=k;break b}i[h+(i[h+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break b}}i[b+24>>2]=h;c=i[d+16>>2];if(c){i[b+16>>2]=c;i[c+24>>2]=b}c=i[d+20>>2];if(!c){break b}i[b+20>>2]=c;i[c+24>>2]=b;break b}b=i[f+4>>2];if((b&3)!=3){break b}i[4335]=a;i[f+4>>2]=b&-2;i[d+4>>2]=a|1;i[a+d>>2]=a;return}if(f>>>0<=d>>>0){break a}b=i[f+4>>2];if(!(b&1)){break a}f:{if(!(b&2)){if((f|0)==i[4339]){i[4339]=d;a=i[4336]+a|0;i[4336]=a;i[d+4>>2]=a|1;if(i[4338]!=(d|0)){break a}i[4335]=0;i[4338]=0;return}if((f|0)==i[4338]){i[4338]=d;a=i[4335]+a|0;i[4335]=a;i[d+4>>2]=a|1;i[a+d>>2]=a;return}a=(b&-8)+a|0;g:{if(b>>>0<=255){c=i[f+8>>2];b=b>>>3|0;e=i[f+12>>2];if((c|0)==(e|0)){j=17332,k=i[4333]&Nn(b),i[j>>2]=k;break g}i[c+12>>2]=e;i[e+8>>2]=c;break g}h=i[f+24>>2];b=i[f+12>>2];h:{if((f|0)!=(b|0)){c=i[f+8>>2];i[c+12>>2]=b;i[b+8>>2]=c;break h}i:{e=f+20|0;c=i[e>>2];if(c){break i}e=f+16|0;c=i[e>>2];if(c){break i}b=0;break h}while(1){g=e;b=c;e=b+20|0;c=i[e>>2];if(c){continue}e=b+16|0;c=i[b+16>>2];if(c){continue}break}i[g>>2]=0}if(!h){break g}e=i[f+28>>2];c=(e<<2)+17636|0;j:{if((f|0)==i[c>>2]){i[c>>2]=b;if(b){break j}j=17336,k=i[4334]&Nn(e),i[j>>2]=k;break g}i[h+((f|0)==i[h+16>>2]?16:20)>>2]=b;if(!b){break g}}i[b+24>>2]=h;c=i[f+16>>2];if(c){i[b+16>>2]=c;i[c+24>>2]=b}c=i[f+20>>2];if(!c){break g}i[b+20>>2]=c;i[c+24>>2]=b}i[d+4>>2]=a|1;i[a+d>>2]=a;if(i[4338]!=(d|0)){break f}i[4335]=a;return}i[f+4>>2]=b&-2;i[d+4>>2]=a|1;i[a+d>>2]=a}if(a>>>0<=255){a=a>>>3|0;b=(a<<3)+17372|0;c=i[4333];a=1<>2]}i[b+8>>2]=d;i[a+12>>2]=d;i[d+12>>2]=b;i[d+8>>2]=a;return}e=31;i[d+16>>2]=0;i[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}i[d+28>>2]=e;g=(e<<2)+17636|0;l:{m:{c=i[4334];b=1<>2]=d;i[d+24>>2]=g;break n}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=i[g>>2];while(1){c=b;if((i[b+4>>2]&-8)==(a|0)){break m}b=e>>>29|0;e=e<<1;g=(c+(b&4)|0)+16|0;b=i[g>>2];if(b){continue}break}i[g>>2]=d;i[d+24>>2]=c}i[d+12>>2]=d;i[d+8>>2]=d;break l}a=i[c+8>>2];i[a+12>>2]=d;i[c+8>>2]=d;i[d+24>>2]=0;i[d+12>>2]=c;i[d+8>>2]=a}a=i[4341]+ -1|0;i[4341]=a;if(a){break a}d=17788;while(1){a=i[d>>2];d=a+8|0;if(a){continue}break}i[4341]=-1}}function Tk(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;i[a+56>>2]=i[a+52>>2];i[a+44>>2]=i[a+40>>2];a:{b:{c:{d=i[a+64>>2];if(i[d+28>>2]!=i[d+24>>2]){n=a+40|0;o=a+52|0;while(1){e=c;k=i[i[d+24>>2]+(m<<2)>>2];d:{if((k|0)==-1){break d}c=i[a+56>>2];b=i[a+60>>2];e:{if((c|0)!=(b|0)){i[c>>2]=e;i[a+56>>2]=c+4;break e}h=i[o>>2];j=c-h|0;f=j>>2;g=f+1|0;if(g>>>0>=1073741824){break c}d=b-h|0;b=d>>1;d=d>>2>>>0<536870911?b>>>0>>0?g:b:1073741823;c=0;f:{if(!d){break f}if(d>>>0>=1073741824){break a}c=Gm(d<<2)}b=c+(f<<2)|0;i[b>>2]=e;d=c+(d<<2)|0;b=b+4|0;if((j|0)>=1){sn(c,h,j)}i[a+60>>2]=d;i[a+56>>2]=b;i[a+52>>2]=c;if(!h){break e}qn(h)}g:{if(!(i[i[a+12>>2]+(m>>>3&536870908)>>2]>>>(m&31)&1)){break g}c=k+1|0;c=(c>>>0)%3|0?c:k+ -2|0;if((c|0)==-1|i[i[a>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break g}b=i[i[i[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)==-1){break g}while(1){c=d+1|0;k=d;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|i[i[a>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break g}b=i[i[i[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)!=-1){continue}break}}i[i[a+28>>2]+(k<<2)>>2]=e;c=i[a+44>>2];b=i[a+48>>2];h:{if((c|0)!=(b|0)){i[c>>2]=k;i[a+44>>2]=c+4;break h}h=i[n>>2];j=c-h|0;f=j>>2;g=f+1|0;if(g>>>0>=1073741824){break b}d=b-h|0;b=d>>1;d=d>>2>>>0<536870911?b>>>0>>0?g:b:1073741823;c=0;i:{if(!d){break i}if(d>>>0>=1073741824){break a}c=Gm(d<<2)}b=c+(f<<2)|0;i[b>>2]=k;d=c+(d<<2)|0;b=b+4|0;if((j|0)>=1){sn(c,h,j)}i[a+48>>2]=d;i[a+44>>2]=b;i[a+40>>2]=c;if(!h){break h}qn(h)}c=e+1|0;b=((k>>>0)%3|0?-1:2)+k|0;if((b|0)==-1){break d}b=i[i[i[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1|(d|0)==(k|0)){break d}while(1){b=d+1|0;b=(b>>>0)%3|0?b:d+ -2|0;if(i[i[a>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){e=i[a+56>>2];b=i[a+60>>2];j:{if((e|0)!=(b|0)){i[e>>2]=c;i[a+56>>2]=e+4;break j}l=i[o>>2];h=e-l|0;g=h>>2;j=g+1|0;if(j>>>0>=1073741824){break c}f=b-l|0;b=f>>1;f=f>>2>>>0<536870911?b>>>0>>0?j:b:1073741823;e=0;k:{if(!f){break k}if(f>>>0>=1073741824){break a}e=Gm(f<<2)}b=e+(g<<2)|0;i[b>>2]=c;f=e+(f<<2)|0;b=b+4|0;if((h|0)>=1){sn(e,l,h)}i[a+60>>2]=f;i[a+56>>2]=b;i[a+52>>2]=e;if(!l){break j}qn(l)}b=c+1|0;e=i[a+44>>2];f=i[a+48>>2];l:{if((e|0)!=(f|0)){i[e>>2]=d;i[a+44>>2]=e+4;break l}j=i[n>>2];l=e-j|0;e=l>>2;h=e+1|0;if(h>>>0>=1073741824){break b}p=e<<2;g=f-j|0;f=g>>1;g=g>>2>>>0<536870911?f>>>0>>0?h:f:1073741823;e=0;m:{if(!g){break m}if(g>>>0>=1073741824){break a}e=Gm(g<<2)}f=p+e|0;i[f>>2]=d;g=e+(g<<2)|0;f=f+4|0;if((l|0)>=1){sn(e,j,l)}i[a+48>>2]=g;i[a+44>>2]=f;i[a+40>>2]=e;if(!j){break l}qn(j)}e=c;c=b}i[i[a+28>>2]+(d<<2)>>2]=e;b=((d>>>0)%3|0?-1:2)+d|0;if((b|0)==-1){break d}b=i[i[i[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1){break d}if((d|0)!=(k|0)){continue}break}}m=m+1|0;d=i[a+64>>2];if(m>>>0>2]-i[d+24>>2]>>2>>>0){continue}break}}return}Vm();x()}Vm();x()}Da(14480);x()}function Zg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(i[i[a+24>>2]+(d>>>3&268435452)>>2]>>>(d&31)&1)){c=i[a+48>>2];i[a+52>>2]=c;a:{if((c|0)!=i[a+56>>2]){i[c>>2]=b;i[a+52>>2]=c+4;break a}e=Gm(4);i[e>>2]=b;f=e+4|0;i[a+56>>2]=f;i[a+52>>2]=f;i[a+48>>2]=e;if(!c){break a}qn(c)}f=i[i[a+4>>2]+28>>2];c=b+1|0;e=(c>>>0)%3|0?c:b+ -2|0;c=i[f+(e<<2)>>2];if((c|0)==-1){return 0}h=(b-o(d,3)|0?-1:2)+b|0;d=i[f+(h<<2)>>2];if((d|0)==-1){return 0}b=i[a+36>>2];f=b+(c>>>3&536870908)|0;g=i[f>>2];j=1<<(c&31);if(!(g&j)){i[f>>2]=g|j;Jg(a+8|0,c,e);b=i[a+36>>2]}b=(d>>>3&536870908)+b|0;c=i[b>>2];e=1<<(d&31);if(!(c&e)){i[b>>2]=c|e;Jg(a+8|0,d,h)}c=i[a+52>>2];if((c|0)==i[a+48>>2]){return 1}l=a+48|0;m=a+8|0;while(1){c=c+ -4|0;b=i[c>>2];d=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}e=i[a+24>>2]+(d>>>3&268435452)|0;f=i[e>>2];d=1<<(d&31);if(f&d){break c}i[e>>2]=d|f;e=i[a+4>>2];c=i[i[e+28>>2]+(b<<2)>>2];if((c|0)==-1){return 0}while(1){d=b;d:{b=i[a+36>>2]+(c>>>3&536870908)|0;f=i[b>>2];h=1<<(c&31);e:{if(f&h){break e}g=i[i[e+40>>2]+(c<<2)>>2];if((g|0)!=-1){f:{j=g+1|0;g=(j>>>0)%3|0?j:g+ -2|0;if((g|0)==-1|i[i[e>>2]+(g>>>3&536870908)>>2]>>>(g&31)&1){break f}e=i[i[i[e+64>>2]+12>>2]+(g<<2)>>2];if((e|0)==-1){break f}i[b>>2]=f|h;Jg(m,c,d);b=e+1|0;if((((b>>>0)%3|0?b:e+ -2|0)|0)==-1){break e}b=-1;e=i[a+4>>2];g:{if((d|0)==-1){break g}c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|i[i[e>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break g}b=i[i[i[e+64>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;g=1<<(c&31);d=i[a+24>>2];j=c>>>5|0;f=i[d+(j<<2)>>2];break d}}i[b>>2]=f|h;Jg(m,c,d)}h:{i:{if((d|0)==-1){break i}e=i[a+4>>2];b=-1;f=d+1|0;f=(f>>>0)%3|0?f:d+ -2|0;c=-1;j:{if((f|0)==-1){break j}c=-1;if(i[i[e>>2]+(f>>>3&536870908)>>2]>>>(f&31)&1){break j}c=i[i[i[e+64>>2]+12>>2]+(f<<2)>>2]}d=d+((d>>>0)%3|0?-1:2)|0;if(!((d|0)==-1|i[i[e>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1)){b=i[i[i[e+64>>2]+12>>2]+(d<<2)>>2]}k=(b|0)==-1;h=k?-1:(b>>>0)/3|0;f=(c>>>0)/3|0;g=(c|0)==-1;if(!g){d=i[a+24>>2];g=g?-1:f;j=g>>>5|0;f=i[d+(j<<2)>>2];g=1<<(g&31);if(!(f&g)){break h}}if(k){break i}g=1<<(h&31);d=i[a+24>>2];j=h>>>5|0;f=i[d+(j<<2)>>2];if(!(g&f)){break d}}c=i[a+52>>2]+ -4|0;i[a+52>>2]=c;break b}if(k){b=c;break d}if(i[(h>>>3&536870908)+d>>2]>>>(h&31)&1){b=c;break d}d=i[a+52>>2];i[d+ -4>>2]=b;h=i[a+56>>2];if((h|0)!=(d|0)){i[d>>2]=c;c=d+4|0;break c}k:{b=d;d=i[l>>2];f=b-d|0;g=f>>2;e=g+1|0;if(e>>>0<1073741824){h=h-d|0;j=h>>1;e=h>>2>>>0<536870911?j>>>0>>0?e:j:1073741823;b=0;l:{if(!e){break l}if(e>>>0>=1073741824){break k}b=Gm(e<<2)}h=b+(g<<2)|0;i[h>>2]=c;e=b+(e<<2)|0;c=h+4|0;if((f|0)>=1){sn(b,d,f)}i[a+56>>2]=e;i[a+52>>2]=c;i[a+48>>2]=b;if(!d){break b}qn(d);c=i[a+52>>2];break b}Vm();x()}Da(12220);x()}i[(j<<2)+d>>2]=f|g;c=i[i[e+28>>2]+(b<<2)>>2];if((c|0)!=-1){continue}break}return 0}i[a+52>>2]=c}if(i[l>>2]!=(c|0)){continue}break}}return 1}function Ib(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,k=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=p(0);e=L-32|0;L=e;a:{b:{c:{if(!(i[a+60>>2]!=i[a- -64>>2]|i[a+48>>2]!=i[a+52>>2])){b=1;break c}b=1;if((O[i[i[a>>2]+24>>2]](a)|0)<1){break c}d:{while(1){e:{b=O[i[i[a>>2]+20>>2]](a,u)|0;f:{g:{h:{f=i[i[i[(O[i[i[a>>2]+28>>2]](a)|0)+4>>2]+8>>2]+(b<<2)>>2];switch(i[f+28>>2]+ -1|0){case 0:case 2:case 4:break h;case 8:break g;default:break f}}b=g[f+24|0];c=0;i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;if(b){if((b|0)<=-1){break b}b=b<<2;d=Gm(b);i[e+16>>2]=d;c=b+d|0;i[e+24>>2]=c;tn(d,0,b);i[e+20>>2]=c;c=j[f+24|0]}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(c&255){b=c<<24>>24;if((b|0)<=-1){break a}b=b<<2;d=Gm(b);i[e>>2]=d;c=b+d|0;i[e+8>>2]=c;tn(d,0,b);i[e+4>>2]=c}i:{j:{k:{switch(i[f+28>>2]+ -1|0){case 4:b=0;if(Jb(a,f,t)){break j}break i;case 2:b=0;if(Kb(a,f,t)){break j}break i;case 0:break k;default:break j}}b=0;if(!Lb(a,f,t)){break i}}t=g[f+24|0]+t|0;b=1}d=i[e>>2];if(d){i[e+4>>2]=d;qn(d)}d=i[e+16>>2];if(d){i[e+20>>2]=d;qn(d)}if(b){break f}break d}r=i[i[a+60>>2]+(h<<2)>>2];s=i[a+36>>2];k=i[(O[i[i[a>>2]+28>>2]](a)|0)+40>>2];n=i[f+56>>2];b=Gm(32);i[e+16>>2]=b;i[e+20>>2]=24;i[e+24>>2]=-2147483616;g[b+24|0]=0;d=j[1702]|j[1703]<<8|(j[1704]<<16|j[1705]<<24);c=j[1698]|j[1699]<<8|(j[1700]<<16|j[1701]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[1694]|j[1695]<<8|(j[1696]<<16|j[1697]<<24);c=j[1690]|j[1691]<<8|(j[1692]<<16|j[1693]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[1686]|j[1687]<<8|(j[1688]<<16|j[1689]<<24);c=j[1682]|j[1683]<<8|(j[1684]<<16|j[1685]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;l:{m:{d=k+16|0;c=d;b=i[d>>2];if(!b){break m}while(1){q=i[b+16>>2]<(n|0);c=q?c:b;b=i[(q<<2)+b>>2];if(b){continue}break}if((c|0)==(d|0)|(n|0)>2]){break m}b=c+20|0;if(!Mb(b,e+16|0)){break m}b=Lh(b,e+16|0);break l}b=Lh(k,e+16|0)}if(g[e+27|0]<=-1){qn(i[e+16>>2])}d=h+1|0;n:{if(b){Na(f,r);break n}b=s+o(h,24)|0;c=i[b+4>>2];h=g[f+24|0];s=h<<2;k=Gm((h|0)!=(h&1073741823)?-1:s);if(!Oh(Mh(e+16|0),m[b+20>>2],-1<>2]){w=i[i[r>>2]>>2]+i[r+48>>2]|0;y=b+8|0;q=0;n=0;c=0;while(1){if((h|0)>=1){z=i[y>>2];b=0;A=m[e+16>>2];while(1){v=b<<2;m[v+k>>2]=p(A*p(i[w+(c<<2)>>2]))+m[z+v>>2];c=c+1|0;b=b+1|0;if((h|0)!=(b|0)){continue}break}}sn(i[i[f+64>>2]>>2]+n|0,k,s);n=n+s|0;q=q+1|0;if(q>>>0>2]){continue}break}}qn(k)}h=d}b=1;u=u+1|0;if((u|0)<(O[i[i[a>>2]+24>>2]](a)|0)){continue}break c}break}qn(k)}b=0}L=e+32|0;return b|0}Vm();x()}Vm();x()}function Ck(a,b){var c=0,d=0,e=0,f=0,g=0,h=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,v=0,w=0,y=0;d=L-48|0;L=d;a:{if(!b){break a}s=a+12|0;k=i[a+4>>2];l=i[a>>2];j=k-l|0;e=j>>2;g=i[a+12>>2];c=i[a+16>>2]-g>>2;b:{if(e>>>0>c>>>0){Fk(s,e-c|0);k=i[a+4>>2];l=i[a>>2];j=k-l|0;e=j>>2;break b}if(e>>>0>=c>>>0){break b}i[a+16>>2]=g+(e<<2)}i[d+40>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;c:{d:{e:{if(!e){c=0;g=0;break e}if(e>>>0>=1073741824){break d}c=Gm(j);i[d+36>>2]=c;i[d+32>>2]=c;i[d+40>>2]=(e<<2)+c;h=c;g=c}if(!j){break c}f=g;j=0;while(1){e=i[(j<<2)+l>>2];h=h-f>>2;if(e>>>0>=h>>>0){i[d+16>>2]=0;c=e+1|0;f:{if(c>>>0>h>>>0){Va(d+32|0,c-h|0,d+16|0);l=i[a>>2];k=i[a+4>>2];break f}if(c>>>0>=h>>>0){break f}i[d+36>>2]=(c<<2)+f}c=i[d+32>>2];g=c}f=(e<<2)+c|0;i[f>>2]=i[f>>2]+1;j=j+1|0;f=k-l|0;e=f>>2;if(j>>>0>=e>>>0){break c}h=i[d+36>>2];f=c;continue}}Da(14288);x()}i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;g:{h:{if(f){if(e>>>0>=536870912){break h}c=Gm(f<<1);i[d+16>>2]=c;i[d+20>>2]=c;g=(e<<3)+c|0;i[d+24>>2]=g;while(1){i[c>>2]=-1;i[c+4>>2]=-1;c=c+8|0;if((g|0)!=(c|0)){continue}break}i[d+20>>2]=g;c=i[d+32>>2];g=c}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;g=i[d+36>>2]-g|0;l=g>>2;i:{if(g){if(l>>>0>=1073741824){break i}m=Gm(g);i[d>>2]=m;g=l<<2;f=g+m|0;i[d+8>>2]=f;j=0;g=tn(m,0,g);i[d+4>>2]=f;f=l>>>0>1?l:1;e=0;while(1){h=e<<2;i[h+g>>2]=j;j=i[c+h>>2]+j|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}}k=i[a>>2];c=i[a+4>>2];if((k|0)==(c|0)){break g}y=c-k>>2;g=0;o=i[d+16>>2];t=i[d+32>>2];while(1){u=g<<2;c=u+k|0;q=i[c>>2];h=-1;j=g+1|0;f=(j>>>0)%3|0?j:g+ -2|0;if((f|0)!=-1){h=i[(f<<2)+k>>2]}p=-1;f=(g>>>0)%3|0;e=(f?-1:2)+g|0;if((e|0)!=-1){p=i[(e<<2)+k>>2]}j:{k:{if(f){break k}l:{if((h|0)==(p|0)){break l}c=i[c>>2];if((c|0)==(h|0)){break l}if((c|0)!=(p|0)){break k}}i[a+40>>2]=i[a+40>>2]+1;g=g+3|0;break j}c=p<<2;r=i[c+t>>2];m:{n:{if((r|0)<1){break n}c=i[c+m>>2];e=0;while(1){f=o+(c<<3)|0;n=i[f>>2];if((n|0)==-1){break n}o:{if((h|0)!=(n|0)){break o}n=i[f+4>>2];if((n|0)!=-1){f=i[(n<<2)+k>>2]}else{f=-1}if((f|0)==(q|0)){break o}while(1){p:{f=c;e=e+1|0;if((e|0)>=(r|0)){break p}q=o+(f<<3)|0;c=f+1|0;v=o+(c<<3)|0;w=i[v>>2];i[q>>2]=w;i[q+4>>2]=i[v+4>>2];if((w|0)!=-1){continue}}break}i[o+(f<<3)>>2]=-1;if((n|0)==-1){break n}c=i[s>>2];i[c+u>>2]=n;i[c+(n<<2)>>2]=g;break m}c=c+1|0;e=e+1|0;if((r|0)!=(e|0)){continue}break}}c=h<<2;h=i[c+t>>2];if((h|0)<1){break m}c=i[c+m>>2];e=0;while(1){f=o+(c<<3)|0;if(i[f>>2]==-1){i[f>>2]=p;i[f+4>>2]=g;break m}c=c+1|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}}g=j}if(g>>>0>>0){continue}break}break g}Vm();x()}Vm();x()}i[b>>2]=l;if(m){i[d+4>>2]=m;qn(m)}a=i[d+16>>2];if(a){i[d+20>>2]=a;qn(a)}a=i[d+32>>2];if(!a){break a}i[d+36>>2]=a;qn(a)}L=d+48|0;return(b|0)!=0}function db(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;e=L-704|0;L=e;r=1;a:{b:{c:{d:{if(k[b+38>>1]<515){break d}r=0;f=i[b+16>>2];d=i[b+12>>2];c=i[b+20>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]<=f>>>0:0){break d}u=j[f+i[b>>2]|0];f=f+1|0;if(f>>>0<1){c=c+1|0}i[b+16>>2]=f;i[b+20>>2]=c;t=i[i[(O[i[i[a>>2]+28>>2]](a)|0)+4>>2]+80>>2];c=O[i[i[a>>2]+24>>2]](a)|0;i[e+696>>2]=0;i[e+688>>2]=0;i[e+692>>2]=0;if(c){if(c>>>0>=214748365){break c}d=o(c,20);c=Gm(d);i[e+688>>2]=c;i[e+692>>2]=c;d=c+d|0;i[e+696>>2]=d;while(1){i[c>>2]=0;i[c+4>>2]=0;i[c+16>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;c=c+20|0;if((d|0)!=(c|0)){continue}break}i[e+692>>2]=d}e:{if((O[i[i[a>>2]+24>>2]](a)|0)>=1){v=a+48|0;w=a+60|0;while(1){c=O[i[i[a>>2]+20>>2]](a,q)|0;d=i[i[i[(O[i[i[a>>2]+28>>2]](a)|0)+4>>2]+8>>2]+(c<<2)>>2];Ma(d,t);g[d+84|0]=1;i[d+72>>2]=i[d+68>>2];c=i[d+28>>2];if(c>>>0>9){break e}f:{g:{h:{f=1<>2];d=c;c=o(Hh(6),c);Ha(f,h,d,6,0,c,c>>31);c=Gm(96);d=La(c,f);i[e+656>>2]=c;g[c+84|0]=1;i[c+72>>2]=i[c+68>>2];Ma(d,t);c=i[a+64>>2];if(c>>>0>=l[a+68>>2]){break h}d=i[e+656>>2];i[e+656>>2]=0;i[c>>2]=d;c=c+4|0;i[a+64>>2]=c;break g}p=0;if(g[d+24|0]<=0){break f}while(1){c=i[a+52>>2];m=i[a+56>>2];i:{if(c>>>0>>0){i[c>>2]=0;i[a+52>>2]=c+4;break i}f=i[v>>2];s=c-f|0;c=s>>2;h=c+1|0;if(h>>>0>=1073741824){break b}y=c<<2;m=m-f|0;c=m>>1;h=m>>2>>>0<536870911?c>>>0>>0?h:c:1073741823;c=0;j:{if(!h){break j}if(h>>>0>=1073741824){break a}c=Gm(h<<2)}m=y+c|0;i[m>>2]=0;h=c+(h<<2)|0;m=m+4|0;if((s|0)>=1){sn(c,f,s)}i[a+56>>2]=h;i[a+52>>2]=m;i[a+48>>2]=c;if(!f){break i}qn(f)}p=p+1|0;if((p|0)>2]}d=i[c+ -4>>2];c=i[e+656>>2];i[e+656>>2]=0;if(!c){break f}Ua(c)}h=i[d+28>>2];f=Hh(h);c=i[e+688>>2]+o(q,20)|0;p=g[d+24|0];i[c+16>>2]=p;i[c+12>>2]=(f|0)>0?f:0;i[c+8>>2]=h;i[c+4>>2]=n;i[c>>2]=d;n=n+p|0;q=q+1|0;if((q|0)<(O[i[i[a>>2]+24>>2]](a)|0)){continue}break}}a=fb(e+656|0,e+688|0);k:{l:{m:{switch(u|0){case 0:c=ib(e,n);b=gb(c,b,a);hb(c);if(b){break l}break k;case 1:c=ib(e,n);b=jb(c,b,a);hb(c);if(b){break l}break k;case 2:c=mb(e,n);b=kb(c,b,a);lb(c);if(b){break l}break k;case 3:c=mb(e,n);b=nb(c,b,a);lb(c);if(b){break l}break k;case 4:c=qb(e,n);b=ob(c,b,a);pb(c);if(b){break l}break k;case 5:c=qb(e,n);b=rb(c,b,a);pb(c);if(b){break l}break k;case 6:break m;default:break k}}c=qb(e,n);b=sb(c,b,a);pb(c);if(!b){break k}}r=1}b=i[a+16>>2];if(b){i[a+20>>2]=b;qn(b)}b=i[a>>2];if(!b){break e}i[a+4>>2]=b;qn(b)}a=i[e+688>>2];if(!a){break d}i[e+692>>2]=a;qn(a)}L=e+704|0;return r|0}Vm();x()}Vm();x()}Da(1756);x()}function ud(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){Ta(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}s=i[a+52>>2];q=i[a+48>>2];d=0;f=(e&1073741823)!=(e|0)?-1:e<<2;p=tn(Gm(f),0,f);f=i[a+8>>2];b:{if((f|0)<1){break b}while(1){f=d<<2;g=i[f+p>>2];k=i[a+16>>2];c:{if((g|0)>(k|0)){h=i[a+32>>2];i[f+h>>2]=k;break c}h=i[a+32>>2];f=f+h|0;k=i[a+12>>2];if((g|0)<(k|0)){i[f>>2]=k;break c}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}if((f|0)<1){break b}g=0;while(1){f=g<<2;d=f+c|0;f=i[b+f>>2]+i[f+h>>2]|0;i[d>>2]=f;d:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break d}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}d=i[a+56>>2];r=i[d>>2];d=i[d+4>>2]-r|0;if((d|0)>=5){d=d>>2;t=(d|0)>2?d:2;u=d>>>0>1?d:1;k=1;while(1){e:{f:{if((k|0)!=(u|0)){n=o(e,k);d=i[(k<<2)+r>>2];if((d|0)==-1){break f}d=i[i[q+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}g=-1;j=i[s>>2];h=i[q>>2];l=i[j+(i[h+(d<<2)>>2]<<2)>>2];m=d+1|0;m=(m>>>0)%3|0?m:d+ -2|0;if((m|0)!=-1){m=i[h+(m<<2)>>2]}else{m=-1}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)!=-1){g=i[h+(d<<2)>>2]}if((l|0)>=(k|0)){break f}d=i[(m<<2)+j>>2];if((d|0)>=(k|0)){break f}g=i[j+(g<<2)>>2];if((g|0)>=(k|0)){break f}if((e|0)>=1){g=o(e,g);h=o(d,e);j=o(e,l);d=0;while(1){i[(d<<2)+p>>2]=(i[(d+g<<2)+c>>2]+i[(d+h<<2)+c>>2]|0)-i[(d+j<<2)+c>>2];d=d+1|0;if((e|0)!=(d|0)){continue}break}}if((f|0)<1){break e}d=0;while(1){f=d<<2;g=i[f+p>>2];j=i[a+16>>2];g:{if((g|0)>(j|0)){h=i[a+32>>2];i[f+h>>2]=j;break g}h=i[a+32>>2];f=f+h|0;j=i[a+12>>2];if((g|0)<(j|0)){i[f>>2]=j;break g}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=n<<2;n=d+c|0;j=b+d|0;while(1){f=g<<2;d=f+n|0;f=i[f+j>>2]+i[f+h>>2]|0;i[d>>2]=f;h:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break h}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}break e}Wm();x()}if((f|0)<1){break e}j=(o(k+ -1|0,e)<<2)+c|0;d=0;while(1){f=d<<2;g=i[f+j>>2];l=i[a+16>>2];i:{if((g|0)>(l|0)){h=i[a+32>>2];i[f+h>>2]=l;break i}h=i[a+32>>2];f=f+h|0;l=i[a+12>>2];if((g|0)<(l|0)){i[f>>2]=l;break i}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=n<<2;n=d+c|0;j=b+d|0;while(1){f=g<<2;d=f+n|0;f=i[f+j>>2]+i[f+h>>2]|0;i[d>>2]=f;j:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break j}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}k=k+1|0;if((t|0)!=(k|0)){continue}break}}qn(p);return 1}function Ic(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){Ta(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}r=i[a+52>>2];p=i[a+48>>2];d=0;f=(e&1073741823)!=(e|0)?-1:e<<2;n=tn(Gm(f),0,f);f=i[a+8>>2];b:{if((f|0)<1){break b}while(1){f=d<<2;g=i[f+n>>2];j=i[a+16>>2];c:{if((g|0)>(j|0)){h=i[a+32>>2];i[f+h>>2]=j;break c}h=i[a+32>>2];f=f+h|0;j=i[a+12>>2];if((g|0)<(j|0)){i[f>>2]=j;break c}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}if((f|0)<1){break b}g=0;while(1){f=g<<2;d=f+c|0;f=i[b+f>>2]+i[f+h>>2]|0;i[d>>2]=f;d:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break d}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}d=i[a+56>>2];q=i[d>>2];d=i[d+4>>2]-q|0;if((d|0)>=5){d=d>>2;s=(d|0)>2?d:2;t=d>>>0>1?d:1;j=1;while(1){e:{f:{if((j|0)!=(t|0)){m=o(e,j);d=i[(j<<2)+q>>2];if((d|0)==-1|i[i[p>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1){break f}d=i[i[i[p+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}h=i[r>>2];g=i[p+28>>2];k=i[h+(i[g+(d<<2)>>2]<<2)>>2];if((k|0)>=(j|0)){break f}l=d+1|0;l=i[h+(i[g+(((l>>>0)%3|0?l:d+ -2|0)<<2)>>2]<<2)>>2];if((l|0)>=(j|0)){break f}d=i[h+(i[g+(d+((d>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((d|0)>=(j|0)){break f}if((e|0)>=1){g=o(d,e);h=o(e,l);k=o(e,k);d=0;while(1){i[(d<<2)+n>>2]=(i[(d+g<<2)+c>>2]+i[(d+h<<2)+c>>2]|0)-i[(d+k<<2)+c>>2];d=d+1|0;if((e|0)!=(d|0)){continue}break}}if((f|0)<1){break e}d=0;while(1){f=d<<2;g=i[f+n>>2];k=i[a+16>>2];g:{if((g|0)>(k|0)){h=i[a+32>>2];i[f+h>>2]=k;break g}h=i[a+32>>2];f=f+h|0;k=i[a+12>>2];if((g|0)<(k|0)){i[f>>2]=k;break g}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=m<<2;m=d+c|0;k=b+d|0;while(1){f=g<<2;d=f+m|0;f=i[f+k>>2]+i[f+h>>2]|0;i[d>>2]=f;h:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break h}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}break e}Wm();x()}if((f|0)<1){break e}k=(o(j+ -1|0,e)<<2)+c|0;d=0;while(1){f=d<<2;g=i[f+k>>2];l=i[a+16>>2];i:{if((g|0)>(l|0)){h=i[a+32>>2];i[f+h>>2]=l;break i}h=i[a+32>>2];f=f+h|0;l=i[a+12>>2];if((g|0)<(l|0)){i[f>>2]=l;break i}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=m<<2;m=d+c|0;k=b+d|0;while(1){f=g<<2;d=f+m|0;f=i[f+k>>2]+i[f+h>>2]|0;i[d>>2]=f;j:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break j}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}j=j+1|0;if((s|0)!=(j|0)){continue}break}}qn(n);return 1}function Tg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(i[i[a+24>>2]+(d>>>3&268435452)>>2]>>>(d&31)&1)){c=i[a+48>>2];i[a+52>>2]=c;a:{if((c|0)!=i[a+56>>2]){i[c>>2]=b;i[a+52>>2]=c+4;break a}e=Gm(4);i[e>>2]=b;f=e+4|0;i[a+56>>2]=f;i[a+52>>2]=f;i[a+48>>2]=e;if(!c){break a}qn(c)}e=i[a+4>>2];c=-1;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)!=-1){c=i[i[e>>2]+(f<<2)>>2]}g=(b-o(d,3)|0?-1:2)+b|0;if((g|0)==-1){return 0}if((c|0)==-1){return 0}d=i[i[e>>2]+(g<<2)>>2];if((d|0)==-1){return 0}b=i[a+36>>2];e=b+(c>>>3&536870908)|0;h=i[e>>2];j=1<<(c&31);if(!(h&j)){i[e>>2]=h|j;Jg(a+8|0,c,f);b=i[a+36>>2]}b=(d>>>3&536870908)+b|0;c=i[b>>2];e=1<<(d&31);if(!(c&e)){i[b>>2]=c|e;Jg(a+8|0,d,g)}d=i[a+52>>2];if((d|0)==i[a+48>>2]){return 1}k=a+48|0;l=a+8|0;while(1){d=d+ -4|0;b=i[d>>2];c=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}e=i[a+24>>2]+(c>>>3&268435452)|0;f=i[e>>2];c=1<<(c&31);if(f&c){break c}i[e>>2]=c|f;while(1){g=i[a+4>>2];c=i[i[g>>2]+(b<<2)>>2];if((c|0)==-1){return 0}d:{d=i[a+36>>2]+(c>>>3&536870908)|0;e=i[d>>2];f=1<<(c&31);e:{if(e&f){break e}h=i[i[g+24>>2]+(c<<2)>>2];if((h|0)!=-1){j=h+1|0;h=(j>>>0)%3|0?j:h+ -2|0;if((h|0)!=-1){g=i[i[g+12>>2]+(h<<2)>>2];if((g|0)!=-1){i[d>>2]=e|f;Jg(l,c,b);c=g+1|0;if((((c>>>0)%3|0?c:g+ -2|0)|0)==-1){break e}d=b+ -2|0;c=b+1|0;b=-1;c=(c>>>0)%3|0?c:d;if((c|0)!=-1){b=i[i[i[a+4>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;h=1<<(c&31);e=i[a+24>>2];j=c>>>5|0;f=i[e+(j<<2)>>2];break d}}}i[d>>2]=e|f;Jg(l,c,b)}d=-1;e=i[a+4>>2];c=-1;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)!=-1){c=i[i[e+12>>2]+(f<<2)>>2]}b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)!=-1){d=i[i[e+12>>2]+(b<<2)>>2]}b=(d|0)==-1;g=b?-1:(d>>>0)/3|0;f=(c>>>0)/3|0;f:{h=(c|0)==-1;if(!h){e=i[a+24>>2];h=h?-1:f;j=h>>>5|0;f=i[e+(j<<2)>>2];h=1<<(h&31);if(!(f&h)){break f}}if(!b){b=d;h=1<<(g&31);e=i[a+24>>2];j=g>>>5|0;f=i[e+(j<<2)>>2];if(!(h&f)){break d}}d=i[a+52>>2]+ -4|0;i[a+52>>2]=d;break b}if(b){b=c;break d}if(i[(g>>>3&536870908)+e>>2]>>>(g&31)&1){b=c;break d}b=i[a+52>>2];i[b+ -4>>2]=d;g=i[a+56>>2];if((g|0)!=(b|0)){i[b>>2]=c;d=b+4|0;break c}g:{e=i[k>>2];f=b-e|0;h=f>>2;d=h+1|0;if(d>>>0<1073741824){g=g-e|0;j=g>>1;d=g>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;b=0;h:{if(!d){break h}if(d>>>0>=1073741824){break g}b=Gm(d<<2)}g=b+(h<<2)|0;i[g>>2]=c;c=b+(d<<2)|0;d=g+4|0;if((f|0)>=1){sn(b,e,f)}i[a+56>>2]=c;i[a+52>>2]=d;i[a+48>>2]=b;if(!e){break b}qn(e);d=i[a+52>>2];break b}Vm();x()}Da(12220);x()}i[(j<<2)+e>>2]=f|h;if((b|0)!=-1){continue}break}return 0}i[a+52>>2]=d}if(i[k>>2]!=(d|0)){continue}break}}return 1}function ad(a,b,c,d){var e=0,f=0,h=p(0),k=0,l=p(0),n=p(0),r=0,s=p(0),t=p(0),v=p(0),y=p(0),z=p(0),A=0,B=0,C=p(0),D=p(0),E=p(0),F=p(0),G=p(0),H=p(0),I=p(0),J=p(0),K=0;e=L-48|0;L=e;r=-1;f=-1;a:{if((b|0)==-1){break a}f=b+1|0;r=(f>>>0)%3|0?f:b+ -2|0;f=b+ -1|0;if((b>>>0)%3|0){break a}f=b+2|0}k=i[a+52>>2];b=i[k>>2];b:{k=i[k+4>>2]-b>>2;A=i[i[a+48>>2]+28>>2];r=i[A+(r<<2)>>2];if(k>>>0<=r>>>0){break b}K=k;k=i[(f<<2)+A>>2];if(K>>>0<=k>>>0){break b}c:{d:{f=i[b+(r<<2)>>2];A=(f|0)>=(d|0);if(A){break d}r=i[b+(k<<2)>>2];if((r|0)>=(d|0)){break d}b=i[a+72>>2];k=(o(b,r)<<2)+c|0;l=p(i[k+4>>2]);b=(o(b,f)<<2)+c|0;z=p(i[b+4>>2]);C=p(i[k>>2]);F=p(i[b>>2]);if(!(C!=F|l!=z)){a=i[a+68>>2];b=a;if(p(q(l))>2]=c;if(p(q(C))>2]=~~C;break c}i[a>>2]=-2147483648;break c}d=i[i[a+64>>2]+(d<<2)>>2];i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;b=i[a+60>>2];if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}bd(b,d,g[b+24|0],e+32|0);d=i[i[a+64>>2]+(f<<2)>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;b=i[a+60>>2];if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}bd(b,d,g[b+24|0],e+16|0);c=i[i[a+64>>2]+(r<<2)>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=i[a+60>>2];if(!j[b+84|0]){c=i[i[b+68>>2]+(c<<2)>>2]}bd(b,c,g[b+24|0],e);D=m[e+40>>2];E=m[e+36>>2];s=m[e+32>>2];H=m[e+16>>2];n=p(m[e>>2]-H);I=m[e+20>>2];t=p(m[e+4>>2]-I);J=m[e+24>>2];v=p(m[e+8>>2]-J);G=p(p(p(p(n*n)+p(0))+p(t*t))+p(v*v));e:{if(!(G>p(0))){y=p(0);if(i[a+88>>2]>257){break e}}s=p(s-H);E=p(E-I);D=p(D-J);h=p(p(p(p(p(n*s)+p(0))+p(t*E))+p(v*D))/G);v=p(D-p(v*h));t=p(E-p(t*h));n=p(s-p(n*h));y=p(w(p(p(p(v*v)+p(p(t*t)+p(p(n*n)+p(0))))/G)))}s=y;c=a+80|0;b=i[c>>2]+ -1|0;d=i[i[a+76>>2]+(b>>>3&536870908)>>2];i[c>>2]=b;n=p(l-z);y=p(p(n*h)+z);z=p(C-F);l=p(z*s);b=d>>>(b&31)&1;l=p(y+(b?l:p(-l)));y=p(p(z*h)+F);h=p(n*s);h=p(y+(b?p(-h):h));f:{if(h!=h){b=i[a+68>>2];i[b>>2]=-2147483648;break f}b=i[a+68>>2];a=b;B=u(+h+.5);g:{if(q(B)<2147483648){c=~~B;break g}c=-2147483648}i[a>>2]=c}B=u(+l+.5);h:{if(q(B)<2147483648){a=~~B;break h}a=-2147483648}i[b+4>>2]=l!=l?-2147483648:a;break c}i:{if(!A){b=i[a+72>>2];d=o(f,b);break i}if((d|0)<=0){if(i[a+72>>2]<1){break c}c=i[a+68>>2];b=0;while(1){i[c+(b<<2)>>2]=0;b=b+1|0;if((b|0)>2]){continue}break}break c}b=i[a+72>>2];d=o(b,d+ -1|0)}if((b|0)<1){break c}f=i[a+68>>2];b=0;while(1){i[f+(b<<2)>>2]=i[(b+d<<2)+c>>2];b=b+1|0;if((b|0)>2]){continue}break}}L=e+48|0;return}Wm();x()}function Cd(a,b,c,d){var e=0,f=0,h=0,k=p(0),l=p(0),n=0,r=p(0),s=p(0),t=p(0),v=p(0),y=p(0),z=p(0),A=0,B=0,C=p(0),D=p(0),E=p(0),F=p(0),G=p(0),H=0,I=p(0),J=p(0),K=p(0);e=L-48|0;L=e;f=-1;n=-1;a:{if((b|0)==-1){break a}h=((b>>>0)%3|0?-1:2)+b|0;A=i[a+48>>2];H=b+1|0;b=(H>>>0)%3|0?H:b+ -2|0;if((b|0)!=-1){f=i[i[A>>2]+(b<<2)>>2]}if((h|0)==-1){break a}n=i[i[A>>2]+(h<<2)>>2]}h=i[a+52>>2];b=i[h>>2];h=i[h+4>>2]-b>>2;if(!(h>>>0<=f>>>0|h>>>0<=n>>>0)){b:{c:{f=i[b+(f<<2)>>2];A=(f|0)>=(d|0);if(A){break c}h=i[b+(n<<2)>>2];if((h|0)>=(d|0)){break c}b=i[a+72>>2];n=(o(b,h)<<2)+c|0;l=p(i[n+4>>2]);b=(o(b,f)<<2)+c|0;z=p(i[b+4>>2]);C=p(i[n>>2]);F=p(i[b>>2]);if(!(C!=F|l!=z)){a=i[a+68>>2];b=a;if(p(q(l))>2]=c;if(p(q(C))>2]=~~C;break b}i[a>>2]=-2147483648;break b}n=i[i[a+64>>2]+(d<<2)>>2];i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;b=i[a+60>>2];if(!j[b+84|0]){n=i[i[b+68>>2]+(n<<2)>>2]}bd(b,n,g[b+24|0],e+32|0);f=i[i[a+64>>2]+(f<<2)>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;b=i[a+60>>2];if(!j[b+84|0]){f=i[i[b+68>>2]+(f<<2)>>2]}bd(b,f,g[b+24|0],e+16|0);c=i[i[a+64>>2]+(h<<2)>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=i[a+60>>2];if(!j[b+84|0]){c=i[i[b+68>>2]+(c<<2)>>2]}bd(b,c,g[b+24|0],e);D=m[e+40>>2];E=m[e+36>>2];s=m[e+32>>2];I=m[e+16>>2];r=p(m[e>>2]-I);J=m[e+20>>2];t=p(m[e+4>>2]-J);K=m[e+24>>2];v=p(m[e+8>>2]-K);G=p(p(p(p(r*r)+p(0))+p(t*t))+p(v*v));d:{if(!(G>p(0))){y=p(0);if(i[a+88>>2]>257){break d}}s=p(s-I);E=p(E-J);D=p(D-K);k=p(p(p(p(p(r*s)+p(0))+p(t*E))+p(v*D))/G);v=p(D-p(v*k));t=p(E-p(t*k));r=p(s-p(r*k));y=p(w(p(p(p(v*v)+p(p(t*t)+p(p(r*r)+p(0))))/G)))}s=y;c=a+80|0;b=i[c>>2]+ -1|0;d=i[i[a+76>>2]+(b>>>3&536870908)>>2];i[c>>2]=b;r=p(l-z);y=p(p(r*k)+z);z=p(C-F);l=p(z*s);b=d>>>(b&31)&1;l=p(y+(b?l:p(-l)));y=p(p(z*k)+F);k=p(r*s);k=p(y+(b?p(-k):k));e:{if(k!=k){b=i[a+68>>2];i[b>>2]=-2147483648;break e}b=i[a+68>>2];a=b;B=u(+k+.5);f:{if(q(B)<2147483648){c=~~B;break f}c=-2147483648}i[a>>2]=c}B=u(+l+.5);g:{if(q(B)<2147483648){a=~~B;break g}a=-2147483648}i[b+4>>2]=l!=l?-2147483648:a;break b}h:{if(!A){b=i[a+72>>2];d=o(f,b);break h}if((d|0)<=0){if(i[a+72>>2]<1){break b}c=i[a+68>>2];b=0;while(1){i[c+(b<<2)>>2]=0;b=b+1|0;if((b|0)>2]){continue}break}break b}b=i[a+72>>2];d=o(b,d+ -1|0)}if((b|0)<1){break b}f=i[a+68>>2];b=0;while(1){i[f+(b<<2)>>2]=i[(b+d<<2)+c>>2];b=b+1|0;if((b|0)>2]){continue}break}}L=e+48|0;return}Wm();x()}function Ek(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;k=L-48|0;L=k;i[a+36>>2]=b;p=a+24|0;d=i[a+24>>2];c=i[a+28>>2]-d>>2;a:{if(c>>>0>>0){Fk(p,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+28>>2]=d+(b<<2)}g[k+16|0]=0;l=Gk(k+32|0,b,k+16|0);c=i[a>>2];d=i[a+4>>2];g[k+8|0]=0;q=Gk(k+16|0,d-c>>2,k+8|0);b:{h=i[a+4>>2];c=i[a>>2];if(h-c>>2>>>0<3){break b}t=a+48|0;while(1){m=o(r,3);e=i[(m<<2)+c>>2];d=m+1|0;c:{d:{if((d|0)==-1){j=0;f=-1;break d}f=i[(d<<2)+c>>2];j=m+2|0;d=-1;if((j|0)==-1){break c}}d=i[(j<<2)+c>>2]}e:{if(!((d|0)==(f|0)|(e|0)==(f|0)|(d|0)==(e|0))){j=i[q>>2];n=0;while(1){d=m+n|0;f:{if(i[(d>>>3&536870908)+j>>2]>>>(d&31)&1){break f}h=i[i[a>>2]+(d<<2)>>2];i[k+8>>2]=h;c=1<<(h&31);e=i[l>>2];f=h>>>5|0;j=i[e+(f<<2)>>2];s=c&j;if(s){bg(p,14284);Hk(t,k+8|0);c=i[l+4>>2];f=i[l+8>>2];if((c|0)==f<<5){if((c+1|0)<=-1){break e}e=l;if(c>>>0<=1073741822){h=c+32&-32;c=f<<6;c=c>>>0>>0?h:c}else{c=2147483647}Sc(e,c);c=i[l+4>>2]}i[l+4>>2]=c+1;e=i[l>>2];f=e+(c>>>3&536870908)|0;h=i[f>>2];u=f,v=Nn(c)&h,i[u>>2]=v;i[k+8>>2]=b;c=1<<(b&31);f=b>>>5|0;j=i[(f<<2)+e>>2];b=b+1|0}i[(f<<2)+e>>2]=c|j;j=i[q>>2];c=d;g:{while(1){if((c|0)==-1){break g}e=(c>>>3&536870908)+j|0;i[e>>2]=i[e>>2]|1<<(c&31);e=i[k+8>>2];i[i[p>>2]+(e<<2)>>2]=c;if(s){i[i[a>>2]+(c<<2)>>2]=e}h=d;f=c+1|0;c=(f>>>0)%3|0?f:c+ -2|0;e=-1;h:{if((c|0)==-1){break h}f=i[i[a+12>>2]+(c<<2)>>2];e=-1;if((f|0)==-1){break h}c=f+1|0;e=(c>>>0)%3|0?c:f+ -2|0}c=e;if((h|0)!=(c|0)){continue}break}if((d|0)!=-1){break f}}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)==-1){break f}d=i[i[a+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)==-1){break f}while(1){d=(c>>>3&536870908)+j|0;i[d>>2]=i[d>>2]|1<<(c&31);if(s){i[i[a>>2]+(c<<2)>>2]=i[k+8>>2]}d=((c>>>0)%3|0?-1:2)+c|0;if((d|0)==-1){break f}d=i[i[a+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)!=-1){continue}break}}n=n+1|0;if((n|0)!=3){continue}break}c=i[a>>2];h=i[a+4>>2]}r=r+1|0;if(r>>>0<(h-c>>2>>>0)/3>>>0){continue}break b}break}Vm();x()}j=0;i[a+44>>2]=0;b=i[l>>2];c=i[l+4>>2];d=c>>>5|0;f=c&31;if(d|f){h=(d<<2)+b|0;e=b;c=0;while(1){if(!(i[e>>2]>>>c&1)){j=j+1|0;i[a+44>>2]=j}d=(c|0)==31;c=d?0:c+1|0;e=d?e+4|0:e;if((h|0)!=(e|0)|(c|0)!=(f|0)){continue}break}}a=i[q>>2];if(a){qn(a);b=i[l>>2]}if(b){qn(b)}L=k+48|0}function uc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,j=0,k=0,l=0,m=0;a:{b:{c:{d:{e:{f:{g:{h:{d=i[a+8>>2];switch(i[d+28>>2]+ -1|0){case 0:break c;case 3:break d;case 2:break e;case 5:break f;case 4:break g;case 1:break h;default:break a}}f=g[d+24|0];j=Gm((f|0)>-1?f:-1);c=i[a+16>>2];d=0;i:{if(!i[c+80>>2]){break i}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((f|0)>0){while(1){g[c+j|0]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}sn(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,f);l=f+l|0;e=e+1|0;if((e|0)!=(b|0)){continue}break}break b}e=g[d+24|0];m=e<<2;j=Gm((e|0)!=(e&1073741823)?-1:m);c=i[a+16>>2];d=0;j:{if(!i[c+80>>2]){break j}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((e|0)>0){while(1){i[(c<<2)+j>>2]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}sn(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}e=g[d+24|0];m=e<<2;j=Gm((e|0)!=(e&1073741823)?-1:m);c=i[a+16>>2];d=0;k:{if(!i[c+80>>2]){break k}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((e|0)>0){while(1){i[(c<<2)+j>>2]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}sn(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}e=g[d+24|0];d=e+e|0;j=Gm(d>>>0>>0?-1:d);c=i[a+16>>2];d=0;l:{if(!i[c+80>>2]){break l}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}m=e<<1;while(1){c=0;if((e|0)>0){while(1){h[(c<<1)+j>>1]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}sn(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}e=g[d+24|0];d=e+e|0;j=Gm(d>>>0>>0?-1:d);c=i[a+16>>2];d=0;m:{if(!i[c+80>>2]){break m}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}m=e<<1;while(1){c=0;if((e|0)>0){while(1){h[(c<<1)+j>>1]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}sn(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}f=g[d+24|0];j=Gm((f|0)>-1?f:-1);c=i[a+16>>2];d=0;n:{if(!i[c+80>>2]){break n}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((f|0)>0){while(1){g[c+j|0]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}sn(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,f);l=f+l|0;e=e+1|0;if((e|0)!=(b|0)){continue}break}}qn(j);j=1}return j|0}function ll(a,b){var c=0,d=0,e=0,f=0,h=0,k=0;a:{b:{d=b;h=i[b>>2];if(h){c=i[b+4>>2];if(!c){break b}while(1){d=c;c=i[c>>2];if(c){continue}break}}h=i[d+4>>2];if(h){break b}h=0;e=1;break a}i[h+8>>2]=i[d+8>>2];e=0}f=i[d+8>>2];c=i[f>>2];c:{if((d|0)==(c|0)){i[f>>2]=h;if((a|0)==(d|0)){c=0;a=h;break c}c=i[f+4>>2];break c}i[f+4>>2]=h}d:{e:{f:{k=!j[d+12|0];if((b|0)!=(d|0)){f=i[b+8>>2];i[d+8>>2]=f;i[f+((i[i[b+8>>2]>>2]!=(b|0))<<2)>>2]=d;f=i[b>>2];i[d>>2]=f;i[f+8>>2]=d;f=i[b+4>>2];i[d+4>>2]=f;if(f){i[f+8>>2]=d}g[d+12|0]=j[b+12|0];a=(a|0)==(b|0)?d:a}if(!(k|!a)){if(e){while(1){b=j[c+12|0];g:{e=i[c+8>>2];if(i[e>>2]!=(c|0)){if(!b){g[c+12|0]=1;g[e+12|0]=0;d=i[e+4>>2];b=i[d>>2];i[e+4>>2]=b;if(b){i[b+8>>2]=e}i[d+8>>2]=i[e+8>>2];b=i[e+8>>2];i[(((e|0)!=i[b>>2])<<2)+b>>2]=d;i[d>>2]=e;i[e+8>>2]=d;b=i[c>>2];a=(b|0)==(a|0)?c:a;c=i[b+4>>2]}d=i[c>>2];if(!(j[d+12|0]?0:d)){b=i[c+4>>2];if(j[b+12|0]?0:b){break f}g[c+12|0]=0;c=i[c+8>>2];h:{if((c|0)==(a|0)){c=a;break h}if(j[c+12|0]){break g}}g[c+12|0]=1;return}b=i[c+4>>2];if(b){break f}break e}i:{if(b){b=c;break i}g[c+12|0]=1;g[e+12|0]=0;b=i[c+4>>2];i[e>>2]=b;if(b){i[b+8>>2]=e}i[c+8>>2]=i[e+8>>2];d=i[e+8>>2];j:{if((e|0)==i[d>>2]){i[d>>2]=c;b=i[e>>2];break j}i[d+4>>2]=c}i[c+4>>2]=e;i[e+8>>2]=c;a=(a|0)==(e|0)?c:a}d=i[b>>2];k:{if(!(!d|j[d+12|0])){c=b;break k}c=i[b+4>>2];if(!(j[c+12|0]?0:c)){g[b+12|0]=0;c=i[b+8>>2];if(j[c+12|0]?(c|0)!=(a|0):0){break g}g[c+12|0]=1;return}if(d){if(!j[d+12|0]){c=b;break k}c=i[b+4>>2]}g[c+12|0]=1;g[b+12|0]=0;a=i[c>>2];i[b+4>>2]=a;if(a){i[a+8>>2]=b}i[c+8>>2]=i[b+8>>2];a=i[b+8>>2];i[((i[a>>2]!=(b|0))<<2)+a>>2]=c;i[c>>2]=b;i[b+8>>2]=c;d=b}a=c;c=i[c+8>>2];g[a+12|0]=j[c+12|0];g[c+12|0]=1;g[d+12|0]=1;b=i[c>>2];a=i[b+4>>2];i[c>>2]=a;if(a){i[a+8>>2]=c}i[b+8>>2]=i[c+8>>2];a=i[c+8>>2];i[(((c|0)!=i[a>>2])<<2)+a>>2]=b;i[b+4>>2]=c;i[c+8>>2]=b;return}b=i[c+8>>2];c=i[((i[b>>2]==(c|0))<<2)+b>>2];continue}}g[h+12|0]=1}return}if(j[b+12|0]){break e}d=c;break d}g[d+12|0]=1;g[c+12|0]=0;a=i[d+4>>2];i[c>>2]=a;if(a){i[a+8>>2]=c}i[d+8>>2]=i[c+8>>2];a=i[c+8>>2];i[((i[a>>2]!=(c|0))<<2)+a>>2]=d;i[d+4>>2]=c;i[c+8>>2]=d;b=c}c=i[d+8>>2];g[d+12|0]=j[c+12|0];g[c+12|0]=1;g[b+12|0]=1;b=i[c+4>>2];a=i[b>>2];i[c+4>>2]=a;if(a){i[a+8>>2]=c}i[b+8>>2]=i[c+8>>2];a=i[c+8>>2];i[(((c|0)!=i[a>>2])<<2)+a>>2]=b;i[b>>2]=c;i[c+8>>2]=b}function pd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=L-32|0;L=h;i[a+68>>2]=f;d=i[a+56>>2];e=i[d>>2];f=i[d+4>>2];i[h+24>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;a:{f=f-e|0;if((f|0)<1){break a}e=i[d>>2];if((e|0)!=i[d+4>>2]){n=a+60|0;d=f>>2;o=(d|0)>1?d:1;p=a+112|0;while(1){qd(n,i[(l<<2)+e>>2],h+16|0);e=i[h+20>>2];g=e>>31;f=i[h+16>>2];j=f>>31;m=i[h+24>>2];k=m>>31;d=0;k=k^k+m;g=k+((g^e+g)+(j^f+j)|0)|0;if(g>>>0>>0){d=1}j=g;b:{if(!(d|g)){i[h+16>>2]=i[a+108>>2];break b}g=i[a+108>>2];k=g>>31;e=Kn(Jn(g,k,e,e>>31),N,j,d);i[h+20>>2]=e;d=Kn(Jn(g,k,f,f>>31),N,j,d);i[h+16>>2]=d;if((m|0)>=0){i[h+24>>2]=(g+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-g|0;d=e>>31;i[h+24>>2]=f+(d+e^d)}d=Ee(p);f=i[h+16>>2];if(d){i[h+24>>2]=0-i[h+24>>2];i[h+20>>2]=0-i[h+20>>2];f=0-f|0;i[h+16>>2]=f}e=i[h+20>>2];c:{if((f|0)>=0){d=i[a+108>>2];f=d+i[h+24>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[h+24>>2];d=f>>31;d=d^d+f;break d}f=i[h+24>>2];d=i[a+100>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+100>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+100>>2];e=f;break e}g=i[a+100>>2];f:{g:{h:{if(!d){if((f|0)==(g|0)){e=f;break e}e=0;if(f|g){break h}f=0;break e}if(!((d|0)!=(g|0)|f)){f=d;e=d;break e}if((d|0)!=(g|0)){break f}j=i[a+108>>2];break g}j=i[a+108>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(g){break f}}g=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(g|0)){break i}e=i[a+108>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+108>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}i[h+12>>2]=f;i[h+8>>2]=e;j:{if(i[a+8>>2]<1){break j}f=0;while(1){g=i[a+16>>2];k:{if((e|0)>(g|0)){d=i[a+32>>2];i[d+(f<<2)>>2]=g;break k}d=i[a+32>>2];g=d+(f<<2)|0;j=i[a+12>>2];if((e|0)<(j|0)){i[g>>2]=j;break k}i[g>>2]=e}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){e=i[(h+8|0)+(f<<2)>>2];continue}break}e=0;if((g|0)<1){break j}f=l<<3;j=f+c|0;m=b+f|0;while(1){g=e<<2;f=g+j|0;g=i[g+m>>2]+i[d+g>>2]|0;i[f>>2]=g;l:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break l}g=g+i[a+20>>2]|0}i[f>>2]=g}e=e+1|0;if((e|0)>2]){continue}break}}l=l+1|0;if((o|0)==(l|0)){break a}d=i[a+56>>2];e=i[d>>2];if(i[d+4>>2]-e>>2>>>0>l>>>0){continue}break}}Wm();x()}L=h+32|0;return 1}function Jd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=L-32|0;L=h;i[a+68>>2]=f;d=i[a+56>>2];e=i[d>>2];f=i[d+4>>2];i[h+24>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;a:{f=f-e|0;if((f|0)<1){break a}e=i[d>>2];if((e|0)!=i[d+4>>2]){n=a+60|0;d=f>>2;o=(d|0)>1?d:1;p=a+112|0;while(1){Kd(n,i[(l<<2)+e>>2],h+16|0);e=i[h+20>>2];g=e>>31;f=i[h+16>>2];j=f>>31;m=i[h+24>>2];k=m>>31;d=0;k=k^k+m;g=k+((g^e+g)+(j^f+j)|0)|0;if(g>>>0>>0){d=1}j=g;b:{if(!(d|g)){i[h+16>>2]=i[a+108>>2];break b}g=i[a+108>>2];k=g>>31;e=Kn(Jn(g,k,e,e>>31),N,j,d);i[h+20>>2]=e;d=Kn(Jn(g,k,f,f>>31),N,j,d);i[h+16>>2]=d;if((m|0)>=0){i[h+24>>2]=(g+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-g|0;d=e>>31;i[h+24>>2]=f+(d+e^d)}d=Ee(p);f=i[h+16>>2];if(d){i[h+24>>2]=0-i[h+24>>2];i[h+20>>2]=0-i[h+20>>2];f=0-f|0;i[h+16>>2]=f}e=i[h+20>>2];c:{if((f|0)>=0){d=i[a+108>>2];f=d+i[h+24>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[h+24>>2];d=f>>31;d=d^d+f;break d}f=i[h+24>>2];d=i[a+100>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+100>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+100>>2];e=f;break e}g=i[a+100>>2];f:{g:{h:{if(!d){if((f|0)==(g|0)){e=f;break e}e=0;if(f|g){break h}f=0;break e}if(!((d|0)!=(g|0)|f)){f=d;e=d;break e}if((d|0)!=(g|0)){break f}j=i[a+108>>2];break g}j=i[a+108>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(g){break f}}g=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(g|0)){break i}e=i[a+108>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+108>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}i[h+12>>2]=f;i[h+8>>2]=e;j:{if(i[a+8>>2]<1){break j}f=0;while(1){g=i[a+16>>2];k:{if((e|0)>(g|0)){d=i[a+32>>2];i[d+(f<<2)>>2]=g;break k}d=i[a+32>>2];g=d+(f<<2)|0;j=i[a+12>>2];if((e|0)<(j|0)){i[g>>2]=j;break k}i[g>>2]=e}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){e=i[(h+8|0)+(f<<2)>>2];continue}break}e=0;if((g|0)<1){break j}f=l<<3;j=f+c|0;m=b+f|0;while(1){g=e<<2;f=g+j|0;g=i[g+m>>2]+i[d+g>>2]|0;i[f>>2]=g;l:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break l}g=g+i[a+20>>2]|0}i[f>>2]=g}e=e+1|0;if((e|0)>2]){continue}break}}l=l+1|0;if((o|0)==(l|0)){break a}d=i[a+56>>2];e=i[d>>2];if(i[d+4>>2]-e>>2>>>0>l>>>0){continue}break}}Wm();x()}L=h+32|0;return 1}function Ra(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;g=L-96|0;L=g;a:{b:{if(j[i[a+28>>2]+36|0]<=1){f=i[b+12>>2];c=i[b+20>>2];h=i[b+16>>2];d=h+4|0;if(d>>>0<4){c=c+1|0}e=d;d=c;if((f|0)<(c|0)?1:(f|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=h+i[b>>2]|0;h=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[g+92>>2]=h;i[b+16>>2]=e;i[b+20>>2]=d;break b}if(!Sa(1,g+92|0,b)){break a}h=i[g+92>>2]}if(!h){break a}d=i[b+8>>2];c=i[b+16>>2];c=Jn(d-c|0,i[b+12>>2]-(i[b+20>>2]+(d>>>0>>0)|0)|0,5,0)>>>0>>0;d=N;if((d|0)<0?1:(d|0)<=0?c:0){break a}c=i[a+4>>2];d=i[a+8>>2]-c>>2;c:{if(h>>>0>d>>>0){Ta(a+4|0,h-d|0);break c}if(h>>>0>=d>>>0){break c}i[a+8>>2]=c+(h<<2)}y=h>>>0>1?h:1;u=a+16|0;v=i[a+32>>2];w=1;while(1){d:{q=i[b+8>>2];m=i[b+16>>2];e=i[b+12>>2];c=e;d=i[b+20>>2];if((c|0)<(d|0)?1:(c|0)<=(d|0)?q>>>0<=m>>>0:0){break d}s=i[b>>2];x=j[s+m|0];c=d;n=m+1|0;if(n>>>0<1){c=c+1|0}f=b;i[b+16>>2]=n;i[b+20>>2]=c;if((e|0)<(c|0)?1:(e|0)<=(c|0)?q>>>0<=n>>>0:0){break d}n=j[n+s|0];c=d;p=m+2|0;if(p>>>0<2){c=c+1|0}i[b+16>>2]=p;i[f+20>>2]=c;if((e|0)<(c|0)?1:(e|0)<=(c|0)?q>>>0<=p>>>0:0){break d}p=j[p+s|0];c=d;t=m+3|0;if(t>>>0<3){c=c+1|0}i[b+16>>2]=t;i[f+20>>2]=c;if((e|0)<(c|0)?1:(e|0)<=(c|0)?q>>>0<=t>>>0:0){break d}e=j[t+s|0];c=d;d=m+4|0;if(d>>>0<4){c=c+1|0}i[b+16>>2]=d;i[f+20>>2]=c;if(!p|(x>>>0>4|(n+ -1&255)>>>0>10)){break d}m=Ga(g+24|0);d=o(Hh(n),p);Ha(m,x,p<<24>>24,n,(e|0)!=0,d,d>>31);d=k[i[a+28>>2]+36>>1];e:{if((d<<24|d<<8&16711680)>>>16>>>0<=258){f=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];d=e+2|0;if(d>>>0<2){c=c+1|0}q=d;d=c;if((f|0)<(c|0)?1:(f|0)<=(c|0)?l[b+8>>2]>>0:0){break d}c=e+i[b>>2]|0;c=j[c|0]|j[c+1|0]<<8;i[b+16>>2]=q;i[b+20>>2]=d;i[g+20>>2]=c;break e}if(!Sa(1,g+20|0,b)){break d}c=i[g+20>>2]}i[g+84>>2]=c;d=Gm(96);La(d,m);i[g+16>>2]=d;d=rl(v,g+16|0);f=i[g+16>>2];i[g+16>>2]=0;if(f){Ua(f)}e=d<<2;i[i[e+i[v+8>>2]>>2]+60>>2]=c;i[i[a+4>>2]+(r<<2)>>2]=d;c=i[a+16>>2];f=i[a+20>>2]-c>>2;f:{if((d|0)<(f|0)){break f}i[g+12>>2]=-1;d=d+1|0;if(d>>>0>f>>>0){Va(u,d-f|0,g+12|0);c=i[u>>2];break f}if(d>>>0>=f>>>0){break f}i[a+20>>2]=(d<<2)+c}i[c+e>>2]=r;r=r+1|0;w=r>>>0>>0;if((r|0)!=(y|0)){continue}}break}r=w^1}L=g+96|0;return r&1}function zl(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0;h=L-672|0;L=h;e=i[b+12>>2];a:{g=i[b+20>>2];f=i[b+16>>2];d=f+4|0;if(d>>>0<4){g=g+1|0}b:{if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break b}d=f+i[b>>2]|0;m=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=m;d=i[b+20>>2];e=d;n=i[b+16>>2];g=n+4|0;if(g>>>0<4){d=d+1|0}i[b+16>>2]=g;i[b+20>>2]=d;if(m>>>0>31){break b}f=i[b+12>>2];d=n+8|0;if(d>>>0<8){e=e+1|0}if((f|0)<(e|0)?1:(f|0)<=(e|0)?l[b+8>>2]>>0:0){break b}d=g+i[b>>2]|0;i[a+4>>2]=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);d=i[b+20>>2];e=d;n=i[b+16>>2];g=n+4|0;if(g>>>0<4){d=d+1|0}i[b+16>>2]=g;i[b+20>>2]=d;m=i[b+12>>2];d=e;f=n+8|0;if(f>>>0<8){d=d+1|0}if((m|0)<(d|0)?1:(m|0)<=(d|0)?l[b+8>>2]>>0:0){break b}d=g+i[b>>2]|0;m=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+12>>2]=m;e=i[b+20>>2];f=e;d=b;p=d;n=i[d+16>>2];g=n+4|0;if(g>>>0<4){e=e+1|0}i[p+16>>2]=g;i[d+20>>2]=e;d=i[a+20>>2];if((d|0)!=(m|0)?d:0){break b}e=i[b+12>>2];d=f;f=n+8|0;if(f>>>0<8){d=d+1|0}if((e|0)<(d|0)?1:(e|0)<=(d|0)?l[b+8>>2]>>0:0){break b}d=g+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+16>>2]=e;d=b;p=d;g=i[d+20>>2];f=i[d+16>>2]+4|0;if(f>>>0<4){g=g+1|0}i[p+16>>2]=f;i[d+20>>2]=g;if(e>>>0>=7){i[h>>2]=e;zn(14876,h);break b}i[h+664>>2]=c;c:{if(!m){break c}e=i[c>>2];d:{if((i[c+8>>2]-e|0)/12>>>0>=m>>>0){break d}if(m>>>0>=357913942){break a}k=i[c+4>>2];d=o(m,12);f=Gm(d);g=d+f|0;d=f+o((k-e|0)/12|0,12)|0;e:{if((e|0)==(k|0)){f=d;break e}f=d;while(1){f=f+ -12|0;k=k+ -12|0;i[f>>2]=i[k>>2];i[f+4>>2]=i[k+4>>2];i[f+8>>2]=i[k+8>>2];if((e|0)!=(k|0)){continue}break}k=e}i[c+8>>2]=g;i[c+4>>2]=d;i[c>>2]=f;if(!k){break d}qn(k)}k=0;f:{switch(i[a+16>>2]){case 0:d=ib(h+8|0,3);Al(d,b,h+664|0);hb(d);break c;case 1:d=ib(h+8|0,3);Bl(d,b,h+664|0);hb(d);break c;case 2:d=mb(h+8|0,3);Cl(d,b,h+664|0);lb(d);break c;case 3:d=mb(h+8|0,3);Dl(d,b,h+664|0);lb(d);break c;case 4:d=qb(h+8|0,3);El(d,b,h+664|0);pb(d);break c;case 5:d=qb(h+8|0,3);Fl(d,b,h+664|0);pb(d);break c;case 6:break f;default:break b}}d=qb(h+8|0,3);Gl(d,b,h+664|0);pb(d)}k=i[a+12>>2]==((i[c+4>>2]-i[c>>2]|0)/12|0)}L=h+672|0;return k}Da(14937);x()}function me(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0;g=L-48|0;L=g;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;e=i[a+40>>2];d=i[e>>2];f=i[e+4>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{f=f-d|0;if((f|0)<1){break a}d=i[e>>2];if((d|0)!=i[e+4>>2]){o=a+8|0;q=a+44|0;e=f>>2;r=(e|0)>1?e:1;s=a+96|0;while(1){Kd(q,i[(l<<2)+d>>2],g+8|0);e=i[g+12>>2];h=e>>31;f=i[g+8>>2];j=f>>31;n=i[g+16>>2];k=n>>31;d=0;k=k^k+n;h=k+((h^e+h)+(j^f+j)|0)|0;if(h>>>0>>0){d=1}b:{if(!(d|h)){i[g+8>>2]=i[a+92>>2];break b}j=i[a+92>>2];k=j>>31;e=Kn(Jn(j,k,e,e>>31),N,h,d);i[g+12>>2]=e;d=Kn(Jn(j,k,f,f>>31),N,h,d);i[g+8>>2]=d;if((n|0)>=0){i[g+16>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[g+16>>2]=f+(d+e^d)}d=Ee(s);f=i[g+8>>2];if(d){i[g+16>>2]=0-i[g+16>>2];i[g+12>>2]=0-i[g+12>>2];f=0-f|0;i[g+8>>2]=f}e=i[g+12>>2];c:{if((f|0)>=0){d=i[a+92>>2];f=d+i[g+16>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[g+16>>2];d=f>>31;d=d^d+f;break d}f=i[g+16>>2];d=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+84>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+84>>2];e=f;break e}h=i[a+84>>2];f:{g:{h:{if(!d){if((f|0)==(h|0)){e=f;break e}e=0;if(f|h){break h}f=0;break e}if(!((d|0)!=(h|0)|f)){f=d;e=d;break e}if((d|0)!=(h|0)){break f}j=i[a+92>>2];break g}j=i[a+92>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(h){break f}}h=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(h|0)){break i}e=i[a+92>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+92>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}d=l<<3;h=d+b|0;j=i[h+4>>2];h=i[h>>2];i[g+36>>2]=f;i[g+32>>2]=e;i[g+24>>2]=h;i[g+28>>2]=j;ie(g+40|0,o,g+32|0,g+24|0);d=c+d|0;i[d>>2]=i[g+40>>2];i[d+4>>2]=i[g+44>>2];l=l+1|0;if((r|0)==(l|0)){break a}e=i[a+40>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>l>>>0){continue}break}}Wm();x()}L=g+48|0;return 1}function he(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0;g=L-48|0;L=g;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;e=i[a+40>>2];d=i[e>>2];f=i[e+4>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{f=f-d|0;if((f|0)<1){break a}d=i[e>>2];if((d|0)!=i[e+4>>2]){o=a+8|0;q=a+44|0;e=f>>2;r=(e|0)>1?e:1;s=a+96|0;while(1){qd(q,i[(l<<2)+d>>2],g+8|0);e=i[g+12>>2];h=e>>31;f=i[g+8>>2];j=f>>31;n=i[g+16>>2];k=n>>31;d=0;k=k^k+n;h=k+((h^e+h)+(j^f+j)|0)|0;if(h>>>0>>0){d=1}b:{if(!(d|h)){i[g+8>>2]=i[a+92>>2];break b}j=i[a+92>>2];k=j>>31;e=Kn(Jn(j,k,e,e>>31),N,h,d);i[g+12>>2]=e;d=Kn(Jn(j,k,f,f>>31),N,h,d);i[g+8>>2]=d;if((n|0)>=0){i[g+16>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[g+16>>2]=f+(d+e^d)}d=Ee(s);f=i[g+8>>2];if(d){i[g+16>>2]=0-i[g+16>>2];i[g+12>>2]=0-i[g+12>>2];f=0-f|0;i[g+8>>2]=f}e=i[g+12>>2];c:{if((f|0)>=0){d=i[a+92>>2];f=d+i[g+16>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[g+16>>2];d=f>>31;d=d^d+f;break d}f=i[g+16>>2];d=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+84>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+84>>2];e=f;break e}h=i[a+84>>2];f:{g:{h:{if(!d){if((f|0)==(h|0)){e=f;break e}e=0;if(f|h){break h}f=0;break e}if(!((d|0)!=(h|0)|f)){f=d;e=d;break e}if((d|0)!=(h|0)){break f}j=i[a+92>>2];break g}j=i[a+92>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(h){break f}}h=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(h|0)){break i}e=i[a+92>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+92>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}d=l<<3;h=d+b|0;j=i[h+4>>2];h=i[h>>2];i[g+36>>2]=f;i[g+32>>2]=e;i[g+24>>2]=h;i[g+28>>2]=j;ie(g+40|0,o,g+32|0,g+24|0);d=c+d|0;i[d>>2]=i[g+40>>2];i[d+4>>2]=i[g+44>>2];l=l+1|0;if((r|0)==(l|0)){break a}e=i[a+40>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>l>>>0){continue}break}}Wm();x()}L=g+48|0;return 1}function ce(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0;g=L-48|0;L=g;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;e=i[a+40>>2];d=i[e>>2];f=i[e+4>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{f=f-d|0;if((f|0)<1){break a}d=i[e>>2];if((d|0)!=i[e+4>>2]){o=a+8|0;q=a+44|0;e=f>>2;r=(e|0)>1?e:1;s=a+96|0;while(1){Kd(q,i[(l<<2)+d>>2],g+8|0);e=i[g+12>>2];h=e>>31;f=i[g+8>>2];j=f>>31;n=i[g+16>>2];k=n>>31;d=0;k=k^k+n;h=k+((h^e+h)+(j^f+j)|0)|0;if(h>>>0>>0){d=1}b:{if(!(d|h)){i[g+8>>2]=i[a+92>>2];break b}j=i[a+92>>2];k=j>>31;e=Kn(Jn(j,k,e,e>>31),N,h,d);i[g+12>>2]=e;d=Kn(Jn(j,k,f,f>>31),N,h,d);i[g+8>>2]=d;if((n|0)>=0){i[g+16>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[g+16>>2]=f+(d+e^d)}d=Ee(s);f=i[g+8>>2];if(d){i[g+16>>2]=0-i[g+16>>2];i[g+12>>2]=0-i[g+12>>2];f=0-f|0;i[g+8>>2]=f}e=i[g+12>>2];c:{if((f|0)>=0){d=i[a+92>>2];f=d+i[g+16>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[g+16>>2];d=f>>31;d=d^d+f;break d}f=i[g+16>>2];d=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+84>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+84>>2];e=f;break e}h=i[a+84>>2];f:{g:{h:{if(!d){if((f|0)==(h|0)){e=f;break e}e=0;if(f|h){break h}f=0;break e}if(!((d|0)!=(h|0)|f)){f=d;e=d;break e}if((d|0)!=(h|0)){break f}j=i[a+92>>2];break g}j=i[a+92>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(h){break f}}h=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(h|0)){break i}e=i[a+92>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+92>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}d=l<<3;h=d+b|0;j=i[h+4>>2];i[g+40>>2]=i[h>>2];i[g+44>>2]=j;i[g+28>>2]=f;i[g+24>>2]=e;_d(g+32|0,o,g+24|0,g+40|0);d=c+d|0;i[d>>2]=i[g+32>>2];i[d+4>>2]=i[g+36>>2];l=l+1|0;if((r|0)==(l|0)){break a}e=i[a+40>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>l>>>0){continue}break}}Wm();x()}L=g+48|0;return 1}function Zd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0;g=L-48|0;L=g;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;e=i[a+40>>2];d=i[e>>2];f=i[e+4>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{f=f-d|0;if((f|0)<1){break a}d=i[e>>2];if((d|0)!=i[e+4>>2]){o=a+8|0;q=a+44|0;e=f>>2;r=(e|0)>1?e:1;s=a+96|0;while(1){qd(q,i[(l<<2)+d>>2],g+8|0);e=i[g+12>>2];h=e>>31;f=i[g+8>>2];j=f>>31;n=i[g+16>>2];k=n>>31;d=0;k=k^k+n;h=k+((h^e+h)+(j^f+j)|0)|0;if(h>>>0>>0){d=1}b:{if(!(d|h)){i[g+8>>2]=i[a+92>>2];break b}j=i[a+92>>2];k=j>>31;e=Kn(Jn(j,k,e,e>>31),N,h,d);i[g+12>>2]=e;d=Kn(Jn(j,k,f,f>>31),N,h,d);i[g+8>>2]=d;if((n|0)>=0){i[g+16>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[g+16>>2]=f+(d+e^d)}d=Ee(s);f=i[g+8>>2];if(d){i[g+16>>2]=0-i[g+16>>2];i[g+12>>2]=0-i[g+12>>2];f=0-f|0;i[g+8>>2]=f}e=i[g+12>>2];c:{if((f|0)>=0){d=i[a+92>>2];f=d+i[g+16>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[g+16>>2];d=f>>31;d=d^d+f;break d}f=i[g+16>>2];d=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+84>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+84>>2];e=f;break e}h=i[a+84>>2];f:{g:{h:{if(!d){if((f|0)==(h|0)){e=f;break e}e=0;if(f|h){break h}f=0;break e}if(!((d|0)!=(h|0)|f)){f=d;e=d;break e}if((d|0)!=(h|0)){break f}j=i[a+92>>2];break g}j=i[a+92>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(h){break f}}h=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(h|0)){break i}e=i[a+92>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+92>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}d=l<<3;h=d+b|0;j=i[h+4>>2];i[g+40>>2]=i[h>>2];i[g+44>>2]=j;i[g+28>>2]=f;i[g+24>>2]=e;_d(g+32|0,o,g+24|0,g+40|0);d=c+d|0;i[d>>2]=i[g+32>>2];i[d+4>>2]=i[g+36>>2];l=l+1|0;if((r|0)==(l|0)){break a}e=i[a+40>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>l>>>0){continue}break}}Wm();x()}L=g+48|0;return 1}function Yk(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0;d=L-48|0;L=d;c=Gm(8);i[c+4>>2]=b;i[c>>2]=0;b=c+8|0;i[d+40>>2]=b;i[d+36>>2]=b;i[d+32>>2]=c;a:{b:{c:{d:{while(1){b=b+ -8|0;m=i[b+4>>2];q=i[b>>2];i[d+36>>2]=b;if(q){i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;n=1;b=i[a>>2];h=i[b+16>>2];f=i[b+12>>2];c=i[b+20>>2];e:{if((f|0)<(c|0)?1:(f|0)<=(c|0)?l[b+8>>2]<=h>>>0:0){break e}e=j[h+i[b>>2]|0];f=h+1|0;if(f>>>0<1){c=c+1|0}i[b+16>>2]=f;i[b+20>>2]=c;Om(d+16|0,e);if(e){f=i[a>>2];p=Sm(d+16|0);k=i[f+12>>2];h=i[f+20>>2];o=i[f+16>>2];b=e;c=o+b|0;if(c>>>0>>0){h=h+1|0}if((k|0)<(h|0)?1:(k|0)<=(h|0)?l[f+8>>2]>>0:0){break e}sn(p,o+i[f>>2]|0,e);c=f;f=c;h=i[c+20>>2];e=b+i[c+16>>2]|0;if(e>>>0>>0){h=h+1|0}i[f+16>>2]=e;i[c+20>>2]=h}m=Gm(24);b=m;i[b+4>>2]=0;i[b+8>>2]=0;i[b+16>>2]=0;i[b+20>>2]=0;i[b>>2]=b+4;i[b+12>>2]=b+16;i[d+8>>2]=b;b=kl(q,d+16|0,d+8|0);c=i[d+8>>2];i[d+8>>2]=0;if(c){sh(c+12|0,i[c+16>>2]);th(c,i[c+4>>2]);qn(c)}n=b^1}if(g[d+27|0]<=-1){qn(i[d+16>>2])}if(n){break b}}if(!m){break b}i[d+16>>2]=0;if(!Zk(1,d+16|0,i[a>>2])){break b}b=0;c=i[d+16>>2];if(c){while(1){if(!_k(a,m)){break b}b=b+1|0;if((c|0)!=(b|0)){continue}break}}i[d+4>>2]=0;if(!Zk(1,d+4|0,i[a>>2])){break b}e=i[a>>2];c=i[e+8>>2];b=i[e+16>>2];p=i[d+4>>2];f=c-b>>>0

>>0;b=i[e+12>>2]-(i[e+20>>2]+(c>>>0>>0)|0)|0;if((b|0)<0?1:(b|0)<=0?f:0){break b}if(p){n=0;while(1){b=i[d+36>>2];c=i[d+40>>2];f:{if(b>>>0>>0){i[b+4>>2]=0;i[b>>2]=m;i[d+36>>2]=b+8;break f}k=i[d+32>>2];o=b-k|0;b=o>>3;h=b+1|0;if(h>>>0>=536870912){break d}f=b<<3;e=c-k|0;c=e>>2;e=e>>3>>>0<268435455?c>>>0>>0?h:c:536870911;b=0;g:{if(!e){break g}if(e>>>0>=536870912){break c}b=Gm(e<<3)}c=f+b|0;i[c+4>>2]=0;i[c>>2]=m;e=b+(e<<3)|0;c=c+8|0;if((o|0)>=1){sn(b,k,o)}i[d+40>>2]=e;i[d+36>>2]=c;i[d+32>>2]=b;if(!k){break f}qn(k)}n=n+1|0;if((p|0)!=(n|0)){continue}break}}b=i[d+36>>2];c=i[d+32>>2];if((b|0)!=(c|0)){continue}break}a=1;break a}Vm();x()}Da(14616);x()}c=i[d+32>>2];a=0}if(c){i[d+36>>2]=c;qn(c)}L=d+48|0;return a}function qf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{c=k[b+38>>1];if(!c){break a}b:{if(c>>>0<=511){d=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];f=e+4|0;if(f>>>0<4){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[a+12>>2]=f;d=i[b+20>>2];e=i[b+16>>2]+4|0;if(e>>>0<4){d=d+1|0}c=b;i[c+16>>2]=e;i[c+20>>2]=d;break b}c=a+12|0;if(!cf(1,c,b)){break a}f=i[c>>2]}d=i[a>>2];c=i[a+4>>2]-d>>2;c:{if(f>>>0>c>>>0){Ae(a,f-c|0);f=i[a+12>>2];break c}if(f>>>0>=c>>>0){break c}i[a+4>>2]=d+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];m=i[b+12>>2];while(1){e=i[b+16>>2];c=i[b+20>>2];if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];n=j[p+e|0];e=e+1|0;if(e>>>0<1){c=c+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=c;d=n>>>2|0;e=0;d:{e:{f:{g:{q=n&3;switch(q|0){case 3:break g;case 0:break e;default:break f}}c=d+g|0;if(c>>>0>=f>>>0){return 0}tn(i[a>>2]+(g<<2)|0,0,(n&252)+4|0);g=c;break d}while(1){if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=h>>>0:0){return 0}n=j[h+p|0];h=h+1|0;if(h>>>0<1){c=c+1|0}i[b+16>>2]=h;i[b+20>>2]=c;d=n<<(e<<3|6)|d;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=d}g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}m=a+16|0;g=i[a>>2];b=i[a+16>>2];c=i[a+20>>2]-b|0;d=c>>2;h:{if(d>>>0<=1048575){Ae(m,1048576-d|0);break h}if((c|0)==4194304){break h}i[a+20>>2]=b+4194304}i:{j:{b=a+28|0;c=i[b>>2];d=i[a+32>>2]-c>>3;if(f>>>0>d>>>0){df(b,f-d|0);c=i[b>>2];break j}if(f>>>0>>0){i[a+32>>2]=(f<<3)+c}if(f){break j}b=0;a=0;break i}a=i[g>>2];e=0;i[c+4>>2]=0;i[c>>2]=a;b=1;d=i[g>>2];if(d>>>0<=1048576){b=0;while(1){k:{if(e>>>0>>0){a=i[m>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((d|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+c|0;i[h+4>>2]=d;i[h>>2]=e;e=d;d=d+i[a>>2]|0;if(d>>>0>1048576){break k}continue}}break}b=b>>>0>>0}a=(d|0)==1048576}return a&(b^1)}return r}function mf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{c=k[b+38>>1];if(!c){break a}b:{if(c>>>0<=511){d=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];f=e+4|0;if(f>>>0<4){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[a+12>>2]=f;d=i[b+20>>2];e=i[b+16>>2]+4|0;if(e>>>0<4){d=d+1|0}c=b;i[c+16>>2]=e;i[c+20>>2]=d;break b}c=a+12|0;if(!cf(1,c,b)){break a}f=i[c>>2]}d=i[a>>2];c=i[a+4>>2]-d>>2;c:{if(f>>>0>c>>>0){Ae(a,f-c|0);f=i[a+12>>2];break c}if(f>>>0>=c>>>0){break c}i[a+4>>2]=d+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];m=i[b+12>>2];while(1){e=i[b+16>>2];c=i[b+20>>2];if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];n=j[p+e|0];e=e+1|0;if(e>>>0<1){c=c+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=c;d=n>>>2|0;e=0;d:{e:{f:{g:{q=n&3;switch(q|0){case 3:break g;case 0:break e;default:break f}}c=d+g|0;if(c>>>0>=f>>>0){return 0}tn(i[a>>2]+(g<<2)|0,0,(n&252)+4|0);g=c;break d}while(1){if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=h>>>0:0){return 0}n=j[h+p|0];h=h+1|0;if(h>>>0<1){c=c+1|0}i[b+16>>2]=h;i[b+20>>2]=c;d=n<<(e<<3|6)|d;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=d}g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}m=a+16|0;g=i[a>>2];b=i[a+16>>2];c=i[a+20>>2]-b|0;d=c>>2;h:{if(d>>>0<=262143){Ae(m,262144-d|0);break h}if((c|0)==1048576){break h}i[a+20>>2]=b- -1048576}i:{j:{b=a+28|0;c=i[b>>2];d=i[a+32>>2]-c>>3;if(f>>>0>d>>>0){df(b,f-d|0);c=i[b>>2];break j}if(f>>>0>>0){i[a+32>>2]=(f<<3)+c}if(f){break j}b=0;a=0;break i}a=i[g>>2];e=0;i[c+4>>2]=0;i[c>>2]=a;b=1;d=i[g>>2];if(d>>>0<=262144){b=0;while(1){k:{if(e>>>0>>0){a=i[m>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((d|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+c|0;i[h+4>>2]=d;i[h>>2]=e;e=d;d=d+i[a>>2]|0;if(d>>>0>262144){break k}continue}}break}b=b>>>0>>0}a=(d|0)==262144}return a&(b^1)}return r}function of(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{c=k[b+38>>1];if(!c){break a}b:{if(c>>>0<=511){d=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];f=e+4|0;if(f>>>0<4){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[a+12>>2]=f;d=i[b+20>>2];e=i[b+16>>2]+4|0;if(e>>>0<4){d=d+1|0}c=b;i[c+16>>2]=e;i[c+20>>2]=d;break b}c=a+12|0;if(!cf(1,c,b)){break a}f=i[c>>2]}d=i[a>>2];c=i[a+4>>2]-d>>2;c:{if(f>>>0>c>>>0){Ae(a,f-c|0);f=i[a+12>>2];break c}if(f>>>0>=c>>>0){break c}i[a+4>>2]=d+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];m=i[b+12>>2];while(1){e=i[b+16>>2];c=i[b+20>>2];if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];n=j[p+e|0];e=e+1|0;if(e>>>0<1){c=c+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=c;d=n>>>2|0;e=0;d:{e:{f:{g:{q=n&3;switch(q|0){case 3:break g;case 0:break e;default:break f}}c=d+g|0;if(c>>>0>=f>>>0){return 0}tn(i[a>>2]+(g<<2)|0,0,(n&252)+4|0);g=c;break d}while(1){if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=h>>>0:0){return 0}n=j[h+p|0];h=h+1|0;if(h>>>0<1){c=c+1|0}i[b+16>>2]=h;i[b+20>>2]=c;d=n<<(e<<3|6)|d;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=d}g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}m=a+16|0;g=i[a>>2];b=i[a+16>>2];c=i[a+20>>2]-b|0;d=c>>2;h:{if(d>>>0<=524287){Ae(m,524288-d|0);break h}if((c|0)==2097152){break h}i[a+20>>2]=b+2097152}i:{j:{b=a+28|0;c=i[b>>2];d=i[a+32>>2]-c>>3;if(f>>>0>d>>>0){df(b,f-d|0);c=i[b>>2];break j}if(f>>>0>>0){i[a+32>>2]=(f<<3)+c}if(f){break j}b=0;a=0;break i}a=i[g>>2];e=0;i[c+4>>2]=0;i[c>>2]=a;b=1;d=i[g>>2];if(d>>>0<=524288){b=0;while(1){k:{if(e>>>0>>0){a=i[m>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((d|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+c|0;i[h+4>>2]=d;i[h>>2]=e;e=d;d=d+i[a>>2]|0;if(d>>>0>524288){break k}continue}}break}b=b>>>0>>0}a=(d|0)==524288}return a&(b^1)}return r}function kf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{c=k[b+38>>1];if(!c){break a}b:{if(c>>>0<=511){d=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];f=e+4|0;if(f>>>0<4){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[a+12>>2]=f;d=i[b+20>>2];e=i[b+16>>2]+4|0;if(e>>>0<4){d=d+1|0}c=b;i[c+16>>2]=e;i[c+20>>2]=d;break b}c=a+12|0;if(!cf(1,c,b)){break a}f=i[c>>2]}d=i[a>>2];c=i[a+4>>2]-d>>2;c:{if(f>>>0>c>>>0){Ae(a,f-c|0);f=i[a+12>>2];break c}if(f>>>0>=c>>>0){break c}i[a+4>>2]=d+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];m=i[b+12>>2];while(1){e=i[b+16>>2];c=i[b+20>>2];if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];n=j[p+e|0];e=e+1|0;if(e>>>0<1){c=c+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=c;d=n>>>2|0;e=0;d:{e:{f:{g:{q=n&3;switch(q|0){case 3:break g;case 0:break e;default:break f}}c=d+g|0;if(c>>>0>=f>>>0){return 0}tn(i[a>>2]+(g<<2)|0,0,(n&252)+4|0);g=c;break d}while(1){if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=h>>>0:0){return 0}n=j[h+p|0];h=h+1|0;if(h>>>0<1){c=c+1|0}i[b+16>>2]=h;i[b+20>>2]=c;d=n<<(e<<3|6)|d;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=d}g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}m=a+16|0;g=i[a>>2];b=i[a+16>>2];c=i[a+20>>2]-b|0;d=c>>2;h:{if(d>>>0<=65535){Ae(m,65536-d|0);break h}if((c|0)==262144){break h}i[a+20>>2]=b+262144}i:{j:{b=a+28|0;c=i[b>>2];d=i[a+32>>2]-c>>3;if(f>>>0>d>>>0){df(b,f-d|0);c=i[b>>2];break j}if(f>>>0>>0){i[a+32>>2]=(f<<3)+c}if(f){break j}b=0;a=0;break i}a=i[g>>2];e=0;i[c+4>>2]=0;i[c>>2]=a;b=1;d=i[g>>2];if(d>>>0<=65536){b=0;while(1){k:{if(e>>>0>>0){a=i[m>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((d|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+c|0;i[h+4>>2]=d;i[h>>2]=e;e=d;d=d+i[a>>2]|0;if(d>>>0>65536){break k}continue}}break}b=b>>>0>>0}a=(d|0)==65536}return a&(b^1)}return r}function hf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{c=k[b+38>>1];if(!c){break a}b:{if(c>>>0<=511){d=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];f=e+4|0;if(f>>>0<4){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[a+12>>2]=f;d=i[b+20>>2];e=i[b+16>>2]+4|0;if(e>>>0<4){d=d+1|0}c=b;i[c+16>>2]=e;i[c+20>>2]=d;break b}c=a+12|0;if(!cf(1,c,b)){break a}f=i[c>>2]}d=i[a>>2];c=i[a+4>>2]-d>>2;c:{if(f>>>0>c>>>0){Ae(a,f-c|0);f=i[a+12>>2];break c}if(f>>>0>=c>>>0){break c}i[a+4>>2]=d+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];m=i[b+12>>2];while(1){e=i[b+16>>2];c=i[b+20>>2];if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];n=j[p+e|0];e=e+1|0;if(e>>>0<1){c=c+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=c;d=n>>>2|0;e=0;d:{e:{f:{g:{q=n&3;switch(q|0){case 3:break g;case 0:break e;default:break f}}c=d+g|0;if(c>>>0>=f>>>0){return 0}tn(i[a>>2]+(g<<2)|0,0,(n&252)+4|0);g=c;break d}while(1){if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=h>>>0:0){return 0}n=j[h+p|0];h=h+1|0;if(h>>>0<1){c=c+1|0}i[b+16>>2]=h;i[b+20>>2]=c;d=n<<(e<<3|6)|d;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=d}g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}m=a+16|0;g=i[a>>2];b=i[a+16>>2];c=i[a+20>>2]-b|0;d=c>>2;h:{if(d>>>0<=32767){Ae(m,32768-d|0);break h}if((c|0)==131072){break h}i[a+20>>2]=b+131072}i:{j:{b=a+28|0;c=i[b>>2];d=i[a+32>>2]-c>>3;if(f>>>0>d>>>0){df(b,f-d|0);c=i[b>>2];break j}if(f>>>0>>0){i[a+32>>2]=(f<<3)+c}if(f){break j}b=0;a=0;break i}a=i[g>>2];e=0;i[c+4>>2]=0;i[c>>2]=a;b=1;d=i[g>>2];if(d>>>0<=32768){b=0;while(1){k:{if(e>>>0>>0){a=i[m>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((d|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+c|0;i[h+4>>2]=d;i[h>>2]=e;e=d;d=d+i[a>>2]|0;if(d>>>0>32768){break k}continue}}break}b=b>>>0>>0}a=(d|0)==32768}return a&(b^1)}return r}function ff(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{c=k[b+38>>1];if(!c){break a}b:{if(c>>>0<=511){d=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];f=e+4|0;if(f>>>0<4){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[a+12>>2]=f;d=i[b+20>>2];e=i[b+16>>2]+4|0;if(e>>>0<4){d=d+1|0}c=b;i[c+16>>2]=e;i[c+20>>2]=d;break b}c=a+12|0;if(!cf(1,c,b)){break a}f=i[c>>2]}d=i[a>>2];c=i[a+4>>2]-d>>2;c:{if(f>>>0>c>>>0){Ae(a,f-c|0);f=i[a+12>>2];break c}if(f>>>0>=c>>>0){break c}i[a+4>>2]=d+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];m=i[b+12>>2];while(1){e=i[b+16>>2];c=i[b+20>>2];if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];n=j[p+e|0];e=e+1|0;if(e>>>0<1){c=c+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=c;d=n>>>2|0;e=0;d:{e:{f:{g:{q=n&3;switch(q|0){case 3:break g;case 0:break e;default:break f}}c=d+g|0;if(c>>>0>=f>>>0){return 0}tn(i[a>>2]+(g<<2)|0,0,(n&252)+4|0);g=c;break d}while(1){if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=h>>>0:0){return 0}n=j[h+p|0];h=h+1|0;if(h>>>0<1){c=c+1|0}i[b+16>>2]=h;i[b+20>>2]=c;d=n<<(e<<3|6)|d;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=d}g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}m=a+16|0;g=i[a>>2];b=i[a+16>>2];c=i[a+20>>2]-b|0;d=c>>2;h:{if(d>>>0<=8191){Ae(m,8192-d|0);break h}if((c|0)==32768){break h}i[a+20>>2]=b+32768}i:{j:{b=a+28|0;c=i[b>>2];d=i[a+32>>2]-c>>3;if(f>>>0>d>>>0){df(b,f-d|0);c=i[b>>2];break j}if(f>>>0>>0){i[a+32>>2]=(f<<3)+c}if(f){break j}b=0;a=0;break i}a=i[g>>2];e=0;i[c+4>>2]=0;i[c>>2]=a;b=1;d=i[g>>2];if(d>>>0<=8192){b=0;while(1){k:{if(e>>>0>>0){a=i[m>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((d|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+c|0;i[h+4>>2]=d;i[h>>2]=e;e=d;d=d+i[a>>2]|0;if(d>>>0>8192){break k}continue}}break}b=b>>>0>>0}a=(d|0)==8192}return a&(b^1)}return r}function Ve(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{c=k[b+38>>1];if(!c){break a}b:{if(c>>>0<=511){d=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];f=e+4|0;if(f>>>0<4){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[a+12>>2]=f;d=i[b+20>>2];e=i[b+16>>2]+4|0;if(e>>>0<4){d=d+1|0}c=b;i[c+16>>2]=e;i[c+20>>2]=d;break b}c=a+12|0;if(!cf(1,c,b)){break a}f=i[c>>2]}d=i[a>>2];c=i[a+4>>2]-d>>2;c:{if(f>>>0>c>>>0){Ae(a,f-c|0);f=i[a+12>>2];break c}if(f>>>0>=c>>>0){break c}i[a+4>>2]=d+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];m=i[b+12>>2];while(1){e=i[b+16>>2];c=i[b+20>>2];if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];n=j[p+e|0];e=e+1|0;if(e>>>0<1){c=c+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=c;d=n>>>2|0;e=0;d:{e:{f:{g:{q=n&3;switch(q|0){case 3:break g;case 0:break e;default:break f}}c=d+g|0;if(c>>>0>=f>>>0){return 0}tn(i[a>>2]+(g<<2)|0,0,(n&252)+4|0);g=c;break d}while(1){if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=h>>>0:0){return 0}n=j[h+p|0];h=h+1|0;if(h>>>0<1){c=c+1|0}i[b+16>>2]=h;i[b+20>>2]=c;d=n<<(e<<3|6)|d;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=d}g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}m=a+16|0;g=i[a>>2];b=i[a+16>>2];c=i[a+20>>2]-b|0;d=c>>2;h:{if(d>>>0<=4095){Ae(m,4096-d|0);break h}if((c|0)==16384){break h}i[a+20>>2]=b+16384}i:{j:{b=a+28|0;c=i[b>>2];d=i[a+32>>2]-c>>3;if(f>>>0>d>>>0){df(b,f-d|0);c=i[b>>2];break j}if(f>>>0>>0){i[a+32>>2]=(f<<3)+c}if(f){break j}b=0;a=0;break i}a=i[g>>2];e=0;i[c+4>>2]=0;i[c>>2]=a;b=1;d=i[g>>2];if(d>>>0<=4096){b=0;while(1){k:{if(e>>>0>>0){a=i[m>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((d|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+c|0;i[h+4>>2]=d;i[h>>2]=e;e=d;d=d+i[a>>2]|0;if(d>>>0>4096){break k}continue}}break}b=b>>>0>>0}a=(d|0)==4096}return a&(b^1)}return r}function Dk(a){var b=0,c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;f=L-32|0;L=f;o=i[a>>2];c=i[a+4>>2];g[f|0]=0;p=Gk(f+16|0,c-o>>2,f);i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;h=i[a>>2];b=i[a+4>>2];a:{b:{while(1){c:{q=0;l=0;if((b|0)==(h|0)){break c}while(1){j=i[p>>2];d:{if(i[j+(l>>>3&536870908)>>2]>>>(l&31)&1){break d}k=i[f>>2];i[f+4>>2]=k;b=l;while(1){e:{c=b+1|0;o=b;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)==-1){break e}d=i[i[a+12>>2]+(c<<2)>>2];if((d|0)==-1){break e}c=d+1|0;b=(c>>>0)%3|0?c:d+ -2|0;if((l|0)==(b|0)|(b|0)==-1){break e}if(!(i[(b>>>3&536870908)+j>>2]>>>(b&31)&1)){continue}}break}d=k;b=d;e=o;while(1){c=(e>>>3&536870908)+j|0;i[c>>2]=i[c>>2]|1<<(e&31);c=e+1|0;c=(c>>>0)%3|0?c:e+ -2|0;n=((e>>>0)%3|0?-1:2)+e|0;if((b|0)!=(d|0)){j=i[(c<<2)+h>>2];while(1){f:{if((j|0)!=i[b>>2]){break f}e=-1;m=i[b+4>>2];e=(n|0)!=-1?i[i[a+12>>2]+(n<<2)>>2]:e;if((m|0)==(e|0)){break f}d=-1;d=(m|0)!=-1?i[i[a+12>>2]+(m<<2)>>2]:d;if((e|0)!=-1){i[i[a+12>>2]+(e<<2)>>2]=-1}c=i[a+12>>2];if((d|0)!=-1){i[c+(d<<2)>>2]=-1}i[c+(n<<2)>>2]=-1;i[c+(m<<2)>>2]=-1;q=1;break d}b=b+8|0;if((d|0)!=(b|0)){continue}break}}m=n<<2;r=i[m+h>>2];b=i[f+8>>2];g:{if((b|0)!=(d|0)){i[d>>2]=r;i[d+4>>2]=c;i[f+4>>2]=d+8;break g}j=d-k|0;d=j>>3;h=d+1|0;if(h>>>0>=536870912){break b}s=d<<3;e=b-k|0;b=e>>2;h=e>>3>>>0<268435455?b>>>0>>0?h:b:536870911;d=0;h:{if(!h){break h}if(h>>>0>=536870912){break a}d=Gm(h<<3)}e=s+d|0;b=e;i[b>>2]=r;i[b+4>>2]=c;b=d+(h<<3)|0;c=e+8|0;if((j|0)>=1){sn(d,k,j)}i[f+8>>2]=b;i[f+4>>2]=c;i[f>>2]=d;if(!k){break g}qn(k)}i:{if((n|0)==-1){break i}c=i[m+i[a+12>>2]>>2];if((c|0)==-1){break i}e=c+((c>>>0)%3|0?-1:2)|0;if((o|0)==(e|0)|(e|0)==-1){break i}h=i[a>>2];j=i[p>>2];d=i[f+4>>2];k=i[f>>2];b=k;continue}break}h=i[a>>2]}l=l+1|0;b=i[a+4>>2];if(l>>>0>2>>>0){continue}break}if(q){continue}}break}a=i[f>>2];if(a){i[f+4>>2]=a;qn(a)}a=i[p>>2];if(a){qn(a)}L=f+32|0;return}Vm();x()}Da(14288);x()}function Wf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0;j=L-16|0;L=j;c=i[a+4>>2];i[a+40>>2]=i[a>>2];i[a+44>>2]=c;e=a+32|0;c=e;d=i[c+4>>2];i[a+72>>2]=i[c>>2];i[a+76>>2]=d;d=a+24|0;g=i[d+4>>2];c=a- -64|0;i[c>>2]=i[d>>2];i[c+4>>2]=g;f=a+16|0;c=f;g=i[c+4>>2];i[a+56>>2]=i[c>>2];i[a+60>>2]=g;g=a+8|0;c=g;h=i[c+4>>2];i[a+48>>2]=i[c>>2];i[a+52>>2]=h;a:{b:{c=a+40|0;if(Eh(c,1,j+8|0)){h=i[c+4>>2];i[a>>2]=i[c>>2];i[a+4>>2]=h;h=i[c+36>>2];i[e>>2]=i[c+32>>2];i[e+4>>2]=h;e=i[c+28>>2];i[d>>2]=i[c+24>>2];i[d+4>>2]=e;d=i[c+20>>2];h=d;e=i[c+16>>2];i[f>>2]=e;i[f+4>>2]=d;d=i[c+12>>2];f=d;c=i[c+8>>2];i[g>>2]=c;i[g+4>>2]=d;d=e;g=c-d|0;l=i[j+12>>2];d=f-((c>>>0>>0)+h|0)|0;c=i[j+8>>2];if((l|0)==(d|0)&c>>>0<=g>>>0|l>>>0>>0){break b}}c=0;break a}f=h+l|0;e=c+e|0;if(e>>>0>>0){f=f+1|0}i[a+16>>2]=e;i[a+20>>2]=f;c:{if(k[a+38>>1]<=513){c=i[a+4>>2];i[a+96>>2]=i[a>>2];i[a+100>>2]=c;e=a+32|0;c=e;d=i[c+4>>2];i[a+128>>2]=i[c>>2];i[a+132>>2]=d;d=a+24|0;c=d;f=i[c+4>>2];i[a+120>>2]=i[c>>2];i[a+124>>2]=f;f=a+16|0;c=f;g=i[c+4>>2];i[a+112>>2]=i[c>>2];i[a+116>>2]=g;g=a+8|0;c=g;h=i[c+4>>2];i[a+104>>2]=i[c>>2];i[a+108>>2]=h;d:{c=a+96|0;if(Eh(c,1,j+8|0)){h=i[c+4>>2];i[a>>2]=i[c>>2];i[a+4>>2]=h;h=i[c+36>>2];i[e>>2]=i[c+32>>2];i[e+4>>2]=h;e=i[c+28>>2];i[d>>2]=i[c+24>>2];i[d+4>>2]=e;d=i[c+20>>2];h=d;e=i[c+16>>2];i[f>>2]=e;i[f+4>>2]=d;d=i[c+12>>2];f=d;c=i[c+8>>2];i[g>>2]=c;i[g+4>>2]=d;d=e;g=c-d|0;l=i[j+12>>2];d=f-((c>>>0>>0)+h|0)|0;c=i[j+8>>2];if((l|0)==(d|0)&c>>>0<=g>>>0|l>>>0>>0){break d}}c=0;break a}f=h+l|0;e=c+e|0;if(e>>>0>>0){f=f+1|0}i[a+16>>2]=e;i[a+20>>2]=f;break c}c=0;if(!Ce(a+80|0,a)){break a}}c=0;if(!ag(a)){break a}c=i[a+4>>2];i[b>>2]=i[a>>2];i[b+4>>2]=c;c=i[a+36>>2];i[b+32>>2]=i[a+32>>2];i[b+36>>2]=c;c=i[a+28>>2];i[b+24>>2]=i[a+24>>2];i[b+28>>2]=c;c=i[a+20>>2];i[b+16>>2]=i[a+16>>2];i[b+20>>2]=c;c=i[a+12>>2];i[b+8>>2]=i[a+8>>2];i[b+12>>2]=c;c=1}L=j+16|0;return c}function sc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;a:{s=O[i[i[a>>2]+44>>2]](a)|0;if((s|0)<1){break a}h=i[b+4>>2]-i[b>>2]>>2;tc(a,h,s);d=i[a+16>>2];if(!i[d+80>>2]){break a}f=i[i[d>>2]>>2];if(!f){break a}m=i[c+8>>2];k=i[c+16>>2];g=i[c+12>>2];n=g;e=i[c+20>>2];if((n|0)<(e|0)?1:(n|0)<=(e|0)?m>>>0<=k>>>0:0){break a}n=o(h,s);q=f+i[d+48>>2]|0;r=i[c>>2];t=j[r+k|0];h=c;d=e;f=k+1|0;if(f>>>0<1){d=d+1|0}p=f;f=d;i[h+16>>2]=p;i[h+20>>2]=d;b:{c:{d:{if(t){if(Se(n,s,c,q)){break d}break a}if((g|0)<(f|0)?1:(g|0)<=(f|0)?m>>>0<=p>>>0:0){break a}h=j[p+r|0];d=e;e=k+2|0;if(e>>>0<2){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;d=Hh(5);e=i[i[a+16>>2]+64>>2];e=i[e+4>>2]-i[e>>2]|0;e:{if((d|0)==(h|0)){h=n<<2;if(e>>>0>>0){break a}f=i[c+12>>2];d=i[c+20>>2];k=i[c+16>>2];e=h;g=k+e|0;if(g>>>0>>0){d=d+1|0}if((f|0)>(d|0)?1:(f|0)>=(d|0)?l[c+8>>2]>=g>>>0:0){break e}break a}if(e>>>0>>0){break a}k=i[c+12>>2];d=i[c+20>>2];m=i[c+8>>2];f=m;p=i[c+16>>2];g=p;e=h;r=f-g>>>0>>0;f=k-(d+(f>>>0>>0)|0)|0;g=N;if((f|0)<(g|0)?1:(f|0)<=(g|0)?r:0){break a}f=1;if(!n){break c}g=0;f=m;m=e+p|0;if(m>>>0>>0){d=d+1|0}if((k|0)<(d|0)?1:(k|0)<=(d|0)?f>>>0>>0:0){break b}m=0;while(1){sn(q+(m<<2)|0,p+i[c>>2]|0,h);d=i[c+20>>2];p=e+i[c+16>>2]|0;if(p>>>0>>0){d=d+1|0}i[c+16>>2]=p;i[c+20>>2]=d;m=m+1|0;if((n|0)==(m|0)){break d}k=i[c+12>>2];r=e+p|0;if(r>>>0>>0){d=d+1|0}if((k|0)>(d|0)?1:(k|0)>=(d|0)?l[c+8>>2]>=r>>>0:0){continue}break}break b}sn(q,k+i[c>>2]|0,h);d=i[c+20>>2];f=e+i[c+16>>2]|0;if(f>>>0>>0){d=d+1|0}i[c+16>>2]=f;i[c+20>>2]=d}f=1;if(!n){break c}e=i[a+20>>2];if(e){f=0;if(O[i[i[e>>2]+32>>2]](e)|0){break c}}xh(q,n,q);f=0}e=i[a+20>>2];f:{if(!e){break f}if(!(O[i[i[e>>2]+40>>2]](e,c)|0)){break a}if(f){break f}g=0;a=i[a+20>>2];if(!(O[i[i[a>>2]+44>>2]](a,q,q,n,s,i[b>>2])|0)){break b}}g=1}return g|0}return 0}function Jf(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=L+ -64|0;L=e;f=i[i[b+4>>2]+44>>2];d=Gm(80);i[d+12>>2]=0;i[d+16>>2]=0;i[d>>2]=12784;i[d+4>>2]=0;i[d+76>>2]=0;i[d+72>>2]=c;i[d+68>>2]=f;i[d+64>>2]=0;i[d+56>>2]=0;i[d+60>>2]=0;i[d+8>>2]=12948;j=d+20|0;i[j>>2]=0;i[j+4>>2]=0;n=d+28|0;k=n;i[k>>2]=0;i[k+4>>2]=0;i[d+36>>2]=0;i[d+40>>2]=0;k=d+44|0;i[k>>2]=0;i[k+4>>2]=0;i[d+52>>2]=0;b=i[b+8>>2];o=e+40|0;h=o;i[h>>2]=0;i[h+4>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;h=e+24|0;i[h>>2]=0;i[h+4>>2]=0;p=e+16|0;l=p;i[l>>2]=0;i[l+4>>2]=0;l=e+8|0;i[l>>2]=0;i[l+4>>2]=0;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e>>2]=12948;i[e+4>>2]=b;m=i[b>>2];q=i[b+4>>2];g[e+63|0]=0;Lf(h,(q-m>>2>>>0)/3|0,e+63|0);h=i[e+4>>2];m=i[h+28>>2];h=i[h+24>>2];g[e+63|0]=0;Lf(e+36|0,m-h>>2,e+63|0);i[e+20>>2]=d;i[p>>2]=f;f=e+12|0;i[f>>2]=c;i[l>>2]=b;i[n>>2]=d;b=i[f+4>>2];i[j>>2]=i[f>>2];i[j+4>>2]=b;b=i[e+8>>2];i[d+12>>2]=i[e+4>>2];i[d+16>>2]=b;a:{b:{c=d;b=i[e+28>>2];if(b){f=d+32|0;c:{if(b>>>0<=i[d+40>>2]<<5>>>0){j=b+ -1>>>5|0;b=i[f>>2];break c}f=i[f>>2];if(f){qn(f);i[d+40>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;b=i[e+28>>2]}if((b|0)<=-1){break b}j=b+ -1>>>5|0;f=j+1|0;b=Gm(f<<2);i[d+40>>2]=f;i[d+36>>2]=0;i[d+32>>2]=b}un(b,i[e+24>>2],(j<<2)+4|0);b=i[e+28>>2]}else{b=0}i[c+36>>2]=b;h=d;b=i[o>>2];if(b){d:{if(b>>>0<=i[d+52>>2]<<5>>>0){c=b+ -1>>>5|0;b=i[k>>2];break d}c=i[k>>2];if(c){qn(c);i[d+52>>2]=0;i[d+44>>2]=0;i[d+48>>2]=0;b=i[e+40>>2]}if((b|0)<=-1){break a}c=b+ -1>>>5|0;j=c+1|0;b=Gm(j<<2);i[d+52>>2]=j;i[d+48>>2]=0;i[d+44>>2]=b}un(b,i[e+36>>2],(c<<2)+4|0);b=i[e+40>>2]}else{b=0}i[h+48>>2]=b;Oa(d+56|0,i[e+48>>2],i[e+52>>2]);i[a>>2]=d;i[e>>2]=12948;a=i[e+48>>2];if(a){i[e+52>>2]=a;qn(a)}i[e>>2]=12764;a=i[e+36>>2];if(a){qn(a)}a=i[e+24>>2];if(a){qn(a)}L=e- -64|0;return}Vm();x()}Vm();x()}function Wk(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;f=o(b,12)+a|0;n=f+12|0;p=f+8|0;i[n>>2]=i[p>>2];l=(c|0)==-1?-1:(c>>>0)/3|0;r=f+16|0;s=1;f=c;a:{b:{c:{while(1){d:{q=k;if(k){if((f|0)==-1){break d}if((Xk(a,((f>>>0)%3|0?-1:2)+f|0)|0)==-1){break a}c=f+1|0;c=(c>>>0)%3|0?c:f+ -2|0;if((c|0)==-1){break a}e=c+1|0;c=(e>>>0)%3|0?e:c+ -2|0;if((c|0)==-1){break a}c=i[i[i[a+4>>2]+12>>2]+(c<<2)>>2];if((c|0)==-1){break a}e=c+1|0;c=(e>>>0)%3|0?e:c+ -2|0;if((c|0)==-1){break a}l=(c>>>0)/3|0}h=i[a+56>>2]+(l>>>3&536870908)|0;g=i[h>>2];m=1<<(l&31);e:{if(g&m){break e}e=0;while(1){i[h>>2]=g|m;d=i[n>>2];j=i[r>>2];f:{if((d|0)!=(j|0)){i[d>>2]=l;i[n>>2]=d+4;break f}h=i[p>>2];m=d-h|0;d=m>>2;g=d+1|0;if(g>>>0>=1073741824){break c}t=d<<2;j=j-h|0;d=j>>1;g=j>>2>>>0<536870911?d>>>0>>0?g:d:1073741823;d=0;g:{if(!g){break g}if(g>>>0>=1073741824){break b}d=Gm(g<<2)}j=t+d|0;i[j>>2]=l;g=d+(g<<2)|0;j=j+4|0;if((m|0)>=1){sn(d,h,m)}i[p>>2]=d;i[n>>2]=j;i[r>>2]=g;if(!h){break f}qn(h)}d=e+1|0;h:{if(!e){break h}if(d&1){if((c|0)==-1){c=-1;break h}e=c+1|0;c=(e>>>0)%3|0?e:c+ -2|0;break h}f=q?c:f;if((c|0)==-1){c=-1;break h}if((c>>>0)%3|0){c=c+ -1|0;break h}c=c+2|0}c=Xk(a,c);if((c|0)!=-1){e=d;l=(c>>>0)/3|0;h=i[a+56>>2]+(l>>>3&268435452)|0;g=i[h>>2];m=1<<(l&31);if(!(g&m)){continue}}break}if(!(d&1)|k^1){break e}k=i[n>>2]+ -4|0;e=i[k>>2];d=i[a+56>>2]+(e>>>3&536870908)|0;q=i[d>>2];u=d,v=Nn(e)&q,i[u>>2]=v;i[n>>2]=k}k=1;e=s;s=0;if(e){continue}break a}break}f=-1;Xk(a,-1);break a}Vm();x()}Da(14548);x()}i[((b<<2)+a|0)+44>>2]=f;c=i[n>>2];b=i[p>>2];if((c|0)!=(b|0)){c=c-b>>2;f=c>>>0>1?c:1;a=i[a+56>>2];c=0;while(1){k=i[b+(c<<2)>>2];e=a+(k>>>3&536870908)|0;d=i[e>>2];u=e,v=Nn(k)&d,i[u>>2]=v;c=c+1|0;if((f|0)!=(c|0)){continue}break}}}function ie(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i[b+16>>2];e=i[c+4>>2]-l|0;f=i[c>>2]-l|0;i[c>>2]=f;i[c+4>>2]=e;g=e>>31;h=g+e^g;g=f>>31;k=i[b+16>>2];m=(h+(g+f^g)|0)<=(k|0);if(!m){a:{b:{if((f|0)>=0){j=1;g=1;if((e|0)>-1){break a}h=1;j=-1;g=-1;if((f|0)>=1){break b}break a}h=-1;j=-1;g=-1;if((e|0)<1){break a}}j=(e|0)<1?-1:1;g=h}n=o(j,k);h=(e<<1)-n|0;i[c+4>>2]=h;e=f<<1;f=o(g,k);e=e-f|0;i[c>>2]=e;c:{if((o(g,j)|0)>=0){h=0-h|0;i[c>>2]=h;e=0-e|0;break c}i[c>>2]=h}e=(e+n|0)/2|0;i[c+4>>2]=e;f=(f+h|0)/2|0;i[c>>2]=f}d:{e:{f:{g:{h:{if(!f){if(e){break h}h=1;e=0;g=0;j=0;break d}h=1;g=(f|0)<0&(e|0)<1;i:{if((f|0)>=1){j=(e|0)>-1?2:1;if(!g){break i}g=f;break d}j=(e|0)>0?3:0;if(!g){break i}g=f;break d}h=j+ -1|0;j=0;g=f;j:{switch(h|0){case 2:break g;case 1:break j;case 0:break f;default:break e}}e=0-e|0;g=0-f|0;j=2;break e}if((e|0)<1){break f}}g=0-e|0;j=3;e=f;break e}j=1;g=e;e=0-f|0}f=c;i[f>>2]=g;i[f+4>>2]=e;h=0}f=i[d>>2]+g|0;i[a>>2]=f;e=i[d+4>>2]+e|0;i[a+4>>2]=e;k=i[b+16>>2];k:{if((k|0)<(f|0)){f=f-i[b+4>>2]|0;break k}if((f|0)>=(0-k|0)){break k}f=i[b+4>>2]+f|0}i[a>>2]=f;l:{if((k|0)<(e|0)){e=e-i[b+4>>2]|0;break l}if((e|0)>=(0-k|0)){break l}e=i[b+4>>2]+e|0}i[a+4>>2]=e;m:{if(h){c=e;break m}c=e;n:{o:{switch((4-j&3)+ -1|0){case 0:c=0-f|0;f=e;break n;case 1:c=0-e|0;f=0-f|0;break n;case 2:break o;default:break n}}c=f;f=0-e|0}i[a>>2]=f;i[a+4>>2]=c}if(!m){p:{q:{if((f|0)>=0){b=1;g=1;if((c|0)>-1){break p}e=1;b=-1;g=-1;if((f|0)>=1){break q}break p}e=-1;b=-1;g=-1;if((c|0)<1){break p}}b=(c|0)<1?-1:1;g=e}d=c<<1;c=o(b,k);e=d-c|0;i[a+4>>2]=e;d=o(g,k);f=(f<<1)-d|0;i[a>>2]=f;r:{if((o(b,g)|0)>=0){e=0-e|0;i[a>>2]=e;f=0-f|0;break r}i[a>>2]=e}c=(c+f|0)/2|0;i[a+4>>2]=c;f=(d+e|0)/2|0;i[a>>2]=f}i[a>>2]=f+l;i[a+4>>2]=c+l}function _g(a,b){var c=0,d=0,e=0;i[a>>2]=i[b>>2];i[a+4>>2]=i[b+4>>2];i[a+8>>2]=i[b+8>>2];c=b+12|0;i[a+12>>2]=i[c>>2];i[c>>2]=0;i[b+4>>2]=0;i[b+8>>2]=0;c=b+16|0;i[a+16>>2]=i[c>>2];i[a+20>>2]=i[b+20>>2];d=b+24|0;i[a+24>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=j[b+28|0];e=a+40|0;i[e>>2]=0;c=a+32|0;i[c>>2]=0;i[c+4>>2]=0;g[a+28|0]=d;d=c;c=b+32|0;i[d>>2]=i[c>>2];i[a+36>>2]=i[b+36>>2];d=b+40|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a+52|0;i[d>>2]=0;c=a+44|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+44|0;i[e>>2]=i[c>>2];i[a+48>>2]=i[b+48>>2];e=d;d=b+52|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a- -64|0;i[d>>2]=0;c=a+56|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+56|0;i[e>>2]=i[c>>2];i[a+60>>2]=i[b+60>>2];e=d;d=b- -64|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;i[a+68>>2]=i[b+68>>2];d=i[b+72>>2];e=a+84|0;i[e>>2]=0;c=a+76|0;i[c>>2]=0;i[c+4>>2]=0;i[a+72>>2]=d;d=c;c=b+76|0;i[d>>2]=i[c>>2];i[a+80>>2]=i[b+80>>2];d=b+84|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a+96|0;i[d>>2]=0;c=a+88|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+88|0;i[e>>2]=i[c>>2];i[a+92>>2]=i[b+92>>2];e=d;d=b+96|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;c=j[b+100|0];d=a+112|0;i[d>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;g[a+100|0]=c;i[a+104>>2]=i[b+104>>2];i[a+108>>2]=i[b+108>>2];c=b+112|0;i[d>>2]=i[c>>2];i[c>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;d=a+124|0;i[d>>2]=0;c=a+116|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+116|0;i[e>>2]=i[c>>2];i[a+120>>2]=i[b+120>>2];e=d;d=b+124|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;c=i[b+128>>2];d=a+140|0;i[d>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;i[a+128>>2]=c;i[a+132>>2]=i[b+132>>2];i[a+136>>2]=i[b+136>>2];c=b+140|0;i[d>>2]=i[c>>2];i[c>>2]=0;i[b+132>>2]=0;i[b+136>>2]=0;return a}function Zf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;h=L-16|0;L=h;i[h>>2]=b;g=-1;a:{if((b|0)==-1){i[h+4>>2]=-1;break a}c=b+1|0;i[h+4>>2]=(c>>>0)%3|0?c:b+ -2|0;if((b>>>0)%3|0){g=b+ -1|0;break a}g=b+2|0}i[h+8>>2]=g;q=(b|0)==-1?-1:(b>>>0)/3|0;b:{c:{d:{e:{while(1){f:{g:{if((b|0)!=-1){c=i[i[i[a+8>>2]+12>>2]+(b<<2)>>2];if((c|0)!=-1){break g}}g=0;c=i[a+216>>2];if((c|0)==i[a+220>>2]){break f}while(1){f=o(g,144)+c|0;j=f+136|0;c=i[j>>2];l=f+140|0;d=i[l>>2];h:{if(c>>>0>>0){i[c>>2]=b;i[j>>2]=c+4;break h}m=f+132|0;f=i[m>>2];k=c-f|0;c=k>>2;e=c+1|0;if(e>>>0>=1073741824){break e}n=c<<2;d=d-f|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;i:{if(!e){break i}if(e>>>0>=1073741824){break d}c=Gm(e<<2)}d=n+c|0;i[d>>2]=b;e=c+(e<<2)|0;d=d+4|0;if((k|0)>=1){sn(c,f,k)}i[m>>2]=c;i[j>>2]=d;i[l>>2]=e;if(!f){break h}qn(f)}g=g+1|0;c=i[a+216>>2];if(g>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}break f}if((c>>>0)/3>>>0>>0){break f}g=0;if(i[a+220>>2]==i[a+216>>2]){break f}while(1){j:{if(!Ee(i[a+368>>2]+(g<<4)|0)){break j}f=i[a+216>>2]+o(g,144)|0;j=f+136|0;c=i[j>>2];l=f+140|0;d=i[l>>2];if(c>>>0>>0){i[c>>2]=b;i[j>>2]=c+4;break j}m=f+132|0;f=i[m>>2];k=c-f|0;c=k>>2;e=c+1|0;if(e>>>0>=1073741824){break c}n=c<<2;d=d-f|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;k:{if(!e){break k}if(e>>>0>=1073741824){break b}c=Gm(e<<2)}d=n+c|0;i[d>>2]=b;e=c+(e<<2)|0;d=d+4|0;if((k|0)>=1){sn(c,f,k)}i[m>>2]=c;i[j>>2]=d;i[l>>2]=e;if(!f){break j}qn(f)}g=g+1|0;if(g>>>0<(i[a+220>>2]-i[a+216>>2]|0)/144>>>0){continue}break}}p=p+1|0;if((p|0)!=3){b=i[(p<<2)+h>>2];continue}break}L=h+16|0;return 1}Vm();x()}Da(12220);x()}Vm();x()}Da(12220);x()}function Je(a,b,c,d){var e=0,f=0,h=0;e=L-80|0;L=e;f=i[c+36>>2];i[e+72>>2]=i[c+32>>2];i[e+76>>2]=f;h=i[c+28>>2];f=e- -64|0;i[f>>2]=i[c+24>>2];i[f+4>>2]=h;f=i[c+20>>2];i[e+56>>2]=i[c+16>>2];i[e+60>>2]=f;f=i[c+12>>2];i[e+48>>2]=i[c+8>>2];i[e+52>>2]=f;f=i[c+4>>2];i[e+40>>2]=i[c>>2];i[e+44>>2]=f;lh(a,e+40|0,e+24|0);a:{if(i[a>>2]){break a}h=a+4|0;if(g[a+15|0]<=-1){qn(i[h>>2])}if(j[e+31|0]){b=Gm(32);i[e>>2]=b;i[e+4>>2]=27;i[e+8>>2]=-2147483616;g[b+27|0]=0;c=j[11135]|j[11136]<<8|(j[11137]<<16|j[11138]<<24);g[b+23|0]=c;g[b+24|0]=c>>>8;g[b+25|0]=c>>>16;g[b+26|0]=c>>>24;c=j[11132]|j[11133]<<8|(j[11134]<<16|j[11135]<<24);d=j[11128]|j[11129]<<8|(j[11130]<<16|j[11131]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[11124]|j[11125]<<8|(j[11126]<<16|j[11127]<<24);d=j[11120]|j[11121]<<8|(j[11122]<<16|j[11123]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11116]|j[11117]<<8|(j[11118]<<16|j[11119]<<24);d=j[11112]|j[11113]<<8|(j[11114]<<16|j[11115]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;Jm(h,e);if(g[e+11|0]>-1){break a}qn(i[e>>2]);break a}Ge(e,g[e+32|0]);f=i[e>>2];b:{if(f){i[a>>2]=f;Jm(h,e|4);break b}f=i[e+16>>2];i[e+16>>2]=0;oh(a,f,b,c,d);if(!i[a>>2]){if(g[h+11|0]<=-1){qn(i[h>>2])}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}if(!f){break b}O[i[i[f>>2]+4>>2]](f)}a=i[e+16>>2];i[e+16>>2]=0;if(a){O[i[i[a>>2]+4>>2]](a)}if(g[e+15|0]>-1){break a}qn(i[e+4>>2])}L=e+80|0}function ul(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;a:{if((b|0)<0){break a}c=i[a+12>>2];d=i[a+8>>2];if(c-d>>2>>>0<=b>>>0){break a}d=d+(b<<2)|0;e=i[d>>2];h=i[e+60>>2];f=i[e+56>>2];e=d+4|0;b:{if((e|0)!=(c|0)){while(1){j=i[e>>2];i[e>>2]=0;g=i[d>>2];i[d>>2]=j;if(g){Ua(g)}d=d+4|0;e=e+4|0;if((e|0)!=(c|0)){continue}break}c=i[a+12>>2];if((d|0)==(c|0)){break b}}while(1){c=c+ -4|0;e=i[c>>2];i[c>>2]=0;if(e){Ua(e)}if((c|0)!=(d|0)){continue}break}}i[a+12>>2]=d;c=i[a+4>>2];if(c){vl(c,h)}c:{if((f|0)>4){break c}d:{d=o(f,12)+a|0;c=i[d+20>>2];e=d+24|0;d=i[e>>2];if((c|0)==(d|0)){break d}while(1){if(i[c>>2]==(b|0)){break d}c=c+4|0;if((d|0)!=(c|0)){continue}break}break c}if((c|0)==(d|0)){break c}f=c+4|0;d=d-f|0;if(d){un(c,f,d)}i[e>>2]=c+d}c=i[a+24>>2];d=i[a+20>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=i[f>>2];if((g|0)>(b|0)){i[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=i[a+36>>2];d=i[a+32>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=i[f>>2];if((g|0)>(b|0)){i[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=i[a+48>>2];d=i[a+44>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=i[f>>2];if((g|0)>(b|0)){i[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=i[a+60>>2];d=i[a+56>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=i[f>>2];if((g|0)>(b|0)){i[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=i[a+72>>2];a=i[a+68>>2];if((c|0)==(a|0)){break a}c=c-a>>2;d=c>>>0>1?c:1;c=0;while(1){e=a+(c<<2)|0;f=i[e>>2];if((f|0)>(b|0)){i[e>>2]=f+ -1}c=c+1|0;if((d|0)!=(c|0)){continue}break}}}function Yf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;h=L-16|0;L=h;i[h>>2]=b;g=-1;a:{if((b|0)==-1){i[h+4>>2]=-1;break a}c=b+1|0;i[h+4>>2]=(c>>>0)%3|0?c:b+ -2|0;if((b>>>0)%3|0){g=b+ -1|0;break a}g=b+2|0}i[h+8>>2]=g;b:{c:{while(1){d:{if(!((b|0)==-1|i[i[i[a+8>>2]+12>>2]+(b<<2)>>2]==-1)){g=0;if(i[a+220>>2]==i[a+216>>2]){break d}e:{while(1){f:{g:{if(!Ee(i[a+368>>2]+(g<<4)|0)){break g}f=i[a+216>>2]+o(g,144)|0;j=f+136|0;c=i[j>>2];l=f+140|0;d=i[l>>2];if(c>>>0>>0){i[c>>2]=b;i[j>>2]=c+4;break g}m=f+132|0;f=i[m>>2];k=c-f|0;c=k>>2;e=c+1|0;if(e>>>0>=1073741824){break f}n=c<<2;d=d-f|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;h:{if(!e){break h}if(e>>>0>=1073741824){break e}c=Gm(e<<2)}d=n+c|0;i[d>>2]=b;e=c+(e<<2)|0;d=d+4|0;if((k|0)>=1){sn(c,f,k)}i[m>>2]=c;i[j>>2]=d;i[l>>2]=e;if(!f){break g}qn(f)}g=g+1|0;if(g>>>0<(i[a+220>>2]-i[a+216>>2]|0)/144>>>0){continue}break d}break}Vm();x()}Da(12220);x()}g=0;c=i[a+216>>2];if((c|0)==i[a+220>>2]){break d}while(1){f=o(g,144)+c|0;j=f+136|0;c=i[j>>2];l=f+140|0;d=i[l>>2];i:{if(c>>>0>>0){i[c>>2]=b;i[j>>2]=c+4;break i}m=f+132|0;f=i[m>>2];k=c-f|0;c=k>>2;e=c+1|0;if(e>>>0>=1073741824){break c}n=c<<2;d=d-f|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;j:{if(!e){break j}if(e>>>0>=1073741824){break b}c=Gm(e<<2)}d=n+c|0;i[d>>2]=b;e=c+(e<<2)|0;d=d+4|0;if((k|0)>=1){sn(c,f,k)}i[m>>2]=c;i[j>>2]=d;i[l>>2]=e;if(!f){break i}qn(f)}g=g+1|0;c=i[a+216>>2];if(g>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}p=p+1|0;if((p|0)!=3){b=i[(p<<2)+h>>2];continue}break}L=h+16|0;return 1}Vm();x()}Da(12220);x()}function Ge(a,b){var c=0,d=0,e=0;e=L-32|0;L=e;a:{b:{switch(b|0){case 0:c=Gm(44);b=c;i[b>>2]=0;i[b+4>>2]=0;i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=0;i[b+28>>2]=0;i[b+16>>2]=0;i[b+20>>2]=0;i[b+8>>2]=0;i[b+12>>2]=0;kh(b);i[b>>2]=13952;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;break a;case 1:c=Gm(44);b=c;i[b>>2]=0;i[b+4>>2]=0;i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=0;i[b+28>>2]=0;i[b+16>>2]=0;i[b+20>>2]=0;i[b+8>>2]=0;i[b+12>>2]=0;kh(b);i[b>>2]=13860;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;break a;default:break b}}b=Gm(32);i[e>>2]=b;i[e+4>>2]=28;i[e+8>>2]=-2147483616;g[b+28|0]=0;c=j[11080]|j[11081]<<8|(j[11082]<<16|j[11083]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;c=j[11076]|j[11077]<<8|(j[11078]<<16|j[11079]<<24);d=j[11072]|j[11073]<<8|(j[11074]<<16|j[11075]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[11068]|j[11069]<<8|(j[11070]<<16|j[11071]<<24);d=j[11064]|j[11065]<<8|(j[11066]<<16|j[11067]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11060]|j[11061]<<8|(j[11062]<<16|j[11063]<<24);d=j[11056]|j[11057]<<8|(j[11058]<<16|j[11059]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[e+16>>2]=-1;b=Jm(e+16|4,e);i[a>>2]=i[e+16>>2];Jm(a+4|0,b);i[a+16>>2]=0;if(g[b+11|0]<=-1){qn(i[b>>2])}if(g[e+11|0]>-1){break a}qn(i[e>>2])}L=e+32|0}function hc(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=L-16|0;L=e;h=O[i[i[a>>2]+24>>2]](a)|0;a:{if((h|0)<1){break a}q=a+48|0;k=1;while(1){b:{c:{if(!i[(O[i[i[a>>2]+28>>2]](a)|0)+40>>2]){break c}l=f<<2;b=i[l+i[a+36>>2]>>2];c=i[b+8>>2];m=Xb(b);if(!m){break c}n=i[(O[i[i[a>>2]+28>>2]](a)|0)+40>>2];o=i[c+56>>2];b=Gm(32);i[e>>2]=b;i[e+4>>2]=24;i[e+8>>2]=-2147483616;g[b+24|0]=0;c=j[2120]|j[2121]<<8|(j[2122]<<16|j[2123]<<24);d=j[2116]|j[2117]<<8|(j[2118]<<16|j[2119]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[2112]|j[2113]<<8|(j[2114]<<16|j[2115]<<24);d=j[2108]|j[2109]<<8|(j[2110]<<16|j[2111]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[2104]|j[2105]<<8|(j[2106]<<16|j[2107]<<24);d=j[2100]|j[2101]<<8|(j[2102]<<16|j[2103]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;d:{e:{d=n+16|0;b=d;c=i[b>>2];if(!c){break e}while(1){p=i[c+16>>2]<(o|0);b=p?b:c;c=i[(p<<2)+c>>2];if(c){continue}break}if((b|0)==(d|0)|(o|0)>2]){break e}b=b+20|0;if(!Mb(b,e)){break e}b=Lh(b,e);break d}b=Lh(n,e)}if(g[e+11|0]<=-1){qn(i[e>>2])}if(!b){break c}Na(i[i[i[a+36>>2]+l>>2]+8>>2],m);break b}b=i[i[a+36>>2]+(f<<2)>>2];if(!(O[i[i[b>>2]+24>>2]](b,q)|0)){break a}}f=f+1|0;k=(f|0)<(h|0);if((f|0)!=(h|0)){continue}break}}L=e+16|0;return(k^-1)&1}function Qe(a,b,c,d,e){var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{b:{c:{d:{e:{n=a+4|0;f:{if((n|0)==(b|0)){break f}f=j[b+27|0];h=f<<24>>24<0;k=j[e+11|0];p=k<<24>>24;g=(p|0)<0;f=h?i[b+20>>2]:f;k=g?i[e+4>>2]:k;l=f>>>0>>0;m=l?f:k;if(m){g=g?i[e>>2]:e;o=b+16|0;h=h?i[o>>2]:o;o=Pl(g,h,m);if(!o){if(k>>>0>>0){break f}break e}if((o|0)>-1){break e}break f}if(k>>>0>=f>>>0){break d}}h=i[b>>2];g:{h:{if(i[a>>2]==(b|0)){d=b;break h}i:{if(h){f=h;while(1){d=f;f=i[f+4>>2];if(f){continue}break}break i}d=b+8|0;if(i[i[b+8>>2]>>2]==(b|0)){while(1){f=i[d>>2];d=f+8|0;if((f|0)==i[i[f+8>>2]>>2]){continue}break}}d=i[d>>2]}g=j[e+11|0];f=g<<24>>24<0;l=j[d+27|0];k=l<<24>>24<0;j:{g=f?i[e+4>>2]:g;l=k?i[d+20>>2]:l;m=g>>>0>>0?g:l;if(m){n=d+16|0;f=Pl(k?i[n>>2]:n,f?i[e>>2]:e,m);if(f){break j}}if(l>>>0>>0){break h}break g}if((f|0)>-1){break g}}if(!h){i[c>>2]=b;return b}i[c>>2]=d;return d+4|0}return Re(a,c,e)}f=Pl(h,g,m);if(f){break c}}if(l){break b}break a}if((f|0)>-1){break a}}h=i[b+4>>2];k:{if(h){f=h;while(1){d=f;f=i[f>>2];if(f){continue}break}break k}d=i[b+8>>2];if(i[d>>2]==(b|0)){break k}f=b+8|0;while(1){g=i[f>>2];f=g+8|0;d=i[g+8>>2];if((g|0)!=i[d>>2]){continue}break}}l:{m:{if((d|0)==(n|0)){break m}g=j[d+27|0];f=g<<24>>24<0;n:{g=f?i[d+20>>2]:g;l=g>>>0>>0?g:k;if(l){m=d+16|0;f=Pl((p|0)<0?i[e>>2]:e,f?i[m>>2]:m,l);if(f){break n}}if(k>>>0>>0){break m}break l}if((f|0)>-1){break l}}if(!h){i[c>>2]=b;return b+4|0}i[c>>2]=d;return d}return Re(a,c,e)}i[c>>2]=b;i[d>>2]=b;return d}function Ie(a,b){var c=0,d=0,e=0;c=L-96|0;L=c;d=i[b+36>>2];i[c+88>>2]=i[b+32>>2];i[c+92>>2]=d;d=i[b+28>>2];i[c+80>>2]=i[b+24>>2];i[c+84>>2]=d;d=i[b+20>>2];i[c+72>>2]=i[b+16>>2];i[c+76>>2]=d;e=i[b+12>>2];d=c- -64|0;i[d>>2]=i[b+8>>2];i[d+4>>2]=e;d=i[b+4>>2];i[c+56>>2]=i[b>>2];i[c+60>>2]=d;lh(c+24|0,c+56|0,c+40|0);b=i[c+24>>2];a:{if(b){i[a>>2]=b;Jm(a+4|0,c+24|4);if(g[c+39|0]>-1){break a}qn(i[c+28>>2]);break a}if(g[c+39|0]<=-1){qn(i[c+28>>2])}b=j[c+47|0];if(b>>>0>=2){b=Gm(32);i[c+8>>2]=b;i[c+12>>2]=26;i[c+16>>2]=-2147483616;g[b+26|0]=0;d=j[11109]|j[11110]<<8;g[b+24|0]=d;g[b+25|0]=d>>>8;d=j[11105]|j[11106]<<8|(j[11107]<<16|j[11108]<<24);e=j[11101]|j[11102]<<8|(j[11103]<<16|j[11104]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11097]|j[11098]<<8|(j[11099]<<16|j[11100]<<24);e=j[11093]|j[11094]<<8|(j[11095]<<16|j[11096]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11089]|j[11090]<<8|(j[11091]<<16|j[11092]<<24);e=j[11085]|j[11086]<<8|(j[11087]<<16|j[11088]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[c+24>>2]=-1;b=Jm(c+24|4,c+8|0);i[a>>2]=i[c+24>>2];Jm(a+4|0,b);if(g[b+11|0]<=-1){qn(i[b>>2])}if(g[c+19|0]>-1){break a}qn(i[c+8>>2]);break a}i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;i[a+8>>2]=0;i[a+12>>2]=0}L=c+96|0}function Ke(a,b,c,d){var e=0,f=0,h=0;e=L-80|0;L=e;f=i[c+36>>2];i[e+72>>2]=i[c+32>>2];i[e+76>>2]=f;h=i[c+28>>2];f=e- -64|0;i[f>>2]=i[c+24>>2];i[f+4>>2]=h;f=i[c+20>>2];i[e+56>>2]=i[c+16>>2];i[e+60>>2]=f;f=i[c+12>>2];i[e+48>>2]=i[c+8>>2];i[e+52>>2]=f;f=i[c+4>>2];i[e+40>>2]=i[c>>2];i[e+44>>2]=f;lh(a,e+40|0,e+24|0);a:{if(i[a>>2]){break a}f=a+4|0;if(g[a+15|0]<=-1){qn(i[f>>2])}if(j[e+31|0]!=1){b=Gm(32);i[e>>2]=b;i[e+4>>2]=20;i[e+8>>2]=-2147483616;g[b+20|0]=0;c=j[11156]|j[11157]<<8|(j[11158]<<16|j[11159]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;c=j[11152]|j[11153]<<8|(j[11154]<<16|j[11155]<<24);d=j[11148]|j[11149]<<8|(j[11150]<<16|j[11151]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11144]|j[11145]<<8|(j[11146]<<16|j[11147]<<24);d=j[11140]|j[11141]<<8|(j[11142]<<16|j[11143]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;Jm(f,e);if(g[e+11|0]>-1){break a}qn(i[e>>2]);break a}He(e,j[e+32|0]);h=i[e>>2];b:{if(h){i[a>>2]=h;Jm(f,e|4);break b}h=i[e+16>>2];i[e+16>>2]=0;i[h+44>>2]=d;oh(a,h,b,c,d);if(!i[a>>2]){if(g[f+11|0]<=-1){qn(i[f>>2])}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}if(!h){break b}O[i[i[h>>2]+4>>2]](h)}a=i[e+16>>2];i[e+16>>2]=0;if(a){O[i[i[a>>2]+4>>2]](a)}if(g[e+15|0]>-1){break a}qn(i[e+4>>2])}L=e+80|0}function Md(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;i[a+8>>2]=e;h=a+32|0;g=i[h>>2];f=i[a+36>>2]-g>>2;a:{if(f>>>0>>0){Ta(h,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}h=0;f=(e&1073741823)!=(e|0)?-1:e<<2;n=tn(Gm(f),0,f);g=i[a+8>>2];b:{if((g|0)<1){break b}while(1){f=h<<2;g=i[f+n>>2];j=i[a+16>>2];c:{if((g|0)>(j|0)){k=i[a+32>>2];i[f+k>>2]=j;break c}k=i[a+32>>2];f=f+k|0;j=i[a+12>>2];if((g|0)<(j|0)){i[f>>2]=j;break c}i[f>>2]=g}h=h+1|0;g=i[a+8>>2];if((h|0)<(g|0)){continue}break}if((g|0)<1){break b}j=0;while(1){h=j<<2;f=h+c|0;h=i[b+h>>2]+i[h+k>>2]|0;i[f>>2]=h;d:{if((h|0)>i[a+16>>2]){h=h-i[a+20>>2]|0}else{if((h|0)>=i[a+12>>2]){break d}h=h+i[a+20>>2]|0}i[f>>2]=h}j=j+1|0;g=i[a+8>>2];if((j|0)<(g|0)){continue}break}}if((e|0)<(d|0)){p=0-e<<2;f=e;while(1){e:{if((g|0)<1){break e}m=f<<2;o=m+c|0;q=o+p|0;h=0;while(1){g=h<<2;j=i[g+q>>2];l=i[a+16>>2];f:{if((j|0)>(l|0)){k=i[a+32>>2];i[g+k>>2]=l;break f}k=i[a+32>>2];g=g+k|0;l=i[a+12>>2];if((j|0)<(l|0)){i[g>>2]=l;break f}i[g>>2]=j}h=h+1|0;g=i[a+8>>2];if((h|0)<(g|0)){continue}break}j=0;if((g|0)<1){break e}m=b+m|0;while(1){g=j<<2;h=g+o|0;g=i[g+m>>2]+i[g+k>>2]|0;i[h>>2]=g;g:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break g}g=g+i[a+20>>2]|0}i[h>>2]=g}j=j+1|0;g=i[a+8>>2];if((j|0)<(g|0)){continue}break}}f=e+f|0;if((f|0)<(d|0)){continue}break}}qn(n);return 1}function jg(a,b){var c=0,d=0,e=0,f=0,g=0;c=-1;f=-1;a:{if((b|0)==-1){break a}e=b+1|0;c=(e>>>0)%3|0?e:b+ -2|0;f=b+ -1|0;if((b>>>0)%3|0){break a}f=b+2|0}b:{c:{d:{e:{f:{g:{d=i[a+184>>2];switch(d|0){case 7:break d;case 3:break e;case 5:break f;case 0:case 1:break g;default:break b}}g=i[a+148>>2];e=-1;d=1;c=((c|0)!=-1?i[i[g>>2]+(c<<2)>>2]:e)<<2;e=i[a+156>>2];c=c+e|0;i[c>>2]=i[c>>2]+1;c=(((f|0)!=-1?i[i[g>>2]+(f<<2)>>2]:-1)<<2)+e|0;break c}g=i[a+148>>2];e=i[a+156>>2];d=e+(((b|0)!=-1?i[i[g>>2]+(b<<2)>>2]:-1)<<2)|0;i[d>>2]=i[d>>2]+1;d=(((c|0)!=-1?i[i[g>>2]+(c<<2)>>2]:-1)<<2)+e|0;i[d>>2]=i[d>>2]+1;c=-1;d=2;c=e+(((f|0)!=-1?i[i[g>>2]+(f<<2)>>2]:c)<<2)|0;break c}g=i[a+148>>2];e=i[a+156>>2];d=e+(((b|0)!=-1?i[i[g>>2]+(b<<2)>>2]:-1)<<2)|0;i[d>>2]=i[d>>2]+1;d=(((c|0)!=-1?i[i[g>>2]+(c<<2)>>2]:-1)<<2)+e|0;i[d>>2]=i[d>>2]+2;d=1;c=(((f|0)!=-1?i[i[g>>2]+(f<<2)>>2]:-1)<<2)+e|0;break c}g=i[a+148>>2];e=i[a+156>>2];d=e+(((b|0)!=-1?i[i[g>>2]+(b<<2)>>2]:-1)<<2)|0;i[d>>2]=i[d>>2]+2;d=(((c|0)!=-1?i[i[g>>2]+(c<<2)>>2]:-1)<<2)+e|0;i[d>>2]=i[d>>2]+2;c=-1;d=2;c=e+(((f|0)!=-1?i[i[g>>2]+(f<<2)>>2]:c)<<2)|0}i[c>>2]=i[c>>2]+d;d=i[a+184>>2]}h:{switch(d|0){case 0:case 5:f=i[a+156>>2];c=-1;i:{if((b|0)==-1){break i}d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0;c=-1;if((b|0)==-1){break i}c=i[i[i[a+148>>2]>>2]+(b<<2)>>2]}if(i[f+(c<<2)>>2]<=5){i[a+188>>2]=5;return}i[a+188>>2]=0;return;default:break h}}i[a+188>>2]=-1}function _c(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0;m=L-32|0;L=m;i[m+28>>2]=0;a:{b:{if(k[b+38>>1]<=513){g=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];d=e+4|0;if(d>>>0<4){c=c+1|0}f=d;d=c;if((g|0)<(c|0)?1:(g|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[m+28>>2]=c;i[b+16>>2]=f;i[b+20>>2]=d;break b}if(!Pc(1,m+28|0,b)){break a}c=i[m+28>>2]}if(!c){break a}f=a+76|0;Qc(f,c);o=Be(m+8|0);c:{if(!Ce(o,b)){break c}g=1;while(1){e=1<<(n&31);h=Ee(o);d=i[f>>2]+(n>>>3&536870908)|0;g=g^h;h=i[d>>2]|e;d:{if(!(g&1)){break d}h=i[d>>2]&(e^-1)}e=h;g=g^1;i[d>>2]=e;n=n+1|0;if((c|0)!=(n|0)){continue}break}n=0;d=i[b+12>>2];g=d;c=i[b+20>>2];e=c;o=i[b+16>>2];f=o+4|0;if(f>>>0<4){c=c+1|0}p=i[b+8>>2];h=f;f=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?p>>>0>>0:0){break c}q=i[b>>2];c=q+o|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=f;c=e;e=o+8|0;if(e>>>0<8){c=c+1|0}f=e;e=c;if((g|0)<(c|0)?1:(g|0)<=(c|0)?p>>>0>>0:0){break c}c=h+q|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=e;if((d|0)>(c|0)){break c}i[a+16>>2]=c;i[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break c}n=1;b=b+1|0;i[a+20>>2]=b;c=(b|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(b&1){break c}i[a+24>>2]=c+ -1}}L=m+32|0;return n|0}function mh(a,b){var c=0,d=0,e=0;e=L-48|0;L=e;c=Gm(36);i[c+4>>2]=0;i[c+8>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;i[c>>2]=c+4;i[c+12>>2]=c+16;i[e+40>>2]=c;d=e+32|0;i[d>>2]=0;a:{if(!$k(d,i[b+32>>2],c)){b=Gm(32);i[e+16>>2]=b;i[e+20>>2]=26;i[e+24>>2]=-2147483616;g[b+26|0]=0;c=j[13614]|j[13615]<<8;g[b+24|0]=c;g[b+25|0]=c>>>8;c=j[13610]|j[13611]<<8|(j[13612]<<16|j[13613]<<24);d=j[13606]|j[13607]<<8|(j[13608]<<16|j[13609]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[13602]|j[13603]<<8|(j[13604]<<16|j[13605]<<24);d=j[13598]|j[13599]<<8|(j[13600]<<16|j[13601]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13594]|j[13595]<<8|(j[13596]<<16|j[13597]<<24);d=j[13590]|j[13591]<<8|(j[13592]<<16|j[13593]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;Jm(a+4|0,e+16|0);if(g[e+27|0]>-1){break a}qn(i[e+16>>2]);break a}b=i[b+4>>2];i[e+8>>2]=0;i[e+40>>2]=0;d=i[b+4>>2];i[b+4>>2]=c;b:{if(!d){i[e+8>>2]=0;break b}nh(d);b=i[e+8>>2];i[e+8>>2]=0;if(!b){break b}nh(b)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}a=i[e+40>>2];i[e+40>>2]=0;if(a){nh(a)}L=e+48|0}function Kf(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;d=L-112|0;L=d;l=i[i[b+4>>2]+44>>2];h=Gm(120);e=h;i[e+12>>2]=0;i[e+16>>2]=0;i[e>>2]=12316;i[e+4>>2]=0;i[e+8>>2]=12528;i[e+116>>2]=0;i[e+112>>2]=c;i[e+108>>2]=l;i[e+104>>2]=0;i[e+96>>2]=0;i[e+100>>2]=0;i[e+20>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+56>>2]=0;i[e+60>>2]=0;e=e- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[h+72>>2]=0;i[h+76>>2]=0;i[h+80>>2]=0;i[h+84>>2]=0;i[h+88>>2]=0;b=i[b+8>>2];i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;e=d+32|0;i[e>>2]=0;i[e+4>>2]=0;m=d+24|0;j=m;i[j>>2]=0;i[j+4>>2]=0;j=d+16|0;f=j;i[f>>2]=0;i[f+4>>2]=0;f=d- -64|0;i[f>>2]=0;i[f+4>>2]=0;i[d+72>>2]=0;i[d+76>>2]=0;f=d+80|0;i[f>>2]=0;i[f+4>>2]=0;i[d+88>>2]=0;i[d+104>>2]=0;i[d+56>>2]=0;i[d+60>>2]=0;i[d+8>>2]=12528;i[d+96>>2]=0;i[d+100>>2]=0;i[d+12>>2]=b;k=i[b>>2];n=i[b+4>>2];g[d+111|0]=0;Lf(e,(n-k>>2>>>0)/3|0,d+111|0);e=i[d+12>>2];k=i[e+28>>2];e=i[e+24>>2];g[d+111|0]=0;Lf(d+44|0,k-e>>2,d+111|0);i[d+28>>2]=h;i[m>>2]=l;i[d+20>>2]=c;i[j>>2]=b;Nf(h,d+8|0);i[a>>2]=h;i[d+8>>2]=12528;a=i[d+96>>2];if(a){i[d+100>>2]=a;qn(a)}a=i[f>>2];if(a){i[d+84>>2]=a;qn(a)}a=i[d+68>>2];if(a){i[d+72>>2]=a;qn(a)}a=i[d+56>>2];if(a){i[d+60>>2]=a;qn(a)}i[d+8>>2]=12764;a=i[d+44>>2];if(a){qn(a)}a=i[d+32>>2];if(a){qn(a)}L=d+112|0}function Oc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,p=0,q=0,r=0;n=L-32|0;L=n;a:{if(k[b+38>>1]<=513){e=i[b+16>>2];d=i[b+12>>2];c=i[b+20>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]<=e>>>0:0){break a}f=j[e+i[b>>2]|0];e=e+1|0;if(e>>>0<1){c=c+1|0}i[b+16>>2]=e;i[b+20>>2]=c;if(f){break a}}b:{while(1){if(!Pc(1,n+28|0,b)){break b}c=i[n+28>>2];if(c){f=(o(g,12)+a|0)+60|0;Qc(f,c);m=Be(n+8|0);if(!Ce(m,b)){break b}h=0;while(1){d=1<<(h&31);p=Ee(m);e=i[f>>2]+(h>>>3&536870908)|0;q=e;if(p){d=i[e>>2]|d}else{d=i[e>>2]&(d^-1)}i[q>>2]=d;h=h+1|0;if((c|0)!=(h|0)){continue}break}}g=g+1|0;if((g|0)!=4){continue}break}h=0;d=i[b+12>>2];e=d;c=i[b+20>>2];g=c;m=i[b+16>>2];f=m+4|0;if(f>>>0<4){c=c+1|0}q=i[b+8>>2];p=f;f=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?q>>>0

>>0:0){break a}r=i[b>>2];c=r+m|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=p;i[b+20>>2]=f;c=g;g=m+8|0;if(g>>>0<8){c=c+1|0}f=g;g=c;if((e|0)<(c|0)?1:(e|0)<=(c|0)?q>>>0>>0:0){break a}c=p+r|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=g;if((d|0)>(c|0)){break a}i[a+16>>2]=c;i[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break a}h=1;b=b+1|0;i[a+20>>2]=b;c=(b|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(b&1){break a}i[a+24>>2]=c+ -1;break a}h=0}L=n+32|0;return h|0}function He(a,b){var c=0,d=0,e=0;e=L-32|0;L=e;a:{b:{switch(b|0){case 0:b=Gm(48);sf(b);i[b>>2]=13256;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;break a;case 1:b=Gm(52);sf(b);i[b+48>>2]=0;i[b>>2]=11360;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;break a;default:break b}}b=Gm(32);i[e>>2]=b;i[e+4>>2]=28;i[e+8>>2]=-2147483616;g[b+28|0]=0;c=j[11080]|j[11081]<<8|(j[11082]<<16|j[11083]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;c=j[11076]|j[11077]<<8|(j[11078]<<16|j[11079]<<24);d=j[11072]|j[11073]<<8|(j[11074]<<16|j[11075]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[11068]|j[11069]<<8|(j[11070]<<16|j[11071]<<24);d=j[11064]|j[11065]<<8|(j[11066]<<16|j[11067]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11060]|j[11061]<<8|(j[11062]<<16|j[11063]<<24);d=j[11056]|j[11057]<<8|(j[11058]<<16|j[11059]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[e+16>>2]=-1;b=Jm(e+16|4,e);i[a>>2]=i[e+16>>2];Jm(a+4|0,b);i[a+16>>2]=0;if(g[b+11|0]<=-1){qn(i[b>>2])}if(g[e+11|0]>-1){break a}qn(i[e>>2])}L=e+32|0}function Uf(a,b){var c=0,d=0,e=0,f=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if((e-c|0)/144>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=o(b,144)+c|0;while(1){i[c>>2]=-1;Rk(c+4|0);i[c+104>>2]=0;i[c+108>>2]=0;g[c+100|0]=1;i[c+112>>2]=0;i[c+116>>2]=0;i[c+120>>2]=0;i[c+124>>2]=0;i[c+128>>2]=0;i[c+132>>2]=0;i[c+136>>2]=0;i[c+140>>2]=0;c=c+144|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{b:{c:{f=i[a>>2];c=(c-f|0)/144|0;d=c+b|0;if(d>>>0<29826162){h=o(c,144);e=(e-f|0)/144|0;f=e<<1;e=e>>>0<14913080?f>>>0>>0?d:f:29826161;c=0;d:{if(!e){break d}if(e>>>0>=29826162){break c}c=Gm(o(e,144))}d=h+c|0;f=d+o(b,144)|0;e=c+o(e,144)|0;c=d;while(1){i[c>>2]=-1;Rk(c+4|0);i[c+104>>2]=0;i[c+108>>2]=0;g[c+100|0]=1;i[c+112>>2]=0;i[c+116>>2]=0;i[c+120>>2]=0;i[c+124>>2]=0;i[c+128>>2]=0;i[c+132>>2]=0;i[c+136>>2]=0;i[c+140>>2]=0;c=c+144|0;if((f|0)!=(c|0)){continue}break}b=i[a+4>>2];c=i[a>>2];if((b|0)==(c|0)){break b}while(1){b=b+ -144|0;d=_g(d+ -144|0,b);if((b|0)!=(c|0)){continue}break}c=i[a+4>>2];b=i[a>>2];break a}Vm();x()}Da(12220);x()}b=c}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=d;if((b|0)!=(c|0)){while(1){a=i[c+ -12>>2];if(a){i[c+ -8>>2]=a;qn(a)}a=i[c+ -28>>2];if(a){i[c+ -24>>2]=a;qn(a)}a=c+ -144|0;d=i[c+ -40>>2];if(d){i[c+ -36>>2]=d;qn(d)}Tf(c+ -140|0);c=a;if((b|0)!=(c|0)){continue}break}}if(b){qn(b)}}function fd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0;m=L-16|0;L=m;e=i[b+12>>2];c=i[b+20>>2];f=i[b+16>>2];d=f+4|0;if(d>>>0<4){c=c+1|0}g=d;d=c;a:{if((e|0)<(c|0)?1:(e|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=f+i[b>>2]|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=g;i[b+20>>2]=d;if((c|0)<0){break a}Qc(a+76|0,c);g=Be(m);b:{if(!Ce(g,b)){break b}if((c|0)>=1){e=1;while(1){f=1<<(k&31);h=Ee(g);d=i[a+76>>2]+(k>>>3&536870908)|0;e=e^h;h=i[d>>2]|f;c:{if(!(e&1)){break c}h=i[d>>2]&(f^-1)}f=h;e=e^1;i[d>>2]=f;k=k+1|0;if((c|0)!=(k|0)){continue}break}}d=i[b+12>>2];k=d;c=i[b+20>>2];e=c;g=i[b+16>>2];f=g+4|0;if(f>>>0<4){c=c+1|0}n=i[b+8>>2];h=f;f=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?n>>>0>>0:0){break b}o=i[b>>2];c=o+g|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=f;c=e;e=g+8|0;if(e>>>0<8){c=c+1|0}f=e;e=c;if((k|0)<(c|0)?1:(k|0)<=(c|0)?n>>>0>>0:0){break b}c=h+o|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=e;if((d|0)>(c|0)){break b}i[a+16>>2]=c;i[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break b}p=1;b=b+1|0;i[a+20>>2]=b;c=(b|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(b&1){break b}i[a+24>>2]=c+ -1}}L=m+16|0;return p|0}function Me(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=L-32|0;L=e;f=a+16|0;d=i[f>>2];a:{b:{if(!d){break b}h=i[b>>2];c=f;while(1){g=i[d+16>>2]<(h|0);c=g?c:d;d=i[(g<<2)+d>>2];if(d){continue}break}if((c|0)==(f|0)){break b}if((h|0)>=i[c+16>>2]){break a}}k=Ih(e+16|0);b=i[b>>2];j=e+8|0;i[j>>2]=0;i[j+4>>2]=0;i[e>>2]=b;i[e+4>>2]=j;c=i[k>>2];h=k+4|0;if((c|0)!=(h|0)){g=e|4;while(1){b=c;d=c+16|0;Ne(g,j,d,d);d=i[c+4>>2];c:{if(!d){c=i[b+8>>2];if((b|0)==i[c>>2]){break c}d=b+8|0;while(1){b=i[d>>2];d=b+8|0;c=i[b+8>>2];if((b|0)!=i[c>>2]){continue}break}break c}while(1){c=d;d=i[c>>2];if(d){continue}break}}if((c|0)!=(h|0)){continue}break}}d=i[a+16>>2];d:{if(d){f=a+16|0;g=i[e>>2];while(1){b=i[d+16>>2];e:{if((g|0)<(b|0)){c=i[d>>2];if(c){break e}f=d;break d}if((b|0)>=(g|0)){break d}f=d+4|0;c=i[d+4>>2];if(!c){break d}d=f}f=d;d=c;continue}}d=f}c=i[f>>2];if(!c){c=Gm(32);i[c+16>>2]=i[e>>2];i[c+20>>2]=i[e+4>>2];g=i[e+8>>2];i[c+24>>2]=g;b=i[e+12>>2];i[c+28>>2]=b;h=c+24|0;f:{if(!b){i[c+20>>2]=h;break f}i[g+8>>2]=h;i[e+8>>2]=0;i[e+12>>2]=0;i[e+4>>2]=j}i[c+8>>2]=d;i[c>>2]=0;i[c+4>>2]=0;i[f>>2]=c;d=i[i[a+12>>2]>>2];b=c;g:{if(!d){break g}i[a+12>>2]=d;b=i[f>>2]}Oe(i[a+16>>2],b);a=a+20|0;i[a>>2]=i[a>>2]+1}Pe(e|4,i[e+8>>2]);Pe(k,i[k+4>>2])}L=e+32|0;return c+20|0}function qg(a,b){var c=0,d=0,e=0,f=0,g=0;f=-1;d=-1;a:{if((b|0)==-1){break a}d=b+1|0;f=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break a}d=b+2|0}b:{c:{d:{switch(i[a+168>>2]){case 0:case 1:c=i[a+148>>2];e=1;b=i[a+156>>2];g=b+(((f|0)!=-1?i[i[c>>2]+(f<<2)>>2]:-1)<<2)|0;i[g>>2]=i[g>>2]+1;b=(((d|0)!=-1?i[i[c>>2]+(d<<2)>>2]:-1)<<2)+b|0;break c;case 5:e=i[a+148>>2];c=-1;c=((b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:c)<<2;b=i[a+156>>2];c=c+b|0;i[c>>2]=i[c>>2]+1;c=(((f|0)!=-1?i[i[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;i[c>>2]=i[c>>2]+1;c=-1;c=(d|0)!=-1?i[i[e>>2]+(d<<2)>>2]:c;e=2;b=b+(c<<2)|0;break c;case 3:e=i[a+148>>2];c=-1;c=((b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:c)<<2;b=i[a+156>>2];c=c+b|0;i[c>>2]=i[c>>2]+1;c=(((f|0)!=-1?i[i[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;i[c>>2]=i[c>>2]+2;b=(((d|0)!=-1?i[i[e>>2]+(d<<2)>>2]:-1)<<2)+b|0;e=1;break c;case 7:break d;default:break b}}e=i[a+148>>2];c=-1;c=((b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:c)<<2;b=i[a+156>>2];c=c+b|0;i[c>>2]=i[c>>2]+2;c=(((f|0)!=-1?i[i[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;i[c>>2]=i[c>>2]+2;c=-1;c=(d|0)!=-1?i[i[e>>2]+(d<<2)>>2]:c;e=2;b=b+(c<<2)|0}i[b>>2]=i[b>>2]+e}c=-1;c=(f|0)!=-1?i[i[i[a+148>>2]>>2]+(f<<2)>>2]:c;f=i[a+176>>2];b=f;d=a;c=i[i[a+156>>2]+(c<<2)>>2];if((c|0)>=(b|0)){a=i[a+180>>2];b=(c|0)>(a|0)?a:c}i[d+172>>2]=b-f}function Te(a,b,c,d){var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=L+ -64|0;L=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(!Ve(e+8|0,c)){break a}if(!We(e+8|0,c)){break a}b:{if(!a){Eh(c,0,0);break b}if(!i[e+20>>2]){break a}Eh(c,0,0);h=i[e+56>>2];s=i[e+36>>2];t=i[e+48>>2];u=i[e+24>>2];while(1){c:{if(h>>>0>16383){break c}f=i[e+52>>2];while(1){if((f|0)<1){break c}f=f+ -1|0;i[e+52>>2]=f;h=j[f+t|0]|h<<8;i[e+56>>2]=h;if(h>>>0<16384){continue}break}}g=h&4095;q=i[(g<<2)+u>>2];k=(q<<3)+s|0;h=(o(i[k>>2],h>>>12|0)+g|0)-i[k+4>>2]|0;i[e+56>>2]=h;if((b|0)>=1){if(!j[c+36|0]){g=0;break a}k=b+l|0;while(1){d:{if((q|0)<1){n=0;break d}g=i[c+32>>2];v=i[c+28>>2];w=i[c+24>>2];f=0;n=0;while(1){m=(g>>>3|0)+w|0;e:{if(m>>>0>=v>>>0){p=0;break e}p=j[m|0];m=g+1|0;i[c+32>>2]=m;p=p>>>(g&7)&1;g=m}n=p<>2]=n;l=l+1|0;if((k|0)!=(l|0)){continue}break}l=k}r=b+r|0;if(r>>>0>>0){continue}break}}Gh(c);g=1}a=i[e+36>>2];if(a){i[e+40>>2]=a;qn(a)}a=i[e+24>>2];if(a){i[e+28>>2]=a;qn(a)}a=i[e+8>>2];if(a){i[e+12>>2]=a;qn(a)}L=e- -64|0;return g}function nf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0;g=L-16|0;L=g;a:{b:{if(k[b+38>>1]<=511){d=i[b+12>>2];m=d;c=i[b+20>>2];e=i[b+16>>2];f=e+8|0;if(f>>>0<8){c=c+1|0}h=i[b+8>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?h>>>0>>0:0){break a}d=e+i[b>>2]|0;e=j[d+4|0]|j[d+5|0]<<8|(j[d+6|0]<<16|j[d+7|0]<<24);d=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[g+8>>2]=d;i[g+12>>2]=e;i[b+16>>2]=f;i[b+20>>2]=c;break b}if(!ef(1,g+8|0,b)){break a}f=i[b+16>>2];c=i[b+20>>2];h=i[b+8>>2];m=i[b+12>>2];d=i[g+8>>2];e=i[g+12>>2]}l=h-f|0;h=m-(c+(h>>>0>>0)|0)|0;if((h|0)==(e|0)&d>>>0>l>>>0|e>>>0>h>>>0){break a}e=c+e|0;c=f;l=c+d|0;if(l>>>0>>0){e=e+1|0}i[b+16>>2]=l;i[b+20>>2]=e;c=d;if((c|0)<1){break a}f=f+i[b>>2]|0;i[a+40>>2]=f;b=a;c:{d:{e:{f:{g:{d=c+ -1|0;e=f+d|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}i[a+44>>2]=d;a=j[e|0]&63;break c}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+f|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+f|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break c}i[a+44>>2]=c+ -4;a=(c+f|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a- -1048576|0;i[b+48>>2]=a;n=a>>>0<268435456}L=g+16|0;return n}function rf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0;g=L-16|0;L=g;a:{b:{if(k[b+38>>1]<=511){d=i[b+12>>2];m=d;c=i[b+20>>2];e=i[b+16>>2];f=e+8|0;if(f>>>0<8){c=c+1|0}h=i[b+8>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?h>>>0>>0:0){break a}d=e+i[b>>2]|0;e=j[d+4|0]|j[d+5|0]<<8|(j[d+6|0]<<16|j[d+7|0]<<24);d=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[g+8>>2]=d;i[g+12>>2]=e;i[b+16>>2]=f;i[b+20>>2]=c;break b}if(!ef(1,g+8|0,b)){break a}f=i[b+16>>2];c=i[b+20>>2];h=i[b+8>>2];m=i[b+12>>2];d=i[g+8>>2];e=i[g+12>>2]}l=h-f|0;h=m-(c+(h>>>0>>0)|0)|0;if((h|0)==(e|0)&d>>>0>l>>>0|e>>>0>h>>>0){break a}e=c+e|0;c=f;l=c+d|0;if(l>>>0>>0){e=e+1|0}i[b+16>>2]=l;i[b+20>>2]=e;c=d;if((c|0)<1){break a}f=f+i[b>>2]|0;i[a+40>>2]=f;b=a;c:{d:{e:{f:{g:{d=c+ -1|0;e=f+d|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}i[a+44>>2]=d;a=j[e|0]&63;break c}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+f|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+f|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break c}i[a+44>>2]=c+ -4;a=(c+f|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a+4194304|0;i[b+48>>2]=a;n=a>>>0<1073741824}L=g+16|0;return n}function pf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0;g=L-16|0;L=g;a:{b:{if(k[b+38>>1]<=511){d=i[b+12>>2];m=d;c=i[b+20>>2];e=i[b+16>>2];f=e+8|0;if(f>>>0<8){c=c+1|0}h=i[b+8>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?h>>>0>>0:0){break a}d=e+i[b>>2]|0;e=j[d+4|0]|j[d+5|0]<<8|(j[d+6|0]<<16|j[d+7|0]<<24);d=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[g+8>>2]=d;i[g+12>>2]=e;i[b+16>>2]=f;i[b+20>>2]=c;break b}if(!ef(1,g+8|0,b)){break a}f=i[b+16>>2];c=i[b+20>>2];h=i[b+8>>2];m=i[b+12>>2];d=i[g+8>>2];e=i[g+12>>2]}l=h-f|0;h=m-(c+(h>>>0>>0)|0)|0;if((h|0)==(e|0)&d>>>0>l>>>0|e>>>0>h>>>0){break a}e=c+e|0;c=f;l=c+d|0;if(l>>>0>>0){e=e+1|0}i[b+16>>2]=l;i[b+20>>2]=e;c=d;if((c|0)<1){break a}f=f+i[b>>2]|0;i[a+40>>2]=f;b=a;c:{d:{e:{f:{g:{d=c+ -1|0;e=f+d|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}i[a+44>>2]=d;a=j[e|0]&63;break c}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+f|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+f|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break c}i[a+44>>2]=c+ -4;a=(c+f|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a+2097152|0;i[b+48>>2]=a;n=a>>>0<536870912}L=g+16|0;return n}function lf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0;g=L-16|0;L=g;a:{b:{if(k[b+38>>1]<=511){d=i[b+12>>2];m=d;c=i[b+20>>2];e=i[b+16>>2];f=e+8|0;if(f>>>0<8){c=c+1|0}h=i[b+8>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?h>>>0>>0:0){break a}d=e+i[b>>2]|0;e=j[d+4|0]|j[d+5|0]<<8|(j[d+6|0]<<16|j[d+7|0]<<24);d=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[g+8>>2]=d;i[g+12>>2]=e;i[b+16>>2]=f;i[b+20>>2]=c;break b}if(!ef(1,g+8|0,b)){break a}f=i[b+16>>2];c=i[b+20>>2];h=i[b+8>>2];m=i[b+12>>2];d=i[g+8>>2];e=i[g+12>>2]}l=h-f|0;h=m-(c+(h>>>0>>0)|0)|0;if((h|0)==(e|0)&d>>>0>l>>>0|e>>>0>h>>>0){break a}e=c+e|0;c=f;l=c+d|0;if(l>>>0>>0){e=e+1|0}i[b+16>>2]=l;i[b+20>>2]=e;c=d;if((c|0)<1){break a}f=f+i[b>>2]|0;i[a+40>>2]=f;b=a;c:{d:{e:{f:{g:{d=c+ -1|0;e=f+d|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}i[a+44>>2]=d;a=j[e|0]&63;break c}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+f|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+f|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break c}i[a+44>>2]=c+ -4;a=(c+f|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a+262144|0;i[b+48>>2]=a;n=a>>>0<67108864}L=g+16|0;return n}function jf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0;g=L-16|0;L=g;a:{b:{if(k[b+38>>1]<=511){d=i[b+12>>2];m=d;c=i[b+20>>2];e=i[b+16>>2];f=e+8|0;if(f>>>0<8){c=c+1|0}h=i[b+8>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?h>>>0>>0:0){break a}d=e+i[b>>2]|0;e=j[d+4|0]|j[d+5|0]<<8|(j[d+6|0]<<16|j[d+7|0]<<24);d=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[g+8>>2]=d;i[g+12>>2]=e;i[b+16>>2]=f;i[b+20>>2]=c;break b}if(!ef(1,g+8|0,b)){break a}f=i[b+16>>2];c=i[b+20>>2];h=i[b+8>>2];m=i[b+12>>2];d=i[g+8>>2];e=i[g+12>>2]}l=h-f|0;h=m-(c+(h>>>0>>0)|0)|0;if((h|0)==(e|0)&d>>>0>l>>>0|e>>>0>h>>>0){break a}e=c+e|0;c=f;l=c+d|0;if(l>>>0>>0){e=e+1|0}i[b+16>>2]=l;i[b+20>>2]=e;c=d;if((c|0)<1){break a}f=f+i[b>>2]|0;i[a+40>>2]=f;b=a;c:{d:{e:{f:{g:{d=c+ -1|0;e=f+d|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}i[a+44>>2]=d;a=j[e|0]&63;break c}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+f|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+f|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break c}i[a+44>>2]=c+ -4;a=(c+f|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a+131072|0;i[b+48>>2]=a;n=a>>>0<33554432}L=g+16|0;return n}function hi(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=L-16|0;L=e;i[a+68>>2]=i[a+68>>2]+1;d=o(b,12)+a|0;d=i[d+12>>2]-i[d+8>>2]|0;if((d|0)>=1){d=d>>2;k=(d|0)>1?d:1;d=i[((b<<2)+a|0)+44>>2];while(1){b=d;g=(b>>>0)/3|0;f=(b|0)==-1;d=f?-1:g;h=i[a+56>>2]+(d>>>3&536870908)|0;i[h>>2]=i[h>>2]|1<<(d&31);i[a+72>>2]=i[a+72>>2]+1;a:{b:{if(!j){i[e+12>>2]=(b|0)<0?-1:i[(i[i[a>>2]+96>>2]+o(g,12)|0)+((b>>>0)%3<<2)>>2];i[e+8>>2]=c;gi(e+8|0,e+12|0);c:{if(!f){d=-1;g=e;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)>=0){h=(f>>>0)/3|0;h=i[(i[i[a>>2]+96>>2]+o(h,12)|0)+(f-o(h,3)<<2)>>2]}else{h=-1}i[g+12>>2]=h;i[e+8>>2]=c;gi(e+8|0,e+12|0);g=((b>>>0)%3|0?-1:2)+b|0;if((g|0)<0){break c}d=(g>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(g-o(d,3)<<2)>>2];break c}d=-1;i[e+12>>2]=-1;i[e+8>>2]=c;gi(e+8|0,e+12|0)}i[a+76>>2]=d;i[e+12>>2]=d;i[e+8>>2]=c;gi(e+8|0,e+12|0);break b}f=(b|0)<0?-1:i[(i[i[a>>2]+96>>2]+o(g,12)|0)+((b>>>0)%3<<2)>>2];i[a+76>>2]=f;i[e+12>>2]=f;i[e+8>>2]=c;gi(e+8|0,e+12|0);if(j&1){d=-1;if((b|0)==-1){break a}if(b-o(g,3)|0){b=b+ -1|0;break b}b=b+2|0;break b}d=-1;if((b|0)==-1){break a}d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0}d=-1;if((b|0)==-1){break a}d=i[i[i[a+4>>2]+12>>2]+(b<<2)>>2]}j=j+1|0;if((k|0)!=(j|0)){continue}break}}L=e+16|0}function gf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0;g=L-16|0;L=g;a:{b:{if(k[b+38>>1]<=511){d=i[b+12>>2];m=d;c=i[b+20>>2];e=i[b+16>>2];f=e+8|0;if(f>>>0<8){c=c+1|0}h=i[b+8>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?h>>>0>>0:0){break a}d=e+i[b>>2]|0;e=j[d+4|0]|j[d+5|0]<<8|(j[d+6|0]<<16|j[d+7|0]<<24);d=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[g+8>>2]=d;i[g+12>>2]=e;i[b+16>>2]=f;i[b+20>>2]=c;break b}if(!ef(1,g+8|0,b)){break a}f=i[b+16>>2];c=i[b+20>>2];h=i[b+8>>2];m=i[b+12>>2];d=i[g+8>>2];e=i[g+12>>2]}l=h-f|0;h=m-(c+(h>>>0>>0)|0)|0;if((h|0)==(e|0)&d>>>0>l>>>0|e>>>0>h>>>0){break a}e=c+e|0;c=f;l=c+d|0;if(l>>>0>>0){e=e+1|0}i[b+16>>2]=l;i[b+20>>2]=e;c=d;if((c|0)<1){break a}f=f+i[b>>2]|0;i[a+40>>2]=f;b=a;c:{d:{e:{f:{g:{d=c+ -1|0;e=f+d|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}i[a+44>>2]=d;a=j[e|0]&63;break c}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+f|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+f|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break c}i[a+44>>2]=c+ -4;a=(c+f|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a+32768|0;i[b+48>>2]=a;n=a>>>0<8388608}L=g+16|0;return n}function We(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0;g=L-16|0;L=g;a:{b:{if(k[b+38>>1]<=511){d=i[b+12>>2];m=d;c=i[b+20>>2];e=i[b+16>>2];f=e+8|0;if(f>>>0<8){c=c+1|0}h=i[b+8>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?h>>>0>>0:0){break a}d=e+i[b>>2]|0;e=j[d+4|0]|j[d+5|0]<<8|(j[d+6|0]<<16|j[d+7|0]<<24);d=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[g+8>>2]=d;i[g+12>>2]=e;i[b+16>>2]=f;i[b+20>>2]=c;break b}if(!ef(1,g+8|0,b)){break a}f=i[b+16>>2];c=i[b+20>>2];h=i[b+8>>2];m=i[b+12>>2];d=i[g+8>>2];e=i[g+12>>2]}l=h-f|0;h=m-(c+(h>>>0>>0)|0)|0;if((h|0)==(e|0)&d>>>0>l>>>0|e>>>0>h>>>0){break a}e=c+e|0;c=f;l=c+d|0;if(l>>>0>>0){e=e+1|0}i[b+16>>2]=l;i[b+20>>2]=e;c=d;if((c|0)<1){break a}f=f+i[b>>2]|0;i[a+40>>2]=f;b=a;c:{d:{e:{f:{g:{d=c+ -1|0;e=f+d|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}i[a+44>>2]=d;a=j[e|0]&63;break c}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+f|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+f|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break c}i[a+44>>2]=c+ -4;a=(c+f|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a+16384|0;i[b+48>>2]=a;n=a>>>0<4194304}L=g+16|0;return n}function Ce(a,b){var c=0,d=0,e=0,f=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;o=L-16|0;L=o;f=i[b+16>>2];c=i[b+12>>2];d=i[b+20>>2];a:{if((c|0)<(d|0)?1:(c|0)<=(d|0)?l[b+8>>2]<=f>>>0:0){break a}g[a+12|0]=j[f+i[b>>2]|0];c=i[b+20>>2];f=c;h=i[b+16>>2];m=h+1|0;if(m>>>0<1){c=c+1|0}e=m;i[b+16>>2]=e;i[b+20>>2]=c;b:{if(k[b+38>>1]<=513){n=i[b+12>>2];p=n;d=f;c=h+5|0;if(c>>>0<5){d=d+1|0}m=i[b+8>>2];h=c;c=d;if((p|0)<(c|0)?1:(p|0)<=(c|0)?m>>>0>>0:0){break a}d=e+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[o+12>>2]=e;i[b+16>>2]=h;i[b+20>>2]=c;break b}if(!De(1,o+12|0,b)){break a}h=i[b+16>>2];c=i[b+20>>2];m=i[b+8>>2];n=i[b+12>>2];e=i[o+12>>2]}d=e;f=n-(c+(m>>>0>>0)|0)|0;if(((f|0)<0?1:(f|0)<=0?m-h>>>0>>0:0)|(d|0)<1){break a}f=h+i[b>>2]|0;i[a>>2]=f;n=e+ -1|0;p=n+f|0;m=j[p|0]>>>6|0;if((m|0)==3){break a}q=a;c:{d:{switch(m-1|0){default:i[a+4>>2]=n;a=j[p|0]&63;break c;case 0:if((e|0)<2){break a}i[a+4>>2]=e+ -2;a=(e+f|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c;case 1:break d}}if((e|0)<3){break a}i[a+4>>2]=e+ -3;a=(e+f|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0]}a=a+4096|0;i[q+8>>2]=a;if(a>>>0>1048575){break a}a=d+h|0;if(a>>>0>>0){c=c+1|0}i[b+16>>2]=a;i[b+20>>2]=c;r=1}L=o+16|0;return r}function ph(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0;a:{b=i[a+32>>2];e=i[b+16>>2];h=i[b+12>>2];d=i[b+20>>2];b:{if((h|0)<(d|0)?1:(h|0)<=(d|0)?l[b+8>>2]<=e>>>0:0){break b}g=j[e+i[b>>2]|0];k=e+1|0;if(k>>>0<1){d=d+1|0}i[b+16>>2]=k;i[b+20>>2]=d;c:{if(!g){break c}while(1){if(O[i[i[a>>2]+16>>2]](a,c)|0){c=c+1|0;if((g|0)!=(c|0)){continue}break c}break}return 0}c=i[a+8>>2];d=i[a+12>>2];if((c|0)!=(d|0)){while(1){b=i[c>>2];if(!(O[i[i[b>>2]+8>>2]](b,a,i[a+4>>2])|0)){break b}c=c+4|0;if((d|0)!=(c|0)){continue}break}}d:{if(!g){break d}c=0;while(1){b=i[i[a+8>>2]+(c<<2)>>2];if(!(O[i[i[b>>2]+12>>2]](b,i[a+32>>2])|0)){break a}c=c+1|0;if((g|0)!=(c|0)){continue}break}if(!g){break d}h=a+20|0;while(1){c=0;k=m<<2;b=i[k+i[a+8>>2]>>2];d=O[i[i[b>>2]+24>>2]](b)|0;if((d|0)>0){while(1){b=i[i[a+8>>2]+k>>2];b=O[i[i[b>>2]+20>>2]](b,c)|0;n=i[a+20>>2];e=i[a+24>>2]-n>>2;e:{if(b>>>0>>0){break e}f=b+1|0;if(f>>>0>e>>>0){Ta(h,f-e|0);n=i[h>>2];break e}if(f>>>0>=e>>>0){break e}i[a+24>>2]=(f<<2)+n}i[(b<<2)+n>>2]=m;c=c+1|0;if((d|0)!=(c|0)){continue}break}}m=m+1|0;if((m|0)!=(g|0)){continue}break}}f=0;if(!(O[i[i[a>>2]+28>>2]](a)|0)){break b}f=O[i[i[a>>2]+32>>2]](a)|0}return f|0}return 0}function In(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{g=b;if(g){e=c;if(!e){break j}f=d;if(!f){break i}f=r(f)-r(g)|0;if(f>>>0<=31){break h}break b}if((d|0)==1&c>>>0>=0|d>>>0>1){break b}b=(a>>>0)/(c>>>0)|0;N=0;return b}e=d;if(!a){break g}if(!e){break f}if(e+ -1&e){break f}a=g>>>(On(e)&31)|0;N=0;return a}if(!(e+ -1&e)){break e}j=(r(e)+33|0)-r(g)|0;h=0-j|0;break c}j=f+1|0;h=63-f|0;break c}a=(g>>>0)/(e>>>0)|0;N=0;return a}f=r(e)-r(g)|0;if(f>>>0<31){break d}break b}if((e|0)==1){break a}c=a;a=On(e);d=a&31;if(32<=(a&63)>>>0){f=0;a=b>>>d|0}else{f=b>>>d|0;a=((1<>>d}N=f;return a}j=f+1|0;h=63-f|0}e=b;g=a;f=j&63;i=f&31;if(32<=(f&63)>>>0){f=0;l=e>>>i|0}else{f=e>>>i|0;l=((1<>>i}a=h&63;h=a&31;if(32<=(a&63)>>>0){e=g<>>32-h|b<>>31;f=e<<1|b>>>31;m=k;e=k;k=f;i=g-((h>>>0>>0)+e|0)|0;e=i>>31;i=i>>31;f=c&i;l=k-f|0;f=m-((d&e)+(k>>>0>>0)|0)|0;e=b<<1|a>>>31;a=n|a<<1;b=e|o;m=0;k=i&1;n=k;j=j+ -1|0;if(j){continue}break}}N=m|(b<<1|a>>>31);return k|a<<1}a=0;b=0}N=b;return a}function _k(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,p=0;d=L-32|0;L=d;i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;a:{e=i[a>>2];c=e;h=i[c+16>>2];k=l[c+8>>2]<=h>>>0;f=i[c+12>>2];c=i[c+20>>2];b:{if((f|0)<(c|0)?1:(f|0)<=(c|0)?k:0){break b}k=j[h+i[e>>2]|0];f=c;c=h+1|0;if(c>>>0<1){f=f+1|0}i[e+16>>2]=c;i[e+20>>2]=f;Om(d+16|0,k);if(k){f=i[a>>2];n=Sm(d+16|0);m=i[f+12>>2];h=i[f+20>>2];p=i[f+16>>2];e=k;c=p+e|0;if(c>>>0>>0){h=h+1|0}if((m|0)<(h|0)?1:(m|0)<=(h|0)?l[f+8>>2]>>0:0){break b}sn(n,p+i[f>>2]|0,k);h=i[f+20>>2];k=e+i[f+16>>2]|0;if(k>>>0>>0){h=h+1|0}c=f;i[c+16>>2]=k;i[c+20>>2]=h}i[d+12>>2]=0;c=Zk(1,d+12|0,i[a>>2]);e=i[d+12>>2];if(!e|!c){break b}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;if((e|0)<=-1){break a}m=Gm(e);i[d>>2]=m;c=e+m|0;i[d+8>>2]=c;p=tn(m,0,e);i[d+4>>2]=c;c=i[a>>2];a=i[c+8>>2];o=i[c+12>>2];f=a;n=i[c+20>>2];h=i[c+16>>2];a=e;k=h+e|0;if(k>>>0>>0){n=n+1|0}o=(o|0)>(n|0)?1:(o|0)>=(n|0)?f>>>0>=k>>>0:0;if(o){sn(p,h+i[c>>2]|0,e);e=c;k=c;f=i[c+20>>2];c=a+i[c+16>>2]|0;if(c>>>0>>0){f=f+1|0}i[k+16>>2]=c;i[e+20>>2]=f;jl(b,d+16|0,d);m=i[d>>2];if(!m){break b}}i[d+4>>2]=m;qn(m)}if(g[d+27|0]<=-1){qn(i[d+16>>2])}L=d+32|0;return o}Vm();x()}function cg(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=p(0),o=0,q=0;f=i[c>>2];o=a;a:{b:{e=i[b+4>>2];if(!e){break b}j=i[b>>2];l=Mn(e);h=f&e+ -1;c:{if(l>>>0<=1){break c}c=f;h=c;if(c>>>0>>0){break c}h=(f>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+j>>2];if(!c){break b}q=e+ -1|0;l=l>>>0>1;while(1){c=i[c>>2];if(!c){break b}j=i[c+4>>2];if((f|0)!=(j|0)){d:{if(!l){j=j&q;break d}if(j>>>0>>0){break d}j=(j>>>0)%(e>>>0)|0}if((j|0)!=(h|0)){break b}}if((f|0)!=i[c+8>>2]){continue}break}b=0;break a}c=Gm(16);d=i[i[d>>2]>>2];i[c+12>>2]=0;i[c+8>>2]=d;i[c+4>>2]=f;i[c>>2]=0;k=m[b+16>>2];n=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(n/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}$g(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=f&e+ -1;break e}if(f>>>0>>0){h=f;break e}h=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(h<<2)|0;d=i[f>>2];g:{h:{if(!d){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[f>>2]=b+8;d=i[c>>2];if(!d){break g}d=i[d+4>>2];f=e+ -1|0;i:{if(!(f&e)){d=d&f;break i}if(d>>>0>>0){break i}d=(d>>>0)%(e>>>0)|0}d=i[b>>2]+(d<<2)|0;break h}i[c>>2]=i[d>>2]}i[d>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[o+4|0]=b;i[a>>2]=c}function Td(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;k=i[i[i[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((O[i[i[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}h=O[i[i[b>>2]+36>>2]](b)|0;f=O[i[i[b>>2]+44>>2]](b,d)|0;if(!h|!f){break b}g=f+12|0;j=O[i[i[b>>2]+40>>2]](b,d)|0;d=i[b+44>>2];c:{if(j){if((c|0)!=6){break c}b=Gm(112);i[b+4>>2]=k;c=i[e+4>>2];i[b+8>>2]=i[e>>2];i[b+12>>2]=c;c=i[e+12>>2];i[b+16>>2]=i[e+8>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+16>>2];i[b+40>>2]=f;i[b+36>>2]=g;i[b+32>>2]=j;i[b+28>>2]=d;i[b+68>>2]=f;i[b+64>>2]=g;i[b+60>>2]=j;i[b+56>>2]=d;i[b+48>>2]=0;i[b+52>>2]=0;i[b>>2]=8844;i[b+88>>2]=1065353216;i[b+92>>2]=-1;i[b+80>>2]=-1;i[b+84>>2]=-1;i[b+72>>2]=1;i[b+76>>2]=-1;i[b+44>>2]=9408;break a}if((c|0)!=6){break c}b=Gm(112);i[b+4>>2]=k;c=i[e+4>>2];i[b+8>>2]=i[e>>2];i[b+12>>2]=c;c=i[e+12>>2];i[b+16>>2]=i[e+8>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+16>>2];i[b+40>>2]=f;i[b+36>>2]=g;i[b+32>>2]=h;i[b+28>>2]=d;i[b+68>>2]=f;i[b+64>>2]=g;i[b+60>>2]=h;i[b+56>>2]=d;i[b+48>>2]=0;i[b+52>>2]=0;i[b>>2]=9848;i[b+88>>2]=1065353216;i[b+92>>2]=-1;i[b+80>>2]=-1;i[b+84>>2]=-1;i[b+72>>2]=1;i[b+76>>2]=-1;i[b+44>>2]=10268;break a}i[a>>2]=0}i[a>>2]=0;return}Be(b+96|0);i[a>>2]=b}function Sd(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;k=i[i[i[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((O[i[i[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}h=O[i[i[b>>2]+36>>2]](b)|0;f=O[i[i[b>>2]+44>>2]](b,d)|0;if(!h|!f){break b}g=f+12|0;j=O[i[i[b>>2]+40>>2]](b,d)|0;d=i[b+44>>2];c:{if(j){if((c|0)!=6){break c}b=Gm(112);i[b+4>>2]=k;c=i[e+4>>2];i[b+8>>2]=i[e>>2];i[b+12>>2]=c;c=i[e+12>>2];i[b+16>>2]=i[e+8>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+16>>2];i[b+40>>2]=f;i[b+36>>2]=g;i[b+32>>2]=j;i[b+28>>2]=d;i[b+68>>2]=f;i[b+64>>2]=g;i[b+60>>2]=j;i[b+56>>2]=d;i[b+48>>2]=0;i[b+52>>2]=0;i[b>>2]=6960;i[b+88>>2]=1065353216;i[b+92>>2]=-1;i[b+80>>2]=-1;i[b+84>>2]=-1;i[b+72>>2]=1;i[b+76>>2]=-1;i[b+44>>2]=7484;break a}if((c|0)!=6){break c}b=Gm(112);i[b+4>>2]=k;c=i[e+4>>2];i[b+8>>2]=i[e>>2];i[b+12>>2]=c;c=i[e+12>>2];i[b+16>>2]=i[e+8>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+16>>2];i[b+40>>2]=f;i[b+36>>2]=g;i[b+32>>2]=h;i[b+28>>2]=d;i[b+68>>2]=f;i[b+64>>2]=g;i[b+60>>2]=h;i[b+56>>2]=d;i[b+48>>2]=0;i[b+52>>2]=0;i[b>>2]=7896;i[b+88>>2]=1065353216;i[b+92>>2]=-1;i[b+80>>2]=-1;i[b+84>>2]=-1;i[b+72>>2]=1;i[b+76>>2]=-1;i[b+44>>2]=8288;break a}i[a>>2]=0}i[a>>2]=0;return}Be(b+96|0);i[a>>2]=b}function tg(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11520;b=i[a+388>>2];if(b){i[a+392>>2]=b;qn(b)}b=a+368|0;d=i[b>>2];i[b>>2]=0;if(d){c=d+ -4|0;b=i[c>>2];if(b){b=d+(b<<4)|0;while(1){b=b+ -16|0;if((d|0)!=(b|0)){continue}break}}qn(c)}d=i[a+216>>2];if(d){b=i[a+220>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=i[b+ -12>>2];if(c){i[b+ -8>>2]=c;qn(c)}c=i[b+ -28>>2];if(c){i[b+ -24>>2]=c;qn(c)}c=b+ -144|0;e=i[b+ -40>>2];if(e){i[b+ -36>>2]=e;qn(e)}Tf(b+ -140|0);b=c;if((d|0)!=(b|0)){continue}break}c=i[a+216>>2]}i[a+220>>2]=d;qn(c)}b=i[a+196>>2];if(b){i[a+200>>2]=b;qn(b)}b=i[a+184>>2];if(b){i[a+188>>2]=b;qn(b)}b=i[a+172>>2];if(b){i[a+176>>2]=b;qn(b)}b=i[a+160>>2];if(b){i[a+164>>2]=b;qn(b)}b=i[a+144>>2];if(b){while(1){d=i[b>>2];qn(b);b=d;if(b){continue}break}}b=i[a+136>>2];i[a+136>>2]=0;if(b){qn(b)}b=i[a+120>>2];if(b){qn(b)}b=i[a+108>>2];if(b){qn(b)}b=i[a+96>>2];if(b){qn(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;qn(b)}b=i[a+60>>2];if(b){qn(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;qn(b)}b=i[a+36>>2];if(b){i[a+40>>2]=b;qn(b)}b=i[a+24>>2];if(b){i[a+28>>2]=b;qn(b)}b=i[a+12>>2];if(b){i[a+16>>2]=b;qn(b)}b=i[a+8>>2];i[a+8>>2]=0;if(b){Sf(a+8|0,b)}return a|0}function Rd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=L-32|0;L=e;a:{b:{switch(d+ -2|0){case 0:d=i[b+4>>2];b=i[b+12>>2];i[e+24>>2]=-1;i[e+16>>2]=-1;i[e+20>>2]=1065353216;i[e+8>>2]=-1;i[e+12>>2]=-1;if((c|0)==-2){i[e>>2]=0;i[a>>2]=0;break a}f=i[i[i[d+4>>2]+8>>2]+(b<<2)>>2];if((O[i[i[d>>2]+8>>2]](d)|0)==1){g=b;b=k[d+36>>1];Sd(e,d,c,g,e+8|0,(b<<24|b<<8&16711680)>>>16|0);b=i[e>>2];if(b){i[a>>2]=b;break a}i[e>>2]=0}b=Gm(28);i[b+4>>2]=f;c=i[e+12>>2];i[b+8>>2]=i[e+8>>2];i[b+12>>2]=c;c=i[e+20>>2];i[b+16>>2]=i[e+16>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+24>>2];i[b>>2]=8676;i[e>>2]=b;i[a>>2]=b;break a;case 1:d=i[b+4>>2];b=i[b+12>>2];i[e+24>>2]=-1;i[e+16>>2]=-1;i[e+20>>2]=1065353216;i[e+8>>2]=-1;i[e+12>>2]=-1;if((c|0)==-2){i[e>>2]=0;i[a>>2]=0;break a}f=i[i[i[d+4>>2]+8>>2]+(b<<2)>>2];if((O[i[i[d>>2]+8>>2]](d)|0)==1){g=b;b=k[d+36>>1];Td(e,d,c,g,e+8|0,(b<<24|b<<8&16711680)>>>16|0);b=i[e>>2];if(b){i[a>>2]=b;break a}i[e>>2]=0}b=Gm(28);i[b+4>>2]=f;c=i[e+12>>2];i[b+8>>2]=i[e+8>>2];i[b+12>>2]=c;c=i[e+20>>2];i[b+16>>2]=i[e+16>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+24>>2];i[b>>2]=10680;i[e>>2]=b;i[a>>2]=b;break a;default:break b}}i[a>>2]=0}L=e+32|0}function _d(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;l=i[b+16>>2];f=i[c+4>>2]-l|0;e=i[c>>2]-l|0;i[c>>2]=e;i[c+4>>2]=f;g=f>>31;j=g+f^g;g=e>>31;h=i[b+16>>2];m=(j+(g+e^g)|0)<=(h|0);if(!m){a:{b:{if((e|0)>=0){k=1;j=1;if((f|0)>-1){break a}g=1;k=-1;j=-1;if((e|0)>=1){break b}break a}g=-1;k=-1;j=-1;if((f|0)<1){break a}}k=(f|0)<1?-1:1;j=g}g=f<<1;f=o(h,k);g=g-f|0;i[c+4>>2]=g;h=o(h,j);e=(e<<1)-h|0;i[c>>2]=e;c:{if((o(j,k)|0)>=0){g=0-g|0;i[c>>2]=g;e=0-e|0;break c}i[c>>2]=g}f=(e+f|0)/2|0;i[c+4>>2]=f;e=(g+h|0)/2|0;i[c>>2]=e;h=i[b+16>>2]}e=i[d>>2]+e|0;i[a>>2]=e;c=i[d+4>>2]+f|0;i[a+4>>2]=c;d:{if((h|0)<(e|0)){e=e-i[b+4>>2]|0;break d}if((e|0)>=(0-h|0)){break d}e=i[b+4>>2]+e|0}i[a>>2]=e;e:{if((h|0)<(c|0)){c=c-i[b+4>>2]|0;break e}if((c|0)>=(0-h|0)){break e}c=i[b+4>>2]+c|0}i[a+4>>2]=c;if(!m){f:{g:{if((e|0)>=0){b=1;d=1;if((c|0)>-1){break f}f=1;b=-1;d=-1;if((e|0)>=1){break g}break f}f=-1;b=-1;d=-1;if((c|0)<1){break f}}b=(c|0)<1?-1:1;d=f}g=o(b,h);f=(c<<1)-g|0;i[a+4>>2]=f;j=o(d,h);c=(e<<1)-j|0;i[a>>2]=c;h:{if((o(b,d)|0)>=0){f=0-f|0;i[a>>2]=f;c=0-c|0;break h}i[a>>2]=f}c=(c+g|0)/2|0;i[a+4>>2]=c;e=(f+j|0)/2|0;i[a>>2]=e}i[a>>2]=e+l;i[a+4>>2]=c+l}function sn(a,b,c){var d=0,e=0,f=0;if(c>>>0>=512){I(a|0,b|0,c|0)|0;return a}e=a+c|0;a:{if(!((a^b)&3)){b:{if((c|0)<1){c=a;break b}if(!(a&3)){c=a;break b}c=a;while(1){g[c|0]=j[b|0];b=b+1|0;c=c+1|0;if(c>>>0>=e>>>0){break b}if(c&3){continue}break}}d=e&-4;c:{if(d>>>0<64){break c}f=d+ -64|0;if(c>>>0>f>>>0){break c}while(1){i[c>>2]=i[b>>2];i[c+4>>2]=i[b+4>>2];i[c+8>>2]=i[b+8>>2];i[c+12>>2]=i[b+12>>2];i[c+16>>2]=i[b+16>>2];i[c+20>>2]=i[b+20>>2];i[c+24>>2]=i[b+24>>2];i[c+28>>2]=i[b+28>>2];i[c+32>>2]=i[b+32>>2];i[c+36>>2]=i[b+36>>2];i[c+40>>2]=i[b+40>>2];i[c+44>>2]=i[b+44>>2];i[c+48>>2]=i[b+48>>2];i[c+52>>2]=i[b+52>>2];i[c+56>>2]=i[b+56>>2];i[c+60>>2]=i[b+60>>2];b=b- -64|0;c=c- -64|0;if(c>>>0<=f>>>0){continue}break}}if(c>>>0>=d>>>0){break a}while(1){i[c>>2]=i[b>>2];b=b+4|0;c=c+4|0;if(c>>>0>>0){continue}break}break a}if(e>>>0<4){c=a;break a}d=e+ -4|0;if(d>>>0>>0){c=a;break a}c=a;while(1){g[c|0]=j[b|0];g[c+1|0]=j[b+1|0];g[c+2|0]=j[b+2|0];g[c+3|0]=j[b+3|0];b=b+4|0;c=c+4|0;if(c>>>0<=d>>>0){continue}break}}if(c>>>0>>0){while(1){g[c|0]=j[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}return a}function cc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0;g=L-16|0;L=g;if(Ra(a,b)){m=a+36|0;h=O[i[i[a>>2]+24>>2]](a)|0;e=i[a+40>>2];d=i[a+36>>2];c=e-d>>2;a:{if(h>>>0>c>>>0){dc(m,h-c|0);break a}if(h>>>0>=c>>>0){break a}d=d+(h<<2)|0;if((d|0)!=(e|0)){while(1){e=e+ -4|0;c=i[e>>2];i[e>>2]=0;if(c){O[i[i[c>>2]+4>>2]](c)}if((e|0)!=(d|0)){continue}break}}i[a+40>>2]=d}b:{if((h|0)<1){break b}n=1;f=i[b+16>>2];d=i[b+12>>2];c=i[b+20>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]<=f>>>0:0){break b}e=0;while(1){k=j[f+i[b>>2]|0];f=f+1|0;if(f>>>0<1){c=c+1|0}d=b;i[d+16>>2]=f;i[d+20>>2]=c;O[i[i[a>>2]+48>>2]](g+8|0,a,k);c=i[a+36>>2];d=i[g+8>>2];i[g+8>>2]=0;f=e<<2;k=c+f|0;c=i[k>>2];i[k>>2]=d;if(c){O[i[i[c>>2]+4>>2]](c)}c=i[g+8>>2];i[g+8>>2]=0;if(c){O[i[i[c>>2]+4>>2]](c)}c=i[i[m>>2]+f>>2];if(!c){break b}if(!(p=c,q=O[i[i[a>>2]+28>>2]](a)|0,r=O[i[i[a>>2]+20>>2]](a,e)|0,o=i[i[c>>2]+8>>2],O[o](p|0,q|0,r|0)|0)){break b}e=e+1|0;n=(e|0)<(h|0);if((e|0)==(h|0)){break b}f=i[b+16>>2];d=i[b+12>>2];c=i[b+20>>2];if((d|0)>(c|0)?1:(d|0)>=(c|0)?l[b+8>>2]>f>>>0:0){continue}break}}e=n^1}L=g+16|0;return e&1}function Bd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;i[a+64>>2]=f;i[a+72>>2]=e;f=Gm((e&1073741823)!=(e|0)?-1:e<<2);d=i[a+68>>2];i[a+68>>2]=f;if(d){qn(d)}i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){Ta(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}b:{d=i[a+56>>2];g=i[d+4>>2];f=i[d>>2];d=g-f|0;if((d|0)<1){break b}if((f|0)!=(g|0)){d=d>>2;m=(d|0)>1?d:1;while(1){Cd(a,i[(j<<2)+f>>2],c,j);c:{if(i[a+8>>2]<1){break c}l=i[a+68>>2];f=0;while(1){d=f<<2;g=i[d+l>>2];h=i[a+16>>2];d:{if((g|0)>(h|0)){k=i[a+32>>2];i[d+k>>2]=h;break d}k=i[a+32>>2];d=d+k|0;h=i[a+12>>2];if((g|0)<(h|0)){i[d>>2]=h;break d}i[d>>2]=g}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){continue}break}d=0;if((g|0)<1){break c}f=o(e,j)<<2;l=f+c|0;h=b+f|0;while(1){g=d<<2;f=g+l|0;g=i[g+h>>2]+i[g+k>>2]|0;i[f>>2]=g;e:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break e}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}j=j+1|0;if((m|0)==(j|0)){break b}d=i[a+56>>2];f=i[d>>2];if(i[d+4>>2]-f>>2>>>0>j>>>0){continue}break}}Wm();x()}return 1}function $c(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;i[a+64>>2]=f;i[a+72>>2]=e;f=Gm((e&1073741823)!=(e|0)?-1:e<<2);d=i[a+68>>2];i[a+68>>2]=f;if(d){qn(d)}i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){Ta(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}b:{d=i[a+56>>2];g=i[d+4>>2];f=i[d>>2];d=g-f|0;if((d|0)<1){break b}if((f|0)!=(g|0)){d=d>>2;m=(d|0)>1?d:1;while(1){ad(a,i[(j<<2)+f>>2],c,j);c:{if(i[a+8>>2]<1){break c}l=i[a+68>>2];f=0;while(1){d=f<<2;g=i[d+l>>2];h=i[a+16>>2];d:{if((g|0)>(h|0)){k=i[a+32>>2];i[d+k>>2]=h;break d}k=i[a+32>>2];d=d+k|0;h=i[a+12>>2];if((g|0)<(h|0)){i[d>>2]=h;break d}i[d>>2]=g}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){continue}break}d=0;if((g|0)<1){break c}f=o(e,j)<<2;l=f+c|0;h=b+f|0;while(1){g=d<<2;f=g+l|0;g=i[g+h>>2]+i[g+k>>2]|0;i[f>>2]=g;e:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break e}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}j=j+1|0;if((m|0)==(j|0)){break b}d=i[a+56>>2];f=i[d>>2];if(i[d+4>>2]-f>>2>>>0>j>>>0){continue}break}}Wm();x()}return 1}function rg(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11468;b=a+368|0;d=i[b>>2];i[b>>2]=0;if(d){c=d+ -4|0;b=i[c>>2];if(b){b=d+(b<<4)|0;while(1){b=b+ -16|0;if((d|0)!=(b|0)){continue}break}}qn(c)}d=i[a+216>>2];if(d){b=i[a+220>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=i[b+ -12>>2];if(c){i[b+ -8>>2]=c;qn(c)}c=i[b+ -28>>2];if(c){i[b+ -24>>2]=c;qn(c)}c=b+ -144|0;e=i[b+ -40>>2];if(e){i[b+ -36>>2]=e;qn(e)}Tf(b+ -140|0);b=c;if((d|0)!=(b|0)){continue}break}c=i[a+216>>2]}i[a+220>>2]=d;qn(c)}b=i[a+196>>2];if(b){i[a+200>>2]=b;qn(b)}b=i[a+184>>2];if(b){i[a+188>>2]=b;qn(b)}b=i[a+172>>2];if(b){i[a+176>>2]=b;qn(b)}b=i[a+160>>2];if(b){i[a+164>>2]=b;qn(b)}b=i[a+144>>2];if(b){while(1){d=i[b>>2];qn(b);b=d;if(b){continue}break}}b=i[a+136>>2];i[a+136>>2]=0;if(b){qn(b)}b=i[a+120>>2];if(b){qn(b)}b=i[a+108>>2];if(b){qn(b)}b=i[a+96>>2];if(b){qn(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;qn(b)}b=i[a+60>>2];if(b){qn(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;qn(b)}b=i[a+36>>2];if(b){i[a+40>>2]=b;qn(b)}b=i[a+24>>2];if(b){i[a+28>>2]=b;qn(b)}b=i[a+12>>2];if(b){i[a+16>>2]=b;qn(b)}b=i[a+8>>2];i[a+8>>2]=0;if(b){Sf(a+8|0,b)}return a|0}function xi(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;e=L-16|0;L=e;m=i[a+80>>2];k=g[b+24|0];a=o(m,k);a:{b:{c:{f=i[b+28>>2];if(!(!j[b+84|0]|((f|0)!=6?(f|0)!=5:0))){f=i[b+48>>2];k=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;a=a<<2;if(a){b=a>>2;if(b>>>0>=1073741824){break c}d=Gm(a);i[e>>2]=d;i[e+4>>2]=d;l=(b<<2)+d|0;i[e+8>>2]=l;b=e;if((a|0)<1){a=d}else{a=sn(d,f+k|0,a)+a|0}h=a;i[b+4>>2]=h}a=i[c>>2];if(a){i[c+4>>2]=a;qn(a);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c+8>>2]=l;i[c+4>>2]=h;i[c>>2]=d;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(k){if((k|0)<=-1){break c}d=k<<2;h=Gm(d);i[e>>2]=h;f=d+h|0;i[e+8>>2]=f;tn(h,0,d);i[e+4>>2]=f}f=i[c>>2];d=i[c+4>>2]-f>>2;d:{if(a>>>0>d>>>0){Ae(c,a-d|0);break d}if(a>>>0>=d>>>0){break d}i[c+4>>2]=f+(a<<2)}if(!m){break b}d=0;n=1;while(1){a=l;f=b;if(!j[b+84|0]){a=i[i[b+68>>2]+(l<<2)>>2]}if(!yi(f,a,g[b+24|0],h)){break b}if((k|0)>=1){f=i[c>>2];a=0;while(1){i[f+(d<<2)>>2]=i[(a<<2)+h>>2];d=d+1|0;a=a+1|0;if((k|0)!=(a|0)){continue}break}}l=l+1|0;n=l>>>0>>0;if((l|0)!=(m|0)){continue}break}break b}Vm();x()}if(h){i[e+4>>2]=h;qn(h)}a=n^1}L=e+16|0;return a&1}function vi(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;e=L-16|0;L=e;m=i[a+80>>2];k=g[b+24|0];a=o(m,k);a:{b:{c:{f=i[b+28>>2];if(!(!j[b+84|0]|((f|0)!=6?(f|0)!=5:0))){f=i[b+48>>2];k=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;a=a<<2;if(a){b=a>>2;if(b>>>0>=1073741824){break c}d=Gm(a);i[e>>2]=d;i[e+4>>2]=d;l=(b<<2)+d|0;i[e+8>>2]=l;b=e;if((a|0)<1){a=d}else{a=sn(d,f+k|0,a)+a|0}h=a;i[b+4>>2]=h}a=i[c>>2];if(a){i[c+4>>2]=a;qn(a);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c+8>>2]=l;i[c+4>>2]=h;i[c>>2]=d;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(k){if((k|0)<=-1){break c}d=k<<2;h=Gm(d);i[e>>2]=h;f=d+h|0;i[e+8>>2]=f;tn(h,0,d);i[e+4>>2]=f}f=i[c>>2];d=i[c+4>>2]-f>>2;d:{if(a>>>0>d>>>0){Ta(c,a-d|0);break d}if(a>>>0>=d>>>0){break d}i[c+4>>2]=f+(a<<2)}if(!m){break b}d=0;n=1;while(1){a=l;f=b;if(!j[b+84|0]){a=i[i[b+68>>2]+(l<<2)>>2]}if(!wi(f,a,g[b+24|0],h)){break b}if((k|0)>=1){f=i[c>>2];a=0;while(1){i[f+(d<<2)>>2]=i[(a<<2)+h>>2];d=d+1|0;a=a+1|0;if((k|0)!=(a|0)){continue}break}}l=l+1|0;n=l>>>0>>0;if((l|0)!=(m|0)){continue}break}break b}Vm();x()}if(h){i[e+4>>2]=h;qn(h)}a=n^1}L=e+16|0;return a&1}function gd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;if((e|0)==2){i[a+8>>2]=2;i[a- -64>>2]=f;d=a+32|0;e=i[d>>2];f=i[a+36>>2]-e|0;j=f>>2;a:{if(j>>>0<=1){Ta(d,2-j|0);break a}if((f|0)==8){break a}i[a+36>>2]=e+8}b:{d=i[a+56>>2];e=i[d+4>>2];d=i[d>>2];f=e-d|0;if((f|0)<1){f=0;break b}if((d|0)!=(e|0)){l=a+60|0;j=f>>2;m=(j|0)>1?j:1;f=1;while(1){if(!hd(l,i[(g<<2)+d>>2],c,g)){break b}c:{if(i[a+8>>2]<1){break c}d=0;while(1){e=d<<2;f=i[(e+a|0)+68>>2];h=i[a+16>>2];d:{if((f|0)>(h|0)){k=i[a+32>>2];i[e+k>>2]=h;break d}k=i[a+32>>2];e=e+k|0;h=i[a+12>>2];if((f|0)<(h|0)){i[e>>2]=h;break d}i[e>>2]=f}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}e=0;if((f|0)<1){break c}d=g<<3;h=d+c|0;n=b+d|0;while(1){f=e<<2;d=f+h|0;f=i[f+n>>2]+i[f+k>>2]|0;i[d>>2]=f;e:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break e}f=f+i[a+20>>2]|0}i[d>>2]=f}e=e+1|0;if((e|0)>2]){continue}break}}g=g+1|0;f=(g|0)<(j|0);if((g|0)==(m|0)){break b}e=i[a+56>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>g>>>0){continue}break}}Wm();x()}a=f^1}else{a=0}return a&1}function Fd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;if((e|0)==2){i[a+8>>2]=2;i[a- -64>>2]=f;d=a+32|0;e=i[d>>2];f=i[a+36>>2]-e|0;j=f>>2;a:{if(j>>>0<=1){Ta(d,2-j|0);break a}if((f|0)==8){break a}i[a+36>>2]=e+8}b:{d=i[a+56>>2];e=i[d+4>>2];d=i[d>>2];f=e-d|0;if((f|0)<1){f=0;break b}if((d|0)!=(e|0)){l=a+60|0;j=f>>2;m=(j|0)>1?j:1;f=1;while(1){if(!Gd(l,i[(g<<2)+d>>2],c,g)){break b}c:{if(i[a+8>>2]<1){break c}d=0;while(1){e=d<<2;f=i[(e+a|0)+68>>2];h=i[a+16>>2];d:{if((f|0)>(h|0)){k=i[a+32>>2];i[e+k>>2]=h;break d}k=i[a+32>>2];e=e+k|0;h=i[a+12>>2];if((f|0)<(h|0)){i[e>>2]=h;break d}i[e>>2]=f}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}e=0;if((f|0)<1){break c}d=g<<3;h=d+c|0;n=b+d|0;while(1){f=e<<2;d=f+h|0;f=i[f+n>>2]+i[f+k>>2]|0;i[d>>2]=f;e:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break e}f=f+i[a+20>>2]|0}i[d>>2]=f}e=e+1|0;if((e|0)>2]){continue}break}}g=g+1|0;f=(g|0)<(j|0);if((g|0)==(m|0)){break b}e=i[a+56>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>g>>>0){continue}break}}Wm();x()}a=f^1}else{a=0}return a&1}function ea(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,n=0,o=0;j=+m[b>>2];k=+m[b+4>>2];n=+m[b+8>>2];h=q(j)+q(k)+q(n);a:{if(h>1e-6^1){j=1;k=0;f=0;break a}h=1/h;k=h*k;j=h*j;f=h*n<0}h=k;g=i[a+16>>2];k=+(g|0);h=u(h*k+.5);b:{if(q(h)<2147483648){b=~~h;break b}b=-2147483648}l=(b|0)<0?b:0-b|0;j=u(j*k+.5);c:{if(q(j)<2147483648){e=~~j;break c}e=-2147483648}o=(e|0)<0;e=l+((o?e:0-e|0)+g|0)|0;l=(e|0)<0?0:e;f=f?0-l|0:l;b=b+(e>>31&((b|0)>0?e:0-e|0))|0;d:{if(!o){e=b+g|0;b=f+g|0;break d}e:{if((b|0)<=-1){e=f>>31;e=e+f^e;break e}e=i[a+8>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=b;b=b>>31;b=f+b^b;break d}b=i[a+8>>2]+((b|0)<0?b:0-b|0)|0}f:{if(!(b|e)){b=i[a+8>>2];a=b;break f}f=i[a+8>>2];g:{h:{i:{j:{if(!e){if((b|0)==(f|0)){a=b;break f}a=0;if(b|f){break j}b=0;break f}if((e|0)!=(f|0)|b){break i}b=e;a=b;break f}if((g|0)<(b|0)){b=(g<<1)-b|0;break f}if(f){break g}break h}if((e|0)!=(f|0)){break g}}f=e;if((g|0)<=(b|0)){break g}b=(g<<1)-b|0;a=e;break f}if(!((b|0)!=(f|0)|(g|0)<=(e|0))){a=(g<<1)-e|0;break f}if(b){a=e;break f}b=0;if((g|0)>=(e|0)){a=e;break f}a=(g<<1)-e|0}i[c>>2]=a;i[d>>2]=b}function Eb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;a:{b:{d=i[a+4>>2];g=i[a>>2];h=(d-g|0)/24|0;f=h+1|0;if(f>>>0<178956971){c=(i[a+8>>2]-g|0)/24|0;e=c<<1;j=c>>>0<89478485?e>>>0>>0?f:e:178956970;if(j){if(j>>>0>=178956971){break b}k=Gm(o(j,24))}c=o(h,24)+k|0;i[c>>2]=1140;f=i[b+4>>2];l=c+16|0;i[l>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+4>>2]=f;m=i[b+8>>2];e=i[b+12>>2]-m|0;if(e){n=e>>2;if(n>>>0>=1073741824){break a}h=c+12|0;f=Gm(e);i[h>>2]=f;i[c+8>>2]=f;i[l>>2]=f+(n<<2);if((e|0)>=1){f=sn(f,m,e)+e|0}i[h>>2]=f}f=o(j,24)+k|0;i[c+20>>2]=i[b+20>>2];h=c+24|0;if((d|0)!=(g|0)){while(1){c=c+ -24|0;i[c>>2]=1140;b=i[d+ -20>>2];e=c+16|0;i[e>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+4>>2]=b;b=d+ -16|0;i[c+8>>2]=i[b>>2];i[c+12>>2]=i[d+ -12>>2];j=e;e=d+ -8|0;i[j>>2]=i[e>>2];i[e>>2]=0;i[b>>2]=0;i[b+4>>2]=0;i[c+20>>2]=i[d+ -4>>2];d=d+ -24|0;if((g|0)!=(d|0)){continue}break}g=i[a+4>>2];d=i[a>>2]}i[a+8>>2]=f;i[a+4>>2]=h;i[a>>2]=c;if((d|0)!=(g|0)){while(1){g=g+ -24|0;O[i[i[g>>2]>>2]](g)|0;if((d|0)!=(g|0)){continue}break}}if(d){qn(d)}return}Vm();x()}Da(1756);x()}Vm();x()}function oi(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;e=L-16|0;L=e;l=i[a+80>>2];h=g[b+24|0];a=o(l,h);a:{f=i[b+28>>2];b:{if(!(!j[b+84|0]|((f|0)!=2?(f|0)!=1:0))){f=i[b+48>>2];k=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=0;if(a){if((a|0)<=-1){break a}b=Gm(a);i[e>>2]=b;d=a+b|0;i[e+8>>2]=d;sn(b,f+k|0,a);i[e+4>>2]=d}a=i[c>>2];if(a){i[c+4>>2]=a;qn(a);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c+8>>2]=d;i[c+4>>2]=d;i[c>>2]=b;a=1;break b}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(h){if((h|0)<=-1){break a}d=Gm(h);i[e>>2]=d;f=d+h|0;i[e+8>>2]=f;tn(d,0,h);i[e+4>>2]=f}k=i[c>>2];f=i[c+4>>2]-k|0;c:{if(a>>>0>f>>>0){tb(c,a-f|0);break c}if(a>>>0>=f>>>0){break c}i[c+4>>2]=a+k}if(l){d=0;m=1;f=0;while(1){a=f;k=b;if(!j[b+84|0]){a=i[i[b+68>>2]+(f<<2)>>2]}n=a;a=i[e>>2];if(pi(k,n,g[b+24|0],a)){d:{if((h|0)<1){break d}g[i[c>>2]+d|0]=j[a|0];a=1;d=d+1|0;if((h|0)==1){break d}while(1){g[i[c>>2]+d|0]=j[i[e>>2]+a|0];d=d+1|0;a=a+1|0;if((h|0)!=(a|0)){continue}break}}f=f+1|0;m=f>>>0>>0;if((f|0)!=(l|0)){continue}}break}d=i[e>>2]}if(d){i[e+4>>2]=d;qn(d)}a=m^1}L=e+16|0;return a&1}Vm();x()}function mi(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;e=L-16|0;L=e;l=i[a+80>>2];h=g[b+24|0];a=o(l,h);a:{f=i[b+28>>2];b:{if(!(!j[b+84|0]|((f|0)!=2?(f|0)!=1:0))){f=i[b+48>>2];k=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=0;if(a){if((a|0)<=-1){break a}b=Gm(a);i[e>>2]=b;d=a+b|0;i[e+8>>2]=d;sn(b,f+k|0,a);i[e+4>>2]=d}a=i[c>>2];if(a){i[c+4>>2]=a;qn(a);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c+8>>2]=d;i[c+4>>2]=d;i[c>>2]=b;a=1;break b}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(h){if((h|0)<=-1){break a}d=Gm(h);i[e>>2]=d;f=d+h|0;i[e+8>>2]=f;tn(d,0,h);i[e+4>>2]=f}k=i[c>>2];f=i[c+4>>2]-k|0;c:{if(a>>>0>f>>>0){tb(c,a-f|0);break c}if(a>>>0>=f>>>0){break c}i[c+4>>2]=a+k}if(l){d=0;m=1;f=0;while(1){a=f;k=b;if(!j[b+84|0]){a=i[i[b+68>>2]+(f<<2)>>2]}n=a;a=i[e>>2];if(ni(k,n,g[b+24|0],a)){d:{if((h|0)<1){break d}g[i[c>>2]+d|0]=j[a|0];a=1;d=d+1|0;if((h|0)==1){break d}while(1){g[i[c>>2]+d|0]=j[i[e>>2]+a|0];d=d+1|0;a=a+1|0;if((h|0)!=(a|0)){continue}break}}f=f+1|0;m=f>>>0>>0;if((f|0)!=(l|0)){continue}}break}d=i[e>>2]}if(d){i[e+4>>2]=d;qn(d)}a=m^1}L=e+16|0;return a&1}Vm();x()}function ti(a,b,c){var d=0,e=0,f=0,l=0,m=0,n=0,p=0,q=0;e=L-16|0;L=e;p=i[a+80>>2];n=g[b+24|0];a=o(p,n);a:{b:{c:{d=i[b+28>>2];if(!(!j[b+84|0]|((d|0)!=4?(d|0)!=3:0))){m=i[b+48>>2];d=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=0;a=a<<1;if(a){if((a|0)<=-1){break c}f=Gm(a);i[e>>2]=f;l=(a>>1<<1)+f|0;i[e+8>>2]=l;b=sn(f,d+m|0,a)+a|0;i[e+4>>2]=b}a=i[c>>2];if(a){i[c+4>>2]=a;qn(a);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c+8>>2]=l;i[c+4>>2]=b;i[c>>2]=f;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(n){if((n|0)<=-1){break c}d=n<<1;l=Gm(d);i[e>>2]=l;f=d+l|0;i[e+8>>2]=f;tn(l,0,d);i[e+4>>2]=f}f=i[c>>2];d=i[c+4>>2]-f>>1;d:{if(a>>>0>d>>>0){ri(c,a-d|0);break d}if(a>>>0>=d>>>0){break d}i[c+4>>2]=f+(a<<1)}if(!p){break b}f=0;q=1;while(1){a=m;d=b;if(!j[d+84|0]){a=i[i[b+68>>2]+(m<<2)>>2]}if(!ui(d,a,g[b+24|0],l)){break b}if((n|0)>=1){d=i[c>>2];a=0;while(1){h[d+(f<<1)>>1]=k[(a<<1)+l>>1];f=f+1|0;a=a+1|0;if((n|0)!=(a|0)){continue}break}}m=m+1|0;q=m>>>0

>>0;if((m|0)!=(p|0)){continue}break}break b}Vm();x()}if(l){i[e+4>>2]=l;qn(l)}a=q^1}L=e+16|0;return a&1}function qi(a,b,c){var d=0,e=0,f=0,l=0,m=0,n=0,p=0,q=0;e=L-16|0;L=e;p=i[a+80>>2];n=g[b+24|0];a=o(p,n);a:{b:{c:{d=i[b+28>>2];if(!(!j[b+84|0]|((d|0)!=4?(d|0)!=3:0))){m=i[b+48>>2];d=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=0;a=a<<1;if(a){if((a|0)<=-1){break c}f=Gm(a);i[e>>2]=f;l=(a>>1<<1)+f|0;i[e+8>>2]=l;b=sn(f,d+m|0,a)+a|0;i[e+4>>2]=b}a=i[c>>2];if(a){i[c+4>>2]=a;qn(a);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c+8>>2]=l;i[c+4>>2]=b;i[c>>2]=f;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(n){if((n|0)<=-1){break c}d=n<<1;l=Gm(d);i[e>>2]=l;f=d+l|0;i[e+8>>2]=f;tn(l,0,d);i[e+4>>2]=f}f=i[c>>2];d=i[c+4>>2]-f>>1;d:{if(a>>>0>d>>>0){ri(c,a-d|0);break d}if(a>>>0>=d>>>0){break d}i[c+4>>2]=f+(a<<1)}if(!p){break b}f=0;q=1;while(1){a=m;d=b;if(!j[d+84|0]){a=i[i[b+68>>2]+(m<<2)>>2]}if(!si(d,a,g[b+24|0],l)){break b}if((n|0)>=1){d=i[c>>2];a=0;while(1){h[d+(f<<1)>>1]=k[(a<<1)+l>>1];f=f+1|0;a=a+1|0;if((n|0)!=(a|0)){continue}break}}m=m+1|0;q=m>>>0

>>0;if((m|0)!=(p|0)){continue}break}break b}Vm();x()}if(l){i[e+4>>2]=l;qn(l)}a=q^1}L=e+16|0;return a&1}function da(a,b,c,d,e){var f=0,g=0,h=0,k=0,l=0,n=0,o=0,q=0;f=L-48|0;L=f;k=i[e+48>>2];e=i[i[e>>2]>>2];i[f+32>>2]=-1;i[f+24>>2]=-1;i[f+28>>2]=1065353216;i[f+16>>2]=-1;i[f+20>>2]=-1;a=i[a+4>>2];a:{if(a+ -2>>>0>28){break a}k=e+k|0;i[f+16>>2]=a;a=-1<>2]=a^-1;a=-2-a|0;i[f+24>>2]=a;i[f+32>>2]=(a|0)/2;m[f+28>>2]=p(2)/p(a|0);g=i[c>>2];if((g|0)!=i[c+4>>2]){e=0;a=0;while(1){d=i[(a<<2)+g>>2];g=f+36|0;n=i[i[b>>2]>>2];o=i[b+48>>2];h=i[b+44>>2];l=i[b+40>>2];q=l;if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}d=Jn(q,h,d,0)+o|0;sn(g,d+n|0,l);ea(f+16|0,f+36|0,f+12|0,f+8|0);d=e<<2;i[d+k>>2]=i[f+12>>2];i[k+(d|4)>>2]=i[f+8>>2];h=1;e=e+2|0;a=a+1|0;g=i[c>>2];if(a>>>0>2]-g>>2>>>0){continue}break}break a}if(!d){h=1;break a}a=0;e=0;while(1){c=e;g=f+36|0;n=i[i[b>>2]>>2];o=i[b+48>>2];h=i[b+44>>2];l=i[b+40>>2];q=l;if(!j[b+84|0]){c=i[i[b+68>>2]+(e<<2)>>2]}c=Jn(q,h,c,0)+o|0;sn(g,c+n|0,l);ea(f+16|0,f+36|0,f+12|0,f+8|0);c=a<<2;i[c+k>>2]=i[f+12>>2];i[k+(c|4)>>2]=i[f+8>>2];a=a+2|0;h=1;e=e+1|0;if((e|0)!=(d|0)){continue}break}}L=f+48|0;return h}function Oe(a,b){var c=0,d=0,e=0;c=(a|0)==(b|0);g[b+12|0]=c;a:{if(c){break a}while(1){d=i[b+8>>2];if(j[d+12|0]){break a}b:{c=i[d+8>>2];e=i[c>>2];if((e|0)==(d|0)){e=i[c+4>>2];if(!(!e|j[e+12|0])){break b}c:{if(i[d>>2]==(b|0)){b=d;break c}b=i[d+4>>2];e=i[b>>2];i[d+4>>2]=e;a=b;if(e){i[e+8>>2]=d;c=i[d+8>>2]}i[a+8>>2]=c;a=i[d+8>>2];i[(((d|0)!=i[a>>2])<<2)+a>>2]=b;i[b>>2]=d;i[d+8>>2]=b;c=i[b+8>>2]}g[b+12|0]=1;g[c+12|0]=0;a=i[c>>2];b=i[a+4>>2];i[c>>2]=b;if(b){i[b+8>>2]=c}i[a+8>>2]=i[c+8>>2];b=i[c+8>>2];i[((i[b>>2]!=(c|0))<<2)+b>>2]=a;i[a+4>>2]=c;i[c+8>>2]=a;return}if(!(j[e+12|0]|!e)){break b}d:{if(i[d>>2]!=(b|0)){b=d;break d}e=i[b+4>>2];i[d>>2]=e;a=b;if(e){i[e+8>>2]=d;c=i[d+8>>2]}i[a+8>>2]=c;a=i[d+8>>2];i[(((d|0)!=i[a>>2])<<2)+a>>2]=b;i[b+4>>2]=d;i[d+8>>2]=b;c=i[b+8>>2]}g[b+12|0]=1;g[c+12|0]=0;a=i[c+4>>2];b=i[a>>2];i[c+4>>2]=b;if(b){i[b+8>>2]=c}i[a+8>>2]=i[c+8>>2];b=i[c+8>>2];i[((i[b>>2]!=(c|0))<<2)+b>>2]=a;i[a>>2]=c;i[c+8>>2]=a;break a}b=e+12|0;g[d+12|0]=1;g[c+12|0]=(a|0)==(c|0);g[b|0]=1;b=c;if((a|0)!=(b|0)){continue}break}}}function Uc(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i[b>>2];e=i[c+4>>2]+(i[c>>2]-f<<3)|0;c=i[b+4>>2];g=e-c|0;a:{if((g|0)<=0){c=i[d+4>>2];break a}b:{if(!c){c=i[d+4>>2];break b}e=i[d+4>>2];j=32-e|0;l=32-c|0;h=(g|0)<(l|0)?g:l;k=j>>>0>>0?j:h;m=i[d>>2];f=i[f>>2]&(-1<>>l-h);i[m>>2]=i[m>>2]&(-1<>>j-k^-1)|(e>>>0>c>>>0?f<>>c-e|0);e=e+k|0;c=e&31;i[d+4>>2]=c;j=m+(e>>>3&536870908)|0;i[d>>2]=j;e=h-k|0;if((e|0)>=1){i[j>>2]=i[j>>2]&(-1>>>32-e^-1)|f>>>k+i[b+4>>2];i[d+4>>2]=e;c=e}g=g-h|0;f=i[b>>2]+4|0;i[b>>2]=f}k=-1<>2];f=i[f>>2];i[e>>2]=j&i[e>>2]|f<>2]=e+4;i[e+4>>2]=k&i[e+4>>2]|f>>>h;f=i[b>>2]+4|0;i[b>>2]=f;l=(g|0)>63;e=g+ -32|0;g=e;if(l){continue}break}}if((e|0)<1){break a}b=i[d>>2];g=(h|0)<(e|0)?h:e;j=i[b>>2]&(k&-1>>>h-g^-1);h=i[f>>2]&-1>>>32-e;i[b>>2]=j|h<>2]=c;f=b+(f>>>3&536870908)|0;i[d>>2]=f;b=e-g|0;if((b|0)<1){break a}i[f>>2]=i[f>>2]&(-1>>>32-b^-1)|h>>>g;i[d+4>>2]=b;c=b}b=i[d>>2];i[a+4>>2]=c;i[a>>2]=b}function Pb(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=L-32|0;L=c;a:{b=i[a+16>>2];b:{if(b>>>0>=341){i[a+16>>2]=b+ -341;b=i[a+4>>2];i[c+8>>2]=i[b>>2];i[a+4>>2]=b+4;Qb(a,c+8|0);break b}c:{d=i[a+8>>2];e=d-i[a+4>>2]>>2;f=i[a+12>>2];b=f-i[a>>2]|0;if(e>>>0>2>>>0){if((d|0)==(f|0)){break c}g=c,h=Gm(4092),i[g+8>>2]=h;Qb(a,c+8|0);break b}i[c+24>>2]=a+12;i[c+20>>2]=0;b=b?b>>1:1;if(b>>>0>=1073741824){break a}d=b<<2;b=Gm(d);i[c+8>>2]=b;e=b+(e<<2)|0;i[c+16>>2]=e;i[c+20>>2]=b+d;i[c+12>>2]=e;g=c,h=Gm(4092),i[g+4>>2]=h;Qb(c+8|0,c+4|0);b=i[a+8>>2];d=i[a+4>>2];if((b|0)!=(d|0)){while(1){b=b+ -4|0;Rb(c+8|0,b);d=i[a+4>>2];if((d|0)!=(b|0)){continue}break}b=i[a+8>>2]}e=i[a>>2];i[a>>2]=i[c+8>>2];i[c+8>>2]=e;i[a+4>>2]=i[c+12>>2];i[c+12>>2]=d;i[a+8>>2]=i[c+16>>2];i[c+16>>2]=b;f=i[a+12>>2];i[a+12>>2]=i[c+20>>2];i[c+20>>2]=f;if((b|0)!=(d|0)){i[c+16>>2]=(((b-d|0)+ -4>>>2^-1)<<2)+b}if(!e){break b}qn(e);break b}g=c,h=Gm(4092),i[g+8>>2]=h;Rb(a,c+8|0);b=i[a+4>>2];i[c+8>>2]=i[b>>2];i[a+4>>2]=b+4;Qb(a,c+8|0)}L=c+32|0;return}Da(1756);x()}function Qc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=L-32|0;L=d;a:{c=i[a+4>>2];b:{if(c>>>0>>0){g=i[a+8>>2];e=g<<5;f=b-c|0;c:{if(!(e>>>0>>0|c>>>0>e-f>>>0)){i[a+4>>2]=b;b=c&31;a=i[a>>2]+(c>>>3&536870908)|0;break c}i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;if((b|0)<=-1){break a}c=d+16|0;if(e>>>0<=1073741822){b=b+31&-32;e=g<<6;b=e>>>0>>0?b:e}else{b=2147483647}Sc(c,b);c=i[a+4>>2];i[d+20>>2]=c+f;b=i[d+16>>2];d:{if((c|0)<1){c=0;break d}g=i[a>>2];h=c>>>5|0;e=h<<2;b=un(b,g,e)+e|0;c=c-(h<<5)|0;if((c|0)<1){c=0;break d}h=-1>>>32-c|0;i[b>>2]=i[b>>2]&(h^-1)|h&i[e+g>>2]}i[d+12>>2]=c;i[d+8>>2]=b;c=i[d+8>>2];b=i[d+12>>2];e=i[a>>2];i[a>>2]=i[d+16>>2];i[d+16>>2]=e;g=i[a+4>>2];i[a+4>>2]=i[d+20>>2];i[d+20>>2]=g;g=i[a+8>>2];i[a+8>>2]=i[d+24>>2];i[d+24>>2]=g;if(e){qn(e)}a=c}if(!f){break b}if(b){c=32-b|0;e=c>>>0>f>>>0?f:c;i[a>>2]=i[a>>2]&(-1<>>c-e^-1);f=f-e|0;a=a+4|0}b=a;a=f>>>5<<2;b=tn(b,0,a);c=f&31;if(!c){break b}a=a+b|0;i[a>>2]=i[a>>2]&(-1>>>32-c^-1);break b}i[a+4>>2]=b}L=d+32|0;return}Vm();x()}function vg(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11568;wg(a+232|0);e=i[a+216>>2];if(e){c=e;b=i[a+220>>2];d=c;a:{if((c|0)==(b|0)){break a}while(1){c=i[b+ -12>>2];if(c){i[b+ -8>>2]=c;qn(c)}c=i[b+ -28>>2];if(c){i[b+ -24>>2]=c;qn(c)}c=b+ -144|0;d=i[b+ -40>>2];if(d){i[b+ -36>>2]=d;qn(d)}Tf(b+ -140|0);b=c;if((e|0)!=(b|0)){continue}break}d=i[a+216>>2]}c=d;i[a+220>>2]=e;qn(c)}b=i[a+196>>2];if(b){i[a+200>>2]=b;qn(b)}b=i[a+184>>2];if(b){i[a+188>>2]=b;qn(b)}b=i[a+172>>2];if(b){i[a+176>>2]=b;qn(b)}b=i[a+160>>2];if(b){i[a+164>>2]=b;qn(b)}b=i[a+144>>2];if(b){while(1){c=i[b>>2];qn(b);b=c;if(b){continue}break}}b=i[a+136>>2];i[a+136>>2]=0;if(b){qn(b)}b=i[a+120>>2];if(b){qn(b)}b=i[a+108>>2];if(b){qn(b)}b=i[a+96>>2];if(b){qn(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;qn(b)}b=i[a+60>>2];if(b){qn(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;qn(b)}b=i[a+36>>2];if(b){i[a+40>>2]=b;qn(b)}b=i[a+24>>2];if(b){i[a+28>>2]=b;qn(b)}b=i[a+12>>2];if(b){i[a+16>>2]=b;qn(b)}b=i[a+8>>2];i[a+8>>2]=0;if(b){Sf(a+8|0,b)}return a|0}function od(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0;l=i[b+12>>2];e=l;d=i[b+20>>2];f=d;a:{m=i[b+16>>2];c=m+4|0;if(c>>>0<4){d=d+1|0}n=i[b+8>>2];g=c;c=d;if((e|0)<(c|0)?1:(e|0)<=(c|0)?n>>>0>>0:0){break a}o=i[b>>2];d=o+m|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[b+16>>2]=g;i[b+20>>2]=c;c=l;d=f;h=m+8|0;if(h>>>0<8){d=d+1|0}if((c|0)<(d|0)?1:(c|0)<=(d|0)?n>>>0>>0:0){break a}c=g+o|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=d;if((e|0)>(c|0)){break a}i[a+16>>2]=c;i[a+12>>2]=e;g=e;e=(c>>31)-((e>>31)+(c>>>0>>0)|0)|0;c=c-g|0;if(!e&c>>>0>2147483646|e>>>0>0){break a}e=c+1|0;i[a+20>>2]=e;c=(e|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(!(e&1)){i[a+24>>2]=c+ -1}if(k[b+38>>1]<=513){if((l|0)<(d|0)?1:(l|0)<=(d|0)?n>>>0<=h>>>0:0){break a}c=j[h+o|0];d=f;f=m+9|0;if(f>>>0<9){d=d+1|0}e=b;i[e+16>>2]=f;i[e+20>>2]=d;d=0;b:{switch(c|0){case 1:d=1;break;case 0:break b;default:break a}}i[a+88>>2]=d}return Ce(a+112|0,b)|0}return 0}function ya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,m=0,n=0;e=i[a+12>>2];d=i[a+8>>2];f=e-d>>2;b=g[b+24|0];a:{if(f>>>0>>0){pa(a+8|0,b-f|0);d=i[a+8>>2];e=i[a+12>>2];break a}if(f>>>0<=b>>>0){break a}e=(b<<2)+d|0;i[a+12>>2]=e}b=0;h=i[c+12>>2];f=i[c+20>>2];k=i[c+16>>2];m=e-d|0;e=m;n=k+e|0;if(n>>>0>>0){f=f+1|0}b:{if((h|0)<(f|0)?1:(h|0)<=(f|0)?l[c+8>>2]>>0:0){break b}sn(d,k+i[c>>2]|0,m);d=i[c+20>>2];h=e+i[c+16>>2]|0;if(h>>>0>>0){d=d+1|0}e=h;i[c+16>>2]=e;i[c+20>>2]=d;f=i[c+12>>2];h=e+4|0;if(h>>>0<4){d=d+1|0}if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]>>0:0){break b}d=e+i[c>>2]|0;i[a+20>>2]=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);d=i[c+20>>2];e=d;k=i[c+16>>2];h=k+4|0;if(h>>>0<4){d=d+1|0}i[c+16>>2]=h;i[c+20>>2]=d;f=i[c+12>>2];if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]<=h>>>0:0){break b}f=j[h+i[c>>2]|0];d=e;e=k+5|0;if(e>>>0<5){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;if(f+ -1>>>0>29){break b}i[a+4>>2]=f;b=1}return b|0}function Sk(a,b){var c=0,d=0,e=0,f=0,h=0,j=0;j=L-16|0;L=j;a:{b:{if(b){i[a+88>>2]=0;i[a+92>>2]=0;c=a+84|0;d=i[c>>2];i[c>>2]=0;if(d){qn(d)}i[a+76>>2]=0;i[a+80>>2]=0;c=a+72|0;d=i[c>>2];i[c>>2]=0;if(d){qn(d)}d=i[b>>2];c=i[b+4>>2];g[j+15|0]=0;Lf(a,c-d>>2,j+15|0);c=b+28|0;d=i[c>>2];e=i[b+24>>2];g[j+14|0]=0;Lf(a+12|0,d-e>>2,j+14|0);Jk(a+28|0,i[b+4>>2]-i[b>>2]>>2,14476);d=i[a+52>>2];e=i[c>>2]-i[b+24>>2]|0;c=e>>2;c:{if(i[a+60>>2]-d>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break b}f=i[a+56>>2];h=c<<2;c=Gm(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){sn(c,d,e)}i[a+60>>2]=h;i[a+56>>2]=f;i[a+52>>2]=c;if(!d){break c}qn(d)}d=i[a+40>>2];e=i[b+28>>2]-i[b+24>>2]|0;c=e>>2;d:{if(i[a+48>>2]-d>>2>>>0>=c>>>0){break d}if(c>>>0>=1073741824){break a}f=i[a+44>>2];h=c<<2;c=Gm(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){sn(c,d,e)}i[a+48>>2]=h;i[a+44>>2]=f;i[a+40>>2]=c;if(!d){break d}qn(d)}g[a+24|0]=1;i[a+64>>2]=b}L=j+16|0;return}Da(14480);x()}Da(14480);x()}function Gg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i[a+12>>2];d=i[a+108>>2];e=i[d+80>>2];g[b+84|0]=0;f=i[b+68>>2];c=i[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){Yb(b+68|0,e-c|0,12516);d=i[a+108>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=f+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}p=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=i[n>>2]+(o(d,3)<<2)|0;j=i[c>>2];if((j|0)==-1){break c}f=o(d,12)+m|0;h=i[f>>2];if(h>>>0>=e>>>0){break c}l=i[i[a+112>>2]+12>>2];k=i[l+(j<<2)>>2];if(k>>>0>=e>>>0){break c}j=i[b+68>>2];i[j+(h<<2)>>2]=k;h=i[c+4>>2];if((h|0)==-1){break c}k=i[f+4>>2];if(k>>>0>=e>>>0){break c}h=i[(h<<2)+l>>2];if(h>>>0>=e>>>0){break c}i[j+(k<<2)>>2]=h;c=i[c+8>>2];if((c|0)==-1){break c}f=i[f+8>>2];if(f>>>0>=e>>>0){break c}c=i[(c<<2)+l>>2];if(c>>>0>=e>>>0){break c}i[j+(f<<2)>>2]=c;c=1;d=d+1|0;if((p|0)!=(d|0)){continue}break b}break}c=0}return c|0}function Rg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i[a+12>>2];d=i[a+68>>2];e=i[d+80>>2];g[b+84|0]=0;f=i[b+68>>2];c=i[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){Yb(b+68|0,e-c|0,12516);d=i[a+68>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=f+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}p=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=i[n>>2]+(o(d,3)<<2)|0;j=i[c>>2];if((j|0)==-1){break c}f=o(d,12)+m|0;h=i[f>>2];if(h>>>0>=e>>>0){break c}l=i[i[a+72>>2]+12>>2];k=i[l+(j<<2)>>2];if(k>>>0>=e>>>0){break c}j=i[b+68>>2];i[j+(h<<2)>>2]=k;h=i[c+4>>2];if((h|0)==-1){break c}k=i[f+4>>2];if(k>>>0>=e>>>0){break c}h=i[(h<<2)+l>>2];if(h>>>0>=e>>>0){break c}i[j+(k<<2)>>2]=h;c=i[c+8>>2];if((c|0)==-1){break c}f=i[f+8>>2];if(f>>>0>=e>>>0){break c}c=i[(c<<2)+l>>2];if(c>>>0>=e>>>0){break c}i[j+(f<<2)>>2]=c;c=1;d=d+1|0;if((p|0)!=(d|0)){continue}break b}break}c=0}return c|0}function Hg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=L-16|0;L=g;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+28>>2]-i[c+24>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];h=c<<2;c=Gm(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){sn(c,d,e)}i[b+8>>2]=h;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}qn(d)}b=i[a+12>>2];d=i[b+28>>2];b=i[b+24>>2];i[g+12>>2]=0;b=d-b>>2;c=a+96|0;e=i[c>>2];d=i[a+100>>2]-e>>2;c:{if(b>>>0>d>>>0){Va(c,b-d|0,g+12|0);break c}if(b>>>0>=d>>>0){break c}i[a+100>>2]=e+(b<<2)}e=a+8|0;b=i[a+116>>2];d:{if(b){d=1;c=i[b>>2];if((c|0)==i[b+4>>2]){break d}b=0;while(1){d=Ig(e,i[(b<<2)+c>>2]);if(!d){break d}f=i[a+116>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break d}d=1;a=i[a+12>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break d}b=0;while(1){d=Ig(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break d}if(d){continue}break}}L=g+16|0;return d|0}Da(12220);x()} +function gg(a,b){var c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;m=J-96|0;J=m;i[m+72>>2]=0;i[m+64>>2]=0;i[m+68>>2]=0;i[m+48>>2]=0;i[m+52>>2]=0;i[m+40>>2]=0;i[m+44>>2]=0;i[m+56>>2]=1065353216;i[m+32>>2]=0;i[m+24>>2]=0;i[m+28>>2]=0;A=i[a+124>>2];a:{b:{c:{d:{e:{if((b|0)<1){break e}C=a+400|0;B=a+232|0;D=i[a+216>>2]!=i[a+220>>2];y=1;while(1){h=z;z=h+1|0;f:{g:{h:{i:{j:{if(i[a+420>>2]!=-1){if(Ce(C)){break j}}e=a;if(j[a+308|0]){p=i[a+296>>2];r=i[a+304>>2];c=p+(r>>>3|0)|0;n=i[a+300>>2];if(c>>>0>=n>>>0){break i}d=j[c|0];c=r+1|0;i[a+304>>2]=c;if(!(d>>>(r&7)&1)){break i}u=c>>>3|0;d=p+u|0;k:{if(d>>>0>=n>>>0){d=c;c=0;break k}f=j[d|0];d=r+2|0;i[a+304>>2]=d;u=d>>>3|0;c=f>>>(c&7)&1}f=p+u|0;if(f>>>0>>0){f=j[f|0];i[a+304>>2]=d+1;d=f>>>(d&7)<<1&2}else{d=0}c=(c|d)<<1|1}else{c=1}i[e+416>>2]=c;break g}c=i[a+420>>2];i[a+416>>2]=c;if(c){break g}break h}i[a+416>>2]=0}d=i[m+68>>2];if((d|0)==i[m+64>>2]){break d}s=-1;u=i[a+8>>2];r=i[u+24>>2];c=r;n=d+ -4|0;w=i[n>>2];e=-1;l:{if((w|0)==-1){break l}d=w+1|0;d=(d>>>0)%3|0?d:w+ -2|0;e=-1;if((d|0)==-1){break l}e=i[i[u>>2]+(d<<2)>>2]}d=i[c+(e<<2)>>2];if((d|0)!=-1){c=d+1|0;s=(c>>>0)%3|0?c:d+ -2|0}d=i[u+12>>2];q=o(h,3);c=q+1|0;i[d+(w<<2)>>2]=c;f=c<<2;i[f+d>>2]=w;t=q+2|0;i[d+(s<<2)>>2]=t;h=t<<2;i[h+d>>2]=s;p=-1;c=-1;m:{if((w|0)==-1){break m}d=w+((w>>>0)%3|0?-1:2)|0;c=-1;if((d|0)==-1){break m}c=i[i[u>>2]+(d<<2)>>2]}n:{if((s|0)==-1){break n}d=s+1|0;d=(d>>>0)%3|0?d:s+ -2|0;if((d|0)==-1){break n}p=i[i[u>>2]+(d<<2)>>2]}d=-1;if((c|0)==(e|0)|(e|0)==(p|0)){break c}d=i[u>>2];i[d+(q<<2)>>2]=e;i[d+f>>2]=p;i[d+h>>2]=c;if((c|0)!=-1){i[r+(c<<2)>>2]=t}d=i[a+120>>2]+(e>>>3&536870908)|0;c=i[d>>2];E=d,F=Kn(e)&c,i[E>>2]=F;i[n>>2]=q;hg(B,q);break f}d=-1;o:{p:{q:{r:{s:{t:{u:{v:{w:{switch(c+ -1|0){case 2:case 4:e=i[m+68>>2];if((e|0)==i[m+64>>2]){break d}t=i[a+8>>2];d=i[t+12>>2];q=o(h,3);p=(c|0)==5;n=q+(p?2:1)|0;c=n<<2;u=i[e+ -4>>2];i[d+c>>2]=u;i[d+(u<<2)>>2]=n;$f(t+24|0,11508);d=-1;f=i[a+8>>2];r=i[f+24>>2];if(i[f+28>>2]-r>>2>(A|0)){break c}e=q+2|0;f=i[f>>2];s=f+c|0;d=i[t+28>>2]-i[t+24>>2]|0;c=(d>>2)+ -1|0;i[s>>2]=c;if(d){i[r+(c<<2)>>2]=n}e=p?q:e;n=f+(p+q<<2)|0;x:{y:{z:{if((u|0)!=-1){c=u+((u>>>0)%3|0?-1:2)|0;if((c|0)==-1){break z}c=i[f+(c<<2)>>2];i[f+(e<<2)>>2]=c;if((c|0)==-1){break y}i[r+(c<<2)>>2]=e;break y}i[f+(e<<2)>>2]=-1;d=-1;break x}i[f+(e<<2)>>2]=-1}c=u+1|0;c=(c>>>0)%3|0?c:u+ -2|0;d=-1;if((c|0)==-1){break x}d=i[f+(c<<2)>>2]}i[n>>2]=d;d=i[m+68>>2];i[d+ -4>>2]=q;break v;case 0:p=i[m+68>>2];e=i[m+64>>2];if((p|0)==(e|0)){break d}n=p+ -4|0;w=i[n>>2];i[m+68>>2]=n;q=i[m+44>>2];if(!q){break s}d=i[m+40>>2];t=Jn(q)>>>0>1;f=h&q+2147483647;A:{if(!t){break A}c=h;f=c;if(c>>>0>>0){break A}f=(h>>>0)%(q>>>0)|0}c=i[d+(f<<2)>>2];if(!c){break s}d=i[c>>2];if(!d){break s}r=q+ -1|0;while(1){B:{c=i[d+4>>2];C:{if((h|0)!=(c|0)){D:{if(!t){c=c&r;break D}if(c>>>0>>0){break D}c=(c>>>0)%(q>>>0)|0}if((c|0)!=(f|0)){break s}break C}if((h|0)==i[d+8>>2]){break B}}d=i[d>>2];if(d){continue}break s}break}if((n|0)!=i[m+72>>2]){i[n>>2]=i[d+12>>2];i[m+68>>2]=p;c=e;break r}r=n-e|0;p=r>>2;n=p+1|0;if(n>>>0>=1073741824){break u}f=r>>1;n=p>>>0<536870911?f>>>0>>0?n:f:1073741823;c=0;E:{if(!n){break E}if(n>>>0>=1073741824){break a}c=Dm(n<<2)}f=c+(p<<2)|0;i[f>>2]=i[d+12>>2];d=(n<<2)+c|0;p=f+4|0;if((r|0)>=1){pn(c,e,r)}i[m+72>>2]=d;i[m+68>>2]=p;i[m+64>>2]=c;if(!e){break r}nn(e);p=i[m+68>>2];c=i[m+64>>2];break r;case 6:break w;default:break c}}c=i[a+8>>2];$f(c+24|0,11508);e=i[a+8>>2];q=o(h,3);p=i[c+28>>2]-i[c+24>>2]|0;r=p>>2;f=r+ -1|0;i[i[e>>2]+(q<<2)>>2]=f;$f(e+24|0,11508);n=q+1|0;i[i[e>>2]+(n<<2)>>2]=(i[e+28>>2]-i[e+24>>2]>>2)+ -1;c=i[a+8>>2];$f(c+24|0,11508);e=q+2|0;i[i[c>>2]+(e<<2)>>2]=(i[c+28>>2]-i[c+24>>2]>>2)+ -1;c=i[a+8>>2];t=i[c+24>>2];if(i[c+28>>2]-t>>2>(A|0)){break c}F:{G:{if(!p){i[t+(r<<2)>>2]=n;d=1;break G}i[t+(f<<2)>>2]=q;d=0;if((p|0)==-4){break G}i[t+(r<<2)>>2]=n;d=r+1|0;if((d|0)==-1){break F}}i[t+(d<<2)>>2]=e}c=i[m+68>>2];if((c|0)!=i[m+72>>2]){i[c>>2]=q;d=c+4|0;i[m+68>>2]=d;break v}p=i[m+64>>2];n=c-p|0;f=n>>2;e=f+1|0;if(e>>>0>=1073741824){break t}d=n>>1;e=f>>>0<536870911?d>>>0>>0?e:d:1073741823;c=0;H:{if(!e){break H}if(e>>>0>=1073741824){break a}c=Dm(e<<2)}d=c+(f<<2)|0;i[d>>2]=q;e=c+(e<<2)|0;d=d+4|0;if((n|0)>=1){pn(c,p,n)}i[m+72>>2]=e;i[m+68>>2]=d;i[m+64>>2]=c;if(!p){break v}nn(p);d=i[m+68>>2]}hg(B,i[d+ -4>>2]);d=i[a+40>>2];if((d|0)==i[a+36>>2]){break f}h=(h^-1)+b|0;while(1){c=i[d+ -8>>2];if(c>>>0>h>>>0){break q}if((c|0)!=(h|0)){break f}e=j[d+ -4|0];c=d+ -12|0;d=i[c>>2];i[a+40>>2]=c;if((d|0)<0){break q}f=i[i[m+68>>2]+ -4>>2];i[m+20>>2]=(d^-1)+b;i[m+88>>2]=m+20;ag(m,m+40|0,m+20|0,m+88|0);d=i[m>>2];I:{if(e&1){c=-1;if((f|0)==-1){break I}c=f+1|0;c=(c>>>0)%3|0?c:f+ -2|0;break I}c=-1;if((f|0)==-1){break I}c=f+ -1|0;if((f>>>0)%3|0){break I}c=f+2|0}i[d+12>>2]=c;d=i[a+40>>2];if((d|0)!=i[a+36>>2]){continue}break}break f}Sm();x()}Sm();x()}p=n;c=e}if((c|0)==(p|0)){break q}r=i[p+ -4>>2];d=(r|0)==-1;u=i[a+8>>2];if(i[i[u+12>>2]+(r<<2)>>2]!=-1?!d:0){break q}f=(w|0)==-1;q=i[u+12>>2];if(i[q+(w<<2)>>2]!=-1?!f:0){break q}t=o(h,3);h=t+2|0;i[q+(r<<2)>>2]=h;n=h<<2;i[q+n>>2]=r;c=t+1|0;i[q+(w<<2)>>2]=c;e=c<<2;i[e+q>>2]=w;if(d){break p}v=-1;y=-1;s=i[u>>2];d=s+(t<<2)|0;c=r+((r>>>0)%3|0?-1:2)|0;if((c|0)!=-1){y=i[(c<<2)+s>>2]}i[d>>2]=y;c=r+1|0;c=(c>>>0)%3|0?c:r+ -2|0;if((c|0)==-1){break o}v=i[(c<<2)+s>>2];break o}d=-1;if(y&1){break c}break e}y=-1;s=i[u>>2];i[s+(t<<2)>>2]=-1;v=-1}i[e+s>>2]=v;J:{K:{L:{if(!f){c=w+((w>>>0)%3|0?-1:2)|0;if((c|0)==-1){break L}c=i[(c<<2)+s>>2];i[n+s>>2]=c;if((c|0)==-1){break K}i[i[u+24>>2]+(c<<2)>>2]=h;break K}i[n+s>>2]=-1;r=-1;d=-1;break J}i[n+s>>2]=-1}r=-1;c=w+1|0;c=(c>>>0)%3|0?c:w+ -2|0;d=-1;if((c|0)==-1){break J}r=i[(c<<2)+s>>2];d=c}h=i[a+388>>2];e=y<<2;c=h+e|0;f=c;n=i[c>>2];c=r<<2;i[f>>2]=n+i[c+h>>2];h=c;c=i[u+24>>2];h=h+c|0;if((y|0)!=-1){i[c+e>>2]=i[h>>2]}M:{if((d|0)==-1){break M}while(1){i[(d<<2)+s>>2]=y;c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1){break M}d=i[q+(c<<2)>>2];if((d|0)==-1){break M}c=d+1|0;d=(c>>>0)%3|0?c:d+ -2|0;if((d|0)!=-1){continue}break}}i[h>>2]=-1;N:{if(D){break N}c=i[m+28>>2];if((c|0)!=i[m+32>>2]){i[c>>2]=r;i[m+28>>2]=c+4;break N}O:{n=i[m+24>>2];f=c-n|0;h=f>>2;e=h+1|0;if(e>>>0<1073741824){d=f>>1;e=h>>>0<536870911?d>>>0>>0?e:d:1073741823;c=0;P:{if(!e){break P}if(e>>>0>=1073741824){break O}c=Dm(e<<2)}d=c+(h<<2)|0;i[d>>2]=r;e=c+(e<<2)|0;d=d+4|0;if((f|0)>=1){pn(c,n,f)}i[m+32>>2]=e;i[m+28>>2]=d;i[m+24>>2]=c;if(!n){break N}nn(n);p=i[m+68>>2];break N}Sm();x()}break a}i[p+ -4>>2]=t;hg(B,t)}y=(z|0)<(b|0);if((b|0)!=(z|0)){continue}break}z=b}d=-1;y=i[a+8>>2];if(i[y+28>>2]-i[y+24>>2]>>2>(A|0)){break c}Q:{R:{S:{v=i[m+68>>2];if((v|0)!=i[m+64>>2]){C=a+72|0;b=a+60|0;r=a+312|0;while(1){c=v+ -4|0;t=i[c>>2];i[m+68>>2]=c;T:{U:{V:{W:{if(k[a+270>>1]<=513){if(!j[a+364|0]){break V}e=i[a+360>>2];c=i[a+352>>2]+(e>>>3|0)|0;if(c>>>0>=l[a+356>>2]){break U}c=j[c|0];i[a+360>>2]=e+1;c=c>>>(e&7)&1;break W}c=Ce(r)}if(!c){break U}}p=i[a+8>>2];w=i[p>>2];if((z|0)>=((i[p+4>>2]-w>>2>>>0)/3|0)){break d}h=-1;s=-1;n=i[p+24>>2];f=n;c=-1;X:{if((t|0)==-1){break X}e=t+1|0;e=(e>>>0)%3|0?e:t+ -2|0;c=-1;if((e|0)==-1){break X}c=i[w+(e<<2)>>2]}f=i[f+(c<<2)>>2];Y:{if((f|0)==-1){break Y}e=f+1|0;e=(e>>>0)%3|0?e:f+ -2|0;if((e|0)==-1){break Y}h=e+1|0;h=(h>>>0)%3|0?h:e+ -2|0;if((h|0)!=-1){s=i[w+(h<<2)>>2]}h=e}u=-1;D=-1;n=i[n+(s<<2)>>2];f=-1;Z:{if((n|0)==-1){break Z}e=n+1|0;e=(e>>>0)%3|0?e:n+ -2|0;f=-1;if((e|0)==-1){break Z}f=e+1|0;f=(f>>>0)%3|0?f:e+ -2|0;if((f|0)!=-1){D=i[w+(f<<2)>>2]}f=e}A=i[p+12>>2];q=o(z,3);p=q<<2;i[A+p>>2]=t;i[A+(t<<2)>>2]=q;B=q+1|0;n=B<<2;i[n+A>>2]=h;i[A+(h<<2)>>2]=B;t=q+2|0;e=t<<2;i[e+A>>2]=f;i[A+(f<<2)>>2]=t;i[p+w>>2]=s;n=n+w|0;i[n>>2]=D;f=e+w|0;i[f>>2]=c;p=i[a+120>>2];h=B>>>0>>0?-1:s;e=p+(h>>>3&536870908)|0;c=i[e>>2];E=e,F=Kn(h)&c,i[E>>2]=F;u=(B|0)!=-1?i[n>>2]:u;e=p+(u>>>3&536870908)|0;c=i[e>>2];E=e,F=Kn(u)&c,i[E>>2]=F;v=-1;v=(t|0)!=-1?i[f>>2]:v;e=p+(v>>>3&536870908)|0;c=i[e>>2];E=e,F=Kn(v)&c,i[E>>2]=F;v=i[a+64>>2];e=i[a+68>>2];if((v|0)==e<<5){if((v+1|0)<=-1){break S}c=b;if(v>>>0<=1073741822){h=v+32&-32;e=e<<6;e=e>>>0>>0?h:e}else{e=2147483647}Qc(c,e);v=i[a+64>>2]}z=z+1|0;i[a+64>>2]=v+1;c=i[a+60>>2]+(v>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>2];if((c|0)!=i[a+80>>2]){i[c>>2]=q;i[a+76>>2]=c+4;break T}p=i[C>>2];n=c-p|0;f=n>>2;h=f+1|0;if(h>>>0>=1073741824){break R}e=n>>1;h=f>>>0<536870911?e>>>0>>0?h:e:1073741823;c=0;_:{if(!h){break _}if(h>>>0>=1073741824){break a}c=Dm(h<<2)}e=c+(f<<2)|0;i[e>>2]=q;h=c+(h<<2)|0;e=e+4|0;if((n|0)>=1){pn(c,p,n)}i[a+80>>2]=h;i[a+76>>2]=e;i[a+72>>2]=c;if(!p){break T}nn(p);break T}c=i[a+64>>2];f=i[a+68>>2];if((c|0)==f<<5){if((c+1|0)<=-1){break S}e=b;if(c>>>0<=1073741822){h=c+32&-32;c=f<<6;c=c>>>0>>0?h:c}else{c=2147483647}Qc(e,c);c=i[a+64>>2]}i[a+64>>2]=c+1;h=i[a+60>>2]+(c>>>3&536870908)|0;e=i[h>>2];E=h,F=Kn(c)&e,i[E>>2]=F;c=i[a+76>>2];if((c|0)!=i[a+80>>2]){i[c>>2]=t;i[a+76>>2]=c+4;break T}p=i[C>>2];n=c-p|0;f=n>>2;h=f+1|0;if(h>>>0>=1073741824){break R}e=n>>1;h=f>>>0<536870911?e>>>0>>0?h:e:1073741823;c=0;$:{if(!h){break $}if(h>>>0>=1073741824){break Q}c=Dm(h<<2)}e=c+(f<<2)|0;i[e>>2]=t;h=c+(h<<2)|0;e=e+4|0;if((n|0)>=1){pn(c,p,n)}i[a+80>>2]=h;i[a+76>>2]=e;i[a+72>>2]=c;if(!p){break T}nn(p)}v=i[m+68>>2];if((v|0)!=i[m+64>>2]){continue}break}y=i[a+8>>2]}if(((i[y+4>>2]-i[y>>2]>>2>>>0)/3|0)!=(z|0)){break c}v=i[y+24>>2];d=i[y+28>>2]-v>>2;s=i[m+24>>2];e=i[m+28>>2];if((s|0)==(e|0)){break b}while(1){h=i[s>>2];z=d+ -1|0;aa:{if(i[(z<<2)+v>>2]!=-1){c=d;break aa}v=i[y+24>>2];while(1){z=d+ -2|0;c=d+ -1|0;d=c;if(i[(z<<2)+v>>2]==-1){continue}break}}if(z>>>0>=h>>>0){i[m>>2]=y;b=z<<2;d=i[b+v>>2];g[m+12|0]=1;i[m+8>>2]=d;i[m+4>>2]=d;f=b;if((d|0)!=-1){i[i[y>>2]+(d<<2)>>2]=h;Jd(m);d=i[m+8>>2];if((d|0)!=-1){while(1){i[i[i[a+8>>2]>>2]+(d<<2)>>2]=h;Jd(m);d=i[m+8>>2];if((d|0)!=-1){continue}break}}y=i[a+8>>2]}b=i[y+24>>2];d=f+b|0;if((h|0)!=-1){i[b+(h<<2)>>2]=i[d>>2]}i[d>>2]=-1;n=1<>2];h=b+(h>>>3&536870908)|0;d=h;f=b+(z>>>3&536870908)|0;b=1<>2];ba:{if(i[f>>2]&b){break ba}z=i[h>>2]&(n^-1)}i[d>>2]=z;i[f>>2]=i[f>>2]&(b^-1);c=c+ -1|0}d=c;s=s+4|0;if((e|0)==(s|0)){break c}v=i[y+24>>2];continue}}Sm();x()}Sm();x()}break a}d=-1}s=i[m+24>>2]}if(s){i[m+28>>2]=s;nn(s)}a=i[m+48>>2];if(a){while(1){b=i[a>>2];nn(a);a=b;if(a){continue}break}}a=i[m+40>>2];i[m+40>>2]=0;if(a){nn(a)}a=i[m+64>>2];if(a){i[m+68>>2]=a;nn(a)}J=m+96|0;return d}Ba(12220);x()}function mn(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0;p=J-16|0;J=p;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(a>>>0<=244){g=i[4332];f=a>>>0<11?16:a+11&-8;a=f>>>3|0;b=g>>>a|0;if(b&3){c=a+((b^-1)&1)|0;f=c<<3;b=i[f+17376>>2];a=b+8|0;d=i[b+8>>2];f=f+17368|0;m:{if((d|0)==(f|0)){q=17328,r=Kn(c)&g,i[q>>2]=r;break m}i[d+12>>2]=f;i[f+8>>2]=d}c=c<<3;i[b+4>>2]=c|3;b=b+c|0;i[b+4>>2]=i[b+4>>2]|1;break a}k=i[4334];if(f>>>0<=k>>>0){break l}if(b){b=b<>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;c=(c|b)+(a>>>b|0)|0;d=c<<3;b=i[d+17376>>2];a=i[b+8>>2];d=d+17368|0;n:{if((a|0)==(d|0)){g=Kn(c)&g;i[4332]=g;break n}i[a+12>>2]=d;i[d+8>>2]=a}a=b+8|0;i[b+4>>2]=f|3;e=b+f|0;c=c<<3;f=c-f|0;i[e+4>>2]=f|1;i[b+c>>2]=f;if(k){c=k>>>3|0;b=(c<<3)+17368|0;d=i[4337];c=1<>2]}i[b+8>>2]=d;i[c+12>>2]=d;i[d+12>>2]=b;i[d+8>>2]=c}i[4337]=e;i[4334]=f;break a}n=i[4333];if(!n){break l}a=(n&0-n)+ -1|0;b=a>>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;b=i[((c|b)+(a>>>b|0)<<2)+17632>>2];e=(i[b+4>>2]&-8)-f|0;c=b;while(1){p:{a=i[c+16>>2];if(!a){a=i[c+20>>2];if(!a){break p}}d=(i[a+4>>2]&-8)-f|0;c=d>>>0>>0;e=c?d:e;b=c?a:b;c=a;continue}break}o=b+f|0;if(o>>>0<=b>>>0){break k}m=i[b+24>>2];d=i[b+12>>2];if((d|0)!=(b|0)){a=i[b+8>>2];i[a+12>>2]=d;i[d+8>>2]=a;break b}c=b+20|0;a=i[c>>2];if(!a){a=i[b+16>>2];if(!a){break j}c=b+16|0}while(1){h=c;d=a;c=a+20|0;a=i[c>>2];if(a){continue}c=d+16|0;a=i[d+16>>2];if(a){continue}break}i[h>>2]=0;break b}f=-1;if(a>>>0>4294967231){break l}a=a+11|0;f=a&-8;k=i[4333];if(!k){break l}h=31;e=0-f|0;if(f>>>0<=16777215){b=a>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;g=c<>>16&2;a=(g<>>15|0)-(c|(a|b))|0;h=(a<<1|f>>>a+21&1)+28|0}c=i[(h<<2)+17632>>2];q:{r:{s:{if(!c){a=0;break s}a=0;b=f<<((h|0)==31?0:25-(h>>>1|0)|0);while(1){t:{g=(i[c+4>>2]&-8)-f|0;if(g>>>0>=e>>>0){break t}d=c;e=g;if(e){break t}e=0;a=c;break r}g=i[c+20>>2];c=i[((b>>>29&4)+c|0)+16>>2];a=g?(g|0)==(c|0)?a:g:a;b=b<<1;if(c){continue}break}}if(!(a|d)){a=2<>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;a=i[((c|b)+(a>>>b|0)<<2)+17632>>2]}if(!a){break q}}while(1){c=(i[a+4>>2]&-8)-f|0;b=c>>>0>>0;e=b?c:e;d=b?a:d;b=i[a+16>>2];if(b){a=b}else{a=i[a+20>>2]}if(a){continue}break}}if(!d|e>>>0>=i[4334]-f>>>0){break l}h=d+f|0;if(h>>>0<=d>>>0){break k}m=i[d+24>>2];b=i[d+12>>2];if((d|0)!=(b|0)){a=i[d+8>>2];i[a+12>>2]=b;i[b+8>>2]=a;break c}c=d+20|0;a=i[c>>2];if(!a){a=i[d+16>>2];if(!a){break i}c=d+16|0}while(1){g=c;b=a;c=a+20|0;a=i[c>>2];if(a){continue}c=b+16|0;a=i[b+16>>2];if(a){continue}break}i[g>>2]=0;break c}b=i[4334];if(b>>>0>=f>>>0){a=i[4337];c=b-f|0;u:{if(c>>>0>=16){i[4334]=c;d=a+f|0;i[4337]=d;i[d+4>>2]=c|1;i[a+b>>2]=c;i[a+4>>2]=f|3;break u}i[4337]=0;i[4334]=0;i[a+4>>2]=b|3;b=a+b|0;i[b+4>>2]=i[b+4>>2]|1}a=a+8|0;break a}d=i[4335];if(d>>>0>f>>>0){b=d-f|0;i[4335]=b;a=i[4338];c=a+f|0;i[4338]=c;i[c+4>>2]=b|1;i[a+4>>2]=f|3;a=a+8|0;break a}a=0;e=f+47|0;c=e;if(i[4450]){b=i[4452]}else{i[4453]=-1;i[4454]=-1;i[4451]=4096;i[4452]=4096;i[4450]=p+12&-16^1431655768;i[4455]=0;i[4443]=0;b=4096}g=c+b|0;h=0-b|0;c=g&h;if(c>>>0<=f>>>0){break a}b=i[4442];if(b){k=i[4440];m=k+c|0;if(m>>>0<=k>>>0|m>>>0>b>>>0){break a}}if(j[17772]&4){break f}v:{w:{b=i[4338];if(b){a=17776;while(1){k=i[a>>2];if(k+i[a+4>>2]>>>0>b>>>0?k>>>0<=b>>>0:0){break w}a=i[a+8>>2];if(a){continue}break}}b=on(0);if((b|0)==-1){break g}g=c;a=i[4451];d=a+ -1|0;if(d&b){g=(c-b|0)+(b+d&0-a)|0}if(g>>>0<=f>>>0|g>>>0>2147483646){break g}a=i[4442];if(a){d=i[4440];h=d+g|0;if(h>>>0<=d>>>0|h>>>0>a>>>0){break g}}a=on(g);if((b|0)!=(a|0)){break v}break e}g=h&g-d;if(g>>>0>2147483646){break g}b=on(g);if((b|0)==(i[a>>2]+i[a+4>>2]|0)){break h}a=b}if(!((a|0)==-1|f+48>>>0<=g>>>0)){b=i[4452];b=b+(e-g|0)&0-b;if(b>>>0>2147483646){b=a;break e}if((on(b)|0)!=-1){g=b+g|0;b=a;break e}on(0-g|0);break g}b=a;if((a|0)!=-1){break e}break g}x()}d=0;break b}b=0;break c}if((b|0)!=-1){break e}}i[4443]=i[4443]|4}if(c>>>0>2147483646){break d}b=on(c);a=on(0);if(b>>>0>=a>>>0|(b|0)==-1|(a|0)==-1){break d}g=a-b|0;if(g>>>0<=f+40>>>0){break d}}a=i[4440]+g|0;i[4440]=a;if(a>>>0>l[4441]){i[4441]=a}x:{y:{z:{e=i[4338];if(e){a=17776;while(1){c=i[a>>2];d=i[a+4>>2];if((c+d|0)==(b|0)){break z}a=i[a+8>>2];if(a){continue}break}break y}a=i[4336];if(!(b>>>0>=a>>>0?a:0)){i[4336]=b}a=0;i[4445]=g;i[4444]=b;i[4340]=-1;i[4341]=i[4450];i[4447]=0;while(1){c=a<<3;d=c+17368|0;i[c+17376>>2]=d;i[c+17380>>2]=d;a=a+1|0;if((a|0)!=32){continue}break}a=g+ -40|0;c=b+8&7?-8-b&7:0;d=a-c|0;i[4335]=d;c=b+c|0;i[4338]=c;i[c+4>>2]=d|1;i[(a+b|0)+4>>2]=40;i[4339]=i[4454];break x}if(j[a+12|0]&8|b>>>0<=e>>>0|c>>>0>e>>>0){break y}i[a+4>>2]=d+g;a=e+8&7?-8-e&7:0;b=a+e|0;i[4338]=b;c=i[4335]+g|0;a=c-a|0;i[4335]=a;i[b+4>>2]=a|1;i[(c+e|0)+4>>2]=40;i[4339]=i[4454];break x}d=i[4336];if(b>>>0>>0){i[4336]=b;d=0}c=b+g|0;a=17776;A:{B:{C:{D:{E:{F:{while(1){if((c|0)!=i[a>>2]){a=i[a+8>>2];if(a){continue}break F}break}if(!(j[a+12|0]&8)){break E}}a=17776;while(1){c=i[a>>2];if(c>>>0<=e>>>0){d=c+i[a+4>>2]|0;if(d>>>0>e>>>0){break D}}a=i[a+8>>2];continue}}i[a>>2]=b;i[a+4>>2]=i[a+4>>2]+g;m=(b+8&7?-8-b&7:0)+b|0;i[m+4>>2]=f|3;b=c+(c+8&7?-8-c&7:0)|0;a=(b-m|0)-f|0;h=f+m|0;if((b|0)==(e|0)){i[4338]=h;a=i[4335]+a|0;i[4335]=a;i[h+4>>2]=a|1;break B}if(i[4337]==(b|0)){i[4337]=h;a=i[4334]+a|0;i[4334]=a;i[h+4>>2]=a|1;i[a+h>>2]=a;break B}c=i[b+4>>2];if((c&3)==1){n=c&-8;G:{if(c>>>0<=255){f=c>>>3|0;c=i[b+8>>2];d=i[b+12>>2];if((d|0)==(c|0)){q=17328,r=i[4332]&Kn(f),i[q>>2]=r;break G}i[c+12>>2]=d;i[d+8>>2]=c;break G}k=i[b+24>>2];g=i[b+12>>2];H:{if((g|0)!=(b|0)){c=i[b+8>>2];i[c+12>>2]=g;i[g+8>>2]=c;break H}I:{e=b+20|0;f=i[e>>2];if(f){break I}e=b+16|0;f=i[e>>2];if(f){break I}g=0;break H}while(1){c=e;g=f;e=f+20|0;f=i[e>>2];if(f){continue}e=g+16|0;f=i[g+16>>2];if(f){continue}break}i[c>>2]=0}if(!k){break G}c=i[b+28>>2];d=(c<<2)+17632|0;J:{if(i[d>>2]==(b|0)){i[d>>2]=g;if(g){break J}q=17332,r=i[4333]&Kn(c),i[q>>2]=r;break G}i[k+(i[k+16>>2]==(b|0)?16:20)>>2]=g;if(!g){break G}}i[g+24>>2]=k;c=i[b+16>>2];if(c){i[g+16>>2]=c;i[c+24>>2]=g}c=i[b+20>>2];if(!c){break G}i[g+20>>2]=c;i[c+24>>2]=g}b=b+n|0;a=a+n|0}i[b+4>>2]=i[b+4>>2]&-2;i[h+4>>2]=a|1;i[a+h>>2]=a;if(a>>>0<=255){b=a>>>3|0;a=(b<<3)+17368|0;c=i[4332];b=1<>2]}i[a+8>>2]=h;i[b+12>>2]=h;i[h+12>>2]=a;i[h+8>>2]=b;break B}e=31;if(a>>>0<=16777215){c=a>>>8|0;b=c+1048320>>>16&8;d=c<>>16&4;f=d<>>16&2;b=(f<>>15|0)-(d|(b|c))|0;e=(b<<1|a>>>b+21&1)+28|0}i[h+28>>2]=e;i[h+16>>2]=0;i[h+20>>2]=0;b=(e<<2)+17632|0;c=i[4333];d=1<>2]=h;i[h+24>>2]=b;break L}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=i[b>>2];while(1){c=b;if((i[b+4>>2]&-8)==(a|0)){break C}b=e>>>29|0;e=e<<1;d=(c+(b&4)|0)+16|0;b=i[d>>2];if(b){continue}break}i[d>>2]=h;i[h+24>>2]=c}i[h+12>>2]=h;i[h+8>>2]=h;break B}a=g+ -40|0;c=b+8&7?-8-b&7:0;h=a-c|0;i[4335]=h;c=b+c|0;i[4338]=c;i[c+4>>2]=h|1;i[(a+b|0)+4>>2]=40;i[4339]=i[4454];a=(d+(d+ -39&7?39-d&7:0)|0)+ -47|0;c=a>>>0>>0?e:a;i[c+4>>2]=27;a=i[4447];i[c+16>>2]=i[4446];i[c+20>>2]=a;a=i[4445];i[c+8>>2]=i[4444];i[c+12>>2]=a;i[4446]=c+8;i[4445]=g;i[4444]=b;i[4447]=0;a=c+24|0;while(1){i[a+4>>2]=7;b=a+8|0;a=a+4|0;if(d>>>0>b>>>0){continue}break}if((c|0)==(e|0)){break x}i[c+4>>2]=i[c+4>>2]&-2;d=c-e|0;i[e+4>>2]=d|1;i[c>>2]=d;if(d>>>0<=255){b=d>>>3|0;a=(b<<3)+17368|0;c=i[4332];b=1<>2]}i[a+8>>2]=e;i[b+12>>2]=e;i[e+12>>2]=a;i[e+8>>2]=b;break x}a=31;i[e+16>>2]=0;i[e+20>>2]=0;if(d>>>0<=16777215){b=d>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;g=c<>>16&2;a=(g<>>15|0)-(c|(a|b))|0;a=(a<<1|d>>>a+21&1)+28|0}i[e+28>>2]=a;b=(a<<2)+17632|0;c=i[4333];g=1<>2]=e;i[e+24>>2]=b;break N}a=d<<((a|0)==31?0:25-(a>>>1|0)|0);b=i[b>>2];while(1){c=b;if((d|0)==(i[b+4>>2]&-8)){break A}b=a>>>29|0;a=a<<1;g=(c+(b&4)|0)+16|0;b=i[g>>2];if(b){continue}break}i[g>>2]=e;i[e+24>>2]=c}i[e+12>>2]=e;i[e+8>>2]=e;break x}a=i[c+8>>2];i[a+12>>2]=h;i[c+8>>2]=h;i[h+24>>2]=0;i[h+12>>2]=c;i[h+8>>2]=a}a=m+8|0;break a}a=i[c+8>>2];i[a+12>>2]=e;i[c+8>>2]=e;i[e+24>>2]=0;i[e+12>>2]=c;i[e+8>>2]=a}a=i[4335];if(a>>>0<=f>>>0){break d}b=a-f|0;i[4335]=b;a=i[4338];c=a+f|0;i[4338]=c;i[c+4>>2]=b|1;i[a+4>>2]=f|3;a=a+8|0;break a}i[4312]=48;a=0;break a}O:{if(!m){break O}a=i[d+28>>2];c=(a<<2)+17632|0;P:{if(i[c>>2]==(d|0)){i[c>>2]=b;if(b){break P}k=Kn(a)&k;i[4333]=k;break O}i[m+(i[m+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break O}}i[b+24>>2]=m;a=i[d+16>>2];if(a){i[b+16>>2]=a;i[a+24>>2]=b}a=i[d+20>>2];if(!a){break O}i[b+20>>2]=a;i[a+24>>2]=b}Q:{if(e>>>0<=15){a=e+f|0;i[d+4>>2]=a|3;a=a+d|0;i[a+4>>2]=i[a+4>>2]|1;break Q}i[d+4>>2]=f|3;i[h+4>>2]=e|1;i[e+h>>2]=e;if(e>>>0<=255){b=e>>>3|0;a=(b<<3)+17368|0;c=i[4332];b=1<>2]}i[a+8>>2]=h;i[b+12>>2]=h;i[h+12>>2]=a;i[h+8>>2]=b;break Q}a=31;if(e>>>0<=16777215){b=e>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;f=c<>>16&2;a=(f<>>15|0)-(c|(a|b))|0;a=(a<<1|e>>>a+21&1)+28|0}i[h+28>>2]=a;i[h+16>>2]=0;i[h+20>>2]=0;b=(a<<2)+17632|0;S:{c=1<>2]=h;break T}a=e<<((a|0)==31?0:25-(a>>>1|0)|0);f=i[b>>2];while(1){b=f;if((i[b+4>>2]&-8)==(e|0)){break S}c=a>>>29|0;a=a<<1;c=(b+(c&4)|0)+16|0;f=i[c>>2];if(f){continue}break}i[c>>2]=h}i[h+24>>2]=b;i[h+12>>2]=h;i[h+8>>2]=h;break Q}a=i[b+8>>2];i[a+12>>2]=h;i[b+8>>2]=h;i[h+24>>2]=0;i[h+12>>2]=b;i[h+8>>2]=a}a=d+8|0;break a}U:{if(!m){break U}a=i[b+28>>2];c=(a<<2)+17632|0;V:{if(i[c>>2]==(b|0)){i[c>>2]=d;if(d){break V}q=17332,r=Kn(a)&n,i[q>>2]=r;break U}i[(i[m+16>>2]==(b|0)?16:20)+m>>2]=d;if(!d){break U}}i[d+24>>2]=m;a=i[b+16>>2];if(a){i[d+16>>2]=a;i[a+24>>2]=d}a=i[b+20>>2];if(!a){break U}i[d+20>>2]=a;i[a+24>>2]=d}W:{if(e>>>0<=15){a=e+f|0;i[b+4>>2]=a|3;a=a+b|0;i[a+4>>2]=i[a+4>>2]|1;break W}i[b+4>>2]=f|3;i[o+4>>2]=e|1;i[e+o>>2]=e;if(k){c=k>>>3|0;a=(c<<3)+17368|0;d=i[4337];c=1<>2]}i[a+8>>2]=d;i[c+12>>2]=d;i[d+12>>2]=a;i[d+8>>2]=c}i[4337]=o;i[4334]=e}a=b+8|0}J=p+16|0;return a|0}function Vf(a,b){var c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;m=J-96|0;J=m;i[m+72>>2]=0;i[m+64>>2]=0;i[m+68>>2]=0;i[m+48>>2]=0;i[m+52>>2]=0;i[m+40>>2]=0;i[m+44>>2]=0;i[m+56>>2]=1065353216;i[m+32>>2]=0;i[m+24>>2]=0;i[m+28>>2]=0;A=i[a+124>>2];a:{b:{c:{d:{e:{if((b|0)<1){break e}C=i[a+216>>2]!=i[a+220>>2];q=1;while(1){f=w;w=f+1|0;f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if(!j[a+308|0]){break q}r:{s:{n=i[a+296>>2];t=i[a+304>>2];c=n+(t>>>3|0)|0;h=i[a+300>>2];if(c>>>0>=h>>>0){break s}d=j[c|0];c=t+1|0;i[a+304>>2]=c;if(!(d>>>(t&7)&1)){break s}p=c>>>3|0;d=n+p|0;t:{if(d>>>0>=h>>>0){d=c;c=0;break t}e=j[d|0];d=t+2|0;i[a+304>>2]=d;p=d>>>3|0;c=e>>>(c&7)&1}e=n+p|0;if(e>>>0>>0){e=j[e|0];i[a+304>>2]=d+1;d=e>>>(d&7)<<1&2}else{d=0}c=(c|d)<<1;switch(c-1|0){case 0:case 2:case 4:break n;case 5:break p;case 1:case 3:break r;default:break q}}d=i[m+68>>2];if((d|0)==i[m+64>>2]){break d}y=-1;u=i[a+8>>2];t=i[u+24>>2];c=t;p=d+ -4|0;q=i[p>>2];e=-1;u:{if((q|0)==-1){break u}d=q+1|0;d=(d>>>0)%3|0?d:q+ -2|0;e=-1;if((d|0)==-1){break u}e=i[i[u>>2]+(d<<2)>>2]}d=i[c+(e<<2)>>2];if((d|0)!=-1){c=d+1|0;y=(c>>>0)%3|0?c:d+ -2|0}d=i[u+12>>2];r=o(f,3);c=r+1|0;i[d+(q<<2)>>2]=c;n=c<<2;i[n+d>>2]=q;s=r+2|0;i[d+(y<<2)>>2]=s;f=s<<2;i[f+d>>2]=y;h=-1;c=-1;v:{if((q|0)==-1){break v}d=q+((q>>>0)%3|0?-1:2)|0;c=-1;if((d|0)==-1){break v}c=i[i[u>>2]+(d<<2)>>2]}w:{if((y|0)==-1){break w}d=y+1|0;d=(d>>>0)%3|0?d:y+ -2|0;if((d|0)==-1){break w}h=i[i[u>>2]+(d<<2)>>2]}d=-1;if((c|0)==(e|0)|(e|0)==(h|0)){break c}d=i[u>>2];i[d+(r<<2)>>2]=e;i[d+n>>2]=h;i[d+f>>2]=c;if((c|0)!=-1){i[t+(c<<2)>>2]=s}d=i[a+120>>2]+(e>>>3&536870908)|0;c=i[d>>2];D=d,E=Kn(e)&c,i[D>>2]=E;i[p>>2]=r;break f}e=i[m+68>>2];if((e|0)==i[m+64>>2]){break d}s=i[a+8>>2];d=i[s+12>>2];r=o(f,3);p=(c|1)==5;n=r+(p?2:1)|0;c=n<<2;u=i[e+ -4>>2];i[d+c>>2]=u;i[d+(u<<2)>>2]=n;$f(s+24|0,11508);d=-1;h=i[a+8>>2];t=i[h+24>>2];if(i[h+28>>2]-t>>2>(A|0)){break c}e=r+2|0;h=i[h>>2];v=h+c|0;d=i[s+28>>2]-i[s+24>>2]|0;c=(d>>2)+ -1|0;i[v>>2]=c;if(d){i[t+(c<<2)>>2]=n}e=p?r:e;n=h+(p+r<<2)|0;x:{y:{z:{if((u|0)!=-1){c=u+((u>>>0)%3|0?-1:2)|0;if((c|0)==-1){break z}c=i[h+(c<<2)>>2];i[h+(e<<2)>>2]=c;if((c|0)==-1){break y}i[t+(c<<2)>>2]=e;break y}i[h+(e<<2)>>2]=-1;d=-1;break x}i[h+(e<<2)>>2]=-1}c=u+1|0;c=(c>>>0)%3|0?c:u+ -2|0;d=-1;if((c|0)==-1){break x}d=i[h+(c<<2)>>2]}i[n>>2]=d;i[i[m+68>>2]+ -4>>2]=r;break o}p=i[m+68>>2];e=i[m+64>>2];if((p|0)==(e|0)){break d}n=p+ -4|0;z=i[n>>2];i[m+68>>2]=n;r=i[m+44>>2];if(!r){break k}d=i[m+40>>2];s=Jn(r)>>>0>1;h=f&r+2147483647;A:{if(!s){break A}c=f;h=c;if(c>>>0>>0){break A}h=(f>>>0)%(r>>>0)|0}c=i[d+(h<<2)>>2];if(!c){break k}d=i[c>>2];if(!d){break k}t=r+ -1|0;while(1){B:{c=i[d+4>>2];C:{if((f|0)!=(c|0)){D:{if(!s){c=c&t;break D}if(c>>>0>>0){break D}c=(c>>>0)%(r>>>0)|0}if((c|0)!=(h|0)){break k}break C}if((f|0)==i[d+8>>2]){break B}}d=i[d>>2];if(d){continue}break k}break}if((n|0)!=i[m+72>>2]){i[n>>2]=i[d+12>>2];i[m+68>>2]=p;c=e;break j}t=n-e|0;p=t>>2;n=p+1|0;if(n>>>0>=1073741824){break m}h=t>>1;n=p>>>0<536870911?h>>>0>>0?n:h:1073741823;c=0;E:{if(!n){break E}if(n>>>0>=1073741824){break a}c=Dm(n<<2)}h=c+(p<<2)|0;i[h>>2]=i[d+12>>2];d=(n<<2)+c|0;p=h+4|0;if((t|0)>=1){pn(c,e,t)}i[m+72>>2]=d;i[m+68>>2]=p;i[m+64>>2]=c;if(!e){break j}nn(e);p=i[m+68>>2];c=i[m+64>>2];break j}c=i[a+8>>2];$f(c+24|0,11508);d=-1;e=i[a+8>>2];r=o(f,3);p=i[c+28>>2]-i[c+24>>2]|0;t=p>>2;h=t+ -1|0;i[i[e>>2]+(r<<2)>>2]=h;$f(e+24|0,11508);n=r+1|0;i[i[e>>2]+(n<<2)>>2]=(i[e+28>>2]-i[e+24>>2]>>2)+ -1;c=i[a+8>>2];$f(c+24|0,11508);e=r+2|0;i[i[c>>2]+(e<<2)>>2]=(i[c+28>>2]-i[c+24>>2]>>2)+ -1;c=i[a+8>>2];s=i[c+24>>2];if(i[c+28>>2]-s>>2>(A|0)){break c}F:{G:{if(!p){i[s+(t<<2)>>2]=n;d=1;break G}i[s+(h<<2)>>2]=r;d=0;if((p|0)==-4){break G}i[s+(t<<2)>>2]=n;d=t+1|0;if((d|0)==-1){break F}}i[s+(d<<2)>>2]=e}c=i[m+68>>2];if((c|0)!=i[m+72>>2]){i[c>>2]=r;i[m+68>>2]=c+4;break o}p=i[m+64>>2];n=c-p|0;h=n>>2;e=h+1|0;if(e>>>0>=1073741824){break l}d=n>>1;e=h>>>0<536870911?d>>>0>>0?e:d:1073741823;c=0;H:{if(!e){break H}if(e>>>0>=1073741824){break a}c=Dm(e<<2)}d=c+(h<<2)|0;i[d>>2]=r;e=c+(e<<2)|0;d=d+4|0;if((n|0)>=1){pn(c,p,n)}i[m+72>>2]=e;i[m+68>>2]=d;i[m+64>>2]=c;if(!p){break o}nn(p)}d=i[a+40>>2];if((d|0)==i[a+36>>2]){break f}f=(f^-1)+b|0;while(1){c=i[d+ -8>>2];if(c>>>0>f>>>0){break i}if((c|0)!=(f|0)){break f}e=j[d+ -4|0];c=d+ -12|0;d=i[c>>2];i[a+40>>2]=c;if((d|0)<0){break i}h=i[i[m+68>>2]+ -4>>2];i[m+20>>2]=(d^-1)+b;i[m+88>>2]=m+20;ag(m,m+40|0,m+20|0,m+88|0);d=i[m>>2];I:{if(e&1){c=-1;if((h|0)==-1){break I}c=h+1|0;c=(c>>>0)%3|0?c:h+ -2|0;break I}c=-1;if((h|0)==-1){break I}c=h+ -1|0;if((h>>>0)%3|0){break I}c=h+2|0}i[d+12>>2]=c;d=i[a+40>>2];if((d|0)!=i[a+36>>2]){continue}break}break f}x()}Sm();x()}Sm();x()}p=n;c=e}if((c|0)==(p|0)){break i}u=i[p+ -4>>2];d=(u|0)==-1;r=i[a+8>>2];if(i[i[r+12>>2]+(u<<2)>>2]!=-1?!d:0){break i}h=(z|0)==-1;s=i[r+12>>2];if(i[s+(z<<2)>>2]!=-1?!h:0){break i}t=o(f,3);f=t+2|0;i[s+(u<<2)>>2]=f;n=f<<2;i[n+s>>2]=u;c=t+1|0;i[s+(z<<2)>>2]=c;e=c<<2;i[e+s>>2]=z;if(d){break h}q=-1;v=-1;y=i[r>>2];d=y+(t<<2)|0;c=u+((u>>>0)%3|0?-1:2)|0;if((c|0)!=-1){v=i[(c<<2)+y>>2]}i[d>>2]=v;c=u+1|0;c=(c>>>0)%3|0?c:u+ -2|0;if((c|0)==-1){break g}q=i[(c<<2)+y>>2];break g}d=-1;if(q&1){break c}break e}v=-1;y=i[r>>2];i[y+(t<<2)>>2]=-1;q=-1}i[e+y>>2]=q;J:{K:{L:{if(!h){c=z+((z>>>0)%3|0?-1:2)|0;if((c|0)==-1){break L}c=i[(c<<2)+y>>2];i[n+y>>2]=c;if((c|0)==-1){break K}i[i[r+24>>2]+(c<<2)>>2]=f;break K}i[n+y>>2]=-1;B=-1;d=-1;break J}i[n+y>>2]=-1}B=-1;c=z+1|0;c=(c>>>0)%3|0?c:z+ -2|0;d=-1;if((c|0)==-1){break J}B=i[(c<<2)+y>>2];d=c}c=i[r+24>>2];e=c+(B<<2)|0;if((v|0)!=-1){i[c+(v<<2)>>2]=i[e>>2]}M:{if((d|0)==-1){break M}while(1){i[(d<<2)+y>>2]=v;c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1){break M}d=i[s+(c<<2)>>2];if((d|0)==-1){break M}c=d+1|0;d=(c>>>0)%3|0?c:d+ -2|0;if((d|0)!=-1){continue}break}}i[e>>2]=-1;N:{if(C){break N}c=i[m+28>>2];if((c|0)!=i[m+32>>2]){i[c>>2]=B;i[m+28>>2]=c+4;break N}O:{n=i[m+24>>2];h=c-n|0;f=h>>2;e=f+1|0;if(e>>>0<1073741824){d=h>>1;e=f>>>0<536870911?d>>>0>>0?e:d:1073741823;c=0;P:{if(!e){break P}if(e>>>0>=1073741824){break O}c=Dm(e<<2)}d=c+(f<<2)|0;i[d>>2]=B;e=c+(e<<2)|0;d=d+4|0;if((h|0)>=1){pn(c,n,h)}i[m+32>>2]=e;i[m+28>>2]=d;i[m+24>>2]=c;if(!n){break N}nn(n);p=i[m+68>>2];break N}Sm();x()}break a}i[p+ -4>>2]=t}q=(w|0)<(b|0);if((b|0)!=(w|0)){continue}break}w=b}d=-1;b=i[a+8>>2];if(i[b+28>>2]-i[b+24>>2]>>2>(A|0)){break c}Q:{R:{S:{q=i[m+68>>2];if((q|0)!=i[m+64>>2]){C=a+72|0;b=a+60|0;t=a+312|0;while(1){c=q+ -4|0;s=i[c>>2];i[m+68>>2]=c;T:{U:{V:{W:{if(k[a+270>>1]<=513){if(!j[a+364|0]){break V}e=i[a+360>>2];c=i[a+352>>2]+(e>>>3|0)|0;if(c>>>0>=l[a+356>>2]){break U}c=j[c|0];i[a+360>>2]=e+1;c=c>>>(e&7)&1;break W}c=Ce(t)}if(!c){break U}}p=i[a+8>>2];z=i[p>>2];if((w|0)>=((i[p+4>>2]-z>>2>>>0)/3|0)){break d}h=-1;v=-1;n=i[p+24>>2];f=n;c=-1;X:{if((s|0)==-1){break X}e=s+1|0;e=(e>>>0)%3|0?e:s+ -2|0;c=-1;if((e|0)==-1){break X}c=i[z+(e<<2)>>2]}f=i[f+(c<<2)>>2];Y:{if((f|0)==-1){break Y}e=f+1|0;e=(e>>>0)%3|0?e:f+ -2|0;if((e|0)==-1){break Y}f=e+1|0;f=(f>>>0)%3|0?f:e+ -2|0;if((f|0)!=-1){v=i[z+(f<<2)>>2]}h=e}q=-1;B=-1;n=i[n+(v<<2)>>2];f=-1;Z:{if((n|0)==-1){break Z}e=n+1|0;e=(e>>>0)%3|0?e:n+ -2|0;f=-1;if((e|0)==-1){break Z}f=e+1|0;f=(f>>>0)%3|0?f:e+ -2|0;if((f|0)!=-1){B=i[z+(f<<2)>>2]}f=e}A=i[p+12>>2];u=o(w,3);p=u<<2;i[A+p>>2]=s;i[A+(s<<2)>>2]=u;r=u+1|0;n=r<<2;i[n+A>>2]=h;i[A+(h<<2)>>2]=r;s=u+2|0;e=s<<2;i[e+A>>2]=f;i[A+(f<<2)>>2]=s;i[p+z>>2]=v;n=n+z|0;i[n>>2]=B;h=e+z|0;i[h>>2]=c;p=i[a+120>>2];f=r>>>0>>0?-1:v;e=p+(f>>>3&536870908)|0;c=i[e>>2];D=e,E=Kn(f)&c,i[D>>2]=E;q=(r|0)!=-1?i[n>>2]:q;e=p+(q>>>3&536870908)|0;c=i[e>>2];D=e,E=Kn(q)&c,i[D>>2]=E;q=-1;q=(s|0)!=-1?i[h>>2]:q;e=p+(q>>>3&536870908)|0;c=i[e>>2];D=e,E=Kn(q)&c,i[D>>2]=E;q=i[a+64>>2];e=i[a+68>>2];if((q|0)==e<<5){if((q+1|0)<=-1){break S}c=b;if(q>>>0<=1073741822){f=q+32&-32;e=e<<6;e=e>>>0>>0?f:e}else{e=2147483647}Qc(c,e);q=i[a+64>>2]}w=w+1|0;i[a+64>>2]=q+1;c=i[a+60>>2]+(q>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>2];if((c|0)!=i[a+80>>2]){i[c>>2]=u;i[a+76>>2]=c+4;break T}p=i[C>>2];n=c-p|0;h=n>>2;f=h+1|0;if(f>>>0>=1073741824){break R}e=n>>1;f=h>>>0<536870911?e>>>0>>0?f:e:1073741823;c=0;_:{if(!f){break _}if(f>>>0>=1073741824){break a}c=Dm(f<<2)}e=c+(h<<2)|0;i[e>>2]=u;f=c+(f<<2)|0;e=e+4|0;if((n|0)>=1){pn(c,p,n)}i[a+80>>2]=f;i[a+76>>2]=e;i[a+72>>2]=c;if(!p){break T}nn(p);break T}c=i[a+64>>2];h=i[a+68>>2];if((c|0)==h<<5){if((c+1|0)<=-1){break S}e=b;if(c>>>0<=1073741822){f=c+32&-32;c=h<<6;c=c>>>0>>0?f:c}else{c=2147483647}Qc(e,c);c=i[a+64>>2]}i[a+64>>2]=c+1;f=i[a+60>>2]+(c>>>3&536870908)|0;e=i[f>>2];D=f,E=Kn(c)&e,i[D>>2]=E;c=i[a+76>>2];if((c|0)!=i[a+80>>2]){i[c>>2]=s;i[a+76>>2]=c+4;break T}p=i[C>>2];n=c-p|0;h=n>>2;f=h+1|0;if(f>>>0>=1073741824){break R}e=n>>1;f=h>>>0<536870911?e>>>0>>0?f:e:1073741823;c=0;$:{if(!f){break $}if(f>>>0>=1073741824){break Q}c=Dm(f<<2)}e=c+(h<<2)|0;i[e>>2]=s;f=c+(f<<2)|0;e=e+4|0;if((n|0)>=1){pn(c,p,n)}i[a+80>>2]=f;i[a+76>>2]=e;i[a+72>>2]=c;if(!p){break T}nn(p)}q=i[m+68>>2];if((q|0)!=i[m+64>>2]){continue}break}b=i[a+8>>2]}if(((i[b+4>>2]-i[b>>2]>>2>>>0)/3|0)!=(w|0)){break c}q=i[b+24>>2];d=i[b+28>>2]-q>>2;v=i[m+24>>2];f=i[m+28>>2];if((v|0)==(f|0)){break b}while(1){h=i[v>>2];w=d+ -1|0;aa:{if(i[(w<<2)+q>>2]!=-1){c=d;break aa}q=i[b+24>>2];while(1){w=d+ -2|0;c=d+ -1|0;d=c;if(i[(w<<2)+q>>2]==-1){continue}break}}if(w>>>0>=h>>>0){i[m>>2]=b;e=w<<2;d=i[e+q>>2];g[m+12|0]=1;i[m+8>>2]=d;i[m+4>>2]=d;if((d|0)!=-1){i[i[b>>2]+(d<<2)>>2]=h;Jd(m);d=i[m+8>>2];if((d|0)!=-1){while(1){i[i[i[a+8>>2]>>2]+(d<<2)>>2]=h;Jd(m);d=i[m+8>>2];if((d|0)!=-1){continue}break}}b=i[a+8>>2]}d=i[b+24>>2];e=d+e|0;if((h|0)!=-1){i[d+(h<<2)>>2]=i[e>>2]}i[e>>2]=-1;p=1<>2];n=d+(h>>>3&536870908)|0;e=n;h=d+(w>>>3&536870908)|0;d=1<>2];ba:{if(i[h>>2]&d){break ba}w=i[n>>2]&(p^-1)}i[e>>2]=w;i[h>>2]=i[h>>2]&(d^-1);c=c+ -1|0}d=c;v=v+4|0;if((f|0)==(v|0)){break c}q=i[b+24>>2];continue}}Sm();x()}Sm();x()}break a}d=-1}v=i[m+24>>2]}if(v){i[m+28>>2]=v;nn(v)}a=i[m+48>>2];if(a){while(1){b=i[a>>2];nn(a);a=b;if(a){continue}break}}a=i[m+40>>2];i[m+40>>2]=0;if(a){nn(a)}a=i[m+64>>2];if(a){i[m+68>>2]=a;nn(a)}J=m+96|0;return d}Ba(12220);x()}function lg(a,b){var c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;m=J-96|0;J=m;i[m+72>>2]=0;i[m+64>>2]=0;i[m+68>>2]=0;i[m+48>>2]=0;i[m+52>>2]=0;i[m+40>>2]=0;i[m+44>>2]=0;i[m+56>>2]=1065353216;i[m+32>>2]=0;i[m+24>>2]=0;i[m+28>>2]=0;B=i[a+124>>2];a:{b:{c:{d:{e:{if((b|0)<1){break e}A=a+232|0;C=i[a+216>>2]!=i[a+220>>2];t=1;while(1){f=y;y=f+1|0;c=ng(A);f:{if(!c){d=i[m+68>>2];if((d|0)==i[m+64>>2]){break d}w=-1;q=i[a+8>>2];t=i[q+24>>2];c=t;n=d+ -4|0;v=i[n>>2];h=-1;g:{if((v|0)==-1){break g}d=v+1|0;d=(d>>>0)%3|0?d:v+ -2|0;h=-1;if((d|0)==-1){break g}h=i[i[q>>2]+(d<<2)>>2]}d=i[c+(h<<2)>>2];if((d|0)!=-1){c=d+1|0;w=(c>>>0)%3|0?c:d+ -2|0}d=i[q+12>>2];r=o(f,3);c=r+1|0;i[d+(v<<2)>>2]=c;e=c<<2;i[e+d>>2]=v;s=r+2|0;i[d+(w<<2)>>2]=s;f=s<<2;i[f+d>>2]=w;p=-1;c=-1;h:{if((v|0)==-1){break h}d=v+((v>>>0)%3|0?-1:2)|0;c=-1;if((d|0)==-1){break h}c=i[i[q>>2]+(d<<2)>>2]}i:{if((w|0)==-1){break i}d=w+1|0;d=(d>>>0)%3|0?d:w+ -2|0;if((d|0)==-1){break i}p=i[i[q>>2]+(d<<2)>>2]}d=-1;if((c|0)==(h|0)|(h|0)==(p|0)){break c}d=i[q>>2];i[d+(r<<2)>>2]=h;i[d+e>>2]=p;i[d+f>>2]=c;if((c|0)!=-1){i[t+(c<<2)>>2]=s}d=i[a+120>>2]+(h>>>3&536870908)|0;c=i[d>>2];D=d,E=Kn(h)&c,i[D>>2]=E;i[n>>2]=r;og(A,r);break f}d=-1;j:{k:{l:{m:{n:{o:{p:{q:{r:{switch(c+ -1|0){case 2:case 4:h=i[m+68>>2];if((h|0)==i[m+64>>2]){break d}r=i[a+8>>2];d=i[r+12>>2];q=o(f,3);p=(c|0)==5;n=q+(p?2:1)|0;c=n<<2;v=i[h+ -4>>2];i[d+c>>2]=v;i[d+(v<<2)>>2]=n;$f(r+24|0,11508);d=-1;e=i[a+8>>2];s=i[e+24>>2];if(i[e+28>>2]-s>>2>(B|0)){break c}h=q+2|0;e=i[e>>2];u=e+c|0;d=i[r+28>>2]-i[r+24>>2]|0;c=(d>>2)+ -1|0;i[u>>2]=c;if(d){i[s+(c<<2)>>2]=n}h=p?q:h;d=e+(p+q<<2)|0;s:{t:{u:{if((v|0)!=-1){c=v+((v>>>0)%3|0?-1:2)|0;if((c|0)==-1){break u}c=i[e+(c<<2)>>2];i[e+(h<<2)>>2]=c;if((c|0)==-1){break t}i[s+(c<<2)>>2]=h;break t}i[e+(h<<2)>>2]=-1;h=-1;break s}i[e+(h<<2)>>2]=-1}c=v+1|0;c=(c>>>0)%3|0?c:v+ -2|0;h=-1;if((c|0)==-1){break s}h=i[e+(c<<2)>>2]}i[d>>2]=h;d=i[m+68>>2];i[d+ -4>>2]=q;break q;case 0:p=i[m+68>>2];h=i[m+64>>2];if((p|0)==(h|0)){break d}n=p+ -4|0;z=i[n>>2];i[m+68>>2]=n;q=i[m+44>>2];if(!q){break n}d=i[m+40>>2];r=Jn(q)>>>0>1;e=f&q+2147483647;v:{if(!r){break v}c=f;e=c;if(c>>>0>>0){break v}e=(f>>>0)%(q>>>0)|0}c=i[d+(e<<2)>>2];if(!c){break n}d=i[c>>2];if(!d){break n}s=q+ -1|0;while(1){w:{c=i[d+4>>2];x:{if((f|0)!=(c|0)){y:{if(!r){c=c&s;break y}if(c>>>0>>0){break y}c=(c>>>0)%(q>>>0)|0}if((c|0)!=(e|0)){break n}break x}if((f|0)==i[d+8>>2]){break w}}d=i[d>>2];if(d){continue}break n}break}if((n|0)!=i[m+72>>2]){i[n>>2]=i[d+12>>2];i[m+68>>2]=p;c=h;break m}s=n-h|0;p=s>>2;n=p+1|0;if(n>>>0>=1073741824){break p}e=s>>1;n=p>>>0<536870911?e>>>0>>0?n:e:1073741823;c=0;z:{if(!n){break z}if(n>>>0>=1073741824){break a}c=Dm(n<<2)}e=c+(p<<2)|0;i[e>>2]=i[d+12>>2];d=(n<<2)+c|0;p=e+4|0;if((s|0)>=1){pn(c,h,s)}i[m+72>>2]=d;i[m+68>>2]=p;i[m+64>>2]=c;if(!h){break m}nn(h);p=i[m+68>>2];c=i[m+64>>2];break m;case 6:break r;default:break c}}c=i[a+8>>2];$f(c+24|0,11508);h=i[a+8>>2];q=o(f,3);p=i[c+28>>2]-i[c+24>>2]|0;s=p>>2;e=s+ -1|0;i[i[h>>2]+(q<<2)>>2]=e;$f(h+24|0,11508);n=q+1|0;i[i[h>>2]+(n<<2)>>2]=(i[h+28>>2]-i[h+24>>2]>>2)+ -1;c=i[a+8>>2];$f(c+24|0,11508);h=q+2|0;i[i[c>>2]+(h<<2)>>2]=(i[c+28>>2]-i[c+24>>2]>>2)+ -1;c=i[a+8>>2];r=i[c+24>>2];if(i[c+28>>2]-r>>2>(B|0)){break c}A:{B:{if(!p){i[r+(s<<2)>>2]=n;d=1;break B}i[r+(e<<2)>>2]=q;d=0;if((p|0)==-4){break B}i[r+(s<<2)>>2]=n;d=s+1|0;if((d|0)==-1){break A}}i[r+(d<<2)>>2]=h}c=i[m+68>>2];if((c|0)!=i[m+72>>2]){i[c>>2]=q;d=c+4|0;i[m+68>>2]=d;break q}p=i[m+64>>2];n=c-p|0;e=n>>2;h=e+1|0;if(h>>>0>=1073741824){break o}d=n>>1;h=e>>>0<536870911?d>>>0>>0?h:d:1073741823;c=0;C:{if(!h){break C}if(h>>>0>=1073741824){break a}c=Dm(h<<2)}d=c+(e<<2)|0;i[d>>2]=q;h=c+(h<<2)|0;d=d+4|0;if((n|0)>=1){pn(c,p,n)}i[m+72>>2]=h;i[m+68>>2]=d;i[m+64>>2]=c;if(!p){break q}nn(p);d=i[m+68>>2]}og(A,i[d+ -4>>2]);d=i[a+40>>2];if((d|0)==i[a+36>>2]){break f}f=(f^-1)+b|0;while(1){c=i[d+ -8>>2];if(c>>>0>f>>>0){break l}if((c|0)!=(f|0)){break f}h=j[d+ -4|0];c=d+ -12|0;d=i[c>>2];i[a+40>>2]=c;if((d|0)<0){break l}e=i[i[m+68>>2]+ -4>>2];i[m+20>>2]=(d^-1)+b;i[m+88>>2]=m+20;ag(m,m+40|0,m+20|0,m+88|0);d=i[m>>2];D:{if(h&1){c=-1;if((e|0)==-1){break D}c=e+1|0;c=(c>>>0)%3|0?c:e+ -2|0;break D}c=-1;if((e|0)==-1){break D}c=e+ -1|0;if((e>>>0)%3|0){break D}c=e+2|0}i[d+12>>2]=c;d=i[a+40>>2];if((d|0)!=i[a+36>>2]){continue}break}break f}Sm();x()}Sm();x()}p=n;c=h}if((c|0)==(p|0)){break l}s=i[p+ -4>>2];d=(s|0)==-1;v=i[a+8>>2];if(i[i[v+12>>2]+(s<<2)>>2]!=-1?!d:0){break l}e=(z|0)==-1;q=i[v+12>>2];if(i[q+(z<<2)>>2]!=-1?!e:0){break l}r=o(f,3);f=r+2|0;i[q+(s<<2)>>2]=f;n=f<<2;i[n+q>>2]=s;c=r+1|0;i[q+(z<<2)>>2]=c;h=c<<2;i[h+q>>2]=z;if(d){break k}u=-1;t=-1;w=i[v>>2];d=w+(r<<2)|0;c=s+((s>>>0)%3|0?-1:2)|0;if((c|0)!=-1){t=i[(c<<2)+w>>2]}i[d>>2]=t;c=s+1|0;c=(c>>>0)%3|0?c:s+ -2|0;if((c|0)==-1){break j}u=i[(c<<2)+w>>2];break j}d=-1;if(t&1){break c}break e}t=-1;w=i[v>>2];i[w+(r<<2)>>2]=-1;u=-1}i[h+w>>2]=u;E:{F:{G:{if(!e){c=z+((z>>>0)%3|0?-1:2)|0;if((c|0)==-1){break G}c=i[(c<<2)+w>>2];i[n+w>>2]=c;if((c|0)==-1){break F}i[i[v+24>>2]+(c<<2)>>2]=f;break F}i[n+w>>2]=-1;s=-1;d=-1;break E}i[n+w>>2]=-1}s=-1;c=z+1|0;c=(c>>>0)%3|0?c:z+ -2|0;d=-1;if((c|0)==-1){break E}s=i[(c<<2)+w>>2];d=c}f=i[a+388>>2];h=t<<2;c=f+h|0;n=c;e=i[c>>2];c=s<<2;i[n>>2]=e+i[c+f>>2];f=c;c=i[v+24>>2];f=f+c|0;if((t|0)!=-1){i[c+h>>2]=i[f>>2]}H:{if((d|0)==-1){break H}while(1){i[(d<<2)+w>>2]=t;c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1){break H}d=i[q+(c<<2)>>2];if((d|0)==-1){break H}c=d+1|0;d=(c>>>0)%3|0?c:d+ -2|0;if((d|0)!=-1){continue}break}}i[f>>2]=-1;I:{if(C){break I}c=i[m+28>>2];if((c|0)!=i[m+32>>2]){i[c>>2]=s;i[m+28>>2]=c+4;break I}J:{n=i[m+24>>2];e=c-n|0;f=e>>2;h=f+1|0;if(h>>>0<1073741824){d=e>>1;h=f>>>0<536870911?d>>>0>>0?h:d:1073741823;c=0;K:{if(!h){break K}if(h>>>0>=1073741824){break J}c=Dm(h<<2)}d=c+(f<<2)|0;i[d>>2]=s;h=c+(h<<2)|0;d=d+4|0;if((e|0)>=1){pn(c,n,e)}i[m+32>>2]=h;i[m+28>>2]=d;i[m+24>>2]=c;if(!n){break I}nn(n);p=i[m+68>>2];break I}Sm();x()}break a}i[p+ -4>>2]=r;og(A,r)}t=(y|0)<(b|0);if((b|0)!=(y|0)){continue}break}y=b}d=-1;p=i[a+8>>2];if(i[p+28>>2]-i[p+24>>2]>>2>(B|0)){break c}L:{M:{N:{u=i[m+68>>2];if((u|0)!=i[m+64>>2]){B=a+72|0;h=a+60|0;s=a+312|0;while(1){b=u+ -4|0;r=i[b>>2];i[m+68>>2]=b;O:{P:{Q:{R:{if(k[a+270>>1]<=513){if(!j[a+364|0]){break Q}c=i[a+360>>2];b=i[a+352>>2]+(c>>>3|0)|0;if(b>>>0>=l[a+356>>2]){break P}b=j[b|0];i[a+360>>2]=c+1;b=b>>>(c&7)&1;break R}b=Ce(s)}if(!b){break P}}p=i[a+8>>2];w=i[p>>2];if((y|0)>=((i[p+4>>2]-w>>2>>>0)/3|0)){break d}t=-1;b=-1;n=i[p+24>>2];e=n;c=-1;S:{if((r|0)==-1){break S}f=r+1|0;f=(f>>>0)%3|0?f:r+ -2|0;c=-1;if((f|0)==-1){break S}c=i[w+(f<<2)>>2]}e=i[e+(c<<2)>>2];T:{if((e|0)==-1){break T}f=e+1|0;f=(f>>>0)%3|0?f:e+ -2|0;if((f|0)==-1){break T}e=f+1|0;e=(e>>>0)%3|0?e:f+ -2|0;if((e|0)!=-1){b=i[w+(e<<2)>>2]}t=f}A=-1;C=-1;n=i[n+(b<<2)>>2];e=-1;U:{if((n|0)==-1){break U}f=n+1|0;f=(f>>>0)%3|0?f:n+ -2|0;e=-1;if((f|0)==-1){break U}e=f+1|0;e=(e>>>0)%3|0?e:f+ -2|0;if((e|0)!=-1){C=i[w+(e<<2)>>2]}e=f}v=i[p+12>>2];z=o(y,3);p=z<<2;i[v+p>>2]=r;i[v+(r<<2)>>2]=z;q=z+1|0;n=q<<2;i[n+v>>2]=t;i[v+(t<<2)>>2]=q;r=z+2|0;f=r<<2;i[f+v>>2]=e;i[v+(e<<2)>>2]=r;i[p+w>>2]=b;n=n+w|0;i[n>>2]=C;e=f+w|0;i[e>>2]=c;t=i[a+120>>2];f=q>>>0>>0?-1:b;c=t+(f>>>3&536870908)|0;b=i[c>>2];D=c,E=Kn(f)&b,i[D>>2]=E;A=(q|0)!=-1?i[n>>2]:A;c=t+(A>>>3&536870908)|0;b=i[c>>2];D=c,E=Kn(A)&b,i[D>>2]=E;u=-1;u=(r|0)!=-1?i[e>>2]:u;c=t+(u>>>3&536870908)|0;b=i[c>>2];D=c,E=Kn(u)&b,i[D>>2]=E;u=i[a+64>>2];c=i[a+68>>2];if((u|0)==c<<5){if((u+1|0)<=-1){break N}b=h;if(u>>>0<=1073741822){f=u+32&-32;c=c<<6;c=c>>>0>>0?f:c}else{c=2147483647}Qc(b,c);u=i[a+64>>2]}y=y+1|0;i[a+64>>2]=u+1;b=i[a+60>>2]+(u>>>3&536870908)|0;i[b>>2]=i[b>>2]|1<>2];if((b|0)!=i[a+80>>2]){i[b>>2]=z;i[a+76>>2]=b+4;break O}t=i[B>>2];n=b-t|0;e=n>>2;f=e+1|0;if(f>>>0>=1073741824){break M}c=n>>1;f=e>>>0<536870911?c>>>0>>0?f:c:1073741823;b=0;V:{if(!f){break V}if(f>>>0>=1073741824){break a}b=Dm(f<<2)}c=b+(e<<2)|0;i[c>>2]=z;f=b+(f<<2)|0;c=c+4|0;if((n|0)>=1){pn(b,t,n)}i[a+80>>2]=f;i[a+76>>2]=c;i[a+72>>2]=b;if(!t){break O}nn(t);break O}c=i[a+64>>2];e=i[a+68>>2];if((c|0)==e<<5){if((c+1|0)<=-1){break N}b=h;if(c>>>0<=1073741822){f=c+32&-32;c=e<<6;c=c>>>0>>0?f:c}else{c=2147483647}Qc(b,c);c=i[a+64>>2]}i[a+64>>2]=c+1;f=i[a+60>>2]+(c>>>3&536870908)|0;b=i[f>>2];D=f,E=Kn(c)&b,i[D>>2]=E;b=i[a+76>>2];if((b|0)!=i[a+80>>2]){i[b>>2]=r;i[a+76>>2]=b+4;break O}t=i[B>>2];n=b-t|0;e=n>>2;f=e+1|0;if(f>>>0>=1073741824){break M}c=n>>1;f=e>>>0<536870911?c>>>0>>0?f:c:1073741823;b=0;W:{if(!f){break W}if(f>>>0>=1073741824){break L}b=Dm(f<<2)}c=b+(e<<2)|0;i[c>>2]=r;f=b+(f<<2)|0;c=c+4|0;if((n|0)>=1){pn(b,t,n)}i[a+80>>2]=f;i[a+76>>2]=c;i[a+72>>2]=b;if(!t){break O}nn(t)}u=i[m+68>>2];if((u|0)!=i[m+64>>2]){continue}break}p=i[a+8>>2]}if(((i[p+4>>2]-i[p>>2]>>2>>>0)/3|0)!=(y|0)){break c}u=i[p+24>>2];d=i[p+28>>2]-u>>2;b=i[m+24>>2];f=i[m+28>>2];if((b|0)==(f|0)){break b}while(1){e=i[b>>2];y=d+ -1|0;X:{if(i[(y<<2)+u>>2]!=-1){c=d;break X}u=i[p+24>>2];while(1){y=d+ -2|0;c=d+ -1|0;d=c;if(i[(y<<2)+u>>2]==-1){continue}break}}if(y>>>0>=e>>>0){i[m>>2]=p;h=y<<2;d=i[h+u>>2];g[m+12|0]=1;i[m+8>>2]=d;i[m+4>>2]=d;if((d|0)!=-1){i[i[p>>2]+(d<<2)>>2]=e;Jd(m);d=i[m+8>>2];if((d|0)!=-1){while(1){i[i[i[a+8>>2]>>2]+(d<<2)>>2]=e;Jd(m);d=i[m+8>>2];if((d|0)!=-1){continue}break}}p=i[a+8>>2]}d=i[p+24>>2];h=d+h|0;if((e|0)!=-1){i[d+(e<<2)>>2]=i[h>>2]}i[h>>2]=-1;t=1<>2];n=d+(e>>>3&536870908)|0;h=n;e=d+(y>>>3&536870908)|0;d=1<>2];Y:{if(i[e>>2]&d){break Y}y=i[n>>2]&(t^-1)}i[h>>2]=y;i[e>>2]=i[e>>2]&(d^-1);c=c+ -1|0}d=c;b=b+4|0;if((f|0)==(b|0)){break c}u=i[p+24>>2];continue}}Sm();x()}Sm();x()}break a}d=-1}b=i[m+24>>2]}if(b){i[m+28>>2]=b;nn(b)}a=i[m+48>>2];if(a){while(1){b=i[a>>2];nn(a);a=b;if(a){continue}break}}a=i[m+40>>2];i[m+40>>2]=0;if(a){nn(a)}a=i[m+64>>2];if(a){i[m+68>>2]=a;nn(a)}J=m+96|0;return d}Ba(12220);x()}function mh(a,b,c,d,e){var f=0,k=0;f=J-32|0;J=f;i[b+32>>2]=d;i[b+40>>2]=c;i[b+4>>2]=e;jh(a,d,f+16|0);a:{if(i[a>>2]){break a}c=a+4|0;if(g[a+15|0]<=-1){nn(i[c>>2])}e=j[f+23|0];if((M[i[i[b>>2]+8>>2]](b)|0)!=(e|0)){b=Dm(64);i[f>>2]=b;i[f+4>>2]=50;i[f+8>>2]=-2147483584;g[b+50|0]=0;d=j[13665]|j[13666]<<8;g[b+48|0]=d;g[b+49|0]=d>>>8;d=j[13661]|j[13662]<<8|(j[13663]<<16|j[13664]<<24);e=j[13657]|j[13658]<<8|(j[13659]<<16|j[13660]<<24);g[b+40|0]=e;g[b+41|0]=e>>>8;g[b+42|0]=e>>>16;g[b+43|0]=e>>>24;g[b+44|0]=d;g[b+45|0]=d>>>8;g[b+46|0]=d>>>16;g[b+47|0]=d>>>24;d=j[13653]|j[13654]<<8|(j[13655]<<16|j[13656]<<24);e=j[13649]|j[13650]<<8|(j[13651]<<16|j[13652]<<24);g[b+32|0]=e;g[b+33|0]=e>>>8;g[b+34|0]=e>>>16;g[b+35|0]=e>>>24;g[b+36|0]=d;g[b+37|0]=d>>>8;g[b+38|0]=d>>>16;g[b+39|0]=d>>>24;d=j[13645]|j[13646]<<8|(j[13647]<<16|j[13648]<<24);e=j[13641]|j[13642]<<8|(j[13643]<<16|j[13644]<<24);g[b+24|0]=e;g[b+25|0]=e>>>8;g[b+26|0]=e>>>16;g[b+27|0]=e>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[13637]|j[13638]<<8|(j[13639]<<16|j[13640]<<24);e=j[13633]|j[13634]<<8|(j[13635]<<16|j[13636]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[13629]|j[13630]<<8|(j[13631]<<16|j[13632]<<24);e=j[13625]|j[13626]<<8|(j[13627]<<16|j[13628]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[13621]|j[13622]<<8|(j[13623]<<16|j[13624]<<24);e=j[13617]|j[13618]<<8|(j[13619]<<16|j[13620]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;Gm(c,f);if(g[f+11|0]>-1){break a}nn(i[f>>2]);break a}d=j[f+21|0];g[b+36|0]=d;k=j[f+22|0];g[b+37|0]=k;if((d+ -1&255)>>>0>=2){b=Dm(32);i[f>>2]=b;i[f+4>>2]=22;i[f+8>>2]=-2147483616;g[b+22|0]=0;d=j[13686]|j[13687]<<8|(j[13688]<<16|j[13689]<<24);e=j[13682]|j[13683]<<8|(j[13684]<<16|j[13685]<<24);g[b+14|0]=e;g[b+15|0]=e>>>8;g[b+16|0]=e>>>16;g[b+17|0]=e>>>24;g[b+18|0]=d;g[b+19|0]=d>>>8;g[b+20|0]=d>>>16;g[b+21|0]=d>>>24;d=j[13680]|j[13681]<<8|(j[13682]<<16|j[13683]<<24);e=j[13676]|j[13677]<<8|(j[13678]<<16|j[13679]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[13672]|j[13673]<<8|(j[13674]<<16|j[13675]<<24);e=j[13668]|j[13669]<<8|(j[13670]<<16|j[13671]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-5;Gm(c,f);if(g[f+11|0]>-1){break a}nn(i[f>>2]);break a}if(!((d|0)!=2|(e?2:3)>>>0>=k>>>0)){b=Dm(32);i[f>>2]=b;i[f+4>>2]=22;i[f+8>>2]=-2147483616;g[b+22|0]=0;d=j[13709]|j[13710]<<8|(j[13711]<<16|j[13712]<<24);e=j[13705]|j[13706]<<8|(j[13707]<<16|j[13708]<<24);g[b+14|0]=e;g[b+15|0]=e>>>8;g[b+16|0]=e>>>16;g[b+17|0]=e>>>24;g[b+18|0]=d;g[b+19|0]=d>>>8;g[b+20|0]=d>>>16;g[b+21|0]=d>>>24;d=j[13703]|j[13704]<<8|(j[13705]<<16|j[13706]<<24);e=j[13699]|j[13700]<<8|(j[13701]<<16|j[13702]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[13695]|j[13696]<<8|(j[13697]<<16|j[13698]<<24);e=j[13691]|j[13692]<<8|(j[13693]<<16|j[13694]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-5;Gm(c,f);if(g[f+11|0]>-1){break a}nn(i[f>>2]);break a}d=d<<8|k;h[i[b+32>>2]+38>>1]=d;b:{if((d&65535)>>>0<259|h[f+26>>1]>-1){break b}kh(a,b);if(i[a>>2]){break a}if(g[c+11|0]>-1){break b}nn(i[c>>2])}if(!(M[i[i[b>>2]+12>>2]](b)|0)){b=Dm(48);i[f>>2]=b;i[f+4>>2]=33;i[f+8>>2]=-2147483600;g[b+33|0]=0;g[b+32|0]=j[13746];d=j[13742]|j[13743]<<8|(j[13744]<<16|j[13745]<<24);e=j[13738]|j[13739]<<8|(j[13740]<<16|j[13741]<<24);g[b+24|0]=e;g[b+25|0]=e>>>8;g[b+26|0]=e>>>16;g[b+27|0]=e>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[13734]|j[13735]<<8|(j[13736]<<16|j[13737]<<24);e=j[13730]|j[13731]<<8|(j[13732]<<16|j[13733]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[13726]|j[13727]<<8|(j[13728]<<16|j[13729]<<24);e=j[13722]|j[13723]<<8|(j[13724]<<16|j[13725]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[13718]|j[13719]<<8|(j[13720]<<16|j[13721]<<24);e=j[13714]|j[13715]<<8|(j[13716]<<16|j[13717]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;Gm(c,f);if(g[f+11|0]>-1){break a}nn(i[f>>2]);break a}if(!(M[i[i[b>>2]+20>>2]](b)|0)){b=Dm(32);i[f>>2]=b;i[f+4>>2]=31;i[f+8>>2]=-2147483616;g[b+31|0]=0;d=j[13775]|j[13776]<<8|(j[13777]<<16|j[13778]<<24);e=j[13771]|j[13772]<<8|(j[13773]<<16|j[13774]<<24);g[b+23|0]=e;g[b+24|0]=e>>>8;g[b+25|0]=e>>>16;g[b+26|0]=e>>>24;g[b+27|0]=d;g[b+28|0]=d>>>8;g[b+29|0]=d>>>16;g[b+30|0]=d>>>24;d=j[13768]|j[13769]<<8|(j[13770]<<16|j[13771]<<24);e=j[13764]|j[13765]<<8|(j[13766]<<16|j[13767]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[13760]|j[13761]<<8|(j[13762]<<16|j[13763]<<24);e=j[13756]|j[13757]<<8|(j[13758]<<16|j[13759]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[13752]|j[13753]<<8|(j[13754]<<16|j[13755]<<24);e=j[13748]|j[13749]<<8|(j[13750]<<16|j[13751]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;Gm(c,f);if(g[f+11|0]>-1){break a}nn(i[f>>2]);break a}if(!(M[i[i[b>>2]+24>>2]](b)|0)){b=Dm(48);i[f>>2]=b;i[f+4>>2]=34;i[f+8>>2]=-2147483600;g[b+34|0]=0;d=j[13812]|j[13813]<<8;g[b+32|0]=d;g[b+33|0]=d>>>8;d=j[13808]|j[13809]<<8|(j[13810]<<16|j[13811]<<24);e=j[13804]|j[13805]<<8|(j[13806]<<16|j[13807]<<24);g[b+24|0]=e;g[b+25|0]=e>>>8;g[b+26|0]=e>>>16;g[b+27|0]=e>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[13800]|j[13801]<<8|(j[13802]<<16|j[13803]<<24);e=j[13796]|j[13797]<<8|(j[13798]<<16|j[13799]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[13792]|j[13793]<<8|(j[13794]<<16|j[13795]<<24);e=j[13788]|j[13789]<<8|(j[13790]<<16|j[13791]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[13784]|j[13785]<<8|(j[13786]<<16|j[13787]<<24);e=j[13780]|j[13781]<<8|(j[13782]<<16|j[13783]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;Gm(c,f);if(g[f+11|0]>-1){break a}nn(i[f>>2]);break a}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}J=f+32|0}function jh(a,b,c){var d=0,e=0,f=0,k=0,m=0,n=0;e=J-16|0;J=e;k=i[b+12>>2];d=i[b+20>>2];f=i[b+16>>2];m=f+5|0;if(m>>>0<5){d=d+1|0}a:{if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]>>0:0){b=Dm(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[13561]|j[13562]<<8|(j[13563]<<16|j[13564]<<24);d=j[13557]|j[13558]<<8|(j[13559]<<16|j[13560]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[3389];d=i[3388];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[3387];d=i[3386];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[3385];d=i[3384];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;Gm(a+4|0,e);if(g[e+11|0]>-1){break a}nn(i[e>>2]);break a}d=f+i[b>>2]|0;k=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);g[c|0]=k;g[c+1|0]=k>>>8;g[c+2|0]=k>>>16;g[c+3|0]=k>>>24;g[c+4|0]=j[d+4|0];k=b;d=i[b+20>>2];f=i[b+16>>2]+5|0;if(f>>>0<5){d=d+1|0}m=f;f=d;i[k+16>>2]=m;i[k+20>>2]=d;if(Nl(c,13566,5)){b=Dm(32);i[e>>2]=b;i[e+4>>2]=17;i[e+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[13588];c=j[13584]|j[13585]<<8|(j[13586]<<16|j[13587]<<24);d=j[13580]|j[13581]<<8|(j[13582]<<16|j[13583]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13576]|j[13577]<<8|(j[13578]<<16|j[13579]<<24);d=j[13572]|j[13573]<<8|(j[13574]<<16|j[13575]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;Gm(a+4|0,e);if(g[e+11|0]>-1){break a}nn(i[e>>2]);break a}d=i[b+12>>2];if((d|0)<(f|0)?1:(d|0)<=(f|0)?l[b+8>>2]<=m>>>0:0){b=Dm(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[13561]|j[13562]<<8|(j[13563]<<16|j[13564]<<24);d=j[13557]|j[13558]<<8|(j[13559]<<16|j[13560]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[3389];d=i[3388];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[3387];d=i[3386];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[3385];d=i[3384];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;Gm(a+4|0,e);if(g[e+11|0]>-1){break a}nn(i[e>>2]);break a}g[c+5|0]=j[m+i[b>>2]|0];d=i[b+20>>2];f=i[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}i[b+16>>2]=f;i[k+20>>2]=d;k=i[b+12>>2];if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]<=f>>>0:0){b=Dm(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[13561]|j[13562]<<8|(j[13563]<<16|j[13564]<<24);d=j[13557]|j[13558]<<8|(j[13559]<<16|j[13560]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[3389];d=i[3388];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[3387];d=i[3386];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[3385];d=i[3384];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;Gm(a+4|0,e);if(g[e+11|0]>-1){break a}nn(i[e>>2]);break a}g[c+6|0]=j[f+i[b>>2]|0];d=i[b+20>>2];f=i[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}i[b+16>>2]=f;i[b+20>>2]=d;k=i[b+12>>2];if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]<=f>>>0:0){b=Dm(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[13561]|j[13562]<<8|(j[13563]<<16|j[13564]<<24);d=j[13557]|j[13558]<<8|(j[13559]<<16|j[13560]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[3389];d=i[3388];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[3387];d=i[3386];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[3385];d=i[3384];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;Gm(a+4|0,e);if(g[e+11|0]>-1){break a}nn(i[e>>2]);break a}g[c+7|0]=j[f+i[b>>2]|0];d=i[b+20>>2];f=i[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}i[b+16>>2]=f;i[b+20>>2]=d;k=i[b+12>>2];if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]<=f>>>0:0){b=Dm(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[13561]|j[13562]<<8|(j[13563]<<16|j[13564]<<24);d=j[13557]|j[13558]<<8|(j[13559]<<16|j[13560]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[3389];d=i[3388];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[3387];d=i[3386];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[3385];d=i[3384];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;Gm(a+4|0,e);if(g[e+11|0]>-1){break a}nn(i[e>>2]);break a}g[c+8|0]=j[f+i[b>>2]|0];d=i[b+20>>2];f=d;n=i[b+16>>2];m=n+1|0;if(m>>>0<1){d=d+1|0}i[b+16>>2]=m;i[b+20>>2]=d;k=i[b+12>>2];d=f;f=n+3|0;if(f>>>0<3){d=d+1|0}if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]>>0:0){b=Dm(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[13561]|j[13562]<<8|(j[13563]<<16|j[13564]<<24);d=j[13557]|j[13558]<<8|(j[13559]<<16|j[13560]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[3389];d=i[3388];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[3387];d=i[3386];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[3385];d=i[3384];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;Gm(a+4|0,e);if(g[e+11|0]>-1){break a}nn(i[e>>2]);break a}f=c;c=m+i[b>>2]|0;h[f+10>>1]=j[c|0]|j[c+1|0]<<8;c=b;f=b;d=i[b+20>>2];b=i[b+16>>2]+2|0;if(b>>>0<2){d=d+1|0}i[f+16>>2]=b;i[c+20>>2]=d;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0}J=e+16|0}function jg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;q=J+ -64|0;J=q;i[a+132>>2]=0;if(i[a+148>>2]){c=i[a+144>>2];if(c){while(1){b=i[c>>2];nn(c);c=b;if(b){continue}break}}i[a+144>>2]=0;b=i[a+140>>2];if(b){c=0;while(1){i[i[a+136>>2]+(c<<2)>>2]=0;c=c+1|0;if((b|0)!=(c|0)){continue}break}}i[a+148>>2]=0}a:{b:{c=i[a+4>>2];e=j[c+36|0];b=e<<8|j[c+37|0];c:{if(b>>>0>513){break c}n=i[c+32>>2];if(b>>>0<=511){h=i[n+12>>2];d=i[n+20>>2];m=i[n+16>>2];b=m+4|0;if(b>>>0<4){d=d+1|0}f=b;b=d;if((h|0)<(b|0)?1:(h|0)<=(b|0)?l[n+8>>2]>>0:0){break b}d=m+i[n>>2]|0;d=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[n+16>>2]=f;i[n+20>>2]=b;i[a+132>>2]=d;break c}if(!Pf(1,q,n)){break b}c=i[a+4>>2];e=j[c+36|0];i[a+132>>2]=i[q>>2]}n=i[c+32>>2];d:{e:{f:{if((e&255)>>>0<=1){e=0;h=i[n+12>>2];b=i[n+20>>2];m=i[n+16>>2];d=m+4|0;if(d>>>0<4){b=b+1|0}f=d;d=b;if((h|0)<(b|0)?1:(h|0)<=(b|0)?l[n+8>>2]>>0:0){break a}b=m+i[n>>2]|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[q+60>>2]=b;i[n+16>>2]=f;i[n+20>>2]=d;i[a+156>>2]=b;u=a+156|0;break f}e=0;if(!Pf(1,q+60|0,n)){break a}c=i[a+4>>2];b=j[c+36|0];i[a+156>>2]=i[q+60>>2];u=a+156|0;if(b>>>0>1){break e}}h=i[c+32>>2];b=i[h+8>>2];m=i[h+12>>2];p=b;d=i[h+20>>2];f=i[h+16>>2];b=f+4|0;if(b>>>0<4){d=d+1|0}c=b;b=d;if((m|0)<(b|0)?1:(m|0)<=(b|0)?p>>>0>>0:0){break a}d=f+i[h>>2]|0;p=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[q+56>>2]=p;i[h+16>>2]=c;i[h+20>>2]=b;break d}if(!Pf(1,q+56|0,i[c+32>>2])){break a}p=i[q+56>>2]}if(p>>>0>1431655765|l[u>>2]>o(p,3)>>>0){break a}s=i[a+4>>2];m=i[s+32>>2];t=i[m+8>>2];r=i[m+16>>2];f=i[m+12>>2];c=f;b=i[m+20>>2];if((c|0)<(b|0)?1:(c|0)<=(b|0)?t>>>0<=r>>>0:0){break a}n=i[m>>2];v=j[n+r|0];d=b;h=r+1|0;if(h>>>0<1){d=d+1|0}c=m;i[c+16>>2]=h;i[c+20>>2]=d;g:{if(j[s+36|0]<=1){d=r+5|0;if(d>>>0<5){b=b+1|0}c=d;d=b;if((f|0)<(b|0)?1:(f|0)<=(b|0)?t>>>0>>0:0){break a}b=h+n|0;s=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[q+52>>2]=s;i[m+16>>2]=c;i[m+20>>2]=d;break g}if(!Pf(1,q+52|0,m)){break a}s=i[q+52>>2]}if(p>>>0>>0|p>>>0>((s>>>0)/3|0)+s>>>0){break a}b=i[a+4>>2];h=i[b+32>>2];h:{if(j[b+36|0]<=1){m=i[h+12>>2];d=i[h+20>>2];f=i[h+16>>2];b=f+4|0;if(b>>>0<4){d=d+1|0}c=b;b=d;if((m|0)<(b|0)?1:(m|0)<=(b|0)?l[h+8>>2]>>0:0){break a}d=f+i[h>>2]|0;t=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[q+48>>2]=t;i[h+16>>2]=c;i[h+20>>2]=b;break h}if(!Pf(1,q+48|0,h)){break a}t=i[q+48>>2]}if(t>>>0>s>>>0){break a}i[a+28>>2]=i[a+24>>2];b=Dm(88);wk(b);d=i[a+8>>2];i[a+8>>2]=b;r=a+8|0;if(d){Qf(r,d);if(!i[r>>2]){break a}}c=i[a+160>>2];i[a+164>>2]=c;i:{j:{if(i[a+168>>2]-c>>2>>>0>=p>>>0){break j}if(p>>>0>=1073741824){break i}b=p<<2;d=Dm(b);i[a+164>>2]=d;i[a+160>>2]=d;i[a+168>>2]=b+d;if(!c){break j}nn(c)}c=i[a+172>>2];i[a+176>>2]=c;k:{l:{if(i[a+180>>2]-c>>2>>>0>=p>>>0){break l}if(p>>>0>=1073741824){break k}b=p<<2;d=Dm(b);i[a+176>>2]=d;i[a+172>>2]=d;i[a+180>>2]=b+d;if(!c){break l}nn(c)}i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+40>>2]=i[a+36>>2];i[a- -64>>2]=0;i[a+52>>2]=i[a+48>>2];i[a+76>>2]=i[a+72>>2];n=a+216|0;e=i[a+216>>2];d=e;c=i[a+220>>2];if((d|0)!=(c|0)){while(1){b=i[c+ -12>>2];if(b){i[c+ -8>>2]=b;nn(b)}b=i[c+ -28>>2];if(b){i[c+ -24>>2]=b;nn(b)}b=c+ -144|0;d=i[c+ -40>>2];if(d){i[c+ -36>>2]=d;nn(d)}Rf(c+ -140|0);c=b;if((e|0)!=(b|0)){continue}break}d=i[n>>2]}i[a+220>>2]=e;b=(e-d|0)/144|0;m:{if(b>>>0>>0){Sf(n,v-b|0);break m}if(b>>>0<=v>>>0){break m}c=o(v,144)+d|0;if((c|0)!=(e|0)){while(1){b=i[e+ -12>>2];if(b){i[e+ -8>>2]=b;nn(b)}b=i[e+ -28>>2];if(b){i[e+ -24>>2]=b;nn(b)}b=e+ -144|0;d=i[e+ -40>>2];if(d){i[e+ -36>>2]=d;nn(d)}Rf(e+ -140|0);e=b;if((b|0)!=(c|0)){continue}break}}i[a+220>>2]=c}e=0;if(!Gk(i[r>>2],p,i[u>>2]+t|0)){break a}b=i[a+156>>2];g[q|0]=1;Jf(a+120|0,b+t|0,q);d=i[a+4>>2];b=k[d+36>>1];b=(b<<24|b<<8&16711680)>>>16|0;n:{if(b>>>0<=513){h=i[d+32>>2];o:{if(b>>>0<=511){m=i[h+12>>2];d=i[h+20>>2];f=i[h+16>>2];b=f+4|0;if(b>>>0<4){d=d+1|0}c=b;b=d;if((m|0)<(b|0)?1:(m|0)<=(b|0)?l[h+8>>2]>>0:0){break a}d=f+i[h>>2]|0;p=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[h+16>>2]=c;i[h+20>>2]=b;break o}if(!Pf(1,q+44|0,h)){break a}p=i[q+44>>2]}if(!p){break a}c=i[i[a+4>>2]+32>>2];d=i[c+8>>2];b=i[c+16>>2];f=d-b>>>0

>>0;b=i[c+12>>2]-(i[c+20>>2]+(d>>>0>>0)|0)|0;if((b|0)<0?1:(b|0)<=0?f:0){break a}c=zh(q);f=i[i[a+4>>2]+32>>2];b=i[f+16>>2];d=i[f+8>>2];Bh(c,(b+i[f>>2]|0)+p|0,(d-b|0)-p|0,k[f+38>>1]);d=Tf(a,c);if((d|0)==-1){break a}b=d;h=b>>31;break n}b=-1;h=-1;if((Tf(a,i[d+32>>2])|0)==-1){break a}}i[a+376>>2]=a;f=a+232|0;d=i[(M[i[i[a>>2]+32>>2]](a)|0)+32>>2];m=i[d>>2]+i[d+16>>2]|0;c=i[(M[i[i[a>>2]+32>>2]](a)|0)+32>>2];d=i[c+8>>2];c=i[c+16>>2];Bh(f,m,d-c|0,k[i[(M[i[i[a>>2]+32>>2]](a)|0)+32>>2]+38>>1]);w=a,y=M[i[i[a>>2]+36>>2]](a)|0,i[w+380>>2]=y;i[a+372>>2]=v;i[a+384>>2]=i[a+156>>2]+t;c=zh(q);p:{if(!kg(f,c)){break p}m=lg(a,s);if((m|0)==-1){break p}f=i[i[a+4>>2]+32>>2];d=i[c+16>>2];e=d+i[c>>2]|0;c=i[c+8>>2];Bh(f,e,c-d|0,k[f+38>>1]);c=i[a+4>>2];d=k[c+36>>1];f=(d<<24|d<<8&16711680)>>>16|0;if(f>>>0<=513){d=i[c+32>>2];c=d;p=c;e=h+i[c+20>>2]|0;d=b+i[c+16>>2]|0;if(d>>>0>>0){e=e+1|0}i[p+16>>2]=d;i[c+20>>2]=e}q:{if(i[a+220>>2]==i[a+216>>2]){break q}b=i[r>>2];d=i[b>>2];b=i[b+4>>2];r:{if(f>>>0>=513){if((b|0)==(d|0)){break q}c=0;break r}if((b|0)==(d|0)){break q}c=0;while(1){if(Wf(a,c)){c=c+3|0;b=i[r>>2];if(c>>>0>2]-i[b>>2]>>2>>>0){continue}break q}break}e=0;break p}while(1){if(Xf(a,c)){c=c+3|0;b=i[r>>2];if(c>>>0>2]-i[b>>2]>>2>>>0){continue}break q}break}e=0;break p}if(j[a+308|0]){Eh(a+272|0)}if(k[a+270>>1]<=513){Eh(a+328|0)}c=i[a+216>>2];if((c|0)!=i[a+220>>2]){u=0;while(1){e=o(u,144);Qk((e+c|0)+4|0,i[r>>2]);b=i[n>>2];f=b+e|0;c=i[f+132>>2];d=i[f+136>>2];if((c|0)!=(d|0)){Sk(f+4|0,i[c>>2]);c=c+4|0;if((d|0)!=(c|0)){while(1){Sk((e+i[n>>2]|0)+4|0,i[c>>2]);c=c+4|0;if((d|0)!=(c|0)){continue}break}}b=i[n>>2]}Rk((b+e|0)+4|0);u=u+1|0;c=i[a+216>>2];if(u>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}b=i[a+8>>2];Yf(a+184|0,i[b+28>>2]-i[b+24>>2]>>2);e=i[a+216>>2];if((e|0)!=i[a+220>>2]){c=0;while(1){b=o(c,144)+e|0;d=i[b+60>>2]-i[b+56>>2]>>2;f=b+104|0;b=i[a+8>>2];b=i[b+28>>2]-i[b+24>>2]>>2;Yf(f,(d|0)<(b|0)?b:d);c=c+1|0;e=i[a+216>>2];if(c>>>0<(i[a+220>>2]-e|0)/144>>>0){continue}break}}e=Zf(a,m)}break a}Ba(12220);x()}Ba(12220);x()}e=0}J=q- -64|0;return e|0}function eg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;q=J+ -64|0;J=q;i[a+132>>2]=0;if(i[a+148>>2]){c=i[a+144>>2];if(c){while(1){b=i[c>>2];nn(c);c=b;if(b){continue}break}}i[a+144>>2]=0;b=i[a+140>>2];if(b){c=0;while(1){i[i[a+136>>2]+(c<<2)>>2]=0;c=c+1|0;if((b|0)!=(c|0)){continue}break}}i[a+148>>2]=0}a:{b:{c=i[a+4>>2];e=j[c+36|0];b=e<<8|j[c+37|0];c:{if(b>>>0>513){break c}n=i[c+32>>2];if(b>>>0<=511){h=i[n+12>>2];d=i[n+20>>2];m=i[n+16>>2];b=m+4|0;if(b>>>0<4){d=d+1|0}f=b;b=d;if((h|0)<(b|0)?1:(h|0)<=(b|0)?l[n+8>>2]>>0:0){break b}d=m+i[n>>2]|0;d=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[n+16>>2]=f;i[n+20>>2]=b;i[a+132>>2]=d;break c}if(!Pf(1,q,n)){break b}c=i[a+4>>2];e=j[c+36|0];i[a+132>>2]=i[q>>2]}n=i[c+32>>2];d:{e:{f:{if((e&255)>>>0<=1){e=0;h=i[n+12>>2];b=i[n+20>>2];m=i[n+16>>2];d=m+4|0;if(d>>>0<4){b=b+1|0}f=d;d=b;if((h|0)<(b|0)?1:(h|0)<=(b|0)?l[n+8>>2]>>0:0){break a}b=m+i[n>>2]|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[q+60>>2]=b;i[n+16>>2]=f;i[n+20>>2]=d;i[a+156>>2]=b;u=a+156|0;break f}e=0;if(!Pf(1,q+60|0,n)){break a}c=i[a+4>>2];b=j[c+36|0];i[a+156>>2]=i[q+60>>2];u=a+156|0;if(b>>>0>1){break e}}h=i[c+32>>2];b=i[h+8>>2];m=i[h+12>>2];p=b;d=i[h+20>>2];f=i[h+16>>2];b=f+4|0;if(b>>>0<4){d=d+1|0}c=b;b=d;if((m|0)<(b|0)?1:(m|0)<=(b|0)?p>>>0>>0:0){break a}d=f+i[h>>2]|0;p=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[q+56>>2]=p;i[h+16>>2]=c;i[h+20>>2]=b;break d}if(!Pf(1,q+56|0,i[c+32>>2])){break a}p=i[q+56>>2]}if(p>>>0>1431655765|l[u>>2]>o(p,3)>>>0){break a}s=i[a+4>>2];m=i[s+32>>2];t=i[m+8>>2];r=i[m+16>>2];f=i[m+12>>2];c=f;b=i[m+20>>2];if((c|0)<(b|0)?1:(c|0)<=(b|0)?t>>>0<=r>>>0:0){break a}n=i[m>>2];v=j[n+r|0];d=b;h=r+1|0;if(h>>>0<1){d=d+1|0}c=m;i[c+16>>2]=h;i[c+20>>2]=d;g:{if(j[s+36|0]<=1){d=r+5|0;if(d>>>0<5){b=b+1|0}c=d;d=b;if((f|0)<(b|0)?1:(f|0)<=(b|0)?t>>>0>>0:0){break a}b=h+n|0;s=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[q+52>>2]=s;i[m+16>>2]=c;i[m+20>>2]=d;break g}if(!Pf(1,q+52|0,m)){break a}s=i[q+52>>2]}if(p>>>0>>0|p>>>0>((s>>>0)/3|0)+s>>>0){break a}b=i[a+4>>2];h=i[b+32>>2];h:{if(j[b+36|0]<=1){m=i[h+12>>2];d=i[h+20>>2];f=i[h+16>>2];b=f+4|0;if(b>>>0<4){d=d+1|0}c=b;b=d;if((m|0)<(b|0)?1:(m|0)<=(b|0)?l[h+8>>2]>>0:0){break a}d=f+i[h>>2]|0;t=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[q+48>>2]=t;i[h+16>>2]=c;i[h+20>>2]=b;break h}if(!Pf(1,q+48|0,h)){break a}t=i[q+48>>2]}if(t>>>0>s>>>0){break a}i[a+28>>2]=i[a+24>>2];b=Dm(88);wk(b);d=i[a+8>>2];i[a+8>>2]=b;r=a+8|0;if(d){Qf(r,d);if(!i[r>>2]){break a}}c=i[a+160>>2];i[a+164>>2]=c;i:{j:{if(i[a+168>>2]-c>>2>>>0>=p>>>0){break j}if(p>>>0>=1073741824){break i}b=p<<2;d=Dm(b);i[a+164>>2]=d;i[a+160>>2]=d;i[a+168>>2]=b+d;if(!c){break j}nn(c)}c=i[a+172>>2];i[a+176>>2]=c;k:{l:{if(i[a+180>>2]-c>>2>>>0>=p>>>0){break l}if(p>>>0>=1073741824){break k}b=p<<2;d=Dm(b);i[a+176>>2]=d;i[a+172>>2]=d;i[a+180>>2]=b+d;if(!c){break l}nn(c)}i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+40>>2]=i[a+36>>2];i[a- -64>>2]=0;i[a+52>>2]=i[a+48>>2];i[a+76>>2]=i[a+72>>2];n=a+216|0;e=i[a+216>>2];d=e;c=i[a+220>>2];if((d|0)!=(c|0)){while(1){b=i[c+ -12>>2];if(b){i[c+ -8>>2]=b;nn(b)}b=i[c+ -28>>2];if(b){i[c+ -24>>2]=b;nn(b)}b=c+ -144|0;d=i[c+ -40>>2];if(d){i[c+ -36>>2]=d;nn(d)}Rf(c+ -140|0);c=b;if((e|0)!=(b|0)){continue}break}d=i[n>>2]}i[a+220>>2]=e;b=(e-d|0)/144|0;m:{if(b>>>0>>0){Sf(n,v-b|0);break m}if(b>>>0<=v>>>0){break m}c=o(v,144)+d|0;if((c|0)!=(e|0)){while(1){b=i[e+ -12>>2];if(b){i[e+ -8>>2]=b;nn(b)}b=i[e+ -28>>2];if(b){i[e+ -24>>2]=b;nn(b)}b=e+ -144|0;d=i[e+ -40>>2];if(d){i[e+ -36>>2]=d;nn(d)}Rf(e+ -140|0);e=b;if((b|0)!=(c|0)){continue}break}}i[a+220>>2]=c}e=0;if(!Gk(i[r>>2],p,i[u>>2]+t|0)){break a}b=i[a+156>>2];g[q|0]=1;Jf(a+120|0,b+t|0,q);d=i[a+4>>2];b=k[d+36>>1];b=(b<<24|b<<8&16711680)>>>16|0;n:{if(b>>>0<=513){h=i[d+32>>2];o:{if(b>>>0<=511){m=i[h+12>>2];d=i[h+20>>2];f=i[h+16>>2];b=f+4|0;if(b>>>0<4){d=d+1|0}c=b;b=d;if((m|0)<(b|0)?1:(m|0)<=(b|0)?l[h+8>>2]>>0:0){break a}d=f+i[h>>2]|0;p=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[h+16>>2]=c;i[h+20>>2]=b;break o}if(!Pf(1,q+44|0,h)){break a}p=i[q+44>>2]}if(!p){break a}c=i[i[a+4>>2]+32>>2];d=i[c+8>>2];b=i[c+16>>2];f=d-b>>>0

>>0;b=i[c+12>>2]-(i[c+20>>2]+(d>>>0>>0)|0)|0;if((b|0)<0?1:(b|0)<=0?f:0){break a}c=zh(q);f=i[i[a+4>>2]+32>>2];b=i[f+16>>2];d=i[f+8>>2];Bh(c,(b+i[f>>2]|0)+p|0,(d-b|0)-p|0,k[f+38>>1]);d=Tf(a,c);if((d|0)==-1){break a}b=d;h=b>>31;break n}b=-1;h=-1;if((Tf(a,i[d+32>>2])|0)==-1){break a}}i[a+376>>2]=a;f=a+232|0;d=i[(M[i[i[a>>2]+32>>2]](a)|0)+32>>2];m=i[d>>2]+i[d+16>>2]|0;c=i[(M[i[i[a>>2]+32>>2]](a)|0)+32>>2];d=i[c+8>>2];c=i[c+16>>2];Bh(f,m,d-c|0,k[i[(M[i[i[a>>2]+32>>2]](a)|0)+32>>2]+38>>1]);w=a,y=M[i[i[a>>2]+36>>2]](a)|0,i[w+380>>2]=y;i[a+372>>2]=v;i[a+384>>2]=i[a+156>>2]+t;c=zh(q);p:{if(!fg(f,c)){break p}m=gg(a,s);if((m|0)==-1){break p}f=i[i[a+4>>2]+32>>2];d=i[c+16>>2];e=d+i[c>>2]|0;c=i[c+8>>2];Bh(f,e,c-d|0,k[f+38>>1]);c=i[a+4>>2];d=k[c+36>>1];f=(d<<24|d<<8&16711680)>>>16|0;if(f>>>0<=513){d=i[c+32>>2];c=d;p=c;e=h+i[c+20>>2]|0;d=b+i[c+16>>2]|0;if(d>>>0>>0){e=e+1|0}i[p+16>>2]=d;i[c+20>>2]=e}q:{if(i[a+220>>2]==i[a+216>>2]){break q}b=i[r>>2];d=i[b>>2];b=i[b+4>>2];r:{if(f>>>0>=513){if((b|0)==(d|0)){break q}c=0;break r}if((b|0)==(d|0)){break q}c=0;while(1){if(Wf(a,c)){c=c+3|0;b=i[r>>2];if(c>>>0>2]-i[b>>2]>>2>>>0){continue}break q}break}e=0;break p}while(1){if(Xf(a,c)){c=c+3|0;b=i[r>>2];if(c>>>0>2]-i[b>>2]>>2>>>0){continue}break q}break}e=0;break p}if(j[a+308|0]){Eh(a+272|0)}if(k[a+270>>1]<=513){Eh(a+328|0)}c=i[a+216>>2];if((c|0)!=i[a+220>>2]){u=0;while(1){e=o(u,144);Qk((e+c|0)+4|0,i[r>>2]);b=i[n>>2];f=b+e|0;c=i[f+132>>2];d=i[f+136>>2];if((c|0)!=(d|0)){Sk(f+4|0,i[c>>2]);c=c+4|0;if((d|0)!=(c|0)){while(1){Sk((e+i[n>>2]|0)+4|0,i[c>>2]);c=c+4|0;if((d|0)!=(c|0)){continue}break}}b=i[n>>2]}Rk((b+e|0)+4|0);u=u+1|0;c=i[a+216>>2];if(u>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}b=i[a+8>>2];Yf(a+184|0,i[b+28>>2]-i[b+24>>2]>>2);e=i[a+216>>2];if((e|0)!=i[a+220>>2]){c=0;while(1){b=o(c,144)+e|0;d=i[b+60>>2]-i[b+56>>2]>>2;f=b+104|0;b=i[a+8>>2];b=i[b+28>>2]-i[b+24>>2]>>2;Yf(f,(d|0)<(b|0)?b:d);c=c+1|0;e=i[a+216>>2];if(c>>>0<(i[a+220>>2]-e|0)/144>>>0){continue}break}}e=Zf(a,m)}break a}Ba(12220);x()}Ba(12220);x()}e=0}J=q- -64|0;return e|0}function Of(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;q=J+ -64|0;J=q;i[a+132>>2]=0;if(i[a+148>>2]){c=i[a+144>>2];if(c){while(1){b=i[c>>2];nn(c);c=b;if(b){continue}break}}i[a+144>>2]=0;b=i[a+140>>2];if(b){c=0;while(1){i[i[a+136>>2]+(c<<2)>>2]=0;c=c+1|0;if((b|0)!=(c|0)){continue}break}}i[a+148>>2]=0}a:{b:{c=i[a+4>>2];f=j[c+36|0];b=f<<8|j[c+37|0];c:{if(b>>>0>513){break c}n=i[c+32>>2];if(b>>>0<=511){h=i[n+12>>2];d=i[n+20>>2];m=i[n+16>>2];b=m+4|0;if(b>>>0<4){d=d+1|0}e=b;b=d;if((h|0)<(b|0)?1:(h|0)<=(b|0)?l[n+8>>2]>>0:0){break b}d=m+i[n>>2]|0;d=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[n+16>>2]=e;i[n+20>>2]=b;i[a+132>>2]=d;break c}if(!Pf(1,q,n)){break b}c=i[a+4>>2];f=j[c+36|0];i[a+132>>2]=i[q>>2]}n=i[c+32>>2];d:{e:{f:{if((f&255)>>>0<=1){f=0;h=i[n+12>>2];b=i[n+20>>2];m=i[n+16>>2];d=m+4|0;if(d>>>0<4){b=b+1|0}e=d;d=b;if((h|0)<(b|0)?1:(h|0)<=(b|0)?l[n+8>>2]>>0:0){break a}b=m+i[n>>2]|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[q+60>>2]=b;i[n+16>>2]=e;i[n+20>>2]=d;i[a+156>>2]=b;t=a+156|0;break f}f=0;if(!Pf(1,q+60|0,n)){break a}c=i[a+4>>2];b=j[c+36|0];i[a+156>>2]=i[q+60>>2];t=a+156|0;if(b>>>0>1){break e}}h=i[c+32>>2];b=i[h+8>>2];m=i[h+12>>2];p=b;d=i[h+20>>2];e=i[h+16>>2];b=e+4|0;if(b>>>0<4){d=d+1|0}c=b;b=d;if((m|0)<(b|0)?1:(m|0)<=(b|0)?p>>>0>>0:0){break a}d=e+i[h>>2]|0;p=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[q+56>>2]=p;i[h+16>>2]=c;i[h+20>>2]=b;break d}if(!Pf(1,q+56|0,i[c+32>>2])){break a}p=i[q+56>>2]}if(p>>>0>1431655765|l[t>>2]>o(p,3)>>>0){break a}r=i[a+4>>2];m=i[r+32>>2];s=i[m+8>>2];v=i[m+16>>2];e=i[m+12>>2];c=e;b=i[m+20>>2];if((c|0)<(b|0)?1:(c|0)<=(b|0)?s>>>0<=v>>>0:0){break a}n=i[m>>2];u=j[n+v|0];d=b;h=v+1|0;if(h>>>0<1){d=d+1|0}c=m;i[c+16>>2]=h;i[c+20>>2]=d;g:{if(j[r+36|0]<=1){d=v+5|0;if(d>>>0<5){b=b+1|0}c=d;d=b;if((e|0)<(b|0)?1:(e|0)<=(b|0)?s>>>0>>0:0){break a}b=h+n|0;s=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[q+52>>2]=s;i[m+16>>2]=c;i[m+20>>2]=d;break g}if(!Pf(1,q+52|0,m)){break a}s=i[q+52>>2]}if(p>>>0>>0|p>>>0>((s>>>0)/3|0)+s>>>0){break a}b=i[a+4>>2];h=i[b+32>>2];h:{if(j[b+36|0]<=1){m=i[h+12>>2];d=i[h+20>>2];e=i[h+16>>2];b=e+4|0;if(b>>>0<4){d=d+1|0}c=b;b=d;if((m|0)<(b|0)?1:(m|0)<=(b|0)?l[h+8>>2]>>0:0){break a}d=e+i[h>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[q+48>>2]=e;i[h+16>>2]=c;i[h+20>>2]=b;break h}if(!Pf(1,q+48|0,h)){break a}e=i[q+48>>2]}if(e>>>0>s>>>0){break a}i[a+28>>2]=i[a+24>>2];b=Dm(88);wk(b);d=i[a+8>>2];i[a+8>>2]=b;r=a+8|0;if(d){Qf(r,d);if(!i[r>>2]){break a}}c=i[a+160>>2];i[a+164>>2]=c;i:{j:{if(i[a+168>>2]-c>>2>>>0>=p>>>0){break j}if(p>>>0>=1073741824){break i}b=p<<2;d=Dm(b);i[a+164>>2]=d;i[a+160>>2]=d;i[a+168>>2]=b+d;if(!c){break j}nn(c)}c=i[a+172>>2];i[a+176>>2]=c;k:{l:{if(i[a+180>>2]-c>>2>>>0>=p>>>0){break l}if(p>>>0>=1073741824){break k}b=p<<2;d=Dm(b);i[a+176>>2]=d;i[a+172>>2]=d;i[a+180>>2]=b+d;if(!c){break l}nn(c)}i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+40>>2]=i[a+36>>2];i[a- -64>>2]=0;i[a+52>>2]=i[a+48>>2];i[a+76>>2]=i[a+72>>2];n=a+216|0;f=i[a+216>>2];d=f;c=i[a+220>>2];if((d|0)!=(c|0)){while(1){b=i[c+ -12>>2];if(b){i[c+ -8>>2]=b;nn(b)}b=i[c+ -28>>2];if(b){i[c+ -24>>2]=b;nn(b)}b=c+ -144|0;d=i[c+ -40>>2];if(d){i[c+ -36>>2]=d;nn(d)}Rf(c+ -140|0);c=b;if((f|0)!=(b|0)){continue}break}d=i[n>>2]}i[a+220>>2]=f;b=(f-d|0)/144|0;m:{if(b>>>0>>0){Sf(n,u-b|0);break m}if(b>>>0<=u>>>0){break m}c=o(u,144)+d|0;if((c|0)!=(f|0)){while(1){b=i[f+ -12>>2];if(b){i[f+ -8>>2]=b;nn(b)}b=i[f+ -28>>2];if(b){i[f+ -24>>2]=b;nn(b)}b=f+ -144|0;d=i[f+ -40>>2];if(d){i[f+ -36>>2]=d;nn(d)}Rf(f+ -140|0);f=b;if((b|0)!=(c|0)){continue}break}}i[a+220>>2]=c}f=0;if(!Gk(i[r>>2],p,i[t>>2]+e|0)){break a}b=i[a+156>>2];g[q|0]=1;Jf(a+120|0,b+e|0,q);d=i[a+4>>2];b=k[d+36>>1];b=(b<<24|b<<8&16711680)>>>16|0;n:{if(b>>>0<=513){h=i[d+32>>2];o:{if(b>>>0<=511){m=i[h+12>>2];d=i[h+20>>2];e=i[h+16>>2];b=e+4|0;if(b>>>0<4){d=d+1|0}c=b;b=d;if((m|0)<(b|0)?1:(m|0)<=(b|0)?l[h+8>>2]>>0:0){break a}d=e+i[h>>2]|0;p=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[h+16>>2]=c;i[h+20>>2]=b;break o}if(!Pf(1,q+44|0,h)){break a}p=i[q+44>>2]}if(!p){break a}c=i[i[a+4>>2]+32>>2];d=i[c+8>>2];b=i[c+16>>2];e=d-b>>>0

>>0;b=i[c+12>>2]-(i[c+20>>2]+(d>>>0>>0)|0)|0;if((b|0)<0?1:(b|0)<=0?e:0){break a}c=zh(q);e=i[i[a+4>>2]+32>>2];b=i[e+16>>2];d=i[e+8>>2];Bh(c,(b+i[e>>2]|0)+p|0,(d-b|0)-p|0,k[e+38>>1]);d=Tf(a,c);if((d|0)==-1){break a}b=d;h=b>>31;break n}b=-1;h=-1;if((Tf(a,i[d+32>>2])|0)==-1){break a}}i[a+376>>2]=a;e=a+232|0;d=i[(M[i[i[a>>2]+32>>2]](a)|0)+32>>2];m=i[d>>2]+i[d+16>>2]|0;c=i[(M[i[i[a>>2]+32>>2]](a)|0)+32>>2];d=i[c+8>>2];c=i[c+16>>2];Bh(e,m,d-c|0,k[i[(M[i[i[a>>2]+32>>2]](a)|0)+32>>2]+38>>1]);i[a+372>>2]=u;c=zh(q);p:{if(!Uf(e,c)){break p}m=Vf(a,s);if((m|0)==-1){break p}e=i[i[a+4>>2]+32>>2];d=i[c+16>>2];f=d+i[c>>2]|0;c=i[c+8>>2];Bh(e,f,c-d|0,k[e+38>>1]);c=i[a+4>>2];d=k[c+36>>1];e=(d<<24|d<<8&16711680)>>>16|0;if(e>>>0<=513){d=i[c+32>>2];c=d;p=c;f=h+i[c+20>>2]|0;d=b+i[c+16>>2]|0;if(d>>>0>>0){f=f+1|0}i[p+16>>2]=d;i[c+20>>2]=f}q:{if(i[a+220>>2]==i[a+216>>2]){break q}b=i[r>>2];d=i[b>>2];b=i[b+4>>2];r:{if(e>>>0>=513){if((b|0)==(d|0)){break q}c=0;break r}if((b|0)==(d|0)){break q}c=0;while(1){if(Wf(a,c)){c=c+3|0;b=i[r>>2];if(c>>>0>2]-i[b>>2]>>2>>>0){continue}break q}break}f=0;break p}while(1){if(Xf(a,c)){c=c+3|0;b=i[r>>2];if(c>>>0>2]-i[b>>2]>>2>>>0){continue}break q}break}f=0;break p}if(j[a+308|0]){Eh(a+272|0)}if(k[a+270>>1]<=513){Eh(a+328|0)}c=i[a+216>>2];if((c|0)!=i[a+220>>2]){t=0;while(1){f=o(t,144);Qk((f+c|0)+4|0,i[r>>2]);b=i[n>>2];e=b+f|0;c=i[e+132>>2];d=i[e+136>>2];if((c|0)!=(d|0)){Sk(e+4|0,i[c>>2]);c=c+4|0;if((d|0)!=(c|0)){while(1){Sk((f+i[n>>2]|0)+4|0,i[c>>2]);c=c+4|0;if((d|0)!=(c|0)){continue}break}}b=i[n>>2]}Rk((b+f|0)+4|0);t=t+1|0;c=i[a+216>>2];if(t>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}b=i[a+8>>2];Yf(a+184|0,i[b+28>>2]-i[b+24>>2]>>2);f=i[a+216>>2];if((f|0)!=i[a+220>>2]){c=0;while(1){b=o(c,144)+f|0;d=i[b+60>>2]-i[b+56>>2]>>2;e=b+104|0;b=i[a+8>>2];b=i[b+28>>2]-i[b+24>>2]>>2;Yf(e,(d|0)<(b|0)?b:d);c=c+1|0;f=i[a+216>>2];if(c>>>0<(i[a+220>>2]-f|0)/144>>>0){continue}break}}f=Zf(a,m)}break a}Ba(12220);x()}Ba(12220);x()}f=0}J=q- -64|0;return f|0}function sb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;g=J-32|0;J=g;f=i[a+12>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{if(f){if(f>>>0>=1073741824){break a}e=f<<2;h=Dm(e);i[g+8>>2]=h;d=e+h|0;i[g+16>>2]=d;qn(h,0,e);i[g+12>>2]=d}k=i[a+120>>2];e=i[k>>2];if(e){i[k+4>>2]=e;nn(e);i[k+8>>2]=0;i[k>>2]=0;i[k+4>>2]=0;f=i[a+12>>2];h=i[g+8>>2];d=i[g+12>>2]}i[k+4>>2]=d;i[k>>2]=h;i[k+8>>2]=i[g+16>>2];h=0;i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;b:{if(f){if(f>>>0>=1073741824){break b}e=f<<2;m=Dm(e);i[g+8>>2]=m;h=e+m|0;i[g+16>>2]=h;qn(m,0,e);i[g+12>>2]=h}d=i[a+132>>2];e=i[d>>2];if(e){i[d+4>>2]=e;nn(e);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;m=i[g+8>>2];h=i[g+12>>2]}i[d+4>>2]=h;i[d>>2]=m;i[d+8>>2]=i[g+16>>2];h=g+24|0;i[h>>2]=0;i[h+4>>2]=0;d=g+16|0;i[d>>2]=0;i[d+4>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;Nb(g+8|0);k=i[g+12>>2];e=0;c:{if((k|0)==i[d>>2]){break c}d=i[h>>2]+i[g+28>>2]|0;e=(d>>>0)/341|0;e=i[k+(e<<2)>>2]+o(d-o(e,341)|0,12)|0}i[e+4>>2]=0;i[e+8>>2]=0;i[e>>2]=b;n=1;e=i[g+28>>2];f=e+1|0;i[g+28>>2]=f;d:{if(f>>>0>>0){break d}while(1){e=i[g+12>>2];h=f+ -1|0;n=h+i[g+24>>2]|0;d=(n>>>0)/341|0;d=i[e+(d<<2)>>2]+o(n-o(d,341)|0,12)|0;u=i[d+8>>2];k=i[d+4>>2];t=i[d>>2];i[g+28>>2]=h;d=i[g+16>>2];e=d-e|0;if((e?o(e>>2,341)+ -1|0:0)-n>>>0>=682){nn(i[d+ -4>>2]);i[g+16>>2]=i[g+16>>2]+ -4}n=0;if(t>>>0>b>>>0){break d}e=i[a+120>>2];v=o(u,12);A=v+i[a+132>>2]|0;m=vl(a,A,k);if(m>>>0>=l[a+12>>2]){break d}z=e+v|0;e:{f:{w=m<<2;e=i[a>>2]-i[w+i[A>>2]>>2]|0;if(!e){if(!t){break f}q=0;while(1){e=0;f=i[c+16>>2];g:{if((f|0)==i[c+20>>2]){break g}while(1){k=o(e,20)+f|0;d=i[z>>2]+(i[k+4>>2]<<2)|0;s=i[k>>2];m=i[k+12>>2];h:{if(m>>>0>3){break h}h=i[c+12>>2];p=k+16|0;if(!i[p>>2]){d=h;break h}n=k+12|0;f=0;while(1){k=pn(h,(f<<2)+d|0,m);m=i[n>>2];h=k+m|0;f=f+1|0;if(f>>>0>2]){continue}break}d=i[c+12>>2]}f=i[c+28>>2];f=j[s+84|0]?f:i[i[s+68>>2]+(f<<2)>>2];if(f>>>0>=l[s+80>>2]){break g}k=i[s+40>>2];pn(i[i[s>>2]>>2]+o(k,f)|0,d,k);e=e+1|0;f=i[c+16>>2];if(e>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;q=q+1|0;if((t|0)!=(q|0)){continue}break}break f}i:{j:{k:{l:{if(t>>>0<=2){e=i[a+108>>2];i[e>>2]=m;h=1;f=i[a+12>>2];if(f>>>0>1){break l}break i}if(l[a+8>>2]>l[a+4>>2]){break d}k=1<>2];q=u+1|0;s=o(q,12);d=e+s|0;if((d|0)!=(z|0)){ua(d,i[z>>2],i[z+4>>2]);e=i[a+120>>2]}e=w+i[e+s>>2]|0;i[e>>2]=k+i[e>>2];p=r(t)^31;n=i[a+32>>2];k=32-n|0;m:{if((p|0)<=(k|0)){h=i[a+28>>2];if((h|0)==i[a+20>>2]){k=0;break m}d=i[h>>2];e=n+p|0;i[a+32>>2]=e;k=d<>>32-p|0;if((e|0)!=32){break m}i[a+32>>2]=0;i[a+28>>2]=h+4;break m}h=i[a+28>>2];e=h+4|0;if((e|0)==i[a+20>>2]){k=0;break m}d=i[h>>2];i[a+28>>2]=e;e=p-k|0;i[a+32>>2]=e;k=i[h+4>>2]>>>32-e|d<>>32-p}d=(t>>>1|0)-k|0;k=t-d|0;n:{if((k|0)==(d|0)){e=d;break n}p=i[a+88>>2];if((p|0)==i[a+80>>2]){break k}n=i[p>>2];h=i[a+92>>2];e=h+1|0;i[a+92>>2]=e;h=n&-2147483648>>>h;o:{if((e|0)==32){i[a+92>>2]=0;i[a+88>>2]=p+4;if(h){break o}break k}if(!h){break k}}e=k}k=d;break j}while(1){m=(f+ -1|0)==(m|0)?0:m+1|0;i[e+(h<<2)>>2]=m;h=h+1|0;f=i[a+12>>2];if(h>>>0>>0){continue}break}break i}e=d}p=i[a+132>>2];n=p+v|0;h=i[n>>2];d=h+w|0;i[d>>2]=i[d>>2]+1;ua(p+s|0,h,i[n+4>>2]);if(k){d=i[g+28>>2]+i[g+24>>2]|0;n=i[g+16>>2];f=i[g+12>>2];h=n-f|0;if((d|0)==((h?o(h>>2,341)+ -1|0:0)|0)){Nb(g+8|0);n=i[g+16>>2];f=i[g+12>>2];d=i[g+24>>2]+i[g+28>>2]|0}if((f|0)==(n|0)){d=0}else{h=(d>>>0)/341|0;d=i[(h<<2)+f>>2]+o(d-o(h,341)|0,12)|0}i[d+8>>2]=u;i[d+4>>2]=m;i[d>>2]=k;i[g+28>>2]=i[g+28>>2]+1}if(!e){break f}h=i[g+28>>2]+i[g+24>>2]|0;d=i[g+16>>2];f=i[g+12>>2];k=d-f|0;if((h|0)==((k?o(k>>2,341)+ -1|0:0)|0)){Nb(g+8|0);h=i[g+24>>2]+i[g+28>>2]|0;f=i[g+12>>2];d=i[g+16>>2]}if((d|0)==(f|0)){d=0}else{d=(h>>>0)/341|0;d=i[(d<<2)+f>>2]+o(h-o(d,341)|0,12)|0}i[d+8>>2]=q;i[d+4>>2]=m;i[d>>2]=e;f=i[g+28>>2]+1|0;i[g+28>>2]=f;break e}if(!t){break f}v=0;while(1){if(f){p=i[z>>2];n=i[A>>2];u=i[a+96>>2];h=i[a+108>>2];f=0;while(1){w=h+(f<<2)|0;i[u+(i[w>>2]<<2)>>2]=0;e=i[w>>2]<<2;y=i[a>>2]-i[e+n>>2]|0;p:{if(!y){break p}m=e+u|0;s=i[a+52>>2];k=32-s|0;if((y|0)<=(k|0)){d=i[a+48>>2];if((d|0)==i[a+40>>2]){i[m>>2]=0;break p}i[m>>2]=i[d>>2]<>>32-y;e=y+i[a+52>>2]|0;i[a+52>>2]=e;if((e|0)!=32){break p}i[a+52>>2]=0;i[a+48>>2]=d+4;break p}q=i[a+48>>2];e=q+4|0;if((e|0)==i[a+40>>2]){i[m>>2]=0;break p}d=i[q>>2];i[a+48>>2]=e;e=y-k|0;i[a+52>>2]=e;i[m>>2]=i[q+4>>2]>>>32-e|d<>>32-y}d=i[w>>2]<<2;e=d+u|0;i[e>>2]=i[e>>2]|i[d+p>>2];f=f+1|0;if(f>>>0>2]){continue}break}}e=0;f=i[c+16>>2];q:{if((f|0)==i[c+20>>2]){break q}while(1){k=o(e,20)+f|0;d=i[a+96>>2]+(i[k+4>>2]<<2)|0;q=i[k>>2];m=i[k+12>>2];r:{if(m>>>0>3){break r}h=i[c+12>>2];p=k+16|0;if(!i[p>>2]){d=h;break r}n=k+12|0;f=0;while(1){k=pn(h,(f<<2)+d|0,m);m=i[n>>2];h=k+m|0;f=f+1|0;if(f>>>0>2]){continue}break}d=i[c+12>>2]}f=i[c+28>>2];f=j[q+84|0]?f:i[i[q+68>>2]+(f<<2)>>2];if(f>>>0>=l[q+80>>2]){break q}k=i[q+40>>2];pn(i[i[q>>2]>>2]+o(k,f)|0,d,k);e=e+1|0;f=i[c+16>>2];if(e>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;v=v+1|0;if((v|0)==(t|0)){break f}f=i[a+12>>2];continue}}f=i[g+28>>2]}if(f){continue}break}n=1}b=i[g+24>>2];a=(b>>>0)/341|0;f=i[g+12>>2];h=i[g+16>>2];s:{if((f|0)==(h|0)){break s}k=(a<<2)+f|0;d=i[k>>2];m=d+o(b-o(a,341)|0,12)|0;b=b+i[g+28>>2]|0;a=(b>>>0)/341|0;a=i[(a<<2)+f>>2]+o(b-o(a,341)|0,12)|0;if((m|0)==(a|0)){break s}while(1){m=m+12|0;if((m-d|0)==4092){d=i[k+4>>2];m=d;k=k+4|0}if((a|0)!=(m|0)){continue}break}}i[g+28>>2]=0;m=h-f>>2;if(m>>>0>2){while(1){nn(i[f>>2]);f=i[g+12>>2]+4|0;i[g+12>>2]=f;h=i[g+16>>2];m=h-f>>2;if(m>>>0>2){continue}break}}d=170;t:{switch(m+ -1|0){case 1:d=341;case 0:i[g+24>>2]=d;break;default:break t}}u:{if((f|0)==(h|0)){break u}while(1){nn(i[f>>2]);f=f+4|0;if((h|0)!=(f|0)){continue}break}b=i[g+16>>2];a=i[g+12>>2];if((b|0)==(a|0)){break u}i[g+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[g+8>>2];if(a){nn(a)}J=g+32|0;return n}Sm();x()}Sm();x()}function ub(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;g=J-32|0;J=g;f=i[a+12>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{if(f){if(f>>>0>=1073741824){break a}e=f<<2;h=Dm(e);i[g+8>>2]=h;d=e+h|0;i[g+16>>2]=d;qn(h,0,e);i[g+12>>2]=d}k=i[a+120>>2];e=i[k>>2];if(e){i[k+4>>2]=e;nn(e);i[k+8>>2]=0;i[k>>2]=0;i[k+4>>2]=0;f=i[a+12>>2];h=i[g+8>>2];d=i[g+12>>2]}i[k+4>>2]=d;i[k>>2]=h;i[k+8>>2]=i[g+16>>2];h=0;i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;b:{if(f){if(f>>>0>=1073741824){break b}e=f<<2;m=Dm(e);i[g+8>>2]=m;h=e+m|0;i[g+16>>2]=h;qn(m,0,e);i[g+12>>2]=h}d=i[a+132>>2];e=i[d>>2];if(e){i[d+4>>2]=e;nn(e);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;m=i[g+8>>2];h=i[g+12>>2]}i[d+4>>2]=h;i[d>>2]=m;i[d+8>>2]=i[g+16>>2];h=g+24|0;i[h>>2]=0;i[h+4>>2]=0;d=g+16|0;i[d>>2]=0;i[d+4>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;Nb(g+8|0);k=i[g+12>>2];e=0;c:{if((k|0)==i[d>>2]){break c}d=i[h>>2]+i[g+28>>2]|0;e=(d>>>0)/341|0;e=i[k+(e<<2)>>2]+o(d-o(e,341)|0,12)|0}i[e+4>>2]=0;i[e+8>>2]=0;i[e>>2]=b;e=1;d=i[g+28>>2];f=d+1|0;i[g+28>>2]=f;d:{if(f>>>0>>0){break d}while(1){e=i[g+12>>2];k=f+ -1|0;n=k+i[g+24>>2]|0;d=(n>>>0)/341|0;d=i[e+(d<<2)>>2]+o(n-o(d,341)|0,12)|0;v=i[d+8>>2];h=i[d+4>>2];t=i[d>>2];i[g+28>>2]=k;d=i[g+16>>2];e=d-e|0;if((e?o(e>>2,341)+ -1|0:0)-n>>>0>=682){nn(i[d+ -4>>2]);i[g+16>>2]=i[g+16>>2]+ -4}if(t>>>0>b>>>0){e=0;break d}e=0;d=i[a+12>>2];m=(h|0)==(d+ -1|0)?0:h+1|0;if(m>>>0>=d>>>0){break d}k=i[a+120>>2];u=o(v,12);y=k+u|0;e:{f:{q=m<<2;s=u+i[a+132>>2]|0;d=i[a>>2]-i[q+i[s>>2]>>2]|0;if(!d){if(!t){break f}p=0;while(1){q=0;f=i[c+16>>2];g:{if((f|0)==i[c+20>>2]){break g}while(1){e=o(q,20)+f|0;d=i[y>>2]+(i[e+4>>2]<<2)|0;s=i[e>>2];m=i[e+12>>2];h:{if(m>>>0>3){break h}h=i[c+12>>2];n=e+16|0;if(!i[n>>2]){d=h;break h}k=e+12|0;f=0;while(1){e=pn(h,(f<<2)+d|0,m);m=i[k>>2];h=e+m|0;f=f+1|0;if(f>>>0>2]){continue}break}d=i[c+12>>2]}f=i[c+28>>2];f=j[s+84|0]?f:i[i[s+68>>2]+(f<<2)>>2];if(f>>>0>=l[s+80>>2]){break g}e=i[s+40>>2];pn(i[i[s>>2]>>2]+o(e,f)|0,d,e);q=q+1|0;f=i[c+16>>2];if(q>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((t|0)!=(p|0)){continue}break}break f}i:{j:{k:{l:{if(t>>>0<=2){e=i[a+108>>2];i[e>>2]=m;h=1;f=i[a+12>>2];if(f>>>0>1){break l}break i}if(l[a+8>>2]>l[a+4>>2]){break d}e=u+12|0;ua(e+k|0,i[y>>2],i[y+4>>2]);e=q+i[e+i[a+120>>2]>>2]|0;i[e>>2]=i[e>>2]+(1<>2];k=32-n|0;m:{if((p|0)<=(k|0)){h=i[a+28>>2];if((h|0)==i[a+20>>2]){k=0;break m}d=i[h>>2];e=p+n|0;i[a+32>>2]=e;k=d<>>32-p|0;if((e|0)!=32){break m}i[a+32>>2]=0;i[a+28>>2]=h+4;break m}h=i[a+28>>2];e=h+4|0;if((e|0)==i[a+20>>2]){k=0;break m}d=i[h>>2];i[a+28>>2]=e;e=p-k|0;i[a+32>>2]=e;k=i[h+4>>2]>>>32-e|d<>>32-p}s=v+1|0;d=(t>>>1|0)-k|0;k=t-d|0;n:{if((k|0)==(d|0)){e=d;break n}p=i[a+88>>2];if((p|0)==i[a+80>>2]){break k}n=i[p>>2];h=i[a+92>>2];e=h+1|0;i[a+92>>2]=e;h=n&-2147483648>>>h;o:{if((e|0)==32){i[a+92>>2]=0;i[a+88>>2]=p+4;if(h){break o}break k}if(!h){break k}}e=k}k=d;break j}while(1){m=(f+ -1|0)==(m|0)?0:m+1|0;i[e+(h<<2)>>2]=m;h=h+1|0;f=i[a+12>>2];if(h>>>0>>0){continue}break}break i}e=d}p=i[a+132>>2];n=p+u|0;h=i[n>>2];d=h+q|0;i[d>>2]=i[d>>2]+1;ua(p+o(s,12)|0,h,i[n+4>>2]);if(k){h=i[g+28>>2]+i[g+24>>2]|0;n=i[g+16>>2];f=i[g+12>>2];d=n-f|0;if((h|0)==((d?o(d>>2,341)+ -1|0:0)|0)){Nb(g+8|0);f=i[g+12>>2];n=i[g+16>>2];h=i[g+24>>2]+i[g+28>>2]|0}if((f|0)==(n|0)){d=0}else{d=(h>>>0)/341|0;d=i[(d<<2)+f>>2]+o(h-o(d,341)|0,12)|0}i[d+8>>2]=v;i[d+4>>2]=m;i[d>>2]=k;i[g+28>>2]=i[g+28>>2]+1}if(!e){break f}h=i[g+28>>2]+i[g+24>>2]|0;d=i[g+16>>2];f=i[g+12>>2];k=d-f|0;if((h|0)==((k?o(k>>2,341)+ -1|0:0)|0)){Nb(g+8|0);f=i[g+12>>2];h=i[g+24>>2]+i[g+28>>2]|0;d=i[g+16>>2]}if((d|0)==(f|0)){d=0}else{d=(h>>>0)/341|0;d=i[(d<<2)+f>>2]+o(h-o(d,341)|0,12)|0}i[d+8>>2]=s;i[d+4>>2]=m;i[d>>2]=e;f=i[g+28>>2]+1|0;i[g+28>>2]=f;break e}if(!t){break f}A=0;while(1){if(f){p=i[y>>2];n=i[s>>2];m=i[a+96>>2];h=i[a+108>>2];f=0;while(1){v=h+(f<<2)|0;i[m+(i[v>>2]<<2)>>2]=0;e=i[v>>2]<<2;w=i[a>>2]-i[e+n>>2]|0;p:{if(!w){break p}z=e+m|0;u=i[a+52>>2];k=32-u|0;if((w|0)<=(k|0)){d=i[a+48>>2];if((d|0)==i[a+40>>2]){i[z>>2]=0;break p}i[z>>2]=i[d>>2]<>>32-w;e=w+i[a+52>>2]|0;i[a+52>>2]=e;if((e|0)!=32){break p}i[a+52>>2]=0;i[a+48>>2]=d+4;break p}q=i[a+48>>2];e=q+4|0;if((e|0)==i[a+40>>2]){i[z>>2]=0;break p}d=i[q>>2];i[a+48>>2]=e;e=w-k|0;i[a+52>>2]=e;i[z>>2]=i[q+4>>2]>>>32-e|d<>>32-w}d=i[v>>2]<<2;e=d+m|0;i[e>>2]=i[e>>2]|i[d+p>>2];f=f+1|0;if(f>>>0>2]){continue}break}}q=0;f=i[c+16>>2];q:{if((f|0)==i[c+20>>2]){break q}while(1){e=o(q,20)+f|0;d=i[a+96>>2]+(i[e+4>>2]<<2)|0;p=i[e>>2];m=i[e+12>>2];r:{if(m>>>0>3){break r}h=i[c+12>>2];n=e+16|0;if(!i[n>>2]){d=h;break r}k=e+12|0;f=0;while(1){e=pn(h,(f<<2)+d|0,m);m=i[k>>2];h=e+m|0;f=f+1|0;if(f>>>0>2]){continue}break}d=i[c+12>>2]}f=i[c+28>>2];f=j[p+84|0]?f:i[i[p+68>>2]+(f<<2)>>2];if(f>>>0>=l[p+80>>2]){break q}e=i[p+40>>2];pn(i[i[p>>2]>>2]+o(e,f)|0,d,e);q=q+1|0;f=i[c+16>>2];if(q>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;A=A+1|0;if((A|0)==(t|0)){break f}f=i[a+12>>2];continue}}f=i[g+28>>2]}if(f){continue}break}e=1}b=i[g+24>>2];a=(b>>>0)/341|0;f=i[g+12>>2];h=i[g+16>>2];s:{if((f|0)==(h|0)){break s}k=(a<<2)+f|0;d=i[k>>2];m=d+o(b-o(a,341)|0,12)|0;b=b+i[g+28>>2]|0;a=(b>>>0)/341|0;a=i[(a<<2)+f>>2]+o(b-o(a,341)|0,12)|0;if((m|0)==(a|0)){break s}while(1){m=m+12|0;if((m-d|0)==4092){d=i[k+4>>2];m=d;k=k+4|0}if((a|0)!=(m|0)){continue}break}}i[g+28>>2]=0;m=h-f>>2;if(m>>>0>2){while(1){nn(i[f>>2]);f=i[g+12>>2]+4|0;i[g+12>>2]=f;h=i[g+16>>2];m=h-f>>2;if(m>>>0>2){continue}break}}d=170;t:{switch(m+ -1|0){case 1:d=341;case 0:i[g+24>>2]=d;break;default:break t}}u:{if((f|0)==(h|0)){break u}while(1){nn(i[f>>2]);f=f+4|0;if((h|0)!=(f|0)){continue}break}b=i[g+16>>2];a=i[g+12>>2];if((b|0)==(a|0)){break u}i[g+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[g+8>>2];if(a){nn(a)}J=g+32|0;return e}Sm();x()}Sm();x()}function xb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;g=J-32|0;J=g;d=i[a+12>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{if(d){if(d>>>0>=1073741824){break a}h=d<<2;e=Dm(h);i[g+8>>2]=e;f=e+h|0;i[g+16>>2]=f;qn(e,0,h);i[g+12>>2]=f}h=i[a+628>>2];k=i[h>>2];if(k){i[h+4>>2]=k;nn(k);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;d=i[a+12>>2];e=i[g+8>>2];f=i[g+12>>2]}i[h+4>>2]=f;i[h>>2]=e;i[h+8>>2]=i[g+16>>2];e=0;i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;h=0;b:{if(d){if(d>>>0>=1073741824){break b}f=d<<2;h=Dm(f);i[g+8>>2]=h;e=f+h|0;i[g+16>>2]=e;qn(h,0,f);i[g+12>>2]=e}f=i[a+640>>2];d=i[f>>2];if(d){i[f+4>>2]=d;nn(d);i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;h=i[g+8>>2];e=i[g+12>>2]}i[f+4>>2]=e;i[f>>2]=h;i[f+8>>2]=i[g+16>>2];e=g+24|0;i[e>>2]=0;i[e+4>>2]=0;d=g+16|0;i[d>>2]=0;i[d+4>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;Nb(g+8|0);h=i[d>>2];d=i[g+12>>2];f=0;c:{if((h|0)==(d|0)){break c}f=i[e>>2]+i[g+28>>2]|0;e=(f>>>0)/341|0;f=i[d+(e<<2)>>2]+o(f-o(e,341)|0,12)|0}i[f+4>>2]=0;i[f+8>>2]=0;i[f>>2]=b;k=1;f=i[g+28>>2];d=f+1|0;i[g+28>>2]=d;d:{if(d>>>0>>0){break d}while(1){h=i[g+12>>2];d=d+ -1|0;f=d+i[g+24>>2]|0;e=(f>>>0)/341|0;e=i[h+(e<<2)>>2]+o(f-o(e,341)|0,12)|0;n=i[e+8>>2];p=i[e+4>>2];m=i[e>>2];i[g+28>>2]=d;e=i[g+16>>2];d=e-h|0;if((d?o(d>>2,341)+ -1|0:0)-f>>>0>=682){nn(i[e+ -4>>2]);i[g+16>>2]=i[g+16>>2]+ -4}k=0;if(m>>>0>b>>>0){break d}f=i[a+628>>2];s=o(n,12);t=s+i[a+640>>2]|0;h=vl(a,t,p);if(h>>>0>=l[a+12>>2]){break d}p=f+s|0;e:{f:{q=h<<2;f=i[a>>2]-i[q+i[t>>2]>>2]|0;if(!f){if(!m){break f}s=0;while(1){k=0;d=i[c+16>>2];g:{if((d|0)==i[c+20>>2]){break g}while(1){d=o(k,20)+d|0;f=i[p>>2]+(i[d+4>>2]<<2)|0;n=i[d>>2];h=i[d+12>>2];h:{if(h>>>0>3){break h}e=i[c+12>>2];t=d+16|0;if(!i[t>>2]){f=e;break h}q=d+12|0;d=0;while(1){e=pn(e,(d<<2)+f|0,h);h=i[q>>2];e=e+h|0;d=d+1|0;if(d>>>0>2]){continue}break}f=i[c+12>>2]}d=i[c+28>>2];d=j[n+84|0]?d:i[i[n+68>>2]+(d<<2)>>2];if(d>>>0>=l[n+80>>2]){break g}e=i[n+40>>2];pn(i[i[n>>2]>>2]+o(e,d)|0,f,e);k=k+1|0;d=i[c+16>>2];if(k>>>0<(i[c+20>>2]-d|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;s=s+1|0;if((m|0)!=(s|0)){continue}break}break f}i:{j:{k:{l:{if(m>>>0<=2){f=i[a+616>>2];i[f>>2]=h;e=1;d=i[a+12>>2];if(d>>>0>1){break l}break i}if(l[a+8>>2]>l[a+4>>2]){break d}e=1<>2];t=n+1|0;k=o(t,12);d=f+k|0;if((d|0)!=(p|0)){ua(d,i[p>>2],i[p+4>>2]);f=i[a+628>>2]}f=q+i[f+k>>2]|0;i[f>>2]=e+i[f>>2];e=0;d=0;f=r(m)^31;if(f){while(1){e=Ce(((d<<4)+a|0)+16|0)|e<<1;d=d+1|0;if((f|0)!=(d|0)){continue}break}}e=(m>>>1|0)-e|0;d=m-e|0;m:{if((d|0)==(e|0)){f=e;break m}f=i[a+596>>2];if((f|0)==i[a+588>>2]){break k}m=i[f>>2];p=i[a+600>>2];u=p+1|0;i[a+600>>2]=u;m=m&-2147483648>>>p;n:{if((u|0)==32){i[a+600>>2]=0;i[a+596>>2]=f+4;if(m){break n}break k}if(!m){break k}}f=d}d=e;break j}while(1){h=(d+ -1|0)==(h|0)?0:h+1|0;i[f+(e<<2)>>2]=h;e=e+1|0;d=i[a+12>>2];if(e>>>0>>0){continue}break}break i}f=e}e=i[a+640>>2];m=e+s|0;p=i[m>>2];s=p+q|0;i[s>>2]=i[s>>2]+1;ua(e+k|0,p,i[m+4>>2]);if(d){m=i[g+28>>2]+i[g+24>>2]|0;p=i[g+16>>2];e=i[g+12>>2];k=p-e|0;if((m|0)==((k?o(k>>2,341)+ -1|0:0)|0)){Nb(g+8|0);m=i[g+24>>2]+i[g+28>>2]|0;p=i[g+16>>2];e=i[g+12>>2]}k=0;o:{if((e|0)==(p|0)){break o}k=e;e=(m>>>0)/341|0;k=i[k+(e<<2)>>2]+o(m-o(e,341)|0,12)|0}i[k+8>>2]=n;i[k+4>>2]=h;i[k>>2]=d;i[g+28>>2]=i[g+28>>2]+1}if(!f){break f}e=i[g+28>>2]+i[g+24>>2]|0;m=i[g+16>>2];d=i[g+12>>2];k=m-d|0;if((e|0)==((k?o(k>>2,341)+ -1|0:0)|0)){Nb(g+8|0);m=i[g+16>>2];d=i[g+12>>2];e=i[g+24>>2]+i[g+28>>2]|0}if((d|0)==(m|0)){e=0}else{k=d;d=(e>>>0)/341|0;e=i[k+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[e+8>>2]=t;i[e+4>>2]=h;i[e>>2]=f;d=i[g+28>>2]+1|0;i[g+28>>2]=d;break e}if(!m){break f}s=0;while(1){if(d){u=i[p>>2];y=i[t>>2];h=i[a+604>>2];z=i[a+616>>2];d=0;while(1){k=z+(d<<2)|0;i[h+(i[k>>2]<<2)>>2]=0;e=i[k>>2]<<2;f=i[a>>2]-i[e+y>>2]|0;p:{if(!f){break p}e=e+h|0;n=i[a+560>>2];v=32-n|0;if((f|0)<=(v|0)){q=i[a+556>>2];if((q|0)==i[a+548>>2]){i[e>>2]=0;break p}i[e>>2]=i[q>>2]<>>32-f;f=f+i[a+560>>2]|0;i[a+560>>2]=f;if((f|0)!=32){break p}i[a+560>>2]=0;i[a+556>>2]=q+4;break p}q=i[a+556>>2];w=q+4|0;if((w|0)==i[a+548>>2]){i[e>>2]=0;break p}A=i[q>>2];i[a+556>>2]=w;v=f-v|0;i[a+560>>2]=v;i[e>>2]=i[q+4>>2]>>>32-v|A<>>32-f}f=i[k>>2]<<2;e=f+h|0;i[e>>2]=i[e>>2]|i[f+u>>2];d=d+1|0;if(d>>>0>2]){continue}break}}k=0;d=i[c+16>>2];q:{if((d|0)==i[c+20>>2]){break q}while(1){d=o(k,20)+d|0;f=i[a+604>>2]+(i[d+4>>2]<<2)|0;n=i[d>>2];h=i[d+12>>2];r:{if(h>>>0>3){break r}e=i[c+12>>2];q=d+16|0;if(!i[q>>2]){f=e;break r}u=d+12|0;d=0;while(1){e=pn(e,(d<<2)+f|0,h);h=i[u>>2];e=e+h|0;d=d+1|0;if(d>>>0>2]){continue}break}f=i[c+12>>2]}d=i[c+28>>2];d=j[n+84|0]?d:i[i[n+68>>2]+(d<<2)>>2];if(d>>>0>=l[n+80>>2]){break q}e=i[n+40>>2];pn(i[i[n>>2]>>2]+o(e,d)|0,f,e);k=k+1|0;d=i[c+16>>2];if(k>>>0<(i[c+20>>2]-d|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;s=s+1|0;if((s|0)==(m|0)){break f}d=i[a+12>>2];continue}}d=i[g+28>>2]}if(d){continue}break}k=1}a=i[g+24>>2];b=(a>>>0)/341|0;d=i[g+12>>2];e=i[g+16>>2];s:{if((d|0)==(e|0)){break s}m=(b<<2)+d|0;f=i[m>>2];h=f+o(a-o(b,341)|0,12)|0;a=a+i[g+28>>2]|0;b=(a>>>0)/341|0;a=i[(b<<2)+d>>2]+o(a-o(b,341)|0,12)|0;if((h|0)==(a|0)){break s}while(1){h=h+12|0;if((h-f|0)==4092){f=i[m+4>>2];m=m+4|0;h=f}if((a|0)!=(h|0)){continue}break}}i[g+28>>2]=0;h=e-d>>2;if(h>>>0>2){while(1){nn(i[d>>2]);d=i[g+12>>2]+4|0;i[g+12>>2]=d;e=i[g+16>>2];h=e-d>>2;if(h>>>0>2){continue}break}}f=170;t:{switch(h+ -1|0){case 1:f=341;case 0:i[g+24>>2]=f;break;default:break t}}u:{if((d|0)==(e|0)){break u}while(1){nn(i[d>>2]);d=d+4|0;if((e|0)!=(d|0)){continue}break}a=i[g+16>>2];b=i[g+12>>2];if((a|0)==(b|0)){break u}i[g+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[g+8>>2];if(a){nn(a)}J=g+32|0;return k}Sm();x()}Sm();x()}function zb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;g=J-32|0;J=g;d=i[a+12>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{if(d){if(d>>>0>=1073741824){break a}h=d<<2;e=Dm(h);i[g+8>>2]=e;f=e+h|0;i[g+16>>2]=f;qn(e,0,h);i[g+12>>2]=f}h=i[a+628>>2];k=i[h>>2];if(k){i[h+4>>2]=k;nn(k);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;d=i[a+12>>2];e=i[g+8>>2];f=i[g+12>>2]}i[h+4>>2]=f;i[h>>2]=e;i[h+8>>2]=i[g+16>>2];e=0;i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;h=0;b:{if(d){if(d>>>0>=1073741824){break b}f=d<<2;h=Dm(f);i[g+8>>2]=h;e=f+h|0;i[g+16>>2]=e;qn(h,0,f);i[g+12>>2]=e}f=i[a+640>>2];d=i[f>>2];if(d){i[f+4>>2]=d;nn(d);i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;h=i[g+8>>2];e=i[g+12>>2]}i[f+4>>2]=e;i[f>>2]=h;i[f+8>>2]=i[g+16>>2];e=g+24|0;i[e>>2]=0;i[e+4>>2]=0;d=g+16|0;i[d>>2]=0;i[d+4>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;Nb(g+8|0);h=i[d>>2];d=i[g+12>>2];f=0;c:{if((h|0)==(d|0)){break c}f=i[e>>2]+i[g+28>>2]|0;e=(f>>>0)/341|0;f=i[d+(e<<2)>>2]+o(f-o(e,341)|0,12)|0}i[f+4>>2]=0;i[f+8>>2]=0;i[f>>2]=b;k=1;f=i[g+28>>2];d=f+1|0;i[g+28>>2]=d;d:{if(d>>>0>>0){break d}while(1){k=i[g+12>>2];h=d+ -1|0;f=h+i[g+24>>2]|0;e=(f>>>0)/341|0;e=i[k+(e<<2)>>2]+o(f-o(e,341)|0,12)|0;n=i[e+8>>2];d=i[e+4>>2];m=i[e>>2];i[g+28>>2]=h;e=i[g+16>>2];h=e-k|0;if((h?o(h>>2,341)+ -1|0:0)-f>>>0>=682){nn(i[e+ -4>>2]);i[g+16>>2]=i[g+16>>2]+ -4}if(m>>>0>b>>>0){k=0;break d}k=0;f=i[a+12>>2];h=(d|0)==(f+ -1|0)?0:d+1|0;if(h>>>0>=f>>>0){break d}f=i[a+628>>2];p=o(n,12);s=f+p|0;e:{f:{q=h<<2;t=p+i[a+640>>2]|0;e=i[a>>2]-i[q+i[t>>2]>>2]|0;if(!e){if(!m){break f}p=0;while(1){k=0;d=i[c+16>>2];g:{if((d|0)==i[c+20>>2]){break g}while(1){d=o(k,20)+d|0;f=i[s>>2]+(i[d+4>>2]<<2)|0;n=i[d>>2];h=i[d+12>>2];h:{if(h>>>0>3){break h}e=i[c+12>>2];q=d+16|0;if(!i[q>>2]){f=e;break h}t=d+12|0;d=0;while(1){e=pn(e,(d<<2)+f|0,h);h=i[t>>2];e=e+h|0;d=d+1|0;if(d>>>0>2]){continue}break}f=i[c+12>>2]}d=i[c+28>>2];d=j[n+84|0]?d:i[i[n+68>>2]+(d<<2)>>2];if(d>>>0>=l[n+80>>2]){break g}e=i[n+40>>2];pn(i[i[n>>2]>>2]+o(e,d)|0,f,e);k=k+1|0;d=i[c+16>>2];if(k>>>0<(i[c+20>>2]-d|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((m|0)!=(p|0)){continue}break}break f}i:{j:{k:{l:{if(m>>>0<=2){f=i[a+616>>2];i[f>>2]=h;e=1;d=i[a+12>>2];if(d>>>0>1){break l}break i}if(l[a+8>>2]>l[a+4>>2]){break d}d=f;f=p+12|0;ua(d+f|0,i[s>>2],i[s+4>>2]);f=q+i[f+i[a+628>>2]>>2]|0;i[f>>2]=i[f>>2]+(1<>>1|0)-e|0;d=m-e|0;m:{if((d|0)==(e|0)){f=e;break m}f=i[a+596>>2];if((f|0)==i[a+588>>2]){break k}k=i[f>>2];m=i[a+600>>2];t=m+1|0;i[a+600>>2]=t;k=k&-2147483648>>>m;n:{if((t|0)==32){i[a+600>>2]=0;i[a+596>>2]=f+4;if(k){break n}break k}if(!k){break k}}f=d}d=e;break j}while(1){h=(d+ -1|0)==(h|0)?0:h+1|0;i[f+(e<<2)>>2]=h;e=e+1|0;d=i[a+12>>2];if(e>>>0>>0){continue}break}break i}f=e}e=i[a+640>>2];k=e+p|0;m=i[k>>2];p=m+q|0;i[p>>2]=i[p>>2]+1;ua(e+o(s,12)|0,m,i[k+4>>2]);if(d){m=i[g+28>>2]+i[g+24>>2]|0;p=i[g+16>>2];e=i[g+12>>2];k=p-e|0;if((m|0)==((k?o(k>>2,341)+ -1|0:0)|0)){Nb(g+8|0);m=i[g+24>>2]+i[g+28>>2]|0;p=i[g+16>>2];e=i[g+12>>2]}k=0;o:{if((e|0)==(p|0)){break o}k=e;e=(m>>>0)/341|0;k=i[k+(e<<2)>>2]+o(m-o(e,341)|0,12)|0}i[k+8>>2]=n;i[k+4>>2]=h;i[k>>2]=d;i[g+28>>2]=i[g+28>>2]+1}if(!f){break f}e=i[g+28>>2]+i[g+24>>2]|0;m=i[g+16>>2];d=i[g+12>>2];k=m-d|0;if((e|0)==((k?o(k>>2,341)+ -1|0:0)|0)){Nb(g+8|0);m=i[g+16>>2];d=i[g+12>>2];e=i[g+24>>2]+i[g+28>>2]|0}if((d|0)==(m|0)){e=0}else{k=d;d=(e>>>0)/341|0;e=i[k+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[e+8>>2]=s;i[e+4>>2]=h;i[e>>2]=f;d=i[g+28>>2]+1|0;i[g+28>>2]=d;break e}if(!m){break f}p=0;while(1){if(d){v=i[s>>2];y=i[t>>2];h=i[a+604>>2];z=i[a+616>>2];d=0;while(1){k=z+(d<<2)|0;i[h+(i[k>>2]<<2)>>2]=0;e=i[k>>2]<<2;f=i[a>>2]-i[e+y>>2]|0;p:{if(!f){break p}e=e+h|0;n=i[a+560>>2];u=32-n|0;if((f|0)<=(u|0)){q=i[a+556>>2];if((q|0)==i[a+548>>2]){i[e>>2]=0;break p}i[e>>2]=i[q>>2]<>>32-f;f=f+i[a+560>>2]|0;i[a+560>>2]=f;if((f|0)!=32){break p}i[a+560>>2]=0;i[a+556>>2]=q+4;break p}q=i[a+556>>2];w=q+4|0;if((w|0)==i[a+548>>2]){i[e>>2]=0;break p}A=i[q>>2];i[a+556>>2]=w;u=f-u|0;i[a+560>>2]=u;i[e>>2]=i[q+4>>2]>>>32-u|A<>>32-f}f=i[k>>2]<<2;e=f+h|0;i[e>>2]=i[e>>2]|i[f+v>>2];d=d+1|0;if(d>>>0>2]){continue}break}}k=0;d=i[c+16>>2];q:{if((d|0)==i[c+20>>2]){break q}while(1){d=o(k,20)+d|0;f=i[a+604>>2]+(i[d+4>>2]<<2)|0;n=i[d>>2];h=i[d+12>>2];r:{if(h>>>0>3){break r}e=i[c+12>>2];q=d+16|0;if(!i[q>>2]){f=e;break r}v=d+12|0;d=0;while(1){e=pn(e,(d<<2)+f|0,h);h=i[v>>2];e=e+h|0;d=d+1|0;if(d>>>0>2]){continue}break}f=i[c+12>>2]}d=i[c+28>>2];d=j[n+84|0]?d:i[i[n+68>>2]+(d<<2)>>2];if(d>>>0>=l[n+80>>2]){break q}e=i[n+40>>2];pn(i[i[n>>2]>>2]+o(e,d)|0,f,e);k=k+1|0;d=i[c+16>>2];if(k>>>0<(i[c+20>>2]-d|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((p|0)==(m|0)){break f}d=i[a+12>>2];continue}}d=i[g+28>>2]}if(d){continue}break}k=1}a=i[g+24>>2];b=(a>>>0)/341|0;d=i[g+12>>2];e=i[g+16>>2];s:{if((d|0)==(e|0)){break s}m=(b<<2)+d|0;f=i[m>>2];h=f+o(a-o(b,341)|0,12)|0;a=a+i[g+28>>2]|0;b=(a>>>0)/341|0;a=i[(b<<2)+d>>2]+o(a-o(b,341)|0,12)|0;if((h|0)==(a|0)){break s}while(1){h=h+12|0;if((h-f|0)==4092){f=i[m+4>>2];m=m+4|0;h=f}if((a|0)!=(h|0)){continue}break}}i[g+28>>2]=0;h=e-d>>2;if(h>>>0>2){while(1){nn(i[d>>2]);d=i[g+12>>2]+4|0;i[g+12>>2]=d;e=i[g+16>>2];h=e-d>>2;if(h>>>0>2){continue}break}}f=170;t:{switch(h+ -1|0){case 1:f=341;case 0:i[g+24>>2]=f;break;default:break t}}u:{if((d|0)==(e|0)){break u}while(1){nn(i[d>>2]);d=d+4|0;if((e|0)!=(d|0)){continue}break}a=i[g+16>>2];b=i[g+12>>2];if((a|0)==(b|0)){break u}i[g+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[g+8>>2];if(a){nn(a)}J=g+32|0;return k}Sm();x()}Sm();x()}function Ab(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;g=J-32|0;J=g;d=i[a+12>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{if(d){if(d>>>0>=1073741824){break a}h=d<<2;e=Dm(h);i[g+8>>2]=e;f=e+h|0;i[g+16>>2]=f;qn(e,0,h);i[g+12>>2]=f}h=i[a+628>>2];k=i[h>>2];if(k){i[h+4>>2]=k;nn(k);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;d=i[a+12>>2];e=i[g+8>>2];f=i[g+12>>2]}i[h+4>>2]=f;i[h>>2]=e;i[h+8>>2]=i[g+16>>2];e=0;i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;h=0;b:{if(d){if(d>>>0>=1073741824){break b}f=d<<2;h=Dm(f);i[g+8>>2]=h;e=f+h|0;i[g+16>>2]=e;qn(h,0,f);i[g+12>>2]=e}f=i[a+640>>2];d=i[f>>2];if(d){i[f+4>>2]=d;nn(d);i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;h=i[g+8>>2];e=i[g+12>>2]}i[f+4>>2]=e;i[f>>2]=h;i[f+8>>2]=i[g+16>>2];e=g+24|0;i[e>>2]=0;i[e+4>>2]=0;d=g+16|0;i[d>>2]=0;i[d+4>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;Nb(g+8|0);h=i[d>>2];d=i[g+12>>2];f=0;c:{if((h|0)==(d|0)){break c}f=i[e>>2]+i[g+28>>2]|0;e=(f>>>0)/341|0;f=i[d+(e<<2)>>2]+o(f-o(e,341)|0,12)|0}i[f+4>>2]=0;i[f+8>>2]=0;i[f>>2]=b;k=1;f=i[g+28>>2];d=f+1|0;i[g+28>>2]=d;d:{if(d>>>0>>0){break d}while(1){h=i[g+12>>2];d=d+ -1|0;f=d+i[g+24>>2]|0;e=(f>>>0)/341|0;e=i[h+(e<<2)>>2]+o(f-o(e,341)|0,12)|0;n=i[e+8>>2];m=i[e>>2];i[g+28>>2]=d;e=i[g+16>>2];d=e-h|0;if((d?o(d>>2,341)+ -1|0:0)-f>>>0>=682){nn(i[e+ -4>>2]);i[g+16>>2]=i[g+16>>2]+ -4}k=0;if(m>>>0>b>>>0){break d}f=i[a+628>>2];s=o(n,12);t=s+i[a+640>>2]|0;h=wl(a,m,t);if(h>>>0>=l[a+12>>2]){break d}q=f+s|0;e:{f:{p=h<<2;f=i[a>>2]-i[p+i[t>>2]>>2]|0;if(!f){if(!m){break f}s=0;while(1){k=0;d=i[c+16>>2];g:{if((d|0)==i[c+20>>2]){break g}while(1){d=o(k,20)+d|0;f=i[q>>2]+(i[d+4>>2]<<2)|0;n=i[d>>2];h=i[d+12>>2];h:{if(h>>>0>3){break h}e=i[c+12>>2];t=d+16|0;if(!i[t>>2]){f=e;break h}p=d+12|0;d=0;while(1){e=pn(e,(d<<2)+f|0,h);h=i[p>>2];e=e+h|0;d=d+1|0;if(d>>>0>2]){continue}break}f=i[c+12>>2]}d=i[c+28>>2];d=j[n+84|0]?d:i[i[n+68>>2]+(d<<2)>>2];if(d>>>0>=l[n+80>>2]){break g}e=i[n+40>>2];pn(i[i[n>>2]>>2]+o(e,d)|0,f,e);k=k+1|0;d=i[c+16>>2];if(k>>>0<(i[c+20>>2]-d|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;s=s+1|0;if((m|0)!=(s|0)){continue}break}break f}i:{j:{k:{l:{if(m>>>0<=2){f=i[a+616>>2];i[f>>2]=h;e=1;d=i[a+12>>2];if(d>>>0>1){break l}break i}if(l[a+8>>2]>l[a+4>>2]){break d}e=1<>2];t=n+1|0;k=o(t,12);d=f+k|0;if((d|0)!=(q|0)){ua(d,i[q>>2],i[q+4>>2]);f=i[a+628>>2]}f=p+i[f+k>>2]|0;i[f>>2]=e+i[f>>2];e=0;d=0;f=r(m)^31;if(f){while(1){e=Ce(((d<<4)+a|0)+16|0)|e<<1;d=d+1|0;if((f|0)!=(d|0)){continue}break}}e=(m>>>1|0)-e|0;d=m-e|0;m:{if((d|0)==(e|0)){f=e;break m}f=i[a+596>>2];if((f|0)==i[a+588>>2]){break k}m=i[f>>2];q=i[a+600>>2];u=q+1|0;i[a+600>>2]=u;m=m&-2147483648>>>q;n:{if((u|0)==32){i[a+600>>2]=0;i[a+596>>2]=f+4;if(m){break n}break k}if(!m){break k}}f=d}d=e;break j}while(1){h=(d+ -1|0)==(h|0)?0:h+1|0;i[f+(e<<2)>>2]=h;e=e+1|0;d=i[a+12>>2];if(e>>>0>>0){continue}break}break i}f=e}e=i[a+640>>2];m=e+s|0;q=i[m>>2];s=q+p|0;i[s>>2]=i[s>>2]+1;ua(e+k|0,q,i[m+4>>2]);if(d){m=i[g+28>>2]+i[g+24>>2]|0;q=i[g+16>>2];e=i[g+12>>2];k=q-e|0;if((m|0)==((k?o(k>>2,341)+ -1|0:0)|0)){Nb(g+8|0);m=i[g+24>>2]+i[g+28>>2]|0;q=i[g+16>>2];e=i[g+12>>2]}k=0;o:{if((e|0)==(q|0)){break o}k=e;e=(m>>>0)/341|0;k=i[k+(e<<2)>>2]+o(m-o(e,341)|0,12)|0}i[k+8>>2]=n;i[k+4>>2]=h;i[k>>2]=d;i[g+28>>2]=i[g+28>>2]+1}if(!f){break f}e=i[g+28>>2]+i[g+24>>2]|0;m=i[g+16>>2];d=i[g+12>>2];k=m-d|0;if((e|0)==((k?o(k>>2,341)+ -1|0:0)|0)){Nb(g+8|0);m=i[g+16>>2];d=i[g+12>>2];e=i[g+24>>2]+i[g+28>>2]|0}if((d|0)==(m|0)){e=0}else{k=d;d=(e>>>0)/341|0;e=i[k+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[e+8>>2]=t;i[e+4>>2]=h;i[e>>2]=f;d=i[g+28>>2]+1|0;i[g+28>>2]=d;break e}if(!m){break f}s=0;while(1){if(d){u=i[q>>2];y=i[t>>2];h=i[a+604>>2];z=i[a+616>>2];d=0;while(1){k=z+(d<<2)|0;i[h+(i[k>>2]<<2)>>2]=0;e=i[k>>2]<<2;f=i[a>>2]-i[e+y>>2]|0;p:{if(!f){break p}e=e+h|0;n=i[a+560>>2];v=32-n|0;if((f|0)<=(v|0)){p=i[a+556>>2];if((p|0)==i[a+548>>2]){i[e>>2]=0;break p}i[e>>2]=i[p>>2]<>>32-f;f=f+i[a+560>>2]|0;i[a+560>>2]=f;if((f|0)!=32){break p}i[a+560>>2]=0;i[a+556>>2]=p+4;break p}p=i[a+556>>2];w=p+4|0;if((w|0)==i[a+548>>2]){i[e>>2]=0;break p}A=i[p>>2];i[a+556>>2]=w;v=f-v|0;i[a+560>>2]=v;i[e>>2]=i[p+4>>2]>>>32-v|A<>>32-f}f=i[k>>2]<<2;e=f+h|0;i[e>>2]=i[e>>2]|i[f+u>>2];d=d+1|0;if(d>>>0>2]){continue}break}}k=0;d=i[c+16>>2];q:{if((d|0)==i[c+20>>2]){break q}while(1){d=o(k,20)+d|0;f=i[a+604>>2]+(i[d+4>>2]<<2)|0;n=i[d>>2];h=i[d+12>>2];r:{if(h>>>0>3){break r}e=i[c+12>>2];p=d+16|0;if(!i[p>>2]){f=e;break r}u=d+12|0;d=0;while(1){e=pn(e,(d<<2)+f|0,h);h=i[u>>2];e=e+h|0;d=d+1|0;if(d>>>0>2]){continue}break}f=i[c+12>>2]}d=i[c+28>>2];d=j[n+84|0]?d:i[i[n+68>>2]+(d<<2)>>2];if(d>>>0>=l[n+80>>2]){break q}e=i[n+40>>2];pn(i[i[n>>2]>>2]+o(e,d)|0,f,e);k=k+1|0;d=i[c+16>>2];if(k>>>0<(i[c+20>>2]-d|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;s=s+1|0;if((s|0)==(m|0)){break f}d=i[a+12>>2];continue}}d=i[g+28>>2]}if(d){continue}break}k=1}a=i[g+24>>2];b=(a>>>0)/341|0;d=i[g+12>>2];e=i[g+16>>2];s:{if((d|0)==(e|0)){break s}m=(b<<2)+d|0;f=i[m>>2];h=f+o(a-o(b,341)|0,12)|0;a=a+i[g+28>>2]|0;b=(a>>>0)/341|0;a=i[(b<<2)+d>>2]+o(a-o(b,341)|0,12)|0;if((h|0)==(a|0)){break s}while(1){h=h+12|0;if((h-f|0)==4092){f=i[m+4>>2];m=m+4|0;h=f}if((a|0)!=(h|0)){continue}break}}i[g+28>>2]=0;h=e-d>>2;if(h>>>0>2){while(1){nn(i[d>>2]);d=i[g+12>>2]+4|0;i[g+12>>2]=d;e=i[g+16>>2];h=e-d>>2;if(h>>>0>2){continue}break}}f=170;t:{switch(h+ -1|0){case 1:f=341;case 0:i[g+24>>2]=f;break;default:break t}}u:{if((d|0)==(e|0)){break u}while(1){nn(i[d>>2]);d=d+4|0;if((e|0)!=(d|0)){continue}break}a=i[g+16>>2];b=i[g+12>>2];if((a|0)==(b|0)){break u}i[g+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[g+8>>2];if(a){nn(a)}J=g+32|0;return k}Sm();x()}Sm();x()}function vb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0;g=J-32|0;J=g;f=i[a+12>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{if(f){if(f>>>0>=1073741824){break a}d=f<<2;h=Dm(d);i[g+8>>2]=h;e=d+h|0;i[g+16>>2]=e;qn(h,0,d);i[g+12>>2]=e}m=i[a+116>>2];d=i[m>>2];if(d){i[m+4>>2]=d;nn(d);i[m+8>>2]=0;i[m>>2]=0;i[m+4>>2]=0;f=i[a+12>>2];h=i[g+8>>2];e=i[g+12>>2]}i[m+4>>2]=e;i[m>>2]=h;i[m+8>>2]=i[g+16>>2];h=0;i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;b:{if(f){if(f>>>0>=1073741824){break b}d=f<<2;k=Dm(d);i[g+8>>2]=k;h=d+k|0;i[g+16>>2]=h;qn(k,0,d);i[g+12>>2]=h}e=i[a+128>>2];d=i[e>>2];if(d){i[e+4>>2]=d;nn(d);i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;k=i[g+8>>2];h=i[g+12>>2]}i[e+4>>2]=h;i[e>>2]=k;i[e+8>>2]=i[g+16>>2];h=g+24|0;i[h>>2]=0;i[h+4>>2]=0;e=g+16|0;i[e>>2]=0;i[e+4>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;Nb(g+8|0);m=i[g+12>>2];d=0;c:{if((m|0)==i[e>>2]){break c}e=i[h>>2]+i[g+28>>2]|0;d=(e>>>0)/341|0;d=i[m+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;n=1;d=i[g+28>>2];f=d+1|0;i[g+28>>2]=f;d:{if(f>>>0>>0){break d}B=a+16|0;while(1){d=i[g+12>>2];h=f+ -1|0;n=h+i[g+24>>2]|0;e=(n>>>0)/341|0;e=i[d+(e<<2)>>2]+o(n-o(e,341)|0,12)|0;u=i[e+8>>2];m=i[e+4>>2];t=i[e>>2];i[g+28>>2]=h;e=i[g+16>>2];d=e-d|0;if((d?o(d>>2,341)+ -1|0:0)-n>>>0>=682){nn(i[e+ -4>>2]);i[g+16>>2]=i[g+16>>2]+ -4}n=0;if(t>>>0>b>>>0){break d}d=i[a+116>>2];v=o(u,12);A=v+i[a+128>>2]|0;k=vl(a,A,m);if(k>>>0>=l[a+12>>2]){break d}z=d+v|0;e:{w=k<<2;d=i[a>>2]-i[w+i[A>>2]>>2]|0;if(!d){if(!t){break e}p=0;while(1){m=0;f=i[c+16>>2];f:{if((f|0)==i[c+20>>2]){break f}while(1){d=o(m,20)+f|0;e=i[z>>2]+(i[d+4>>2]<<2)|0;s=i[d>>2];k=i[d+12>>2];g:{if(k>>>0>3){break g}h=i[c+12>>2];q=d+16|0;if(!i[q>>2]){e=h;break g}n=d+12|0;f=0;while(1){d=pn(h,(f<<2)+e|0,k);k=i[n>>2];h=d+k|0;f=f+1|0;if(f>>>0>2]){continue}break}e=i[c+12>>2]}f=i[c+28>>2];f=j[s+84|0]?f:i[i[s+68>>2]+(f<<2)>>2];if(f>>>0>=l[s+80>>2]){break f}d=i[s+40>>2];pn(i[i[s>>2]>>2]+o(d,f)|0,e,d);m=m+1|0;f=i[c+16>>2];if(m>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((t|0)!=(p|0)){continue}break}break e}h:{i:{j:{k:{if(t>>>0<=2){d=i[a+104>>2];i[d>>2]=k;h=1;f=i[a+12>>2];if(f>>>0>1){break k}break h}if(l[a+8>>2]>l[a+4>>2]){break d}m=1<>2];p=u+1|0;s=o(p,12);e=d+s|0;if((e|0)!=(z|0)){ua(e,i[z>>2],i[z+4>>2]);d=i[a+116>>2]}d=w+i[d+s>>2]|0;i[d>>2]=m+i[d>>2];i[g+4>>2]=0;De(B,r(t)^31,g+4|0);e=(t>>>1|0)-i[g+4>>2]|0;d=t-e|0;l:{if((d|0)==(e|0)){d=e;break l}q=i[a+84>>2];if((q|0)==i[a+76>>2]){break j}n=i[q>>2];h=i[a+88>>2];m=h+1|0;i[a+88>>2]=m;h=n&-2147483648>>>h;m:{if((m|0)==32){i[a+88>>2]=0;i[a+84>>2]=q+4;if(h){break m}break j}if(!h){break j}}}m=d;d=e;break i}while(1){k=(f+ -1|0)==(k|0)?0:k+1|0;i[d+(h<<2)>>2]=k;h=h+1|0;f=i[a+12>>2];if(h>>>0>>0){continue}break}break h}m=e}q=i[a+128>>2];n=q+v|0;h=i[n>>2];e=h+w|0;i[e>>2]=i[e>>2]+1;ua(s+q|0,h,i[n+4>>2]);if(d){e=i[g+28>>2]+i[g+24>>2]|0;n=i[g+16>>2];f=i[g+12>>2];h=n-f|0;if((e|0)==((h?o(h>>2,341)+ -1|0:0)|0)){Nb(g+8|0);n=i[g+16>>2];f=i[g+12>>2];e=i[g+24>>2]+i[g+28>>2]|0}if((f|0)==(n|0)){e=0}else{h=(e>>>0)/341|0;e=i[(h<<2)+f>>2]+o(e-o(h,341)|0,12)|0}i[e+8>>2]=u;i[e+4>>2]=k;i[e>>2]=d;i[g+28>>2]=i[g+28>>2]+1}if(!m){break e}h=i[g+28>>2]+i[g+24>>2]|0;e=i[g+16>>2];f=i[g+12>>2];d=e-f|0;if((h|0)==((d?o(d>>2,341)+ -1|0:0)|0)){Nb(g+8|0);h=i[g+24>>2]+i[g+28>>2]|0;f=i[g+12>>2];e=i[g+16>>2]}if((e|0)==(f|0)){d=0}else{d=(h>>>0)/341|0;d=i[(d<<2)+f>>2]+o(h-o(d,341)|0,12)|0}i[d+8>>2]=p;i[d+4>>2]=k;i[d>>2]=m;i[g+28>>2]=i[g+28>>2]+1;break e}if(!t){break e}v=0;while(1){if(f){q=i[z>>2];n=i[A>>2];u=i[a+92>>2];h=i[a+104>>2];f=0;while(1){w=h+(f<<2)|0;i[u+(i[w>>2]<<2)>>2]=0;d=i[w>>2]<<2;y=i[a>>2]-i[d+n>>2]|0;n:{if(!y){break n}k=d+u|0;s=i[a+48>>2];m=32-s|0;if((y|0)<=(m|0)){e=i[a+44>>2];if((e|0)==i[a+36>>2]){i[k>>2]=0;break n}i[k>>2]=i[e>>2]<>>32-y;d=y+i[a+48>>2]|0;i[a+48>>2]=d;if((d|0)!=32){break n}i[a+48>>2]=0;i[a+44>>2]=e+4;break n}p=i[a+44>>2];d=p+4|0;if((d|0)==i[a+36>>2]){i[k>>2]=0;break n}e=i[p>>2];i[a+44>>2]=d;d=y-m|0;i[a+48>>2]=d;i[k>>2]=i[p+4>>2]>>>32-d|e<>>32-y}e=i[w>>2]<<2;d=e+u|0;i[d>>2]=i[d>>2]|i[e+q>>2];f=f+1|0;if(f>>>0>2]){continue}break}}m=0;f=i[c+16>>2];o:{if((f|0)==i[c+20>>2]){break o}while(1){d=o(m,20)+f|0;e=i[a+92>>2]+(i[d+4>>2]<<2)|0;p=i[d>>2];k=i[d+12>>2];p:{if(k>>>0>3){break p}h=i[c+12>>2];q=d+16|0;if(!i[q>>2]){e=h;break p}n=d+12|0;f=0;while(1){d=pn(h,(f<<2)+e|0,k);k=i[n>>2];h=d+k|0;f=f+1|0;if(f>>>0>2]){continue}break}e=i[c+12>>2]}f=i[c+28>>2];f=j[p+84|0]?f:i[i[p+68>>2]+(f<<2)>>2];if(f>>>0>=l[p+80>>2]){break o}d=i[p+40>>2];pn(i[i[p>>2]>>2]+o(d,f)|0,e,d);m=m+1|0;f=i[c+16>>2];if(m>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;v=v+1|0;if((v|0)==(t|0)){break e}f=i[a+12>>2];continue}}f=i[g+28>>2];if(f){continue}break}n=1}b=i[g+24>>2];a=(b>>>0)/341|0;f=i[g+12>>2];h=i[g+16>>2];q:{if((f|0)==(h|0)){break q}d=(a<<2)+f|0;e=i[d>>2];k=e+o(b-o(a,341)|0,12)|0;b=b+i[g+28>>2]|0;a=(b>>>0)/341|0;a=i[(a<<2)+f>>2]+o(b-o(a,341)|0,12)|0;if((k|0)==(a|0)){break q}while(1){k=k+12|0;if((k-e|0)==4092){e=i[d+4>>2];k=e;d=d+4|0}if((a|0)!=(k|0)){continue}break}}i[g+28>>2]=0;k=h-f>>2;if(k>>>0>2){while(1){nn(i[f>>2]);f=i[g+12>>2]+4|0;i[g+12>>2]=f;h=i[g+16>>2];k=h-f>>2;if(k>>>0>2){continue}break}}e=170;r:{switch(k+ -1|0){case 1:e=341;case 0:i[g+24>>2]=e;break;default:break r}}s:{if((f|0)==(h|0)){break s}while(1){nn(i[f>>2]);f=f+4|0;if((h|0)!=(f|0)){continue}break}b=i[g+16>>2];a=i[g+12>>2];if((b|0)==(a|0)){break s}i[g+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[g+8>>2];if(a){nn(a)}J=g+32|0;return n}Sm();x()}Sm();x()}function wb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0;g=J-32|0;J=g;f=i[a+12>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{if(f){if(f>>>0>=1073741824){break a}d=f<<2;h=Dm(d);i[g+8>>2]=h;e=d+h|0;i[g+16>>2]=e;qn(h,0,d);i[g+12>>2]=e}m=i[a+116>>2];d=i[m>>2];if(d){i[m+4>>2]=d;nn(d);i[m+8>>2]=0;i[m>>2]=0;i[m+4>>2]=0;f=i[a+12>>2];h=i[g+8>>2];e=i[g+12>>2]}i[m+4>>2]=e;i[m>>2]=h;i[m+8>>2]=i[g+16>>2];h=0;i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;b:{if(f){if(f>>>0>=1073741824){break b}d=f<<2;k=Dm(d);i[g+8>>2]=k;h=d+k|0;i[g+16>>2]=h;qn(k,0,d);i[g+12>>2]=h}e=i[a+128>>2];d=i[e>>2];if(d){i[e+4>>2]=d;nn(d);i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;k=i[g+8>>2];h=i[g+12>>2]}i[e+4>>2]=h;i[e>>2]=k;i[e+8>>2]=i[g+16>>2];h=g+24|0;i[h>>2]=0;i[h+4>>2]=0;e=g+16|0;i[e>>2]=0;i[e+4>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;Nb(g+8|0);m=i[g+12>>2];d=0;c:{if((m|0)==i[e>>2]){break c}e=i[h>>2]+i[g+28>>2]|0;d=(e>>>0)/341|0;d=i[m+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;m=1;d=i[g+28>>2];f=d+1|0;i[g+28>>2]=f;d:{if(f>>>0>>0){break d}B=a+16|0;while(1){d=i[g+12>>2];m=f+ -1|0;n=m+i[g+24>>2]|0;e=(n>>>0)/341|0;e=i[d+(e<<2)>>2]+o(n-o(e,341)|0,12)|0;v=i[e+8>>2];h=i[e+4>>2];t=i[e>>2];i[g+28>>2]=m;e=i[g+16>>2];d=e-d|0;if((d?o(d>>2,341)+ -1|0:0)-n>>>0>=682){nn(i[e+ -4>>2]);i[g+16>>2]=i[g+16>>2]+ -4}if(t>>>0>b>>>0){m=0;break d}m=0;d=i[a+12>>2];k=(h|0)==(d+ -1|0)?0:h+1|0;if(k>>>0>=d>>>0){break d}d=i[a+116>>2];u=o(v,12);y=d+u|0;e:{q=k<<2;s=u+i[a+128>>2]|0;e=i[a>>2]-i[q+i[s>>2]>>2]|0;if(!e){if(!t){break e}p=0;while(1){q=0;f=i[c+16>>2];f:{if((f|0)==i[c+20>>2]){break f}while(1){d=o(q,20)+f|0;e=i[y>>2]+(i[d+4>>2]<<2)|0;s=i[d>>2];k=i[d+12>>2];g:{if(k>>>0>3){break g}h=i[c+12>>2];n=d+16|0;if(!i[n>>2]){e=h;break g}m=d+12|0;f=0;while(1){d=pn(h,(f<<2)+e|0,k);k=i[m>>2];h=d+k|0;f=f+1|0;if(f>>>0>2]){continue}break}e=i[c+12>>2]}f=i[c+28>>2];f=j[s+84|0]?f:i[i[s+68>>2]+(f<<2)>>2];if(f>>>0>=l[s+80>>2]){break f}d=i[s+40>>2];pn(i[i[s>>2]>>2]+o(d,f)|0,e,d);q=q+1|0;f=i[c+16>>2];if(q>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((t|0)!=(p|0)){continue}break}break e}h:{i:{j:{k:{if(t>>>0<=2){d=i[a+104>>2];i[d>>2]=k;h=1;f=i[a+12>>2];if(f>>>0>1){break k}break h}if(l[a+8>>2]>l[a+4>>2]){break d}h=d;d=u+12|0;ua(h+d|0,i[y>>2],i[y+4>>2]);d=q+i[d+i[a+116>>2]>>2]|0;i[d>>2]=i[d>>2]+(1<>2]=0;De(B,r(t)^31,g+4|0);s=v+1|0;e=(t>>>1|0)-i[g+4>>2]|0;d=t-e|0;l:{if((d|0)==(e|0)){d=e;break l}p=i[a+84>>2];if((p|0)==i[a+76>>2]){break j}n=i[p>>2];h=i[a+88>>2];m=h+1|0;i[a+88>>2]=m;h=n&-2147483648>>>h;m:{if((m|0)==32){i[a+88>>2]=0;i[a+84>>2]=p+4;if(h){break m}break j}if(!h){break j}}}m=d;d=e;break i}while(1){k=(f+ -1|0)==(k|0)?0:k+1|0;i[d+(h<<2)>>2]=k;h=h+1|0;f=i[a+12>>2];if(h>>>0>>0){continue}break}break h}m=e}p=i[a+128>>2];n=p+u|0;h=i[n>>2];e=h+q|0;i[e>>2]=i[e>>2]+1;ua(p+o(s,12)|0,h,i[n+4>>2]);if(d){h=i[g+28>>2]+i[g+24>>2]|0;n=i[g+16>>2];f=i[g+12>>2];e=n-f|0;if((h|0)==((e?o(e>>2,341)+ -1|0:0)|0)){Nb(g+8|0);f=i[g+12>>2];n=i[g+16>>2];h=i[g+24>>2]+i[g+28>>2]|0}if((f|0)==(n|0)){e=0}else{e=(h>>>0)/341|0;e=i[(e<<2)+f>>2]+o(h-o(e,341)|0,12)|0}i[e+8>>2]=v;i[e+4>>2]=k;i[e>>2]=d;i[g+28>>2]=i[g+28>>2]+1}if(!m){break e}h=i[g+28>>2]+i[g+24>>2]|0;e=i[g+16>>2];f=i[g+12>>2];d=e-f|0;if((h|0)==((d?o(d>>2,341)+ -1|0:0)|0)){Nb(g+8|0);f=i[g+12>>2];h=i[g+24>>2]+i[g+28>>2]|0;e=i[g+16>>2]}if((e|0)==(f|0)){d=0}else{d=(h>>>0)/341|0;d=i[(d<<2)+f>>2]+o(h-o(d,341)|0,12)|0}i[d+8>>2]=s;i[d+4>>2]=k;i[d>>2]=m;i[g+28>>2]=i[g+28>>2]+1;break e}if(!t){break e}A=0;while(1){if(f){p=i[y>>2];n=i[s>>2];k=i[a+92>>2];h=i[a+104>>2];f=0;while(1){v=h+(f<<2)|0;i[k+(i[v>>2]<<2)>>2]=0;d=i[v>>2]<<2;w=i[a>>2]-i[d+n>>2]|0;n:{if(!w){break n}z=d+k|0;u=i[a+48>>2];m=32-u|0;if((w|0)<=(m|0)){e=i[a+44>>2];if((e|0)==i[a+36>>2]){i[z>>2]=0;break n}i[z>>2]=i[e>>2]<>>32-w;d=w+i[a+48>>2]|0;i[a+48>>2]=d;if((d|0)!=32){break n}i[a+48>>2]=0;i[a+44>>2]=e+4;break n}q=i[a+44>>2];d=q+4|0;if((d|0)==i[a+36>>2]){i[z>>2]=0;break n}e=i[q>>2];i[a+44>>2]=d;d=w-m|0;i[a+48>>2]=d;i[z>>2]=i[q+4>>2]>>>32-d|e<>>32-w}e=i[v>>2]<<2;d=e+k|0;i[d>>2]=i[d>>2]|i[e+p>>2];f=f+1|0;if(f>>>0>2]){continue}break}}q=0;f=i[c+16>>2];o:{if((f|0)==i[c+20>>2]){break o}while(1){d=o(q,20)+f|0;e=i[a+92>>2]+(i[d+4>>2]<<2)|0;p=i[d>>2];k=i[d+12>>2];p:{if(k>>>0>3){break p}h=i[c+12>>2];n=d+16|0;if(!i[n>>2]){e=h;break p}m=d+12|0;f=0;while(1){d=pn(h,(f<<2)+e|0,k);k=i[m>>2];h=d+k|0;f=f+1|0;if(f>>>0>2]){continue}break}e=i[c+12>>2]}f=i[c+28>>2];f=j[p+84|0]?f:i[i[p+68>>2]+(f<<2)>>2];if(f>>>0>=l[p+80>>2]){break o}d=i[p+40>>2];pn(i[i[p>>2]>>2]+o(d,f)|0,e,d);q=q+1|0;f=i[c+16>>2];if(q>>>0<(i[c+20>>2]-f|0)/20>>>0){continue}break}}i[c+28>>2]=i[c+28>>2]+1;i[a+8>>2]=i[a+8>>2]+1;A=A+1|0;if((A|0)==(t|0)){break e}f=i[a+12>>2];continue}}f=i[g+28>>2];if(f){continue}break}m=1}b=i[g+24>>2];a=(b>>>0)/341|0;f=i[g+12>>2];h=i[g+16>>2];q:{if((f|0)==(h|0)){break q}d=(a<<2)+f|0;e=i[d>>2];k=e+o(b-o(a,341)|0,12)|0;b=b+i[g+28>>2]|0;a=(b>>>0)/341|0;a=i[(a<<2)+f>>2]+o(b-o(a,341)|0,12)|0;if((k|0)==(a|0)){break q}while(1){k=k+12|0;if((k-e|0)==4092){e=i[d+4>>2];k=e;d=d+4|0}if((a|0)!=(k|0)){continue}break}}i[g+28>>2]=0;k=h-f>>2;if(k>>>0>2){while(1){nn(i[f>>2]);f=i[g+12>>2]+4|0;i[g+12>>2]=f;h=i[g+16>>2];k=h-f>>2;if(k>>>0>2){continue}break}}e=170;r:{switch(k+ -1|0){case 1:e=341;case 0:i[g+24>>2]=e;break;default:break r}}s:{if((f|0)==(h|0)){break s}while(1){nn(i[f>>2]);f=f+4|0;if((h|0)!=(f|0)){continue}break}b=i[g+16>>2];a=i[g+12>>2];if((b|0)==(a|0)){break s}i[g+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[g+8>>2];if(a){nn(a)}J=g+32|0;return m}Sm();x()}Sm();x()}function Pc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0;j=J+ -64|0;J=j;i[a+8>>2]=e;f=a+32|0;k=i[f>>2];d=i[a+36>>2]-k>>2;a:{if(d>>>0>>0){Ra(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=k+(e<<2)}i[j+56>>2]=0;i[j+60>>2]=0;i[j+48>>2]=0;i[j+52>>2]=0;i[j+40>>2]=0;i[j+44>>2]=0;f=j+32|0;i[f>>2]=0;i[f+4>>2]=0;i[j+24>>2]=0;i[j+28>>2]=0;i[j+16>>2]=0;i[j+20>>2]=0;i[j>>2]=0;d=0;if(e){Ta(j+16|0,e,j);h=i[j+28>>2];d=i[f>>2]}i[j>>2]=0;d=d-h>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}i[j+32>>2]=(e<<2)+h;break b}Ta(j+16|12,e-d|0,j)}i[j>>2]=0;f=i[j+40>>2];d=i[j+44>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}i[j+44>>2]=f+(e<<2);break c}Ta(j+40|0,e-d|0,j)}i[j>>2]=0;f=i[j+52>>2];d=i[j+56>>2]-f>>2;d:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break d}i[j+56>>2]=f+(e<<2);break d}Ta(j+52|0,e-d|0,j)}e:{if(i[a+8>>2]<=0){break e}g=i[j+16>>2];h=0;while(1){d=h<<2;f=i[d+g>>2];l=i[a+16>>2];f:{if((f|0)>(l|0)){k=i[a+32>>2];i[d+k>>2]=l;break f}k=i[a+32>>2];d=d+k|0;l=i[a+12>>2];if((f|0)<(l|0)){i[d>>2]=l;break f}i[d>>2]=f}h=h+1|0;d=i[a+8>>2];if((h|0)<(d|0)){continue}break}if((d|0)<1){break e}d=0;while(1){g=d<<2;f=g+c|0;g=i[b+g>>2]+i[g+k>>2]|0;i[f>>2]=g;g:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break g}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}A=i[a+52>>2];q=i[a+48>>2];u=Dm(16);d=u;i[d>>2]=0;i[d+4>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[j+8>>2]=0;i[j>>2]=0;i[j+4>>2]=0;h:{if(e){if(e>>>0>=1073741824){break h}d=e<<2;t=Dm(d);i[j>>2]=t;f=d+t|0;i[j+8>>2]=f;qn(t,0,d);i[j+4>>2]=f}d=1;f=i[a+56>>2];k=i[f+4>>2];v=i[f>>2];f=k-v|0;i:{if((f|0)<5){break i}d=v-k|0;d=((d|0)>(f|0)?d:f)>>>2|0;B=d>>>0>2?d:2;C=d>>>0>1?d:1;D=e<<2;l=1;while(1){j:{k:{l:{if((l|0)!=(C|0)){m:{n:{k=i[(l<<2)+v>>2];if((k|0)==-1){break n}n=k+((k>>>0)%3|0?-1:2)|0;w=n>>>5|0;m=1;y=1<>2];f=0;d=k;o:{while(1){p:{if(i[z+(d>>>3&536870908)>>2]>>>d&1){break p}g=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((g|0)==-1){break p}r=i[A>>2];h=i[q+28>>2];s=i[r+(i[h+(g<<2)>>2]<<2)>>2];if((s|0)>=(l|0)){break p}p=g+1|0;p=i[r+(i[h+(((p>>>0)%3|0?p:g+ -2|0)<<2)>>2]<<2)>>2];if((p|0)>=(l|0)){break p}g=i[r+(i[h+(g+((g>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((g|0)>=(l|0)){break p}if((e|0)>=1){r=i[(j+16|0)+o(f,12)>>2];g=o(e,g);p=o(e,p);s=o(e,s);h=0;while(1){i[r+(h<<2)>>2]=(i[(g+h<<2)+c>>2]+i[(h+p<<2)+c>>2]|0)-i[(h+s<<2)+c>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}g=4;f=f+1|0;if((f|0)==4){break o}}q:{if(m&1){h=-1;g=d+1|0;d=(g>>>0)%3|0?g:d+ -2|0;if((d|0)==-1|i[i[q>>2]+(d>>>3&536870908)>>2]>>>d&1){break q}d=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break q}g=d+1|0;h=(g>>>0)%3|0?g:d+ -2|0;break q}h=-1;d=((d>>>0)%3|0?-1:2)+d|0;if((d|0)==-1|i[i[q>>2]+(d>>>3&536870908)>>2]>>>d&1){break q}d=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break q}if((d>>>0)%3|0){h=d+ -1|0;break q}h=d+2|0}r:{if((h|0)==(k|0)){break r}d=h;g=(h|0)!=-1;h=(g|m^-1)&1;d=h?d:-1;m=g&m;if(!((n|0)==-1|h)){if(i[i[q>>2]+(w<<2)>>2]&y){break r}g=i[i[i[q+64>>2]+12>>2]+(n<<2)>>2];if((g|0)==-1){break r}m=0;if((g>>>0)%3|0){d=g+ -1|0}else{d=g+2|0}}if((d|0)!=-1){continue}}break}g=f;if((g|0)<1){break n}}n=(e|0)<1;if(!n){qn(t,0,D)}d=g+ -1|0;m=(d<<2)+u|0;d=o(d,12)+a|0;r=d+60|0;w=i[d- -64>>2];d=0;y=i[j>>2];k=0;f=0;while(1){h=i[m>>2];i[m>>2]=h+1;if(w>>>0<=h>>>0){break i}s:{if(i[i[r>>2]+(h>>>3&536870908)>>2]>>>h&1){break s}f=f+1|0;if(n){break s}z=i[(j+16|0)+o(k,12)>>2];h=0;while(1){s=h<<2;p=s+y|0;i[p>>2]=i[p>>2]+i[s+z>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}k=k+1|0;if((g|0)!=(k|0)){continue}break}m=o(e,l);g=m;if(!f){break m}h=0;if((e|0)>0){break l}break k}g=o(e,l)}if(i[a+8>>2]<1){break j}m=(o(l+ -1|0,e)<<2)+c|0;h=0;while(1){d=h<<2;f=i[d+m>>2];n=i[a+16>>2];t:{if((f|0)>(n|0)){k=i[a+32>>2];i[d+k>>2]=n;break t}k=i[a+32>>2];d=d+k|0;n=i[a+12>>2];if((f|0)<(n|0)){i[d>>2]=n;break t}i[d>>2]=f}h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}d=0;if((f|0)<1){break j}f=g<<2;h=f+c|0;m=b+f|0;while(1){g=d<<2;f=g+h|0;g=i[g+m>>2]+i[g+k>>2]|0;i[f>>2]=g;u:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break u}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}break j}Tm();x()}while(1){d=(h<<2)+t|0;i[d>>2]=i[d>>2]/(f|0);h=h+1|0;if((h|0)!=(e|0)){continue}break}}if(i[a+8>>2]<1){break j}h=0;while(1){d=h<<2;f=i[d+t>>2];g=i[a+16>>2];v:{if((f|0)>(g|0)){k=i[a+32>>2];i[d+k>>2]=g;break v}k=i[a+32>>2];d=d+k|0;g=i[a+12>>2];if((f|0)<(g|0)){i[d>>2]=g;break v}i[d>>2]=f}h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}d=0;if((f|0)<1){break j}f=m<<2;h=f+c|0;m=b+f|0;while(1){g=d<<2;f=g+h|0;g=i[g+m>>2]+i[g+k>>2]|0;i[f>>2]=g;w:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break w}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}d=1;l=l+1|0;if((B|0)!=(l|0)){continue}break}}a=i[j>>2];if(a){i[j+4>>2]=a;nn(a)}nn(u);a=i[j+52>>2];if(a){i[j+56>>2]=a;nn(a)}a=i[j+40>>2];if(a){i[j+44>>2]=a;nn(a)}a=i[j+28>>2];if(a){i[j+32>>2]=a;nn(a)}a=i[j+16>>2];if(a){i[j+20>>2]=a;nn(a)}J=j- -64|0;return d|0}Sm();x()}function wd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0;h=J+ -64|0;J=h;i[a+8>>2]=e;f=a+32|0;k=i[f>>2];d=i[a+36>>2]-k>>2;a:{if(d>>>0>>0){Ra(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=k+(e<<2)}i[h+56>>2]=0;i[h+60>>2]=0;i[h+48>>2]=0;i[h+52>>2]=0;i[h+40>>2]=0;i[h+44>>2]=0;d=h+32|0;i[d>>2]=0;i[d+4>>2]=0;i[h+24>>2]=0;i[h+28>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;i[h>>2]=0;f=0;if(e){Ta(h+16|0,e,h);j=i[h+28>>2];f=i[d>>2]}i[h>>2]=0;d=f-j>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}i[h+32>>2]=(e<<2)+j;break b}Ta(h+16|12,e-d|0,h)}i[h>>2]=0;f=i[h+40>>2];d=i[h+44>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}i[h+44>>2]=f+(e<<2);break c}Ta(h+40|0,e-d|0,h)}i[h>>2]=0;f=i[h+52>>2];d=i[h+56>>2]-f>>2;d:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break d}i[h+56>>2]=f+(e<<2);break d}Ta(h+52|0,e-d|0,h)}e:{if(i[a+8>>2]<=0){break e}g=i[h+16>>2];j=0;while(1){d=j<<2;f=i[d+g>>2];m=i[a+16>>2];f:{if((f|0)>(m|0)){k=i[a+32>>2];i[d+k>>2]=m;break f}k=i[a+32>>2];d=d+k|0;m=i[a+12>>2];if((f|0)<(m|0)){i[d>>2]=m;break f}i[d>>2]=f}j=j+1|0;d=i[a+8>>2];if((j|0)<(d|0)){continue}break}if((d|0)<1){break e}f=0;while(1){g=f<<2;d=g+c|0;g=i[b+g>>2]+i[g+k>>2]|0;i[d>>2]=g;g:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break g}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}}A=i[a+52>>2];z=i[a+48>>2];w=Dm(16);d=w;i[d>>2]=0;i[d+4>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;h:{if(e){if(e>>>0>=1073741824){break h}d=e<<2;s=Dm(d);i[h>>2]=s;f=d+s|0;i[h+8>>2]=f;qn(s,0,d);i[h+4>>2]=f}k=1;d=i[a+56>>2];f=i[d+4>>2];y=i[d>>2];d=f-y|0;i:{if((d|0)<5){break i}f=y-f|0;d=((f|0)>(d|0)?f:d)>>>2|0;B=d>>>0>2?d:2;C=d>>>0>1?d:1;D=e<<2;m=1;while(1){j:{k:{l:{if((m|0)!=(C|0)){m:{n:{k=i[(m<<2)+y>>2];if((k|0)==-1){break n}n=i[z+12>>2];u=k+((k>>>0)%3|0?-1:2)|0;v=n+(u<<2)|0;l=1;f=0;d=k;o:{while(1){g=i[n+(d<<2)>>2];p:{if((g|0)==-1){break p}j=-1;r=i[A>>2];p=i[z>>2];t=i[r+(i[p+(g<<2)>>2]<<2)>>2];q=g+1|0;q=(q>>>0)%3|0?q:g+ -2|0;if((q|0)!=-1){q=i[p+(q<<2)>>2]}else{q=-1}g=g+((g>>>0)%3|0?-1:2)|0;if((g|0)!=-1){j=i[p+(g<<2)>>2]}if((t|0)>=(m|0)){break p}g=i[(q<<2)+r>>2];if((g|0)>=(m|0)){break p}j=i[r+(j<<2)>>2];if((j|0)>=(m|0)){break p}p=i[(h+16|0)+o(f,12)>>2];if((e|0)>=1){r=o(e,j);g=o(e,g);t=o(e,t);j=0;while(1){i[p+(j<<2)>>2]=(i[(j+r<<2)+c>>2]+i[(g+j<<2)+c>>2]|0)-i[(j+t<<2)+c>>2];j=j+1|0;if((j|0)!=(e|0)){continue}break}}g=4;f=f+1|0;if((f|0)==4){break o}}q:{if(l&1){p=d+1|0;d=(p>>>0)%3|0?p:d+ -2|0;g=-1;if((d|0)==-1){break q}d=i[n+(d<<2)>>2];g=-1;if((d|0)==-1){break q}g=d+1|0;g=(g>>>0)%3|0?g:d+ -2|0;break q}d=((d>>>0)%3|0?-1:2)+d|0;g=-1;if((d|0)==-1){break q}d=i[n+(d<<2)>>2];g=-1;if((d|0)==-1){break q}g=d+ -1|0;if((d>>>0)%3|0){break q}g=d+2|0}r:{if((g|0)==(k|0)){break r}d=g;g=(g|0)!=-1;j=(g|l^-1)&1;d=j?d:-1;l=g&l;if(!((u|0)==-1|j)){g=i[v>>2];if((g|0)==-1){break r}l=0;if((g>>>0)%3|0){d=g+ -1|0}else{d=g+2|0}}if((d|0)!=-1){continue}}break}g=f;if((g|0)<1){break n}}n=(e|0)<1;if(!n){qn(s,0,D)}d=g+ -1|0;l=(d<<2)+w|0;d=o(d,12)+a|0;p=d+60|0;r=i[d- -64>>2];k=0;t=i[h>>2];d=0;f=0;while(1){j=i[l>>2];i[l>>2]=j+1;if(r>>>0<=j>>>0){break i}s:{if(i[i[p>>2]+(j>>>3&536870908)>>2]>>>j&1){break s}f=f+1|0;if(n){break s}q=i[(h+16|0)+o(d,12)>>2];j=0;while(1){u=j<<2;v=u+t|0;i[v>>2]=i[v>>2]+i[q+u>>2];j=j+1|0;if((j|0)!=(e|0)){continue}break}}d=d+1|0;if((g|0)!=(d|0)){continue}break}g=o(e,m);d=g;if(!f){break m}j=0;if((e|0)>0){break l}break k}d=o(e,m)}if(i[a+8>>2]<1){break j}l=(o(m+ -1|0,e)<<2)+c|0;j=0;while(1){f=j<<2;g=i[f+l>>2];n=i[a+16>>2];t:{if((g|0)>(n|0)){k=i[a+32>>2];i[f+k>>2]=n;break t}k=i[a+32>>2];f=f+k|0;n=i[a+12>>2];if((g|0)<(n|0)){i[f>>2]=n;break t}i[f>>2]=g}j=j+1|0;g=i[a+8>>2];if((j|0)<(g|0)){continue}break}f=0;if((g|0)<1){break j}d=d<<2;j=d+c|0;l=b+d|0;while(1){g=f<<2;d=g+j|0;g=i[g+l>>2]+i[g+k>>2]|0;i[d>>2]=g;u:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break u}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}break j}Tm();x()}while(1){d=(j<<2)+s|0;i[d>>2]=i[d>>2]/(f|0);j=j+1|0;if((j|0)!=(e|0)){continue}break}}if(i[a+8>>2]<1){break j}j=0;while(1){d=j<<2;f=i[d+s>>2];l=i[a+16>>2];v:{if((f|0)>(l|0)){k=i[a+32>>2];i[d+k>>2]=l;break v}k=i[a+32>>2];d=d+k|0;l=i[a+12>>2];if((f|0)<(l|0)){i[d>>2]=l;break v}i[d>>2]=f}j=j+1|0;d=i[a+8>>2];if((j|0)<(d|0)){continue}break}f=0;if((d|0)<1){break j}d=g<<2;j=d+c|0;l=b+d|0;while(1){g=f<<2;d=g+j|0;g=i[g+l>>2]+i[g+k>>2]|0;i[d>>2]=g;w:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break w}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}}k=1;m=m+1|0;if((B|0)!=(m|0)){continue}break}}a=i[h>>2];if(a){i[h+4>>2]=a;nn(a)}nn(w);a=i[h+52>>2];if(a){i[h+56>>2]=a;nn(a)}a=i[h+40>>2];if(a){i[h+44>>2]=a;nn(a)}a=i[h+28>>2];if(a){i[h+32>>2]=a;nn(a)}a=i[h+16>>2];if(a){i[h+20>>2]=a;nn(a)}J=h- -64|0;return k|0}Sm();x()}function Fl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;f=J-32|0;J=f;d=i[a+12>>2];i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;a:{if(d){if(d>>>0>=1073741824){break a}h=d<<2;e=Dm(h);i[f+8>>2]=e;k=e+h|0;i[f+16>>2]=k;qn(e,0,h);i[f+12>>2]=k}h=i[a+120>>2];g=i[h>>2];if(g){i[h+4>>2]=g;nn(g);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;k=i[f+12>>2];e=i[f+8>>2];d=i[a+12>>2]}i[h+4>>2]=k;i[h>>2]=e;i[h+8>>2]=i[f+16>>2];e=0;i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;b:{if(d){if(d>>>0>=1073741824){break b}d=d<<2;j=Dm(d);i[f+8>>2]=j;e=d+j|0;i[f+16>>2]=e;qn(j,0,d);i[f+12>>2]=e}d=i[a+132>>2];h=i[d>>2];if(h){i[d+4>>2]=h;nn(h);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;j=i[f+8>>2];e=i[f+12>>2]}i[d+4>>2]=e;i[d>>2]=j;i[d+8>>2]=i[f+16>>2];e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;h=f+16|0;i[h>>2]=0;i[h+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Nb(f+8|0);g=i[h>>2];h=i[f+12>>2];d=0;c:{if((g|0)==(h|0)){break c}d=i[e>>2]+i[f+28>>2]|0;e=(d>>>0)/341|0;d=i[h+(e<<2)>>2]+o(d-o(e,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;e=i[f+28>>2];d=e+1|0;i[f+28>>2]=d;d:{if(d>>>0>>0){break d}y=a+96|0;while(1){j=i[f+12>>2];g=d+ -1|0;d=g+i[f+24>>2]|0;e=(d>>>0)/341|0;e=i[j+(e<<2)>>2]+o(d-o(e,341)|0,12)|0;s=i[e+8>>2];n=i[e+4>>2];h=i[e>>2];i[f+28>>2]=g;e=i[f+16>>2];g=e-j|0;if((g?o(g>>2,341)+ -1|0:0)-d>>>0>=682){nn(i[e+ -4>>2]);i[f+16>>2]=i[f+16>>2]+ -4}if(h>>>0>b>>>0){break d}d=i[a+120>>2];k=o(s,12);p=k+i[a+132>>2]|0;j=vl(a,p,n);if(j>>>0>=l[a+12>>2]){break d}g=d+k|0;e:{f:{n=j<<2;d=i[a>>2]-i[n+i[p>>2]>>2]|0;if(!d){d=0;if(!h){break f}while(1){Ml(c,g);i[a+8>>2]=i[a+8>>2]+1;d=d+1|0;if((h|0)!=(d|0)){continue}break}break f}g:{h:{i:{j:{if(h>>>0<=2){k=i[a+108>>2];i[k>>2]=j;e=1;d=i[a+12>>2];if(d>>>0>1){break j}break g}if(l[a+8>>2]>l[a+4>>2]){break d}e=1<>2];t=s+1|0;p=o(t,12);m=d+p|0;if((m|0)!=(g|0)){ua(m,i[g>>2],i[g+4>>2]);d=i[a+120>>2]}d=n+i[d+p>>2]|0;i[d>>2]=e+i[d>>2];d=r(h)^31;e=i[a+32>>2];m=32-e|0;k:{if((d|0)<=(m|0)){g=i[a+28>>2];if((g|0)==i[a+20>>2]){e=0;break k}m=i[g>>2];q=d+e|0;i[a+32>>2]=q;e=m<>>32-d|0;if((q|0)!=32){break k}i[a+32>>2]=0;i[a+28>>2]=g+4;break k}g=i[a+28>>2];q=g+4|0;if((q|0)==i[a+20>>2]){e=0;break k}v=i[g>>2];i[a+28>>2]=q;m=d-m|0;i[a+32>>2]=m;e=i[g+4>>2]>>>32-m|v<>>32-d}d=(h>>>1|0)-e|0;e=h-d|0;l:{if((e|0)==(d|0)){e=d;break l}h=i[a+88>>2];if((h|0)==i[a+80>>2]){break i}g=i[h>>2];m=i[a+92>>2];q=m+1|0;i[a+92>>2]=q;g=g&-2147483648>>>m;m:{if((q|0)==32){i[a+92>>2]=0;i[a+88>>2]=h+4;if(g){break m}break i}if(!g){break i}}}h=e;e=d;break h}while(1){j=(d+ -1|0)==(j|0)?0:j+1|0;i[k+(e<<2)>>2]=j;e=e+1|0;d=i[a+12>>2];if(e>>>0>>0){continue}break}break g}h=d}d=i[a+132>>2];g=d+k|0;k=i[g>>2];n=k+n|0;i[n>>2]=i[n>>2]+1;ua(d+p|0,k,i[g+4>>2]);if(e){k=i[f+28>>2]+i[f+24>>2]|0;g=i[f+16>>2];d=i[f+12>>2];p=g-d|0;if((k|0)==((p?o(p>>2,341)+ -1|0:0)|0)){Nb(f+8|0);k=i[f+24>>2]+i[f+28>>2]|0;g=i[f+16>>2];d=i[f+12>>2]}if((d|0)==(g|0)){d=0}else{g=d;d=(k>>>0)/341|0;d=i[g+(d<<2)>>2]+o(k-o(d,341)|0,12)|0}i[d+8>>2]=s;i[d+4>>2]=j;i[d>>2]=e;i[f+28>>2]=i[f+28>>2]+1}if(!h){break f}e=i[f+28>>2]+i[f+24>>2]|0;k=i[f+16>>2];d=i[f+12>>2];g=k-d|0;if((e|0)==((g?o(g>>2,341)+ -1|0:0)|0)){Nb(f+8|0);e=i[f+24>>2]+i[f+28>>2]|0;k=i[f+16>>2];d=i[f+12>>2]}g=0;n:{if((d|0)==(k|0)){break n}g=d;d=(e>>>0)/341|0;g=i[g+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[g+8>>2]=t;i[g+4>>2]=j;i[g>>2]=h;d=i[f+28>>2]+1|0;i[f+28>>2]=d;break e}if(!h){break f}s=0;while(1){if(d){q=i[g>>2];v=i[p>>2];k=i[a+96>>2];z=i[a+108>>2];d=0;while(1){n=z+(d<<2)|0;i[k+(i[n>>2]<<2)>>2]=0;j=i[n>>2]<<2;e=i[a>>2]-i[j+v>>2]|0;o:{if(!e){break o}j=j+k|0;t=i[a+52>>2];u=32-t|0;if((e|0)<=(u|0)){m=i[a+48>>2];if((m|0)==i[a+40>>2]){i[j>>2]=0;break o}i[j>>2]=i[m>>2]<>>32-e;e=e+i[a+52>>2]|0;i[a+52>>2]=e;if((e|0)!=32){break o}i[a+52>>2]=0;i[a+48>>2]=m+4;break o}m=i[a+48>>2];w=m+4|0;if((w|0)==i[a+40>>2]){i[j>>2]=0;break o}A=i[m>>2];i[a+48>>2]=w;u=e-u|0;i[a+52>>2]=u;i[j>>2]=i[m+4>>2]>>>32-u|A<>>32-e}e=i[n>>2]<<2;j=e+k|0;i[j>>2]=i[j>>2]|i[e+q>>2];d=d+1|0;if(d>>>0>2]){continue}break}}Ml(c,y);i[a+8>>2]=i[a+8>>2]+1;s=s+1|0;if((s|0)==(h|0)){break f}d=i[a+12>>2];continue}}d=i[f+28>>2]}if(d){continue}break}}b=i[f+24>>2];c=(b>>>0)/341|0;a=i[f+12>>2];j=i[f+16>>2];p:{if((a|0)==(j|0)){break p}k=(c<<2)+a|0;e=i[k>>2];d=e+o(b-o(c,341)|0,12)|0;b=b+i[f+28>>2]|0;c=(b>>>0)/341|0;b=i[(c<<2)+a>>2]+o(b-o(c,341)|0,12)|0;if((d|0)==(b|0)){break p}while(1){d=d+12|0;if((d-e|0)==4092){e=i[k+4>>2];k=k+4|0;d=e}if((b|0)!=(d|0)){continue}break}}i[f+28>>2]=0;d=j-a>>2;if(d>>>0>2){while(1){nn(i[a>>2]);a=i[f+12>>2]+4|0;i[f+12>>2]=a;j=i[f+16>>2];d=j-a>>2;if(d>>>0>2){continue}break}}e=170;q:{switch(d+ -1|0){case 1:e=341;case 0:i[f+24>>2]=e;break;default:break q}}r:{if((a|0)==(j|0)){break r}while(1){nn(i[a>>2]);a=a+4|0;if((j|0)!=(a|0)){continue}break}a=i[f+16>>2];b=i[f+12>>2];if((a|0)==(b|0)){break r}i[f+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[f+8>>2];if(a){nn(a)}J=f+32|0;return}Sm();x()}Sm();x()}function Gl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;f=J-32|0;J=f;d=i[a+12>>2];i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;a:{if(d){if(d>>>0>=1073741824){break a}e=d<<2;g=Dm(e);i[f+8>>2]=g;h=e+g|0;i[f+16>>2]=h;qn(g,0,e);i[f+12>>2]=h}e=i[a+120>>2];k=i[e>>2];if(k){i[e+4>>2]=k;nn(k);i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;h=i[f+12>>2];g=i[f+8>>2];d=i[a+12>>2]}i[e+4>>2]=h;i[e>>2]=g;i[e+8>>2]=i[f+16>>2];g=0;i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;b:{if(d){if(d>>>0>=1073741824){break b}d=d<<2;j=Dm(d);i[f+8>>2]=j;g=d+j|0;i[f+16>>2]=g;qn(j,0,d);i[f+12>>2]=g}d=i[a+132>>2];e=i[d>>2];if(e){i[d+4>>2]=e;nn(e);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;j=i[f+8>>2];g=i[f+12>>2]}i[d+4>>2]=g;i[d>>2]=j;i[d+8>>2]=i[f+16>>2];e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;k=f+16|0;i[k>>2]=0;i[k+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Nb(f+8|0);g=i[k>>2];k=i[f+12>>2];d=0;c:{if((g|0)==(k|0)){break c}d=i[e>>2]+i[f+28>>2]|0;e=(d>>>0)/341|0;d=i[k+(e<<2)>>2]+o(d-o(e,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;e=i[f+28>>2];d=e+1|0;i[f+28>>2]=d;d:{if(d>>>0>>0){break d}v=a+96|0;while(1){h=i[f+12>>2];j=d+ -1|0;d=j+i[f+24>>2]|0;e=(d>>>0)/341|0;e=i[h+(e<<2)>>2]+o(d-o(e,341)|0,12)|0;q=i[e+8>>2];g=i[e+4>>2];k=i[e>>2];i[f+28>>2]=j;e=i[f+16>>2];j=e-h|0;if((j?o(j>>2,341)+ -1|0:0)-d>>>0>=682){nn(i[e+ -4>>2]);i[f+16>>2]=i[f+16>>2]+ -4}if(k>>>0>b>>>0){break d}d=i[a+12>>2];j=(g|0)==(d+ -1|0)?0:g+1|0;if(j>>>0>=d>>>0){break d}d=i[a+120>>2];g=o(q,12);h=d+g|0;e:{f:{p=j<<2;s=g+i[a+132>>2]|0;e=i[a>>2]-i[p+i[s>>2]>>2]|0;if(!e){d=0;if(!k){break f}while(1){Ml(c,h);i[a+8>>2]=i[a+8>>2]+1;d=d+1|0;if((k|0)!=(d|0)){continue}break}break f}g:{h:{i:{j:{if(k>>>0<=2){e=i[a+108>>2];i[e>>2]=j;g=1;d=i[a+12>>2];if(d>>>0>1){break j}break g}if(l[a+8>>2]>l[a+4>>2]){break d}m=d;d=g+12|0;ua(m+d|0,i[h>>2],i[h+4>>2]);d=p+i[d+i[a+120>>2]>>2]|0;i[d>>2]=i[d>>2]+(1<>2];n=32-e|0;k:{if((d|0)<=(n|0)){h=i[a+28>>2];if((h|0)==i[a+20>>2]){e=0;break k}n=i[h>>2];m=d+e|0;i[a+32>>2]=m;e=n<>>32-d|0;if((m|0)!=32){break k}i[a+32>>2]=0;i[a+28>>2]=h+4;break k}h=i[a+28>>2];m=h+4|0;if((m|0)==i[a+20>>2]){e=0;break k}s=i[h>>2];i[a+28>>2]=m;n=d-n|0;i[a+32>>2]=n;e=i[h+4>>2]>>>32-n|s<>>32-d}n=q+1|0;d=(k>>>1|0)-e|0;e=k-d|0;l:{if((e|0)==(d|0)){e=d;break l}k=i[a+88>>2];if((k|0)==i[a+80>>2]){break i}h=i[k>>2];m=i[a+92>>2];s=m+1|0;i[a+92>>2]=s;h=h&-2147483648>>>m;m:{if((s|0)==32){i[a+92>>2]=0;i[a+88>>2]=k+4;if(h){break m}break i}if(!h){break i}}}k=e;e=d;break h}while(1){j=(d+ -1|0)==(j|0)?0:j+1|0;i[e+(g<<2)>>2]=j;g=g+1|0;d=i[a+12>>2];if(g>>>0>>0){continue}break}break g}k=d}d=i[a+132>>2];g=d+g|0;h=i[g>>2];p=h+p|0;i[p>>2]=i[p>>2]+1;ua(d+o(n,12)|0,h,i[g+4>>2]);if(e){g=i[f+28>>2]+i[f+24>>2]|0;h=i[f+16>>2];d=i[f+12>>2];p=h-d|0;if((g|0)==((p?o(p>>2,341)+ -1|0:0)|0)){Nb(f+8|0);g=i[f+24>>2]+i[f+28>>2]|0;h=i[f+16>>2];d=i[f+12>>2]}if((d|0)==(h|0)){d=0}else{m=d;d=(g>>>0)/341|0;d=i[m+(d<<2)>>2]+o(g-o(d,341)|0,12)|0}i[d+8>>2]=q;i[d+4>>2]=j;i[d>>2]=e;i[f+28>>2]=i[f+28>>2]+1}if(!k){break f}g=i[f+28>>2]+i[f+24>>2]|0;h=i[f+16>>2];d=i[f+12>>2];e=h-d|0;if((g|0)==((e?o(e>>2,341)+ -1|0:0)|0)){Nb(f+8|0);g=i[f+24>>2]+i[f+28>>2]|0;h=i[f+16>>2];d=i[f+12>>2]}e=0;n:{if((d|0)==(h|0)){break n}e=d;d=(g>>>0)/341|0;e=i[e+(d<<2)>>2]+o(g-o(d,341)|0,12)|0}i[e+8>>2]=n;i[e+4>>2]=j;i[e>>2]=k;d=i[f+28>>2]+1|0;i[f+28>>2]=d;break e}if(!k){break f}q=0;while(1){if(d){w=i[h>>2];y=i[s>>2];j=i[a+96>>2];z=i[a+108>>2];d=0;while(1){p=z+(d<<2)|0;i[j+(i[p>>2]<<2)>>2]=0;g=i[p>>2]<<2;e=i[a>>2]-i[g+y>>2]|0;o:{if(!e){break o}g=g+j|0;n=i[a+52>>2];t=32-n|0;if((e|0)<=(t|0)){m=i[a+48>>2];if((m|0)==i[a+40>>2]){i[g>>2]=0;break o}i[g>>2]=i[m>>2]<>>32-e;e=e+i[a+52>>2]|0;i[a+52>>2]=e;if((e|0)!=32){break o}i[a+52>>2]=0;i[a+48>>2]=m+4;break o}m=i[a+48>>2];u=m+4|0;if((u|0)==i[a+40>>2]){i[g>>2]=0;break o}A=i[m>>2];i[a+48>>2]=u;t=e-t|0;i[a+52>>2]=t;i[g>>2]=i[m+4>>2]>>>32-t|A<>>32-e}e=i[p>>2]<<2;g=e+j|0;i[g>>2]=i[g>>2]|i[e+w>>2];d=d+1|0;if(d>>>0>2]){continue}break}}Ml(c,v);i[a+8>>2]=i[a+8>>2]+1;q=q+1|0;if((q|0)==(k|0)){break f}d=i[a+12>>2];continue}}d=i[f+28>>2]}if(d){continue}break}}b=i[f+24>>2];c=(b>>>0)/341|0;a=i[f+12>>2];j=i[f+16>>2];p:{if((a|0)==(j|0)){break p}h=(c<<2)+a|0;g=i[h>>2];d=g+o(b-o(c,341)|0,12)|0;b=b+i[f+28>>2]|0;c=(b>>>0)/341|0;b=i[(c<<2)+a>>2]+o(b-o(c,341)|0,12)|0;if((d|0)==(b|0)){break p}while(1){d=d+12|0;if((d-g|0)==4092){g=i[h+4>>2];h=h+4|0;d=g}if((b|0)!=(d|0)){continue}break}}i[f+28>>2]=0;d=j-a>>2;if(d>>>0>2){while(1){nn(i[a>>2]);a=i[f+12>>2]+4|0;i[f+12>>2]=a;j=i[f+16>>2];d=j-a>>2;if(d>>>0>2){continue}break}}g=170;q:{switch(d+ -1|0){case 1:g=341;case 0:i[f+24>>2]=g;break;default:break q}}r:{if((a|0)==(j|0)){break r}while(1){nn(i[a>>2]);a=a+4|0;if((j|0)!=(a|0)){continue}break}a=i[f+16>>2];b=i[f+12>>2];if((a|0)==(b|0)){break r}i[f+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[f+8>>2];if(a){nn(a)}J=f+32|0;return}Sm();x()}Sm();x()}function Bb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;e=J-720|0;J=e;a:{b:{c:{d:{e:{f:{if(k[b+38>>1]>=515){i[e+680>>2]=0;i[e+672>>2]=0;i[e+676>>2]=0;if((M[i[i[a>>2]+24>>2]](a)|0)<1){break d}t=a+36|0;q=e+24|0;while(1){c=M[i[i[a>>2]+20>>2]](a,p)|0;d=i[i[i[(M[i[i[a>>2]+28>>2]](a)|0)+4>>2]+8>>2]+(c<<2)>>2];if(i[d+28>>2]==9){f=i[e+672>>2];c=i[e+676>>2]-f>>2;r=g[d+24|0];g:{if(c>>>0>>0){na(e+672|0,r-c|0);break g}if(c>>>0<=r>>>0){break g}i[e+676>>2]=f+(r<<2)}d=i[b+12>>2];c=i[b+20>>2];n=i[b+16>>2];h=r<<2;f=h;u=n+f|0;if(u>>>0>>0){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break b}pn(i[e+672>>2],n+i[b>>2]|0,h);c=b;h=c;d=i[c+20>>2];n=f+i[c+16>>2]|0;if(n>>>0>>0){d=d+1|0}f=n;i[h+16>>2]=f;i[c+20>>2]=d;s=i[b+12>>2];h=s;c=d;n=f+4|0;if(n>>>0<4){d=d+1|0}u=i[b+8>>2];if((h|0)<(d|0)?1:(h|0)<=(d|0)?u>>>0>>0:0){break b}v=i[b>>2];h=v+f|0;h=j[h|0]|j[h+1|0]<<8|(j[h+2|0]<<16|j[h+3|0]<<24);i[b+16>>2]=n;i[b+20>>2]=d;if((s|0)<(d|0)?1:(s|0)<=(d|0)?u>>>0<=n>>>0:0){break b}n=j[n+v|0];f=f+5|0;if(f>>>0<5){c=c+1|0}d=b;i[d+16>>2]=f;i[d+20>>2]=c;if(n>>>0>31){break b}i[e+20>>2]=-1;i[e+16>>2]=1140;c=q;i[c+8>>2]=0;i[c+12>>2]=0;i[c>>2]=0;i[c+4>>2]=0;c=0;h:{if(!ta(e+16|0,n,i[e+672>>2],r,(Pn(2,h),Qn()))){break h}if(!Ca(e+16|0,i[i[a+60>>2]+((i[a+40>>2]-i[a+36>>2]|0)/24<<2)>>2])){break h}c=i[a+40>>2];i:{if((c|0)!=i[a+44>>2]){i[c>>2]=1140;d=i[e+20>>2];i[c+16>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+4>>2]=d;d=i[e+28>>2]-i[e+24>>2]|0;if(d){f=d>>2;if(f>>>0>=1073741824){break f}d=Dm(d);i[c+8>>2]=d;i[c+12>>2]=d;i[c+16>>2]=d+(f<<2);f=c;n=i[e+24>>2];r=i[e+28>>2]-n|0;if((r|0)>=1){d=pn(d,n,r)+r|0}i[f+12>>2]=d}m[c+20>>2]=m[e+36>>2];i[a+40>>2]=c+24;break i}Cb(t,e+16|0)}c=1}i[e+16>>2]=1140;d=i[e+24>>2];if(d){i[e+28>>2]=d;nn(d)}if(!c){break c}}p=p+1|0;if((p|0)<(M[i[i[a>>2]+24>>2]](a)|0)){continue}break}break d}n=M[i[i[a>>2]+24>>2]](a)|0;i[e+712>>2]=0;i[e+704>>2]=0;i[e+708>>2]=0;j:{if(n){if(n>>>0>=214748365){break e}c=o(n,20);d=Dm(c);i[e+704>>2]=d;q=c+d|0;i[e+712>>2]=q;f=qn(d,0,c-((c+ -20>>>0)%20|0)|0);i[e+708>>2]=q;c=0;while(1){d=M[i[i[a>>2]+20>>2]](a,c)|0;q=i[i[i[(M[i[i[a>>2]+28>>2]](a)|0)+4>>2]+8>>2]+(d<<2)>>2];p=i[q+28>>2];d=Fh(p);h=(d|0)>0?d:0;if(h>>>0>4){break j}d=o(c,20)+f|0;s=g[q+24|0];i[d+16>>2]=s;i[d+12>>2]=h;i[d+8>>2]=p;i[d+4>>2]=r;i[d>>2]=q;r=r+s|0;c=c+1|0;if((n|0)!=(c|0)){continue}break}}c=M[i[i[a>>2]+20>>2]](a,0)|0;u=i[i[i[(M[i[i[a>>2]+28>>2]](a)|0)+4>>2]+8>>2]+(c<<2)>>2];g[u+84|0]=1;i[u+72>>2]=i[u+68>>2];s=i[b+8>>2];h=i[b+16>>2];q=i[b+12>>2];d=q;c=i[b+20>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?s>>>0<=h>>>0:0){break j}v=i[b>>2];y=j[v+h|0];p=b;d=c;f=h+1|0;if(f>>>0<1){d=d+1|0}t=f;f=d;i[p+16>>2]=t;i[p+20>>2]=d;k:{l:{switch(y|0){case 0:if((q|0)<(f|0)?1:(q|0)<=(f|0)?s>>>0<=t>>>0:0){break j}a=c;f=h+2|0;if(f>>>0<2){a=a+1|0}d=b;i[d+16>>2]=f;i[d+20>>2]=a;a=h+6|0;if(a>>>0<6){c=c+1|0}d=a;a=c;if((q|0)<(c|0)?1:(q|0)<=(c|0)?s>>>0>>0:0){break j}c=f+v|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=d;i[b+20>>2]=a;Ka(u,c);a=e+672|0;i[a+20>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+20>>2]=c;c=a;a=db(e+16|0,e+704|0);c=Db(c,b,a);b=i[a+16>>2];if(b){i[a+20>>2]=b;nn(b)}b=i[a>>2];if(b){i[a+4>>2]=b;nn(b)}if(c){break k}break j;case 1:break l;default:break j}}if((q|0)<(f|0)?1:(q|0)<=(f|0)?s>>>0<=t>>>0:0){break j}t=j[t+v|0];d=c;p=h+2|0;if(p>>>0<2){d=d+1|0}i[b+16>>2]=p;i[b+20>>2]=d;if(t>>>0>=7){i[e>>2]=t;wn(1620,e);break j}d=h+6|0;if(d>>>0<6){c=c+1|0}f=d;d=c;if((q|0)<(c|0)?1:(q|0)<=(c|0)?s>>>0>>0:0){break j}c=p+v|0;q=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=d;if(n){c=0;while(1){d=M[i[i[a>>2]+20>>2]](a,c)|0;d=i[i[i[(M[i[i[a>>2]+28>>2]](a)|0)+4>>2]+8>>2]+(d<<2)>>2];Ka(d,q);g[d+84|0]=1;i[d+72>>2]=i[d+68>>2];c=c+1|0;if((n|0)!=(c|0)){continue}break}}p=0;a=db(e+672|0,e+704|0);m:{n:{o:{switch(t|0){case 0:c=gb(e+16|0,r);b=eb(c,b,a);fb(c);if(b){break n}break m;case 1:c=gb(e+16|0,r);b=hb(c,b,a);fb(c);if(b){break n}break m;case 2:c=kb(e+16|0,r);b=ib(c,b,a);jb(c);if(b){break n}break m;case 3:c=kb(e+16|0,r);b=lb(c,b,a);jb(c);if(b){break n}break m;case 4:c=ob(e+16|0,r);b=mb(c,b,a);nb(c);if(b){break n}break m;case 5:c=ob(e+16|0,r);b=pb(c,b,a);nb(c);if(b){break n}break m;case 6:break o;default:break m}}c=ob(e+16|0,r);b=qb(c,b,a);nb(c);if(!b){break m}}p=1}b=i[a+16>>2];if(b){i[a+20>>2]=b;nn(b)}b=i[a>>2];if(b){i[a+4>>2]=b;nn(b)}if(!p){break j}}w=1}a=i[e+704>>2];if(!a){break a}i[e+708>>2]=a;nn(a);break a}Sm();x()}Sm();x()}w=1;if(i[a+52>>2]==i[a+48>>2]){break b}p=0;while(1){if(!Eb(1,e+16|0,b)){break c}c=i[a+48>>2];d=i[e+16>>2];i[c+(p<<2)>>2]=0-(d&1)^d>>>1;p=p+1|0;if(p>>>0>2]-c>>2>>>0){continue}break}break b}w=0}a=i[e+672>>2];if(!a){break a}i[e+676>>2]=a;nn(a)}J=e+720|0;return w|0}function Tf(a,b){var c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0;q=J-16|0;J=q;a:{b:{c:{d:{if(j[i[a+4>>2]+36|0]<=1){p=-1;m=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];d=e+4|0;if(d>>>0<4){c=c+1|0}f=d;d=c;if((m|0)<(c|0)?1:(m|0)<=(c|0)?l[b+8>>2]>>0:0){break c}c=e+i[b>>2]|0;r=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[q+12>>2]=r;i[b+16>>2]=f;i[b+20>>2]=d;break d}p=-1;if(!Pf(1,q+12|0,b)){break c}r=i[q+12>>2]}e:{f:{g:{h:{i:{j:{if(!r){break j}c=i[a+8>>2];if(r>>>0>(i[c+4>>2]-i[c>>2]>>2>>>0)/3>>>0){break c}c=k[i[a+4>>2]+36>>1];if((c<<24|c<<8&16711680)>>>16>>>0>=258){v=a+36|0;m=0;k:{l:{while(1){if(!Pf(1,q+8|0,b)){break c}c=i[q+8>>2];if(!Pf(1,q+8|0,b)){break c}m=c+m|0;c=i[q+8>>2];if(m>>>0>>0){break c}n=m-c|0;h=i[a+40>>2];m:{if((h|0)!=i[a+44>>2]){i[h+4>>2]=m;i[h>>2]=n;i[a+40>>2]=h+12;break m}c=i[v>>2];d=h-c|0;e=(d|0)/12|0;h=e+1|0;if(h>>>0>=357913942){break l}t=e<<1;h=e>>>0<178956970?t>>>0>>0?h:t:357913941;f=0;n:{if(!h){break n}if(h>>>0>=357913942){break k}f=Dm(o(h,12))}e=f+o(e,12)|0;i[e+4>>2]=m;i[e>>2]=n;n=e+o((d|0)/-12|0,12)|0;f=f+o(h,12)|0;h=e+12|0;if((d|0)>=1){pn(n,c,d)}i[a+44>>2]=f;i[a+40>>2]=h;i[a+36>>2]=n;if(!c){break m}nn(c)}s=s+1|0;if((s|0)!=(r|0)){continue}break}m=0;Ch(b,0,0);e=r>>>0>1?r:1;while(1){c=j[b+36|0];d=k[i[a+4>>2]+36>>1];o:{if((d<<24|d<<8&16711680)>>>16>>>0<=513){if(!c){break o}h=0;c=i[b+32>>2];r=c>>>3|0;f=i[b+24>>2];d=r+f|0;p=i[b+28>>2];p:{if(d>>>0>=p>>>0){d=c;break p}h=j[d|0];d=c+1|0;i[b+32>>2]=d;r=d>>>3|0;h=h>>>(c&7)&1}if(f+r>>>0>=p>>>0){break o}i[b+32>>2]=d+1;break o}if(!c){break o}h=0;c=i[b+32>>2];d=i[b+24>>2]+(c>>>3|0)|0;if(d>>>0>=l[b+28>>2]){break o}d=j[d|0];i[b+32>>2]=c+1;h=d>>>(c&7)&1}c=i[a+36>>2]+o(m,12)|0;g[c+8|0]=j[c+8|0]&254|h&1;m=m+1|0;if((e|0)!=(m|0)){continue}break}Eh(b);break j}Sm();x()}break a}z=a+36|0;v=q+10|0;while(1){e=i[b+12>>2];m=e;c=i[b+20>>2];d=c;n=i[b+16>>2];f=n+4|0;if(f>>>0<4){c=c+1|0}t=i[b+8>>2];u=f;f=c;if((e|0)<(c|0)?1:(e|0)<=(c|0)?t>>>0>>0:0){break c}w=i[b>>2];c=w+n|0;y=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=u;i[b+20>>2]=f;e=m;c=d;f=n+8|0;if(f>>>0<8){c=c+1|0}if((e|0)<(c|0)?1:(e|0)<=(c|0)?t>>>0>>0:0){break c}e=u+w|0;u=j[e|0]|j[e+1|0]<<8|(j[e+2|0]<<16|j[e+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=c;if((m|0)<(c|0)?1:(m|0)<=(c|0)?t>>>0<=f>>>0:0){break c}e=j[f+w|0];c=d;d=n+9|0;if(d>>>0<9){c=c+1|0}i[b+16>>2]=d;i[b+20>>2]=c;h=e&1|h&-2;c=i[a+40>>2];q:{if((c|0)!=i[a+44>>2]){g[c+8|0]=h;i[c+4>>2]=u;i[c>>2]=y;d=j[q+8|0]|j[q+9|0]<<8;g[c+9|0]=d;g[c+10|0]=d>>>8;g[c+11|0]=j[v|0];i[a+40>>2]=c+12;break q}d=i[z>>2];m=c-d|0;c=(m|0)/12|0;f=c+1|0;if(f>>>0>=357913942){break i}n=c<<1;f=c>>>0<178956970?n>>>0>>0?f:n:357913941;e=0;r:{if(!f){break r}if(f>>>0>=357913942){break a}e=Dm(o(f,12))}c=e+o(c,12)|0;g[c+8|0]=h;i[c+4>>2]=u;i[c>>2]=y;n=j[q+8|0]|j[q+9|0]<<8;g[c+9|0]=n;g[c+10|0]=n>>>8;g[c+11|0]=j[v|0];n=c+o((m|0)/-12|0,12)|0;e=e+o(f,12)|0;c=c+12|0;if((m|0)>=1){pn(n,d,m)}i[a+44>>2]=e;i[a+40>>2]=c;i[a+36>>2]=n;if(!d){break q}nn(d)}s=s+1|0;if((s|0)!=(r|0)){continue}break}}i[q+8>>2]=0;c=k[i[a+4>>2]+36>>1];c=(c<<24|c<<8&16711680)>>>16|0;s:{if(c>>>0<=511){p=-1;m=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];d=e+4|0;if(d>>>0<4){c=c+1|0}f=d;d=c;if((m|0)<(c|0)?1:(m|0)<=(c|0)?l[b+8>>2]>>0:0){break c}c=e+i[b>>2]|0;r=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=d;break s}if((c|0)!=512){break e}p=-1;if(!Pf(1,q+8|0,b)){break c}r=i[q+8>>2]}if(!r){break e}c=k[i[a+4>>2]+36>>1];if((c<<24|c<<8&16711680)>>>16>>>0<258){break f}s=a+48|0;h=0;m=0;while(1){if(!Pf(1,q+4|0,b)){break g}m=i[q+4>>2]+m|0;c=i[a+52>>2];t:{if((c|0)!=i[a+56>>2]){i[c>>2]=m;i[a+52>>2]=c+4;break t}d=i[s>>2];e=c-d|0;p=e>>2;f=p+1|0;if(f>>>0>=1073741824){break h}n=e>>1;f=p>>>0<536870911?n>>>0>>0?f:n:1073741823;c=0;u:{if(!f){break u}if(f>>>0>=1073741824){break a}c=Dm(f<<2)}p=c+(p<<2)|0;i[p>>2]=m;f=c+(f<<2)|0;p=p+4|0;if((e|0)>=1){pn(c,d,e)}i[a+56>>2]=f;i[a+52>>2]=p;i[a+48>>2]=c;if(!d){break t}nn(d)}h=h+1|0;if((r|0)!=(h|0)){continue}break}break e}Sm();x()}Sm();x()}p=-1;break c}s=a+48|0;p=0;while(1){m=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];d=e+4|0;if(d>>>0<4){c=c+1|0}h=d;d=c;if((m|0)<(c|0)?1:(m|0)<=(c|0)?l[b+8>>2]>>0:0){p=-1;break c}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=d;c=i[a+52>>2];v:{if((c|0)!=i[a+56>>2]){i[c>>2]=f;i[a+52>>2]=c+4;break v}d=i[s>>2];m=c-d|0;h=m>>2;e=h+1|0;if(e>>>0>=1073741824){break b}n=m>>1;e=h>>>0<536870911?n>>>0>>0?e:n:1073741823;c=0;w:{if(!e){break w}if(e>>>0>=1073741824){break a}c=Dm(e<<2)}h=c+(h<<2)|0;i[h>>2]=f;e=c+(e<<2)|0;f=h+4|0;if((m|0)>=1){pn(c,d,m)}i[a+56>>2]=e;i[a+52>>2]=f;i[a+48>>2]=c;if(!d){break v}nn(d)}p=p+1|0;if((r|0)!=(p|0)){continue}break}}p=i[b+16>>2]}J=q+16|0;return p}Sm();x()}Ba(12220);x()}function Ul(a,b,c,d,e){var f=0,k=0,l=0,m=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;f=J-80|0;J=f;i[f+76>>2]=b;z=f+55|0;w=f+56|0;b=0;a:{b:while(1){c:{if((t|0)<0){break c}if((b|0)>(2147483647-t|0)){i[4312]=61;t=-1;break c}t=b+t|0}d:{e:{f:{m=i[f+76>>2];b=m;k=j[b|0];if(k){while(1){g:{k=k&255;h:{if(!k){k=b;break h}if((k|0)!=37){break g}k=b;while(1){if(j[b+1|0]!=37){break h}l=b+2|0;i[f+76>>2]=l;k=k+1|0;p=j[b+2|0];b=l;if((p|0)==37){continue}break}}b=k-m|0;if(a){Vl(a,m,b)}if(b){continue b}k=f;l=!Pl(g[i[f+76>>2]+1|0]);b=i[f+76>>2];i:{if(!(l|j[b+2|0]!=36)){v=g[b+1|0]+ -48|0;x=1;b=b+3|0;break i}v=-1;b=b+1|0}i[k+76>>2]=b;q=0;u=g[b|0];l=u+ -32|0;j:{if(l>>>0>31){k=b;break j}k=b;l=1<>2]=k;q=l|q;u=g[b+1|0];l=u+ -32|0;if(l>>>0>=32){break j}b=k;l=1<>2];if(j[b+2|0]!=36){break m}i[((g[b+1|0]<<2)+e|0)+ -192>>2]=10;r=i[((g[b+1|0]<<3)+d|0)+ -384>>2];x=1;b=b+3|0;break l}if(x){break f}x=0;r=0;if(a){b=i[c>>2];i[c>>2]=b+4;r=i[b>>2]}b=i[f+76>>2]+1|0}i[l+76>>2]=b;if((r|0)>-1){break k}r=0-r|0;q=q|8192;break k}r=Wl(f+76|0);if((r|0)<0){break f}b=i[f+76>>2]}p=-1;n:{if(j[b|0]!=46){break n}if(j[b+1|0]==42){o:{if(!Pl(g[b+2|0])){break o}b=i[f+76>>2];if(j[b+3|0]!=36){break o}i[((g[b+2|0]<<2)+e|0)+ -192>>2]=10;p=i[((g[b+2|0]<<3)+d|0)+ -384>>2];b=b+4|0;i[f+76>>2]=b;break n}if(x){break f}if(a){b=i[c>>2];i[c>>2]=b+4;p=i[b>>2]}else{p=0}b=i[f+76>>2]+2|0;i[f+76>>2]=b;break n}i[f+76>>2]=b+1;p=Wl(f+76|0);b=i[f+76>>2]}k=0;while(1){y=k;s=-1;if(g[b|0]+ -65>>>0>57){break a}u=b+1|0;i[f+76>>2]=u;k=g[b|0];b=u;k=j[(k+o(y,58)|0)+14959|0];if(k+ -1>>>0<8){continue}break}p:{q:{if((k|0)!=19){if(!k){break a}if((v|0)>=0){i[(v<<2)+e>>2]=k;b=(v<<3)+d|0;k=i[b+4>>2];i[f+64>>2]=i[b>>2];i[f+68>>2]=k;break q}if(!a){break d}Xl(f- -64|0,k,c);u=i[f+76>>2];break p}if((v|0)>-1){break a}}b=0;if(!a){continue b}}l=q&-65537;k=q&8192?l:q;s=0;v=15005;q=w;r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{b=g[u+ -1|0];b=y?(b&15)==3?b&-33:b:b;switch(b+ -88|0){case 11:break r;case 9:case 13:case 14:case 15:break s;case 27:break x;case 12:case 17:break A;case 23:break B;case 0:case 32:break C;case 24:break D;case 22:break E;case 29:break F;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 e;default:break G}}H:{switch(b+ -65|0){case 0:case 4:case 5:case 6:break s;case 2:break v;case 1:case 3:break e;default:break H}}if((b|0)==83){break w}break e}b=i[f+64>>2];m=i[f+68>>2];v=15005;break z}b=0;I:{switch(y&255){case 0:i[i[f+64>>2]>>2]=t;continue b;case 1:i[i[f+64>>2]>>2]=t;continue b;case 2:k=i[f+64>>2];i[k>>2]=t;i[k+4>>2]=t>>31;continue b;case 3:h[i[f+64>>2]>>1]=t;continue b;case 4:g[i[f+64>>2]]=t;continue b;case 6:i[i[f+64>>2]>>2]=t;continue b;case 7:break I;default:continue b}}k=i[f+64>>2];i[k>>2]=t;i[k+4>>2]=t>>31;continue b}p=p>>>0>8?p:8;k=k|8;b=120}m=Yl(i[f+64>>2],i[f+68>>2],w,b&32);if(!(k&8)|!(i[f+64>>2]|i[f+68>>2])){break y}v=(b>>>4|0)+15005|0;s=2;break y}m=Zl(i[f+64>>2],i[f+68>>2],w);if(!(k&8)){break y}b=w-m|0;p=(p|0)>(b|0)?p:b+1|0;break y}l=i[f+68>>2];m=l;b=i[f+64>>2];if((l|0)<-1?1:(l|0)<=-1){m=0-(m+(0>>0)|0)|0;b=0-b|0;i[f+64>>2]=b;i[f+68>>2]=m;s=1;v=15005;break z}if(k&2048){s=1;v=15006;break z}s=k&1;v=s?15007:15005}m=_l(b,m,w)}k=(p|0)>-1?k&-65537:k;b=i[f+64>>2];l=i[f+68>>2];if(!(!!(b|l)|p)){p=0;m=w;break e}b=!(b|l)+(w-m|0)|0;p=(p|0)>(b|0)?p:b;break e}b=i[f+64>>2];m=b?b:15015;b=Ql(m,p);q=b?b:p+m|0;k=l;p=b?b-m|0:p;break e}l=i[f+64>>2];if(p){break u}b=0;$l(a,32,r,0,k);break t}i[f+12>>2]=0;i[f+8>>2]=i[f+64>>2];i[f+64>>2]=f+8;p=-1;l=f+8|0}b=0;J:{while(1){m=i[l>>2];if(!m){break J}m=Sl(f+4|0,m);q=(m|0)<0;if(!(q|m>>>0>p-b>>>0)){l=l+4|0;b=b+m|0;if(p>>>0>b>>>0){continue}break J}break}s=-1;if(q){break a}}$l(a,32,r,b,k);if(!b){b=0;break t}u=0;l=i[f+64>>2];while(1){m=i[l>>2];if(!m){break t}m=Sl(f+4|0,m);u=m+u|0;if((u|0)>(b|0)){break t}Vl(a,f+4|0,m);l=l+4|0;if(u>>>0>>0){continue}break}}$l(a,32,r,b,k^8192);b=(r|0)>(b|0)?r:b;continue b}b=M[0](a,n[f+64>>3],r,p,k,b)|0;continue b}g[f+55|0]=i[f+64>>2];p=1;m=z;k=l;break e}l=b+1|0;i[f+76>>2]=l;k=j[b+1|0];b=l;continue}}s=t;if(a){break a}if(!x){break d}b=1;while(1){a=i[(b<<2)+e>>2];if(a){Xl((b<<3)+d|0,a,c);s=1;b=b+1|0;if((b|0)!=10){continue}break a}break}s=1;if(b>>>0>=10){break a}while(1){if(i[(b<<2)+e>>2]){break f}b=b+1|0;if((b|0)!=10){continue}break}break a}s=-1;break a}q=q-m|0;p=(p|0)<(q|0)?q:p;l=p+s|0;b=(r|0)<(l|0)?l:r;$l(a,32,b,l,k);Vl(a,v,s);$l(a,48,b,l,k^65536);$l(a,48,p,q,0);Vl(a,m,q);$l(a,32,b,l,k^8192);continue}break}s=0}J=f+80|0;return s}function fm(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=J-16|0;J=e;i[e+12>>2]=a;a:{if(a>>>0<=211){a=i[gm(15520,15712,e+12|0)>>2];break a}if(a>>>0>=4294967292){im();x()}f=(a>>>0)/210|0;d=o(f,210);i[e+8>>2]=a-d;g=gm(15712,15904,e+8|0)-15712>>2;b:{while(1){a=i[(g<<2)+15712>>2]+d|0;d=5;b=h;c:{d:{while(1){h=b;if((d|0)==47){d=211;while(1){b=(a>>>0)/(d>>>0)|0;if(b>>>0>>0){break c}if((o(b,d)|0)==(a|0)){break d}b=d+10|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+12|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+16|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+18|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+22|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+28|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+30|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+36|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+40|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+42|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+46|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+52|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+58|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+60|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+66|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+70|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+72|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+78|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+82|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+88|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+96|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+100|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+102|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+106|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+108|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+112|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+120|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+126|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+130|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+136|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+138|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+142|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+148|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+150|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+156|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+162|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+166|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+168|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+172|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+178|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+180|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+186|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+190|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+192|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+196|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+198|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+208|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}d=d+210|0;if((o(b,c)|0)!=(a|0)){continue}break}break d}b=i[(d<<2)+15520>>2];c=(a>>>0)/(b>>>0)|0;j=o(b,c);c=c>>>0>>0;if(!c){b=c?a:h;d=d+1|0;if((a|0)!=(j|0)){continue}}break}if((a|0)!=(j|0)|c){break b}}b=g+1|0;a=(b|0)==48;g=a?0:b;f=a+f|0;d=o(f,210);continue}break}i[e+12>>2]=a;break a}i[e+12>>2]=a;a=c?a:h}J=e+16|0;return a}function Jl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;f=J-32|0;J=f;d=i[a+12>>2];i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;a:{if(d){if(d>>>0>=1073741824){break a}g=d<<2;e=Dm(g);i[f+8>>2]=e;j=e+g|0;i[f+16>>2]=j;qn(e,0,g);i[f+12>>2]=j}g=i[a+628>>2];h=i[g>>2];if(h){i[g+4>>2]=h;nn(h);i[g+8>>2]=0;i[g>>2]=0;i[g+4>>2]=0;j=i[f+12>>2];e=i[f+8>>2];d=i[a+12>>2]}i[g+4>>2]=j;i[g>>2]=e;i[g+8>>2]=i[f+16>>2];e=0;i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;h=0;b:{if(d){if(d>>>0>=1073741824){break b}d=d<<2;h=Dm(d);i[f+8>>2]=h;e=d+h|0;i[f+16>>2]=e;qn(h,0,d);i[f+12>>2]=e}d=i[a+640>>2];j=i[d>>2];if(j){i[d+4>>2]=j;nn(j);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=i[f+8>>2];e=i[f+12>>2]}i[d+4>>2]=e;i[d>>2]=h;i[d+8>>2]=i[f+16>>2];e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;j=f+16|0;i[j>>2]=0;i[j+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Nb(f+8|0);g=i[j>>2];j=i[f+12>>2];d=0;c:{if((g|0)==(j|0)){break c}d=i[e>>2]+i[f+28>>2]|0;e=(d>>>0)/341|0;d=i[j+(e<<2)>>2]+o(d-o(e,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;e=i[f+28>>2];d=e+1|0;i[f+28>>2]=d;d:{if(d>>>0>>0){break d}w=a+604|0;while(1){h=i[f+12>>2];g=d+ -1|0;d=g+i[f+24>>2]|0;e=(d>>>0)/341|0;e=i[h+(e<<2)>>2]+o(d-o(e,341)|0,12)|0;m=i[e+8>>2];p=i[e+4>>2];j=i[e>>2];i[f+28>>2]=g;e=i[f+16>>2];g=e-h|0;if((g?o(g>>2,341)+ -1|0:0)-d>>>0>=682){nn(i[e+ -4>>2]);i[f+16>>2]=i[f+16>>2]+ -4}if(j>>>0>b>>>0){break d}d=i[a+628>>2];k=o(m,12);q=k+i[a+640>>2]|0;h=vl(a,q,p);if(h>>>0>=l[a+12>>2]){break d}g=d+k|0;e:{f:{p=h<<2;d=i[a>>2]-i[p+i[q>>2]>>2]|0;if(!d){d=0;if(!j){break f}while(1){Ml(c,g);i[a+8>>2]=i[a+8>>2]+1;d=d+1|0;if((j|0)!=(d|0)){continue}break}break f}g:{h:{i:{j:{if(j>>>0<=2){m=i[a+616>>2];i[m>>2]=h;e=1;d=i[a+12>>2];if(d>>>0>1){break j}break g}if(l[a+8>>2]>l[a+4>>2]){break d}e=1<>2];s=m+1|0;q=o(s,12);n=d+q|0;if((n|0)!=(g|0)){ua(n,i[g>>2],i[g+4>>2]);d=i[a+628>>2]}d=p+i[d+q>>2]|0;i[d>>2]=e+i[d>>2];e=0;d=0;g=r(j)^31;if(g){while(1){e=Ce(((d<<4)+a|0)+16|0)|e<<1;d=d+1|0;if((g|0)!=(d|0)){continue}break}}e=(j>>>1|0)-e|0;d=j-e|0;k:{if((d|0)==(e|0)){d=e;break k}j=i[a+596>>2];if((j|0)==i[a+588>>2]){break i}g=i[j>>2];n=i[a+600>>2];u=n+1|0;i[a+600>>2]=u;g=g&-2147483648>>>n;l:{if((u|0)==32){i[a+600>>2]=0;i[a+596>>2]=j+4;if(g){break l}break i}if(!g){break i}}}j=d;d=e;break h}while(1){h=(d+ -1|0)==(h|0)?0:h+1|0;i[m+(e<<2)>>2]=h;e=e+1|0;d=i[a+12>>2];if(e>>>0>>0){continue}break}break g}j=e}e=i[a+640>>2];g=e+k|0;k=i[g>>2];p=k+p|0;i[p>>2]=i[p>>2]+1;ua(e+q|0,k,i[g+4>>2]);if(d){k=i[f+28>>2]+i[f+24>>2]|0;q=i[f+16>>2];e=i[f+12>>2];g=q-e|0;if((k|0)==((g?o(g>>2,341)+ -1|0:0)|0)){Nb(f+8|0);k=i[f+24>>2]+i[f+28>>2]|0;q=i[f+16>>2];e=i[f+12>>2]}g=0;m:{if((e|0)==(q|0)){break m}g=e;e=(k>>>0)/341|0;g=i[g+(e<<2)>>2]+o(k-o(e,341)|0,12)|0}i[g+8>>2]=m;i[g+4>>2]=h;i[g>>2]=d;i[f+28>>2]=i[f+28>>2]+1}if(!j){break f}e=i[f+28>>2]+i[f+24>>2]|0;g=i[f+16>>2];d=i[f+12>>2];m=g-d|0;if((e|0)==((m?o(m>>2,341)+ -1|0:0)|0)){Nb(f+8|0);g=i[f+16>>2];e=i[f+24>>2]+i[f+28>>2]|0;d=i[f+12>>2]}if((d|0)==(g|0)){d=0}else{g=d;d=(e>>>0)/341|0;d=i[g+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[d+8>>2]=s;i[d+4>>2]=h;i[d>>2]=j;d=i[f+28>>2]+1|0;i[f+28>>2]=d;break e}if(!j){break f}k=0;while(1){if(d){u=i[g>>2];y=i[q>>2];m=i[a+604>>2];z=i[a+616>>2];d=0;while(1){p=z+(d<<2)|0;i[m+(i[p>>2]<<2)>>2]=0;h=i[p>>2]<<2;e=i[a>>2]-i[h+y>>2]|0;n:{if(!e){break n}h=h+m|0;s=i[a+560>>2];t=32-s|0;if((e|0)<=(t|0)){n=i[a+556>>2];if((n|0)==i[a+548>>2]){i[h>>2]=0;break n}i[h>>2]=i[n>>2]<>>32-e;e=e+i[a+560>>2]|0;i[a+560>>2]=e;if((e|0)!=32){break n}i[a+560>>2]=0;i[a+556>>2]=n+4;break n}n=i[a+556>>2];v=n+4|0;if((v|0)==i[a+548>>2]){i[h>>2]=0;break n}A=i[n>>2];i[a+556>>2]=v;t=e-t|0;i[a+560>>2]=t;i[h>>2]=i[n+4>>2]>>>32-t|A<>>32-e}e=i[p>>2]<<2;h=e+m|0;i[h>>2]=i[h>>2]|i[e+u>>2];d=d+1|0;if(d>>>0>2]){continue}break}}Ml(c,w);i[a+8>>2]=i[a+8>>2]+1;k=k+1|0;if((k|0)==(j|0)){break f}d=i[a+12>>2];continue}}d=i[f+28>>2]}if(d){continue}break}}b=i[f+24>>2];c=(b>>>0)/341|0;a=i[f+12>>2];h=i[f+16>>2];o:{if((a|0)==(h|0)){break o}j=(c<<2)+a|0;e=i[j>>2];d=e+o(b-o(c,341)|0,12)|0;b=b+i[f+28>>2]|0;c=(b>>>0)/341|0;b=i[(c<<2)+a>>2]+o(b-o(c,341)|0,12)|0;if((d|0)==(b|0)){break o}while(1){d=d+12|0;if((d-e|0)==4092){e=i[j+4>>2];j=j+4|0;d=e}if((b|0)!=(d|0)){continue}break}}i[f+28>>2]=0;d=h-a>>2;if(d>>>0>2){while(1){nn(i[a>>2]);a=i[f+12>>2]+4|0;i[f+12>>2]=a;h=i[f+16>>2];d=h-a>>2;if(d>>>0>2){continue}break}}e=170;p:{switch(d+ -1|0){case 1:e=341;case 0:i[f+24>>2]=e;break;default:break p}}q:{if((a|0)==(h|0)){break q}while(1){nn(i[a>>2]);a=a+4|0;if((h|0)!=(a|0)){continue}break}a=i[f+16>>2];b=i[f+12>>2];if((a|0)==(b|0)){break q}i[f+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[f+8>>2];if(a){nn(a)}J=f+32|0;return}Sm();x()}Sm();x()}function Kl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;f=J-32|0;J=f;d=i[a+12>>2];i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;a:{if(d){if(d>>>0>=1073741824){break a}g=d<<2;e=Dm(g);i[f+8>>2]=e;j=e+g|0;i[f+16>>2]=j;qn(e,0,g);i[f+12>>2]=j}g=i[a+628>>2];h=i[g>>2];if(h){i[g+4>>2]=h;nn(h);i[g+8>>2]=0;i[g>>2]=0;i[g+4>>2]=0;j=i[f+12>>2];e=i[f+8>>2];d=i[a+12>>2]}i[g+4>>2]=j;i[g>>2]=e;i[g+8>>2]=i[f+16>>2];e=0;i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;h=0;b:{if(d){if(d>>>0>=1073741824){break b}d=d<<2;h=Dm(d);i[f+8>>2]=h;e=d+h|0;i[f+16>>2]=e;qn(h,0,d);i[f+12>>2]=e}d=i[a+640>>2];j=i[d>>2];if(j){i[d+4>>2]=j;nn(j);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=i[f+8>>2];e=i[f+12>>2]}i[d+4>>2]=e;i[d>>2]=h;i[d+8>>2]=i[f+16>>2];e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;j=f+16|0;i[j>>2]=0;i[j+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Nb(f+8|0);g=i[j>>2];j=i[f+12>>2];d=0;c:{if((g|0)==(j|0)){break c}d=i[e>>2]+i[f+28>>2]|0;e=(d>>>0)/341|0;d=i[j+(e<<2)>>2]+o(d-o(e,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;e=i[f+28>>2];d=e+1|0;i[f+28>>2]=d;d:{if(d>>>0>>0){break d}v=a+604|0;while(1){k=i[f+12>>2];h=d+ -1|0;d=h+i[f+24>>2]|0;e=(d>>>0)/341|0;e=i[k+(e<<2)>>2]+o(d-o(e,341)|0,12)|0;p=i[e+8>>2];g=i[e+4>>2];j=i[e>>2];i[f+28>>2]=h;e=i[f+16>>2];h=e-k|0;if((h?o(h>>2,341)+ -1|0:0)-d>>>0>=682){nn(i[e+ -4>>2]);i[f+16>>2]=i[f+16>>2]+ -4}if(j>>>0>b>>>0){break d}d=i[a+12>>2];h=(g|0)==(d+ -1|0)?0:g+1|0;if(h>>>0>=d>>>0){break d}d=i[a+628>>2];k=o(p,12);g=d+k|0;e:{f:{m=h<<2;s=k+i[a+640>>2]|0;e=i[a>>2]-i[m+i[s>>2]>>2]|0;if(!e){d=0;if(!j){break f}while(1){Ml(c,g);i[a+8>>2]=i[a+8>>2]+1;d=d+1|0;if((j|0)!=(d|0)){continue}break}break f}g:{h:{i:{j:{if(j>>>0<=2){k=i[a+616>>2];i[k>>2]=h;e=1;d=i[a+12>>2];if(d>>>0>1){break j}break g}if(l[a+8>>2]>l[a+4>>2]){break d}n=d;d=k+12|0;ua(n+d|0,i[g>>2],i[g+4>>2]);d=m+i[d+i[a+628>>2]>>2]|0;i[d>>2]=i[d>>2]+(1<>>1|0)-e|0;d=j-e|0;k:{if((d|0)==(e|0)){d=e;break k}j=i[a+596>>2];if((j|0)==i[a+588>>2]){break i}g=i[j>>2];n=i[a+600>>2];s=n+1|0;i[a+600>>2]=s;g=g&-2147483648>>>n;l:{if((s|0)==32){i[a+600>>2]=0;i[a+596>>2]=j+4;if(g){break l}break i}if(!g){break i}}}j=d;d=e;break h}while(1){h=(d+ -1|0)==(h|0)?0:h+1|0;i[k+(e<<2)>>2]=h;e=e+1|0;d=i[a+12>>2];if(e>>>0>>0){continue}break}break g}j=e}e=i[a+640>>2];g=e+k|0;k=i[g>>2];m=k+m|0;i[m>>2]=i[m>>2]+1;ua(e+o(q,12)|0,k,i[g+4>>2]);if(d){k=i[f+28>>2]+i[f+24>>2]|0;m=i[f+16>>2];e=i[f+12>>2];g=m-e|0;if((k|0)==((g?o(g>>2,341)+ -1|0:0)|0)){Nb(f+8|0);k=i[f+24>>2]+i[f+28>>2]|0;m=i[f+16>>2];e=i[f+12>>2]}g=0;m:{if((e|0)==(m|0)){break m}g=e;e=(k>>>0)/341|0;g=i[g+(e<<2)>>2]+o(k-o(e,341)|0,12)|0}i[g+8>>2]=p;i[g+4>>2]=h;i[g>>2]=d;i[f+28>>2]=i[f+28>>2]+1}if(!j){break f}e=i[f+28>>2]+i[f+24>>2]|0;k=i[f+16>>2];d=i[f+12>>2];g=k-d|0;if((e|0)==((g?o(g>>2,341)+ -1|0:0)|0)){Nb(f+8|0);k=i[f+16>>2];e=i[f+24>>2]+i[f+28>>2]|0;d=i[f+12>>2]}if((d|0)==(k|0)){d=0}else{g=d;d=(e>>>0)/341|0;d=i[g+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[d+8>>2]=q;i[d+4>>2]=h;i[d>>2]=j;d=i[f+28>>2]+1|0;i[f+28>>2]=d;break e}if(!j){break f}p=0;while(1){if(d){w=i[g>>2];y=i[s>>2];k=i[a+604>>2];z=i[a+616>>2];d=0;while(1){m=z+(d<<2)|0;i[k+(i[m>>2]<<2)>>2]=0;h=i[m>>2]<<2;e=i[a>>2]-i[h+y>>2]|0;n:{if(!e){break n}h=h+k|0;q=i[a+560>>2];t=32-q|0;if((e|0)<=(t|0)){n=i[a+556>>2];if((n|0)==i[a+548>>2]){i[h>>2]=0;break n}i[h>>2]=i[n>>2]<>>32-e;e=e+i[a+560>>2]|0;i[a+560>>2]=e;if((e|0)!=32){break n}i[a+560>>2]=0;i[a+556>>2]=n+4;break n}n=i[a+556>>2];u=n+4|0;if((u|0)==i[a+548>>2]){i[h>>2]=0;break n}A=i[n>>2];i[a+556>>2]=u;t=e-t|0;i[a+560>>2]=t;i[h>>2]=i[n+4>>2]>>>32-t|A<>>32-e}e=i[m>>2]<<2;h=e+k|0;i[h>>2]=i[h>>2]|i[e+w>>2];d=d+1|0;if(d>>>0>2]){continue}break}}Ml(c,v);i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((p|0)==(j|0)){break f}d=i[a+12>>2];continue}}d=i[f+28>>2]}if(d){continue}break}}b=i[f+24>>2];c=(b>>>0)/341|0;a=i[f+12>>2];h=i[f+16>>2];o:{if((a|0)==(h|0)){break o}j=(c<<2)+a|0;e=i[j>>2];d=e+o(b-o(c,341)|0,12)|0;b=b+i[f+28>>2]|0;c=(b>>>0)/341|0;b=i[(c<<2)+a>>2]+o(b-o(c,341)|0,12)|0;if((d|0)==(b|0)){break o}while(1){d=d+12|0;if((d-e|0)==4092){e=i[j+4>>2];j=j+4|0;d=e}if((b|0)!=(d|0)){continue}break}}i[f+28>>2]=0;d=h-a>>2;if(d>>>0>2){while(1){nn(i[a>>2]);a=i[f+12>>2]+4|0;i[f+12>>2]=a;h=i[f+16>>2];d=h-a>>2;if(d>>>0>2){continue}break}}e=170;p:{switch(d+ -1|0){case 1:e=341;case 0:i[f+24>>2]=e;break;default:break p}}q:{if((a|0)==(h|0)){break q}while(1){nn(i[a>>2]);a=a+4|0;if((h|0)!=(a|0)){continue}break}a=i[f+16>>2];b=i[f+12>>2];if((a|0)==(b|0)){break q}i[f+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[f+8>>2];if(a){nn(a)}J=f+32|0;return}Sm();x()}Sm();x()}function Ll(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;f=J-32|0;J=f;d=i[a+12>>2];i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;a:{if(d){if(d>>>0>=1073741824){break a}g=d<<2;e=Dm(g);i[f+8>>2]=e;j=e+g|0;i[f+16>>2]=j;qn(e,0,g);i[f+12>>2]=j}g=i[a+628>>2];h=i[g>>2];if(h){i[g+4>>2]=h;nn(h);i[g+8>>2]=0;i[g>>2]=0;i[g+4>>2]=0;j=i[f+12>>2];e=i[f+8>>2];d=i[a+12>>2]}i[g+4>>2]=j;i[g>>2]=e;i[g+8>>2]=i[f+16>>2];e=0;i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;h=0;b:{if(d){if(d>>>0>=1073741824){break b}d=d<<2;h=Dm(d);i[f+8>>2]=h;e=d+h|0;i[f+16>>2]=e;qn(h,0,d);i[f+12>>2]=e}d=i[a+640>>2];j=i[d>>2];if(j){i[d+4>>2]=j;nn(j);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=i[f+8>>2];e=i[f+12>>2]}i[d+4>>2]=e;i[d>>2]=h;i[d+8>>2]=i[f+16>>2];e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;j=f+16|0;i[j>>2]=0;i[j+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Nb(f+8|0);g=i[j>>2];j=i[f+12>>2];d=0;c:{if((g|0)==(j|0)){break c}d=i[e>>2]+i[f+28>>2]|0;e=(d>>>0)/341|0;d=i[j+(e<<2)>>2]+o(d-o(e,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;e=i[f+28>>2];d=e+1|0;i[f+28>>2]=d;d:{if(d>>>0>>0){break d}w=a+604|0;while(1){h=i[f+12>>2];g=d+ -1|0;d=g+i[f+24>>2]|0;e=(d>>>0)/341|0;e=i[h+(e<<2)>>2]+o(d-o(e,341)|0,12)|0;m=i[e+8>>2];j=i[e>>2];i[f+28>>2]=g;e=i[f+16>>2];g=e-h|0;if((g?o(g>>2,341)+ -1|0:0)-d>>>0>=682){nn(i[e+ -4>>2]);i[f+16>>2]=i[f+16>>2]+ -4}if(j>>>0>b>>>0){break d}d=i[a+628>>2];k=o(m,12);p=k+i[a+640>>2]|0;h=wl(a,j,p);if(h>>>0>=l[a+12>>2]){break d}g=d+k|0;e:{f:{q=h<<2;d=i[a>>2]-i[q+i[p>>2]>>2]|0;if(!d){d=0;if(!j){break f}while(1){Ml(c,g);i[a+8>>2]=i[a+8>>2]+1;d=d+1|0;if((j|0)!=(d|0)){continue}break}break f}g:{h:{i:{j:{if(j>>>0<=2){m=i[a+616>>2];i[m>>2]=h;e=1;d=i[a+12>>2];if(d>>>0>1){break j}break g}if(l[a+8>>2]>l[a+4>>2]){break d}e=1<>2];s=m+1|0;p=o(s,12);n=d+p|0;if((n|0)!=(g|0)){ua(n,i[g>>2],i[g+4>>2]);d=i[a+628>>2]}d=q+i[d+p>>2]|0;i[d>>2]=e+i[d>>2];e=0;d=0;g=r(j)^31;if(g){while(1){e=Ce(((d<<4)+a|0)+16|0)|e<<1;d=d+1|0;if((g|0)!=(d|0)){continue}break}}e=(j>>>1|0)-e|0;d=j-e|0;k:{if((d|0)==(e|0)){d=e;break k}j=i[a+596>>2];if((j|0)==i[a+588>>2]){break i}g=i[j>>2];n=i[a+600>>2];u=n+1|0;i[a+600>>2]=u;g=g&-2147483648>>>n;l:{if((u|0)==32){i[a+600>>2]=0;i[a+596>>2]=j+4;if(g){break l}break i}if(!g){break i}}}j=d;d=e;break h}while(1){h=(d+ -1|0)==(h|0)?0:h+1|0;i[m+(e<<2)>>2]=h;e=e+1|0;d=i[a+12>>2];if(e>>>0>>0){continue}break}break g}j=e}e=i[a+640>>2];g=e+k|0;k=i[g>>2];q=k+q|0;i[q>>2]=i[q>>2]+1;ua(e+p|0,k,i[g+4>>2]);if(d){k=i[f+28>>2]+i[f+24>>2]|0;p=i[f+16>>2];e=i[f+12>>2];g=p-e|0;if((k|0)==((g?o(g>>2,341)+ -1|0:0)|0)){Nb(f+8|0);k=i[f+24>>2]+i[f+28>>2]|0;p=i[f+16>>2];e=i[f+12>>2]}g=0;m:{if((e|0)==(p|0)){break m}g=e;e=(k>>>0)/341|0;g=i[g+(e<<2)>>2]+o(k-o(e,341)|0,12)|0}i[g+8>>2]=m;i[g+4>>2]=h;i[g>>2]=d;i[f+28>>2]=i[f+28>>2]+1}if(!j){break f}e=i[f+28>>2]+i[f+24>>2]|0;g=i[f+16>>2];d=i[f+12>>2];m=g-d|0;if((e|0)==((m?o(m>>2,341)+ -1|0:0)|0)){Nb(f+8|0);g=i[f+16>>2];e=i[f+24>>2]+i[f+28>>2]|0;d=i[f+12>>2]}if((d|0)==(g|0)){d=0}else{g=d;d=(e>>>0)/341|0;d=i[g+(d<<2)>>2]+o(e-o(d,341)|0,12)|0}i[d+8>>2]=s;i[d+4>>2]=h;i[d>>2]=j;d=i[f+28>>2]+1|0;i[f+28>>2]=d;break e}if(!j){break f}k=0;while(1){if(d){u=i[g>>2];y=i[p>>2];m=i[a+604>>2];z=i[a+616>>2];d=0;while(1){q=z+(d<<2)|0;i[m+(i[q>>2]<<2)>>2]=0;h=i[q>>2]<<2;e=i[a>>2]-i[h+y>>2]|0;n:{if(!e){break n}h=h+m|0;s=i[a+560>>2];t=32-s|0;if((e|0)<=(t|0)){n=i[a+556>>2];if((n|0)==i[a+548>>2]){i[h>>2]=0;break n}i[h>>2]=i[n>>2]<>>32-e;e=e+i[a+560>>2]|0;i[a+560>>2]=e;if((e|0)!=32){break n}i[a+560>>2]=0;i[a+556>>2]=n+4;break n}n=i[a+556>>2];v=n+4|0;if((v|0)==i[a+548>>2]){i[h>>2]=0;break n}A=i[n>>2];i[a+556>>2]=v;t=e-t|0;i[a+560>>2]=t;i[h>>2]=i[n+4>>2]>>>32-t|A<>>32-e}e=i[q>>2]<<2;h=e+m|0;i[h>>2]=i[h>>2]|i[e+u>>2];d=d+1|0;if(d>>>0>2]){continue}break}}Ml(c,w);i[a+8>>2]=i[a+8>>2]+1;k=k+1|0;if((k|0)==(j|0)){break f}d=i[a+12>>2];continue}}d=i[f+28>>2]}if(d){continue}break}}b=i[f+24>>2];c=(b>>>0)/341|0;a=i[f+12>>2];h=i[f+16>>2];o:{if((a|0)==(h|0)){break o}j=(c<<2)+a|0;e=i[j>>2];d=e+o(b-o(c,341)|0,12)|0;b=b+i[f+28>>2]|0;c=(b>>>0)/341|0;b=i[(c<<2)+a>>2]+o(b-o(c,341)|0,12)|0;if((d|0)==(b|0)){break o}while(1){d=d+12|0;if((d-e|0)==4092){e=i[j+4>>2];j=j+4|0;d=e}if((b|0)!=(d|0)){continue}break}}i[f+28>>2]=0;d=h-a>>2;if(d>>>0>2){while(1){nn(i[a>>2]);a=i[f+12>>2]+4|0;i[f+12>>2]=a;h=i[f+16>>2];d=h-a>>2;if(d>>>0>2){continue}break}}e=170;p:{switch(d+ -1|0){case 1:e=341;case 0:i[f+24>>2]=e;break;default:break p}}q:{if((a|0)==(h|0)){break q}while(1){nn(i[a>>2]);a=a+4|0;if((h|0)!=(a|0)){continue}break}a=i[f+16>>2];b=i[f+12>>2];if((a|0)==(b|0)){break q}i[f+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[f+8>>2];if(a){nn(a)}J=f+32|0;return}Sm();x()}Sm();x()}function li(a,b,c,d){var e=0,f=0,h=0,o=0,r=0,s=p(0),t=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:h=1;e:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break e}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){g[d+f|0]=j[b|0];f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break e}b=b+1|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 1:f:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break f}h=i[a>>2];e=i[h+4>>2];h=i[h>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=h+b|0;if(e>>>0<=b>>>0){break b}while(1){h=0;e=g[b|0];if((e|0)<0){break c}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break f}b=b+1|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break c}if((e|0)>=(c|0)){return 1}break a;case 2:h=1;g:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break g}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=k[b>>1];if((e+128&65535)>>>0>255){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break g}b=b+2|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 3:h=1;h:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break h}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=k[b>>1];if(e>>>0>127){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break h}b=b+2|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 4:h=1;i:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break i}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b>>2];if(e+128>>>0>255){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break i}b=b+4|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 5:h=1;j:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break j}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b>>2];if(e>>>0>127){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break j}b=b+4|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 6:h=1;k:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break k}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b+4>>2];o=i[b>>2];r=o+128|0;if(r>>>0<128){e=e+1|0}if(!e&r>>>0>255|e>>>0>0){break b}g[d+f|0]=o;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break k}b=b+8|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 7:h=1;l:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break l}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b+4>>2];o=i[b>>2];if(!e&o>>>0>127|e>>>0>0){break b}g[d+f|0]=o;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break l}b=b+8|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 8:h=1;m:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break m}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){o=d+f|0;s=m[b>>2];n:{if(p(q(s))=((e|0)>(c|0)?c:e)<<24>>24){break m}b=b+4|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 9:h=1;o:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break o}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){o=d+f|0;t=n[b>>3];p:{if(q(t)<2147483648){e=~~t;break p}e=-2147483648}g[o|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break o}b=b+8|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}h=1;q:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break q}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){g[d+f|0]=j[b|0];f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break q}b=b+1|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}qn(d+e|0,0,c-e|0)}return h}return 0}qn(d+e|0,0,c-e|0);return 1}function Hl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0;e=J-32|0;J=e;d=i[a+12>>2];i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(d){if(d>>>0>=1073741824){break a}h=d<<2;f=Dm(h);i[e+8>>2]=f;j=f+h|0;i[e+16>>2]=j;qn(f,0,h);i[e+12>>2]=j}h=i[a+116>>2];g=i[h>>2];if(g){i[h+4>>2]=g;nn(g);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;j=i[e+12>>2];f=i[e+8>>2];d=i[a+12>>2]}i[h+4>>2]=j;i[h>>2]=f;i[h+8>>2]=i[e+16>>2];f=0;i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;g=0;b:{if(d){if(d>>>0>=1073741824){break b}d=d<<2;g=Dm(d);i[e+8>>2]=g;f=d+g|0;i[e+16>>2]=f;qn(g,0,d);i[e+12>>2]=f}d=i[a+128>>2];h=i[d>>2];if(h){i[d+4>>2]=h;nn(h);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;g=i[e+8>>2];f=i[e+12>>2]}i[d+4>>2]=f;i[d>>2]=g;i[d+8>>2]=i[e+16>>2];f=e+24|0;i[f>>2]=0;i[f+4>>2]=0;h=e+16|0;i[h>>2]=0;i[h+4>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;Nb(e+8|0);k=i[h>>2];h=i[e+12>>2];d=0;c:{if((k|0)==(h|0)){break c}d=i[f>>2]+i[e+28>>2]|0;f=(d>>>0)/341|0;d=i[h+(f<<2)>>2]+o(d-o(f,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;f=i[e+28>>2];d=f+1|0;i[e+28>>2]=d;d:{if(d>>>0>>0){break d}w=a+92|0;y=a+16|0;while(1){j=i[e+12>>2];g=d+ -1|0;d=g+i[e+24>>2]|0;f=(d>>>0)/341|0;f=i[j+(f<<2)>>2]+o(d-o(f,341)|0,12)|0;m=i[f+8>>2];p=i[f+4>>2];h=i[f>>2];i[e+28>>2]=g;f=i[e+16>>2];g=f-j|0;if((g?o(g>>2,341)+ -1|0:0)-d>>>0>=682){nn(i[f+ -4>>2]);i[e+16>>2]=i[e+16>>2]+ -4}if(h>>>0>b>>>0){break d}d=i[a+116>>2];k=o(m,12);q=k+i[a+128>>2]|0;g=vl(a,q,p);if(g>>>0>=l[a+12>>2]){break d}j=d+k|0;e:{p=g<<2;d=i[a>>2]-i[p+i[q>>2]>>2]|0;if(!d){d=0;if(!h){break e}while(1){Ml(c,j);i[a+8>>2]=i[a+8>>2]+1;d=d+1|0;if((h|0)!=(d|0)){continue}break}break e}f:{g:{h:{i:{if(h>>>0<=2){m=i[a+104>>2];i[m>>2]=g;f=1;d=i[a+12>>2];if(d>>>0>1){break i}break f}if(l[a+8>>2]>l[a+4>>2]){break d}f=1<>2];s=m+1|0;q=o(s,12);n=d+q|0;if((n|0)!=(j|0)){ua(n,i[j>>2],i[j+4>>2]);d=i[a+116>>2]}d=p+i[d+q>>2]|0;i[d>>2]=f+i[d>>2];i[e+4>>2]=0;De(y,r(h)^31,e+4|0);d=(h>>>1|0)-i[e+4>>2]|0;f=h-d|0;j:{if((f|0)==(d|0)){f=d;break j}h=i[a+84>>2];if((h|0)==i[a+76>>2]){break h}j=i[h>>2];n=i[a+88>>2];u=n+1|0;i[a+88>>2]=u;j=j&-2147483648>>>n;k:{if((u|0)==32){i[a+88>>2]=0;i[a+84>>2]=h+4;if(j){break k}break h}if(!j){break h}}}h=f;f=d;break g}while(1){g=(d+ -1|0)==(g|0)?0:g+1|0;i[m+(f<<2)>>2]=g;f=f+1|0;d=i[a+12>>2];if(f>>>0>>0){continue}break}break f}h=d}d=i[a+128>>2];j=d+k|0;k=i[j>>2];p=k+p|0;i[p>>2]=i[p>>2]+1;ua(d+q|0,k,i[j+4>>2]);if(f){j=i[e+28>>2]+i[e+24>>2]|0;k=i[e+16>>2];d=i[e+12>>2];q=k-d|0;if((j|0)==((q?o(q>>2,341)+ -1|0:0)|0)){Nb(e+8|0);j=i[e+24>>2]+i[e+28>>2]|0;k=i[e+16>>2];d=i[e+12>>2]}if((d|0)==(k|0)){d=0}else{k=d;d=(j>>>0)/341|0;d=i[k+(d<<2)>>2]+o(j-o(d,341)|0,12)|0}i[d+8>>2]=m;i[d+4>>2]=g;i[d>>2]=f;i[e+28>>2]=i[e+28>>2]+1}if(!h){break e}f=i[e+28>>2]+i[e+24>>2]|0;j=i[e+16>>2];d=i[e+12>>2];m=j-d|0;if((f|0)==((m?o(m>>2,341)+ -1|0:0)|0)){Nb(e+8|0);j=i[e+16>>2];f=i[e+24>>2]+i[e+28>>2]|0;d=i[e+12>>2]}if((d|0)==(j|0)){d=0}else{k=d;d=(f>>>0)/341|0;d=i[k+(d<<2)>>2]+o(f-o(d,341)|0,12)|0}i[d+8>>2]=s;i[d+4>>2]=g;i[d>>2]=h;i[e+28>>2]=i[e+28>>2]+1;break e}if(!h){break e}k=0;while(1){if(d){u=i[j>>2];z=i[q>>2];m=i[a+92>>2];A=i[a+104>>2];d=0;while(1){p=A+(d<<2)|0;i[m+(i[p>>2]<<2)>>2]=0;g=i[p>>2]<<2;f=i[a>>2]-i[g+z>>2]|0;l:{if(!f){break l}g=g+m|0;s=i[a+48>>2];t=32-s|0;if((f|0)<=(t|0)){n=i[a+44>>2];if((n|0)==i[a+36>>2]){i[g>>2]=0;break l}i[g>>2]=i[n>>2]<>>32-f;f=f+i[a+48>>2]|0;i[a+48>>2]=f;if((f|0)!=32){break l}i[a+48>>2]=0;i[a+44>>2]=n+4;break l}n=i[a+44>>2];v=n+4|0;if((v|0)==i[a+36>>2]){i[g>>2]=0;break l}B=i[n>>2];i[a+44>>2]=v;t=f-t|0;i[a+48>>2]=t;i[g>>2]=i[n+4>>2]>>>32-t|B<>>32-f}f=i[p>>2]<<2;g=f+m|0;i[g>>2]=i[g>>2]|i[f+u>>2];d=d+1|0;if(d>>>0>2]){continue}break}}Ml(c,w);i[a+8>>2]=i[a+8>>2]+1;k=k+1|0;if((k|0)==(h|0)){break e}d=i[a+12>>2];continue}}d=i[e+28>>2];if(d){continue}break}}b=i[e+24>>2];c=(b>>>0)/341|0;a=i[e+12>>2];g=i[e+16>>2];m:{if((a|0)==(g|0)){break m}j=(c<<2)+a|0;f=i[j>>2];d=f+o(b-o(c,341)|0,12)|0;b=b+i[e+28>>2]|0;c=(b>>>0)/341|0;b=i[(c<<2)+a>>2]+o(b-o(c,341)|0,12)|0;if((d|0)==(b|0)){break m}while(1){d=d+12|0;if((d-f|0)==4092){f=i[j+4>>2];j=j+4|0;d=f}if((b|0)!=(d|0)){continue}break}}i[e+28>>2]=0;d=g-a>>2;if(d>>>0>2){while(1){nn(i[a>>2]);a=i[e+12>>2]+4|0;i[e+12>>2]=a;g=i[e+16>>2];d=g-a>>2;if(d>>>0>2){continue}break}}f=170;n:{switch(d+ -1|0){case 1:f=341;case 0:i[e+24>>2]=f;break;default:break n}}o:{if((a|0)==(g|0)){break o}while(1){nn(i[a>>2]);a=a+4|0;if((g|0)!=(a|0)){continue}break}a=i[e+16>>2];b=i[e+12>>2];if((a|0)==(b|0)){break o}i[e+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[e+8>>2];if(a){nn(a)}J=e+32|0;return}Sm();x()}Sm();x()}function Il(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0;e=J-32|0;J=e;d=i[a+12>>2];i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(d){if(d>>>0>=1073741824){break a}f=d<<2;g=Dm(f);i[e+8>>2]=g;k=g+f|0;i[e+16>>2]=k;qn(g,0,f);i[e+12>>2]=k}f=i[a+116>>2];h=i[f>>2];if(h){i[f+4>>2]=h;nn(h);i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;k=i[e+12>>2];g=i[e+8>>2];d=i[a+12>>2]}i[f+4>>2]=k;i[f>>2]=g;i[f+8>>2]=i[e+16>>2];g=0;i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;b:{if(d){if(d>>>0>=1073741824){break b}d=d<<2;j=Dm(d);i[e+8>>2]=j;g=d+j|0;i[e+16>>2]=g;qn(j,0,d);i[e+12>>2]=g}d=i[a+128>>2];f=i[d>>2];if(f){i[d+4>>2]=f;nn(f);i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;j=i[e+8>>2];g=i[e+12>>2]}i[d+4>>2]=g;i[d>>2]=j;i[d+8>>2]=i[e+16>>2];f=e+24|0;i[f>>2]=0;i[f+4>>2]=0;h=e+16|0;i[h>>2]=0;i[h+4>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;Nb(e+8|0);g=i[h>>2];h=i[e+12>>2];d=0;c:{if((g|0)==(h|0)){break c}d=i[f>>2]+i[e+28>>2]|0;f=(d>>>0)/341|0;d=i[h+(f<<2)>>2]+o(d-o(f,341)|0,12)|0}i[d+4>>2]=0;i[d+8>>2]=0;i[d>>2]=b;f=i[e+28>>2];d=f+1|0;i[e+28>>2]=d;d:{if(d>>>0>>0){break d}v=a+92|0;w=a+16|0;while(1){j=i[e+12>>2];g=d+ -1|0;d=g+i[e+24>>2]|0;f=(d>>>0)/341|0;f=i[j+(f<<2)>>2]+o(d-o(f,341)|0,12)|0;p=i[f+8>>2];h=i[f+4>>2];f=i[f>>2];i[e+28>>2]=g;g=i[e+16>>2];j=g-j|0;if((j?o(j>>2,341)+ -1|0:0)-d>>>0>=682){nn(i[g+ -4>>2]);i[e+16>>2]=i[e+16>>2]+ -4}if(f>>>0>b>>>0){break d}d=i[a+12>>2];j=(h|0)==(d+ -1|0)?0:h+1|0;if(j>>>0>=d>>>0){break d}d=i[a+116>>2];g=o(p,12);k=d+g|0;e:{n=j<<2;s=g+i[a+128>>2]|0;h=i[a>>2]-i[n+i[s>>2]>>2]|0;if(!h){d=0;if(!f){break e}while(1){Ml(c,k);i[a+8>>2]=i[a+8>>2]+1;d=d+1|0;if((f|0)!=(d|0)){continue}break}break e}f:{g:{h:{i:{if(f>>>0<=2){h=i[a+104>>2];i[h>>2]=j;g=1;d=i[a+12>>2];if(d>>>0>1){break i}break f}if(l[a+8>>2]>l[a+4>>2]){break d}m=d;d=g+12|0;ua(m+d|0,i[k>>2],i[k+4>>2]);d=n+i[d+i[a+116>>2]>>2]|0;i[d>>2]=i[d>>2]+(1<>2]=0;De(w,r(f)^31,e+4|0);q=p+1|0;d=(f>>>1|0)-i[e+4>>2]|0;f=f-d|0;j:{if((f|0)==(d|0)){f=d;break j}h=i[a+84>>2];if((h|0)==i[a+76>>2]){break h}k=i[h>>2];m=i[a+88>>2];s=m+1|0;i[a+88>>2]=s;k=k&-2147483648>>>m;k:{if((s|0)==32){i[a+88>>2]=0;i[a+84>>2]=h+4;if(k){break k}break h}if(!k){break h}}}h=f;f=d;break g}while(1){j=(d+ -1|0)==(j|0)?0:j+1|0;i[h+(g<<2)>>2]=j;g=g+1|0;d=i[a+12>>2];if(g>>>0>>0){continue}break}break f}h=d}d=i[a+128>>2];g=d+g|0;k=i[g>>2];n=k+n|0;i[n>>2]=i[n>>2]+1;ua(d+o(q,12)|0,k,i[g+4>>2]);if(f){g=i[e+28>>2]+i[e+24>>2]|0;k=i[e+16>>2];d=i[e+12>>2];n=k-d|0;if((g|0)==((n?o(n>>2,341)+ -1|0:0)|0)){Nb(e+8|0);g=i[e+24>>2]+i[e+28>>2]|0;k=i[e+16>>2];d=i[e+12>>2]}if((d|0)==(k|0)){d=0}else{m=d;d=(g>>>0)/341|0;d=i[m+(d<<2)>>2]+o(g-o(d,341)|0,12)|0}i[d+8>>2]=p;i[d+4>>2]=j;i[d>>2]=f;i[e+28>>2]=i[e+28>>2]+1}if(!h){break e}g=i[e+28>>2]+i[e+24>>2]|0;k=i[e+16>>2];d=i[e+12>>2];f=k-d|0;if((g|0)==((f?o(f>>2,341)+ -1|0:0)|0)){Nb(e+8|0);g=i[e+24>>2]+i[e+28>>2]|0;k=i[e+16>>2];d=i[e+12>>2]}f=0;l:{if((d|0)==(k|0)){break l}f=d;d=(g>>>0)/341|0;f=i[f+(d<<2)>>2]+o(g-o(d,341)|0,12)|0}i[f+8>>2]=q;i[f+4>>2]=j;i[f>>2]=h;i[e+28>>2]=i[e+28>>2]+1;break e}if(!f){break e}p=0;while(1){if(d){y=i[k>>2];z=i[s>>2];j=i[a+92>>2];A=i[a+104>>2];d=0;while(1){n=A+(d<<2)|0;i[j+(i[n>>2]<<2)>>2]=0;g=i[n>>2]<<2;h=i[a>>2]-i[g+z>>2]|0;m:{if(!h){break m}g=g+j|0;q=i[a+48>>2];t=32-q|0;if((h|0)<=(t|0)){m=i[a+44>>2];if((m|0)==i[a+36>>2]){i[g>>2]=0;break m}i[g>>2]=i[m>>2]<>>32-h;h=h+i[a+48>>2]|0;i[a+48>>2]=h;if((h|0)!=32){break m}i[a+48>>2]=0;i[a+44>>2]=m+4;break m}m=i[a+44>>2];u=m+4|0;if((u|0)==i[a+36>>2]){i[g>>2]=0;break m}B=i[m>>2];i[a+44>>2]=u;t=h-t|0;i[a+48>>2]=t;i[g>>2]=i[m+4>>2]>>>32-t|B<>>32-h}h=i[n>>2]<<2;g=h+j|0;i[g>>2]=i[g>>2]|i[h+y>>2];d=d+1|0;if(d>>>0>2]){continue}break}}Ml(c,v);i[a+8>>2]=i[a+8>>2]+1;p=p+1|0;if((p|0)==(f|0)){break e}d=i[a+12>>2];continue}}d=i[e+28>>2];if(d){continue}break}}b=i[e+24>>2];c=(b>>>0)/341|0;a=i[e+12>>2];j=i[e+16>>2];n:{if((a|0)==(j|0)){break n}k=(c<<2)+a|0;g=i[k>>2];d=g+o(b-o(c,341)|0,12)|0;b=b+i[e+28>>2]|0;c=(b>>>0)/341|0;b=i[(c<<2)+a>>2]+o(b-o(c,341)|0,12)|0;if((d|0)==(b|0)){break n}while(1){d=d+12|0;if((d-g|0)==4092){g=i[k+4>>2];k=k+4|0;d=g}if((b|0)!=(d|0)){continue}break}}i[e+28>>2]=0;d=j-a>>2;if(d>>>0>2){while(1){nn(i[a>>2]);a=i[e+12>>2]+4|0;i[e+12>>2]=a;j=i[e+16>>2];d=j-a>>2;if(d>>>0>2){continue}break}}g=170;o:{switch(d+ -1|0){case 1:g=341;case 0:i[e+24>>2]=g;break;default:break o}}p:{if((a|0)==(j|0)){break p}while(1){nn(i[a>>2]);a=a+4|0;if((j|0)!=(a|0)){continue}break}a=i[e+16>>2];b=i[e+12>>2];if((a|0)==(b|0)){break p}i[e+16>>2]=a+(((a-b|0)+ -4>>>2^-1)<<2)}a=i[e+8>>2];if(a){nn(a)}J=e+32|0;return}Sm();x()}Sm();x()}function ni(a,b,c,d){var e=0,f=0,h=0,o=0,q=p(0),r=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:e:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break e}h=i[a>>2];e=i[h+4>>2];h=i[h>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=h+b|0;if(e>>>0<=b>>>0){break b}while(1){h=0;e=g[b|0];if((e|0)<0){break c}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break e}b=b+1|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break c}if((e|0)>=(c|0)){return 1}break a;case 1:h=1;f:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break f}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){g[d+f|0]=j[b|0];f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break f}b=b+1|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 2:h=1;g:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break g}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=k[b>>1];if(e>>>0>255){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break g}b=b+2|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 3:h=1;h:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break h}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=k[b>>1];if(e>>>0>255){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break h}b=b+2|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 4:h=1;i:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break i}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b>>2];if(e>>>0>255){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break i}b=b+4|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 5:h=1;j:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break j}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b>>2];if(e>>>0>255){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break j}b=b+4|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 6:h=1;k:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break k}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b+4>>2];o=i[b>>2];if(!e&o>>>0>255|e>>>0>0){break b}g[d+f|0]=o;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break k}b=b+8|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 7:h=1;l:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break l}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b+4>>2];o=i[b>>2];if(!e&o>>>0>255|e>>>0>0){break b}g[d+f|0]=o;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break l}b=b+8|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 8:h=1;m:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break m}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){o=d+f|0;q=m[b>>2];n:{if(q=p(0)){e=~~q>>>0;break n}e=0}g[o|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break m}b=b+4|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 9:h=1;o:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break o}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){o=d+f|0;r=n[b>>3];p:{if(r<4294967296&r>=0){e=~~r>>>0;break p}e=0}g[o|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break o}b=b+8|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}h=1;q:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break q}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){g[d+f|0]=j[b|0];f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break q}b=b+1|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}qn(d+e|0,0,c-e|0)}return h}return 0}qn(d+e|0,0,c-e|0);return 1}function gd(a,b,c,d){var e=0,f=0,l=0,o=0,r=p(0),t=0,w=0,x=0;a:{b:{if(!d){break b}c:{switch(i[a+28>>2]+ -1|0){case 0:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=g[b|0];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=j[b|0];i[e+4>>2]=0;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=h[b>>1];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=k[b>>1];i[e+4>>2]=0;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=i[b>>2];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=i[b>>2];i[e+4>>2]=0;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}l=i[b+4>>2];e=(f<<3)+d|0;i[e>>2]=i[b>>2];i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=i[b+4>>2];l=e;w=i[b>>2];if((e|0)<0?1:(e|0)<=0?w>>>0<0:0){return}e=(f<<3)+d|0;i[e>>2]=w;i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 8:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;w=i[e+4>>2];f=0;while(1){if(w>>>0<=b>>>0){return}e=(f<<3)+d|0;o=e;r=m[b>>2];d:{if(p(q(r))=p(1)?r>p(0)?~~p(s(p(u(p(r*p(2.3283064365386963e-10)))),p(4294967296)))>>>0:~~p(v(p(p(r-p(~~r>>>0>>>0))*p(2.3283064365386963e-10))))>>>0:0;x=~~r>>>0;break d}l=-2147483648;x=0}i[o>>2]=x;i[e+4>>2]=l;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 9:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;w=i[e+4>>2];f=0;while(1){if(w>>>0<=b>>>0){return}e=(f<<3)+d|0;o=e;t=n[b>>3];e:{if(q(t)<0x8000000000000000){l=q(t)>=1?t>0?~~s(u(t*2.3283064365386963e-10),4294967295)>>>0:~~v((t- +(~~t>>>0>>>0))*2.3283064365386963e-10)>>>0:0;x=~~t>>>0;break e}l=-2147483648;x=0}i[o>>2]=x;i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 10:break c;default:break b}}e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=j[b|0];i[e+4>>2]=0;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}qn((e<<3)+d|0,0,c-e<<3)}return}qn((e<<3)+d|0,0,c-e<<3)}function Zf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;e=J-48|0;J=e;f=i[i[a+4>>2]+44>>2];c=i[a+8>>2];g=i[c>>2];c=i[c+4>>2];i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;d=(c-g>>2>>>0)/3|0;c=i[f+96>>2];g=(i[f+100>>2]-c|0)/12|0;a:{if(d>>>0>g>>>0){bg(f+96|0,d-g|0,e+32|0);break a}if(d>>>0>=g>>>0){break a}i[f+100>>2]=c+o(d,12)}b:{if(i[a+216>>2]==i[a+220>>2]){l=i[a+4>>2];k=i[l+44>>2];h=i[k+100>>2];if((h|0)!=i[k+96>>2]){j=e+40|0;c=0;while(1){g=-1;p=0;d=-1;c:{d:{e:{f=o(c,3);if((f|0)==-1){break e}n=-1;d=i[i[i[a+8>>2]>>2]+(f<<2)>>2];p=f+1|0;if((p|0)!=-1){break e}f=0;break d}n=i[i[i[a+8>>2]>>2]+(p<<2)>>2];f=f+2|0;if((f|0)==-1){break c}}g=i[i[i[a+8>>2]>>2]+(f<<2)>>2]}f=c+1|0;p=i[k+96>>2];m=(h-p|0)/12|0;if(m>>>0<=c>>>0){i[j>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;h=k+96|0;bg(h,f-m|0,e+32|0);l=i[a+4>>2];p=i[h>>2]}c=p+o(c,12)|0;i[c+8>>2]=g;i[c+4>>2]=n;i[c>>2]=d;c=f;k=i[l+44>>2];h=i[k+100>>2];if(c>>>0<(h-i[k+96>>2]|0)/12>>>0){continue}break}}i[i[l+4>>2]+80>>2]=b;c=1;break b}i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;l=i[a+8>>2];c=i[l>>2];b=i[l+4>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;f:{g:{h:{i:{j:{k:{l:{g=b-c|0;if(g){b=g>>2;if(b>>>0>=1073741824){break l}c=Dm(g);i[e>>2]=c;b=c+(b<<2)|0;i[e+8>>2]=b;qn(c,0,g);i[e+4>>2]=b}c=i[l+24>>2];if((i[l+28>>2]-c|0)<1){break g}while(1){g=i[(q<<2)+c>>2];m:{if((g|0)==-1){break m}n:{if(i[i[a+120>>2]+(q>>>3&536870908)>>2]>>>q&1){break n}b=i[a+220>>2];n=i[a+216>>2];if((b|0)==(n|0)){break n}m=(b-n|0)/144|0;j=((g>>>0)%3|0?-1:2)+g|0;p=0;while(1){d=g<<2;f=n+o(p,144)|0;b=i[d+i[i[f+68>>2]>>2]>>2];o:{if(!(i[i[f+16>>2]+(b>>>3&536870908)>>2]>>>b&1)){break o}b=g;k=b;c=-1;p:{if((j|0)==-1){break p}h=i[i[l+12>>2]+(j<<2)>>2];c=-1;if((h|0)==-1){break p}c=h+ -1|0;if((h>>>0)%3|0){break p}c=h+2|0}if((k|0)==(c|0)){break o}h=i[f+32>>2];f=i[h+d>>2];while(1){d=0;if((c|0)==-1){break f}if((f|0)!=i[h+(c<<2)>>2]){g=c;break n}k=b;c=((c>>>0)%3|0?-1:2)+c|0;d=-1;q:{if((c|0)==-1){break q}c=i[i[l+12>>2]+(c<<2)>>2];d=-1;if((c|0)==-1){break q}d=c+ -1|0;if((c>>>0)%3|0){break q}d=c+2|0}c=d;if((k|0)!=(c|0)){continue}break}}p=p+1|0;if(p>>>0>>0){continue}break}}b=i[e+20>>2];j=i[e+16>>2];m=b-j|0;h=m>>2;i[i[e>>2]+(g<<2)>>2]=h;c=i[e+24>>2];r:{if(b>>>0>>0){i[b>>2]=g;i[e+20>>2]=b+4;break r}f=h+1|0;if(f>>>0>=1073741824){break k}d=c-j|0;c=d>>1;d=d>>2>>>0<536870911?c>>>0>>0?f:c:1073741823;b=0;s:{if(!d){break s}if(d>>>0>=1073741824){break j}b=Dm(d<<2)}c=b+(h<<2)|0;i[c>>2]=g;d=b+(d<<2)|0;c=c+4|0;if((m|0)>=1){pn(b,j,m)}i[e+24>>2]=d;i[e+20>>2]=c;i[e+16>>2]=b;if(!j){break r}nn(j);l=i[a+8>>2]}if((g|0)==-1){break m}b=((g>>>0)%3|0?-1:2)+g|0;if((b|0)==-1){break m}b=i[i[l+12>>2]+(b<<2)>>2];if((b|0)==-1){break m}c=b+((b>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}d=g;if((c|0)==(d|0)){break m}while(1){b=c;t:{u:{c=i[a+220>>2];j=i[a+216>>2];if((c|0)==(j|0)){break u}m=(c-j|0)/144|0;c=0;while(1){h=i[(j+o(c,144)|0)+32>>2];f=b<<2;if(i[h+f>>2]==i[h+(d<<2)>>2]){c=c+1|0;if(c>>>0>>0){continue}break u}break}c=i[e+20>>2];n=i[e+16>>2];j=c-n|0;m=j>>2;i[f+i[e>>2]>>2]=m;d=i[e+24>>2];if(c>>>0>>0){i[c>>2]=b;i[e+20>>2]=c+4;break t}h=m+1|0;if(h>>>0>=1073741824){break i}f=d-n|0;d=f>>1;f=f>>2>>>0<536870911?d>>>0>>0?h:d:1073741823;c=0;v:{if(!f){break v}if(f>>>0>=1073741824){break h}c=Dm(f<<2)}d=c+(m<<2)|0;i[d>>2]=b;f=c+(f<<2)|0;d=d+4|0;if((j|0)>=1){pn(c,n,j)}i[e+24>>2]=f;i[e+20>>2]=d;i[e+16>>2]=c;if(!n){break t}nn(n);l=i[a+8>>2];break t}c=i[e>>2];i[c+(b<<2)>>2]=i[c+(d<<2)>>2]}if((b|0)==-1){break m}c=b+((b>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}c=i[i[l+12>>2]+(c<<2)>>2];if((c|0)==-1){break m}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}d=b;if((c|0)!=(g|0)){continue}break}}q=q+1|0;c=i[l+24>>2];if((q|0)>2]-c>>2){continue}break}break g}Sm();x()}Sm();x()}Ba(12220);x()}Sm();x()}Ba(12220);x()}q=i[a+4>>2];k=i[q+44>>2];d=i[k+100>>2];if((d|0)!=i[k+96>>2]){n=e+40|0;c=0;while(1){g=c+1|0;j=o(c,12);b=j+i[e>>2]|0;m=i[b+8>>2];h=i[b+4>>2];f=i[b>>2];b=i[k+96>>2];d=(d-b|0)/12|0;if(d>>>0<=c>>>0){i[n>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;b=k+96|0;bg(b,g-d|0,e+32|0);q=i[a+4>>2];b=i[b>>2]}b=b+j|0;i[b+8>>2]=m;i[b+4>>2]=h;i[b>>2]=f;c=g;k=i[q+44>>2];d=i[k+100>>2];if(c>>>0<(d-i[k+96>>2]|0)/12>>>0){continue}break}}i[i[q+4>>2]+80>>2]=i[e+20>>2]-i[e+16>>2]>>2;d=1}c=d;a=i[e>>2];if(a){i[e+4>>2]=a;nn(a)}a=i[e+16>>2];if(!a){break b}i[e+20>>2]=a;nn(a)}J=e+48|0;return c}function $g(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;e=J-32|0;J=e;g=i[a+32>>2];c=k[a+36>>1];a:{b:{if((c<<24|c<<8&16711680)>>>16>>>0<=513){b=i[g+12>>2];f=b;c=i[g+20>>2];d=c;h=i[g+16>>2];n=h+4|0;if(n>>>0<4){c=c+1|0}m=i[g+8>>2];q=n;n=c;if((b|0)<(c|0)?1:(b|0)<=(c|0)?m>>>0>>0:0){break a}t=i[g>>2];c=t+h|0;r=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[g+16>>2]=q;i[g+20>>2]=n;c=f;b=d;f=h+8|0;if(f>>>0<8){b=b+1|0}d=f;f=b;if((c|0)<(b|0)?1:(c|0)<=(b|0)?m>>>0>>0:0){break a}c=q+t|0;t=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+24>>2]=t;i[g+16>>2]=d;i[g+20>>2]=f;break b}if(!ah(1,e+28|0,g)){break a}if(!ah(1,e+24|0,i[a+32>>2])){break a}r=i[e+28>>2];t=i[e+24>>2]}if(r>>>0>1431655765){break a}f=i[a+32>>2];c=f;h=i[c+8>>2];b=h;g=i[c+16>>2];n=b-g|0;d=i[c+12>>2];m=b>>>0>>0;b=i[c+20>>2];q=Hn(n,d-(m+b|0)|0,3,0);n=L;if((d|0)<(b|0)?1:(d|0)<=(b|0)?h>>>0<=g>>>0:0){break a}c=r;d=Gn(c,0,3,0);h=L;if(!h&d>>>0>>0|h>>>0<0|(!n&q>>>0>>0|n>>>0<0)){break a}n=j[g+i[f>>2]|0];c=b;h=g+1|0;if(h>>>0<1){c=c+1|0}d=f;i[d+16>>2]=h;i[d+20>>2]=c;c:{if(!n){if(!bh(a,r)){break a}break c}d:{if(t>>>0<=255){if(!r){break c}q=0;p=e+16|0;i[p>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;o=i[f+8>>2];d=i[f+12>>2];b=d;if((b|0)<(c|0)?1:(b|0)<=(c|0)?o>>>0<=h>>>0:0){break d}while(1){g=i[f>>2];s=j[g+h|0];b=c;m=h+1|0;if(m>>>0<1){b=b+1|0}n=f;i[f+16>>2]=m;i[f+20>>2]=b;i[e+8>>2]=s;if((d|0)<(b|0)?1:(d|0)<=(b|0)?o>>>0<=m>>>0:0){break d}s=j[g+m|0];b=c;m=h+2|0;if(m>>>0<2){b=b+1|0}i[f+16>>2]=m;i[n+20>>2]=b;i[e+12>>2]=s;if((d|0)<(b|0)?1:(d|0)<=(b|0)?o>>>0<=m>>>0:0){break d}b=j[g+m|0];d=h+3|0;if(d>>>0<3){c=c+1|0}i[f+16>>2]=d;i[f+20>>2]=c;i[e+16>>2]=b;ch(i[a+44>>2]+96|0,e+8|0);q=q+1|0;if((q|0)==(r|0)){break c}f=i[a+32>>2];b=f;h=i[b+16>>2];c=i[b+20>>2];i[p>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;o=i[b+8>>2];d=i[b+12>>2];b=d;if((b|0)>(c|0)?1:(b|0)>=(c|0)?o>>>0>h>>>0:0){continue}break}break d}if(t>>>0<=65535){if(!r){break c}q=0;u=e+16|0;i[u>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;n=i[f+12>>2];p=n;d=g+3|0;if(d>>>0<3){b=b+1|0}m=i[f+8>>2];o=d;d=b;if((p|0)<(b|0)?1:(p|0)<=(b|0)?m>>>0>>0:0){break d}while(1){p=i[f>>2];b=p+h|0;b=j[b|0]|j[b+1|0]<<8;i[f+16>>2]=o;i[f+20>>2]=d;i[e+8>>2]=b;d=n;b=c;g=h+4|0;if(g>>>0<4){b=b+1|0}s=g;g=b;if((d|0)<(b|0)?1:(d|0)<=(b|0)?m>>>0>>0:0){break d}b=o+p|0;b=j[b|0]|j[b+1|0]<<8;i[f+16>>2]=s;i[f+20>>2]=g;i[e+12>>2]=b;b=c;c=h+6|0;if(c>>>0<6){b=b+1|0}d=c;c=b;if((n|0)<(b|0)?1:(n|0)<=(b|0)?m>>>0>>0:0){break d}b=p+s|0;b=j[b|0]|j[b+1|0]<<8;i[f+16>>2]=d;i[f+20>>2]=c;i[e+16>>2]=b;ch(i[a+44>>2]+96|0,e+8|0);q=q+1|0;if((q|0)==(r|0)){break c}f=i[a+32>>2];b=f;h=i[b+16>>2];c=i[b+20>>2];i[u>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;g=i[b+12>>2];n=g;m=i[b+8>>2];p=m;b=c;d=h+2|0;if(d>>>0<2){b=b+1|0}o=d;d=b;if((g|0)>(b|0)?1:(g|0)>=(b|0)?p>>>0>=o>>>0:0){continue}break}break d}e:{if(l[i[a+44>>2]+80>>2]>2097151){break e}d=k[a+36>>1];if((d<<24|d<<8&16711680)>>>16>>>0<514){break e}if(!r){break c}c=e+16|0;i[c>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;if(!ah(1,e+4|0,f)){break d}while(1){i[e+8>>2]=i[e+4>>2];if(!ah(1,e+4|0,i[a+32>>2])){break d}i[e+12>>2]=i[e+4>>2];if(!ah(1,e+4|0,i[a+32>>2])){break d}i[e+16>>2]=i[e+4>>2];ch(i[a+44>>2]+96|0,e+8|0);o=o+1|0;if((r|0)==(o|0)){break c}b=i[a+32>>2];i[c>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;if(ah(1,e+4|0,b)){continue}break}break d}if(!r){break c}q=0;u=e+16|0;i[u>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;n=i[f+12>>2];p=n;d=g+5|0;if(d>>>0<5){b=b+1|0}m=i[f+8>>2];o=d;d=b;if((p|0)<(b|0)?1:(p|0)<=(b|0)?m>>>0>>0:0){break d}while(1){p=i[f>>2];b=p+h|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[f+16>>2]=o;i[f+20>>2]=d;i[e+8>>2]=b;d=n;b=c;g=h+8|0;if(g>>>0<8){b=b+1|0}s=g;g=b;if((d|0)<(b|0)?1:(d|0)<=(b|0)?m>>>0>>0:0){break d}b=o+p|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[f+16>>2]=s;i[f+20>>2]=g;i[e+12>>2]=b;b=h+12|0;if(b>>>0<12){c=c+1|0}d=b;b=c;if((n|0)<(b|0)?1:(n|0)<=(b|0)?m>>>0>>0:0){break d}c=p+s|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[f+16>>2]=d;i[f+20>>2]=b;i[e+16>>2]=c;ch(i[a+44>>2]+96|0,e+8|0);q=q+1|0;if((q|0)==(r|0)){break c}f=i[a+32>>2];b=f;h=i[b+16>>2];c=i[b+20>>2];i[u>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;g=i[b+12>>2];n=g;m=i[b+8>>2];p=m;b=c;d=h+4|0;if(d>>>0<4){b=b+1|0}o=d;d=b;if((g|0)>(b|0)?1:(g|0)>=(b|0)?p>>>0>=o>>>0:0){continue}break}}o=0;break a}i[i[a+4>>2]+80>>2]=t;o=1}J=e+32|0;return o|0}function $c(a,b,c,d){var e=0,f=0,o=p(0),q=0,r=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(g[b|0]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(127)}b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(j[b|0]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(255)}b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(h[b>>1]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(32767)}b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(k[b>>1]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(65535)}b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(i[b>>2]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(4.656612873077393e-10)}b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(l[b>>2]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(2.3283064365386963e-10)}b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(+l[b>>2]+ +i[b+4>>2]*4294967296);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(1.0842021724855044e-19)}b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(+l[b>>2]+ +l[b+4>>2]*4294967296);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(5.421010862427522e-20)}b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}m[(f<<2)+d>>2]=m[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}m[(f<<2)+d>>2]=n[b>>3];b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){q=i[a>>2];e=i[q>>2];b=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;while(1){if(l[q+4>>2]<=b>>>0){break b}m[(f<<2)+d>>2]=j[b|0]?p(1):p(0);b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}qn((e<<2)+d|0,0,c-e<<2)}return r}return 0}qn((e<<2)+d|0,0,c-e<<2);return 1}function qi(a,b,c,d){var e=0,f=0,l=0,o=0,r=0,s=0,t=p(0),u=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;l=i[e+4>>2];while(1){if(l>>>0<=b>>>0){break b}o=0;e=h[b>>1];if((e|0)<0){break c}h[(f<<1)+d>>1]=e;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}o=1;if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e+32768>>>0>65535){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e>>>0>32767){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];r=i[b>>2];s=r+32768|0;if(s>>>0<32768){e=e+1|0}if(!e&s>>>0>65535|e>>>0>0){break b}h[(f<<1)+d>>1]=r;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];r=i[b>>2];if(!e&r>>>0>32767|e>>>0>0){break b}h[(f<<1)+d>>1]=r;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}r=(f<<1)+d|0;t=m[b>>2];e:{if(p(q(t))>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}r=(f<<1)+d|0;u=n[b>>3];f:{if(q(u)<2147483648){e=~~u;break f}e=-2147483648}h[r>>1]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}qn((e<<1)+d|0,0,c-e<<1)}return o}return 0}qn((e<<1)+d|0,0,c-e<<1);return 1}function si(a,b,c,d){var e=0,f=0,l=0,o=0,q=0,r=p(0),s=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;l=i[e+4>>2];while(1){if(l>>>0<=b>>>0){break b}o=0;e=g[b|0];if((e|0)<0){break c}h[(f<<1)+d>>1]=e&255;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}o=1;if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;l=i[e+4>>2];while(1){if(l>>>0<=b>>>0){break b}o=0;e=h[b>>1];if((e|0)<0){break c}h[(f<<1)+d>>1]=e;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}o=1;if((e|0)>=(c|0)){break c}break a;case 3:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e>>>0>65535){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e>>>0>65535){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];q=i[b>>2];if(!e&q>>>0>65535|e>>>0>0){break b}h[(f<<1)+d>>1]=q;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];q=i[b>>2];if(!e&q>>>0>65535|e>>>0>0){break b}h[(f<<1)+d>>1]=q;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}q=(f<<1)+d|0;r=m[b>>2];e:{if(r=p(0)){e=~~r>>>0;break e}e=0}h[q>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}q=(f<<1)+d|0;s=n[b>>3];f:{if(s<4294967296&s>=0){e=~~s>>>0;break f}e=0}h[q>>1]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}qn((e<<1)+d|0,0,c-e<<1)}return o}return 0}qn((e<<1)+d|0,0,c-e<<1);return 1}function ui(a,b,c,d){var e=0,f=0,l=0,o=0,r=0,s=p(0),t=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=h[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=g[a+24|0];if(((o|0)>(c|0)?c:o)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;e=i[e+4>>2];while(1){if(e>>>0<=b>>>0){break b}o=0;r=i[b>>2];if((r|0)<0){break c}i[(f<<2)+d>>2]=r;b=b+4|0;f=f+1|0;o=g[a+24|0];if((f|0)<((o|0)>(c|0)?c:o)<<24>>24){continue}break}}if((o|0)>=(c|0)){return 1}qn((o<<2)+d|0,0,c-o<<2);return 1;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=i[b+4>>2];l=i[b>>2];if(l+ -2147483648>>>0<2147483648){e=e+1|0}if(e>>>0>0){break b}i[(f<<2)+d>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=i[b+4>>2];l=i[b>>2];if(!e&l>>>0>2147483647|e>>>0>0){break b}i[(f<<2)+d>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=(f<<2)+d|0;s=m[b>>2];e:{if(p(q(s))>2]=l;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=(f<<2)+d|0;t=n[b>>3];f:{if(q(t)<2147483648){l=~~t;break f}l=-2147483648}i[e>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}qn((e<<2)+d|0,0,c-e<<2)}return o}return 0}qn((e<<2)+d|0,0,c-e<<2);return 1}function fd(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;f=J-80|0;J=f;h=-1;e=-1;a:{if((b|0)==-1){break a}e=b+1|0;h=(e>>>0)%3|0?e:b+ -2|0;e=b+ -1|0;if((b>>>0)%3|0){break a}e=b+2|0}l=i[a+36>>2];b=i[l>>2];b:{c:{d:{e:{f:{l=i[l+4>>2]-b>>2;m=h<<2;h=i[i[a+32>>2]+28>>2];k=i[m+h>>2];if(l>>>0<=k>>>0){break f}e=i[h+(e<<2)>>2];if(l>>>0<=e>>>0){break f}g:{h:{u=i[b+(k<<2)>>2];w=(u|0)>=(d|0);if(w){break h}h=i[b+(e<<2)>>2];if((h|0)>=(d|0)){break h}b=h<<3;B=i[(b|4)+c>>2];e=u<<3;y=i[(e|4)+c>>2];C=i[b+c>>2];z=i[c+e>>2];if(!((C|0)!=(z|0)|(y|0)!=(B|0))){i[a+8>>2]=z;i[a+12>>2]=y;break g}b=i[i[a+4>>2]+(d<<2)>>2];i[f+72>>2]=0;i[f+76>>2]=0;e=f- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}gd(e,b,g[e+24|0],f+56|0);b=i[i[a+4>>2]+(u<<2)>>2];i[f+48>>2]=0;i[f+52>>2]=0;i[f+40>>2]=0;i[f+44>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}gd(e,b,g[e+24|0],f+32|0);b=i[i[a+4>>2]+(h<<2)>>2];i[f+24>>2]=0;i[f+28>>2]=0;i[f+16>>2]=0;i[f+20>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}gd(e,b,g[e+24|0],f+8|0);A=i[f+44>>2];e=i[f+16>>2];b=i[f+40>>2];q=i[f+20>>2]-(A+(e>>>0>>0)|0)|0;h=e-b|0;e=Gn(h,q,h,q);p=L;m=e;E=i[f+36>>2];e=i[f+8>>2];r=i[f+32>>2];l=r;s=i[f+12>>2]-(E+(e>>>0>>0)|0)|0;l=e-l|0;o=Gn(l,s,l,s);k=m+o|0;e=L+p|0;e=k>>>0>>0?e+1|0:e;F=k;n=i[f+52>>2];k=i[f+24>>2];m=i[f+48>>2];o=m;p=i[f+28>>2]-(n+(k>>>0>>0)|0)|0;k=k-o|0;v=Gn(k,p,k,p);o=F+v|0;e=L+e|0;t=o;o=o>>>0>>0?e+1|0:e;if(!(t|o)){break h}c=i[f+64>>2];u=c-b|0;G=i[f+68>>2]-((c>>>0>>0)+A|0)|0;b=Gn(u,G,h,q);c=L;e=b;b=i[f+56>>2];w=b-r|0;H=i[f+60>>2]-((b>>>0>>0)+E|0)|0;d=Gn(w,H,l,s);b=e+d|0;e=L+c|0;e=b>>>0>>0?e+1|0:e;d=b;b=i[f+72>>2];A=b-m|0;I=i[f+76>>2]-((b>>>0>>0)+n|0)|0;c=Gn(A,I,k,p);b=d+c|0;e=L+e|0;D=b;F=b;r=b>>>0>>0?e+1|0:e;K=r;e=p;b=e>>31;c=e>>31;e=b+e|0;m=c+k|0;if(m>>>0>>0){e=e+1|0}c=c^m;b=b^e;M=b;m=c;E=b;d=q;b=d>>31;d=d>>31;n=b;b=q+b|0;e=d;v=e+h|0;if(v>>>0>>0){b=b+1|0}d=d^v;b=b^n;N=b;v=b;e=s;b=e>>31;e=e>>31;P=m;Q=d;n=b+s|0;m=e+l|0;if(m>>>0>>0){n=n+1|0}e=e^m;d=e>>>0>>0;b=b^n;d=(b|0)<(N|0)?1:(b|0)<=(N|0)?d:0;e=d?Q:e;c=e>>>0>>0;b=d?v:b;c=(b|0)<(M|0)?1:(b|0)<=(M|0)?c:0;c=F>>>0>In(-1,2147483647,c?P:e,c?E:b)>>>0;b=L;if((K|0)>(b|0)?1:(K|0)>=(b|0)?c:0){break b}d=1;b=0;c=Hn(Gn(h,q,D,r),L,t,o);e=G-(L+(u>>>0>>0)|0)|0;c=u-c|0;c=Gn(c,e,c,e);h=L;m=c;c=Hn(Gn(l,s,D,r),L,t,o);e=H-(L+(w>>>0>>0)|0)|0;c=w-c|0;e=Gn(c,e,c,e);c=m+e|0;n=L+h|0;n=c>>>0>>0?n+1|0:n;l=c;c=Hn(Gn(D,r,k,p),L,t,o);e=I-(L+(A>>>0>>0)|0)|0;c=A-c|0;h=Gn(c,e,c,e);c=l+h|0;e=L+n|0;h=Gn(c,c>>>0>>0?e+1|0:e,t,o);c=L;l=c;if(!c&h>>>0<=1|c>>>0<0){break e}k=h;c=l;while(1){e=b<<1|d>>>31;d=d<<1;b=e;q=!c&k>>>0>7|c>>>0>0;k=(c&3)<<30|k>>>2;c=c>>>2|0;if(q){continue}break}break d}e=a;if(w){if((d|0)<=0){i[a+8>>2]=0;i[a+12>>2]=0;break g}b=(d<<1)+ -2|0}else{b=u<<1}b=(b<<2)+c|0;i[e+8>>2]=i[b>>2];i[a+12>>2]=i[b+4>>2]}O=1;break b}Tm();x()}b=l;d=h;if(d-1|0){break c}}while(1){c=In(h,l,d,b)+d|0;e=b+L|0;e=c>>>0>>0?e+1|0:e;d=(e&1)<<31|c>>>1;b=e>>>1|0;c=Gn(d,b,d,b);e=L;if((l|0)==(e|0)&c>>>0>h>>>0|e>>>0>l>>>0){continue}break}}l=i[a+20>>2];if(l){k=l+ -1|0;q=i[i[a+16>>2]+(k>>>3&536870908)>>2];i[a+20>>2]=k;c=B;e=y;s=c-e|0;p=e>>31;y=(c>>31)-(p+(c>>>0>>0)|0)|0;c=Gn(D,r,s,y);h=L;e=Gn(e,p,t,o);c=e+c|0;n=L+h|0;n=c>>>0>>0?n+1|0:n;m=c;c=C;h=z;e=h;p=c-e|0;B=e>>31;z=(c>>31)-(B+(c>>>0>>0)|0)|0;c=Gn(d,b,p,z);e=c;c=q>>>k&1;C=c?0-e|0:e;k=m+C|0;m=L;e=(c?0-(m+(0>>0)|0)|0:m)+n|0;R=a,S=Hn(k,k>>>0>>0?e+1|0:e,t,o),i[R+12>>2]=S;e=Gn(D,r,p,z);k=L;m=a;a=e;e=Gn(h,B,t,o);a=a+e|0;n=L+k|0;n=a>>>0>>0?n+1|0:n;e=a;a=Gn(d,b,s,y);d=c?a:0-a|0;b=e+d|0;e=L;a=(c?e:0-((0>>0)+e|0)|0)+n|0;R=m,S=Hn(b,b>>>0>>0?a+1|0:a,t,o),i[R+8>>2]=S}O=(l|0)!=0}J=f+80|0;return O}function Ed(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;f=J-80|0;J=f;e=-1;h=-1;a:{if((b|0)==-1){break a}k=((b>>>0)%3|0?-1:2)+b|0;l=i[a+32>>2];p=b+1|0;b=(p>>>0)%3|0?p:b+ -2|0;if((b|0)!=-1){e=i[i[l>>2]+(b<<2)>>2]}if((k|0)==-1){break a}h=i[i[l>>2]+(k<<2)>>2]}k=i[a+36>>2];b=i[k>>2];b:{c:{d:{e:{k=i[k+4>>2]-b>>2;if(!(k>>>0<=e>>>0|k>>>0<=h>>>0)){f:{g:{u=i[b+(e<<2)>>2];w=(u|0)>=(d|0);if(w){break g}h=i[b+(h<<2)>>2];if((h|0)>=(d|0)){break g}b=h<<3;B=i[(b|4)+c>>2];e=u<<3;y=i[(e|4)+c>>2];C=i[b+c>>2];z=i[c+e>>2];if(!((C|0)!=(z|0)|(y|0)!=(B|0))){i[a+8>>2]=z;i[a+12>>2]=y;break f}b=i[i[a+4>>2]+(d<<2)>>2];i[f+72>>2]=0;i[f+76>>2]=0;e=f- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}gd(e,b,g[e+24|0],f+56|0);b=i[i[a+4>>2]+(u<<2)>>2];i[f+48>>2]=0;i[f+52>>2]=0;i[f+40>>2]=0;i[f+44>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}gd(e,b,g[e+24|0],f+32|0);b=i[i[a+4>>2]+(h<<2)>>2];i[f+24>>2]=0;i[f+28>>2]=0;i[f+16>>2]=0;i[f+20>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}gd(e,b,g[e+24|0],f+8|0);A=i[f+44>>2];e=i[f+16>>2];b=i[f+40>>2];p=i[f+20>>2]-(A+(e>>>0>>0)|0)|0;h=e-b|0;e=Gn(h,p,h,p);q=L;n=e;E=i[f+36>>2];e=i[f+8>>2];r=i[f+32>>2];k=r;s=i[f+12>>2]-(E+(e>>>0>>0)|0)|0;k=e-k|0;o=Gn(k,s,k,s);l=n+o|0;e=L+q|0;e=l>>>0>>0?e+1|0:e;F=l;m=i[f+52>>2];l=i[f+24>>2];n=i[f+48>>2];o=n;q=i[f+28>>2]-(m+(l>>>0>>0)|0)|0;l=l-o|0;v=Gn(l,q,l,q);o=F+v|0;e=L+e|0;t=o;o=o>>>0>>0?e+1|0:e;if(!(t|o)){break g}c=i[f+64>>2];u=c-b|0;G=i[f+68>>2]-((c>>>0>>0)+A|0)|0;b=Gn(u,G,h,p);c=L;e=b;b=i[f+56>>2];w=b-r|0;H=i[f+60>>2]-((b>>>0>>0)+E|0)|0;d=Gn(w,H,k,s);b=e+d|0;e=L+c|0;e=b>>>0>>0?e+1|0:e;d=b;b=i[f+72>>2];A=b-n|0;I=i[f+76>>2]-((b>>>0>>0)+m|0)|0;c=Gn(A,I,l,q);b=d+c|0;e=L+e|0;D=b;F=b;r=b>>>0>>0?e+1|0:e;K=r;e=q;b=e>>31;c=e>>31;e=b+e|0;n=c+l|0;if(n>>>0>>0){e=e+1|0}c=c^n;b=b^e;M=b;n=c;E=b;d=p;b=d>>31;d=d>>31;m=b;b=p+b|0;e=d;v=e+h|0;if(v>>>0>>0){b=b+1|0}d=d^v;b=b^m;N=b;v=b;e=s;b=e>>31;e=e>>31;P=n;Q=d;m=b+s|0;n=e+k|0;if(n>>>0>>0){m=m+1|0}e=e^n;d=e>>>0>>0;b=b^m;d=(b|0)<(N|0)?1:(b|0)<=(N|0)?d:0;e=d?Q:e;c=e>>>0>>0;b=d?v:b;c=(b|0)<(M|0)?1:(b|0)<=(M|0)?c:0;c=F>>>0>In(-1,2147483647,c?P:e,c?E:b)>>>0;b=L;if((K|0)>(b|0)?1:(K|0)>=(b|0)?c:0){break b}d=1;b=0;c=Hn(Gn(h,p,D,r),L,t,o);e=G-(L+(u>>>0>>0)|0)|0;c=u-c|0;c=Gn(c,e,c,e);h=L;n=c;c=Hn(Gn(k,s,D,r),L,t,o);e=H-(L+(w>>>0>>0)|0)|0;c=w-c|0;e=Gn(c,e,c,e);c=n+e|0;m=L+h|0;m=c>>>0>>0?m+1|0:m;k=c;c=Hn(Gn(D,r,l,q),L,t,o);e=I-(L+(A>>>0>>0)|0)|0;c=A-c|0;h=Gn(c,e,c,e);c=k+h|0;e=L+m|0;h=Gn(c,c>>>0>>0?e+1|0:e,t,o);c=L;k=c;if(!c&h>>>0<=1|c>>>0<0){break e}l=h;c=k;while(1){e=b<<1|d>>>31;d=d<<1;b=e;p=!c&l>>>0>7|c>>>0>0;l=(c&3)<<30|l>>>2;c=c>>>2|0;if(p){continue}break}break d}e=a;if(w){if((d|0)<=0){i[a+8>>2]=0;i[a+12>>2]=0;break f}b=(d<<1)+ -2|0}else{b=u<<1}b=(b<<2)+c|0;i[e+8>>2]=i[b>>2];i[a+12>>2]=i[b+4>>2]}O=1;break b}Tm();x()}b=k;d=h;if(d-1|0){break c}}while(1){c=In(h,k,d,b)+d|0;e=b+L|0;e=c>>>0>>0?e+1|0:e;d=(e&1)<<31|c>>>1;b=e>>>1|0;c=Gn(d,b,d,b);e=L;if((k|0)==(e|0)&c>>>0>h>>>0|e>>>0>k>>>0){continue}break}}k=i[a+20>>2];if(k){l=k+ -1|0;p=i[i[a+16>>2]+(l>>>3&536870908)>>2];i[a+20>>2]=l;c=B;e=y;s=c-e|0;q=e>>31;y=(c>>31)-(q+(c>>>0>>0)|0)|0;c=Gn(D,r,s,y);h=L;e=Gn(e,q,t,o);c=e+c|0;m=L+h|0;m=c>>>0>>0?m+1|0:m;n=c;c=C;h=z;e=h;q=c-e|0;B=e>>31;z=(c>>31)-(B+(c>>>0>>0)|0)|0;c=Gn(d,b,q,z);e=c;c=p>>>l&1;C=c?0-e|0:e;l=n+C|0;n=L;e=(c?0-(n+(0>>0)|0)|0:n)+m|0;R=a,S=Hn(l,l>>>0>>0?e+1|0:e,t,o),i[R+12>>2]=S;e=Gn(D,r,q,z);l=L;n=a;a=e;e=Gn(h,B,t,o);a=a+e|0;m=L+l|0;m=a>>>0>>0?m+1|0:m;e=a;a=Gn(d,b,s,y);d=c?a:0-a|0;b=e+d|0;e=L;a=(c?e:0-((0>>0)+e|0)|0)+m|0;R=n,S=Hn(b,b>>>0>>0?a+1|0:a,t,o),i[R+8>>2]=S}O=(k|0)!=0}J=f+80|0;return O}function wi(a,b,c,d){var e=0,f=0,o=0,q=0,r=0,s=p(0),t=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=h[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}e=i[b>>2];if(l[b+4>>2]>0){break b}i[(f<<2)+d>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}e=i[b>>2];if(l[b+4>>2]>0){break b}i[(f<<2)+d>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}r=(f<<2)+d|0;s=m[b>>2];e:{if(s=p(0)){e=~~s>>>0;break e}e=0}i[r>>2]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}r=(f<<2)+d|0;t=n[b>>3];f:{if(t<4294967296&t>=0){e=~~t>>>0;break f}e=0}i[r>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+Gn(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}qn((e<<2)+d|0,0,c-e<<2)}return q}return 0}qn((e<<2)+d|0,0,c-e<<2);return 1}function kg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,p=0,q=0;n=J-16|0;J=n;a:{b:{c=i[a+144>>2];c=k[(M[i[i[c>>2]+32>>2]](c)|0)+36>>1];if((c<<24|c<<8&16711680)>>>16>>>0<=513){c=i[a+4>>2];i[a+40>>2]=i[a>>2];i[a+44>>2]=c;e=a+32|0;c=e;d=i[c+4>>2];i[a+72>>2]=i[c>>2];i[a+76>>2]=d;d=i[a+28>>2];c=a- -64|0;i[c>>2]=i[a+24>>2];i[c+4>>2]=d;c=i[a+20>>2];i[a+56>>2]=i[a+16>>2];i[a+60>>2]=c;c=i[a+12>>2];i[a+48>>2]=i[a+8>>2];i[a+52>>2]=c;c=a+40|0;if(!Ch(c,1,n+8|0)){break b}d=i[c+4>>2];i[a>>2]=i[c>>2];i[a+4>>2]=d;d=i[c+36>>2];i[e>>2]=i[c+32>>2];i[e+4>>2]=d;e=i[c+28>>2];i[a+24>>2]=i[c+24>>2];i[a+28>>2]=e;d=i[c+20>>2];g=d;e=i[c+16>>2];i[a+16>>2]=e;i[a+20>>2]=d;d=i[c+12>>2];f=d;c=i[c+8>>2];i[a+8>>2]=c;i[a+12>>2]=d;d=e;h=c-d|0;m=i[n+12>>2];c=f-((c>>>0>>0)+g|0)|0;d=i[n+8>>2];if((m|0)==(c|0)&d>>>0>h>>>0|m>>>0>c>>>0){break b}c=g+m|0;e=d+e|0;if(e>>>0>>0){c=c+1|0}i[a+16>>2]=e;i[a+20>>2]=c}c:{if(k[a+38>>1]<=513){c=i[a+4>>2];i[a+96>>2]=i[a>>2];i[a+100>>2]=c;e=a+32|0;c=e;d=i[c+4>>2];i[a+128>>2]=i[c>>2];i[a+132>>2]=d;d=a+24|0;c=d;f=i[c+4>>2];i[a+120>>2]=i[c>>2];i[a+124>>2]=f;f=a+16|0;c=f;g=i[c+4>>2];i[a+112>>2]=i[c>>2];i[a+116>>2]=g;g=a+8|0;c=g;h=i[c+4>>2];i[a+104>>2]=i[c>>2];i[a+108>>2]=h;c=a+96|0;if(!Ch(c,1,n+8|0)){break b}h=i[c+4>>2];i[a>>2]=i[c>>2];i[a+4>>2]=h;h=i[c+36>>2];i[e>>2]=i[c+32>>2];i[e+4>>2]=h;e=i[c+28>>2];i[d>>2]=i[c+24>>2];i[d+4>>2]=e;d=i[c+20>>2];h=d;e=i[c+16>>2];i[f>>2]=e;i[f+4>>2]=d;d=i[c+12>>2];f=d;c=i[c+8>>2];i[g>>2]=c;i[g+4>>2]=d;d=e;g=c-d|0;m=i[n+12>>2];d=f-((c>>>0>>0)+h|0)|0;c=i[n+8>>2];if((m|0)==(d|0)&c>>>0>g>>>0|m>>>0>d>>>0){break b}f=h+m|0;e=c+e|0;if(e>>>0>>0){f=f+1|0}i[a+16>>2]=e;i[a+20>>2]=f;break c}f=0;if(!Ae(a+80|0,a)){break a}}f=0;if(!_f(a)){break a}c=i[a+4>>2];i[b>>2]=i[a>>2];i[b+4>>2]=c;c=i[a+36>>2];i[b+32>>2]=i[a+32>>2];i[b+36>>2]=c;c=i[a+28>>2];i[b+24>>2]=i[a+24>>2];i[b+28>>2]=c;c=i[a+20>>2];i[b+16>>2]=i[a+16>>2];i[b+20>>2]=c;c=i[a+12>>2];i[b+8>>2]=i[a+8>>2];i[b+12>>2]=c;c=i[a+144>>2];c=k[(M[i[i[c>>2]+32>>2]](c)|0)+36>>1];d:{if((c<<24|c<<8&16711680)>>>16>>>0<=513){c=i[a+144>>2];e:{if(j[(M[i[i[c>>2]+32>>2]](c)|0)+36|0]<=1){d=i[b+12>>2];c=i[b+20>>2];g=i[b+16>>2];e=g+4|0;if(e>>>0<4){c=c+1|0}h=e;e=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=g+i[b>>2]|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=e;break e}if(!Pf(1,n+8|0,b)){break a}c=i[n+8>>2]}d=c;c=i[a+152>>2];if(d>>>0>=c>>>0){break a}g=i[b+16>>2];d=i[b+12>>2];e=i[b+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[b+8>>2]<=g>>>0:0){break a}h=j[g+i[b>>2]|0];g=g+1|0;if(g>>>0<1){e=e+1|0}d=b;i[d+16>>2]=g;i[d+20>>2]=e;if(h){break a}i[a+176>>2]=2;i[a+180>>2]=7;break d}i[a+176>>2]=2;i[a+180>>2]=7;c=i[a+152>>2]}if((c|0)<0){break a}i[n+8>>2]=0;f=2;g=i[a+156>>2];d=i[a+160>>2]-g>>2;f:{if(c>>>0>d>>>0){Ta(a+156|0,c-d|0,n+8|0);f=i[a+176>>2];e=i[a+180>>2];break f}e=7;if(c>>>0>=d>>>0){break f}i[a+160>>2]=g+(c<<2)}g=a+184|0;e=(e-f|0)+1|0;c=i[a+188>>2];f=i[a+184>>2];d=(c-f|0)/12|0;g:{if(e>>>0>d>>>0){mg(g,e-d|0);e=i[a+188>>2];break g}if(e>>>0>=d>>>0){e=c;break g}e=f+o(e,12)|0;if((e|0)!=(c|0)){while(1){d=c+ -12|0;f=i[d>>2];if(f){i[c+ -8>>2]=f;nn(f)}c=d;if((e|0)!=(c|0)){continue}break}}i[a+188>>2]=e}h=a+196|0;f=i[a+184>>2];c=(e-f|0)/12|0;m=i[a+196>>2];d=i[a+200>>2]-m>>2;h:{if(c>>>0>d>>>0){Ra(h,c-d|0);f=i[a+184>>2];e=i[a+188>>2];break h}if(c>>>0>=d>>>0){break h}i[a+200>>2]=m+(c<<2)}if((e|0)==(f|0)){f=1;break a}c=0;while(1){if(!Pf(1,n+8|0,b)){break b}d=i[n+8>>2];e=i[a+148>>2];if(d>>>0>(i[e+4>>2]-i[e>>2]>>2>>>0)/3>>>0){break b}if(d){e=i[g>>2];q=o(c,12);f=e+q|0;m=i[f>>2];p=i[f+4>>2]-m>>2;i:{if(d>>>0>p>>>0){ye(f,d-p|0);e=i[g>>2];break i}if(d>>>0>=p>>>0){break i}i[f+4>>2]=(d<<2)+m}Qe(d,1,b,i[e+q>>2]);i[i[h>>2]+(c<<2)>>2]=d}f=1;c=c+1|0;if(c>>>0<(i[a+188>>2]-i[a+184>>2]|0)/12>>>0){continue}break}break a}f=0}J=n+16|0;return f}function Gg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;a:{b:{c:{d:{e:{f:{g:{if(i[a+92>>2]==i[a+88>>2]){break g}d=i[a+52>>2];h:{if((d|0)!=i[a+56>>2]){i[d>>2]=b;i[a+52>>2]=d+4;break h}h=i[a+48>>2];g=d-h|0;f=g>>2;c=f+1|0;if(c>>>0>=1073741824){break a}e=g>>1;c=f>>>0<536870911?e>>>0>>0?c:e:1073741823;d=0;i:{if(!c){break i}if(c>>>0>=1073741824){break b}d=Dm(c<<2)}e=d+(f<<2)|0;i[e>>2]=b;c=d+(c<<2)|0;e=e+4|0;if((g|0)>=1){pn(d,h,g)}i[a+56>>2]=c;i[a+52>>2]=e;i[a+48>>2]=d;if(!h){break h}nn(h)}i[a+84>>2]=0;e=-1;d=-1;j:{if((b|0)==-1){break j}f=i[a+4>>2];c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){e=i[i[f>>2]+(c<<2)>>2]}c=((b>>>0)%3|0?-1:2)+b|0;if((c|0)==-1){break j}d=i[i[f>>2]+(c<<2)>>2]}c=i[a+36>>2];h=c+(e>>>3&536870908)|0;g=i[h>>2];f=1<>2]=f|g;f=a+8|0;if((b|0)!=-1){c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0}else{c=-1}Hg(f,e,c);c=i[a+36>>2]}f=(d>>>3&536870908)+c|0;c=i[f>>2];e=1<>2]=c|e;c=a+8|0;e=-1;k:{if((b|0)==-1){break k}e=b+ -1|0;if((b>>>0)%3|0){break k}e=b+2|0}Hg(c,d,e)}e=-1;e=(b|0)!=-1?i[i[i[a+4>>2]>>2]+(b<<2)>>2]:e;f=i[a+36>>2]+(e>>>3&536870908)|0;c=i[f>>2];d=1<>2]=c|d;Hg(a+8|0,e,b)}c=i[a+84>>2];if((c|0)>2){break g}q=a+8|0;while(1){b=o(c,12)+a|0;e=b+52|0;d=i[e>>2];if((d|0)==i[b+48>>2]){c=c+1|0;if((c|0)!=3){continue}break g}d=d+ -4|0;b=i[d>>2];i[e>>2]=d;i[a+84>>2]=c;if((b|0)==-1){break g}e=i[a+24>>2];d=(b>>>0)/3|0;l:{if(i[e+(d>>>3&268435452)>>2]>>>d&1){break l}m:{while(1){g=(b>>>0)/3|0;d=(g>>>3&268435452)+e|0;i[d>>2]=i[d>>2]|1<>2]>>2]+(b<<2)>>2]:e;f=i[a+36>>2]+(e>>>3&536870908)|0;c=i[f>>2];d=1<>2]=c|d;Hg(q,e,b)}if((b|0)==-1){break m}h=i[a+4>>2];d=-1;e=-1;c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){e=i[i[h+12>>2]+(c<<2)>>2]}b=(b-o(g,3)|0?-1:2)+b|0;if((b|0)!=-1){d=i[i[h+12>>2]+(b<<2)>>2]}g=(d|0)==-1;f=(d>>>0)/3|0;c=(e>>>0)/3|0;n:{o:{p:{q:{b=(e|0)==-1;if(!b){b=b?-1:c;b=i[i[a+24>>2]+(b>>>3&536870908)>>2]&1<>2]+(b>>>3&536870908)>>2]>>>b&1){break r}b=0;c=i[i[h>>2]+(d<<2)>>2];if(!(i[i[a+36>>2]+(c>>>3&536870908)>>2]>>>c&1)){b=i[a+88>>2]+(c<<2)|0;c=i[b>>2];i[b>>2]=c+1;b=(c|0)<1?2:1}if(!(!p|(b|0)>i[a+84>>2])){b=d;e=i[a+24>>2];continue}c=o(b,12)+a|0;k=c+52|0;f=i[k>>2];m=c+56|0;s:{if((f|0)!=i[m>>2]){i[f>>2]=d;i[k>>2]=f+4;break s}h=c+48|0;n=i[h>>2];j=f-n|0;l=j>>2;g=l+1|0;if(g>>>0>=1073741824){break f}f=j>>1;f=l>>>0<536870911?f>>>0>>0?g:f:1073741823;c=0;t:{if(!f){break t}if(f>>>0>=1073741824){break e}c=Dm(f<<2)}g=c+(l<<2)|0;i[g>>2]=d;f=c+(f<<2)|0;d=g+4|0;if((j|0)>=1){pn(c,n,j)}i[h>>2]=c;i[k>>2]=d;i[m>>2]=f;if(!n){break s}nn(n)}if(i[a+84>>2]<=(b|0)){break r}i[a+84>>2]=b}if(p){break m}b=-1;if((e|0)==-1){break n}}b=i[i[i[a+4>>2]>>2]+(e<<2)>>2]}d=0;if(!(i[i[a+36>>2]+(b>>>3&536870908)>>2]>>>b&1)){b=i[a+88>>2]+(b<<2)|0;d=i[b>>2];i[b>>2]=d+1;d=(d|0)<1?2:1}if((d|0)<=i[a+84>>2]){b=e;e=i[a+24>>2];continue}break}b=o(d,12)+a|0;l=b+52|0;c=i[l>>2];h=b+56|0;u:{if((c|0)!=i[h>>2]){i[c>>2]=e;i[l>>2]=c+4;break u}g=b+48|0;j=i[g>>2];k=c-j|0;m=k>>2;f=m+1|0;if(f>>>0>=1073741824){break d}c=k>>1;c=m>>>0<536870911?c>>>0>>0?f:c:1073741823;b=0;v:{if(!c){break v}if(c>>>0>=1073741824){break c}b=Dm(c<<2)}f=b+(m<<2)|0;i[f>>2]=e;c=b+(c<<2)|0;e=f+4|0;if((k|0)>=1){pn(b,j,k)}i[g>>2]=b;i[l>>2]=e;i[h>>2]=c;if(!j){break u}nn(j)}c=i[a+84>>2];if((c|0)<=(d|0)){break l}i[a+84>>2]=d;c=d;break l}c=i[a+84>>2]}if((c|0)<3){continue}break}}return 1}Sm();x()}Ba(12220);x()}Sm();x()}Ba(12220);x()}Ba(12220);x()}Sm();x()} -function sl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;j=a+8|0;d=i[a+12>>2];h=i[a+8>>2];e=d-h>>2;a:{if((e|0)>(b|0)){break a}f=b+1|0;if(f>>>0>e>>>0){tl(j,f-e|0);break a}if(f>>>0>=e>>>0){break a}e=h+(f<<2)|0;if((e|0)!=(d|0)){while(1){d=d+ -4|0;f=i[d>>2];i[d>>2]=0;if(f){Ua(f)}if((d|0)!=(e|0)){continue}break}}i[a+12>>2]=e}b:{c:{d=i[i[c>>2]+56>>2];d:{if((d|0)>4){break d}d=o(d,12)+a|0;f=d+24|0;a=i[f>>2];k=d+28|0;g=i[k>>2];if((a|0)!=(g|0)){i[a>>2]=b;i[f>>2]=a+4;break d}l=d+20|0;d=i[l>>2];h=a-d|0;a=h>>2;e=a+1|0;if(e>>>0>=1073741824){break c}m=a<<2;g=g-d|0;a=g>>1;e=g>>2>>>0<536870911?a>>>0>>0?e:a:1073741823;a=0;e:{if(!e){break e}if(e>>>0>=1073741824){break b}a=Gm(e<<2)}g=m+a|0;i[g>>2]=b;e=a+(e<<2)|0;g=g+4|0;if((h|0)>=1){sn(a,d,h)}i[l>>2]=a;i[f>>2]=g;i[k>>2]=e;if(!d){break d}qn(d)}d=i[c>>2];i[d+60>>2]=b;a=i[j>>2];i[c>>2]=0;b=a+(b<<2)|0;a=i[b>>2];i[b>>2]=d;if(a){Ua(a)}return}Vm();x()}Da(14808);x()}function og(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if((e-c|0)/12>>>0>=b>>>0){if(b){h=c;b=o(b,12);c=b+ -12|0;c=tn(h,0,(c-((c>>>0)%12|0)|0)+12|0)+b|0}i[a+4>>2]=c;return}a:{b:{c:{j=i[a>>2];f=(c-j|0)/12|0;d=f+b|0;if(d>>>0<357913942){f=o(f,12);e=(e-j|0)/12|0;g=e<<1;e=e>>>0<178956970?g>>>0>>0?d:g:357913941;if(e){if(e>>>0>=357913942){break c}h=Gm(o(e,12))}d=f+h|0;b=o(b,12);f=tn(d,0,b-((b+ -12>>>0)%12|0)|0);g=b+f|0;b=o(e,12)+h|0;if((c|0)==(j|0)){break b}while(1){d=d+ -12|0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;c=c+ -12|0;i[d>>2]=i[c>>2];i[d+4>>2]=i[c+4>>2];i[d+8>>2]=i[c+8>>2];i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;if((c|0)!=(j|0)){continue}break}i[a+8>>2]=b;b=i[a+4>>2];i[a+4>>2]=g;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){a=b+ -12|0;d=i[a>>2];if(d){i[b+ -8>>2]=d;qn(d)}b=a;if((b|0)!=(c|0)){continue}break}break a}Vm();x()}Da(12220);x()}i[a+8>>2]=b;i[a+4>>2]=g;i[a>>2]=f}if(c){qn(c)}}function Xg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;j=i[a+12>>2];d=i[a+68>>2];e=i[d+80>>2];g[b+84|0]=0;h=i[b+68>>2];c=i[b+72>>2]-h>>2;a:{if(e>>>0>c>>>0){Yb(b+68|0,e-c|0,12516);d=i[a+68>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=h+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}n=d>>>0>1?d:1;p=i[j+28>>2];d=0;b:{while(1){c:{c=(o(d,3)<<2)+p|0;h=i[c>>2];if((h|0)==-1){break c}j=o(d,12)+m|0;k=i[j>>2];if(k>>>0>=e>>>0){break c}f=h<<2;h=i[i[a+72>>2]+12>>2];f=i[f+h>>2];if(f>>>0>=e>>>0){break c}l=k<<2;k=i[b+68>>2];i[l+k>>2]=f;f=i[c+4>>2];if((f|0)==-1){break c}l=i[j+4>>2];if(l>>>0>=e>>>0){break c}f=i[h+(f<<2)>>2];if(f>>>0>=e>>>0){break c}i[k+(l<<2)>>2]=f;c=i[c+8>>2];if((c|0)==-1){break c}j=i[j+8>>2];if(j>>>0>=e>>>0){break c}c=i[h+(c<<2)>>2];if(c>>>0>=e>>>0){break c}i[k+(j<<2)>>2]=c;c=1;d=d+1|0;if((n|0)!=(d|0)){continue}break b}break}c=0}return c|0}function sd(a){var b=0,c=0,d=0;b=i[a+8>>2];d=i[a>>2];a:{if(j[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;if((b|0)==-1|i[i[d>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){break e}b=i[i[i[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}i[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;i[a+8>>2]=b;if((b|0)!=-1){break b}}b=-1;c=i[a+4>>2];f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1|i[i[d>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break f}d=i[i[i[d+64>>2]+12>>2]+(c<<2)>>2];if((d|0)==-1){break f}if((d>>>0)%3|0){b=d+ -1|0;break f}b=d+2|0}g[a+12|0]=0;i[a+8>>2]=b;return}if((b|0)!=i[a+4>>2]){break a}i[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)==-1|i[i[d>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){break g}b=i[i[i[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break g}if((b>>>0)%3|0){c=b+ -1|0;break g}c=b+2|0}i[a+8>>2]=c}}function pc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;f=L-16|0;L=f;m=i[c+8>>2];h=i[c+16>>2];l=i[c+12>>2];d=l;k=i[c+20>>2];e=k;a:{if((d|0)<(e|0)?1:(d|0)<=(e|0)?m>>>0<=h>>>0:0){break a}n=i[c>>2];o=g[n+h|0];d=k;e=h+1|0;if(e>>>0<1){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;b:{if((o|0)==-2){break b}if((l|0)<(d|0)?1:(l|0)<=(d|0)?m>>>0<=e>>>0:0){break a}e=g[e+n|0];h=h+2|0;if(h>>>0<2){k=k+1|0}d=c;i[d+16>>2]=h;i[d+20>>2]=k;if((e+1&255)>>>0>4){break a}O[i[i[a>>2]+40>>2]](f+8|0,a,o,e);k=i[f+8>>2];i[f+8>>2]=0;d=i[a+20>>2];i[a+20>>2]=k;if(!d){i[f+8>>2]=0;break b}O[i[i[d>>2]+4>>2]](d);d=i[f+8>>2];i[f+8>>2]=0;if(!d){break b}O[i[i[d>>2]+4>>2]](d)}d=i[a+20>>2];if(d){if(!(O[i[i[a>>2]+28>>2]](a,d)|0)){break a}}if(!(O[i[i[a>>2]+36>>2]](a,b,c)|0)){break a}c=i[a+4>>2];if(!(!c|j[c+36|0]>1)){if(!(O[i[i[a>>2]+48>>2]](a,i[b+4>>2]-i[b>>2]>>2)|0)){break a}}p=1}L=f+16|0;return p|0}function fa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=p(0),f=p(0),h=p(0),k=p(0),l=p(0),m=0,n=p(0),o=p(0),r=p(0),s=p(0),u=0;a:{if(i[c+28>>2]!=9|j[c+24|0]!=3){break a}a=i[a+4>>2];if(a+ -2>>>0>28){break a}u=1;m=i[c+80>>2];if(!m){break a}n=p(p(2)/p((1<>2]>>2]+i[c+48>>2]|0;a=i[i[b>>2]>>2]+i[b+48>>2]|0;b=0;while(1){h=p(0);o=p(0);r=p(0);e=p(p(n*p(i[a>>2]))+p(-1));f=p(p(n*p(i[a+4>>2]))+p(-1));l=p(p(p(1)-p(q(e)))-p(q(f)));k=p(t(p(-l),p(0)));s=p(-k);f=p(f+(f>>8;g[c+10|0]=d>>>16;g[c+11|0]=d>>>24;d=(Qn(o),Rn(2));g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;d=(Qn(h),Rn(2));g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;c=c+12|0;b=b+1|0;if((m|0)!=(b|0)){continue}break}}return u|0}function td(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+4>>2]=b;i[a>>2]=3088;b=c;e=i[b+8>>2];f=i[b+12>>2];h=i[b+16>>2];j=i[b+20>>2];k=i[b>>2];l=i[b+4>>2];i[a+40>>2]=0;g=a+32|0;i[g>>2]=0;i[g+4>>2]=0;i[a+24>>2]=h;i[a+28>>2]=j;i[a+16>>2]=e;i[a+20>>2]=f;i[a+8>>2]=k;i[a+12>>2]=l;a:{b=i[b+28>>2]-i[b+24>>2]|0;if(b){e=b>>2;if(e>>>0>=1073741824){break a}b=Gm(b);i[a+32>>2]=b;i[a+36>>2]=b;i[a+40>>2]=b+(e<<2);e=a;f=i[c+24>>2];c=i[c+28>>2]-f|0;if((c|0)>=1){b=sn(b,f,c)+c|0}i[e+36>>2]=b}i[a>>2]=5116;b=i[d+4>>2];i[a+44>>2]=i[d>>2];i[a+48>>2]=b;b=d+8|0;e=i[b+4>>2];i[a+52>>2]=i[b>>2];i[a+56>>2]=e;c=a- -64|0;i[c>>2]=0;i[c+4>>2]=0;i[a+60>>2]=6656;i[a>>2]=6072;c=i[d+4>>2];i[a+72>>2]=i[d>>2];i[a+76>>2]=c;c=i[b+4>>2];i[a+80>>2]=i[b>>2];i[a+84>>2]=c;i[a+104>>2]=1065353216;i[a+108>>2]=-1;i[a+96>>2]=-1;i[a+100>>2]=-1;i[a+88>>2]=1;i[a+92>>2]=-1;i[a+60>>2]=6292;Be(a+112|0);return}Vm();x()}function Bc(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+4>>2]=b;i[a>>2]=3088;b=c;e=i[b+8>>2];f=i[b+12>>2];h=i[b+16>>2];j=i[b+20>>2];k=i[b>>2];l=i[b+4>>2];i[a+40>>2]=0;g=a+32|0;i[g>>2]=0;i[g+4>>2]=0;i[a+24>>2]=h;i[a+28>>2]=j;i[a+16>>2]=e;i[a+20>>2]=f;i[a+8>>2]=k;i[a+12>>2]=l;a:{b=i[b+28>>2]-i[b+24>>2]|0;if(b){e=b>>2;if(e>>>0>=1073741824){break a}b=Gm(b);i[a+32>>2]=b;i[a+36>>2]=b;i[a+40>>2]=b+(e<<2);e=a;f=i[c+24>>2];c=i[c+28>>2]-f|0;if((c|0)>=1){b=sn(b,f,c)+c|0}i[e+36>>2]=b}i[a>>2]=3032;b=i[d+4>>2];i[a+44>>2]=i[d>>2];i[a+48>>2]=b;b=d+8|0;e=i[b+4>>2];i[a+52>>2]=i[b>>2];i[a+56>>2]=e;c=a- -64|0;i[c>>2]=0;i[c+4>>2]=0;i[a+60>>2]=4720;i[a>>2]=4092;c=i[d+4>>2];i[a+72>>2]=i[d>>2];i[a+76>>2]=c;c=i[b+4>>2];i[a+80>>2]=i[b>>2];i[a+84>>2]=c;i[a+104>>2]=1065353216;i[a+108>>2]=-1;i[a+96>>2]=-1;i[a+100>>2]=-1;i[a+88>>2]=1;i[a+92>>2]=-1;i[a+60>>2]=4328;Be(a+112|0);return}Vm();x()}function ha(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0;m=d-c|0;if((m|0)<1){return}k=i[a+8>>2];l=i[a+4>>2];if((m|0)<=(k-l|0)){k=l-b|0;a:{if((m|0)<=(k|0)){f=d;e=l;d=e;break a}f=c+k|0;b:{if((f|0)==(d|0)){e=l;break b}e=l;h=f;while(1){g[e|0]=j[h|0];e=e+1|0;h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+4>>2]=e;if((k|0)<1){return}d=e}k=e-(b+m|0)|0;h=e-m|0;if(h>>>0>>0){e=d;while(1){g[e|0]=j[h|0];e=e+1|0;h=h+1|0;if(h>>>0>>0){continue}break}}i[a+4>>2]=e;if(k){un(d-k|0,b,k)}if((c|0)==(f|0)){return}e=b;while(1){g[e|0]=j[c|0];e=e+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}return}e=i[a>>2];f=(l-e|0)+m|0;if((f|0)>-1){h=b-e|0;n=h;k=k-e|0;d=k<<1;f=k>>>0<1073741823?d>>>0>>0?f:d:2147483647;d=0;c:{if(!f){break c}d=Gm(f)}c=sn(n+d|0,c,m);if((h|0)>=1){sn(d,e,h)}f=d+f|0;c=c+m|0;l=l-b|0;if((l|0)>=1){c=sn(c,b,l)+l|0}i[a+8>>2]=f;i[a+4>>2]=c;i[a>>2]=d;if(e){qn(e)}return}Vm();x()}function ah(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=Gm(b<<2);d=i[a>>2];i[a>>2]=c;if(d){qn(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Mn(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(i[d+8>>2]==i[c+8>>2]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){qn(b)}i[a+4>>2]=0}return}Da(12220);x()}function ei(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=L-16|0;L=e;k=fi(a,b);a:{if(!k){break a}d=i[b+100>>2];f=i[b+96>>2];if((d|0)==(f|0)){break a}while(1){if(!(i[i[a+56>>2]+(j>>>3&536870908)>>2]>>>(j&31)&1)){d=o(j,3);Wk(a,0,d);f=i[a+8>>2];h=i[a+12>>2];Wk(a,1,d+1|0);g=i[a+20>>2];l=i[a+24>>2];Wk(a,2,d+2|0);g=l-g>>2;f=h-f|0;h=f>>2;d=g>>>0>h>>>0;h=i[a+36>>2]-i[a+32>>2]>>2>>>0>(d?g:h)>>>0?2:d?1:f?0:-1;b:{if(i[a+68>>2]<1){break b}i[e+12>>2]=i[a+76>>2];i[e+8>>2]=c;gi(e+8|0,e+12|0);f=e;g=i[((h<<2)+a|0)+44>>2];d=-1;c:{if((g|0)<0){break c}d=(g>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(g-o(d,3)<<2)>>2]}i[f+12>>2]=d;i[e+8>>2]=c;gi(e+8|0,e+12|0);f=i[a+72>>2]+2|0;i[a+72>>2]=f;if(!(f&1)){break b}i[e+12>>2]=d;i[e+8>>2]=c;gi(e+8|0,e+12|0);i[a+72>>2]=i[a+72>>2]+1}hi(a,h,c);f=i[b+96>>2];d=i[b+100>>2]}j=j+1|0;if(j>>>0<(d-f|0)/12>>>0){continue}break}}L=e+16|0;return k}function sb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;e=i[b+12>>2];a:{f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){k=1;break a}i[a+8>>2]=0;d=0;while(1){if(!Ce(((d<<4)+a|0)+16|0,b)){break a}d=d+1|0;if((d|0)!=32){continue}break}if(!Ce(a+528|0,b)){break a}if(!ze(a+544|0,b)){break a}if(!ze(a+564|0,b)){break a}if(!ze(a+584|0,b)){break a}return Cb(a,i[a+4>>2],c)}return k}function rb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;e=i[b+12>>2];a:{f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){k=1;break a}i[a+8>>2]=0;d=0;while(1){if(!Ce(((d<<4)+a|0)+16|0,b)){break a}d=d+1|0;if((d|0)!=32){continue}break}if(!Ce(a+528|0,b)){break a}if(!ze(a+544|0,b)){break a}if(!ze(a+564|0,b)){break a}if(!ze(a+584|0,b)){break a}return Bb(a,i[a+4>>2],c)}return k}function ob(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;e=i[b+12>>2];a:{f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){k=1;break a}i[a+8>>2]=0;d=0;while(1){if(!Ce(((d<<4)+a|0)+16|0,b)){break a}d=d+1|0;if((d|0)!=32){continue}break}if(!Ce(a+528|0,b)){break a}if(!ze(a+544|0,b)){break a}if(!ze(a+564|0,b)){break a}if(!ze(a+584|0,b)){break a}return zb(a,i[a+4>>2],c)}return k}function kg(a){i[a>>2]=11568;tn(a+4|0,0,80);i[a+96>>2]=0;i[a+100>>2]=0;i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+148>>2]=0;i[a+156>>2]=0;i[a+160>>2]=0;i[a+152>>2]=1065353216;i[a+164>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;i[a+196>>2]=0;i[a+200>>2]=0;i[a+204>>2]=0;i[a+208>>2]=0;i[a+212>>2]=-1;i[a+216>>2]=0;i[a+220>>2]=0;i[a+224>>2]=0;Bh(a+232|0);Bh(a+272|0);Be(a+312|0);Bh(a+328|0);i[a+392>>2]=0;i[a+396>>2]=0;i[a+384>>2]=0;i[a+388>>2]=0;i[a+376>>2]=0;i[a+380>>2]=0;i[a+368>>2]=0;i[a+372>>2]=0;i[a+416>>2]=0;i[a+420>>2]=0;i[a+408>>2]=2;i[a+412>>2]=7;i[a+400>>2]=-1;i[a+404>>2]=-1;i[a+424>>2]=0;i[a+428>>2]=0;i[a+432>>2]=0;i[a+436>>2]=0}function Yd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,q=0;g=i[b+12>>2];c=g;d=i[b+20>>2];e=d;a:{h=i[b+16>>2];f=h+4|0;if(f>>>0<4){d=d+1|0}l=i[b+8>>2];if((c|0)<(d|0)?1:(c|0)<=(d|0)?l>>>0>>0:0){break a}n=i[b>>2];c=h+n|0;o=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=d;q=k[b+38>>1];if(q>>>0<=513){c=g;d=e;e=h+8|0;if(e>>>0<8){d=d+1|0}f=e;if((c|0)<(d|0)?1:(c|0)<=(d|0)?l>>>0>>0:0){break a}i[b+16>>2]=f;i[b+20>>2]=d}if(!(o&1)){break a}c=r(o)^31;if(c+ -1>>>0>28){break a}i[a+8>>2]=c+1;e=-2<>2]=c;i[a+12>>2]=e^-1;i[a+24>>2]=(c|0)/2;m[a+20>>2]=p(2)/p(c|0);if(q>>>0<=513){if((g|0)<(d|0)?1:(g|0)<=(d|0)?l>>>0<=f>>>0:0){break a}c=j[f+n|0];e=f+1|0;if(e>>>0<1){d=d+1|0}i[b+16>>2]=e;i[b+20>>2]=d;d=0;b:{switch(c|0){case 1:d=1;break;case 0:break b;default:break a}}i[a+72>>2]=d}return Ce(a+96|0,b)|0}return 0}function bf(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=L+ -64|0;L=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!qf(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!rf(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>4194303){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<4194304){continue}break}}e=b&1048575;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>20|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=rf(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;qn(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;qn(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;qn(a)}L=d- -64|0;return e}function af(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=L+ -64|0;L=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!of(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!pf(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>2097151){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<2097152){continue}break}}e=b&524287;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>19|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=pf(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;qn(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;qn(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;qn(a)}L=d- -64|0;return e}function Le(a,b){var c=0,d=0,e=0;e=L-16|0;L=e;i[e+12>>2]=b;b=Gm(32);i[e>>2]=b;i[e+4>>2]=24;i[e+8>>2]=-2147483616;g[b+24|0]=0;c=j[11181]|j[11182]<<8|(j[11183]<<16|j[11184]<<24);d=j[11177]|j[11178]<<8|(j[11179]<<16|j[11180]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[11173]|j[11174]<<8|(j[11175]<<16|j[11176]<<24);d=j[11169]|j[11170]<<8|(j[11171]<<16|j[11172]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11165]|j[11166]<<8|(j[11167]<<16|j[11168]<<24);d=j[11161]|j[11162]<<8|(j[11163]<<16|j[11164]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;Jh(Me(a,e+12|0),e);if(g[e+11|0]<=-1){qn(i[e>>2])}L=e+16|0}function $e(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=L+ -64|0;L=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!mf(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!nf(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>1048575){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<1048576){continue}break}}e=b&262143;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>18|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=nf(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;qn(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;qn(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;qn(a)}L=d- -64|0;return e}function ge(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,q=0;g=i[b+12>>2];h=g;c=i[b+20>>2];f=c;a:{l=i[b+16>>2];d=l+4|0;if(d>>>0<4){c=c+1|0}n=i[b+8>>2];e=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?n>>>0>>0:0){break a}h=i[b>>2];c=h+l|0;q=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=e;i[b+20>>2]=d;d=g;c=f;e=l+8|0;if(e>>>0<8){c=c+1|0}o=e;if((d|0)<(c|0)?1:(d|0)<=(c|0)?n>>>0>>0:0){break a}i[b+16>>2]=o;i[b+20>>2]=c;if(!(q&1)){break a}d=r(q)^31;if(d+ -1>>>0>28){break a}i[a+8>>2]=d+1;d=-2<>2]=e;i[a+12>>2]=d^-1;i[a+24>>2]=(e|0)/2;m[a+20>>2]=p(2)/p(e|0);if(k[b+38>>1]<=513){if((g|0)<(c|0)?1:(g|0)<=(c|0)?n>>>0<=o>>>0:0){break a}g=j[h+o|0];d=l+9|0;if(d>>>0<9){f=f+1|0}c=b;i[c+16>>2]=d;i[c+20>>2]=f;f=0;b:{switch(g|0){case 1:f=1;break;case 0:break b;default:break a}}i[a+72>>2]=f}return Ce(a+96|0,b)|0}return 0}function _e(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=L+ -64|0;L=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!kf(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!lf(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>262143){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<262144){continue}break}}e=b&65535;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>16|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=lf(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;qn(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;qn(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;qn(a)}L=d- -64|0;return e}function Ze(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=L+ -64|0;L=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!hf(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!jf(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>131071){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<131072){continue}break}}e=b&32767;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>15|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=jf(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;qn(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;qn(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;qn(a)}L=d- -64|0;return e}function Uk(a,b){var c=0,d=0,e=0,f=0,h=0,j=0;e=i[a>>2];c=e+(b>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<<(b&31);h=i[a+64>>2];f=(b|0)==-1;c=-1;a:{if(f){break a}d=b+1|0;d=(d>>>0)%3|0?d:b+ -2|0;c=-1;if((d|0)==-1){break a}c=i[i[h>>2]+(d<<2)>>2]}d=i[a+12>>2];j=(c>>>3&536870908)+d|0;i[j>>2]=i[j>>2]|1<<(c&31);b:{c:{if(!f){c=-1;f=((b>>>0)%3|0?-1:2)+b|0;if((f|0)!=-1){c=i[i[h>>2]+(f<<2)>>2]}f=d+(c>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<<(c&31);b=i[i[h+12>>2]+(b<<2)>>2];if((b|0)==-1){break b}g[a+24|0]=0;a=(b>>>3&536870908)+e|0;i[a>>2]=i[a>>2]|1<<(b&31);a=-1;c=-1;e=b+1|0;e=(e>>>0)%3|0?e:b+ -2|0;if((e|0)!=-1){c=i[i[h>>2]+(e<<2)>>2]}e=d+(c>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<<(c&31);b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)!=-1){a=i[i[h>>2]+(b<<2)>>2]}b=1<<(a&31);a=d+(a>>>3&536870908)|0;c=i[a>>2];break c}a=d+536870908|0;b=i[d+536870908>>2];c=-2147483648}i[a>>2]=b|c}}function Ye(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=L+ -64|0;L=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!ff(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!gf(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>32767){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<32768){continue}break}}e=b&8191;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>13|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=gf(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;qn(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;qn(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;qn(a)}L=d- -64|0;return e}function Xe(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=L+ -64|0;L=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!Ve(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!We(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>16383){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<16384){continue}break}}e=b&4095;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>12|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=We(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;qn(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;qn(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;qn(a)}L=d- -64|0;return e}function Na(a,b){var c=0,d=0,e=0,f=0,h=0;if(!i[a+64>>2]){c=Gm(32);yh(c);d=i[a+64>>2];i[a+64>>2]=c;e=a;if(d){c=i[d>>2];if(c){i[d+4>>2]=c;qn(c)}qn(d);c=i[a+64>>2]}Ja(e,c,0,0)}a:{b:{if(!Ia(a,b)){break b}g[a+84|0]=j[b+84|0];i[a+80>>2]=i[b+80>>2];if((a|0)!=(b|0)){Oa(a+68|0,i[b+68>>2],i[b+72>>2])}d=i[b+88>>2];if(d){b=Gm(40);c=i[d>>2];i[b+16>>2]=0;i[b+8>>2]=0;i[b+12>>2]=0;i[b>>2]=c;e=i[d+12>>2]-i[d+8>>2]|0;if(e){if((e|0)<=-1){break a}c=Gm(e);i[b+8>>2]=c;i[b+12>>2]=c;i[b+16>>2]=c+e;e=b;h=i[d+8>>2];f=i[d+12>>2]-h|0;if((f|0)>=1){c=sn(c,h,f)+f|0}i[e+12>>2]=c}c=i[d+36>>2];i[b+32>>2]=i[d+32>>2];i[b+36>>2]=c;c=i[d+28>>2];i[b+24>>2]=i[d+24>>2];i[b+28>>2]=c;c=i[a+88>>2];i[a+88>>2]=b;if(!c){break b}a=i[c+8>>2];if(a){i[c+12>>2]=a;qn(a)}qn(c);return}b=i[a+88>>2];i[a+88>>2]=0;if(!b){break b}a=i[b+8>>2];if(a){i[b+12>>2]=a;qn(a)}qn(b)}return}Vm();x()}function Gl(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=i[b+12>>2];f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){break a}i[a+8>>2]=0;d=0;while(1){if(!Ce(((d<<4)+a|0)+16|0,b)){break a}d=d+1|0;if((d|0)!=32){continue}break}if(!Ce(a+528|0,b)){break a}if(!ze(a+544|0,b)){break a}if(!ze(a+564|0,b)){break a}if(!ze(a+584|0,b)){break a}Nl(a,i[a+4>>2],c)}}function Fl(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=i[b+12>>2];f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){break a}i[a+8>>2]=0;d=0;while(1){if(!Ce(((d<<4)+a|0)+16|0,b)){break a}d=d+1|0;if((d|0)!=32){continue}break}if(!Ce(a+528|0,b)){break a}if(!ze(a+544|0,b)){break a}if(!ze(a+564|0,b)){break a}if(!ze(a+584|0,b)){break a}Ml(a,i[a+4>>2],c)}}function El(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=i[b+12>>2];f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){break a}i[a+8>>2]=0;d=0;while(1){if(!Ce(((d<<4)+a|0)+16|0,b)){break a}d=d+1|0;if((d|0)!=32){continue}break}if(!Ce(a+528|0,b)){break a}if(!ze(a+544|0,b)){break a}if(!ze(a+564|0,b)){break a}if(!ze(a+584|0,b)){break a}Ll(a,i[a+4>>2],c)}}function Vk(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=L-16|0;L=d;l=ol(b);a:{if(!l){i[a>>2]=0;break a}c=i[b+100>>2];h=i[b+96>>2];i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=c-h|0;e=(f|0)/12|0;b:{c:{if(f){if(e>>>0>=357913942){break c}k=Gm(f);i[d>>2]=k;i[d+4>>2]=k;e=o(e,12)+k|0;i[d+8>>2]=e;c=k;while(1){i[c>>2]=0;i[c+4>>2]=0;i[c+8>>2]=0;c=c+12|0;if((e|0)!=(c|0)){continue}break}i[d+4>>2]=e;h=i[b+96>>2];c=i[b+100>>2]}if((c|0)==(h|0)){break b}b=(c-h|0)/12|0;n=b>>>0>1?b:1;c=0;p=j[l+84|0];while(1){f=o(c,12);g=f+h|0;b=i[g>>2];d:{if(p){m=g+8|0;g=g+4|0;break d}e=i[l+68>>2];m=e+(i[g+8>>2]<<2)|0;b=i[e+(b<<2)>>2];g=e+(i[g+4>>2]<<2)|0}e=i[g>>2];f=f+k|0;i[f+8>>2]=i[m>>2];i[f+4>>2]=e;i[f>>2]=b;c=c+1|0;if((n|0)!=(c|0)){continue}break}break b}Vm();x()}zk(a,d);a=i[d>>2];if(!a){break a}i[d+4>>2]=a;qn(a)}L=d+16|0}function qb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=L-16|0;L=c;i[a+12>>2]=b;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;Ab(a+16|0);Be(a+528|0);xe(a+544|0);xe(a+564|0);xe(a+584|0);i[a+612>>2]=0;i[a+604>>2]=0;i[a+608>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}f=b<<2;d=Gm(f);i[a+604>>2]=d;e=d+f|0;i[a+612>>2]=e;tn(d,0,f);i[a+608>>2]=e}i[a+616>>2]=0;i[a+620>>2]=0;i[a+624>>2]=0;if(b){f=b<<2;d=Gm(f);i[a+616>>2]=d;e=d+f|0;i[a+624>>2]=e;tn(d,0,f);i[a+620>>2]=e}i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;g=a+628|0;f=b<<5|1;if(b){d=b<<2;e=Gm(d);i[c>>2]=e;h=d+e|0;i[c+8>>2]=h;tn(e,0,d);i[c+4>>2]=h}vb(g,f,c);d=i[c>>2];if(d){i[c+4>>2]=d;qn(d)}i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;e=a+640|0;if(b){b=b<<2;d=Gm(b);i[c>>2]=d;g=b+d|0;i[c+8>>2]=g;tn(d,0,b);i[c+4>>2]=g}vb(e,f,c);b=i[c>>2];if(b){i[c+4>>2]=b;qn(b)}L=c+16|0;return a}Vm();x()}function Mf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<2)+c|0;while(1){i[c>>2]=0;c=c+4|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){f=f<<2;d=d-g|0;h=d>>1;d=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(d){if(d>>>0>=1073741824){break a}j=Gm(d<<2)}e=f+j|0;f=e+(b<<2)|0;d=(d<<2)+j|0;b=e;while(1){i[b>>2]=0;b=b+4|0;if((f|0)!=(b|0)){continue}break}if((c|0)!=(g|0)){while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;e=e+ -4|0;i[e>>2]=b;if((c|0)!=(g|0)){continue}break}c=i[a>>2]}i[a>>2]=e;i[a+8>>2]=d;b=i[a+4>>2];i[a+4>>2]=f;if((b|0)!=(c|0)){while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){O[i[i[a>>2]+4>>2]](a)}if((b|0)!=(c|0)){continue}break}}if(c){qn(c)}return}Vm();x()}Da(12220);x()}function dc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<2)+c|0;while(1){i[c>>2]=0;c=c+4|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){f=f<<2;d=d-g|0;h=d>>1;d=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(d){if(d>>>0>=1073741824){break a}j=Gm(d<<2)}e=f+j|0;f=e+(b<<2)|0;d=(d<<2)+j|0;b=e;while(1){i[b>>2]=0;b=b+4|0;if((f|0)!=(b|0)){continue}break}if((c|0)!=(g|0)){while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;e=e+ -4|0;i[e>>2]=b;if((c|0)!=(g|0)){continue}break}c=i[a>>2]}i[a>>2]=e;i[a+8>>2]=d;b=i[a+4>>2];i[a+4>>2]=f;if((b|0)!=(c|0)){while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){O[i[i[a>>2]+4>>2]](a)}if((b|0)!=(c|0)){continue}break}}if(c){qn(c)}return}Vm();x()}Da(2188);x()}function zi(a,b,c,d,e){var f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0;h=L-16|0;L=h;a:{b:{switch(c+ -1|0){case 0:f=Ai(a,b,d,e);break a;case 2:f=Bi(a,b,d,e);break a;case 4:f=Ci(a,b,d,e);break a;case 1:f=Di(a,b,d,e);break a;case 3:f=Ei(a,b,d,e);break a;case 5:f=Fi(a,b,d,e);break a;case 8:break b;default:break a}}l=g[b+24|0];m=l<<2;a=i[a+80>>2];if((o(m,a)|0)!=(d|0)){break a}c=i[b+28>>2];d=i[3527];i[h+8>>2]=i[3526];i[h+12>>2]=d;d=i[3525];i[h>>2]=i[3524];i[h+4>>2]=d;c:{if(!a){break c}d=0;p=(c|0)!=9;k=1;while(1){c=j[b+84|0]?f:i[i[b+68>>2]+(f<<2)>>2];d:{if(!p){k=i[b+48>>2];q=i[i[b>>2]>>2];n=i[b+40>>2];c=Jn(n,i[b+44>>2],c,0)+k|0;sn(h,q+c|0,n);break d}if(!bd(b,c,g[b+24|0],h)){break c}}if((l|0)>=1){sn((d<<2)+e|0,h,m);d=d+l|0}f=f+1|0;k=f>>>0>>0;if((a|0)!=(f|0)){continue}break}}f=k^1}L=h+16|0;return f&1}function ta(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,n=0,o=0,r=0,s=0,t=0,v=0,w=p(0),x=0,y=0,z=p(0),A=0,B=0,C=0,D=0;k=L-16|0;L=k;l=i[a+4>>2];n=i[d+48>>2];h=i[i[d>>2]>>2];f=g[b+24|0];e=Mh(k+8|0);Nh(e,m[a+20>>2],-1<>2];c=i[c+4>>2];if((o|0)!=(c|0)){x=n+h|0;c=c-o>>2;y=c>>>0>1?c:1;z=m[e>>2];A=i[b>>2];l=i[b+48>>2];B=i[b+68>>2];n=i[b+44>>2];h=i[b+40>>2];C=h;c=0;D=j[b+84|0];while(1){b=i[(r<<2)+o>>2];e=d;s=i[A>>2];t=h;v=n;if(!D){b=i[(b<<2)+B>>2]}b=Jn(t,v,b,0)+l|0;t=sn(e,b+s|0,C);if((f|0)>=1){v=i[a+8>>2];b=0;while(1){s=(c<<2)+x|0;e=b<<2;w=p(u(p(p(z*p(m[e+t>>2]-m[e+v>>2]))+p(.5))));a:{if(p(q(w))>2]=e;c=c+1|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}r=r+1|0;if((y|0)!=(r|0)){continue}break}}qn(d);L=k+16|0}function Fb(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;d=L-32|0;L=d;i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;k=i[b+12>>2];f=k;h=i[b+20>>2];l=h;m=i[b+16>>2];e=m+4|0;if(e>>>0<4){h=h+1|0}o=i[b+8>>2];n=e;a:{if((f|0)<(h|0)?1:(f|0)<=(h|0)?o>>>0>>0:0){break a}f=i[b>>2];e=m+f|0;e=j[e|0]|j[e+1|0]<<8|(j[e+2|0]<<16|j[e+3|0]<<24);i[b+16>>2]=n;i[b+20>>2]=h;b:{c:{switch(e+ -2|0){case 1:if((k|0)<(h|0)?1:(k|0)<=(h|0)?o>>>0<=n>>>0:0){break a}f=g[f+n|0];e=m+5|0;if(e>>>0<5){l=l+1|0}i[b+16>>2]=e;i[b+20>>2]=l;i[a+8>>2]=f;if((f|0)==1){if(zl(a,b,d+16|0)){break b}break a}xn(1824,23,i[3876]);break a;default:xn(1848,24,i[3876]);break a;case 0:break c}}if(!zl(a,b,d+16|0)){break a}}i[d+8>>2]=i[d+16>>2];i[d>>2]=i[d+20>>2];Hb(d+8|0,d,a,c);p=1}a=i[d+16>>2];if(a){i[d+20>>2]=a;qn(a)}L=d+32|0;return p}function Fi(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;f=L-16|0;L=f;a:{l=i[a+80>>2];h=g[b+24|0];k=h<<2;e=0;b:{if((o(l,k)|0)!=(c|0)){break b}p=i[b+28>>2]!=6;if(!(p|!j[b+84|0])){sn(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;a=0;if(h){if((h|0)<=-1){break a}a=Gm(k);i[f>>2]=a;c=h<<2;e=c+a|0;i[f+8>>2]=e;tn(a,0,c);i[f+4>>2]=e}c:{if(!l){break c}c=0;m=1;while(1){e=n;e=j[b+84|0]?e:i[i[b+68>>2]+(e<<2)>>2];d:{if(!p){m=i[i[b>>2]>>2];k=i[b+40>>2];e=i[b+48>>2]+Jn(k,i[b+44>>2],e,0)|0;sn(a,m+e|0,k);break d}if(!yi(b,e,g[b+24|0],a)){break c}}e=0;if((h|0)>=1){while(1){i[(c<<2)+d>>2]=i[(e<<2)+a>>2];c=c+1|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}}n=n+1|0;m=n>>>0>>0;if((n|0)!=(l|0)){continue}break}}if(a){i[f+4>>2]=a;qn(a)}e=m^1}L=f+16|0;return e&1}Vm();x()}function Ei(a,b,c,d){var e=0,f=0,l=0,m=0,n=0,p=0,q=0,r=0;f=L-16|0;L=f;a:{n=i[a+80>>2];l=g[b+24|0];m=l<<1;e=0;b:{if((o(n,m)|0)!=(c|0)){break b}r=i[b+28>>2]!=4;if(!(r|!j[b+84|0])){sn(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;a=0;if(l){if((l|0)<=-1){break a}a=Gm(m);i[f>>2]=a;c=l<<1;e=c+a|0;i[f+8>>2]=e;tn(a,0,c);i[f+4>>2]=e}c:{if(!n){break c}c=0;p=1;while(1){e=q;e=j[b+84|0]?e:i[i[b+68>>2]+(e<<2)>>2];d:{if(!r){p=i[i[b>>2]>>2];m=i[b+40>>2];e=i[b+48>>2]+Jn(m,i[b+44>>2],e,0)|0;sn(a,p+e|0,m);break d}if(!ui(b,e,g[b+24|0],a)){break c}}e=0;if((l|0)>=1){while(1){h[(c<<1)+d>>1]=k[(e<<1)+a>>1];c=c+1|0;e=e+1|0;if((l|0)!=(e|0)){continue}break}}q=q+1|0;p=q>>>0>>0;if((q|0)!=(n|0)){continue}break}}if(a){i[f+4>>2]=a;qn(a)}e=p^1}L=f+16|0;return e&1}Vm();x()}function Ci(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;f=L-16|0;L=f;a:{l=i[a+80>>2];h=g[b+24|0];k=h<<2;e=0;b:{if((o(l,k)|0)!=(c|0)){break b}p=i[b+28>>2]!=5;if(!(p|!j[b+84|0])){sn(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;a=0;if(h){if((h|0)<=-1){break a}a=Gm(k);i[f>>2]=a;c=h<<2;e=c+a|0;i[f+8>>2]=e;tn(a,0,c);i[f+4>>2]=e}c:{if(!l){break c}c=0;m=1;while(1){e=n;e=j[b+84|0]?e:i[i[b+68>>2]+(e<<2)>>2];d:{if(!p){m=i[i[b>>2]>>2];k=i[b+40>>2];e=i[b+48>>2]+Jn(k,i[b+44>>2],e,0)|0;sn(a,m+e|0,k);break d}if(!wi(b,e,g[b+24|0],a)){break c}}e=0;if((h|0)>=1){while(1){i[(c<<2)+d>>2]=i[(e<<2)+a>>2];c=c+1|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}}n=n+1|0;m=n>>>0>>0;if((n|0)!=(l|0)){continue}break}}if(a){i[f+4>>2]=a;qn(a)}e=m^1}L=f+16|0;return e&1}Vm();x()}function Bi(a,b,c,d){var e=0,f=0,l=0,m=0,n=0,p=0,q=0,r=0;f=L-16|0;L=f;a:{n=i[a+80>>2];l=g[b+24|0];m=l<<1;e=0;b:{if((o(n,m)|0)!=(c|0)){break b}r=i[b+28>>2]!=3;if(!(r|!j[b+84|0])){sn(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;a=0;if(l){if((l|0)<=-1){break a}a=Gm(m);i[f>>2]=a;c=l<<1;e=c+a|0;i[f+8>>2]=e;tn(a,0,c);i[f+4>>2]=e}c:{if(!n){break c}c=0;p=1;while(1){e=q;e=j[b+84|0]?e:i[i[b+68>>2]+(e<<2)>>2];d:{if(!r){p=i[i[b>>2]>>2];m=i[b+40>>2];e=i[b+48>>2]+Jn(m,i[b+44>>2],e,0)|0;sn(a,p+e|0,m);break d}if(!si(b,e,g[b+24|0],a)){break c}}e=0;if((l|0)>=1){while(1){h[(c<<1)+d>>1]=k[(e<<1)+a>>1];c=c+1|0;e=e+1|0;if((l|0)!=(e|0)){continue}break}}q=q+1|0;p=q>>>0>>0;if((q|0)!=(n|0)){continue}break}}if(a){i[f+4>>2]=a;qn(a)}e=p^1}L=f+16|0;return e&1}Vm();x()}function tl(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<2)+c|0;while(1){i[c>>2]=0;c=c+4|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){f=f<<2;d=d-g|0;h=d>>1;d=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(d){if(d>>>0>=1073741824){break a}j=Gm(d<<2)}e=f+j|0;f=e+(b<<2)|0;d=(d<<2)+j|0;b=e;while(1){i[b>>2]=0;b=b+4|0;if((f|0)!=(b|0)){continue}break}if((c|0)!=(g|0)){while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;e=e+ -4|0;i[e>>2]=b;if((c|0)!=(g|0)){continue}break}c=i[a>>2]}i[a>>2]=e;i[a+8>>2]=d;b=i[a+4>>2];i[a+4>>2]=f;if((b|0)!=(c|0)){while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){Ua(a)}if((b|0)!=(c|0)){continue}break}}if(c){qn(c)}return}Vm();x()}Da(14808);x()}function ib(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=L-16|0;L=c;i[a+12>>2]=b;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;xe(a+16|0);xe(a+36|0);xe(a+56|0);xe(a+76|0);i[a+104>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}f=b<<2;d=Gm(f);i[a+96>>2]=d;e=d+f|0;i[a+104>>2]=e;tn(d,0,f);i[a+100>>2]=e}i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;if(b){f=b<<2;d=Gm(f);i[a+108>>2]=d;e=d+f|0;i[a+116>>2]=e;tn(d,0,f);i[a+112>>2]=e}i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;g=a+120|0;f=b<<5|1;if(b){d=b<<2;e=Gm(d);i[c>>2]=e;h=d+e|0;i[c+8>>2]=h;tn(e,0,d);i[c+4>>2]=h}vb(g,f,c);d=i[c>>2];if(d){i[c+4>>2]=d;qn(d)}i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;e=a+132|0;if(b){b=b<<2;d=Gm(b);i[c>>2]=d;g=b+d|0;i[c+8>>2]=g;tn(d,0,b);i[c+4>>2]=g}vb(e,f,c);b=i[c>>2];if(b){i[c+4>>2]=b;qn(b)}L=c+16|0;return a}Vm();x()}function mb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=L-16|0;L=c;i[a+12>>2]=b;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;Be(a+16|0);xe(a+32|0);xe(a+52|0);xe(a+72|0);i[a+100>>2]=0;i[a+92>>2]=0;i[a+96>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}f=b<<2;d=Gm(f);i[a+92>>2]=d;e=d+f|0;i[a+100>>2]=e;tn(d,0,f);i[a+96>>2]=e}i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;if(b){f=b<<2;d=Gm(f);i[a+104>>2]=d;e=d+f|0;i[a+112>>2]=e;tn(d,0,f);i[a+108>>2]=e}i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;g=a+116|0;f=b<<5|1;if(b){d=b<<2;e=Gm(d);i[c>>2]=e;h=d+e|0;i[c+8>>2]=h;tn(e,0,d);i[c+4>>2]=h}vb(g,f,c);d=i[c>>2];if(d){i[c+4>>2]=d;qn(d)}i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;e=a+128|0;if(b){b=b<<2;d=Gm(b);i[c>>2]=d;g=b+d|0;i[c+8>>2]=g;tn(d,0,b);i[c+4>>2]=g}vb(e,f,c);b=i[c>>2];if(b){i[c+4>>2]=b;qn(b)}L=c+16|0;return a}Vm();x()}function Tc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=L-32|0;L=f;h=i[c+4>>2];d=i[b+4>>2];j=i[c>>2];g=i[b>>2];b=(h-d|0)+(j-g<<3)|0;c=i[a+4>>2];e=b+c|0;i[a+4>>2]=e;a:{if(!(!c|(e+ -1^c+ -1)>>>0>31)){a=i[a>>2];break a}a=i[a>>2];if(e>>>0<=32){i[a>>2]=0;break a}i[(e+ -1>>>3&536870908)+a>>2]=0}a=(c>>>3&536870908)+a|0;c=c&31;b:{if((c|0)==(d|0)){c:{if((b|0)<1){break c}d:{if(!d){c=0;break d}e=32-d|0;c=(b|0)<(e|0)?b:e;e=-1<>>e-c;i[a>>2]=i[a>>2]&(e^-1)|e&i[g>>2];b=b-c|0;d=c+d|0;c=d&31;a=(d>>>3&536870908)+a|0;g=g+4|0}d=(b|0)/32|0;e=d<<2;a=un(a,g,e)+e|0;d=b-(d<<5)|0;if((d|0)<1){d=c;break c}b=-1>>>32-d|0;i[a>>2]=i[a>>2]&(b^-1)|b&i[e+g>>2]}i[f+4>>2]=d;i[f>>2]=a;break b}i[f+28>>2]=d;i[f+24>>2]=g;i[f+20>>2]=h;i[f+16>>2]=j;i[f+12>>2]=c;i[f+8>>2]=a;Uc(f,f+24|0,f+16|0,f+8|0)}L=f+32|0}function nb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;e=i[b+12>>2];a:{f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){k=1;break a}i[a+8>>2]=0;if(!Ce(a+16|0,b)){break a}if(!ze(a+32|0,b)){break a}if(!ze(a+52|0,b)){break a}if(!ze(a+72|0,b)){break a}return yb(a,i[a+4>>2],c)}return k}function kb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;e=i[b+12>>2];a:{f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){k=1;break a}i[a+8>>2]=0;if(!Ce(a+16|0,b)){break a}if(!ze(a+32|0,b)){break a}if(!ze(a+52|0,b)){break a}if(!ze(a+72|0,b)){break a}return xb(a,i[a+4>>2],c)}return k}function jb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;e=i[b+12>>2];a:{f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){k=1;break a}i[a+8>>2]=0;if(!ze(a+16|0,b)){break a}if(!ze(a+36|0,b)){break a}if(!ze(a+56|0,b)){break a}if(!ze(a+76|0,b)){break a}return wb(a,i[a+4>>2],c)}return k}function gb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;e=i[b+12>>2];a:{f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){k=1;break a}i[a+8>>2]=0;if(!ze(a+16|0,b)){break a}if(!ze(a+36|0,b)){break a}if(!ze(a+56|0,b)){break a}if(!ze(a+76|0,b)){break a}return ub(a,i[a+4>>2],c)}return k}function ze(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;i[a+16>>2]=0;c=i[a>>2];i[a+4>>2]=c;i[a+12>>2]=c;h=i[b+12>>2];c=h;e=i[b+20>>2];d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}k=i[b+8>>2];g=f;f=e;a:{if((c|0)<(e|0)?1:(c|0)<=(e|0)?k>>>0>>0:0){break a}c=d+i[b>>2]|0;e=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=g;i[b+20>>2]=f;if(!e|e&3){break a}d=k;c=e;l=d-g>>>0>>0;d=h-(f+(d>>>0>>0)|0)|0;if((d|0)<0?1:(d|0)<=0?l:0){break a}d=e>>>2|0;if(d){Ae(a,d);k=i[b+8>>2];h=i[b+12>>2];g=i[b+16>>2];f=i[b+20>>2]}d=c+g|0;if(d>>>0>>0){f=f+1|0}if((h|0)<(f|0)?1:(h|0)<=(f|0)?k>>>0>>0:0){break a}sn(i[a>>2],g+i[b>>2]|0,e);f=b;d=b;e=i[b+20>>2];b=c+i[b+16>>2]|0;if(b>>>0>>0){e=e+1|0}i[d+16>>2]=b;i[f+20>>2]=e;i[a+16>>2]=0;i[a+12>>2]=i[a>>2];m=1}return m}function fg(a){i[a>>2]=11520;tn(a+4|0,0,80);i[a+96>>2]=0;i[a+100>>2]=0;i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+148>>2]=0;i[a+156>>2]=0;i[a+160>>2]=0;i[a+152>>2]=1065353216;i[a+164>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;i[a+196>>2]=0;i[a+200>>2]=0;i[a+204>>2]=0;i[a+208>>2]=0;i[a+212>>2]=-1;i[a+216>>2]=0;i[a+220>>2]=0;i[a+224>>2]=0;Bh(a+232|0);Bh(a+272|0);Be(a+312|0);Bh(a+328|0);i[a+392>>2]=0;i[a+396>>2]=0;i[a+384>>2]=0;i[a+388>>2]=0;i[a+376>>2]=0;i[a+380>>2]=0;i[a+368>>2]=0;i[a+372>>2]=0;Be(a+400|0);i[a+416>>2]=-1;i[a+420>>2]=-1}function Di(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;e=L-16|0;L=e;a:{m=i[a+80>>2];h=g[b+24|0];k=0;b:{if((o(m,h)|0)!=(c|0)){break b}k=i[b+28>>2]!=2;if(!(k|!j[b+84|0])){sn(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);k=1;break b}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(h){if((h|0)<=-1){break a}f=Gm(h);i[e>>2]=f;a=f+h|0;i[e+8>>2]=a;tn(f,0,h);i[e+4>>2]=a}c:{if(!m){break c}c=0;l=1;while(1){a=n;a=j[b+84|0]?a:i[i[b+68>>2]+(a<<2)>>2];d:{if(!k){p=i[i[b>>2]>>2];l=i[b+40>>2];a=i[b+48>>2]+Jn(l,i[b+44>>2],a,0)|0;sn(f,p+a|0,l);break d}if(!pi(b,a,g[b+24|0],f)){break c}}a=0;if((h|0)>=1){while(1){g[c+d|0]=j[a+f|0];c=c+1|0;a=a+1|0;if((h|0)!=(a|0)){continue}break}}n=n+1|0;l=n>>>0>>0;if((n|0)!=(m|0)){continue}break}}if(f){i[e+4>>2]=f;qn(f)}k=l^1}L=e+16|0;return k&1}Vm();x()}function Ai(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;e=L-16|0;L=e;a:{m=i[a+80>>2];h=g[b+24|0];k=0;b:{if((o(m,h)|0)!=(c|0)){break b}k=i[b+28>>2]!=1;if(!(k|!j[b+84|0])){sn(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);k=1;break b}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(h){if((h|0)<=-1){break a}f=Gm(h);i[e>>2]=f;a=f+h|0;i[e+8>>2]=a;tn(f,0,h);i[e+4>>2]=a}c:{if(!m){break c}c=0;l=1;while(1){a=n;a=j[b+84|0]?a:i[i[b+68>>2]+(a<<2)>>2];d:{if(!k){p=i[i[b>>2]>>2];l=i[b+40>>2];a=i[b+48>>2]+Jn(l,i[b+44>>2],a,0)|0;sn(f,p+a|0,l);break d}if(!ni(b,a,g[b+24|0],f)){break c}}a=0;if((h|0)>=1){while(1){g[c+d|0]=j[a+f|0];c=c+1|0;a=a+1|0;if((h|0)!=(a|0)){continue}break}}n=n+1|0;l=n>>>0>>0;if((n|0)!=(m|0)){continue}break}}if(f){i[e+4>>2]=f;qn(f)}k=l^1}L=e+16|0;return k&1}Vm();x()}function Ld(a){var b=0,c=0,d=0;b=i[a+8>>2];d=i[a>>2];a:{if(j[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;if((b|0)==-1){break e}b=i[i[d+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}i[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;i[a+8>>2]=b;if((b|0)!=-1){break b}}c=i[a+4>>2];b=-1;f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;b=-1;if((c|0)==-1){break f}c=i[i[d+12>>2]+(c<<2)>>2];b=-1;if((c|0)==-1){break f}b=c+ -1|0;if((c>>>0)%3|0){break f}b=c+2|0}g[a+12|0]=0;i[a+8>>2]=b;return}if((b|0)!=i[a+4>>2]){break a}i[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;c=-1;if((b|0)==-1){break g}b=i[i[d+12>>2]+(b<<2)>>2];c=-1;if((b|0)==-1){break g}c=b+ -1|0;if((b>>>0)%3|0){break g}c=b+2|0}i[a+8>>2]=c}}function dg(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;f=i[a+8>>2];d=i[a+4>>2];if((f-d|0)/12>>>0>=b>>>0){if(!b){i[a+4>>2]=d;return}b=o(b,12)+d|0;while(1){g=i[c+4>>2];i[d>>2]=i[c>>2];i[d+4>>2]=g;i[d+8>>2]=i[c+8>>2];d=d+12|0;if((b|0)!=(d|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];h=d-g|0;d=(h|0)/12|0;e=d+b|0;if(e>>>0<357913942){j=o(b,12);k=o(d,12);f=(f-g|0)/12|0;b=f<<1;e=f>>>0<178956970?b>>>0>>0?e:b:357913941;d=0;b:{if(!e){break b}if(e>>>0>=357913942){break a}d=Gm(o(e,12))}b=k+d|0;f=j+b|0;e=d+o(e,12)|0;d=b;while(1){j=i[c+4>>2];i[d>>2]=i[c>>2];i[d+4>>2]=j;i[d+8>>2]=i[c+8>>2];d=d+12|0;if((f|0)!=(d|0)){continue}break}b=b+o((h|0)/-12|0,12)|0;if((h|0)>=1){sn(b,g,h)}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b;if(g){qn(g)}return}Vm();x()}Da(12220);x()}function un(a,b,c){var d=0;a:{if((a|0)==(b|0)){break a}if((b-a|0)-c>>>0<=0-(c<<1)>>>0){return sn(a,b,c)}d=(a^b)&3;b:{c:{if(a>>>0>>0){if(d){d=a;break b}if(!(a&3)){d=a;break c}d=a;while(1){if(!c){break a}g[d|0]=j[b|0];b=b+1|0;c=c+ -1|0;d=d+1|0;if(d&3){continue}break}break c}d:{if(d){break d}if(a+c&3){while(1){if(!c){break a}c=c+ -1|0;d=c+a|0;g[d|0]=j[b+c|0];if(d&3){continue}break}}if(c>>>0<=3){break d}while(1){c=c+ -4|0;i[c+a>>2]=i[b+c>>2];if(c>>>0>3){continue}break}}if(!c){break a}while(1){c=c+ -1|0;g[c+a|0]=j[b+c|0];if(c){continue}break}break a}if(c>>>0<=3){break b}while(1){i[d>>2]=i[b>>2];b=b+4|0;d=d+4|0;c=c+ -4|0;if(c>>>0>3){continue}break}}if(!c){break a}while(1){g[d|0]=j[b|0];d=d+1|0;b=b+1|0;c=c+ -1|0;if(c){continue}break}}return a}function pg(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=i[a+172>>2];if((b|0)!=-1){c=i[a+196>>2]+(b<<2)|0;d=i[c>>2];b=d+ -1|0;i[c>>2]=b;if((d|0)<1){return 9}c=a;a=i[(i[i[i[a+184>>2]+o(i[a+172>>2],12)>>2]+(b<<2)>>2]<<2)+12288>>2];i[c+168>>2]=a;return a}b=7;c=i[a+144>>2];c=k[(O[i[i[c>>2]+32>>2]](c)|0)+36>>1];a:{if((c<<24|c<<8&16711680)>>>16>>>0>513){break a}if(!j[a+76|0]){i[a+168>>2]=1;return 1}b=0;f=i[a- -64>>2];d=i[a+72>>2];c=f+(d>>>3|0)|0;g=i[a+68>>2];if(c>>>0>=g>>>0){break a}e=j[c|0];c=d+1|0;i[a+72>>2]=c;if(!(e>>>(d&7)&1)){break a}e=c>>>3|0;b=f+e|0;b:{if(b>>>0>=g>>>0){b=c;c=0;break b}h=j[b|0];b=d+2|0;i[a+72>>2]=b;e=b>>>3|0;c=h>>>(c&7)&1}d=e+f|0;if(d>>>0>>0){d=j[d|0];i[a+72>>2]=b+1;b=d>>>(b&7)<<1&2}else{b=0}b=(c|b)<<1|1}i[a+168>>2]=b;return b}function Uh(a,b,c){var d=0,e=0,f=0,h=0,j=0;a:{if(i[a+12>>2]==(b|0)){break a}d=i[a>>2];e=i[a+4>>2];if((d|0)!=(e|0)){while(1){f=e+ -12|0;if(g[e+ -1|0]<=-1){qn(i[f>>2])}e=f;if((e|0)!=(d|0)){continue}break}}i[a+12>>2]=b;i[a+4>>2]=d;e=i[b>>2];f=b+4|0;if((e|0)==(f|0)){break a}while(1){b=e+16|0;b:{if(i[a+8>>2]!=(d|0)){h=a,j=Jm(d,b)+12|0,i[h+4>>2]=j;break b}Vh(a,b)}d=i[e+4>>2];c:{if(!d){b=i[e+8>>2];if(i[b>>2]==(e|0)){break c}e=e+8|0;while(1){d=i[e>>2];e=d+8|0;b=i[d+8>>2];if((d|0)!=i[b>>2]){continue}break}break c}while(1){b=d;d=i[d>>2];if(d){continue}break}}if((b|0)==(f|0)){break a}d=i[a+4>>2];e=b;continue}}d=0;d:{if((c|0)<0){break d}b=i[a+4>>2];a=i[a>>2];if((b-a|0)/12>>>0<=c>>>0){break d}d=a+o(c,12)|0;if(g[d+11|0]>-1){break d}d=i[d>>2]}return d}function Dl(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=i[b+12>>2];f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){break a}i[a+8>>2]=0;if(!Ce(a+16|0,b)){break a}if(!ze(a+32|0,b)){break a}if(!ze(a+52|0,b)){break a}if(!ze(a+72|0,b)){break a}Kl(a,i[a+4>>2],c)}}function Cl(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=i[b+12>>2];f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){break a}i[a+8>>2]=0;if(!Ce(a+16|0,b)){break a}if(!ze(a+32|0,b)){break a}if(!ze(a+52|0,b)){break a}if(!ze(a+72|0,b)){break a}Jl(a,i[a+4>>2],c)}}function Bl(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=i[b+12>>2];f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){break a}i[a+8>>2]=0;if(!ze(a+16|0,b)){break a}if(!ze(a+36|0,b)){break a}if(!ze(a+56|0,b)){break a}if(!ze(a+76|0,b)){break a}Il(a,i[a+4>>2],c)}}function Al(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=i[b+12>>2];f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){break a}i[a+8>>2]=0;if(!ze(a+16|0,b)){break a}if(!ze(a+36|0,b)){break a}if(!ze(a+56|0,b)){break a}if(!ze(a+76|0,b)){break a}Hl(a,i[a+4>>2],c)}}function al(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;d=L-16|0;L=d;g=i[a+24>>2];n=i[a+28>>2];a:{if((g|0)!=(n|0)){p=d+8|0;while(1){i[p>>2]=0;i[d>>2]=0;i[d+4>>2]=0;e=il(i[g>>2],b,d);a=j[d+11|0];l=a<<24>>24;m=3;b:{c:{d:{if(!e){break d}m=0;e=j[c+11|0];f=e<<24>>24;k=(l|0)<0?i[d+4>>2]:a;if((k|0)!=(((f|0)<0?i[c+4>>2]:e)|0)){break d}h=(f|0)<0?i[c>>2]:c;f=i[d>>2];e=(l|0)<0;e:{if(!e){if(!k){break e}e=d;if(j[h|0]!=(f&255)){break d}while(1){a=a+ -1|0;if(!a){break e}f=j[h+1|0];h=h+1|0;e=e+1|0;if((f|0)==j[e|0]){continue}break}break d}if(!k){break e}if(Pl(e?f:d,h,k)){break c}}o=i[g>>2];m=1}if((l|0)>-1){break b}}qn(i[d>>2])}f:{switch(m|0){case 0:case 3:break f;default:break a}}g=g+4|0;if((n|0)!=(g|0)){continue}break}}o=0}L=d+16|0;return o}function Hc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;d=i[b+12>>2];k=d;c=i[b+20>>2];f=c;g=i[b+16>>2];e=g+4|0;if(e>>>0<4){c=c+1|0}l=i[b+8>>2];h=e;e=c;a:{if((d|0)<(c|0)?1:(d|0)<=(c|0)?l>>>0>>0:0){break a}m=i[b>>2];c=m+g|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=e;c=f;f=g+8|0;if(f>>>0<8){c=c+1|0}e=f;f=c;if((k|0)<(c|0)?1:(k|0)<=(c|0)?l>>>0>>0:0){break a}c=h+m|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=e;i[b+20>>2]=f;if((d|0)>(c|0)){break a}i[a+16>>2]=c;i[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break a}n=1;b=b+1|0;i[a+20>>2]=b;c=(b|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(b&1){break a}i[a+24>>2]=c+ -1}return n|0}function em(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=L-32|0;L=d;e=i[a+28>>2];i[d+16>>2]=e;f=i[a+20>>2];i[d+28>>2]=c;i[d+24>>2]=b;b=f-e|0;i[d+20>>2]=b;e=b+c|0;k=2;b=d+16|0;a:{b:{c:{if(!gm(D(i[a+60>>2],d+16|0,2,d+12|0)|0)){while(1){f=i[d+12>>2];if((f|0)==(e|0)){break c}if((f|0)<=-1){break b}g=i[b+4>>2];h=f>>>0>g>>>0;j=(h<<3)+b|0;g=f-(h?g:0)|0;i[j>>2]=g+i[j>>2];j=(h?12:4)+b|0;i[j>>2]=i[j>>2]-g;e=e-f|0;b=h?b+8|0:b;k=k-h|0;if(!gm(D(i[a+60>>2],b|0,k|0,d+12|0)|0)){continue}break}}i[d+12>>2]=-1;if((e|0)!=-1){break b}}b=i[a+44>>2];i[a+28>>2]=b;i[a+20>>2]=b;i[a+16>>2]=b+i[a+48>>2];a=c;break a}i[a+28>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a>>2]=i[a>>2]|32;a=0;if((k|0)==2){break a}a=c-i[b+4>>2]|0}L=d+32|0;return a|0}function sa(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,n=0,o=0,r=0,s=0,t=0,v=0,w=p(0),x=0,y=p(0),z=0,A=0,B=0,C=0,D=0;n=L-16|0;L=n;h=i[a+4>>2];o=i[d+48>>2];d=i[i[d>>2]>>2];f=g[b+24|0];k=Mh(n+8|0);Nh(k,m[a+20>>2],-1<>2];z=i[b>>2];o=i[b+48>>2];A=i[b+68>>2];k=i[b+44>>2];v=i[b+40>>2];B=v;d=0;C=j[b+84|0];D=(f|0)<1;while(1){b=l;e=h;r=i[z>>2];s=v;t=k;if(!C){b=i[(l<<2)+A>>2]}b=Jn(s,t,b,0)+o|0;s=sn(e,b+r|0,B);if(!D){t=i[a+8>>2];b=0;while(1){r=(d<<2)+x|0;e=b<<2;w=p(u(p(p(y*p(m[e+s>>2]-m[e+t>>2]))+p(.5))));a:{if(p(q(w))>2]=e;d=d+1|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}l=l+1|0;if((l|0)!=(c|0)){continue}break}}qn(h);L=n+16|0}function tn(a,b,c){var d=0,e=0,f=0,h=0;a:{if(!c){break a}d=a+c|0;g[d+ -1|0]=b;g[a|0]=b;if(c>>>0<3){break a}g[d+ -2|0]=b;g[a+1|0]=b;g[d+ -3|0]=b;g[a+2|0]=b;if(c>>>0<7){break a}g[d+ -4|0]=b;g[a+3|0]=b;if(c>>>0<9){break a}d=0-a&3;e=d+a|0;b=o(b&255,16843009);i[e>>2]=b;c=c-d&-4;d=c+e|0;i[d+ -4>>2]=b;if(c>>>0<9){break a}i[e+8>>2]=b;i[e+4>>2]=b;i[d+ -8>>2]=b;i[d+ -12>>2]=b;if(c>>>0<25){break a}i[e+24>>2]=b;i[e+20>>2]=b;i[e+16>>2]=b;i[e+12>>2]=b;i[d+ -16>>2]=b;i[d+ -20>>2]=b;i[d+ -24>>2]=b;i[d+ -28>>2]=b;h=e&4|24;c=c-h|0;if(c>>>0<32){break a}d=b;f=b;b=e+h|0;while(1){i[b+24>>2]=f;i[b+28>>2]=d;i[b+16>>2]=f;i[b+20>>2]=d;i[b+8>>2]=f;i[b+12>>2]=d;i[b>>2]=f;i[b+4>>2]=d;b=b+32|0;c=c+ -32|0;if(c>>>0>31){continue}break}}return a}function Jk(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];d=i[a>>2];if(e-d>>2>>>0>=b>>>0){f=i[a+4>>2];g=f-d>>2;h=g>>>0>>0?g:b;if(h){e=d;while(1){i[e>>2]=i[c>>2];e=e+4|0;h=h+ -1|0;if(h){continue}break}}if(g>>>0>>0){b=b-g|0;if(!b){i[a+4>>2]=f;return}b=(b<<2)+f|0;while(1){i[f>>2]=i[c>>2];f=f+4|0;if((b|0)!=(f|0)){continue}break}i[a+4>>2]=b;return}i[a+4>>2]=(b<<2)+d;return}if(d){i[a+4>>2]=d;qn(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;e=0}a:{if(b>>>0>=1073741824){break a}d=e>>1;d=e>>2>>>0<536870911?d>>>0>>0?b:d:1073741823;if(d>>>0>=1073741824){break a}d=d<<2;e=Gm(d);i[a>>2]=e;i[a+4>>2]=e;i[a+8>>2]=e+d;d=(b<<2)+e|0;b=i[c>>2];while(1){i[e>>2]=b;e=e+4|0;if((d|0)!=(e|0)){continue}break}i[a+4>>2]=d;return}Vm();x()}function Yg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+56>>2]-i[c+52>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];g=c<<2;c=Gm(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){sn(c,d,e)}i[b+8>>2]=g;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}qn(d)}e=a+8|0;b=i[a+76>>2];c:{if(b){d=1;c=i[b>>2];if((c|0)==i[b+4>>2]){break c}b=0;while(1){d=Zg(e,i[(b<<2)+c>>2]);if(!d){break c}f=i[a+76>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break c}d=1;a=i[i[a+12>>2]+64>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break c}b=0;while(1){d=Zg(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break c}if(d){continue}break}}return d|0}Da(12220);x()}function Xk(a,b){var c=0,d=0,e=0,f=0,g=0;d=-1;f=-1;e=-1;a:{b:{if((b|0)==-1){break b}g=1;f=i[i[i[a+4>>2]+12>>2]+(b<<2)>>2];c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)>=0){e=(c>>>0)/3|0;e=i[(i[i[a>>2]+96>>2]+o(e,12)|0)+(c-o(e,3)<<2)>>2]}c:{if((f|0)==-1){break c}g=0;c=((f>>>0)%3|0?-1:2)+f|0;if((c|0)<0){break c}d=(c>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(c-o(d,3)<<2)>>2]}c=-1;if((d|0)!=(e|0)){break a}e=-1;d:{b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)>=0){d=(b>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(b-o(d,3)<<2)>>2];if(g){break b}break d}d=-1;if(!g){break d}break b}b=f+1|0;b=(b>>>0)%3|0?b:f+ -2|0;if((b|0)<0){break b}c=i[i[a>>2]+96>>2];a=(b>>>0)/3|0;e=i[(c+o(a,12)|0)+(b-o(a,3)<<2)>>2]}c=(d|0)==(e|0)?f:-1}return c}function Kb(a,b,c){var d=0,e=0,f=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;f=L-16|0;L=f;d=g[b+24|0];i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;a:{b:{if(d){if((d|0)<=-1){break b}e=d<<1;m=Gm(e);i[f>>2]=m;n=e+m|0;i[f+8>>2]=n;tn(m,0,e);i[f+4>>2]=n;p=Gm(e);tn(p,0,e)}if(!i[b+80>>2]){break a}while(1){v=i[b>>2];q=i[v>>2];t=i[b+48>>2];e=i[b+40>>2];n=Jn(e,i[b+44>>2],u,r);s=q;q=n+t|0;n=sn(m,s+q|0,e);if(d<<24>>24>=1){d=d&255;q=d>>>0>1?d:1;t=i[a+48>>2];d=0;while(1){s=d<<1;h[s+p>>1]=k[n+s>>1]+k[(c+d<<2)+t>>1];d=d+1|0;if((q|0)!=(d|0)){continue}break}}sn(i[v>>2]+o(e,u)|0,p,e);e=u+1|0;if(e>>>0<1){r=r+1|0}u=e;if(!r&e>>>0>=l[b+80>>2]|r>>>0>0){break a}d=j[b+24|0];continue}}Vm();x()}if(p){qn(p)}if(m){i[f+4>>2]=m;qn(m)}L=f+16|0;return 1}function Jb(a,b,c){var d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;f=L-16|0;L=f;d=g[b+24|0];i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;a:{b:{if(d){if((d|0)<=-1){break b}e=d<<2;h=Gm(e);i[f>>2]=h;k=e+h|0;i[f+8>>2]=k;tn(h,0,e);i[f+4>>2]=k;m=Gm(e);tn(m,0,e)}if(!i[b+80>>2]){break a}while(1){t=i[b>>2];n=i[t>>2];r=i[b+48>>2];e=i[b+40>>2];k=Jn(e,i[b+44>>2],s,p);q=n;n=k+r|0;k=sn(h,q+n|0,e);if(d<<24>>24>=1){d=d&255;n=d>>>0>1?d:1;r=i[a+48>>2];d=0;while(1){q=d<<2;i[q+m>>2]=i[(c+d<<2)+r>>2]+i[k+q>>2];d=d+1|0;if((n|0)!=(d|0)){continue}break}}sn(i[t>>2]+o(e,s)|0,m,e);e=s+1|0;if(e>>>0<1){p=p+1|0}s=e;if(!p&e>>>0>=l[b+80>>2]|p>>>0>0){break a}d=j[b+24|0];continue}}Vm();x()}if(m){qn(m)}if(h){i[f+4>>2]=h;qn(h)}L=f+16|0;return 1}function Vh(a,b){var c=0,d=0,e=0,f=0,h=0;a:{b:{c:{e=i[a>>2];h=(i[a+4>>2]-e|0)/12|0;c=h+1|0;if(c>>>0<357913942){e=(i[a+8>>2]-e|0)/12|0;f=e<<1;c=e>>>0<178956970?f>>>0>>0?c:f:357913941;d=0;d:{if(!c){break d}if(c>>>0>=357913942){break c}d=Gm(o(c,12))}e=d+o(c,12)|0;b=Jm(d+o(h,12)|0,b);h=b+12|0;c=i[a+4>>2];d=i[a>>2];if((c|0)==(d|0)){break b}while(1){c=c+ -12|0;f=i[c+4>>2];b=b+ -12|0;i[b>>2]=i[c>>2];i[b+4>>2]=f;f=c+8|0;i[b+8>>2]=i[f>>2];i[c>>2]=0;i[c+4>>2]=0;i[f>>2]=0;if((c|0)!=(d|0)){continue}break}d=i[a+4>>2];c=i[a>>2];break a}Vm();x()}Da(14112);x()}c=d}i[a+8>>2]=e;i[a+4>>2]=h;i[a>>2]=b;if((c|0)!=(d|0)){while(1){a=d+ -12|0;if(g[d+ -1|0]<=-1){qn(i[a>>2])}d=a;if((a|0)!=(c|0)){continue}break}}if(c){qn(c)}}function Sg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+28>>2]-i[c+24>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];g=c<<2;c=Gm(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){sn(c,d,e)}i[b+8>>2]=g;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}qn(d)}e=a+8|0;b=i[a+76>>2];c:{if(b){d=1;c=i[b>>2];if((c|0)==i[b+4>>2]){break c}b=0;while(1){d=Tg(e,i[(b<<2)+c>>2]);if(!d){break c}f=i[a+76>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break c}d=1;a=i[a+12>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break c}b=0;while(1){d=Tg(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break c}if(d){continue}break}}return d|0}Da(12220);x()}function _b(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0;d=i[b>>2];b=i[b+4>>2];n=i[i[a+8>>2]+40>>2];h=n;p=Gm((h|0)>-1?h:-1);g=1;k=b-d|0;a:{if((k|0)<1){break a}b=0;j=i[c+12>>2];g=0;e=0+i[c+20>>2]|0;m=i[c+16>>2];f=n;d=m+f|0;if(d>>>0>>0){e=e+1|0}f=d;d=e;if((j|0)<(d|0)?1:(j|0)<=(d|0)?l[c+8>>2]>>0:0){break a}g=k>>2;k=(g|0)>1?g:1;while(1){b:{e=sn(p,m+i[c>>2]|0,h);i[c+16>>2]=f;i[c+20>>2]=d;sn(i[i[i[a+8>>2]+64>>2]>>2]+b|0,e,h);o=o+1|0;if((k|0)==(o|0)){break b}b=b+h|0;j=i[c+12>>2];e=q+i[c+20>>2]|0;m=i[c+16>>2];d=n;f=m+d|0;if(f>>>0>>0){e=e+1|0}d=e;if((j|0)>(d|0)?1:(j|0)>=(d|0)?l[c+8>>2]>=f>>>0:0){continue}}break}g=(o|0)>=(g|0)}qn(p);return g|0}function Ol(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;b=i[b>>2];g=i[b+8>>2];h=i[b+4>>2];j=i[b>>2];f=i[a>>2];b=i[f+4>>2];d=i[f+8>>2];if(b>>>0>>0){i[b+8>>2]=g;i[b+4>>2]=h;i[b>>2]=j;i[f+4>>2]=b+12;return}a:{a=i[f>>2];e=(b-a|0)/12|0;c=e+1|0;if(c>>>0<357913942){k=o(e,12);d=(d-a|0)/12|0;e=d<<1;d=d>>>0<178956970?e>>>0>>0?c:e:357913941;e=0;b:{if(!d){break b}if(d>>>0>=357913942){break a}e=Gm(o(d,12))}c=k+e|0;i[c+8>>2]=g;i[c+4>>2]=h;i[c>>2]=j;e=e+o(d,12)|0;d=c+12|0;if((a|0)!=(b|0)){while(1){c=c+ -12|0;b=b+ -12|0;i[c>>2]=i[b>>2];i[c+4>>2]=i[b+4>>2];i[c+8>>2]=i[b+8>>2];if((a|0)!=(b|0)){continue}break}b=a}i[f+8>>2]=e;i[f+4>>2]=d;i[f>>2]=c;if(b){qn(b)}return}Vm();x()}Da(14937);x()}function wf(a){a=a|0;var b=0,c=0,d=0,e=0;b=i[a+32>>2];d=i[b+16>>2];e=i[b+12>>2];c=i[b+20>>2];if((e|0)>(c|0)?1:(e|0)>=(c|0)?l[b+8>>2]>d>>>0:0){e=j[d+i[b>>2]|0];d=d+1|0;if(d>>>0<1){c=c+1|0}i[b+16>>2]=d;i[b+20>>2]=c;b=i[a+48>>2];i[a+48>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}a:{b:{c:{switch(e|0){case 0:c=Gm(384);Ef(c);b=i[a+48>>2];i[a+48>>2]=c;if(!b){break a}O[i[i[b>>2]+4>>2]](b);break b;case 1:c=Gm(424);fg(c);b=i[a+48>>2];i[a+48>>2]=c;if(!b){break a}O[i[i[b>>2]+4>>2]](b);break b;case 2:break c;default:break b}}c=Gm(440);kg(c);b=i[a+48>>2];i[a+48>>2]=c;if(!b){break a}O[i[i[b>>2]+4>>2]](b)}c=i[a+48>>2];if(c){break a}return 0}a=O[i[i[c>>2]+8>>2]](c,a)|0}else{a=0}return a|0}function cl(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=Gm(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;c=i[a+4>>2];d=i[a>>2];if((c|0)==(d|0)){break b}while(1){c=c+ -4|0;g=i[c>>2];i[c>>2]=0;b=b+ -4|0;i[b>>2]=g;if((c|0)!=(d|0)){continue}break}d=i[a+4>>2];c=i[a>>2];break a}Vm();x()}Da(14684);x()}c=d}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b;if((c|0)!=(d|0)){while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){sh(a+12|0,i[a+16>>2]);th(a,i[a+4>>2]);qn(a)}if((c|0)!=(d|0)){continue}break}}if(c){qn(c)}}function dh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=L-32|0;L=d;i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;a:{f=o(b,3);if(f){if(f>>>0>=1073741824){break a}e=Gm(o(b,12));i[d+16>>2]=e;g=f<<2;c=g+e|0;i[d+24>>2]=c;tn(e,0,g);i[d+20>>2]=c}k=Se(f,1,i[a+32>>2],e);if(!(!k|!b)){g=0;f=0;c=0;while(1){l=d+8|0;i[l>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=c;e=(f<<2)+e|0;c=i[e>>2];j=c>>>1|0;c=h+(c&1?0-j|0:j)|0;i[d>>2]=c;h=c;c=i[e+4>>2];j=c>>>1|0;c=h+(c&1?0-j|0:j)|0;i[d+4>>2]=c;h=c;e=i[e+8>>2];c=e>>>1|0;c=h+(e&1?0-c|0:c)|0;i[l>>2]=c;eh(i[a+44>>2]+96|0,d);g=g+1|0;if((g|0)!=(b|0)){f=f+3|0;e=i[d+16>>2];continue}break}e=i[d+16>>2]}if(e){i[d+20>>2]=e;qn(e)}L=d+32|0;return k}Vm();x()}function Zl(a,b,c){a:{b:{if(b>>>0>20){break b}c:{switch(b+ -9|0){case 0:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=i[b>>2];return;case 1:b=i[c>>2];i[c>>2]=b+4;b=i[b>>2];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 2:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=i[b>>2];i[a+4>>2]=0;return;case 4:b=i[c>>2];i[c>>2]=b+4;b=h[b>>1];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 5:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=k[b>>1];i[a+4>>2]=0;return;case 6:b=i[c>>2];i[c>>2]=b+4;b=g[b|0];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 7:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=j[b|0];i[a+4>>2]=0;return;case 3:case 8:break a;case 9:break c;default:break b}}O[0](a,c)}return}b=i[c>>2]+7&-8;i[c>>2]=b+8;c=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=c}function rc(a,b,c,d,e){var f=0,g=0,h=0,j=0;a:{b:{if((b|0)!=-2){g=i[i[i[d+4>>2]+8>>2]+(c<<2)>>2];if((O[i[i[d>>2]+8>>2]](d)|0)==1){f=b;b=k[d+36>>1];yc(a,d,f,c,e,(b<<24|b<<8&16711680)>>>16|0);if(i[a>>2]){break b}i[a>>2]=0}f=Gm(44);i[f+4>>2]=g;i[f>>2]=3088;b=i[e+8>>2];c=i[e+12>>2];d=i[e+16>>2];g=i[e+20>>2];h=i[e>>2];j=i[e+4>>2];i[f+40>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;i[f+24>>2]=d;i[f+28>>2]=g;i[f+16>>2]=b;i[f+20>>2]=c;i[f+8>>2]=h;i[f+12>>2]=j;b=i[e+28>>2];e=i[e+24>>2];d=b-e|0;if(d){c=d>>2;if(c>>>0>=1073741824){break a}b=Gm(d);i[f+32>>2]=b;i[f+36>>2]=b;i[f+40>>2]=b+(c<<2);c=f;if((d|0)>=1){b=sn(b,e,d)+d|0}i[c+36>>2]=b}i[f>>2]=6684}i[a>>2]=f}return}Vm();x()}function fh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;f=L-16|0;L=f;g=Gm(64);c=Gm(12);i[c+8>>2]=i[i[a+4>>2]+80>>2];i[c>>2]=13428;i[c+4>>2]=0;i[f+8>>2]=c;bc(g,f+8|0);a:{if((b|0)>=0){h=a+8|0;c=i[a+12>>2];j=i[a+8>>2];d=c-j>>2;b:{if((d|0)>(b|0)){break b}e=b+1|0;if(d>>>0<=b>>>0){Mf(h,e-d|0);break b}if(e>>>0>=d>>>0){break b}e=j+(e<<2)|0;if((e|0)!=(c|0)){while(1){c=c+ -4|0;d=i[c>>2];i[c>>2]=0;if(d){O[i[i[d>>2]+4>>2]](d)}if((c|0)!=(e|0)){continue}break}}i[a+12>>2]=e}c=i[h>>2]+(b<<2)|0;a=i[c>>2];i[c>>2]=g;if(!a){break a}O[i[i[a>>2]+4>>2]](a);break a}O[i[i[g>>2]+4>>2]](g)}a=i[f+8>>2];i[f+8>>2]=0;if(a){O[i[i[a>>2]+4>>2]](a)}L=f+16|0;return(b^-1)>>>31|0}function Lf(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=L-16|0;L=e;i[a+4>>2]=0;a:{b:{if(!b){break b}f=i[a+8>>2];d=f<<5;c:{if(d>>>0>=b>>>0){i[a+4>>2]=b;break c}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if((b|0)<=-1){break a}h=e;if(d>>>0<=1073741822){g=b+31&-32;d=f<<6;d=d>>>0>>0?g:d}else{d=2147483647}Sc(h,d);d=i[a>>2];i[a>>2]=i[e>>2];i[e>>2]=d;f=i[a+4>>2];i[a+4>>2]=b;i[e+4>>2]=f;f=i[a+8>>2];i[a+8>>2]=i[e+8>>2];i[e+8>>2]=f;if(!d){break c}qn(d)}d=b>>>5|0;f=d<<2;a=i[a>>2];if(j[c|0]){a=tn(a,255,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;i[a>>2]=i[a>>2]|-1>>>32-b;break b}a=tn(a,0,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;i[a>>2]=i[a>>2]&(-1>>>32-b^-1)}L=e+16|0;return}Vm();x()}function qa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0;i[b>>2]=1;f=b+8|0;c=i[b+8>>2];d=i[b+12>>2]-c|0;if(d>>>0<=4294967291){Ah(f,d+4|0);c=i[f>>2]}c=c+d|0;d=i[a+4>>2];g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;c=i[a+8>>2];if((c|0)!=i[a+12>>2]){d=0;while(1){h=(d<<2)+c|0;c=i[b+8>>2];e=i[b+12>>2]-c|0;if(e>>>0<=4294967291){Ah(f,e+4|0);c=i[f>>2]}c=c+e|0;e=i[h>>2];g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;d=d+1|0;c=i[a+8>>2];if(d>>>0>2]-c>>2>>>0){continue}break}}c=i[b+12>>2];b=i[b+8>>2];c=c-b|0;if(c>>>0<=4294967291){Ah(f,c+4|0);b=i[f>>2]}b=b+c|0;a=i[a+20>>2];g[b|0]=a;g[b+1|0]=a>>>8;g[b+2|0]=a>>>16;g[b+3|0]=a>>>24}function Ef(a){i[a>>2]=11468;tn(a+4|0,0,80);i[a+96>>2]=0;i[a+100>>2]=0;i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+148>>2]=0;i[a+156>>2]=0;i[a+160>>2]=0;i[a+152>>2]=1065353216;i[a+164>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;i[a+196>>2]=0;i[a+200>>2]=0;i[a+204>>2]=0;i[a+208>>2]=0;i[a+212>>2]=-1;i[a+216>>2]=0;i[a+220>>2]=0;i[a+224>>2]=0;Bh(a+232|0);Bh(a+272|0);Be(a+312|0);Bh(a+328|0);i[a+376>>2]=0;i[a+368>>2]=0;i[a+372>>2]=0}function fb(a,b){var c=0,d=0,e=0,f=0,g=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;c=i[b+4>>2]-i[b>>2]|0;d=(c|0)/20|0;a:{if(!c){i[a+28>>2]=0;break a}if(d>>>0<214748365){c=Gm(c);i[a+16>>2]=c;i[a+20>>2]=c;i[a+24>>2]=c+o(d,20);d=i[b>>2];b=i[b+4>>2]-d|0;if((b|0)<=0){i[a+28>>2]=0;i[a+20>>2]=c;break a}d=sn(c,d,b);c=0;i[a+28>>2]=0;b=o((b>>>0)/20|0,20);f=b+d|0;i[a+20>>2]=f;g=a;if(b){b=(f-d|0)/20|0;f=b>>>0>1?b:1;b=0;while(1){e=o(c,20)+d|0;e=o(i[e+16>>2],i[e+12>>2]);b=b>>>0>>0?e:b;c=c+1|0;if((f|0)!=(c|0)){continue}break}if(!b){break a}tb(a,b);b=i[a>>2]}else{b=0}i[g+12>>2]=b;return a}Vm();x()}i[a+12>>2]=0;return a}function Lb(a,b,c){var d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0;e=L-16|0;L=e;d=g[b+24|0];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;a:{if(d){if((d|0)<=-1){break a}h=Gm(d);i[e>>2]=h;f=d+h|0;i[e+8>>2]=f;tn(h,0,d);i[e+4>>2]=f;f=Gm(d);tn(f,0,d)}if(i[b+80>>2]){while(1){n=i[i[b>>2]>>2];k=i[b+40>>2];d=i[b+48>>2]+Jn(k,i[b+44>>2],p,m)|0;q=sn(h,n+d|0,k);k=g[b+24|0];if((k|0)>=1){n=i[a+48>>2];d=0;while(1){g[d+f|0]=j[d+q|0]+j[(c+d<<2)+n|0];d=d+1|0;if((d|0)<(k|0)){continue}break}}d=i[b+40>>2];sn(i[i[b>>2]>>2]+o(d,p)|0,f,d);d=p+1|0;if(d>>>0<1){m=m+1|0}p=d;if(!m&d>>>0>2]|m>>>0<0){continue}break}}if(f){qn(f)}if(h){i[e+4>>2]=h;qn(h)}L=e+16|0;return 1}Vm();x()}function Jg(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=(c>>>0)/3|0;Kg(i[a+12>>2],i[(i[i[a+8>>2]+96>>2]+o(d,12)|0)+(c-o(d,3)<<2)>>2]);a:{b:{g=i[a+4>>2];d=i[g+4>>2];f=i[g+8>>2];c:{if((d|0)!=(f|0)){i[d>>2]=c;i[g+4>>2]=d+4;break c}h=i[g>>2];j=d-h|0;d=j>>2;e=d+1|0;if(e>>>0>=1073741824){break b}k=d<<2;f=f-h|0;d=f>>1;e=f>>2>>>0<536870911?d>>>0>>0?e:d:1073741823;d=0;d:{if(!e){break d}if(e>>>0>=1073741824){break a}d=Gm(e<<2)}f=k+d|0;i[f>>2]=c;c=d+(e<<2)|0;e=f+4|0;if((j|0)>=1){sn(d,h,j)}i[g+8>>2]=c;i[g+4>>2]=e;i[g>>2]=d;if(!h){break c}qn(h)}a=i[a+4>>2];i[i[a+12>>2]+(b<<2)>>2]=i[a+24>>2];i[a+24>>2]=i[a+24>>2]+1;return}Vm();x()}Da(12220);x()}function Ak(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=L-16|0;L=f;i[a+80>>2]=0;i[a+84>>2]=0;c=a+76|0;d=i[c>>2];i[c>>2]=0;if(d){qn(d)}i[a+68>>2]=0;i[a+72>>2]=0;c=a- -64|0;d=i[c>>2];i[c>>2]=0;if(d){qn(d)}c=i[b+4>>2];d=i[b>>2];e=o((c-d|0)/12|0,3);h=i[a>>2];g=i[a+4>>2]-h>>2;a:{if(e>>>0>g>>>0){Bk(a,e-g|0);d=i[b>>2];c=i[b+4>>2];break a}if(e>>>0>=g>>>0){break a}i[a+4>>2]=h+(e<<2)}if((c|0)!=(d|0)){b=(c-d|0)/12|0;g=b>>>0>1?b:1;h=i[a>>2];b=0;while(1){e=o(b,12);c=e+h|0;e=d+e|0;i[c>>2]=i[e>>2];i[c+4>>2]=i[e+4>>2];i[c+8>>2]=i[e+8>>2];b=b+1|0;if((g|0)!=(b|0)){continue}break}}i[f+12>>2]=-1;b=Ck(a,f+12|0);if(b){Dk(a);Ek(a,i[f+12>>2])}L=f+16|0;return b}function eb(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=Gm(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;c=i[a+4>>2];d=i[a>>2];if((c|0)==(d|0)){break b}while(1){c=c+ -4|0;g=i[c>>2];i[c>>2]=0;b=b+ -4|0;i[b>>2]=g;if((c|0)!=(d|0)){continue}break}d=i[a+4>>2];c=i[a>>2];break a}Vm();x()}Da(1756);x()}c=d}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b;if((c|0)!=(d|0)){while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){Ua(a)}if((c|0)!=(d|0)){continue}break}}if(c){qn(c)}}function $d(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0;c=i[b+12>>2];h=c;e=c;c=i[b+20>>2];f=c;g=i[b+16>>2];d=g+4|0;if(d>>>0<4){c=c+1|0}l=i[b+8>>2];n=d;d=c;a:{if((e|0)<(c|0)?1:(e|0)<=(c|0)?l>>>0>>0:0){break a}c=g+i[b>>2]|0;e=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=n;i[b+20>>2]=d;if(k[b+38>>1]<=513){c=f;d=g+8|0;if(d>>>0<8){c=c+1|0}f=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?l>>>0>>0:0){break a}i[b+16>>2]=f;i[b+20>>2]=d}if(!(e&1)){break a}b=r(e)^31;c=b+ -1|0;if(c>>>0<=28){i[a+8>>2]=b+1;b=-2<>2]=d;i[a+12>>2]=b^-1;i[a+24>>2]=(d|0)/2;m[a+20>>2]=p(2)/p(d|0)}o=c>>>0<29}return o|0}function Oa(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){f=i[a+4>>2];d=f-e|0;h=d>>2;d=g>>>0>h>>>0?b+d|0:c;if((d|0)!=(b|0)){while(1){i[e>>2]=i[b>>2];e=e+4|0;b=b+4|0;if((d|0)!=(b|0)){continue}break}}if(g>>>0>h>>>0){b=c-d|0;if((b|0)>=1){f=sn(f,d,b)+b|0}i[a+4>>2]=f;return}i[a+4>>2]=e;return}if(e){i[a+4>>2]=e;qn(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=Gm(e);i[a>>2]=c;i[a+4>>2]=c;i[a+8>>2]=c+e;if((f|0)>=1){c=sn(c,b,f)+f|0}i[a+4>>2]=c;return}Vm();x()}function bi(a,b,c){var d=0,e=0,f=0,h=0;d=L-32|0;L=d;a:{h=An(b);if(h>>>0<4294967280){b:{c:{if(h>>>0>=11){e=h+16&-16;f=Gm(e);i[d+24>>2]=e|-2147483648;i[d+16>>2]=f;i[d+20>>2]=h;break c}g[d+27|0]=h;f=d+16|0;if(!h){break b}}sn(f,b,h)}g[f+h|0]=0;e=An(c);if(e>>>0>=4294967280){break a}d:{e:{if(e>>>0>=11){b=e+16&-16;f=Gm(b);i[d+8>>2]=b|-2147483648;i[d>>2]=f;i[d+4>>2]=e;break e}g[d+11|0]=e;f=d;if(!e){break d}}sn(f,c,e)}g[e+f|0]=0;c=i[a+4>>2];b=-1;f:{if(!c){break f}c=al(c,d+16|0,d);b=-1;if(!c){break f}b=ql(a,i[c+24>>2])}a=b;if(g[d+11|0]<=-1){qn(i[d>>2])}if(g[d+27|0]<=-1){qn(i[d+16>>2])}L=d+32|0;return a}Im();x()}Im();x()}function de(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=L-32|0;L=f;g=(e&1073741823)!=(e|0)?-1:e<<2;m=tn(Gm(g),0,g);g=m;j=i[g>>2];g=i[g+4>>2];l=i[b+4>>2];i[f+24>>2]=i[b>>2];i[f+28>>2]=l;i[f+8>>2]=j;i[f+12>>2]=g;j=a+8|0;_d(f+16|0,j,f+8|0,f+24|0);i[c>>2]=i[f+16>>2];i[c+4>>2]=i[f+20>>2];if((e|0)<(d|0)){l=0-e<<2;a=e;while(1){h=a<<2;g=h+c|0;k=g+l|0;n=i[k>>2];k=i[k+4>>2];h=b+h|0;o=i[h+4>>2];i[f+24>>2]=i[h>>2];i[f+28>>2]=o;i[f+8>>2]=n;i[f+12>>2]=k;_d(f+16|0,j,f+8|0,f+24|0);i[g>>2]=i[f+16>>2];i[g+4>>2]=i[f+20>>2];a=a+e|0;if((a|0)<(d|0)){continue}break}}qn(m);L=f+32|0;return 1}function ne(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=L-32|0;L=f;h=(e&1073741823)!=(e|0)?-1:e<<2;h=tn(Gm(h),0,h);g=i[b>>2];j=i[b+4>>2];l=i[h+4>>2];i[f+16>>2]=i[h>>2];i[f+20>>2]=l;i[f+8>>2]=g;i[f+12>>2]=j;j=a+8|0;ie(f+24|0,j,f+16|0,f+8|0);i[c>>2]=i[f+24>>2];i[c+4>>2]=i[f+28>>2];if((e|0)<(d|0)){l=0-e<<2;a=e;while(1){g=a<<2;k=g+b|0;n=i[k>>2];k=i[k+4>>2];g=c+g|0;m=g+l|0;o=i[m+4>>2];i[f+16>>2]=i[m>>2];i[f+20>>2]=o;i[f+8>>2]=n;i[f+12>>2]=k;ie(f+24|0,j,f+16|0,f+8|0);i[g>>2]=i[f+24>>2];i[g+4>>2]=i[f+28>>2];a=a+e|0;if((a|0)<(d|0)){continue}break}}qn(h);L=f+32|0;return 1}function Yb(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];d=i[a+4>>2];if(e-d>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=d;return}b=(b<<2)+d|0;while(1){i[d>>2]=i[c>>2];d=d+4|0;if((b|0)!=(d|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];h=d-g|0;f=h>>2;d=f+b|0;if(d>>>0<1073741824){j=f<<2;e=e-g|0;f=e>>1;e=e>>2>>>0<536870911?f>>>0>>0?d:f:1073741823;f=0;b:{if(!e){break b}if(e>>>0>=1073741824){break a}f=Gm(e<<2)}d=j+f|0;b=d+(b<<2)|0;e=f+(e<<2)|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}if((h|0)>=1){sn(f,g,h)}i[a+8>>2]=e;i[a+4>>2]=b;i[a>>2]=f;if(g){qn(g)}return}Vm();x()}Da(1972);x()}function Va(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];d=i[a+4>>2];if(e-d>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=d;return}b=(b<<2)+d|0;while(1){i[d>>2]=i[c>>2];d=d+4|0;if((b|0)!=(d|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];h=d-g|0;f=h>>2;d=f+b|0;if(d>>>0<1073741824){j=f<<2;e=e-g|0;f=e>>1;e=e>>2>>>0<536870911?f>>>0>>0?d:f:1073741823;f=0;b:{if(!e){break b}if(e>>>0>=1073741824){break a}f=Gm(e<<2)}d=j+f|0;b=d+(b<<2)|0;e=f+(e<<2)|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}if((h|0)>=1){sn(f,g,h)}i[a+8>>2]=e;i[a+4>>2]=b;i[a>>2]=f;if(g){qn(g)}return}Vm();x()}Da(1496);x()}function Rb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{f=i[a+4>>2];e=i[a>>2];b:{if((f|0)!=(e|0)){c=f;break b}d=i[a+8>>2];c=i[a+12>>2];if(d>>>0>>0){g=((c-d>>2)+1|0)/2<<2;c=g+d|0;e=d-f|0;if(e){c=c-e|0;un(c,f,e);d=i[a+8>>2]}i[a+4>>2]=c;i[a+8>>2]=d+g;break b}c=c-e|0;c=c?c>>1:1;if(c>>>0>=1073741824){break a}e=c<<2;g=Gm(e);h=e+g|0;c=g+(c+3&-4)|0;d=d-f|0;c:{if(!d){e=c;break c}e=c+d|0;d=c;while(1){i[d>>2]=i[f>>2];f=f+4|0;d=d+4|0;if((d|0)!=(e|0)){continue}break}f=i[a>>2]}i[a+12>>2]=h;i[a+8>>2]=e;i[a+4>>2]=c;i[a>>2]=g;if(!f){break b}qn(f);c=i[a+4>>2]}i[c+ -4>>2]=i[b>>2];i[a+4>>2]=i[a+4>>2]+ -4;return}Da(1756);x()}function Fk(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<2)+c|0;while(1){i[c>>2]=i[3571];c=c+4|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{f=i[a>>2];g=c-f|0;e=g>>2;c=e+b|0;if(c>>>0<1073741824){h=e<<2;d=d-f|0;e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?c:e:1073741823;e=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}e=Gm(d<<2)}c=h+e|0;b=c+(b<<2)|0;d=e+(d<<2)|0;h=i[3571];while(1){i[c>>2]=h;c=c+4|0;if((b|0)!=(c|0)){continue}break}if((g|0)>=1){sn(e,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=e;if(f){qn(f)}return}Vm();x()}Da(14288);x()}function je(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,n=0;c=i[b+12>>2];h=c;e=c;c=i[b+20>>2];f=c;g=i[b+16>>2];d=g+4|0;if(d>>>0<4){c=c+1|0}k=i[b+8>>2];l=d;d=c;a:{if((e|0)<(c|0)?1:(e|0)<=(c|0)?k>>>0>>0:0){break a}c=g+i[b>>2]|0;e=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=l;i[b+20>>2]=d;c=f;d=g+8|0;if(d>>>0<8){c=c+1|0}f=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?k>>>0>>0:0){break a}i[b+16>>2]=f;i[b+20>>2]=d;if(!(e&1)){break a}b=r(e)^31;if(b+ -1>>>0>28){break a}n=1;i[a+8>>2]=b+1;b=-2<>2]=c;i[a+12>>2]=b^-1;i[a+24>>2]=(c|0)/2;m[a+20>>2]=p(2)/p(c|0)}return n|0}function oa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0;d=i[b+88>>2];if(!(!d|i[d>>2]!=1)){c=i[d+8>>2];i[a+4>>2]=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);f=a+8|0;h=i[a+8>>2];e=i[a+12>>2]-h>>2;c=g[b+24|0];a:{if(e>>>0>>0){pa(f,c-e|0);c=j[b+24|0];break a}if(e>>>0<=c>>>0){break a}i[a+12>>2]=h+(c<<2)}h=1;e=i[d+8>>2];b:{if(c<<24>>24<1){b=4;break b}b=c&255;k=b>>>0>1?b:1;f=i[f>>2];c=0;b=4;while(1){d=b+e|0;i[f+(c<<2)>>2]=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);b=b+4|0;c=c+1|0;if((k|0)!=(c|0)){continue}break}}c=a;a=b+e|0;i[c+20>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24)}return h|0}function li(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0;d=L-16|0;L=d;k=i[a+80>>2];l=g[b+24|0];a=i[3527];i[d+8>>2]=i[3526];i[d+12>>2]=a;a=i[3525];i[d>>2]=i[3524];i[d+4>>2]=a;a=o(k,l);f=i[c>>2];e=i[c+4>>2]-f>>2;a:{if(a>>>0>e>>>0){pa(c,a-e|0);break a}if(a>>>0>=e>>>0){break a}i[c+4>>2]=f+(a<<2)}b:{if(!k){f=0;break b}f=1;while(1){a=h;e=b;if(!j[e+84|0]){a=i[i[b+68>>2]+(h<<2)>>2]}if(!bd(e,a,g[b+24|0],d)){break b}if((l|0)>=1){e=i[c>>2];a=0;while(1){i[e+(m<<2)>>2]=i[(a<<2)+d>>2];m=m+1|0;a=a+1|0;if((l|0)!=(a|0)){continue}break}}h=h+1|0;f=h>>>0>>0;if((k|0)!=(h|0)){continue}break}}L=d+16|0;return(f^-1)&1}function Qb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{c=i[a+8>>2];d=i[a+12>>2];b:{if((c|0)!=(d|0)){break b}f=i[a+4>>2];e=i[a>>2];if(f>>>0>e>>>0){e=((f-e>>2)+1|0)/-2<<2;d=e+f|0;c=c-f|0;if(c){un(d,f,c);f=i[a+4>>2]}c=c+d|0;i[a+8>>2]=c;i[a+4>>2]=f+e;break b}d=d-e|0;d=d?d>>1:1;if(d>>>0>=1073741824){break a}g=d<<2;h=Gm(g);g=h+g|0;d=(d&-4)+h|0;c=c-f|0;c:{if(!c){c=d;break c}c=c+d|0;e=d;while(1){i[e>>2]=i[f>>2];f=f+4|0;e=e+4|0;if((c|0)!=(e|0)){continue}break}e=i[a>>2]}i[a+12>>2]=g;i[a+8>>2]=c;i[a+4>>2]=d;i[a>>2]=h;if(!e){break b}qn(e);c=i[a+8>>2]}i[c>>2]=i[b>>2];i[a+8>>2]=i[a+8>>2]+4;return}Da(1756);x()}function Pk(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<2)+c|0;while(1){i[c>>2]=1;c=c+4|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{f=i[a>>2];g=c-f|0;e=g>>2;c=e+b|0;if(c>>>0<1073741824){h=e<<2;d=d-f|0;e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?c:e:1073741823;e=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}e=Gm(d<<2)}c=h+e|0;b=c+(b<<2)|0;d=e+(d<<2)|0;while(1){i[c>>2]=1;c=c+4|0;if((b|0)!=(c|0)){continue}break}if((g|0)>=1){sn(e,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=e;if(f){qn(f)}return}Vm();x()}Da(14408);x()}function eh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+4>>2];f=i[a+8>>2];if((e|0)!=(f|0)){d=i[b+4>>2];i[e>>2]=i[b>>2];i[e+4>>2]=d;i[e+8>>2]=i[b+8>>2];i[a+4>>2]=e+12;return}a:{c=e;e=i[a>>2];g=c-e|0;c=(g|0)/12|0;d=c+1|0;if(d>>>0<357913942){h=o(c,12);f=(f-e|0)/12|0;c=f<<1;f=f>>>0<178956970?c>>>0>>0?d:c:357913941;c=0;b:{if(!f){break b}if(f>>>0>=357913942){break a}c=Gm(o(f,12))}d=h+c|0;h=i[b+4>>2];i[d>>2]=i[b>>2];i[d+4>>2]=h;i[d+8>>2]=i[b+8>>2];b=d+o((g|0)/-12|0,12)|0;c=c+o(f,12)|0;d=d+12|0;if((g|0)>=1){sn(b,e,g)}i[a+8>>2]=c;i[a+4>>2]=d;i[a>>2]=b;if(e){qn(e)}return}Vm();x()}Da(13352);x()}function ua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=p(0);f=L-16|0;L=f;if(i[c+28>>2]==9){d=i[a+4>>2];e=g[c+24|0];h=e<<2;j=Gm((e&1073741823)!=(e|0)?-1:h);k=Mh(f+8|0);l=Oh(k,m[a+20>>2],-1<>2];if(!n){break a}s=i[i[b>>2]>>2]+i[b+48>>2]|0;t=(e|0)<1;d=0;while(1){if(!t){u=i[a+8>>2];v=m[k>>2];b=0;while(1){o=b<<2;m[o+j>>2]=p(v*p(i[(d<<2)+s>>2]))+m[u+o>>2];d=d+1|0;b=b+1|0;if((e|0)!=(b|0)){continue}break}}sn(i[i[c+64>>2]>>2]+q|0,j,h);q=h+q|0;r=r+1|0;if((r|0)!=(n|0)){continue}break}}qn(j)}L=f+16|0;return l|0}function Re(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0;f=a+4|0;a:{a=i[a+4>>2];if(a){e=j[c+11|0];d=e<<24>>24<0;k=d?i[c>>2]:c;e=d?i[c+4>>2]:e;while(1){c=j[a+27|0];d=c<<24>>24<0;c=d?i[a+20>>2]:c;l=c>>>0>>0;b:{c:{d:{e:{f:{h=l?c:e;g:{if(h){g=a+16|0;d=d?i[g>>2]:g;g=Pl(k,d,h);if(!g){if(e>>>0>>0){break g}break f}if((g|0)>-1){break f}break g}if(e>>>0>=c>>>0){break e}}c=i[a>>2];if(c){break b}i[b>>2]=a;return a}c=Pl(d,k,h);if(c){break d}}if(l){break c}break a}if((c|0)>-1){break a}}f=a+4|0;c=i[a+4>>2];if(!c){break a}a=f}f=a;a=c;continue}}i[b>>2]=f;return f}i[b>>2]=a;return f}function La(a,b){var c=0;c=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=c;c=i[b+60>>2];i[a+56>>2]=i[b+56>>2];i[a+60>>2]=c;c=i[b+52>>2];i[a+48>>2]=i[b+48>>2];i[a+52>>2]=c;c=i[b+44>>2];i[a+40>>2]=i[b+40>>2];i[a+44>>2]=c;c=i[b+36>>2];i[a+32>>2]=i[b+32>>2];i[a+36>>2]=c;c=i[b+28>>2];i[a+24>>2]=i[b+24>>2];i[a+28>>2]=c;c=i[b+20>>2];i[a+16>>2]=i[b+16>>2];i[a+20>>2]=c;c=i[b+12>>2];i[a+8>>2]=i[b+8>>2];i[a+12>>2]=c;i[a+88>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;g[a+77|0]=0;g[a+78|0]=0;g[a+79|0]=0;g[a+80|0]=0;g[a+81|0]=0;g[a+82|0]=0;g[a+83|0]=0;g[a+84|0]=0;return a}function Kh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;g=a+4|0;a=i[a+4>>2];a:{b:{if(!a){break b}d=j[b+11|0];c=d<<24>>24<0;k=c?i[b>>2]:b;e=c?i[b+4>>2]:d;c=g;while(1){b=j[a+27|0];l=b<<24>>24<0;h=l?i[a+20>>2]:b;f=e>>>0>>0;d=f?e:h;c:{if(d){b=a+16|0;b=Pl(l?i[b>>2]:b,k,d);if(b){break c}}b=h>>>0>>0?-1:f}c=(b|0)<0?c:a;a=i[(b>>>29&4)+a>>2];if(a){continue}break}if((c|0)==(g|0)){break b}a=j[c+27|0];f=a<<24>>24<0;d:{d=f?i[c+20>>2]:a;b=d>>>0>>0?d:e;if(b){a=c+16|0;a=Pl(k,f?i[a>>2]:a,b);if(a){break d}}if(e>>>0>>0){break b}break a}if((a|0)>-1){break a}}c=g}return c}function wa(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){d=i[a+4>>2]-e|0;f=d>>2;d=g>>>0>f>>>0?b+d|0:c;h=d-b|0;if(h){un(e,b,h)}if(g>>>0>f>>>0){b=i[a+4>>2];c=c-d|0;if((c|0)>=1){b=sn(b,d,c)+c|0}i[a+4>>2]=b;return}i[a+4>>2]=e+h;return}if(e){i[a+4>>2]=e;qn(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=Gm(e);i[a>>2]=c;i[a+4>>2]=c;i[a+8>>2]=c+e;if((f|0)>=1){c=sn(c,b,f)+f|0}i[a+4>>2]=c;return}Vm();x()}function Ue(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{d=i[b+16>>2];f=i[b+12>>2];e=i[b+20>>2];c:{if((f|0)<(e|0)?1:(f|0)<=(e|0)?l[b+8>>2]<=d>>>0:0){break c}f=j[d+i[b>>2]|0];d=d+1|0;if(d>>>0<1){e=e+1|0}i[b+16>>2]=d;i[b+20>>2]=e;d:{e:{switch(f+ -1|0){case 8:return Ye(a,b,c);case 9:return Ze(a,b,c);case 10:return _e(a,b,c);case 11:return $e(a,b,c);case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:break b;case 13:case 14:case 15:case 16:break a;case 17:break d;case 12:break e;default:break c}}return af(a,b,c)}g=bf(a,b,c)}return g}return Xe(a,b,c)}return bf(a,b,c)}function Eh(a,b,c){var d=0,e=0,f=0,h=0;a:{b:{if(!b){break b}if(k[a+38>>1]<=513){e=i[a+12>>2];b=i[a+20>>2];f=i[a+16>>2];h=f+8|0;if(h>>>0<8){b=b+1|0}if((e|0)<(b|0)?1:(e|0)<=(b|0)?l[a+8>>2]>>0:0){break a}b=f+i[a>>2]|0;d=j[b+4|0]|j[b+5|0]<<8|(j[b+6|0]<<16|j[b+7|0]<<24);i[c>>2]=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[c+4>>2]=d;c=i[a+20>>2];d=i[a+16>>2]+8|0;if(d>>>0<8){c=c+1|0}i[a+16>>2]=d;i[a+20>>2]=c;break b}if(!Fh(1,c,a)){break a}}g[a+36|0]=1;i[a+32>>2]=0;b=i[a+16>>2];c=b+i[a>>2]|0;i[a+24>>2]=c;d=a;a=i[a+8>>2];i[d+28>>2]=c+(a-b|0);d=1}return d}function el(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0;h=L-16|0;L=h;l=a;j=Re(b,h+12|0,c);c=i[j>>2];if(c){b=0}else{c=Gm(40);e=d+8|0;i[c+24>>2]=i[e>>2];f=i[d+4>>2];i[c+16>>2]=i[d>>2];i[c+20>>2]=f;i[d>>2]=0;i[d+4>>2]=0;i[e>>2]=0;i[c+36>>2]=0;i[c+28>>2]=0;i[c+32>>2]=0;f=i[d+16>>2];e=i[d+12>>2];k=f-e|0;if(k){e=c+28|0;tb(e,k);f=i[d+16>>2];m=i[e>>2];e=i[d+12>>2]}sn(m,e,f-e|0);i[c+8>>2]=i[h+12>>2];i[c>>2]=0;i[c+4>>2]=0;i[j>>2]=c;e=i[i[b>>2]>>2];d=c;a:{if(!e){break a}i[b>>2]=e;d=i[j>>2]}Oe(i[b+4>>2],d);i[b+8>>2]=i[b+8>>2]+1;b=1}g[l+4|0]=b;i[a>>2]=c;L=h+16|0}function di(a,b){var c=0,d=0;c=L-96|0;L=c;tn(c+16|0,0,76);i[c+92>>2]=-1;i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;a:{if(ei(c+16|0,a,c)){a=i[b>>2];if(a){i[b+4>>2]=a;qn(a);i[b+8>>2]=0;i[b>>2]=0;i[b+4>>2]=0}i[b>>2]=i[c>>2];i[b+4>>2]=i[c+4>>2];i[b+8>>2]=i[c+8>>2];i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=i[c+84>>2];break a}a=i[c>>2];if(!a){break a}i[c+4>>2]=a;qn(a)}a=i[c+72>>2];if(a){qn(a)}a=i[c+48>>2];if(a){i[c+52>>2]=a;qn(a)}a=i[c+36>>2];if(a){i[c+40>>2]=a;qn(a)}a=i[c+24>>2];if(a){i[c+28>>2]=a;qn(a)}a=i[c+20>>2];i[c+20>>2]=0;if(a){Sf(c+16|4,a)}L=c+96|0;return d}function Vl(a,b,c){var d=0,e=0,f=0;d=L-208|0;L=d;i[d+204>>2]=c;c=0;tn(d+160|0,0,40);i[d+200>>2]=i[d+204>>2];a:{if((Wl(0,b,d+200|0,d+80|0,d+160|0)|0)<0){break a}c=i[a+76>>2]>=0?1:c;e=i[a>>2];if(g[a+74|0]<=0){i[a>>2]=e&-33}f=e&32;b:{if(i[a+48>>2]){Wl(a,b,d+200|0,d+80|0,d+160|0);break b}i[a+48>>2]=80;i[a+16>>2]=d+80;i[a+28>>2]=d;i[a+20>>2]=d;e=i[a+44>>2];i[a+44>>2]=d;Wl(a,b,d+200|0,d+80|0,d+160|0);if(!e){break b}O[i[a+36>>2]](a,0,0)|0;i[a+48>>2]=0;i[a+44>>2]=e;i[a+28>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0}i[a>>2]=f|i[a>>2];if(!c){break a}}L=d+208|0}function Ik(a,b,c){var d=0,e=0,f=0,g=0;a:{if((b|c)>=0){b:{if(b>>>0>1431655765){break b}d=o(b,3);Jk(a,d,14280);Jk(a+12|0,d,14284);d=i[a+24>>2];c:{if(i[a+32>>2]-d>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break a}e=i[a+28>>2];f=c<<2;c=Gm(f);f=c+f|0;e=e-d|0;g=e+c|0;if((e|0)>=1){sn(c,d,e)}i[a+32>>2]=f;i[a+28>>2]=g;i[a+24>>2]=c;if(!d){break c}qn(d)}i[a+80>>2]=0;i[a+84>>2]=0;d=a+76|0;c=i[d>>2];i[d>>2]=0;if(c){qn(c)}i[a+68>>2]=0;i[a+72>>2]=0;c=a- -64|0;a=i[c>>2];i[c>>2]=0;if(!a){break b}qn(a)}a=b>>>0<1431655766}else{a=0}return a}Da(14288);x()}function hg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0;f=L-16|0;L=f;a:{if(!Wf(a,b)){break a}g=i[b+12>>2];c=i[b+20>>2];h=i[b+16>>2];e=h+4|0;if(e>>>0<4){c=c+1|0}d=e;e=c;if((g|0)<(c|0)?1:(g|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=h+i[b>>2]|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=d;i[b+20>>2]=e;if((c|0)<0){break a}d=i[a+152>>2];if((c|0)>=(d|0)){break a}i[f+12>>2]=0;e=i[a+156>>2];c=i[a+160>>2]-e>>2;b:{if(d>>>0>c>>>0){Va(a+156|0,d-c|0,f+12|0);break b}if(d>>>0>=c>>>0){break b}i[a+160>>2]=e+(d<<2)}k=Ce(a+168|0,b)}L=f+16|0;return k}function vl(a,b){var c=0,d=0,e=0,f=0;a:{if((b|0)<0){break a}c=i[a+24>>2];d=i[a+28>>2];if((c|0)==(d|0)){break a}while(1){e=c+4|0;if(i[i[c>>2]+24>>2]==(b|0)){b:{if((d|0)!=(e|0)){while(1){b=i[e>>2];i[e>>2]=0;f=i[c>>2];i[c>>2]=b;if(f){sh(f+12|0,i[f+16>>2]);th(f,i[f+4>>2]);qn(f)}c=c+4|0;e=e+4|0;if((d|0)!=(e|0)){continue}break}d=i[a+28>>2];if((d|0)==(c|0)){break b}}while(1){d=d+ -4|0;b=i[d>>2];i[d>>2]=0;if(b){sh(b+12|0,i[b+16>>2]);th(b,i[b+4>>2]);qn(b)}if((c|0)!=(d|0)){continue}break}}i[a+28>>2]=c;return}c=e;if((d|0)!=(c|0)){continue}break}}}function hb(a){var b=0,c=0,d=0,e=0;d=i[a+132>>2];if(d){b=i[a+136>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;qn(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+132>>2]}i[a+136>>2]=d;qn(c)}d=i[a+120>>2];if(d){b=i[a+124>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;qn(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+120>>2]}i[a+124>>2]=d;qn(c)}b=i[a+108>>2];if(b){i[a+112>>2]=b;qn(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;qn(b)}ye(a+76|0);ye(a+56|0);ye(a+36|0);ye(a+16|0)}function en(a){var b=0,c=0,d=0,e=0;b=L+ -64|0;L=b;d=i[a>>2];c=i[d+ -4>>2];d=i[d+ -8>>2];i[b+20>>2]=0;i[b+16>>2]=16520;i[b+12>>2]=a;i[b+8>>2]=16568;tn(b+24|0,0,39);a=a+d|0;a:{if(cn(c,16568,0)){i[b+56>>2]=1;O[i[i[c>>2]+20>>2]](c,b+8|0,a,a,1,0);e=i[b+32>>2]==1?a:0;break a}O[i[i[c>>2]+24>>2]](c,b+8|0,a,1,0);b:{switch(i[b+44>>2]){case 0:e=i[b+48>>2]==1?i[b+36>>2]==1?i[b+40>>2]==1?i[b+28>>2]:0:0:0;break a;case 1:break b;default:break a}}if(i[b+32>>2]!=1){if(i[b+48>>2]|i[b+36>>2]!=1|i[b+40>>2]!=1){break a}}e=i[b+24>>2]}L=b- -64|0;return e}function df(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>3>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<3)+c|0;while(1){i[c>>2]=0;i[c+4>>2]=0;c=c+8|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{f=i[a>>2];h=c-f|0;g=h>>3;d=g+b|0;if(d>>>0<536870912){c=0;g=g<<3;e=e-f|0;j=e>>2;d=e>>3>>>0<268435455?j>>>0>>0?d:j:536870911;if(d){if(d>>>0>=536870912){break a}c=Gm(d<<3)}b=b<<3;b=tn(c+g|0,0,b)+b|0;d=(d<<3)+c|0;if((h|0)>=1){sn(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){qn(f)}return}Vm();x()}Da(11186);x()}function Nb(a){a=a|0;var b=0,c=0,d=0;i[a>>2]=1572;b=i[a+60>>2];if(b){c=i[a- -64>>2];d=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;d=i[c>>2];i[c>>2]=0;if(d){Ua(d)}if((b|0)!=(c|0)){continue}break}d=i[a+60>>2]}i[a+64>>2]=b;qn(d)}b=i[a+48>>2];if(b){i[a+52>>2]=b;qn(b)}b=i[a+36>>2];if(b){c=i[a+40>>2];d=b;b:{if((b|0)==(c|0)){break b}while(1){c=c+ -24|0;O[i[i[c>>2]>>2]](c)|0;if((b|0)!=(c|0)){continue}break}d=i[a+36>>2]}i[a+40>>2]=b;qn(d)}i[a>>2]=1360;b=i[a+16>>2];if(b){i[a+20>>2]=b;qn(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;qn(b)}return a|0}function pb(a){var b=0,c=0,d=0,e=0;d=i[a+640>>2];if(d){b=i[a+644>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;qn(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+640>>2]}i[a+644>>2]=d;qn(c)}d=i[a+628>>2];if(d){b=i[a+632>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;qn(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+628>>2]}i[a+632>>2]=d;qn(c)}b=i[a+616>>2];if(b){i[a+620>>2]=b;qn(b)}b=i[a+604>>2];if(b){i[a+608>>2]=b;qn(b)}ye(a+584|0);ye(a+564|0);ye(a+544|0)}function $k(a,b,c){var d=0,e=0,f=0;e=L-16|0;L=e;a:{b:{if(!c){break b}i[a>>2]=b;i[e+12>>2]=0;d=0;if(!Zk(1,e+12|0,b)){break a}c:{f=i[e+12>>2];if(f){b=0;while(1){if(!Zk(1,e+8|0,i[a>>2])){break b}d=Gm(28);i[d+4>>2]=0;i[d+8>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d>>2]=d+4;i[d+12>>2]=d+16;i[d+24>>2]=i[e+8>>2];if(!Yk(a,d)){break c}i[e>>2]=d;bl(c,e);d=i[e>>2];i[e>>2]=0;if(d){sh(d+12|0,i[d+16>>2]);th(d,i[d+4>>2]);qn(d)}b=b+1|0;if((f|0)!=(b|0)){continue}break}}d=Yk(a,c);break a}sh(d+12|0,i[d+16>>2]);th(d,i[d+4>>2]);qn(d)}d=0}L=e+16|0;return d}function yc(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;g=L-32|0;L=g;j=i[i[i[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((O[i[i[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}k=O[i[i[b>>2]+36>>2]](b)|0;h=O[i[i[b>>2]+44>>2]](b,d)|0;if(!(h?k:0)){i[a>>2]=0;break a}d=O[i[i[b>>2]+40>>2]](b,d)|0;if(d){b=i[b+44>>2];i[g+12>>2]=d;i[g+8>>2]=b;i[g+20>>2]=h;i[g+16>>2]=h+12;zc(a,c,j,e,g+8|0,f);if(i[a>>2]){break a}i[a>>2]=0;break b}b=i[b+44>>2];i[g+12>>2]=k;i[g+8>>2]=b;i[g+20>>2]=h;i[g+16>>2]=h+12;Ac(a,c,j,e,g+8|0,f);if(i[a>>2]){break a}i[a>>2]=0}i[a>>2]=0}L=g+32|0}function lb(a){var b=0,c=0,d=0,e=0;d=i[a+128>>2];if(d){b=i[a+132>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;qn(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+128>>2]}i[a+132>>2]=d;qn(c)}d=i[a+116>>2];if(d){b=i[a+120>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;qn(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+116>>2]}i[a+120>>2]=d;qn(c)}b=i[a+104>>2];if(b){i[a+108>>2]=b;qn(b)}b=i[a+92>>2];if(b){i[a+96>>2]=b;qn(b)}ye(a+72|0);ye(a+52|0);ye(a+32|0)}function ec(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+60>>2];a:{if(!c){break a}i[c+4>>2]=a+48;if(!(O[i[i[c>>2]+12>>2]](c)|0)){break a}b:{d=O[i[i[a>>2]+24>>2]](a)|0;if((d|0)<1){break b}c=0;while(1){c:{f=i[(O[i[i[a>>2]+28>>2]](a)|0)+4>>2];g=O[i[i[a>>2]+20>>2]](a,c)|0;e=i[a+60>>2];if(!(O[i[i[e>>2]+8>>2]](e,i[i[f+8>>2]+(g<<2)>>2])|0)){break c}c=c+1|0;if((d|0)!=(c|0)){continue}break b}break}return 0}if(!(O[i[i[a>>2]+36>>2]](a,b)|0)){break a}if(!(O[i[i[a>>2]+40>>2]](a,b)|0)){break a}h=O[i[i[a>>2]+44>>2]](a)|0}return h|0}function yl(a,b,c){var d=0,e=0,f=0;a:{if(b>>>0<=63){b=0;d=i[a+12>>2];if(d>>>0<2){break a}c=i[c>>2];a=1;while(1){b=l[c+(b<<2)>>2]>l[c+(a<<2)>>2]?a:b;a=a+1|0;if((d|0)!=(a|0)){continue}break}break a}b=i[a+580>>2];d=32-b|0;if((d|0)>=4){c=i[a+576>>2];if((c|0)==i[a+568>>2]){return 0}d=i[c>>2];e=b+4|0;i[a+580>>2]=e;b=d<>>28|0;if((e|0)!=32){break a}i[a+580>>2]=0;i[a+576>>2]=c+4;return b}c=i[a+576>>2];e=c+4|0;if((e|0)==i[a+568>>2]){return 0}f=i[c>>2];i[a+576>>2]=e;i[a+580>>2]=b+ -28;a=60-b|0;b=i[c+4>>2]>>>a|f<>>a-d}return b}function zh(a,b,c,d){var e=0,f=0,g=0;a:{if(!b){if((d|0)<0?1:(d|0)<=0?c>>>0<0:0){return 0}d=i[a>>2];b=i[a+4>>2]-d|0;if(b>>>0>>0){tb(a,c-b|0);break a}if(b>>>0<=c>>>0){break a}i[a+4>>2]=c+d;break a}if((d|0)<0?1:(d|0)<=0?c>>>0<0:0){return 0}e=c;g=i[a>>2];f=i[a+4>>2]-g|0;b:{c:{if(0>(d|0)?1:0>=(d|0)?f>>>0>=c>>>0:0){break c}if(f>>>0>>0){tb(a,e-f|0);break b}if(f>>>0<=e>>>0){break c}i[a+4>>2]=e+g}if(!e){break a}}un(i[a>>2],b,e)}b=a+24|0;c=b;d=b;a=i[b+4>>2];b=i[b>>2]+1|0;if(b>>>0<1){a=a+1|0}i[d>>2]=b;i[c+4>>2]=a;return 1}function ln(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(cn(a,i[b+8>>2],e)){kn(b,c,d);return}a:{if(cn(a,i[b>>2],e)){if(!(i[b+20>>2]!=(c|0)?i[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}i[b+32>>2]=1;return}i[b+32>>2]=d;b:{if(i[b+44>>2]==4){break b}h[b+52>>1]=0;a=i[a+8>>2];O[i[i[a>>2]+20>>2]](a,b,c,c,1,e);if(j[b+53|0]){i[b+44>>2]=3;if(!j[b+52|0]){break b}break a}i[b+44>>2]=4}i[b+20>>2]=c;i[b+40>>2]=i[b+40>>2]+1;if(i[b+36>>2]!=1|i[b+24>>2]!=2){break a}g[b+54|0]=1;return}a=i[a+8>>2];O[i[i[a>>2]+24>>2]](a,b,c,d,e)}}function Gf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=i[a+216>>2];if((c|0)!=i[a+220>>2]){while(1){a:{c=i[o(e,144)+c>>2];if((c|0)<0){break a}f=i[a+4>>2];d=i[f+8>>2];if((c|0)>=i[f+12>>2]-d>>2){break a}c=i[d+(c<<2)>>2];if((O[i[i[c>>2]+24>>2]](c)|0)<1){break a}d=0;while(1){if((O[i[i[c>>2]+20>>2]](c,d)|0)!=(b|0)){d=d+1|0;if((d|0)<(O[i[i[c>>2]+24>>2]](c)|0)){continue}break a}break}a=i[a+216>>2]+o(e,144)|0;return(j[a+100|0]?a+4|0:0)|0}e=e+1|0;c=i[a+216>>2];if(e>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}return 0}function Sc(a,b){var c=0,d=0;c=L-32|0;L=c;a:{b:{if(i[a+8>>2]<<5>>>0>=b>>>0){break b}i[c+24>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;if((b|0)<=-1){break a}b=(b+ -1>>>5|0)+1|0;d=Gm(b<<2);i[c+24>>2]=b;i[c+20>>2]=0;i[c+16>>2]=d;b=i[a>>2];i[c+12>>2]=0;i[c+8>>2]=b;d=i[a+4>>2];i[c+4>>2]=d&31;i[c>>2]=b+(d>>>3&536870908);Tc(c+16|0,c+8|0,c);b=i[a>>2];i[a>>2]=i[c+16>>2];i[c+16>>2]=b;d=i[a+4>>2];i[a+4>>2]=i[c+20>>2];i[c+20>>2]=d;d=i[a+8>>2];i[a+8>>2]=i[c+24>>2];i[c+24>>2]=d;if(!b){break b}qn(b)}L=c+32|0;return}Vm();x()}function Hf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=i[a+216>>2];if((c|0)!=i[a+220>>2]){while(1){a:{c=i[o(e,144)+c>>2];if((c|0)<0){break a}f=i[a+4>>2];d=i[f+8>>2];if((c|0)>=i[f+12>>2]-d>>2){break a}c=i[d+(c<<2)>>2];if((O[i[i[c>>2]+24>>2]](c)|0)<1){break a}d=0;while(1){if((O[i[i[c>>2]+20>>2]](c,d)|0)!=(b|0)){d=d+1|0;if((d|0)<(O[i[i[c>>2]+24>>2]](c)|0)){continue}break a}break}return(i[a+216>>2]+o(e,144)|0)+104|0}e=e+1|0;c=i[a+216>>2];if(e>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}return a+184|0}function Hb(a,b,c,d){var e=0,f=0,g=0,h=p(0),k=0,l=0,n=0;e=L-32|0;L=e;f=i[c>>2];h=m[c+4>>2];l=Mh(e+24|0);f=-1<>2];if((c|0)!=i[b>>2]){a=i[d+28>>2];while(1){g=i[c>>2];k=i[c+4>>2];h=m[l>>2];m[e+16>>2]=h*p(i[c+8>>2]-f|0);m[e+12>>2]=h*p(k-f|0);m[e+8>>2]=h*p(g-f|0);k=i[d+16>>2];g=i[k>>2];if(!j[g+84|0]){a=i[i[g+68>>2]+(a<<2)>>2]}n=a;a=i[g+40>>2];sn(i[i[g>>2]>>2]+o(n,a)|0,(e+8|0)+(i[k+4>>2]<<2)|0,a);a=i[d+28>>2]+1|0;i[d+28>>2]=a;c=c+12|0;if((c|0)!=i[b>>2]){continue}break}}L=e+32|0}function vh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=Gm(72);cb(f);a:{if((b|0)>=0){g=a+8|0;c=i[a+12>>2];h=i[a+8>>2];d=c-h>>2;b:{if((d|0)>(b|0)){break b}e=b+1|0;if(d>>>0<=b>>>0){Mf(g,e-d|0);break b}if(e>>>0>=d>>>0){break b}e=h+(e<<2)|0;if((e|0)!=(c|0)){while(1){c=c+ -4|0;d=i[c>>2];i[c>>2]=0;if(d){O[i[i[d>>2]+4>>2]](d)}if((c|0)!=(e|0)){continue}break}}i[a+12>>2]=e}c=i[g>>2]+(b<<2)|0;a=i[c>>2];i[c>>2]=f;if(!a){break a}O[i[i[a>>2]+4>>2]](a);break a}O[i[i[f>>2]+4>>2]](f)}return(b^-1)>>>31|0}function jl(a,b,c){var d=0,e=0,f=0,h=0;d=L-48|0;L=d;f=Kh(a,b);if((f|0)!=(a+4|0)){dl(a,f)}f=0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=i[c>>2];e=i[c+4>>2]-h|0;if(e){tb(d,e);h=i[c>>2];c=i[d>>2]}else{c=0}sn(c,h,e);h=Jm(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;b=i[d+4>>2];c=i[d>>2];e=b-c|0;if(e){tb(d+28|0,e);c=i[d>>2];f=i[d+28>>2];b=i[d+4>>2]}sn(f,c,b-c|0);el(d+40|0,a,h,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;qn(a)}if(g[d+27|0]<=-1){qn(i[d+16>>2])}a=i[d>>2];if(a){i[d+4>>2]=a;qn(a)}L=d+48|0}function Xb(a){var b=0,c=0,d=0,e=0,f=0;b=i[a+8>>2];a:{if(j[b+84|0]){break a}c=i[a+16>>2];if(!c|!j[c+84|0]){break a}d=i[b+72>>2];e=i[b+68>>2];g[c+84|0]=0;d=d-e>>2;f=i[c+68>>2];e=i[c+72>>2]-f>>2;b:{if(d>>>0>e>>>0){Yb(c+68|0,d-e|0,1968);b=i[a+8>>2];break b}if(d>>>0>=e>>>0){break b}i[c+72>>2]=f+(d<<2)}if(j[b+84|0]){break a}c=i[b+68>>2];b=i[b+72>>2]-c|0;if(!b){break a}d=b>>2;e=i[i[a+16>>2]+68>>2];b=0;while(1){f=b<<2;i[f+e>>2]=i[c+f>>2];b=b+1|0;if(b>>>0>>0){continue}break}}return i[a+16>>2]}function ki(a,b,c){var d=0,e=0,f=0,h=0,j=0;d=L-32|0;L=d;f=g[a+24|0];e=i[3527];i[d+24>>2]=i[3526];i[d+28>>2]=e;e=i[3525];i[d+16>>2]=i[3524];i[d+20>>2]=e;a:{e=bd(a,b,f,d+16|0);if(e){i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a=0;if(f){if((f|0)<=-1){break a}b=f<<2;a=Gm(b);i[d>>2]=a;h=(f<<2)+a|0;i[d+8>>2]=h;sn(a,d+16|0,b);i[d+4>>2]=h;j=h}b=i[c>>2];if(b){i[c+4>>2]=b;qn(b);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;h=i[d+8>>2];j=i[d+4>>2];a=i[d>>2]}i[c+8>>2]=h;i[c+4>>2]=j;i[c>>2]=a}L=d+32|0;return e}Vm();x()}function vb(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;a:{b:{if(b){if(b>>>0>=357913942){break b}d=o(b,12);b=Gm(d);i[a>>2]=b;i[a+4>>2]=b;f=b+d|0;i[a+8>>2]=f;h=i[c+4>>2];while(1){i[b+8>>2]=0;i[b>>2]=0;i[b+4>>2]=0;d=h-i[c>>2]|0;if(d){e=d>>2;if(e>>>0>=1073741824){break a}d=Gm(d);i[b+4>>2]=d;i[b>>2]=d;i[b+8>>2]=d+(e<<2);e=b;j=i[c>>2];g=h-j|0;if((g|0)>=1){d=sn(d,j,g)+g|0}i[e+4>>2]=d}b=b+12|0;if((f|0)!=(b|0)){continue}break}i[a+4>>2]=f}return}Vm();x()}Vm();x()}function kl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=L-16|0;L=e;f=a+12|0;j=Kh(f,b);k=a+16|0;a:{if((j|0)!=(k|0)){break a}g=Re(f,e+12|0,b);d=i[g>>2];if(!d){d=Gm(32);Jm(d+16|0,b);i[d+28>>2]=0;i[d+8>>2]=i[e+12>>2];i[d>>2]=0;i[d+4>>2]=0;i[g>>2]=d;b=i[i[f>>2]>>2];h=d;b:{if(!b){break b}i[f>>2]=b;h=i[g>>2]}b=h;Oe(i[a+16>>2],b);a=a+20|0;i[a>>2]=i[a>>2]+1}b=i[c>>2];i[c>>2]=0;c=d+28|0;a=i[c>>2];i[c>>2]=b;if(!a){break a}sh(a+12|0,i[a+16>>2]);th(a,i[a+4>>2]);qn(a)}L=e+16|0;return(j|0)==(k|0)}function Mk(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=14760;b=i[a+68>>2];if(b){i[a+72>>2]=b;qn(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;qn(b)}b=i[a+44>>2];if(b){i[a+48>>2]=b;qn(b)}b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;qn(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){Ua(b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;qn(b)}b=i[a+4>>2];i[a+4>>2]=0;if(b){nh(b)}return a|0}function ag(a){var b=0,c=0,d=0,e=0;c=1;d=i[a+140>>2];a:{if((d|0)<1){break a}b=d<<4;c=Gm((d|0)!=(d&268435455)?-1:b|4);i[c>>2]=d;c=c+4|0;d=c+b|0;b=c;while(1){b=Be(b)+16|0;if((d|0)!=(b|0)){continue}break}e=i[a+136>>2];i[a+136>>2]=c;if(e){d=e+ -4|0;c=i[d>>2];if(c){b=e+(c<<4)|0;while(1){b=b+ -16|0;if((e|0)!=(b|0)){continue}break}}qn(d)}c=1;if(i[a+140>>2]<1){break a}b=0;while(1){c=Ce(i[a+136>>2]+(b<<4)|0,a);if(!c){break a}b=b+1|0;if((b|0)>2]){continue}break}}return c}function xa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0;d=L-16|0;L=d;e=i[a+4>>2];a:{if((e|0)==-1){break a}c=e;f=d;b:{h=i[b+20>>2];if((h|0)<0?1:(h|0)<=0?l[b+16>>2]<=0:0){ha(b,i[b+4>>2],i[a+8>>2],i[a+12>>2]);c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<1:0){break b}c=i[a+4>>2]}g[f+15|0]=c;break a}c=a+20|0;ha(b,i[b+4>>2],c,c+4|0);c=i[b+20>>2];f=i[b+16>>2];g[d+15|0]=i[a+4>>2];if((c|0)>0?1:(c|0)>=0?f>>>0>0:0){break a}ha(b,i[b+4>>2],d+15|0,d+16|0)}L=d+16|0;return(e|0)!=-1|0}function Rh(a,b,c){var d=0,e=0,f=0,h=0;d=L-32|0;L=d;e=An(b);if(e>>>0<4294967280){a:{b:{if(e>>>0>=11){h=e+16&-16;f=Gm(h);i[d+24>>2]=h|-2147483648;i[d+16>>2]=f;i[d+20>>2]=e;break b}g[d+27|0]=e;f=d+16|0;if(!e){break a}}sn(f,b,e)}g[e+f|0]=0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;gl(a,d+16|0,d);a=i[c>>2];if(a){i[c+4>>2]=a;qn(a);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c>>2]=i[d>>2];i[c+4>>2]=i[d+4>>2];i[c+8>>2]=i[d+8>>2];if(g[d+27|0]<=-1){qn(i[d+16>>2])}L=d+32|0;return}Im();x()}function gi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a>>2];a=i[e+4>>2];d=i[e+8>>2];if(a>>>0>>0){i[a>>2]=i[b>>2];i[e+4>>2]=a+4;return}a:{f=i[e>>2];g=a-f|0;a=g>>2;c=a+1|0;if(c>>>0<1073741824){h=a<<2;d=d-f|0;a=d>>1;c=d>>2>>>0<536870911?a>>>0>>0?c:a:1073741823;a=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}a=Gm(c<<2)}d=h+a|0;i[d>>2]=i[b>>2];b=a+(c<<2)|0;c=d+4|0;if((g|0)>=1){sn(a,f,g)}i[e+8>>2]=b;i[e+4>>2]=c;i[e>>2]=a;if(f){qn(f)}return}Vm();x()}Da(14112);x()}function Mb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a=i[a+4>>2];if(a){c=j[b+11|0];d=c<<24>>24<0;g=d?i[b>>2]:b;b=d?i[b+4>>2]:c;while(1){c=j[a+27|0];d=c<<24>>24<0;c=d?i[a+20>>2]:c;h=c>>>0>>0;a:{b:{f=h?c:b;c:{if(f){e=a+16|0;d=d?i[e>>2]:e;e=Pl(g,d,f);d:{if(!e){if(b>>>0>=c>>>0){break d}break a}if((e|0)<=-1){break a}}c=Pl(d,g,f);if(!c){break c}if((c|0)<=-1){break b}return 1}if(b>>>0>>0){break a}}if(h){break b}return 1}a=a+4|0}a=i[a>>2];if(a){continue}break}}return 0}function jh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=tn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=Gm(d<<2)}b=b<<2;b=tn(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){sn(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){qn(f)}return}Vm();x()}Da(13352);x()}function Bk(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=tn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=Gm(d<<2)}b=b<<2;b=tn(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){sn(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){qn(f)}return}Vm();x()}Da(14288);x()}function Ae(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=tn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=Gm(d<<2)}b=b<<2;b=tn(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){sn(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){qn(f)}return}Vm();x()}Da(10988);x()}function pa(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=tn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=Gm(d<<2)}b=b<<2;b=tn(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){sn(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){qn(f)}return}Vm();x()}Da(1244);x()}function Ta(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=tn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=Gm(d<<2)}b=b<<2;b=tn(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){sn(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){qn(f)}return}Vm();x()}Da(1496);x()}function ai(a,b){var c=0,d=0,e=0,f=0;c=L-32|0;L=c;d=An(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){f=d+16&-16;e=Gm(f);i[c+24>>2]=f|-2147483648;i[c+16>>2]=e;i[c+20>>2]=d;break b}g[c+27|0]=d;e=c+16|0;if(!d){break a}}sn(e,b,d)}g[d+e|0]=0;g[c+4|0]=0;i[c>>2]=1701667182;g[c+11|0]=4;d=i[a+4>>2];b=-1;c:{if(!d){break c}d=al(d,c,c+16|0);b=-1;if(!d){break c}b=ql(a,i[d+24>>2])}if(g[c+11|0]<=-1){qn(i[c>>2])}if(g[c+27|0]<=-1){qn(i[c+16>>2])}L=c+32|0;return b}Im();x()}function bg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+4>>2];e=i[a+8>>2];if((c|0)!=(e|0)){i[c>>2]=i[b>>2];i[a+4>>2]=c+4;return}a:{f=i[a>>2];g=c-f|0;c=g>>2;d=c+1|0;if(d>>>0<1073741824){h=c<<2;e=e-f|0;c=e>>1;d=e>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=Gm(d<<2)}e=h+c|0;i[e>>2]=i[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){sn(c,f,g)}i[a+8>>2]=b;i[a+4>>2]=d;i[a>>2]=c;if(f){qn(f)}return}Vm();x()}Da(12220);x()}function Kg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+4>>2];a=i[e+4>>2];d=i[e+8>>2];if((a|0)!=(d|0)){i[a>>2]=b;i[e+4>>2]=a+4;return}a:{f=i[e>>2];g=a-f|0;a=g>>2;c=a+1|0;if(c>>>0<1073741824){h=a<<2;d=d-f|0;a=d>>1;c=d>>2>>>0<536870911?a>>>0>>0?c:a:1073741823;a=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}a=Gm(c<<2)}d=h+a|0;i[d>>2]=b;b=a+(c<<2)|0;c=d+4|0;if((g|0)>=1){sn(a,f,g)}i[e+8>>2]=b;i[e+4>>2]=c;i[e>>2]=a;if(f){qn(f)}return}Vm();x()}Da(12220);x()}function Hk(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+4>>2];e=i[a+8>>2];if((c|0)!=(e|0)){i[c>>2]=i[b>>2];i[a+4>>2]=c+4;return}a:{f=i[a>>2];g=c-f|0;c=g>>2;d=c+1|0;if(d>>>0<1073741824){h=c<<2;e=e-f|0;c=e>>1;d=e>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=Gm(d<<2)}e=h+c|0;i[e>>2]=i[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){sn(c,f,g)}i[a+8>>2]=b;i[a+4>>2]=d;i[a>>2]=c;if(f){qn(f)}return}Vm();x()}Da(14288);x()}function jc(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=2048;b=i[a+60>>2];i[a+60>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;qn(b)}d=i[a+36>>2];if(d){b=d;c=i[a+40>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+36>>2]}b=e;i[a+40>>2]=d;qn(b)}i[a>>2]=1360;b=i[a+16>>2];if(b){i[a+20>>2]=b;qn(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;qn(b)}return a|0}function Tl(a,b){a:{if(a){if(b>>>0<=127){break a}b:{if(!i[i[4224]>>2]){if((b&-128)==57216){break a}break b}if(b>>>0<=2047){g[a+1|0]=b&63|128;g[a|0]=b>>>6|192;return 2}if(!((b&-8192)!=57344?b>>>0>=55296:0)){g[a+2|0]=b&63|128;g[a|0]=b>>>12|224;g[a+1|0]=b>>>6&63|128;return 3}if(b+ -65536>>>0<=1048575){g[a+3|0]=b&63|128;g[a|0]=b>>>18|240;g[a+2|0]=b>>>6&63|128;g[a+1|0]=b>>>12&63|128;return 4}}i[4312]=25;a=-1}else{a=1}return a}g[a|0]=b;return 1}function kc(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=2048;b=i[a+60>>2];i[a+60>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;qn(b)}d=i[a+36>>2];if(d){b=d;c=i[a+40>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+36>>2]}b=e;i[a+40>>2]=d;qn(b)}i[a>>2]=1360;b=i[a+16>>2];if(b){i[a+20>>2]=b;qn(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;qn(b)}qn(a)}function zk(a,b){var c=0,d=0,e=0;d=L-16|0;L=d;e=Gm(88);c=e;i[c>>2]=0;i[c+4>>2]=0;i[c+64>>2]=0;i[c+68>>2]=0;i[c+56>>2]=0;i[c+48>>2]=0;i[c+52>>2]=0;i[c+40>>2]=0;i[c+44>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+72>>2]=0;i[c+76>>2]=0;i[c+80>>2]=0;i[c+84>>2]=0;i[c+60>>2]=c;i[d+8>>2]=c;a:{if(Ak(c,b)){i[a>>2]=e;i[d+8>>2]=0;break a}i[a>>2]=0;i[d+8>>2]=0;Sf(d+8|0,e)}L=d+16|0}function wg(a){var b=0,c=0,d=0,e=0;b=i[a+196>>2];if(b){i[a+200>>2]=b;qn(b)}b=i[a+184>>2];if(b){c=i[a+188>>2];d=b;a:{if((b|0)==(c|0)){break a}while(1){d=c+ -12|0;e=i[d>>2];if(e){i[c+ -8>>2]=e;qn(e)}c=d;if((c|0)!=(b|0)){continue}break}d=i[a+184>>2]}i[a+188>>2]=b;qn(d)}b=i[a+156>>2];if(b){i[a+160>>2]=b;qn(b)}b=i[a+136>>2];i[a+136>>2]=0;if(b){c=b+ -4|0;a=i[c>>2];if(a){a=b+(a<<4)|0;while(1){a=a+ -16|0;if((b|0)!=(a|0)){continue}break}}qn(c)}}function ef(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0;a:{if(a>>>0>10){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];h=e;if((d|0)<(h|0)?1:(d|0)<=(h|0)?l[c+8>>2]<=f>>>0:0){break a}j=g[f+i[c>>2]|0];d=f+1|0;if(d>>>0<1){e=e+1|0}i[c+16>>2]=d;i[c+20>>2]=e;h=b;f=b;d=j;b:{if((d|0)<=-1){if(!ef(a+1|0,b,c)){break a}a=b;c=i[b+4>>2];b=i[b>>2];e=c<<7|b>>>25;b=b<<7;i[a>>2]=b;i[a+4>>2]=e;a=d&127|b;break b}e=0;a=d&255}i[f>>2]=a;i[h+4>>2]=e;k=1}return k}function Fh(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0;a:{if(a>>>0>10){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];h=e;if((d|0)<(h|0)?1:(d|0)<=(h|0)?l[c+8>>2]<=f>>>0:0){break a}j=g[f+i[c>>2]|0];d=f+1|0;if(d>>>0<1){e=e+1|0}i[c+16>>2]=d;i[c+20>>2]=e;h=b;f=b;d=j;b:{if((d|0)<=-1){if(!Fh(a+1|0,b,c)){break a}a=b;c=i[b+4>>2];b=i[b>>2];e=c<<7|b>>>25;b=b<<7;i[a>>2]=b;i[a+4>>2]=e;a=d&127|b;break b}e=0;a=d&255}i[f>>2]=a;i[h+4>>2]=e;k=1}return k}function ri(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>1>>>0>=b>>>0){if(b){b=b<<1;c=tn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];g=c-f|0;h=g>>1;d=h+b|0;if((d|0)>-1){c=0;e=e-f|0;d=e>>1>>>0<1073741823?e>>>0>>0?d:e:2147483647;if(d){if((d|0)<=-1){break a}c=Gm(d<<1)}b=b<<1;b=tn((h<<1)+c|0,0,b)+b|0;d=(d<<1)+c|0;if((g|0)>=1){sn(c,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){qn(f)}return}Vm();x()}Da(14112);x()}function Ia(a,b){var c=0;g[a+24|0]=j[b+24|0];i[a+28>>2]=i[b+28>>2];g[a+32|0]=j[b+32|0];c=i[b+44>>2];i[a+40>>2]=i[b+40>>2];i[a+44>>2]=c;c=i[b+52>>2];i[a+48>>2]=i[b+48>>2];i[a+52>>2]=c;i[a+56>>2]=i[b+56>>2];c=i[b+12>>2];i[a+8>>2]=i[b+8>>2];i[a+12>>2]=c;c=i[b+20>>2];i[a+16>>2]=i[b+16>>2];i[a+20>>2]=c;i[a+60>>2]=i[b+60>>2];b=i[b>>2];if(!b){i[a>>2]=0;return 1}a=i[a>>2];if(!a){return 0}c=a;a=i[b>>2];zh(c,a,i[b+4>>2]-a|0,0);return 1}function Gk(a,b,c){var d=0,e=0,f=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;a:{b:{if(!b){break b}if((b|0)<=-1){break a}e=b+ -1>>>5|0;f=e+1|0;d=Gm(f<<2);i[a+8>>2]=f;i[a>>2]=d;f=j[c|0];i[a+4>>2]=b;i[(b>>>0<33?d:d+(e<<2)|0)>>2]=0;c=b>>>5|0;e=c<<2;if(f){d=tn(d,255,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;i[c>>2]=i[c>>2]|-1>>>32-b;return a}d=tn(d,0,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;i[c>>2]=i[c>>2]&(-1>>>32-b^-1)}return a}Vm();x()}function Zb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if((O[i[i[b>>2]+20>>2]](b)|0)>=1){while(1){c=nl(i[i[a+4>>2]+4>>2],O[i[i[b>>2]+24>>2]](b,d)|0);if((c|0)==-1){return 0}a:{e=i[a+4>>2];if(j[e+36|0]<=1){if(O[i[i[b>>2]+28>>2]](b,i[i[i[e+4>>2]+8>>2]+(c<<2)>>2])|0){break a}return 0}c=rh(e,c);if(!c){return 0}if(O[i[i[b>>2]+28>>2]](b,c)|0){break a}return 0}d=d+1|0;if((d|0)<(O[i[i[b>>2]+20>>2]](b)|0)){continue}break}}return 1}function Sl(a,b){var c=0;c=(b|0)!=0;a:{b:{c:{if(!b|!(a&3)){break c}while(1){if(!j[a|0]){break b}a=a+1|0;b=b+ -1|0;c=(b|0)!=0;if(!b){break c}if(a&3){continue}break}}if(!c){break a}}d:{if(!j[a|0]|b>>>0<4){break d}while(1){c=i[a>>2];if((c^-1)&c+ -16843009&-2139062144){break d}a=a+4|0;b=b+ -4|0;if(b>>>0>3){continue}break}}if(!b){break a}while(1){if(!j[a|0]){return a}a=a+1|0;b=b+ -1|0;if(b){continue}break}}return 0}function $g(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=hm(b)}d=i[a+4>>2];if(c>>>0>d>>>0){ah(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Mn(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=hm(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}ah(a,b)}}function ih(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a:{b=i[a+8>>2];b:{if((b|0)<0){break b}c=i[a+4>>2];e=i[c>>2];d=i[c+4>>2]-e>>2;c:{if(b>>>0>d>>>0){jh(c,b-d|0);f=i[a+8>>2];break c}f=b;if(b>>>0>=d>>>0){break c}i[c+4>>2]=e+(b<<2);f=b}d=f;if((d|0)<1){break b}a=i[a+4>>2];c=i[a>>2];e=i[a+4>>2]-c>>2;a=0;while(1){if((a|0)==(e|0)){break a}i[c+(a<<2)>>2]=a;a=a+1|0;if((a|0)<(d|0)){continue}break}}return(b^-1)>>>31|0}Wm();x()}function Jh(a,b){var c=0,d=0,e=0,f=0;d=L-16|0;L=d;Tm(d);e=Re(a,d+12|0,b);c=i[e>>2];if(!c){c=Gm(40);Jm(c+16|0,b);i[c+36>>2]=0;i[c+28>>2]=0;i[c+32>>2]=0;i[c+8>>2]=i[d+12>>2];i[c>>2]=0;i[c+4>>2]=0;i[e>>2]=c;b=i[i[a>>2]>>2];f=c;a:{if(!b){break a}i[a>>2]=b;f=i[e>>2]}b=f;Oe(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}a=c+28|0;if(g[c+39|0]<=-1){qn(i[a>>2])}b=i[d+4>>2];i[a>>2]=i[d>>2];i[a+4>>2]=b;i[a+8>>2]=i[d+8>>2];L=d+16|0}function _f(a,b){var c=0,d=0,e=0,f=0;d=i[a+12>>2];c=i[a+16>>2]-d>>2;a:{if(c>>>0>>0){Ta(a+12|0,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+16>>2]=d+(b<<2)}b:{c=i[a>>2];c:{if(i[a+8>>2]-c>>2>>>0>=b>>>0){break c}if(b>>>0>=1073741824){break b}d=i[a+4>>2];e=b<<2;b=Gm(e);e=b+e|0;d=d-c|0;f=d+b|0;if((d|0)>=1){sn(b,c,d)}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b;if(!c){break c}qn(c)}return}Da(12220);x()}function Ab(a){Be(a);Be(a+16|0);Be(a+32|0);Be(a+48|0);Be(a- -64|0);Be(a+80|0);Be(a+96|0);Be(a+112|0);Be(a+128|0);Be(a+144|0);Be(a+160|0);Be(a+176|0);Be(a+192|0);Be(a+208|0);Be(a+224|0);Be(a+240|0);Be(a+256|0);Be(a+272|0);Be(a+288|0);Be(a+304|0);Be(a+320|0);Be(a+336|0);Be(a+352|0);Be(a+368|0);Be(a+384|0);Be(a+400|0);Be(a+416|0);Be(a+432|0);Be(a+448|0);Be(a+464|0);Be(a+480|0);Be(a+496|0)}function wn(a,b,c){var d=0,e=0,f=0,h=0;d=i[c+16>>2];a:{if(!d){if(vn(c)){break a}d=i[c+16>>2]}f=i[c+20>>2];if(d-f>>>0>>0){return O[i[c+36>>2]](c,a,b)|0}b:{if(g[c+75|0]<0){break b}e=b;while(1){d=e;if(!d){break b}e=d+ -1|0;if(j[e+a|0]!=10){continue}break}e=O[i[c+36>>2]](c,a,d)|0;if(e>>>0>>0){break a}a=a+d|0;b=b-d|0;f=i[c+20>>2];h=d}sn(f,a,b);i[c+20>>2]=i[c+20>>2]+b;e=b+h|0}return e}function Cg(a,b){var c=0,d=0,e=0;a:{if((a|0)!=(b|0)){e=a;c=i[b+4>>2];d=0;b:{if(!c){break b}c:{if(c>>>0<=i[a+8>>2]<<5>>>0){d=i[a>>2];break c}d=i[a>>2];if(d){qn(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;c=i[b+4>>2]}if((c|0)<=-1){break a}c=(c+ -1>>>5|0)+1|0;d=Gm(c<<2);i[a+8>>2]=c;i[a+4>>2]=0;i[a>>2]=d;c=i[b+4>>2]}un(d,i[b>>2],(c+ -1>>>3&536870908)+4|0);d=i[b+4>>2]}i[e+4>>2]=d}return}Vm();x()}function gl(a,b,c){var d=0,e=0,f=0;a:{b=Kh(a,b);b:{if((b|0)==(a+4|0)){break b}a=i[b+28>>2];d=i[b+32>>2];if((a|0)==(d|0)){break b}a=d-a|0;if(a&3){break b}d=a>>>2|0;e=i[c+4>>2];a=i[c>>2];f=e-a>>2;c:{if(d>>>0>f>>>0){Ta(c,d-f|0);a=i[c>>2];e=i[c+4>>2];break c}if(d>>>0>=f>>>0){break c}e=(d<<2)+a|0;i[c+4>>2]=e}if((a|0)==(e|0)){break a}c=a;a=i[b+28>>2];sn(c,a,i[b+32>>2]-a|0)}return}Wm();x()}function Nf(a,b){var c=0;c=i[b+8>>2];i[a+12>>2]=i[b+4>>2];i[a+16>>2]=c;i[a+28>>2]=i[b+20>>2];c=i[b+16>>2];i[a+20>>2]=i[b+12>>2];i[a+24>>2]=c;Cg(a+32|0,b+24|0);Cg(a+44|0,b+36|0);if((a+8|0)==(b|0)){i[a+92>>2]=i[b+84>>2];return}Oa(a+56|0,i[b+48>>2],i[b+52>>2]);Oa(a+68|0,i[b+60>>2],i[b- -64>>2]);Oa(a+80|0,i[b+72>>2],i[b+76>>2]);i[a+92>>2]=i[b+84>>2];wa(a+96|0,i[b+88>>2],i[b+92>>2])}function dl(a,b){var c=0,d=0,e=0;c=i[b+4>>2];a:{if(!c){d=i[b+8>>2];if(i[d>>2]==(b|0)){break a}e=b+8|0;while(1){c=i[e>>2];e=c+8|0;d=i[c+8>>2];if((c|0)!=i[d>>2]){continue}break}break a}while(1){d=c;c=i[c>>2];if(c){continue}break}}if(i[a>>2]==(b|0)){i[a>>2]=d}i[a+8>>2]=i[a+8>>2]+ -1;ll(i[a+4>>2],b);a=i[b+28>>2];if(a){i[b+32>>2]=a;qn(a)}if(g[b+27|0]<=-1){qn(i[b+16>>2])}qn(b)}function zf(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11360;b=i[a+48>>2];i[a+48>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}i[a>>2]=13492;b=i[a+20>>2];if(b){i[a+24>>2]=b;qn(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;qn(b)}return a|0}function Af(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11360;b=i[a+48>>2];i[a+48>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}i[a>>2]=13492;b=i[a+20>>2];if(b){i[a+24>>2]=b;qn(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;qn(b)}qn(a)}function uh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0;d=i[a+32>>2];c=d;e=i[c+8>>2];f=i[c+12>>2];b=i[c+20>>2];h=e;e=i[c+16>>2];c=e+4|0;if(c>>>0<4){b=b+1|0}g=c;c=b;a:{if((f|0)<(b|0)?1:(f|0)<=(b|0)?h>>>0>>0:0){break a}b=e+i[d>>2]|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[d+16>>2]=g;i[d+20>>2]=c;if((b|0)<0){break a}i[i[a+4>>2]+80>>2]=b;k=1}return k|0}function Sh(a,b){var c=0,d=0,e=0,f=0,h=0;c=L-32|0;L=c;i[c+24>>2]=0;i[c+28>>2]=0;d=An(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=Gm(e);i[c+16>>2]=e|-2147483648;i[c+8>>2]=f;i[c+12>>2]=d;e=c+8|0;break b}g[c+19|0]=d;e=c+8|0;f=e;if(!d){break a}}sn(f,b,d)}g[d+f|0]=0;hl(a,c+8|0,c+24|0);h=n[c+24>>3];if(g[e+11|0]<=-1){qn(i[c+8>>2])}L=c+32|0;return h}Im();x()}function Nm(a,b,c,d,e,f,h){var j=0,k=0,l=0;j=L-16|0;L=j;if((b^-1)+ -17>>>0>=c>>>0){k=vm(a);a:{if(2147483623>b>>>0){i[j+8>>2]=b<<1;i[j+12>>2]=b+c;c=Am(i[om(j+12|0,j+8|0)>>2]);break a}c=-18}l=c+1|0;c=Bm(l);if(f){nm(c,h,f)}d=d-e|0;h=d;if(d){nm(c+f|0,e+k|0,h)}if((b|0)!=10){qn(k)}Cm(a,c);Dm(a,l);b=a;a=d+f|0;ym(b,a);g[j+7|0]=0;xm(a+c|0,j+7|0);L=j+16|0;return}Im();x()}function Th(a,b,c){var d=0,e=0,f=0,h=0;d=L-16|0;L=d;e=An(c);if(e>>>0<4294967280){a:{b:{if(e>>>0>=11){h=e+16&-16;f=Gm(h);i[d+8>>2]=h|-2147483648;i[d>>2]=f;i[d+4>>2]=e;break b}g[d+11|0]=e;f=d;if(!e){break a}}sn(f,c,e)}g[e+f|0]=0;a=a+16|0;c=0;c:{if(!il(b,d,a)){break c}c=i[a>>2];if(g[a+11|0]<=-1){break c}c=a}if(g[d+11|0]<=-1){qn(i[d>>2])}L=d+16|0;return c}Im();x()}function tc(a,b,c){var d=0,e=0,f=0,h=0;d=L-80|0;L=d;e=Ga(d+16|0);f=i[i[a+8>>2]+56>>2];h=c<<24>>24;c=o(Hh(5),c);Ha(e,f,h,5,0,c,c>>31);c=Gm(96);e=La(c,e);g[c+84|0]=1;i[c+72>>2]=i[c+68>>2];Ma(e,b);i[d>>2]=0;i[d+8>>2]=0;b=i[a+16>>2];i[a+16>>2]=c;a:{if(!b){i[d>>2]=0;break a}Ua(b);a=i[d>>2];i[d>>2]=0;if(!a){break a}Ua(a)}a=i[d+8>>2];i[d+8>>2]=0;if(a){Ua(a)}L=d+80|0}function wh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=i[a+32>>2];b=d;f=i[b+12>>2];g=i[b+8>>2];h=f;c=i[b+20>>2];b=i[b+16>>2];e=b+4|0;if(e>>>0<4){c=c+1|0}if((h|0)>(c|0)?1:(h|0)>=(c|0)?g>>>0>=e>>>0:0){b=b+i[d>>2]|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[d+16>>2]=e;i[d+20>>2]=c;i[i[a+4>>2]+80>>2]=b}return((f|0)>(c|0)?1:(f|0)>=(c|0)?g>>>0>=e>>>0:0)|0}function tb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>>0>=b>>>0){if(b){c=tn(c,0,b)+b|0}i[a+4>>2]=c;return}f=i[a>>2];g=c-f|0;d=g+b|0;if((d|0)>-1){c=0;e=e-f|0;h=e<<1;d=e>>>0<1073741823?h>>>0>>0?d:h:2147483647;if(d){c=Gm(d)}d=c+d|0;b=tn(c+g|0,0,b)+b|0;if((g|0)>=1){sn(c,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){qn(f)}return}Vm();x()}function Fe(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;if(!b){i[c>>2]=0;return}g=0-j[a+12|0]&255;e=i[a+8>>2];while(1){h=d<<1;a:{if(e>>>0>4095){break a}d=i[a+4>>2];if((d|0)<1){break a}d=d+ -1|0;i[a+4>>2]=d;e=j[d+i[a>>2]|0]|e<<8;i[a+8>>2]=e}f=e&255;d=f>>>0>>0;k=f;f=o(e>>>8|0,g);e=d?k+f|0:(e-g|0)-f|0;i[a+8>>2]=e;d=d|h;b=b+ -1|0;if(b){continue}break}i[c>>2]=d}function fi(a,b){var c=0,d=0,e=0,f=0;c=L-16|0;L=c;i[a+68>>2]=0;i[a+72>>2]=0;i[a>>2]=b;Vk(c+8|0,b);d=i[c+8>>2];i[c+8>>2]=0;e=i[a+4>>2];i[a+4>>2]=d;a:{if(!e){i[c+8>>2]=0;break a}f=a+4|0;Sf(f,e);d=i[c+8>>2];i[c+8>>2]=0;if(d){Sf(c+8|0,d)}d=i[f>>2]}if(d){e=i[b+100>>2];b=i[b+96>>2];g[c+7|0]=0;Lf(a+56|0,(e-b|0)/12|0,c+7|0)}L=c+16|0;return(d|0)!=0}function jn(a,b,c,d){g[a+53|0]=1;a:{if(i[a+4>>2]!=(c|0)){break a}g[a+52|0]=1;c=i[a+16>>2];if(!c){i[a+36>>2]=1;i[a+24>>2]=d;i[a+16>>2]=b;if((d|0)!=1|i[a+48>>2]!=1){break a}g[a+54|0]=1;return}if((b|0)==(c|0)){c=i[a+24>>2];if((c|0)==2){i[a+24>>2]=d;c=d}if(i[a+48>>2]!=1|(c|0)!=1){break a}g[a+54|0]=1;return}g[a+54|0]=1;i[a+36>>2]=i[a+36>>2]+1}}function dn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=L+ -64|0;L=d;e=1;a:{if(cn(a,b,0)){break a}e=0;if(!b){break a}b=en(b);e=0;if(!b){break a}i[d+20>>2]=-1;i[d+16>>2]=a;i[d+12>>2]=0;i[d+8>>2]=b;tn(d+24|0,0,39);i[d+56>>2]=1;O[i[i[b>>2]+28>>2]](b,d+8|0,i[c>>2],1);a=i[d+32>>2];if((a|0)==1){i[c>>2]=i[d+24>>2]}e=(a|0)==1}a=e;L=d- -64|0;return a|0}function ii(a,b,c){var d=0,e=0,f=0,g=0;a:{if(l[a+80>>2]>65535){break a}f=i[a+96>>2];d=i[a+100>>2]-f|0;a=(d|0)/12|0;e=o(a,6);g=(e|0)==(b|0);if(!d|(b|0)!=(e|0)){break a}g=1;e=a>>>0>1?a:1;a=0;while(1){b=o(a,6)+c|0;d=o(a,12)+f|0;h[b>>1]=i[d>>2];h[b+2>>1]=i[d+4>>2];h[b+4>>1]=i[d+8>>2];a=a+1|0;if((e|0)!=(a|0)){continue}break}}return g}function Qh(a,b){var c=0,d=0,e=0,f=0;c=L-16|0;L=c;i[c+12>>2]=0;d=An(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=Gm(e);i[c+8>>2]=e|-2147483648;i[c>>2]=f;i[c+4>>2]=d;e=c;break b}g[c+11|0]=d;e=c;f=c;if(!d){break a}}sn(f,b,d)}g[d+f|0]=0;fl(a,c,c+12|0);a=i[c+12>>2];if(g[e+11|0]<=-1){qn(i[c>>2])}L=c+16|0;return a}Im();x()}function Of(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=L-16|0;L=d;i[a+4>>2]=b;b=i[b+64>>2];e=i[b>>2];b=i[b+4>>2];g[d+15|0]=0;Lf(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=i[a+4>>2];e=i[b+56>>2];b=i[b+52>>2];g[d+14|0]=0;Lf(a+36|0,e-b>>2,d+14|0);b=i[c+12>>2];i[a+16>>2]=i[c+8>>2];i[a+20>>2]=b;b=i[c+4>>2];i[a+8>>2]=i[c>>2];i[a+12>>2]=b;L=d+16|0}function An(a){var b=0,c=0,d=0;a:{b:{b=a;if(!(b&3)){break b}if(!j[a|0]){return 0}while(1){b=b+1|0;if(!(b&3)){break b}if(j[b|0]){continue}break}break a}while(1){c=b;b=b+4|0;d=i[c>>2];if(!((d^-1)&d+ -16843009&-2139062144)){continue}break}if(!(d&255)){return c-a|0}while(1){d=j[c+1|0];b=c+1|0;c=b;if(d){continue}break}}return b-a|0}function qc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=L-48|0;L=e;a:{if((d|0)!=1){i[a>>2]=0;break a}d=i[b+4>>2];b=i[b+12>>2];i[e+40>>2]=0;f=e+32|0;i[f>>2]=0;i[f+4>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;rc(e,c,b,d,e+8|0);b=i[f>>2];if(b){i[e+36>>2]=b;qn(b)}i[a>>2]=i[e>>2]}L=e+48|0}function ch(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!ch(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function cf(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!cf(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function Zk(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Zk(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function Sa(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Sa(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function Rf(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Rf(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function Pc(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Pc(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function Gb(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Gb(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function De(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!De(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function gc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=O[i[i[a>>2]+24>>2]](a)|0;c=1;a:{if((e|0)<1){break a}d=i[i[a+36>>2]>>2];f=a+48|0;c=0;if(!(O[i[i[d>>2]+20>>2]](d,f,b)|0)){break a}d=1;while(1){c=d;if((e|0)!=(c|0)){d=c+1|0;g=i[i[a+36>>2]+(c<<2)>>2];if(O[i[i[g>>2]+20>>2]](g,f,b)|0){continue}}break}c=(c|0)>=(e|0)}return c|0}function fc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=O[i[i[a>>2]+24>>2]](a)|0;c=1;a:{if((e|0)<1){break a}d=i[i[a+36>>2]>>2];f=a+48|0;c=0;if(!(O[i[i[d>>2]+16>>2]](d,f,b)|0)){break a}d=1;while(1){c=d;if((e|0)!=(c|0)){d=c+1|0;g=i[i[a+36>>2]+(c<<2)>>2];if(O[i[i[g>>2]+16>>2]](g,f,b)|0){continue}}break}c=(c|0)>=(e|0)}return c|0}function Se(a,b,c,d){var e=0,f=0,g=0,h=0;if(!a){return 1}e=i[c+16>>2];g=i[c+12>>2];f=i[c+20>>2];a:{if((g|0)<(f|0)?1:(g|0)<=(f|0)?l[c+8>>2]<=e>>>0:0){break a}g=j[e+i[c>>2]|0];e=e+1|0;if(e>>>0<1){f=f+1|0}i[c+16>>2]=e;i[c+20>>2]=f;b:{switch(g|0){case 0:return Te(a,b,c,d);case 1:break b;default:break a}}h=Ue(a,c,d)}return h}function mn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(cn(a,i[b+8>>2],e)){kn(b,c,d);return}a:{if(!cn(a,i[b>>2],e)){break a}if(!(i[b+20>>2]!=(c|0)?i[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}i[b+32>>2]=1;return}i[b+20>>2]=c;i[b+32>>2]=d;i[b+40>>2]=i[b+40>>2]+1;if(!(i[b+36>>2]!=1|i[b+24>>2]!=2)){g[b+54|0]=1}i[b+44>>2]=4}}function Rk(a){i[a>>2]=0;i[a+4>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;g[a+24|0]=1;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+88>>2]=0;i[a+92>>2]=0;i[a+68>>2]=a}function fm(a){var b=0,c=0,d=0,e=0,f=0;while(1){b=a;a=b+1|0;c=g[b|0];if((c|0)==32|c+ -9>>>0<5){continue}break}a:{b:{c:{c=g[b|0];switch(c+ -43|0){case 0:break b;case 2:break c;default:break a}}e=1}c=g[a|0];b=a;f=e}if(Rl(c)){while(1){d=(o(d,10)-g[b|0]|0)+48|0;a=g[b+1|0];b=b+1|0;if(Rl(a)){continue}break}}return f?d:0-d|0}function Bg(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=L-16|0;L=d;i[a+4>>2]=b;e=i[b>>2];b=i[b+4>>2];g[d+15|0]=0;Lf(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=i[a+4>>2];e=i[b+28>>2];b=i[b+24>>2];g[d+14|0]=0;Lf(a+36|0,e-b>>2,d+14|0);b=i[c+12>>2];i[a+16>>2]=i[c+8>>2];i[a+20>>2]=b;b=i[c+4>>2];i[a+8>>2]=i[c>>2];i[a+12>>2]=b;L=d+16|0}function yk(a){var b=0;i[a>>2]=0;i[a+4>>2]=0;i[a+56>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+32>>2]=0;i[a+36>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;b=a- -64|0;i[b>>2]=0;i[b+4>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+60>>2]=a}function nh(a){var b=0,c=0,d=0,e=0;if(a){d=i[a+24>>2];if(d){b=d;c=i[a+28>>2];e=b;a:{if((c|0)==(b|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){sh(b+12|0,i[b+16>>2]);th(b,i[b+4>>2]);qn(b)}if((c|0)!=(d|0)){continue}break}e=i[a+24>>2]}b=e;i[a+28>>2]=d;qn(b)}sh(a+12|0,i[a+16>>2]);th(a,i[a+4>>2]);qn(a)}}function ci(a,b,c){var d=0,e=0,f=0;d=L-16|0;L=d;e=i[a+96>>2];i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a=Gm(12);i[d>>2]=a;i[d+4>>2]=a;f=a+12|0;i[d+8>>2]=f;e=sn(a,e+o(b,12)|0,12)+12|0;i[d+4>>2]=e;b=i[c>>2];if(b){i[c+4>>2]=b;qn(b);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c+8>>2]=f;i[c+4>>2]=e;i[c>>2]=a;L=d+16|0;return 1}function Ph(a,b){var c=0,d=0,e=0,f=0;c=L-16|0;L=c;d=An(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=Gm(e);i[c+8>>2]=e|-2147483648;i[c>>2]=f;i[c+4>>2]=d;e=c;break b}g[c+11|0]=d;e=c;f=c;if(!d){break a}}sn(f,b,d)}g[d+f|0]=0;a=Mb(a,c);if(g[e+11|0]<=-1){qn(i[c>>2])}L=c+16|0;return(a|0)!=0}Im();x()}function uf(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=13492;b=i[a+20>>2];if(b){i[a+24>>2]=b;qn(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;qn(b)}return a|0}function Ok(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=L-16|0;L=d;e=i[c>>2];i[c>>2]=0;i[d+8>>2]=e;sl(a,b,d+8|0);c=i[d+8>>2];i[d+8>>2]=0;if(c){Ua(c)}e=i[a+84>>2];c=i[a+88>>2]-e>>2;a:{if((c|0)>(b|0)){break a}b=b+1|0;if(b>>>0>c>>>0){Pk(a+84|0,b-c|0);break a}if(b>>>0>=c>>>0){break a}i[a+88>>2]=e+(b<<2)}L=d+16|0}function ia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;h=i[c+8>>2];f=i[c+16>>2];g=i[c+12>>2];d=g;e=i[c+20>>2];if((d|0)>(e|0)?1:(d|0)>=(e|0)?h>>>0>f>>>0:0){b=j[f+i[c>>2]|0];d=e;k=f+1|0;if(k>>>0<1){d=d+1|0}i[c+16>>2]=k;i[c+20>>2]=d;i[a+4>>2]=b}return((g|0)>(e|0)?1:(g|0)>=(e|0)?h>>>0>f>>>0:0)|0}function Rm(a,b,c,d,e){var f=0,g=0,h=0;f=L-16|0;L=f;if(-17-b>>>0>=c>>>0){g=vm(a);a:{if(2147483623>b>>>0){i[f+8>>2]=b<<1;i[f+12>>2]=b+c;c=Am(i[om(f+12|0,f+8|0)>>2]);break a}c=-18}h=c+1|0;c=Bm(h);if(e){nm(c,g,e)}d=d-e|0;if(d){nm(c+e|0,e+g|0,d)}if((b|0)!=10){qn(g)}Cm(a,c);Dm(a,h);L=f+16|0;return}Im();x()}function gh(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=13492;b=i[a+20>>2];if(b){i[a+24>>2]=b;qn(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;qn(b)}qn(a)}function am(a,b,c){var d=0,e=0,f=0;a:{if((b|0)==1&a>>>0<0|b>>>0<1){d=a;break a}while(1){d=Ln(a,b,10,0);e=N;f=e;e=Jn(d,e,10,0);c=c+ -1|0;g[c|0]=a-e|48;e=b>>>0>9;a=d;b=f;if(e){continue}break}}if(d){while(1){c=c+ -1|0;a=(d>>>0)/10|0;g[c|0]=d-o(a,10)|48;b=d>>>0>9;d=a;if(b){continue}break}}return c}function Eg(a){a=a|0;var b=0;i[a+8>>2]=12528;i[a>>2]=12316;b=i[a+96>>2];if(b){i[a+100>>2]=b;qn(b)}b=i[a+80>>2];if(b){i[a+84>>2]=b;qn(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;qn(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;qn(b)}i[a+8>>2]=12764;b=i[a+44>>2];if(b){qn(b)}b=i[a+32>>2];if(b){qn(b)}return a|0}function Fa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,h=0,j=0;e=L+ -64|0;L=e;f=O[i[i[b>>2]+44>>2]](b,c)|0;b=O[i[i[b>>2]+40>>2]](b,c)|0;h=Ga(e);j=i[c+56>>2];c=b;b=o(Hh(b),f);Ha(h,j,f<<24>>24,c,0,b,b>>31);b=Gm(96);c=La(b,h);i[a>>2]=b;Ma(c,d);g[b+84|0]=1;i[b+72>>2]=i[b+68>>2];L=e- -64|0}function Fg(a){a=a|0;var b=0;i[a+8>>2]=12528;i[a>>2]=12316;b=i[a+96>>2];if(b){i[a+100>>2]=b;qn(b)}b=i[a+80>>2];if(b){i[a+84>>2]=b;qn(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;qn(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;qn(b)}i[a+8>>2]=12764;b=i[a+44>>2];if(b){qn(b)}b=i[a+32>>2];if(b){qn(b)}qn(a)}function Ma(a,b){var c=0,d=0,e=0;a:{if(i[a+64>>2]){break a}d=Gm(32);yh(d);c=i[a+64>>2];i[a+64>>2]=d;if(!c){break a}d=i[c>>2];if(d){i[c+4>>2]=d;qn(d)}qn(c)}c=Hh(i[a+28>>2]);c=o(c,g[a+24|0]);d=c;c=c>>31;e=zh(i[a+64>>2],0,Jn(d,c,b,0),N);if(e){Ja(a,i[a+64>>2],d,c);i[a+80>>2]=b}return e}function ji(a,b,c){var d=0,e=0,f=0,g=0,h=0;g=i[a+96>>2];e=i[a+100>>2]-g|0;a=(e|0)/12|0;if(!(!e|(b|0)!=(e|0))){h=a>>>0>1?a:1;a=0;while(1){d=o(a,12);f=d+c|0;d=d+g|0;i[f>>2]=i[d>>2];i[f+4>>2]=i[d+4>>2];i[f+8>>2]=i[d+8>>2];a=a+1|0;if((h|0)!=(a|0)){continue}break}}return(b|0)==(e|0)}function Fm(a,b,c){var d=0,e=0,f=0,h=0;f=L-16|0;L=f;e=c-b|0;if(e>>>0<=4294967279){a:{if(e>>>0<=10){zm(a,e);d=a;break a}h=Am(e)+1|0;d=Bm(h);Cm(a,d);Dm(a,h);ym(a,e)}while(1){if((b|0)!=(c|0)){xm(d,b);d=d+1|0;b=b+1|0;continue}break}g[f+15|0]=0;xm(d,f+15|0);L=f+16|0;return}Im();x()}function Gi(a,b){var c=0,d=0;c=i[a+4>>2];if(!c){return 0}b=i[i[i[a+8>>2]+(b<<2)>>2]+60>>2];if((b|0)<0){return 0}a=i[c+24>>2];c=i[c+28>>2];if((a|0)==(c|0)){return 0}a:{while(1){d=i[a>>2];if((b|0)==i[d+24>>2]){break a}a=a+4|0;if((c|0)!=(a|0)){continue}break}return 0}return d}function rm(){var a=0,b=0,c=0;a=L-16|0;L=a;a:{if(F(a+12|0,a+8|0)|0){break a}b=pn((i[a+12>>2]<<2)+4|0);i[4331]=b;if(!b){break a}b:{b=pn(i[a+8>>2]);if(b){c=i[4331];if(c){break b}}i[4331]=0;break a}i[(i[a+12>>2]<<2)+c>>2]=0;if(!(G(i[4331],b|0)|0)){break a}i[4331]=0}L=a+16|0}function Dg(a){a=a|0;var b=0;i[a>>2]=12528;b=i[a+88>>2];if(b){i[a+92>>2]=b;qn(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;qn(b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;qn(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;qn(b)}i[a>>2]=12764;b=i[a+36>>2];if(b){qn(b)}b=i[a+24>>2];if(b){qn(b)}return a|0}function Ej(a){a=a|0;var b=0,c=0,d=0,e=0;if(a){if(g[a+27|0]<=-1){qn(i[a+16>>2])}c=i[a>>2];if(c){b=c;d=i[a+4>>2];e=b;a:{if((d|0)==(b|0)){break a}while(1){b=d+ -12|0;if(g[d+ -1|0]<=-1){qn(i[b>>2])}d=b;if((b|0)!=(c|0)){continue}break}e=i[a>>2]}b=e;i[a+4>>2]=c;qn(b)}qn(a)}}function Lg(a){a=a|0;var b=0;i[a>>2]=12528;b=i[a+88>>2];if(b){i[a+92>>2]=b;qn(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;qn(b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;qn(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;qn(b)}i[a>>2]=12764;b=i[a+36>>2];if(b){qn(b)}b=i[a+24>>2];if(b){qn(b)}qn(a)}function ic(a,b,c){a=a|0;b=b|0;c=c|0;b=0;a:{b:{switch(c|0){case 0:b=Gm(20);Sb(b);break a;case 1:b=Gm(24);mc(b);break a;case 2:b=Gm(48);oe(b);break a;case 3:b=Gm(32);mc(b);i[b+28>>2]=-1;i[b+24>>2]=1032;i[b>>2]=6844;break;default:break b}}i[a>>2]=b;return}i[a>>2]=b}function Ee(a){var b=0,c=0,d=0,e=0,f=0;d=j[a+12|0];c=i[a+8>>2];a:{if(c>>>0>4095){break a}b=i[a+4>>2];if((b|0)<1){break a}b=b+ -1|0;i[a+4>>2]=b;c=j[b+i[a>>2]|0]|c<<8;i[a+8>>2]=c}d=0-d&255;b=o(d,c>>>8|0);e=c&255;f=e>>>0>>0;i[a+8>>2]=f?b+e|0:(c-d|0)-b|0;return f}function Ne(a,b,c,d){var e=0;e=L-16|0;L=e;c=Qe(a,b,e+12|0,e+8|0,c);if(!i[c>>2]){b=Gm(40);Jm(b+16|0,d);Jm(b+28|0,d+12|0);i[b+8>>2]=i[e+12>>2];i[b>>2]=0;i[b+4>>2]=0;i[c>>2]=b;d=i[i[a>>2]>>2];if(d){i[a>>2]=d;b=i[c>>2]}Oe(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}L=e+16|0}function Tf(a){var b=0;b=i[a+84>>2];if(b){i[a+88>>2]=b;qn(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;qn(b)}b=i[a+52>>2];if(b){i[a+56>>2]=b;qn(b)}b=i[a+40>>2];if(b){i[a+44>>2]=b;qn(b)}b=i[a+28>>2];if(b){i[a+32>>2]=b;qn(b)}b=i[a+12>>2];if(b){qn(b)}a=i[a>>2];if(a){qn(a)}}function Sf(a,b){if(b){a=i[b+76>>2];if(a){i[b+80>>2]=a;qn(a)}a=i[b- -64>>2];if(a){i[b+68>>2]=a;qn(a)}a=i[b+48>>2];if(a){i[b+52>>2]=a;qn(a)}a=i[b+24>>2];if(a){i[b+28>>2]=a;qn(a)}a=i[b+12>>2];if(a){i[b+16>>2]=a;qn(a)}a=i[b>>2];if(a){i[b+4>>2]=a;qn(a)}qn(b)}}function Hn(a,b,c,d){var e=0,f=0,g=0,h=0;e=b;f=e>>31;e=e>>31;a=a^e;g=a-e|0;h=(b^f)-((a>>>0>>0)+f|0)|0;e=d;f=e>>31;e=e>>31;a=c^e;e=Ln(g,h,a-e|0,(d^f)-((a>>>0>>0)+f|0)|0);b=b^d;c=b>>31;a=b>>31;b=e^a;d=b-a|0;N=(c^N)-((b>>>0>>0)+c|0)|0;return d}function lm(a,b,c){var d=0,e=0,f=0,g=0;d=L-16|0;L=d;b=b-a>>2;while(1){if(b){i[d+12>>2]=a;e=d+12|0;f=e;g=i[e>>2];e=b>>>1|0;i[f>>2]=g+(e<<2);if(mm(i[d+12>>2],c)){a=i[d+12>>2]+4|0;i[d+12>>2]=a;b=(e^-1)+b|0}else{b=e}continue}break}L=d+16|0;return a}function hl(a,b,c){var d=0;a:{d=a+4|0;a=Kh(a,b);if((d|0)==(a|0)){break a}b=i[a+32>>2];a=i[a+28>>2];if((b-a|0)!=8){break a}b=j[a+4|0]|j[a+5|0]<<8|(j[a+6|0]<<16|j[a+7|0]<<24);i[c>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24);i[c+4>>2]=b}}function Ua(a){a=a|0;var b=0,c=0;if(a){b=i[a+88>>2];i[a+88>>2]=0;if(b){c=i[b+8>>2];if(c){i[b+12>>2]=c;qn(c)}qn(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;qn(b)}b=i[a+64>>2];i[a+64>>2]=0;if(b){c=i[b>>2];if(c){i[b+4>>2]=c;qn(c)}qn(b)}qn(a)}}function ve(a){a=a|0;var b=0;i[a+24>>2]=1140;i[a>>2]=10864;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}i[a>>2]=2264;b=i[a+20>>2];i[a+20>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}i[a>>2]=1884;b=i[a+16>>2];i[a+16>>2]=0;if(b){Ua(b)}return a|0}function rl(a,b){var c=0,d=0,e=0,f=0;c=L-16|0;L=c;d=i[a+12>>2];e=i[a+8>>2];f=i[b>>2];i[b>>2]=0;i[c+8>>2]=f;O[i[i[a>>2]+8>>2]](a,d-e>>2,c+8|0);b=i[c+8>>2];i[c+8>>2]=0;if(b){Ua(b)}L=c+16|0;return(i[a+12>>2]-i[a+8>>2]>>2)+ -1|0}function Gn(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=o(e,f);g=c&65535;h=a&65535;i=o(g,h);f=(i>>>16|0)+o(f,g)|0;e=(f&65535)+o(e,h)|0;a=(o(b,c)+j|0)+o(a,d)+(f>>>16)+(e>>>16)|0;b=i&65535|e<<16;N=a;return b}function pl(a,b){var c=0,d=0,e=0;c=i[a+8>>2];a=i[a+12>>2];a:{if((c|0)==(a|0)){break a}a=a-c>>2;e=a>>>0>1?a:1;a=0;while(1){d=i[(a<<2)+c>>2];if(i[d+60>>2]==(b|0)){break a}a=a+1|0;if((e|0)!=(a|0)){continue}break}d=0}return d}function we(a){a=a|0;var b=0;i[a+24>>2]=1140;i[a>>2]=10864;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}i[a>>2]=2264;b=i[a+20>>2];i[a+20>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}i[a>>2]=1884;b=i[a+16>>2];i[a+16>>2]=0;if(b){Ua(b)}qn(a)}function Bh(a){h[a+38>>1]=0;i[a>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;g[a+29|0]=0;g[a+30|0]=0;g[a+31|0]=0;g[a+32|0]=0;g[a+33|0]=0;g[a+34|0]=0;g[a+35|0]=0;g[a+36|0]=0;return a}function ga(a,b){a=a|0;b=b|0;var c=0,d=0;c=L-16|0;L=c;a=i[a+4>>2];a:{if((a|0)==-1){break a}g[c+15|0]=a;d=i[b+20>>2];if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break a}ha(b,i[b+4>>2],c+15|0,c+16|0)}L=c+16|0;return(a|0)!=-1|0}function Ah(a,b){var c=0,d=0;d=i[a>>2];c=i[a+4>>2]-d|0;a:{if(c>>>0>>0){tb(a,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+4>>2]=b+d}b=a+24|0;c=b;d=b;a=i[b+4>>2];b=i[b>>2]+1|0;if(b>>>0<1){a=a+1|0}i[d>>2]=b;i[c+4>>2]=a}function Km(a,b,c){var d=0,e=0,f=0;d=L-16|0;L=d;if(4294967279>=c>>>0){a:{if(c>>>0<=10){zm(a,c);e=a;break a}f=Am(c)+1|0;e=Bm(f);Cm(a,e);Dm(a,f);ym(a,c)}nm(e,b,c);g[d+15|0]=0;xm(c+e|0,d+15|0);L=d+16|0;return}Im();x()}function qh(a){a=a|0;var b=0,c=0,d=0;b=i[a+8>>2];d=i[a+12>>2];if((b|0)==(d|0)){return 1}while(1){a:{c=i[b>>2];c=O[i[i[c>>2]+16>>2]](c,i[a+32>>2])|0;b=b+4|0;if((d|0)==(b|0)){break a}if(c){continue}}break}return c|0}function fn(a,b,c){var d=0;d=i[a+16>>2];if(!d){i[a+36>>2]=1;i[a+24>>2]=c;i[a+16>>2]=b;return}a:{if((b|0)==(d|0)){if(i[a+24>>2]!=2){break a}i[a+24>>2]=c;return}g[a+54|0]=1;i[a+24>>2]=2;i[a+36>>2]=i[a+36>>2]+1}}function dm(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=L-16|0;L=e;a:{if(!gm(K(i[a+60>>2],b|0,c|0,d&255,e+8|0)|0)){b=i[e+12>>2];a=i[e+8>>2];break a}i[e+8>>2]=-1;i[e+12>>2]=-1;b=-1;a=-1}L=e+16|0;N=b;return a|0}function ba(a,b){a=a|0;b=b|0;var c=0,d=0;i[b>>2]=2;c=i[b+8>>2];d=i[b+12>>2]-c|0;if(d>>>0<=4294967291){b=b+8|0;Ah(b,d+4|0);c=i[b>>2]}b=c+d|0;a=i[a+4>>2];g[b|0]=a;g[b+1|0]=a>>>8;g[b+2|0]=a>>>16;g[b+3|0]=a>>>24}function Gh(a){var b=0,c=0,d=0,e=0,f=0,h=0;g[a+36|0]=0;d=i[a+20>>2];e=a;f=a;h=i[a+16>>2];a=i[a+32>>2]+7|0;if(a>>>0<7){b=1}c=b>>>3|0;a=b<<29|a>>>3;b=h+a|0;c=c+d|0;i[f+16>>2]=b;i[e+20>>2]=b>>>0>>0?c+1|0:c}function wd(a){a=a|0;var b=0;i[a>>2]=5396;b=i[a+96>>2];if(b){qn(b)}b=i[a+84>>2];if(b){qn(b)}b=i[a+72>>2];if(b){qn(b)}b=i[a+60>>2];if(b){qn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}return a|0}function Lc(a){a=a|0;var b=0;i[a>>2]=3380;b=i[a+96>>2];if(b){qn(b)}b=i[a+84>>2];if(b){qn(b)}b=i[a+72>>2];if(b){qn(b)}b=i[a+60>>2];if(b){qn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}return a|0}function bm(a,b,c,d,e){var f=0;f=L-256|0;L=f;if(!(e&73728|(c|0)<=(d|0))){c=c-d|0;d=c>>>0<256;tn(f,b&255,d?c:256);if(!d){while(1){Xl(a,f,256);c=c+ -256|0;if(c>>>0>255){continue}break}}Xl(a,f,c)}L=f+256|0}function Mm(a,b,c){var d=0,e=0,f=0,h=0;e=L-16|0;L=e;d=tm(a);a:{if(d>>>0>=c>>>0){f=vm(a);h=f;d=c;if(c){un(h,b,d)}g[e+15|0]=0;xm(c+f|0,e+15|0);Em(a,c);break a}f=a;a=sm(a);Nm(f,d,c-d|0,a,a,c,b)}L=e+16|0}function xd(a){a=a|0;var b=0;i[a>>2]=5396;b=i[a+96>>2];if(b){qn(b)}b=i[a+84>>2];if(b){qn(b)}b=i[a+72>>2];if(b){qn(b)}b=i[a+60>>2];if(b){qn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}qn(a)}function Mc(a){a=a|0;var b=0;i[a>>2]=3380;b=i[a+96>>2];if(b){qn(b)}b=i[a+84>>2];if(b){qn(b)}b=i[a+72>>2];if(b){qn(b)}b=i[a+60>>2];if(b){qn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}qn(a)}function Pm(a,b){var c=0,d=0,e=0,f=0;e=L-16|0;L=e;if(b){d=tm(a);c=sm(a);f=c+b|0;if(d-c>>>0>>0){Rm(a,d,f-d|0,c,c)}d=c;c=vm(a);d=d+c|0;if(b){tn(d,0,b)}Em(a,f);g[e+15|0]=0;xm(c+f|0,e+15|0)}L=e+16|0}function il(a,b,c){var d=0,e=0;d=a+4|0;a=Kh(a,b);if((d|0)==(a|0)){return 0}b=i[a+32>>2];d=i[a+28>>2];if((b|0)!=(d|0)){Om(c,b-d|0);e=Sm(c);c=i[a+28>>2];sn(e,c,i[a+32>>2]-c|0)}return(b|0)!=(d|0)}function rh(a,b){var c=0,d=0;a:{if((b|0)<0){break a}c=i[a+4>>2];if(i[c+12>>2]-i[c+8>>2]>>2<=(b|0)){break a}a=i[i[a+8>>2]+(i[i[a+20>>2]+(b<<2)>>2]<<2)>>2];d=O[i[i[a>>2]+32>>2]](a,b)|0}return d}function Ka(a){Ga(a);i[a+64>>2]=0;i[a+68>>2]=0;i[a+88>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;g[a+77|0]=0;g[a+78|0]=0;g[a+79|0]=0;g[a+80|0]=0;g[a+81|0]=0;g[a+82|0]=0;g[a+83|0]=0;g[a+84|0]=0;return a}function Ja(a,b,c,d){var e=0;i[a>>2]=b;e=i[b+20>>2];i[a+8>>2]=i[b+16>>2];i[a+12>>2]=e;e=i[b+24>>2];b=i[b+28>>2];i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=c;i[a+44>>2]=d;i[a+16>>2]=e;i[a+20>>2]=b}function vn(a){var b=0;b=j[a+74|0];g[a+74|0]=b+ -1|b;b=i[a>>2];if(b&8){i[a>>2]=b|32;return-1}i[a+4>>2]=0;i[a+8>>2]=0;b=i[a+44>>2];i[a+28>>2]=b;i[a+20>>2]=b;i[a+16>>2]=b+i[a+48>>2];return 0}function Zh(a,b,c,d){var e=0,f=0;e=L+ -64|0;L=e;f=Bh(e+8|0);Ch(f,b,c);Je(e+48|0,a,f,d);i[a+24>>2]=i[e+48>>2];Lm(a+28|0,e+48|4);a=a+24|0;if(g[e+63|0]<=-1){qn(i[e+52>>2])}L=e- -64|0;return a}function Ga(a){i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+28>>2]=9;g[a+24|0]=1;i[a+56>>2]=-1;i[a+60>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;return a}function $h(a,b,c,d){var e=0,f=0;e=L+ -64|0;L=e;f=Bh(e+8|0);Ch(f,b,c);Ke(e+48|0,a,f,d);i[a+24>>2]=i[e+48>>2];Lm(a+28|0,e+48|4);a=a+24|0;if(g[e+63|0]<=-1){qn(i[e+52>>2])}L=e- -64|0;return a}function qm(a,b){var c=0,d=0;c=j[a|0];d=j[b|0];a:{if(!c|(c|0)!=(d|0)){break a}while(1){d=j[b+1|0];c=j[a+1|0];if(!c){break a}b=b+1|0;a=a+1|0;if((c|0)==(d|0)){continue}break}}return c-d|0}function ql(a,b){var c=0,d=0;c=i[a+8>>2];a=i[a+12>>2];if((c|0)!=(a|0)){d=a-c>>2;a=0;while(1){if(i[i[(a<<2)+c>>2]+60>>2]==(b|0)){return a}a=a+1|0;if(a>>>0>>0){continue}break}}return-1}function Qk(a,b){a=a|0;b=b|0;var c=0,d=0;ul(a,b);a:{if((b|0)<0){break a}c=i[a+88>>2];d=i[a+84>>2];if(c-d>>2<=(b|0)){break a}b=d+(b<<2)|0;d=b+4|0;c=c-d|0;if(c){un(b,d,c)}i[a+88>>2]=b+c}}function sh(a,b){var c=0;if(b){sh(a,i[b>>2]);sh(a,i[b+4>>2]);c=b+28|0;a=i[c>>2];i[c>>2]=0;if(a){sh(a+12|0,i[a+16>>2]);th(a,i[a+4>>2]);qn(a)}if(g[b+27|0]<=-1){qn(i[b+16>>2])}qn(b)}}function rn(a){var b=0,c=0;b=i[4274];c=a+3&-4;a=b+c|0;a:{if(a>>>0<=b>>>0?(c|0)>=1:0){break a}if(a>>>0>Vn()<<16>>>0){if(!(H(a|0)|0)){break a}}i[4274]=a;return b}i[4312]=48;return-1}function lc(a,b){a=a|0;b=b|0;var c=0,d=0;d=i[a+16>>2];c=0;a:{if(i[a+20>>2]-d>>2<=(b|0)){break a}b=i[(b<<2)+d>>2];c=0;if((b|0)<0){break a}c=Xb(i[i[a+36>>2]+(b<<2)>>2])}return c|0}function fl(a,b,c){var d=0;a:{d=a+4|0;a=Kh(a,b);if((d|0)==(a|0)){break a}b=i[a+32>>2];a=i[a+28>>2];if((b-a|0)!=4){break a}i[c>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24)}}function Vg(a){a=a|0;var b=0;i[a+8>>2]=11956;i[a>>2]=13076;b=i[a+56>>2];if(b){i[a+60>>2]=b;qn(b)}i[a+8>>2]=12208;b=i[a+44>>2];if(b){qn(b)}b=i[a+32>>2];if(b){qn(b)}return a|0}function Pg(a){a=a|0;var b=0;i[a+8>>2]=12948;i[a>>2]=12784;b=i[a+56>>2];if(b){i[a+60>>2]=b;qn(b)}i[a+8>>2]=12764;b=i[a+44>>2];if(b){qn(b)}b=i[a+32>>2];if(b){qn(b)}return a|0}function Jm(a,b){var c=0,d=0,e=0;d=L-16|0;L=d;c=a;a:{if(!um(b)){i[c+8>>2]=i[b+8>>2];e=i[b+4>>2];i[c>>2]=i[b>>2];i[c+4>>2]=e;break a}Km(a,i[b>>2],i[b+4>>2])}L=d+16|0;return a}function Wg(a){a=a|0;var b=0;i[a+8>>2]=11956;i[a>>2]=13076;b=i[a+56>>2];if(b){i[a+60>>2]=b;qn(b)}i[a+8>>2]=12208;b=i[a+44>>2];if(b){qn(b)}b=i[a+32>>2];if(b){qn(b)}qn(a)}function Vb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=i[a+8>>2];if(g[d+24|0]<1){break a}if(!Ma(d,i[b+4>>2]-i[b>>2]>>2)){break a}return O[i[i[a>>2]+32>>2]](a,b,c)|0}return 0}function Qg(a){a=a|0;var b=0;i[a+8>>2]=12948;i[a>>2]=12784;b=i[a+56>>2];if(b){i[a+60>>2]=b;qn(b)}i[a+8>>2]=12764;b=i[a+44>>2];if(b){qn(b)}b=i[a+32>>2];if(b){qn(b)}qn(a)}function Pl(a,b,c){var d=0,e=0,f=0;a:{if(!c){break a}while(1){d=j[a|0];e=j[b|0];if((d|0)==(e|0)){b=b+1|0;a=a+1|0;c=c+ -1|0;if(c){continue}break a}break}f=d-e|0}return f}function zd(a){a=a|0;var b=0;i[a>>2]=5632;b=i[a+76>>2];if(b){qn(b)}b=i[a+68>>2];i[a+68>>2]=0;if(b){qn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}return a|0}function Vc(a){a=a|0;var b=0;i[a>>2]=3628;b=i[a+76>>2];if(b){qn(b)}b=i[a+68>>2];i[a+68>>2]=0;if(b){qn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}return a|0}function Tm(a){var b=0,c=0,d=0,e=0;b=L-32|0;L=b;c=b+8|0;d=b+32|0;e=b+21|0;a:{if((d|0)==(e|0)){break a}}Um(c,e,d);c=L-16|0;L=c;Fm(a,b+21|0,i[b+8>>2]);L=c+16|0;L=b+32|0}function Ea(a,b){var c=0;c=Gm(40);i[c>>2]=-1;yh(c+8|0);O[i[i[a>>2]+16>>2]](a,c);a=i[b+88>>2];i[b+88>>2]=c;if(a){b=i[a+8>>2];if(b){i[a+12>>2]=b;qn(b)}qn(a)}return 1}function Wc(a){a=a|0;var b=0;i[a>>2]=3628;b=i[a+76>>2];if(b){qn(b)}b=i[a+68>>2];i[a+68>>2]=0;if(b){qn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}qn(a)}function Ad(a){a=a|0;var b=0;i[a>>2]=5632;b=i[a+76>>2];if(b){qn(b)}b=i[a+68>>2];i[a+68>>2]=0;if(b){qn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}qn(a)}function aa(a,b){a=a|0;b=b|0;var c=0;b=i[b+88>>2];if(!(!b|i[b>>2]!=2)){c=a;a=i[b+8>>2];i[c+4>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24);c=1}return c|0}function vc(a){a=a|0;var b=0;i[a>>2]=2264;b=i[a+20>>2];i[a+20>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}i[a>>2]=1884;b=i[a+16>>2];i[a+16>>2]=0;if(b){Ua(b)}return a|0}function md(a){a=a|0;a:{if(!i[a- -64>>2]|!i[a+68>>2]|(!i[a+44>>2]|!i[a+48>>2])){break a}if(!i[a+52>>2]|!i[a+56>>2]){break a}return i[a+92>>2]!=-1|0}return 0}function kh(a){i[a+40>>2]=0;i[a>>2]=13492;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;h[a+36>>1]=0}function Ya(a,b){a=a|0;b=b|0;a:{if(!(O[i[i[a>>2]+36>>2]](a,b)|0)){break a}if(!(O[i[i[a>>2]+40>>2]](a,b)|0)){break a}return O[i[i[a>>2]+44>>2]](a)|0}return 0}function Qm(a,b){var c=0,d=0;c=L-16|0;L=c;a:{if(um(a)){d=i[a>>2];g[c+15|0]=0;xm(b+d|0,c+15|0);ym(a,b);break a}g[c+14|0]=0;xm(a+b|0,c+14|0);zm(a,b)}L=c+16|0}function Pf(a){a=a|0;var b=0;i[a>>2]=11956;b=i[a+48>>2];if(b){i[a+52>>2]=b;qn(b)}i[a>>2]=12208;b=i[a+36>>2];if(b){qn(b)}b=i[a+24>>2];if(b){qn(b)}return a|0}function Og(a){a=a|0;var b=0;i[a>>2]=12948;b=i[a+48>>2];if(b){i[a+52>>2]=b;qn(b)}i[a>>2]=12764;b=i[a+36>>2];if(b){qn(b)}b=i[a+24>>2];if(b){qn(b)}return a|0}function bc(a,b){var c=0;Pa(a);i[a+36>>2]=0;i[a+40>>2]=0;i[a>>2]=2048;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;c=i[b>>2];i[b>>2]=0;i[a+60>>2]=c}function Yl(a){var b=0,c=0,d=0;if(Rl(g[i[a>>2]])){while(1){b=i[a>>2];d=g[b|0];i[a>>2]=b+1;c=(o(c,10)+d|0)+ -48|0;if(Rl(g[b+1|0])){continue}break}}return c}function Wd(a){a=a|0;a:{if(!i[a+48>>2]|!i[a+52>>2]|(!i[a+28>>2]|!i[a+32>>2])){break a}if(!i[a+36>>2]|!i[a+40>>2]){break a}return i[a+76>>2]!=-1|0}return 0}function wc(a){a=a|0;var b=0;i[a>>2]=2264;b=i[a+20>>2];i[a+20>>2]=0;if(b){O[i[i[b>>2]+4>>2]](b)}i[a>>2]=1884;b=i[a+16>>2];i[a+16>>2]=0;if(b){Ua(b)}qn(a)}function Lh(a,b){var c=0;b=Kh(a,b);a:{if((b|0)==(a+4|0)){break a}a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}a=fm(a);if((a|0)==-1){break a}c=(a|0)!=0}return c}function yg(a){a=a|0;var b=0;i[a>>2]=11956;b=i[a+48>>2];if(b){i[a+52>>2]=b;qn(b)}i[a>>2]=12208;b=i[a+36>>2];if(b){qn(b)}b=i[a+24>>2];if(b){qn(b)}qn(a)}function cb(a){Pa(a);i[a+36>>2]=0;i[a+40>>2]=0;i[a>>2]=1572;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0}function Ug(a){a=a|0;var b=0;i[a>>2]=12948;b=i[a+48>>2];if(b){i[a+52>>2]=b;qn(b)}i[a>>2]=12764;b=i[a+36>>2];if(b){qn(b)}b=i[a+24>>2];if(b){qn(b)}qn(a)}function oc(a,b){a=a|0;b=b|0;var c=0,d=0;d=i[a+4>>2];a:{if(d){c=1;if(j[d+36|0]<2){break a}}c=O[i[i[a>>2]+48>>2]](a,i[b+4>>2]-i[b>>2]>>2)|0}return c|0}function Um(a,b,c){var d=0,e=0;e=a;d=c-b|0;a:{if(!((1-(l[4056]>1)|0)>(d|0)?(d|0)<=9:0)){g[b|0]=49;i[a>>2]=b+1;a=0;break a}i[a>>2]=c;a=61}i[e+4>>2]=a}function bl(a,b){var c=0,d=0;a:{d=i[b>>2];if(!d){break a}c=i[a+28>>2];if(c>>>0>2]){i[b>>2]=0;i[c>>2]=d;i[a+28>>2]=c+4;break a}cl(a+24|0,b)}}function nn(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(cn(a,i[b+8>>2],f)){jn(b,c,d,e);return}a=i[a+8>>2];O[i[i[a>>2]+20>>2]](a,b,c,d,e,f)}function re(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(j[i[a+4>>2]+36|0]>=2){b=0;if(!(O[i[i[a>>2]+52>>2]](a)|0)){break a}}b=Ea(a+24|0,i[a+16>>2])}return b|0}function _h(a,b,c){var d=0;d=L-16|0;L=d;Ke(d,a,b,c);i[a+24>>2]=i[d>>2];Lm(a+28|0,d|4);a=a+24|0;if(g[d+15|0]<=-1){qn(i[d+4>>2])}L=d+16|0;return a}function Yh(a,b,c){var d=0;d=L-16|0;L=d;Je(d,a,b,c);i[a+24>>2]=i[d>>2];Lm(a+28|0,d|4);a=a+24|0;if(g[d+15|0]<=-1){qn(i[d+4>>2])}L=d+16|0;return a}function xh(a,b,c){var d=0,e=0,f=0;if((b|0)>0){while(1){e=d<<2;f=i[e+a>>2];i[c+e>>2]=0-(f&1)^f>>>1;d=d+1|0;if((d|0)!=(b|0)){continue}break}}}function qe(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if(j[i[a+4>>2]+36|0]<=1){d=0;if(!(O[i[i[a>>2]+52>>2]](a)|0)){break a}}d=sc(a,b,c)}return d|0}function ol(a){var b=0,c=0;b=i[a+20>>2];a:{if((i[a+24>>2]-b|0)<1){break a}b=i[b>>2];if((b|0)==-1){break a}c=i[i[a+8>>2]+(b<<2)>>2]}return c}function nl(a,b){var c=0;c=-1;a:{if((b|0)==-1|(b|0)>4){break a}b=o(b,12)+a|0;a=i[b+20>>2];if((i[b+24>>2]-a|0)<1){break a}c=i[a>>2]}return c}function Ha(a,b,c,d,e,f,h){i[a>>2]=0;i[a+56>>2]=b;i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=f;i[a+44>>2]=h;g[a+32|0]=e;i[a+28>>2]=d;g[a+24|0]=c}function _l(a,b,c,d){if(a|b){while(1){c=c+ -1|0;g[c|0]=j[(a&15)+15488|0]|d;a=(b&15)<<28|a>>>4;b=b>>>4|0;if(a|b){continue}break}}return c}function Pd(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(j[i[a+4>>2]+36|0]>=2){b=0;if(!ia(a+24|0,Xb(a),c)){break a}}b=Ea(a+24|0,i[a+16>>2])}return b|0}function Od(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if(j[i[a+4>>2]+36|0]<=1){d=0;if(!ia(a+24|0,i[a+8>>2],c)){break a}}d=sc(a,b,c)}return d|0}function Lk(a){a=a|0;var b=0;i[a>>2]=14364;b=i[a+96>>2];if(b){i[a+100>>2]=b;qn(b)}b=i[a+84>>2];if(b){i[a+88>>2]=b;qn(b)}Mk(a);return a|0}function Be(a){i[a>>2]=0;i[a+4>>2]=0;g[a+5|0]=0;g[a+6|0]=0;g[a+7|0]=0;g[a+8|0]=0;g[a+9|0]=0;g[a+10|0]=0;g[a+11|0]=0;g[a+12|0]=0;return a}function Wh(a){var b=0;Ih(a);b=a+16|0;i[b>>2]=0;i[b+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+12>>2]=b;i[a+32>>2]=0;i[a+36>>2]=0;return a}function Nk(a){a=a|0;var b=0;i[a>>2]=14364;b=i[a+96>>2];if(b){i[a+100>>2]=b;qn(b)}b=i[a+84>>2];if(b){i[a+88>>2]=b;qn(b)}Mk(a);qn(a)}function Nd(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(!nc(a,b,c)){break a}a=i[a+8>>2];if(j[a+24|0]!=3){break a}return i[a+28>>2]==9|0}return 0}function th(a,b){if(b){th(a,i[b>>2]);th(a,i[b+4>>2]);a=i[b+28>>2];if(a){i[b+32>>2]=a;qn(a)}if(g[b+27|0]<=-1){qn(i[b+16>>2])}qn(b)}}function Pa(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=1360;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0}function cd(a){a=a|0;var b=0;i[a>>2]=3856;b=i[a+76>>2];if(b){qn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}return a|0}function Dd(a){a=a|0;var b=0;i[a>>2]=5848;b=i[a+76>>2];if(b){qn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}return a|0}function wj(){var a=0;a=Gm(28);i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;return a|0}function Wa(a){a=a|0;var b=0;i[a>>2]=1360;b=i[a+16>>2];if(b){i[a+20>>2]=b;qn(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;qn(b)}return a|0}function Hm(a,b){var c=0,d=0,e=0,f=0;c=An(b);d=Gm(c+13|0);i[d+8>>2]=0;i[d+4>>2]=c;i[d>>2]=c;e=a,f=sn(d+12|0,b,c+1|0),i[e>>2]=f}function Pe(a,b){if(b){Pe(a,i[b>>2]);Pe(a,i[b+4>>2]);if(g[b+39|0]<=-1){qn(i[b+28>>2])}if(g[b+27|0]<=-1){qn(i[b+16>>2])}qn(b)}}function hn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(cn(a,i[b+8>>2],0)){fn(b,c,d);return}a=i[a+8>>2];O[i[i[a>>2]+28>>2]](a,b,c,d)}function dd(a){a=a|0;var b=0;i[a>>2]=3856;b=i[a+76>>2];if(b){qn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}qn(a)}function Kk(a){ml(a);i[a+84>>2]=0;i[a+88>>2]=0;i[a>>2]=14364;i[a+92>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;i[a+104>>2]=0;return a}function Ed(a){a=a|0;var b=0;i[a>>2]=5848;b=i[a+76>>2];if(b){qn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}qn(a)}function Gm(a){var b=0;a=a?a:1;a:{while(1){b=pn(a);if(b){break a}b=i[4332];if(b){O[b|0]();continue}break}E();x()}return b}function $l(a,b,c){if(a|b){while(1){c=c+ -1|0;g[c|0]=a&7|48;a=(b&7)<<29|a>>>3;b=b>>>3|0;if(a|b){continue}break}}return c}function gj(){var a=0;a=Gm(24);i[a+4>>2]=0;i[a+8>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a>>2]=a+4;i[a+12>>2]=a+16;return a|0}function va(a,b,c,d,e){var f=0;f=b+ -1|0;if(f>>>0<=29){i[a+4>>2]=b;wa(a+8|0,c,(d<<2)+c|0);m[a+20>>2]=e}return f>>>0<30}function ra(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(i[c>>2]==i[c+4>>2]){sa(a,b,i[d+80>>2],d);return 1}ta(a,b,c,d);return 1}function Yi(){var a=0;a=Gm(24);i[a+8>>2]=0;i[a+12>>2]=0;i[a+4>>2]=-1;i[a>>2]=1140;i[a+16>>2]=0;i[a+20>>2]=0;return a|0}function oe(a){mc(a);i[a+32>>2]=0;i[a+36>>2]=0;i[a+28>>2]=-1;i[a+24>>2]=1140;i[a>>2]=10864;i[a+40>>2]=0;i[a+44>>2]=0}function pe(a,b,c){a=a|0;b=b|0;c=c|0;if(nc(a,b,c)){a=i[i[i[i[b+4>>2]+8>>2]+(c<<2)>>2]+28>>2]==9}else{a=0}return a|0}function Tb(a,b,c){a=a|0;b=b|0;c=c|0;i[a+4>>2]=b;b=i[i[i[b+4>>2]+8>>2]+(c<<2)>>2];i[a+12>>2]=c;i[a+8>>2]=b;return 1}function Yc(a){a=a|0;var b=0;if(!(!i[a+60>>2]|!i[a+44>>2]|(!i[a+48>>2]|!i[a+52>>2]))){b=i[a+56>>2]!=0}return b|0}function Xh(a){var b=0;b=L-32|0;L=b;Ie(b+8|0,a);a=i[b+24>>2];if(g[b+23|0]<=-1){qn(i[b+12>>2])}L=b+32|0;return a}function cn(a,b,c){if(!c){return i[a+4>>2]==i[b+4>>2]}if((a|0)==(b|0)){return 1}return!qm(i[a+4>>2],i[b+4>>2])}function _m(a){var b=0,c=0;a:{b=i[a>>2]+ -12|0;c=b+8|0;a=i[c>>2]+ -1|0;i[c>>2]=a;if((a|0)>-1){break a}qn(b)}}function Hd(a){a=a|0;var b=0;i[a>>2]=6072;i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}return a|0} +function Gf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;h=J-80|0;J=h;a:{b:{t=i[a+4>>2];c=i[t+32>>2];u=i[c+8>>2];m=i[c+16>>2];r=i[c+12>>2];e=r;f=i[c+20>>2];c:{if((e|0)<(f|0)?1:(e|0)<=(f|0)?u>>>0<=m>>>0:0){break c}v=i[c>>2];n=j[v+m|0];e=f;p=m+1|0;if(p>>>0<1){e=e+1|0}l=c;i[c+16>>2]=p;i[c+20>>2]=e;if((r|0)<(e|0)?1:(r|0)<=(e|0)?u>>>0<=p>>>0:0){break c}p=j[p+v|0];e=f;s=m+2|0;if(s>>>0<2){e=e+1|0}i[c+16>>2]=s;i[l+20>>2]=e;l=n<<24>>24;d:{if((l|0)>=0){q=i[a+216>>2];if((i[a+220>>2]-q|0)/144>>>0<=n>>>0){break c}q=q+o(n,144)|0;if(i[q>>2]<=-1){break d}break c}if(i[a+212>>2]>-1){break c}q=a+212|0}i[q>>2]=b;e:{f:{q=k[t+36>>1];g:{if((q<<24|q<<8&16711680)>>>16>>>0>=258){if((r|0)<(e|0)?1:(r|0)<=(e|0)?u>>>0<=s>>>0:0){break c}e=j[s+v|0];m=m+3|0;if(m>>>0<3){f=f+1|0}i[c+16>>2]=m;i[c+20>>2]=f;if(e>>>0>1){break c}if(!p){break g}if((e|0)==1){break c}break f}if(p){break f}e=0}if((l|0)<=-1){c=a+184|0}else{c=i[a+216>>2]+o(n,144)|0;g[c+100|0]=0;c=c+104|0}h:{i:{switch(e|0){case 0:Hf(h+16|0,a,c);break h;case 1:break i;default:break c}}If(h+16|0,a,c)}c=i[h+16>>2];if(!c){break c}break e}if((l|0)<0){break c}e=i[t+44>>2];f=i[a+216>>2];c=Dm(80);i[c+12>>2]=0;i[c+16>>2]=0;i[c>>2]=13076;i[c+4>>2]=0;i[c+76>>2]=0;i[c+68>>2]=e;i[c+64>>2]=0;i[c+56>>2]=0;i[c+60>>2]=0;i[c+8>>2]=11956;l=c+20|0;d=l;i[d>>2]=0;i[d+4>>2]=0;r=c+28|0;d=r;i[d>>2]=0;i[d+4>>2]=0;i[c+36>>2]=0;i[c+40>>2]=0;m=c+44|0;d=m;i[d>>2]=0;i[d+4>>2]=0;i[c+52>>2]=0;d=f+o(n,144)|0;n=d+104|0;i[c+72>>2]=n;t=h+52|0;f=t;i[f>>2]=0;i[f+4>>2]=0;u=h+44|0;f=u;i[f>>2]=0;i[f+4>>2]=0;v=h+36|0;f=v;i[f>>2]=0;i[f+4>>2]=0;f=h+28|0;i[f>>2]=0;i[f+4>>2]=0;i[h+68>>2]=0;i[h+72>>2]=0;i[h+60>>2]=0;i[h+64>>2]=0;i[h+20>>2]=0;i[h+24>>2]=0;i[h+16>>2]=11956;p=d+4|0;i[h+20>>2]=p;d=i[d+68>>2];s=i[d>>2];d=i[d+4>>2];g[h+79|0]=0;Jf(h+40|0,(d-s>>2>>>0)/3|0,h+79|0);d=i[h+20>>2];s=i[d+56>>2];d=i[d+52>>2];g[h+79|0]=0;Jf(t,s-d>>2,h+79|0);i[v>>2]=c;i[h+32>>2]=e;i[f>>2]=n;i[h+24>>2]=p;i[r>>2]=c;e=i[f+4>>2];i[l>>2]=i[f>>2];i[l+4>>2]=e;f=i[h+24>>2];i[c+12>>2]=i[h+20>>2];i[c+16>>2]=f;f=c;d=i[u>>2];if(d){e=c+32|0;j:{if(d>>>0<=i[c+40>>2]<<5>>>0){l=d+ -1>>>5|0;d=i[e>>2];break j}e=i[e>>2];if(e){nn(e);i[c+40>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;d=i[h+44>>2]}if((d|0)<=-1){break b}l=d+ -1>>>5|0;e=l+1|0;d=Dm(e<<2);i[c+40>>2]=e;i[c+36>>2]=0;i[c+32>>2]=d}rn(d,i[h+40>>2],(l<<2)+4|0);d=i[h+44>>2]}else{d=0}i[f+36>>2]=d;f=c;d=i[h+56>>2];if(d){k:{if(d>>>0<=i[c+52>>2]<<5>>>0){e=d+ -1>>>5|0;d=i[m>>2];break k}e=i[m>>2];if(e){nn(e);i[c+52>>2]=0;i[c+44>>2]=0;i[c+48>>2]=0;d=i[h+56>>2]}if((d|0)<=-1){break a}e=d+ -1>>>5|0;l=e+1|0;d=Dm(l<<2);i[c+52>>2]=l;i[c+48>>2]=0;i[c+44>>2]=d}rn(d,i[h+52>>2],(e<<2)+4|0);d=i[h+56>>2]}else{d=0}i[f+48>>2]=d;Ma(c+56|0,i[h+64>>2],i[h+68>>2]);i[h+16>>2]=11956;f=i[h+64>>2];if(f){i[h+68>>2]=f;nn(f)}i[h+16>>2]=12208;f=i[h+52>>2];if(f){nn(f)}f=i[h+40>>2];if(!f){break e}nn(f)}f=Dm(64);i[h+8>>2]=c;$b(f,h+8|0);c=i[h+8>>2];i[h+8>>2]=0;if(c){M[i[i[c>>2]+4>>2]](c)}if((b|0)>=0){a=i[a+4>>2];d=a+8|0;c=i[a+12>>2];n=i[a+8>>2];e=c-n>>2;l:{if((e|0)>(b|0)){break l}l=b+1|0;if(e>>>0<=b>>>0){Kf(d,l-e|0);break l}if(l>>>0>=e>>>0){break l}l=n+(l<<2)|0;if((l|0)!=(c|0)){while(1){c=c+ -4|0;e=i[c>>2];i[c>>2]=0;if(e){M[i[i[e>>2]+4>>2]](e)}if((c|0)!=(l|0)){continue}break}}i[a+12>>2]=l}b=i[d>>2]+(b<<2)|0;a=i[b>>2];i[b>>2]=f;d=1;if(!a){break c}M[i[i[a>>2]+4>>2]](a);break c}M[i[i[f>>2]+4>>2]](f);d=0}J=h+80|0;return d|0}Sm();x()}Sm();x()}function Ic(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){Ra(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}g=0;d=(e&1073741823)!=(e|0)?-1:e<<2;n=qn(Dm(d),0,d);s=qn(Dm(d),0,d);h=i[a+8>>2];b:{if((h|0)<1){break b}while(1){d=g<<2;f=i[d+n>>2];h=i[a+16>>2];c:{if((f|0)>(h|0)){k=i[a+32>>2];i[d+k>>2]=h;break c}k=i[a+32>>2];d=d+k|0;h=i[a+12>>2];if((f|0)<(h|0)){i[d>>2]=h;break c}i[d>>2]=f}g=g+1|0;h=i[a+8>>2];if((g|0)<(h|0)){continue}break}if((h|0)<1){break b}d=0;while(1){g=d<<2;f=g+c|0;g=i[b+g>>2]+i[g+k>>2]|0;i[f>>2]=g;d:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break d}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;h=i[a+8>>2];if((d|0)<(h|0)){continue}break}}d=i[a+56>>2];f=i[d+4>>2];t=i[d>>2];d=f-t|0;if((d|0)>=5){p=i[a+48>>2];f=t-f|0;d=((f|0)>(d|0)?f:d)>>>2|0;v=d>>>0>2?d:2;w=d>>>0>1?d:1;y=e<<2;z=i[a+52>>2];m=1;while(1){e:{f:{g:{if((m|0)!=(w|0)){f=i[(m<<2)+t>>2];u=(e|0)<1;if(!u){qn(n,0,y)}if((f|0)==-1){f=o(e,m);break f}A=i[p>>2];k=0;d=f;while(1){h:{if(i[A+(d>>>3&536870908)>>2]>>>d&1){break h}g=i[i[i[p+64>>2]+12>>2]+(d<<2)>>2];if((g|0)==-1){break h}l=i[z>>2];j=i[p+28>>2];r=i[l+(i[j+(g<<2)>>2]<<2)>>2];if((r|0)>=(m|0)){break h}q=g+1|0;q=i[l+(i[j+(((q>>>0)%3|0?q:g+ -2|0)<<2)>>2]<<2)>>2];if((q|0)>=(m|0)){break h}g=i[l+(i[j+(g+((g>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((g|0)>=(m|0)){break h}i:{if(u){break i}j=o(e,g);l=o(e,q);r=o(e,r);g=0;while(1){i[s+(g<<2)>>2]=(i[(g+j<<2)+c>>2]+i[(g+l<<2)+c>>2]|0)-i[(g+r<<2)+c>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}g=0;if((e|0)<=0){break i}while(1){j=g<<2;l=j+n|0;i[l>>2]=i[l>>2]+i[j+s>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}k=k+1|0}g=-1;d=((d>>>0)%3|0?-1:2)+d|0;j:{if((d|0)==-1|i[i[p>>2]+(d>>>3&536870908)>>2]>>>d&1){break j}d=i[i[i[p+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break j}if((d>>>0)%3|0){g=d+ -1|0;break j}g=d+2|0}d=(f|0)==(g|0)?-1:g;if((d|0)!=-1){continue}break}f=o(e,m);if(!k){break f}g=0;if((e|0)<=0){break g}while(1){d=(g<<2)+n|0;i[d>>2]=i[d>>2]/(k|0);g=g+1|0;if((g|0)!=(e|0)){continue}break}break g}Tm();x()}if((h|0)<1){break e}g=0;while(1){d=g<<2;h=i[d+n>>2];j=i[a+16>>2];k:{if((h|0)>(j|0)){k=i[a+32>>2];i[d+k>>2]=j;break k}k=i[a+32>>2];d=d+k|0;j=i[a+12>>2];if((h|0)<(j|0)){i[d>>2]=j;break k}i[d>>2]=h}g=g+1|0;h=i[a+8>>2];if((g|0)<(h|0)){continue}break}d=0;if((h|0)<1){break e}f=f<<2;j=f+c|0;l=b+f|0;while(1){g=d<<2;f=g+j|0;g=i[g+l>>2]+i[g+k>>2]|0;i[f>>2]=g;l:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break l}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;h=i[a+8>>2];if((d|0)<(h|0)){continue}break}break e}if((h|0)<1){break e}j=(o(m+ -1|0,e)<<2)+c|0;g=0;while(1){d=g<<2;h=i[d+j>>2];l=i[a+16>>2];m:{if((h|0)>(l|0)){k=i[a+32>>2];i[d+k>>2]=l;break m}k=i[a+32>>2];d=d+k|0;l=i[a+12>>2];if((h|0)<(l|0)){i[d>>2]=l;break m}i[d>>2]=h}g=g+1|0;h=i[a+8>>2];if((g|0)<(h|0)){continue}break}d=0;if((h|0)<1){break e}f=f<<2;j=f+c|0;l=b+f|0;while(1){g=d<<2;f=g+j|0;g=i[g+l>>2]+i[g+k>>2]|0;i[f>>2]=g;n:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break n}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;h=i[a+8>>2];if((d|0)<(h|0)){continue}break}}m=m+1|0;if((v|0)!=(m|0)){continue}break}}nn(s);nn(n);return 1}function yc(a,b,c,d,e,f){var g=0,h=0,j=0,k=0,l=0;a:{b:{c:{d:{e:{f:{g:{switch(b+ -1|0){case 0:b=Dm(60);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break f}c=Dm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=pn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=4748;break a;case 1:b=Dm(60);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break e}c=Dm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=pn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=5172;break a;case 3:b=Dm(112);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break d}c=Dm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=pn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=5396;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=0;i[b+92>>2]=0;i[b+96>>2]=0;i[b+100>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;break a;case 2:b=Dm(92);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];g=i[d+12>>2];h=i[d+16>>2];j=i[d+20>>2];k=i[d>>2];l=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=h;i[b+28>>2]=j;i[b+16>>2]=c;i[b+20>>2]=g;i[b+8>>2]=k;i[b+12>>2]=l;h=i[d+24>>2];g=i[d+28>>2]-h|0;if(g){d=g>>2;if(d>>>0>=1073741824){break c}c=Dm(g);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((g|0)>=1){c=pn(c,h,g)+g|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=5632;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=f;break a;case 4:b=Dm(104);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break b}c=Dm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=pn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=e+8|0;d=i[c>>2];f=i[c+4>>2];i[b+84>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=5848;i[b+52>>2]=d;i[b+56>>2]=f;d=i[e+4>>2];i[b+88>>2]=i[e>>2];i[b+92>>2]=d;d=i[c+4>>2];i[b+96>>2]=i[c>>2];i[b+100>>2]=d;break a;case 5:b=Dm(128);rd(b,c,d,e);break a;default:break g}}i[a>>2]=0;return}Sm();x()}Sm();x()}Sm();x()}Sm();x()}Sm();x()}i[a>>2]=b}function xc(a,b,c,d,e,f){var g=0,h=0,j=0,k=0,l=0;a:{b:{c:{d:{e:{f:{g:{switch(b+ -1|0){case 0:b=Dm(60);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break f}c=Dm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=pn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=2380;break a;case 1:b=Dm(60);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break e}c=Dm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=pn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=3144;break a;case 3:b=Dm(112);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break d}c=Dm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=pn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=3380;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=0;i[b+92>>2]=0;i[b+96>>2]=0;i[b+100>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;break a;case 2:b=Dm(92);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];g=i[d+12>>2];h=i[d+16>>2];j=i[d+20>>2];k=i[d>>2];l=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=h;i[b+28>>2]=j;i[b+16>>2]=c;i[b+20>>2]=g;i[b+8>>2]=k;i[b+12>>2]=l;h=i[d+24>>2];g=i[d+28>>2]-h|0;if(g){d=g>>2;if(d>>>0>=1073741824){break c}c=Dm(g);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((g|0)>=1){c=pn(c,h,g)+g|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=3628;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=f;break a;case 4:b=Dm(104);i[b+4>>2]=c;i[b>>2]=3088;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break b}c=Dm(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=pn(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=e+8|0;d=i[c>>2];f=i[c+4>>2];i[b+84>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=3856;i[b+52>>2]=d;i[b+56>>2]=f;d=i[e+4>>2];i[b+88>>2]=i[e>>2];i[b+92>>2]=d;d=i[c+4>>2];i[b+96>>2]=i[c>>2];i[b+100>>2]=d;break a;case 5:b=Dm(128);zc(b,c,d,e);break a;default:break g}}i[a>>2]=0;return}Sm();x()}Sm();x()}Sm();x()}Sm();x()}Sm();x()}i[a>>2]=b}function Id(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=J-96|0;J=f;e=i[a+16>>2];g[f+92|0]=1;i[f+88>>2]=b;i[f+84>>2]=b;i[f+80>>2]=e;d=-1;d=(b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:d;h=i[a+20>>2];e=i[h>>2];a:{b:{if(i[h+4>>2]-e>>2>>>0>d>>>0){e=i[i[a+8>>2]+(i[e+(d<<2)>>2]<<2)>>2];d=i[a+4>>2];if(!j[d+84|0]){e=i[i[d+68>>2]+(e<<2)>>2]}i[f+72>>2]=0;i[f+76>>2]=0;h=f- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;gd(d,e,g[d+24|0],f+56|0);if((b|0)!=-1){d=b+1|0;h=(d>>>0)%3|0?d:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;n=f+48|0;o=f+40|0;while(1){e=h;d=m;c:{if(!i[a+28>>2]){break c}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break c}d=b+2|0}b=-1;b=(e|0)!=-1?i[i[i[a+16>>2]>>2]+(e<<2)>>2]:b;k=i[a+20>>2];e=i[k>>2];if(i[k+4>>2]-e>>2>>>0<=b>>>0){break b}e=i[i[a+8>>2]+(i[e+(b<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}i[n>>2]=0;i[n+4>>2]=0;i[o>>2]=0;i[o+4>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;gd(b,e,g[b+24|0],f+32|0);b=-1;b=(d|0)!=-1?i[i[i[a+16>>2]>>2]+(d<<2)>>2]:b;e=i[a+20>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0<=b>>>0){break a}d=i[i[a+8>>2]+(i[d+(b<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;k=f+16|0;i[k>>2]=0;i[k+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;gd(b,d,g[b+24|0],f+8|0);d=i[f+8>>2];b=i[f+56>>2];s=d-b|0;y=i[f+60>>2];t=i[f+12>>2]-(y+(d>>>0>>0)|0)|0;z=i[f+40>>2];d=i[f+64>>2];D=z-d|0;A=i[f+68>>2];z=i[f+44>>2]-(A+(z>>>0>>0)|0)|0;B=Gn(s,t,D,z);C=l-B|0;u=u-(L+(l>>>0>>0)|0)|0;l=i[k>>2];B=l-d|0;k=i[k+4>>2]-((l>>>0>>0)+A|0)|0;l=i[f+32>>2];A=l-b|0;y=i[f+36>>2]-((l>>>0>>0)+y|0)|0;d=Gn(B,k,A,y);l=d+C|0;b=L+u|0;b=l>>>0>>0?b+1|0:b;u=b;E=p;w=s;F=t;b=i[f+48>>2];p=i[f+72>>2];d=p;t=b-d|0;s=i[f+76>>2];C=i[f+52>>2]-(s+(b>>>0>>0)|0)|0;w=Gn(w,F,t,C);d=E+w|0;b=L+q|0;b=d>>>0>>0?b+1|0:b;q=i[e>>2];w=q-p|0;e=i[e+4>>2]-((q>>>0

>>0)+s|0)|0;q=Gn(w,e,A,y);p=d-q|0;q=b-(L+(d>>>0>>0)|0)|0;b=Gn(B,k,t,C);d=r-b|0;b=v-(L+(r>>>0>>0)|0)|0;v=Gn(w,e,D,z);r=v+d|0;b=L+b|0;b=r>>>0>>0?b+1|0:b;v=b;Jd(f+80|0);b=i[f+88>>2];if((b|0)!=-1){continue}break}}d=v;b=d>>31;d=d>>31;h=b;b=v+b|0;m=d+r|0;if(m>>>0>>0){b=b+1|0}o=d^m;n=b^h;t=-1;e=2147483647;d=q;b=d>>31;d=d>>31;m=b;b=q+b|0;k=d+p|0;if(k>>>0>>0){b=b+1|0}d=d^k;b=b^m;h=b;m=d^-1;b=b^2147483647;d:{if(!i[a+28>>2]){if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break d}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}d=b;h=a;b=u;e=b>>31;o=b>>31;b=o+b|0;k=e+l|0;if(k>>>0>>0){b=b+1|0}e=e^k;m=b^o;n=e+h|0;b=n;h=m^2147483647;a=(h|0)==(d|0)&a>>>0>(e^-1)>>>0|d>>>0>h>>>0;d=a?0:0;b=a?-1:b;a=b;if((b|0)<536870912?1:(b|0)<=536870912?d>>>0<1:0){break d}b=(a|0)/536870912|0;a=b;b=b>>31;l=Hn(l,u,a,b);p=Hn(p,q,a,b);r=Hn(r,v,a,b);break d}e:{if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break e}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}m=b;n=a;d=b;h=u;b=h>>31;h=h>>31;k=b;b=u+b|0;s=h+l|0;if(s>>>0>>0){b=b+1|0}h=h^s;b=b^k;o=b;b=b^2147483647;if((b|0)==(d|0)&n>>>0>(h^-1)>>>0|d>>>0>b>>>0){break e}b=m+o|0;d=a+h|0;if(d>>>0>>0){b=b+1|0}t=d;e=b;if(!b&d>>>0<536870913|b>>>0<0){break d}}a=(e&536870911)<<3|t>>>29;b=e>>>29|0;l=Hn(l,u,a,b);p=Hn(p,q,a,b);r=Hn(r,v,a,b)}i[c+8>>2]=l;i[c+4>>2]=p;i[c>>2]=r;J=f+96|0;return}Tm();x()}Tm();x()}Tm();x()}function td(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0;i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){Ra(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}g=0;d=(e&1073741823)!=(e|0)?-1:e<<2;q=qn(Dm(d),0,d);s=qn(Dm(d),0,d);h=i[a+8>>2];b:{if((h|0)<1){break b}while(1){d=g<<2;f=i[d+q>>2];h=i[a+16>>2];c:{if((f|0)>(h|0)){j=i[a+32>>2];i[d+j>>2]=h;break c}j=i[a+32>>2];d=d+j|0;h=i[a+12>>2];if((f|0)<(h|0)){i[d>>2]=h;break c}i[d>>2]=f}g=g+1|0;h=i[a+8>>2];if((g|0)<(h|0)){continue}break}if((h|0)<1){break b}f=0;while(1){g=f<<2;d=g+c|0;g=i[b+g>>2]+i[g+j>>2]|0;i[d>>2]=g;d:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break d}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;h=i[a+8>>2];if((f|0)<(h|0)){continue}break}}d=i[a+56>>2];f=i[d+4>>2];t=i[d>>2];d=f-t|0;if((d|0)>=5){u=i[a+48>>2];f=t-f|0;d=((f|0)>(d|0)?f:d)>>>2|0;y=d>>>0>2?d:2;z=d>>>0>1?d:1;A=e<<2;B=i[a+52>>2];m=1;while(1){e:{f:{g:{if((m|0)!=(z|0)){f=i[(m<<2)+t>>2];v=(e|0)<1;if(!v){qn(q,0,A)}if((f|0)==-1){d=o(e,m);break f}l=i[u+12>>2];k=0;d=f;while(1){g=i[l+(d<<2)>>2];h:{if((g|0)==-1){break h}j=-1;r=i[B>>2];n=i[u>>2];w=i[r+(i[n+(g<<2)>>2]<<2)>>2];p=g+1|0;p=(p>>>0)%3|0?p:g+ -2|0;if((p|0)!=-1){p=i[n+(p<<2)>>2]}else{p=-1}g=g+((g>>>0)%3|0?-1:2)|0;if((g|0)!=-1){j=i[n+(g<<2)>>2]}if((w|0)>=(m|0)){break h}g=i[(p<<2)+r>>2];if((g|0)>=(m|0)){break h}j=i[r+(j<<2)>>2];if((j|0)>=(m|0)){break h}i:{if(v){break i}j=o(e,j);n=o(e,g);r=o(e,w);g=0;while(1){i[s+(g<<2)>>2]=(i[(g+j<<2)+c>>2]+i[(g+n<<2)+c>>2]|0)-i[(g+r<<2)+c>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}g=0;if((e|0)<=0){break i}while(1){j=g<<2;n=j+q|0;i[n>>2]=i[n>>2]+i[j+s>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}k=k+1|0}d=((d>>>0)%3|0?-1:2)+d|0;g=-1;j:{if((d|0)==-1){break j}d=i[l+(d<<2)>>2];g=-1;if((d|0)==-1){break j}g=d+ -1|0;if((d>>>0)%3|0){break j}g=d+2|0}d=(f|0)==(g|0)?-1:g;if((d|0)!=-1){continue}break}d=o(e,m);if(!k){break f}g=0;if((e|0)<=0){break g}while(1){f=(g<<2)+q|0;i[f>>2]=i[f>>2]/(k|0);g=g+1|0;if((g|0)!=(e|0)){continue}break}break g}Tm();x()}if((h|0)<1){break e}g=0;while(1){f=g<<2;h=i[f+q>>2];k=i[a+16>>2];k:{if((h|0)>(k|0)){j=i[a+32>>2];i[f+j>>2]=k;break k}j=i[a+32>>2];f=f+j|0;k=i[a+12>>2];if((h|0)<(k|0)){i[f>>2]=k;break k}i[f>>2]=h}g=g+1|0;h=i[a+8>>2];if((g|0)<(h|0)){continue}break}f=0;if((h|0)<1){break e}d=d<<2;k=d+c|0;l=b+d|0;while(1){g=f<<2;d=g+k|0;g=i[g+l>>2]+i[g+j>>2]|0;i[d>>2]=g;l:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break l}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;h=i[a+8>>2];if((f|0)<(h|0)){continue}break}break e}if((h|0)<1){break e}k=(o(m+ -1|0,e)<<2)+c|0;g=0;while(1){f=g<<2;h=i[f+k>>2];l=i[a+16>>2];m:{if((h|0)>(l|0)){j=i[a+32>>2];i[f+j>>2]=l;break m}j=i[a+32>>2];f=f+j|0;l=i[a+12>>2];if((h|0)<(l|0)){i[f>>2]=l;break m}i[f>>2]=h}g=g+1|0;h=i[a+8>>2];if((g|0)<(h|0)){continue}break}f=0;if((h|0)<1){break e}d=d<<2;k=d+c|0;l=b+d|0;while(1){g=f<<2;d=g+k|0;g=i[g+l>>2]+i[g+j>>2]|0;i[d>>2]=g;n:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break n}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;h=i[a+8>>2];if((f|0)<(h|0)){continue}break}}m=m+1|0;if((y|0)!=(m|0)){continue}break}}nn(s);nn(q);return 1}function od(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=J-96|0;J=f;d=i[a+16>>2];g[f+92|0]=1;i[f+88>>2]=b;i[f+84>>2]=b;i[f+80>>2]=d;h=i[a+20>>2];e=i[h>>2];a:{b:{d=i[i[d+28>>2]+(b<<2)>>2];if(i[h+4>>2]-e>>2>>>0>d>>>0){d=i[i[a+8>>2]+(i[e+(d<<2)>>2]<<2)>>2];e=i[a+4>>2];if(!j[e+84|0]){d=i[i[e+68>>2]+(d<<2)>>2]}i[f+72>>2]=0;i[f+76>>2]=0;h=f- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;gd(e,d,g[e+24|0],f+56|0);if((b|0)!=-1){d=b+1|0;h=(d>>>0)%3|0?d:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;n=f+48|0;o=f+40|0;while(1){e=h;d=m;c:{if(!i[a+28>>2]){break c}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break c}d=b+2|0}k=i[a+20>>2];b=i[k>>2];e=i[i[i[a+16>>2]+28>>2]+(e<<2)>>2];if(i[k+4>>2]-b>>2>>>0<=e>>>0){break b}e=i[i[a+8>>2]+(i[b+(e<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}i[n>>2]=0;i[n+4>>2]=0;i[o>>2]=0;i[o+4>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;gd(b,e,g[b+24|0],f+32|0);e=i[a+20>>2];b=i[e>>2];d=i[i[i[a+16>>2]+28>>2]+(d<<2)>>2];if(i[e+4>>2]-b>>2>>>0<=d>>>0){break a}e=i[i[a+8>>2]+(i[b+(d<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}k=f+24|0;d=k;i[d>>2]=0;i[d+4>>2]=0;r=f+16|0;d=r;i[d>>2]=0;i[d+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;gd(b,e,g[b+24|0],f+8|0);d=i[f+8>>2];b=i[f+56>>2];t=d-b|0;y=i[f+60>>2];e=i[f+12>>2]-(y+(d>>>0>>0)|0)|0;z=i[f+40>>2];d=i[f+64>>2];D=z-d|0;A=i[f+68>>2];z=i[f+44>>2]-(A+(z>>>0>>0)|0)|0;B=Gn(t,e,D,z);C=l-B|0;u=u-(L+(l>>>0>>0)|0)|0;l=i[r>>2];B=l-d|0;r=i[r+4>>2]-((l>>>0>>0)+A|0)|0;l=i[f+32>>2];A=l-b|0;y=i[f+36>>2]-((l>>>0>>0)+y|0)|0;d=Gn(B,r,A,y);l=d+C|0;b=L+u|0;b=l>>>0>>0?b+1|0:b;u=b;E=p;w=t;F=e;b=i[f+48>>2];p=i[f+72>>2];d=p;e=b-d|0;t=i[f+76>>2];C=i[f+52>>2]-(t+(b>>>0>>0)|0)|0;w=Gn(w,F,e,C);d=E+w|0;b=L+q|0;b=d>>>0>>0?b+1|0:b;q=i[k>>2];w=q-p|0;k=i[k+4>>2]-((q>>>0

>>0)+t|0)|0;q=Gn(w,k,A,y);p=d-q|0;q=b-(L+(d>>>0>>0)|0)|0;b=Gn(B,r,e,C);d=s-b|0;b=v-(L+(s>>>0>>0)|0)|0;v=Gn(w,k,D,z);s=v+d|0;b=L+b|0;b=s>>>0>>0?b+1|0:b;v=b;qd(f+80|0);b=i[f+88>>2];if((b|0)!=-1){continue}break}}d=v;b=d>>31;d=d>>31;h=b;b=v+b|0;m=d+s|0;if(m>>>0>>0){b=b+1|0}o=d^m;n=b^h;r=-1;e=2147483647;d=q;b=d>>31;d=d>>31;m=b;b=q+b|0;k=d+p|0;if(k>>>0>>0){b=b+1|0}d=d^k;b=b^m;h=b;m=d^-1;b=b^2147483647;d:{if(!i[a+28>>2]){if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break d}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}d=b;h=a;b=u;e=b>>31;o=b>>31;b=o+b|0;k=e+l|0;if(k>>>0>>0){b=b+1|0}e=e^k;m=b^o;n=e+h|0;b=n;h=m^2147483647;a=(h|0)==(d|0)&a>>>0>(e^-1)>>>0|d>>>0>h>>>0;d=a?0:0;b=a?-1:b;a=b;if((b|0)<536870912?1:(b|0)<=536870912?d>>>0<1:0){break d}b=(a|0)/536870912|0;a=b;b=b>>31;l=Hn(l,u,a,b);p=Hn(p,q,a,b);s=Hn(s,v,a,b);break d}e:{if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break e}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}m=b;n=a;d=b;h=u;b=h>>31;h=h>>31;k=b;b=u+b|0;t=h+l|0;if(t>>>0>>0){b=b+1|0}h=h^t;b=b^k;o=b;b=b^2147483647;if((b|0)==(d|0)&n>>>0>(h^-1)>>>0|d>>>0>b>>>0){break e}b=m+o|0;d=a+h|0;if(d>>>0>>0){b=b+1|0}r=d;e=b;if(!b&d>>>0<536870913|b>>>0<0){break d}}a=(e&536870911)<<3|r>>>29;b=e>>>29|0;l=Hn(l,u,a,b);p=Hn(p,q,a,b);s=Hn(s,v,a,b)}i[c+8>>2]=l;i[c+4>>2]=p;i[c>>2]=s;J=f+96|0;return}Tm();x()}Tm();x()}Tm();x()}function nn(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;a:{if(!a){break a}d=a+ -8|0;b=i[a+ -4>>2];a=b&-8;f=d+a|0;b:{if(b&1){break b}if(!(b&3)){break a}b=i[d>>2];d=d-b|0;if(d>>>0>>0<=255){e=i[d+8>>2];b=b>>>3|0;c=i[d+12>>2];if((c|0)==(e|0)){j=17328,k=i[4332]&Kn(b),i[j>>2]=k;break b}i[e+12>>2]=c;i[c+8>>2]=e;break b}h=i[d+24>>2];b=i[d+12>>2];c:{if((b|0)!=(d|0)){c=i[d+8>>2];i[c+12>>2]=b;i[b+8>>2]=c;break c}d:{e=d+20|0;c=i[e>>2];if(c){break d}e=d+16|0;c=i[e>>2];if(c){break d}b=0;break c}while(1){g=e;b=c;e=b+20|0;c=i[e>>2];if(c){continue}e=b+16|0;c=i[b+16>>2];if(c){continue}break}i[g>>2]=0}if(!h){break b}e=i[d+28>>2];c=(e<<2)+17632|0;e:{if(i[c>>2]==(d|0)){i[c>>2]=b;if(b){break e}j=17332,k=i[4333]&Kn(e),i[j>>2]=k;break b}i[h+(i[h+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break b}}i[b+24>>2]=h;c=i[d+16>>2];if(c){i[b+16>>2]=c;i[c+24>>2]=b}c=i[d+20>>2];if(!c){break b}i[b+20>>2]=c;i[c+24>>2]=b;break b}b=i[f+4>>2];if((b&3)!=3){break b}i[4334]=a;i[f+4>>2]=b&-2;i[d+4>>2]=a|1;i[a+d>>2]=a;return}if(f>>>0<=d>>>0){break a}b=i[f+4>>2];if(!(b&1)){break a}f:{if(!(b&2)){if((f|0)==i[4338]){i[4338]=d;a=i[4335]+a|0;i[4335]=a;i[d+4>>2]=a|1;if(i[4337]!=(d|0)){break a}i[4334]=0;i[4337]=0;return}if((f|0)==i[4337]){i[4337]=d;a=i[4334]+a|0;i[4334]=a;i[d+4>>2]=a|1;i[a+d>>2]=a;return}a=(b&-8)+a|0;g:{if(b>>>0<=255){c=i[f+8>>2];b=b>>>3|0;e=i[f+12>>2];if((c|0)==(e|0)){j=17328,k=i[4332]&Kn(b),i[j>>2]=k;break g}i[c+12>>2]=e;i[e+8>>2]=c;break g}h=i[f+24>>2];b=i[f+12>>2];h:{if((f|0)!=(b|0)){c=i[f+8>>2];i[c+12>>2]=b;i[b+8>>2]=c;break h}i:{e=f+20|0;c=i[e>>2];if(c){break i}e=f+16|0;c=i[e>>2];if(c){break i}b=0;break h}while(1){g=e;b=c;e=b+20|0;c=i[e>>2];if(c){continue}e=b+16|0;c=i[b+16>>2];if(c){continue}break}i[g>>2]=0}if(!h){break g}e=i[f+28>>2];c=(e<<2)+17632|0;j:{if((f|0)==i[c>>2]){i[c>>2]=b;if(b){break j}j=17332,k=i[4333]&Kn(e),i[j>>2]=k;break g}i[h+((f|0)==i[h+16>>2]?16:20)>>2]=b;if(!b){break g}}i[b+24>>2]=h;c=i[f+16>>2];if(c){i[b+16>>2]=c;i[c+24>>2]=b}c=i[f+20>>2];if(!c){break g}i[b+20>>2]=c;i[c+24>>2]=b}i[d+4>>2]=a|1;i[a+d>>2]=a;if(i[4337]!=(d|0)){break f}i[4334]=a;return}i[f+4>>2]=b&-2;i[d+4>>2]=a|1;i[a+d>>2]=a}if(a>>>0<=255){a=a>>>3|0;b=(a<<3)+17368|0;c=i[4332];a=1<>2]}i[b+8>>2]=d;i[a+12>>2]=d;i[d+12>>2]=b;i[d+8>>2]=a;return}e=31;i[d+16>>2]=0;i[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}i[d+28>>2]=e;g=(e<<2)+17632|0;l:{m:{c=i[4333];b=1<>2]=d;i[d+24>>2]=g;break n}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=i[g>>2];while(1){c=b;if((i[b+4>>2]&-8)==(a|0)){break m}b=e>>>29|0;e=e<<1;g=(c+(b&4)|0)+16|0;b=i[g>>2];if(b){continue}break}i[g>>2]=d;i[d+24>>2]=c}i[d+12>>2]=d;i[d+8>>2]=d;break l}a=i[c+8>>2];i[a+12>>2]=d;i[c+8>>2]=d;i[d+24>>2]=0;i[d+12>>2]=c;i[d+8>>2]=a}a=i[4340]+ -1|0;i[4340]=a;if(a){break a}d=17784;while(1){a=i[d>>2];d=a+8|0;if(a){continue}break}i[4340]=-1}}function Rk(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;i[a+56>>2]=i[a+52>>2];i[a+44>>2]=i[a+40>>2];a:{b:{c:{e=i[a+64>>2];d=i[e+24>>2];if((d|0)!=i[e+28>>2]){n=a+40|0;o=a+52|0;while(1){e=c;j=i[(l<<2)+d>>2];d:{if((j|0)==-1){break d}c=i[a+56>>2];e:{if((c|0)!=i[a+60>>2]){i[c>>2]=e;i[a+56>>2]=c+4;break e}h=i[o>>2];g=c-h|0;f=g>>2;d=f+1|0;if(d>>>0>=1073741824){break c}b=g>>1;d=f>>>0<536870911?b>>>0>>0?d:b:1073741823;c=0;f:{if(!d){break f}if(d>>>0>=1073741824){break a}c=Dm(d<<2)}b=c+(f<<2)|0;i[b>>2]=e;d=c+(d<<2)|0;b=b+4|0;if((g|0)>=1){pn(c,h,g)}i[a+60>>2]=d;i[a+56>>2]=b;i[a+52>>2]=c;if(!h){break e}nn(h)}g:{if(!(i[i[a+12>>2]+(l>>>3&536870908)>>2]>>>l&1)){break g}c=j+1|0;c=(c>>>0)%3|0?c:j+ -2|0;if((c|0)==-1|i[i[a>>2]+(c>>>3&536870908)>>2]>>>c&1){break g}b=i[i[i[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)==-1){break g}while(1){c=d+1|0;j=d;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|i[i[a>>2]+(c>>>3&536870908)>>2]>>>c&1){break g}b=i[i[i[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)!=-1){continue}break}}i[i[a+28>>2]+(j<<2)>>2]=e;c=i[a+44>>2];h:{if((c|0)!=i[a+48>>2]){i[c>>2]=j;i[a+44>>2]=c+4;break h}h=i[n>>2];g=c-h|0;f=g>>2;d=f+1|0;if(d>>>0>=1073741824){break b}b=g>>1;d=f>>>0<536870911?b>>>0>>0?d:b:1073741823;c=0;i:{if(!d){break i}if(d>>>0>=1073741824){break a}c=Dm(d<<2)}b=c+(f<<2)|0;i[b>>2]=j;d=c+(d<<2)|0;b=b+4|0;if((g|0)>=1){pn(c,h,g)}i[a+48>>2]=d;i[a+44>>2]=b;i[a+40>>2]=c;if(!h){break h}nn(h)}c=e+1|0;b=((j>>>0)%3|0?-1:2)+j|0;if((b|0)==-1){break d}b=i[i[i[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1|(d|0)==(j|0)){break d}while(1){b=d+1|0;b=(b>>>0)%3|0?b:d+ -2|0;if(i[i[a>>2]+(b>>>3&536870908)>>2]>>>b&1){e=i[a+56>>2];j:{if((e|0)!=i[a+60>>2]){i[e>>2]=c;i[a+56>>2]=e+4;break j}k=i[o>>2];h=e-k|0;g=h>>2;f=g+1|0;if(f>>>0>=1073741824){break c}b=h>>1;f=g>>>0<536870911?b>>>0>>0?f:b:1073741823;e=0;k:{if(!f){break k}if(f>>>0>=1073741824){break a}e=Dm(f<<2)}b=e+(g<<2)|0;i[b>>2]=c;f=e+(f<<2)|0;b=b+4|0;if((h|0)>=1){pn(e,k,h)}i[a+60>>2]=f;i[a+56>>2]=b;i[a+52>>2]=e;if(!k){break j}nn(k)}b=c+1|0;e=i[a+44>>2];l:{if((e|0)!=i[a+48>>2]){i[e>>2]=d;i[a+44>>2]=e+4;break l}m=i[n>>2];k=e-m|0;h=k>>2;g=h+1|0;if(g>>>0>=1073741824){break b}f=k>>1;g=h>>>0<536870911?f>>>0>>0?g:f:1073741823;e=0;m:{if(!g){break m}if(g>>>0>=1073741824){break a}e=Dm(g<<2)}f=e+(h<<2)|0;i[f>>2]=d;g=e+(g<<2)|0;f=f+4|0;if((k|0)>=1){pn(e,m,k)}i[a+48>>2]=g;i[a+44>>2]=f;i[a+40>>2]=e;if(!m){break l}nn(m)}e=c;c=b}i[i[a+28>>2]+(d<<2)>>2]=e;b=((d>>>0)%3|0?-1:2)+d|0;if((b|0)==-1){break d}b=i[i[i[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1){break d}if((d|0)!=(j|0)){continue}break}}e=i[a+64>>2];d=i[e+24>>2];l=l+1|0;if(l>>>0>2]-d>>2>>>0){continue}break}}return}Sm();x()}Sm();x()}Ba(14480);x()}function Xg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(i[i[a+24>>2]+(d>>>3&268435452)>>2]>>>d&1)){c=i[a+48>>2];i[a+52>>2]=c;a:{if((c|0)!=i[a+56>>2]){i[c>>2]=b;i[a+52>>2]=c+4;break a}f=Dm(4);i[f>>2]=b;e=f+4|0;i[a+56>>2]=e;i[a+52>>2]=e;i[a+48>>2]=f;if(!c){break a}nn(c)}e=i[i[a+4>>2]+28>>2];c=b+1|0;f=(c>>>0)%3|0?c:b+ -2|0;c=i[e+(f<<2)>>2];if((c|0)==-1){return 0}h=(b-o(d,3)|0?-1:2)+b|0;d=i[e+(h<<2)>>2];if((d|0)==-1){return 0}b=i[a+36>>2];e=b+(c>>>3&536870908)|0;g=i[e>>2];j=1<>2]=g|j;Hg(a+8|0,c,f);b=i[a+36>>2]}b=(d>>>3&536870908)+b|0;c=i[b>>2];f=1<>2]=c|f;Hg(a+8|0,d,h)}c=i[a+52>>2];if((c|0)==i[a+48>>2]){return 1}l=a+48|0;m=a+8|0;while(1){c=c+ -4|0;b=i[c>>2];d=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}f=i[a+24>>2]+(d>>>3&268435452)|0;e=i[f>>2];d=1<>2]=d|e;f=i[a+4>>2];c=i[i[f+28>>2]+(b<<2)>>2];if((c|0)==-1){return 0}while(1){d=b;d:{b=i[a+36>>2]+(c>>>3&536870908)|0;e=i[b>>2];h=1<>2]+(c<<2)>>2];if((g|0)!=-1){f:{j=g+1|0;g=(j>>>0)%3|0?j:g+ -2|0;if((g|0)==-1|i[i[f>>2]+(g>>>3&536870908)>>2]>>>g&1){break f}f=i[i[i[f+64>>2]+12>>2]+(g<<2)>>2];if((f|0)==-1){break f}i[b>>2]=e|h;Hg(m,c,d);b=f+1|0;if((((b>>>0)%3|0?b:f+ -2|0)|0)==-1){break e}b=-1;f=i[a+4>>2];g:{if((d|0)==-1){break g}c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|i[i[f>>2]+(c>>>3&536870908)>>2]>>>c&1){break g}b=i[i[i[f+64>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;g=1<>2];j=c>>>5|0;e=i[d+(j<<2)>>2];break d}}i[b>>2]=e|h;Hg(m,c,d)}h:{i:{if((d|0)==-1){break i}f=i[a+4>>2];b=-1;e=d+1|0;e=(e>>>0)%3|0?e:d+ -2|0;c=-1;j:{if((e|0)==-1){break j}c=-1;if(i[i[f>>2]+(e>>>3&536870908)>>2]>>>e&1){break j}c=i[i[i[f+64>>2]+12>>2]+(e<<2)>>2]}d=d+((d>>>0)%3|0?-1:2)|0;if(!((d|0)==-1|i[i[f>>2]+(d>>>3&536870908)>>2]>>>d&1)){b=i[i[i[f+64>>2]+12>>2]+(d<<2)>>2]}k=(b|0)==-1;h=k?-1:(b>>>0)/3|0;e=(c>>>0)/3|0;g=(c|0)==-1;if(!g){d=i[a+24>>2];g=g?-1:e;j=g>>>5|0;e=i[d+(j<<2)>>2];g=1<>2];j=h>>>5|0;e=i[d+(j<<2)>>2];if(!(g&e)){break d}}c=i[a+52>>2]+ -4|0;i[a+52>>2]=c;break b}if(k){b=c;break d}if(i[(h>>>3&536870908)+d>>2]>>>h&1){b=c;break d}d=i[a+52>>2];i[d+ -4>>2]=b;if((d|0)!=i[a+56>>2]){i[d>>2]=c;c=d+4|0;break c}k:{b=d;d=i[l>>2];f=b-d|0;h=f>>2;e=h+1|0;if(e>>>0<1073741824){g=f>>1;e=h>>>0<536870911?g>>>0>>0?e:g:1073741823;b=0;l:{if(!e){break l}if(e>>>0>=1073741824){break k}b=Dm(e<<2)}h=b+(h<<2)|0;i[h>>2]=c;e=b+(e<<2)|0;c=h+4|0;if((f|0)>=1){pn(b,d,f)}i[a+56>>2]=e;i[a+52>>2]=c;i[a+48>>2]=b;if(!d){break b}nn(d);c=i[a+52>>2];break b}Sm();x()}Ba(12220);x()}i[(j<<2)+d>>2]=e|g;c=i[i[f+28>>2]+(b<<2)>>2];if((c|0)!=-1){continue}break}return 0}i[a+52>>2]=c}if(i[l>>2]!=(c|0)){continue}break}}return 1}function Gb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,k=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=p(0);e=J-32|0;J=e;a:{b:{c:{if(!(i[a+60>>2]!=i[a- -64>>2]|i[a+48>>2]!=i[a+52>>2])){b=1;break c}b=1;if((M[i[i[a>>2]+24>>2]](a)|0)<1){break c}d:{while(1){e:{b=M[i[i[a>>2]+20>>2]](a,u)|0;f:{g:{h:{f=i[i[i[(M[i[i[a>>2]+28>>2]](a)|0)+4>>2]+8>>2]+(b<<2)>>2];switch(i[f+28>>2]+ -1|0){case 0:case 2:case 4:break h;case 8:break g;default:break f}}b=g[f+24|0];c=0;i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;if(b){if((b|0)<=-1){break b}b=b<<2;d=Dm(b);i[e+16>>2]=d;c=b+d|0;i[e+24>>2]=c;qn(d,0,b);i[e+20>>2]=c;c=j[f+24|0]}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(c&255){b=c<<24>>24;if((b|0)<=-1){break a}b=b<<2;d=Dm(b);i[e>>2]=d;c=b+d|0;i[e+8>>2]=c;qn(d,0,b);i[e+4>>2]=c}i:{j:{k:{switch(i[f+28>>2]+ -1|0){case 4:b=0;if(Hb(a,f,t)){break j}break i;case 2:b=0;if(Ib(a,f,t)){break j}break i;case 0:break k;default:break j}}b=0;if(!Jb(a,f,t)){break i}}t=g[f+24|0]+t|0;b=1}d=i[e>>2];if(d){i[e+4>>2]=d;nn(d)}d=i[e+16>>2];if(d){i[e+20>>2]=d;nn(d)}if(b){break f}break d}r=i[i[a+60>>2]+(h<<2)>>2];s=i[a+36>>2];k=i[(M[i[i[a>>2]+28>>2]](a)|0)+40>>2];n=i[f+56>>2];b=Dm(32);i[e+16>>2]=b;i[e+20>>2]=24;i[e+24>>2]=-2147483616;g[b+24|0]=0;d=j[1702]|j[1703]<<8|(j[1704]<<16|j[1705]<<24);c=j[1698]|j[1699]<<8|(j[1700]<<16|j[1701]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[1694]|j[1695]<<8|(j[1696]<<16|j[1697]<<24);c=j[1690]|j[1691]<<8|(j[1692]<<16|j[1693]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[1686]|j[1687]<<8|(j[1688]<<16|j[1689]<<24);c=j[1682]|j[1683]<<8|(j[1684]<<16|j[1685]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;l:{m:{d=k+16|0;c=d;b=i[d>>2];if(!b){break m}while(1){q=i[b+16>>2]<(n|0);c=q?c:b;b=i[(q<<2)+b>>2];if(b){continue}break}if((c|0)==(d|0)|(n|0)>2]){break m}b=c+20|0;if(!Kb(b,e+16|0)){break m}b=Jh(b,e+16|0);break l}b=Jh(k,e+16|0)}if(g[e+27|0]<=-1){nn(i[e+16>>2])}d=h+1|0;n:{if(b){La(f,r);break n}b=s+o(h,24)|0;c=i[b+4>>2];h=g[f+24|0];s=h<<2;k=Dm((h|0)!=(h&1073741823)?-1:s);if(!Mh(Kh(e+16|0),m[b+20>>2],-1<>2]){w=i[i[r>>2]>>2]+i[r+48>>2]|0;y=b+8|0;q=0;n=0;c=0;while(1){if((h|0)>=1){z=i[y>>2];b=0;A=m[e+16>>2];while(1){v=b<<2;m[v+k>>2]=p(A*p(i[w+(c<<2)>>2]))+m[z+v>>2];c=c+1|0;b=b+1|0;if((h|0)!=(b|0)){continue}break}}pn(i[i[f+64>>2]>>2]+n|0,k,s);n=n+s|0;q=q+1|0;if(q>>>0>2]){continue}break}}nn(k)}h=d}b=1;u=u+1|0;if((u|0)<(M[i[i[a>>2]+24>>2]](a)|0)){continue}break c}break}nn(k)}b=0}J=e+32|0;return b|0}Sm();x()}Sm();x()}function sd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){Ra(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}s=i[a+52>>2];r=i[a+48>>2];d=0;f=(e&1073741823)!=(e|0)?-1:e<<2;p=qn(Dm(f),0,f);f=i[a+8>>2];b:{if((f|0)<1){break b}while(1){f=d<<2;g=i[f+p>>2];k=i[a+16>>2];c:{if((g|0)>(k|0)){h=i[a+32>>2];i[f+h>>2]=k;break c}h=i[a+32>>2];f=f+h|0;k=i[a+12>>2];if((g|0)<(k|0)){i[f>>2]=k;break c}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}if((f|0)<1){break b}g=0;while(1){f=g<<2;d=f+c|0;f=i[b+f>>2]+i[f+h>>2]|0;i[d>>2]=f;d:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break d}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}d=i[a+56>>2];g=i[d+4>>2];q=i[d>>2];d=g-q|0;if((d|0)>=5){g=q-g|0;d=((g|0)>(d|0)?g:d)>>>2|0;t=d>>>0>2?d:2;u=d>>>0>1?d:1;k=1;while(1){e:{f:{if((k|0)!=(u|0)){n=o(e,k);d=i[(k<<2)+q>>2];if((d|0)==-1){break f}d=i[i[r+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}g=-1;j=i[s>>2];h=i[r>>2];l=i[j+(i[h+(d<<2)>>2]<<2)>>2];m=d+1|0;m=(m>>>0)%3|0?m:d+ -2|0;if((m|0)!=-1){m=i[h+(m<<2)>>2]}else{m=-1}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)!=-1){g=i[h+(d<<2)>>2]}if((l|0)>=(k|0)){break f}d=i[(m<<2)+j>>2];if((d|0)>=(k|0)){break f}g=i[j+(g<<2)>>2];if((g|0)>=(k|0)){break f}if((e|0)>=1){g=o(e,g);h=o(d,e);j=o(e,l);d=0;while(1){i[(d<<2)+p>>2]=(i[(d+g<<2)+c>>2]+i[(d+h<<2)+c>>2]|0)-i[(d+j<<2)+c>>2];d=d+1|0;if((e|0)!=(d|0)){continue}break}}if((f|0)<1){break e}d=0;while(1){f=d<<2;g=i[f+p>>2];j=i[a+16>>2];g:{if((g|0)>(j|0)){h=i[a+32>>2];i[f+h>>2]=j;break g}h=i[a+32>>2];f=f+h|0;j=i[a+12>>2];if((g|0)<(j|0)){i[f>>2]=j;break g}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=n<<2;n=d+c|0;j=b+d|0;while(1){f=g<<2;d=f+n|0;f=i[f+j>>2]+i[f+h>>2]|0;i[d>>2]=f;h:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break h}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}break e}Tm();x()}if((f|0)<1){break e}j=(o(k+ -1|0,e)<<2)+c|0;d=0;while(1){f=d<<2;g=i[f+j>>2];l=i[a+16>>2];i:{if((g|0)>(l|0)){h=i[a+32>>2];i[f+h>>2]=l;break i}h=i[a+32>>2];f=f+h|0;l=i[a+12>>2];if((g|0)<(l|0)){i[f>>2]=l;break i}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=n<<2;n=d+c|0;j=b+d|0;while(1){f=g<<2;d=f+n|0;f=i[f+j>>2]+i[f+h>>2]|0;i[d>>2]=f;j:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break j}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}k=k+1|0;if((t|0)!=(k|0)){continue}break}}nn(p);return 1}function Gc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){Ra(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}r=i[a+52>>2];p=i[a+48>>2];d=0;f=(e&1073741823)!=(e|0)?-1:e<<2;n=qn(Dm(f),0,f);f=i[a+8>>2];b:{if((f|0)<1){break b}while(1){f=d<<2;g=i[f+n>>2];j=i[a+16>>2];c:{if((g|0)>(j|0)){h=i[a+32>>2];i[f+h>>2]=j;break c}h=i[a+32>>2];f=f+h|0;j=i[a+12>>2];if((g|0)<(j|0)){i[f>>2]=j;break c}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}if((f|0)<1){break b}g=0;while(1){f=g<<2;d=f+c|0;f=i[b+f>>2]+i[f+h>>2]|0;i[d>>2]=f;d:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break d}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}d=i[a+56>>2];g=i[d+4>>2];q=i[d>>2];d=g-q|0;if((d|0)>=5){g=q-g|0;d=((g|0)>(d|0)?g:d)>>>2|0;s=d>>>0>2?d:2;t=d>>>0>1?d:1;j=1;while(1){e:{f:{if((j|0)!=(t|0)){m=o(e,j);d=i[(j<<2)+q>>2];if((d|0)==-1|i[i[p>>2]+(d>>>3&536870908)>>2]>>>d&1){break f}d=i[i[i[p+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}h=i[r>>2];g=i[p+28>>2];k=i[h+(i[g+(d<<2)>>2]<<2)>>2];if((k|0)>=(j|0)){break f}l=d+1|0;l=i[h+(i[g+(((l>>>0)%3|0?l:d+ -2|0)<<2)>>2]<<2)>>2];if((l|0)>=(j|0)){break f}d=i[h+(i[g+(d+((d>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((d|0)>=(j|0)){break f}if((e|0)>=1){g=o(d,e);h=o(e,l);k=o(e,k);d=0;while(1){i[(d<<2)+n>>2]=(i[(d+g<<2)+c>>2]+i[(d+h<<2)+c>>2]|0)-i[(d+k<<2)+c>>2];d=d+1|0;if((e|0)!=(d|0)){continue}break}}if((f|0)<1){break e}d=0;while(1){f=d<<2;g=i[f+n>>2];k=i[a+16>>2];g:{if((g|0)>(k|0)){h=i[a+32>>2];i[f+h>>2]=k;break g}h=i[a+32>>2];f=f+h|0;k=i[a+12>>2];if((g|0)<(k|0)){i[f>>2]=k;break g}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=m<<2;m=d+c|0;k=b+d|0;while(1){f=g<<2;d=f+m|0;f=i[f+k>>2]+i[f+h>>2]|0;i[d>>2]=f;h:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break h}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}break e}Tm();x()}if((f|0)<1){break e}k=(o(j+ -1|0,e)<<2)+c|0;d=0;while(1){f=d<<2;g=i[f+k>>2];l=i[a+16>>2];i:{if((g|0)>(l|0)){h=i[a+32>>2];i[f+h>>2]=l;break i}h=i[a+32>>2];f=f+h|0;l=i[a+12>>2];if((g|0)<(l|0)){i[f>>2]=l;break i}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=m<<2;m=d+c|0;k=b+d|0;while(1){f=g<<2;d=f+m|0;f=i[f+k>>2]+i[f+h>>2]|0;i[d>>2]=f;j:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break j}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}j=j+1|0;if((s|0)!=(j|0)){continue}break}}nn(n);return 1}function bb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;d=J-704|0;J=d;r=1;a:{b:{c:{d:{if(k[b+38>>1]<515){break d}r=0;f=i[b+16>>2];e=i[b+12>>2];c=i[b+20>>2];if((e|0)<(c|0)?1:(e|0)<=(c|0)?l[b+8>>2]<=f>>>0:0){break d}u=j[f+i[b>>2]|0];f=f+1|0;if(f>>>0<1){c=c+1|0}i[b+16>>2]=f;i[b+20>>2]=c;t=i[i[(M[i[i[a>>2]+28>>2]](a)|0)+4>>2]+80>>2];c=M[i[i[a>>2]+24>>2]](a)|0;i[d+696>>2]=0;i[d+688>>2]=0;i[d+692>>2]=0;if(c){if(c>>>0>=214748365){break c}c=o(c,20);e=Dm(c);i[d+688>>2]=e;f=c+e|0;i[d+696>>2]=f;qn(e,0,c-((c+ -20>>>0)%20|0)|0);i[d+692>>2]=f}e:{if((M[i[i[a>>2]+24>>2]](a)|0)>=1){v=a+48|0;w=a+60|0;while(1){c=M[i[i[a>>2]+20>>2]](a,q)|0;e=i[i[i[(M[i[i[a>>2]+28>>2]](a)|0)+4>>2]+8>>2]+(c<<2)>>2];Ka(e,t);g[e+84|0]=1;i[e+72>>2]=i[e+68>>2];c=i[e+28>>2];if(c>>>0>9){break e}f:{g:{h:{f=1<>2];e=c;c=o(Fh(6),c);Fa(f,h,e,6,0,c,c>>31);c=Dm(96);e=Ja(c,f);i[d+656>>2]=c;g[c+84|0]=1;i[c+72>>2]=i[c+68>>2];Ka(e,t);c=i[a+64>>2];if(c>>>0>=l[a+68>>2]){break h}e=i[d+656>>2];i[d+656>>2]=0;i[c>>2]=e;c=c+4|0;i[a+64>>2]=c;break g}p=0;if(g[e+24|0]<1){break f}while(1){c=i[a+52>>2];m=i[a+56>>2];i:{if(c>>>0>>0){i[c>>2]=0;i[a+52>>2]=c+4;break i}f=i[v>>2];s=c-f|0;c=s>>2;h=c+1|0;if(h>>>0>=1073741824){break b}y=c<<2;m=m-f|0;c=m>>1;h=m>>2>>>0<536870911?c>>>0>>0?h:c:1073741823;c=0;j:{if(!h){break j}if(h>>>0>=1073741824){break a}c=Dm(h<<2)}m=y+c|0;i[m>>2]=0;h=c+(h<<2)|0;m=m+4|0;if((s|0)>=1){pn(c,f,s)}i[a+56>>2]=h;i[a+52>>2]=m;i[a+48>>2]=c;if(!f){break i}nn(f)}p=p+1|0;if((p|0)>2]}e=i[c+ -4>>2];c=i[d+656>>2];i[d+656>>2]=0;if(!c){break f}Sa(c)}h=i[e+28>>2];f=Fh(h);c=i[d+688>>2]+o(q,20)|0;p=g[e+24|0];i[c+16>>2]=p;i[c+12>>2]=(f|0)>0?f:0;i[c+8>>2]=h;i[c+4>>2]=n;i[c>>2]=e;n=n+p|0;q=q+1|0;if((q|0)<(M[i[i[a>>2]+24>>2]](a)|0)){continue}break}}a=db(d+656|0,d+688|0);k:{l:{m:{switch(u|0){case 0:c=gb(d,n);b=eb(c,b,a);fb(c);if(b){break l}break k;case 1:c=gb(d,n);b=hb(c,b,a);fb(c);if(b){break l}break k;case 2:c=kb(d,n);b=ib(c,b,a);jb(c);if(b){break l}break k;case 3:c=kb(d,n);b=lb(c,b,a);jb(c);if(b){break l}break k;case 4:c=ob(d,n);b=mb(c,b,a);nb(c);if(b){break l}break k;case 5:c=ob(d,n);b=pb(c,b,a);nb(c);if(b){break l}break k;case 6:break m;default:break k}}c=ob(d,n);b=qb(c,b,a);nb(c);if(!b){break k}}r=1}b=i[a+16>>2];if(b){i[a+20>>2]=b;nn(b)}b=i[a>>2];if(!b){break e}i[a+4>>2]=b;nn(b)}a=i[d+688>>2];if(!a){break d}i[d+692>>2]=a;nn(a)}J=d+704|0;return r|0}Sm();x()}Sm();x()}Ba(1756);x()}function Ak(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0;e=J-48|0;J=e;a:{if(!b){break a}w=a+12|0;g=i[a+4>>2];m=i[a>>2];f=g-m|0;k=f>>2;d=i[a+12>>2];c=i[a+16>>2]-d>>2;b:{if(k>>>0>c>>>0){Dk(w,k-c|0);g=i[a+4>>2];m=i[a>>2];f=g-m|0;k=f>>2;break b}if(k>>>0>=c>>>0){break b}i[a+16>>2]=d+(k<<2)}i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;c:{if(!f){break c}if(k>>>0<1073741824){l=Dm(f);i[e+36>>2]=l;i[e+32>>2]=l;i[e+40>>2]=(k<<2)+l;d=l;f=0;while(1){c=i[(f<<2)+m>>2];j=d-l>>2;d:{if(c>>>0>>0){break d}i[e+16>>2]=0;d=c+1|0;if(d>>>0>j>>>0){Ta(e+32|0,d-j|0,e+16|0);m=i[a>>2];g=i[a+4>>2];l=i[e+32>>2];break d}if(d>>>0>=j>>>0){break d}i[e+36>>2]=(d<<2)+l}d=(c<<2)+l|0;i[d>>2]=i[d>>2]+1;f=f+1|0;h=g-m|0;k=h>>2;if(f>>>0>=k>>>0){break c}d=i[e+36>>2];continue}}Ba(14288);x()}i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;e:{f:{if(h){if(k>>>0>=536870912){break f}n=Dm(h<<1);i[e+16>>2]=n;c=k<<3;d=c+n|0;i[e+24>>2]=d;qn(n,255,c);i[e+20>>2]=d}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;c=i[e+36>>2];g=c-l|0;u=g>>2;g:{if(g){if(u>>>0>=1073741824){break g}p=Dm(g);i[e>>2]=p;d=(u<<2)+p|0;i[e+8>>2]=d;f=0;j=qn(p,0,g);i[e+4>>2]=d;d=l-c|0;c=((d|0)>(g|0)?d:g)>>>2|0;d=(g|0)>-1?g:-1;d=o(c,(d|0)<1?d:1);c=d>>>0>1?d:1;h=0;while(1){d=h<<2;i[d+j>>2]=f;f=i[d+l>>2]+f|0;h=h+1|0;if((c|0)!=(h|0)){continue}break}}if(!k){break e}while(1){y=q<<2;g=i[y+m>>2];r=-1;d=q+1|0;c=(d>>>0)%3|0?d:q+ -2|0;if((c|0)!=-1){r=i[(c<<2)+m>>2]}s=-1;f=(q>>>0)%3|0;c=(f?-1:2)+q|0;if((c|0)!=-1){s=i[(c<<2)+m>>2]}h:{if(!(((g|0)!=(s|0)?!((r|0)==(s|0)|(g|0)==(r|0)):0)|f)){i[a+40>>2]=i[a+40>>2]+1;d=q+3|0;break h}c=s<<2;v=i[c+l>>2];i:{j:{if((v|0)<1){break j}f=i[c+p>>2];h=0;while(1){j=(f<<3)+n|0;c=i[j>>2];if((c|0)==-1){break j}k:{if((c|0)!=(r|0)){break k}t=i[j+4>>2];if((t|0)!=-1){c=i[(t<<2)+m>>2]}else{c=-1}if((c|0)==(g|0)){break k}while(1){l:{c=f;h=h+1|0;if((h|0)>=(v|0)){break l}z=(c<<3)+n|0;f=c+1|0;g=(f<<3)+n|0;j=i[g>>2];i[z>>2]=j;i[z+4>>2]=i[g+4>>2];if((j|0)!=-1){continue}}break}i[(c<<3)+n>>2]=-1;if((t|0)==-1){break j}c=i[w>>2];i[c+y>>2]=t;i[c+(t<<2)>>2]=q;break i}f=f+1|0;h=h+1|0;if((v|0)!=(h|0)){continue}break}}f=r<<2;c=i[f+l>>2];if((c|0)<1){break i}f=i[f+p>>2];h=0;while(1){j=(f<<3)+n|0;if(i[j>>2]==-1){i[j>>2]=s;i[j+4>>2]=q;break i}f=f+1|0;h=h+1|0;if((c|0)!=(h|0)){continue}break}}}q=d;if(d>>>0>>0){continue}break}break e}Sm();x()}Sm();x()}i[b>>2]=u;if(p){i[e+4>>2]=p;nn(p)}a=i[e+16>>2];if(a){i[e+20>>2]=a;nn(a)}a=i[e+32>>2];if(!a){break a}i[e+36>>2]=a;nn(a)}J=e+48|0;return(b|0)!=0}function Rg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(i[i[a+24>>2]+(d>>>3&268435452)>>2]>>>d&1)){c=i[a+48>>2];i[a+52>>2]=c;a:{if((c|0)!=i[a+56>>2]){i[c>>2]=b;i[a+52>>2]=c+4;break a}e=Dm(4);i[e>>2]=b;f=e+4|0;i[a+56>>2]=f;i[a+52>>2]=f;i[a+48>>2]=e;if(!c){break a}nn(c)}e=i[a+4>>2];c=-1;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)!=-1){c=i[i[e>>2]+(f<<2)>>2]}h=(b-o(d,3)|0?-1:2)+b|0;if((h|0)==-1){return 0}if((c|0)==-1){return 0}d=i[i[e>>2]+(h<<2)>>2];if((d|0)==-1){return 0}b=i[a+36>>2];e=b+(c>>>3&536870908)|0;g=i[e>>2];j=1<>2]=g|j;Hg(a+8|0,c,f);b=i[a+36>>2]}b=(d>>>3&536870908)+b|0;c=i[b>>2];e=1<>2]=c|e;Hg(a+8|0,d,h)}d=i[a+52>>2];if((d|0)==i[a+48>>2]){return 1}k=a+48|0;l=a+8|0;while(1){d=d+ -4|0;b=i[d>>2];c=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}e=i[a+24>>2]+(c>>>3&268435452)|0;f=i[e>>2];c=1<>2]=c|f;while(1){h=i[a+4>>2];c=i[i[h>>2]+(b<<2)>>2];if((c|0)==-1){return 0}d:{d=i[a+36>>2]+(c>>>3&536870908)|0;e=i[d>>2];f=1<>2]+(c<<2)>>2];if((g|0)!=-1){j=g+1|0;g=(j>>>0)%3|0?j:g+ -2|0;if((g|0)!=-1){h=i[i[h+12>>2]+(g<<2)>>2];if((h|0)!=-1){i[d>>2]=e|f;Hg(l,c,b);c=h+1|0;if((((c>>>0)%3|0?c:h+ -2|0)|0)==-1){break e}d=b+ -2|0;c=b+1|0;b=-1;c=(c>>>0)%3|0?c:d;if((c|0)!=-1){b=i[i[i[a+4>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;g=1<>2];j=c>>>5|0;f=i[e+(j<<2)>>2];break d}}}i[d>>2]=e|f;Hg(l,c,b)}d=-1;e=i[a+4>>2];c=-1;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)!=-1){c=i[i[e+12>>2]+(f<<2)>>2]}b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)!=-1){d=i[i[e+12>>2]+(b<<2)>>2]}b=(d|0)==-1;h=b?-1:(d>>>0)/3|0;f=(c>>>0)/3|0;f:{g=(c|0)==-1;if(!g){e=i[a+24>>2];g=g?-1:f;j=g>>>5|0;f=i[e+(j<<2)>>2];g=1<>2];j=h>>>5|0;f=i[e+(j<<2)>>2];if(!(g&f)){break d}}d=i[a+52>>2]+ -4|0;i[a+52>>2]=d;break b}if(b){b=c;break d}if(i[(h>>>3&536870908)+e>>2]>>>h&1){b=c;break d}b=i[a+52>>2];i[b+ -4>>2]=d;if((b|0)!=i[a+56>>2]){i[b>>2]=c;d=b+4|0;break c}g:{e=i[k>>2];f=b-e|0;h=f>>2;d=h+1|0;if(d>>>0<1073741824){g=f>>1;d=h>>>0<536870911?g>>>0>>0?d:g:1073741823;b=0;h:{if(!d){break h}if(d>>>0>=1073741824){break g}b=Dm(d<<2)}h=b+(h<<2)|0;i[h>>2]=c;c=b+(d<<2)|0;d=h+4|0;if((f|0)>=1){pn(b,e,f)}i[a+56>>2]=c;i[a+52>>2]=d;i[a+48>>2]=b;if(!e){break b}nn(e);d=i[a+52>>2];break b}Sm();x()}Ba(12220);x()}i[(j<<2)+e>>2]=f|g;if((b|0)!=-1){continue}break}return 0}i[a+52>>2]=d}if(i[k>>2]!=(d|0)){continue}break}}return 1}function _c(a,b,c,d){var e=0,f=0,h=p(0),k=0,l=p(0),n=p(0),r=0,s=p(0),t=p(0),v=p(0),y=p(0),z=p(0),A=0,B=0,C=p(0),D=p(0),E=p(0),F=p(0),G=p(0),H=p(0),I=p(0),K=p(0),L=0;e=J-48|0;J=e;r=-1;f=-1;a:{if((b|0)==-1){break a}f=b+1|0;r=(f>>>0)%3|0?f:b+ -2|0;f=b+ -1|0;if((b>>>0)%3|0){break a}f=b+2|0}k=i[a+52>>2];b=i[k>>2];b:{k=i[k+4>>2]-b>>2;A=i[i[a+48>>2]+28>>2];r=i[A+(r<<2)>>2];if(k>>>0<=r>>>0){break b}L=k;k=i[(f<<2)+A>>2];if(L>>>0<=k>>>0){break b}c:{d:{f=i[b+(r<<2)>>2];A=(f|0)>=(d|0);if(A){break d}r=i[b+(k<<2)>>2];if((r|0)>=(d|0)){break d}b=i[a+72>>2];k=(o(b,r)<<2)+c|0;l=p(i[k+4>>2]);b=(o(b,f)<<2)+c|0;z=p(i[b+4>>2]);C=p(i[k>>2]);F=p(i[b>>2]);if(!(C!=F|l!=z)){a=i[a+68>>2];b=a;if(p(q(l))>2]=c;if(p(q(C))>2]=~~C;break c}i[a>>2]=-2147483648;break c}d=i[i[a+64>>2]+(d<<2)>>2];i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;b=i[a+60>>2];if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}$c(b,d,g[b+24|0],e+32|0);d=i[i[a+64>>2]+(f<<2)>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;b=i[a+60>>2];if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}$c(b,d,g[b+24|0],e+16|0);c=i[i[a+64>>2]+(r<<2)>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=i[a+60>>2];if(!j[b+84|0]){c=i[i[b+68>>2]+(c<<2)>>2]}$c(b,c,g[b+24|0],e);D=m[e+40>>2];E=m[e+36>>2];s=m[e+32>>2];H=m[e+16>>2];n=p(m[e>>2]-H);I=m[e+20>>2];t=p(m[e+4>>2]-I);K=m[e+24>>2];v=p(m[e+8>>2]-K);G=p(p(p(p(n*n)+p(0))+p(t*t))+p(v*v));e:{if(!(G>p(0))){y=p(0);if(i[a+88>>2]>257){break e}}s=p(s-H);E=p(E-I);D=p(D-K);h=p(p(p(p(p(n*s)+p(0))+p(t*E))+p(v*D))/G);v=p(D-p(v*h));t=p(E-p(t*h));n=p(s-p(n*h));y=p(w(p(p(p(v*v)+p(p(t*t)+p(p(n*n)+p(0))))/G)))}s=y;c=a+80|0;b=i[c>>2]+ -1|0;d=i[i[a+76>>2]+(b>>>3&536870908)>>2];i[c>>2]=b;n=p(l-z);y=p(p(n*h)+z);z=p(C-F);l=p(z*s);b=d>>>b&1;l=p(y+(b?l:p(-l)));y=p(p(z*h)+F);h=p(n*s);h=p(y+(b?p(-h):h));f:{if(h!=h){b=i[a+68>>2];i[b>>2]=-2147483648;break f}b=i[a+68>>2];a=b;B=u(+h+.5);g:{if(q(B)<2147483648){c=~~B;break g}c=-2147483648}i[a>>2]=c}B=u(+l+.5);h:{if(q(B)<2147483648){a=~~B;break h}a=-2147483648}i[b+4>>2]=l!=l?-2147483648:a;break c}i:{if(!A){b=i[a+72>>2];d=o(f,b);break i}if((d|0)<=0){if(i[a+72>>2]<1){break c}c=i[a+68>>2];b=0;while(1){i[c+(b<<2)>>2]=0;b=b+1|0;if((b|0)>2]){continue}break}break c}b=i[a+72>>2];d=o(b,d+ -1|0)}if((b|0)<1){break c}f=i[a+68>>2];b=0;while(1){i[f+(b<<2)>>2]=i[(b+d<<2)+c>>2];b=b+1|0;if((b|0)>2]){continue}break}}J=e+48|0;return}Tm();x()}function Ad(a,b,c,d){var e=0,f=0,h=0,k=p(0),l=p(0),n=0,r=p(0),s=p(0),t=p(0),v=p(0),y=p(0),z=p(0),A=0,B=0,C=p(0),D=p(0),E=p(0),F=p(0),G=p(0),H=0,I=p(0),K=p(0),L=p(0);e=J-48|0;J=e;f=-1;n=-1;a:{if((b|0)==-1){break a}h=((b>>>0)%3|0?-1:2)+b|0;A=i[a+48>>2];H=b+1|0;b=(H>>>0)%3|0?H:b+ -2|0;if((b|0)!=-1){f=i[i[A>>2]+(b<<2)>>2]}if((h|0)==-1){break a}n=i[i[A>>2]+(h<<2)>>2]}h=i[a+52>>2];b=i[h>>2];h=i[h+4>>2]-b>>2;if(!(h>>>0<=f>>>0|h>>>0<=n>>>0)){b:{c:{f=i[b+(f<<2)>>2];A=(f|0)>=(d|0);if(A){break c}h=i[b+(n<<2)>>2];if((h|0)>=(d|0)){break c}b=i[a+72>>2];n=(o(b,h)<<2)+c|0;l=p(i[n+4>>2]);b=(o(b,f)<<2)+c|0;z=p(i[b+4>>2]);C=p(i[n>>2]);F=p(i[b>>2]);if(!(C!=F|l!=z)){a=i[a+68>>2];b=a;if(p(q(l))>2]=c;if(p(q(C))>2]=~~C;break b}i[a>>2]=-2147483648;break b}n=i[i[a+64>>2]+(d<<2)>>2];i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;b=i[a+60>>2];if(!j[b+84|0]){n=i[i[b+68>>2]+(n<<2)>>2]}$c(b,n,g[b+24|0],e+32|0);f=i[i[a+64>>2]+(f<<2)>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;b=i[a+60>>2];if(!j[b+84|0]){f=i[i[b+68>>2]+(f<<2)>>2]}$c(b,f,g[b+24|0],e+16|0);c=i[i[a+64>>2]+(h<<2)>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=i[a+60>>2];if(!j[b+84|0]){c=i[i[b+68>>2]+(c<<2)>>2]}$c(b,c,g[b+24|0],e);D=m[e+40>>2];E=m[e+36>>2];s=m[e+32>>2];I=m[e+16>>2];r=p(m[e>>2]-I);K=m[e+20>>2];t=p(m[e+4>>2]-K);L=m[e+24>>2];v=p(m[e+8>>2]-L);G=p(p(p(p(r*r)+p(0))+p(t*t))+p(v*v));d:{if(!(G>p(0))){y=p(0);if(i[a+88>>2]>257){break d}}s=p(s-I);E=p(E-K);D=p(D-L);k=p(p(p(p(p(r*s)+p(0))+p(t*E))+p(v*D))/G);v=p(D-p(v*k));t=p(E-p(t*k));r=p(s-p(r*k));y=p(w(p(p(p(v*v)+p(p(t*t)+p(p(r*r)+p(0))))/G)))}s=y;c=a+80|0;b=i[c>>2]+ -1|0;d=i[i[a+76>>2]+(b>>>3&536870908)>>2];i[c>>2]=b;r=p(l-z);y=p(p(r*k)+z);z=p(C-F);l=p(z*s);b=d>>>b&1;l=p(y+(b?l:p(-l)));y=p(p(z*k)+F);k=p(r*s);k=p(y+(b?p(-k):k));e:{if(k!=k){b=i[a+68>>2];i[b>>2]=-2147483648;break e}b=i[a+68>>2];a=b;B=u(+k+.5);f:{if(q(B)<2147483648){c=~~B;break f}c=-2147483648}i[a>>2]=c}B=u(+l+.5);g:{if(q(B)<2147483648){a=~~B;break g}a=-2147483648}i[b+4>>2]=l!=l?-2147483648:a;break b}h:{if(!A){b=i[a+72>>2];d=o(f,b);break h}if((d|0)<=0){if(i[a+72>>2]<1){break b}c=i[a+68>>2];b=0;while(1){i[c+(b<<2)>>2]=0;b=b+1|0;if((b|0)>2]){continue}break}break b}b=i[a+72>>2];d=o(b,d+ -1|0)}if((b|0)<1){break b}f=i[a+68>>2];b=0;while(1){i[f+(b<<2)>>2]=i[(b+d<<2)+c>>2];b=b+1|0;if((b|0)>2]){continue}break}}J=e+48|0;return}Tm();x()}function nd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=J-32|0;J=h;i[a+68>>2]=f;e=i[a+56>>2];f=i[e>>2];j=i[e+4>>2];i[h+24>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;g=j-f|0;if((g|0)>=1){a:{d=i[e>>2];b:{if((d|0)==i[e+4>>2]){e=i[h+8>>2];break b}n=a+60|0;e=f-j|0;e=((e|0)>(g|0)?e:g)>>>2|0;o=e>>>0>1?e:1;p=a+112|0;while(1){od(n,i[(m<<2)+d>>2],h+16|0);e=i[h+20>>2];j=e>>31;f=i[h+16>>2];g=f>>31;l=i[h+24>>2];k=l>>31;d=0;k=k^k+l;j=k+((j^e+j)+(g^f+g)|0)|0;if(j>>>0>>0){d=1}g=j;c:{if(!(d|g)){i[h+16>>2]=i[a+108>>2];break c}j=i[a+108>>2];k=j>>31;e=Hn(Gn(j,k,e,e>>31),L,g,d);i[h+20>>2]=e;d=Hn(Gn(j,k,f,f>>31),L,g,d);i[h+16>>2]=d;if((l|0)>=0){i[h+24>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break c}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[h+24>>2]=f+(d+e^d)}d=Ce(p);f=i[h+16>>2];if(d){i[h+24>>2]=0-i[h+24>>2];i[h+20>>2]=0-i[h+20>>2];f=0-f|0;i[h+16>>2]=f}e=i[h+20>>2];d:{if((f|0)>=0){d=i[a+108>>2];f=d+i[h+24>>2]|0;d=d+e|0;break d}e:{if((e|0)<=-1){f=i[h+24>>2];d=f>>31;d=d^d+f;break e}f=i[h+24>>2];d=i[a+100>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break d}f=i[a+100>>2]+((e|0)<0?e:0-e|0)|0}f:{if(!(d|f)){f=i[a+100>>2];e=f;break f}j=i[a+100>>2];g:{h:{i:{if(!d){if((f|0)==(j|0)){e=f;break f}e=0;if(f|j){break i}f=0;break f}if(!((d|0)!=(j|0)|f)){f=d;e=f;break f}if((d|0)!=(j|0)){break g}g=i[a+108>>2];break h}g=i[a+108>>2];if((g|0)<(f|0)){f=(g<<1)-f|0;break f}if(j){break g}}j=d;if((g|0)<=(f|0)){break g}f=(g<<1)-f|0;e=d;break f}j:{if((f|0)!=(j|0)){break j}e=i[a+108>>2];if((e|0)<=(d|0)){break j}e=(e<<1)-d|0;break f}if(f){e=d;break f}f=0;e=i[a+108>>2];if((e|0)>=(d|0)){e=d;break f}e=(e<<1)-d|0}i[h+12>>2]=f;k:{if(i[a+8>>2]<1){break k}f=0;d=e;while(1){g=i[a+16>>2];l:{if((d|0)>(g|0)){j=i[a+32>>2];i[j+(f<<2)>>2]=g;break l}j=i[a+32>>2];g=j+(f<<2)|0;l=i[a+12>>2];if((d|0)<(l|0)){i[g>>2]=l;break l}i[g>>2]=d}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){d=i[(h+8|0)+(f<<2)>>2];continue}break}d=0;if((g|0)<1){break k}f=m<<3;l=f+c|0;k=b+f|0;while(1){g=d<<2;f=g+l|0;g=i[g+k>>2]+i[g+j>>2]|0;i[f>>2]=g;m:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break m}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}m=m+1|0;if((o|0)==(m|0)){break a}f=i[a+56>>2];d=i[f>>2];if(i[f+4>>2]-d>>2>>>0>m>>>0){continue}break}}i[h+8>>2]=e;Tm();x()}i[h+8>>2]=e}J=h+32|0;return 1}function Hd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=J-32|0;J=h;i[a+68>>2]=f;e=i[a+56>>2];f=i[e>>2];j=i[e+4>>2];i[h+24>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;g=j-f|0;if((g|0)>=1){a:{d=i[e>>2];b:{if((d|0)==i[e+4>>2]){e=i[h+8>>2];break b}n=a+60|0;e=f-j|0;e=((e|0)>(g|0)?e:g)>>>2|0;o=e>>>0>1?e:1;p=a+112|0;while(1){Id(n,i[(m<<2)+d>>2],h+16|0);e=i[h+20>>2];j=e>>31;f=i[h+16>>2];g=f>>31;l=i[h+24>>2];k=l>>31;d=0;k=k^k+l;j=k+((j^e+j)+(g^f+g)|0)|0;if(j>>>0>>0){d=1}g=j;c:{if(!(d|g)){i[h+16>>2]=i[a+108>>2];break c}j=i[a+108>>2];k=j>>31;e=Hn(Gn(j,k,e,e>>31),L,g,d);i[h+20>>2]=e;d=Hn(Gn(j,k,f,f>>31),L,g,d);i[h+16>>2]=d;if((l|0)>=0){i[h+24>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break c}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[h+24>>2]=f+(d+e^d)}d=Ce(p);f=i[h+16>>2];if(d){i[h+24>>2]=0-i[h+24>>2];i[h+20>>2]=0-i[h+20>>2];f=0-f|0;i[h+16>>2]=f}e=i[h+20>>2];d:{if((f|0)>=0){d=i[a+108>>2];f=d+i[h+24>>2]|0;d=d+e|0;break d}e:{if((e|0)<=-1){f=i[h+24>>2];d=f>>31;d=d^d+f;break e}f=i[h+24>>2];d=i[a+100>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break d}f=i[a+100>>2]+((e|0)<0?e:0-e|0)|0}f:{if(!(d|f)){f=i[a+100>>2];e=f;break f}j=i[a+100>>2];g:{h:{i:{if(!d){if((f|0)==(j|0)){e=f;break f}e=0;if(f|j){break i}f=0;break f}if(!((d|0)!=(j|0)|f)){f=d;e=f;break f}if((d|0)!=(j|0)){break g}g=i[a+108>>2];break h}g=i[a+108>>2];if((g|0)<(f|0)){f=(g<<1)-f|0;break f}if(j){break g}}j=d;if((g|0)<=(f|0)){break g}f=(g<<1)-f|0;e=d;break f}j:{if((f|0)!=(j|0)){break j}e=i[a+108>>2];if((e|0)<=(d|0)){break j}e=(e<<1)-d|0;break f}if(f){e=d;break f}f=0;e=i[a+108>>2];if((e|0)>=(d|0)){e=d;break f}e=(e<<1)-d|0}i[h+12>>2]=f;k:{if(i[a+8>>2]<1){break k}f=0;d=e;while(1){g=i[a+16>>2];l:{if((d|0)>(g|0)){j=i[a+32>>2];i[j+(f<<2)>>2]=g;break l}j=i[a+32>>2];g=j+(f<<2)|0;l=i[a+12>>2];if((d|0)<(l|0)){i[g>>2]=l;break l}i[g>>2]=d}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){d=i[(h+8|0)+(f<<2)>>2];continue}break}d=0;if((g|0)<1){break k}f=m<<3;l=f+c|0;k=b+f|0;while(1){g=d<<2;f=g+l|0;g=i[g+k>>2]+i[g+j>>2]|0;i[f>>2]=g;m:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break m}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}m=m+1|0;if((o|0)==(m|0)){break a}f=i[a+56>>2];d=i[f>>2];if(i[f+4>>2]-d>>2>>>0>m>>>0){continue}break}}i[h+8>>2]=e;Tm();x()}i[h+8>>2]=e}J=h+32|0;return 1}function sc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,j=0,k=0,l=0,m=0;a:{b:{c:{d:{e:{f:{g:{h:{d=i[a+8>>2];switch(i[d+28>>2]+ -1|0){case 0:break c;case 3:break d;case 2:break e;case 5:break f;case 4:break g;case 1:break h;default:break a}}f=g[d+24|0];j=Dm((f|0)>-1?f:-1);c=i[a+16>>2];d=0;i:{if(!i[c+80>>2]){break i}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((f|0)>0){while(1){g[c+j|0]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}pn(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,f);l=f+l|0;e=e+1|0;if((e|0)!=(b|0)){continue}break}break b}e=g[d+24|0];m=e<<2;j=Dm((e|0)!=(e&1073741823)?-1:m);c=i[a+16>>2];d=0;j:{if(!i[c+80>>2]){break j}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((e|0)>0){while(1){i[(c<<2)+j>>2]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}pn(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}e=g[d+24|0];m=e<<2;j=Dm((e|0)!=(e&1073741823)?-1:m);c=i[a+16>>2];d=0;k:{if(!i[c+80>>2]){break k}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((e|0)>0){while(1){i[(c<<2)+j>>2]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}pn(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}e=g[d+24|0];d=e+e|0;j=Dm(d>>>0>>0?-1:d);c=i[a+16>>2];d=0;l:{if(!i[c+80>>2]){break l}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}m=e<<1;while(1){c=0;if((e|0)>0){while(1){h[(c<<1)+j>>1]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}pn(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}e=g[d+24|0];d=e+e|0;j=Dm(d>>>0>>0?-1:d);c=i[a+16>>2];d=0;m:{if(!i[c+80>>2]){break m}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}m=e<<1;while(1){c=0;if((e|0)>0){while(1){h[(c<<1)+j>>1]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}pn(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}f=g[d+24|0];j=Dm((f|0)>-1?f:-1);c=i[a+16>>2];d=0;n:{if(!i[c+80>>2]){break n}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((f|0)>0){while(1){g[c+j|0]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}pn(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,f);l=f+l|0;e=e+1|0;if((e|0)!=(b|0)){continue}break}}nn(j);j=1}return j|0}function jl(a,b){var c=0,d=0,e=0,f=0,h=0,k=0;a:{b:{d=b;h=i[b>>2];if(h){c=i[b+4>>2];if(!c){break b}while(1){d=c;c=i[c>>2];if(c){continue}break}}h=i[d+4>>2];if(h){break b}h=0;e=1;break a}i[h+8>>2]=i[d+8>>2];e=0}f=i[d+8>>2];c=i[f>>2];c:{if((d|0)==(c|0)){i[f>>2]=h;if((a|0)==(d|0)){c=0;a=h;break c}c=i[f+4>>2];break c}i[f+4>>2]=h}d:{e:{f:{k=!j[d+12|0];if((b|0)!=(d|0)){f=i[b+8>>2];i[d+8>>2]=f;i[f+((i[i[b+8>>2]>>2]!=(b|0))<<2)>>2]=d;f=i[b>>2];i[d>>2]=f;i[f+8>>2]=d;f=i[b+4>>2];i[d+4>>2]=f;if(f){i[f+8>>2]=d}g[d+12|0]=j[b+12|0];a=(a|0)==(b|0)?d:a}if(!(k|!a)){if(e){while(1){b=j[c+12|0];g:{e=i[c+8>>2];if(i[e>>2]!=(c|0)){if(!b){g[c+12|0]=1;g[e+12|0]=0;d=i[e+4>>2];b=i[d>>2];i[e+4>>2]=b;if(b){i[b+8>>2]=e}i[d+8>>2]=i[e+8>>2];b=i[e+8>>2];i[(((e|0)!=i[b>>2])<<2)+b>>2]=d;i[d>>2]=e;i[e+8>>2]=d;b=i[c>>2];a=(b|0)==(a|0)?c:a;c=i[b+4>>2]}d=i[c>>2];if(!(j[d+12|0]?0:d)){b=i[c+4>>2];if(j[b+12|0]?0:b){break f}g[c+12|0]=0;c=i[c+8>>2];h:{if((c|0)==(a|0)){c=a;break h}if(j[c+12|0]){break g}}g[c+12|0]=1;return}b=i[c+4>>2];if(b){break f}break e}i:{if(b){b=c;break i}g[c+12|0]=1;g[e+12|0]=0;b=i[c+4>>2];i[e>>2]=b;if(b){i[b+8>>2]=e}i[c+8>>2]=i[e+8>>2];d=i[e+8>>2];j:{if((e|0)==i[d>>2]){i[d>>2]=c;b=i[e>>2];break j}i[d+4>>2]=c}i[c+4>>2]=e;i[e+8>>2]=c;a=(a|0)==(e|0)?c:a}d=i[b>>2];k:{if(!(!d|j[d+12|0])){c=b;break k}c=i[b+4>>2];if(!(j[c+12|0]?0:c)){g[b+12|0]=0;c=i[b+8>>2];if(j[c+12|0]?(c|0)!=(a|0):0){break g}g[c+12|0]=1;return}if(d){if(!j[d+12|0]){c=b;break k}c=i[b+4>>2]}g[c+12|0]=1;g[b+12|0]=0;a=i[c>>2];i[b+4>>2]=a;if(a){i[a+8>>2]=b}i[c+8>>2]=i[b+8>>2];a=i[b+8>>2];i[((i[a>>2]!=(b|0))<<2)+a>>2]=c;i[c>>2]=b;i[b+8>>2]=c;d=b}a=c;c=i[c+8>>2];g[a+12|0]=j[c+12|0];g[c+12|0]=1;g[d+12|0]=1;b=i[c>>2];a=i[b+4>>2];i[c>>2]=a;if(a){i[a+8>>2]=c}i[b+8>>2]=i[c+8>>2];a=i[c+8>>2];i[(((c|0)!=i[a>>2])<<2)+a>>2]=b;i[b+4>>2]=c;i[c+8>>2]=b;return}b=i[c+8>>2];c=i[((i[b>>2]==(c|0))<<2)+b>>2];continue}}g[h+12|0]=1}return}if(j[b+12|0]){break e}d=c;break d}g[d+12|0]=1;g[c+12|0]=0;a=i[d+4>>2];i[c>>2]=a;if(a){i[a+8>>2]=c}i[d+8>>2]=i[c+8>>2];a=i[c+8>>2];i[((i[a>>2]!=(c|0))<<2)+a>>2]=d;i[d+4>>2]=c;i[c+8>>2]=d;b=c}c=i[d+8>>2];g[d+12|0]=j[c+12|0];g[c+12|0]=1;g[b+12|0]=1;b=i[c+4>>2];a=i[b>>2];i[c+4>>2]=a;if(a){i[a+8>>2]=c}i[b+8>>2]=i[c+8>>2];a=i[c+8>>2];i[(((c|0)!=i[a>>2])<<2)+a>>2]=b;i[b>>2]=c;i[c+8>>2]=b}function Ck(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;k=J-48|0;J=k;i[a+36>>2]=b;p=a+24|0;d=i[a+24>>2];c=i[a+28>>2]-d>>2;a:{if(c>>>0>>0){Dk(p,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+28>>2]=d+(b<<2)}g[k+16|0]=0;l=Ek(k+32|0,b,k+16|0);c=i[a>>2];d=i[a+4>>2];g[k+8|0]=0;q=Ek(k+16|0,d-c>>2,k+8|0);b:{h=i[a+4>>2];c=i[a>>2];if(h-c>>2>>>0<3){break b}t=a+48|0;while(1){m=o(r,3);e=i[(m<<2)+c>>2];d=m+1|0;c:{d:{if((d|0)==-1){j=0;f=-1;break d}f=i[(d<<2)+c>>2];j=m+2|0;d=-1;if((j|0)==-1){break c}}d=i[(j<<2)+c>>2]}e:{if(!((d|0)==(f|0)|(e|0)==(f|0)|(d|0)==(e|0))){j=i[q>>2];n=0;while(1){d=m+n|0;f:{if(i[(d>>>3&536870908)+j>>2]>>>d&1){break f}h=i[i[a>>2]+(d<<2)>>2];i[k+8>>2]=h;c=1<>2];f=h>>>5|0;j=i[e+(f<<2)>>2];s=c&j;if(s){$f(p,14284);Fk(t,k+8|0);c=i[l+4>>2];f=i[l+8>>2];if((c|0)==f<<5){if((c+1|0)<=-1){break e}e=l;if(c>>>0<=1073741822){h=c+32&-32;c=f<<6;c=c>>>0>>0?h:c}else{c=2147483647}Qc(e,c);c=i[l+4>>2]}i[l+4>>2]=c+1;e=i[l>>2];f=e+(c>>>3&536870908)|0;h=i[f>>2];u=f,v=Kn(c)&h,i[u>>2]=v;i[k+8>>2]=b;c=1<>>5|0;j=i[(f<<2)+e>>2];b=b+1|0}i[(f<<2)+e>>2]=c|j;j=i[q>>2];c=d;g:{while(1){if((c|0)==-1){break g}e=(c>>>3&536870908)+j|0;i[e>>2]=i[e>>2]|1<>2];i[i[p>>2]+(e<<2)>>2]=c;if(s){i[i[a>>2]+(c<<2)>>2]=e}h=d;f=c+1|0;c=(f>>>0)%3|0?f:c+ -2|0;e=-1;h:{if((c|0)==-1){break h}f=i[i[a+12>>2]+(c<<2)>>2];e=-1;if((f|0)==-1){break h}c=f+1|0;e=(c>>>0)%3|0?c:f+ -2|0}c=e;if((h|0)!=(c|0)){continue}break}if((d|0)!=-1){break f}}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)==-1){break f}d=i[i[a+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)==-1){break f}while(1){d=(c>>>3&536870908)+j|0;i[d>>2]=i[d>>2]|1<>2]+(c<<2)>>2]=i[k+8>>2]}d=((c>>>0)%3|0?-1:2)+c|0;if((d|0)==-1){break f}d=i[i[a+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)!=-1){continue}break}}n=n+1|0;if((n|0)!=3){continue}break}c=i[a>>2];h=i[a+4>>2]}r=r+1|0;if(r>>>0<(h-c>>2>>>0)/3>>>0){continue}break b}break}Sm();x()}j=0;i[a+44>>2]=0;b=i[l>>2];c=i[l+4>>2];d=c>>>5|0;f=c&31;if(d|f){h=(d<<2)+b|0;c=0;e=b;while(1){if(!(i[e>>2]>>>c&1)){j=j+1|0;i[a+44>>2]=j}d=(c|0)==31;c=d?0:c+1|0;e=d?e+4|0:e;if((h|0)!=(e|0)|(c|0)!=(f|0)){continue}break}}a=i[q>>2];if(a){nn(a);b=i[l>>2]}if(b){nn(b)}J=k+48|0}function Pa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;g=J-96|0;J=g;a:{b:{if(j[i[a+28>>2]+36|0]<=1){f=i[b+12>>2];c=i[b+20>>2];h=i[b+16>>2];d=h+4|0;if(d>>>0<4){c=c+1|0}e=d;d=c;if((f|0)<(c|0)?1:(f|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=h+i[b>>2]|0;h=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=e;i[b+20>>2]=d;break b}if(!Qa(1,g+92|0,b)){break a}h=i[g+92>>2]}if(!h){break a}d=i[b+8>>2];c=i[b+16>>2];c=Gn(d-c|0,i[b+12>>2]-(i[b+20>>2]+(d>>>0>>0)|0)|0,5,0)>>>0>>0;d=L;if((d|0)<0?1:(d|0)<=0?c:0){break a}c=i[a+4>>2];d=i[a+8>>2]-c>>2;c:{if(h>>>0>d>>>0){Ra(a+4|0,h-d|0);break c}if(h>>>0>=d>>>0){break c}i[a+8>>2]=c+(h<<2)}y=h>>>0>1?h:1;u=a+16|0;v=i[a+32>>2];w=1;while(1){d:{q=i[b+8>>2];m=i[b+16>>2];e=i[b+12>>2];c=e;d=i[b+20>>2];if((c|0)<(d|0)?1:(c|0)<=(d|0)?q>>>0<=m>>>0:0){break d}s=i[b>>2];x=j[s+m|0];c=d;n=m+1|0;if(n>>>0<1){c=c+1|0}f=b;i[b+16>>2]=n;i[b+20>>2]=c;if((e|0)<(c|0)?1:(e|0)<=(c|0)?q>>>0<=n>>>0:0){break d}n=j[n+s|0];c=d;p=m+2|0;if(p>>>0<2){c=c+1|0}i[b+16>>2]=p;i[f+20>>2]=c;if((e|0)<(c|0)?1:(e|0)<=(c|0)?q>>>0<=p>>>0:0){break d}p=j[p+s|0];c=d;t=m+3|0;if(t>>>0<3){c=c+1|0}i[b+16>>2]=t;i[f+20>>2]=c;if((e|0)<(c|0)?1:(e|0)<=(c|0)?q>>>0<=t>>>0:0){break d}e=j[t+s|0];c=d;d=m+4|0;if(d>>>0<4){c=c+1|0}i[b+16>>2]=d;i[f+20>>2]=c;if(!p|(x>>>0>4|(n+ -1&255)>>>0>10)){break d}m=Ea(g+24|0);d=o(Fh(n),p);Fa(m,x,p<<24>>24,n,(e|0)!=0,d,d>>31);d=k[i[a+28>>2]+36>>1];e:{if((d<<24|d<<8&16711680)>>>16>>>0<=258){f=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];d=e+2|0;if(d>>>0<2){c=c+1|0}q=d;d=c;if((f|0)<(c|0)?1:(f|0)<=(c|0)?l[b+8>>2]>>0:0){break d}c=e+i[b>>2]|0;c=j[c|0]|j[c+1|0]<<8;i[b+16>>2]=q;i[b+20>>2]=d;i[g+20>>2]=c;break e}if(!Qa(1,g+20|0,b)){break d}c=i[g+20>>2]}i[g+84>>2]=c;d=Dm(96);Ja(d,m);i[g+16>>2]=d;d=pl(v,g+16|0);f=i[g+16>>2];i[g+16>>2]=0;if(f){Sa(f)}e=d<<2;i[i[e+i[v+8>>2]>>2]+60>>2]=c;i[i[a+4>>2]+(r<<2)>>2]=d;c=i[a+16>>2];f=i[a+20>>2]-c>>2;f:{if((d|0)<(f|0)){break f}i[g+12>>2]=-1;d=d+1|0;if(d>>>0>f>>>0){Ta(u,d-f|0,g+12|0);c=i[u>>2];break f}if(d>>>0>=f>>>0){break f}i[a+20>>2]=(d<<2)+c}i[c+e>>2]=r;r=r+1|0;w=r>>>0>>0;if((r|0)!=(y|0)){continue}}break}r=w^1}J=g+96|0;return r&1}function xl(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0;h=J-672|0;J=h;g=i[b+12>>2];a:{e=i[b+20>>2];f=i[b+16>>2];d=f+4|0;if(d>>>0<4){e=e+1|0}b:{if((g|0)<(e|0)?1:(g|0)<=(e|0)?l[b+8>>2]>>0:0){break b}d=f+i[b>>2]|0;k=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=k;d=i[b+20>>2];g=d;n=i[b+16>>2];e=n+4|0;if(e>>>0<4){d=d+1|0}i[b+16>>2]=e;i[b+20>>2]=d;if(k>>>0>31){break b}f=i[b+12>>2];d=n+8|0;if(d>>>0<8){g=g+1|0}if((f|0)<(g|0)?1:(f|0)<=(g|0)?l[b+8>>2]>>0:0){break b}d=e+i[b>>2]|0;i[a+4>>2]=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);d=i[b+20>>2];g=d;n=i[b+16>>2];e=n+4|0;if(e>>>0<4){d=d+1|0}i[b+16>>2]=e;i[b+20>>2]=d;k=i[b+12>>2];d=g;f=n+8|0;if(f>>>0<8){d=d+1|0}if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]>>0:0){break b}d=e+i[b>>2]|0;k=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+12>>2]=k;g=i[b+20>>2];f=g;d=b;p=d;n=i[d+16>>2];e=n+4|0;if(e>>>0<4){g=g+1|0}i[p+16>>2]=e;i[d+20>>2]=g;d=i[a+20>>2];if((d|0)!=(k|0)?d:0){break b}g=i[b+12>>2];d=f;f=n+8|0;if(f>>>0<8){d=d+1|0}if((g|0)<(d|0)?1:(g|0)<=(d|0)?l[b+8>>2]>>0:0){break b}d=e+i[b>>2]|0;g=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+16>>2]=g;d=b;p=d;e=i[d+20>>2];f=i[d+16>>2]+4|0;if(f>>>0<4){e=e+1|0}i[p+16>>2]=f;i[d+20>>2]=e;if(g>>>0>=7){i[h>>2]=g;wn(14876,h);break b}i[h+664>>2]=c;c:{if(!k){break c}e=i[c>>2];d:{if((i[c+8>>2]-e|0)/12>>>0>=k>>>0){break d}if(k>>>0>=357913942){break a}m=i[c+4>>2];d=o(k,12);f=Dm(d);g=d+f|0;d=f+o((m-e|0)/12|0,12)|0;f=d;if((e|0)!=(m|0)){f=d;while(1){f=f+ -12|0;m=m+ -12|0;i[f>>2]=i[m>>2];i[f+4>>2]=i[m+4>>2];i[f+8>>2]=i[m+8>>2];if((e|0)!=(m|0)){continue}break}}i[c+8>>2]=g;i[c+4>>2]=d;i[c>>2]=f;if(!e){break d}nn(e)}m=0;e:{switch(i[a+16>>2]){case 0:d=gb(h+8|0,3);yl(d,b,h+664|0);fb(d);break c;case 1:d=gb(h+8|0,3);zl(d,b,h+664|0);fb(d);break c;case 2:d=kb(h+8|0,3);Al(d,b,h+664|0);jb(d);break c;case 3:d=kb(h+8|0,3);Bl(d,b,h+664|0);jb(d);break c;case 4:d=ob(h+8|0,3);Cl(d,b,h+664|0);nb(d);break c;case 5:d=ob(h+8|0,3);Dl(d,b,h+664|0);nb(d);break c;case 6:break e;default:break b}}d=ob(h+8|0,3);El(d,b,h+664|0);nb(d)}m=i[a+12>>2]==((i[c+4>>2]-i[c>>2]|0)/12|0)}J=h+672|0;return m}Ba(14937);x()}function ke(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0;g=J-48|0;J=g;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;e=i[a+40>>2];f=i[e>>2];h=i[e+4>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{j=h-f|0;if((j|0)<1){break a}d=i[e>>2];if((d|0)!=i[e+4>>2]){o=a+8|0;q=a+44|0;e=f-h|0;e=((e|0)>(j|0)?e:j)>>>2|0;r=e>>>0>1?e:1;s=a+96|0;while(1){Id(q,i[(l<<2)+d>>2],g+8|0);e=i[g+12>>2];h=e>>31;f=i[g+8>>2];j=f>>31;n=i[g+16>>2];k=n>>31;d=0;k=k^k+n;h=k+((h^e+h)+(j^f+j)|0)|0;if(h>>>0>>0){d=1}b:{if(!(d|h)){i[g+8>>2]=i[a+92>>2];break b}j=i[a+92>>2];k=j>>31;e=Hn(Gn(j,k,e,e>>31),L,h,d);i[g+12>>2]=e;d=Hn(Gn(j,k,f,f>>31),L,h,d);i[g+8>>2]=d;if((n|0)>=0){i[g+16>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[g+16>>2]=f+(d+e^d)}d=Ce(s);f=i[g+8>>2];if(d){i[g+16>>2]=0-i[g+16>>2];i[g+12>>2]=0-i[g+12>>2];f=0-f|0;i[g+8>>2]=f}e=i[g+12>>2];c:{if((f|0)>=0){d=i[a+92>>2];f=d+i[g+16>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[g+16>>2];d=f>>31;d=d^d+f;break d}f=i[g+16>>2];d=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+84>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+84>>2];e=f;break e}h=i[a+84>>2];f:{g:{h:{if(!d){if((f|0)==(h|0)){e=f;break e}e=0;if(f|h){break h}f=0;break e}if(!((d|0)!=(h|0)|f)){f=d;e=d;break e}if((d|0)!=(h|0)){break f}j=i[a+92>>2];break g}j=i[a+92>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(h){break f}}h=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(h|0)){break i}e=i[a+92>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+92>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}d=l<<3;h=d+b|0;j=i[h+4>>2];h=i[h>>2];i[g+36>>2]=f;i[g+32>>2]=e;i[g+24>>2]=h;i[g+28>>2]=j;ge(g+40|0,o,g+32|0,g+24|0);d=c+d|0;i[d>>2]=i[g+40>>2];i[d+4>>2]=i[g+44>>2];l=l+1|0;if((r|0)==(l|0)){break a}e=i[a+40>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>l>>>0){continue}break}}Tm();x()}J=g+48|0;return 1}function fe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0;g=J-48|0;J=g;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;e=i[a+40>>2];f=i[e>>2];h=i[e+4>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{j=h-f|0;if((j|0)<1){break a}d=i[e>>2];if((d|0)!=i[e+4>>2]){o=a+8|0;q=a+44|0;e=f-h|0;e=((e|0)>(j|0)?e:j)>>>2|0;r=e>>>0>1?e:1;s=a+96|0;while(1){od(q,i[(l<<2)+d>>2],g+8|0);e=i[g+12>>2];h=e>>31;f=i[g+8>>2];j=f>>31;n=i[g+16>>2];k=n>>31;d=0;k=k^k+n;h=k+((h^e+h)+(j^f+j)|0)|0;if(h>>>0>>0){d=1}b:{if(!(d|h)){i[g+8>>2]=i[a+92>>2];break b}j=i[a+92>>2];k=j>>31;e=Hn(Gn(j,k,e,e>>31),L,h,d);i[g+12>>2]=e;d=Hn(Gn(j,k,f,f>>31),L,h,d);i[g+8>>2]=d;if((n|0)>=0){i[g+16>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[g+16>>2]=f+(d+e^d)}d=Ce(s);f=i[g+8>>2];if(d){i[g+16>>2]=0-i[g+16>>2];i[g+12>>2]=0-i[g+12>>2];f=0-f|0;i[g+8>>2]=f}e=i[g+12>>2];c:{if((f|0)>=0){d=i[a+92>>2];f=d+i[g+16>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[g+16>>2];d=f>>31;d=d^d+f;break d}f=i[g+16>>2];d=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+84>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+84>>2];e=f;break e}h=i[a+84>>2];f:{g:{h:{if(!d){if((f|0)==(h|0)){e=f;break e}e=0;if(f|h){break h}f=0;break e}if(!((d|0)!=(h|0)|f)){f=d;e=d;break e}if((d|0)!=(h|0)){break f}j=i[a+92>>2];break g}j=i[a+92>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(h){break f}}h=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(h|0)){break i}e=i[a+92>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+92>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}d=l<<3;h=d+b|0;j=i[h+4>>2];h=i[h>>2];i[g+36>>2]=f;i[g+32>>2]=e;i[g+24>>2]=h;i[g+28>>2]=j;ge(g+40|0,o,g+32|0,g+24|0);d=c+d|0;i[d>>2]=i[g+40>>2];i[d+4>>2]=i[g+44>>2];l=l+1|0;if((r|0)==(l|0)){break a}e=i[a+40>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>l>>>0){continue}break}}Tm();x()}J=g+48|0;return 1}function ae(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0;g=J-48|0;J=g;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;e=i[a+40>>2];f=i[e>>2];h=i[e+4>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{j=h-f|0;if((j|0)<1){break a}d=i[e>>2];if((d|0)!=i[e+4>>2]){o=a+8|0;q=a+44|0;e=f-h|0;e=((e|0)>(j|0)?e:j)>>>2|0;r=e>>>0>1?e:1;s=a+96|0;while(1){Id(q,i[(l<<2)+d>>2],g+8|0);e=i[g+12>>2];h=e>>31;f=i[g+8>>2];j=f>>31;n=i[g+16>>2];k=n>>31;d=0;k=k^k+n;h=k+((h^e+h)+(j^f+j)|0)|0;if(h>>>0>>0){d=1}b:{if(!(d|h)){i[g+8>>2]=i[a+92>>2];break b}j=i[a+92>>2];k=j>>31;e=Hn(Gn(j,k,e,e>>31),L,h,d);i[g+12>>2]=e;d=Hn(Gn(j,k,f,f>>31),L,h,d);i[g+8>>2]=d;if((n|0)>=0){i[g+16>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[g+16>>2]=f+(d+e^d)}d=Ce(s);f=i[g+8>>2];if(d){i[g+16>>2]=0-i[g+16>>2];i[g+12>>2]=0-i[g+12>>2];f=0-f|0;i[g+8>>2]=f}e=i[g+12>>2];c:{if((f|0)>=0){d=i[a+92>>2];f=d+i[g+16>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[g+16>>2];d=f>>31;d=d^d+f;break d}f=i[g+16>>2];d=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+84>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+84>>2];e=f;break e}h=i[a+84>>2];f:{g:{h:{if(!d){if((f|0)==(h|0)){e=f;break e}e=0;if(f|h){break h}f=0;break e}if(!((d|0)!=(h|0)|f)){f=d;e=d;break e}if((d|0)!=(h|0)){break f}j=i[a+92>>2];break g}j=i[a+92>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(h){break f}}h=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(h|0)){break i}e=i[a+92>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+92>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}d=l<<3;h=d+b|0;j=i[h+4>>2];i[g+40>>2]=i[h>>2];i[g+44>>2]=j;i[g+28>>2]=f;i[g+24>>2]=e;Yd(g+32|0,o,g+24|0,g+40|0);d=c+d|0;i[d>>2]=i[g+32>>2];i[d+4>>2]=i[g+36>>2];l=l+1|0;if((r|0)==(l|0)){break a}e=i[a+40>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>l>>>0){continue}break}}Tm();x()}J=g+48|0;return 1}function Xd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0;g=J-48|0;J=g;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;e=i[a+40>>2];f=i[e>>2];h=i[e+4>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{j=h-f|0;if((j|0)<1){break a}d=i[e>>2];if((d|0)!=i[e+4>>2]){o=a+8|0;q=a+44|0;e=f-h|0;e=((e|0)>(j|0)?e:j)>>>2|0;r=e>>>0>1?e:1;s=a+96|0;while(1){od(q,i[(l<<2)+d>>2],g+8|0);e=i[g+12>>2];h=e>>31;f=i[g+8>>2];j=f>>31;n=i[g+16>>2];k=n>>31;d=0;k=k^k+n;h=k+((h^e+h)+(j^f+j)|0)|0;if(h>>>0>>0){d=1}b:{if(!(d|h)){i[g+8>>2]=i[a+92>>2];break b}j=i[a+92>>2];k=j>>31;e=Hn(Gn(j,k,e,e>>31),L,h,d);i[g+12>>2]=e;d=Hn(Gn(j,k,f,f>>31),L,h,d);i[g+8>>2]=d;if((n|0)>=0){i[g+16>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[g+16>>2]=f+(d+e^d)}d=Ce(s);f=i[g+8>>2];if(d){i[g+16>>2]=0-i[g+16>>2];i[g+12>>2]=0-i[g+12>>2];f=0-f|0;i[g+8>>2]=f}e=i[g+12>>2];c:{if((f|0)>=0){d=i[a+92>>2];f=d+i[g+16>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[g+16>>2];d=f>>31;d=d^d+f;break d}f=i[g+16>>2];d=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+84>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+84>>2];e=f;break e}h=i[a+84>>2];f:{g:{h:{if(!d){if((f|0)==(h|0)){e=f;break e}e=0;if(f|h){break h}f=0;break e}if(!((d|0)!=(h|0)|f)){f=d;e=d;break e}if((d|0)!=(h|0)){break f}j=i[a+92>>2];break g}j=i[a+92>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(h){break f}}h=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(h|0)){break i}e=i[a+92>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+92>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}d=l<<3;h=d+b|0;j=i[h+4>>2];i[g+40>>2]=i[h>>2];i[g+44>>2]=j;i[g+28>>2]=f;i[g+24>>2]=e;Yd(g+32|0,o,g+24|0,g+40|0);d=c+d|0;i[d>>2]=i[g+32>>2];i[d+4>>2]=i[g+36>>2];l=l+1|0;if((r|0)==(l|0)){break a}e=i[a+40>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>l>>>0){continue}break}}Tm();x()}J=g+48|0;return 1}function Wk(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0;d=J-48|0;J=d;c=Dm(8);i[c+4>>2]=b;i[c>>2]=0;b=c+8|0;i[d+40>>2]=b;i[d+36>>2]=b;i[d+32>>2]=c;a:{b:{c:{d:{while(1){b=b+ -8|0;m=i[b+4>>2];q=i[b>>2];i[d+36>>2]=b;if(q){i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;n=1;b=i[a>>2];h=i[b+16>>2];f=i[b+12>>2];c=i[b+20>>2];e:{if((f|0)<(c|0)?1:(f|0)<=(c|0)?l[b+8>>2]<=h>>>0:0){break e}e=j[h+i[b>>2]|0];f=h+1|0;if(f>>>0<1){c=c+1|0}i[b+16>>2]=f;i[b+20>>2]=c;Lm(d+16|0,e);if(e){f=i[a>>2];p=Pm(d+16|0);k=i[f+12>>2];h=i[f+20>>2];o=i[f+16>>2];b=e;c=o+b|0;if(c>>>0>>0){h=h+1|0}if((k|0)<(h|0)?1:(k|0)<=(h|0)?l[f+8>>2]>>0:0){break e}pn(p,o+i[f>>2]|0,e);c=f;f=c;h=i[c+20>>2];e=b+i[c+16>>2]|0;if(e>>>0>>0){h=h+1|0}i[f+16>>2]=e;i[c+20>>2]=h}m=Dm(24);b=m;i[b+4>>2]=0;i[b+8>>2]=0;i[b+16>>2]=0;i[b+20>>2]=0;i[b>>2]=b+4;i[b+12>>2]=b+16;i[d+8>>2]=b;b=il(q,d+16|0,d+8|0);c=i[d+8>>2];i[d+8>>2]=0;if(c){qh(c+12|0,i[c+16>>2]);rh(c,i[c+4>>2]);nn(c)}n=b^1}if(g[d+27|0]<=-1){nn(i[d+16>>2])}if(n){break b}}if(!m){break b}i[d+16>>2]=0;if(!Xk(1,d+16|0,i[a>>2])){break b}b=0;c=i[d+16>>2];if(c){while(1){if(!Yk(a,m)){break b}b=b+1|0;if((c|0)!=(b|0)){continue}break}}i[d+4>>2]=0;if(!Xk(1,d+4|0,i[a>>2])){break b}e=i[a>>2];c=i[e+8>>2];b=i[e+16>>2];p=i[d+4>>2];f=c-b>>>0

>>0;b=i[e+12>>2]-(i[e+20>>2]+(c>>>0>>0)|0)|0;if((b|0)<0?1:(b|0)<=0?f:0){break b}if(p){n=0;while(1){b=i[d+36>>2];c=i[d+40>>2];f:{if(b>>>0>>0){i[b+4>>2]=0;i[b>>2]=m;i[d+36>>2]=b+8;break f}k=i[d+32>>2];o=b-k|0;b=o>>3;h=b+1|0;if(h>>>0>=536870912){break d}f=b<<3;e=c-k|0;c=e>>2;e=e>>3>>>0<268435455?c>>>0>>0?h:c:536870911;b=0;g:{if(!e){break g}if(e>>>0>=536870912){break c}b=Dm(e<<3)}c=f+b|0;i[c+4>>2]=0;i[c>>2]=m;e=b+(e<<3)|0;c=c+8|0;if((o|0)>=1){pn(b,k,o)}i[d+40>>2]=e;i[d+36>>2]=c;i[d+32>>2]=b;if(!k){break f}nn(k)}n=n+1|0;if((p|0)!=(n|0)){continue}break}}b=i[d+36>>2];c=i[d+32>>2];if((b|0)!=(c|0)){continue}break}a=1;break a}Sm();x()}Ba(14616);x()}c=i[d+32>>2];a=0}if(c){i[d+36>>2]=c;nn(c)}J=d+48|0;return a}function of(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{c=k[b+38>>1];if(!c){break a}b:{if(c>>>0<=511){d=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];f=e+4|0;if(f>>>0<4){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[a+12>>2]=f;d=i[b+20>>2];e=i[b+16>>2]+4|0;if(e>>>0<4){d=d+1|0}c=b;i[c+16>>2]=e;i[c+20>>2]=d;break b}c=a+12|0;if(!af(1,c,b)){break a}f=i[c>>2]}d=i[a>>2];c=i[a+4>>2]-d>>2;c:{if(f>>>0>c>>>0){ye(a,f-c|0);f=i[a+12>>2];break c}if(f>>>0>=c>>>0){break c}i[a+4>>2]=d+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];m=i[b+12>>2];while(1){e=i[b+16>>2];c=i[b+20>>2];if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];n=j[p+e|0];e=e+1|0;if(e>>>0<1){c=c+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=c;d=n>>>2|0;e=0;d:{e:{f:{g:{q=n&3;switch(q|0){case 3:break g;case 0:break e;default:break f}}c=d+g|0;if(c>>>0>=f>>>0){return 0}qn(i[a>>2]+(g<<2)|0,0,(n&252)+4|0);g=c;break d}while(1){if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=h>>>0:0){return 0}n=j[h+p|0];h=h+1|0;if(h>>>0<1){c=c+1|0}i[b+16>>2]=h;i[b+20>>2]=c;d=n<<(e<<3|6)|d;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=d}g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}m=a+16|0;g=i[a>>2];b=i[a+16>>2];c=i[a+20>>2]-b|0;d=c>>2;h:{if(d>>>0<=1048575){ye(m,1048576-d|0);break h}if((c|0)==4194304){break h}i[a+20>>2]=b+4194304}i:{j:{b=a+28|0;c=i[b>>2];d=i[a+32>>2]-c>>3;if(f>>>0>d>>>0){bf(b,f-d|0);c=i[b>>2];break j}if(f>>>0>>0){i[a+32>>2]=(f<<3)+c}if(f){break j}b=0;a=0;break i}a=i[g>>2];e=0;i[c+4>>2]=0;i[c>>2]=a;b=1;d=i[g>>2];if(d>>>0<=1048576){b=0;while(1){k:{if(e>>>0>>0){a=i[m>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((d|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+c|0;i[h+4>>2]=d;i[h>>2]=e;e=d;d=d+i[a>>2]|0;if(d>>>0>1048576){break k}continue}}break}b=b>>>0>>0}a=(d|0)==1048576}return a&(b^1)}return r}function kf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{c=k[b+38>>1];if(!c){break a}b:{if(c>>>0<=511){d=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];f=e+4|0;if(f>>>0<4){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[a+12>>2]=f;d=i[b+20>>2];e=i[b+16>>2]+4|0;if(e>>>0<4){d=d+1|0}c=b;i[c+16>>2]=e;i[c+20>>2]=d;break b}c=a+12|0;if(!af(1,c,b)){break a}f=i[c>>2]}d=i[a>>2];c=i[a+4>>2]-d>>2;c:{if(f>>>0>c>>>0){ye(a,f-c|0);f=i[a+12>>2];break c}if(f>>>0>=c>>>0){break c}i[a+4>>2]=d+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];m=i[b+12>>2];while(1){e=i[b+16>>2];c=i[b+20>>2];if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];n=j[p+e|0];e=e+1|0;if(e>>>0<1){c=c+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=c;d=n>>>2|0;e=0;d:{e:{f:{g:{q=n&3;switch(q|0){case 3:break g;case 0:break e;default:break f}}c=d+g|0;if(c>>>0>=f>>>0){return 0}qn(i[a>>2]+(g<<2)|0,0,(n&252)+4|0);g=c;break d}while(1){if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=h>>>0:0){return 0}n=j[h+p|0];h=h+1|0;if(h>>>0<1){c=c+1|0}i[b+16>>2]=h;i[b+20>>2]=c;d=n<<(e<<3|6)|d;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=d}g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}m=a+16|0;g=i[a>>2];b=i[a+16>>2];c=i[a+20>>2]-b|0;d=c>>2;h:{if(d>>>0<=262143){ye(m,262144-d|0);break h}if((c|0)==1048576){break h}i[a+20>>2]=b- -1048576}i:{j:{b=a+28|0;c=i[b>>2];d=i[a+32>>2]-c>>3;if(f>>>0>d>>>0){bf(b,f-d|0);c=i[b>>2];break j}if(f>>>0>>0){i[a+32>>2]=(f<<3)+c}if(f){break j}b=0;a=0;break i}a=i[g>>2];e=0;i[c+4>>2]=0;i[c>>2]=a;b=1;d=i[g>>2];if(d>>>0<=262144){b=0;while(1){k:{if(e>>>0>>0){a=i[m>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((d|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+c|0;i[h+4>>2]=d;i[h>>2]=e;e=d;d=d+i[a>>2]|0;if(d>>>0>262144){break k}continue}}break}b=b>>>0>>0}a=(d|0)==262144}return a&(b^1)}return r}function mf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{c=k[b+38>>1];if(!c){break a}b:{if(c>>>0<=511){d=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];f=e+4|0;if(f>>>0<4){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[a+12>>2]=f;d=i[b+20>>2];e=i[b+16>>2]+4|0;if(e>>>0<4){d=d+1|0}c=b;i[c+16>>2]=e;i[c+20>>2]=d;break b}c=a+12|0;if(!af(1,c,b)){break a}f=i[c>>2]}d=i[a>>2];c=i[a+4>>2]-d>>2;c:{if(f>>>0>c>>>0){ye(a,f-c|0);f=i[a+12>>2];break c}if(f>>>0>=c>>>0){break c}i[a+4>>2]=d+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];m=i[b+12>>2];while(1){e=i[b+16>>2];c=i[b+20>>2];if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];n=j[p+e|0];e=e+1|0;if(e>>>0<1){c=c+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=c;d=n>>>2|0;e=0;d:{e:{f:{g:{q=n&3;switch(q|0){case 3:break g;case 0:break e;default:break f}}c=d+g|0;if(c>>>0>=f>>>0){return 0}qn(i[a>>2]+(g<<2)|0,0,(n&252)+4|0);g=c;break d}while(1){if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=h>>>0:0){return 0}n=j[h+p|0];h=h+1|0;if(h>>>0<1){c=c+1|0}i[b+16>>2]=h;i[b+20>>2]=c;d=n<<(e<<3|6)|d;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=d}g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}m=a+16|0;g=i[a>>2];b=i[a+16>>2];c=i[a+20>>2]-b|0;d=c>>2;h:{if(d>>>0<=524287){ye(m,524288-d|0);break h}if((c|0)==2097152){break h}i[a+20>>2]=b+2097152}i:{j:{b=a+28|0;c=i[b>>2];d=i[a+32>>2]-c>>3;if(f>>>0>d>>>0){bf(b,f-d|0);c=i[b>>2];break j}if(f>>>0>>0){i[a+32>>2]=(f<<3)+c}if(f){break j}b=0;a=0;break i}a=i[g>>2];e=0;i[c+4>>2]=0;i[c>>2]=a;b=1;d=i[g>>2];if(d>>>0<=524288){b=0;while(1){k:{if(e>>>0>>0){a=i[m>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((d|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+c|0;i[h+4>>2]=d;i[h>>2]=e;e=d;d=d+i[a>>2]|0;if(d>>>0>524288){break k}continue}}break}b=b>>>0>>0}a=(d|0)==524288}return a&(b^1)}return r}function hf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{c=k[b+38>>1];if(!c){break a}b:{if(c>>>0<=511){d=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];f=e+4|0;if(f>>>0<4){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[a+12>>2]=f;d=i[b+20>>2];e=i[b+16>>2]+4|0;if(e>>>0<4){d=d+1|0}c=b;i[c+16>>2]=e;i[c+20>>2]=d;break b}c=a+12|0;if(!af(1,c,b)){break a}f=i[c>>2]}d=i[a>>2];c=i[a+4>>2]-d>>2;c:{if(f>>>0>c>>>0){ye(a,f-c|0);f=i[a+12>>2];break c}if(f>>>0>=c>>>0){break c}i[a+4>>2]=d+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];m=i[b+12>>2];while(1){e=i[b+16>>2];c=i[b+20>>2];if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];n=j[p+e|0];e=e+1|0;if(e>>>0<1){c=c+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=c;d=n>>>2|0;e=0;d:{e:{f:{g:{q=n&3;switch(q|0){case 3:break g;case 0:break e;default:break f}}c=d+g|0;if(c>>>0>=f>>>0){return 0}qn(i[a>>2]+(g<<2)|0,0,(n&252)+4|0);g=c;break d}while(1){if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=h>>>0:0){return 0}n=j[h+p|0];h=h+1|0;if(h>>>0<1){c=c+1|0}i[b+16>>2]=h;i[b+20>>2]=c;d=n<<(e<<3|6)|d;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=d}g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}m=a+16|0;g=i[a>>2];b=i[a+16>>2];c=i[a+20>>2]-b|0;d=c>>2;h:{if(d>>>0<=65535){ye(m,65536-d|0);break h}if((c|0)==262144){break h}i[a+20>>2]=b+262144}i:{j:{b=a+28|0;c=i[b>>2];d=i[a+32>>2]-c>>3;if(f>>>0>d>>>0){bf(b,f-d|0);c=i[b>>2];break j}if(f>>>0>>0){i[a+32>>2]=(f<<3)+c}if(f){break j}b=0;a=0;break i}a=i[g>>2];e=0;i[c+4>>2]=0;i[c>>2]=a;b=1;d=i[g>>2];if(d>>>0<=65536){b=0;while(1){k:{if(e>>>0>>0){a=i[m>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((d|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+c|0;i[h+4>>2]=d;i[h>>2]=e;e=d;d=d+i[a>>2]|0;if(d>>>0>65536){break k}continue}}break}b=b>>>0>>0}a=(d|0)==65536}return a&(b^1)}return r}function ff(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{c=k[b+38>>1];if(!c){break a}b:{if(c>>>0<=511){d=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];f=e+4|0;if(f>>>0<4){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[a+12>>2]=f;d=i[b+20>>2];e=i[b+16>>2]+4|0;if(e>>>0<4){d=d+1|0}c=b;i[c+16>>2]=e;i[c+20>>2]=d;break b}c=a+12|0;if(!af(1,c,b)){break a}f=i[c>>2]}d=i[a>>2];c=i[a+4>>2]-d>>2;c:{if(f>>>0>c>>>0){ye(a,f-c|0);f=i[a+12>>2];break c}if(f>>>0>=c>>>0){break c}i[a+4>>2]=d+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];m=i[b+12>>2];while(1){e=i[b+16>>2];c=i[b+20>>2];if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];n=j[p+e|0];e=e+1|0;if(e>>>0<1){c=c+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=c;d=n>>>2|0;e=0;d:{e:{f:{g:{q=n&3;switch(q|0){case 3:break g;case 0:break e;default:break f}}c=d+g|0;if(c>>>0>=f>>>0){return 0}qn(i[a>>2]+(g<<2)|0,0,(n&252)+4|0);g=c;break d}while(1){if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=h>>>0:0){return 0}n=j[h+p|0];h=h+1|0;if(h>>>0<1){c=c+1|0}i[b+16>>2]=h;i[b+20>>2]=c;d=n<<(e<<3|6)|d;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=d}g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}m=a+16|0;g=i[a>>2];b=i[a+16>>2];c=i[a+20>>2]-b|0;d=c>>2;h:{if(d>>>0<=32767){ye(m,32768-d|0);break h}if((c|0)==131072){break h}i[a+20>>2]=b+131072}i:{j:{b=a+28|0;c=i[b>>2];d=i[a+32>>2]-c>>3;if(f>>>0>d>>>0){bf(b,f-d|0);c=i[b>>2];break j}if(f>>>0>>0){i[a+32>>2]=(f<<3)+c}if(f){break j}b=0;a=0;break i}a=i[g>>2];e=0;i[c+4>>2]=0;i[c>>2]=a;b=1;d=i[g>>2];if(d>>>0<=32768){b=0;while(1){k:{if(e>>>0>>0){a=i[m>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((d|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+c|0;i[h+4>>2]=d;i[h>>2]=e;e=d;d=d+i[a>>2]|0;if(d>>>0>32768){break k}continue}}break}b=b>>>0>>0}a=(d|0)==32768}return a&(b^1)}return r}function df(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{c=k[b+38>>1];if(!c){break a}b:{if(c>>>0<=511){d=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];f=e+4|0;if(f>>>0<4){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[a+12>>2]=f;d=i[b+20>>2];e=i[b+16>>2]+4|0;if(e>>>0<4){d=d+1|0}c=b;i[c+16>>2]=e;i[c+20>>2]=d;break b}c=a+12|0;if(!af(1,c,b)){break a}f=i[c>>2]}d=i[a>>2];c=i[a+4>>2]-d>>2;c:{if(f>>>0>c>>>0){ye(a,f-c|0);f=i[a+12>>2];break c}if(f>>>0>=c>>>0){break c}i[a+4>>2]=d+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];m=i[b+12>>2];while(1){e=i[b+16>>2];c=i[b+20>>2];if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];n=j[p+e|0];e=e+1|0;if(e>>>0<1){c=c+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=c;d=n>>>2|0;e=0;d:{e:{f:{g:{q=n&3;switch(q|0){case 3:break g;case 0:break e;default:break f}}c=d+g|0;if(c>>>0>=f>>>0){return 0}qn(i[a>>2]+(g<<2)|0,0,(n&252)+4|0);g=c;break d}while(1){if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=h>>>0:0){return 0}n=j[h+p|0];h=h+1|0;if(h>>>0<1){c=c+1|0}i[b+16>>2]=h;i[b+20>>2]=c;d=n<<(e<<3|6)|d;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=d}g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}m=a+16|0;g=i[a>>2];b=i[a+16>>2];c=i[a+20>>2]-b|0;d=c>>2;h:{if(d>>>0<=8191){ye(m,8192-d|0);break h}if((c|0)==32768){break h}i[a+20>>2]=b+32768}i:{j:{b=a+28|0;c=i[b>>2];d=i[a+32>>2]-c>>3;if(f>>>0>d>>>0){bf(b,f-d|0);c=i[b>>2];break j}if(f>>>0>>0){i[a+32>>2]=(f<<3)+c}if(f){break j}b=0;a=0;break i}a=i[g>>2];e=0;i[c+4>>2]=0;i[c>>2]=a;b=1;d=i[g>>2];if(d>>>0<=8192){b=0;while(1){k:{if(e>>>0>>0){a=i[m>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((d|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+c|0;i[h+4>>2]=d;i[h>>2]=e;e=d;d=d+i[a>>2]|0;if(d>>>0>8192){break k}continue}}break}b=b>>>0>>0}a=(d|0)==8192}return a&(b^1)}return r}function Te(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{c=k[b+38>>1];if(!c){break a}b:{if(c>>>0<=511){d=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];f=e+4|0;if(f>>>0<4){c=c+1|0}if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;f=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[a+12>>2]=f;d=i[b+20>>2];e=i[b+16>>2]+4|0;if(e>>>0<4){d=d+1|0}c=b;i[c+16>>2]=e;i[c+20>>2]=d;break b}c=a+12|0;if(!af(1,c,b)){break a}f=i[c>>2]}d=i[a>>2];c=i[a+4>>2]-d>>2;c:{if(f>>>0>c>>>0){ye(a,f-c|0);f=i[a+12>>2];break c}if(f>>>0>=c>>>0){break c}i[a+4>>2]=d+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];m=i[b+12>>2];while(1){e=i[b+16>>2];c=i[b+20>>2];if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];n=j[p+e|0];e=e+1|0;if(e>>>0<1){c=c+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=c;d=n>>>2|0;e=0;d:{e:{f:{g:{q=n&3;switch(q|0){case 3:break g;case 0:break e;default:break f}}c=d+g|0;if(c>>>0>=f>>>0){return 0}qn(i[a>>2]+(g<<2)|0,0,(n&252)+4|0);g=c;break d}while(1){if((m|0)<(c|0)?1:(m|0)<=(c|0)?o>>>0<=h>>>0:0){return 0}n=j[h+p|0];h=h+1|0;if(h>>>0<1){c=c+1|0}i[b+16>>2]=h;i[b+20>>2]=c;d=n<<(e<<3|6)|d;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=d}g=g+1|0;f=i[a+12>>2];if(g>>>0>>0){continue}break}m=a+16|0;g=i[a>>2];b=i[a+16>>2];c=i[a+20>>2]-b|0;d=c>>2;h:{if(d>>>0<=4095){ye(m,4096-d|0);break h}if((c|0)==16384){break h}i[a+20>>2]=b+16384}i:{j:{b=a+28|0;c=i[b>>2];d=i[a+32>>2]-c>>3;if(f>>>0>d>>>0){bf(b,f-d|0);c=i[b>>2];break j}if(f>>>0>>0){i[a+32>>2]=(f<<3)+c}if(f){break j}b=0;a=0;break i}a=i[g>>2];e=0;i[c+4>>2]=0;i[c>>2]=a;b=1;d=i[g>>2];if(d>>>0<=4096){b=0;while(1){k:{if(e>>>0>>0){a=i[m>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((d|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+c|0;i[h+4>>2]=d;i[h>>2]=e;e=d;d=d+i[a>>2]|0;if(d>>>0>4096){break k}continue}}break}b=b>>>0>>0}a=(d|0)==4096}return a&(b^1)}return r}function Uf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0;j=J-16|0;J=j;c=i[a+4>>2];i[a+40>>2]=i[a>>2];i[a+44>>2]=c;e=a+32|0;c=e;d=i[c+4>>2];i[a+72>>2]=i[c>>2];i[a+76>>2]=d;d=a+24|0;g=i[d+4>>2];c=a- -64|0;i[c>>2]=i[d>>2];i[c+4>>2]=g;f=a+16|0;c=f;g=i[c+4>>2];i[a+56>>2]=i[c>>2];i[a+60>>2]=g;g=a+8|0;c=g;h=i[c+4>>2];i[a+48>>2]=i[c>>2];i[a+52>>2]=h;a:{b:{c=a+40|0;if(Ch(c,1,j+8|0)){h=i[c+4>>2];i[a>>2]=i[c>>2];i[a+4>>2]=h;h=i[c+36>>2];i[e>>2]=i[c+32>>2];i[e+4>>2]=h;e=i[c+28>>2];i[d>>2]=i[c+24>>2];i[d+4>>2]=e;d=i[c+20>>2];h=d;e=i[c+16>>2];i[f>>2]=e;i[f+4>>2]=d;d=i[c+12>>2];f=d;c=i[c+8>>2];i[g>>2]=c;i[g+4>>2]=d;d=e;g=c-d|0;l=i[j+12>>2];d=f-((c>>>0>>0)+h|0)|0;c=i[j+8>>2];if((l|0)==(d|0)&c>>>0<=g>>>0|l>>>0>>0){break b}}c=0;break a}f=h+l|0;e=c+e|0;if(e>>>0>>0){f=f+1|0}i[a+16>>2]=e;i[a+20>>2]=f;c:{if(k[a+38>>1]<=513){c=i[a+4>>2];i[a+96>>2]=i[a>>2];i[a+100>>2]=c;e=a+32|0;c=e;d=i[c+4>>2];i[a+128>>2]=i[c>>2];i[a+132>>2]=d;d=a+24|0;c=d;f=i[c+4>>2];i[a+120>>2]=i[c>>2];i[a+124>>2]=f;f=a+16|0;c=f;g=i[c+4>>2];i[a+112>>2]=i[c>>2];i[a+116>>2]=g;g=a+8|0;c=g;h=i[c+4>>2];i[a+104>>2]=i[c>>2];i[a+108>>2]=h;d:{c=a+96|0;if(Ch(c,1,j+8|0)){h=i[c+4>>2];i[a>>2]=i[c>>2];i[a+4>>2]=h;h=i[c+36>>2];i[e>>2]=i[c+32>>2];i[e+4>>2]=h;e=i[c+28>>2];i[d>>2]=i[c+24>>2];i[d+4>>2]=e;d=i[c+20>>2];h=d;e=i[c+16>>2];i[f>>2]=e;i[f+4>>2]=d;d=i[c+12>>2];f=d;c=i[c+8>>2];i[g>>2]=c;i[g+4>>2]=d;d=e;g=c-d|0;l=i[j+12>>2];d=f-((c>>>0>>0)+h|0)|0;c=i[j+8>>2];if((l|0)==(d|0)&c>>>0<=g>>>0|l>>>0>>0){break d}}c=0;break a}f=h+l|0;e=c+e|0;if(e>>>0>>0){f=f+1|0}i[a+16>>2]=e;i[a+20>>2]=f;break c}c=0;if(!Ae(a+80|0,a)){break a}}c=0;if(!_f(a)){break a}c=i[a+4>>2];i[b>>2]=i[a>>2];i[b+4>>2]=c;c=i[a+36>>2];i[b+32>>2]=i[a+32>>2];i[b+36>>2]=c;c=i[a+28>>2];i[b+24>>2]=i[a+24>>2];i[b+28>>2]=c;c=i[a+20>>2];i[b+16>>2]=i[a+16>>2];i[b+20>>2]=c;c=i[a+12>>2];i[b+8>>2]=i[a+8>>2];i[b+12>>2]=c;c=1}J=j+16|0;return c}function qc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;a:{s=M[i[i[a>>2]+44>>2]](a)|0;if((s|0)<1){break a}h=i[b+4>>2]-i[b>>2]>>2;rc(a,h,s);d=i[a+16>>2];if(!i[d+80>>2]){break a}f=i[i[d>>2]>>2];if(!f){break a}m=i[c+8>>2];k=i[c+16>>2];g=i[c+12>>2];n=g;e=i[c+20>>2];if((n|0)<(e|0)?1:(n|0)<=(e|0)?m>>>0<=k>>>0:0){break a}n=o(h,s);q=f+i[d+48>>2]|0;r=i[c>>2];t=j[r+k|0];h=c;d=e;f=k+1|0;if(f>>>0<1){d=d+1|0}p=f;f=d;i[h+16>>2]=p;i[h+20>>2]=d;b:{c:{d:{if(t){if(Qe(n,s,c,q)){break d}break a}if((g|0)<(f|0)?1:(g|0)<=(f|0)?m>>>0<=p>>>0:0){break a}h=j[p+r|0];d=e;e=k+2|0;if(e>>>0<2){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;d=Fh(5);e=i[i[a+16>>2]+64>>2];e=i[e+4>>2]-i[e>>2]|0;e:{if((d|0)==(h|0)){h=n<<2;if(e>>>0>>0){break a}f=i[c+12>>2];d=i[c+20>>2];k=i[c+16>>2];e=h;g=k+e|0;if(g>>>0>>0){d=d+1|0}if((f|0)>(d|0)?1:(f|0)>=(d|0)?l[c+8>>2]>=g>>>0:0){break e}break a}if(e>>>0>>0){break a}k=i[c+12>>2];d=i[c+20>>2];m=i[c+8>>2];f=m;p=i[c+16>>2];g=p;e=h;r=f-g>>>0>>0;f=k-(d+(f>>>0>>0)|0)|0;g=L;if((f|0)<(g|0)?1:(f|0)<=(g|0)?r:0){break a}f=1;if(!n){break c}g=0;f=m;m=e+p|0;if(m>>>0>>0){d=d+1|0}if((k|0)<(d|0)?1:(k|0)<=(d|0)?f>>>0>>0:0){break b}m=0;while(1){pn(q+(m<<2)|0,p+i[c>>2]|0,h);d=i[c+20>>2];p=e+i[c+16>>2]|0;if(p>>>0>>0){d=d+1|0}i[c+16>>2]=p;i[c+20>>2]=d;m=m+1|0;if((n|0)==(m|0)){break d}k=i[c+12>>2];r=e+p|0;if(r>>>0>>0){d=d+1|0}if((k|0)>(d|0)?1:(k|0)>=(d|0)?l[c+8>>2]>=r>>>0:0){continue}break}break b}pn(q,k+i[c>>2]|0,h);d=i[c+20>>2];f=e+i[c+16>>2]|0;if(f>>>0>>0){d=d+1|0}i[c+16>>2]=f;i[c+20>>2]=d}f=1;if(!n){break c}e=i[a+20>>2];if(e){f=0;if(M[i[i[e>>2]+32>>2]](e)|0){break c}}vh(q,n,q);f=0}e=i[a+20>>2];f:{if(!e){break f}if(!(M[i[i[e>>2]+40>>2]](e,c)|0)){break a}if(f){break f}g=0;a=i[a+20>>2];if(!(M[i[i[a>>2]+44>>2]](a,q,q,n,s,i[b>>2])|0)){break b}}g=1}return g|0}return 0}function Bk(a){var b=0,c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=J-32|0;J=e;b=i[a>>2];d=i[a+4>>2];g[e|0]=0;o=Ek(e+16|0,d-b>>2,e);i[e+8>>2]=0;i[e>>2]=0;k=i[a>>2];b=i[a+4>>2];a:{b:{while(1){c:{p=0;l=0;if((b|0)==(k|0)){break c}while(1){c=i[o>>2];d:{if(i[c+(l>>>3&536870908)>>2]>>>l&1){break d}d=i[e>>2];i[e+4>>2]=d;b=l;while(1){e:{f=b+1|0;q=b;b=(f>>>0)%3|0?f:b+ -2|0;if((b|0)==-1){break e}b=i[i[a+12>>2]+(b<<2)>>2];if((b|0)==-1){break e}f=b+1|0;b=(f>>>0)%3|0?f:b+ -2|0;if((l|0)==(b|0)|(b|0)==-1){break e}if(!(i[(b>>>3&536870908)+c>>2]>>>b&1)){continue}}break}f=d;b=q;while(1){j=(b>>>3&536870908)+c|0;i[j>>2]=i[j>>2]|1<>>0)%3|0?j:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;if((d|0)!=(f|0)){n=i[(j<<2)+k>>2];b=f;while(1){f:{if((n|0)!=i[b>>2]){break f}c=-1;h=i[b+4>>2];c=(m|0)!=-1?i[i[a+12>>2]+(m<<2)>>2]:c;if((h|0)==(c|0)){break f}d=-1;d=(h|0)!=-1?i[i[a+12>>2]+(h<<2)>>2]:d;if((c|0)!=-1){i[i[a+12>>2]+(c<<2)>>2]=-1}b=i[a+12>>2];if((d|0)!=-1){i[b+(d<<2)>>2]=-1}i[b+(m<<2)>>2]=-1;i[b+(h<<2)>>2]=-1;p=1;break d}b=b+8|0;if((d|0)!=(b|0)){continue}break}}n=m<<2;k=i[n+k>>2];g:{if(i[e+8>>2]!=(d|0)){b=d;i[b>>2]=k;i[b+4>>2]=j;i[e+4>>2]=b+8;break g}d=d-f|0;h=d>>3;c=h+1|0;if(c>>>0>=536870912){break b}b=d>>2;c=h>>>0<268435455?b>>>0>>0?c:b:536870911;b=0;h:{if(!c){break h}if(c>>>0>=536870912){break a}b=Dm(c<<3)}h=b+(h<<3)|0;i[h>>2]=k;i[h+4>>2]=j;j=b+(c<<3)|0;c=h+8|0;if((d|0)>=1){pn(b,f,d)}i[e+8>>2]=j;i[e+4>>2]=c;i[e>>2]=b;if(!f){break g}nn(f)}i:{if((m|0)==-1){break i}b=i[n+i[a+12>>2]>>2];if((b|0)==-1){break i}b=b+((b>>>0)%3|0?-1:2)|0;if((q|0)==(b|0)|(b|0)==-1){break i}k=i[a>>2];c=i[o>>2];d=i[e+4>>2];f=i[e>>2];continue}break}k=i[a>>2]}l=l+1|0;b=i[a+4>>2];if(l>>>0>2>>>0){continue}break}if(p){continue}}break}a=i[e>>2];if(a){i[e+4>>2]=a;nn(a)}a=i[o>>2];if(a){nn(a)}J=e+32|0;return}Sm();x()}Ba(14288);x()}function Hf(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=J+ -64|0;J=e;h=i[i[b+4>>2]+44>>2];d=Dm(80);i[d+12>>2]=0;i[d+16>>2]=0;i[d>>2]=12784;i[d+4>>2]=0;i[d+76>>2]=0;i[d+72>>2]=c;i[d+68>>2]=h;i[d+64>>2]=0;i[d+56>>2]=0;i[d+60>>2]=0;i[d+8>>2]=12948;k=d+20|0;f=k;i[f>>2]=0;i[f+4>>2]=0;n=d+28|0;f=n;i[f>>2]=0;i[f+4>>2]=0;i[d+36>>2]=0;i[d+40>>2]=0;l=d+44|0;f=l;i[f>>2]=0;i[f+4>>2]=0;i[d+52>>2]=0;b=i[b+8>>2];o=e+36|0;f=o;i[f>>2]=0;i[f+4>>2]=0;p=e+28|0;f=p;i[f>>2]=0;i[f+4>>2]=0;q=e+20|0;f=q;i[f>>2]=0;i[f+4>>2]=0;f=e+12|0;i[f>>2]=0;i[f+4>>2]=0;i[e+52>>2]=0;i[e+56>>2]=0;i[e+44>>2]=0;i[e+48>>2]=0;i[e+4>>2]=0;i[e+8>>2]=0;i[e>>2]=12948;i[e+4>>2]=b;j=i[b>>2];m=i[b+4>>2];g[e+63|0]=0;Jf(e+24|0,(m-j>>2>>>0)/3|0,e+63|0);j=i[e+4>>2];m=i[j+28>>2];j=i[j+24>>2];g[e+63|0]=0;Jf(o,m-j>>2,e+63|0);i[q>>2]=d;i[e+16>>2]=h;i[f>>2]=c;i[e+8>>2]=b;i[n>>2]=d;b=i[f+4>>2];i[k>>2]=i[f>>2];i[k+4>>2]=b;b=i[e+8>>2];i[d+12>>2]=i[e+4>>2];i[d+16>>2]=b;a:{b:{c=d;b=i[p>>2];if(b){f=d+32|0;c:{if(b>>>0<=i[d+40>>2]<<5>>>0){h=b+ -1>>>5|0;b=i[f>>2];break c}f=i[f>>2];if(f){nn(f);i[d+40>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;b=i[e+28>>2]}if((b|0)<=-1){break b}h=b+ -1>>>5|0;f=h+1|0;b=Dm(f<<2);i[d+40>>2]=f;i[d+36>>2]=0;i[d+32>>2]=b}rn(b,i[e+24>>2],(h<<2)+4|0);b=i[e+28>>2]}else{b=0}i[c+36>>2]=b;f=d;b=i[e+40>>2];if(b){d:{if(b>>>0<=i[d+52>>2]<<5>>>0){c=b+ -1>>>5|0;b=i[l>>2];break d}c=i[l>>2];if(c){nn(c);i[d+52>>2]=0;i[d+44>>2]=0;i[d+48>>2]=0;b=i[e+40>>2]}if((b|0)<=-1){break a}c=b+ -1>>>5|0;h=c+1|0;b=Dm(h<<2);i[d+52>>2]=h;i[d+48>>2]=0;i[d+44>>2]=b}rn(b,i[e+36>>2],(c<<2)+4|0);b=i[e+40>>2]}else{b=0}i[f+48>>2]=b;Ma(d+56|0,i[e+48>>2],i[e+52>>2]);i[a>>2]=d;i[e>>2]=12948;a=i[e+48>>2];if(a){i[e+52>>2]=a;nn(a)}i[e>>2]=12764;a=i[e+36>>2];if(a){nn(a)}a=i[e+24>>2];if(a){nn(a)}J=e- -64|0;return}Sm();x()}Sm();x()}function Uk(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;e=o(b,12)+a|0;n=e+12|0;p=e+8|0;i[n>>2]=i[p>>2];l=(c|0)==-1?-1:(c>>>0)/3|0;r=e+16|0;s=1;e=c;a:{b:{c:{while(1){d:{q=h;if(h){if((e|0)==-1){break d}if((Vk(a,((e>>>0)%3|0?-1:2)+e|0)|0)==-1){break a}c=e+1|0;c=(c>>>0)%3|0?c:e+ -2|0;if((c|0)==-1){break a}f=c+1|0;c=(f>>>0)%3|0?f:c+ -2|0;if((c|0)==-1){break a}c=i[i[i[a+4>>2]+12>>2]+(c<<2)>>2];if((c|0)==-1){break a}f=c+1|0;c=(f>>>0)%3|0?f:c+ -2|0;if((c|0)==-1){break a}l=(c>>>0)/3|0}j=1<>2]+(l>>>3&536870908)|0;k=i[g>>2];e:{if(j&k){break e}f=0;while(1){i[g>>2]=k|j;d=i[n>>2];f:{if((d|0)!=i[r>>2]){i[d>>2]=l;i[n>>2]=d+4;break f}k=i[p>>2];j=d-k|0;m=j>>2;g=m+1|0;if(g>>>0>=1073741824){break c}d=j>>1;g=m>>>0<536870911?d>>>0>>0?g:d:1073741823;d=0;g:{if(!g){break g}if(g>>>0>=1073741824){break b}d=Dm(g<<2)}m=d+(m<<2)|0;i[m>>2]=l;g=d+(g<<2)|0;m=m+4|0;if((j|0)>=1){pn(d,k,j)}i[p>>2]=d;i[n>>2]=m;i[r>>2]=g;if(!k){break f}nn(k)}d=f+1|0;h:{if(!f){break h}if(d&1){if((c|0)==-1){c=-1;break h}f=c+1|0;c=(f>>>0)%3|0?f:c+ -2|0;break h}e=q?c:e;if((c|0)==-1){c=-1;break h}if((c>>>0)%3|0){c=c+ -1|0;break h}c=c+2|0}c=Vk(a,c);if((c|0)!=-1){f=d;l=(c>>>0)/3|0;g=i[a+56>>2]+(l>>>3&268435452)|0;k=i[g>>2];j=1<>2]+ -4|0;f=i[h>>2];d=i[a+56>>2]+(f>>>3&536870908)|0;q=i[d>>2];t=d,u=Kn(f)&q,i[t>>2]=u;i[n>>2]=h}h=1;f=s;s=0;if(f){continue}break a}break}e=-1;Vk(a,-1);break a}Sm();x()}Ba(14548);x()}i[((b<<2)+a|0)+44>>2]=e;e=i[n>>2];b=i[p>>2];if((e|0)!=(b|0)){c=e-b|0;h=(c|0)>-1?c:-1;e=b-e|0;c=o((h|0)<1?h:1,((e|0)>(c|0)?e:c)>>>2|0);e=c>>>0>1?c:1;a=i[a+56>>2];c=0;while(1){h=i[b+(c<<2)>>2];f=a+(h>>>3&536870908)|0;d=i[f>>2];t=f,u=Kn(h)&d,i[t>>2]=u;c=c+1|0;if((e|0)!=(c|0)){continue}break}}}function Yg(a,b){var c=0,d=0,e=0;i[a>>2]=i[b>>2];i[a+4>>2]=i[b+4>>2];i[a+8>>2]=i[b+8>>2];c=b+12|0;i[a+12>>2]=i[c>>2];i[c>>2]=0;i[b+4>>2]=0;i[b+8>>2]=0;c=b+16|0;i[a+16>>2]=i[c>>2];i[a+20>>2]=i[b+20>>2];d=b+24|0;i[a+24>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=j[b+28|0];e=a+40|0;i[e>>2]=0;c=a+32|0;i[c>>2]=0;i[c+4>>2]=0;g[a+28|0]=d;d=c;c=b+32|0;i[d>>2]=i[c>>2];i[a+36>>2]=i[b+36>>2];d=b+40|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a+52|0;i[d>>2]=0;c=a+44|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+44|0;i[e>>2]=i[c>>2];i[a+48>>2]=i[b+48>>2];e=d;d=b+52|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a- -64|0;i[d>>2]=0;c=a+56|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+56|0;i[e>>2]=i[c>>2];i[a+60>>2]=i[b+60>>2];e=d;d=b- -64|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;i[a+68>>2]=i[b+68>>2];d=i[b+72>>2];e=a+84|0;i[e>>2]=0;c=a+76|0;i[c>>2]=0;i[c+4>>2]=0;i[a+72>>2]=d;d=c;c=b+76|0;i[d>>2]=i[c>>2];i[a+80>>2]=i[b+80>>2];d=b+84|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a+96|0;i[d>>2]=0;c=a+88|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+88|0;i[e>>2]=i[c>>2];i[a+92>>2]=i[b+92>>2];e=d;d=b+96|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;c=j[b+100|0];d=a+112|0;i[d>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;g[a+100|0]=c;i[a+104>>2]=i[b+104>>2];i[a+108>>2]=i[b+108>>2];c=b+112|0;i[d>>2]=i[c>>2];i[c>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;d=a+124|0;i[d>>2]=0;c=a+116|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+116|0;i[e>>2]=i[c>>2];i[a+120>>2]=i[b+120>>2];e=d;d=b+124|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;c=i[b+128>>2];d=a+140|0;i[d>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;i[a+128>>2]=c;i[a+132>>2]=i[b+132>>2];i[a+136>>2]=i[b+136>>2];c=b+140|0;i[d>>2]=i[c>>2];i[c>>2]=0;i[b+132>>2]=0;i[b+136>>2]=0;return a}function Xf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;h=J-16|0;J=h;i[h>>2]=b;g=-1;a:{if((b|0)==-1){i[h+4>>2]=-1;break a}c=b+1|0;i[h+4>>2]=(c>>>0)%3|0?c:b+ -2|0;if((b>>>0)%3|0){g=b+ -1|0;break a}g=b+2|0}i[h+8>>2]=g;q=(b|0)==-1?-1:(b>>>0)/3|0;b:{c:{d:{e:{while(1){f:{g:{if((b|0)!=-1){c=i[i[i[a+8>>2]+12>>2]+(b<<2)>>2];if((c|0)!=-1){break g}}g=0;c=i[a+216>>2];if((c|0)==i[a+220>>2]){break f}while(1){f=o(g,144)+c|0;j=f+136|0;c=i[j>>2];l=f+140|0;d=i[l>>2];h:{if(c>>>0>>0){i[c>>2]=b;i[j>>2]=c+4;break h}m=f+132|0;f=i[m>>2];k=c-f|0;c=k>>2;e=c+1|0;if(e>>>0>=1073741824){break e}n=c<<2;d=d-f|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;i:{if(!e){break i}if(e>>>0>=1073741824){break d}c=Dm(e<<2)}d=n+c|0;i[d>>2]=b;e=c+(e<<2)|0;d=d+4|0;if((k|0)>=1){pn(c,f,k)}i[m>>2]=c;i[j>>2]=d;i[l>>2]=e;if(!f){break h}nn(f)}g=g+1|0;c=i[a+216>>2];if(g>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}break f}if((c>>>0)/3>>>0>>0){break f}g=0;if(i[a+220>>2]==i[a+216>>2]){break f}while(1){j:{if(!Ce(i[a+368>>2]+(g<<4)|0)){break j}f=i[a+216>>2]+o(g,144)|0;j=f+136|0;c=i[j>>2];l=f+140|0;d=i[l>>2];if(c>>>0>>0){i[c>>2]=b;i[j>>2]=c+4;break j}m=f+132|0;f=i[m>>2];k=c-f|0;c=k>>2;e=c+1|0;if(e>>>0>=1073741824){break c}n=c<<2;d=d-f|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;k:{if(!e){break k}if(e>>>0>=1073741824){break b}c=Dm(e<<2)}d=n+c|0;i[d>>2]=b;e=c+(e<<2)|0;d=d+4|0;if((k|0)>=1){pn(c,f,k)}i[m>>2]=c;i[j>>2]=d;i[l>>2]=e;if(!f){break j}nn(f)}g=g+1|0;if(g>>>0<(i[a+220>>2]-i[a+216>>2]|0)/144>>>0){continue}break}}p=p+1|0;if((p|0)!=3){b=i[(p<<2)+h>>2];continue}break}J=h+16|0;return 1}Sm();x()}Ba(12220);x()}Sm();x()}Ba(12220);x()}function He(a,b,c,d){var e=0,f=0,h=0;e=J-80|0;J=e;f=i[c+36>>2];i[e+72>>2]=i[c+32>>2];i[e+76>>2]=f;h=i[c+28>>2];f=e- -64|0;i[f>>2]=i[c+24>>2];i[f+4>>2]=h;f=i[c+20>>2];i[e+56>>2]=i[c+16>>2];i[e+60>>2]=f;f=i[c+12>>2];i[e+48>>2]=i[c+8>>2];i[e+52>>2]=f;f=i[c+4>>2];i[e+40>>2]=i[c>>2];i[e+44>>2]=f;jh(a,e+40|0,e+24|0);a:{if(i[a>>2]){break a}h=a+4|0;if(g[a+15|0]<=-1){nn(i[h>>2])}if(j[e+31|0]){b=Dm(32);i[e>>2]=b;i[e+4>>2]=27;i[e+8>>2]=-2147483616;g[b+27|0]=0;c=j[11135]|j[11136]<<8|(j[11137]<<16|j[11138]<<24);g[b+23|0]=c;g[b+24|0]=c>>>8;g[b+25|0]=c>>>16;g[b+26|0]=c>>>24;c=j[11132]|j[11133]<<8|(j[11134]<<16|j[11135]<<24);d=j[11128]|j[11129]<<8|(j[11130]<<16|j[11131]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[11124]|j[11125]<<8|(j[11126]<<16|j[11127]<<24);d=j[11120]|j[11121]<<8|(j[11122]<<16|j[11123]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11116]|j[11117]<<8|(j[11118]<<16|j[11119]<<24);d=j[11112]|j[11113]<<8|(j[11114]<<16|j[11115]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;Gm(h,e);if(g[e+11|0]>-1){break a}nn(i[e>>2]);break a}Ee(e,g[e+32|0]);f=i[e>>2];b:{if(f){i[a>>2]=f;Gm(h,e|4);break b}f=i[e+16>>2];i[e+16>>2]=0;mh(a,f,b,c,d);if(!i[a>>2]){if(g[h+11|0]<=-1){nn(i[h>>2])}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}if(!f){break b}M[i[i[f>>2]+4>>2]](f)}a=i[e+16>>2];i[e+16>>2]=0;if(a){M[i[i[a>>2]+4>>2]](a)}if(g[e+15|0]>-1){break a}nn(i[e+4>>2])}J=e+80|0}function Wf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;h=J-16|0;J=h;i[h>>2]=b;g=-1;a:{if((b|0)==-1){i[h+4>>2]=-1;break a}c=b+1|0;i[h+4>>2]=(c>>>0)%3|0?c:b+ -2|0;if((b>>>0)%3|0){g=b+ -1|0;break a}g=b+2|0}i[h+8>>2]=g;b:{c:{while(1){d:{if(!((b|0)==-1|i[i[i[a+8>>2]+12>>2]+(b<<2)>>2]==-1)){g=0;if(i[a+220>>2]==i[a+216>>2]){break d}e:{while(1){f:{g:{if(!Ce(i[a+368>>2]+(g<<4)|0)){break g}f=i[a+216>>2]+o(g,144)|0;j=f+136|0;c=i[j>>2];l=f+140|0;d=i[l>>2];if(c>>>0>>0){i[c>>2]=b;i[j>>2]=c+4;break g}m=f+132|0;f=i[m>>2];k=c-f|0;c=k>>2;e=c+1|0;if(e>>>0>=1073741824){break f}n=c<<2;d=d-f|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;h:{if(!e){break h}if(e>>>0>=1073741824){break e}c=Dm(e<<2)}d=n+c|0;i[d>>2]=b;e=c+(e<<2)|0;d=d+4|0;if((k|0)>=1){pn(c,f,k)}i[m>>2]=c;i[j>>2]=d;i[l>>2]=e;if(!f){break g}nn(f)}g=g+1|0;if(g>>>0<(i[a+220>>2]-i[a+216>>2]|0)/144>>>0){continue}break d}break}Sm();x()}Ba(12220);x()}g=0;c=i[a+216>>2];if((c|0)==i[a+220>>2]){break d}while(1){f=o(g,144)+c|0;j=f+136|0;c=i[j>>2];l=f+140|0;d=i[l>>2];i:{if(c>>>0>>0){i[c>>2]=b;i[j>>2]=c+4;break i}m=f+132|0;f=i[m>>2];k=c-f|0;c=k>>2;e=c+1|0;if(e>>>0>=1073741824){break c}n=c<<2;d=d-f|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;j:{if(!e){break j}if(e>>>0>=1073741824){break b}c=Dm(e<<2)}d=n+c|0;i[d>>2]=b;e=c+(e<<2)|0;d=d+4|0;if((k|0)>=1){pn(c,f,k)}i[m>>2]=c;i[j>>2]=d;i[l>>2]=e;if(!f){break i}nn(f)}g=g+1|0;c=i[a+216>>2];if(g>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}p=p+1|0;if((p|0)!=3){b=i[(p<<2)+h>>2];continue}break}J=h+16|0;return 1}Sm();x()}Ba(12220);x()}function ge(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=c;k=i[b+16>>2];g=i[f+4>>2]-k|0;e=i[f>>2]-k|0;i[f>>2]=e;i[f+4>>2]=g;f=g>>31;h=f+g^f;f=e>>31;m=i[b+16>>2];l=(h+(f+e^f)|0)<=(m|0);a:{if(l){f=g;break a}b:{c:{if((e|0)>=0){j=1;h=1;if((g|0)>-1){break b}f=1;j=-1;h=-1;if((e|0)>=1){break c}break b}f=-1;j=-1;h=-1;if((g|0)<1){break b}}j=(g|0)<1?-1:1;h=f}f=e<<1;e=o(h,m);f=f-e|0;h=(o(h,j)|0)>-1;j=o(j,m);f=((h?0-f|0:f)+j|0)/2|0;i[c+4>>2]=f;g=(g<<1)-j|0;e=(e+(h?0-g|0:g)|0)/2|0;i[c>>2]=e}d:{e:{f:{g:{h:{if(!e){if(f){break h}j=1;f=0;g=0;h=0;break d}j=1;g=(e|0)<0&(f|0)<1;i:{if((e|0)>=1){h=(f|0)>-1?2:1;if(!g){break i}g=e;break d}h=(f|0)>0?3:0;if(!g){break i}g=e;break d}j=h+ -1|0;h=0;g=e;j:{switch(j|0){case 1:break j;case 0:break f;case 2:break g;default:break e}}f=0-f|0;g=0-e|0;h=2;break e}if((f|0)<1){break f}}g=0-f|0;h=3;f=e;break e}h=1;g=f;f=0-e|0}e=c;i[e>>2]=g;i[e+4>>2]=f;j=0}c=i[d+4>>2]+f|0;f=i[b+16>>2];e=i[d>>2]+g|0;k:{if((f|0)<(e|0)){e=e-i[b+4>>2]|0;break k}if((e|0)>=(0-f|0)){break k}e=i[b+4>>2]+e|0}l:{if((f|0)<(c|0)){c=c-i[b+4>>2]|0;break l}if((c|0)>=(0-f|0)){break l}c=i[b+4>>2]+c|0}m:{if(j){b=c;break m}b=c;n:{switch((4-h&3)+ -1|0){case 0:b=0-e|0;e=c;break m;case 1:b=0-c|0;e=0-e|0;break m;case 2:break n;default:break m}}b=e;e=0-c|0}o:{if(l){c=b;break o}p:{q:{if((e|0)>=0){c=1;g=1;if((b|0)>-1){break p}d=1;c=-1;g=-1;if((e|0)>=1){break q}break p}d=-1;c=-1;g=-1;if((b|0)<1){break p}}c=(b|0)<1?-1:1;g=d}d=e<<1;e=o(f,g);d=d-e|0;i[a>>2]=d;l=0-d|0;h=d;d=(o(c,g)|0)>-1;g=o(c,f);c=((d?l:h)+g|0)/2|0;b=(b<<1)-g|0;e=(e+(d?0-b|0:b)|0)/2|0}i[a>>2]=e+k;i[a+4>>2]=c+k}function Ee(a,b){var c=0,d=0,e=0;e=J-32|0;J=e;a:{b:{switch(b|0){case 0:c=Dm(44);b=c;i[b>>2]=0;i[b+4>>2]=0;i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=0;i[b+28>>2]=0;i[b+16>>2]=0;i[b+20>>2]=0;i[b+8>>2]=0;i[b+12>>2]=0;ih(b);i[b>>2]=13952;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;break a;case 1:c=Dm(44);b=c;i[b>>2]=0;i[b+4>>2]=0;i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=0;i[b+28>>2]=0;i[b+16>>2]=0;i[b+20>>2]=0;i[b+8>>2]=0;i[b+12>>2]=0;ih(b);i[b>>2]=13860;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;break a;default:break b}}b=Dm(32);i[e>>2]=b;i[e+4>>2]=28;i[e+8>>2]=-2147483616;g[b+28|0]=0;c=j[11080]|j[11081]<<8|(j[11082]<<16|j[11083]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;c=j[11076]|j[11077]<<8|(j[11078]<<16|j[11079]<<24);d=j[11072]|j[11073]<<8|(j[11074]<<16|j[11075]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[11068]|j[11069]<<8|(j[11070]<<16|j[11071]<<24);d=j[11064]|j[11065]<<8|(j[11066]<<16|j[11067]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11060]|j[11061]<<8|(j[11062]<<16|j[11063]<<24);d=j[11056]|j[11057]<<8|(j[11058]<<16|j[11059]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[e+16>>2]=-1;b=Gm(e+16|4,e);i[a>>2]=i[e+16>>2];Gm(a+4|0,b);i[a+16>>2]=0;if(g[b+11|0]<=-1){nn(i[b>>2])}if(g[e+11|0]>-1){break a}nn(i[e>>2])}J=e+32|0}function fc(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=J-16|0;J=e;h=M[i[i[a>>2]+24>>2]](a)|0;a:{if((h|0)<1){break a}q=a+48|0;k=1;while(1){b:{c:{if(!i[(M[i[i[a>>2]+28>>2]](a)|0)+40>>2]){break c}l=f<<2;b=i[l+i[a+36>>2]>>2];c=i[b+8>>2];m=Vb(b);if(!m){break c}n=i[(M[i[i[a>>2]+28>>2]](a)|0)+40>>2];o=i[c+56>>2];b=Dm(32);i[e>>2]=b;i[e+4>>2]=24;i[e+8>>2]=-2147483616;g[b+24|0]=0;c=j[2120]|j[2121]<<8|(j[2122]<<16|j[2123]<<24);d=j[2116]|j[2117]<<8|(j[2118]<<16|j[2119]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[2112]|j[2113]<<8|(j[2114]<<16|j[2115]<<24);d=j[2108]|j[2109]<<8|(j[2110]<<16|j[2111]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[2104]|j[2105]<<8|(j[2106]<<16|j[2107]<<24);d=j[2100]|j[2101]<<8|(j[2102]<<16|j[2103]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;d:{e:{d=n+16|0;b=d;c=i[b>>2];if(!c){break e}while(1){p=i[c+16>>2]<(o|0);b=p?b:c;c=i[(p<<2)+c>>2];if(c){continue}break}if((b|0)==(d|0)|(o|0)>2]){break e}b=b+20|0;if(!Kb(b,e)){break e}b=Jh(b,e);break d}b=Jh(n,e)}if(g[e+11|0]<=-1){nn(i[e>>2])}if(!b){break c}La(i[i[i[a+36>>2]+l>>2]+8>>2],m);break b}b=i[i[a+36>>2]+(f<<2)>>2];if(!(M[i[i[b>>2]+24>>2]](b,q)|0)){break a}}f=f+1|0;k=(f|0)<(h|0);if((f|0)!=(h|0)){continue}break}}J=e+16|0;return(k^-1)&1}function Oe(a,b,c,d,e){var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{b:{c:{d:{e:{n=a+4|0;f:{if((n|0)==(b|0)){break f}f=j[b+27|0];h=f<<24>>24<0;k=j[e+11|0];p=k<<24>>24;g=(p|0)<0;f=h?i[b+20>>2]:f;k=g?i[e+4>>2]:k;l=f>>>0>>0;m=l?f:k;if(m){g=g?i[e>>2]:e;o=b+16|0;h=h?i[o>>2]:o;o=Nl(g,h,m);if(!o){if(k>>>0>>0){break f}break e}if((o|0)>-1){break e}break f}if(k>>>0>=f>>>0){break d}}h=i[b>>2];d=b;g:{h:{if(i[a>>2]==(b|0)){break h}i:{if(h){f=h;while(1){d=f;f=i[f+4>>2];if(f){continue}break}break i}d=b+8|0;if(i[i[b+8>>2]>>2]==(b|0)){while(1){f=i[d>>2];d=f+8|0;if((f|0)==i[i[f+8>>2]>>2]){continue}break}}d=i[d>>2]}g=j[e+11|0];f=g<<24>>24<0;l=j[d+27|0];k=l<<24>>24<0;j:{g=f?i[e+4>>2]:g;l=k?i[d+20>>2]:l;m=g>>>0>>0?g:l;if(m){n=d+16|0;f=Nl(k?i[n>>2]:n,f?i[e>>2]:e,m);if(f){break j}}if(l>>>0>>0){break h}break g}if((f|0)>-1){break g}}if(!h){i[c>>2]=b;return b}i[c>>2]=d;return d+4|0}return Pe(a,c,e)}f=Nl(h,g,m);if(f){break c}}if(l){break b}break a}if((f|0)>-1){break a}}h=i[b+4>>2];k:{if(h){f=h;while(1){d=f;f=i[f>>2];if(f){continue}break}break k}d=i[b+8>>2];if(i[d>>2]==(b|0)){break k}f=b+8|0;while(1){g=i[f>>2];f=g+8|0;d=i[g+8>>2];if((g|0)!=i[d>>2]){continue}break}}l:{m:{if((d|0)==(n|0)){break m}g=j[d+27|0];f=g<<24>>24<0;n:{g=f?i[d+20>>2]:g;l=g>>>0>>0?g:k;if(l){m=d+16|0;f=Nl((p|0)<0?i[e>>2]:e,f?i[m>>2]:m,l);if(f){break n}}if(k>>>0>>0){break m}break l}if((f|0)>-1){break l}}if(!h){i[c>>2]=b;return b+4|0}i[c>>2]=d;return d}return Pe(a,c,e)}i[c>>2]=b;i[d>>2]=b;return d}function Ge(a,b){var c=0,d=0,e=0;c=J-96|0;J=c;d=i[b+36>>2];i[c+88>>2]=i[b+32>>2];i[c+92>>2]=d;d=i[b+28>>2];i[c+80>>2]=i[b+24>>2];i[c+84>>2]=d;d=i[b+20>>2];i[c+72>>2]=i[b+16>>2];i[c+76>>2]=d;e=i[b+12>>2];d=c- -64|0;i[d>>2]=i[b+8>>2];i[d+4>>2]=e;d=i[b+4>>2];i[c+56>>2]=i[b>>2];i[c+60>>2]=d;jh(c+24|0,c+56|0,c+40|0);b=i[c+24>>2];a:{if(b){i[a>>2]=b;Gm(a+4|0,c+24|4);if(g[c+39|0]>-1){break a}nn(i[c+28>>2]);break a}if(g[c+39|0]<=-1){nn(i[c+28>>2])}b=j[c+47|0];if(b>>>0>=2){b=Dm(32);i[c+8>>2]=b;i[c+12>>2]=26;i[c+16>>2]=-2147483616;g[b+26|0]=0;d=j[11109]|j[11110]<<8;g[b+24|0]=d;g[b+25|0]=d>>>8;d=j[11105]|j[11106]<<8|(j[11107]<<16|j[11108]<<24);e=j[11101]|j[11102]<<8|(j[11103]<<16|j[11104]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11097]|j[11098]<<8|(j[11099]<<16|j[11100]<<24);e=j[11093]|j[11094]<<8|(j[11095]<<16|j[11096]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11089]|j[11090]<<8|(j[11091]<<16|j[11092]<<24);e=j[11085]|j[11086]<<8|(j[11087]<<16|j[11088]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[c+24>>2]=-1;b=Gm(c+24|4,c+8|0);i[a>>2]=i[c+24>>2];Gm(a+4|0,b);if(g[b+11|0]<=-1){nn(i[b>>2])}if(g[c+19|0]>-1){break a}nn(i[c+8>>2]);break a}i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;i[a+8>>2]=0;i[a+12>>2]=0}J=c+96|0}function Ie(a,b,c,d){var e=0,f=0,h=0;e=J-80|0;J=e;f=i[c+36>>2];i[e+72>>2]=i[c+32>>2];i[e+76>>2]=f;h=i[c+28>>2];f=e- -64|0;i[f>>2]=i[c+24>>2];i[f+4>>2]=h;f=i[c+20>>2];i[e+56>>2]=i[c+16>>2];i[e+60>>2]=f;f=i[c+12>>2];i[e+48>>2]=i[c+8>>2];i[e+52>>2]=f;f=i[c+4>>2];i[e+40>>2]=i[c>>2];i[e+44>>2]=f;jh(a,e+40|0,e+24|0);a:{if(i[a>>2]){break a}f=a+4|0;if(g[a+15|0]<=-1){nn(i[f>>2])}if(j[e+31|0]!=1){b=Dm(32);i[e>>2]=b;i[e+4>>2]=20;i[e+8>>2]=-2147483616;g[b+20|0]=0;c=j[11156]|j[11157]<<8|(j[11158]<<16|j[11159]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;c=j[11152]|j[11153]<<8|(j[11154]<<16|j[11155]<<24);d=j[11148]|j[11149]<<8|(j[11150]<<16|j[11151]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11144]|j[11145]<<8|(j[11146]<<16|j[11147]<<24);d=j[11140]|j[11141]<<8|(j[11142]<<16|j[11143]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;Gm(f,e);if(g[e+11|0]>-1){break a}nn(i[e>>2]);break a}Fe(e,j[e+32|0]);h=i[e>>2];b:{if(h){i[a>>2]=h;Gm(f,e|4);break b}h=i[e+16>>2];i[e+16>>2]=0;i[h+44>>2]=d;mh(a,h,b,c,d);if(!i[a>>2]){if(g[f+11|0]<=-1){nn(i[f>>2])}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}if(!h){break b}M[i[i[h>>2]+4>>2]](h)}a=i[e+16>>2];i[e+16>>2]=0;if(a){M[i[i[a>>2]+4>>2]](a)}if(g[e+15|0]>-1){break a}nn(i[e+4>>2])}J=e+80|0}function Kd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;i[a+8>>2]=e;h=a+32|0;g=i[h>>2];f=i[a+36>>2]-g>>2;a:{if(f>>>0>>0){Ra(h,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}h=0;f=(e&1073741823)!=(e|0)?-1:e<<2;n=qn(Dm(f),0,f);g=i[a+8>>2];b:{if((g|0)<1){break b}while(1){f=h<<2;g=i[f+n>>2];j=i[a+16>>2];c:{if((g|0)>(j|0)){k=i[a+32>>2];i[f+k>>2]=j;break c}k=i[a+32>>2];f=f+k|0;j=i[a+12>>2];if((g|0)<(j|0)){i[f>>2]=j;break c}i[f>>2]=g}h=h+1|0;g=i[a+8>>2];if((h|0)<(g|0)){continue}break}if((g|0)<1){break b}j=0;while(1){h=j<<2;f=h+c|0;h=i[b+h>>2]+i[h+k>>2]|0;i[f>>2]=h;d:{if((h|0)>i[a+16>>2]){h=h-i[a+20>>2]|0}else{if((h|0)>=i[a+12>>2]){break d}h=h+i[a+20>>2]|0}i[f>>2]=h}j=j+1|0;g=i[a+8>>2];if((j|0)<(g|0)){continue}break}}if((e|0)<(d|0)){p=0-e<<2;f=e;while(1){e:{if((g|0)<1){break e}m=f<<2;o=m+c|0;q=o+p|0;h=0;while(1){g=h<<2;j=i[g+q>>2];l=i[a+16>>2];f:{if((j|0)>(l|0)){k=i[a+32>>2];i[g+k>>2]=l;break f}k=i[a+32>>2];g=g+k|0;l=i[a+12>>2];if((j|0)<(l|0)){i[g>>2]=l;break f}i[g>>2]=j}h=h+1|0;g=i[a+8>>2];if((h|0)<(g|0)){continue}break}j=0;if((g|0)<1){break e}m=b+m|0;while(1){g=j<<2;h=g+o|0;g=i[g+m>>2]+i[g+k>>2]|0;i[h>>2]=g;g:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break g}g=g+i[a+20>>2]|0}i[h>>2]=g}j=j+1|0;g=i[a+8>>2];if((j|0)<(g|0)){continue}break}}f=e+f|0;if((f|0)<(d|0)){continue}break}}nn(n);return 1}function hg(a,b){var c=0,d=0,e=0,f=0,g=0;c=-1;f=-1;a:{if((b|0)==-1){break a}e=b+1|0;c=(e>>>0)%3|0?e:b+ -2|0;f=b+ -1|0;if((b>>>0)%3|0){break a}f=b+2|0}b:{c:{d:{e:{f:{g:{d=i[a+184>>2];switch(d|0){case 7:break d;case 3:break e;case 5:break f;case 0:case 1:break g;default:break b}}g=i[a+148>>2];e=-1;d=1;c=((c|0)!=-1?i[i[g>>2]+(c<<2)>>2]:e)<<2;e=i[a+156>>2];c=c+e|0;i[c>>2]=i[c>>2]+1;c=(((f|0)!=-1?i[i[g>>2]+(f<<2)>>2]:-1)<<2)+e|0;break c}g=i[a+148>>2];e=i[a+156>>2];d=e+(((b|0)!=-1?i[i[g>>2]+(b<<2)>>2]:-1)<<2)|0;i[d>>2]=i[d>>2]+1;d=(((c|0)!=-1?i[i[g>>2]+(c<<2)>>2]:-1)<<2)+e|0;i[d>>2]=i[d>>2]+1;c=-1;d=2;c=e+(((f|0)!=-1?i[i[g>>2]+(f<<2)>>2]:c)<<2)|0;break c}g=i[a+148>>2];e=i[a+156>>2];d=e+(((b|0)!=-1?i[i[g>>2]+(b<<2)>>2]:-1)<<2)|0;i[d>>2]=i[d>>2]+1;d=(((c|0)!=-1?i[i[g>>2]+(c<<2)>>2]:-1)<<2)+e|0;i[d>>2]=i[d>>2]+2;d=1;c=(((f|0)!=-1?i[i[g>>2]+(f<<2)>>2]:-1)<<2)+e|0;break c}g=i[a+148>>2];e=i[a+156>>2];d=e+(((b|0)!=-1?i[i[g>>2]+(b<<2)>>2]:-1)<<2)|0;i[d>>2]=i[d>>2]+2;d=(((c|0)!=-1?i[i[g>>2]+(c<<2)>>2]:-1)<<2)+e|0;i[d>>2]=i[d>>2]+2;c=-1;d=2;c=e+(((f|0)!=-1?i[i[g>>2]+(f<<2)>>2]:c)<<2)|0}i[c>>2]=i[c>>2]+d;d=i[a+184>>2]}h:{switch(d|0){case 0:case 5:f=i[a+156>>2];c=-1;i:{if((b|0)==-1){break i}d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0;c=-1;if((b|0)==-1){break i}c=i[i[i[a+148>>2]>>2]+(b<<2)>>2]}if(i[f+(c<<2)>>2]<=5){i[a+188>>2]=5;return}i[a+188>>2]=0;return;default:break h}}i[a+188>>2]=-1}function If(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;d=J-112|0;J=d;m=i[i[b+4>>2]+44>>2];h=Dm(120);e=h;i[e+12>>2]=0;i[e+16>>2]=0;i[e>>2]=12316;i[e+4>>2]=0;i[e+8>>2]=12528;i[e+116>>2]=0;i[e+112>>2]=c;i[e+108>>2]=m;i[e+104>>2]=0;i[e+96>>2]=0;i[e+100>>2]=0;i[e+20>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+56>>2]=0;i[e+60>>2]=0;e=e- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[h+72>>2]=0;i[h+76>>2]=0;i[h+80>>2]=0;i[h+84>>2]=0;i[h+88>>2]=0;b=i[b+8>>2];i[d+52>>2]=0;e=d+44|0;i[e>>2]=0;i[e+4>>2]=0;i[d+36>>2]=0;i[d+40>>2]=0;n=d+28|0;k=n;i[k>>2]=0;i[k+4>>2]=0;k=d+20|0;f=k;i[f>>2]=0;i[f+4>>2]=0;f=d- -64|0;i[f>>2]=0;i[f+4>>2]=0;i[d+72>>2]=0;i[d+76>>2]=0;f=d+80|0;i[f>>2]=0;i[f+4>>2]=0;i[d+88>>2]=0;i[d+104>>2]=0;i[d+12>>2]=0;i[d+16>>2]=0;i[d+56>>2]=0;i[d+60>>2]=0;i[d+8>>2]=12528;i[d+96>>2]=0;i[d+100>>2]=0;i[d+12>>2]=b;j=i[b>>2];l=i[b+4>>2];g[d+111|0]=0;Jf(d+32|0,(l-j>>2>>>0)/3|0,d+111|0);j=i[d+12>>2];l=i[j+28>>2];j=i[j+24>>2];g[d+111|0]=0;Jf(e,l-j>>2,d+111|0);i[n>>2]=h;i[d+24>>2]=m;i[k>>2]=c;i[d+16>>2]=b;Lf(h,d+8|0);i[a>>2]=h;i[d+8>>2]=12528;a=i[d+96>>2];if(a){i[d+100>>2]=a;nn(a)}a=i[f>>2];if(a){i[d+84>>2]=a;nn(a)}a=i[d+68>>2];if(a){i[d+72>>2]=a;nn(a)}a=i[d+56>>2];if(a){i[d+60>>2]=a;nn(a)}i[d+8>>2]=12764;a=i[d+44>>2];if(a){nn(a)}a=i[d+32>>2];if(a){nn(a)}J=d+112|0}function Yc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0;n=J-32|0;J=n;i[n+28>>2]=0;a:{b:{if(k[b+38>>1]<=513){g=i[b+12>>2];c=i[b+20>>2];e=i[b+16>>2];d=e+4|0;if(d>>>0<4){c=c+1|0}f=d;d=c;if((g|0)<(c|0)?1:(g|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=e+i[b>>2]|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=d;break b}if(!Nc(1,n+28|0,b)){break a}c=i[n+28>>2]}if(!c){break a}f=a+76|0;Oc(f,c);o=ze(n+8|0);c:{if(!Ae(o,b)){break c}g=1;while(1){e=1<>2]+(m>>>3&536870908)|0;g=g^h;h=i[d>>2]|e;d:{if(!(g&1)){break d}h=i[d>>2]&(e^-1)}e=h;g=g^1;i[d>>2]=e;m=m+1|0;if((c|0)!=(m|0)){continue}break}m=0;d=i[b+12>>2];g=d;c=i[b+20>>2];e=c;o=i[b+16>>2];f=o+4|0;if(f>>>0<4){c=c+1|0}p=i[b+8>>2];h=f;f=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?p>>>0>>0:0){break c}q=i[b>>2];c=q+o|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=f;c=e;e=o+8|0;if(e>>>0<8){c=c+1|0}f=e;e=c;if((g|0)<(c|0)?1:(g|0)<=(c|0)?p>>>0>>0:0){break c}c=h+q|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=e;if((d|0)>(c|0)){break c}i[a+16>>2]=c;i[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break c}m=1;b=b+1|0;i[a+20>>2]=b;c=(b|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(b&1){break c}i[a+24>>2]=c+ -1}}J=n+32|0;return m|0}function Sf(a,b){var c=0,d=0,e=0,f=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if((e-c|0)/144>>>0>=b>>>0){d=a;if(b){a=o(b,144)+c|0;while(1){i[c>>2]=-1;Pk(c+4|0);i[c+104>>2]=0;i[c+108>>2]=0;g[c+100|0]=1;i[c+112>>2]=0;i[c+116>>2]=0;i[c+120>>2]=0;i[c+124>>2]=0;i[c+128>>2]=0;i[c+132>>2]=0;i[c+136>>2]=0;i[c+140>>2]=0;c=c+144|0;if((a|0)!=(c|0)){continue}break}c=a}i[d+4>>2]=c;return}a:{b:{c:{f=i[a>>2];c=(c-f|0)/144|0;d=c+b|0;if(d>>>0<29826162){h=o(c,144);e=(e-f|0)/144|0;f=e<<1;f=e>>>0<14913080?f>>>0>>0?d:f:29826161;c=0;d:{if(!f){break d}if(f>>>0>=29826162){break c}c=Dm(o(f,144))}e=c;d=c+h|0;h=d+o(b,144)|0;c=d;while(1){i[c>>2]=-1;Pk(c+4|0);i[c+104>>2]=0;i[c+108>>2]=0;g[c+100|0]=1;i[c+112>>2]=0;i[c+116>>2]=0;i[c+120>>2]=0;i[c+124>>2]=0;i[c+128>>2]=0;i[c+132>>2]=0;i[c+136>>2]=0;i[c+140>>2]=0;c=c+144|0;if((h|0)!=(c|0)){continue}break}e=o(f,144)+e|0;b=i[a>>2];c=i[a+4>>2];if((b|0)==(c|0)){break b}while(1){c=c+ -144|0;d=Yg(d+ -144|0,c);if((b|0)!=(c|0)){continue}break}i[a+8>>2]=e;c=i[a+4>>2];i[a+4>>2]=h;b=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){a=i[c+ -12>>2];if(a){i[c+ -8>>2]=a;nn(a)}a=i[c+ -28>>2];if(a){i[c+ -24>>2]=a;nn(a)}a=c+ -144|0;d=i[c+ -40>>2];if(d){i[c+ -36>>2]=d;nn(d)}Rf(c+ -140|0);c=a;if((c|0)!=(b|0)){continue}break}break a}Sm();x()}Ba(12220);x()}i[a+8>>2]=e;i[a+4>>2]=h;i[a>>2]=d}if(b){nn(b)}}function Mc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,p=0,q=0,r=0;n=J-32|0;J=n;a:{if(k[b+38>>1]<=513){e=i[b+16>>2];d=i[b+12>>2];c=i[b+20>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]<=e>>>0:0){break a}f=j[e+i[b>>2]|0];e=e+1|0;if(e>>>0<1){c=c+1|0}i[b+16>>2]=e;i[b+20>>2]=c;if(f){break a}}b:{while(1){if(!Nc(1,n+28|0,b)){break b}c=i[n+28>>2];if(c){f=(o(g,12)+a|0)+60|0;Oc(f,c);m=ze(n+8|0);if(!Ae(m,b)){break b}h=0;while(1){d=1<>2]+(h>>>3&536870908)|0;q=e;if(p){d=i[e>>2]|d}else{d=i[e>>2]&(d^-1)}i[q>>2]=d;h=h+1|0;if((c|0)!=(h|0)){continue}break}}g=g+1|0;if((g|0)!=4){continue}break}h=0;d=i[b+12>>2];e=d;c=i[b+20>>2];g=c;m=i[b+16>>2];f=m+4|0;if(f>>>0<4){c=c+1|0}q=i[b+8>>2];p=f;f=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?q>>>0

>>0:0){break a}r=i[b>>2];c=r+m|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=p;i[b+20>>2]=f;c=g;g=m+8|0;if(g>>>0<8){c=c+1|0}f=g;g=c;if((e|0)<(c|0)?1:(e|0)<=(c|0)?q>>>0>>0:0){break a}c=p+r|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=g;if((d|0)>(c|0)){break a}i[a+16>>2]=c;i[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break a}h=1;b=b+1|0;i[a+20>>2]=b;c=(b|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(b&1){break a}i[a+24>>2]=c+ -1;break a}h=0}J=n+32|0;return h|0}function Fe(a,b){var c=0,d=0,e=0;e=J-32|0;J=e;a:{b:{switch(b|0){case 0:b=Dm(48);qf(b);i[b>>2]=13256;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;break a;case 1:b=Dm(52);qf(b);i[b+48>>2]=0;i[b>>2]=11360;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;break a;default:break b}}b=Dm(32);i[e>>2]=b;i[e+4>>2]=28;i[e+8>>2]=-2147483616;g[b+28|0]=0;c=j[11080]|j[11081]<<8|(j[11082]<<16|j[11083]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;c=j[11076]|j[11077]<<8|(j[11078]<<16|j[11079]<<24);d=j[11072]|j[11073]<<8|(j[11074]<<16|j[11075]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[11068]|j[11069]<<8|(j[11070]<<16|j[11071]<<24);d=j[11064]|j[11065]<<8|(j[11066]<<16|j[11067]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11060]|j[11061]<<8|(j[11062]<<16|j[11063]<<24);d=j[11056]|j[11057]<<8|(j[11058]<<16|j[11059]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[e+16>>2]=-1;b=Gm(e+16|4,e);i[a>>2]=i[e+16>>2];Gm(a+4|0,b);i[a+16>>2]=0;if(g[b+11|0]<=-1){nn(i[b>>2])}if(g[e+11|0]>-1){break a}nn(i[e>>2])}J=e+32|0}function dd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0;m=J-16|0;J=m;e=i[b+12>>2];c=i[b+20>>2];f=i[b+16>>2];d=f+4|0;if(d>>>0<4){c=c+1|0}g=d;d=c;a:{if((e|0)<(c|0)?1:(e|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=f+i[b>>2]|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=g;i[b+20>>2]=d;if((c|0)<0){break a}Oc(a+76|0,c);g=ze(m);b:{if(!Ae(g,b)){break b}if((c|0)>=1){e=1;while(1){f=1<>2]+(k>>>3&536870908)|0;e=e^h;h=i[d>>2]|f;c:{if(!(e&1)){break c}h=i[d>>2]&(f^-1)}f=h;e=e^1;i[d>>2]=f;k=k+1|0;if((c|0)!=(k|0)){continue}break}}d=i[b+12>>2];k=d;c=i[b+20>>2];e=c;g=i[b+16>>2];f=g+4|0;if(f>>>0<4){c=c+1|0}n=i[b+8>>2];h=f;f=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?n>>>0>>0:0){break b}o=i[b>>2];c=o+g|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=f;c=e;e=g+8|0;if(e>>>0<8){c=c+1|0}f=e;e=c;if((k|0)<(c|0)?1:(k|0)<=(c|0)?n>>>0>>0:0){break b}c=h+o|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=e;if((d|0)>(c|0)){break b}i[a+16>>2]=c;i[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break b}p=1;b=b+1|0;i[a+20>>2]=b;c=(b|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(b&1){break b}i[a+24>>2]=c+ -1}}J=m+16|0;return p|0}function og(a,b){var c=0,d=0,e=0,f=0,g=0;f=-1;d=-1;a:{if((b|0)==-1){break a}d=b+1|0;f=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break a}d=b+2|0}b:{c:{d:{switch(i[a+168>>2]){case 0:case 1:c=i[a+148>>2];e=1;b=i[a+156>>2];g=b+(((f|0)!=-1?i[i[c>>2]+(f<<2)>>2]:-1)<<2)|0;i[g>>2]=i[g>>2]+1;b=(((d|0)!=-1?i[i[c>>2]+(d<<2)>>2]:-1)<<2)+b|0;break c;case 5:e=i[a+148>>2];c=-1;c=((b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:c)<<2;b=i[a+156>>2];c=c+b|0;i[c>>2]=i[c>>2]+1;c=(((f|0)!=-1?i[i[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;i[c>>2]=i[c>>2]+1;c=-1;c=(d|0)!=-1?i[i[e>>2]+(d<<2)>>2]:c;e=2;b=b+(c<<2)|0;break c;case 3:e=i[a+148>>2];c=-1;c=((b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:c)<<2;b=i[a+156>>2];c=c+b|0;i[c>>2]=i[c>>2]+1;c=(((f|0)!=-1?i[i[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;i[c>>2]=i[c>>2]+2;b=(((d|0)!=-1?i[i[e>>2]+(d<<2)>>2]:-1)<<2)+b|0;e=1;break c;case 7:break d;default:break b}}e=i[a+148>>2];c=-1;c=((b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:c)<<2;b=i[a+156>>2];c=c+b|0;i[c>>2]=i[c>>2]+2;c=(((f|0)!=-1?i[i[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;i[c>>2]=i[c>>2]+2;c=-1;c=(d|0)!=-1?i[i[e>>2]+(d<<2)>>2]:c;e=2;b=b+(c<<2)|0}i[b>>2]=i[b>>2]+e}c=-1;c=(f|0)!=-1?i[i[i[a+148>>2]>>2]+(f<<2)>>2]:c;f=i[a+176>>2];b=f;d=a;c=i[i[a+156>>2]+(c<<2)>>2];if((c|0)>=(b|0)){a=i[a+180>>2];b=(c|0)>(a|0)?a:c}i[d+172>>2]=b-f}function fi(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=J-16|0;J=e;i[a+68>>2]=i[a+68>>2]+1;d=o(b,12)+a|0;f=i[d+12>>2];h=i[d+8>>2];d=f-h|0;if((d|0)>=1){f=h-f|0;d=((f|0)>(d|0)?f:d)>>>2|0;k=d>>>0>1?d:1;d=i[((b<<2)+a|0)+44>>2];h=0;while(1){b=d;f=(b>>>0)/3|0;g=(b|0)==-1;d=g?-1:f;j=i[a+56>>2]+(d>>>3&536870908)|0;i[j>>2]=i[j>>2]|1<>2]=i[a+72>>2]+1;a:{b:{if(!h){i[e+12>>2]=(b|0)<0?-1:i[(i[i[a>>2]+96>>2]+o(f,12)|0)+((b>>>0)%3<<2)>>2];i[e+8>>2]=c;ei(e+8|0,e+12|0);c:{if(!g){d=-1;f=e;g=b+1|0;g=(g>>>0)%3|0?g:b+ -2|0;if((g|0)>=0){j=(g>>>0)/3|0;j=i[(i[i[a>>2]+96>>2]+o(j,12)|0)+(g-o(j,3)<<2)>>2]}else{j=-1}i[f+12>>2]=j;i[e+8>>2]=c;ei(e+8|0,e+12|0);f=((b>>>0)%3|0?-1:2)+b|0;if((f|0)<0){break c}d=(f>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(f-o(d,3)<<2)>>2];break c}d=-1;i[e+12>>2]=-1;i[e+8>>2]=c;ei(e+8|0,e+12|0)}i[a+76>>2]=d;i[e+12>>2]=d;i[e+8>>2]=c;ei(e+8|0,e+12|0);break b}g=(b|0)<0?-1:i[(i[i[a>>2]+96>>2]+o(f,12)|0)+((b>>>0)%3<<2)>>2];i[a+76>>2]=g;i[e+12>>2]=g;i[e+8>>2]=c;ei(e+8|0,e+12|0);if(h&1){d=-1;if((b|0)==-1){break a}if(b-o(f,3)|0){b=b+ -1|0;break b}b=b+2|0;break b}d=-1;if((b|0)==-1){break a}d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0}d=-1;if((b|0)==-1){break a}d=i[i[i[a+4>>2]+12>>2]+(b<<2)>>2]}h=h+1|0;if((k|0)!=(h|0)){continue}break}}J=e+16|0}function Ke(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=J-32|0;J=e;f=a+16|0;d=i[f>>2];a:{b:{if(!d){break b}h=i[b>>2];c=f;while(1){g=i[d+16>>2]<(h|0);c=g?c:d;d=i[(g<<2)+d>>2];if(d){continue}break}if((c|0)==(f|0)){break b}if((h|0)>=i[c+16>>2]){break a}}k=Gh(e+16|0);b=i[b>>2];j=e+8|0;i[j>>2]=0;i[j+4>>2]=0;i[e>>2]=b;i[e+4>>2]=j;c=i[k>>2];h=k+4|0;if((c|0)!=(h|0)){g=e|4;while(1){b=c;d=c+16|0;Le(g,j,d,d);d=i[c+4>>2];c:{if(!d){c=i[b+8>>2];if((b|0)==i[c>>2]){break c}d=b+8|0;while(1){b=i[d>>2];d=b+8|0;c=i[b+8>>2];if((b|0)!=i[c>>2]){continue}break}break c}while(1){c=d;d=i[c>>2];if(d){continue}break}}if((c|0)!=(h|0)){continue}break}}d=i[f>>2];d:{if(d){f=a+16|0;g=i[e>>2];while(1){b=i[d+16>>2];e:{if((g|0)<(b|0)){c=i[d>>2];if(c){break e}f=d;break d}if((b|0)>=(g|0)){break d}f=d+4|0;c=i[d+4>>2];if(!c){break d}d=f}f=d;d=c;continue}}d=f}c=i[f>>2];if(!c){c=Dm(32);i[c+16>>2]=i[e>>2];i[c+20>>2]=i[e+4>>2];g=i[e+8>>2];i[c+24>>2]=g;b=i[e+12>>2];i[c+28>>2]=b;h=c+24|0;f:{if(!b){i[c+20>>2]=h;break f}i[g+8>>2]=h;i[e+8>>2]=0;i[e+12>>2]=0;i[e+4>>2]=j}i[c+8>>2]=d;i[c>>2]=0;i[c+4>>2]=0;i[f>>2]=c;d=i[i[a+12>>2]>>2];b=c;g:{if(!d){break g}i[a+12>>2]=d;b=i[f>>2]}Me(i[a+16>>2],b);a=a+20|0;i[a>>2]=i[a>>2]+1}Ne(e|4,i[e+8>>2]);Ne(k,i[k+4>>2])}J=e+32|0;return c+20|0}function kh(a,b){var c=0,d=0,e=0;e=J-32|0;J=e;c=Dm(36);i[c+4>>2]=0;i[c+8>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;i[c>>2]=c+4;i[c+12>>2]=c+16;i[e+24>>2]=c;d=e+16|0;i[d>>2]=0;a:{if(!Zk(d,i[b+32>>2],c)){b=Dm(32);i[e>>2]=b;i[e+4>>2]=26;i[e+8>>2]=-2147483616;g[b+26|0]=0;c=j[13614]|j[13615]<<8;g[b+24|0]=c;g[b+25|0]=c>>>8;c=j[13610]|j[13611]<<8|(j[13612]<<16|j[13613]<<24);d=j[13606]|j[13607]<<8|(j[13608]<<16|j[13609]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[13602]|j[13603]<<8|(j[13604]<<16|j[13605]<<24);d=j[13598]|j[13599]<<8|(j[13600]<<16|j[13601]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13594]|j[13595]<<8|(j[13596]<<16|j[13597]<<24);d=j[13590]|j[13591]<<8|(j[13592]<<16|j[13593]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;Gm(a+4|0,e);if(g[e+11|0]>-1){break a}nn(i[e>>2]);break a}b=i[b+4>>2];i[e+24>>2]=0;d=i[b+4>>2];i[b+4>>2]=c;if(d){lh(d)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}a=i[e+24>>2];i[e+24>>2]=0;if(a){lh(a)}J=e+32|0}function Re(a,b,c,d){var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=J+ -64|0;J=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(!Te(e+8|0,c)){break a}if(!Ue(e+8|0,c)){break a}b:{if(!a){Ch(c,0,0);break b}if(!i[e+20>>2]){break a}Ch(c,0,0);h=i[e+56>>2];s=i[e+36>>2];t=i[e+48>>2];u=i[e+24>>2];while(1){c:{if(h>>>0>16383){break c}f=i[e+52>>2];while(1){if((f|0)<1){break c}f=f+ -1|0;i[e+52>>2]=f;h=j[f+t|0]|h<<8;i[e+56>>2]=h;if(h>>>0<16384){continue}break}}g=h&4095;q=i[(g<<2)+u>>2];k=(q<<3)+s|0;h=(o(i[k>>2],h>>>12|0)+g|0)-i[k+4>>2]|0;i[e+56>>2]=h;if((b|0)>=1){if(!j[c+36|0]){g=0;break a}k=b+l|0;while(1){d:{if((q|0)<1){n=0;break d}g=i[c+32>>2];v=i[c+28>>2];w=i[c+24>>2];f=0;n=0;while(1){m=(g>>>3|0)+w|0;e:{if(m>>>0>=v>>>0){p=0;break e}p=j[m|0];m=g+1|0;i[c+32>>2]=m;p=p>>>(g&7)&1;g=m}n=p<>2]=n;l=l+1|0;if((k|0)!=(l|0)){continue}break}l=k}r=b+r|0;if(r>>>0>>0){continue}break}}Eh(c);g=1}a=i[e+36>>2];if(a){i[e+40>>2]=a;nn(a)}a=i[e+24>>2];if(a){i[e+28>>2]=a;nn(a)}a=i[e+8>>2];if(a){i[e+12>>2]=a;nn(a)}J=e- -64|0;return g}function lf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0;l=J-16|0;J=l;a:{b:{if(k[b+38>>1]<=511){f=i[b+12>>2];m=f;c=i[b+20>>2];d=i[b+16>>2];e=d+8|0;if(e>>>0<8){c=c+1|0}g=i[b+8>>2];if((f|0)<(c|0)?1:(f|0)<=(c|0)?g>>>0>>0:0){break a}d=d+i[b>>2]|0;f=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);h=j[d+4|0]|j[d+5|0]<<8|(j[d+6|0]<<16|j[d+7|0]<<24);i[b+16>>2]=e;i[b+20>>2]=c;break b}if(!cf(1,l+8|0,b)){break a}e=i[b+16>>2];c=i[b+20>>2];g=i[b+8>>2];m=i[b+12>>2];f=i[l+8>>2];h=i[l+12>>2]}d=e;n=g-d|0;g=m-(c+(g>>>0>>0)|0)|0;if((g|0)==(h|0)&f>>>0>n>>>0|h>>>0>g>>>0){break a}d=c+h|0;c=e;h=c+f|0;if(h>>>0>>0){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=f;if((c|0)<1){break a}e=e+i[b>>2]|0;i[a+40>>2]=e;b=a;c:{d:{e:{f:{g:{f=c+ -1|0;g=e+f|0;switch((j[g|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}i[a+44>>2]=f;a=j[g|0]&63;break c}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+e|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+e|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break c}i[a+44>>2]=c+ -4;a=(c+e|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a- -1048576|0;i[b+48>>2]=a;o=a>>>0<268435456}J=l+16|0;return o}function pf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0;l=J-16|0;J=l;a:{b:{if(k[b+38>>1]<=511){f=i[b+12>>2];m=f;c=i[b+20>>2];d=i[b+16>>2];e=d+8|0;if(e>>>0<8){c=c+1|0}g=i[b+8>>2];if((f|0)<(c|0)?1:(f|0)<=(c|0)?g>>>0>>0:0){break a}d=d+i[b>>2]|0;f=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);h=j[d+4|0]|j[d+5|0]<<8|(j[d+6|0]<<16|j[d+7|0]<<24);i[b+16>>2]=e;i[b+20>>2]=c;break b}if(!cf(1,l+8|0,b)){break a}e=i[b+16>>2];c=i[b+20>>2];g=i[b+8>>2];m=i[b+12>>2];f=i[l+8>>2];h=i[l+12>>2]}d=e;n=g-d|0;g=m-(c+(g>>>0>>0)|0)|0;if((g|0)==(h|0)&f>>>0>n>>>0|h>>>0>g>>>0){break a}d=c+h|0;c=e;h=c+f|0;if(h>>>0>>0){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=f;if((c|0)<1){break a}e=e+i[b>>2]|0;i[a+40>>2]=e;b=a;c:{d:{e:{f:{g:{f=c+ -1|0;g=e+f|0;switch((j[g|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}i[a+44>>2]=f;a=j[g|0]&63;break c}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+e|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+e|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break c}i[a+44>>2]=c+ -4;a=(c+e|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a+4194304|0;i[b+48>>2]=a;o=a>>>0<1073741824}J=l+16|0;return o}function nf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0;l=J-16|0;J=l;a:{b:{if(k[b+38>>1]<=511){f=i[b+12>>2];m=f;c=i[b+20>>2];d=i[b+16>>2];e=d+8|0;if(e>>>0<8){c=c+1|0}g=i[b+8>>2];if((f|0)<(c|0)?1:(f|0)<=(c|0)?g>>>0>>0:0){break a}d=d+i[b>>2]|0;f=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);h=j[d+4|0]|j[d+5|0]<<8|(j[d+6|0]<<16|j[d+7|0]<<24);i[b+16>>2]=e;i[b+20>>2]=c;break b}if(!cf(1,l+8|0,b)){break a}e=i[b+16>>2];c=i[b+20>>2];g=i[b+8>>2];m=i[b+12>>2];f=i[l+8>>2];h=i[l+12>>2]}d=e;n=g-d|0;g=m-(c+(g>>>0>>0)|0)|0;if((g|0)==(h|0)&f>>>0>n>>>0|h>>>0>g>>>0){break a}d=c+h|0;c=e;h=c+f|0;if(h>>>0>>0){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=f;if((c|0)<1){break a}e=e+i[b>>2]|0;i[a+40>>2]=e;b=a;c:{d:{e:{f:{g:{f=c+ -1|0;g=e+f|0;switch((j[g|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}i[a+44>>2]=f;a=j[g|0]&63;break c}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+e|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+e|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break c}i[a+44>>2]=c+ -4;a=(c+e|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a+2097152|0;i[b+48>>2]=a;o=a>>>0<536870912}J=l+16|0;return o}function jf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0;l=J-16|0;J=l;a:{b:{if(k[b+38>>1]<=511){f=i[b+12>>2];m=f;c=i[b+20>>2];d=i[b+16>>2];e=d+8|0;if(e>>>0<8){c=c+1|0}g=i[b+8>>2];if((f|0)<(c|0)?1:(f|0)<=(c|0)?g>>>0>>0:0){break a}d=d+i[b>>2]|0;f=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);h=j[d+4|0]|j[d+5|0]<<8|(j[d+6|0]<<16|j[d+7|0]<<24);i[b+16>>2]=e;i[b+20>>2]=c;break b}if(!cf(1,l+8|0,b)){break a}e=i[b+16>>2];c=i[b+20>>2];g=i[b+8>>2];m=i[b+12>>2];f=i[l+8>>2];h=i[l+12>>2]}d=e;n=g-d|0;g=m-(c+(g>>>0>>0)|0)|0;if((g|0)==(h|0)&f>>>0>n>>>0|h>>>0>g>>>0){break a}d=c+h|0;c=e;h=c+f|0;if(h>>>0>>0){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=f;if((c|0)<1){break a}e=e+i[b>>2]|0;i[a+40>>2]=e;b=a;c:{d:{e:{f:{g:{f=c+ -1|0;g=e+f|0;switch((j[g|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}i[a+44>>2]=f;a=j[g|0]&63;break c}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+e|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+e|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break c}i[a+44>>2]=c+ -4;a=(c+e|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a+262144|0;i[b+48>>2]=a;o=a>>>0<67108864}J=l+16|0;return o}function gf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0;l=J-16|0;J=l;a:{b:{if(k[b+38>>1]<=511){f=i[b+12>>2];m=f;c=i[b+20>>2];d=i[b+16>>2];e=d+8|0;if(e>>>0<8){c=c+1|0}g=i[b+8>>2];if((f|0)<(c|0)?1:(f|0)<=(c|0)?g>>>0>>0:0){break a}d=d+i[b>>2]|0;f=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);h=j[d+4|0]|j[d+5|0]<<8|(j[d+6|0]<<16|j[d+7|0]<<24);i[b+16>>2]=e;i[b+20>>2]=c;break b}if(!cf(1,l+8|0,b)){break a}e=i[b+16>>2];c=i[b+20>>2];g=i[b+8>>2];m=i[b+12>>2];f=i[l+8>>2];h=i[l+12>>2]}d=e;n=g-d|0;g=m-(c+(g>>>0>>0)|0)|0;if((g|0)==(h|0)&f>>>0>n>>>0|h>>>0>g>>>0){break a}d=c+h|0;c=e;h=c+f|0;if(h>>>0>>0){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=f;if((c|0)<1){break a}e=e+i[b>>2]|0;i[a+40>>2]=e;b=a;c:{d:{e:{f:{g:{f=c+ -1|0;g=e+f|0;switch((j[g|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}i[a+44>>2]=f;a=j[g|0]&63;break c}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+e|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+e|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break c}i[a+44>>2]=c+ -4;a=(c+e|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a+131072|0;i[b+48>>2]=a;o=a>>>0<33554432}J=l+16|0;return o}function ef(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0;l=J-16|0;J=l;a:{b:{if(k[b+38>>1]<=511){f=i[b+12>>2];m=f;c=i[b+20>>2];d=i[b+16>>2];e=d+8|0;if(e>>>0<8){c=c+1|0}g=i[b+8>>2];if((f|0)<(c|0)?1:(f|0)<=(c|0)?g>>>0>>0:0){break a}d=d+i[b>>2]|0;f=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);h=j[d+4|0]|j[d+5|0]<<8|(j[d+6|0]<<16|j[d+7|0]<<24);i[b+16>>2]=e;i[b+20>>2]=c;break b}if(!cf(1,l+8|0,b)){break a}e=i[b+16>>2];c=i[b+20>>2];g=i[b+8>>2];m=i[b+12>>2];f=i[l+8>>2];h=i[l+12>>2]}d=e;n=g-d|0;g=m-(c+(g>>>0>>0)|0)|0;if((g|0)==(h|0)&f>>>0>n>>>0|h>>>0>g>>>0){break a}d=c+h|0;c=e;h=c+f|0;if(h>>>0>>0){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=f;if((c|0)<1){break a}e=e+i[b>>2]|0;i[a+40>>2]=e;b=a;c:{d:{e:{f:{g:{f=c+ -1|0;g=e+f|0;switch((j[g|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}i[a+44>>2]=f;a=j[g|0]&63;break c}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+e|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+e|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break c}i[a+44>>2]=c+ -4;a=(c+e|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a+32768|0;i[b+48>>2]=a;o=a>>>0<8388608}J=l+16|0;return o}function Ue(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0;l=J-16|0;J=l;a:{b:{if(k[b+38>>1]<=511){f=i[b+12>>2];m=f;c=i[b+20>>2];d=i[b+16>>2];e=d+8|0;if(e>>>0<8){c=c+1|0}g=i[b+8>>2];if((f|0)<(c|0)?1:(f|0)<=(c|0)?g>>>0>>0:0){break a}d=d+i[b>>2]|0;f=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);h=j[d+4|0]|j[d+5|0]<<8|(j[d+6|0]<<16|j[d+7|0]<<24);i[b+16>>2]=e;i[b+20>>2]=c;break b}if(!cf(1,l+8|0,b)){break a}e=i[b+16>>2];c=i[b+20>>2];g=i[b+8>>2];m=i[b+12>>2];f=i[l+8>>2];h=i[l+12>>2]}d=e;n=g-d|0;g=m-(c+(g>>>0>>0)|0)|0;if((g|0)==(h|0)&f>>>0>n>>>0|h>>>0>g>>>0){break a}d=c+h|0;c=e;h=c+f|0;if(h>>>0>>0){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=f;if((c|0)<1){break a}e=e+i[b>>2]|0;i[a+40>>2]=e;b=a;c:{d:{e:{f:{g:{f=c+ -1|0;g=e+f|0;switch((j[g|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}i[a+44>>2]=f;a=j[g|0]&63;break c}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+e|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+e|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break c}i[a+44>>2]=c+ -4;a=(c+e|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a+16384|0;i[b+48>>2]=a;o=a>>>0<4194304}J=l+16|0;return o}function Ae(a,b){var c=0,d=0,e=0,f=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;p=J-16|0;J=p;e=i[b+16>>2];c=i[b+12>>2];d=i[b+20>>2];a:{if((c|0)<(d|0)?1:(c|0)<=(d|0)?l[b+8>>2]<=e>>>0:0){break a}g[a+12|0]=j[e+i[b>>2]|0];c=i[b+20>>2];e=c;h=i[b+16>>2];m=h+1|0;if(m>>>0<1){c=c+1|0}f=m;i[b+16>>2]=f;i[b+20>>2]=c;b:{if(k[b+38>>1]<=513){n=i[b+12>>2];o=n;d=e;c=h+5|0;if(c>>>0<5){d=d+1|0}m=i[b+8>>2];h=c;c=d;if((o|0)<(c|0)?1:(o|0)<=(c|0)?m>>>0>>0:0){break a}d=f+i[b>>2]|0;f=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=c;break b}if(!Be(1,p+12|0,b)){break a}h=i[b+16>>2];c=i[b+20>>2];m=i[b+8>>2];n=i[b+12>>2];f=i[p+12>>2]}d=f;e=n-(c+(m>>>0>>0)|0)|0;if(((e|0)<0?1:(e|0)<=0?m-h>>>0>>0:0)|(d|0)<1){break a}e=h+i[b>>2]|0;i[a>>2]=e;n=f+ -1|0;o=n+e|0;m=j[o|0]>>>6|0;if((m|0)==3){break a}q=a;c:{d:{switch(m-1|0){default:i[a+4>>2]=n;a=j[o|0]&63;break c;case 0:if((f|0)<2){break a}i[a+4>>2]=f+ -2;a=(f+e|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break c;case 1:break d}}if((f|0)<3){break a}i[a+4>>2]=f+ -3;a=(f+e|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0]}a=a+4096|0;i[q+8>>2]=a;if(a>>>0>1048575){break a}a=d+h|0;if(a>>>0>>0){c=c+1|0}i[b+16>>2]=a;i[b+20>>2]=c;r=1}J=p+16|0;return r}function nh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0;a:{b=i[a+32>>2];e=i[b+16>>2];h=i[b+12>>2];d=i[b+20>>2];b:{if((h|0)<(d|0)?1:(h|0)<=(d|0)?l[b+8>>2]<=e>>>0:0){break b}g=j[e+i[b>>2]|0];k=e+1|0;if(k>>>0<1){d=d+1|0}i[b+16>>2]=k;i[b+20>>2]=d;c:{if(!g){break c}while(1){if(M[i[i[a>>2]+16>>2]](a,c)|0){c=c+1|0;if((g|0)!=(c|0)){continue}break c}break}return 0}c=i[a+8>>2];d=i[a+12>>2];if((c|0)!=(d|0)){while(1){b=i[c>>2];if(!(M[i[i[b>>2]+8>>2]](b,a,i[a+4>>2])|0)){break b}c=c+4|0;if((d|0)!=(c|0)){continue}break}}d:{if(!g){break d}c=0;while(1){b=i[i[a+8>>2]+(c<<2)>>2];if(!(M[i[i[b>>2]+12>>2]](b,i[a+32>>2])|0)){break a}c=c+1|0;if((g|0)!=(c|0)){continue}break}if(!g){break d}h=a+20|0;while(1){c=0;k=m<<2;b=i[k+i[a+8>>2]>>2];d=M[i[i[b>>2]+24>>2]](b)|0;if((d|0)>0){while(1){b=i[i[a+8>>2]+k>>2];b=M[i[i[b>>2]+20>>2]](b,c)|0;n=i[a+20>>2];e=i[a+24>>2]-n>>2;e:{if(b>>>0>>0){break e}f=b+1|0;if(f>>>0>e>>>0){Ra(h,f-e|0);n=i[h>>2];break e}if(f>>>0>=e>>>0){break e}i[a+24>>2]=(f<<2)+n}i[(b<<2)+n>>2]=m;c=c+1|0;if((d|0)!=(c|0)){continue}break}}m=m+1|0;if((m|0)!=(g|0)){continue}break}}f=0;if(!(M[i[i[a>>2]+28>>2]](a)|0)){break b}f=M[i[i[a>>2]+32>>2]](a)|0}return f|0}return 0}function Yk(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,p=0;d=J-32|0;J=d;i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;a:{e=i[a>>2];c=e;h=i[c+16>>2];k=l[c+8>>2]<=h>>>0;f=i[c+12>>2];c=i[c+20>>2];b:{if((f|0)<(c|0)?1:(f|0)<=(c|0)?k:0){break b}k=j[h+i[e>>2]|0];f=c;c=h+1|0;if(c>>>0<1){f=f+1|0}i[e+16>>2]=c;i[e+20>>2]=f;Lm(d+16|0,k);if(k){f=i[a>>2];n=Pm(d+16|0);m=i[f+12>>2];h=i[f+20>>2];p=i[f+16>>2];e=k;c=p+e|0;if(c>>>0>>0){h=h+1|0}if((m|0)<(h|0)?1:(m|0)<=(h|0)?l[f+8>>2]>>0:0){break b}pn(n,p+i[f>>2]|0,k);h=i[f+20>>2];k=e+i[f+16>>2]|0;if(k>>>0>>0){h=h+1|0}c=f;i[c+16>>2]=k;i[c+20>>2]=h}i[d+12>>2]=0;c=Xk(1,d+12|0,i[a>>2]);e=i[d+12>>2];if(!e|!c){break b}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;if((e|0)<=-1){break a}m=Dm(e);i[d>>2]=m;c=e+m|0;i[d+8>>2]=c;p=qn(m,0,e);i[d+4>>2]=c;c=i[a>>2];a=i[c+8>>2];o=i[c+12>>2];f=a;n=i[c+20>>2];h=i[c+16>>2];a=e;k=h+e|0;if(k>>>0>>0){n=n+1|0}o=(o|0)>(n|0)?1:(o|0)>=(n|0)?f>>>0>=k>>>0:0;if(o){pn(p,h+i[c>>2]|0,e);e=c;k=c;f=i[c+20>>2];c=a+i[c+16>>2]|0;if(c>>>0>>0){f=f+1|0}i[k+16>>2]=c;i[e+20>>2]=f;hl(b,d+16|0,d);m=i[d>>2];if(!m){break b}}i[d+4>>2]=m;nn(m)}if(g[d+27|0]<=-1){nn(i[d+16>>2])}J=d+32|0;return o}Sm();x()}function Fn(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{g=b;if(g){e=c;if(!e){break j}f=d;if(!f){break i}f=r(f)-r(g)|0;if(f>>>0<=31){break h}break b}if((d|0)==1&c>>>0>=0|d>>>0>1){break b}b=(a>>>0)/(c>>>0)|0;L=0;return b}e=d;if(!a){break g}if(!e){break f}if(e+ -1&e){break f}a=g>>>Ln(e)|0;L=0;return a}if(!(e+ -1&e)){break e}j=(r(e)+33|0)-r(g)|0;h=0-j|0;break c}j=f+1|0;h=63-f|0;break c}a=(g>>>0)/(e>>>0)|0;L=0;return a}f=r(e)-r(g)|0;if(f>>>0<31){break d}break b}if((e|0)==1){break a}c=a;a=Ln(e);d=a&31;if(32<=(a&63)>>>0){f=0;a=b>>>d|0}else{f=b>>>d|0;a=((1<>>d}L=f;return a}j=f+1|0;h=63-f|0}e=b;g=a;f=j&63;i=f&31;if(32<=(f&63)>>>0){f=0;l=e>>>i|0}else{f=e>>>i|0;l=((1<>>i}a=h&63;h=a&31;if(32<=(a&63)>>>0){e=g<>>32-h|b<>>31;f=e<<1|b>>>31;m=k;e=k;k=f;i=g-((h>>>0>>0)+e|0)|0;e=i>>31;i=i>>31;f=c&i;l=k-f|0;f=m-((d&e)+(k>>>0>>0)|0)|0;e=b<<1|a>>>31;a=n|a<<1;b=e|o;m=0;k=i&1;n=k;j=j+ -1|0;if(j){continue}break}}L=m|(b<<1|a>>>31);return k|a<<1}a=0;b=0}L=b;return a}function ag(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=p(0),o=0,q=0;f=i[c>>2];o=a;a:{b:{e=i[b+4>>2];if(!e){break b}j=i[b>>2];l=Jn(e);h=f&e+ -1;c:{if(l>>>0<=1){break c}c=f;h=c;if(c>>>0>>0){break c}h=(f>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+j>>2];if(!c){break b}q=e+ -1|0;l=l>>>0>1;while(1){c=i[c>>2];if(!c){break b}j=i[c+4>>2];if((f|0)!=(j|0)){d:{if(!l){j=j&q;break d}if(j>>>0>>0){break d}j=(j>>>0)%(e>>>0)|0}if((j|0)!=(h|0)){break b}}if((f|0)!=i[c+8>>2]){continue}break}b=0;break a}c=Dm(16);d=i[i[d>>2]>>2];i[c+12>>2]=0;i[c+8>>2]=d;i[c+4>>2]=f;i[c>>2]=0;k=m[b+16>>2];n=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(n/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}Zg(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=f&e+ -1;break e}if(f>>>0>>0){h=f;break e}h=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(h<<2)|0;d=i[f>>2];g:{h:{if(!d){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[f>>2]=b+8;d=i[c>>2];if(!d){break g}d=i[d+4>>2];f=e+ -1|0;i:{if(!(f&e)){d=d&f;break i}if(d>>>0>>0){break i}d=(d>>>0)%(e>>>0)|0}d=i[b>>2]+(d<<2)|0;break h}i[c>>2]=i[d>>2]}i[d>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[o+4|0]=b;i[a>>2]=c}function Rd(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;k=i[i[i[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((M[i[i[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}h=M[i[i[b>>2]+36>>2]](b)|0;f=M[i[i[b>>2]+44>>2]](b,d)|0;if(!(f?h:0)){i[a>>2]=0;return}g=f+12|0;j=M[i[i[b>>2]+40>>2]](b,d)|0;d=i[b+44>>2];if(j){if((c|0)!=6){break b}b=Dm(112);i[b+4>>2]=k;c=i[e+4>>2];i[b+8>>2]=i[e>>2];i[b+12>>2]=c;c=i[e+12>>2];i[b+16>>2]=i[e+8>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+16>>2];i[b+40>>2]=f;i[b+36>>2]=g;i[b+32>>2]=j;i[b+28>>2]=d;i[b+68>>2]=f;i[b+64>>2]=g;i[b+60>>2]=j;i[b+56>>2]=d;i[b+48>>2]=0;i[b+52>>2]=0;i[b>>2]=8844;i[b+88>>2]=1065353216;i[b+92>>2]=-1;i[b+80>>2]=-1;i[b+84>>2]=-1;i[b+72>>2]=1;i[b+76>>2]=-1;i[b+44>>2]=9408;break a}if((c|0)!=6){break b}b=Dm(112);i[b+4>>2]=k;c=i[e+4>>2];i[b+8>>2]=i[e>>2];i[b+12>>2]=c;c=i[e+12>>2];i[b+16>>2]=i[e+8>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+16>>2];i[b+40>>2]=f;i[b+36>>2]=g;i[b+32>>2]=h;i[b+28>>2]=d;i[b+68>>2]=f;i[b+64>>2]=g;i[b+60>>2]=h;i[b+56>>2]=d;i[b+48>>2]=0;i[b+52>>2]=0;i[b>>2]=9848;i[b+88>>2]=1065353216;i[b+92>>2]=-1;i[b+80>>2]=-1;i[b+84>>2]=-1;i[b+72>>2]=1;i[b+76>>2]=-1;i[b+44>>2]=10268;break a}i[a>>2]=0;return}ze(b+96|0);i[a>>2]=b}function Qd(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;k=i[i[i[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((M[i[i[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}h=M[i[i[b>>2]+36>>2]](b)|0;f=M[i[i[b>>2]+44>>2]](b,d)|0;if(!(f?h:0)){i[a>>2]=0;return}g=f+12|0;j=M[i[i[b>>2]+40>>2]](b,d)|0;d=i[b+44>>2];if(j){if((c|0)!=6){break b}b=Dm(112);i[b+4>>2]=k;c=i[e+4>>2];i[b+8>>2]=i[e>>2];i[b+12>>2]=c;c=i[e+12>>2];i[b+16>>2]=i[e+8>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+16>>2];i[b+40>>2]=f;i[b+36>>2]=g;i[b+32>>2]=j;i[b+28>>2]=d;i[b+68>>2]=f;i[b+64>>2]=g;i[b+60>>2]=j;i[b+56>>2]=d;i[b+48>>2]=0;i[b+52>>2]=0;i[b>>2]=6960;i[b+88>>2]=1065353216;i[b+92>>2]=-1;i[b+80>>2]=-1;i[b+84>>2]=-1;i[b+72>>2]=1;i[b+76>>2]=-1;i[b+44>>2]=7484;break a}if((c|0)!=6){break b}b=Dm(112);i[b+4>>2]=k;c=i[e+4>>2];i[b+8>>2]=i[e>>2];i[b+12>>2]=c;c=i[e+12>>2];i[b+16>>2]=i[e+8>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+16>>2];i[b+40>>2]=f;i[b+36>>2]=g;i[b+32>>2]=h;i[b+28>>2]=d;i[b+68>>2]=f;i[b+64>>2]=g;i[b+60>>2]=h;i[b+56>>2]=d;i[b+48>>2]=0;i[b+52>>2]=0;i[b>>2]=7896;i[b+88>>2]=1065353216;i[b+92>>2]=-1;i[b+80>>2]=-1;i[b+84>>2]=-1;i[b+72>>2]=1;i[b+76>>2]=-1;i[b+44>>2]=8288;break a}i[a>>2]=0;return}ze(b+96|0);i[a>>2]=b}function rg(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11520;b=i[a+388>>2];if(b){i[a+392>>2]=b;nn(b)}b=a+368|0;d=i[b>>2];i[b>>2]=0;if(d){c=d+ -4|0;b=i[c>>2];if(b){b=d+(b<<4)|0;while(1){b=b+ -16|0;if((d|0)!=(b|0)){continue}break}}nn(c)}d=i[a+216>>2];if(d){b=i[a+220>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=i[b+ -12>>2];if(c){i[b+ -8>>2]=c;nn(c)}c=i[b+ -28>>2];if(c){i[b+ -24>>2]=c;nn(c)}c=b+ -144|0;e=i[b+ -40>>2];if(e){i[b+ -36>>2]=e;nn(e)}Rf(b+ -140|0);b=c;if((d|0)!=(b|0)){continue}break}c=i[a+216>>2]}i[a+220>>2]=d;nn(c)}b=i[a+196>>2];if(b){i[a+200>>2]=b;nn(b)}b=i[a+184>>2];if(b){i[a+188>>2]=b;nn(b)}b=i[a+172>>2];if(b){i[a+176>>2]=b;nn(b)}b=i[a+160>>2];if(b){i[a+164>>2]=b;nn(b)}b=i[a+144>>2];if(b){while(1){d=i[b>>2];nn(b);b=d;if(b){continue}break}}b=i[a+136>>2];i[a+136>>2]=0;if(b){nn(b)}b=i[a+120>>2];if(b){nn(b)}b=i[a+108>>2];if(b){nn(b)}b=i[a+96>>2];if(b){nn(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;nn(b)}b=i[a+60>>2];if(b){nn(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;nn(b)}b=i[a+36>>2];if(b){i[a+40>>2]=b;nn(b)}b=i[a+24>>2];if(b){i[a+28>>2]=b;nn(b)}b=i[a+12>>2];if(b){i[a+16>>2]=b;nn(b)}b=i[a+8>>2];i[a+8>>2]=0;if(b){Qf(a+8|0,b)}return a|0}function zd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;i[a+64>>2]=f;i[a+72>>2]=e;f=Dm((e&1073741823)!=(e|0)?-1:e<<2);d=i[a+68>>2];i[a+68>>2]=f;if(d){nn(d)}i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){Ra(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}b:{f=i[a+56>>2];d=i[f+4>>2];f=i[f>>2];g=d-f|0;if((g|0)<1){break b}if((d|0)!=(f|0)){d=f-d|0;d=((d|0)>(g|0)?d:g)>>>2|0;m=d>>>0>1?d:1;while(1){Ad(a,i[(j<<2)+f>>2],c,j);c:{if(i[a+8>>2]<1){break c}l=i[a+68>>2];f=0;while(1){d=f<<2;g=i[d+l>>2];h=i[a+16>>2];d:{if((g|0)>(h|0)){k=i[a+32>>2];i[d+k>>2]=h;break d}k=i[a+32>>2];d=d+k|0;h=i[a+12>>2];if((g|0)<(h|0)){i[d>>2]=h;break d}i[d>>2]=g}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){continue}break}d=0;if((g|0)<1){break c}f=o(e,j)<<2;l=f+c|0;h=b+f|0;while(1){g=d<<2;f=g+l|0;g=i[g+h>>2]+i[g+k>>2]|0;i[f>>2]=g;e:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break e}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}j=j+1|0;if((m|0)==(j|0)){break b}d=i[a+56>>2];f=i[d>>2];if(i[d+4>>2]-f>>2>>>0>j>>>0){continue}break}}Tm();x()}return 1}function Zc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;i[a+64>>2]=f;i[a+72>>2]=e;f=Dm((e&1073741823)!=(e|0)?-1:e<<2);d=i[a+68>>2];i[a+68>>2]=f;if(d){nn(d)}i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){Ra(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}b:{f=i[a+56>>2];d=i[f+4>>2];f=i[f>>2];g=d-f|0;if((g|0)<1){break b}if((d|0)!=(f|0)){d=f-d|0;d=((d|0)>(g|0)?d:g)>>>2|0;m=d>>>0>1?d:1;while(1){_c(a,i[(j<<2)+f>>2],c,j);c:{if(i[a+8>>2]<1){break c}l=i[a+68>>2];f=0;while(1){d=f<<2;g=i[d+l>>2];h=i[a+16>>2];d:{if((g|0)>(h|0)){k=i[a+32>>2];i[d+k>>2]=h;break d}k=i[a+32>>2];d=d+k|0;h=i[a+12>>2];if((g|0)<(h|0)){i[d>>2]=h;break d}i[d>>2]=g}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){continue}break}d=0;if((g|0)<1){break c}f=o(e,j)<<2;l=f+c|0;h=b+f|0;while(1){g=d<<2;f=g+l|0;g=i[g+h>>2]+i[g+k>>2]|0;i[f>>2]=g;e:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break e}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}j=j+1|0;if((m|0)==(j|0)){break b}d=i[a+56>>2];f=i[d>>2];if(i[d+4>>2]-f>>2>>>0>j>>>0){continue}break}}Tm();x()}return 1}function Cb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,n=0,p=0;a:{b:{c:{d:{d=i[a+4>>2];j=i[a>>2];g=(d-j|0)/24|0;e=g+1|0;if(e>>>0<178956971){c=(i[a+8>>2]-j|0)/24|0;f=c<<1;h=c>>>0<89478485?f>>>0>>0?e:f:178956970;if(h){if(h>>>0>=178956971){break d}k=Dm(o(h,24))}c=o(g,24)+k|0;i[c>>2]=1140;e=i[b+4>>2];l=c+16|0;i[l>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+4>>2]=e;n=i[b+8>>2];f=i[b+12>>2]-n|0;if(f){p=f>>2;if(p>>>0>=1073741824){break c}g=c+12|0;e=Dm(f);i[g>>2]=e;i[c+8>>2]=e;i[l>>2]=e+(p<<2);if((f|0)>=1){e=pn(e,n,f)+f|0}i[g>>2]=e}e=o(h,24)+k|0;m[c+20>>2]=m[b+20>>2];g=c+24|0;if((d|0)==(j|0)){break b}while(1){c=c+ -24|0;i[c>>2]=1140;b=i[d+ -20>>2];f=c+16|0;i[f>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+4>>2]=b;b=d+ -16|0;i[c+8>>2]=i[b>>2];i[c+12>>2]=i[d+ -12>>2];h=f;f=d+ -8|0;i[h>>2]=i[f>>2];i[f>>2]=0;i[b>>2]=0;i[b+4>>2]=0;m[c+20>>2]=m[d+ -4>>2];d=d+ -24|0;if((j|0)!=(d|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=g;d=i[a>>2];i[a>>2]=c;if((b|0)==(d|0)){break a}while(1){b=b+ -24|0;M[i[i[b>>2]>>2]](b)|0;if((b|0)!=(d|0)){continue}break}break a}Sm();x()}Ba(1756);x()}Sm();x()}i[a+8>>2]=e;i[a+4>>2]=g;i[a>>2]=c}if(d){nn(d)}}function ed(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;if((e|0)==2){i[a+8>>2]=2;i[a- -64>>2]=f;d=a+32|0;e=i[d>>2];f=i[a+36>>2]-e|0;g=f>>2;a:{if(g>>>0<=1){Ra(d,2-g|0);break a}if((f|0)==8){break a}i[a+36>>2]=e+8}b:{d=i[a+56>>2];f=i[d+4>>2];d=i[d>>2];e=f-d|0;if((e|0)<1){f=0;break b}if((d|0)!=(f|0)){k=a+60|0;l=e>>2;f=d-f|0;e=((f|0)>(e|0)?f:e)>>>2|0;m=e>>>0>1?e:1;f=1;while(1){if(!fd(k,i[(h<<2)+d>>2],c,h)){break b}c:{if(i[a+8>>2]<1){break c}d=0;while(1){e=d<<2;f=i[(e+a|0)+68>>2];j=i[a+16>>2];d:{if((f|0)>(j|0)){g=i[a+32>>2];i[e+g>>2]=j;break d}g=i[a+32>>2];e=e+g|0;j=i[a+12>>2];if((f|0)<(j|0)){i[e>>2]=j;break d}i[e>>2]=f}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}e=0;if((f|0)<1){break c}d=h<<3;j=d+c|0;n=b+d|0;while(1){f=e<<2;d=f+j|0;f=i[f+n>>2]+i[f+g>>2]|0;i[d>>2]=f;e:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break e}f=f+i[a+20>>2]|0}i[d>>2]=f}e=e+1|0;if((e|0)>2]){continue}break}}h=h+1|0;f=(h|0)<(l|0);if((h|0)==(m|0)){break b}e=i[a+56>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>h>>>0){continue}break}}Tm();x()}a=f^1}else{a=0}return a&1}function Dd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;if((e|0)==2){i[a+8>>2]=2;i[a- -64>>2]=f;d=a+32|0;e=i[d>>2];f=i[a+36>>2]-e|0;g=f>>2;a:{if(g>>>0<=1){Ra(d,2-g|0);break a}if((f|0)==8){break a}i[a+36>>2]=e+8}b:{d=i[a+56>>2];f=i[d+4>>2];d=i[d>>2];e=f-d|0;if((e|0)<1){f=0;break b}if((d|0)!=(f|0)){k=a+60|0;l=e>>2;f=d-f|0;e=((f|0)>(e|0)?f:e)>>>2|0;m=e>>>0>1?e:1;f=1;while(1){if(!Ed(k,i[(h<<2)+d>>2],c,h)){break b}c:{if(i[a+8>>2]<1){break c}d=0;while(1){e=d<<2;f=i[(e+a|0)+68>>2];j=i[a+16>>2];d:{if((f|0)>(j|0)){g=i[a+32>>2];i[e+g>>2]=j;break d}g=i[a+32>>2];e=e+g|0;j=i[a+12>>2];if((f|0)<(j|0)){i[e>>2]=j;break d}i[e>>2]=f}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}e=0;if((f|0)<1){break c}d=h<<3;j=d+c|0;n=b+d|0;while(1){f=e<<2;d=f+j|0;f=i[f+n>>2]+i[f+g>>2]|0;i[d>>2]=f;e:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break e}f=f+i[a+20>>2]|0}i[d>>2]=f}e=e+1|0;if((e|0)>2]){continue}break}}h=h+1|0;f=(h|0)<(l|0);if((h|0)==(m|0)){break b}e=i[a+56>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>h>>>0){continue}break}}Tm();x()}a=f^1}else{a=0}return a&1}function pn(a,b,c){var d=0,e=0,f=0;if(c>>>0>=512){G(a|0,b|0,c|0)|0;return a}e=a+c|0;a:{if(!((a^b)&3)){b:{if((c|0)<1){c=a;break b}if(!(a&3)){c=a;break b}c=a;while(1){g[c|0]=j[b|0];b=b+1|0;c=c+1|0;if(c>>>0>=e>>>0){break b}if(c&3){continue}break}}d=e&-4;c:{if(d>>>0<64){break c}f=d+ -64|0;if(c>>>0>f>>>0){break c}while(1){i[c>>2]=i[b>>2];i[c+4>>2]=i[b+4>>2];i[c+8>>2]=i[b+8>>2];i[c+12>>2]=i[b+12>>2];i[c+16>>2]=i[b+16>>2];i[c+20>>2]=i[b+20>>2];i[c+24>>2]=i[b+24>>2];i[c+28>>2]=i[b+28>>2];i[c+32>>2]=i[b+32>>2];i[c+36>>2]=i[b+36>>2];i[c+40>>2]=i[b+40>>2];i[c+44>>2]=i[b+44>>2];i[c+48>>2]=i[b+48>>2];i[c+52>>2]=i[b+52>>2];i[c+56>>2]=i[b+56>>2];i[c+60>>2]=i[b+60>>2];b=b- -64|0;c=c- -64|0;if(c>>>0<=f>>>0){continue}break}}if(c>>>0>=d>>>0){break a}while(1){i[c>>2]=i[b>>2];b=b+4|0;c=c+4|0;if(c>>>0>>0){continue}break}break a}if(e>>>0<4){c=a;break a}d=e+ -4|0;if(d>>>0>>0){c=a;break a}c=a;while(1){g[c|0]=j[b|0];g[c+1|0]=j[b+1|0];g[c+2|0]=j[b+2|0];g[c+3|0]=j[b+3|0];b=b+4|0;c=c+4|0;if(c>>>0<=d>>>0){continue}break}}if(c>>>0>>0){while(1){g[c|0]=j[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}return a}function ac(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0;g=J-16|0;J=g;if(Pa(a,b)){m=a+36|0;h=M[i[i[a>>2]+24>>2]](a)|0;e=i[a+40>>2];d=i[a+36>>2];c=e-d>>2;a:{if(h>>>0>c>>>0){bc(m,h-c|0);break a}if(h>>>0>=c>>>0){break a}d=d+(h<<2)|0;if((d|0)!=(e|0)){while(1){e=e+ -4|0;c=i[e>>2];i[e>>2]=0;if(c){M[i[i[c>>2]+4>>2]](c)}if((e|0)!=(d|0)){continue}break}}i[a+40>>2]=d}b:{if((h|0)<1){break b}n=1;f=i[b+16>>2];d=i[b+12>>2];c=i[b+20>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]<=f>>>0:0){break b}e=0;while(1){k=j[f+i[b>>2]|0];f=f+1|0;if(f>>>0<1){c=c+1|0}d=b;i[d+16>>2]=f;i[d+20>>2]=c;M[i[i[a>>2]+48>>2]](g+8|0,a,k);c=i[a+36>>2];d=i[g+8>>2];i[g+8>>2]=0;f=e<<2;k=c+f|0;c=i[k>>2];i[k>>2]=d;if(c){M[i[i[c>>2]+4>>2]](c)}c=i[g+8>>2];i[g+8>>2]=0;if(c){M[i[i[c>>2]+4>>2]](c)}c=i[i[m>>2]+f>>2];if(!c){break b}if(!(p=c,q=M[i[i[a>>2]+28>>2]](a)|0,r=M[i[i[a>>2]+20>>2]](a,e)|0,o=i[i[c>>2]+8>>2],M[o](p|0,q|0,r|0)|0)){break b}e=e+1|0;n=(e|0)<(h|0);if((e|0)==(h|0)){break b}f=i[b+16>>2];d=i[b+12>>2];c=i[b+20>>2];if((d|0)>(c|0)?1:(d|0)>=(c|0)?l[b+8>>2]>f>>>0:0){continue}break}}e=n^1}J=g+16|0;return e&1}function pg(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11468;b=a+368|0;d=i[b>>2];i[b>>2]=0;if(d){c=d+ -4|0;b=i[c>>2];if(b){b=d+(b<<4)|0;while(1){b=b+ -16|0;if((d|0)!=(b|0)){continue}break}}nn(c)}d=i[a+216>>2];if(d){b=i[a+220>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=i[b+ -12>>2];if(c){i[b+ -8>>2]=c;nn(c)}c=i[b+ -28>>2];if(c){i[b+ -24>>2]=c;nn(c)}c=b+ -144|0;e=i[b+ -40>>2];if(e){i[b+ -36>>2]=e;nn(e)}Rf(b+ -140|0);b=c;if((d|0)!=(b|0)){continue}break}c=i[a+216>>2]}i[a+220>>2]=d;nn(c)}b=i[a+196>>2];if(b){i[a+200>>2]=b;nn(b)}b=i[a+184>>2];if(b){i[a+188>>2]=b;nn(b)}b=i[a+172>>2];if(b){i[a+176>>2]=b;nn(b)}b=i[a+160>>2];if(b){i[a+164>>2]=b;nn(b)}b=i[a+144>>2];if(b){while(1){d=i[b>>2];nn(b);b=d;if(b){continue}break}}b=i[a+136>>2];i[a+136>>2]=0;if(b){nn(b)}b=i[a+120>>2];if(b){nn(b)}b=i[a+108>>2];if(b){nn(b)}b=i[a+96>>2];if(b){nn(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;nn(b)}b=i[a+60>>2];if(b){nn(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;nn(b)}b=i[a+36>>2];if(b){i[a+40>>2]=b;nn(b)}b=i[a+24>>2];if(b){i[a+28>>2]=b;nn(b)}b=i[a+12>>2];if(b){i[a+16>>2]=b;nn(b)}b=i[a+8>>2];i[a+8>>2]=0;if(b){Qf(a+8|0,b)}return a|0}function ca(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,n=0,o=0;j=+m[b>>2];k=+m[b+4>>2];n=+m[b+8>>2];h=q(j)+q(k)+q(n);a:{if(h>1e-6^1){j=1;k=0;f=0;break a}h=1/h;k=h*k;j=h*j;f=h*n<0}h=k;g=i[a+16>>2];k=+(g|0);h=u(h*k+.5);b:{if(q(h)<2147483648){b=~~h;break b}b=-2147483648}l=(b|0)<0?b:0-b|0;j=u(j*k+.5);c:{if(q(j)<2147483648){e=~~j;break c}e=-2147483648}o=(e|0)<0;e=l+((o?e:0-e|0)+g|0)|0;l=(e|0)<0?0:e;f=f?0-l|0:l;b=b+(e>>31&((b|0)>0?e:0-e|0))|0;d:{if(!o){e=b+g|0;b=f+g|0;break d}e:{if((b|0)<=-1){e=f>>31;e=e+f^e;break e}e=i[a+8>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=b;b=b>>31;b=f+b^b;break d}b=i[a+8>>2]+((b|0)<0?b:0-b|0)|0}f:{if(!(b|e)){b=i[a+8>>2];a=b;break f}f=i[a+8>>2];g:{h:{i:{j:{if(!e){if((b|0)==(f|0)){a=b;break f}a=0;if(b|f){break j}b=0;break f}if((e|0)!=(f|0)|b){break i}b=e;a=b;break f}if((g|0)<(b|0)){b=(g<<1)-b|0;break f}if(f){break g}break h}if((e|0)!=(f|0)){break g}}f=e;if((g|0)<=(b|0)){break g}b=(g<<1)-b|0;a=e;break f}if(!((b|0)!=(f|0)|(g|0)<=(e|0))){a=(g<<1)-e|0;break f}if(b){a=e;break f}b=0;if((g|0)>=(e|0)){a=e;break f}a=(g<<1)-e|0}i[c>>2]=a;i[d>>2]=b}function Pd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=J-32|0;J=e;a:{b:{switch(d+ -2|0){case 0:d=i[b+4>>2];f=i[b+12>>2];i[e+24>>2]=-1;i[e+16>>2]=-1;i[e+20>>2]=1065353216;i[e+8>>2]=-1;i[e+12>>2]=-1;b=0;c:{if((c|0)==-2){break c}g=i[i[i[d+4>>2]+8>>2]+(f<<2)>>2];if((M[i[i[d>>2]+8>>2]](d)|0)==1){b=k[d+36>>1];Qd(e,d,c,f,e+8|0,(b<<24|b<<8&16711680)>>>16|0);b=i[e>>2];if(b){break c}i[e>>2]=0}b=Dm(28);i[b+4>>2]=g;c=i[e+12>>2];i[b+8>>2]=i[e+8>>2];i[b+12>>2]=c;c=i[e+20>>2];i[b+16>>2]=i[e+16>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+24>>2];i[b>>2]=8676}i[a>>2]=b;break a;case 1:d=i[b+4>>2];f=i[b+12>>2];i[e+24>>2]=-1;i[e+16>>2]=-1;i[e+20>>2]=1065353216;i[e+8>>2]=-1;i[e+12>>2]=-1;b=0;d:{if((c|0)==-2){break d}g=i[i[i[d+4>>2]+8>>2]+(f<<2)>>2];if((M[i[i[d>>2]+8>>2]](d)|0)==1){b=k[d+36>>1];Rd(e,d,c,f,e+8|0,(b<<24|b<<8&16711680)>>>16|0);b=i[e>>2];if(b){break d}i[e>>2]=0}b=Dm(28);i[b+4>>2]=g;c=i[e+12>>2];i[b+8>>2]=i[e+8>>2];i[b+12>>2]=c;c=i[e+20>>2];i[b+16>>2]=i[e+16>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+24>>2];i[b>>2]=10680}i[a>>2]=b;break a;default:break b}}i[a>>2]=0}J=e+32|0}function sl(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;a:{if((b|0)<0){break a}c=i[a+12>>2];d=i[a+8>>2];if(c-d>>2>>>0<=b>>>0){break a}d=d+(b<<2)|0;f=i[d>>2];h=i[f+60>>2];g=i[f+56>>2];e=d+4|0;b:{if((e|0)!=(c|0)){while(1){j=i[e>>2];i[e>>2]=0;i[d>>2]=j;if(f){Sa(f)}d=d+4|0;e=e+4|0;if((e|0)!=(c|0)){f=i[d>>2];continue}break}c=i[a+12>>2];if((d|0)==(c|0)){break b}}while(1){c=c+ -4|0;f=i[c>>2];i[c>>2]=0;if(f){Sa(f)}if((c|0)!=(d|0)){continue}break}}i[a+12>>2]=d;c=i[a+4>>2];if(c){tl(c,h)}c:{if((g|0)>4){break c}d:{d=o(g,12)+a|0;c=i[d+20>>2];f=d+24|0;d=i[f>>2];if((c|0)==(d|0)){break d}while(1){if(i[c>>2]==(b|0)){break d}c=c+4|0;if((d|0)!=(c|0)){continue}break}break c}if((c|0)==(d|0)){break c}e=c+4|0;d=d-e|0;if(d){rn(c,e,d)}i[f>>2]=c+d}d=0;while(1){c=o(d,12)+a|0;e=i[c+24>>2];f=i[c+20>>2];if((e|0)!=(f|0)){c=e-f|0;g=(c|0)>-1?c:-1;e=f-e|0;c=o((g|0)<1?g:1,((e|0)>(c|0)?e:c)>>>2|0);e=c>>>0>1?c:1;c=0;while(1){g=f+(c<<2)|0;h=i[g>>2];if((h|0)>(b|0)){i[g>>2]=h+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}d=d+1|0;if((d|0)!=5){continue}break}}}function Me(a,b){var c=0,d=0,e=0;c=(a|0)==(b|0);g[b+12|0]=c;a:{if(c){break a}while(1){d=i[b+8>>2];if(j[d+12|0]){break a}b:{c=i[d+8>>2];e=i[c>>2];if((e|0)==(d|0)){e=i[c+4>>2];if(!(!e|j[e+12|0])){break b}c:{if(i[d>>2]==(b|0)){b=d;break c}b=i[d+4>>2];e=i[b>>2];i[d+4>>2]=e;a=b;if(e){i[e+8>>2]=d;c=i[d+8>>2]}i[a+8>>2]=c;a=i[d+8>>2];i[(((d|0)!=i[a>>2])<<2)+a>>2]=b;i[b>>2]=d;i[d+8>>2]=b;c=i[b+8>>2]}g[b+12|0]=1;g[c+12|0]=0;a=i[c>>2];b=i[a+4>>2];i[c>>2]=b;if(b){i[b+8>>2]=c}i[a+8>>2]=i[c+8>>2];b=i[c+8>>2];i[((i[b>>2]!=(c|0))<<2)+b>>2]=a;i[a+4>>2]=c;i[c+8>>2]=a;return}if(!(j[e+12|0]|!e)){break b}d:{if(i[d>>2]!=(b|0)){b=d;break d}e=i[b+4>>2];i[d>>2]=e;a=b;if(e){i[e+8>>2]=d;c=i[d+8>>2]}i[a+8>>2]=c;a=i[d+8>>2];i[(((d|0)!=i[a>>2])<<2)+a>>2]=b;i[b+4>>2]=d;i[d+8>>2]=b;c=i[b+8>>2]}g[b+12|0]=1;g[c+12|0]=0;a=i[c+4>>2];b=i[a>>2];i[c+4>>2]=b;if(b){i[b+8>>2]=c}i[a+8>>2]=i[c+8>>2];b=i[c+8>>2];i[((i[b>>2]!=(c|0))<<2)+b>>2]=a;i[a>>2]=c;i[c+8>>2]=a;break a}b=e+12|0;g[d+12|0]=1;g[c+12|0]=(a|0)==(c|0);g[b|0]=1;b=c;if((a|0)!=(b|0)){continue}break}}}function Yd(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i[b+16>>2];h=i[c+4>>2]-l|0;e=i[c>>2]-l|0;i[c>>2]=e;i[c+4>>2]=h;f=h>>31;g=f+h^f;f=e>>31;g=g+(f+e^f)|0;f=i[b+16>>2];m=(g|0)<=(f|0);a:{if(m){g=h;break a}b:{c:{if((e|0)>=0){g=1;j=1;if((h|0)>-1){break b}k=1;g=-1;j=-1;if((e|0)>=1){break c}break b}k=-1;g=-1;j=-1;if((h|0)<1){break b}}g=(h|0)<1?-1:1;j=k}k=o(f,j);e=(e<<1)-k|0;j=(o(g,j)|0)>-1;f=o(f,g);g=((j?0-e|0:e)+f|0)/2|0;i[c+4>>2]=g;n=c;c=(h<<1)-f|0;e=(k+(j?0-c|0:c)|0)/2|0;i[n>>2]=e;f=i[b+16>>2]}c=i[d+4>>2]+g|0;e=i[d>>2]+e|0;d:{if((f|0)<(e|0)){e=e-i[b+4>>2]|0;break d}if((e|0)>=(0-f|0)){break d}e=i[b+4>>2]+e|0}e:{if((f|0)<(c|0)){c=c-i[b+4>>2]|0;break e}if((c|0)>=(0-f|0)){break e}c=i[b+4>>2]+c|0}f:{if(m){f=c;break f}g:{h:{if((e|0)>=0){b=1;g=1;if((c|0)>-1){break g}d=1;b=-1;g=-1;if((e|0)>=1){break h}break g}d=-1;b=-1;g=-1;if((c|0)<1){break g}}b=(c|0)<1?-1:1;g=d}h=o(f,g);d=(e<<1)-h|0;i[a>>2]=d;k=0-d|0;j=d;d=(o(b,g)|0)>-1;b=o(b,f);f=((d?k:j)+b|0)/2|0;b=(c<<1)-b|0;e=(h+(d?0-b|0:b)|0)/2|0}i[a>>2]=e+l;i[a+4>>2]=f+l}function Sc(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;g=i[b+4>>2];f=i[b>>2];c=(i[c+4>>2]-g|0)+(i[c>>2]-f<<3)|0;a:{if((c|0)<=0){g=i[d+4>>2];break a}b:{if(!g){g=i[d+4>>2];break b}e=i[d+4>>2];j=32-e|0;l=32-g|0;h=(c|0)<(l|0)?c:l;k=j>>>0>>0?j:h;m=i[d>>2];f=i[f>>2]&(-1<>>l-h);i[m>>2]=i[m>>2]&(-1<>>j-k^-1)|(e>>>0>g>>>0?f<>>g-e|0);e=e+k|0;g=e&31;i[d+4>>2]=g;j=m+(e>>>3&536870908)|0;i[d>>2]=j;e=h-k|0;if((e|0)>=1){i[j>>2]=i[j>>2]&(-1>>>32-e^-1)|f>>>k+i[b+4>>2];i[d+4>>2]=e;g=e}c=c-h|0;f=i[b>>2]+4|0;i[b>>2]=f}k=-1<>2];f=i[f>>2];i[e>>2]=j&i[e>>2]|f<>2]=e+4;i[e+4>>2]=k&i[e+4>>2]|f>>>h;f=i[b>>2]+4|0;i[b>>2]=f;l=(c|0)>63;e=c+ -32|0;c=e;if(l){continue}break}}if((e|0)<1){break a}b=i[d>>2];c=(h|0)<(e|0)?h:e;j=i[b>>2]&(k&-1>>>h-c^-1);h=i[f>>2]&-1>>>32-e;i[b>>2]=j|h<>2]=g;f=b+(f>>>3&536870908)|0;i[d>>2]=f;b=e-c|0;if((b|0)<1){break a}i[f>>2]=i[f>>2]&(-1>>>32-b^-1)|h>>>c;i[d+4>>2]=b;g=b}b=i[d>>2];i[a+4>>2]=g;i[a>>2]=b}function vi(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;e=J-16|0;J=e;m=i[a+80>>2];k=g[b+24|0];f=o(m,k);a:{b:{c:{a=i[b+28>>2];if(!(!j[b+84|0]|((a|0)!=6?(a|0)!=5:0))){l=i[b+48>>2];k=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;a=0;b=f<<2;d:{if(!b){break d}a=b>>2;if(a>>>0>=1073741824){break c}d=Dm(b);h=d+(a<<2)|0;if((b|0)<1){a=d;break d}d=pn(d,k+l|0,b);a=d;d=b+a|0}b=i[c>>2];if(b){i[c+4>>2]=b;nn(b)}i[c+8>>2]=h;i[c+4>>2]=d;i[c>>2]=a;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(k){if((k|0)<=-1){break c}a=k<<2;h=Dm(a);i[e>>2]=h;d=a+h|0;i[e+8>>2]=d;qn(h,0,a);i[e+4>>2]=d}d=i[c>>2];a=i[c+4>>2]-d>>2;e:{if(f>>>0>a>>>0){ye(c,f-a|0);break e}if(f>>>0>=a>>>0){break e}i[c+4>>2]=d+(f<<2)}if(!m){break b}d=0;n=1;while(1){a=l;f=b;if(!j[b+84|0]){a=i[i[b+68>>2]+(l<<2)>>2]}if(!wi(f,a,g[b+24|0],h)){break b}if((k|0)>=1){f=i[c>>2];a=0;while(1){i[f+(d<<2)>>2]=i[(a<<2)+h>>2];d=d+1|0;a=a+1|0;if((k|0)!=(a|0)){continue}break}}l=l+1|0;n=l>>>0>>0;if((l|0)!=(m|0)){continue}break}break b}Sm();x()}if(h){nn(h)}a=n^1}J=e+16|0;return a&1}function ti(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;e=J-16|0;J=e;m=i[a+80>>2];k=g[b+24|0];f=o(m,k);a:{b:{c:{a=i[b+28>>2];if(!(!j[b+84|0]|((a|0)!=6?(a|0)!=5:0))){l=i[b+48>>2];k=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;a=0;b=f<<2;d:{if(!b){break d}a=b>>2;if(a>>>0>=1073741824){break c}d=Dm(b);h=d+(a<<2)|0;if((b|0)<1){a=d;break d}d=pn(d,k+l|0,b);a=d;d=b+a|0}b=i[c>>2];if(b){i[c+4>>2]=b;nn(b)}i[c+8>>2]=h;i[c+4>>2]=d;i[c>>2]=a;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(k){if((k|0)<=-1){break c}a=k<<2;h=Dm(a);i[e>>2]=h;d=a+h|0;i[e+8>>2]=d;qn(h,0,a);i[e+4>>2]=d}d=i[c>>2];a=i[c+4>>2]-d>>2;e:{if(f>>>0>a>>>0){Ra(c,f-a|0);break e}if(f>>>0>=a>>>0){break e}i[c+4>>2]=d+(f<<2)}if(!m){break b}d=0;n=1;while(1){a=l;f=b;if(!j[b+84|0]){a=i[i[b+68>>2]+(l<<2)>>2]}if(!ui(f,a,g[b+24|0],h)){break b}if((k|0)>=1){f=i[c>>2];a=0;while(1){i[f+(d<<2)>>2]=i[(a<<2)+h>>2];d=d+1|0;a=a+1|0;if((k|0)!=(a|0)){continue}break}}l=l+1|0;n=l>>>0>>0;if((l|0)!=(m|0)){continue}break}break b}Sm();x()}if(h){nn(h)}a=n^1}J=e+16|0;return a&1}function Nb(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J-32|0;J=b;c=i[a+16>>2];a:{if(c>>>0>=341){i[a+16>>2]=c+ -341;c=i[a+4>>2];i[b+8>>2]=i[c>>2];i[a+4>>2]=c+4;Ob(a,b+8|0);break a}b:{c:{d:{e:{d=i[a+8>>2];e=d-i[a+4>>2]>>2;f=i[a+12>>2];c=f-i[a>>2]|0;if(e>>>0>2>>>0){if((d|0)==(f|0)){break e}g=b,h=Dm(4092),i[g+8>>2]=h;Ob(a,b+8|0);break a}i[b+24>>2]=a+12;c=c?c>>1:1;if(c>>>0>=1073741824){break d}d=c<<2;c=Dm(d);i[b+8>>2]=c;e=c+(e<<2)|0;i[b+16>>2]=e;i[b+20>>2]=c+d;i[b+12>>2]=e;g=b,h=Dm(4092),i[g+4>>2]=h;Ob(b+8|0,b+4|0);d=i[a+8>>2];if((d|0)==i[a+4>>2]){c=d;break b}while(1){d=d+ -4|0;Pb(b+8|0,d);if(i[a+4>>2]!=(d|0)){continue}break}break c}g=b,h=Dm(4092),i[g+8>>2]=h;Pb(a,b+8|0);c=i[a+4>>2];i[b+8>>2]=i[c>>2];i[a+4>>2]=c+4;Ob(a,b+8|0);break a}Ba(1756);x()}c=i[a+8>>2]}e=i[a>>2];i[a>>2]=i[b+8>>2];i[b+8>>2]=e;i[a+4>>2]=i[b+12>>2];i[b+12>>2]=d;i[a+8>>2]=i[b+16>>2];i[b+16>>2]=c;f=i[a+12>>2];i[a+12>>2]=i[b+20>>2];i[b+20>>2]=f;if((c|0)!=(d|0)){i[b+16>>2]=c+(((c-d|0)+ -4>>>2^-1)<<2)}if(!e){break a}nn(e)}J=b+32|0}function tg(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11568;ug(a+232|0);e=i[a+216>>2];if(e){c=e;b=i[a+220>>2];d=c;a:{if((c|0)==(b|0)){break a}while(1){c=i[b+ -12>>2];if(c){i[b+ -8>>2]=c;nn(c)}c=i[b+ -28>>2];if(c){i[b+ -24>>2]=c;nn(c)}c=b+ -144|0;d=i[b+ -40>>2];if(d){i[b+ -36>>2]=d;nn(d)}Rf(b+ -140|0);b=c;if((e|0)!=(b|0)){continue}break}d=i[a+216>>2]}c=d;i[a+220>>2]=e;nn(c)}b=i[a+196>>2];if(b){i[a+200>>2]=b;nn(b)}b=i[a+184>>2];if(b){i[a+188>>2]=b;nn(b)}b=i[a+172>>2];if(b){i[a+176>>2]=b;nn(b)}b=i[a+160>>2];if(b){i[a+164>>2]=b;nn(b)}b=i[a+144>>2];if(b){while(1){c=i[b>>2];nn(b);b=c;if(b){continue}break}}b=i[a+136>>2];i[a+136>>2]=0;if(b){nn(b)}b=i[a+120>>2];if(b){nn(b)}b=i[a+108>>2];if(b){nn(b)}b=i[a+96>>2];if(b){nn(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;nn(b)}b=i[a+60>>2];if(b){nn(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;nn(b)}b=i[a+36>>2];if(b){i[a+40>>2]=b;nn(b)}b=i[a+24>>2];if(b){i[a+28>>2]=b;nn(b)}b=i[a+12>>2];if(b){i[a+16>>2]=b;nn(b)}b=i[a+8>>2];i[a+8>>2]=0;if(b){Qf(a+8|0,b)}return a|0}function mi(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;f=J-16|0;J=f;l=i[a+80>>2];h=g[b+24|0];a=o(l,h);a:{e=i[b+28>>2];b:{if(!(!j[b+84|0]|((e|0)!=2?(e|0)!=1:0))){e=i[b+48>>2];k=i[i[b>>2]>>2];i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;b=0;if(a){if((a|0)<=-1){break a}b=Dm(a);d=pn(b,e+k|0,a)+a|0}a=i[c>>2];if(a){i[c+4>>2]=a;nn(a)}i[c+8>>2]=d;i[c+4>>2]=d;i[c>>2]=b;a=1;break b}i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;if(h){if((h|0)<=-1){break a}d=Dm(h);i[f>>2]=d;e=d+h|0;i[f+8>>2]=e;qn(d,0,h);i[f+4>>2]=e}k=i[c>>2];e=i[c+4>>2]-k|0;c:{if(a>>>0>e>>>0){rb(c,a-e|0);break c}if(a>>>0>=e>>>0){break c}i[c+4>>2]=a+k}if(l){a=0;m=1;e=0;while(1){d=e;k=b;if(!j[b+84|0]){d=i[i[b+68>>2]+(e<<2)>>2]}n=d;d=i[f>>2];if(ni(k,n,g[b+24|0],d)){d:{if((h|0)<1){break d}g[i[c>>2]+a|0]=j[d|0];d=1;a=a+1|0;if((h|0)==1){break d}while(1){g[i[c>>2]+a|0]=j[i[f>>2]+d|0];a=a+1|0;d=d+1|0;if((h|0)!=(d|0)){continue}break}}e=e+1|0;m=e>>>0>>0;if((e|0)!=(l|0)){continue}}break}d=i[f>>2]}if(d){nn(d)}a=m^1}J=f+16|0;return a&1}Sm();x()}function ki(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;f=J-16|0;J=f;l=i[a+80>>2];h=g[b+24|0];a=o(l,h);a:{e=i[b+28>>2];b:{if(!(!j[b+84|0]|((e|0)!=2?(e|0)!=1:0))){e=i[b+48>>2];k=i[i[b>>2]>>2];i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;b=0;if(a){if((a|0)<=-1){break a}b=Dm(a);d=pn(b,e+k|0,a)+a|0}a=i[c>>2];if(a){i[c+4>>2]=a;nn(a)}i[c+8>>2]=d;i[c+4>>2]=d;i[c>>2]=b;a=1;break b}i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;if(h){if((h|0)<=-1){break a}d=Dm(h);i[f>>2]=d;e=d+h|0;i[f+8>>2]=e;qn(d,0,h);i[f+4>>2]=e}k=i[c>>2];e=i[c+4>>2]-k|0;c:{if(a>>>0>e>>>0){rb(c,a-e|0);break c}if(a>>>0>=e>>>0){break c}i[c+4>>2]=a+k}if(l){a=0;m=1;e=0;while(1){d=e;k=b;if(!j[b+84|0]){d=i[i[b+68>>2]+(e<<2)>>2]}n=d;d=i[f>>2];if(li(k,n,g[b+24|0],d)){d:{if((h|0)<1){break d}g[i[c>>2]+a|0]=j[d|0];d=1;a=a+1|0;if((h|0)==1){break d}while(1){g[i[c>>2]+a|0]=j[i[f>>2]+d|0];a=a+1|0;d=d+1|0;if((h|0)!=(d|0)){continue}break}}e=e+1|0;m=e>>>0>>0;if((e|0)!=(l|0)){continue}}break}d=i[f>>2]}if(d){nn(d)}a=m^1}J=f+16|0;return a&1}Sm();x()}function md(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0;l=i[b+12>>2];e=l;d=i[b+20>>2];f=d;a:{m=i[b+16>>2];c=m+4|0;if(c>>>0<4){d=d+1|0}n=i[b+8>>2];g=c;c=d;if((e|0)<(c|0)?1:(e|0)<=(c|0)?n>>>0>>0:0){break a}o=i[b>>2];d=o+m|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[b+16>>2]=g;i[b+20>>2]=c;c=l;d=f;h=m+8|0;if(h>>>0<8){d=d+1|0}if((c|0)<(d|0)?1:(c|0)<=(d|0)?n>>>0>>0:0){break a}c=g+o|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=d;if((e|0)>(c|0)){break a}i[a+16>>2]=c;i[a+12>>2]=e;g=e;e=(c>>31)-((e>>31)+(c>>>0>>0)|0)|0;c=c-g|0;if(!e&c>>>0>2147483646|e>>>0>0){break a}e=c+1|0;i[a+20>>2]=e;c=(e|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(!(e&1)){i[a+24>>2]=c+ -1}if(k[b+38>>1]<=513){if((l|0)<(d|0)?1:(l|0)<=(d|0)?n>>>0<=h>>>0:0){break a}c=j[h+o|0];d=f;f=m+9|0;if(f>>>0<9){d=d+1|0}e=b;i[e+16>>2]=f;i[e+20>>2]=d;d=0;b:{switch(c|0){case 1:d=1;break;case 0:break b;default:break a}}i[a+88>>2]=d}return Ae(a+112|0,b)|0}return 0}function ri(a,b,c){var d=0,e=0,f=0,l=0,m=0,n=0,p=0,q=0;e=J-16|0;J=e;p=i[a+80>>2];n=g[b+24|0];a=o(p,n);a:{b:{c:{d=i[b+28>>2];if(!(!j[b+84|0]|((d|0)!=4?(d|0)!=3:0))){l=i[b+48>>2];d=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=0;a=a<<1;if(a){if((a|0)<=-1){break c}b=Dm(a);l=pn(b,d+l|0,a);m=l+a|0;f=l+(a>>1<<1)|0}a=i[c>>2];if(a){i[c+4>>2]=a;nn(a)}i[c+8>>2]=f;i[c+4>>2]=m;i[c>>2]=b;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(n){if((n|0)<=-1){break c}d=n<<1;m=Dm(d);i[e>>2]=m;f=d+m|0;i[e+8>>2]=f;qn(m,0,d);i[e+4>>2]=f}f=i[c>>2];d=i[c+4>>2]-f>>1;d:{if(a>>>0>d>>>0){pi(c,a-d|0);break d}if(a>>>0>=d>>>0){break d}i[c+4>>2]=f+(a<<1)}if(!p){break b}f=0;q=1;while(1){a=l;d=b;if(!j[d+84|0]){a=i[i[b+68>>2]+(l<<2)>>2]}if(!si(d,a,g[b+24|0],m)){break b}if((n|0)>=1){d=i[c>>2];a=0;while(1){h[d+(f<<1)>>1]=k[(a<<1)+m>>1];f=f+1|0;a=a+1|0;if((n|0)!=(a|0)){continue}break}}l=l+1|0;q=l>>>0

>>0;if((l|0)!=(p|0)){continue}break}break b}Sm();x()}if(m){nn(m)}a=q^1}J=e+16|0;return a&1}function oi(a,b,c){var d=0,e=0,f=0,l=0,m=0,n=0,p=0,q=0;e=J-16|0;J=e;p=i[a+80>>2];n=g[b+24|0];a=o(p,n);a:{b:{c:{d=i[b+28>>2];if(!(!j[b+84|0]|((d|0)!=4?(d|0)!=3:0))){l=i[b+48>>2];d=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=0;a=a<<1;if(a){if((a|0)<=-1){break c}b=Dm(a);l=pn(b,d+l|0,a);m=l+a|0;f=l+(a>>1<<1)|0}a=i[c>>2];if(a){i[c+4>>2]=a;nn(a)}i[c+8>>2]=f;i[c+4>>2]=m;i[c>>2]=b;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(n){if((n|0)<=-1){break c}d=n<<1;m=Dm(d);i[e>>2]=m;f=d+m|0;i[e+8>>2]=f;qn(m,0,d);i[e+4>>2]=f}f=i[c>>2];d=i[c+4>>2]-f>>1;d:{if(a>>>0>d>>>0){pi(c,a-d|0);break d}if(a>>>0>=d>>>0){break d}i[c+4>>2]=f+(a<<1)}if(!p){break b}f=0;q=1;while(1){a=l;d=b;if(!j[d+84|0]){a=i[i[b+68>>2]+(l<<2)>>2]}if(!qi(d,a,g[b+24|0],m)){break b}if((n|0)>=1){d=i[c>>2];a=0;while(1){h[d+(f<<1)>>1]=k[(a<<1)+m>>1];f=f+1|0;a=a+1|0;if((n|0)!=(a|0)){continue}break}}l=l+1|0;q=l>>>0

>>0;if((l|0)!=(p|0)){continue}break}break b}Sm();x()}if(m){nn(m)}a=q^1}J=e+16|0;return a&1}function ba(a,b,c,d,e){var f=0,g=0,h=0,k=0,l=0,n=0,o=0,q=0;f=J-48|0;J=f;a=i[a+4>>2];a:{if(a+ -2>>>0>28){break a}l=i[i[e>>2]>>2]+i[e+48>>2]|0;i[f+16>>2]=a;a=-1<>2]=a^-1;a=-2-a|0;i[f+24>>2]=a;i[f+32>>2]=(a|0)/2;m[f+28>>2]=p(2)/p(a|0);g=i[c>>2];if((g|0)!=i[c+4>>2]){a=0;e=0;while(1){d=i[(e<<2)+g>>2];g=f+36|0;n=i[i[b>>2]>>2];o=i[b+48>>2];h=i[b+44>>2];k=i[b+40>>2];q=k;if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}d=Gn(q,h,d,0)+o|0;pn(g,d+n|0,k);ca(f+16|0,f+36|0,f+12|0,f+8|0);d=a<<2;i[d+l>>2]=i[f+12>>2];i[(d|4)+l>>2]=i[f+8>>2];h=1;a=a+2|0;e=e+1|0;g=i[c>>2];if(e>>>0>2]-g>>2>>>0){continue}break}break a}if(!d){h=1;break a}e=0;a=0;while(1){c=a;g=f+36|0;n=i[i[b>>2]>>2];o=i[b+48>>2];h=i[b+44>>2];k=i[b+40>>2];q=k;if(!j[b+84|0]){c=i[i[b+68>>2]+(a<<2)>>2]}c=Gn(q,h,c,0)+o|0;pn(g,c+n|0,k);ca(f+16|0,f+36|0,f+12|0,f+8|0);c=e<<2;i[c+l>>2]=i[f+12>>2];i[(c|4)+l>>2]=i[f+8>>2];e=e+2|0;h=1;a=a+1|0;if((d|0)!=(a|0)){continue}break}}J=f+48|0;return h}function wa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,m=0,n=0;e=i[a+12>>2];d=i[a+8>>2];f=e-d>>2;b=g[b+24|0];a:{if(f>>>0>>0){na(a+8|0,b-f|0);d=i[a+8>>2];e=i[a+12>>2];break a}if(f>>>0<=b>>>0){break a}e=(b<<2)+d|0;i[a+12>>2]=e}b=0;h=i[c+12>>2];f=i[c+20>>2];k=i[c+16>>2];m=e-d|0;e=m;n=k+e|0;if(n>>>0>>0){f=f+1|0}b:{if((h|0)<(f|0)?1:(h|0)<=(f|0)?l[c+8>>2]>>0:0){break b}pn(d,k+i[c>>2]|0,m);d=i[c+20>>2];h=e+i[c+16>>2]|0;if(h>>>0>>0){d=d+1|0}e=h;i[c+16>>2]=e;i[c+20>>2]=d;f=i[c+12>>2];h=e+4|0;if(h>>>0<4){d=d+1|0}if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]>>0:0){break b}d=e+i[c>>2]|0;i[a+20>>2]=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);d=i[c+20>>2];e=d;k=i[c+16>>2];h=k+4|0;if(h>>>0<4){d=d+1|0}i[c+16>>2]=h;i[c+20>>2]=d;f=i[c+12>>2];if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]<=h>>>0:0){break b}f=j[h+i[c>>2]|0];d=e;e=k+5|0;if(e>>>0<5){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;if(f+ -1>>>0>29){break b}i[a+4>>2]=f;b=1}return b|0}function Qk(a,b){var c=0,d=0,e=0,f=0,h=0,j=0;j=J-16|0;J=j;a:{b:{if(b){i[a+88>>2]=0;i[a+92>>2]=0;c=a+84|0;d=i[c>>2];i[c>>2]=0;if(d){nn(d)}i[a+76>>2]=0;i[a+80>>2]=0;c=a+72|0;d=i[c>>2];i[c>>2]=0;if(d){nn(d)}d=i[b>>2];c=i[b+4>>2];g[j+15|0]=0;Jf(a,c-d>>2,j+15|0);c=b+28|0;d=i[c>>2];e=i[b+24>>2];g[j+14|0]=0;Jf(a+12|0,d-e>>2,j+14|0);Hk(a+28|0,i[b+4>>2]-i[b>>2]>>2,14476);d=i[a+52>>2];e=i[c>>2]-i[b+24>>2]|0;c=e>>2;c:{if(i[a+60>>2]-d>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break b}f=i[a+56>>2];h=c<<2;c=Dm(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){pn(c,d,e)}i[a+60>>2]=h;i[a+56>>2]=f;i[a+52>>2]=c;if(!d){break c}nn(d)}d=i[a+40>>2];e=i[b+28>>2]-i[b+24>>2]|0;c=e>>2;d:{if(i[a+48>>2]-d>>2>>>0>=c>>>0){break d}if(c>>>0>=1073741824){break a}f=i[a+44>>2];h=c<<2;c=Dm(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){pn(c,d,e)}i[a+48>>2]=h;i[a+44>>2]=f;i[a+40>>2]=c;if(!d){break d}nn(d)}g[a+24|0]=1;i[a+64>>2]=b}J=j+16|0;return}Ba(14480);x()}Ba(14480);x()}function Eg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i[a+12>>2];d=i[a+108>>2];e=i[d+80>>2];g[b+84|0]=0;f=i[b+68>>2];c=i[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){Wb(b+68|0,e-c|0,12516);d=i[a+108>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=f+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}p=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=i[n>>2]+(o(d,3)<<2)|0;j=i[c>>2];if((j|0)==-1){break c}f=o(d,12)+m|0;h=i[f>>2];if(h>>>0>=e>>>0){break c}l=i[i[a+112>>2]+12>>2];k=i[l+(j<<2)>>2];if(k>>>0>=e>>>0){break c}j=i[b+68>>2];i[j+(h<<2)>>2]=k;h=i[c+4>>2];if((h|0)==-1){break c}k=i[f+4>>2];if(k>>>0>=e>>>0){break c}h=i[(h<<2)+l>>2];if(h>>>0>=e>>>0){break c}i[j+(k<<2)>>2]=h;c=i[c+8>>2];if((c|0)==-1){break c}f=i[f+8>>2];if(f>>>0>=e>>>0){break c}c=i[(c<<2)+l>>2];if(c>>>0>=e>>>0){break c}i[j+(f<<2)>>2]=c;c=1;d=d+1|0;if((p|0)!=(d|0)){continue}break b}break}c=0}return c|0}function Pg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i[a+12>>2];d=i[a+68>>2];e=i[d+80>>2];g[b+84|0]=0;f=i[b+68>>2];c=i[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){Wb(b+68|0,e-c|0,12516);d=i[a+68>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=f+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}p=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=i[n>>2]+(o(d,3)<<2)|0;j=i[c>>2];if((j|0)==-1){break c}f=o(d,12)+m|0;h=i[f>>2];if(h>>>0>=e>>>0){break c}l=i[i[a+72>>2]+12>>2];k=i[l+(j<<2)>>2];if(k>>>0>=e>>>0){break c}j=i[b+68>>2];i[j+(h<<2)>>2]=k;h=i[c+4>>2];if((h|0)==-1){break c}k=i[f+4>>2];if(k>>>0>=e>>>0){break c}h=i[(h<<2)+l>>2];if(h>>>0>=e>>>0){break c}i[j+(k<<2)>>2]=h;c=i[c+8>>2];if((c|0)==-1){break c}f=i[f+8>>2];if(f>>>0>=e>>>0){break c}c=i[(c<<2)+l>>2];if(c>>>0>=e>>>0){break c}i[j+(f<<2)>>2]=c;c=1;d=d+1|0;if((p|0)!=(d|0)){continue}break b}break}c=0}return c|0}function Oc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=J-16|0;J=e;a:{c=i[a+4>>2];b:{if(c>>>0>>0){d=i[a+8>>2];f=d<<5;g=b-c|0;c:{if(!(f>>>0>>0|c>>>0>f-g>>>0)){i[a+4>>2]=b;d=c&31;b=i[a>>2]+(c>>>3&536870908)|0;break c}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if((b|0)<=-1){break a}c=e;if(f>>>0<=1073741822){f=b+31&-32;b=d<<6;b=b>>>0>>0?f:b}else{b=2147483647}Qc(c,b);d=i[a+4>>2];i[e+4>>2]=d+g;h=i[a>>2];b=i[e>>2];d:{if((d|0)<1){d=0;break d}c=d>>>5|0;f=c<<2;b=rn(b,h,f)+f|0;d=d-(c<<5)|0;e:{if((d|0)<1){d=0;break e}c=-1>>>32-d|0;i[b>>2]=i[b>>2]&(c^-1)|c&i[f+h>>2]}h=i[a>>2]}i[a>>2]=i[e>>2];i[e>>2]=h;c=i[a+4>>2];i[a+4>>2]=i[e+4>>2];i[e+4>>2]=c;c=i[a+8>>2];i[a+8>>2]=i[e+8>>2];i[e+8>>2]=c;if(!h){break c}nn(h)}if(!g){break b}if(d){c=32-d|0;a=c>>>0>g>>>0?g:c;i[b>>2]=i[b>>2]&(-1<>>c-a^-1);g=g-a|0;b=b+4|0}c=g>>>5<<2;a=qn(b,0,c);b=g&31;if(!b){break b}a=a+c|0;i[a>>2]=i[a>>2]&(-1>>>32-b^-1);break b}i[a+4>>2]=b}J=e+16|0;return}Sm();x()}function Fg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=J-16|0;J=g;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+28>>2]-i[c+24>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];h=c<<2;c=Dm(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){pn(c,d,e)}i[b+8>>2]=h;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}nn(d)}b=i[a+12>>2];d=i[b+28>>2];b=i[b+24>>2];i[g+12>>2]=0;b=d-b>>2;c=a+96|0;e=i[c>>2];d=i[a+100>>2]-e>>2;c:{if(b>>>0>d>>>0){Ta(c,b-d|0,g+12|0);break c}if(b>>>0>=d>>>0){break c}i[a+100>>2]=e+(b<<2)}e=a+8|0;b=i[a+116>>2];d:{if(b){c=i[b>>2];if((c|0)==i[b+4>>2]){d=1;break d}b=0;while(1){d=Gg(e,i[(b<<2)+c>>2]);if(!d){break d}f=i[a+116>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break d}d=1;a=i[a+12>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break d}b=0;while(1){d=Gg(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break d}if(d){continue}break}}J=g+16|0;return d|0}Ba(12220);x()}function Vg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;j=i[a+12>>2];d=i[a+68>>2];e=i[d+80>>2];g[b+84|0]=0;h=i[b+68>>2];c=i[b+72>>2]-h>>2;a:{if(e>>>0>c>>>0){Wb(b+68|0,e-c|0,12516);d=i[a+68>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=h+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}n=d>>>0>1?d:1;p=i[j+28>>2];d=0;b:{while(1){c:{c=(o(d,3)<<2)+p|0;h=i[c>>2];if((h|0)==-1){break c}j=o(d,12)+m|0;k=i[j>>2];if(k>>>0>=e>>>0){break c}f=h<<2;h=i[i[a+72>>2]+12>>2];f=i[f+h>>2];if(f>>>0>=e>>>0){break c}l=k<<2;k=i[b+68>>2];i[l+k>>2]=f;f=i[c+4>>2];if((f|0)==-1){break c}l=i[j+4>>2];if(l>>>0>=e>>>0){break c}f=i[h+(f<<2)>>2];if(f>>>0>=e>>>0){break c}i[k+(l<<2)>>2]=f;c=i[c+8>>2];if((c|0)==-1){break c}j=i[j+8>>2];if(j>>>0>=e>>>0){break c}c=i[h+(c<<2)>>2];if(c>>>0>=e>>>0){break c}i[k+(j<<2)>>2]=c;c=1;d=d+1|0;if((n|0)!=(d|0)){continue}break b}break}c=0}return c|0}function ql(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;j=a+8|0;d=i[a+12>>2];h=i[a+8>>2];f=d-h>>2;a:{if((f|0)>(b|0)){break a}e=b+1|0;if(e>>>0>f>>>0){rl(j,e-f|0);break a}if(e>>>0>=f>>>0){break a}f=h+(e<<2)|0;if((f|0)!=(d|0)){while(1){d=d+ -4|0;e=i[d>>2];i[d>>2]=0;if(e){Sa(e)}if((d|0)!=(f|0)){continue}break}}i[a+12>>2]=f}b:{c:{d=i[i[c>>2]+56>>2];d:{if((d|0)>4){break d}d=o(d,12)+a|0;h=d+24|0;a=i[h>>2];k=d+28|0;if((a|0)!=i[k>>2]){i[a>>2]=b;i[h>>2]=a+4;break d}l=d+20|0;d=i[l>>2];f=a-d|0;g=f>>2;e=g+1|0;if(e>>>0>=1073741824){break c}a=f>>1;e=g>>>0<536870911?a>>>0>>0?e:a:1073741823;a=0;e:{if(!e){break e}if(e>>>0>=1073741824){break b}a=Dm(e<<2)}g=a+(g<<2)|0;i[g>>2]=b;e=a+(e<<2)|0;g=g+4|0;if((f|0)>=1){pn(a,d,f)}i[l>>2]=a;i[h>>2]=g;i[k>>2]=e;if(!d){break d}nn(d)}d=i[c>>2];i[d+60>>2]=b;a=i[j>>2];i[c>>2]=0;b=a+(b<<2)|0;a=i[b>>2];i[b>>2]=d;if(a){Sa(a)}return}Sm();x()}Ba(14808);x()}function mg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if((e-c|0)/12>>>0>=b>>>0){if(b){b=o(b,12);c=qn(c,0,b-((b+ -12>>>0)%12|0)|0)+b|0}i[a+4>>2]=c;return}a:{b:{c:{h=i[a>>2];f=(c-h|0)/12|0;d=f+b|0;if(d>>>0<357913942){f=o(f,12);e=(e-h|0)/12|0;g=e<<1;e=e>>>0<178956970?g>>>0>>0?d:g:357913941;if(e){if(e>>>0>=357913942){break c}j=Dm(o(e,12))}d=f+j|0;b=o(b,12);f=qn(d,0,b-((b+ -12>>>0)%12|0)|0);g=b+f|0;b=o(e,12)+j|0;if((c|0)==(h|0)){break b}while(1){d=d+ -12|0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;c=c+ -12|0;i[d>>2]=i[c>>2];i[d+4>>2]=i[c+4>>2];i[d+8>>2]=i[c+8>>2];i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;if((c|0)!=(h|0)){continue}break}i[a+8>>2]=b;b=i[a+4>>2];i[a+4>>2]=g;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){a=b+ -12|0;d=i[a>>2];if(d){i[b+ -8>>2]=d;nn(d)}b=a;if((b|0)!=(c|0)){continue}break}break a}Sm();x()}Ba(12220);x()}i[a+8>>2]=b;i[a+4>>2]=g;i[a>>2]=f}if(c){nn(c)}}function da(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=p(0),f=p(0),h=p(0),k=p(0),l=p(0),m=0,n=p(0),o=p(0),r=p(0),s=p(0),u=0;a:{if(i[c+28>>2]!=9|j[c+24|0]!=3){break a}a=i[a+4>>2];if(a+ -2>>>0>28){break a}u=1;m=i[c+80>>2];if(!m){break a}n=p(p(2)/p((1<>2]>>2]+i[c+48>>2]|0;a=i[i[b>>2]>>2]+i[b+48>>2]|0;b=0;while(1){h=p(0);o=p(0);r=p(0);e=p(p(n*p(i[a>>2]))+p(-1));f=p(p(n*p(i[a+4>>2]))+p(-1));l=p(p(p(1)-p(q(e)))-p(q(f)));k=p(t(p(-l),p(0)));s=p(-k);f=p(f+(f>>8;g[c+10|0]=d>>>16;g[c+11|0]=d>>>24;d=(Nn(o),On(2));g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;d=(Nn(h),On(2));g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;c=c+12|0;b=b+1|0;if((m|0)!=(b|0)){continue}break}}return u|0}function zc(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+4>>2]=b;i[a>>2]=3088;b=c;e=i[b+8>>2];f=i[b+12>>2];h=i[b+16>>2];j=i[b+20>>2];k=i[b>>2];l=i[b+4>>2];i[a+40>>2]=0;g=a+32|0;i[g>>2]=0;i[g+4>>2]=0;i[a+24>>2]=h;i[a+28>>2]=j;i[a+16>>2]=e;i[a+20>>2]=f;i[a+8>>2]=k;i[a+12>>2]=l;a:{b=i[b+28>>2]-i[b+24>>2]|0;if(b){e=b>>2;if(e>>>0>=1073741824){break a}b=Dm(b);i[a+32>>2]=b;i[a+36>>2]=b;i[a+40>>2]=b+(e<<2);e=a;f=i[c+24>>2];c=i[c+28>>2]-f|0;if((c|0)>=1){b=pn(b,f,c)+c|0}i[e+36>>2]=b}i[a>>2]=3032;b=i[d+4>>2];i[a+44>>2]=i[d>>2];i[a+48>>2]=b;b=d+8|0;e=i[b+4>>2];i[a+52>>2]=i[b>>2];i[a+56>>2]=e;c=a- -64|0;i[c>>2]=0;i[c+4>>2]=0;i[a+60>>2]=4720;i[a>>2]=4092;c=i[d+4>>2];i[a+72>>2]=i[d>>2];i[a+76>>2]=c;c=i[b+4>>2];i[a+80>>2]=i[b>>2];i[a+84>>2]=c;i[a+104>>2]=1065353216;i[a+108>>2]=-1;i[a+96>>2]=-1;i[a+100>>2]=-1;i[a+88>>2]=1;i[a+92>>2]=-1;i[a+60>>2]=4328;ze(a+112|0);return}Sm();x()}function rd(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+4>>2]=b;i[a>>2]=3088;b=c;e=i[b+8>>2];f=i[b+12>>2];h=i[b+16>>2];j=i[b+20>>2];k=i[b>>2];l=i[b+4>>2];i[a+40>>2]=0;g=a+32|0;i[g>>2]=0;i[g+4>>2]=0;i[a+24>>2]=h;i[a+28>>2]=j;i[a+16>>2]=e;i[a+20>>2]=f;i[a+8>>2]=k;i[a+12>>2]=l;a:{b=i[b+28>>2]-i[b+24>>2]|0;if(b){e=b>>2;if(e>>>0>=1073741824){break a}b=Dm(b);i[a+32>>2]=b;i[a+36>>2]=b;i[a+40>>2]=b+(e<<2);e=a;f=i[c+24>>2];c=i[c+28>>2]-f|0;if((c|0)>=1){b=pn(b,f,c)+c|0}i[e+36>>2]=b}i[a>>2]=5116;b=i[d+4>>2];i[a+44>>2]=i[d>>2];i[a+48>>2]=b;b=d+8|0;e=i[b+4>>2];i[a+52>>2]=i[b>>2];i[a+56>>2]=e;c=a- -64|0;i[c>>2]=0;i[c+4>>2]=0;i[a+60>>2]=6656;i[a>>2]=6072;c=i[d+4>>2];i[a+72>>2]=i[d>>2];i[a+76>>2]=c;c=i[b+4>>2];i[a+80>>2]=i[b>>2];i[a+84>>2]=c;i[a+104>>2]=1065353216;i[a+108>>2]=-1;i[a+96>>2]=-1;i[a+100>>2]=-1;i[a+88>>2]=1;i[a+92>>2]=-1;i[a+60>>2]=6292;ze(a+112|0);return}Sm();x()}function qd(a){var b=0,c=0,d=0;b=i[a+8>>2];d=i[a>>2];a:{if(j[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;if((b|0)==-1|i[i[d>>2]+(b>>>3&536870908)>>2]>>>b&1){break e}b=i[i[i[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}i[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;i[a+8>>2]=b;if((b|0)!=-1){break b}}b=-1;c=i[a+4>>2];f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1|i[i[d>>2]+(c>>>3&536870908)>>2]>>>c&1){break f}d=i[i[i[d+64>>2]+12>>2]+(c<<2)>>2];if((d|0)==-1){break f}if((d>>>0)%3|0){b=d+ -1|0;break f}b=d+2|0}g[a+12|0]=0;i[a+8>>2]=b;return}if((b|0)!=i[a+4>>2]){break a}i[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)==-1|i[i[d>>2]+(b>>>3&536870908)>>2]>>>b&1){break g}b=i[i[i[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break g}if((b>>>0)%3|0){c=b+ -1|0;break g}c=b+2|0}i[a+8>>2]=c}}function nc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;f=J-16|0;J=f;m=i[c+8>>2];h=i[c+16>>2];l=i[c+12>>2];d=l;k=i[c+20>>2];e=k;a:{if((d|0)<(e|0)?1:(d|0)<=(e|0)?m>>>0<=h>>>0:0){break a}n=i[c>>2];o=g[n+h|0];d=k;e=h+1|0;if(e>>>0<1){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;b:{if((o|0)==-2){break b}if((l|0)<(d|0)?1:(l|0)<=(d|0)?m>>>0<=e>>>0:0){break a}e=g[e+n|0];h=h+2|0;if(h>>>0<2){k=k+1|0}d=c;i[d+16>>2]=h;i[d+20>>2]=k;if((e+1&255)>>>0>4){break a}M[i[i[a>>2]+40>>2]](f+8|0,a,o,e);k=i[f+8>>2];i[f+8>>2]=0;d=i[a+20>>2];i[a+20>>2]=k;if(!d){break b}M[i[i[d>>2]+4>>2]](d);d=i[f+8>>2];i[f+8>>2]=0;if(!d){break b}M[i[i[d>>2]+4>>2]](d)}d=i[a+20>>2];if(d){if(!(M[i[i[a>>2]+28>>2]](a,d)|0)){break a}}if(!(M[i[i[a>>2]+36>>2]](a,b,c)|0)){break a}c=i[a+4>>2];if(!(!c|j[c+36|0]>1)){if(!(M[i[i[a>>2]+48>>2]](a,i[b+4>>2]-i[b>>2]>>2)|0)){break a}}p=1}J=f+16|0;return p|0}function _g(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=Dm(b<<2);d=i[a>>2];i[a>>2]=c;if(d){nn(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Jn(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(i[d+8>>2]==i[c+8>>2]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){nn(b)}i[a+4>>2]=0}return}Ba(12220);x()}function qb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;e=i[b+12>>2];a:{f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){k=1;break a}i[a+8>>2]=0;d=0;while(1){if(!Ae(((d<<4)+a|0)+16|0,b)){break a}d=d+1|0;if((d|0)!=32){continue}break}if(!Ae(a+528|0,b)){break a}if(!xe(a+544|0,b)){break a}if(!xe(a+564|0,b)){break a}if(!xe(a+584|0,b)){break a}return Ab(a,i[a+4>>2],c)}return k}function pb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;e=i[b+12>>2];a:{f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){k=1;break a}i[a+8>>2]=0;d=0;while(1){if(!Ae(((d<<4)+a|0)+16|0,b)){break a}d=d+1|0;if((d|0)!=32){continue}break}if(!Ae(a+528|0,b)){break a}if(!xe(a+544|0,b)){break a}if(!xe(a+564|0,b)){break a}if(!xe(a+584|0,b)){break a}return zb(a,i[a+4>>2],c)}return k}function mb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;e=i[b+12>>2];a:{f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){k=1;break a}i[a+8>>2]=0;d=0;while(1){if(!Ae(((d<<4)+a|0)+16|0,b)){break a}d=d+1|0;if((d|0)!=32){continue}break}if(!Ae(a+528|0,b)){break a}if(!xe(a+544|0,b)){break a}if(!xe(a+564|0,b)){break a}if(!xe(a+584|0,b)){break a}return xb(a,i[a+4>>2],c)}return k}function ig(a){i[a>>2]=11568;qn(a+4|0,0,80);i[a+96>>2]=0;i[a+100>>2]=0;i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+148>>2]=0;i[a+156>>2]=0;i[a+160>>2]=0;i[a+152>>2]=1065353216;i[a+164>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;i[a+196>>2]=0;i[a+200>>2]=0;i[a+204>>2]=0;i[a+208>>2]=0;i[a+212>>2]=-1;i[a+216>>2]=0;i[a+220>>2]=0;i[a+224>>2]=0;zh(a+232|0);zh(a+272|0);ze(a+312|0);zh(a+328|0);i[a+392>>2]=0;i[a+396>>2]=0;i[a+384>>2]=0;i[a+388>>2]=0;i[a+376>>2]=0;i[a+380>>2]=0;i[a+368>>2]=0;i[a+372>>2]=0;i[a+416>>2]=0;i[a+420>>2]=0;i[a+408>>2]=2;i[a+412>>2]=7;i[a+400>>2]=-1;i[a+404>>2]=-1;i[a+424>>2]=0;i[a+428>>2]=0;i[a+432>>2]=0;i[a+436>>2]=0}function ci(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=J-16|0;J=e;k=di(a,b);a:{if(!k){break a}d=i[b+100>>2];f=i[b+96>>2];if((d|0)==(f|0)){break a}while(1){if(!(i[i[a+56>>2]+(j>>>3&536870908)>>2]>>>j&1)){d=o(j,3);Uk(a,0,d);f=i[a+8>>2];h=i[a+12>>2];Uk(a,1,d+1|0);g=i[a+20>>2];l=i[a+24>>2];Uk(a,2,d+2|0);g=l-g>>2;f=h-f|0;h=f>>2;d=g>>>0>h>>>0;h=i[a+36>>2]-i[a+32>>2]>>2>>>0>(d?g:h)>>>0?2:d?1:f?0:-1;b:{if(i[a+68>>2]<1){break b}i[e+12>>2]=i[a+76>>2];i[e+8>>2]=c;ei(e+8|0,e+12|0);f=e;g=i[((h<<2)+a|0)+44>>2];d=-1;c:{if((g|0)<0){break c}d=(g>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(g-o(d,3)<<2)>>2]}i[f+12>>2]=d;i[e+8>>2]=c;ei(e+8|0,e+12|0);f=i[a+72>>2]+2|0;i[a+72>>2]=f;if(!(f&1)){break b}i[e+12>>2]=d;i[e+8>>2]=c;ei(e+8|0,e+12|0);i[a+72>>2]=i[a+72>>2]+1}fi(a,h,c);f=i[b+96>>2];d=i[b+100>>2]}j=j+1|0;if(j>>>0<(d-f|0)/12>>>0){continue}break}}J=e+16|0;return k}function Wd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,q=0;g=i[b+12>>2];c=g;d=i[b+20>>2];e=d;a:{h=i[b+16>>2];f=h+4|0;if(f>>>0<4){d=d+1|0}l=i[b+8>>2];if((c|0)<(d|0)?1:(c|0)<=(d|0)?l>>>0>>0:0){break a}n=i[b>>2];c=h+n|0;o=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=d;q=k[b+38>>1];if(q>>>0<=513){c=g;d=e;e=h+8|0;if(e>>>0<8){d=d+1|0}f=e;if((c|0)<(d|0)?1:(c|0)<=(d|0)?l>>>0>>0:0){break a}i[b+16>>2]=f;i[b+20>>2]=d}if(!(o&1)){break a}c=r(o)^31;if(c+ -1>>>0>28){break a}i[a+8>>2]=c+1;e=-2<>2]=c;i[a+12>>2]=e^-1;i[a+24>>2]=(c|0)/2;m[a+20>>2]=p(2)/p(c|0);if(q>>>0<=513){if((g|0)<(d|0)?1:(g|0)<=(d|0)?l>>>0<=f>>>0:0){break a}c=j[f+n|0];e=f+1|0;if(e>>>0<1){d=d+1|0}i[b+16>>2]=e;i[b+20>>2]=d;d=0;b:{switch(c|0){case 1:d=1;break;case 0:break b;default:break a}}i[a+72>>2]=d}return Ae(a+96|0,b)|0}return 0}function ra(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,n=0,r=0,s=0,t=0,v=0,w=0,x=p(0),y=0,z=0,A=p(0),B=0,C=0,D=0,E=0;r=J-16|0;J=r;e=i[a+4>>2];h=i[d+48>>2];l=i[i[d>>2]>>2];k=g[b+24|0];f=Kh(r+8|0);Lh(f,m[a+20>>2],-1<>2];e=i[c+4>>2];if((n|0)!=(e|0)){y=h+l|0;c=e-n|0;h=(c|0)>-1?c:-1;e=n-e|0;c=o((h|0)<1?h:1,((e|0)>(c|0)?e:c)>>>2|0);z=c>>>0>1?c:1;A=m[f>>2];B=i[b>>2];e=i[b+48>>2];C=i[b+68>>2];h=i[b+44>>2];l=i[b+40>>2];D=l;c=0;E=j[b+84|0];while(1){b=i[(s<<2)+n>>2];f=d;t=i[B>>2];v=l;w=h;if(!E){b=i[(b<<2)+C>>2]}b=Gn(v,w,b,0)+e|0;v=pn(f,b+t|0,D);if((k|0)>=1){w=i[a+8>>2];b=0;while(1){t=y+(c<<2)|0;f=b<<2;x=p(u(p(p(A*p(m[f+v>>2]-m[f+w>>2]))+p(.5))));a:{if(p(q(x))>2]=f;c=c+1|0;b=b+1|0;if((k|0)!=(b|0)){continue}break}}s=s+1|0;if((z|0)!=(s|0)){continue}break}}nn(d);J=r+16|0}function fa(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0;l=d-c|0;if((l|0)<1){return}a:{e=i[a+8>>2];m=i[a+4>>2];if((l|0)<=(e-m|0)){k=m-b|0;if((l|0)<=(k|0)){e=m;h=d;break a}e=m;h=c+k|0;if((h|0)!=(d|0)){f=h;while(1){g[e|0]=j[f|0];e=e+1|0;f=f+1|0;if((f|0)!=(d|0)){continue}break}}i[a+4>>2]=e;if((k|0)>=1){break a}return}h=i[a>>2];d=(m-h|0)+l|0;if((d|0)>-1){k=b-h|0;n=k;f=e-h|0;e=f<<1;e=f>>>0<1073741823?e>>>0>>0?d:e:2147483647;d=0;b:{if(!e){break b}d=Dm(e)}c=pn(n+d|0,c,l);if((k|0)>=1){pn(d,h,k)}e=d+e|0;c=c+l|0;f=m-b|0;if((f|0)>=1){c=pn(c,b,f)+f|0}i[a+8>>2]=e;i[a+4>>2]=c;i[a>>2]=d;if(h){nn(h)}return}Sm();x()}k=e-(b+l|0)|0;f=e;d=e-l|0;if(d>>>0>>0){while(1){g[f|0]=j[d|0];f=f+1|0;d=d+1|0;if(d>>>0>>0){continue}break}}i[a+4>>2]=f;if(k){rn(e-k|0,b,k)}if((c|0)==(h|0)){return}f=b;while(1){g[f|0]=j[c|0];f=f+1|0;c=c+1|0;if((h|0)!=(c|0)){continue}break}}function $e(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=J+ -64|0;J=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!of(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!pf(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>4194303){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<4194304){continue}break}}e=b&1048575;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>20|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=pf(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;nn(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;nn(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;nn(a)}J=d- -64|0;return e}function _e(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=J+ -64|0;J=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!mf(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!nf(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>2097151){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<2097152){continue}break}}e=b&524287;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>19|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=nf(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;nn(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;nn(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;nn(a)}J=d- -64|0;return e}function Ze(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=J+ -64|0;J=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!kf(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!lf(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>1048575){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<1048576){continue}break}}e=b&262143;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>18|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=lf(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;nn(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;nn(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;nn(a)}J=d- -64|0;return e}function Je(a,b){var c=0,d=0,e=0;e=J-16|0;J=e;i[e+12>>2]=b;b=Dm(32);i[e>>2]=b;i[e+4>>2]=24;i[e+8>>2]=-2147483616;g[b+24|0]=0;c=j[11181]|j[11182]<<8|(j[11183]<<16|j[11184]<<24);d=j[11177]|j[11178]<<8|(j[11179]<<16|j[11180]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[11173]|j[11174]<<8|(j[11175]<<16|j[11176]<<24);d=j[11169]|j[11170]<<8|(j[11171]<<16|j[11172]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11165]|j[11166]<<8|(j[11167]<<16|j[11168]<<24);d=j[11161]|j[11162]<<8|(j[11163]<<16|j[11164]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;Hh(Ke(a,e+12|0),e);if(g[e+11|0]<=-1){nn(i[e>>2])}J=e+16|0}function ee(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,q=0;g=i[b+12>>2];h=g;c=i[b+20>>2];f=c;a:{l=i[b+16>>2];d=l+4|0;if(d>>>0<4){c=c+1|0}n=i[b+8>>2];e=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?n>>>0>>0:0){break a}h=i[b>>2];c=h+l|0;q=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=e;i[b+20>>2]=d;d=g;c=f;e=l+8|0;if(e>>>0<8){c=c+1|0}o=e;if((d|0)<(c|0)?1:(d|0)<=(c|0)?n>>>0>>0:0){break a}i[b+16>>2]=o;i[b+20>>2]=c;if(!(q&1)){break a}d=r(q)^31;if(d+ -1>>>0>28){break a}i[a+8>>2]=d+1;d=-2<>2]=e;i[a+12>>2]=d^-1;i[a+24>>2]=(e|0)/2;m[a+20>>2]=p(2)/p(e|0);if(k[b+38>>1]<=513){if((g|0)<(c|0)?1:(g|0)<=(c|0)?n>>>0<=o>>>0:0){break a}g=j[h+o|0];d=l+9|0;if(d>>>0<9){f=f+1|0}c=b;i[c+16>>2]=d;i[c+20>>2]=f;f=0;b:{switch(g|0){case 1:f=1;break;case 0:break b;default:break a}}i[a+72>>2]=f}return Ae(a+96|0,b)|0}return 0}function Ye(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=J+ -64|0;J=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!hf(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!jf(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>262143){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<262144){continue}break}}e=b&65535;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>16|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=jf(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;nn(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;nn(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;nn(a)}J=d- -64|0;return e}function Xe(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=J+ -64|0;J=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!ff(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!gf(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>131071){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<131072){continue}break}}e=b&32767;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>15|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=gf(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;nn(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;nn(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;nn(a)}J=d- -64|0;return e}function We(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=J+ -64|0;J=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!df(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!ef(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>32767){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<32768){continue}break}}e=b&8191;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>13|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=ef(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;nn(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;nn(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;nn(a)}J=d- -64|0;return e}function Ve(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=J+ -64|0;J=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!Te(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!Ue(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>16383){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<16384){continue}break}}e=b&4095;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>12|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=Ue(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;nn(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;nn(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;nn(a)}J=d- -64|0;return e}function La(a,b){var c=0,d=0,e=0,f=0,h=0;if(!i[a+64>>2]){e=Dm(32);c=wh(e);d=i[a+64>>2];i[a+64>>2]=e;e=a;if(d){c=i[d>>2];if(c){i[d+4>>2]=c;nn(c)}nn(d);c=i[a+64>>2]}Ha(e,c,0,0)}a:{b:{if(!Ga(a,b)){break b}g[a+84|0]=j[b+84|0];i[a+80>>2]=i[b+80>>2];if((a|0)!=(b|0)){Ma(a+68|0,i[b+68>>2],i[b+72>>2])}d=i[b+88>>2];if(d){b=Dm(40);c=i[d>>2];i[b+16>>2]=0;i[b+8>>2]=0;i[b+12>>2]=0;i[b>>2]=c;e=i[d+12>>2]-i[d+8>>2]|0;if(e){if((e|0)<=-1){break a}c=Dm(e);i[b+8>>2]=c;i[b+12>>2]=c;i[b+16>>2]=c+e;e=b;h=i[d+8>>2];f=i[d+12>>2]-h|0;if((f|0)>=1){c=pn(c,h,f)+f|0}i[e+12>>2]=c}c=i[d+36>>2];i[b+32>>2]=i[d+32>>2];i[b+36>>2]=c;c=i[d+28>>2];i[b+24>>2]=i[d+24>>2];i[b+28>>2]=c;c=i[a+88>>2];i[a+88>>2]=b;if(!c){break b}a=i[c+8>>2];if(a){i[c+12>>2]=a;nn(a)}nn(c);return}b=i[a+88>>2];i[a+88>>2]=0;if(!b){break b}a=i[b+8>>2];if(a){i[b+12>>2]=a;nn(a)}nn(b)}return}Sm();x()}function El(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=i[b+12>>2];f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){break a}i[a+8>>2]=0;d=0;while(1){if(!Ae(((d<<4)+a|0)+16|0,b)){break a}d=d+1|0;if((d|0)!=32){continue}break}if(!Ae(a+528|0,b)){break a}if(!xe(a+544|0,b)){break a}if(!xe(a+564|0,b)){break a}if(!xe(a+584|0,b)){break a}Ll(a,i[a+4>>2],c)}}function Dl(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=i[b+12>>2];f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){break a}i[a+8>>2]=0;d=0;while(1){if(!Ae(((d<<4)+a|0)+16|0,b)){break a}d=d+1|0;if((d|0)!=32){continue}break}if(!Ae(a+528|0,b)){break a}if(!xe(a+544|0,b)){break a}if(!xe(a+564|0,b)){break a}if(!xe(a+584|0,b)){break a}Kl(a,i[a+4>>2],c)}}function Cl(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=i[b+12>>2];f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){break a}i[a+8>>2]=0;d=0;while(1){if(!Ae(((d<<4)+a|0)+16|0,b)){break a}d=d+1|0;if((d|0)!=32){continue}break}if(!Ae(a+528|0,b)){break a}if(!xe(a+544|0,b)){break a}if(!xe(a+564|0,b)){break a}if(!xe(a+584|0,b)){break a}Jl(a,i[a+4>>2],c)}}function Sk(a,b){var c=0,d=0,e=0,f=0,h=0,j=0;e=i[a>>2];c=e+(b>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>2];f=(b|0)==-1;c=-1;a:{if(f){break a}d=b+1|0;d=(d>>>0)%3|0?d:b+ -2|0;c=-1;if((d|0)==-1){break a}c=i[i[h>>2]+(d<<2)>>2]}d=i[a+12>>2];j=(c>>>3&536870908)+d|0;i[j>>2]=i[j>>2]|1<>>0)%3|0?-1:2)+b|0;if((f|0)!=-1){c=i[i[h>>2]+(f<<2)>>2]}f=d+(c>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>2]+(b<<2)>>2];if((b|0)==-1){break b}g[a+24|0]=0;a=(b>>>3&536870908)+e|0;i[a>>2]=i[a>>2]|1<>>0)%3|0?e:b+ -2|0;if((e|0)!=-1){c=i[i[h>>2]+(e<<2)>>2]}e=d+(c>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<>>0)%3|0?-1:2)|0;if((b|0)!=-1){a=i[i[h>>2]+(b<<2)>>2]}b=1<>>3&536870908)|0;c=i[a>>2];break c}a=d+536870908|0;b=i[d+536870908>>2];c=-2147483648}i[a>>2]=b|c}}function ob(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=J-16|0;J=c;i[a+12>>2]=b;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;yb(a+16|0);ze(a+528|0);ve(a+544|0);ve(a+564|0);ve(a+584|0);i[a+612>>2]=0;i[a+604>>2]=0;i[a+608>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}f=b<<2;d=Dm(f);i[a+604>>2]=d;e=d+f|0;i[a+612>>2]=e;qn(d,0,f);i[a+608>>2]=e}i[a+616>>2]=0;i[a+620>>2]=0;i[a+624>>2]=0;if(b){f=b<<2;d=Dm(f);i[a+616>>2]=d;e=d+f|0;i[a+624>>2]=e;qn(d,0,f);i[a+620>>2]=e}i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;g=a+628|0;f=b<<5|1;if(b){d=b<<2;e=Dm(d);i[c>>2]=e;h=d+e|0;i[c+8>>2]=h;qn(e,0,d);i[c+4>>2]=h}tb(g,f,c);d=i[c>>2];if(d){i[c+4>>2]=d;nn(d)}i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;e=a+640|0;if(b){b=b<<2;d=Dm(b);i[c>>2]=d;g=b+d|0;i[c+8>>2]=g;qn(d,0,b);i[c+4>>2]=g}tb(e,f,c);b=i[c>>2];if(b){i[c+4>>2]=b;nn(b)}J=c+16|0;return a}Sm();x()}function xi(a,b,c,d,e){var f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0;h=J-16|0;J=h;a:{b:{switch(c+ -1|0){case 0:f=yi(a,b,d,e);break a;case 2:f=zi(a,b,d,e);break a;case 4:f=Ai(a,b,d,e);break a;case 1:f=Bi(a,b,d,e);break a;case 3:f=Ci(a,b,d,e);break a;case 5:f=Di(a,b,d,e);break a;case 8:break b;default:break a}}l=g[b+24|0];m=l<<2;a=i[a+80>>2];if((o(m,a)|0)!=(d|0)){break a}c=i[b+28>>2];d=i[3527];i[h+8>>2]=i[3526];i[h+12>>2]=d;d=i[3525];i[h>>2]=i[3524];i[h+4>>2]=d;c:{if(!a){break c}d=0;p=(c|0)!=9;k=1;while(1){c=j[b+84|0]?f:i[i[b+68>>2]+(f<<2)>>2];d:{if(!p){k=i[b+48>>2];q=i[i[b>>2]>>2];n=i[b+40>>2];c=Gn(n,i[b+44>>2],c,0)+k|0;pn(h,q+c|0,n);break d}if(!$c(b,c,g[b+24|0],h)){break c}}if((l|0)>=1){pn((d<<2)+e|0,h,m);d=d+l|0}f=f+1|0;k=f>>>0>>0;if((a|0)!=(f|0)){continue}break}}f=k^1}J=h+16|0;return f&1}function Db(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;d=J-32|0;J=d;i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;k=i[b+12>>2];f=k;h=i[b+20>>2];l=h;m=i[b+16>>2];e=m+4|0;if(e>>>0<4){h=h+1|0}o=i[b+8>>2];n=e;a:{if((f|0)<(h|0)?1:(f|0)<=(h|0)?o>>>0>>0:0){break a}f=i[b>>2];e=m+f|0;e=j[e|0]|j[e+1|0]<<8|(j[e+2|0]<<16|j[e+3|0]<<24);i[b+16>>2]=n;i[b+20>>2]=h;b:{c:{switch(e+ -2|0){case 1:if((k|0)<(h|0)?1:(k|0)<=(h|0)?o>>>0<=n>>>0:0){break a}f=g[f+n|0];e=m+5|0;if(e>>>0<5){l=l+1|0}i[b+16>>2]=e;i[b+20>>2]=l;i[a+8>>2]=f;if((f|0)==1){if(xl(a,b,d+16|0)){break b}break a}un(1824,23,i[3876]);break a;default:un(1848,24,i[3876]);break a;case 0:break c}}if(!xl(a,b,d+16|0)){break a}}i[d+8>>2]=i[d+16>>2];i[d>>2]=i[d+20>>2];Fb(d+8|0,d,a,c);p=1}a=i[d+16>>2];if(a){i[d+20>>2]=a;nn(a)}J=d+32|0;return p}function gb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=J-16|0;J=c;i[a+12>>2]=b;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;ve(a+16|0);ve(a+36|0);ve(a+56|0);ve(a+76|0);i[a+104>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}f=b<<2;d=Dm(f);i[a+96>>2]=d;e=d+f|0;i[a+104>>2]=e;qn(d,0,f);i[a+100>>2]=e}i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;if(b){f=b<<2;d=Dm(f);i[a+108>>2]=d;e=d+f|0;i[a+116>>2]=e;qn(d,0,f);i[a+112>>2]=e}i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;g=a+120|0;f=b<<5|1;if(b){d=b<<2;e=Dm(d);i[c>>2]=e;h=d+e|0;i[c+8>>2]=h;qn(e,0,d);i[c+4>>2]=h}tb(g,f,c);d=i[c>>2];if(d){i[c+4>>2]=d;nn(d)}i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;e=a+132|0;if(b){b=b<<2;d=Dm(b);i[c>>2]=d;g=b+d|0;i[c+8>>2]=g;qn(d,0,b);i[c+4>>2]=g}tb(e,f,c);b=i[c>>2];if(b){i[c+4>>2]=b;nn(b)}J=c+16|0;return a}Sm();x()}function kb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=J-16|0;J=c;i[a+12>>2]=b;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;ze(a+16|0);ve(a+32|0);ve(a+52|0);ve(a+72|0);i[a+100>>2]=0;i[a+92>>2]=0;i[a+96>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}f=b<<2;d=Dm(f);i[a+92>>2]=d;e=d+f|0;i[a+100>>2]=e;qn(d,0,f);i[a+96>>2]=e}i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;if(b){f=b<<2;d=Dm(f);i[a+104>>2]=d;e=d+f|0;i[a+112>>2]=e;qn(d,0,f);i[a+108>>2]=e}i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;g=a+116|0;f=b<<5|1;if(b){d=b<<2;e=Dm(d);i[c>>2]=e;h=d+e|0;i[c+8>>2]=h;qn(e,0,d);i[c+4>>2]=h}tb(g,f,c);d=i[c>>2];if(d){i[c+4>>2]=d;nn(d)}i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;e=a+128|0;if(b){b=b<<2;d=Dm(b);i[c>>2]=d;g=b+d|0;i[c+8>>2]=g;qn(d,0,b);i[c+4>>2]=g}tb(e,f,c);b=i[c>>2];if(b){i[c+4>>2]=b;nn(b)}J=c+16|0;return a}Sm();x()}function zi(a,b,c,d){var e=0,f=0,l=0,m=0,n=0,p=0,q=0,r=0;l=J-16|0;J=l;a:{p=i[a+80>>2];m=g[b+24|0];f=m<<1;e=0;b:{if((o(p,f)|0)!=(c|0)){break b}q=i[b+28>>2]!=3;if(!(q|!j[b+84|0])){pn(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[l+8>>2]=0;i[l>>2]=0;i[l+4>>2]=0;a=0;if(m){if((m|0)<=-1){break a}a=Dm(f);i[l>>2]=a;c=(m<<1)+a|0;i[l+8>>2]=c;qn(a,0,f);i[l+4>>2]=c}c:{if(!p){break c}c=0;n=1;f=0;while(1){e=j[b+84|0]?f:i[i[b+68>>2]+(f<<2)>>2];d:{if(!q){r=i[i[b>>2]>>2];n=i[b+40>>2];e=i[b+48>>2]+Gn(n,i[b+44>>2],e,0)|0;pn(a,r+e|0,n);break d}if(!qi(b,e,g[b+24|0],a)){break c}}e=0;if((m|0)>=1){while(1){h[(c<<1)+d>>1]=k[(e<<1)+a>>1];c=c+1|0;e=e+1|0;if((m|0)!=(e|0)){continue}break}}f=f+1|0;n=f>>>0

>>0;if((f|0)!=(p|0)){continue}break}}if(a){nn(a)}e=n^1}J=l+16|0;return e&1}Sm();x()}function Di(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;h=J-16|0;J=h;a:{m=i[a+80>>2];k=g[b+24|0];f=k<<2;e=0;b:{if((o(m,f)|0)!=(c|0)){break b}n=i[b+28>>2]!=6;if(!(n|!j[b+84|0])){pn(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;a=0;if(k){if((k|0)<=-1){break a}a=Dm(f);i[h>>2]=a;c=(k<<2)+a|0;i[h+8>>2]=c;qn(a,0,f);i[h+4>>2]=c}c:{if(!m){break c}c=0;l=1;f=0;while(1){e=j[b+84|0]?f:i[i[b+68>>2]+(f<<2)>>2];d:{if(!n){p=i[i[b>>2]>>2];l=i[b+40>>2];e=i[b+48>>2]+Gn(l,i[b+44>>2],e,0)|0;pn(a,p+e|0,l);break d}if(!wi(b,e,g[b+24|0],a)){break c}}e=0;if((k|0)>=1){while(1){i[(c<<2)+d>>2]=i[(e<<2)+a>>2];c=c+1|0;e=e+1|0;if((k|0)!=(e|0)){continue}break}}f=f+1|0;l=f>>>0>>0;if((f|0)!=(m|0)){continue}break}}if(a){nn(a)}e=l^1}J=h+16|0;return e&1}Sm();x()}function Ci(a,b,c,d){var e=0,f=0,l=0,m=0,n=0,p=0,q=0,r=0;l=J-16|0;J=l;a:{p=i[a+80>>2];m=g[b+24|0];f=m<<1;e=0;b:{if((o(p,f)|0)!=(c|0)){break b}q=i[b+28>>2]!=4;if(!(q|!j[b+84|0])){pn(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[l+8>>2]=0;i[l>>2]=0;i[l+4>>2]=0;a=0;if(m){if((m|0)<=-1){break a}a=Dm(f);i[l>>2]=a;c=(m<<1)+a|0;i[l+8>>2]=c;qn(a,0,f);i[l+4>>2]=c}c:{if(!p){break c}c=0;n=1;f=0;while(1){e=j[b+84|0]?f:i[i[b+68>>2]+(f<<2)>>2];d:{if(!q){r=i[i[b>>2]>>2];n=i[b+40>>2];e=i[b+48>>2]+Gn(n,i[b+44>>2],e,0)|0;pn(a,r+e|0,n);break d}if(!si(b,e,g[b+24|0],a)){break c}}e=0;if((m|0)>=1){while(1){h[(c<<1)+d>>1]=k[(e<<1)+a>>1];c=c+1|0;e=e+1|0;if((m|0)!=(e|0)){continue}break}}f=f+1|0;n=f>>>0

>>0;if((f|0)!=(p|0)){continue}break}}if(a){nn(a)}e=n^1}J=l+16|0;return e&1}Sm();x()}function Ai(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;h=J-16|0;J=h;a:{m=i[a+80>>2];k=g[b+24|0];f=k<<2;e=0;b:{if((o(m,f)|0)!=(c|0)){break b}n=i[b+28>>2]!=5;if(!(n|!j[b+84|0])){pn(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;a=0;if(k){if((k|0)<=-1){break a}a=Dm(f);i[h>>2]=a;c=(k<<2)+a|0;i[h+8>>2]=c;qn(a,0,f);i[h+4>>2]=c}c:{if(!m){break c}c=0;l=1;f=0;while(1){e=j[b+84|0]?f:i[i[b+68>>2]+(f<<2)>>2];d:{if(!n){p=i[i[b>>2]>>2];l=i[b+40>>2];e=i[b+48>>2]+Gn(l,i[b+44>>2],e,0)|0;pn(a,p+e|0,l);break d}if(!ui(b,e,g[b+24|0],a)){break c}}e=0;if((k|0)>=1){while(1){i[(c<<2)+d>>2]=i[(e<<2)+a>>2];c=c+1|0;e=e+1|0;if((k|0)!=(e|0)){continue}break}}f=f+1|0;l=f>>>0>>0;if((f|0)!=(m|0)){continue}break}}if(a){nn(a)}e=l^1}J=h+16|0;return e&1}Sm();x()}function lb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;e=i[b+12>>2];a:{f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){k=1;break a}i[a+8>>2]=0;if(!Ae(a+16|0,b)){break a}if(!xe(a+32|0,b)){break a}if(!xe(a+52|0,b)){break a}if(!xe(a+72|0,b)){break a}return wb(a,i[a+4>>2],c)}return k}function ib(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;e=i[b+12>>2];a:{f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){k=1;break a}i[a+8>>2]=0;if(!Ae(a+16|0,b)){break a}if(!xe(a+32|0,b)){break a}if(!xe(a+52|0,b)){break a}if(!xe(a+72|0,b)){break a}return vb(a,i[a+4>>2],c)}return k}function hb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;e=i[b+12>>2];a:{f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){k=1;break a}i[a+8>>2]=0;if(!xe(a+16|0,b)){break a}if(!xe(a+36|0,b)){break a}if(!xe(a+56|0,b)){break a}if(!xe(a+76|0,b)){break a}return ub(a,i[a+4>>2],c)}return k}function eb(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;e=i[b+12>>2];a:{f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){k=1;break a}i[a+8>>2]=0;if(!xe(a+16|0,b)){break a}if(!xe(a+36|0,b)){break a}if(!xe(a+56|0,b)){break a}if(!xe(a+76|0,b)){break a}return sb(a,i[a+4>>2],c)}return k}function xe(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;i[a+16>>2]=0;c=i[a>>2];i[a+4>>2]=c;i[a+12>>2]=c;h=i[b+12>>2];c=h;e=i[b+20>>2];d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}k=i[b+8>>2];g=f;f=e;a:{if((c|0)<(e|0)?1:(c|0)<=(e|0)?k>>>0>>0:0){break a}c=d+i[b>>2]|0;e=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=g;i[b+20>>2]=f;if(!e|e&3){break a}d=k;c=e;l=d-g>>>0>>0;d=h-(f+(d>>>0>>0)|0)|0;if((d|0)<0?1:(d|0)<=0?l:0){break a}d=e>>>2|0;if(d){ye(a,d);k=i[b+8>>2];h=i[b+12>>2];g=i[b+16>>2];f=i[b+20>>2]}d=c+g|0;if(d>>>0>>0){f=f+1|0}if((h|0)<(f|0)?1:(h|0)<=(f|0)?k>>>0>>0:0){break a}pn(i[a>>2],g+i[b>>2]|0,e);f=b;d=b;e=i[b+20>>2];b=c+i[b+16>>2]|0;if(b>>>0>>0){e=e+1|0}i[d+16>>2]=b;i[f+20>>2]=e;i[a+16>>2]=0;i[a+12>>2]=i[a>>2];m=1}return m}function dg(a){i[a>>2]=11520;qn(a+4|0,0,80);i[a+96>>2]=0;i[a+100>>2]=0;i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+148>>2]=0;i[a+156>>2]=0;i[a+160>>2]=0;i[a+152>>2]=1065353216;i[a+164>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;i[a+196>>2]=0;i[a+200>>2]=0;i[a+204>>2]=0;i[a+208>>2]=0;i[a+212>>2]=-1;i[a+216>>2]=0;i[a+220>>2]=0;i[a+224>>2]=0;zh(a+232|0);zh(a+272|0);ze(a+312|0);zh(a+328|0);i[a+392>>2]=0;i[a+396>>2]=0;i[a+384>>2]=0;i[a+388>>2]=0;i[a+376>>2]=0;i[a+380>>2]=0;i[a+368>>2]=0;i[a+372>>2]=0;ze(a+400|0);i[a+416>>2]=-1;i[a+420>>2]=-1}function Jd(a){var b=0,c=0,d=0;b=i[a+8>>2];d=i[a>>2];a:{if(j[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;if((b|0)==-1){break e}b=i[i[d+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}i[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;i[a+8>>2]=b;if((b|0)!=-1){break b}}c=i[a+4>>2];b=-1;f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;b=-1;if((c|0)==-1){break f}c=i[i[d+12>>2]+(c<<2)>>2];b=-1;if((c|0)==-1){break f}b=c+ -1|0;if((c>>>0)%3|0){break f}b=c+2|0}g[a+12|0]=0;i[a+8>>2]=b;return}if((b|0)!=i[a+4>>2]){break a}i[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;c=-1;if((b|0)==-1){break g}b=i[i[d+12>>2]+(b<<2)>>2];c=-1;if((b|0)==-1){break g}c=b+ -1|0;if((b>>>0)%3|0){break g}c=b+2|0}i[a+8>>2]=c}}function rn(a,b,c){var d=0;a:{if((a|0)==(b|0)){break a}if((b-a|0)-c>>>0<=0-(c<<1)>>>0){return pn(a,b,c)}d=(a^b)&3;b:{c:{if(a>>>0>>0){if(d){d=a;break b}if(!(a&3)){d=a;break c}d=a;while(1){if(!c){break a}g[d|0]=j[b|0];b=b+1|0;c=c+ -1|0;d=d+1|0;if(d&3){continue}break}break c}d:{if(d){break d}if(a+c&3){while(1){if(!c){break a}c=c+ -1|0;d=c+a|0;g[d|0]=j[b+c|0];if(d&3){continue}break}}if(c>>>0<=3){break d}while(1){c=c+ -4|0;i[c+a>>2]=i[b+c>>2];if(c>>>0>3){continue}break}}if(!c){break a}while(1){c=c+ -1|0;g[c+a|0]=j[b+c|0];if(c){continue}break}break a}if(c>>>0<=3){break b}while(1){i[d>>2]=i[b>>2];b=b+4|0;d=d+4|0;c=c+ -4|0;if(c>>>0>3){continue}break}}if(!c){break a}while(1){g[d|0]=j[b|0];d=d+1|0;b=b+1|0;c=c+ -1|0;if(c){continue}break}}return a}function ng(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=i[a+172>>2];if((b|0)!=-1){c=i[a+196>>2]+(b<<2)|0;d=i[c>>2];b=d+ -1|0;i[c>>2]=b;if((d|0)<1){return 9}c=a;a=i[(i[i[i[a+184>>2]+o(i[a+172>>2],12)>>2]+(b<<2)>>2]<<2)+12288>>2];i[c+168>>2]=a;return a}b=7;c=i[a+144>>2];c=k[(M[i[i[c>>2]+32>>2]](c)|0)+36>>1];a:{if((c<<24|c<<8&16711680)>>>16>>>0>513){break a}if(!j[a+76|0]){i[a+168>>2]=1;return 1}b=0;f=i[a- -64>>2];d=i[a+72>>2];c=f+(d>>>3|0)|0;g=i[a+68>>2];if(c>>>0>=g>>>0){break a}e=j[c|0];c=d+1|0;i[a+72>>2]=c;if(!(e>>>(d&7)&1)){break a}e=c>>>3|0;b=f+e|0;b:{if(b>>>0>=g>>>0){b=c;c=0;break b}h=j[b|0];b=d+2|0;i[a+72>>2]=b;e=b>>>3|0;c=h>>>(c&7)&1}d=e+f|0;if(d>>>0>>0){d=j[d|0];i[a+72>>2]=b+1;b=d>>>(b&7)<<1&2}else{b=0}b=(c|b)<<1|1}i[a+168>>2]=b;return b}function zl(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=i[b+12>>2];f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){break a}i[a+8>>2]=0;if(!xe(a+16|0,b)){break a}if(!xe(a+36|0,b)){break a}if(!xe(a+56|0,b)){break a}if(!xe(a+76|0,b)){break a}Gl(a,i[a+4>>2],c)}}function yl(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=i[b+12>>2];f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){break a}i[a+8>>2]=0;if(!xe(a+16|0,b)){break a}if(!xe(a+36|0,b)){break a}if(!xe(a+56|0,b)){break a}if(!xe(a+76|0,b)){break a}Fl(a,i[a+4>>2],c)}}function Th(a,b){var c=0,d=0,e=0,f=0,h=0;a:{b:{c:{e=i[a>>2];h=(i[a+4>>2]-e|0)/12|0;c=h+1|0;if(c>>>0<357913942){e=(i[a+8>>2]-e|0)/12|0;f=e<<1;c=e>>>0<178956970?f>>>0>>0?c:f:357913941;d=0;d:{if(!c){break d}if(c>>>0>=357913942){break c}d=Dm(o(c,12))}e=d+o(c,12)|0;d=Gm(d+o(h,12)|0,b);h=d+12|0;b=i[a+4>>2];c=i[a>>2];if((b|0)==(c|0)){break b}while(1){b=b+ -12|0;f=i[b+4>>2];d=d+ -12|0;i[d>>2]=i[b>>2];i[d+4>>2]=f;f=b+8|0;i[d+8>>2]=i[f>>2];i[b>>2]=0;i[b+4>>2]=0;i[f>>2]=0;if((b|0)!=(c|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=h;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){a=b+ -12|0;if(g[b+ -1|0]<=-1){nn(i[a>>2])}b=a;if((a|0)!=(c|0)){continue}break}break a}Sm();x()}Ba(14112);x()}i[a+8>>2]=e;i[a+4>>2]=h;i[a>>2]=d}if(c){nn(c)}}function Sh(a,b,c){var d=0,e=0,f=0,h=0,j=0;a:{if(i[a+12>>2]==(b|0)){break a}d=i[a>>2];e=i[a+4>>2];if((d|0)!=(e|0)){while(1){f=e+ -12|0;if(g[e+ -1|0]<=-1){nn(i[f>>2])}e=f;if((e|0)!=(d|0)){continue}break}}i[a+12>>2]=b;i[a+4>>2]=d;e=i[b>>2];f=b+4|0;if((e|0)==(f|0)){break a}while(1){b=e+16|0;b:{if(i[a+8>>2]!=(d|0)){h=a,j=Gm(d,b)+12|0,i[h+4>>2]=j;break b}Th(a,b)}d=i[e+4>>2];c:{if(!d){b=i[e+8>>2];if(i[b>>2]==(e|0)){break c}e=e+8|0;while(1){d=i[e>>2];e=d+8|0;b=i[d+8>>2];if((d|0)!=i[b>>2]){continue}break}break c}while(1){b=d;d=i[d>>2];if(d){continue}break}}if((b|0)==(f|0)){break a}d=i[a+4>>2];e=b;continue}}d=0;d:{if((c|0)<0){break d}b=i[a+4>>2];a=i[a>>2];if((b-a|0)/12>>>0<=c>>>0){break d}d=a+o(c,12)|0;if(g[d+11|0]>-1){break d}d=i[d>>2]}return d}function Bl(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=i[b+12>>2];f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){break a}i[a+8>>2]=0;if(!Ae(a+16|0,b)){break a}if(!xe(a+32|0,b)){break a}if(!xe(a+52|0,b)){break a}if(!xe(a+72|0,b)){break a}Il(a,i[a+4>>2],c)}}function Al(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=i[b+12>>2];f=i[b+20>>2];g=i[b+16>>2];d=g+4|0;if(d>>>0<4){f=f+1|0}if((e|0)<(f|0)?1:(e|0)<=(f|0)?l[b+8>>2]>>0:0){break a}d=g+i[b>>2]|0;h=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a>>2]=h;e=i[b+20>>2];g=e;d=i[b+16>>2];f=d+4|0;if(f>>>0<4){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if(h>>>0>32){break a}e=i[b+12>>2];d=d+8|0;if(d>>>0<8){g=g+1|0}if((e|0)<(g|0)?1:(e|0)<=(g|0)?l[b+8>>2]>>0:0){break a}d=f+i[b>>2]|0;e=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);i[a+4>>2]=e;f=i[b+20>>2];g=i[b+16>>2]+4|0;if(g>>>0<4){f=f+1|0}i[b+16>>2]=g;i[b+20>>2]=f;if(!e){break a}i[a+8>>2]=0;if(!Ae(a+16|0,b)){break a}if(!xe(a+32|0,b)){break a}if(!xe(a+52|0,b)){break a}if(!xe(a+72|0,b)){break a}Hl(a,i[a+4>>2],c)}}function _k(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;d=J-16|0;J=d;g=i[a+24>>2];n=i[a+28>>2];a:{if((g|0)!=(n|0)){p=d+8|0;while(1){i[p>>2]=0;i[d>>2]=0;i[d+4>>2]=0;e=gl(i[g>>2],b,d);a=j[d+11|0];l=a<<24>>24;m=3;b:{c:{d:{if(!e){break d}m=0;e=j[c+11|0];f=e<<24>>24;k=(l|0)<0?i[d+4>>2]:a;if((k|0)!=(((f|0)<0?i[c+4>>2]:e)|0)){break d}h=(f|0)<0?i[c>>2]:c;f=i[d>>2];e=(l|0)<0;e:{if(!e){if(!k){break e}e=d;if(j[h|0]!=(f&255)){break d}while(1){a=a+ -1|0;if(!a){break e}f=j[h+1|0];h=h+1|0;e=e+1|0;if((f|0)==j[e|0]){continue}break}break d}if(!k){break e}if(Nl(e?f:d,h,k)){break c}}o=i[g>>2];m=1}if((l|0)>-1){break b}}nn(i[d>>2])}f:{switch(m|0){case 0:case 3:break f;default:break a}}g=g+4|0;if((n|0)!=(g|0)){continue}break}}o=0}J=d+16|0;return o}function yi(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;e=J-16|0;J=e;a:{m=i[a+80>>2];f=g[b+24|0];k=0;b:{if((o(m,f)|0)!=(c|0)){break b}k=i[b+28>>2]!=1;if(!(k|!j[b+84|0])){pn(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);k=1;break b}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(f){if((f|0)<=-1){break a}h=Dm(f);i[e>>2]=h;a=f+h|0;i[e+8>>2]=a;qn(h,0,f);i[e+4>>2]=a}c:{if(!m){break c}c=0;l=1;while(1){a=n;a=j[b+84|0]?a:i[i[b+68>>2]+(a<<2)>>2];d:{if(!k){p=i[i[b>>2]>>2];l=i[b+40>>2];a=i[b+48>>2]+Gn(l,i[b+44>>2],a,0)|0;pn(h,p+a|0,l);break d}if(!li(b,a,g[b+24|0],h)){break c}}a=0;if((f|0)>=1){while(1){g[c+d|0]=j[a+h|0];c=c+1|0;a=a+1|0;if((f|0)!=(a|0)){continue}break}}n=n+1|0;l=n>>>0>>0;if((n|0)!=(m|0)){continue}break}}if(h){nn(h)}k=l^1}J=e+16|0;return k&1}Sm();x()}function Bi(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;e=J-16|0;J=e;a:{m=i[a+80>>2];f=g[b+24|0];k=0;b:{if((o(m,f)|0)!=(c|0)){break b}k=i[b+28>>2]!=2;if(!(k|!j[b+84|0])){pn(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);k=1;break b}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(f){if((f|0)<=-1){break a}h=Dm(f);i[e>>2]=h;a=f+h|0;i[e+8>>2]=a;qn(h,0,f);i[e+4>>2]=a}c:{if(!m){break c}c=0;l=1;while(1){a=n;a=j[b+84|0]?a:i[i[b+68>>2]+(a<<2)>>2];d:{if(!k){p=i[i[b>>2]>>2];l=i[b+40>>2];a=i[b+48>>2]+Gn(l,i[b+44>>2],a,0)|0;pn(h,p+a|0,l);break d}if(!ni(b,a,g[b+24|0],h)){break c}}a=0;if((f|0)>=1){while(1){g[c+d|0]=j[a+h|0];c=c+1|0;a=a+1|0;if((f|0)!=(a|0)){continue}break}}n=n+1|0;l=n>>>0>>0;if((n|0)!=(m|0)){continue}break}}if(h){nn(h)}k=l^1}J=e+16|0;return k&1}Sm();x()}function Fc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;d=i[b+12>>2];k=d;c=i[b+20>>2];f=c;g=i[b+16>>2];e=g+4|0;if(e>>>0<4){c=c+1|0}l=i[b+8>>2];h=e;e=c;a:{if((d|0)<(c|0)?1:(d|0)<=(c|0)?l>>>0>>0:0){break a}m=i[b>>2];c=m+g|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=e;c=f;f=g+8|0;if(f>>>0<8){c=c+1|0}e=f;f=c;if((k|0)<(c|0)?1:(k|0)<=(c|0)?l>>>0>>0:0){break a}c=h+m|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=e;i[b+20>>2]=f;if((d|0)>(c|0)){break a}i[a+16>>2]=c;i[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break a}n=1;b=b+1|0;i[a+20>>2]=b;c=(b|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(b&1){break a}i[a+24>>2]=c+ -1}return n|0}function Kf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=qn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{b:{c:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){d=d-g|0;h=d>>1;e=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(e){if(e>>>0>=1073741824){break c}j=Dm(e<<2)}d=(f<<2)+j|0;f=b<<2;b=qn(d,0,f);f=b+f|0;e=(e<<2)+j|0;if((c|0)==(g|0)){break b}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;d=d+ -4|0;i[d>>2]=b;if((c|0)!=(g|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){M[i[i[a>>2]+4>>2]](a)}if((b|0)!=(c|0)){continue}break}break a}Sm();x()}Ba(12220);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){nn(c)}}function bc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=qn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{b:{c:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){d=d-g|0;h=d>>1;e=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(e){if(e>>>0>=1073741824){break c}j=Dm(e<<2)}d=(f<<2)+j|0;f=b<<2;b=qn(d,0,f);f=b+f|0;e=(e<<2)+j|0;if((c|0)==(g|0)){break b}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;d=d+ -4|0;i[d>>2]=b;if((c|0)!=(g|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){M[i[i[a>>2]+4>>2]](a)}if((b|0)!=(c|0)){continue}break}break a}Sm();x()}Ba(2188);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){nn(c)}}function bg(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=i[a+8>>2];d=i[a+4>>2];if((e-d|0)/12>>>0>=b>>>0){f=a;if(b){a=o(b,12)+d|0;while(1){b=i[c+4>>2];i[d>>2]=i[c>>2];i[d+4>>2]=b;i[d+8>>2]=i[c+8>>2];d=d+12|0;if((a|0)!=(d|0)){continue}break}d=a}i[f+4>>2]=d;return}a:{g=i[a>>2];j=d-g|0;h=(j|0)/12|0;f=h+b|0;if(f>>>0<357913942){d=o(b,12);e=(e-g|0)/12|0;k=e<<1;e=e>>>0<178956970?k>>>0>>0?f:k:357913941;f=0;b:{if(!e){break b}if(e>>>0>=357913942){break a}f=Dm(o(e,12))}b=f+o(h,12)|0;h=d+b|0;d=b;while(1){k=i[c+4>>2];i[d>>2]=i[c>>2];i[d+4>>2]=k;i[d+8>>2]=i[c+8>>2];d=d+12|0;if((h|0)!=(d|0)){continue}break}c=f+o(e,12)|0;b=b+o((j|0)/-12|0,12)|0;if((j|0)>=1){pn(b,g,j)}i[a+8>>2]=c;i[a+4>>2]=h;i[a>>2]=b;if(g){nn(g)}return}Sm();x()}Ba(12220);x()}function qa(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,n=0,o=0,r=0,s=0,t=0,v=0,w=p(0),x=0,y=p(0),z=0,A=0,B=0,C=0,D=0;n=J-16|0;J=n;h=i[a+4>>2];o=i[d+48>>2];d=i[i[d>>2]>>2];f=g[b+24|0];k=Kh(n+8|0);Lh(k,m[a+20>>2],-1<>2];z=i[b>>2];o=i[b+48>>2];A=i[b+68>>2];k=i[b+44>>2];v=i[b+40>>2];B=v;d=0;C=j[b+84|0];D=(f|0)<1;while(1){b=l;e=h;r=i[z>>2];s=v;t=k;if(!C){b=i[(l<<2)+A>>2]}b=Gn(s,t,b,0)+o|0;s=pn(e,b+r|0,B);if(!D){t=i[a+8>>2];b=0;while(1){r=(d<<2)+x|0;e=b<<2;w=p(u(p(p(y*p(m[e+s>>2]-m[e+t>>2]))+p(.5))));a:{if(p(q(w))>2]=e;d=d+1|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}l=l+1|0;if((l|0)!=(c|0)){continue}break}}nn(h);J=n+16|0}function Yb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0;g=i[b>>2];h=i[b+4>>2];p=i[i[a+8>>2]+40>>2];j=p;q=Dm((j|0)>-1?j:-1);k=1;m=h-g|0;a:{if((m|0)<1){break a}b=0;n=i[c+12>>2];k=0;d=0+i[c+20>>2]|0;o=i[c+16>>2];e=p;f=o+e|0;if(f>>>0>>0){d=d+1|0}e=f;f=d;if((n|0)<(d|0)?1:(n|0)<=(d|0)?l[c+8>>2]>>0:0){break a}k=m>>2;d=g-h|0;d=((d|0)>(m|0)?d:m)>>>2|0;n=d>>>0>1?d:1;g=0;while(1){b:{d=pn(q,o+i[c>>2]|0,j);i[c+16>>2]=e;i[c+20>>2]=f;pn(i[i[i[a+8>>2]+64>>2]>>2]+b|0,d,j);g=g+1|0;if((n|0)==(g|0)){break b}b=b+j|0;h=i[c+12>>2];d=r+i[c+20>>2]|0;o=i[c+16>>2];f=p;e=o+f|0;if(e>>>0>>0){d=d+1|0}f=d;if((h|0)>(d|0)?1:(h|0)>=(d|0)?l[c+8>>2]>=e>>>0:0){continue}}break}k=(g|0)>=(k|0)}nn(q);return k|0}function Rc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;e=J-32|0;J=e;h=i[c>>2];g=i[b>>2];j=i[c+4>>2];c=i[b+4>>2];b=(h-g<<3)+(j-c|0)|0;d=i[a+4>>2];f=b+d|0;i[a+4>>2]=f;a:{if(!(!d|(f+ -1^d+ -1)>>>0>31)){a=i[a>>2];break a}a=i[a>>2];if(f>>>0<=32){i[a>>2]=0;break a}i[(f+ -1>>>3&536870908)+a>>2]=0}a=(d>>>3&536870908)+a|0;d=d&31;b:{if((d|0)==(c|0)){if((b|0)<1){break b}if(c){f=32-c|0;d=(b|0)<(f|0)?b:f;f=-1<>>f-d;i[a>>2]=i[a>>2]&(f^-1)|f&i[g>>2];b=b-d|0;g=g+4|0;a=a+(c+d>>>3&536870908)|0}d=a;c=(b|0)/32|0;a=c<<2;d=rn(d,g,a);b=b-(c<<5)|0;if((b|0)<1){break b}c=a+d|0;b=-1>>>32-b|0;i[c>>2]=i[c>>2]&(b^-1)|b&i[a+g>>2];break b}i[e+28>>2]=c;i[e+24>>2]=g;i[e+20>>2]=j;i[e+16>>2]=h;i[e+12>>2]=d;i[e+8>>2]=a;Sc(e,e+24|0,e+16|0,e+8|0)}J=e+32|0}function qn(a,b,c){var d=0,e=0,f=0,h=0;a:{if(!c){break a}d=a+c|0;g[d+ -1|0]=b;g[a|0]=b;if(c>>>0<3){break a}g[d+ -2|0]=b;g[a+1|0]=b;g[d+ -3|0]=b;g[a+2|0]=b;if(c>>>0<7){break a}g[d+ -4|0]=b;g[a+3|0]=b;if(c>>>0<9){break a}d=0-a&3;e=d+a|0;b=o(b&255,16843009);i[e>>2]=b;c=c-d&-4;d=c+e|0;i[d+ -4>>2]=b;if(c>>>0<9){break a}i[e+8>>2]=b;i[e+4>>2]=b;i[d+ -8>>2]=b;i[d+ -12>>2]=b;if(c>>>0<25){break a}i[e+24>>2]=b;i[e+20>>2]=b;i[e+16>>2]=b;i[e+12>>2]=b;i[d+ -16>>2]=b;i[d+ -20>>2]=b;i[d+ -24>>2]=b;i[d+ -28>>2]=b;h=e&4|24;c=c-h|0;if(c>>>0<32){break a}d=b;f=b;b=e+h|0;while(1){i[b+24>>2]=f;i[b+28>>2]=d;i[b+16>>2]=f;i[b+20>>2]=d;i[b+8>>2]=f;i[b+12>>2]=d;i[b>>2]=f;i[b+4>>2]=d;b=b+32|0;c=c+ -32|0;if(c>>>0>31){continue}break}}return a}function rl(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=qn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{b:{c:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){d=d-g|0;h=d>>1;e=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(e){if(e>>>0>=1073741824){break c}j=Dm(e<<2)}d=(f<<2)+j|0;f=b<<2;b=qn(d,0,f);f=b+f|0;e=(e<<2)+j|0;if((c|0)==(g|0)){break b}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;d=d+ -4|0;i[d>>2]=b;if((c|0)!=(g|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){Sa(a)}if((b|0)!=(c|0)){continue}break}break a}Sm();x()}Ba(14808);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){nn(c)}}function cm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=J-32|0;J=d;e=i[a+28>>2];i[d+16>>2]=e;f=i[a+20>>2];i[d+28>>2]=c;i[d+24>>2]=b;b=f-e|0;i[d+20>>2]=b;e=b+c|0;k=2;b=d+16|0;a:{b:{c:{if(!em(D(i[a+60>>2],d+16|0,2,d+12|0)|0)){while(1){f=i[d+12>>2];if((f|0)==(e|0)){break c}if((f|0)<=-1){break b}g=i[b+4>>2];h=f>>>0>g>>>0;j=(h<<3)+b|0;g=f-(h?g:0)|0;i[j>>2]=g+i[j>>2];j=(h?12:4)+b|0;i[j>>2]=i[j>>2]-g;e=e-f|0;b=h?b+8|0:b;k=k-h|0;if(!em(D(i[a+60>>2],b|0,k|0,d+12|0)|0)){continue}break}}if((e|0)!=-1){break b}}b=i[a+44>>2];i[a+28>>2]=b;i[a+20>>2]=b;i[a+16>>2]=b+i[a+48>>2];a=c;break a}i[a+28>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a>>2]=i[a>>2]|32;a=0;if((k|0)==2){break a}a=c-i[b+4>>2]|0}J=d+32|0;return a|0}function Vk(a,b){var c=0,d=0,e=0,f=0,g=0;d=-1;f=-1;e=-1;a:{b:{if((b|0)==-1){break b}g=1;f=i[i[i[a+4>>2]+12>>2]+(b<<2)>>2];c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)>=0){e=(c>>>0)/3|0;e=i[(i[i[a>>2]+96>>2]+o(e,12)|0)+(c-o(e,3)<<2)>>2]}c:{if((f|0)==-1){break c}g=0;c=((f>>>0)%3|0?-1:2)+f|0;if((c|0)<0){break c}d=(c>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(c-o(d,3)<<2)>>2]}c=-1;if((d|0)!=(e|0)){break a}e=-1;d:{b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)>=0){d=(b>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(b-o(d,3)<<2)>>2];if(g){break b}break d}d=-1;if(!g){break d}break b}b=f+1|0;b=(b>>>0)%3|0?b:f+ -2|0;if((b|0)<0){break b}c=i[i[a>>2]+96>>2];a=(b>>>0)/3|0;e=i[(c+o(a,12)|0)+(b-o(a,3)<<2)>>2]}c=(d|0)==(e|0)?f:-1}return c}function Wg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+56>>2]-i[c+52>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];g=c<<2;c=Dm(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){pn(c,d,e)}i[b+8>>2]=g;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}nn(d)}e=a+8|0;b=i[a+76>>2];c:{if(b){c=i[b>>2];if((c|0)==i[b+4>>2]){return 1}b=0;while(1){d=Xg(e,i[(b<<2)+c>>2]);if(!d){break c}f=i[a+76>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break c}d=1;a=i[i[a+12>>2]+64>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break c}b=0;while(1){d=Xg(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break c}if(d){continue}break}}return d|0}Ba(12220);x()}function al(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=Dm(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;d=i[a+4>>2];c=i[a>>2];if((d|0)==(c|0)){break b}while(1){d=d+ -4|0;g=i[d>>2];i[d>>2]=0;b=b+ -4|0;i[b>>2]=g;if((d|0)!=(c|0)){continue}break}i[a+8>>2]=e;d=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=b;if((d|0)==(c|0)){break a}while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){qh(a+12|0,i[a+16>>2]);rh(a,i[a+4>>2]);nn(a)}if((d|0)!=(c|0)){continue}break}break a}Sm();x()}Ba(14684);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){nn(c)}}function Qg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+28>>2]-i[c+24>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];g=c<<2;c=Dm(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){pn(c,d,e)}i[b+8>>2]=g;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}nn(d)}e=a+8|0;b=i[a+76>>2];c:{if(b){c=i[b>>2];if((c|0)==i[b+4>>2]){return 1}b=0;while(1){d=Rg(e,i[(b<<2)+c>>2]);if(!d){break c}f=i[a+76>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break c}d=1;a=i[a+12>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break c}b=0;while(1){d=Rg(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break c}if(d){continue}break}}return d|0}Ba(12220);x()}function Xl(a,b,c){a:{if(b>>>0>20){break a}b:{switch(b+ -9|0){case 0:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=i[b>>2];return;case 1:b=i[c>>2];i[c>>2]=b+4;b=i[b>>2];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 2:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=i[b>>2];i[a+4>>2]=0;return;case 3:b=i[c>>2]+7&-8;i[c>>2]=b+8;c=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=c;return;case 4:b=i[c>>2];i[c>>2]=b+4;b=h[b>>1];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 5:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=k[b>>1];i[a+4>>2]=0;return;case 6:b=i[c>>2];i[c>>2]=b+4;b=g[b|0];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 7:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=j[b|0];i[a+4>>2]=0;return;case 8:b=i[c>>2]+7&-8;i[c>>2]=b+8;n[a>>3]=n[b>>3];return;case 9:break b;default:break a}}M[0](a,c)}}function Ib(a,b,c){var d=0,e=0,f=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;f=J-16|0;J=f;d=g[b+24|0];i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;a:{b:{if(d){if((d|0)<=-1){break b}e=d<<1;m=Dm(e);i[f>>2]=m;n=e+m|0;i[f+8>>2]=n;qn(m,0,e);i[f+4>>2]=n;p=Dm(e);qn(p,0,e)}if(!i[b+80>>2]){break a}while(1){v=i[b>>2];q=i[v>>2];t=i[b+48>>2];e=i[b+40>>2];n=Gn(e,i[b+44>>2],u,r);s=q;q=n+t|0;n=pn(m,s+q|0,e);if(d<<24>>24>=1){d=d&255;q=d>>>0>1?d:1;t=i[a+48>>2];d=0;while(1){s=d<<1;h[s+p>>1]=k[n+s>>1]+k[(c+d<<2)+t>>1];d=d+1|0;if((q|0)!=(d|0)){continue}break}}pn(i[v>>2]+o(e,u)|0,p,e);e=u+1|0;if(e>>>0<1){r=r+1|0}u=e;if(!r&e>>>0>=l[b+80>>2]|r>>>0>0){break a}d=j[b+24|0];continue}}Sm();x()}if(p){nn(p)}if(m){nn(m)}J=f+16|0;return 1}function Hb(a,b,c){var d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;f=J-16|0;J=f;d=g[b+24|0];i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;a:{b:{if(d){if((d|0)<=-1){break b}e=d<<2;h=Dm(e);i[f>>2]=h;k=e+h|0;i[f+8>>2]=k;qn(h,0,e);i[f+4>>2]=k;m=Dm(e);qn(m,0,e)}if(!i[b+80>>2]){break a}while(1){t=i[b>>2];n=i[t>>2];r=i[b+48>>2];e=i[b+40>>2];k=Gn(e,i[b+44>>2],s,p);q=n;n=k+r|0;k=pn(h,q+n|0,e);if(d<<24>>24>=1){d=d&255;n=d>>>0>1?d:1;r=i[a+48>>2];d=0;while(1){q=d<<2;i[q+m>>2]=i[(c+d<<2)+r>>2]+i[k+q>>2];d=d+1|0;if((n|0)!=(d|0)){continue}break}}pn(i[t>>2]+o(e,s)|0,m,e);e=s+1|0;if(e>>>0<1){p=p+1|0}s=e;if(!p&e>>>0>=l[b+80>>2]|p>>>0>0){break a}d=j[b+24|0];continue}}Sm();x()}if(m){nn(m)}if(h){nn(h)}J=f+16|0;return 1}function Hk(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=i[a+8>>2];e=i[a>>2];if(d-e>>2>>>0>=b>>>0){f=i[a+4>>2];g=f-e>>2;h=g>>>0>>0?g:b;if(h){d=e;while(1){i[d>>2]=i[c>>2];d=d+4|0;h=h+ -1|0;if(h){continue}break}}if(g>>>0>>0){d=a;a=b-g|0;if(a){a=(a<<2)+f|0;while(1){i[f>>2]=i[c>>2];f=f+4|0;if((a|0)!=(f|0)){continue}break}}else{a=f}i[d+4>>2]=a;return}i[a+4>>2]=(b<<2)+e;return}if(e){i[a+4>>2]=e;nn(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(b>>>0>=1073741824){break a}e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?b:e:1073741823;if(d>>>0>=1073741824){break a}e=d<<2;d=Dm(e);i[a>>2]=d;i[a+8>>2]=d+e;b=(b<<2)+d|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}i[a+4>>2]=b;return}Sm();x()}function Ml(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;b=i[b>>2];g=i[b+8>>2];h=i[b+4>>2];j=i[b>>2];e=i[a>>2];b=i[e+4>>2];c=i[e+8>>2];if(b>>>0>>0){i[b+8>>2]=g;i[b+4>>2]=h;i[b>>2]=j;i[e+4>>2]=b+12;return}a:{f=i[e>>2];d=(b-f|0)/12|0;a=d+1|0;if(a>>>0<357913942){k=o(d,12);c=(c-f|0)/12|0;d=c<<1;c=c>>>0<178956970?d>>>0>>0?a:d:357913941;d=0;b:{if(!c){break b}if(c>>>0>=357913942){break a}d=Dm(o(c,12))}a=k+d|0;i[a+8>>2]=g;i[a+4>>2]=h;i[a>>2]=j;d=d+o(c,12)|0;c=a+12|0;if((b|0)!=(f|0)){while(1){a=a+ -12|0;b=b+ -12|0;i[a>>2]=i[b>>2];i[a+4>>2]=i[b+4>>2];i[a+8>>2]=i[b+8>>2];if((b|0)!=(f|0)){continue}break}}i[e+8>>2]=d;i[e+4>>2]=c;i[e>>2]=a;if(f){nn(f)}return}Sm();x()}Ba(14937);x()}function uf(a){a=a|0;var b=0,c=0,d=0,e=0;b=i[a+32>>2];d=i[b+16>>2];e=i[b+12>>2];c=i[b+20>>2];if((e|0)>(c|0)?1:(e|0)>=(c|0)?l[b+8>>2]>d>>>0:0){e=j[d+i[b>>2]|0];d=d+1|0;if(d>>>0<1){c=c+1|0}i[b+16>>2]=d;i[b+20>>2]=c;b=i[a+48>>2];i[a+48>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}a:{b:{c:{switch(e|0){case 0:c=Dm(384);Cf(c);b=i[a+48>>2];i[a+48>>2]=c;if(!b){break a}M[i[i[b>>2]+4>>2]](b);break b;case 1:c=Dm(424);dg(c);b=i[a+48>>2];i[a+48>>2]=c;if(!b){break a}M[i[i[b>>2]+4>>2]](b);break b;case 2:break c;default:break b}}c=Dm(440);ig(c);b=i[a+48>>2];i[a+48>>2]=c;if(!b){break a}M[i[i[b>>2]+4>>2]](b)}c=i[a+48>>2];if(c){break a}return 0}a=M[i[i[c>>2]+8>>2]](c,a)|0}else{a=0}return a|0}function pc(a,b,c,d,e){var f=0,g=0,h=0,j=0;if((b|0)==-2){i[a>>2]=0;return}f=i[i[i[d+4>>2]+8>>2]+(c<<2)>>2];a:{b:{if((M[i[i[d>>2]+8>>2]](d)|0)==1){g=b;b=k[d+36>>1];wc(a,d,g,c,e,(b<<24|b<<8&16711680)>>>16|0);if(i[a>>2]){break b}i[a>>2]=0}b=Dm(44);i[b+4>>2]=f;i[b>>2]=3088;c=i[e+8>>2];d=i[e+12>>2];f=i[e+16>>2];g=i[e+20>>2];h=i[e>>2];j=i[e+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=f;i[b+28>>2]=g;i[b+16>>2]=c;i[b+20>>2]=d;i[b+8>>2]=h;i[b+12>>2]=j;f=i[e+24>>2];e=i[e+28>>2]-f|0;if(e){d=e>>2;if(d>>>0>=1073741824){break a}c=Dm(e);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((e|0)>=1){c=pn(c,f,e)+e|0}i[d+36>>2]=c}i[b>>2]=6684;i[a>>2]=b}return}Sm();x()}function Tk(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=J-16|0;J=d;h=ml(b);a:{if(!h){i[a>>2]=0;break a}c=i[b+100>>2];k=i[b+96>>2];i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;c=c-k|0;e=(c|0)/12|0;b:{if(!c){break b}if(e>>>0<357913942){g=Dm(c);i[d>>2]=g;f=g+o(e,12)|0;i[d+8>>2]=f;b=0;m=qn(g,0,c-((c+ -12>>>0)%12|0)|0);i[d+4>>2]=f;n=e>>>0>1?e:1;p=j[h+84|0];while(1){l=o(b,12);c=l+k|0;e=i[c>>2];c:{if(p){g=c+8|0;c=c+4|0;break c}f=i[h+68>>2];g=f+(i[c+8>>2]<<2)|0;e=i[f+(e<<2)>>2];c=f+(i[c+4>>2]<<2)|0}f=i[c>>2];c=m+l|0;i[c+8>>2]=i[g>>2];i[c+4>>2]=f;i[c>>2]=e;b=b+1|0;if((n|0)!=(b|0)){continue}break}break b}Sm();x()}xk(a,d);a=i[d>>2];if(!a){break a}i[d+4>>2]=a;nn(a)}J=d+16|0}function cb(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=Dm(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;d=i[a+4>>2];c=i[a>>2];if((d|0)==(c|0)){break b}while(1){d=d+ -4|0;g=i[d>>2];i[d>>2]=0;b=b+ -4|0;i[b>>2]=g;if((d|0)!=(c|0)){continue}break}i[a+8>>2]=e;d=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=b;if((d|0)==(c|0)){break a}while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){Sa(a)}if((d|0)!=(c|0)){continue}break}break a}Sm();x()}Ba(1756);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){nn(c)}}function bh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=J-32|0;J=d;i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;a:{f=o(b,3);if(f){if(f>>>0>=1073741824){break a}g=o(b,12);e=Dm(g);i[d+16>>2]=e;c=(f<<2)+e|0;i[d+24>>2]=c;qn(e,0,g);i[d+20>>2]=c}k=Qe(f,1,i[a+32>>2],e);if(!(!k|!b)){g=0;f=0;c=0;while(1){l=d+8|0;i[l>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=c;e=(f<<2)+e|0;c=i[e>>2];j=c>>>1|0;c=h+(c&1?0-j|0:j)|0;i[d>>2]=c;h=c;c=i[e+4>>2];j=c>>>1|0;c=h+(c&1?0-j|0:j)|0;i[d+4>>2]=c;h=c;e=i[e+8>>2];c=e>>>1|0;c=h+(e&1?0-c|0:c)|0;i[l>>2]=c;ch(i[a+44>>2]+96|0,d);g=g+1|0;if((g|0)!=(b|0)){f=f+3|0;e=i[d+16>>2];continue}break}e=i[d+16>>2]}if(e){i[d+20>>2]=e;nn(e)}J=d+32|0;return k}Sm();x()}function dh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;f=J-16|0;J=f;g=Dm(64);c=Dm(12);i[c+8>>2]=i[i[a+4>>2]+80>>2];i[c>>2]=13428;i[c+4>>2]=0;i[f+8>>2]=c;$b(g,f+8|0);a:{if((b|0)>=0){h=a+8|0;c=i[a+12>>2];j=i[a+8>>2];d=c-j>>2;b:{if((d|0)>(b|0)){break b}e=b+1|0;if(d>>>0<=b>>>0){Kf(h,e-d|0);break b}if(e>>>0>=d>>>0){break b}e=j+(e<<2)|0;if((e|0)!=(c|0)){while(1){c=c+ -4|0;d=i[c>>2];i[c>>2]=0;if(d){M[i[i[d>>2]+4>>2]](d)}if((c|0)!=(e|0)){continue}break}}i[a+12>>2]=e}c=i[h>>2]+(b<<2)|0;a=i[c>>2];i[c>>2]=g;if(!a){break a}M[i[i[a>>2]+4>>2]](a);break a}M[i[i[g>>2]+4>>2]](g)}a=i[f+8>>2];i[f+8>>2]=0;if(a){M[i[i[a>>2]+4>>2]](a)}J=f+16|0;return(b^-1)>>>31|0}function Jf(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=J-16|0;J=e;i[a+4>>2]=0;a:{b:{if(!b){break b}f=i[a+8>>2];d=f<<5;c:{if(d>>>0>=b>>>0){i[a+4>>2]=b;break c}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if((b|0)<=-1){break a}h=e;if(d>>>0<=1073741822){g=b+31&-32;d=f<<6;d=d>>>0>>0?g:d}else{d=2147483647}Qc(h,d);d=i[a>>2];i[a>>2]=i[e>>2];i[e>>2]=d;f=i[a+4>>2];i[a+4>>2]=b;i[e+4>>2]=f;f=i[a+8>>2];i[a+8>>2]=i[e+8>>2];i[e+8>>2]=f;if(!d){break c}nn(d)}d=b>>>5|0;f=d<<2;a=i[a>>2];if(j[c|0]){a=qn(a,255,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;i[a>>2]=i[a>>2]|-1>>>32-b;break b}a=qn(a,0,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;i[a>>2]=i[a>>2]&(-1>>>32-b^-1)}J=e+16|0;return}Sm();x()}function oa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0;i[b>>2]=1;f=b+8|0;c=i[b+8>>2];d=i[b+12>>2]-c|0;if(d>>>0<=4294967291){yh(f,d+4|0);c=i[f>>2]}c=c+d|0;d=i[a+4>>2];g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;c=i[a+8>>2];if((c|0)!=i[a+12>>2]){d=0;while(1){h=(d<<2)+c|0;c=i[b+8>>2];e=i[b+12>>2]-c|0;if(e>>>0<=4294967291){yh(f,e+4|0);c=i[f>>2]}c=c+e|0;e=i[h>>2];g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;d=d+1|0;c=i[a+8>>2];if(d>>>0>2]-c>>2>>>0){continue}break}}c=i[b+12>>2];b=i[b+8>>2];c=c-b|0;if(c>>>0<=4294967291){yh(f,c+4|0);b=i[f>>2]}b=b+c|0;a=i[a+20>>2];g[b|0]=a;g[b+1|0]=a>>>8;g[b+2|0]=a>>>16;g[b+3|0]=a>>>24}function Cf(a){i[a>>2]=11468;qn(a+4|0,0,80);i[a+96>>2]=0;i[a+100>>2]=0;i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+148>>2]=0;i[a+156>>2]=0;i[a+160>>2]=0;i[a+152>>2]=1065353216;i[a+164>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;i[a+196>>2]=0;i[a+200>>2]=0;i[a+204>>2]=0;i[a+208>>2]=0;i[a+212>>2]=-1;i[a+216>>2]=0;i[a+220>>2]=0;i[a+224>>2]=0;zh(a+232|0);zh(a+272|0);ze(a+312|0);zh(a+328|0);i[a+376>>2]=0;i[a+368>>2]=0;i[a+372>>2]=0}function db(a,b){var c=0,d=0,e=0,f=0,g=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;c=i[b+4>>2]-i[b>>2]|0;d=(c|0)/20|0;a:{if(!c){i[a+28>>2]=0;break a}if(d>>>0<214748365){c=Dm(c);i[a+16>>2]=c;i[a+20>>2]=c;i[a+24>>2]=c+o(d,20);d=i[b>>2];b=i[b+4>>2]-d|0;if((b|0)<=0){i[a+28>>2]=0;i[a+20>>2]=c;break a}d=pn(c,d,b);c=0;i[a+28>>2]=0;b=o((b>>>0)/20|0,20);f=b+d|0;i[a+20>>2]=f;g=a;if(b){b=(f-d|0)/20|0;f=b>>>0>1?b:1;b=0;while(1){e=o(c,20)+d|0;e=o(i[e+16>>2],i[e+12>>2]);b=b>>>0>>0?e:b;c=c+1|0;if((f|0)!=(c|0)){continue}break}if(!b){break a}rb(a,b);b=i[a>>2]}else{b=0}i[g+12>>2]=b;return a}Sm();x()}i[a+12>>2]=0;return a}function yk(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=J-16|0;J=f;i[a+80>>2]=0;i[a+84>>2]=0;c=a+76|0;d=i[c>>2];i[c>>2]=0;if(d){nn(d)}i[a+68>>2]=0;i[a+72>>2]=0;c=a- -64|0;d=i[c>>2];i[c>>2]=0;if(d){nn(d)}c=i[b+4>>2];d=i[b>>2];e=o((c-d|0)/12|0,3);h=i[a>>2];g=i[a+4>>2]-h>>2;a:{if(e>>>0>g>>>0){zk(a,e-g|0);d=i[b>>2];c=i[b+4>>2];break a}if(e>>>0>=g>>>0){break a}i[a+4>>2]=h+(e<<2)}if((c|0)!=(d|0)){b=(c-d|0)/12|0;g=b>>>0>1?b:1;h=i[a>>2];b=0;while(1){e=o(b,12);c=e+h|0;e=d+e|0;i[c>>2]=i[e>>2];i[c+4>>2]=i[e+4>>2];i[c+8>>2]=i[e+8>>2];b=b+1|0;if((g|0)!=(b|0)){continue}break}}i[f+12>>2]=-1;b=Ak(a,f+12|0);if(b){Bk(a);Ck(a,i[f+12>>2])}J=f+16|0;return b}function Jb(a,b,c){var d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0;e=J-16|0;J=e;d=g[b+24|0];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;a:{if(d){if((d|0)<=-1){break a}h=Dm(d);i[e>>2]=h;f=d+h|0;i[e+8>>2]=f;qn(h,0,d);i[e+4>>2]=f;f=Dm(d);qn(f,0,d)}if(i[b+80>>2]){while(1){n=i[i[b>>2]>>2];k=i[b+40>>2];d=i[b+48>>2]+Gn(k,i[b+44>>2],p,m)|0;q=pn(h,n+d|0,k);k=g[b+24|0];if((k|0)>=1){n=i[a+48>>2];d=0;while(1){g[d+f|0]=j[d+q|0]+j[(c+d<<2)+n|0];d=d+1|0;if((d|0)<(k|0)){continue}break}}d=i[b+40>>2];pn(i[i[b>>2]>>2]+o(d,p)|0,f,d);d=p+1|0;if(d>>>0<1){m=m+1|0}p=d;if(!m&d>>>0>2]|m>>>0<0){continue}break}}if(f){nn(f)}if(h){nn(h)}J=e+16|0;return 1}Sm();x()}function Zd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0;c=i[b+12>>2];h=c;e=c;c=i[b+20>>2];f=c;g=i[b+16>>2];d=g+4|0;if(d>>>0<4){c=c+1|0}l=i[b+8>>2];n=d;d=c;a:{if((e|0)<(c|0)?1:(e|0)<=(c|0)?l>>>0>>0:0){break a}c=g+i[b>>2]|0;e=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=n;i[b+20>>2]=d;if(k[b+38>>1]<=513){c=f;d=g+8|0;if(d>>>0<8){c=c+1|0}f=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?l>>>0>>0:0){break a}i[b+16>>2]=f;i[b+20>>2]=d}if(!(e&1)){break a}b=r(e)^31;c=b+ -1|0;if(c>>>0<=28){i[a+8>>2]=b+1;b=-2<>2]=d;i[a+12>>2]=b^-1;i[a+24>>2]=(d|0)/2;m[a+20>>2]=p(2)/p(d|0)}o=c>>>0<29}return o|0}function ma(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0;d=i[b+88>>2];if(!(!d|i[d>>2]!=1)){c=i[d+8>>2];i[a+4>>2]=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);f=a+8|0;h=i[a+8>>2];e=i[a+12>>2]-h>>2;c=g[b+24|0];a:{if(e>>>0>>0){na(f,c-e|0);c=j[b+24|0];break a}if(e>>>0<=c>>>0){break a}i[a+12>>2]=h+(c<<2)}h=1;e=i[d+8>>2];b:{if(c<<24>>24<1){b=4;break b}b=c&255;k=b>>>0>1?b:1;f=i[f>>2];c=0;b=4;while(1){d=b+e|0;m[f+(c<<2)>>2]=(Pn(2,j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24)),Qn());b=b+4|0;c=c+1|0;if((k|0)!=(c|0)){continue}break}}c=a;a=b+e|0;m[c+20>>2]=(Pn(2,j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24)),Qn())}return h|0}function Ma(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){f=i[a+4>>2];d=f-e|0;h=d>>2;d=g>>>0>h>>>0?b+d|0:c;if((d|0)!=(b|0)){while(1){i[e>>2]=i[b>>2];e=e+4|0;b=b+4|0;if((d|0)!=(b|0)){continue}break}}if(g>>>0>h>>>0){b=c-d|0;if((b|0)>=1){f=pn(f,d,b)+b|0}i[a+4>>2]=f;return}i[a+4>>2]=e;return}if(e){i[a+4>>2]=e;nn(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=Dm(e);i[a>>2]=c;i[a+4>>2]=c;i[a+8>>2]=c+e;if((f|0)>=1){c=pn(c,b,f)+f|0}i[a+4>>2]=c;return}Sm();x()}function $h(a,b,c){var d=0,e=0,f=0,h=0;d=J-32|0;J=d;a:{h=xn(b);if(h>>>0<4294967280){b:{c:{if(h>>>0>=11){e=h+16&-16;f=Dm(e);i[d+24>>2]=e|-2147483648;i[d+16>>2]=f;i[d+20>>2]=h;break c}g[d+27|0]=h;f=d+16|0;if(!h){break b}}pn(f,b,h)}g[f+h|0]=0;e=xn(c);if(e>>>0>=4294967280){break a}d:{e:{if(e>>>0>=11){b=e+16&-16;f=Dm(b);i[d+8>>2]=b|-2147483648;i[d>>2]=f;i[d+4>>2]=e;break e}g[d+11|0]=e;f=d;if(!e){break d}}pn(f,c,e)}g[e+f|0]=0;c=i[a+4>>2];b=-1;f:{if(!c){break f}c=_k(c,d+16|0,d);b=-1;if(!c){break f}b=ol(a,i[c+24>>2])}a=b;if(g[d+11|0]<=-1){nn(i[d>>2])}if(g[d+27|0]<=-1){nn(i[d+16>>2])}J=d+32|0;return a}Fm();x()}Fm();x()}function be(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=J-32|0;J=f;g=(e&1073741823)!=(e|0)?-1:e<<2;m=qn(Dm(g),0,g);g=m;j=i[g>>2];g=i[g+4>>2];l=i[b+4>>2];i[f+24>>2]=i[b>>2];i[f+28>>2]=l;i[f+8>>2]=j;i[f+12>>2]=g;j=a+8|0;Yd(f+16|0,j,f+8|0,f+24|0);i[c>>2]=i[f+16>>2];i[c+4>>2]=i[f+20>>2];if((e|0)<(d|0)){l=0-e<<2;a=e;while(1){h=a<<2;g=h+c|0;k=g+l|0;n=i[k>>2];k=i[k+4>>2];h=b+h|0;o=i[h+4>>2];i[f+24>>2]=i[h>>2];i[f+28>>2]=o;i[f+8>>2]=n;i[f+12>>2]=k;Yd(f+16|0,j,f+8|0,f+24|0);i[g>>2]=i[f+16>>2];i[g+4>>2]=i[f+20>>2];a=a+e|0;if((a|0)<(d|0)){continue}break}}nn(m);J=f+32|0;return 1}function Hg(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;d=(c>>>0)/3|0;Ig(i[a+12>>2],i[(i[i[a+8>>2]+96>>2]+o(d,12)|0)+(c-o(d,3)<<2)>>2]);f=i[a+4>>2];d=i[f+4>>2];a:{b:{c:{if((d|0)!=i[f+8>>2]){i[d>>2]=c;i[f+4>>2]=d+4;break c}h=i[f>>2];j=d-h|0;g=j>>2;e=g+1|0;if(e>>>0>=1073741824){break b}d=j>>1;e=g>>>0<536870911?d>>>0>>0?e:d:1073741823;d=0;d:{if(!e){break d}if(e>>>0>=1073741824){break a}d=Dm(e<<2)}g=d+(g<<2)|0;i[g>>2]=c;c=d+(e<<2)|0;e=g+4|0;if((j|0)>=1){pn(d,h,j)}i[f+8>>2]=c;i[f+4>>2]=e;i[f>>2]=d;if(!h){break c}nn(h)}a=i[a+4>>2];i[i[a+12>>2]+(b<<2)>>2]=i[a+24>>2];i[a+24>>2]=i[a+24>>2]+1;return}Sm();x()}Ba(12220);x()}function le(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=J-32|0;J=f;h=(e&1073741823)!=(e|0)?-1:e<<2;h=qn(Dm(h),0,h);g=i[b>>2];j=i[b+4>>2];l=i[h+4>>2];i[f+16>>2]=i[h>>2];i[f+20>>2]=l;i[f+8>>2]=g;i[f+12>>2]=j;j=a+8|0;ge(f+24|0,j,f+16|0,f+8|0);i[c>>2]=i[f+24>>2];i[c+4>>2]=i[f+28>>2];if((e|0)<(d|0)){l=0-e<<2;a=e;while(1){g=a<<2;k=g+b|0;n=i[k>>2];k=i[k+4>>2];g=c+g|0;m=g+l|0;o=i[m+4>>2];i[f+16>>2]=i[m>>2];i[f+20>>2]=o;i[f+8>>2]=n;i[f+12>>2]=k;ge(f+24|0,j,f+16|0,f+8|0);i[g>>2]=i[f+24>>2];i[g+4>>2]=i[f+28>>2];a=a+e|0;if((a|0)<(d|0)){continue}break}}nn(h);J=f+32|0;return 1}function he(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,n=0;c=i[b+12>>2];h=c;e=c;c=i[b+20>>2];f=c;g=i[b+16>>2];d=g+4|0;if(d>>>0<4){c=c+1|0}k=i[b+8>>2];l=d;d=c;a:{if((e|0)<(c|0)?1:(e|0)<=(c|0)?k>>>0>>0:0){break a}c=g+i[b>>2]|0;e=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=l;i[b+20>>2]=d;c=f;d=g+8|0;if(d>>>0<8){c=c+1|0}f=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?k>>>0>>0:0){break a}i[b+16>>2]=f;i[b+20>>2]=d;if(!(e&1)){break a}b=r(e)^31;if(b+ -1>>>0>28){break a}n=1;i[a+8>>2]=b+1;b=-2<>2]=c;i[a+12>>2]=b^-1;i[a+24>>2]=(c|0)/2;m[a+20>>2]=p(2)/p(c|0)}return n|0}function Wb(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=i[a+8>>2];d=i[a+4>>2];if(f-d>>2>>>0>=b>>>0){e=a;if(b){a=(b<<2)+d|0;while(1){i[d>>2]=i[c>>2];d=d+4|0;if((a|0)!=(d|0)){continue}break}}else{a=d}i[e+4>>2]=a;return}a:{g=i[a>>2];h=d-g|0;e=h>>2;d=e+b|0;if(d>>>0<1073741824){j=e<<2;f=f-g|0;e=f>>1;f=f>>2>>>0<536870911?e>>>0>>0?d:e:1073741823;e=0;b:{if(!f){break b}if(f>>>0>=1073741824){break a}e=Dm(f<<2)}d=j+e|0;b=d+(b<<2)|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}c=e+(f<<2)|0;if((h|0)>=1){pn(e,g,h)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=e;if(g){nn(g)}return}Sm();x()}Ba(1972);x()}function Ta(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=i[a+8>>2];d=i[a+4>>2];if(f-d>>2>>>0>=b>>>0){e=a;if(b){a=(b<<2)+d|0;while(1){i[d>>2]=i[c>>2];d=d+4|0;if((a|0)!=(d|0)){continue}break}}else{a=d}i[e+4>>2]=a;return}a:{g=i[a>>2];h=d-g|0;e=h>>2;d=e+b|0;if(d>>>0<1073741824){j=e<<2;f=f-g|0;e=f>>1;f=f>>2>>>0<536870911?e>>>0>>0?d:e:1073741823;e=0;b:{if(!f){break b}if(f>>>0>=1073741824){break a}e=Dm(f<<2)}d=j+e|0;b=d+(b<<2)|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}c=e+(f<<2)|0;if((h|0)>=1){pn(e,g,h)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=e;if(g){nn(g)}return}Sm();x()}Ba(1496);x()}function Dk(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){d=a;if(b){a=(b<<2)+c|0;while(1){i[c>>2]=i[3571];c=c+4|0;if((a|0)!=(c|0)){continue}break}}else{a=c}i[d+4>>2]=a;return}a:{f=i[a>>2];g=c-f|0;d=g>>2;c=d+b|0;if(c>>>0<1073741824){h=d<<2;e=e-f|0;d=e>>1;e=e>>2>>>0<536870911?d>>>0>>0?c:d:1073741823;d=0;b:{if(!e){break b}if(e>>>0>=1073741824){break a}d=Dm(e<<2)}c=h+d|0;b=c+(b<<2)|0;h=i[3571];while(1){i[c>>2]=h;c=c+4|0;if((b|0)!=(c|0)){continue}break}c=d+(e<<2)|0;if((g|0)>=1){pn(d,f,g)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=d;if(f){nn(f)}return}Sm();x()}Ba(14288);x()}function ji(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,n=0;d=J-16|0;J=d;k=i[a+80>>2];l=g[b+24|0];a=i[3527];i[d+8>>2]=i[3526];i[d+12>>2]=a;a=i[3525];i[d>>2]=i[3524];i[d+4>>2]=a;a=o(k,l);f=i[c>>2];e=i[c+4>>2]-f>>2;a:{if(a>>>0>e>>>0){na(c,a-e|0);break a}if(a>>>0>=e>>>0){break a}i[c+4>>2]=f+(a<<2)}b:{if(!k){f=0;break b}f=1;while(1){a=h;e=b;if(!j[e+84|0]){a=i[i[b+68>>2]+(h<<2)>>2]}if(!$c(e,a,g[b+24|0],d)){break b}if((l|0)>=1){e=i[c>>2];a=0;while(1){m[e+(n<<2)>>2]=m[(a<<2)+d>>2];n=n+1|0;a=a+1|0;if((l|0)!=(a|0)){continue}break}}h=h+1|0;f=h>>>0>>0;if((k|0)!=(h|0)){continue}break}}J=d+16|0;return(f^-1)&1}function Pb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;a:{f=i[a+4>>2];b:{if((f|0)!=i[a>>2]){c=f;break b}e=i[a+8>>2];c=i[a+12>>2];if(e>>>0>>0){d=((c-e>>2)+1|0)/2<<2;c=d+e|0;g=e-f|0;if(g){c=c-g|0;rn(c,f,g);e=i[a+8>>2]}i[a+4>>2]=c;i[a+8>>2]=e+d;break b}c=c-f|0;d=c?c>>1:1;if(d>>>0>=1073741824){break a}c=d<<2;h=Dm(c);g=h+c|0;c=(d+3&-4)+h|0;j=c;d=e-f|0;if(d){j=c+d|0;e=c;d=f;while(1){i[e>>2]=i[d>>2];d=d+4|0;e=e+4|0;if((j|0)!=(e|0)){continue}break}}i[a+12>>2]=g;i[a+8>>2]=j;i[a+4>>2]=c;i[a>>2]=h;if(!f){break b}nn(f);c=i[a+4>>2]}i[c+ -4>>2]=i[b>>2];i[a+4>>2]=i[a+4>>2]+ -4;return}Ba(1756);x()}function Nk(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){d=a;if(b){a=(b<<2)+c|0;while(1){i[c>>2]=1;c=c+4|0;if((a|0)!=(c|0)){continue}break}}else{a=c}i[d+4>>2]=a;return}a:{f=i[a>>2];g=c-f|0;d=g>>2;c=d+b|0;if(c>>>0<1073741824){h=d<<2;e=e-f|0;d=e>>1;e=e>>2>>>0<536870911?d>>>0>>0?c:d:1073741823;d=0;b:{if(!e){break b}if(e>>>0>=1073741824){break a}d=Dm(e<<2)}c=h+d|0;b=c+(b<<2)|0;while(1){i[c>>2]=1;c=c+4|0;if((b|0)!=(c|0)){continue}break}c=d+(e<<2)|0;if((g|0)>=1){pn(d,f,g)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=d;if(f){nn(f)}return}Sm();x()}Ba(14408);x()}function sa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=p(0);f=J-16|0;J=f;if(i[c+28>>2]==9){d=i[a+4>>2];e=g[c+24|0];h=e<<2;j=Dm((e&1073741823)!=(e|0)?-1:h);k=Kh(f+8|0);l=Mh(k,m[a+20>>2],-1<>2];if(!n){break a}s=i[i[b>>2]>>2]+i[b+48>>2]|0;t=(e|0)<1;d=0;while(1){if(!t){u=i[a+8>>2];v=m[k>>2];b=0;while(1){o=b<<2;m[o+j>>2]=p(v*p(i[(d<<2)+s>>2]))+m[u+o>>2];d=d+1|0;b=b+1|0;if((e|0)!=(b|0)){continue}break}}pn(i[i[c+64>>2]>>2]+q|0,j,h);q=h+q|0;r=r+1|0;if((r|0)!=(n|0)){continue}break}}nn(j)}J=f+16|0;return l|0}function Pe(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0;f=a+4|0;a:{a=i[a+4>>2];if(a){e=j[c+11|0];d=e<<24>>24<0;k=d?i[c>>2]:c;e=d?i[c+4>>2]:e;while(1){c=j[a+27|0];d=c<<24>>24<0;c=d?i[a+20>>2]:c;l=c>>>0>>0;b:{c:{d:{e:{f:{h=l?c:e;g:{if(h){g=a+16|0;d=d?i[g>>2]:g;g=Nl(k,d,h);if(!g){if(e>>>0>>0){break g}break f}if((g|0)>-1){break f}break g}if(e>>>0>=c>>>0){break e}}c=i[a>>2];if(c){break b}i[b>>2]=a;return a}c=Nl(d,k,h);if(c){break d}}if(l){break c}break a}if((c|0)>-1){break a}}f=a+4|0;c=i[a+4>>2];if(!c){break a}a=f}f=a;a=c;continue}}i[b>>2]=f;return f}i[b>>2]=a;return f}function Ob(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;a:{e=i[a+8>>2];b:{if((e|0)!=i[a+12>>2]){break b}f=i[a+4>>2];g=i[a>>2];if(f>>>0>g>>>0){g=((f-g>>2)+1|0)/-2<<2;c=g+f|0;d=e-f|0;if(d){rn(c,f,d);f=i[a+4>>2]}e=c+d|0;i[a+8>>2]=e;i[a+4>>2]=f+g;break b}c=e-g|0;c=c?c>>1:1;if(c>>>0>=1073741824){break a}d=c<<2;h=Dm(d);j=h+d|0;d=e-f|0;c=(c&-4)+h|0;e=c;if(d){e=c+d|0;d=c;while(1){i[d>>2]=i[f>>2];f=f+4|0;d=d+4|0;if((d|0)!=(e|0)){continue}break}}i[a+12>>2]=j;i[a+8>>2]=e;i[a+4>>2]=c;i[a>>2]=h;if(!g){break b}nn(g);e=i[a+8>>2]}i[e>>2]=i[b>>2];i[a+8>>2]=i[a+8>>2]+4;return}Ba(1756);x()}function Ja(a,b){var c=0;c=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=c;c=i[b+60>>2];i[a+56>>2]=i[b+56>>2];i[a+60>>2]=c;c=i[b+52>>2];i[a+48>>2]=i[b+48>>2];i[a+52>>2]=c;c=i[b+44>>2];i[a+40>>2]=i[b+40>>2];i[a+44>>2]=c;c=i[b+36>>2];i[a+32>>2]=i[b+32>>2];i[a+36>>2]=c;c=i[b+28>>2];i[a+24>>2]=i[b+24>>2];i[a+28>>2]=c;c=i[b+20>>2];i[a+16>>2]=i[b+16>>2];i[a+20>>2]=c;c=i[b+12>>2];i[a+8>>2]=i[b+8>>2];i[a+12>>2]=c;i[a+88>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;g[a+77|0]=0;g[a+78|0]=0;g[a+79|0]=0;g[a+80|0]=0;g[a+81|0]=0;g[a+82|0]=0;g[a+83|0]=0;g[a+84|0]=0;return a}function Ih(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;g=a+4|0;a=i[a+4>>2];a:{b:{if(!a){break b}d=j[b+11|0];c=d<<24>>24<0;k=c?i[b>>2]:b;e=c?i[b+4>>2]:d;c=g;while(1){b=j[a+27|0];l=b<<24>>24<0;h=l?i[a+20>>2]:b;f=e>>>0>>0;d=f?e:h;c:{if(d){b=a+16|0;b=Nl(l?i[b>>2]:b,k,d);if(b){break c}}b=h>>>0>>0?-1:f}c=(b|0)<0?c:a;a=i[(b>>>29&4)+a>>2];if(a){continue}break}if((c|0)==(g|0)){break b}a=j[c+27|0];f=a<<24>>24<0;d:{d=f?i[c+20>>2]:a;b=d>>>0>>0?d:e;if(b){a=c+16|0;a=Nl(k,f?i[a>>2]:a,b);if(a){break d}}if(e>>>0>>0){break b}break a}if((a|0)>-1){break a}}c=g}return c}function cl(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0;h=J-16|0;J=h;l=a;j=Pe(b,h+12|0,c);c=i[j>>2];if(c){b=0}else{c=Dm(40);e=d+8|0;i[c+24>>2]=i[e>>2];f=i[d+4>>2];i[c+16>>2]=i[d>>2];i[c+20>>2]=f;i[d>>2]=0;i[d+4>>2]=0;i[e>>2]=0;i[c+36>>2]=0;i[c+28>>2]=0;i[c+32>>2]=0;f=i[d+12>>2];k=i[d+16>>2]-f|0;e=0;a:{if(!k){break a}e=c+28|0;rb(e,k);f=i[d+12>>2];m=i[d+16>>2]-f|0;e=i[e>>2]}pn(e,f,m);i[c+8>>2]=i[h+12>>2];i[c>>2]=0;i[c+4>>2]=0;i[j>>2]=c;e=i[i[b>>2]>>2];d=c;b:{if(!e){break b}i[b>>2]=e;d=i[j>>2]}Me(i[b+4>>2],d);i[b+8>>2]=i[b+8>>2]+1;b=1}g[l+4|0]=b;i[a>>2]=c;J=h+16|0}function ua(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){d=i[a+4>>2]-e|0;f=d>>2;d=g>>>0>f>>>0?b+d|0:c;h=d-b|0;if(h){rn(e,b,h)}if(g>>>0>f>>>0){b=i[a+4>>2];c=c-d|0;if((c|0)>=1){b=pn(b,d,c)+c|0}i[a+4>>2]=b;return}i[a+4>>2]=e+h;return}if(e){i[a+4>>2]=e;nn(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=Dm(e);i[a>>2]=c;i[a+4>>2]=c;i[a+8>>2]=c+e;if((f|0)>=1){c=pn(c,b,f)+f|0}i[a+4>>2]=c;return}Sm();x()}function Se(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{d=i[b+16>>2];f=i[b+12>>2];e=i[b+20>>2];c:{if((f|0)<(e|0)?1:(f|0)<=(e|0)?l[b+8>>2]<=d>>>0:0){break c}f=j[d+i[b>>2]|0];d=d+1|0;if(d>>>0<1){e=e+1|0}i[b+16>>2]=d;i[b+20>>2]=e;d:{e:{switch(f+ -1|0){case 8:return We(a,b,c);case 9:return Xe(a,b,c);case 10:return Ye(a,b,c);case 11:return Ze(a,b,c);case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:break b;case 13:case 14:case 15:case 16:break a;case 17:break d;case 12:break e;default:break c}}return _e(a,b,c)}g=$e(a,b,c)}return g}return Ve(a,b,c)}return $e(a,b,c)}function Ch(a,b,c){var d=0,e=0,f=0,h=0;a:{b:{if(!b){break b}if(k[a+38>>1]<=513){e=i[a+12>>2];b=i[a+20>>2];f=i[a+16>>2];h=f+8|0;if(h>>>0<8){b=b+1|0}if((e|0)<(b|0)?1:(e|0)<=(b|0)?l[a+8>>2]>>0:0){break a}b=f+i[a>>2]|0;d=j[b+4|0]|j[b+5|0]<<8|(j[b+6|0]<<16|j[b+7|0]<<24);i[c>>2]=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[c+4>>2]=d;c=i[a+20>>2];d=i[a+16>>2]+8|0;if(d>>>0<8){c=c+1|0}i[a+16>>2]=d;i[a+20>>2]=c;break b}if(!Dh(1,c,a)){break a}}g[a+36|0]=1;i[a+32>>2]=0;b=i[a+16>>2];c=b+i[a>>2]|0;i[a+24>>2]=c;d=a;a=i[a+8>>2];i[d+28>>2]=c+(a-b|0);d=1}return d}function ch(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+4>>2];if((c|0)!=i[a+8>>2]){e=i[b+4>>2];i[c>>2]=i[b>>2];i[c+4>>2]=e;i[c+8>>2]=i[b+8>>2];i[a+4>>2]=c+12;return}a:{e=i[a>>2];g=c-e|0;c=(g|0)/12|0;d=c+1|0;if(d>>>0<357913942){h=c<<1;d=c>>>0<178956970?h>>>0>>0?d:h:357913941;f=0;b:{if(!d){break b}if(d>>>0>=357913942){break a}f=Dm(o(d,12))}c=f+o(c,12)|0;h=i[b+4>>2];i[c>>2]=i[b>>2];i[c+4>>2]=h;i[c+8>>2]=i[b+8>>2];b=c+o((g|0)/-12|0,12)|0;f=f+o(d,12)|0;c=c+12|0;if((g|0)>=1){pn(b,e,g)}i[a+8>>2]=f;i[a+4>>2]=c;i[a>>2]=b;if(e){nn(e)}return}Sm();x()}Ba(13352);x()}function tl(a,b){var c=0,d=0,e=0,f=0;a:{if((b|0)<0){break a}c=i[a+24>>2];d=i[a+28>>2];if((c|0)==(d|0)){break a}while(1){f=c+4|0;e=i[c>>2];if(i[e+24>>2]==(b|0)){b:{if((d|0)!=(f|0)){while(1){b=i[f>>2];i[f>>2]=0;i[c>>2]=b;if(e){qh(e+12|0,i[e+16>>2]);rh(e,i[e+4>>2]);nn(e)}c=c+4|0;f=f+4|0;if((d|0)!=(f|0)){e=i[c>>2];continue}break}d=i[a+28>>2];if((d|0)==(c|0)){break b}}while(1){d=d+ -4|0;b=i[d>>2];i[d>>2]=0;if(b){qh(b+12|0,i[b+16>>2]);rh(b,i[b+4>>2]);nn(b)}if((c|0)!=(d|0)){continue}break}}i[a+28>>2]=c;return}c=f;if((d|0)!=(c|0)){continue}break}}}function Tl(a,b,c){var d=0,e=0,f=0;d=J-208|0;J=d;i[d+204>>2]=c;c=0;qn(d+160|0,0,40);i[d+200>>2]=i[d+204>>2];a:{if((Ul(0,b,d+200|0,d+80|0,d+160|0)|0)<0){break a}c=i[a+76>>2]>=0?1:c;e=i[a>>2];if(g[a+74|0]<=0){i[a>>2]=e&-33}f=e&32;b:{if(i[a+48>>2]){Ul(a,b,d+200|0,d+80|0,d+160|0);break b}i[a+48>>2]=80;i[a+16>>2]=d+80;i[a+28>>2]=d;i[a+20>>2]=d;e=i[a+44>>2];i[a+44>>2]=d;Ul(a,b,d+200|0,d+80|0,d+160|0);if(!e){break b}M[i[a+36>>2]](a,0,0)|0;i[a+48>>2]=0;i[a+44>>2]=e;i[a+28>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0}i[a>>2]=f|i[a>>2];if(!c){break a}}J=d+208|0}function Gk(a,b,c){var d=0,e=0,f=0,g=0;a:{if((b|c)>=0){b:{if(b>>>0>1431655765){break b}d=o(b,3);Hk(a,d,14280);Hk(a+12|0,d,14284);d=i[a+24>>2];c:{if(i[a+32>>2]-d>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break a}e=i[a+28>>2];f=c<<2;c=Dm(f);f=c+f|0;e=e-d|0;g=e+c|0;if((e|0)>=1){pn(c,d,e)}i[a+32>>2]=f;i[a+28>>2]=g;i[a+24>>2]=c;if(!d){break c}nn(d)}i[a+80>>2]=0;i[a+84>>2]=0;d=a+76|0;c=i[d>>2];i[d>>2]=0;if(c){nn(c)}i[a+68>>2]=0;i[a+72>>2]=0;c=a- -64|0;a=i[c>>2];i[c>>2]=0;if(!a){break b}nn(a)}a=b>>>0<1431655766}else{a=0}return a}Ba(14288);x()}function fg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0;f=J-16|0;J=f;a:{if(!Uf(a,b)){break a}g=i[b+12>>2];c=i[b+20>>2];h=i[b+16>>2];e=h+4|0;if(e>>>0<4){c=c+1|0}d=e;e=c;if((g|0)<(c|0)?1:(g|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=h+i[b>>2]|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=d;i[b+20>>2]=e;if((c|0)<0){break a}d=i[a+152>>2];if((c|0)>=(d|0)){break a}i[f+12>>2]=0;e=i[a+156>>2];c=i[a+160>>2]-e>>2;b:{if(d>>>0>c>>>0){Ta(a+156|0,d-c|0,f+12|0);break b}if(d>>>0>=c>>>0){break b}i[a+160>>2]=e+(d<<2)}k=Ae(a+168|0,b)}J=f+16|0;return k}function fb(a){var b=0,c=0,d=0,e=0;d=i[a+132>>2];if(d){b=i[a+136>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;nn(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+132>>2]}i[a+136>>2]=d;nn(c)}d=i[a+120>>2];if(d){b=i[a+124>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;nn(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+120>>2]}i[a+124>>2]=d;nn(c)}b=i[a+108>>2];if(b){i[a+112>>2]=b;nn(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;nn(b)}we(a+76|0);we(a+56|0);we(a+36|0);we(a+16|0)}function bn(a){var b=0,c=0,d=0,e=0;b=J+ -64|0;J=b;d=i[a>>2];c=i[d+ -4>>2];d=i[d+ -8>>2];i[b+20>>2]=0;i[b+16>>2]=16520;i[b+12>>2]=a;i[b+8>>2]=16568;qn(b+24|0,0,39);a=a+d|0;a:{if($m(c,16568,0)){i[b+56>>2]=1;M[i[i[c>>2]+20>>2]](c,b+8|0,a,a,1,0);e=i[b+32>>2]==1?a:0;break a}M[i[i[c>>2]+24>>2]](c,b+8|0,a,1,0);b:{switch(i[b+44>>2]){case 0:e=i[b+48>>2]==1?i[b+36>>2]==1?i[b+40>>2]==1?i[b+28>>2]:0:0:0;break a;case 1:break b;default:break a}}if(i[b+32>>2]!=1){if(i[b+48>>2]|i[b+36>>2]!=1|i[b+40>>2]!=1){break a}}e=i[b+24>>2]}J=b- -64|0;return e}function Lb(a){a=a|0;var b=0,c=0,d=0;i[a>>2]=1572;b=i[a+60>>2];if(b){c=i[a- -64>>2];d=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;d=i[c>>2];i[c>>2]=0;if(d){Sa(d)}if((b|0)!=(c|0)){continue}break}d=i[a+60>>2]}i[a+64>>2]=b;nn(d)}b=i[a+48>>2];if(b){i[a+52>>2]=b;nn(b)}b=i[a+36>>2];if(b){c=i[a+40>>2];d=b;b:{if((b|0)==(c|0)){break b}while(1){c=c+ -24|0;M[i[i[c>>2]>>2]](c)|0;if((b|0)!=(c|0)){continue}break}d=i[a+36>>2]}i[a+40>>2]=b;nn(d)}i[a>>2]=1360;b=i[a+16>>2];if(b){i[a+20>>2]=b;nn(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;nn(b)}return a|0}function nb(a){var b=0,c=0,d=0,e=0;d=i[a+640>>2];if(d){b=i[a+644>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;nn(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+640>>2]}i[a+644>>2]=d;nn(c)}d=i[a+628>>2];if(d){b=i[a+632>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;nn(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+628>>2]}i[a+632>>2]=d;nn(c)}b=i[a+616>>2];if(b){i[a+620>>2]=b;nn(b)}b=i[a+604>>2];if(b){i[a+608>>2]=b;nn(b)}we(a+584|0);we(a+564|0);we(a+544|0)}function Zk(a,b,c){var d=0,e=0,f=0;e=J-16|0;J=e;a:{b:{if(!c){break b}i[a>>2]=b;i[e+12>>2]=0;d=0;if(!Xk(1,e+12|0,b)){break a}c:{f=i[e+12>>2];if(f){b=0;while(1){if(!Xk(1,e+8|0,i[a>>2])){break b}d=Dm(28);i[d+4>>2]=0;i[d+8>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d>>2]=d+4;i[d+12>>2]=d+16;i[d+24>>2]=i[e+8>>2];if(!Wk(a,d)){break c}i[e>>2]=d;$k(c,e);d=i[e>>2];i[e>>2]=0;if(d){qh(d+12|0,i[d+16>>2]);rh(d,i[d+4>>2]);nn(d)}b=b+1|0;if((f|0)!=(b|0)){continue}break}}d=Wk(a,c);break a}qh(d+12|0,i[d+16>>2]);rh(d,i[d+4>>2]);nn(d)}d=0}J=e+16|0;return d}function jb(a){var b=0,c=0,d=0,e=0;d=i[a+128>>2];if(d){b=i[a+132>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;nn(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+128>>2]}i[a+132>>2]=d;nn(c)}d=i[a+116>>2];if(d){b=i[a+120>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;nn(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+116>>2]}i[a+120>>2]=d;nn(c)}b=i[a+104>>2];if(b){i[a+108>>2]=b;nn(b)}b=i[a+92>>2];if(b){i[a+96>>2]=b;nn(b)}we(a+72|0);we(a+52|0);we(a+32|0)}function cc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+60>>2];a:{if(!c){break a}i[c+4>>2]=a+48;if(!(M[i[i[c>>2]+12>>2]](c)|0)){break a}b:{d=M[i[i[a>>2]+24>>2]](a)|0;if((d|0)<1){break b}c=0;while(1){c:{f=i[(M[i[i[a>>2]+28>>2]](a)|0)+4>>2];g=M[i[i[a>>2]+20>>2]](a,c)|0;e=i[a+60>>2];if(!(M[i[i[e>>2]+8>>2]](e,i[i[f+8>>2]+(g<<2)>>2])|0)){break c}c=c+1|0;if((d|0)!=(c|0)){continue}break b}break}return 0}if(!(M[i[i[a>>2]+36>>2]](a,b)|0)){break a}if(!(M[i[i[a>>2]+40>>2]](a,b)|0)){break a}h=M[i[i[a>>2]+44>>2]](a)|0}return h|0}function wl(a,b,c){var d=0,e=0,f=0;a:{if(b>>>0<=63){b=0;d=i[a+12>>2];if(d>>>0<2){break a}c=i[c>>2];a=1;while(1){b=l[c+(b<<2)>>2]>l[c+(a<<2)>>2]?a:b;a=a+1|0;if((d|0)!=(a|0)){continue}break}break a}b=i[a+580>>2];d=32-b|0;if((d|0)>=4){c=i[a+576>>2];if((c|0)==i[a+568>>2]){return 0}d=i[c>>2];e=b+4|0;i[a+580>>2]=e;b=d<>>28|0;if((e|0)!=32){break a}i[a+580>>2]=0;i[a+576>>2]=c+4;return b}c=i[a+576>>2];e=c+4|0;if((e|0)==i[a+568>>2]){return 0}f=i[c>>2];i[a+576>>2]=e;i[a+580>>2]=b+ -28;a=60-b|0;b=i[c+4>>2]>>>a|f<>>a-d}return b}function xh(a,b,c,d){var e=0,f=0,g=0;a:{if(!b){if((d|0)<0?1:(d|0)<=0?c>>>0<0:0){return 0}d=i[a>>2];b=i[a+4>>2]-d|0;if(b>>>0>>0){rb(a,c-b|0);break a}if(b>>>0<=c>>>0){break a}i[a+4>>2]=c+d;break a}if((d|0)<0?1:(d|0)<=0?c>>>0<0:0){return 0}e=c;g=i[a>>2];f=i[a+4>>2]-g|0;b:{c:{if(0>(d|0)?1:0>=(d|0)?f>>>0>=c>>>0:0){break c}if(f>>>0>>0){rb(a,e-f|0);break b}if(f>>>0<=e>>>0){break c}i[a+4>>2]=e+g}if(!e){break a}}rn(i[a>>2],b,e)}b=a+24|0;c=b;d=b;a=i[b+4>>2];b=i[b>>2]+1|0;if(b>>>0<1){a=a+1|0}i[d>>2]=b;i[c+4>>2]=a;return 1}function wc(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;g=J-32|0;J=g;j=i[i[i[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((M[i[i[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}k=M[i[i[b>>2]+36>>2]](b)|0;h=M[i[i[b>>2]+44>>2]](b,d)|0;if(!(h?k:0)){i[a>>2]=0;break a}d=M[i[i[b>>2]+40>>2]](b,d)|0;if(d){b=i[b+44>>2];i[g+12>>2]=d;i[g+8>>2]=b;i[g+20>>2]=h;i[g+16>>2]=h+12;xc(a,c,j,e,g+8|0,f);if(!i[a>>2]){break b}break a}b=i[b+44>>2];i[g+12>>2]=k;i[g+8>>2]=b;i[g+20>>2]=h;i[g+16>>2]=h+12;yc(a,c,j,e,g+8|0,f);if(i[a>>2]){break a}}i[a>>2]=0}J=g+32|0}function hn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if($m(a,i[b+8>>2],e)){gn(b,c,d);return}a:{if($m(a,i[b>>2],e)){if(!(i[b+20>>2]!=(c|0)?i[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}i[b+32>>2]=1;return}i[b+32>>2]=d;b:{if(i[b+44>>2]==4){break b}h[b+52>>1]=0;a=i[a+8>>2];M[i[i[a>>2]+20>>2]](a,b,c,c,1,e);if(j[b+53|0]){i[b+44>>2]=3;if(!j[b+52|0]){break b}break a}i[b+44>>2]=4}i[b+20>>2]=c;i[b+40>>2]=i[b+40>>2]+1;if(i[b+36>>2]!=1|i[b+24>>2]!=2){break a}g[b+54|0]=1;return}a=i[a+8>>2];M[i[i[a>>2]+24>>2]](a,b,c,d,e)}}function Ef(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=i[a+216>>2];if((c|0)!=i[a+220>>2]){while(1){a:{c=i[o(e,144)+c>>2];if((c|0)<0){break a}f=i[a+4>>2];d=i[f+8>>2];if((c|0)>=i[f+12>>2]-d>>2){break a}c=i[d+(c<<2)>>2];if((M[i[i[c>>2]+24>>2]](c)|0)<1){break a}d=0;while(1){if((M[i[i[c>>2]+20>>2]](c,d)|0)!=(b|0)){d=d+1|0;if((d|0)<(M[i[i[c>>2]+24>>2]](c)|0)){continue}break a}break}a=i[a+216>>2]+o(e,144)|0;return(j[a+100|0]?a+4|0:0)|0}e=e+1|0;c=i[a+216>>2];if(e>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}return 0}function hl(a,b,c){var d=0,e=0,f=0,h=0;d=J-48|0;J=d;f=Ih(a,b);if((f|0)!=(a+4|0)){bl(a,f)}f=0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=i[c>>2];e=i[c+4>>2]-h|0;if(e){rb(d,e);h=i[c>>2];c=i[d>>2]}else{c=0}pn(c,h,e);h=Gm(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;c=i[d>>2];e=i[d+4>>2]-c|0;b=0;a:{if(!e){break a}rb(d+28|0,e);c=i[d>>2];f=i[d+4>>2]-c|0;b=i[d+28>>2]}pn(b,c,f);cl(d+40|0,a,h,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;nn(a)}if(g[d+27|0]<=-1){nn(i[d+16>>2])}a=i[d>>2];if(a){i[d+4>>2]=a;nn(a)}J=d+48|0}function Qc(a,b){var c=0,d=0;c=J-32|0;J=c;a:{b:{if(i[a+8>>2]<<5>>>0>=b>>>0){break b}i[c+24>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;if((b|0)<=-1){break a}b=(b+ -1>>>5|0)+1|0;d=Dm(b<<2);i[c+24>>2]=b;i[c+20>>2]=0;i[c+16>>2]=d;b=i[a>>2];i[c+12>>2]=0;i[c+8>>2]=b;d=i[a+4>>2];i[c+4>>2]=d&31;i[c>>2]=b+(d>>>3&536870908);Rc(c+16|0,c+8|0,c);b=i[a>>2];i[a>>2]=i[c+16>>2];i[c+16>>2]=b;d=i[a+4>>2];i[a+4>>2]=i[c+20>>2];i[c+20>>2]=d;d=i[a+8>>2];i[a+8>>2]=i[c+24>>2];i[c+24>>2]=d;if(!b){break b}nn(b)}J=c+32|0;return}Sm();x()}function Ff(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=i[a+216>>2];if((c|0)!=i[a+220>>2]){while(1){a:{c=i[o(e,144)+c>>2];if((c|0)<0){break a}f=i[a+4>>2];d=i[f+8>>2];if((c|0)>=i[f+12>>2]-d>>2){break a}c=i[d+(c<<2)>>2];if((M[i[i[c>>2]+24>>2]](c)|0)<1){break a}d=0;while(1){if((M[i[i[c>>2]+20>>2]](c,d)|0)!=(b|0)){d=d+1|0;if((d|0)<(M[i[i[c>>2]+24>>2]](c)|0)){continue}break a}break}return(i[a+216>>2]+o(e,144)|0)+104|0}e=e+1|0;c=i[a+216>>2];if(e>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}return a+184|0}function Fb(a,b,c,d){var e=0,f=0,g=0,h=p(0),k=0,l=0,n=0;e=J-32|0;J=e;f=i[c>>2];h=m[c+4>>2];l=Kh(e+24|0);f=-1<>2];if((c|0)!=i[b>>2]){a=i[d+28>>2];while(1){g=i[c>>2];k=i[c+4>>2];h=m[l>>2];m[e+16>>2]=h*p(i[c+8>>2]-f|0);m[e+12>>2]=h*p(k-f|0);m[e+8>>2]=h*p(g-f|0);k=i[d+16>>2];g=i[k>>2];if(!j[g+84|0]){a=i[i[g+68>>2]+(a<<2)>>2]}n=a;a=i[g+40>>2];pn(i[i[g>>2]>>2]+o(n,a)|0,(e+8|0)+(i[k+4>>2]<<2)|0,a);a=i[d+28>>2]+1|0;i[d+28>>2]=a;c=c+12|0;if((c|0)!=i[b>>2]){continue}break}}J=e+32|0}function th(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=Dm(72);ab(f);a:{if((b|0)>=0){g=a+8|0;c=i[a+12>>2];h=i[a+8>>2];d=c-h>>2;b:{if((d|0)>(b|0)){break b}e=b+1|0;if(d>>>0<=b>>>0){Kf(g,e-d|0);break b}if(e>>>0>=d>>>0){break b}e=h+(e<<2)|0;if((e|0)!=(c|0)){while(1){c=c+ -4|0;d=i[c>>2];i[c>>2]=0;if(d){M[i[i[d>>2]+4>>2]](d)}if((c|0)!=(e|0)){continue}break}}i[a+12>>2]=e}c=i[g>>2]+(b<<2)|0;a=i[c>>2];i[c>>2]=f;if(!a){break a}M[i[i[a>>2]+4>>2]](a);break a}M[i[i[f>>2]+4>>2]](f)}return(b^-1)>>>31|0}function tb(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;a:{b:{if(b){if(b>>>0>=357913942){break b}e=o(b,12);b=Dm(e);i[a>>2]=b;i[a+4>>2]=b;f=b+e|0;i[a+8>>2]=f;g=i[c>>2];d=i[c+4>>2]-g|0;h=d>>2;j=h>>>0<1073741824;k=(d|0)<1;l=d>>>2<<2;while(1){i[b+8>>2]=0;i[b>>2]=0;i[b+4>>2]=0;if(d){if(!j){break a}c=Dm(d);i[b>>2]=c;i[b+4>>2]=c;i[b+8>>2]=c+(h<<2);e=b;if(!k){c=pn(c,g,d)+l|0}i[e+4>>2]=c}b=b+12|0;if((f|0)!=(b|0)){continue}break}i[a+4>>2]=f}return}Sm();x()}Sm();x()}function Vb(a){var b=0,c=0,d=0,e=0,f=0;b=i[a+8>>2];a:{if(j[b+84|0]){break a}c=i[a+16>>2];if(!c|!j[c+84|0]){break a}d=i[b+72>>2];e=i[b+68>>2];g[c+84|0]=0;d=d-e>>2;f=i[c+68>>2];e=i[c+72>>2]-f>>2;b:{if(d>>>0>e>>>0){Wb(c+68|0,d-e|0,1968);b=i[a+8>>2];break b}if(d>>>0>=e>>>0){break b}i[c+72>>2]=f+(d<<2)}if(j[b+84|0]){break a}c=i[b+68>>2];b=i[b+72>>2]-c|0;if(!b){break a}d=b>>2;e=i[i[a+16>>2]+68>>2];b=0;while(1){f=b<<2;i[f+e>>2]=i[c+f>>2];b=b+1|0;if(b>>>0>>0){continue}break}}return i[a+16>>2]}function il(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=J-16|0;J=e;f=a+12|0;j=Ih(f,b);k=a+16|0;a:{if((j|0)!=(k|0)){break a}g=Pe(f,e+12|0,b);d=i[g>>2];if(!d){d=Dm(32);Gm(d+16|0,b);i[d+28>>2]=0;i[d+8>>2]=i[e+12>>2];i[d>>2]=0;i[d+4>>2]=0;i[g>>2]=d;b=i[i[f>>2]>>2];h=d;b:{if(!b){break b}i[f>>2]=b;h=i[g>>2]}b=h;Me(i[a+16>>2],b);a=a+20|0;i[a>>2]=i[a>>2]+1}b=i[c>>2];i[c>>2]=0;c=d+28|0;a=i[c>>2];i[c>>2]=b;if(!a){break a}qh(a+12|0,i[a+16>>2]);rh(a,i[a+4>>2]);nn(a)}J=e+16|0;return(j|0)==(k|0)}function gh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{c=i[a+8>>2];b:{if((c|0)<0){break b}d=i[a+4>>2];b=i[d>>2];e=i[d+4>>2]-b>>2;c:{if(c>>>0>e>>>0){hh(d,c-e|0);f=i[a+8>>2];break c}f=c;if(c>>>0>=e>>>0){break c}i[d+4>>2]=b+(c<<2);f=c}g=f;if((f|0)<1){break b}a=i[a+4>>2];b=i[a+4>>2];d=i[a>>2];a=b-d|0;e=(a|0)>-1?a:-1;b=d-b|0;b=o((e|0)<1?e:1,((b|0)>(a|0)?b:a)>>>2|0);a=0;while(1){if((a|0)==(b|0)){break a}i[d+(a<<2)>>2]=a;a=a+1|0;if((a|0)<(g|0)){continue}break}}return(c^-1)>>>31|0}Tm();x()}function bi(a,b){var c=0,d=0;c=J-96|0;J=c;qn(c+16|0,0,76);i[c+92>>2]=-1;i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;a:{if(ci(c+16|0,a,c)){a=i[b>>2];if(a){i[b+4>>2]=a;nn(a)}i[b>>2]=i[c>>2];i[b+4>>2]=i[c+4>>2];i[b+8>>2]=i[c+8>>2];d=i[c+84>>2];break a}a=i[c>>2];if(!a){break a}i[c+4>>2]=a;nn(a)}a=i[c+72>>2];if(a){nn(a)}a=i[c+48>>2];if(a){i[c+52>>2]=a;nn(a)}a=i[c+36>>2];if(a){i[c+40>>2]=a;nn(a)}a=i[c+24>>2];if(a){i[c+28>>2]=a;nn(a)}a=i[c+20>>2];i[c+20>>2]=0;if(a){Qf(c+16|4,a)}J=c+96|0;return d}function Kk(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=14760;b=i[a+68>>2];if(b){i[a+72>>2]=b;nn(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;nn(b)}b=i[a+44>>2];if(b){i[a+48>>2]=b;nn(b)}b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;nn(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){Sa(b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;nn(b)}b=i[a+4>>2];i[a+4>>2]=0;if(b){lh(b)}return a|0}function _f(a){var b=0,c=0,d=0,e=0;c=1;d=i[a+140>>2];a:{if((d|0)<1){break a}b=d<<4;c=Dm((d|0)!=(d&268435455)?-1:b|4);i[c>>2]=d;c=c+4|0;d=c+b|0;b=c;while(1){b=ze(b)+16|0;if((d|0)!=(b|0)){continue}break}e=i[a+136>>2];i[a+136>>2]=c;if(e){d=e+ -4|0;c=i[d>>2];if(c){b=e+(c<<4)|0;while(1){b=b+ -16|0;if((e|0)!=(b|0)){continue}break}}nn(d)}c=1;if(i[a+140>>2]<1){break a}b=0;while(1){c=Ae(i[a+136>>2]+(b<<4)|0,a);if(!c){break a}b=b+1|0;if((b|0)>2]){continue}break}}return c}function ei(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a>>2];a=i[e+4>>2];d=i[e+8>>2];if(a>>>0>>0){i[a>>2]=i[b>>2];i[e+4>>2]=a+4;return}a:{f=i[e>>2];g=a-f|0;a=g>>2;c=a+1|0;if(c>>>0<1073741824){h=a<<2;d=d-f|0;a=d>>1;c=d>>2>>>0<536870911?a>>>0>>0?c:a:1073741823;a=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}a=Dm(c<<2)}d=h+a|0;i[d>>2]=i[b>>2];b=a+(c<<2)|0;c=d+4|0;if((g|0)>=1){pn(a,f,g)}i[e+8>>2]=b;i[e+4>>2]=c;i[e>>2]=a;if(f){nn(f)}return}Sm();x()}Ba(14112);x()}function Kb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a=i[a+4>>2];if(a){c=j[b+11|0];d=c<<24>>24<0;g=d?i[b>>2]:b;b=d?i[b+4>>2]:c;while(1){c=j[a+27|0];d=c<<24>>24<0;c=d?i[a+20>>2]:c;h=c>>>0>>0;a:{b:{f=h?c:b;c:{if(f){e=a+16|0;d=d?i[e>>2]:e;e=Nl(g,d,f);d:{if(!e){if(b>>>0>=c>>>0){break d}break a}if((e|0)<=-1){break a}}c=Nl(d,g,f);if(!c){break c}if((c|0)<=-1){break b}return 1}if(b>>>0>>0){break a}}if(h){break b}return 1}a=a+4|0}a=i[a>>2];if(a){continue}break}}return 0}function zk(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=qn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=Dm(d<<2)}b=b<<2;b=qn(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){pn(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){nn(f)}return}Sm();x()}Ba(14288);x()}function ye(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=qn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=Dm(d<<2)}b=b<<2;b=qn(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){pn(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){nn(f)}return}Sm();x()}Ba(10988);x()}function hh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=qn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=Dm(d<<2)}b=b<<2;b=qn(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){pn(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){nn(f)}return}Sm();x()}Ba(13352);x()}function na(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=qn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=Dm(d<<2)}b=b<<2;b=qn(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){pn(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){nn(f)}return}Sm();x()}Ba(1244);x()}function Ra(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=qn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=Dm(d<<2)}b=b<<2;b=qn(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){pn(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){nn(f)}return}Sm();x()}Ba(1496);x()}function _h(a,b){var c=0,d=0,e=0,f=0;c=J-32|0;J=c;d=xn(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){f=d+16&-16;e=Dm(f);i[c+24>>2]=f|-2147483648;i[c+16>>2]=e;i[c+20>>2]=d;break b}g[c+27|0]=d;e=c+16|0;if(!d){break a}}pn(e,b,d)}g[d+e|0]=0;g[c+4|0]=0;i[c>>2]=1701667182;g[c+11|0]=4;d=i[a+4>>2];b=-1;c:{if(!d){break c}d=_k(d,c,c+16|0);b=-1;if(!d){break c}b=ol(a,i[d+24>>2])}if(g[c+11|0]<=-1){nn(i[c>>2])}if(g[c+27|0]<=-1){nn(i[c+16>>2])}J=c+32|0;return b}Fm();x()}function bf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>3>>>0>=b>>>0){if(b){b=b<<3;c=qn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>3;d=g+b|0;if(d>>>0<536870912){c=0;g=g<<3;e=e-f|0;j=e>>2;d=e>>3>>>0<268435455?j>>>0>>0?d:j:536870911;if(d){if(d>>>0>=536870912){break a}c=Dm(d<<3)}b=b<<3;b=qn(c+g|0,0,b)+b|0;d=(d<<3)+c|0;if((h|0)>=1){pn(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){nn(f)}return}Sm();x()}Ba(11186);x()}function ii(a,b,c){var d=0,e=0,f=0,h=0,j=0;d=J-32|0;J=d;f=g[a+24|0];e=i[3527];i[d+24>>2]=i[3526];i[d+28>>2]=e;e=i[3525];i[d+16>>2]=i[3524];i[d+20>>2]=e;a:{e=$c(a,b,f,d+16|0);if(e){i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a=0;if(f){if((f|0)<=-1){break a}b=f<<2;a=Dm(b);i[d>>2]=a;h=(f<<2)+a|0;i[d+8>>2]=h;pn(a,d+16|0,b);i[d+4>>2]=h;j=h}b=i[c>>2];if(b){i[c+4>>2]=b;nn(b);h=i[d+8>>2];j=i[d+4>>2];a=i[d>>2]}i[c+8>>2]=h;i[c+4>>2]=j;i[c>>2]=a}J=d+32|0;return e}Sm();x()}function hc(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=2048;b=i[a+60>>2];i[a+60>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;nn(b)}d=i[a+36>>2];if(d){b=d;c=i[a+40>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+36>>2]}b=e;i[a+40>>2]=d;nn(b)}i[a>>2]=1360;b=i[a+16>>2];if(b){i[a+20>>2]=b;nn(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;nn(b)}return a|0}function Rl(a,b){a:{if(a){if(b>>>0<=127){break a}b:{if(!i[i[4224]>>2]){if((b&-128)==57216){break a}break b}if(b>>>0<=2047){g[a+1|0]=b&63|128;g[a|0]=b>>>6|192;return 2}if(!((b&-8192)!=57344?b>>>0>=55296:0)){g[a+2|0]=b&63|128;g[a|0]=b>>>12|224;g[a+1|0]=b>>>6&63|128;return 3}if(b+ -65536>>>0<=1048575){g[a+3|0]=b&63|128;g[a|0]=b>>>18|240;g[a+2|0]=b>>>6&63|128;g[a+1|0]=b>>>12&63|128;return 4}}i[4312]=25;a=-1}else{a=1}return a}g[a|0]=b;return 1}function ic(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=2048;b=i[a+60>>2];i[a+60>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;nn(b)}d=i[a+36>>2];if(d){b=d;c=i[a+40>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+36>>2]}b=e;i[a+40>>2]=d;nn(b)}i[a>>2]=1360;b=i[a+16>>2];if(b){i[a+20>>2]=b;nn(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;nn(b)}nn(a)}function ug(a){var b=0,c=0,d=0,e=0;b=i[a+196>>2];if(b){i[a+200>>2]=b;nn(b)}b=i[a+184>>2];if(b){c=i[a+188>>2];d=b;a:{if((b|0)==(c|0)){break a}while(1){d=c+ -12|0;e=i[d>>2];if(e){i[c+ -8>>2]=e;nn(e)}c=d;if((c|0)!=(b|0)){continue}break}d=i[a+184>>2]}i[a+188>>2]=b;nn(d)}b=i[a+156>>2];if(b){i[a+160>>2]=b;nn(b)}b=i[a+136>>2];i[a+136>>2]=0;if(b){c=b+ -4|0;a=i[c>>2];if(a){a=b+(a<<4)|0;while(1){a=a+ -16|0;if((b|0)!=(a|0)){continue}break}}nn(c)}}function Ph(a,b,c){var d=0,e=0,f=0,h=0;d=J-32|0;J=d;e=xn(b);if(e>>>0<4294967280){a:{b:{if(e>>>0>=11){h=e+16&-16;f=Dm(h);i[d+24>>2]=h|-2147483648;i[d+16>>2]=f;i[d+20>>2]=e;break b}g[d+27|0]=e;f=d+16|0;if(!e){break a}}pn(f,b,e)}g[e+f|0]=0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;el(a,d+16|0,d);a=i[c>>2];if(a){i[c+4>>2]=a;nn(a)}i[c>>2]=i[d>>2];i[c+4>>2]=i[d+4>>2];i[c+8>>2]=i[d+8>>2];if(g[d+27|0]<=-1){nn(i[d+16>>2])}J=d+32|0;return}Fm();x()}function va(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J-16|0;J=d;e=i[a+4>>2];a:{if((e|0)==-1){break a}c=i[b+20>>2];if((c|0)>0?1:(c|0)>=0?l[b+16>>2]>0:0){break a}fa(b,i[b+4>>2],i[a+8>>2],i[a+12>>2]);c=i[b+20>>2];if((c|0)>0?1:(c|0)>=0?l[b+16>>2]>=1:0){break a}c=a+20|0;fa(b,i[b+4>>2],c,c+4|0);c=i[b+20>>2];f=i[b+16>>2];g[d+15|0]=i[a+4>>2];if((c|0)>0?1:(c|0)>=0?f>>>0>0:0){break a}fa(b,i[b+4>>2],d+15|0,d+16|0)}J=d+16|0;return(e|0)!=-1|0}function pi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>1>>>0>=b>>>0){if(b){b=b<<1;c=qn(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];g=c-f|0;h=g>>1;d=h+b|0;if((d|0)>-1){c=0;e=e-f|0;d=e>>1>>>0<1073741823?e>>>0>>0?d:e:2147483647;if(d){if((d|0)<=-1){break a}c=Dm(d<<1)}b=b<<1;b=qn((h<<1)+c|0,0,b)+b|0;d=(d<<1)+c|0;if((g|0)>=1){pn(c,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){nn(f)}return}Sm();x()}Ba(14112);x()}function Ig(a,b){var c=0,d=0,e=0,f=0,g=0;d=i[a+4>>2];a=i[d+4>>2];if((a|0)!=i[d+8>>2]){i[a>>2]=b;i[d+4>>2]=a+4;return}a:{f=i[d>>2];g=a-f|0;e=g>>2;c=e+1|0;if(c>>>0<1073741824){a=g>>1;c=e>>>0<536870911?a>>>0>>0?c:a:1073741823;a=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}a=Dm(c<<2)}e=a+(e<<2)|0;i[e>>2]=b;b=a+(c<<2)|0;c=e+4|0;if((g|0)>=1){pn(a,f,g)}i[d+8>>2]=b;i[d+4>>2]=c;i[d>>2]=a;if(f){nn(f)}return}Sm();x()}Ba(12220);x()}function Fk(a,b){var c=0,d=0,e=0,f=0,g=0;c=i[a+4>>2];if((c|0)!=i[a+8>>2]){i[c>>2]=i[b>>2];i[a+4>>2]=c+4;return}a:{f=i[a>>2];g=c-f|0;e=g>>2;d=e+1|0;if(d>>>0<1073741824){c=g>>1;d=e>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=Dm(d<<2)}e=c+(e<<2)|0;i[e>>2]=i[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){pn(c,f,g)}i[a+8>>2]=b;i[a+4>>2]=d;i[a>>2]=c;if(f){nn(f)}return}Sm();x()}Ba(14288);x()}function $f(a,b){var c=0,d=0,e=0,f=0,g=0;c=i[a+4>>2];if((c|0)!=i[a+8>>2]){i[c>>2]=i[b>>2];i[a+4>>2]=c+4;return}a:{f=i[a>>2];g=c-f|0;e=g>>2;d=e+1|0;if(d>>>0<1073741824){c=g>>1;d=e>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=Dm(d<<2)}e=c+(e<<2)|0;i[e>>2]=i[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){pn(c,f,g)}i[a+8>>2]=b;i[a+4>>2]=d;i[a>>2]=c;if(f){nn(f)}return}Sm();x()}Ba(12220);x()}function Ga(a,b){var c=0;g[a+24|0]=j[b+24|0];i[a+28>>2]=i[b+28>>2];g[a+32|0]=j[b+32|0];c=i[b+44>>2];i[a+40>>2]=i[b+40>>2];i[a+44>>2]=c;c=i[b+52>>2];i[a+48>>2]=i[b+48>>2];i[a+52>>2]=c;i[a+56>>2]=i[b+56>>2];c=i[b+12>>2];i[a+8>>2]=i[b+8>>2];i[a+12>>2]=c;c=i[b+20>>2];i[a+16>>2]=i[b+16>>2];i[a+20>>2]=c;i[a+60>>2]=i[b+60>>2];b=i[b>>2];if(!b){i[a>>2]=0;return 1}a=i[a>>2];if(!a){return 0}c=a;a=i[b>>2];xh(c,a,i[b+4>>2]-a|0,0);return 1}function Ek(a,b,c){var d=0,e=0,f=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;a:{b:{if(!b){break b}if((b|0)<=-1){break a}e=b+ -1>>>5|0;f=e+1|0;d=Dm(f<<2);i[a+8>>2]=f;i[a>>2]=d;f=j[c|0];i[a+4>>2]=b;i[(b>>>0<33?d:d+(e<<2)|0)>>2]=0;c=b>>>5|0;e=c<<2;if(f){d=qn(d,255,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;i[c>>2]=i[c>>2]|-1>>>32-b;return a}d=qn(d,0,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;i[c>>2]=i[c>>2]&(-1>>>32-b^-1)}return a}Sm();x()}function xk(a,b){var c=0,d=0,e=0;d=J-16|0;J=d;e=Dm(88);c=e;i[c>>2]=0;i[c+4>>2]=0;i[c+64>>2]=0;i[c+68>>2]=0;i[c+56>>2]=0;i[c+48>>2]=0;i[c+52>>2]=0;i[c+40>>2]=0;i[c+44>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+72>>2]=0;i[c+76>>2]=0;i[c+80>>2]=0;i[c+84>>2]=0;i[c+60>>2]=c;a:{if(yk(c,b)){i[a>>2]=e;break a}i[a>>2]=0;i[d+8>>2]=0;Qf(d+8|0,e)}J=d+16|0}function Xb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if((M[i[i[b>>2]+20>>2]](b)|0)>=1){while(1){c=ll(i[i[a+4>>2]+4>>2],M[i[i[b>>2]+24>>2]](b,d)|0);if((c|0)==-1){return 0}a:{e=i[a+4>>2];if(j[e+36|0]<=1){if(M[i[i[b>>2]+28>>2]](b,i[i[i[e+4>>2]+8>>2]+(c<<2)>>2])|0){break a}return 0}c=ph(e,c);if(!c){return 0}if(M[i[i[b>>2]+28>>2]](b,c)|0){break a}return 0}d=d+1|0;if((d|0)<(M[i[i[b>>2]+20>>2]](b)|0)){continue}break}}return 1}function Zg(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=fm(b)}d=i[a+4>>2];if(c>>>0>d>>>0){_g(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Jn(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=fm(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}_g(a,b)}}function Ql(a,b){var c=0;c=(b|0)!=0;a:{b:{c:{if(!b|!(a&3)){break c}while(1){if(!j[a|0]){break b}a=a+1|0;b=b+ -1|0;c=(b|0)!=0;if(!b){break c}if(a&3){continue}break}}if(!c){break a}}d:{if(!j[a|0]|b>>>0<4){break d}while(1){c=i[a>>2];if((c^-1)&c+ -16843009&-2139062144){break d}a=a+4|0;b=b+ -4|0;if(b>>>0>3){continue}break}}if(!b){break a}while(1){if(!j[a|0]){return a}a=a+1|0;b=b+ -1|0;if(b){continue}break}}return 0}function Hh(a,b){var c=0,d=0,e=0,f=0;d=J-16|0;J=d;Qm(d);e=Pe(a,d+12|0,b);c=i[e>>2];if(!c){c=Dm(40);Gm(c+16|0,b);i[c+36>>2]=0;i[c+28>>2]=0;i[c+32>>2]=0;i[c+8>>2]=i[d+12>>2];i[c>>2]=0;i[c+4>>2]=0;i[e>>2]=c;b=i[i[a>>2]>>2];f=c;a:{if(!b){break a}i[a>>2]=b;f=i[e>>2]}b=f;Me(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}a=c+28|0;if(g[c+39|0]<=-1){nn(i[a>>2])}b=i[d+4>>2];i[a>>2]=i[d>>2];i[a+4>>2]=b;i[a+8>>2]=i[d+8>>2];J=d+16|0}function cf(a,b,c){var d=0,e=0,f=0,h=0,j=0;a:{if(a>>>0>10){break a}e=i[c+16>>2];f=i[c+12>>2];d=i[c+20>>2];if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]<=e>>>0:0){break a}f=g[e+i[c>>2]|0];e=e+1|0;if(e>>>0<1){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;e=b;h=b;d=f;b:{if((d|0)<=-1){if(!cf(a+1|0,b,c)){break a}a=i[b+4>>2];b=i[b>>2];a=a<<7|b>>>25;b=d&127|b<<7;break b}a=0;b=d&255}i[h>>2]=b;i[e+4>>2]=a;j=1}return j}function Dh(a,b,c){var d=0,e=0,f=0,h=0,j=0;a:{if(a>>>0>10){break a}e=i[c+16>>2];f=i[c+12>>2];d=i[c+20>>2];if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]<=e>>>0:0){break a}f=g[e+i[c>>2]|0];e=e+1|0;if(e>>>0<1){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;e=b;h=b;d=f;b:{if((d|0)<=-1){if(!Dh(a+1|0,b,c)){break a}a=i[b+4>>2];b=i[b>>2];a=a<<7|b>>>25;b=d&127|b<<7;break b}a=0;b=d&255}i[h>>2]=b;i[e+4>>2]=a;j=1}return j}function Yf(a,b){var c=0,d=0,e=0,f=0;d=i[a+12>>2];c=i[a+16>>2]-d>>2;a:{if(c>>>0>>0){Ra(a+12|0,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+16>>2]=d+(b<<2)}b:{c=i[a>>2];c:{if(i[a+8>>2]-c>>2>>>0>=b>>>0){break c}if(b>>>0>=1073741824){break b}d=i[a+4>>2];e=b<<2;b=Dm(e);e=b+e|0;d=d-c|0;f=d+b|0;if((d|0)>=1){pn(b,c,d)}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b;if(!c){break c}nn(c)}return}Ba(12220);x()}function yb(a){ze(a);ze(a+16|0);ze(a+32|0);ze(a+48|0);ze(a- -64|0);ze(a+80|0);ze(a+96|0);ze(a+112|0);ze(a+128|0);ze(a+144|0);ze(a+160|0);ze(a+176|0);ze(a+192|0);ze(a+208|0);ze(a+224|0);ze(a+240|0);ze(a+256|0);ze(a+272|0);ze(a+288|0);ze(a+304|0);ze(a+320|0);ze(a+336|0);ze(a+352|0);ze(a+368|0);ze(a+384|0);ze(a+400|0);ze(a+416|0);ze(a+432|0);ze(a+448|0);ze(a+464|0);ze(a+480|0);ze(a+496|0)}function tn(a,b,c){var d=0,e=0,f=0;d=i[c+16>>2];a:{if(!d){if(sn(c)){break a}d=i[c+16>>2]}f=i[c+20>>2];if(d-f>>>0>>0){return M[i[c+36>>2]](c,a,b)|0}b:{if(g[c+75|0]<0){d=0;break b}e=b;while(1){d=e;if(!d){d=0;break b}e=d+ -1|0;if(j[e+a|0]!=10){continue}break}e=M[i[c+36>>2]](c,a,d)|0;if(e>>>0>>0){break a}a=a+d|0;b=b-d|0;f=i[c+20>>2]}pn(f,a,b);i[c+20>>2]=i[c+20>>2]+b;e=b+d|0}return e}function Ag(a,b){var c=0,d=0,e=0;a:{if((a|0)!=(b|0)){e=a;c=i[b+4>>2];d=0;b:{if(!c){break b}c:{if(c>>>0<=i[a+8>>2]<<5>>>0){d=i[a>>2];break c}d=i[a>>2];if(d){nn(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;c=i[b+4>>2]}if((c|0)<=-1){break a}c=(c+ -1>>>5|0)+1|0;d=Dm(c<<2);i[a+8>>2]=c;i[a+4>>2]=0;i[a>>2]=d;c=i[b+4>>2]}rn(d,i[b>>2],(c+ -1>>>3&536870908)+4|0);d=i[b+4>>2]}i[e+4>>2]=d}return}Sm();x()}function el(a,b,c){var d=0,e=0,f=0;a:{b=Ih(a,b);b:{if((b|0)==(a+4|0)){break b}a=i[b+28>>2];d=i[b+32>>2];if((a|0)==(d|0)){break b}a=d-a|0;if(a&3){break b}d=a>>>2|0;e=i[c+4>>2];a=i[c>>2];f=e-a>>2;c:{if(d>>>0>f>>>0){Ra(c,d-f|0);a=i[c>>2];e=i[c+4>>2];break c}if(d>>>0>=f>>>0){break c}e=(d<<2)+a|0;i[c+4>>2]=e}if((a|0)==(e|0)){break a}c=a;a=i[b+28>>2];pn(c,a,i[b+32>>2]-a|0)}return}Tm();x()}function Lf(a,b){var c=0;c=i[b+8>>2];i[a+12>>2]=i[b+4>>2];i[a+16>>2]=c;i[a+28>>2]=i[b+20>>2];c=i[b+16>>2];i[a+20>>2]=i[b+12>>2];i[a+24>>2]=c;Ag(a+32|0,b+24|0);Ag(a+44|0,b+36|0);if((a+8|0)==(b|0)){i[a+92>>2]=i[b+84>>2];return}Ma(a+56|0,i[b+48>>2],i[b+52>>2]);Ma(a+68|0,i[b+60>>2],i[b- -64>>2]);Ma(a+80|0,i[b+72>>2],i[b+76>>2]);i[a+92>>2]=i[b+84>>2];ua(a+96|0,i[b+88>>2],i[b+92>>2])}function bl(a,b){var c=0,d=0,e=0;c=i[b+4>>2];a:{if(!c){d=i[b+8>>2];if(i[d>>2]==(b|0)){break a}e=b+8|0;while(1){c=i[e>>2];e=c+8|0;d=i[c+8>>2];if((c|0)!=i[d>>2]){continue}break}break a}while(1){d=c;c=i[c>>2];if(c){continue}break}}if(i[a>>2]==(b|0)){i[a>>2]=d}i[a+8>>2]=i[a+8>>2]+ -1;jl(i[a+4>>2],b);a=i[b+28>>2];if(a){i[b+32>>2]=a;nn(a)}if(g[b+27|0]<=-1){nn(i[b+16>>2])}nn(b)}function xf(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11360;b=i[a+48>>2];i[a+48>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}i[a>>2]=13492;b=i[a+20>>2];if(b){i[a+24>>2]=b;nn(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;nn(b)}return a|0}function yf(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11360;b=i[a+48>>2];i[a+48>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}i[a>>2]=13492;b=i[a+20>>2];if(b){i[a+24>>2]=b;nn(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;nn(b)}nn(a)}function sh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0;d=i[a+32>>2];c=d;e=i[c+8>>2];f=i[c+12>>2];b=i[c+20>>2];h=e;e=i[c+16>>2];c=e+4|0;if(c>>>0<4){b=b+1|0}g=c;c=b;a:{if((f|0)<(b|0)?1:(f|0)<=(b|0)?h>>>0>>0:0){break a}b=e+i[d>>2]|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[d+16>>2]=g;i[d+20>>2]=c;if((b|0)<0){break a}i[i[a+4>>2]+80>>2]=b;k=1}return k|0}function Qh(a,b){var c=0,d=0,e=0,f=0,h=0;c=J-32|0;J=c;i[c+24>>2]=0;i[c+28>>2]=0;d=xn(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=Dm(e);i[c+16>>2]=e|-2147483648;i[c+8>>2]=f;i[c+12>>2]=d;e=c+8|0;break b}g[c+19|0]=d;e=c+8|0;f=e;if(!d){break a}}pn(f,b,d)}g[d+f|0]=0;fl(a,c+8|0,c+24|0);h=n[c+24>>3];if(g[e+11|0]<=-1){nn(i[c+8>>2])}J=c+32|0;return h}Fm();x()}function Km(a,b,c,d,e,f,h){var j=0,k=0,l=0;j=J-16|0;J=j;if((b^-1)+ -17>>>0>=c>>>0){k=sm(a);a:{if(2147483623>b>>>0){i[j+8>>2]=b<<1;i[j+12>>2]=b+c;c=xm(i[mm(j+12|0,j+8|0)>>2]);break a}c=-18}l=c+1|0;c=ym(l);if(f){lm(c,h,f)}d=d-e|0;h=d;if(d){lm(c+f|0,e+k|0,h)}if((b|0)!=10){nn(k)}zm(a,c);Am(a,l);b=a;a=d+f|0;vm(b,a);g[j+7|0]=0;um(a+c|0,j+7|0);J=j+16|0;return}Fm();x()}function Rh(a,b,c){var d=0,e=0,f=0,h=0;d=J-16|0;J=d;e=xn(c);if(e>>>0<4294967280){a:{b:{if(e>>>0>=11){h=e+16&-16;f=Dm(h);i[d+8>>2]=h|-2147483648;i[d>>2]=f;i[d+4>>2]=e;break b}g[d+11|0]=e;f=d;if(!e){break a}}pn(f,c,e)}g[e+f|0]=0;a=a+16|0;c=0;c:{if(!gl(b,d,a)){break c}c=i[a>>2];if(g[a+11|0]<=-1){break c}c=a}if(g[d+11|0]<=-1){nn(i[d>>2])}J=d+16|0;return c}Fm();x()}function uh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=i[a+32>>2];b=d;f=i[b+12>>2];g=i[b+8>>2];h=f;c=i[b+20>>2];b=i[b+16>>2];e=b+4|0;if(e>>>0<4){c=c+1|0}if((h|0)>(c|0)?1:(h|0)>=(c|0)?g>>>0>=e>>>0:0){b=b+i[d>>2]|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[d+16>>2]=e;i[d+20>>2]=c;i[i[a+4>>2]+80>>2]=b}return((f|0)>(c|0)?1:(f|0)>=(c|0)?g>>>0>=e>>>0:0)|0}function rb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>>0>=b>>>0){if(b){c=qn(c,0,b)+b|0}i[a+4>>2]=c;return}f=i[a>>2];g=c-f|0;d=g+b|0;if((d|0)>-1){c=0;e=e-f|0;h=e<<1;d=e>>>0<1073741823?h>>>0>>0?d:h:2147483647;if(d){c=Dm(d)}d=c+d|0;b=qn(c+g|0,0,b)+b|0;if((g|0)>=1){pn(c,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){nn(f)}return}Sm();x()}function fn(a,b,c,d){g[a+53|0]=1;a:{if(i[a+4>>2]!=(c|0)){break a}g[a+52|0]=1;c=i[a+16>>2];if(!c){i[a+36>>2]=1;i[a+24>>2]=d;i[a+16>>2]=b;if((d|0)!=1|i[a+48>>2]!=1){break a}g[a+54|0]=1;return}if((b|0)==(c|0)){c=i[a+24>>2];if((c|0)==2){i[a+24>>2]=d;c=d}if(i[a+48>>2]!=1|(c|0)!=1){break a}g[a+54|0]=1;return}g[a+54|0]=1;i[a+36>>2]=i[a+36>>2]+1}}function De(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0;if(!b){i[c>>2]=0;return}g=0-j[a+12|0]&255;e=i[a+8>>2];while(1){h=d<<1;a:{if(e>>>0>4095){break a}d=i[a+4>>2];if((d|0)<1){break a}d=d+ -1|0;i[a+4>>2]=d;e=j[d+i[a>>2]|0]|e<<8}f=e&255;d=f>>>0>>0;k=f;f=o(e>>>8|0,g);e=d?k+f|0:(e-g|0)-f|0;i[a+8>>2]=e;d=d|h;b=b+ -1|0;if(b){continue}break}i[c>>2]=d}function gi(a,b,c){var d=0,e=0,f=0,g=0;a:{if(l[a+80>>2]>65535){break a}f=i[a+96>>2];d=i[a+100>>2]-f|0;a=(d|0)/12|0;e=o(a,6);g=(e|0)==(b|0);if(!d|(b|0)!=(e|0)){break a}g=1;e=a>>>0>1?a:1;a=0;while(1){b=o(a,6)+c|0;d=o(a,12)+f|0;h[b>>1]=i[d>>2];h[b+2>>1]=i[d+4>>2];h[b+4>>1]=i[d+8>>2];a=a+1|0;if((e|0)!=(a|0)){continue}break}}return g}function Oh(a,b){var c=0,d=0,e=0,f=0;c=J-16|0;J=c;i[c+12>>2]=0;d=xn(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=Dm(e);i[c+8>>2]=e|-2147483648;i[c>>2]=f;i[c+4>>2]=d;e=c;break b}g[c+11|0]=d;e=c;f=c;if(!d){break a}}pn(f,b,d)}g[d+f|0]=0;dl(a,c,c+12|0);a=i[c+12>>2];if(g[e+11|0]<=-1){nn(i[c>>2])}J=c+16|0;return a}Fm();x()}function Mf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J-16|0;J=d;i[a+4>>2]=b;b=i[b+64>>2];e=i[b>>2];b=i[b+4>>2];g[d+15|0]=0;Jf(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=i[a+4>>2];e=i[b+56>>2];b=i[b+52>>2];g[d+14|0]=0;Jf(a+36|0,e-b>>2,d+14|0);b=i[c+12>>2];i[a+16>>2]=i[c+8>>2];i[a+20>>2]=b;b=i[c+4>>2];i[a+8>>2]=i[c>>2];i[a+12>>2]=b;J=d+16|0}function xn(a){var b=0,c=0,d=0;a:{b:{b=a;if(!(b&3)){break b}if(!j[a|0]){return 0}while(1){b=b+1|0;if(!(b&3)){break b}if(j[b|0]){continue}break}break a}while(1){c=b;b=b+4|0;d=i[c>>2];if(!((d^-1)&d+ -16843009&-2139062144)){continue}break}if(!(d&255)){return c-a|0}while(1){d=j[c+1|0];b=c+1|0;c=b;if(d){continue}break}}return b-a|0}function oc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J-48|0;J=e;a:{if((d|0)!=1){i[a>>2]=0;break a}d=i[b+4>>2];b=i[b+12>>2];i[e+40>>2]=0;f=e+32|0;i[f>>2]=0;i[f+4>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;pc(e,c,b,d,e+8|0);b=i[f>>2];if(b){i[e+36>>2]=b;nn(b)}i[a>>2]=i[e>>2]}J=e+48|0}function an(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J+ -64|0;J=d;e=1;a:{if($m(a,b,0)){break a}e=0;if(!b){break a}b=bn(b);e=0;if(!b){break a}qn(d+8|4,0,52);i[d+56>>2]=1;i[d+20>>2]=-1;i[d+16>>2]=a;i[d+8>>2]=b;M[i[i[b>>2]+28>>2]](b,d+8|0,i[c>>2],1);a=i[d+32>>2];if((a|0)==1){i[c>>2]=i[d+24>>2]}e=(a|0)==1}a=e;J=d- -64|0;return a|0}function ec(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=M[i[i[a>>2]+24>>2]](a)|0;c=1;a:{if((e|0)<1){break a}d=i[i[a+36>>2]>>2];f=a+48|0;c=0;if(!(M[i[i[d>>2]+20>>2]](d,f,b)|0)){break a}d=1;while(1){c=d;if((e|0)!=(c|0)){d=c+1|0;g=i[i[a+36>>2]+(c<<2)>>2];if(M[i[i[g>>2]+20>>2]](g,f,b)|0){continue}}break}c=(c|0)>=(e|0)}return c|0}function dc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=M[i[i[a>>2]+24>>2]](a)|0;c=1;a:{if((e|0)<1){break a}d=i[i[a+36>>2]>>2];f=a+48|0;c=0;if(!(M[i[i[d>>2]+16>>2]](d,f,b)|0)){break a}d=1;while(1){c=d;if((e|0)!=(c|0)){d=c+1|0;g=i[i[a+36>>2]+(c<<2)>>2];if(M[i[i[g>>2]+16>>2]](g,f,b)|0){continue}}break}c=(c|0)>=(e|0)}return c|0}function rc(a,b,c){var d=0,e=0,f=0,h=0;d=J-80|0;J=d;e=Ea(d+16|0);f=i[i[a+8>>2]+56>>2];h=c<<24>>24;c=o(Fh(5),c);Fa(e,f,h,5,0,c,c>>31);c=Dm(96);e=Ja(c,e);i[d+8>>2]=c;g[c+84|0]=1;i[c+72>>2]=i[c+68>>2];Ka(e,b);i[d+8>>2]=0;b=i[a+16>>2];i[a+16>>2]=c;a:{if(!b){break a}Sa(b);a=i[d+8>>2];i[d+8>>2]=0;if(!a){break a}Sa(a)}J=d+80|0}function Qe(a,b,c,d){var e=0,f=0,g=0,h=0;if(!a){return 1}e=i[c+16>>2];g=i[c+12>>2];f=i[c+20>>2];a:{if((g|0)<(f|0)?1:(g|0)<=(f|0)?l[c+8>>2]<=e>>>0:0){break a}g=j[e+i[c>>2]|0];e=e+1|0;if(e>>>0<1){f=f+1|0}i[c+16>>2]=e;i[c+20>>2]=f;b:{switch(g|0){case 0:return Re(a,b,c,d);case 1:break b;default:break a}}h=Se(a,c,d)}return h}function jn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if($m(a,i[b+8>>2],e)){gn(b,c,d);return}a:{if(!$m(a,i[b>>2],e)){break a}if(!(i[b+20>>2]!=(c|0)?i[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}i[b+32>>2]=1;return}i[b+20>>2]=c;i[b+32>>2]=d;i[b+40>>2]=i[b+40>>2]+1;if(!(i[b+36>>2]!=1|i[b+24>>2]!=2)){g[b+54|0]=1}i[b+44>>2]=4}}function Pk(a){i[a>>2]=0;i[a+4>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;g[a+24|0]=1;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+88>>2]=0;i[a+92>>2]=0;i[a+68>>2]=a}function dm(a){var b=0,c=0,d=0,e=0,f=0;while(1){b=a;a=b+1|0;c=g[b|0];if((c|0)==32|c+ -9>>>0<5){continue}break}a:{b:{c:{c=g[b|0];switch(c+ -43|0){case 0:break b;case 2:break c;default:break a}}e=1}c=g[a|0];b=a;f=e}if(Pl(c)){while(1){d=(o(d,10)-g[b|0]|0)+48|0;a=g[b+1|0];b=b+1|0;if(Pl(a)){continue}break}}return f?d:0-d|0}function di(a,b){var c=0,d=0,e=0,f=0;c=J-16|0;J=c;i[a+68>>2]=0;i[a+72>>2]=0;i[a>>2]=b;Tk(c+8|0,b);d=i[c+8>>2];i[c+8>>2]=0;e=i[a+4>>2];i[a+4>>2]=d;if(e){f=a+4|0;Qf(f,e);d=i[c+8>>2];i[c+8>>2]=0;if(d){Qf(c+8|0,d)}d=i[f>>2]}if(d){e=i[b+100>>2];b=i[b+96>>2];g[c+7|0]=0;Jf(a+56|0,(e-b|0)/12|0,c+7|0)}J=c+16|0;return(d|0)!=0}function zg(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J-16|0;J=d;i[a+4>>2]=b;e=i[b>>2];b=i[b+4>>2];g[d+15|0]=0;Jf(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=i[a+4>>2];e=i[b+28>>2];b=i[b+24>>2];g[d+14|0]=0;Jf(a+36|0,e-b>>2,d+14|0);b=i[c+12>>2];i[a+16>>2]=i[c+8>>2];i[a+20>>2]=b;b=i[c+4>>2];i[a+8>>2]=i[c>>2];i[a+12>>2]=b;J=d+16|0}function ah(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!ah(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function af(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!af(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function Xk(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Xk(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function Qa(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Qa(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function Pf(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Pf(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function Nc(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Nc(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function Eb(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Eb(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function Be(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Be(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function wk(a){var b=0;i[a>>2]=0;i[a+4>>2]=0;i[a+56>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+32>>2]=0;i[a+36>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;b=a- -64|0;i[b>>2]=0;i[b+4>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+60>>2]=a}function lh(a){var b=0,c=0,d=0,e=0;if(a){d=i[a+24>>2];if(d){b=d;c=i[a+28>>2];e=b;a:{if((c|0)==(b|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){qh(b+12|0,i[b+16>>2]);rh(b,i[b+4>>2]);nn(b)}if((c|0)!=(d|0)){continue}break}e=i[a+24>>2]}b=e;i[a+28>>2]=d;nn(b)}qh(a+12|0,i[a+16>>2]);rh(a,i[a+4>>2]);nn(a)}}function Nh(a,b){var c=0,d=0,e=0,f=0;c=J-16|0;J=c;d=xn(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=Dm(e);i[c+8>>2]=e|-2147483648;i[c>>2]=f;i[c+4>>2]=d;e=c;break b}g[c+11|0]=d;e=c;f=c;if(!d){break a}}pn(f,b,d)}g[d+f|0]=0;a=Kb(a,c);if(g[e+11|0]<=-1){nn(i[c>>2])}J=c+16|0;return(a|0)!=0}Fm();x()}function sf(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=13492;b=i[a+20>>2];if(b){i[a+24>>2]=b;nn(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;nn(b)}return a|0}function Mk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J-16|0;J=d;e=i[c>>2];i[c>>2]=0;i[d+8>>2]=e;ql(a,b,d+8|0);c=i[d+8>>2];i[d+8>>2]=0;if(c){Sa(c)}e=i[a+84>>2];c=i[a+88>>2]-e>>2;a:{if((c|0)>(b|0)){break a}b=b+1|0;if(b>>>0>c>>>0){Nk(a+84|0,b-c|0);break a}if(b>>>0>=c>>>0){break a}i[a+88>>2]=e+(b<<2)}J=d+16|0}function ga(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;h=i[c+8>>2];f=i[c+16>>2];g=i[c+12>>2];d=g;e=i[c+20>>2];if((d|0)>(e|0)?1:(d|0)>=(e|0)?h>>>0>f>>>0:0){b=j[f+i[c>>2]|0];d=e;k=f+1|0;if(k>>>0<1){d=d+1|0}i[c+16>>2]=k;i[c+20>>2]=d;i[a+4>>2]=b}return((g|0)>(e|0)?1:(g|0)>=(e|0)?h>>>0>f>>>0:0)|0}function Om(a,b,c,d,e){var f=0,g=0,h=0;f=J-16|0;J=f;if(-17-b>>>0>=c>>>0){g=sm(a);a:{if(2147483623>b>>>0){i[f+8>>2]=b<<1;i[f+12>>2]=b+c;c=xm(i[mm(f+12|0,f+8|0)>>2]);break a}c=-18}h=c+1|0;c=ym(h);if(e){lm(c,g,e)}d=d-e|0;if(d){lm(c+e|0,e+g|0,d)}if((b|0)!=10){nn(g)}zm(a,c);Am(a,h);J=f+16|0;return}Fm();x()}function eh(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=13492;b=i[a+20>>2];if(b){i[a+24>>2]=b;nn(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;nn(b)}nn(a)}function _l(a,b,c){var d=0,e=0,f=0;a:{if((b|0)==1&a>>>0<0|b>>>0<1){d=a;break a}while(1){d=In(a,b,10,0);e=L;f=e;e=Gn(d,e,10,0);c=c+ -1|0;g[c|0]=a-e|48;e=b>>>0>9;a=d;b=f;if(e){continue}break}}if(d){while(1){c=c+ -1|0;a=(d>>>0)/10|0;g[c|0]=d-o(a,10)|48;b=d>>>0>9;d=a;if(b){continue}break}}return c}function Cg(a){a=a|0;var b=0;i[a+8>>2]=12528;i[a>>2]=12316;b=i[a+96>>2];if(b){i[a+100>>2]=b;nn(b)}b=i[a+80>>2];if(b){i[a+84>>2]=b;nn(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;nn(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;nn(b)}i[a+8>>2]=12764;b=i[a+44>>2];if(b){nn(b)}b=i[a+32>>2];if(b){nn(b)}return a|0}function Da(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,h=0,j=0;e=J+ -64|0;J=e;f=M[i[i[b>>2]+44>>2]](b,c)|0;b=M[i[i[b>>2]+40>>2]](b,c)|0;h=Ea(e);j=i[c+56>>2];c=b;b=o(Fh(b),f);Fa(h,j,f<<24>>24,c,0,b,b>>31);b=Dm(96);c=Ja(b,h);i[a>>2]=b;Ka(c,d);g[b+84|0]=1;i[b+72>>2]=i[b+68>>2];J=e- -64|0}function Dg(a){a=a|0;var b=0;i[a+8>>2]=12528;i[a>>2]=12316;b=i[a+96>>2];if(b){i[a+100>>2]=b;nn(b)}b=i[a+80>>2];if(b){i[a+84>>2]=b;nn(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;nn(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;nn(b)}i[a+8>>2]=12764;b=i[a+44>>2];if(b){nn(b)}b=i[a+32>>2];if(b){nn(b)}nn(a)}function Ka(a,b){var c=0,d=0,e=0;a:{if(i[a+64>>2]){break a}d=Dm(32);wh(d);c=i[a+64>>2];i[a+64>>2]=d;if(!c){break a}d=i[c>>2];if(d){i[c+4>>2]=d;nn(d)}nn(c)}c=Fh(i[a+28>>2]);c=o(c,g[a+24|0]);d=c;c=c>>31;e=xh(i[a+64>>2],0,Gn(d,c,b,0),L);if(e){Ha(a,i[a+64>>2],d,c);i[a+80>>2]=b}return e}function nl(a,b){var c=0,d=0,e=0;d=i[a+8>>2];c=i[a+12>>2];a:{if((d|0)!=(c|0)){a=c-d|0;e=(a|0)>-1?a:-1;c=d-c|0;a=o((e|0)<1?e:1,((c|0)>(a|0)?c:a)>>>2|0);e=a>>>0>1?a:1;a=0;while(1){c=i[(a<<2)+d>>2];if(i[c+60>>2]==(b|0)){break a}a=a+1|0;if((e|0)!=(a|0)){continue}break}}c=0}return c}function hi(a,b,c){var d=0,e=0,f=0,g=0,h=0;g=i[a+96>>2];e=i[a+100>>2]-g|0;a=(e|0)/12|0;if(!(!e|(b|0)!=(e|0))){h=a>>>0>1?a:1;a=0;while(1){d=o(a,12);f=d+c|0;d=d+g|0;i[f>>2]=i[d>>2];i[f+4>>2]=i[d+4>>2];i[f+8>>2]=i[d+8>>2];a=a+1|0;if((h|0)!=(a|0)){continue}break}}return(b|0)==(e|0)}function Cm(a,b,c){var d=0,e=0,f=0,h=0;f=J-16|0;J=f;e=c-b|0;if(e>>>0<=4294967279){a:{if(e>>>0<=10){wm(a,e);d=a;break a}h=xm(e)+1|0;d=ym(h);zm(a,d);Am(a,h);vm(a,e)}while(1){if((b|0)!=(c|0)){um(d,b);d=d+1|0;b=b+1|0;continue}break}g[f+15|0]=0;um(d,f+15|0);J=f+16|0;return}Fm();x()}function Ei(a,b){var c=0,d=0;c=i[a+4>>2];if(!c){return 0}b=i[i[i[a+8>>2]+(b<<2)>>2]+60>>2];if((b|0)<0){return 0}a=i[c+24>>2];c=i[c+28>>2];if((a|0)==(c|0)){return 0}a:{while(1){d=i[a>>2];if((b|0)==i[d+24>>2]){break a}a=a+4|0;if((c|0)!=(a|0)){continue}break}return 0}return d}function Bg(a){a=a|0;var b=0;i[a>>2]=12528;b=i[a+88>>2];if(b){i[a+92>>2]=b;nn(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;nn(b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;nn(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;nn(b)}i[a>>2]=12764;b=i[a+36>>2];if(b){nn(b)}b=i[a+24>>2];if(b){nn(b)}return a|0}function Cj(a){a=a|0;var b=0,c=0,d=0,e=0;if(a){if(g[a+27|0]<=-1){nn(i[a+16>>2])}c=i[a>>2];if(c){b=c;d=i[a+4>>2];e=b;a:{if((d|0)==(b|0)){break a}while(1){b=d+ -12|0;if(g[d+ -1|0]<=-1){nn(i[b>>2])}d=b;if((b|0)!=(c|0)){continue}break}e=i[a>>2]}b=e;i[a+4>>2]=c;nn(b)}nn(a)}}function Jg(a){a=a|0;var b=0;i[a>>2]=12528;b=i[a+88>>2];if(b){i[a+92>>2]=b;nn(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;nn(b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;nn(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;nn(b)}i[a>>2]=12764;b=i[a+36>>2];if(b){nn(b)}b=i[a+24>>2];if(b){nn(b)}nn(a)}function gc(a,b,c){a=a|0;b=b|0;c=c|0;a:{b:{switch(c|0){case 0:b=Dm(20);Qb(b);break a;case 1:b=Dm(24);kc(b);break a;case 2:b=Dm(48);me(b);break a;case 3:b=Dm(32);kc(b);i[b+28>>2]=-1;i[b+24>>2]=1032;i[b>>2]=6844;break a;default:break b}}i[a>>2]=0;return}i[a>>2]=b}function Le(a,b,c,d){var e=0;e=J-16|0;J=e;c=Oe(a,b,e+12|0,e+8|0,c);if(!i[c>>2]){b=Dm(40);Gm(b+16|0,d);Gm(b+28|0,d+12|0);i[b+8>>2]=i[e+12>>2];i[b>>2]=0;i[b+4>>2]=0;i[c>>2]=b;d=i[i[a>>2]>>2];if(d){i[a>>2]=d;b=i[c>>2]}Me(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}J=e+16|0}function Rf(a){var b=0;b=i[a+84>>2];if(b){i[a+88>>2]=b;nn(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;nn(b)}b=i[a+52>>2];if(b){i[a+56>>2]=b;nn(b)}b=i[a+40>>2];if(b){i[a+44>>2]=b;nn(b)}b=i[a+28>>2];if(b){i[a+32>>2]=b;nn(b)}b=i[a+12>>2];if(b){nn(b)}a=i[a>>2];if(a){nn(a)}}function Qf(a,b){if(b){a=i[b+76>>2];if(a){i[b+80>>2]=a;nn(a)}a=i[b- -64>>2];if(a){i[b+68>>2]=a;nn(a)}a=i[b+48>>2];if(a){i[b+52>>2]=a;nn(a)}a=i[b+24>>2];if(a){i[b+28>>2]=a;nn(a)}a=i[b+12>>2];if(a){i[b+16>>2]=a;nn(a)}a=i[b>>2];if(a){i[b+4>>2]=a;nn(a)}nn(b)}}function Ce(a){var b=0,c=0,d=0,e=0,f=0;d=j[a+12|0];c=i[a+8>>2];a:{if(c>>>0>4095){break a}b=i[a+4>>2];if((b|0)<1){break a}b=b+ -1|0;i[a+4>>2]=b;c=j[b+i[a>>2]|0]|c<<8}d=0-d&255;b=o(d,c>>>8|0);e=c&255;f=e>>>0>>0;i[a+8>>2]=f?b+e|0:(c-d|0)-b|0;return f}function En(a,b,c,d){var e=0,f=0,g=0,h=0;e=b;f=e>>31;e=e>>31;a=a^e;g=a-e|0;h=(b^f)-((a>>>0>>0)+f|0)|0;e=d;f=e>>31;e=e>>31;a=c^e;e=In(g,h,a-e|0,(d^f)-((a>>>0>>0)+f|0)|0);b=b^d;c=b>>31;a=b>>31;b=e^a;d=b-a|0;L=(c^L)-((b>>>0>>0)+c|0)|0;return d}function fl(a,b,c){var d=0;a:{d=a+4|0;a=Ih(a,b);if((d|0)==(a|0)){break a}b=i[a+32>>2];a=i[a+28>>2];if((b-a|0)!=8){break a}b=j[a+4|0]|j[a+5|0]<<8|(j[a+6|0]<<16|j[a+7|0]<<24);i[c>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24);i[c+4>>2]=b}}function jm(a,b,c){var d=0,e=0,f=0,g=0;e=J-16|0;J=e;b=b-a>>2;while(1){if(b){i[e+12>>2]=a;d=e+12|0;f=d;g=i[d>>2];d=b>>>1|0;i[f>>2]=g+(d<<2);f=(d^-1)+b|0;b=d;d=km(i[e+12>>2],c);b=d?f:b;a=d?i[e+12>>2]+4|0:a;continue}break}J=e+16|0;return a}function ai(a,b,c){var d=0,e=0,f=0;d=J-16|0;J=d;a=i[a+96>>2];i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;e=Dm(12);f=e+12|0;a=pn(e,a+o(b,12)|0,12);b=a;e=a+12|0;a=i[c>>2];if(a){i[c+4>>2]=a;nn(a)}i[c+8>>2]=f;i[c+4>>2]=e;i[c>>2]=b;J=d+16|0;return 1}function Sa(a){a=a|0;var b=0,c=0;if(a){b=i[a+88>>2];i[a+88>>2]=0;if(b){c=i[b+8>>2];if(c){i[b+12>>2]=c;nn(c)}nn(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;nn(b)}b=i[a+64>>2];i[a+64>>2]=0;if(b){c=i[b>>2];if(c){i[b+4>>2]=c;nn(c)}nn(b)}nn(a)}}function te(a){a=a|0;var b=0;i[a+24>>2]=1140;i[a>>2]=10864;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}i[a>>2]=2264;b=i[a+20>>2];i[a+20>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}i[a>>2]=1884;b=i[a+16>>2];i[a+16>>2]=0;if(b){Sa(b)}return a|0}function pl(a,b){var c=0,d=0,e=0,f=0;c=J-16|0;J=c;d=i[a+12>>2];e=i[a+8>>2];f=i[b>>2];i[b>>2]=0;i[c+8>>2]=f;M[i[i[a>>2]+8>>2]](a,d-e>>2,c+8|0);b=i[c+8>>2];i[c+8>>2]=0;if(b){Sa(b)}J=c+16|0;return(i[a+12>>2]-i[a+8>>2]>>2)+ -1|0}function Dn(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=o(e,f);g=c&65535;h=a&65535;i=o(g,h);f=(i>>>16|0)+o(f,g)|0;e=(f&65535)+o(e,h)|0;a=(o(b,c)+j|0)+o(a,d)+(f>>>16)+(e>>>16)|0;b=i&65535|e<<16;L=a;return b}function ue(a){a=a|0;var b=0;i[a+24>>2]=1140;i[a>>2]=10864;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}i[a>>2]=2264;b=i[a+20>>2];i[a+20>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}i[a>>2]=1884;b=i[a+16>>2];i[a+16>>2]=0;if(b){Sa(b)}nn(a)}function zh(a){h[a+38>>1]=0;i[a>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;g[a+29|0]=0;g[a+30|0]=0;g[a+31|0]=0;g[a+32|0]=0;g[a+33|0]=0;g[a+34|0]=0;g[a+35|0]=0;g[a+36|0]=0;return a}function ea(a,b){a=a|0;b=b|0;var c=0,d=0;c=J-16|0;J=c;a=i[a+4>>2];a:{if((a|0)==-1){break a}g[c+15|0]=a;d=i[b+20>>2];if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break a}fa(b,i[b+4>>2],c+15|0,c+16|0)}J=c+16|0;return(a|0)!=-1|0}function yh(a,b){var c=0,d=0;d=i[a>>2];c=i[a+4>>2]-d|0;a:{if(c>>>0>>0){rb(a,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+4>>2]=b+d}b=a+24|0;c=b;d=b;a=i[b+4>>2];b=i[b>>2]+1|0;if(b>>>0<1){a=a+1|0}i[d>>2]=b;i[c+4>>2]=a}function Hm(a,b,c){var d=0,e=0,f=0;d=J-16|0;J=d;if(4294967279>=c>>>0){a:{if(c>>>0<=10){wm(a,c);e=a;break a}f=xm(c)+1|0;e=ym(f);zm(a,e);Am(a,f);vm(a,c)}lm(e,b,c);g[d+15|0]=0;um(c+e|0,d+15|0);J=d+16|0;return}Fm();x()}function oh(a){a=a|0;var b=0,c=0,d=0;b=i[a+8>>2];d=i[a+12>>2];if((b|0)==(d|0)){return 1}while(1){a:{c=i[b>>2];c=M[i[i[c>>2]+16>>2]](c,i[a+32>>2])|0;b=b+4|0;if((d|0)==(b|0)){break a}if(c){continue}}break}return c|0}function cn(a,b,c){var d=0;d=i[a+16>>2];if(!d){i[a+36>>2]=1;i[a+24>>2]=c;i[a+16>>2]=b;return}a:{if((b|0)==(d|0)){if(i[a+24>>2]!=2){break a}i[a+24>>2]=c;return}g[a+54|0]=1;i[a+24>>2]=2;i[a+36>>2]=i[a+36>>2]+1}}function $(a,b){a=a|0;b=b|0;var c=0,d=0;i[b>>2]=2;c=i[b+8>>2];d=i[b+12>>2]-c|0;if(d>>>0<=4294967291){b=b+8|0;yh(b,d+4|0);c=i[b>>2]}b=c+d|0;a=i[a+4>>2];g[b|0]=a;g[b+1|0]=a>>>8;g[b+2|0]=a>>>16;g[b+3|0]=a>>>24}function Eh(a){var b=0,c=0,d=0,e=0,f=0,h=0;g[a+36|0]=0;d=i[a+20>>2];e=a;f=a;h=i[a+16>>2];a=i[a+32>>2]+7|0;if(a>>>0<7){b=1}c=b>>>3|0;a=b<<29|a>>>3;b=h+a|0;c=c+d|0;i[f+16>>2]=b;i[e+20>>2]=b>>>0>>0?c+1|0:c}function ud(a){a=a|0;var b=0;i[a>>2]=5396;b=i[a+96>>2];if(b){nn(b)}b=i[a+84>>2];if(b){nn(b)}b=i[a+72>>2];if(b){nn(b)}b=i[a+60>>2];if(b){nn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}return a|0}function Jc(a){a=a|0;var b=0;i[a>>2]=3380;b=i[a+96>>2];if(b){nn(b)}b=i[a+84>>2];if(b){nn(b)}b=i[a+72>>2];if(b){nn(b)}b=i[a+60>>2];if(b){nn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}return a|0}function $l(a,b,c,d,e){var f=0;f=J-256|0;J=f;if(!(e&73728|(c|0)<=(d|0))){c=c-d|0;d=c>>>0<256;qn(f,b&255,d?c:256);if(!d){while(1){Vl(a,f,256);c=c+ -256|0;if(c>>>0>255){continue}break}}Vl(a,f,c)}J=f+256|0}function Jm(a,b,c){var d=0,e=0,f=0,h=0;e=J-16|0;J=e;d=qm(a);a:{if(d>>>0>=c>>>0){f=sm(a);h=f;d=c;if(c){rn(h,b,d)}g[e+15|0]=0;um(c+f|0,e+15|0);Bm(a,c);break a}f=a;a=pm(a);Km(f,d,c-d|0,a,a,c,b)}J=e+16|0}function vd(a){a=a|0;var b=0;i[a>>2]=5396;b=i[a+96>>2];if(b){nn(b)}b=i[a+84>>2];if(b){nn(b)}b=i[a+72>>2];if(b){nn(b)}b=i[a+60>>2];if(b){nn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}nn(a)}function Kc(a){a=a|0;var b=0;i[a>>2]=3380;b=i[a+96>>2];if(b){nn(b)}b=i[a+84>>2];if(b){nn(b)}b=i[a+72>>2];if(b){nn(b)}b=i[a+60>>2];if(b){nn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}nn(a)}function Mm(a,b){var c=0,d=0,e=0,f=0;e=J-16|0;J=e;if(b){d=qm(a);c=pm(a);f=c+b|0;if(d-c>>>0>>0){Om(a,d,f-d|0,c,c)}d=c;c=sm(a);d=d+c|0;if(b){qn(d,0,b)}Bm(a,f);g[e+15|0]=0;um(c+f|0,e+15|0)}J=e+16|0}function gl(a,b,c){var d=0,e=0;d=a+4|0;a=Ih(a,b);if((d|0)==(a|0)){return 0}b=i[a+32>>2];d=i[a+28>>2];if((b|0)!=(d|0)){Lm(c,b-d|0);e=Pm(c);c=i[a+28>>2];pn(e,c,i[a+32>>2]-c|0)}return(b|0)!=(d|0)}function ph(a,b){var c=0,d=0;a:{if((b|0)<0){break a}c=i[a+4>>2];if(i[c+12>>2]-i[c+8>>2]>>2<=(b|0)){break a}a=i[i[a+8>>2]+(i[i[a+20>>2]+(b<<2)>>2]<<2)>>2];d=M[i[i[a>>2]+32>>2]](a,b)|0}return d}function Ia(a){Ea(a);i[a+64>>2]=0;i[a+68>>2]=0;i[a+88>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;g[a+77|0]=0;g[a+78|0]=0;g[a+79|0]=0;g[a+80|0]=0;g[a+81|0]=0;g[a+82|0]=0;g[a+83|0]=0;g[a+84|0]=0;return a}function Ha(a,b,c,d){var e=0;i[a>>2]=b;e=i[b+20>>2];i[a+8>>2]=i[b+16>>2];i[a+12>>2]=e;e=i[b+24>>2];b=i[b+28>>2];i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=c;i[a+44>>2]=d;i[a+16>>2]=e;i[a+20>>2]=b}function sn(a){var b=0;b=j[a+74|0];g[a+74|0]=b+ -1|b;b=i[a>>2];if(b&8){i[a>>2]=b|32;return-1}i[a+4>>2]=0;i[a+8>>2]=0;b=i[a+44>>2];i[a+28>>2]=b;i[a+20>>2]=b;i[a+16>>2]=b+i[a+48>>2];return 0}function Zh(a,b,c,d){var e=0,f=0;e=J+ -64|0;J=e;f=zh(e+8|0);Ah(f,b,c);Ie(e+48|0,a,f,d);i[a+24>>2]=i[e+48>>2];Im(a+28|0,e+48|4);a=a+24|0;if(g[e+63|0]<=-1){nn(i[e+52>>2])}J=e- -64|0;return a}function Xh(a,b,c,d){var e=0,f=0;e=J+ -64|0;J=e;f=zh(e+8|0);Ah(f,b,c);He(e+48|0,a,f,d);i[a+24>>2]=i[e+48>>2];Im(a+28|0,e+48|4);a=a+24|0;if(g[e+63|0]<=-1){nn(i[e+52>>2])}J=e- -64|0;return a}function Ea(a){i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+28>>2]=9;g[a+24|0]=1;i[a+56>>2]=-1;i[a+60>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;return a}function om(a,b){var c=0,d=0;c=j[a|0];d=j[b|0];a:{if(!c|(c|0)!=(d|0)){break a}while(1){d=j[b+1|0];c=j[a+1|0];if(!c){break a}b=b+1|0;a=a+1|0;if((c|0)==(d|0)){continue}break}}return c-d|0}function ol(a,b){var c=0,d=0;c=i[a+8>>2];a=i[a+12>>2];if((c|0)!=(a|0)){d=a-c>>2;a=0;while(1){if(i[i[(a<<2)+c>>2]+60>>2]==(b|0)){return a}a=a+1|0;if(a>>>0>>0){continue}break}}return-1}function Ok(a,b){a=a|0;b=b|0;var c=0,d=0;sl(a,b);a:{if((b|0)<0){break a}c=i[a+88>>2];d=i[a+84>>2];if(c-d>>2<=(b|0)){break a}b=d+(b<<2)|0;d=b+4|0;c=c-d|0;if(c){rn(b,d,c)}i[a+88>>2]=b+c}}function qh(a,b){var c=0;if(b){qh(a,i[b>>2]);qh(a,i[b+4>>2]);c=b+28|0;a=i[c>>2];i[c>>2]=0;if(a){qh(a+12|0,i[a+16>>2]);rh(a,i[a+4>>2]);nn(a)}if(g[b+27|0]<=-1){nn(i[b+16>>2])}nn(b)}}function on(a){var b=0,c=0;b=i[4274];c=a+3&-4;a=b+c|0;a:{if(a>>>0<=b>>>0?(c|0)>=1:0){break a}if(a>>>0>Sn()<<16>>>0){if(!(F(a|0)|0)){break a}}i[4274]=a;return b}i[4312]=48;return-1}function jc(a,b){a=a|0;b=b|0;var c=0,d=0;d=i[a+16>>2];c=0;a:{if(i[a+20>>2]-d>>2<=(b|0)){break a}b=i[(b<<2)+d>>2];c=0;if((b|0)<0){break a}c=Vb(i[i[a+36>>2]+(b<<2)>>2])}return c|0}function dl(a,b,c){var d=0;a:{d=a+4|0;a=Ih(a,b);if((d|0)==(a|0)){break a}b=i[a+32>>2];a=i[a+28>>2];if((b-a|0)!=4){break a}i[c>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24)}}function Tg(a){a=a|0;var b=0;i[a+8>>2]=11956;i[a>>2]=13076;b=i[a+56>>2];if(b){i[a+60>>2]=b;nn(b)}i[a+8>>2]=12208;b=i[a+44>>2];if(b){nn(b)}b=i[a+32>>2];if(b){nn(b)}return a|0}function Ng(a){a=a|0;var b=0;i[a+8>>2]=12948;i[a>>2]=12784;b=i[a+56>>2];if(b){i[a+60>>2]=b;nn(b)}i[a+8>>2]=12764;b=i[a+44>>2];if(b){nn(b)}b=i[a+32>>2];if(b){nn(b)}return a|0}function Gm(a,b){var c=0,d=0,e=0;d=J-16|0;J=d;c=a;a:{if(!rm(b)){i[c+8>>2]=i[b+8>>2];e=i[b+4>>2];i[c>>2]=i[b>>2];i[c+4>>2]=e;break a}Hm(a,i[b>>2],i[b+4>>2])}J=d+16|0;return a}function Ug(a){a=a|0;var b=0;i[a+8>>2]=11956;i[a>>2]=13076;b=i[a+56>>2];if(b){i[a+60>>2]=b;nn(b)}i[a+8>>2]=12208;b=i[a+44>>2];if(b){nn(b)}b=i[a+32>>2];if(b){nn(b)}nn(a)}function Tb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=i[a+8>>2];if(g[d+24|0]<1){break a}if(!Ka(d,i[b+4>>2]-i[b>>2]>>2)){break a}return M[i[i[a>>2]+32>>2]](a,b,c)|0}return 0}function Og(a){a=a|0;var b=0;i[a+8>>2]=12948;i[a>>2]=12784;b=i[a+56>>2];if(b){i[a+60>>2]=b;nn(b)}i[a+8>>2]=12764;b=i[a+44>>2];if(b){nn(b)}b=i[a+32>>2];if(b){nn(b)}nn(a)}function Nl(a,b,c){var d=0,e=0,f=0;a:{if(!c){break a}while(1){d=j[a|0];e=j[b|0];if((d|0)==(e|0)){b=b+1|0;a=a+1|0;c=c+ -1|0;if(c){continue}break a}break}f=d-e|0}return f}function xd(a){a=a|0;var b=0;i[a>>2]=5632;b=i[a+76>>2];if(b){nn(b)}b=i[a+68>>2];i[a+68>>2]=0;if(b){nn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}return a|0}function Tc(a){a=a|0;var b=0;i[a>>2]=3628;b=i[a+76>>2];if(b){nn(b)}b=i[a+68>>2];i[a+68>>2]=0;if(b){nn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}return a|0}function Qm(a){var b=0,c=0,d=0,e=0;b=J-32|0;J=b;c=b+8|0;d=b+32|0;e=b+21|0;a:{if((d|0)==(e|0)){break a}}Rm(c,e,d);c=J-16|0;J=c;Cm(a,b+21|0,i[b+8>>2]);J=c+16|0;J=b+32|0}function Ca(a,b){var c=0;c=Dm(40);i[c>>2]=-1;wh(c+8|0);M[i[i[a>>2]+16>>2]](a,c);a=i[b+88>>2];i[b+88>>2]=c;if(a){b=i[a+8>>2];if(b){i[a+12>>2]=b;nn(b)}nn(a)}return 1}function yd(a){a=a|0;var b=0;i[a>>2]=5632;b=i[a+76>>2];if(b){nn(b)}b=i[a+68>>2];i[a+68>>2]=0;if(b){nn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}nn(a)}function Uc(a){a=a|0;var b=0;i[a>>2]=3628;b=i[a+76>>2];if(b){nn(b)}b=i[a+68>>2];i[a+68>>2]=0;if(b){nn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}nn(a)}function bm(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=J-16|0;J=e;a=em(I(i[a+60>>2],b|0,c|0,d&255,e+8|0)|0);J=e+16|0;L=a?-1:i[e+12>>2];return(a?-1:i[e+8>>2])|0}function tc(a){a=a|0;var b=0;i[a>>2]=2264;b=i[a+20>>2];i[a+20>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}i[a>>2]=1884;b=i[a+16>>2];i[a+16>>2]=0;if(b){Sa(b)}return a|0}function _(a,b){a=a|0;b=b|0;var c=0;b=i[b+88>>2];if(!(!b|i[b>>2]!=2)){c=a;a=i[b+8>>2];i[c+4>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24);c=1}return c|0}function kd(a){a=a|0;a:{if(!i[a- -64>>2]|!i[a+68>>2]|(!i[a+44>>2]|!i[a+48>>2])){break a}if(!i[a+52>>2]|!i[a+56>>2]){break a}return i[a+92>>2]!=-1|0}return 0}function ih(a){i[a+40>>2]=0;i[a>>2]=13492;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;h[a+36>>1]=0}function Wa(a,b){a=a|0;b=b|0;a:{if(!(M[i[i[a>>2]+36>>2]](a,b)|0)){break a}if(!(M[i[i[a>>2]+40>>2]](a,b)|0)){break a}return M[i[i[a>>2]+44>>2]](a)|0}return 0}function Nm(a,b){var c=0,d=0;c=J-16|0;J=c;a:{if(rm(a)){d=i[a>>2];g[c+15|0]=0;um(b+d|0,c+15|0);vm(a,b);break a}g[c+14|0]=0;um(a+b|0,c+14|0);wm(a,b)}J=c+16|0}function Nf(a){a=a|0;var b=0;i[a>>2]=11956;b=i[a+48>>2];if(b){i[a+52>>2]=b;nn(b)}i[a>>2]=12208;b=i[a+36>>2];if(b){nn(b)}b=i[a+24>>2];if(b){nn(b)}return a|0}function Mg(a){a=a|0;var b=0;i[a>>2]=12948;b=i[a+48>>2];if(b){i[a+52>>2]=b;nn(b)}i[a>>2]=12764;b=i[a+36>>2];if(b){nn(b)}b=i[a+24>>2];if(b){nn(b)}return a|0}function Wl(a){var b=0,c=0,d=0;if(Pl(g[i[a>>2]])){while(1){b=i[a>>2];d=g[b|0];i[a>>2]=b+1;c=(o(c,10)+d|0)+ -48|0;if(Pl(g[b+1|0])){continue}break}}return c}function Ud(a){a=a|0;a:{if(!i[a+48>>2]|!i[a+52>>2]|(!i[a+28>>2]|!i[a+32>>2])){break a}if(!i[a+36>>2]|!i[a+40>>2]){break a}return i[a+76>>2]!=-1|0}return 0}function $b(a,b){var c=0;Na(a);i[a+36>>2]=0;i[a+40>>2]=0;i[a>>2]=2048;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;c=i[b>>2];i[b>>2]=0;i[a+60>>2]=c}function uc(a){a=a|0;var b=0;i[a>>2]=2264;b=i[a+20>>2];i[a+20>>2]=0;if(b){M[i[i[b>>2]+4>>2]](b)}i[a>>2]=1884;b=i[a+16>>2];i[a+16>>2]=0;if(b){Sa(b)}nn(a)}function Jh(a,b){var c=0;b=Ih(a,b);a:{if((b|0)==(a+4|0)){break a}a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}a=dm(a);if((a|0)==-1){break a}c=(a|0)!=0}return c}function wg(a){a=a|0;var b=0;i[a>>2]=11956;b=i[a+48>>2];if(b){i[a+52>>2]=b;nn(b)}i[a>>2]=12208;b=i[a+36>>2];if(b){nn(b)}b=i[a+24>>2];if(b){nn(b)}nn(a)}function ab(a){Na(a);i[a+36>>2]=0;i[a+40>>2]=0;i[a>>2]=1572;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0}function Sg(a){a=a|0;var b=0;i[a>>2]=12948;b=i[a+48>>2];if(b){i[a+52>>2]=b;nn(b)}i[a>>2]=12764;b=i[a+36>>2];if(b){nn(b)}b=i[a+24>>2];if(b){nn(b)}nn(a)}function mc(a,b){a=a|0;b=b|0;var c=0,d=0;d=i[a+4>>2];a:{if(d){c=1;if(j[d+36|0]<2){break a}}c=M[i[i[a>>2]+48>>2]](a,i[b+4>>2]-i[b>>2]>>2)|0}return c|0}function Rm(a,b,c){var d=0,e=0;e=a;d=c-b|0;a:{if(!((1-(l[4056]>1)|0)>(d|0)?(d|0)<=9:0)){g[b|0]=49;i[a>>2]=b+1;a=0;break a}i[a>>2]=c;a=61}i[e+4>>2]=a}function $k(a,b){var c=0,d=0;a:{d=i[b>>2];if(!d){break a}c=i[a+28>>2];if(c>>>0>2]){i[b>>2]=0;i[c>>2]=d;i[a+28>>2]=c+4;break a}al(a+24|0,b)}}function kn(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if($m(a,i[b+8>>2],f)){fn(b,c,d,e);return}a=i[a+8>>2];M[i[i[a>>2]+20>>2]](a,b,c,d,e,f)}function pe(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(j[i[a+4>>2]+36|0]>=2){b=0;if(!(M[i[i[a>>2]+52>>2]](a)|0)){break a}}b=Ca(a+24|0,i[a+16>>2])}return b|0}function Yh(a,b,c){var d=0;d=J-16|0;J=d;Ie(d,a,b,c);i[a+24>>2]=i[d>>2];Im(a+28|0,d|4);a=a+24|0;if(g[d+15|0]<=-1){nn(i[d+4>>2])}J=d+16|0;return a}function Wh(a,b,c){var d=0;d=J-16|0;J=d;He(d,a,b,c);i[a+24>>2]=i[d>>2];Im(a+28|0,d|4);a=a+24|0;if(g[d+15|0]<=-1){nn(i[d+4>>2])}J=d+16|0;return a}function vh(a,b,c){var d=0,e=0,f=0;if((b|0)>0){while(1){e=d<<2;f=i[e+a>>2];i[c+e>>2]=0-(f&1)^f>>>1;d=d+1|0;if((d|0)!=(b|0)){continue}break}}}function oe(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if(j[i[a+4>>2]+36|0]<=1){d=0;if(!(M[i[i[a>>2]+52>>2]](a)|0)){break a}}d=qc(a,b,c)}return d|0}function ml(a){var b=0,c=0;b=i[a+20>>2];a:{if((i[a+24>>2]-b|0)<1){break a}b=i[b>>2];if((b|0)==-1){break a}c=i[i[a+8>>2]+(b<<2)>>2]}return c}function ll(a,b){var c=0;c=-1;a:{if((b|0)==-1|(b|0)>4){break a}b=o(b,12)+a|0;a=i[b+20>>2];if((i[b+24>>2]-a|0)<1){break a}c=i[a>>2]}return c}function Fa(a,b,c,d,e,f,h){i[a>>2]=0;i[a+56>>2]=b;i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=f;i[a+44>>2]=h;g[a+32|0]=e;i[a+28>>2]=d;g[a+24|0]=c}function ze(a){i[a>>2]=0;i[a+4>>2]=0;g[a+5|0]=0;g[a+6|0]=0;g[a+7|0]=0;g[a+8|0]=0;g[a+9|0]=0;g[a+10|0]=0;g[a+11|0]=0;g[a+12|0]=0;return a}function Yl(a,b,c,d){if(a|b){while(1){c=c+ -1|0;g[c|0]=j[(a&15)+15488|0]|d;a=(b&15)<<28|a>>>4;b=b>>>4|0;if(a|b){continue}break}}return c}function Nd(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(j[i[a+4>>2]+36|0]>=2){b=0;if(!ga(a+24|0,Vb(a),c)){break a}}b=Ca(a+24|0,i[a+16>>2])}return b|0}function Md(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if(j[i[a+4>>2]+36|0]<=1){d=0;if(!ga(a+24|0,i[a+8>>2],c)){break a}}d=qc(a,b,c)}return d|0}function Jk(a){a=a|0;var b=0;i[a>>2]=14364;b=i[a+96>>2];if(b){i[a+100>>2]=b;nn(b)}b=i[a+84>>2];if(b){i[a+88>>2]=b;nn(b)}Kk(a);return a|0}function Uh(a){var b=0;Gh(a);b=a+16|0;i[b>>2]=0;i[b+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+12>>2]=b;i[a+32>>2]=0;i[a+36>>2]=0;return a}function Lk(a){a=a|0;var b=0;i[a>>2]=14364;b=i[a+96>>2];if(b){i[a+100>>2]=b;nn(b)}b=i[a+84>>2];if(b){i[a+88>>2]=b;nn(b)}Kk(a);nn(a)}function Ld(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(!lc(a,b,c)){break a}a=i[a+8>>2];if(j[a+24|0]!=3){break a}return i[a+28>>2]==9|0}return 0}function rh(a,b){if(b){rh(a,i[b>>2]);rh(a,i[b+4>>2]);a=i[b+28>>2];if(a){i[b+32>>2]=a;nn(a)}if(g[b+27|0]<=-1){nn(i[b+16>>2])}nn(b)}}function Na(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=1360;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0}function ad(a){a=a|0;var b=0;i[a>>2]=3856;b=i[a+76>>2];if(b){nn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}return a|0}function Bd(a){a=a|0;var b=0;i[a>>2]=5848;b=i[a+76>>2];if(b){nn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}return a|0}function uj(){var a=0;a=Dm(28);i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;return a|0}function Ua(a){a=a|0;var b=0;i[a>>2]=1360;b=i[a+16>>2];if(b){i[a+20>>2]=b;nn(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;nn(b)}return a|0}function Em(a,b){var c=0,d=0,e=0,f=0;c=xn(b);d=Dm(c+13|0);i[d+8>>2]=0;i[d+4>>2]=c;i[d>>2]=c;e=a,f=pn(d+12|0,b,c+1|0),i[e>>2]=f}function Ne(a,b){if(b){Ne(a,i[b>>2]);Ne(a,i[b+4>>2]);if(g[b+39|0]<=-1){nn(i[b+28>>2])}if(g[b+27|0]<=-1){nn(i[b+16>>2])}nn(b)}}function en(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if($m(a,i[b+8>>2],0)){cn(b,c,d);return}a=i[a+8>>2];M[i[i[a>>2]+28>>2]](a,b,c,d)}function bd(a){a=a|0;var b=0;i[a>>2]=3856;b=i[a+76>>2];if(b){nn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}nn(a)}function Ik(a){kl(a);i[a+84>>2]=0;i[a+88>>2]=0;i[a>>2]=14364;i[a+92>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;i[a+104>>2]=0;return a}function Cd(a){a=a|0;var b=0;i[a>>2]=5848;b=i[a+76>>2];if(b){nn(b)}i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}nn(a)}function Dm(a){var b=0;a=a?a:1;a:{while(1){b=mn(a);if(b){break a}b=i[4331];if(b){M[b|0]();continue}break}E();x()}return b}function Zl(a,b,c){if(a|b){while(1){c=c+ -1|0;g[c|0]=a&7|48;a=(b&7)<<29|a>>>3;b=b>>>3|0;if(a|b){continue}break}}return c}function ej(){var a=0;a=Dm(24);i[a+4>>2]=0;i[a+8>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a>>2]=a+4;i[a+12>>2]=a+16;return a|0}function ta(a,b,c,d,e){var f=0;f=b+ -1|0;if(f>>>0<=29){i[a+4>>2]=b;ua(a+8|0,c,(d<<2)+c|0);m[a+20>>2]=e}return f>>>0<30}function pa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(i[c>>2]==i[c+4>>2]){qa(a,b,i[d+80>>2],d);return 1}ra(a,b,c,d);return 1}function Wi(){var a=0;a=Dm(24);i[a+8>>2]=0;i[a+12>>2]=0;i[a+4>>2]=-1;i[a>>2]=1140;i[a+16>>2]=0;i[a+20>>2]=0;return a|0}function me(a){kc(a);i[a+32>>2]=0;i[a+36>>2]=0;i[a+28>>2]=-1;i[a+24>>2]=1140;i[a>>2]=10864;i[a+40>>2]=0;i[a+44>>2]=0}function ne(a,b,c){a=a|0;b=b|0;c=c|0;if(lc(a,b,c)){a=i[i[i[i[b+4>>2]+8>>2]+(c<<2)>>2]+28>>2]==9}else{a=0}return a|0}function Rb(a,b,c){a=a|0;b=b|0;c=c|0;i[a+4>>2]=b;b=i[i[i[b+4>>2]+8>>2]+(c<<2)>>2];i[a+12>>2]=c;i[a+8>>2]=b;return 1}function Wc(a){a=a|0;var b=0;if(!(!i[a+60>>2]|!i[a+44>>2]|(!i[a+48>>2]|!i[a+52>>2]))){b=i[a+56>>2]!=0}return b|0}function Vh(a){var b=0;b=J-32|0;J=b;Ge(b+8|0,a);a=i[b+24>>2];if(g[b+23|0]<=-1){nn(i[b+12>>2])}J=b+32|0;return a}function $m(a,b,c){if(!c){return i[a+4>>2]==i[b+4>>2]}if((a|0)==(b|0)){return 1}return!om(i[a+4>>2],i[b+4>>2])}function wh(a){i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;return a}function Xm(a){var b=0,c=0;a:{b=i[a>>2]+ -12|0;c=b+8|0;a=i[c>>2]+ -1|0;i[c>>2]=a;if((a|0)>-1){break a}nn(b)}}function Fd(a){a=a|0;var b=0;i[a>>2]=6072;i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}return a|0} -function Da(a){var b=0;b=A(8)|0;i[b>>2]=16324;i[b>>2]=16368;Hm(b+4|0,a);i[b>>2]=16416;B(b|0,16448,13);x()}function te(a){a=a|0;var b=0,c=0;c=a+24|0;b=Xb(a);if(!b){b=i[a+8>>2]}return ya(c,b,i[i[a+4>>2]+32>>2])|0}function ek(a){a=a|0;if(a){if(g[a+39|0]<=-1){qn(i[a+28>>2])}fk(a+12|0,i[a+16>>2]);Pe(a,i[a+4>>2]);qn(a)}}function zg(a){a=a|0;var b=0;i[a>>2]=12208;b=i[a+36>>2];if(b){qn(b)}b=i[a+24>>2];if(b){qn(b)}return a|0}function jd(a){a=a|0;var b=0;i[a>>2]=4092;i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}return a|0}function Mg(a){a=a|0;var b=0;i[a>>2]=12764;b=i[a+36>>2];if(b){qn(b)}b=i[a+24>>2];if(b){qn(b)}return a|0}function yh(a){i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0}function Ec(a){a=a|0;var b=0;if(!(!i[a+52>>2]|(!i[a+44>>2]|!i[a+48>>2]))){b=i[a+56>>2]!=0}return b|0}function kd(a){a=a|0;var b=0;i[a>>2]=4092;i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}qn(a)}function Zc(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|!b|j[b+24|0]!=3)){i[a+60>>2]=b;c=1}return c|0}function Ng(a){a=a|0;var b=0;i[a>>2]=12764;b=i[a+36>>2];if(b){qn(b)}b=i[a+24>>2];if(b){qn(b)}qn(a)}function Id(a){a=a|0;var b=0;i[a>>2]=6072;i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}qn(a)}function Ag(a){a=a|0;var b=0;i[a>>2]=12208;b=i[a+36>>2];if(b){qn(b)}b=i[a+24>>2];if(b){qn(b)}qn(a)}function nd(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a- -64>>2]=b;c=1}return c|0}function ye(a){var b=0;i[a+16>>2]=0;b=i[a>>2];i[a+4>>2]=b;i[a+12>>2]=b;if(b){i[a+4>>2]=b;qn(b)}}function on(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(cn(a,i[b+8>>2],f)){jn(b,c,d,e)}}function Xd(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a+48>>2]=b;c=1}return c|0}function Dh(a,b,c,d){h[a+38>>1]=d;i[a>>2]=b;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=c;i[a+12>>2]=0}function Am(a){var b=0;if(a>>>0>=11){b=a+16&-16;a=b+ -1|0;a=(a|0)==11?b:a}else{a=10}return a}function Jc(a){a=a|0;var b=0;i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}return a|0}function Fn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=O[a|0](b,c,d,e)|0;J(N|0);return a|0}function $b(a){a=a|0;var b=0;i[a>>2]=1884;b=i[a+16>>2];i[a+16>>2]=0;if(b){Ua(b)}return a|0}function za(a){a=a|0;var b=0;i[a>>2]=1140;b=i[a+8>>2];if(b){i[a+12>>2]=b;qn(b)}return a|0}function ac(a){a=a|0;var b=0;i[a>>2]=1884;b=i[a+16>>2];i[a+16>>2]=0;if(b){Ua(b)}qn(a)}function Mn(a){var b=0,c=0;while(1){c=b;if(a){a=a-1&a;b=b+1|0;continue}break}return c}function Cc(a){a=a|0;var b=0;i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;qn(b)}qn(a)}function Aa(a){a=a|0;var b=0;i[a>>2]=1140;b=i[a+8>>2];if(b){i[a+12>>2]=b;qn(b)}qn(a)}function $j(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return zi(b,c,d,e,f)|0}function fk(a,b){if(b){fk(a,i[b>>2]);fk(a,i[b+4>>2]);Pe(b+20|0,i[b+24>>2]);qn(b)}}function Ch(a,b,c){i[a+16>>2]=0;i[a+20>>2]=0;i[a>>2]=b;i[a+8>>2]=c;i[a+12>>2]=0}function Sb(a){i[a+12>>2]=-1;i[a+16>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=1884}function Ni(a){a=a|0;var b=0;if(a){b=i[a+8>>2];if(b){i[a+12>>2]=b;qn(b)}qn(a)}}function gn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(cn(a,i[b+8>>2],0)){fn(b,c,d)}}function tf(a){a=a|0;if(i[a+44>>2]){return O[i[i[a>>2]+48>>2]](a)|0}return 0}function ca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return da(a,b,c,i[d+80>>2],d)|0}function zn(a,b){var c=0;c=L-16|0;L=c;i[c+12>>2]=b;Vl(i[4178],a,b);L=c+16|0}function vf(a,b){a=a|0;b=b|0;a=i[a+48>>2];return O[i[i[a>>2]+20>>2]](a,b)|0}function oj(a){a=a|0;var b=0;if(a){b=i[a>>2];if(b){i[a+4>>2]=b;qn(b)}qn(a)}}function lj(){var a=0;a=Gm(12);i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;return a|0}function jj(a){a=a|0;var b=0;b=a+4|0;if(g[a+15|0]<=-1){b=i[b>>2]}return b|0}function Om(a,b){var c=0;c=sm(a);if(c>>>0>>0){Pm(a,b-c|0);return}Qm(a,b)}function Df(a,b){a=a|0;b=b|0;a=i[a+48>>2];return O[i[i[a>>2]+16>>2]](a,b)|0}function Cf(a,b){a=a|0;b=b|0;a=i[a+48>>2];return O[i[i[a>>2]+12>>2]](a,b)|0}function xe(a){i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}function tm(a){if(um(a)){a=(i[a+8>>2]&2147483647)+ -1|0}else{a=10}return a}function Nn(a){var b=0;b=a&31;a=0-a&31;return(-1>>>b&-2)<>>a}function xn(a,b,c){a:{if(i[c+76>>2]<=-1){a=wn(a,b,c);break a}a=wn(a,b,c)}}function pm(a,b){var c=0,d=0;c=L-16|0;L=c;d=mm(a,b);L=c+16|0;return d?b:a}function Hh(a){a=a+ -1|0;if(a>>>0<=10){return i[(a<<2)+14040>>2]}return-1}function rd(a,b){a=a|0;b=b|0;if(b>>>0<=1){i[a+28>>2]=b}return b>>>0<2|0}function hj(a){a=a|0;if(a){sh(a+12|0,i[a+16>>2]);th(a,i[a+4>>2]);qn(a)}}function hh(a,b){a=a|0;b=b|0;g[b+84|0]=1;i[b+72>>2]=i[b+68>>2];return 1}function Qa(a,b,c){a=a|0;b=b|0;c=c|0;i[a+32>>2]=c;i[a+28>>2]=b;return 1}function kn(a,b,c){if(!(i[a+28>>2]==1|i[a+4>>2]!=(b|0))){i[a+28>>2]=c}}function jm(a,b,c){var d=0;d=L-16|0;L=d;a=lm(a,b,c);L=d+16|0;return a}function bj(){var a=0;a=Gm(8);i[a+4>>2]=-1;i[a>>2]=1032;return a|0}function Lj(a,b,c){a=a|0;b=b|0;c=c|0;return i[i[b+8>>2]+(c<<2)>>2]}function yf(a){a=a|0;a=i[a+48>>2];return O[i[i[a>>2]+28>>2]](a)|0}function xf(a){a=a|0;a=i[a+48>>2];return O[i[i[a>>2]+24>>2]](a)|0}function kj(a){a=a|0;if(a){if(g[a+15|0]<=-1){qn(i[a+4>>2])}qn(a)}}function Hj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return $h(a,b,c,d)|0}function Gj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Zh(a,b,c,d)|0}function Bf(a){a=a|0;a=i[a+48>>2];return O[i[i[a>>2]+36>>2]](a)|0}function ue(a,b){a=a|0;b=b|0;return ua(a+24|0,Xb(a),i[a+8>>2])|0}function Qd(a,b){a=a|0;b=b|0;return fa(a+24|0,Xb(a),i[a+8>>2])|0}function _j(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return xi(b,c,d)|0}function Zj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ti(b,c,d)|0}function Yj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return qi(b,c,d)|0}function Xj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return oi(b,c,d)|0}function Wj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return mi(b,c,d)|0}function Vj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return vi(b,c,d)|0}function Uj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return li(b,c,d)|0}function Ub(a,b){a=a|0;b=b|0;i[a+12>>2]=-1;i[a+8>>2]=b;return 1}function Tj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ki(b,c,d)|0}function Sj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ji(b,c,d)|0}function Rj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ii(b,c,d)|0}function Pj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ci(b,c,d)|0}function Kj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return bi(b,c,d)|0}function se(a,b){a=a|0;b=b|0;return O[i[i[a>>2]+56>>2]](a,b)|0}function Zi(a,b){a=a|0;b=b|0;return O[i[i[a>>2]+12>>2]](a,b)|0}function Oh(a,b,c){if((c|0)>=1){m[a>>2]=b/p(c|0)}return(c|0)>0}function Li(){var a=0;a=Gm(40);i[a>>2]=-1;yh(a+8|0);return a|0}function En(a,b){a=a|0;b=b|0;if(!i[4718]){i[4719]=b;i[4718]=a}}function Bm(a){if(4294967295>>0){Da(15926);x()}return Gm(a)}function _i(a,b){a=a|0;b=b|0;return p(m[i[a+8>>2]+(b<<2)>>2])}function mj(a,b){a=a|0;b=b|0;return p(m[i[a>>2]+(b<<2)>>2])}function Ih(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=a+4;return a}function xl(a,b,c){return(i[a+12>>2]+ -1|0)==(c|0)?0:c+1|0}function sm(a){if(um(a)){return i[a+4>>2]}return j[a+11|0]}function fj(a){a=a|0;return(i[a+100>>2]-i[a+96>>2]|0)/12|0}function Za(a,b){a=a|0;b=b|0;return i[i[a+4>>2]+(b<<2)>>2]}function yn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;N=0;return 0}function On(a){if(a){return 31-r(a+ -1^a)|0}return 32} +function Ba(a){var b=0;b=A(8)|0;i[b>>2]=16324;i[b>>2]=16368;Em(b+4|0,a);i[b>>2]=16416;B(b|0,16448,13);x()}function re(a){a=a|0;var b=0,c=0;c=a+24|0;b=Vb(a);if(!b){b=i[a+8>>2]}return wa(c,b,i[i[a+4>>2]+32>>2])|0}function ck(a){a=a|0;if(a){if(g[a+39|0]<=-1){nn(i[a+28>>2])}dk(a+12|0,i[a+16>>2]);Ne(a,i[a+4>>2]);nn(a)}}function xg(a){a=a|0;var b=0;i[a>>2]=12208;b=i[a+36>>2];if(b){nn(b)}b=i[a+24>>2];if(b){nn(b)}return a|0}function hd(a){a=a|0;var b=0;i[a>>2]=4092;i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}return a|0}function Kg(a){a=a|0;var b=0;i[a>>2]=12764;b=i[a+36>>2];if(b){nn(b)}b=i[a+24>>2];if(b){nn(b)}return a|0}function Cc(a){a=a|0;var b=0;if(!(!i[a+52>>2]|(!i[a+44>>2]|!i[a+48>>2]))){b=i[a+56>>2]!=0}return b|0}function yg(a){a=a|0;var b=0;i[a>>2]=12208;b=i[a+36>>2];if(b){nn(b)}b=i[a+24>>2];if(b){nn(b)}nn(a)}function id(a){a=a|0;var b=0;i[a>>2]=4092;i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}nn(a)}function Xc(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|!b|j[b+24|0]!=3)){i[a+60>>2]=b;c=1}return c|0}function Lg(a){a=a|0;var b=0;i[a>>2]=12764;b=i[a+36>>2];if(b){nn(b)}b=i[a+24>>2];if(b){nn(b)}nn(a)}function Gd(a){a=a|0;var b=0;i[a>>2]=6072;i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}nn(a)}function ld(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a- -64>>2]=b;c=1}return c|0}function we(a){var b=0;i[a+16>>2]=0;b=i[a>>2];i[a+4>>2]=b;i[a+12>>2]=b;if(b){i[a+4>>2]=b;nn(b)}}function ln(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if($m(a,i[b+8>>2],f)){fn(b,c,d,e)}}function Vd(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a+48>>2]=b;c=1}return c|0}function Bh(a,b,c,d){h[a+38>>1]=d;i[a>>2]=b;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=c;i[a+12>>2]=0}function xm(a){var b=0;if(a>>>0>=11){b=a+16&-16;a=b+ -1|0;a=(a|0)==11?b:a}else{a=10}return a}function Zb(a){a=a|0;var b=0;i[a>>2]=1884;b=i[a+16>>2];i[a+16>>2]=0;if(b){Sa(b)}return a|0}function Hc(a){a=a|0;var b=0;i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}return a|0}function Cn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=M[a|0](b,c,d,e)|0;H(L|0);return a|0}function xa(a){a=a|0;var b=0;i[a>>2]=1140;b=i[a+8>>2];if(b){i[a+12>>2]=b;nn(b)}return a|0}function _b(a){a=a|0;var b=0;i[a>>2]=1884;b=i[a+16>>2];i[a+16>>2]=0;if(b){Sa(b)}nn(a)}function Jn(a){var b=0,c=0;while(1){c=b;if(a){a=a-1&a;b=b+1|0;continue}break}return c}function Ac(a){a=a|0;var b=0;i[a>>2]=3088;b=i[a+32>>2];if(b){i[a+36>>2]=b;nn(b)}nn(a)}function ya(a){a=a|0;var b=0;i[a>>2]=1140;b=i[a+8>>2];if(b){i[a+12>>2]=b;nn(b)}nn(a)}function Zj(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return xi(b,c,d,e,f)|0}function dk(a,b){if(b){dk(a,i[b>>2]);dk(a,i[b+4>>2]);Ne(b+20|0,i[b+24>>2]);nn(b)}}function Ah(a,b,c){i[a+16>>2]=0;i[a+20>>2]=0;i[a>>2]=b;i[a+8>>2]=c;i[a+12>>2]=0}function Qb(a){i[a+12>>2]=-1;i[a+16>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=1884}function Li(a){a=a|0;var b=0;if(a){b=i[a+8>>2];if(b){i[a+12>>2]=b;nn(b)}nn(a)}}function dn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if($m(a,i[b+8>>2],0)){cn(b,c,d)}}function rf(a){a=a|0;if(i[a+44>>2]){return M[i[i[a>>2]+48>>2]](a)|0}return 0}function aa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ba(a,b,c,i[d+80>>2],d)|0}function wn(a,b){var c=0;c=J-16|0;J=c;i[c+12>>2]=b;Tl(i[4178],a,b);J=c+16|0}function tf(a,b){a=a|0;b=b|0;a=i[a+48>>2];return M[i[i[a>>2]+20>>2]](a,b)|0}function mj(a){a=a|0;var b=0;if(a){b=i[a>>2];if(b){i[a+4>>2]=b;nn(b)}nn(a)}}function jj(){var a=0;a=Dm(12);i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;return a|0}function hj(a){a=a|0;var b=0;b=a+4|0;if(g[a+15|0]<=-1){b=i[b>>2]}return b|0}function Lm(a,b){var c=0;c=pm(a);if(c>>>0>>0){Mm(a,b-c|0);return}Nm(a,b)}function Bf(a,b){a=a|0;b=b|0;a=i[a+48>>2];return M[i[i[a>>2]+16>>2]](a,b)|0}function Af(a,b){a=a|0;b=b|0;a=i[a+48>>2];return M[i[i[a>>2]+12>>2]](a,b)|0}function ve(a){i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}function qm(a){if(rm(a)){a=(i[a+8>>2]&2147483647)+ -1|0}else{a=10}return a}function Kn(a){var b=0;b=a&31;a=0-a&31;return(-1>>>b&-2)<>>a}function un(a,b,c){a:{if(i[c+76>>2]<=-1){a=tn(a,b,c);break a}a=tn(a,b,c)}}function nm(a,b){var c=0,d=0;c=J-16|0;J=c;d=km(a,b);J=c+16|0;return d?b:a}function Fh(a){a=a+ -1|0;if(a>>>0<=10){return i[(a<<2)+14040>>2]}return-1}function pd(a,b){a=a|0;b=b|0;if(b>>>0<=1){i[a+28>>2]=b}return b>>>0<2|0}function fj(a){a=a|0;if(a){qh(a+12|0,i[a+16>>2]);rh(a,i[a+4>>2]);nn(a)}}function fh(a,b){a=a|0;b=b|0;g[b+84|0]=1;i[b+72>>2]=i[b+68>>2];return 1}function Oa(a,b,c){a=a|0;b=b|0;c=c|0;i[a+32>>2]=c;i[a+28>>2]=b;return 1}function gn(a,b,c){if(!(i[a+28>>2]==1|i[a+4>>2]!=(b|0))){i[a+28>>2]=c}}function hm(a,b,c){var d=0;d=J-16|0;J=d;a=jm(a,b,c);J=d+16|0;return a}function Jj(a,b,c){a=a|0;b=b|0;c=c|0;return i[i[b+8>>2]+(c<<2)>>2]}function $i(){var a=0;a=Dm(8);i[a+4>>2]=-1;i[a>>2]=1032;return a|0}function zf(a){a=a|0;a=i[a+48>>2];return M[i[i[a>>2]+36>>2]](a)|0}function wf(a){a=a|0;a=i[a+48>>2];return M[i[i[a>>2]+28>>2]](a)|0}function vf(a){a=a|0;a=i[a+48>>2];return M[i[i[a>>2]+24>>2]](a)|0}function ij(a){a=a|0;if(a){if(g[a+15|0]<=-1){nn(i[a+4>>2])}nn(a)}}function Fj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Zh(a,b,c,d)|0}function Ej(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Xh(a,b,c,d)|0}function se(a,b){a=a|0;b=b|0;return sa(a+24|0,Vb(a),i[a+8>>2])|0}function Od(a,b){a=a|0;b=b|0;return da(a+24|0,Vb(a),i[a+8>>2])|0}function Yj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return vi(b,c,d)|0}function Xj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ri(b,c,d)|0}function Wj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return oi(b,c,d)|0}function Vj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return mi(b,c,d)|0}function Uj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ki(b,c,d)|0}function Tj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ti(b,c,d)|0}function Sj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ji(b,c,d)|0}function Sb(a,b){a=a|0;b=b|0;i[a+12>>2]=-1;i[a+8>>2]=b;return 1}function Rj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ii(b,c,d)|0}function Qj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return hi(b,c,d)|0}function Pj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return gi(b,c,d)|0}function Nj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ai(b,c,d)|0}function Ij(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return $h(b,c,d)|0}function ym(a){if(4294967295>>0){Ba(15926);x()}return Dm(a)}function qe(a,b){a=a|0;b=b|0;return M[i[i[a>>2]+56>>2]](a,b)|0}function Xi(a,b){a=a|0;b=b|0;return M[i[i[a>>2]+12>>2]](a,b)|0}function Mh(a,b,c){if((c|0)>=1){m[a>>2]=b/p(c|0)}return(c|0)>0}function Ji(){var a=0;a=Dm(40);i[a>>2]=-1;wh(a+8|0);return a|0}function Bn(a,b){a=a|0;b=b|0;if(!i[4714]){i[4715]=b;i[4714]=a}}function Yi(a,b){a=a|0;b=b|0;return p(m[i[a+8>>2]+(b<<2)>>2])}function kj(a,b){a=a|0;b=b|0;return p(m[i[a>>2]+(b<<2)>>2])}function Gh(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=a+4;return a}function vl(a,b,c){return(i[a+12>>2]+ -1|0)==(c|0)?0:c+1|0}function pm(a){if(rm(a)){return i[a+4>>2]}return j[a+11|0]}function dj(a){a=a|0;return(i[a+100>>2]-i[a+96>>2]|0)/12|0}function Xa(a,b){a=a|0;b=b|0;return i[i[a+4>>2]+(b<<2)>>2]}function vn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;L=0;return 0}function Ln(a){if(a){return 31-r(a+ -1^a)|0}return 32} -function vj(a,b){a=a|0;b=b|0;return i[i[a>>2]+(b<<2)>>2]}function uj(a,b){a=a|0;b=b|0;return k[i[a>>2]+(b<<1)>>1]}function sj(a,b){a=a|0;b=b|0;return h[i[a>>2]+(b<<1)>>1]}function nc(a,b,c){a=a|0;b=b|0;c=c|0;return Tb(a,b,c)|0}function dk(a,b,c){a=a|0;b=b|0;c=c|0;return _h(a,b,c)|0}function ck(a,b,c){a=a|0;b=b|0;c=c|0;return Yh(a,b,c)|0}function Zm(a){a=a|0;i[a>>2]=16368;_m(a+4|0);return a|0}function Dj(a,b,c){a=a|0;b=b|0;c=c|0;return Uh(a,b,c)|0}function Bj(a,b,c){a=a|0;b=b|0;c=c|0;return Th(a,b,c)|0}function zj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Rh(b,c,d)}function yj(a,b,c){a=a|0;b=b|0;c=c|0;return Qh(b,c)|0}function xj(a,b,c){a=a|0;b=b|0;c=c|0;return Ph(b,c)|0}function Sm(a){if(sm(a)>>>0<=0){km();x()}return vm(a)}function Qj(a,b,c){a=a|0;b=b|0;c=c|0;return di(b,c)|0}function Oj(a,b,c){a=a|0;b=b|0;c=c|0;return Gi(b,c)|0}function Mj(a,b,c){a=a|0;b=b|0;c=c|0;return pl(b,c)|0}function Jj(a,b,c){a=a|0;b=b|0;c=c|0;return ai(b,c)|0}function Ij(a,b,c){a=a|0;b=b|0;c=c|0;return nl(b,c)|0}function ml(a){i[a>>2]=14760;tn(a+4|0,0,80);return a}function Lm(a,b){if((a|0)!=(b|0)){Mm(a,vm(b),sm(b))}}function dj(a){a=a|0;return i[a+12>>2]-i[a+8>>2]>>2}function Aj(a,b,c){a=a|0;b=b|0;c=c|0;return+Sh(b,c)}function rj(a,b){a=a|0;b=b|0;return j[i[a>>2]+b|0]}function pj(a,b){a=a|0;b=b|0;return g[i[a>>2]+b|0]}function _a(a){a=a|0;return i[a+8>>2]-i[a+4>>2]>>2}function Xl(a,b,c){if(!(j[a|0]&32)){wn(b,c,a)}} +function tj(a,b){a=a|0;b=b|0;return i[i[a>>2]+(b<<2)>>2]}function sj(a,b){a=a|0;b=b|0;return k[i[a>>2]+(b<<1)>>1]}function qj(a,b){a=a|0;b=b|0;return h[i[a>>2]+(b<<1)>>1]}function zj(a,b,c){a=a|0;b=b|0;c=c|0;return Rh(a,b,c)|0}function lc(a,b,c){a=a|0;b=b|0;c=c|0;return Rb(a,b,c)|0}function bk(a,b,c){a=a|0;b=b|0;c=c|0;return Yh(a,b,c)|0}function ak(a,b,c){a=a|0;b=b|0;c=c|0;return Wh(a,b,c)|0}function Wm(a){a=a|0;i[a>>2]=16368;Xm(a+4|0);return a|0}function Bj(a,b,c){a=a|0;b=b|0;c=c|0;return Sh(a,b,c)|0}function xj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Ph(b,c,d)}function wj(a,b,c){a=a|0;b=b|0;c=c|0;return Oh(b,c)|0}function vj(a,b,c){a=a|0;b=b|0;c=c|0;return Nh(b,c)|0}function em(a){if(!a){return 0}i[4312]=a;return-1} -function gm(a){if(!a){return 0}i[4312]=a;return-1}function aj(a){a=a|0;if(a){O[i[i[a>>2]+4>>2]](a)}}function Ff(a,b){a=a|0;b=b|0;i[a+4>>2]=b;return 1}function Em(a,b){if(um(a)){ym(a,b);return}zm(a,b)}function vm(a){if(um(a)){return i[a>>2]}return a}function tj(a){a=a|0;return i[a+4>>2]-i[a>>2]>>1}function nj(a){a=a|0;return i[a+4>>2]-i[a>>2]>>2}function sf(a){kh(a);i[a+44>>2]=0;i[a>>2]=11264}function qj(a){a=a|0;return i[a+4>>2]-i[a>>2]|0}function Ul(a,b){if(!a){return 0}return Tl(a,b)}function mc(a){Sb(a);i[a+20>>2]=0;i[a>>2]=2264}function Ki(a,b,c){a=a|0;b=b|0;c=c|0;Ch(a,b,c)}function xc(a){a=a|0;return g[i[a+8>>2]+24|0]}function Wb(a,b,c){a=a|0;b=b|0;c=c|0;return 1}function Nj(a,b){a=a|0;b=b|0;return i[b+4>>2]}function Dn(a){a=a|0;a=L-a&-16;L=a;return a|0}function Cj(a,b){a=a|0;b=b|0;return i[b+8>>2]}function Ca(a,b){a=a|0;b=b|0;return g[b+24|0]}function ke(a){a=a|0;i[a>>2]=9848;return a|0}function ee(a){a=a|0;i[a>>2]=8844;return a|0}function ae(a){a=a|0;i[a>>2]=7896;return a|0}function Ud(a){a=a|0;i[a>>2]=6960;return a|0}function cm(a){a=a|0;return C(i[a+60>>2])|0}function bk(a,b){a=a|0;b=b|0;return Xh(b)|0}function Ln(a,b,c,d){a=In(a,b,c,d);return a}function Kn(a,b,c,d){a=Hn(a,b,c,d);return a}function Jn(a,b,c,d){a=Gn(a,b,c,d);return a}function Mh(a){i[a>>2]=1065353216;return a}function $i(a){a=a|0;return p(m[a+20>>2])}function Dm(a,b){i[a+8>>2]=b|-2147483648}function mm(a,b){return l[a>>2]>2]}function le(a){a=a|0;i[a>>2]=9848;qn(a)}function fe(a){a=a|0;i[a>>2]=8844;qn(a)}function be(a){a=a|0;i[a>>2]=7896;qn(a)}function Vd(a){a=a|0;i[a>>2]=6960;qn(a)}function Xi(a){a=a|0;return i[a+60>>2]}function Wi(a){a=a|0;return i[a+48>>2]}function Vi(a){a=a|0;return i[a+40>>2]}function Si(a){a=a|0;return i[a+56>>2]}function Ri(a){a=a|0;return i[a+88>>2]}function Qi(a){a=a|0;return i[a+80>>2]}function $a(a){a=a|0;return i[a+28>>2]}function um(a){return j[a+11|0]>>>7|0}function na(a,b){a=a|0;b=b|0;return 2}function ma(a,b){a=a|0;b=b|0;return 6}function ij(a){a=a|0;return!i[a>>2]|0}function eg(a){a=a|0;return i[a+8>>2]}function bb(a,b){a=a|0;b=b|0;return 1}function an(a){a=a|0;return i[a+4>>2]}function ab(a,b){a=a|0;b=b|0;return 0}function Ui(a){a=a|0;return j[a+32|0]}function Ti(a){a=a|0;return g[a+24|0]}function Gc(a,b){a=a|0;b=b|0;return-1}function Dc(a){a=a|0;return i[a+4>>2]}function ak(a,b){a=a|0;b=b|0;Le(a,b)}function nm(a,b,c){if(c){sn(a,b,c)}}function im(a,b,c){return jm(a,b,c)}function Rl(a){return a+ -48>>>0<10}function Nh(a,b,c){m[a>>2]=p(c|0)/b}function Mi(a){a=a|0;return i[a>>2]}function ej(){return Kk(Gm(108))|0}function cj(){return ml(Gm(84))|0}function Ym(a){a=a|0;return 16301}function Pi(){return Ka(Gm(96))|0}function Oi(){return Ga(Gm(64))|0}function Ji(){return Bh(Gm(40))|0}function Ii(a){a=a|0;if(a){qn(a)}}function Fj(){return Wh(Gm(40))|0}function bn(a){a=a|0;Zm(a);qn(a)}function om(a,b){return pm(a,b)}function ja(a){a=a|0;return a|0}function xm(a,b){g[a|0]=j[b|0]}function xg(a){a=a|0;qn(vg(a))}function wl(a){a=a|0;qn(Mk(a))}function ug(a){a=a|0;qn(tg(a))}function sg(a){a=a|0;qn(rg(a))}function Ob(a){a=a|0;qn(Nb(a))}function $m(a){a=a|0;qn(Zm(a))}function ld(a){a=a|0;return 6}function la(a){a=a|0;return 2}function ed(a){a=a|0;return 5}function Xc(a){a=a|0;return 3}function Nc(a){a=a|0;return 4}function Fc(a){a=a|0;return 0}function Ba(a){a=a|0;return 1}function zm(a,b){g[a+11|0]=b}function ym(a,b){i[a+4>>2]=b}function Vm(){Da(16264);x()}function Im(){Da(16200);x()}function ka(a){a=a|0;qn(a)}function Ql(){return 17248}function Hi(){return 14180}function Cm(a,b){i[a>>2]=b}function Xa(a){a=a|0;x()}function Cn(a){a=a|0;L=a}function Bn(){return L|0}function tk(){return 12}function sk(){return 11}function rk(){return 10}function xk(){return-5}function wk(){return-4}function vk(){return-3}function uk(){return-2}function qk(){return 9}function pk(){return 8}function ok(){return 7}function nk(){return 6}function mk(){return 5}function lk(){return 4}function kk(){return 3}function jk(){return 2}function ik(){return 1}function hk(){return 0}function gk(){return-1}function Wm(){km();x()}function km(){E();x()}function wm(a){a=a|0}function Xm(){x()}function $(){rm()} +function Pm(a){if(pm(a)>>>0<=0){im();x()}return sm(a)}function Oj(a,b,c){a=a|0;b=b|0;c=c|0;return bi(b,c)|0}function Mj(a,b,c){a=a|0;b=b|0;c=c|0;return Ei(b,c)|0}function Kj(a,b,c){a=a|0;b=b|0;c=c|0;return nl(b,c)|0}function Hj(a,b,c){a=a|0;b=b|0;c=c|0;return _h(b,c)|0}function Gj(a,b,c){a=a|0;b=b|0;c=c|0;return ll(b,c)|0}function kl(a){i[a>>2]=14760;qn(a+4|0,0,80);return a}function Im(a,b){if((a|0)!=(b|0)){Jm(a,sm(b),pm(b))}}function yj(a,b,c){a=a|0;b=b|0;c=c|0;return+Qh(b,c)}function bj(a){a=a|0;return i[a+12>>2]-i[a+8>>2]>>2}function pj(a,b){a=a|0;b=b|0;return j[i[a>>2]+b|0]}function nj(a,b){a=a|0;b=b|0;return g[i[a>>2]+b|0]}function Ya(a){a=a|0;return i[a+8>>2]-i[a+4>>2]>>2}function _i(a){a=a|0;if(a){M[i[i[a>>2]+4>>2]](a)}}function Df(a,b){a=a|0;b=b|0;i[a+4>>2]=b;return 1}function Bm(a,b){if(rm(a)){vm(a,b);return}wm(a,b)}function sm(a){if(rm(a)){return i[a>>2]}return a}function rj(a){a=a|0;return i[a+4>>2]-i[a>>2]>>1}function lj(a){a=a|0;return i[a+4>>2]-i[a>>2]>>2}function qf(a){ih(a);i[a+44>>2]=0;i[a>>2]=11264}function oj(a){a=a|0;return i[a+4>>2]-i[a>>2]|0}function Sl(a,b){if(!a){return 0}return Rl(a,b)}function kc(a){Qb(a);i[a+20>>2]=0;i[a>>2]=2264}function Vl(a,b,c){if(!(j[a|0]&32)){tn(b,c,a)}}function Ii(a,b,c){a=a|0;b=b|0;c=c|0;Ah(a,b,c)}function vc(a){a=a|0;return g[i[a+8>>2]+24|0]}function Ub(a,b,c){a=a|0;b=b|0;c=c|0;return 1}function Lj(a,b){a=a|0;b=b|0;return i[b+4>>2]}function An(a){a=a|0;a=J-a&-16;J=a;return a|0}function Aj(a,b){a=a|0;b=b|0;return i[b+8>>2]}function Aa(a,b){a=a|0;b=b|0;return g[b+24|0]}function ie(a){a=a|0;i[a>>2]=9848;return a|0}function ce(a){a=a|0;i[a>>2]=8844;return a|0}function _d(a){a=a|0;i[a>>2]=7896;return a|0}function Sd(a){a=a|0;i[a>>2]=6960;return a|0}function am(a){a=a|0;return C(i[a+60>>2])|0}function In(a,b,c,d){a=Fn(a,b,c,d);return a}function Hn(a,b,c,d){a=En(a,b,c,d);return a}function Gn(a,b,c,d){a=Dn(a,b,c,d);return a}function $j(a,b){a=a|0;b=b|0;return Vh(b)|0}function Kh(a){i[a>>2]=1065353216;return a}function Zi(a){a=a|0;return p(m[a+20>>2])}function Am(a,b){i[a+8>>2]=b|-2147483648}function km(a,b){return l[a>>2]>2]}function je(a){a=a|0;i[a>>2]=9848;nn(a)}function de(a){a=a|0;i[a>>2]=8844;nn(a)}function Td(a){a=a|0;i[a>>2]=6960;nn(a)}function $d(a){a=a|0;i[a>>2]=7896;nn(a)}function Za(a){a=a|0;return i[a+28>>2]}function Vi(a){a=a|0;return i[a+60>>2]}function Ui(a){a=a|0;return i[a+48>>2]}function Ti(a){a=a|0;return i[a+40>>2]}function Qi(a){a=a|0;return i[a+56>>2]}function Pi(a){a=a|0;return i[a+88>>2]}function Oi(a){a=a|0;return i[a+80>>2]}function rm(a){return j[a+11|0]>>>7|0}function la(a,b){a=a|0;b=b|0;return 2}function ka(a,b){a=a|0;b=b|0;return 6}function gj(a){a=a|0;return!i[a>>2]|0}function cg(a){a=a|0;return i[a+8>>2]}function _a(a,b){a=a|0;b=b|0;return 0}function Zm(a){a=a|0;return i[a+4>>2]}function Si(a){a=a|0;return j[a+32|0]}function Ri(a){a=a|0;return g[a+24|0]}function Ec(a,b){a=a|0;b=b|0;return-1}function Bc(a){a=a|0;return i[a+4>>2]}function $a(a,b){a=a|0;b=b|0;return 1}function _j(a,b){a=a|0;b=b|0;Je(a,b)}function lm(a,b,c){if(c){pn(a,b,c)}}function gm(a,b,c){return hm(a,b,c)}function Pl(a){return a+ -48>>>0<10}function Lh(a,b,c){m[a>>2]=p(c|0)/b}function Ki(a){a=a|0;return i[a>>2]}function cj(){return Ik(Dm(108))|0}function aj(){return kl(Dm(84))|0}function Vm(a){a=a|0;return 16301}function Ni(){return Ia(Dm(96))|0}function Mi(){return Ea(Dm(64))|0}function Hi(){return zh(Dm(40))|0}function Gi(a){a=a|0;if(a){nn(a)}}function Dj(){return Uh(Dm(40))|0}function _m(a){a=a|0;Wm(a);nn(a)}function mm(a,b){return nm(a,b)}function ha(a){a=a|0;return a|0}function vg(a){a=a|0;nn(tg(a))}function um(a,b){g[a|0]=j[b|0]}function ul(a){a=a|0;nn(Kk(a))}function sg(a){a=a|0;nn(rg(a))}function qg(a){a=a|0;nn(pg(a))}function Ym(a){a=a|0;nn(Wm(a))}function Mb(a){a=a|0;nn(Lb(a))}function za(a){a=a|0;return 1}function jd(a){a=a|0;return 6}function ja(a){a=a|0;return 2}function cd(a){a=a|0;return 5}function Vc(a){a=a|0;return 3}function Lc(a){a=a|0;return 4}function Dc(a){a=a|0;return 0}function wm(a,b){g[a+11|0]=b}function vm(a,b){i[a+4>>2]=b}function Sm(){Ba(16264);x()}function Fm(){Ba(16200);x()}function zm(a,b){i[a>>2]=b}function ia(a){a=a|0;nn(a)}function Ol(){return 17248}function Fi(){return 14180}function zn(a){a=a|0;J=a}function yn(){return J|0}function Va(a){a=a|0;x()}function rk(){return 12}function qk(){return 11}function pk(){return 10}function vk(){return-5}function uk(){return-4}function tk(){return-3}function sk(){return-2}function ok(){return 9}function nk(){return 8}function mk(){return 7}function lk(){return 6}function kk(){return 5}function jk(){return 4}function ik(){return 3}function hk(){return 2}function gk(){return 1}function fk(){return 0}function ek(){return-1}function Tm(){im();x()}function im(){E();x()}function tm(a){a=a|0}function Um(){x()}function Z(){} // EMSCRIPTEN_END_FUNCS -var O=Pn([null,ja,ka,la,aa,ba,ca,fa,ga,ia,Fa,ma,na,Zm,za,Aa,Ba,oa,qa,ra,ua,xa,ya,ma,Ca,Wa,Xa,Qa,Ra,Ya,Za,_a,$a,ab,Xm,bb,Ba,Nb,Ob,db,Db,Ib,$b,ac,Tb,Ub,Vb,Wb,bb,Zb,_b,jc,kc,cc,ec,lc,fc,gc,hc,ic,vc,wc,nc,oc,pc,sc,qc,xc,uc,Jc,Cc,Ba,Dc,Ec,Fc,Gc,ab,Fc,Ba,Hc,Ic,Xa,Xa,Cc,la,Ec,Kc,Lc,Mc,Nc,Ec,Oc,Rc,Vc,Wc,Xc,Yc,Ba,ab,Zc,_c,$c,cd,dd,ed,Yc,Ba,ab,Zc,fd,gd,jd,kd,ld,md,Ba,ab,nd,od,pd,ja,ka,rd,$a,qd,Xa,Cc,Ba,Ec,ud,Xa,Cc,la,Ec,vd,wd,xd,Nc,Ec,Oc,yd,zd,Ad,Xc,Yc,Ba,ab,Zc,_c,Bd,Dd,Ed,ed,Yc,Ba,ab,Zc,fd,Fd,Hd,Id,ld,md,Ba,ab,nd,od,Jd,ja,ka,rd,$a,Kd,Xa,Cc,Fc,Ba,Md,vc,wc,Nd,Pd,Od,Rd,la,Qd,Ud,Vd,ld,Dc,Wd,Ba,ab,Xd,Ba,la,Yd,Zd,ja,ka,rd,$a,qd,ae,be,ld,Wd,Ba,ab,Xd,Yd,ce,ja,ka,rd,$a,Kd,ja,ka,Fc,Ba,Fc,Gc,ab,$d,de,ee,fe,ld,Dc,Wd,Ba,ab,Xd,Ba,Xc,ge,he,ja,ka,rd,$a,qd,ke,le,ld,Wd,Ba,ab,Xd,ge,me,ja,ka,rd,$a,Kd,ka,Fc,Ba,Fc,Gc,ab,je,ne,ve,we,pe,re,qe,se,te,ue,uf,Xa,Ba,Ba,tf,ph,qh,Ba,Fc,ab,ab,zf,Af,wf,vf,yf,Bf,Cf,Df,xf,rg,sg,Ff,Gf,Hf,If,Qf,Ba,Dc,eg,tg,ug,Ff,Gf,Hf,If,gg,Ba,Dc,eg,vg,xg,Ff,Gf,Hf,If,lg,Ba,Dc,eg,Pf,yg,Of,zg,Ag,Eg,Fg,Gg,Hg,Dg,Lg,Bg,Mg,Ng,Pg,Qg,Rg,Sg,Og,Ug,Vg,Wg,Xg,Yg,gh,fh,bh,ja,ka,hh,ih,Xa,Fc,Ba,gh,vh,uh,gh,fh,wh,Lk,Nk,Ok,Qk,Mk,wl,sl,ul,cm,em,dm,ja,ka,Ym,$m,an,bn,ja,ka,wm,wm,dn,on,mn,gn,ka,nn,ln,hn,Fc,yn]);function Vn(){return f.byteLength/65536|0}function Wn(fo){fo=fo|0;var P=Vn()|0;var Q=P+fo|0;if(P=0;--V){U[48+V]=52+V;U[65+V]=V;U[97+V]=26+V}U[43]=62;U[47]=63;function Xn(go,ho,io){var W,X,V=0,Y=ho,Z=io.length,_=ho+(Z*3>>2)-(io[Z-2]=="=")-(io[Z-1]=="=");for(;V>4;if(Y<_)go[Y++]=W<<4|X>>2;if(Y<_)go[Y++]=X<<6|U[io.charCodeAt(V+3)]}}Xn(T,1028,"YAQAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAE41ZHJhY28yOEF0dHJpYnV0ZU9jdGFoZWRyb25UcmFuc2Zvcm1FAAD0QAAAOAQAAEAFAAAAAAAA0AQAAA4AAAAPAAAAEAAAABEAAAASAAAAEwAAABQAAAAVAAAAFgAAAAoAAAAXAAAAGAAAAE41ZHJhY28zMEF0dHJpYnV0ZVF1YW50aXphdGlvblRyYW5zZm9ybUUAAAAA9EAAAKQEAABABQAAYWxsb2NhdG9yPFQ+OjphbGxvY2F0ZShzaXplX3QgbikgJ24nIGV4Y2VlZHMgbWF4aW11bSBzdXBwb3J0ZWQgc2l6ZQBONWRyYWNvMThBdHRyaWJ1dGVUcmFuc2Zvcm1FAAAAAMxAAAAgBQAAAAAAAMwFAAAZAAAAGgAAABsAAAAcAAAAHQAAAB4AAAAfAAAAIAAAACEAAAAiAAAAIwAAACQAAABONWRyYWNvMTdBdHRyaWJ1dGVzRGVjb2RlckUATjVkcmFjbzI2QXR0cmlidXRlc0RlY29kZXJJbnRlcmZhY2VFAAAAAMxAAACcBQAA9EAAAIAFAADEBQAAYWxsb2NhdG9yPFQ+OjphbGxvY2F0ZShzaXplX3QgbikgJ24nIGV4Y2VlZHMgbWF4aW11bSBzdXBwb3J0ZWQgc2l6ZQAAAAAA0AYAACUAAAAmAAAAGwAAABwAAAAdAAAAHgAAAB8AAAAgAAAAIQAAACcAAAAoAAAAKQAAAEtkVHJlZUF0dHJpYnV0ZXNEZWNvZGVyOiBjb21wcmVzc2lvbiBsZXZlbCAlaSBub3Qgc3VwcG9ydGVkLgoAc2tpcF9hdHRyaWJ1dGVfdHJhbnNmb3JtAE41ZHJhY28yM0tkVHJlZUF0dHJpYnV0ZXNEZWNvZGVyRQAAAAD0QAAAqwYAAMwFAABhbGxvY2F0b3I8VD46OmFsbG9jYXRlKHNpemVfdCBuKSAnbicgZXhjZWVkcyBtYXhpbXVtIHN1cHBvcnRlZCBzaXplAE1ldGhvZCBub3Qgc3VwcG9ydGVkLiAKAFZlcnNpb24gbm90IHN1cHBvcnRlZC4gCgAAAAAAAAAAqAcAACoAAAArAAAALAAAAC0AAAAuAAAALwAAADAAAAAxAAAAMgAAAE41ZHJhY28yNlNlcXVlbnRpYWxBdHRyaWJ1dGVEZWNvZGVyRQAAAADMQAAAgAcAAP////9hbGxvY2F0b3I8VD46OmFsbG9jYXRlKHNpemVfdCBuKSAnbicgZXhjZWVkcyBtYXhpbXVtIHN1cHBvcnRlZCBzaXplAAAAAACACAAAMwAAADQAAAAbAAAANQAAADYAAAAeAAAAHwAAACAAAAA3AAAAOAAAADkAAAA6AAAAOwAAAHNraXBfYXR0cmlidXRlX3RyYW5zZm9ybQBONWRyYWNvMzdTZXF1ZW50aWFsQXR0cmlidXRlRGVjb2RlcnNDb250cm9sbGVyRQAAAAD0QAAATQgAAMwFAABhbGxvY2F0b3I8VD46OmFsbG9jYXRlKHNpemVfdCBuKSAnbicgZXhjZWVkcyBtYXhpbXVtIHN1cHBvcnRlZCBzaXplAAAAAAA4CQAAPAAAAD0AAAA+AAAALQAAAC4AAAAvAAAAPwAAADEAAABAAAAAQQAAAEIAAABDAAAARAAAAE41ZHJhY28zM1NlcXVlbnRpYWxJbnRlZ2VyQXR0cmlidXRlRGVjb2RlckUA9EAAAAwJAACoBwAAAAAAAMQLAABFAAAARgAAAEcAAABIAAAASQAAAEoAAABLAAAATAAAAE0AAABOAAAATwAAAFAAAABONWRyYWNvNDBNZXNoUHJlZGljdGlvblNjaGVtZVBhcmFsbGVsb2dyYW1EZWNvZGVySWlOU18zN1ByZWRpY3Rpb25TY2hlbWVXcmFwRGVjb2RpbmdUcmFuc2Zvcm1JaWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzI0TWVzaEF0dHJpYnV0ZUNvcm5lclRhYmxlRUVFRUUATjVkcmFjbzI3TWVzaFByZWRpY3Rpb25TY2hlbWVEZWNvZGVySWlOU18zN1ByZWRpY3Rpb25TY2hlbWVXcmFwRGVjb2RpbmdUcmFuc2Zvcm1JaWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzI0TWVzaEF0dHJpYnV0ZUNvcm5lclRhYmxlRUVFRUUATjVkcmFjbzIzUHJlZGljdGlvblNjaGVtZURlY29kZXJJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFRUUATjVkcmFjbzM3UHJlZGljdGlvblNjaGVtZVR5cGVkRGVjb2RlckludGVyZmFjZUlpaUVFAE41ZHJhY28zMlByZWRpY3Rpb25TY2hlbWVEZWNvZGVySW50ZXJmYWNlRQBONWRyYWNvMjVQcmVkaWN0aW9uU2NoZW1lSW50ZXJmYWNlRQDMQAAAaAsAAPRAAAA9CwAAjAsAAPRAAAAJCwAAlAsAAPRAAAC1CgAAoAsAAPRAAAAfCgAArAsAAPRAAAB8CQAAuAsAAAAAAAC4CwAARQAAAFEAAAAiAAAASAAAACIAAABKAAAASwAAAEwAAABNAAAATgAAAE8AAAAiAAAAAAAAAKwLAABFAAAAUgAAACIAAABIAAAAIgAAAEoAAABLAAAATAAAAE0AAABOAAAATwAAACIAAAAAAAAAIA0AAEUAAABTAAAAVAAAAEgAAABVAAAASgAAAEsAAABMAAAATQAAAE4AAABPAAAAVgAAAE41ZHJhY280NU1lc2hQcmVkaWN0aW9uU2NoZW1lTXVsdGlQYXJhbGxlbG9ncmFtRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAPRAAAB4DAAAuAsAAAAAAAAYDgAAVwAAAFgAAABZAAAASAAAAFoAAABKAAAASwAAAEwAAABNAAAATgAAAFsAAABcAAAATjVkcmFjbzU2TWVzaFByZWRpY3Rpb25TY2hlbWVDb25zdHJhaW5lZE11bHRpUGFyYWxsZWxvZ3JhbURlY29kZXJJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMjRNZXNoQXR0cmlidXRlQ29ybmVyVGFibGVFRUVFRQAA9EAAAGQNAAC4CwAAAAAAAPwOAABdAAAAXgAAAF8AAABIAAAAYAAAAGEAAABiAAAAYwAAAE0AAABOAAAAZAAAAGUAAABONWRyYWNvMzZNZXNoUHJlZGljdGlvblNjaGVtZVRleENvb3Jkc0RlY29kZXJJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMjRNZXNoQXR0cmlidXRlQ29ybmVyVGFibGVFRUVFRQAA9EAAAFwOAAC4CwAAAAAAAOgPAABmAAAAZwAAAGgAAABIAAAAaQAAAGoAAABrAAAAbAAAAE0AAABOAAAAbQAAAG4AAABONWRyYWNvNDRNZXNoUHJlZGljdGlvblNjaGVtZVRleENvb3Jkc1BvcnRhYmxlRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAAD0QAAAQA8AALgLAAAAAAAA1BAAAG8AAABwAAAAcQAAAEgAAAByAAAAcwAAAHQAAAB1AAAATQAAAE4AAAB2AAAAdwAAAE41ZHJhY280Mk1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAAAAAPRAAAAsEAAAuAsAAAAAAABcEgAAeAAAAHkAAAB6AAAAewAAAHwAAABONWRyYWNvNDhNZXNoUHJlZGljdGlvblNjaGVtZUdlb21ldHJpY05vcm1hbFByZWRpY3RvckFyZWFJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMjRNZXNoQXR0cmlidXRlQ29ybmVyVGFibGVFRUVFRQBONWRyYWNvNDhNZXNoUHJlZGljdGlvblNjaGVtZUdlb21ldHJpY05vcm1hbFByZWRpY3RvckJhc2VJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMjRNZXNoQXR0cmlidXRlQ29ybmVyVGFibGVFRUVFRQAAAMxAAACnEQAA9EAAAPwQAABUEgAAAAAAAFQSAAB4AAAAfQAAACIAAAB7AAAAIgAAAAAAAADoEwAARQAAAH4AAAB/AAAASAAAAIAAAABKAAAASwAAAEwAAABNAAAATgAAAE8AAACBAAAATjVkcmFjbzQwTWVzaFByZWRpY3Rpb25TY2hlbWVQYXJhbGxlbG9ncmFtRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUATjVkcmFjbzI3TWVzaFByZWRpY3Rpb25TY2hlbWVEZWNvZGVySWlOU18zN1ByZWRpY3Rpb25TY2hlbWVXcmFwRGVjb2RpbmdUcmFuc2Zvcm1JaWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzExQ29ybmVyVGFibGVFRUVFRQAA9EAAAFITAACsCwAA9EAAALwSAADcEwAAAAAAANwTAABFAAAAggAAACIAAABIAAAAIgAAAEoAAABLAAAATAAAAE0AAABOAAAATwAAACIAAAAAAAAAABUAAEUAAACDAAAAhAAAAEgAAACFAAAASgAAAEsAAABMAAAATQAAAE4AAABPAAAAhgAAAE41ZHJhY280NU1lc2hQcmVkaWN0aW9uU2NoZW1lTXVsdGlQYXJhbGxlbG9ncmFtRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUAAPRAAABkFAAA3BMAAAAAAADsFQAAhwAAAIgAAACJAAAASAAAAIoAAABKAAAASwAAAEwAAABNAAAATgAAAIsAAACMAAAATjVkcmFjbzU2TWVzaFByZWRpY3Rpb25TY2hlbWVDb25zdHJhaW5lZE11bHRpUGFyYWxsZWxvZ3JhbURlY29kZXJJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMTFDb3JuZXJUYWJsZUVFRUVFAAAA9EAAAEQVAADcEwAAAAAAAMQWAACNAAAAjgAAAI8AAABIAAAAkAAAAJEAAACSAAAAkwAAAE0AAABOAAAAlAAAAJUAAABONWRyYWNvMzZNZXNoUHJlZGljdGlvblNjaGVtZVRleENvb3Jkc0RlY29kZXJJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMTFDb3JuZXJUYWJsZUVFRUVFAAAA9EAAADAWAADcEwAAAAAAAKQXAACWAAAAlwAAAJgAAABIAAAAmQAAAJoAAACbAAAAnAAAAE0AAABOAAAAnQAAAJ4AAABONWRyYWNvNDRNZXNoUHJlZGljdGlvblNjaGVtZVRleENvb3Jkc1BvcnRhYmxlRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUAAAD0QAAACBcAANwTAAAAAAAAgBgAAJ8AAACgAAAAoQAAAEgAAACiAAAAowAAAKQAAAClAAAATQAAAE4AAACmAAAApwAAAE41ZHJhY280Mk1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUA9EAAAOgXAADcEwAAAAAAAOwZAACoAAAAqQAAAKoAAACrAAAArAAAAE41ZHJhY280OE1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsUHJlZGljdG9yQXJlYUlpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUATjVkcmFjbzQ4TWVzaFByZWRpY3Rpb25TY2hlbWVHZW9tZXRyaWNOb3JtYWxQcmVkaWN0b3JCYXNlSWlOU18zN1ByZWRpY3Rpb25TY2hlbWVXcmFwRGVjb2RpbmdUcmFuc2Zvcm1JaWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzExQ29ybmVyVGFibGVFRUVFRQDMQAAARhkAAPRAAACoGAAA5BkAAAAAAADkGQAAqAAAAK0AAAAiAAAAqwAAACIAAAAAAAAAqBoAAEUAAACuAAAArwAAAEgAAACwAAAASgAAAEsAAABMAAAATQAAAE4AAABPAAAAsQAAAE41ZHJhY28yOFByZWRpY3Rpb25TY2hlbWVEZWx0YURlY29kZXJJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFRUUAAAAA9EAAAEwaAACsCwAAAAAAABwbAACyAAAAswAAALQAAAAtAAAALgAAALUAAAA/AAAAMQAAAEAAAAC2AAAAtwAAALgAAAC5AAAATjVkcmFjbzMyU2VxdWVudGlhbE5vcm1hbEF0dHJpYnV0ZURlY29kZXJFAAD0QAAA8BoAADgJAAAAAAAAKB0AALoAAAC7AAAAvAAAAL0AAAC+AAAAvwAAAMAAAADBAAAAwgAAAMMAAADEAAAAxQAAAE41ZHJhY280Mk1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsRGVjb2RlcklpTlNfNDlQcmVkaWN0aW9uU2NoZW1lTm9ybWFsT2N0YWhlZHJvbkRlY29kaW5nVHJhbnNmb3JtSWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzI0TWVzaEF0dHJpYnV0ZUNvcm5lclRhYmxlRUVFRUUATjVkcmFjbzI3TWVzaFByZWRpY3Rpb25TY2hlbWVEZWNvZGVySWlOU180OVByZWRpY3Rpb25TY2hlbWVOb3JtYWxPY3RhaGVkcm9uRGVjb2RpbmdUcmFuc2Zvcm1JaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMjRNZXNoQXR0cmlidXRlQ29ybmVyVGFibGVFRUVFRQBONWRyYWNvMjNQcmVkaWN0aW9uU2NoZW1lRGVjb2RlcklpTlNfNDlQcmVkaWN0aW9uU2NoZW1lTm9ybWFsT2N0YWhlZHJvbkRlY29kaW5nVHJhbnNmb3JtSWlFRUVFAPRAAACxHAAAoAsAAPRAAAAQHAAAEB0AAPRAAABgGwAAHB0AAAAAAADEHgAAxgAAAMcAAADIAAAAyQAAAMoAAABONWRyYWNvNDhNZXNoUHJlZGljdGlvblNjaGVtZUdlb21ldHJpY05vcm1hbFByZWRpY3RvckFyZWFJaU5TXzQ5UHJlZGljdGlvblNjaGVtZU5vcm1hbE9jdGFoZWRyb25EZWNvZGluZ1RyYW5zZm9ybUlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAE41ZHJhY280OE1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsUHJlZGljdG9yQmFzZUlpTlNfNDlQcmVkaWN0aW9uU2NoZW1lTm9ybWFsT2N0YWhlZHJvbkRlY29kaW5nVHJhbnNmb3JtSWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzI0TWVzaEF0dHJpYnV0ZUNvcm5lclRhYmxlRUVFRUUAzEAAAAYeAAD0QAAAUB0AALweAAAAAAAATCAAAMsAAADMAAAAzQAAAL0AAADOAAAAzwAAANAAAADRAAAAwgAAAMMAAADSAAAA0wAAAE41ZHJhY280Mk1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsRGVjb2RlcklpTlNfNDlQcmVkaWN0aW9uU2NoZW1lTm9ybWFsT2N0YWhlZHJvbkRlY29kaW5nVHJhbnNmb3JtSWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzExQ29ybmVyVGFibGVFRUVFRQBONWRyYWNvMjdNZXNoUHJlZGljdGlvblNjaGVtZURlY29kZXJJaU5TXzQ5UHJlZGljdGlvblNjaGVtZU5vcm1hbE9jdGFoZWRyb25EZWNvZGluZ1RyYW5zZm9ybUlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUAAPRAAACrHwAAEB0AAPRAAAAIHwAAQCAAAAAAAADQIQAA1AAAANUAAADWAAAA1wAAANgAAABONWRyYWNvNDhNZXNoUHJlZGljdGlvblNjaGVtZUdlb21ldHJpY05vcm1hbFByZWRpY3RvckFyZWFJaU5TXzQ5UHJlZGljdGlvblNjaGVtZU5vcm1hbE9jdGFoZWRyb25EZWNvZGluZ1RyYW5zZm9ybUlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUATjVkcmFjbzQ4TWVzaFByZWRpY3Rpb25TY2hlbWVHZW9tZXRyaWNOb3JtYWxQcmVkaWN0b3JCYXNlSWlOU180OVByZWRpY3Rpb25TY2hlbWVOb3JtYWxPY3RhaGVkcm9uRGVjb2RpbmdUcmFuc2Zvcm1JaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMTFDb3JuZXJUYWJsZUVFRUVFAAAAzEAAAB0hAAD0QAAAdCAAAMghAAAAAAAAeCIAANkAAADaAAAA2wAAAL0AAADcAAAA3QAAAN4AAADfAAAAwgAAAMMAAADgAAAA4QAAAE41ZHJhY28yOFByZWRpY3Rpb25TY2hlbWVEZWx0YURlY29kZXJJaU5TXzQ5UHJlZGljdGlvblNjaGVtZU5vcm1hbE9jdGFoZWRyb25EZWNvZGluZ1RyYW5zZm9ybUlpRUVFRQD0QAAAFCIAABAdAAAAAAAArCQAAOIAAADjAAAA5AAAAOUAAADmAAAA5wAAAOgAAADpAAAA6gAAAOsAAADsAAAA7QAAAE41ZHJhY280Mk1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsRGVjb2RlcklpTlNfNjJQcmVkaWN0aW9uU2NoZW1lTm9ybWFsT2N0YWhlZHJvbkNhbm9uaWNhbGl6ZWREZWNvZGluZ1RyYW5zZm9ybUlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAE41ZHJhY28yN01lc2hQcmVkaWN0aW9uU2NoZW1lRGVjb2RlcklpTlNfNjJQcmVkaWN0aW9uU2NoZW1lTm9ybWFsT2N0YWhlZHJvbkNhbm9uaWNhbGl6ZWREZWNvZGluZ1RyYW5zZm9ybUlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAE41ZHJhY28yM1ByZWRpY3Rpb25TY2hlbWVEZWNvZGVySWlOU182MlByZWRpY3Rpb25TY2hlbWVOb3JtYWxPY3RhaGVkcm9uQ2Fub25pY2FsaXplZERlY29kaW5nVHJhbnNmb3JtSWlFRUVFAAD0QAAAJyQAAKALAAD0QAAAeSMAAJQkAAD0QAAAvCIAAKAkAAAAAAAAZCYAAO4AAADvAAAA8AAAAPEAAADyAAAATjVkcmFjbzQ4TWVzaFByZWRpY3Rpb25TY2hlbWVHZW9tZXRyaWNOb3JtYWxQcmVkaWN0b3JBcmVhSWlOU182MlByZWRpY3Rpb25TY2hlbWVOb3JtYWxPY3RhaGVkcm9uQ2Fub25pY2FsaXplZERlY29kaW5nVHJhbnNmb3JtSWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzI0TWVzaEF0dHJpYnV0ZUNvcm5lclRhYmxlRUVFRUUATjVkcmFjbzQ4TWVzaFByZWRpY3Rpb25TY2hlbWVHZW9tZXRyaWNOb3JtYWxQcmVkaWN0b3JCYXNlSWlOU182MlByZWRpY3Rpb25TY2hlbWVOb3JtYWxPY3RhaGVkcm9uQ2Fub25pY2FsaXplZERlY29kaW5nVHJhbnNmb3JtSWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzI0TWVzaEF0dHJpYnV0ZUNvcm5lclRhYmxlRUVFRUUAAADMQAAAlyUAAPRAAADUJAAAXCYAAAAAAAAIKAAA8wAAAPQAAAD1AAAA5QAAAPYAAAD3AAAA+AAAAPkAAADqAAAA6wAAAPoAAAD7AAAATjVkcmFjbzQyTWVzaFByZWRpY3Rpb25TY2hlbWVHZW9tZXRyaWNOb3JtYWxEZWNvZGVySWlOU182MlByZWRpY3Rpb25TY2hlbWVOb3JtYWxPY3RhaGVkcm9uQ2Fub25pY2FsaXplZERlY29kaW5nVHJhbnNmb3JtSWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzExQ29ybmVyVGFibGVFRUVFRQBONWRyYWNvMjdNZXNoUHJlZGljdGlvblNjaGVtZURlY29kZXJJaU5TXzYyUHJlZGljdGlvblNjaGVtZU5vcm1hbE9jdGFoZWRyb25DYW5vbmljYWxpemVkRGVjb2RpbmdUcmFuc2Zvcm1JaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMTFDb3JuZXJUYWJsZUVFRUVFAAAAAPRAAABYJwAAlCQAAPRAAACoJgAA/CcAAAAAAACkKQAA/AAAAP0AAAD+AAAA/wAAAAABAABONWRyYWNvNDhNZXNoUHJlZGljdGlvblNjaGVtZUdlb21ldHJpY05vcm1hbFByZWRpY3RvckFyZWFJaU5TXzYyUHJlZGljdGlvblNjaGVtZU5vcm1hbE9jdGFoZWRyb25DYW5vbmljYWxpemVkRGVjb2RpbmdUcmFuc2Zvcm1JaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMTFDb3JuZXJUYWJsZUVFRUVFAE41ZHJhY280OE1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsUHJlZGljdG9yQmFzZUlpTlNfNjJQcmVkaWN0aW9uU2NoZW1lTm9ybWFsT2N0YWhlZHJvbkNhbm9uaWNhbGl6ZWREZWNvZGluZ1RyYW5zZm9ybUlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUAzEAAAOYoAAD0QAAAMCgAAJwpAAAAAAAAXCoAANkAAAABAQAAAgEAAOUAAAADAQAABAEAAAUBAAAGAQAA6gAAAOsAAAAHAQAACAEAAE41ZHJhY28yOFByZWRpY3Rpb25TY2hlbWVEZWx0YURlY29kZXJJaU5TXzYyUHJlZGljdGlvblNjaGVtZU5vcm1hbE9jdGFoZWRyb25DYW5vbmljYWxpemVkRGVjb2RpbmdUcmFuc2Zvcm1JaUVFRUUAAAAA9EAAAOgpAACUJAAAAAAAAOAqAAAJAQAACgEAAAsBAAAtAAAALgAAAAwBAAA/AAAAMQAAAEAAAAANAQAAQgAAAEMAAAAOAQAADwEAABABAABONWRyYWNvMzhTZXF1ZW50aWFsUXVhbnRpemF0aW9uQXR0cmlidXRlRGVjb2RlckUAAAAA9EAAAKwqAAA4CQAAYWxsb2NhdG9yPFQ+OjphbGxvY2F0ZShzaXplX3QgbikgJ24nIGV4Y2VlZHMgbWF4aW11bSBzdXBwb3J0ZWQgc2l6ZQBVbnN1cHBvcnRlZCBlbmNvZGluZyBtZXRob2QuAFVuc3VwcG9ydGVkIGdlb21ldHJ5IHR5cGUuAElucHV0IGlzIG5vdCBhIHBvaW50IGNsb3VkLgBJbnB1dCBpcyBub3QgYSBtZXNoLgBza2lwX2F0dHJpYnV0ZV90cmFuc2Zvcm0AYWxsb2NhdG9yPFQ+OjphbGxvY2F0ZShzaXplX3QgbikgJ24nIGV4Y2VlZHMgbWF4aW11bSBzdXBwb3J0ZWQgc2l6ZQAAAAAAAABMLAAAEQEAABIBAAATAQAAFAEAACIAAAAVAQAAFgEAABcBAAAYAQAAGQEAABoBAAAbAQAAIgAAAE41ZHJhY28xMU1lc2hEZWNvZGVyRQAAAPRAAAA0LAAAFDYAAAAAAAC4LAAAHAEAAB0BAAATAQAAHgEAAB8BAAAVAQAAFgEAABcBAAAgAQAAIQEAACIBAAAjAQAAJAEAAE41ZHJhY28yMk1lc2hFZGdlYnJlYWtlckRlY29kZXJFAAAAAPRAAACULAAATCwAAAAAAADcLQAAJQEAACYBAAAnAQAAKAEAACkBAAAqAQAAKwEAACwBAAAtAQAALgEAAP////8AAAAAQC4AAC8BAAAwAQAAMQEAADIBAAAzAQAANAEAADUBAAA2AQAANwEAADgBAAAAAAAAoC4AADkBAAA6AQAAOwEAADwBAAA9AQAAPgEAAD8BAABAAQAAQQEAAEIBAABONWRyYWNvMjZNZXNoRWRnZWJyZWFrZXJEZWNvZGVySW1wbElOU18zMU1lc2hFZGdlYnJlYWtlclRyYXZlcnNhbERlY29kZXJFRUUATjVkcmFjbzM1TWVzaEVkZ2VicmVha2VyRGVjb2RlckltcGxJbnRlcmZhY2VFAAAAzEAAAKQtAAD0QAAAWC0AANQtAABONWRyYWNvMjZNZXNoRWRnZWJyZWFrZXJEZWNvZGVySW1wbElOU180MU1lc2hFZGdlYnJlYWtlclRyYXZlcnNhbFByZWRpY3RpdmVEZWNvZGVyRUVFAAAA9EAAAOgtAADULQAATjVkcmFjbzI2TWVzaEVkZ2VicmVha2VyRGVjb2RlckltcGxJTlNfMzhNZXNoRWRnZWJyZWFrZXJUcmF2ZXJzYWxWYWxlbmNlRGVjb2RlckVFRQAA9EAAAEwuAADULQAAAAAAAJwvAABDAQAARAEAAEUBAABONWRyYWNvMTlEZXB0aEZpcnN0VHJhdmVyc2VySU5TXzI0TWVzaEF0dHJpYnV0ZUNvcm5lclRhYmxlRU5TXzM2TWVzaEF0dHJpYnV0ZUluZGljZXNFbmNvZGluZ09ic2VydmVySVMxX0VFRUUATjVkcmFjbzEzVHJhdmVyc2VyQmFzZUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVOU18zNk1lc2hBdHRyaWJ1dGVJbmRpY2VzRW5jb2RpbmdPYnNlcnZlcklTMV9FRUVFAMxAAAAtLwAA9EAAAMAuAACULwAAAAAAAJQvAABGAQAARwEAAEUBAABhbGxvY2F0b3I8VD46OmFsbG9jYXRlKHNpemVfdCBuKSAnbicgZXhjZWVkcyBtYXhpbXVtIHN1cHBvcnRlZCBzaXplAAAAAAABAAAAAwAAAAUAAAAHAAAAAAAAANgwAABIAQAASQEAAEoBAABLAQAATjVkcmFjbzIyTWVzaFRyYXZlcnNhbFNlcXVlbmNlcklOU18yOE1heFByZWRpY3Rpb25EZWdyZWVUcmF2ZXJzZXJJTlNfMTFDb3JuZXJUYWJsZUVOU18zNk1lc2hBdHRyaWJ1dGVJbmRpY2VzRW5jb2RpbmdPYnNlcnZlcklTMl9FRUVFRUUATjVkcmFjbzE1UG9pbnRzU2VxdWVuY2VyRQAAAADMQAAAszAAAPRAAAAsMAAA0DAAAP////8AAAAAyDEAAEwBAABNAQAATgEAAE41ZHJhY28yOE1heFByZWRpY3Rpb25EZWdyZWVUcmF2ZXJzZXJJTlNfMTFDb3JuZXJUYWJsZUVOU18zNk1lc2hBdHRyaWJ1dGVJbmRpY2VzRW5jb2RpbmdPYnNlcnZlcklTMV9FRUVFAE41ZHJhY28xM1RyYXZlcnNlckJhc2VJTlNfMTFDb3JuZXJUYWJsZUVOU18zNk1lc2hBdHRyaWJ1dGVJbmRpY2VzRW5jb2RpbmdPYnNlcnZlcklTMV9FRUVFAADMQAAAZTEAAPRAAAD8MAAAwDEAAAAAAADAMQAATwEAAFABAABOAQAAAAAAAIAyAABRAQAAUgEAAFMBAABUAQAATjVkcmFjbzIyTWVzaFRyYXZlcnNhbFNlcXVlbmNlcklOU18xOURlcHRoRmlyc3RUcmF2ZXJzZXJJTlNfMTFDb3JuZXJUYWJsZUVOU18zNk1lc2hBdHRyaWJ1dGVJbmRpY2VzRW5jb2RpbmdPYnNlcnZlcklTMl9FRUVFRUUAAAD0QAAAADIAANAwAAAAAAAAADMAAFUBAABWAQAATgEAAE41ZHJhY28xOURlcHRoRmlyc3RUcmF2ZXJzZXJJTlNfMTFDb3JuZXJUYWJsZUVOU18zNk1lc2hBdHRyaWJ1dGVJbmRpY2VzRW5jb2RpbmdPYnNlcnZlcklTMV9FRUVFAPRAAACgMgAAwDEAAAAAAACwMwAAVwEAAFgBAABZAQAAWgEAAE41ZHJhY28yMk1lc2hUcmF2ZXJzYWxTZXF1ZW5jZXJJTlNfMTlEZXB0aEZpcnN0VHJhdmVyc2VySU5TXzI0TWVzaEF0dHJpYnV0ZUNvcm5lclRhYmxlRU5TXzM2TWVzaEF0dHJpYnV0ZUluZGljZXNFbmNvZGluZ09ic2VydmVySVMyX0VFRUVFRQAA9EAAACQzAADQMA==");Xn(T,13252,"HDQAABEBAABbAQAAEwEAABQBAABcAQAAFQEAABYBAAAXAQAAGAEAABkBAAAaAQAAGwEAAF0BAABONWRyYWNvMjFNZXNoU2VxdWVudGlhbERlY29kZXJFAPRAAAD8MwAATCwAAGFsbG9jYXRvcjxUPjo6YWxsb2NhdGUoc2l6ZV90IG4pICduJyBleGNlZWRzIG1heGltdW0gc3VwcG9ydGVkIHNpemUAAAAAAKA0AABeAQAAXwEAAGABAABhAQAATjVkcmFjbzE1TGluZWFyU2VxdWVuY2VyRQAAAPRAAACENAAA0DAAAAAAAAAUNgAAEQEAAGIBAABjAQAAFAEAACIAAABkAQAAFgEAABcBAAAYAQ==");Xn(T,13536,"RmFpbGVkIHRvIHBhcnNlIERyYWNvIGhlYWRlci4ARFJBQ08ATm90IGEgRHJhY28gZmlsZS4ARmFpbGVkIHRvIGRlY29kZSBtZXRhZGF0YS4AVXNpbmcgaW5jb21wYXRpYmxlIGRlY29kZXIgZm9yIHRoZSBpbnB1dCBnZW9tZXRyeS4AVW5rbm93biBtYWpvciB2ZXJzaW9uLgBVbmtub3duIG1pbm9yIHZlcnNpb24uAEZhaWxlZCB0byBpbml0aWFsaXplIHRoZSBkZWNvZGVyLgBGYWlsZWQgdG8gZGVjb2RlIGdlb21ldHJ5IGRhdGEuAEZhaWxlZCB0byBkZWNvZGUgcG9pbnQgYXR0cmlidXRlcy4ATjVkcmFjbzE3UG9pbnRDbG91ZERlY29kZXJFAADMQAAA9zUAAAAAAABsNgAAEQEAAGUBAABjAQAAFAEAAGYBAABnAQAAFgEAABcBAAAYAQAATjVkcmFjbzIzUG9pbnRDbG91ZEtkVHJlZURlY29kZXJFAAAA9EAAAEg2AAAUNgAAAAAAAMw2AAARAQAAaAEAAGMBAAAUAQAAaQEAAGoBAAAWAQAAFwEAABgBAABONWRyYWNvMjdQb2ludENsb3VkU2VxdWVudGlhbERlY29kZXJFAAAA9EAAAKQ2AAAUNgAAAQAAAAEAAAACAAAAAgAAAAQAAAAEAAAACAAAAAgAAAAEAAAACAAAAAE=");Xn(T,14099,"wAAAAMAAAADAAAAAwGFsbG9jYXRvcjxUPjo6YWxsb2NhdGUoc2l6ZV90IG4pICduJyBleGNlZWRzIG1heGltdW0gc3VwcG9ydGVkIHNpemUAKHNpemVfdCBpZHgsIHNpemVfdCBzaXplKTw6Oj57IHRocm93ICdBcnJheSBpbmRleCAnICsgaWR4ICsgJyBvdXQgb2YgYm91bmRzOiBbMCwnICsgc2l6ZSArICcpJzsgfQAAAP//////////YWxsb2NhdG9yPFQ+OjphbGxvY2F0ZShzaXplX3QgbikgJ24nIGV4Y2VlZHMgbWF4aW11bSBzdXBwb3J0ZWQgc2l6ZQAAAAAAPDgAAGsBAABsAQAAbQEAAG4BAABONWRyYWNvNE1lc2hFAAAA9EAAACw4AADQOQAAYWxsb2NhdG9yPFQ+OjphbGxvY2F0ZShzaXplX3QgbikgJ24nIGV4Y2VlZHMgbWF4aW11bSBzdXBwb3J0ZWQgc2l6ZQD/////YWxsb2NhdG9yPFQ+OjphbGxvY2F0ZShzaXplX3QgbikgJ24nIGV4Y2VlZHMgbWF4aW11bSBzdXBwb3J0ZWQgc2l6ZQBhbGxvY2F0b3I8VD46OmFsbG9jYXRlKHNpemVfdCBuKSAnbicgZXhjZWVkcyBtYXhpbXVtIHN1cHBvcnRlZCBzaXplAGFsbG9jYXRvcjxUPjo6YWxsb2NhdGUoc2l6ZV90IG4pICduJyBleGNlZWRzIG1heGltdW0gc3VwcG9ydGVkIHNpemUAYWxsb2NhdG9yPFQ+OjphbGxvY2F0ZShzaXplX3QgbikgJ24nIGV4Y2VlZHMgbWF4aW11bSBzdXBwb3J0ZWQgc2l6ZQAAAAAA0DkAAG8BAABwAQAAcQEAAHIBAABONWRyYWNvMTBQb2ludENsb3VkRQAAAADMQAAAuDkAAGFsbG9jYXRvcjxUPjo6YWxsb2NhdGUoc2l6ZV90IG4pICduJyBleGNlZWRzIG1heGltdW0gc3VwcG9ydGVkIHNpemUARmxvYXRQb2ludHNUcmVlRGVjb2RlcjogY29tcHJlc3Npb24gbGV2ZWwgJWkgbm90IHN1cHBvcnRlZC4KAGFsbG9jYXRvcjxUPjo6YWxsb2NhdGUoc2l6ZV90IG4pICduJyBleGNlZWRzIG1heGltdW0gc3VwcG9ydGVkIHNpemUALSsgICAwWDB4AChudWxsKQAAABEACgAREREAAAAABQAAAAAAAAkAAAAACwAAAAAAAAAAEQAPChEREQMKBwABAAkLCwAACQYLAAALAAYRAAAAERER");Xn(T,15105,"CwAAAAAAAAAAEQAKChEREQAKAAACAAkLAAAACQALAAAL");Xn(T,15163,"DA==");Xn(T,15175,"DAAAAAAMAAAAAAkMAAAAAAAMAAAM");Xn(T,15221,"Dg==");Xn(T,15233,"DQAAAAQNAAAAAAkOAAAAAAAOAAAO");Xn(T,15279,"EA==");Xn(T,15291,"DwAAAAAPAAAAAAkQAAAAAAAQAAAQAAASAAAAEhIS");Xn(T,15346,"EgAAABISEgAAAAAAAAk=");Xn(T,15395,"Cw==");Xn(T,15407,"CgAAAAAKAAAAAAkLAAAAAAALAAAL");Xn(T,15453,"DA==");Xn(T,15465,"DAAAAAAMAAAAAAkMAAAAAAAMAAAMAAAwMTIzNDU2Nzg5QUJDREVGOEI=");Xn(T,15524,"AgAAAAMAAAAFAAAABwAAAAsAAAANAAAAEQAAABMAAAAXAAAAHQAAAB8AAAAlAAAAKQAAACsAAAAvAAAANQAAADsAAAA9AAAAQwAAAEcAAABJAAAATwAAAFMAAABZAAAAYQAAAGUAAABnAAAAawAAAG0AAABxAAAAfwAAAIMAAACJAAAAiwAAAJUAAACXAAAAnQAAAKMAAACnAAAArQAAALMAAAC1AAAAvwAAAMEAAADFAAAAxwAAANMAAAABAAAACwAAAA0AAAARAAAAEwAAABcAAAAdAAAAHwAAACUAAAApAAAAKwAAAC8AAAA1AAAAOwAAAD0AAABDAAAARwAAAEkAAABPAAAAUwAAAFkAAABhAAAAZQAAAGcAAABrAAAAbQAAAHEAAAB5AAAAfwAAAIMAAACJAAAAiwAAAI8AAACVAAAAlwAAAJ0AAACjAAAApwAAAKkAAACtAAAAswAAALUAAAC7AAAAvwAAAMEAAADFAAAAxwAAANEAAABfX25leHRfcHJpbWUgb3ZlcmZsb3cAYWxsb2NhdG9yPFQ+OjphbGxvY2F0ZShzaXplX3QgbikgJ24nIGV4Y2VlZHMgbWF4aW11bSBzdXBwb3J0ZWQgc2l6ZQAAAAAAAAAwMDAxMDIwMzA0MDUwNjA3MDgwOTEwMTExMjEzMTQxNTE2MTcxODE5MjAyMTIyMjMyNDI1MjYyNzI4MjkzMDMxMzIzMzM0MzUzNjM3MzgzOTQwNDE0MjQzNDQ0NTQ2NDc0ODQ5NTA1MTUyNTM1NDU1NTY1NzU4NTk2MDYxNjI2MzY0NjU2NjY3Njg2OTcwNzE3MjczNzQ3NTc2Nzc3ODc5ODA4MTgyODM4NDg1ODY4Nzg4ODk5MDkxOTI5Mzk0OTU5Njk3OTg5OWJhc2ljX3N0cmluZw==");Xn(T,16228,"CgAAAGQAAADoAwAAECcAAKCGAQBAQg8AgJaYAADh9QUAypo7dmVjdG9yAFB1cmUgdmlydHVhbCBmdW5jdGlvbiBjYWxsZWQhAHN0ZDo6ZXhjZXB0aW9uAAAAAADgPwAAdgEAAHcBAAB4AQAAU3Q5ZXhjZXB0aW9uAAAAAMxAAADQPwAAAAAAAAxAAAANAAAAeQEAAHoBAABTdDExbG9naWNfZXJyb3IA9EAAAPw/AADgPwAAAAAAAEBAAAANAAAAewEAAHoBAABTdDEybGVuZ3RoX2Vycm9yAAAAAPRAAAAsQAAADEAAAFN0OXR5cGVfaW5mbwAAAADMQAAATEAAAE4xMF9fY3h4YWJpdjExNl9fc2hpbV90eXBlX2luZm9FAAAAAPRAAABkQAAAXEAAAE4xMF9fY3h4YWJpdjExN19fY2xhc3NfdHlwZV9pbmZvRQAAAPRAAACUQAAAiEAAAAAAAAC4QAAAfAEAAH0BAAB+AQAAfwEAAIABAACBAQAAggEAAIMBAAAAAAAAPEEAAHwBAACEAQAAfgEAAH8BAACAAQAAhQEAAIYBAACHAQAATjEwX19jeHhhYml2MTIwX19zaV9jbGFzc190eXBlX2luZm9FAAAAAPRAAAAUQQAAuEAAANBC");Xn(T,16896,"jEM=");Xn(T,16952,"BQ==");Xn(T,16964,"cwE=");Xn(T,16988,"dAEAAHUBAACsQw==");Xn(T,17012,"Ag==");Xn(T,17027,"//////8=");Xn(T,17096,"wElQAAAAAAAF");Xn(T,17116,"iAE=");Xn(T,17140,"dAEAAIkBAAC4RQAAAAQ=");Xn(T,17164,"AQ==");Xn(T,17179,"Cv////8=");return Un({"Int8Array":Int8Array,"Int16Array":Int16Array,"Int32Array":Int32Array,"Uint8Array":Uint8Array,"Uint16Array":Uint16Array,"Uint32Array":Uint32Array,"Float32Array":Float32Array,"Float64Array":Float64Array,"NaN":NaN,"Infinity":Infinity,"Math":Math},Yn,Zn.buffer)} +var M=Mn([null,ha,ia,ja,_,$,aa,da,ea,ga,Da,ka,la,Wm,xa,ya,za,ma,oa,pa,sa,va,wa,ka,Aa,Ua,Va,Oa,Pa,Wa,Xa,Ya,Za,_a,Um,$a,za,Lb,Mb,bb,Bb,Gb,Zb,_b,Rb,Sb,Tb,Ub,$a,Xb,Yb,hc,ic,ac,cc,jc,dc,ec,fc,gc,tc,uc,lc,mc,nc,qc,oc,vc,sc,Hc,Ac,za,Bc,Cc,Dc,Ec,_a,Dc,za,Fc,Gc,Va,Va,Ac,ja,Cc,Ic,Jc,Kc,Lc,Cc,Mc,Pc,Tc,Uc,Vc,Wc,za,_a,Xc,Yc,Zc,ad,bd,cd,Wc,za,_a,Xc,dd,ed,hd,id,jd,kd,za,_a,ld,md,nd,ha,ia,pd,Za,od,Va,Ac,za,Cc,sd,Va,Ac,ja,Cc,td,ud,vd,Lc,Cc,Mc,wd,xd,yd,Vc,Wc,za,_a,Xc,Yc,zd,Bd,Cd,cd,Wc,za,_a,Xc,dd,Dd,Fd,Gd,jd,kd,za,_a,ld,md,Hd,ha,ia,pd,Za,Id,Va,Ac,Dc,za,Kd,tc,uc,Ld,Nd,Md,Pd,ja,Od,Sd,Td,jd,Bc,Ud,za,_a,Vd,za,ja,Wd,Xd,ha,ia,pd,Za,od,_d,$d,jd,Ud,za,_a,Vd,Wd,ae,ha,ia,pd,Za,Id,ha,ia,Dc,za,Dc,Ec,_a,Zd,be,ce,de,jd,Bc,Ud,za,_a,Vd,za,Vc,ee,fe,ha,ia,pd,Za,od,ie,je,jd,Ud,za,_a,Vd,ee,ke,ha,ia,pd,Za,Id,ia,Dc,za,Dc,Ec,_a,he,le,te,ue,ne,pe,oe,qe,re,se,sf,Va,za,za,rf,nh,oh,za,Dc,_a,_a,xf,yf,uf,tf,wf,zf,Af,Bf,vf,pg,qg,Df,Ef,Ff,Gf,Of,za,Bc,cg,rg,sg,Df,Ef,Ff,Gf,eg,za,Bc,cg,tg,vg,Df,Ef,Ff,Gf,jg,za,Bc,cg,Nf,wg,Mf,xg,yg,Cg,Dg,Eg,Fg,Bg,Jg,zg,Kg,Lg,Ng,Og,Pg,Qg,Mg,Sg,Tg,Ug,Vg,Wg,eh,dh,$g,ha,ia,fh,gh,Va,Dc,za,eh,th,sh,eh,dh,uh,Jk,Lk,Mk,Ok,Kk,ul,ql,sl,am,cm,bm,ha,ia,Vm,Ym,Zm,_m,ha,ia,tm,tm,an,ln,jn,dn,ia,kn,hn,en,Dc,vn]);function Sn(){return f.byteLength/65536|0}function Tn(bo){bo=bo|0;var N=Sn()|0;var O=N+bo|0;if(N=0;--T){S[48+T]=52+T;S[65+T]=T;S[97+T]=26+T}S[43]=62;S[47]=63;function Un(co,eo,fo){var U,V,T=0,W=eo,X=fo.length,Y=eo+(X*3>>2)-(fo[X-2]=="=")-(fo[X-1]=="=");for(;T>4;if(W>2;if(W=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else{var str="";while(idx>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4}return len}var UTF16Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf-16le"):undefined;function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}var WASM_PAGE_SIZE=65536;function alignUp(x,multiple){if(x%multiple>0){x+=multiple-x%multiple}return x}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf)}var STACK_BASE=5261760;var INITIAL_INITIAL_MEMORY=Module["INITIAL_MEMORY"]||16777216;if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE,"maximum":2147483648/WASM_PAGE_SIZE})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){runtimeExited=true}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnPreMain(cb){__ATMAIN__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}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+="";err(what);ABORT=true;EXITSTATUS=1;what="abort("+what+"). Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}function hasPrefix(str,prefix){return String.prototype.startsWith?str.startsWith(prefix):str.indexOf(prefix)===0}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return hasPrefix(filename,dataURIPrefix)}var fileURIPrefix="file://";function isFileURI(filename){return hasPrefix(filename,fileURIPrefix)}var wasmBinaryFile="draco_decoder.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(){try{if(wasmBinary){return new Uint8Array(wasmBinary)}var binary=tryParseAsDataURI(wasmBinaryFile);if(binary){return binary}if(readBinary){return readBinary(wasmBinaryFile)}else{throw"both async and sync fetching of the wasm failed"}}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&typeof fetch==="function"&&!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()})}return Promise.resolve().then(getBinary)}function createWasm(){var info={"env":asmLibraryArg,"wasi_snapshot_preview1":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;wasmTable=Module["asm"]["__indirect_function_table"];removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiatedSource(output){receiveInstance(output["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming==="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&typeof fetch==="function"){fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiatedSource,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiatedSource)})})}else{return instantiateArrayBuffer(receiveInstantiatedSource)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync();return{}}var tempDouble;var tempI64;function array_bounds_check_error(idx,size){throw"Array index "+idx+" out of bounds: [0,"+size+")"}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){wasmTable.get(func)()}else{wasmTable.get(func)(callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}function demangle(func){return func}function demangleAll(text){var regex=/\b_Z[\w\d_]+/g;return text.replace(regex,function(x){var y=demangle(x);return x===y?x:y+" ["+x+"]"})}function dynCallLegacy(sig,ptr,args){if(args&&args.length){return Module["dynCall_"+sig].apply(null,[ptr].concat(args))}return Module["dynCall_"+sig].call(null,ptr)}function jsStackTrace(){var error=new Error;if(!error.stack){try{throw new Error}catch(e){error=e}if(!error.stack){return"(no stack trace available)"}}return error.stack.toString()}var ExceptionInfoAttrs={DESTRUCTOR_OFFSET:0,REFCOUNT_OFFSET:4,TYPE_OFFSET:8,CAUGHT_OFFSET:12,RETHROWN_OFFSET:13,SIZE:16};function ___cxa_allocate_exception(size){return _malloc(size+ExceptionInfoAttrs.SIZE)+ExceptionInfoAttrs.SIZE}function ExceptionInfo(excPtr){this.excPtr=excPtr;this.ptr=excPtr-ExceptionInfoAttrs.SIZE;this.set_type=function(type){HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]=type};this.get_type=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]};this.set_destructor=function(destructor){HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]=destructor};this.get_destructor=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(refcount){HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=refcount};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]=caught};this.get_caught=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]=rethrown};this.get_rethrown=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]!=0};this.init=function(type,destructor){this.set_type(type);this.set_destructor(destructor);this.set_refcount(0);this.set_caught(false);this.set_rethrown(false)};this.add_ref=function(){var value=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=value+1};this.release_ref=function(){var prev=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=prev-1;return prev===1}}var exceptionLast=0;function __ZSt18uncaught_exceptionv(){return __ZSt18uncaught_exceptionv.uncaught_exceptions>0}function ___cxa_throw(ptr,type,destructor){var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;if(!("uncaught_exception"in __ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exceptions=1}else{__ZSt18uncaught_exceptionv.uncaught_exceptions++}throw ptr}function _abort(){abort()}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}function _emscripten_get_heap_size(){return HEAPU8.length}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){requestedSize=requestedSize>>>0;var oldSize=_emscripten_get_heap_size();var maxHeapSize=2147483648;if(requestedSize>maxHeapSize){return false}var minHeapSize=16777216;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(minHeapSize,requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}var ENV={};function getExecutableName(){return thisProgram||"./this.program"}function getEnvStrings(){if(!getEnvStrings.strings){var lang=(typeof navigator==="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8";var env={"USER":"web_user","LOGNAME":"web_user","PATH":"/","PWD":"/","HOME":"/home/web_user","LANG":lang,"_":getExecutableName()};for(var x in ENV){env[x]=ENV[x]}var strings=[];for(var x in env){strings.push(x+"="+env[x])}getEnvStrings.strings=strings}return getEnvStrings.strings}function _environ_get(__environ,environ_buf){var bufSize=0;getEnvStrings().forEach(function(string,i){var ptr=environ_buf+bufSize;HEAP32[__environ+i*4>>2]=ptr;writeAsciiToMemory(string,ptr);bufSize+=string.length+1});return 0}function _environ_sizes_get(penviron_count,penviron_buf_size){var strings=getEnvStrings();HEAP32[penviron_count>>2]=strings.length;var bufSize=0;strings.forEach(function(string){bufSize+=string.length+1});HEAP32[penviron_buf_size>>2]=bufSize;return 0}var PATH={splitPath:function(filename){var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)},normalizeArray:function(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up;up--){parts.unshift("..")}}return parts},normalize:function(path){var isAbsolute=path.charAt(0)==="/",trailingSlash=path.substr(-1)==="/";path=PATH.normalizeArray(path.split("/").filter(function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path},dirname:function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir},basename:function(path){if(path==="/")return"/";path=PATH.normalize(path);path=path.replace(/\/$/,"");var lastSlash=path.lastIndexOf("/");if(lastSlash===-1)return path;return path.substr(lastSlash+1)},extname:function(path){return PATH.splitPath(path)[3]},join:function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join("/"))},join2:function(l,r){return PATH.normalize(l+"/"+r)}};var SYSCALLS={mappings:{},buffers:[null,[],[]],printChar:function(stream,curr){var buffer=SYSCALLS.buffers[stream];if(curr===0||curr===10){(stream===1?out:err)(UTF8ArrayToString(buffer,0));buffer.length=0}else{buffer.push(curr)}},varargs:undefined,get:function(){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret},getStr:function(ptr){var ret=UTF8ToString(ptr);return ret},get64:function(low,high){return low}};function _fd_close(fd){return 0}function _fd_seek(fd,offset_low,offset_high,whence,newOffset){}function _fd_write(fd,iov,iovcnt,pnum){var num=0;for(var i=0;i>2];var len=HEAP32[iov+(i*8+4)>>2];for(var j=0;j>2]=num;return 0}var ASSERTIONS=false;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}function intArrayToString(array){var ret=[];for(var i=0;i255){if(ASSERTIONS){assert(false,"Character code "+chr+" ("+String.fromCharCode(chr)+") at offset "+i+" not in 0x00-0xFF.")}chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}var decodeBase64=typeof atob==="function"?atob:function(input){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output=output+String.fromCharCode(chr1);if(enc3!==64){output=output+String.fromCharCode(chr2)}if(enc4!==64){output=output+String.fromCharCode(chr3)}}while(i0){return}preRun();if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();preMain();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()()}}noExitRuntime=true;run();function WrapperObject(){}WrapperObject.prototype=Object.create(WrapperObject.prototype);WrapperObject.prototype.constructor=WrapperObject;WrapperObject.prototype.__class__=WrapperObject;WrapperObject.__cache__={};Module["WrapperObject"]=WrapperObject;function getCache(__class__){return(__class__||WrapperObject).__cache__}Module["getCache"]=getCache;function wrapPointer(ptr,__class__){var cache=getCache(__class__);var ret=cache[ptr];if(ret)return ret;ret=Object.create((__class__||WrapperObject).prototype);ret.ptr=ptr;return cache[ptr]=ret}Module["wrapPointer"]=wrapPointer;function castObject(obj,__class__){return wrapPointer(obj.ptr,__class__)}Module["castObject"]=castObject;Module["NULL"]=wrapPointer(0);function destroy(obj){if(!obj["__destroy__"])throw"Error: Cannot destroy object. (Did you create it yourself?)";obj["__destroy__"]();delete getCache(obj.__class__)[obj.ptr]}Module["destroy"]=destroy;function compare(obj1,obj2){return obj1.ptr===obj2.ptr}Module["compare"]=compare;function getPointer(obj){return obj.ptr}Module["getPointer"]=getPointer;function getClass(obj){return obj.__class__}Module["getClass"]=getClass;var ensureCache={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ensureCache.needed){for(var i=0;i=ensureCache.size){assert(len>0);ensureCache.needed+=len;ret=Module["_malloc"](len);ensureCache.temps.push(ret)}else{ret=ensureCache.buffer+ensureCache.pos;ensureCache.pos+=len}return ret},copy:function(array,view,offset){offset>>>=0;var bytes=view.BYTES_PER_ELEMENT;switch(bytes){case 2:offset>>>=1;break;case 4:offset>>>=2;break;case 8:offset>>>=3;break}for(var i=0;i=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else{var str="";while(idx>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4}return len}var UTF16Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf-16le"):undefined;function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}var WASM_PAGE_SIZE=65536;function alignUp(x,multiple){if(x%multiple>0){x+=multiple-x%multiple}return x}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf)}var STACK_BASE=5261744;var INITIAL_INITIAL_MEMORY=Module["INITIAL_MEMORY"]||16777216;if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE,"maximum":2147483648/WASM_PAGE_SIZE})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){runtimeExited=true}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnPreMain(cb){__ATMAIN__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}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+="";err(what);ABORT=true;EXITSTATUS=1;what="abort("+what+"). Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}function hasPrefix(str,prefix){return String.prototype.startsWith?str.startsWith(prefix):str.indexOf(prefix)===0}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return hasPrefix(filename,dataURIPrefix)}var fileURIPrefix="file://";function isFileURI(filename){return hasPrefix(filename,fileURIPrefix)}var wasmBinaryFile="draco_decoder.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(){try{if(wasmBinary){return new Uint8Array(wasmBinary)}var binary=tryParseAsDataURI(wasmBinaryFile);if(binary){return binary}if(readBinary){return readBinary(wasmBinaryFile)}else{throw"both async and sync fetching of the wasm failed"}}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&typeof fetch==="function"&&!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()})}return Promise.resolve().then(getBinary)}function createWasm(){var info={"env":asmLibraryArg,"wasi_snapshot_preview1":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;wasmTable=Module["asm"]["__indirect_function_table"];removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiatedSource(output){receiveInstance(output["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming==="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&typeof fetch==="function"){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiatedSource,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiatedSource)})})}else{return instantiateArrayBuffer(receiveInstantiatedSource)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync().catch(readyPromiseReject);return{}}var tempDouble;var tempI64;function array_bounds_check_error(idx,size){throw"Array index "+idx+" out of bounds: [0,"+size+")"}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){wasmTable.get(func)()}else{wasmTable.get(func)(callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}function demangle(func){return func}function demangleAll(text){var regex=/\b_Z[\w\d_]+/g;return text.replace(regex,function(x){var y=demangle(x);return x===y?x:y+" ["+x+"]"})}function dynCallLegacy(sig,ptr,args){if(args&&args.length){return Module["dynCall_"+sig].apply(null,[ptr].concat(args))}return Module["dynCall_"+sig].call(null,ptr)}function jsStackTrace(){var error=new Error;if(!error.stack){try{throw new Error}catch(e){error=e}if(!error.stack){return"(no stack trace available)"}}return error.stack.toString()}var ExceptionInfoAttrs={DESTRUCTOR_OFFSET:0,REFCOUNT_OFFSET:4,TYPE_OFFSET:8,CAUGHT_OFFSET:12,RETHROWN_OFFSET:13,SIZE:16};function ___cxa_allocate_exception(size){return _malloc(size+ExceptionInfoAttrs.SIZE)+ExceptionInfoAttrs.SIZE}function ExceptionInfo(excPtr){this.excPtr=excPtr;this.ptr=excPtr-ExceptionInfoAttrs.SIZE;this.set_type=function(type){HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]=type};this.get_type=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]};this.set_destructor=function(destructor){HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]=destructor};this.get_destructor=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(refcount){HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=refcount};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]=caught};this.get_caught=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]=rethrown};this.get_rethrown=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]!=0};this.init=function(type,destructor){this.set_type(type);this.set_destructor(destructor);this.set_refcount(0);this.set_caught(false);this.set_rethrown(false)};this.add_ref=function(){var value=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=value+1};this.release_ref=function(){var prev=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=prev-1;return prev===1}}var exceptionLast=0;function __ZSt18uncaught_exceptionv(){return __ZSt18uncaught_exceptionv.uncaught_exceptions>0}function ___cxa_throw(ptr,type,destructor){var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;if(!("uncaught_exception"in __ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exceptions=1}else{__ZSt18uncaught_exceptionv.uncaught_exceptions++}throw ptr}function _abort(){abort()}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}function _emscripten_get_heap_size(){return HEAPU8.length}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){requestedSize=requestedSize>>>0;var oldSize=_emscripten_get_heap_size();var maxHeapSize=2147483648;if(requestedSize>maxHeapSize){return false}var minHeapSize=16777216;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(minHeapSize,requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}var SYSCALLS={mappings:{},buffers:[null,[],[]],printChar:function(stream,curr){var buffer=SYSCALLS.buffers[stream];if(curr===0||curr===10){(stream===1?out:err)(UTF8ArrayToString(buffer,0));buffer.length=0}else{buffer.push(curr)}},varargs:undefined,get:function(){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret},getStr:function(ptr){var ret=UTF8ToString(ptr);return ret},get64:function(low,high){return low}};function _fd_close(fd){return 0}function _fd_seek(fd,offset_low,offset_high,whence,newOffset){}function _fd_write(fd,iov,iovcnt,pnum){var num=0;for(var i=0;i>2];var len=HEAP32[iov+(i*8+4)>>2];for(var j=0;j>2]=num;return 0}var ASSERTIONS=false;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}function intArrayToString(array){var ret=[];for(var i=0;i255){if(ASSERTIONS){assert(false,"Character code "+chr+" ("+String.fromCharCode(chr)+") at offset "+i+" not in 0x00-0xFF.")}chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}var decodeBase64=typeof atob==="function"?atob:function(input){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output=output+String.fromCharCode(chr1);if(enc3!==64){output=output+String.fromCharCode(chr2)}if(enc4!==64){output=output+String.fromCharCode(chr3)}}while(i0){return}preRun();if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();preMain();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()()}}noExitRuntime=true;run();function WrapperObject(){}WrapperObject.prototype=Object.create(WrapperObject.prototype);WrapperObject.prototype.constructor=WrapperObject;WrapperObject.prototype.__class__=WrapperObject;WrapperObject.__cache__={};Module["WrapperObject"]=WrapperObject;function getCache(__class__){return(__class__||WrapperObject).__cache__}Module["getCache"]=getCache;function wrapPointer(ptr,__class__){var cache=getCache(__class__);var ret=cache[ptr];if(ret)return ret;ret=Object.create((__class__||WrapperObject).prototype);ret.ptr=ptr;return cache[ptr]=ret}Module["wrapPointer"]=wrapPointer;function castObject(obj,__class__){return wrapPointer(obj.ptr,__class__)}Module["castObject"]=castObject;Module["NULL"]=wrapPointer(0);function destroy(obj){if(!obj["__destroy__"])throw"Error: Cannot destroy object. (Did you create it yourself?)";obj["__destroy__"]();delete getCache(obj.__class__)[obj.ptr]}Module["destroy"]=destroy;function compare(obj1,obj2){return obj1.ptr===obj2.ptr}Module["compare"]=compare;function getPointer(obj){return obj.ptr}Module["getPointer"]=getPointer;function getClass(obj){return obj.__class__}Module["getClass"]=getClass;var ensureCache={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ensureCache.needed){for(var i=0;i=ensureCache.size){assert(len>0);ensureCache.needed+=len;ret=Module["_malloc"](len);ensureCache.temps.push(ret)}else{ret=ensureCache.buffer+ensureCache.pos;ensureCache.pos+=len}return ret},copy:function(array,view,offset){offset>>>=0;var bytes=view.BYTES_PER_ELEMENT;switch(bytes){case 2:offset>>>=1;break;case 4:offset>>>=2;break;case 8:offset>>>=3;break}for(var i=0;i3)return false;if(version[0]==1&&version[1]>=0&&version[1]<=3)return true;if(version[0]!=0||version[1]>10)return false;return true}Module["isVersionSupported"]=isVersionSupported;var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram="./this.program";var quit_=function(status,toThrow){throw toThrow};var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string";ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;var nodeFS;var nodePath;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}read_=function shell_read(filename,binary){var ret=tryParseAsDataURI(filename);if(ret){return binary?ret:ret.toString()}if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);return nodeFS["readFileSync"](filename,binary?null:"utf8")};readBinary=function readBinary(filename){var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process["argv"].length>1){thisProgram=process["argv"][1].replace(/\\/g,"/")}arguments_=process["argv"].slice(2);process["on"]("uncaughtException",function(ex){if(!(ex instanceof ExitStatus)){throw ex}});process["on"]("unhandledRejection",abort);quit_=function(status){process["exit"](status)};Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){read_=function shell_read(f){var data=tryParseAsDataURI(f);if(data){return intArrayToString(data)}return read(f)}}readBinary=function readBinary(f){var data;data=tryParseAsDataURI(f);if(data){return data}if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){arguments_=scriptArgs}else if(typeof arguments!="undefined"){arguments_=arguments}if(typeof quit==="function"){quit_=function(status){quit(status)}}if(typeof print!=="undefined"){if(typeof console==="undefined")console={};console.log=print;console.warn=console.error=typeof printErr!=="undefined"?printErr:print}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1)}else{scriptDirectory=""}{read_=function shell_read(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText}catch(err){var data=tryParseAsDataURI(url);if(data){return intArrayToString(data)}throw err}};if(ENVIRONMENT_IS_WORKER){readBinary=function readBinary(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}catch(err){var data=tryParseAsDataURI(url);if(data){return data}throw err}}}readAsync=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}var data=tryParseAsDataURI(url);if(data){onload(data.buffer);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=function(title){document.title=title}}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var STACK_ALIGN=16;function warnOnce(text){if(!warnOnce.shown)warnOnce.shown={};if(!warnOnce.shown[text]){warnOnce.shown[text]=1;err(text)}}function convertJsFunctionToWasm(func,sig){return func}var freeTableIndexes=[];var functionsInTableMap;function addFunctionWasm(func,sig){var table=wasmTable;if(!functionsInTableMap){functionsInTableMap=new WeakMap;for(var i=0;i3)return false;if(version[0]==1&&version[1]>=0&&version[1]<=4)return true;if(version[0]!=0||version[1]>10)return false;return true}Module["isVersionSupported"]=isVersionSupported;var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram="./this.program";var quit_=function(status,toThrow){throw toThrow};var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string";ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;var nodeFS;var nodePath;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}read_=function shell_read(filename,binary){var ret=tryParseAsDataURI(filename);if(ret){return binary?ret:ret.toString()}if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);return nodeFS["readFileSync"](filename,binary?null:"utf8")};readBinary=function readBinary(filename){var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process["argv"].length>1){thisProgram=process["argv"][1].replace(/\\/g,"/")}arguments_=process["argv"].slice(2);quit_=function(status){process["exit"](status)};Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){read_=function shell_read(f){var data=tryParseAsDataURI(f);if(data){return intArrayToString(data)}return read(f)}}readBinary=function readBinary(f){var data;data=tryParseAsDataURI(f);if(data){return data}if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){arguments_=scriptArgs}else if(typeof arguments!="undefined"){arguments_=arguments}if(typeof quit==="function"){quit_=function(status){quit(status)}}if(typeof print!=="undefined"){if(typeof console==="undefined")console={};console.log=print;console.warn=console.error=typeof printErr!=="undefined"?printErr:print}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!=="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1)}else{scriptDirectory=""}{read_=function shell_read(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText}catch(err){var data=tryParseAsDataURI(url);if(data){return intArrayToString(data)}throw err}};if(ENVIRONMENT_IS_WORKER){readBinary=function readBinary(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}catch(err){var data=tryParseAsDataURI(url);if(data){return data}throw err}}}readAsync=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}var data=tryParseAsDataURI(url);if(data){onload(data.buffer);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=function(title){document.title=title}}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var STACK_ALIGN=16;function warnOnce(text){if(!warnOnce.shown)warnOnce.shown={};if(!warnOnce.shown[text]){warnOnce.shown[text]=1;err(text)}}function convertJsFunctionToWasm(func,sig){return func}var freeTableIndexes=[];var functionsInTableMap;function getEmptyTableSlot(){if(freeTableIndexes.length){return freeTableIndexes.pop()}try{wasmTable.grow(1)}catch(err){if(!(err instanceof RangeError)){throw err}throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1}function addFunctionWasm(func,sig){if(!functionsInTableMap){functionsInTableMap=new WeakMap;for(var i=0;i>>0<=244){g=i[3158];f=a>>>0<11?16:a+11&-8;a=f>>>3|0;b=g>>>a|0;if(b&3){c=a+((b^-1)&1)|0;f=c<<3;b=i[f+12680>>2];a=b+8|0;d=i[b+8>>2];f=f+12672|0;m:{if((d|0)==(f|0)){q=12632,r=ol(c)&g,i[q>>2]=r;break m}i[d+12>>2]=f;i[f+8>>2]=d}c=c<<3;i[b+4>>2]=c|3;b=b+c|0;i[b+4>>2]=i[b+4>>2]|1;break a}k=i[3160];if(f>>>0<=k>>>0){break l}if(b){b=b<>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;c=(c|b)+(a>>>b|0)|0;d=c<<3;b=i[d+12680>>2];a=i[b+8>>2];d=d+12672|0;n:{if((a|0)==(d|0)){g=ol(c)&g;i[3158]=g;break n}i[a+12>>2]=d;i[d+8>>2]=a}a=b+8|0;i[b+4>>2]=f|3;e=b+f|0;c=c<<3;f=c-f|0;i[e+4>>2]=f|1;i[b+c>>2]=f;if(k){c=k>>>3|0;b=(c<<3)+12672|0;d=i[3163];c=1<>2]}i[b+8>>2]=d;i[c+12>>2]=d;i[d+12>>2]=b;i[d+8>>2]=c}i[3163]=e;i[3160]=f;break a}n=i[3159];if(!n){break l}a=(n&0-n)+ -1|0;b=a>>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;b=i[((c|b)+(a>>>b|0)<<2)+12936>>2];e=(i[b+4>>2]&-8)-f|0;c=b;while(1){p:{a=i[c+16>>2];if(!a){a=i[c+20>>2];if(!a){break p}}d=(i[a+4>>2]&-8)-f|0;c=d>>>0>>0;e=c?d:e;b=c?a:b;c=a;continue}break}o=b+f|0;if(o>>>0<=b>>>0){break k}m=i[b+24>>2];d=i[b+12>>2];if((d|0)!=(b|0)){a=i[b+8>>2];i[a+12>>2]=d;i[d+8>>2]=a;break b}c=b+20|0;a=i[c>>2];if(!a){a=i[b+16>>2];if(!a){break j}c=b+16|0}while(1){h=c;d=a;c=a+20|0;a=i[c>>2];if(a){continue}c=d+16|0;a=i[d+16>>2];if(a){continue}break}i[h>>2]=0;break b}f=-1;if(a>>>0>4294967231){break l}a=a+11|0;f=a&-8;k=i[3159];if(!k){break l}h=31;e=0-f|0;if(f>>>0<=16777215){b=a>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;g=c<>>16&2;a=(g<>>15|0)-(c|(a|b))|0;h=(a<<1|f>>>a+21&1)+28|0}c=i[(h<<2)+12936>>2];q:{r:{s:{if(!c){a=0;break s}a=0;b=f<<((h|0)==31?0:25-(h>>>1|0)|0);while(1){t:{g=(i[c+4>>2]&-8)-f|0;if(g>>>0>=e>>>0){break t}d=c;e=g;if(e){break t}e=0;a=c;break r}g=i[c+20>>2];c=i[((b>>>29&4)+c|0)+16>>2];a=g?(g|0)==(c|0)?a:g:a;b=b<<1;if(c){continue}break}}if(!(a|d)){a=2<>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;a=i[((c|b)+(a>>>b|0)<<2)+12936>>2]}if(!a){break q}}while(1){c=(i[a+4>>2]&-8)-f|0;b=c>>>0>>0;e=b?c:e;d=b?a:d;b=i[a+16>>2];if(b){a=b}else{a=i[a+20>>2]}if(a){continue}break}}if(!d|e>>>0>=i[3160]-f>>>0){break l}h=d+f|0;if(h>>>0<=d>>>0){break k}m=i[d+24>>2];b=i[d+12>>2];if((d|0)!=(b|0)){a=i[d+8>>2];i[a+12>>2]=b;i[b+8>>2]=a;break c}c=d+20|0;a=i[c>>2];if(!a){a=i[d+16>>2];if(!a){break i}c=d+16|0}while(1){g=c;b=a;c=a+20|0;a=i[c>>2];if(a){continue}c=b+16|0;a=i[b+16>>2];if(a){continue}break}i[g>>2]=0;break c}b=i[3160];if(b>>>0>=f>>>0){a=i[3163];c=b-f|0;u:{if(c>>>0>=16){i[3160]=c;d=a+f|0;i[3163]=d;i[d+4>>2]=c|1;i[a+b>>2]=c;i[a+4>>2]=f|3;break u}i[3163]=0;i[3160]=0;i[a+4>>2]=b|3;b=a+b|0;i[b+4>>2]=i[b+4>>2]|1}a=a+8|0;break a}d=i[3161];if(d>>>0>f>>>0){b=d-f|0;i[3161]=b;a=i[3164];c=a+f|0;i[3164]=c;i[c+4>>2]=b|1;i[a+4>>2]=f|3;a=a+8|0;break a}a=0;e=f+47|0;c=e;if(i[3276]){b=i[3278]}else{i[3279]=-1;i[3280]=-1;i[3277]=4096;i[3278]=4096;i[3276]=p+12&-16^1431655768;i[3281]=0;i[3269]=0;b=4096}g=c+b|0;h=0-b|0;c=g&h;if(c>>>0<=f>>>0){break a}b=i[3268];if(b){k=i[3266];m=k+c|0;if(m>>>0<=k>>>0|m>>>0>b>>>0){break a}}if(j[13076]&4){break f}v:{w:{b=i[3164];if(b){a=13080;while(1){k=i[a>>2];if(k+i[a+4>>2]>>>0>b>>>0?k>>>0<=b>>>0:0){break w}a=i[a+8>>2];if(a){continue}break}}b=_k(0);if((b|0)==-1){break g}g=c;a=i[3277];d=a+ -1|0;if(d&b){g=(c-b|0)+(b+d&0-a)|0}if(g>>>0<=f>>>0|g>>>0>2147483646){break g}a=i[3268];if(a){d=i[3266];h=d+g|0;if(h>>>0<=d>>>0|h>>>0>a>>>0){break g}}a=_k(g);if((b|0)!=(a|0)){break v}break e}g=h&g-d;if(g>>>0>2147483646){break g}b=_k(g);if((b|0)==(i[a>>2]+i[a+4>>2]|0)){break h}a=b}if(!((a|0)==-1|f+48>>>0<=g>>>0)){b=i[3278];b=b+(e-g|0)&0-b;if(b>>>0>2147483646){b=a;break e}if((_k(b)|0)!=-1){g=b+g|0;b=a;break e}_k(0-g|0);break g}b=a;if((a|0)!=-1){break e}break g}x()}d=0;break b}b=0;break c}if((b|0)!=-1){break e}}i[3269]=i[3269]|4}if(c>>>0>2147483646){break d}b=_k(c);a=_k(0);if(b>>>0>=a>>>0|(b|0)==-1|(a|0)==-1){break d}g=a-b|0;if(g>>>0<=f+40>>>0){break d}}a=i[3266]+g|0;i[3266]=a;if(a>>>0>l[3267]){i[3267]=a}x:{y:{z:{e=i[3164];if(e){a=13080;while(1){c=i[a>>2];d=i[a+4>>2];if((c+d|0)==(b|0)){break z}a=i[a+8>>2];if(a){continue}break}break y}a=i[3162];if(!(b>>>0>=a>>>0?a:0)){i[3162]=b}a=0;i[3271]=g;i[3270]=b;i[3166]=-1;i[3167]=i[3276];i[3273]=0;while(1){c=a<<3;d=c+12672|0;i[c+12680>>2]=d;i[c+12684>>2]=d;a=a+1|0;if((a|0)!=32){continue}break}a=g+ -40|0;c=b+8&7?-8-b&7:0;d=a-c|0;i[3161]=d;c=b+c|0;i[3164]=c;i[c+4>>2]=d|1;i[(a+b|0)+4>>2]=40;i[3165]=i[3280];break x}if(j[a+12|0]&8|b>>>0<=e>>>0|c>>>0>e>>>0){break y}i[a+4>>2]=d+g;a=e+8&7?-8-e&7:0;b=a+e|0;i[3164]=b;c=i[3161]+g|0;a=c-a|0;i[3161]=a;i[b+4>>2]=a|1;i[(c+e|0)+4>>2]=40;i[3165]=i[3280];break x}d=i[3162];if(b>>>0>>0){i[3162]=b;d=0}c=b+g|0;a=13080;A:{B:{C:{D:{E:{F:{while(1){if((c|0)!=i[a>>2]){a=i[a+8>>2];if(a){continue}break F}break}if(!(j[a+12|0]&8)){break E}}a=13080;while(1){c=i[a>>2];if(c>>>0<=e>>>0){d=c+i[a+4>>2]|0;if(d>>>0>e>>>0){break D}}a=i[a+8>>2];continue}}i[a>>2]=b;i[a+4>>2]=i[a+4>>2]+g;m=(b+8&7?-8-b&7:0)+b|0;i[m+4>>2]=f|3;b=c+(c+8&7?-8-c&7:0)|0;a=(b-m|0)-f|0;h=f+m|0;if((b|0)==(e|0)){i[3164]=h;a=i[3161]+a|0;i[3161]=a;i[h+4>>2]=a|1;break B}if(i[3163]==(b|0)){i[3163]=h;a=i[3160]+a|0;i[3160]=a;i[h+4>>2]=a|1;i[a+h>>2]=a;break B}c=i[b+4>>2];if((c&3)==1){n=c&-8;G:{if(c>>>0<=255){f=c>>>3|0;c=i[b+8>>2];d=i[b+12>>2];if((d|0)==(c|0)){q=12632,r=i[3158]&ol(f),i[q>>2]=r;break G}i[c+12>>2]=d;i[d+8>>2]=c;break G}k=i[b+24>>2];g=i[b+12>>2];H:{if((g|0)!=(b|0)){c=i[b+8>>2];i[c+12>>2]=g;i[g+8>>2]=c;break H}I:{e=b+20|0;f=i[e>>2];if(f){break I}e=b+16|0;f=i[e>>2];if(f){break I}g=0;break H}while(1){c=e;g=f;e=f+20|0;f=i[e>>2];if(f){continue}e=g+16|0;f=i[g+16>>2];if(f){continue}break}i[c>>2]=0}if(!k){break G}c=i[b+28>>2];d=(c<<2)+12936|0;J:{if(i[d>>2]==(b|0)){i[d>>2]=g;if(g){break J}q=12636,r=i[3159]&ol(c),i[q>>2]=r;break G}i[k+(i[k+16>>2]==(b|0)?16:20)>>2]=g;if(!g){break G}}i[g+24>>2]=k;c=i[b+16>>2];if(c){i[g+16>>2]=c;i[c+24>>2]=g}c=i[b+20>>2];if(!c){break G}i[g+20>>2]=c;i[c+24>>2]=g}b=b+n|0;a=a+n|0}i[b+4>>2]=i[b+4>>2]&-2;i[h+4>>2]=a|1;i[a+h>>2]=a;if(a>>>0<=255){b=a>>>3|0;a=(b<<3)+12672|0;c=i[3158];b=1<>2]}i[a+8>>2]=h;i[b+12>>2]=h;i[h+12>>2]=a;i[h+8>>2]=b;break B}e=31;if(a>>>0<=16777215){c=a>>>8|0;b=c+1048320>>>16&8;d=c<>>16&4;f=d<>>16&2;b=(f<>>15|0)-(d|(b|c))|0;e=(b<<1|a>>>b+21&1)+28|0}i[h+28>>2]=e;i[h+16>>2]=0;i[h+20>>2]=0;b=(e<<2)+12936|0;c=i[3159];d=1<>2]=h;i[h+24>>2]=b;break L}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=i[b>>2];while(1){c=b;if((i[b+4>>2]&-8)==(a|0)){break C}b=e>>>29|0;e=e<<1;d=(c+(b&4)|0)+16|0;b=i[d>>2];if(b){continue}break}i[d>>2]=h;i[h+24>>2]=c}i[h+12>>2]=h;i[h+8>>2]=h;break B}a=g+ -40|0;c=b+8&7?-8-b&7:0;h=a-c|0;i[3161]=h;c=b+c|0;i[3164]=c;i[c+4>>2]=h|1;i[(a+b|0)+4>>2]=40;i[3165]=i[3280];a=(d+(d+ -39&7?39-d&7:0)|0)+ -47|0;c=a>>>0>>0?e:a;i[c+4>>2]=27;a=i[3273];i[c+16>>2]=i[3272];i[c+20>>2]=a;a=i[3271];i[c+8>>2]=i[3270];i[c+12>>2]=a;i[3272]=c+8;i[3271]=g;i[3270]=b;i[3273]=0;a=c+24|0;while(1){i[a+4>>2]=7;b=a+8|0;a=a+4|0;if(d>>>0>b>>>0){continue}break}if((c|0)==(e|0)){break x}i[c+4>>2]=i[c+4>>2]&-2;d=c-e|0;i[e+4>>2]=d|1;i[c>>2]=d;if(d>>>0<=255){b=d>>>3|0;a=(b<<3)+12672|0;c=i[3158];b=1<>2]}i[a+8>>2]=e;i[b+12>>2]=e;i[e+12>>2]=a;i[e+8>>2]=b;break x}a=31;i[e+16>>2]=0;i[e+20>>2]=0;if(d>>>0<=16777215){b=d>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;g=c<>>16&2;a=(g<>>15|0)-(c|(a|b))|0;a=(a<<1|d>>>a+21&1)+28|0}i[e+28>>2]=a;b=(a<<2)+12936|0;c=i[3159];g=1<>2]=e;i[e+24>>2]=b;break N}a=d<<((a|0)==31?0:25-(a>>>1|0)|0);b=i[b>>2];while(1){c=b;if((d|0)==(i[b+4>>2]&-8)){break A}b=a>>>29|0;a=a<<1;g=(c+(b&4)|0)+16|0;b=i[g>>2];if(b){continue}break}i[g>>2]=e;i[e+24>>2]=c}i[e+12>>2]=e;i[e+8>>2]=e;break x}a=i[c+8>>2];i[a+12>>2]=h;i[c+8>>2]=h;i[h+24>>2]=0;i[h+12>>2]=c;i[h+8>>2]=a}a=m+8|0;break a}a=i[c+8>>2];i[a+12>>2]=e;i[c+8>>2]=e;i[e+24>>2]=0;i[e+12>>2]=c;i[e+8>>2]=a}a=i[3161];if(a>>>0<=f>>>0){break d}b=a-f|0;i[3161]=b;a=i[3164];c=a+f|0;i[3164]=c;i[c+4>>2]=b|1;i[a+4>>2]=f|3;a=a+8|0;break a}i[3155]=48;a=0;break a}O:{if(!m){break O}a=i[d+28>>2];c=(a<<2)+12936|0;P:{if(i[c>>2]==(d|0)){i[c>>2]=b;if(b){break P}k=ol(a)&k;i[3159]=k;break O}i[m+(i[m+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break O}}i[b+24>>2]=m;a=i[d+16>>2];if(a){i[b+16>>2]=a;i[a+24>>2]=b}a=i[d+20>>2];if(!a){break O}i[b+20>>2]=a;i[a+24>>2]=b}Q:{if(e>>>0<=15){a=e+f|0;i[d+4>>2]=a|3;a=a+d|0;i[a+4>>2]=i[a+4>>2]|1;break Q}i[d+4>>2]=f|3;i[h+4>>2]=e|1;i[e+h>>2]=e;if(e>>>0<=255){b=e>>>3|0;a=(b<<3)+12672|0;c=i[3158];b=1<>2]}i[a+8>>2]=h;i[b+12>>2]=h;i[h+12>>2]=a;i[h+8>>2]=b;break Q}a=31;if(e>>>0<=16777215){b=e>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;f=c<>>16&2;a=(f<>>15|0)-(c|(a|b))|0;a=(a<<1|e>>>a+21&1)+28|0}i[h+28>>2]=a;i[h+16>>2]=0;i[h+20>>2]=0;b=(a<<2)+12936|0;S:{c=1<>2]=h;break T}a=e<<((a|0)==31?0:25-(a>>>1|0)|0);f=i[b>>2];while(1){b=f;if((i[b+4>>2]&-8)==(e|0)){break S}c=a>>>29|0;a=a<<1;c=(b+(c&4)|0)+16|0;f=i[c>>2];if(f){continue}break}i[c>>2]=h}i[h+24>>2]=b;i[h+12>>2]=h;i[h+8>>2]=h;break Q}a=i[b+8>>2];i[a+12>>2]=h;i[b+8>>2]=h;i[h+24>>2]=0;i[h+12>>2]=b;i[h+8>>2]=a}a=d+8|0;break a}U:{if(!m){break U}a=i[b+28>>2];c=(a<<2)+12936|0;V:{if(i[c>>2]==(b|0)){i[c>>2]=d;if(d){break V}q=12636,r=ol(a)&n,i[q>>2]=r;break U}i[(i[m+16>>2]==(b|0)?16:20)+m>>2]=d;if(!d){break U}}i[d+24>>2]=m;a=i[b+16>>2];if(a){i[d+16>>2]=a;i[a+24>>2]=d}a=i[b+20>>2];if(!a){break U}i[d+20>>2]=a;i[a+24>>2]=d}W:{if(e>>>0<=15){a=e+f|0;i[b+4>>2]=a|3;a=a+b|0;i[a+4>>2]=i[a+4>>2]|1;break W}i[b+4>>2]=f|3;i[o+4>>2]=e|1;i[e+o>>2]=e;if(k){c=k>>>3|0;a=(c<<3)+12672|0;d=i[3163];c=1<>2]}i[a+8>>2]=d;i[c+12>>2]=d;i[d+12>>2]=a;i[d+8>>2]=c}i[3163]=o;i[3160]=e}a=b+8|0}H=p+16|0;return a|0}function we(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0;k=H-96|0;H=k;i[k+72>>2]=0;i[k+64>>2]=0;i[k+68>>2]=0;i[k+48>>2]=0;i[k+52>>2]=0;i[k+40>>2]=0;i[k+44>>2]=0;i[k+56>>2]=1065353216;i[k+32>>2]=0;i[k+24>>2]=0;i[k+28>>2]=0;y=i[a+124>>2];a:{b:{c:{d:{e:{f:{g:{h:{if((b|0)<1){break h}A=i[a+216>>2]!=i[a+220>>2];p=1;while(1){f=u;u=f+1|0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{if(!j[a+308|0]){break s}t:{u:{l=i[a+296>>2];q=i[a+304>>2];c=l+(q>>>3|0)|0;h=i[a+300>>2];if(c>>>0>=h>>>0){break u}d=j[c|0];c=q+1|0;i[a+304>>2]=c;if(!(d>>>(q&7)&1)){break u}m=c>>>3|0;d=l+m|0;v:{if(d>>>0>=h>>>0){d=c;c=0;break v}e=j[d|0];d=q+2|0;i[a+304>>2]=d;m=d>>>3|0;c=e>>>(c&7)&1}e=l+m|0;if(e>>>0>>0){e=j[e|0];i[a+304>>2]=d+1;d=e>>>(d&7)<<1&2}else{d=0}c=(c|d)<<1;switch(c-1|0){case 0:case 2:case 4:break b;case 5:break r;case 1:case 3:break t;default:break s}}d=i[k+68>>2];if((d|0)==i[k+64>>2]){d=-1;break g}v=-1;s=i[a+8>>2];q=i[s+24>>2];c=q;m=d+ -4|0;p=i[m>>2];e=-1;w:{if((p|0)==-1){break w}d=p+1|0;d=(d>>>0)%3|0?d:p+ -2|0;e=-1;if((d|0)==-1){break w}e=i[i[s>>2]+(d<<2)>>2]}d=i[c+(e<<2)>>2];if((d|0)!=-1){c=d+1|0;v=(c>>>0)%3|0?c:d+ -2|0}d=i[s+12>>2];n=o(f,3);c=n+1|0;i[d+(p<<2)>>2]=c;l=c<<2;i[l+d>>2]=p;r=n+2|0;i[d+(v<<2)>>2]=r;f=r<<2;i[f+d>>2]=v;h=-1;c=-1;x:{if((p|0)==-1){break x}d=p+((p>>>0)%3|0?-1:2)|0;c=-1;if((d|0)==-1){break x}c=i[i[s>>2]+(d<<2)>>2]}y:{if((v|0)==-1){break y}d=v+1|0;d=(d>>>0)%3|0?d:v+ -2|0;if((d|0)==-1){break y}h=i[i[s>>2]+(d<<2)>>2]}d=-1;if((c|0)==(e|0)|(e|0)==(h|0)){break g}d=i[s>>2];i[d+(n<<2)>>2]=e;i[d+l>>2]=h;i[d+f>>2]=c;if((c|0)!=-1){i[q+(c<<2)>>2]=r}d=i[a+120>>2]+(e>>>3&536870908)|0;c=i[d>>2];B=d,C=ol(e)&c,i[B>>2]=C;i[m>>2]=n;break i}e=i[k+68>>2];if((e|0)==i[k+64>>2]){d=-1;break g}r=i[a+8>>2];d=i[r+12>>2];n=o(f,3);m=(c|1)==5;l=n+(m?2:1)|0;c=l<<2;s=i[e+ -4>>2];i[d+c>>2]=s;i[d+(s<<2)>>2]=l;Ae(r+24|0,8380);d=-1;h=i[a+8>>2];q=i[h+24>>2];if(i[h+28>>2]-q>>2>(y|0)){break g}e=n+2|0;h=i[h>>2];t=h+c|0;d=i[r+28>>2]-i[r+24>>2]|0;c=(d>>2)+ -1|0;i[t>>2]=c;if(d){i[q+(c<<2)>>2]=l}e=m?n:e;l=h+(m+n<<2)|0;z:{A:{B:{if((s|0)!=-1){c=s+((s>>>0)%3|0?-1:2)|0;if((c|0)==-1){break B}c=i[h+(c<<2)>>2];i[h+(e<<2)>>2]=c;if((c|0)==-1){break A}i[q+(c<<2)>>2]=e;break A}i[h+(e<<2)>>2]=-1;d=-1;break z}i[h+(e<<2)>>2]=-1}c=s+1|0;c=(c>>>0)%3|0?c:s+ -2|0;d=-1;if((c|0)==-1){break z}d=i[h+(c<<2)>>2]}i[l>>2]=d;i[i[k+68>>2]+ -4>>2]=n;break q}m=i[k+68>>2];e=i[k+64>>2];if((m|0)==(e|0)){d=-1;break g}l=m+ -4|0;w=i[l>>2];i[k+68>>2]=l;n=i[k+44>>2];if(!n){break n}d=i[k+40>>2];r=nl(n)>>>0>1;h=f&n+2147483647;C:{if(!r){break C}c=f;h=c;if(c>>>0>>0){break C}h=(f>>>0)%(n>>>0)|0}c=i[d+(h<<2)>>2];if(!c){break n}d=i[c>>2];if(!d){break n}q=n+ -1|0;while(1){D:{c=i[d+4>>2];E:{if((f|0)!=(c|0)){F:{if(!r){c=c&q;break F}if(c>>>0>>0){break F}c=(c>>>0)%(n>>>0)|0}if((c|0)!=(h|0)){break n}break E}if((f|0)==i[d+8>>2]){break D}}d=i[d>>2];if(d){continue}break n}break}h=i[k+72>>2];if((h|0)!=(l|0)){i[l>>2]=i[d+12>>2];i[k+68>>2]=m;c=e;break m}r=l-e|0;m=r>>2;q=m+1|0;if(q>>>0>=1073741824){break p}l=h-e|0;h=l>>1;l=l>>2>>>0<536870911?h>>>0>>0?q:h:1073741823;c=0;G:{if(!l){break G}if(l>>>0>=1073741824){break a}c=ok(l<<2)}h=c+(m<<2)|0;i[h>>2]=i[d+12>>2];d=(l<<2)+c|0;m=h+4|0;if((r|0)>=1){$k(c,e,r)}i[k+72>>2]=d;i[k+68>>2]=m;i[k+64>>2]=c;if(!e){break m}Zk(e);m=i[k+68>>2];c=i[k+64>>2];break m}c=i[a+8>>2];Ae(c+24|0,8380);d=-1;e=i[a+8>>2];n=o(f,3);m=i[c+28>>2]-i[c+24>>2]|0;q=m>>2;h=q+ -1|0;i[i[e>>2]+(n<<2)>>2]=h;Ae(e+24|0,8380);l=n+1|0;i[i[e>>2]+(l<<2)>>2]=(i[e+28>>2]-i[e+24>>2]>>2)+ -1;c=i[a+8>>2];Ae(c+24|0,8380);e=n+2|0;i[i[c>>2]+(e<<2)>>2]=(i[c+28>>2]-i[c+24>>2]>>2)+ -1;c=i[a+8>>2];r=i[c+24>>2];if(i[c+28>>2]-r>>2>(y|0)){break g}H:{I:{if(!m){i[r+(q<<2)>>2]=l;d=1;break I}i[r+(h<<2)>>2]=n;d=0;if((m|0)==-4){break I}i[r+(q<<2)>>2]=l;d=q+1|0;if((d|0)==-1){break H}}i[r+(d<<2)>>2]=e}c=i[k+68>>2];d=i[k+72>>2];if((c|0)!=(d|0)){i[c>>2]=n;i[k+68>>2]=c+4;break q}q=i[k+64>>2];m=c-q|0;h=m>>2;l=h+1|0;if(l>>>0>=1073741824){break o}e=d-q|0;d=e>>1;e=e>>2>>>0<536870911?d>>>0>>0?l:d:1073741823;c=0;J:{if(!e){break J}if(e>>>0>=1073741824){break a}c=ok(e<<2)}d=c+(h<<2)|0;i[d>>2]=n;e=c+(e<<2)|0;d=d+4|0;if((m|0)>=1){$k(c,q,m)}i[k+72>>2]=e;i[k+68>>2]=d;i[k+64>>2]=c;if(!q){break q}Zk(q)}d=i[a+40>>2];if((d|0)==i[a+36>>2]){break i}f=(f^-1)+b|0;while(1){c=i[d+ -8>>2];if(c>>>0>f>>>0){break l}if((c|0)!=(f|0)){break i}e=j[d+ -4|0];c=d+ -12|0;d=i[c>>2];i[a+40>>2]=c;if((d|0)<0){break l}h=i[i[k+68>>2]+ -4>>2];i[k+20>>2]=(d^-1)+b;i[k+88>>2]=k+20;Be(k,k+40|0,k+20|0,k+88|0);d=i[k>>2];K:{if(e&1){c=-1;if((h|0)==-1){break K}c=h+1|0;c=(c>>>0)%3|0?c:h+ -2|0;break K}c=-1;if((h|0)==-1){break K}c=h+ -1|0;if((h>>>0)%3|0){break K}c=h+2|0}i[d+12>>2]=c;d=i[a+40>>2];if((d|0)!=i[a+36>>2]){continue}break}break i}Dk();x()}Dk();x()}m=l;c=e}if((c|0)==(m|0)){break l}s=i[m+ -4>>2];d=(s|0)==-1;n=i[a+8>>2];if(i[i[n+12>>2]+(s<<2)>>2]!=-1?!d:0){break l}h=(w|0)==-1;q=i[n+12>>2];if(i[q+(w<<2)>>2]!=-1?!h:0){break l}r=o(f,3);f=r+2|0;i[q+(s<<2)>>2]=f;l=f<<2;i[l+q>>2]=s;c=r+1|0;i[q+(w<<2)>>2]=c;e=c<<2;i[e+q>>2]=w;if(d){break k}p=-1;t=-1;v=i[n>>2];d=v+(r<<2)|0;c=s+((s>>>0)%3|0?-1:2)|0;if((c|0)!=-1){t=i[(c<<2)+v>>2]}i[d>>2]=t;c=s+1|0;c=(c>>>0)%3|0?c:s+ -2|0;if((c|0)==-1){break j}p=i[(c<<2)+v>>2];break j}d=-1;if(p&1){break g}break h}t=-1;v=i[n>>2];i[v+(r<<2)>>2]=-1;p=-1}i[e+v>>2]=p;L:{M:{N:{if(!h){c=w+((w>>>0)%3|0?-1:2)|0;if((c|0)==-1){break N}c=i[(c<<2)+v>>2];i[l+v>>2]=c;if((c|0)==-1){break M}i[i[n+24>>2]+(c<<2)>>2]=f;break M}i[l+v>>2]=-1;z=-1;d=-1;break L}i[l+v>>2]=-1}z=-1;c=w+1|0;c=(c>>>0)%3|0?c:w+ -2|0;d=-1;if((c|0)==-1){break L}z=i[(c<<2)+v>>2];d=c}c=i[n+24>>2];e=c+(z<<2)|0;if((t|0)!=-1){i[c+(t<<2)>>2]=i[e>>2]}O:{if((d|0)==-1){break O}while(1){i[(d<<2)+v>>2]=t;c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1){break O}d=i[q+(c<<2)>>2];if((d|0)==-1){break O}c=d+1|0;d=(c>>>0)%3|0?c:d+ -2|0;if((d|0)!=-1){continue}break}}i[e>>2]=-1;P:{if(A){break P}c=i[k+28>>2];d=i[k+32>>2];if((c|0)!=(d|0)){i[c>>2]=z;i[k+28>>2]=c+4;break P}Q:{q=i[k+24>>2];l=c-q|0;f=l>>2;h=f+1|0;if(h>>>0<1073741824){e=d-q|0;d=e>>1;e=e>>2>>>0<536870911?d>>>0>>0?h:d:1073741823;c=0;R:{if(!e){break R}if(e>>>0>=1073741824){break Q}c=ok(e<<2)}d=c+(f<<2)|0;i[d>>2]=z;e=c+(e<<2)|0;d=d+4|0;if((l|0)>=1){$k(c,q,l)}i[k+32>>2]=e;i[k+28>>2]=d;i[k+24>>2]=c;if(!q){break P}Zk(q);m=i[k+68>>2];break P}Dk();x()}break a}i[m+ -4>>2]=r}p=(u|0)<(b|0);if((b|0)!=(u|0)){continue}break}u=b}d=-1;b=i[a+8>>2];if(i[b+28>>2]-i[b+24>>2]>>2>(y|0)){break g}p=i[k+68>>2];if((p|0)!=i[k+64>>2]){A=a+72|0;b=a+60|0;q=a+312|0;while(1){c=p+ -4|0;n=i[c>>2];i[k+68>>2]=c;S:{if(ld(q)){m=i[a+8>>2];w=i[m>>2];if((u|0)>=((i[m+4>>2]-w>>2>>>0)/3|0)){break g}h=-1;t=-1;l=i[m+24>>2];f=l;c=-1;T:{if((n|0)==-1){break T}e=n+1|0;e=(e>>>0)%3|0?e:n+ -2|0;c=-1;if((e|0)==-1){break T}c=i[w+(e<<2)>>2]}f=i[f+(c<<2)>>2];U:{if((f|0)==-1){break U}e=f+1|0;e=(e>>>0)%3|0?e:f+ -2|0;if((e|0)==-1){break U}f=e+1|0;f=(f>>>0)%3|0?f:e+ -2|0;if((f|0)!=-1){t=i[w+(f<<2)>>2]}h=e}p=-1;z=-1;l=i[l+(t<<2)>>2];f=-1;V:{if((l|0)==-1){break V}e=l+1|0;e=(e>>>0)%3|0?e:l+ -2|0;f=-1;if((e|0)==-1){break V}f=e+1|0;f=(f>>>0)%3|0?f:e+ -2|0;if((f|0)!=-1){z=i[w+(f<<2)>>2]}f=e}y=i[m+12>>2];s=o(u,3);m=s<<2;i[y+m>>2]=n;i[y+(n<<2)>>2]=s;n=s+1|0;l=n<<2;i[l+y>>2]=h;i[y+(h<<2)>>2]=n;r=s+2|0;e=r<<2;i[e+y>>2]=f;i[y+(f<<2)>>2]=r;i[m+w>>2]=t;l=l+w|0;i[l>>2]=z;h=e+w|0;i[h>>2]=c;m=i[a+120>>2];f=n>>>0>>0?-1:t;e=m+(f>>>3&536870908)|0;c=i[e>>2];B=e,C=ol(f)&c,i[B>>2]=C;p=(n|0)!=-1?i[l>>2]:p;e=m+(p>>>3&536870908)|0;c=i[e>>2];B=e,C=ol(p)&c,i[B>>2]=C;p=-1;p=(r|0)!=-1?i[h>>2]:p;e=m+(p>>>3&536870908)|0;c=i[e>>2];B=e,C=ol(p)&c,i[B>>2]=C;p=i[a+64>>2];e=i[a+68>>2];if((p|0)==e<<5){if((p+1|0)<=-1){break e}c=b;if(p>>>0<=1073741822){f=p+32&-32;e=e<<6;e=e>>>0>>0?f:e}else{e=2147483647}Zb(c,e);p=i[a+64>>2]}u=u+1|0;i[a+64>>2]=p+1;c=i[a+60>>2]+(p>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<<(p&31);c=i[a+76>>2];e=i[a+80>>2];if((c|0)!=(e|0)){i[c>>2]=s;i[a+76>>2]=c+4;break S}r=i[A>>2];m=c-r|0;h=m>>2;l=h+1|0;if(l>>>0>=1073741824){break d}f=e-r|0;e=f>>1;f=f>>2>>>0<536870911?e>>>0>>0?l:e:1073741823;c=0;W:{if(!f){break W}if(f>>>0>=1073741824){break a}c=ok(f<<2)}e=c+(h<<2)|0;i[e>>2]=s;f=c+(f<<2)|0;e=e+4|0;if((m|0)>=1){$k(c,r,m)}i[a+80>>2]=f;i[a+76>>2]=e;i[a+72>>2]=c;if(!r){break S}Zk(r);break S}c=i[a+64>>2];h=i[a+68>>2];if((c|0)==h<<5){if((c+1|0)<=-1){break e}e=b;if(c>>>0<=1073741822){f=c+32&-32;c=h<<6;c=c>>>0>>0?f:c}else{c=2147483647}Zb(e,c);c=i[a+64>>2]}i[a+64>>2]=c+1;f=i[a+60>>2]+(c>>>3&536870908)|0;e=i[f>>2];B=f,C=ol(c)&e,i[B>>2]=C;c=i[a+76>>2];e=i[a+80>>2];if((c|0)!=(e|0)){i[c>>2]=n;i[a+76>>2]=c+4;break S}r=i[A>>2];m=c-r|0;h=m>>2;l=h+1|0;if(l>>>0>=1073741824){break d}f=e-r|0;e=f>>1;f=f>>2>>>0<536870911?e>>>0>>0?l:e:1073741823;c=0;X:{if(!f){break X}if(f>>>0>=1073741824){break c}c=ok(f<<2)}e=c+(h<<2)|0;i[e>>2]=n;f=c+(f<<2)|0;e=e+4|0;if((m|0)>=1){$k(c,r,m)}i[a+80>>2]=f;i[a+76>>2]=e;i[a+72>>2]=c;if(!r){break S}Zk(r)}p=i[k+68>>2];if((p|0)!=i[k+64>>2]){continue}break}b=i[a+8>>2]}if(((i[b+4>>2]-i[b>>2]>>2>>>0)/3|0)!=(u|0)){break g}d=i[b+28>>2]-i[b+24>>2]>>2;t=i[k+24>>2];f=i[k+28>>2];if((t|0)==(f|0)){break f}while(1){h=i[t>>2];p=i[b+24>>2];u=d+ -1|0;Y:{if(i[p+(u<<2)>>2]!=-1){c=d;break Y}p=i[b+24>>2];while(1){u=d+ -2|0;c=d+ -1|0;d=c;if(i[(u<<2)+p>>2]==-1){continue}break}}if(u>>>0>=h>>>0){i[k>>2]=b;e=u<<2;d=i[e+p>>2];g[k+12|0]=1;i[k+8>>2]=d;i[k+4>>2]=d;if((d|0)!=-1){i[i[b>>2]+(d<<2)>>2]=h;Gc(k);d=i[k+8>>2];if((d|0)!=-1){while(1){i[i[i[a+8>>2]>>2]+(d<<2)>>2]=h;Gc(k);d=i[k+8>>2];if((d|0)!=-1){continue}break}}b=i[a+8>>2]}d=i[b+24>>2];e=d+e|0;if((h|0)!=-1){i[d+(h<<2)>>2]=i[e>>2]}i[e>>2]=-1;m=1<<(h&31);d=i[a+120>>2];l=d+(h>>>3&536870908)|0;e=l;h=d+(u>>>3&536870908)|0;d=1<<(u&31);u=m|i[l>>2];Z:{if(i[h>>2]&d){break Z}u=i[l>>2]&(m^-1)}i[e>>2]=u;i[h>>2]=i[h>>2]&(d^-1);c=c+ -1|0}d=c;t=t+4|0;if((f|0)!=(t|0)){continue}break}}t=i[k+24>>2]}if(t){i[k+28>>2]=t;Zk(t)}a=i[k+48>>2];if(a){while(1){b=i[a>>2];Zk(a);a=b;if(a){continue}break}}a=i[k+40>>2];i[k+40>>2]=0;if(a){Zk(a)}a=i[k+64>>2];if(a){i[k+68>>2]=a;Zk(a)}H=k+96|0;return d}Dk();x()}Dk();x()}xa(8944)}x()}xa(8944);x()}function He(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0;l=H-96|0;H=l;i[l+72>>2]=0;i[l+64>>2]=0;i[l+68>>2]=0;i[l+48>>2]=0;i[l+52>>2]=0;i[l+40>>2]=0;i[l+44>>2]=0;i[l+56>>2]=1065353216;i[l+32>>2]=0;i[l+24>>2]=0;i[l+28>>2]=0;u=i[a+124>>2];a:{b:{c:{d:{e:{f:{if((b|0)<1){break f}v=a+232|0;z=i[a+216>>2]!=i[a+220>>2];r=1;while(1){m=s;s=m+1|0;g:{h:{i:{j:{k:{l:{m:{n:{c=i[a+404>>2];o:{p:{if((c|0)!=-1){d=-1;e=i[a+428>>2]+(c<<2)|0;h=i[e>>2];c=h+ -1|0;i[e>>2]=c;if((h|0)<1){break e}c=i[i[i[a+416>>2]+o(i[a+404>>2],12)>>2]+(c<<2)>>2];e=i[(c<<2)+9024>>2];i[a+400>>2]=e;if(!c){h=i[l+68>>2];if((h|0)==i[l+64>>2]){break e}k=-1;e=i[a+8>>2];r=i[e+24>>2];f=r;q=h+ -4|0;d=i[q>>2];c=-1;q:{if((d|0)==-1){break q}h=d+1|0;h=(h>>>0)%3|0?h:d+ -2|0;c=-1;if((h|0)==-1){break q}c=i[i[e>>2]+(h<<2)>>2]}h=i[f+(c<<2)>>2];if((h|0)!=-1){k=h+1|0;k=(k>>>0)%3|0?k:h+ -2|0}f=i[e+12>>2];h=o(m,3);m=h+1|0;i[f+(d<<2)>>2]=m;t=m<<2;i[t+f>>2]=d;n=h+2|0;i[f+(k<<2)>>2]=n;m=f;f=n<<2;i[m+f>>2]=k;p=-1;m=-1;r:{if((d|0)==-1){break r}d=d+((d>>>0)%3|0?-1:2)|0;m=-1;if((d|0)==-1){break r}m=i[i[e>>2]+(d<<2)>>2]}s:{if((k|0)==-1){break s}d=k+1|0;d=(d>>>0)%3|0?d:k+ -2|0;if((d|0)==-1){break s}p=i[i[e>>2]+(d<<2)>>2]}d=-1;if((c|0)==(m|0)|(c|0)==(p|0)){break e}d=i[e>>2];i[d+(h<<2)>>2]=c;i[d+t>>2]=p;i[d+f>>2]=m;if((m|0)!=-1){i[r+(m<<2)>>2]=n}d=i[a+120>>2]+(c>>>3&536870908)|0;m=i[d>>2];B=d,C=ol(c)&m,i[B>>2]=C;i[q>>2]=h;Je(v,h);break g}t:{switch(e+ -1|0){case 2:case 4:k=i[l+68>>2];if((k|0)==i[l+64>>2]){break e}h=i[a+8>>2];d=i[h+12>>2];e=o(m,3);f=(c|0)==3;p=e+(f?2:1)|0;q=p<<2;c=i[k+ -4>>2];i[d+q>>2]=c;i[d+(c<<2)>>2]=p;Ae(h+24|0,8380);d=-1;n=i[a+8>>2];k=i[n+24>>2];if(i[n+28>>2]-k>>2>(u|0)){break e}t=e+2|0;d=i[n>>2];h=i[h+28>>2]-i[h+24>>2]|0;n=(h>>2)+ -1|0;i[d+q>>2]=n;if(h){i[k+(n<<2)>>2]=p}h=f?e:t;t=d+(e+f<<2)|0;u:{v:{w:{if((c|0)!=-1){f=c+((c>>>0)%3|0?-1:2)|0;if((f|0)==-1){break w}f=i[d+(f<<2)>>2];i[d+(h<<2)>>2]=f;if((f|0)==-1){break v}i[k+(f<<2)>>2]=h;break v}i[d+(h<<2)>>2]=-1;f=-1;break u}i[d+(h<<2)>>2]=-1}k=c+1|0;c=(k>>>0)%3|0?k:c+ -2|0;f=-1;if((c|0)==-1){break u}f=i[d+(c<<2)>>2]}i[t>>2]=f;d=i[l+68>>2];i[d+ -4>>2]=e;break o;case 6:break p;case 0:break t;default:break e}}h=i[l+68>>2];e=i[l+64>>2];if((h|0)==(e|0)){break e}k=h+ -4|0;p=i[k>>2];i[l+68>>2]=k;n=i[l+44>>2];if(!n){break l}d=i[l+40>>2];q=nl(n)>>>0>1;f=m&n+2147483647;x:{if(!q){break x}c=m;f=c;if(c>>>0>>0){break x}f=(m>>>0)%(n>>>0)|0}c=i[d+(f<<2)>>2];if(!c){break l}d=i[c>>2];if(!d){break l}t=n+ -1|0;while(1){y:{c=i[d+4>>2];z:{if((m|0)!=(c|0)){A:{if(!q){c=c&t;break A}if(c>>>0>>0){break A}c=(c>>>0)%(n>>>0)|0}if((c|0)!=(f|0)){break l}break z}if((m|0)==i[d+8>>2]){break y}}d=i[d>>2];if(d){continue}break l}break}f=i[l+72>>2];if((f|0)!=(k|0)){i[k>>2]=i[d+12>>2];i[l+68>>2]=h;c=e;break k}k=k-e|0;n=k>>2;h=n+1|0;if(h>>>0>=1073741824){break n}f=f-e|0;q=f>>1;h=f>>2>>>0<536870911?q>>>0>>0?h:q:1073741823;c=0;B:{if(!h){break B}if(h>>>0>=1073741824){break a}c=ok(h<<2)}f=c+(n<<2)|0;i[f>>2]=i[d+12>>2];d=(h<<2)+c|0;h=f+4|0;if((k|0)>=1){$k(c,e,k)}i[l+72>>2]=d;i[l+68>>2]=h;i[l+64>>2]=c;if(!e){break k}Zk(e);h=i[l+68>>2];c=i[l+64>>2];break k}i[a+400>>2]=7}h=i[a+8>>2];Ae(h+24|0,8380);d=-1;c=i[a+8>>2];e=o(m,3);k=i[h+28>>2]-i[h+24>>2]|0;h=k>>2;p=h+ -1|0;i[i[c>>2]+(e<<2)>>2]=p;Ae(c+24|0,8380);f=e+1|0;i[i[c>>2]+(f<<2)>>2]=(i[c+28>>2]-i[c+24>>2]>>2)+ -1;c=i[a+8>>2];Ae(c+24|0,8380);n=e+2|0;i[i[c>>2]+(n<<2)>>2]=(i[c+28>>2]-i[c+24>>2]>>2)+ -1;q=i[a+8>>2];c=i[q+24>>2];if(i[q+28>>2]-c>>2>(u|0)){break e}C:{D:{if(!k){i[c+(h<<2)>>2]=f;d=1;break D}i[c+(p<<2)>>2]=e;d=0;if((k|0)==-4){break D}i[c+(h<<2)>>2]=f;d=h+1|0;if((d|0)==-1){break C}}i[c+(d<<2)>>2]=n}c=i[l+68>>2];f=i[l+72>>2];if((c|0)!=(f|0)){i[c>>2]=e;d=c+4|0;i[l+68>>2]=d;break o}h=i[l+64>>2];k=c-h|0;p=k>>2;d=p+1|0;if(d>>>0>=1073741824){break m}f=f-h|0;n=f>>1;d=f>>2>>>0<536870911?n>>>0>>0?d:n:1073741823;c=0;E:{if(!d){break E}if(d>>>0>=1073741824){break a}c=ok(d<<2)}f=c+(p<<2)|0;i[f>>2]=e;e=c+(d<<2)|0;d=f+4|0;if((k|0)>=1){$k(c,h,k)}i[l+72>>2]=e;i[l+68>>2]=d;i[l+64>>2]=c;if(!h){break o}Zk(h);d=i[l+68>>2]}Je(v,i[d+ -4>>2]);d=i[a+40>>2];if((d|0)==i[a+36>>2]){break g}m=(m^-1)+b|0;while(1){c=i[d+ -8>>2];if(c>>>0>m>>>0){break j}if((c|0)!=(m|0)){break g}h=j[d+ -4|0];c=d+ -12|0;e=i[c>>2];i[a+40>>2]=c;if((e|0)<0){break j}c=i[i[l+68>>2]+ -4>>2];i[l+20>>2]=(e^-1)+b;i[l+88>>2]=l+20;Be(l,l+40|0,l+20|0,l+88|0);e=i[l>>2];F:{if(h&1){d=-1;if((c|0)==-1){break F}d=c+1|0;d=(d>>>0)%3|0?d:c+ -2|0;break F}d=-1;if((c|0)==-1){break F}d=c+ -1|0;if((c>>>0)%3|0){break F}d=c+2|0}i[e+12>>2]=d;d=i[a+40>>2];if((d|0)!=i[a+36>>2]){continue}break}break g}Dk();x()}Dk();x()}h=k;c=e}if((c|0)==(h|0)){break j}c=i[h+ -4>>2];e=(c|0)==-1;f=i[a+8>>2];if(i[i[f+12>>2]+(c<<2)>>2]!=-1?!e:0){break j}t=(p|0)==-1;n=i[f+12>>2];if(i[n+(p<<2)>>2]!=-1?!t:0){break j}r=o(m,3);q=r+2|0;i[n+(c<<2)>>2]=q;d=q<<2;i[d+n>>2]=c;m=r+1|0;i[n+(p<<2)>>2]=m;w=m<<2;i[w+n>>2]=p;if(e){break i}e=-1;m=-1;k=i[f>>2];A=k+(r<<2)|0;y=c+((c>>>0)%3|0?-1:2)|0;if((y|0)!=-1){m=i[(y<<2)+k>>2]}i[A>>2]=m;y=c+1|0;c=(y>>>0)%3|0?y:c+ -2|0;if((c|0)==-1){break h}e=i[(c<<2)+k>>2];break h}d=-1;if(r){break e}break f}m=-1;k=i[f>>2];i[k+(r<<2)>>2]=-1;e=-1}i[k+w>>2]=e;G:{H:{I:{if(!t){c=p+((p>>>0)%3|0?-1:2)|0;if((c|0)==-1){break I}c=i[(c<<2)+k>>2];i[d+k>>2]=c;if((c|0)==-1){break H}i[i[f+24>>2]+(c<<2)>>2]=q;break H}i[d+k>>2]=-1;e=-1;d=-1;break G}i[d+k>>2]=-1}e=-1;c=p+1|0;c=(c>>>0)%3|0?c:p+ -2|0;d=-1;if((c|0)==-1){break G}e=i[(c<<2)+k>>2];d=c}c=i[a+388>>2];p=m<<2;q=c+p|0;t=c;c=e<<2;i[q>>2]=i[q>>2]+i[t+c>>2];f=i[f+24>>2];c=f+c|0;if((m|0)!=-1){i[f+p>>2]=i[c>>2]}J:{if((d|0)==-1){break J}while(1){i[(d<<2)+k>>2]=m;f=d+1|0;d=(f>>>0)%3|0?f:d+ -2|0;if((d|0)==-1){break J}d=i[n+(d<<2)>>2];if((d|0)==-1){break J}f=d+1|0;d=(f>>>0)%3|0?f:d+ -2|0;if((d|0)!=-1){continue}break}}i[c>>2]=-1;K:{if(z){break K}c=i[l+28>>2];f=i[l+32>>2];if((c|0)!=(f|0)){i[c>>2]=e;i[l+28>>2]=c+4;break K}L:{d=i[l+24>>2];k=c-d|0;p=k>>2;m=p+1|0;if(m>>>0<1073741824){f=f-d|0;n=f>>1;m=f>>2>>>0<536870911?n>>>0>>0?m:n:1073741823;c=0;M:{if(!m){break M}if(m>>>0>=1073741824){break L}c=ok(m<<2)}f=c+(p<<2)|0;i[f>>2]=e;m=c+(m<<2)|0;e=f+4|0;if((k|0)>=1){$k(c,d,k)}i[l+32>>2]=m;i[l+28>>2]=e;i[l+24>>2]=c;if(!d){break K}Zk(d);h=i[l+68>>2];break K}Dk();x()}break a}i[h+ -4>>2]=r;Je(v,r)}r=(s|0)<(b|0);if((b|0)!=(s|0)){continue}break}s=b}d=-1;m=i[a+8>>2];if(i[m+28>>2]-i[m+24>>2]>>2>(u|0)){break e}e=i[l+68>>2];if((e|0)!=i[l+64>>2]){v=a+72|0;m=a+60|0;z=a+312|0;while(1){b=e+ -4|0;n=i[b>>2];i[l+68>>2]=b;N:{if(ld(z)){u=i[a+8>>2];r=i[u>>2];if((s|0)>=((i[u+4>>2]-r>>2>>>0)/3|0)){break e}e=-1;b=-1;k=i[u+24>>2];h=k;c=-1;O:{if((n|0)==-1){break O}f=n+1|0;f=(f>>>0)%3|0?f:n+ -2|0;c=-1;if((f|0)==-1){break O}c=i[r+(f<<2)>>2]}f=c;c=i[h+(f<<2)>>2];P:{if((c|0)==-1){break P}h=c+1|0;c=(h>>>0)%3|0?h:c+ -2|0;if((c|0)==-1){break P}e=c+1|0;e=(e>>>0)%3|0?e:c+ -2|0;if((e|0)!=-1){b=i[r+(e<<2)>>2]}e=c}p=-1;h=-1;k=i[k+(b<<2)>>2];c=-1;Q:{if((k|0)==-1){break Q}q=k+1|0;k=(q>>>0)%3|0?q:k+ -2|0;c=-1;if((k|0)==-1){break Q}c=k+1|0;c=(c>>>0)%3|0?c:k+ -2|0;if((c|0)!=-1){h=i[r+(c<<2)>>2]}c=k}u=i[u+12>>2];k=o(s,3);t=k<<2;i[u+t>>2]=n;i[u+(n<<2)>>2]=k;n=k+1|0;w=n<<2;i[w+u>>2]=e;i[u+(e<<2)>>2]=n;q=k+2|0;e=q<<2;i[e+u>>2]=c;i[u+(c<<2)>>2]=q;i[r+t>>2]=b;c=r+w|0;i[c>>2]=h;h=e+r|0;i[h>>2]=f;e=n>>>0>>0?-1:b;b=i[a+120>>2];f=(e>>>3&536870908)+b|0;r=i[f>>2];B=f,C=ol(e)&r,i[B>>2]=C;p=(n|0)!=-1?i[c>>2]:p;c=b+(p>>>3&536870908)|0;e=i[c>>2];B=c,C=ol(p)&e,i[B>>2]=C;e=-1;e=(q|0)!=-1?i[h>>2]:e;b=b+(e>>>3&536870908)|0;c=i[b>>2];B=b,C=ol(e)&c,i[B>>2]=C;e=i[a+64>>2];c=i[a+68>>2];if((e|0)==c<<5){if((e+1|0)<=-1){break c}b=m;if(e>>>0<=1073741822){e=e+32&-32;c=c<<6;c=c>>>0>>0?e:c}else{c=2147483647}Zb(b,c);e=i[a+64>>2]}s=s+1|0;i[a+64>>2]=e+1;b=i[a+60>>2]+(e>>>3&536870908)|0;i[b>>2]=i[b>>2]|1<<(e&31);b=i[a+76>>2];f=i[a+80>>2];if((b|0)!=(f|0)){i[b>>2]=k;i[a+76>>2]=b+4;break N}c=i[v>>2];h=b-c|0;p=h>>2;e=p+1|0;if(e>>>0>=1073741824){break b}f=f-c|0;n=f>>1;e=f>>2>>>0<536870911?n>>>0>>0?e:n:1073741823;b=0;R:{if(!e){break R}if(e>>>0>=1073741824){break a}b=ok(e<<2)}f=b+(p<<2)|0;i[f>>2]=k;e=b+(e<<2)|0;k=f+4|0;if((h|0)>=1){$k(b,c,h)}i[a+80>>2]=e;i[a+76>>2]=k;i[a+72>>2]=b;if(!c){break N}Zk(c);break N}c=i[a+64>>2];e=i[a+68>>2];if((c|0)==e<<5){if((c+1|0)<=-1){break c}b=m;if(c>>>0<=1073741822){c=c+32&-32;e=e<<6;c=e>>>0>>0?c:e}else{c=2147483647}Zb(b,c);c=i[a+64>>2]}i[a+64>>2]=c+1;b=i[a+60>>2]+(c>>>3&536870908)|0;e=i[b>>2];B=b,C=ol(c)&e,i[B>>2]=C;b=i[a+76>>2];k=i[a+80>>2];if((b|0)!=(k|0)){i[b>>2]=n;i[a+76>>2]=b+4;break N}c=i[v>>2];h=b-c|0;f=h>>2;e=f+1|0;if(e>>>0>=1073741824){break b}k=k-c|0;p=k>>1;e=k>>2>>>0<536870911?p>>>0>>0?e:p:1073741823;b=0;S:{if(!e){break S}if(e>>>0>=1073741824){break a}b=ok(e<<2)}k=b+(f<<2)|0;i[k>>2]=n;e=b+(e<<2)|0;k=k+4|0;if((h|0)>=1){$k(b,c,h)}i[a+80>>2]=e;i[a+76>>2]=k;i[a+72>>2]=b;if(!c){break N}Zk(c)}e=i[l+68>>2];if((e|0)!=i[l+64>>2]){continue}break}m=i[a+8>>2]}if(((i[m+4>>2]-i[m>>2]>>2>>>0)/3|0)!=(s|0)){break e}d=i[m+28>>2]-i[m+24>>2]>>2;b=i[l+24>>2];k=i[l+28>>2];if((b|0)==(k|0)){break d}while(1){h=i[b>>2];s=i[m+24>>2];e=d+ -1|0;T:{if(i[s+(e<<2)>>2]!=-1){c=d;break T}s=i[m+24>>2];while(1){e=d+ -2|0;c=d+ -1|0;d=c;if(i[(e<<2)+s>>2]==-1){continue}break}}if(e>>>0>=h>>>0){i[l>>2]=m;d=s;s=e<<2;d=i[d+s>>2];g[l+12|0]=1;i[l+8>>2]=d;i[l+4>>2]=d;f=s;if((d|0)!=-1){i[i[m>>2]+(d<<2)>>2]=h;Gc(l);d=i[l+8>>2];if((d|0)!=-1){while(1){i[i[i[a+8>>2]>>2]+(d<<2)>>2]=h;Gc(l);d=i[l+8>>2];if((d|0)!=-1){continue}break}}m=i[a+8>>2]}s=i[m+24>>2];d=f+s|0;if((h|0)!=-1){i[s+(h<<2)>>2]=i[d>>2]}i[d>>2]=-1;d=1<<(h&31);s=h>>>3&536870908;h=i[a+120>>2];s=s+h|0;f=s;h=h+(e>>>3&536870908)|0;e=1<<(e&31);r=d|i[s>>2];U:{if(i[h>>2]&e){break U}r=i[s>>2]&(d^-1)}i[f>>2]=r;i[h>>2]=i[h>>2]&(e^-1);c=c+ -1|0}d=c;b=b+4|0;if((k|0)!=(b|0)){continue}break}}b=i[l+24>>2]}if(b){i[l+28>>2]=b;Zk(b)}a=i[l+48>>2];if(a){while(1){b=i[a>>2];Zk(a);a=b;if(a){continue}break}}a=i[l+40>>2];i[l+40>>2]=0;if(a){Zk(a)}a=i[l+64>>2];if(a){i[l+68>>2]=a;Zk(a)}H=l+96|0;return d}Dk();x()}Dk();x()}xa(8944);x()}function Hf(a,b,c,d,e){var f=0,k=0;f=H-32|0;H=f;i[b+32>>2]=d;i[b+40>>2]=c;i[b+4>>2]=e;Ef(a,d,f+16|0);a:{if(i[a>>2]){break a}c=a+4|0;if(g[a+15|0]<=-1){Zk(i[c>>2])}d=j[f+23|0];if((K[i[i[b>>2]+8>>2]](b)|0)!=(d|0)){b=ok(64);i[f>>2]=b;i[f+4>>2]=50;i[f+8>>2]=-2147483584;g[b+50|0]=0;d=j[10401]|j[10402]<<8;g[b+48|0]=d;g[b+49|0]=d>>>8;d=j[10397]|j[10398]<<8|(j[10399]<<16|j[10400]<<24);e=j[10393]|j[10394]<<8|(j[10395]<<16|j[10396]<<24);g[b+40|0]=e;g[b+41|0]=e>>>8;g[b+42|0]=e>>>16;g[b+43|0]=e>>>24;g[b+44|0]=d;g[b+45|0]=d>>>8;g[b+46|0]=d>>>16;g[b+47|0]=d>>>24;d=j[10389]|j[10390]<<8|(j[10391]<<16|j[10392]<<24);e=j[10385]|j[10386]<<8|(j[10387]<<16|j[10388]<<24);g[b+32|0]=e;g[b+33|0]=e>>>8;g[b+34|0]=e>>>16;g[b+35|0]=e>>>24;g[b+36|0]=d;g[b+37|0]=d>>>8;g[b+38|0]=d>>>16;g[b+39|0]=d>>>24;d=j[10381]|j[10382]<<8|(j[10383]<<16|j[10384]<<24);e=j[10377]|j[10378]<<8|(j[10379]<<16|j[10380]<<24);g[b+24|0]=e;g[b+25|0]=e>>>8;g[b+26|0]=e>>>16;g[b+27|0]=e>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[10373]|j[10374]<<8|(j[10375]<<16|j[10376]<<24);e=j[10369]|j[10370]<<8|(j[10371]<<16|j[10372]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[10365]|j[10366]<<8|(j[10367]<<16|j[10368]<<24);e=j[10361]|j[10362]<<8|(j[10363]<<16|j[10364]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[10357]|j[10358]<<8|(j[10359]<<16|j[10360]<<24);e=j[10353]|j[10354]<<8|(j[10355]<<16|j[10356]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;rk(c,f);if(g[f+11|0]>-1){break a}Zk(i[f>>2]);break a}e=j[f+21|0];g[b+36|0]=e;k=j[f+22|0];g[b+37|0]=k;if((e|0)!=2){b=ok(32);i[f>>2]=b;i[f+4>>2]=26;i[f+8>>2]=-2147483616;g[b+26|0]=0;d=j[10428]|j[10429]<<8;g[b+24|0]=d;g[b+25|0]=d>>>8;d=j[10424]|j[10425]<<8|(j[10426]<<16|j[10427]<<24);e=j[10420]|j[10421]<<8|(j[10422]<<16|j[10423]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[10416]|j[10417]<<8|(j[10418]<<16|j[10419]<<24);e=j[10412]|j[10413]<<8|(j[10414]<<16|j[10415]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[10408]|j[10409]<<8|(j[10410]<<16|j[10411]<<24);e=j[10404]|j[10405]<<8|(j[10406]<<16|j[10407]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-5;rk(c,f);if(g[f+11|0]>-1){break a}Zk(i[f>>2]);break a}d=d?2:3;if((d|0)!=(k|0)){b=ok(32);i[f>>2]=b;i[f+4>>2]=26;i[f+8>>2]=-2147483616;g[b+26|0]=0;d=j[10455]|j[10456]<<8;g[b+24|0]=d;g[b+25|0]=d>>>8;d=j[10451]|j[10452]<<8|(j[10453]<<16|j[10454]<<24);e=j[10447]|j[10448]<<8|(j[10449]<<16|j[10450]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[10443]|j[10444]<<8|(j[10445]<<16|j[10446]<<24);e=j[10439]|j[10440]<<8|(j[10441]<<16|j[10442]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[10435]|j[10436]<<8|(j[10437]<<16|j[10438]<<24);e=j[10431]|j[10432]<<8|(j[10433]<<16|j[10434]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-5;rk(c,f);if(g[f+11|0]>-1){break a}Zk(i[f>>2]);break a}h[i[b+32>>2]+38>>1]=d|512;b:{if(h[f+26>>1]>-1){break b}Ff(a,b);if(i[a>>2]){break a}if(g[c+11|0]>-1){break b}Zk(i[c>>2])}if(!(K[i[i[b>>2]+12>>2]](b)|0)){b=ok(48);i[f>>2]=b;i[f+4>>2]=33;i[f+8>>2]=-2147483600;g[b+33|0]=0;g[b+32|0]=j[10490];d=j[10486]|j[10487]<<8|(j[10488]<<16|j[10489]<<24);e=j[10482]|j[10483]<<8|(j[10484]<<16|j[10485]<<24);g[b+24|0]=e;g[b+25|0]=e>>>8;g[b+26|0]=e>>>16;g[b+27|0]=e>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[10478]|j[10479]<<8|(j[10480]<<16|j[10481]<<24);e=j[10474]|j[10475]<<8|(j[10476]<<16|j[10477]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[10470]|j[10471]<<8|(j[10472]<<16|j[10473]<<24);e=j[10466]|j[10467]<<8|(j[10468]<<16|j[10469]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[10462]|j[10463]<<8|(j[10464]<<16|j[10465]<<24);e=j[10458]|j[10459]<<8|(j[10460]<<16|j[10461]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;rk(c,f);if(g[f+11|0]>-1){break a}Zk(i[f>>2]);break a}if(!(K[i[i[b>>2]+20>>2]](b)|0)){b=ok(32);i[f>>2]=b;i[f+4>>2]=31;i[f+8>>2]=-2147483616;g[b+31|0]=0;d=j[10519]|j[10520]<<8|(j[10521]<<16|j[10522]<<24);e=j[10515]|j[10516]<<8|(j[10517]<<16|j[10518]<<24);g[b+23|0]=e;g[b+24|0]=e>>>8;g[b+25|0]=e>>>16;g[b+26|0]=e>>>24;g[b+27|0]=d;g[b+28|0]=d>>>8;g[b+29|0]=d>>>16;g[b+30|0]=d>>>24;d=j[10512]|j[10513]<<8|(j[10514]<<16|j[10515]<<24);e=j[10508]|j[10509]<<8|(j[10510]<<16|j[10511]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[10504]|j[10505]<<8|(j[10506]<<16|j[10507]<<24);e=j[10500]|j[10501]<<8|(j[10502]<<16|j[10503]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[10496]|j[10497]<<8|(j[10498]<<16|j[10499]<<24);e=j[10492]|j[10493]<<8|(j[10494]<<16|j[10495]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;rk(c,f);if(g[f+11|0]>-1){break a}Zk(i[f>>2]);break a}if(!(K[i[i[b>>2]+24>>2]](b)|0)){b=ok(48);i[f>>2]=b;i[f+4>>2]=34;i[f+8>>2]=-2147483600;g[b+34|0]=0;d=j[10556]|j[10557]<<8;g[b+32|0]=d;g[b+33|0]=d>>>8;d=j[10552]|j[10553]<<8|(j[10554]<<16|j[10555]<<24);e=j[10548]|j[10549]<<8|(j[10550]<<16|j[10551]<<24);g[b+24|0]=e;g[b+25|0]=e>>>8;g[b+26|0]=e>>>16;g[b+27|0]=e>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[10544]|j[10545]<<8|(j[10546]<<16|j[10547]<<24);e=j[10540]|j[10541]<<8|(j[10542]<<16|j[10543]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[10536]|j[10537]<<8|(j[10538]<<16|j[10539]<<24);e=j[10532]|j[10533]<<8|(j[10534]<<16|j[10535]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[10528]|j[10529]<<8|(j[10530]<<16|j[10531]<<24);e=j[10524]|j[10525]<<8|(j[10526]<<16|j[10527]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;rk(c,f);if(g[f+11|0]>-1){break a}Zk(i[f>>2]);break a}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}H=f+32|0}function Ef(a,b,c){var d=0,e=0,f=0,k=0,m=0,n=0;e=H-16|0;H=e;k=i[b+12>>2];d=i[b+20>>2];f=i[b+16>>2];m=f+5|0;if(m>>>0<5){d=d+1|0}a:{if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]>>0:0){b=ok(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[10297]|j[10298]<<8|(j[10299]<<16|j[10300]<<24);d=j[10293]|j[10294]<<8|(j[10295]<<16|j[10296]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[2573];d=i[2572];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[2571];d=i[2570];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[2569];d=i[2568];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;rk(a+4|0,e);if(g[e+11|0]>-1){break a}Zk(i[e>>2]);break a}d=f+i[b>>2]|0;k=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);g[c|0]=k;g[c+1|0]=k>>>8;g[c+2|0]=k>>>16;g[c+3|0]=k>>>24;g[c+4|0]=j[d+4|0];k=b;d=i[b+20>>2];f=i[b+16>>2]+5|0;if(f>>>0<5){d=d+1|0}m=f;f=d;i[k+16>>2]=m;i[k+20>>2]=d;if(Nj(c,10302,5)){b=ok(32);i[e>>2]=b;i[e+4>>2]=17;i[e+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[10324];c=j[10320]|j[10321]<<8|(j[10322]<<16|j[10323]<<24);d=j[10316]|j[10317]<<8|(j[10318]<<16|j[10319]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[10312]|j[10313]<<8|(j[10314]<<16|j[10315]<<24);d=j[10308]|j[10309]<<8|(j[10310]<<16|j[10311]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;rk(a+4|0,e);if(g[e+11|0]>-1){break a}Zk(i[e>>2]);break a}d=i[b+12>>2];if((d|0)<(f|0)?1:(d|0)<=(f|0)?l[b+8>>2]<=m>>>0:0){b=ok(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[10297]|j[10298]<<8|(j[10299]<<16|j[10300]<<24);d=j[10293]|j[10294]<<8|(j[10295]<<16|j[10296]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[2573];d=i[2572];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[2571];d=i[2570];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[2569];d=i[2568];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;rk(a+4|0,e);if(g[e+11|0]>-1){break a}Zk(i[e>>2]);break a}g[c+5|0]=j[m+i[b>>2]|0];d=i[b+20>>2];f=i[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}i[b+16>>2]=f;i[k+20>>2]=d;k=i[b+12>>2];if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]<=f>>>0:0){b=ok(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[10297]|j[10298]<<8|(j[10299]<<16|j[10300]<<24);d=j[10293]|j[10294]<<8|(j[10295]<<16|j[10296]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[2573];d=i[2572];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[2571];d=i[2570];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[2569];d=i[2568];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;rk(a+4|0,e);if(g[e+11|0]>-1){break a}Zk(i[e>>2]);break a}g[c+6|0]=j[f+i[b>>2]|0];d=i[b+20>>2];f=i[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}i[b+16>>2]=f;i[b+20>>2]=d;k=i[b+12>>2];if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]<=f>>>0:0){b=ok(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[10297]|j[10298]<<8|(j[10299]<<16|j[10300]<<24);d=j[10293]|j[10294]<<8|(j[10295]<<16|j[10296]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[2573];d=i[2572];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[2571];d=i[2570];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[2569];d=i[2568];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;rk(a+4|0,e);if(g[e+11|0]>-1){break a}Zk(i[e>>2]);break a}g[c+7|0]=j[f+i[b>>2]|0];d=i[b+20>>2];f=i[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}i[b+16>>2]=f;i[b+20>>2]=d;k=i[b+12>>2];if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]<=f>>>0:0){b=ok(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[10297]|j[10298]<<8|(j[10299]<<16|j[10300]<<24);d=j[10293]|j[10294]<<8|(j[10295]<<16|j[10296]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[2573];d=i[2572];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[2571];d=i[2570];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[2569];d=i[2568];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;rk(a+4|0,e);if(g[e+11|0]>-1){break a}Zk(i[e>>2]);break a}g[c+8|0]=j[f+i[b>>2]|0];d=i[b+20>>2];f=d;n=i[b+16>>2];m=n+1|0;if(m>>>0<1){d=d+1|0}i[b+16>>2]=m;i[b+20>>2]=d;k=i[b+12>>2];d=f;f=n+3|0;if(f>>>0<3){d=d+1|0}if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]>>0:0){b=ok(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[10297]|j[10298]<<8|(j[10299]<<16|j[10300]<<24);d=j[10293]|j[10294]<<8|(j[10295]<<16|j[10296]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[2573];d=i[2572];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[2571];d=i[2570];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[2569];d=i[2568];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;rk(a+4|0,e);if(g[e+11|0]>-1){break a}Zk(i[e>>2]);break a}f=c;c=m+i[b>>2]|0;h[f+10>>1]=j[c|0]|j[c+1|0]<<8;c=b;f=b;d=i[b+20>>2];b=i[b+16>>2]+2|0;if(b>>>0<2){d=d+1|0}i[f+16>>2]=b;i[c+20>>2]=d;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0}H=e+16|0}function Yb(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0;j=H+ -64|0;H=j;i[a+8>>2]=e;f=a+32|0;k=i[f>>2];d=i[a+36>>2]-k>>2;a:{if(d>>>0>>0){Na(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=k+(e<<2)}i[j+56>>2]=0;i[j+60>>2]=0;i[j+48>>2]=0;i[j+52>>2]=0;i[j+40>>2]=0;i[j+44>>2]=0;f=j+32|0;i[f>>2]=0;i[f+4>>2]=0;i[j+24>>2]=0;i[j+28>>2]=0;i[j+16>>2]=0;i[j+20>>2]=0;i[j>>2]=0;d=0;if(e){Pa(j+16|0,e,j);h=i[j+28>>2];d=i[f>>2]}i[j>>2]=0;d=d-h>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}i[j+32>>2]=(e<<2)+h;break b}Pa(j+16|12,e-d|0,j)}i[j>>2]=0;f=i[j+40>>2];d=i[j+44>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}i[j+44>>2]=f+(e<<2);break c}Pa(j+40|0,e-d|0,j)}i[j>>2]=0;f=i[j+52>>2];d=i[j+56>>2]-f>>2;d:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break d}i[j+56>>2]=f+(e<<2);break d}Pa(j+52|0,e-d|0,j)}e:{if(i[a+8>>2]<=0){break e}g=i[j+16>>2];h=0;while(1){d=h<<2;f=i[d+g>>2];l=i[a+16>>2];f:{if((f|0)>(l|0)){k=i[a+32>>2];i[d+k>>2]=l;break f}k=i[a+32>>2];d=d+k|0;l=i[a+12>>2];if((f|0)<(l|0)){i[d>>2]=l;break f}i[d>>2]=f}h=h+1|0;d=i[a+8>>2];if((h|0)<(d|0)){continue}break}if((d|0)<1){break e}d=0;while(1){g=d<<2;f=g+c|0;g=i[b+g>>2]+i[g+k>>2]|0;i[f>>2]=g;g:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break g}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}A=i[a+52>>2];q=i[a+48>>2];u=ok(16);d=u;i[d>>2]=0;i[d+4>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[j+8>>2]=0;i[j>>2]=0;i[j+4>>2]=0;h:{if(e){if(e>>>0>=1073741824){break h}d=e<<2;t=ok(d);i[j>>2]=t;f=d+t|0;i[j+8>>2]=f;al(t,0,d);i[j+4>>2]=f}d=1;f=i[a+56>>2];z=i[f>>2];f=i[f+4>>2]-z|0;i:{if((f|0)<5){break i}d=f>>2;B=(d|0)>2?d:2;C=d>>>0>1?d:1;D=e<<2;l=1;while(1){j:{k:{l:{if((l|0)!=(C|0)){m:{n:{k=i[(l<<2)+z>>2];if((k|0)==-1){break n}n=k+((k>>>0)%3|0?-1:2)|0;v=n>>>5|0;m=1;w=1<<(n&31);y=i[q>>2];f=0;d=k;o:{while(1){p:{if(i[y+(d>>>3&536870908)>>2]>>>(d&31)&1){break p}g=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((g|0)==-1){break p}r=i[A>>2];h=i[q+28>>2];s=i[r+(i[h+(g<<2)>>2]<<2)>>2];if((s|0)>=(l|0)){break p}p=g+1|0;p=i[r+(i[h+(((p>>>0)%3|0?p:g+ -2|0)<<2)>>2]<<2)>>2];if((p|0)>=(l|0)){break p}g=i[r+(i[h+(g+((g>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((g|0)>=(l|0)){break p}if((e|0)>=1){r=i[(j+16|0)+o(f,12)>>2];g=o(e,g);p=o(e,p);s=o(e,s);h=0;while(1){i[r+(h<<2)>>2]=(i[(g+h<<2)+c>>2]+i[(h+p<<2)+c>>2]|0)-i[(h+s<<2)+c>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}g=4;f=f+1|0;if((f|0)==4){break o}}q:{if(m&1){h=-1;g=d+1|0;d=(g>>>0)%3|0?g:d+ -2|0;if((d|0)==-1|i[i[q>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1){break q}d=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break q}g=d+1|0;h=(g>>>0)%3|0?g:d+ -2|0;break q}h=-1;d=((d>>>0)%3|0?-1:2)+d|0;if((d|0)==-1|i[i[q>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1){break q}d=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break q}if((d>>>0)%3|0){h=d+ -1|0;break q}h=d+2|0}r:{if((h|0)==(k|0)){break r}d=h;g=(h|0)!=-1;h=(g|m^-1)&1;d=h?d:-1;m=g&m;if(!((n|0)==-1|h)){if(i[i[q>>2]+(v<<2)>>2]&w){break r}g=i[i[i[q+64>>2]+12>>2]+(n<<2)>>2];if((g|0)==-1){break r}m=0;if((g>>>0)%3|0){d=g+ -1|0}else{d=g+2|0}}if((d|0)!=-1){continue}}break}g=f;if((g|0)<1){break n}}n=(e|0)<1;if(!n){al(t,0,D)}d=g+ -1|0;m=(d<<2)+u|0;d=o(d,12)+a|0;r=d+60|0;v=i[d- -64>>2];d=0;w=i[j>>2];k=0;f=0;while(1){h=i[m>>2];i[m>>2]=h+1;if(v>>>0<=h>>>0){break i}s:{if(i[i[r>>2]+(h>>>3&536870908)>>2]>>>(h&31)&1){break s}f=f+1|0;if(n){break s}y=i[(j+16|0)+o(k,12)>>2];h=0;while(1){s=h<<2;p=s+w|0;i[p>>2]=i[p>>2]+i[s+y>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}k=k+1|0;if((g|0)!=(k|0)){continue}break}m=o(e,l);g=m;if(!f){break m}h=0;if((e|0)>0){break l}break k}g=o(e,l)}if(i[a+8>>2]<1){break j}m=(o(l+ -1|0,e)<<2)+c|0;h=0;while(1){d=h<<2;f=i[d+m>>2];n=i[a+16>>2];t:{if((f|0)>(n|0)){k=i[a+32>>2];i[d+k>>2]=n;break t}k=i[a+32>>2];d=d+k|0;n=i[a+12>>2];if((f|0)<(n|0)){i[d>>2]=n;break t}i[d>>2]=f}h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}d=0;if((f|0)<1){break j}f=g<<2;h=f+c|0;m=b+f|0;while(1){g=d<<2;f=g+h|0;g=i[g+m>>2]+i[g+k>>2]|0;i[f>>2]=g;u:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break u}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}break j}Ek();x()}while(1){d=(h<<2)+t|0;i[d>>2]=i[d>>2]/(f|0);h=h+1|0;if((h|0)!=(e|0)){continue}break}}if(i[a+8>>2]<1){break j}h=0;while(1){d=h<<2;f=i[d+t>>2];g=i[a+16>>2];v:{if((f|0)>(g|0)){k=i[a+32>>2];i[d+k>>2]=g;break v}k=i[a+32>>2];d=d+k|0;g=i[a+12>>2];if((f|0)<(g|0)){i[d>>2]=g;break v}i[d>>2]=f}h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}d=0;if((f|0)<1){break j}f=m<<2;h=f+c|0;m=b+f|0;while(1){g=d<<2;f=g+h|0;g=i[g+m>>2]+i[g+k>>2]|0;i[f>>2]=g;w:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break w}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}d=1;l=l+1|0;if((B|0)!=(l|0)){continue}break}}a=i[j>>2];if(a){i[j+4>>2]=a;Zk(a)}Zk(u);a=i[j+52>>2];if(a){i[j+56>>2]=a;Zk(a)}a=i[j+40>>2];if(a){i[j+44>>2]=a;Zk(a)}a=i[j+28>>2];if(a){i[j+32>>2]=a;Zk(a)}a=i[j+16>>2];if(a){i[j+20>>2]=a;Zk(a)}H=j- -64|0;return d|0}Dk();x()}function xc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0;h=H+ -64|0;H=h;i[a+8>>2]=e;f=a+32|0;k=i[f>>2];d=i[a+36>>2]-k>>2;a:{if(d>>>0>>0){Na(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=k+(e<<2)}i[h+56>>2]=0;i[h+60>>2]=0;i[h+48>>2]=0;i[h+52>>2]=0;i[h+40>>2]=0;i[h+44>>2]=0;d=h+32|0;i[d>>2]=0;i[d+4>>2]=0;i[h+24>>2]=0;i[h+28>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;i[h>>2]=0;f=0;if(e){Pa(h+16|0,e,h);j=i[h+28>>2];f=i[d>>2]}i[h>>2]=0;d=f-j>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}i[h+32>>2]=(e<<2)+j;break b}Pa(h+16|12,e-d|0,h)}i[h>>2]=0;f=i[h+40>>2];d=i[h+44>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}i[h+44>>2]=f+(e<<2);break c}Pa(h+40|0,e-d|0,h)}i[h>>2]=0;f=i[h+52>>2];d=i[h+56>>2]-f>>2;d:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break d}i[h+56>>2]=f+(e<<2);break d}Pa(h+52|0,e-d|0,h)}e:{if(i[a+8>>2]<=0){break e}g=i[h+16>>2];j=0;while(1){d=j<<2;f=i[d+g>>2];m=i[a+16>>2];f:{if((f|0)>(m|0)){k=i[a+32>>2];i[d+k>>2]=m;break f}k=i[a+32>>2];d=d+k|0;m=i[a+12>>2];if((f|0)<(m|0)){i[d>>2]=m;break f}i[d>>2]=f}j=j+1|0;d=i[a+8>>2];if((j|0)<(d|0)){continue}break}if((d|0)<1){break e}f=0;while(1){g=f<<2;d=g+c|0;g=i[b+g>>2]+i[g+k>>2]|0;i[d>>2]=g;g:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break g}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}}A=i[a+52>>2];y=i[a+48>>2];w=ok(16);d=w;i[d>>2]=0;i[d+4>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;h:{if(e){if(e>>>0>=1073741824){break h}d=e<<2;s=ok(d);i[h>>2]=s;f=d+s|0;i[h+8>>2]=f;al(s,0,d);i[h+4>>2]=f}k=1;d=i[a+56>>2];z=i[d>>2];d=i[d+4>>2]-z|0;i:{if((d|0)<5){break i}d=d>>2;B=(d|0)>2?d:2;C=d>>>0>1?d:1;D=e<<2;m=1;while(1){j:{k:{l:{if((m|0)!=(C|0)){m:{n:{k=i[(m<<2)+z>>2];if((k|0)==-1){break n}n=i[y+12>>2];u=k+((k>>>0)%3|0?-1:2)|0;v=n+(u<<2)|0;l=1;f=0;d=k;o:{while(1){g=i[n+(d<<2)>>2];p:{if((g|0)==-1){break p}j=-1;r=i[A>>2];p=i[y>>2];t=i[r+(i[p+(g<<2)>>2]<<2)>>2];q=g+1|0;q=(q>>>0)%3|0?q:g+ -2|0;if((q|0)!=-1){q=i[p+(q<<2)>>2]}else{q=-1}g=g+((g>>>0)%3|0?-1:2)|0;if((g|0)!=-1){j=i[p+(g<<2)>>2]}if((t|0)>=(m|0)){break p}g=i[(q<<2)+r>>2];if((g|0)>=(m|0)){break p}j=i[r+(j<<2)>>2];if((j|0)>=(m|0)){break p}p=i[(h+16|0)+o(f,12)>>2];if((e|0)>=1){r=o(e,j);g=o(e,g);t=o(e,t);j=0;while(1){i[p+(j<<2)>>2]=(i[(j+r<<2)+c>>2]+i[(g+j<<2)+c>>2]|0)-i[(j+t<<2)+c>>2];j=j+1|0;if((j|0)!=(e|0)){continue}break}}g=4;f=f+1|0;if((f|0)==4){break o}}q:{if(l&1){p=d+1|0;d=(p>>>0)%3|0?p:d+ -2|0;g=-1;if((d|0)==-1){break q}d=i[n+(d<<2)>>2];g=-1;if((d|0)==-1){break q}g=d+1|0;g=(g>>>0)%3|0?g:d+ -2|0;break q}d=((d>>>0)%3|0?-1:2)+d|0;g=-1;if((d|0)==-1){break q}d=i[n+(d<<2)>>2];g=-1;if((d|0)==-1){break q}g=d+ -1|0;if((d>>>0)%3|0){break q}g=d+2|0}r:{if((g|0)==(k|0)){break r}d=g;g=(g|0)!=-1;j=(g|l^-1)&1;d=j?d:-1;l=g&l;if(!((u|0)==-1|j)){g=i[v>>2];if((g|0)==-1){break r}l=0;if((g>>>0)%3|0){d=g+ -1|0}else{d=g+2|0}}if((d|0)!=-1){continue}}break}g=f;if((g|0)<1){break n}}n=(e|0)<1;if(!n){al(s,0,D)}d=g+ -1|0;l=(d<<2)+w|0;d=o(d,12)+a|0;p=d+60|0;r=i[d- -64>>2];k=0;t=i[h>>2];d=0;f=0;while(1){j=i[l>>2];i[l>>2]=j+1;if(r>>>0<=j>>>0){break i}s:{if(i[i[p>>2]+(j>>>3&536870908)>>2]>>>(j&31)&1){break s}f=f+1|0;if(n){break s}q=i[(h+16|0)+o(d,12)>>2];j=0;while(1){u=j<<2;v=u+t|0;i[v>>2]=i[v>>2]+i[q+u>>2];j=j+1|0;if((j|0)!=(e|0)){continue}break}}d=d+1|0;if((g|0)!=(d|0)){continue}break}g=o(e,m);d=g;if(!f){break m}j=0;if((e|0)>0){break l}break k}d=o(e,m)}if(i[a+8>>2]<1){break j}l=(o(m+ -1|0,e)<<2)+c|0;j=0;while(1){f=j<<2;g=i[f+l>>2];n=i[a+16>>2];t:{if((g|0)>(n|0)){k=i[a+32>>2];i[f+k>>2]=n;break t}k=i[a+32>>2];f=f+k|0;n=i[a+12>>2];if((g|0)<(n|0)){i[f>>2]=n;break t}i[f>>2]=g}j=j+1|0;g=i[a+8>>2];if((j|0)<(g|0)){continue}break}f=0;if((g|0)<1){break j}d=d<<2;j=d+c|0;l=b+d|0;while(1){g=f<<2;d=g+j|0;g=i[g+l>>2]+i[g+k>>2]|0;i[d>>2]=g;u:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break u}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}break j}Ek();x()}while(1){d=(j<<2)+s|0;i[d>>2]=i[d>>2]/(f|0);j=j+1|0;if((j|0)!=(e|0)){continue}break}}if(i[a+8>>2]<1){break j}j=0;while(1){d=j<<2;f=i[d+s>>2];l=i[a+16>>2];v:{if((f|0)>(l|0)){k=i[a+32>>2];i[d+k>>2]=l;break v}k=i[a+32>>2];d=d+k|0;l=i[a+12>>2];if((f|0)<(l|0)){i[d>>2]=l;break v}i[d>>2]=f}j=j+1|0;d=i[a+8>>2];if((j|0)<(d|0)){continue}break}f=0;if((d|0)<1){break j}d=g<<2;j=d+c|0;l=b+d|0;while(1){g=f<<2;d=g+j|0;g=i[g+l>>2]+i[g+k>>2]|0;i[d>>2]=g;w:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break w}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}}k=1;m=m+1|0;if((B|0)!=(m|0)){continue}break}}a=i[h>>2];if(a){i[h+4>>2]=a;Zk(a)}Zk(w);a=i[h+52>>2];if(a){i[h+56>>2]=a;Zk(a)}a=i[h+40>>2];if(a){i[h+44>>2]=a;Zk(a)}a=i[h+28>>2];if(a){i[h+32>>2]=a;Zk(a)}a=i[h+16>>2];if(a){i[h+20>>2]=a;Zk(a)}H=h- -64|0;return k|0}Dk();x()}function Dg(a,b,c,d){var e=0,f=0,h=0,o=0,r=p(0),s=0,t=0;a:{if(!d){break a}b:{c:{switch(i[a+28>>2]+ -1|0){case 0:d:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break d}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){g[b+d|0]=j[f|0];b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break d}f=f+1|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 1:e:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break e}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=g[f|0];if((e|0)<0){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break e}f=f+1|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 2:f:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break f}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=k[f>>1];if((e+128&65535)>>>0>255){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break f}f=f+2|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 3:g:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break g}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=k[f>>1];if(e>>>0>127){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break g}f=f+2|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 4:h:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break h}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f>>2];if(e+128>>>0>255){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break h}f=f+4|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 5:i:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break i}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f>>2];if(e>>>0>127){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break i}f=f+4|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 6:j:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break j}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f+4>>2];h=i[f>>2];o=h+128|0;if(o>>>0<128){e=e+1|0}if(!e&o>>>0>255|e>>>0>0){break a}g[b+d|0]=h;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break j}f=f+8|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 7:k:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break k}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f+4>>2];h=i[f>>2];if(!e&h>>>0>127|e>>>0>0){break a}g[b+d|0]=h;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break k}f=f+8|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 8:l:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break l}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){h=b+d|0;r=m[f>>2];m:{if(p(q(r))=((e|0)>(c|0)?c:e)<<24>>24){break l}f=f+4|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 9:n:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break n}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){h=b+d|0;s=n[f>>3];o:{if(q(s)<2147483648){e=~~s;break o}e=-2147483648}g[h|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break n}f=f+8|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 10:break c;default:break a}}p:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break p}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){g[b+d|0]=j[f|0];b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break p}f=f+1|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0)}t=1}return t}function Fg(a,b,c,d){var e=0,f=0,h=0,o=p(0),q=0,r=0;a:{if(!d){break a}b:{c:{switch(i[a+28>>2]+ -1|0){case 0:d:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break d}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=g[f|0];if((e|0)<0){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break d}f=f+1|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 1:e:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break e}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){g[b+d|0]=j[f|0];b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break e}f=f+1|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 2:f:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break f}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=k[f>>1];if(e>>>0>255){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break f}f=f+2|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 3:g:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break g}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=k[f>>1];if(e>>>0>255){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break g}f=f+2|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 4:h:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break h}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f>>2];if(e>>>0>255){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break h}f=f+4|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 5:i:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break i}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f>>2];if(e>>>0>255){break a}g[b+d|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break i}f=f+4|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 6:j:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break j}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f+4>>2];h=i[f>>2];if(!e&h>>>0>255|e>>>0>0){break a}g[b+d|0]=h;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break j}f=f+8|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 7:k:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break k}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){e=i[f+4>>2];h=i[f>>2];if(!e&h>>>0>255|e>>>0>0){break a}g[b+d|0]=h;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break k}f=f+8|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 8:l:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break l}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){h=b+d|0;o=m[f>>2];m:{if(o=p(0)){e=~~o>>>0;break m}e=0}g[h|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break l}f=f+4|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 9:n:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break n}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){h=b+d|0;q=n[f>>3];o:{if(q<4294967296&q>=0){e=~~q>>>0;break o}e=0}g[h|0]=e;b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break n}f=f+8|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0);break b;case 10:break c;default:break a}}p:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break p}f=i[a>>2];e=i[f>>2];f=i[f+4>>2]-e|0;b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;if((f|0)<=(b|0)){break a}f=b+e|0;b=0;while(1){g[b+d|0]=j[f|0];b=b+1|0;e=g[a+24|0];if((b|0)>=((e|0)>(c|0)?c:e)<<24>>24){break p}f=f+1|0;if(l[i[a>>2]+4>>2]>f>>>0){continue}break}break a}if((e|0)>=(c|0)){break b}al(d+e|0,0,c-e|0)}r=1}return r}function Rj(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=H-16|0;H=e;i[e+12>>2]=a;a:{if(a>>>0<=211){a=i[Sj(11424,11616,e+12|0)>>2];break a}if(a>>>0>=4294967292){Uj();x()}f=(a>>>0)/210|0;d=o(f,210);i[e+8>>2]=a-d;g=Sj(11616,11808,e+8|0)-11616>>2;b:{while(1){a=i[(g<<2)+11616>>2]+d|0;d=5;b=h;c:{d:{while(1){h=b;if((d|0)==47){d=211;while(1){b=(a>>>0)/(d>>>0)|0;if(b>>>0>>0){break c}if((o(b,d)|0)==(a|0)){break d}b=d+10|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+12|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+16|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+18|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+22|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+28|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+30|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+36|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+40|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+42|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+46|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+52|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+58|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+60|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+66|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+70|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+72|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+78|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+82|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+88|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+96|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+100|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+102|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+106|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+108|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+112|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+120|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+126|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+130|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+136|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+138|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+142|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+148|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+150|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+156|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+162|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+166|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+168|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+172|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+178|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+180|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+186|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+190|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+192|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+196|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+198|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+208|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}d=d+210|0;if((o(b,c)|0)!=(a|0)){continue}break}break d}b=i[(d<<2)+11424>>2];c=(a>>>0)/(b>>>0)|0;j=o(b,c);c=c>>>0>>0;if(!c){b=c?a:h;d=d+1|0;if((a|0)!=(j|0)){continue}}break}if((a|0)!=(j|0)|c){break b}}b=g+1|0;a=(b|0)==48;g=a?0:b;f=a+f|0;d=o(f,210);continue}break}i[e+12>>2]=a;break a}i[e+12>>2]=a;a=c?a:h}H=e+16|0;return a}function pe(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;h=H+ -64|0;H=h;i[a+132>>2]=0;if(i[a+148>>2]){c=i[a+144>>2];if(c){while(1){d=i[c>>2];Zk(c);c=d;if(c){continue}break}}i[a+144>>2]=0;d=i[a+140>>2];if(d){c=0;while(1){i[i[a+136>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}}i[a+148>>2]=0}a:{if(!qe(1,h+52|0,i[i[a+4>>2]+32>>2])){break a}i[a+156>>2]=i[h+52>>2];if(!qe(1,h+48|0,i[i[a+4>>2]+32>>2])){break a}e=i[h+48>>2];if(e>>>0>1431655765|l[a+156>>2]>o(e,3)>>>0){break a}c=i[i[a+4>>2]+32>>2];p=i[c+16>>2];f=i[c+12>>2];d=i[c+20>>2];if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]<=p>>>0:0){break a}m=j[p+i[c>>2]|0];p=p+1|0;if(p>>>0<1){d=d+1|0}i[c+16>>2]=p;i[c+20>>2]=d;if(!qe(1,h+44|0,c)){break a}q=i[h+44>>2];if(e>>>0>>0|e>>>0>q+((q>>>0)/3|0)>>>0){break a}if(!qe(1,h+40|0,i[i[a+4>>2]+32>>2])){break a}f=i[h+40>>2];if(f>>>0>q>>>0){break a}i[a+28>>2]=i[a+24>>2];d=ok(88);Oi(d);c=i[a+8>>2];i[a+8>>2]=d;p=a+8|0;if(c){re(p,c);if(!i[p>>2]){break a}}b=i[a+160>>2];i[a+164>>2]=b;b:{c:{d:{e:{f:{if(i[a+168>>2]-b>>2>>>0>=e>>>0){break f}if(e>>>0>=1073741824){break e}d=e<<2;c=ok(d);i[a+164>>2]=c;i[a+160>>2]=c;i[a+168>>2]=c+d;if(!b){break f}Zk(b)}b=i[a+172>>2];i[a+176>>2]=b;g:{if(i[a+180>>2]-b>>2>>>0>=e>>>0){break g}if(e>>>0>=1073741824){break d}d=e<<2;c=ok(d);i[a+176>>2]=c;i[a+172>>2]=c;i[a+180>>2]=c+d;if(!b){break g}Zk(b)}i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+40>>2]=i[a+36>>2];i[a- -64>>2]=0;i[a+52>>2]=i[a+48>>2];i[a+76>>2]=i[a+72>>2];r=a+216|0;d=i[a+220>>2];b=i[a+216>>2];if((d|0)==(b|0)){break c}while(1){c=i[d+ -12>>2];if(c){i[d+ -8>>2]=c;Zk(c)}c=i[d+ -28>>2];if(c){i[d+ -24>>2]=c;Zk(c)}c=d+ -144|0;n=i[d+ -40>>2];if(n){i[d+ -36>>2]=n;Zk(n)}se(d+ -140|0);d=c;if((b|0)!=(c|0)){continue}break}c=i[r>>2];break b}xa(8944);x()}xa(8944);x()}c=b}i[a+220>>2]=b;d=(b-c|0)/144|0;h:{if(d>>>0>>0){te(r,m-d|0);break h}if(d>>>0<=m>>>0){break h}d=c+o(m,144)|0;if((d|0)!=(b|0)){while(1){c=i[b+ -12>>2];if(c){i[b+ -8>>2]=c;Zk(c)}c=i[b+ -28>>2];if(c){i[b+ -24>>2]=c;Zk(c)}c=b+ -144|0;n=i[b+ -40>>2];if(n){i[b+ -36>>2]=n;Zk(n)}se(b+ -140|0);b=c;if((c|0)!=(d|0)){continue}break}}i[a+220>>2]=d}b=0;if(!Yi(i[a+8>>2],e,f+i[a+156>>2]|0)){break a}c=i[a+156>>2];g[h|0]=1;ke(a+120|0,c+f|0,h);if((ue(a,i[i[a+4>>2]+32>>2])|0)==-1){break a}i[a+376>>2]=a;f=a+232|0;b=i[(K[i[i[a>>2]+32>>2]](a)|0)+32>>2];e=i[b>>2]+i[b+16>>2]|0;d=i[(K[i[i[a>>2]+32>>2]](a)|0)+32>>2];b=i[d+8>>2];c=i[d+16>>2];Tf(f,e,b-c|0,k[i[(K[i[i[a>>2]+32>>2]](a)|0)+32>>2]+38>>1]);i[a+372>>2]=m;c=Rf(h);b=i[a+268>>2];i[a+304>>2]=i[a+264>>2];i[a+308>>2]=b;b=i[a+260>>2];i[a+296>>2]=i[a+256>>2];i[a+300>>2]=b;d=a+248|0;b=d;e=i[b+4>>2];i[a+288>>2]=i[b>>2];i[a+292>>2]=e;m=a+240|0;b=m;e=i[b+4>>2];i[a+280>>2]=i[b>>2];i[a+284>>2]=e;b=i[a+236>>2];e=a+272|0;i[e>>2]=i[a+232>>2];i[e+4>>2]=b;i:{j:{if(Uf(e,1,h+56|0)){b=i[e+4>>2];i[f>>2]=i[e>>2];i[f+4>>2]=b;b=i[e+36>>2];i[f+32>>2]=i[e+32>>2];i[f+36>>2]=b;b=i[e+28>>2];i[f+24>>2]=i[e+24>>2];i[f+28>>2]=b;b=i[e+20>>2];i[f+16>>2]=i[e+16>>2];i[f+20>>2]=b;b=i[e+12>>2];i[f+8>>2]=i[e+8>>2];i[f+12>>2]=b;n=i[m>>2];b=i[d>>2];t=n-b|0;s=i[h+60>>2];u=i[m+4>>2];m=i[d+4>>2];d=u-(m+(n>>>0>>0)|0)|0;n=i[h+56>>2];if((s|0)==(d|0)&n>>>0<=t>>>0|s>>>0>>0){break j}}b=0;break i}m=m+s|0;n=b+n|0;if(n>>>0>>0){m=m+1|0}i[a+248>>2]=n;i[a+252>>2]=m;b=0;if(!jd(a+312|0,f)){break i}if(!ve(f)){break i}d=i[f+36>>2];i[h+32>>2]=i[f+32>>2];i[h+36>>2]=d;d=i[f+28>>2];i[h+24>>2]=i[f+24>>2];i[h+28>>2]=d;d=i[f+20>>2];i[h+16>>2]=i[f+16>>2];i[h+20>>2]=d;d=i[f+12>>2];i[h+8>>2]=i[f+8>>2];i[h+12>>2]=d;d=i[f+4>>2];i[h>>2]=i[f>>2];i[h+4>>2]=d;q=we(a,q);if((q|0)==-1){break i}d=i[i[a+4>>2]+32>>2];b=i[c+16>>2];m=b+i[c>>2]|0;c=i[c+8>>2];Tf(d,m,c-b|0,k[d+38>>1]);k:{if(i[a+220>>2]==i[a+216>>2]){break k}b=i[p>>2];if(i[b+4>>2]==i[b>>2]){break k}d=0;while(1){if(xe(a,d)){d=d+3|0;b=i[p>>2];if(d>>>0>2]-i[b>>2]>>2>>>0){continue}break k}break}b=0;break i}if(j[a+308|0]){Wf(e)}c=i[a+216>>2];if((c|0)!=i[a+220>>2]){d=0;while(1){f=o(d,144);gj((f+c|0)+4|0,i[p>>2]);b=i[r>>2];c=b+f|0;e=i[c+132>>2];m=i[c+136>>2];if((e|0)!=(m|0)){ij(c+4|0,i[e>>2]);c=e+4|0;if((m|0)!=(c|0)){while(1){ij((f+i[r>>2]|0)+4|0,i[c>>2]);c=c+4|0;if((m|0)!=(c|0)){continue}break}}b=i[r>>2]}hj((b+f|0)+4|0);d=d+1|0;c=i[a+216>>2];if(d>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}b=i[a+8>>2];ye(a+184|0,i[b+28>>2]-i[b+24>>2]>>2);d=i[a+216>>2];if((d|0)!=i[a+220>>2]){c=0;while(1){b=o(c,144)+d|0;d=i[b+60>>2]-i[b+56>>2]>>2;m=b+104|0;b=i[a+8>>2];b=i[b+28>>2]-i[b+24>>2]>>2;ye(m,(d|0)<(b|0)?b:d);c=c+1|0;d=i[a+216>>2];if(c>>>0<(i[a+220>>2]-d|0)/144>>>0){continue}break}}b=ze(a,q)}}H=h- -64|0;return b|0}function ic(a,b,c,d){var e=0,f=0,l=0,o=0,r=p(0),t=0,w=0,x=0;a:{b:{if(!d){break b}c:{switch(i[a+28>>2]+ -1|0){case 0:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=g[b|0];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=j[b|0];i[e+4>>2]=0;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=h[b>>1];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=k[b>>1];i[e+4>>2]=0;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=i[b>>2];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=i[b>>2];i[e+4>>2]=0;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}l=i[b+4>>2];e=(f<<3)+d|0;i[e>>2]=i[b>>2];i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=i[b+4>>2];l=e;w=i[b>>2];if((e|0)<0?1:(e|0)<=0?w>>>0<0:0){return}e=(f<<3)+d|0;i[e>>2]=w;i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 8:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;w=i[e+4>>2];f=0;while(1){if(w>>>0<=b>>>0){return}e=(f<<3)+d|0;o=e;r=m[b>>2];d:{if(p(q(r))=p(1)?r>p(0)?~~p(s(p(u(p(r/p(4294967296)))),p(4294967296)))>>>0:~~p(v(p(p(r-p(~~r>>>0>>>0))/p(4294967296))))>>>0:0;x=~~r>>>0;break d}l=-2147483648;x=0}i[o>>2]=x;i[e+4>>2]=l;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 9:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;w=i[e+4>>2];f=0;while(1){if(w>>>0<=b>>>0){return}e=(f<<3)+d|0;o=e;t=n[b>>3];e:{if(q(t)<0x8000000000000000){l=q(t)>=1?t>0?~~s(u(t/4294967296),4294967295)>>>0:~~v((t- +(~~t>>>0>>>0))/4294967296)>>>0:0;x=~~t>>>0;break e}l=-2147483648;x=0}i[o>>2]=x;i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 10:break c;default:break b}}e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=j[b|0];i[e+4>>2]=0;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}al((e<<3)+d|0,0,c-e<<3)}return}al((e<<3)+d|0,0,c-e<<3)}function ze(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;d=H-48|0;H=d;c=i[i[a+4>>2]+44>>2];f=i[a+8>>2];e=i[f>>2];f=i[f+4>>2];i[d+40>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;f=(f-e>>2>>>0)/3|0;h=i[c+96>>2];e=(i[c+100>>2]-h|0)/12|0;a:{if(f>>>0>e>>>0){Ce(c+96|0,f-e|0,d+32|0);break a}if(f>>>0>=e>>>0){break a}i[c+100>>2]=h+o(f,12)}b:{if(i[a+216>>2]==i[a+220>>2]){k=i[a+4>>2];c=i[k+44>>2];f=i[c+100>>2];m=i[c+96>>2];if((f|0)!=(m|0)){c=(f-m|0)/12|0;j=c>>>0>1?c:1;l=d+40|0;c=0;while(1){i[l>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;e=d;c:{d:{e:{h=o(c,3);if((h|0)==-1){f=-1;i[d+32>>2]=-1;g=0;break e}f=i[i[i[a+8>>2]>>2]+(h<<2)>>2];i[d+32>>2]=f;g=h+1|0;if((g|0)!=-1){break e}i[d+36>>2]=-1;h=0;break d}i[d+36>>2]=i[i[i[a+8>>2]>>2]+(g<<2)>>2];h=h+2|0;g=-1;if((h|0)==-1){break c}}g=i[i[i[a+8>>2]>>2]+(h<<2)>>2]}i[e+40>>2]=g;e=m+o(c,12)|0;i[e>>2]=f;i[e+4>>2]=i[d+36>>2];i[e+8>>2]=i[d+40>>2];c=c+1|0;if((j|0)!=(c|0)){continue}break}}i[i[k+4>>2]+80>>2]=b;c=1;break b}i[d+40>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;h=i[a+8>>2];b=i[h>>2];c=i[h+4>>2];i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;f:{g:{h:{i:{j:{k:{l:{b=c-b|0;if(b){c=b>>2;if(c>>>0>=1073741824){break l}b=ok(b);i[d+16>>2]=b;c=c<<2;f=c+b|0;i[d+24>>2]=f;al(b,0,c);i[d+20>>2]=f}if((i[h+28>>2]-i[h+24>>2]|0)<1){break g}while(1){f=i[i[h+24>>2]+(m<<2)>>2];m:{if((f|0)==-1){break m}n:{if(i[i[a+120>>2]+(m>>>3&536870908)>>2]>>>(m&31)&1){break n}b=i[a+220>>2];k=i[a+216>>2];if((b|0)==(k|0)){break n}n=(b-k|0)/144|0;j=((f>>>0)%3|0?-1:2)+f|0;g=0;while(1){p=f<<2;l=k+o(g,144)|0;b=i[p+i[i[l+68>>2]>>2]>>2];o:{if(!(i[i[l+16>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1)){break o}b=f;c=-1;p:{if((j|0)==-1){break p}e=i[i[h+12>>2]+(j<<2)>>2];c=-1;if((e|0)==-1){break p}c=e+ -1|0;if((e>>>0)%3|0){break p}c=e+2|0}if((b|0)==(c|0)){break o}l=i[l+32>>2];p=i[l+p>>2];while(1){b=0;if((c|0)==-1){break f}if((p|0)!=i[l+(c<<2)>>2]){f=c;break n}e=f;c=((c>>>0)%3|0?-1:2)+c|0;b=-1;q:{if((c|0)==-1){break q}c=i[i[h+12>>2]+(c<<2)>>2];b=-1;if((c|0)==-1){break q}b=c+ -1|0;if((c>>>0)%3|0){break q}b=c+2|0}c=b;if((e|0)!=(c|0)){continue}break}}g=g+1|0;if(g>>>0>>0){continue}break}}b=i[d+36>>2];c=i[d+32>>2];g=b-c|0;k=g>>2;i[i[d+16>>2]+(f<<2)>>2]=k;j=i[d+40>>2];r:{if(j>>>0>b>>>0){i[b>>2]=f;i[d+36>>2]=b+4;break r}e=k+1|0;if(e>>>0>=1073741824){break k}j=j-c|0;l=j>>1;e=j>>2>>>0<536870911?l>>>0>>0?e:l:1073741823;b=0;s:{if(!e){break s}if(e>>>0>=1073741824){break j}b=ok(e<<2)}k=b+(k<<2)|0;i[k>>2]=f;e=b+(e<<2)|0;k=k+4|0;if((g|0)>=1){$k(b,c,g)}i[d+40>>2]=e;i[d+36>>2]=k;i[d+32>>2]=b;if(!c){break r}Zk(c);h=i[a+8>>2]}if((f|0)==-1){break m}b=((f>>>0)%3|0?-1:2)+f|0;if((b|0)==-1){break m}b=i[i[h+12>>2]+(b<<2)>>2];if((b|0)==-1){break m}c=b+((b>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}e=f;if((c|0)==(f|0)){break m}while(1){b=c;t:{u:{c=i[a+220>>2];g=i[a+216>>2];if((c|0)==(g|0)){break u}k=(c-g|0)/144|0;c=0;while(1){j=i[(g+o(c,144)|0)+32>>2];l=b<<2;if(i[j+l>>2]==i[j+(e<<2)>>2]){c=c+1|0;if(c>>>0>>0){continue}break u}break}c=i[d+36>>2];e=i[d+32>>2];k=c-e|0;j=k>>2;i[l+i[d+16>>2]>>2]=j;l=i[d+40>>2];if(l>>>0>c>>>0){i[c>>2]=b;i[d+36>>2]=c+4;break t}g=j+1|0;if(g>>>0>=1073741824){break i}l=l-e|0;n=l>>1;g=l>>2>>>0<536870911?n>>>0>>0?g:n:1073741823;c=0;v:{if(!g){break v}if(g>>>0>=1073741824){break h}c=ok(g<<2)}j=c+(j<<2)|0;i[j>>2]=b;g=c+(g<<2)|0;j=j+4|0;if((k|0)>=1){$k(c,e,k)}i[d+40>>2]=g;i[d+36>>2]=j;i[d+32>>2]=c;if(!e){break t}Zk(e);h=i[a+8>>2];break t}c=i[d+16>>2];i[c+(b<<2)>>2]=i[c+(e<<2)>>2]}if((b|0)==-1){break m}c=b+((b>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}c=i[i[h+12>>2]+(c<<2)>>2];if((c|0)==-1){break m}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}e=b;if((c|0)!=(f|0)){continue}break}}m=m+1|0;if((m|0)>2]-i[h+24>>2]>>2){continue}break}break g}Dk();x()}Dk();x()}xa(8944);x()}Dk();x()}xa(8944);x()}f=i[a+4>>2];a=i[f+44>>2];b=i[a+100>>2];a=i[a+96>>2];if((b|0)!=(a|0)){b=(b-a|0)/12|0;e=b>>>0>1?b:1;c=0;h=i[d+16>>2];while(1){m=d+8|0;g=o(c,12);b=g+h|0;i[m>>2]=i[b+8>>2];k=i[b+4>>2];j=i[b>>2];i[d>>2]=j;i[d+4>>2]=k;b=a+g|0;i[b>>2]=j;i[b+4>>2]=i[d+4>>2];i[b+8>>2]=i[m>>2];c=c+1|0;if((e|0)!=(c|0)){continue}break}}i[i[f+4>>2]+80>>2]=i[d+36>>2]-i[d+32>>2]>>2;b=1}c=b;a=i[d+16>>2];if(a){i[d+20>>2]=a;Zk(a)}a=i[d+32>>2];if(!a){break b}i[d+36>>2]=a;Zk(a)}H=d+48|0;return c} +function Vk(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0;p=F-16|0;F=p;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(a>>>0<=244){g=i[3157];f=a>>>0<11?16:a+11&-8;a=f>>>3|0;b=g>>>a|0;if(b&3){c=a+((b^-1)&1)|0;f=c<<3;b=i[f+12676>>2];a=b+8|0;d=i[b+8>>2];f=f+12668|0;m:{if((d|0)==(f|0)){q=12628,r=ll(c)&g,i[q>>2]=r;break m}i[d+12>>2]=f;i[f+8>>2]=d}c=c<<3;i[b+4>>2]=c|3;b=b+c|0;i[b+4>>2]=i[b+4>>2]|1;break a}k=i[3159];if(f>>>0<=k>>>0){break l}if(b){b=b<>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;c=(c|b)+(a>>>b|0)|0;d=c<<3;b=i[d+12676>>2];a=i[b+8>>2];d=d+12668|0;n:{if((a|0)==(d|0)){g=ll(c)&g;i[3157]=g;break n}i[a+12>>2]=d;i[d+8>>2]=a}a=b+8|0;i[b+4>>2]=f|3;e=b+f|0;c=c<<3;f=c-f|0;i[e+4>>2]=f|1;i[b+c>>2]=f;if(k){c=k>>>3|0;b=(c<<3)+12668|0;d=i[3162];c=1<>2]}i[b+8>>2]=d;i[c+12>>2]=d;i[d+12>>2]=b;i[d+8>>2]=c}i[3162]=e;i[3159]=f;break a}n=i[3158];if(!n){break l}a=(n&0-n)+ -1|0;b=a>>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;b=i[((c|b)+(a>>>b|0)<<2)+12932>>2];e=(i[b+4>>2]&-8)-f|0;c=b;while(1){p:{a=i[c+16>>2];if(!a){a=i[c+20>>2];if(!a){break p}}d=(i[a+4>>2]&-8)-f|0;c=d>>>0>>0;e=c?d:e;b=c?a:b;c=a;continue}break}o=b+f|0;if(o>>>0<=b>>>0){break k}m=i[b+24>>2];d=i[b+12>>2];if((d|0)!=(b|0)){a=i[b+8>>2];i[a+12>>2]=d;i[d+8>>2]=a;break b}c=b+20|0;a=i[c>>2];if(!a){a=i[b+16>>2];if(!a){break j}c=b+16|0}while(1){h=c;d=a;c=a+20|0;a=i[c>>2];if(a){continue}c=d+16|0;a=i[d+16>>2];if(a){continue}break}i[h>>2]=0;break b}f=-1;if(a>>>0>4294967231){break l}a=a+11|0;f=a&-8;k=i[3158];if(!k){break l}h=31;e=0-f|0;if(f>>>0<=16777215){b=a>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;g=c<>>16&2;a=(g<>>15|0)-(c|(a|b))|0;h=(a<<1|f>>>a+21&1)+28|0}c=i[(h<<2)+12932>>2];q:{r:{s:{if(!c){a=0;break s}a=0;b=f<<((h|0)==31?0:25-(h>>>1|0)|0);while(1){t:{g=(i[c+4>>2]&-8)-f|0;if(g>>>0>=e>>>0){break t}d=c;e=g;if(e){break t}e=0;a=c;break r}g=i[c+20>>2];c=i[((b>>>29&4)+c|0)+16>>2];a=g?(g|0)==(c|0)?a:g:a;b=b<<1;if(c){continue}break}}if(!(a|d)){a=2<>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;a=i[((c|b)+(a>>>b|0)<<2)+12932>>2]}if(!a){break q}}while(1){c=(i[a+4>>2]&-8)-f|0;b=c>>>0>>0;e=b?c:e;d=b?a:d;b=i[a+16>>2];if(b){a=b}else{a=i[a+20>>2]}if(a){continue}break}}if(!d|e>>>0>=i[3159]-f>>>0){break l}h=d+f|0;if(h>>>0<=d>>>0){break k}m=i[d+24>>2];b=i[d+12>>2];if((d|0)!=(b|0)){a=i[d+8>>2];i[a+12>>2]=b;i[b+8>>2]=a;break c}c=d+20|0;a=i[c>>2];if(!a){a=i[d+16>>2];if(!a){break i}c=d+16|0}while(1){g=c;b=a;c=a+20|0;a=i[c>>2];if(a){continue}c=b+16|0;a=i[b+16>>2];if(a){continue}break}i[g>>2]=0;break c}b=i[3159];if(b>>>0>=f>>>0){a=i[3162];c=b-f|0;u:{if(c>>>0>=16){i[3159]=c;d=a+f|0;i[3162]=d;i[d+4>>2]=c|1;i[a+b>>2]=c;i[a+4>>2]=f|3;break u}i[3162]=0;i[3159]=0;i[a+4>>2]=b|3;b=a+b|0;i[b+4>>2]=i[b+4>>2]|1}a=a+8|0;break a}d=i[3160];if(d>>>0>f>>>0){b=d-f|0;i[3160]=b;a=i[3163];c=a+f|0;i[3163]=c;i[c+4>>2]=b|1;i[a+4>>2]=f|3;a=a+8|0;break a}a=0;e=f+47|0;c=e;if(i[3275]){b=i[3277]}else{i[3278]=-1;i[3279]=-1;i[3276]=4096;i[3277]=4096;i[3275]=p+12&-16^1431655768;i[3280]=0;i[3268]=0;b=4096}g=c+b|0;h=0-b|0;c=g&h;if(c>>>0<=f>>>0){break a}b=i[3267];if(b){k=i[3265];m=k+c|0;if(m>>>0<=k>>>0|m>>>0>b>>>0){break a}}if(j[13072]&4){break f}v:{w:{b=i[3163];if(b){a=13076;while(1){k=i[a>>2];if(k+i[a+4>>2]>>>0>b>>>0?k>>>0<=b>>>0:0){break w}a=i[a+8>>2];if(a){continue}break}}b=Xk(0);if((b|0)==-1){break g}g=c;a=i[3276];d=a+ -1|0;if(d&b){g=(c-b|0)+(b+d&0-a)|0}if(g>>>0<=f>>>0|g>>>0>2147483646){break g}a=i[3267];if(a){d=i[3265];h=d+g|0;if(h>>>0<=d>>>0|h>>>0>a>>>0){break g}}a=Xk(g);if((b|0)!=(a|0)){break v}break e}g=h&g-d;if(g>>>0>2147483646){break g}b=Xk(g);if((b|0)==(i[a>>2]+i[a+4>>2]|0)){break h}a=b}if(!((a|0)==-1|f+48>>>0<=g>>>0)){b=i[3277];b=b+(e-g|0)&0-b;if(b>>>0>2147483646){b=a;break e}if((Xk(b)|0)!=-1){g=b+g|0;b=a;break e}Xk(0-g|0);break g}b=a;if((a|0)!=-1){break e}break g}x()}d=0;break b}b=0;break c}if((b|0)!=-1){break e}}i[3268]=i[3268]|4}if(c>>>0>2147483646){break d}b=Xk(c);a=Xk(0);if(b>>>0>=a>>>0|(b|0)==-1|(a|0)==-1){break d}g=a-b|0;if(g>>>0<=f+40>>>0){break d}}a=i[3265]+g|0;i[3265]=a;if(a>>>0>l[3266]){i[3266]=a}x:{y:{z:{e=i[3163];if(e){a=13076;while(1){c=i[a>>2];d=i[a+4>>2];if((c+d|0)==(b|0)){break z}a=i[a+8>>2];if(a){continue}break}break y}a=i[3161];if(!(b>>>0>=a>>>0?a:0)){i[3161]=b}a=0;i[3270]=g;i[3269]=b;i[3165]=-1;i[3166]=i[3275];i[3272]=0;while(1){c=a<<3;d=c+12668|0;i[c+12676>>2]=d;i[c+12680>>2]=d;a=a+1|0;if((a|0)!=32){continue}break}a=g+ -40|0;c=b+8&7?-8-b&7:0;d=a-c|0;i[3160]=d;c=b+c|0;i[3163]=c;i[c+4>>2]=d|1;i[(a+b|0)+4>>2]=40;i[3164]=i[3279];break x}if(j[a+12|0]&8|b>>>0<=e>>>0|c>>>0>e>>>0){break y}i[a+4>>2]=d+g;a=e+8&7?-8-e&7:0;b=a+e|0;i[3163]=b;c=i[3160]+g|0;a=c-a|0;i[3160]=a;i[b+4>>2]=a|1;i[(c+e|0)+4>>2]=40;i[3164]=i[3279];break x}d=i[3161];if(b>>>0>>0){i[3161]=b;d=0}c=b+g|0;a=13076;A:{B:{C:{D:{E:{F:{while(1){if((c|0)!=i[a>>2]){a=i[a+8>>2];if(a){continue}break F}break}if(!(j[a+12|0]&8)){break E}}a=13076;while(1){c=i[a>>2];if(c>>>0<=e>>>0){d=c+i[a+4>>2]|0;if(d>>>0>e>>>0){break D}}a=i[a+8>>2];continue}}i[a>>2]=b;i[a+4>>2]=i[a+4>>2]+g;m=(b+8&7?-8-b&7:0)+b|0;i[m+4>>2]=f|3;b=c+(c+8&7?-8-c&7:0)|0;a=(b-m|0)-f|0;h=f+m|0;if((b|0)==(e|0)){i[3163]=h;a=i[3160]+a|0;i[3160]=a;i[h+4>>2]=a|1;break B}if(i[3162]==(b|0)){i[3162]=h;a=i[3159]+a|0;i[3159]=a;i[h+4>>2]=a|1;i[a+h>>2]=a;break B}c=i[b+4>>2];if((c&3)==1){n=c&-8;G:{if(c>>>0<=255){f=c>>>3|0;c=i[b+8>>2];d=i[b+12>>2];if((d|0)==(c|0)){q=12628,r=i[3157]&ll(f),i[q>>2]=r;break G}i[c+12>>2]=d;i[d+8>>2]=c;break G}k=i[b+24>>2];g=i[b+12>>2];H:{if((g|0)!=(b|0)){c=i[b+8>>2];i[c+12>>2]=g;i[g+8>>2]=c;break H}I:{e=b+20|0;f=i[e>>2];if(f){break I}e=b+16|0;f=i[e>>2];if(f){break I}g=0;break H}while(1){c=e;g=f;e=f+20|0;f=i[e>>2];if(f){continue}e=g+16|0;f=i[g+16>>2];if(f){continue}break}i[c>>2]=0}if(!k){break G}c=i[b+28>>2];d=(c<<2)+12932|0;J:{if(i[d>>2]==(b|0)){i[d>>2]=g;if(g){break J}q=12632,r=i[3158]&ll(c),i[q>>2]=r;break G}i[k+(i[k+16>>2]==(b|0)?16:20)>>2]=g;if(!g){break G}}i[g+24>>2]=k;c=i[b+16>>2];if(c){i[g+16>>2]=c;i[c+24>>2]=g}c=i[b+20>>2];if(!c){break G}i[g+20>>2]=c;i[c+24>>2]=g}b=b+n|0;a=a+n|0}i[b+4>>2]=i[b+4>>2]&-2;i[h+4>>2]=a|1;i[a+h>>2]=a;if(a>>>0<=255){b=a>>>3|0;a=(b<<3)+12668|0;c=i[3157];b=1<>2]}i[a+8>>2]=h;i[b+12>>2]=h;i[h+12>>2]=a;i[h+8>>2]=b;break B}e=31;if(a>>>0<=16777215){c=a>>>8|0;b=c+1048320>>>16&8;d=c<>>16&4;f=d<>>16&2;b=(f<>>15|0)-(d|(b|c))|0;e=(b<<1|a>>>b+21&1)+28|0}i[h+28>>2]=e;i[h+16>>2]=0;i[h+20>>2]=0;b=(e<<2)+12932|0;c=i[3158];d=1<>2]=h;i[h+24>>2]=b;break L}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=i[b>>2];while(1){c=b;if((i[b+4>>2]&-8)==(a|0)){break C}b=e>>>29|0;e=e<<1;d=(c+(b&4)|0)+16|0;b=i[d>>2];if(b){continue}break}i[d>>2]=h;i[h+24>>2]=c}i[h+12>>2]=h;i[h+8>>2]=h;break B}a=g+ -40|0;c=b+8&7?-8-b&7:0;h=a-c|0;i[3160]=h;c=b+c|0;i[3163]=c;i[c+4>>2]=h|1;i[(a+b|0)+4>>2]=40;i[3164]=i[3279];a=(d+(d+ -39&7?39-d&7:0)|0)+ -47|0;c=a>>>0>>0?e:a;i[c+4>>2]=27;a=i[3272];i[c+16>>2]=i[3271];i[c+20>>2]=a;a=i[3270];i[c+8>>2]=i[3269];i[c+12>>2]=a;i[3271]=c+8;i[3270]=g;i[3269]=b;i[3272]=0;a=c+24|0;while(1){i[a+4>>2]=7;b=a+8|0;a=a+4|0;if(d>>>0>b>>>0){continue}break}if((c|0)==(e|0)){break x}i[c+4>>2]=i[c+4>>2]&-2;d=c-e|0;i[e+4>>2]=d|1;i[c>>2]=d;if(d>>>0<=255){b=d>>>3|0;a=(b<<3)+12668|0;c=i[3157];b=1<>2]}i[a+8>>2]=e;i[b+12>>2]=e;i[e+12>>2]=a;i[e+8>>2]=b;break x}a=31;i[e+16>>2]=0;i[e+20>>2]=0;if(d>>>0<=16777215){b=d>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;g=c<>>16&2;a=(g<>>15|0)-(c|(a|b))|0;a=(a<<1|d>>>a+21&1)+28|0}i[e+28>>2]=a;b=(a<<2)+12932|0;c=i[3158];g=1<>2]=e;i[e+24>>2]=b;break N}a=d<<((a|0)==31?0:25-(a>>>1|0)|0);b=i[b>>2];while(1){c=b;if((d|0)==(i[b+4>>2]&-8)){break A}b=a>>>29|0;a=a<<1;g=(c+(b&4)|0)+16|0;b=i[g>>2];if(b){continue}break}i[g>>2]=e;i[e+24>>2]=c}i[e+12>>2]=e;i[e+8>>2]=e;break x}a=i[c+8>>2];i[a+12>>2]=h;i[c+8>>2]=h;i[h+24>>2]=0;i[h+12>>2]=c;i[h+8>>2]=a}a=m+8|0;break a}a=i[c+8>>2];i[a+12>>2]=e;i[c+8>>2]=e;i[e+24>>2]=0;i[e+12>>2]=c;i[e+8>>2]=a}a=i[3160];if(a>>>0<=f>>>0){break d}b=a-f|0;i[3160]=b;a=i[3163];c=a+f|0;i[3163]=c;i[c+4>>2]=b|1;i[a+4>>2]=f|3;a=a+8|0;break a}i[3155]=48;a=0;break a}O:{if(!m){break O}a=i[d+28>>2];c=(a<<2)+12932|0;P:{if(i[c>>2]==(d|0)){i[c>>2]=b;if(b){break P}k=ll(a)&k;i[3158]=k;break O}i[m+(i[m+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break O}}i[b+24>>2]=m;a=i[d+16>>2];if(a){i[b+16>>2]=a;i[a+24>>2]=b}a=i[d+20>>2];if(!a){break O}i[b+20>>2]=a;i[a+24>>2]=b}Q:{if(e>>>0<=15){a=e+f|0;i[d+4>>2]=a|3;a=a+d|0;i[a+4>>2]=i[a+4>>2]|1;break Q}i[d+4>>2]=f|3;i[h+4>>2]=e|1;i[e+h>>2]=e;if(e>>>0<=255){b=e>>>3|0;a=(b<<3)+12668|0;c=i[3157];b=1<>2]}i[a+8>>2]=h;i[b+12>>2]=h;i[h+12>>2]=a;i[h+8>>2]=b;break Q}a=31;if(e>>>0<=16777215){b=e>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;f=c<>>16&2;a=(f<>>15|0)-(c|(a|b))|0;a=(a<<1|e>>>a+21&1)+28|0}i[h+28>>2]=a;i[h+16>>2]=0;i[h+20>>2]=0;b=(a<<2)+12932|0;S:{c=1<>2]=h;break T}a=e<<((a|0)==31?0:25-(a>>>1|0)|0);f=i[b>>2];while(1){b=f;if((i[b+4>>2]&-8)==(e|0)){break S}c=a>>>29|0;a=a<<1;c=(b+(c&4)|0)+16|0;f=i[c>>2];if(f){continue}break}i[c>>2]=h}i[h+24>>2]=b;i[h+12>>2]=h;i[h+8>>2]=h;break Q}a=i[b+8>>2];i[a+12>>2]=h;i[b+8>>2]=h;i[h+24>>2]=0;i[h+12>>2]=b;i[h+8>>2]=a}a=d+8|0;break a}U:{if(!m){break U}a=i[b+28>>2];c=(a<<2)+12932|0;V:{if(i[c>>2]==(b|0)){i[c>>2]=d;if(d){break V}q=12632,r=ll(a)&n,i[q>>2]=r;break U}i[(i[m+16>>2]==(b|0)?16:20)+m>>2]=d;if(!d){break U}}i[d+24>>2]=m;a=i[b+16>>2];if(a){i[d+16>>2]=a;i[a+24>>2]=d}a=i[b+20>>2];if(!a){break U}i[d+20>>2]=a;i[a+24>>2]=d}W:{if(e>>>0<=15){a=e+f|0;i[b+4>>2]=a|3;a=a+b|0;i[a+4>>2]=i[a+4>>2]|1;break W}i[b+4>>2]=f|3;i[o+4>>2]=e|1;i[e+o>>2]=e;if(k){c=k>>>3|0;a=(c<<3)+12668|0;d=i[3162];c=1<>2]}i[a+8>>2]=d;i[c+12>>2]=d;i[d+12>>2]=a;i[d+8>>2]=c}i[3162]=o;i[3159]=e}a=b+8|0}F=p+16|0;return a|0}function ue(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0;k=F-96|0;F=k;i[k+72>>2]=0;i[k+64>>2]=0;i[k+68>>2]=0;i[k+48>>2]=0;i[k+52>>2]=0;i[k+40>>2]=0;i[k+44>>2]=0;i[k+56>>2]=1065353216;i[k+32>>2]=0;i[k+24>>2]=0;i[k+28>>2]=0;y=i[a+124>>2];a:{b:{c:{d:{e:{if((b|0)<1){break e}A=i[a+216>>2]!=i[a+220>>2];n=1;while(1){f=u;u=f+1|0;f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if(!j[a+308|0]){break q}r:{s:{l=i[a+296>>2];r=i[a+304>>2];c=l+(r>>>3|0)|0;h=i[a+300>>2];if(c>>>0>=h>>>0){break s}d=j[c|0];c=r+1|0;i[a+304>>2]=c;if(!(d>>>(r&7)&1)){break s}m=c>>>3|0;d=l+m|0;t:{if(d>>>0>=h>>>0){d=c;c=0;break t}e=j[d|0];d=r+2|0;i[a+304>>2]=d;m=d>>>3|0;c=e>>>(c&7)&1}e=l+m|0;if(e>>>0>>0){e=j[e|0];i[a+304>>2]=d+1;d=e>>>(d&7)<<1&2}else{d=0}c=(c|d)<<1;switch(c-1|0){case 0:case 2:case 4:break n;case 5:break p;case 1:case 3:break r;default:break q}}d=i[k+68>>2];if((d|0)==i[k+64>>2]){break d}v=-1;s=i[a+8>>2];r=i[s+24>>2];c=r;m=d+ -4|0;n=i[m>>2];e=-1;u:{if((n|0)==-1){break u}d=n+1|0;d=(d>>>0)%3|0?d:n+ -2|0;e=-1;if((d|0)==-1){break u}e=i[i[s>>2]+(d<<2)>>2]}d=i[c+(e<<2)>>2];if((d|0)!=-1){c=d+1|0;v=(c>>>0)%3|0?c:d+ -2|0}d=i[s+12>>2];p=o(f,3);c=p+1|0;i[d+(n<<2)>>2]=c;l=c<<2;i[l+d>>2]=n;q=p+2|0;i[d+(v<<2)>>2]=q;f=q<<2;i[f+d>>2]=v;h=-1;c=-1;v:{if((n|0)==-1){break v}d=n+((n>>>0)%3|0?-1:2)|0;c=-1;if((d|0)==-1){break v}c=i[i[s>>2]+(d<<2)>>2]}w:{if((v|0)==-1){break w}d=v+1|0;d=(d>>>0)%3|0?d:v+ -2|0;if((d|0)==-1){break w}h=i[i[s>>2]+(d<<2)>>2]}d=-1;if((c|0)==(e|0)|(e|0)==(h|0)){break c}d=i[s>>2];i[d+(p<<2)>>2]=e;i[d+l>>2]=h;i[d+f>>2]=c;if((c|0)!=-1){i[r+(c<<2)>>2]=q}d=i[a+120>>2]+(e>>>3&536870908)|0;c=i[d>>2];B=d,C=ll(e)&c,i[B>>2]=C;i[m>>2]=p;break f}e=i[k+68>>2];if((e|0)==i[k+64>>2]){break d}q=i[a+8>>2];d=i[q+12>>2];p=o(f,3);m=(c|1)==5;l=p+(m?2:1)|0;c=l<<2;s=i[e+ -4>>2];i[d+c>>2]=s;i[d+(s<<2)>>2]=l;ye(q+24|0,8380);d=-1;h=i[a+8>>2];r=i[h+24>>2];if(i[h+28>>2]-r>>2>(y|0)){break c}e=p+2|0;h=i[h>>2];t=h+c|0;d=i[q+28>>2]-i[q+24>>2]|0;c=(d>>2)+ -1|0;i[t>>2]=c;if(d){i[r+(c<<2)>>2]=l}e=m?p:e;l=h+(m+p<<2)|0;x:{y:{z:{if((s|0)!=-1){c=s+((s>>>0)%3|0?-1:2)|0;if((c|0)==-1){break z}c=i[h+(c<<2)>>2];i[h+(e<<2)>>2]=c;if((c|0)==-1){break y}i[r+(c<<2)>>2]=e;break y}i[h+(e<<2)>>2]=-1;d=-1;break x}i[h+(e<<2)>>2]=-1}c=s+1|0;c=(c>>>0)%3|0?c:s+ -2|0;d=-1;if((c|0)==-1){break x}d=i[h+(c<<2)>>2]}i[l>>2]=d;i[i[k+68>>2]+ -4>>2]=p;break o}m=i[k+68>>2];e=i[k+64>>2];if((m|0)==(e|0)){break d}l=m+ -4|0;w=i[l>>2];i[k+68>>2]=l;p=i[k+44>>2];if(!p){break k}d=i[k+40>>2];q=kl(p)>>>0>1;h=f&p+2147483647;A:{if(!q){break A}c=f;h=c;if(c>>>0

>>0){break A}h=(f>>>0)%(p>>>0)|0}c=i[d+(h<<2)>>2];if(!c){break k}d=i[c>>2];if(!d){break k}r=p+ -1|0;while(1){B:{c=i[d+4>>2];C:{if((f|0)!=(c|0)){D:{if(!q){c=c&r;break D}if(c>>>0

>>0){break D}c=(c>>>0)%(p>>>0)|0}if((c|0)!=(h|0)){break k}break C}if((f|0)==i[d+8>>2]){break B}}d=i[d>>2];if(d){continue}break k}break}if((l|0)!=i[k+72>>2]){i[l>>2]=i[d+12>>2];i[k+68>>2]=m;c=e;break j}r=l-e|0;m=r>>2;l=m+1|0;if(l>>>0>=1073741824){break m}h=r>>1;l=m>>>0<536870911?h>>>0>>0?l:h:1073741823;c=0;E:{if(!l){break E}if(l>>>0>=1073741824){break a}c=lk(l<<2)}h=c+(m<<2)|0;i[h>>2]=i[d+12>>2];d=(l<<2)+c|0;m=h+4|0;if((r|0)>=1){Yk(c,e,r)}i[k+72>>2]=d;i[k+68>>2]=m;i[k+64>>2]=c;if(!e){break j}Wk(e);m=i[k+68>>2];c=i[k+64>>2];break j}c=i[a+8>>2];ye(c+24|0,8380);d=-1;e=i[a+8>>2];p=o(f,3);m=i[c+28>>2]-i[c+24>>2]|0;r=m>>2;h=r+ -1|0;i[i[e>>2]+(p<<2)>>2]=h;ye(e+24|0,8380);l=p+1|0;i[i[e>>2]+(l<<2)>>2]=(i[e+28>>2]-i[e+24>>2]>>2)+ -1;c=i[a+8>>2];ye(c+24|0,8380);e=p+2|0;i[i[c>>2]+(e<<2)>>2]=(i[c+28>>2]-i[c+24>>2]>>2)+ -1;c=i[a+8>>2];q=i[c+24>>2];if(i[c+28>>2]-q>>2>(y|0)){break c}F:{G:{if(!m){i[q+(r<<2)>>2]=l;d=1;break G}i[q+(h<<2)>>2]=p;d=0;if((m|0)==-4){break G}i[q+(r<<2)>>2]=l;d=r+1|0;if((d|0)==-1){break F}}i[q+(d<<2)>>2]=e}c=i[k+68>>2];if((c|0)!=i[k+72>>2]){i[c>>2]=p;i[k+68>>2]=c+4;break o}m=i[k+64>>2];l=c-m|0;h=l>>2;e=h+1|0;if(e>>>0>=1073741824){break l}d=l>>1;e=h>>>0<536870911?d>>>0>>0?e:d:1073741823;c=0;H:{if(!e){break H}if(e>>>0>=1073741824){break a}c=lk(e<<2)}d=c+(h<<2)|0;i[d>>2]=p;e=c+(e<<2)|0;d=d+4|0;if((l|0)>=1){Yk(c,m,l)}i[k+72>>2]=e;i[k+68>>2]=d;i[k+64>>2]=c;if(!m){break o}Wk(m)}d=i[a+40>>2];if((d|0)==i[a+36>>2]){break f}f=(f^-1)+b|0;while(1){c=i[d+ -8>>2];if(c>>>0>f>>>0){break i}if((c|0)!=(f|0)){break f}e=j[d+ -4|0];c=d+ -12|0;d=i[c>>2];i[a+40>>2]=c;if((d|0)<0){break i}h=i[i[k+68>>2]+ -4>>2];i[k+20>>2]=(d^-1)+b;i[k+88>>2]=k+20;ze(k,k+40|0,k+20|0,k+88|0);d=i[k>>2];I:{if(e&1){c=-1;if((h|0)==-1){break I}c=h+1|0;c=(c>>>0)%3|0?c:h+ -2|0;break I}c=-1;if((h|0)==-1){break I}c=h+ -1|0;if((h>>>0)%3|0){break I}c=h+2|0}i[d+12>>2]=c;d=i[a+40>>2];if((d|0)!=i[a+36>>2]){continue}break}break f}x()}Ak();x()}Ak();x()}m=l;c=e}if((c|0)==(m|0)){break i}s=i[m+ -4>>2];d=(s|0)==-1;p=i[a+8>>2];if(i[i[p+12>>2]+(s<<2)>>2]!=-1?!d:0){break i}h=(w|0)==-1;q=i[p+12>>2];if(i[q+(w<<2)>>2]!=-1?!h:0){break i}r=o(f,3);f=r+2|0;i[q+(s<<2)>>2]=f;l=f<<2;i[l+q>>2]=s;c=r+1|0;i[q+(w<<2)>>2]=c;e=c<<2;i[e+q>>2]=w;if(d){break h}n=-1;t=-1;v=i[p>>2];d=v+(r<<2)|0;c=s+((s>>>0)%3|0?-1:2)|0;if((c|0)!=-1){t=i[(c<<2)+v>>2]}i[d>>2]=t;c=s+1|0;c=(c>>>0)%3|0?c:s+ -2|0;if((c|0)==-1){break g}n=i[(c<<2)+v>>2];break g}d=-1;if(n&1){break c}break e}t=-1;v=i[p>>2];i[v+(r<<2)>>2]=-1;n=-1}i[e+v>>2]=n;J:{K:{L:{if(!h){c=w+((w>>>0)%3|0?-1:2)|0;if((c|0)==-1){break L}c=i[(c<<2)+v>>2];i[l+v>>2]=c;if((c|0)==-1){break K}i[i[p+24>>2]+(c<<2)>>2]=f;break K}i[l+v>>2]=-1;z=-1;d=-1;break J}i[l+v>>2]=-1}z=-1;c=w+1|0;c=(c>>>0)%3|0?c:w+ -2|0;d=-1;if((c|0)==-1){break J}z=i[(c<<2)+v>>2];d=c}c=i[p+24>>2];e=c+(z<<2)|0;if((t|0)!=-1){i[c+(t<<2)>>2]=i[e>>2]}M:{if((d|0)==-1){break M}while(1){i[(d<<2)+v>>2]=t;c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1){break M}d=i[q+(c<<2)>>2];if((d|0)==-1){break M}c=d+1|0;d=(c>>>0)%3|0?c:d+ -2|0;if((d|0)!=-1){continue}break}}i[e>>2]=-1;N:{if(A){break N}c=i[k+28>>2];if((c|0)!=i[k+32>>2]){i[c>>2]=z;i[k+28>>2]=c+4;break N}O:{l=i[k+24>>2];h=c-l|0;f=h>>2;e=f+1|0;if(e>>>0<1073741824){d=h>>1;e=f>>>0<536870911?d>>>0>>0?e:d:1073741823;c=0;P:{if(!e){break P}if(e>>>0>=1073741824){break O}c=lk(e<<2)}d=c+(f<<2)|0;i[d>>2]=z;e=c+(e<<2)|0;d=d+4|0;if((h|0)>=1){Yk(c,l,h)}i[k+32>>2]=e;i[k+28>>2]=d;i[k+24>>2]=c;if(!l){break N}Wk(l);m=i[k+68>>2];break N}Ak();x()}break a}i[m+ -4>>2]=r}n=(u|0)<(b|0);if((b|0)!=(u|0)){continue}break}u=b}d=-1;b=i[a+8>>2];if(i[b+28>>2]-i[b+24>>2]>>2>(y|0)){break c}Q:{R:{S:{n=i[k+68>>2];if((n|0)!=i[k+64>>2]){A=a+72|0;b=a+60|0;r=a+312|0;while(1){c=n+ -4|0;q=i[c>>2];i[k+68>>2]=c;T:{if(jd(r)){m=i[a+8>>2];w=i[m>>2];if((u|0)>=((i[m+4>>2]-w>>2>>>0)/3|0)){break d}h=-1;t=-1;l=i[m+24>>2];f=l;c=-1;U:{if((q|0)==-1){break U}e=q+1|0;e=(e>>>0)%3|0?e:q+ -2|0;c=-1;if((e|0)==-1){break U}c=i[w+(e<<2)>>2]}f=i[f+(c<<2)>>2];V:{if((f|0)==-1){break V}e=f+1|0;e=(e>>>0)%3|0?e:f+ -2|0;if((e|0)==-1){break V}f=e+1|0;f=(f>>>0)%3|0?f:e+ -2|0;if((f|0)!=-1){t=i[w+(f<<2)>>2]}h=e}n=-1;z=-1;l=i[l+(t<<2)>>2];f=-1;W:{if((l|0)==-1){break W}e=l+1|0;e=(e>>>0)%3|0?e:l+ -2|0;f=-1;if((e|0)==-1){break W}f=e+1|0;f=(f>>>0)%3|0?f:e+ -2|0;if((f|0)!=-1){z=i[w+(f<<2)>>2]}f=e}y=i[m+12>>2];s=o(u,3);m=s<<2;i[y+m>>2]=q;i[y+(q<<2)>>2]=s;p=s+1|0;l=p<<2;i[l+y>>2]=h;i[y+(h<<2)>>2]=p;q=s+2|0;e=q<<2;i[e+y>>2]=f;i[y+(f<<2)>>2]=q;i[m+w>>2]=t;l=l+w|0;i[l>>2]=z;h=e+w|0;i[h>>2]=c;m=i[a+120>>2];f=p>>>0>>0?-1:t;e=m+(f>>>3&536870908)|0;c=i[e>>2];B=e,C=ll(f)&c,i[B>>2]=C;n=(p|0)!=-1?i[l>>2]:n;e=m+(n>>>3&536870908)|0;c=i[e>>2];B=e,C=ll(n)&c,i[B>>2]=C;n=-1;n=(q|0)!=-1?i[h>>2]:n;e=m+(n>>>3&536870908)|0;c=i[e>>2];B=e,C=ll(n)&c,i[B>>2]=C;n=i[a+64>>2];e=i[a+68>>2];if((n|0)==e<<5){if((n+1|0)<=-1){break S}c=b;if(n>>>0<=1073741822){f=n+32&-32;e=e<<6;e=e>>>0>>0?f:e}else{e=2147483647}Xb(c,e);n=i[a+64>>2]}u=u+1|0;i[a+64>>2]=n+1;c=i[a+60>>2]+(n>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>2];if((c|0)!=i[a+80>>2]){i[c>>2]=s;i[a+76>>2]=c+4;break T}m=i[A>>2];l=c-m|0;h=l>>2;f=h+1|0;if(f>>>0>=1073741824){break R}e=l>>1;f=h>>>0<536870911?e>>>0>>0?f:e:1073741823;c=0;X:{if(!f){break X}if(f>>>0>=1073741824){break a}c=lk(f<<2)}e=c+(h<<2)|0;i[e>>2]=s;f=c+(f<<2)|0;e=e+4|0;if((l|0)>=1){Yk(c,m,l)}i[a+80>>2]=f;i[a+76>>2]=e;i[a+72>>2]=c;if(!m){break T}Wk(m);break T}c=i[a+64>>2];h=i[a+68>>2];if((c|0)==h<<5){if((c+1|0)<=-1){break S}e=b;if(c>>>0<=1073741822){f=c+32&-32;c=h<<6;c=c>>>0>>0?f:c}else{c=2147483647}Xb(e,c);c=i[a+64>>2]}i[a+64>>2]=c+1;f=i[a+60>>2]+(c>>>3&536870908)|0;e=i[f>>2];B=f,C=ll(c)&e,i[B>>2]=C;c=i[a+76>>2];if((c|0)!=i[a+80>>2]){i[c>>2]=q;i[a+76>>2]=c+4;break T}m=i[A>>2];l=c-m|0;h=l>>2;f=h+1|0;if(f>>>0>=1073741824){break R}e=l>>1;f=h>>>0<536870911?e>>>0>>0?f:e:1073741823;c=0;Y:{if(!f){break Y}if(f>>>0>=1073741824){break Q}c=lk(f<<2)}e=c+(h<<2)|0;i[e>>2]=q;f=c+(f<<2)|0;e=e+4|0;if((l|0)>=1){Yk(c,m,l)}i[a+80>>2]=f;i[a+76>>2]=e;i[a+72>>2]=c;if(!m){break T}Wk(m)}n=i[k+68>>2];if((n|0)!=i[k+64>>2]){continue}break}b=i[a+8>>2]}if(((i[b+4>>2]-i[b>>2]>>2>>>0)/3|0)!=(u|0)){break c}n=i[b+24>>2];d=i[b+28>>2]-n>>2;t=i[k+24>>2];f=i[k+28>>2];if((t|0)==(f|0)){break b}while(1){h=i[t>>2];u=d+ -1|0;Z:{if(i[(u<<2)+n>>2]!=-1){c=d;break Z}n=i[b+24>>2];while(1){u=d+ -2|0;c=d+ -1|0;d=c;if(i[(u<<2)+n>>2]==-1){continue}break}}if(u>>>0>=h>>>0){i[k>>2]=b;e=u<<2;d=i[e+n>>2];g[k+12|0]=1;i[k+8>>2]=d;i[k+4>>2]=d;if((d|0)!=-1){i[i[b>>2]+(d<<2)>>2]=h;Ec(k);d=i[k+8>>2];if((d|0)!=-1){while(1){i[i[i[a+8>>2]>>2]+(d<<2)>>2]=h;Ec(k);d=i[k+8>>2];if((d|0)!=-1){continue}break}}b=i[a+8>>2]}d=i[b+24>>2];e=d+e|0;if((h|0)!=-1){i[d+(h<<2)>>2]=i[e>>2]}i[e>>2]=-1;m=1<>2];l=d+(h>>>3&536870908)|0;e=l;h=d+(u>>>3&536870908)|0;d=1<>2];_:{if(i[h>>2]&d){break _}u=i[l>>2]&(m^-1)}i[e>>2]=u;i[h>>2]=i[h>>2]&(d^-1);c=c+ -1|0}d=c;t=t+4|0;if((f|0)==(t|0)){break c}n=i[b+24>>2];continue}}Ak();x()}Ak();x()}break a}d=-1}t=i[k+24>>2]}if(t){i[k+28>>2]=t;Wk(t)}a=i[k+48>>2];if(a){while(1){b=i[a>>2];Wk(a);a=b;if(a){continue}break}}a=i[k+40>>2];i[k+40>>2]=0;if(a){Wk(a)}a=i[k+64>>2];if(a){i[k+68>>2]=a;Wk(a)}F=k+96|0;return d}va(8944);x()}function Fe(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0;l=F-96|0;F=l;i[l+72>>2]=0;i[l+64>>2]=0;i[l+68>>2]=0;i[l+48>>2]=0;i[l+52>>2]=0;i[l+40>>2]=0;i[l+44>>2]=0;i[l+56>>2]=1065353216;i[l+32>>2]=0;i[l+24>>2]=0;i[l+28>>2]=0;u=i[a+124>>2];a:{b:{c:{d:{if((b|0)<1){break d}v=a+232|0;z=i[a+216>>2]!=i[a+220>>2];r=1;while(1){m=q;q=m+1|0;e:{f:{g:{h:{i:{j:{k:{l:{c=i[a+404>>2];m:{n:{if((c|0)!=-1){d=-1;e=i[a+428>>2]+(c<<2)|0;f=i[e>>2];c=f+ -1|0;i[e>>2]=c;if((f|0)<1){break c}c=i[i[i[a+416>>2]+o(i[a+404>>2],12)>>2]+(c<<2)>>2];e=i[(c<<2)+9024>>2];i[a+400>>2]=e;if(!c){f=i[l+68>>2];if((f|0)==i[l+64>>2]){break c}h=-1;e=i[a+8>>2];r=i[e+24>>2];k=r;s=f+ -4|0;d=i[s>>2];c=-1;o:{if((d|0)==-1){break o}f=d+1|0;f=(f>>>0)%3|0?f:d+ -2|0;c=-1;if((f|0)==-1){break o}c=i[i[e>>2]+(f<<2)>>2]}f=i[k+(c<<2)>>2];if((f|0)!=-1){h=f+1|0;h=(h>>>0)%3|0?h:f+ -2|0}k=i[e+12>>2];f=o(m,3);m=f+1|0;i[k+(d<<2)>>2]=m;t=m<<2;i[t+k>>2]=d;n=f+2|0;i[k+(h<<2)>>2]=n;m=k;k=n<<2;i[m+k>>2]=h;p=-1;m=-1;p:{if((d|0)==-1){break p}d=d+((d>>>0)%3|0?-1:2)|0;m=-1;if((d|0)==-1){break p}m=i[i[e>>2]+(d<<2)>>2]}q:{if((h|0)==-1){break q}d=h+1|0;d=(d>>>0)%3|0?d:h+ -2|0;if((d|0)==-1){break q}p=i[i[e>>2]+(d<<2)>>2]}d=-1;if((c|0)==(m|0)|(c|0)==(p|0)){break c}d=i[e>>2];i[d+(f<<2)>>2]=c;i[d+t>>2]=p;i[d+k>>2]=m;if((m|0)!=-1){i[r+(m<<2)>>2]=n}d=i[a+120>>2]+(c>>>3&536870908)|0;m=i[d>>2];B=d,C=ll(c)&m,i[B>>2]=C;i[s>>2]=f;He(v,f);break e}r:{switch(e+ -1|0){case 2:case 4:h=i[l+68>>2];if((h|0)==i[l+64>>2]){break c}f=i[a+8>>2];d=i[f+12>>2];e=o(m,3);k=(c|0)==3;p=e+(k?2:1)|0;s=p<<2;c=i[h+ -4>>2];i[d+s>>2]=c;i[d+(c<<2)>>2]=p;ye(f+24|0,8380);d=-1;n=i[a+8>>2];h=i[n+24>>2];if(i[n+28>>2]-h>>2>(u|0)){break c}t=e+2|0;d=i[n>>2];f=i[f+28>>2]-i[f+24>>2]|0;n=(f>>2)+ -1|0;i[d+s>>2]=n;if(f){i[h+(n<<2)>>2]=p}f=k?e:t;t=d+(e+k<<2)|0;s:{t:{u:{if((c|0)!=-1){k=c+((c>>>0)%3|0?-1:2)|0;if((k|0)==-1){break u}k=i[d+(k<<2)>>2];i[d+(f<<2)>>2]=k;if((k|0)==-1){break t}i[h+(k<<2)>>2]=f;break t}i[d+(f<<2)>>2]=-1;h=-1;break s}i[d+(f<<2)>>2]=-1}h=c+1|0;c=(h>>>0)%3|0?h:c+ -2|0;h=-1;if((c|0)==-1){break s}h=i[d+(c<<2)>>2]}i[t>>2]=h;d=i[l+68>>2];i[d+ -4>>2]=e;break m;case 6:break n;case 0:break r;default:break c}}f=i[l+68>>2];e=i[l+64>>2];if((f|0)==(e|0)){break c}h=f+ -4|0;p=i[h>>2];i[l+68>>2]=h;n=i[l+44>>2];if(!n){break j}d=i[l+40>>2];s=kl(n)>>>0>1;k=m&n+2147483647;v:{if(!s){break v}c=m;k=c;if(c>>>0>>0){break v}k=(m>>>0)%(n>>>0)|0}c=i[d+(k<<2)>>2];if(!c){break j}d=i[c>>2];if(!d){break j}t=n+ -1|0;while(1){w:{c=i[d+4>>2];x:{if((m|0)!=(c|0)){y:{if(!s){c=c&t;break y}if(c>>>0>>0){break y}c=(c>>>0)%(n>>>0)|0}if((c|0)!=(k|0)){break j}break x}if((m|0)==i[d+8>>2]){break w}}d=i[d>>2];if(d){continue}break j}break}if((h|0)!=i[l+72>>2]){i[h>>2]=i[d+12>>2];i[l+68>>2]=f;c=e;break i}h=h-e|0;k=h>>2;f=k+1|0;if(f>>>0>=1073741824){break l}n=h>>1;f=k>>>0<536870911?n>>>0>>0?f:n:1073741823;c=0;z:{if(!f){break z}if(f>>>0>=1073741824){break a}c=lk(f<<2)}k=c+(k<<2)|0;i[k>>2]=i[d+12>>2];d=(f<<2)+c|0;f=k+4|0;if((h|0)>=1){Yk(c,e,h)}i[l+72>>2]=d;i[l+68>>2]=f;i[l+64>>2]=c;if(!e){break i}Wk(e);f=i[l+68>>2];c=i[l+64>>2];break i}i[a+400>>2]=7}f=i[a+8>>2];ye(f+24|0,8380);d=-1;c=i[a+8>>2];e=o(m,3);h=i[f+28>>2]-i[f+24>>2]|0;f=h>>2;p=f+ -1|0;i[i[c>>2]+(e<<2)>>2]=p;ye(c+24|0,8380);k=e+1|0;i[i[c>>2]+(k<<2)>>2]=(i[c+28>>2]-i[c+24>>2]>>2)+ -1;c=i[a+8>>2];ye(c+24|0,8380);n=e+2|0;i[i[c>>2]+(n<<2)>>2]=(i[c+28>>2]-i[c+24>>2]>>2)+ -1;s=i[a+8>>2];c=i[s+24>>2];if(i[s+28>>2]-c>>2>(u|0)){break c}A:{B:{if(!h){i[c+(f<<2)>>2]=k;d=1;break B}i[c+(p<<2)>>2]=e;d=0;if((h|0)==-4){break B}i[c+(f<<2)>>2]=k;d=f+1|0;if((d|0)==-1){break A}}i[c+(d<<2)>>2]=n}c=i[l+68>>2];if((c|0)!=i[l+72>>2]){i[c>>2]=e;d=c+4|0;i[l+68>>2]=d;break m}f=i[l+64>>2];h=c-f|0;k=h>>2;d=k+1|0;if(d>>>0>=1073741824){break k}p=h>>1;d=k>>>0<536870911?p>>>0>>0?d:p:1073741823;c=0;C:{if(!d){break C}if(d>>>0>=1073741824){break a}c=lk(d<<2)}k=c+(k<<2)|0;i[k>>2]=e;e=c+(d<<2)|0;d=k+4|0;if((h|0)>=1){Yk(c,f,h)}i[l+72>>2]=e;i[l+68>>2]=d;i[l+64>>2]=c;if(!f){break m}Wk(f);d=i[l+68>>2]}He(v,i[d+ -4>>2]);d=i[a+40>>2];if((d|0)==i[a+36>>2]){break e}m=(m^-1)+b|0;while(1){c=i[d+ -8>>2];if(c>>>0>m>>>0){break h}if((c|0)!=(m|0)){break e}f=j[d+ -4|0];c=d+ -12|0;e=i[c>>2];i[a+40>>2]=c;if((e|0)<0){break h}c=i[i[l+68>>2]+ -4>>2];i[l+20>>2]=(e^-1)+b;i[l+88>>2]=l+20;ze(l,l+40|0,l+20|0,l+88|0);e=i[l>>2];D:{if(f&1){d=-1;if((c|0)==-1){break D}d=c+1|0;d=(d>>>0)%3|0?d:c+ -2|0;break D}d=-1;if((c|0)==-1){break D}d=c+ -1|0;if((c>>>0)%3|0){break D}d=c+2|0}i[e+12>>2]=d;d=i[a+40>>2];if((d|0)!=i[a+36>>2]){continue}break}break e}Ak();x()}Ak();x()}f=h;c=e}if((c|0)==(f|0)){break h}c=i[f+ -4>>2];e=(c|0)==-1;k=i[a+8>>2];if(i[i[k+12>>2]+(c<<2)>>2]!=-1?!e:0){break h}t=(p|0)==-1;n=i[k+12>>2];if(i[n+(p<<2)>>2]!=-1?!t:0){break h}r=o(m,3);s=r+2|0;i[n+(c<<2)>>2]=s;d=s<<2;i[d+n>>2]=c;m=r+1|0;i[n+(p<<2)>>2]=m;w=m<<2;i[w+n>>2]=p;if(e){break g}e=-1;m=-1;h=i[k>>2];A=h+(r<<2)|0;y=c+((c>>>0)%3|0?-1:2)|0;if((y|0)!=-1){m=i[(y<<2)+h>>2]}i[A>>2]=m;y=c+1|0;c=(y>>>0)%3|0?y:c+ -2|0;if((c|0)==-1){break f}e=i[(c<<2)+h>>2];break f}d=-1;if(r){break c}break d}m=-1;h=i[k>>2];i[h+(r<<2)>>2]=-1;e=-1}i[h+w>>2]=e;E:{F:{G:{if(!t){c=p+((p>>>0)%3|0?-1:2)|0;if((c|0)==-1){break G}c=i[(c<<2)+h>>2];i[d+h>>2]=c;if((c|0)==-1){break F}i[i[k+24>>2]+(c<<2)>>2]=s;break F}i[d+h>>2]=-1;e=-1;d=-1;break E}i[d+h>>2]=-1}e=-1;c=p+1|0;c=(c>>>0)%3|0?c:p+ -2|0;d=-1;if((c|0)==-1){break E}e=i[(c<<2)+h>>2];d=c}c=i[a+388>>2];p=m<<2;s=c+p|0;t=c;c=e<<2;i[s>>2]=i[s>>2]+i[t+c>>2];k=i[k+24>>2];c=k+c|0;if((m|0)!=-1){i[k+p>>2]=i[c>>2]}H:{if((d|0)==-1){break H}while(1){i[(d<<2)+h>>2]=m;k=d+1|0;d=(k>>>0)%3|0?k:d+ -2|0;if((d|0)==-1){break H}d=i[n+(d<<2)>>2];if((d|0)==-1){break H}k=d+1|0;d=(k>>>0)%3|0?k:d+ -2|0;if((d|0)!=-1){continue}break}}i[c>>2]=-1;I:{if(z){break I}c=i[l+28>>2];if((c|0)!=i[l+32>>2]){i[c>>2]=e;i[l+28>>2]=c+4;break I}J:{d=i[l+24>>2];m=c-d|0;k=m>>2;h=k+1|0;if(h>>>0<1073741824){p=m>>1;h=k>>>0<536870911?p>>>0>>0?h:p:1073741823;c=0;K:{if(!h){break K}if(h>>>0>=1073741824){break J}c=lk(h<<2)}k=c+(k<<2)|0;i[k>>2]=e;e=c+(h<<2)|0;h=k+4|0;if((m|0)>=1){Yk(c,d,m)}i[l+32>>2]=e;i[l+28>>2]=h;i[l+24>>2]=c;if(!d){break I}Wk(d);f=i[l+68>>2];break I}Ak();x()}break a}i[f+ -4>>2]=r;He(v,r)}r=(q|0)<(b|0);if((b|0)!=(q|0)){continue}break}q=b}d=-1;m=i[a+8>>2];if(i[m+28>>2]-i[m+24>>2]>>2>(u|0)){break c}L:{M:{N:{e=i[l+68>>2];if((e|0)!=i[l+64>>2]){v=a+72|0;m=a+60|0;z=a+312|0;while(1){b=e+ -4|0;n=i[b>>2];i[l+68>>2]=b;O:{if(jd(z)){u=i[a+8>>2];r=i[u>>2];if((q|0)>=((i[u+4>>2]-r>>2>>>0)/3|0)){break c}e=-1;b=-1;h=i[u+24>>2];f=h;c=-1;P:{if((n|0)==-1){break P}k=n+1|0;k=(k>>>0)%3|0?k:n+ -2|0;c=-1;if((k|0)==-1){break P}c=i[r+(k<<2)>>2]}k=c;c=i[f+(k<<2)>>2];Q:{if((c|0)==-1){break Q}f=c+1|0;c=(f>>>0)%3|0?f:c+ -2|0;if((c|0)==-1){break Q}e=c+1|0;e=(e>>>0)%3|0?e:c+ -2|0;if((e|0)!=-1){b=i[r+(e<<2)>>2]}e=c}p=-1;f=-1;h=i[h+(b<<2)>>2];c=-1;R:{if((h|0)==-1){break R}s=h+1|0;h=(s>>>0)%3|0?s:h+ -2|0;c=-1;if((h|0)==-1){break R}c=h+1|0;c=(c>>>0)%3|0?c:h+ -2|0;if((c|0)!=-1){f=i[r+(c<<2)>>2]}c=h}u=i[u+12>>2];h=o(q,3);t=h<<2;i[u+t>>2]=n;i[u+(n<<2)>>2]=h;n=h+1|0;w=n<<2;i[w+u>>2]=e;i[u+(e<<2)>>2]=n;s=h+2|0;e=s<<2;i[e+u>>2]=c;i[u+(c<<2)>>2]=s;i[r+t>>2]=b;c=r+w|0;i[c>>2]=f;f=e+r|0;i[f>>2]=k;e=n>>>0>>0?-1:b;b=i[a+120>>2];k=(e>>>3&536870908)+b|0;r=i[k>>2];B=k,C=ll(e)&r,i[B>>2]=C;p=(n|0)!=-1?i[c>>2]:p;c=b+(p>>>3&536870908)|0;e=i[c>>2];B=c,C=ll(p)&e,i[B>>2]=C;e=-1;e=(s|0)!=-1?i[f>>2]:e;b=b+(e>>>3&536870908)|0;c=i[b>>2];B=b,C=ll(e)&c,i[B>>2]=C;e=i[a+64>>2];c=i[a+68>>2];if((e|0)==c<<5){if((e+1|0)<=-1){break N}b=m;if(e>>>0<=1073741822){e=e+32&-32;c=c<<6;c=c>>>0>>0?e:c}else{c=2147483647}Xb(b,c);e=i[a+64>>2]}q=q+1|0;i[a+64>>2]=e+1;b=i[a+60>>2]+(e>>>3&536870908)|0;i[b>>2]=i[b>>2]|1<>2];if((b|0)!=i[a+80>>2]){i[b>>2]=h;i[a+76>>2]=b+4;break O}c=i[v>>2];e=b-c|0;k=e>>2;f=k+1|0;if(f>>>0>=1073741824){break M}p=e>>1;f=k>>>0<536870911?p>>>0>>0?f:p:1073741823;b=0;S:{if(!f){break S}if(f>>>0>=1073741824){break a}b=lk(f<<2)}k=b+(k<<2)|0;i[k>>2]=h;f=b+(f<<2)|0;h=k+4|0;if((e|0)>=1){Yk(b,c,e)}i[a+80>>2]=f;i[a+76>>2]=h;i[a+72>>2]=b;if(!c){break O}Wk(c);break O}c=i[a+64>>2];e=i[a+68>>2];if((c|0)==e<<5){if((c+1|0)<=-1){break N}b=m;if(c>>>0<=1073741822){c=c+32&-32;e=e<<6;c=e>>>0>>0?c:e}else{c=2147483647}Xb(b,c);c=i[a+64>>2]}i[a+64>>2]=c+1;b=i[a+60>>2]+(c>>>3&536870908)|0;e=i[b>>2];B=b,C=ll(c)&e,i[B>>2]=C;b=i[a+76>>2];if((b|0)!=i[a+80>>2]){i[b>>2]=n;i[a+76>>2]=b+4;break O}c=i[v>>2];e=b-c|0;h=e>>2;f=h+1|0;if(f>>>0>=1073741824){break M}k=e>>1;f=h>>>0<536870911?k>>>0>>0?f:k:1073741823;b=0;T:{if(!f){break T}if(f>>>0>=1073741824){break L}b=lk(f<<2)}h=b+(h<<2)|0;i[h>>2]=n;f=b+(f<<2)|0;h=h+4|0;if((e|0)>=1){Yk(b,c,e)}i[a+80>>2]=f;i[a+76>>2]=h;i[a+72>>2]=b;if(!c){break O}Wk(c)}e=i[l+68>>2];if((e|0)!=i[l+64>>2]){continue}break}m=i[a+8>>2]}if(((i[m+4>>2]-i[m>>2]>>2>>>0)/3|0)!=(q|0)){break c}q=i[m+24>>2];d=i[m+28>>2]-q>>2;b=i[l+24>>2];h=i[l+28>>2];if((b|0)==(h|0)){break b}while(1){f=i[b>>2];e=d+ -1|0;U:{if(i[(e<<2)+q>>2]!=-1){c=d;break U}q=i[m+24>>2];while(1){e=d+ -2|0;c=d+ -1|0;d=c;if(i[(e<<2)+q>>2]==-1){continue}break}}if(e>>>0>=f>>>0){i[l>>2]=m;d=q;q=e<<2;d=i[d+q>>2];g[l+12|0]=1;i[l+8>>2]=d;i[l+4>>2]=d;k=q;if((d|0)!=-1){i[i[m>>2]+(d<<2)>>2]=f;Ec(l);d=i[l+8>>2];if((d|0)!=-1){while(1){i[i[i[a+8>>2]>>2]+(d<<2)>>2]=f;Ec(l);d=i[l+8>>2];if((d|0)!=-1){continue}break}}m=i[a+8>>2]}q=i[m+24>>2];d=k+q|0;if((f|0)!=-1){i[q+(f<<2)>>2]=i[d>>2]}i[d>>2]=-1;d=1<>>3&536870908;f=i[a+120>>2];q=q+f|0;k=q;f=f+(e>>>3&536870908)|0;e=1<>2];V:{if(i[f>>2]&e){break V}r=i[q>>2]&(d^-1)}i[k>>2]=r;i[f>>2]=i[f>>2]&(e^-1);c=c+ -1|0}d=c;b=b+4|0;if((h|0)==(b|0)){break c}q=i[m+24>>2];continue}}Ak();x()}Ak();x()}break a}b=i[l+24>>2]}if(b){i[l+28>>2]=b;Wk(b)}a=i[l+48>>2];if(a){while(1){b=i[a>>2];Wk(a);a=b;if(a){continue}break}}a=i[l+40>>2];i[l+40>>2]=0;if(a){Wk(a)}a=i[l+64>>2];if(a){i[l+68>>2]=a;Wk(a)}F=l+96|0;return d}va(8944);x()}function Ff(a,b,c,d,e){var f=0,k=0;f=F-32|0;F=f;i[b+32>>2]=d;i[b+40>>2]=c;i[b+4>>2]=e;Cf(a,d,f+16|0);a:{if(i[a>>2]){break a}c=a+4|0;if(g[a+15|0]<=-1){Wk(i[c>>2])}d=j[f+23|0];if((I[i[i[b>>2]+8>>2]](b)|0)!=(d|0)){b=lk(64);i[f>>2]=b;i[f+4>>2]=50;i[f+8>>2]=-2147483584;g[b+50|0]=0;d=j[10401]|j[10402]<<8;g[b+48|0]=d;g[b+49|0]=d>>>8;d=j[10397]|j[10398]<<8|(j[10399]<<16|j[10400]<<24);e=j[10393]|j[10394]<<8|(j[10395]<<16|j[10396]<<24);g[b+40|0]=e;g[b+41|0]=e>>>8;g[b+42|0]=e>>>16;g[b+43|0]=e>>>24;g[b+44|0]=d;g[b+45|0]=d>>>8;g[b+46|0]=d>>>16;g[b+47|0]=d>>>24;d=j[10389]|j[10390]<<8|(j[10391]<<16|j[10392]<<24);e=j[10385]|j[10386]<<8|(j[10387]<<16|j[10388]<<24);g[b+32|0]=e;g[b+33|0]=e>>>8;g[b+34|0]=e>>>16;g[b+35|0]=e>>>24;g[b+36|0]=d;g[b+37|0]=d>>>8;g[b+38|0]=d>>>16;g[b+39|0]=d>>>24;d=j[10381]|j[10382]<<8|(j[10383]<<16|j[10384]<<24);e=j[10377]|j[10378]<<8|(j[10379]<<16|j[10380]<<24);g[b+24|0]=e;g[b+25|0]=e>>>8;g[b+26|0]=e>>>16;g[b+27|0]=e>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[10373]|j[10374]<<8|(j[10375]<<16|j[10376]<<24);e=j[10369]|j[10370]<<8|(j[10371]<<16|j[10372]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[10365]|j[10366]<<8|(j[10367]<<16|j[10368]<<24);e=j[10361]|j[10362]<<8|(j[10363]<<16|j[10364]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[10357]|j[10358]<<8|(j[10359]<<16|j[10360]<<24);e=j[10353]|j[10354]<<8|(j[10355]<<16|j[10356]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ok(c,f);if(g[f+11|0]>-1){break a}Wk(i[f>>2]);break a}e=j[f+21|0];g[b+36|0]=e;k=j[f+22|0];g[b+37|0]=k;if((e|0)!=2){b=lk(32);i[f>>2]=b;i[f+4>>2]=26;i[f+8>>2]=-2147483616;g[b+26|0]=0;d=j[10428]|j[10429]<<8;g[b+24|0]=d;g[b+25|0]=d>>>8;d=j[10424]|j[10425]<<8|(j[10426]<<16|j[10427]<<24);e=j[10420]|j[10421]<<8|(j[10422]<<16|j[10423]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[10416]|j[10417]<<8|(j[10418]<<16|j[10419]<<24);e=j[10412]|j[10413]<<8|(j[10414]<<16|j[10415]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[10408]|j[10409]<<8|(j[10410]<<16|j[10411]<<24);e=j[10404]|j[10405]<<8|(j[10406]<<16|j[10407]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-5;ok(c,f);if(g[f+11|0]>-1){break a}Wk(i[f>>2]);break a}d=d?2:3;if((d|0)!=(k|0)){b=lk(32);i[f>>2]=b;i[f+4>>2]=26;i[f+8>>2]=-2147483616;g[b+26|0]=0;d=j[10455]|j[10456]<<8;g[b+24|0]=d;g[b+25|0]=d>>>8;d=j[10451]|j[10452]<<8|(j[10453]<<16|j[10454]<<24);e=j[10447]|j[10448]<<8|(j[10449]<<16|j[10450]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[10443]|j[10444]<<8|(j[10445]<<16|j[10446]<<24);e=j[10439]|j[10440]<<8|(j[10441]<<16|j[10442]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[10435]|j[10436]<<8|(j[10437]<<16|j[10438]<<24);e=j[10431]|j[10432]<<8|(j[10433]<<16|j[10434]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-5;ok(c,f);if(g[f+11|0]>-1){break a}Wk(i[f>>2]);break a}h[i[b+32>>2]+38>>1]=d|512;b:{if(h[f+26>>1]>-1){break b}Df(a,b);if(i[a>>2]){break a}if(g[c+11|0]>-1){break b}Wk(i[c>>2])}if(!(I[i[i[b>>2]+12>>2]](b)|0)){b=lk(48);i[f>>2]=b;i[f+4>>2]=33;i[f+8>>2]=-2147483600;g[b+33|0]=0;g[b+32|0]=j[10490];d=j[10486]|j[10487]<<8|(j[10488]<<16|j[10489]<<24);e=j[10482]|j[10483]<<8|(j[10484]<<16|j[10485]<<24);g[b+24|0]=e;g[b+25|0]=e>>>8;g[b+26|0]=e>>>16;g[b+27|0]=e>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[10478]|j[10479]<<8|(j[10480]<<16|j[10481]<<24);e=j[10474]|j[10475]<<8|(j[10476]<<16|j[10477]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[10470]|j[10471]<<8|(j[10472]<<16|j[10473]<<24);e=j[10466]|j[10467]<<8|(j[10468]<<16|j[10469]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[10462]|j[10463]<<8|(j[10464]<<16|j[10465]<<24);e=j[10458]|j[10459]<<8|(j[10460]<<16|j[10461]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ok(c,f);if(g[f+11|0]>-1){break a}Wk(i[f>>2]);break a}if(!(I[i[i[b>>2]+20>>2]](b)|0)){b=lk(32);i[f>>2]=b;i[f+4>>2]=31;i[f+8>>2]=-2147483616;g[b+31|0]=0;d=j[10519]|j[10520]<<8|(j[10521]<<16|j[10522]<<24);e=j[10515]|j[10516]<<8|(j[10517]<<16|j[10518]<<24);g[b+23|0]=e;g[b+24|0]=e>>>8;g[b+25|0]=e>>>16;g[b+26|0]=e>>>24;g[b+27|0]=d;g[b+28|0]=d>>>8;g[b+29|0]=d>>>16;g[b+30|0]=d>>>24;d=j[10512]|j[10513]<<8|(j[10514]<<16|j[10515]<<24);e=j[10508]|j[10509]<<8|(j[10510]<<16|j[10511]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[10504]|j[10505]<<8|(j[10506]<<16|j[10507]<<24);e=j[10500]|j[10501]<<8|(j[10502]<<16|j[10503]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[10496]|j[10497]<<8|(j[10498]<<16|j[10499]<<24);e=j[10492]|j[10493]<<8|(j[10494]<<16|j[10495]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ok(c,f);if(g[f+11|0]>-1){break a}Wk(i[f>>2]);break a}if(!(I[i[i[b>>2]+24>>2]](b)|0)){b=lk(48);i[f>>2]=b;i[f+4>>2]=34;i[f+8>>2]=-2147483600;g[b+34|0]=0;d=j[10556]|j[10557]<<8;g[b+32|0]=d;g[b+33|0]=d>>>8;d=j[10552]|j[10553]<<8|(j[10554]<<16|j[10555]<<24);e=j[10548]|j[10549]<<8|(j[10550]<<16|j[10551]<<24);g[b+24|0]=e;g[b+25|0]=e>>>8;g[b+26|0]=e>>>16;g[b+27|0]=e>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[10544]|j[10545]<<8|(j[10546]<<16|j[10547]<<24);e=j[10540]|j[10541]<<8|(j[10542]<<16|j[10543]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[10536]|j[10537]<<8|(j[10538]<<16|j[10539]<<24);e=j[10532]|j[10533]<<8|(j[10534]<<16|j[10535]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[10528]|j[10529]<<8|(j[10530]<<16|j[10531]<<24);e=j[10524]|j[10525]<<8|(j[10526]<<16|j[10527]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ok(c,f);if(g[f+11|0]>-1){break a}Wk(i[f>>2]);break a}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}F=f+32|0}function Cf(a,b,c){var d=0,e=0,f=0,k=0,m=0,n=0;e=F-16|0;F=e;k=i[b+12>>2];d=i[b+20>>2];f=i[b+16>>2];m=f+5|0;if(m>>>0<5){d=d+1|0}a:{if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]>>0:0){b=lk(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[10297]|j[10298]<<8|(j[10299]<<16|j[10300]<<24);d=j[10293]|j[10294]<<8|(j[10295]<<16|j[10296]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[2573];d=i[2572];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[2571];d=i[2570];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[2569];d=i[2568];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;ok(a+4|0,e);if(g[e+11|0]>-1){break a}Wk(i[e>>2]);break a}d=f+i[b>>2]|0;k=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);g[c|0]=k;g[c+1|0]=k>>>8;g[c+2|0]=k>>>16;g[c+3|0]=k>>>24;g[c+4|0]=j[d+4|0];k=b;d=i[b+20>>2];f=i[b+16>>2]+5|0;if(f>>>0<5){d=d+1|0}m=f;f=d;i[k+16>>2]=m;i[k+20>>2]=d;if(Lj(c,10302,5)){b=lk(32);i[e>>2]=b;i[e+4>>2]=17;i[e+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[10324];c=j[10320]|j[10321]<<8|(j[10322]<<16|j[10323]<<24);d=j[10316]|j[10317]<<8|(j[10318]<<16|j[10319]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[10312]|j[10313]<<8|(j[10314]<<16|j[10315]<<24);d=j[10308]|j[10309]<<8|(j[10310]<<16|j[10311]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ok(a+4|0,e);if(g[e+11|0]>-1){break a}Wk(i[e>>2]);break a}d=i[b+12>>2];if((d|0)<(f|0)?1:(d|0)<=(f|0)?l[b+8>>2]<=m>>>0:0){b=lk(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[10297]|j[10298]<<8|(j[10299]<<16|j[10300]<<24);d=j[10293]|j[10294]<<8|(j[10295]<<16|j[10296]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[2573];d=i[2572];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[2571];d=i[2570];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[2569];d=i[2568];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;ok(a+4|0,e);if(g[e+11|0]>-1){break a}Wk(i[e>>2]);break a}g[c+5|0]=j[m+i[b>>2]|0];d=i[b+20>>2];f=i[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}i[b+16>>2]=f;i[k+20>>2]=d;k=i[b+12>>2];if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]<=f>>>0:0){b=lk(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[10297]|j[10298]<<8|(j[10299]<<16|j[10300]<<24);d=j[10293]|j[10294]<<8|(j[10295]<<16|j[10296]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[2573];d=i[2572];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[2571];d=i[2570];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[2569];d=i[2568];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;ok(a+4|0,e);if(g[e+11|0]>-1){break a}Wk(i[e>>2]);break a}g[c+6|0]=j[f+i[b>>2]|0];d=i[b+20>>2];f=i[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}i[b+16>>2]=f;i[b+20>>2]=d;k=i[b+12>>2];if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]<=f>>>0:0){b=lk(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[10297]|j[10298]<<8|(j[10299]<<16|j[10300]<<24);d=j[10293]|j[10294]<<8|(j[10295]<<16|j[10296]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[2573];d=i[2572];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[2571];d=i[2570];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[2569];d=i[2568];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;ok(a+4|0,e);if(g[e+11|0]>-1){break a}Wk(i[e>>2]);break a}g[c+7|0]=j[f+i[b>>2]|0];d=i[b+20>>2];f=i[b+16>>2]+1|0;if(f>>>0<1){d=d+1|0}i[b+16>>2]=f;i[b+20>>2]=d;k=i[b+12>>2];if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]<=f>>>0:0){b=lk(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[10297]|j[10298]<<8|(j[10299]<<16|j[10300]<<24);d=j[10293]|j[10294]<<8|(j[10295]<<16|j[10296]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[2573];d=i[2572];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[2571];d=i[2570];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[2569];d=i[2568];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;ok(a+4|0,e);if(g[e+11|0]>-1){break a}Wk(i[e>>2]);break a}g[c+8|0]=j[f+i[b>>2]|0];d=i[b+20>>2];f=d;n=i[b+16>>2];m=n+1|0;if(m>>>0<1){d=d+1|0}i[b+16>>2]=m;i[b+20>>2]=d;k=i[b+12>>2];d=f;f=n+3|0;if(f>>>0<3){d=d+1|0}if((k|0)<(d|0)?1:(k|0)<=(d|0)?l[b+8>>2]>>0:0){b=lk(32);i[e>>2]=b;i[e+4>>2]=29;i[e+8>>2]=-2147483616;g[b+29|0]=0;c=j[10297]|j[10298]<<8|(j[10299]<<16|j[10300]<<24);d=j[10293]|j[10294]<<8|(j[10295]<<16|j[10296]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=i[2573];d=i[2572];g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=i[2571];d=i[2570];g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=i[2569];d=i[2568];g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-2;ok(a+4|0,e);if(g[e+11|0]>-1){break a}Wk(i[e>>2]);break a}f=c;c=m+i[b>>2]|0;h[f+10>>1]=j[c|0]|j[c+1|0]<<8;c=b;f=b;d=i[b+20>>2];b=i[b+16>>2]+2|0;if(b>>>0<2){d=d+1|0}i[f+16>>2]=b;i[c+20>>2]=d;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0}F=e+16|0}function Wb(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0;j=F+ -64|0;F=j;i[a+8>>2]=e;f=a+32|0;k=i[f>>2];d=i[a+36>>2]-k>>2;a:{if(d>>>0>>0){La(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=k+(e<<2)}i[j+56>>2]=0;i[j+60>>2]=0;i[j+48>>2]=0;i[j+52>>2]=0;i[j+40>>2]=0;i[j+44>>2]=0;f=j+32|0;i[f>>2]=0;i[f+4>>2]=0;i[j+24>>2]=0;i[j+28>>2]=0;i[j+16>>2]=0;i[j+20>>2]=0;i[j>>2]=0;d=0;if(e){Na(j+16|0,e,j);h=i[j+28>>2];d=i[f>>2]}i[j>>2]=0;d=d-h>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}i[j+32>>2]=(e<<2)+h;break b}Na(j+16|12,e-d|0,j)}i[j>>2]=0;f=i[j+40>>2];d=i[j+44>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}i[j+44>>2]=f+(e<<2);break c}Na(j+40|0,e-d|0,j)}i[j>>2]=0;f=i[j+52>>2];d=i[j+56>>2]-f>>2;d:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break d}i[j+56>>2]=f+(e<<2);break d}Na(j+52|0,e-d|0,j)}e:{if(i[a+8>>2]<=0){break e}g=i[j+16>>2];h=0;while(1){d=h<<2;f=i[d+g>>2];l=i[a+16>>2];f:{if((f|0)>(l|0)){k=i[a+32>>2];i[d+k>>2]=l;break f}k=i[a+32>>2];d=d+k|0;l=i[a+12>>2];if((f|0)<(l|0)){i[d>>2]=l;break f}i[d>>2]=f}h=h+1|0;d=i[a+8>>2];if((h|0)<(d|0)){continue}break}if((d|0)<1){break e}d=0;while(1){g=d<<2;f=g+c|0;g=i[b+g>>2]+i[g+k>>2]|0;i[f>>2]=g;g:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break g}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}A=i[a+52>>2];q=i[a+48>>2];u=lk(16);d=u;i[d>>2]=0;i[d+4>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[j+8>>2]=0;i[j>>2]=0;i[j+4>>2]=0;h:{if(e){if(e>>>0>=1073741824){break h}d=e<<2;t=lk(d);i[j>>2]=t;f=d+t|0;i[j+8>>2]=f;Zk(t,0,d);i[j+4>>2]=f}d=1;f=i[a+56>>2];k=i[f+4>>2];v=i[f>>2];f=k-v|0;i:{if((f|0)<5){break i}d=v-k|0;d=((d|0)>(f|0)?d:f)>>>2|0;B=d>>>0>2?d:2;C=d>>>0>1?d:1;D=e<<2;l=1;while(1){j:{k:{l:{if((l|0)!=(C|0)){m:{n:{k=i[(l<<2)+v>>2];if((k|0)==-1){break n}n=k+((k>>>0)%3|0?-1:2)|0;w=n>>>5|0;m=1;y=1<>2];f=0;d=k;o:{while(1){p:{if(i[z+(d>>>3&536870908)>>2]>>>d&1){break p}g=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((g|0)==-1){break p}r=i[A>>2];h=i[q+28>>2];s=i[r+(i[h+(g<<2)>>2]<<2)>>2];if((s|0)>=(l|0)){break p}p=g+1|0;p=i[r+(i[h+(((p>>>0)%3|0?p:g+ -2|0)<<2)>>2]<<2)>>2];if((p|0)>=(l|0)){break p}g=i[r+(i[h+(g+((g>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((g|0)>=(l|0)){break p}if((e|0)>=1){r=i[(j+16|0)+o(f,12)>>2];g=o(e,g);p=o(e,p);s=o(e,s);h=0;while(1){i[r+(h<<2)>>2]=(i[(g+h<<2)+c>>2]+i[(h+p<<2)+c>>2]|0)-i[(h+s<<2)+c>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}g=4;f=f+1|0;if((f|0)==4){break o}}q:{if(m&1){h=-1;g=d+1|0;d=(g>>>0)%3|0?g:d+ -2|0;if((d|0)==-1|i[i[q>>2]+(d>>>3&536870908)>>2]>>>d&1){break q}d=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break q}g=d+1|0;h=(g>>>0)%3|0?g:d+ -2|0;break q}h=-1;d=((d>>>0)%3|0?-1:2)+d|0;if((d|0)==-1|i[i[q>>2]+(d>>>3&536870908)>>2]>>>d&1){break q}d=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break q}if((d>>>0)%3|0){h=d+ -1|0;break q}h=d+2|0}r:{if((h|0)==(k|0)){break r}d=h;g=(h|0)!=-1;h=(g|m^-1)&1;d=h?d:-1;m=g&m;if(!((n|0)==-1|h)){if(i[i[q>>2]+(w<<2)>>2]&y){break r}g=i[i[i[q+64>>2]+12>>2]+(n<<2)>>2];if((g|0)==-1){break r}m=0;if((g>>>0)%3|0){d=g+ -1|0}else{d=g+2|0}}if((d|0)!=-1){continue}}break}g=f;if((g|0)<1){break n}}n=(e|0)<1;if(!n){Zk(t,0,D)}d=g+ -1|0;m=(d<<2)+u|0;d=o(d,12)+a|0;r=d+60|0;w=i[d- -64>>2];d=0;y=i[j>>2];k=0;f=0;while(1){h=i[m>>2];i[m>>2]=h+1;if(w>>>0<=h>>>0){break i}s:{if(i[i[r>>2]+(h>>>3&536870908)>>2]>>>h&1){break s}f=f+1|0;if(n){break s}z=i[(j+16|0)+o(k,12)>>2];h=0;while(1){s=h<<2;p=s+y|0;i[p>>2]=i[p>>2]+i[s+z>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}k=k+1|0;if((g|0)!=(k|0)){continue}break}m=o(e,l);g=m;if(!f){break m}h=0;if((e|0)>0){break l}break k}g=o(e,l)}if(i[a+8>>2]<1){break j}m=(o(l+ -1|0,e)<<2)+c|0;h=0;while(1){d=h<<2;f=i[d+m>>2];n=i[a+16>>2];t:{if((f|0)>(n|0)){k=i[a+32>>2];i[d+k>>2]=n;break t}k=i[a+32>>2];d=d+k|0;n=i[a+12>>2];if((f|0)<(n|0)){i[d>>2]=n;break t}i[d>>2]=f}h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}d=0;if((f|0)<1){break j}f=g<<2;h=f+c|0;m=b+f|0;while(1){g=d<<2;f=g+h|0;g=i[g+m>>2]+i[g+k>>2]|0;i[f>>2]=g;u:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break u}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}break j}Bk();x()}while(1){d=(h<<2)+t|0;i[d>>2]=i[d>>2]/(f|0);h=h+1|0;if((h|0)!=(e|0)){continue}break}}if(i[a+8>>2]<1){break j}h=0;while(1){d=h<<2;f=i[d+t>>2];g=i[a+16>>2];v:{if((f|0)>(g|0)){k=i[a+32>>2];i[d+k>>2]=g;break v}k=i[a+32>>2];d=d+k|0;g=i[a+12>>2];if((f|0)<(g|0)){i[d>>2]=g;break v}i[d>>2]=f}h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}d=0;if((f|0)<1){break j}f=m<<2;h=f+c|0;m=b+f|0;while(1){g=d<<2;f=g+h|0;g=i[g+m>>2]+i[g+k>>2]|0;i[f>>2]=g;w:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break w}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}d=1;l=l+1|0;if((B|0)!=(l|0)){continue}break}}a=i[j>>2];if(a){i[j+4>>2]=a;Wk(a)}Wk(u);a=i[j+52>>2];if(a){i[j+56>>2]=a;Wk(a)}a=i[j+40>>2];if(a){i[j+44>>2]=a;Wk(a)}a=i[j+28>>2];if(a){i[j+32>>2]=a;Wk(a)}a=i[j+16>>2];if(a){i[j+20>>2]=a;Wk(a)}F=j- -64|0;return d|0}Ak();x()}function vc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0;h=F+ -64|0;F=h;i[a+8>>2]=e;f=a+32|0;k=i[f>>2];d=i[a+36>>2]-k>>2;a:{if(d>>>0>>0){La(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=k+(e<<2)}i[h+56>>2]=0;i[h+60>>2]=0;i[h+48>>2]=0;i[h+52>>2]=0;i[h+40>>2]=0;i[h+44>>2]=0;d=h+32|0;i[d>>2]=0;i[d+4>>2]=0;i[h+24>>2]=0;i[h+28>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;i[h>>2]=0;f=0;if(e){Na(h+16|0,e,h);j=i[h+28>>2];f=i[d>>2]}i[h>>2]=0;d=f-j>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}i[h+32>>2]=(e<<2)+j;break b}Na(h+16|12,e-d|0,h)}i[h>>2]=0;f=i[h+40>>2];d=i[h+44>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}i[h+44>>2]=f+(e<<2);break c}Na(h+40|0,e-d|0,h)}i[h>>2]=0;f=i[h+52>>2];d=i[h+56>>2]-f>>2;d:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break d}i[h+56>>2]=f+(e<<2);break d}Na(h+52|0,e-d|0,h)}e:{if(i[a+8>>2]<=0){break e}g=i[h+16>>2];j=0;while(1){d=j<<2;f=i[d+g>>2];m=i[a+16>>2];f:{if((f|0)>(m|0)){k=i[a+32>>2];i[d+k>>2]=m;break f}k=i[a+32>>2];d=d+k|0;m=i[a+12>>2];if((f|0)<(m|0)){i[d>>2]=m;break f}i[d>>2]=f}j=j+1|0;d=i[a+8>>2];if((j|0)<(d|0)){continue}break}if((d|0)<1){break e}f=0;while(1){g=f<<2;d=g+c|0;g=i[b+g>>2]+i[g+k>>2]|0;i[d>>2]=g;g:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break g}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}}A=i[a+52>>2];z=i[a+48>>2];w=lk(16);d=w;i[d>>2]=0;i[d+4>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;h:{if(e){if(e>>>0>=1073741824){break h}d=e<<2;s=lk(d);i[h>>2]=s;f=d+s|0;i[h+8>>2]=f;Zk(s,0,d);i[h+4>>2]=f}k=1;d=i[a+56>>2];f=i[d+4>>2];y=i[d>>2];d=f-y|0;i:{if((d|0)<5){break i}f=y-f|0;d=((f|0)>(d|0)?f:d)>>>2|0;B=d>>>0>2?d:2;C=d>>>0>1?d:1;D=e<<2;m=1;while(1){j:{k:{l:{if((m|0)!=(C|0)){m:{n:{k=i[(m<<2)+y>>2];if((k|0)==-1){break n}n=i[z+12>>2];u=k+((k>>>0)%3|0?-1:2)|0;v=n+(u<<2)|0;l=1;f=0;d=k;o:{while(1){g=i[n+(d<<2)>>2];p:{if((g|0)==-1){break p}j=-1;r=i[A>>2];p=i[z>>2];t=i[r+(i[p+(g<<2)>>2]<<2)>>2];q=g+1|0;q=(q>>>0)%3|0?q:g+ -2|0;if((q|0)!=-1){q=i[p+(q<<2)>>2]}else{q=-1}g=g+((g>>>0)%3|0?-1:2)|0;if((g|0)!=-1){j=i[p+(g<<2)>>2]}if((t|0)>=(m|0)){break p}g=i[(q<<2)+r>>2];if((g|0)>=(m|0)){break p}j=i[r+(j<<2)>>2];if((j|0)>=(m|0)){break p}p=i[(h+16|0)+o(f,12)>>2];if((e|0)>=1){r=o(e,j);g=o(e,g);t=o(e,t);j=0;while(1){i[p+(j<<2)>>2]=(i[(j+r<<2)+c>>2]+i[(g+j<<2)+c>>2]|0)-i[(j+t<<2)+c>>2];j=j+1|0;if((j|0)!=(e|0)){continue}break}}g=4;f=f+1|0;if((f|0)==4){break o}}q:{if(l&1){p=d+1|0;d=(p>>>0)%3|0?p:d+ -2|0;g=-1;if((d|0)==-1){break q}d=i[n+(d<<2)>>2];g=-1;if((d|0)==-1){break q}g=d+1|0;g=(g>>>0)%3|0?g:d+ -2|0;break q}d=((d>>>0)%3|0?-1:2)+d|0;g=-1;if((d|0)==-1){break q}d=i[n+(d<<2)>>2];g=-1;if((d|0)==-1){break q}g=d+ -1|0;if((d>>>0)%3|0){break q}g=d+2|0}r:{if((g|0)==(k|0)){break r}d=g;g=(g|0)!=-1;j=(g|l^-1)&1;d=j?d:-1;l=g&l;if(!((u|0)==-1|j)){g=i[v>>2];if((g|0)==-1){break r}l=0;if((g>>>0)%3|0){d=g+ -1|0}else{d=g+2|0}}if((d|0)!=-1){continue}}break}g=f;if((g|0)<1){break n}}n=(e|0)<1;if(!n){Zk(s,0,D)}d=g+ -1|0;l=(d<<2)+w|0;d=o(d,12)+a|0;p=d+60|0;r=i[d- -64>>2];k=0;t=i[h>>2];d=0;f=0;while(1){j=i[l>>2];i[l>>2]=j+1;if(r>>>0<=j>>>0){break i}s:{if(i[i[p>>2]+(j>>>3&536870908)>>2]>>>j&1){break s}f=f+1|0;if(n){break s}q=i[(h+16|0)+o(d,12)>>2];j=0;while(1){u=j<<2;v=u+t|0;i[v>>2]=i[v>>2]+i[q+u>>2];j=j+1|0;if((j|0)!=(e|0)){continue}break}}d=d+1|0;if((g|0)!=(d|0)){continue}break}g=o(e,m);d=g;if(!f){break m}j=0;if((e|0)>0){break l}break k}d=o(e,m)}if(i[a+8>>2]<1){break j}l=(o(m+ -1|0,e)<<2)+c|0;j=0;while(1){f=j<<2;g=i[f+l>>2];n=i[a+16>>2];t:{if((g|0)>(n|0)){k=i[a+32>>2];i[f+k>>2]=n;break t}k=i[a+32>>2];f=f+k|0;n=i[a+12>>2];if((g|0)<(n|0)){i[f>>2]=n;break t}i[f>>2]=g}j=j+1|0;g=i[a+8>>2];if((j|0)<(g|0)){continue}break}f=0;if((g|0)<1){break j}d=d<<2;j=d+c|0;l=b+d|0;while(1){g=f<<2;d=g+j|0;g=i[g+l>>2]+i[g+k>>2]|0;i[d>>2]=g;u:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break u}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}break j}Bk();x()}while(1){d=(j<<2)+s|0;i[d>>2]=i[d>>2]/(f|0);j=j+1|0;if((j|0)!=(e|0)){continue}break}}if(i[a+8>>2]<1){break j}j=0;while(1){d=j<<2;f=i[d+s>>2];l=i[a+16>>2];v:{if((f|0)>(l|0)){k=i[a+32>>2];i[d+k>>2]=l;break v}k=i[a+32>>2];d=d+k|0;l=i[a+12>>2];if((f|0)<(l|0)){i[d>>2]=l;break v}i[d>>2]=f}j=j+1|0;d=i[a+8>>2];if((j|0)<(d|0)){continue}break}f=0;if((d|0)<1){break j}d=g<<2;j=d+c|0;l=b+d|0;while(1){g=f<<2;d=g+j|0;g=i[g+l>>2]+i[g+k>>2]|0;i[d>>2]=g;w:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break w}g=g+i[a+20>>2]|0}i[d>>2]=g}f=f+1|0;if((f|0)>2]){continue}break}}k=1;m=m+1|0;if((B|0)!=(m|0)){continue}break}}a=i[h>>2];if(a){i[h+4>>2]=a;Wk(a)}Wk(w);a=i[h+52>>2];if(a){i[h+56>>2]=a;Wk(a)}a=i[h+40>>2];if(a){i[h+44>>2]=a;Wk(a)}a=i[h+28>>2];if(a){i[h+32>>2]=a;Wk(a)}a=i[h+16>>2];if(a){i[h+20>>2]=a;Wk(a)}F=h- -64|0;return k|0}Ak();x()}function Pj(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=F-16|0;F=e;i[e+12>>2]=a;a:{if(a>>>0<=211){a=i[Qj(11424,11616,e+12|0)>>2];break a}if(a>>>0>=4294967292){Sj();x()}f=(a>>>0)/210|0;d=o(f,210);i[e+8>>2]=a-d;g=Qj(11616,11808,e+8|0)-11616>>2;b:{while(1){a=i[(g<<2)+11616>>2]+d|0;d=5;b=h;c:{d:{while(1){h=b;if((d|0)==47){d=211;while(1){b=(a>>>0)/(d>>>0)|0;if(b>>>0>>0){break c}if((o(b,d)|0)==(a|0)){break d}b=d+10|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+12|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+16|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+18|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+22|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+28|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+30|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+36|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+40|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+42|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+46|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+52|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+58|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+60|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+66|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+70|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+72|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+78|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+82|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+88|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+96|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+100|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+102|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+106|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+108|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+112|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+120|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+126|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+130|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+136|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+138|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+142|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+148|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+150|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+156|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+162|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+166|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+168|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+172|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+178|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+180|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+186|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+190|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+192|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+196|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+198|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+208|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}d=d+210|0;if((o(b,c)|0)!=(a|0)){continue}break}break d}b=i[(d<<2)+11424>>2];c=(a>>>0)/(b>>>0)|0;j=o(b,c);c=c>>>0>>0;if(!c){b=c?a:h;d=d+1|0;if((a|0)!=(j|0)){continue}}break}if((a|0)!=(j|0)|c){break b}}b=g+1|0;a=(b|0)==48;g=a?0:b;f=a+f|0;d=o(f,210);continue}break}i[e+12>>2]=a;break a}i[e+12>>2]=a;a=c?a:h}F=e+16|0;return a}function Bg(a,b,c,d){var e=0,f=0,h=0,o=0,r=0,s=p(0),t=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:h=1;e:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break e}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){g[d+f|0]=j[b|0];f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break e}b=b+1|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 1:f:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break f}h=i[a>>2];e=i[h+4>>2];h=i[h>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=h+b|0;if(e>>>0<=b>>>0){break b}while(1){h=0;e=g[b|0];if((e|0)<0){break c}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break f}b=b+1|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break c}if((e|0)>=(c|0)){return 1}break a;case 2:h=1;g:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break g}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=k[b>>1];if((e+128&65535)>>>0>255){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break g}b=b+2|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 3:h=1;h:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break h}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=k[b>>1];if(e>>>0>127){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break h}b=b+2|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 4:h=1;i:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break i}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b>>2];if(e+128>>>0>255){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break i}b=b+4|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 5:h=1;j:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break j}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b>>2];if(e>>>0>127){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break j}b=b+4|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 6:h=1;k:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break k}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b+4>>2];o=i[b>>2];r=o+128|0;if(r>>>0<128){e=e+1|0}if(!e&r>>>0>255|e>>>0>0){break b}g[d+f|0]=o;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break k}b=b+8|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 7:h=1;l:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break l}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b+4>>2];o=i[b>>2];if(!e&o>>>0>127|e>>>0>0){break b}g[d+f|0]=o;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break l}b=b+8|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 8:h=1;m:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break m}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){o=d+f|0;s=m[b>>2];n:{if(p(q(s))=((e|0)>(c|0)?c:e)<<24>>24){break m}b=b+4|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 9:h=1;o:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break o}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){o=d+f|0;t=n[b>>3];p:{if(q(t)<2147483648){e=~~t;break p}e=-2147483648}g[o|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break o}b=b+8|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}h=1;q:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break q}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){g[d+f|0]=j[b|0];f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break q}b=b+1|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}Zk(d+e|0,0,c-e|0)}return h}return 0}Zk(d+e|0,0,c-e|0);return 1}function ne(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;h=F+ -64|0;F=h;i[a+132>>2]=0;if(i[a+148>>2]){b=i[a+144>>2];if(b){while(1){d=i[b>>2];Wk(b);b=d;if(b){continue}break}}i[a+144>>2]=0;d=i[a+140>>2];if(d){b=0;while(1){i[i[a+136>>2]+(b<<2)>>2]=0;b=b+1|0;if((d|0)!=(b|0)){continue}break}}i[a+148>>2]=0}a:{b:{c:{if(!oe(1,h+52|0,i[i[a+4>>2]+32>>2])){break c}i[a+156>>2]=i[h+52>>2];if(!oe(1,h+48|0,i[i[a+4>>2]+32>>2])){break c}f=i[h+48>>2];if(f>>>0>1431655765|l[a+156>>2]>o(f,3)>>>0){break c}b=i[i[a+4>>2]+32>>2];p=i[b+16>>2];e=i[b+12>>2];d=i[b+20>>2];if((e|0)<(d|0)?1:(e|0)<=(d|0)?l[b+8>>2]<=p>>>0:0){break c}m=j[p+i[b>>2]|0];p=p+1|0;if(p>>>0<1){d=d+1|0}i[b+16>>2]=p;i[b+20>>2]=d;if(!oe(1,h+44|0,b)){break c}q=i[h+44>>2];if(f>>>0>>0|f>>>0>q+((q>>>0)/3|0)>>>0){break c}if(!oe(1,h+40|0,i[i[a+4>>2]+32>>2])){break c}e=i[h+40>>2];if(e>>>0>q>>>0){break c}i[a+28>>2]=i[a+24>>2];d=lk(88);Mi(d);b=i[a+8>>2];i[a+8>>2]=d;p=a+8|0;if(b){pe(p,b);if(!i[p>>2]){break c}}c=i[a+160>>2];i[a+164>>2]=c;d:{if(i[a+168>>2]-c>>2>>>0>=f>>>0){break d}if(f>>>0>=1073741824){break a}d=f<<2;b=lk(d);i[a+164>>2]=b;i[a+160>>2]=b;i[a+168>>2]=b+d;if(!c){break d}Wk(c)}c=i[a+172>>2];i[a+176>>2]=c;e:{if(i[a+180>>2]-c>>2>>>0>=f>>>0){break e}if(f>>>0>=1073741824){break b}d=f<<2;b=lk(d);i[a+176>>2]=b;i[a+172>>2]=b;i[a+180>>2]=b+d;if(!c){break e}Wk(c)}i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+40>>2]=i[a+36>>2];i[a- -64>>2]=0;i[a+52>>2]=i[a+48>>2];i[a+76>>2]=i[a+72>>2];r=a+216|0;c=i[a+216>>2];b=c;d=i[a+220>>2];if((b|0)!=(d|0)){while(1){b=i[d+ -12>>2];if(b){i[d+ -8>>2]=b;Wk(b)}b=i[d+ -28>>2];if(b){i[d+ -24>>2]=b;Wk(b)}b=d+ -144|0;n=i[d+ -40>>2];if(n){i[d+ -36>>2]=n;Wk(n)}qe(d+ -140|0);d=b;if((c|0)!=(b|0)){continue}break}b=i[r>>2]}i[a+220>>2]=c;d=(c-b|0)/144|0;f:{if(d>>>0>>0){re(r,m-d|0);break f}if(d>>>0<=m>>>0){break f}d=o(m,144)+b|0;if((d|0)!=(c|0)){while(1){b=i[c+ -12>>2];if(b){i[c+ -8>>2]=b;Wk(b)}b=i[c+ -28>>2];if(b){i[c+ -24>>2]=b;Wk(b)}b=c+ -144|0;n=i[c+ -40>>2];if(n){i[c+ -36>>2]=n;Wk(n)}qe(c+ -140|0);c=b;if((b|0)!=(d|0)){continue}break}}i[a+220>>2]=d}c=0;if(!Wi(i[a+8>>2],f,e+i[a+156>>2]|0)){break c}b=i[a+156>>2];g[h|0]=1;ie(a+120|0,b+e|0,h);if((se(a,i[i[a+4>>2]+32>>2])|0)==-1){break c}i[a+376>>2]=a;e=a+232|0;c=i[(I[i[i[a>>2]+32>>2]](a)|0)+32>>2];s=i[c>>2]+i[c+16>>2]|0;d=i[(I[i[i[a>>2]+32>>2]](a)|0)+32>>2];c=i[d+8>>2];b=i[d+16>>2];Rf(e,s,c-b|0,k[i[(I[i[i[a>>2]+32>>2]](a)|0)+32>>2]+38>>1]);i[a+372>>2]=m;b=Pf(h);c=i[a+268>>2];i[a+304>>2]=i[a+264>>2];i[a+308>>2]=c;c=i[a+260>>2];i[a+296>>2]=i[a+256>>2];i[a+300>>2]=c;d=a+248|0;c=d;f=i[c+4>>2];i[a+288>>2]=i[c>>2];i[a+292>>2]=f;m=a+240|0;c=m;f=i[c+4>>2];i[a+280>>2]=i[c>>2];i[a+284>>2]=f;c=i[a+236>>2];f=a+272|0;i[f>>2]=i[a+232>>2];i[f+4>>2]=c;g:{h:{if(Sf(f,1,h+56|0)){c=i[f+4>>2];i[e>>2]=i[f>>2];i[e+4>>2]=c;c=i[f+36>>2];i[e+32>>2]=i[f+32>>2];i[e+36>>2]=c;c=i[f+28>>2];i[e+24>>2]=i[f+24>>2];i[e+28>>2]=c;c=i[f+20>>2];i[e+16>>2]=i[f+16>>2];i[e+20>>2]=c;c=i[f+12>>2];i[e+8>>2]=i[f+8>>2];i[e+12>>2]=c;n=i[m>>2];c=i[d>>2];u=n-c|0;t=i[h+60>>2];s=i[m+4>>2];m=i[d+4>>2];d=s-(m+(n>>>0>>0)|0)|0;n=i[h+56>>2];if((t|0)==(d|0)&n>>>0<=u>>>0|t>>>0>>0){break h}}c=0;break g}m=m+t|0;n=c+n|0;if(n>>>0>>0){m=m+1|0}i[a+248>>2]=n;i[a+252>>2]=m;c=0;if(!hd(a+312|0,e)){break g}if(!te(e)){break g}d=i[e+36>>2];i[h+32>>2]=i[e+32>>2];i[h+36>>2]=d;d=i[e+28>>2];i[h+24>>2]=i[e+24>>2];i[h+28>>2]=d;d=i[e+20>>2];i[h+16>>2]=i[e+16>>2];i[h+20>>2]=d;d=i[e+12>>2];i[h+8>>2]=i[e+8>>2];i[h+12>>2]=d;d=i[e+4>>2];i[h>>2]=i[e>>2];i[h+4>>2]=d;q=ue(a,q);if((q|0)==-1){break g}d=i[i[a+4>>2]+32>>2];c=i[b+16>>2];m=c+i[b>>2]|0;b=i[b+8>>2];Rf(d,m,b-c|0,k[d+38>>1]);i:{if(i[a+220>>2]==i[a+216>>2]){break i}c=i[p>>2];if(i[c+4>>2]==i[c>>2]){break i}d=0;while(1){if(ve(a,d)){d=d+3|0;c=i[p>>2];if(d>>>0>2]-i[c>>2]>>2>>>0){continue}break i}break}c=0;break g}if(j[a+308|0]){Uf(f)}b=i[a+216>>2];if((b|0)!=i[a+220>>2]){d=0;while(1){e=o(d,144);ej((e+b|0)+4|0,i[p>>2]);c=i[r>>2];b=c+e|0;f=i[b+132>>2];m=i[b+136>>2];if((f|0)!=(m|0)){gj(b+4|0,i[f>>2]);b=f+4|0;if((m|0)!=(b|0)){while(1){gj((e+i[r>>2]|0)+4|0,i[b>>2]);b=b+4|0;if((m|0)!=(b|0)){continue}break}}c=i[r>>2]}fj((c+e|0)+4|0);d=d+1|0;b=i[a+216>>2];if(d>>>0<(i[a+220>>2]-b|0)/144>>>0){continue}break}}c=i[a+8>>2];we(a+184|0,i[c+28>>2]-i[c+24>>2]>>2);d=i[a+216>>2];if((d|0)!=i[a+220>>2]){b=0;while(1){c=o(b,144)+d|0;d=i[c+60>>2]-i[c+56>>2]>>2;m=c+104|0;c=i[a+8>>2];c=i[c+28>>2]-i[c+24>>2]>>2;we(m,(d|0)<(c|0)?c:d);b=b+1|0;d=i[a+216>>2];if(b>>>0<(i[a+220>>2]-d|0)/144>>>0){continue}break}}c=xe(a,q)}}F=h- -64|0;return c|0}va(8944);x()}va(8944);x()}function Dg(a,b,c,d){var e=0,f=0,h=0,o=0,q=p(0),r=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:e:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break e}h=i[a>>2];e=i[h+4>>2];h=i[h>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=h+b|0;if(e>>>0<=b>>>0){break b}while(1){h=0;e=g[b|0];if((e|0)<0){break c}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break e}b=b+1|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break c}if((e|0)>=(c|0)){return 1}break a;case 1:h=1;f:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break f}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){g[d+f|0]=j[b|0];f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break f}b=b+1|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 2:h=1;g:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break g}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=k[b>>1];if(e>>>0>255){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break g}b=b+2|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 3:h=1;h:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break h}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=k[b>>1];if(e>>>0>255){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break h}b=b+2|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 4:h=1;i:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break i}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b>>2];if(e>>>0>255){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break i}b=b+4|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 5:h=1;j:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break j}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b>>2];if(e>>>0>255){break b}g[d+f|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break j}b=b+4|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 6:h=1;k:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break k}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b+4>>2];o=i[b>>2];if(!e&o>>>0>255|e>>>0>0){break b}g[d+f|0]=o;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break k}b=b+8|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 7:h=1;l:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break l}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){e=i[b+4>>2];o=i[b>>2];if(!e&o>>>0>255|e>>>0>0){break b}g[d+f|0]=o;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break l}b=b+8|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 8:h=1;m:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break m}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){o=d+f|0;q=m[b>>2];n:{if(q=p(0)){e=~~q>>>0;break n}e=0}g[o|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break m}b=b+4|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 9:h=1;o:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break o}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){o=d+f|0;r=n[b>>3];p:{if(r<4294967296&r>=0){e=~~r>>>0;break p}e=0}g[o|0]=e;f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break o}b=b+8|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}h=1;q:{e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24<1){break q}f=i[a>>2];e=i[f+4>>2];f=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=f+b|0;if(e>>>0<=b>>>0){break b}f=0;while(1){g[d+f|0]=j[b|0];f=f+1|0;e=g[a+24|0];if((f|0)>=((e|0)>(c|0)?c:e)<<24>>24){break q}b=b+1|0;if(l[i[a>>2]+4>>2]>b>>>0){continue}break}break b}if((e|0)>=(c|0)){break c}Zk(d+e|0,0,c-e|0)}return h}return 0}Zk(d+e|0,0,c-e|0);return 1}function gc(a,b,c,d){var e=0,f=0,l=0,o=0,r=p(0),t=0,w=0,x=0;a:{b:{if(!d){break b}c:{switch(i[a+28>>2]+ -1|0){case 0:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=g[b|0];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=j[b|0];i[e+4>>2]=0;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=h[b>>1];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=k[b>>1];i[e+4>>2]=0;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=i[b>>2];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=i[b>>2];i[e+4>>2]=0;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}l=i[b+4>>2];e=(f<<3)+d|0;i[e>>2]=i[b>>2];i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=i[b+4>>2];l=e;w=i[b>>2];if((e|0)<0?1:(e|0)<=0?w>>>0<0:0){return}e=(f<<3)+d|0;i[e>>2]=w;i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 8:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;w=i[e+4>>2];f=0;while(1){if(w>>>0<=b>>>0){return}e=(f<<3)+d|0;o=e;r=m[b>>2];d:{if(p(q(r))=p(1)?r>p(0)?~~p(s(p(u(p(r*p(2.3283064365386963e-10)))),p(4294967296)))>>>0:~~p(v(p(p(r-p(~~r>>>0>>>0))*p(2.3283064365386963e-10))))>>>0:0;x=~~r>>>0;break d}l=-2147483648;x=0}i[o>>2]=x;i[e+4>>2]=l;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 9:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;w=i[e+4>>2];f=0;while(1){if(w>>>0<=b>>>0){return}e=(f<<3)+d|0;o=e;t=n[b>>3];e:{if(q(t)<0x8000000000000000){l=q(t)>=1?t>0?~~s(u(t*2.3283064365386963e-10),4294967295)>>>0:~~v((t- +(~~t>>>0>>>0))*2.3283064365386963e-10)>>>0:0;x=~~t>>>0;break e}l=-2147483648;x=0}i[o>>2]=x;i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 10:break c;default:break b}}e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=j[b|0];i[e+4>>2]=0;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}Zk((e<<3)+d|0,0,c-e<<3)}return}Zk((e<<3)+d|0,0,c-e<<3)}function xe(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;e=F-48|0;F=e;f=i[i[a+4>>2]+44>>2];c=i[a+8>>2];g=i[c>>2];c=i[c+4>>2];i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;d=(c-g>>2>>>0)/3|0;c=i[f+96>>2];g=(i[f+100>>2]-c|0)/12|0;a:{if(d>>>0>g>>>0){Ae(f+96|0,d-g|0,e+32|0);break a}if(d>>>0>=g>>>0){break a}i[f+100>>2]=c+o(d,12)}b:{if(i[a+216>>2]==i[a+220>>2]){l=i[a+4>>2];k=i[l+44>>2];h=i[k+100>>2];if((h|0)!=i[k+96>>2]){j=e+40|0;c=0;while(1){g=-1;p=0;d=-1;c:{d:{e:{f=o(c,3);if((f|0)==-1){break e}n=-1;d=i[i[i[a+8>>2]>>2]+(f<<2)>>2];p=f+1|0;if((p|0)!=-1){break e}f=0;break d}n=i[i[i[a+8>>2]>>2]+(p<<2)>>2];f=f+2|0;if((f|0)==-1){break c}}g=i[i[i[a+8>>2]>>2]+(f<<2)>>2]}f=c+1|0;p=i[k+96>>2];m=(h-p|0)/12|0;if(m>>>0<=c>>>0){i[j>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;h=k+96|0;Ae(h,f-m|0,e+32|0);l=i[a+4>>2];p=i[h>>2]}c=p+o(c,12)|0;i[c+8>>2]=g;i[c+4>>2]=n;i[c>>2]=d;c=f;k=i[l+44>>2];h=i[k+100>>2];if(c>>>0<(h-i[k+96>>2]|0)/12>>>0){continue}break}}i[i[l+4>>2]+80>>2]=b;c=1;break b}i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;l=i[a+8>>2];c=i[l>>2];b=i[l+4>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;f:{g:{h:{i:{j:{k:{l:{g=b-c|0;if(g){b=g>>2;if(b>>>0>=1073741824){break l}c=lk(g);i[e>>2]=c;b=c+(b<<2)|0;i[e+8>>2]=b;Zk(c,0,g);i[e+4>>2]=b}c=i[l+24>>2];if((i[l+28>>2]-c|0)<1){break g}while(1){g=i[(q<<2)+c>>2];m:{if((g|0)==-1){break m}n:{if(i[i[a+120>>2]+(q>>>3&536870908)>>2]>>>q&1){break n}b=i[a+220>>2];n=i[a+216>>2];if((b|0)==(n|0)){break n}m=(b-n|0)/144|0;j=((g>>>0)%3|0?-1:2)+g|0;p=0;while(1){d=g<<2;f=n+o(p,144)|0;b=i[d+i[i[f+68>>2]>>2]>>2];o:{if(!(i[i[f+16>>2]+(b>>>3&536870908)>>2]>>>b&1)){break o}b=g;k=b;c=-1;p:{if((j|0)==-1){break p}h=i[i[l+12>>2]+(j<<2)>>2];c=-1;if((h|0)==-1){break p}c=h+ -1|0;if((h>>>0)%3|0){break p}c=h+2|0}if((k|0)==(c|0)){break o}h=i[f+32>>2];f=i[h+d>>2];while(1){d=0;if((c|0)==-1){break f}if((f|0)!=i[h+(c<<2)>>2]){g=c;break n}k=b;c=((c>>>0)%3|0?-1:2)+c|0;d=-1;q:{if((c|0)==-1){break q}c=i[i[l+12>>2]+(c<<2)>>2];d=-1;if((c|0)==-1){break q}d=c+ -1|0;if((c>>>0)%3|0){break q}d=c+2|0}c=d;if((k|0)!=(c|0)){continue}break}}p=p+1|0;if(p>>>0>>0){continue}break}}b=i[e+20>>2];j=i[e+16>>2];m=b-j|0;h=m>>2;i[i[e>>2]+(g<<2)>>2]=h;c=i[e+24>>2];r:{if(b>>>0>>0){i[b>>2]=g;i[e+20>>2]=b+4;break r}f=h+1|0;if(f>>>0>=1073741824){break k}d=c-j|0;c=d>>1;d=d>>2>>>0<536870911?c>>>0>>0?f:c:1073741823;b=0;s:{if(!d){break s}if(d>>>0>=1073741824){break j}b=lk(d<<2)}c=b+(h<<2)|0;i[c>>2]=g;d=b+(d<<2)|0;c=c+4|0;if((m|0)>=1){Yk(b,j,m)}i[e+24>>2]=d;i[e+20>>2]=c;i[e+16>>2]=b;if(!j){break r}Wk(j);l=i[a+8>>2]}if((g|0)==-1){break m}b=((g>>>0)%3|0?-1:2)+g|0;if((b|0)==-1){break m}b=i[i[l+12>>2]+(b<<2)>>2];if((b|0)==-1){break m}c=b+((b>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}d=g;if((c|0)==(d|0)){break m}while(1){b=c;t:{u:{c=i[a+220>>2];j=i[a+216>>2];if((c|0)==(j|0)){break u}m=(c-j|0)/144|0;c=0;while(1){h=i[(j+o(c,144)|0)+32>>2];f=b<<2;if(i[h+f>>2]==i[h+(d<<2)>>2]){c=c+1|0;if(c>>>0>>0){continue}break u}break}c=i[e+20>>2];n=i[e+16>>2];j=c-n|0;m=j>>2;i[f+i[e>>2]>>2]=m;d=i[e+24>>2];if(c>>>0>>0){i[c>>2]=b;i[e+20>>2]=c+4;break t}h=m+1|0;if(h>>>0>=1073741824){break i}f=d-n|0;d=f>>1;f=f>>2>>>0<536870911?d>>>0>>0?h:d:1073741823;c=0;v:{if(!f){break v}if(f>>>0>=1073741824){break h}c=lk(f<<2)}d=c+(m<<2)|0;i[d>>2]=b;f=c+(f<<2)|0;d=d+4|0;if((j|0)>=1){Yk(c,n,j)}i[e+24>>2]=f;i[e+20>>2]=d;i[e+16>>2]=c;if(!n){break t}Wk(n);l=i[a+8>>2];break t}c=i[e>>2];i[c+(b<<2)>>2]=i[c+(d<<2)>>2]}if((b|0)==-1){break m}c=b+((b>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}c=i[i[l+12>>2]+(c<<2)>>2];if((c|0)==-1){break m}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1){break m}d=b;if((c|0)!=(g|0)){continue}break}}q=q+1|0;c=i[l+24>>2];if((q|0)>2]-c>>2){continue}break}break g}Ak();x()}Ak();x()}va(8944);x()}Ak();x()}va(8944);x()}q=i[a+4>>2];k=i[q+44>>2];d=i[k+100>>2];if((d|0)!=i[k+96>>2]){n=e+40|0;c=0;while(1){g=c+1|0;j=o(c,12);b=j+i[e>>2]|0;m=i[b+8>>2];h=i[b+4>>2];f=i[b>>2];b=i[k+96>>2];d=(d-b|0)/12|0;if(d>>>0<=c>>>0){i[n>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;b=k+96|0;Ae(b,g-d|0,e+32|0);q=i[a+4>>2];b=i[b>>2]}b=b+j|0;i[b+8>>2]=m;i[b+4>>2]=h;i[b>>2]=f;c=g;k=i[q+44>>2];d=i[k+100>>2];if(c>>>0<(d-i[k+96>>2]|0)/12>>>0){continue}break}}i[i[q+4>>2]+80>>2]=i[e+20>>2]-i[e+16>>2]>>2;d=1}c=d;a=i[e>>2];if(a){i[e+4>>2]=a;Wk(a)}a=i[e+16>>2];if(!a){break b}i[e+20>>2]=a;Wk(a)}F=e+48|0;return c}function yg(a,b,c,d){var e=0,f=0,o=p(0),q=0,r=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(g[b|0]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(127)}b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(j[b|0]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(255)}b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(h[b>>1]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(32767)}b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(k[b>>1]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(65535)}b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(i[b>>2]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(4.656612873077393e-10)}b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(l[b>>2]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(2.3283064365386963e-10)}b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(+l[b>>2]+ +i[b+4>>2]*4294967296);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(1.0842021724855044e-19)}b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(+l[b>>2]+ +l[b+4>>2]*4294967296);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(5.421010862427522e-20)}b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}m[(f<<2)+d>>2]=m[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}m[(f<<2)+d>>2]=n[b>>3];b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){q=i[a>>2];e=i[q>>2];b=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;while(1){if(l[q+4>>2]<=b>>>0){break b}m[(f<<2)+d>>2]=j[b|0]?p(1):p(0);b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}Zk((e<<2)+d|0,0,c-e<<2)}return r}return 0}Zk((e<<2)+d|0,0,c-e<<2);return 1}function Gg(a,b,c,d){var e=0,f=0,l=0,o=0,r=0,s=0,t=p(0),u=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;l=i[e+4>>2];while(1){if(l>>>0<=b>>>0){break b}o=0;e=h[b>>1];if((e|0)<0){break c}h[(f<<1)+d>>1]=e;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}o=1;if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e+32768>>>0>65535){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e>>>0>32767){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];r=i[b>>2];s=r+32768|0;if(s>>>0<32768){e=e+1|0}if(!e&s>>>0>65535|e>>>0>0){break b}h[(f<<1)+d>>1]=r;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];r=i[b>>2];if(!e&r>>>0>32767|e>>>0>0){break b}h[(f<<1)+d>>1]=r;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}r=(f<<1)+d|0;t=m[b>>2];e:{if(p(q(t))>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}r=(f<<1)+d|0;u=n[b>>3];f:{if(q(u)<2147483648){e=~~u;break f}e=-2147483648}h[r>>1]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}Zk((e<<1)+d|0,0,c-e<<1)}return o}return 0}Zk((e<<1)+d|0,0,c-e<<1);return 1}function Ig(a,b,c,d){var e=0,f=0,l=0,o=0,q=0,r=p(0),s=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;l=i[e+4>>2];while(1){if(l>>>0<=b>>>0){break b}o=0;e=g[b|0];if((e|0)<0){break c}h[(f<<1)+d>>1]=e&255;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}o=1;if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;l=i[e+4>>2];while(1){if(l>>>0<=b>>>0){break b}o=0;e=h[b>>1];if((e|0)<0){break c}h[(f<<1)+d>>1]=e;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}o=1;if((e|0)>=(c|0)){break c}break a;case 3:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e>>>0>65535){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e>>>0>65535){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];q=i[b>>2];if(!e&q>>>0>65535|e>>>0>0){break b}h[(f<<1)+d>>1]=q;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];q=i[b>>2];if(!e&q>>>0>65535|e>>>0>0){break b}h[(f<<1)+d>>1]=q;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}q=(f<<1)+d|0;r=m[b>>2];e:{if(r=p(0)){e=~~r>>>0;break e}e=0}h[q>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}q=(f<<1)+d|0;s=n[b>>3];f:{if(s<4294967296&s>=0){e=~~s>>>0;break f}e=0}h[q>>1]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}Zk((e<<1)+d|0,0,c-e<<1)}return o}return 0}Zk((e<<1)+d|0,0,c-e<<1);return 1}function Kg(a,b,c,d){var e=0,f=0,l=0,o=0,r=0,s=p(0),t=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=h[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=g[a+24|0];if(((o|0)>(c|0)?c:o)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;e=i[e+4>>2];while(1){if(e>>>0<=b>>>0){break b}o=0;r=i[b>>2];if((r|0)<0){break c}i[(f<<2)+d>>2]=r;b=b+4|0;f=f+1|0;o=g[a+24|0];if((f|0)<((o|0)>(c|0)?c:o)<<24>>24){continue}break}}if((o|0)>=(c|0)){return 1}Zk((o<<2)+d|0,0,c-o<<2);return 1;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=i[b+4>>2];l=i[b>>2];if(l+ -2147483648>>>0<2147483648){e=e+1|0}if(e>>>0>0){break b}i[(f<<2)+d>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=i[b+4>>2];l=i[b>>2];if(!e&l>>>0>2147483647|e>>>0>0){break b}i[(f<<2)+d>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=(f<<2)+d|0;s=m[b>>2];e:{if(p(q(s))>2]=l;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=(f<<2)+d|0;t=n[b>>3];f:{if(q(t)<2147483648){l=~~t;break f}l=-2147483648}i[e>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}Zk((e<<2)+d|0,0,c-e<<2)}return o}return 0}Zk((e<<2)+d|0,0,c-e<<2);return 1}function zc(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;f=F-80|0;F=f;e=-1;h=-1;a:{if((b|0)==-1){break a}k=((b>>>0)%3|0?-1:2)+b|0;l=i[a+32>>2];p=b+1|0;b=(p>>>0)%3|0?p:b+ -2|0;if((b|0)!=-1){e=i[i[l>>2]+(b<<2)>>2]}if((k|0)==-1){break a}h=i[i[l>>2]+(k<<2)>>2]}k=i[a+36>>2];b=i[k>>2];b:{c:{d:{e:{k=i[k+4>>2]-b>>2;if(!(k>>>0<=e>>>0|k>>>0<=h>>>0)){f:{g:{u=i[b+(e<<2)>>2];w=(u|0)>=(d|0);if(w){break g}h=i[b+(h<<2)>>2];if((h|0)>=(d|0)){break g}b=h<<3;B=i[(b|4)+c>>2];e=u<<3;y=i[(e|4)+c>>2];C=i[b+c>>2];z=i[c+e>>2];if(!((C|0)!=(z|0)|(y|0)!=(B|0))){i[a+8>>2]=z;i[a+12>>2]=y;break f}b=i[i[a+4>>2]+(d<<2)>>2];i[f+72>>2]=0;i[f+76>>2]=0;e=f- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}gc(e,b,g[e+24|0],f+56|0);b=i[i[a+4>>2]+(u<<2)>>2];i[f+48>>2]=0;i[f+52>>2]=0;i[f+40>>2]=0;i[f+44>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}gc(e,b,g[e+24|0],f+32|0);b=i[i[a+4>>2]+(h<<2)>>2];i[f+24>>2]=0;i[f+28>>2]=0;i[f+16>>2]=0;i[f+20>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}gc(e,b,g[e+24|0],f+8|0);A=i[f+44>>2];e=i[f+16>>2];b=i[f+40>>2];p=i[f+20>>2]-(A+(e>>>0>>0)|0)|0;h=e-b|0;e=hl(h,p,h,p);q=H;n=e;E=i[f+36>>2];e=i[f+8>>2];r=i[f+32>>2];k=r;s=i[f+12>>2]-(E+(e>>>0>>0)|0)|0;k=e-k|0;o=hl(k,s,k,s);l=n+o|0;e=H+q|0;e=l>>>0>>0?e+1|0:e;G=l;m=i[f+52>>2];l=i[f+24>>2];n=i[f+48>>2];o=n;q=i[f+28>>2]-(m+(l>>>0>>0)|0)|0;l=l-o|0;v=hl(l,q,l,q);o=G+v|0;e=H+e|0;t=o;o=o>>>0>>0?e+1|0:e;if(!(t|o)){break g}c=i[f+64>>2];u=c-b|0;I=i[f+68>>2]-((c>>>0>>0)+A|0)|0;b=hl(u,I,h,p);c=H;e=b;b=i[f+56>>2];w=b-r|0;J=i[f+60>>2]-((b>>>0>>0)+E|0)|0;d=hl(w,J,k,s);b=e+d|0;e=H+c|0;e=b>>>0>>0?e+1|0:e;d=b;b=i[f+72>>2];A=b-n|0;K=i[f+76>>2]-((b>>>0>>0)+m|0)|0;c=hl(A,K,l,q);b=d+c|0;e=H+e|0;D=b;G=b;r=b>>>0>>0?e+1|0:e;L=r;e=q;b=e>>31;c=e>>31;e=b+e|0;n=c+l|0;if(n>>>0>>0){e=e+1|0}c=c^n;b=b^e;M=b;n=c;E=b;d=p;b=d>>31;d=d>>31;m=b;b=p+b|0;e=d;v=e+h|0;if(v>>>0>>0){b=b+1|0}d=d^v;b=b^m;N=b;v=b;e=s;b=e>>31;e=e>>31;P=n;Q=d;m=b+s|0;n=e+k|0;if(n>>>0>>0){m=m+1|0}e=e^n;d=e>>>0>>0;b=b^m;d=(b|0)<(N|0)?1:(b|0)<=(N|0)?d:0;e=d?Q:e;c=e>>>0>>0;b=d?v:b;c=(b|0)<(M|0)?1:(b|0)<=(M|0)?c:0;c=G>>>0>jl(-1,2147483647,c?P:e,c?E:b)>>>0;b=H;if((L|0)>(b|0)?1:(L|0)>=(b|0)?c:0){break b}d=1;b=0;c=il(hl(h,p,D,r),H,t,o);e=I-(H+(u>>>0>>0)|0)|0;c=u-c|0;c=hl(c,e,c,e);h=H;n=c;c=il(hl(k,s,D,r),H,t,o);e=J-(H+(w>>>0>>0)|0)|0;c=w-c|0;e=hl(c,e,c,e);c=n+e|0;m=H+h|0;m=c>>>0>>0?m+1|0:m;k=c;c=il(hl(D,r,l,q),H,t,o);e=K-(H+(A>>>0>>0)|0)|0;c=A-c|0;h=hl(c,e,c,e);c=k+h|0;e=H+m|0;h=hl(c,c>>>0>>0?e+1|0:e,t,o);c=H;k=c;if(!c&h>>>0<=1|c>>>0<0){break e}l=h;c=k;while(1){e=b<<1|d>>>31;d=d<<1;b=e;p=!c&l>>>0>7|c>>>0>0;l=(c&3)<<30|l>>>2;c=c>>>2|0;if(p){continue}break}break d}e=a;if(w){if((d|0)<=0){i[a+8>>2]=0;i[a+12>>2]=0;break f}b=(d<<1)+ -2|0}else{b=u<<1}b=(b<<2)+c|0;i[e+8>>2]=i[b>>2];i[a+12>>2]=i[b+4>>2]}O=1;break b}Bk();x()}b=k;d=h;if(d-1|0){break c}}while(1){c=jl(h,k,d,b)+d|0;e=b+H|0;e=c>>>0>>0?e+1|0:e;d=(e&1)<<31|c>>>1;b=e>>>1|0;c=hl(d,b,d,b);e=H;if((k|0)==(e|0)&c>>>0>h>>>0|e>>>0>k>>>0){continue}break}}k=i[a+20>>2];if(k){l=k+ -1|0;p=i[i[a+16>>2]+(l>>>3&536870908)>>2];i[a+20>>2]=l;c=B;e=y;s=c-e|0;q=e>>31;y=(c>>31)-(q+(c>>>0>>0)|0)|0;c=hl(D,r,s,y);h=H;e=hl(e,q,t,o);c=e+c|0;m=H+h|0;m=c>>>0>>0?m+1|0:m;n=c;c=C;h=z;e=h;q=c-e|0;B=e>>31;z=(c>>31)-(B+(c>>>0>>0)|0)|0;c=hl(d,b,q,z);e=c;c=p>>>l&1;C=c?0-e|0:e;l=n+C|0;n=H;e=(c?0-(n+(0>>0)|0)|0:n)+m|0;R=a,S=il(l,l>>>0>>0?e+1|0:e,t,o),i[R+12>>2]=S;e=hl(D,r,q,z);l=H;n=a;a=e;e=hl(h,B,t,o);a=a+e|0;m=H+l|0;m=a>>>0>>0?m+1|0:m;e=a;a=hl(d,b,s,y);d=c?a:0-a|0;b=e+d|0;e=H;a=(c?e:0-((0>>0)+e|0)|0)+m|0;R=n,S=il(b,b>>>0>>0?a+1|0:a,t,o),i[R+8>>2]=S}O=(k|0)!=0}F=f+80|0;return O}function fc(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;f=F-80|0;F=f;h=-1;e=-1;a:{if((b|0)==-1){break a}e=b+1|0;h=(e>>>0)%3|0?e:b+ -2|0;e=b+ -1|0;if((b>>>0)%3|0){break a}e=b+2|0}l=i[a+36>>2];b=i[l>>2];b:{c:{d:{e:{f:{l=i[l+4>>2]-b>>2;m=h<<2;h=i[i[a+32>>2]+28>>2];k=i[m+h>>2];if(l>>>0<=k>>>0){break f}e=i[h+(e<<2)>>2];if(l>>>0<=e>>>0){break f}g:{h:{u=i[b+(k<<2)>>2];w=(u|0)>=(d|0);if(w){break h}h=i[b+(e<<2)>>2];if((h|0)>=(d|0)){break h}b=h<<3;B=i[(b|4)+c>>2];e=u<<3;y=i[(e|4)+c>>2];C=i[b+c>>2];z=i[c+e>>2];if(!((C|0)!=(z|0)|(y|0)!=(B|0))){i[a+8>>2]=z;i[a+12>>2]=y;break g}b=i[i[a+4>>2]+(d<<2)>>2];i[f+72>>2]=0;i[f+76>>2]=0;e=f- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}gc(e,b,g[e+24|0],f+56|0);b=i[i[a+4>>2]+(u<<2)>>2];i[f+48>>2]=0;i[f+52>>2]=0;i[f+40>>2]=0;i[f+44>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}gc(e,b,g[e+24|0],f+32|0);b=i[i[a+4>>2]+(h<<2)>>2];i[f+24>>2]=0;i[f+28>>2]=0;i[f+16>>2]=0;i[f+20>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}gc(e,b,g[e+24|0],f+8|0);A=i[f+44>>2];e=i[f+16>>2];b=i[f+40>>2];q=i[f+20>>2]-(A+(e>>>0>>0)|0)|0;h=e-b|0;e=hl(h,q,h,q);p=H;m=e;E=i[f+36>>2];e=i[f+8>>2];r=i[f+32>>2];l=r;s=i[f+12>>2]-(E+(e>>>0>>0)|0)|0;l=e-l|0;o=hl(l,s,l,s);k=m+o|0;e=H+p|0;e=k>>>0>>0?e+1|0:e;G=k;n=i[f+52>>2];k=i[f+24>>2];m=i[f+48>>2];o=m;p=i[f+28>>2]-(n+(k>>>0>>0)|0)|0;k=k-o|0;v=hl(k,p,k,p);o=G+v|0;e=H+e|0;t=o;o=o>>>0>>0?e+1|0:e;if(!(t|o)){break h}c=i[f+64>>2];u=c-b|0;I=i[f+68>>2]-((c>>>0>>0)+A|0)|0;b=hl(u,I,h,q);c=H;e=b;b=i[f+56>>2];w=b-r|0;J=i[f+60>>2]-((b>>>0>>0)+E|0)|0;d=hl(w,J,l,s);b=e+d|0;e=H+c|0;e=b>>>0>>0?e+1|0:e;d=b;b=i[f+72>>2];A=b-m|0;K=i[f+76>>2]-((b>>>0>>0)+n|0)|0;c=hl(A,K,k,p);b=d+c|0;e=H+e|0;D=b;G=b;r=b>>>0>>0?e+1|0:e;L=r;e=p;b=e>>31;c=e>>31;e=b+e|0;m=c+k|0;if(m>>>0>>0){e=e+1|0}c=c^m;b=b^e;M=b;m=c;E=b;d=q;b=d>>31;d=d>>31;n=b;b=q+b|0;e=d;v=e+h|0;if(v>>>0>>0){b=b+1|0}d=d^v;b=b^n;N=b;v=b;e=s;b=e>>31;e=e>>31;P=m;Q=d;n=b+s|0;m=e+l|0;if(m>>>0>>0){n=n+1|0}e=e^m;d=e>>>0>>0;b=b^n;d=(b|0)<(N|0)?1:(b|0)<=(N|0)?d:0;e=d?Q:e;c=e>>>0>>0;b=d?v:b;c=(b|0)<(M|0)?1:(b|0)<=(M|0)?c:0;c=G>>>0>jl(-1,2147483647,c?P:e,c?E:b)>>>0;b=H;if((L|0)>(b|0)?1:(L|0)>=(b|0)?c:0){break b}d=1;b=0;c=il(hl(h,q,D,r),H,t,o);e=I-(H+(u>>>0>>0)|0)|0;c=u-c|0;c=hl(c,e,c,e);h=H;m=c;c=il(hl(l,s,D,r),H,t,o);e=J-(H+(w>>>0>>0)|0)|0;c=w-c|0;e=hl(c,e,c,e);c=m+e|0;n=H+h|0;n=c>>>0>>0?n+1|0:n;l=c;c=il(hl(D,r,k,p),H,t,o);e=K-(H+(A>>>0>>0)|0)|0;c=A-c|0;h=hl(c,e,c,e);c=l+h|0;e=H+n|0;h=hl(c,c>>>0>>0?e+1|0:e,t,o);c=H;l=c;if(!c&h>>>0<=1|c>>>0<0){break e}k=h;c=l;while(1){e=b<<1|d>>>31;d=d<<1;b=e;q=!c&k>>>0>7|c>>>0>0;k=(c&3)<<30|k>>>2;c=c>>>2|0;if(q){continue}break}break d}e=a;if(w){if((d|0)<=0){i[a+8>>2]=0;i[a+12>>2]=0;break g}b=(d<<1)+ -2|0}else{b=u<<1}b=(b<<2)+c|0;i[e+8>>2]=i[b>>2];i[a+12>>2]=i[b+4>>2]}O=1;break b}Bk();x()}b=l;d=h;if(d-1|0){break c}}while(1){c=jl(h,l,d,b)+d|0;e=b+H|0;e=c>>>0>>0?e+1|0:e;d=(e&1)<<31|c>>>1;b=e>>>1|0;c=hl(d,b,d,b);e=H;if((l|0)==(e|0)&c>>>0>h>>>0|e>>>0>l>>>0){continue}break}}l=i[a+20>>2];if(l){k=l+ -1|0;q=i[i[a+16>>2]+(k>>>3&536870908)>>2];i[a+20>>2]=k;c=B;e=y;s=c-e|0;p=e>>31;y=(c>>31)-(p+(c>>>0>>0)|0)|0;c=hl(D,r,s,y);h=H;e=hl(e,p,t,o);c=e+c|0;n=H+h|0;n=c>>>0>>0?n+1|0:n;m=c;c=C;h=z;e=h;p=c-e|0;B=e>>31;z=(c>>31)-(B+(c>>>0>>0)|0)|0;c=hl(d,b,p,z);e=c;c=q>>>k&1;C=c?0-e|0:e;k=m+C|0;m=H;e=(c?0-(m+(0>>0)|0)|0:m)+n|0;R=a,S=il(k,k>>>0>>0?e+1|0:e,t,o),i[R+12>>2]=S;e=hl(D,r,p,z);k=H;m=a;a=e;e=hl(h,B,t,o);a=a+e|0;n=H+k|0;n=a>>>0>>0?n+1|0:n;e=a;a=hl(d,b,s,y);d=c?a:0-a|0;b=e+d|0;e=H;a=(c?e:0-((0>>0)+e|0)|0)+n|0;R=m,S=il(b,b>>>0>>0?a+1|0:a,t,o),i[R+8>>2]=S}O=(l|0)!=0}F=f+80|0;return O}function Mg(a,b,c,d){var e=0,f=0,o=0,q=0,r=0,s=p(0),t=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=h[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}e=i[b>>2];if(l[b+4>>2]>0){break b}i[(f<<2)+d>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}e=i[b>>2];if(l[b+4>>2]>0){break b}i[(f<<2)+d>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}r=(f<<2)+d|0;s=m[b>>2];e:{if(s=p(0)){e=~~s>>>0;break e}e=0}i[r>>2]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}r=(f<<2)+d|0;t=n[b>>3];f:{if(t<4294967296&t>=0){e=~~t>>>0;break f}e=0}i[r>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+hl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}Zk((e<<2)+d|0,0,c-e<<2)}return q}return 0}Zk((e<<2)+d|0,0,c-e<<2);return 1}function sf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;d=F-32|0;F=d;a:{if(!tf(1,d+28|0,i[a+32>>2])){break a}if(!tf(1,d+24|0,i[a+32>>2])){break a}r=i[d+28>>2];if(r>>>0>1431655765){break a}f=i[a+32>>2];e=f;h=i[e+8>>2];b=h;g=i[e+16>>2];m=b-g|0;c=i[e+12>>2];n=b>>>0>>0;b=i[e+20>>2];q=il(m,c-(n+b|0)|0,3,0);o=H;if((c|0)<(b|0)?1:(c|0)<=(b|0)?h>>>0<=g>>>0:0){break a}e=r;c=hl(e,0,3,0);h=H;u=i[d+24>>2];if(!h&c>>>0>>0|h>>>0<0|(!o&q>>>0>>0|o>>>0<0)){break a}h=j[g+i[f>>2]|0];e=b;o=g+1|0;if(o>>>0<1){e=e+1|0}c=f;i[c+16>>2]=o;i[c+20>>2]=e;b:{if(!h){if(!uf(a,r)){break a}break b}c:{if(u>>>0<=255){if(!r){break b}q=0;n=d+16|0;i[n>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;h=i[f+8>>2];c=i[f+12>>2];b=c;if((b|0)<(e|0)?1:(b|0)<=(e|0)?h>>>0<=o>>>0:0){break c}while(1){g=i[f>>2];s=j[g+o|0];b=e;m=o+1|0;if(m>>>0<1){b=b+1|0}p=f;i[f+16>>2]=m;i[f+20>>2]=b;i[d+8>>2]=s;if((c|0)<(b|0)?1:(c|0)<=(b|0)?h>>>0<=m>>>0:0){break c}s=j[g+m|0];b=e;m=o+2|0;if(m>>>0<2){b=b+1|0}i[f+16>>2]=m;i[p+20>>2]=b;i[d+12>>2]=s;if((c|0)<(b|0)?1:(c|0)<=(b|0)?h>>>0<=m>>>0:0){break c}b=j[g+m|0];c=o+3|0;if(c>>>0<3){e=e+1|0}i[f+16>>2]=c;i[f+20>>2]=e;i[d+16>>2]=b;vf(i[a+44>>2]+96|0,d+8|0);q=q+1|0;if((r|0)==(q|0)){break b}f=i[a+32>>2];b=f;o=i[b+16>>2];e=i[b+20>>2];i[n>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;h=i[b+8>>2];c=i[b+12>>2];b=c;if((b|0)>(e|0)?1:(b|0)>=(e|0)?h>>>0>o>>>0:0){continue}break}break c}if(u>>>0<=65535){if(!r){break b}q=0;t=d+16|0;i[t>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;p=i[f+12>>2];n=p;c=g+3|0;if(c>>>0<3){b=b+1|0}m=i[f+8>>2];h=c;c=b;if((n|0)<(b|0)?1:(n|0)<=(b|0)?m>>>0>>0:0){break c}while(1){n=i[f>>2];b=n+o|0;b=j[b|0]|j[b+1|0]<<8;i[f+16>>2]=h;i[f+20>>2]=c;i[d+8>>2]=b;c=p;b=e;g=o+4|0;if(g>>>0<4){b=b+1|0}s=g;g=b;if((c|0)<(b|0)?1:(c|0)<=(b|0)?m>>>0>>0:0){break c}b=h+n|0;b=j[b|0]|j[b+1|0]<<8;i[f+16>>2]=s;i[f+20>>2]=g;i[d+12>>2]=b;b=e;e=o+6|0;if(e>>>0<6){b=b+1|0}c=e;e=b;if((p|0)<(b|0)?1:(p|0)<=(b|0)?m>>>0>>0:0){break c}b=n+s|0;b=j[b|0]|j[b+1|0]<<8;i[f+16>>2]=c;i[f+20>>2]=e;i[d+16>>2]=b;vf(i[a+44>>2]+96|0,d+8|0);q=q+1|0;if((r|0)==(q|0)){break b}f=i[a+32>>2];b=f;o=i[b+16>>2];e=i[b+20>>2];i[t>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;g=i[b+12>>2];p=g;m=i[b+8>>2];n=m;b=e;c=o+2|0;if(c>>>0<2){b=b+1|0}h=c;c=b;if((g|0)>(b|0)?1:(g|0)>=(b|0)?n>>>0>=h>>>0:0){continue}break}break c}d:{if(l[i[a+44>>2]+80>>2]>2097151){break d}c=k[a+36>>1];if((c<<24|c<<8&16711680)>>>16>>>0<514){break d}if(!r){break b}e=d+16|0;i[e>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;if(!tf(1,d+4|0,f)){break c}while(1){i[d+8>>2]=i[d+4>>2];if(!tf(1,d+4|0,i[a+32>>2])){break c}i[d+12>>2]=i[d+4>>2];if(!tf(1,d+4|0,i[a+32>>2])){break c}i[d+16>>2]=i[d+4>>2];vf(i[a+44>>2]+96|0,d+8|0);p=p+1|0;if((r|0)==(p|0)){break b}b=i[a+32>>2];i[e>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;if(tf(1,d+4|0,b)){continue}break}break c}if(!r){break b}q=0;t=d+16|0;i[t>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;p=i[f+12>>2];n=p;c=g+5|0;if(c>>>0<5){b=b+1|0}m=i[f+8>>2];h=c;c=b;if((n|0)<(b|0)?1:(n|0)<=(b|0)?m>>>0>>0:0){break c}while(1){n=i[f>>2];b=n+o|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[f+16>>2]=h;i[f+20>>2]=c;i[d+8>>2]=b;c=p;b=e;g=o+8|0;if(g>>>0<8){b=b+1|0}s=g;g=b;if((c|0)<(b|0)?1:(c|0)<=(b|0)?m>>>0>>0:0){break c}b=h+n|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[f+16>>2]=s;i[f+20>>2]=g;i[d+12>>2]=b;b=o+12|0;if(b>>>0<12){e=e+1|0}c=b;b=e;if((p|0)<(b|0)?1:(p|0)<=(b|0)?m>>>0>>0:0){break c}e=n+s|0;e=j[e|0]|j[e+1|0]<<8|(j[e+2|0]<<16|j[e+3|0]<<24);i[f+16>>2]=c;i[f+20>>2]=b;i[d+16>>2]=e;vf(i[a+44>>2]+96|0,d+8|0);q=q+1|0;if((r|0)==(q|0)){break b}f=i[a+32>>2];b=f;o=i[b+16>>2];e=i[b+20>>2];i[t>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;g=i[b+12>>2];p=g;m=i[b+8>>2];n=m;b=e;c=o+4|0;if(c>>>0<4){b=b+1|0}h=c;c=b;if((g|0)>(b|0)?1:(g|0)>=(b|0)?n>>>0>=h>>>0:0){continue}break}}p=0;break a}i[i[a+4>>2]+80>>2]=u;p=1}F=d+32|0;return p|0}function De(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;h=F+ -64|0;F=h;i[a+132>>2]=0;if(i[a+148>>2]){b=i[a+144>>2];if(b){while(1){c=i[b>>2];Wk(b);b=c;if(b){continue}break}}i[a+144>>2]=0;c=i[a+140>>2];if(c){b=0;while(1){i[i[a+136>>2]+(b<<2)>>2]=0;b=b+1|0;if((c|0)!=(b|0)){continue}break}}i[a+148>>2]=0}a:{b:{c:{if(!oe(1,h+60|0,i[i[a+4>>2]+32>>2])){break c}i[a+156>>2]=i[h+60>>2];if(!oe(1,h+56|0,i[i[a+4>>2]+32>>2])){break c}f=i[h+56>>2];if(f>>>0>1431655765|l[a+156>>2]>o(f,3)>>>0){break c}b=i[i[a+4>>2]+32>>2];m=i[b+16>>2];e=i[b+12>>2];c=i[b+20>>2];if((e|0)<(c|0)?1:(e|0)<=(c|0)?l[b+8>>2]<=m>>>0:0){break c}n=j[m+i[b>>2]|0];m=m+1|0;if(m>>>0<1){c=c+1|0}i[b+16>>2]=m;i[b+20>>2]=c;if(!oe(1,h+52|0,b)){break c}p=i[h+52>>2];if(f>>>0

>>0|f>>>0>p+((p>>>0)/3|0)>>>0){break c}if(!oe(1,h+48|0,i[i[a+4>>2]+32>>2])){break c}r=i[h+48>>2];if(r>>>0>p>>>0){break c}i[a+28>>2]=i[a+24>>2];c=lk(88);Mi(c);b=i[a+8>>2];i[a+8>>2]=c;m=a+8|0;if(b){pe(m,b);if(!i[m>>2]){break c}}b=i[a+160>>2];i[a+164>>2]=b;d:{if(i[a+168>>2]-b>>2>>>0>=f>>>0){break d}if(f>>>0>=1073741824){break a}c=f<<2;d=lk(c);i[a+164>>2]=d;i[a+160>>2]=d;i[a+168>>2]=c+d;if(!b){break d}Wk(b)}b=i[a+172>>2];i[a+176>>2]=b;e:{if(i[a+180>>2]-b>>2>>>0>=f>>>0){break e}if(f>>>0>=1073741824){break b}c=f<<2;d=lk(c);i[a+176>>2]=d;i[a+172>>2]=d;i[a+180>>2]=c+d;if(!b){break e}Wk(b)}i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+40>>2]=i[a+36>>2];i[a- -64>>2]=0;i[a+52>>2]=i[a+48>>2];i[a+76>>2]=i[a+72>>2];q=a+216|0;d=i[a+216>>2];e=d;c=i[a+220>>2];if((d|0)!=(c|0)){while(1){b=i[c+ -12>>2];if(b){i[c+ -8>>2]=b;Wk(b)}b=i[c+ -28>>2];if(b){i[c+ -24>>2]=b;Wk(b)}b=c+ -144|0;e=i[c+ -40>>2];if(e){i[c+ -36>>2]=e;Wk(e)}qe(c+ -140|0);c=b;if((d|0)!=(b|0)){continue}break}e=i[q>>2]}i[a+220>>2]=d;b=(d-e|0)/144|0;f:{if(b>>>0>>0){re(q,n-b|0);break f}if(b>>>0<=n>>>0){break f}c=o(n,144)+e|0;if((c|0)!=(d|0)){while(1){b=i[d+ -12>>2];if(b){i[d+ -8>>2]=b;Wk(b)}b=i[d+ -28>>2];if(b){i[d+ -24>>2]=b;Wk(b)}b=d+ -144|0;e=i[d+ -40>>2];if(e){i[d+ -36>>2]=e;Wk(e)}qe(d+ -140|0);d=b;if((b|0)!=(c|0)){continue}break}}i[a+220>>2]=c}d=0;if(!Wi(i[a+8>>2],f,r+i[a+156>>2]|0)){break c}b=i[a+156>>2];g[h+8|0]=1;ie(a+120|0,b+r|0,h+8|0);if((se(a,i[i[a+4>>2]+32>>2])|0)==-1){break c}i[a+376>>2]=a;f=a+232|0;b=i[(I[i[i[a>>2]+32>>2]](a)|0)+32>>2];s=i[b>>2]+i[b+16>>2]|0;e=i[(I[i[i[a>>2]+32>>2]](a)|0)+32>>2];b=i[e+8>>2];c=i[e+16>>2];Rf(f,s,b-c|0,k[i[(I[i[i[a>>2]+32>>2]](a)|0)+32>>2]+38>>1]);t=a,u=I[i[i[a>>2]+36>>2]](a)|0,i[t+380>>2]=u;i[a+372>>2]=n;i[a+384>>2]=r+i[a+156>>2];b=Pf(h+8|0);g:{if(!Ee(f,b)){break g}p=Fe(a,p);if((p|0)==-1){break g}e=i[i[a+4>>2]+32>>2];c=i[b+16>>2];n=c+i[b>>2]|0;b=i[b+8>>2];Rf(e,n,b-c|0,k[e+38>>1]);h:{if(i[a+220>>2]==i[a+216>>2]){break h}b=i[m>>2];if(i[b+4>>2]==i[b>>2]){break h}b=0;while(1){if(ve(a,b)){b=b+3|0;c=i[m>>2];if(b>>>0>2]-i[c>>2]>>2>>>0){continue}break h}break}break g}if(j[a+308|0]){Uf(a+272|0)}b=i[a+216>>2];if((b|0)!=i[a+220>>2]){e=0;while(1){d=o(e,144);ej((d+b|0)+4|0,i[m>>2]);b=i[q>>2];c=b+d|0;f=i[c+132>>2];n=i[c+136>>2];if((f|0)!=(n|0)){gj(c+4|0,i[f>>2]);b=f+4|0;if((n|0)!=(b|0)){while(1){gj((d+i[q>>2]|0)+4|0,i[b>>2]);b=b+4|0;if((n|0)!=(b|0)){continue}break}}b=i[q>>2]}fj((b+d|0)+4|0);e=e+1|0;b=i[a+216>>2];if(e>>>0<(i[a+220>>2]-b|0)/144>>>0){continue}break}}b=i[a+8>>2];we(a+184|0,i[b+28>>2]-i[b+24>>2]>>2);c=i[a+216>>2];if((c|0)!=i[a+220>>2]){b=0;while(1){d=o(b,144)+c|0;c=i[d+60>>2]-i[d+56>>2]>>2;e=d+104|0;d=i[a+8>>2];d=i[d+28>>2]-i[d+24>>2]>>2;we(e,(c|0)<(d|0)?d:c);b=b+1|0;c=i[a+216>>2];if(b>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}d=xe(a,p)}}F=h- -64|0;return d|0}va(8944);x()}va(8944);x()}function Ye(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;a:{b:{c:{d:{e:{f:{g:{if(i[a+92>>2]==i[a+88>>2]){break g}d=i[a+52>>2];h:{if((d|0)!=i[a+56>>2]){i[d>>2]=b;i[a+52>>2]=d+4;break h}h=i[a+48>>2];g=d-h|0;f=g>>2;c=f+1|0;if(c>>>0>=1073741824){break a}e=g>>1;c=f>>>0<536870911?e>>>0>>0?c:e:1073741823;d=0;i:{if(!c){break i}if(c>>>0>=1073741824){break b}d=lk(c<<2)}e=d+(f<<2)|0;i[e>>2]=b;c=d+(c<<2)|0;e=e+4|0;if((g|0)>=1){Yk(d,h,g)}i[a+56>>2]=c;i[a+52>>2]=e;i[a+48>>2]=d;if(!h){break h}Wk(h)}i[a+84>>2]=0;e=-1;d=-1;j:{if((b|0)==-1){break j}f=i[a+4>>2];c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){e=i[i[f>>2]+(c<<2)>>2]}c=((b>>>0)%3|0?-1:2)+b|0;if((c|0)==-1){break j}d=i[i[f>>2]+(c<<2)>>2]}c=i[a+36>>2];h=c+(e>>>3&536870908)|0;g=i[h>>2];f=1<>2]=f|g;f=a+8|0;if((b|0)!=-1){c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0}else{c=-1}Ze(f,e,c);c=i[a+36>>2]}f=(d>>>3&536870908)+c|0;c=i[f>>2];e=1<>2]=c|e;c=a+8|0;e=-1;k:{if((b|0)==-1){break k}e=b+ -1|0;if((b>>>0)%3|0){break k}e=b+2|0}Ze(c,d,e)}e=-1;e=(b|0)!=-1?i[i[i[a+4>>2]>>2]+(b<<2)>>2]:e;f=i[a+36>>2]+(e>>>3&536870908)|0;c=i[f>>2];d=1<>2]=c|d;Ze(a+8|0,e,b)}c=i[a+84>>2];if((c|0)>2){break g}q=a+8|0;while(1){b=o(c,12)+a|0;e=b+52|0;d=i[e>>2];if((d|0)==i[b+48>>2]){c=c+1|0;if((c|0)!=3){continue}break g}d=d+ -4|0;b=i[d>>2];i[e>>2]=d;i[a+84>>2]=c;if((b|0)==-1){break g}e=i[a+24>>2];d=(b>>>0)/3|0;l:{if(i[e+(d>>>3&268435452)>>2]>>>d&1){break l}m:{while(1){g=(b>>>0)/3|0;d=(g>>>3&268435452)+e|0;i[d>>2]=i[d>>2]|1<>2]>>2]+(b<<2)>>2]:e;f=i[a+36>>2]+(e>>>3&536870908)|0;c=i[f>>2];d=1<>2]=c|d;Ze(q,e,b)}if((b|0)==-1){break m}h=i[a+4>>2];d=-1;e=-1;c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){e=i[i[h+12>>2]+(c<<2)>>2]}b=(b-o(g,3)|0?-1:2)+b|0;if((b|0)!=-1){d=i[i[h+12>>2]+(b<<2)>>2]}g=(d|0)==-1;f=(d>>>0)/3|0;c=(e>>>0)/3|0;n:{o:{p:{q:{b=(e|0)==-1;if(!b){b=b?-1:c;b=i[i[a+24>>2]+(b>>>3&536870908)>>2]&1<>2]+(b>>>3&536870908)>>2]>>>b&1){break r}b=0;c=i[i[h>>2]+(d<<2)>>2];if(!(i[i[a+36>>2]+(c>>>3&536870908)>>2]>>>c&1)){b=i[a+88>>2]+(c<<2)|0;c=i[b>>2];i[b>>2]=c+1;b=(c|0)<1?2:1}if(!(!p|(b|0)>i[a+84>>2])){b=d;e=i[a+24>>2];continue}c=o(b,12)+a|0;k=c+52|0;f=i[k>>2];m=c+56|0;s:{if((f|0)!=i[m>>2]){i[f>>2]=d;i[k>>2]=f+4;break s}h=c+48|0;n=i[h>>2];j=f-n|0;l=j>>2;g=l+1|0;if(g>>>0>=1073741824){break f}f=j>>1;f=l>>>0<536870911?f>>>0>>0?g:f:1073741823;c=0;t:{if(!f){break t}if(f>>>0>=1073741824){break e}c=lk(f<<2)}g=c+(l<<2)|0;i[g>>2]=d;f=c+(f<<2)|0;d=g+4|0;if((j|0)>=1){Yk(c,n,j)}i[h>>2]=c;i[k>>2]=d;i[m>>2]=f;if(!n){break s}Wk(n)}if(i[a+84>>2]<=(b|0)){break r}i[a+84>>2]=b}if(p){break m}b=-1;if((e|0)==-1){break n}}b=i[i[i[a+4>>2]>>2]+(e<<2)>>2]}d=0;if(!(i[i[a+36>>2]+(b>>>3&536870908)>>2]>>>b&1)){b=i[a+88>>2]+(b<<2)|0;d=i[b>>2];i[b>>2]=d+1;d=(d|0)<1?2:1}if((d|0)<=i[a+84>>2]){b=e;e=i[a+24>>2];continue}break}b=o(d,12)+a|0;l=b+52|0;c=i[l>>2];h=b+56|0;u:{if((c|0)!=i[h>>2]){i[c>>2]=e;i[l>>2]=c+4;break u}g=b+48|0;j=i[g>>2];k=c-j|0;m=k>>2;f=m+1|0;if(f>>>0>=1073741824){break d}c=k>>1;c=m>>>0<536870911?c>>>0>>0?f:c:1073741823;b=0;v:{if(!c){break v}if(c>>>0>=1073741824){break c}b=lk(c<<2)}f=b+(m<<2)|0;i[f>>2]=e;c=b+(c<<2)|0;e=f+4|0;if((k|0)>=1){Yk(b,j,k)}i[g>>2]=b;i[l>>2]=e;i[h>>2]=c;if(!j){break u}Wk(j)}c=i[a+84>>2];if((c|0)<=(d|0)){break l}i[a+84>>2]=d;c=d;break l}c=i[a+84>>2]}if((c|0)<3){continue}break}}return 1}Ak();x()}va(8944);x()}Ak();x()}va(8944);x()}va(8944);x()}Ak();x()}function fe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;h=F-80|0;F=h;a:{b:{t=i[a+4>>2];c=i[t+32>>2];u=i[c+8>>2];m=i[c+16>>2];r=i[c+12>>2];e=r;f=i[c+20>>2];c:{if((e|0)<(f|0)?1:(e|0)<=(f|0)?u>>>0<=m>>>0:0){break c}v=i[c>>2];n=j[v+m|0];e=f;p=m+1|0;if(p>>>0<1){e=e+1|0}l=c;i[c+16>>2]=p;i[c+20>>2]=e;if((r|0)<(e|0)?1:(r|0)<=(e|0)?u>>>0<=p>>>0:0){break c}p=j[p+v|0];e=f;s=m+2|0;if(s>>>0<2){e=e+1|0}i[c+16>>2]=s;i[l+20>>2]=e;l=n<<24>>24;d:{if((l|0)>=0){q=i[a+216>>2];if((i[a+220>>2]-q|0)/144>>>0<=n>>>0){break c}q=q+o(n,144)|0;if(i[q>>2]<=-1){break d}break c}if(i[a+212>>2]>-1){break c}q=a+212|0}i[q>>2]=b;e:{f:{q=k[t+36>>1];g:{if((q<<24|q<<8&16711680)>>>16>>>0>=258){if((r|0)<(e|0)?1:(r|0)<=(e|0)?u>>>0<=s>>>0:0){break c}e=j[s+v|0];m=m+3|0;if(m>>>0<3){f=f+1|0}i[c+16>>2]=m;i[c+20>>2]=f;if(e>>>0>1){break c}if(!p){break g}if((e|0)==1){break c}break f}if(p){break f}e=0}if((l|0)<=-1){c=a+184|0}else{c=i[a+216>>2]+o(n,144)|0;g[c+100|0]=0;c=c+104|0}h:{i:{switch(e|0){case 0:ge(h+16|0,a,c);break h;case 1:break i;default:break c}}he(h+16|0,a,c)}c=i[h+16>>2];if(!c){break c}break e}if((l|0)<0){break c}e=i[t+44>>2];f=i[a+216>>2];c=lk(80);i[c+12>>2]=0;i[c+16>>2]=0;i[c>>2]=9812;i[c+4>>2]=0;i[c+76>>2]=0;i[c+68>>2]=e;i[c+64>>2]=0;i[c+56>>2]=0;i[c+60>>2]=0;i[c+8>>2]=8680;l=c+20|0;d=l;i[d>>2]=0;i[d+4>>2]=0;r=c+28|0;d=r;i[d>>2]=0;i[d+4>>2]=0;i[c+36>>2]=0;i[c+40>>2]=0;m=c+44|0;d=m;i[d>>2]=0;i[d+4>>2]=0;i[c+52>>2]=0;d=f+o(n,144)|0;n=d+104|0;i[c+72>>2]=n;t=h+52|0;f=t;i[f>>2]=0;i[f+4>>2]=0;u=h+44|0;f=u;i[f>>2]=0;i[f+4>>2]=0;v=h+36|0;f=v;i[f>>2]=0;i[f+4>>2]=0;f=h+28|0;i[f>>2]=0;i[f+4>>2]=0;i[h+68>>2]=0;i[h+72>>2]=0;i[h+60>>2]=0;i[h+64>>2]=0;i[h+20>>2]=0;i[h+24>>2]=0;i[h+16>>2]=8680;p=d+4|0;i[h+20>>2]=p;d=i[d+68>>2];s=i[d>>2];d=i[d+4>>2];g[h+79|0]=0;ie(h+40|0,(d-s>>2>>>0)/3|0,h+79|0);d=i[h+20>>2];s=i[d+56>>2];d=i[d+52>>2];g[h+79|0]=0;ie(t,s-d>>2,h+79|0);i[v>>2]=c;i[h+32>>2]=e;i[f>>2]=n;i[h+24>>2]=p;i[r>>2]=c;e=i[f+4>>2];i[l>>2]=i[f>>2];i[l+4>>2]=e;f=i[h+24>>2];i[c+12>>2]=i[h+20>>2];i[c+16>>2]=f;f=c;d=i[u>>2];if(d){e=c+32|0;j:{if(d>>>0<=i[c+40>>2]<<5>>>0){l=d+ -1>>>5|0;d=i[e>>2];break j}e=i[e>>2];if(e){Wk(e);i[c+40>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;d=i[h+44>>2]}if((d|0)<=-1){break b}l=d+ -1>>>5|0;e=l+1|0;d=lk(e<<2);i[c+40>>2]=e;i[c+36>>2]=0;i[c+32>>2]=d}_k(d,i[h+40>>2],(l<<2)+4|0);d=i[h+44>>2]}else{d=0}i[f+36>>2]=d;f=c;d=i[h+56>>2];if(d){k:{if(d>>>0<=i[c+52>>2]<<5>>>0){e=d+ -1>>>5|0;d=i[m>>2];break k}e=i[m>>2];if(e){Wk(e);i[c+52>>2]=0;i[c+44>>2]=0;i[c+48>>2]=0;d=i[h+56>>2]}if((d|0)<=-1){break a}e=d+ -1>>>5|0;l=e+1|0;d=lk(l<<2);i[c+52>>2]=l;i[c+48>>2]=0;i[c+44>>2]=d}_k(d,i[h+52>>2],(e<<2)+4|0);d=i[h+56>>2]}else{d=0}i[f+48>>2]=d;Ga(c+56|0,i[h+64>>2],i[h+68>>2]);i[h+16>>2]=8680;f=i[h+64>>2];if(f){i[h+68>>2]=f;Wk(f)}i[h+16>>2]=8932;f=i[h+52>>2];if(f){Wk(f)}f=i[h+40>>2];if(!f){break e}Wk(f)}f=lk(64);i[h+8>>2]=c;hb(f,h+8|0);c=i[h+8>>2];i[h+8>>2]=0;if(c){I[i[i[c>>2]+4>>2]](c)}if((b|0)>=0){a=i[a+4>>2];d=a+8|0;c=i[a+12>>2];n=i[a+8>>2];e=c-n>>2;l:{if((e|0)>(b|0)){break l}l=b+1|0;if(e>>>0<=b>>>0){je(d,l-e|0);break l}if(l>>>0>=e>>>0){break l}l=n+(l<<2)|0;if((l|0)!=(c|0)){while(1){c=c+ -4|0;e=i[c>>2];i[c>>2]=0;if(e){I[i[i[e>>2]+4>>2]](e)}if((c|0)!=(l|0)){continue}break}}i[a+12>>2]=l}b=i[d>>2]+(b<<2)|0;a=i[b>>2];i[b>>2]=f;d=1;if(!a){break c}I[i[i[a>>2]+4>>2]](a);break c}I[i[i[f>>2]+4>>2]](f);d=0}F=h+80|0;return d|0}Ak();x()}Ak();x()}function Dc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0;f=F-96|0;F=f;e=i[a+16>>2];g[f+92|0]=1;i[f+88>>2]=b;i[f+84>>2]=b;i[f+80>>2]=e;d=-1;d=(b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:d;h=i[a+20>>2];e=i[h>>2];a:{b:{if(i[h+4>>2]-e>>2>>>0>d>>>0){e=i[i[a+8>>2]+(i[e+(d<<2)>>2]<<2)>>2];d=i[a+4>>2];if(!j[d+84|0]){e=i[i[d+68>>2]+(e<<2)>>2]}i[f+72>>2]=0;i[f+76>>2]=0;h=f- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;gc(d,e,g[d+24|0],f+56|0);if((b|0)!=-1){d=b+1|0;h=(d>>>0)%3|0?d:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;n=f+48|0;o=f+40|0;while(1){e=h;d=m;c:{if(!i[a+28>>2]){break c}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break c}d=b+2|0}b=-1;b=(e|0)!=-1?i[i[i[a+16>>2]>>2]+(e<<2)>>2]:b;k=i[a+20>>2];e=i[k>>2];if(i[k+4>>2]-e>>2>>>0<=b>>>0){break b}e=i[i[a+8>>2]+(i[e+(b<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}i[n>>2]=0;i[n+4>>2]=0;i[o>>2]=0;i[o+4>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;gc(b,e,g[b+24|0],f+32|0);b=-1;b=(d|0)!=-1?i[i[i[a+16>>2]>>2]+(d<<2)>>2]:b;e=i[a+20>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0<=b>>>0){break a}d=i[i[a+8>>2]+(i[d+(b<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;k=f+16|0;i[k>>2]=0;i[k+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;gc(b,d,g[b+24|0],f+8|0);d=i[f+8>>2];b=i[f+56>>2];s=d-b|0;y=i[f+60>>2];t=i[f+12>>2]-(y+(d>>>0>>0)|0)|0;z=i[f+40>>2];d=i[f+64>>2];D=z-d|0;A=i[f+68>>2];z=i[f+44>>2]-(A+(z>>>0>>0)|0)|0;B=hl(s,t,D,z);C=l-B|0;u=u-(H+(l>>>0>>0)|0)|0;l=i[k>>2];B=l-d|0;k=i[k+4>>2]-((l>>>0>>0)+A|0)|0;l=i[f+32>>2];A=l-b|0;y=i[f+36>>2]-((l>>>0>>0)+y|0)|0;d=hl(B,k,A,y);l=d+C|0;b=H+u|0;b=l>>>0>>0?b+1|0:b;u=b;E=p;w=s;G=t;b=i[f+48>>2];p=i[f+72>>2];d=p;t=b-d|0;s=i[f+76>>2];C=i[f+52>>2]-(s+(b>>>0>>0)|0)|0;w=hl(w,G,t,C);d=E+w|0;b=H+q|0;b=d>>>0>>0?b+1|0:b;q=i[e>>2];w=q-p|0;e=i[e+4>>2]-((q>>>0

>>0)+s|0)|0;q=hl(w,e,A,y);p=d-q|0;q=b-(H+(d>>>0>>0)|0)|0;b=hl(B,k,t,C);d=r-b|0;b=v-(H+(r>>>0>>0)|0)|0;v=hl(w,e,D,z);r=v+d|0;b=H+b|0;b=r>>>0>>0?b+1|0:b;v=b;Ec(f+80|0);b=i[f+88>>2];if((b|0)!=-1){continue}break}}d=v;b=d>>31;d=d>>31;h=b;b=v+b|0;m=d+r|0;if(m>>>0>>0){b=b+1|0}o=d^m;n=b^h;t=-1;e=2147483647;d=q;b=d>>31;d=d>>31;m=b;b=q+b|0;k=d+p|0;if(k>>>0>>0){b=b+1|0}d=d^k;b=b^m;h=b;m=d^-1;b=b^2147483647;d:{if(!i[a+28>>2]){if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break d}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}d=b;h=a;b=u;e=b>>31;o=b>>31;b=o+b|0;k=e+l|0;if(k>>>0>>0){b=b+1|0}e=e^k;m=b^o;n=e+h|0;b=n;h=m^2147483647;a=(h|0)==(d|0)&a>>>0>(e^-1)>>>0|d>>>0>h>>>0;d=a?0:0;b=a?-1:b;a=b;if((b|0)<536870912?1:(b|0)<=536870912?d>>>0<1:0){break d}b=(a|0)/536870912|0;a=b;b=b>>31;l=il(l,u,a,b);p=il(p,q,a,b);r=il(r,v,a,b);break d}e:{if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break e}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}m=b;n=a;d=b;h=u;b=h>>31;h=h>>31;k=b;b=u+b|0;s=h+l|0;if(s>>>0>>0){b=b+1|0}h=h^s;b=b^k;o=b;b=b^2147483647;if((b|0)==(d|0)&n>>>0>(h^-1)>>>0|d>>>0>b>>>0){break e}b=m+o|0;d=a+h|0;if(d>>>0>>0){b=b+1|0}t=d;e=b;if(!b&d>>>0<536870913|b>>>0<0){break d}}a=(e&536870911)<<3|t>>>29;b=e>>>29|0;l=il(l,u,a,b);p=il(p,q,a,b);r=il(r,v,a,b)}i[c+8>>2]=l;i[c+4>>2]=p;i[c>>2]=r;F=f+96|0;return}Bk();x()}Bk();x()}Bk();x()}function oc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0;f=F-96|0;F=f;d=i[a+16>>2];g[f+92|0]=1;i[f+88>>2]=b;i[f+84>>2]=b;i[f+80>>2]=d;h=i[a+20>>2];e=i[h>>2];a:{b:{d=i[i[d+28>>2]+(b<<2)>>2];if(i[h+4>>2]-e>>2>>>0>d>>>0){d=i[i[a+8>>2]+(i[e+(d<<2)>>2]<<2)>>2];e=i[a+4>>2];if(!j[e+84|0]){d=i[i[e+68>>2]+(d<<2)>>2]}i[f+72>>2]=0;i[f+76>>2]=0;h=f- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;gc(e,d,g[e+24|0],f+56|0);if((b|0)!=-1){d=b+1|0;h=(d>>>0)%3|0?d:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;n=f+48|0;o=f+40|0;while(1){e=h;d=m;c:{if(!i[a+28>>2]){break c}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break c}d=b+2|0}k=i[a+20>>2];b=i[k>>2];e=i[i[i[a+16>>2]+28>>2]+(e<<2)>>2];if(i[k+4>>2]-b>>2>>>0<=e>>>0){break b}e=i[i[a+8>>2]+(i[b+(e<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}i[n>>2]=0;i[n+4>>2]=0;i[o>>2]=0;i[o+4>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;gc(b,e,g[b+24|0],f+32|0);e=i[a+20>>2];b=i[e>>2];d=i[i[i[a+16>>2]+28>>2]+(d<<2)>>2];if(i[e+4>>2]-b>>2>>>0<=d>>>0){break a}e=i[i[a+8>>2]+(i[b+(d<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}k=f+24|0;d=k;i[d>>2]=0;i[d+4>>2]=0;r=f+16|0;d=r;i[d>>2]=0;i[d+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;gc(b,e,g[b+24|0],f+8|0);d=i[f+8>>2];b=i[f+56>>2];t=d-b|0;y=i[f+60>>2];e=i[f+12>>2]-(y+(d>>>0>>0)|0)|0;z=i[f+40>>2];d=i[f+64>>2];D=z-d|0;A=i[f+68>>2];z=i[f+44>>2]-(A+(z>>>0>>0)|0)|0;B=hl(t,e,D,z);C=l-B|0;u=u-(H+(l>>>0>>0)|0)|0;l=i[r>>2];B=l-d|0;r=i[r+4>>2]-((l>>>0>>0)+A|0)|0;l=i[f+32>>2];A=l-b|0;y=i[f+36>>2]-((l>>>0>>0)+y|0)|0;d=hl(B,r,A,y);l=d+C|0;b=H+u|0;b=l>>>0>>0?b+1|0:b;u=b;E=p;w=t;G=e;b=i[f+48>>2];p=i[f+72>>2];d=p;e=b-d|0;t=i[f+76>>2];C=i[f+52>>2]-(t+(b>>>0>>0)|0)|0;w=hl(w,G,e,C);d=E+w|0;b=H+q|0;b=d>>>0>>0?b+1|0:b;q=i[k>>2];w=q-p|0;k=i[k+4>>2]-((q>>>0

>>0)+t|0)|0;q=hl(w,k,A,y);p=d-q|0;q=b-(H+(d>>>0>>0)|0)|0;b=hl(B,r,e,C);d=s-b|0;b=v-(H+(s>>>0>>0)|0)|0;v=hl(w,k,D,z);s=v+d|0;b=H+b|0;b=s>>>0>>0?b+1|0:b;v=b;qc(f+80|0);b=i[f+88>>2];if((b|0)!=-1){continue}break}}d=v;b=d>>31;d=d>>31;h=b;b=v+b|0;m=d+s|0;if(m>>>0>>0){b=b+1|0}o=d^m;n=b^h;r=-1;e=2147483647;d=q;b=d>>31;d=d>>31;m=b;b=q+b|0;k=d+p|0;if(k>>>0>>0){b=b+1|0}d=d^k;b=b^m;h=b;m=d^-1;b=b^2147483647;d:{if(!i[a+28>>2]){if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break d}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}d=b;h=a;b=u;e=b>>31;o=b>>31;b=o+b|0;k=e+l|0;if(k>>>0>>0){b=b+1|0}e=e^k;m=b^o;n=e+h|0;b=n;h=m^2147483647;a=(h|0)==(d|0)&a>>>0>(e^-1)>>>0|d>>>0>h>>>0;d=a?0:0;b=a?-1:b;a=b;if((b|0)<536870912?1:(b|0)<=536870912?d>>>0<1:0){break d}b=(a|0)/536870912|0;a=b;b=b>>31;l=il(l,u,a,b);p=il(p,q,a,b);s=il(s,v,a,b);break d}e:{if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break e}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}m=b;n=a;d=b;h=u;b=h>>31;h=h>>31;k=b;b=u+b|0;t=h+l|0;if(t>>>0>>0){b=b+1|0}h=h^t;b=b^k;o=b;b=b^2147483647;if((b|0)==(d|0)&n>>>0>(h^-1)>>>0|d>>>0>b>>>0){break e}b=m+o|0;d=a+h|0;if(d>>>0>>0){b=b+1|0}r=d;e=b;if(!b&d>>>0<536870913|b>>>0<0){break d}}a=(e&536870911)<<3|r>>>29;b=e>>>29|0;l=il(l,u,a,b);p=il(p,q,a,b);s=il(s,v,a,b)}i[c+8>>2]=l;i[c+4>>2]=p;i[c>>2]=s;F=f+96|0;return}Bk();x()}Bk();x()}Bk();x()}function Wk(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;a:{if(!a){break a}d=a+ -8|0;b=i[a+ -4>>2];a=b&-8;f=d+a|0;b:{if(b&1){break b}if(!(b&3)){break a}b=i[d>>2];d=d-b|0;if(d>>>0>>0<=255){e=i[d+8>>2];b=b>>>3|0;c=i[d+12>>2];if((c|0)==(e|0)){j=12628,k=i[3157]&ll(b),i[j>>2]=k;break b}i[e+12>>2]=c;i[c+8>>2]=e;break b}h=i[d+24>>2];b=i[d+12>>2];c:{if((b|0)!=(d|0)){c=i[d+8>>2];i[c+12>>2]=b;i[b+8>>2]=c;break c}d:{e=d+20|0;c=i[e>>2];if(c){break d}e=d+16|0;c=i[e>>2];if(c){break d}b=0;break c}while(1){g=e;b=c;e=b+20|0;c=i[e>>2];if(c){continue}e=b+16|0;c=i[b+16>>2];if(c){continue}break}i[g>>2]=0}if(!h){break b}e=i[d+28>>2];c=(e<<2)+12932|0;e:{if(i[c>>2]==(d|0)){i[c>>2]=b;if(b){break e}j=12632,k=i[3158]&ll(e),i[j>>2]=k;break b}i[h+(i[h+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break b}}i[b+24>>2]=h;c=i[d+16>>2];if(c){i[b+16>>2]=c;i[c+24>>2]=b}c=i[d+20>>2];if(!c){break b}i[b+20>>2]=c;i[c+24>>2]=b;break b}b=i[f+4>>2];if((b&3)!=3){break b}i[3159]=a;i[f+4>>2]=b&-2;i[d+4>>2]=a|1;i[a+d>>2]=a;return}if(f>>>0<=d>>>0){break a}b=i[f+4>>2];if(!(b&1)){break a}f:{if(!(b&2)){if((f|0)==i[3163]){i[3163]=d;a=i[3160]+a|0;i[3160]=a;i[d+4>>2]=a|1;if(i[3162]!=(d|0)){break a}i[3159]=0;i[3162]=0;return}if((f|0)==i[3162]){i[3162]=d;a=i[3159]+a|0;i[3159]=a;i[d+4>>2]=a|1;i[a+d>>2]=a;return}a=(b&-8)+a|0;g:{if(b>>>0<=255){c=i[f+8>>2];b=b>>>3|0;e=i[f+12>>2];if((c|0)==(e|0)){j=12628,k=i[3157]&ll(b),i[j>>2]=k;break g}i[c+12>>2]=e;i[e+8>>2]=c;break g}h=i[f+24>>2];b=i[f+12>>2];h:{if((f|0)!=(b|0)){c=i[f+8>>2];i[c+12>>2]=b;i[b+8>>2]=c;break h}i:{e=f+20|0;c=i[e>>2];if(c){break i}e=f+16|0;c=i[e>>2];if(c){break i}b=0;break h}while(1){g=e;b=c;e=b+20|0;c=i[e>>2];if(c){continue}e=b+16|0;c=i[b+16>>2];if(c){continue}break}i[g>>2]=0}if(!h){break g}e=i[f+28>>2];c=(e<<2)+12932|0;j:{if((f|0)==i[c>>2]){i[c>>2]=b;if(b){break j}j=12632,k=i[3158]&ll(e),i[j>>2]=k;break g}i[h+((f|0)==i[h+16>>2]?16:20)>>2]=b;if(!b){break g}}i[b+24>>2]=h;c=i[f+16>>2];if(c){i[b+16>>2]=c;i[c+24>>2]=b}c=i[f+20>>2];if(!c){break g}i[b+20>>2]=c;i[c+24>>2]=b}i[d+4>>2]=a|1;i[a+d>>2]=a;if(i[3162]!=(d|0)){break f}i[3159]=a;return}i[f+4>>2]=b&-2;i[d+4>>2]=a|1;i[a+d>>2]=a}if(a>>>0<=255){a=a>>>3|0;b=(a<<3)+12668|0;c=i[3157];a=1<>2]}i[b+8>>2]=d;i[a+12>>2]=d;i[d+12>>2]=b;i[d+8>>2]=a;return}e=31;i[d+16>>2]=0;i[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}i[d+28>>2]=e;g=(e<<2)+12932|0;l:{m:{c=i[3158];b=1<>2]=d;i[d+24>>2]=g;break n}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=i[g>>2];while(1){c=b;if((i[b+4>>2]&-8)==(a|0)){break m}b=e>>>29|0;e=e<<1;g=(c+(b&4)|0)+16|0;b=i[g>>2];if(b){continue}break}i[g>>2]=d;i[d+24>>2]=c}i[d+12>>2]=d;i[d+8>>2]=d;break l}a=i[c+8>>2];i[a+12>>2]=d;i[c+8>>2]=d;i[d+24>>2]=0;i[d+12>>2]=c;i[d+8>>2]=a}a=i[3165]+ -1|0;i[3165]=a;if(a){break a}d=13084;while(1){a=i[d>>2];d=a+8|0;if(a){continue}break}i[3165]=-1}}function fj(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;i[a+56>>2]=i[a+52>>2];i[a+44>>2]=i[a+40>>2];a:{b:{c:{e=i[a+64>>2];d=i[e+24>>2];if((d|0)!=i[e+28>>2]){n=a+40|0;o=a+52|0;while(1){e=c;j=i[(l<<2)+d>>2];d:{if((j|0)==-1){break d}c=i[a+56>>2];e:{if((c|0)!=i[a+60>>2]){i[c>>2]=e;i[a+56>>2]=c+4;break e}h=i[o>>2];g=c-h|0;f=g>>2;d=f+1|0;if(d>>>0>=1073741824){break c}b=g>>1;d=f>>>0<536870911?b>>>0>>0?d:b:1073741823;c=0;f:{if(!d){break f}if(d>>>0>=1073741824){break a}c=lk(d<<2)}b=c+(f<<2)|0;i[b>>2]=e;d=c+(d<<2)|0;b=b+4|0;if((g|0)>=1){Yk(c,h,g)}i[a+60>>2]=d;i[a+56>>2]=b;i[a+52>>2]=c;if(!h){break e}Wk(h)}g:{if(!(i[i[a+12>>2]+(l>>>3&536870908)>>2]>>>l&1)){break g}c=j+1|0;c=(c>>>0)%3|0?c:j+ -2|0;if((c|0)==-1|i[i[a>>2]+(c>>>3&536870908)>>2]>>>c&1){break g}b=i[i[i[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)==-1){break g}while(1){c=d+1|0;j=d;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|i[i[a>>2]+(c>>>3&536870908)>>2]>>>c&1){break g}b=i[i[i[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)!=-1){continue}break}}i[i[a+28>>2]+(j<<2)>>2]=e;c=i[a+44>>2];h:{if((c|0)!=i[a+48>>2]){i[c>>2]=j;i[a+44>>2]=c+4;break h}h=i[n>>2];g=c-h|0;f=g>>2;d=f+1|0;if(d>>>0>=1073741824){break b}b=g>>1;d=f>>>0<536870911?b>>>0>>0?d:b:1073741823;c=0;i:{if(!d){break i}if(d>>>0>=1073741824){break a}c=lk(d<<2)}b=c+(f<<2)|0;i[b>>2]=j;d=c+(d<<2)|0;b=b+4|0;if((g|0)>=1){Yk(c,h,g)}i[a+48>>2]=d;i[a+44>>2]=b;i[a+40>>2]=c;if(!h){break h}Wk(h)}c=e+1|0;b=((j>>>0)%3|0?-1:2)+j|0;if((b|0)==-1){break d}b=i[i[i[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1|(d|0)==(j|0)){break d}while(1){b=d+1|0;b=(b>>>0)%3|0?b:d+ -2|0;if(i[i[a>>2]+(b>>>3&536870908)>>2]>>>b&1){e=i[a+56>>2];j:{if((e|0)!=i[a+60>>2]){i[e>>2]=c;i[a+56>>2]=e+4;break j}k=i[o>>2];h=e-k|0;g=h>>2;f=g+1|0;if(f>>>0>=1073741824){break c}b=h>>1;f=g>>>0<536870911?b>>>0>>0?f:b:1073741823;e=0;k:{if(!f){break k}if(f>>>0>=1073741824){break a}e=lk(f<<2)}b=e+(g<<2)|0;i[b>>2]=c;f=e+(f<<2)|0;b=b+4|0;if((h|0)>=1){Yk(e,k,h)}i[a+60>>2]=f;i[a+56>>2]=b;i[a+52>>2]=e;if(!k){break j}Wk(k)}b=c+1|0;e=i[a+44>>2];l:{if((e|0)!=i[a+48>>2]){i[e>>2]=d;i[a+44>>2]=e+4;break l}m=i[n>>2];k=e-m|0;h=k>>2;g=h+1|0;if(g>>>0>=1073741824){break b}f=k>>1;g=h>>>0<536870911?f>>>0>>0?g:f:1073741823;e=0;m:{if(!g){break m}if(g>>>0>=1073741824){break a}e=lk(g<<2)}f=e+(h<<2)|0;i[f>>2]=d;g=e+(g<<2)|0;f=f+4|0;if((k|0)>=1){Yk(e,m,k)}i[a+48>>2]=g;i[a+44>>2]=f;i[a+40>>2]=e;if(!m){break l}Wk(m)}e=c;c=b}i[i[a+28>>2]+(d<<2)>>2]=e;b=((d>>>0)%3|0?-1:2)+d|0;if((b|0)==-1){break d}b=i[i[i[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1){break d}if((d|0)!=(j|0)){continue}break}}e=i[a+64>>2];d=i[e+24>>2];l=l+1|0;if(l>>>0>2]-d>>2>>>0){continue}break}}return}Ak();x()}Ak();x()}va(11024);x()}function of(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(i[i[a+24>>2]+(d>>>3&268435452)>>2]>>>d&1)){c=i[a+48>>2];i[a+52>>2]=c;a:{if((c|0)!=i[a+56>>2]){i[c>>2]=b;i[a+52>>2]=c+4;break a}f=lk(4);i[f>>2]=b;e=f+4|0;i[a+56>>2]=e;i[a+52>>2]=e;i[a+48>>2]=f;if(!c){break a}Wk(c)}e=i[i[a+4>>2]+28>>2];c=b+1|0;f=(c>>>0)%3|0?c:b+ -2|0;c=i[e+(f<<2)>>2];if((c|0)==-1){return 0}h=(b-o(d,3)|0?-1:2)+b|0;d=i[e+(h<<2)>>2];if((d|0)==-1){return 0}b=i[a+36>>2];e=b+(c>>>3&536870908)|0;g=i[e>>2];j=1<>2]=g|j;Ze(a+8|0,c,f);b=i[a+36>>2]}b=(d>>>3&536870908)+b|0;c=i[b>>2];f=1<>2]=c|f;Ze(a+8|0,d,h)}c=i[a+52>>2];if((c|0)==i[a+48>>2]){return 1}l=a+48|0;m=a+8|0;while(1){c=c+ -4|0;b=i[c>>2];d=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}f=i[a+24>>2]+(d>>>3&268435452)|0;e=i[f>>2];d=1<>2]=d|e;f=i[a+4>>2];c=i[i[f+28>>2]+(b<<2)>>2];if((c|0)==-1){return 0}while(1){d=b;d:{b=i[a+36>>2]+(c>>>3&536870908)|0;e=i[b>>2];h=1<>2]+(c<<2)>>2];if((g|0)!=-1){f:{j=g+1|0;g=(j>>>0)%3|0?j:g+ -2|0;if((g|0)==-1|i[i[f>>2]+(g>>>3&536870908)>>2]>>>g&1){break f}f=i[i[i[f+64>>2]+12>>2]+(g<<2)>>2];if((f|0)==-1){break f}i[b>>2]=e|h;Ze(m,c,d);b=f+1|0;if((((b>>>0)%3|0?b:f+ -2|0)|0)==-1){break e}b=-1;f=i[a+4>>2];g:{if((d|0)==-1){break g}c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|i[i[f>>2]+(c>>>3&536870908)>>2]>>>c&1){break g}b=i[i[i[f+64>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;g=1<>2];j=c>>>5|0;e=i[d+(j<<2)>>2];break d}}i[b>>2]=e|h;Ze(m,c,d)}h:{i:{if((d|0)==-1){break i}f=i[a+4>>2];b=-1;e=d+1|0;e=(e>>>0)%3|0?e:d+ -2|0;c=-1;j:{if((e|0)==-1){break j}c=-1;if(i[i[f>>2]+(e>>>3&536870908)>>2]>>>e&1){break j}c=i[i[i[f+64>>2]+12>>2]+(e<<2)>>2]}d=d+((d>>>0)%3|0?-1:2)|0;if(!((d|0)==-1|i[i[f>>2]+(d>>>3&536870908)>>2]>>>d&1)){b=i[i[i[f+64>>2]+12>>2]+(d<<2)>>2]}k=(b|0)==-1;h=k?-1:(b>>>0)/3|0;e=(c>>>0)/3|0;g=(c|0)==-1;if(!g){d=i[a+24>>2];g=g?-1:e;j=g>>>5|0;e=i[d+(j<<2)>>2];g=1<>2];j=h>>>5|0;e=i[d+(j<<2)>>2];if(!(g&e)){break d}}c=i[a+52>>2]+ -4|0;i[a+52>>2]=c;break b}if(k){b=c;break d}if(i[(h>>>3&536870908)+d>>2]>>>h&1){b=c;break d}d=i[a+52>>2];i[d+ -4>>2]=b;if((d|0)!=i[a+56>>2]){i[d>>2]=c;c=d+4|0;break c}k:{b=d;d=i[l>>2];f=b-d|0;h=f>>2;e=h+1|0;if(e>>>0<1073741824){g=f>>1;e=h>>>0<536870911?g>>>0>>0?e:g:1073741823;b=0;l:{if(!e){break l}if(e>>>0>=1073741824){break k}b=lk(e<<2)}h=b+(h<<2)|0;i[h>>2]=c;e=b+(e<<2)|0;c=h+4|0;if((f|0)>=1){Yk(b,d,f)}i[a+56>>2]=e;i[a+52>>2]=c;i[a+48>>2]=b;if(!d){break b}Wk(d);c=i[a+52>>2];break b}Ak();x()}va(8944);x()}i[(j<<2)+d>>2]=e|g;c=i[i[f+28>>2]+(b<<2)>>2];if((c|0)!=-1){continue}break}return 0}i[a+52>>2]=c}if(i[l>>2]!=(c|0)){continue}break}}return 1}function sc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){La(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}s=i[a+52>>2];r=i[a+48>>2];d=0;f=(e&1073741823)!=(e|0)?-1:e<<2;p=Zk(lk(f),0,f);f=i[a+8>>2];b:{if((f|0)<1){break b}while(1){f=d<<2;g=i[f+p>>2];k=i[a+16>>2];c:{if((g|0)>(k|0)){h=i[a+32>>2];i[f+h>>2]=k;break c}h=i[a+32>>2];f=f+h|0;k=i[a+12>>2];if((g|0)<(k|0)){i[f>>2]=k;break c}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}if((f|0)<1){break b}g=0;while(1){f=g<<2;d=f+c|0;f=i[b+f>>2]+i[f+h>>2]|0;i[d>>2]=f;d:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break d}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}d=i[a+56>>2];g=i[d+4>>2];q=i[d>>2];d=g-q|0;if((d|0)>=5){g=q-g|0;d=((g|0)>(d|0)?g:d)>>>2|0;t=d>>>0>2?d:2;u=d>>>0>1?d:1;k=1;while(1){e:{f:{if((k|0)!=(u|0)){n=o(e,k);d=i[(k<<2)+q>>2];if((d|0)==-1){break f}d=i[i[r+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}g=-1;j=i[s>>2];h=i[r>>2];l=i[j+(i[h+(d<<2)>>2]<<2)>>2];m=d+1|0;m=(m>>>0)%3|0?m:d+ -2|0;if((m|0)!=-1){m=i[h+(m<<2)>>2]}else{m=-1}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)!=-1){g=i[h+(d<<2)>>2]}if((l|0)>=(k|0)){break f}d=i[(m<<2)+j>>2];if((d|0)>=(k|0)){break f}g=i[j+(g<<2)>>2];if((g|0)>=(k|0)){break f}if((e|0)>=1){g=o(e,g);h=o(d,e);j=o(e,l);d=0;while(1){i[(d<<2)+p>>2]=(i[(d+g<<2)+c>>2]+i[(d+h<<2)+c>>2]|0)-i[(d+j<<2)+c>>2];d=d+1|0;if((e|0)!=(d|0)){continue}break}}if((f|0)<1){break e}d=0;while(1){f=d<<2;g=i[f+p>>2];j=i[a+16>>2];g:{if((g|0)>(j|0)){h=i[a+32>>2];i[f+h>>2]=j;break g}h=i[a+32>>2];f=f+h|0;j=i[a+12>>2];if((g|0)<(j|0)){i[f>>2]=j;break g}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=n<<2;n=d+c|0;j=b+d|0;while(1){f=g<<2;d=f+n|0;f=i[f+j>>2]+i[f+h>>2]|0;i[d>>2]=f;h:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break h}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}break e}Bk();x()}if((f|0)<1){break e}j=(o(k+ -1|0,e)<<2)+c|0;d=0;while(1){f=d<<2;g=i[f+j>>2];l=i[a+16>>2];i:{if((g|0)>(l|0)){h=i[a+32>>2];i[f+h>>2]=l;break i}h=i[a+32>>2];f=f+h|0;l=i[a+12>>2];if((g|0)<(l|0)){i[f>>2]=l;break i}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=n<<2;n=d+c|0;j=b+d|0;while(1){f=g<<2;d=f+n|0;f=i[f+j>>2]+i[f+h>>2]|0;i[d>>2]=f;j:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break j}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}k=k+1|0;if((t|0)!=(k|0)){continue}break}}Wk(p);return 1}function Pb(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){La(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}r=i[a+52>>2];p=i[a+48>>2];d=0;f=(e&1073741823)!=(e|0)?-1:e<<2;n=Zk(lk(f),0,f);f=i[a+8>>2];b:{if((f|0)<1){break b}while(1){f=d<<2;g=i[f+n>>2];j=i[a+16>>2];c:{if((g|0)>(j|0)){h=i[a+32>>2];i[f+h>>2]=j;break c}h=i[a+32>>2];f=f+h|0;j=i[a+12>>2];if((g|0)<(j|0)){i[f>>2]=j;break c}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}if((f|0)<1){break b}g=0;while(1){f=g<<2;d=f+c|0;f=i[b+f>>2]+i[f+h>>2]|0;i[d>>2]=f;d:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break d}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}d=i[a+56>>2];g=i[d+4>>2];q=i[d>>2];d=g-q|0;if((d|0)>=5){g=q-g|0;d=((g|0)>(d|0)?g:d)>>>2|0;s=d>>>0>2?d:2;t=d>>>0>1?d:1;j=1;while(1){e:{f:{if((j|0)!=(t|0)){m=o(e,j);d=i[(j<<2)+q>>2];if((d|0)==-1|i[i[p>>2]+(d>>>3&536870908)>>2]>>>d&1){break f}d=i[i[i[p+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}h=i[r>>2];g=i[p+28>>2];k=i[h+(i[g+(d<<2)>>2]<<2)>>2];if((k|0)>=(j|0)){break f}l=d+1|0;l=i[h+(i[g+(((l>>>0)%3|0?l:d+ -2|0)<<2)>>2]<<2)>>2];if((l|0)>=(j|0)){break f}d=i[h+(i[g+(d+((d>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((d|0)>=(j|0)){break f}if((e|0)>=1){g=o(d,e);h=o(e,l);k=o(e,k);d=0;while(1){i[(d<<2)+n>>2]=(i[(d+g<<2)+c>>2]+i[(d+h<<2)+c>>2]|0)-i[(d+k<<2)+c>>2];d=d+1|0;if((e|0)!=(d|0)){continue}break}}if((f|0)<1){break e}d=0;while(1){f=d<<2;g=i[f+n>>2];k=i[a+16>>2];g:{if((g|0)>(k|0)){h=i[a+32>>2];i[f+h>>2]=k;break g}h=i[a+32>>2];f=f+h|0;k=i[a+12>>2];if((g|0)<(k|0)){i[f>>2]=k;break g}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=m<<2;m=d+c|0;k=b+d|0;while(1){f=g<<2;d=f+m|0;f=i[f+k>>2]+i[f+h>>2]|0;i[d>>2]=f;h:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break h}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}break e}Bk();x()}if((f|0)<1){break e}k=(o(j+ -1|0,e)<<2)+c|0;d=0;while(1){f=d<<2;g=i[f+k>>2];l=i[a+16>>2];i:{if((g|0)>(l|0)){h=i[a+32>>2];i[f+h>>2]=l;break i}h=i[a+32>>2];f=f+h|0;l=i[a+12>>2];if((g|0)<(l|0)){i[f>>2]=l;break i}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=m<<2;m=d+c|0;k=b+d|0;while(1){f=g<<2;d=f+m|0;f=i[f+k>>2]+i[f+h>>2]|0;i[d>>2]=f;j:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break j}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}j=j+1|0;if((s|0)!=(j|0)){continue}break}}Wk(n);return 1}function Qi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0;e=F-48|0;F=e;a:{if(!b){break a}w=a+12|0;g=i[a+4>>2];m=i[a>>2];f=g-m|0;k=f>>2;d=i[a+12>>2];c=i[a+16>>2]-d>>2;b:{if(k>>>0>c>>>0){Ti(w,k-c|0);g=i[a+4>>2];m=i[a>>2];f=g-m|0;k=f>>2;break b}if(k>>>0>=c>>>0){break b}i[a+16>>2]=d+(k<<2)}i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;c:{if(!f){break c}if(k>>>0<1073741824){l=lk(f);i[e+36>>2]=l;i[e+32>>2]=l;i[e+40>>2]=(k<<2)+l;d=l;f=0;while(1){c=i[(f<<2)+m>>2];j=d-l>>2;d:{if(c>>>0>>0){break d}i[e+16>>2]=0;d=c+1|0;if(d>>>0>j>>>0){Na(e+32|0,d-j|0,e+16|0);m=i[a>>2];g=i[a+4>>2];l=i[e+32>>2];break d}if(d>>>0>=j>>>0){break d}i[e+36>>2]=(d<<2)+l}d=(c<<2)+l|0;i[d>>2]=i[d>>2]+1;f=f+1|0;h=g-m|0;k=h>>2;if(f>>>0>=k>>>0){break c}d=i[e+36>>2];continue}}va(10832);x()}i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;e:{f:{if(h){if(k>>>0>=536870912){break f}n=lk(h<<1);i[e+16>>2]=n;c=k<<3;d=c+n|0;i[e+24>>2]=d;Zk(n,255,c);i[e+20>>2]=d}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;c=i[e+36>>2];g=c-l|0;u=g>>2;g:{if(g){if(u>>>0>=1073741824){break g}p=lk(g);i[e>>2]=p;d=(u<<2)+p|0;i[e+8>>2]=d;f=0;j=Zk(p,0,g);i[e+4>>2]=d;d=l-c|0;c=((d|0)>(g|0)?d:g)>>>2|0;d=(g|0)>-1?g:-1;d=o(c,(d|0)<1?d:1);c=d>>>0>1?d:1;h=0;while(1){d=h<<2;i[d+j>>2]=f;f=i[d+l>>2]+f|0;h=h+1|0;if((c|0)!=(h|0)){continue}break}}if(!k){break e}while(1){y=q<<2;g=i[y+m>>2];r=-1;d=q+1|0;c=(d>>>0)%3|0?d:q+ -2|0;if((c|0)!=-1){r=i[(c<<2)+m>>2]}s=-1;f=(q>>>0)%3|0;c=(f?-1:2)+q|0;if((c|0)!=-1){s=i[(c<<2)+m>>2]}h:{if(!(((g|0)!=(s|0)?!((r|0)==(s|0)|(g|0)==(r|0)):0)|f)){i[a+40>>2]=i[a+40>>2]+1;d=q+3|0;break h}c=s<<2;v=i[c+l>>2];i:{j:{if((v|0)<1){break j}f=i[c+p>>2];h=0;while(1){j=(f<<3)+n|0;c=i[j>>2];if((c|0)==-1){break j}k:{if((c|0)!=(r|0)){break k}t=i[j+4>>2];if((t|0)!=-1){c=i[(t<<2)+m>>2]}else{c=-1}if((c|0)==(g|0)){break k}while(1){l:{c=f;h=h+1|0;if((h|0)>=(v|0)){break l}z=(c<<3)+n|0;f=c+1|0;g=(f<<3)+n|0;j=i[g>>2];i[z>>2]=j;i[z+4>>2]=i[g+4>>2];if((j|0)!=-1){continue}}break}i[(c<<3)+n>>2]=-1;if((t|0)==-1){break j}c=i[w>>2];i[c+y>>2]=t;i[c+(t<<2)>>2]=q;break i}f=f+1|0;h=h+1|0;if((v|0)!=(h|0)){continue}break}}f=r<<2;c=i[f+l>>2];if((c|0)<1){break i}f=i[f+p>>2];h=0;while(1){j=(f<<3)+n|0;if(i[j>>2]==-1){i[j>>2]=s;i[j+4>>2]=q;break i}f=f+1|0;h=h+1|0;if((c|0)!=(h|0)){continue}break}}}q=d;if(d>>>0>>0){continue}break}break e}Ak();x()}Ak();x()}i[b>>2]=u;if(p){i[e+4>>2]=p;Wk(p)}a=i[e+16>>2];if(a){i[e+20>>2]=a;Wk(a)}a=i[e+32>>2];if(!a){break a}i[e+36>>2]=a;Wk(a)}F=e+48|0;return(b|0)!=0}function hf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(i[i[a+24>>2]+(d>>>3&268435452)>>2]>>>d&1)){c=i[a+48>>2];i[a+52>>2]=c;a:{if((c|0)!=i[a+56>>2]){i[c>>2]=b;i[a+52>>2]=c+4;break a}e=lk(4);i[e>>2]=b;f=e+4|0;i[a+56>>2]=f;i[a+52>>2]=f;i[a+48>>2]=e;if(!c){break a}Wk(c)}e=i[a+4>>2];c=-1;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)!=-1){c=i[i[e>>2]+(f<<2)>>2]}h=(b-o(d,3)|0?-1:2)+b|0;if((h|0)==-1){return 0}if((c|0)==-1){return 0}d=i[i[e>>2]+(h<<2)>>2];if((d|0)==-1){return 0}b=i[a+36>>2];e=b+(c>>>3&536870908)|0;g=i[e>>2];j=1<>2]=g|j;Ze(a+8|0,c,f);b=i[a+36>>2]}b=(d>>>3&536870908)+b|0;c=i[b>>2];e=1<>2]=c|e;Ze(a+8|0,d,h)}d=i[a+52>>2];if((d|0)==i[a+48>>2]){return 1}k=a+48|0;l=a+8|0;while(1){d=d+ -4|0;b=i[d>>2];c=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}e=i[a+24>>2]+(c>>>3&268435452)|0;f=i[e>>2];c=1<>2]=c|f;while(1){h=i[a+4>>2];c=i[i[h>>2]+(b<<2)>>2];if((c|0)==-1){return 0}d:{d=i[a+36>>2]+(c>>>3&536870908)|0;e=i[d>>2];f=1<>2]+(c<<2)>>2];if((g|0)!=-1){j=g+1|0;g=(j>>>0)%3|0?j:g+ -2|0;if((g|0)!=-1){h=i[i[h+12>>2]+(g<<2)>>2];if((h|0)!=-1){i[d>>2]=e|f;Ze(l,c,b);c=h+1|0;if((((c>>>0)%3|0?c:h+ -2|0)|0)==-1){break e}d=b+ -2|0;c=b+1|0;b=-1;c=(c>>>0)%3|0?c:d;if((c|0)!=-1){b=i[i[i[a+4>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;g=1<>2];j=c>>>5|0;f=i[e+(j<<2)>>2];break d}}}i[d>>2]=e|f;Ze(l,c,b)}d=-1;e=i[a+4>>2];c=-1;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)!=-1){c=i[i[e+12>>2]+(f<<2)>>2]}b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)!=-1){d=i[i[e+12>>2]+(b<<2)>>2]}b=(d|0)==-1;h=b?-1:(d>>>0)/3|0;f=(c>>>0)/3|0;f:{g=(c|0)==-1;if(!g){e=i[a+24>>2];g=g?-1:f;j=g>>>5|0;f=i[e+(j<<2)>>2];g=1<>2];j=h>>>5|0;f=i[e+(j<<2)>>2];if(!(g&f)){break d}}d=i[a+52>>2]+ -4|0;i[a+52>>2]=d;break b}if(b){b=c;break d}if(i[(h>>>3&536870908)+e>>2]>>>h&1){b=c;break d}b=i[a+52>>2];i[b+ -4>>2]=d;if((b|0)!=i[a+56>>2]){i[b>>2]=c;d=b+4|0;break c}g:{e=i[k>>2];f=b-e|0;h=f>>2;d=h+1|0;if(d>>>0<1073741824){g=f>>1;d=h>>>0<536870911?g>>>0>>0?d:g:1073741823;b=0;h:{if(!d){break h}if(d>>>0>=1073741824){break g}b=lk(d<<2)}h=b+(h<<2)|0;i[h>>2]=c;c=b+(d<<2)|0;d=h+4|0;if((f|0)>=1){Yk(b,e,f)}i[a+56>>2]=c;i[a+52>>2]=d;i[a+48>>2]=b;if(!e){break b}Wk(e);d=i[a+52>>2];break b}Ak();x()}va(8944);x()}i[(j<<2)+e>>2]=f|g;if((b|0)!=-1){continue}break}return 0}i[a+52>>2]=d}if(i[k>>2]!=(d|0)){continue}break}}return 1}function nc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=F-32|0;F=h;i[a+68>>2]=f;e=i[a+56>>2];f=i[e>>2];j=i[e+4>>2];i[h+24>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;g=j-f|0;if((g|0)>=1){a:{d=i[e>>2];b:{if((d|0)==i[e+4>>2]){e=i[h+8>>2];break b}n=a+60|0;e=f-j|0;e=((e|0)>(g|0)?e:g)>>>2|0;o=e>>>0>1?e:1;p=a+112|0;while(1){oc(n,i[(m<<2)+d>>2],h+16|0);e=i[h+20>>2];j=e>>31;f=i[h+16>>2];g=f>>31;l=i[h+24>>2];k=l>>31;d=0;k=k^k+l;j=k+((j^e+j)+(g^f+g)|0)|0;if(j>>>0>>0){d=1}g=j;c:{if(!(d|g)){i[h+16>>2]=i[a+108>>2];break c}j=i[a+108>>2];k=j>>31;e=il(hl(j,k,e,e>>31),H,g,d);i[h+20>>2]=e;d=il(hl(j,k,f,f>>31),H,g,d);i[h+16>>2]=d;if((l|0)>=0){i[h+24>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break c}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[h+24>>2]=f+(d+e^d)}d=jd(p);f=i[h+16>>2];if(d){i[h+24>>2]=0-i[h+24>>2];i[h+20>>2]=0-i[h+20>>2];f=0-f|0;i[h+16>>2]=f}e=i[h+20>>2];d:{if((f|0)>=0){d=i[a+108>>2];f=d+i[h+24>>2]|0;d=d+e|0;break d}e:{if((e|0)<=-1){f=i[h+24>>2];d=f>>31;d=d^d+f;break e}f=i[h+24>>2];d=i[a+100>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break d}f=i[a+100>>2]+((e|0)<0?e:0-e|0)|0}f:{if(!(d|f)){f=i[a+100>>2];e=f;break f}j=i[a+100>>2];g:{h:{i:{if(!d){if((f|0)==(j|0)){e=f;break f}e=0;if(f|j){break i}f=0;break f}if(!((d|0)!=(j|0)|f)){f=d;e=f;break f}if((d|0)!=(j|0)){break g}g=i[a+108>>2];break h}g=i[a+108>>2];if((g|0)<(f|0)){f=(g<<1)-f|0;break f}if(j){break g}}j=d;if((g|0)<=(f|0)){break g}f=(g<<1)-f|0;e=d;break f}j:{if((f|0)!=(j|0)){break j}e=i[a+108>>2];if((e|0)<=(d|0)){break j}e=(e<<1)-d|0;break f}if(f){e=d;break f}f=0;e=i[a+108>>2];if((e|0)>=(d|0)){e=d;break f}e=(e<<1)-d|0}i[h+12>>2]=f;k:{if(i[a+8>>2]<1){break k}f=0;d=e;while(1){g=i[a+16>>2];l:{if((d|0)>(g|0)){j=i[a+32>>2];i[j+(f<<2)>>2]=g;break l}j=i[a+32>>2];g=j+(f<<2)|0;l=i[a+12>>2];if((d|0)<(l|0)){i[g>>2]=l;break l}i[g>>2]=d}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){d=i[(h+8|0)+(f<<2)>>2];continue}break}d=0;if((g|0)<1){break k}f=m<<3;l=f+c|0;k=b+f|0;while(1){g=d<<2;f=g+l|0;g=i[g+k>>2]+i[g+j>>2]|0;i[f>>2]=g;m:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break m}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}m=m+1|0;if((o|0)==(m|0)){break a}f=i[a+56>>2];d=i[f>>2];if(i[f+4>>2]-d>>2>>>0>m>>>0){continue}break}}i[h+8>>2]=e;Bk();x()}i[h+8>>2]=e}F=h+32|0;return 1}function Cc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=F-32|0;F=h;i[a+68>>2]=f;e=i[a+56>>2];f=i[e>>2];j=i[e+4>>2];i[h+24>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;g=j-f|0;if((g|0)>=1){a:{d=i[e>>2];b:{if((d|0)==i[e+4>>2]){e=i[h+8>>2];break b}n=a+60|0;e=f-j|0;e=((e|0)>(g|0)?e:g)>>>2|0;o=e>>>0>1?e:1;p=a+112|0;while(1){Dc(n,i[(m<<2)+d>>2],h+16|0);e=i[h+20>>2];j=e>>31;f=i[h+16>>2];g=f>>31;l=i[h+24>>2];k=l>>31;d=0;k=k^k+l;j=k+((j^e+j)+(g^f+g)|0)|0;if(j>>>0>>0){d=1}g=j;c:{if(!(d|g)){i[h+16>>2]=i[a+108>>2];break c}j=i[a+108>>2];k=j>>31;e=il(hl(j,k,e,e>>31),H,g,d);i[h+20>>2]=e;d=il(hl(j,k,f,f>>31),H,g,d);i[h+16>>2]=d;if((l|0)>=0){i[h+24>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break c}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[h+24>>2]=f+(d+e^d)}d=jd(p);f=i[h+16>>2];if(d){i[h+24>>2]=0-i[h+24>>2];i[h+20>>2]=0-i[h+20>>2];f=0-f|0;i[h+16>>2]=f}e=i[h+20>>2];d:{if((f|0)>=0){d=i[a+108>>2];f=d+i[h+24>>2]|0;d=d+e|0;break d}e:{if((e|0)<=-1){f=i[h+24>>2];d=f>>31;d=d^d+f;break e}f=i[h+24>>2];d=i[a+100>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break d}f=i[a+100>>2]+((e|0)<0?e:0-e|0)|0}f:{if(!(d|f)){f=i[a+100>>2];e=f;break f}j=i[a+100>>2];g:{h:{i:{if(!d){if((f|0)==(j|0)){e=f;break f}e=0;if(f|j){break i}f=0;break f}if(!((d|0)!=(j|0)|f)){f=d;e=f;break f}if((d|0)!=(j|0)){break g}g=i[a+108>>2];break h}g=i[a+108>>2];if((g|0)<(f|0)){f=(g<<1)-f|0;break f}if(j){break g}}j=d;if((g|0)<=(f|0)){break g}f=(g<<1)-f|0;e=d;break f}j:{if((f|0)!=(j|0)){break j}e=i[a+108>>2];if((e|0)<=(d|0)){break j}e=(e<<1)-d|0;break f}if(f){e=d;break f}f=0;e=i[a+108>>2];if((e|0)>=(d|0)){e=d;break f}e=(e<<1)-d|0}i[h+12>>2]=f;k:{if(i[a+8>>2]<1){break k}f=0;d=e;while(1){g=i[a+16>>2];l:{if((d|0)>(g|0)){j=i[a+32>>2];i[j+(f<<2)>>2]=g;break l}j=i[a+32>>2];g=j+(f<<2)|0;l=i[a+12>>2];if((d|0)<(l|0)){i[g>>2]=l;break l}i[g>>2]=d}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){d=i[(h+8|0)+(f<<2)>>2];continue}break}d=0;if((g|0)<1){break k}f=m<<3;l=f+c|0;k=b+f|0;while(1){g=d<<2;f=g+l|0;g=i[g+k>>2]+i[g+j>>2]|0;i[f>>2]=g;m:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break m}g=g+i[a+20>>2]|0}i[f>>2]=g}d=d+1|0;if((d|0)>2]){continue}break}}m=m+1|0;if((o|0)==(m|0)){break a}f=i[a+56>>2];d=i[f>>2];if(i[f+4>>2]-d>>2>>>0>m>>>0){continue}break}}i[h+8>>2]=e;Bk();x()}i[h+8>>2]=e}F=h+32|0;return 1}function zj(a,b){var c=0,d=0,e=0,f=0,h=0,k=0;a:{b:{d=b;h=i[b>>2];if(h){c=i[b+4>>2];if(!c){break b}while(1){d=c;c=i[c>>2];if(c){continue}break}}h=i[d+4>>2];if(h){break b}h=0;e=1;break a}i[h+8>>2]=i[d+8>>2];e=0}f=i[d+8>>2];c=i[f>>2];c:{if((d|0)==(c|0)){i[f>>2]=h;if((a|0)==(d|0)){c=0;a=h;break c}c=i[f+4>>2];break c}i[f+4>>2]=h}d:{e:{f:{k=!j[d+12|0];if((b|0)!=(d|0)){f=i[b+8>>2];i[d+8>>2]=f;i[f+((i[i[b+8>>2]>>2]!=(b|0))<<2)>>2]=d;f=i[b>>2];i[d>>2]=f;i[f+8>>2]=d;f=i[b+4>>2];i[d+4>>2]=f;if(f){i[f+8>>2]=d}g[d+12|0]=j[b+12|0];a=(a|0)==(b|0)?d:a}if(!(k|!a)){if(e){while(1){b=j[c+12|0];g:{e=i[c+8>>2];if(i[e>>2]!=(c|0)){if(!b){g[c+12|0]=1;g[e+12|0]=0;d=i[e+4>>2];b=i[d>>2];i[e+4>>2]=b;if(b){i[b+8>>2]=e}i[d+8>>2]=i[e+8>>2];b=i[e+8>>2];i[(((e|0)!=i[b>>2])<<2)+b>>2]=d;i[d>>2]=e;i[e+8>>2]=d;b=i[c>>2];a=(b|0)==(a|0)?c:a;c=i[b+4>>2]}d=i[c>>2];if(!(j[d+12|0]?0:d)){b=i[c+4>>2];if(j[b+12|0]?0:b){break f}g[c+12|0]=0;c=i[c+8>>2];h:{if((c|0)==(a|0)){c=a;break h}if(j[c+12|0]){break g}}g[c+12|0]=1;return}b=i[c+4>>2];if(b){break f}break e}i:{if(b){b=c;break i}g[c+12|0]=1;g[e+12|0]=0;b=i[c+4>>2];i[e>>2]=b;if(b){i[b+8>>2]=e}i[c+8>>2]=i[e+8>>2];d=i[e+8>>2];j:{if((e|0)==i[d>>2]){i[d>>2]=c;b=i[e>>2];break j}i[d+4>>2]=c}i[c+4>>2]=e;i[e+8>>2]=c;a=(a|0)==(e|0)?c:a}d=i[b>>2];k:{if(!(!d|j[d+12|0])){c=b;break k}c=i[b+4>>2];if(!(j[c+12|0]?0:c)){g[b+12|0]=0;c=i[b+8>>2];if(j[c+12|0]?(c|0)!=(a|0):0){break g}g[c+12|0]=1;return}if(d){if(!j[d+12|0]){c=b;break k}c=i[b+4>>2]}g[c+12|0]=1;g[b+12|0]=0;a=i[c>>2];i[b+4>>2]=a;if(a){i[a+8>>2]=b}i[c+8>>2]=i[b+8>>2];a=i[b+8>>2];i[((i[a>>2]!=(b|0))<<2)+a>>2]=c;i[c>>2]=b;i[b+8>>2]=c;d=b}a=c;c=i[c+8>>2];g[a+12|0]=j[c+12|0];g[c+12|0]=1;g[d+12|0]=1;b=i[c>>2];a=i[b+4>>2];i[c>>2]=a;if(a){i[a+8>>2]=c}i[b+8>>2]=i[c+8>>2];a=i[c+8>>2];i[(((c|0)!=i[a>>2])<<2)+a>>2]=b;i[b+4>>2]=c;i[c+8>>2]=b;return}b=i[c+8>>2];c=i[((i[b>>2]==(c|0))<<2)+b>>2];continue}}g[h+12|0]=1}return}if(j[b+12|0]){break e}d=c;break d}g[d+12|0]=1;g[c+12|0]=0;a=i[d+4>>2];i[c>>2]=a;if(a){i[a+8>>2]=c}i[d+8>>2]=i[c+8>>2];a=i[c+8>>2];i[((i[a>>2]!=(c|0))<<2)+a>>2]=d;i[d+4>>2]=c;i[c+8>>2]=d;b=c}c=i[d+8>>2];g[d+12|0]=j[c+12|0];g[c+12|0]=1;g[b+12|0]=1;b=i[c+4>>2];a=i[b>>2];i[c+4>>2]=a;if(a){i[a+8>>2]=c}i[b+8>>2]=i[c+8>>2];a=i[c+8>>2];i[(((c|0)!=i[a>>2])<<2)+a>>2]=b;i[b>>2]=c;i[c+8>>2]=b}function Ab(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,j=0,k=0,l=0,m=0;a:{b:{c:{d:{e:{f:{g:{h:{d=i[a+8>>2];switch(i[d+28>>2]+ -1|0){case 0:break c;case 3:break d;case 2:break e;case 5:break f;case 4:break g;case 1:break h;default:break a}}f=g[d+24|0];j=lk((f|0)>-1?f:-1);c=i[a+16>>2];d=0;i:{if(!i[c+80>>2]){break i}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((f|0)>0){while(1){g[c+j|0]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}Yk(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,f);l=f+l|0;e=e+1|0;if((e|0)!=(b|0)){continue}break}break b}e=g[d+24|0];m=e<<2;j=lk((e|0)!=(e&1073741823)?-1:m);c=i[a+16>>2];d=0;j:{if(!i[c+80>>2]){break j}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((e|0)>0){while(1){i[(c<<2)+j>>2]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}Yk(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}e=g[d+24|0];m=e<<2;j=lk((e|0)!=(e&1073741823)?-1:m);c=i[a+16>>2];d=0;k:{if(!i[c+80>>2]){break k}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((e|0)>0){while(1){i[(c<<2)+j>>2]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}Yk(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}e=g[d+24|0];d=e+e|0;j=lk(d>>>0>>0?-1:d);c=i[a+16>>2];d=0;l:{if(!i[c+80>>2]){break l}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}m=e<<1;while(1){c=0;if((e|0)>0){while(1){h[(c<<1)+j>>1]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}Yk(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}e=g[d+24|0];d=e+e|0;j=lk(d>>>0>>0?-1:d);c=i[a+16>>2];d=0;m:{if(!i[c+80>>2]){break m}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}m=e<<1;while(1){c=0;if((e|0)>0){while(1){h[(c<<1)+j>>1]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}Yk(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}f=g[d+24|0];j=lk((f|0)>-1?f:-1);c=i[a+16>>2];d=0;n:{if(!i[c+80>>2]){break n}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((f|0)>0){while(1){g[c+j|0]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}Yk(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,f);l=f+l|0;e=e+1|0;if((e|0)!=(b|0)){continue}break}}Wk(j);j=1}return j|0}function Si(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;k=F-48|0;F=k;i[a+36>>2]=b;p=a+24|0;d=i[a+24>>2];c=i[a+28>>2]-d>>2;a:{if(c>>>0>>0){Ti(p,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+28>>2]=d+(b<<2)}g[k+16|0]=0;l=Ui(k+32|0,b,k+16|0);c=i[a>>2];d=i[a+4>>2];g[k+8|0]=0;q=Ui(k+16|0,d-c>>2,k+8|0);b:{h=i[a+4>>2];c=i[a>>2];if(h-c>>2>>>0<3){break b}t=a+48|0;while(1){m=o(r,3);e=i[(m<<2)+c>>2];d=m+1|0;c:{d:{if((d|0)==-1){j=0;f=-1;break d}f=i[(d<<2)+c>>2];j=m+2|0;d=-1;if((j|0)==-1){break c}}d=i[(j<<2)+c>>2]}e:{if(!((d|0)==(f|0)|(e|0)==(f|0)|(d|0)==(e|0))){j=i[q>>2];n=0;while(1){d=m+n|0;f:{if(i[(d>>>3&536870908)+j>>2]>>>d&1){break f}h=i[i[a>>2]+(d<<2)>>2];i[k+8>>2]=h;c=1<>2];f=h>>>5|0;j=i[e+(f<<2)>>2];s=c&j;if(s){ye(p,10828);Vi(t,k+8|0);c=i[l+4>>2];f=i[l+8>>2];if((c|0)==f<<5){if((c+1|0)<=-1){break e}e=l;if(c>>>0<=1073741822){h=c+32&-32;c=f<<6;c=c>>>0>>0?h:c}else{c=2147483647}Xb(e,c);c=i[l+4>>2]}i[l+4>>2]=c+1;e=i[l>>2];f=e+(c>>>3&536870908)|0;h=i[f>>2];u=f,v=ll(c)&h,i[u>>2]=v;i[k+8>>2]=b;c=1<>>5|0;j=i[(f<<2)+e>>2];b=b+1|0}i[(f<<2)+e>>2]=c|j;j=i[q>>2];c=d;g:{while(1){if((c|0)==-1){break g}e=(c>>>3&536870908)+j|0;i[e>>2]=i[e>>2]|1<>2];i[i[p>>2]+(e<<2)>>2]=c;if(s){i[i[a>>2]+(c<<2)>>2]=e}h=d;f=c+1|0;c=(f>>>0)%3|0?f:c+ -2|0;e=-1;h:{if((c|0)==-1){break h}f=i[i[a+12>>2]+(c<<2)>>2];e=-1;if((f|0)==-1){break h}c=f+1|0;e=(c>>>0)%3|0?c:f+ -2|0}c=e;if((h|0)!=(c|0)){continue}break}if((d|0)!=-1){break f}}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)==-1){break f}d=i[i[a+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)==-1){break f}while(1){d=(c>>>3&536870908)+j|0;i[d>>2]=i[d>>2]|1<>2]+(c<<2)>>2]=i[k+8>>2]}d=((c>>>0)%3|0?-1:2)+c|0;if((d|0)==-1){break f}d=i[i[a+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)!=-1){continue}break}}n=n+1|0;if((n|0)!=3){continue}break}c=i[a>>2];h=i[a+4>>2]}r=r+1|0;if(r>>>0<(h-c>>2>>>0)/3>>>0){continue}break b}break}Ak();x()}j=0;i[a+44>>2]=0;b=i[l>>2];c=i[l+4>>2];d=c>>>5|0;f=c&31;if(d|f){h=(d<<2)+b|0;c=0;e=b;while(1){if(!(i[e>>2]>>>c&1)){j=j+1|0;i[a+44>>2]=j}d=(c|0)==31;c=d?0:c+1|0;e=d?e+4|0:e;if((h|0)!=(e|0)|(c|0)!=(f|0)){continue}break}}a=i[q>>2];if(a){Wk(a);b=i[l>>2]}if(b){Wk(b)}F=k+48|0}function Gb(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;a:{b:{c:{d:{e:{switch(b+ -1|0){case 0:b=lk(60);i[b+4>>2]=c;i[b>>2]=2776;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break d}c=lk(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=Yk(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=3972;break a;case 3:b=lk(112);i[b+4>>2]=c;i[b>>2]=2776;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break c}c=lk(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=Yk(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=4396;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=0;i[b+92>>2]=0;i[b+96>>2]=0;i[b+100>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;break a;case 4:b=lk(104);i[b+4>>2]=c;i[b>>2]=2776;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break b}c=lk(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=Yk(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=e+8|0;d=i[c>>2];f=i[c+4>>2];i[b+84>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=4632;i[b+52>>2]=d;i[b+56>>2]=f;d=i[e+4>>2];i[b+88>>2]=i[e>>2];i[b+92>>2]=d;d=i[c+4>>2];i[b+96>>2]=i[c>>2];i[b+100>>2]=d;break a;case 5:b=lk(128);rc(b,c,d,e);break a;default:break e}}i[a>>2]=0;return}Ak();x()}Ak();x()}Ak();x()}i[a>>2]=b}function Fb(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;a:{b:{c:{d:{e:{switch(b+ -1|0){case 0:b=lk(60);i[b+4>>2]=c;i[b>>2]=2776;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break d}c=lk(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=Yk(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=2068;break a;case 3:b=lk(112);i[b+4>>2]=c;i[b>>2]=2776;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break c}c=lk(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=Yk(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=2832;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=0;i[b+92>>2]=0;i[b+96>>2]=0;i[b+100>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;break a;case 4:b=lk(104);i[b+4>>2]=c;i[b>>2]=2776;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break b}c=lk(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=Yk(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=e+8|0;d=i[c>>2];f=i[c+4>>2];i[b+84>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=3080;i[b+52>>2]=d;i[b+56>>2]=f;d=i[e+4>>2];i[b+88>>2]=i[e>>2];i[b+92>>2]=d;d=i[c+4>>2];i[b+96>>2]=i[c>>2];i[b+100>>2]=d;break a;case 5:b=lk(128);Hb(b,c,d,e);break a;default:break e}}i[a>>2]=0;return}Ak();x()}Ak();x()}Ak();x()}i[a>>2]=b}function Xc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0;g=F-48|0;F=g;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;e=i[a+40>>2];f=i[e>>2];h=i[e+4>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{j=h-f|0;if((j|0)<1){break a}d=i[e>>2];if((d|0)!=i[e+4>>2]){o=a+8|0;q=a+44|0;e=f-h|0;e=((e|0)>(j|0)?e:j)>>>2|0;r=e>>>0>1?e:1;s=a+96|0;while(1){Dc(q,i[(l<<2)+d>>2],g+8|0);e=i[g+12>>2];h=e>>31;f=i[g+8>>2];j=f>>31;n=i[g+16>>2];k=n>>31;d=0;k=k^k+n;h=k+((h^e+h)+(j^f+j)|0)|0;if(h>>>0>>0){d=1}b:{if(!(d|h)){i[g+8>>2]=i[a+92>>2];break b}j=i[a+92>>2];k=j>>31;e=il(hl(j,k,e,e>>31),H,h,d);i[g+12>>2]=e;d=il(hl(j,k,f,f>>31),H,h,d);i[g+8>>2]=d;if((n|0)>=0){i[g+16>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[g+16>>2]=f+(d+e^d)}d=jd(s);f=i[g+8>>2];if(d){i[g+16>>2]=0-i[g+16>>2];i[g+12>>2]=0-i[g+12>>2];f=0-f|0;i[g+8>>2]=f}e=i[g+12>>2];c:{if((f|0)>=0){d=i[a+92>>2];f=d+i[g+16>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[g+16>>2];d=f>>31;d=d^d+f;break d}f=i[g+16>>2];d=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+84>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+84>>2];e=f;break e}h=i[a+84>>2];f:{g:{h:{if(!d){if((f|0)==(h|0)){e=f;break e}e=0;if(f|h){break h}f=0;break e}if(!((d|0)!=(h|0)|f)){f=d;e=d;break e}if((d|0)!=(h|0)){break f}j=i[a+92>>2];break g}j=i[a+92>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(h){break f}}h=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(h|0)){break i}e=i[a+92>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+92>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}d=l<<3;h=d+b|0;j=i[h+4>>2];h=i[h>>2];i[g+36>>2]=f;i[g+32>>2]=e;i[g+24>>2]=h;i[g+28>>2]=j;Tc(g+40|0,o,g+32|0,g+24|0);d=c+d|0;i[d>>2]=i[g+40>>2];i[d+4>>2]=i[g+44>>2];l=l+1|0;if((r|0)==(l|0)){break a}e=i[a+40>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>l>>>0){continue}break}}Bk();x()}F=g+48|0;return 1}function Sc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0;g=F-48|0;F=g;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;e=i[a+40>>2];f=i[e>>2];h=i[e+4>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{j=h-f|0;if((j|0)<1){break a}d=i[e>>2];if((d|0)!=i[e+4>>2]){o=a+8|0;q=a+44|0;e=f-h|0;e=((e|0)>(j|0)?e:j)>>>2|0;r=e>>>0>1?e:1;s=a+96|0;while(1){oc(q,i[(l<<2)+d>>2],g+8|0);e=i[g+12>>2];h=e>>31;f=i[g+8>>2];j=f>>31;n=i[g+16>>2];k=n>>31;d=0;k=k^k+n;h=k+((h^e+h)+(j^f+j)|0)|0;if(h>>>0>>0){d=1}b:{if(!(d|h)){i[g+8>>2]=i[a+92>>2];break b}j=i[a+92>>2];k=j>>31;e=il(hl(j,k,e,e>>31),H,h,d);i[g+12>>2]=e;d=il(hl(j,k,f,f>>31),H,h,d);i[g+8>>2]=d;if((n|0)>=0){i[g+16>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[g+16>>2]=f+(d+e^d)}d=jd(s);f=i[g+8>>2];if(d){i[g+16>>2]=0-i[g+16>>2];i[g+12>>2]=0-i[g+12>>2];f=0-f|0;i[g+8>>2]=f}e=i[g+12>>2];c:{if((f|0)>=0){d=i[a+92>>2];f=d+i[g+16>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[g+16>>2];d=f>>31;d=d^d+f;break d}f=i[g+16>>2];d=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+84>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+84>>2];e=f;break e}h=i[a+84>>2];f:{g:{h:{if(!d){if((f|0)==(h|0)){e=f;break e}e=0;if(f|h){break h}f=0;break e}if(!((d|0)!=(h|0)|f)){f=d;e=d;break e}if((d|0)!=(h|0)){break f}j=i[a+92>>2];break g}j=i[a+92>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(h){break f}}h=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(h|0)){break i}e=i[a+92>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+92>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}d=l<<3;h=d+b|0;j=i[h+4>>2];h=i[h>>2];i[g+36>>2]=f;i[g+32>>2]=e;i[g+24>>2]=h;i[g+28>>2]=j;Tc(g+40|0,o,g+32|0,g+24|0);d=c+d|0;i[d>>2]=i[g+40>>2];i[d+4>>2]=i[g+44>>2];l=l+1|0;if((r|0)==(l|0)){break a}e=i[a+40>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>l>>>0){continue}break}}Bk();x()}F=g+48|0;return 1}function kj(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0;d=F-48|0;F=d;c=lk(8);i[c+4>>2]=b;i[c>>2]=0;b=c+8|0;i[d+40>>2]=b;i[d+36>>2]=b;i[d+32>>2]=c;a:{b:{c:{d:{while(1){b=b+ -8|0;m=i[b+4>>2];q=i[b>>2];i[d+36>>2]=b;if(q){i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;n=1;b=i[a>>2];h=i[b+16>>2];f=i[b+12>>2];c=i[b+20>>2];e:{if((f|0)<(c|0)?1:(f|0)<=(c|0)?l[b+8>>2]<=h>>>0:0){break e}e=j[h+i[b>>2]|0];f=h+1|0;if(f>>>0<1){c=c+1|0}i[b+16>>2]=f;i[b+20>>2]=c;tk(d+16|0,e);if(e){f=i[a>>2];p=xk(d+16|0);k=i[f+12>>2];h=i[f+20>>2];o=i[f+16>>2];b=e;c=o+b|0;if(c>>>0>>0){h=h+1|0}if((k|0)<(h|0)?1:(k|0)<=(h|0)?l[f+8>>2]>>0:0){break e}Yk(p,o+i[f>>2]|0,e);c=f;f=c;h=i[c+20>>2];e=b+i[c+16>>2]|0;if(e>>>0>>0){h=h+1|0}i[f+16>>2]=e;i[c+20>>2]=h}m=lk(24);b=m;i[b+4>>2]=0;i[b+8>>2]=0;i[b+16>>2]=0;i[b+20>>2]=0;i[b>>2]=b+4;i[b+12>>2]=b+16;i[d+8>>2]=b;b=yj(q,d+16|0,d+8|0);c=i[d+8>>2];i[d+8>>2]=0;if(c){Jf(c+12|0,i[c+16>>2]);Kf(c,i[c+4>>2]);Wk(c)}n=b^1}if(g[d+27|0]<=-1){Wk(i[d+16>>2])}if(n){break b}}if(!m){break b}i[d+16>>2]=0;if(!lj(1,d+16|0,i[a>>2])){break b}b=0;c=i[d+16>>2];if(c){while(1){if(!mj(a,m)){break b}b=b+1|0;if((c|0)!=(b|0)){continue}break}}i[d+4>>2]=0;if(!lj(1,d+4|0,i[a>>2])){break b}e=i[a>>2];c=i[e+8>>2];b=i[e+16>>2];p=i[d+4>>2];f=c-b>>>0

>>0;b=i[e+12>>2]-(i[e+20>>2]+(c>>>0>>0)|0)|0;if((b|0)<0?1:(b|0)<=0?f:0){break b}if(p){n=0;while(1){b=i[d+36>>2];c=i[d+40>>2];f:{if(b>>>0>>0){i[b+4>>2]=0;i[b>>2]=m;i[d+36>>2]=b+8;break f}k=i[d+32>>2];o=b-k|0;b=o>>3;h=b+1|0;if(h>>>0>=536870912){break d}f=b<<3;e=c-k|0;c=e>>2;e=e>>3>>>0<268435455?c>>>0>>0?h:c:536870911;b=0;g:{if(!e){break g}if(e>>>0>=536870912){break c}b=lk(e<<3)}c=f+b|0;i[c+4>>2]=0;i[c>>2]=m;e=b+(e<<3)|0;c=c+8|0;if((o|0)>=1){Yk(b,k,o)}i[d+40>>2]=e;i[d+36>>2]=c;i[d+32>>2]=b;if(!k){break f}Wk(k)}n=n+1|0;if((p|0)!=(n|0)){continue}break}}b=i[d+36>>2];c=i[d+32>>2];if((b|0)!=(c|0)){continue}break}a=1;break a}Ak();x()}va(11160);x()}c=i[d+32>>2];a=0}if(c){i[d+36>>2]=c;Wk(c)}F=d+48|0;return a}function yb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;a:{s=I[i[i[a>>2]+44>>2]](a)|0;if((s|0)<1){break a}h=i[b+4>>2]-i[b>>2]>>2;zb(a,h,s);d=i[a+16>>2];if(!i[d+80>>2]){break a}f=i[i[d>>2]>>2];if(!f){break a}m=i[c+8>>2];k=i[c+16>>2];g=i[c+12>>2];n=g;e=i[c+20>>2];if((n|0)<(e|0)?1:(n|0)<=(e|0)?m>>>0<=k>>>0:0){break a}n=o(h,s);q=f+i[d+48>>2]|0;r=i[c>>2];t=j[r+k|0];h=c;d=e;f=k+1|0;if(f>>>0<1){d=d+1|0}p=f;f=d;i[h+16>>2]=p;i[h+20>>2]=d;b:{c:{d:{if(t){if(vd(n,s,c,q)){break d}break a}if((g|0)<(f|0)?1:(g|0)<=(f|0)?m>>>0<=p>>>0:0){break a}h=j[p+r|0];d=e;e=k+2|0;if(e>>>0<2){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;d=Vf(5);e=i[i[a+16>>2]+64>>2];e=i[e+4>>2]-i[e>>2]|0;e:{if((d|0)==(h|0)){h=n<<2;if(e>>>0>>0){break a}f=i[c+12>>2];d=i[c+20>>2];k=i[c+16>>2];e=h;g=k+e|0;if(g>>>0>>0){d=d+1|0}if((f|0)>(d|0)?1:(f|0)>=(d|0)?l[c+8>>2]>=g>>>0:0){break e}break a}if(e>>>0>>0){break a}k=i[c+12>>2];d=i[c+20>>2];m=i[c+8>>2];f=m;p=i[c+16>>2];g=p;e=h;r=f-g>>>0>>0;f=k-(d+(f>>>0>>0)|0)|0;g=H;if((f|0)<(g|0)?1:(f|0)<=(g|0)?r:0){break a}f=1;if(!n){break c}g=0;f=m;m=e+p|0;if(m>>>0>>0){d=d+1|0}if((k|0)<(d|0)?1:(k|0)<=(d|0)?f>>>0>>0:0){break b}m=0;while(1){Yk(q+(m<<2)|0,p+i[c>>2]|0,h);d=i[c+20>>2];p=e+i[c+16>>2]|0;if(p>>>0>>0){d=d+1|0}i[c+16>>2]=p;i[c+20>>2]=d;m=m+1|0;if((n|0)==(m|0)){break d}k=i[c+12>>2];r=e+p|0;if(r>>>0>>0){d=d+1|0}if((k|0)>(d|0)?1:(k|0)>=(d|0)?l[c+8>>2]>=r>>>0:0){continue}break}break b}Yk(q,k+i[c>>2]|0,h);d=i[c+20>>2];f=e+i[c+16>>2]|0;if(f>>>0>>0){d=d+1|0}i[c+16>>2]=f;i[c+20>>2]=d}f=1;if(!n){break c}e=i[a+20>>2];if(e){f=0;if(I[i[i[e>>2]+32>>2]](e)|0){break c}}Lf(q,n,q);f=0}e=i[a+20>>2];f:{if(!e){break f}if(!(I[i[i[e>>2]+40>>2]](e,c)|0)){break a}if(f){break f}g=0;a=i[a+20>>2];if(!(I[i[i[a>>2]+44>>2]](a,q,q,n,s,i[b>>2])|0)){break b}}g=1}return g|0}return 0}function Ri(a){var b=0,c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=F-32|0;F=e;b=i[a>>2];d=i[a+4>>2];g[e|0]=0;o=Ui(e+16|0,d-b>>2,e);i[e+8>>2]=0;i[e>>2]=0;k=i[a>>2];b=i[a+4>>2];a:{b:{while(1){c:{p=0;l=0;if((b|0)==(k|0)){break c}while(1){c=i[o>>2];d:{if(i[c+(l>>>3&536870908)>>2]>>>l&1){break d}d=i[e>>2];i[e+4>>2]=d;b=l;while(1){e:{f=b+1|0;q=b;b=(f>>>0)%3|0?f:b+ -2|0;if((b|0)==-1){break e}b=i[i[a+12>>2]+(b<<2)>>2];if((b|0)==-1){break e}f=b+1|0;b=(f>>>0)%3|0?f:b+ -2|0;if((l|0)==(b|0)|(b|0)==-1){break e}if(!(i[(b>>>3&536870908)+c>>2]>>>b&1)){continue}}break}f=d;b=q;while(1){j=(b>>>3&536870908)+c|0;i[j>>2]=i[j>>2]|1<>>0)%3|0?j:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;if((d|0)!=(f|0)){n=i[(j<<2)+k>>2];b=f;while(1){f:{if((n|0)!=i[b>>2]){break f}c=-1;h=i[b+4>>2];c=(m|0)!=-1?i[i[a+12>>2]+(m<<2)>>2]:c;if((h|0)==(c|0)){break f}d=-1;d=(h|0)!=-1?i[i[a+12>>2]+(h<<2)>>2]:d;if((c|0)!=-1){i[i[a+12>>2]+(c<<2)>>2]=-1}b=i[a+12>>2];if((d|0)!=-1){i[b+(d<<2)>>2]=-1}i[b+(m<<2)>>2]=-1;i[b+(h<<2)>>2]=-1;p=1;break d}b=b+8|0;if((d|0)!=(b|0)){continue}break}}n=m<<2;k=i[n+k>>2];g:{if(i[e+8>>2]!=(d|0)){b=d;i[b>>2]=k;i[b+4>>2]=j;i[e+4>>2]=b+8;break g}d=d-f|0;h=d>>3;c=h+1|0;if(c>>>0>=536870912){break b}b=d>>2;c=h>>>0<268435455?b>>>0>>0?c:b:536870911;b=0;h:{if(!c){break h}if(c>>>0>=536870912){break a}b=lk(c<<3)}h=b+(h<<3)|0;i[h>>2]=k;i[h+4>>2]=j;j=b+(c<<3)|0;c=h+8|0;if((d|0)>=1){Yk(b,f,d)}i[e+8>>2]=j;i[e+4>>2]=c;i[e>>2]=b;if(!f){break g}Wk(f)}i:{if((m|0)==-1){break i}b=i[n+i[a+12>>2]>>2];if((b|0)==-1){break i}b=b+((b>>>0)%3|0?-1:2)|0;if((q|0)==(b|0)|(b|0)==-1){break i}k=i[a>>2];c=i[o>>2];d=i[e+4>>2];f=i[e>>2];continue}break}k=i[a>>2]}l=l+1|0;b=i[a+4>>2];if(l>>>0>2>>>0){continue}break}if(p){continue}}break}a=i[e>>2];if(a){i[e+4>>2]=a;Wk(a)}a=i[o>>2];if(a){Wk(a)}F=e+32|0;return}Ak();x()}va(10832);x()}function ge(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=F+ -64|0;F=e;h=i[i[b+4>>2]+44>>2];d=lk(80);i[d+12>>2]=0;i[d+16>>2]=0;i[d>>2]=9520;i[d+4>>2]=0;i[d+76>>2]=0;i[d+72>>2]=c;i[d+68>>2]=h;i[d+64>>2]=0;i[d+56>>2]=0;i[d+60>>2]=0;i[d+8>>2]=9684;k=d+20|0;f=k;i[f>>2]=0;i[f+4>>2]=0;n=d+28|0;f=n;i[f>>2]=0;i[f+4>>2]=0;i[d+36>>2]=0;i[d+40>>2]=0;l=d+44|0;f=l;i[f>>2]=0;i[f+4>>2]=0;i[d+52>>2]=0;b=i[b+8>>2];o=e+36|0;f=o;i[f>>2]=0;i[f+4>>2]=0;p=e+28|0;f=p;i[f>>2]=0;i[f+4>>2]=0;q=e+20|0;f=q;i[f>>2]=0;i[f+4>>2]=0;f=e+12|0;i[f>>2]=0;i[f+4>>2]=0;i[e+52>>2]=0;i[e+56>>2]=0;i[e+44>>2]=0;i[e+48>>2]=0;i[e+4>>2]=0;i[e+8>>2]=0;i[e>>2]=9684;i[e+4>>2]=b;j=i[b>>2];m=i[b+4>>2];g[e+63|0]=0;ie(e+24|0,(m-j>>2>>>0)/3|0,e+63|0);j=i[e+4>>2];m=i[j+28>>2];j=i[j+24>>2];g[e+63|0]=0;ie(o,m-j>>2,e+63|0);i[q>>2]=d;i[e+16>>2]=h;i[f>>2]=c;i[e+8>>2]=b;i[n>>2]=d;b=i[f+4>>2];i[k>>2]=i[f>>2];i[k+4>>2]=b;b=i[e+8>>2];i[d+12>>2]=i[e+4>>2];i[d+16>>2]=b;a:{b:{c=d;b=i[p>>2];if(b){f=d+32|0;c:{if(b>>>0<=i[d+40>>2]<<5>>>0){h=b+ -1>>>5|0;b=i[f>>2];break c}f=i[f>>2];if(f){Wk(f);i[d+40>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;b=i[e+28>>2]}if((b|0)<=-1){break b}h=b+ -1>>>5|0;f=h+1|0;b=lk(f<<2);i[d+40>>2]=f;i[d+36>>2]=0;i[d+32>>2]=b}_k(b,i[e+24>>2],(h<<2)+4|0);b=i[e+28>>2]}else{b=0}i[c+36>>2]=b;f=d;b=i[e+40>>2];if(b){d:{if(b>>>0<=i[d+52>>2]<<5>>>0){c=b+ -1>>>5|0;b=i[l>>2];break d}c=i[l>>2];if(c){Wk(c);i[d+52>>2]=0;i[d+44>>2]=0;i[d+48>>2]=0;b=i[e+40>>2]}if((b|0)<=-1){break a}c=b+ -1>>>5|0;h=c+1|0;b=lk(h<<2);i[d+52>>2]=h;i[d+48>>2]=0;i[d+44>>2]=b}_k(b,i[e+36>>2],(c<<2)+4|0);b=i[e+40>>2]}else{b=0}i[f+48>>2]=b;Ga(d+56|0,i[e+48>>2],i[e+52>>2]);i[a>>2]=d;i[e>>2]=9684;a=i[e+48>>2];if(a){i[e+52>>2]=a;Wk(a)}i[e>>2]=9500;a=i[e+36>>2];if(a){Wk(a)}a=i[e+24>>2];if(a){Wk(a)}F=e- -64|0;return}Ak();x()}Ak();x()}function ij(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;e=o(b,12)+a|0;n=e+12|0;p=e+8|0;i[n>>2]=i[p>>2];l=(c|0)==-1?-1:(c>>>0)/3|0;r=e+16|0;s=1;e=c;a:{b:{c:{while(1){d:{q=h;if(h){if((e|0)==-1){break d}if((jj(a,((e>>>0)%3|0?-1:2)+e|0)|0)==-1){break a}c=e+1|0;c=(c>>>0)%3|0?c:e+ -2|0;if((c|0)==-1){break a}f=c+1|0;c=(f>>>0)%3|0?f:c+ -2|0;if((c|0)==-1){break a}c=i[i[i[a+4>>2]+12>>2]+(c<<2)>>2];if((c|0)==-1){break a}f=c+1|0;c=(f>>>0)%3|0?f:c+ -2|0;if((c|0)==-1){break a}l=(c>>>0)/3|0}j=1<>2]+(l>>>3&536870908)|0;k=i[g>>2];e:{if(j&k){break e}f=0;while(1){i[g>>2]=k|j;d=i[n>>2];f:{if((d|0)!=i[r>>2]){i[d>>2]=l;i[n>>2]=d+4;break f}k=i[p>>2];j=d-k|0;m=j>>2;g=m+1|0;if(g>>>0>=1073741824){break c}d=j>>1;g=m>>>0<536870911?d>>>0>>0?g:d:1073741823;d=0;g:{if(!g){break g}if(g>>>0>=1073741824){break b}d=lk(g<<2)}m=d+(m<<2)|0;i[m>>2]=l;g=d+(g<<2)|0;m=m+4|0;if((j|0)>=1){Yk(d,k,j)}i[p>>2]=d;i[n>>2]=m;i[r>>2]=g;if(!k){break f}Wk(k)}d=f+1|0;h:{if(!f){break h}if(d&1){if((c|0)==-1){c=-1;break h}f=c+1|0;c=(f>>>0)%3|0?f:c+ -2|0;break h}e=q?c:e;if((c|0)==-1){c=-1;break h}if((c>>>0)%3|0){c=c+ -1|0;break h}c=c+2|0}c=jj(a,c);if((c|0)!=-1){f=d;l=(c>>>0)/3|0;g=i[a+56>>2]+(l>>>3&268435452)|0;k=i[g>>2];j=1<>2]+ -4|0;f=i[h>>2];d=i[a+56>>2]+(f>>>3&536870908)|0;q=i[d>>2];t=d,u=ll(f)&q,i[t>>2]=u;i[n>>2]=h}h=1;f=s;s=0;if(f){continue}break a}break}e=-1;jj(a,-1);break a}Ak();x()}va(11092);x()}i[((b<<2)+a|0)+44>>2]=e;e=i[n>>2];b=i[p>>2];if((e|0)!=(b|0)){c=e-b|0;h=(c|0)>-1?c:-1;e=b-e|0;c=o((h|0)<1?h:1,((e|0)>(c|0)?e:c)>>>2|0);e=c>>>0>1?c:1;a=i[a+56>>2];c=0;while(1){h=i[b+(c<<2)>>2];f=a+(h>>>3&536870908)|0;d=i[f>>2];t=f,u=ll(h)&d,i[t>>2]=u;c=c+1|0;if((e|0)!=(c|0)){continue}break}}}function pf(a,b){var c=0,d=0,e=0;i[a>>2]=i[b>>2];i[a+4>>2]=i[b+4>>2];i[a+8>>2]=i[b+8>>2];c=b+12|0;i[a+12>>2]=i[c>>2];i[c>>2]=0;i[b+4>>2]=0;i[b+8>>2]=0;c=b+16|0;i[a+16>>2]=i[c>>2];i[a+20>>2]=i[b+20>>2];d=b+24|0;i[a+24>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=j[b+28|0];e=a+40|0;i[e>>2]=0;c=a+32|0;i[c>>2]=0;i[c+4>>2]=0;g[a+28|0]=d;d=c;c=b+32|0;i[d>>2]=i[c>>2];i[a+36>>2]=i[b+36>>2];d=b+40|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a+52|0;i[d>>2]=0;c=a+44|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+44|0;i[e>>2]=i[c>>2];i[a+48>>2]=i[b+48>>2];e=d;d=b+52|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a- -64|0;i[d>>2]=0;c=a+56|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+56|0;i[e>>2]=i[c>>2];i[a+60>>2]=i[b+60>>2];e=d;d=b- -64|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;i[a+68>>2]=i[b+68>>2];d=i[b+72>>2];e=a+84|0;i[e>>2]=0;c=a+76|0;i[c>>2]=0;i[c+4>>2]=0;i[a+72>>2]=d;d=c;c=b+76|0;i[d>>2]=i[c>>2];i[a+80>>2]=i[b+80>>2];d=b+84|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a+96|0;i[d>>2]=0;c=a+88|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+88|0;i[e>>2]=i[c>>2];i[a+92>>2]=i[b+92>>2];e=d;d=b+96|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;c=j[b+100|0];d=a+112|0;i[d>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;g[a+100|0]=c;i[a+104>>2]=i[b+104>>2];i[a+108>>2]=i[b+108>>2];c=b+112|0;i[d>>2]=i[c>>2];i[c>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;d=a+124|0;i[d>>2]=0;c=a+116|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+116|0;i[e>>2]=i[c>>2];i[a+120>>2]=i[b+120>>2];e=d;d=b+124|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;c=i[b+128>>2];d=a+140|0;i[d>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;i[a+128>>2]=c;i[a+132>>2]=i[b+132>>2];i[a+136>>2]=i[b+136>>2];c=b+140|0;i[d>>2]=i[c>>2];i[c>>2]=0;i[b+132>>2]=0;i[b+136>>2]=0;return a}function ve(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;h=F-16|0;F=h;i[h>>2]=b;g=-1;a:{if((b|0)==-1){i[h+4>>2]=-1;break a}c=b+1|0;i[h+4>>2]=(c>>>0)%3|0?c:b+ -2|0;if((b>>>0)%3|0){g=b+ -1|0;break a}g=b+2|0}i[h+8>>2]=g;q=(b|0)==-1?-1:(b>>>0)/3|0;b:{c:{d:{e:{while(1){f:{g:{if((b|0)!=-1){c=i[i[i[a+8>>2]+12>>2]+(b<<2)>>2];if((c|0)!=-1){break g}}g=0;c=i[a+216>>2];if((c|0)==i[a+220>>2]){break f}while(1){f=o(g,144)+c|0;j=f+136|0;c=i[j>>2];l=f+140|0;d=i[l>>2];h:{if(c>>>0>>0){i[c>>2]=b;i[j>>2]=c+4;break h}m=f+132|0;f=i[m>>2];k=c-f|0;c=k>>2;e=c+1|0;if(e>>>0>=1073741824){break e}n=c<<2;d=d-f|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;i:{if(!e){break i}if(e>>>0>=1073741824){break d}c=lk(e<<2)}d=n+c|0;i[d>>2]=b;e=c+(e<<2)|0;d=d+4|0;if((k|0)>=1){Yk(c,f,k)}i[m>>2]=c;i[j>>2]=d;i[l>>2]=e;if(!f){break h}Wk(f)}g=g+1|0;c=i[a+216>>2];if(g>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}break f}if((c>>>0)/3>>>0>>0){break f}g=0;if(i[a+220>>2]==i[a+216>>2]){break f}while(1){j:{if(!jd(i[a+368>>2]+(g<<4)|0)){break j}f=i[a+216>>2]+o(g,144)|0;j=f+136|0;c=i[j>>2];l=f+140|0;d=i[l>>2];if(c>>>0>>0){i[c>>2]=b;i[j>>2]=c+4;break j}m=f+132|0;f=i[m>>2];k=c-f|0;c=k>>2;e=c+1|0;if(e>>>0>=1073741824){break c}n=c<<2;d=d-f|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;k:{if(!e){break k}if(e>>>0>=1073741824){break b}c=lk(e<<2)}d=n+c|0;i[d>>2]=b;e=c+(e<<2)|0;d=d+4|0;if((k|0)>=1){Yk(c,f,k)}i[m>>2]=c;i[j>>2]=d;i[l>>2]=e;if(!f){break j}Wk(f)}g=g+1|0;if(g>>>0<(i[a+220>>2]-i[a+216>>2]|0)/144>>>0){continue}break}}p=p+1|0;if((p|0)!=3){b=i[(p<<2)+h>>2];continue}break}F=h+16|0;return 1}Ak();x()}va(8944);x()}Ak();x()}va(8944);x()}function Ja(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=F-96|0;F=e;a:{if(!Ka(1,e+92|0,b)){break a}h=i[e+92>>2];if(!h){break a}d=i[b+8>>2];c=i[b+16>>2];c=hl(d-c|0,i[b+12>>2]-(i[b+20>>2]+(d>>>0>>0)|0)|0,5,0)>>>0>>0;d=H;if((d|0)<0?1:(d|0)<=0?c:0){break a}c=i[a+4>>2];d=i[a+8>>2]-c>>2;b:{if(h>>>0>d>>>0){La(a+4|0,h-d|0);break b}if(h>>>0>=d>>>0){break b}i[a+8>>2]=c+(h<<2)}w=h>>>0>1?h:1;s=a+16|0;t=i[a+32>>2];u=1;while(1){c:{p=i[b+8>>2];n=i[b+16>>2];f=i[b+12>>2];c=f;d=i[b+20>>2];if((c|0)<(d|0)?1:(c|0)<=(d|0)?p>>>0<=n>>>0:0){break c}q=i[b>>2];v=j[q+n|0];c=d;k=n+1|0;if(k>>>0<1){c=c+1|0}g=b;i[b+16>>2]=k;i[b+20>>2]=c;if((f|0)<(c|0)?1:(f|0)<=(c|0)?p>>>0<=k>>>0:0){break c}k=j[k+q|0];c=d;l=n+2|0;if(l>>>0<2){c=c+1|0}i[b+16>>2]=l;i[g+20>>2]=c;if((f|0)<(c|0)?1:(f|0)<=(c|0)?p>>>0<=l>>>0:0){break c}l=j[l+q|0];c=d;r=n+3|0;if(r>>>0<3){c=c+1|0}i[b+16>>2]=r;i[g+20>>2]=c;if((f|0)<(c|0)?1:(f|0)<=(c|0)?p>>>0<=r>>>0:0){break c}f=j[r+q|0];c=d;d=n+4|0;if(d>>>0<4){c=c+1|0}i[b+16>>2]=d;i[g+20>>2]=c;if(!l|(v>>>0>4|(k+ -1&255)>>>0>10)){break c}d=ya(e+24|0);c=o(Vf(k),l);za(d,v,l<<24>>24,k,(f|0)!=0,c,c>>31);if(!Ka(1,e+20|0,b)){break c}g=i[e+20>>2];i[e+84>>2]=g;c=lk(96);Da(c,d);i[e+16>>2]=c;d=Fj(t,e+16|0);c=i[e+16>>2];i[e+16>>2]=0;if(c){Ma(c)}f=d<<2;i[i[f+i[t+8>>2]>>2]+60>>2]=g;i[i[a+4>>2]+(m<<2)>>2]=d;c=i[a+16>>2];g=i[a+20>>2]-c>>2;d:{if((d|0)<(g|0)){break d}i[e+12>>2]=-1;d=d+1|0;if(d>>>0>g>>>0){Na(s,d-g|0,e+12|0);c=i[s>>2];break d}if(d>>>0>=g>>>0){break d}i[a+20>>2]=(d<<2)+c}i[c+f>>2]=m;m=m+1|0;u=m>>>0>>0;if((m|0)!=(w|0)){continue}}break}m=u^1}F=e+96|0;return m&1}function Hd(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=F+ -64|0;F=d;i[d+48>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a:{if(!Qd(d,b)|(i[d+12>>2]?0:a)){break a}if(!Kd(1,d+56|0,b)){break a}f=i[b+8>>2];n=i[b+16>>2];g=n;l=f-g|0;k=i[d+60>>2];e=k;m=i[b+20>>2];g=i[b+12>>2]-(m+(f>>>0>>0)|0)|0;f=i[d+56>>2];if((e|0)==(g|0)&f>>>0>l>>>0|e>>>0>g>>>0){break a}k=k+m|0;g=n;m=g+f|0;if(m>>>0>>0){k=k+1|0}i[b+16>>2]=m;i[b+20>>2]=k;if((f|0)<1){break a}l=n+i[b>>2]|0;i[d+40>>2]=l;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=l+b|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;i[d+44>>2]=b;e=(f+l|0)+ -2|0;e=j[e+1|0]<<8&16128|j[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;i[d+44>>2]=b;e=(f+l|0)+ -3|0;e=j[e+1|0]<<8|j[e+2|0]<<16&4128768|j[e|0];break b}b=f+ -4|0;i[d+44>>2]=b;e=(f+l|0)+ -4|0;e=j[e+2|0]<<16|j[e+3|0]<<24&1056964608|j[e+1|0]<<8|j[e|0];break b}i[d+44>>2]=b;e=j[e|0]&63}h=e+4194304|0;i[g+48>>2]=h;p=h>>>0<1073741824;if(!a|h>>>0>1073741823){break a}m=i[d+28>>2];k=0;n=i[d+16>>2];while(1){g:{if(h>>>0>4194303){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;i[d+44>>2]=b;h=j[b+l|0]|h<<8;i[d+48>>2]=h;if(h>>>0<4194304){continue}break}}f=h&1048575;e=i[(f<<2)+n>>2];g=(e<<3)+m|0;h=(o(i[g>>2],h>>>20|0)+f|0)-i[g+4>>2]|0;i[d+48>>2]=h;i[(k<<2)+c>>2]=e;p=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=i[d+28>>2];if(a){i[d+32>>2]=a;Wk(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Wk(a)}a=i[d>>2];if(a){i[d+4>>2]=a;Wk(a)}F=d- -64|0;return p}function Fd(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=F+ -64|0;F=d;i[d+48>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a:{if(!Od(d,b)|(i[d+12>>2]?0:a)){break a}if(!Kd(1,d+56|0,b)){break a}f=i[b+8>>2];n=i[b+16>>2];g=n;l=f-g|0;k=i[d+60>>2];e=k;m=i[b+20>>2];g=i[b+12>>2]-(m+(f>>>0>>0)|0)|0;f=i[d+56>>2];if((e|0)==(g|0)&f>>>0>l>>>0|e>>>0>g>>>0){break a}k=k+m|0;g=n;m=g+f|0;if(m>>>0>>0){k=k+1|0}i[b+16>>2]=m;i[b+20>>2]=k;if((f|0)<1){break a}l=n+i[b>>2]|0;i[d+40>>2]=l;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=l+b|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;i[d+44>>2]=b;e=(f+l|0)+ -2|0;e=j[e+1|0]<<8&16128|j[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;i[d+44>>2]=b;e=(f+l|0)+ -3|0;e=j[e+1|0]<<8|j[e+2|0]<<16&4128768|j[e|0];break b}b=f+ -4|0;i[d+44>>2]=b;e=(f+l|0)+ -4|0;e=j[e+2|0]<<16|j[e+3|0]<<24&1056964608|j[e+1|0]<<8|j[e|0];break b}i[d+44>>2]=b;e=j[e|0]&63}h=e- -1048576|0;i[g+48>>2]=h;p=h>>>0<268435456;if(!a|h>>>0>268435455){break a}m=i[d+28>>2];k=0;n=i[d+16>>2];while(1){g:{if(h>>>0>1048575){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;i[d+44>>2]=b;h=j[b+l|0]|h<<8;i[d+48>>2]=h;if(h>>>0<1048576){continue}break}}f=h&262143;e=i[(f<<2)+n>>2];g=(e<<3)+m|0;h=(o(i[g>>2],h>>>18|0)+f|0)-i[g+4>>2]|0;i[d+48>>2]=h;i[(k<<2)+c>>2]=e;p=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=i[d+28>>2];if(a){i[d+32>>2]=a;Wk(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Wk(a)}a=i[d>>2];if(a){i[d+4>>2]=a;Wk(a)}F=d- -64|0;return p}function Qd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{if(!k[b+38>>1]){break a}n=a+12|0;if(!Id(1,n,b)){break a}f=i[a+12>>2];c=i[a>>2];d=i[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){fd(a,f-d|0);f=i[a+12>>2];break b}if(f>>>0>=d>>>0){break b}i[a+4>>2]=c+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];l=i[b+12>>2];while(1){e=i[b+16>>2];d=i[b+20>>2];c=d;if((l|0)<(c|0)?1:(l|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];m=j[p+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=d;c=m>>>2|0;e=0;c:{d:{e:{f:{q=m&3;switch(q|0){case 0:break d;case 3:break f;default:break e}}d=c+g|0;if(d>>>0>=f>>>0){return 0}Zk(i[a>>2]+(g<<2)|0,0,(m&252)+4|0);g=d;break c}while(1){if((l|0)<(d|0)?1:(l|0)<=(d|0)?o>>>0<=h>>>0:0){return 0}m=j[h+p|0];h=h+1|0;if(h>>>0<1){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=m<<(e<<3|6)|c;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=c}g=g+1|0;f=i[n>>2];if(g>>>0>>0){continue}break}l=a+16|0;g=i[a>>2];b=i[a+16>>2];d=i[a+20>>2]-b|0;c=d>>2;g:{if(c>>>0<=1048575){fd(l,1048576-c|0);break g}if((d|0)==4194304){break g}i[a+20>>2]=b+4194304}h:{i:{b=a+28|0;d=i[b>>2];c=i[a+32>>2]-d>>3;if(f>>>0>c>>>0){Jd(b,f-c|0);d=i[b>>2];break i}if(f>>>0>>0){i[a+32>>2]=(f<<3)+d}if(f){break i}b=0;a=0;break h}a=i[g>>2];e=0;i[d+4>>2]=0;i[d>>2]=a;b=1;c=i[g>>2];if(c>>>0<=1048576){b=0;while(1){j:{if(e>>>0>>0){a=i[l>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((c|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+d|0;i[h+4>>2]=c;i[h>>2]=e;e=c;c=c+i[a>>2]|0;if(c>>>0>1048576){break j}continue}}break}b=b>>>0>>0}a=(c|0)==1048576}return a&(b^1)}return r}function Gd(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=F+ -64|0;F=d;i[d+48>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a:{if(!Pd(d,b)|(i[d+12>>2]?0:a)){break a}if(!Kd(1,d+56|0,b)){break a}f=i[b+8>>2];n=i[b+16>>2];g=n;l=f-g|0;k=i[d+60>>2];e=k;m=i[b+20>>2];g=i[b+12>>2]-(m+(f>>>0>>0)|0)|0;f=i[d+56>>2];if((e|0)==(g|0)&f>>>0>l>>>0|e>>>0>g>>>0){break a}k=k+m|0;g=n;m=g+f|0;if(m>>>0>>0){k=k+1|0}i[b+16>>2]=m;i[b+20>>2]=k;if((f|0)<1){break a}l=n+i[b>>2]|0;i[d+40>>2]=l;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=l+b|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;i[d+44>>2]=b;e=(f+l|0)+ -2|0;e=j[e+1|0]<<8&16128|j[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;i[d+44>>2]=b;e=(f+l|0)+ -3|0;e=j[e+1|0]<<8|j[e+2|0]<<16&4128768|j[e|0];break b}b=f+ -4|0;i[d+44>>2]=b;e=(f+l|0)+ -4|0;e=j[e+2|0]<<16|j[e+3|0]<<24&1056964608|j[e+1|0]<<8|j[e|0];break b}i[d+44>>2]=b;e=j[e|0]&63}h=e+2097152|0;i[g+48>>2]=h;p=h>>>0<536870912;if(!a|h>>>0>536870911){break a}m=i[d+28>>2];k=0;n=i[d+16>>2];while(1){g:{if(h>>>0>2097151){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;i[d+44>>2]=b;h=j[b+l|0]|h<<8;i[d+48>>2]=h;if(h>>>0<2097152){continue}break}}f=h&524287;e=i[(f<<2)+n>>2];g=(e<<3)+m|0;h=(o(i[g>>2],h>>>19|0)+f|0)-i[g+4>>2]|0;i[d+48>>2]=h;i[(k<<2)+c>>2]=e;p=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=i[d+28>>2];if(a){i[d+32>>2]=a;Wk(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Wk(a)}a=i[d>>2];if(a){i[d+4>>2]=a;Wk(a)}F=d- -64|0;return p}function Od(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{if(!k[b+38>>1]){break a}n=a+12|0;if(!Id(1,n,b)){break a}f=i[a+12>>2];c=i[a>>2];d=i[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){fd(a,f-d|0);f=i[a+12>>2];break b}if(f>>>0>=d>>>0){break b}i[a+4>>2]=c+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];l=i[b+12>>2];while(1){e=i[b+16>>2];d=i[b+20>>2];c=d;if((l|0)<(c|0)?1:(l|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];m=j[p+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=d;c=m>>>2|0;e=0;c:{d:{e:{f:{q=m&3;switch(q|0){case 0:break d;case 3:break f;default:break e}}d=c+g|0;if(d>>>0>=f>>>0){return 0}Zk(i[a>>2]+(g<<2)|0,0,(m&252)+4|0);g=d;break c}while(1){if((l|0)<(d|0)?1:(l|0)<=(d|0)?o>>>0<=h>>>0:0){return 0}m=j[h+p|0];h=h+1|0;if(h>>>0<1){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=m<<(e<<3|6)|c;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=c}g=g+1|0;f=i[n>>2];if(g>>>0>>0){continue}break}l=a+16|0;g=i[a>>2];b=i[a+16>>2];d=i[a+20>>2]-b|0;c=d>>2;g:{if(c>>>0<=262143){fd(l,262144-c|0);break g}if((d|0)==1048576){break g}i[a+20>>2]=b- -1048576}h:{i:{b=a+28|0;d=i[b>>2];c=i[a+32>>2]-d>>3;if(f>>>0>c>>>0){Jd(b,f-c|0);d=i[b>>2];break i}if(f>>>0>>0){i[a+32>>2]=(f<<3)+d}if(f){break i}b=0;a=0;break h}a=i[g>>2];e=0;i[d+4>>2]=0;i[d>>2]=a;b=1;c=i[g>>2];if(c>>>0<=262144){b=0;while(1){j:{if(e>>>0>>0){a=i[l>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((c|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+d|0;i[h+4>>2]=c;i[h>>2]=e;e=c;c=c+i[a>>2]|0;if(c>>>0>262144){break j}continue}}break}b=b>>>0>>0}a=(c|0)==262144}return a&(b^1)}return r}function Pd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{if(!k[b+38>>1]){break a}n=a+12|0;if(!Id(1,n,b)){break a}f=i[a+12>>2];c=i[a>>2];d=i[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){fd(a,f-d|0);f=i[a+12>>2];break b}if(f>>>0>=d>>>0){break b}i[a+4>>2]=c+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];l=i[b+12>>2];while(1){e=i[b+16>>2];d=i[b+20>>2];c=d;if((l|0)<(c|0)?1:(l|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];m=j[p+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=d;c=m>>>2|0;e=0;c:{d:{e:{f:{q=m&3;switch(q|0){case 0:break d;case 3:break f;default:break e}}d=c+g|0;if(d>>>0>=f>>>0){return 0}Zk(i[a>>2]+(g<<2)|0,0,(m&252)+4|0);g=d;break c}while(1){if((l|0)<(d|0)?1:(l|0)<=(d|0)?o>>>0<=h>>>0:0){return 0}m=j[h+p|0];h=h+1|0;if(h>>>0<1){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=m<<(e<<3|6)|c;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=c}g=g+1|0;f=i[n>>2];if(g>>>0>>0){continue}break}l=a+16|0;g=i[a>>2];b=i[a+16>>2];d=i[a+20>>2]-b|0;c=d>>2;g:{if(c>>>0<=524287){fd(l,524288-c|0);break g}if((d|0)==2097152){break g}i[a+20>>2]=b+2097152}h:{i:{b=a+28|0;d=i[b>>2];c=i[a+32>>2]-d>>3;if(f>>>0>c>>>0){Jd(b,f-c|0);d=i[b>>2];break i}if(f>>>0>>0){i[a+32>>2]=(f<<3)+d}if(f){break i}b=0;a=0;break h}a=i[g>>2];e=0;i[d+4>>2]=0;i[d>>2]=a;b=1;c=i[g>>2];if(c>>>0<=524288){b=0;while(1){j:{if(e>>>0>>0){a=i[l>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((c|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+d|0;i[h+4>>2]=c;i[h>>2]=e;e=c;c=c+i[a>>2]|0;if(c>>>0>524288){break j}continue}}break}b=b>>>0>>0}a=(c|0)==524288}return a&(b^1)}return r}function Ed(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=F+ -64|0;F=d;i[d+48>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a:{if(!Nd(d,b)|(i[d+12>>2]?0:a)){break a}if(!Kd(1,d+56|0,b)){break a}f=i[b+8>>2];n=i[b+16>>2];g=n;l=f-g|0;k=i[d+60>>2];e=k;m=i[b+20>>2];g=i[b+12>>2]-(m+(f>>>0>>0)|0)|0;f=i[d+56>>2];if((e|0)==(g|0)&f>>>0>l>>>0|e>>>0>g>>>0){break a}k=k+m|0;g=n;m=g+f|0;if(m>>>0>>0){k=k+1|0}i[b+16>>2]=m;i[b+20>>2]=k;if((f|0)<1){break a}l=n+i[b>>2]|0;i[d+40>>2]=l;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=l+b|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;i[d+44>>2]=b;e=(f+l|0)+ -2|0;e=j[e+1|0]<<8&16128|j[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;i[d+44>>2]=b;e=(f+l|0)+ -3|0;e=j[e+1|0]<<8|j[e+2|0]<<16&4128768|j[e|0];break b}b=f+ -4|0;i[d+44>>2]=b;e=(f+l|0)+ -4|0;e=j[e+2|0]<<16|j[e+3|0]<<24&1056964608|j[e+1|0]<<8|j[e|0];break b}i[d+44>>2]=b;e=j[e|0]&63}h=e+262144|0;i[g+48>>2]=h;p=h>>>0<67108864;if(!a|h>>>0>67108863){break a}m=i[d+28>>2];k=0;n=i[d+16>>2];while(1){g:{if(h>>>0>262143){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;i[d+44>>2]=b;h=j[b+l|0]|h<<8;i[d+48>>2]=h;if(h>>>0<262144){continue}break}}f=h&65535;e=i[(f<<2)+n>>2];g=(e<<3)+m|0;h=(o(i[g>>2],h>>>16|0)+f|0)-i[g+4>>2]|0;i[d+48>>2]=h;i[(k<<2)+c>>2]=e;p=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=i[d+28>>2];if(a){i[d+32>>2]=a;Wk(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Wk(a)}a=i[d>>2];if(a){i[d+4>>2]=a;Wk(a)}F=d- -64|0;return p}function Dd(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=F+ -64|0;F=d;i[d+48>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a:{if(!Md(d,b)|(i[d+12>>2]?0:a)){break a}if(!Kd(1,d+56|0,b)){break a}f=i[b+8>>2];n=i[b+16>>2];g=n;l=f-g|0;k=i[d+60>>2];e=k;m=i[b+20>>2];g=i[b+12>>2]-(m+(f>>>0>>0)|0)|0;f=i[d+56>>2];if((e|0)==(g|0)&f>>>0>l>>>0|e>>>0>g>>>0){break a}k=k+m|0;g=n;m=g+f|0;if(m>>>0>>0){k=k+1|0}i[b+16>>2]=m;i[b+20>>2]=k;if((f|0)<1){break a}l=n+i[b>>2]|0;i[d+40>>2]=l;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=l+b|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;i[d+44>>2]=b;e=(f+l|0)+ -2|0;e=j[e+1|0]<<8&16128|j[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;i[d+44>>2]=b;e=(f+l|0)+ -3|0;e=j[e+1|0]<<8|j[e+2|0]<<16&4128768|j[e|0];break b}b=f+ -4|0;i[d+44>>2]=b;e=(f+l|0)+ -4|0;e=j[e+2|0]<<16|j[e+3|0]<<24&1056964608|j[e+1|0]<<8|j[e|0];break b}i[d+44>>2]=b;e=j[e|0]&63}h=e+131072|0;i[g+48>>2]=h;p=h>>>0<33554432;if(!a|h>>>0>33554431){break a}m=i[d+28>>2];k=0;n=i[d+16>>2];while(1){g:{if(h>>>0>131071){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;i[d+44>>2]=b;h=j[b+l|0]|h<<8;i[d+48>>2]=h;if(h>>>0<131072){continue}break}}f=h&32767;e=i[(f<<2)+n>>2];g=(e<<3)+m|0;h=(o(i[g>>2],h>>>15|0)+f|0)-i[g+4>>2]|0;i[d+48>>2]=h;i[(k<<2)+c>>2]=e;p=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=i[d+28>>2];if(a){i[d+32>>2]=a;Wk(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Wk(a)}a=i[d>>2];if(a){i[d+4>>2]=a;Wk(a)}F=d- -64|0;return p}function Nd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{if(!k[b+38>>1]){break a}n=a+12|0;if(!Id(1,n,b)){break a}f=i[a+12>>2];c=i[a>>2];d=i[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){fd(a,f-d|0);f=i[a+12>>2];break b}if(f>>>0>=d>>>0){break b}i[a+4>>2]=c+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];l=i[b+12>>2];while(1){e=i[b+16>>2];d=i[b+20>>2];c=d;if((l|0)<(c|0)?1:(l|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];m=j[p+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=d;c=m>>>2|0;e=0;c:{d:{e:{f:{q=m&3;switch(q|0){case 0:break d;case 3:break f;default:break e}}d=c+g|0;if(d>>>0>=f>>>0){return 0}Zk(i[a>>2]+(g<<2)|0,0,(m&252)+4|0);g=d;break c}while(1){if((l|0)<(d|0)?1:(l|0)<=(d|0)?o>>>0<=h>>>0:0){return 0}m=j[h+p|0];h=h+1|0;if(h>>>0<1){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=m<<(e<<3|6)|c;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=c}g=g+1|0;f=i[n>>2];if(g>>>0>>0){continue}break}l=a+16|0;g=i[a>>2];b=i[a+16>>2];d=i[a+20>>2]-b|0;c=d>>2;g:{if(c>>>0<=65535){fd(l,65536-c|0);break g}if((d|0)==262144){break g}i[a+20>>2]=b+262144}h:{i:{b=a+28|0;d=i[b>>2];c=i[a+32>>2]-d>>3;if(f>>>0>c>>>0){Jd(b,f-c|0);d=i[b>>2];break i}if(f>>>0>>0){i[a+32>>2]=(f<<3)+d}if(f){break i}b=0;a=0;break h}a=i[g>>2];e=0;i[d+4>>2]=0;i[d>>2]=a;b=1;c=i[g>>2];if(c>>>0<=65536){b=0;while(1){j:{if(e>>>0>>0){a=i[l>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((c|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+d|0;i[h+4>>2]=c;i[h>>2]=e;e=c;c=c+i[a>>2]|0;if(c>>>0>65536){break j}continue}}break}b=b>>>0>>0}a=(c|0)==65536}return a&(b^1)}return r}function Md(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{if(!k[b+38>>1]){break a}n=a+12|0;if(!Id(1,n,b)){break a}f=i[a+12>>2];c=i[a>>2];d=i[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){fd(a,f-d|0);f=i[a+12>>2];break b}if(f>>>0>=d>>>0){break b}i[a+4>>2]=c+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];l=i[b+12>>2];while(1){e=i[b+16>>2];d=i[b+20>>2];c=d;if((l|0)<(c|0)?1:(l|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];m=j[p+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=d;c=m>>>2|0;e=0;c:{d:{e:{f:{q=m&3;switch(q|0){case 0:break d;case 3:break f;default:break e}}d=c+g|0;if(d>>>0>=f>>>0){return 0}Zk(i[a>>2]+(g<<2)|0,0,(m&252)+4|0);g=d;break c}while(1){if((l|0)<(d|0)?1:(l|0)<=(d|0)?o>>>0<=h>>>0:0){return 0}m=j[h+p|0];h=h+1|0;if(h>>>0<1){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=m<<(e<<3|6)|c;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=c}g=g+1|0;f=i[n>>2];if(g>>>0>>0){continue}break}l=a+16|0;g=i[a>>2];b=i[a+16>>2];d=i[a+20>>2]-b|0;c=d>>2;g:{if(c>>>0<=32767){fd(l,32768-c|0);break g}if((d|0)==131072){break g}i[a+20>>2]=b+131072}h:{i:{b=a+28|0;d=i[b>>2];c=i[a+32>>2]-d>>3;if(f>>>0>c>>>0){Jd(b,f-c|0);d=i[b>>2];break i}if(f>>>0>>0){i[a+32>>2]=(f<<3)+d}if(f){break i}b=0;a=0;break h}a=i[g>>2];e=0;i[d+4>>2]=0;i[d>>2]=a;b=1;c=i[g>>2];if(c>>>0<=32768){b=0;while(1){j:{if(e>>>0>>0){a=i[l>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((c|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+d|0;i[h+4>>2]=c;i[h>>2]=e;e=c;c=c+i[a>>2]|0;if(c>>>0>32768){break j}continue}}break}b=b>>>0>>0}a=(c|0)==32768}return a&(b^1)}return r}function Cd(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=F+ -64|0;F=d;i[d+48>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a:{if(!Ld(d,b)|(i[d+12>>2]?0:a)){break a}if(!Kd(1,d+56|0,b)){break a}f=i[b+8>>2];n=i[b+16>>2];g=n;l=f-g|0;k=i[d+60>>2];e=k;m=i[b+20>>2];g=i[b+12>>2]-(m+(f>>>0>>0)|0)|0;f=i[d+56>>2];if((e|0)==(g|0)&f>>>0>l>>>0|e>>>0>g>>>0){break a}k=k+m|0;g=n;m=g+f|0;if(m>>>0>>0){k=k+1|0}i[b+16>>2]=m;i[b+20>>2]=k;if((f|0)<1){break a}l=n+i[b>>2]|0;i[d+40>>2]=l;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=l+b|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;i[d+44>>2]=b;e=(f+l|0)+ -2|0;e=j[e+1|0]<<8&16128|j[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;i[d+44>>2]=b;e=(f+l|0)+ -3|0;e=j[e+1|0]<<8|j[e+2|0]<<16&4128768|j[e|0];break b}b=f+ -4|0;i[d+44>>2]=b;e=(f+l|0)+ -4|0;e=j[e+2|0]<<16|j[e+3|0]<<24&1056964608|j[e+1|0]<<8|j[e|0];break b}i[d+44>>2]=b;e=j[e|0]&63}h=e+32768|0;i[g+48>>2]=h;p=h>>>0<8388608;if(!a|h>>>0>8388607){break a}m=i[d+28>>2];k=0;n=i[d+16>>2];while(1){g:{if(h>>>0>32767){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;i[d+44>>2]=b;h=j[b+l|0]|h<<8;i[d+48>>2]=h;if(h>>>0<32768){continue}break}}f=h&8191;e=i[(f<<2)+n>>2];g=(e<<3)+m|0;h=(o(i[g>>2],h>>>13|0)+f|0)-i[g+4>>2]|0;i[d+48>>2]=h;i[(k<<2)+c>>2]=e;p=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=i[d+28>>2];if(a){i[d+32>>2]=a;Wk(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Wk(a)}a=i[d>>2];if(a){i[d+4>>2]=a;Wk(a)}F=d- -64|0;return p}function Ad(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=F+ -64|0;F=d;i[d+48>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a:{if(!yd(d,b)|(i[d+12>>2]?0:a)){break a}if(!Kd(1,d+56|0,b)){break a}f=i[b+8>>2];n=i[b+16>>2];g=n;l=f-g|0;k=i[d+60>>2];e=k;m=i[b+20>>2];g=i[b+12>>2]-(m+(f>>>0>>0)|0)|0;f=i[d+56>>2];if((e|0)==(g|0)&f>>>0>l>>>0|e>>>0>g>>>0){break a}k=k+m|0;g=n;m=g+f|0;if(m>>>0>>0){k=k+1|0}i[b+16>>2]=m;i[b+20>>2]=k;if((f|0)<1){break a}l=n+i[b>>2]|0;i[d+40>>2]=l;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=l+b|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;i[d+44>>2]=b;e=(f+l|0)+ -2|0;e=j[e+1|0]<<8&16128|j[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;i[d+44>>2]=b;e=(f+l|0)+ -3|0;e=j[e+1|0]<<8|j[e+2|0]<<16&4128768|j[e|0];break b}b=f+ -4|0;i[d+44>>2]=b;e=(f+l|0)+ -4|0;e=j[e+2|0]<<16|j[e+3|0]<<24&1056964608|j[e+1|0]<<8|j[e|0];break b}i[d+44>>2]=b;e=j[e|0]&63}h=e+16384|0;i[g+48>>2]=h;p=h>>>0<4194304;if(!a|h>>>0>4194303){break a}m=i[d+28>>2];k=0;n=i[d+16>>2];while(1){g:{if(h>>>0>16383){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;i[d+44>>2]=b;h=j[b+l|0]|h<<8;i[d+48>>2]=h;if(h>>>0<16384){continue}break}}f=h&4095;e=i[(f<<2)+n>>2];g=(e<<3)+m|0;h=(o(i[g>>2],h>>>12|0)+f|0)-i[g+4>>2]|0;i[d+48>>2]=h;i[(k<<2)+c>>2]=e;p=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=i[d+28>>2];if(a){i[d+32>>2]=a;Wk(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Wk(a)}a=i[d>>2];if(a){i[d+4>>2]=a;Wk(a)}F=d- -64|0;return p}function yd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{if(!k[b+38>>1]){break a}n=a+12|0;if(!Id(1,n,b)){break a}f=i[a+12>>2];c=i[a>>2];d=i[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){fd(a,f-d|0);f=i[a+12>>2];break b}if(f>>>0>=d>>>0){break b}i[a+4>>2]=c+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];l=i[b+12>>2];while(1){e=i[b+16>>2];d=i[b+20>>2];c=d;if((l|0)<(c|0)?1:(l|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];m=j[p+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=d;c=m>>>2|0;e=0;c:{d:{e:{f:{q=m&3;switch(q|0){case 0:break d;case 3:break f;default:break e}}d=c+g|0;if(d>>>0>=f>>>0){return 0}Zk(i[a>>2]+(g<<2)|0,0,(m&252)+4|0);g=d;break c}while(1){if((l|0)<(d|0)?1:(l|0)<=(d|0)?o>>>0<=h>>>0:0){return 0}m=j[h+p|0];h=h+1|0;if(h>>>0<1){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=m<<(e<<3|6)|c;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=c}g=g+1|0;f=i[n>>2];if(g>>>0>>0){continue}break}l=a+16|0;g=i[a>>2];b=i[a+16>>2];d=i[a+20>>2]-b|0;c=d>>2;g:{if(c>>>0<=4095){fd(l,4096-c|0);break g}if((d|0)==16384){break g}i[a+20>>2]=b+16384}h:{i:{b=a+28|0;d=i[b>>2];c=i[a+32>>2]-d>>3;if(f>>>0>c>>>0){Jd(b,f-c|0);d=i[b>>2];break i}if(f>>>0>>0){i[a+32>>2]=(f<<3)+d}if(f){break i}b=0;a=0;break h}a=i[g>>2];e=0;i[d+4>>2]=0;i[d>>2]=a;b=1;c=i[g>>2];if(c>>>0<=4096){b=0;while(1){j:{if(e>>>0>>0){a=i[l>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((c|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+d|0;i[h+4>>2]=c;i[h>>2]=e;e=c;c=c+i[a>>2]|0;if(c>>>0>4096){break j}continue}}break}b=b>>>0>>0}a=(c|0)==4096}return a&(b^1)}return r}function Ld(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{if(!k[b+38>>1]){break a}n=a+12|0;if(!Id(1,n,b)){break a}f=i[a+12>>2];c=i[a>>2];d=i[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){fd(a,f-d|0);f=i[a+12>>2];break b}if(f>>>0>=d>>>0){break b}i[a+4>>2]=c+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];l=i[b+12>>2];while(1){e=i[b+16>>2];d=i[b+20>>2];c=d;if((l|0)<(c|0)?1:(l|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];m=j[p+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=d;c=m>>>2|0;e=0;c:{d:{e:{f:{q=m&3;switch(q|0){case 0:break d;case 3:break f;default:break e}}d=c+g|0;if(d>>>0>=f>>>0){return 0}Zk(i[a>>2]+(g<<2)|0,0,(m&252)+4|0);g=d;break c}while(1){if((l|0)<(d|0)?1:(l|0)<=(d|0)?o>>>0<=h>>>0:0){return 0}m=j[h+p|0];h=h+1|0;if(h>>>0<1){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=m<<(e<<3|6)|c;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=c}g=g+1|0;f=i[n>>2];if(g>>>0>>0){continue}break}l=a+16|0;g=i[a>>2];b=i[a+16>>2];d=i[a+20>>2]-b|0;c=d>>2;g:{if(c>>>0<=8191){fd(l,8192-c|0);break g}if((d|0)==32768){break g}i[a+20>>2]=b+32768}h:{i:{b=a+28|0;d=i[b>>2];c=i[a+32>>2]-d>>3;if(f>>>0>c>>>0){Jd(b,f-c|0);d=i[b>>2];break i}if(f>>>0>>0){i[a+32>>2]=(f<<3)+d}if(f){break i}b=0;a=0;break h}a=i[g>>2];e=0;i[d+4>>2]=0;i[d>>2]=a;b=1;c=i[g>>2];if(c>>>0<=8192){b=0;while(1){j:{if(e>>>0>>0){a=i[l>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((c|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+d|0;i[h+4>>2]=c;i[h>>2]=e;e=c;c=c+i[a>>2]|0;if(c>>>0>8192){break j}continue}}break}b=b>>>0>>0}a=(c|0)==8192}return a&(b^1)}return r}function Tc(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=c;k=i[b+16>>2];g=i[f+4>>2]-k|0;e=i[f>>2]-k|0;i[f>>2]=e;i[f+4>>2]=g;f=g>>31;h=f+g^f;f=e>>31;m=i[b+16>>2];l=(h+(f+e^f)|0)<=(m|0);a:{if(l){f=g;break a}b:{c:{if((e|0)>=0){j=1;h=1;if((g|0)>-1){break b}f=1;j=-1;h=-1;if((e|0)>=1){break c}break b}f=-1;j=-1;h=-1;if((g|0)<1){break b}}j=(g|0)<1?-1:1;h=f}f=e<<1;e=o(h,m);f=f-e|0;h=(o(h,j)|0)>-1;j=o(j,m);f=((h?0-f|0:f)+j|0)/2|0;i[c+4>>2]=f;g=(g<<1)-j|0;e=(e+(h?0-g|0:g)|0)/2|0;i[c>>2]=e}d:{e:{f:{g:{h:{if(!e){if(f){break h}j=1;f=0;g=0;h=0;break d}j=1;g=(e|0)<0&(f|0)<1;i:{if((e|0)>=1){h=(f|0)>-1?2:1;if(!g){break i}g=e;break d}h=(f|0)>0?3:0;if(!g){break i}g=e;break d}j=h+ -1|0;h=0;g=e;j:{switch(j|0){case 1:break j;case 0:break f;case 2:break g;default:break e}}f=0-f|0;g=0-e|0;h=2;break e}if((f|0)<1){break f}}g=0-f|0;h=3;f=e;break e}h=1;g=f;f=0-e|0}e=c;i[e>>2]=g;i[e+4>>2]=f;j=0}c=i[d+4>>2]+f|0;f=i[b+16>>2];e=i[d>>2]+g|0;k:{if((f|0)<(e|0)){e=e-i[b+4>>2]|0;break k}if((e|0)>=(0-f|0)){break k}e=i[b+4>>2]+e|0}l:{if((f|0)<(c|0)){c=c-i[b+4>>2]|0;break l}if((c|0)>=(0-f|0)){break l}c=i[b+4>>2]+c|0}m:{if(j){b=c;break m}b=c;n:{switch((4-h&3)+ -1|0){case 0:b=0-e|0;e=c;break m;case 1:b=0-c|0;e=0-e|0;break m;case 2:break n;default:break m}}b=e;e=0-c|0}o:{if(l){c=b;break o}p:{q:{if((e|0)>=0){c=1;g=1;if((b|0)>-1){break p}d=1;c=-1;g=-1;if((e|0)>=1){break q}break p}d=-1;c=-1;g=-1;if((b|0)<1){break p}}c=(b|0)<1?-1:1;g=d}d=e<<1;e=o(f,g);d=d-e|0;i[a>>2]=d;l=0-d|0;h=d;d=(o(c,g)|0)>-1;g=o(c,f);c=((d?l:h)+g|0)/2|0;b=(b<<1)-g|0;e=(e+(d?0-b|0:b)|0)/2|0}i[a>>2]=e+k;i[a+4>>2]=c+k}function Ee(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;h=F-16|0;F=h;a:{if(!hd(a+80|0,a)){break a}if(!te(a)){break a}c=i[a+4>>2];i[b>>2]=i[a>>2];i[b+4>>2]=c;c=i[a+36>>2];i[b+32>>2]=i[a+32>>2];i[b+36>>2]=c;c=i[a+28>>2];i[b+24>>2]=i[a+24>>2];i[b+28>>2]=c;c=i[a+20>>2];i[b+16>>2]=i[a+16>>2];i[b+20>>2]=c;c=i[a+12>>2];i[b+8>>2]=i[a+8>>2];i[b+12>>2]=c;i[a+176>>2]=2;i[a+180>>2]=7;c=i[a+152>>2];if((c|0)<0){break a}i[h+12>>2]=0;d=2;f=i[a+156>>2];g=i[a+160>>2]-f>>2;b:{if(c>>>0>g>>>0){Na(a+156|0,c-g|0,h+12|0);d=i[a+176>>2];e=i[a+180>>2];break b}e=7;if(c>>>0>=g>>>0){break b}i[a+160>>2]=f+(c<<2)}g=a+184|0;e=(e-d|0)+1|0;c=i[a+188>>2];f=i[a+184>>2];d=(c-f|0)/12|0;c:{if(e>>>0>d>>>0){Ge(g,e-d|0);e=i[a+188>>2];break c}if(e>>>0>=d>>>0){e=c;break c}e=f+o(e,12)|0;if((e|0)!=(c|0)){while(1){d=c+ -12|0;f=i[d>>2];if(f){i[c+ -8>>2]=f;Wk(f)}c=d;if((c|0)!=(e|0)){continue}break}}i[a+188>>2]=e}l=a+196|0;d=i[a+184>>2];c=(e-d|0)/12|0;j=i[a+196>>2];f=i[a+200>>2]-j>>2;d:{if(c>>>0>f>>>0){La(l,c-f|0);d=i[a+184>>2];e=i[a+188>>2];break d}if(c>>>0>=f>>>0){break d}i[a+200>>2]=j+(c<<2)}if((d|0)==(e|0)){d=1;break a}c=0;while(1){e:{if(!oe(1,h+8|0,b)){break e}d=i[h+8>>2];e=i[a+148>>2];if(d>>>0>(i[e+4>>2]-i[e>>2]>>2>>>0)/3>>>0){break e}if(d){e=i[g>>2];m=o(c,12);f=e+m|0;j=i[f>>2];k=i[f+4>>2]-j>>2;f:{if(d>>>0>k>>>0){fd(f,d-k|0);e=i[g>>2];break f}if(d>>>0>=k>>>0){break f}i[f+4>>2]=(d<<2)+j}vd(d,1,b,i[e+m>>2]);i[i[l>>2]+(c<<2)>>2]=d}d=1;c=c+1|0;if(c>>>0<(i[a+188>>2]-i[a+184>>2]|0)/12>>>0){continue}break a}break}d=0}F=h+16|0;return d}function nb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=F-16|0;F=e;h=I[i[i[a>>2]+24>>2]](a)|0;a:{if((h|0)<1){break a}q=a+48|0;k=1;while(1){b:{c:{if(!i[(I[i[i[a>>2]+28>>2]](a)|0)+40>>2]){break c}l=f<<2;b=i[l+i[a+36>>2]>>2];c=i[b+8>>2];m=bb(b);if(!m){break c}n=i[(I[i[i[a>>2]+28>>2]](a)|0)+40>>2];o=i[c+56>>2];b=lk(32);i[e>>2]=b;i[e+4>>2]=24;i[e+8>>2]=-2147483616;g[b+24|0]=0;c=j[1808]|j[1809]<<8|(j[1810]<<16|j[1811]<<24);d=j[1804]|j[1805]<<8|(j[1806]<<16|j[1807]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[1800]|j[1801]<<8|(j[1802]<<16|j[1803]<<24);d=j[1796]|j[1797]<<8|(j[1798]<<16|j[1799]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[1792]|j[1793]<<8|(j[1794]<<16|j[1795]<<24);d=j[1788]|j[1789]<<8|(j[1790]<<16|j[1791]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;d:{e:{d=n+16|0;b=d;c=i[b>>2];if(!c){break e}while(1){p=i[c+16>>2]<(o|0);b=p?b:c;c=i[(p<<2)+c>>2];if(c){continue}break}if((b|0)==(d|0)|(o|0)>2]){break e}b=b+20|0;if(!Xa(b,e)){break e}b=Zf(b,e);break d}b=Zf(n,e)}if(g[e+11|0]<=-1){Wk(i[e>>2])}if(!b){break c}Fa(i[i[i[a+36>>2]+l>>2]+8>>2],m);break b}b=i[i[a+36>>2]+(f<<2)>>2];if(!(I[i[i[b>>2]+24>>2]](b,q)|0)){break a}}f=f+1|0;k=(f|0)<(h|0);if((f|0)!=(h|0)){continue}break}}F=e+16|0;return(k^-1)&1}function td(a,b,c,d,e){var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{b:{c:{d:{e:{n=a+4|0;f:{if((n|0)==(b|0)){break f}f=j[b+27|0];h=f<<24>>24<0;k=j[e+11|0];p=k<<24>>24;g=(p|0)<0;f=h?i[b+20>>2]:f;k=g?i[e+4>>2]:k;l=f>>>0>>0;m=l?f:k;if(m){g=g?i[e>>2]:e;o=b+16|0;h=h?i[o>>2]:o;o=Lj(g,h,m);if(!o){if(k>>>0>>0){break f}break e}if((o|0)>-1){break e}break f}if(k>>>0>=f>>>0){break d}}h=i[b>>2];d=b;g:{h:{if(i[a>>2]==(b|0)){break h}i:{if(h){f=h;while(1){d=f;f=i[f+4>>2];if(f){continue}break}break i}d=b+8|0;if(i[i[b+8>>2]>>2]==(b|0)){while(1){f=i[d>>2];d=f+8|0;if((f|0)==i[i[f+8>>2]>>2]){continue}break}}d=i[d>>2]}g=j[e+11|0];f=g<<24>>24<0;l=j[d+27|0];k=l<<24>>24<0;j:{g=f?i[e+4>>2]:g;l=k?i[d+20>>2]:l;m=g>>>0>>0?g:l;if(m){n=d+16|0;f=Lj(k?i[n>>2]:n,f?i[e>>2]:e,m);if(f){break j}}if(l>>>0>>0){break h}break g}if((f|0)>-1){break g}}if(!h){i[c>>2]=b;return b}i[c>>2]=d;return d+4|0}return ud(a,c,e)}f=Lj(h,g,m);if(f){break c}}if(l){break b}break a}if((f|0)>-1){break a}}h=i[b+4>>2];k:{if(h){f=h;while(1){d=f;f=i[f>>2];if(f){continue}break}break k}d=i[b+8>>2];if(i[d>>2]==(b|0)){break k}f=b+8|0;while(1){g=i[f>>2];f=g+8|0;d=i[g+8>>2];if((g|0)!=i[d>>2]){continue}break}}l:{m:{if((d|0)==(n|0)){break m}g=j[d+27|0];f=g<<24>>24<0;n:{g=f?i[d+20>>2]:g;l=g>>>0>>0?g:k;if(l){m=d+16|0;f=Lj((p|0)<0?i[e>>2]:e,f?i[m>>2]:m,l);if(f){break n}}if(k>>>0>>0){break m}break l}if((f|0)>-1){break l}}if(!h){i[c>>2]=b;return b+4|0}i[c>>2]=d;return d}return ud(a,c,e)}i[c>>2]=b;i[d>>2]=b;return d}function ld(a,b){var c=0,d=0,e=0;c=F-96|0;F=c;d=i[b+36>>2];i[c+88>>2]=i[b+32>>2];i[c+92>>2]=d;d=i[b+28>>2];i[c+80>>2]=i[b+24>>2];i[c+84>>2]=d;d=i[b+20>>2];i[c+72>>2]=i[b+16>>2];i[c+76>>2]=d;e=i[b+12>>2];d=c- -64|0;i[d>>2]=i[b+8>>2];i[d+4>>2]=e;d=i[b+4>>2];i[c+56>>2]=i[b>>2];i[c+60>>2]=d;Cf(c+24|0,c+56|0,c+40|0);b=i[c+24>>2];a:{if(b){i[a>>2]=b;ok(a+4|0,c+24|4);if(g[c+39|0]>-1){break a}Wk(i[c+28>>2]);break a}if(g[c+39|0]<=-1){Wk(i[c+28>>2])}b=j[c+47|0];if(b>>>0>=2){b=lk(32);i[c+8>>2]=b;i[c+12>>2]=26;i[c+16>>2]=-2147483616;g[b+26|0]=0;d=j[8009]|j[8010]<<8;g[b+24|0]=d;g[b+25|0]=d>>>8;d=j[8005]|j[8006]<<8|(j[8007]<<16|j[8008]<<24);e=j[8001]|j[8002]<<8|(j[8003]<<16|j[8004]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[7997]|j[7998]<<8|(j[7999]<<16|j[8e3]<<24);e=j[7993]|j[7994]<<8|(j[7995]<<16|j[7996]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[7989]|j[7990]<<8|(j[7991]<<16|j[7992]<<24);e=j[7985]|j[7986]<<8|(j[7987]<<16|j[7988]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[c+24>>2]=-1;b=ok(c+24|4,c+8|0);i[a>>2]=i[c+24>>2];ok(a+4|0,b);if(g[b+11|0]<=-1){Wk(i[b>>2])}if(g[c+19|0]>-1){break a}Wk(i[c+8>>2]);break a}i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;i[a+8>>2]=0;i[a+12>>2]=0}F=c+96|0}function se(a,b){var c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;n=F-16|0;F=n;s=-1;a:{b:{c:{if(!oe(1,n+12|0,b)){break c}d=i[n+12>>2];if(d){c=i[a+8>>2];if(d>>>0>(i[c+4>>2]-i[c>>2]>>2>>>0)/3>>>0){break c}t=a+36|0;while(1){if(!oe(1,n+8|0,b)){break c}c=i[n+8>>2];if(!oe(1,n+8|0,b)){break c}m=c+m|0;c=i[n+8>>2];if(m>>>0>>0){break c}h=m-c|0;c=i[a+40>>2];d:{if((c|0)!=i[a+44>>2]){i[c+4>>2]=m;i[c>>2]=h;i[a+40>>2]=c+12;break d}e=c;c=i[t>>2];q=e-c|0;f=(q|0)/12|0;p=f+1|0;if(p>>>0>=357913942){break b}e=f<<1;p=f>>>0<178956970?e>>>0

>>0?p:e:357913941;e=0;e:{if(!p){break e}if(p>>>0>=357913942){break a}e=lk(o(p,12))}f=e+o(f,12)|0;i[f+4>>2]=m;i[f>>2]=h;h=f+o((q|0)/-12|0,12)|0;e=e+o(p,12)|0;f=f+12|0;if((q|0)>=1){Yk(h,c,q)}i[a+44>>2]=e;i[a+40>>2]=f;i[a+36>>2]=h;if(!c){break d}Wk(c)}r=r+1|0;if((d|0)!=(r|0)){continue}break}m=0;Sf(b,0,0);q=d>>>0>1?d:1;while(1){d=j[b+36|0];c=k[i[a+4>>2]+36>>1];f:{if((c<<24|c<<8&16711680)>>>16>>>0<=513){if(!d){break f}h=0;d=i[b+32>>2];r=d>>>3|0;f=i[b+24>>2];c=r+f|0;e=i[b+28>>2];g:{if(c>>>0>=e>>>0){c=d;break g}h=j[c|0];c=d+1|0;i[b+32>>2]=c;r=c>>>3|0;h=h>>>(d&7)&1}if(f+r>>>0>=e>>>0){break f}i[b+32>>2]=c+1;break f}if(!d){break f}h=0;d=i[b+32>>2];c=i[b+24>>2]+(d>>>3|0)|0;if(c>>>0>=l[b+28>>2]){break f}c=j[c|0];i[b+32>>2]=d+1;h=c>>>(d&7)&1}d=i[a+36>>2]+o(m,12)|0;g[d+8|0]=j[d+8|0]&254|h&1;m=m+1|0;if((q|0)!=(m|0)){continue}break}Uf(b)}s=i[b+16>>2]}F=n+16|0;return s}Ak();x()}va(8944);x()}function md(a,b,c,d){var e=0,f=0,h=0;e=F-80|0;F=e;f=i[c+36>>2];i[e+72>>2]=i[c+32>>2];i[e+76>>2]=f;h=i[c+28>>2];f=e- -64|0;i[f>>2]=i[c+24>>2];i[f+4>>2]=h;f=i[c+20>>2];i[e+56>>2]=i[c+16>>2];i[e+60>>2]=f;f=i[c+12>>2];i[e+48>>2]=i[c+8>>2];i[e+52>>2]=f;f=i[c+4>>2];i[e+40>>2]=i[c>>2];i[e+44>>2]=f;Cf(a,e+40|0,e+24|0);a:{if(i[a>>2]){break a}f=a+4|0;if(g[a+15|0]<=-1){Wk(i[f>>2])}if(j[e+31|0]!=1){b=lk(32);i[e>>2]=b;i[e+4>>2]=20;i[e+8>>2]=-2147483616;g[b+20|0]=0;c=j[8028]|j[8029]<<8|(j[8030]<<16|j[8031]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;c=j[8024]|j[8025]<<8|(j[8026]<<16|j[8027]<<24);d=j[8020]|j[8021]<<8|(j[8022]<<16|j[8023]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[8016]|j[8017]<<8|(j[8018]<<16|j[8019]<<24);d=j[8012]|j[8013]<<8|(j[8014]<<16|j[8015]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ok(f,e);if(g[e+11|0]>-1){break a}Wk(i[e>>2]);break a}kd(e,j[e+32|0]);h=i[e>>2];b:{if(h){i[a>>2]=h;ok(f,e|4);break b}h=i[e+16>>2];i[e+16>>2]=0;i[h+44>>2]=d;Ff(a,h,b,c,d);if(!i[a>>2]){if(g[f+11|0]<=-1){Wk(i[f>>2])}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}if(!h){break b}I[i[i[h>>2]+4>>2]](h)}a=i[e+16>>2];i[e+16>>2]=0;if(a){I[i[i[a>>2]+4>>2]](a)}if(g[e+15|0]>-1){break a}Wk(i[e+4>>2])}F=e+80|0}function Fc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;i[a+8>>2]=e;h=a+32|0;g=i[h>>2];f=i[a+36>>2]-g>>2;a:{if(f>>>0>>0){La(h,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}h=0;f=(e&1073741823)!=(e|0)?-1:e<<2;n=Zk(lk(f),0,f);g=i[a+8>>2];b:{if((g|0)<1){break b}while(1){f=h<<2;g=i[f+n>>2];j=i[a+16>>2];c:{if((g|0)>(j|0)){k=i[a+32>>2];i[f+k>>2]=j;break c}k=i[a+32>>2];f=f+k|0;j=i[a+12>>2];if((g|0)<(j|0)){i[f>>2]=j;break c}i[f>>2]=g}h=h+1|0;g=i[a+8>>2];if((h|0)<(g|0)){continue}break}if((g|0)<1){break b}j=0;while(1){h=j<<2;f=h+c|0;h=i[b+h>>2]+i[h+k>>2]|0;i[f>>2]=h;d:{if((h|0)>i[a+16>>2]){h=h-i[a+20>>2]|0}else{if((h|0)>=i[a+12>>2]){break d}h=h+i[a+20>>2]|0}i[f>>2]=h}j=j+1|0;g=i[a+8>>2];if((j|0)<(g|0)){continue}break}}if((e|0)<(d|0)){p=0-e<<2;f=e;while(1){e:{if((g|0)<1){break e}m=f<<2;o=m+c|0;q=o+p|0;h=0;while(1){g=h<<2;j=i[g+q>>2];l=i[a+16>>2];f:{if((j|0)>(l|0)){k=i[a+32>>2];i[g+k>>2]=l;break f}k=i[a+32>>2];g=g+k|0;l=i[a+12>>2];if((j|0)<(l|0)){i[g>>2]=l;break f}i[g>>2]=j}h=h+1|0;g=i[a+8>>2];if((h|0)<(g|0)){continue}break}j=0;if((g|0)<1){break e}m=b+m|0;while(1){g=j<<2;h=g+o|0;g=i[g+m>>2]+i[g+k>>2]|0;i[h>>2]=g;g:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break g}g=g+i[a+20>>2]|0}i[h>>2]=g}j=j+1|0;g=i[a+8>>2];if((j|0)<(g|0)){continue}break}}f=e+f|0;if((f|0)<(d|0)){continue}break}}Wk(n);return 1}function he(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;d=F-112|0;F=d;m=i[i[b+4>>2]+44>>2];h=lk(120);e=h;i[e+12>>2]=0;i[e+16>>2]=0;i[e>>2]=9052;i[e+4>>2]=0;i[e+8>>2]=9264;i[e+116>>2]=0;i[e+112>>2]=c;i[e+108>>2]=m;i[e+104>>2]=0;i[e+96>>2]=0;i[e+100>>2]=0;i[e+20>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+56>>2]=0;i[e+60>>2]=0;e=e- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[h+72>>2]=0;i[h+76>>2]=0;i[h+80>>2]=0;i[h+84>>2]=0;i[h+88>>2]=0;b=i[b+8>>2];i[d+52>>2]=0;e=d+44|0;i[e>>2]=0;i[e+4>>2]=0;i[d+36>>2]=0;i[d+40>>2]=0;n=d+28|0;k=n;i[k>>2]=0;i[k+4>>2]=0;k=d+20|0;f=k;i[f>>2]=0;i[f+4>>2]=0;f=d- -64|0;i[f>>2]=0;i[f+4>>2]=0;i[d+72>>2]=0;i[d+76>>2]=0;f=d+80|0;i[f>>2]=0;i[f+4>>2]=0;i[d+88>>2]=0;i[d+104>>2]=0;i[d+12>>2]=0;i[d+16>>2]=0;i[d+56>>2]=0;i[d+60>>2]=0;i[d+8>>2]=9264;i[d+96>>2]=0;i[d+100>>2]=0;i[d+12>>2]=b;j=i[b>>2];l=i[b+4>>2];g[d+111|0]=0;ie(d+32|0,(l-j>>2>>>0)/3|0,d+111|0);j=i[d+12>>2];l=i[j+28>>2];j=i[j+24>>2];g[d+111|0]=0;ie(e,l-j>>2,d+111|0);i[n>>2]=h;i[d+24>>2]=m;i[k>>2]=c;i[d+16>>2]=b;ke(h,d+8|0);i[a>>2]=h;i[d+8>>2]=9264;a=i[d+96>>2];if(a){i[d+100>>2]=a;Wk(a)}a=i[f>>2];if(a){i[d+84>>2]=a;Wk(a)}a=i[d+68>>2];if(a){i[d+72>>2]=a;Wk(a)}a=i[d+56>>2];if(a){i[d+60>>2]=a;Wk(a)}i[d+8>>2]=9500;a=i[d+44>>2];if(a){Wk(a)}a=i[d+32>>2];if(a){Wk(a)}F=d+112|0}function re(a,b){var c=0,d=0,e=0,f=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if((e-c|0)/144>>>0>=b>>>0){d=a;if(b){a=o(b,144)+c|0;while(1){i[c>>2]=-1;dj(c+4|0);i[c+104>>2]=0;i[c+108>>2]=0;g[c+100|0]=1;i[c+112>>2]=0;i[c+116>>2]=0;i[c+120>>2]=0;i[c+124>>2]=0;i[c+128>>2]=0;i[c+132>>2]=0;i[c+136>>2]=0;i[c+140>>2]=0;c=c+144|0;if((a|0)!=(c|0)){continue}break}c=a}i[d+4>>2]=c;return}a:{b:{c:{f=i[a>>2];c=(c-f|0)/144|0;d=c+b|0;if(d>>>0<29826162){h=o(c,144);e=(e-f|0)/144|0;f=e<<1;f=e>>>0<14913080?f>>>0>>0?d:f:29826161;c=0;d:{if(!f){break d}if(f>>>0>=29826162){break c}c=lk(o(f,144))}e=c;d=c+h|0;h=d+o(b,144)|0;c=d;while(1){i[c>>2]=-1;dj(c+4|0);i[c+104>>2]=0;i[c+108>>2]=0;g[c+100|0]=1;i[c+112>>2]=0;i[c+116>>2]=0;i[c+120>>2]=0;i[c+124>>2]=0;i[c+128>>2]=0;i[c+132>>2]=0;i[c+136>>2]=0;i[c+140>>2]=0;c=c+144|0;if((h|0)!=(c|0)){continue}break}e=o(f,144)+e|0;b=i[a>>2];c=i[a+4>>2];if((b|0)==(c|0)){break b}while(1){c=c+ -144|0;d=pf(d+ -144|0,c);if((b|0)!=(c|0)){continue}break}i[a+8>>2]=e;c=i[a+4>>2];i[a+4>>2]=h;b=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){a=i[c+ -12>>2];if(a){i[c+ -8>>2]=a;Wk(a)}a=i[c+ -28>>2];if(a){i[c+ -24>>2]=a;Wk(a)}a=c+ -144|0;d=i[c+ -40>>2];if(d){i[c+ -36>>2]=d;Wk(d)}qe(c+ -140|0);c=a;if((c|0)!=(b|0)){continue}break}break a}Ak();x()}va(8944);x()}i[a+8>>2]=e;i[a+4>>2]=h;i[a>>2]=d}if(b){Wk(b)}}function kd(a,b){var c=0,d=0,e=0;e=F-32|0;F=e;a:{b:{switch(b|0){case 0:b=lk(48);Rd(b);i[b>>2]=9992;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;break a;case 1:b=lk(52);Rd(b);i[b+48>>2]=0;i[b>>2]=8232;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;break a;default:break b}}b=lk(32);i[e>>2]=b;i[e+4>>2]=28;i[e+8>>2]=-2147483616;g[b+28|0]=0;c=j[7980]|j[7981]<<8|(j[7982]<<16|j[7983]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;c=j[7976]|j[7977]<<8|(j[7978]<<16|j[7979]<<24);d=j[7972]|j[7973]<<8|(j[7974]<<16|j[7975]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[7968]|j[7969]<<8|(j[7970]<<16|j[7971]<<24);d=j[7964]|j[7965]<<8|(j[7966]<<16|j[7967]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[7960]|j[7961]<<8|(j[7962]<<16|j[7963]<<24);d=j[7956]|j[7957]<<8|(j[7958]<<16|j[7959]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[e+16>>2]=-1;b=ok(e+16|4,e);i[a>>2]=i[e+16>>2];ok(a+4|0,b);i[a+16>>2]=0;if(g[b+11|0]<=-1){Wk(i[b>>2])}if(g[e+11|0]>-1){break a}Wk(i[e>>2])}F=e+32|0}function dc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0;m=F-16|0;F=m;e=i[b+12>>2];c=i[b+20>>2];f=i[b+16>>2];d=f+4|0;if(d>>>0<4){c=c+1|0}g=d;d=c;a:{if((e|0)<(c|0)?1:(e|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=f+i[b>>2]|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=g;i[b+20>>2]=d;if((c|0)<0){break a}Vb(a+76|0,c);g=gd(m);b:{if(!hd(g,b)){break b}if((c|0)>=1){e=1;while(1){f=1<>2]+(k>>>3&536870908)|0;e=e^h;h=i[d>>2]|f;c:{if(!(e&1)){break c}h=i[d>>2]&(f^-1)}f=h;e=e^1;i[d>>2]=f;k=k+1|0;if((c|0)!=(k|0)){continue}break}}d=i[b+12>>2];k=d;c=i[b+20>>2];e=c;g=i[b+16>>2];f=g+4|0;if(f>>>0<4){c=c+1|0}n=i[b+8>>2];h=f;f=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?n>>>0>>0:0){break b}o=i[b>>2];c=o+g|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=f;c=e;e=g+8|0;if(e>>>0<8){c=c+1|0}f=e;e=c;if((k|0)<(c|0)?1:(k|0)<=(c|0)?n>>>0>>0:0){break b}c=h+o|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=e;if((d|0)>(c|0)){break b}i[a+16>>2]=c;i[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break b}p=1;b=b+1|0;i[a+20>>2]=b;c=(b|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(b&1){break b}i[a+24>>2]=c+ -1}}F=m+16|0;return p|0}function ug(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=F-16|0;F=e;i[a+68>>2]=i[a+68>>2]+1;d=o(b,12)+a|0;f=i[d+12>>2];h=i[d+8>>2];d=f-h|0;if((d|0)>=1){f=h-f|0;d=((f|0)>(d|0)?f:d)>>>2|0;k=d>>>0>1?d:1;d=i[((b<<2)+a|0)+44>>2];h=0;while(1){b=d;f=(b>>>0)/3|0;g=(b|0)==-1;d=g?-1:f;j=i[a+56>>2]+(d>>>3&536870908)|0;i[j>>2]=i[j>>2]|1<>2]=i[a+72>>2]+1;a:{b:{if(!h){i[e+12>>2]=(b|0)<0?-1:i[(i[i[a>>2]+96>>2]+o(f,12)|0)+((b>>>0)%3<<2)>>2];i[e+8>>2]=c;tg(e+8|0,e+12|0);c:{if(!g){d=-1;f=e;g=b+1|0;g=(g>>>0)%3|0?g:b+ -2|0;if((g|0)>=0){j=(g>>>0)/3|0;j=i[(i[i[a>>2]+96>>2]+o(j,12)|0)+(g-o(j,3)<<2)>>2]}else{j=-1}i[f+12>>2]=j;i[e+8>>2]=c;tg(e+8|0,e+12|0);f=((b>>>0)%3|0?-1:2)+b|0;if((f|0)<0){break c}d=(f>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(f-o(d,3)<<2)>>2];break c}d=-1;i[e+12>>2]=-1;i[e+8>>2]=c;tg(e+8|0,e+12|0)}i[a+76>>2]=d;i[e+12>>2]=d;i[e+8>>2]=c;tg(e+8|0,e+12|0);break b}g=(b|0)<0?-1:i[(i[i[a>>2]+96>>2]+o(f,12)|0)+((b>>>0)%3<<2)>>2];i[a+76>>2]=g;i[e+12>>2]=g;i[e+8>>2]=c;tg(e+8|0,e+12|0);if(h&1){d=-1;if((b|0)==-1){break a}if(b-o(f,3)|0){b=b+ -1|0;break b}b=b+2|0;break b}d=-1;if((b|0)==-1){break a}d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0}d=-1;if((b|0)==-1){break a}d=i[i[i[a+4>>2]+12>>2]+(b<<2)>>2]}h=h+1|0;if((k|0)!=(h|0)){continue}break}}F=e+16|0}function He(a,b){var c=0,d=0,e=0,f=0,g=0;f=-1;d=-1;a:{if((b|0)==-1){break a}d=b+1|0;f=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break a}d=b+2|0}b:{c:{d:{switch(i[a+168>>2]){case 0:case 1:c=i[a+148>>2];e=1;b=i[a+156>>2];g=b+(((f|0)!=-1?i[i[c>>2]+(f<<2)>>2]:-1)<<2)|0;i[g>>2]=i[g>>2]+1;b=(((d|0)!=-1?i[i[c>>2]+(d<<2)>>2]:-1)<<2)+b|0;break c;case 5:e=i[a+148>>2];c=-1;c=((b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:c)<<2;b=i[a+156>>2];c=c+b|0;i[c>>2]=i[c>>2]+1;c=(((f|0)!=-1?i[i[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;i[c>>2]=i[c>>2]+1;c=-1;c=(d|0)!=-1?i[i[e>>2]+(d<<2)>>2]:c;e=2;b=b+(c<<2)|0;break c;case 3:e=i[a+148>>2];c=-1;c=((b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:c)<<2;b=i[a+156>>2];c=c+b|0;i[c>>2]=i[c>>2]+1;c=(((f|0)!=-1?i[i[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;i[c>>2]=i[c>>2]+2;b=(((d|0)!=-1?i[i[e>>2]+(d<<2)>>2]:-1)<<2)+b|0;e=1;break c;case 7:break d;default:break b}}e=i[a+148>>2];c=-1;c=((b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:c)<<2;b=i[a+156>>2];c=c+b|0;i[c>>2]=i[c>>2]+2;c=(((f|0)!=-1?i[i[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;i[c>>2]=i[c>>2]+2;c=-1;c=(d|0)!=-1?i[i[e>>2]+(d<<2)>>2]:c;e=2;b=b+(c<<2)|0}i[b>>2]=i[b>>2]+e}c=-1;c=(f|0)!=-1?i[i[i[a+148>>2]>>2]+(f<<2)>>2]:c;f=i[a+176>>2];b=f;d=a;c=i[i[a+156>>2]+(c<<2)>>2];if((c|0)>=(b|0)){a=i[a+180>>2];b=(c|0)>(a|0)?a:c}i[d+172>>2]=b-f}function pd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=F-32|0;F=e;f=a+16|0;d=i[f>>2];a:{b:{if(!d){break b}h=i[b>>2];c=f;while(1){g=i[d+16>>2]<(h|0);c=g?c:d;d=i[(g<<2)+d>>2];if(d){continue}break}if((c|0)==(f|0)){break b}if((h|0)>=i[c+16>>2]){break a}}k=Wf(e+16|0);b=i[b>>2];j=e+8|0;i[j>>2]=0;i[j+4>>2]=0;i[e>>2]=b;i[e+4>>2]=j;c=i[k>>2];h=k+4|0;if((c|0)!=(h|0)){g=e|4;while(1){b=c;d=c+16|0;qd(g,j,d,d);d=i[c+4>>2];c:{if(!d){c=i[b+8>>2];if((b|0)==i[c>>2]){break c}d=b+8|0;while(1){b=i[d>>2];d=b+8|0;c=i[b+8>>2];if((b|0)!=i[c>>2]){continue}break}break c}while(1){c=d;d=i[c>>2];if(d){continue}break}}if((c|0)!=(h|0)){continue}break}}d=i[f>>2];d:{if(d){f=a+16|0;g=i[e>>2];while(1){b=i[d+16>>2];e:{if((g|0)<(b|0)){c=i[d>>2];if(c){break e}f=d;break d}if((b|0)>=(g|0)){break d}f=d+4|0;c=i[d+4>>2];if(!c){break d}d=f}f=d;d=c;continue}}d=f}c=i[f>>2];if(!c){c=lk(32);i[c+16>>2]=i[e>>2];i[c+20>>2]=i[e+4>>2];g=i[e+8>>2];i[c+24>>2]=g;b=i[e+12>>2];i[c+28>>2]=b;h=c+24|0;f:{if(!b){i[c+20>>2]=h;break f}i[g+8>>2]=h;i[e+8>>2]=0;i[e+12>>2]=0;i[e+4>>2]=j}i[c+8>>2]=d;i[c>>2]=0;i[c+4>>2]=0;i[f>>2]=c;d=i[i[a+12>>2]>>2];b=c;g:{if(!d){break g}i[a+12>>2]=d;b=i[f>>2]}rd(i[a+16>>2],b);a=a+20|0;i[a>>2]=i[a>>2]+1}sd(e|4,i[e+8>>2]);sd(k,i[k+4>>2])}F=e+32|0;return c+20|0}function Df(a,b){var c=0,d=0,e=0;e=F-32|0;F=e;c=lk(36);i[c+4>>2]=0;i[c+8>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;i[c>>2]=c+4;i[c+12>>2]=c+16;i[e+24>>2]=c;d=e+16|0;i[d>>2]=0;a:{if(!nj(d,i[b+32>>2],c)){b=lk(32);i[e>>2]=b;i[e+4>>2]=26;i[e+8>>2]=-2147483616;g[b+26|0]=0;c=j[10350]|j[10351]<<8;g[b+24|0]=c;g[b+25|0]=c>>>8;c=j[10346]|j[10347]<<8|(j[10348]<<16|j[10349]<<24);d=j[10342]|j[10343]<<8|(j[10344]<<16|j[10345]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[10338]|j[10339]<<8|(j[10340]<<16|j[10341]<<24);d=j[10334]|j[10335]<<8|(j[10336]<<16|j[10337]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[10330]|j[10331]<<8|(j[10332]<<16|j[10333]<<24);d=j[10326]|j[10327]<<8|(j[10328]<<16|j[10329]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ok(a+4|0,e);if(g[e+11|0]>-1){break a}Wk(i[e>>2]);break a}b=i[b+4>>2];i[e+24>>2]=0;d=i[b+4>>2];i[b+4>>2]=c;if(d){Ef(d)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}a=i[e+24>>2];i[e+24>>2]=0;if(a){Ef(a)}F=e+32|0}function wd(a,b,c,d){var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(!yd(e+8|0,c)){break a}if(!zd(e+8|0,c)){break a}b:{if(!a){Sf(c,0,0);break b}if(!i[e+20>>2]){break a}Sf(c,0,0);h=i[e+56>>2];s=i[e+36>>2];t=i[e+48>>2];u=i[e+24>>2];while(1){c:{if(h>>>0>16383){break c}f=i[e+52>>2];while(1){if((f|0)<1){break c}f=f+ -1|0;i[e+52>>2]=f;h=j[f+t|0]|h<<8;i[e+56>>2]=h;if(h>>>0<16384){continue}break}}g=h&4095;q=i[(g<<2)+u>>2];k=(q<<3)+s|0;h=(o(i[k>>2],h>>>12|0)+g|0)-i[k+4>>2]|0;i[e+56>>2]=h;if((b|0)>=1){if(!j[c+36|0]){g=0;break a}k=b+l|0;while(1){d:{if((q|0)<1){n=0;break d}g=i[c+32>>2];v=i[c+28>>2];w=i[c+24>>2];f=0;n=0;while(1){m=(g>>>3|0)+w|0;e:{if(m>>>0>=v>>>0){p=0;break e}p=j[m|0];m=g+1|0;i[c+32>>2]=m;p=p>>>(g&7)&1;g=m}n=p<>2]=n;l=l+1|0;if((k|0)!=(l|0)){continue}break}l=k}r=b+r|0;if(r>>>0>>0){continue}break}}Uf(c);g=1}a=i[e+36>>2];if(a){i[e+40>>2]=a;Wk(a)}a=i[e+24>>2];if(a){i[e+28>>2]=a;Wk(a)}a=i[e+8>>2];if(a){i[e+12>>2]=a;Wk(a)}F=e- -64|0;return g}function Gf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0;a:{b=i[a+32>>2];e=i[b+16>>2];h=i[b+12>>2];d=i[b+20>>2];b:{if((h|0)<(d|0)?1:(h|0)<=(d|0)?l[b+8>>2]<=e>>>0:0){break b}g=j[e+i[b>>2]|0];k=e+1|0;if(k>>>0<1){d=d+1|0}i[b+16>>2]=k;i[b+20>>2]=d;c:{if(!g){break c}while(1){if(I[i[i[a>>2]+16>>2]](a,c)|0){c=c+1|0;if((g|0)!=(c|0)){continue}break c}break}return 0}c=i[a+8>>2];d=i[a+12>>2];if((c|0)!=(d|0)){while(1){b=i[c>>2];if(!(I[i[i[b>>2]+8>>2]](b,a,i[a+4>>2])|0)){break b}c=c+4|0;if((d|0)!=(c|0)){continue}break}}d:{if(!g){break d}c=0;while(1){b=i[i[a+8>>2]+(c<<2)>>2];if(!(I[i[i[b>>2]+12>>2]](b,i[a+32>>2])|0)){break a}c=c+1|0;if((g|0)!=(c|0)){continue}break}if(!g){break d}h=a+20|0;while(1){c=0;k=m<<2;b=i[k+i[a+8>>2]>>2];d=I[i[i[b>>2]+24>>2]](b)|0;if((d|0)>0){while(1){b=i[i[a+8>>2]+k>>2];b=I[i[i[b>>2]+20>>2]](b,c)|0;n=i[a+20>>2];e=i[a+24>>2]-n>>2;e:{if(b>>>0>>0){break e}f=b+1|0;if(f>>>0>e>>>0){La(h,f-e|0);n=i[h>>2];break e}if(f>>>0>=e>>>0){break e}i[a+24>>2]=(f<<2)+n}i[(b<<2)+n>>2]=m;c=c+1|0;if((d|0)!=(c|0)){continue}break}}m=m+1|0;if((m|0)!=(g|0)){continue}break}}f=0;if(!(I[i[i[a>>2]+28>>2]](a)|0)){break b}f=I[i[i[a>>2]+32>>2]](a)|0}return f|0}return 0}function mj(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,p=0;d=F-32|0;F=d;i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;a:{e=i[a>>2];c=e;h=i[c+16>>2];k=l[c+8>>2]<=h>>>0;f=i[c+12>>2];c=i[c+20>>2];b:{if((f|0)<(c|0)?1:(f|0)<=(c|0)?k:0){break b}k=j[h+i[e>>2]|0];f=c;c=h+1|0;if(c>>>0<1){f=f+1|0}i[e+16>>2]=c;i[e+20>>2]=f;tk(d+16|0,k);if(k){f=i[a>>2];n=xk(d+16|0);m=i[f+12>>2];h=i[f+20>>2];p=i[f+16>>2];e=k;c=p+e|0;if(c>>>0>>0){h=h+1|0}if((m|0)<(h|0)?1:(m|0)<=(h|0)?l[f+8>>2]>>0:0){break b}Yk(n,p+i[f>>2]|0,k);h=i[f+20>>2];k=e+i[f+16>>2]|0;if(k>>>0>>0){h=h+1|0}c=f;i[c+16>>2]=k;i[c+20>>2]=h}i[d+12>>2]=0;c=lj(1,d+12|0,i[a>>2]);e=i[d+12>>2];if(!e|!c){break b}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;if((e|0)<=-1){break a}m=lk(e);i[d>>2]=m;c=e+m|0;i[d+8>>2]=c;p=Zk(m,0,e);i[d+4>>2]=c;c=i[a>>2];a=i[c+8>>2];o=i[c+12>>2];f=a;n=i[c+20>>2];h=i[c+16>>2];a=e;k=h+e|0;if(k>>>0>>0){n=n+1|0}o=(o|0)>(n|0)?1:(o|0)>=(n|0)?f>>>0>=k>>>0:0;if(o){Yk(p,h+i[c>>2]|0,e);e=c;k=c;f=i[c+20>>2];c=a+i[c+16>>2]|0;if(c>>>0>>0){f=f+1|0}i[k+16>>2]=c;i[e+20>>2]=f;xj(b,d+16|0,d);m=i[d>>2];if(!m){break b}}i[d+4>>2]=m;Wk(m)}if(g[d+27|0]<=-1){Wk(i[d+16>>2])}F=d+32|0;return o}Ak();x()}function gl(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{g=b;if(g){e=c;if(!e){break j}f=d;if(!f){break i}f=r(f)-r(g)|0;if(f>>>0<=31){break h}break b}if((d|0)==1&c>>>0>=0|d>>>0>1){break b}b=(a>>>0)/(c>>>0)|0;H=0;return b}e=d;if(!a){break g}if(!e){break f}if(e+ -1&e){break f}a=g>>>ml(e)|0;H=0;return a}if(!(e+ -1&e)){break e}j=(r(e)+33|0)-r(g)|0;h=0-j|0;break c}j=f+1|0;h=63-f|0;break c}a=(g>>>0)/(e>>>0)|0;H=0;return a}f=r(e)-r(g)|0;if(f>>>0<31){break d}break b}if((e|0)==1){break a}c=a;a=ml(e);d=a&31;if(32<=(a&63)>>>0){f=0;a=b>>>d|0}else{f=b>>>d|0;a=((1<>>d}H=f;return a}j=f+1|0;h=63-f|0}e=b;g=a;f=j&63;i=f&31;if(32<=(f&63)>>>0){f=0;l=e>>>i|0}else{f=e>>>i|0;l=((1<>>i}a=h&63;h=a&31;if(32<=(a&63)>>>0){e=g<>>32-h|b<>>31;f=e<<1|b>>>31;m=k;e=k;k=f;i=g-((h>>>0>>0)+e|0)|0;e=i>>31;i=i>>31;f=c&i;l=k-f|0;f=m-((d&e)+(k>>>0>>0)|0)|0;e=b<<1|a>>>31;a=n|a<<1;b=e|o;m=0;k=i&1;n=k;j=j+ -1|0;if(j){continue}break}}H=m|(b<<1|a>>>31);return k|a<<1}a=0;b=0}H=b;return a}function ze(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=p(0),o=0,q=0;f=i[c>>2];o=a;a:{b:{e=i[b+4>>2];if(!e){break b}j=i[b>>2];l=kl(e);h=f&e+ -1;c:{if(l>>>0<=1){break c}c=f;h=c;if(c>>>0>>0){break c}h=(f>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+j>>2];if(!c){break b}q=e+ -1|0;l=l>>>0>1;while(1){c=i[c>>2];if(!c){break b}j=i[c+4>>2];if((f|0)!=(j|0)){d:{if(!l){j=j&q;break d}if(j>>>0>>0){break d}j=(j>>>0)%(e>>>0)|0}if((j|0)!=(h|0)){break b}}if((f|0)!=i[c+8>>2]){continue}break}b=0;break a}c=lk(16);d=i[i[d>>2]>>2];i[c+12>>2]=0;i[c+8>>2]=d;i[c+4>>2]=f;i[c>>2]=0;k=m[b+16>>2];n=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(n/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}qf(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=f&e+ -1;break e}if(f>>>0>>0){h=f;break e}h=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(h<<2)|0;d=i[f>>2];g:{h:{if(!d){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[f>>2]=b+8;d=i[c>>2];if(!d){break g}d=i[d+4>>2];f=e+ -1|0;i:{if(!(f&e)){d=d&f;break i}if(d>>>0>>0){break i}d=(d>>>0)%(e>>>0)|0}d=i[b>>2]+(d<<2)|0;break h}i[c>>2]=i[d>>2]}i[d>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[o+4|0]=b;i[a>>2]=c}function Lc(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;k=i[i[i[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((I[i[i[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}h=I[i[i[b>>2]+36>>2]](b)|0;f=I[i[i[b>>2]+44>>2]](b,d)|0;if(!(f?h:0)){i[a>>2]=0;return}g=f+12|0;j=I[i[i[b>>2]+40>>2]](b,d)|0;d=i[b+44>>2];if(j){if((c|0)!=6){break b}b=lk(112);i[b+4>>2]=k;c=i[e+4>>2];i[b+8>>2]=i[e>>2];i[b+12>>2]=c;c=i[e+12>>2];i[b+16>>2]=i[e+8>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+16>>2];i[b+40>>2]=f;i[b+36>>2]=g;i[b+32>>2]=j;i[b+28>>2]=d;i[b+68>>2]=f;i[b+64>>2]=g;i[b+60>>2]=j;i[b+56>>2]=d;i[b+48>>2]=0;i[b+52>>2]=0;i[b>>2]=5744;i[b+88>>2]=1065353216;i[b+92>>2]=-1;i[b+80>>2]=-1;i[b+84>>2]=-1;i[b+72>>2]=1;i[b+76>>2]=-1;i[b+44>>2]=6308;break a}if((c|0)!=6){break b}b=lk(112);i[b+4>>2]=k;c=i[e+4>>2];i[b+8>>2]=i[e>>2];i[b+12>>2]=c;c=i[e+12>>2];i[b+16>>2]=i[e+8>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+16>>2];i[b+40>>2]=f;i[b+36>>2]=g;i[b+32>>2]=h;i[b+28>>2]=d;i[b+68>>2]=f;i[b+64>>2]=g;i[b+60>>2]=h;i[b+56>>2]=d;i[b+48>>2]=0;i[b+52>>2]=0;i[b>>2]=6748;i[b+88>>2]=1065353216;i[b+92>>2]=-1;i[b+80>>2]=-1;i[b+84>>2]=-1;i[b+72>>2]=1;i[b+76>>2]=-1;i[b+44>>2]=7168;break a}i[a>>2]=0;return}gd(b+96|0);i[a>>2]=b}function yc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;if((e|0)==2){i[a+8>>2]=2;i[a- -64>>2]=f;d=a+32|0;e=i[d>>2];f=i[a+36>>2]-e|0;g=f>>2;a:{if(g>>>0<=1){La(d,2-g|0);break a}if((f|0)==8){break a}i[a+36>>2]=e+8}b:{d=i[a+56>>2];f=i[d+4>>2];d=i[d>>2];e=f-d|0;if((e|0)<1){f=0;break b}if((d|0)!=(f|0)){k=a+60|0;l=e>>2;f=d-f|0;e=((f|0)>(e|0)?f:e)>>>2|0;m=e>>>0>1?e:1;f=1;while(1){if(!zc(k,i[(h<<2)+d>>2],c,h)){break b}c:{if(i[a+8>>2]<1){break c}d=0;while(1){e=d<<2;f=i[(e+a|0)+68>>2];j=i[a+16>>2];d:{if((f|0)>(j|0)){g=i[a+32>>2];i[e+g>>2]=j;break d}g=i[a+32>>2];e=e+g|0;j=i[a+12>>2];if((f|0)<(j|0)){i[e>>2]=j;break d}i[e>>2]=f}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}e=0;if((f|0)<1){break c}d=h<<3;j=d+c|0;n=b+d|0;while(1){f=e<<2;d=f+j|0;f=i[f+n>>2]+i[f+g>>2]|0;i[d>>2]=f;e:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break e}f=f+i[a+20>>2]|0}i[d>>2]=f}e=e+1|0;if((e|0)>2]){continue}break}}h=h+1|0;f=(h|0)<(l|0);if((h|0)==(m|0)){break b}e=i[a+56>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>h>>>0){continue}break}}Bk();x()}a=f^1}else{a=0}return a&1}function ec(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;if((e|0)==2){i[a+8>>2]=2;i[a- -64>>2]=f;d=a+32|0;e=i[d>>2];f=i[a+36>>2]-e|0;g=f>>2;a:{if(g>>>0<=1){La(d,2-g|0);break a}if((f|0)==8){break a}i[a+36>>2]=e+8}b:{d=i[a+56>>2];f=i[d+4>>2];d=i[d>>2];e=f-d|0;if((e|0)<1){f=0;break b}if((d|0)!=(f|0)){k=a+60|0;l=e>>2;f=d-f|0;e=((f|0)>(e|0)?f:e)>>>2|0;m=e>>>0>1?e:1;f=1;while(1){if(!fc(k,i[(h<<2)+d>>2],c,h)){break b}c:{if(i[a+8>>2]<1){break c}d=0;while(1){e=d<<2;f=i[(e+a|0)+68>>2];j=i[a+16>>2];d:{if((f|0)>(j|0)){g=i[a+32>>2];i[e+g>>2]=j;break d}g=i[a+32>>2];e=e+g|0;j=i[a+12>>2];if((f|0)<(j|0)){i[e>>2]=j;break d}i[e>>2]=f}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}e=0;if((f|0)<1){break c}d=h<<3;j=d+c|0;n=b+d|0;while(1){f=e<<2;d=f+j|0;f=i[f+n>>2]+i[f+g>>2]|0;i[d>>2]=f;e:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break e}f=f+i[a+20>>2]|0}i[d>>2]=f}e=e+1|0;if((e|0)>2]){continue}break}}h=h+1|0;f=(h|0)<(l|0);if((h|0)==(m|0)){break b}e=i[a+56>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>h>>>0){continue}break}}Bk();x()}a=f^1}else{a=0}return a&1}function Yk(a,b,c){var d=0,e=0,f=0;if(c>>>0>=512){E(a|0,b|0,c|0)|0;return a}e=a+c|0;a:{if(!((a^b)&3)){b:{if((c|0)<1){c=a;break b}if(!(a&3)){c=a;break b}c=a;while(1){g[c|0]=j[b|0];b=b+1|0;c=c+1|0;if(c>>>0>=e>>>0){break b}if(c&3){continue}break}}d=e&-4;c:{if(d>>>0<64){break c}f=d+ -64|0;if(c>>>0>f>>>0){break c}while(1){i[c>>2]=i[b>>2];i[c+4>>2]=i[b+4>>2];i[c+8>>2]=i[b+8>>2];i[c+12>>2]=i[b+12>>2];i[c+16>>2]=i[b+16>>2];i[c+20>>2]=i[b+20>>2];i[c+24>>2]=i[b+24>>2];i[c+28>>2]=i[b+28>>2];i[c+32>>2]=i[b+32>>2];i[c+36>>2]=i[b+36>>2];i[c+40>>2]=i[b+40>>2];i[c+44>>2]=i[b+44>>2];i[c+48>>2]=i[b+48>>2];i[c+52>>2]=i[b+52>>2];i[c+56>>2]=i[b+56>>2];i[c+60>>2]=i[b+60>>2];b=b- -64|0;c=c- -64|0;if(c>>>0<=f>>>0){continue}break}}if(c>>>0>=d>>>0){break a}while(1){i[c>>2]=i[b>>2];b=b+4|0;c=c+4|0;if(c>>>0>>0){continue}break}break a}if(e>>>0<4){c=a;break a}d=e+ -4|0;if(d>>>0>>0){c=a;break a}c=a;while(1){g[c|0]=j[b|0];g[c+1|0]=j[b+1|0];g[c+2|0]=j[b+2|0];g[c+3|0]=j[b+3|0];b=b+4|0;c=c+4|0;if(c>>>0<=d>>>0){continue}break}}if(c>>>0>>0){while(1){g[c|0]=j[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}return a}function ib(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0;g=F-16|0;F=g;if(Ja(a,b)){m=a+36|0;h=I[i[i[a>>2]+24>>2]](a)|0;e=i[a+40>>2];d=i[a+36>>2];c=e-d>>2;a:{if(h>>>0>c>>>0){jb(m,h-c|0);break a}if(h>>>0>=c>>>0){break a}d=d+(h<<2)|0;if((d|0)!=(e|0)){while(1){e=e+ -4|0;c=i[e>>2];i[e>>2]=0;if(c){I[i[i[c>>2]+4>>2]](c)}if((e|0)!=(d|0)){continue}break}}i[a+40>>2]=d}b:{if((h|0)<1){break b}n=1;f=i[b+16>>2];d=i[b+12>>2];c=i[b+20>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]<=f>>>0:0){break b}e=0;while(1){k=j[f+i[b>>2]|0];f=f+1|0;if(f>>>0<1){c=c+1|0}d=b;i[d+16>>2]=f;i[d+20>>2]=c;I[i[i[a>>2]+48>>2]](g+8|0,a,k);c=i[a+36>>2];d=i[g+8>>2];i[g+8>>2]=0;f=e<<2;k=c+f|0;c=i[k>>2];i[k>>2]=d;if(c){I[i[i[c>>2]+4>>2]](c)}c=i[g+8>>2];i[g+8>>2]=0;if(c){I[i[i[c>>2]+4>>2]](c)}c=i[i[m>>2]+f>>2];if(!c){break b}if(!(p=c,q=I[i[i[a>>2]+28>>2]](a)|0,r=I[i[i[a>>2]+20>>2]](a,e)|0,o=i[i[c>>2]+8>>2],I[o](p|0,q|0,r|0)|0)){break b}e=e+1|0;n=(e|0)<(h|0);if((e|0)==(h|0)){break b}f=i[b+16>>2];d=i[b+12>>2];c=i[b+20>>2];if((d|0)>(c|0)?1:(d|0)>=(c|0)?l[b+8>>2]>f>>>0:0){continue}break}}e=n^1}F=g+16|0;return e&1}function Ie(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=8340;b=a+368|0;d=i[b>>2];i[b>>2]=0;if(d){c=d+ -4|0;b=i[c>>2];if(b){b=d+(b<<4)|0;while(1){b=b+ -16|0;if((d|0)!=(b|0)){continue}break}}Wk(c)}d=i[a+216>>2];if(d){b=i[a+220>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=i[b+ -12>>2];if(c){i[b+ -8>>2]=c;Wk(c)}c=i[b+ -28>>2];if(c){i[b+ -24>>2]=c;Wk(c)}c=b+ -144|0;e=i[b+ -40>>2];if(e){i[b+ -36>>2]=e;Wk(e)}qe(b+ -140|0);b=c;if((d|0)!=(b|0)){continue}break}c=i[a+216>>2]}i[a+220>>2]=d;Wk(c)}b=i[a+196>>2];if(b){i[a+200>>2]=b;Wk(b)}b=i[a+184>>2];if(b){i[a+188>>2]=b;Wk(b)}b=i[a+172>>2];if(b){i[a+176>>2]=b;Wk(b)}b=i[a+160>>2];if(b){i[a+164>>2]=b;Wk(b)}b=i[a+144>>2];if(b){while(1){d=i[b>>2];Wk(b);b=d;if(b){continue}break}}b=i[a+136>>2];i[a+136>>2]=0;if(b){Wk(b)}b=i[a+120>>2];if(b){Wk(b)}b=i[a+108>>2];if(b){Wk(b)}b=i[a+96>>2];if(b){Wk(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;Wk(b)}b=i[a+60>>2];if(b){Wk(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;Wk(b)}b=i[a+36>>2];if(b){i[a+40>>2]=b;Wk(b)}b=i[a+24>>2];if(b){i[a+28>>2]=b;Wk(b)}b=i[a+12>>2];if(b){i[a+16>>2]=b;Wk(b)}b=i[a+8>>2];i[a+8>>2]=0;if(b){pe(a+8|0,b)}return a|0}function Tb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;k=F-32|0;F=k;a:{b:{while(1){if(!Ub(1,k+28|0,b)){break b}c=i[k+28>>2];if(c){f=(o(d,12)+a|0)+60|0;Vb(f,c);h=gd(k+8|0);if(!hd(h,b)){break b}g=0;while(1){l=1<>2]+(g>>>3&536870908)|0;n=e;if(m){e=i[e>>2]|l}else{e=i[e>>2]&(l^-1)}i[n>>2]=e;g=g+1|0;if((c|0)!=(g|0)){continue}break}}d=d+1|0;if((d|0)!=4){continue}break}g=0;d=i[b+12>>2];l=d;c=i[b+20>>2];e=c;h=i[b+16>>2];f=h+4|0;if(f>>>0<4){c=c+1|0}n=i[b+8>>2];m=f;f=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?n>>>0>>0:0){break a}p=i[b>>2];c=p+h|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=m;i[b+20>>2]=f;c=e;e=h+8|0;if(e>>>0<8){c=c+1|0}f=e;e=c;if((l|0)<(c|0)?1:(l|0)<=(c|0)?n>>>0>>0:0){break a}c=m+p|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=e;if((d|0)>(c|0)){break a}i[a+16>>2]=c;i[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break a}g=1;b=b+1|0;i[a+20>>2]=b;c=(b|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(b&1){break a}i[a+24>>2]=c+ -1;break a}g=0}F=k+32|0;return g|0}function _(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,n=0,o=0;j=+m[b>>2];k=+m[b+4>>2];n=+m[b+8>>2];h=q(j)+q(k)+q(n);a:{if(h>1e-6^1){j=1;k=0;f=0;break a}h=1/h;k=h*k;j=h*j;f=h*n<0}h=k;g=i[a+16>>2];k=+(g|0);h=u(h*k+.5);b:{if(q(h)<2147483648){b=~~h;break b}b=-2147483648}l=(b|0)<0?b:0-b|0;j=u(j*k+.5);c:{if(q(j)<2147483648){e=~~j;break c}e=-2147483648}o=(e|0)<0;e=l+((o?e:0-e|0)+g|0)|0;l=(e|0)<0?0:e;f=f?0-l|0:l;b=b+(e>>31&((b|0)>0?e:0-e|0))|0;d:{if(!o){e=b+g|0;b=f+g|0;break d}e:{if((b|0)<=-1){e=f>>31;e=e+f^e;break e}e=i[a+8>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=b;b=b>>31;b=f+b^b;break d}b=i[a+8>>2]+((b|0)<0?b:0-b|0)|0}f:{if(!(b|e)){b=i[a+8>>2];a=b;break f}f=i[a+8>>2];g:{h:{i:{j:{if(!e){if((b|0)==(f|0)){a=b;break f}a=0;if(b|f){break j}b=0;break f}if((e|0)!=(f|0)|b){break i}b=e;a=b;break f}if((g|0)<(b|0)){b=(g<<1)-b|0;break f}if(f){break g}break h}if((e|0)!=(f|0)){break g}}f=e;if((g|0)<=(b|0)){break g}b=(g<<1)-b|0;a=e;break f}if(!((b|0)!=(f|0)|(g|0)<=(e|0))){a=(g<<1)-e|0;break f}if(b){a=e;break f}b=0;if((g|0)>=(e|0)){a=e;break f}a=(g<<1)-e|0}i[c>>2]=a;i[d>>2]=b}function Ij(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;a:{if((b|0)<0){break a}c=i[a+12>>2];d=i[a+8>>2];if(c-d>>2>>>0<=b>>>0){break a}d=d+(b<<2)|0;f=i[d>>2];h=i[f+60>>2];g=i[f+56>>2];e=d+4|0;b:{if((e|0)!=(c|0)){while(1){j=i[e>>2];i[e>>2]=0;i[d>>2]=j;if(f){Ma(f)}d=d+4|0;e=e+4|0;if((e|0)!=(c|0)){f=i[d>>2];continue}break}c=i[a+12>>2];if((d|0)==(c|0)){break b}}while(1){c=c+ -4|0;f=i[c>>2];i[c>>2]=0;if(f){Ma(f)}if((c|0)!=(d|0)){continue}break}}i[a+12>>2]=d;c=i[a+4>>2];if(c){Jj(c,h)}c:{if((g|0)>4){break c}d:{d=o(g,12)+a|0;c=i[d+20>>2];f=d+24|0;d=i[f>>2];if((c|0)==(d|0)){break d}while(1){if(i[c>>2]==(b|0)){break d}c=c+4|0;if((d|0)!=(c|0)){continue}break}break c}if((c|0)==(d|0)){break c}e=c+4|0;d=d-e|0;if(d){_k(c,e,d)}i[f>>2]=c+d}d=0;while(1){c=o(d,12)+a|0;e=i[c+24>>2];f=i[c+20>>2];if((e|0)!=(f|0)){c=e-f|0;g=(c|0)>-1?c:-1;e=f-e|0;c=o((g|0)<1?g:1,((e|0)>(c|0)?e:c)>>>2|0);e=c>>>0>1?c:1;c=0;while(1){g=f+(c<<2)|0;h=i[g>>2];if((h|0)>(b|0)){i[g>>2]=h+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}d=d+1|0;if((d|0)!=5){continue}break}}}function rd(a,b){var c=0,d=0,e=0;c=(a|0)==(b|0);g[b+12|0]=c;a:{if(c){break a}while(1){d=i[b+8>>2];if(j[d+12|0]){break a}b:{c=i[d+8>>2];e=i[c>>2];if((e|0)==(d|0)){e=i[c+4>>2];if(!(!e|j[e+12|0])){break b}c:{if(i[d>>2]==(b|0)){b=d;break c}b=i[d+4>>2];e=i[b>>2];i[d+4>>2]=e;a=b;if(e){i[e+8>>2]=d;c=i[d+8>>2]}i[a+8>>2]=c;a=i[d+8>>2];i[(((d|0)!=i[a>>2])<<2)+a>>2]=b;i[b>>2]=d;i[d+8>>2]=b;c=i[b+8>>2]}g[b+12|0]=1;g[c+12|0]=0;a=i[c>>2];b=i[a+4>>2];i[c>>2]=b;if(b){i[b+8>>2]=c}i[a+8>>2]=i[c+8>>2];b=i[c+8>>2];i[((i[b>>2]!=(c|0))<<2)+b>>2]=a;i[a+4>>2]=c;i[c+8>>2]=a;return}if(!(j[e+12|0]|!e)){break b}d:{if(i[d>>2]!=(b|0)){b=d;break d}e=i[b+4>>2];i[d>>2]=e;a=b;if(e){i[e+8>>2]=d;c=i[d+8>>2]}i[a+8>>2]=c;a=i[d+8>>2];i[(((d|0)!=i[a>>2])<<2)+a>>2]=b;i[b+4>>2]=d;i[d+8>>2]=b;c=i[b+8>>2]}g[b+12|0]=1;g[c+12|0]=0;a=i[c+4>>2];b=i[a>>2];i[c+4>>2]=b;if(b){i[b+8>>2]=c}i[a+8>>2]=i[c+8>>2];b=i[c+8>>2];i[((i[b>>2]!=(c|0))<<2)+b>>2]=a;i[a>>2]=c;i[c+8>>2]=a;break a}b=e+12|0;g[d+12|0]=1;g[c+12|0]=(a|0)==(c|0);g[b|0]=1;b=c;if((a|0)!=(b|0)){continue}break}}}function Zb(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;g=i[b+4>>2];f=i[b>>2];c=(i[c+4>>2]-g|0)+(i[c>>2]-f<<3)|0;a:{if((c|0)<=0){g=i[d+4>>2];break a}b:{if(!g){g=i[d+4>>2];break b}e=i[d+4>>2];j=32-e|0;l=32-g|0;h=(c|0)<(l|0)?c:l;k=j>>>0>>0?j:h;m=i[d>>2];f=i[f>>2]&(-1<>>l-h);i[m>>2]=i[m>>2]&(-1<>>j-k^-1)|(e>>>0>g>>>0?f<>>g-e|0);e=e+k|0;g=e&31;i[d+4>>2]=g;j=m+(e>>>3&536870908)|0;i[d>>2]=j;e=h-k|0;if((e|0)>=1){i[j>>2]=i[j>>2]&(-1>>>32-e^-1)|f>>>k+i[b+4>>2];i[d+4>>2]=e;g=e}c=c-h|0;f=i[b>>2]+4|0;i[b>>2]=f}k=-1<>2];f=i[f>>2];i[e>>2]=j&i[e>>2]|f<>2]=e+4;i[e+4>>2]=k&i[e+4>>2]|f>>>h;f=i[b>>2]+4|0;i[b>>2]=f;l=(c|0)>63;e=c+ -32|0;c=e;if(l){continue}break}}if((e|0)<1){break a}b=i[d>>2];c=(h|0)<(e|0)?h:e;j=i[b>>2]&(k&-1>>>h-c^-1);h=i[f>>2]&-1>>>32-e;i[b>>2]=j|h<>2]=g;f=b+(f>>>3&536870908)|0;i[d>>2]=f;b=e-c|0;if((b|0)<1){break a}i[f>>2]=i[f>>2]&(-1>>>32-b^-1)|h>>>c;i[d+4>>2]=b;g=b}b=i[d>>2];i[a+4>>2]=g;i[a>>2]=b}function Lg(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;e=F-16|0;F=e;m=i[a+80>>2];k=g[b+24|0];f=o(m,k);a:{b:{c:{a=i[b+28>>2];if(!(!j[b+84|0]|((a|0)!=6?(a|0)!=5:0))){l=i[b+48>>2];k=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;a=0;b=f<<2;d:{if(!b){break d}a=b>>2;if(a>>>0>=1073741824){break c}d=lk(b);h=d+(a<<2)|0;if((b|0)<1){a=d;break d}d=Yk(d,k+l|0,b);a=d;d=b+a|0}b=i[c>>2];if(b){i[c+4>>2]=b;Wk(b)}i[c+8>>2]=h;i[c+4>>2]=d;i[c>>2]=a;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(k){if((k|0)<=-1){break c}a=k<<2;h=lk(a);i[e>>2]=h;d=a+h|0;i[e+8>>2]=d;Zk(h,0,a);i[e+4>>2]=d}d=i[c>>2];a=i[c+4>>2]-d>>2;e:{if(f>>>0>a>>>0){fd(c,f-a|0);break e}if(f>>>0>=a>>>0){break e}i[c+4>>2]=d+(f<<2)}if(!m){break b}d=0;n=1;while(1){a=l;f=b;if(!j[b+84|0]){a=i[i[b+68>>2]+(l<<2)>>2]}if(!Mg(f,a,g[b+24|0],h)){break b}if((k|0)>=1){f=i[c>>2];a=0;while(1){i[f+(d<<2)>>2]=i[(a<<2)+h>>2];d=d+1|0;a=a+1|0;if((k|0)!=(a|0)){continue}break}}l=l+1|0;n=l>>>0>>0;if((l|0)!=(m|0)){continue}break}break b}Ak();x()}if(h){Wk(h)}a=n^1}F=e+16|0;return a&1}function Jg(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;e=F-16|0;F=e;m=i[a+80>>2];k=g[b+24|0];f=o(m,k);a:{b:{c:{a=i[b+28>>2];if(!(!j[b+84|0]|((a|0)!=6?(a|0)!=5:0))){l=i[b+48>>2];k=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;a=0;b=f<<2;d:{if(!b){break d}a=b>>2;if(a>>>0>=1073741824){break c}d=lk(b);h=d+(a<<2)|0;if((b|0)<1){a=d;break d}d=Yk(d,k+l|0,b);a=d;d=b+a|0}b=i[c>>2];if(b){i[c+4>>2]=b;Wk(b)}i[c+8>>2]=h;i[c+4>>2]=d;i[c>>2]=a;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(k){if((k|0)<=-1){break c}a=k<<2;h=lk(a);i[e>>2]=h;d=a+h|0;i[e+8>>2]=d;Zk(h,0,a);i[e+4>>2]=d}d=i[c>>2];a=i[c+4>>2]-d>>2;e:{if(f>>>0>a>>>0){La(c,f-a|0);break e}if(f>>>0>=a>>>0){break e}i[c+4>>2]=d+(f<<2)}if(!m){break b}d=0;n=1;while(1){a=l;f=b;if(!j[b+84|0]){a=i[i[b+68>>2]+(l<<2)>>2]}if(!Kg(f,a,g[b+24|0],h)){break b}if((k|0)>=1){f=i[c>>2];a=0;while(1){i[f+(d<<2)>>2]=i[(a<<2)+h>>2];d=d+1|0;a=a+1|0;if((k|0)!=(a|0)){continue}break}}l=l+1|0;n=l>>>0>>0;if((l|0)!=(m|0)){continue}break}break b}Ak();x()}if(h){Wk(h)}a=n^1}F=e+16|0;return a&1}function Ke(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=8392;Le(a+232|0);e=i[a+216>>2];if(e){c=e;b=i[a+220>>2];d=c;a:{if((c|0)==(b|0)){break a}while(1){c=i[b+ -12>>2];if(c){i[b+ -8>>2]=c;Wk(c)}c=i[b+ -28>>2];if(c){i[b+ -24>>2]=c;Wk(c)}c=b+ -144|0;d=i[b+ -40>>2];if(d){i[b+ -36>>2]=d;Wk(d)}qe(b+ -140|0);b=c;if((e|0)!=(b|0)){continue}break}d=i[a+216>>2]}c=d;i[a+220>>2]=e;Wk(c)}b=i[a+196>>2];if(b){i[a+200>>2]=b;Wk(b)}b=i[a+184>>2];if(b){i[a+188>>2]=b;Wk(b)}b=i[a+172>>2];if(b){i[a+176>>2]=b;Wk(b)}b=i[a+160>>2];if(b){i[a+164>>2]=b;Wk(b)}b=i[a+144>>2];if(b){while(1){c=i[b>>2];Wk(b);b=c;if(b){continue}break}}b=i[a+136>>2];i[a+136>>2]=0;if(b){Wk(b)}b=i[a+120>>2];if(b){Wk(b)}b=i[a+108>>2];if(b){Wk(b)}b=i[a+96>>2];if(b){Wk(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;Wk(b)}b=i[a+60>>2];if(b){Wk(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;Wk(b)}b=i[a+36>>2];if(b){i[a+40>>2]=b;Wk(b)}b=i[a+24>>2];if(b){i[a+28>>2]=b;Wk(b)}b=i[a+12>>2];if(b){i[a+16>>2]=b;Wk(b)}b=i[a+8>>2];i[a+8>>2]=0;if(b){pe(a+8|0,b)}return a|0}function Cg(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;f=F-16|0;F=f;l=i[a+80>>2];h=g[b+24|0];a=o(l,h);a:{e=i[b+28>>2];b:{if(!(!j[b+84|0]|((e|0)!=2?(e|0)!=1:0))){e=i[b+48>>2];k=i[i[b>>2]>>2];i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;b=0;if(a){if((a|0)<=-1){break a}b=lk(a);d=Yk(b,e+k|0,a)+a|0}a=i[c>>2];if(a){i[c+4>>2]=a;Wk(a)}i[c+8>>2]=d;i[c+4>>2]=d;i[c>>2]=b;a=1;break b}i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;if(h){if((h|0)<=-1){break a}d=lk(h);i[f>>2]=d;e=d+h|0;i[f+8>>2]=e;Zk(d,0,h);i[f+4>>2]=e}k=i[c>>2];e=i[c+4>>2]-k|0;c:{if(a>>>0>e>>>0){Wa(c,a-e|0);break c}if(a>>>0>=e>>>0){break c}i[c+4>>2]=a+k}if(l){a=0;m=1;e=0;while(1){d=e;k=b;if(!j[b+84|0]){d=i[i[b+68>>2]+(e<<2)>>2]}n=d;d=i[f>>2];if(Dg(k,n,g[b+24|0],d)){d:{if((h|0)<1){break d}g[i[c>>2]+a|0]=j[d|0];d=1;a=a+1|0;if((h|0)==1){break d}while(1){g[i[c>>2]+a|0]=j[i[f>>2]+d|0];a=a+1|0;d=d+1|0;if((h|0)!=(d|0)){continue}break}}e=e+1|0;m=e>>>0>>0;if((e|0)!=(l|0)){continue}}break}d=i[f>>2]}if(d){Wk(d)}a=m^1}F=f+16|0;return a&1}Ak();x()}function Ag(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;f=F-16|0;F=f;l=i[a+80>>2];h=g[b+24|0];a=o(l,h);a:{e=i[b+28>>2];b:{if(!(!j[b+84|0]|((e|0)!=2?(e|0)!=1:0))){e=i[b+48>>2];k=i[i[b>>2]>>2];i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;b=0;if(a){if((a|0)<=-1){break a}b=lk(a);d=Yk(b,e+k|0,a)+a|0}a=i[c>>2];if(a){i[c+4>>2]=a;Wk(a)}i[c+8>>2]=d;i[c+4>>2]=d;i[c>>2]=b;a=1;break b}i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;if(h){if((h|0)<=-1){break a}d=lk(h);i[f>>2]=d;e=d+h|0;i[f+8>>2]=e;Zk(d,0,h);i[f+4>>2]=e}k=i[c>>2];e=i[c+4>>2]-k|0;c:{if(a>>>0>e>>>0){Wa(c,a-e|0);break c}if(a>>>0>=e>>>0){break c}i[c+4>>2]=a+k}if(l){a=0;m=1;e=0;while(1){d=e;k=b;if(!j[b+84|0]){d=i[i[b+68>>2]+(e<<2)>>2]}n=d;d=i[f>>2];if(Bg(k,n,g[b+24|0],d)){d:{if((h|0)<1){break d}g[i[c>>2]+a|0]=j[d|0];d=1;a=a+1|0;if((h|0)==1){break d}while(1){g[i[c>>2]+a|0]=j[i[f>>2]+d|0];a=a+1|0;d=d+1|0;if((h|0)!=(d|0)){continue}break}}e=e+1|0;m=e>>>0>>0;if((e|0)!=(l|0)){continue}}break}d=i[f>>2]}if(d){Wk(d)}a=m^1}F=f+16|0;return a&1}Ak();x()}function Hg(a,b,c){var d=0,e=0,f=0,l=0,m=0,n=0,p=0,q=0;e=F-16|0;F=e;p=i[a+80>>2];n=g[b+24|0];a=o(p,n);a:{b:{c:{d=i[b+28>>2];if(!(!j[b+84|0]|((d|0)!=4?(d|0)!=3:0))){l=i[b+48>>2];d=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=0;a=a<<1;if(a){if((a|0)<=-1){break c}b=lk(a);l=Yk(b,d+l|0,a);m=l+a|0;f=l+(a>>1<<1)|0}a=i[c>>2];if(a){i[c+4>>2]=a;Wk(a)}i[c+8>>2]=f;i[c+4>>2]=m;i[c>>2]=b;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(n){if((n|0)<=-1){break c}d=n<<1;m=lk(d);i[e>>2]=m;f=d+m|0;i[e+8>>2]=f;Zk(m,0,d);i[e+4>>2]=f}f=i[c>>2];d=i[c+4>>2]-f>>1;d:{if(a>>>0>d>>>0){Fg(c,a-d|0);break d}if(a>>>0>=d>>>0){break d}i[c+4>>2]=f+(a<<1)}if(!p){break b}f=0;q=1;while(1){a=l;d=b;if(!j[d+84|0]){a=i[i[b+68>>2]+(l<<2)>>2]}if(!Ig(d,a,g[b+24|0],m)){break b}if((n|0)>=1){d=i[c>>2];a=0;while(1){h[d+(f<<1)>>1]=k[(a<<1)+m>>1];f=f+1|0;a=a+1|0;if((n|0)!=(a|0)){continue}break}}l=l+1|0;q=l>>>0

>>0;if((l|0)!=(p|0)){continue}break}break b}Ak();x()}if(m){Wk(m)}a=q^1}F=e+16|0;return a&1}function Eg(a,b,c){var d=0,e=0,f=0,l=0,m=0,n=0,p=0,q=0;e=F-16|0;F=e;p=i[a+80>>2];n=g[b+24|0];a=o(p,n);a:{b:{c:{d=i[b+28>>2];if(!(!j[b+84|0]|((d|0)!=4?(d|0)!=3:0))){l=i[b+48>>2];d=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=0;a=a<<1;if(a){if((a|0)<=-1){break c}b=lk(a);l=Yk(b,d+l|0,a);m=l+a|0;f=l+(a>>1<<1)|0}a=i[c>>2];if(a){i[c+4>>2]=a;Wk(a)}i[c+8>>2]=f;i[c+4>>2]=m;i[c>>2]=b;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(n){if((n|0)<=-1){break c}d=n<<1;m=lk(d);i[e>>2]=m;f=d+m|0;i[e+8>>2]=f;Zk(m,0,d);i[e+4>>2]=f}f=i[c>>2];d=i[c+4>>2]-f>>1;d:{if(a>>>0>d>>>0){Fg(c,a-d|0);break d}if(a>>>0>=d>>>0){break d}i[c+4>>2]=f+(a<<1)}if(!p){break b}f=0;q=1;while(1){a=l;d=b;if(!j[d+84|0]){a=i[i[b+68>>2]+(l<<2)>>2]}if(!Gg(d,a,g[b+24|0],m)){break b}if((n|0)>=1){d=i[c>>2];a=0;while(1){h[d+(f<<1)>>1]=k[(a<<1)+m>>1];f=f+1|0;a=a+1|0;if((n|0)!=(a|0)){continue}break}}l=l+1|0;q=l>>>0

>>0;if((l|0)!=(p|0)){continue}break}break b}Ak();x()}if(m){Wk(m)}a=q^1}F=e+16|0;return a&1}function Z(a,b,c,d,e){var f=0,g=0,h=0,k=0,l=0,n=0,o=0,q=0;f=F-48|0;F=f;a=i[a+4>>2];a:{if(a+ -2>>>0>28){break a}l=i[i[e>>2]>>2]+i[e+48>>2]|0;i[f+16>>2]=a;a=-1<>2]=a^-1;a=-2-a|0;i[f+24>>2]=a;i[f+32>>2]=(a|0)/2;m[f+28>>2]=p(2)/p(a|0);g=i[c>>2];if((g|0)!=i[c+4>>2]){a=0;e=0;while(1){d=i[(e<<2)+g>>2];g=f+36|0;n=i[i[b>>2]>>2];o=i[b+48>>2];h=i[b+44>>2];k=i[b+40>>2];q=k;if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}d=hl(q,h,d,0)+o|0;Yk(g,d+n|0,k);_(f+16|0,f+36|0,f+12|0,f+8|0);d=a<<2;i[d+l>>2]=i[f+12>>2];i[(d|4)+l>>2]=i[f+8>>2];h=1;a=a+2|0;e=e+1|0;g=i[c>>2];if(e>>>0>2]-g>>2>>>0){continue}break}break a}if(!d){h=1;break a}e=0;a=0;while(1){c=a;g=f+36|0;n=i[i[b>>2]>>2];o=i[b+48>>2];h=i[b+44>>2];k=i[b+40>>2];q=k;if(!j[b+84|0]){c=i[i[b+68>>2]+(a<<2)>>2]}c=hl(q,h,c,0)+o|0;Yk(g,c+n|0,k);_(f+16|0,f+36|0,f+12|0,f+8|0);c=e<<2;i[c+l>>2]=i[f+12>>2];i[(c|4)+l>>2]=i[f+8>>2];e=e+2|0;h=1;a=a+1|0;if((d|0)!=(a|0)){continue}break}}F=f+48|0;return h}function hd(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0;h=F-16|0;F=h;f=i[b+16>>2];d=i[b+12>>2];c=i[b+20>>2];a:{if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]<=f>>>0:0){break a}g[a+12|0]=j[f+i[b>>2]|0];d=i[b+20>>2];c=i[b+16>>2]+1|0;if(c>>>0<1){d=d+1|0}i[b+16>>2]=c;i[b+20>>2]=d;if(!id(1,h+12|0,b)){break a}d=i[b+8>>2];m=i[b+16>>2];c=m;e=i[h+12>>2];f=e;k=d-c>>>0>>0;n=d>>>0>>0;d=i[b+20>>2];c=i[b+12>>2]-(n+d|0)|0;if(((c|0)<0?1:(c|0)<=0?k:0)|(e|0)<1){break a}c=m+i[b>>2]|0;i[a>>2]=c;o=e+ -1|0;p=o+c|0;k=j[p|0]>>>6|0;if((k|0)==3){break a}n=a;b:{c:{switch(k-1|0){default:i[a+4>>2]=o;a=j[p|0]&63;break b;case 0:if((e|0)<2){break a}i[a+4>>2]=e+ -2;a=(c+e|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break b;case 1:break c}}if((e|0)<3){break a}i[a+4>>2]=e+ -3;a=(c+e|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0]}a=a+4096|0;i[n+8>>2]=a;if(a>>>0>1048575){break a}a=d;d=f+m|0;if(d>>>0>>0){a=a+1|0}i[b+16>>2]=d;i[b+20>>2]=a;q=1}F=h+16|0;return q}function qa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,m=0,n=0;e=i[a+12>>2];d=i[a+8>>2];f=e-d>>2;b=g[b+24|0];a:{if(f>>>0>>0){ja(a+8|0,b-f|0);d=i[a+8>>2];e=i[a+12>>2];break a}if(f>>>0<=b>>>0){break a}e=(b<<2)+d|0;i[a+12>>2]=e}b=0;h=i[c+12>>2];f=i[c+20>>2];k=i[c+16>>2];m=e-d|0;e=m;n=k+e|0;if(n>>>0>>0){f=f+1|0}b:{if((h|0)<(f|0)?1:(h|0)<=(f|0)?l[c+8>>2]>>0:0){break b}Yk(d,k+i[c>>2]|0,m);d=i[c+20>>2];h=e+i[c+16>>2]|0;if(h>>>0>>0){d=d+1|0}e=h;i[c+16>>2]=e;i[c+20>>2]=d;f=i[c+12>>2];h=e+4|0;if(h>>>0<4){d=d+1|0}if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]>>0:0){break b}d=e+i[c>>2]|0;i[a+20>>2]=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);d=i[c+20>>2];e=d;k=i[c+16>>2];h=k+4|0;if(h>>>0<4){d=d+1|0}i[c+16>>2]=h;i[c+20>>2]=d;f=i[c+12>>2];if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]<=h>>>0:0){break b}f=j[h+i[c>>2]|0];d=e;e=k+5|0;if(e>>>0<5){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;if(f+ -1>>>0>29){break b}i[a+4>>2]=f;b=1}return b|0}function ej(a,b){var c=0,d=0,e=0,f=0,h=0,j=0;j=F-16|0;F=j;a:{b:{if(b){i[a+88>>2]=0;i[a+92>>2]=0;c=a+84|0;d=i[c>>2];i[c>>2]=0;if(d){Wk(d)}i[a+76>>2]=0;i[a+80>>2]=0;c=a+72|0;d=i[c>>2];i[c>>2]=0;if(d){Wk(d)}d=i[b>>2];c=i[b+4>>2];g[j+15|0]=0;ie(a,c-d>>2,j+15|0);c=b+28|0;d=i[c>>2];e=i[b+24>>2];g[j+14|0]=0;ie(a+12|0,d-e>>2,j+14|0);Xi(a+28|0,i[b+4>>2]-i[b>>2]>>2,11020);d=i[a+52>>2];e=i[c>>2]-i[b+24>>2]|0;c=e>>2;c:{if(i[a+60>>2]-d>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break b}f=i[a+56>>2];h=c<<2;c=lk(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){Yk(c,d,e)}i[a+60>>2]=h;i[a+56>>2]=f;i[a+52>>2]=c;if(!d){break c}Wk(d)}d=i[a+40>>2];e=i[b+28>>2]-i[b+24>>2]|0;c=e>>2;d:{if(i[a+48>>2]-d>>2>>>0>=c>>>0){break d}if(c>>>0>=1073741824){break a}f=i[a+44>>2];h=c<<2;c=lk(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){Yk(c,d,e)}i[a+48>>2]=h;i[a+44>>2]=f;i[a+40>>2]=c;if(!d){break d}Wk(d)}g[a+24|0]=1;i[a+64>>2]=b}F=j+16|0;return}va(11024);x()}va(11024);x()}function We(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i[a+12>>2];d=i[a+108>>2];e=i[d+80>>2];g[b+84|0]=0;f=i[b+68>>2];c=i[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){cb(b+68|0,e-c|0,9252);d=i[a+108>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=f+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}p=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=i[n>>2]+(o(d,3)<<2)|0;j=i[c>>2];if((j|0)==-1){break c}f=o(d,12)+m|0;h=i[f>>2];if(h>>>0>=e>>>0){break c}l=i[i[a+112>>2]+12>>2];k=i[l+(j<<2)>>2];if(k>>>0>=e>>>0){break c}j=i[b+68>>2];i[j+(h<<2)>>2]=k;h=i[c+4>>2];if((h|0)==-1){break c}k=i[f+4>>2];if(k>>>0>=e>>>0){break c}h=i[(h<<2)+l>>2];if(h>>>0>=e>>>0){break c}i[j+(k<<2)>>2]=h;c=i[c+8>>2];if((c|0)==-1){break c}f=i[f+8>>2];if(f>>>0>=e>>>0){break c}c=i[(c<<2)+l>>2];if(c>>>0>=e>>>0){break c}i[j+(f<<2)>>2]=c;c=1;d=d+1|0;if((p|0)!=(d|0)){continue}break b}break}c=0}return c|0}function ff(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i[a+12>>2];d=i[a+68>>2];e=i[d+80>>2];g[b+84|0]=0;f=i[b+68>>2];c=i[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){cb(b+68|0,e-c|0,9252);d=i[a+68>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=f+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}p=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=i[n>>2]+(o(d,3)<<2)|0;j=i[c>>2];if((j|0)==-1){break c}f=o(d,12)+m|0;h=i[f>>2];if(h>>>0>=e>>>0){break c}l=i[i[a+72>>2]+12>>2];k=i[l+(j<<2)>>2];if(k>>>0>=e>>>0){break c}j=i[b+68>>2];i[j+(h<<2)>>2]=k;h=i[c+4>>2];if((h|0)==-1){break c}k=i[f+4>>2];if(k>>>0>=e>>>0){break c}h=i[(h<<2)+l>>2];if(h>>>0>=e>>>0){break c}i[j+(k<<2)>>2]=h;c=i[c+8>>2];if((c|0)==-1){break c}f=i[f+8>>2];if(f>>>0>=e>>>0){break c}c=i[(c<<2)+l>>2];if(c>>>0>=e>>>0){break c}i[j+(f<<2)>>2]=c;c=1;d=d+1|0;if((p|0)!=(d|0)){continue}break b}break}c=0}return c|0}function Vb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=F-16|0;F=e;a:{c=i[a+4>>2];b:{if(c>>>0>>0){d=i[a+8>>2];f=d<<5;g=b-c|0;c:{if(!(f>>>0>>0|c>>>0>f-g>>>0)){i[a+4>>2]=b;d=c&31;b=i[a>>2]+(c>>>3&536870908)|0;break c}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if((b|0)<=-1){break a}c=e;if(f>>>0<=1073741822){f=b+31&-32;b=d<<6;b=b>>>0>>0?f:b}else{b=2147483647}Xb(c,b);d=i[a+4>>2];i[e+4>>2]=d+g;h=i[a>>2];b=i[e>>2];d:{if((d|0)<1){d=0;break d}c=d>>>5|0;f=c<<2;b=_k(b,h,f)+f|0;d=d-(c<<5)|0;e:{if((d|0)<1){d=0;break e}c=-1>>>32-d|0;i[b>>2]=i[b>>2]&(c^-1)|c&i[f+h>>2]}h=i[a>>2]}i[a>>2]=i[e>>2];i[e>>2]=h;c=i[a+4>>2];i[a+4>>2]=i[e+4>>2];i[e+4>>2]=c;c=i[a+8>>2];i[a+8>>2]=i[e+8>>2];i[e+8>>2]=c;if(!h){break c}Wk(h)}if(!g){break b}if(d){c=32-d|0;a=c>>>0>g>>>0?g:c;i[b>>2]=i[b>>2]&(-1<>>c-a^-1);g=g-a|0;b=b+4|0}c=g>>>5<<2;a=Zk(b,0,c);b=g&31;if(!b){break b}a=a+c|0;i[a>>2]=i[a>>2]&(-1>>>32-b^-1);break b}i[a+4>>2]=b}F=e+16|0;return}Ak();x()}function Xe(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=F-16|0;F=g;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+28>>2]-i[c+24>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];h=c<<2;c=lk(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){Yk(c,d,e)}i[b+8>>2]=h;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}Wk(d)}b=i[a+12>>2];d=i[b+28>>2];b=i[b+24>>2];i[g+12>>2]=0;b=d-b>>2;c=a+96|0;e=i[c>>2];d=i[a+100>>2]-e>>2;c:{if(b>>>0>d>>>0){Na(c,b-d|0,g+12|0);break c}if(b>>>0>=d>>>0){break c}i[a+100>>2]=e+(b<<2)}e=a+8|0;b=i[a+116>>2];d:{if(b){c=i[b>>2];if((c|0)==i[b+4>>2]){d=1;break d}b=0;while(1){d=Ye(e,i[(b<<2)+c>>2]);if(!d){break d}f=i[a+116>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break d}d=1;a=i[a+12>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break d}b=0;while(1){d=Ye(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break d}if(d){continue}break}}F=g+16|0;return d|0}va(8944);x()}function mf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;j=i[a+12>>2];d=i[a+68>>2];e=i[d+80>>2];g[b+84|0]=0;h=i[b+68>>2];c=i[b+72>>2]-h>>2;a:{if(e>>>0>c>>>0){cb(b+68|0,e-c|0,9252);d=i[a+68>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=h+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}n=d>>>0>1?d:1;p=i[j+28>>2];d=0;b:{while(1){c:{c=(o(d,3)<<2)+p|0;h=i[c>>2];if((h|0)==-1){break c}j=o(d,12)+m|0;k=i[j>>2];if(k>>>0>=e>>>0){break c}f=h<<2;h=i[i[a+72>>2]+12>>2];f=i[f+h>>2];if(f>>>0>=e>>>0){break c}l=k<<2;k=i[b+68>>2];i[l+k>>2]=f;f=i[c+4>>2];if((f|0)==-1){break c}l=i[j+4>>2];if(l>>>0>=e>>>0){break c}f=i[h+(f<<2)>>2];if(f>>>0>=e>>>0){break c}i[k+(l<<2)>>2]=f;c=i[c+8>>2];if((c|0)==-1){break c}j=i[j+8>>2];if(j>>>0>=e>>>0){break c}c=i[h+(c<<2)>>2];if(c>>>0>=e>>>0){break c}i[k+(j<<2)>>2]=c;c=1;d=d+1|0;if((n|0)!=(d|0)){continue}break b}break}c=0}return c|0}function Gj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;j=a+8|0;d=i[a+12>>2];h=i[a+8>>2];f=d-h>>2;a:{if((f|0)>(b|0)){break a}e=b+1|0;if(e>>>0>f>>>0){Hj(j,e-f|0);break a}if(e>>>0>=f>>>0){break a}f=h+(e<<2)|0;if((f|0)!=(d|0)){while(1){d=d+ -4|0;e=i[d>>2];i[d>>2]=0;if(e){Ma(e)}if((d|0)!=(f|0)){continue}break}}i[a+12>>2]=f}b:{c:{d=i[i[c>>2]+56>>2];d:{if((d|0)>4){break d}d=o(d,12)+a|0;h=d+24|0;a=i[h>>2];k=d+28|0;if((a|0)!=i[k>>2]){i[a>>2]=b;i[h>>2]=a+4;break d}l=d+20|0;d=i[l>>2];f=a-d|0;g=f>>2;e=g+1|0;if(e>>>0>=1073741824){break c}a=f>>1;e=g>>>0<536870911?a>>>0>>0?e:a:1073741823;a=0;e:{if(!e){break e}if(e>>>0>=1073741824){break b}a=lk(e<<2)}g=a+(g<<2)|0;i[g>>2]=b;e=a+(e<<2)|0;g=g+4|0;if((f|0)>=1){Yk(a,d,f)}i[l>>2]=a;i[h>>2]=g;i[k>>2]=e;if(!d){break d}Wk(d)}d=i[c>>2];i[d+60>>2]=b;a=i[j>>2];i[c>>2]=0;b=a+(b<<2)|0;a=i[b>>2];i[b>>2]=d;if(a){Ma(a)}return}Ak();x()}va(11352);x()}function Ge(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if((e-c|0)/12>>>0>=b>>>0){if(b){b=o(b,12);c=Zk(c,0,b-((b+ -12>>>0)%12|0)|0)+b|0}i[a+4>>2]=c;return}a:{b:{c:{h=i[a>>2];f=(c-h|0)/12|0;d=f+b|0;if(d>>>0<357913942){f=o(f,12);e=(e-h|0)/12|0;g=e<<1;e=e>>>0<178956970?g>>>0>>0?d:g:357913941;if(e){if(e>>>0>=357913942){break c}j=lk(o(e,12))}d=f+j|0;b=o(b,12);f=Zk(d,0,b-((b+ -12>>>0)%12|0)|0);g=b+f|0;b=o(e,12)+j|0;if((c|0)==(h|0)){break b}while(1){d=d+ -12|0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;c=c+ -12|0;i[d>>2]=i[c>>2];i[d+4>>2]=i[c+4>>2];i[d+8>>2]=i[c+8>>2];i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;if((c|0)!=(h|0)){continue}break}i[a+8>>2]=b;b=i[a+4>>2];i[a+4>>2]=g;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){a=b+ -12|0;d=i[a>>2];if(d){i[b+ -8>>2]=d;Wk(d)}b=a;if((b|0)!=(c|0)){continue}break}break a}Ak();x()}va(8944);x()}i[a+8>>2]=b;i[a+4>>2]=g;i[a>>2]=f}if(c){Wk(c)}}function $(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=p(0),f=p(0),h=p(0),k=p(0),l=p(0),m=0,n=p(0),o=p(0),r=p(0),s=p(0),u=0;a:{if(i[c+28>>2]!=9|j[c+24|0]!=3){break a}a=i[a+4>>2];if(a+ -2>>>0>28){break a}u=1;m=i[c+80>>2];if(!m){break a}n=p(p(2)/p((1<>2]>>2]+i[c+48>>2]|0;a=i[i[b>>2]>>2]+i[b+48>>2]|0;b=0;while(1){h=p(0);o=p(0);r=p(0);e=p(p(n*p(i[a>>2]))+p(-1));f=p(p(n*p(i[a+4>>2]))+p(-1));l=p(p(p(1)-p(q(e)))-p(q(f)));k=p(t(p(-l),p(0)));s=p(-k);f=p(f+(f>>8;g[c+10|0]=d>>>16;g[c+11|0]=d>>>24;d=(ol(o),pl(2));g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;d=(ol(h),pl(2));g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;c=c+12|0;b=b+1|0;if((m|0)!=(b|0)){continue}break}}return u|0}function rc(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+4>>2]=b;i[a>>2]=2776;b=c;e=i[b+8>>2];f=i[b+12>>2];h=i[b+16>>2];j=i[b+20>>2];k=i[b>>2];l=i[b+4>>2];i[a+40>>2]=0;g=a+32|0;i[g>>2]=0;i[g+4>>2]=0;i[a+24>>2]=h;i[a+28>>2]=j;i[a+16>>2]=e;i[a+20>>2]=f;i[a+8>>2]=k;i[a+12>>2]=l;a:{b=i[b+28>>2]-i[b+24>>2]|0;if(b){e=b>>2;if(e>>>0>=1073741824){break a}b=lk(b);i[a+32>>2]=b;i[a+36>>2]=b;i[a+40>>2]=b+(e<<2);e=a;f=i[c+24>>2];c=i[c+28>>2]-f|0;if((c|0)>=1){b=Yk(b,f,c)+c|0}i[e+36>>2]=b}i[a>>2]=4340;b=i[d+4>>2];i[a+44>>2]=i[d>>2];i[a+48>>2]=b;b=d+8|0;e=i[b+4>>2];i[a+52>>2]=i[b>>2];i[a+56>>2]=e;c=a- -64|0;i[c>>2]=0;i[c+4>>2]=0;i[a+60>>2]=5440;i[a>>2]=4856;c=i[d+4>>2];i[a+72>>2]=i[d>>2];i[a+76>>2]=c;c=i[b+4>>2];i[a+80>>2]=i[b>>2];i[a+84>>2]=c;i[a+104>>2]=1065353216;i[a+108>>2]=-1;i[a+96>>2]=-1;i[a+100>>2]=-1;i[a+88>>2]=1;i[a+92>>2]=-1;i[a+60>>2]=5076;gd(a+112|0);return}Ak();x()}function qc(a){var b=0,c=0,d=0;b=i[a+8>>2];d=i[a>>2];a:{if(j[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;if((b|0)==-1|i[i[d>>2]+(b>>>3&536870908)>>2]>>>b&1){break e}b=i[i[i[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}i[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;i[a+8>>2]=b;if((b|0)!=-1){break b}}b=-1;c=i[a+4>>2];f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1|i[i[d>>2]+(c>>>3&536870908)>>2]>>>c&1){break f}d=i[i[i[d+64>>2]+12>>2]+(c<<2)>>2];if((d|0)==-1){break f}if((d>>>0)%3|0){b=d+ -1|0;break f}b=d+2|0}g[a+12|0]=0;i[a+8>>2]=b;return}if((b|0)!=i[a+4>>2]){break a}i[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)==-1|i[i[d>>2]+(b>>>3&536870908)>>2]>>>b&1){break g}b=i[i[i[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break g}if((b>>>0)%3|0){c=b+ -1|0;break g}c=b+2|0}i[a+8>>2]=c}}function Hb(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+4>>2]=b;i[a>>2]=2776;b=c;e=i[b+8>>2];f=i[b+12>>2];h=i[b+16>>2];j=i[b+20>>2];k=i[b>>2];l=i[b+4>>2];i[a+40>>2]=0;g=a+32|0;i[g>>2]=0;i[g+4>>2]=0;i[a+24>>2]=h;i[a+28>>2]=j;i[a+16>>2]=e;i[a+20>>2]=f;i[a+8>>2]=k;i[a+12>>2]=l;a:{b=i[b+28>>2]-i[b+24>>2]|0;if(b){e=b>>2;if(e>>>0>=1073741824){break a}b=lk(b);i[a+32>>2]=b;i[a+36>>2]=b;i[a+40>>2]=b+(e<<2);e=a;f=i[c+24>>2];c=i[c+28>>2]-f|0;if((c|0)>=1){b=Yk(b,f,c)+c|0}i[e+36>>2]=b}i[a>>2]=2720;b=i[d+4>>2];i[a+44>>2]=i[d>>2];i[a+48>>2]=b;b=d+8|0;e=i[b+4>>2];i[a+52>>2]=i[b>>2];i[a+56>>2]=e;c=a- -64|0;i[c>>2]=0;i[c+4>>2]=0;i[a+60>>2]=3944;i[a>>2]=3316;c=i[d+4>>2];i[a+72>>2]=i[d>>2];i[a+76>>2]=c;c=i[b+4>>2];i[a+80>>2]=i[b>>2];i[a+84>>2]=c;i[a+104>>2]=1065353216;i[a+108>>2]=-1;i[a+96>>2]=-1;i[a+100>>2]=-1;i[a+88>>2]=1;i[a+92>>2]=-1;i[a+60>>2]=3552;gd(a+112|0);return}Ak();x()}function nd(a){var b=0,c=0,d=0,e=0;e=F-16|0;F=e;b=lk(32);i[e>>2]=b;i[e+4>>2]=26;i[e+8>>2]=-2147483616;g[b+26|0]=0;c=j[8009]|j[8010]<<8;g[b+24|0]=c;g[b+25|0]=c>>>8;d=j[8005]|j[8006]<<8|(j[8007]<<16|j[8008]<<24);c=j[8001]|j[8002]<<8|(j[8003]<<16|j[8004]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[7997]|j[7998]<<8|(j[7999]<<16|j[8e3]<<24);c=j[7993]|j[7994]<<8|(j[7995]<<16|j[7996]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[7989]|j[7990]<<8|(j[7991]<<16|j[7992]<<24);c=j[7985]|j[7986]<<8|(j[7987]<<16|j[7988]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ok(a+4|0,e);if(g[e+11|0]<=-1){Wk(i[e>>2])}F=e+16|0}function zd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;g=F-16|0;F=g;a:{if(!Kd(1,g+8|0,b)){break a}c=i[b+8>>2];d=i[b+16>>2];h=c-d|0;e=i[g+12>>2];k=i[b+20>>2];f=i[b+12>>2]-(k+(c>>>0>>0)|0)|0;c=i[g+8>>2];if((e|0)==(f|0)&c>>>0>h>>>0|e>>>0>f>>>0){break a}e=e+k|0;f=c+d|0;if(f>>>0>>0){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if((c|0)<1){break a}d=d+i[b>>2]|0;i[a+40>>2]=d;b=a;b:{c:{d:{e:{f:{f=c+ -1|0;h=d+f|0;switch((j[h|0]>>>6|0)-1|0){case 2:break c;case 1:break d;case 0:break e;default:break f}}i[a+44>>2]=f;a=j[h|0]&63;break b}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+d|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break b}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+d|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break b}i[a+44>>2]=c+ -4;a=(c+d|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a+16384|0;i[b+48>>2]=a;l=a>>>0<4194304}F=g+16|0;return l}function rf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=lk(b<<2);d=i[a>>2];i[a>>2]=c;if(d){Wk(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=kl(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(i[d+8>>2]==i[c+8>>2]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){Wk(b)}i[a+4>>2]=0}return}va(8944);x()}function rg(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=F-16|0;F=e;k=sg(a,b);a:{if(!k){break a}d=i[b+100>>2];f=i[b+96>>2];if((d|0)==(f|0)){break a}while(1){if(!(i[i[a+56>>2]+(j>>>3&536870908)>>2]>>>j&1)){d=o(j,3);ij(a,0,d);f=i[a+8>>2];h=i[a+12>>2];ij(a,1,d+1|0);g=i[a+20>>2];l=i[a+24>>2];ij(a,2,d+2|0);g=l-g>>2;f=h-f|0;h=f>>2;d=g>>>0>h>>>0;h=i[a+36>>2]-i[a+32>>2]>>2>>>0>(d?g:h)>>>0?2:d?1:f?0:-1;b:{if(i[a+68>>2]<1){break b}i[e+12>>2]=i[a+76>>2];i[e+8>>2]=c;tg(e+8|0,e+12|0);f=e;g=i[((h<<2)+a|0)+44>>2];d=-1;c:{if((g|0)<0){break c}d=(g>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(g-o(d,3)<<2)>>2]}i[f+12>>2]=d;i[e+8>>2]=c;tg(e+8|0,e+12|0);f=i[a+72>>2]+2|0;i[a+72>>2]=f;if(!(f&1)){break b}i[e+12>>2]=d;i[e+8>>2]=c;tg(e+8|0,e+12|0);i[a+72>>2]=i[a+72>>2]+1}ug(a,h,c);f=i[b+96>>2];d=i[b+100>>2]}j=j+1|0;if(j>>>0<(d-f|0)/12>>>0){continue}break}}F=e+16|0;return k}function Ce(a){i[a>>2]=8392;Zk(a+4|0,0,80);i[a+96>>2]=0;i[a+100>>2]=0;i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+148>>2]=0;i[a+156>>2]=0;i[a+160>>2]=0;i[a+152>>2]=1065353216;i[a+164>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;i[a+196>>2]=0;i[a+200>>2]=0;i[a+204>>2]=0;i[a+208>>2]=0;i[a+212>>2]=-1;i[a+216>>2]=0;i[a+220>>2]=0;i[a+224>>2]=0;Pf(a+232|0);Pf(a+272|0);gd(a+312|0);Pf(a+328|0);i[a+392>>2]=0;i[a+396>>2]=0;i[a+384>>2]=0;i[a+388>>2]=0;i[a+376>>2]=0;i[a+380>>2]=0;i[a+368>>2]=0;i[a+372>>2]=0;i[a+416>>2]=0;i[a+420>>2]=0;i[a+408>>2]=2;i[a+412>>2]=7;i[a+400>>2]=-1;i[a+404>>2]=-1;i[a+424>>2]=0;i[a+428>>2]=0;i[a+432>>2]=0;i[a+436>>2]=0}function na(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,n=0,r=0,s=0,t=0,v=0,w=0,x=p(0),y=0,z=0,A=p(0),B=0,C=0,D=0,E=0;r=F-16|0;F=r;e=i[a+4>>2];h=i[d+48>>2];l=i[i[d>>2]>>2];k=g[b+24|0];f=_f(r+8|0);$f(f,m[a+20>>2],-1<>2];e=i[c+4>>2];if((n|0)!=(e|0)){y=h+l|0;c=e-n|0;h=(c|0)>-1?c:-1;e=n-e|0;c=o((h|0)<1?h:1,((e|0)>(c|0)?e:c)>>>2|0);z=c>>>0>1?c:1;A=m[f>>2];B=i[b>>2];e=i[b+48>>2];C=i[b+68>>2];h=i[b+44>>2];l=i[b+40>>2];D=l;c=0;E=j[b+84|0];while(1){b=i[(s<<2)+n>>2];f=d;t=i[B>>2];v=l;w=h;if(!E){b=i[(b<<2)+C>>2]}b=hl(v,w,b,0)+e|0;v=Yk(f,b+t|0,D);if((k|0)>=1){w=i[a+8>>2];b=0;while(1){t=y+(c<<2)|0;f=b<<2;x=p(u(p(p(A*p(m[f+v>>2]-m[f+w>>2]))+p(.5))));a:{if(p(q(x))>2]=f;c=c+1|0;b=b+1|0;if((k|0)!=(b|0)){continue}break}}s=s+1|0;if((z|0)!=(s|0)){continue}break}}Wk(d);F=r+16|0}function ba(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0;l=d-c|0;if((l|0)<1){return}a:{e=i[a+8>>2];m=i[a+4>>2];if((l|0)<=(e-m|0)){k=m-b|0;if((l|0)<=(k|0)){e=m;h=d;break a}e=m;h=c+k|0;if((h|0)!=(d|0)){f=h;while(1){g[e|0]=j[f|0];e=e+1|0;f=f+1|0;if((f|0)!=(d|0)){continue}break}}i[a+4>>2]=e;if((k|0)>=1){break a}return}h=i[a>>2];d=(m-h|0)+l|0;if((d|0)>-1){k=b-h|0;n=k;f=e-h|0;e=f<<1;e=f>>>0<1073741823?e>>>0>>0?d:e:2147483647;d=0;b:{if(!e){break b}d=lk(e)}c=Yk(n+d|0,c,l);if((k|0)>=1){Yk(d,h,k)}e=d+e|0;c=c+l|0;f=m-b|0;if((f|0)>=1){c=Yk(c,b,f)+f|0}i[a+8>>2]=e;i[a+4>>2]=c;i[a>>2]=d;if(h){Wk(h)}return}Ak();x()}k=e-(b+l|0)|0;f=e;d=e-l|0;if(d>>>0>>0){while(1){g[f|0]=j[d|0];f=f+1|0;d=d+1|0;if(d>>>0>>0){continue}break}}i[a+4>>2]=f;if(k){_k(e-k|0,b,k)}if((c|0)==(h|0)){return}f=b;while(1){g[f|0]=j[c|0];f=f+1|0;c=c+1|0;if((h|0)!=(c|0)){continue}break}}function Fa(a,b){var c=0,d=0,e=0,f=0,h=0;if(!i[a+64>>2]){e=lk(32);c=Mf(e);d=i[a+64>>2];i[a+64>>2]=e;e=a;if(d){c=i[d>>2];if(c){i[d+4>>2]=c;Wk(c)}Wk(d);c=i[a+64>>2]}Ba(e,c,0,0)}a:{b:{if(!Aa(a,b)){break b}g[a+84|0]=j[b+84|0];i[a+80>>2]=i[b+80>>2];if((a|0)!=(b|0)){Ga(a+68|0,i[b+68>>2],i[b+72>>2])}d=i[b+88>>2];if(d){b=lk(40);c=i[d>>2];i[b+16>>2]=0;i[b+8>>2]=0;i[b+12>>2]=0;i[b>>2]=c;e=i[d+12>>2]-i[d+8>>2]|0;if(e){if((e|0)<=-1){break a}c=lk(e);i[b+8>>2]=c;i[b+12>>2]=c;i[b+16>>2]=c+e;e=b;h=i[d+8>>2];f=i[d+12>>2]-h|0;if((f|0)>=1){c=Yk(c,h,f)+f|0}i[e+12>>2]=c}c=i[d+36>>2];i[b+32>>2]=i[d+32>>2];i[b+36>>2]=c;c=i[d+28>>2];i[b+24>>2]=i[d+24>>2];i[b+28>>2]=c;c=i[a+88>>2];i[a+88>>2]=b;if(!c){break b}a=i[c+8>>2];if(a){i[c+12>>2]=a;Wk(a)}Wk(c);return}b=i[a+88>>2];i[a+88>>2]=0;if(!b){break b}a=i[b+8>>2];if(a){i[b+12>>2]=a;Wk(a)}Wk(b)}return}Ak();x()}function Bd(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=F+ -64|0;F=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!yd(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!zd(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>16383){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<16384){continue}break}}e=b&4095;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>12|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=zd(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;Wk(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;Wk(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;Wk(a)}F=d- -64|0;return e}function od(a,b){var c=0,d=0,e=0;e=F-16|0;F=e;i[e+12>>2]=b;b=lk(32);i[e>>2]=b;i[e+4>>2]=24;i[e+8>>2]=-2147483616;g[b+24|0]=0;c=j[8053]|j[8054]<<8|(j[8055]<<16|j[8056]<<24);d=j[8049]|j[8050]<<8|(j[8051]<<16|j[8052]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[8045]|j[8046]<<8|(j[8047]<<16|j[8048]<<24);d=j[8041]|j[8042]<<8|(j[8043]<<16|j[8044]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[8037]|j[8038]<<8|(j[8039]<<16|j[8040]<<24);d=j[8033]|j[8034]<<8|(j[8035]<<16|j[8036]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;Xf(pd(a,e+12|0),e);if(g[e+11|0]<=-1){Wk(i[e>>2])}F=e+16|0}function gj(a,b){var c=0,d=0,e=0,f=0,h=0,j=0;e=i[a>>2];c=e+(b>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>2];f=(b|0)==-1;c=-1;a:{if(f){break a}d=b+1|0;d=(d>>>0)%3|0?d:b+ -2|0;c=-1;if((d|0)==-1){break a}c=i[i[h>>2]+(d<<2)>>2]}d=i[a+12>>2];j=(c>>>3&536870908)+d|0;i[j>>2]=i[j>>2]|1<>>0)%3|0?-1:2)+b|0;if((f|0)!=-1){c=i[i[h>>2]+(f<<2)>>2]}f=d+(c>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>2]+(b<<2)>>2];if((b|0)==-1){break b}g[a+24|0]=0;a=(b>>>3&536870908)+e|0;i[a>>2]=i[a>>2]|1<>>0)%3|0?e:b+ -2|0;if((e|0)!=-1){c=i[i[h>>2]+(e<<2)>>2]}e=d+(c>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<>>0)%3|0?-1:2)|0;if((b|0)!=-1){a=i[i[h>>2]+(b<<2)>>2]}b=1<>>3&536870908)|0;c=i[a>>2];break c}a=d+536870908|0;b=i[d+536870908>>2];c=-2147483648}i[a>>2]=b|c}}function Ng(a,b,c,d,e){var f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0;h=F-16|0;F=h;a:{b:{switch(c+ -1|0){case 0:f=Og(a,b,d,e);break a;case 2:f=Pg(a,b,d,e);break a;case 4:f=Qg(a,b,d,e);break a;case 1:f=Rg(a,b,d,e);break a;case 3:f=Sg(a,b,d,e);break a;case 5:f=Tg(a,b,d,e);break a;case 8:break b;default:break a}}l=g[b+24|0];m=l<<2;a=i[a+80>>2];if((o(m,a)|0)!=(d|0)){break a}c=i[b+28>>2];d=i[2663];i[h+8>>2]=i[2662];i[h+12>>2]=d;d=i[2661];i[h>>2]=i[2660];i[h+4>>2]=d;c:{if(!a){break c}d=0;p=(c|0)!=9;k=1;while(1){c=j[b+84|0]?f:i[i[b+68>>2]+(f<<2)>>2];d:{if(!p){k=i[b+48>>2];q=i[i[b>>2]>>2];n=i[b+40>>2];c=hl(n,i[b+44>>2],c,0)+k|0;Yk(h,q+c|0,n);break d}if(!yg(b,c,g[b+24|0],h)){break c}}if((l|0)>=1){Yk((d<<2)+e|0,h,m);d=d+l|0}f=f+1|0;k=f>>>0>>0;if((a|0)!=(f|0)){continue}break}}f=k^1}F=h+16|0;return f&1}function Tg(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;h=F-16|0;F=h;a:{m=i[a+80>>2];k=g[b+24|0];f=k<<2;e=0;b:{if((o(m,f)|0)!=(c|0)){break b}n=i[b+28>>2]!=6;if(!(n|!j[b+84|0])){Yk(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;a=0;if(k){if((k|0)<=-1){break a}a=lk(f);i[h>>2]=a;c=(k<<2)+a|0;i[h+8>>2]=c;Zk(a,0,f);i[h+4>>2]=c}c:{if(!m){break c}c=0;l=1;f=0;while(1){e=j[b+84|0]?f:i[i[b+68>>2]+(f<<2)>>2];d:{if(!n){p=i[i[b>>2]>>2];l=i[b+40>>2];e=i[b+48>>2]+hl(l,i[b+44>>2],e,0)|0;Yk(a,p+e|0,l);break d}if(!Mg(b,e,g[b+24|0],a)){break c}}e=0;if((k|0)>=1){while(1){i[(c<<2)+d>>2]=i[(e<<2)+a>>2];c=c+1|0;e=e+1|0;if((k|0)!=(e|0)){continue}break}}f=f+1|0;l=f>>>0>>0;if((f|0)!=(m|0)){continue}break}}if(a){Wk(a)}e=l^1}F=h+16|0;return e&1}Ak();x()}function Sg(a,b,c,d){var e=0,f=0,l=0,m=0,n=0,p=0,q=0,r=0;l=F-16|0;F=l;a:{p=i[a+80>>2];m=g[b+24|0];f=m<<1;e=0;b:{if((o(p,f)|0)!=(c|0)){break b}q=i[b+28>>2]!=4;if(!(q|!j[b+84|0])){Yk(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[l+8>>2]=0;i[l>>2]=0;i[l+4>>2]=0;a=0;if(m){if((m|0)<=-1){break a}a=lk(f);i[l>>2]=a;c=(m<<1)+a|0;i[l+8>>2]=c;Zk(a,0,f);i[l+4>>2]=c}c:{if(!p){break c}c=0;n=1;f=0;while(1){e=j[b+84|0]?f:i[i[b+68>>2]+(f<<2)>>2];d:{if(!q){r=i[i[b>>2]>>2];n=i[b+40>>2];e=i[b+48>>2]+hl(n,i[b+44>>2],e,0)|0;Yk(a,r+e|0,n);break d}if(!Ig(b,e,g[b+24|0],a)){break c}}e=0;if((m|0)>=1){while(1){h[(c<<1)+d>>1]=k[(e<<1)+a>>1];c=c+1|0;e=e+1|0;if((m|0)!=(e|0)){continue}break}}f=f+1|0;n=f>>>0

>>0;if((f|0)!=(p|0)){continue}break}}if(a){Wk(a)}e=n^1}F=l+16|0;return e&1}Ak();x()}function Qg(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;h=F-16|0;F=h;a:{m=i[a+80>>2];k=g[b+24|0];f=k<<2;e=0;b:{if((o(m,f)|0)!=(c|0)){break b}n=i[b+28>>2]!=5;if(!(n|!j[b+84|0])){Yk(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;a=0;if(k){if((k|0)<=-1){break a}a=lk(f);i[h>>2]=a;c=(k<<2)+a|0;i[h+8>>2]=c;Zk(a,0,f);i[h+4>>2]=c}c:{if(!m){break c}c=0;l=1;f=0;while(1){e=j[b+84|0]?f:i[i[b+68>>2]+(f<<2)>>2];d:{if(!n){p=i[i[b>>2]>>2];l=i[b+40>>2];e=i[b+48>>2]+hl(l,i[b+44>>2],e,0)|0;Yk(a,p+e|0,l);break d}if(!Kg(b,e,g[b+24|0],a)){break c}}e=0;if((k|0)>=1){while(1){i[(c<<2)+d>>2]=i[(e<<2)+a>>2];c=c+1|0;e=e+1|0;if((k|0)!=(e|0)){continue}break}}f=f+1|0;l=f>>>0>>0;if((f|0)!=(m|0)){continue}break}}if(a){Wk(a)}e=l^1}F=h+16|0;return e&1}Ak();x()}function Pg(a,b,c,d){var e=0,f=0,l=0,m=0,n=0,p=0,q=0,r=0;l=F-16|0;F=l;a:{p=i[a+80>>2];m=g[b+24|0];f=m<<1;e=0;b:{if((o(p,f)|0)!=(c|0)){break b}q=i[b+28>>2]!=3;if(!(q|!j[b+84|0])){Yk(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[l+8>>2]=0;i[l>>2]=0;i[l+4>>2]=0;a=0;if(m){if((m|0)<=-1){break a}a=lk(f);i[l>>2]=a;c=(m<<1)+a|0;i[l+8>>2]=c;Zk(a,0,f);i[l+4>>2]=c}c:{if(!p){break c}c=0;n=1;f=0;while(1){e=j[b+84|0]?f:i[i[b+68>>2]+(f<<2)>>2];d:{if(!q){r=i[i[b>>2]>>2];n=i[b+40>>2];e=i[b+48>>2]+hl(n,i[b+44>>2],e,0)|0;Yk(a,r+e|0,n);break d}if(!Gg(b,e,g[b+24|0],a)){break c}}e=0;if((m|0)>=1){while(1){h[(c<<1)+d>>1]=k[(e<<1)+a>>1];c=c+1|0;e=e+1|0;if((m|0)!=(e|0)){continue}break}}f=f+1|0;n=f>>>0

>>0;if((f|0)!=(p|0)){continue}break}}if(a){Wk(a)}e=n^1}F=l+16|0;return e&1}Ak();x()}function vb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=F-16|0;F=f;l=i[c+8>>2];h=i[c+16>>2];k=i[c+12>>2];d=k;j=i[c+20>>2];e=j;a:{if((d|0)<(e|0)?1:(d|0)<=(e|0)?l>>>0<=h>>>0:0){break a}m=i[c>>2];n=g[m+h|0];d=j;e=h+1|0;if(e>>>0<1){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;b:{if((n|0)==-2){break b}if((k|0)<(d|0)?1:(k|0)<=(d|0)?l>>>0<=e>>>0:0){break a}e=g[e+m|0];h=h+2|0;if(h>>>0<2){j=j+1|0}d=c;i[d+16>>2]=h;i[d+20>>2]=j;if((e+1&255)>>>0>4){break a}I[i[i[a>>2]+40>>2]](f+8|0,a,n,e);j=i[f+8>>2];i[f+8>>2]=0;d=i[a+20>>2];i[a+20>>2]=j;if(!d){break b}I[i[i[d>>2]+4>>2]](d);d=i[f+8>>2];i[f+8>>2]=0;if(!d){break b}I[i[i[d>>2]+4>>2]](d)}d=i[a+20>>2];if(d){if(!(I[i[i[a>>2]+28>>2]](a,d)|0)){break a}}o=I[i[i[a>>2]+36>>2]](a,b,c)|0}F=f+16|0;return o|0}function Ec(a){var b=0,c=0,d=0;b=i[a+8>>2];d=i[a>>2];a:{if(j[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;if((b|0)==-1){break e}b=i[i[d+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}i[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;i[a+8>>2]=b;if((b|0)!=-1){break b}}c=i[a+4>>2];b=-1;f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;b=-1;if((c|0)==-1){break f}c=i[i[d+12>>2]+(c<<2)>>2];b=-1;if((c|0)==-1){break f}b=c+ -1|0;if((c>>>0)%3|0){break f}b=c+2|0}g[a+12|0]=0;i[a+8>>2]=b;return}if((b|0)!=i[a+4>>2]){break a}i[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;c=-1;if((b|0)==-1){break g}b=i[i[d+12>>2]+(b<<2)>>2];c=-1;if((b|0)==-1){break g}c=b+ -1|0;if((b>>>0)%3|0){break g}c=b+2|0}i[a+8>>2]=c}}function mc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=i[b+12>>2];g=d;c=i[b+20>>2];f=c;a:{h=i[b+16>>2];e=h+4|0;if(e>>>0<4){c=c+1|0}l=i[b+8>>2];k=e;e=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?l>>>0>>0:0){break a}m=i[b>>2];c=m+h|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=k;i[b+20>>2]=e;c=f;f=h+8|0;if(f>>>0<8){c=c+1|0}e=f;f=c;if((g|0)<(c|0)?1:(g|0)<=(c|0)?l>>>0>>0:0){break a}c=k+m|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=e;i[b+20>>2]=f;if((d|0)>(c|0)){break a}i[a+16>>2]=c;i[a+12>>2]=d;g=d;d=(c>>31)-((d>>31)+(c>>>0>>0)|0)|0;c=c-g|0;if(!d&c>>>0>2147483646|d>>>0>0){break a}c=c+1|0;i[a+20>>2]=c;d=(c|0)/2|0;i[a+24>>2]=d;i[a+28>>2]=0-d;if(!(c&1)){i[a+24>>2]=d+ -1}return hd(a+112|0,b)|0}return 0}function _k(a,b,c){var d=0;a:{if((a|0)==(b|0)){break a}if((b-a|0)-c>>>0<=0-(c<<1)>>>0){return Yk(a,b,c)}d=(a^b)&3;b:{c:{if(a>>>0>>0){if(d){d=a;break b}if(!(a&3)){d=a;break c}d=a;while(1){if(!c){break a}g[d|0]=j[b|0];b=b+1|0;c=c+ -1|0;d=d+1|0;if(d&3){continue}break}break c}d:{if(d){break d}if(a+c&3){while(1){if(!c){break a}c=c+ -1|0;d=c+a|0;g[d|0]=j[b+c|0];if(d&3){continue}break}}if(c>>>0<=3){break d}while(1){c=c+ -4|0;i[c+a>>2]=i[b+c>>2];if(c>>>0>3){continue}break}}if(!c){break a}while(1){c=c+ -1|0;g[c+a|0]=j[b+c|0];if(c){continue}break}break a}if(c>>>0<=3){break b}while(1){i[d>>2]=i[b>>2];b=b+4|0;d=d+4|0;c=c+ -4|0;if(c>>>0>3){continue}break}}if(!c){break a}while(1){g[d|0]=j[b|0];d=d+1|0;b=b+1|0;c=c+ -1|0;if(c){continue}break}}return a}function gg(a,b){var c=0,d=0,e=0,f=0,h=0;a:{b:{c:{e=i[a>>2];h=(i[a+4>>2]-e|0)/12|0;c=h+1|0;if(c>>>0<357913942){e=(i[a+8>>2]-e|0)/12|0;f=e<<1;c=e>>>0<178956970?f>>>0>>0?c:f:357913941;d=0;d:{if(!c){break d}if(c>>>0>=357913942){break c}d=lk(o(c,12))}e=d+o(c,12)|0;d=ok(d+o(h,12)|0,b);h=d+12|0;b=i[a+4>>2];c=i[a>>2];if((b|0)==(c|0)){break b}while(1){b=b+ -12|0;f=i[b+4>>2];d=d+ -12|0;i[d>>2]=i[b>>2];i[d+4>>2]=f;f=b+8|0;i[d+8>>2]=i[f>>2];i[b>>2]=0;i[b+4>>2]=0;i[f>>2]=0;if((b|0)!=(c|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=h;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){a=b+ -12|0;if(g[b+ -1|0]<=-1){Wk(i[a>>2])}b=a;if((a|0)!=(c|0)){continue}break}break a}Ak();x()}va(10656);x()}i[a+8>>2]=e;i[a+4>>2]=h;i[a>>2]=d}if(c){Wk(c)}}function fg(a,b,c){var d=0,e=0,f=0,h=0,j=0;a:{if(i[a+12>>2]==(b|0)){break a}d=i[a>>2];e=i[a+4>>2];if((d|0)!=(e|0)){while(1){f=e+ -12|0;if(g[e+ -1|0]<=-1){Wk(i[f>>2])}e=f;if((e|0)!=(d|0)){continue}break}}i[a+12>>2]=b;i[a+4>>2]=d;e=i[b>>2];f=b+4|0;if((e|0)==(f|0)){break a}while(1){b=e+16|0;b:{if(i[a+8>>2]!=(d|0)){h=a,j=ok(d,b)+12|0,i[h+4>>2]=j;break b}gg(a,b)}d=i[e+4>>2];c:{if(!d){b=i[e+8>>2];if(i[b>>2]==(e|0)){break c}e=e+8|0;while(1){d=i[e>>2];e=d+8|0;b=i[d+8>>2];if((d|0)!=i[b>>2]){continue}break}break c}while(1){b=d;d=i[d>>2];if(d){continue}break}}if((b|0)==(f|0)){break a}d=i[a+4>>2];e=b;continue}}d=0;d:{if((c|0)<0){break d}b=i[a+4>>2];a=i[a>>2];if((b-a|0)/12>>>0<=c>>>0){break d}d=a+o(c,12)|0;if(g[d+11|0]>-1){break d}d=i[d>>2]}return d}function oj(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;d=F-16|0;F=d;g=i[a+24>>2];n=i[a+28>>2];a:{if((g|0)!=(n|0)){p=d+8|0;while(1){i[p>>2]=0;i[d>>2]=0;i[d+4>>2]=0;e=wj(i[g>>2],b,d);a=j[d+11|0];l=a<<24>>24;m=3;b:{c:{d:{if(!e){break d}m=0;e=j[c+11|0];f=e<<24>>24;k=(l|0)<0?i[d+4>>2]:a;if((k|0)!=(((f|0)<0?i[c+4>>2]:e)|0)){break d}h=(f|0)<0?i[c>>2]:c;f=i[d>>2];e=(l|0)<0;e:{if(!e){if(!k){break e}e=d;if(j[h|0]!=(f&255)){break d}while(1){a=a+ -1|0;if(!a){break e}f=j[h+1|0];h=h+1|0;e=e+1|0;if((f|0)==j[e|0]){continue}break}break d}if(!k){break e}if(Lj(e?f:d,h,k)){break c}}o=i[g>>2];m=1}if((l|0)>-1){break b}}Wk(i[d>>2])}f:{switch(m|0){case 0:case 3:break f;default:break a}}g=g+4|0;if((n|0)!=(g|0)){continue}break}}o=0}F=d+16|0;return o}function Rg(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;e=F-16|0;F=e;a:{m=i[a+80>>2];f=g[b+24|0];k=0;b:{if((o(m,f)|0)!=(c|0)){break b}k=i[b+28>>2]!=2;if(!(k|!j[b+84|0])){Yk(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);k=1;break b}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(f){if((f|0)<=-1){break a}h=lk(f);i[e>>2]=h;a=f+h|0;i[e+8>>2]=a;Zk(h,0,f);i[e+4>>2]=a}c:{if(!m){break c}c=0;l=1;while(1){a=n;a=j[b+84|0]?a:i[i[b+68>>2]+(a<<2)>>2];d:{if(!k){p=i[i[b>>2]>>2];l=i[b+40>>2];a=i[b+48>>2]+hl(l,i[b+44>>2],a,0)|0;Yk(h,p+a|0,l);break d}if(!Dg(b,a,g[b+24|0],h)){break c}}a=0;if((f|0)>=1){while(1){g[c+d|0]=j[a+h|0];c=c+1|0;a=a+1|0;if((f|0)!=(a|0)){continue}break}}n=n+1|0;l=n>>>0>>0;if((n|0)!=(m|0)){continue}break}}if(h){Wk(h)}k=l^1}F=e+16|0;return k&1}Ak();x()}function Og(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;e=F-16|0;F=e;a:{m=i[a+80>>2];f=g[b+24|0];k=0;b:{if((o(m,f)|0)!=(c|0)){break b}k=i[b+28>>2]!=1;if(!(k|!j[b+84|0])){Yk(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);k=1;break b}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(f){if((f|0)<=-1){break a}h=lk(f);i[e>>2]=h;a=f+h|0;i[e+8>>2]=a;Zk(h,0,f);i[e+4>>2]=a}c:{if(!m){break c}c=0;l=1;while(1){a=n;a=j[b+84|0]?a:i[i[b+68>>2]+(a<<2)>>2];d:{if(!k){p=i[i[b>>2]>>2];l=i[b+40>>2];a=i[b+48>>2]+hl(l,i[b+44>>2],a,0)|0;Yk(h,p+a|0,l);break d}if(!Bg(b,a,g[b+24|0],h)){break c}}a=0;if((f|0)>=1){while(1){g[c+d|0]=j[a+h|0];c=c+1|0;a=a+1|0;if((f|0)!=(a|0)){continue}break}}n=n+1|0;l=n>>>0>>0;if((n|0)!=(m|0)){continue}break}}if(h){Wk(h)}k=l^1}F=e+16|0;return k&1}Ak();x()}function Ob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;d=i[b+12>>2];k=d;c=i[b+20>>2];f=c;g=i[b+16>>2];e=g+4|0;if(e>>>0<4){c=c+1|0}l=i[b+8>>2];h=e;e=c;a:{if((d|0)<(c|0)?1:(d|0)<=(c|0)?l>>>0>>0:0){break a}m=i[b>>2];c=m+g|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=e;c=f;f=g+8|0;if(f>>>0<8){c=c+1|0}e=f;f=c;if((k|0)<(c|0)?1:(k|0)<=(c|0)?l>>>0>>0:0){break a}c=h+m|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=e;i[b+20>>2]=f;if((d|0)>(c|0)){break a}i[a+16>>2]=c;i[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break a}n=1;b=b+1|0;i[a+20>>2]=b;c=(b|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(b&1){break a}i[a+24>>2]=c+ -1}return n|0}function je(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=Zk(c,0,b)+b|0}i[a+4>>2]=c;return}a:{b:{c:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){d=d-g|0;h=d>>1;e=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(e){if(e>>>0>=1073741824){break c}j=lk(e<<2)}d=(f<<2)+j|0;f=b<<2;b=Zk(d,0,f);f=b+f|0;e=(e<<2)+j|0;if((c|0)==(g|0)){break b}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;d=d+ -4|0;i[d>>2]=b;if((c|0)!=(g|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){I[i[i[a>>2]+4>>2]](a)}if((b|0)!=(c|0)){continue}break}break a}Ak();x()}va(8944);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){Wk(c)}}function jb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=Zk(c,0,b)+b|0}i[a+4>>2]=c;return}a:{b:{c:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){d=d-g|0;h=d>>1;e=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(e){if(e>>>0>=1073741824){break c}j=lk(e<<2)}d=(f<<2)+j|0;f=b<<2;b=Zk(d,0,f);f=b+f|0;e=(e<<2)+j|0;if((c|0)==(g|0)){break b}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;d=d+ -4|0;i[d>>2]=b;if((c|0)!=(g|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){I[i[i[a>>2]+4>>2]](a)}if((b|0)!=(c|0)){continue}break}break a}Ak();x()}va(1876);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){Wk(c)}}function Ae(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=i[a+8>>2];d=i[a+4>>2];if((e-d|0)/12>>>0>=b>>>0){f=a;if(b){a=o(b,12)+d|0;while(1){b=i[c+4>>2];i[d>>2]=i[c>>2];i[d+4>>2]=b;i[d+8>>2]=i[c+8>>2];d=d+12|0;if((a|0)!=(d|0)){continue}break}d=a}i[f+4>>2]=d;return}a:{g=i[a>>2];j=d-g|0;h=(j|0)/12|0;f=h+b|0;if(f>>>0<357913942){d=o(b,12);e=(e-g|0)/12|0;k=e<<1;e=e>>>0<178956970?k>>>0>>0?f:k:357913941;f=0;b:{if(!e){break b}if(e>>>0>=357913942){break a}f=lk(o(e,12))}b=f+o(h,12)|0;h=d+b|0;d=b;while(1){k=i[c+4>>2];i[d>>2]=i[c>>2];i[d+4>>2]=k;i[d+8>>2]=i[c+8>>2];d=d+12|0;if((h|0)!=(d|0)){continue}break}c=f+o(e,12)|0;b=b+o((j|0)/-12|0,12)|0;if((j|0)>=1){Yk(b,g,j)}i[a+8>>2]=c;i[a+4>>2]=h;i[a>>2]=b;if(g){Wk(g)}return}Ak();x()}va(8944);x()}function ma(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,n=0,o=0,r=0,s=0,t=0,v=0,w=p(0),x=0,y=p(0),z=0,A=0,B=0,C=0,D=0;n=F-16|0;F=n;h=i[a+4>>2];o=i[d+48>>2];d=i[i[d>>2]>>2];f=g[b+24|0];k=_f(n+8|0);$f(k,m[a+20>>2],-1<>2];z=i[b>>2];o=i[b+48>>2];A=i[b+68>>2];k=i[b+44>>2];v=i[b+40>>2];B=v;d=0;C=j[b+84|0];D=(f|0)<1;while(1){b=l;e=h;r=i[z>>2];s=v;t=k;if(!C){b=i[(l<<2)+A>>2]}b=hl(s,t,b,0)+o|0;s=Yk(e,b+r|0,B);if(!D){t=i[a+8>>2];b=0;while(1){r=(d<<2)+x|0;e=b<<2;w=p(u(p(p(y*p(m[e+s>>2]-m[e+t>>2]))+p(.5))));a:{if(p(q(w))>2]=e;d=d+1|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}l=l+1|0;if((l|0)!=(c|0)){continue}break}}Wk(h);F=n+16|0}function eb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0;g=i[b>>2];h=i[b+4>>2];p=i[i[a+8>>2]+40>>2];j=p;q=lk((j|0)>-1?j:-1);k=1;m=h-g|0;a:{if((m|0)<1){break a}b=0;n=i[c+12>>2];k=0;d=0+i[c+20>>2]|0;o=i[c+16>>2];e=p;f=o+e|0;if(f>>>0>>0){d=d+1|0}e=f;f=d;if((n|0)<(d|0)?1:(n|0)<=(d|0)?l[c+8>>2]>>0:0){break a}k=m>>2;d=g-h|0;d=((d|0)>(m|0)?d:m)>>>2|0;n=d>>>0>1?d:1;g=0;while(1){b:{d=Yk(q,o+i[c>>2]|0,j);i[c+16>>2]=e;i[c+20>>2]=f;Yk(i[i[i[a+8>>2]+64>>2]>>2]+b|0,d,j);g=g+1|0;if((n|0)==(g|0)){break b}b=b+j|0;h=i[c+12>>2];d=r+i[c+20>>2]|0;o=i[c+16>>2];f=p;e=o+f|0;if(e>>>0>>0){d=d+1|0}f=d;if((h|0)>(d|0)?1:(h|0)>=(d|0)?l[c+8>>2]>=e>>>0:0){continue}}break}k=(g|0)>=(k|0)}Wk(q);return k|0}function Yb(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;e=F-32|0;F=e;h=i[c>>2];g=i[b>>2];j=i[c+4>>2];c=i[b+4>>2];b=(h-g<<3)+(j-c|0)|0;d=i[a+4>>2];f=b+d|0;i[a+4>>2]=f;a:{if(!(!d|(f+ -1^d+ -1)>>>0>31)){a=i[a>>2];break a}a=i[a>>2];if(f>>>0<=32){i[a>>2]=0;break a}i[(f+ -1>>>3&536870908)+a>>2]=0}a=(d>>>3&536870908)+a|0;d=d&31;b:{if((d|0)==(c|0)){if((b|0)<1){break b}if(c){f=32-c|0;d=(b|0)<(f|0)?b:f;f=-1<>>f-d;i[a>>2]=i[a>>2]&(f^-1)|f&i[g>>2];b=b-d|0;g=g+4|0;a=a+(c+d>>>3&536870908)|0}d=a;c=(b|0)/32|0;a=c<<2;d=_k(d,g,a);b=b-(c<<5)|0;if((b|0)<1){break b}c=a+d|0;b=-1>>>32-b|0;i[c>>2]=i[c>>2]&(b^-1)|b&i[a+g>>2];break b}i[e+28>>2]=c;i[e+24>>2]=g;i[e+20>>2]=j;i[e+16>>2]=h;i[e+12>>2]=d;i[e+8>>2]=a;Zb(e,e+24|0,e+16|0,e+8|0)}F=e+32|0}function Zk(a,b,c){var d=0,e=0,f=0,h=0;a:{if(!c){break a}d=a+c|0;g[d+ -1|0]=b;g[a|0]=b;if(c>>>0<3){break a}g[d+ -2|0]=b;g[a+1|0]=b;g[d+ -3|0]=b;g[a+2|0]=b;if(c>>>0<7){break a}g[d+ -4|0]=b;g[a+3|0]=b;if(c>>>0<9){break a}d=0-a&3;e=d+a|0;b=o(b&255,16843009);i[e>>2]=b;c=c-d&-4;d=c+e|0;i[d+ -4>>2]=b;if(c>>>0<9){break a}i[e+8>>2]=b;i[e+4>>2]=b;i[d+ -8>>2]=b;i[d+ -12>>2]=b;if(c>>>0<25){break a}i[e+24>>2]=b;i[e+20>>2]=b;i[e+16>>2]=b;i[e+12>>2]=b;i[d+ -16>>2]=b;i[d+ -20>>2]=b;i[d+ -24>>2]=b;i[d+ -28>>2]=b;h=e&4|24;c=c-h|0;if(c>>>0<32){break a}d=b;f=b;b=e+h|0;while(1){i[b+24>>2]=f;i[b+28>>2]=d;i[b+16>>2]=f;i[b+20>>2]=d;i[b+8>>2]=f;i[b+12>>2]=d;i[b>>2]=f;i[b+4>>2]=d;b=b+32|0;c=c+ -32|0;if(c>>>0>31){continue}break}}return a}function Hj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=Zk(c,0,b)+b|0}i[a+4>>2]=c;return}a:{b:{c:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){d=d-g|0;h=d>>1;e=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(e){if(e>>>0>=1073741824){break c}j=lk(e<<2)}d=(f<<2)+j|0;f=b<<2;b=Zk(d,0,f);f=b+f|0;e=(e<<2)+j|0;if((c|0)==(g|0)){break b}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;d=d+ -4|0;i[d>>2]=b;if((c|0)!=(g|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){Ma(a)}if((b|0)!=(c|0)){continue}break}break a}Ak();x()}va(11352);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){Wk(c)}}function jj(a,b){var c=0,d=0,e=0,f=0,g=0;d=-1;f=-1;e=-1;a:{b:{if((b|0)==-1){break b}g=1;f=i[i[i[a+4>>2]+12>>2]+(b<<2)>>2];c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)>=0){e=(c>>>0)/3|0;e=i[(i[i[a>>2]+96>>2]+o(e,12)|0)+(c-o(e,3)<<2)>>2]}c:{if((f|0)==-1){break c}g=0;c=((f>>>0)%3|0?-1:2)+f|0;if((c|0)<0){break c}d=(c>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(c-o(d,3)<<2)>>2]}c=-1;if((d|0)!=(e|0)){break a}e=-1;d:{b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)>=0){d=(b>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(b-o(d,3)<<2)>>2];if(g){break b}break d}d=-1;if(!g){break d}break b}b=f+1|0;b=(b>>>0)%3|0?b:f+ -2|0;if((b|0)<0){break b}c=i[i[a>>2]+96>>2];a=(b>>>0)/3|0;e=i[(c+o(a,12)|0)+(b-o(a,3)<<2)>>2]}c=(d|0)==(e|0)?f:-1}return c}function nf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+56>>2]-i[c+52>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];g=c<<2;c=lk(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){Yk(c,d,e)}i[b+8>>2]=g;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}Wk(d)}e=a+8|0;b=i[a+76>>2];c:{if(b){c=i[b>>2];if((c|0)==i[b+4>>2]){return 1}b=0;while(1){d=of(e,i[(b<<2)+c>>2]);if(!d){break c}f=i[a+76>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break c}d=1;a=i[i[a+12>>2]+64>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break c}b=0;while(1){d=of(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break c}if(d){continue}break}}return d|0}va(8944);x()}function qj(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=lk(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;d=i[a+4>>2];c=i[a>>2];if((d|0)==(c|0)){break b}while(1){d=d+ -4|0;g=i[d>>2];i[d>>2]=0;b=b+ -4|0;i[b>>2]=g;if((d|0)!=(c|0)){continue}break}i[a+8>>2]=e;d=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=b;if((d|0)==(c|0)){break a}while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){Jf(a+12|0,i[a+16>>2]);Kf(a,i[a+4>>2]);Wk(a)}if((d|0)!=(c|0)){continue}break}break a}Ak();x()}va(11228);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){Wk(c)}}function gf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+28>>2]-i[c+24>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];g=c<<2;c=lk(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){Yk(c,d,e)}i[b+8>>2]=g;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}Wk(d)}e=a+8|0;b=i[a+76>>2];c:{if(b){c=i[b>>2];if((c|0)==i[b+4>>2]){return 1}b=0;while(1){d=hf(e,i[(b<<2)+c>>2]);if(!d){break c}f=i[a+76>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break c}d=1;a=i[a+12>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break c}b=0;while(1){d=hf(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break c}if(d){continue}break}}return d|0}va(8944);x()}function Xi(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=i[a+8>>2];e=i[a>>2];if(d-e>>2>>>0>=b>>>0){f=i[a+4>>2];g=f-e>>2;h=g>>>0>>0?g:b;if(h){d=e;while(1){i[d>>2]=i[c>>2];d=d+4|0;h=h+ -1|0;if(h){continue}break}}if(g>>>0>>0){d=a;a=b-g|0;if(a){a=(a<<2)+f|0;while(1){i[f>>2]=i[c>>2];f=f+4|0;if((a|0)!=(f|0)){continue}break}}else{a=f}i[d+4>>2]=a;return}i[a+4>>2]=(b<<2)+e;return}if(e){i[a+4>>2]=e;Wk(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(b>>>0>=1073741824){break a}e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?b:e:1073741823;if(d>>>0>=1073741824){break a}e=d<<2;d=lk(e);i[a>>2]=d;i[a+8>>2]=d+e;b=(b<<2)+d|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}i[a+4>>2]=b;return}Ak();x()}function xb(a,b,c,d,e){var f=0,g=0,h=0,j=0;if((b|0)==-2){i[a>>2]=0;return}f=i[i[i[d+4>>2]+8>>2]+(c<<2)>>2];a:{b:{if((I[i[i[d>>2]+8>>2]](d)|0)==1){g=b;b=k[d+36>>1];Eb(a,d,g,c,e,(b<<24|b<<8&16711680)>>>16|0);if(i[a>>2]){break b}i[a>>2]=0}b=lk(44);i[b+4>>2]=f;i[b>>2]=2776;c=i[e+8>>2];d=i[e+12>>2];f=i[e+16>>2];g=i[e+20>>2];h=i[e>>2];j=i[e+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=f;i[b+28>>2]=g;i[b+16>>2]=c;i[b+20>>2]=d;i[b+8>>2]=h;i[b+12>>2]=j;f=i[e+24>>2];e=i[e+28>>2]-f|0;if(e){d=e>>2;if(d>>>0>=1073741824){break a}c=lk(e);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((e|0)>=1){c=Yk(c,f,e)+e|0}i[d+36>>2]=c}i[b>>2]=5468;i[a>>2]=b}return}Ak();x()}function hj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=F-16|0;F=d;h=Cj(b);a:{if(!h){i[a>>2]=0;break a}c=i[b+100>>2];k=i[b+96>>2];i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;c=c-k|0;e=(c|0)/12|0;b:{if(!c){break b}if(e>>>0<357913942){g=lk(c);i[d>>2]=g;f=g+o(e,12)|0;i[d+8>>2]=f;b=0;m=Zk(g,0,c-((c+ -12>>>0)%12|0)|0);i[d+4>>2]=f;n=e>>>0>1?e:1;p=j[h+84|0];while(1){l=o(b,12);c=l+k|0;e=i[c>>2];c:{if(p){g=c+8|0;c=c+4|0;break c}f=i[h+68>>2];g=f+(i[c+8>>2]<<2)|0;e=i[f+(e<<2)>>2];c=f+(i[c+4>>2]<<2)|0}f=i[c>>2];c=m+l|0;i[c+8>>2]=i[g>>2];i[c+4>>2]=f;i[c>>2]=e;b=b+1|0;if((n|0)!=(b|0)){continue}break}break b}Ak();x()}Ni(a,d);a=i[d>>2];if(!a){break a}i[d+4>>2]=a;Wk(a)}F=d+16|0}function uf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=F-32|0;F=d;i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;a:{f=o(b,3);if(f){if(f>>>0>=1073741824){break a}g=o(b,12);e=lk(g);i[d+16>>2]=e;c=(f<<2)+e|0;i[d+24>>2]=c;Zk(e,0,g);i[d+20>>2]=c}k=vd(f,1,i[a+32>>2],e);if(!(!k|!b)){g=0;f=0;c=0;while(1){l=d+8|0;i[l>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=c;e=(f<<2)+e|0;c=i[e>>2];j=c>>>1|0;c=h+(c&1?0-j|0:j)|0;i[d>>2]=c;h=c;c=i[e+4>>2];j=c>>>1|0;c=h+(c&1?0-j|0:j)|0;i[d+4>>2]=c;h=c;e=i[e+8>>2];c=e>>>1|0;c=h+(e&1?0-c|0:c)|0;i[l>>2]=c;vf(i[a+44>>2]+96|0,d);g=g+1|0;if((g|0)!=(b|0)){f=f+3|0;e=i[d+16>>2];continue}break}e=i[d+16>>2]}if(e){i[d+20>>2]=e;Wk(e)}F=d+32|0;return k}Ak();x()}function wf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;f=F-16|0;F=f;g=lk(64);c=lk(12);i[c+8>>2]=i[i[a+4>>2]+80>>2];i[c>>2]=10164;i[c+4>>2]=0;i[f+8>>2]=c;hb(g,f+8|0);a:{if((b|0)>=0){h=a+8|0;c=i[a+12>>2];j=i[a+8>>2];d=c-j>>2;b:{if((d|0)>(b|0)){break b}e=b+1|0;if(d>>>0<=b>>>0){je(h,e-d|0);break b}if(e>>>0>=d>>>0){break b}e=j+(e<<2)|0;if((e|0)!=(c|0)){while(1){c=c+ -4|0;d=i[c>>2];i[c>>2]=0;if(d){I[i[i[d>>2]+4>>2]](d)}if((c|0)!=(e|0)){continue}break}}i[a+12>>2]=e}c=i[h>>2]+(b<<2)|0;a=i[c>>2];i[c>>2]=g;if(!a){break a}I[i[i[a>>2]+4>>2]](a);break a}I[i[i[g>>2]+4>>2]](g)}a=i[f+8>>2];i[f+8>>2]=0;if(a){I[i[i[a>>2]+4>>2]](a)}F=f+16|0;return(b^-1)>>>31|0}function ie(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=F-16|0;F=e;i[a+4>>2]=0;a:{b:{if(!b){break b}f=i[a+8>>2];d=f<<5;c:{if(d>>>0>=b>>>0){i[a+4>>2]=b;break c}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if((b|0)<=-1){break a}h=e;if(d>>>0<=1073741822){g=b+31&-32;d=f<<6;d=d>>>0>>0?g:d}else{d=2147483647}Xb(h,d);d=i[a>>2];i[a>>2]=i[e>>2];i[e>>2]=d;f=i[a+4>>2];i[a+4>>2]=b;i[e+4>>2]=f;f=i[a+8>>2];i[a+8>>2]=i[e+8>>2];i[e+8>>2]=f;if(!d){break c}Wk(d)}d=b>>>5|0;f=d<<2;a=i[a>>2];if(j[c|0]){a=Zk(a,255,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;i[a>>2]=i[a>>2]|-1>>>32-b;break b}a=Zk(a,0,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;i[a>>2]=i[a>>2]&(-1>>>32-b^-1)}F=e+16|0;return}Ak();x()}function ka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0;i[b>>2]=1;f=b+8|0;c=i[b+8>>2];d=i[b+12>>2]-c|0;if(d>>>0<=4294967291){Of(f,d+4|0);c=i[f>>2]}c=c+d|0;d=i[a+4>>2];g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;c=i[a+8>>2];if((c|0)!=i[a+12>>2]){d=0;while(1){h=(d<<2)+c|0;c=i[b+8>>2];e=i[b+12>>2]-c|0;if(e>>>0<=4294967291){Of(f,e+4|0);c=i[f>>2]}c=c+e|0;e=i[h>>2];g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;d=d+1|0;c=i[a+8>>2];if(d>>>0>2]-c>>2>>>0){continue}break}}c=i[b+12>>2];b=i[b+8>>2];c=c-b|0;if(c>>>0<=4294967291){Of(f,c+4|0);b=i[f>>2]}b=b+c|0;a=i[a+20>>2];g[b|0]=a;g[b+1|0]=a>>>8;g[b+2|0]=a>>>16;g[b+3|0]=a>>>24}function be(a){i[a>>2]=8340;Zk(a+4|0,0,80);i[a+96>>2]=0;i[a+100>>2]=0;i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+148>>2]=0;i[a+156>>2]=0;i[a+160>>2]=0;i[a+152>>2]=1065353216;i[a+164>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;i[a+196>>2]=0;i[a+200>>2]=0;i[a+204>>2]=0;i[a+208>>2]=0;i[a+212>>2]=-1;i[a+216>>2]=0;i[a+220>>2]=0;i[a+224>>2]=0;Pf(a+232|0);Pf(a+272|0);gd(a+312|0);Pf(a+328|0);i[a+376>>2]=0;i[a+368>>2]=0;i[a+372>>2]=0}function Oi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=F-16|0;F=f;i[a+80>>2]=0;i[a+84>>2]=0;c=a+76|0;d=i[c>>2];i[c>>2]=0;if(d){Wk(d)}i[a+68>>2]=0;i[a+72>>2]=0;c=a- -64|0;d=i[c>>2];i[c>>2]=0;if(d){Wk(d)}c=i[b+4>>2];d=i[b>>2];e=o((c-d|0)/12|0,3);h=i[a>>2];g=i[a+4>>2]-h>>2;a:{if(e>>>0>g>>>0){Pi(a,e-g|0);d=i[b>>2];c=i[b+4>>2];break a}if(e>>>0>=g>>>0){break a}i[a+4>>2]=h+(e<<2)}if((c|0)!=(d|0)){b=(c-d|0)/12|0;g=b>>>0>1?b:1;h=i[a>>2];b=0;while(1){e=o(b,12);c=e+h|0;e=d+e|0;i[c>>2]=i[e>>2];i[c+4>>2]=i[e+4>>2];i[c+8>>2]=i[e+8>>2];b=b+1|0;if((g|0)!=(b|0)){continue}break}}i[f+12>>2]=-1;b=Qi(a,f+12|0);if(b){Ri(a);Si(a,i[f+12>>2])}F=f+16|0;return b}function xd(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{d=i[b+16>>2];f=i[b+12>>2];e=i[b+20>>2];c:{if((f|0)<(e|0)?1:(f|0)<=(e|0)?l[b+8>>2]<=d>>>0:0){break c}f=j[d+i[b>>2]|0];d=d+1|0;if(d>>>0<1){e=e+1|0}i[b+16>>2]=d;i[b+20>>2]=e;d:{e:{f:{g:{h:{i:{j:{switch(f+ -1|0){case 0:case 1:case 2:case 3:case 5:case 6:case 7:break b;case 13:case 14:case 15:case 16:break a;case 9:break h;case 8:break i;case 4:break j;case 17:break d;case 12:break e;case 11:break f;case 10:break g;default:break c}}return Bd(a,b,c)}return Cd(a,b,c)}return Dd(a,b,c)}return Ed(a,b,c)}return Fd(a,b,c)}return Gd(a,b,c)}g=Hd(a,b,c)}return g}return Ad(a,b,c)}return Hd(a,b,c)}function ia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0;d=i[b+88>>2];if(!(!d|i[d>>2]!=1)){c=i[d+8>>2];i[a+4>>2]=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);f=a+8|0;h=i[a+8>>2];e=i[a+12>>2]-h>>2;c=g[b+24|0];a:{if(e>>>0>>0){ja(f,c-e|0);c=j[b+24|0];break a}if(e>>>0<=c>>>0){break a}i[a+12>>2]=h+(c<<2)}h=1;e=i[d+8>>2];b:{if(c<<24>>24<1){b=4;break b}b=c&255;k=b>>>0>1?b:1;f=i[f>>2];c=0;b=4;while(1){d=b+e|0;m[f+(c<<2)>>2]=(ql(2,j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24)),rl());b=b+4|0;c=c+1|0;if((k|0)!=(c|0)){continue}break}}c=a;a=b+e|0;m[c+20>>2]=(ql(2,j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24)),rl())}return h|0}function oa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,j=0,k=0,l=p(0),n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0;h=F-16|0;F=h;if(i[c+28>>2]==9){d=i[a+4>>2];e=g[c+24|0];j=e<<2;k=lk((e&1073741823)!=(e|0)?-1:j);n=_f(h+8|0);f=n;l=m[a+20>>2];d=-1<=1){m[f>>2]=l/p(d|0)}f=(d|0)>0;a:{if(!f){break a}o=i[c+80>>2];if(!o){break a}t=i[i[b>>2]>>2]+i[b+48>>2]|0;u=(e|0)<1;d=0;while(1){if(!u){v=i[a+8>>2];l=m[n>>2];b=0;while(1){q=b<<2;m[q+k>>2]=p(l*p(i[(d<<2)+t>>2]))+m[v+q>>2];d=d+1|0;b=b+1|0;if((e|0)!=(b|0)){continue}break}}Yk(i[i[c+64>>2]>>2]+r|0,k,j);r=j+r|0;s=s+1|0;if((s|0)!=(o|0)){continue}break}}Wk(k)}F=h+16|0;return f|0}function Ga(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){f=i[a+4>>2];d=f-e|0;h=d>>2;d=g>>>0>h>>>0?b+d|0:c;if((d|0)!=(b|0)){while(1){i[e>>2]=i[b>>2];e=e+4|0;b=b+4|0;if((d|0)!=(b|0)){continue}break}}if(g>>>0>h>>>0){b=c-d|0;if((b|0)>=1){f=Yk(f,d,b)+b|0}i[a+4>>2]=f;return}i[a+4>>2]=e;return}if(e){i[a+4>>2]=e;Wk(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=lk(e);i[a>>2]=c;i[a+4>>2]=c;i[a+8>>2]=c+e;if((f|0)>=1){c=Yk(c,b,f)+f|0}i[a+4>>2]=c;return}Ak();x()}function og(a,b,c){var d=0,e=0,f=0,h=0;d=F-32|0;F=d;a:{h=$k(b);if(h>>>0<4294967280){b:{c:{if(h>>>0>=11){e=h+16&-16;f=lk(e);i[d+24>>2]=e|-2147483648;i[d+16>>2]=f;i[d+20>>2]=h;break c}g[d+27|0]=h;f=d+16|0;if(!h){break b}}Yk(f,b,h)}g[f+h|0]=0;e=$k(c);if(e>>>0>=4294967280){break a}d:{e:{if(e>>>0>=11){b=e+16&-16;f=lk(b);i[d+8>>2]=b|-2147483648;i[d>>2]=f;i[d+4>>2]=e;break e}g[d+11|0]=e;f=d;if(!e){break d}}Yk(f,c,e)}g[e+f|0]=0;c=i[a+4>>2];b=-1;f:{if(!c){break f}c=oj(c,d+16|0,d);b=-1;if(!c){break f}b=Ej(a,i[c+24>>2])}a=b;if(g[d+11|0]<=-1){Wk(i[d>>2])}if(g[d+27|0]<=-1){Wk(i[d+16>>2])}F=d+32|0;return a}nk();x()}nk();x()}function Rc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;c=i[b+12>>2];h=c;e=c;c=i[b+20>>2];f=c;a:{g=i[b+16>>2];d=g+4|0;if(d>>>0<4){c=c+1|0}k=i[b+8>>2];l=d;d=c;if((e|0)<(c|0)?1:(e|0)<=(c|0)?k>>>0>>0:0){break a}c=g+i[b>>2]|0;e=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=l;i[b+20>>2]=d;c=f;d=g+8|0;if(d>>>0<8){c=c+1|0}f=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?k>>>0>>0:0){break a}i[b+16>>2]=f;i[b+20>>2]=d;if(!(e&1)){break a}c=r(e)^31;if(c+ -1>>>0>28){break a}i[a+8>>2]=c+1;c=-2<>2]=d;i[a+12>>2]=c^-1;i[a+24>>2]=(d|0)/2;m[a+20>>2]=p(2)/p(d|0);return hd(a+96|0,b)|0}return 0}function Ze(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;d=(c>>>0)/3|0;_e(i[a+12>>2],i[(i[i[a+8>>2]+96>>2]+o(d,12)|0)+(c-o(d,3)<<2)>>2]);f=i[a+4>>2];d=i[f+4>>2];a:{b:{c:{if((d|0)!=i[f+8>>2]){i[d>>2]=c;i[f+4>>2]=d+4;break c}h=i[f>>2];j=d-h|0;g=j>>2;e=g+1|0;if(e>>>0>=1073741824){break b}d=j>>1;e=g>>>0<536870911?d>>>0>>0?e:d:1073741823;d=0;d:{if(!e){break d}if(e>>>0>=1073741824){break a}d=lk(e<<2)}g=d+(g<<2)|0;i[g>>2]=c;c=d+(e<<2)|0;e=g+4|0;if((j|0)>=1){Yk(d,h,j)}i[f+8>>2]=c;i[f+4>>2]=e;i[f>>2]=d;if(!h){break c}Wk(h)}a=i[a+4>>2];i[i[a+12>>2]+(b<<2)>>2]=i[a+24>>2];i[a+24>>2]=i[a+24>>2]+1;return}Ak();x()}va(8944);x()}function Yc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=F-32|0;F=f;h=(e&1073741823)!=(e|0)?-1:e<<2;h=Zk(lk(h),0,h);g=i[b>>2];j=i[b+4>>2];l=i[h+4>>2];i[f+16>>2]=i[h>>2];i[f+20>>2]=l;i[f+8>>2]=g;i[f+12>>2]=j;j=a+8|0;Tc(f+24|0,j,f+16|0,f+8|0);i[c>>2]=i[f+24>>2];i[c+4>>2]=i[f+28>>2];if((e|0)<(d|0)){l=0-e<<2;a=e;while(1){g=a<<2;k=g+b|0;n=i[k>>2];k=i[k+4>>2];g=c+g|0;m=g+l|0;o=i[m+4>>2];i[f+16>>2]=i[m>>2];i[f+20>>2]=o;i[f+8>>2]=n;i[f+12>>2]=k;Tc(f+24|0,j,f+16|0,f+8|0);i[g>>2]=i[f+24>>2];i[g+4>>2]=i[f+28>>2];a=a+e|0;if((a|0)<(d|0)){continue}break}}Wk(h);F=f+32|0;return 1}function Uc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,n=0;c=i[b+12>>2];h=c;e=c;c=i[b+20>>2];f=c;g=i[b+16>>2];d=g+4|0;if(d>>>0<4){c=c+1|0}k=i[b+8>>2];l=d;d=c;a:{if((e|0)<(c|0)?1:(e|0)<=(c|0)?k>>>0>>0:0){break a}c=g+i[b>>2]|0;e=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=l;i[b+20>>2]=d;c=f;d=g+8|0;if(d>>>0<8){c=c+1|0}f=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?k>>>0>>0:0){break a}i[b+16>>2]=f;i[b+20>>2]=d;if(!(e&1)){break a}b=r(e)^31;if(b+ -1>>>0>28){break a}n=1;i[a+8>>2]=b+1;b=-2<>2]=c;i[a+12>>2]=b^-1;i[a+24>>2]=(c|0)/2;m[a+20>>2]=p(2)/p(c|0)}return n|0}function cb(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=i[a+8>>2];d=i[a+4>>2];if(f-d>>2>>>0>=b>>>0){e=a;if(b){a=(b<<2)+d|0;while(1){i[d>>2]=i[c>>2];d=d+4|0;if((a|0)!=(d|0)){continue}break}}else{a=d}i[e+4>>2]=a;return}a:{g=i[a>>2];h=d-g|0;e=h>>2;d=e+b|0;if(d>>>0<1073741824){j=e<<2;f=f-g|0;e=f>>1;f=f>>2>>>0<536870911?e>>>0>>0?d:e:1073741823;e=0;b:{if(!f){break b}if(f>>>0>=1073741824){break a}e=lk(f<<2)}d=j+e|0;b=d+(b<<2)|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}c=e+(f<<2)|0;if((h|0)>=1){Yk(e,g,h)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=e;if(g){Wk(g)}return}Ak();x()}va(1660);x()}function Na(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=i[a+8>>2];d=i[a+4>>2];if(f-d>>2>>>0>=b>>>0){e=a;if(b){a=(b<<2)+d|0;while(1){i[d>>2]=i[c>>2];d=d+4|0;if((a|0)!=(d|0)){continue}break}}else{a=d}i[e+4>>2]=a;return}a:{g=i[a>>2];h=d-g|0;e=h>>2;d=e+b|0;if(d>>>0<1073741824){j=e<<2;f=f-g|0;e=f>>1;f=f>>2>>>0<536870911?e>>>0>>0?d:e:1073741823;e=0;b:{if(!f){break b}if(f>>>0>=1073741824){break a}e=lk(f<<2)}d=j+e|0;b=d+(b<<2)|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}c=e+(f<<2)|0;if((h|0)>=1){Yk(e,g,h)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=e;if(g){Wk(g)}return}Ak();x()}va(1496);x()}function Ti(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){d=a;if(b){a=(b<<2)+c|0;while(1){i[c>>2]=i[2707];c=c+4|0;if((a|0)!=(c|0)){continue}break}}else{a=c}i[d+4>>2]=a;return}a:{f=i[a>>2];g=c-f|0;d=g>>2;c=d+b|0;if(c>>>0<1073741824){h=d<<2;e=e-f|0;d=e>>1;e=e>>2>>>0<536870911?d>>>0>>0?c:d:1073741823;d=0;b:{if(!e){break b}if(e>>>0>=1073741824){break a}d=lk(e<<2)}c=h+d|0;b=c+(b<<2)|0;h=i[2707];while(1){i[c>>2]=h;c=c+4|0;if((b|0)!=(c|0)){continue}break}c=d+(e<<2)|0;if((g|0)>=1){Yk(d,f,g)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=d;if(f){Wk(f)}return}Ak();x()}va(10832);x()}function zg(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,n=0;d=F-16|0;F=d;k=i[a+80>>2];l=g[b+24|0];a=i[2663];i[d+8>>2]=i[2662];i[d+12>>2]=a;a=i[2661];i[d>>2]=i[2660];i[d+4>>2]=a;a=o(k,l);f=i[c>>2];e=i[c+4>>2]-f>>2;a:{if(a>>>0>e>>>0){ja(c,a-e|0);break a}if(a>>>0>=e>>>0){break a}i[c+4>>2]=f+(a<<2)}b:{if(!k){f=0;break b}f=1;while(1){a=h;e=b;if(!j[e+84|0]){a=i[i[b+68>>2]+(h<<2)>>2]}if(!yg(e,a,g[b+24|0],d)){break b}if((l|0)>=1){e=i[c>>2];a=0;while(1){m[e+(n<<2)>>2]=m[(a<<2)+d>>2];n=n+1|0;a=a+1|0;if((l|0)!=(a|0)){continue}break}}h=h+1|0;f=h>>>0>>0;if((k|0)!=(h|0)){continue}break}}F=d+16|0;return(f^-1)&1}function bj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){d=a;if(b){a=(b<<2)+c|0;while(1){i[c>>2]=1;c=c+4|0;if((a|0)!=(c|0)){continue}break}}else{a=c}i[d+4>>2]=a;return}a:{f=i[a>>2];g=c-f|0;d=g>>2;c=d+b|0;if(c>>>0<1073741824){h=d<<2;e=e-f|0;d=e>>1;e=e>>2>>>0<536870911?d>>>0>>0?c:d:1073741823;d=0;b:{if(!e){break b}if(e>>>0>=1073741824){break a}d=lk(e<<2)}c=h+d|0;b=c+(b<<2)|0;while(1){i[c>>2]=1;c=c+4|0;if((b|0)!=(c|0)){continue}break}c=d+(e<<2)|0;if((g|0)>=1){Yk(d,f,g)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=d;if(f){Wk(f)}return}Ak();x()}va(10952);x()}function Vd(a){a=a|0;var b=0,c=0,d=0,e=0;b=i[a+32>>2];d=i[b+16>>2];e=i[b+12>>2];c=i[b+20>>2];if((e|0)>(c|0)?1:(e|0)>=(c|0)?l[b+8>>2]>d>>>0:0){e=j[d+i[b>>2]|0];d=d+1|0;if(d>>>0<1){c=c+1|0}i[b+16>>2]=d;i[b+20>>2]=c;b=i[a+48>>2];i[a+48>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}a:{b:{c:{switch(e|0){case 0:c=lk(384);be(c);b=i[a+48>>2];i[a+48>>2]=c;if(!b){break a}I[i[i[b>>2]+4>>2]](b);break b;case 2:break c;default:break b}}c=lk(440);Ce(c);b=i[a+48>>2];i[a+48>>2]=c;if(!b){break a}I[i[i[b>>2]+4>>2]](b)}c=i[a+48>>2];if(c){break a}return 0}a=I[i[i[c>>2]+8>>2]](c,a)|0}else{a=0}return a|0}function ud(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0;f=a+4|0;a:{a=i[a+4>>2];if(a){e=j[c+11|0];d=e<<24>>24<0;k=d?i[c>>2]:c;e=d?i[c+4>>2]:e;while(1){c=j[a+27|0];d=c<<24>>24<0;c=d?i[a+20>>2]:c;l=c>>>0>>0;b:{c:{d:{e:{f:{h=l?c:e;g:{if(h){g=a+16|0;d=d?i[g>>2]:g;g=Lj(k,d,h);if(!g){if(e>>>0>>0){break g}break f}if((g|0)>-1){break f}break g}if(e>>>0>=c>>>0){break e}}c=i[a>>2];if(c){break b}i[b>>2]=a;return a}c=Lj(d,k,h);if(c){break d}}if(l){break c}break a}if((c|0)>-1){break a}}f=a+4|0;c=i[a+4>>2];if(!c){break a}a=f}f=a;a=c;continue}}i[b>>2]=f;return f}i[b>>2]=a;return f}function Da(a,b){var c=0;c=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=c;c=i[b+60>>2];i[a+56>>2]=i[b+56>>2];i[a+60>>2]=c;c=i[b+52>>2];i[a+48>>2]=i[b+48>>2];i[a+52>>2]=c;c=i[b+44>>2];i[a+40>>2]=i[b+40>>2];i[a+44>>2]=c;c=i[b+36>>2];i[a+32>>2]=i[b+32>>2];i[a+36>>2]=c;c=i[b+28>>2];i[a+24>>2]=i[b+24>>2];i[a+28>>2]=c;c=i[b+20>>2];i[a+16>>2]=i[b+16>>2];i[a+20>>2]=c;c=i[b+12>>2];i[a+8>>2]=i[b+8>>2];i[a+12>>2]=c;i[a+88>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;g[a+77|0]=0;g[a+78|0]=0;g[a+79|0]=0;g[a+80|0]=0;g[a+81|0]=0;g[a+82|0]=0;g[a+83|0]=0;g[a+84|0]=0;return a}function Kc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=F-32|0;F=e;a:{if((d|0)==3){d=i[b+4>>2];f=i[b+12>>2];i[e+24>>2]=-1;i[e+16>>2]=-1;i[e+20>>2]=1065353216;i[e+8>>2]=-1;i[e+12>>2]=-1;b=0;b:{if((c|0)==-2){break b}g=i[i[i[d+4>>2]+8>>2]+(f<<2)>>2];if((I[i[i[d>>2]+8>>2]](d)|0)==1){b=k[d+36>>1];Lc(e,d,c,f,e+8|0,(b<<24|b<<8&16711680)>>>16|0);b=i[e>>2];if(b){break b}i[e>>2]=0}b=lk(28);i[b+4>>2]=g;c=i[e+12>>2];i[b+8>>2]=i[e+8>>2];i[b+12>>2]=c;c=i[e+20>>2];i[b+16>>2]=i[e+16>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+24>>2];i[b>>2]=7580}i[a>>2]=b;break a}i[a>>2]=0}F=e+32|0}function Yf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;g=a+4|0;a=i[a+4>>2];a:{b:{if(!a){break b}d=j[b+11|0];c=d<<24>>24<0;k=c?i[b>>2]:b;e=c?i[b+4>>2]:d;c=g;while(1){b=j[a+27|0];l=b<<24>>24<0;h=l?i[a+20>>2]:b;f=e>>>0>>0;d=f?e:h;c:{if(d){b=a+16|0;b=Lj(l?i[b>>2]:b,k,d);if(b){break c}}b=h>>>0>>0?-1:f}c=(b|0)<0?c:a;a=i[(b>>>29&4)+a>>2];if(a){continue}break}if((c|0)==(g|0)){break b}a=j[c+27|0];f=a<<24>>24<0;d:{d=f?i[c+20>>2]:a;b=d>>>0>>0?d:e;if(b){a=c+16|0;a=Lj(k,f?i[a>>2]:a,b);if(a){break d}}if(e>>>0>>0){break b}break a}if((a|0)>-1){break a}}c=g}return c}function sj(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0;h=F-16|0;F=h;l=a;j=ud(b,h+12|0,c);c=i[j>>2];if(c){b=0}else{c=lk(40);e=d+8|0;i[c+24>>2]=i[e>>2];f=i[d+4>>2];i[c+16>>2]=i[d>>2];i[c+20>>2]=f;i[d>>2]=0;i[d+4>>2]=0;i[e>>2]=0;i[c+36>>2]=0;i[c+28>>2]=0;i[c+32>>2]=0;f=i[d+12>>2];k=i[d+16>>2]-f|0;e=0;a:{if(!k){break a}e=c+28|0;Wa(e,k);f=i[d+12>>2];m=i[d+16>>2]-f|0;e=i[e>>2]}Yk(e,f,m);i[c+8>>2]=i[h+12>>2];i[c>>2]=0;i[c+4>>2]=0;i[j>>2]=c;e=i[i[b>>2]>>2];d=c;b:{if(!e){break b}i[b>>2]=e;d=i[j>>2]}rd(i[b+4>>2],d);i[b+8>>2]=i[b+8>>2]+1;b=1}g[l+4|0]=b;i[a>>2]=c;F=h+16|0}function Se(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){d=i[a+4>>2]-e|0;f=d>>2;d=g>>>0>f>>>0?b+d|0:c;h=d-b|0;if(h){_k(e,b,h)}if(g>>>0>f>>>0){b=i[a+4>>2];c=c-d|0;if((c|0)>=1){b=Yk(b,d,c)+c|0}i[a+4>>2]=b;return}i[a+4>>2]=e+h;return}if(e){i[a+4>>2]=e;Wk(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=lk(e);i[a>>2]=c;i[a+4>>2]=c;i[a+8>>2]=c+e;if((f|0)>=1){c=Yk(c,b,f)+f|0}i[a+4>>2]=c;return}Ak();x()}function vf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+4>>2];if((c|0)!=i[a+8>>2]){e=i[b+4>>2];i[c>>2]=i[b>>2];i[c+4>>2]=e;i[c+8>>2]=i[b+8>>2];i[a+4>>2]=c+12;return}a:{e=i[a>>2];g=c-e|0;c=(g|0)/12|0;d=c+1|0;if(d>>>0<357913942){h=c<<1;d=c>>>0<178956970?h>>>0>>0?d:h:357913941;f=0;b:{if(!d){break b}if(d>>>0>=357913942){break a}f=lk(o(d,12))}c=f+o(c,12)|0;h=i[b+4>>2];i[c>>2]=i[b>>2];i[c+4>>2]=h;i[c+8>>2]=i[b+8>>2];b=c+o((g|0)/-12|0,12)|0;f=f+o(d,12)|0;c=c+12|0;if((g|0)>=1){Yk(b,e,g)}i[a+8>>2]=f;i[a+4>>2]=c;i[a>>2]=b;if(e){Wk(e)}return}Ak();x()}va(10088);x()}function Jj(a,b){var c=0,d=0,e=0,f=0;a:{if((b|0)<0){break a}c=i[a+24>>2];d=i[a+28>>2];if((c|0)==(d|0)){break a}while(1){f=c+4|0;e=i[c>>2];if(i[e+24>>2]==(b|0)){b:{if((d|0)!=(f|0)){while(1){b=i[f>>2];i[f>>2]=0;i[c>>2]=b;if(e){Jf(e+12|0,i[e+16>>2]);Kf(e,i[e+4>>2]);Wk(e)}c=c+4|0;f=f+4|0;if((d|0)!=(f|0)){e=i[c>>2];continue}break}d=i[a+28>>2];if((d|0)==(c|0)){break b}}while(1){d=d+ -4|0;b=i[d>>2];i[d>>2]=0;if(b){Jf(b+12|0,i[b+16>>2]);Kf(b,i[b+4>>2]);Wk(b)}if((c|0)!=(d|0)){continue}break}}i[a+28>>2]=c;return}c=f;if((d|0)!=(c|0)){continue}break}}}function Wi(a,b,c){var d=0,e=0,f=0,g=0;a:{if((b|c)>=0){b:{if(b>>>0>1431655765){break b}d=o(b,3);Xi(a,d,10824);Xi(a+12|0,d,10828);d=i[a+24>>2];c:{if(i[a+32>>2]-d>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break a}e=i[a+28>>2];f=c<<2;c=lk(f);f=c+f|0;e=e-d|0;g=e+c|0;if((e|0)>=1){Yk(c,d,e)}i[a+32>>2]=f;i[a+28>>2]=g;i[a+24>>2]=c;if(!d){break c}Wk(d)}i[a+80>>2]=0;i[a+84>>2]=0;d=a+76|0;c=i[d>>2];i[d>>2]=0;if(c){Wk(c)}i[a+68>>2]=0;i[a+72>>2]=0;c=a- -64|0;a=i[c>>2];i[c>>2]=0;if(!a){break b}Wk(a)}a=b>>>0<1431655766}else{a=0}return a}va(10832);x()}function Lk(a){var b=0,c=0,d=0,e=0;b=F+ -64|0;F=b;d=i[a>>2];c=i[d+ -4>>2];d=i[d+ -8>>2];i[b+20>>2]=0;i[b+16>>2]=12424;i[b+12>>2]=a;i[b+8>>2]=12472;Zk(b+24|0,0,39);a=a+d|0;a:{if(Jk(c,12472,0)){i[b+56>>2]=1;I[i[i[c>>2]+20>>2]](c,b+8|0,a,a,1,0);e=i[b+32>>2]==1?a:0;break a}I[i[i[c>>2]+24>>2]](c,b+8|0,a,1,0);b:{switch(i[b+44>>2]){case 0:e=i[b+48>>2]==1?i[b+36>>2]==1?i[b+40>>2]==1?i[b+28>>2]:0:0:0;break a;case 1:break b;default:break a}}if(i[b+32>>2]!=1){if(i[b+48>>2]|i[b+36>>2]!=1|i[b+40>>2]!=1){break a}}e=i[b+24>>2]}F=b- -64|0;return e}function nj(a,b,c){var d=0,e=0,f=0;e=F-16|0;F=e;a:{b:{if(!c){break b}i[a>>2]=b;i[e+12>>2]=0;d=0;if(!lj(1,e+12|0,b)){break a}c:{f=i[e+12>>2];if(f){b=0;while(1){if(!lj(1,e+8|0,i[a>>2])){break b}d=lk(28);i[d+4>>2]=0;i[d+8>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d>>2]=d+4;i[d+12>>2]=d+16;i[d+24>>2]=i[e+8>>2];if(!kj(a,d)){break c}i[e>>2]=d;pj(c,e);d=i[e>>2];i[e>>2]=0;if(d){Jf(d+12|0,i[d+16>>2]);Kf(d,i[d+4>>2]);Wk(d)}b=b+1|0;if((f|0)!=(b|0)){continue}break}}d=kj(a,c);break a}Jf(d+12|0,i[d+16>>2]);Kf(d,i[d+4>>2]);Wk(d)}d=0}F=e+16|0;return d}function kb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+60>>2];a:{if(!c){break a}i[c+4>>2]=a+48;if(!(I[i[i[c>>2]+12>>2]](c)|0)){break a}b:{d=I[i[i[a>>2]+24>>2]](a)|0;if((d|0)<1){break b}c=0;while(1){c:{f=i[(I[i[i[a>>2]+28>>2]](a)|0)+4>>2];g=I[i[i[a>>2]+20>>2]](a,c)|0;e=i[a+60>>2];if(!(I[i[i[e>>2]+8>>2]](e,i[i[f+8>>2]+(g<<2)>>2])|0)){break c}c=c+1|0;if((d|0)!=(c|0)){continue}break b}break}return 0}if(!(I[i[i[a>>2]+36>>2]](a,b)|0)){break a}if(!(I[i[i[a>>2]+40>>2]](a,b)|0)){break a}h=I[i[i[a>>2]+44>>2]](a)|0}return h|0}function Nf(a,b,c,d){var e=0,f=0,g=0;a:{if(!b){if((d|0)<0?1:(d|0)<=0?c>>>0<0:0){return 0}d=i[a>>2];b=i[a+4>>2]-d|0;if(b>>>0>>0){Wa(a,c-b|0);break a}if(b>>>0<=c>>>0){break a}i[a+4>>2]=c+d;break a}if((d|0)<0?1:(d|0)<=0?c>>>0<0:0){return 0}e=c;g=i[a>>2];f=i[a+4>>2]-g|0;b:{c:{if(0>(d|0)?1:0>=(d|0)?f>>>0>=c>>>0:0){break c}if(f>>>0>>0){Wa(a,e-f|0);break b}if(f>>>0<=e>>>0){break c}i[a+4>>2]=e+g}if(!e){break a}}_k(i[a>>2],b,e)}b=a+24|0;c=b;d=b;a=i[b+4>>2];b=i[b>>2]+1|0;if(b>>>0<1){a=a+1|0}i[d>>2]=b;i[c+4>>2]=a;return 1}function de(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=i[a+216>>2];if((c|0)!=i[a+220>>2]){while(1){a:{c=i[o(e,144)+c>>2];if((c|0)<0){break a}f=i[a+4>>2];d=i[f+8>>2];if((c|0)>=i[f+12>>2]-d>>2){break a}c=i[d+(c<<2)>>2];if((I[i[i[c>>2]+24>>2]](c)|0)<1){break a}d=0;while(1){if((I[i[i[c>>2]+20>>2]](c,d)|0)!=(b|0)){d=d+1|0;if((d|0)<(I[i[i[c>>2]+24>>2]](c)|0)){continue}break a}break}a=i[a+216>>2]+o(e,144)|0;return(j[a+100|0]?a+4|0:0)|0}e=e+1|0;c=i[a+216>>2];if(e>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}return 0}function Rk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(Jk(a,i[b+8>>2],e)){Qk(b,c,d);return}a:{if(Jk(a,i[b>>2],e)){if(!(i[b+20>>2]!=(c|0)?i[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}i[b+32>>2]=1;return}i[b+32>>2]=d;b:{if(i[b+44>>2]==4){break b}h[b+52>>1]=0;a=i[a+8>>2];I[i[i[a>>2]+20>>2]](a,b,c,c,1,e);if(j[b+53|0]){i[b+44>>2]=3;if(!j[b+52|0]){break b}break a}i[b+44>>2]=4}i[b+20>>2]=c;i[b+40>>2]=i[b+40>>2]+1;if(i[b+36>>2]!=1|i[b+24>>2]!=2){break a}g[b+54|0]=1;return}a=i[a+8>>2];I[i[i[a>>2]+24>>2]](a,b,c,d,e)}}function Eb(a,b,c,d,e,f){var g=0,h=0,j=0;f=F-32|0;F=f;h=i[i[i[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((I[i[i[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}j=I[i[i[b>>2]+36>>2]](b)|0;g=I[i[i[b>>2]+44>>2]](b,d)|0;if(!(g?j:0)){i[a>>2]=0;break a}d=I[i[i[b>>2]+40>>2]](b,d)|0;if(d){b=i[b+44>>2];i[f+12>>2]=d;i[f+8>>2]=b;i[f+20>>2]=g;i[f+16>>2]=g+12;Fb(a,c,h,e,f+8|0);if(!i[a>>2]){break b}break a}b=i[b+44>>2];i[f+12>>2]=j;i[f+8>>2]=b;i[f+20>>2]=g;i[f+16>>2]=g+12;Gb(a,c,h,e,f+8|0);if(i[a>>2]){break a}}i[a>>2]=0}F=f+32|0}function xj(a,b,c){var d=0,e=0,f=0,h=0;d=F-48|0;F=d;f=Yf(a,b);if((f|0)!=(a+4|0)){rj(a,f)}f=0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=i[c>>2];e=i[c+4>>2]-h|0;if(e){Wa(d,e);h=i[c>>2];c=i[d>>2]}else{c=0}Yk(c,h,e);h=ok(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;c=i[d>>2];e=i[d+4>>2]-c|0;b=0;a:{if(!e){break a}Wa(d+28|0,e);c=i[d>>2];f=i[d+4>>2]-c|0;b=i[d+28>>2]}Yk(b,c,f);sj(d+40|0,a,h,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;Wk(a)}if(g[d+27|0]<=-1){Wk(i[d+16>>2])}a=i[d>>2];if(a){i[d+4>>2]=a;Wk(a)}F=d+48|0}function Xb(a,b){var c=0,d=0;c=F-32|0;F=c;a:{b:{if(i[a+8>>2]<<5>>>0>=b>>>0){break b}i[c+24>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;if((b|0)<=-1){break a}b=(b+ -1>>>5|0)+1|0;d=lk(b<<2);i[c+24>>2]=b;i[c+20>>2]=0;i[c+16>>2]=d;b=i[a>>2];i[c+12>>2]=0;i[c+8>>2]=b;d=i[a+4>>2];i[c+4>>2]=d&31;i[c>>2]=b+(d>>>3&536870908);Yb(c+16|0,c+8|0,c);b=i[a>>2];i[a>>2]=i[c+16>>2];i[c+16>>2]=b;d=i[a+4>>2];i[a+4>>2]=i[c+20>>2];i[c+20>>2]=d;d=i[a+8>>2];i[a+8>>2]=i[c+24>>2];i[c+24>>2]=d;if(!b){break b}Wk(b)}F=c+32|0;return}Ak();x()}function ee(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=i[a+216>>2];if((c|0)!=i[a+220>>2]){while(1){a:{c=i[o(e,144)+c>>2];if((c|0)<0){break a}f=i[a+4>>2];d=i[f+8>>2];if((c|0)>=i[f+12>>2]-d>>2){break a}c=i[d+(c<<2)>>2];if((I[i[i[c>>2]+24>>2]](c)|0)<1){break a}d=0;while(1){if((I[i[i[c>>2]+20>>2]](c,d)|0)!=(b|0)){d=d+1|0;if((d|0)<(I[i[i[c>>2]+24>>2]](c)|0)){continue}break a}break}return(i[a+216>>2]+o(e,144)|0)+104|0}e=e+1|0;c=i[a+216>>2];if(e>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}return a+184|0}function bb(a){var b=0,c=0,d=0,e=0,f=0;b=i[a+8>>2];a:{if(j[b+84|0]){break a}c=i[a+16>>2];if(!c|!j[c+84|0]){break a}d=i[b+72>>2];e=i[b+68>>2];g[c+84|0]=0;d=d-e>>2;f=i[c+68>>2];e=i[c+72>>2]-f>>2;b:{if(d>>>0>e>>>0){cb(c+68|0,d-e|0,1656);b=i[a+8>>2];break b}if(d>>>0>=e>>>0){break b}i[c+72>>2]=f+(d<<2)}if(j[b+84|0]){break a}c=i[b+68>>2];b=i[b+72>>2]-c|0;if(!b){break a}d=b>>2;e=i[i[a+16>>2]+68>>2];b=0;while(1){f=b<<2;i[f+e>>2]=i[c+f>>2];b=b+1|0;if(b>>>0>>0){continue}break}}return i[a+16>>2]}function zf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{c=i[a+8>>2];b:{if((c|0)<0){break b}d=i[a+4>>2];b=i[d>>2];e=i[d+4>>2]-b>>2;c:{if(c>>>0>e>>>0){Af(d,c-e|0);f=i[a+8>>2];break c}f=c;if(c>>>0>=e>>>0){break c}i[d+4>>2]=b+(c<<2);f=c}g=f;if((f|0)<1){break b}a=i[a+4>>2];b=i[a+4>>2];d=i[a>>2];a=b-d|0;e=(a|0)>-1?a:-1;b=d-b|0;b=o((e|0)<1?e:1,((b|0)>(a|0)?b:a)>>>2|0);a=0;while(1){if((a|0)==(b|0)){break a}i[d+(a<<2)>>2]=a;a=a+1|0;if((a|0)<(g|0)){continue}break}}return(c^-1)>>>31|0}Bk();x()}function yj(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=F-16|0;F=e;f=a+12|0;j=Yf(f,b);k=a+16|0;a:{if((j|0)!=(k|0)){break a}g=ud(f,e+12|0,b);d=i[g>>2];if(!d){d=lk(32);ok(d+16|0,b);i[d+28>>2]=0;i[d+8>>2]=i[e+12>>2];i[d>>2]=0;i[d+4>>2]=0;i[g>>2]=d;b=i[i[f>>2]>>2];h=d;b:{if(!b){break b}i[f>>2]=b;h=i[g>>2]}b=h;rd(i[a+16>>2],b);a=a+20|0;i[a>>2]=i[a>>2]+1}b=i[c>>2];i[c>>2]=0;c=d+28|0;a=i[c>>2];i[c>>2]=b;if(!a){break a}Jf(a+12|0,i[a+16>>2]);Kf(a,i[a+4>>2]);Wk(a)}F=e+16|0;return(j|0)==(k|0)}function qg(a,b){var c=0,d=0;c=F-96|0;F=c;Zk(c+16|0,0,76);i[c+92>>2]=-1;i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;a:{if(rg(c+16|0,a,c)){a=i[b>>2];if(a){i[b+4>>2]=a;Wk(a)}i[b>>2]=i[c>>2];i[b+4>>2]=i[c+4>>2];i[b+8>>2]=i[c+8>>2];d=i[c+84>>2];break a}a=i[c>>2];if(!a){break a}i[c+4>>2]=a;Wk(a)}a=i[c+72>>2];if(a){Wk(a)}a=i[c+48>>2];if(a){i[c+52>>2]=a;Wk(a)}a=i[c+36>>2];if(a){i[c+40>>2]=a;Wk(a)}a=i[c+24>>2];if(a){i[c+28>>2]=a;Wk(a)}a=i[c+20>>2];i[c+20>>2]=0;if(a){pe(c+16|4,a)}F=c+96|0;return d}function _i(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11304;b=i[a+68>>2];if(b){i[a+72>>2]=b;Wk(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;Wk(b)}b=i[a+44>>2];if(b){i[a+48>>2]=b;Wk(b)}b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;Wk(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){Ma(b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;Wk(b)}b=i[a+4>>2];i[a+4>>2]=0;if(b){Ef(b)}return a|0}function te(a){var b=0,c=0,d=0,e=0;c=1;d=i[a+140>>2];a:{if((d|0)<1){break a}b=d<<4;c=lk((d|0)!=(d&268435455)?-1:b|4);i[c>>2]=d;c=c+4|0;d=c+b|0;b=c;while(1){b=gd(b)+16|0;if((d|0)!=(b|0)){continue}break}e=i[a+136>>2];i[a+136>>2]=c;if(e){d=e+ -4|0;c=i[d>>2];if(c){b=e+(c<<4)|0;while(1){b=b+ -16|0;if((e|0)!=(b|0)){continue}break}}Wk(d)}c=1;if(i[a+140>>2]<1){break a}b=0;while(1){c=hd(i[a+136>>2]+(b<<4)|0,a);if(!c){break a}b=b+1|0;if((b|0)>2]){continue}break}}return c}function tg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a>>2];a=i[e+4>>2];d=i[e+8>>2];if(a>>>0>>0){i[a>>2]=i[b>>2];i[e+4>>2]=a+4;return}a:{f=i[e>>2];g=a-f|0;a=g>>2;c=a+1|0;if(c>>>0<1073741824){h=a<<2;d=d-f|0;a=d>>1;c=d>>2>>>0<536870911?a>>>0>>0?c:a:1073741823;a=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}a=lk(c<<2)}d=h+a|0;i[d>>2]=i[b>>2];b=a+(c<<2)|0;c=d+4|0;if((g|0)>=1){Yk(a,f,g)}i[e+8>>2]=b;i[e+4>>2]=c;i[e>>2]=a;if(f){Wk(f)}return}Ak();x()}va(10656);x()}function Xa(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a=i[a+4>>2];if(a){c=j[b+11|0];d=c<<24>>24<0;g=d?i[b>>2]:b;b=d?i[b+4>>2]:c;while(1){c=j[a+27|0];d=c<<24>>24<0;c=d?i[a+20>>2]:c;h=c>>>0>>0;a:{b:{f=h?c:b;c:{if(f){e=a+16|0;d=d?i[e>>2]:e;e=Lj(g,d,f);d:{if(!e){if(b>>>0>=c>>>0){break d}break a}if((e|0)<=-1){break a}}c=Lj(d,g,f);if(!c){break c}if((c|0)<=-1){break b}return 1}if(b>>>0>>0){break a}}if(h){break b}return 1}a=a+4|0}a=i[a>>2];if(a){continue}break}}return 0}function Pi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=Zk(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=lk(d<<2)}b=b<<2;b=Zk(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){Yk(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Wk(f)}return}Ak();x()}va(10832);x()}function Af(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=Zk(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=lk(d<<2)}b=b<<2;b=Zk(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){Yk(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Wk(f)}return}Ak();x()}va(10088);x()}function ja(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=Zk(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=lk(d<<2)}b=b<<2;b=Zk(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){Yk(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Wk(f)}return}Ak();x()}va(1244);x()}function fd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=Zk(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=lk(d<<2)}b=b<<2;b=Zk(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){Yk(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Wk(f)}return}Ak();x()}va(7888);x()}function La(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=Zk(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=lk(d<<2)}b=b<<2;b=Zk(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){Yk(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Wk(f)}return}Ak();x()}va(1496);x()}function ng(a,b){var c=0,d=0,e=0,f=0;c=F-32|0;F=c;d=$k(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){f=d+16&-16;e=lk(f);i[c+24>>2]=f|-2147483648;i[c+16>>2]=e;i[c+20>>2]=d;break b}g[c+27|0]=d;e=c+16|0;if(!d){break a}}Yk(e,b,d)}g[d+e|0]=0;g[c+4|0]=0;i[c>>2]=1701667182;g[c+11|0]=4;d=i[a+4>>2];b=-1;c:{if(!d){break c}d=oj(d,c,c+16|0);b=-1;if(!d){break c}b=Ej(a,i[d+24>>2])}if(g[c+11|0]<=-1){Wk(i[c>>2])}if(g[c+27|0]<=-1){Wk(i[c+16>>2])}F=c+32|0;return b}nk();x()}function xg(a,b,c){var d=0,e=0,f=0,h=0,j=0;d=F-32|0;F=d;f=g[a+24|0];e=i[2663];i[d+24>>2]=i[2662];i[d+28>>2]=e;e=i[2661];i[d+16>>2]=i[2660];i[d+20>>2]=e;a:{e=yg(a,b,f,d+16|0);if(e){i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a=0;if(f){if((f|0)<=-1){break a}b=f<<2;a=lk(b);i[d>>2]=a;h=(f<<2)+a|0;i[d+8>>2]=h;Yk(a,d+16|0,b);i[d+4>>2]=h;j=h}b=i[c>>2];if(b){i[c+4>>2]=b;Wk(b);h=i[d+8>>2];j=i[d+4>>2];a=i[d>>2]}i[c+8>>2]=h;i[c+4>>2]=j;i[c>>2]=a}F=d+32|0;return e}Ak();x()}function Jd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>3>>>0>=b>>>0){if(b){b=b<<3;c=Zk(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>3;d=g+b|0;if(d>>>0<536870912){c=0;g=g<<3;e=e-f|0;j=e>>2;d=e>>3>>>0<268435455?j>>>0>>0?d:j:536870911;if(d){if(d>>>0>=536870912){break a}c=lk(d<<3)}b=b<<3;b=Zk(c+g|0,0,b)+b|0;d=(d<<3)+c|0;if((h|0)>=1){Yk(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Wk(f)}return}Ak();x()}va(8058);x()}function pb(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=1736;b=i[a+60>>2];i[a+60>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;Wk(b)}d=i[a+36>>2];if(d){b=d;c=i[a+40>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+36>>2]}b=e;i[a+40>>2]=d;Wk(b)}i[a>>2]=1360;b=i[a+16>>2];if(b){i[a+20>>2]=b;Wk(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;Wk(b)}return a|0}function qb(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=1736;b=i[a+60>>2];i[a+60>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;Wk(b)}d=i[a+36>>2];if(d){b=d;c=i[a+40>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+36>>2]}b=e;i[a+40>>2]=d;Wk(b)}i[a>>2]=1360;b=i[a+16>>2];if(b){i[a+20>>2]=b;Wk(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;Wk(b)}Wk(a)}function Le(a){var b=0,c=0,d=0,e=0;b=i[a+196>>2];if(b){i[a+200>>2]=b;Wk(b)}b=i[a+184>>2];if(b){c=i[a+188>>2];d=b;a:{if((b|0)==(c|0)){break a}while(1){d=c+ -12|0;e=i[d>>2];if(e){i[c+ -8>>2]=e;Wk(e)}c=d;if((c|0)!=(b|0)){continue}break}d=i[a+184>>2]}i[a+188>>2]=b;Wk(d)}b=i[a+156>>2];if(b){i[a+160>>2]=b;Wk(b)}b=i[a+136>>2];i[a+136>>2]=0;if(b){c=b+ -4|0;a=i[c>>2];if(a){a=b+(a<<4)|0;while(1){a=a+ -16|0;if((b|0)!=(a|0)){continue}break}}Wk(c)}}function ye(a,b){var c=0,d=0,e=0,f=0,g=0;c=i[a+4>>2];if((c|0)!=i[a+8>>2]){i[c>>2]=i[b>>2];i[a+4>>2]=c+4;return}a:{f=i[a>>2];g=c-f|0;e=g>>2;d=e+1|0;if(d>>>0<1073741824){c=g>>1;d=e>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=lk(d<<2)}e=c+(e<<2)|0;i[e>>2]=i[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){Yk(c,f,g)}i[a+8>>2]=b;i[a+4>>2]=d;i[a>>2]=c;if(f){Wk(f)}return}Ak();x()}va(8944);x()} -function Ag(a,b,c,d){var e=0,f=0,o=p(0),q=0,r=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(g[b|0]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(127)}b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(j[b|0]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(255)}b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(h[b>>1]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(32767)}b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(k[b>>1]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o/p(65535)}b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(i[b>>2]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(4.656612873077393e-10)}b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(l[b>>2]);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(2.3283064365386963e-10)}b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(+l[b>>2]+ +i[b+4>>2]*4294967296);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(1.0842021724855044e-19)}b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}e=(f<<2)+d|0;o=p(+l[b>>2]+ +l[b+4>>2]*4294967296);m[e>>2]=o;if(j[a+32|0]){m[e>>2]=o*p(5.421010862427522e-20)}b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){f=i[a>>2];e=i[f>>2];b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;q=i[f+4>>2];f=0;while(1){if(q>>>0<=b>>>0){break b}m[(f<<2)+d>>2]=n[b>>3];b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}r=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){q=i[a>>2];e=i[q>>2];b=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=e+b|0;while(1){if(l[q+4>>2]<=b>>>0){break b}m[(f<<2)+d>>2]=j[b|0]?p(1):p(0);b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}al((e<<2)+d|0,0,c-e<<2)}return r}return 0}al((e<<2)+d|0,0,c-e<<2);return 1}function Ig(a,b,c,d){var e=0,f=0,l=0,o=0,r=0,s=0,t=p(0),u=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;l=i[e+4>>2];while(1){if(l>>>0<=b>>>0){break b}o=0;e=h[b>>1];if((e|0)<0){break c}h[(f<<1)+d>>1]=e;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}o=1;if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e+32768>>>0>65535){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e>>>0>32767){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];r=i[b>>2];s=r+32768|0;if(s>>>0<32768){e=e+1|0}if(!e&s>>>0>65535|e>>>0>0){break b}h[(f<<1)+d>>1]=r;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];r=i[b>>2];if(!e&r>>>0>32767|e>>>0>0){break b}h[(f<<1)+d>>1]=r;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}r=(f<<1)+d|0;t=m[b>>2];e:{if(p(q(t))>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}r=(f<<1)+d|0;u=n[b>>3];f:{if(q(u)<2147483648){e=~~u;break f}e=-2147483648}h[r>>1]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}al((e<<1)+d|0,0,c-e<<1)}return o}return 0}al((e<<1)+d|0,0,c-e<<1);return 1}function Kg(a,b,c,d){var e=0,f=0,l=0,o=0,q=0,r=p(0),s=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;l=i[e+4>>2];while(1){if(l>>>0<=b>>>0){break b}o=0;e=g[b|0];if((e|0)<0){break c}h[(f<<1)+d>>1]=e&255;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}o=1;if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;l=i[e+4>>2];while(1){if(l>>>0<=b>>>0){break b}o=0;e=h[b>>1];if((e|0)<0){break c}h[(f<<1)+d>>1]=e;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}o=1;if((e|0)>=(c|0)){break c}break a;case 3:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e>>>0>65535){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b>>2];if(e>>>0>65535){break b}h[(f<<1)+d>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];q=i[b>>2];if(!e&q>>>0>65535|e>>>0>0){break b}h[(f<<1)+d>>1]=q;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}e=i[b+4>>2];q=i[b>>2];if(!e&q>>>0>65535|e>>>0>0){break b}h[(f<<1)+d>>1]=q;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}q=(f<<1)+d|0;r=m[b>>2];e:{if(r=p(0)){e=~~r>>>0;break e}e=0}h[q>>1]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}q=(f<<1)+d|0;s=n[b>>3];f:{if(s<4294967296&s>=0){e=~~s>>>0;break f}e=0}h[q>>1]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;l=i[e+4>>2];f=0;while(1){if(l>>>0<=b>>>0){break b}h[(f<<1)+d>>1]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}al((e<<1)+d|0,0,c-e<<1)}return o}return 0}al((e<<1)+d|0,0,c-e<<1);return 1}function Mg(a,b,c,d){var e=0,f=0,l=0,o=0,r=0,s=p(0),t=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=h[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=g[a+24|0];if(((o|0)>(c|0)?c:o)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;e=i[e+4>>2];while(1){if(e>>>0<=b>>>0){break b}o=0;r=i[b>>2];if((r|0)<0){break c}i[(f<<2)+d>>2]=r;b=b+4|0;f=f+1|0;o=g[a+24|0];if((f|0)<((o|0)>(c|0)?c:o)<<24>>24){continue}break}}if((o|0)>=(c|0)){return 1}al((o<<2)+d|0,0,c-o<<2);return 1;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=i[b+4>>2];l=i[b>>2];if(l+ -2147483648>>>0<2147483648){e=e+1|0}if(e>>>0>0){break b}i[(f<<2)+d>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=i[b+4>>2];l=i[b>>2];if(!e&l>>>0>2147483647|e>>>0>0){break b}i[(f<<2)+d>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=(f<<2)+d|0;s=m[b>>2];e:{if(p(q(s))>2]=l;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=(f<<2)+d|0;t=n[b>>3];f:{if(q(t)<2147483648){l=~~t;break f}l=-2147483648}i[e>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}al((e<<2)+d|0,0,c-e<<2)}return o}return 0}al((e<<2)+d|0,0,c-e<<2);return 1}function hc(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;f=H-80|0;H=f;h=-1;e=-1;a:{if((b|0)==-1){break a}e=b+1|0;h=(e>>>0)%3|0?e:b+ -2|0;e=b+ -1|0;if((b>>>0)%3|0){break a}e=b+2|0}l=i[a+36>>2];b=i[l>>2];b:{c:{d:{e:{f:{l=i[l+4>>2]-b>>2;m=h<<2;h=i[i[a+32>>2]+28>>2];k=i[m+h>>2];if(l>>>0<=k>>>0){break f}e=i[h+(e<<2)>>2];if(l>>>0<=e>>>0){break f}g:{h:{u=i[b+(k<<2)>>2];w=(u|0)>=(d|0);if(w){break h}h=i[b+(e<<2)>>2];if((h|0)>=(d|0)){break h}b=h<<3;B=i[(b|4)+c>>2];e=u<<3;y=i[(e|4)+c>>2];C=i[b+c>>2];z=i[c+e>>2];if(!((C|0)!=(z|0)|(y|0)!=(B|0))){i[a+8>>2]=z;i[a+12>>2]=y;break g}b=i[i[a+4>>2]+(d<<2)>>2];i[f+72>>2]=0;i[f+76>>2]=0;e=f- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}ic(e,b,g[e+24|0],f+56|0);b=i[i[a+4>>2]+(u<<2)>>2];i[f+48>>2]=0;i[f+52>>2]=0;i[f+40>>2]=0;i[f+44>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}ic(e,b,g[e+24|0],f+32|0);b=i[i[a+4>>2]+(h<<2)>>2];i[f+24>>2]=0;i[f+28>>2]=0;i[f+16>>2]=0;i[f+20>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}ic(e,b,g[e+24|0],f+8|0);A=i[f+44>>2];e=i[f+16>>2];b=i[f+40>>2];q=i[f+20>>2]-(A+(e>>>0>>0)|0)|0;h=e-b|0;e=kl(h,q,h,q);p=J;m=e;E=i[f+36>>2];e=i[f+8>>2];r=i[f+32>>2];l=r;s=i[f+12>>2]-(E+(e>>>0>>0)|0)|0;l=e-l|0;o=kl(l,s,l,s);k=m+o|0;e=J+p|0;e=k>>>0>>0?e+1|0:e;F=k;n=i[f+52>>2];k=i[f+24>>2];m=i[f+48>>2];o=m;p=i[f+28>>2]-(n+(k>>>0>>0)|0)|0;k=k-o|0;v=kl(k,p,k,p);o=F+v|0;e=J+e|0;t=o;o=o>>>0>>0?e+1|0:e;if(!(t|o)){break h}c=i[f+64>>2];u=c-b|0;G=i[f+68>>2]-((c>>>0>>0)+A|0)|0;b=kl(u,G,h,q);c=J;e=b;b=i[f+56>>2];w=b-r|0;I=i[f+60>>2]-((b>>>0>>0)+E|0)|0;d=kl(w,I,l,s);b=e+d|0;e=J+c|0;e=b>>>0>>0?e+1|0:e;d=b;b=i[f+72>>2];A=b-m|0;K=i[f+76>>2]-((b>>>0>>0)+n|0)|0;c=kl(A,K,k,p);b=d+c|0;e=J+e|0;D=b;F=b;r=b>>>0>>0?e+1|0:e;L=r;e=p;b=e>>31;c=e>>31;e=b+e|0;m=c+k|0;if(m>>>0>>0){e=e+1|0}c=c^m;b=b^e;M=b;m=c;E=b;d=q;b=d>>31;d=d>>31;n=b;b=q+b|0;e=d;v=e+h|0;if(v>>>0>>0){b=b+1|0}d=d^v;b=b^n;N=b;v=b;e=s;b=e>>31;e=e>>31;P=m;Q=d;n=b+s|0;m=e+l|0;if(m>>>0>>0){n=n+1|0}e=e^m;d=e>>>0>>0;b=b^n;d=(b|0)<(N|0)?1:(b|0)<=(N|0)?d:0;e=d?Q:e;c=e>>>0>>0;b=d?v:b;c=(b|0)<(M|0)?1:(b|0)<=(M|0)?c:0;c=F>>>0>ml(-1,2147483647,c?P:e,c?E:b)>>>0;b=J;if((L|0)>(b|0)?1:(L|0)>=(b|0)?c:0){break b}d=1;b=0;c=ll(kl(h,q,D,r),J,t,o);e=G-(J+(u>>>0>>0)|0)|0;c=u-c|0;c=kl(c,e,c,e);h=J;m=c;c=ll(kl(l,s,D,r),J,t,o);e=I-(J+(w>>>0>>0)|0)|0;c=w-c|0;e=kl(c,e,c,e);c=m+e|0;n=J+h|0;n=c>>>0>>0?n+1|0:n;l=c;c=ll(kl(D,r,k,p),J,t,o);e=K-(J+(A>>>0>>0)|0)|0;c=A-c|0;h=kl(c,e,c,e);c=l+h|0;e=J+n|0;h=kl(c,c>>>0>>0?e+1|0:e,t,o);c=J;l=c;if(!c&h>>>0<=1|c>>>0<0){break e}k=h;c=l;while(1){e=b<<1|d>>>31;d=d<<1;b=e;q=!c&k>>>0>7|c>>>0>0;k=(c&3)<<30|k>>>2;c=c>>>2|0;if(q){continue}break}break d}e=a;if(w){if((d|0)<=0){i[a+8>>2]=0;i[a+12>>2]=0;break g}b=(d<<1)+ -2|0}else{b=u<<1}b=(b<<2)+c|0;i[e+8>>2]=i[b>>2];i[a+12>>2]=i[b+4>>2]}O=1;break b}Ek();x()}b=l;d=h;if(d-1|0){break c}}while(1){c=ml(h,l,d,b)+d|0;e=b+J|0;e=c>>>0>>0?e+1|0:e;d=(e&1)<<31|c>>>1;b=e>>>1|0;c=kl(d,b,d,b);e=J;if((l|0)==(e|0)&c>>>0>h>>>0|e>>>0>l>>>0){continue}break}}l=i[a+20>>2];if(l){k=l+ -1|0;q=i[i[a+16>>2]+(k>>>3&536870908)>>2];i[a+20>>2]=k;c=B;e=y;s=c-e|0;p=e>>31;y=(c>>31)-(p+(c>>>0>>0)|0)|0;c=kl(D,r,s,y);h=J;e=kl(e,p,t,o);c=e+c|0;n=J+h|0;n=c>>>0>>0?n+1|0:n;m=c;c=C;h=z;e=h;p=c-e|0;B=e>>31;z=(c>>31)-(B+(c>>>0>>0)|0)|0;c=kl(d,b,p,z);e=c;c=q>>>(k&31)&1;C=c?0-e|0:e;k=m+C|0;m=J;e=(c?0-(m+(0>>0)|0)|0:m)+n|0;R=a,S=ll(k,k>>>0>>0?e+1|0:e,t,o),i[R+12>>2]=S;e=kl(D,r,p,z);k=J;m=a;a=e;e=kl(h,B,t,o);a=a+e|0;n=J+k|0;n=a>>>0>>0?n+1|0:n;e=a;a=kl(d,b,s,y);d=c?a:0-a|0;b=e+d|0;e=J;a=(c?e:0-((0>>0)+e|0)|0)+n|0;R=m,S=ll(b,b>>>0>>0?a+1|0:a,t,o),i[R+8>>2]=S}O=(l|0)!=0}H=f+80|0;return O}function Bc(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;f=H-80|0;H=f;e=-1;h=-1;a:{if((b|0)==-1){break a}k=((b>>>0)%3|0?-1:2)+b|0;l=i[a+32>>2];p=b+1|0;b=(p>>>0)%3|0?p:b+ -2|0;if((b|0)!=-1){e=i[i[l>>2]+(b<<2)>>2]}if((k|0)==-1){break a}h=i[i[l>>2]+(k<<2)>>2]}k=i[a+36>>2];b=i[k>>2];b:{c:{d:{e:{k=i[k+4>>2]-b>>2;if(!(k>>>0<=e>>>0|k>>>0<=h>>>0)){f:{g:{u=i[b+(e<<2)>>2];w=(u|0)>=(d|0);if(w){break g}h=i[b+(h<<2)>>2];if((h|0)>=(d|0)){break g}b=h<<3;B=i[(b|4)+c>>2];e=u<<3;y=i[(e|4)+c>>2];C=i[b+c>>2];z=i[c+e>>2];if(!((C|0)!=(z|0)|(y|0)!=(B|0))){i[a+8>>2]=z;i[a+12>>2]=y;break f}b=i[i[a+4>>2]+(d<<2)>>2];i[f+72>>2]=0;i[f+76>>2]=0;e=f- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}ic(e,b,g[e+24|0],f+56|0);b=i[i[a+4>>2]+(u<<2)>>2];i[f+48>>2]=0;i[f+52>>2]=0;i[f+40>>2]=0;i[f+44>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}ic(e,b,g[e+24|0],f+32|0);b=i[i[a+4>>2]+(h<<2)>>2];i[f+24>>2]=0;i[f+28>>2]=0;i[f+16>>2]=0;i[f+20>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}ic(e,b,g[e+24|0],f+8|0);A=i[f+44>>2];e=i[f+16>>2];b=i[f+40>>2];p=i[f+20>>2]-(A+(e>>>0>>0)|0)|0;h=e-b|0;e=kl(h,p,h,p);q=J;n=e;E=i[f+36>>2];e=i[f+8>>2];r=i[f+32>>2];k=r;s=i[f+12>>2]-(E+(e>>>0>>0)|0)|0;k=e-k|0;o=kl(k,s,k,s);l=n+o|0;e=J+q|0;e=l>>>0>>0?e+1|0:e;F=l;m=i[f+52>>2];l=i[f+24>>2];n=i[f+48>>2];o=n;q=i[f+28>>2]-(m+(l>>>0>>0)|0)|0;l=l-o|0;v=kl(l,q,l,q);o=F+v|0;e=J+e|0;t=o;o=o>>>0>>0?e+1|0:e;if(!(t|o)){break g}c=i[f+64>>2];u=c-b|0;G=i[f+68>>2]-((c>>>0>>0)+A|0)|0;b=kl(u,G,h,p);c=J;e=b;b=i[f+56>>2];w=b-r|0;I=i[f+60>>2]-((b>>>0>>0)+E|0)|0;d=kl(w,I,k,s);b=e+d|0;e=J+c|0;e=b>>>0>>0?e+1|0:e;d=b;b=i[f+72>>2];A=b-n|0;K=i[f+76>>2]-((b>>>0>>0)+m|0)|0;c=kl(A,K,l,q);b=d+c|0;e=J+e|0;D=b;F=b;r=b>>>0>>0?e+1|0:e;L=r;e=q;b=e>>31;c=e>>31;e=b+e|0;n=c+l|0;if(n>>>0>>0){e=e+1|0}c=c^n;b=b^e;M=b;n=c;E=b;d=p;b=d>>31;d=d>>31;m=b;b=p+b|0;e=d;v=e+h|0;if(v>>>0>>0){b=b+1|0}d=d^v;b=b^m;N=b;v=b;e=s;b=e>>31;e=e>>31;P=n;Q=d;m=b+s|0;n=e+k|0;if(n>>>0>>0){m=m+1|0}e=e^n;d=e>>>0>>0;b=b^m;d=(b|0)<(N|0)?1:(b|0)<=(N|0)?d:0;e=d?Q:e;c=e>>>0>>0;b=d?v:b;c=(b|0)<(M|0)?1:(b|0)<=(M|0)?c:0;c=F>>>0>ml(-1,2147483647,c?P:e,c?E:b)>>>0;b=J;if((L|0)>(b|0)?1:(L|0)>=(b|0)?c:0){break b}d=1;b=0;c=ll(kl(h,p,D,r),J,t,o);e=G-(J+(u>>>0>>0)|0)|0;c=u-c|0;c=kl(c,e,c,e);h=J;n=c;c=ll(kl(k,s,D,r),J,t,o);e=I-(J+(w>>>0>>0)|0)|0;c=w-c|0;e=kl(c,e,c,e);c=n+e|0;m=J+h|0;m=c>>>0>>0?m+1|0:m;k=c;c=ll(kl(D,r,l,q),J,t,o);e=K-(J+(A>>>0>>0)|0)|0;c=A-c|0;h=kl(c,e,c,e);c=k+h|0;e=J+m|0;h=kl(c,c>>>0>>0?e+1|0:e,t,o);c=J;k=c;if(!c&h>>>0<=1|c>>>0<0){break e}l=h;c=k;while(1){e=b<<1|d>>>31;d=d<<1;b=e;p=!c&l>>>0>7|c>>>0>0;l=(c&3)<<30|l>>>2;c=c>>>2|0;if(p){continue}break}break d}e=a;if(w){if((d|0)<=0){i[a+8>>2]=0;i[a+12>>2]=0;break f}b=(d<<1)+ -2|0}else{b=u<<1}b=(b<<2)+c|0;i[e+8>>2]=i[b>>2];i[a+12>>2]=i[b+4>>2]}O=1;break b}Ek();x()}b=k;d=h;if(d-1|0){break c}}while(1){c=ml(h,k,d,b)+d|0;e=b+J|0;e=c>>>0>>0?e+1|0:e;d=(e&1)<<31|c>>>1;b=e>>>1|0;c=kl(d,b,d,b);e=J;if((k|0)==(e|0)&c>>>0>h>>>0|e>>>0>k>>>0){continue}break}}k=i[a+20>>2];if(k){l=k+ -1|0;p=i[i[a+16>>2]+(l>>>3&536870908)>>2];i[a+20>>2]=l;c=B;e=y;s=c-e|0;q=e>>31;y=(c>>31)-(q+(c>>>0>>0)|0)|0;c=kl(D,r,s,y);h=J;e=kl(e,q,t,o);c=e+c|0;m=J+h|0;m=c>>>0>>0?m+1|0:m;n=c;c=C;h=z;e=h;q=c-e|0;B=e>>31;z=(c>>31)-(B+(c>>>0>>0)|0)|0;c=kl(d,b,q,z);e=c;c=p>>>(l&31)&1;C=c?0-e|0:e;l=n+C|0;n=J;e=(c?0-(n+(0>>0)|0)|0:n)+m|0;R=a,S=ll(l,l>>>0>>0?e+1|0:e,t,o),i[R+12>>2]=S;e=kl(D,r,q,z);l=J;n=a;a=e;e=kl(h,B,t,o);a=a+e|0;m=J+l|0;m=a>>>0>>0?m+1|0:m;e=a;a=kl(d,b,s,y);d=c?a:0-a|0;b=e+d|0;e=J;a=(c?e:0-((0>>0)+e|0)|0)+m|0;R=n,S=ll(b,b>>>0>>0?a+1|0:a,t,o),i[R+8>>2]=S}O=(k|0)!=0}H=f+80|0;return O}function Og(a,b,c,d){var e=0,f=0,o=0,q=0,r=0,s=p(0),t=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=h[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 6:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}e=i[b>>2];if(l[b+4>>2]>0){break b}i[(f<<2)+d>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}e=i[b>>2];if(l[b+4>>2]>0){break b}i[(f<<2)+d>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}r=(f<<2)+d|0;s=m[b>>2];e:{if(s=p(0)){e=~~s>>>0;break e}e=0}i[r>>2]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}r=(f<<2)+d|0;t=n[b>>3];f:{if(t<4294967296&t>=0){e=~~t>>>0;break f}e=0}i[r>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}q=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+kl(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}al((e<<2)+d|0,0,c-e<<2)}return q}return 0}al((e<<2)+d|0,0,c-e<<2);return 1}function uf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;d=H-32|0;H=d;a:{if(!vf(1,d+28|0,i[a+32>>2])){break a}if(!vf(1,d+24|0,i[a+32>>2])){break a}r=i[d+28>>2];if(r>>>0>1431655765){break a}f=i[a+32>>2];e=f;h=i[e+8>>2];b=h;g=i[e+16>>2];m=b-g|0;c=i[e+12>>2];n=b>>>0>>0;b=i[e+20>>2];q=ll(m,c-(n+b|0)|0,3,0);o=J;if((c|0)<(b|0)?1:(c|0)<=(b|0)?h>>>0<=g>>>0:0){break a}e=r;c=kl(e,0,3,0);h=J;u=i[d+24>>2];if(!h&c>>>0>>0|h>>>0<0|(!o&q>>>0>>0|o>>>0<0)){break a}h=j[g+i[f>>2]|0];e=b;o=g+1|0;if(o>>>0<1){e=e+1|0}c=f;i[c+16>>2]=o;i[c+20>>2]=e;b:{if(!h){if(!wf(a,r)){break a}break b}c:{if(u>>>0<=255){if(!r){break b}q=0;n=d+16|0;i[n>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;h=i[f+8>>2];c=i[f+12>>2];b=c;if((b|0)<(e|0)?1:(b|0)<=(e|0)?h>>>0<=o>>>0:0){break c}while(1){g=i[f>>2];s=j[g+o|0];b=e;m=o+1|0;if(m>>>0<1){b=b+1|0}p=f;i[f+16>>2]=m;i[f+20>>2]=b;i[d+8>>2]=s;if((c|0)<(b|0)?1:(c|0)<=(b|0)?h>>>0<=m>>>0:0){break c}s=j[g+m|0];b=e;m=o+2|0;if(m>>>0<2){b=b+1|0}i[f+16>>2]=m;i[p+20>>2]=b;i[d+12>>2]=s;if((c|0)<(b|0)?1:(c|0)<=(b|0)?h>>>0<=m>>>0:0){break c}b=j[g+m|0];c=o+3|0;if(c>>>0<3){e=e+1|0}i[f+16>>2]=c;i[f+20>>2]=e;i[d+16>>2]=b;xf(i[a+44>>2]+96|0,d+8|0);q=q+1|0;if((r|0)==(q|0)){break b}f=i[a+32>>2];b=f;o=i[b+16>>2];e=i[b+20>>2];i[n>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;h=i[b+8>>2];c=i[b+12>>2];b=c;if((b|0)>(e|0)?1:(b|0)>=(e|0)?h>>>0>o>>>0:0){continue}break}break c}if(u>>>0<=65535){if(!r){break b}q=0;t=d+16|0;i[t>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;p=i[f+12>>2];n=p;c=g+3|0;if(c>>>0<3){b=b+1|0}m=i[f+8>>2];h=c;c=b;if((n|0)<(b|0)?1:(n|0)<=(b|0)?m>>>0>>0:0){break c}while(1){n=i[f>>2];b=n+o|0;b=j[b|0]|j[b+1|0]<<8;i[f+16>>2]=h;i[f+20>>2]=c;i[d+8>>2]=b;c=p;b=e;g=o+4|0;if(g>>>0<4){b=b+1|0}s=g;g=b;if((c|0)<(b|0)?1:(c|0)<=(b|0)?m>>>0>>0:0){break c}b=h+n|0;b=j[b|0]|j[b+1|0]<<8;i[f+16>>2]=s;i[f+20>>2]=g;i[d+12>>2]=b;b=e;e=o+6|0;if(e>>>0<6){b=b+1|0}c=e;e=b;if((p|0)<(b|0)?1:(p|0)<=(b|0)?m>>>0>>0:0){break c}b=n+s|0;b=j[b|0]|j[b+1|0]<<8;i[f+16>>2]=c;i[f+20>>2]=e;i[d+16>>2]=b;xf(i[a+44>>2]+96|0,d+8|0);q=q+1|0;if((r|0)==(q|0)){break b}f=i[a+32>>2];b=f;o=i[b+16>>2];e=i[b+20>>2];i[t>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;g=i[b+12>>2];p=g;m=i[b+8>>2];n=m;b=e;c=o+2|0;if(c>>>0<2){b=b+1|0}h=c;c=b;if((g|0)>(b|0)?1:(g|0)>=(b|0)?n>>>0>=h>>>0:0){continue}break}break c}d:{if(l[i[a+44>>2]+80>>2]>2097151){break d}c=k[a+36>>1];if((c<<24|c<<8&16711680)>>>16>>>0<514){break d}if(!r){break b}e=d+16|0;i[e>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;if(!vf(1,d+4|0,f)){break c}while(1){i[d+8>>2]=i[d+4>>2];if(!vf(1,d+4|0,i[a+32>>2])){break c}i[d+12>>2]=i[d+4>>2];if(!vf(1,d+4|0,i[a+32>>2])){break c}i[d+16>>2]=i[d+4>>2];xf(i[a+44>>2]+96|0,d+8|0);p=p+1|0;if((r|0)==(p|0)){break b}b=i[a+32>>2];i[e>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;if(vf(1,d+4|0,b)){continue}break}break c}if(!r){break b}q=0;t=d+16|0;i[t>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;p=i[f+12>>2];n=p;c=g+5|0;if(c>>>0<5){b=b+1|0}m=i[f+8>>2];h=c;c=b;if((n|0)<(b|0)?1:(n|0)<=(b|0)?m>>>0>>0:0){break c}while(1){n=i[f>>2];b=n+o|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[f+16>>2]=h;i[f+20>>2]=c;i[d+8>>2]=b;c=p;b=e;g=o+8|0;if(g>>>0<8){b=b+1|0}s=g;g=b;if((c|0)<(b|0)?1:(c|0)<=(b|0)?m>>>0>>0:0){break c}b=h+n|0;b=j[b|0]|j[b+1|0]<<8|(j[b+2|0]<<16|j[b+3|0]<<24);i[f+16>>2]=s;i[f+20>>2]=g;i[d+12>>2]=b;b=o+12|0;if(b>>>0<12){e=e+1|0}c=b;b=e;if((p|0)<(b|0)?1:(p|0)<=(b|0)?m>>>0>>0:0){break c}e=n+s|0;e=j[e|0]|j[e+1|0]<<8|(j[e+2|0]<<16|j[e+3|0]<<24);i[f+16>>2]=c;i[f+20>>2]=b;i[d+16>>2]=e;xf(i[a+44>>2]+96|0,d+8|0);q=q+1|0;if((r|0)==(q|0)){break b}f=i[a+32>>2];b=f;o=i[b+16>>2];e=i[b+20>>2];i[t>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;g=i[b+12>>2];p=g;m=i[b+8>>2];n=m;b=e;c=o+4|0;if(c>>>0<4){b=b+1|0}h=c;c=b;if((g|0)>(b|0)?1:(g|0)>=(b|0)?n>>>0>=h>>>0:0){continue}break}}p=0;break a}i[i[a+4>>2]+80>>2]=u;p=1}H=d+32|0;return p|0}function _e(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;a:{b:{c:{d:{e:{f:{g:{if(i[a+92>>2]==i[a+88>>2]){break g}e=i[a+52>>2];d=i[a+56>>2];h:{if((e|0)!=(d|0)){i[e>>2]=b;i[a+52>>2]=e+4;break h}j=i[a+48>>2];h=e-j|0;f=h>>2;g=f+1|0;if(g>>>0>=1073741824){break a}c=d-j|0;d=c>>1;c=c>>2>>>0<536870911?d>>>0>>0?g:d:1073741823;e=0;i:{if(!c){break i}if(c>>>0>=1073741824){break b}e=ok(c<<2)}d=e+(f<<2)|0;i[d>>2]=b;c=e+(c<<2)|0;d=d+4|0;if((h|0)>=1){$k(e,j,h)}i[a+56>>2]=c;i[a+52>>2]=d;i[a+48>>2]=e;if(!j){break h}Zk(j)}i[a+84>>2]=0;d=-1;e=-1;j:{if((b|0)==-1){break j}f=i[a+4>>2];c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){d=i[i[f>>2]+(c<<2)>>2]}c=((b>>>0)%3|0?-1:2)+b|0;if((c|0)==-1){break j}e=i[i[f>>2]+(c<<2)>>2]}c=i[a+36>>2];h=c+(d>>>3&536870908)|0;g=i[h>>2];f=1<<(d&31);if(!(g&f)){i[h>>2]=f|g;f=a+8|0;if((b|0)!=-1){c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0}else{c=-1}$e(f,d,c);c=i[a+36>>2]}f=(e>>>3&536870908)+c|0;c=i[f>>2];d=1<<(e&31);if(!(c&d)){i[f>>2]=c|d;c=a+8|0;d=-1;k:{if((b|0)==-1){break k}d=b+ -1|0;if((b>>>0)%3|0){break k}d=b+2|0}$e(c,e,d)}d=-1;d=(b|0)!=-1?i[i[i[a+4>>2]>>2]+(b<<2)>>2]:d;f=i[a+36>>2]+(d>>>3&536870908)|0;c=i[f>>2];e=1<<(d&31);if(!(c&e)){i[f>>2]=c|e;$e(a+8|0,d,b)}c=i[a+84>>2];if((c|0)>2){break g}q=a+8|0;while(1){b=o(c,12)+a|0;d=b+52|0;e=i[d>>2];if((e|0)==i[b+48>>2]){c=c+1|0;if((c|0)!=3){continue}break g}e=e+ -4|0;b=i[e>>2];i[d>>2]=e;i[a+84>>2]=c;if((b|0)==-1){break g}d=i[a+24>>2];e=(b>>>0)/3|0;l:{if(i[d+(e>>>3&268435452)>>2]>>>(e&31)&1){break l}m:{while(1){g=(b>>>0)/3|0;e=(g>>>3&268435452)+d|0;i[e>>2]=i[e>>2]|1<<(g&31);d=-1;d=(b|0)!=-1?i[i[i[a+4>>2]>>2]+(b<<2)>>2]:d;f=i[a+36>>2]+(d>>>3&536870908)|0;c=i[f>>2];e=1<<(d&31);if(!(c&e)){i[f>>2]=c|e;$e(q,d,b)}if((b|0)==-1){break m}h=i[a+4>>2];e=-1;d=-1;c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){d=i[i[h+12>>2]+(c<<2)>>2]}b=(b-o(g,3)|0?-1:2)+b|0;if((b|0)!=-1){e=i[i[h+12>>2]+(b<<2)>>2]}g=(e|0)==-1;f=(e>>>0)/3|0;c=(d>>>0)/3|0;n:{o:{p:{q:{b=(d|0)==-1;if(!b){b=b?-1:c;b=i[i[a+24>>2]+(b>>>3&536870908)>>2]&1<<(b&31);if(g){break q}p=(b|0)!=0;break p}p=1;if(!g){break p}break m}if(!b){break o}break m}b=g?-1:f;r:{if(i[i[a+24>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){break r}b=0;c=i[i[h>>2]+(e<<2)>>2];if(!(i[i[a+36>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1)){b=i[a+88>>2]+(c<<2)|0;c=i[b>>2];i[b>>2]=c+1;b=(c|0)<1?2:1}if(!(!p|(b|0)>i[a+84>>2])){b=e;d=i[a+24>>2];continue}c=o(b,12)+a|0;k=c+52|0;g=i[k>>2];n=c+56|0;f=i[n>>2];s:{if((g|0)!=(f|0)){i[g>>2]=e;i[k>>2]=g+4;break s}j=c+48|0;h=i[j>>2];l=g-h|0;c=l>>2;m=c+1|0;if(m>>>0>=1073741824){break f}r=c<<2;g=f-h|0;f=g>>1;f=g>>2>>>0<536870911?f>>>0>>0?m:f:1073741823;c=0;t:{if(!f){break t}if(f>>>0>=1073741824){break e}c=ok(f<<2)}g=r+c|0;i[g>>2]=e;f=c+(f<<2)|0;e=g+4|0;if((l|0)>=1){$k(c,h,l)}i[j>>2]=c;i[k>>2]=e;i[n>>2]=f;if(!h){break s}Zk(h)}if(i[a+84>>2]<=(b|0)){break r}i[a+84>>2]=b}if(p){break m}b=-1;if((d|0)==-1){break n}}b=i[i[i[a+4>>2]>>2]+(d<<2)>>2]}e=0;if(!(i[i[a+36>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1)){b=i[a+88>>2]+(b<<2)|0;e=i[b>>2];i[b>>2]=e+1;e=(e|0)<1?2:1}if((e|0)<=i[a+84>>2]){b=d;d=i[a+24>>2];continue}break}b=o(e,12)+a|0;l=b+52|0;f=i[l>>2];j=b+56|0;c=i[j>>2];u:{if((f|0)!=(c|0)){i[f>>2]=d;i[l>>2]=f+4;break u}h=b+48|0;k=i[h>>2];m=f-k|0;g=m>>2;n=g+1|0;if(n>>>0>=1073741824){break d}f=c-k|0;c=f>>1;c=f>>2>>>0<536870911?c>>>0>>0?n:c:1073741823;b=0;v:{if(!c){break v}if(c>>>0>=1073741824){break c}b=ok(c<<2)}f=b+(g<<2)|0;i[f>>2]=d;c=b+(c<<2)|0;d=f+4|0;if((m|0)>=1){$k(b,k,m)}i[h>>2]=b;i[l>>2]=d;i[j>>2]=c;if(!k){break u}Zk(k)}c=i[a+84>>2];if((c|0)<=(e|0)){break l}i[a+84>>2]=e;c=e;break l}c=i[a+84>>2]}if((c|0)<3){continue}break}}return 1}Dk();x()}xa(8944);x()}Dk();x()}xa(8944);x()}xa(8944);x()}Dk();x()}function Fe(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;f=H+ -64|0;H=f;i[a+132>>2]=0;if(i[a+148>>2]){b=i[a+144>>2];if(b){while(1){c=i[b>>2];Zk(b);b=c;if(b){continue}break}}i[a+144>>2]=0;c=i[a+140>>2];if(c){b=0;while(1){i[i[a+136>>2]+(b<<2)>>2]=0;b=b+1|0;if((c|0)!=(b|0)){continue}break}}i[a+148>>2]=0}a:{if(!qe(1,f+60|0,i[i[a+4>>2]+32>>2])){break a}i[a+156>>2]=i[f+60>>2];if(!qe(1,f+56|0,i[i[a+4>>2]+32>>2])){break a}e=i[f+56>>2];if(e>>>0>1431655765|l[a+156>>2]>o(e,3)>>>0){break a}b=i[i[a+4>>2]+32>>2];m=i[b+16>>2];q=i[b+12>>2];c=i[b+20>>2];if((q|0)<(c|0)?1:(q|0)<=(c|0)?l[b+8>>2]<=m>>>0:0){break a}h=j[m+i[b>>2]|0];m=m+1|0;if(m>>>0<1){c=c+1|0}i[b+16>>2]=m;i[b+20>>2]=c;if(!qe(1,f+52|0,b)){break a}p=i[f+52>>2];if(e>>>0

>>0|e>>>0>p+((p>>>0)/3|0)>>>0){break a}if(!qe(1,f+48|0,i[i[a+4>>2]+32>>2])){break a}r=i[f+48>>2];if(r>>>0>p>>>0){break a}i[a+28>>2]=i[a+24>>2];c=ok(88);Oi(c);b=i[a+8>>2];i[a+8>>2]=c;q=a+8|0;if(b){re(q,b);if(!i[q>>2]){break a}}d=i[a+160>>2];i[a+164>>2]=d;b:{c:{d:{e:{f:{if(i[a+168>>2]-d>>2>>>0>=e>>>0){break f}if(e>>>0>=1073741824){break e}c=e<<2;b=ok(c);i[a+164>>2]=b;i[a+160>>2]=b;i[a+168>>2]=b+c;if(!d){break f}Zk(d)}d=i[a+172>>2];i[a+176>>2]=d;g:{if(i[a+180>>2]-d>>2>>>0>=e>>>0){break g}if(e>>>0>=1073741824){break d}c=e<<2;b=ok(c);i[a+176>>2]=b;i[a+172>>2]=b;i[a+180>>2]=b+c;if(!d){break g}Zk(d)}i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+40>>2]=i[a+36>>2];i[a- -64>>2]=0;i[a+52>>2]=i[a+48>>2];i[a+76>>2]=i[a+72>>2];m=a+216|0;c=i[a+220>>2];d=i[a+216>>2];if((c|0)==(d|0)){break c}while(1){b=i[c+ -12>>2];if(b){i[c+ -8>>2]=b;Zk(b)}b=i[c+ -28>>2];if(b){i[c+ -24>>2]=b;Zk(b)}b=c+ -144|0;n=i[c+ -40>>2];if(n){i[c+ -36>>2]=n;Zk(n)}se(c+ -140|0);c=b;if((d|0)!=(b|0)){continue}break}b=i[m>>2];break b}xa(8944);x()}xa(8944);x()}b=d}i[a+220>>2]=d;c=(d-b|0)/144|0;h:{if(c>>>0>>0){te(m,h-c|0);break h}if(c>>>0<=h>>>0){break h}c=b+o(h,144)|0;if((c|0)!=(d|0)){while(1){b=i[d+ -12>>2];if(b){i[d+ -8>>2]=b;Zk(b)}b=i[d+ -28>>2];if(b){i[d+ -24>>2]=b;Zk(b)}b=d+ -144|0;n=i[d+ -40>>2];if(n){i[d+ -36>>2]=n;Zk(n)}se(d+ -140|0);d=b;if((b|0)!=(c|0)){continue}break}}i[a+220>>2]=c}d=0;if(!Yi(i[a+8>>2],e,r+i[a+156>>2]|0)){break a}b=i[a+156>>2];g[f+8|0]=1;ke(a+120|0,b+r|0,f+8|0);if((ue(a,i[i[a+4>>2]+32>>2])|0)==-1){break a}i[a+376>>2]=a;n=a+232|0;b=i[(K[i[i[a>>2]+32>>2]](a)|0)+32>>2];s=i[b>>2]+i[b+16>>2]|0;e=i[(K[i[i[a>>2]+32>>2]](a)|0)+32>>2];b=i[e+8>>2];c=i[e+16>>2];Tf(n,s,b-c|0,k[i[(K[i[i[a>>2]+32>>2]](a)|0)+32>>2]+38>>1]);t=a,u=K[i[i[a>>2]+36>>2]](a)|0,i[t+380>>2]=u;i[a+372>>2]=h;i[a+384>>2]=r+i[a+156>>2];b=Rf(f+8|0);i:{if(!Ge(n,b)){break i}r=He(a,p);if((r|0)==-1){break i}e=i[i[a+4>>2]+32>>2];c=i[b+16>>2];h=c+i[b>>2]|0;b=i[b+8>>2];Tf(e,h,b-c|0,k[e+38>>1]);j:{if(i[a+220>>2]==i[a+216>>2]){break j}b=i[q>>2];if(i[b+4>>2]==i[b>>2]){break j}b=0;while(1){if(xe(a,b)){b=b+3|0;c=i[q>>2];if(b>>>0>2]-i[c>>2]>>2>>>0){continue}break j}break}break i}if(j[a+308|0]){Wf(a+272|0)}b=i[a+216>>2];if((b|0)!=i[a+220>>2]){c=0;while(1){e=o(c,144);gj((e+b|0)+4|0,i[q>>2]);d=i[m>>2];b=d+e|0;h=i[b+132>>2];p=i[b+136>>2];if((h|0)!=(p|0)){ij(b+4|0,i[h>>2]);b=h+4|0;if((p|0)!=(b|0)){while(1){ij((e+i[m>>2]|0)+4|0,i[b>>2]);b=b+4|0;if((p|0)!=(b|0)){continue}break}}d=i[m>>2]}hj((d+e|0)+4|0);c=c+1|0;b=i[a+216>>2];if(c>>>0<(i[a+220>>2]-b|0)/144>>>0){continue}break}}d=i[a+8>>2];ye(a+184|0,i[d+28>>2]-i[d+24>>2]>>2);c=i[a+216>>2];if((c|0)!=i[a+220>>2]){b=0;while(1){d=o(b,144)+c|0;c=i[d+60>>2]-i[d+56>>2]>>2;h=d+104|0;d=i[a+8>>2];d=i[d+28>>2]-i[d+24>>2]>>2;ye(h,(c|0)<(d|0)?d:c);b=b+1|0;c=i[a+216>>2];if(b>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}d=ze(a,r)}}H=f- -64|0;return d|0}function he(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=H-80|0;H=e;a:{b:{n=i[a+4>>2];c=i[n+32>>2];u=i[c+8>>2];q=i[c+16>>2];t=i[c+12>>2];d=t;h=i[c+20>>2];l=h;c:{if((d|0)<(l|0)?1:(d|0)<=(l|0)?u>>>0<=q>>>0:0){break c}r=i[c>>2];m=j[r+q|0];d=h;p=q+1|0;if(p>>>0<1){d=d+1|0}l=c;i[c+16>>2]=p;i[c+20>>2]=d;if((t|0)<(d|0)?1:(t|0)<=(d|0)?u>>>0<=p>>>0:0){break c}p=j[p+r|0];d=h;v=q+2|0;if(v>>>0<2){d=d+1|0}i[c+16>>2]=v;i[l+20>>2]=d;l=m<<24>>24;d:{if((l|0)>=0){s=i[a+216>>2];if((i[a+220>>2]-s|0)/144>>>0<=m>>>0){break c}s=s+o(m,144)|0;if(i[s>>2]<=-1){break d}break c}if(i[a+212>>2]>-1){break c}s=a+212|0}i[s>>2]=b;e:{f:{s=k[n+36>>1];g:{if((s<<24|s<<8&16711680)>>>16>>>0>=258){if((t|0)<(d|0)?1:(t|0)<=(d|0)?u>>>0<=v>>>0:0){break c}d=j[r+v|0];q=q+3|0;if(q>>>0<3){h=h+1|0}i[c+16>>2]=q;i[c+20>>2]=h;if(d>>>0>1){break c}if(!p){break g}if((d|0)==1){break c}break f}if(p){break f}d=0}if((l|0)<=-1){c=a+184|0}else{c=i[a+216>>2]+o(m,144)|0;g[c+100|0]=0;c=c+104|0}h:{i:{switch(d|0){case 0:ie(e+16|0,a,c);break h;case 1:break i;default:break c}}je(e+16|0,a,c)}c=i[e+16>>2];if(!c){break c}break e}if((l|0)<0){break c}h=i[n+44>>2];f=i[a+216>>2];c=ok(80);i[c+12>>2]=0;i[c+16>>2]=0;i[c>>2]=9812;i[c+4>>2]=0;i[c+76>>2]=0;i[c+68>>2]=h;i[c+64>>2]=0;i[c+56>>2]=0;i[c+60>>2]=0;i[c+8>>2]=8680;d=c+20|0;i[d>>2]=0;i[d+4>>2]=0;q=c+28|0;l=q;i[l>>2]=0;i[l+4>>2]=0;i[c+36>>2]=0;i[c+40>>2]=0;l=c+44|0;i[l>>2]=0;i[l+4>>2]=0;i[c+52>>2]=0;f=f+o(m,144)|0;m=f+104|0;i[c+72>>2]=m;t=e+56|0;n=t;i[n>>2]=0;i[n+4>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;n=e+40|0;i[n>>2]=0;i[n+4>>2]=0;u=e+32|0;r=u;i[r>>2]=0;i[r+4>>2]=0;r=e+24|0;p=r;i[p>>2]=0;i[p+4>>2]=0;i[e+72>>2]=0;i[e+64>>2]=0;i[e+68>>2]=0;i[e+16>>2]=8680;p=f+4|0;i[e+20>>2]=p;f=i[f+68>>2];v=i[f>>2];f=i[f+4>>2];g[e+79|0]=0;ke(n,(f-v>>2>>>0)/3|0,e+79|0);f=i[e+20>>2];n=i[f+56>>2];f=i[f+52>>2];g[e+79|0]=0;ke(e+52|0,n-f>>2,e+79|0);i[e+36>>2]=c;i[u>>2]=h;h=e+28|0;i[h>>2]=m;i[r>>2]=p;i[q>>2]=c;f=i[h+4>>2];i[d>>2]=i[h>>2];i[d+4>>2]=f;h=i[e+24>>2];i[c+12>>2]=i[e+20>>2];i[c+16>>2]=h;h=c;f=i[e+44>>2];if(f){d=c+32|0;j:{if(f>>>0<=i[c+40>>2]<<5>>>0){m=f+ -1>>>5|0;f=i[d>>2];break j}d=i[d>>2];if(d){Zk(d);i[c+40>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;f=i[e+44>>2]}if((f|0)<=-1){break b}m=f+ -1>>>5|0;d=m+1|0;f=ok(d<<2);i[c+40>>2]=d;i[c+36>>2]=0;i[c+32>>2]=f}bl(f,i[e+40>>2],(m<<2)+4|0);d=i[e+44>>2]}else{d=0}i[h+36>>2]=d;h=c;f=i[t>>2];if(f){k:{if(f>>>0<=i[c+52>>2]<<5>>>0){d=f+ -1>>>5|0;f=i[l>>2];break k}d=i[l>>2];if(d){Zk(d);i[c+52>>2]=0;i[c+44>>2]=0;i[c+48>>2]=0;f=i[e+56>>2]}if((f|0)<=-1){break a}d=f+ -1>>>5|0;l=d+1|0;f=ok(l<<2);i[c+52>>2]=l;i[c+48>>2]=0;i[c+44>>2]=f}bl(f,i[e+52>>2],(d<<2)+4|0);l=i[e+56>>2]}else{l=0}i[h+48>>2]=l;Ia(c+56|0,i[e+64>>2],i[e+68>>2]);i[e+16>>2]=8680;h=i[e+64>>2];if(h){i[e+68>>2]=h;Zk(h)}i[e+16>>2]=8932;h=i[e+52>>2];if(h){Zk(h)}h=i[e+40>>2];if(!h){break e}Zk(h)}h=ok(64);i[e+8>>2]=c;jb(h,e+8|0);c=i[e+8>>2];i[e+8>>2]=0;if(c){K[i[i[c>>2]+4>>2]](c)}if((b|0)>=0){a=i[a+4>>2];f=a+8|0;c=i[a+12>>2];m=i[a+8>>2];d=c-m>>2;l:{if((d|0)>(b|0)){break l}l=b+1|0;if(d>>>0<=b>>>0){le(f,l-d|0);break l}if(l>>>0>=d>>>0){break l}l=m+(l<<2)|0;if((l|0)!=(c|0)){while(1){c=c+ -4|0;d=i[c>>2];i[c>>2]=0;if(d){K[i[i[d>>2]+4>>2]](d)}if((c|0)!=(l|0)){continue}break}}i[a+12>>2]=l}b=i[f>>2]+(b<<2)|0;a=i[b>>2];i[b>>2]=h;f=1;if(!a){break c}K[i[i[a>>2]+4>>2]](a);break c}K[i[i[h>>2]+4>>2]](h);f=0}H=e+80|0;return f|0}Dk();x()}Dk();x()}function Fc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=H-96|0;H=f;e=i[a+16>>2];g[f+92|0]=1;i[f+88>>2]=b;i[f+84>>2]=b;i[f+80>>2]=e;d=-1;d=(b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:d;h=i[a+20>>2];e=i[h>>2];a:{b:{if(i[h+4>>2]-e>>2>>>0>d>>>0){e=i[i[a+8>>2]+(i[e+(d<<2)>>2]<<2)>>2];d=i[a+4>>2];if(!j[d+84|0]){e=i[i[d+68>>2]+(e<<2)>>2]}i[f+72>>2]=0;i[f+76>>2]=0;h=f- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;ic(d,e,g[d+24|0],f+56|0);if((b|0)!=-1){d=b+1|0;h=(d>>>0)%3|0?d:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;n=f+48|0;o=f+40|0;while(1){e=h;d=m;c:{if(!i[a+28>>2]){break c}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break c}d=b+2|0}b=-1;b=(e|0)!=-1?i[i[i[a+16>>2]>>2]+(e<<2)>>2]:b;k=i[a+20>>2];e=i[k>>2];if(i[k+4>>2]-e>>2>>>0<=b>>>0){break b}e=i[i[a+8>>2]+(i[e+(b<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}i[n>>2]=0;i[n+4>>2]=0;i[o>>2]=0;i[o+4>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;ic(b,e,g[b+24|0],f+32|0);b=-1;b=(d|0)!=-1?i[i[i[a+16>>2]>>2]+(d<<2)>>2]:b;e=i[a+20>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0<=b>>>0){break a}d=i[i[a+8>>2]+(i[d+(b<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;k=f+16|0;i[k>>2]=0;i[k+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;ic(b,d,g[b+24|0],f+8|0);d=i[f+8>>2];b=i[f+56>>2];s=d-b|0;y=i[f+60>>2];t=i[f+12>>2]-(y+(d>>>0>>0)|0)|0;z=i[f+40>>2];d=i[f+64>>2];D=z-d|0;A=i[f+68>>2];z=i[f+44>>2]-(A+(z>>>0>>0)|0)|0;B=kl(s,t,D,z);C=l-B|0;u=u-(J+(l>>>0>>0)|0)|0;l=i[k>>2];B=l-d|0;k=i[k+4>>2]-((l>>>0>>0)+A|0)|0;l=i[f+32>>2];A=l-b|0;y=i[f+36>>2]-((l>>>0>>0)+y|0)|0;d=kl(B,k,A,y);l=d+C|0;b=J+u|0;b=l>>>0>>0?b+1|0:b;u=b;E=p;w=s;F=t;b=i[f+48>>2];p=i[f+72>>2];d=p;t=b-d|0;s=i[f+76>>2];C=i[f+52>>2]-(s+(b>>>0>>0)|0)|0;w=kl(w,F,t,C);d=E+w|0;b=J+q|0;b=d>>>0>>0?b+1|0:b;q=i[e>>2];w=q-p|0;e=i[e+4>>2]-((q>>>0

>>0)+s|0)|0;q=kl(w,e,A,y);p=d-q|0;q=b-(J+(d>>>0>>0)|0)|0;b=kl(B,k,t,C);d=r-b|0;b=v-(J+(r>>>0>>0)|0)|0;v=kl(w,e,D,z);r=v+d|0;b=J+b|0;b=r>>>0>>0?b+1|0:b;v=b;Gc(f+80|0);b=i[f+88>>2];if((b|0)!=-1){continue}break}}d=v;b=d>>31;d=d>>31;h=b;b=v+b|0;m=d+r|0;if(m>>>0>>0){b=b+1|0}o=d^m;n=b^h;t=-1;e=2147483647;d=q;b=d>>31;d=d>>31;m=b;b=q+b|0;k=d+p|0;if(k>>>0>>0){b=b+1|0}d=d^k;b=b^m;h=b;m=d^-1;b=b^2147483647;d:{if(!i[a+28>>2]){if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break d}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}d=b;h=a;b=u;e=b>>31;o=b>>31;b=o+b|0;k=e+l|0;if(k>>>0>>0){b=b+1|0}e=e^k;m=b^o;n=e+h|0;b=n;h=m^2147483647;a=(h|0)==(d|0)&a>>>0>(e^-1)>>>0|d>>>0>h>>>0;d=a?0:0;b=a?-1:b;a=b;if((b|0)<536870912?1:(b|0)<=536870912?d>>>0<1:0){break d}b=(a|0)/536870912|0;a=b;b=b>>31;l=ll(l,u,a,b);p=ll(p,q,a,b);r=ll(r,v,a,b);break d}e:{if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break e}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}m=b;n=a;d=b;h=u;b=h>>31;h=h>>31;k=b;b=u+b|0;s=h+l|0;if(s>>>0>>0){b=b+1|0}h=h^s;b=b^k;o=b;b=b^2147483647;if((b|0)==(d|0)&n>>>0>(h^-1)>>>0|d>>>0>b>>>0){break e}b=m+o|0;d=a+h|0;if(d>>>0>>0){b=b+1|0}t=d;e=b;if(!b&d>>>0<536870913|b>>>0<0){break d}}a=(e&536870911)<<3|t>>>29;b=e>>>29|0;l=ll(l,u,a,b);p=ll(p,q,a,b);r=ll(r,v,a,b)}i[c+8>>2]=l;i[c+4>>2]=p;i[c>>2]=r;H=f+96|0;return}Ek();x()}Ek();x()}Ek();x()}function qc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=H-96|0;H=f;d=i[a+16>>2];g[f+92|0]=1;i[f+88>>2]=b;i[f+84>>2]=b;i[f+80>>2]=d;h=i[a+20>>2];e=i[h>>2];a:{b:{d=i[i[d+28>>2]+(b<<2)>>2];if(i[h+4>>2]-e>>2>>>0>d>>>0){d=i[i[a+8>>2]+(i[e+(d<<2)>>2]<<2)>>2];e=i[a+4>>2];if(!j[e+84|0]){d=i[i[e+68>>2]+(d<<2)>>2]}i[f+72>>2]=0;i[f+76>>2]=0;h=f- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;ic(e,d,g[e+24|0],f+56|0);if((b|0)!=-1){d=b+1|0;h=(d>>>0)%3|0?d:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;n=f+48|0;o=f+40|0;while(1){e=h;d=m;c:{if(!i[a+28>>2]){break c}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break c}d=b+2|0}k=i[a+20>>2];b=i[k>>2];e=i[i[i[a+16>>2]+28>>2]+(e<<2)>>2];if(i[k+4>>2]-b>>2>>>0<=e>>>0){break b}e=i[i[a+8>>2]+(i[b+(e<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}i[n>>2]=0;i[n+4>>2]=0;i[o>>2]=0;i[o+4>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;ic(b,e,g[b+24|0],f+32|0);e=i[a+20>>2];b=i[e>>2];d=i[i[i[a+16>>2]+28>>2]+(d<<2)>>2];if(i[e+4>>2]-b>>2>>>0<=d>>>0){break a}e=i[i[a+8>>2]+(i[b+(d<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}k=f+24|0;d=k;i[d>>2]=0;i[d+4>>2]=0;r=f+16|0;d=r;i[d>>2]=0;i[d+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;ic(b,e,g[b+24|0],f+8|0);d=i[f+8>>2];b=i[f+56>>2];t=d-b|0;y=i[f+60>>2];e=i[f+12>>2]-(y+(d>>>0>>0)|0)|0;z=i[f+40>>2];d=i[f+64>>2];D=z-d|0;A=i[f+68>>2];z=i[f+44>>2]-(A+(z>>>0>>0)|0)|0;B=kl(t,e,D,z);C=l-B|0;u=u-(J+(l>>>0>>0)|0)|0;l=i[r>>2];B=l-d|0;r=i[r+4>>2]-((l>>>0>>0)+A|0)|0;l=i[f+32>>2];A=l-b|0;y=i[f+36>>2]-((l>>>0>>0)+y|0)|0;d=kl(B,r,A,y);l=d+C|0;b=J+u|0;b=l>>>0>>0?b+1|0:b;u=b;E=p;w=t;F=e;b=i[f+48>>2];p=i[f+72>>2];d=p;e=b-d|0;t=i[f+76>>2];C=i[f+52>>2]-(t+(b>>>0>>0)|0)|0;w=kl(w,F,e,C);d=E+w|0;b=J+q|0;b=d>>>0>>0?b+1|0:b;q=i[k>>2];w=q-p|0;k=i[k+4>>2]-((q>>>0

>>0)+t|0)|0;q=kl(w,k,A,y);p=d-q|0;q=b-(J+(d>>>0>>0)|0)|0;b=kl(B,r,e,C);d=s-b|0;b=v-(J+(s>>>0>>0)|0)|0;v=kl(w,k,D,z);s=v+d|0;b=J+b|0;b=s>>>0>>0?b+1|0:b;v=b;sc(f+80|0);b=i[f+88>>2];if((b|0)!=-1){continue}break}}d=v;b=d>>31;d=d>>31;h=b;b=v+b|0;m=d+s|0;if(m>>>0>>0){b=b+1|0}o=d^m;n=b^h;r=-1;e=2147483647;d=q;b=d>>31;d=d>>31;m=b;b=q+b|0;k=d+p|0;if(k>>>0>>0){b=b+1|0}d=d^k;b=b^m;h=b;m=d^-1;b=b^2147483647;d:{if(!i[a+28>>2]){if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break d}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}d=b;h=a;b=u;e=b>>31;o=b>>31;b=o+b|0;k=e+l|0;if(k>>>0>>0){b=b+1|0}e=e^k;m=b^o;n=e+h|0;b=n;h=m^2147483647;a=(h|0)==(d|0)&a>>>0>(e^-1)>>>0|d>>>0>h>>>0;d=a?0:0;b=a?-1:b;a=b;if((b|0)<536870912?1:(b|0)<=536870912?d>>>0<1:0){break d}b=(a|0)/536870912|0;a=b;b=b>>31;l=ll(l,u,a,b);p=ll(p,q,a,b);s=ll(s,v,a,b);break d}e:{if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break e}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}m=b;n=a;d=b;h=u;b=h>>31;h=h>>31;k=b;b=u+b|0;t=h+l|0;if(t>>>0>>0){b=b+1|0}h=h^t;b=b^k;o=b;b=b^2147483647;if((b|0)==(d|0)&n>>>0>(h^-1)>>>0|d>>>0>b>>>0){break e}b=m+o|0;d=a+h|0;if(d>>>0>>0){b=b+1|0}r=d;e=b;if(!b&d>>>0<536870913|b>>>0<0){break d}}a=(e&536870911)<<3|r>>>29;b=e>>>29|0;l=ll(l,u,a,b);p=ll(p,q,a,b);s=ll(s,v,a,b)}i[c+8>>2]=l;i[c+4>>2]=p;i[c>>2]=s;H=f+96|0;return}Ek();x()}Ek();x()}Ek();x()}function Zk(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;a:{if(!a){break a}d=a+ -8|0;b=i[a+ -4>>2];a=b&-8;f=d+a|0;b:{if(b&1){break b}if(!(b&3)){break a}b=i[d>>2];d=d-b|0;if(d>>>0>>0<=255){e=i[d+8>>2];b=b>>>3|0;c=i[d+12>>2];if((c|0)==(e|0)){j=12632,k=i[3158]&ol(b),i[j>>2]=k;break b}i[e+12>>2]=c;i[c+8>>2]=e;break b}h=i[d+24>>2];b=i[d+12>>2];c:{if((b|0)!=(d|0)){c=i[d+8>>2];i[c+12>>2]=b;i[b+8>>2]=c;break c}d:{e=d+20|0;c=i[e>>2];if(c){break d}e=d+16|0;c=i[e>>2];if(c){break d}b=0;break c}while(1){g=e;b=c;e=b+20|0;c=i[e>>2];if(c){continue}e=b+16|0;c=i[b+16>>2];if(c){continue}break}i[g>>2]=0}if(!h){break b}e=i[d+28>>2];c=(e<<2)+12936|0;e:{if(i[c>>2]==(d|0)){i[c>>2]=b;if(b){break e}j=12636,k=i[3159]&ol(e),i[j>>2]=k;break b}i[h+(i[h+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break b}}i[b+24>>2]=h;c=i[d+16>>2];if(c){i[b+16>>2]=c;i[c+24>>2]=b}c=i[d+20>>2];if(!c){break b}i[b+20>>2]=c;i[c+24>>2]=b;break b}b=i[f+4>>2];if((b&3)!=3){break b}i[3160]=a;i[f+4>>2]=b&-2;i[d+4>>2]=a|1;i[a+d>>2]=a;return}if(f>>>0<=d>>>0){break a}b=i[f+4>>2];if(!(b&1)){break a}f:{if(!(b&2)){if((f|0)==i[3164]){i[3164]=d;a=i[3161]+a|0;i[3161]=a;i[d+4>>2]=a|1;if(i[3163]!=(d|0)){break a}i[3160]=0;i[3163]=0;return}if((f|0)==i[3163]){i[3163]=d;a=i[3160]+a|0;i[3160]=a;i[d+4>>2]=a|1;i[a+d>>2]=a;return}a=(b&-8)+a|0;g:{if(b>>>0<=255){c=i[f+8>>2];b=b>>>3|0;e=i[f+12>>2];if((c|0)==(e|0)){j=12632,k=i[3158]&ol(b),i[j>>2]=k;break g}i[c+12>>2]=e;i[e+8>>2]=c;break g}h=i[f+24>>2];b=i[f+12>>2];h:{if((f|0)!=(b|0)){c=i[f+8>>2];i[c+12>>2]=b;i[b+8>>2]=c;break h}i:{e=f+20|0;c=i[e>>2];if(c){break i}e=f+16|0;c=i[e>>2];if(c){break i}b=0;break h}while(1){g=e;b=c;e=b+20|0;c=i[e>>2];if(c){continue}e=b+16|0;c=i[b+16>>2];if(c){continue}break}i[g>>2]=0}if(!h){break g}e=i[f+28>>2];c=(e<<2)+12936|0;j:{if((f|0)==i[c>>2]){i[c>>2]=b;if(b){break j}j=12636,k=i[3159]&ol(e),i[j>>2]=k;break g}i[h+((f|0)==i[h+16>>2]?16:20)>>2]=b;if(!b){break g}}i[b+24>>2]=h;c=i[f+16>>2];if(c){i[b+16>>2]=c;i[c+24>>2]=b}c=i[f+20>>2];if(!c){break g}i[b+20>>2]=c;i[c+24>>2]=b}i[d+4>>2]=a|1;i[a+d>>2]=a;if(i[3163]!=(d|0)){break f}i[3160]=a;return}i[f+4>>2]=b&-2;i[d+4>>2]=a|1;i[a+d>>2]=a}if(a>>>0<=255){a=a>>>3|0;b=(a<<3)+12672|0;c=i[3158];a=1<>2]}i[b+8>>2]=d;i[a+12>>2]=d;i[d+12>>2]=b;i[d+8>>2]=a;return}e=31;i[d+16>>2]=0;i[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}i[d+28>>2]=e;g=(e<<2)+12936|0;l:{m:{c=i[3159];b=1<>2]=d;i[d+24>>2]=g;break n}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=i[g>>2];while(1){c=b;if((i[b+4>>2]&-8)==(a|0)){break m}b=e>>>29|0;e=e<<1;g=(c+(b&4)|0)+16|0;b=i[g>>2];if(b){continue}break}i[g>>2]=d;i[d+24>>2]=c}i[d+12>>2]=d;i[d+8>>2]=d;break l}a=i[c+8>>2];i[a+12>>2]=d;i[c+8>>2]=d;i[d+24>>2]=0;i[d+12>>2]=c;i[d+8>>2]=a}a=i[3166]+ -1|0;i[3166]=a;if(a){break a}d=13088;while(1){a=i[d>>2];d=a+8|0;if(a){continue}break}i[3166]=-1}}function hj(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;i[a+56>>2]=i[a+52>>2];i[a+44>>2]=i[a+40>>2];a:{b:{c:{d=i[a+64>>2];if(i[d+28>>2]!=i[d+24>>2]){n=a+40|0;o=a+52|0;while(1){e=c;k=i[i[d+24>>2]+(m<<2)>>2];d:{if((k|0)==-1){break d}c=i[a+56>>2];b=i[a+60>>2];e:{if((c|0)!=(b|0)){i[c>>2]=e;i[a+56>>2]=c+4;break e}h=i[o>>2];j=c-h|0;f=j>>2;g=f+1|0;if(g>>>0>=1073741824){break c}d=b-h|0;b=d>>1;d=d>>2>>>0<536870911?b>>>0>>0?g:b:1073741823;c=0;f:{if(!d){break f}if(d>>>0>=1073741824){break a}c=ok(d<<2)}b=c+(f<<2)|0;i[b>>2]=e;d=c+(d<<2)|0;b=b+4|0;if((j|0)>=1){$k(c,h,j)}i[a+60>>2]=d;i[a+56>>2]=b;i[a+52>>2]=c;if(!h){break e}Zk(h)}g:{if(!(i[i[a+12>>2]+(m>>>3&536870908)>>2]>>>(m&31)&1)){break g}c=k+1|0;c=(c>>>0)%3|0?c:k+ -2|0;if((c|0)==-1|i[i[a>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break g}b=i[i[i[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)==-1){break g}while(1){c=d+1|0;k=d;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|i[i[a>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break g}b=i[i[i[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)!=-1){continue}break}}i[i[a+28>>2]+(k<<2)>>2]=e;c=i[a+44>>2];b=i[a+48>>2];h:{if((c|0)!=(b|0)){i[c>>2]=k;i[a+44>>2]=c+4;break h}h=i[n>>2];j=c-h|0;f=j>>2;g=f+1|0;if(g>>>0>=1073741824){break b}d=b-h|0;b=d>>1;d=d>>2>>>0<536870911?b>>>0>>0?g:b:1073741823;c=0;i:{if(!d){break i}if(d>>>0>=1073741824){break a}c=ok(d<<2)}b=c+(f<<2)|0;i[b>>2]=k;d=c+(d<<2)|0;b=b+4|0;if((j|0)>=1){$k(c,h,j)}i[a+48>>2]=d;i[a+44>>2]=b;i[a+40>>2]=c;if(!h){break h}Zk(h)}c=e+1|0;b=((k>>>0)%3|0?-1:2)+k|0;if((b|0)==-1){break d}b=i[i[i[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1|(d|0)==(k|0)){break d}while(1){b=d+1|0;b=(b>>>0)%3|0?b:d+ -2|0;if(i[i[a>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){e=i[a+56>>2];b=i[a+60>>2];j:{if((e|0)!=(b|0)){i[e>>2]=c;i[a+56>>2]=e+4;break j}l=i[o>>2];h=e-l|0;g=h>>2;j=g+1|0;if(j>>>0>=1073741824){break c}f=b-l|0;b=f>>1;f=f>>2>>>0<536870911?b>>>0>>0?j:b:1073741823;e=0;k:{if(!f){break k}if(f>>>0>=1073741824){break a}e=ok(f<<2)}b=e+(g<<2)|0;i[b>>2]=c;f=e+(f<<2)|0;b=b+4|0;if((h|0)>=1){$k(e,l,h)}i[a+60>>2]=f;i[a+56>>2]=b;i[a+52>>2]=e;if(!l){break j}Zk(l)}b=c+1|0;e=i[a+44>>2];f=i[a+48>>2];l:{if((e|0)!=(f|0)){i[e>>2]=d;i[a+44>>2]=e+4;break l}j=i[n>>2];l=e-j|0;e=l>>2;h=e+1|0;if(h>>>0>=1073741824){break b}p=e<<2;g=f-j|0;f=g>>1;g=g>>2>>>0<536870911?f>>>0>>0?h:f:1073741823;e=0;m:{if(!g){break m}if(g>>>0>=1073741824){break a}e=ok(g<<2)}f=p+e|0;i[f>>2]=d;g=e+(g<<2)|0;f=f+4|0;if((l|0)>=1){$k(e,j,l)}i[a+48>>2]=g;i[a+44>>2]=f;i[a+40>>2]=e;if(!j){break l}Zk(j)}e=c;c=b}i[i[a+28>>2]+(d<<2)>>2]=e;b=((d>>>0)%3|0?-1:2)+d|0;if((b|0)==-1){break d}b=i[i[i[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1){break d}if((d|0)!=(k|0)){continue}break}}m=m+1|0;d=i[a+64>>2];if(m>>>0>2]-i[d+24>>2]>>2>>>0){continue}break}}return}Dk();x()}Dk();x()}xa(11024);x()}function qf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(i[i[a+24>>2]+(d>>>3&268435452)>>2]>>>(d&31)&1)){c=i[a+48>>2];i[a+52>>2]=c;a:{if((c|0)!=i[a+56>>2]){i[c>>2]=b;i[a+52>>2]=c+4;break a}e=ok(4);i[e>>2]=b;f=e+4|0;i[a+56>>2]=f;i[a+52>>2]=f;i[a+48>>2]=e;if(!c){break a}Zk(c)}f=i[i[a+4>>2]+28>>2];c=b+1|0;e=(c>>>0)%3|0?c:b+ -2|0;c=i[f+(e<<2)>>2];if((c|0)==-1){return 0}h=(b-o(d,3)|0?-1:2)+b|0;d=i[f+(h<<2)>>2];if((d|0)==-1){return 0}b=i[a+36>>2];f=b+(c>>>3&536870908)|0;g=i[f>>2];j=1<<(c&31);if(!(g&j)){i[f>>2]=g|j;$e(a+8|0,c,e);b=i[a+36>>2]}b=(d>>>3&536870908)+b|0;c=i[b>>2];e=1<<(d&31);if(!(c&e)){i[b>>2]=c|e;$e(a+8|0,d,h)}c=i[a+52>>2];if((c|0)==i[a+48>>2]){return 1}l=a+48|0;m=a+8|0;while(1){c=c+ -4|0;b=i[c>>2];d=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}e=i[a+24>>2]+(d>>>3&268435452)|0;f=i[e>>2];d=1<<(d&31);if(f&d){break c}i[e>>2]=d|f;e=i[a+4>>2];c=i[i[e+28>>2]+(b<<2)>>2];if((c|0)==-1){return 0}while(1){d=b;d:{b=i[a+36>>2]+(c>>>3&536870908)|0;f=i[b>>2];h=1<<(c&31);e:{if(f&h){break e}g=i[i[e+40>>2]+(c<<2)>>2];if((g|0)!=-1){f:{j=g+1|0;g=(j>>>0)%3|0?j:g+ -2|0;if((g|0)==-1|i[i[e>>2]+(g>>>3&536870908)>>2]>>>(g&31)&1){break f}e=i[i[i[e+64>>2]+12>>2]+(g<<2)>>2];if((e|0)==-1){break f}i[b>>2]=f|h;$e(m,c,d);b=e+1|0;if((((b>>>0)%3|0?b:e+ -2|0)|0)==-1){break e}b=-1;e=i[a+4>>2];g:{if((d|0)==-1){break g}c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|i[i[e>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break g}b=i[i[i[e+64>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;g=1<<(c&31);d=i[a+24>>2];j=c>>>5|0;f=i[d+(j<<2)>>2];break d}}i[b>>2]=f|h;$e(m,c,d)}h:{i:{if((d|0)==-1){break i}e=i[a+4>>2];b=-1;f=d+1|0;f=(f>>>0)%3|0?f:d+ -2|0;c=-1;j:{if((f|0)==-1){break j}c=-1;if(i[i[e>>2]+(f>>>3&536870908)>>2]>>>(f&31)&1){break j}c=i[i[i[e+64>>2]+12>>2]+(f<<2)>>2]}d=d+((d>>>0)%3|0?-1:2)|0;if(!((d|0)==-1|i[i[e>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1)){b=i[i[i[e+64>>2]+12>>2]+(d<<2)>>2]}k=(b|0)==-1;h=k?-1:(b>>>0)/3|0;f=(c>>>0)/3|0;g=(c|0)==-1;if(!g){d=i[a+24>>2];g=g?-1:f;j=g>>>5|0;f=i[d+(j<<2)>>2];g=1<<(g&31);if(!(f&g)){break h}}if(k){break i}g=1<<(h&31);d=i[a+24>>2];j=h>>>5|0;f=i[d+(j<<2)>>2];if(!(g&f)){break d}}c=i[a+52>>2]+ -4|0;i[a+52>>2]=c;break b}if(k){b=c;break d}if(i[(h>>>3&536870908)+d>>2]>>>(h&31)&1){b=c;break d}d=i[a+52>>2];i[d+ -4>>2]=b;h=i[a+56>>2];if((h|0)!=(d|0)){i[d>>2]=c;c=d+4|0;break c}k:{b=d;d=i[l>>2];f=b-d|0;g=f>>2;e=g+1|0;if(e>>>0<1073741824){h=h-d|0;j=h>>1;e=h>>2>>>0<536870911?j>>>0>>0?e:j:1073741823;b=0;l:{if(!e){break l}if(e>>>0>=1073741824){break k}b=ok(e<<2)}h=b+(g<<2)|0;i[h>>2]=c;e=b+(e<<2)|0;c=h+4|0;if((f|0)>=1){$k(b,d,f)}i[a+56>>2]=e;i[a+52>>2]=c;i[a+48>>2]=b;if(!d){break b}Zk(d);c=i[a+52>>2];break b}Dk();x()}xa(8944);x()}i[(j<<2)+d>>2]=f|g;c=i[i[e+28>>2]+(b<<2)>>2];if((c|0)!=-1){continue}break}return 0}i[a+52>>2]=c}if(i[l>>2]!=(c|0)){continue}break}}return 1}function Si(a,b){var c=0,d=0,e=0,f=0,g=0,h=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,v=0,w=0,y=0;d=H-48|0;H=d;a:{if(!b){break a}s=a+12|0;k=i[a+4>>2];l=i[a>>2];j=k-l|0;e=j>>2;g=i[a+12>>2];c=i[a+16>>2]-g>>2;b:{if(e>>>0>c>>>0){Vi(s,e-c|0);k=i[a+4>>2];l=i[a>>2];j=k-l|0;e=j>>2;break b}if(e>>>0>=c>>>0){break b}i[a+16>>2]=g+(e<<2)}i[d+40>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;c:{d:{e:{if(!e){c=0;g=0;break e}if(e>>>0>=1073741824){break d}c=ok(j);i[d+36>>2]=c;i[d+32>>2]=c;i[d+40>>2]=(e<<2)+c;h=c;g=c}if(!j){break c}f=g;j=0;while(1){e=i[(j<<2)+l>>2];h=h-f>>2;if(e>>>0>=h>>>0){i[d+16>>2]=0;c=e+1|0;f:{if(c>>>0>h>>>0){Pa(d+32|0,c-h|0,d+16|0);l=i[a>>2];k=i[a+4>>2];break f}if(c>>>0>=h>>>0){break f}i[d+36>>2]=(c<<2)+f}c=i[d+32>>2];g=c}f=(e<<2)+c|0;i[f>>2]=i[f>>2]+1;j=j+1|0;f=k-l|0;e=f>>2;if(j>>>0>=e>>>0){break c}h=i[d+36>>2];f=c;continue}}xa(10832);x()}i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;g:{h:{if(f){if(e>>>0>=536870912){break h}c=ok(f<<1);i[d+16>>2]=c;i[d+20>>2]=c;g=(e<<3)+c|0;i[d+24>>2]=g;while(1){i[c>>2]=-1;i[c+4>>2]=-1;c=c+8|0;if((g|0)!=(c|0)){continue}break}i[d+20>>2]=g;c=i[d+32>>2];g=c}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;g=i[d+36>>2]-g|0;l=g>>2;i:{if(g){if(l>>>0>=1073741824){break i}m=ok(g);i[d>>2]=m;g=l<<2;f=g+m|0;i[d+8>>2]=f;j=0;g=al(m,0,g);i[d+4>>2]=f;f=l>>>0>1?l:1;e=0;while(1){h=e<<2;i[h+g>>2]=j;j=i[c+h>>2]+j|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}}k=i[a>>2];c=i[a+4>>2];if((k|0)==(c|0)){break g}y=c-k>>2;g=0;o=i[d+16>>2];t=i[d+32>>2];while(1){u=g<<2;c=u+k|0;q=i[c>>2];h=-1;j=g+1|0;f=(j>>>0)%3|0?j:g+ -2|0;if((f|0)!=-1){h=i[(f<<2)+k>>2]}p=-1;f=(g>>>0)%3|0;e=(f?-1:2)+g|0;if((e|0)!=-1){p=i[(e<<2)+k>>2]}j:{k:{if(f){break k}l:{if((h|0)==(p|0)){break l}c=i[c>>2];if((c|0)==(h|0)){break l}if((c|0)!=(p|0)){break k}}i[a+40>>2]=i[a+40>>2]+1;g=g+3|0;break j}c=p<<2;r=i[c+t>>2];m:{n:{if((r|0)<1){break n}c=i[c+m>>2];e=0;while(1){f=o+(c<<3)|0;n=i[f>>2];if((n|0)==-1){break n}o:{if((h|0)!=(n|0)){break o}n=i[f+4>>2];if((n|0)!=-1){f=i[(n<<2)+k>>2]}else{f=-1}if((f|0)==(q|0)){break o}while(1){p:{f=c;e=e+1|0;if((e|0)>=(r|0)){break p}q=o+(f<<3)|0;c=f+1|0;v=o+(c<<3)|0;w=i[v>>2];i[q>>2]=w;i[q+4>>2]=i[v+4>>2];if((w|0)!=-1){continue}}break}i[o+(f<<3)>>2]=-1;if((n|0)==-1){break n}c=i[s>>2];i[c+u>>2]=n;i[c+(n<<2)>>2]=g;break m}c=c+1|0;e=e+1|0;if((r|0)!=(e|0)){continue}break}}c=h<<2;h=i[c+t>>2];if((h|0)<1){break m}c=i[c+m>>2];e=0;while(1){f=o+(c<<3)|0;if(i[f>>2]==-1){i[f>>2]=p;i[f+4>>2]=g;break m}c=c+1|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}}g=j}if(g>>>0>>0){continue}break}break g}Dk();x()}Dk();x()}i[b>>2]=l;if(m){i[d+4>>2]=m;Zk(m)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Zk(a)}a=i[d+32>>2];if(!a){break a}i[d+36>>2]=a;Zk(a)}H=d+48|0;return(b|0)!=0}function uc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){Na(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}s=i[a+52>>2];q=i[a+48>>2];d=0;f=(e&1073741823)!=(e|0)?-1:e<<2;p=al(ok(f),0,f);f=i[a+8>>2];b:{if((f|0)<1){break b}while(1){f=d<<2;g=i[f+p>>2];k=i[a+16>>2];c:{if((g|0)>(k|0)){h=i[a+32>>2];i[f+h>>2]=k;break c}h=i[a+32>>2];f=f+h|0;k=i[a+12>>2];if((g|0)<(k|0)){i[f>>2]=k;break c}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}if((f|0)<1){break b}g=0;while(1){f=g<<2;d=f+c|0;f=i[b+f>>2]+i[f+h>>2]|0;i[d>>2]=f;d:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break d}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}d=i[a+56>>2];r=i[d>>2];d=i[d+4>>2]-r|0;if((d|0)>=5){d=d>>2;t=(d|0)>2?d:2;u=d>>>0>1?d:1;k=1;while(1){e:{f:{if((k|0)!=(u|0)){n=o(e,k);d=i[(k<<2)+r>>2];if((d|0)==-1){break f}d=i[i[q+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}g=-1;j=i[s>>2];h=i[q>>2];l=i[j+(i[h+(d<<2)>>2]<<2)>>2];m=d+1|0;m=(m>>>0)%3|0?m:d+ -2|0;if((m|0)!=-1){m=i[h+(m<<2)>>2]}else{m=-1}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)!=-1){g=i[h+(d<<2)>>2]}if((l|0)>=(k|0)){break f}d=i[(m<<2)+j>>2];if((d|0)>=(k|0)){break f}g=i[j+(g<<2)>>2];if((g|0)>=(k|0)){break f}if((e|0)>=1){g=o(e,g);h=o(d,e);j=o(e,l);d=0;while(1){i[(d<<2)+p>>2]=(i[(d+g<<2)+c>>2]+i[(d+h<<2)+c>>2]|0)-i[(d+j<<2)+c>>2];d=d+1|0;if((e|0)!=(d|0)){continue}break}}if((f|0)<1){break e}d=0;while(1){f=d<<2;g=i[f+p>>2];j=i[a+16>>2];g:{if((g|0)>(j|0)){h=i[a+32>>2];i[f+h>>2]=j;break g}h=i[a+32>>2];f=f+h|0;j=i[a+12>>2];if((g|0)<(j|0)){i[f>>2]=j;break g}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=n<<2;n=d+c|0;j=b+d|0;while(1){f=g<<2;d=f+n|0;f=i[f+j>>2]+i[f+h>>2]|0;i[d>>2]=f;h:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break h}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}break e}Ek();x()}if((f|0)<1){break e}j=(o(k+ -1|0,e)<<2)+c|0;d=0;while(1){f=d<<2;g=i[f+j>>2];l=i[a+16>>2];i:{if((g|0)>(l|0)){h=i[a+32>>2];i[f+h>>2]=l;break i}h=i[a+32>>2];f=f+h|0;l=i[a+12>>2];if((g|0)<(l|0)){i[f>>2]=l;break i}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=n<<2;n=d+c|0;j=b+d|0;while(1){f=g<<2;d=f+n|0;f=i[f+j>>2]+i[f+h>>2]|0;i[d>>2]=f;j:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break j}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}k=k+1|0;if((t|0)!=(k|0)){continue}break}}Zk(p);return 1}function Rb(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;i[a+8>>2]=e;f=a+32|0;g=i[f>>2];d=i[a+36>>2]-g>>2;a:{if(d>>>0>>0){Na(f,e-d|0);break a}if(d>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}r=i[a+52>>2];p=i[a+48>>2];d=0;f=(e&1073741823)!=(e|0)?-1:e<<2;n=al(ok(f),0,f);f=i[a+8>>2];b:{if((f|0)<1){break b}while(1){f=d<<2;g=i[f+n>>2];j=i[a+16>>2];c:{if((g|0)>(j|0)){h=i[a+32>>2];i[f+h>>2]=j;break c}h=i[a+32>>2];f=f+h|0;j=i[a+12>>2];if((g|0)<(j|0)){i[f>>2]=j;break c}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}if((f|0)<1){break b}g=0;while(1){f=g<<2;d=f+c|0;f=i[b+f>>2]+i[f+h>>2]|0;i[d>>2]=f;d:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break d}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}d=i[a+56>>2];q=i[d>>2];d=i[d+4>>2]-q|0;if((d|0)>=5){d=d>>2;s=(d|0)>2?d:2;t=d>>>0>1?d:1;j=1;while(1){e:{f:{if((j|0)!=(t|0)){m=o(e,j);d=i[(j<<2)+q>>2];if((d|0)==-1|i[i[p>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1){break f}d=i[i[i[p+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}h=i[r>>2];g=i[p+28>>2];k=i[h+(i[g+(d<<2)>>2]<<2)>>2];if((k|0)>=(j|0)){break f}l=d+1|0;l=i[h+(i[g+(((l>>>0)%3|0?l:d+ -2|0)<<2)>>2]<<2)>>2];if((l|0)>=(j|0)){break f}d=i[h+(i[g+(d+((d>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((d|0)>=(j|0)){break f}if((e|0)>=1){g=o(d,e);h=o(e,l);k=o(e,k);d=0;while(1){i[(d<<2)+n>>2]=(i[(d+g<<2)+c>>2]+i[(d+h<<2)+c>>2]|0)-i[(d+k<<2)+c>>2];d=d+1|0;if((e|0)!=(d|0)){continue}break}}if((f|0)<1){break e}d=0;while(1){f=d<<2;g=i[f+n>>2];k=i[a+16>>2];g:{if((g|0)>(k|0)){h=i[a+32>>2];i[f+h>>2]=k;break g}h=i[a+32>>2];f=f+h|0;k=i[a+12>>2];if((g|0)<(k|0)){i[f>>2]=k;break g}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=m<<2;m=d+c|0;k=b+d|0;while(1){f=g<<2;d=f+m|0;f=i[f+k>>2]+i[f+h>>2]|0;i[d>>2]=f;h:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break h}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}break e}Ek();x()}if((f|0)<1){break e}k=(o(j+ -1|0,e)<<2)+c|0;d=0;while(1){f=d<<2;g=i[f+k>>2];l=i[a+16>>2];i:{if((g|0)>(l|0)){h=i[a+32>>2];i[f+h>>2]=l;break i}h=i[a+32>>2];f=f+h|0;l=i[a+12>>2];if((g|0)<(l|0)){i[f>>2]=l;break i}i[f>>2]=g}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}g=0;if((f|0)<1){break e}d=m<<2;m=d+c|0;k=b+d|0;while(1){f=g<<2;d=f+m|0;f=i[f+k>>2]+i[f+h>>2]|0;i[d>>2]=f;j:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break j}f=f+i[a+20>>2]|0}i[d>>2]=f}g=g+1|0;f=i[a+8>>2];if((g|0)<(f|0)){continue}break}}j=j+1|0;if((s|0)!=(j|0)){continue}break}}Zk(n);return 1}function kf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(i[i[a+24>>2]+(d>>>3&268435452)>>2]>>>(d&31)&1)){c=i[a+48>>2];i[a+52>>2]=c;a:{if((c|0)!=i[a+56>>2]){i[c>>2]=b;i[a+52>>2]=c+4;break a}e=ok(4);i[e>>2]=b;f=e+4|0;i[a+56>>2]=f;i[a+52>>2]=f;i[a+48>>2]=e;if(!c){break a}Zk(c)}e=i[a+4>>2];c=-1;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)!=-1){c=i[i[e>>2]+(f<<2)>>2]}g=(b-o(d,3)|0?-1:2)+b|0;if((g|0)==-1){return 0}if((c|0)==-1){return 0}d=i[i[e>>2]+(g<<2)>>2];if((d|0)==-1){return 0}b=i[a+36>>2];e=b+(c>>>3&536870908)|0;h=i[e>>2];j=1<<(c&31);if(!(h&j)){i[e>>2]=h|j;$e(a+8|0,c,f);b=i[a+36>>2]}b=(d>>>3&536870908)+b|0;c=i[b>>2];e=1<<(d&31);if(!(c&e)){i[b>>2]=c|e;$e(a+8|0,d,g)}d=i[a+52>>2];if((d|0)==i[a+48>>2]){return 1}k=a+48|0;l=a+8|0;while(1){d=d+ -4|0;b=i[d>>2];c=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}e=i[a+24>>2]+(c>>>3&268435452)|0;f=i[e>>2];c=1<<(c&31);if(f&c){break c}i[e>>2]=c|f;while(1){g=i[a+4>>2];c=i[i[g>>2]+(b<<2)>>2];if((c|0)==-1){return 0}d:{d=i[a+36>>2]+(c>>>3&536870908)|0;e=i[d>>2];f=1<<(c&31);e:{if(e&f){break e}h=i[i[g+24>>2]+(c<<2)>>2];if((h|0)!=-1){j=h+1|0;h=(j>>>0)%3|0?j:h+ -2|0;if((h|0)!=-1){g=i[i[g+12>>2]+(h<<2)>>2];if((g|0)!=-1){i[d>>2]=e|f;$e(l,c,b);c=g+1|0;if((((c>>>0)%3|0?c:g+ -2|0)|0)==-1){break e}d=b+ -2|0;c=b+1|0;b=-1;c=(c>>>0)%3|0?c:d;if((c|0)!=-1){b=i[i[i[a+4>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;h=1<<(c&31);e=i[a+24>>2];j=c>>>5|0;f=i[e+(j<<2)>>2];break d}}}i[d>>2]=e|f;$e(l,c,b)}d=-1;e=i[a+4>>2];c=-1;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)!=-1){c=i[i[e+12>>2]+(f<<2)>>2]}b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)!=-1){d=i[i[e+12>>2]+(b<<2)>>2]}b=(d|0)==-1;g=b?-1:(d>>>0)/3|0;f=(c>>>0)/3|0;f:{h=(c|0)==-1;if(!h){e=i[a+24>>2];h=h?-1:f;j=h>>>5|0;f=i[e+(j<<2)>>2];h=1<<(h&31);if(!(f&h)){break f}}if(!b){b=d;h=1<<(g&31);e=i[a+24>>2];j=g>>>5|0;f=i[e+(j<<2)>>2];if(!(h&f)){break d}}d=i[a+52>>2]+ -4|0;i[a+52>>2]=d;break b}if(b){b=c;break d}if(i[(g>>>3&536870908)+e>>2]>>>(g&31)&1){b=c;break d}b=i[a+52>>2];i[b+ -4>>2]=d;g=i[a+56>>2];if((g|0)!=(b|0)){i[b>>2]=c;d=b+4|0;break c}g:{e=i[k>>2];f=b-e|0;h=f>>2;d=h+1|0;if(d>>>0<1073741824){g=g-e|0;j=g>>1;d=g>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;b=0;h:{if(!d){break h}if(d>>>0>=1073741824){break g}b=ok(d<<2)}g=b+(h<<2)|0;i[g>>2]=c;c=b+(d<<2)|0;d=g+4|0;if((f|0)>=1){$k(b,e,f)}i[a+56>>2]=c;i[a+52>>2]=d;i[a+48>>2]=b;if(!e){break b}Zk(e);d=i[a+52>>2];break b}Dk();x()}xa(8944);x()}i[(j<<2)+e>>2]=f|h;if((b|0)!=-1){continue}break}return 0}i[a+52>>2]=d}if(i[k>>2]!=(d|0)){continue}break}}return 1}function Ui(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;k=H-48|0;H=k;i[a+36>>2]=b;p=a+24|0;d=i[a+24>>2];c=i[a+28>>2]-d>>2;a:{if(c>>>0>>0){Vi(p,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+28>>2]=d+(b<<2)}g[k+16|0]=0;l=Wi(k+32|0,b,k+16|0);c=i[a>>2];d=i[a+4>>2];g[k+8|0]=0;q=Wi(k+16|0,d-c>>2,k+8|0);b:{h=i[a+4>>2];c=i[a>>2];if(h-c>>2>>>0<3){break b}t=a+48|0;while(1){m=o(r,3);e=i[(m<<2)+c>>2];d=m+1|0;c:{d:{if((d|0)==-1){j=0;f=-1;break d}f=i[(d<<2)+c>>2];j=m+2|0;d=-1;if((j|0)==-1){break c}}d=i[(j<<2)+c>>2]}e:{if(!((d|0)==(f|0)|(e|0)==(f|0)|(d|0)==(e|0))){j=i[q>>2];n=0;while(1){d=m+n|0;f:{if(i[(d>>>3&536870908)+j>>2]>>>(d&31)&1){break f}h=i[i[a>>2]+(d<<2)>>2];i[k+8>>2]=h;c=1<<(h&31);e=i[l>>2];f=h>>>5|0;j=i[e+(f<<2)>>2];s=c&j;if(s){Ae(p,10828);Xi(t,k+8|0);c=i[l+4>>2];f=i[l+8>>2];if((c|0)==f<<5){if((c+1|0)<=-1){break e}e=l;if(c>>>0<=1073741822){h=c+32&-32;c=f<<6;c=c>>>0>>0?h:c}else{c=2147483647}Zb(e,c);c=i[l+4>>2]}i[l+4>>2]=c+1;e=i[l>>2];f=e+(c>>>3&536870908)|0;h=i[f>>2];u=f,v=ol(c)&h,i[u>>2]=v;i[k+8>>2]=b;c=1<<(b&31);f=b>>>5|0;j=i[(f<<2)+e>>2];b=b+1|0}i[(f<<2)+e>>2]=c|j;j=i[q>>2];c=d;g:{while(1){if((c|0)==-1){break g}e=(c>>>3&536870908)+j|0;i[e>>2]=i[e>>2]|1<<(c&31);e=i[k+8>>2];i[i[p>>2]+(e<<2)>>2]=c;if(s){i[i[a>>2]+(c<<2)>>2]=e}h=d;f=c+1|0;c=(f>>>0)%3|0?f:c+ -2|0;e=-1;h:{if((c|0)==-1){break h}f=i[i[a+12>>2]+(c<<2)>>2];e=-1;if((f|0)==-1){break h}c=f+1|0;e=(c>>>0)%3|0?c:f+ -2|0}c=e;if((h|0)!=(c|0)){continue}break}if((d|0)!=-1){break f}}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)==-1){break f}d=i[i[a+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)==-1){break f}while(1){d=(c>>>3&536870908)+j|0;i[d>>2]=i[d>>2]|1<<(c&31);if(s){i[i[a>>2]+(c<<2)>>2]=i[k+8>>2]}d=((c>>>0)%3|0?-1:2)+c|0;if((d|0)==-1){break f}d=i[i[a+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)!=-1){continue}break}}n=n+1|0;if((n|0)!=3){continue}break}c=i[a>>2];h=i[a+4>>2]}r=r+1|0;if(r>>>0<(h-c>>2>>>0)/3>>>0){continue}break b}break}Dk();x()}j=0;i[a+44>>2]=0;b=i[l>>2];c=i[l+4>>2];d=c>>>5|0;f=c&31;if(d|f){h=(d<<2)+b|0;e=b;c=0;while(1){if(!(i[e>>2]>>>c&1)){j=j+1|0;i[a+44>>2]=j}d=(c|0)==31;c=d?0:c+1|0;e=d?e+4|0:e;if((h|0)!=(e|0)|(c|0)!=(f|0)){continue}break}}a=i[q>>2];if(a){Zk(a);b=i[l>>2]}if(b){Zk(b)}H=k+48|0}function Cb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,j=0,k=0,l=0,m=0;a:{b:{c:{d:{e:{f:{g:{h:{d=i[a+8>>2];switch(i[d+28>>2]+ -1|0){case 0:break c;case 3:break d;case 2:break e;case 5:break f;case 4:break g;case 1:break h;default:break a}}f=g[d+24|0];j=ok((f|0)>-1?f:-1);c=i[a+16>>2];d=0;i:{if(!i[c+80>>2]){break i}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((f|0)>0){while(1){g[c+j|0]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}$k(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,f);l=f+l|0;e=e+1|0;if((e|0)!=(b|0)){continue}break}break b}e=g[d+24|0];m=e<<2;j=ok((e|0)!=(e&1073741823)?-1:m);c=i[a+16>>2];d=0;j:{if(!i[c+80>>2]){break j}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((e|0)>0){while(1){i[(c<<2)+j>>2]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}$k(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}e=g[d+24|0];m=e<<2;j=ok((e|0)!=(e&1073741823)?-1:m);c=i[a+16>>2];d=0;k:{if(!i[c+80>>2]){break k}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((e|0)>0){while(1){i[(c<<2)+j>>2]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}$k(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}e=g[d+24|0];d=e+e|0;j=ok(d>>>0>>0?-1:d);c=i[a+16>>2];d=0;l:{if(!i[c+80>>2]){break l}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}m=e<<1;while(1){c=0;if((e|0)>0){while(1){h[(c<<1)+j>>1]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}$k(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}e=g[d+24|0];d=e+e|0;j=ok(d>>>0>>0?-1:d);c=i[a+16>>2];d=0;m:{if(!i[c+80>>2]){break m}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}m=e<<1;while(1){c=0;if((e|0)>0){while(1){h[(c<<1)+j>>1]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}$k(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,m);l=l+m|0;f=f+1|0;if((f|0)!=(b|0)){continue}break}break b}f=g[d+24|0];j=ok((f|0)>-1?f:-1);c=i[a+16>>2];d=0;n:{if(!i[c+80>>2]){break n}d=i[i[c>>2]>>2]+i[c+48>>2]|0}if(!b){break b}while(1){c=0;if((f|0)>0){while(1){g[c+j|0]=i[d+(k<<2)>>2];k=k+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}$k(i[i[i[a+8>>2]+64>>2]>>2]+l|0,j,f);l=f+l|0;e=e+1|0;if((e|0)!=(b|0)){continue}break}}Zk(j);j=1}return j|0}function Bj(a,b){var c=0,d=0,e=0,f=0,h=0,k=0;a:{b:{d=b;h=i[b>>2];if(h){c=i[b+4>>2];if(!c){break b}while(1){d=c;c=i[c>>2];if(c){continue}break}}h=i[d+4>>2];if(h){break b}h=0;e=1;break a}i[h+8>>2]=i[d+8>>2];e=0}f=i[d+8>>2];c=i[f>>2];c:{if((d|0)==(c|0)){i[f>>2]=h;if((a|0)==(d|0)){c=0;a=h;break c}c=i[f+4>>2];break c}i[f+4>>2]=h}d:{e:{f:{k=!j[d+12|0];if((b|0)!=(d|0)){f=i[b+8>>2];i[d+8>>2]=f;i[f+((i[i[b+8>>2]>>2]!=(b|0))<<2)>>2]=d;f=i[b>>2];i[d>>2]=f;i[f+8>>2]=d;f=i[b+4>>2];i[d+4>>2]=f;if(f){i[f+8>>2]=d}g[d+12|0]=j[b+12|0];a=(a|0)==(b|0)?d:a}if(!(k|!a)){if(e){while(1){b=j[c+12|0];g:{e=i[c+8>>2];if(i[e>>2]!=(c|0)){if(!b){g[c+12|0]=1;g[e+12|0]=0;d=i[e+4>>2];b=i[d>>2];i[e+4>>2]=b;if(b){i[b+8>>2]=e}i[d+8>>2]=i[e+8>>2];b=i[e+8>>2];i[(((e|0)!=i[b>>2])<<2)+b>>2]=d;i[d>>2]=e;i[e+8>>2]=d;b=i[c>>2];a=(b|0)==(a|0)?c:a;c=i[b+4>>2]}d=i[c>>2];if(!(j[d+12|0]?0:d)){b=i[c+4>>2];if(j[b+12|0]?0:b){break f}g[c+12|0]=0;c=i[c+8>>2];h:{if((c|0)==(a|0)){c=a;break h}if(j[c+12|0]){break g}}g[c+12|0]=1;return}b=i[c+4>>2];if(b){break f}break e}i:{if(b){b=c;break i}g[c+12|0]=1;g[e+12|0]=0;b=i[c+4>>2];i[e>>2]=b;if(b){i[b+8>>2]=e}i[c+8>>2]=i[e+8>>2];d=i[e+8>>2];j:{if((e|0)==i[d>>2]){i[d>>2]=c;b=i[e>>2];break j}i[d+4>>2]=c}i[c+4>>2]=e;i[e+8>>2]=c;a=(a|0)==(e|0)?c:a}d=i[b>>2];k:{if(!(!d|j[d+12|0])){c=b;break k}c=i[b+4>>2];if(!(j[c+12|0]?0:c)){g[b+12|0]=0;c=i[b+8>>2];if(j[c+12|0]?(c|0)!=(a|0):0){break g}g[c+12|0]=1;return}if(d){if(!j[d+12|0]){c=b;break k}c=i[b+4>>2]}g[c+12|0]=1;g[b+12|0]=0;a=i[c>>2];i[b+4>>2]=a;if(a){i[a+8>>2]=b}i[c+8>>2]=i[b+8>>2];a=i[b+8>>2];i[((i[a>>2]!=(b|0))<<2)+a>>2]=c;i[c>>2]=b;i[b+8>>2]=c;d=b}a=c;c=i[c+8>>2];g[a+12|0]=j[c+12|0];g[c+12|0]=1;g[d+12|0]=1;b=i[c>>2];a=i[b+4>>2];i[c>>2]=a;if(a){i[a+8>>2]=c}i[b+8>>2]=i[c+8>>2];a=i[c+8>>2];i[(((c|0)!=i[a>>2])<<2)+a>>2]=b;i[b+4>>2]=c;i[c+8>>2]=b;return}b=i[c+8>>2];c=i[((i[b>>2]==(c|0))<<2)+b>>2];continue}}g[h+12|0]=1}return}if(j[b+12|0]){break e}d=c;break d}g[d+12|0]=1;g[c+12|0]=0;a=i[d+4>>2];i[c>>2]=a;if(a){i[a+8>>2]=c}i[d+8>>2]=i[c+8>>2];a=i[c+8>>2];i[((i[a>>2]!=(c|0))<<2)+a>>2]=d;i[d+4>>2]=c;i[c+8>>2]=d;b=c}c=i[d+8>>2];g[d+12|0]=j[c+12|0];g[c+12|0]=1;g[b+12|0]=1;b=i[c+4>>2];a=i[b>>2];i[c+4>>2]=a;if(a){i[a+8>>2]=c}i[b+8>>2]=i[c+8>>2];a=i[c+8>>2];i[(((c|0)!=i[a>>2])<<2)+a>>2]=b;i[b>>2]=c;i[c+8>>2]=b}function pc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=H-32|0;H=h;i[a+68>>2]=f;d=i[a+56>>2];e=i[d>>2];f=i[d+4>>2];i[h+24>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;a:{f=f-e|0;if((f|0)<1){break a}e=i[d>>2];if((e|0)!=i[d+4>>2]){n=a+60|0;d=f>>2;o=(d|0)>1?d:1;p=a+112|0;while(1){qc(n,i[(l<<2)+e>>2],h+16|0);e=i[h+20>>2];g=e>>31;f=i[h+16>>2];j=f>>31;m=i[h+24>>2];k=m>>31;d=0;k=k^k+m;g=k+((g^e+g)+(j^f+j)|0)|0;if(g>>>0>>0){d=1}j=g;b:{if(!(d|g)){i[h+16>>2]=i[a+108>>2];break b}g=i[a+108>>2];k=g>>31;e=ll(kl(g,k,e,e>>31),J,j,d);i[h+20>>2]=e;d=ll(kl(g,k,f,f>>31),J,j,d);i[h+16>>2]=d;if((m|0)>=0){i[h+24>>2]=(g+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-g|0;d=e>>31;i[h+24>>2]=f+(d+e^d)}d=ld(p);f=i[h+16>>2];if(d){i[h+24>>2]=0-i[h+24>>2];i[h+20>>2]=0-i[h+20>>2];f=0-f|0;i[h+16>>2]=f}e=i[h+20>>2];c:{if((f|0)>=0){d=i[a+108>>2];f=d+i[h+24>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[h+24>>2];d=f>>31;d=d^d+f;break d}f=i[h+24>>2];d=i[a+100>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+100>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+100>>2];e=f;break e}g=i[a+100>>2];f:{g:{h:{if(!d){if((f|0)==(g|0)){e=f;break e}e=0;if(f|g){break h}f=0;break e}if(!((d|0)!=(g|0)|f)){f=d;e=d;break e}if((d|0)!=(g|0)){break f}j=i[a+108>>2];break g}j=i[a+108>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(g){break f}}g=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(g|0)){break i}e=i[a+108>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+108>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}i[h+12>>2]=f;i[h+8>>2]=e;j:{if(i[a+8>>2]<1){break j}f=0;while(1){g=i[a+16>>2];k:{if((e|0)>(g|0)){d=i[a+32>>2];i[d+(f<<2)>>2]=g;break k}d=i[a+32>>2];g=d+(f<<2)|0;j=i[a+12>>2];if((e|0)<(j|0)){i[g>>2]=j;break k}i[g>>2]=e}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){e=i[(h+8|0)+(f<<2)>>2];continue}break}e=0;if((g|0)<1){break j}f=l<<3;j=f+c|0;m=b+f|0;while(1){g=e<<2;f=g+j|0;g=i[g+m>>2]+i[d+g>>2]|0;i[f>>2]=g;l:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break l}g=g+i[a+20>>2]|0}i[f>>2]=g}e=e+1|0;if((e|0)>2]){continue}break}}l=l+1|0;if((o|0)==(l|0)){break a}d=i[a+56>>2];e=i[d>>2];if(i[d+4>>2]-e>>2>>>0>l>>>0){continue}break}}Ek();x()}H=h+32|0;return 1}function Ec(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=H-32|0;H=h;i[a+68>>2]=f;d=i[a+56>>2];e=i[d>>2];f=i[d+4>>2];i[h+24>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;a:{f=f-e|0;if((f|0)<1){break a}e=i[d>>2];if((e|0)!=i[d+4>>2]){n=a+60|0;d=f>>2;o=(d|0)>1?d:1;p=a+112|0;while(1){Fc(n,i[(l<<2)+e>>2],h+16|0);e=i[h+20>>2];g=e>>31;f=i[h+16>>2];j=f>>31;m=i[h+24>>2];k=m>>31;d=0;k=k^k+m;g=k+((g^e+g)+(j^f+j)|0)|0;if(g>>>0>>0){d=1}j=g;b:{if(!(d|g)){i[h+16>>2]=i[a+108>>2];break b}g=i[a+108>>2];k=g>>31;e=ll(kl(g,k,e,e>>31),J,j,d);i[h+20>>2]=e;d=ll(kl(g,k,f,f>>31),J,j,d);i[h+16>>2]=d;if((m|0)>=0){i[h+24>>2]=(g+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-g|0;d=e>>31;i[h+24>>2]=f+(d+e^d)}d=ld(p);f=i[h+16>>2];if(d){i[h+24>>2]=0-i[h+24>>2];i[h+20>>2]=0-i[h+20>>2];f=0-f|0;i[h+16>>2]=f}e=i[h+20>>2];c:{if((f|0)>=0){d=i[a+108>>2];f=d+i[h+24>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[h+24>>2];d=f>>31;d=d^d+f;break d}f=i[h+24>>2];d=i[a+100>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+100>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+100>>2];e=f;break e}g=i[a+100>>2];f:{g:{h:{if(!d){if((f|0)==(g|0)){e=f;break e}e=0;if(f|g){break h}f=0;break e}if(!((d|0)!=(g|0)|f)){f=d;e=d;break e}if((d|0)!=(g|0)){break f}j=i[a+108>>2];break g}j=i[a+108>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(g){break f}}g=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(g|0)){break i}e=i[a+108>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+108>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}i[h+12>>2]=f;i[h+8>>2]=e;j:{if(i[a+8>>2]<1){break j}f=0;while(1){g=i[a+16>>2];k:{if((e|0)>(g|0)){d=i[a+32>>2];i[d+(f<<2)>>2]=g;break k}d=i[a+32>>2];g=d+(f<<2)|0;j=i[a+12>>2];if((e|0)<(j|0)){i[g>>2]=j;break k}i[g>>2]=e}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){e=i[(h+8|0)+(f<<2)>>2];continue}break}e=0;if((g|0)<1){break j}f=l<<3;j=f+c|0;m=b+f|0;while(1){g=e<<2;f=g+j|0;g=i[g+m>>2]+i[d+g>>2]|0;i[f>>2]=g;l:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break l}g=g+i[a+20>>2]|0}i[f>>2]=g}e=e+1|0;if((e|0)>2]){continue}break}}l=l+1|0;if((o|0)==(l|0)){break a}d=i[a+56>>2];e=i[d>>2];if(i[d+4>>2]-e>>2>>>0>l>>>0){continue}break}}Ek();x()}H=h+32|0;return 1}function Ib(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;a:{b:{c:{d:{e:{switch(b+ -1|0){case 0:b=ok(60);i[b+4>>2]=c;i[b>>2]=2776;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break d}c=ok(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=$k(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=3972;break a;case 3:b=ok(112);i[b+4>>2]=c;i[b>>2]=2776;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break c}c=ok(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=$k(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=4396;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=0;i[b+92>>2]=0;i[b+96>>2]=0;i[b+100>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;break a;case 4:b=ok(104);i[b+4>>2]=c;i[b>>2]=2776;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break b}c=ok(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=$k(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=e+8|0;d=i[c>>2];f=i[c+4>>2];i[b+84>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=4632;i[b+52>>2]=d;i[b+56>>2]=f;d=i[e+4>>2];i[b+88>>2]=i[e>>2];i[b+92>>2]=d;d=i[c+4>>2];i[b+96>>2]=i[c>>2];i[b+100>>2]=d;break a;case 5:f=ok(128);tc(f,c,d,e);break;default:break e}}i[a>>2]=f;return}Dk();x()}Dk();x()}Dk();x()}i[a>>2]=b}function Hb(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;a:{b:{c:{d:{e:{switch(b+ -1|0){case 0:b=ok(60);i[b+4>>2]=c;i[b>>2]=2776;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break d}c=ok(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=$k(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=2068;break a;case 3:b=ok(112);i[b+4>>2]=c;i[b>>2]=2776;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break c}c=ok(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=$k(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=2832;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=0;i[b+92>>2]=0;i[b+96>>2]=0;i[b+100>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;break a;case 4:b=ok(104);i[b+4>>2]=c;i[b>>2]=2776;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break b}c=ok(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=$k(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=e+8|0;d=i[c>>2];f=i[c+4>>2];i[b+84>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=3080;i[b+52>>2]=d;i[b+56>>2]=f;d=i[e+4>>2];i[b+88>>2]=i[e>>2];i[b+92>>2]=d;d=i[c+4>>2];i[b+96>>2]=i[c>>2];i[b+100>>2]=d;break a;case 5:f=ok(128);Jb(f,c,d,e);break;default:break e}}i[a>>2]=f;return}Dk();x()}Dk();x()}Dk();x()}i[a>>2]=b}function Zc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0;g=H-48|0;H=g;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;e=i[a+40>>2];d=i[e>>2];f=i[e+4>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{f=f-d|0;if((f|0)<1){break a}d=i[e>>2];if((d|0)!=i[e+4>>2]){o=a+8|0;q=a+44|0;e=f>>2;r=(e|0)>1?e:1;s=a+96|0;while(1){Fc(q,i[(l<<2)+d>>2],g+8|0);e=i[g+12>>2];h=e>>31;f=i[g+8>>2];j=f>>31;n=i[g+16>>2];k=n>>31;d=0;k=k^k+n;h=k+((h^e+h)+(j^f+j)|0)|0;if(h>>>0>>0){d=1}b:{if(!(d|h)){i[g+8>>2]=i[a+92>>2];break b}j=i[a+92>>2];k=j>>31;e=ll(kl(j,k,e,e>>31),J,h,d);i[g+12>>2]=e;d=ll(kl(j,k,f,f>>31),J,h,d);i[g+8>>2]=d;if((n|0)>=0){i[g+16>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[g+16>>2]=f+(d+e^d)}d=ld(s);f=i[g+8>>2];if(d){i[g+16>>2]=0-i[g+16>>2];i[g+12>>2]=0-i[g+12>>2];f=0-f|0;i[g+8>>2]=f}e=i[g+12>>2];c:{if((f|0)>=0){d=i[a+92>>2];f=d+i[g+16>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[g+16>>2];d=f>>31;d=d^d+f;break d}f=i[g+16>>2];d=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+84>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+84>>2];e=f;break e}h=i[a+84>>2];f:{g:{h:{if(!d){if((f|0)==(h|0)){e=f;break e}e=0;if(f|h){break h}f=0;break e}if(!((d|0)!=(h|0)|f)){f=d;e=d;break e}if((d|0)!=(h|0)){break f}j=i[a+92>>2];break g}j=i[a+92>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(h){break f}}h=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(h|0)){break i}e=i[a+92>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+92>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}d=l<<3;h=d+b|0;j=i[h+4>>2];h=i[h>>2];i[g+36>>2]=f;i[g+32>>2]=e;i[g+24>>2]=h;i[g+28>>2]=j;Vc(g+40|0,o,g+32|0,g+24|0);d=c+d|0;i[d>>2]=i[g+40>>2];i[d+4>>2]=i[g+44>>2];l=l+1|0;if((r|0)==(l|0)){break a}e=i[a+40>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>l>>>0){continue}break}}Ek();x()}H=g+48|0;return 1}function Uc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0;g=H-48|0;H=g;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;e=i[a+40>>2];d=i[e>>2];f=i[e+4>>2];i[g+16>>2]=0;i[g+8>>2]=0;i[g+12>>2]=0;a:{f=f-d|0;if((f|0)<1){break a}d=i[e>>2];if((d|0)!=i[e+4>>2]){o=a+8|0;q=a+44|0;e=f>>2;r=(e|0)>1?e:1;s=a+96|0;while(1){qc(q,i[(l<<2)+d>>2],g+8|0);e=i[g+12>>2];h=e>>31;f=i[g+8>>2];j=f>>31;n=i[g+16>>2];k=n>>31;d=0;k=k^k+n;h=k+((h^e+h)+(j^f+j)|0)|0;if(h>>>0>>0){d=1}b:{if(!(d|h)){i[g+8>>2]=i[a+92>>2];break b}j=i[a+92>>2];k=j>>31;e=ll(kl(j,k,e,e>>31),J,h,d);i[g+12>>2]=e;d=ll(kl(j,k,f,f>>31),J,h,d);i[g+8>>2]=d;if((n|0)>=0){i[g+16>>2]=(j+((d|0)<0?d:0-d|0)|0)+((e|0)<0?e:0-e|0);break b}f=d;d=d>>31;f=(f+d^d)-j|0;d=e>>31;i[g+16>>2]=f+(d+e^d)}d=ld(s);f=i[g+8>>2];if(d){i[g+16>>2]=0-i[g+16>>2];i[g+12>>2]=0-i[g+12>>2];f=0-f|0;i[g+8>>2]=f}e=i[g+12>>2];c:{if((f|0)>=0){d=i[a+92>>2];f=d+i[g+16>>2]|0;d=d+e|0;break c}d:{if((e|0)<=-1){f=i[g+16>>2];d=f>>31;d=d^d+f;break d}f=i[g+16>>2];d=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=e;e=e>>31;f=f+e^e;break c}f=i[a+84>>2]+((e|0)<0?e:0-e|0)|0}e:{if(!(d|f)){f=i[a+84>>2];e=f;break e}h=i[a+84>>2];f:{g:{h:{if(!d){if((f|0)==(h|0)){e=f;break e}e=0;if(f|h){break h}f=0;break e}if(!((d|0)!=(h|0)|f)){f=d;e=d;break e}if((d|0)!=(h|0)){break f}j=i[a+92>>2];break g}j=i[a+92>>2];if((j|0)<(f|0)){f=(j<<1)-f|0;break e}if(h){break f}}h=d;if((j|0)<=(f|0)){break f}f=(j<<1)-f|0;e=d;break e}i:{if((f|0)!=(h|0)){break i}e=i[a+92>>2];if((e|0)<=(d|0)){break i}e=(e<<1)-d|0;break e}if(f){e=d;break e}f=0;e=i[a+92>>2];if((e|0)>=(d|0)){e=d;break e}e=(e<<1)-d|0}d=l<<3;h=d+b|0;j=i[h+4>>2];h=i[h>>2];i[g+36>>2]=f;i[g+32>>2]=e;i[g+24>>2]=h;i[g+28>>2]=j;Vc(g+40|0,o,g+32|0,g+24|0);d=c+d|0;i[d>>2]=i[g+40>>2];i[d+4>>2]=i[g+44>>2];l=l+1|0;if((r|0)==(l|0)){break a}e=i[a+40>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>l>>>0){continue}break}}Ek();x()}H=g+48|0;return 1}function mj(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0;d=H-48|0;H=d;c=ok(8);i[c+4>>2]=b;i[c>>2]=0;b=c+8|0;i[d+40>>2]=b;i[d+36>>2]=b;i[d+32>>2]=c;a:{b:{c:{d:{while(1){b=b+ -8|0;m=i[b+4>>2];q=i[b>>2];i[d+36>>2]=b;if(q){i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;n=1;b=i[a>>2];h=i[b+16>>2];f=i[b+12>>2];c=i[b+20>>2];e:{if((f|0)<(c|0)?1:(f|0)<=(c|0)?l[b+8>>2]<=h>>>0:0){break e}e=j[h+i[b>>2]|0];f=h+1|0;if(f>>>0<1){c=c+1|0}i[b+16>>2]=f;i[b+20>>2]=c;wk(d+16|0,e);if(e){f=i[a>>2];p=Ak(d+16|0);k=i[f+12>>2];h=i[f+20>>2];o=i[f+16>>2];b=e;c=o+b|0;if(c>>>0>>0){h=h+1|0}if((k|0)<(h|0)?1:(k|0)<=(h|0)?l[f+8>>2]>>0:0){break e}$k(p,o+i[f>>2]|0,e);c=f;f=c;h=i[c+20>>2];e=b+i[c+16>>2]|0;if(e>>>0>>0){h=h+1|0}i[f+16>>2]=e;i[c+20>>2]=h}m=ok(24);b=m;i[b+4>>2]=0;i[b+8>>2]=0;i[b+16>>2]=0;i[b+20>>2]=0;i[b>>2]=b+4;i[b+12>>2]=b+16;i[d+8>>2]=b;b=Aj(q,d+16|0,d+8|0);c=i[d+8>>2];i[d+8>>2]=0;if(c){Lf(c+12|0,i[c+16>>2]);Mf(c,i[c+4>>2]);Zk(c)}n=b^1}if(g[d+27|0]<=-1){Zk(i[d+16>>2])}if(n){break b}}if(!m){break b}i[d+16>>2]=0;if(!nj(1,d+16|0,i[a>>2])){break b}b=0;c=i[d+16>>2];if(c){while(1){if(!oj(a,m)){break b}b=b+1|0;if((c|0)!=(b|0)){continue}break}}i[d+4>>2]=0;if(!nj(1,d+4|0,i[a>>2])){break b}e=i[a>>2];c=i[e+8>>2];b=i[e+16>>2];p=i[d+4>>2];f=c-b>>>0

>>0;b=i[e+12>>2]-(i[e+20>>2]+(c>>>0>>0)|0)|0;if((b|0)<0?1:(b|0)<=0?f:0){break b}if(p){n=0;while(1){b=i[d+36>>2];c=i[d+40>>2];f:{if(b>>>0>>0){i[b+4>>2]=0;i[b>>2]=m;i[d+36>>2]=b+8;break f}k=i[d+32>>2];o=b-k|0;b=o>>3;h=b+1|0;if(h>>>0>=536870912){break d}f=b<<3;e=c-k|0;c=e>>2;e=e>>3>>>0<268435455?c>>>0>>0?h:c:536870911;b=0;g:{if(!e){break g}if(e>>>0>=536870912){break c}b=ok(e<<3)}c=f+b|0;i[c+4>>2]=0;i[c>>2]=m;e=b+(e<<3)|0;c=c+8|0;if((o|0)>=1){$k(b,k,o)}i[d+40>>2]=e;i[d+36>>2]=c;i[d+32>>2]=b;if(!k){break f}Zk(k)}n=n+1|0;if((p|0)!=(n|0)){continue}break}}b=i[d+36>>2];c=i[d+32>>2];if((b|0)!=(c|0)){continue}break}a=1;break a}Dk();x()}xa(11160);x()}c=i[d+32>>2];a=0}if(c){i[d+36>>2]=c;Zk(c)}H=d+48|0;return a}function Ti(a){var b=0,c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;f=H-32|0;H=f;o=i[a>>2];c=i[a+4>>2];g[f|0]=0;p=Wi(f+16|0,c-o>>2,f);i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;h=i[a>>2];b=i[a+4>>2];a:{b:{while(1){c:{q=0;l=0;if((b|0)==(h|0)){break c}while(1){j=i[p>>2];d:{if(i[j+(l>>>3&536870908)>>2]>>>(l&31)&1){break d}k=i[f>>2];i[f+4>>2]=k;b=l;while(1){e:{c=b+1|0;o=b;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)==-1){break e}d=i[i[a+12>>2]+(c<<2)>>2];if((d|0)==-1){break e}c=d+1|0;b=(c>>>0)%3|0?c:d+ -2|0;if((l|0)==(b|0)|(b|0)==-1){break e}if(!(i[(b>>>3&536870908)+j>>2]>>>(b&31)&1)){continue}}break}d=k;b=d;e=o;while(1){c=(e>>>3&536870908)+j|0;i[c>>2]=i[c>>2]|1<<(e&31);c=e+1|0;c=(c>>>0)%3|0?c:e+ -2|0;n=((e>>>0)%3|0?-1:2)+e|0;if((b|0)!=(d|0)){j=i[(c<<2)+h>>2];while(1){f:{if((j|0)!=i[b>>2]){break f}e=-1;m=i[b+4>>2];e=(n|0)!=-1?i[i[a+12>>2]+(n<<2)>>2]:e;if((m|0)==(e|0)){break f}d=-1;d=(m|0)!=-1?i[i[a+12>>2]+(m<<2)>>2]:d;if((e|0)!=-1){i[i[a+12>>2]+(e<<2)>>2]=-1}c=i[a+12>>2];if((d|0)!=-1){i[c+(d<<2)>>2]=-1}i[c+(n<<2)>>2]=-1;i[c+(m<<2)>>2]=-1;q=1;break d}b=b+8|0;if((d|0)!=(b|0)){continue}break}}m=n<<2;r=i[m+h>>2];b=i[f+8>>2];g:{if((b|0)!=(d|0)){i[d>>2]=r;i[d+4>>2]=c;i[f+4>>2]=d+8;break g}j=d-k|0;d=j>>3;h=d+1|0;if(h>>>0>=536870912){break b}s=d<<3;e=b-k|0;b=e>>2;h=e>>3>>>0<268435455?b>>>0>>0?h:b:536870911;d=0;h:{if(!h){break h}if(h>>>0>=536870912){break a}d=ok(h<<3)}e=s+d|0;b=e;i[b>>2]=r;i[b+4>>2]=c;b=d+(h<<3)|0;c=e+8|0;if((j|0)>=1){$k(d,k,j)}i[f+8>>2]=b;i[f+4>>2]=c;i[f>>2]=d;if(!k){break g}Zk(k)}i:{if((n|0)==-1){break i}c=i[m+i[a+12>>2]>>2];if((c|0)==-1){break i}e=c+((c>>>0)%3|0?-1:2)|0;if((o|0)==(e|0)|(e|0)==-1){break i}h=i[a>>2];j=i[p>>2];d=i[f+4>>2];k=i[f>>2];b=k;continue}break}h=i[a>>2]}l=l+1|0;b=i[a+4>>2];if(l>>>0>2>>>0){continue}break}if(q){continue}}break}a=i[f>>2];if(a){i[f+4>>2]=a;Zk(a)}a=i[p>>2];if(a){Zk(a)}H=f+32|0;return}Dk();x()}xa(10832);x()}function Ab(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;a:{s=K[i[i[a>>2]+44>>2]](a)|0;if((s|0)<1){break a}h=i[b+4>>2]-i[b>>2]>>2;Bb(a,h,s);d=i[a+16>>2];if(!i[d+80>>2]){break a}f=i[i[d>>2]>>2];if(!f){break a}m=i[c+8>>2];k=i[c+16>>2];g=i[c+12>>2];n=g;e=i[c+20>>2];if((n|0)<(e|0)?1:(n|0)<=(e|0)?m>>>0<=k>>>0:0){break a}n=o(h,s);q=f+i[d+48>>2]|0;r=i[c>>2];t=j[r+k|0];h=c;d=e;f=k+1|0;if(f>>>0<1){d=d+1|0}p=f;f=d;i[h+16>>2]=p;i[h+20>>2]=d;b:{c:{d:{if(t){if(xd(n,s,c,q)){break d}break a}if((g|0)<(f|0)?1:(g|0)<=(f|0)?m>>>0<=p>>>0:0){break a}h=j[p+r|0];d=e;e=k+2|0;if(e>>>0<2){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;d=Xf(5);e=i[i[a+16>>2]+64>>2];e=i[e+4>>2]-i[e>>2]|0;e:{if((d|0)==(h|0)){h=n<<2;if(e>>>0>>0){break a}f=i[c+12>>2];d=i[c+20>>2];k=i[c+16>>2];e=h;g=k+e|0;if(g>>>0>>0){d=d+1|0}if((f|0)>(d|0)?1:(f|0)>=(d|0)?l[c+8>>2]>=g>>>0:0){break e}break a}if(e>>>0>>0){break a}k=i[c+12>>2];d=i[c+20>>2];m=i[c+8>>2];f=m;p=i[c+16>>2];g=p;e=h;r=f-g>>>0>>0;f=k-(d+(f>>>0>>0)|0)|0;g=J;if((f|0)<(g|0)?1:(f|0)<=(g|0)?r:0){break a}f=1;if(!n){break c}g=0;f=m;m=e+p|0;if(m>>>0>>0){d=d+1|0}if((k|0)<(d|0)?1:(k|0)<=(d|0)?f>>>0>>0:0){break b}m=0;while(1){$k(q+(m<<2)|0,p+i[c>>2]|0,h);d=i[c+20>>2];p=e+i[c+16>>2]|0;if(p>>>0>>0){d=d+1|0}i[c+16>>2]=p;i[c+20>>2]=d;m=m+1|0;if((n|0)==(m|0)){break d}k=i[c+12>>2];r=e+p|0;if(r>>>0>>0){d=d+1|0}if((k|0)>(d|0)?1:(k|0)>=(d|0)?l[c+8>>2]>=r>>>0:0){continue}break}break b}$k(q,k+i[c>>2]|0,h);d=i[c+20>>2];f=e+i[c+16>>2]|0;if(f>>>0>>0){d=d+1|0}i[c+16>>2]=f;i[c+20>>2]=d}f=1;if(!n){break c}e=i[a+20>>2];if(e){f=0;if(K[i[i[e>>2]+32>>2]](e)|0){break c}}Nf(q,n,q);f=0}e=i[a+20>>2];f:{if(!e){break f}if(!(K[i[i[e>>2]+40>>2]](e,c)|0)){break a}if(f){break f}g=0;a=i[a+20>>2];if(!(K[i[i[a>>2]+44>>2]](a,q,q,n,s,i[b>>2])|0)){break b}}g=1}return g|0}return 0}function ie(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=H+ -64|0;H=e;f=i[i[b+4>>2]+44>>2];d=ok(80);i[d+12>>2]=0;i[d+16>>2]=0;i[d>>2]=9520;i[d+4>>2]=0;i[d+76>>2]=0;i[d+72>>2]=c;i[d+68>>2]=f;i[d+64>>2]=0;i[d+56>>2]=0;i[d+60>>2]=0;i[d+8>>2]=9684;j=d+20|0;i[j>>2]=0;i[j+4>>2]=0;n=d+28|0;k=n;i[k>>2]=0;i[k+4>>2]=0;i[d+36>>2]=0;i[d+40>>2]=0;k=d+44|0;i[k>>2]=0;i[k+4>>2]=0;i[d+52>>2]=0;b=i[b+8>>2];o=e+40|0;h=o;i[h>>2]=0;i[h+4>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;h=e+24|0;i[h>>2]=0;i[h+4>>2]=0;p=e+16|0;l=p;i[l>>2]=0;i[l+4>>2]=0;l=e+8|0;i[l>>2]=0;i[l+4>>2]=0;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e>>2]=9684;i[e+4>>2]=b;m=i[b>>2];q=i[b+4>>2];g[e+63|0]=0;ke(h,(q-m>>2>>>0)/3|0,e+63|0);h=i[e+4>>2];m=i[h+28>>2];h=i[h+24>>2];g[e+63|0]=0;ke(e+36|0,m-h>>2,e+63|0);i[e+20>>2]=d;i[p>>2]=f;f=e+12|0;i[f>>2]=c;i[l>>2]=b;i[n>>2]=d;b=i[f+4>>2];i[j>>2]=i[f>>2];i[j+4>>2]=b;b=i[e+8>>2];i[d+12>>2]=i[e+4>>2];i[d+16>>2]=b;a:{b:{c=d;b=i[e+28>>2];if(b){f=d+32|0;c:{if(b>>>0<=i[d+40>>2]<<5>>>0){j=b+ -1>>>5|0;b=i[f>>2];break c}f=i[f>>2];if(f){Zk(f);i[d+40>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;b=i[e+28>>2]}if((b|0)<=-1){break b}j=b+ -1>>>5|0;f=j+1|0;b=ok(f<<2);i[d+40>>2]=f;i[d+36>>2]=0;i[d+32>>2]=b}bl(b,i[e+24>>2],(j<<2)+4|0);b=i[e+28>>2]}else{b=0}i[c+36>>2]=b;h=d;b=i[o>>2];if(b){d:{if(b>>>0<=i[d+52>>2]<<5>>>0){c=b+ -1>>>5|0;b=i[k>>2];break d}c=i[k>>2];if(c){Zk(c);i[d+52>>2]=0;i[d+44>>2]=0;i[d+48>>2]=0;b=i[e+40>>2]}if((b|0)<=-1){break a}c=b+ -1>>>5|0;j=c+1|0;b=ok(j<<2);i[d+52>>2]=j;i[d+48>>2]=0;i[d+44>>2]=b}bl(b,i[e+36>>2],(c<<2)+4|0);b=i[e+40>>2]}else{b=0}i[h+48>>2]=b;Ia(d+56|0,i[e+48>>2],i[e+52>>2]);i[a>>2]=d;i[e>>2]=9684;a=i[e+48>>2];if(a){i[e+52>>2]=a;Zk(a)}i[e>>2]=9500;a=i[e+36>>2];if(a){Zk(a)}a=i[e+24>>2];if(a){Zk(a)}H=e- -64|0;return}Dk();x()}Dk();x()}function kj(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;f=o(b,12)+a|0;n=f+12|0;p=f+8|0;i[n>>2]=i[p>>2];l=(c|0)==-1?-1:(c>>>0)/3|0;r=f+16|0;s=1;f=c;a:{b:{c:{while(1){d:{q=k;if(k){if((f|0)==-1){break d}if((lj(a,((f>>>0)%3|0?-1:2)+f|0)|0)==-1){break a}c=f+1|0;c=(c>>>0)%3|0?c:f+ -2|0;if((c|0)==-1){break a}e=c+1|0;c=(e>>>0)%3|0?e:c+ -2|0;if((c|0)==-1){break a}c=i[i[i[a+4>>2]+12>>2]+(c<<2)>>2];if((c|0)==-1){break a}e=c+1|0;c=(e>>>0)%3|0?e:c+ -2|0;if((c|0)==-1){break a}l=(c>>>0)/3|0}h=i[a+56>>2]+(l>>>3&536870908)|0;g=i[h>>2];m=1<<(l&31);e:{if(g&m){break e}e=0;while(1){i[h>>2]=g|m;d=i[n>>2];j=i[r>>2];f:{if((d|0)!=(j|0)){i[d>>2]=l;i[n>>2]=d+4;break f}h=i[p>>2];m=d-h|0;d=m>>2;g=d+1|0;if(g>>>0>=1073741824){break c}t=d<<2;j=j-h|0;d=j>>1;g=j>>2>>>0<536870911?d>>>0>>0?g:d:1073741823;d=0;g:{if(!g){break g}if(g>>>0>=1073741824){break b}d=ok(g<<2)}j=t+d|0;i[j>>2]=l;g=d+(g<<2)|0;j=j+4|0;if((m|0)>=1){$k(d,h,m)}i[p>>2]=d;i[n>>2]=j;i[r>>2]=g;if(!h){break f}Zk(h)}d=e+1|0;h:{if(!e){break h}if(d&1){if((c|0)==-1){c=-1;break h}e=c+1|0;c=(e>>>0)%3|0?e:c+ -2|0;break h}f=q?c:f;if((c|0)==-1){c=-1;break h}if((c>>>0)%3|0){c=c+ -1|0;break h}c=c+2|0}c=lj(a,c);if((c|0)!=-1){e=d;l=(c>>>0)/3|0;h=i[a+56>>2]+(l>>>3&268435452)|0;g=i[h>>2];m=1<<(l&31);if(!(g&m)){continue}}break}if(!(d&1)|k^1){break e}k=i[n>>2]+ -4|0;e=i[k>>2];d=i[a+56>>2]+(e>>>3&536870908)|0;q=i[d>>2];u=d,v=ol(e)&q,i[u>>2]=v;i[n>>2]=k}k=1;e=s;s=0;if(e){continue}break a}break}f=-1;lj(a,-1);break a}Dk();x()}xa(11092);x()}i[((b<<2)+a|0)+44>>2]=f;c=i[n>>2];b=i[p>>2];if((c|0)!=(b|0)){c=c-b>>2;f=c>>>0>1?c:1;a=i[a+56>>2];c=0;while(1){k=i[b+(c<<2)>>2];e=a+(k>>>3&536870908)|0;d=i[e>>2];u=e,v=ol(k)&d,i[u>>2]=v;c=c+1|0;if((f|0)!=(c|0)){continue}break}}}function Vc(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i[b+16>>2];e=i[c+4>>2]-l|0;f=i[c>>2]-l|0;i[c>>2]=f;i[c+4>>2]=e;g=e>>31;h=g+e^g;g=f>>31;k=i[b+16>>2];m=(h+(g+f^g)|0)<=(k|0);if(!m){a:{b:{if((f|0)>=0){j=1;g=1;if((e|0)>-1){break a}h=1;j=-1;g=-1;if((f|0)>=1){break b}break a}h=-1;j=-1;g=-1;if((e|0)<1){break a}}j=(e|0)<1?-1:1;g=h}n=o(j,k);h=(e<<1)-n|0;i[c+4>>2]=h;e=f<<1;f=o(g,k);e=e-f|0;i[c>>2]=e;c:{if((o(g,j)|0)>=0){h=0-h|0;i[c>>2]=h;e=0-e|0;break c}i[c>>2]=h}e=(e+n|0)/2|0;i[c+4>>2]=e;f=(f+h|0)/2|0;i[c>>2]=f}d:{e:{f:{g:{h:{if(!f){if(e){break h}h=1;e=0;g=0;j=0;break d}h=1;g=(f|0)<0&(e|0)<1;i:{if((f|0)>=1){j=(e|0)>-1?2:1;if(!g){break i}g=f;break d}j=(e|0)>0?3:0;if(!g){break i}g=f;break d}h=j+ -1|0;j=0;g=f;j:{switch(h|0){case 2:break g;case 1:break j;case 0:break f;default:break e}}e=0-e|0;g=0-f|0;j=2;break e}if((e|0)<1){break f}}g=0-e|0;j=3;e=f;break e}j=1;g=e;e=0-f|0}f=c;i[f>>2]=g;i[f+4>>2]=e;h=0}f=i[d>>2]+g|0;i[a>>2]=f;e=i[d+4>>2]+e|0;i[a+4>>2]=e;k=i[b+16>>2];k:{if((k|0)<(f|0)){f=f-i[b+4>>2]|0;break k}if((f|0)>=(0-k|0)){break k}f=i[b+4>>2]+f|0}i[a>>2]=f;l:{if((k|0)<(e|0)){e=e-i[b+4>>2]|0;break l}if((e|0)>=(0-k|0)){break l}e=i[b+4>>2]+e|0}i[a+4>>2]=e;m:{if(h){c=e;break m}c=e;n:{o:{switch((4-j&3)+ -1|0){case 0:c=0-f|0;f=e;break n;case 1:c=0-e|0;f=0-f|0;break n;case 2:break o;default:break n}}c=f;f=0-e|0}i[a>>2]=f;i[a+4>>2]=c}if(!m){p:{q:{if((f|0)>=0){b=1;g=1;if((c|0)>-1){break p}e=1;b=-1;g=-1;if((f|0)>=1){break q}break p}e=-1;b=-1;g=-1;if((c|0)<1){break p}}b=(c|0)<1?-1:1;g=e}d=c<<1;c=o(b,k);e=d-c|0;i[a+4>>2]=e;d=o(g,k);f=(f<<1)-d|0;i[a>>2]=f;r:{if((o(b,g)|0)>=0){e=0-e|0;i[a>>2]=e;f=0-f|0;break r}i[a>>2]=e}c=(c+f|0)/2|0;i[a+4>>2]=c;f=(d+e|0)/2|0;i[a>>2]=f}i[a>>2]=f+l;i[a+4>>2]=c+l}function rf(a,b){var c=0,d=0,e=0;i[a>>2]=i[b>>2];i[a+4>>2]=i[b+4>>2];i[a+8>>2]=i[b+8>>2];c=b+12|0;i[a+12>>2]=i[c>>2];i[c>>2]=0;i[b+4>>2]=0;i[b+8>>2]=0;c=b+16|0;i[a+16>>2]=i[c>>2];i[a+20>>2]=i[b+20>>2];d=b+24|0;i[a+24>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=j[b+28|0];e=a+40|0;i[e>>2]=0;c=a+32|0;i[c>>2]=0;i[c+4>>2]=0;g[a+28|0]=d;d=c;c=b+32|0;i[d>>2]=i[c>>2];i[a+36>>2]=i[b+36>>2];d=b+40|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a+52|0;i[d>>2]=0;c=a+44|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+44|0;i[e>>2]=i[c>>2];i[a+48>>2]=i[b+48>>2];e=d;d=b+52|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a- -64|0;i[d>>2]=0;c=a+56|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+56|0;i[e>>2]=i[c>>2];i[a+60>>2]=i[b+60>>2];e=d;d=b- -64|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;i[a+68>>2]=i[b+68>>2];d=i[b+72>>2];e=a+84|0;i[e>>2]=0;c=a+76|0;i[c>>2]=0;i[c+4>>2]=0;i[a+72>>2]=d;d=c;c=b+76|0;i[d>>2]=i[c>>2];i[a+80>>2]=i[b+80>>2];d=b+84|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a+96|0;i[d>>2]=0;c=a+88|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+88|0;i[e>>2]=i[c>>2];i[a+92>>2]=i[b+92>>2];e=d;d=b+96|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;c=j[b+100|0];d=a+112|0;i[d>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;g[a+100|0]=c;i[a+104>>2]=i[b+104>>2];i[a+108>>2]=i[b+108>>2];c=b+112|0;i[d>>2]=i[c>>2];i[c>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;d=a+124|0;i[d>>2]=0;c=a+116|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+116|0;i[e>>2]=i[c>>2];i[a+120>>2]=i[b+120>>2];e=d;d=b+124|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;c=i[b+128>>2];d=a+140|0;i[d>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;i[a+128>>2]=c;i[a+132>>2]=i[b+132>>2];i[a+136>>2]=i[b+136>>2];c=b+140|0;i[d>>2]=i[c>>2];i[c>>2]=0;i[b+132>>2]=0;i[b+136>>2]=0;return a}function xe(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;h=H-16|0;H=h;i[h>>2]=b;g=-1;a:{if((b|0)==-1){i[h+4>>2]=-1;break a}c=b+1|0;i[h+4>>2]=(c>>>0)%3|0?c:b+ -2|0;if((b>>>0)%3|0){g=b+ -1|0;break a}g=b+2|0}i[h+8>>2]=g;q=(b|0)==-1?-1:(b>>>0)/3|0;b:{c:{d:{e:{while(1){f:{g:{if((b|0)!=-1){c=i[i[i[a+8>>2]+12>>2]+(b<<2)>>2];if((c|0)!=-1){break g}}g=0;c=i[a+216>>2];if((c|0)==i[a+220>>2]){break f}while(1){f=o(g,144)+c|0;j=f+136|0;c=i[j>>2];l=f+140|0;d=i[l>>2];h:{if(c>>>0>>0){i[c>>2]=b;i[j>>2]=c+4;break h}m=f+132|0;f=i[m>>2];k=c-f|0;c=k>>2;e=c+1|0;if(e>>>0>=1073741824){break e}n=c<<2;d=d-f|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;i:{if(!e){break i}if(e>>>0>=1073741824){break d}c=ok(e<<2)}d=n+c|0;i[d>>2]=b;e=c+(e<<2)|0;d=d+4|0;if((k|0)>=1){$k(c,f,k)}i[m>>2]=c;i[j>>2]=d;i[l>>2]=e;if(!f){break h}Zk(f)}g=g+1|0;c=i[a+216>>2];if(g>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}break f}if((c>>>0)/3>>>0>>0){break f}g=0;if(i[a+220>>2]==i[a+216>>2]){break f}while(1){j:{if(!ld(i[a+368>>2]+(g<<4)|0)){break j}f=i[a+216>>2]+o(g,144)|0;j=f+136|0;c=i[j>>2];l=f+140|0;d=i[l>>2];if(c>>>0>>0){i[c>>2]=b;i[j>>2]=c+4;break j}m=f+132|0;f=i[m>>2];k=c-f|0;c=k>>2;e=c+1|0;if(e>>>0>=1073741824){break c}n=c<<2;d=d-f|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;k:{if(!e){break k}if(e>>>0>=1073741824){break b}c=ok(e<<2)}d=n+c|0;i[d>>2]=b;e=c+(e<<2)|0;d=d+4|0;if((k|0)>=1){$k(c,f,k)}i[m>>2]=c;i[j>>2]=d;i[l>>2]=e;if(!f){break j}Zk(f)}g=g+1|0;if(g>>>0<(i[a+220>>2]-i[a+216>>2]|0)/144>>>0){continue}break}}p=p+1|0;if((p|0)!=3){b=i[(p<<2)+h>>2];continue}break}H=h+16|0;return 1}Dk();x()}xa(8944);x()}Dk();x()}xa(8944);x()}function La(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=H-96|0;H=e;a:{if(!Ma(1,e+92|0,b)){break a}h=i[e+92>>2];if(!h){break a}d=i[b+8>>2];c=i[b+16>>2];c=kl(d-c|0,i[b+12>>2]-(i[b+20>>2]+(d>>>0>>0)|0)|0,5,0)>>>0>>0;d=J;if((d|0)<0?1:(d|0)<=0?c:0){break a}c=i[a+4>>2];d=i[a+8>>2]-c>>2;b:{if(h>>>0>d>>>0){Na(a+4|0,h-d|0);break b}if(h>>>0>=d>>>0){break b}i[a+8>>2]=c+(h<<2)}w=h>>>0>1?h:1;s=a+16|0;t=i[a+32>>2];u=1;while(1){c:{p=i[b+8>>2];n=i[b+16>>2];f=i[b+12>>2];c=f;d=i[b+20>>2];if((c|0)<(d|0)?1:(c|0)<=(d|0)?p>>>0<=n>>>0:0){break c}q=i[b>>2];v=j[q+n|0];c=d;k=n+1|0;if(k>>>0<1){c=c+1|0}g=b;i[b+16>>2]=k;i[b+20>>2]=c;if((f|0)<(c|0)?1:(f|0)<=(c|0)?p>>>0<=k>>>0:0){break c}k=j[k+q|0];c=d;l=n+2|0;if(l>>>0<2){c=c+1|0}i[b+16>>2]=l;i[g+20>>2]=c;if((f|0)<(c|0)?1:(f|0)<=(c|0)?p>>>0<=l>>>0:0){break c}l=j[l+q|0];c=d;r=n+3|0;if(r>>>0<3){c=c+1|0}i[b+16>>2]=r;i[g+20>>2]=c;if((f|0)<(c|0)?1:(f|0)<=(c|0)?p>>>0<=r>>>0:0){break c}f=j[r+q|0];c=d;d=n+4|0;if(d>>>0<4){c=c+1|0}i[b+16>>2]=d;i[g+20>>2]=c;if(!l|(v>>>0>4|(k+ -1&255)>>>0>10)){break c}d=Aa(e+24|0);c=o(Xf(k),l);Ba(d,v,l<<24>>24,k,(f|0)!=0,c,c>>31);if(!Ma(1,e+20|0,b)){break c}g=i[e+20>>2];i[e+84>>2]=g;c=ok(96);Fa(c,d);i[e+16>>2]=c;d=Hj(t,e+16|0);c=i[e+16>>2];i[e+16>>2]=0;if(c){Oa(c)}f=d<<2;i[i[f+i[t+8>>2]>>2]+60>>2]=g;i[i[a+4>>2]+(m<<2)>>2]=d;c=i[a+16>>2];g=i[a+20>>2]-c>>2;d:{if((d|0)<(g|0)){break d}i[e+12>>2]=-1;d=d+1|0;if(d>>>0>g>>>0){Pa(s,d-g|0,e+12|0);c=i[s>>2];break d}if(d>>>0>=g>>>0){break d}i[a+20>>2]=(d<<2)+c}i[c+f>>2]=m;m=m+1|0;u=m>>>0>>0;if((m|0)!=(w|0)){continue}}break}m=u^1}H=e+96|0;return m&1}function Kj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;a:{if((b|0)<0){break a}c=i[a+12>>2];d=i[a+8>>2];if(c-d>>2>>>0<=b>>>0){break a}d=d+(b<<2)|0;e=i[d>>2];h=i[e+60>>2];f=i[e+56>>2];e=d+4|0;b:{if((e|0)!=(c|0)){while(1){j=i[e>>2];i[e>>2]=0;g=i[d>>2];i[d>>2]=j;if(g){Oa(g)}d=d+4|0;e=e+4|0;if((e|0)!=(c|0)){continue}break}c=i[a+12>>2];if((d|0)==(c|0)){break b}}while(1){c=c+ -4|0;e=i[c>>2];i[c>>2]=0;if(e){Oa(e)}if((c|0)!=(d|0)){continue}break}}i[a+12>>2]=d;c=i[a+4>>2];if(c){Lj(c,h)}c:{if((f|0)>4){break c}d:{d=o(f,12)+a|0;c=i[d+20>>2];e=d+24|0;d=i[e>>2];if((c|0)==(d|0)){break d}while(1){if(i[c>>2]==(b|0)){break d}c=c+4|0;if((d|0)!=(c|0)){continue}break}break c}if((c|0)==(d|0)){break c}f=c+4|0;d=d-f|0;if(d){bl(c,f,d)}i[e>>2]=c+d}c=i[a+24>>2];d=i[a+20>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=i[f>>2];if((g|0)>(b|0)){i[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=i[a+36>>2];d=i[a+32>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=i[f>>2];if((g|0)>(b|0)){i[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=i[a+48>>2];d=i[a+44>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=i[f>>2];if((g|0)>(b|0)){i[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=i[a+60>>2];d=i[a+56>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=i[f>>2];if((g|0)>(b|0)){i[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=i[a+72>>2];a=i[a+68>>2];if((c|0)==(a|0)){break a}c=c-a>>2;d=c>>>0>1?c:1;c=0;while(1){e=a+(c<<2)|0;f=i[e>>2];if((f|0)>(b|0)){i[e>>2]=f+ -1}c=c+1|0;if((d|0)!=(c|0)){continue}break}}}function Jd(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=H+ -64|0;H=d;i[d+48>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a:{if(!Sd(d,b)|(i[d+12>>2]?0:a)){break a}if(!Md(1,d+56|0,b)){break a}f=i[b+8>>2];n=i[b+16>>2];g=n;l=f-g|0;k=i[d+60>>2];e=k;m=i[b+20>>2];g=i[b+12>>2]-(m+(f>>>0>>0)|0)|0;f=i[d+56>>2];if((e|0)==(g|0)&f>>>0>l>>>0|e>>>0>g>>>0){break a}k=k+m|0;g=n;m=g+f|0;if(m>>>0>>0){k=k+1|0}i[b+16>>2]=m;i[b+20>>2]=k;if((f|0)<1){break a}l=n+i[b>>2]|0;i[d+40>>2]=l;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=l+b|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;i[d+44>>2]=b;e=(f+l|0)+ -2|0;e=j[e+1|0]<<8&16128|j[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;i[d+44>>2]=b;e=(f+l|0)+ -3|0;e=j[e+1|0]<<8|j[e+2|0]<<16&4128768|j[e|0];break b}b=f+ -4|0;i[d+44>>2]=b;e=(f+l|0)+ -4|0;e=j[e+2|0]<<16|j[e+3|0]<<24&1056964608|j[e+1|0]<<8|j[e|0];break b}i[d+44>>2]=b;e=j[e|0]&63}h=e+4194304|0;i[g+48>>2]=h;p=h>>>0<1073741824;if(!a|h>>>0>1073741823){break a}m=i[d+28>>2];k=0;n=i[d+16>>2];while(1){g:{if(h>>>0>4194303){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;i[d+44>>2]=b;h=j[b+l|0]|h<<8;i[d+48>>2]=h;if(h>>>0<4194304){continue}break}}f=h&1048575;e=i[(f<<2)+n>>2];g=(e<<3)+m|0;h=(o(i[g>>2],h>>>20|0)+f|0)-i[g+4>>2]|0;i[d+48>>2]=h;i[(k<<2)+c>>2]=e;p=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=i[d+28>>2];if(a){i[d+32>>2]=a;Zk(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Zk(a)}a=i[d>>2];if(a){i[d+4>>2]=a;Zk(a)}H=d- -64|0;return p}function Hd(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=H+ -64|0;H=d;i[d+48>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a:{if(!Qd(d,b)|(i[d+12>>2]?0:a)){break a}if(!Md(1,d+56|0,b)){break a}f=i[b+8>>2];n=i[b+16>>2];g=n;l=f-g|0;k=i[d+60>>2];e=k;m=i[b+20>>2];g=i[b+12>>2]-(m+(f>>>0>>0)|0)|0;f=i[d+56>>2];if((e|0)==(g|0)&f>>>0>l>>>0|e>>>0>g>>>0){break a}k=k+m|0;g=n;m=g+f|0;if(m>>>0>>0){k=k+1|0}i[b+16>>2]=m;i[b+20>>2]=k;if((f|0)<1){break a}l=n+i[b>>2]|0;i[d+40>>2]=l;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=l+b|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;i[d+44>>2]=b;e=(f+l|0)+ -2|0;e=j[e+1|0]<<8&16128|j[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;i[d+44>>2]=b;e=(f+l|0)+ -3|0;e=j[e+1|0]<<8|j[e+2|0]<<16&4128768|j[e|0];break b}b=f+ -4|0;i[d+44>>2]=b;e=(f+l|0)+ -4|0;e=j[e+2|0]<<16|j[e+3|0]<<24&1056964608|j[e+1|0]<<8|j[e|0];break b}i[d+44>>2]=b;e=j[e|0]&63}h=e- -1048576|0;i[g+48>>2]=h;p=h>>>0<268435456;if(!a|h>>>0>268435455){break a}m=i[d+28>>2];k=0;n=i[d+16>>2];while(1){g:{if(h>>>0>1048575){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;i[d+44>>2]=b;h=j[b+l|0]|h<<8;i[d+48>>2]=h;if(h>>>0<1048576){continue}break}}f=h&262143;e=i[(f<<2)+n>>2];g=(e<<3)+m|0;h=(o(i[g>>2],h>>>18|0)+f|0)-i[g+4>>2]|0;i[d+48>>2]=h;i[(k<<2)+c>>2]=e;p=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=i[d+28>>2];if(a){i[d+32>>2]=a;Zk(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Zk(a)}a=i[d>>2];if(a){i[d+4>>2]=a;Zk(a)}H=d- -64|0;return p}function Sd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{if(!k[b+38>>1]){break a}n=a+12|0;if(!Kd(1,n,b)){break a}f=i[a+12>>2];c=i[a>>2];d=i[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){hd(a,f-d|0);f=i[a+12>>2];break b}if(f>>>0>=d>>>0){break b}i[a+4>>2]=c+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];l=i[b+12>>2];while(1){e=i[b+16>>2];d=i[b+20>>2];c=d;if((l|0)<(c|0)?1:(l|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];m=j[p+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=d;c=m>>>2|0;e=0;c:{d:{e:{f:{q=m&3;switch(q|0){case 0:break d;case 3:break f;default:break e}}d=c+g|0;if(d>>>0>=f>>>0){return 0}al(i[a>>2]+(g<<2)|0,0,(m&252)+4|0);g=d;break c}while(1){if((l|0)<(d|0)?1:(l|0)<=(d|0)?o>>>0<=h>>>0:0){return 0}m=j[h+p|0];h=h+1|0;if(h>>>0<1){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=m<<(e<<3|6)|c;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=c}g=g+1|0;f=i[n>>2];if(g>>>0>>0){continue}break}l=a+16|0;g=i[a>>2];b=i[a+16>>2];d=i[a+20>>2]-b|0;c=d>>2;g:{if(c>>>0<=1048575){hd(l,1048576-c|0);break g}if((d|0)==4194304){break g}i[a+20>>2]=b+4194304}h:{i:{b=a+28|0;d=i[b>>2];c=i[a+32>>2]-d>>3;if(f>>>0>c>>>0){Ld(b,f-c|0);d=i[b>>2];break i}if(f>>>0>>0){i[a+32>>2]=(f<<3)+d}if(f){break i}b=0;a=0;break h}a=i[g>>2];e=0;i[d+4>>2]=0;i[d>>2]=a;b=1;c=i[g>>2];if(c>>>0<=1048576){b=0;while(1){j:{if(e>>>0>>0){a=i[l>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((c|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+d|0;i[h+4>>2]=c;i[h>>2]=e;e=c;c=c+i[a>>2]|0;if(c>>>0>1048576){break j}continue}}break}b=b>>>0>>0}a=(c|0)==1048576}return a&(b^1)}return r}function Id(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=H+ -64|0;H=d;i[d+48>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a:{if(!Rd(d,b)|(i[d+12>>2]?0:a)){break a}if(!Md(1,d+56|0,b)){break a}f=i[b+8>>2];n=i[b+16>>2];g=n;l=f-g|0;k=i[d+60>>2];e=k;m=i[b+20>>2];g=i[b+12>>2]-(m+(f>>>0>>0)|0)|0;f=i[d+56>>2];if((e|0)==(g|0)&f>>>0>l>>>0|e>>>0>g>>>0){break a}k=k+m|0;g=n;m=g+f|0;if(m>>>0>>0){k=k+1|0}i[b+16>>2]=m;i[b+20>>2]=k;if((f|0)<1){break a}l=n+i[b>>2]|0;i[d+40>>2]=l;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=l+b|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;i[d+44>>2]=b;e=(f+l|0)+ -2|0;e=j[e+1|0]<<8&16128|j[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;i[d+44>>2]=b;e=(f+l|0)+ -3|0;e=j[e+1|0]<<8|j[e+2|0]<<16&4128768|j[e|0];break b}b=f+ -4|0;i[d+44>>2]=b;e=(f+l|0)+ -4|0;e=j[e+2|0]<<16|j[e+3|0]<<24&1056964608|j[e+1|0]<<8|j[e|0];break b}i[d+44>>2]=b;e=j[e|0]&63}h=e+2097152|0;i[g+48>>2]=h;p=h>>>0<536870912;if(!a|h>>>0>536870911){break a}m=i[d+28>>2];k=0;n=i[d+16>>2];while(1){g:{if(h>>>0>2097151){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;i[d+44>>2]=b;h=j[b+l|0]|h<<8;i[d+48>>2]=h;if(h>>>0<2097152){continue}break}}f=h&524287;e=i[(f<<2)+n>>2];g=(e<<3)+m|0;h=(o(i[g>>2],h>>>19|0)+f|0)-i[g+4>>2]|0;i[d+48>>2]=h;i[(k<<2)+c>>2]=e;p=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=i[d+28>>2];if(a){i[d+32>>2]=a;Zk(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Zk(a)}a=i[d>>2];if(a){i[d+4>>2]=a;Zk(a)}H=d- -64|0;return p}function Qd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{if(!k[b+38>>1]){break a}n=a+12|0;if(!Kd(1,n,b)){break a}f=i[a+12>>2];c=i[a>>2];d=i[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){hd(a,f-d|0);f=i[a+12>>2];break b}if(f>>>0>=d>>>0){break b}i[a+4>>2]=c+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];l=i[b+12>>2];while(1){e=i[b+16>>2];d=i[b+20>>2];c=d;if((l|0)<(c|0)?1:(l|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];m=j[p+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=d;c=m>>>2|0;e=0;c:{d:{e:{f:{q=m&3;switch(q|0){case 0:break d;case 3:break f;default:break e}}d=c+g|0;if(d>>>0>=f>>>0){return 0}al(i[a>>2]+(g<<2)|0,0,(m&252)+4|0);g=d;break c}while(1){if((l|0)<(d|0)?1:(l|0)<=(d|0)?o>>>0<=h>>>0:0){return 0}m=j[h+p|0];h=h+1|0;if(h>>>0<1){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=m<<(e<<3|6)|c;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=c}g=g+1|0;f=i[n>>2];if(g>>>0>>0){continue}break}l=a+16|0;g=i[a>>2];b=i[a+16>>2];d=i[a+20>>2]-b|0;c=d>>2;g:{if(c>>>0<=262143){hd(l,262144-c|0);break g}if((d|0)==1048576){break g}i[a+20>>2]=b- -1048576}h:{i:{b=a+28|0;d=i[b>>2];c=i[a+32>>2]-d>>3;if(f>>>0>c>>>0){Ld(b,f-c|0);d=i[b>>2];break i}if(f>>>0>>0){i[a+32>>2]=(f<<3)+d}if(f){break i}b=0;a=0;break h}a=i[g>>2];e=0;i[d+4>>2]=0;i[d>>2]=a;b=1;c=i[g>>2];if(c>>>0<=262144){b=0;while(1){j:{if(e>>>0>>0){a=i[l>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((c|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+d|0;i[h+4>>2]=c;i[h>>2]=e;e=c;c=c+i[a>>2]|0;if(c>>>0>262144){break j}continue}}break}b=b>>>0>>0}a=(c|0)==262144}return a&(b^1)}return r}function Rd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{if(!k[b+38>>1]){break a}n=a+12|0;if(!Kd(1,n,b)){break a}f=i[a+12>>2];c=i[a>>2];d=i[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){hd(a,f-d|0);f=i[a+12>>2];break b}if(f>>>0>=d>>>0){break b}i[a+4>>2]=c+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];l=i[b+12>>2];while(1){e=i[b+16>>2];d=i[b+20>>2];c=d;if((l|0)<(c|0)?1:(l|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];m=j[p+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=d;c=m>>>2|0;e=0;c:{d:{e:{f:{q=m&3;switch(q|0){case 0:break d;case 3:break f;default:break e}}d=c+g|0;if(d>>>0>=f>>>0){return 0}al(i[a>>2]+(g<<2)|0,0,(m&252)+4|0);g=d;break c}while(1){if((l|0)<(d|0)?1:(l|0)<=(d|0)?o>>>0<=h>>>0:0){return 0}m=j[h+p|0];h=h+1|0;if(h>>>0<1){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=m<<(e<<3|6)|c;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=c}g=g+1|0;f=i[n>>2];if(g>>>0>>0){continue}break}l=a+16|0;g=i[a>>2];b=i[a+16>>2];d=i[a+20>>2]-b|0;c=d>>2;g:{if(c>>>0<=524287){hd(l,524288-c|0);break g}if((d|0)==2097152){break g}i[a+20>>2]=b+2097152}h:{i:{b=a+28|0;d=i[b>>2];c=i[a+32>>2]-d>>3;if(f>>>0>c>>>0){Ld(b,f-c|0);d=i[b>>2];break i}if(f>>>0>>0){i[a+32>>2]=(f<<3)+d}if(f){break i}b=0;a=0;break h}a=i[g>>2];e=0;i[d+4>>2]=0;i[d>>2]=a;b=1;c=i[g>>2];if(c>>>0<=524288){b=0;while(1){j:{if(e>>>0>>0){a=i[l>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((c|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+d|0;i[h+4>>2]=c;i[h>>2]=e;e=c;c=c+i[a>>2]|0;if(c>>>0>524288){break j}continue}}break}b=b>>>0>>0}a=(c|0)==524288}return a&(b^1)}return r}function Gd(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=H+ -64|0;H=d;i[d+48>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a:{if(!Pd(d,b)|(i[d+12>>2]?0:a)){break a}if(!Md(1,d+56|0,b)){break a}f=i[b+8>>2];n=i[b+16>>2];g=n;l=f-g|0;k=i[d+60>>2];e=k;m=i[b+20>>2];g=i[b+12>>2]-(m+(f>>>0>>0)|0)|0;f=i[d+56>>2];if((e|0)==(g|0)&f>>>0>l>>>0|e>>>0>g>>>0){break a}k=k+m|0;g=n;m=g+f|0;if(m>>>0>>0){k=k+1|0}i[b+16>>2]=m;i[b+20>>2]=k;if((f|0)<1){break a}l=n+i[b>>2]|0;i[d+40>>2]=l;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=l+b|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;i[d+44>>2]=b;e=(f+l|0)+ -2|0;e=j[e+1|0]<<8&16128|j[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;i[d+44>>2]=b;e=(f+l|0)+ -3|0;e=j[e+1|0]<<8|j[e+2|0]<<16&4128768|j[e|0];break b}b=f+ -4|0;i[d+44>>2]=b;e=(f+l|0)+ -4|0;e=j[e+2|0]<<16|j[e+3|0]<<24&1056964608|j[e+1|0]<<8|j[e|0];break b}i[d+44>>2]=b;e=j[e|0]&63}h=e+262144|0;i[g+48>>2]=h;p=h>>>0<67108864;if(!a|h>>>0>67108863){break a}m=i[d+28>>2];k=0;n=i[d+16>>2];while(1){g:{if(h>>>0>262143){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;i[d+44>>2]=b;h=j[b+l|0]|h<<8;i[d+48>>2]=h;if(h>>>0<262144){continue}break}}f=h&65535;e=i[(f<<2)+n>>2];g=(e<<3)+m|0;h=(o(i[g>>2],h>>>16|0)+f|0)-i[g+4>>2]|0;i[d+48>>2]=h;i[(k<<2)+c>>2]=e;p=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=i[d+28>>2];if(a){i[d+32>>2]=a;Zk(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Zk(a)}a=i[d>>2];if(a){i[d+4>>2]=a;Zk(a)}H=d- -64|0;return p}function Fd(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=H+ -64|0;H=d;i[d+48>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a:{if(!Od(d,b)|(i[d+12>>2]?0:a)){break a}if(!Md(1,d+56|0,b)){break a}f=i[b+8>>2];n=i[b+16>>2];g=n;l=f-g|0;k=i[d+60>>2];e=k;m=i[b+20>>2];g=i[b+12>>2]-(m+(f>>>0>>0)|0)|0;f=i[d+56>>2];if((e|0)==(g|0)&f>>>0>l>>>0|e>>>0>g>>>0){break a}k=k+m|0;g=n;m=g+f|0;if(m>>>0>>0){k=k+1|0}i[b+16>>2]=m;i[b+20>>2]=k;if((f|0)<1){break a}l=n+i[b>>2]|0;i[d+40>>2]=l;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=l+b|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;i[d+44>>2]=b;e=(f+l|0)+ -2|0;e=j[e+1|0]<<8&16128|j[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;i[d+44>>2]=b;e=(f+l|0)+ -3|0;e=j[e+1|0]<<8|j[e+2|0]<<16&4128768|j[e|0];break b}b=f+ -4|0;i[d+44>>2]=b;e=(f+l|0)+ -4|0;e=j[e+2|0]<<16|j[e+3|0]<<24&1056964608|j[e+1|0]<<8|j[e|0];break b}i[d+44>>2]=b;e=j[e|0]&63}h=e+131072|0;i[g+48>>2]=h;p=h>>>0<33554432;if(!a|h>>>0>33554431){break a}m=i[d+28>>2];k=0;n=i[d+16>>2];while(1){g:{if(h>>>0>131071){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;i[d+44>>2]=b;h=j[b+l|0]|h<<8;i[d+48>>2]=h;if(h>>>0<131072){continue}break}}f=h&32767;e=i[(f<<2)+n>>2];g=(e<<3)+m|0;h=(o(i[g>>2],h>>>15|0)+f|0)-i[g+4>>2]|0;i[d+48>>2]=h;i[(k<<2)+c>>2]=e;p=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=i[d+28>>2];if(a){i[d+32>>2]=a;Zk(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Zk(a)}a=i[d>>2];if(a){i[d+4>>2]=a;Zk(a)}H=d- -64|0;return p}function Pd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{if(!k[b+38>>1]){break a}n=a+12|0;if(!Kd(1,n,b)){break a}f=i[a+12>>2];c=i[a>>2];d=i[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){hd(a,f-d|0);f=i[a+12>>2];break b}if(f>>>0>=d>>>0){break b}i[a+4>>2]=c+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];l=i[b+12>>2];while(1){e=i[b+16>>2];d=i[b+20>>2];c=d;if((l|0)<(c|0)?1:(l|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];m=j[p+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=d;c=m>>>2|0;e=0;c:{d:{e:{f:{q=m&3;switch(q|0){case 0:break d;case 3:break f;default:break e}}d=c+g|0;if(d>>>0>=f>>>0){return 0}al(i[a>>2]+(g<<2)|0,0,(m&252)+4|0);g=d;break c}while(1){if((l|0)<(d|0)?1:(l|0)<=(d|0)?o>>>0<=h>>>0:0){return 0}m=j[h+p|0];h=h+1|0;if(h>>>0<1){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=m<<(e<<3|6)|c;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=c}g=g+1|0;f=i[n>>2];if(g>>>0>>0){continue}break}l=a+16|0;g=i[a>>2];b=i[a+16>>2];d=i[a+20>>2]-b|0;c=d>>2;g:{if(c>>>0<=65535){hd(l,65536-c|0);break g}if((d|0)==262144){break g}i[a+20>>2]=b+262144}h:{i:{b=a+28|0;d=i[b>>2];c=i[a+32>>2]-d>>3;if(f>>>0>c>>>0){Ld(b,f-c|0);d=i[b>>2];break i}if(f>>>0>>0){i[a+32>>2]=(f<<3)+d}if(f){break i}b=0;a=0;break h}a=i[g>>2];e=0;i[d+4>>2]=0;i[d>>2]=a;b=1;c=i[g>>2];if(c>>>0<=65536){b=0;while(1){j:{if(e>>>0>>0){a=i[l>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((c|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+d|0;i[h+4>>2]=c;i[h>>2]=e;e=c;c=c+i[a>>2]|0;if(c>>>0>65536){break j}continue}}break}b=b>>>0>>0}a=(c|0)==65536}return a&(b^1)}return r}function Od(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{if(!k[b+38>>1]){break a}n=a+12|0;if(!Kd(1,n,b)){break a}f=i[a+12>>2];c=i[a>>2];d=i[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){hd(a,f-d|0);f=i[a+12>>2];break b}if(f>>>0>=d>>>0){break b}i[a+4>>2]=c+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];l=i[b+12>>2];while(1){e=i[b+16>>2];d=i[b+20>>2];c=d;if((l|0)<(c|0)?1:(l|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];m=j[p+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=d;c=m>>>2|0;e=0;c:{d:{e:{f:{q=m&3;switch(q|0){case 0:break d;case 3:break f;default:break e}}d=c+g|0;if(d>>>0>=f>>>0){return 0}al(i[a>>2]+(g<<2)|0,0,(m&252)+4|0);g=d;break c}while(1){if((l|0)<(d|0)?1:(l|0)<=(d|0)?o>>>0<=h>>>0:0){return 0}m=j[h+p|0];h=h+1|0;if(h>>>0<1){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=m<<(e<<3|6)|c;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=c}g=g+1|0;f=i[n>>2];if(g>>>0>>0){continue}break}l=a+16|0;g=i[a>>2];b=i[a+16>>2];d=i[a+20>>2]-b|0;c=d>>2;g:{if(c>>>0<=32767){hd(l,32768-c|0);break g}if((d|0)==131072){break g}i[a+20>>2]=b+131072}h:{i:{b=a+28|0;d=i[b>>2];c=i[a+32>>2]-d>>3;if(f>>>0>c>>>0){Ld(b,f-c|0);d=i[b>>2];break i}if(f>>>0>>0){i[a+32>>2]=(f<<3)+d}if(f){break i}b=0;a=0;break h}a=i[g>>2];e=0;i[d+4>>2]=0;i[d>>2]=a;b=1;c=i[g>>2];if(c>>>0<=32768){b=0;while(1){j:{if(e>>>0>>0){a=i[l>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((c|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+d|0;i[h+4>>2]=c;i[h>>2]=e;e=c;c=c+i[a>>2]|0;if(c>>>0>32768){break j}continue}}break}b=b>>>0>>0}a=(c|0)==32768}return a&(b^1)}return r}function Ed(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=H+ -64|0;H=d;i[d+48>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a:{if(!Nd(d,b)|(i[d+12>>2]?0:a)){break a}if(!Md(1,d+56|0,b)){break a}f=i[b+8>>2];n=i[b+16>>2];g=n;l=f-g|0;k=i[d+60>>2];e=k;m=i[b+20>>2];g=i[b+12>>2]-(m+(f>>>0>>0)|0)|0;f=i[d+56>>2];if((e|0)==(g|0)&f>>>0>l>>>0|e>>>0>g>>>0){break a}k=k+m|0;g=n;m=g+f|0;if(m>>>0>>0){k=k+1|0}i[b+16>>2]=m;i[b+20>>2]=k;if((f|0)<1){break a}l=n+i[b>>2]|0;i[d+40>>2]=l;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=l+b|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;i[d+44>>2]=b;e=(f+l|0)+ -2|0;e=j[e+1|0]<<8&16128|j[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;i[d+44>>2]=b;e=(f+l|0)+ -3|0;e=j[e+1|0]<<8|j[e+2|0]<<16&4128768|j[e|0];break b}b=f+ -4|0;i[d+44>>2]=b;e=(f+l|0)+ -4|0;e=j[e+2|0]<<16|j[e+3|0]<<24&1056964608|j[e+1|0]<<8|j[e|0];break b}i[d+44>>2]=b;e=j[e|0]&63}h=e+32768|0;i[g+48>>2]=h;p=h>>>0<8388608;if(!a|h>>>0>8388607){break a}m=i[d+28>>2];k=0;n=i[d+16>>2];while(1){g:{if(h>>>0>32767){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;i[d+44>>2]=b;h=j[b+l|0]|h<<8;i[d+48>>2]=h;if(h>>>0<32768){continue}break}}f=h&8191;e=i[(f<<2)+n>>2];g=(e<<3)+m|0;h=(o(i[g>>2],h>>>13|0)+f|0)-i[g+4>>2]|0;i[d+48>>2]=h;i[(k<<2)+c>>2]=e;p=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=i[d+28>>2];if(a){i[d+32>>2]=a;Zk(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Zk(a)}a=i[d>>2];if(a){i[d+4>>2]=a;Zk(a)}H=d- -64|0;return p}function Cd(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=H+ -64|0;H=d;i[d+48>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a:{if(!Ad(d,b)|(i[d+12>>2]?0:a)){break a}if(!Md(1,d+56|0,b)){break a}f=i[b+8>>2];n=i[b+16>>2];g=n;l=f-g|0;k=i[d+60>>2];e=k;m=i[b+20>>2];g=i[b+12>>2]-(m+(f>>>0>>0)|0)|0;f=i[d+56>>2];if((e|0)==(g|0)&f>>>0>l>>>0|e>>>0>g>>>0){break a}k=k+m|0;g=n;m=g+f|0;if(m>>>0>>0){k=k+1|0}i[b+16>>2]=m;i[b+20>>2]=k;if((f|0)<1){break a}l=n+i[b>>2]|0;i[d+40>>2]=l;g=d;b:{c:{d:{e:{f:{b=f+ -1|0;e=l+b|0;switch((j[e|0]>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}if((f|0)<2){break a}b=f+ -2|0;i[d+44>>2]=b;e=(f+l|0)+ -2|0;e=j[e+1|0]<<8&16128|j[e|0];break b}if((f|0)<3){break a}b=f+ -3|0;i[d+44>>2]=b;e=(f+l|0)+ -3|0;e=j[e+1|0]<<8|j[e+2|0]<<16&4128768|j[e|0];break b}b=f+ -4|0;i[d+44>>2]=b;e=(f+l|0)+ -4|0;e=j[e+2|0]<<16|j[e+3|0]<<24&1056964608|j[e+1|0]<<8|j[e|0];break b}i[d+44>>2]=b;e=j[e|0]&63}h=e+16384|0;i[g+48>>2]=h;p=h>>>0<4194304;if(!a|h>>>0>4194303){break a}m=i[d+28>>2];k=0;n=i[d+16>>2];while(1){g:{if(h>>>0>16383){break g}while(1){if((b|0)<1){break g}b=b+ -1|0;i[d+44>>2]=b;h=j[b+l|0]|h<<8;i[d+48>>2]=h;if(h>>>0<16384){continue}break}}f=h&4095;e=i[(f<<2)+n>>2];g=(e<<3)+m|0;h=(o(i[g>>2],h>>>12|0)+f|0)-i[g+4>>2]|0;i[d+48>>2]=h;i[(k<<2)+c>>2]=e;p=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=i[d+28>>2];if(a){i[d+32>>2]=a;Zk(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;Zk(a)}a=i[d>>2];if(a){i[d+4>>2]=a;Zk(a)}H=d- -64|0;return p}function Nd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{if(!k[b+38>>1]){break a}n=a+12|0;if(!Kd(1,n,b)){break a}f=i[a+12>>2];c=i[a>>2];d=i[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){hd(a,f-d|0);f=i[a+12>>2];break b}if(f>>>0>=d>>>0){break b}i[a+4>>2]=c+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];l=i[b+12>>2];while(1){e=i[b+16>>2];d=i[b+20>>2];c=d;if((l|0)<(c|0)?1:(l|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];m=j[p+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=d;c=m>>>2|0;e=0;c:{d:{e:{f:{q=m&3;switch(q|0){case 0:break d;case 3:break f;default:break e}}d=c+g|0;if(d>>>0>=f>>>0){return 0}al(i[a>>2]+(g<<2)|0,0,(m&252)+4|0);g=d;break c}while(1){if((l|0)<(d|0)?1:(l|0)<=(d|0)?o>>>0<=h>>>0:0){return 0}m=j[h+p|0];h=h+1|0;if(h>>>0<1){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=m<<(e<<3|6)|c;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=c}g=g+1|0;f=i[n>>2];if(g>>>0>>0){continue}break}l=a+16|0;g=i[a>>2];b=i[a+16>>2];d=i[a+20>>2]-b|0;c=d>>2;g:{if(c>>>0<=8191){hd(l,8192-c|0);break g}if((d|0)==32768){break g}i[a+20>>2]=b+32768}h:{i:{b=a+28|0;d=i[b>>2];c=i[a+32>>2]-d>>3;if(f>>>0>c>>>0){Ld(b,f-c|0);d=i[b>>2];break i}if(f>>>0>>0){i[a+32>>2]=(f<<3)+d}if(f){break i}b=0;a=0;break h}a=i[g>>2];e=0;i[d+4>>2]=0;i[d>>2]=a;b=1;c=i[g>>2];if(c>>>0<=8192){b=0;while(1){j:{if(e>>>0>>0){a=i[l>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((c|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+d|0;i[h+4>>2]=c;i[h>>2]=e;e=c;c=c+i[a>>2]|0;if(c>>>0>8192){break j}continue}}break}b=b>>>0>>0}a=(c|0)==8192}return a&(b^1)}return r}function Ad(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:{if(!k[b+38>>1]){break a}n=a+12|0;if(!Kd(1,n,b)){break a}f=i[a+12>>2];c=i[a>>2];d=i[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){hd(a,f-d|0);f=i[a+12>>2];break b}if(f>>>0>=d>>>0){break b}i[a+4>>2]=c+(f<<2)}if(!f){r=1;break a}o=i[b+8>>2];l=i[b+12>>2];while(1){e=i[b+16>>2];d=i[b+20>>2];c=d;if((l|0)<(c|0)?1:(l|0)<=(c|0)?o>>>0<=e>>>0:0){break a}p=i[b>>2];m=j[p+e|0];e=e+1|0;if(e>>>0<1){d=d+1|0}h=e;i[b+16>>2]=e;i[b+20>>2]=d;c=m>>>2|0;e=0;c:{d:{e:{f:{q=m&3;switch(q|0){case 0:break d;case 3:break f;default:break e}}d=c+g|0;if(d>>>0>=f>>>0){return 0}al(i[a>>2]+(g<<2)|0,0,(m&252)+4|0);g=d;break c}while(1){if((l|0)<(d|0)?1:(l|0)<=(d|0)?o>>>0<=h>>>0:0){return 0}m=j[h+p|0];h=h+1|0;if(h>>>0<1){d=d+1|0}i[b+16>>2]=h;i[b+20>>2]=d;c=m<<(e<<3|6)|c;e=e+1|0;if((q|0)!=(e|0)){continue}break}}i[i[a>>2]+(g<<2)>>2]=c}g=g+1|0;f=i[n>>2];if(g>>>0>>0){continue}break}l=a+16|0;g=i[a>>2];b=i[a+16>>2];d=i[a+20>>2]-b|0;c=d>>2;g:{if(c>>>0<=4095){hd(l,4096-c|0);break g}if((d|0)==16384){break g}i[a+20>>2]=b+16384}h:{i:{b=a+28|0;d=i[b>>2];c=i[a+32>>2]-d>>3;if(f>>>0>c>>>0){Ld(b,f-c|0);d=i[b>>2];break i}if(f>>>0>>0){i[a+32>>2]=(f<<3)+d}if(f){break i}b=0;a=0;break h}a=i[g>>2];e=0;i[d+4>>2]=0;i[d>>2]=a;b=1;c=i[g>>2];if(c>>>0<=4096){b=0;while(1){j:{if(e>>>0>>0){a=i[l>>2];while(1){i[a+(e<<2)>>2]=b;e=e+1|0;if((c|0)!=(e|0)){continue}break}}b=b+1|0;if((f|0)!=(b|0)){a=g+(b<<2)|0;e=i[a>>2];h=(b<<3)+d|0;i[h+4>>2]=c;i[h>>2]=e;e=c;c=c+i[a>>2]|0;if(c>>>0>4096){break j}continue}}break}b=b>>>0>>0}a=(c|0)==4096}return a&(b^1)}return r}function Ge(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;h=H-16|0;H=h;a:{if(!jd(a+80|0,a)){break a}if(!ve(a)){break a}c=i[a+4>>2];i[b>>2]=i[a>>2];i[b+4>>2]=c;c=i[a+36>>2];i[b+32>>2]=i[a+32>>2];i[b+36>>2]=c;c=i[a+28>>2];i[b+24>>2]=i[a+24>>2];i[b+28>>2]=c;c=i[a+20>>2];i[b+16>>2]=i[a+16>>2];i[b+20>>2]=c;c=i[a+12>>2];i[b+8>>2]=i[a+8>>2];i[b+12>>2]=c;i[a+176>>2]=2;i[a+180>>2]=7;c=i[a+152>>2];if((c|0)<0){break a}i[h+12>>2]=0;d=2;f=i[a+156>>2];g=i[a+160>>2]-f>>2;b:{if(c>>>0>g>>>0){Pa(a+156|0,c-g|0,h+12|0);d=i[a+176>>2];e=i[a+180>>2];break b}e=7;if(c>>>0>=g>>>0){break b}i[a+160>>2]=f+(c<<2)}g=a+184|0;e=(e-d|0)+1|0;c=i[a+188>>2];f=i[a+184>>2];d=(c-f|0)/12|0;c:{if(e>>>0>d>>>0){Ie(g,e-d|0);e=i[a+188>>2];break c}if(e>>>0>=d>>>0){e=c;break c}e=f+o(e,12)|0;if((e|0)!=(c|0)){while(1){d=c+ -12|0;f=i[d>>2];if(f){i[c+ -8>>2]=f;Zk(f)}c=d;if((c|0)!=(e|0)){continue}break}}i[a+188>>2]=e}l=a+196|0;c=i[a+184>>2];d=(e-c|0)/12|0;j=i[a+196>>2];f=i[a+200>>2]-j>>2;d:{if(d>>>0>f>>>0){Na(l,d-f|0);c=i[a+184>>2];e=i[a+188>>2];break d}if(d>>>0>=f>>>0){break d}i[a+200>>2]=j+(d<<2)}d=1;if((c|0)==(e|0)){break a}c=0;while(1){e:{if(!qe(1,h+8|0,b)){break e}d=i[h+8>>2];e=i[a+148>>2];if(d>>>0>(i[e+4>>2]-i[e>>2]>>2>>>0)/3>>>0){break e}if(d){e=i[g>>2];m=o(c,12);f=e+m|0;j=i[f>>2];k=i[f+4>>2]-j>>2;f:{if(d>>>0>k>>>0){hd(f,d-k|0);e=i[g>>2];break f}if(d>>>0>=k>>>0){break f}i[f+4>>2]=(d<<2)+j}xd(d,1,b,i[e+m>>2]);i[i[l>>2]+(c<<2)>>2]=d}d=1;c=c+1|0;if(c>>>0<(i[a+188>>2]-i[a+184>>2]|0)/12>>>0){continue}break a}break}d=0}H=h+16|0;return d}function pb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=H-16|0;H=e;h=K[i[i[a>>2]+24>>2]](a)|0;a:{if((h|0)<1){break a}q=a+48|0;k=1;while(1){b:{c:{if(!i[(K[i[i[a>>2]+28>>2]](a)|0)+40>>2]){break c}l=f<<2;b=i[l+i[a+36>>2]>>2];c=i[b+8>>2];m=db(b);if(!m){break c}n=i[(K[i[i[a>>2]+28>>2]](a)|0)+40>>2];o=i[c+56>>2];b=ok(32);i[e>>2]=b;i[e+4>>2]=24;i[e+8>>2]=-2147483616;g[b+24|0]=0;c=j[1808]|j[1809]<<8|(j[1810]<<16|j[1811]<<24);d=j[1804]|j[1805]<<8|(j[1806]<<16|j[1807]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[1800]|j[1801]<<8|(j[1802]<<16|j[1803]<<24);d=j[1796]|j[1797]<<8|(j[1798]<<16|j[1799]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[1792]|j[1793]<<8|(j[1794]<<16|j[1795]<<24);d=j[1788]|j[1789]<<8|(j[1790]<<16|j[1791]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;d:{e:{d=n+16|0;b=d;c=i[b>>2];if(!c){break e}while(1){p=i[c+16>>2]<(o|0);b=p?b:c;c=i[(p<<2)+c>>2];if(c){continue}break}if((b|0)==(d|0)|(o|0)>2]){break e}b=b+20|0;if(!Za(b,e)){break e}b=$f(b,e);break d}b=$f(n,e)}if(g[e+11|0]<=-1){Zk(i[e>>2])}if(!b){break c}Ha(i[i[i[a+36>>2]+l>>2]+8>>2],m);break b}b=i[i[a+36>>2]+(f<<2)>>2];if(!(K[i[i[b>>2]+24>>2]](b,q)|0)){break a}}f=f+1|0;k=(f|0)<(h|0);if((f|0)!=(h|0)){continue}break}}H=e+16|0;return(k^-1)&1}function vd(a,b,c,d,e){var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{b:{c:{d:{e:{n=a+4|0;f:{if((n|0)==(b|0)){break f}f=j[b+27|0];h=f<<24>>24<0;k=j[e+11|0];p=k<<24>>24;g=(p|0)<0;f=h?i[b+20>>2]:f;k=g?i[e+4>>2]:k;l=f>>>0>>0;m=l?f:k;if(m){g=g?i[e>>2]:e;o=b+16|0;h=h?i[o>>2]:o;o=Nj(g,h,m);if(!o){if(k>>>0>>0){break f}break e}if((o|0)>-1){break e}break f}if(k>>>0>=f>>>0){break d}}h=i[b>>2];g:{h:{if(i[a>>2]==(b|0)){d=b;break h}i:{if(h){f=h;while(1){d=f;f=i[f+4>>2];if(f){continue}break}break i}d=b+8|0;if(i[i[b+8>>2]>>2]==(b|0)){while(1){f=i[d>>2];d=f+8|0;if((f|0)==i[i[f+8>>2]>>2]){continue}break}}d=i[d>>2]}g=j[e+11|0];f=g<<24>>24<0;l=j[d+27|0];k=l<<24>>24<0;j:{g=f?i[e+4>>2]:g;l=k?i[d+20>>2]:l;m=g>>>0>>0?g:l;if(m){n=d+16|0;f=Nj(k?i[n>>2]:n,f?i[e>>2]:e,m);if(f){break j}}if(l>>>0>>0){break h}break g}if((f|0)>-1){break g}}if(!h){i[c>>2]=b;return b}i[c>>2]=d;return d+4|0}return wd(a,c,e)}f=Nj(h,g,m);if(f){break c}}if(l){break b}break a}if((f|0)>-1){break a}}h=i[b+4>>2];k:{if(h){f=h;while(1){d=f;f=i[f>>2];if(f){continue}break}break k}d=i[b+8>>2];if(i[d>>2]==(b|0)){break k}f=b+8|0;while(1){g=i[f>>2];f=g+8|0;d=i[g+8>>2];if((g|0)!=i[d>>2]){continue}break}}l:{m:{if((d|0)==(n|0)){break m}g=j[d+27|0];f=g<<24>>24<0;n:{g=f?i[d+20>>2]:g;l=g>>>0>>0?g:k;if(l){m=d+16|0;f=Nj((p|0)<0?i[e>>2]:e,f?i[m>>2]:m,l);if(f){break n}}if(k>>>0>>0){break m}break l}if((f|0)>-1){break l}}if(!h){i[c>>2]=b;return b+4|0}i[c>>2]=d;return d}return wd(a,c,e)}i[c>>2]=b;i[d>>2]=b;return d}function ue(a,b){var c=0,d=0,e=0,f=0,h=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;p=H-16|0;H=p;s=-1;a:{b:{c:{if(!qe(1,p+12|0,b)){break c}d=i[p+12>>2];if(d){c=i[a+8>>2];if(d>>>0>(i[c+4>>2]-i[c>>2]>>2>>>0)/3>>>0){break c}t=a+36|0;while(1){if(!qe(1,p+8|0,b)){break c}c=i[p+8>>2];if(!qe(1,p+8|0,b)){break c}m=c+m|0;c=i[p+8>>2];if(m>>>0>>0){break c}h=m-c|0;c=i[a+40>>2];n=i[a+44>>2];d:{if((c|0)!=(n|0)){i[c+4>>2]=m;i[c>>2]=h;i[a+40>>2]=c+12;break d}e=c;c=i[t>>2];q=e-c|0;e=(q|0)/12|0;f=e+1|0;if(f>>>0>=357913942){break b}u=o(e,12);n=(n-c|0)/12|0;e=n<<1;f=n>>>0<178956970?e>>>0>>0?f:e:357913941;e=0;e:{if(!f){break e}if(f>>>0>=357913942){break a}e=ok(o(f,12))}n=u+e|0;i[n+4>>2]=m;i[n>>2]=h;h=n+o((q|0)/-12|0,12)|0;e=e+o(f,12)|0;f=n+12|0;if((q|0)>=1){$k(h,c,q)}i[a+44>>2]=e;i[a+40>>2]=f;i[a+36>>2]=h;if(!c){break d}Zk(c)}r=r+1|0;if((d|0)!=(r|0)){continue}break}m=0;Uf(b,0,0);q=d>>>0>1?d:1;while(1){d=j[b+36|0];c=k[i[a+4>>2]+36>>1];f:{if((c<<24|c<<8&16711680)>>>16>>>0<=513){if(!d){break f}h=0;d=i[b+32>>2];r=d>>>3|0;e=i[b+24>>2];c=r+e|0;f=i[b+28>>2];g:{if(c>>>0>=f>>>0){c=d;break g}h=j[c|0];c=d+1|0;i[b+32>>2]=c;r=c>>>3|0;h=h>>>(d&7)&1}if(e+r>>>0>=f>>>0){break f}i[b+32>>2]=c+1;break f}if(!d){break f}h=0;d=i[b+32>>2];c=i[b+24>>2]+(d>>>3|0)|0;if(c>>>0>=l[b+28>>2]){break f}c=j[c|0];i[b+32>>2]=d+1;h=c>>>(d&7)&1}d=i[a+36>>2]+o(m,12)|0;g[d+8|0]=j[d+8|0]&254|h&1;m=m+1|0;if((q|0)!=(m|0)){continue}break}Wf(b)}s=i[b+16>>2]}H=p+16|0;return s}Dk();x()}xa(8944);x()}function nd(a,b){var c=0,d=0,e=0;c=H-96|0;H=c;d=i[b+36>>2];i[c+88>>2]=i[b+32>>2];i[c+92>>2]=d;d=i[b+28>>2];i[c+80>>2]=i[b+24>>2];i[c+84>>2]=d;d=i[b+20>>2];i[c+72>>2]=i[b+16>>2];i[c+76>>2]=d;e=i[b+12>>2];d=c- -64|0;i[d>>2]=i[b+8>>2];i[d+4>>2]=e;d=i[b+4>>2];i[c+56>>2]=i[b>>2];i[c+60>>2]=d;Ef(c+24|0,c+56|0,c+40|0);b=i[c+24>>2];a:{if(b){i[a>>2]=b;rk(a+4|0,c+24|4);if(g[c+39|0]>-1){break a}Zk(i[c+28>>2]);break a}if(g[c+39|0]<=-1){Zk(i[c+28>>2])}b=j[c+47|0];if(b>>>0>=2){b=ok(32);i[c+8>>2]=b;i[c+12>>2]=26;i[c+16>>2]=-2147483616;g[b+26|0]=0;d=j[8009]|j[8010]<<8;g[b+24|0]=d;g[b+25|0]=d>>>8;d=j[8005]|j[8006]<<8|(j[8007]<<16|j[8008]<<24);e=j[8001]|j[8002]<<8|(j[8003]<<16|j[8004]<<24);g[b+16|0]=e;g[b+17|0]=e>>>8;g[b+18|0]=e>>>16;g[b+19|0]=e>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[7997]|j[7998]<<8|(j[7999]<<16|j[8e3]<<24);e=j[7993]|j[7994]<<8|(j[7995]<<16|j[7996]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[7989]|j[7990]<<8|(j[7991]<<16|j[7992]<<24);e=j[7985]|j[7986]<<8|(j[7987]<<16|j[7988]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[c+24>>2]=-1;b=rk(c+24|4,c+8|0);i[a>>2]=i[c+24>>2];rk(a+4|0,b);if(g[b+11|0]<=-1){Zk(i[b>>2])}if(g[c+19|0]>-1){break a}Zk(i[c+8>>2]);break a}i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;i[a+8>>2]=0;i[a+12>>2]=0}H=c+96|0}function od(a,b,c,d){var e=0,f=0,h=0;e=H-80|0;H=e;f=i[c+36>>2];i[e+72>>2]=i[c+32>>2];i[e+76>>2]=f;h=i[c+28>>2];f=e- -64|0;i[f>>2]=i[c+24>>2];i[f+4>>2]=h;f=i[c+20>>2];i[e+56>>2]=i[c+16>>2];i[e+60>>2]=f;f=i[c+12>>2];i[e+48>>2]=i[c+8>>2];i[e+52>>2]=f;f=i[c+4>>2];i[e+40>>2]=i[c>>2];i[e+44>>2]=f;Ef(a,e+40|0,e+24|0);a:{if(i[a>>2]){break a}f=a+4|0;if(g[a+15|0]<=-1){Zk(i[f>>2])}if(j[e+31|0]!=1){b=ok(32);i[e>>2]=b;i[e+4>>2]=20;i[e+8>>2]=-2147483616;g[b+20|0]=0;c=j[8028]|j[8029]<<8|(j[8030]<<16|j[8031]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;c=j[8024]|j[8025]<<8|(j[8026]<<16|j[8027]<<24);d=j[8020]|j[8021]<<8|(j[8022]<<16|j[8023]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[8016]|j[8017]<<8|(j[8018]<<16|j[8019]<<24);d=j[8012]|j[8013]<<8|(j[8014]<<16|j[8015]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;rk(f,e);if(g[e+11|0]>-1){break a}Zk(i[e>>2]);break a}md(e,j[e+32|0]);h=i[e>>2];b:{if(h){i[a>>2]=h;rk(f,e|4);break b}h=i[e+16>>2];i[e+16>>2]=0;i[h+44>>2]=d;Hf(a,h,b,c,d);if(!i[a>>2]){if(g[f+11|0]<=-1){Zk(i[f>>2])}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}if(!h){break b}K[i[i[h>>2]+4>>2]](h)}a=i[e+16>>2];i[e+16>>2]=0;if(a){K[i[i[a>>2]+4>>2]](a)}if(g[e+15|0]>-1){break a}Zk(i[e+4>>2])}H=e+80|0}function Hc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;i[a+8>>2]=e;h=a+32|0;g=i[h>>2];f=i[a+36>>2]-g>>2;a:{if(f>>>0>>0){Na(h,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=g+(e<<2)}h=0;f=(e&1073741823)!=(e|0)?-1:e<<2;n=al(ok(f),0,f);g=i[a+8>>2];b:{if((g|0)<1){break b}while(1){f=h<<2;g=i[f+n>>2];j=i[a+16>>2];c:{if((g|0)>(j|0)){k=i[a+32>>2];i[f+k>>2]=j;break c}k=i[a+32>>2];f=f+k|0;j=i[a+12>>2];if((g|0)<(j|0)){i[f>>2]=j;break c}i[f>>2]=g}h=h+1|0;g=i[a+8>>2];if((h|0)<(g|0)){continue}break}if((g|0)<1){break b}j=0;while(1){h=j<<2;f=h+c|0;h=i[b+h>>2]+i[h+k>>2]|0;i[f>>2]=h;d:{if((h|0)>i[a+16>>2]){h=h-i[a+20>>2]|0}else{if((h|0)>=i[a+12>>2]){break d}h=h+i[a+20>>2]|0}i[f>>2]=h}j=j+1|0;g=i[a+8>>2];if((j|0)<(g|0)){continue}break}}if((e|0)<(d|0)){p=0-e<<2;f=e;while(1){e:{if((g|0)<1){break e}m=f<<2;o=m+c|0;q=o+p|0;h=0;while(1){g=h<<2;j=i[g+q>>2];l=i[a+16>>2];f:{if((j|0)>(l|0)){k=i[a+32>>2];i[g+k>>2]=l;break f}k=i[a+32>>2];g=g+k|0;l=i[a+12>>2];if((j|0)<(l|0)){i[g>>2]=l;break f}i[g>>2]=j}h=h+1|0;g=i[a+8>>2];if((h|0)<(g|0)){continue}break}j=0;if((g|0)<1){break e}m=b+m|0;while(1){g=j<<2;h=g+o|0;g=i[g+m>>2]+i[g+k>>2]|0;i[h>>2]=g;g:{if((g|0)>i[a+16>>2]){g=g-i[a+20>>2]|0}else{if((g|0)>=i[a+12>>2]){break g}g=g+i[a+20>>2]|0}i[h>>2]=g}j=j+1|0;g=i[a+8>>2];if((j|0)<(g|0)){continue}break}}f=e+f|0;if((f|0)<(d|0)){continue}break}}Zk(n);return 1}function Ff(a,b){var c=0,d=0,e=0;e=H-48|0;H=e;c=ok(36);i[c+4>>2]=0;i[c+8>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;i[c>>2]=c+4;i[c+12>>2]=c+16;i[e+40>>2]=c;d=e+32|0;i[d>>2]=0;a:{if(!pj(d,i[b+32>>2],c)){b=ok(32);i[e+16>>2]=b;i[e+20>>2]=26;i[e+24>>2]=-2147483616;g[b+26|0]=0;c=j[10350]|j[10351]<<8;g[b+24|0]=c;g[b+25|0]=c>>>8;c=j[10346]|j[10347]<<8|(j[10348]<<16|j[10349]<<24);d=j[10342]|j[10343]<<8|(j[10344]<<16|j[10345]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[10338]|j[10339]<<8|(j[10340]<<16|j[10341]<<24);d=j[10334]|j[10335]<<8|(j[10336]<<16|j[10337]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[10330]|j[10331]<<8|(j[10332]<<16|j[10333]<<24);d=j[10326]|j[10327]<<8|(j[10328]<<16|j[10329]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;rk(a+4|0,e+16|0);if(g[e+27|0]>-1){break a}Zk(i[e+16>>2]);break a}b=i[b+4>>2];i[e+8>>2]=0;i[e+40>>2]=0;d=i[b+4>>2];i[b+4>>2]=c;b:{if(!d){i[e+8>>2]=0;break b}Gf(d);b=i[e+8>>2];i[e+8>>2]=0;if(!b){break b}Gf(b)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}a=i[e+40>>2];i[e+40>>2]=0;if(a){Gf(a)}H=e+48|0}function je(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;d=H-112|0;H=d;l=i[i[b+4>>2]+44>>2];h=ok(120);e=h;i[e+12>>2]=0;i[e+16>>2]=0;i[e>>2]=9052;i[e+4>>2]=0;i[e+8>>2]=9264;i[e+116>>2]=0;i[e+112>>2]=c;i[e+108>>2]=l;i[e+104>>2]=0;i[e+96>>2]=0;i[e+100>>2]=0;i[e+20>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+56>>2]=0;i[e+60>>2]=0;e=e- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[h+72>>2]=0;i[h+76>>2]=0;i[h+80>>2]=0;i[h+84>>2]=0;i[h+88>>2]=0;b=i[b+8>>2];i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;e=d+32|0;i[e>>2]=0;i[e+4>>2]=0;m=d+24|0;j=m;i[j>>2]=0;i[j+4>>2]=0;j=d+16|0;f=j;i[f>>2]=0;i[f+4>>2]=0;f=d- -64|0;i[f>>2]=0;i[f+4>>2]=0;i[d+72>>2]=0;i[d+76>>2]=0;f=d+80|0;i[f>>2]=0;i[f+4>>2]=0;i[d+88>>2]=0;i[d+104>>2]=0;i[d+56>>2]=0;i[d+60>>2]=0;i[d+8>>2]=9264;i[d+96>>2]=0;i[d+100>>2]=0;i[d+12>>2]=b;k=i[b>>2];n=i[b+4>>2];g[d+111|0]=0;ke(e,(n-k>>2>>>0)/3|0,d+111|0);e=i[d+12>>2];k=i[e+28>>2];e=i[e+24>>2];g[d+111|0]=0;ke(d+44|0,k-e>>2,d+111|0);i[d+28>>2]=h;i[m>>2]=l;i[d+20>>2]=c;i[j>>2]=b;me(h,d+8|0);i[a>>2]=h;i[d+8>>2]=9264;a=i[d+96>>2];if(a){i[d+100>>2]=a;Zk(a)}a=i[f>>2];if(a){i[d+84>>2]=a;Zk(a)}a=i[d+68>>2];if(a){i[d+72>>2]=a;Zk(a)}a=i[d+56>>2];if(a){i[d+60>>2]=a;Zk(a)}i[d+8>>2]=9500;a=i[d+44>>2];if(a){Zk(a)}a=i[d+32>>2];if(a){Zk(a)}H=d+112|0}function te(a,b){var c=0,d=0,e=0,f=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if((e-c|0)/144>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=o(b,144)+c|0;while(1){i[c>>2]=-1;fj(c+4|0);i[c+104>>2]=0;i[c+108>>2]=0;g[c+100|0]=1;i[c+112>>2]=0;i[c+116>>2]=0;i[c+120>>2]=0;i[c+124>>2]=0;i[c+128>>2]=0;i[c+132>>2]=0;i[c+136>>2]=0;i[c+140>>2]=0;c=c+144|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{b:{c:{f=i[a>>2];c=(c-f|0)/144|0;d=c+b|0;if(d>>>0<29826162){h=o(c,144);e=(e-f|0)/144|0;f=e<<1;e=e>>>0<14913080?f>>>0>>0?d:f:29826161;c=0;d:{if(!e){break d}if(e>>>0>=29826162){break c}c=ok(o(e,144))}d=h+c|0;f=d+o(b,144)|0;e=c+o(e,144)|0;c=d;while(1){i[c>>2]=-1;fj(c+4|0);i[c+104>>2]=0;i[c+108>>2]=0;g[c+100|0]=1;i[c+112>>2]=0;i[c+116>>2]=0;i[c+120>>2]=0;i[c+124>>2]=0;i[c+128>>2]=0;i[c+132>>2]=0;i[c+136>>2]=0;i[c+140>>2]=0;c=c+144|0;if((f|0)!=(c|0)){continue}break}b=i[a+4>>2];c=i[a>>2];if((b|0)==(c|0)){break b}while(1){b=b+ -144|0;d=rf(d+ -144|0,b);if((b|0)!=(c|0)){continue}break}c=i[a+4>>2];b=i[a>>2];break a}Dk();x()}xa(8944);x()}b=c}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=d;if((b|0)!=(c|0)){while(1){a=i[c+ -12>>2];if(a){i[c+ -8>>2]=a;Zk(a)}a=i[c+ -28>>2];if(a){i[c+ -24>>2]=a;Zk(a)}a=c+ -144|0;d=i[c+ -40>>2];if(d){i[c+ -36>>2]=d;Zk(d)}se(c+ -140|0);c=a;if((b|0)!=(c|0)){continue}break}}if(b){Zk(b)}}function md(a,b){var c=0,d=0,e=0;e=H-32|0;H=e;a:{b:{switch(b|0){case 0:b=ok(48);Td(b);i[b>>2]=9992;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;break a;case 1:b=ok(52);Td(b);i[b+48>>2]=0;i[b>>2]=8232;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=b;break a;default:break b}}b=ok(32);i[e>>2]=b;i[e+4>>2]=28;i[e+8>>2]=-2147483616;g[b+28|0]=0;c=j[7980]|j[7981]<<8|(j[7982]<<16|j[7983]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;c=j[7976]|j[7977]<<8|(j[7978]<<16|j[7979]<<24);d=j[7972]|j[7973]<<8|(j[7974]<<16|j[7975]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[7968]|j[7969]<<8|(j[7970]<<16|j[7971]<<24);d=j[7964]|j[7965]<<8|(j[7966]<<16|j[7967]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[7960]|j[7961]<<8|(j[7962]<<16|j[7963]<<24);d=j[7956]|j[7957]<<8|(j[7958]<<16|j[7959]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[e+16>>2]=-1;b=rk(e+16|4,e);i[a>>2]=i[e+16>>2];rk(a+4|0,b);i[a+16>>2]=0;if(g[b+11|0]<=-1){Zk(i[b>>2])}if(g[e+11|0]>-1){break a}Zk(i[e>>2])}H=e+32|0}function fc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0;m=H-16|0;H=m;e=i[b+12>>2];c=i[b+20>>2];f=i[b+16>>2];d=f+4|0;if(d>>>0<4){c=c+1|0}g=d;d=c;a:{if((e|0)<(c|0)?1:(e|0)<=(c|0)?l[b+8>>2]>>0:0){break a}c=f+i[b>>2]|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=g;i[b+20>>2]=d;if((c|0)<0){break a}Xb(a+76|0,c);g=id(m);b:{if(!jd(g,b)){break b}if((c|0)>=1){e=1;while(1){f=1<<(k&31);h=ld(g);d=i[a+76>>2]+(k>>>3&536870908)|0;e=e^h;h=i[d>>2]|f;c:{if(!(e&1)){break c}h=i[d>>2]&(f^-1)}f=h;e=e^1;i[d>>2]=f;k=k+1|0;if((c|0)!=(k|0)){continue}break}}d=i[b+12>>2];k=d;c=i[b+20>>2];e=c;g=i[b+16>>2];f=g+4|0;if(f>>>0<4){c=c+1|0}n=i[b+8>>2];h=f;f=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?n>>>0>>0:0){break b}o=i[b>>2];c=o+g|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=f;c=e;e=g+8|0;if(e>>>0<8){c=c+1|0}f=e;e=c;if((k|0)<(c|0)?1:(k|0)<=(c|0)?n>>>0>>0:0){break b}c=h+o|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=e;if((d|0)>(c|0)){break b}i[a+16>>2]=c;i[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break b}p=1;b=b+1|0;i[a+20>>2]=b;c=(b|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(b&1){break b}i[a+24>>2]=c+ -1}}H=m+16|0;return p|0}function rd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=H-32|0;H=e;f=a+16|0;d=i[f>>2];a:{b:{if(!d){break b}h=i[b>>2];c=f;while(1){g=i[d+16>>2]<(h|0);c=g?c:d;d=i[(g<<2)+d>>2];if(d){continue}break}if((c|0)==(f|0)){break b}if((h|0)>=i[c+16>>2]){break a}}k=Yf(e+16|0);b=i[b>>2];j=e+8|0;i[j>>2]=0;i[j+4>>2]=0;i[e>>2]=b;i[e+4>>2]=j;c=i[k>>2];h=k+4|0;if((c|0)!=(h|0)){g=e|4;while(1){b=c;d=c+16|0;sd(g,j,d,d);d=i[c+4>>2];c:{if(!d){c=i[b+8>>2];if((b|0)==i[c>>2]){break c}d=b+8|0;while(1){b=i[d>>2];d=b+8|0;c=i[b+8>>2];if((b|0)!=i[c>>2]){continue}break}break c}while(1){c=d;d=i[c>>2];if(d){continue}break}}if((c|0)!=(h|0)){continue}break}}d=i[a+16>>2];d:{if(d){f=a+16|0;g=i[e>>2];while(1){b=i[d+16>>2];e:{if((g|0)<(b|0)){c=i[d>>2];if(c){break e}f=d;break d}if((b|0)>=(g|0)){break d}f=d+4|0;c=i[d+4>>2];if(!c){break d}d=f}f=d;d=c;continue}}d=f}c=i[f>>2];if(!c){c=ok(32);i[c+16>>2]=i[e>>2];i[c+20>>2]=i[e+4>>2];g=i[e+8>>2];i[c+24>>2]=g;b=i[e+12>>2];i[c+28>>2]=b;h=c+24|0;f:{if(!b){i[c+20>>2]=h;break f}i[g+8>>2]=h;i[e+8>>2]=0;i[e+12>>2]=0;i[e+4>>2]=j}i[c+8>>2]=d;i[c>>2]=0;i[c+4>>2]=0;i[f>>2]=c;d=i[i[a+12>>2]>>2];b=c;g:{if(!d){break g}i[a+12>>2]=d;b=i[f>>2]}td(i[a+16>>2],b);a=a+20|0;i[a>>2]=i[a>>2]+1}ud(e|4,i[e+8>>2]);ud(k,i[k+4>>2])}H=e+32|0;return c+20|0}function Je(a,b){var c=0,d=0,e=0,f=0,g=0;f=-1;d=-1;a:{if((b|0)==-1){break a}d=b+1|0;f=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break a}d=b+2|0}b:{c:{d:{switch(i[a+168>>2]){case 0:case 1:c=i[a+148>>2];e=1;b=i[a+156>>2];g=b+(((f|0)!=-1?i[i[c>>2]+(f<<2)>>2]:-1)<<2)|0;i[g>>2]=i[g>>2]+1;b=(((d|0)!=-1?i[i[c>>2]+(d<<2)>>2]:-1)<<2)+b|0;break c;case 5:e=i[a+148>>2];c=-1;c=((b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:c)<<2;b=i[a+156>>2];c=c+b|0;i[c>>2]=i[c>>2]+1;c=(((f|0)!=-1?i[i[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;i[c>>2]=i[c>>2]+1;c=-1;c=(d|0)!=-1?i[i[e>>2]+(d<<2)>>2]:c;e=2;b=b+(c<<2)|0;break c;case 3:e=i[a+148>>2];c=-1;c=((b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:c)<<2;b=i[a+156>>2];c=c+b|0;i[c>>2]=i[c>>2]+1;c=(((f|0)!=-1?i[i[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;i[c>>2]=i[c>>2]+2;b=(((d|0)!=-1?i[i[e>>2]+(d<<2)>>2]:-1)<<2)+b|0;e=1;break c;case 7:break d;default:break b}}e=i[a+148>>2];c=-1;c=((b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:c)<<2;b=i[a+156>>2];c=c+b|0;i[c>>2]=i[c>>2]+2;c=(((f|0)!=-1?i[i[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;i[c>>2]=i[c>>2]+2;c=-1;c=(d|0)!=-1?i[i[e>>2]+(d<<2)>>2]:c;e=2;b=b+(c<<2)|0}i[b>>2]=i[b>>2]+e}c=-1;c=(f|0)!=-1?i[i[i[a+148>>2]>>2]+(f<<2)>>2]:c;f=i[a+176>>2];b=f;d=a;c=i[i[a+156>>2]+(c<<2)>>2];if((c|0)>=(b|0)){a=i[a+180>>2];b=(c|0)>(a|0)?a:c}i[d+172>>2]=b-f}function yd(a,b,c,d){var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(!Ad(e+8|0,c)){break a}if(!Bd(e+8|0,c)){break a}b:{if(!a){Uf(c,0,0);break b}if(!i[e+20>>2]){break a}Uf(c,0,0);h=i[e+56>>2];s=i[e+36>>2];t=i[e+48>>2];u=i[e+24>>2];while(1){c:{if(h>>>0>16383){break c}f=i[e+52>>2];while(1){if((f|0)<1){break c}f=f+ -1|0;i[e+52>>2]=f;h=j[f+t|0]|h<<8;i[e+56>>2]=h;if(h>>>0<16384){continue}break}}g=h&4095;q=i[(g<<2)+u>>2];k=(q<<3)+s|0;h=(o(i[k>>2],h>>>12|0)+g|0)-i[k+4>>2]|0;i[e+56>>2]=h;if((b|0)>=1){if(!j[c+36|0]){g=0;break a}k=b+l|0;while(1){d:{if((q|0)<1){n=0;break d}g=i[c+32>>2];v=i[c+28>>2];w=i[c+24>>2];f=0;n=0;while(1){m=(g>>>3|0)+w|0;e:{if(m>>>0>=v>>>0){p=0;break e}p=j[m|0];m=g+1|0;i[c+32>>2]=m;p=p>>>(g&7)&1;g=m}n=p<>2]=n;l=l+1|0;if((k|0)!=(l|0)){continue}break}l=k}r=b+r|0;if(r>>>0>>0){continue}break}}Wf(c);g=1}a=i[e+36>>2];if(a){i[e+40>>2]=a;Zk(a)}a=i[e+24>>2];if(a){i[e+28>>2]=a;Zk(a)}a=i[e+8>>2];if(a){i[e+12>>2]=a;Zk(a)}H=e- -64|0;return g}function wg(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=H-16|0;H=e;i[a+68>>2]=i[a+68>>2]+1;d=o(b,12)+a|0;d=i[d+12>>2]-i[d+8>>2]|0;if((d|0)>=1){d=d>>2;k=(d|0)>1?d:1;d=i[((b<<2)+a|0)+44>>2];while(1){b=d;g=(b>>>0)/3|0;f=(b|0)==-1;d=f?-1:g;h=i[a+56>>2]+(d>>>3&536870908)|0;i[h>>2]=i[h>>2]|1<<(d&31);i[a+72>>2]=i[a+72>>2]+1;a:{b:{if(!j){i[e+12>>2]=(b|0)<0?-1:i[(i[i[a>>2]+96>>2]+o(g,12)|0)+((b>>>0)%3<<2)>>2];i[e+8>>2]=c;vg(e+8|0,e+12|0);c:{if(!f){d=-1;g=e;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)>=0){h=(f>>>0)/3|0;h=i[(i[i[a>>2]+96>>2]+o(h,12)|0)+(f-o(h,3)<<2)>>2]}else{h=-1}i[g+12>>2]=h;i[e+8>>2]=c;vg(e+8|0,e+12|0);g=((b>>>0)%3|0?-1:2)+b|0;if((g|0)<0){break c}d=(g>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(g-o(d,3)<<2)>>2];break c}d=-1;i[e+12>>2]=-1;i[e+8>>2]=c;vg(e+8|0,e+12|0)}i[a+76>>2]=d;i[e+12>>2]=d;i[e+8>>2]=c;vg(e+8|0,e+12|0);break b}f=(b|0)<0?-1:i[(i[i[a>>2]+96>>2]+o(g,12)|0)+((b>>>0)%3<<2)>>2];i[a+76>>2]=f;i[e+12>>2]=f;i[e+8>>2]=c;vg(e+8|0,e+12|0);if(j&1){d=-1;if((b|0)==-1){break a}if(b-o(g,3)|0){b=b+ -1|0;break b}b=b+2|0;break b}d=-1;if((b|0)==-1){break a}d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0}d=-1;if((b|0)==-1){break a}d=i[i[i[a+4>>2]+12>>2]+(b<<2)>>2]}j=j+1|0;if((k|0)!=(j|0)){continue}break}}H=e+16|0}function If(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0;a:{b=i[a+32>>2];e=i[b+16>>2];h=i[b+12>>2];d=i[b+20>>2];b:{if((h|0)<(d|0)?1:(h|0)<=(d|0)?l[b+8>>2]<=e>>>0:0){break b}g=j[e+i[b>>2]|0];k=e+1|0;if(k>>>0<1){d=d+1|0}i[b+16>>2]=k;i[b+20>>2]=d;c:{if(!g){break c}while(1){if(K[i[i[a>>2]+16>>2]](a,c)|0){c=c+1|0;if((g|0)!=(c|0)){continue}break c}break}return 0}c=i[a+8>>2];d=i[a+12>>2];if((c|0)!=(d|0)){while(1){b=i[c>>2];if(!(K[i[i[b>>2]+8>>2]](b,a,i[a+4>>2])|0)){break b}c=c+4|0;if((d|0)!=(c|0)){continue}break}}d:{if(!g){break d}c=0;while(1){b=i[i[a+8>>2]+(c<<2)>>2];if(!(K[i[i[b>>2]+12>>2]](b,i[a+32>>2])|0)){break a}c=c+1|0;if((g|0)!=(c|0)){continue}break}if(!g){break d}h=a+20|0;while(1){c=0;k=m<<2;b=i[k+i[a+8>>2]>>2];d=K[i[i[b>>2]+24>>2]](b)|0;if((d|0)>0){while(1){b=i[i[a+8>>2]+k>>2];b=K[i[i[b>>2]+20>>2]](b,c)|0;n=i[a+20>>2];e=i[a+24>>2]-n>>2;e:{if(b>>>0>>0){break e}f=b+1|0;if(f>>>0>e>>>0){Na(h,f-e|0);n=i[h>>2];break e}if(f>>>0>=e>>>0){break e}i[a+24>>2]=(f<<2)+n}i[(b<<2)+n>>2]=m;c=c+1|0;if((d|0)!=(c|0)){continue}break}}m=m+1|0;if((m|0)!=(g|0)){continue}break}}f=0;if(!(K[i[i[a>>2]+28>>2]](a)|0)){break b}f=K[i[i[a>>2]+32>>2]](a)|0}return f|0}return 0}function jl(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{g=b;if(g){e=c;if(!e){break j}f=d;if(!f){break i}f=r(f)-r(g)|0;if(f>>>0<=31){break h}break b}if((d|0)==1&c>>>0>=0|d>>>0>1){break b}b=(a>>>0)/(c>>>0)|0;J=0;return b}e=d;if(!a){break g}if(!e){break f}if(e+ -1&e){break f}a=g>>>(pl(e)&31)|0;J=0;return a}if(!(e+ -1&e)){break e}j=(r(e)+33|0)-r(g)|0;h=0-j|0;break c}j=f+1|0;h=63-f|0;break c}a=(g>>>0)/(e>>>0)|0;J=0;return a}f=r(e)-r(g)|0;if(f>>>0<31){break d}break b}if((e|0)==1){break a}c=a;a=pl(e);d=a&31;if(32<=(a&63)>>>0){f=0;a=b>>>d|0}else{f=b>>>d|0;a=((1<>>d}J=f;return a}j=f+1|0;h=63-f|0}e=b;g=a;f=j&63;i=f&31;if(32<=(f&63)>>>0){f=0;l=e>>>i|0}else{f=e>>>i|0;l=((1<>>i}a=h&63;h=a&31;if(32<=(a&63)>>>0){e=g<>>32-h|b<>>31;f=e<<1|b>>>31;m=k;e=k;k=f;i=g-((h>>>0>>0)+e|0)|0;e=i>>31;i=i>>31;f=c&i;l=k-f|0;f=m-((d&e)+(k>>>0>>0)|0)|0;e=b<<1|a>>>31;a=n|a<<1;b=e|o;m=0;k=i&1;n=k;j=j+ -1|0;if(j){continue}break}}J=m|(b<<1|a>>>31);return k|a<<1}a=0;b=0}J=b;return a}function oj(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,p=0;d=H-32|0;H=d;i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;a:{e=i[a>>2];c=e;h=i[c+16>>2];k=l[c+8>>2]<=h>>>0;f=i[c+12>>2];c=i[c+20>>2];b:{if((f|0)<(c|0)?1:(f|0)<=(c|0)?k:0){break b}k=j[h+i[e>>2]|0];f=c;c=h+1|0;if(c>>>0<1){f=f+1|0}i[e+16>>2]=c;i[e+20>>2]=f;wk(d+16|0,k);if(k){f=i[a>>2];n=Ak(d+16|0);m=i[f+12>>2];h=i[f+20>>2];p=i[f+16>>2];e=k;c=p+e|0;if(c>>>0>>0){h=h+1|0}if((m|0)<(h|0)?1:(m|0)<=(h|0)?l[f+8>>2]>>0:0){break b}$k(n,p+i[f>>2]|0,k);h=i[f+20>>2];k=e+i[f+16>>2]|0;if(k>>>0>>0){h=h+1|0}c=f;i[c+16>>2]=k;i[c+20>>2]=h}i[d+12>>2]=0;c=nj(1,d+12|0,i[a>>2]);e=i[d+12>>2];if(!e|!c){break b}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;if((e|0)<=-1){break a}m=ok(e);i[d>>2]=m;c=e+m|0;i[d+8>>2]=c;p=al(m,0,e);i[d+4>>2]=c;c=i[a>>2];a=i[c+8>>2];o=i[c+12>>2];f=a;n=i[c+20>>2];h=i[c+16>>2];a=e;k=h+e|0;if(k>>>0>>0){n=n+1|0}o=(o|0)>(n|0)?1:(o|0)>=(n|0)?f>>>0>=k>>>0:0;if(o){$k(p,h+i[c>>2]|0,e);e=c;k=c;f=i[c+20>>2];c=a+i[c+16>>2]|0;if(c>>>0>>0){f=f+1|0}i[k+16>>2]=c;i[e+20>>2]=f;zj(b,d+16|0,d);m=i[d>>2];if(!m){break b}}i[d+4>>2]=m;Zk(m)}if(g[d+27|0]<=-1){Zk(i[d+16>>2])}H=d+32|0;return o}Dk();x()}function Be(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=p(0),o=0,q=0;f=i[c>>2];o=a;a:{b:{e=i[b+4>>2];if(!e){break b}j=i[b>>2];l=nl(e);h=f&e+ -1;c:{if(l>>>0<=1){break c}c=f;h=c;if(c>>>0>>0){break c}h=(f>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+j>>2];if(!c){break b}q=e+ -1|0;l=l>>>0>1;while(1){c=i[c>>2];if(!c){break b}j=i[c+4>>2];if((f|0)!=(j|0)){d:{if(!l){j=j&q;break d}if(j>>>0>>0){break d}j=(j>>>0)%(e>>>0)|0}if((j|0)!=(h|0)){break b}}if((f|0)!=i[c+8>>2]){continue}break}b=0;break a}c=ok(16);d=i[i[d>>2]>>2];i[c+12>>2]=0;i[c+8>>2]=d;i[c+4>>2]=f;i[c>>2]=0;k=m[b+16>>2];n=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(n/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}sf(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=f&e+ -1;break e}if(f>>>0>>0){h=f;break e}h=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(h<<2)|0;d=i[f>>2];g:{h:{if(!d){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[f>>2]=b+8;d=i[c>>2];if(!d){break g}d=i[d+4>>2];f=e+ -1|0;i:{if(!(f&e)){d=d&f;break i}if(d>>>0>>0){break i}d=(d>>>0)%(e>>>0)|0}d=i[b>>2]+(d<<2)|0;break h}i[c>>2]=i[d>>2]}i[d>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[o+4|0]=b;i[a>>2]=c}function Nc(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;k=i[i[i[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((K[i[i[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}h=K[i[i[b>>2]+36>>2]](b)|0;f=K[i[i[b>>2]+44>>2]](b,d)|0;if(!h|!f){break b}g=f+12|0;j=K[i[i[b>>2]+40>>2]](b,d)|0;d=i[b+44>>2];c:{if(j){if((c|0)!=6){break c}b=ok(112);i[b+4>>2]=k;c=i[e+4>>2];i[b+8>>2]=i[e>>2];i[b+12>>2]=c;c=i[e+12>>2];i[b+16>>2]=i[e+8>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+16>>2];i[b+40>>2]=f;i[b+36>>2]=g;i[b+32>>2]=j;i[b+28>>2]=d;i[b+68>>2]=f;i[b+64>>2]=g;i[b+60>>2]=j;i[b+56>>2]=d;i[b+48>>2]=0;i[b+52>>2]=0;i[b>>2]=5744;i[b+88>>2]=1065353216;i[b+92>>2]=-1;i[b+80>>2]=-1;i[b+84>>2]=-1;i[b+72>>2]=1;i[b+76>>2]=-1;i[b+44>>2]=6308;break a}if((c|0)!=6){break c}b=ok(112);i[b+4>>2]=k;c=i[e+4>>2];i[b+8>>2]=i[e>>2];i[b+12>>2]=c;c=i[e+12>>2];i[b+16>>2]=i[e+8>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+16>>2];i[b+40>>2]=f;i[b+36>>2]=g;i[b+32>>2]=h;i[b+28>>2]=d;i[b+68>>2]=f;i[b+64>>2]=g;i[b+60>>2]=h;i[b+56>>2]=d;i[b+48>>2]=0;i[b+52>>2]=0;i[b>>2]=6748;i[b+88>>2]=1065353216;i[b+92>>2]=-1;i[b+80>>2]=-1;i[b+84>>2]=-1;i[b+72>>2]=1;i[b+76>>2]=-1;i[b+44>>2]=7168;break a}i[a>>2]=0}i[a>>2]=0;return}id(b+96|0);i[a>>2]=b}function $k(a,b,c){var d=0,e=0,f=0;if(c>>>0>=512){G(a|0,b|0,c|0)|0;return a}e=a+c|0;a:{if(!((a^b)&3)){b:{if((c|0)<1){c=a;break b}if(!(a&3)){c=a;break b}c=a;while(1){g[c|0]=j[b|0];b=b+1|0;c=c+1|0;if(c>>>0>=e>>>0){break b}if(c&3){continue}break}}d=e&-4;c:{if(d>>>0<64){break c}f=d+ -64|0;if(c>>>0>f>>>0){break c}while(1){i[c>>2]=i[b>>2];i[c+4>>2]=i[b+4>>2];i[c+8>>2]=i[b+8>>2];i[c+12>>2]=i[b+12>>2];i[c+16>>2]=i[b+16>>2];i[c+20>>2]=i[b+20>>2];i[c+24>>2]=i[b+24>>2];i[c+28>>2]=i[b+28>>2];i[c+32>>2]=i[b+32>>2];i[c+36>>2]=i[b+36>>2];i[c+40>>2]=i[b+40>>2];i[c+44>>2]=i[b+44>>2];i[c+48>>2]=i[b+48>>2];i[c+52>>2]=i[b+52>>2];i[c+56>>2]=i[b+56>>2];i[c+60>>2]=i[b+60>>2];b=b- -64|0;c=c- -64|0;if(c>>>0<=f>>>0){continue}break}}if(c>>>0>=d>>>0){break a}while(1){i[c>>2]=i[b>>2];b=b+4|0;c=c+4|0;if(c>>>0>>0){continue}break}break a}if(e>>>0<4){c=a;break a}d=e+ -4|0;if(d>>>0>>0){c=a;break a}c=a;while(1){g[c|0]=j[b|0];g[c+1|0]=j[b+1|0];g[c+2|0]=j[b+2|0];g[c+3|0]=j[b+3|0];b=b+4|0;c=c+4|0;if(c>>>0<=d>>>0){continue}break}}if(c>>>0>>0){while(1){g[c|0]=j[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}return a}function kb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0;g=H-16|0;H=g;if(La(a,b)){m=a+36|0;h=K[i[i[a>>2]+24>>2]](a)|0;e=i[a+40>>2];d=i[a+36>>2];c=e-d>>2;a:{if(h>>>0>c>>>0){lb(m,h-c|0);break a}if(h>>>0>=c>>>0){break a}d=d+(h<<2)|0;if((d|0)!=(e|0)){while(1){e=e+ -4|0;c=i[e>>2];i[e>>2]=0;if(c){K[i[i[c>>2]+4>>2]](c)}if((e|0)!=(d|0)){continue}break}}i[a+40>>2]=d}b:{if((h|0)<1){break b}n=1;f=i[b+16>>2];d=i[b+12>>2];c=i[b+20>>2];if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]<=f>>>0:0){break b}e=0;while(1){k=j[f+i[b>>2]|0];f=f+1|0;if(f>>>0<1){c=c+1|0}d=b;i[d+16>>2]=f;i[d+20>>2]=c;K[i[i[a>>2]+48>>2]](g+8|0,a,k);c=i[a+36>>2];d=i[g+8>>2];i[g+8>>2]=0;f=e<<2;k=c+f|0;c=i[k>>2];i[k>>2]=d;if(c){K[i[i[c>>2]+4>>2]](c)}c=i[g+8>>2];i[g+8>>2]=0;if(c){K[i[i[c>>2]+4>>2]](c)}c=i[i[m>>2]+f>>2];if(!c){break b}if(!(p=c,q=K[i[i[a>>2]+28>>2]](a)|0,r=K[i[i[a>>2]+20>>2]](a,e)|0,o=i[i[c>>2]+8>>2],K[o](p|0,q|0,r|0)|0)){break b}e=e+1|0;n=(e|0)<(h|0);if((e|0)==(h|0)){break b}f=i[b+16>>2];d=i[b+12>>2];c=i[b+20>>2];if((d|0)>(c|0)?1:(d|0)>=(c|0)?l[b+8>>2]>f>>>0:0){continue}break}}e=n^1}H=g+16|0;return e&1}function Ke(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=8340;b=a+368|0;d=i[b>>2];i[b>>2]=0;if(d){c=d+ -4|0;b=i[c>>2];if(b){b=d+(b<<4)|0;while(1){b=b+ -16|0;if((d|0)!=(b|0)){continue}break}}Zk(c)}d=i[a+216>>2];if(d){b=i[a+220>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=i[b+ -12>>2];if(c){i[b+ -8>>2]=c;Zk(c)}c=i[b+ -28>>2];if(c){i[b+ -24>>2]=c;Zk(c)}c=b+ -144|0;e=i[b+ -40>>2];if(e){i[b+ -36>>2]=e;Zk(e)}se(b+ -140|0);b=c;if((d|0)!=(b|0)){continue}break}c=i[a+216>>2]}i[a+220>>2]=d;Zk(c)}b=i[a+196>>2];if(b){i[a+200>>2]=b;Zk(b)}b=i[a+184>>2];if(b){i[a+188>>2]=b;Zk(b)}b=i[a+172>>2];if(b){i[a+176>>2]=b;Zk(b)}b=i[a+160>>2];if(b){i[a+164>>2]=b;Zk(b)}b=i[a+144>>2];if(b){while(1){d=i[b>>2];Zk(b);b=d;if(b){continue}break}}b=i[a+136>>2];i[a+136>>2]=0;if(b){Zk(b)}b=i[a+120>>2];if(b){Zk(b)}b=i[a+108>>2];if(b){Zk(b)}b=i[a+96>>2];if(b){Zk(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;Zk(b)}b=i[a+60>>2];if(b){Zk(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;Zk(b)}b=i[a+36>>2];if(b){i[a+40>>2]=b;Zk(b)}b=i[a+24>>2];if(b){i[a+28>>2]=b;Zk(b)}b=i[a+12>>2];if(b){i[a+16>>2]=b;Zk(b)}b=i[a+8>>2];i[a+8>>2]=0;if(b){re(a+8|0,b)}return a|0}function Vb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;k=H-32|0;H=k;a:{b:{while(1){if(!Wb(1,k+28|0,b)){break b}c=i[k+28>>2];if(c){f=(o(d,12)+a|0)+60|0;Xb(f,c);h=id(k+8|0);if(!jd(h,b)){break b}g=0;while(1){l=1<<(g&31);m=ld(h);e=i[f>>2]+(g>>>3&536870908)|0;n=e;if(m){e=i[e>>2]|l}else{e=i[e>>2]&(l^-1)}i[n>>2]=e;g=g+1|0;if((c|0)!=(g|0)){continue}break}}d=d+1|0;if((d|0)!=4){continue}break}g=0;d=i[b+12>>2];l=d;c=i[b+20>>2];e=c;h=i[b+16>>2];f=h+4|0;if(f>>>0<4){c=c+1|0}n=i[b+8>>2];m=f;f=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?n>>>0>>0:0){break a}p=i[b>>2];c=p+h|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=m;i[b+20>>2]=f;c=e;e=h+8|0;if(e>>>0<8){c=c+1|0}f=e;e=c;if((l|0)<(c|0)?1:(l|0)<=(c|0)?n>>>0>>0:0){break a}c=m+p|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=f;i[b+20>>2]=e;if((d|0)>(c|0)){break a}i[a+16>>2]=c;i[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break a}g=1;b=b+1|0;i[a+20>>2]=b;c=(b|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(b&1){break a}i[a+24>>2]=c+ -1;break a}g=0}H=k+32|0;return g|0}function Ng(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;e=H-16|0;H=e;m=i[a+80>>2];k=g[b+24|0];a=o(m,k);a:{b:{c:{f=i[b+28>>2];if(!(!j[b+84|0]|((f|0)!=6?(f|0)!=5:0))){f=i[b+48>>2];k=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;a=a<<2;if(a){b=a>>2;if(b>>>0>=1073741824){break c}d=ok(a);i[e>>2]=d;i[e+4>>2]=d;l=(b<<2)+d|0;i[e+8>>2]=l;b=e;if((a|0)<1){a=d}else{a=$k(d,f+k|0,a)+a|0}h=a;i[b+4>>2]=h}a=i[c>>2];if(a){i[c+4>>2]=a;Zk(a);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c+8>>2]=l;i[c+4>>2]=h;i[c>>2]=d;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(k){if((k|0)<=-1){break c}d=k<<2;h=ok(d);i[e>>2]=h;f=d+h|0;i[e+8>>2]=f;al(h,0,d);i[e+4>>2]=f}f=i[c>>2];d=i[c+4>>2]-f>>2;d:{if(a>>>0>d>>>0){hd(c,a-d|0);break d}if(a>>>0>=d>>>0){break d}i[c+4>>2]=f+(a<<2)}if(!m){break b}d=0;n=1;while(1){a=l;f=b;if(!j[b+84|0]){a=i[i[b+68>>2]+(l<<2)>>2]}if(!Og(f,a,g[b+24|0],h)){break b}if((k|0)>=1){f=i[c>>2];a=0;while(1){i[f+(d<<2)>>2]=i[(a<<2)+h>>2];d=d+1|0;a=a+1|0;if((k|0)!=(a|0)){continue}break}}l=l+1|0;n=l>>>0>>0;if((l|0)!=(m|0)){continue}break}break b}Dk();x()}if(h){i[e+4>>2]=h;Zk(h)}a=n^1}H=e+16|0;return a&1}function Lg(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;e=H-16|0;H=e;m=i[a+80>>2];k=g[b+24|0];a=o(m,k);a:{b:{c:{f=i[b+28>>2];if(!(!j[b+84|0]|((f|0)!=6?(f|0)!=5:0))){f=i[b+48>>2];k=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;a=a<<2;if(a){b=a>>2;if(b>>>0>=1073741824){break c}d=ok(a);i[e>>2]=d;i[e+4>>2]=d;l=(b<<2)+d|0;i[e+8>>2]=l;b=e;if((a|0)<1){a=d}else{a=$k(d,f+k|0,a)+a|0}h=a;i[b+4>>2]=h}a=i[c>>2];if(a){i[c+4>>2]=a;Zk(a);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c+8>>2]=l;i[c+4>>2]=h;i[c>>2]=d;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(k){if((k|0)<=-1){break c}d=k<<2;h=ok(d);i[e>>2]=h;f=d+h|0;i[e+8>>2]=f;al(h,0,d);i[e+4>>2]=f}f=i[c>>2];d=i[c+4>>2]-f>>2;d:{if(a>>>0>d>>>0){Na(c,a-d|0);break d}if(a>>>0>=d>>>0){break d}i[c+4>>2]=f+(a<<2)}if(!m){break b}d=0;n=1;while(1){a=l;f=b;if(!j[b+84|0]){a=i[i[b+68>>2]+(l<<2)>>2]}if(!Mg(f,a,g[b+24|0],h)){break b}if((k|0)>=1){f=i[c>>2];a=0;while(1){i[f+(d<<2)>>2]=i[(a<<2)+h>>2];d=d+1|0;a=a+1|0;if((k|0)!=(a|0)){continue}break}}l=l+1|0;n=l>>>0>>0;if((l|0)!=(m|0)){continue}break}break b}Dk();x()}if(h){i[e+4>>2]=h;Zk(h)}a=n^1}H=e+16|0;return a&1}function gc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;if((e|0)==2){i[a+8>>2]=2;i[a- -64>>2]=f;d=a+32|0;e=i[d>>2];f=i[a+36>>2]-e|0;j=f>>2;a:{if(j>>>0<=1){Na(d,2-j|0);break a}if((f|0)==8){break a}i[a+36>>2]=e+8}b:{d=i[a+56>>2];e=i[d+4>>2];d=i[d>>2];f=e-d|0;if((f|0)<1){f=0;break b}if((d|0)!=(e|0)){l=a+60|0;j=f>>2;m=(j|0)>1?j:1;f=1;while(1){if(!hc(l,i[(g<<2)+d>>2],c,g)){break b}c:{if(i[a+8>>2]<1){break c}d=0;while(1){e=d<<2;f=i[(e+a|0)+68>>2];h=i[a+16>>2];d:{if((f|0)>(h|0)){k=i[a+32>>2];i[e+k>>2]=h;break d}k=i[a+32>>2];e=e+k|0;h=i[a+12>>2];if((f|0)<(h|0)){i[e>>2]=h;break d}i[e>>2]=f}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}e=0;if((f|0)<1){break c}d=g<<3;h=d+c|0;n=b+d|0;while(1){f=e<<2;d=f+h|0;f=i[f+n>>2]+i[f+k>>2]|0;i[d>>2]=f;e:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break e}f=f+i[a+20>>2]|0}i[d>>2]=f}e=e+1|0;if((e|0)>2]){continue}break}}g=g+1|0;f=(g|0)<(j|0);if((g|0)==(m|0)){break b}e=i[a+56>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>g>>>0){continue}break}}Ek();x()}a=f^1}else{a=0}return a&1}function Ac(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;if((e|0)==2){i[a+8>>2]=2;i[a- -64>>2]=f;d=a+32|0;e=i[d>>2];f=i[a+36>>2]-e|0;j=f>>2;a:{if(j>>>0<=1){Na(d,2-j|0);break a}if((f|0)==8){break a}i[a+36>>2]=e+8}b:{d=i[a+56>>2];e=i[d+4>>2];d=i[d>>2];f=e-d|0;if((f|0)<1){f=0;break b}if((d|0)!=(e|0)){l=a+60|0;j=f>>2;m=(j|0)>1?j:1;f=1;while(1){if(!Bc(l,i[(g<<2)+d>>2],c,g)){break b}c:{if(i[a+8>>2]<1){break c}d=0;while(1){e=d<<2;f=i[(e+a|0)+68>>2];h=i[a+16>>2];d:{if((f|0)>(h|0)){k=i[a+32>>2];i[e+k>>2]=h;break d}k=i[a+32>>2];e=e+k|0;h=i[a+12>>2];if((f|0)<(h|0)){i[e>>2]=h;break d}i[e>>2]=f}d=d+1|0;f=i[a+8>>2];if((d|0)<(f|0)){continue}break}e=0;if((f|0)<1){break c}d=g<<3;h=d+c|0;n=b+d|0;while(1){f=e<<2;d=f+h|0;f=i[f+n>>2]+i[f+k>>2]|0;i[d>>2]=f;e:{if((f|0)>i[a+16>>2]){f=f-i[a+20>>2]|0}else{if((f|0)>=i[a+12>>2]){break e}f=f+i[a+20>>2]|0}i[d>>2]=f}e=e+1|0;if((e|0)>2]){continue}break}}g=g+1|0;f=(g|0)<(j|0);if((g|0)==(m|0)){break b}e=i[a+56>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>g>>>0){continue}break}}Ek();x()}a=f^1}else{a=0}return a&1}function aa(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,n=0,o=0;j=+m[b>>2];k=+m[b+4>>2];n=+m[b+8>>2];h=q(j)+q(k)+q(n);a:{if(h>1e-6^1){j=1;k=0;f=0;break a}h=1/h;k=h*k;j=h*j;f=h*n<0}h=k;g=i[a+16>>2];k=+(g|0);h=u(h*k+.5);b:{if(q(h)<2147483648){b=~~h;break b}b=-2147483648}l=(b|0)<0?b:0-b|0;j=u(j*k+.5);c:{if(q(j)<2147483648){e=~~j;break c}e=-2147483648}o=(e|0)<0;e=l+((o?e:0-e|0)+g|0)|0;l=(e|0)<0?0:e;f=f?0-l|0:l;b=b+(e>>31&((b|0)>0?e:0-e|0))|0;d:{if(!o){e=b+g|0;b=f+g|0;break d}e:{if((b|0)<=-1){e=f>>31;e=e+f^e;break e}e=i[a+8>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=b;b=b>>31;b=f+b^b;break d}b=i[a+8>>2]+((b|0)<0?b:0-b|0)|0}f:{if(!(b|e)){b=i[a+8>>2];a=b;break f}f=i[a+8>>2];g:{h:{i:{j:{if(!e){if((b|0)==(f|0)){a=b;break f}a=0;if(b|f){break j}b=0;break f}if((e|0)!=(f|0)|b){break i}b=e;a=b;break f}if((g|0)<(b|0)){b=(g<<1)-b|0;break f}if(f){break g}break h}if((e|0)!=(f|0)){break g}}f=e;if((g|0)<=(b|0)){break g}b=(g<<1)-b|0;a=e;break f}if(!((b|0)!=(f|0)|(g|0)<=(e|0))){a=(g<<1)-e|0;break f}if(b){a=e;break f}b=0;if((g|0)>=(e|0)){a=e;break f}a=(g<<1)-e|0}i[c>>2]=a;i[d>>2]=b}function Eg(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;e=H-16|0;H=e;l=i[a+80>>2];h=g[b+24|0];a=o(l,h);a:{f=i[b+28>>2];b:{if(!(!j[b+84|0]|((f|0)!=2?(f|0)!=1:0))){f=i[b+48>>2];k=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=0;if(a){if((a|0)<=-1){break a}b=ok(a);i[e>>2]=b;d=a+b|0;i[e+8>>2]=d;$k(b,f+k|0,a);i[e+4>>2]=d}a=i[c>>2];if(a){i[c+4>>2]=a;Zk(a);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c+8>>2]=d;i[c+4>>2]=d;i[c>>2]=b;a=1;break b}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(h){if((h|0)<=-1){break a}d=ok(h);i[e>>2]=d;f=d+h|0;i[e+8>>2]=f;al(d,0,h);i[e+4>>2]=f}k=i[c>>2];f=i[c+4>>2]-k|0;c:{if(a>>>0>f>>>0){Ya(c,a-f|0);break c}if(a>>>0>=f>>>0){break c}i[c+4>>2]=a+k}if(l){d=0;m=1;f=0;while(1){a=f;k=b;if(!j[b+84|0]){a=i[i[b+68>>2]+(f<<2)>>2]}n=a;a=i[e>>2];if(Fg(k,n,g[b+24|0],a)){d:{if((h|0)<1){break d}g[i[c>>2]+d|0]=j[a|0];a=1;d=d+1|0;if((h|0)==1){break d}while(1){g[i[c>>2]+d|0]=j[i[e>>2]+a|0];d=d+1|0;a=a+1|0;if((h|0)!=(a|0)){continue}break}}f=f+1|0;m=f>>>0>>0;if((f|0)!=(l|0)){continue}}break}d=i[e>>2]}if(d){i[e+4>>2]=d;Zk(d)}a=m^1}H=e+16|0;return a&1}Dk();x()}function Cg(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;e=H-16|0;H=e;l=i[a+80>>2];h=g[b+24|0];a=o(l,h);a:{f=i[b+28>>2];b:{if(!(!j[b+84|0]|((f|0)!=2?(f|0)!=1:0))){f=i[b+48>>2];k=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=0;if(a){if((a|0)<=-1){break a}b=ok(a);i[e>>2]=b;d=a+b|0;i[e+8>>2]=d;$k(b,f+k|0,a);i[e+4>>2]=d}a=i[c>>2];if(a){i[c+4>>2]=a;Zk(a);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c+8>>2]=d;i[c+4>>2]=d;i[c>>2]=b;a=1;break b}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(h){if((h|0)<=-1){break a}d=ok(h);i[e>>2]=d;f=d+h|0;i[e+8>>2]=f;al(d,0,h);i[e+4>>2]=f}k=i[c>>2];f=i[c+4>>2]-k|0;c:{if(a>>>0>f>>>0){Ya(c,a-f|0);break c}if(a>>>0>=f>>>0){break c}i[c+4>>2]=a+k}if(l){d=0;m=1;f=0;while(1){a=f;k=b;if(!j[b+84|0]){a=i[i[b+68>>2]+(f<<2)>>2]}n=a;a=i[e>>2];if(Dg(k,n,g[b+24|0],a)){d:{if((h|0)<1){break d}g[i[c>>2]+d|0]=j[a|0];a=1;d=d+1|0;if((h|0)==1){break d}while(1){g[i[c>>2]+d|0]=j[i[e>>2]+a|0];d=d+1|0;a=a+1|0;if((h|0)!=(a|0)){continue}break}}f=f+1|0;m=f>>>0>>0;if((f|0)!=(l|0)){continue}}break}d=i[e>>2]}if(d){i[e+4>>2]=d;Zk(d)}a=m^1}H=e+16|0;return a&1}Dk();x()}function Jg(a,b,c){var d=0,e=0,f=0,l=0,m=0,n=0,p=0,q=0;e=H-16|0;H=e;p=i[a+80>>2];n=g[b+24|0];a=o(p,n);a:{b:{c:{d=i[b+28>>2];if(!(!j[b+84|0]|((d|0)!=4?(d|0)!=3:0))){m=i[b+48>>2];d=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=0;a=a<<1;if(a){if((a|0)<=-1){break c}f=ok(a);i[e>>2]=f;l=(a>>1<<1)+f|0;i[e+8>>2]=l;b=$k(f,d+m|0,a)+a|0;i[e+4>>2]=b}a=i[c>>2];if(a){i[c+4>>2]=a;Zk(a);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c+8>>2]=l;i[c+4>>2]=b;i[c>>2]=f;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(n){if((n|0)<=-1){break c}d=n<<1;l=ok(d);i[e>>2]=l;f=d+l|0;i[e+8>>2]=f;al(l,0,d);i[e+4>>2]=f}f=i[c>>2];d=i[c+4>>2]-f>>1;d:{if(a>>>0>d>>>0){Hg(c,a-d|0);break d}if(a>>>0>=d>>>0){break d}i[c+4>>2]=f+(a<<1)}if(!p){break b}f=0;q=1;while(1){a=m;d=b;if(!j[d+84|0]){a=i[i[b+68>>2]+(m<<2)>>2]}if(!Kg(d,a,g[b+24|0],l)){break b}if((n|0)>=1){d=i[c>>2];a=0;while(1){h[d+(f<<1)>>1]=k[(a<<1)+l>>1];f=f+1|0;a=a+1|0;if((n|0)!=(a|0)){continue}break}}m=m+1|0;q=m>>>0

>>0;if((m|0)!=(p|0)){continue}break}break b}Dk();x()}if(l){i[e+4>>2]=l;Zk(l)}a=q^1}H=e+16|0;return a&1}function Gg(a,b,c){var d=0,e=0,f=0,l=0,m=0,n=0,p=0,q=0;e=H-16|0;H=e;p=i[a+80>>2];n=g[b+24|0];a=o(p,n);a:{b:{c:{d=i[b+28>>2];if(!(!j[b+84|0]|((d|0)!=4?(d|0)!=3:0))){m=i[b+48>>2];d=i[i[b>>2]>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;b=0;a=a<<1;if(a){if((a|0)<=-1){break c}f=ok(a);i[e>>2]=f;l=(a>>1<<1)+f|0;i[e+8>>2]=l;b=$k(f,d+m|0,a)+a|0;i[e+4>>2]=b}a=i[c>>2];if(a){i[c+4>>2]=a;Zk(a);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c+8>>2]=l;i[c+4>>2]=b;i[c>>2]=f;a=1;break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(n){if((n|0)<=-1){break c}d=n<<1;l=ok(d);i[e>>2]=l;f=d+l|0;i[e+8>>2]=f;al(l,0,d);i[e+4>>2]=f}f=i[c>>2];d=i[c+4>>2]-f>>1;d:{if(a>>>0>d>>>0){Hg(c,a-d|0);break d}if(a>>>0>=d>>>0){break d}i[c+4>>2]=f+(a<<1)}if(!p){break b}f=0;q=1;while(1){a=m;d=b;if(!j[d+84|0]){a=i[i[b+68>>2]+(m<<2)>>2]}if(!Ig(d,a,g[b+24|0],l)){break b}if((n|0)>=1){d=i[c>>2];a=0;while(1){h[d+(f<<1)>>1]=k[(a<<1)+l>>1];f=f+1|0;a=a+1|0;if((n|0)!=(a|0)){continue}break}}m=m+1|0;q=m>>>0

>>0;if((m|0)!=(p|0)){continue}break}break b}Dk();x()}if(l){i[e+4>>2]=l;Zk(l)}a=q^1}H=e+16|0;return a&1}function td(a,b){var c=0,d=0,e=0;c=(a|0)==(b|0);g[b+12|0]=c;a:{if(c){break a}while(1){d=i[b+8>>2];if(j[d+12|0]){break a}b:{c=i[d+8>>2];e=i[c>>2];if((e|0)==(d|0)){e=i[c+4>>2];if(!(!e|j[e+12|0])){break b}c:{if(i[d>>2]==(b|0)){b=d;break c}b=i[d+4>>2];e=i[b>>2];i[d+4>>2]=e;a=b;if(e){i[e+8>>2]=d;c=i[d+8>>2]}i[a+8>>2]=c;a=i[d+8>>2];i[(((d|0)!=i[a>>2])<<2)+a>>2]=b;i[b>>2]=d;i[d+8>>2]=b;c=i[b+8>>2]}g[b+12|0]=1;g[c+12|0]=0;a=i[c>>2];b=i[a+4>>2];i[c>>2]=b;if(b){i[b+8>>2]=c}i[a+8>>2]=i[c+8>>2];b=i[c+8>>2];i[((i[b>>2]!=(c|0))<<2)+b>>2]=a;i[a+4>>2]=c;i[c+8>>2]=a;return}if(!(j[e+12|0]|!e)){break b}d:{if(i[d>>2]!=(b|0)){b=d;break d}e=i[b+4>>2];i[d>>2]=e;a=b;if(e){i[e+8>>2]=d;c=i[d+8>>2]}i[a+8>>2]=c;a=i[d+8>>2];i[(((d|0)!=i[a>>2])<<2)+a>>2]=b;i[b+4>>2]=d;i[d+8>>2]=b;c=i[b+8>>2]}g[b+12|0]=1;g[c+12|0]=0;a=i[c+4>>2];b=i[a>>2];i[c+4>>2]=b;if(b){i[b+8>>2]=c}i[a+8>>2]=i[c+8>>2];b=i[c+8>>2];i[((i[b>>2]!=(c|0))<<2)+b>>2]=a;i[a>>2]=c;i[c+8>>2]=a;break a}b=e+12|0;g[d+12|0]=1;g[c+12|0]=(a|0)==(c|0);g[b|0]=1;b=c;if((a|0)!=(b|0)){continue}break}}}function $(a,b,c,d,e){var f=0,g=0,h=0,k=0,l=0,n=0,o=0,q=0;f=H-48|0;H=f;k=i[e+48>>2];e=i[i[e>>2]>>2];i[f+32>>2]=-1;i[f+24>>2]=-1;i[f+28>>2]=1065353216;i[f+16>>2]=-1;i[f+20>>2]=-1;a=i[a+4>>2];a:{if(a+ -2>>>0>28){break a}k=e+k|0;i[f+16>>2]=a;a=-1<>2]=a^-1;a=-2-a|0;i[f+24>>2]=a;i[f+32>>2]=(a|0)/2;m[f+28>>2]=p(2)/p(a|0);g=i[c>>2];if((g|0)!=i[c+4>>2]){e=0;a=0;while(1){d=i[(a<<2)+g>>2];g=f+36|0;n=i[i[b>>2]>>2];o=i[b+48>>2];h=i[b+44>>2];l=i[b+40>>2];q=l;if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}d=kl(q,h,d,0)+o|0;$k(g,d+n|0,l);aa(f+16|0,f+36|0,f+12|0,f+8|0);d=e<<2;i[d+k>>2]=i[f+12>>2];i[k+(d|4)>>2]=i[f+8>>2];h=1;e=e+2|0;a=a+1|0;g=i[c>>2];if(a>>>0>2]-g>>2>>>0){continue}break}break a}if(!d){h=1;break a}a=0;e=0;while(1){c=e;g=f+36|0;n=i[i[b>>2]>>2];o=i[b+48>>2];h=i[b+44>>2];l=i[b+40>>2];q=l;if(!j[b+84|0]){c=i[i[b+68>>2]+(e<<2)>>2]}c=kl(q,h,c,0)+o|0;$k(g,c+n|0,l);aa(f+16|0,f+36|0,f+12|0,f+8|0);c=a<<2;i[c+k>>2]=i[f+12>>2];i[k+(c|4)>>2]=i[f+8>>2];a=a+2|0;h=1;e=e+1|0;if((e|0)!=(d|0)){continue}break}}H=f+48|0;return h}function $b(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i[b>>2];e=i[c+4>>2]+(i[c>>2]-f<<3)|0;c=i[b+4>>2];g=e-c|0;a:{if((g|0)<=0){c=i[d+4>>2];break a}b:{if(!c){c=i[d+4>>2];break b}e=i[d+4>>2];j=32-e|0;l=32-c|0;h=(g|0)<(l|0)?g:l;k=j>>>0>>0?j:h;m=i[d>>2];f=i[f>>2]&(-1<>>l-h);i[m>>2]=i[m>>2]&(-1<>>j-k^-1)|(e>>>0>c>>>0?f<>>c-e|0);e=e+k|0;c=e&31;i[d+4>>2]=c;j=m+(e>>>3&536870908)|0;i[d>>2]=j;e=h-k|0;if((e|0)>=1){i[j>>2]=i[j>>2]&(-1>>>32-e^-1)|f>>>k+i[b+4>>2];i[d+4>>2]=e;c=e}g=g-h|0;f=i[b>>2]+4|0;i[b>>2]=f}k=-1<>2];f=i[f>>2];i[e>>2]=j&i[e>>2]|f<>2]=e+4;i[e+4>>2]=k&i[e+4>>2]|f>>>h;f=i[b>>2]+4|0;i[b>>2]=f;l=(g|0)>63;e=g+ -32|0;g=e;if(l){continue}break}}if((e|0)<1){break a}b=i[d>>2];g=(h|0)<(e|0)?h:e;j=i[b>>2]&(k&-1>>>h-g^-1);h=i[f>>2]&-1>>>32-e;i[b>>2]=j|h<>2]=c;f=b+(f>>>3&536870908)|0;i[d>>2]=f;b=e-g|0;if((b|0)<1){break a}i[f>>2]=i[f>>2]&(-1>>>32-b^-1)|h>>>g;i[d+4>>2]=b;c=b}b=i[d>>2];i[a+4>>2]=c;i[a>>2]=b}function Xb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=H-32|0;H=d;a:{c=i[a+4>>2];b:{if(c>>>0>>0){g=i[a+8>>2];e=g<<5;f=b-c|0;c:{if(!(e>>>0>>0|c>>>0>e-f>>>0)){i[a+4>>2]=b;b=c&31;a=i[a>>2]+(c>>>3&536870908)|0;break c}i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;if((b|0)<=-1){break a}c=d+16|0;if(e>>>0<=1073741822){b=b+31&-32;e=g<<6;b=e>>>0>>0?b:e}else{b=2147483647}Zb(c,b);c=i[a+4>>2];i[d+20>>2]=c+f;b=i[d+16>>2];d:{if((c|0)<1){c=0;break d}g=i[a>>2];h=c>>>5|0;e=h<<2;b=bl(b,g,e)+e|0;c=c-(h<<5)|0;if((c|0)<1){c=0;break d}h=-1>>>32-c|0;i[b>>2]=i[b>>2]&(h^-1)|h&i[e+g>>2]}i[d+12>>2]=c;i[d+8>>2]=b;c=i[d+8>>2];b=i[d+12>>2];e=i[a>>2];i[a>>2]=i[d+16>>2];i[d+16>>2]=e;g=i[a+4>>2];i[a+4>>2]=i[d+20>>2];i[d+20>>2]=g;g=i[a+8>>2];i[a+8>>2]=i[d+24>>2];i[d+24>>2]=g;if(e){Zk(e)}a=c}if(!f){break b}if(b){c=32-b|0;e=c>>>0>f>>>0?f:c;i[a>>2]=i[a>>2]&(-1<>>c-e^-1);f=f-e|0;a=a+4|0}b=a;a=f>>>5<<2;b=al(b,0,a);c=f&31;if(!c){break b}a=a+b|0;i[a>>2]=i[a>>2]&(-1>>>32-c^-1);break b}i[a+4>>2]=b}H=d+32|0;return}Dk();x()}function Me(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=8392;Ne(a+232|0);e=i[a+216>>2];if(e){c=e;b=i[a+220>>2];d=c;a:{if((c|0)==(b|0)){break a}while(1){c=i[b+ -12>>2];if(c){i[b+ -8>>2]=c;Zk(c)}c=i[b+ -28>>2];if(c){i[b+ -24>>2]=c;Zk(c)}c=b+ -144|0;d=i[b+ -40>>2];if(d){i[b+ -36>>2]=d;Zk(d)}se(b+ -140|0);b=c;if((e|0)!=(b|0)){continue}break}d=i[a+216>>2]}c=d;i[a+220>>2]=e;Zk(c)}b=i[a+196>>2];if(b){i[a+200>>2]=b;Zk(b)}b=i[a+184>>2];if(b){i[a+188>>2]=b;Zk(b)}b=i[a+172>>2];if(b){i[a+176>>2]=b;Zk(b)}b=i[a+160>>2];if(b){i[a+164>>2]=b;Zk(b)}b=i[a+144>>2];if(b){while(1){c=i[b>>2];Zk(b);b=c;if(b){continue}break}}b=i[a+136>>2];i[a+136>>2]=0;if(b){Zk(b)}b=i[a+120>>2];if(b){Zk(b)}b=i[a+108>>2];if(b){Zk(b)}b=i[a+96>>2];if(b){Zk(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;Zk(b)}b=i[a+60>>2];if(b){Zk(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;Zk(b)}b=i[a+36>>2];if(b){i[a+40>>2]=b;Zk(b)}b=i[a+24>>2];if(b){i[a+28>>2]=b;Zk(b)}b=i[a+12>>2];if(b){i[a+16>>2]=b;Zk(b)}b=i[a+8>>2];i[a+8>>2]=0;if(b){re(a+8|0,b)}return a|0}function jd(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0;h=H-16|0;H=h;f=i[b+16>>2];d=i[b+12>>2];c=i[b+20>>2];a:{if((d|0)<(c|0)?1:(d|0)<=(c|0)?l[b+8>>2]<=f>>>0:0){break a}g[a+12|0]=j[f+i[b>>2]|0];d=i[b+20>>2];c=i[b+16>>2]+1|0;if(c>>>0<1){d=d+1|0}i[b+16>>2]=c;i[b+20>>2]=d;if(!kd(1,h+12|0,b)){break a}d=i[b+8>>2];m=i[b+16>>2];c=m;e=i[h+12>>2];f=e;k=d-c>>>0>>0;n=d>>>0>>0;d=i[b+20>>2];c=i[b+12>>2]-(n+d|0)|0;if(((c|0)<0?1:(c|0)<=0?k:0)|(e|0)<1){break a}c=m+i[b>>2]|0;i[a>>2]=c;o=e+ -1|0;p=o+c|0;k=j[p|0]>>>6|0;if((k|0)==3){break a}n=a;b:{c:{switch(k-1|0){default:i[a+4>>2]=o;a=j[p|0]&63;break b;case 0:if((e|0)<2){break a}i[a+4>>2]=e+ -2;a=(c+e|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break b;case 1:break c}}if((e|0)<3){break a}i[a+4>>2]=e+ -3;a=(c+e|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0]}a=a+4096|0;i[n+8>>2]=a;if(a>>>0>1048575){break a}a=d;d=f+m|0;if(d>>>0>>0){a=a+1|0}i[b+16>>2]=d;i[b+20>>2]=a;q=1}H=h+16|0;return q}function sa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,m=0,n=0;e=i[a+12>>2];d=i[a+8>>2];f=e-d>>2;b=g[b+24|0];a:{if(f>>>0>>0){la(a+8|0,b-f|0);d=i[a+8>>2];e=i[a+12>>2];break a}if(f>>>0<=b>>>0){break a}e=(b<<2)+d|0;i[a+12>>2]=e}b=0;h=i[c+12>>2];f=i[c+20>>2];k=i[c+16>>2];m=e-d|0;e=m;n=k+e|0;if(n>>>0>>0){f=f+1|0}b:{if((h|0)<(f|0)?1:(h|0)<=(f|0)?l[c+8>>2]>>0:0){break b}$k(d,k+i[c>>2]|0,m);d=i[c+20>>2];h=e+i[c+16>>2]|0;if(h>>>0>>0){d=d+1|0}e=h;i[c+16>>2]=e;i[c+20>>2]=d;f=i[c+12>>2];h=e+4|0;if(h>>>0<4){d=d+1|0}if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]>>0:0){break b}d=e+i[c>>2]|0;i[a+20>>2]=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);d=i[c+20>>2];e=d;k=i[c+16>>2];h=k+4|0;if(h>>>0<4){d=d+1|0}i[c+16>>2]=h;i[c+20>>2]=d;f=i[c+12>>2];if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]<=h>>>0:0){break b}f=j[h+i[c>>2]|0];d=e;e=k+5|0;if(e>>>0<5){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;if(f+ -1>>>0>29){break b}i[a+4>>2]=f;b=1}return b|0}function gj(a,b){var c=0,d=0,e=0,f=0,h=0,j=0;j=H-16|0;H=j;a:{b:{if(b){i[a+88>>2]=0;i[a+92>>2]=0;c=a+84|0;d=i[c>>2];i[c>>2]=0;if(d){Zk(d)}i[a+76>>2]=0;i[a+80>>2]=0;c=a+72|0;d=i[c>>2];i[c>>2]=0;if(d){Zk(d)}d=i[b>>2];c=i[b+4>>2];g[j+15|0]=0;ke(a,c-d>>2,j+15|0);c=b+28|0;d=i[c>>2];e=i[b+24>>2];g[j+14|0]=0;ke(a+12|0,d-e>>2,j+14|0);Zi(a+28|0,i[b+4>>2]-i[b>>2]>>2,11020);d=i[a+52>>2];e=i[c>>2]-i[b+24>>2]|0;c=e>>2;c:{if(i[a+60>>2]-d>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break b}f=i[a+56>>2];h=c<<2;c=ok(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){$k(c,d,e)}i[a+60>>2]=h;i[a+56>>2]=f;i[a+52>>2]=c;if(!d){break c}Zk(d)}d=i[a+40>>2];e=i[b+28>>2]-i[b+24>>2]|0;c=e>>2;d:{if(i[a+48>>2]-d>>2>>>0>=c>>>0){break d}if(c>>>0>=1073741824){break a}f=i[a+44>>2];h=c<<2;c=ok(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){$k(c,d,e)}i[a+48>>2]=h;i[a+44>>2]=f;i[a+40>>2]=c;if(!d){break d}Zk(d)}g[a+24|0]=1;i[a+64>>2]=b}H=j+16|0;return}xa(11024);x()}xa(11024);x()}function Ye(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i[a+12>>2];d=i[a+108>>2];e=i[d+80>>2];g[b+84|0]=0;f=i[b+68>>2];c=i[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){eb(b+68|0,e-c|0,9252);d=i[a+108>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=f+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}p=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=i[n>>2]+(o(d,3)<<2)|0;j=i[c>>2];if((j|0)==-1){break c}f=o(d,12)+m|0;h=i[f>>2];if(h>>>0>=e>>>0){break c}l=i[i[a+112>>2]+12>>2];k=i[l+(j<<2)>>2];if(k>>>0>=e>>>0){break c}j=i[b+68>>2];i[j+(h<<2)>>2]=k;h=i[c+4>>2];if((h|0)==-1){break c}k=i[f+4>>2];if(k>>>0>=e>>>0){break c}h=i[(h<<2)+l>>2];if(h>>>0>=e>>>0){break c}i[j+(k<<2)>>2]=h;c=i[c+8>>2];if((c|0)==-1){break c}f=i[f+8>>2];if(f>>>0>=e>>>0){break c}c=i[(c<<2)+l>>2];if(c>>>0>=e>>>0){break c}i[j+(f<<2)>>2]=c;c=1;d=d+1|0;if((p|0)!=(d|0)){continue}break b}break}c=0}return c|0}function hf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i[a+12>>2];d=i[a+68>>2];e=i[d+80>>2];g[b+84|0]=0;f=i[b+68>>2];c=i[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){eb(b+68|0,e-c|0,9252);d=i[a+68>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=f+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}p=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=i[n>>2]+(o(d,3)<<2)|0;j=i[c>>2];if((j|0)==-1){break c}f=o(d,12)+m|0;h=i[f>>2];if(h>>>0>=e>>>0){break c}l=i[i[a+72>>2]+12>>2];k=i[l+(j<<2)>>2];if(k>>>0>=e>>>0){break c}j=i[b+68>>2];i[j+(h<<2)>>2]=k;h=i[c+4>>2];if((h|0)==-1){break c}k=i[f+4>>2];if(k>>>0>=e>>>0){break c}h=i[(h<<2)+l>>2];if(h>>>0>=e>>>0){break c}i[j+(k<<2)>>2]=h;c=i[c+8>>2];if((c|0)==-1){break c}f=i[f+8>>2];if(f>>>0>=e>>>0){break c}c=i[(c<<2)+l>>2];if(c>>>0>=e>>>0){break c}i[j+(f<<2)>>2]=c;c=1;d=d+1|0;if((p|0)!=(d|0)){continue}break b}break}c=0}return c|0}function Ij(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;j=a+8|0;d=i[a+12>>2];h=i[a+8>>2];e=d-h>>2;a:{if((e|0)>(b|0)){break a}f=b+1|0;if(f>>>0>e>>>0){Jj(j,f-e|0);break a}if(f>>>0>=e>>>0){break a}e=h+(f<<2)|0;if((e|0)!=(d|0)){while(1){d=d+ -4|0;f=i[d>>2];i[d>>2]=0;if(f){Oa(f)}if((d|0)!=(e|0)){continue}break}}i[a+12>>2]=e}b:{c:{d=i[i[c>>2]+56>>2];d:{if((d|0)>4){break d}d=o(d,12)+a|0;f=d+24|0;a=i[f>>2];k=d+28|0;g=i[k>>2];if((a|0)!=(g|0)){i[a>>2]=b;i[f>>2]=a+4;break d}l=d+20|0;d=i[l>>2];h=a-d|0;a=h>>2;e=a+1|0;if(e>>>0>=1073741824){break c}m=a<<2;g=g-d|0;a=g>>1;e=g>>2>>>0<536870911?a>>>0>>0?e:a:1073741823;a=0;e:{if(!e){break e}if(e>>>0>=1073741824){break b}a=ok(e<<2)}g=m+a|0;i[g>>2]=b;e=a+(e<<2)|0;g=g+4|0;if((h|0)>=1){$k(a,d,h)}i[l>>2]=a;i[f>>2]=g;i[k>>2]=e;if(!d){break d}Zk(d)}d=i[c>>2];i[d+60>>2]=b;a=i[j>>2];i[c>>2]=0;b=a+(b<<2)|0;a=i[b>>2];i[b>>2]=d;if(a){Oa(a)}return}Dk();x()}xa(11352);x()}function Ze(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=H-16|0;H=g;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+28>>2]-i[c+24>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];h=c<<2;c=ok(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){$k(c,d,e)}i[b+8>>2]=h;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}Zk(d)}b=i[a+12>>2];d=i[b+28>>2];b=i[b+24>>2];i[g+12>>2]=0;b=d-b>>2;c=a+96|0;e=i[c>>2];d=i[a+100>>2]-e>>2;c:{if(b>>>0>d>>>0){Pa(c,b-d|0,g+12|0);break c}if(b>>>0>=d>>>0){break c}i[a+100>>2]=e+(b<<2)}e=a+8|0;b=i[a+116>>2];d:{if(b){d=1;c=i[b>>2];if((c|0)==i[b+4>>2]){break d}b=0;while(1){d=_e(e,i[(b<<2)+c>>2]);if(!d){break d}f=i[a+116>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break d}d=1;a=i[a+12>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break d}b=0;while(1){d=_e(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break d}if(d){continue}break}}H=g+16|0;return d|0}xa(8944);x()}function Ie(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if((e-c|0)/12>>>0>=b>>>0){if(b){h=c;b=o(b,12);c=b+ -12|0;c=al(h,0,(c-((c>>>0)%12|0)|0)+12|0)+b|0}i[a+4>>2]=c;return}a:{b:{c:{j=i[a>>2];f=(c-j|0)/12|0;d=f+b|0;if(d>>>0<357913942){f=o(f,12);e=(e-j|0)/12|0;g=e<<1;e=e>>>0<178956970?g>>>0>>0?d:g:357913941;if(e){if(e>>>0>=357913942){break c}h=ok(o(e,12))}d=f+h|0;b=o(b,12);f=al(d,0,b-((b+ -12>>>0)%12|0)|0);g=b+f|0;b=o(e,12)+h|0;if((c|0)==(j|0)){break b}while(1){d=d+ -12|0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;c=c+ -12|0;i[d>>2]=i[c>>2];i[d+4>>2]=i[c+4>>2];i[d+8>>2]=i[c+8>>2];i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;if((c|0)!=(j|0)){continue}break}i[a+8>>2]=b;b=i[a+4>>2];i[a+4>>2]=g;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){a=b+ -12|0;d=i[a>>2];if(d){i[b+ -8>>2]=d;Zk(d)}b=a;if((b|0)!=(c|0)){continue}break}break a}Dk();x()}xa(8944);x()}i[a+8>>2]=b;i[a+4>>2]=g;i[a>>2]=f}if(c){Zk(c)}}function of(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;j=i[a+12>>2];d=i[a+68>>2];e=i[d+80>>2];g[b+84|0]=0;h=i[b+68>>2];c=i[b+72>>2]-h>>2;a:{if(e>>>0>c>>>0){eb(b+68|0,e-c|0,9252);d=i[a+68>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=h+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}n=d>>>0>1?d:1;p=i[j+28>>2];d=0;b:{while(1){c:{c=(o(d,3)<<2)+p|0;h=i[c>>2];if((h|0)==-1){break c}j=o(d,12)+m|0;k=i[j>>2];if(k>>>0>=e>>>0){break c}f=h<<2;h=i[i[a+72>>2]+12>>2];f=i[f+h>>2];if(f>>>0>=e>>>0){break c}l=k<<2;k=i[b+68>>2];i[l+k>>2]=f;f=i[c+4>>2];if((f|0)==-1){break c}l=i[j+4>>2];if(l>>>0>=e>>>0){break c}f=i[h+(f<<2)>>2];if(f>>>0>=e>>>0){break c}i[k+(l<<2)>>2]=f;c=i[c+8>>2];if((c|0)==-1){break c}j=i[j+8>>2];if(j>>>0>=e>>>0){break c}c=i[h+(c<<2)>>2];if(c>>>0>=e>>>0){break c}i[k+(j<<2)>>2]=c;c=1;d=d+1|0;if((n|0)!=(d|0)){continue}break b}break}c=0}return c|0}function sc(a){var b=0,c=0,d=0;b=i[a+8>>2];d=i[a>>2];a:{if(j[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;if((b|0)==-1|i[i[d>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){break e}b=i[i[i[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}i[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;i[a+8>>2]=b;if((b|0)!=-1){break b}}b=-1;c=i[a+4>>2];f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1|i[i[d>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break f}d=i[i[i[d+64>>2]+12>>2]+(c<<2)>>2];if((d|0)==-1){break f}if((d>>>0)%3|0){b=d+ -1|0;break f}b=d+2|0}g[a+12|0]=0;i[a+8>>2]=b;return}if((b|0)!=i[a+4>>2]){break a}i[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)==-1|i[i[d>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){break g}b=i[i[i[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break g}if((b>>>0)%3|0){c=b+ -1|0;break g}c=b+2|0}i[a+8>>2]=c}}function ba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=p(0),f=p(0),h=p(0),k=p(0),l=p(0),m=0,n=p(0),o=p(0),r=p(0),s=p(0),u=0;a:{if(i[c+28>>2]!=9|j[c+24|0]!=3){break a}a=i[a+4>>2];if(a+ -2>>>0>28){break a}u=1;m=i[c+80>>2];if(!m){break a}n=p(p(2)/p((1<>2]>>2]+i[c+48>>2]|0;a=i[i[b>>2]>>2]+i[b+48>>2]|0;b=0;while(1){h=p(0);o=p(0);r=p(0);e=p(p(n*p(i[a>>2]))+p(-1));f=p(p(n*p(i[a+4>>2]))+p(-1));l=p(p(p(1)-p(q(e)))-p(q(f)));k=p(t(p(-l),p(0)));s=p(-k);f=p(f+(f>>8;g[c+10|0]=d>>>16;g[c+11|0]=d>>>24;d=(rl(o),sl(2));g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;d=(rl(h),sl(2));g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;c=c+12|0;b=b+1|0;if((m|0)!=(b|0)){continue}break}}return u|0}function tc(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+4>>2]=b;i[a>>2]=2776;b=c;e=i[b+8>>2];f=i[b+12>>2];h=i[b+16>>2];j=i[b+20>>2];k=i[b>>2];l=i[b+4>>2];i[a+40>>2]=0;g=a+32|0;i[g>>2]=0;i[g+4>>2]=0;i[a+24>>2]=h;i[a+28>>2]=j;i[a+16>>2]=e;i[a+20>>2]=f;i[a+8>>2]=k;i[a+12>>2]=l;a:{b=i[b+28>>2]-i[b+24>>2]|0;if(b){e=b>>2;if(e>>>0>=1073741824){break a}b=ok(b);i[a+32>>2]=b;i[a+36>>2]=b;i[a+40>>2]=b+(e<<2);e=a;f=i[c+24>>2];c=i[c+28>>2]-f|0;if((c|0)>=1){b=$k(b,f,c)+c|0}i[e+36>>2]=b}i[a>>2]=4340;b=i[d+4>>2];i[a+44>>2]=i[d>>2];i[a+48>>2]=b;b=d+8|0;e=i[b+4>>2];i[a+52>>2]=i[b>>2];i[a+56>>2]=e;c=a- -64|0;i[c>>2]=0;i[c+4>>2]=0;i[a+60>>2]=5440;i[a>>2]=4856;c=i[d+4>>2];i[a+72>>2]=i[d>>2];i[a+76>>2]=c;c=i[b+4>>2];i[a+80>>2]=i[b>>2];i[a+84>>2]=c;i[a+104>>2]=1065353216;i[a+108>>2]=-1;i[a+96>>2]=-1;i[a+100>>2]=-1;i[a+88>>2]=1;i[a+92>>2]=-1;i[a+60>>2]=5076;id(a+112|0);return}Dk();x()}function Jb(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+4>>2]=b;i[a>>2]=2776;b=c;e=i[b+8>>2];f=i[b+12>>2];h=i[b+16>>2];j=i[b+20>>2];k=i[b>>2];l=i[b+4>>2];i[a+40>>2]=0;g=a+32|0;i[g>>2]=0;i[g+4>>2]=0;i[a+24>>2]=h;i[a+28>>2]=j;i[a+16>>2]=e;i[a+20>>2]=f;i[a+8>>2]=k;i[a+12>>2]=l;a:{b=i[b+28>>2]-i[b+24>>2]|0;if(b){e=b>>2;if(e>>>0>=1073741824){break a}b=ok(b);i[a+32>>2]=b;i[a+36>>2]=b;i[a+40>>2]=b+(e<<2);e=a;f=i[c+24>>2];c=i[c+28>>2]-f|0;if((c|0)>=1){b=$k(b,f,c)+c|0}i[e+36>>2]=b}i[a>>2]=2720;b=i[d+4>>2];i[a+44>>2]=i[d>>2];i[a+48>>2]=b;b=d+8|0;e=i[b+4>>2];i[a+52>>2]=i[b>>2];i[a+56>>2]=e;c=a- -64|0;i[c>>2]=0;i[c+4>>2]=0;i[a+60>>2]=3944;i[a>>2]=3316;c=i[d+4>>2];i[a+72>>2]=i[d>>2];i[a+76>>2]=c;c=i[b+4>>2];i[a+80>>2]=i[b>>2];i[a+84>>2]=c;i[a+104>>2]=1065353216;i[a+108>>2]=-1;i[a+96>>2]=-1;i[a+100>>2]=-1;i[a+88>>2]=1;i[a+92>>2]=-1;i[a+60>>2]=3552;id(a+112|0);return}Dk();x()}function da(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0;m=d-c|0;if((m|0)<1){return}k=i[a+8>>2];l=i[a+4>>2];if((m|0)<=(k-l|0)){k=l-b|0;a:{if((m|0)<=(k|0)){f=d;e=l;d=e;break a}f=c+k|0;b:{if((f|0)==(d|0)){e=l;break b}e=l;h=f;while(1){g[e|0]=j[h|0];e=e+1|0;h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+4>>2]=e;if((k|0)<1){return}d=e}k=e-(b+m|0)|0;h=e-m|0;if(h>>>0>>0){e=d;while(1){g[e|0]=j[h|0];e=e+1|0;h=h+1|0;if(h>>>0>>0){continue}break}}i[a+4>>2]=e;if(k){bl(d-k|0,b,k)}if((c|0)==(f|0)){return}e=b;while(1){g[e|0]=j[c|0];e=e+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}return}e=i[a>>2];f=(l-e|0)+m|0;if((f|0)>-1){h=b-e|0;n=h;k=k-e|0;d=k<<1;f=k>>>0<1073741823?d>>>0>>0?f:d:2147483647;d=0;c:{if(!f){break c}d=ok(f)}c=$k(n+d|0,c,m);if((h|0)>=1){$k(d,e,h)}f=d+f|0;c=c+m|0;l=l-b|0;if((l|0)>=1){c=$k(c,b,l)+l|0}i[a+8>>2]=f;i[a+4>>2]=c;i[a>>2]=d;if(e){Zk(e)}return}Dk();x()}function pd(a){var b=0,c=0,d=0,e=0;e=H-16|0;H=e;b=ok(32);i[e>>2]=b;i[e+4>>2]=26;i[e+8>>2]=-2147483616;g[b+26|0]=0;c=j[8009]|j[8010]<<8;g[b+24|0]=c;g[b+25|0]=c>>>8;d=j[8005]|j[8006]<<8|(j[8007]<<16|j[8008]<<24);c=j[8001]|j[8002]<<8|(j[8003]<<16|j[8004]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[7997]|j[7998]<<8|(j[7999]<<16|j[8e3]<<24);c=j[7993]|j[7994]<<8|(j[7995]<<16|j[7996]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[7989]|j[7990]<<8|(j[7991]<<16|j[7992]<<24);c=j[7985]|j[7986]<<8|(j[7987]<<16|j[7988]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;rk(a+4|0,e);if(g[e+11|0]<=-1){Zk(i[e>>2])}H=e+16|0}function tf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ok(b<<2);d=i[a>>2];i[a>>2]=c;if(d){Zk(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=nl(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(i[d+8>>2]==i[c+8>>2]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){Zk(b)}i[a+4>>2]=0}return}xa(8944);x()}function Bd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;g=H-16|0;H=g;a:{if(!Md(1,g+8|0,b)){break a}c=i[b+8>>2];d=i[b+16>>2];h=c-d|0;e=i[g+12>>2];k=i[b+20>>2];f=i[b+12>>2]-(k+(c>>>0>>0)|0)|0;c=i[g+8>>2];if((e|0)==(f|0)&c>>>0>h>>>0|e>>>0>f>>>0){break a}e=e+k|0;f=c+d|0;if(f>>>0>>0){e=e+1|0}i[b+16>>2]=f;i[b+20>>2]=e;if((c|0)<1){break a}d=d+i[b>>2]|0;i[a+40>>2]=d;b=a;b:{c:{d:{e:{f:{f=c+ -1|0;h=d+f|0;switch((j[h|0]>>>6|0)-1|0){case 2:break c;case 1:break d;case 0:break e;default:break f}}i[a+44>>2]=f;a=j[h|0]&63;break b}if((c|0)<2){break a}i[a+44>>2]=c+ -2;a=(c+d|0)+ -2|0;a=j[a+1|0]<<8&16128|j[a|0];break b}if((c|0)<3){break a}i[a+44>>2]=c+ -3;a=(c+d|0)+ -3|0;a=j[a+1|0]<<8|j[a+2|0]<<16&4128768|j[a|0];break b}i[a+44>>2]=c+ -4;a=(c+d|0)+ -4|0;a=j[a+2|0]<<16|j[a+3|0]<<24&1056964608|j[a+1|0]<<8|j[a|0]}a=a+16384|0;i[b+48>>2]=a;l=a>>>0<4194304}H=g+16|0;return l}function tg(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=H-16|0;H=e;k=ug(a,b);a:{if(!k){break a}d=i[b+100>>2];f=i[b+96>>2];if((d|0)==(f|0)){break a}while(1){if(!(i[i[a+56>>2]+(j>>>3&536870908)>>2]>>>(j&31)&1)){d=o(j,3);kj(a,0,d);f=i[a+8>>2];h=i[a+12>>2];kj(a,1,d+1|0);g=i[a+20>>2];l=i[a+24>>2];kj(a,2,d+2|0);g=l-g>>2;f=h-f|0;h=f>>2;d=g>>>0>h>>>0;h=i[a+36>>2]-i[a+32>>2]>>2>>>0>(d?g:h)>>>0?2:d?1:f?0:-1;b:{if(i[a+68>>2]<1){break b}i[e+12>>2]=i[a+76>>2];i[e+8>>2]=c;vg(e+8|0,e+12|0);f=e;g=i[((h<<2)+a|0)+44>>2];d=-1;c:{if((g|0)<0){break c}d=(g>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(g-o(d,3)<<2)>>2]}i[f+12>>2]=d;i[e+8>>2]=c;vg(e+8|0,e+12|0);f=i[a+72>>2]+2|0;i[a+72>>2]=f;if(!(f&1)){break b}i[e+12>>2]=d;i[e+8>>2]=c;vg(e+8|0,e+12|0);i[a+72>>2]=i[a+72>>2]+1}wg(a,h,c);f=i[b+96>>2];d=i[b+100>>2]}j=j+1|0;if(j>>>0<(d-f|0)/12>>>0){continue}break}}H=e+16|0;return k}function Ee(a){i[a>>2]=8392;al(a+4|0,0,80);i[a+96>>2]=0;i[a+100>>2]=0;i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+148>>2]=0;i[a+156>>2]=0;i[a+160>>2]=0;i[a+152>>2]=1065353216;i[a+164>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;i[a+196>>2]=0;i[a+200>>2]=0;i[a+204>>2]=0;i[a+208>>2]=0;i[a+212>>2]=-1;i[a+216>>2]=0;i[a+220>>2]=0;i[a+224>>2]=0;Rf(a+232|0);Rf(a+272|0);id(a+312|0);Rf(a+328|0);i[a+392>>2]=0;i[a+396>>2]=0;i[a+384>>2]=0;i[a+388>>2]=0;i[a+376>>2]=0;i[a+380>>2]=0;i[a+368>>2]=0;i[a+372>>2]=0;i[a+416>>2]=0;i[a+420>>2]=0;i[a+408>>2]=2;i[a+412>>2]=7;i[a+400>>2]=-1;i[a+404>>2]=-1;i[a+424>>2]=0;i[a+428>>2]=0;i[a+432>>2]=0;i[a+436>>2]=0}function ij(a,b){var c=0,d=0,e=0,f=0,h=0,j=0;e=i[a>>2];c=e+(b>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<<(b&31);h=i[a+64>>2];f=(b|0)==-1;c=-1;a:{if(f){break a}d=b+1|0;d=(d>>>0)%3|0?d:b+ -2|0;c=-1;if((d|0)==-1){break a}c=i[i[h>>2]+(d<<2)>>2]}d=i[a+12>>2];j=(c>>>3&536870908)+d|0;i[j>>2]=i[j>>2]|1<<(c&31);b:{c:{if(!f){c=-1;f=((b>>>0)%3|0?-1:2)+b|0;if((f|0)!=-1){c=i[i[h>>2]+(f<<2)>>2]}f=d+(c>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<<(c&31);b=i[i[h+12>>2]+(b<<2)>>2];if((b|0)==-1){break b}g[a+24|0]=0;a=(b>>>3&536870908)+e|0;i[a>>2]=i[a>>2]|1<<(b&31);a=-1;c=-1;e=b+1|0;e=(e>>>0)%3|0?e:b+ -2|0;if((e|0)!=-1){c=i[i[h>>2]+(e<<2)>>2]}e=d+(c>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<<(c&31);b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)!=-1){a=i[i[h>>2]+(b<<2)>>2]}b=1<<(a&31);a=d+(a>>>3&536870908)|0;c=i[a>>2];break c}a=d+536870908|0;b=i[d+536870908>>2];c=-2147483648}i[a>>2]=b|c}}function Dd(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=H+ -64|0;H=d;i[d+56>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;a:{if(!Ad(d+8|0,b)){break a}if(a){if(!i[d+20>>2]){break a}if(!Bd(d+8|0,b)){break a}b=i[d+56>>2];k=i[d+36>>2];l=i[d+48>>2];m=i[d+24>>2];while(1){b:{if(b>>>0>16383){break b}e=i[d+52>>2];while(1){if((e|0)<1){break b}e=e+ -1|0;i[d+52>>2]=e;b=j[e+l|0]|b<<8;i[d+56>>2]=b;if(b>>>0<16384){continue}break}}e=b&4095;g=i[(e<<2)+m>>2];h=(g<<3)+k|0;b=(o(i[h>>2],b>>>12|0)+e|0)-i[h+4>>2]|0;i[d+56>>2]=b;i[(f<<2)+c>>2]=g;e=1;f=f+1|0;if((f|0)!=(a|0)){continue}break}break a}e=Bd(d+8|0,b)}a=i[d+36>>2];if(a){i[d+40>>2]=a;Zk(a)}a=i[d+24>>2];if(a){i[d+28>>2]=a;Zk(a)}a=i[d+8>>2];if(a){i[d+12>>2]=a;Zk(a)}H=d- -64|0;return e}function Ha(a,b){var c=0,d=0,e=0,f=0,h=0;if(!i[a+64>>2]){c=ok(32);Of(c);d=i[a+64>>2];i[a+64>>2]=c;e=a;if(d){c=i[d>>2];if(c){i[d+4>>2]=c;Zk(c)}Zk(d);c=i[a+64>>2]}Da(e,c,0,0)}a:{b:{if(!Ca(a,b)){break b}g[a+84|0]=j[b+84|0];i[a+80>>2]=i[b+80>>2];if((a|0)!=(b|0)){Ia(a+68|0,i[b+68>>2],i[b+72>>2])}d=i[b+88>>2];if(d){b=ok(40);c=i[d>>2];i[b+16>>2]=0;i[b+8>>2]=0;i[b+12>>2]=0;i[b>>2]=c;e=i[d+12>>2]-i[d+8>>2]|0;if(e){if((e|0)<=-1){break a}c=ok(e);i[b+8>>2]=c;i[b+12>>2]=c;i[b+16>>2]=c+e;e=b;h=i[d+8>>2];f=i[d+12>>2]-h|0;if((f|0)>=1){c=$k(c,h,f)+f|0}i[e+12>>2]=c}c=i[d+36>>2];i[b+32>>2]=i[d+32>>2];i[b+36>>2]=c;c=i[d+28>>2];i[b+24>>2]=i[d+24>>2];i[b+28>>2]=c;c=i[a+88>>2];i[a+88>>2]=b;if(!c){break b}a=i[c+8>>2];if(a){i[c+12>>2]=a;Zk(a)}Zk(c);return}b=i[a+88>>2];i[a+88>>2]=0;if(!b){break b}a=i[b+8>>2];if(a){i[b+12>>2]=a;Zk(a)}Zk(b)}return}Dk();x()}function qd(a,b){var c=0,d=0,e=0;e=H-16|0;H=e;i[e+12>>2]=b;b=ok(32);i[e>>2]=b;i[e+4>>2]=24;i[e+8>>2]=-2147483616;g[b+24|0]=0;c=j[8053]|j[8054]<<8|(j[8055]<<16|j[8056]<<24);d=j[8049]|j[8050]<<8|(j[8051]<<16|j[8052]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[8045]|j[8046]<<8|(j[8047]<<16|j[8048]<<24);d=j[8041]|j[8042]<<8|(j[8043]<<16|j[8044]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[8037]|j[8038]<<8|(j[8039]<<16|j[8040]<<24);d=j[8033]|j[8034]<<8|(j[8035]<<16|j[8036]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;Zf(rd(a,e+12|0),e);if(g[e+11|0]<=-1){Zk(i[e>>2])}H=e+16|0}function jj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=H-16|0;H=d;l=Ej(b);a:{if(!l){i[a>>2]=0;break a}c=i[b+100>>2];h=i[b+96>>2];i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=c-h|0;e=(f|0)/12|0;b:{c:{if(f){if(e>>>0>=357913942){break c}k=ok(f);i[d>>2]=k;i[d+4>>2]=k;e=o(e,12)+k|0;i[d+8>>2]=e;c=k;while(1){i[c>>2]=0;i[c+4>>2]=0;i[c+8>>2]=0;c=c+12|0;if((e|0)!=(c|0)){continue}break}i[d+4>>2]=e;h=i[b+96>>2];c=i[b+100>>2]}if((c|0)==(h|0)){break b}b=(c-h|0)/12|0;n=b>>>0>1?b:1;c=0;p=j[l+84|0];while(1){f=o(c,12);g=f+h|0;b=i[g>>2];d:{if(p){m=g+8|0;g=g+4|0;break d}e=i[l+68>>2];m=e+(i[g+8>>2]<<2)|0;b=i[e+(b<<2)>>2];g=e+(i[g+4>>2]<<2)|0}e=i[g>>2];f=f+k|0;i[f+8>>2]=i[m>>2];i[f+4>>2]=e;i[f>>2]=b;c=c+1|0;if((n|0)!=(c|0)){continue}break}break b}Dk();x()}Pi(a,d);a=i[d>>2];if(!a){break a}i[d+4>>2]=a;Zk(a)}H=d+16|0}function le(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<2)+c|0;while(1){i[c>>2]=0;c=c+4|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){f=f<<2;d=d-g|0;h=d>>1;d=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(d){if(d>>>0>=1073741824){break a}j=ok(d<<2)}e=f+j|0;f=e+(b<<2)|0;d=(d<<2)+j|0;b=e;while(1){i[b>>2]=0;b=b+4|0;if((f|0)!=(b|0)){continue}break}if((c|0)!=(g|0)){while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;e=e+ -4|0;i[e>>2]=b;if((c|0)!=(g|0)){continue}break}c=i[a>>2]}i[a>>2]=e;i[a+8>>2]=d;b=i[a+4>>2];i[a+4>>2]=f;if((b|0)!=(c|0)){while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){K[i[i[a>>2]+4>>2]](a)}if((b|0)!=(c|0)){continue}break}}if(c){Zk(c)}return}Dk();x()}xa(8944);x()}function lb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<2)+c|0;while(1){i[c>>2]=0;c=c+4|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){f=f<<2;d=d-g|0;h=d>>1;d=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(d){if(d>>>0>=1073741824){break a}j=ok(d<<2)}e=f+j|0;f=e+(b<<2)|0;d=(d<<2)+j|0;b=e;while(1){i[b>>2]=0;b=b+4|0;if((f|0)!=(b|0)){continue}break}if((c|0)!=(g|0)){while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;e=e+ -4|0;i[e>>2]=b;if((c|0)!=(g|0)){continue}break}c=i[a>>2]}i[a>>2]=e;i[a+8>>2]=d;b=i[a+4>>2];i[a+4>>2]=f;if((b|0)!=(c|0)){while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){K[i[i[a>>2]+4>>2]](a)}if((b|0)!=(c|0)){continue}break}}if(c){Zk(c)}return}Dk();x()}xa(1876);x()}function Pg(a,b,c,d,e){var f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0;h=H-16|0;H=h;a:{b:{switch(c+ -1|0){case 0:f=Qg(a,b,d,e);break a;case 2:f=Rg(a,b,d,e);break a;case 4:f=Sg(a,b,d,e);break a;case 1:f=Tg(a,b,d,e);break a;case 3:f=Ug(a,b,d,e);break a;case 5:f=Vg(a,b,d,e);break a;case 8:break b;default:break a}}l=g[b+24|0];m=l<<2;a=i[a+80>>2];if((o(m,a)|0)!=(d|0)){break a}c=i[b+28>>2];d=i[2663];i[h+8>>2]=i[2662];i[h+12>>2]=d;d=i[2661];i[h>>2]=i[2660];i[h+4>>2]=d;c:{if(!a){break c}d=0;p=(c|0)!=9;k=1;while(1){c=j[b+84|0]?f:i[i[b+68>>2]+(f<<2)>>2];d:{if(!p){k=i[b+48>>2];q=i[i[b>>2]>>2];n=i[b+40>>2];c=kl(n,i[b+44>>2],c,0)+k|0;$k(h,q+c|0,n);break d}if(!Ag(b,c,g[b+24|0],h)){break c}}if((l|0)>=1){$k((d<<2)+e|0,h,m);d=d+l|0}f=f+1|0;k=f>>>0>>0;if((a|0)!=(f|0)){continue}break}}f=k^1}H=h+16|0;return f&1}function pa(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,n=0,o=0,r=0,s=0,t=0,v=0,w=p(0),x=0,y=0,z=p(0),A=0,B=0,C=0,D=0;k=H-16|0;H=k;l=i[a+4>>2];n=i[d+48>>2];h=i[i[d>>2]>>2];f=g[b+24|0];e=ag(k+8|0);bg(e,m[a+20>>2],-1<>2];c=i[c+4>>2];if((o|0)!=(c|0)){x=n+h|0;c=c-o>>2;y=c>>>0>1?c:1;z=m[e>>2];A=i[b>>2];l=i[b+48>>2];B=i[b+68>>2];n=i[b+44>>2];h=i[b+40>>2];C=h;c=0;D=j[b+84|0];while(1){b=i[(r<<2)+o>>2];e=d;s=i[A>>2];t=h;v=n;if(!D){b=i[(b<<2)+B>>2]}b=kl(t,v,b,0)+l|0;t=$k(e,b+s|0,C);if((f|0)>=1){v=i[a+8>>2];b=0;while(1){s=(c<<2)+x|0;e=b<<2;w=p(u(p(p(z*p(m[e+t>>2]-m[e+v>>2]))+p(.5))));a:{if(p(q(w))>2]=e;c=c+1|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}r=r+1|0;if((y|0)!=(r|0)){continue}break}}Zk(d);H=k+16|0}function Vg(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;f=H-16|0;H=f;a:{l=i[a+80>>2];h=g[b+24|0];k=h<<2;e=0;b:{if((o(l,k)|0)!=(c|0)){break b}p=i[b+28>>2]!=6;if(!(p|!j[b+84|0])){$k(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;a=0;if(h){if((h|0)<=-1){break a}a=ok(k);i[f>>2]=a;c=h<<2;e=c+a|0;i[f+8>>2]=e;al(a,0,c);i[f+4>>2]=e}c:{if(!l){break c}c=0;m=1;while(1){e=n;e=j[b+84|0]?e:i[i[b+68>>2]+(e<<2)>>2];d:{if(!p){m=i[i[b>>2]>>2];k=i[b+40>>2];e=i[b+48>>2]+kl(k,i[b+44>>2],e,0)|0;$k(a,m+e|0,k);break d}if(!Og(b,e,g[b+24|0],a)){break c}}e=0;if((h|0)>=1){while(1){i[(c<<2)+d>>2]=i[(e<<2)+a>>2];c=c+1|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}}n=n+1|0;m=n>>>0>>0;if((n|0)!=(l|0)){continue}break}}if(a){i[f+4>>2]=a;Zk(a)}e=m^1}H=f+16|0;return e&1}Dk();x()}function Ug(a,b,c,d){var e=0,f=0,l=0,m=0,n=0,p=0,q=0,r=0;f=H-16|0;H=f;a:{n=i[a+80>>2];l=g[b+24|0];m=l<<1;e=0;b:{if((o(n,m)|0)!=(c|0)){break b}r=i[b+28>>2]!=4;if(!(r|!j[b+84|0])){$k(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;a=0;if(l){if((l|0)<=-1){break a}a=ok(m);i[f>>2]=a;c=l<<1;e=c+a|0;i[f+8>>2]=e;al(a,0,c);i[f+4>>2]=e}c:{if(!n){break c}c=0;p=1;while(1){e=q;e=j[b+84|0]?e:i[i[b+68>>2]+(e<<2)>>2];d:{if(!r){p=i[i[b>>2]>>2];m=i[b+40>>2];e=i[b+48>>2]+kl(m,i[b+44>>2],e,0)|0;$k(a,p+e|0,m);break d}if(!Kg(b,e,g[b+24|0],a)){break c}}e=0;if((l|0)>=1){while(1){h[(c<<1)+d>>1]=k[(e<<1)+a>>1];c=c+1|0;e=e+1|0;if((l|0)!=(e|0)){continue}break}}q=q+1|0;p=q>>>0>>0;if((q|0)!=(n|0)){continue}break}}if(a){i[f+4>>2]=a;Zk(a)}e=p^1}H=f+16|0;return e&1}Dk();x()}function Sg(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;f=H-16|0;H=f;a:{l=i[a+80>>2];h=g[b+24|0];k=h<<2;e=0;b:{if((o(l,k)|0)!=(c|0)){break b}p=i[b+28>>2]!=5;if(!(p|!j[b+84|0])){$k(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;a=0;if(h){if((h|0)<=-1){break a}a=ok(k);i[f>>2]=a;c=h<<2;e=c+a|0;i[f+8>>2]=e;al(a,0,c);i[f+4>>2]=e}c:{if(!l){break c}c=0;m=1;while(1){e=n;e=j[b+84|0]?e:i[i[b+68>>2]+(e<<2)>>2];d:{if(!p){m=i[i[b>>2]>>2];k=i[b+40>>2];e=i[b+48>>2]+kl(k,i[b+44>>2],e,0)|0;$k(a,m+e|0,k);break d}if(!Mg(b,e,g[b+24|0],a)){break c}}e=0;if((h|0)>=1){while(1){i[(c<<2)+d>>2]=i[(e<<2)+a>>2];c=c+1|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}}n=n+1|0;m=n>>>0>>0;if((n|0)!=(l|0)){continue}break}}if(a){i[f+4>>2]=a;Zk(a)}e=m^1}H=f+16|0;return e&1}Dk();x()}function Rg(a,b,c,d){var e=0,f=0,l=0,m=0,n=0,p=0,q=0,r=0;f=H-16|0;H=f;a:{n=i[a+80>>2];l=g[b+24|0];m=l<<1;e=0;b:{if((o(n,m)|0)!=(c|0)){break b}r=i[b+28>>2]!=3;if(!(r|!j[b+84|0])){$k(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);e=1;break b}i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;a=0;if(l){if((l|0)<=-1){break a}a=ok(m);i[f>>2]=a;c=l<<1;e=c+a|0;i[f+8>>2]=e;al(a,0,c);i[f+4>>2]=e}c:{if(!n){break c}c=0;p=1;while(1){e=q;e=j[b+84|0]?e:i[i[b+68>>2]+(e<<2)>>2];d:{if(!r){p=i[i[b>>2]>>2];m=i[b+40>>2];e=i[b+48>>2]+kl(m,i[b+44>>2],e,0)|0;$k(a,p+e|0,m);break d}if(!Ig(b,e,g[b+24|0],a)){break c}}e=0;if((l|0)>=1){while(1){h[(c<<1)+d>>1]=k[(e<<1)+a>>1];c=c+1|0;e=e+1|0;if((l|0)!=(e|0)){continue}break}}q=q+1|0;p=q>>>0>>0;if((q|0)!=(n|0)){continue}break}}if(a){i[f+4>>2]=a;Zk(a)}e=p^1}H=f+16|0;return e&1}Dk();x()}function Jj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<2)+c|0;while(1){i[c>>2]=0;c=c+4|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){f=f<<2;d=d-g|0;h=d>>1;d=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(d){if(d>>>0>=1073741824){break a}j=ok(d<<2)}e=f+j|0;f=e+(b<<2)|0;d=(d<<2)+j|0;b=e;while(1){i[b>>2]=0;b=b+4|0;if((f|0)!=(b|0)){continue}break}if((c|0)!=(g|0)){while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;e=e+ -4|0;i[e>>2]=b;if((c|0)!=(g|0)){continue}break}c=i[a>>2]}i[a>>2]=e;i[a+8>>2]=d;b=i[a+4>>2];i[a+4>>2]=f;if((b|0)!=(c|0)){while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){Oa(a)}if((b|0)!=(c|0)){continue}break}}if(c){Zk(c)}return}Dk();x()}xa(11352);x()}function _b(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=H-32|0;H=f;h=i[c+4>>2];d=i[b+4>>2];j=i[c>>2];g=i[b>>2];b=(h-d|0)+(j-g<<3)|0;c=i[a+4>>2];e=b+c|0;i[a+4>>2]=e;a:{if(!(!c|(e+ -1^c+ -1)>>>0>31)){a=i[a>>2];break a}a=i[a>>2];if(e>>>0<=32){i[a>>2]=0;break a}i[(e+ -1>>>3&536870908)+a>>2]=0}a=(c>>>3&536870908)+a|0;c=c&31;b:{if((c|0)==(d|0)){c:{if((b|0)<1){break c}d:{if(!d){c=0;break d}e=32-d|0;c=(b|0)<(e|0)?b:e;e=-1<>>e-c;i[a>>2]=i[a>>2]&(e^-1)|e&i[g>>2];b=b-c|0;d=c+d|0;c=d&31;a=(d>>>3&536870908)+a|0;g=g+4|0}d=(b|0)/32|0;e=d<<2;a=bl(a,g,e)+e|0;d=b-(d<<5)|0;if((d|0)<1){d=c;break c}b=-1>>>32-d|0;i[a>>2]=i[a>>2]&(b^-1)|b&i[e+g>>2]}i[f+4>>2]=d;i[f>>2]=a;break b}i[f+28>>2]=d;i[f+24>>2]=g;i[f+20>>2]=h;i[f+16>>2]=j;i[f+12>>2]=c;i[f+8>>2]=a;$b(f,f+24|0,f+16|0,f+8|0)}H=f+32|0}function xb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=H-16|0;H=f;l=i[c+8>>2];h=i[c+16>>2];k=i[c+12>>2];d=k;j=i[c+20>>2];e=j;a:{if((d|0)<(e|0)?1:(d|0)<=(e|0)?l>>>0<=h>>>0:0){break a}m=i[c>>2];n=g[m+h|0];d=j;e=h+1|0;if(e>>>0<1){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;b:{if((n|0)==-2){break b}if((k|0)<(d|0)?1:(k|0)<=(d|0)?l>>>0<=e>>>0:0){break a}e=g[e+m|0];h=h+2|0;if(h>>>0<2){j=j+1|0}d=c;i[d+16>>2]=h;i[d+20>>2]=j;if((e+1&255)>>>0>4){break a}K[i[i[a>>2]+40>>2]](f+8|0,a,n,e);j=i[f+8>>2];i[f+8>>2]=0;d=i[a+20>>2];i[a+20>>2]=j;if(!d){i[f+8>>2]=0;break b}K[i[i[d>>2]+4>>2]](d);d=i[f+8>>2];i[f+8>>2]=0;if(!d){break b}K[i[i[d>>2]+4>>2]](d)}d=i[a+20>>2];if(d){if(!(K[i[i[a>>2]+28>>2]](a,d)|0)){break a}}o=K[i[i[a>>2]+36>>2]](a,b,c)|0}H=f+16|0;return o|0}function Tg(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;e=H-16|0;H=e;a:{m=i[a+80>>2];h=g[b+24|0];k=0;b:{if((o(m,h)|0)!=(c|0)){break b}k=i[b+28>>2]!=2;if(!(k|!j[b+84|0])){$k(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);k=1;break b}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(h){if((h|0)<=-1){break a}f=ok(h);i[e>>2]=f;a=f+h|0;i[e+8>>2]=a;al(f,0,h);i[e+4>>2]=a}c:{if(!m){break c}c=0;l=1;while(1){a=n;a=j[b+84|0]?a:i[i[b+68>>2]+(a<<2)>>2];d:{if(!k){p=i[i[b>>2]>>2];l=i[b+40>>2];a=i[b+48>>2]+kl(l,i[b+44>>2],a,0)|0;$k(f,p+a|0,l);break d}if(!Fg(b,a,g[b+24|0],f)){break c}}a=0;if((h|0)>=1){while(1){g[c+d|0]=j[a+f|0];c=c+1|0;a=a+1|0;if((h|0)!=(a|0)){continue}break}}n=n+1|0;l=n>>>0>>0;if((n|0)!=(m|0)){continue}break}}if(f){i[e+4>>2]=f;Zk(f)}k=l^1}H=e+16|0;return k&1}Dk();x()}function Qg(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;e=H-16|0;H=e;a:{m=i[a+80>>2];h=g[b+24|0];k=0;b:{if((o(m,h)|0)!=(c|0)){break b}k=i[b+28>>2]!=1;if(!(k|!j[b+84|0])){$k(d,i[i[b>>2]>>2]+i[b+48>>2]|0,c);k=1;break b}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(h){if((h|0)<=-1){break a}f=ok(h);i[e>>2]=f;a=f+h|0;i[e+8>>2]=a;al(f,0,h);i[e+4>>2]=a}c:{if(!m){break c}c=0;l=1;while(1){a=n;a=j[b+84|0]?a:i[i[b+68>>2]+(a<<2)>>2];d:{if(!k){p=i[i[b>>2]>>2];l=i[b+40>>2];a=i[b+48>>2]+kl(l,i[b+44>>2],a,0)|0;$k(f,p+a|0,l);break d}if(!Dg(b,a,g[b+24|0],f)){break c}}a=0;if((h|0)>=1){while(1){g[c+d|0]=j[a+f|0];c=c+1|0;a=a+1|0;if((h|0)!=(a|0)){continue}break}}n=n+1|0;l=n>>>0>>0;if((n|0)!=(m|0)){continue}break}}if(f){i[e+4>>2]=f;Zk(f)}k=l^1}H=e+16|0;return k&1}Dk();x()}function Gc(a){var b=0,c=0,d=0;b=i[a+8>>2];d=i[a>>2];a:{if(j[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;if((b|0)==-1){break e}b=i[i[d+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}i[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;i[a+8>>2]=b;if((b|0)!=-1){break b}}c=i[a+4>>2];b=-1;f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;b=-1;if((c|0)==-1){break f}c=i[i[d+12>>2]+(c<<2)>>2];b=-1;if((c|0)==-1){break f}b=c+ -1|0;if((c>>>0)%3|0){break f}b=c+2|0}g[a+12|0]=0;i[a+8>>2]=b;return}if((b|0)!=i[a+4>>2]){break a}i[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;c=-1;if((b|0)==-1){break g}b=i[i[d+12>>2]+(b<<2)>>2];c=-1;if((b|0)==-1){break g}c=b+ -1|0;if((b>>>0)%3|0){break g}c=b+2|0}i[a+8>>2]=c}}function oc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=i[b+12>>2];g=d;c=i[b+20>>2];f=c;a:{h=i[b+16>>2];e=h+4|0;if(e>>>0<4){c=c+1|0}l=i[b+8>>2];k=e;e=c;if((d|0)<(c|0)?1:(d|0)<=(c|0)?l>>>0>>0:0){break a}m=i[b>>2];c=m+h|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=k;i[b+20>>2]=e;c=f;f=h+8|0;if(f>>>0<8){c=c+1|0}e=f;f=c;if((g|0)<(c|0)?1:(g|0)<=(c|0)?l>>>0>>0:0){break a}c=k+m|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=e;i[b+20>>2]=f;if((d|0)>(c|0)){break a}i[a+16>>2]=c;i[a+12>>2]=d;g=d;d=(c>>31)-((d>>31)+(c>>>0>>0)|0)|0;c=c-g|0;if(!d&c>>>0>2147483646|d>>>0>0){break a}c=c+1|0;i[a+20>>2]=c;d=(c|0)/2|0;i[a+24>>2]=d;i[a+28>>2]=0-d;if(!(c&1)){i[a+24>>2]=d+ -1}return jd(a+112|0,b)|0}return 0}function bl(a,b,c){var d=0;a:{if((a|0)==(b|0)){break a}if((b-a|0)-c>>>0<=0-(c<<1)>>>0){return $k(a,b,c)}d=(a^b)&3;b:{c:{if(a>>>0>>0){if(d){d=a;break b}if(!(a&3)){d=a;break c}d=a;while(1){if(!c){break a}g[d|0]=j[b|0];b=b+1|0;c=c+ -1|0;d=d+1|0;if(d&3){continue}break}break c}d:{if(d){break d}if(a+c&3){while(1){if(!c){break a}c=c+ -1|0;d=c+a|0;g[d|0]=j[b+c|0];if(d&3){continue}break}}if(c>>>0<=3){break d}while(1){c=c+ -4|0;i[c+a>>2]=i[b+c>>2];if(c>>>0>3){continue}break}}if(!c){break a}while(1){c=c+ -1|0;g[c+a|0]=j[b+c|0];if(c){continue}break}break a}if(c>>>0<=3){break b}while(1){i[d>>2]=i[b>>2];b=b+4|0;d=d+4|0;c=c+ -4|0;if(c>>>0>3){continue}break}}if(!c){break a}while(1){g[d|0]=j[b|0];d=d+1|0;b=b+1|0;c=c+ -1|0;if(c){continue}break}}return a}function Ce(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;f=i[a+8>>2];d=i[a+4>>2];if((f-d|0)/12>>>0>=b>>>0){if(!b){i[a+4>>2]=d;return}b=o(b,12)+d|0;while(1){g=i[c+4>>2];i[d>>2]=i[c>>2];i[d+4>>2]=g;i[d+8>>2]=i[c+8>>2];d=d+12|0;if((b|0)!=(d|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];h=d-g|0;d=(h|0)/12|0;e=d+b|0;if(e>>>0<357913942){j=o(b,12);k=o(d,12);f=(f-g|0)/12|0;b=f<<1;e=f>>>0<178956970?b>>>0>>0?e:b:357913941;d=0;b:{if(!e){break b}if(e>>>0>=357913942){break a}d=ok(o(e,12))}b=k+d|0;f=j+b|0;e=d+o(e,12)|0;d=b;while(1){j=i[c+4>>2];i[d>>2]=i[c>>2];i[d+4>>2]=j;i[d+8>>2]=i[c+8>>2];d=d+12|0;if((f|0)!=(d|0)){continue}break}b=b+o((h|0)/-12|0,12)|0;if((h|0)>=1){$k(b,g,h)}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b;if(g){Zk(g)}return}Dk();x()}xa(8944);x()}function hg(a,b,c){var d=0,e=0,f=0,h=0,j=0;a:{if(i[a+12>>2]==(b|0)){break a}d=i[a>>2];e=i[a+4>>2];if((d|0)!=(e|0)){while(1){f=e+ -12|0;if(g[e+ -1|0]<=-1){Zk(i[f>>2])}e=f;if((e|0)!=(d|0)){continue}break}}i[a+12>>2]=b;i[a+4>>2]=d;e=i[b>>2];f=b+4|0;if((e|0)==(f|0)){break a}while(1){b=e+16|0;b:{if(i[a+8>>2]!=(d|0)){h=a,j=rk(d,b)+12|0,i[h+4>>2]=j;break b}ig(a,b)}d=i[e+4>>2];c:{if(!d){b=i[e+8>>2];if(i[b>>2]==(e|0)){break c}e=e+8|0;while(1){d=i[e>>2];e=d+8|0;b=i[d+8>>2];if((d|0)!=i[b>>2]){continue}break}break c}while(1){b=d;d=i[d>>2];if(d){continue}break}}if((b|0)==(f|0)){break a}d=i[a+4>>2];e=b;continue}}d=0;d:{if((c|0)<0){break d}b=i[a+4>>2];a=i[a>>2];if((b-a|0)/12>>>0<=c>>>0){break d}d=a+o(c,12)|0;if(g[d+11|0]>-1){break d}d=i[d>>2]}return d}function qj(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;d=H-16|0;H=d;g=i[a+24>>2];n=i[a+28>>2];a:{if((g|0)!=(n|0)){p=d+8|0;while(1){i[p>>2]=0;i[d>>2]=0;i[d+4>>2]=0;e=yj(i[g>>2],b,d);a=j[d+11|0];l=a<<24>>24;m=3;b:{c:{d:{if(!e){break d}m=0;e=j[c+11|0];f=e<<24>>24;k=(l|0)<0?i[d+4>>2]:a;if((k|0)!=(((f|0)<0?i[c+4>>2]:e)|0)){break d}h=(f|0)<0?i[c>>2]:c;f=i[d>>2];e=(l|0)<0;e:{if(!e){if(!k){break e}e=d;if(j[h|0]!=(f&255)){break d}while(1){a=a+ -1|0;if(!a){break e}f=j[h+1|0];h=h+1|0;e=e+1|0;if((f|0)==j[e|0]){continue}break}break d}if(!k){break e}if(Nj(e?f:d,h,k)){break c}}o=i[g>>2];m=1}if((l|0)>-1){break b}}Zk(i[d>>2])}f:{switch(m|0){case 0:case 3:break f;default:break a}}g=g+4|0;if((n|0)!=(g|0)){continue}break}}o=0}H=d+16|0;return o}function Qb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;d=i[b+12>>2];k=d;c=i[b+20>>2];f=c;g=i[b+16>>2];e=g+4|0;if(e>>>0<4){c=c+1|0}l=i[b+8>>2];h=e;e=c;a:{if((d|0)<(c|0)?1:(d|0)<=(c|0)?l>>>0>>0:0){break a}m=i[b>>2];c=m+g|0;d=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=h;i[b+20>>2]=e;c=f;f=g+8|0;if(f>>>0<8){c=c+1|0}e=f;f=c;if((k|0)<(c|0)?1:(k|0)<=(c|0)?l>>>0>>0:0){break a}c=h+m|0;c=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=e;i[b+20>>2]=f;if((d|0)>(c|0)){break a}i[a+16>>2]=c;i[a+12>>2]=d;b=d;d=(c>>31)-((c>>>0>>0)+(b>>31)|0)|0;b=c-b|0;if(!d&b>>>0>2147483646|d>>>0>0){break a}n=1;b=b+1|0;i[a+20>>2]=b;c=(b|0)/2|0;i[a+24>>2]=c;i[a+28>>2]=0-c;if(b&1){break a}i[a+24>>2]=c+ -1}return n|0}function oa(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,n=0,o=0,r=0,s=0,t=0,v=0,w=p(0),x=0,y=p(0),z=0,A=0,B=0,C=0,D=0;n=H-16|0;H=n;h=i[a+4>>2];o=i[d+48>>2];d=i[i[d>>2]>>2];f=g[b+24|0];k=ag(n+8|0);bg(k,m[a+20>>2],-1<>2];z=i[b>>2];o=i[b+48>>2];A=i[b+68>>2];k=i[b+44>>2];v=i[b+40>>2];B=v;d=0;C=j[b+84|0];D=(f|0)<1;while(1){b=l;e=h;r=i[z>>2];s=v;t=k;if(!C){b=i[(l<<2)+A>>2]}b=kl(s,t,b,0)+o|0;s=$k(e,b+r|0,B);if(!D){t=i[a+8>>2];b=0;while(1){r=(d<<2)+x|0;e=b<<2;w=p(u(p(p(y*p(m[e+s>>2]-m[e+t>>2]))+p(.5))));a:{if(p(q(w))>2]=e;d=d+1|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}l=l+1|0;if((l|0)!=(c|0)){continue}break}}Zk(h);H=n+16|0}function al(a,b,c){var d=0,e=0,f=0,h=0;a:{if(!c){break a}d=a+c|0;g[d+ -1|0]=b;g[a|0]=b;if(c>>>0<3){break a}g[d+ -2|0]=b;g[a+1|0]=b;g[d+ -3|0]=b;g[a+2|0]=b;if(c>>>0<7){break a}g[d+ -4|0]=b;g[a+3|0]=b;if(c>>>0<9){break a}d=0-a&3;e=d+a|0;b=o(b&255,16843009);i[e>>2]=b;c=c-d&-4;d=c+e|0;i[d+ -4>>2]=b;if(c>>>0<9){break a}i[e+8>>2]=b;i[e+4>>2]=b;i[d+ -8>>2]=b;i[d+ -12>>2]=b;if(c>>>0<25){break a}i[e+24>>2]=b;i[e+20>>2]=b;i[e+16>>2]=b;i[e+12>>2]=b;i[d+ -16>>2]=b;i[d+ -20>>2]=b;i[d+ -24>>2]=b;i[d+ -28>>2]=b;h=e&4|24;c=c-h|0;if(c>>>0<32){break a}d=b;f=b;b=e+h|0;while(1){i[b+24>>2]=f;i[b+28>>2]=d;i[b+16>>2]=f;i[b+20>>2]=d;i[b+8>>2]=f;i[b+12>>2]=d;i[b>>2]=f;i[b+4>>2]=d;b=b+32|0;c=c+ -32|0;if(c>>>0>31){continue}break}}return a}function Zi(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];d=i[a>>2];if(e-d>>2>>>0>=b>>>0){f=i[a+4>>2];g=f-d>>2;h=g>>>0>>0?g:b;if(h){e=d;while(1){i[e>>2]=i[c>>2];e=e+4|0;h=h+ -1|0;if(h){continue}break}}if(g>>>0>>0){b=b-g|0;if(!b){i[a+4>>2]=f;return}b=(b<<2)+f|0;while(1){i[f>>2]=i[c>>2];f=f+4|0;if((b|0)!=(f|0)){continue}break}i[a+4>>2]=b;return}i[a+4>>2]=(b<<2)+d;return}if(d){i[a+4>>2]=d;Zk(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;e=0}a:{if(b>>>0>=1073741824){break a}d=e>>1;d=e>>2>>>0<536870911?d>>>0>>0?b:d:1073741823;if(d>>>0>=1073741824){break a}d=d<<2;e=ok(d);i[a>>2]=e;i[a+4>>2]=e;i[a+8>>2]=e+d;d=(b<<2)+e|0;b=i[c>>2];while(1){i[e>>2]=b;e=e+4|0;if((d|0)!=(e|0)){continue}break}i[a+4>>2]=d;return}Dk();x()}function pf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+56>>2]-i[c+52>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];g=c<<2;c=ok(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){$k(c,d,e)}i[b+8>>2]=g;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}Zk(d)}e=a+8|0;b=i[a+76>>2];c:{if(b){d=1;c=i[b>>2];if((c|0)==i[b+4>>2]){break c}b=0;while(1){d=qf(e,i[(b<<2)+c>>2]);if(!d){break c}f=i[a+76>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break c}d=1;a=i[i[a+12>>2]+64>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break c}b=0;while(1){d=qf(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break c}if(d){continue}break}}return d|0}xa(8944);x()}function lj(a,b){var c=0,d=0,e=0,f=0,g=0;d=-1;f=-1;e=-1;a:{b:{if((b|0)==-1){break b}g=1;f=i[i[i[a+4>>2]+12>>2]+(b<<2)>>2];c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)>=0){e=(c>>>0)/3|0;e=i[(i[i[a>>2]+96>>2]+o(e,12)|0)+(c-o(e,3)<<2)>>2]}c:{if((f|0)==-1){break c}g=0;c=((f>>>0)%3|0?-1:2)+f|0;if((c|0)<0){break c}d=(c>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(c-o(d,3)<<2)>>2]}c=-1;if((d|0)!=(e|0)){break a}e=-1;d:{b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)>=0){d=(b>>>0)/3|0;d=i[(i[i[a>>2]+96>>2]+o(d,12)|0)+(b-o(d,3)<<2)>>2];if(g){break b}break d}d=-1;if(!g){break d}break b}b=f+1|0;b=(b>>>0)%3|0?b:f+ -2|0;if((b|0)<0){break b}c=i[i[a>>2]+96>>2];a=(b>>>0)/3|0;e=i[(c+o(a,12)|0)+(b-o(a,3)<<2)>>2]}c=(d|0)==(e|0)?f:-1}return c}function ig(a,b){var c=0,d=0,e=0,f=0,h=0;a:{b:{c:{e=i[a>>2];h=(i[a+4>>2]-e|0)/12|0;c=h+1|0;if(c>>>0<357913942){e=(i[a+8>>2]-e|0)/12|0;f=e<<1;c=e>>>0<178956970?f>>>0>>0?c:f:357913941;d=0;d:{if(!c){break d}if(c>>>0>=357913942){break c}d=ok(o(c,12))}e=d+o(c,12)|0;b=rk(d+o(h,12)|0,b);h=b+12|0;c=i[a+4>>2];d=i[a>>2];if((c|0)==(d|0)){break b}while(1){c=c+ -12|0;f=i[c+4>>2];b=b+ -12|0;i[b>>2]=i[c>>2];i[b+4>>2]=f;f=c+8|0;i[b+8>>2]=i[f>>2];i[c>>2]=0;i[c+4>>2]=0;i[f>>2]=0;if((c|0)!=(d|0)){continue}break}d=i[a+4>>2];c=i[a>>2];break a}Dk();x()}xa(10656);x()}c=d}i[a+8>>2]=e;i[a+4>>2]=h;i[a>>2]=b;if((c|0)!=(d|0)){while(1){a=d+ -12|0;if(g[d+ -1|0]<=-1){Zk(i[a>>2])}d=a;if((a|0)!=(c|0)){continue}break}}if(c){Zk(c)}}function jf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+28>>2]-i[c+24>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];g=c<<2;c=ok(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){$k(c,d,e)}i[b+8>>2]=g;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}Zk(d)}e=a+8|0;b=i[a+76>>2];c:{if(b){d=1;c=i[b>>2];if((c|0)==i[b+4>>2]){break c}b=0;while(1){d=kf(e,i[(b<<2)+c>>2]);if(!d){break c}f=i[a+76>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break c}d=1;a=i[a+12>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break c}b=0;while(1){d=kf(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break c}if(d){continue}break}}return d|0}xa(8944);x()}function gb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0;d=i[b>>2];b=i[b+4>>2];n=i[i[a+8>>2]+40>>2];h=n;p=ok((h|0)>-1?h:-1);g=1;k=b-d|0;a:{if((k|0)<1){break a}b=0;j=i[c+12>>2];g=0;e=0+i[c+20>>2]|0;m=i[c+16>>2];f=n;d=m+f|0;if(d>>>0>>0){e=e+1|0}f=d;d=e;if((j|0)<(d|0)?1:(j|0)<=(d|0)?l[c+8>>2]>>0:0){break a}g=k>>2;k=(g|0)>1?g:1;while(1){b:{e=$k(p,m+i[c>>2]|0,h);i[c+16>>2]=f;i[c+20>>2]=d;$k(i[i[i[a+8>>2]+64>>2]>>2]+b|0,e,h);o=o+1|0;if((k|0)==(o|0)){break b}b=b+h|0;j=i[c+12>>2];e=q+i[c+20>>2]|0;m=i[c+16>>2];d=n;f=m+d|0;if(f>>>0>>0){e=e+1|0}d=e;if((j|0)>(d|0)?1:(j|0)>=(d|0)?l[c+8>>2]>=f>>>0:0){continue}}break}g=(o|0)>=(g|0)}Zk(p);return g|0}function sj(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=ok(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;c=i[a+4>>2];d=i[a>>2];if((c|0)==(d|0)){break b}while(1){c=c+ -4|0;g=i[c>>2];i[c>>2]=0;b=b+ -4|0;i[b>>2]=g;if((c|0)!=(d|0)){continue}break}d=i[a+4>>2];c=i[a>>2];break a}Dk();x()}xa(11228);x()}c=d}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b;if((c|0)!=(d|0)){while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){Lf(a+12|0,i[a+16>>2]);Mf(a,i[a+4>>2]);Zk(a)}if((c|0)!=(d|0)){continue}break}}if(c){Zk(c)}}function wf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=H-32|0;H=d;i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;a:{f=o(b,3);if(f){if(f>>>0>=1073741824){break a}e=ok(o(b,12));i[d+16>>2]=e;g=f<<2;c=g+e|0;i[d+24>>2]=c;al(e,0,g);i[d+20>>2]=c}k=xd(f,1,i[a+32>>2],e);if(!(!k|!b)){g=0;f=0;c=0;while(1){l=d+8|0;i[l>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=c;e=(f<<2)+e|0;c=i[e>>2];j=c>>>1|0;c=h+(c&1?0-j|0:j)|0;i[d>>2]=c;h=c;c=i[e+4>>2];j=c>>>1|0;c=h+(c&1?0-j|0:j)|0;i[d+4>>2]=c;h=c;e=i[e+8>>2];c=e>>>1|0;c=h+(e&1?0-c|0:c)|0;i[l>>2]=c;xf(i[a+44>>2]+96|0,d);g=g+1|0;if((g|0)!=(b|0)){f=f+3|0;e=i[d+16>>2];continue}break}e=i[d+16>>2]}if(e){i[d+20>>2]=e;Zk(e)}H=d+32|0;return k}Dk();x()}function zb(a,b,c,d,e){var f=0,g=0,h=0,j=0;a:{b:{if((b|0)!=-2){g=i[i[i[d+4>>2]+8>>2]+(c<<2)>>2];if((K[i[i[d>>2]+8>>2]](d)|0)==1){f=b;b=k[d+36>>1];Gb(a,d,f,c,e,(b<<24|b<<8&16711680)>>>16|0);if(i[a>>2]){break b}i[a>>2]=0}f=ok(44);i[f+4>>2]=g;i[f>>2]=2776;b=i[e+8>>2];c=i[e+12>>2];d=i[e+16>>2];g=i[e+20>>2];h=i[e>>2];j=i[e+4>>2];i[f+40>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;i[f+24>>2]=d;i[f+28>>2]=g;i[f+16>>2]=b;i[f+20>>2]=c;i[f+8>>2]=h;i[f+12>>2]=j;b=i[e+28>>2];e=i[e+24>>2];d=b-e|0;if(d){c=d>>2;if(c>>>0>=1073741824){break a}b=ok(d);i[f+32>>2]=b;i[f+36>>2]=b;i[f+40>>2]=b+(c<<2);c=f;if((d|0)>=1){b=$k(b,e,d)+d|0}i[c+36>>2]=b}i[f>>2]=5468}i[a>>2]=f}return}Dk();x()}function yf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;f=H-16|0;H=f;g=ok(64);c=ok(12);i[c+8>>2]=i[i[a+4>>2]+80>>2];i[c>>2]=10164;i[c+4>>2]=0;i[f+8>>2]=c;jb(g,f+8|0);a:{if((b|0)>=0){h=a+8|0;c=i[a+12>>2];j=i[a+8>>2];d=c-j>>2;b:{if((d|0)>(b|0)){break b}e=b+1|0;if(d>>>0<=b>>>0){le(h,e-d|0);break b}if(e>>>0>=d>>>0){break b}e=j+(e<<2)|0;if((e|0)!=(c|0)){while(1){c=c+ -4|0;d=i[c>>2];i[c>>2]=0;if(d){K[i[i[d>>2]+4>>2]](d)}if((c|0)!=(e|0)){continue}break}}i[a+12>>2]=e}c=i[h>>2]+(b<<2)|0;a=i[c>>2];i[c>>2]=g;if(!a){break a}K[i[i[a>>2]+4>>2]](a);break a}K[i[i[g>>2]+4>>2]](g)}a=i[f+8>>2];i[f+8>>2]=0;if(a){K[i[i[a>>2]+4>>2]](a)}H=f+16|0;return(b^-1)>>>31|0}function ke(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=H-16|0;H=e;i[a+4>>2]=0;a:{b:{if(!b){break b}f=i[a+8>>2];d=f<<5;c:{if(d>>>0>=b>>>0){i[a+4>>2]=b;break c}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if((b|0)<=-1){break a}h=e;if(d>>>0<=1073741822){g=b+31&-32;d=f<<6;d=d>>>0>>0?g:d}else{d=2147483647}Zb(h,d);d=i[a>>2];i[a>>2]=i[e>>2];i[e>>2]=d;f=i[a+4>>2];i[a+4>>2]=b;i[e+4>>2]=f;f=i[a+8>>2];i[a+8>>2]=i[e+8>>2];i[e+8>>2]=f;if(!d){break c}Zk(d)}d=b>>>5|0;f=d<<2;a=i[a>>2];if(j[c|0]){a=al(a,255,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;i[a>>2]=i[a>>2]|-1>>>32-b;break b}a=al(a,0,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;i[a>>2]=i[a>>2]&(-1>>>32-b^-1)}H=e+16|0;return}Dk();x()}function ma(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0;i[b>>2]=1;f=b+8|0;c=i[b+8>>2];d=i[b+12>>2]-c|0;if(d>>>0<=4294967291){Qf(f,d+4|0);c=i[f>>2]}c=c+d|0;d=i[a+4>>2];g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;c=i[a+8>>2];if((c|0)!=i[a+12>>2]){d=0;while(1){h=(d<<2)+c|0;c=i[b+8>>2];e=i[b+12>>2]-c|0;if(e>>>0<=4294967291){Qf(f,e+4|0);c=i[f>>2]}c=c+e|0;e=i[h>>2];g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;d=d+1|0;c=i[a+8>>2];if(d>>>0>2]-c>>2>>>0){continue}break}}c=i[b+12>>2];b=i[b+8>>2];c=c-b|0;if(c>>>0<=4294967291){Qf(f,c+4|0);b=i[f>>2]}b=b+c|0;a=i[a+20>>2];g[b|0]=a;g[b+1|0]=a>>>8;g[b+2|0]=a>>>16;g[b+3|0]=a>>>24}function de(a){i[a>>2]=8340;al(a+4|0,0,80);i[a+96>>2]=0;i[a+100>>2]=0;i[a+92>>2]=-1;i[a+84>>2]=-1;i[a+88>>2]=-1;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+148>>2]=0;i[a+156>>2]=0;i[a+160>>2]=0;i[a+152>>2]=1065353216;i[a+164>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;i[a+196>>2]=0;i[a+200>>2]=0;i[a+204>>2]=0;i[a+208>>2]=0;i[a+212>>2]=-1;i[a+216>>2]=0;i[a+220>>2]=0;i[a+224>>2]=0;Rf(a+232|0);Rf(a+272|0);id(a+312|0);Rf(a+328|0);i[a+376>>2]=0;i[a+368>>2]=0;i[a+372>>2]=0}function $e(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=(c>>>0)/3|0;af(i[a+12>>2],i[(i[i[a+8>>2]+96>>2]+o(d,12)|0)+(c-o(d,3)<<2)>>2]);a:{b:{g=i[a+4>>2];d=i[g+4>>2];f=i[g+8>>2];c:{if((d|0)!=(f|0)){i[d>>2]=c;i[g+4>>2]=d+4;break c}h=i[g>>2];j=d-h|0;d=j>>2;e=d+1|0;if(e>>>0>=1073741824){break b}k=d<<2;f=f-h|0;d=f>>1;e=f>>2>>>0<536870911?d>>>0>>0?e:d:1073741823;d=0;d:{if(!e){break d}if(e>>>0>=1073741824){break a}d=ok(e<<2)}f=k+d|0;i[f>>2]=c;c=d+(e<<2)|0;e=f+4|0;if((j|0)>=1){$k(d,h,j)}i[g+8>>2]=c;i[g+4>>2]=e;i[g>>2]=d;if(!h){break c}Zk(h)}a=i[a+4>>2];i[i[a+12>>2]+(b<<2)>>2]=i[a+24>>2];i[a+24>>2]=i[a+24>>2]+1;return}Dk();x()}xa(8944);x()}function Qi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=H-16|0;H=f;i[a+80>>2]=0;i[a+84>>2]=0;c=a+76|0;d=i[c>>2];i[c>>2]=0;if(d){Zk(d)}i[a+68>>2]=0;i[a+72>>2]=0;c=a- -64|0;d=i[c>>2];i[c>>2]=0;if(d){Zk(d)}c=i[b+4>>2];d=i[b>>2];e=o((c-d|0)/12|0,3);h=i[a>>2];g=i[a+4>>2]-h>>2;a:{if(e>>>0>g>>>0){Ri(a,e-g|0);d=i[b>>2];c=i[b+4>>2];break a}if(e>>>0>=g>>>0){break a}i[a+4>>2]=h+(e<<2)}if((c|0)!=(d|0)){b=(c-d|0)/12|0;g=b>>>0>1?b:1;h=i[a>>2];b=0;while(1){e=o(b,12);c=e+h|0;e=d+e|0;i[c>>2]=i[e>>2];i[c+4>>2]=i[e+4>>2];i[c+8>>2]=i[e+8>>2];b=b+1|0;if((g|0)!=(b|0)){continue}break}}i[f+12>>2]=-1;b=Si(a,f+12|0);if(b){Ti(a);Ui(a,i[f+12>>2])}H=f+16|0;return b}function zd(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{d=i[b+16>>2];f=i[b+12>>2];e=i[b+20>>2];c:{if((f|0)<(e|0)?1:(f|0)<=(e|0)?l[b+8>>2]<=d>>>0:0){break c}f=j[d+i[b>>2]|0];d=d+1|0;if(d>>>0<1){e=e+1|0}i[b+16>>2]=d;i[b+20>>2]=e;d:{e:{f:{g:{h:{i:{j:{switch(f+ -1|0){case 0:case 1:case 2:case 3:case 5:case 6:case 7:break b;case 13:case 14:case 15:case 16:break a;case 9:break h;case 8:break i;case 4:break j;case 17:break d;case 12:break e;case 11:break f;case 10:break g;default:break c}}return Dd(a,b,c)}return Ed(a,b,c)}return Fd(a,b,c)}return Gd(a,b,c)}return Hd(a,b,c)}return Id(a,b,c)}g=Jd(a,b,c)}return g}return Cd(a,b,c)}return Jd(a,b,c)}function qa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,j=0,k=0,l=p(0),n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0;h=H-16|0;H=h;if(i[c+28>>2]==9){d=i[a+4>>2];e=g[c+24|0];j=e<<2;k=ok((e&1073741823)!=(e|0)?-1:j);n=ag(h+8|0);f=n;l=m[a+20>>2];d=-1<=1){m[f>>2]=l/p(d|0)}f=(d|0)>0;a:{if(!f){break a}o=i[c+80>>2];if(!o){break a}t=i[i[b>>2]>>2]+i[b+48>>2]|0;u=(e|0)<1;d=0;while(1){if(!u){v=i[a+8>>2];l=m[n>>2];b=0;while(1){q=b<<2;m[q+k>>2]=p(l*p(i[(d<<2)+t>>2]))+m[v+q>>2];d=d+1|0;b=b+1|0;if((e|0)!=(b|0)){continue}break}}$k(i[i[c+64>>2]>>2]+r|0,k,j);r=j+r|0;s=s+1|0;if((s|0)!=(o|0)){continue}break}}Zk(k)}H=h+16|0;return f|0}function Ia(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){f=i[a+4>>2];d=f-e|0;h=d>>2;d=g>>>0>h>>>0?b+d|0:c;if((d|0)!=(b|0)){while(1){i[e>>2]=i[b>>2];e=e+4|0;b=b+4|0;if((d|0)!=(b|0)){continue}break}}if(g>>>0>h>>>0){b=c-d|0;if((b|0)>=1){f=$k(f,d,b)+b|0}i[a+4>>2]=f;return}i[a+4>>2]=e;return}if(e){i[a+4>>2]=e;Zk(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=ok(e);i[a>>2]=c;i[a+4>>2]=c;i[a+8>>2]=c+e;if((f|0)>=1){c=$k(c,b,f)+f|0}i[a+4>>2]=c;return}Dk();x()}function qg(a,b,c){var d=0,e=0,f=0,h=0;d=H-32|0;H=d;a:{h=cl(b);if(h>>>0<4294967280){b:{c:{if(h>>>0>=11){e=h+16&-16;f=ok(e);i[d+24>>2]=e|-2147483648;i[d+16>>2]=f;i[d+20>>2]=h;break c}g[d+27|0]=h;f=d+16|0;if(!h){break b}}$k(f,b,h)}g[f+h|0]=0;e=cl(c);if(e>>>0>=4294967280){break a}d:{e:{if(e>>>0>=11){b=e+16&-16;f=ok(b);i[d+8>>2]=b|-2147483648;i[d>>2]=f;i[d+4>>2]=e;break e}g[d+11|0]=e;f=d;if(!e){break d}}$k(f,c,e)}g[e+f|0]=0;c=i[a+4>>2];b=-1;f:{if(!c){break f}c=qj(c,d+16|0,d);b=-1;if(!c){break f}b=Gj(a,i[c+24>>2])}a=b;if(g[d+11|0]<=-1){Zk(i[d>>2])}if(g[d+27|0]<=-1){Zk(i[d+16>>2])}H=d+32|0;return a}qk();x()}qk();x()}function Tc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;c=i[b+12>>2];h=c;e=c;c=i[b+20>>2];f=c;a:{g=i[b+16>>2];d=g+4|0;if(d>>>0<4){c=c+1|0}k=i[b+8>>2];l=d;d=c;if((e|0)<(c|0)?1:(e|0)<=(c|0)?k>>>0>>0:0){break a}c=g+i[b>>2]|0;e=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=l;i[b+20>>2]=d;c=f;d=g+8|0;if(d>>>0<8){c=c+1|0}f=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?k>>>0>>0:0){break a}i[b+16>>2]=f;i[b+20>>2]=d;if(!(e&1)){break a}c=r(e)^31;if(c+ -1>>>0>28){break a}i[a+8>>2]=c+1;c=-2<>2]=d;i[a+12>>2]=c^-1;i[a+24>>2]=(d|0)/2;m[a+20>>2]=p(2)/p(d|0);return jd(a+96|0,b)|0}return 0}function _c(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=H-32|0;H=f;h=(e&1073741823)!=(e|0)?-1:e<<2;h=al(ok(h),0,h);g=i[b>>2];j=i[b+4>>2];l=i[h+4>>2];i[f+16>>2]=i[h>>2];i[f+20>>2]=l;i[f+8>>2]=g;i[f+12>>2]=j;j=a+8|0;Vc(f+24|0,j,f+16|0,f+8|0);i[c>>2]=i[f+24>>2];i[c+4>>2]=i[f+28>>2];if((e|0)<(d|0)){l=0-e<<2;a=e;while(1){g=a<<2;k=g+b|0;n=i[k>>2];k=i[k+4>>2];g=c+g|0;m=g+l|0;o=i[m+4>>2];i[f+16>>2]=i[m>>2];i[f+20>>2]=o;i[f+8>>2]=n;i[f+12>>2]=k;Vc(f+24|0,j,f+16|0,f+8|0);i[g>>2]=i[f+24>>2];i[g+4>>2]=i[f+28>>2];a=a+e|0;if((a|0)<(d|0)){continue}break}}Zk(h);H=f+32|0;return 1}function eb(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];d=i[a+4>>2];if(e-d>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=d;return}b=(b<<2)+d|0;while(1){i[d>>2]=i[c>>2];d=d+4|0;if((b|0)!=(d|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];h=d-g|0;f=h>>2;d=f+b|0;if(d>>>0<1073741824){j=f<<2;e=e-g|0;f=e>>1;e=e>>2>>>0<536870911?f>>>0>>0?d:f:1073741823;f=0;b:{if(!e){break b}if(e>>>0>=1073741824){break a}f=ok(e<<2)}d=j+f|0;b=d+(b<<2)|0;e=f+(e<<2)|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}if((h|0)>=1){$k(f,g,h)}i[a+8>>2]=e;i[a+4>>2]=b;i[a>>2]=f;if(g){Zk(g)}return}Dk();x()}xa(1660);x()}function Pa(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];d=i[a+4>>2];if(e-d>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=d;return}b=(b<<2)+d|0;while(1){i[d>>2]=i[c>>2];d=d+4|0;if((b|0)!=(d|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];h=d-g|0;f=h>>2;d=f+b|0;if(d>>>0<1073741824){j=f<<2;e=e-g|0;f=e>>1;e=e>>2>>>0<536870911?f>>>0>>0?d:f:1073741823;f=0;b:{if(!e){break b}if(e>>>0>=1073741824){break a}f=ok(e<<2)}d=j+f|0;b=d+(b<<2)|0;e=f+(e<<2)|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}if((h|0)>=1){$k(f,g,h)}i[a+8>>2]=e;i[a+4>>2]=b;i[a>>2]=f;if(g){Zk(g)}return}Dk();x()}xa(1496);x()}function Vi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<2)+c|0;while(1){i[c>>2]=i[2707];c=c+4|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{f=i[a>>2];g=c-f|0;e=g>>2;c=e+b|0;if(c>>>0<1073741824){h=e<<2;d=d-f|0;e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?c:e:1073741823;e=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}e=ok(d<<2)}c=h+e|0;b=c+(b<<2)|0;d=e+(d<<2)|0;h=i[2707];while(1){i[c>>2]=h;c=c+4|0;if((b|0)!=(c|0)){continue}break}if((g|0)>=1){$k(e,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=e;if(f){Zk(f)}return}Dk();x()}xa(10832);x()}function Mc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=H-32|0;H=e;a:{if((d|0)==3){d=i[b+4>>2];b=i[b+12>>2];i[e+24>>2]=-1;i[e+16>>2]=-1;i[e+20>>2]=1065353216;i[e+8>>2]=-1;i[e+12>>2]=-1;if((c|0)==-2){i[e>>2]=0;i[a>>2]=0;break a}f=i[i[i[d+4>>2]+8>>2]+(b<<2)>>2];if((K[i[i[d>>2]+8>>2]](d)|0)==1){g=b;b=k[d+36>>1];Nc(e,d,c,g,e+8|0,(b<<24|b<<8&16711680)>>>16|0);b=i[e>>2];if(b){i[a>>2]=b;break a}i[e>>2]=0}b=ok(28);i[b+4>>2]=f;c=i[e+12>>2];i[b+8>>2]=i[e+8>>2];i[b+12>>2]=c;c=i[e+20>>2];i[b+16>>2]=i[e+16>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+24>>2];i[b>>2]=7580;i[e>>2]=b;i[a>>2]=b;break a}i[a>>2]=0}H=e+32|0}function Wc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,n=0;c=i[b+12>>2];h=c;e=c;c=i[b+20>>2];f=c;g=i[b+16>>2];d=g+4|0;if(d>>>0<4){c=c+1|0}k=i[b+8>>2];l=d;d=c;a:{if((e|0)<(c|0)?1:(e|0)<=(c|0)?k>>>0>>0:0){break a}c=g+i[b>>2]|0;e=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[b+16>>2]=l;i[b+20>>2]=d;c=f;d=g+8|0;if(d>>>0<8){c=c+1|0}f=d;d=c;if((h|0)<(c|0)?1:(h|0)<=(c|0)?k>>>0>>0:0){break a}i[b+16>>2]=f;i[b+20>>2]=d;if(!(e&1)){break a}b=r(e)^31;if(b+ -1>>>0>28){break a}n=1;i[a+8>>2]=b+1;b=-2<>2]=c;i[a+12>>2]=b^-1;i[a+24>>2]=(c|0)/2;m[a+20>>2]=p(2)/p(c|0)}return n|0}function ka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0;d=i[b+88>>2];if(!(!d|i[d>>2]!=1)){c=i[d+8>>2];i[a+4>>2]=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);f=a+8|0;h=i[a+8>>2];e=i[a+12>>2]-h>>2;c=g[b+24|0];a:{if(e>>>0>>0){la(f,c-e|0);c=j[b+24|0];break a}if(e>>>0<=c>>>0){break a}i[a+12>>2]=h+(c<<2)}h=1;e=i[d+8>>2];b:{if(c<<24>>24<1){b=4;break b}b=c&255;k=b>>>0>1?b:1;f=i[f>>2];c=0;b=4;while(1){d=b+e|0;i[f+(c<<2)>>2]=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);b=b+4|0;c=c+1|0;if((k|0)!=(c|0)){continue}break}}c=a;a=b+e|0;i[c+20>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24)}return h|0}function Bg(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0;d=H-16|0;H=d;k=i[a+80>>2];l=g[b+24|0];a=i[2663];i[d+8>>2]=i[2662];i[d+12>>2]=a;a=i[2661];i[d>>2]=i[2660];i[d+4>>2]=a;a=o(k,l);f=i[c>>2];e=i[c+4>>2]-f>>2;a:{if(a>>>0>e>>>0){la(c,a-e|0);break a}if(a>>>0>=e>>>0){break a}i[c+4>>2]=f+(a<<2)}b:{if(!k){f=0;break b}f=1;while(1){a=h;e=b;if(!j[e+84|0]){a=i[i[b+68>>2]+(h<<2)>>2]}if(!Ag(e,a,g[b+24|0],d)){break b}if((l|0)>=1){e=i[c>>2];a=0;while(1){i[e+(m<<2)>>2]=i[(a<<2)+d>>2];m=m+1|0;a=a+1|0;if((l|0)!=(a|0)){continue}break}}h=h+1|0;f=h>>>0>>0;if((k|0)!=(h|0)){continue}break}}H=d+16|0;return(f^-1)&1}function dj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<2)+c|0;while(1){i[c>>2]=1;c=c+4|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{f=i[a>>2];g=c-f|0;e=g>>2;c=e+b|0;if(c>>>0<1073741824){h=e<<2;d=d-f|0;e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?c:e:1073741823;e=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}e=ok(d<<2)}c=h+e|0;b=c+(b<<2)|0;d=e+(d<<2)|0;while(1){i[c>>2]=1;c=c+4|0;if((b|0)!=(c|0)){continue}break}if((g|0)>=1){$k(e,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=e;if(f){Zk(f)}return}Dk();x()}xa(10952);x()}function xf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+4>>2];f=i[a+8>>2];if((e|0)!=(f|0)){d=i[b+4>>2];i[e>>2]=i[b>>2];i[e+4>>2]=d;i[e+8>>2]=i[b+8>>2];i[a+4>>2]=e+12;return}a:{c=e;e=i[a>>2];g=c-e|0;c=(g|0)/12|0;d=c+1|0;if(d>>>0<357913942){h=o(c,12);f=(f-e|0)/12|0;c=f<<1;f=f>>>0<178956970?c>>>0>>0?d:c:357913941;c=0;b:{if(!f){break b}if(f>>>0>=357913942){break a}c=ok(o(f,12))}d=h+c|0;h=i[b+4>>2];i[d>>2]=i[b>>2];i[d+4>>2]=h;i[d+8>>2]=i[b+8>>2];b=d+o((g|0)/-12|0,12)|0;c=c+o(f,12)|0;d=d+12|0;if((g|0)>=1){$k(b,e,g)}i[a+8>>2]=c;i[a+4>>2]=d;i[a>>2]=b;if(e){Zk(e)}return}Dk();x()}xa(10088);x()}function Xd(a){a=a|0;var b=0,c=0,d=0,e=0;b=i[a+32>>2];d=i[b+16>>2];e=i[b+12>>2];c=i[b+20>>2];if((e|0)>(c|0)?1:(e|0)>=(c|0)?l[b+8>>2]>d>>>0:0){e=j[d+i[b>>2]|0];d=d+1|0;if(d>>>0<1){c=c+1|0}i[b+16>>2]=d;i[b+20>>2]=c;b=i[a+48>>2];i[a+48>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}a:{b:{c:{switch(e|0){case 0:c=ok(384);de(c);b=i[a+48>>2];i[a+48>>2]=c;if(!b){break a}K[i[i[b>>2]+4>>2]](b);break b;case 2:break c;default:break b}}c=ok(440);Ee(c);b=i[a+48>>2];i[a+48>>2]=c;if(!b){break a}K[i[i[b>>2]+4>>2]](b)}c=i[a+48>>2];if(c){break a}return 0}a=K[i[i[c>>2]+8>>2]](c,a)|0}else{a=0}return a|0}function wd(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0;f=a+4|0;a:{a=i[a+4>>2];if(a){e=j[c+11|0];d=e<<24>>24<0;k=d?i[c>>2]:c;e=d?i[c+4>>2]:e;while(1){c=j[a+27|0];d=c<<24>>24<0;c=d?i[a+20>>2]:c;l=c>>>0>>0;b:{c:{d:{e:{f:{h=l?c:e;g:{if(h){g=a+16|0;d=d?i[g>>2]:g;g=Nj(k,d,h);if(!g){if(e>>>0>>0){break g}break f}if((g|0)>-1){break f}break g}if(e>>>0>=c>>>0){break e}}c=i[a>>2];if(c){break b}i[b>>2]=a;return a}c=Nj(d,k,h);if(c){break d}}if(l){break c}break a}if((c|0)>-1){break a}}f=a+4|0;c=i[a+4>>2];if(!c){break a}a=f}f=a;a=c;continue}}i[b>>2]=f;return f}i[b>>2]=a;return f}function Fa(a,b){var c=0;c=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=c;c=i[b+60>>2];i[a+56>>2]=i[b+56>>2];i[a+60>>2]=c;c=i[b+52>>2];i[a+48>>2]=i[b+48>>2];i[a+52>>2]=c;c=i[b+44>>2];i[a+40>>2]=i[b+40>>2];i[a+44>>2]=c;c=i[b+36>>2];i[a+32>>2]=i[b+32>>2];i[a+36>>2]=c;c=i[b+28>>2];i[a+24>>2]=i[b+24>>2];i[a+28>>2]=c;c=i[b+20>>2];i[a+16>>2]=i[b+16>>2];i[a+20>>2]=c;c=i[b+12>>2];i[a+8>>2]=i[b+8>>2];i[a+12>>2]=c;i[a+88>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;g[a+77|0]=0;g[a+78|0]=0;g[a+79|0]=0;g[a+80|0]=0;g[a+81|0]=0;g[a+82|0]=0;g[a+83|0]=0;g[a+84|0]=0;return a}function _f(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;g=a+4|0;a=i[a+4>>2];a:{b:{if(!a){break b}d=j[b+11|0];c=d<<24>>24<0;k=c?i[b>>2]:b;e=c?i[b+4>>2]:d;c=g;while(1){b=j[a+27|0];l=b<<24>>24<0;h=l?i[a+20>>2]:b;f=e>>>0>>0;d=f?e:h;c:{if(d){b=a+16|0;b=Nj(l?i[b>>2]:b,k,d);if(b){break c}}b=h>>>0>>0?-1:f}c=(b|0)<0?c:a;a=i[(b>>>29&4)+a>>2];if(a){continue}break}if((c|0)==(g|0)){break b}a=j[c+27|0];f=a<<24>>24<0;d:{d=f?i[c+20>>2]:a;b=d>>>0>>0?d:e;if(b){a=c+16|0;a=Nj(k,f?i[a>>2]:a,b);if(a){break d}}if(e>>>0>>0){break b}break a}if((a|0)>-1){break a}}c=g}return c}function Ue(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){d=i[a+4>>2]-e|0;f=d>>2;d=g>>>0>f>>>0?b+d|0:c;h=d-b|0;if(h){bl(e,b,h)}if(g>>>0>f>>>0){b=i[a+4>>2];c=c-d|0;if((c|0)>=1){b=$k(b,d,c)+c|0}i[a+4>>2]=b;return}i[a+4>>2]=e+h;return}if(e){i[a+4>>2]=e;Zk(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=ok(e);i[a>>2]=c;i[a+4>>2]=c;i[a+8>>2]=c+e;if((f|0)>=1){c=$k(c,b,f)+f|0}i[a+4>>2]=c;return}Dk();x()}function uj(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0;h=H-16|0;H=h;l=a;j=wd(b,h+12|0,c);c=i[j>>2];if(c){b=0}else{c=ok(40);e=d+8|0;i[c+24>>2]=i[e>>2];f=i[d+4>>2];i[c+16>>2]=i[d>>2];i[c+20>>2]=f;i[d>>2]=0;i[d+4>>2]=0;i[e>>2]=0;i[c+36>>2]=0;i[c+28>>2]=0;i[c+32>>2]=0;f=i[d+16>>2];e=i[d+12>>2];k=f-e|0;if(k){e=c+28|0;Ya(e,k);f=i[d+16>>2];m=i[e>>2];e=i[d+12>>2]}$k(m,e,f-e|0);i[c+8>>2]=i[h+12>>2];i[c>>2]=0;i[c+4>>2]=0;i[j>>2]=c;e=i[i[b>>2]>>2];d=c;a:{if(!e){break a}i[b>>2]=e;d=i[j>>2]}td(i[b+4>>2],d);i[b+8>>2]=i[b+8>>2]+1;b=1}g[l+4|0]=b;i[a>>2]=c;H=h+16|0}function sg(a,b){var c=0,d=0;c=H-96|0;H=c;al(c+16|0,0,76);i[c+92>>2]=-1;i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;a:{if(tg(c+16|0,a,c)){a=i[b>>2];if(a){i[b+4>>2]=a;Zk(a);i[b+8>>2]=0;i[b>>2]=0;i[b+4>>2]=0}i[b>>2]=i[c>>2];i[b+4>>2]=i[c+4>>2];i[b+8>>2]=i[c+8>>2];i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=i[c+84>>2];break a}a=i[c>>2];if(!a){break a}i[c+4>>2]=a;Zk(a)}a=i[c+72>>2];if(a){Zk(a)}a=i[c+48>>2];if(a){i[c+52>>2]=a;Zk(a)}a=i[c+36>>2];if(a){i[c+40>>2]=a;Zk(a)}a=i[c+24>>2];if(a){i[c+28>>2]=a;Zk(a)}a=i[c+20>>2];i[c+20>>2]=0;if(a){re(c+16|4,a)}H=c+96|0;return d}function Yi(a,b,c){var d=0,e=0,f=0,g=0;a:{if((b|c)>=0){b:{if(b>>>0>1431655765){break b}d=o(b,3);Zi(a,d,10824);Zi(a+12|0,d,10828);d=i[a+24>>2];c:{if(i[a+32>>2]-d>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break a}e=i[a+28>>2];f=c<<2;c=ok(f);f=c+f|0;e=e-d|0;g=e+c|0;if((e|0)>=1){$k(c,d,e)}i[a+32>>2]=f;i[a+28>>2]=g;i[a+24>>2]=c;if(!d){break c}Zk(d)}i[a+80>>2]=0;i[a+84>>2]=0;d=a+76|0;c=i[d>>2];i[d>>2]=0;if(c){Zk(c)}i[a+68>>2]=0;i[a+72>>2]=0;c=a- -64|0;a=i[c>>2];i[c>>2]=0;if(!a){break b}Zk(a)}a=b>>>0<1431655766}else{a=0}return a}xa(10832);x()}function Lj(a,b){var c=0,d=0,e=0,f=0;a:{if((b|0)<0){break a}c=i[a+24>>2];d=i[a+28>>2];if((c|0)==(d|0)){break a}while(1){e=c+4|0;if(i[i[c>>2]+24>>2]==(b|0)){b:{if((d|0)!=(e|0)){while(1){b=i[e>>2];i[e>>2]=0;f=i[c>>2];i[c>>2]=b;if(f){Lf(f+12|0,i[f+16>>2]);Mf(f,i[f+4>>2]);Zk(f)}c=c+4|0;e=e+4|0;if((d|0)!=(e|0)){continue}break}d=i[a+28>>2];if((d|0)==(c|0)){break b}}while(1){d=d+ -4|0;b=i[d>>2];i[d>>2]=0;if(b){Lf(b+12|0,i[b+16>>2]);Mf(b,i[b+4>>2]);Zk(b)}if((c|0)!=(d|0)){continue}break}}i[a+28>>2]=c;return}c=e;if((d|0)!=(c|0)){continue}break}}}function Ok(a){var b=0,c=0,d=0,e=0;b=H+ -64|0;H=b;d=i[a>>2];c=i[d+ -4>>2];d=i[d+ -8>>2];i[b+20>>2]=0;i[b+16>>2]=12424;i[b+12>>2]=a;i[b+8>>2]=12472;al(b+24|0,0,39);a=a+d|0;a:{if(Mk(c,12472,0)){i[b+56>>2]=1;K[i[i[c>>2]+20>>2]](c,b+8|0,a,a,1,0);e=i[b+32>>2]==1?a:0;break a}K[i[i[c>>2]+24>>2]](c,b+8|0,a,1,0);b:{switch(i[b+44>>2]){case 0:e=i[b+48>>2]==1?i[b+36>>2]==1?i[b+40>>2]==1?i[b+28>>2]:0:0:0;break a;case 1:break b;default:break a}}if(i[b+32>>2]!=1){if(i[b+48>>2]|i[b+36>>2]!=1|i[b+40>>2]!=1){break a}}e=i[b+24>>2]}H=b- -64|0;return e}function Ld(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>3>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<3)+c|0;while(1){i[c>>2]=0;i[c+4>>2]=0;c=c+8|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{f=i[a>>2];h=c-f|0;g=h>>3;d=g+b|0;if(d>>>0<536870912){c=0;g=g<<3;e=e-f|0;j=e>>2;d=e>>3>>>0<268435455?j>>>0>>0?d:j:536870911;if(d){if(d>>>0>=536870912){break a}c=ok(d<<3)}b=b<<3;b=al(c+g|0,0,b)+b|0;d=(d<<3)+c|0;if((h|0)>=1){$k(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Zk(f)}return}Dk();x()}xa(8058);x()}function pj(a,b,c){var d=0,e=0,f=0;e=H-16|0;H=e;a:{b:{if(!c){break b}i[a>>2]=b;i[e+12>>2]=0;d=0;if(!nj(1,e+12|0,b)){break a}c:{f=i[e+12>>2];if(f){b=0;while(1){if(!nj(1,e+8|0,i[a>>2])){break b}d=ok(28);i[d+4>>2]=0;i[d+8>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d>>2]=d+4;i[d+12>>2]=d+16;i[d+24>>2]=i[e+8>>2];if(!mj(a,d)){break c}i[e>>2]=d;rj(c,e);d=i[e>>2];i[e>>2]=0;if(d){Lf(d+12|0,i[d+16>>2]);Mf(d,i[d+4>>2]);Zk(d)}b=b+1|0;if((f|0)!=(b|0)){continue}break}}d=mj(a,c);break a}Lf(d+12|0,i[d+16>>2]);Mf(d,i[d+4>>2]);Zk(d)}d=0}H=e+16|0;return d}function mb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+60>>2];a:{if(!c){break a}i[c+4>>2]=a+48;if(!(K[i[i[c>>2]+12>>2]](c)|0)){break a}b:{d=K[i[i[a>>2]+24>>2]](a)|0;if((d|0)<1){break b}c=0;while(1){c:{f=i[(K[i[i[a>>2]+28>>2]](a)|0)+4>>2];g=K[i[i[a>>2]+20>>2]](a,c)|0;e=i[a+60>>2];if(!(K[i[i[e>>2]+8>>2]](e,i[i[f+8>>2]+(g<<2)>>2])|0)){break c}c=c+1|0;if((d|0)!=(c|0)){continue}break b}break}return 0}if(!(K[i[i[a>>2]+36>>2]](a,b)|0)){break a}if(!(K[i[i[a>>2]+40>>2]](a,b)|0)){break a}h=K[i[i[a>>2]+44>>2]](a)|0}return h|0}function Gb(a,b,c,d,e,f){var g=0,h=0,j=0;f=H-32|0;H=f;h=i[i[i[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((K[i[i[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}j=K[i[i[b>>2]+36>>2]](b)|0;g=K[i[i[b>>2]+44>>2]](b,d)|0;if(!(g?j:0)){i[a>>2]=0;break a}d=K[i[i[b>>2]+40>>2]](b,d)|0;if(d){b=i[b+44>>2];i[f+12>>2]=d;i[f+8>>2]=b;i[f+20>>2]=g;i[f+16>>2]=g+12;Hb(a,c,h,e,f+8|0);if(i[a>>2]){break a}i[a>>2]=0;break b}b=i[b+44>>2];i[f+12>>2]=j;i[f+8>>2]=b;i[f+20>>2]=g;i[f+16>>2]=g+12;Ib(a,c,h,e,f+8|0);if(i[a>>2]){break a}i[a>>2]=0}i[a>>2]=0}H=f+32|0}function Pf(a,b,c,d){var e=0,f=0,g=0;a:{if(!b){if((d|0)<0?1:(d|0)<=0?c>>>0<0:0){return 0}d=i[a>>2];b=i[a+4>>2]-d|0;if(b>>>0>>0){Ya(a,c-b|0);break a}if(b>>>0<=c>>>0){break a}i[a+4>>2]=c+d;break a}if((d|0)<0?1:(d|0)<=0?c>>>0<0:0){return 0}e=c;g=i[a>>2];f=i[a+4>>2]-g|0;b:{c:{if(0>(d|0)?1:0>=(d|0)?f>>>0>=c>>>0:0){break c}if(f>>>0>>0){Ya(a,e-f|0);break b}if(f>>>0<=e>>>0){break c}i[a+4>>2]=e+g}if(!e){break a}}bl(i[a>>2],b,e)}b=a+24|0;c=b;d=b;a=i[b+4>>2];b=i[b>>2]+1|0;if(b>>>0<1){a=a+1|0}i[d>>2]=b;i[c+4>>2]=a;return 1}function fe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=i[a+216>>2];if((c|0)!=i[a+220>>2]){while(1){a:{c=i[o(e,144)+c>>2];if((c|0)<0){break a}f=i[a+4>>2];d=i[f+8>>2];if((c|0)>=i[f+12>>2]-d>>2){break a}c=i[d+(c<<2)>>2];if((K[i[i[c>>2]+24>>2]](c)|0)<1){break a}d=0;while(1){if((K[i[i[c>>2]+20>>2]](c,d)|0)!=(b|0)){d=d+1|0;if((d|0)<(K[i[i[c>>2]+24>>2]](c)|0)){continue}break a}break}a=i[a+216>>2]+o(e,144)|0;return(j[a+100|0]?a+4|0:0)|0}e=e+1|0;c=i[a+216>>2];if(e>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}return 0}function Uk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(Mk(a,i[b+8>>2],e)){Tk(b,c,d);return}a:{if(Mk(a,i[b>>2],e)){if(!(i[b+20>>2]!=(c|0)?i[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}i[b+32>>2]=1;return}i[b+32>>2]=d;b:{if(i[b+44>>2]==4){break b}h[b+52>>1]=0;a=i[a+8>>2];K[i[i[a>>2]+20>>2]](a,b,c,c,1,e);if(j[b+53|0]){i[b+44>>2]=3;if(!j[b+52|0]){break b}break a}i[b+44>>2]=4}i[b+20>>2]=c;i[b+40>>2]=i[b+40>>2]+1;if(i[b+36>>2]!=1|i[b+24>>2]!=2){break a}g[b+54|0]=1;return}a=i[a+8>>2];K[i[i[a>>2]+24>>2]](a,b,c,d,e)}}function Zb(a,b){var c=0,d=0;c=H-32|0;H=c;a:{b:{if(i[a+8>>2]<<5>>>0>=b>>>0){break b}i[c+24>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;if((b|0)<=-1){break a}b=(b+ -1>>>5|0)+1|0;d=ok(b<<2);i[c+24>>2]=b;i[c+20>>2]=0;i[c+16>>2]=d;b=i[a>>2];i[c+12>>2]=0;i[c+8>>2]=b;d=i[a+4>>2];i[c+4>>2]=d&31;i[c>>2]=b+(d>>>3&536870908);_b(c+16|0,c+8|0,c);b=i[a>>2];i[a>>2]=i[c+16>>2];i[c+16>>2]=b;d=i[a+4>>2];i[a+4>>2]=i[c+20>>2];i[c+20>>2]=d;d=i[a+8>>2];i[a+8>>2]=i[c+24>>2];i[c+24>>2]=d;if(!b){break b}Zk(b)}H=c+32|0;return}Dk();x()}function ge(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=i[a+216>>2];if((c|0)!=i[a+220>>2]){while(1){a:{c=i[o(e,144)+c>>2];if((c|0)<0){break a}f=i[a+4>>2];d=i[f+8>>2];if((c|0)>=i[f+12>>2]-d>>2){break a}c=i[d+(c<<2)>>2];if((K[i[i[c>>2]+24>>2]](c)|0)<1){break a}d=0;while(1){if((K[i[i[c>>2]+20>>2]](c,d)|0)!=(b|0)){d=d+1|0;if((d|0)<(K[i[i[c>>2]+24>>2]](c)|0)){continue}break a}break}return(i[a+216>>2]+o(e,144)|0)+104|0}e=e+1|0;c=i[a+216>>2];if(e>>>0<(i[a+220>>2]-c|0)/144>>>0){continue}break}}return a+184|0}function zj(a,b,c){var d=0,e=0,f=0,h=0;d=H-48|0;H=d;f=_f(a,b);if((f|0)!=(a+4|0)){tj(a,f)}f=0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=i[c>>2];e=i[c+4>>2]-h|0;if(e){Ya(d,e);h=i[c>>2];c=i[d>>2]}else{c=0}$k(c,h,e);h=rk(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;b=i[d+4>>2];c=i[d>>2];e=b-c|0;if(e){Ya(d+28|0,e);c=i[d>>2];f=i[d+28>>2];b=i[d+4>>2]}$k(f,c,b-c|0);uj(d+40|0,a,h,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;Zk(a)}if(g[d+27|0]<=-1){Zk(i[d+16>>2])}a=i[d>>2];if(a){i[d+4>>2]=a;Zk(a)}H=d+48|0}function db(a){var b=0,c=0,d=0,e=0,f=0;b=i[a+8>>2];a:{if(j[b+84|0]){break a}c=i[a+16>>2];if(!c|!j[c+84|0]){break a}d=i[b+72>>2];e=i[b+68>>2];g[c+84|0]=0;d=d-e>>2;f=i[c+68>>2];e=i[c+72>>2]-f>>2;b:{if(d>>>0>e>>>0){eb(c+68|0,d-e|0,1656);b=i[a+8>>2];break b}if(d>>>0>=e>>>0){break b}i[c+72>>2]=f+(d<<2)}if(j[b+84|0]){break a}c=i[b+68>>2];b=i[b+72>>2]-c|0;if(!b){break a}d=b>>2;e=i[i[a+16>>2]+68>>2];b=0;while(1){f=b<<2;i[f+e>>2]=i[c+f>>2];b=b+1|0;if(b>>>0>>0){continue}break}}return i[a+16>>2]}function zg(a,b,c){var d=0,e=0,f=0,h=0,j=0;d=H-32|0;H=d;f=g[a+24|0];e=i[2663];i[d+24>>2]=i[2662];i[d+28>>2]=e;e=i[2661];i[d+16>>2]=i[2660];i[d+20>>2]=e;a:{e=Ag(a,b,f,d+16|0);if(e){i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a=0;if(f){if((f|0)<=-1){break a}b=f<<2;a=ok(b);i[d>>2]=a;h=(f<<2)+a|0;i[d+8>>2]=h;$k(a,d+16|0,b);i[d+4>>2]=h;j=h}b=i[c>>2];if(b){i[c+4>>2]=b;Zk(b);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;h=i[d+8>>2];j=i[d+4>>2];a=i[d>>2]}i[c+8>>2]=h;i[c+4>>2]=j;i[c>>2]=a}H=d+32|0;return e}Dk();x()}function Aj(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=H-16|0;H=e;f=a+12|0;j=_f(f,b);k=a+16|0;a:{if((j|0)!=(k|0)){break a}g=wd(f,e+12|0,b);d=i[g>>2];if(!d){d=ok(32);rk(d+16|0,b);i[d+28>>2]=0;i[d+8>>2]=i[e+12>>2];i[d>>2]=0;i[d+4>>2]=0;i[g>>2]=d;b=i[i[f>>2]>>2];h=d;b:{if(!b){break b}i[f>>2]=b;h=i[g>>2]}b=h;td(i[a+16>>2],b);a=a+20|0;i[a>>2]=i[a>>2]+1}b=i[c>>2];i[c>>2]=0;c=d+28|0;a=i[c>>2];i[c>>2]=b;if(!a){break a}Lf(a+12|0,i[a+16>>2]);Mf(a,i[a+4>>2]);Zk(a)}H=e+16|0;return(j|0)==(k|0)}function aj(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11304;b=i[a+68>>2];if(b){i[a+72>>2]=b;Zk(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;Zk(b)}b=i[a+44>>2];if(b){i[a+48>>2]=b;Zk(b)}b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;Zk(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){Oa(b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;Zk(b)}b=i[a+4>>2];i[a+4>>2]=0;if(b){Gf(b)}return a|0}function ve(a){var b=0,c=0,d=0,e=0;c=1;d=i[a+140>>2];a:{if((d|0)<1){break a}b=d<<4;c=ok((d|0)!=(d&268435455)?-1:b|4);i[c>>2]=d;c=c+4|0;d=c+b|0;b=c;while(1){b=id(b)+16|0;if((d|0)!=(b|0)){continue}break}e=i[a+136>>2];i[a+136>>2]=c;if(e){d=e+ -4|0;c=i[d>>2];if(c){b=e+(c<<4)|0;while(1){b=b+ -16|0;if((e|0)!=(b|0)){continue}break}}Zk(d)}c=1;if(i[a+140>>2]<1){break a}b=0;while(1){c=jd(i[a+136>>2]+(b<<4)|0,a);if(!c){break a}b=b+1|0;if((b|0)>2]){continue}break}}return c}function ra(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0;d=H-16|0;H=d;e=i[a+4>>2];a:{if((e|0)==-1){break a}c=e;f=d;b:{h=i[b+20>>2];if((h|0)<0?1:(h|0)<=0?l[b+16>>2]<=0:0){da(b,i[b+4>>2],i[a+8>>2],i[a+12>>2]);c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<1:0){break b}c=i[a+4>>2]}g[f+15|0]=c;break a}c=a+20|0;da(b,i[b+4>>2],c,c+4|0);c=i[b+20>>2];f=i[b+16>>2];g[d+15|0]=i[a+4>>2];if((c|0)>0?1:(c|0)>=0?f>>>0>0:0){break a}da(b,i[b+4>>2],d+15|0,d+16|0)}H=d+16|0;return(e|0)!=-1|0}function eg(a,b,c){var d=0,e=0,f=0,h=0;d=H-32|0;H=d;e=cl(b);if(e>>>0<4294967280){a:{b:{if(e>>>0>=11){h=e+16&-16;f=ok(h);i[d+24>>2]=h|-2147483648;i[d+16>>2]=f;i[d+20>>2]=e;break b}g[d+27|0]=e;f=d+16|0;if(!e){break a}}$k(f,b,e)}g[e+f|0]=0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;wj(a,d+16|0,d);a=i[c>>2];if(a){i[c+4>>2]=a;Zk(a);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c>>2]=i[d>>2];i[c+4>>2]=i[d+4>>2];i[c+8>>2]=i[d+8>>2];if(g[d+27|0]<=-1){Zk(i[d+16>>2])}H=d+32|0;return}qk();x()}function vg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a>>2];a=i[e+4>>2];d=i[e+8>>2];if(a>>>0>>0){i[a>>2]=i[b>>2];i[e+4>>2]=a+4;return}a:{f=i[e>>2];g=a-f|0;a=g>>2;c=a+1|0;if(c>>>0<1073741824){h=a<<2;d=d-f|0;a=d>>1;c=d>>2>>>0<536870911?a>>>0>>0?c:a:1073741823;a=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}a=ok(c<<2)}d=h+a|0;i[d>>2]=i[b>>2];b=a+(c<<2)|0;c=d+4|0;if((g|0)>=1){$k(a,f,g)}i[e+8>>2]=b;i[e+4>>2]=c;i[e>>2]=a;if(f){Zk(f)}return}Dk();x()}xa(10656);x()}function Za(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a=i[a+4>>2];if(a){c=j[b+11|0];d=c<<24>>24<0;g=d?i[b>>2]:b;b=d?i[b+4>>2]:c;while(1){c=j[a+27|0];d=c<<24>>24<0;c=d?i[a+20>>2]:c;h=c>>>0>>0;a:{b:{f=h?c:b;c:{if(f){e=a+16|0;d=d?i[e>>2]:e;e=Nj(g,d,f);d:{if(!e){if(b>>>0>=c>>>0){break d}break a}if((e|0)<=-1){break a}}c=Nj(d,g,f);if(!c){break c}if((c|0)<=-1){break b}return 1}if(b>>>0>>0){break a}}if(h){break b}return 1}a=a+4|0}a=i[a>>2];if(a){continue}break}}return 0}function Ri(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=al(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ok(d<<2)}b=b<<2;b=al(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){$k(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Zk(f)}return}Dk();x()}xa(10832);x()}function Cf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=al(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ok(d<<2)}b=b<<2;b=al(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){$k(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Zk(f)}return}Dk();x()}xa(10088);x()}function la(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=al(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ok(d<<2)}b=b<<2;b=al(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){$k(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Zk(f)}return}Dk();x()}xa(1244);x()}function hd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=al(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ok(d<<2)}b=b<<2;b=al(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){$k(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Zk(f)}return}Dk();x()}xa(7888);x()}function Na(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=al(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ok(d<<2)}b=b<<2;b=al(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){$k(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Zk(f)}return}Dk();x()}xa(1496);x()}function pg(a,b){var c=0,d=0,e=0,f=0;c=H-32|0;H=c;d=cl(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){f=d+16&-16;e=ok(f);i[c+24>>2]=f|-2147483648;i[c+16>>2]=e;i[c+20>>2]=d;break b}g[c+27|0]=d;e=c+16|0;if(!d){break a}}$k(e,b,d)}g[d+e|0]=0;g[c+4|0]=0;i[c>>2]=1701667182;g[c+11|0]=4;d=i[a+4>>2];b=-1;c:{if(!d){break c}d=qj(d,c,c+16|0);b=-1;if(!d){break c}b=Gj(a,i[d+24>>2])}if(g[c+11|0]<=-1){Zk(i[c>>2])}if(g[c+27|0]<=-1){Zk(i[c+16>>2])}H=c+32|0;return b}qk();x()}function Xi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+4>>2];e=i[a+8>>2];if((c|0)!=(e|0)){i[c>>2]=i[b>>2];i[a+4>>2]=c+4;return}a:{f=i[a>>2];g=c-f|0;c=g>>2;d=c+1|0;if(d>>>0<1073741824){h=c<<2;e=e-f|0;c=e>>1;d=e>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=ok(d<<2)}e=h+c|0;i[e>>2]=i[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){$k(c,f,g)}i[a+8>>2]=b;i[a+4>>2]=d;i[a>>2]=c;if(f){Zk(f)}return}Dk();x()}xa(10832);x()}function af(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+4>>2];a=i[e+4>>2];d=i[e+8>>2];if((a|0)!=(d|0)){i[a>>2]=b;i[e+4>>2]=a+4;return}a:{f=i[e>>2];g=a-f|0;a=g>>2;c=a+1|0;if(c>>>0<1073741824){h=a<<2;d=d-f|0;a=d>>1;c=d>>2>>>0<536870911?a>>>0>>0?c:a:1073741823;a=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}a=ok(c<<2)}d=h+a|0;i[d>>2]=b;b=a+(c<<2)|0;c=d+4|0;if((g|0)>=1){$k(a,f,g)}i[e+8>>2]=b;i[e+4>>2]=c;i[e>>2]=a;if(f){Zk(f)}return}Dk();x()}xa(8944);x()}function Ae(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+4>>2];e=i[a+8>>2];if((c|0)!=(e|0)){i[c>>2]=i[b>>2];i[a+4>>2]=c+4;return}a:{f=i[a>>2];g=c-f|0;c=g>>2;d=c+1|0;if(d>>>0<1073741824){h=c<<2;e=e-f|0;c=e>>1;d=e>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=ok(d<<2)}e=h+c|0;i[e>>2]=i[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){$k(c,f,g)}i[a+8>>2]=b;i[a+4>>2]=d;i[a>>2]=c;if(f){Zk(f)}return}Dk();x()}xa(8944);x()}function rb(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=1736;b=i[a+60>>2];i[a+60>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;Zk(b)}d=i[a+36>>2];if(d){b=d;c=i[a+40>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+36>>2]}b=e;i[a+40>>2]=d;Zk(b)}i[a>>2]=1360;b=i[a+16>>2];if(b){i[a+20>>2]=b;Zk(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;Zk(b)}return a|0}function sb(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=1736;b=i[a+60>>2];i[a+60>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;Zk(b)}d=i[a+36>>2];if(d){b=d;c=i[a+40>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+36>>2]}b=e;i[a+40>>2]=d;Zk(b)}i[a>>2]=1360;b=i[a+16>>2];if(b){i[a+20>>2]=b;Zk(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;Zk(b)}Zk(a)}function Pi(a,b){var c=0,d=0,e=0;d=H-16|0;H=d;e=ok(88);c=e;i[c>>2]=0;i[c+4>>2]=0;i[c+64>>2]=0;i[c+68>>2]=0;i[c+56>>2]=0;i[c+48>>2]=0;i[c+52>>2]=0;i[c+40>>2]=0;i[c+44>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+72>>2]=0;i[c+76>>2]=0;i[c+80>>2]=0;i[c+84>>2]=0;i[c+60>>2]=c;i[d+8>>2]=c;a:{if(Qi(c,b)){i[a>>2]=e;i[d+8>>2]=0;break a}i[a>>2]=0;i[d+8>>2]=0;re(d+8|0,e)}H=d+16|0}function Ne(a){var b=0,c=0,d=0,e=0;b=i[a+196>>2];if(b){i[a+200>>2]=b;Zk(b)}b=i[a+184>>2];if(b){c=i[a+188>>2];d=b;a:{if((b|0)==(c|0)){break a}while(1){d=c+ -12|0;e=i[d>>2];if(e){i[c+ -8>>2]=e;Zk(e)}c=d;if((c|0)!=(b|0)){continue}break}d=i[a+184>>2]}i[a+188>>2]=b;Zk(d)}b=i[a+156>>2];if(b){i[a+160>>2]=b;Zk(b)}b=i[a+136>>2];i[a+136>>2]=0;if(b){c=b+ -4|0;a=i[c>>2];if(a){a=b+(a<<4)|0;while(1){a=a+ -16|0;if((b|0)!=(a|0)){continue}break}}Zk(c)}}function Vf(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0;a:{if(a>>>0>10){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];h=e;if((d|0)<(h|0)?1:(d|0)<=(h|0)?l[c+8>>2]<=f>>>0:0){break a}j=g[f+i[c>>2]|0];d=f+1|0;if(d>>>0<1){e=e+1|0}i[c+16>>2]=d;i[c+20>>2]=e;h=b;f=b;d=j;b:{if((d|0)<=-1){if(!Vf(a+1|0,b,c)){break a}a=b;c=i[b+4>>2];b=i[b>>2];e=c<<7|b>>>25;b=b<<7;i[a>>2]=b;i[a+4>>2]=e;a=d&127|b;break b}e=0;a=d&255}i[f>>2]=a;i[h+4>>2]=e;k=1}return k}function Md(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0;a:{if(a>>>0>10){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];h=e;if((d|0)<(h|0)?1:(d|0)<=(h|0)?l[c+8>>2]<=f>>>0:0){break a}j=g[f+i[c>>2]|0];d=f+1|0;if(d>>>0<1){e=e+1|0}i[c+16>>2]=d;i[c+20>>2]=e;h=b;f=b;d=j;b:{if((d|0)<=-1){if(!Md(a+1|0,b,c)){break a}a=b;c=i[b+4>>2];b=i[b>>2];e=c<<7|b>>>25;b=b<<7;i[a>>2]=b;i[a+4>>2]=e;a=d&127|b;break b}e=0;a=d&255}i[f>>2]=a;i[h+4>>2]=e;k=1}return k}function Hg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>1>>>0>=b>>>0){if(b){b=b<<1;c=al(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];g=c-f|0;h=g>>1;d=h+b|0;if((d|0)>-1){c=0;e=e-f|0;d=e>>1>>>0<1073741823?e>>>0>>0?d:e:2147483647;if(d){if((d|0)<=-1){break a}c=ok(d<<1)}b=b<<1;b=al((h<<1)+c|0,0,b)+b|0;d=(d<<1)+c|0;if((g|0)>=1){$k(c,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Zk(f)}return}Dk();x()}xa(10656);x()}function Ca(a,b){var c=0;g[a+24|0]=j[b+24|0];i[a+28>>2]=i[b+28>>2];g[a+32|0]=j[b+32|0];c=i[b+44>>2];i[a+40>>2]=i[b+40>>2];i[a+44>>2]=c;c=i[b+52>>2];i[a+48>>2]=i[b+48>>2];i[a+52>>2]=c;i[a+56>>2]=i[b+56>>2];c=i[b+12>>2];i[a+8>>2]=i[b+8>>2];i[a+12>>2]=c;c=i[b+20>>2];i[a+16>>2]=i[b+16>>2];i[a+20>>2]=c;i[a+60>>2]=i[b+60>>2];b=i[b>>2];if(!b){i[a>>2]=0;return 1}a=i[a>>2];if(!a){return 0}c=a;a=i[b>>2];Pf(c,a,i[b+4>>2]-a|0,0);return 1}function Wi(a,b,c){var d=0,e=0,f=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;a:{b:{if(!b){break b}if((b|0)<=-1){break a}e=b+ -1>>>5|0;f=e+1|0;d=ok(f<<2);i[a+8>>2]=f;i[a>>2]=d;f=j[c|0];i[a+4>>2]=b;i[(b>>>0<33?d:d+(e<<2)|0)>>2]=0;c=b>>>5|0;e=c<<2;if(f){d=al(d,255,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;i[c>>2]=i[c>>2]|-1>>>32-b;return a}d=al(d,0,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;i[c>>2]=i[c>>2]&(-1>>>32-b^-1)}return a}Dk();x()}function sf(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Rj(b)}d=i[a+4>>2];if(c>>>0>d>>>0){tf(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(nl(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Rj(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}tf(a,b)}}function Zf(a,b){var c=0,d=0,e=0,f=0;d=H-16|0;H=d;Bk(d);e=wd(a,d+12|0,b);c=i[e>>2];if(!c){c=ok(40);rk(c+16|0,b);i[c+36>>2]=0;i[c+28>>2]=0;i[c+32>>2]=0;i[c+8>>2]=i[d+12>>2];i[c>>2]=0;i[c+4>>2]=0;i[e>>2]=c;b=i[i[a>>2]>>2];f=c;a:{if(!b){break a}i[a>>2]=b;f=i[e>>2]}b=f;td(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}a=c+28|0;if(g[c+39|0]<=-1){Zk(i[a>>2])}b=i[d+4>>2];i[a>>2]=i[d>>2];i[a+4>>2]=b;i[a+8>>2]=i[d+8>>2];H=d+16|0}function Bf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a:{b=i[a+8>>2];b:{if((b|0)<0){break b}c=i[a+4>>2];e=i[c>>2];d=i[c+4>>2]-e>>2;c:{if(b>>>0>d>>>0){Cf(c,b-d|0);f=i[a+8>>2];break c}f=b;if(b>>>0>=d>>>0){break c}i[c+4>>2]=e+(b<<2);f=b}d=f;if((d|0)<1){break b}a=i[a+4>>2];c=i[a>>2];e=i[a+4>>2]-c>>2;a=0;while(1){if((a|0)==(e|0)){break a}i[c+(a<<2)>>2]=a;a=a+1|0;if((a|0)<(d|0)){continue}break}}return(b^-1)>>>31|0}Ek();x()}function ye(a,b){var c=0,d=0,e=0,f=0;d=i[a+12>>2];c=i[a+16>>2]-d>>2;a:{if(c>>>0>>0){Na(a+12|0,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+16>>2]=d+(b<<2)}b:{c=i[a>>2];c:{if(i[a+8>>2]-c>>2>>>0>=b>>>0){break c}if(b>>>0>=1073741824){break b}d=i[a+4>>2];e=b<<2;b=ok(e);e=b+e|0;d=d-c|0;f=d+b|0;if((d|0)>=1){$k(b,c,d)}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b;if(!c){break c}Zk(c)}return}xa(8944);x()}function Te(a,b){var c=0,d=0,e=0;a:{if((a|0)!=(b|0)){e=a;c=i[b+4>>2];d=0;b:{if(!c){break b}c:{if(c>>>0<=i[a+8>>2]<<5>>>0){d=i[a>>2];break c}d=i[a>>2];if(d){Zk(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;c=i[b+4>>2]}if((c|0)<=-1){break a}c=(c+ -1>>>5|0)+1|0;d=ok(c<<2);i[a+8>>2]=c;i[a+4>>2]=0;i[a>>2]=d;c=i[b+4>>2]}bl(d,i[b>>2],(c+ -1>>>3&536870908)+4|0);d=i[b+4>>2]}i[e+4>>2]=d}return}Dk();x()}function wj(a,b,c){var d=0,e=0,f=0;a:{b=_f(a,b);b:{if((b|0)==(a+4|0)){break b}a=i[b+28>>2];d=i[b+32>>2];if((a|0)==(d|0)){break b}a=d-a|0;if(a&3){break b}d=a>>>2|0;e=i[c+4>>2];a=i[c>>2];f=e-a>>2;c:{if(d>>>0>f>>>0){Na(c,d-f|0);a=i[c>>2];e=i[c+4>>2];break c}if(d>>>0>=f>>>0){break c}e=(d<<2)+a|0;i[c+4>>2]=e}if((a|0)==(e|0)){break a}c=a;a=i[b+28>>2];$k(c,a,i[b+32>>2]-a|0)}return}Ek();x()}function me(a,b){var c=0;c=i[b+8>>2];i[a+12>>2]=i[b+4>>2];i[a+16>>2]=c;i[a+28>>2]=i[b+20>>2];c=i[b+16>>2];i[a+20>>2]=i[b+12>>2];i[a+24>>2]=c;Te(a+32|0,b+24|0);Te(a+44|0,b+36|0);if((a+8|0)==(b|0)){i[a+92>>2]=i[b+84>>2];return}Ia(a+56|0,i[b+48>>2],i[b+52>>2]);Ia(a+68|0,i[b+60>>2],i[b- -64>>2]);Ia(a+80|0,i[b+72>>2],i[b+76>>2]);i[a+92>>2]=i[b+84>>2];Ue(a+96|0,i[b+88>>2],i[b+92>>2])}function tj(a,b){var c=0,d=0,e=0;c=i[b+4>>2];a:{if(!c){d=i[b+8>>2];if(i[d>>2]==(b|0)){break a}e=b+8|0;while(1){c=i[e>>2];e=c+8|0;d=i[c+8>>2];if((c|0)!=i[d>>2]){continue}break}break a}while(1){d=c;c=i[c>>2];if(c){continue}break}}if(i[a>>2]==(b|0)){i[a>>2]=d}i[a+8>>2]=i[a+8>>2]+ -1;Bj(i[a+4>>2],b);a=i[b+28>>2];if(a){i[b+32>>2]=a;Zk(a)}if(g[b+27|0]<=-1){Zk(i[b+16>>2])}Zk(b)}function _d(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=8232;b=i[a+48>>2];i[a+48>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}i[a>>2]=10228;b=i[a+20>>2];if(b){i[a+24>>2]=b;Zk(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;Zk(b)}return a|0}function $d(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=8232;b=i[a+48>>2];i[a+48>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}i[a>>2]=10228;b=i[a+20>>2];if(b){i[a+24>>2]=b;Zk(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;Zk(b)}Zk(a)}function fg(a,b){var c=0,d=0,e=0,f=0,h=0;c=H-32|0;H=c;i[c+24>>2]=0;i[c+28>>2]=0;d=cl(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=ok(e);i[c+16>>2]=e|-2147483648;i[c+8>>2]=f;i[c+12>>2]=d;e=c+8|0;break b}g[c+19|0]=d;e=c+8|0;f=e;if(!d){break a}}$k(f,b,d)}g[d+f|0]=0;xj(a,c+8|0,c+24|0);h=n[c+24>>3];if(g[e+11|0]<=-1){Zk(i[c+8>>2])}H=c+32|0;return h}qk();x()}function vk(a,b,c,d,e,f,h){var j=0,k=0,l=0;j=H-16|0;H=j;if((b^-1)+ -17>>>0>=c>>>0){k=dk(a);a:{if(2147483623>b>>>0){i[j+8>>2]=b<<1;i[j+12>>2]=b+c;c=ik(i[Yj(j+12|0,j+8|0)>>2]);break a}c=-18}l=c+1|0;c=jk(l);if(f){Xj(c,h,f)}d=d-e|0;h=d;if(d){Xj(c+f|0,e+k|0,h)}if((b|0)!=10){Zk(k)}kk(a,c);lk(a,l);b=a;a=d+f|0;gk(b,a);g[j+7|0]=0;fk(a+c|0,j+7|0);H=j+16|0;return}qk();x()}function gg(a,b,c){var d=0,e=0,f=0,h=0;d=H-16|0;H=d;e=cl(c);if(e>>>0<4294967280){a:{b:{if(e>>>0>=11){h=e+16&-16;f=ok(h);i[d+8>>2]=h|-2147483648;i[d>>2]=f;i[d+4>>2]=e;break b}g[d+11|0]=e;f=d;if(!e){break a}}$k(f,c,e)}g[e+f|0]=0;a=a+16|0;c=0;c:{if(!yj(b,d,a)){break c}c=i[a>>2];if(g[a+11|0]<=-1){break c}c=a}if(g[d+11|0]<=-1){Zk(i[d>>2])}H=d+16|0;return c}qk();x()}function Bb(a,b,c){var d=0,e=0,f=0,h=0;d=H-80|0;H=d;e=Aa(d+16|0);f=i[i[a+8>>2]+56>>2];h=c<<24>>24;c=o(Xf(5),c);Ba(e,f,h,5,0,c,c>>31);c=ok(96);e=Fa(c,e);g[c+84|0]=1;i[c+72>>2]=i[c+68>>2];Ga(e,b);i[d>>2]=0;i[d+8>>2]=0;b=i[a+16>>2];i[a+16>>2]=c;a:{if(!b){i[d>>2]=0;break a}Oa(b);a=i[d>>2];i[d>>2]=0;if(!a){break a}Oa(a)}a=i[d+8>>2];i[d+8>>2]=0;if(a){Oa(a)}H=d+80|0}function Ya(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>>0>=b>>>0){if(b){c=al(c,0,b)+b|0}i[a+4>>2]=c;return}f=i[a>>2];g=c-f|0;d=g+b|0;if((d|0)>-1){c=0;e=e-f|0;h=e<<1;d=e>>>0<1073741823?h>>>0>>0?d:h:2147483647;if(d){c=ok(d)}d=c+d|0;b=al(c+g|0,0,b)+b|0;if((g|0)>=1){$k(c,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Zk(f)}return}Dk();x()}function ug(a,b){var c=0,d=0,e=0,f=0;c=H-16|0;H=c;i[a+68>>2]=0;i[a+72>>2]=0;i[a>>2]=b;jj(c+8|0,b);d=i[c+8>>2];i[c+8>>2]=0;e=i[a+4>>2];i[a+4>>2]=d;a:{if(!e){i[c+8>>2]=0;break a}f=a+4|0;re(f,e);d=i[c+8>>2];i[c+8>>2]=0;if(d){re(c+8|0,d)}d=i[f>>2]}if(d){e=i[b+100>>2];b=i[b+96>>2];g[c+7|0]=0;ke(a+56|0,(e-b|0)/12|0,c+7|0)}H=c+16|0;return(d|0)!=0}function Sk(a,b,c,d){g[a+53|0]=1;a:{if(i[a+4>>2]!=(c|0)){break a}g[a+52|0]=1;c=i[a+16>>2];if(!c){i[a+36>>2]=1;i[a+24>>2]=d;i[a+16>>2]=b;if((d|0)!=1|i[a+48>>2]!=1){break a}g[a+54|0]=1;return}if((b|0)==(c|0)){c=i[a+24>>2];if((c|0)==2){i[a+24>>2]=d;c=d}if(i[a+48>>2]!=1|(c|0)!=1){break a}g[a+54|0]=1;return}g[a+54|0]=1;i[a+36>>2]=i[a+36>>2]+1}}function Nk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H+ -64|0;H=d;e=1;a:{if(Mk(a,b,0)){break a}e=0;if(!b){break a}b=Ok(b);e=0;if(!b){break a}i[d+20>>2]=-1;i[d+16>>2]=a;i[d+12>>2]=0;i[d+8>>2]=b;al(d+24|0,0,39);i[d+56>>2]=1;K[i[i[b>>2]+28>>2]](b,d+8|0,i[c>>2],1);a=i[d+32>>2];if((a|0)==1){i[c>>2]=i[d+24>>2]}e=(a|0)==1}a=e;H=d- -64|0;return a|0}function xg(a,b,c){var d=0,e=0,f=0,g=0;a:{if(l[a+80>>2]>65535){break a}f=i[a+96>>2];d=i[a+100>>2]-f|0;a=(d|0)/12|0;e=o(a,6);g=(e|0)==(b|0);if(!d|(b|0)!=(e|0)){break a}g=1;e=a>>>0>1?a:1;a=0;while(1){b=o(a,6)+c|0;d=o(a,12)+f|0;h[b>>1]=i[d>>2];h[b+2>>1]=i[d+4>>2];h[b+4>>1]=i[d+8>>2];a=a+1|0;if((e|0)!=(a|0)){continue}break}}return g}function dg(a,b){var c=0,d=0,e=0,f=0;c=H-16|0;H=c;i[c+12>>2]=0;d=cl(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=ok(e);i[c+8>>2]=e|-2147483648;i[c>>2]=f;i[c+4>>2]=d;e=c;break b}g[c+11|0]=d;e=c;f=c;if(!d){break a}}$k(f,b,d)}g[d+f|0]=0;vj(a,c,c+12|0);a=i[c+12>>2];if(g[e+11|0]<=-1){Zk(i[c>>2])}H=c+16|0;return a}qk();x()}function ne(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H-16|0;H=d;i[a+4>>2]=b;b=i[b+64>>2];e=i[b>>2];b=i[b+4>>2];g[d+15|0]=0;ke(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=i[a+4>>2];e=i[b+56>>2];b=i[b+52>>2];g[d+14|0]=0;ke(a+36|0,e-b>>2,d+14|0);b=i[c+12>>2];i[a+16>>2]=i[c+8>>2];i[a+20>>2]=b;b=i[c+4>>2];i[a+8>>2]=i[c>>2];i[a+12>>2]=b;H=d+16|0}function fb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=1;a:{if((K[i[i[b>>2]+20>>2]](b)|0)<1){break a}d=0;while(1){c=Dj(i[i[a+4>>2]+4>>2],K[i[i[b>>2]+24>>2]](b,e)|0);if((c|0)==-1){break a}c=Kf(i[a+4>>2],c);if(!c){break a}if(!(K[i[i[b>>2]+28>>2]](b,c)|0)){break a}e=e+1|0;if((e|0)<(K[i[i[b>>2]+20>>2]](b)|0)){continue}break}d=1}return d|0}function cl(a){var b=0,c=0,d=0;a:{b:{b=a;if(!(b&3)){break b}if(!j[a|0]){return 0}while(1){b=b+1|0;if(!(b&3)){break b}if(j[b|0]){continue}break}break a}while(1){c=b;b=b+4|0;d=i[c>>2];if(!((d^-1)&d+ -16843009&-2139062144)){continue}break}if(!(d&255)){return c-a|0}while(1){d=j[c+1|0];b=c+1|0;c=b;if(d){continue}break}}return b-a|0}function yb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H-48|0;H=e;a:{if((d|0)!=1){i[a>>2]=0;break a}d=i[b+4>>2];b=i[b+12>>2];i[e+40>>2]=0;f=e+32|0;i[f>>2]=0;i[f+4>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;zb(e,c,b,d,e+8|0);b=i[f>>2];if(b){i[e+36>>2]=b;Zk(b)}i[a>>2]=i[e>>2]}H=e+48|0}function vf(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!vf(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function qe(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!qe(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function nj(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!nj(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function kd(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!kd(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function Wb(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Wb(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function Ma(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Ma(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function Kd(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Kd(a+1|0,b,c)){break a}a=i[b>>2]<<7;i[b>>2]=a;d=a|d&127}i[e>>2]=d;g=1}return g}function ob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=K[i[i[a>>2]+24>>2]](a)|0;c=1;a:{if((e|0)<1){break a}d=i[i[a+36>>2]>>2];f=a+48|0;c=0;if(!(K[i[i[d>>2]+20>>2]](d,f,b)|0)){break a}d=1;while(1){c=d;if((e|0)!=(c|0)){d=c+1|0;g=i[i[a+36>>2]+(c<<2)>>2];if(K[i[i[g>>2]+20>>2]](g,f,b)|0){continue}}break}c=(c|0)>=(e|0)}return c|0}function nb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=K[i[i[a>>2]+24>>2]](a)|0;c=1;a:{if((e|0)<1){break a}d=i[i[a+36>>2]>>2];f=a+48|0;c=0;if(!(K[i[i[d>>2]+16>>2]](d,f,b)|0)){break a}d=1;while(1){c=d;if((e|0)!=(c|0)){d=c+1|0;g=i[i[a+36>>2]+(c<<2)>>2];if(K[i[i[g>>2]+16>>2]](g,f,b)|0){continue}}break}c=(c|0)>=(e|0)}return c|0}function xd(a,b,c,d){var e=0,f=0,g=0,h=0;if(!a){return 1}e=i[c+16>>2];g=i[c+12>>2];f=i[c+20>>2];a:{if((g|0)<(f|0)?1:(g|0)<=(f|0)?l[c+8>>2]<=e>>>0:0){break a}g=j[e+i[c>>2]|0];e=e+1|0;if(e>>>0<1){f=f+1|0}i[c+16>>2]=e;i[c+20>>2]=f;b:{switch(g|0){case 0:return yd(a,b,c,d);case 1:break b;default:break a}}h=zd(a,c,d)}return h}function fj(a){i[a>>2]=0;i[a+4>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;g[a+24|0]=1;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+88>>2]=0;i[a+92>>2]=0;i[a+68>>2]=a}function Vk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(Mk(a,i[b+8>>2],e)){Tk(b,c,d);return}a:{if(!Mk(a,i[b>>2],e)){break a}if(!(i[b+20>>2]!=(c|0)?i[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}i[b+32>>2]=1;return}i[b+20>>2]=c;i[b+32>>2]=d;i[b+40>>2]=i[b+40>>2]+1;if(!(i[b+36>>2]!=1|i[b+24>>2]!=2)){g[b+54|0]=1}i[b+44>>2]=4}}function Qj(a){var b=0,c=0,d=0,e=0,f=0;while(1){b=a;a=b+1|0;c=g[b|0];if((c|0)==32|c+ -9>>>0<5){continue}break}a:{b:{c:{c=g[b|0];switch(c+ -43|0){case 0:break b;case 2:break c;default:break a}}e=1}c=g[a|0];b=a;f=e}if(Pj(c)){while(1){d=(o(d,10)-g[b|0]|0)+48|0;a=g[b+1|0];b=b+1|0;if(Pj(a)){continue}break}}return f?d:0-d|0}function Se(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H-16|0;H=d;i[a+4>>2]=b;e=i[b>>2];b=i[b+4>>2];g[d+15|0]=0;ke(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=i[a+4>>2];e=i[b+28>>2];b=i[b+24>>2];g[d+14|0]=0;ke(a+36|0,e-b>>2,d+14|0);b=i[c+12>>2];i[a+16>>2]=i[c+8>>2];i[a+20>>2]=b;b=i[c+4>>2];i[a+8>>2]=i[c>>2];i[a+12>>2]=b;H=d+16|0}function Oi(a){var b=0;i[a>>2]=0;i[a+4>>2]=0;i[a+56>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+32>>2]=0;i[a+36>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;b=a- -64|0;i[b>>2]=0;i[b+4>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+60>>2]=a}function Gf(a){var b=0,c=0,d=0,e=0;if(a){d=i[a+24>>2];if(d){b=d;c=i[a+28>>2];e=b;a:{if((c|0)==(b|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){Lf(b+12|0,i[b+16>>2]);Mf(b,i[b+4>>2]);Zk(b)}if((c|0)!=(d|0)){continue}break}e=i[a+24>>2]}b=e;i[a+28>>2]=d;Zk(b)}Lf(a+12|0,i[a+16>>2]);Mf(a,i[a+4>>2]);Zk(a)}}function rg(a,b,c){var d=0,e=0,f=0;d=H-16|0;H=d;e=i[a+96>>2];i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;a=ok(12);i[d>>2]=a;i[d+4>>2]=a;f=a+12|0;i[d+8>>2]=f;e=$k(a,e+o(b,12)|0,12)+12|0;i[d+4>>2]=e;b=i[c>>2];if(b){i[c+4>>2]=b;Zk(b);i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0}i[c+8>>2]=f;i[c+4>>2]=e;i[c>>2]=a;H=d+16|0;return 1}function cg(a,b){var c=0,d=0,e=0,f=0;c=H-16|0;H=c;d=cl(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=ok(e);i[c+8>>2]=e|-2147483648;i[c>>2]=f;i[c+4>>2]=d;e=c;break b}g[c+11|0]=d;e=c;f=c;if(!d){break a}}$k(f,b,d)}g[d+f|0]=0;a=Za(a,c);if(g[e+11|0]<=-1){Zk(i[c>>2])}H=c+16|0;return(a|0)!=0}qk();x()}function cj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H-16|0;H=d;e=i[c>>2];i[c>>2]=0;i[d+8>>2]=e;Ij(a,b,d+8|0);c=i[d+8>>2];i[d+8>>2]=0;if(c){Oa(c)}e=i[a+84>>2];c=i[a+88>>2]-e>>2;a:{if((c|0)>(b|0)){break a}b=b+1|0;if(b>>>0>c>>>0){dj(a+84|0,b-c|0);break a}if(b>>>0>=c>>>0){break a}i[a+88>>2]=e+(b<<2)}H=d+16|0}function Vd(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=10228;b=i[a+20>>2];if(b){i[a+24>>2]=b;Zk(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;Zk(b)}return a|0}function zk(a,b,c,d,e){var f=0,g=0,h=0;f=H-16|0;H=f;if(-17-b>>>0>=c>>>0){g=dk(a);a:{if(2147483623>b>>>0){i[f+8>>2]=b<<1;i[f+12>>2]=b+c;c=ik(i[Yj(f+12|0,f+8|0)>>2]);break a}c=-18}h=c+1|0;c=jk(h);if(e){Xj(c,g,e)}d=d-e|0;if(d){Xj(c+e|0,e+g|0,d)}if((b|0)!=10){Zk(g)}kk(a,c);lk(a,h);H=f+16|0;return}qk();x()}function ea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;h=i[c+8>>2];f=i[c+16>>2];g=i[c+12>>2];d=g;e=i[c+20>>2];if((d|0)>(e|0)?1:(d|0)>=(e|0)?h>>>0>f>>>0:0){b=j[f+i[c>>2]|0];d=e;k=f+1|0;if(k>>>0<1){d=d+1|0}i[c+16>>2]=k;i[c+20>>2]=d;i[a+4>>2]=b}return((g|0)>(e|0)?1:(g|0)>=(e|0)?h>>>0>f>>>0:0)|0}function zf(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=10228;b=i[a+20>>2];if(b){i[a+24>>2]=b;Zk(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;Zk(b)}Zk(a)}function za(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,h=0,j=0;e=H+ -64|0;H=e;f=K[i[i[b>>2]+44>>2]](b,c)|0;b=K[i[i[b>>2]+40>>2]](b,c)|0;h=Aa(e);j=i[c+56>>2];c=b;b=o(Xf(b),f);Ba(h,j,f<<24>>24,c,0,b,b>>31);b=ok(96);c=Fa(b,h);i[a>>2]=b;Ga(c,d);g[b+84|0]=1;i[b+72>>2]=i[b+68>>2];H=e- -64|0}function We(a){a=a|0;var b=0;i[a+8>>2]=9264;i[a>>2]=9052;b=i[a+96>>2];if(b){i[a+100>>2]=b;Zk(b)}b=i[a+80>>2];if(b){i[a+84>>2]=b;Zk(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;Zk(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;Zk(b)}i[a+8>>2]=9500;b=i[a+44>>2];if(b){Zk(b)}b=i[a+32>>2];if(b){Zk(b)}return a|0}function Ga(a,b){var c=0,d=0,e=0;a:{if(i[a+64>>2]){break a}d=ok(32);Of(d);c=i[a+64>>2];i[a+64>>2]=d;if(!c){break a}d=i[c>>2];if(d){i[c+4>>2]=d;Zk(d)}Zk(c)}c=Xf(i[a+28>>2]);c=o(c,g[a+24|0]);d=c;c=c>>31;e=Pf(i[a+64>>2],0,kl(d,c,b,0),J);if(e){Da(a,i[a+64>>2],d,c);i[a+80>>2]=b}return e}function Xe(a){a=a|0;var b=0;i[a+8>>2]=9264;i[a>>2]=9052;b=i[a+96>>2];if(b){i[a+100>>2]=b;Zk(b)}b=i[a+80>>2];if(b){i[a+84>>2]=b;Zk(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;Zk(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;Zk(b)}i[a+8>>2]=9500;b=i[a+44>>2];if(b){Zk(b)}b=i[a+32>>2];if(b){Zk(b)}Zk(a)}function yg(a,b,c){var d=0,e=0,f=0,g=0,h=0;g=i[a+96>>2];e=i[a+100>>2]-g|0;a=(e|0)/12|0;if(!(!e|(b|0)!=(e|0))){h=a>>>0>1?a:1;a=0;while(1){d=o(a,12);f=d+c|0;d=d+g|0;i[f>>2]=i[d>>2];i[f+4>>2]=i[d+4>>2];i[f+8>>2]=i[d+8>>2];a=a+1|0;if((h|0)!=(a|0)){continue}break}}return(b|0)==(e|0)}function nk(a,b,c){var d=0,e=0,f=0,h=0;f=H-16|0;H=f;e=c-b|0;if(e>>>0<=4294967279){a:{if(e>>>0<=10){hk(a,e);d=a;break a}h=ik(e)+1|0;d=jk(h);kk(a,d);lk(a,h);gk(a,e)}while(1){if((b|0)!=(c|0)){fk(d,b);d=d+1|0;b=b+1|0;continue}break}g[f+15|0]=0;fk(d,f+15|0);H=f+16|0;return}qk();x()}function Wg(a,b){var c=0,d=0;c=i[a+4>>2];if(!c){return 0}b=i[i[i[a+8>>2]+(b<<2)>>2]+60>>2];if((b|0)<0){return 0}a=i[c+24>>2];c=i[c+28>>2];if((a|0)==(c|0)){return 0}a:{while(1){d=i[a>>2];if((b|0)==i[d+24>>2]){break a}a=a+4|0;if((c|0)!=(a|0)){continue}break}return 0}return d}function $j(){var a=0,b=0,c=0;a=H-16|0;H=a;a:{if(D(a+12|0,a+8|0)|0){break a}b=Yk((i[a+12>>2]<<2)+4|0);i[3156]=b;if(!b){break a}b:{b=Yk(i[a+8>>2]);if(b){c=i[3156];if(c){break b}}i[3156]=0;break a}i[(i[a+12>>2]<<2)+c>>2]=0;if(!(E(i[3156],b|0)|0)){break a}i[3156]=0}H=a+16|0}function Ve(a){a=a|0;var b=0;i[a>>2]=9264;b=i[a+88>>2];if(b){i[a+92>>2]=b;Zk(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;Zk(b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;Zk(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;Zk(b)}i[a>>2]=9500;b=i[a+36>>2];if(b){Zk(b)}b=i[a+24>>2];if(b){Zk(b)}return a|0}function Uh(a){a=a|0;var b=0,c=0,d=0,e=0;if(a){if(g[a+27|0]<=-1){Zk(i[a+16>>2])}c=i[a>>2];if(c){b=c;d=i[a+4>>2];e=b;a:{if((d|0)==(b|0)){break a}while(1){b=d+ -12|0;if(g[d+ -1|0]<=-1){Zk(i[b>>2])}d=b;if((b|0)!=(c|0)){continue}break}e=i[a>>2]}b=e;i[a+4>>2]=c;Zk(b)}Zk(a)}}function bf(a){a=a|0;var b=0;i[a>>2]=9264;b=i[a+88>>2];if(b){i[a+92>>2]=b;Zk(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;Zk(b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;Zk(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;Zk(b)}i[a>>2]=9500;b=i[a+36>>2];if(b){Zk(b)}b=i[a+24>>2];if(b){Zk(b)}Zk(a)}function qb(a,b,c){a=a|0;b=b|0;c=c|0;b=0;a:{b:{switch(c|0){case 0:b=ok(20);_a(b);break a;case 1:b=ok(24);ub(b);break a;case 2:b=ok(48);$c(b);break a;case 3:b=ok(32);ub(b);i[b+28>>2]=-1;i[b+24>>2]=1032;i[b>>2]=5628;break;default:break b}}i[a>>2]=b;return}i[a>>2]=b}function ld(a){var b=0,c=0,d=0,e=0,f=0;d=j[a+12|0];c=i[a+8>>2];a:{if(c>>>0>4095){break a}b=i[a+4>>2];if((b|0)<1){break a}b=b+ -1|0;i[a+4>>2]=b;c=j[b+i[a>>2]|0]|c<<8;i[a+8>>2]=c}d=0-d&255;b=o(d,c>>>8|0);e=c&255;f=e>>>0>>0;i[a+8>>2]=f?b+e|0:(c-d|0)-b|0;return f}function sd(a,b,c,d){var e=0;e=H-16|0;H=e;c=vd(a,b,e+12|0,e+8|0,c);if(!i[c>>2]){b=ok(40);rk(b+16|0,d);rk(b+28|0,d+12|0);i[b+8>>2]=i[e+12>>2];i[b>>2]=0;i[b+4>>2]=0;i[c>>2]=b;d=i[i[a>>2]>>2];if(d){i[a>>2]=d;b=i[c>>2]}td(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}H=e+16|0}function se(a){var b=0;b=i[a+84>>2];if(b){i[a+88>>2]=b;Zk(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;Zk(b)}b=i[a+52>>2];if(b){i[a+56>>2]=b;Zk(b)}b=i[a+40>>2];if(b){i[a+44>>2]=b;Zk(b)}b=i[a+28>>2];if(b){i[a+32>>2]=b;Zk(b)}b=i[a+12>>2];if(b){Zk(b)}a=i[a>>2];if(a){Zk(a)}}function re(a,b){if(b){a=i[b+76>>2];if(a){i[b+80>>2]=a;Zk(a)}a=i[b- -64>>2];if(a){i[b+68>>2]=a;Zk(a)}a=i[b+48>>2];if(a){i[b+52>>2]=a;Zk(a)}a=i[b+24>>2];if(a){i[b+28>>2]=a;Zk(a)}a=i[b+12>>2];if(a){i[b+16>>2]=a;Zk(a)}a=i[b>>2];if(a){i[b+4>>2]=a;Zk(a)}Zk(b)}}function il(a,b,c,d){var e=0,f=0,g=0,h=0;e=b;f=e>>31;e=e>>31;a=a^e;g=a-e|0;h=(b^f)-((a>>>0>>0)+f|0)|0;e=d;f=e>>31;e=e>>31;a=c^e;e=ml(g,h,a-e|0,(d^f)-((a>>>0>>0)+f|0)|0);b=b^d;c=b>>31;a=b>>31;b=e^a;d=b-a|0;J=(c^J)-((b>>>0>>0)+c|0)|0;return d}function Vj(a,b,c){var d=0,e=0,f=0,g=0;d=H-16|0;H=d;b=b-a>>2;while(1){if(b){i[d+12>>2]=a;e=d+12|0;f=e;g=i[e>>2];e=b>>>1|0;i[f>>2]=g+(e<<2);if(Wj(i[d+12>>2],c)){a=i[d+12>>2]+4|0;i[d+12>>2]=a;b=(e^-1)+b|0}else{b=e}continue}break}H=d+16|0;return a}function xj(a,b,c){var d=0;a:{d=a+4|0;a=_f(a,b);if((d|0)==(a|0)){break a}b=i[a+32>>2];a=i[a+28>>2];if((b-a|0)!=8){break a}b=j[a+4|0]|j[a+5|0]<<8|(j[a+6|0]<<16|j[a+7|0]<<24);i[c>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24);i[c+4>>2]=b}}function Oa(a){a=a|0;var b=0,c=0;if(a){b=i[a+88>>2];i[a+88>>2]=0;if(b){c=i[b+8>>2];if(c){i[b+12>>2]=c;Zk(c)}Zk(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;Zk(b)}b=i[a+64>>2];i[a+64>>2]=0;if(b){c=i[b>>2];if(c){i[b+4>>2]=c;Zk(c)}Zk(b)}Zk(a)}}function fd(a){a=a|0;var b=0;i[a+24>>2]=1140;i[a>>2]=7764;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}i[a>>2]=1952;b=i[a+20>>2];i[a+20>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}i[a>>2]=1572;b=i[a+16>>2];i[a+16>>2]=0;if(b){Oa(b)}return a|0}function Hj(a,b){var c=0,d=0,e=0,f=0;c=H-16|0;H=c;d=i[a+12>>2];e=i[a+8>>2];f=i[b>>2];i[b>>2]=0;i[c+8>>2]=f;K[i[i[a>>2]+8>>2]](a,d-e>>2,c+8|0);b=i[c+8>>2];i[c+8>>2]=0;if(b){Oa(b)}H=c+16|0;return(i[a+12>>2]-i[a+8>>2]>>2)+ -1|0}function hl(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=o(e,f);g=c&65535;h=a&65535;i=o(g,h);f=(i>>>16|0)+o(f,g)|0;e=(f&65535)+o(e,h)|0;a=(o(b,c)+j|0)+o(a,d)+(f>>>16)+(e>>>16)|0;b=i&65535|e<<16;J=a;return b}function Fj(a,b){var c=0,d=0,e=0;c=i[a+8>>2];a=i[a+12>>2];a:{if((c|0)==(a|0)){break a}a=a-c>>2;e=a>>>0>1?a:1;a=0;while(1){d=i[(a<<2)+c>>2];if(i[d+60>>2]==(b|0)){break a}a=a+1|0;if((e|0)!=(a|0)){continue}break}d=0}return d}function gd(a){a=a|0;var b=0;i[a+24>>2]=1140;i[a>>2]=7764;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}i[a>>2]=1952;b=i[a+20>>2];i[a+20>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}i[a>>2]=1572;b=i[a+16>>2];i[a+16>>2]=0;if(b){Oa(b)}Zk(a)}function Rf(a){h[a+38>>1]=0;i[a>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;g[a+29|0]=0;g[a+30|0]=0;g[a+31|0]=0;g[a+32|0]=0;g[a+33|0]=0;g[a+34|0]=0;g[a+35|0]=0;g[a+36|0]=0;return a}function ca(a,b){a=a|0;b=b|0;var c=0,d=0;c=H-16|0;H=c;a=i[a+4>>2];a:{if((a|0)==-1){break a}g[c+15|0]=a;d=i[b+20>>2];if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break a}da(b,i[b+4>>2],c+15|0,c+16|0)}H=c+16|0;return(a|0)!=-1|0}function Qf(a,b){var c=0,d=0;d=i[a>>2];c=i[a+4>>2]-d|0;a:{if(c>>>0>>0){Ya(a,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+4>>2]=b+d}b=a+24|0;c=b;d=b;a=i[b+4>>2];b=i[b>>2]+1|0;if(b>>>0<1){a=a+1|0}i[d>>2]=b;i[c+4>>2]=a}function sk(a,b,c){var d=0,e=0,f=0;d=H-16|0;H=d;if(4294967279>=c>>>0){a:{if(c>>>0<=10){hk(a,c);e=a;break a}f=ik(c)+1|0;e=jk(f);kk(a,e);lk(a,f);gk(a,c)}Xj(e,b,c);g[d+15|0]=0;fk(c+e|0,d+15|0);H=d+16|0;return}qk();x()}function Jf(a){a=a|0;var b=0,c=0,d=0;b=i[a+8>>2];d=i[a+12>>2];if((b|0)==(d|0)){return 1}while(1){a:{c=i[b>>2];c=K[i[i[c>>2]+16>>2]](c,i[a+32>>2])|0;b=b+4|0;if((d|0)==(b|0)){break a}if(c){continue}}break}return c|0}function Pk(a,b,c){var d=0;d=i[a+16>>2];if(!d){i[a+36>>2]=1;i[a+24>>2]=c;i[a+16>>2]=b;return}a:{if((b|0)==(d|0)){if(i[a+24>>2]!=2){break a}i[a+24>>2]=c;return}g[a+54|0]=1;i[a+24>>2]=2;i[a+36>>2]=i[a+36>>2]+1}}function Z(a,b){a=a|0;b=b|0;var c=0,d=0;i[b>>2]=2;c=i[b+8>>2];d=i[b+12>>2]-c|0;if(d>>>0<=4294967291){b=b+8|0;Qf(b,d+4|0);c=i[b>>2]}b=c+d|0;a=i[a+4>>2];g[b|0]=a;g[b+1|0]=a>>>8;g[b+2|0]=a>>>16;g[b+3|0]=a>>>24}function Wf(a){var b=0,c=0,d=0,e=0,f=0,h=0;g[a+36|0]=0;d=i[a+20>>2];e=a;f=a;h=i[a+16>>2];a=i[a+32>>2]+7|0;if(a>>>0<7){b=1}c=b>>>3|0;a=b<<29|a>>>3;b=h+a|0;c=c+d|0;i[f+16>>2]=b;i[e+20>>2]=b>>>0>>0?c+1|0:c}function vc(a){a=a|0;var b=0;i[a>>2]=4396;b=i[a+96>>2];if(b){Zk(b)}b=i[a+84>>2];if(b){Zk(b)}b=i[a+72>>2];if(b){Zk(b)}b=i[a+60>>2];if(b){Zk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}return a|0}function Sb(a){a=a|0;var b=0;i[a>>2]=2832;b=i[a+96>>2];if(b){Zk(b)}b=i[a+84>>2];if(b){Zk(b)}b=i[a+72>>2];if(b){Zk(b)}b=i[a+60>>2];if(b){Zk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}return a|0}function uk(a,b,c){var d=0,e=0,f=0,h=0;e=H-16|0;H=e;d=bk(a);a:{if(d>>>0>=c>>>0){f=dk(a);h=f;d=c;if(c){bl(h,b,d)}g[e+15|0]=0;fk(c+f|0,e+15|0);mk(a,c);break a}f=a;a=ak(a);vk(f,d,c-d|0,a,a,c,b)}H=e+16|0}function wc(a){a=a|0;var b=0;i[a>>2]=4396;b=i[a+96>>2];if(b){Zk(b)}b=i[a+84>>2];if(b){Zk(b)}b=i[a+72>>2];if(b){Zk(b)}b=i[a+60>>2];if(b){Zk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}Zk(a)}function Tb(a){a=a|0;var b=0;i[a>>2]=2832;b=i[a+96>>2];if(b){Zk(b)}b=i[a+84>>2];if(b){Zk(b)}b=i[a+72>>2];if(b){Zk(b)}b=i[a+60>>2];if(b){Zk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}Zk(a)}function xk(a,b){var c=0,d=0,e=0,f=0;e=H-16|0;H=e;if(b){d=bk(a);c=ak(a);f=c+b|0;if(d-c>>>0>>0){zk(a,d,f-d|0,c,c)}d=c;c=dk(a);d=d+c|0;if(b){al(d,0,b)}mk(a,f);g[e+15|0]=0;fk(c+f|0,e+15|0)}H=e+16|0}function yj(a,b,c){var d=0,e=0;d=a+4|0;a=_f(a,b);if((d|0)==(a|0)){return 0}b=i[a+32>>2];d=i[a+28>>2];if((b|0)!=(d|0)){wk(c,b-d|0);e=Ak(c);c=i[a+28>>2];$k(e,c,i[a+32>>2]-c|0)}return(b|0)!=(d|0)}function Kf(a,b){var c=0,d=0;a:{if((b|0)<0){break a}c=i[a+4>>2];if(i[c+12>>2]-i[c+8>>2]>>2<=(b|0)){break a}a=i[i[a+8>>2]+(i[i[a+20>>2]+(b<<2)>>2]<<2)>>2];d=K[i[i[a>>2]+32>>2]](a,b)|0}return d}function Ea(a){Aa(a);i[a+64>>2]=0;i[a+68>>2]=0;i[a+88>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;g[a+77|0]=0;g[a+78|0]=0;g[a+79|0]=0;g[a+80|0]=0;g[a+81|0]=0;g[a+82|0]=0;g[a+83|0]=0;g[a+84|0]=0;return a}function Da(a,b,c,d){var e=0;i[a>>2]=b;e=i[b+20>>2];i[a+8>>2]=i[b+16>>2];i[a+12>>2]=e;e=i[b+24>>2];b=i[b+28>>2];i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=c;i[a+44>>2]=d;i[a+16>>2]=e;i[a+20>>2]=b}function og(a,b,c,d){var e=0,f=0;e=H+ -64|0;H=e;f=Rf(e+8|0);Sf(f,b,c);od(e+48|0,a,f,d);i[a+24>>2]=i[e+48>>2];tk(a+28|0,e+48|4);a=a+24|0;if(g[e+63|0]<=-1){Zk(i[e+52>>2])}H=e- -64|0;return a}function Aa(a){i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+28>>2]=9;g[a+24|0]=1;i[a+56>>2]=-1;i[a+60>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;return a}function _j(a,b){var c=0,d=0;c=j[a|0];d=j[b|0];a:{if(!c|(c|0)!=(d|0)){break a}while(1){d=j[b+1|0];c=j[a+1|0];if(!c){break a}b=b+1|0;a=a+1|0;if((c|0)==(d|0)){continue}break}}return c-d|0}function Gj(a,b){var c=0,d=0;c=i[a+8>>2];a=i[a+12>>2];if((c|0)!=(a|0)){d=a-c>>2;a=0;while(1){if(i[i[(a<<2)+c>>2]+60>>2]==(b|0)){return a}a=a+1|0;if(a>>>0>>0){continue}break}}return-1}function ej(a,b){a=a|0;b=b|0;var c=0,d=0;Kj(a,b);a:{if((b|0)<0){break a}c=i[a+88>>2];d=i[a+84>>2];if(c-d>>2<=(b|0)){break a}b=d+(b<<2)|0;d=b+4|0;c=c-d|0;if(c){bl(b,d,c)}i[a+88>>2]=b+c}}function _k(a){var b=0,c=0;b=i[3154];c=a+3&-4;a=b+c|0;a:{if(a>>>0<=b>>>0?(c|0)>=1:0){break a}if(a>>>0>ul()<<16>>>0){if(!(F(a|0)|0)){break a}}i[3154]=a;return b}i[3155]=48;return-1}function Lf(a,b){var c=0;if(b){Lf(a,i[b>>2]);Lf(a,i[b+4>>2]);c=b+28|0;a=i[c>>2];i[c>>2]=0;if(a){Lf(a+12|0,i[a+16>>2]);Mf(a,i[a+4>>2]);Zk(a)}if(g[b+27|0]<=-1){Zk(i[b+16>>2])}Zk(b)}}function Uf(a,b,c){var d=0;a:{if(b){b=0;if(!Vf(1,c,a)){break a}}g[a+36|0]=1;i[a+32>>2]=0;b=i[a+16>>2];c=b+i[a>>2]|0;i[a+24>>2]=c;d=a;a=i[a+8>>2];i[d+28>>2]=c+(a-b|0);b=1}return b}function vj(a,b,c){var d=0;a:{d=a+4|0;a=_f(a,b);if((d|0)==(a|0)){break a}b=i[a+32>>2];a=i[a+28>>2];if((b-a|0)!=4){break a}i[c>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24)}}function tb(a,b){a=a|0;b=b|0;var c=0,d=0;d=i[a+16>>2];c=0;a:{if(i[a+20>>2]-d>>2<=(b|0)){break a}b=i[(b<<2)+d>>2];c=0;if((b|0)<0){break a}c=db(i[i[a+36>>2]+(b<<2)>>2])}return c|0}function rk(a,b){var c=0,d=0,e=0;d=H-16|0;H=d;c=a;a:{if(!ck(b)){i[c+8>>2]=i[b+8>>2];e=i[b+4>>2];i[c>>2]=i[b>>2];i[c+4>>2]=e;break a}sk(a,i[b>>2],i[b+4>>2])}H=d+16|0;return a}function mg(a,b,c){var d=0;d=H+ -64|0;H=d;Sf(Rf(d+8|0),b,c);pd(d+48|0);i[a+24>>2]=i[d+48>>2];tk(a+28|0,d+48|4);a=a+24|0;if(g[d+63|0]<=-1){Zk(i[d+52>>2])}H=d- -64|0;return a}function mf(a){a=a|0;var b=0;i[a+8>>2]=8680;i[a>>2]=9812;b=i[a+56>>2];if(b){i[a+60>>2]=b;Zk(b)}i[a+8>>2]=8932;b=i[a+44>>2];if(b){Zk(b)}b=i[a+32>>2];if(b){Zk(b)}return a|0}function ff(a){a=a|0;var b=0;i[a+8>>2]=9684;i[a>>2]=9520;b=i[a+56>>2];if(b){i[a+60>>2]=b;Zk(b)}i[a+8>>2]=9500;b=i[a+44>>2];if(b){Zk(b)}b=i[a+32>>2];if(b){Zk(b)}return a|0}function bb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=i[a+8>>2];if(g[d+24|0]<1){break a}if(!Ga(d,i[b+4>>2]-i[b>>2]>>2)){break a}return K[i[i[a>>2]+32>>2]](a,b,c)|0}return 0}function Nj(a,b,c){var d=0,e=0,f=0;a:{if(!c){break a}while(1){d=j[a|0];e=j[b|0];if((d|0)==(e|0)){b=b+1|0;a=a+1|0;c=c+ -1|0;if(c){continue}break a}break}f=d-e|0}return f}function Bk(a){var b=0,c=0,d=0,e=0;b=H-32|0;H=b;c=b+8|0;d=b+32|0;e=b+21|0;a:{if((d|0)==(e|0)){break a}}Ck(c,e,d);c=H-16|0;H=c;nk(a,b+21|0,i[b+8>>2]);H=c+16|0;H=b+32|0}function nf(a){a=a|0;var b=0;i[a+8>>2]=8680;i[a>>2]=9812;b=i[a+56>>2];if(b){i[a+60>>2]=b;Zk(b)}i[a+8>>2]=8932;b=i[a+44>>2];if(b){Zk(b)}b=i[a+32>>2];if(b){Zk(b)}Zk(a)}function gf(a){a=a|0;var b=0;i[a+8>>2]=9684;i[a>>2]=9520;b=i[a+56>>2];if(b){i[a+60>>2]=b;Zk(b)}i[a+8>>2]=9500;b=i[a+44>>2];if(b){Zk(b)}b=i[a+32>>2];if(b){Zk(b)}Zk(a)}function ya(a,b){var c=0;c=ok(40);i[c>>2]=-1;Of(c+8|0);K[i[i[a>>2]+16>>2]](a,c);a=i[b+88>>2];i[b+88>>2]=c;if(a){b=i[a+8>>2];if(b){i[a+12>>2]=b;Zk(b)}Zk(a)}return 1}function Y(a,b){a=a|0;b=b|0;var c=0;b=i[b+88>>2];if(!(!b|i[b>>2]!=2)){c=a;a=i[b+8>>2];i[c+4>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24);c=1}return c|0}function Db(a){a=a|0;var b=0;i[a>>2]=1952;b=i[a+20>>2];i[a+20>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}i[a>>2]=1572;b=i[a+16>>2];i[a+16>>2]=0;if(b){Oa(b)}return a|0}function mc(a){a=a|0;a:{if(!i[a- -64>>2]|!i[a+68>>2]|(!i[a+44>>2]|!i[a+48>>2])){break a}if(!i[a+52>>2]|!i[a+56>>2]){break a}return i[a+92>>2]!=-1|0}return 0}function Sa(a,b){a=a|0;b=b|0;a:{if(!(K[i[i[a>>2]+36>>2]](a,b)|0)){break a}if(!(K[i[i[a>>2]+40>>2]](a,b)|0)){break a}return K[i[i[a>>2]+44>>2]](a)|0}return 0}function Df(a){i[a+40>>2]=0;i[a>>2]=10228;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;h[a+36>>1]=0}function yk(a,b){var c=0,d=0;c=H-16|0;H=c;a:{if(ck(a)){d=i[a>>2];g[c+15|0]=0;fk(b+d|0,c+15|0);gk(a,b);break a}g[c+14|0]=0;fk(a+b|0,c+14|0);hk(a,b)}H=c+16|0}function jb(a,b){var c=0;Ja(a);i[a+36>>2]=0;i[a+40>>2]=0;i[a>>2]=1736;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;c=i[b>>2];i[b>>2]=0;i[a+60>>2]=c}function Qc(a){a=a|0;a:{if(!i[a+48>>2]|!i[a+52>>2]|(!i[a+28>>2]|!i[a+32>>2])){break a}if(!i[a+36>>2]|!i[a+40>>2]){break a}return i[a+76>>2]!=-1|0}return 0}function oe(a){a=a|0;var b=0;i[a>>2]=8680;b=i[a+48>>2];if(b){i[a+52>>2]=b;Zk(b)}i[a>>2]=8932;b=i[a+36>>2];if(b){Zk(b)}b=i[a+24>>2];if(b){Zk(b)}return a|0}function ef(a){a=a|0;var b=0;i[a>>2]=9684;b=i[a+48>>2];if(b){i[a+52>>2]=b;Zk(b)}i[a>>2]=9500;b=i[a+36>>2];if(b){Zk(b)}b=i[a+24>>2];if(b){Zk(b)}return a|0}function Eb(a){a=a|0;var b=0;i[a>>2]=1952;b=i[a+20>>2];i[a+20>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}i[a>>2]=1572;b=i[a+16>>2];i[a+16>>2]=0;if(b){Oa(b)}Zk(a)}function $f(a,b){var c=0;b=_f(a,b);a:{if((b|0)==(a+4|0)){break a}a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}a=Qj(a);if((a|0)==-1){break a}c=(a|0)!=0}return c}function lf(a){a=a|0;var b=0;i[a>>2]=9684;b=i[a+48>>2];if(b){i[a+52>>2]=b;Zk(b)}i[a>>2]=9500;b=i[a+36>>2];if(b){Zk(b)}b=i[a+24>>2];if(b){Zk(b)}Zk(a)}function Pe(a){a=a|0;var b=0;i[a>>2]=8680;b=i[a+48>>2];if(b){i[a+52>>2]=b;Zk(b)}i[a>>2]=8932;b=i[a+36>>2];if(b){Zk(b)}b=i[a+24>>2];if(b){Zk(b)}Zk(a)}function Ck(a,b,c){var d=0,e=0;e=a;d=c-b|0;a:{if(!((1-(l[3032]>1)|0)>(d|0)?(d|0)<=9:0)){g[b|0]=49;i[a>>2]=b+1;a=0;break a}i[a>>2]=c;a=61}i[e+4>>2]=a}function rj(a,b){var c=0,d=0;a:{d=i[b>>2];if(!d){break a}c=i[a+28>>2];if(c>>>0>2]){i[b>>2]=0;i[c>>2]=d;i[a+28>>2]=c+4;break a}sj(a+24|0,b)}}function Wk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(Mk(a,i[b+8>>2],f)){Sk(b,c,d,e);return}a=i[a+8>>2];K[i[i[a>>2]+20>>2]](a,b,c,d,e,f)}function ng(a,b,c){var d=0;d=H-16|0;H=d;od(d,a,b,c);i[a+24>>2]=i[d>>2];tk(a+28|0,d|4);a=a+24|0;if(g[d+15|0]<=-1){Zk(i[d+4>>2])}H=d+16|0;return a}function bd(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(j[i[a+4>>2]+36|0]>=2){b=0;if(!(K[i[i[a>>2]+52>>2]](a)|0)){break a}}b=ya(a+24|0,i[a+16>>2])}return b|0}function Nf(a,b,c){var d=0,e=0,f=0;if((b|0)>0){while(1){e=d<<2;f=i[e+a>>2];i[c+e>>2]=0-(f&1)^f>>>1;d=d+1|0;if((d|0)!=(b|0)){continue}break}}}function Ej(a){var b=0,c=0;b=i[a+20>>2];a:{if((i[a+24>>2]-b|0)<1){break a}b=i[b>>2];if((b|0)==-1){break a}c=i[i[a+8>>2]+(b<<2)>>2]}return c}function Dj(a,b){var c=0;c=-1;a:{if((b|0)==-1|(b|0)>4){break a}b=o(b,12)+a|0;a=i[b+20>>2];if((i[b+24>>2]-a|0)<1){break a}c=i[a>>2]}return c}function Ba(a,b,c,d,e,f,h){i[a>>2]=0;i[a+56>>2]=b;i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=f;i[a+44>>2]=h;g[a+32|0]=e;i[a+28>>2]=d;g[a+24|0]=c}function id(a){i[a>>2]=0;i[a+4>>2]=0;g[a+5|0]=0;g[a+6|0]=0;g[a+7|0]=0;g[a+8|0]=0;g[a+9|0]=0;g[a+10|0]=0;g[a+11|0]=0;g[a+12|0]=0;return a}function Kc(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(j[i[a+4>>2]+36|0]>=2){b=0;if(!ea(a+24|0,db(a),c)){break a}}b=ya(a+24|0,i[a+16>>2])}return b|0}function $i(a){a=a|0;var b=0;i[a>>2]=10908;b=i[a+96>>2];if(b){i[a+100>>2]=b;Zk(b)}b=i[a+84>>2];if(b){i[a+88>>2]=b;Zk(b)}aj(a);return a|0}function lg(a){var b=0;b=H-16|0;H=b;pd(b);i[a+24>>2]=i[b>>2];tk(a+28|0,b|4);a=a+24|0;if(g[b+15|0]<=-1){Zk(i[b+4>>2])}H=b+16|0;return a}function jg(a){var b=0;Yf(a);b=a+16|0;i[b>>2]=0;i[b+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+12>>2]=b;i[a+32>>2]=0;i[a+36>>2]=0;return a}function bj(a){a=a|0;var b=0;i[a>>2]=10908;b=i[a+96>>2];if(b){i[a+100>>2]=b;Zk(b)}b=i[a+84>>2];if(b){i[a+88>>2]=b;Zk(b)}aj(a);Zk(a)}function Ic(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(!vb(a,b,c)){break a}a=i[a+8>>2];if(j[a+24|0]!=3){break a}return i[a+28>>2]==9|0}return 0}function Mf(a,b){if(b){Mf(a,i[b>>2]);Mf(a,i[b+4>>2]);a=i[b+28>>2];if(a){i[b+32>>2]=a;Zk(a)}if(g[b+27|0]<=-1){Zk(i[b+16>>2])}Zk(b)}}function Ja(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=1360;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0}function yc(a){a=a|0;var b=0;i[a>>2]=4632;b=i[a+76>>2];if(b){Zk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}return a|0}function ac(a){a=a|0;var b=0;i[a>>2]=3080;b=i[a+76>>2];if(b){Zk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}return a|0}function Mh(){var a=0;a=ok(28);i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;return a|0}function pk(a,b){var c=0,d=0,e=0,f=0;c=cl(b);d=ok(c+13|0);i[d+8>>2]=0;i[d+4>>2]=c;i[d>>2]=c;e=a,f=$k(d+12|0,b,c+1|0),i[e>>2]=f}function Qa(a){a=a|0;var b=0;i[a>>2]=1360;b=i[a+16>>2];if(b){i[a+20>>2]=b;Zk(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;Zk(b)}return a|0}function ud(a,b){if(b){ud(a,i[b>>2]);ud(a,i[b+4>>2]);if(g[b+39|0]<=-1){Zk(i[b+28>>2])}if(g[b+27|0]<=-1){Zk(i[b+16>>2])}Zk(b)}}function Rk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(Mk(a,i[b+8>>2],0)){Pk(b,c,d);return}a=i[a+8>>2];K[i[i[a>>2]+28>>2]](a,b,c,d)}function zc(a){a=a|0;var b=0;i[a>>2]=4632;b=i[a+76>>2];if(b){Zk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}Zk(a)}function bc(a){a=a|0;var b=0;i[a>>2]=3080;b=i[a+76>>2];if(b){Zk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}Zk(a)}function _i(a){Cj(a);i[a+84>>2]=0;i[a+88>>2]=0;i[a>>2]=10908;i[a+92>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;i[a+104>>2]=0;return a}function ok(a){var b=0;a=a?a:1;a:{while(1){b=Yk(a);if(b){break a}b=i[3157];if(b){K[b|0]();continue}break}C();x()}return b}function wh(){var a=0;a=ok(24);i[a+4>>2]=0;i[a+8>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a>>2]=a+4;i[a+12>>2]=a+16;return a|0}function na(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(i[c>>2]==i[c+4>>2]){oa(a,b,i[d+80>>2],d);return 1}pa(a,b,c,d);return 1}function mh(){var a=0;a=ok(24);i[a+8>>2]=0;i[a+12>>2]=0;i[a+4>>2]=-1;i[a>>2]=1140;i[a+16>>2]=0;i[a+20>>2]=0;return a|0}function ad(a,b,c){a=a|0;b=b|0;c=c|0;if(vb(a,b,c)){a=i[i[i[i[b+4>>2]+8>>2]+(c<<2)>>2]+28>>2]==9}else{a=0}return a|0}function $c(a){ub(a);i[a+32>>2]=0;i[a+36>>2]=0;i[a+28>>2]=-1;i[a+24>>2]=1140;i[a>>2]=7764;i[a+40>>2]=0;i[a+44>>2]=0}function $a(a,b,c){a=a|0;b=b|0;c=c|0;i[a+4>>2]=b;b=i[i[i[b+4>>2]+8>>2]+(c<<2)>>2];i[a+12>>2]=c;i[a+8>>2]=b;return 1}function dc(a){a=a|0;var b=0;if(!(!i[a+60>>2]|!i[a+44>>2]|(!i[a+48>>2]|!i[a+52>>2]))){b=i[a+56>>2]!=0}return b|0}function kg(a){var b=0;b=H-32|0;H=b;nd(b+8|0,a);a=i[b+24>>2];if(g[b+23|0]<=-1){Zk(i[b+12>>2])}H=b+32|0;return a}function Mk(a,b,c){if(!c){return i[a+4>>2]==i[b+4>>2]}if((a|0)==(b|0)){return 1}return!_j(i[a+4>>2],i[b+4>>2])}function Ik(a){var b=0,c=0;a:{b=i[a>>2]+ -12|0;c=b+8|0;a=i[c>>2]+ -1|0;i[c>>2]=a;if((a|0)>-1){break a}Zk(b)}}function xa(a){var b=0;b=A(8)|0;i[b>>2]=12228;i[b>>2]=12272;pk(b+4|0,a);i[b>>2]=12320;B(b|0,12352,13);x()}function ui(a){a=a|0;if(a){if(g[a+39|0]<=-1){Zk(i[a+28>>2])}vi(a+12|0,i[a+16>>2]);ud(a,i[a+4>>2]);Zk(a)}}function dd(a){a=a|0;var b=0,c=0;c=a+24|0;b=db(a);if(!b){b=i[a+8>>2]}return sa(c,b,i[i[a+4>>2]+32>>2])|0}function jc(a){a=a|0;var b=0;i[a>>2]=3316;i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}return a|0}function Cc(a){a=a|0;var b=0;i[a>>2]=4856;i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}return a|0}function cf(a){a=a|0;var b=0;i[a>>2]=9500;b=i[a+36>>2];if(b){Zk(b)}b=i[a+24>>2];if(b){Zk(b)}return a|0}function Qe(a){a=a|0;var b=0;i[a>>2]=8932;b=i[a+36>>2];if(b){Zk(b)}b=i[a+24>>2];if(b){Zk(b)}return a|0}function Of(a){i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0}function Nb(a){a=a|0;var b=0;if(!(!i[a+52>>2]|(!i[a+44>>2]|!i[a+48>>2]))){b=i[a+56>>2]!=0}return b|0}function Xk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(Mk(a,i[b+8>>2],f)){Sk(b,c,d,e)}} +function cg(a,b,c){var d=0,e=0,f=0,h=0;d=F-32|0;F=d;e=$k(b);if(e>>>0<4294967280){a:{b:{if(e>>>0>=11){h=e+16&-16;f=lk(h);i[d+24>>2]=h|-2147483648;i[d+16>>2]=f;i[d+20>>2]=e;break b}g[d+27|0]=e;f=d+16|0;if(!e){break a}}Yk(f,b,e)}g[e+f|0]=0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;uj(a,d+16|0,d);a=i[c>>2];if(a){i[c+4>>2]=a;Wk(a)}i[c>>2]=i[d>>2];i[c+4>>2]=i[d+4>>2];i[c+8>>2]=i[d+8>>2];if(g[d+27|0]<=-1){Wk(i[d+16>>2])}F=d+32|0;return}nk();x()}function pa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=F-16|0;F=d;e=i[a+4>>2];a:{if((e|0)==-1){break a}c=i[b+20>>2];if((c|0)>0?1:(c|0)>=0?l[b+16>>2]>0:0){break a}ba(b,i[b+4>>2],i[a+8>>2],i[a+12>>2]);c=i[b+20>>2];if((c|0)>0?1:(c|0)>=0?l[b+16>>2]>=1:0){break a}c=a+20|0;ba(b,i[b+4>>2],c,c+4|0);c=i[b+20>>2];f=i[b+16>>2];g[d+15|0]=i[a+4>>2];if((c|0)>0?1:(c|0)>=0?f>>>0>0:0){break a}ba(b,i[b+4>>2],d+15|0,d+16|0)}F=d+16|0;return(e|0)!=-1|0}function Vi(a,b){var c=0,d=0,e=0,f=0,g=0;c=i[a+4>>2];if((c|0)!=i[a+8>>2]){i[c>>2]=i[b>>2];i[a+4>>2]=c+4;return}a:{f=i[a>>2];g=c-f|0;e=g>>2;d=e+1|0;if(d>>>0<1073741824){c=g>>1;d=e>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=lk(d<<2)}e=c+(e<<2)|0;i[e>>2]=i[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){Yk(c,f,g)}i[a+8>>2]=b;i[a+4>>2]=d;i[a>>2]=c;if(f){Wk(f)}return}Ak();x()}va(10832);x()}function Fg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>1>>>0>=b>>>0){if(b){b=b<<1;c=Zk(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];g=c-f|0;h=g>>1;d=h+b|0;if((d|0)>-1){c=0;e=e-f|0;d=e>>1>>>0<1073741823?e>>>0>>0?d:e:2147483647;if(d){if((d|0)<=-1){break a}c=lk(d<<1)}b=b<<1;b=Zk((h<<1)+c|0,0,b)+b|0;d=(d<<1)+c|0;if((g|0)>=1){Yk(c,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Wk(f)}return}Ak();x()}va(10656);x()}function _e(a,b){var c=0,d=0,e=0,f=0,g=0;d=i[a+4>>2];a=i[d+4>>2];if((a|0)!=i[d+8>>2]){i[a>>2]=b;i[d+4>>2]=a+4;return}a:{f=i[d>>2];g=a-f|0;e=g>>2;c=e+1|0;if(c>>>0<1073741824){a=g>>1;c=e>>>0<536870911?a>>>0>>0?c:a:1073741823;a=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}a=lk(c<<2)}e=a+(e<<2)|0;i[e>>2]=b;b=a+(c<<2)|0;c=e+4|0;if((g|0)>=1){Yk(a,f,g)}i[d+8>>2]=b;i[d+4>>2]=c;i[d>>2]=a;if(f){Wk(f)}return}Ak();x()}va(8944);x()}function Aa(a,b){var c=0;g[a+24|0]=j[b+24|0];i[a+28>>2]=i[b+28>>2];g[a+32|0]=j[b+32|0];c=i[b+44>>2];i[a+40>>2]=i[b+40>>2];i[a+44>>2]=c;c=i[b+52>>2];i[a+48>>2]=i[b+48>>2];i[a+52>>2]=c;i[a+56>>2]=i[b+56>>2];c=i[b+12>>2];i[a+8>>2]=i[b+8>>2];i[a+12>>2]=c;c=i[b+20>>2];i[a+16>>2]=i[b+16>>2];i[a+20>>2]=c;i[a+60>>2]=i[b+60>>2];b=i[b>>2];if(!b){i[a>>2]=0;return 1}a=i[a>>2];if(!a){return 0}c=a;a=i[b>>2];Nf(c,a,i[b+4>>2]-a|0,0);return 1}function Ui(a,b,c){var d=0,e=0,f=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;a:{b:{if(!b){break b}if((b|0)<=-1){break a}e=b+ -1>>>5|0;f=e+1|0;d=lk(f<<2);i[a+8>>2]=f;i[a>>2]=d;f=j[c|0];i[a+4>>2]=b;i[(b>>>0<33?d:d+(e<<2)|0)>>2]=0;c=b>>>5|0;e=c<<2;if(f){d=Zk(d,255,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;i[c>>2]=i[c>>2]|-1>>>32-b;return a}d=Zk(d,0,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;i[c>>2]=i[c>>2]&(-1>>>32-b^-1)}return a}Ak();x()}function Ni(a,b){var c=0,d=0,e=0;d=F-16|0;F=d;e=lk(88);c=e;i[c>>2]=0;i[c+4>>2]=0;i[c+64>>2]=0;i[c+68>>2]=0;i[c+56>>2]=0;i[c+48>>2]=0;i[c+52>>2]=0;i[c+40>>2]=0;i[c+44>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+72>>2]=0;i[c+76>>2]=0;i[c+80>>2]=0;i[c+84>>2]=0;i[c+60>>2]=c;a:{if(Oi(c,b)){i[a>>2]=e;break a}i[a>>2]=0;i[d+8>>2]=0;pe(d+8|0,e)}F=d+16|0}function qf(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Pj(b)}d=i[a+4>>2];if(c>>>0>d>>>0){rf(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(kl(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Pj(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}rf(a,b)}}function Xf(a,b){var c=0,d=0,e=0,f=0;d=F-16|0;F=d;yk(d);e=ud(a,d+12|0,b);c=i[e>>2];if(!c){c=lk(40);ok(c+16|0,b);i[c+36>>2]=0;i[c+28>>2]=0;i[c+32>>2]=0;i[c+8>>2]=i[d+12>>2];i[c>>2]=0;i[c+4>>2]=0;i[e>>2]=c;b=i[i[a>>2]>>2];f=c;a:{if(!b){break a}i[a>>2]=b;f=i[e>>2]}b=f;rd(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}a=c+28|0;if(g[c+39|0]<=-1){Wk(i[a>>2])}b=i[d+4>>2];i[a>>2]=i[d>>2];i[a+4>>2]=b;i[a+8>>2]=i[d+8>>2];F=d+16|0}function Tf(a,b,c){var d=0,e=0,f=0,h=0,j=0;a:{if(a>>>0>10){break a}e=i[c+16>>2];f=i[c+12>>2];d=i[c+20>>2];if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]<=e>>>0:0){break a}f=g[e+i[c>>2]|0];e=e+1|0;if(e>>>0<1){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;e=b;h=b;d=f;b:{if((d|0)<=-1){if(!Tf(a+1|0,b,c)){break a}a=i[b+4>>2];b=i[b>>2];a=a<<7|b>>>25;b=d&127|b<<7;break b}a=0;b=d&255}i[h>>2]=b;i[e+4>>2]=a;j=1}return j}function Kd(a,b,c){var d=0,e=0,f=0,h=0,j=0;a:{if(a>>>0>10){break a}e=i[c+16>>2];f=i[c+12>>2];d=i[c+20>>2];if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]<=e>>>0:0){break a}f=g[e+i[c>>2]|0];e=e+1|0;if(e>>>0<1){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;e=b;h=b;d=f;b:{if((d|0)<=-1){if(!Kd(a+1|0,b,c)){break a}a=i[b+4>>2];b=i[b>>2];a=a<<7|b>>>25;b=d&127|b<<7;break b}a=0;b=d&255}i[h>>2]=b;i[e+4>>2]=a;j=1}return j}function we(a,b){var c=0,d=0,e=0,f=0;d=i[a+12>>2];c=i[a+16>>2]-d>>2;a:{if(c>>>0>>0){La(a+12|0,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+16>>2]=d+(b<<2)}b:{c=i[a>>2];c:{if(i[a+8>>2]-c>>2>>>0>=b>>>0){break c}if(b>>>0>=1073741824){break b}d=i[a+4>>2];e=b<<2;b=lk(e);e=b+e|0;d=d-c|0;f=d+b|0;if((d|0)>=1){Yk(b,c,d)}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b;if(!c){break c}Wk(c)}return}va(8944);x()}function Re(a,b){var c=0,d=0,e=0;a:{if((a|0)!=(b|0)){e=a;c=i[b+4>>2];d=0;b:{if(!c){break b}c:{if(c>>>0<=i[a+8>>2]<<5>>>0){d=i[a>>2];break c}d=i[a>>2];if(d){Wk(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;c=i[b+4>>2]}if((c|0)<=-1){break a}c=(c+ -1>>>5|0)+1|0;d=lk(c<<2);i[a+8>>2]=c;i[a+4>>2]=0;i[a>>2]=d;c=i[b+4>>2]}_k(d,i[b>>2],(c+ -1>>>3&536870908)+4|0);d=i[b+4>>2]}i[e+4>>2]=d}return}Ak();x()}function uj(a,b,c){var d=0,e=0,f=0;a:{b=Yf(a,b);b:{if((b|0)==(a+4|0)){break b}a=i[b+28>>2];d=i[b+32>>2];if((a|0)==(d|0)){break b}a=d-a|0;if(a&3){break b}d=a>>>2|0;e=i[c+4>>2];a=i[c>>2];f=e-a>>2;c:{if(d>>>0>f>>>0){La(c,d-f|0);a=i[c>>2];e=i[c+4>>2];break c}if(d>>>0>=f>>>0){break c}e=(d<<2)+a|0;i[c+4>>2]=e}if((a|0)==(e|0)){break a}c=a;a=i[b+28>>2];Yk(c,a,i[b+32>>2]-a|0)}return}Bk();x()}function ke(a,b){var c=0;c=i[b+8>>2];i[a+12>>2]=i[b+4>>2];i[a+16>>2]=c;i[a+28>>2]=i[b+20>>2];c=i[b+16>>2];i[a+20>>2]=i[b+12>>2];i[a+24>>2]=c;Re(a+32|0,b+24|0);Re(a+44|0,b+36|0);if((a+8|0)==(b|0)){i[a+92>>2]=i[b+84>>2];return}Ga(a+56|0,i[b+48>>2],i[b+52>>2]);Ga(a+68|0,i[b+60>>2],i[b- -64>>2]);Ga(a+80|0,i[b+72>>2],i[b+76>>2]);i[a+92>>2]=i[b+84>>2];Se(a+96|0,i[b+88>>2],i[b+92>>2])}function rj(a,b){var c=0,d=0,e=0;c=i[b+4>>2];a:{if(!c){d=i[b+8>>2];if(i[d>>2]==(b|0)){break a}e=b+8|0;while(1){c=i[e>>2];e=c+8|0;d=i[c+8>>2];if((c|0)!=i[d>>2]){continue}break}break a}while(1){d=c;c=i[c>>2];if(c){continue}break}}if(i[a>>2]==(b|0)){i[a>>2]=d}i[a+8>>2]=i[a+8>>2]+ -1;zj(i[a+4>>2],b);a=i[b+28>>2];if(a){i[b+32>>2]=a;Wk(a)}if(g[b+27|0]<=-1){Wk(i[b+16>>2])}Wk(b)}function Yd(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=8232;b=i[a+48>>2];i[a+48>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=10228;b=i[a+20>>2];if(b){i[a+24>>2]=b;Wk(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;Wk(b)}return a|0}function Zd(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=8232;b=i[a+48>>2];i[a+48>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=10228;b=i[a+20>>2];if(b){i[a+24>>2]=b;Wk(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;Wk(b)}Wk(a)}function dg(a,b){var c=0,d=0,e=0,f=0,h=0;c=F-32|0;F=c;i[c+24>>2]=0;i[c+28>>2]=0;d=$k(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=lk(e);i[c+16>>2]=e|-2147483648;i[c+8>>2]=f;i[c+12>>2]=d;e=c+8|0;break b}g[c+19|0]=d;e=c+8|0;f=e;if(!d){break a}}Yk(f,b,d)}g[d+f|0]=0;vj(a,c+8|0,c+24|0);h=n[c+24>>3];if(g[e+11|0]<=-1){Wk(i[c+8>>2])}F=c+32|0;return h}nk();x()}function sk(a,b,c,d,e,f,h){var j=0,k=0,l=0;j=F-16|0;F=j;if((b^-1)+ -17>>>0>=c>>>0){k=ak(a);a:{if(2147483623>b>>>0){i[j+8>>2]=b<<1;i[j+12>>2]=b+c;c=fk(i[Wj(j+12|0,j+8|0)>>2]);break a}c=-18}l=c+1|0;c=gk(l);if(f){Vj(c,h,f)}d=d-e|0;h=d;if(d){Vj(c+f|0,e+k|0,h)}if((b|0)!=10){Wk(k)}hk(a,c);ik(a,l);b=a;a=d+f|0;dk(b,a);g[j+7|0]=0;ck(a+c|0,j+7|0);F=j+16|0;return}nk();x()}function eg(a,b,c){var d=0,e=0,f=0,h=0;d=F-16|0;F=d;e=$k(c);if(e>>>0<4294967280){a:{b:{if(e>>>0>=11){h=e+16&-16;f=lk(h);i[d+8>>2]=h|-2147483648;i[d>>2]=f;i[d+4>>2]=e;break b}g[d+11|0]=e;f=d;if(!e){break a}}Yk(f,c,e)}g[e+f|0]=0;a=a+16|0;c=0;c:{if(!wj(b,d,a)){break c}c=i[a>>2];if(g[a+11|0]<=-1){break c}c=a}if(g[d+11|0]<=-1){Wk(i[d>>2])}F=d+16|0;return c}nk();x()}function Wa(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>>0>=b>>>0){if(b){c=Zk(c,0,b)+b|0}i[a+4>>2]=c;return}f=i[a>>2];g=c-f|0;d=g+b|0;if((d|0)>-1){c=0;e=e-f|0;h=e<<1;d=e>>>0<1073741823?h>>>0>>0?d:h:2147483647;if(d){c=lk(d)}d=c+d|0;b=Zk(c+g|0,0,b)+b|0;if((g|0)>=1){Yk(c,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){Wk(f)}return}Ak();x()}function Pk(a,b,c,d){g[a+53|0]=1;a:{if(i[a+4>>2]!=(c|0)){break a}g[a+52|0]=1;c=i[a+16>>2];if(!c){i[a+36>>2]=1;i[a+24>>2]=d;i[a+16>>2]=b;if((d|0)!=1|i[a+48>>2]!=1){break a}g[a+54|0]=1;return}if((b|0)==(c|0)){c=i[a+24>>2];if((c|0)==2){i[a+24>>2]=d;c=d}if(i[a+48>>2]!=1|(c|0)!=1){break a}g[a+54|0]=1;return}g[a+54|0]=1;i[a+36>>2]=i[a+36>>2]+1}}function vg(a,b,c){var d=0,e=0,f=0,g=0;a:{if(l[a+80>>2]>65535){break a}f=i[a+96>>2];d=i[a+100>>2]-f|0;a=(d|0)/12|0;e=o(a,6);g=(e|0)==(b|0);if(!d|(b|0)!=(e|0)){break a}g=1;e=a>>>0>1?a:1;a=0;while(1){b=o(a,6)+c|0;d=o(a,12)+f|0;h[b>>1]=i[d>>2];h[b+2>>1]=i[d+4>>2];h[b+4>>1]=i[d+8>>2];a=a+1|0;if((e|0)!=(a|0)){continue}break}}return g}function bg(a,b){var c=0,d=0,e=0,f=0;c=F-16|0;F=c;i[c+12>>2]=0;d=$k(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=lk(e);i[c+8>>2]=e|-2147483648;i[c>>2]=f;i[c+4>>2]=d;e=c;break b}g[c+11|0]=d;e=c;f=c;if(!d){break a}}Yk(f,b,d)}g[d+f|0]=0;tj(a,c,c+12|0);a=i[c+12>>2];if(g[e+11|0]<=-1){Wk(i[c>>2])}F=c+16|0;return a}nk();x()}function le(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=F-16|0;F=d;i[a+4>>2]=b;b=i[b+64>>2];e=i[b>>2];b=i[b+4>>2];g[d+15|0]=0;ie(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=i[a+4>>2];e=i[b+56>>2];b=i[b+52>>2];g[d+14|0]=0;ie(a+36|0,e-b>>2,d+14|0);b=i[c+12>>2];i[a+16>>2]=i[c+8>>2];i[a+20>>2]=b;b=i[c+4>>2];i[a+8>>2]=i[c>>2];i[a+12>>2]=b;F=d+16|0}function db(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=1;a:{if((I[i[i[b>>2]+20>>2]](b)|0)<1){break a}d=0;while(1){c=Bj(i[i[a+4>>2]+4>>2],I[i[i[b>>2]+24>>2]](b,e)|0);if((c|0)==-1){break a}c=If(i[a+4>>2],c);if(!c){break a}if(!(I[i[i[b>>2]+28>>2]](b,c)|0)){break a}e=e+1|0;if((e|0)<(I[i[i[b>>2]+20>>2]](b)|0)){continue}break}d=1}return d|0}function $k(a){var b=0,c=0,d=0;a:{b:{b=a;if(!(b&3)){break b}if(!j[a|0]){return 0}while(1){b=b+1|0;if(!(b&3)){break b}if(j[b|0]){continue}break}break a}while(1){c=b;b=b+4|0;d=i[c>>2];if(!((d^-1)&d+ -16843009&-2139062144)){continue}break}if(!(d&255)){return c-a|0}while(1){d=j[c+1|0];b=c+1|0;c=b;if(d){continue}break}}return b-a|0}function wb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=F-48|0;F=e;a:{if((d|0)!=1){i[a>>2]=0;break a}d=i[b+4>>2];b=i[b+12>>2];i[e+40>>2]=0;f=e+32|0;i[f>>2]=0;i[f+4>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;xb(e,c,b,d,e+8|0);b=i[f>>2];if(b){i[e+36>>2]=b;Wk(b)}i[a>>2]=i[e>>2]}F=e+48|0}function Kk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=F+ -64|0;F=d;e=1;a:{if(Jk(a,b,0)){break a}e=0;if(!b){break a}b=Lk(b);e=0;if(!b){break a}Zk(d+8|4,0,52);i[d+56>>2]=1;i[d+20>>2]=-1;i[d+16>>2]=a;i[d+8>>2]=b;I[i[i[b>>2]+28>>2]](b,d+8|0,i[c>>2],1);a=i[d+32>>2];if((a|0)==1){i[c>>2]=i[d+24>>2]}e=(a|0)==1}a=e;F=d- -64|0;return a|0}function mb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=I[i[i[a>>2]+24>>2]](a)|0;c=1;a:{if((e|0)<1){break a}d=i[i[a+36>>2]>>2];f=a+48|0;c=0;if(!(I[i[i[d>>2]+20>>2]](d,f,b)|0)){break a}d=1;while(1){c=d;if((e|0)!=(c|0)){d=c+1|0;g=i[i[a+36>>2]+(c<<2)>>2];if(I[i[i[g>>2]+20>>2]](g,f,b)|0){continue}}break}c=(c|0)>=(e|0)}return c|0}function lb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=I[i[i[a>>2]+24>>2]](a)|0;c=1;a:{if((e|0)<1){break a}d=i[i[a+36>>2]>>2];f=a+48|0;c=0;if(!(I[i[i[d>>2]+16>>2]](d,f,b)|0)){break a}d=1;while(1){c=d;if((e|0)!=(c|0)){d=c+1|0;g=i[i[a+36>>2]+(c<<2)>>2];if(I[i[i[g>>2]+16>>2]](g,f,b)|0){continue}}break}c=(c|0)>=(e|0)}return c|0}function zb(a,b,c){var d=0,e=0,f=0,h=0;d=F-80|0;F=d;e=ya(d+16|0);f=i[i[a+8>>2]+56>>2];h=c<<24>>24;c=o(Vf(5),c);za(e,f,h,5,0,c,c>>31);c=lk(96);e=Da(c,e);i[d+8>>2]=c;g[c+84|0]=1;i[c+72>>2]=i[c+68>>2];Ea(e,b);i[d+8>>2]=0;b=i[a+16>>2];i[a+16>>2]=c;a:{if(!b){break a}Ma(b);a=i[d+8>>2];i[d+8>>2]=0;if(!a){break a}Ma(a)}F=d+80|0}function vd(a,b,c,d){var e=0,f=0,g=0,h=0;if(!a){return 1}e=i[c+16>>2];g=i[c+12>>2];f=i[c+20>>2];a:{if((g|0)<(f|0)?1:(g|0)<=(f|0)?l[c+8>>2]<=e>>>0:0){break a}g=j[e+i[c>>2]|0];e=e+1|0;if(e>>>0<1){f=f+1|0}i[c+16>>2]=e;i[c+20>>2]=f;b:{switch(g|0){case 0:return wd(a,b,c,d);case 1:break b;default:break a}}h=xd(a,c,d)}return h}function dj(a){i[a>>2]=0;i[a+4>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;g[a+24|0]=1;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+88>>2]=0;i[a+92>>2]=0;i[a+68>>2]=a}function Sk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(Jk(a,i[b+8>>2],e)){Qk(b,c,d);return}a:{if(!Jk(a,i[b>>2],e)){break a}if(!(i[b+20>>2]!=(c|0)?i[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}i[b+32>>2]=1;return}i[b+20>>2]=c;i[b+32>>2]=d;i[b+40>>2]=i[b+40>>2]+1;if(!(i[b+36>>2]!=1|i[b+24>>2]!=2)){g[b+54|0]=1}i[b+44>>2]=4}}function Oj(a){var b=0,c=0,d=0,e=0,f=0;while(1){b=a;a=b+1|0;c=g[b|0];if((c|0)==32|c+ -9>>>0<5){continue}break}a:{b:{c:{c=g[b|0];switch(c+ -43|0){case 0:break b;case 2:break c;default:break a}}e=1}c=g[a|0];b=a;f=e}if(Nj(c)){while(1){d=(o(d,10)-g[b|0]|0)+48|0;a=g[b+1|0];b=b+1|0;if(Nj(a)){continue}break}}return f?d:0-d|0}function sg(a,b){var c=0,d=0,e=0,f=0;c=F-16|0;F=c;i[a+68>>2]=0;i[a+72>>2]=0;i[a>>2]=b;hj(c+8|0,b);d=i[c+8>>2];i[c+8>>2]=0;e=i[a+4>>2];i[a+4>>2]=d;if(e){f=a+4|0;pe(f,e);d=i[c+8>>2];i[c+8>>2]=0;if(d){pe(c+8|0,d)}d=i[f>>2]}if(d){e=i[b+100>>2];b=i[b+96>>2];g[c+7|0]=0;ie(a+56|0,(e-b|0)/12|0,c+7|0)}F=c+16|0;return(d|0)!=0}function Qe(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=F-16|0;F=d;i[a+4>>2]=b;e=i[b>>2];b=i[b+4>>2];g[d+15|0]=0;ie(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=i[a+4>>2];e=i[b+28>>2];b=i[b+24>>2];g[d+14|0]=0;ie(a+36|0,e-b>>2,d+14|0);b=i[c+12>>2];i[a+16>>2]=i[c+8>>2];i[a+20>>2]=b;b=i[c+4>>2];i[a+8>>2]=i[c>>2];i[a+12>>2]=b;F=d+16|0}function tf(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!tf(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function oe(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!oe(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function lj(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!lj(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function id(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!id(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function Ub(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Ub(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function Ka(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Ka(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function Id(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>5){break a}f=i[c+16>>2];d=i[c+12>>2];e=i[c+20>>2];if((d|0)<(e|0)?1:(d|0)<=(e|0)?l[c+8>>2]<=f>>>0:0){break a}d=j[f+i[c>>2]|0];f=f+1|0;if(f>>>0<1){e=e+1|0}i[c+16>>2]=f;i[c+20>>2]=e;e=b;if(d&128){if(!Id(a+1|0,b,c)){break a}d=d&127|i[b>>2]<<7}i[e>>2]=d;g=1}return g}function Mi(a){var b=0;i[a>>2]=0;i[a+4>>2]=0;i[a+56>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+32>>2]=0;i[a+36>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;b=a- -64|0;i[b>>2]=0;i[b+4>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+60>>2]=a}function Ef(a){var b=0,c=0,d=0,e=0;if(a){d=i[a+24>>2];if(d){b=d;c=i[a+28>>2];e=b;a:{if((c|0)==(b|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){Jf(b+12|0,i[b+16>>2]);Kf(b,i[b+4>>2]);Wk(b)}if((c|0)!=(d|0)){continue}break}e=i[a+24>>2]}b=e;i[a+28>>2]=d;Wk(b)}Jf(a+12|0,i[a+16>>2]);Kf(a,i[a+4>>2]);Wk(a)}}function ag(a,b){var c=0,d=0,e=0,f=0;c=F-16|0;F=c;d=$k(b);if(d>>>0<4294967280){a:{b:{if(d>>>0>=11){e=d+16&-16;f=lk(e);i[c+8>>2]=e|-2147483648;i[c>>2]=f;i[c+4>>2]=d;e=c;break b}g[c+11|0]=d;e=c;f=c;if(!d){break a}}Yk(f,b,d)}g[d+f|0]=0;a=Xa(a,c);if(g[e+11|0]<=-1){Wk(i[c>>2])}F=c+16|0;return(a|0)!=0}nk();x()}function aj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=F-16|0;F=d;e=i[c>>2];i[c>>2]=0;i[d+8>>2]=e;Gj(a,b,d+8|0);c=i[d+8>>2];i[d+8>>2]=0;if(c){Ma(c)}e=i[a+84>>2];c=i[a+88>>2]-e>>2;a:{if((c|0)>(b|0)){break a}b=b+1|0;if(b>>>0>c>>>0){bj(a+84|0,b-c|0);break a}if(b>>>0>=c>>>0){break a}i[a+88>>2]=e+(b<<2)}F=d+16|0}function Td(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=10228;b=i[a+20>>2];if(b){i[a+24>>2]=b;Wk(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;Wk(b)}return a|0}function wk(a,b,c,d,e){var f=0,g=0,h=0;f=F-16|0;F=f;if(-17-b>>>0>=c>>>0){g=ak(a);a:{if(2147483623>b>>>0){i[f+8>>2]=b<<1;i[f+12>>2]=b+c;c=fk(i[Wj(f+12|0,f+8|0)>>2]);break a}c=-18}h=c+1|0;c=gk(h);if(e){Vj(c,g,e)}d=d-e|0;if(d){Vj(c+e|0,e+g|0,d)}if((b|0)!=10){Wk(g)}hk(a,c);ik(a,h);F=f+16|0;return}nk();x()}function ca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;h=i[c+8>>2];f=i[c+16>>2];g=i[c+12>>2];d=g;e=i[c+20>>2];if((d|0)>(e|0)?1:(d|0)>=(e|0)?h>>>0>f>>>0:0){b=j[f+i[c>>2]|0];d=e;k=f+1|0;if(k>>>0<1){d=d+1|0}i[c+16>>2]=k;i[c+20>>2]=d;i[a+4>>2]=b}return((g|0)>(e|0)?1:(g|0)>=(e|0)?h>>>0>f>>>0:0)|0}function xf(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=10228;b=i[a+20>>2];if(b){i[a+24>>2]=b;Wk(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;Wk(b)}Wk(a)}function xa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,h=0,j=0;e=F+ -64|0;F=e;f=I[i[i[b>>2]+44>>2]](b,c)|0;b=I[i[i[b>>2]+40>>2]](b,c)|0;h=ya(e);j=i[c+56>>2];c=b;b=o(Vf(b),f);za(h,j,f<<24>>24,c,0,b,b>>31);b=lk(96);c=Da(b,h);i[a>>2]=b;Ea(c,d);g[b+84|0]=1;i[b+72>>2]=i[b+68>>2];F=e- -64|0}function Ue(a){a=a|0;var b=0;i[a+8>>2]=9264;i[a>>2]=9052;b=i[a+96>>2];if(b){i[a+100>>2]=b;Wk(b)}b=i[a+80>>2];if(b){i[a+84>>2]=b;Wk(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;Wk(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;Wk(b)}i[a+8>>2]=9500;b=i[a+44>>2];if(b){Wk(b)}b=i[a+32>>2];if(b){Wk(b)}return a|0}function Ea(a,b){var c=0,d=0,e=0;a:{if(i[a+64>>2]){break a}d=lk(32);Mf(d);c=i[a+64>>2];i[a+64>>2]=d;if(!c){break a}d=i[c>>2];if(d){i[c+4>>2]=d;Wk(d)}Wk(c)}c=Vf(i[a+28>>2]);c=o(c,g[a+24|0]);d=c;c=c>>31;e=Nf(i[a+64>>2],0,hl(d,c,b,0),H);if(e){Ba(a,i[a+64>>2],d,c);i[a+80>>2]=b}return e}function Ve(a){a=a|0;var b=0;i[a+8>>2]=9264;i[a>>2]=9052;b=i[a+96>>2];if(b){i[a+100>>2]=b;Wk(b)}b=i[a+80>>2];if(b){i[a+84>>2]=b;Wk(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;Wk(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;Wk(b)}i[a+8>>2]=9500;b=i[a+44>>2];if(b){Wk(b)}b=i[a+32>>2];if(b){Wk(b)}Wk(a)}function wg(a,b,c){var d=0,e=0,f=0,g=0,h=0;g=i[a+96>>2];e=i[a+100>>2]-g|0;a=(e|0)/12|0;if(!(!e|(b|0)!=(e|0))){h=a>>>0>1?a:1;a=0;while(1){d=o(a,12);f=d+c|0;d=d+g|0;i[f>>2]=i[d>>2];i[f+4>>2]=i[d+4>>2];i[f+8>>2]=i[d+8>>2];a=a+1|0;if((h|0)!=(a|0)){continue}break}}return(b|0)==(e|0)}function Dj(a,b){var c=0,d=0,e=0;d=i[a+8>>2];c=i[a+12>>2];a:{if((d|0)!=(c|0)){a=c-d|0;e=(a|0)>-1?a:-1;c=d-c|0;a=o((e|0)<1?e:1,((c|0)>(a|0)?c:a)>>>2|0);e=a>>>0>1?a:1;a=0;while(1){c=i[(a<<2)+d>>2];if(i[c+60>>2]==(b|0)){break a}a=a+1|0;if((e|0)!=(a|0)){continue}break}}c=0}return c}function kk(a,b,c){var d=0,e=0,f=0,h=0;f=F-16|0;F=f;e=c-b|0;if(e>>>0<=4294967279){a:{if(e>>>0<=10){ek(a,e);d=a;break a}h=fk(e)+1|0;d=gk(h);hk(a,d);ik(a,h);dk(a,e)}while(1){if((b|0)!=(c|0)){ck(d,b);d=d+1|0;b=b+1|0;continue}break}g[f+15|0]=0;ck(d,f+15|0);F=f+16|0;return}nk();x()}function Ug(a,b){var c=0,d=0;c=i[a+4>>2];if(!c){return 0}b=i[i[i[a+8>>2]+(b<<2)>>2]+60>>2];if((b|0)<0){return 0}a=i[c+24>>2];c=i[c+28>>2];if((a|0)==(c|0)){return 0}a:{while(1){d=i[a>>2];if((b|0)==i[d+24>>2]){break a}a=a+4|0;if((c|0)!=(a|0)){continue}break}return 0}return d}function Te(a){a=a|0;var b=0;i[a>>2]=9264;b=i[a+88>>2];if(b){i[a+92>>2]=b;Wk(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;Wk(b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;Wk(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;Wk(b)}i[a>>2]=9500;b=i[a+36>>2];if(b){Wk(b)}b=i[a+24>>2];if(b){Wk(b)}return a|0}function Sh(a){a=a|0;var b=0,c=0,d=0,e=0;if(a){if(g[a+27|0]<=-1){Wk(i[a+16>>2])}c=i[a>>2];if(c){b=c;d=i[a+4>>2];e=b;a:{if((d|0)==(b|0)){break a}while(1){b=d+ -12|0;if(g[d+ -1|0]<=-1){Wk(i[b>>2])}d=b;if((b|0)!=(c|0)){continue}break}e=i[a>>2]}b=e;i[a+4>>2]=c;Wk(b)}Wk(a)}}function $e(a){a=a|0;var b=0;i[a>>2]=9264;b=i[a+88>>2];if(b){i[a+92>>2]=b;Wk(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;Wk(b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;Wk(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;Wk(b)}i[a>>2]=9500;b=i[a+36>>2];if(b){Wk(b)}b=i[a+24>>2];if(b){Wk(b)}Wk(a)}function qd(a,b,c,d){var e=0;e=F-16|0;F=e;c=td(a,b,e+12|0,e+8|0,c);if(!i[c>>2]){b=lk(40);ok(b+16|0,d);ok(b+28|0,d+12|0);i[b+8>>2]=i[e+12>>2];i[b>>2]=0;i[b+4>>2]=0;i[c>>2]=b;d=i[i[a>>2]>>2];if(d){i[a>>2]=d;b=i[c>>2]}rd(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}F=e+16|0}function ob(a,b,c){a=a|0;b=b|0;c=c|0;a:{b:{switch(c|0){case 0:b=lk(20);Ya(b);break a;case 1:b=lk(24);sb(b);break a;case 2:b=lk(48);Zc(b);break a;case 3:b=lk(32);sb(b);i[b+28>>2]=-1;i[b+24>>2]=1032;i[b>>2]=5628;break a;default:break b}}i[a>>2]=0;return}i[a>>2]=b}function qe(a){var b=0;b=i[a+84>>2];if(b){i[a+88>>2]=b;Wk(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;Wk(b)}b=i[a+52>>2];if(b){i[a+56>>2]=b;Wk(b)}b=i[a+40>>2];if(b){i[a+44>>2]=b;Wk(b)}b=i[a+28>>2];if(b){i[a+32>>2]=b;Wk(b)}b=i[a+12>>2];if(b){Wk(b)}a=i[a>>2];if(a){Wk(a)}}function pe(a,b){if(b){a=i[b+76>>2];if(a){i[b+80>>2]=a;Wk(a)}a=i[b- -64>>2];if(a){i[b+68>>2]=a;Wk(a)}a=i[b+48>>2];if(a){i[b+52>>2]=a;Wk(a)}a=i[b+24>>2];if(a){i[b+28>>2]=a;Wk(a)}a=i[b+12>>2];if(a){i[b+16>>2]=a;Wk(a)}a=i[b>>2];if(a){i[b+4>>2]=a;Wk(a)}Wk(b)}}function jd(a){var b=0,c=0,d=0,e=0,f=0;d=j[a+12|0];c=i[a+8>>2];a:{if(c>>>0>4095){break a}b=i[a+4>>2];if((b|0)<1){break a}b=b+ -1|0;i[a+4>>2]=b;c=j[b+i[a>>2]|0]|c<<8}d=0-d&255;b=o(d,c>>>8|0);e=c&255;f=e>>>0>>0;i[a+8>>2]=f?b+e|0:(c-d|0)-b|0;return f}function fl(a,b,c,d){var e=0,f=0,g=0,h=0;e=b;f=e>>31;e=e>>31;a=a^e;g=a-e|0;h=(b^f)-((a>>>0>>0)+f|0)|0;e=d;f=e>>31;e=e>>31;a=c^e;e=jl(g,h,a-e|0,(d^f)-((a>>>0>>0)+f|0)|0);b=b^d;c=b>>31;a=b>>31;b=e^a;d=b-a|0;H=(c^H)-((b>>>0>>0)+c|0)|0;return d}function vj(a,b,c){var d=0;a:{d=a+4|0;a=Yf(a,b);if((d|0)==(a|0)){break a}b=i[a+32>>2];a=i[a+28>>2];if((b-a|0)!=8){break a}b=j[a+4|0]|j[a+5|0]<<8|(j[a+6|0]<<16|j[a+7|0]<<24);i[c>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24);i[c+4>>2]=b}}function Tj(a,b,c){var d=0,e=0,f=0,g=0;e=F-16|0;F=e;b=b-a>>2;while(1){if(b){i[e+12>>2]=a;d=e+12|0;f=d;g=i[d>>2];d=b>>>1|0;i[f>>2]=g+(d<<2);f=(d^-1)+b|0;b=d;d=Uj(i[e+12>>2],c);b=d?f:b;a=d?i[e+12>>2]+4|0:a;continue}break}F=e+16|0;return a}function pg(a,b,c){var d=0,e=0,f=0;d=F-16|0;F=d;a=i[a+96>>2];i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;e=lk(12);f=e+12|0;a=Yk(e,a+o(b,12)|0,12);b=a;e=a+12|0;a=i[c>>2];if(a){i[c+4>>2]=a;Wk(a)}i[c+8>>2]=f;i[c+4>>2]=e;i[c>>2]=b;F=d+16|0;return 1}function Ma(a){a=a|0;var b=0,c=0;if(a){b=i[a+88>>2];i[a+88>>2]=0;if(b){c=i[b+8>>2];if(c){i[b+12>>2]=c;Wk(c)}Wk(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;Wk(b)}b=i[a+64>>2];i[a+64>>2]=0;if(b){c=i[b>>2];if(c){i[b+4>>2]=c;Wk(c)}Wk(b)}Wk(a)}}function dd(a){a=a|0;var b=0;i[a+24>>2]=1140;i[a>>2]=7764;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}i[a>>2]=1952;b=i[a+20>>2];i[a+20>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=1572;b=i[a+16>>2];i[a+16>>2]=0;if(b){Ma(b)}return a|0}function Fj(a,b){var c=0,d=0,e=0,f=0;c=F-16|0;F=c;d=i[a+12>>2];e=i[a+8>>2];f=i[b>>2];i[b>>2]=0;i[c+8>>2]=f;I[i[i[a>>2]+8>>2]](a,d-e>>2,c+8|0);b=i[c+8>>2];i[c+8>>2]=0;if(b){Ma(b)}F=c+16|0;return(i[a+12>>2]-i[a+8>>2]>>2)+ -1|0}function el(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=o(e,f);g=c&65535;h=a&65535;i=o(g,h);f=(i>>>16|0)+o(f,g)|0;e=(f&65535)+o(e,h)|0;a=(o(b,c)+j|0)+o(a,d)+(f>>>16)+(e>>>16)|0;b=i&65535|e<<16;H=a;return b}function ed(a){a=a|0;var b=0;i[a+24>>2]=1140;i[a>>2]=7764;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}i[a>>2]=1952;b=i[a+20>>2];i[a+20>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=1572;b=i[a+16>>2];i[a+16>>2]=0;if(b){Ma(b)}Wk(a)}function Pf(a){h[a+38>>1]=0;i[a>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;g[a+29|0]=0;g[a+30|0]=0;g[a+31|0]=0;g[a+32|0]=0;g[a+33|0]=0;g[a+34|0]=0;g[a+35|0]=0;g[a+36|0]=0;return a}function aa(a,b){a=a|0;b=b|0;var c=0,d=0;c=F-16|0;F=c;a=i[a+4>>2];a:{if((a|0)==-1){break a}g[c+15|0]=a;d=i[b+20>>2];if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break a}ba(b,i[b+4>>2],c+15|0,c+16|0)}F=c+16|0;return(a|0)!=-1|0}function Of(a,b){var c=0,d=0;d=i[a>>2];c=i[a+4>>2]-d|0;a:{if(c>>>0>>0){Wa(a,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+4>>2]=b+d}b=a+24|0;c=b;d=b;a=i[b+4>>2];b=i[b>>2]+1|0;if(b>>>0<1){a=a+1|0}i[d>>2]=b;i[c+4>>2]=a}function pk(a,b,c){var d=0,e=0,f=0;d=F-16|0;F=d;if(4294967279>=c>>>0){a:{if(c>>>0<=10){ek(a,c);e=a;break a}f=fk(c)+1|0;e=gk(f);hk(a,e);ik(a,f);dk(a,c)}Vj(e,b,c);g[d+15|0]=0;ck(c+e|0,d+15|0);F=d+16|0;return}nk();x()}function Hf(a){a=a|0;var b=0,c=0,d=0;b=i[a+8>>2];d=i[a+12>>2];if((b|0)==(d|0)){return 1}while(1){a:{c=i[b>>2];c=I[i[i[c>>2]+16>>2]](c,i[a+32>>2])|0;b=b+4|0;if((d|0)==(b|0)){break a}if(c){continue}}break}return c|0}function Mk(a,b,c){var d=0;d=i[a+16>>2];if(!d){i[a+36>>2]=1;i[a+24>>2]=c;i[a+16>>2]=b;return}a:{if((b|0)==(d|0)){if(i[a+24>>2]!=2){break a}i[a+24>>2]=c;return}g[a+54|0]=1;i[a+24>>2]=2;i[a+36>>2]=i[a+36>>2]+1}}function X(a,b){a=a|0;b=b|0;var c=0,d=0;i[b>>2]=2;c=i[b+8>>2];d=i[b+12>>2]-c|0;if(d>>>0<=4294967291){b=b+8|0;Of(b,d+4|0);c=i[b>>2]}b=c+d|0;a=i[a+4>>2];g[b|0]=a;g[b+1|0]=a>>>8;g[b+2|0]=a>>>16;g[b+3|0]=a>>>24}function Uf(a){var b=0,c=0,d=0,e=0,f=0,h=0;g[a+36|0]=0;d=i[a+20>>2];e=a;f=a;h=i[a+16>>2];a=i[a+32>>2]+7|0;if(a>>>0<7){b=1}c=b>>>3|0;a=b<<29|a>>>3;b=h+a|0;c=c+d|0;i[f+16>>2]=b;i[e+20>>2]=b>>>0>>0?c+1|0:c}function tc(a){a=a|0;var b=0;i[a>>2]=4396;b=i[a+96>>2];if(b){Wk(b)}b=i[a+84>>2];if(b){Wk(b)}b=i[a+72>>2];if(b){Wk(b)}b=i[a+60>>2];if(b){Wk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}return a|0}function Qb(a){a=a|0;var b=0;i[a>>2]=2832;b=i[a+96>>2];if(b){Wk(b)}b=i[a+84>>2];if(b){Wk(b)}b=i[a+72>>2];if(b){Wk(b)}b=i[a+60>>2];if(b){Wk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}return a|0}function rk(a,b,c){var d=0,e=0,f=0,h=0;e=F-16|0;F=e;d=_j(a);a:{if(d>>>0>=c>>>0){f=ak(a);h=f;d=c;if(c){_k(h,b,d)}g[e+15|0]=0;ck(c+f|0,e+15|0);jk(a,c);break a}f=a;a=Zj(a);sk(f,d,c-d|0,a,a,c,b)}F=e+16|0}function uc(a){a=a|0;var b=0;i[a>>2]=4396;b=i[a+96>>2];if(b){Wk(b)}b=i[a+84>>2];if(b){Wk(b)}b=i[a+72>>2];if(b){Wk(b)}b=i[a+60>>2];if(b){Wk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}Wk(a)}function Rb(a){a=a|0;var b=0;i[a>>2]=2832;b=i[a+96>>2];if(b){Wk(b)}b=i[a+84>>2];if(b){Wk(b)}b=i[a+72>>2];if(b){Wk(b)}b=i[a+60>>2];if(b){Wk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}Wk(a)}function uk(a,b){var c=0,d=0,e=0,f=0;e=F-16|0;F=e;if(b){d=_j(a);c=Zj(a);f=c+b|0;if(d-c>>>0>>0){wk(a,d,f-d|0,c,c)}d=c;c=ak(a);d=d+c|0;if(b){Zk(d,0,b)}jk(a,f);g[e+15|0]=0;ck(c+f|0,e+15|0)}F=e+16|0}function wj(a,b,c){var d=0,e=0;d=a+4|0;a=Yf(a,b);if((d|0)==(a|0)){return 0}b=i[a+32>>2];d=i[a+28>>2];if((b|0)!=(d|0)){tk(c,b-d|0);e=xk(c);c=i[a+28>>2];Yk(e,c,i[a+32>>2]-c|0)}return(b|0)!=(d|0)}function If(a,b){var c=0,d=0;a:{if((b|0)<0){break a}c=i[a+4>>2];if(i[c+12>>2]-i[c+8>>2]>>2<=(b|0)){break a}a=i[i[a+8>>2]+(i[i[a+20>>2]+(b<<2)>>2]<<2)>>2];d=I[i[i[a>>2]+32>>2]](a,b)|0}return d}function Ca(a){ya(a);i[a+64>>2]=0;i[a+68>>2]=0;i[a+88>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;g[a+77|0]=0;g[a+78|0]=0;g[a+79|0]=0;g[a+80|0]=0;g[a+81|0]=0;g[a+82|0]=0;g[a+83|0]=0;g[a+84|0]=0;return a}function Ba(a,b,c,d){var e=0;i[a>>2]=b;e=i[b+20>>2];i[a+8>>2]=i[b+16>>2];i[a+12>>2]=e;e=i[b+24>>2];b=i[b+28>>2];i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=c;i[a+44>>2]=d;i[a+16>>2]=e;i[a+20>>2]=b}function ya(a){i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+28>>2]=9;g[a+24|0]=1;i[a+56>>2]=-1;i[a+60>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;return a}function mg(a,b,c,d){var e=0,f=0;e=F+ -64|0;F=e;f=Pf(e+8|0);Qf(f,b,c);md(e+48|0,a,f,d);i[a+24>>2]=i[e+48>>2];qk(a+28|0,e+48|4);a=a+24|0;if(g[e+63|0]<=-1){Wk(i[e+52>>2])}F=e- -64|0;return a}function Yj(a,b){var c=0,d=0;c=j[a|0];d=j[b|0];a:{if(!c|(c|0)!=(d|0)){break a}while(1){d=j[b+1|0];c=j[a+1|0];if(!c){break a}b=b+1|0;a=a+1|0;if((c|0)==(d|0)){continue}break}}return c-d|0}function Ej(a,b){var c=0,d=0;c=i[a+8>>2];a=i[a+12>>2];if((c|0)!=(a|0)){d=a-c>>2;a=0;while(1){if(i[i[(a<<2)+c>>2]+60>>2]==(b|0)){return a}a=a+1|0;if(a>>>0>>0){continue}break}}return-1}function cj(a,b){a=a|0;b=b|0;var c=0,d=0;Ij(a,b);a:{if((b|0)<0){break a}c=i[a+88>>2];d=i[a+84>>2];if(c-d>>2<=(b|0)){break a}b=d+(b<<2)|0;d=b+4|0;c=c-d|0;if(c){_k(b,d,c)}i[a+88>>2]=b+c}}function Xk(a){var b=0,c=0;b=i[3154];c=a+3&-4;a=b+c|0;a:{if(a>>>0<=b>>>0?(c|0)>=1:0){break a}if(a>>>0>tl()<<16>>>0){if(!(D(a|0)|0)){break a}}i[3154]=a;return b}i[3155]=48;return-1}function Jf(a,b){var c=0;if(b){Jf(a,i[b>>2]);Jf(a,i[b+4>>2]);c=b+28|0;a=i[c>>2];i[c>>2]=0;if(a){Jf(a+12|0,i[a+16>>2]);Kf(a,i[a+4>>2]);Wk(a)}if(g[b+27|0]<=-1){Wk(i[b+16>>2])}Wk(b)}}function Sf(a,b,c){var d=0;a:{if(b){b=0;if(!Tf(1,c,a)){break a}}g[a+36|0]=1;i[a+32>>2]=0;b=i[a+16>>2];c=b+i[a>>2]|0;i[a+24>>2]=c;d=a;a=i[a+8>>2];i[d+28>>2]=c+(a-b|0);b=1}return b}function tj(a,b,c){var d=0;a:{d=a+4|0;a=Yf(a,b);if((d|0)==(a|0)){break a}b=i[a+32>>2];a=i[a+28>>2];if((b-a|0)!=4){break a}i[c>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24)}}function rb(a,b){a=a|0;b=b|0;var c=0,d=0;d=i[a+16>>2];c=0;a:{if(i[a+20>>2]-d>>2<=(b|0)){break a}b=i[(b<<2)+d>>2];c=0;if((b|0)<0){break a}c=bb(i[i[a+36>>2]+(b<<2)>>2])}return c|0}function ok(a,b){var c=0,d=0,e=0;d=F-16|0;F=d;c=a;a:{if(!$j(b)){i[c+8>>2]=i[b+8>>2];e=i[b+4>>2];i[c>>2]=i[b>>2];i[c+4>>2]=e;break a}pk(a,i[b>>2],i[b+4>>2])}F=d+16|0;return a}function kg(a,b,c){var d=0;d=F+ -64|0;F=d;Qf(Pf(d+8|0),b,c);nd(d+48|0);i[a+24>>2]=i[d+48>>2];qk(a+28|0,d+48|4);a=a+24|0;if(g[d+63|0]<=-1){Wk(i[d+52>>2])}F=d- -64|0;return a}function kf(a){a=a|0;var b=0;i[a+8>>2]=8680;i[a>>2]=9812;b=i[a+56>>2];if(b){i[a+60>>2]=b;Wk(b)}i[a+8>>2]=8932;b=i[a+44>>2];if(b){Wk(b)}b=i[a+32>>2];if(b){Wk(b)}return a|0}function df(a){a=a|0;var b=0;i[a+8>>2]=9684;i[a>>2]=9520;b=i[a+56>>2];if(b){i[a+60>>2]=b;Wk(b)}i[a+8>>2]=9500;b=i[a+44>>2];if(b){Wk(b)}b=i[a+32>>2];if(b){Wk(b)}return a|0}function Lj(a,b,c){var d=0,e=0,f=0;a:{if(!c){break a}while(1){d=j[a|0];e=j[b|0];if((d|0)==(e|0)){b=b+1|0;a=a+1|0;c=c+ -1|0;if(c){continue}break a}break}f=d-e|0}return f}function $a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=i[a+8>>2];if(g[d+24|0]<1){break a}if(!Ea(d,i[b+4>>2]-i[b>>2]>>2)){break a}return I[i[i[a>>2]+32>>2]](a,b,c)|0}return 0}function yk(a){var b=0,c=0,d=0,e=0;b=F-32|0;F=b;c=b+8|0;d=b+32|0;e=b+21|0;a:{if((d|0)==(e|0)){break a}}zk(c,e,d);c=F-16|0;F=c;kk(a,b+21|0,i[b+8>>2]);F=c+16|0;F=b+32|0}function lf(a){a=a|0;var b=0;i[a+8>>2]=8680;i[a>>2]=9812;b=i[a+56>>2];if(b){i[a+60>>2]=b;Wk(b)}i[a+8>>2]=8932;b=i[a+44>>2];if(b){Wk(b)}b=i[a+32>>2];if(b){Wk(b)}Wk(a)}function ef(a){a=a|0;var b=0;i[a+8>>2]=9684;i[a>>2]=9520;b=i[a+56>>2];if(b){i[a+60>>2]=b;Wk(b)}i[a+8>>2]=9500;b=i[a+44>>2];if(b){Wk(b)}b=i[a+32>>2];if(b){Wk(b)}Wk(a)}function wa(a,b){var c=0;c=lk(40);i[c>>2]=-1;Mf(c+8|0);I[i[i[a>>2]+16>>2]](a,c);a=i[b+88>>2];i[b+88>>2]=c;if(a){b=i[a+8>>2];if(b){i[a+12>>2]=b;Wk(b)}Wk(a)}return 1}function W(a,b){a=a|0;b=b|0;var c=0;b=i[b+88>>2];if(!(!b|i[b>>2]!=2)){c=a;a=i[b+8>>2];i[c+4>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24);c=1}return c|0}function Bb(a){a=a|0;var b=0;i[a>>2]=1952;b=i[a+20>>2];i[a+20>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=1572;b=i[a+16>>2];i[a+16>>2]=0;if(b){Ma(b)}return a|0}function kc(a){a=a|0;a:{if(!i[a- -64>>2]|!i[a+68>>2]|(!i[a+44>>2]|!i[a+48>>2])){break a}if(!i[a+52>>2]|!i[a+56>>2]){break a}return i[a+92>>2]!=-1|0}return 0}function Qa(a,b){a=a|0;b=b|0;a:{if(!(I[i[i[a>>2]+36>>2]](a,b)|0)){break a}if(!(I[i[i[a>>2]+40>>2]](a,b)|0)){break a}return I[i[i[a>>2]+44>>2]](a)|0}return 0}function Bf(a){i[a+40>>2]=0;i[a>>2]=10228;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;h[a+36>>1]=0}function vk(a,b){var c=0,d=0;c=F-16|0;F=c;a:{if($j(a)){d=i[a>>2];g[c+15|0]=0;ck(b+d|0,c+15|0);dk(a,b);break a}g[c+14|0]=0;ck(a+b|0,c+14|0);ek(a,b)}F=c+16|0}function hb(a,b){var c=0;Ha(a);i[a+36>>2]=0;i[a+40>>2]=0;i[a>>2]=1736;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;c=i[b>>2];i[b>>2]=0;i[a+60>>2]=c}function Oc(a){a=a|0;a:{if(!i[a+48>>2]|!i[a+52>>2]|(!i[a+28>>2]|!i[a+32>>2])){break a}if(!i[a+36>>2]|!i[a+40>>2]){break a}return i[a+76>>2]!=-1|0}return 0}function me(a){a=a|0;var b=0;i[a>>2]=8680;b=i[a+48>>2];if(b){i[a+52>>2]=b;Wk(b)}i[a>>2]=8932;b=i[a+36>>2];if(b){Wk(b)}b=i[a+24>>2];if(b){Wk(b)}return a|0}function cf(a){a=a|0;var b=0;i[a>>2]=9684;b=i[a+48>>2];if(b){i[a+52>>2]=b;Wk(b)}i[a>>2]=9500;b=i[a+36>>2];if(b){Wk(b)}b=i[a+24>>2];if(b){Wk(b)}return a|0}function Cb(a){a=a|0;var b=0;i[a>>2]=1952;b=i[a+20>>2];i[a+20>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=1572;b=i[a+16>>2];i[a+16>>2]=0;if(b){Ma(b)}Wk(a)}function Zf(a,b){var c=0;b=Yf(a,b);a:{if((b|0)==(a+4|0)){break a}a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}a=Oj(a);if((a|0)==-1){break a}c=(a|0)!=0}return c}function zk(a,b,c){var d=0,e=0;e=a;d=c-b|0;a:{if(!((1-(l[3032]>1)|0)>(d|0)?(d|0)<=9:0)){g[b|0]=49;i[a>>2]=b+1;a=0;break a}i[a>>2]=c;a=61}i[e+4>>2]=a}function jf(a){a=a|0;var b=0;i[a>>2]=9684;b=i[a+48>>2];if(b){i[a+52>>2]=b;Wk(b)}i[a>>2]=9500;b=i[a+36>>2];if(b){Wk(b)}b=i[a+24>>2];if(b){Wk(b)}Wk(a)}function Ne(a){a=a|0;var b=0;i[a>>2]=8680;b=i[a+48>>2];if(b){i[a+52>>2]=b;Wk(b)}i[a>>2]=8932;b=i[a+36>>2];if(b){Wk(b)}b=i[a+24>>2];if(b){Wk(b)}Wk(a)}function pj(a,b){var c=0,d=0;a:{d=i[b>>2];if(!d){break a}c=i[a+28>>2];if(c>>>0>2]){i[b>>2]=0;i[c>>2]=d;i[a+28>>2]=c+4;break a}qj(a+24|0,b)}}function Tk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(Jk(a,i[b+8>>2],f)){Pk(b,c,d,e);return}a=i[a+8>>2];I[i[i[a>>2]+20>>2]](a,b,c,d,e,f)}function lg(a,b,c){var d=0;d=F-16|0;F=d;md(d,a,b,c);i[a+24>>2]=i[d>>2];qk(a+28|0,d|4);a=a+24|0;if(g[d+15|0]<=-1){Wk(i[d+4>>2])}F=d+16|0;return a}function $c(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(j[i[a+4>>2]+36|0]>=2){b=0;if(!(I[i[i[a>>2]+52>>2]](a)|0)){break a}}b=wa(a+24|0,i[a+16>>2])}return b|0}function Lf(a,b,c){var d=0,e=0,f=0;if((b|0)>0){while(1){e=d<<2;f=i[e+a>>2];i[c+e>>2]=0-(f&1)^f>>>1;d=d+1|0;if((d|0)!=(b|0)){continue}break}}}function Cj(a){var b=0,c=0;b=i[a+20>>2];a:{if((i[a+24>>2]-b|0)<1){break a}b=i[b>>2];if((b|0)==-1){break a}c=i[i[a+8>>2]+(b<<2)>>2]}return c}function Bj(a,b){var c=0;c=-1;a:{if((b|0)==-1|(b|0)>4){break a}b=o(b,12)+a|0;a=i[b+20>>2];if((i[b+24>>2]-a|0)<1){break a}c=i[a>>2]}return c}function za(a,b,c,d,e,f,h){i[a>>2]=0;i[a+56>>2]=b;i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=f;i[a+44>>2]=h;g[a+32|0]=e;i[a+28>>2]=d;g[a+24|0]=c}function gd(a){i[a>>2]=0;i[a+4>>2]=0;g[a+5|0]=0;g[a+6|0]=0;g[a+7|0]=0;g[a+8|0]=0;g[a+9|0]=0;g[a+10|0]=0;g[a+11|0]=0;g[a+12|0]=0;return a}function Zi(a){a=a|0;var b=0;i[a>>2]=10908;b=i[a+96>>2];if(b){i[a+100>>2]=b;Wk(b)}b=i[a+84>>2];if(b){i[a+88>>2]=b;Wk(b)}_i(a);return a|0}function Ic(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(j[i[a+4>>2]+36|0]>=2){b=0;if(!ca(a+24|0,bb(a),c)){break a}}b=wa(a+24|0,i[a+16>>2])}return b|0}function jg(a){var b=0;b=F-16|0;F=b;nd(b);i[a+24>>2]=i[b>>2];qk(a+28|0,b|4);a=a+24|0;if(g[b+15|0]<=-1){Wk(i[b+4>>2])}F=b+16|0;return a}function hg(a){var b=0;Wf(a);b=a+16|0;i[b>>2]=0;i[b+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+12>>2]=b;i[a+32>>2]=0;i[a+36>>2]=0;return a}function Gc(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(!tb(a,b,c)){break a}a=i[a+8>>2];if(j[a+24|0]!=3){break a}return i[a+28>>2]==9|0}return 0}function $i(a){a=a|0;var b=0;i[a>>2]=10908;b=i[a+96>>2];if(b){i[a+100>>2]=b;Wk(b)}b=i[a+84>>2];if(b){i[a+88>>2]=b;Wk(b)}_i(a);Wk(a)}function Kf(a,b){if(b){Kf(a,i[b>>2]);Kf(a,i[b+4>>2]);a=i[b+28>>2];if(a){i[b+32>>2]=a;Wk(a)}if(g[b+27|0]<=-1){Wk(i[b+16>>2])}Wk(b)}}function Ha(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=1360;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0}function wc(a){a=a|0;var b=0;i[a>>2]=4632;b=i[a+76>>2];if(b){Wk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}return a|0}function _b(a){a=a|0;var b=0;i[a>>2]=3080;b=i[a+76>>2];if(b){Wk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}return a|0}function Kh(){var a=0;a=lk(28);i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;return a|0}function mk(a,b){var c=0,d=0,e=0,f=0;c=$k(b);d=lk(c+13|0);i[d+8>>2]=0;i[d+4>>2]=c;i[d>>2]=c;e=a,f=Yk(d+12|0,b,c+1|0),i[e>>2]=f}function Oa(a){a=a|0;var b=0;i[a>>2]=1360;b=i[a+16>>2];if(b){i[a+20>>2]=b;Wk(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;Wk(b)}return a|0}function sd(a,b){if(b){sd(a,i[b>>2]);sd(a,i[b+4>>2]);if(g[b+39|0]<=-1){Wk(i[b+28>>2])}if(g[b+27|0]<=-1){Wk(i[b+16>>2])}Wk(b)}}function Ok(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(Jk(a,i[b+8>>2],0)){Mk(b,c,d);return}a=i[a+8>>2];I[i[i[a>>2]+28>>2]](a,b,c,d)}function xc(a){a=a|0;var b=0;i[a>>2]=4632;b=i[a+76>>2];if(b){Wk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}Wk(a)}function Yi(a){Aj(a);i[a+84>>2]=0;i[a+88>>2]=0;i[a>>2]=10908;i[a+92>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;i[a+104>>2]=0;return a}function $b(a){a=a|0;var b=0;i[a>>2]=3080;b=i[a+76>>2];if(b){Wk(b)}i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}Wk(a)}function lk(a){var b=0;a=a?a:1;a:{while(1){b=Vk(a);if(b){break a}b=i[3156];if(b){I[b|0]();continue}break}C();x()}return b}function uh(){var a=0;a=lk(24);i[a+4>>2]=0;i[a+8>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a>>2]=a+4;i[a+12>>2]=a+16;return a|0}function la(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(i[c>>2]==i[c+4>>2]){ma(a,b,i[d+80>>2],d);return 1}na(a,b,c,d);return 1}function kh(){var a=0;a=lk(24);i[a+8>>2]=0;i[a+12>>2]=0;i[a+4>>2]=-1;i[a>>2]=1140;i[a+16>>2]=0;i[a+20>>2]=0;return a|0}function _c(a,b,c){a=a|0;b=b|0;c=c|0;if(tb(a,b,c)){a=i[i[i[i[b+4>>2]+8>>2]+(c<<2)>>2]+28>>2]==9}else{a=0}return a|0}function Zc(a){sb(a);i[a+32>>2]=0;i[a+36>>2]=0;i[a+28>>2]=-1;i[a+24>>2]=1140;i[a>>2]=7764;i[a+40>>2]=0;i[a+44>>2]=0}function Za(a,b,c){a=a|0;b=b|0;c=c|0;i[a+4>>2]=b;b=i[i[i[b+4>>2]+8>>2]+(c<<2)>>2];i[a+12>>2]=c;i[a+8>>2]=b;return 1}function bc(a){a=a|0;var b=0;if(!(!i[a+60>>2]|!i[a+44>>2]|(!i[a+48>>2]|!i[a+52>>2]))){b=i[a+56>>2]!=0}return b|0}function ig(a){var b=0;b=F-32|0;F=b;ld(b+8|0,a);a=i[b+24>>2];if(g[b+23|0]<=-1){Wk(i[b+12>>2])}F=b+32|0;return a}function Jk(a,b,c){if(!c){return i[a+4>>2]==i[b+4>>2]}if((a|0)==(b|0)){return 1}return!Yj(i[a+4>>2],i[b+4>>2])}function Mf(a){i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;return a}function Fk(a){var b=0,c=0;a:{b=i[a>>2]+ -12|0;c=b+8|0;a=i[c>>2]+ -1|0;i[c>>2]=a;if((a|0)>-1){break a}Wk(b)}}function va(a){var b=0;b=A(8)|0;i[b>>2]=12228;i[b>>2]=12272;mk(b+4|0,a);i[b>>2]=12320;B(b|0,12352,13);x()}function si(a){a=a|0;if(a){if(g[a+39|0]<=-1){Wk(i[a+28>>2])}ti(a+12|0,i[a+16>>2]);sd(a,i[a+4>>2]);Wk(a)}}function bd(a){a=a|0;var b=0,c=0;c=a+24|0;b=bb(a);if(!b){b=i[a+8>>2]}return qa(c,b,i[i[a+4>>2]+32>>2])|0}function hc(a){a=a|0;var b=0;i[a>>2]=3316;i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}return a|0}function Ac(a){a=a|0;var b=0;i[a>>2]=4856;i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}return a|0}function af(a){a=a|0;var b=0;i[a>>2]=9500;b=i[a+36>>2];if(b){Wk(b)}b=i[a+24>>2];if(b){Wk(b)}return a|0}function Oe(a){a=a|0;var b=0;i[a>>2]=8932;b=i[a+36>>2];if(b){Wk(b)}b=i[a+24>>2];if(b){Wk(b)}return a|0}function Lb(a){a=a|0;var b=0;if(!(!i[a+52>>2]|(!i[a+44>>2]|!i[a+48>>2]))){b=i[a+56>>2]!=0}return b|0}function Uk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(Jk(a,i[b+8>>2],f)){Pk(b,c,d,e)}} -function kc(a){a=a|0;var b=0;i[a>>2]=3316;i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}Zk(a)}function ec(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|!b|j[b+24|0]!=3)){i[a+60>>2]=b;c=1}return c|0}function Dc(a){a=a|0;var b=0;i[a>>2]=4856;i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}Zk(a)}function nc(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a- -64>>2]=b;c=1}return c|0}function df(a){a=a|0;var b=0;i[a>>2]=9500;b=i[a+36>>2];if(b){Zk(b)}b=i[a+24>>2];if(b){Zk(b)}Zk(a)}function Re(a){a=a|0;var b=0;i[a>>2]=8932;b=i[a+36>>2];if(b){Zk(b)}b=i[a+24>>2];if(b){Zk(b)}Zk(a)}function Rc(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a+48>>2]=b;c=1}return c|0}function Tf(a,b,c,d){h[a+38>>1]=d;i[a>>2]=b;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=c;i[a+12>>2]=0}function ik(a){var b=0;if(a>>>0>=11){b=a+16&-16;a=b+ -1|0;a=(a|0)==11?b:a}else{a=10}return a}function hb(a){a=a|0;var b=0;i[a>>2]=1572;b=i[a+16>>2];i[a+16>>2]=0;if(b){Oa(b)}return a|0}function Kb(a){a=a|0;var b=0;i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}return a|0}function ta(a){a=a|0;var b=0;i[a>>2]=1140;b=i[a+8>>2];if(b){i[a+12>>2]=b;Zk(b)}return a|0}function nl(a){var b=0,c=0;while(1){c=b;if(a){a=a-1&a;b=b+1|0;continue}break}return c}function ib(a){a=a|0;var b=0;i[a>>2]=1572;b=i[a+16>>2];i[a+16>>2]=0;if(b){Oa(b)}Zk(a)}function Lb(a){a=a|0;var b=0;i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Zk(b)}Zk(a)}function ua(a){a=a|0;var b=0;i[a>>2]=1140;b=i[a+8>>2];if(b){i[a+12>>2]=b;Zk(b)}Zk(a)}function pi(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Pg(b,c,d,e,f)|0}function wb(a,b){a=a|0;b=b|0;return K[i[i[a>>2]+48>>2]](a,i[b+4>>2]-i[b>>2]>>2)|0}function vi(a,b){if(b){vi(a,i[b>>2]);vi(a,i[b+4>>2]);ud(b+20|0,i[b+24>>2]);Zk(b)}}function Sf(a,b,c){i[a+16>>2]=0;i[a+20>>2]=0;i[a>>2]=b;i[a+8>>2]=c;i[a+12>>2]=0}function bh(a){a=a|0;var b=0;if(a){b=i[a+8>>2];if(b){i[a+12>>2]=b;Zk(b)}Zk(a)}}function _a(a){i[a+12>>2]=-1;i[a+16>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=1572}function Qk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(Mk(a,i[b+8>>2],0)){Pk(b,c,d)}}function Ud(a){a=a|0;if(i[a+44>>2]){return K[i[i[a>>2]+48>>2]](a)|0}return 0}function zh(a){a=a|0;var b=0;b=a+4|0;if(g[a+15|0]<=-1){b=i[b>>2]}return b|0}function wk(a,b){var c=0;c=ak(a);if(c>>>0>>0){xk(a,b-c|0);return}yk(a,b)}function ce(a,b){a=a|0;b=b|0;a=i[a+48>>2];return K[i[i[a>>2]+16>>2]](a,b)|0}function be(a,b){a=a|0;b=b|0;a=i[a+48>>2];return K[i[i[a>>2]+12>>2]](a,b)|0}function Wd(a,b){a=a|0;b=b|0;a=i[a+48>>2];return K[i[i[a>>2]+20>>2]](a,b)|0}function Eh(a){a=a|0;var b=0;if(a){b=i[a>>2];if(b){i[a+4>>2]=b;Zk(b)}Zk(a)}}function Bh(){var a=0;a=ok(12);i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;return a|0}function ol(a){var b=0;b=a&31;a=0-a&31;return(-1>>>b&-2)<>>a}function bk(a){if(ck(a)){a=(i[a+8>>2]&2147483647)+ -1|0}else{a=10}return a}function _(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return $(a,b,c,i[d+80>>2],d)|0}function Zj(a,b){var c=0,d=0;c=H-16|0;H=c;d=Wj(a,b);H=c+16|0;return d?b:a}function Xf(a){a=a+ -1|0;if(a>>>0<=10){return i[(a<<2)+10596>>2]}return-1}function xh(a){a=a|0;if(a){Lf(a+12|0,i[a+16>>2]);Mf(a,i[a+4>>2]);Zk(a)}}function rc(a,b){a=a|0;b=b|0;if(b>>>0<=1){i[a+28>>2]=b}return b>>>0<2|0}function Ka(a,b,c){a=a|0;b=b|0;c=c|0;i[a+32>>2]=c;i[a+28>>2]=b;return 1}function Af(a,b){a=a|0;b=b|0;g[b+84|0]=1;i[b+72>>2]=i[b+68>>2];return 1}function Tk(a,b,c){if(!(i[a+28>>2]==1|i[a+4>>2]!=(b|0))){i[a+28>>2]=c}}function Tj(a,b,c){var d=0;d=H-16|0;H=d;a=Vj(a,b,c);H=d+16|0;return a}function rh(){var a=0;a=ok(8);i[a+4>>2]=-1;i[a>>2]=1032;return a|0}function $h(a,b,c){a=a|0;b=b|0;c=c|0;return i[i[b+8>>2]+(c<<2)>>2]}function ae(a){a=a|0;a=i[a+48>>2];return K[i[i[a>>2]+36>>2]](a)|0}function Zd(a){a=a|0;a=i[a+48>>2];return K[i[i[a>>2]+28>>2]](a)|0}function Yd(a){a=a|0;a=i[a+48>>2];return K[i[i[a>>2]+24>>2]](a)|0}function Xh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return og(a,b,c,d)|0}function Ah(a){a=a|0;if(a){if(g[a+15|0]<=-1){Zk(i[a+4>>2])}Zk(a)}}function ed(a,b){a=a|0;b=b|0;return qa(a+24|0,db(a),i[a+8>>2])|0}function Lc(a,b){a=a|0;b=b|0;return ba(a+24|0,db(a),i[a+8>>2])|0}function oi(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ng(b,c,d)|0}function ni(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Jg(b,c,d)|0}function mi(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Gg(b,c,d)|0}function li(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eg(b,c,d)|0}function ki(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Cg(b,c,d)|0}function ji(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Lg(b,c,d)|0}function ii(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Bg(b,c,d)|0}function hi(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return zg(b,c,d)|0}function gi(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return yg(b,c,d)|0}function fi(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return xg(b,c,d)|0}function di(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return rg(b,c,d)|0}function ab(a,b){a=a|0;b=b|0;i[a+12>>2]=-1;i[a+8>>2]=b;return 1}function _h(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return qg(b,c,d)|0}function Wh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return mg(a,b,c)|0}function nh(a,b){a=a|0;b=b|0;return K[i[i[a>>2]+12>>2]](a,b)|0}function jk(a){if(4294967295>>0){xa(11830);x()}return ok(a)}function gl(a,b){a=a|0;b=b|0;if(!i[3282]){i[3283]=b;i[3282]=a}}function cd(a,b){a=a|0;b=b|0;return K[i[i[a>>2]+56>>2]](a,b)|0}function $g(){var a=0;a=ok(40);i[a>>2]=-1;Of(a+8|0);return a|0}function oh(a,b){a=a|0;b=b|0;return p(m[i[a+8>>2]+(b<<2)>>2])}function Yf(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=a+4;return a}function Ch(a,b){a=a|0;b=b|0;return p(m[i[a>>2]+(b<<2)>>2])}function vh(a){a=a|0;return(i[a+100>>2]-i[a+96>>2]|0)/12|0}function ak(a){if(ck(a)){return i[a+4>>2]}return j[a+11|0]}function Ta(a,b){a=a|0;b=b|0;return i[i[a+4>>2]+(b<<2)>>2]}function pl(a){if(a){return 31-r(a+ -1^a)|0}return 32} +function ic(a){a=a|0;var b=0;i[a>>2]=3316;i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}Wk(a)}function cc(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|!b|j[b+24|0]!=3)){i[a+60>>2]=b;c=1}return c|0}function Bc(a){a=a|0;var b=0;i[a>>2]=4856;i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}Wk(a)}function lc(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a- -64>>2]=b;c=1}return c|0}function bf(a){a=a|0;var b=0;i[a>>2]=9500;b=i[a+36>>2];if(b){Wk(b)}b=i[a+24>>2];if(b){Wk(b)}Wk(a)}function Pe(a){a=a|0;var b=0;i[a>>2]=8932;b=i[a+36>>2];if(b){Wk(b)}b=i[a+24>>2];if(b){Wk(b)}Wk(a)}function Pc(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a+48>>2]=b;c=1}return c|0}function Rf(a,b,c,d){h[a+38>>1]=d;i[a>>2]=b;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=c;i[a+12>>2]=0}function fk(a){var b=0;if(a>>>0>=11){b=a+16&-16;a=b+ -1|0;a=(a|0)==11?b:a}else{a=10}return a}function fb(a){a=a|0;var b=0;i[a>>2]=1572;b=i[a+16>>2];i[a+16>>2]=0;if(b){Ma(b)}return a|0}function Ib(a){a=a|0;var b=0;i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}return a|0}function ra(a){a=a|0;var b=0;i[a>>2]=1140;b=i[a+8>>2];if(b){i[a+12>>2]=b;Wk(b)}return a|0}function kl(a){var b=0,c=0;while(1){c=b;if(a){a=a-1&a;b=b+1|0;continue}break}return c}function gb(a){a=a|0;var b=0;i[a>>2]=1572;b=i[a+16>>2];i[a+16>>2]=0;if(b){Ma(b)}Wk(a)}function Jb(a){a=a|0;var b=0;i[a>>2]=2776;b=i[a+32>>2];if(b){i[a+36>>2]=b;Wk(b)}Wk(a)}function sa(a){a=a|0;var b=0;i[a>>2]=1140;b=i[a+8>>2];if(b){i[a+12>>2]=b;Wk(b)}Wk(a)}function ni(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Ng(b,c,d,e,f)|0}function ub(a,b){a=a|0;b=b|0;return I[i[i[a>>2]+48>>2]](a,i[b+4>>2]-i[b>>2]>>2)|0}function ti(a,b){if(b){ti(a,i[b>>2]);ti(a,i[b+4>>2]);sd(b+20|0,i[b+24>>2]);Wk(b)}}function Qf(a,b,c){i[a+16>>2]=0;i[a+20>>2]=0;i[a>>2]=b;i[a+8>>2]=c;i[a+12>>2]=0}function Ya(a){i[a+12>>2]=-1;i[a+16>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=1572}function $g(a){a=a|0;var b=0;if(a){b=i[a+8>>2];if(b){i[a+12>>2]=b;Wk(b)}Wk(a)}}function Nk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(Jk(a,i[b+8>>2],0)){Mk(b,c,d)}}function Sd(a){a=a|0;if(i[a+44>>2]){return I[i[i[a>>2]+48>>2]](a)|0}return 0}function zh(){var a=0;a=lk(12);i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;return a|0}function xh(a){a=a|0;var b=0;b=a+4|0;if(g[a+15|0]<=-1){b=i[b>>2]}return b|0}function tk(a,b){var c=0;c=Zj(a);if(c>>>0>>0){uk(a,b-c|0);return}vk(a,b)}function ae(a,b){a=a|0;b=b|0;a=i[a+48>>2];return I[i[i[a>>2]+16>>2]](a,b)|0}function Ud(a,b){a=a|0;b=b|0;a=i[a+48>>2];return I[i[i[a>>2]+20>>2]](a,b)|0}function Ch(a){a=a|0;var b=0;if(a){b=i[a>>2];if(b){i[a+4>>2]=b;Wk(b)}Wk(a)}}function $d(a,b){a=a|0;b=b|0;a=i[a+48>>2];return I[i[i[a>>2]+12>>2]](a,b)|0}function ll(a){var b=0;b=a&31;a=0-a&31;return(-1>>>b&-2)<>>a}function _j(a){if($j(a)){a=(i[a+8>>2]&2147483647)+ -1|0}else{a=10}return a}function Y(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Z(a,b,c,i[d+80>>2],d)|0}function Xj(a,b){var c=0,d=0;c=F-16|0;F=c;d=Uj(a,b);F=c+16|0;return d?b:a}function Vf(a){a=a+ -1|0;if(a>>>0<=10){return i[(a<<2)+10596>>2]}return-1}function yf(a,b){a=a|0;b=b|0;g[b+84|0]=1;i[b+72>>2]=i[b+68>>2];return 1}function vh(a){a=a|0;if(a){Jf(a+12|0,i[a+16>>2]);Kf(a,i[a+4>>2]);Wk(a)}}function pc(a,b){a=a|0;b=b|0;if(b>>>0<=1){i[a+28>>2]=b}return b>>>0<2|0}function Ia(a,b,c){a=a|0;b=b|0;c=c|0;i[a+32>>2]=c;i[a+28>>2]=b;return 1}function Qk(a,b,c){if(!(i[a+28>>2]==1|i[a+4>>2]!=(b|0))){i[a+28>>2]=c}}function Rj(a,b,c){var d=0;d=F-16|0;F=d;a=Tj(a,b,c);F=d+16|0;return a}function ph(){var a=0;a=lk(8);i[a+4>>2]=-1;i[a>>2]=1032;return a|0}function Zh(a,b,c){a=a|0;b=b|0;c=c|0;return i[i[b+8>>2]+(c<<2)>>2]}function yh(a){a=a|0;if(a){if(g[a+15|0]<=-1){Wk(i[a+4>>2])}Wk(a)}}function _d(a){a=a|0;a=i[a+48>>2];return I[i[i[a>>2]+36>>2]](a)|0}function Xd(a){a=a|0;a=i[a+48>>2];return I[i[i[a>>2]+28>>2]](a)|0}function Wd(a){a=a|0;a=i[a+48>>2];return I[i[i[a>>2]+24>>2]](a)|0}function Vh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return mg(a,b,c,d)|0}function cd(a,b){a=a|0;b=b|0;return oa(a+24|0,bb(a),i[a+8>>2])|0}function mi(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Lg(b,c,d)|0}function li(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Hg(b,c,d)|0}function ki(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eg(b,c,d)|0}function ji(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Cg(b,c,d)|0}function ii(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ag(b,c,d)|0}function hi(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Jg(b,c,d)|0}function gi(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return zg(b,c,d)|0}function fi(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return xg(b,c,d)|0}function ei(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return wg(b,c,d)|0}function di(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return vg(b,c,d)|0}function bi(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return pg(b,c,d)|0}function _a(a,b){a=a|0;b=b|0;i[a+12>>2]=-1;i[a+8>>2]=b;return 1}function Yh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return og(b,c,d)|0}function Uh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return kg(a,b,c)|0}function Jc(a,b){a=a|0;b=b|0;return $(a+24|0,bb(a),i[a+8>>2])|0}function lh(a,b){a=a|0;b=b|0;return I[i[i[a>>2]+12>>2]](a,b)|0}function gk(a){if(4294967295>>0){va(11830);x()}return lk(a)}function dl(a,b){a=a|0;b=b|0;if(!i[3281]){i[3282]=b;i[3281]=a}}function ad(a,b){a=a|0;b=b|0;return I[i[i[a>>2]+56>>2]](a,b)|0}function Zg(){var a=0;a=lk(40);i[a>>2]=-1;Mf(a+8|0);return a|0}function mh(a,b){a=a|0;b=b|0;return p(m[i[a+8>>2]+(b<<2)>>2])}function Wf(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=a+4;return a}function Ah(a,b){a=a|0;b=b|0;return p(m[i[a>>2]+(b<<2)>>2])}function th(a){a=a|0;return(i[a+100>>2]-i[a+96>>2]|0)/12|0}function Zj(a){if($j(a)){return i[a+4>>2]}return j[a+11|0]}function Ra(a,b){a=a|0;b=b|0;return i[i[a+4>>2]+(b<<2)>>2]}function ml(a){if(a){return 31-r(a+ -1^a)|0}return 32} -function Lh(a,b){a=a|0;b=b|0;return i[i[a>>2]+(b<<2)>>2]}function Kh(a,b){a=a|0;b=b|0;return k[i[a>>2]+(b<<1)>>1]}function Ih(a,b){a=a|0;b=b|0;return h[i[a>>2]+(b<<1)>>1]}function vb(a,b,c){a=a|0;b=b|0;c=c|0;return $a(a,b,c)|0}function ti(a,b,c){a=a|0;b=b|0;c=c|0;return ng(a,b,c)|0}function Th(a,b,c){a=a|0;b=b|0;c=c|0;return hg(a,b,c)|0}function Rh(a,b,c){a=a|0;b=b|0;c=c|0;return gg(a,b,c)|0}function Jc(a,b,c){a=a|0;b=b|0;c=c|0;return Ab(a,b,c)|0}function Hk(a){a=a|0;i[a>>2]=12272;Ik(a+4|0);return a|0}function Ph(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;eg(b,c,d)}function ei(a,b,c){a=a|0;b=b|0;c=c|0;return sg(b,c)|0}function ci(a,b,c){a=a|0;b=b|0;c=c|0;return Wg(b,c)|0}function ai(a,b,c){a=a|0;b=b|0;c=c|0;return Fj(b,c)|0}function Zh(a,b,c){a=a|0;b=b|0;c=c|0;return pg(b,c)|0}function Yh(a,b,c){a=a|0;b=b|0;c=c|0;return Dj(b,c)|0}function Oh(a,b,c){a=a|0;b=b|0;c=c|0;return dg(b,c)|0}function Nh(a,b,c){a=a|0;b=b|0;c=c|0;return cg(b,c)|0}function Ak(a){if(ak(a)>>>0<=0){Uj();x()}return dk(a)}function tk(a,b){if((a|0)!=(b|0)){uk(a,dk(b),ak(b))}}function Cj(a){i[a>>2]=11304;al(a+4|0,0,80);return a}function th(a){a=a|0;return i[a+12>>2]-i[a+8>>2]>>2}function si(a,b,c){a=a|0;b=b|0;c=c|0;return lg(a)|0}function Qh(a,b,c){a=a|0;b=b|0;c=c|0;return+fg(b,c)}function Ua(a){a=a|0;return i[a+8>>2]-i[a+4>>2]>>2}function Hh(a,b){a=a|0;b=b|0;return j[i[a>>2]+b|0]}function Fh(a,b){a=a|0;b=b|0;return g[i[a>>2]+b|0]}function qh(a){a=a|0;if(a){K[i[i[a>>2]+4>>2]](a)}}function mk(a,b){if(ck(a)){gk(a,b);return}hk(a,b)}function ee(a,b){a=a|0;b=b|0;i[a+4>>2]=b;return 1}function dk(a){if(ck(a)){return i[a>>2]}return a}function Jh(a){a=a|0;return i[a+4>>2]-i[a>>2]>>1}function Dh(a){a=a|0;return i[a+4>>2]-i[a>>2]>>2}function Gh(a){a=a|0;return i[a+4>>2]-i[a>>2]|0}function ub(a){_a(a);i[a+20>>2]=0;i[a>>2]=1952}function _g(a,b,c){a=a|0;b=b|0;c=c|0;Sf(a,b,c)}function Td(a){Df(a);i[a+44>>2]=0;i[a>>2]=8136}function wa(a,b){a=a|0;b=b|0;return g[b+24|0]}function fl(a){a=a|0;a=H-a&-16;H=a;return a|0}function cb(a,b,c){a=a|0;b=b|0;c=c|0;return 1}function bi(a,b){a=a|0;b=b|0;return i[b+4>>2]}function Sh(a,b){a=a|0;b=b|0;return i[b+8>>2]}function Fb(a){a=a|0;return g[i[a+8>>2]+24|0]}function Xc(a){a=a|0;i[a>>2]=6748;return a|0}function Oc(a){a=a|0;i[a>>2]=5744;return a|0}function ri(a,b){a=a|0;b=b|0;return kg(b)|0}function ml(a,b,c,d){a=jl(a,b,c,d);return a}function ll(a,b,c,d){a=il(a,b,c,d);return a}function kl(a,b,c,d){a=hl(a,b,c,d);return a}function ag(a){i[a>>2]=1065353216;return a}function ph(a){a=a|0;return p(m[a+20>>2])}function lk(a,b){i[a+8>>2]=b|-2147483648}function Yc(a){a=a|0;i[a>>2]=6748;Zk(a)}function Wj(a,b){return l[a>>2]>2]}function Pc(a){a=a|0;i[a>>2]=5744;Zk(a)}function lh(a){a=a|0;return i[a+60>>2]}function kh(a){a=a|0;return i[a+48>>2]}function jh(a){a=a|0;return i[a+40>>2]}function gh(a){a=a|0;return i[a+56>>2]}function fh(a){a=a|0;return i[a+88>>2]}function eh(a){a=a|0;return i[a+80>>2]}function Va(a){a=a|0;return i[a+28>>2]}function yh(a){a=a|0;return!i[a>>2]|0}function ja(a,b){a=a|0;b=b|0;return 2}function ih(a){a=a|0;return j[a+32|0]}function ia(a,b){a=a|0;b=b|0;return 6}function hh(a){a=a|0;return g[a+24|0]}function ck(a){return j[a+11|0]>>>7|0}function Xa(a,b){a=a|0;b=b|0;return 1}function Wa(a,b){a=a|0;b=b|0;return 0}function Pb(a,b){a=a|0;b=b|0;return-1}function Mb(a){a=a|0;return i[a+4>>2]}function Kk(a){a=a|0;return i[a+4>>2]}function De(a){a=a|0;return i[a+8>>2]}function qi(a,b){a=a|0;b=b|0;qd(a,b)}function bg(a,b,c){m[a>>2]=p(c|0)/b}function ah(a){a=a|0;return i[a>>2]}function Xj(a,b,c){if(c){$k(a,b,c)}}function Sj(a,b,c){return Tj(a,b,c)}function Pj(a){return a+ -48>>>0<10}function uh(){return _i(ok(108))|0}function sh(){return Cj(ok(84))|0}function dh(){return Ea(ok(96))|0}function ch(){return Aa(ok(64))|0}function Zg(){return Rf(ok(40))|0}function Yg(a){a=a|0;if(a){Zk(a)}}function Vh(){return jg(ok(40))|0}function Gk(a){a=a|0;return 12205}function Lk(a){a=a|0;Hk(a);Zk(a)}function fa(a){a=a|0;return a|0}function Yj(a,b){return Zj(a,b)}function fk(a,b){g[a|0]=j[b|0]}function Oe(a){a=a|0;Zk(Me(a))}function Mj(a){a=a|0;Zk(aj(a))}function Le(a){a=a|0;Zk(Ke(a))}function Jk(a){a=a|0;Zk(Hk(a))}function va(a){a=a|0;return 1}function lc(a){a=a|0;return 6}function ha(a){a=a|0;return 2}function cc(a){a=a|0;return 5}function Ub(a){a=a|0;return 4}function Sc(a){a=a|0;return 3}function Ob(a){a=a|0;return 0}function hk(a,b){g[a+11|0]=b}function gk(a,b){i[a+4>>2]=b}function qk(){xa(12104);x()}function Dk(){xa(12168);x()}function kk(a,b){i[a>>2]=b}function ga(a){a=a|0;Zk(a)}function Xg(){return 10724}function Oj(){return 12620}function el(a){a=a|0;H=a}function dl(){return H|0}function Ra(a){a=a|0;x()}function Ji(){return 12}function Ii(){return 11}function Hi(){return 10}function zi(){return 2}function yi(){return 1}function xi(){return 0}function wi(){return-1}function Ni(){return-5}function Mi(){return-4}function Li(){return-3}function Ki(){return-2}function Gi(){return 9}function Fi(){return 8}function Ek(){Uj();x()}function Ei(){return 7}function Di(){return 6}function Ci(){return 5}function Bi(){return 4}function Ai(){return 3}function Uj(){C();x()}function ek(a){a=a|0}function X(){$j()}function Fk(){x()} +function Jh(a,b){a=a|0;b=b|0;return i[i[a>>2]+(b<<2)>>2]}function Ih(a,b){a=a|0;b=b|0;return k[i[a>>2]+(b<<1)>>1]}function Gh(a,b){a=a|0;b=b|0;return h[i[a>>2]+(b<<1)>>1]}function tb(a,b,c){a=a|0;b=b|0;c=c|0;return Za(a,b,c)|0}function ri(a,b,c){a=a|0;b=b|0;c=c|0;return lg(a,b,c)|0}function Rh(a,b,c){a=a|0;b=b|0;c=c|0;return fg(a,b,c)|0}function Ph(a,b,c){a=a|0;b=b|0;c=c|0;return eg(a,b,c)|0}function Hc(a,b,c){a=a|0;b=b|0;c=c|0;return yb(a,b,c)|0}function Ek(a){a=a|0;i[a>>2]=12272;Fk(a+4|0);return a|0}function Nh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;cg(b,c,d)}function xk(a){if(Zj(a)>>>0<=0){Sj();x()}return ak(a)}function ci(a,b,c){a=a|0;b=b|0;c=c|0;return qg(b,c)|0}function ai(a,b,c){a=a|0;b=b|0;c=c|0;return Ug(b,c)|0}function _h(a,b,c){a=a|0;b=b|0;c=c|0;return Dj(b,c)|0}function Xh(a,b,c){a=a|0;b=b|0;c=c|0;return ng(b,c)|0}function Wh(a,b,c){a=a|0;b=b|0;c=c|0;return Bj(b,c)|0}function Mh(a,b,c){a=a|0;b=b|0;c=c|0;return bg(b,c)|0}function Lh(a,b,c){a=a|0;b=b|0;c=c|0;return ag(b,c)|0}function qk(a,b){if((a|0)!=(b|0)){rk(a,ak(b),Zj(b))}}function Aj(a){i[a>>2]=11304;Zk(a+4|0,0,80);return a}function rh(a){a=a|0;return i[a+12>>2]-i[a+8>>2]>>2}function qi(a,b,c){a=a|0;b=b|0;c=c|0;return jg(a)|0}function Oh(a,b,c){a=a|0;b=b|0;c=c|0;return+dg(b,c)}function Sa(a){a=a|0;return i[a+8>>2]-i[a+4>>2]>>2}function Fh(a,b){a=a|0;b=b|0;return j[i[a>>2]+b|0]}function Dh(a,b){a=a|0;b=b|0;return g[i[a>>2]+b|0]}function oh(a){a=a|0;if(a){I[i[i[a>>2]+4>>2]](a)}}function jk(a,b){if($j(a)){dk(a,b);return}ek(a,b)}function ce(a,b){a=a|0;b=b|0;i[a+4>>2]=b;return 1}function ak(a){if($j(a)){return i[a>>2]}return a}function Hh(a){a=a|0;return i[a+4>>2]-i[a>>2]>>1}function Bh(a){a=a|0;return i[a+4>>2]-i[a>>2]>>2}function Eh(a){a=a|0;return i[a+4>>2]-i[a>>2]|0}function sb(a){Ya(a);i[a+20>>2]=0;i[a>>2]=1952}function Yg(a,b,c){a=a|0;b=b|0;c=c|0;Qf(a,b,c)}function Rd(a){Bf(a);i[a+44>>2]=0;i[a>>2]=8136}function ua(a,b){a=a|0;b=b|0;return g[b+24|0]}function cl(a){a=a|0;a=F-a&-16;F=a;return a|0}function ab(a,b,c){a=a|0;b=b|0;c=c|0;return 1}function Qh(a,b){a=a|0;b=b|0;return i[b+8>>2]}function Db(a){a=a|0;return g[i[a+8>>2]+24|0]}function $h(a,b){a=a|0;b=b|0;return i[b+4>>2]}function Vc(a){a=a|0;i[a>>2]=6748;return a|0}function Mc(a){a=a|0;i[a>>2]=5744;return a|0}function pi(a,b){a=a|0;b=b|0;return ig(b)|0}function jl(a,b,c,d){a=gl(a,b,c,d);return a}function il(a,b,c,d){a=fl(a,b,c,d);return a}function hl(a,b,c,d){a=el(a,b,c,d);return a}function _f(a){i[a>>2]=1065353216;return a}function nh(a){a=a|0;return p(m[a+20>>2])}function ik(a,b){i[a+8>>2]=b|-2147483648}function Wc(a){a=a|0;i[a>>2]=6748;Wk(a)}function Uj(a,b){return l[a>>2]>2]}function Nc(a){a=a|0;i[a>>2]=5744;Wk(a)}function jh(a){a=a|0;return i[a+60>>2]}function ih(a){a=a|0;return i[a+48>>2]}function hh(a){a=a|0;return i[a+40>>2]}function eh(a){a=a|0;return i[a+56>>2]}function dh(a){a=a|0;return i[a+88>>2]}function ch(a){a=a|0;return i[a+80>>2]}function Ta(a){a=a|0;return i[a+28>>2]}function wh(a){a=a|0;return!i[a>>2]|0}function ha(a,b){a=a|0;b=b|0;return 2}function gh(a){a=a|0;return j[a+32|0]}function ga(a,b){a=a|0;b=b|0;return 6}function fh(a){a=a|0;return g[a+24|0]}function Va(a,b){a=a|0;b=b|0;return 1}function Ua(a,b){a=a|0;b=b|0;return 0}function Nb(a,b){a=a|0;b=b|0;return-1}function Kb(a){a=a|0;return i[a+4>>2]}function Hk(a){a=a|0;return i[a+4>>2]}function Be(a){a=a|0;return i[a+8>>2]}function $j(a){return j[a+11|0]>>>7|0}function oi(a,b){a=a|0;b=b|0;od(a,b)}function _g(a){a=a|0;return i[a>>2]}function Vj(a,b,c){if(c){Yk(a,b,c)}}function Qj(a,b,c){return Rj(a,b,c)}function Nj(a){return a+ -48>>>0<10}function $f(a,b,c){m[a>>2]=p(c|0)/b}function sh(){return Yi(lk(108))|0}function qh(){return Aj(lk(84))|0}function bh(){return Ca(lk(96))|0}function ah(){return ya(lk(64))|0}function Xg(){return Pf(lk(40))|0}function Wg(a){a=a|0;if(a){Wk(a)}}function Th(){return hg(lk(40))|0}function Dk(a){a=a|0;return 12205}function Ik(a){a=a|0;Ek(a);Wk(a)}function da(a){a=a|0;return a|0}function Wj(a,b){return Xj(a,b)}function ck(a,b){g[a|0]=j[b|0]}function Me(a){a=a|0;Wk(Ke(a))}function Kj(a){a=a|0;Wk(_i(a))}function Je(a){a=a|0;Wk(Ie(a))}function Gk(a){a=a|0;Wk(Ek(a))}function ta(a){a=a|0;return 1}function jc(a){a=a|0;return 6}function fa(a){a=a|0;return 2}function ac(a){a=a|0;return 5}function Sb(a){a=a|0;return 4}function Qc(a){a=a|0;return 3}function Mb(a){a=a|0;return 0}function ek(a,b){g[a+11|0]=b}function dk(a,b){i[a+4>>2]=b}function nk(){va(12104);x()}function Ak(){va(12168);x()}function hk(a,b){i[a>>2]=b}function ea(a){a=a|0;Wk(a)}function Vg(){return 10724}function Mj(){return 12620}function bl(a){a=a|0;F=a}function al(){return F|0}function Pa(a){a=a|0;x()}function Hi(){return 12}function Gi(){return 11}function Fi(){return 10}function zi(){return 4}function yi(){return 3}function xi(){return 2}function wi(){return 1}function vi(){return 0}function ui(){return-1}function Li(){return-5}function Ki(){return-4}function Ji(){return-3}function Ii(){return-2}function Ei(){return 9}function Di(){return 8}function Ci(){return 7}function Bk(){Sj();x()}function Bi(){return 6}function Ai(){return 5}function Sj(){C();x()}function bk(a){a=a|0}function Ck(){x()}function V(){} // EMSCRIPTEN_END_FUNCS -var K=ql([null,fa,ga,ha,Y,Z,_,ba,ca,ea,za,ia,ja,Hk,ta,ua,va,ka,ma,na,qa,ra,sa,ia,wa,Qa,Ra,Ka,La,Sa,Ta,Ua,Va,Wa,Fk,Xa,va,hb,ib,$a,ab,bb,cb,Xa,fb,gb,rb,sb,kb,mb,tb,nb,ob,pb,qb,Db,Eb,vb,wb,xb,Ab,yb,Fb,Cb,Kb,Lb,va,Mb,Nb,Ob,Pb,Wa,Ob,va,Qb,Rb,Ra,Ra,Sb,Tb,Ub,Nb,Vb,Yb,ac,bc,cc,dc,va,Wa,ec,fc,gc,jc,kc,lc,mc,va,Wa,nc,oc,pc,fa,ga,rc,Va,qc,Ra,Lb,va,Nb,uc,Ra,vc,wc,Ub,Nb,Vb,xc,yc,zc,cc,dc,va,Wa,ec,fc,Ac,Cc,Dc,lc,mc,va,Wa,nc,oc,Ec,fa,ga,rc,Va,Fc,Ra,Lb,Ob,va,Hc,Db,Eb,Ic,Kc,Jc,Mc,ha,Lc,Oc,Pc,lc,Mb,Qc,va,Wa,Rc,va,Sc,Tc,Uc,fa,ga,rc,Va,qc,Xc,Yc,lc,Qc,va,Wa,Rc,Tc,Zc,fa,ga,rc,Va,Fc,fa,ga,Ob,va,Ob,Pb,Wa,Wc,_c,fd,gd,ad,bd,Jc,cd,dd,ed,Vd,Ra,va,va,Ud,If,Jf,va,Ob,Wa,Wa,_d,$d,Xd,Wd,Zd,ae,be,ce,Yd,Ke,Le,ee,fe,ge,he,pe,va,Mb,De,Me,Oe,ee,fe,ge,he,Fe,va,Mb,De,oe,Pe,ne,Qe,Re,We,Xe,Ye,Ze,Ve,bf,Se,cf,df,ff,gf,hf,jf,ef,lf,mf,nf,of,pf,zf,yf,uf,fa,ga,Af,Bf,Ra,Ob,va,$i,bj,cj,ej,aj,Mj,Ij,Kj,fa,ga,Gk,Jk,Kk,Lk,fa,ga,ek,ek,Nk,Xk,Vk,Qk,ga,Wk,Uk,Rk]);function ul(){return f.byteLength/65536|0}function vl(Fl){Fl=Fl|0;var L=ul()|0;var M=L+Fl|0;if(L=0;--R){Q[48+R]=52+R;Q[65+R]=R;Q[97+R]=26+R}Q[43]=62;Q[47]=63;function wl(Gl,Hl,Il){var S,T,R=0,U=Hl,V=Il.length,W=Hl+(V*3>>2)-(Il[V-2]=="=")-(Il[V-1]=="=");for(;R>4;if(U>2;if(U=0;--P){O[48+P]=52+P;O[65+P]=P;O[97+P]=26+P}O[43]=62;O[47]=63;function vl(Fl,Gl,Hl){var Q,R,P=0,S=Gl,T=Hl.length,U=Gl+(T*3>>2)-(Hl[T-2]=="=")-(Hl[T-1]=="=");for(;P>4;if(S>2;if(S=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else{var str="";while(idx>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4}return len}var UTF16Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf-16le"):undefined;function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}var WASM_PAGE_SIZE=65536;function alignUp(x,multiple){if(x%multiple>0){x+=multiple-x%multiple}return x}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf)}var STACK_BASE=5256016;var INITIAL_INITIAL_MEMORY=Module["INITIAL_MEMORY"]||16777216;if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE,"maximum":2147483648/WASM_PAGE_SIZE})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){runtimeExited=true}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnPreMain(cb){__ATMAIN__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}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+="";err(what);ABORT=true;EXITSTATUS=1;what="abort("+what+"). Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}function hasPrefix(str,prefix){return String.prototype.startsWith?str.startsWith(prefix):str.indexOf(prefix)===0}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return hasPrefix(filename,dataURIPrefix)}var fileURIPrefix="file://";function isFileURI(filename){return hasPrefix(filename,fileURIPrefix)}var wasmBinaryFile="draco_decoder_gltf.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(){try{if(wasmBinary){return new Uint8Array(wasmBinary)}var binary=tryParseAsDataURI(wasmBinaryFile);if(binary){return binary}if(readBinary){return readBinary(wasmBinaryFile)}else{throw"both async and sync fetching of the wasm failed"}}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&typeof fetch==="function"&&!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()})}return Promise.resolve().then(getBinary)}function createWasm(){var info={"env":asmLibraryArg,"wasi_snapshot_preview1":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;wasmTable=Module["asm"]["__indirect_function_table"];removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiatedSource(output){receiveInstance(output["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming==="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&typeof fetch==="function"){fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiatedSource,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiatedSource)})})}else{return instantiateArrayBuffer(receiveInstantiatedSource)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync();return{}}var tempDouble;var tempI64;function array_bounds_check_error(idx,size){throw"Array index "+idx+" out of bounds: [0,"+size+")"}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){wasmTable.get(func)()}else{wasmTable.get(func)(callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}function demangle(func){return func}function demangleAll(text){var regex=/\b_Z[\w\d_]+/g;return text.replace(regex,function(x){var y=demangle(x);return x===y?x:y+" ["+x+"]"})}function dynCallLegacy(sig,ptr,args){if(args&&args.length){return Module["dynCall_"+sig].apply(null,[ptr].concat(args))}return Module["dynCall_"+sig].call(null,ptr)}function jsStackTrace(){var error=new Error;if(!error.stack){try{throw new Error}catch(e){error=e}if(!error.stack){return"(no stack trace available)"}}return error.stack.toString()}var ExceptionInfoAttrs={DESTRUCTOR_OFFSET:0,REFCOUNT_OFFSET:4,TYPE_OFFSET:8,CAUGHT_OFFSET:12,RETHROWN_OFFSET:13,SIZE:16};function ___cxa_allocate_exception(size){return _malloc(size+ExceptionInfoAttrs.SIZE)+ExceptionInfoAttrs.SIZE}function ExceptionInfo(excPtr){this.excPtr=excPtr;this.ptr=excPtr-ExceptionInfoAttrs.SIZE;this.set_type=function(type){HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]=type};this.get_type=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]};this.set_destructor=function(destructor){HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]=destructor};this.get_destructor=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(refcount){HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=refcount};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]=caught};this.get_caught=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]=rethrown};this.get_rethrown=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]!=0};this.init=function(type,destructor){this.set_type(type);this.set_destructor(destructor);this.set_refcount(0);this.set_caught(false);this.set_rethrown(false)};this.add_ref=function(){var value=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=value+1};this.release_ref=function(){var prev=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=prev-1;return prev===1}}var exceptionLast=0;function __ZSt18uncaught_exceptionv(){return __ZSt18uncaught_exceptionv.uncaught_exceptions>0}function ___cxa_throw(ptr,type,destructor){var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;if(!("uncaught_exception"in __ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exceptions=1}else{__ZSt18uncaught_exceptionv.uncaught_exceptions++}throw ptr}function _abort(){abort()}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}function _emscripten_get_heap_size(){return HEAPU8.length}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){requestedSize=requestedSize>>>0;var oldSize=_emscripten_get_heap_size();var maxHeapSize=2147483648;if(requestedSize>maxHeapSize){return false}var minHeapSize=16777216;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(minHeapSize,requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}var ENV={};function getExecutableName(){return thisProgram||"./this.program"}function getEnvStrings(){if(!getEnvStrings.strings){var lang=(typeof navigator==="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8";var env={"USER":"web_user","LOGNAME":"web_user","PATH":"/","PWD":"/","HOME":"/home/web_user","LANG":lang,"_":getExecutableName()};for(var x in ENV){env[x]=ENV[x]}var strings=[];for(var x in env){strings.push(x+"="+env[x])}getEnvStrings.strings=strings}return getEnvStrings.strings}function _environ_get(__environ,environ_buf){var bufSize=0;getEnvStrings().forEach(function(string,i){var ptr=environ_buf+bufSize;HEAP32[__environ+i*4>>2]=ptr;writeAsciiToMemory(string,ptr);bufSize+=string.length+1});return 0}function _environ_sizes_get(penviron_count,penviron_buf_size){var strings=getEnvStrings();HEAP32[penviron_count>>2]=strings.length;var bufSize=0;strings.forEach(function(string){bufSize+=string.length+1});HEAP32[penviron_buf_size>>2]=bufSize;return 0}var ASSERTIONS=false;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}function intArrayToString(array){var ret=[];for(var i=0;i255){if(ASSERTIONS){assert(false,"Character code "+chr+" ("+String.fromCharCode(chr)+") at offset "+i+" not in 0x00-0xFF.")}chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}var decodeBase64=typeof atob==="function"?atob:function(input){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output=output+String.fromCharCode(chr1);if(enc3!==64){output=output+String.fromCharCode(chr2)}if(enc4!==64){output=output+String.fromCharCode(chr3)}}while(i0){return}preRun();if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();preMain();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()()}}noExitRuntime=true;run();function WrapperObject(){}WrapperObject.prototype=Object.create(WrapperObject.prototype);WrapperObject.prototype.constructor=WrapperObject;WrapperObject.prototype.__class__=WrapperObject;WrapperObject.__cache__={};Module["WrapperObject"]=WrapperObject;function getCache(__class__){return(__class__||WrapperObject).__cache__}Module["getCache"]=getCache;function wrapPointer(ptr,__class__){var cache=getCache(__class__);var ret=cache[ptr];if(ret)return ret;ret=Object.create((__class__||WrapperObject).prototype);ret.ptr=ptr;return cache[ptr]=ret}Module["wrapPointer"]=wrapPointer;function castObject(obj,__class__){return wrapPointer(obj.ptr,__class__)}Module["castObject"]=castObject;Module["NULL"]=wrapPointer(0);function destroy(obj){if(!obj["__destroy__"])throw"Error: Cannot destroy object. (Did you create it yourself?)";obj["__destroy__"]();delete getCache(obj.__class__)[obj.ptr]}Module["destroy"]=destroy;function compare(obj1,obj2){return obj1.ptr===obj2.ptr}Module["compare"]=compare;function getPointer(obj){return obj.ptr}Module["getPointer"]=getPointer;function getClass(obj){return obj.__class__}Module["getClass"]=getClass;var ensureCache={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ensureCache.needed){for(var i=0;i=ensureCache.size){assert(len>0);ensureCache.needed+=len;ret=Module["_malloc"](len);ensureCache.temps.push(ret)}else{ret=ensureCache.buffer+ensureCache.pos;ensureCache.pos+=len}return ret},copy:function(array,view,offset){offset>>>=0;var bytes=view.BYTES_PER_ELEMENT;switch(bytes){case 2:offset>>>=1;break;case 4:offset>>>=2;break;case 8:offset>>>=3;break}for(var i=0;i=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else{var str="";while(idx>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4}return len}var UTF16Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf-16le"):undefined;function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}var WASM_PAGE_SIZE=65536;function alignUp(x,multiple){if(x%multiple>0){x+=multiple-x%multiple}return x}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf)}var STACK_BASE=5256016;var INITIAL_INITIAL_MEMORY=Module["INITIAL_MEMORY"]||16777216;if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE,"maximum":2147483648/WASM_PAGE_SIZE})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){runtimeExited=true}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnPreMain(cb){__ATMAIN__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}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+="";err(what);ABORT=true;EXITSTATUS=1;what="abort("+what+"). Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}function hasPrefix(str,prefix){return String.prototype.startsWith?str.startsWith(prefix):str.indexOf(prefix)===0}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return hasPrefix(filename,dataURIPrefix)}var fileURIPrefix="file://";function isFileURI(filename){return hasPrefix(filename,fileURIPrefix)}var wasmBinaryFile="draco_decoder_gltf.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(){try{if(wasmBinary){return new Uint8Array(wasmBinary)}var binary=tryParseAsDataURI(wasmBinaryFile);if(binary){return binary}if(readBinary){return readBinary(wasmBinaryFile)}else{throw"both async and sync fetching of the wasm failed"}}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&typeof fetch==="function"&&!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()})}return Promise.resolve().then(getBinary)}function createWasm(){var info={"env":asmLibraryArg,"wasi_snapshot_preview1":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;wasmTable=Module["asm"]["__indirect_function_table"];removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiatedSource(output){receiveInstance(output["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming==="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&typeof fetch==="function"){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiatedSource,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiatedSource)})})}else{return instantiateArrayBuffer(receiveInstantiatedSource)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync().catch(readyPromiseReject);return{}}var tempDouble;var tempI64;function array_bounds_check_error(idx,size){throw"Array index "+idx+" out of bounds: [0,"+size+")"}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){wasmTable.get(func)()}else{wasmTable.get(func)(callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}function demangle(func){return func}function demangleAll(text){var regex=/\b_Z[\w\d_]+/g;return text.replace(regex,function(x){var y=demangle(x);return x===y?x:y+" ["+x+"]"})}function dynCallLegacy(sig,ptr,args){if(args&&args.length){return Module["dynCall_"+sig].apply(null,[ptr].concat(args))}return Module["dynCall_"+sig].call(null,ptr)}function jsStackTrace(){var error=new Error;if(!error.stack){try{throw new Error}catch(e){error=e}if(!error.stack){return"(no stack trace available)"}}return error.stack.toString()}var ExceptionInfoAttrs={DESTRUCTOR_OFFSET:0,REFCOUNT_OFFSET:4,TYPE_OFFSET:8,CAUGHT_OFFSET:12,RETHROWN_OFFSET:13,SIZE:16};function ___cxa_allocate_exception(size){return _malloc(size+ExceptionInfoAttrs.SIZE)+ExceptionInfoAttrs.SIZE}function ExceptionInfo(excPtr){this.excPtr=excPtr;this.ptr=excPtr-ExceptionInfoAttrs.SIZE;this.set_type=function(type){HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]=type};this.get_type=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]};this.set_destructor=function(destructor){HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]=destructor};this.get_destructor=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(refcount){HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=refcount};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]=caught};this.get_caught=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]=rethrown};this.get_rethrown=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]!=0};this.init=function(type,destructor){this.set_type(type);this.set_destructor(destructor);this.set_refcount(0);this.set_caught(false);this.set_rethrown(false)};this.add_ref=function(){var value=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=value+1};this.release_ref=function(){var prev=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=prev-1;return prev===1}}var exceptionLast=0;function __ZSt18uncaught_exceptionv(){return __ZSt18uncaught_exceptionv.uncaught_exceptions>0}function ___cxa_throw(ptr,type,destructor){var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;if(!("uncaught_exception"in __ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exceptions=1}else{__ZSt18uncaught_exceptionv.uncaught_exceptions++}throw ptr}function _abort(){abort()}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}function _emscripten_get_heap_size(){return HEAPU8.length}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){requestedSize=requestedSize>>>0;var oldSize=_emscripten_get_heap_size();var maxHeapSize=2147483648;if(requestedSize>maxHeapSize){return false}var minHeapSize=16777216;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(minHeapSize,requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}var ASSERTIONS=false;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}function intArrayToString(array){var ret=[];for(var i=0;i255){if(ASSERTIONS){assert(false,"Character code "+chr+" ("+String.fromCharCode(chr)+") at offset "+i+" not in 0x00-0xFF.")}chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}var decodeBase64=typeof atob==="function"?atob:function(input){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output=output+String.fromCharCode(chr1);if(enc3!==64){output=output+String.fromCharCode(chr2)}if(enc4!==64){output=output+String.fromCharCode(chr3)}}while(i0){return}preRun();if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();preMain();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()()}}noExitRuntime=true;run();function WrapperObject(){}WrapperObject.prototype=Object.create(WrapperObject.prototype);WrapperObject.prototype.constructor=WrapperObject;WrapperObject.prototype.__class__=WrapperObject;WrapperObject.__cache__={};Module["WrapperObject"]=WrapperObject;function getCache(__class__){return(__class__||WrapperObject).__cache__}Module["getCache"]=getCache;function wrapPointer(ptr,__class__){var cache=getCache(__class__);var ret=cache[ptr];if(ret)return ret;ret=Object.create((__class__||WrapperObject).prototype);ret.ptr=ptr;return cache[ptr]=ret}Module["wrapPointer"]=wrapPointer;function castObject(obj,__class__){return wrapPointer(obj.ptr,__class__)}Module["castObject"]=castObject;Module["NULL"]=wrapPointer(0);function destroy(obj){if(!obj["__destroy__"])throw"Error: Cannot destroy object. (Did you create it yourself?)";obj["__destroy__"]();delete getCache(obj.__class__)[obj.ptr]}Module["destroy"]=destroy;function compare(obj1,obj2){return obj1.ptr===obj2.ptr}Module["compare"]=compare;function getPointer(obj){return obj.ptr}Module["getPointer"]=getPointer;function getClass(obj){return obj.__class__}Module["getClass"]=getClass;var ensureCache={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ensureCache.needed){for(var i=0;i=ensureCache.size){assert(len>0);ensureCache.needed+=len;ret=Module["_malloc"](len);ensureCache.temps.push(ret)}else{ret=ensureCache.buffer+ensureCache.pos;ensureCache.pos+=len}return ret},copy:function(array,view,offset){offset>>>=0;var bytes=view.BYTES_PER_ELEMENT;switch(bytes){case 2:offset>>>=1;break;case 4:offset>>>=2;break;case 8:offset>>>=3;break}for(var i=0;i3)return false;if(version[0]==1&&version[1]>=0&&version[1]<=3)return true;if(version[0]!=0||version[1]>10)return false;return true}Module["isVersionSupported"]=isVersionSupported;var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram="./this.program";var quit_=function(status,toThrow){throw toThrow};var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string";ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;var nodeFS;var nodePath;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}read_=function shell_read(filename,binary){var ret=tryParseAsDataURI(filename);if(ret){return binary?ret:ret.toString()}if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);return nodeFS["readFileSync"](filename,binary?null:"utf8")};readBinary=function readBinary(filename){var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process["argv"].length>1){thisProgram=process["argv"][1].replace(/\\/g,"/")}arguments_=process["argv"].slice(2);process["on"]("uncaughtException",function(ex){if(!(ex instanceof ExitStatus)){throw ex}});process["on"]("unhandledRejection",abort);quit_=function(status){process["exit"](status)};Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){read_=function shell_read(f){var data=tryParseAsDataURI(f);if(data){return intArrayToString(data)}return read(f)}}readBinary=function readBinary(f){var data;data=tryParseAsDataURI(f);if(data){return data}if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){arguments_=scriptArgs}else if(typeof arguments!="undefined"){arguments_=arguments}if(typeof quit==="function"){quit_=function(status){quit(status)}}if(typeof print!=="undefined"){if(typeof console==="undefined")console={};console.log=print;console.warn=console.error=typeof printErr!=="undefined"?printErr:print}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1)}else{scriptDirectory=""}{read_=function shell_read(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText}catch(err){var data=tryParseAsDataURI(url);if(data){return intArrayToString(data)}throw err}};if(ENVIRONMENT_IS_WORKER){readBinary=function readBinary(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}catch(err){var data=tryParseAsDataURI(url);if(data){return data}throw err}}}readAsync=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}var data=tryParseAsDataURI(url);if(data){onload(data.buffer);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=function(title){document.title=title}}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var STACK_ALIGN=16;function warnOnce(text){if(!warnOnce.shown)warnOnce.shown={};if(!warnOnce.shown[text]){warnOnce.shown[text]=1;err(text)}}function convertJsFunctionToWasm(func,sig){return func}var freeTableIndexes=[];var functionsInTableMap;function addFunctionWasm(func,sig){var table=wasmTable;if(!functionsInTableMap){functionsInTableMap=new WeakMap;for(var i=0;i3)return false;if(version[0]==1&&version[1]>=0&&version[1]<=4)return true;if(version[0]!=0||version[1]>10)return false;return true}Module["isVersionSupported"]=isVersionSupported;var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram="./this.program";var quit_=function(status,toThrow){throw toThrow};var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string";ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;var nodeFS;var nodePath;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}read_=function shell_read(filename,binary){var ret=tryParseAsDataURI(filename);if(ret){return binary?ret:ret.toString()}if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);return nodeFS["readFileSync"](filename,binary?null:"utf8")};readBinary=function readBinary(filename){var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process["argv"].length>1){thisProgram=process["argv"][1].replace(/\\/g,"/")}arguments_=process["argv"].slice(2);quit_=function(status){process["exit"](status)};Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){read_=function shell_read(f){var data=tryParseAsDataURI(f);if(data){return intArrayToString(data)}return read(f)}}readBinary=function readBinary(f){var data;data=tryParseAsDataURI(f);if(data){return data}if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){arguments_=scriptArgs}else if(typeof arguments!="undefined"){arguments_=arguments}if(typeof quit==="function"){quit_=function(status){quit(status)}}if(typeof print!=="undefined"){if(typeof console==="undefined")console={};console.log=print;console.warn=console.error=typeof printErr!=="undefined"?printErr:print}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!=="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1)}else{scriptDirectory=""}{read_=function shell_read(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText}catch(err){var data=tryParseAsDataURI(url);if(data){return intArrayToString(data)}throw err}};if(ENVIRONMENT_IS_WORKER){readBinary=function readBinary(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}catch(err){var data=tryParseAsDataURI(url);if(data){return data}throw err}}}readAsync=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}var data=tryParseAsDataURI(url);if(data){onload(data.buffer);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=function(title){document.title=title}}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var STACK_ALIGN=16;function warnOnce(text){if(!warnOnce.shown)warnOnce.shown={};if(!warnOnce.shown[text]){warnOnce.shown[text]=1;err(text)}}function convertJsFunctionToWasm(func,sig){return func}var freeTableIndexes=[];var functionsInTableMap;function getEmptyTableSlot(){if(freeTableIndexes.length){return freeTableIndexes.pop()}try{wasmTable.grow(1)}catch(err){if(!(err instanceof RangeError)){throw err}throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1}function addFunctionWasm(func,sig){if(!functionsInTableMap){functionsInTableMap=new WeakMap;for(var i=0;i>2]);c=i[e+32>>2];i[e+32>>2]=0;d=i[b+12>>2];i[b+12>>2]=c;if(!d){i[e+32>>2]=0;break a}ci(d);d=i[e+32>>2];i[e+32>>2]=0;if(!d){break a}ci(d);break a}fm(e+32|0,i[b+8>>2]);c=i[e+32>>2];i[e+32>>2]=0;d=i[b+12>>2];i[b+12>>2]=c;if(!d){i[e+32>>2]=0;break a}ci(d);d=i[e+32>>2];i[e+32>>2]=0;if(!d){break a}ci(d)}b:{c:{d:{d=i[b+12>>2];e:{if(!(i[d+40>>2]!=((i[d+4>>2]-i[d>>2]>>2>>>0)/3|0)?d:0)){b=ko(32);i[e+32>>2]=b;i[e+36>>2]=29;i[e+40>>2]=-2147483616;g[b+29|0]=0;d=j[11281]|j[11282]<<8|(j[11283]<<16|j[11284]<<24);c=j[11277]|j[11278]<<8|(j[11279]<<16|j[11280]<<24);g[b+21|0]=c;g[b+22|0]=c>>>8;g[b+23|0]=c>>>16;g[b+24|0]=c>>>24;g[b+25|0]=d;g[b+26|0]=d>>>8;g[b+27|0]=d>>>16;g[b+28|0]=d>>>24;d=j[11276]|j[11277]<<8|(j[11278]<<16|j[11279]<<24);c=j[11272]|j[11273]<<8|(j[11274]<<16|j[11275]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11268]|j[11269]<<8|(j[11270]<<16|j[11271]<<24);c=j[11264]|j[11265]<<8|(j[11266]<<16|j[11267]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11260]|j[11261]<<8|(j[11262]<<16|j[11263]<<24);c=j[11256]|j[11257]<<8|(j[11258]<<16|j[11259]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;uo(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}ep(i[e+32>>2]);break e}i[b+264>>2]=b;Kb((i[d+28>>2]-i[d+24>>2]>>2)-i[d+44>>2]|0,i[i[b+4>>2]+44>>2]);d=i[b+12>>2];Kb(((i[d+4>>2]-i[d>>2]>>2>>>0)/3|0)-i[d+40>>2]|0,i[i[b+4>>2]+44>>2]);d=i[b+8>>2];c=i[d+100>>2];d=i[d+96>>2];g[e+32|0]=0;q=b+28|0;Vh(q,(c-d|0)/12|0,e+32|0);d=i[b+12>>2];c=i[d+28>>2];d=i[d+24>>2];i[e+32>>2]=-1;Th(b+52|0,c-d>>2,e+32|0);c=i[b+40>>2];i[b+44>>2]=c;d=i[b+12>>2];f=i[d+4>>2]-i[d>>2]>>2;f=f-((f>>>0)%3|0)|0;f:{if(i[b+48>>2]-c>>2>>>0>=f>>>0){break f}if(f>>>0>=1073741824){break b}h=f<<2;f=ko(h);i[b+44>>2]=f;i[b+40>>2]=f;i[b+48>>2]=f+h;if(!c){break f}ep(c);d=i[b+12>>2]}c=i[d+28>>2];d=i[d+24>>2];g[e+32|0]=0;Vh(b+84|0,c-d>>2,e+32|0);i[b+164>>2]=-1;i[b+168>>2]=0;i[b+100>>2]=i[b+96>>2];i[b+112>>2]=i[b+108>>2];if(i[b+132>>2]){d=i[b+128>>2];if(d){while(1){c=i[d>>2];ep(d);d=c;if(d){continue}break}}i[b+128>>2]=0;c=i[b+124>>2];if(c){d=0;while(1){i[i[b+120>>2]+(d<<2)>>2]=0;d=d+1|0;if((c|0)!=(d|0)){continue}break}}i[b+132>>2]=0}i[b+144>>2]=0;d=i[b+12>>2];c=i[d+28>>2];d=i[d+24>>2];i[e+32>>2]=-1;Th(b+152|0,c-d>>2,e+32|0);d=i[b+72>>2];i[b+76>>2]=d;c=i[b+12>>2];c=i[c+4>>2]-i[c>>2]>>2;f=(c>>>0)/3|0;g:{if(i[b+80>>2]-d>>2>>>0>=f>>>0){break g}if(c>>>0>=3221225472){break b}f=f<<2;c=ko(f);i[b+76>>2]=c;i[b+72>>2]=c;i[b+80>>2]=c+f;if(!d){break g}ep(d)}i[b- -64>>2]=0;if(!di(b)){b=ko(32);i[e+32>>2]=b;i[e+36>>2]=29;i[e+40>>2]=-2147483616;g[b+29|0]=0;d=j[11311]|j[11312]<<8|(j[11313]<<16|j[11314]<<24);c=j[11307]|j[11308]<<8|(j[11309]<<16|j[11310]<<24);g[b+21|0]=c;g[b+22|0]=c>>>8;g[b+23|0]=c>>>16;g[b+24|0]=c>>>24;g[b+25|0]=d;g[b+26|0]=d>>>8;g[b+27|0]=d>>>16;g[b+28|0]=d>>>24;d=j[11306]|j[11307]<<8|(j[11308]<<16|j[11309]<<24);c=j[11302]|j[11303]<<8|(j[11304]<<16|j[11305]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11298]|j[11299]<<8|(j[11300]<<16|j[11301]<<24);c=j[11294]|j[11295]<<8|(j[11296]<<16|j[11297]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11290]|j[11291]<<8|(j[11292]<<16|j[11293]<<24);c=j[11286]|j[11287]<<8|(j[11288]<<16|j[11289]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;uo(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}ep(i[e+32>>2]);break e}if(!ei(b)){b=ko(48);i[e+32>>2]=b;i[e+36>>2]=36;i[e+40>>2]=-2147483600;g[b+36|0]=0;d=j[11348]|j[11349]<<8|(j[11350]<<16|j[11351]<<24);g[b+32|0]=d;g[b+33|0]=d>>>8;g[b+34|0]=d>>>16;g[b+35|0]=d>>>24;d=j[11344]|j[11345]<<8|(j[11346]<<16|j[11347]<<24);c=j[11340]|j[11341]<<8|(j[11342]<<16|j[11343]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11336]|j[11337]<<8|(j[11338]<<16|j[11339]<<24);c=j[11332]|j[11333]<<8|(j[11334]<<16|j[11335]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11328]|j[11329]<<8|(j[11330]<<16|j[11331]<<24);c=j[11324]|j[11325]<<8|(j[11326]<<16|j[11327]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11320]|j[11321]<<8|(j[11322]<<16|j[11323]<<24);c=j[11316]|j[11317]<<8|(j[11318]<<16|j[11319]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;uo(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}ep(i[e+32>>2]);break e}d=(i[b+176>>2]-i[b+172>>2]|0)/136|0;g[e+31|0]=d;c=b;f=i[i[b+4>>2]+44>>2];h=i[f+20>>2];if((h|0)<0?1:(h|0)<=0?l[f+16>>2]<=0:0){ea(f,i[f+4>>2],e+31|0,e+32|0);d=j[e+31|0]}i[c+284>>2]=d&255;d=i[b+12>>2];c=i[d>>2];d=i[d+4>>2];r=b+200|0;fi(r);i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;d=d-c|0;h:{if((d|0)>=1){s=b+96|0;d=d>>2;t=(d|0)>1?d:1;d=0;while(1){i:{c=(d>>>0)/3|0;p=c>>>5<<2;o=1<<(c&31);if(i[p+i[q>>2]>>2]&o){break i}if(Sl(i[b+12>>2],c)){break i}i[e+24>>2]=0;c=gi(b,c,e+24|0);rf(r,c);f=i[e+24>>2];if(c){c=-1;h=-1;m=-1;j:{if((f|0)==-1){break j}n=i[i[b+12>>2]>>2];c=i[n+(f<<2)>>2];k=f+1|0;k=(k>>>0)%3|0?k:f+ -2|0;if((k|0)!=-1){h=i[n+(k<<2)>>2]}k=f+((f>>>0)%3|0?-1:2)|0;if((k|0)==-1){break j}m=i[n+(k<<2)>>2]}n=i[b+84>>2];k=n+(c>>>3&536870908)|0;i[k>>2]=i[k>>2]|1<<(c&31);c=n+(h>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<<(h&31);c=n+(m>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<<(m&31);c=i[b+100>>2];k=i[b+104>>2];k:{if(c>>>0>>0){i[c>>2]=1;i[b+100>>2]=c+4;break k}h=i[s>>2];n=c-h|0;c=n>>2;m=c+1|0;if(m>>>0>=1073741824){break d}u=c<<2;k=k-h|0;c=k>>1;m=k>>2>>>0<536870911?c>>>0>>0?m:c:1073741823;c=0;l:{if(!m){break l}if(m>>>0>=1073741824){break b}c=ko(m<<2)}k=u+c|0;i[k>>2]=1;m=c+(m<<2)|0;k=k+4|0;if((n|0)>=1){kp(c,h,n)}i[b+104>>2]=m;i[b+100>>2]=k;i[b+96>>2]=c;if(!h){break k}ep(h)}c=p+i[q>>2]|0;i[c>>2]=o|i[c>>2];m=-1;if((f|0)!=-1){c=f+1|0;m=(c>>>0)%3|0?c:f+ -2|0}c=i[e+36>>2];o=i[e+40>>2];m:{if(c>>>0>>0){i[c>>2]=m;i[e+36>>2]=c+4;break m}h=i[e+32>>2];p=c-h|0;k=p>>2;n=k+1|0;if(n>>>0>=1073741824){break c}o=o-h|0;c=o>>1;n=o>>2>>>0<536870911?c>>>0>>0?n:c:1073741823;c=0;n:{if(!n){break n}if(n>>>0>=1073741824){break b}c=ko(n<<2)}o=c+(k<<2)|0;i[o>>2]=m;m=c+(n<<2)|0;n=o+4|0;if((p|0)>=1){kp(c,h,p)}i[e+40>>2]=m;i[e+36>>2]=n;i[e+32>>2]=c;if(!h){break m}ep(h)}if((f|0)==-1){break i}c=f+1|0;c=(c>>>0)%3|0?c:f+ -2|0;if((c|0)==-1){break i}c=i[i[i[b+12>>2]+12>>2]+(c<<2)>>2];if((c|0)==-1){break i}f=(c>>>0)/3|0;if(i[i[q>>2]+(f>>>3&268435452)>>2]>>>(f&31)&1){break i}if(hi(b,c)){break i}b=ko(48);i[e+8>>2]=b;i[e+12>>2]=32;i[e+16>>2]=-2147483600;g[b+32|0]=0;d=j[11381]|j[11382]<<8|(j[11383]<<16|j[11384]<<24);c=j[11377]|j[11378]<<8|(j[11379]<<16|j[11380]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11373]|j[11374]<<8|(j[11375]<<16|j[11376]<<24);c=j[11369]|j[11370]<<8|(j[11371]<<16|j[11372]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11365]|j[11366]<<8|(j[11367]<<16|j[11368]<<24);c=j[11361]|j[11362]<<8|(j[11363]<<16|j[11364]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11357]|j[11358]<<8|(j[11359]<<16|j[11360]<<24);c=j[11353]|j[11354]<<8|(j[11355]<<16|j[11356]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;uo(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}ep(i[e+8>>2]);break h}c=b;if((f|0)!=-1){h=f+1|0;f=(h>>>0)%3|0?h:f+ -2|0}else{f=-1}ii(c,f,1);if(hi(b,i[e+24>>2])){break i}b=ko(48);i[e+8>>2]=b;i[e+12>>2]=32;i[e+16>>2]=-2147483600;g[b+32|0]=0;d=j[11381]|j[11382]<<8|(j[11383]<<16|j[11384]<<24);c=j[11377]|j[11378]<<8|(j[11379]<<16|j[11380]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11373]|j[11374]<<8|(j[11375]<<16|j[11376]<<24);c=j[11369]|j[11370]<<8|(j[11371]<<16|j[11372]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11365]|j[11366]<<8|(j[11367]<<16|j[11368]<<24);c=j[11361]|j[11362]<<8|(j[11363]<<16|j[11364]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11357]|j[11358]<<8|(j[11359]<<16|j[11360]<<24);c=j[11353]|j[11354]<<8|(j[11355]<<16|j[11356]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;uo(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}ep(i[e+8>>2]);break h}d=d+1|0;if((t|0)!=(d|0)){continue}break}}h=b+72|0;d=i[b+72>>2];f=i[b+76>>2];o:{if((d|0)==(f|0)){break o}c=f+ -4|0;if(c>>>0<=d>>>0){break o}while(1){m=i[d>>2];i[d>>2]=i[c>>2];i[c>>2]=m;d=d+4|0;c=c+ -4|0;if(d>>>0>>0){continue}break}}ji(h,f,i[e+32>>2],i[e+36>>2]);p:{if(i[b+176>>2]==i[b+172>>2]){break p}d=i[b+8>>2];c=i[d+100>>2];d=i[d+96>>2];g[e+8|0]=0;Vh(q,(c-d|0)/12|0,e+8|0);d=i[b+72>>2];c=i[b+76>>2];if((d|0)==(c|0)){break p}while(1){ki(b,i[d>>2]);d=d+4|0;if((c|0)!=(d|0)){continue}break}}li(r);c=b+232|0;tf(r,c);f=i[b+280>>2];q:{if(!f){break q}d=1;if(i[b+284>>2]<1){break q}tf(f,c);if(i[b+284>>2]<2){break q}while(1){tf(i[b+280>>2]+(d<<5)|0,c);d=d+1|0;if((d|0)>2]){continue}break}}Kb(i[b+272>>2]-i[b+268>>2]>>2,i[i[b+4>>2]+44>>2]);Kb(i[b+168>>2],i[i[b+4>>2]+44>>2]);if(!mi(b)){b=ko(32);i[e+8>>2]=b;i[e+12>>2]=28;i[e+16>>2]=-2147483616;g[b+28|0]=0;d=j[11410]|j[11411]<<8|(j[11412]<<16|j[11413]<<24);g[b+24|0]=d;g[b+25|0]=d>>>8;g[b+26|0]=d>>>16;g[b+27|0]=d>>>24;d=j[11406]|j[11407]<<8|(j[11408]<<16|j[11409]<<24);c=j[11402]|j[11403]<<8|(j[11404]<<16|j[11405]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11398]|j[11399]<<8|(j[11400]<<16|j[11401]<<24);c=j[11394]|j[11395]<<8|(j[11396]<<16|j[11397]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11390]|j[11391]<<8|(j[11392]<<16|j[11393]<<24);c=j[11386]|j[11387]<<8|(j[11388]<<16|j[11389]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;uo(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}ep(i[e+8>>2]);break h}d=i[i[b+4>>2]+44>>2];c=i[d+20>>2];if((c|0)<0?1:(c|0)<=0?l[d+16>>2]<=0:0){ea(d,i[d+4>>2],i[b+232>>2],i[b+236>>2])}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}a=i[e+32>>2];if(!a){break e}i[e+36>>2]=a;ep(a)}H=e+48|0;return}Ko();x()}Ko();x()}Ba(11708);x()}function wi(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;e=H-48|0;H=e;a:{if(j[b+352|0]){hm(e+32|0,i[b+8>>2]);c=i[e+32>>2];i[e+32>>2]=0;d=i[b+12>>2];i[b+12>>2]=c;if(!d){i[e+32>>2]=0;break a}ci(d);d=i[e+32>>2];i[e+32>>2]=0;if(!d){break a}ci(d);break a}fm(e+32|0,i[b+8>>2]);c=i[e+32>>2];i[e+32>>2]=0;d=i[b+12>>2];i[b+12>>2]=c;if(!d){i[e+32>>2]=0;break a}ci(d);d=i[e+32>>2];i[e+32>>2]=0;if(!d){break a}ci(d)}b:{c:{d:{d=i[b+12>>2];e:{if(!(i[d+40>>2]!=((i[d+4>>2]-i[d>>2]>>2>>>0)/3|0)?d:0)){b=ko(32);i[e+32>>2]=b;i[e+36>>2]=29;i[e+40>>2]=-2147483616;g[b+29|0]=0;d=j[11281]|j[11282]<<8|(j[11283]<<16|j[11284]<<24);c=j[11277]|j[11278]<<8|(j[11279]<<16|j[11280]<<24);g[b+21|0]=c;g[b+22|0]=c>>>8;g[b+23|0]=c>>>16;g[b+24|0]=c>>>24;g[b+25|0]=d;g[b+26|0]=d>>>8;g[b+27|0]=d>>>16;g[b+28|0]=d>>>24;d=j[11276]|j[11277]<<8|(j[11278]<<16|j[11279]<<24);c=j[11272]|j[11273]<<8|(j[11274]<<16|j[11275]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11268]|j[11269]<<8|(j[11270]<<16|j[11271]<<24);c=j[11264]|j[11265]<<8|(j[11266]<<16|j[11267]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11260]|j[11261]<<8|(j[11262]<<16|j[11263]<<24);c=j[11256]|j[11257]<<8|(j[11258]<<16|j[11259]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;uo(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}ep(i[e+32>>2]);break e}r=b+200|0;xi(r,b);d=i[b+12>>2];Kb((i[d+28>>2]-i[d+24>>2]>>2)-i[d+44>>2]|0,i[i[b+4>>2]+44>>2]);d=i[b+12>>2];Kb(((i[d+4>>2]-i[d>>2]>>2>>>0)/3|0)-i[d+40>>2]|0,i[i[b+4>>2]+44>>2]);d=i[b+8>>2];c=i[d+100>>2];d=i[d+96>>2];g[e+32|0]=0;q=b+28|0;Vh(q,(c-d|0)/12|0,e+32|0);d=i[b+12>>2];c=i[d+28>>2];d=i[d+24>>2];i[e+32>>2]=-1;Th(b+52|0,c-d>>2,e+32|0);c=i[b+40>>2];i[b+44>>2]=c;d=i[b+12>>2];f=i[d+4>>2]-i[d>>2]>>2;f=f-((f>>>0)%3|0)|0;f:{if(i[b+48>>2]-c>>2>>>0>=f>>>0){break f}if(f>>>0>=1073741824){break b}h=f<<2;f=ko(h);i[b+44>>2]=f;i[b+40>>2]=f;i[b+48>>2]=f+h;if(!c){break f}ep(c);d=i[b+12>>2]}c=i[d+28>>2];d=i[d+24>>2];g[e+32|0]=0;Vh(b+84|0,c-d>>2,e+32|0);i[b+164>>2]=-1;i[b+168>>2]=0;i[b+100>>2]=i[b+96>>2];i[b+112>>2]=i[b+108>>2];if(i[b+132>>2]){d=i[b+128>>2];if(d){while(1){c=i[d>>2];ep(d);d=c;if(d){continue}break}}i[b+128>>2]=0;c=i[b+124>>2];if(c){d=0;while(1){i[i[b+120>>2]+(d<<2)>>2]=0;d=d+1|0;if((c|0)!=(d|0)){continue}break}}i[b+132>>2]=0}i[b+144>>2]=0;d=i[b+12>>2];c=i[d+28>>2];d=i[d+24>>2];i[e+32>>2]=-1;Th(b+152|0,c-d>>2,e+32|0);d=i[b+72>>2];i[b+76>>2]=d;c=i[b+12>>2];c=i[c+4>>2]-i[c>>2]>>2;f=(c>>>0)/3|0;g:{if(i[b+80>>2]-d>>2>>>0>=f>>>0){break g}if(c>>>0>=3221225472){break b}f=f<<2;c=ko(f);i[b+76>>2]=c;i[b+72>>2]=c;i[b+80>>2]=c+f;if(!d){break g}ep(d)}i[b- -64>>2]=0;if(!di(b)){b=ko(32);i[e+32>>2]=b;i[e+36>>2]=29;i[e+40>>2]=-2147483616;g[b+29|0]=0;d=j[11311]|j[11312]<<8|(j[11313]<<16|j[11314]<<24);c=j[11307]|j[11308]<<8|(j[11309]<<16|j[11310]<<24);g[b+21|0]=c;g[b+22|0]=c>>>8;g[b+23|0]=c>>>16;g[b+24|0]=c>>>24;g[b+25|0]=d;g[b+26|0]=d>>>8;g[b+27|0]=d>>>16;g[b+28|0]=d>>>24;d=j[11306]|j[11307]<<8|(j[11308]<<16|j[11309]<<24);c=j[11302]|j[11303]<<8|(j[11304]<<16|j[11305]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11298]|j[11299]<<8|(j[11300]<<16|j[11301]<<24);c=j[11294]|j[11295]<<8|(j[11296]<<16|j[11297]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11290]|j[11291]<<8|(j[11292]<<16|j[11293]<<24);c=j[11286]|j[11287]<<8|(j[11288]<<16|j[11289]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;uo(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}ep(i[e+32>>2]);break e}if(!yi(b)){b=ko(48);i[e+32>>2]=b;i[e+36>>2]=36;i[e+40>>2]=-2147483600;g[b+36|0]=0;d=j[11348]|j[11349]<<8|(j[11350]<<16|j[11351]<<24);g[b+32|0]=d;g[b+33|0]=d>>>8;g[b+34|0]=d>>>16;g[b+35|0]=d>>>24;d=j[11344]|j[11345]<<8|(j[11346]<<16|j[11347]<<24);c=j[11340]|j[11341]<<8|(j[11342]<<16|j[11343]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11336]|j[11337]<<8|(j[11338]<<16|j[11339]<<24);c=j[11332]|j[11333]<<8|(j[11334]<<16|j[11335]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11328]|j[11329]<<8|(j[11330]<<16|j[11331]<<24);c=j[11324]|j[11325]<<8|(j[11326]<<16|j[11327]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11320]|j[11321]<<8|(j[11322]<<16|j[11323]<<24);c=j[11316]|j[11317]<<8|(j[11318]<<16|j[11319]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;uo(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}ep(i[e+32>>2]);break e}d=(i[b+176>>2]-i[b+172>>2]|0)/136|0;g[e+31|0]=d;c=b;f=i[i[b+4>>2]+44>>2];h=i[f+20>>2];if((h|0)<0?1:(h|0)<=0?l[f+16>>2]<=0:0){ea(f,i[f+4>>2],e+31|0,e+32|0);d=j[e+31|0]}i[c+284>>2]=d&255;d=i[b+12>>2];c=i[d>>2];d=i[d+4>>2];fi(r);i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;d=d-c|0;h:{if((d|0)>=1){s=b+96|0;d=d>>2;t=(d|0)>1?d:1;d=0;while(1){i:{c=(d>>>0)/3|0;p=c>>>5<<2;o=1<<(c&31);if(i[p+i[q>>2]>>2]&o){break i}if(Sl(i[b+12>>2],c)){break i}i[e+24>>2]=0;c=gi(b,c,e+24|0);rf(r,c);f=i[e+24>>2];if(c){c=-1;h=-1;m=-1;j:{if((f|0)==-1){break j}n=i[i[b+12>>2]>>2];c=i[n+(f<<2)>>2];k=f+1|0;k=(k>>>0)%3|0?k:f+ -2|0;if((k|0)!=-1){h=i[n+(k<<2)>>2]}k=f+((f>>>0)%3|0?-1:2)|0;if((k|0)==-1){break j}m=i[n+(k<<2)>>2]}n=i[b+84>>2];k=n+(c>>>3&536870908)|0;i[k>>2]=i[k>>2]|1<<(c&31);c=n+(h>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<<(h&31);c=n+(m>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<<(m&31);c=i[b+100>>2];k=i[b+104>>2];k:{if(c>>>0>>0){i[c>>2]=1;i[b+100>>2]=c+4;break k}h=i[s>>2];n=c-h|0;c=n>>2;m=c+1|0;if(m>>>0>=1073741824){break d}u=c<<2;k=k-h|0;c=k>>1;m=k>>2>>>0<536870911?c>>>0>>0?m:c:1073741823;c=0;l:{if(!m){break l}if(m>>>0>=1073741824){break b}c=ko(m<<2)}k=u+c|0;i[k>>2]=1;m=c+(m<<2)|0;k=k+4|0;if((n|0)>=1){kp(c,h,n)}i[b+104>>2]=m;i[b+100>>2]=k;i[b+96>>2]=c;if(!h){break k}ep(h)}c=p+i[q>>2]|0;i[c>>2]=o|i[c>>2];m=-1;if((f|0)!=-1){c=f+1|0;m=(c>>>0)%3|0?c:f+ -2|0}c=i[e+36>>2];o=i[e+40>>2];m:{if(c>>>0>>0){i[c>>2]=m;i[e+36>>2]=c+4;break m}h=i[e+32>>2];p=c-h|0;k=p>>2;n=k+1|0;if(n>>>0>=1073741824){break c}o=o-h|0;c=o>>1;n=o>>2>>>0<536870911?c>>>0>>0?n:c:1073741823;c=0;n:{if(!n){break n}if(n>>>0>=1073741824){break b}c=ko(n<<2)}o=c+(k<<2)|0;i[o>>2]=m;m=c+(n<<2)|0;n=o+4|0;if((p|0)>=1){kp(c,h,p)}i[e+40>>2]=m;i[e+36>>2]=n;i[e+32>>2]=c;if(!h){break m}ep(h)}if((f|0)==-1){break i}c=f+1|0;c=(c>>>0)%3|0?c:f+ -2|0;if((c|0)==-1){break i}c=i[i[i[b+12>>2]+12>>2]+(c<<2)>>2];if((c|0)==-1){break i}f=(c>>>0)/3|0;if(i[i[q>>2]+(f>>>3&268435452)>>2]>>>(f&31)&1){break i}if(zi(b,c)){break i}b=ko(48);i[e+8>>2]=b;i[e+12>>2]=32;i[e+16>>2]=-2147483600;g[b+32|0]=0;d=j[11381]|j[11382]<<8|(j[11383]<<16|j[11384]<<24);c=j[11377]|j[11378]<<8|(j[11379]<<16|j[11380]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11373]|j[11374]<<8|(j[11375]<<16|j[11376]<<24);c=j[11369]|j[11370]<<8|(j[11371]<<16|j[11372]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11365]|j[11366]<<8|(j[11367]<<16|j[11368]<<24);c=j[11361]|j[11362]<<8|(j[11363]<<16|j[11364]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11357]|j[11358]<<8|(j[11359]<<16|j[11360]<<24);c=j[11353]|j[11354]<<8|(j[11355]<<16|j[11356]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;uo(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}ep(i[e+8>>2]);break h}c=b;if((f|0)!=-1){h=f+1|0;f=(h>>>0)%3|0?h:f+ -2|0}else{f=-1}ii(c,f,1);if(zi(b,i[e+24>>2])){break i}b=ko(48);i[e+8>>2]=b;i[e+12>>2]=32;i[e+16>>2]=-2147483600;g[b+32|0]=0;d=j[11381]|j[11382]<<8|(j[11383]<<16|j[11384]<<24);c=j[11377]|j[11378]<<8|(j[11379]<<16|j[11380]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11373]|j[11374]<<8|(j[11375]<<16|j[11376]<<24);c=j[11369]|j[11370]<<8|(j[11371]<<16|j[11372]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11365]|j[11366]<<8|(j[11367]<<16|j[11368]<<24);c=j[11361]|j[11362]<<8|(j[11363]<<16|j[11364]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11357]|j[11358]<<8|(j[11359]<<16|j[11360]<<24);c=j[11353]|j[11354]<<8|(j[11355]<<16|j[11356]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;uo(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}ep(i[e+8>>2]);break h}d=d+1|0;if((t|0)!=(d|0)){continue}break}}h=b+72|0;d=i[b+72>>2];f=i[b+76>>2];o:{if((d|0)==(f|0)){break o}c=f+ -4|0;if(c>>>0<=d>>>0){break o}while(1){m=i[d>>2];i[d>>2]=i[c>>2];i[c>>2]=m;d=d+4|0;c=c+ -4|0;if(d>>>0>>0){continue}break}}ji(h,f,i[e+32>>2],i[e+36>>2]);p:{if(i[b+176>>2]==i[b+172>>2]){break p}d=i[b+8>>2];c=i[d+100>>2];d=i[d+96>>2];g[e+8|0]=0;Vh(q,(c-d|0)/12|0,e+8|0);d=i[b+72>>2];c=i[b+76>>2];if((d|0)==(c|0)){break p}while(1){ki(b,i[d>>2]);d=d+4|0;if((c|0)!=(d|0)){continue}break}}Ai(r);Kb(i[b+324>>2],i[i[b+4>>2]+44>>2]);Kb(i[b+168>>2],i[i[b+4>>2]+44>>2]);if(!mi(b)){b=ko(32);i[e+8>>2]=b;i[e+12>>2]=28;i[e+16>>2]=-2147483616;g[b+28|0]=0;d=j[11410]|j[11411]<<8|(j[11412]<<16|j[11413]<<24);g[b+24|0]=d;g[b+25|0]=d>>>8;g[b+26|0]=d>>>16;g[b+27|0]=d>>>24;d=j[11406]|j[11407]<<8|(j[11408]<<16|j[11409]<<24);c=j[11402]|j[11403]<<8|(j[11404]<<16|j[11405]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11398]|j[11399]<<8|(j[11400]<<16|j[11401]<<24);c=j[11394]|j[11395]<<8|(j[11396]<<16|j[11397]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11390]|j[11391]<<8|(j[11392]<<16|j[11393]<<24);c=j[11386]|j[11387]<<8|(j[11388]<<16|j[11389]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;uo(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}ep(i[e+8>>2]);break h}d=i[i[b+4>>2]+44>>2];c=i[d+20>>2];if((c|0)<0?1:(c|0)<=0?l[d+16>>2]<=0:0){ea(d,i[d+4>>2],i[b+232>>2],i[b+236>>2])}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}a=i[e+32>>2];if(!a){break e}i[e+36>>2]=a;ep(a)}H=e+48|0;return}Ko();x()}Ko();x()}Ba(11708);x()}function dp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0;p=H-16|0;H=p;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(a>>>0<=244){g=i[4824];f=a>>>0<11?16:a+11&-8;a=f>>>3|0;b=g>>>a|0;if(b&3){c=a+((b^-1)&1)|0;f=c<<3;b=i[f+19344>>2];a=b+8|0;d=i[b+8>>2];f=f+19336|0;m:{if((d|0)==(f|0)){q=19296,r=Bp(-2,c)&g,i[q>>2]=r;break m}i[d+12>>2]=f;i[f+8>>2]=d}c=c<<3;i[b+4>>2]=c|3;b=b+c|0;i[b+4>>2]=i[b+4>>2]|1;break a}k=i[4826];if(f>>>0<=k>>>0){break l}if(b){b=b<>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;c=(c|b)+(a>>>b|0)|0;d=c<<3;b=i[d+19344>>2];a=i[b+8>>2];d=d+19336|0;n:{if((a|0)==(d|0)){g=Bp(-2,c)&g;i[4824]=g;break n}i[a+12>>2]=d;i[d+8>>2]=a}a=b+8|0;i[b+4>>2]=f|3;e=b+f|0;c=c<<3;f=c-f|0;i[e+4>>2]=f|1;i[b+c>>2]=f;if(k){c=k>>>3|0;b=(c<<3)+19336|0;d=i[4829];c=1<>2]}i[b+8>>2]=d;i[c+12>>2]=d;i[d+12>>2]=b;i[d+8>>2]=c}i[4829]=e;i[4826]=f;break a}n=i[4825];if(!n){break l}a=(n&0-n)+ -1|0;b=a>>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;b=i[((c|b)+(a>>>b|0)<<2)+19600>>2];e=(i[b+4>>2]&-8)-f|0;c=b;while(1){p:{a=i[c+16>>2];if(!a){a=i[c+20>>2];if(!a){break p}}d=(i[a+4>>2]&-8)-f|0;c=d>>>0>>0;e=c?d:e;b=c?a:b;c=a;continue}break}o=b+f|0;if(o>>>0<=b>>>0){break k}m=i[b+24>>2];d=i[b+12>>2];if((d|0)!=(b|0)){a=i[b+8>>2];i[a+12>>2]=d;i[d+8>>2]=a;break b}c=b+20|0;a=i[c>>2];if(!a){a=i[b+16>>2];if(!a){break j}c=b+16|0}while(1){h=c;d=a;c=a+20|0;a=i[c>>2];if(a){continue}c=d+16|0;a=i[d+16>>2];if(a){continue}break}i[h>>2]=0;break b}f=-1;if(a>>>0>4294967231){break l}a=a+11|0;f=a&-8;k=i[4825];if(!k){break l}h=31;e=0-f|0;if(f>>>0<=16777215){b=a>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;g=c<>>16&2;a=(g<>>15|0)-(c|(a|b))|0;h=(a<<1|f>>>a+21&1)+28|0}c=i[(h<<2)+19600>>2];q:{r:{s:{if(!c){a=0;break s}a=0;b=f<<((h|0)==31?0:25-(h>>>1|0)|0);while(1){t:{g=(i[c+4>>2]&-8)-f|0;if(g>>>0>=e>>>0){break t}d=c;e=g;if(e){break t}e=0;a=c;break r}g=i[c+20>>2];c=i[((b>>>29&4)+c|0)+16>>2];a=g?(g|0)==(c|0)?a:g:a;b=b<<1;if(c){continue}break}}if(!(a|d)){a=2<>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;a=i[((c|b)+(a>>>b|0)<<2)+19600>>2]}if(!a){break q}}while(1){c=(i[a+4>>2]&-8)-f|0;b=c>>>0>>0;e=b?c:e;d=b?a:d;b=i[a+16>>2];if(b){a=b}else{a=i[a+20>>2]}if(a){continue}break}}if(!d|e>>>0>=i[4826]-f>>>0){break l}h=d+f|0;if(h>>>0<=d>>>0){break k}m=i[d+24>>2];b=i[d+12>>2];if((d|0)!=(b|0)){a=i[d+8>>2];i[a+12>>2]=b;i[b+8>>2]=a;break c}c=d+20|0;a=i[c>>2];if(!a){a=i[d+16>>2];if(!a){break i}c=d+16|0}while(1){g=c;b=a;c=a+20|0;a=i[c>>2];if(a){continue}c=b+16|0;a=i[b+16>>2];if(a){continue}break}i[g>>2]=0;break c}b=i[4826];if(b>>>0>=f>>>0){a=i[4829];c=b-f|0;u:{if(c>>>0>=16){i[4826]=c;d=a+f|0;i[4829]=d;i[d+4>>2]=c|1;i[a+b>>2]=c;i[a+4>>2]=f|3;break u}i[4829]=0;i[4826]=0;i[a+4>>2]=b|3;b=a+b|0;i[b+4>>2]=i[b+4>>2]|1}a=a+8|0;break a}d=i[4827];if(d>>>0>f>>>0){b=d-f|0;i[4827]=b;a=i[4830];c=a+f|0;i[4830]=c;i[c+4>>2]=b|1;i[a+4>>2]=f|3;a=a+8|0;break a}a=0;e=f+47|0;c=e;if(i[4942]){b=i[4944]}else{i[4945]=-1;i[4946]=-1;i[4943]=4096;i[4944]=4096;i[4942]=p+12&-16^1431655768;i[4947]=0;i[4935]=0;b=4096}g=c+b|0;h=0-b|0;c=g&h;if(c>>>0<=f>>>0){break a}b=i[4934];if(b){k=i[4932];m=k+c|0;if(m>>>0<=k>>>0|m>>>0>b>>>0){break a}}if(j[19740]&4){break f}v:{w:{b=i[4830];if(b){a=19744;while(1){k=i[a>>2];if(k+i[a+4>>2]>>>0>b>>>0?k>>>0<=b>>>0:0){break w}a=i[a+8>>2];if(a){continue}break}}b=fp(0);if((b|0)==-1){break g}g=c;a=i[4943];d=a+ -1|0;if(d&b){g=(c-b|0)+(b+d&0-a)|0}if(g>>>0<=f>>>0|g>>>0>2147483646){break g}a=i[4934];if(a){d=i[4932];h=d+g|0;if(h>>>0<=d>>>0|h>>>0>a>>>0){break g}}a=fp(g);if((b|0)!=(a|0)){break v}break e}g=h&g-d;if(g>>>0>2147483646){break g}b=fp(g);if((b|0)==(i[a>>2]+i[a+4>>2]|0)){break h}a=b}if(!((a|0)==-1|f+48>>>0<=g>>>0)){b=i[4944];b=b+(e-g|0)&0-b;if(b>>>0>2147483646){b=a;break e}if((fp(b)|0)!=-1){g=b+g|0;b=a;break e}fp(0-g|0);break g}b=a;if((a|0)!=-1){break e}break g}x()}d=0;break b}b=0;break c}if((b|0)!=-1){break e}}i[4935]=i[4935]|4}if(c>>>0>2147483646){break d}b=fp(c);a=fp(0);if(b>>>0>=a>>>0|(b|0)==-1|(a|0)==-1){break d}g=a-b|0;if(g>>>0<=f+40>>>0){break d}}a=i[4932]+g|0;i[4932]=a;if(a>>>0>l[4933]){i[4933]=a}x:{y:{z:{e=i[4830];if(e){a=19744;while(1){c=i[a>>2];d=i[a+4>>2];if((c+d|0)==(b|0)){break z}a=i[a+8>>2];if(a){continue}break}break y}a=i[4828];if(!(b>>>0>=a>>>0?a:0)){i[4828]=b}a=0;i[4937]=g;i[4936]=b;i[4832]=-1;i[4833]=i[4942];i[4939]=0;while(1){c=a<<3;d=c+19336|0;i[c+19344>>2]=d;i[c+19348>>2]=d;a=a+1|0;if((a|0)!=32){continue}break}a=g+ -40|0;c=b+8&7?-8-b&7:0;d=a-c|0;i[4827]=d;c=b+c|0;i[4830]=c;i[c+4>>2]=d|1;i[(a+b|0)+4>>2]=40;i[4831]=i[4946];break x}if(j[a+12|0]&8|b>>>0<=e>>>0|c>>>0>e>>>0){break y}i[a+4>>2]=d+g;a=e+8&7?-8-e&7:0;b=a+e|0;i[4830]=b;c=i[4827]+g|0;a=c-a|0;i[4827]=a;i[b+4>>2]=a|1;i[(c+e|0)+4>>2]=40;i[4831]=i[4946];break x}d=i[4828];if(b>>>0>>0){i[4828]=b;d=0}c=b+g|0;a=19744;A:{B:{C:{D:{E:{F:{while(1){if((c|0)!=i[a>>2]){a=i[a+8>>2];if(a){continue}break F}break}if(!(j[a+12|0]&8)){break E}}a=19744;while(1){c=i[a>>2];if(c>>>0<=e>>>0){d=c+i[a+4>>2]|0;if(d>>>0>e>>>0){break D}}a=i[a+8>>2];continue}}i[a>>2]=b;i[a+4>>2]=i[a+4>>2]+g;m=(b+8&7?-8-b&7:0)+b|0;i[m+4>>2]=f|3;b=c+(c+8&7?-8-c&7:0)|0;a=(b-m|0)-f|0;h=f+m|0;if((b|0)==(e|0)){i[4830]=h;a=i[4827]+a|0;i[4827]=a;i[h+4>>2]=a|1;break B}if(i[4829]==(b|0)){i[4829]=h;a=i[4826]+a|0;i[4826]=a;i[h+4>>2]=a|1;i[a+h>>2]=a;break B}c=i[b+4>>2];if((c&3)==1){n=c&-8;G:{if(c>>>0<=255){f=c>>>3|0;c=i[b+8>>2];d=i[b+12>>2];if((d|0)==(c|0)){q=19296,r=i[4824]&Bp(-2,f),i[q>>2]=r;break G}i[c+12>>2]=d;i[d+8>>2]=c;break G}k=i[b+24>>2];g=i[b+12>>2];H:{if((g|0)!=(b|0)){c=i[b+8>>2];i[c+12>>2]=g;i[g+8>>2]=c;break H}I:{e=b+20|0;f=i[e>>2];if(f){break I}e=b+16|0;f=i[e>>2];if(f){break I}g=0;break H}while(1){c=e;g=f;e=f+20|0;f=i[e>>2];if(f){continue}e=g+16|0;f=i[g+16>>2];if(f){continue}break}i[c>>2]=0}if(!k){break G}c=i[b+28>>2];d=(c<<2)+19600|0;J:{if(i[d>>2]==(b|0)){i[d>>2]=g;if(g){break J}q=19300,r=i[4825]&Bp(-2,c),i[q>>2]=r;break G}i[k+(i[k+16>>2]==(b|0)?16:20)>>2]=g;if(!g){break G}}i[g+24>>2]=k;c=i[b+16>>2];if(c){i[g+16>>2]=c;i[c+24>>2]=g}c=i[b+20>>2];if(!c){break G}i[g+20>>2]=c;i[c+24>>2]=g}b=b+n|0;a=a+n|0}i[b+4>>2]=i[b+4>>2]&-2;i[h+4>>2]=a|1;i[a+h>>2]=a;if(a>>>0<=255){b=a>>>3|0;a=(b<<3)+19336|0;c=i[4824];b=1<>2]}i[a+8>>2]=h;i[b+12>>2]=h;i[h+12>>2]=a;i[h+8>>2]=b;break B}e=31;if(a>>>0<=16777215){c=a>>>8|0;b=c+1048320>>>16&8;d=c<>>16&4;f=d<>>16&2;b=(f<>>15|0)-(d|(b|c))|0;e=(b<<1|a>>>b+21&1)+28|0}i[h+28>>2]=e;i[h+16>>2]=0;i[h+20>>2]=0;b=(e<<2)+19600|0;c=i[4825];d=1<>2]=h;i[h+24>>2]=b;break L}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=i[b>>2];while(1){c=b;if((i[b+4>>2]&-8)==(a|0)){break C}b=e>>>29|0;e=e<<1;d=(c+(b&4)|0)+16|0;b=i[d>>2];if(b){continue}break}i[d>>2]=h;i[h+24>>2]=c}i[h+12>>2]=h;i[h+8>>2]=h;break B}a=g+ -40|0;c=b+8&7?-8-b&7:0;h=a-c|0;i[4827]=h;c=b+c|0;i[4830]=c;i[c+4>>2]=h|1;i[(a+b|0)+4>>2]=40;i[4831]=i[4946];a=(d+(d+ -39&7?39-d&7:0)|0)+ -47|0;c=a>>>0>>0?e:a;i[c+4>>2]=27;a=i[4939];i[c+16>>2]=i[4938];i[c+20>>2]=a;a=i[4937];i[c+8>>2]=i[4936];i[c+12>>2]=a;i[4938]=c+8;i[4937]=g;i[4936]=b;i[4939]=0;a=c+24|0;while(1){i[a+4>>2]=7;b=a+8|0;a=a+4|0;if(d>>>0>b>>>0){continue}break}if((c|0)==(e|0)){break x}i[c+4>>2]=i[c+4>>2]&-2;d=c-e|0;i[e+4>>2]=d|1;i[c>>2]=d;if(d>>>0<=255){b=d>>>3|0;a=(b<<3)+19336|0;c=i[4824];b=1<>2]}i[a+8>>2]=e;i[b+12>>2]=e;i[e+12>>2]=a;i[e+8>>2]=b;break x}a=31;i[e+16>>2]=0;i[e+20>>2]=0;if(d>>>0<=16777215){b=d>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;g=c<>>16&2;a=(g<>>15|0)-(c|(a|b))|0;a=(a<<1|d>>>a+21&1)+28|0}i[e+28>>2]=a;b=(a<<2)+19600|0;c=i[4825];g=1<>2]=e;i[e+24>>2]=b;break N}a=d<<((a|0)==31?0:25-(a>>>1|0)|0);b=i[b>>2];while(1){c=b;if((d|0)==(i[b+4>>2]&-8)){break A}b=a>>>29|0;a=a<<1;g=(c+(b&4)|0)+16|0;b=i[g>>2];if(b){continue}break}i[g>>2]=e;i[e+24>>2]=c}i[e+12>>2]=e;i[e+8>>2]=e;break x}a=i[c+8>>2];i[a+12>>2]=h;i[c+8>>2]=h;i[h+24>>2]=0;i[h+12>>2]=c;i[h+8>>2]=a}a=m+8|0;break a}a=i[c+8>>2];i[a+12>>2]=e;i[c+8>>2]=e;i[e+24>>2]=0;i[e+12>>2]=c;i[e+8>>2]=a}a=i[4827];if(a>>>0<=f>>>0){break d}b=a-f|0;i[4827]=b;a=i[4830];c=a+f|0;i[4830]=c;i[c+4>>2]=b|1;i[a+4>>2]=f|3;a=a+8|0;break a}i[4805]=48;a=0;break a}O:{if(!m){break O}a=i[d+28>>2];c=(a<<2)+19600|0;P:{if(i[c>>2]==(d|0)){i[c>>2]=b;if(b){break P}k=Bp(-2,a)&k;i[4825]=k;break O}i[m+(i[m+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break O}}i[b+24>>2]=m;a=i[d+16>>2];if(a){i[b+16>>2]=a;i[a+24>>2]=b}a=i[d+20>>2];if(!a){break O}i[b+20>>2]=a;i[a+24>>2]=b}Q:{if(e>>>0<=15){a=e+f|0;i[d+4>>2]=a|3;a=a+d|0;i[a+4>>2]=i[a+4>>2]|1;break Q}i[d+4>>2]=f|3;i[h+4>>2]=e|1;i[e+h>>2]=e;if(e>>>0<=255){b=e>>>3|0;a=(b<<3)+19336|0;c=i[4824];b=1<>2]}i[a+8>>2]=h;i[b+12>>2]=h;i[h+12>>2]=a;i[h+8>>2]=b;break Q}a=31;if(e>>>0<=16777215){b=e>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;f=c<>>16&2;a=(f<>>15|0)-(c|(a|b))|0;a=(a<<1|e>>>a+21&1)+28|0}i[h+28>>2]=a;i[h+16>>2]=0;i[h+20>>2]=0;b=(a<<2)+19600|0;S:{c=1<>2]=h;break T}a=e<<((a|0)==31?0:25-(a>>>1|0)|0);f=i[b>>2];while(1){b=f;if((i[b+4>>2]&-8)==(e|0)){break S}c=a>>>29|0;a=a<<1;c=(b+(c&4)|0)+16|0;f=i[c>>2];if(f){continue}break}i[c>>2]=h}i[h+24>>2]=b;i[h+12>>2]=h;i[h+8>>2]=h;break Q}a=i[b+8>>2];i[a+12>>2]=h;i[b+8>>2]=h;i[h+24>>2]=0;i[h+12>>2]=b;i[h+8>>2]=a}a=d+8|0;break a}U:{if(!m){break U}a=i[b+28>>2];c=(a<<2)+19600|0;V:{if(i[c>>2]==(b|0)){i[c>>2]=d;if(d){break V}q=19300,r=Bp(-2,a)&n,i[q>>2]=r;break U}i[(i[m+16>>2]==(b|0)?16:20)+m>>2]=d;if(!d){break U}}i[d+24>>2]=m;a=i[b+16>>2];if(a){i[d+16>>2]=a;i[a+24>>2]=d}a=i[b+20>>2];if(!a){break U}i[d+20>>2]=a;i[a+24>>2]=d}W:{if(e>>>0<=15){a=e+f|0;i[b+4>>2]=a|3;a=a+b|0;i[a+4>>2]=i[a+4>>2]|1;break W}i[b+4>>2]=f|3;i[o+4>>2]=e|1;i[e+o>>2]=e;if(k){c=k>>>3|0;a=(c<<3)+19336|0;d=i[4829];c=1<>2]}i[a+8>>2]=d;i[c+12>>2]=d;i[d+12>>2]=a;i[d+8>>2]=c}i[4829]=o;i[4826]=e}a=b+8|0}H=p+16|0;return a|0}function Hd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var h=0,k=0,l=0,m=0,n=0,p=0,r=0,t=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;k=H-240|0;H=k;i[a+8>>2]=e;l=a+32|0;h=i[l>>2];f=i[a+36>>2]-h>>2;a:{if(f>>>0>>0){Cd(l,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=h+(e<<2)}b:{if(!d){break b}m=1;h=i[b>>2];c:{if((d|0)<=1){l=h;break c}l=h;while(1){f=i[(m<<2)+b>>2];n=(f|0)<(l|0);l=n?f:l;h=n?h:(f|0)>(h|0)?f:h;m=m+1|0;if((m|0)!=(d|0)){continue}break}}i[a+16>>2]=h;i[a+12>>2]=l;d=l;f=(h>>31)-((h>>>0>>0)+(d>>31)|0)|0;d=h-d|0;if(!f&d>>>0>2147483646|f>>>0>0){break b}d=d+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}V=i[a+52>>2];y=i[a+48>>2];i[k+200>>2]=0;i[k+204>>2]=0;i[k+192>>2]=0;i[k+196>>2]=0;i[k+184>>2]=0;i[k+188>>2]=0;d=k+176|0;i[d>>2]=0;i[d+4>>2]=0;i[k+168>>2]=0;i[k+172>>2]=0;i[k+160>>2]=0;i[k+164>>2]=0;d:{if(!e){m=0;d=0;break d}Cd(k+160|0,e);m=i[d>>2];d=i[k+172>>2]}f=m-d>>2;e:{if(f>>>0>=e>>>0){if(f>>>0<=e>>>0){break e}i[k+176>>2]=d+(e<<2);break e}Cd(k+160|12,e-f|0)}f=i[k+184>>2];d=i[k+188>>2]-f>>2;f:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break f}i[k+188>>2]=f+(e<<2);break f}Cd(k+184|0,e-d|0)}f=i[k+196>>2];d=i[k+200>>2]-f>>2;g:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break g}i[k+200>>2]=f+(e<<2);break g}Cd(k+196|0,e-d|0)}i[k+152>>2]=0;i[k+144>>2]=0;i[k+148>>2]=0;h:{i:{if(e){if(e>>>0>=1073741824){break i}d=e<<2;f=ko(d);i[k+144>>2]=f;l=d+f|0;i[k+152>>2]=l;lp(f,0,d);i[k+148>>2]=l}K=a+152|0;f=i[a+152>>2];d=i[a+156>>2]-f>>2;j:{if(d>>>0>>0){Cd(K,e-d|0);break j}if(d>>>0<=e>>>0){break j}i[a+156>>2]=f+(e<<2)}i[k+120>>2]=0;i[k+124>>2]=0;i[k+112>>2]=0;i[k+116>>2]=0;i[k+104>>2]=0;i[k+108>>2]=0;i[k+96>>2]=0;i[k+100>>2]=0;i[k+88>>2]=0;i[k+92>>2]=0;i[k+80>>2]=0;i[k+84>>2]=0;i[k+72>>2]=0;i[k+76>>2]=0;i[k+64>>2]=0;i[k+68>>2]=0;i[k+56>>2]=0;i[k+48>>2]=0;i[k+52>>2]=0;if(e){d=e<<2;C=ko(d);i[k+48>>2]=C;L=d+C|0;i[k+56>>2]=L;lp(C,0,d);i[k+52>>2]=L}d=i[a+56>>2];m=i[d>>2];d=i[d+4>>2]-m|0;if((d|0)<5){break h}I=d>>>2|0;l=I+ -1|0;if(d>>2>>>0>l>>>0){P=e<<2;M=a+112|0;W=k+141|0;Q=k+36|0;R=k+24|0;N=k+20|0;X=N+24|0;S=N+16|0;F=(e|0)<1;while(1){n=0;D=l;d=i[(l<<2)+m>>2];k:{if((d|0)==-1){break k}r=d+((d>>>0)%3|0?-1:2)|0;z=r>>>5|0;l=1;B=1<<(r&31);G=i[y>>2];p=0;m=d;while(1){l:{if(i[G+(m>>>3&536870908)>>2]>>>(m&31)&1){break l}f=i[i[i[y+64>>2]+12>>2]+(m<<2)>>2];if((f|0)==-1){break l}n=i[V>>2];h=i[y+28>>2];A=i[n+(i[h+(f<<2)>>2]<<2)>>2];if((A|0)>=(D|0)){break l}t=f+1|0;t=i[n+(i[h+(((t>>>0)%3|0?t:f+ -2|0)<<2)>>2]<<2)>>2];if((t|0)>=(D|0)){break l}f=i[n+(i[h+(f+((f>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((f|0)>=(D|0)){break l}if(!F){n=i[(k+160|0)+o(p,12)>>2];f=o(e,f);t=o(e,t);A=o(e,A);h=0;while(1){i[n+(h<<2)>>2]=(i[(f+h<<2)+b>>2]+i[(h+t<<2)+b>>2]|0)-i[(h+A<<2)+b>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}n=4;p=p+1|0;if((p|0)==4){break k}}m:{if(l&1){h=-1;f=m+1|0;f=(f>>>0)%3|0?f:m+ -2|0;if((f|0)==-1|i[i[y>>2]+(f>>>3&536870908)>>2]>>>(f&31)&1){break m}f=i[i[i[y+64>>2]+12>>2]+(f<<2)>>2];if((f|0)==-1){break m}h=f+1|0;h=(h>>>0)%3|0?h:f+ -2|0;break m}h=-1;f=((m>>>0)%3|0?-1:2)+m|0;if((f|0)==-1|i[i[y>>2]+(f>>>3&536870908)>>2]>>>(f&31)&1){break m}f=i[i[i[y+64>>2]+12>>2]+(f<<2)>>2];if((f|0)==-1){break m}if((f>>>0)%3|0){h=f+ -1|0;break m}h=f+2|0}if((d|0)==(h|0)){n=p;break k}m=h;f=(h|0)!=-1;h=(f|l^-1)&1;m=h?m:-1;l=f&l;if(!((r|0)==-1|h)){if(B&i[i[y>>2]+(z<<2)>>2]){n=p;break k}f=i[i[i[y+64>>2]+12>>2]+(r<<2)>>2];if((f|0)==-1){n=p;break k}if((f>>>0)%3|0){m=f+ -1|0}else{m=f+2|0}l=0}n=p;if((m|0)!=-1){continue}break}}m=0;g[k+16|0]=0;i[k+8>>2]=0;i[k+12>>2]=0;i[X>>2]=0;i[S>>2]=0;i[S+4>>2]=0;d=N;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;T=o(e,D)<<2;G=T+b|0;p=(o(I+ -2|0,e)<<2)+b|0;h=i[a+152>>2];l=0;if(!F){while(1){f=l<<2;d=i[f+p>>2]-i[f+G>>2]|0;i[f+C>>2]=d;i[f+h>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;f=d;d=d>>31;m=(f+d^d)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}eg(k+216|0,M,h,e);d=hg(k+216|0);l=J;h=ig(k+216|0);f=h+d|0;d=J+l|0;d=f>>>0>>0?d+1|0:d;l=f;O=(n|0)<1;if(!O){r=(n<<3)+ -8|0;h=r+(k- -64|0)|0;z=h;t=h;f=i[h+4>>2];B=i[h>>2];h=n;B=B+h|0;if(B>>>0>>0){f=f+1|0}h=B;i[t>>2]=h;i[z+4>>2]=f;w=v(cg(h,i[r+(k+96|0)>>2])*(+(h>>>0)+ +(f|0)*4294967296));n:{if(q(w)<0x8000000000000000){h=q(w)>=1?w>0?~~s(u(w/4294967296),4294967295)>>>0:~~v((w- +(~~w>>>0>>>0))/4294967296)>>>0:0;f=~~w>>>0;break n}h=-2147483648;f=0}d=d+h|0;f=f+l|0;if(f>>>0>>0){d=d+1|0}l=f}i[k+20>>2]=0;g[k+16|0]=0;i[k+8>>2]=l;i[k+12>>2]=m;ta(R,p,p+P|0);Id(Q,C,L);if(!O){z=(k+140|0)+n|0;B=z+ -2|0;r=z+ -1|0;d=(n<<3)+ -8|0;U=d+(k- -64|0)|0;Y=d+(k+96|0)|0;p=1;A=0;while(1){lp(k+140|0,1,n);A=A+1|0;lp(k+140|0,0,A);Z=i[k+52>>2];_=i[k+48>>2];o:{p:while(1){if(!F){lp(i[k+144>>2],0,P)}d=0;f=i[k+144>>2];t=0;while(1){if(!j[(k+140|0)+d|0]){if(!F){l=i[(k+160|0)+o(d,12)>>2];h=0;while(1){m=h<<2;E=m+f|0;i[E>>2]=i[E>>2]+i[l+m>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}t=1<>2];while(1){f=d+(h<<2)|0;i[f>>2]=i[f>>2]/(p|0);h=h+1|0;if((h|0)!=(e|0)){continue}break}if((e|0)>0){break r}}f=i[a+152>>2];m=0;break q}E=i[k+144>>2];f=i[a+152>>2];m=0;l=0;while(1){h=l<<2;d=i[h+E>>2]-i[h+G>>2]|0;i[h+C>>2]=d;i[f+h>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;h=d;d=d>>31;m=(h+d^d)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}eg(k+216|0,M,f,e);f=hg(k+216|0)+ig(k+216|0)|0;h=f;if((n|0)>0){d=i[U+4>>2];f=i[U>>2];w=v(cg(f,i[Y>>2]+p|0)*(+(f>>>0)+ +(d|0)*4294967296));s:{if(q(w)<0x8000000000000000){d=~~w>>>0;break s}d=0}h=d+h|0}d=i[k+8>>2];if(!((h|0)>(d|0)|(m|0)>=i[k+12>>2]?(h|0)>=(d|0):0)){i[k+20>>2]=p;g[k+16|0]=t;i[k+8>>2]=h;i[k+12>>2]=m;Id(R,i[k+144>>2],i[k+148>>2]);Id(Q,_,Z)}if((r|0)==(k+140|0)){break o}m=-1;d=j[r|0];h=d;while(1){l=h&255;f=m+ -1|0;t=f+z|0;h=j[t|0];if(h>>>0>>0){f=r;l=z;if(h>>>0>=(d&255)>>>0){while(1){d=f;f=d+ -1|0;E=l+ -2|0;l=d;if(h>>>0>=j[E|0]){continue}break}d=1}l=m+z|0;g[t|0]=d;g[f|0]=h;h=r;if((m|0)==-1){continue p}while(1){d=j[l|0];g[l|0]=j[h|0];g[h|0]=d;l=l+1|0;h=h+ -1|0;if(l>>>0>>0){continue}break}continue p}m=f;if((t|0)!=(k+140|0)){continue}break}break}if(r>>>0<=k+140>>>0){break o}f=j[k+140|0];g[k+140|0]=d;g[r|0]=f;m=W;h=B;if(m>>>0>=h>>>0){break o}while(1){d=j[m|0];g[m|0]=j[h|0];g[h|0]=d;m=m+1|0;h=h+ -1|0;if(m>>>0>>0){continue}break}}p=p+1|0;if((n|0)!=(A|0)){continue}break}}if((n|0)>0){d=((n<<3)+k|0)+88|0;l=d;h=i[k+20>>2];f=h+i[d>>2]|0;d=i[d+4>>2]+(h>>31)|0;i[l>>2]=f;i[l+4>>2]=f>>>0>>0?d+1|0:d}t:{if((e|0)<=0){l=i[K>>2];break t}l=i[K>>2];h=0;f=i[k+36>>2];while(1){m=h<<2;d=i[m+f>>2];i[l+m>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;h=h+1|0;if((h|0)!=(e|0)){continue}break}}gg(k+216|0,M,l,e);u:{if(O){break u}d=o(n,12)+a|0;r=d+56|0;l=d+52|0;d=d+48|0;m=0;while(1){v:{p=i[r>>2];f=p<<5;h=i[l>>2];w:{if(!(j[k+16|0]>>>m&1)){if((f|0)==(h|0)){if((h+1|0)<=-1){break v}f=d;if(h>>>0<=1073741822){h=h+32&-32;p=p<<6;h=p>>>0>>0?h:p}else{h=2147483647}cd(f,h);h=i[l>>2]}i[l>>2]=h+1;f=i[d>>2]+(h>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<<(h&31);break w}if((f|0)==(h|0)){if((h+1|0)<=-1){break v}f=d;if(h>>>0<=1073741822){h=h+32&-32;p=p<<6;h=p>>>0>>0?h:p}else{h=2147483647}cd(f,h);h=i[l>>2]}i[l>>2]=h+1;f=i[d>>2]+(h>>>3&536870908)|0;p=i[f>>2];$=f,aa=Bp(-2,h)&p,i[$>>2]=aa}m=m+1|0;if((n|0)!=(m|0)){continue}break u}break}Ko();x()}m=i[a+8>>2];if((m|0)>=1){p=c+T|0;d=i[k+24>>2];n=0;while(1){h=0;x:{if((m|0)<=0){f=i[a+32>>2];break x}while(1){l=h<<2;m=i[l+d>>2];r=i[a+16>>2];y:{if((m|0)>(r|0)){f=i[a+32>>2];i[l+f>>2]=r;break y}f=i[a+32>>2];l=l+f|0;r=i[a+12>>2];if((m|0)<(r|0)){i[l>>2]=r;break y}i[l>>2]=m}h=h+1|0;if((h|0)>2]){continue}break}}l=n<<2;d=l+p|0;l=i[l+G>>2]-i[f+l>>2]|0;i[d>>2]=l;z:{if((l|0)>2]){h=l+i[a+20>>2]|0}else{if((l|0)<=i[a+24>>2]){break z}h=l-i[a+20>>2]|0}i[d>>2]=h}d=f;n=n+1|0;m=i[a+8>>2];if((n|0)<(m|0)){continue}break}}d=i[k+36>>2];if(d){i[k+40>>2]=d;ep(d)}d=i[k+24>>2];if(d){i[k+28>>2]=d;ep(d)}if((I|0)<3){break h}I=D;d=i[a+56>>2];m=i[d>>2];l=D+ -1|0;if(i[d+4>>2]-m>>2>>>0>l>>>0){continue}break}}Lo();x()}Ko();x()}if((e|0)>=1){lp(i[k+160>>2],0,e<<2)}m=i[a+8>>2];if((m|0)>=1){f=i[k+160>>2];d=0;while(1){h=0;A:{if((m|0)<=0){m=i[a+32>>2];break A}while(1){e=h<<2;l=i[e+f>>2];n=i[a+16>>2];B:{if((l|0)>(n|0)){m=i[a+32>>2];i[e+m>>2]=n;break B}m=i[a+32>>2];e=e+m|0;n=i[a+12>>2];if((l|0)<(n|0)){i[e>>2]=n;break B}i[e>>2]=l}h=h+1|0;if((h|0)>2]){continue}break}}f=d<<2;e=f+c|0;f=i[b+f>>2]-i[f+m>>2]|0;i[e>>2]=f;C:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break C}f=f-i[a+20>>2]|0}i[e>>2]=f}f=m;d=d+1|0;m=i[a+8>>2];if((d|0)<(m|0)){continue}break}}a=i[k+48>>2];if(a){i[k+52>>2]=a;ep(a)}a=i[k+144>>2];if(a){i[k+148>>2]=a;ep(a)}a=i[k+196>>2];if(a){i[k+200>>2]=a;ep(a)}a=i[k+184>>2];if(a){i[k+188>>2]=a;ep(a)}a=i[k+172>>2];if(a){i[k+176>>2]=a;ep(a)}a=i[k+160>>2];if(a){i[k+164>>2]=a;ep(a)}H=k+240|0;return 1}function En(a,b,c,d,e,f,g,h,j){var k=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0;o=H-192|0;H=o;A=h;I=j&65535;q=d;t=e&65535;D=(e^j)&-2147483648;p=j>>>16&32767;a:{w=e>>>16&32767;b:{c:{if(p+ -1>>>0<32766?w+ -1>>>0<=32765:0){break c}n=e&2147483647;k=n;m=d;if(!(!d&(k|0)==2147418112?!(b|c):(k|0)==2147418112&d>>>0<0|k>>>0<2147418112)){L=d;D=e|32768;break b}n=j&2147483647;e=n;d=h;if(!(!d&(e|0)==2147418112?!(f|g):(e|0)==2147418112&d>>>0<0|e>>>0<2147418112)){L=h;D=j|32768;b=f;c=g;break b}if(!(b|m|(k^2147418112|c))){if(!(d|f|(e^2147418112|g))){b=0;c=0;D=2147450880;break b}D=D|2147418112;b=0;c=0;break b}if(!(d|f|(e^2147418112|g))){b=0;c=0;break b}if(!(b|m|(c|k))){break a}if(!(d|f|(e|g))){D=D|2147418112;b=0;c=0;break b}if((k|0)==65535|k>>>0<65535){j=b;d=!(q|t);h=d<<6;k=r(d?b:q)+32|0;b=r(d?c:t);b=h+((b|0)==32?k:b)|0;un(o+176|0,j,c,q,t,b+ -15|0);l=16-b|0;q=i[o+184>>2];t=i[o+188>>2];c=i[o+180>>2];b=i[o+176>>2]}if(e>>>0>65535){break c}d=!(A|I);e=d<<6;h=r(d?f:A)+32|0;d=r(d?g:I);d=e+((d|0)==32?h:d)|0;un(o+160|0,f,g,A,I,d+ -15|0);l=(d+l|0)+ -16|0;A=i[o+168>>2];I=i[o+172>>2];f=i[o+160>>2];g=i[o+164>>2]}e=I|65536;K=e;P=A;d=A;n=e<<15|d>>>17;d=d<<15|g>>>17;h=-102865788-d|0;e=n;k=e;j=1963258675-(k+(4192101508>>0)|0)|0;Dn(o+144|0,d,k,h,j);m=i[o+152>>2];Dn(o+128|0,0-m|0,0-(i[o+156>>2]+(0>>0)|0)|0,h,j);h=i[o+136>>2];j=h<<1|i[o+132>>2]>>>31;h=i[o+140>>2]<<1|h>>>31;Dn(o+112|0,j,h,d,k);m=h;h=i[o+120>>2];Dn(o+96|0,j,m,0-h|0,0-(i[o+124>>2]+(0>>0)|0)|0);h=i[o+104>>2];j=h<<1|i[o+100>>2]>>>31;h=i[o+108>>2]<<1|h>>>31;Dn(o+80|0,j,h,d,k);m=h;h=i[o+88>>2];Dn(o- -64|0,j,m,0-h|0,0-(i[o+92>>2]+(0>>0)|0)|0);h=i[o+72>>2];j=h<<1|i[o+68>>2]>>>31;h=i[o+76>>2]<<1|h>>>31;Dn(o+48|0,j,h,d,k);m=h;h=i[o+56>>2];Dn(o+32|0,j,m,0-h|0,0-(i[o+60>>2]+(0>>0)|0)|0);h=i[o+40>>2];j=h<<1|i[o+36>>2]>>>31;h=i[o+44>>2]<<1|h>>>31;Dn(o+16|0,j,h,d,k);k=h;h=i[o+24>>2];Dn(o,j,k,0-h|0,0-(i[o+28>>2]+(0>>0)|0)|0);N=(w-p|0)+l|0;h=i[o+8>>2];m=i[o+12>>2]<<1|h>>>31;j=h<<1;n=m+ -1|0;j=(i[o+4>>2]>>>31|j)+ -1|0;if((j|0)!=-1){n=n+1|0}h=j;m=0;B=m;s=e;l=0;w=xp(h,m,e,l);e=J;u=e;y=n;p=0;h=d;m=xp(n,p,d,0);d=m+w|0;k=J+e|0;e=d;k=d>>>0>>0?k+1|0:k;m=0;n=(k|0)==(u|0)&e>>>0>>0|k>>>0>>0;w=xp(s,l,y,p);l=w+k|0;k=J+(m|n)|0;k=l>>>0>>0?k+1|0:k;m=l;n=e;e=0;h=xp(j,B,h,v);d=e+h|0;l=J+n|0;l=d>>>0>>0?l+1|0:l;w=d;h=d;d=l;e=(n|0)==(d|0)&h>>>0>>0|d>>>0>>0;h=m+e|0;if(h>>>0>>0){k=k+1|0}C=h;h=k;e=g;z=(e&131071)<<15|f>>>17;s=xp(j,B,z,0);e=J;v=e;k=f;x=k<<15&-32768;k=xp(y,p,x,0);m=k+s|0;l=J+e|0;l=m>>>0>>0?l+1|0:l;e=l;F=xp(j,B,x,F);x=0+F|0;k=m;l=k+J|0;l=x>>>0>>0?l+1|0:l;l=(k|0)==(l|0)&x>>>0>>0|l>>>0>>0;k=(e|0)==(v|0)&k>>>0>>0|e>>>0>>0;m=e;e=xp(y,p,z,E)+e|0;n=k+J|0;n=e>>>0>>0?n+1|0:n;k=e;e=l+k|0;m=n;m=e>>>0>>0?m+1|0:m;n=e;e=w+e|0;k=m+d|0;k=e>>>0>>0?k+1|0:k;l=h;u=k;d=(d|0)==(k|0)&e>>>0>>0|k>>>0>>0;h=d+C|0;if(h>>>0>>0){l=l+1|0}k=l;d=(e|0)!=0|(u|0)!=0;h=h+d|0;if(h>>>0>>0){k=k+1|0}n=h;h=0-h|0;s=0;w=xp(h,s,j,B);d=J;v=d;x=xp(y,p,h,s);h=J;C=h;z=0-((0>>0)+k|0)|0;k=0;s=xp(j,B,z,k);n=s+x|0;l=J+h|0;l=n>>>0>>0?l+1|0:l;h=n;m=h;s=0+w|0;n=d+m|0;n=s>>>0>>0?n+1|0:n;m=s;d=n;n=(v|0)==(d|0)&m>>>0>>0|d>>>0>>0;m=(l|0)==(C|0)&h>>>0>>0|l>>>0>>0;h=xp(y,p,z,k)+l|0;k=m+J|0;k=h>>>0>>0?k+1|0:k;m=h;h=n+m|0;if(h>>>0>>0){k=k+1|0}z=h;h=k;n=s;m=0-((0>>0)+u|0)|0;e=0-e|0;E=m;u=0;C=xp(m,u,j,B);x=J;v=e;F=0;m=xp(e,F,y,p);e=m+C|0;l=J+x|0;l=e>>>0>>0?l+1|0:l;m=e;e=l;v=xp(j,B,v,F);j=0+v|0;k=m;l=k+J|0;l=j>>>0>>0?l+1|0:l;l=(k|0)==(l|0)&j>>>0>>0|l>>>0>>0;k=(e|0)==(x|0)&k>>>0>>0|e>>>0>>0;j=e;e=xp(E,u,y,p)+e|0;m=k+J|0;m=e>>>0>>0?m+1|0:m;j=e;e=l+e|0;k=m;k=e>>>0>>0?k+1|0:k;j=e;e=e+n|0;k=k+d|0;k=e>>>0>>0?k+1|0:k;j=e;l=h;e=k;d=(d|0)==(k|0)&j>>>0>>0|k>>>0>>0;h=d+z|0;if(h>>>0>>0){l=l+1|0}d=h;k=l;l=d;n=e+ -1|0;d=j+ -2|0;if(d>>>0<4294967294){n=n+1|0}h=d;m=d;d=n;e=(e|0)==(d|0)&m>>>0>>0|d>>>0>>0;j=l+e|0;if(j>>>0>>0){k=k+1|0}e=j+ -1|0;l=k+ -1|0;l=(e|0)!=-1?l+1|0:l;j=0;y=j;p=e;m=q;x=m<<2|c>>>30;z=0;u=xp(e,j,x,z);j=J;m=j;j=c;E=(j&1073741823)<<2|b>>>30;w=0;F=l;j=0;k=xp(E,w,l,j);e=k+u|0;n=J+m|0;n=e>>>0>>0?n+1|0:n;k=e;s=n;v=(m|0)==(n|0)&k>>>0>>0|n>>>0>>0;m=n;n=0;u=n;l=0;C=d;G=((t&1073741823)<<2|q>>>30)&-262145|262144;e=xp(d,n,G,0);d=e+k|0;m=J+m|0;m=d>>>0>>0?m+1|0:m;q=d;e=m;d=(s|0)==(e|0)&d>>>0>>0|e>>>0>>0;m=d+v|0;if(m>>>0>>0){l=1}c=m;m=xp(F,j,G,M);d=c+m|0;k=J+l|0;s=d;n=d>>>0>>0?k+1|0:k;l=xp(p,y,G,M);k=J;t=xp(x,z,F,j);d=t+l|0;m=J+k|0;m=d>>>0>>0?m+1|0:m;t=d;d=m;m=(k|0)==(d|0)&t>>>0>>0|d>>>0>>0;s=d+s|0;l=m+n|0;k=s;m=k>>>0>>0?l+1|0:l;c=k;n=e+t|0;l=0;d=l+q|0;if(d>>>0>>0){n=n+1|0}t=d;k=d;d=n;e=(e|0)==(d|0)&k>>>0>>0|d>>>0>>0;k=c+e|0;if(k>>>0>>0){m=m+1|0}Q=k;e=t;l=d;q=xp(E,w,C,u);n=J;s=h;v=xp(h,0,x,z);h=v+q|0;k=J+n|0;k=h>>>0>>0?k+1|0:k;B=h;v=h;h=k;q=(n|0)==(k|0)&v>>>0>>0|k>>>0>>0;c=e;k=0;S=q;O=b<<2&-4;q=xp(p,y,O,0);e=q+v|0;n=J+h|0;n=e>>>0>>0?n+1|0:n;v=e;q=e;e=n;h=(h|0)==(e|0)&q>>>0>>0|e>>>0>>0;n=S+h|0;if(n>>>0>>0){k=1}h=c+n|0;l=k+l|0;l=h>>>0>>0?l+1|0:l;q=h;n=m;h=l;d=(d|0)==(l|0)&q>>>0>>0|l>>>0>>0;m=d+Q|0;if(m>>>0>>0){n=n+1|0}c=m;t=q;B=h;Q=xp(F,j,O,R);F=J;j=xp(s,T,G,M);d=j+Q|0;m=J+F|0;m=d>>>0>>0?m+1|0:m;G=d;k=xp(x,z,C,u);d=d+k|0;j=m;l=m+J|0;l=d>>>0>>0?l+1|0:l;x=d;m=xp(p,y,E,w);d=d+m|0;k=J+l|0;p=d;k=d>>>0>>0?k+1|0:k;y=0;m=n;d=k;k=(k|0)==(l|0)&p>>>0>>0|k>>>0>>0;n=(j|0)==(F|0)&G>>>0>>0|j>>>0>>0;j=(j|0)==(l|0)&x>>>0>>0|l>>>0>>0;n=n+j|0;n>>>0>>0;l=n;j=k+l|0;l=j;k=d|0;j=k+t|0;l=(l|y)+B|0;l=j>>>0>>0?l+1|0:l;B=j;t=l;h=(h|0)==(l|0)&j>>>0>>0|l>>>0>>0;j=h+c|0;if(j>>>0>>0){m=m+1|0}z=j;j=m;q=B;y=t;l=v;C=xp(C,u,O,R);u=J;m=xp(E,w,s,T);h=m+C|0;n=J+u|0;n=h>>>0>>0?n+1|0:n;m=n;n=0;k=(m|0)==(u|0)&h>>>0>>0|m>>>0>>0;h=m+l|0;l=(k|n)+e|0;l=h>>>0>>0?l+1|0:l;m=h;k=m;k=(e|0)==(l|0)&k>>>0>>0|l>>>0>>0;e=l;c=k;l=p;p=0;d=p+m|0;k=e+l|0;k=d>>>0

>>0?k+1|0:k;d=(e|0)==(k|0)&d>>>0>>0|k>>>0>>0;e=c+d|0;if(e>>>0>>0){n=1}d=e+q|0;m=n+y|0;h=d;k=j;m=d>>>0>>0?m+1|0:m;j=m;d=(t|0)==(m|0)&d>>>0>>0|m>>>0>>0;e=d+z|0;if(e>>>0>>0){k=k+1|0}d=e;e=k;d:{if((k|0)==131071|k>>>0<131071){m=h;y=0;x=0;n=xp(m,y,f,x);l=J;k=b<<17;b=0;c=(n|0)!=0|(l|0)!=0;q=b-c|0;G=k-(b>>>0>>0)|0;w=0-n|0;u=0-((0>>0)+l|0)|0;c=0;z=xp(j,c,f,x);b=J;E=b;p=0;l=xp(m,y,g,p);k=l+z|0;n=J+b|0;n=k>>>0>>0?n+1|0:n;b=k;l=k;s=0;k=s;v=l;k=(l|0)==(u|0)&w>>>0>>0|u>>>0>>0;B=q-k|0;q=G-(q>>>0>>0)|0;k=xp(d,0,f,x);l=J;t=xp(m,y,A,0);k=t+k|0;m=J+l|0;m=k>>>0>>0?m+1|0:m;t=xp(j,c,g,p);k=t+k|0;l=J+m|0;l=k>>>0>>0?l+1|0:l;m=l;l=(n|0)==(E|0)&b>>>0>>0|n>>>0>>0;b=n+k|0;l=l+m|0;l=b>>>0>>0?l+1|0:l;n=b;b=l;m=xp(h,j,K,0);l=J;t=n;n=xp(f,g,e,0);m=n+m|0;k=J+l|0;k=m>>>0>>0?k+1|0:k;n=xp(d,e,g,p);m=n+m|0;l=J+k|0;k=m;m=xp(j,c,A,I);c=k+m|0;k=c;m=0;c=t+m|0;k=b+k|0;b=c;t=B-b|0;c=q-((B>>>0>>0)+(b>>>0>>0?k+1|0:k)|0)|0;N=N+ -1|0;A=w-s|0;b=u-((w>>>0>>0)+v|0)|0;break d}B=j>>>1|0;n=0;m=b<<16;c=0;l=d<<31;h=(j&1)<<31|h>>>1;j=j>>>1|l;z=0;p=f;E=0;b=xp(h,z,p,E);k=J;l=k;k=(b|0)!=0|(k|0)!=0;u=c-k|0;M=m-(c>>>0>>0)|0;s=0-b|0;v=0-((0>>0)+l|0)|0;q=0;w=xp(h,z,g,q);b=J;G=b;m=n;l=e<<31|d>>>1;n=d<<31|B;O=l|m;m=xp(n,0,p,E);c=m+w|0;k=J+b|0;k=c>>>0>>0?k+1|0:k;b=k;k=c;x=k;y=0;m=(k|0)==(v|0)&s>>>0>>0|v>>>0>>0;C=u-m|0;u=M-(u>>>0>>0)|0;m=xp(h,j,K,0);l=J;k=xp(p,g,e>>>1|0,0);m=k+m|0;l=J+l|0;l=m>>>0>>0?l+1|0:l;d=(e&1)<<31|d>>>1;e=e>>>1|0;M=xp(d,e,g,q);m=M+m|0;k=J+l|0;l=xp(n,O,A,I);m=l+m|0;I=0;k=xp(g,q,n,R);l=J;p=xp(d,0,p,E);n=p+k|0;k=J+l|0;k=n>>>0

>>0?k+1|0:k;A=xp(h,z,A,0);n=A+n|0;l=J+k|0;l=n>>>0>>0?l+1|0:l;A=n;n=((b|0)==(G|0)&c>>>0>>0|b>>>0>>0)+l|0;c=b;b=b+A|0;if(b>>>0>>0){n=n+1|0}c=b;b=b+I|0;k=m+n|0;k=b>>>0>>0?k+1|0:k;t=C-b|0;c=u-((C>>>0>>0)+k|0)|0;A=s-y|0;b=v-((s>>>0>>0)+x|0)|0}if((N|0)>=16384){D=D|2147418112;b=0;c=0;break b}m=N+16383|0;if((N|0)<=-16383){e:{if(m){break e}m=j;p=A;l=b<<1|p>>>31;n=p<<1;g=(g|0)==(l|0)&n>>>0>f>>>0|l>>>0>g>>>0;n=e&65535;f=t;l=c<<1|f>>>31;c=f<<1|b>>>31;e=c;b=(e|0)==(P|0)&(l|0)==(K|0)?g:(K|0)==(l|0)&e>>>0>P>>>0|l>>>0>K>>>0;c=b+h|0;if(c>>>0>>0){m=m+1|0}b=c;e=b;c=m;e=d+((j|0)==(m|0)&e>>>0>>0|m>>>0>>0)|0;if(e>>>0>>0){n=n+1|0}d=n;if(!(d&65536)){break e}L=e|L;D=d|D;break b}b=0;c=0;break b}k=j;e=e&65535;p=A;n=b<<1|p>>>31;p=p<<1;g=(g|0)==(n|0)&p>>>0>=f>>>0|n>>>0>g>>>0;f=t;n=c<<1|f>>>31;c=f<<1|b>>>31;b=(c|0)==(P|0)&(n|0)==(K|0)?g:(K|0)==(n|0)&c>>>0>=P>>>0|n>>>0>K>>>0;c=b+h|0;if(c>>>0>>0){k=k+1|0}b=c;c=k;f=d;d=((j|0)==(k|0)&b>>>0>>0|k>>>0>>0)+d|0;k=m<<16|e;L=d|L;D=D|(d>>>0>>0?k+1|0:k)}i[a>>2]=b;i[a+4>>2]=c;i[a+8>>2]=L;i[a+12>>2]=D;H=o+192|0;return}i[a>>2]=0;i[a+4>>2]=0;b=!(d|f|(e|g));i[a+8>>2]=b?0:L;i[a+12>>2]=b?2147450880:D;H=o+192|0}function ee(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var h=0,k=0,l=0,m=0,n=0,p=0,r=0,t=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;k=H-240|0;H=k;i[a+8>>2]=e;l=a+32|0;h=i[l>>2];f=i[a+36>>2]-h>>2;a:{if(f>>>0>>0){Cd(l,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=h+(e<<2)}b:{if(!d){break b}m=1;h=i[b>>2];c:{if((d|0)<=1){l=h;break c}l=h;while(1){f=i[(m<<2)+b>>2];n=(f|0)<(l|0);l=n?f:l;h=n?h:(f|0)>(h|0)?f:h;m=m+1|0;if((m|0)!=(d|0)){continue}break}}i[a+16>>2]=h;i[a+12>>2]=l;d=l;f=(h>>31)-((h>>>0>>0)+(d>>31)|0)|0;d=h-d|0;if(!f&d>>>0>2147483646|f>>>0>0){break b}d=d+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}V=i[a+52>>2];O=i[a+48>>2];i[k+200>>2]=0;i[k+204>>2]=0;i[k+192>>2]=0;i[k+196>>2]=0;i[k+184>>2]=0;i[k+188>>2]=0;d=k+176|0;i[d>>2]=0;i[d+4>>2]=0;i[k+168>>2]=0;i[k+172>>2]=0;i[k+160>>2]=0;i[k+164>>2]=0;d:{if(!e){m=0;d=0;break d}Cd(k+160|0,e);m=i[d>>2];d=i[k+172>>2]}f=m-d>>2;e:{if(f>>>0>=e>>>0){if(f>>>0<=e>>>0){break e}i[k+176>>2]=d+(e<<2);break e}Cd(k+160|12,e-f|0)}f=i[k+184>>2];d=i[k+188>>2]-f>>2;f:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break f}i[k+188>>2]=f+(e<<2);break f}Cd(k+184|0,e-d|0)}f=i[k+196>>2];d=i[k+200>>2]-f>>2;g:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break g}i[k+200>>2]=f+(e<<2);break g}Cd(k+196|0,e-d|0)}i[k+152>>2]=0;i[k+144>>2]=0;i[k+148>>2]=0;h:{i:{if(e){if(e>>>0>=1073741824){break i}d=e<<2;f=ko(d);i[k+144>>2]=f;l=d+f|0;i[k+152>>2]=l;lp(f,0,d);i[k+148>>2]=l}I=a+152|0;f=i[a+152>>2];d=i[a+156>>2]-f>>2;j:{if(d>>>0>>0){Cd(I,e-d|0);break j}if(d>>>0<=e>>>0){break j}i[a+156>>2]=f+(e<<2)}i[k+120>>2]=0;i[k+124>>2]=0;i[k+112>>2]=0;i[k+116>>2]=0;i[k+104>>2]=0;i[k+108>>2]=0;i[k+96>>2]=0;i[k+100>>2]=0;i[k+88>>2]=0;i[k+92>>2]=0;i[k+80>>2]=0;i[k+84>>2]=0;i[k+72>>2]=0;i[k+76>>2]=0;i[k+64>>2]=0;i[k+68>>2]=0;i[k+56>>2]=0;i[k+48>>2]=0;i[k+52>>2]=0;if(e){d=e<<2;A=ko(d);i[k+48>>2]=A;K=d+A|0;i[k+56>>2]=K;lp(A,0,d);i[k+52>>2]=K}d=i[a+56>>2];m=i[d>>2];d=i[d+4>>2]-m|0;if((d|0)<5){break h}G=d>>>2|0;l=G+ -1|0;if(d>>2>>>0>l>>>0){P=e<<2;L=a+112|0;W=k+141|0;Q=k+36|0;R=k+24|0;M=k+20|0;X=M+24|0;S=M+16|0;F=(e|0)<1;while(1){n=0;B=l;l=i[(l<<2)+m>>2];k:{if((l|0)==-1){break k}m=i[O+12>>2];C=l+((l>>>0)%3|0?-1:2)|0;D=m+(C<<2)|0;t=1;p=0;d=l;while(1){h=i[m+(d<<2)>>2];l:{if((h|0)==-1){break l}f=-1;r=i[V>>2];n=i[O>>2];y=i[r+(i[n+(h<<2)>>2]<<2)>>2];w=h+1|0;w=(w>>>0)%3|0?w:h+ -2|0;if((w|0)!=-1){w=i[n+(w<<2)>>2]}else{w=-1}h=h+((h>>>0)%3|0?-1:2)|0;if((h|0)!=-1){f=i[n+(h<<2)>>2]}if((y|0)>=(B|0)){break l}h=i[(w<<2)+r>>2];if((h|0)>=(B|0)){break l}f=i[r+(f<<2)>>2];if((f|0)>=(B|0)){break l}n=i[(k+160|0)+o(p,12)>>2];if(!F){f=o(e,f);r=o(e,h);y=o(e,y);h=0;while(1){i[n+(h<<2)>>2]=(i[(f+h<<2)+b>>2]+i[(h+r<<2)+b>>2]|0)-i[(h+y<<2)+b>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}n=4;p=p+1|0;if((p|0)==4){break k}}m:{if(t&1){n=d+1|0;d=(n>>>0)%3|0?n:d+ -2|0;f=-1;if((d|0)==-1){break m}d=i[m+(d<<2)>>2];f=-1;if((d|0)==-1){break m}f=d+1|0;f=(f>>>0)%3|0?f:d+ -2|0;break m}d=((d>>>0)%3|0?-1:2)+d|0;f=-1;if((d|0)==-1){break m}d=i[m+(d<<2)>>2];f=-1;if((d|0)==-1){break m}f=d+ -1|0;if((d>>>0)%3|0){break m}f=d+2|0}if((f|0)==(l|0)){n=p;break k}d=f;f=(f|0)!=-1;h=(f|t^-1)&1;d=h?d:-1;t=f&t;if(!((C|0)==-1|h)){f=i[D>>2];if((f|0)==-1){n=p;break k}t=0;if((f>>>0)%3|0){d=f+ -1|0}else{d=f+2|0}}n=p;if((d|0)!=-1){continue}break}}m=0;g[k+16|0]=0;i[k+8>>2]=0;i[k+12>>2]=0;i[X>>2]=0;i[S>>2]=0;i[S+4>>2]=0;d=M;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;T=o(e,B)<<2;C=T+b|0;p=(o(G+ -2|0,e)<<2)+b|0;h=i[a+152>>2];l=0;if(!F){while(1){f=l<<2;d=i[f+p>>2]-i[f+C>>2]|0;i[f+A>>2]=d;i[f+h>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;f=d;d=d>>31;m=(f+d^d)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}eg(k+216|0,L,h,e);d=hg(k+216|0);l=J;h=ig(k+216|0);f=h+d|0;d=J+l|0;d=f>>>0>>0?d+1|0:d;l=f;N=(n|0)<1;if(!N){r=(n<<3)+ -8|0;h=r+(k- -64|0)|0;y=h;t=h;f=i[h+4>>2];w=i[h>>2];h=n;w=w+h|0;if(w>>>0>>0){f=f+1|0}h=w;i[t>>2]=h;i[y+4>>2]=f;z=v(cg(h,i[r+(k+96|0)>>2])*(+(h>>>0)+ +(f|0)*4294967296));n:{if(q(z)<0x8000000000000000){h=q(z)>=1?z>0?~~s(u(z/4294967296),4294967295)>>>0:~~v((z- +(~~z>>>0>>>0))/4294967296)>>>0:0;f=~~z>>>0;break n}h=-2147483648;f=0}d=d+h|0;f=f+l|0;if(f>>>0>>0){d=d+1|0}l=f}i[k+20>>2]=0;g[k+16|0]=0;i[k+8>>2]=l;i[k+12>>2]=m;ta(R,p,p+P|0);Id(Q,A,K);if(!N){y=(k+140|0)+n|0;w=y+ -2|0;r=y+ -1|0;d=(n<<3)+ -8|0;U=d+(k- -64|0)|0;Y=d+(k+96|0)|0;p=1;D=0;while(1){lp(k+140|0,1,n);D=D+1|0;lp(k+140|0,0,D);Z=i[k+52>>2];_=i[k+48>>2];o:{p:while(1){if(!F){lp(i[k+144>>2],0,P)}d=0;f=i[k+144>>2];t=0;while(1){if(!j[(k+140|0)+d|0]){if(!F){l=i[(k+160|0)+o(d,12)>>2];h=0;while(1){m=h<<2;E=m+f|0;i[E>>2]=i[E>>2]+i[l+m>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}t=1<>2];while(1){f=d+(h<<2)|0;i[f>>2]=i[f>>2]/(p|0);h=h+1|0;if((h|0)!=(e|0)){continue}break}if((e|0)>0){break r}}f=i[a+152>>2];m=0;break q}E=i[k+144>>2];f=i[a+152>>2];m=0;l=0;while(1){h=l<<2;d=i[h+E>>2]-i[h+C>>2]|0;i[h+A>>2]=d;i[f+h>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;h=d;d=d>>31;m=(h+d^d)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}eg(k+216|0,L,f,e);f=hg(k+216|0)+ig(k+216|0)|0;h=f;if((n|0)>0){d=i[U+4>>2];f=i[U>>2];z=v(cg(f,i[Y>>2]+p|0)*(+(f>>>0)+ +(d|0)*4294967296));s:{if(q(z)<0x8000000000000000){d=~~z>>>0;break s}d=0}h=d+h|0}d=i[k+8>>2];if(!((h|0)>(d|0)|(m|0)>=i[k+12>>2]?(h|0)>=(d|0):0)){i[k+20>>2]=p;g[k+16|0]=t;i[k+8>>2]=h;i[k+12>>2]=m;Id(R,i[k+144>>2],i[k+148>>2]);Id(Q,_,Z)}if((r|0)==(k+140|0)){break o}m=-1;d=j[r|0];h=d;while(1){l=h&255;f=m+ -1|0;t=f+y|0;h=j[t|0];if(h>>>0>>0){f=r;l=y;if(h>>>0>=(d&255)>>>0){while(1){d=f;f=d+ -1|0;E=l+ -2|0;l=d;if(h>>>0>=j[E|0]){continue}break}d=1}l=m+y|0;g[t|0]=d;g[f|0]=h;h=r;if((m|0)==-1){continue p}while(1){d=j[l|0];g[l|0]=j[h|0];g[h|0]=d;l=l+1|0;h=h+ -1|0;if(l>>>0>>0){continue}break}continue p}m=f;if((t|0)!=(k+140|0)){continue}break}break}if(r>>>0<=k+140>>>0){break o}f=j[k+140|0];g[k+140|0]=d;g[r|0]=f;m=W;h=w;if(m>>>0>=h>>>0){break o}while(1){d=j[m|0];g[m|0]=j[h|0];g[h|0]=d;m=m+1|0;h=h+ -1|0;if(m>>>0>>0){continue}break}}p=p+1|0;if((n|0)!=(D|0)){continue}break}}if((n|0)>0){d=((n<<3)+k|0)+88|0;l=d;h=i[k+20>>2];f=h+i[d>>2]|0;d=i[d+4>>2]+(h>>31)|0;i[l>>2]=f;i[l+4>>2]=f>>>0>>0?d+1|0:d}t:{if((e|0)<=0){l=i[I>>2];break t}l=i[I>>2];h=0;f=i[k+36>>2];while(1){m=h<<2;d=i[m+f>>2];i[l+m>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;h=h+1|0;if((h|0)!=(e|0)){continue}break}}gg(k+216|0,L,l,e);u:{if(N){break u}d=o(n,12)+a|0;r=d+56|0;l=d+52|0;d=d+48|0;m=0;while(1){v:{p=i[r>>2];f=p<<5;h=i[l>>2];w:{if(!(j[k+16|0]>>>m&1)){if((f|0)==(h|0)){if((h+1|0)<=-1){break v}f=d;if(h>>>0<=1073741822){h=h+32&-32;p=p<<6;h=p>>>0>>0?h:p}else{h=2147483647}cd(f,h);h=i[l>>2]}i[l>>2]=h+1;f=i[d>>2]+(h>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<<(h&31);break w}if((f|0)==(h|0)){if((h+1|0)<=-1){break v}f=d;if(h>>>0<=1073741822){h=h+32&-32;p=p<<6;h=p>>>0>>0?h:p}else{h=2147483647}cd(f,h);h=i[l>>2]}i[l>>2]=h+1;f=i[d>>2]+(h>>>3&536870908)|0;p=i[f>>2];$=f,aa=Bp(-2,h)&p,i[$>>2]=aa}m=m+1|0;if((n|0)!=(m|0)){continue}break u}break}Ko();x()}m=i[a+8>>2];if((m|0)>=1){p=c+T|0;d=i[k+24>>2];n=0;while(1){h=0;x:{if((m|0)<=0){f=i[a+32>>2];break x}while(1){l=h<<2;m=i[l+d>>2];r=i[a+16>>2];y:{if((m|0)>(r|0)){f=i[a+32>>2];i[l+f>>2]=r;break y}f=i[a+32>>2];l=l+f|0;r=i[a+12>>2];if((m|0)<(r|0)){i[l>>2]=r;break y}i[l>>2]=m}h=h+1|0;if((h|0)>2]){continue}break}}l=n<<2;d=l+p|0;l=i[l+C>>2]-i[f+l>>2]|0;i[d>>2]=l;z:{if((l|0)>2]){h=l+i[a+20>>2]|0}else{if((l|0)<=i[a+24>>2]){break z}h=l-i[a+20>>2]|0}i[d>>2]=h}d=f;n=n+1|0;m=i[a+8>>2];if((n|0)<(m|0)){continue}break}}d=i[k+36>>2];if(d){i[k+40>>2]=d;ep(d)}d=i[k+24>>2];if(d){i[k+28>>2]=d;ep(d)}if((G|0)<3){break h}G=B;d=i[a+56>>2];m=i[d>>2];l=B+ -1|0;if(i[d+4>>2]-m>>2>>>0>l>>>0){continue}break}}Lo();x()}Ko();x()}if((e|0)>=1){lp(i[k+160>>2],0,e<<2)}m=i[a+8>>2];if((m|0)>=1){f=i[k+160>>2];d=0;while(1){h=0;A:{if((m|0)<=0){m=i[a+32>>2];break A}while(1){e=h<<2;l=i[e+f>>2];n=i[a+16>>2];B:{if((l|0)>(n|0)){m=i[a+32>>2];i[e+m>>2]=n;break B}m=i[a+32>>2];e=e+m|0;n=i[a+12>>2];if((l|0)<(n|0)){i[e>>2]=n;break B}i[e>>2]=l}h=h+1|0;if((h|0)>2]){continue}break}}f=d<<2;e=f+c|0;f=i[b+f>>2]-i[f+m>>2]|0;i[e>>2]=f;C:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break C}f=f-i[a+20>>2]|0}i[e>>2]=f}f=m;d=d+1|0;m=i[a+8>>2];if((d|0)<(m|0)){continue}break}}a=i[k+48>>2];if(a){i[k+52>>2]=a;ep(a)}a=i[k+144>>2];if(a){i[k+148>>2]=a;ep(a)}a=i[k+196>>2];if(a){i[k+200>>2]=a;ep(a)}a=i[k+184>>2];if(a){i[k+188>>2]=a;ep(a)}a=i[k+172>>2];if(a){i[k+176>>2]=a;ep(a)}a=i[k+160>>2];if(a){i[k+164>>2]=a;ep(a)}H=k+240|0;return 1}function nn(a,b,c,d,e,f){var g=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0;g=H-8976|0;H=g;y=d+e|0;E=0-y|0;a:{b:{while(1){c:{if((c|0)!=48){if((c|0)!=46){break a}c=i[b+4>>2];if(c>>>0>=l[b+104>>2]){break c}i[b+4>>2]=c+1;c=j[c|0];break b}c=i[b+4>>2];if(c>>>0>2]){k=1;i[b+4>>2]=c+1;c=j[c|0]}else{k=1;c=hn(b)}continue}break}c=hn(b)}n=1;if((c|0)!=48){break a}while(1){h=h+ -1|0;c=m+ -1|0;if((c|0)!=-1){h=h+1|0}m=c;c=i[b+4>>2];d:{if(c>>>0>2]){i[b+4>>2]=c+1;c=j[c|0];break d}c=hn(b)}if((c|0)==48){continue}break}k=1}i[g+784>>2]=0;e:{f:{s=(c|0)==46;r=c+ -48|0;g:{h:{i:{if(s|r>>>0<=9){while(1){j:{if(s&1){if(!n){m=q;h=p;n=1;break j}k=!k;break i}q=q+1|0;if(q>>>0<1){p=p+1|0}if((t|0)<=2044){x=(c|0)==48?x:q;k=(g+784|0)+(t<<2)|0;s=k;if(u){r=(o(i[k>>2],10)+c|0)+ -48|0}i[s>>2]=r;k=1;r=u+1|0;c=(r|0)==9;u=c?0:r;t=c+t|0;break j}if((c|0)==48){break j}i[g+8960>>2]=i[g+8960>>2]|1;x=18396}c=i[b+4>>2];k:{if(c>>>0>2]){i[b+4>>2]=c+1;c=j[c|0];break k}c=hn(b)}s=(c|0)==46;r=c+ -48|0;if(s|r>>>0<10){continue}break}}m=n?m:q;h=n?h:p;if(!(!k|(c&-33)!=69)){n=on(b);c=J;s=c;l:{if(n|(c|0)!=-2147483648){break l}n=0;s=0;if(!i[b+104>>2]){break l}i[b+4>>2]=i[b+4>>2]+ -1}if(!k){break g}h=h+s|0;b=m+n|0;if(b>>>0>>0){h=h+1|0}m=b;break f}k=!k;if((c|0)<0){break h}}if(!i[b+104>>2]){break h}i[b+4>>2]=i[b+4>>2]+ -1}if(!k){break f}}i[4805]=28;q=0;p=0;gn(b);c=0;b=0;break e}b=i[g+784>>2];if(!b){zn(g,+(f|0)*0);q=i[g>>2];p=i[g+4>>2];c=i[g+12>>2];b=i[g+8>>2];break e}if(!((m|0)!=(q|0)|(h|0)!=(p|0)|((p|0)>0?1:(p|0)>=0?q>>>0>9:0)|(b>>>d|0?(d|0)<=30:0))){Cn(g+48|0,f);Gn(g+32|0,b);An(g+16|0,i[g+48>>2],i[g+52>>2],i[g+56>>2],i[g+60>>2],i[g+32>>2],i[g+36>>2],i[g+40>>2],i[g+44>>2]);q=i[g+16>>2];p=i[g+20>>2];c=i[g+28>>2];b=i[g+24>>2];break e}if((h|0)>0?1:(h|0)>=0?m>>>0>(e|0)/-2>>>0:0){i[4805]=68;Cn(g+96|0,f);An(g+80|0,i[g+96>>2],i[g+100>>2],i[g+104>>2],i[g+108>>2],-1,-1,-1,2147418111);An(g- -64|0,i[g+80>>2],i[g+84>>2],i[g+88>>2],i[g+92>>2],-1,-1,-1,2147418111);q=i[g+64>>2];p=i[g+68>>2];c=i[g+76>>2];b=i[g+72>>2];break e}b=e+ -226|0;c=m>>>0>>0;b=b>>31;if((h|0)<(b|0)?1:(h|0)<=(b|0)?c:0){i[4805]=68;Cn(g+144|0,f);An(g+128|0,i[g+144>>2],i[g+148>>2],i[g+152>>2],i[g+156>>2],0,0,0,65536);An(g+112|0,i[g+128>>2],i[g+132>>2],i[g+136>>2],i[g+140>>2],0,0,0,65536);q=i[g+112>>2];p=i[g+116>>2];c=i[g+124>>2];b=i[g+120>>2];break e}if(u){if((u|0)<=8){c=(g+784|0)+(t<<2)|0;b=i[c>>2];while(1){b=o(b,10);u=u+1|0;if((u|0)!=9){continue}break}i[c>>2]=b}t=t+1|0}m:{n=m;if((x|0)>(n|0)|(x|0)>=9|(n|0)>17){break m}if((n|0)==9){Cn(g+192|0,f);Gn(g+176|0,i[g+784>>2]);An(g+160|0,i[g+192>>2],i[g+196>>2],i[g+200>>2],i[g+204>>2],i[g+176>>2],i[g+180>>2],i[g+184>>2],i[g+188>>2]);q=i[g+160>>2];p=i[g+164>>2];c=i[g+172>>2];b=i[g+168>>2];break e}if((n|0)<=8){Cn(g+272|0,f);Gn(g+256|0,i[g+784>>2]);An(g+240|0,i[g+272>>2],i[g+276>>2],i[g+280>>2],i[g+284>>2],i[g+256>>2],i[g+260>>2],i[g+264>>2],i[g+268>>2]);Cn(g+224|0,i[(0-n<<2)+17616>>2]);En(g+208|0,i[g+240>>2],i[g+244>>2],i[g+248>>2],i[g+252>>2],i[g+224>>2],i[g+228>>2],i[g+232>>2],i[g+236>>2]);q=i[g+208>>2];p=i[g+212>>2];c=i[g+220>>2];b=i[g+216>>2];break e}b=(o(n,-3)+d|0)+27|0;c=i[g+784>>2];if(c>>>b|0?(b|0)<=30:0){break m}Cn(g+352|0,f);Gn(g+336|0,c);An(g+320|0,i[g+352>>2],i[g+356>>2],i[g+360>>2],i[g+364>>2],i[g+336>>2],i[g+340>>2],i[g+344>>2],i[g+348>>2]);Cn(g+304|0,i[(n<<2)+17544>>2]);An(g+288|0,i[g+320>>2],i[g+324>>2],i[g+328>>2],i[g+332>>2],i[g+304>>2],i[g+308>>2],i[g+312>>2],i[g+316>>2]);q=i[g+288>>2];p=i[g+292>>2];c=i[g+300>>2];b=i[g+296>>2];break e}while(1){c=t;t=c+ -1|0;if(!i[(g+784|0)+(t<<2)>>2]){continue}break}u=0;b=(n|0)%9|0;n:{if(!b){k=0;break n}r=(n|0)>-1?b:b+9|0;o:{if(!c){k=0;c=0;break o}h=i[(0-r<<2)+17616>>2];p=1e9/(h|0)|0;s=0;b=0;k=0;while(1){m=s;q=(g+784|0)+(b<<2)|0;s=i[q>>2];t=(s>>>0)/(h>>>0)|0;m=m+t|0;i[q>>2]=m;m=!m&(b|0)==(k|0);k=m?k+1&2047:k;n=m?n+ -9|0:n;s=o(p,s-o(h,t)|0);b=b+1|0;if((c|0)!=(b|0)){continue}break}if(!s){break o}i[(g+784|0)+(c<<2)>>2]=s;c=c+1|0}n=(n-r|0)+9|0}while(1){q=(g+784|0)+(k<<2)|0;p:{while(1){if((n|0)!=36|l[q>>2]>=10384593?(n|0)>=36:0){break p}t=c+2047|0;s=0;r=c;while(1){c=r;p=t&2047;t=(g+784|0)+(p<<2)|0;b=i[t>>2];h=b>>>3|0;r=b<<29;b=r+s|0;if(b>>>0>>0){h=h+1|0}m=b;r=0;q:{if(!h&b>>>0<1000000001|h>>>0<0){break q}r=zp(b,h,1e9,0);m=m-xp(r,J,1e9,0)|0}s=r;i[t>>2]=m;r=(p|0)!=(c+ -1&2047)?c:(p|0)==(k|0)?c:m?c:p;t=p+ -1|0;if((p|0)!=(k|0)){continue}break}u=u+ -29|0;if(!s){continue}break}k=k+ -1&2047;if((r|0)==(k|0)){b=(g+784|0)+((r+2046&2047)<<2)|0;c=r+ -1&2047;i[b>>2]=i[b>>2]|i[(g+784|0)+(c<<2)>>2]}n=n+9|0;i[(g+784|0)+(k<<2)>>2]=s;continue}break}r:{s:while(1){h=c+1&2047;p=(g+784|0)+((c+ -1&2047)<<2)|0;while(1){m=(n|0)>45?9:1;t:{while(1){r=k;b=0;u:{while(1){v:{k=b+r&2047;if((k|0)==(c|0)){break v}k=i[(g+784|0)+(k<<2)>>2];q=i[(b<<2)+17568>>2];if(k>>>0>>0){break v}if(k>>>0>q>>>0){break u}b=b+1|0;if((b|0)!=4){continue}}break}if((n|0)!=36){break u}m=0;h=0;b=0;q=0;p=0;while(1){k=b+r&2047;if((k|0)==(c|0)){c=c+1&2047;i[((c<<2)+g|0)+780>>2]=0}An(g+768|0,m,h,q,p,0,0,1342177280,1075633366);Gn(g+752|0,i[(g+784|0)+(k<<2)>>2]);vn(g+736|0,i[g+768>>2],i[g+772>>2],i[g+776>>2],i[g+780>>2],i[g+752>>2],i[g+756>>2],i[g+760>>2],i[g+764>>2]);q=i[g+744>>2];p=i[g+748>>2];m=i[g+736>>2];h=i[g+740>>2];b=b+1|0;if((b|0)!=4){continue}break}Cn(g+720|0,f);An(g+704|0,m,h,q,p,i[g+720>>2],i[g+724>>2],i[g+728>>2],i[g+732>>2]);q=i[g+712>>2];p=i[g+716>>2];m=0;h=0;n=i[g+704>>2];s=i[g+708>>2];t=u+113|0;e=t-e|0;k=(e|0)<(d|0);d=k?(e|0)>0?e:0:d;if((d|0)<=112){break t}break r}u=m+u|0;k=c;if((c|0)==(r|0)){continue}break}q=1e9>>>m|0;s=-1<>2];b=(x>>>m|0)+b|0;i[t>>2]=b;b=!b&(k|0)==(r|0);k=b?k+1&2047:k;n=b?n+ -9|0:n;b=o(q,s&x);r=r+1&2047;if((r|0)!=(c|0)){continue}break}if(!b){continue}if((h|0)!=(k|0)){i[(g+784|0)+(c<<2)>>2]=b;c=h;continue s}i[p>>2]=i[p>>2]|1;k=h;continue}break}break}zn(g+656|0,ip(225-d|0));jn(g+688|0,i[g+656>>2],i[g+660>>2],i[g+664>>2],i[g+668>>2],n,s,q,p);z=i[g+696>>2];A=i[g+700>>2];B=i[g+688>>2];C=i[g+692>>2];zn(g+640|0,ip(113-d|0));gp(g+672|0,n,s,q,p,i[g+640>>2],i[g+644>>2],i[g+648>>2],i[g+652>>2]);m=i[g+672>>2];h=i[g+676>>2];v=i[g+680>>2];w=i[g+684>>2];Bn(g+624|0,n,s,q,p,m,h,v,w);vn(g+608|0,B,C,z,A,i[g+624>>2],i[g+628>>2],i[g+632>>2],i[g+636>>2]);q=i[g+616>>2];p=i[g+620>>2];n=i[g+608>>2];s=i[g+612>>2]}b=r+4&2047;w:{if((b|0)==(c|0)){break w}b=i[(g+784|0)+(b<<2)>>2];x:{if(b>>>0<=499999999){if((r+5&2047)==(c|0)?!b:0){break x}zn(g+496|0,+(f|0)*.25);vn(g+480|0,m,h,v,w,i[g+496>>2],i[g+500>>2],i[g+504>>2],i[g+508>>2]);v=i[g+488>>2];w=i[g+492>>2];m=i[g+480>>2];h=i[g+484>>2];break x}if((b|0)!=5e8){zn(g+592|0,+(f|0)*.75);vn(g+576|0,m,h,v,w,i[g+592>>2],i[g+596>>2],i[g+600>>2],i[g+604>>2]);v=i[g+584>>2];w=i[g+588>>2];m=i[g+576>>2];h=i[g+580>>2];break x}D=+(f|0);if((r+5&2047)==(c|0)){zn(g+528|0,D*.5);vn(g+512|0,m,h,v,w,i[g+528>>2],i[g+532>>2],i[g+536>>2],i[g+540>>2]);v=i[g+520>>2];w=i[g+524>>2];m=i[g+512>>2];h=i[g+516>>2];break x}zn(g+560|0,D*.75);vn(g+544|0,m,h,v,w,i[g+560>>2],i[g+564>>2],i[g+568>>2],i[g+572>>2]);v=i[g+552>>2];w=i[g+556>>2];m=i[g+544>>2];h=i[g+548>>2]}if((d|0)>111){break w}gp(g+464|0,m,h,v,w,0,0,0,1073676288);if(sn(i[g+464>>2],i[g+468>>2],i[g+472>>2],i[g+476>>2],0,0,0,0)){break w}vn(g+448|0,m,h,v,w,0,0,0,1073676288);v=i[g+456>>2];w=i[g+460>>2];m=i[g+448>>2];h=i[g+452>>2]}vn(g+432|0,n,s,q,p,m,h,v,w);Bn(g+416|0,i[g+432>>2],i[g+436>>2],i[g+440>>2],i[g+444>>2],B,C,z,A);q=i[g+424>>2];p=i[g+428>>2];n=i[g+416>>2];s=i[g+420>>2];y:{if((t&2147483647)<=(-2-y|0)){break y}b=g+400|0;i[b+8>>2]=q;i[b+12>>2]=p&2147483647;i[b>>2]=n;i[b+4>>2]=s;An(g+384|0,n,s,q,p,0,0,0,1073610752);c=tn(i[g+400>>2],i[g+404>>2],i[g+408>>2],i[g+412>>2],1081081856);b=(c|0)<0;q=b?q:i[g+392>>2];p=b?p:i[g+396>>2];n=b?n:i[g+384>>2];s=b?s:i[g+388>>2];u=((c|0)>-1)+u|0;if(F=!(k&(b|(d|0)!=(e|0))&(sn(m,h,v,w,0,0,0,0)|0)!=0),G=0,I=(u+110|0)<=(E|0),I?F:G){break y}i[4805]=68}kn(g+368|0,n,s,q,p,u);q=i[g+368>>2];p=i[g+372>>2];c=i[g+380>>2];b=i[g+376>>2]}i[a>>2]=q;i[a+4>>2]=p;i[a+8>>2]=b;i[a+12>>2]=c;H=g+8976|0}function Ee(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var h=0,k=0,l=0,m=0,n=0,p=0,r=0,t=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0;h=H-256|0;H=h;W=i[a+36>>2];y=i[a+32>>2];i[h+200>>2]=0;i[h+204>>2]=0;i[h+192>>2]=0;i[h+196>>2]=0;i[h+184>>2]=0;i[h+188>>2]=0;d=h+176|0;i[d>>2]=0;i[d+4>>2]=0;i[h+168>>2]=0;i[h+172>>2]=0;i[h+160>>2]=0;i[h+164>>2]=0;if(e){Cd(h+160|0,e);m=i[d>>2];d=i[h+172>>2]}else{d=0}f=m-d>>2;a:{if(f>>>0>=e>>>0){if(f>>>0<=e>>>0){break a}i[h+176>>2]=d+(e<<2);break a}Cd(h+160|12,e-f|0)}f=i[h+184>>2];d=i[h+188>>2]-f>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}i[h+188>>2]=f+(e<<2);break b}Cd(h+184|0,e-d|0)}f=i[h+196>>2];d=i[h+200>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}i[h+200>>2]=f+(e<<2);break c}Cd(h+196|0,e-d|0)}i[h+152>>2]=0;i[h+144>>2]=0;i[h+148>>2]=0;d:{e:{if(e){if(e>>>0>=1073741824){break e}d=e<<2;f=ko(d);i[h+144>>2]=f;m=d+f|0;i[h+152>>2]=m;lp(f,0,d);i[h+148>>2]=m}L=a+136|0;f=i[a+136>>2];d=i[a+140>>2]-f>>2;f:{if(d>>>0>>0){Cd(L,e-d|0);break f}if(d>>>0<=e>>>0){break f}i[a+140>>2]=f+(e<<2)}i[h+120>>2]=0;i[h+124>>2]=0;i[h+112>>2]=0;i[h+116>>2]=0;i[h+104>>2]=0;i[h+108>>2]=0;i[h+96>>2]=0;i[h+100>>2]=0;i[h+88>>2]=0;i[h+92>>2]=0;i[h+80>>2]=0;i[h+84>>2]=0;i[h+72>>2]=0;i[h+76>>2]=0;i[h+64>>2]=0;i[h+68>>2]=0;i[h+56>>2]=0;i[h+48>>2]=0;i[h+52>>2]=0;if(e){d=e<<2;I=ko(d);i[h+48>>2]=I;F=d+I|0;i[h+56>>2]=F;lp(I,0,d);i[h+52>>2]=F}d=i[a+40>>2];m=i[d>>2];d=i[d+4>>2]-m|0;if((d|0)<5){break d}K=d>>>2|0;l=K+ -1|0;if(d>>2>>>0>l>>>0){P=e<<2;X=a+8|0;M=a+96|0;Y=h+141|0;Q=h+36|0;R=h+24|0;N=h+20|0;Z=N+24|0;S=N+16|0;G=(e|0)<1;while(1){d=0;B=l;n=i[(l<<2)+m>>2];g:{if((n|0)==-1){break g}r=n+((n>>>0)%3|0?-1:2)|0;z=r>>>5|0;l=1;C=1<<(r&31);D=i[y>>2];f=0;m=n;while(1){h:{if(i[D+(m>>>3&536870908)>>2]>>>(m&31)&1){break h}d=i[i[i[y+64>>2]+12>>2]+(m<<2)>>2];if((d|0)==-1){break h}p=i[W>>2];k=i[y+28>>2];A=i[p+(i[k+(d<<2)>>2]<<2)>>2];if((A|0)>=(B|0)){break h}t=d+1|0;t=i[p+(i[k+(((t>>>0)%3|0?t:d+ -2|0)<<2)>>2]<<2)>>2];if((t|0)>=(B|0)){break h}d=i[p+(i[k+(d+((d>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((d|0)>=(B|0)){break h}if(!G){p=i[(h+160|0)+o(f,12)>>2];d=o(d,e);t=o(e,t);A=o(e,A);k=0;while(1){i[p+(k<<2)>>2]=(i[(d+k<<2)+b>>2]+i[(k+t<<2)+b>>2]|0)-i[(k+A<<2)+b>>2];k=k+1|0;if((k|0)!=(e|0)){continue}break}}d=4;f=f+1|0;if((f|0)==4){break g}}i:{if(l&1){k=-1;d=m+1|0;d=(d>>>0)%3|0?d:m+ -2|0;if((d|0)==-1|i[i[y>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1){break i}d=i[i[i[y+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break i}m=d+1|0;k=(m>>>0)%3|0?m:d+ -2|0;break i}k=-1;d=((m>>>0)%3|0?-1:2)+m|0;if((d|0)==-1|i[i[y>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1){break i}d=i[i[i[y+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break i}if((d>>>0)%3|0){k=d+ -1|0;break i}k=d+2|0}if((k|0)==(n|0)){d=f;break g}m=k;d=(k|0)!=-1;k=(d|l^-1)&1;m=k?m:-1;l=d&l;if(!((r|0)==-1|k)){if(C&i[i[y>>2]+(z<<2)>>2]){d=f;break g}d=i[i[i[y+64>>2]+12>>2]+(r<<2)>>2];if((d|0)==-1){d=f;break g}l=0;if((d>>>0)%3|0){m=d+ -1|0}else{m=d+2|0}}d=f;if((m|0)!=-1){continue}break}}m=0;g[h+16|0]=0;i[h+8>>2]=0;i[h+12>>2]=0;i[Z>>2]=0;i[S>>2]=0;i[S+4>>2]=0;f=N;i[f+8>>2]=0;i[f+12>>2]=0;i[f>>2]=0;i[f+4>>2]=0;T=o(e,B)<<2;D=T+b|0;r=(o(K+ -2|0,e)<<2)+b|0;n=i[a+136>>2];l=0;if(!G){while(1){k=l<<2;f=i[k+r>>2]-i[k+D>>2]|0;i[k+I>>2]=f;i[k+n>>2]=(f|0)>-1?f<<1:(f^-1)<<1|1;k=f;f=f>>31;m=(k+f^f)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}eg(h+232|0,M,n,e);f=hg(h+232|0);l=J;k=ig(h+232|0);f=k+f|0;l=J+l|0;l=f>>>0>>0?l+1|0:l;k=f;O=(d|0)<1;if(!O){p=(d<<3)+ -8|0;n=p+(h- -64|0)|0;z=n;t=n;f=i[n+4>>2];C=d+i[n>>2]|0;if(C>>>0>>0){f=f+1|0}n=C;i[t>>2]=n;i[z+4>>2]=f;w=v(cg(n,i[p+(h+96|0)>>2])*(+(n>>>0)+ +(f|0)*4294967296));j:{if(q(w)<0x8000000000000000){n=q(w)>=1?w>0?~~s(u(w/4294967296),4294967295)>>>0:~~v((w- +(~~w>>>0>>>0))/4294967296)>>>0:0;f=~~w>>>0;break j}n=-2147483648;f=0}l=l+n|0;f=f+k|0;if(f>>>0>>0){l=l+1|0}k=f}i[h+20>>2]=0;g[h+16|0]=0;i[h+8>>2]=k;i[h+12>>2]=m;ta(R,r,r+P|0);U=i[h+48>>2];Id(Q,U,F);if(!O){z=(h+140|0)+d|0;C=z+ -2|0;r=z+ -1|0;f=(d<<3)+ -8|0;V=f+(h- -64|0)|0;_=f+(h+96|0)|0;f=1;A=0;while(1){lp(h+140|0,1,d);A=A+1|0;lp(h+140|0,0,A);F=i[h+52>>2];$=i[h+48>>2];k:{l:while(1){if(!G){lp(i[h+144>>2],0,P)}p=0;m=i[h+144>>2];t=0;while(1){if(!j[(h+140|0)+p|0]){if(!G){l=i[(h+160|0)+o(p,12)>>2];k=0;while(1){n=k<<2;E=n+m|0;i[E>>2]=i[E>>2]+i[l+n>>2];k=k+1|0;if((k|0)!=(e|0)){continue}break}}t=1<>2];while(1){l=m+(k<<2)|0;i[l>>2]=i[l>>2]/(f|0);k=k+1|0;if((k|0)!=(e|0)){continue}break}if((e|0)>0){break n}}n=i[a+136>>2];m=0;break m}E=i[h+144>>2];n=i[a+136>>2];m=0;l=0;while(1){p=l<<2;k=i[p+E>>2]-i[p+D>>2]|0;i[p+U>>2]=k;i[n+p>>2]=(k|0)>-1?k<<1:(k^-1)<<1|1;p=m;m=k>>31;m=p+(m+k^m)|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}eg(h+232|0,M,n,e);k=hg(h+232|0)+ig(h+232|0)|0;if((d|0)>0){l=i[V+4>>2];n=i[V>>2];w=v(cg(n,i[_>>2]+f|0)*(+(n>>>0)+ +(l|0)*4294967296));o:{if(q(w)<0x8000000000000000){n=~~w>>>0;break o}n=0}k=n+k|0}l=i[h+8>>2];if(!((k|0)>(l|0)|(m|0)>=i[h+12>>2]?(k|0)>=(l|0):0)){i[h+20>>2]=f;g[h+16|0]=t;i[h+8>>2]=k;i[h+12>>2]=m;Id(R,i[h+144>>2],i[h+148>>2]);Id(Q,$,F)}if((r|0)==(h+140|0)){break k}m=-1;p=j[r|0];k=p;while(1){n=k&255;l=m+ -1|0;t=l+z|0;k=j[t|0];if(k>>>0>>0){n=r;l=z;if(k>>>0>=(p&255)>>>0){while(1){p=n;n=n+ -1|0;E=l+ -2|0;l=p;if(k>>>0>=j[E|0]){continue}break}p=1}l=m+z|0;g[t|0]=p;g[n|0]=k;k=r;if((m|0)==-1){continue l}while(1){m=j[l|0];g[l|0]=j[k|0];g[k|0]=m;l=l+1|0;k=k+ -1|0;if(l>>>0>>0){continue}break}continue l}m=l;if((t|0)!=(h+140|0)){continue}break}break}if(r>>>0<=h+140>>>0){break k}m=j[h+140|0];g[h+140|0]=p;g[r|0]=m;m=Y;k=C;if(m>>>0>=k>>>0){break k}while(1){l=j[m|0];g[m|0]=j[k|0];g[k|0]=l;m=m+1|0;k=k+ -1|0;if(m>>>0>>0){continue}break}}f=f+1|0;if((d|0)!=(A|0)){continue}break}}if((d|0)>0){f=((d<<3)+h|0)+88|0;l=f;k=i[h+20>>2];m=k+i[f>>2]|0;f=i[f+4>>2]+(k>>31)|0;i[l>>2]=m;i[l+4>>2]=m>>>0>>0?f+1|0:f}p:{if((e|0)<=0){l=i[L>>2];break p}l=i[L>>2];k=0;m=i[h+36>>2];while(1){n=k<<2;f=i[n+m>>2];i[l+n>>2]=(f|0)>-1?f<<1:(f^-1)<<1|1;k=k+1|0;if((k|0)!=(e|0)){continue}break}}gg(h+232|0,M,l,e);q:{if(O){break q}f=o(d,12)+a|0;p=f+40|0;n=f+36|0;f=f+32|0;m=0;while(1){r:{r=i[p>>2];l=r<<5;k=i[n>>2];s:{if(!(j[h+16|0]>>>m&1)){if((k|0)==(l|0)){if((k+1|0)<=-1){break r}l=f;if(k>>>0<=1073741822){k=k+32&-32;r=r<<6;k=r>>>0>>0?k:r}else{k=2147483647}cd(l,k);k=i[n>>2]}i[n>>2]=k+1;l=i[f>>2]+(k>>>3&536870908)|0;i[l>>2]=i[l>>2]|1<<(k&31);break s}if((k|0)==(l|0)){if((k+1|0)<=-1){break r}l=f;if(k>>>0<=1073741822){k=k+32&-32;r=r<<6;k=r>>>0>>0?k:r}else{k=2147483647}cd(l,k);k=i[n>>2]}i[n>>2]=k+1;l=i[f>>2]+(k>>>3&536870908)|0;r=i[l>>2];aa=l,ba=Bp(-2,k)&r,i[aa>>2]=ba}m=m+1|0;if((m|0)!=(d|0)){continue}break q}break}Ko();x()}d=i[h+24>>2];f=i[d>>2];d=i[d+4>>2];m=i[D+4>>2];i[h+224>>2]=i[D>>2];i[h+228>>2]=m;i[h+216>>2]=f;i[h+220>>2]=d;Ae(h+232|0,X,h+224|0,h+216|0);d=c+T|0;i[d>>2]=i[h+232>>2];i[d+4>>2]=i[h+236>>2];d=i[h+36>>2];if(d){i[h+40>>2]=d;ep(d)}d=i[h+24>>2];if(d){i[h+28>>2]=d;ep(d)}if((K|0)<3){break d}K=B;d=i[a+40>>2];m=i[d>>2];l=B+ -1|0;if(i[d+4>>2]-m>>2>>>0>l>>>0){continue}break}}Lo();x()}Ko();x()}if((e|0)>=1){lp(i[h+160>>2],0,e<<2)}d=i[h+160>>2];e=i[d>>2];d=i[d+4>>2];f=i[b+4>>2];i[h+232>>2]=i[b>>2];i[h+236>>2]=f;i[h+224>>2]=e;i[h+228>>2]=d;Ae(h+8|0,a+8|0,h+232|0,h+224|0);i[c>>2]=i[h+8>>2];i[c+4>>2]=i[h+12>>2];a=i[h+48>>2];if(a){i[h+52>>2]=a;ep(a)}a=i[h+144>>2];if(a){i[h+148>>2]=a;ep(a)}a=i[h+196>>2];if(a){i[h+200>>2]=a;ep(a)}a=i[h+184>>2];if(a){i[h+188>>2]=a;ep(a)}a=i[h+172>>2];if(a){i[h+176>>2]=a;ep(a)}a=i[h+160>>2];if(a){i[h+164>>2]=a;ep(a)}H=h+256|0;return 1}function Ue(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var h=0,k=0,l=0,m=0,n=0,p=0,r=0,t=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0;h=H-256|0;H=h;W=i[a+36>>2];O=i[a+32>>2];i[h+200>>2]=0;i[h+204>>2]=0;i[h+192>>2]=0;i[h+196>>2]=0;i[h+184>>2]=0;i[h+188>>2]=0;d=h+176|0;i[d>>2]=0;i[d+4>>2]=0;i[h+168>>2]=0;i[h+172>>2]=0;i[h+160>>2]=0;i[h+164>>2]=0;if(e){Cd(h+160|0,e);n=i[d>>2];d=i[h+172>>2]}else{d=0}f=n-d>>2;a:{if(f>>>0>=e>>>0){if(f>>>0<=e>>>0){break a}i[h+176>>2]=d+(e<<2);break a}Cd(h+160|12,e-f|0)}f=i[h+184>>2];d=i[h+188>>2]-f>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}i[h+188>>2]=f+(e<<2);break b}Cd(h+184|0,e-d|0)}f=i[h+196>>2];d=i[h+200>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}i[h+200>>2]=f+(e<<2);break c}Cd(h+196|0,e-d|0)}i[h+152>>2]=0;i[h+144>>2]=0;i[h+148>>2]=0;d:{e:{if(e){if(e>>>0>=1073741824){break e}d=e<<2;f=ko(d);i[h+144>>2]=f;m=d+f|0;i[h+152>>2]=m;lp(f,0,d);i[h+148>>2]=m}K=a+136|0;f=i[a+136>>2];d=i[a+140>>2]-f>>2;f:{if(d>>>0>>0){Cd(K,e-d|0);break f}if(d>>>0<=e>>>0){break f}i[a+140>>2]=f+(e<<2)}i[h+120>>2]=0;i[h+124>>2]=0;i[h+112>>2]=0;i[h+116>>2]=0;i[h+104>>2]=0;i[h+108>>2]=0;i[h+96>>2]=0;i[h+100>>2]=0;i[h+88>>2]=0;i[h+92>>2]=0;i[h+80>>2]=0;i[h+84>>2]=0;i[h+72>>2]=0;i[h+76>>2]=0;i[h+64>>2]=0;i[h+68>>2]=0;i[h+56>>2]=0;i[h+48>>2]=0;i[h+52>>2]=0;if(e){d=e<<2;G=ko(d);i[h+48>>2]=G;E=d+G|0;i[h+56>>2]=E;lp(G,0,d);i[h+52>>2]=E}d=i[a+40>>2];n=i[d>>2];d=i[d+4>>2]-n|0;if((d|0)<5){break d}I=d>>>2|0;m=I+ -1|0;if(d>>2>>>0>m>>>0){P=e<<2;X=a+8|0;L=a+96|0;Y=h+141|0;Q=h+36|0;R=h+24|0;M=h+20|0;Z=M+24|0;S=M+16|0;F=(e|0)<1;while(1){f=0;B=m;m=i[(m<<2)+n>>2];g:{if((m|0)==-1){break g}n=i[O+12>>2];A=m+((m>>>0)%3|0?-1:2)|0;C=n+(A<<2)|0;t=1;d=0;l=m;while(1){f=i[n+(l<<2)>>2];h:{if((f|0)==-1){break h}p=-1;r=i[W>>2];k=i[O>>2];y=i[r+(i[k+(f<<2)>>2]<<2)>>2];w=f+1|0;w=(w>>>0)%3|0?w:f+ -2|0;if((w|0)!=-1){w=i[k+(w<<2)>>2]}else{w=-1}f=f+((f>>>0)%3|0?-1:2)|0;if((f|0)!=-1){p=i[k+(f<<2)>>2]}if((y|0)>=(B|0)){break h}f=i[(w<<2)+r>>2];if((f|0)>=(B|0)){break h}k=i[r+(p<<2)>>2];if((k|0)>=(B|0)){break h}p=i[(h+160|0)+o(d,12)>>2];if(!F){r=o(e,k);f=o(e,f);y=o(e,y);k=0;while(1){i[p+(k<<2)>>2]=(i[(k+r<<2)+b>>2]+i[(f+k<<2)+b>>2]|0)-i[(k+y<<2)+b>>2];k=k+1|0;if((k|0)!=(e|0)){continue}break}}f=4;d=d+1|0;if((d|0)==4){break g}}i:{if(t&1){p=l+1|0;l=(p>>>0)%3|0?p:l+ -2|0;f=-1;if((l|0)==-1){break i}l=i[n+(l<<2)>>2];f=-1;if((l|0)==-1){break i}f=l+1|0;f=(f>>>0)%3|0?f:l+ -2|0;break i}l=((l>>>0)%3|0?-1:2)+l|0;f=-1;if((l|0)==-1){break i}l=i[n+(l<<2)>>2];f=-1;if((l|0)==-1){break i}f=l+ -1|0;if((l>>>0)%3|0){break i}f=l+2|0}if((f|0)==(m|0)){f=d;break g}l=f;f=(f|0)!=-1;k=(f|t^-1)&1;l=k?l:-1;t=f&t;if(!((A|0)==-1|k)){f=i[C>>2];if((f|0)==-1){f=d;break g}t=0;if((f>>>0)%3|0){l=f+ -1|0}else{l=f+2|0}}f=d;if((l|0)!=-1){continue}break}}n=0;g[h+16|0]=0;i[h+8>>2]=0;i[h+12>>2]=0;i[Z>>2]=0;i[S>>2]=0;i[S+4>>2]=0;d=M;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;T=o(e,B)<<2;A=T+b|0;p=(o(I+ -2|0,e)<<2)+b|0;l=i[a+136>>2];m=0;if(!F){while(1){k=m<<2;d=i[k+p>>2]-i[k+A>>2]|0;i[k+G>>2]=d;i[k+l>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;k=d;d=d>>31;n=(k+d^d)+n|0;m=m+1|0;if((m|0)!=(e|0)){continue}break}}eg(h+232|0,L,l,e);d=hg(h+232|0);m=J;k=ig(h+232|0);d=k+d|0;m=J+m|0;m=d>>>0>>0?m+1|0:m;k=d;N=(f|0)<1;if(!N){r=(f<<3)+ -8|0;l=r+(h- -64|0)|0;y=l;t=l;d=i[l+4>>2];w=i[l>>2];l=f;w=w+l|0;if(w>>>0>>0){d=d+1|0}l=w;i[t>>2]=l;i[y+4>>2]=d;z=v(cg(l,i[r+(h+96|0)>>2])*(+(l>>>0)+ +(d|0)*4294967296));j:{if(q(z)<0x8000000000000000){l=q(z)>=1?z>0?~~s(u(z/4294967296),4294967295)>>>0:~~v((z- +(~~z>>>0>>>0))/4294967296)>>>0:0;d=~~z>>>0;break j}l=-2147483648;d=0}m=m+l|0;d=d+k|0;if(d>>>0>>0){m=m+1|0}k=d}i[h+20>>2]=0;g[h+16|0]=0;i[h+8>>2]=k;i[h+12>>2]=n;ta(R,p,p+P|0);U=i[h+48>>2];Id(Q,U,E);if(!N){y=(h+140|0)+f|0;w=y+ -2|0;r=y+ -1|0;d=(f<<3)+ -8|0;V=d+(h- -64|0)|0;_=d+(h+96|0)|0;d=1;C=0;while(1){lp(h+140|0,1,f);C=C+1|0;lp(h+140|0,0,C);E=i[h+52>>2];$=i[h+48>>2];k:{l:while(1){if(!F){lp(i[h+144>>2],0,P)}l=0;m=i[h+144>>2];t=0;while(1){if(!j[(h+140|0)+l|0]){if(!F){n=i[(h+160|0)+o(l,12)>>2];k=0;while(1){p=k<<2;D=p+m|0;i[D>>2]=i[D>>2]+i[n+p>>2];k=k+1|0;if((k|0)!=(e|0)){continue}break}}t=1<>2];while(1){n=m+(k<<2)|0;i[n>>2]=i[n>>2]/(d|0);k=k+1|0;if((k|0)!=(e|0)){continue}break}if((e|0)>0){break n}}p=i[a+136>>2];n=0;break m}D=i[h+144>>2];p=i[a+136>>2];n=0;m=0;while(1){l=m<<2;k=i[l+D>>2]-i[l+A>>2]|0;i[l+U>>2]=k;i[l+p>>2]=(k|0)>-1?k<<1:(k^-1)<<1|1;l=k;k=k>>31;n=(l+k^k)+n|0;m=m+1|0;if((m|0)!=(e|0)){continue}break}}eg(h+232|0,L,p,e);k=hg(h+232|0)+ig(h+232|0)|0;if((f|0)>0){m=i[V+4>>2];l=i[V>>2];z=v(cg(l,i[_>>2]+d|0)*(+(l>>>0)+ +(m|0)*4294967296));o:{if(q(z)<0x8000000000000000){l=~~z>>>0;break o}l=0}k=l+k|0}m=i[h+8>>2];if(!((k|0)>(m|0)|(n|0)>=i[h+12>>2]?(k|0)>=(m|0):0)){i[h+20>>2]=d;g[h+16|0]=t;i[h+8>>2]=k;i[h+12>>2]=n;Id(R,i[h+144>>2],i[h+148>>2]);Id(Q,$,E)}if((r|0)==(h+140|0)){break k}n=-1;l=j[r|0];k=l;while(1){p=k&255;m=n+ -1|0;t=m+y|0;k=j[t|0];if(k>>>0

>>0){p=r;m=y;if(k>>>0>=(l&255)>>>0){while(1){l=p;p=l+ -1|0;D=m+ -2|0;m=l;if(k>>>0>=j[D|0]){continue}break}l=1}m=n+y|0;g[t|0]=l;g[p|0]=k;k=r;if((n|0)==-1){continue l}while(1){n=j[m|0];g[m|0]=j[k|0];g[k|0]=n;m=m+1|0;k=k+ -1|0;if(m>>>0>>0){continue}break}continue l}n=m;if((t|0)!=(h+140|0)){continue}break}break}if(r>>>0<=h+140>>>0){break k}m=j[h+140|0];g[h+140|0]=l;g[r|0]=m;n=Y;k=w;if(n>>>0>=k>>>0){break k}while(1){m=j[n|0];g[n|0]=j[k|0];g[k|0]=m;n=n+1|0;k=k+ -1|0;if(n>>>0>>0){continue}break}}d=d+1|0;if((f|0)!=(C|0)){continue}break}}if((f|0)>0){d=((f<<3)+h|0)+88|0;k=d;n=i[h+20>>2];l=n;m=l+i[d>>2]|0;d=i[d+4>>2]+(l>>31)|0;i[k>>2]=m;i[k+4>>2]=m>>>0>>0?d+1|0:d}p:{if((e|0)<=0){m=i[K>>2];break p}m=i[K>>2];k=0;n=i[h+36>>2];while(1){l=k<<2;d=i[l+n>>2];i[m+l>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;k=k+1|0;if((k|0)!=(e|0)){continue}break}}gg(h+232|0,L,m,e);q:{if(N){break q}d=o(f,12)+a|0;r=d+40|0;l=d+36|0;d=d+32|0;n=0;while(1){r:{p=i[r>>2];m=p<<5;k=i[l>>2];s:{if(!(j[h+16|0]>>>n&1)){if((k|0)==(m|0)){if((k+1|0)<=-1){break r}m=d;if(k>>>0<=1073741822){k=k+32&-32;p=p<<6;k=p>>>0>>0?k:p}else{k=2147483647}cd(m,k);k=i[l>>2]}i[l>>2]=k+1;m=i[d>>2]+(k>>>3&536870908)|0;i[m>>2]=i[m>>2]|1<<(k&31);break s}if((k|0)==(m|0)){if((k+1|0)<=-1){break r}m=d;if(k>>>0<=1073741822){k=k+32&-32;p=p<<6;k=p>>>0>>0?k:p}else{k=2147483647}cd(m,k);k=i[l>>2]}i[l>>2]=k+1;m=i[d>>2]+(k>>>3&536870908)|0;p=i[m>>2];aa=m,ba=Bp(-2,k)&p,i[aa>>2]=ba}n=n+1|0;if((n|0)!=(f|0)){continue}break q}break}Ko();x()}d=i[h+24>>2];f=i[d>>2];d=i[d+4>>2];m=i[A+4>>2];i[h+224>>2]=i[A>>2];i[h+228>>2]=m;i[h+216>>2]=f;i[h+220>>2]=d;Ae(h+232|0,X,h+224|0,h+216|0);d=c+T|0;i[d>>2]=i[h+232>>2];i[d+4>>2]=i[h+236>>2];d=i[h+36>>2];if(d){i[h+40>>2]=d;ep(d)}d=i[h+24>>2];if(d){i[h+28>>2]=d;ep(d)}if((I|0)<3){break d}I=B;d=i[a+40>>2];n=i[d>>2];m=B+ -1|0;if(i[d+4>>2]-n>>2>>>0>m>>>0){continue}break}}Lo();x()}Ko();x()}if((e|0)>=1){lp(i[h+160>>2],0,e<<2)}d=i[h+160>>2];e=i[d>>2];d=i[d+4>>2];f=i[b+4>>2];i[h+232>>2]=i[b>>2];i[h+236>>2]=f;i[h+224>>2]=e;i[h+228>>2]=d;Ae(h+8|0,a+8|0,h+232|0,h+224|0);i[c>>2]=i[h+8>>2];i[c+4>>2]=i[h+12>>2];a=i[h+48>>2];if(a){i[h+52>>2]=a;ep(a)}a=i[h+144>>2];if(a){i[h+148>>2]=a;ep(a)}a=i[h+196>>2];if(a){i[h+200>>2]=a;ep(a)}a=i[h+184>>2];if(a){i[h+188>>2]=a;ep(a)}a=i[h+172>>2];if(a){i[h+176>>2]=a;ep(a)}a=i[h+160>>2];if(a){i[h+164>>2]=a;ep(a)}H=h+256|0;return 1}function Sb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=p(0),w=0,y=0,z=0,A=0,B=0;c=H+ -64|0;H=c;m=i[a+28>>2];h=i[m+4>>2];w=i[h+80>>2];n=i[a+4>>2];b=i[a+8>>2];k=(n|0)==(b|0);if(!k){b=b-n>>2;e=b>>>0>1?b:1;b=i[h+8>>2];while(1){d=g[i[b+(i[(f<<2)+n>>2]<<2)>>2]+24|0]+d|0;f=f+1|0;if((e|0)!=(f|0)){continue}break}}i[a+72>>2]=d;f=1;a:{if(k){break a}y=a+60|0;z=a+36|0;A=a+48|0;B=c+48|0;while(1){b:{c:{d:{e:{f:{g:{h:{i:{s=i[(u<<2)+n>>2];q=i[i[h+8>>2]+(s<<2)>>2];switch(i[q+28>>2]+ -1|0){case 0:case 2:case 4:break h;case 8:break i;default:break b}}i[c+44>>2]=-1;i[c+40>>2]=1140;b=B;i[b+8>>2]=0;i[b+12>>2]=0;i[b>>2]=0;i[b+4>>2]=0;k=i[m+48>>2];h=ko(32);i[c+24>>2]=h;i[c+28>>2]=17;i[c+32>>2]=-2147483616;g[h+17|0]=0;g[h+16|0]=j[1664];e=j[1660]|j[1661]<<8|(j[1662]<<16|j[1663]<<24);b=j[1656]|j[1657]<<8|(j[1658]<<16|j[1659]<<24);g[h+8|0]=b;g[h+9|0]=b>>>8;g[h+10|0]=b>>>16;g[h+11|0]=b>>>24;g[h+12|0]=e;g[h+13|0]=e>>>8;g[h+14|0]=e>>>16;g[h+15|0]=e>>>24;e=j[1652]|j[1653]<<8|(j[1654]<<16|j[1655]<<24);b=j[1648]|j[1649]<<8|(j[1650]<<16|j[1651]<<24);g[h|0]=b;g[h+1|0]=b>>>8;g[h+2|0]=b>>>16;g[h+3|0]=b>>>24;g[h+4|0]=e;g[h+5|0]=e>>>8;g[h+6|0]=e>>>16;g[h+7|0]=e>>>24;j:{k:{e=k+16|0;d=e;f=i[d>>2];if(!f){break k}while(1){b=i[f+16>>2]<(s|0);d=b?d:f;f=i[(b<<2)+f>>2];if(f){continue}break}if((d|0)==(e|0)|(s|0)>2]){break k}b=d+20|0;if(!Tb(b,c+24|0)){break k}r=bk(b,c+24|0,-1);break j}r=bk(k,c+24|0,-1)}if(g[c+35|0]<=-1){ep(i[c+24>>2])}l:{if((r|0)<1){break l}o=i[i[a+28>>2]+48>>2];d=ko(32);i[c+24>>2]=d;i[c+28>>2]=19;i[c+32>>2]=-2147483616;g[d+19|0]=0;t=j[1681]|j[1682]<<8|(j[1683]<<16|j[1684]<<24);g[d+15|0]=t;g[d+16|0]=t>>>8;g[d+17|0]=t>>>16;g[d+18|0]=t>>>24;e=j[1678]|j[1679]<<8|(j[1680]<<16|j[1681]<<24);n=e;h=j[1674]|j[1675]<<8|(j[1676]<<16|j[1677]<<24);b=h;g[d+8|0]=b;g[d+9|0]=b>>>8;g[d+10|0]=b>>>16;g[d+11|0]=b>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;m=j[1670]|j[1671]<<8|(j[1672]<<16|j[1673]<<24);k=m;e=j[1666]|j[1667]<<8|(j[1668]<<16|j[1669]<<24);b=e;g[d|0]=b;g[d+1|0]=b>>>8;g[d+2|0]=b>>>16;g[d+3|0]=b>>>24;g[d+4|0]=k;g[d+5|0]=k>>>8;g[d+6|0]=k>>>16;g[d+7|0]=k>>>24;m:{n:{m=o+16|0;d=m;f=i[d>>2];if(!f){break n}while(1){b=i[f+16>>2]<(s|0);d=b?d:f;f=i[(b<<2)+f>>2];if(f){continue}break}if((d|0)==(m|0)|(s|0)>2]){break n}m=Tb(d+20|0,c+24|0);break m}m=Tb(o,c+24|0)}b=0;o:{if(!m){break o}o=i[i[a+28>>2]+48>>2];d=ko(32);i[c+8>>2]=d;i[c+12>>2]=18;i[c+16>>2]=-2147483616;g[d+18|0]=0;b=j[1702]|j[1703]<<8;g[d+16|0]=b;g[d+17|0]=b>>>8;m=j[1698]|j[1699]<<8|(j[1700]<<16|j[1701]<<24);b=j[1694]|j[1695]<<8|(j[1696]<<16|j[1697]<<24);g[d+8|0]=b;g[d+9|0]=b>>>8;g[d+10|0]=b>>>16;g[d+11|0]=b>>>24;g[d+12|0]=m;g[d+13|0]=m>>>8;g[d+14|0]=m>>>16;g[d+15|0]=m>>>24;m=j[1690]|j[1691]<<8|(j[1692]<<16|j[1693]<<24);b=j[1686]|j[1687]<<8|(j[1688]<<16|j[1689]<<24);g[d|0]=b;g[d+1|0]=b>>>8;g[d+2|0]=b>>>16;g[d+3|0]=b>>>24;g[d+4|0]=m;g[d+5|0]=m>>>8;g[d+6|0]=m>>>16;g[d+7|0]=m>>>24;p:{q:{m=o+16|0;d=m;f=i[d>>2];if(!f){break q}while(1){b=i[f+16>>2]<(s|0);d=b?d:f;f=i[(b<<2)+f>>2];if(f){continue}break}if((d|0)==(m|0)|(s|0)>2]){break q}b=Tb(d+20|0,c+8|0);break p}b=Tb(o,c+8|0)}if(g[c+19|0]<=-1){ep(i[c+8>>2])}b=(b|0)!=0}if(g[c+35|0]<=-1){ep(i[c+24>>2])}r:{if(b){b=g[q+24|0];o=0;i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;if(b){if((b|0)<=-1){break g}m=b<<2;o=ko(m);i[c+24>>2]=o;b=m+o|0;i[c+32>>2]=b;lp(o,0,m);i[c+28>>2]=b}m=i[i[a+28>>2]+48>>2];b=ko(32);i[c+8>>2]=b;i[c+12>>2]=19;i[c+16>>2]=-2147483616;g[b+19|0]=0;g[b+15|0]=t;g[b+16|0]=t>>>8;g[b+17|0]=t>>>16;g[b+18|0]=t>>>24;g[b+8|0]=h;g[b+9|0]=h>>>8;g[b+10|0]=h>>>16;g[b+11|0]=h>>>24;g[b+12|0]=n;g[b+13|0]=n>>>8;g[b+14|0]=n>>>16;g[b+15|0]=n>>>24;g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=k;g[b+5|0]=k>>>8;g[b+6|0]=k>>>16;g[b+7|0]=k>>>24;k=g[q+24|0];s:{t:{e=m+16|0;d=e;f=i[d>>2];if(!f){break t}while(1){b=i[f+16>>2]<(s|0);d=b?d:f;f=i[(b<<2)+f>>2];if(f){continue}break}if((d|0)==(e|0)|(s|0)>2]){break t}b=d+20|0;if(!Tb(b,c+8|0)){break t}Ub(b,c+8|0,k,o);break s}Ub(m,c+8|0,k,o)}if(g[c+19|0]<=-1){ep(i[c+8>>2])}k=i[i[a+28>>2]+48>>2];h=ko(32);i[c+8>>2]=h;i[c+12>>2]=18;i[c+16>>2]=-2147483616;g[h+18|0]=0;b=j[1702]|j[1703]<<8;g[h+16|0]=b;g[h+17|0]=b>>>8;e=j[1698]|j[1699]<<8|(j[1700]<<16|j[1701]<<24);b=j[1694]|j[1695]<<8|(j[1696]<<16|j[1697]<<24);g[h+8|0]=b;g[h+9|0]=b>>>8;g[h+10|0]=b>>>16;g[h+11|0]=b>>>24;g[h+12|0]=e;g[h+13|0]=e>>>8;g[h+14|0]=e>>>16;g[h+15|0]=e>>>24;e=j[1690]|j[1691]<<8|(j[1692]<<16|j[1693]<<24);b=j[1686]|j[1687]<<8|(j[1688]<<16|j[1689]<<24);g[h|0]=b;g[h+1|0]=b>>>8;g[h+2|0]=b>>>16;g[h+3|0]=b>>>24;g[h+4|0]=e;g[h+5|0]=e>>>8;g[h+6|0]=e>>>16;g[h+7|0]=e>>>24;u:{v:{e=k+16|0;d=e;f=i[d>>2];if(!f){break v}while(1){b=i[f+16>>2]<(s|0);d=b?d:f;f=i[(b<<2)+f>>2];if(f){continue}break}if((d|0)==(e|0)|(s|0)>2]){break v}b=d+20|0;if(!Tb(b,c+8|0)){break v}v=ck(b,c+8|0);break u}v=ck(k,c+8|0)}if(g[c+19|0]<=-1){ep(i[c+8>>2])}sa(c+40|0,r,i[c+24>>2],g[q+24|0],v);b=i[c+24>>2];if(!b){break r}i[c+28>>2]=b;ep(b);break r}if(!ua(c+40|0,q,r)){break l}}k=i[a+40>>2];w:{if((k|0)!=i[a+44>>2]){i[k>>2]=1140;b=i[c+44>>2];i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;i[k+4>>2]=b;e=i[c+52>>2]-i[c+48>>2]|0;if(e){b=e>>2;if(b>>>0>=1073741824){break f}e=ko(e);i[k+8>>2]=e;i[k+12>>2]=e;i[k+16>>2]=e+(b<<2);b=k;h=i[c+48>>2];n=i[c+52>>2]-h|0;if((n|0)>=1){e=kp(e,h,n)+n|0}i[b+12>>2]=e}i[k+20>>2]=i[c+60>>2];i[a+40>>2]=k+24;break w}Vb(z,c+40|0)}Ca(c+8|0,c+40|0,q,w);i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;oa(c+40|0,q,c+24|0,i[c+8>>2]);b=i[c+24>>2];if(b){i[c+28>>2]=b;ep(b)}e=i[a+64>>2];x:{if(e>>>0>2]){b=i[c+8>>2];i[c+8>>2]=0;i[e>>2]=b;i[a+64>>2]=e+4;break x}Wb(y,c+8|0)}b=i[c+8>>2];i[c+8>>2]=0;if(b){Xb(b)}i[c+40>>2]=1140;b=i[c+48>>2];if(!b){break b}i[c+52>>2]=b;ep(b);break b}i[c+40>>2]=1140;a=i[c+48>>2];if(a){i[c+52>>2]=a;ep(a)}f=0;break a}b=g[q+24|0];n=0;i[c+48>>2]=0;i[c+40>>2]=0;i[c+44>>2]=0;d=0;if(b){if((b|0)<=-1){break e}b=b<<2;f=ko(b);i[c+40>>2]=f;i[c+44>>2]=f;b=b+f|0;i[c+48>>2]=b;while(1){i[f>>2]=2147483647;f=f+4|0;if((b|0)!=(f|0)){continue}break}i[c+44>>2]=b;d=j[q+24|0]}i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;if(d&255){b=d<<24>>24;if((b|0)<=-1){break d}e=b<<2;n=ko(e);i[c+24>>2]=n;b=e+n|0;i[c+32>>2]=b;lp(n,0,e);i[c+28>>2]=b}r=j[q+24|0];m=0;if(!i[q+80>>2]){break c}while(1){Yb(q,m,r<<24>>24,n);b=j[q+24|0];r=b<<24>>24;if((r|0)>=1){n=b>>>0>1?b:1;f=0;h=i[c+24>>2];k=i[c+40>>2];while(1){b=f<<2;e=b+k|0;b=i[b+h>>2];if(i[e>>2]>(b|0)){i[e>>2]=b}f=f+1|0;if((n|0)!=(f|0)){continue}break}}m=m+1|0;if(m>>>0>=l[q+80>>2]){break c}n=i[c+24>>2];continue}}Ko();x()}Ko();x()}Ko();x()}Ko();x()}f=0;y:{if(r<<24>>24<=0){break y}z:{while(1){A:{m=i[c+40>>2]+(f<<2)|0;b=i[a+52>>2];e=i[a+56>>2];B:{if((b|0)!=(e|0)){i[b>>2]=i[m>>2];i[a+52>>2]=b+4;break B}o=i[A>>2];r=b-o|0;h=r>>2;n=h+1|0;if(n>>>0>=1073741824){break A}k=e-o|0;e=k>>1;k=k>>2>>>0<536870911?e>>>0>>0?n:e:1073741823;b=0;C:{if(!k){break C}if(k>>>0>=1073741824){break z}b=ko(k<<2)}e=b+(h<<2)|0;i[e>>2]=i[m>>2];k=b+(k<<2)|0;e=e+4|0;if((r|0)>=1){kp(b,o,r)}i[a+56>>2]=k;i[a+52>>2]=e;i[a+48>>2]=b;if(!o){break B}ep(o)}f=f+1|0;if((f|0)>2];if(b){i[c+28>>2]=b;ep(b)}b=i[c+40>>2];if(!b){break b}i[c+44>>2]=b;ep(b)}f=1;u=u+1|0;n=i[a+4>>2];if(u>>>0>=i[a+8>>2]-n>>2>>>0){break a}m=i[a+28>>2];h=i[m+4>>2];continue}}H=c- -64|0;return f|0}function zj(a,b,c,d){var e=0,f=0,h=0,k=0;f=H-32|0;H=f;i[b+44>>2]=d;i[b+48>>2]=c;d=i[b+12>>2];e=i[b+8>>2];if((d|0)!=(e|0)){while(1){d=d+ -4|0;h=i[d>>2];i[d>>2]=0;if(h){K[i[i[h>>2]+4>>2]](h)}if((d|0)!=(e|0)){continue}break}}i[b+12>>2]=e;i[b+24>>2]=i[b+20>>2];i[b+36>>2]=i[b+32>>2];a:{if(!i[b+4>>2]){b=ko(32);i[f+8>>2]=b;i[f+12>>2]=23;i[f+16>>2]=-2147483616;g[b+23|0]=0;c=j[13555]|j[13556]<<8|(j[13557]<<16|j[13558]<<24);d=j[13551]|j[13552]<<8|(j[13553]<<16|j[13554]<<24);g[b+15|0]=d;g[b+16|0]=d>>>8;g[b+17|0]=d>>>16;g[b+18|0]=d>>>24;g[b+19|0]=c;g[b+20|0]=c>>>8;g[b+21|0]=c>>>16;g[b+22|0]=c>>>24;c=j[13548]|j[13549]<<8|(j[13550]<<16|j[13551]<<24);d=j[13544]|j[13545]<<8|(j[13546]<<16|j[13547]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13540]|j[13541]<<8|(j[13542]<<16|j[13543]<<24);d=j[13536]|j[13537]<<8|(j[13538]<<16|j[13539]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;uo(a+4|0,f+8|0);if(g[f+19|0]>-1){break a}ep(i[f+8>>2]);break a}Aj(a,b);if(i[a>>2]){break a}h=a+4|0;if(g[a+15|0]<=-1){ep(i[h>>2])}d=i[i[b+4>>2]+4>>2];b:{if(!d){i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;break b}if(!km(f+24|0,i[b+44>>2],d)){d=ko(32);i[f+8>>2]=d;i[f+12>>2]=26;i[f+16>>2]=-2147483616;g[d+26|0]=0;e=j[13718]|j[13719]<<8;g[d+24|0]=e;g[d+25|0]=e>>>8;e=j[13714]|j[13715]<<8|(j[13716]<<16|j[13717]<<24);k=j[13710]|j[13711]<<8|(j[13712]<<16|j[13713]<<24);g[d+16|0]=k;g[d+17|0]=k>>>8;g[d+18|0]=k>>>16;g[d+19|0]=k>>>24;g[d+20|0]=e;g[d+21|0]=e>>>8;g[d+22|0]=e>>>16;g[d+23|0]=e>>>24;e=j[13706]|j[13707]<<8|(j[13708]<<16|j[13709]<<24);k=j[13702]|j[13703]<<8|(j[13704]<<16|j[13705]<<24);g[d+8|0]=k;g[d+9|0]=k>>>8;g[d+10|0]=k>>>16;g[d+11|0]=k>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;e=j[13698]|j[13699]<<8|(j[13700]<<16|j[13701]<<24);k=j[13694]|j[13695]<<8|(j[13696]<<16|j[13697]<<24);g[d|0]=k;g[d+1|0]=k>>>8;g[d+2|0]=k>>>16;g[d+3|0]=k>>>24;g[d+4|0]=e;g[d+5|0]=e>>>8;g[d+6|0]=e>>>16;g[d+7|0]=e>>>24;i[a>>2]=-1;uo(h,f+8|0);if(g[f+19|0]<=-1){ep(i[f+8>>2])}if(i[a>>2]){break a}break b}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}if(g[h+11|0]<=-1){ep(i[h>>2])}if(!(K[i[i[b>>2]+16>>2]](b)|0)){b=ko(32);i[f+8>>2]=b;i[f+12>>2]=29;i[f+16>>2]=-2147483616;g[b+29|0]=0;c=j[13585]|j[13586]<<8|(j[13587]<<16|j[13588]<<24);d=j[13581]|j[13582]<<8|(j[13583]<<16|j[13584]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=j[13580]|j[13581]<<8|(j[13582]<<16|j[13583]<<24);d=j[13576]|j[13577]<<8|(j[13578]<<16|j[13579]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[13572]|j[13573]<<8|(j[13574]<<16|j[13575]<<24);d=j[13568]|j[13569]<<8|(j[13570]<<16|j[13571]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13564]|j[13565]<<8|(j[13566]<<16|j[13567]<<24);d=j[13560]|j[13561]<<8|(j[13562]<<16|j[13563]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;uo(h,f+8|0);if(g[f+19|0]>-1){break a}ep(i[f+8>>2]);break a}if(!(K[i[i[b>>2]+20>>2]](b)|0)){b=ko(32);i[f+8>>2]=b;i[f+12>>2]=31;i[f+16>>2]=-2147483616;g[b+31|0]=0;c=j[13617]|j[13618]<<8|(j[13619]<<16|j[13620]<<24);d=j[13613]|j[13614]<<8|(j[13615]<<16|j[13616]<<24);g[b+23|0]=d;g[b+24|0]=d>>>8;g[b+25|0]=d>>>16;g[b+26|0]=d>>>24;g[b+27|0]=c;g[b+28|0]=c>>>8;g[b+29|0]=c>>>16;g[b+30|0]=c>>>24;c=j[13610]|j[13611]<<8|(j[13612]<<16|j[13613]<<24);d=j[13606]|j[13607]<<8|(j[13608]<<16|j[13609]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[13602]|j[13603]<<8|(j[13604]<<16|j[13605]<<24);d=j[13598]|j[13599]<<8|(j[13600]<<16|j[13601]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13594]|j[13595]<<8|(j[13596]<<16|j[13597]<<24);d=j[13590]|j[13591]<<8|(j[13592]<<16|j[13593]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;uo(h,f+8|0);if(g[f+19|0]>-1){break a}ep(i[f+8>>2]);break a}K[i[i[b>>2]+24>>2]](a,b);if(i[a>>2]){break a}if(g[h+11|0]<=-1){ep(i[h>>2])}if(!(K[i[i[b>>2]+28>>2]](b)|0)){b=ko(48);i[f+8>>2]=b;i[f+12>>2]=34;i[f+16>>2]=-2147483600;g[b+34|0]=0;c=j[13654]|j[13655]<<8;g[b+32|0]=c;g[b+33|0]=c>>>8;c=j[13650]|j[13651]<<8|(j[13652]<<16|j[13653]<<24);d=j[13646]|j[13647]<<8|(j[13648]<<16|j[13649]<<24);g[b+24|0]=d;g[b+25|0]=d>>>8;g[b+26|0]=d>>>16;g[b+27|0]=d>>>24;g[b+28|0]=c;g[b+29|0]=c>>>8;g[b+30|0]=c>>>16;g[b+31|0]=c>>>24;c=j[13642]|j[13643]<<8|(j[13644]<<16|j[13645]<<24);d=j[13638]|j[13639]<<8|(j[13640]<<16|j[13641]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[13634]|j[13635]<<8|(j[13636]<<16|j[13637]<<24);d=j[13630]|j[13631]<<8|(j[13632]<<16|j[13633]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13626]|j[13627]<<8|(j[13628]<<16|j[13629]<<24);d=j[13622]|j[13623]<<8|(j[13624]<<16|j[13625]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;uo(h,f+8|0);if(g[f+19|0]>-1){break a}ep(i[f+8>>2]);break a}d=ko(32);i[f+8>>2]=d;i[f+12>>2]=30;i[f+16>>2]=-2147483616;g[d+30|0]=0;h=j[13683]|j[13684]<<8|(j[13685]<<16|j[13686]<<24);e=j[13679]|j[13680]<<8|(j[13681]<<16|j[13682]<<24);g[d+22|0]=e;g[d+23|0]=e>>>8;g[d+24|0]=e>>>16;g[d+25|0]=e>>>24;g[d+26|0]=h;g[d+27|0]=h>>>8;g[d+28|0]=h>>>16;g[d+29|0]=h>>>24;h=j[13677]|j[13678]<<8|(j[13679]<<16|j[13680]<<24);e=j[13673]|j[13674]<<8|(j[13675]<<16|j[13676]<<24);g[d+16|0]=e;g[d+17|0]=e>>>8;g[d+18|0]=e>>>16;g[d+19|0]=e>>>24;g[d+20|0]=h;g[d+21|0]=h>>>8;g[d+22|0]=h>>>16;g[d+23|0]=h>>>24;h=j[13669]|j[13670]<<8|(j[13671]<<16|j[13672]<<24);e=j[13665]|j[13666]<<8|(j[13667]<<16|j[13668]<<24);g[d+8|0]=e;g[d+9|0]=e>>>8;g[d+10|0]=e>>>16;g[d+11|0]=e>>>24;g[d+12|0]=h;g[d+13|0]=h>>>8;g[d+14|0]=h>>>16;g[d+15|0]=h>>>24;h=j[13661]|j[13662]<<8|(j[13663]<<16|j[13664]<<24);e=j[13657]|j[13658]<<8|(j[13659]<<16|j[13660]<<24);g[d|0]=e;g[d+1|0]=e>>>8;g[d+2|0]=e>>>16;g[d+3|0]=e>>>24;g[d+4|0]=h;g[d+5|0]=h>>>8;g[d+6|0]=h>>>16;g[d+7|0]=h>>>24;c=ek(c,f+8|0,0);if(g[f+19|0]<=-1){ep(i[f+8>>2])}if(c){K[i[i[b>>2]+48>>2]](b)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}H=f+32|0}function an(a,b,c,d,e,f){a=a|0;b=+b;c=c|0;d=d|0;e=e|0;f=f|0;var h=0,k=0,l=0,m=0,n=0,p=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;p=H-560|0;H=p;i[p+44>>2]=0;Hp(+b);h=Ep(1)|0;Ep(0)|0;a:{if((h|0)<-1?1:(h|0)<=-1){B=1;b=-b;Hp(+b);h=Ep(1)|0;Ep(0)|0;w=17504;break a}B=1;w=17507;if(e&2048){break a}w=17510;if(e&1){break a}B=0;E=1;w=17505}b:{if((h&2146435072)==2146435072){n=B+3|0;$m(a,32,c,n,e&-65537);Vm(a,w,B);d=f&32;Vm(a,b!=b?d?17531:17535:d?17523:17527,3);break b}x=p+16|0;c:{d:{e:{b=Sm(b,p+44|0);b=b+b;if(b!=0){h=i[p+44>>2];i[p+44>>2]=h+ -1;y=f|32;if((y|0)!=97){break e}break c}y=f|32;if((y|0)==97){break c}n=i[p+44>>2];r=(d|0)<0?6:d;break d}n=h+ -29|0;i[p+44>>2]=n;b=b*268435456;r=(d|0)<0?6:d}t=(n|0)<0?p+48|0:p+336|0;m=t;while(1){d=m;if(b<4294967296&b>=0){h=~~b>>>0}else{h=0}i[d>>2]=h;m=m+4|0;b=(b- +(h>>>0))*1e9;if(b!=0){continue}break}f:{if((n|0)<1){d=n;h=m;k=t;break f}k=t;d=n;while(1){s=(d|0)<29?d:29;h=m+ -4|0;g:{if(h>>>0>>0){break g}d=s;l=0;while(1){u=h;C=l;D=i[h>>2];v=d&31;if(32<=(d&63)>>>0){l=D<>>32-v;D=D<>>0>>0?l+1|0:l;l=zp(v,l,1e9,0);C=u;u=xp(l,J,1e9,0);i[C>>2]=v-u;h=h+ -4|0;if(h>>>0>=k>>>0){continue}break}if(!l){break g}k=k+ -4|0;i[k>>2]=l}while(1){h=m;if(h>>>0>k>>>0){m=h+ -4|0;if(!i[m>>2]){continue}}break}d=i[p+44>>2]-s|0;i[p+44>>2]=d;m=h;if((d|0)>0){continue}break}}if((d|0)<=-1){z=((r+25|0)/9|0)+1|0;s=(y|0)==102;while(1){l=(d|0)<-9?9:0-d|0;h:{if(k>>>0>=h>>>0){k=i[k>>2]?k:k+4|0;break h}u=1e9>>>l|0;v=-1<>2];i[m>>2]=C+(d>>>l|0);d=o(u,d&v);m=m+4|0;if(m>>>0>>0){continue}break}k=i[k>>2]?k:k+4|0;if(!d){break h}i[h>>2]=d;h=h+4|0}d=l+i[p+44>>2]|0;i[p+44>>2]=d;m=s?t:k;h=h-m>>2>(z|0)?m+(z<<2)|0:h;if((d|0)<0){continue}break}}m=0;i:{if(k>>>0>=h>>>0){break i}m=o(t-k>>2,9);d=10;l=i[k>>2];if(l>>>0<10){break i}while(1){m=m+1|0;d=o(d,10);if(l>>>0>=d>>>0){continue}break}}d=(r-((y|0)==102?0:m)|0)-((y|0)==103&(r|0)!=0)|0;if((d|0)<(o(h-t>>2,9)+ -9|0)){l=d+9216|0;s=(l|0)/9|0;n=((s<<2)+((n|0)<0?p+48|4:p+340|0)|0)+ -4096|0;d=10;l=l-o(s,9)|0;if((l|0)<=7){while(1){d=o(d,10);l=l+1|0;if((l|0)!=8){continue}break}}s=i[n>>2];u=(s>>>0)/(d>>>0)|0;z=n+4|0;l=s-o(d,u)|0;j:{if(l?0:(z|0)==(h|0)){break j}v=d>>>1|0;A=l>>>0>>0?.5:(h|0)==(z|0)?(v|0)==(l|0)?1:1.5:1.5;b=u&1?9007199254740994:9007199254740992;if(!(j[w|0]!=45|E)){A=-A;b=-b}l=s-l|0;i[n>>2]=l;if(b+A==b){break j}d=d+l|0;i[n>>2]=d;if(d>>>0>=1e9){while(1){i[n>>2]=0;n=n+ -4|0;if(n>>>0>>0){k=k+ -4|0;i[k>>2]=0}d=i[n>>2]+1|0;i[n>>2]=d;if(d>>>0>999999999){continue}break}}m=o(t-k>>2,9);d=10;l=i[k>>2];if(l>>>0<10){break j}while(1){m=m+1|0;d=o(d,10);if(l>>>0>=d>>>0){continue}break}}d=n+4|0;h=h>>>0>d>>>0?d:h}while(1){d=h;n=h>>>0<=k>>>0;if(!n){h=d+ -4|0;if(!i[h>>2]){continue}}break}k:{if((y|0)!=103){s=e&8;break k}h=r?r:1;l=(h|0)>(m|0)&(m|0)>-5;r=(l?m^-1:-1)+h|0;f=(l?-1:-2)+f|0;s=e&8;if(s){break k}h=-9;l:{if(n){break l}s=i[d+ -4>>2];if(!s){break l}l=10;h=0;if((s>>>0)%10|0){break l}while(1){n=h;h=h+1|0;l=o(l,10);if(!((s>>>0)%(l>>>0)|0)){continue}break}h=n^-1}n=o(d-t>>2,9);if((f&-33)==70){s=0;h=(h+n|0)+ -9|0;h=(h|0)>0?h:0;r=(r|0)<(h|0)?r:h;break k}s=0;h=((m+n|0)+h|0)+ -9|0;h=(h|0)>0?h:0;r=(r|0)<(h|0)?r:h}u=r|s;v=(u|0)!=0;C=a;l=c;y=f&-33;h=(m|0)>0?m:0;m:{if((y|0)==70){break m}h=m>>31;h=_m(h+m^h,0,x);if((x-h|0)<=1){while(1){h=h+ -1|0;g[h|0]=48;if((x-h|0)<2){continue}break}}z=h+ -2|0;g[z|0]=f;g[h+ -1|0]=(m|0)<0?45:43;h=x-z|0}n=(h+(v+(r+B|0)|0)|0)+1|0;$m(C,32,l,n,e);Vm(a,w,B);$m(a,48,c,n,e^65536);n:{o:{p:{if((y|0)==70){f=p+16|8;m=p+16|9;l=k>>>0>t>>>0?t:k;k=l;while(1){h=_m(i[k>>2],0,m);q:{if((k|0)!=(l|0)){if(h>>>0<=p+16>>>0){break q}while(1){h=h+ -1|0;g[h|0]=48;if(h>>>0>p+16>>>0){continue}break}break q}if((h|0)!=(m|0)){break q}g[p+24|0]=48;h=f}Vm(a,h,m-h|0);k=k+4|0;if(k>>>0<=t>>>0){continue}break}if(u){Vm(a,17539,1)}if((r|0)<1|k>>>0>=d>>>0){break p}while(1){h=_m(i[k>>2],0,m);if(h>>>0>p+16>>>0){while(1){h=h+ -1|0;g[h|0]=48;if(h>>>0>p+16>>>0){continue}break}}Vm(a,h,(r|0)<9?r:9);h=r+ -9|0;k=k+4|0;if(k>>>0>=d>>>0){break o}f=(r|0)>9;r=h;if(f){continue}break}break o}r:{if((r|0)<0){break r}t=d>>>0>k>>>0?d:k+4|0;d=p+16|8;f=p+16|9;m=k;while(1){h=_m(i[m>>2],0,f);if((f|0)==(h|0)){g[p+24|0]=48;h=d}s:{if((k|0)!=(m|0)){if(h>>>0<=p+16>>>0){break s}while(1){h=h+ -1|0;g[h|0]=48;if(h>>>0>p+16>>>0){continue}break}break s}Vm(a,h,1);h=h+1|0;if((r|0)<1?!s:0){break s}Vm(a,17539,1)}u=h;h=f-h|0;Vm(a,u,(r|0)>(h|0)?h:r);r=r-h|0;m=m+4|0;if(m>>>0>=t>>>0){break r}if((r|0)>-1){continue}break}}$m(a,48,r+18|0,18,0);Vm(a,z,x-z|0);break n}h=r}$m(a,48,h+9|0,9,0)}break b}r=f&32;l=r?w+9|0:w;t:{if(d>>>0>11){break t}h=12-d|0;if(!h){break t}A=8;while(1){A=A*16;h=h+ -1|0;if(h){continue}break}if(j[l|0]==45){b=-(A+(-b-A));break t}b=b+A-A}m=i[p+44>>2];h=m>>31;h=_m(h^h+m,0,x);if((x|0)==(h|0)){g[p+15|0]=48;h=p+15|0}m=B|2;k=i[p+44>>2];t=h+ -2|0;g[t|0]=f+15;g[h+ -1|0]=(k|0)<0?45:43;n=e&8;k=p+16|0;while(1){f=k;u=k;k=r;if(q(b)<2147483648){h=~~b}else{h=-2147483648}g[u|0]=k|j[h+17488|0];b=(b- +(h|0))*16;k=f+1|0;if(!((k-(p+16|0)|0)!=1|(b==0?!((d|0)>0|n):0))){g[f+1|0]=46;k=f+2|0}if(b!=0){continue}break}h=a;f=c;if(!d|((k-p|0)+ -18|0)>=(d|0)){r=((x-(p+16|0)|0)-t|0)+k|0}else{r=((d+x|0)-t|0)+2|0}d=r;n=d+m|0;$m(h,32,f,n,e);Vm(a,l,m);$m(a,48,c,n,e^65536);f=k-(p+16|0)|0;Vm(a,p+16|0,f);d=x-t|0;$m(a,48,r-(d+f|0)|0,0,0);Vm(a,t,d)}$m(a,32,c,n,e^8192);H=p+560|0;return((n|0)<(c|0)?c:n)|0}function _b(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0;c=H-1696|0;H=c;d=10-$b(i[i[a+28>>2]+48>>2])|0;d=(d|0)<6?d:6;g[c+1695|0]=d;if(!((d&255)!=6|i[a+72>>2]<16)){g[c+1695|0]=5}d=i[b+20>>2];if((d|0)<0?1:(d|0)<=0?l[b+16>>2]<=0:0){ea(b,i[b+4>>2],c+1695|0,c+1696|0)}f=i[a+28>>2];m=i[i[f+4>>2]+80>>2];e=i[a+72>>2];i[c+1684>>2]=0;i[c+1676>>2]=0;i[c+1680>>2]=0;i[c+1668>>2]=e;i[c+1664>>2]=m;i[c+1672>>2]=e<<2;a:{h=o(e,m);if(h){if(h>>>0>=1073741824){break a}d=h<<2;k=ko(d);i[c+1676>>2]=k;n=d+k|0;i[c+1684>>2]=n;lp(k,0,d);i[c+1680>>2]=n}i[c+1688>>2]=k;b:{d=i[a+4>>2];c:{if((d|0)!=i[a+8>>2]){while(1){f=i[i[i[f+4>>2]+8>>2]+(i[(s<<2)+d>>2]<<2)>>2];d=i[f+28>>2];if(d+ -1>>>0>=6){if((d|0)!=9){break c}f=i[i[a+60>>2]+(v<<2)>>2];if(!f){break c}v=v+1|0;d=i[f+28>>2]}d:{e:{switch(d+ -1|0){case 5:if(!m){break d}d=0;while(1){e=d;h=(i[c+1688>>2]+(p<<2)|0)+(o(i[c+1668>>2],d)<<2)|0;k=i[i[f>>2]>>2];n=i[f+48>>2];t=i[f+40>>2];u=i[f+44>>2];if(!j[f+84|0]){e=i[i[f+68>>2]+(d<<2)>>2]}q=h;h=xp(t,u,e,0)+n|0;kp(q,h+k|0,g[f+24|0]<<2);d=d+1|0;if((m|0)!=(d|0)){continue}break}break d;case 0:case 2:case 4:e=g[f+24|0];d=0;i[c+464>>2]=0;i[c+456>>2]=0;i[c+460>>2]=0;h=0;f:{if(e){if((e|0)<=-1){break f}e=e<<2;h=ko(e);i[c+456>>2]=h;k=e+h|0;i[c+464>>2]=k;lp(h,0,e);i[c+460>>2]=k;h=j[f+24|0]}i[c+1656>>2]=0;i[c+1648>>2]=0;i[c+1652>>2]=0;g:{if(h&255){d=h<<24>>24;if((d|0)<=-1){break g}e=d<<2;d=ko(e);i[c+1648>>2]=d;h=d+e|0;i[c+1656>>2]=h;lp(d,0,e);i[c+1652>>2]=h}if(m){e=0;while(1){d=e;h=f;if(!j[f+84|0]){d=i[i[f+68>>2]+(e<<2)>>2]}Yb(h,d,g[f+24|0],i[c+456>>2]);k=g[f+24|0];h:{if((k|0)<=0){h=i[c+1648>>2];break h}k=k&255;n=k>>>0>1?k:1;t=i[a+48>>2];d=0;h=i[c+1648>>2];u=i[c+456>>2];while(1){q=d<<2;i[q+h>>2]=i[u+q>>2]-i[t+(d+w<<2)>>2];d=d+1|0;if((n|0)!=(d|0)){continue}break}}kp((i[c+1688>>2]+(p<<2)|0)+(o(i[c+1668>>2],e)<<2)|0,h,k<<2);e=e+1|0;if((e|0)!=(m|0)){continue}break}d=i[c+1648>>2]}e=g[f+24|0];if(d){i[c+1652>>2]=d;ep(d)}d=i[c+456>>2];if(d){i[c+460>>2]=d;ep(d)}w=e+w|0;break d}Ko();x()}Ko();x();default:break e}}e=g[f+24|0];d=0;i[c+464>>2]=0;i[c+456>>2]=0;i[c+460>>2]=0;if(e){if((e|0)<=-1){break b}e=e<<2;d=ko(e);i[c+456>>2]=d;h=d+e|0;i[c+464>>2]=h;lp(d,0,e);i[c+460>>2]=h}if(m){d=0;while(1){e=d;h=f;if(!j[f+84|0]){e=i[i[f+68>>2]+(d<<2)>>2]}ac(h,e,g[f+24|0],i[c+456>>2]);kp((i[c+1688>>2]+(p<<2)|0)+(o(i[c+1668>>2],d)<<2)|0,i[c+456>>2],g[f+24|0]<<2);d=d+1|0;if((m|0)!=(d|0)){continue}break}d=i[c+456>>2]}if(!d){break d}i[c+460>>2]=d;ep(d)}s=s+1|0;d=i[a+4>>2];if(s>>>0>2]-d>>2>>>0){p=g[f+24|0]+p|0;f=i[a+28>>2];continue}break}k=i[c+1688>>2];e=i[a+72>>2];h=o(m,e)}f=0;if((h|0)>0){d=0;while(1){a=i[(d<<2)+k>>2];if(a){a=r(a)^31;f=(a|0)<(f|0)?f:a+1|0}d=d+1|0;if((h|0)!=(d|0)){continue}break}}i:{j:{switch(j[c+1695|0]){case 6:d=dc(c+456|0,e);a=i[c+1668>>2];i[c+448>>2]=a;i[c+432>>2]=a;i[c+32>>2]=a;i[c+16>>2]=a;i[c+440>>2]=0;i[c+424>>2]=i[c+1664>>2];i[c+444>>2]=c+1664;a=i[c+444>>2];i[c+24>>2]=i[c+440>>2];i[c+28>>2]=a;i[c+428>>2]=c+1664;i[c+1648>>2]=f;a=i[c+428>>2];i[c+8>>2]=i[c+424>>2];i[c+12>>2]=a;a=bc(d,c+24|0,c+8|0,c+1648|0,b);cc(d);if(a){break i}break c;case 5:d=dc(c+456|0,e);a=i[c+1668>>2];i[c+416>>2]=a;i[c+400>>2]=a;i[c- -64>>2]=a;i[c+48>>2]=a;i[c+408>>2]=0;i[c+392>>2]=i[c+1664>>2];i[c+412>>2]=c+1664;a=i[c+412>>2];i[c+56>>2]=i[c+408>>2];i[c+60>>2]=a;i[c+396>>2]=c+1664;i[c+1648>>2]=f;a=i[c+396>>2];i[c+40>>2]=i[c+392>>2];i[c+44>>2]=a;a=ec(d,c+56|0,c+40|0,c+1648|0,b);cc(d);if(a){break i}break c;case 4:d=dc(c+456|0,e);a=i[c+1668>>2];i[c+384>>2]=a;i[c+368>>2]=a;i[c+96>>2]=a;i[c+80>>2]=a;i[c+376>>2]=0;i[c+360>>2]=i[c+1664>>2];i[c+380>>2]=c+1664;a=i[c+380>>2];i[c+88>>2]=i[c+376>>2];i[c+92>>2]=a;i[c+364>>2]=c+1664;i[c+1648>>2]=f;a=i[c+364>>2];i[c+72>>2]=i[c+360>>2];i[c+76>>2]=a;a=ec(d,c+88|0,c+72|0,c+1648|0,b);cc(d);if(a){break i}break c;case 3:d=fc(c+456|0,e);a=i[c+1668>>2];i[c+352>>2]=a;i[c+336>>2]=a;i[c+128>>2]=a;i[c+112>>2]=a;i[c+344>>2]=0;i[c+328>>2]=i[c+1664>>2];i[c+348>>2]=c+1664;a=i[c+348>>2];i[c+120>>2]=i[c+344>>2];i[c+124>>2]=a;i[c+332>>2]=c+1664;i[c+1648>>2]=f;a=i[c+332>>2];i[c+104>>2]=i[c+328>>2];i[c+108>>2]=a;a=gc(d,c+120|0,c+104|0,c+1648|0,b);hc(d);if(a){break i}break c;case 2:d=fc(c+456|0,e);a=i[c+1668>>2];i[c+320>>2]=a;i[c+304>>2]=a;i[c+160>>2]=a;i[c+144>>2]=a;i[c+312>>2]=0;i[c+296>>2]=i[c+1664>>2];i[c+316>>2]=c+1664;a=i[c+316>>2];i[c+152>>2]=i[c+312>>2];i[c+156>>2]=a;i[c+300>>2]=c+1664;i[c+1648>>2]=f;a=i[c+300>>2];i[c+136>>2]=i[c+296>>2];i[c+140>>2]=a;a=gc(d,c+152|0,c+136|0,c+1648|0,b);hc(d);if(a){break i}break c;case 1:d=ic(c+456|0,e);a=i[c+1668>>2];i[c+288>>2]=a;i[c+272>>2]=a;i[c+192>>2]=a;i[c+176>>2]=a;i[c+280>>2]=0;i[c+264>>2]=i[c+1664>>2];i[c+284>>2]=c+1664;a=i[c+284>>2];i[c+184>>2]=i[c+280>>2];i[c+188>>2]=a;i[c+268>>2]=c+1664;i[c+1648>>2]=f;a=i[c+268>>2];i[c+168>>2]=i[c+264>>2];i[c+172>>2]=a;a=jc(d,c+184|0,c+168|0,c+1648|0,b);kc(d);if(a){break i}break c;case 0:break j;default:break c}}d=ic(c+456|0,e);a=i[c+1668>>2];i[c+256>>2]=a;i[c+240>>2]=a;i[c+224>>2]=a;i[c+208>>2]=a;i[c+248>>2]=0;i[c+232>>2]=i[c+1664>>2];i[c+252>>2]=c+1664;a=i[c+252>>2];i[c+216>>2]=i[c+248>>2];i[c+220>>2]=a;i[c+236>>2]=c+1664;i[c+1648>>2]=f;a=i[c+236>>2];i[c+200>>2]=i[c+232>>2];i[c+204>>2]=a;a=jc(d,c+216|0,c+200|0,c+1648|0,b);kc(d);if(!a){break c}}y=1}a=i[c+1676>>2];if(a){i[c+1680>>2]=a;ep(a)}H=c+1696|0;return y|0}Ko();x()}Ko();x()}function hi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;m=H-32|0;H=m;d=i[a+16>>2];i[a+20>>2]=d;a:{if((d|0)!=i[a+24>>2]){i[d>>2]=b;b=d+4|0;i[a+20>>2]=b;e=d;break a}e=ko(4);i[e>>2]=b;b=e+4|0;i[a+24>>2]=b;i[a+20>>2]=b;i[a+16>>2]=e;if(!d){break a}ep(d);b=i[a+20>>2];e=i[a+16>>2]}d=i[a+8>>2];s=i[d+100>>2]-i[d+96>>2]|0;d=(s|0)/12|0;b:{if((b|0)!=(e|0)){u=a+16|0;v=(d|0)>1?d:1;w=a+120|0;p=a+268|0;y=a+72|0;while(1){c:{d:{d=b+ -4|0;b=i[d>>2];if((b|0)==-1){break d}e=i[a+28>>2];c=(b>>>0)/3|0;if(i[e+(c>>>3&268435452)>>2]>>>(c&31)&1){break d}h=0;if((s|0)<=0){break c}while(1){i[a+164>>2]=i[a+164>>2]+1;k=(b>>>0)/3|0;l=(b|0)==-1;g=l?-1:k;d=(g>>>3&536870908)+e|0;i[d>>2]=i[d>>2]|1<<(g&31);e:{f:{g:{h:{d=i[a+76>>2];j=i[a+80>>2];i:{if((d|0)!=(j|0)){i[d>>2]=b;i[a+76>>2]=d+4;break i}e=i[y>>2];f=d-e|0;q=f>>2;c=q+1|0;if(c>>>0>=1073741824){break h}j=j-e|0;n=j>>1;c=j>>2>>>0<536870911?n>>>0>>0?c:n:1073741823;d=0;j:{if(!c){break j}if(c>>>0>=1073741824){break b}d=ko(c<<2)}j=d+(q<<2)|0;i[j>>2]=b;c=d+(c<<2)|0;j=j+4|0;if((f|0)>=1){kp(d,e,f)}i[a+80>>2]=c;i[a+76>>2]=j;i[a+72>>2]=d;if(!e){break i}ep(e)}d=-1;d=(b|0)!=-1?i[i[i[a+12>>2]>>2]+(b<<2)>>2]:d;q=d<<2;j=i[q+i[a+152>>2]>>2];k:{e=i[a+84>>2]+(d>>>3&536870908)|0;c=i[e>>2];d=1<<(d&31);if(c&d){break k}i[e>>2]=c|d;if((j|0)!=-1){break k}d=i[a+272>>2];g=i[a+276>>2];l:{if((d|0)!=(g|0)){i[d>>2]=0;i[a+272>>2]=d+4;break l}e=i[p>>2];f=d-e|0;j=f>>2;c=j+1|0;if(c>>>0>=1073741824){break g}g=g-e|0;k=g>>1;c=g>>2>>>0<536870911?k>>>0>>0?c:k:1073741823;d=0;m:{if(!c){break m}if(c>>>0>=1073741824){break b}d=ko(c<<2)}g=d+(j<<2)|0;i[g>>2]=0;c=d+(c<<2)|0;g=g+4|0;if((f|0)>=1){kp(d,e,f)}i[a+276>>2]=c;i[a+272>>2]=g;i[a+268>>2]=d;if(!e){break l}ep(e)}d=-1;if((b|0)==-1){break e}e=b+1|0;b=(e>>>0)%3|0?e:b+ -2|0;if((b|0)==-1){break e}d=i[i[i[a+12>>2]+12>>2]+(b<<2)>>2];break e}n:{o:{p:{if(l){break p}d=-1;e=-1;c=b+1|0;f=(c>>>0)%3|0?c:b+ -2|0;if((f|0)!=-1){e=i[i[i[a+12>>2]+12>>2]+(f<<2)>>2]}c=(b-o(k,3)|0?-1:2)+b|0;if((c|0)!=-1){d=i[i[i[a+12>>2]+12>>2]+(c<<2)>>2]}k=(d|0)==-1;l=k?-1:(d>>>0)/3|0;n=(e>>>0)/3|0;q:{if((f|0)==-1){break q}r=i[i[a+12>>2]+12>>2];f=i[r+(f<<2)>>2];if((f|0)==-1){break q}t=i[a+28>>2];f=(f>>>0)/3|0;if(!(i[t+(f>>>3&268435452)>>2]>>>(f&31)&1)){break n}}b=(e|0)==-1;if(!b){pi(a,i[a+164>>2],1,b?-1:n)}r:{if((c|0)==-1){break r}b=i[i[i[a+12>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break r}b=(b>>>0)/3|0;if(!(i[i[a+28>>2]+(b>>>3&268435452)>>2]>>>(b&31)&1)){break o}}if(k){break p}pi(a,i[a+164>>2],0,l)}b=i[a+272>>2];f=i[a+276>>2];s:{if((b|0)!=(f|0)){i[b>>2]=7;i[a+272>>2]=b+4;break s}d=i[p>>2];c=b-d|0;h=c>>2;e=h+1|0;if(e>>>0>=1073741824){break g}f=f-d|0;g=f>>1;e=f>>2>>>0<536870911?g>>>0>>0?e:g:1073741823;b=0;t:{if(!e){break t}if(e>>>0>=1073741824){break b}b=ko(e<<2)}f=b+(h<<2)|0;i[f>>2]=7;e=b+(e<<2)|0;f=f+4|0;if((c|0)>=1){kp(b,d,c)}i[a+276>>2]=e;i[a+272>>2]=f;i[a+268>>2]=b;if(!d){break s}ep(d)}i[a+20>>2]=i[a+20>>2]+ -4;break c}b=i[a+272>>2];g=i[a+276>>2];if((b|0)!=(g|0)){i[b>>2]=5;i[a+272>>2]=b+4;break e}e=i[p>>2];f=b-e|0;j=f>>2;c=j+1|0;if(c>>>0>=1073741824){break g}g=g-e|0;k=g>>1;c=g>>2>>>0<536870911?k>>>0>>0?c:k:1073741823;b=0;u:{if(!c){break u}if(c>>>0>=1073741824){break b}b=ko(c<<2)}g=b+(j<<2)|0;i[g>>2]=5;c=b+(c<<2)|0;g=g+4|0;if((f|0)>=1){kp(b,e,f)}i[a+276>>2]=c;i[a+272>>2]=g;i[a+268>>2]=b;if(!e){break e}ep(e);break e}v:{w:{if((c|0)==-1){break w}c=i[(c<<2)+r>>2];if((c|0)==-1){break w}c=(c>>>0)/3|0;if(!(i[(c>>>3&268435452)+t>>2]>>>(c&31)&1)){break v}}if(!k){pi(a,i[a+164>>2],0,l)}b=i[a+272>>2];g=i[a+276>>2];if((b|0)!=(g|0)){i[b>>2]=3;i[a+272>>2]=b+4;d=e;break e}d=i[p>>2];f=b-d|0;j=f>>2;c=j+1|0;if(c>>>0>=1073741824){break g}g=g-d|0;k=g>>1;c=g>>2>>>0<536870911?k>>>0>>0?c:k:1073741823;b=0;x:{if(!c){break x}if(c>>>0>=1073741824){break b}b=ko(c<<2)}g=b+(j<<2)|0;i[g>>2]=3;c=b+(c<<2)|0;g=g+4|0;if((f|0)>=1){kp(b,d,f)}i[a+276>>2]=c;i[a+272>>2]=g;i[a+268>>2]=b;if(d){ep(d)}d=e;break e}c=i[a+272>>2];l=i[a+276>>2];y:{if((c|0)!=(l|0)){i[c>>2]=1;i[a+272>>2]=c+4;break y}f=i[p>>2];k=c-f|0;n=k>>2;h=n+1|0;if(h>>>0>=1073741824){break g}l=l-f|0;r=l>>1;h=l>>2>>>0<536870911?r>>>0>>0?h:r:1073741823;c=0;z:{if(!h){break z}if(h>>>0>=1073741824){break b}c=ko(h<<2)}l=c+(n<<2)|0;i[l>>2]=1;h=c+(h<<2)|0;l=l+4|0;if((k|0)>=1){kp(c,f,k)}i[a+276>>2]=h;i[a+272>>2]=l;i[a+268>>2]=c;if(!f){break y}ep(f)}i[a+168>>2]=i[a+168>>2]+1;A:{if((j|0)==-1){break A}c=i[q+i[a+152>>2]>>2];if(i[i[a+140>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break A}ii(a,b,0)}b=i[a+164>>2];i[m+4>>2]=g;i[m+16>>2]=m+4;qi(m+24|0,w,m+4|0,m+16|0);i[i[m+24>>2]+12>>2]=b;b=i[a+20>>2];i[b+ -4>>2]=d;h=i[a+24>>2];if((h|0)!=(b|0)){i[b>>2]=e;i[a+20>>2]=b+4;break c}d=i[u>>2];f=b-d|0;g=f>>2;c=g+1|0;if(c>>>0>=1073741824){break f}h=h-d|0;j=h>>1;c=h>>2>>>0<536870911?j>>>0>>0?c:j:1073741823;b=0;B:{if(!c){break B}if(c>>>0>=1073741824){break b}b=ko(c<<2)}h=b+(g<<2)|0;i[h>>2]=e;e=b+(c<<2)|0;c=h+4|0;if((f|0)>=1){kp(b,d,f)}i[a+24>>2]=e;i[a+20>>2]=c;i[a+16>>2]=b;if(!d){break c}ep(d);break c}Ko();x()}Ko();x()}Ko();x()}h=h+1|0;if((v|0)==(h|0)){break c}e=i[a+28>>2];b=d;continue}}i[a+20>>2]=d}b=i[a+20>>2];if((b|0)!=i[a+16>>2]){continue}break}}H=m+32|0;return 1}Ba(11708);x()}function Qd(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;k=H-80|0;H=k;h=-1;e=-1;a:{if((b|0)==-1){break a}e=b+1|0;h=(e>>>0)%3|0?e:b+ -2|0;e=b+ -1|0;if((b>>>0)%3|0){break a}e=b+2|0}f=i[a+36>>2];b=i[f>>2];b:{c:{d:{e:{f:{g:{h:{i:{f=i[f+4>>2]-b>>2;m=h<<2;h=i[i[a+32>>2]+28>>2];l=i[m+h>>2];if(f>>>0<=l>>>0){break i}e=i[h+(e<<2)>>2];if(f>>>0<=e>>>0){break i}K=i[b+(l<<2)>>2];M=(K|0)>=(d|0);if(M){break d}l=i[b+(e<<2)>>2];if((l|0)>=(d|0)){break d}b=l<<3;f=i[(b|4)+c>>2];e=K<<3;h=i[(e|4)+c>>2];I=i[b+c>>2];z=i[c+e>>2];if(!((I|0)!=(z|0)|(f|0)!=(h|0))){i[a+8>>2]=z;i[a+12>>2]=h;break c}b=i[i[a+4>>2]+(d<<2)>>2];i[k+72>>2]=0;i[k+76>>2]=0;e=k- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[k+56>>2]=0;i[k+60>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Rd(e,b,g[e+24|0],k+56|0);b=i[i[a+4>>2]+(K<<2)>>2];i[k+48>>2]=0;i[k+52>>2]=0;i[k+40>>2]=0;i[k+44>>2]=0;i[k+32>>2]=0;i[k+36>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Rd(e,b,g[e+24|0],k+32|0);b=i[i[a+4>>2]+(l<<2)>>2];i[k+24>>2]=0;i[k+28>>2]=0;i[k+16>>2]=0;i[k+20>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Rd(e,b,g[e+24|0],k+8|0);A=i[k+44>>2];e=i[k+16>>2];b=i[k+40>>2];n=i[k+20>>2]-(A+(e>>>0>>0)|0)|0;l=e-b|0;e=xp(l,n,l,n);r=J;m=e;y=i[k+36>>2];e=i[k+8>>2];u=i[k+32>>2];o=u;s=i[k+12>>2]-(y+(e>>>0>>0)|0)|0;o=e-o|0;p=xp(o,s,o,s);m=m+p|0;e=J+r|0;e=m>>>0

>>0?e+1|0:e;q=m;t=i[k+52>>2];m=i[k+24>>2];v=i[k+48>>2];p=v;r=i[k+28>>2]-(t+(m>>>0

>>0)|0)|0;m=m-p|0;C=xp(m,r,m,r);p=q+C|0;e=J+e|0;w=p;p=p>>>0>>0?e+1|0:e;if(!(w|p)){break d}e=i[k+64>>2];C=e-b|0;N=i[k+68>>2]-((e>>>0>>0)+A|0)|0;b=xp(C,N,l,n);e=J;q=b;b=i[k+56>>2];E=b-u|0;O=i[k+60>>2]-((b>>>0>>0)+y|0)|0;u=xp(E,O,o,s);b=q+u|0;e=J+e|0;e=b>>>0>>0?e+1|0:e;q=b;b=i[k+72>>2];F=b-v|0;P=i[k+76>>2]-((b>>>0>>0)+t|0)|0;u=xp(F,P,m,r);b=q+u|0;e=J+e|0;v=b;e=b>>>0>>0?e+1|0:e;A=e;B=b;u=e;e=r;y=e>>31;b=e>>31;e=b+e|0;t=y;q=t+m|0;if(q>>>0>>0){e=e+1|0}y=y^q;b=b^e;Q=b;q=y;G=b;e=n;b=e>>31;e=e>>31;D=b;b=b+n|0;L=e+l|0;if(L>>>0>>0){b=b+1|0}e=e^L;b=b^D;R=b;L=b;S=B;T=q;q=e;B=s>>31;b=B+s|0;t=s>>31;D=t+o|0;if(D>>>0>>0){b=b+1|0}t=t^D;e=t>>>0>>0;b=b^B;e=(b|0)<(R|0)?1:(b|0)<=(R|0)?e:0;t=e?q:t;b=e?L:b;e=(b|0)<(Q|0)?1:(b|0)<=(Q|0)?t>>>0>>0:0;e=S>>>0>zp(-1,2147483647,e?T:t,e?G:b)>>>0;b=J;if((u|0)>(b|0)?1:(u|0)>=(b|0)?e:0){break e}b=f;e=h;B=b-e|0;h=e>>31;q=(b>>31)-(h+(b>>>0>>0)|0)|0;b=xp(v,A,B,q);f=J;e=xp(e,h,w,p);b=e+b|0;f=J+f|0;u=b;y=b>>>0>>0?f+1|0:f;b=I;e=z;G=b-e|0;f=e>>31;D=(b>>31)-(f+(b>>>0>>0)|0)|0;b=xp(v,A,G,D);h=J;f=xp(e,f,w,p);e=f+b|0;b=J+h|0;z=e;I=e>>>0>>0?b+1|0:b;h=1;e=0;b=yp(xp(l,n,v,A),J,w,p);f=N-(J+(C>>>0>>0)|0)|0;b=C-b|0;b=xp(b,f,b,f);l=J;n=b;b=yp(xp(o,s,v,A),J,w,p);f=O-(J+(E>>>0>>0)|0)|0;b=E-b|0;o=xp(b,f,b,f);b=n+o|0;f=J+l|0;f=b>>>0>>0?f+1|0:f;n=b;b=yp(xp(m,r,v,A),J,w,p);l=P-(J+(F>>>0>>0)|0)|0;b=F-b|0;o=xp(b,l,b,l);l=n+o|0;b=J+f|0;l=xp(l,l>>>0>>0?b+1|0:b,w,p);b=J;o=b;if(!b&l>>>0<=1|b>>>0<0){break h}m=l;f=o;while(1){b=e<<1|h>>>31;h=h<<1;e=b;n=!f&m>>>0>7|f>>>0>0;m=(f&3)<<30|m>>>2;f=f>>>2|0;if(n){continue}break}break g}Lo();x()}h=l;e=o;if(h-1|0){break f}}while(1){b=zp(l,o,h,e)+h|0;e=e+J|0;e=b>>>0>>0?e+1|0:e;h=(e&1)<<31|b>>>1;e=e>>>1|0;b=xp(h,e,h,e);f=J;if((o|0)==(f|0)&b>>>0>l>>>0|f>>>0>o>>>0){continue}break}}o=a+16|0;t=i[a+24>>2];C=t<<5;b=i[a+20>>2];v=d<<3;n=i[(v|4)+c>>2];m=n;f=u;E=xp(h,e,G,D);l=E;F=J;l=yp(f-l|0,y-(F+(f>>>0>>0)|0)|0,w,p);r=m>>31;f=m;s=r-(J+(f>>>0>>0)|0)|0;f=f-l|0;G=xp(f,s,f,s);D=J;n=i[c+v>>2];f=n>>31;v=n;s=n;A=f;n=xp(h,e,B,q);B=J;e=I+B|0;h=z;q=h+n|0;if(q>>>0>>0){e=e+1|0}h=yp(q,e,w,p);e=h;f=f-(J+(s>>>0>>0)|0)|0;e=s-e|0;s=xp(e,f,e,f);e=s+G|0;f=J+D|0;q=e;s=e>>>0>>0?f+1|0:f;e=y+F|0;f=u+E|0;if(f>>>0>>0){e=e+1|0}e=yp(f,e,w,p);r=r-(J+(m>>>0>>0)|0)|0;f=m-e|0;f=xp(f,r,f,r);u=J;m=yp(z-n|0,I-((z>>>0>>0)+B|0)|0,w,p);n=f;f=m;r=A-(J+(v>>>0>>0)|0)|0;f=v-f|0;z=xp(f,r,f,r);r=n+z|0;f=J+u|0;f=r>>>0>>0?f+1|0:f;j:{if((f|0)==(s|0)&q>>>0>>0|s>>>0>>0){if((b|0)==(C|0)){if((b+1|0)<=-1){break b}if(b>>>0<=1073741822){b=b+32&-32;e=t<<6;b=e>>>0>>0?b:e}else{b=2147483647}cd(o,b);b=i[a+20>>2]}i[a+20>>2]=b+1;e=i[a+16>>2]+(b>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<<(b&31);break j}if((b|0)==(C|0)){if((b+1|0)<=-1){break b}if(b>>>0<=1073741822){b=b+32&-32;h=t<<6;b=h>>>0>>0?b:h}else{b=2147483647}cd(o,b);b=i[a+20>>2]}i[a+20>>2]=b+1;h=i[a+16>>2]+(b>>>3&536870908)|0;f=i[h>>2];U=h,V=Bp(-2,b)&f,i[U>>2]=V;l=e;h=m}i[a+8>>2]=h;i[a+12>>2]=l}if(!(p|w)){break d}break c}e=a;if(M){if((d|0)<=0){i[a+8>>2]=0;i[a+12>>2]=0;break c}b=(d<<1)+ -2|0}else{b=K<<1}b=(b<<2)+c|0;i[e+8>>2]=i[b>>2];i[a+12>>2]=i[b+4>>2]}H=k+80|0;return}Ko();x()}function ie(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;h=H-80|0;H=h;e=-1;k=-1;a:{if((b|0)==-1){break a}f=((b>>>0)%3|0?-1:2)+b|0;l=i[a+32>>2];m=b+1|0;b=(m>>>0)%3|0?m:b+ -2|0;if((b|0)!=-1){e=i[i[l>>2]+(b<<2)>>2]}if((f|0)==-1){break a}k=i[i[l>>2]+(f<<2)>>2]}f=i[a+36>>2];b=i[f>>2];b:{c:{d:{e:{f:{g:{h:{f=i[f+4>>2]-b>>2;if(!(f>>>0<=e>>>0|f>>>0<=k>>>0)){K=i[b+(e<<2)>>2];M=(K|0)>=(d|0);if(M){break d}l=i[b+(k<<2)>>2];if((l|0)>=(d|0)){break d}b=l<<3;f=i[(b|4)+c>>2];e=K<<3;k=i[(e|4)+c>>2];I=i[b+c>>2];z=i[c+e>>2];if(!((I|0)!=(z|0)|(f|0)!=(k|0))){i[a+8>>2]=z;i[a+12>>2]=k;break c}b=i[i[a+4>>2]+(d<<2)>>2];i[h+72>>2]=0;i[h+76>>2]=0;e=h- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[h+56>>2]=0;i[h+60>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Rd(e,b,g[e+24|0],h+56|0);b=i[i[a+4>>2]+(K<<2)>>2];i[h+48>>2]=0;i[h+52>>2]=0;i[h+40>>2]=0;i[h+44>>2]=0;i[h+32>>2]=0;i[h+36>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Rd(e,b,g[e+24|0],h+32|0);b=i[i[a+4>>2]+(l<<2)>>2];i[h+24>>2]=0;i[h+28>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;i[h+8>>2]=0;i[h+12>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Rd(e,b,g[e+24|0],h+8|0);A=i[h+44>>2];e=i[h+16>>2];b=i[h+40>>2];o=i[h+20>>2]-(A+(e>>>0>>0)|0)|0;l=e-b|0;e=xp(l,o,l,o);q=J;n=e;y=i[h+36>>2];e=i[h+8>>2];t=i[h+32>>2];m=t;r=i[h+12>>2]-(y+(e>>>0>>0)|0)|0;m=e-m|0;p=xp(m,r,m,r);n=n+p|0;e=J+q|0;e=n>>>0

>>0?e+1|0:e;u=n;s=i[h+52>>2];n=i[h+24>>2];v=i[h+48>>2];p=v;q=i[h+28>>2]-(s+(n>>>0

>>0)|0)|0;n=n-p|0;C=xp(n,q,n,q);p=u+C|0;e=J+e|0;w=p;p=p>>>0>>0?e+1|0:e;if(!(w|p)){break d}e=i[h+64>>2];C=e-b|0;N=i[h+68>>2]-((e>>>0>>0)+A|0)|0;b=xp(C,N,l,o);e=J;u=b;b=i[h+56>>2];E=b-t|0;O=i[h+60>>2]-((b>>>0>>0)+y|0)|0;t=xp(E,O,m,r);b=u+t|0;e=J+e|0;e=b>>>0>>0?e+1|0:e;u=b;b=i[h+72>>2];F=b-v|0;P=i[h+76>>2]-((b>>>0>>0)+s|0)|0;t=xp(F,P,n,q);b=u+t|0;e=J+e|0;v=b;e=b>>>0>>0?e+1|0:e;A=e;B=b;t=e;e=q;y=e>>31;b=e>>31;e=b+e|0;s=y;u=s+n|0;if(u>>>0>>0){e=e+1|0}y=y^u;b=b^e;Q=b;u=y;G=b;e=o;b=e>>31;e=e>>31;D=b;b=b+o|0;L=e+l|0;if(L>>>0>>0){b=b+1|0}e=e^L;b=b^D;R=b;L=b;S=B;T=e;B=r>>31;b=B+r|0;s=r>>31;D=s+m|0;if(D>>>0>>0){b=b+1|0}s=s^D;e=s>>>0>>0;b=b^B;e=(b|0)<(R|0)?1:(b|0)<=(R|0)?e:0;s=e?T:s;b=e?L:b;e=(b|0)<(Q|0)?1:(b|0)<=(Q|0)?s>>>0>>0:0;e=S>>>0>zp(-1,2147483647,e?u:s,e?G:b)>>>0;b=J;if((t|0)>(b|0)?1:(t|0)>=(b|0)?e:0){break e}b=f;e=k;B=b-e|0;k=e>>31;u=(b>>31)-(k+(b>>>0>>0)|0)|0;b=xp(v,A,B,u);f=J;e=xp(e,k,w,p);b=e+b|0;f=J+f|0;t=b;y=b>>>0>>0?f+1|0:f;b=I;e=z;G=b-e|0;f=e>>31;D=(b>>31)-(f+(b>>>0>>0)|0)|0;b=xp(v,A,G,D);k=J;f=xp(e,f,w,p);e=f+b|0;b=J+k|0;z=e;I=e>>>0>>0?b+1|0:b;k=1;e=0;b=yp(xp(l,o,v,A),J,w,p);f=N-(J+(C>>>0>>0)|0)|0;b=C-b|0;b=xp(b,f,b,f);l=J;o=b;b=yp(xp(m,r,v,A),J,w,p);f=O-(J+(E>>>0>>0)|0)|0;b=E-b|0;m=xp(b,f,b,f);b=o+m|0;f=J+l|0;f=b>>>0>>0?f+1|0:f;o=b;b=yp(xp(n,q,v,A),J,w,p);l=P-(J+(F>>>0>>0)|0)|0;b=F-b|0;m=xp(b,l,b,l);l=o+m|0;b=J+f|0;l=xp(l,l>>>0>>0?b+1|0:b,w,p);b=J;m=b;if(!b&l>>>0<=1|b>>>0<0){break h}n=l;f=m;while(1){b=e<<1|k>>>31;k=k<<1;e=b;o=!f&n>>>0>7|f>>>0>0;n=(f&3)<<30|n>>>2;f=f>>>2|0;if(o){continue}break}break g}Lo();x()}k=l;e=m;if(k-1|0){break f}}while(1){b=zp(l,m,k,e)+k|0;e=e+J|0;e=b>>>0>>0?e+1|0:e;k=(e&1)<<31|b>>>1;e=e>>>1|0;b=xp(k,e,k,e);f=J;if((m|0)==(f|0)&b>>>0>l>>>0|f>>>0>m>>>0){continue}break}}m=a+16|0;s=i[a+24>>2];C=s<<5;b=i[a+20>>2];v=d<<3;o=i[(v|4)+c>>2];n=o;f=t;E=xp(k,e,G,D);l=E;F=J;l=yp(f-l|0,y-(F+(f>>>0>>0)|0)|0,w,p);q=n>>31;f=n;r=q-(J+(f>>>0>>0)|0)|0;f=f-l|0;G=xp(f,r,f,r);D=J;o=i[c+v>>2];f=o>>31;v=o;r=o;A=f;o=xp(k,e,B,u);B=J;e=I+B|0;k=z;u=k+o|0;if(u>>>0>>0){e=e+1|0}k=yp(u,e,w,p);e=k;f=f-(J+(r>>>0>>0)|0)|0;e=r-e|0;r=xp(e,f,e,f);e=r+G|0;f=J+D|0;u=e;r=e>>>0>>0?f+1|0:f;e=y+F|0;f=t+E|0;if(f>>>0>>0){e=e+1|0}e=yp(f,e,w,p);q=q-(J+(n>>>0>>0)|0)|0;f=n-e|0;f=xp(f,q,f,q);t=J;n=yp(z-o|0,I-((z>>>0>>0)+B|0)|0,w,p);o=f;f=n;q=A-(J+(v>>>0>>0)|0)|0;f=v-f|0;z=xp(f,q,f,q);q=o+z|0;f=J+t|0;f=q>>>0>>0?f+1|0:f;i:{if((f|0)==(r|0)&u>>>0>>0|r>>>0>>0){if((b|0)==(C|0)){if((b+1|0)<=-1){break b}if(b>>>0<=1073741822){b=b+32&-32;e=s<<6;b=e>>>0>>0?b:e}else{b=2147483647}cd(m,b);b=i[a+20>>2]}i[a+20>>2]=b+1;e=i[a+16>>2]+(b>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<<(b&31);break i}if((b|0)==(C|0)){if((b+1|0)<=-1){break b}if(b>>>0<=1073741822){b=b+32&-32;k=s<<6;b=k>>>0>>0?b:k}else{b=2147483647}cd(m,b);b=i[a+20>>2]}i[a+20>>2]=b+1;k=i[a+16>>2]+(b>>>3&536870908)|0;f=i[k>>2];U=k,V=Bp(-2,b)&f,i[U>>2]=V;l=e;k=n}i[a+8>>2]=k;i[a+12>>2]=l}if(!(p|w)){break d}break c}e=a;if(M){if((d|0)<=0){i[a+8>>2]=0;i[a+12>>2]=0;break c}b=(d<<1)+ -2|0}else{b=K<<1}b=(b<<2)+c|0;i[e+8>>2]=i[b>>2];i[a+12>>2]=i[b+4>>2]}H=h+80|0;return}Ko();x()}function mc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,J=0,K=0,L=0,M=0,N=0;e=H+ -64|0;H=e;g=i[a+8>>2];i[e+48>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;f=ko(d);i[e+40>>2]=f;k=d+f|0;i[e+48>>2]=k;lp(f,0,d);i[e+44>>2]=k}h=i[a+1164>>2];d=i[h>>2];if(d){i[h+4>>2]=d;ep(d);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;g=i[a+8>>2];k=i[e+44>>2];f=i[e+40>>2]}i[h+4>>2]=k;i[h>>2]=f;i[h+8>>2]=i[e+48>>2];f=0;i[e+48>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;d=0;b:{if(g){if(g>>>0>=1073741824){break b}h=g<<2;d=ko(h);i[e+40>>2]=d;f=d+h|0;i[e+48>>2]=f;lp(d,0,h);i[e+44>>2]=f}n=i[a+1176>>2];h=i[n>>2];if(h){i[n+4>>2]=h;ep(h);i[n+8>>2]=0;i[n>>2]=0;i[n+4>>2]=0;d=i[e+40>>2];f=i[e+44>>2]}i[n+4>>2]=f;i[n>>2]=d;i[n+8>>2]=i[e+48>>2];z=i[b+4>>2];F=i[b+8>>2];A=i[c+4>>2];G=i[c+8>>2];q=i[c>>2];j=i[b>>2];d=e+56|0;i[d>>2]=0;i[d+4>>2]=0;f=e+48|0;i[f>>2]=0;i[f+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;n=q-j|0;wc(e+40|0);g=0;h=i[e+44>>2];if((h|0)!=i[f>>2]){d=i[d>>2]+i[e+60>>2]|0;f=(d>>>0)/113|0;g=i[h+(f<<2)>>2]+o(d-o(f,113)|0,36)|0}i[g+32>>2]=0;i[g+28>>2]=n;i[g+24>>2]=0;i[g+16>>2]=A;i[g+20>>2]=G;i[g+12>>2]=q;i[g+4>>2]=z;i[g+8>>2]=F;i[g>>2]=j;f=i[e+60>>2];g=f+1|0;i[e+60>>2]=g;if(g>>>0>=f>>>0){n=A;q=z;J=a+1068|0;K=a+1108|0;L=i[c+8>>2];u=i[b+8>>2];while(1){f=i[e+44>>2];j=g+ -1|0;m=j+i[e+56>>2]|0;d=(m>>>0)/113|0;d=i[f+(d<<2)>>2]+o(m-o(d,113)|0,36)|0;B=i[d+32>>2];p=i[d+12>>2];h=i[d>>2];i[e+60>>2]=j;d=i[e+48>>2];f=d-f|0;if((f?o(f>>2,113)+ -1|0:0)-m>>>0>=226){ep(i[d+ -4>>2]);i[e+48>>2]=i[e+48>>2]+ -4}i[b>>2]=h;i[c>>2]=p;j=i[a+1164>>2];d=i[a+1176>>2];i[e+32>>2]=i[b+8>>2];f=i[b+4>>2];i[e+24>>2]=i[b>>2];i[e+28>>2]=f;i[e+16>>2]=i[c+8>>2];f=i[c+4>>2];i[e+8>>2]=i[c>>2];i[e+12>>2]=f;C=o(B,12);k=j+C|0;m=d+C|0;g=xc(a,e+24|0,e+8|0,k,m);v=g<<2;f=i[a>>2]-i[v+i[m>>2]>>2]|0;c:{d:{if(!f){break d}e:{f:{w=p-h|0;if(w>>>0<=2){j=i[a+1152>>2];i[j>>2]=g;f=1;d=i[a+8>>2];if(d>>>0>1){break f}break e}j=1<>2];d=D+f|0;if((d|0)!=(k|0)){ta(d,i[k>>2],i[k+4>>2]);f=i[a+1164>>2]}f=v+i[f+D>>2]|0;E=j+i[f>>2]|0;i[f>>2]=E;f=h;g:{if((p|0)==(f|0)){break g}M=i[q+24>>2];d=h;f=p;while(1){s=M+(o(d,u)<<2)|0;if(l[s+v>>2]>>0){d=d+1|0;if((f|0)!=(d|0)){continue}break g}while(1){f=f+ -1|0;if((f|0)==(d|0)){f=d;break g}t=i[n+24>>2]+(o(f,L)<<2)|0;if(l[v+t>>2]>=E>>>0){continue}break}y=0;if(u){while(1){k=y<<2;j=k+s|0;m=i[j>>2];N=j;j=k+t|0;i[N>>2]=i[j>>2];i[j>>2]=m;y=y+1|0;if((u|0)!=(y|0)){continue}break}}d=d+1|0;if((f|0)!=(d|0)){continue}break}}d=r(w);s=f-h|0;t=p-f|0;if((s|0)!=(t|0)){yc(K,s>>>0>>0)}m=d^31;d=w>>>1|0;h:{if(s>>>0>>0){if(!m){break h}j=d-s|0;d=1<>>1|0;k=k+1|0;if((m|0)!=(k|0)){continue}break}break h}if(!m){break h}j=d-t|0;d=1<>>1|0;k=k+1|0;if((m|0)!=(k|0)){continue}break}}k=i[a+1176>>2];m=k+C|0;j=i[m>>2];d=j+v|0;i[d>>2]=i[d>>2]+1;ta(k+D|0,j,i[m+4>>2]);if((f|0)!=(h|0)){k=i[e+60>>2]+i[e+56>>2]|0;m=i[e+48>>2];d=i[e+44>>2];j=m-d|0;if((k|0)==((j?o(j>>2,113)+ -1|0:0)|0)){wc(e+40|0);k=i[e+56>>2]+i[e+60>>2]|0;m=i[e+48>>2];d=i[e+44>>2]}j=0;i:{if((d|0)==(m|0)){break i}j=d;d=(k>>>0)/113|0;j=i[j+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[j+32>>2]=B;i[j+28>>2]=s;i[j+24>>2]=g;i[j+20>>2]=u;i[j+16>>2]=q;i[j+12>>2]=f;i[j+4>>2]=z;i[j+8>>2]=F;i[j>>2]=h;i[e+60>>2]=i[e+60>>2]+1}if((f|0)==(p|0)){break d}k=i[e+60>>2]+i[e+56>>2]|0;m=i[e+48>>2];d=i[e+44>>2];h=m-d|0;if((k|0)==((h?o(h>>2,113)+ -1|0:0)|0)){wc(e+40|0);k=i[e+56>>2]+i[e+60>>2]|0;m=i[e+48>>2];d=i[e+44>>2]}h=0;j:{if((d|0)==(m|0)){break j}h=d;d=(k>>>0)/113|0;h=i[h+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[h+32>>2]=I;i[h+28>>2]=t;i[h+24>>2]=g;i[h+16>>2]=A;i[h+20>>2]=G;i[h+12>>2]=p;i[h+8>>2]=u;i[h+4>>2]=q;i[h>>2]=f;g=i[e+60>>2]+1|0;i[e+60>>2]=g;break c}while(1){g=(d+ -1|0)==(g|0)?0:g+1|0;i[j+(f<<2)>>2]=g;f=f+1|0;d=i[a+8>>2];if(f>>>0>>0){continue}break}}k=0;f=d;if(!w){break d}while(1){k:{if(!f){f=0;break k}p=i[q+24>>2]+(o(i[q+4>>2],h+k|0)<<2)|0;g=0;while(1){j=i[i[a+1152>>2]+(g<<2)>>2]<<2;f=i[a>>2]-i[j+i[m>>2]>>2]|0;if(f){zc(J,f,i[j+p>>2]);d=i[a+8>>2]}f=d;g=g+1|0;if(g>>>0>>0){continue}break}}k=k+1|0;if((w|0)!=(k|0)){continue}break}}g=i[e+60>>2]}if(g){continue}break}}i[e+60>>2]=0;a=i[e+48>>2];g=i[e+44>>2];d=a-g>>2;if(d>>>0>=3){while(1){ep(i[g>>2]);g=i[e+44>>2]+4|0;i[e+44>>2]=g;a=i[e+48>>2];d=a-g>>2;if(d>>>0>2){continue}break}}f=56;l:{switch(d+ -1|0){case 1:f=113;case 0:i[e+56>>2]=f;break;default:break l}}m:{if((a|0)==(g|0)){break m}while(1){ep(i[g>>2]);g=g+4|0;if((g|0)!=(a|0)){continue}break}b=i[e+48>>2];a=i[e+44>>2];if((b|0)==(a|0)){break m}i[e+48>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[e+40>>2];if(a){ep(a)}H=e- -64|0;return}Ko();x()}Ko();x()}function bf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=p(0);h=H-32|0;H=h;a:{b:{if(!gd(a,b,c)){break b}n=i[i[i[b+4>>2]+8>>2]+(c<<2)>>2];if(i[n+28>>2]!=9){break b}k=i[b+48>>2];d=ko(32);i[h+16>>2]=d;i[h+20>>2]=17;i[h+24>>2]=-2147483616;g[d+17|0]=0;g[d+16|0]=j[9828];l=j[9824]|j[9825]<<8|(j[9826]<<16|j[9827]<<24);e=j[9820]|j[9821]<<8|(j[9822]<<16|j[9823]<<24);g[d+8|0]=e;g[d+9|0]=e>>>8;g[d+10|0]=e>>>16;g[d+11|0]=e>>>24;g[d+12|0]=l;g[d+13|0]=l>>>8;g[d+14|0]=l>>>16;g[d+15|0]=l>>>24;l=j[9816]|j[9817]<<8|(j[9818]<<16|j[9819]<<24);e=j[9812]|j[9813]<<8|(j[9814]<<16|j[9815]<<24);g[d|0]=e;g[d+1|0]=e>>>8;g[d+2|0]=e>>>16;g[d+3|0]=e>>>24;g[d+4|0]=l;g[d+5|0]=l>>>8;g[d+6|0]=l>>>16;g[d+7|0]=l>>>24;c:{d:{l=k+16|0;f=i[l>>2];if(!f){break d}d=l;while(1){e=i[f+16>>2]<(c|0);d=e?d:f;f=i[(e<<2)+f>>2];if(f){continue}break}if((d|0)==(l|0)|i[d+16>>2]>(c|0)){break d}d=d+20|0;if(!Tb(d,h+16|0)){break d}l=bk(d,h+16|0,-1);break c}l=bk(k,h+16|0,-1)}if(g[h+27|0]<=-1){ep(i[h+16>>2])}if((l|0)<1){f=0;break b}k=i[b+48>>2];d=ko(32);i[h+16>>2]=d;i[h+20>>2]=19;i[h+24>>2]=-2147483616;g[d+19|0]=0;e=j[9845]|j[9846]<<8|(j[9847]<<16|j[9848]<<24);g[d+15|0]=e;g[d+16|0]=e>>>8;g[d+17|0]=e>>>16;g[d+18|0]=e>>>24;e=j[9842]|j[9843]<<8|(j[9844]<<16|j[9845]<<24);f=j[9838]|j[9839]<<8|(j[9840]<<16|j[9841]<<24);g[d+8|0]=f;g[d+9|0]=f>>>8;g[d+10|0]=f>>>16;g[d+11|0]=f>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;e=j[9834]|j[9835]<<8|(j[9836]<<16|j[9837]<<24);f=j[9830]|j[9831]<<8|(j[9832]<<16|j[9833]<<24);g[d|0]=f;g[d+1|0]=f>>>8;g[d+2|0]=f>>>16;g[d+3|0]=f>>>24;g[d+4|0]=e;g[d+5|0]=e>>>8;g[d+6|0]=e>>>16;g[d+7|0]=e>>>24;e:{f:{e=k+16|0;f=i[e>>2];if(!f){break f}d=e;while(1){m=i[f+16>>2]<(c|0);d=m?d:f;f=i[(m<<2)+f>>2];if(f){continue}break}if((d|0)==(e|0)|i[d+16>>2]>(c|0)){break f}e=Tb(d+20|0,h+16|0);break e}e=Tb(k,h+16|0)}d=0;g:{if(!e){break g}k=i[b+48>>2];d=ko(32);i[h>>2]=d;i[h+4>>2]=18;i[h+8>>2]=-2147483616;g[d+18|0]=0;e=j[9866]|j[9867]<<8;g[d+16|0]=e;g[d+17|0]=e>>>8;e=j[9862]|j[9863]<<8|(j[9864]<<16|j[9865]<<24);f=j[9858]|j[9859]<<8|(j[9860]<<16|j[9861]<<24);g[d+8|0]=f;g[d+9|0]=f>>>8;g[d+10|0]=f>>>16;g[d+11|0]=f>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;e=j[9854]|j[9855]<<8|(j[9856]<<16|j[9857]<<24);f=j[9850]|j[9851]<<8|(j[9852]<<16|j[9853]<<24);g[d|0]=f;g[d+1|0]=f>>>8;g[d+2|0]=f>>>16;g[d+3|0]=f>>>24;g[d+4|0]=e;g[d+5|0]=e>>>8;g[d+6|0]=e>>>16;g[d+7|0]=e>>>24;h:{i:{e=k+16|0;f=i[e>>2];if(!f){break i}d=e;while(1){m=i[f+16>>2]<(c|0);d=m?d:f;f=i[(m<<2)+f>>2];if(f){continue}break}if((d|0)==(e|0)|i[d+16>>2]>(c|0)){break i}d=Tb(d+20|0,h);break h}d=Tb(k,h)}if(g[h+11|0]<=-1){ep(i[h>>2])}d=(d|0)!=0}if(g[h+27|0]<=-1){ep(i[h+16>>2])}j:{if(d){d=g[n+24|0];i[h+24>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;k=0;if(d){if((d|0)<=-1){break a}d=d<<2;k=ko(d);i[h+16>>2]=k;e=d+k|0;i[h+24>>2]=e;lp(k,0,d);i[h+20>>2]=e}m=i[b+48>>2];d=ko(32);i[h>>2]=d;i[h+4>>2]=19;i[h+8>>2]=-2147483616;g[d+19|0]=0;e=j[9845]|j[9846]<<8|(j[9847]<<16|j[9848]<<24);g[d+15|0]=e;g[d+16|0]=e>>>8;g[d+17|0]=e>>>16;g[d+18|0]=e>>>24;e=j[9842]|j[9843]<<8|(j[9844]<<16|j[9845]<<24);f=j[9838]|j[9839]<<8|(j[9840]<<16|j[9841]<<24);g[d+8|0]=f;g[d+9|0]=f>>>8;g[d+10|0]=f>>>16;g[d+11|0]=f>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;e=j[9834]|j[9835]<<8|(j[9836]<<16|j[9837]<<24);f=j[9830]|j[9831]<<8|(j[9832]<<16|j[9833]<<24);g[d|0]=f;g[d+1|0]=f>>>8;g[d+2|0]=f>>>16;g[d+3|0]=f>>>24;g[d+4|0]=e;g[d+5|0]=e>>>8;g[d+6|0]=e>>>16;g[d+7|0]=e>>>24;o=g[n+24|0];k:{l:{e=m+16|0;f=i[e>>2];if(!f){break l}d=e;while(1){q=i[f+16>>2]<(c|0);d=q?d:f;f=i[(q<<2)+f>>2];if(f){continue}break}if((d|0)==(e|0)|i[d+16>>2]>(c|0)){break l}d=d+20|0;if(!Tb(d,h)){break l}Ub(d,h,o,k);break k}Ub(m,h,o,k)}if(g[h+11|0]<=-1){ep(i[h>>2])}k=i[b+48>>2];b=ko(32);i[h>>2]=b;i[h+4>>2]=18;i[h+8>>2]=-2147483616;g[b+18|0]=0;d=j[9866]|j[9867]<<8;g[b+16|0]=d;g[b+17|0]=d>>>8;d=j[9862]|j[9863]<<8|(j[9864]<<16|j[9865]<<24);e=j[9858]|j[9859]<<8|(j[9860]<<16|j[9861]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[9854]|j[9855]<<8|(j[9856]<<16|j[9857]<<24);e=j[9850]|j[9851]<<8|(j[9852]<<16|j[9853]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;m:{n:{b=k+16|0;f=i[b>>2];if(!f){break n}d=b;while(1){e=i[f+16>>2]<(c|0);d=e?d:f;f=i[(e<<2)+f>>2];if(f){continue}break}if((b|0)==(d|0)|i[d+16>>2]>(c|0)){break n}b=d+20|0;if(!Tb(b,h)){break n}r=ck(b,h);break m}r=ck(k,h)}if(g[h+11|0]<=-1){ep(i[h>>2])}b=sa(a+40|0,l,i[h+16>>2],g[n+24|0],r);a=i[h+16>>2];if(a){i[h+20>>2]=a;ep(a)}f=0;if(b){break j}break b}f=0;if(!ua(a+40|0,n,l)){break b}}f=1}H=h+32|0;return f|0}Ko();x()}function Um(a,b,c,d){var e=0,f=0,k=0,l=0,m=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;f=H-80|0;H=f;i[f+76>>2]=18485;z=f+55|0;w=f+56|0;a:{b:while(1){c:{if((t|0)<0){break c}if((e|0)>(2147483647-t|0)){i[4805]=61;t=-1;break c}t=e+t|0}d:{e:{f:{m=i[f+76>>2];e=m;k=j[e|0];if(k){while(1){g:{k=k&255;h:{if(!k){k=e;break h}if((k|0)!=37){break g}k=e;while(1){if(j[e+1|0]!=37){break h}l=e+2|0;i[f+76>>2]=l;k=k+1|0;p=j[e+2|0];e=l;if((p|0)==37){continue}break}}e=k-m|0;if(a){Vm(a,m,e)}if(e){continue b}k=f;l=!Om(g[i[f+76>>2]+1|0]);e=i[f+76>>2];i:{if(!(l|j[e+2|0]!=36)){v=g[e+1|0]+ -48|0;x=1;e=e+3|0;break i}v=-1;e=e+1|0}i[k+76>>2]=e;q=0;u=g[e|0];l=u+ -32|0;j:{if(l>>>0>31){k=e;break j}k=e;l=1<>2]=k;q=l|q;u=g[e+1|0];l=u+ -32|0;if(l>>>0>=32){break j}e=k;l=1<>2];if(j[e+2|0]!=36){break m}i[((g[e+1|0]<<2)+d|0)+ -192>>2]=10;r=i[((g[e+1|0]<<3)+c|0)+ -384>>2];x=1;e=e+3|0;break l}if(x){break f}x=0;r=0;if(a){e=i[b>>2];i[b>>2]=e+4;r=i[e>>2]}e=i[f+76>>2]+1|0}i[l+76>>2]=e;if((r|0)>-1){break k}r=0-r|0;q=q|8192;break k}r=Wm(f+76|0);if((r|0)<0){break f}e=i[f+76>>2]}p=-1;n:{if(j[e|0]!=46){break n}if(j[e+1|0]==42){o:{if(!Om(g[e+2|0])){break o}e=i[f+76>>2];if(j[e+3|0]!=36){break o}i[((g[e+2|0]<<2)+d|0)+ -192>>2]=10;p=i[((g[e+2|0]<<3)+c|0)+ -384>>2];e=e+4|0;i[f+76>>2]=e;break n}if(x){break f}if(a){e=i[b>>2];i[b>>2]=e+4;p=i[e>>2]}else{p=0}e=i[f+76>>2]+2|0;i[f+76>>2]=e;break n}i[f+76>>2]=e+1;p=Wm(f+76|0);e=i[f+76>>2]}k=0;while(1){y=k;s=-1;if(g[e|0]+ -65>>>0>57){break a}u=e+1|0;i[f+76>>2]=u;k=g[e|0];e=u;k=j[(k+o(y,58)|0)+16959|0];if(k+ -1>>>0<8){continue}break}p:{q:{if((k|0)!=19){if(!k){break a}if((v|0)>=0){i[(v<<2)+d>>2]=k;e=(v<<3)+c|0;k=i[e+4>>2];i[f+64>>2]=i[e>>2];i[f+68>>2]=k;break q}if(!a){break d}Xm(f- -64|0,k,b);u=i[f+76>>2];break p}if((v|0)>-1){break a}}e=0;if(!a){continue b}}l=q&-65537;k=q&8192?l:q;s=0;v=16996;q=w;r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{e=g[u+ -1|0];e=y?(e&15)==3?e&-33:e:e;switch(e+ -88|0){case 11:break r;case 9:case 13:case 14:case 15:break s;case 27:break x;case 12:case 17:break A;case 23:break B;case 0:case 32:break C;case 24:break D;case 22:break E;case 29:break F;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 e;default:break G}}H:{switch(e+ -65|0){case 0:case 4:case 5:case 6:break s;case 2:break v;case 1:case 3:break e;default:break H}}if((e|0)==83){break w}break e}e=i[f+64>>2];m=i[f+68>>2];v=16996;break z}e=0;I:{switch(y&255){case 0:i[i[f+64>>2]>>2]=t;continue b;case 1:i[i[f+64>>2]>>2]=t;continue b;case 2:k=i[f+64>>2];i[k>>2]=t;i[k+4>>2]=t>>31;continue b;case 3:h[i[f+64>>2]>>1]=t;continue b;case 4:g[i[f+64>>2]]=t;continue b;case 6:i[i[f+64>>2]>>2]=t;continue b;case 7:break I;default:continue b}}k=i[f+64>>2];i[k>>2]=t;i[k+4>>2]=t>>31;continue b}p=p>>>0>8?p:8;k=k|8;e=120}m=Ym(i[f+64>>2],i[f+68>>2],w,e&32);if(!(k&8)|!(i[f+64>>2]|i[f+68>>2])){break y}v=(e>>>4|0)+16996|0;s=2;break y}m=Zm(i[f+64>>2],i[f+68>>2],w);if(!(k&8)){break y}e=w-m|0;p=(p|0)>(e|0)?p:e+1|0;break y}l=i[f+68>>2];m=l;e=i[f+64>>2];if((l|0)<-1?1:(l|0)<=-1){m=0-(m+(0>>0)|0)|0;e=0-e|0;i[f+64>>2]=e;i[f+68>>2]=m;s=1;v=16996;break z}if(k&2048){s=1;v=16997;break z}s=k&1;v=s?16998:16996}m=_m(e,m,w)}k=(p|0)>-1?k&-65537:k;e=i[f+64>>2];l=i[f+68>>2];if(!(!!(e|l)|p)){p=0;m=w;break e}e=!(e|l)+(w-m|0)|0;p=(p|0)>(e|0)?p:e;break e}e=i[f+64>>2];m=e?e:17006;e=Pm(m,p);q=e?e:p+m|0;k=l;p=e?e-m|0:p;break e}l=i[f+64>>2];if(p){break u}e=0;$m(a,32,r,0,k);break t}i[f+12>>2]=0;i[f+8>>2]=i[f+64>>2];i[f+64>>2]=f+8;p=-1;l=f+8|0}e=0;J:{while(1){m=i[l>>2];if(!m){break J}m=Rm(f+4|0,m);q=(m|0)<0;if(!(q|m>>>0>p-e>>>0)){l=l+4|0;e=e+m|0;if(p>>>0>e>>>0){continue}break J}break}s=-1;if(q){break a}}$m(a,32,r,e,k);if(!e){e=0;break t}u=0;l=i[f+64>>2];while(1){m=i[l>>2];if(!m){break t}m=Rm(f+4|0,m);u=m+u|0;if((u|0)>(e|0)){break t}Vm(a,f+4|0,m);l=l+4|0;if(u>>>0>>0){continue}break}}$m(a,32,r,e,k^8192);e=(r|0)>(e|0)?r:e;continue b}e=K[368](a,n[f+64>>3],r,p,k,e)|0;continue b}g[f+55|0]=i[f+64>>2];p=1;m=z;k=l;break e}l=e+1|0;i[f+76>>2]=l;k=j[e+1|0];e=l;continue}}s=t;if(a){break a}if(!x){break d}e=1;while(1){a=i[(e<<2)+d>>2];if(a){Xm((e<<3)+c|0,a,b);s=1;e=e+1|0;if((e|0)!=10){continue}break a}break}s=1;if(e>>>0>=10){break a}while(1){if(i[(e<<2)+d>>2]){break f}e=e+1|0;if((e|0)!=10){continue}break}break a}s=-1;break a}q=q-m|0;p=(p|0)<(q|0)?q:p;l=p+s|0;e=(r|0)<(l|0)?l:r;$m(a,32,e,l,k);Vm(a,v,s);$m(a,48,e,l,k^65536);$m(a,48,p,q,0);Vm(a,m,q);$m(a,32,e,l,k^8192);continue}break}s=0}H=f+80|0;return s}function Hn(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=H-16|0;H=e;i[e+12>>2]=a;a:{if(a>>>0<=211){a=i[In(17648,17840,e+12|0)>>2];break a}if(a>>>0>=4294967292){Kn();x()}f=(a>>>0)/210|0;d=o(f,210);i[e+8>>2]=a-d;g=In(17840,18032,e+8|0)-17840>>2;b:{while(1){a=i[(g<<2)+17840>>2]+d|0;d=5;b=h;c:{d:{while(1){h=b;if((d|0)==47){d=211;while(1){b=(a>>>0)/(d>>>0)|0;if(b>>>0>>0){break c}if((o(b,d)|0)==(a|0)){break d}b=d+10|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+12|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+16|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+18|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+22|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+28|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+30|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+36|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+40|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+42|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+46|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+52|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+58|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+60|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+66|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+70|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+72|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+78|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+82|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+88|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+96|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+100|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+102|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+106|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+108|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+112|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+120|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+126|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+130|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+136|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+138|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+142|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+148|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+150|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+156|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+162|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+166|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+168|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+172|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+178|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+180|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+186|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+190|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+192|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+196|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+198|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+208|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}d=d+210|0;if((o(b,c)|0)!=(a|0)){continue}break}break d}b=i[(d<<2)+17648>>2];c=(a>>>0)/(b>>>0)|0;j=o(b,c);c=c>>>0>>0;if(!c){b=c?a:h;d=d+1|0;if((a|0)!=(j|0)){continue}}break}if((a|0)!=(j|0)|c){break b}}b=g+1|0;a=(b|0)==48;g=a?0:b;f=a+f|0;d=o(f,210);continue}break}i[e+12>>2]=a;break a}i[e+12>>2]=a;a=c?a:h}H=e+16|0;return a}function An(a,b,c,d,e,f,g,h,j){var k=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;o=H-96|0;H=o;q=c;l=g;v=(l&131071)<<15|f>>>17;k=j&65535;x=k;t=h;l=h;B=l<<15|g>>>17;p=(e^j)&-2147483648;l=e&65535;n=l;s=d;E=l;l=k;C=(l&131071)<<15|h>>>17;F=j>>>16&32767;P=e>>>16&32767;a:{b:{if(P+ -1>>>0<=32765){w=0;if(F+ -1>>>0<32766){break b}}y=e&2147483647;k=y;l=d;if(!(!d&(k|0)==2147418112?!(b|c):(k|0)==2147418112&d>>>0<0|k>>>0<2147418112)){z=d;p=e|32768;break a}y=j&2147483647;e=y;d=h;if(!(!d&(e|0)==2147418112?!(f|g):(e|0)==2147418112&d>>>0<0|e>>>0<2147418112)){z=h;p=j|32768;b=f;c=g;break a}if(!(b|l|(k^2147418112|c))){if(!(d|f|(e|g))){p=2147450880;b=0;c=0;break a}p=p|2147418112;b=0;c=0;break a}if(!(d|f|(e^2147418112|g))){d=b|l;e=c|k;b=0;c=0;if(!(d|e)){p=2147450880;break a}p=p|2147418112;break a}if(!(b|l|(c|k))){b=0;c=0;break a}if(!(d|f|(e|g))){b=0;c=0;break a}if((k|0)==65535|k>>>0<65535){j=b;k=c;d=!(n|s);h=d<<6;l=r(d?b:s)+32|0;b=r(d?c:n);b=h+((b|0)==32?l:b)|0;un(o+80|0,j,k,s,n,b+ -15|0);s=i[o+88>>2];q=i[o+84>>2];E=i[o+92>>2];m=16-b|0;b=i[o+80>>2]}w=m;if(e>>>0>65535){break b}c=!(t|x);d=c<<6;e=r(c?f:t)+32|0;c=r(c?g:x);c=d+((c|0)==32?e:c)|0;h=c;un(o- -64|0,f,g,t,x,c+ -15|0);f=i[o+76>>2];c=f;j=i[o+68>>2];g=j;e=i[o+72>>2];d=e;B=d<<15|g>>>17;d=g;f=i[o+64>>2];v=(d&131071)<<15|f>>>17;C=(c&131071)<<15|e>>>17;w=(m-h|0)+16|0}d=v;t=0;j=xp(d,0,b,t);c=J;D=c;A=f<<15&-32768;f=xp(A,0,q,0);e=f+j|0;m=J+c|0;m=e>>>0>>0?m+1|0:m;c=e;f=0;g=xp(A,G,b,t);e=f+g|0;k=J+c|0;k=e>>>0>>0?k+1|0:k;v=e;g=k;Z=(c|0)==(k|0)&e>>>0>>0|k>>>0>>0;S=xp(d,Q,q,R);L=J;y=s;f=xp(A,G,s,0);e=f+S|0;n=J+L|0;n=e>>>0>>0?n+1|0:n;T=e;h=xp(B,0,b,t);e=e+h|0;f=J+n|0;M=e;f=e>>>0>>0?f+1|0:f;x=f;h=f;f=(m|0)==(D|0)&c>>>0>>0|m>>>0>>0;e=m;c=e+M|0;k=f+h|0;D=c;k=c>>>0>>0?k+1|0:k;e=k;h=c;V=xp(d,Q,s,U);N=J;c=A;I=E|65536;A=u;f=xp(c,G,I,u);c=f+V|0;k=J+N|0;k=c>>>0>>0?k+1|0:k;W=c;l=xp(q,R,B,X);c=c+l|0;u=k;f=k+J|0;f=c>>>0>>0?f+1|0:f;O=c;K=C&2147483647|-2147483648;c=xp(K,0,b,t);b=O+c|0;t=f;l=f+J|0;G=b;c=b>>>0>>0?l+1|0:l;k=e+b|0;f=0;b=f+h|0;if(b>>>0>>0){k=k+1|0}E=b;C=k;f=k;h=b+Z|0;if(h>>>0>>0){f=f+1|0}j=f;s=(w+(F+P|0)|0)+ -16383|0;f=xp(y,U,B,X);b=J;m=0;l=xp(d,Q,I,A);d=l+f|0;k=J+b|0;k=d>>>0>>0?k+1|0:k;w=d;l=d;d=k;k=(b|0)==(d|0)&l>>>0>>0|d>>>0>>0;f=xp(K,Y,q,R);b=f+l|0;l=J+d|0;l=b>>>0>>0?l+1|0:l;q=b;f=b;b=l;d=(d|0)==(b|0)&f>>>0>>0|b>>>0>>0;f=k+d|0;if(f>>>0>>0){m=1}l=f;d=b;f=m;F=l;k=0;l=(n|0)==(x|0)&M>>>0>>0|x>>>0>>0;n=l+((n|0)==(L|0)&T>>>0>>0|n>>>0>>0)|0;if(n>>>0>>0){k=1}m=n;n=n+q|0;l=d+k|0;w=n;k=n;l=k>>>0>>0?l+1|0:l;d=l;b=(b|0)==(d|0)&k>>>0>>0|d>>>0>>0;l=F+b|0;if(l>>>0>>0){f=f+1|0}b=l;l=xp(K,Y,I,A);b=b+l|0;k=J+f|0;k=b>>>0>>0?k+1|0:k;m=b;n=xp(K,Y,y,U);f=J;q=xp(B,X,I,A);b=q+n|0;l=J+f|0;l=b>>>0>>0?l+1|0:l;q=b;b=l;l=(f|0)==(b|0)&q>>>0>>0|b>>>0>>0;f=b+m|0;m=k+l|0;l=f>>>0>>0?m+1|0:m;y=f;k=d+q|0;m=0;b=m+w|0;if(b>>>0>>0){k=k+1|0}n=b;f=b;b=k;d=(d|0)==(b|0)&f>>>0>>0|b>>>0>>0;f=y+d|0;if(f>>>0>>0){l=l+1|0}q=f;m=b;k=0;f=(u|0)==(t|0)&O>>>0>>0|t>>>0>>0;u=f+((u|0)==(N|0)&W>>>0>>0|u>>>0>>0)|0;if(u>>>0>>0){k=1}f=u+((c|0)==(t|0)&G>>>0>>0|c>>>0>>0)|0;d=c;c=d+n|0;m=f+m|0;m=c>>>0>>0?m+1|0:m;u=c;d=c;c=m;b=(b|0)==(c|0)&d>>>0>>0|c>>>0>>0;d=b+q|0;if(d>>>0>>0){l=l+1|0}b=c;k=l;l=d;f=0;d=(e|0)==(C|0)&E>>>0>>0|C>>>0>>0;e=d+((e|0)==(x|0)&D>>>0>>0|e>>>0>>0)|0;if(e>>>0>>0){f=1}d=e+u|0;m=b+f|0;m=d>>>0>>0?m+1|0:m;b=d;e=m;b=(c|0)==(e|0)&b>>>0>>0|e>>>0>>0;c=l+b|0;if(c>>>0>>0){k=k+1|0}b=c;c=k;c:{if(c&65536){s=s+1|0;break c}n=g>>>31|0;k=c<<1|b>>>31;b=b<<1|e>>>31;c=k;k=e<<1|d>>>31;d=d<<1|j>>>31;e=k;l=v;k=g<<1|l>>>31;v=l<<1;g=k;l=j<<1|h>>>31;h=h<<1|n;j=l}if((s|0)>=32767){p=p|2147418112;b=0;c=0;break a}d:{if((s|0)<=0){f=1-s|0;if(f>>>0>=128){b=0;c=0;break a}l=s+127|0;un(o+48|0,v,g,h,j,l);un(o+32|0,d,e,b,c,l);xn(o+16|0,v,g,h,j,f);xn(o,d,e,b,c,f);v=(i[o+48>>2]|i[o+56>>2])!=0|(i[o+52>>2]|i[o+60>>2])!=0|(i[o+32>>2]|i[o+16>>2]);g=i[o+36>>2]|i[o+20>>2];h=i[o+40>>2]|i[o+24>>2];j=i[o+44>>2]|i[o+28>>2];d=i[o>>2];e=i[o+4>>2];c=i[o+12>>2];b=i[o+8>>2];break d}c=c&65535|s<<16}z=b|z;p=c|p;if(!(!h&(j|0)==-2147483648?!(g|v):(j|0)>-1)){m=p;n=e;b=d+1|0;if(b>>>0<1){n=n+1|0}c=n;d=(e|0)==(c|0)&b>>>0>>0|c>>>0>>0;e=d+z|0;if(e>>>0>>0){m=m+1|0}z=e;p=m;break a}if(h|v|(j^-2147483648|g)){b=d;c=e;break a}n=p;k=e;b=d&1;c=b+d|0;if(c>>>0>>0){k=k+1|0}b=c;c=k;d=(e|0)==(c|0)&b>>>0>>0|c>>>0>>0;e=d+z|0;if(e>>>0>>0){n=n+1|0}z=e;p=n}i[a>>2]=b;i[a+4>>2]=c;i[a+8>>2]=z;i[a+12>>2]=p;H=o+96|0}function qc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,J=0,K=0,L=0;e=H-32|0;H=e;g=i[a+8>>2];i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;f=ko(d);i[e+8>>2]=f;k=d+f|0;i[e+16>>2]=k;lp(f,0,d);i[e+12>>2]=k}h=i[a+1164>>2];d=i[h>>2];if(d){i[h+4>>2]=d;ep(d);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;g=i[a+8>>2];k=i[e+12>>2];f=i[e+8>>2]}i[h+4>>2]=k;i[h>>2]=f;i[h+8>>2]=i[e+16>>2];f=0;i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;d=0;b:{if(g){if(g>>>0>=1073741824){break b}h=g<<2;d=ko(h);i[e+8>>2]=d;f=d+h|0;i[e+16>>2]=f;lp(d,0,h);i[e+12>>2]=f}n=i[a+1176>>2];h=i[n>>2];if(h){i[n+4>>2]=h;ep(h);i[n+8>>2]=0;i[n>>2]=0;i[n+4>>2]=0;d=i[e+8>>2];f=i[e+12>>2]}i[n+4>>2]=f;i[n>>2]=d;i[n+8>>2]=i[e+16>>2];B=i[b+4>>2];G=i[b+8>>2];C=i[c+4>>2];I=i[c+8>>2];q=i[c>>2];j=i[b>>2];d=e+24|0;i[d>>2]=0;i[d+4>>2]=0;f=e+16|0;i[f>>2]=0;i[f+4>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;n=q-j|0;wc(e+8|0);g=0;h=i[e+12>>2];if((h|0)!=i[f>>2]){d=i[d>>2]+i[e+28>>2]|0;f=(d>>>0)/113|0;g=i[h+(f<<2)>>2]+o(d-o(f,113)|0,36)|0}i[g+32>>2]=0;i[g+28>>2]=n;i[g+24>>2]=0;i[g+16>>2]=C;i[g+20>>2]=I;i[g+12>>2]=q;i[g+4>>2]=B;i[g+8>>2]=G;i[g>>2]=j;f=i[e+28>>2];g=f+1|0;i[e+28>>2]=g;if(g>>>0>=f>>>0){n=C;q=B;J=a+1068|0;K=a+1108|0;L=i[c+8>>2];u=i[b+8>>2];while(1){f=i[e+12>>2];j=g+ -1|0;m=j+i[e+24>>2]|0;d=(m>>>0)/113|0;d=i[f+(d<<2)>>2]+o(m-o(d,113)|0,36)|0;D=i[d+32>>2];k=i[d+24>>2];p=i[d+12>>2];h=i[d>>2];i[e+28>>2]=j;d=i[e+16>>2];f=d-f|0;if((f?o(f>>2,113)+ -1|0:0)-m>>>0>=226){ep(i[d+ -4>>2]);i[e+16>>2]=i[e+16>>2]+ -4}i[b>>2]=h;i[c>>2]=p;g=(k|0)==(i[a+8>>2]+ -1|0)?0:k+1|0;v=g<<2;z=o(D,12);m=z+i[a+1176>>2]|0;d=i[a>>2]-i[v+i[m>>2]>>2]|0;c:{d:{if(!d){break d}e:{f:{w=p-h|0;if(w>>>0<=2){j=i[a+1152>>2];i[j>>2]=g;f=1;d=i[a+8>>2];if(d>>>0>1){break f}break e}f=i[a+1164>>2];j=f+z|0;E=f;f=z+12|0;ta(E+f|0,i[j>>2],i[j+4>>2]);f=v+i[f+i[a+1164>>2]>>2]|0;F=i[f>>2]+(1<>2]=F;f=h;g:{if((p|0)==(f|0)){break g}t=i[q+24>>2];d=h;f=p;while(1){s=t+(o(d,u)<<2)|0;if(l[s+v>>2]>>0){d=d+1|0;if((f|0)!=(d|0)){continue}break g}while(1){f=f+ -1|0;if((f|0)==(d|0)){f=d;break g}y=i[n+24>>2]+(o(f,L)<<2)|0;if(l[y+v>>2]>=F>>>0){continue}break}A=0;if(u){while(1){k=A<<2;j=k+s|0;m=i[j>>2];E=j;j=k+y|0;i[E>>2]=i[j>>2];i[j>>2]=m;A=A+1|0;if((u|0)!=(A|0)){continue}break}}d=d+1|0;if((f|0)!=(d|0)){continue}break}}d=r(w);t=f-h|0;s=p-f|0;if((t|0)!=(s|0)){yc(K,t>>>0>>0)}y=D+1|0;m=d^31;d=w>>>1|0;h:{if(t>>>0>>0){if(!m){break h}j=d-t|0;d=1<>>1|0;k=k+1|0;if((m|0)!=(k|0)){continue}break}break h}if(!m){break h}j=d-s|0;d=1<>>1|0;k=k+1|0;if((m|0)!=(k|0)){continue}break}}k=i[a+1176>>2];m=k+z|0;j=i[m>>2];d=j+v|0;i[d>>2]=i[d>>2]+1;ta(k+o(y,12)|0,j,i[m+4>>2]);if((f|0)!=(h|0)){k=i[e+28>>2]+i[e+24>>2]|0;m=i[e+16>>2];d=i[e+12>>2];j=m-d|0;if((k|0)==((j?o(j>>2,113)+ -1|0:0)|0)){wc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;m=i[e+16>>2];d=i[e+12>>2]}j=0;i:{if((d|0)==(m|0)){break i}j=d;d=(k>>>0)/113|0;j=i[j+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[j+32>>2]=D;i[j+28>>2]=t;i[j+24>>2]=g;i[j+20>>2]=u;i[j+16>>2]=q;i[j+12>>2]=f;i[j+4>>2]=B;i[j+8>>2]=G;i[j>>2]=h;i[e+28>>2]=i[e+28>>2]+1}if((f|0)==(p|0)){break d}k=i[e+28>>2]+i[e+24>>2]|0;m=i[e+16>>2];d=i[e+12>>2];h=m-d|0;if((k|0)==((h?o(h>>2,113)+ -1|0:0)|0)){wc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;m=i[e+16>>2];d=i[e+12>>2]}h=0;j:{if((d|0)==(m|0)){break j}h=d;d=(k>>>0)/113|0;h=i[h+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[h+32>>2]=y;i[h+28>>2]=s;i[h+24>>2]=g;i[h+16>>2]=C;i[h+20>>2]=I;i[h+12>>2]=p;i[h+8>>2]=u;i[h+4>>2]=q;i[h>>2]=f;g=i[e+28>>2]+1|0;i[e+28>>2]=g;break c}while(1){g=(d+ -1|0)==(g|0)?0:g+1|0;i[j+(f<<2)>>2]=g;f=f+1|0;d=i[a+8>>2];if(f>>>0>>0){continue}break}}k=0;f=d;if(!w){break d}while(1){k:{if(!f){f=0;break k}p=i[q+24>>2]+(o(i[q+4>>2],h+k|0)<<2)|0;g=0;while(1){j=i[i[a+1152>>2]+(g<<2)>>2]<<2;f=i[a>>2]-i[j+i[m>>2]>>2]|0;if(f){zc(J,f,i[j+p>>2]);d=i[a+8>>2]}f=d;g=g+1|0;if(g>>>0>>0){continue}break}}k=k+1|0;if((w|0)!=(k|0)){continue}break}}g=i[e+28>>2]}if(g){continue}break}}i[e+28>>2]=0;a=i[e+16>>2];g=i[e+12>>2];d=a-g>>2;if(d>>>0>=3){while(1){ep(i[g>>2]);g=i[e+12>>2]+4|0;i[e+12>>2]=g;a=i[e+16>>2];d=a-g>>2;if(d>>>0>2){continue}break}}f=56;l:{switch(d+ -1|0){case 1:f=113;case 0:i[e+24>>2]=f;break;default:break l}}m:{if((a|0)==(g|0)){break m}while(1){ep(i[g>>2]);g=g+4|0;if((g|0)!=(a|0)){continue}break}b=i[e+16>>2];a=i[e+12>>2];if((b|0)==(a|0)){break m}i[e+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[e+8>>2];if(a){ep(a)}H=e+32|0;return}Ko();x()}Ko();x()}function sc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,J=0,K=0,L=0,M=0;e=H-32|0;H=e;g=i[a+8>>2];i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;f=ko(d);i[e+8>>2]=f;k=d+f|0;i[e+16>>2]=k;lp(f,0,d);i[e+12>>2]=k}h=i[a+128>>2];d=i[h>>2];if(d){i[h+4>>2]=d;ep(d);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;g=i[a+8>>2];k=i[e+12>>2];f=i[e+8>>2]}i[h+4>>2]=k;i[h>>2]=f;i[h+8>>2]=i[e+16>>2];f=0;i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;d=0;b:{if(g){if(g>>>0>=1073741824){break b}h=g<<2;d=ko(h);i[e+8>>2]=d;f=d+h|0;i[e+16>>2]=f;lp(d,0,h);i[e+12>>2]=f}n=i[a+140>>2];h=i[n>>2];if(h){i[n+4>>2]=h;ep(h);i[n+8>>2]=0;i[n>>2]=0;i[n+4>>2]=0;d=i[e+8>>2];f=i[e+12>>2]}i[n+4>>2]=f;i[n>>2]=d;i[n+8>>2]=i[e+16>>2];B=i[b+4>>2];G=i[b+8>>2];C=i[c+4>>2];I=i[c+8>>2];q=i[c>>2];j=i[b>>2];d=e+24|0;i[d>>2]=0;i[d+4>>2]=0;f=e+16|0;i[f>>2]=0;i[f+4>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;n=q-j|0;wc(e+8|0);g=0;h=i[e+12>>2];if((h|0)!=i[f>>2]){d=i[d>>2]+i[e+28>>2]|0;f=(d>>>0)/113|0;g=i[h+(f<<2)>>2]+o(d-o(f,113)|0,36)|0}i[g+32>>2]=0;i[g+28>>2]=n;i[g+24>>2]=0;i[g+16>>2]=C;i[g+20>>2]=I;i[g+12>>2]=q;i[g+4>>2]=B;i[g+8>>2]=G;i[g>>2]=j;f=i[e+28>>2];g=f+1|0;i[e+28>>2]=g;if(g>>>0>=f>>>0){n=C;q=B;J=a+32|0;K=a+12|0;L=a+72|0;M=i[c+8>>2];u=i[b+8>>2];while(1){f=i[e+12>>2];j=g+ -1|0;m=j+i[e+24>>2]|0;d=(m>>>0)/113|0;d=i[f+(d<<2)>>2]+o(m-o(d,113)|0,36)|0;D=i[d+32>>2];k=i[d+24>>2];p=i[d+12>>2];h=i[d>>2];i[e+28>>2]=j;d=i[e+16>>2];f=d-f|0;if((f?o(f>>2,113)+ -1|0:0)-m>>>0>=226){ep(i[d+ -4>>2]);i[e+16>>2]=i[e+16>>2]+ -4}i[b>>2]=h;i[c>>2]=p;g=(k|0)==(i[a+8>>2]+ -1|0)?0:k+1|0;v=g<<2;z=o(D,12);m=z+i[a+140>>2]|0;d=i[a>>2]-i[v+i[m>>2]>>2]|0;c:{d:{if(!d){break d}e:{f:{w=p-h|0;if(w>>>0<=2){j=i[a+116>>2];i[j>>2]=g;f=1;d=i[a+8>>2];if(d>>>0>1){break f}break e}f=i[a+128>>2];j=f+z|0;E=f;f=z+12|0;ta(E+f|0,i[j>>2],i[j+4>>2]);f=v+i[f+i[a+128>>2]>>2]|0;F=i[f>>2]+(1<>2]=F;f=h;g:{if((p|0)==(f|0)){break g}t=i[q+24>>2];d=h;f=p;while(1){s=t+(o(d,u)<<2)|0;if(l[s+v>>2]>>0){d=d+1|0;if((f|0)!=(d|0)){continue}break g}while(1){f=f+ -1|0;if((f|0)==(d|0)){f=d;break g}y=i[n+24>>2]+(o(f,M)<<2)|0;if(l[v+y>>2]>=F>>>0){continue}break}A=0;if(u){while(1){k=A<<2;j=k+s|0;m=i[j>>2];E=j;j=k+y|0;i[E>>2]=i[j>>2];i[j>>2]=m;A=A+1|0;if((A|0)!=(u|0)){continue}break}}d=d+1|0;if((f|0)!=(d|0)){continue}break}}y=D+1|0;d=r(w)^31;t=f-h|0;s=p-f|0;if((t|0)!=(s|0)){yc(L,t>>>0>>0)}zc(K,d,(w>>>1|0)-(t>>>0>>0?t:s)|0);k=i[a+140>>2];m=k+z|0;j=i[m>>2];d=j+v|0;i[d>>2]=i[d>>2]+1;ta(k+o(y,12)|0,j,i[m+4>>2]);if((f|0)!=(h|0)){k=i[e+28>>2]+i[e+24>>2]|0;m=i[e+16>>2];d=i[e+12>>2];j=m-d|0;if((k|0)==((j?o(j>>2,113)+ -1|0:0)|0)){wc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;m=i[e+16>>2];d=i[e+12>>2]}j=0;h:{if((d|0)==(m|0)){break h}j=d;d=(k>>>0)/113|0;j=i[j+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[j+32>>2]=D;i[j+28>>2]=t;i[j+24>>2]=g;i[j+20>>2]=u;i[j+16>>2]=q;i[j+12>>2]=f;i[j+4>>2]=B;i[j+8>>2]=G;i[j>>2]=h;i[e+28>>2]=i[e+28>>2]+1}if((f|0)==(p|0)){break d}k=i[e+28>>2]+i[e+24>>2]|0;j=i[e+16>>2];d=i[e+12>>2];h=j-d|0;if((k|0)==((h?o(h>>2,113)+ -1|0:0)|0)){wc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;j=i[e+16>>2];d=i[e+12>>2]}h=0;i:{if((d|0)==(j|0)){break i}h=d;d=(k>>>0)/113|0;h=i[h+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[h+32>>2]=y;i[h+28>>2]=s;i[h+24>>2]=g;i[h+16>>2]=C;i[h+20>>2]=I;i[h+12>>2]=p;i[h+8>>2]=u;i[h+4>>2]=q;i[h>>2]=f;g=i[e+28>>2]+1|0;i[e+28>>2]=g;break c}while(1){g=(d+ -1|0)==(g|0)?0:g+1|0;i[j+(f<<2)>>2]=g;f=f+1|0;d=i[a+8>>2];if(f>>>0>>0){continue}break}}k=0;f=d;if(!w){break d}while(1){j:{if(!f){f=0;break j}p=i[q+24>>2]+(o(i[q+4>>2],h+k|0)<<2)|0;g=0;while(1){j=i[i[a+116>>2]+(g<<2)>>2]<<2;f=i[a>>2]-i[j+i[m>>2]>>2]|0;if(f){zc(J,f,i[j+p>>2]);d=i[a+8>>2]}g=g+1|0;f=d;if(g>>>0>>0){continue}break}}k=k+1|0;if((w|0)!=(k|0)){continue}break}}g=i[e+28>>2]}if(g){continue}break}}i[e+28>>2]=0;d=i[e+16>>2];g=i[e+12>>2];a=d-g>>2;if(a>>>0>=3){while(1){ep(i[g>>2]);g=i[e+12>>2]+4|0;i[e+12>>2]=g;d=i[e+16>>2];a=d-g>>2;if(a>>>0>2){continue}break}}f=56;k:{switch(a+ -1|0){case 1:f=113;case 0:i[e+24>>2]=f;break;default:break k}}l:{if((d|0)==(g|0)){break l}while(1){ep(i[g>>2]);g=g+4|0;if((g|0)!=(d|0)){continue}break}b=i[e+16>>2];a=i[e+12>>2];if((b|0)==(a|0)){break l}i[e+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[e+8>>2];if(a){ep(a)}H=e+32|0;return}Ko();x()}Ko();x()}function rc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,J=0,K=0,L=0,M=0;e=H-32|0;H=e;g=i[a+8>>2];i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;f=ko(d);i[e+8>>2]=f;k=d+f|0;i[e+16>>2]=k;lp(f,0,d);i[e+12>>2]=k}h=i[a+140>>2];d=i[h>>2];if(d){i[h+4>>2]=d;ep(d);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;g=i[a+8>>2];k=i[e+12>>2];f=i[e+8>>2]}i[h+4>>2]=k;i[h>>2]=f;i[h+8>>2]=i[e+16>>2];f=0;i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;d=0;b:{if(g){if(g>>>0>=1073741824){break b}h=g<<2;d=ko(h);i[e+8>>2]=d;f=d+h|0;i[e+16>>2]=f;lp(d,0,h);i[e+12>>2]=f}n=i[a+152>>2];h=i[n>>2];if(h){i[n+4>>2]=h;ep(h);i[n+8>>2]=0;i[n>>2]=0;i[n+4>>2]=0;d=i[e+8>>2];f=i[e+12>>2]}i[n+4>>2]=f;i[n>>2]=d;i[n+8>>2]=i[e+16>>2];B=i[b+4>>2];G=i[b+8>>2];C=i[c+4>>2];I=i[c+8>>2];q=i[c>>2];j=i[b>>2];d=e+24|0;i[d>>2]=0;i[d+4>>2]=0;f=e+16|0;i[f>>2]=0;i[f+4>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;n=q-j|0;wc(e+8|0);g=0;h=i[e+12>>2];if((h|0)!=i[f>>2]){d=i[d>>2]+i[e+28>>2]|0;f=(d>>>0)/113|0;g=i[h+(f<<2)>>2]+o(d-o(f,113)|0,36)|0}i[g+32>>2]=0;i[g+28>>2]=n;i[g+24>>2]=0;i[g+16>>2]=C;i[g+20>>2]=I;i[g+12>>2]=q;i[g+4>>2]=B;i[g+8>>2]=G;i[g>>2]=j;f=i[e+28>>2];g=f+1|0;i[e+28>>2]=g;if(g>>>0>=f>>>0){n=C;q=B;J=a+44|0;K=a+12|0;L=a+84|0;M=i[c+8>>2];u=i[b+8>>2];while(1){f=i[e+12>>2];j=g+ -1|0;m=j+i[e+24>>2]|0;d=(m>>>0)/113|0;d=i[f+(d<<2)>>2]+o(m-o(d,113)|0,36)|0;D=i[d+32>>2];k=i[d+24>>2];p=i[d+12>>2];h=i[d>>2];i[e+28>>2]=j;d=i[e+16>>2];f=d-f|0;if((f?o(f>>2,113)+ -1|0:0)-m>>>0>=226){ep(i[d+ -4>>2]);i[e+16>>2]=i[e+16>>2]+ -4}i[b>>2]=h;i[c>>2]=p;g=(k|0)==(i[a+8>>2]+ -1|0)?0:k+1|0;v=g<<2;z=o(D,12);m=z+i[a+152>>2]|0;d=i[a>>2]-i[v+i[m>>2]>>2]|0;c:{d:{if(!d){break d}e:{f:{w=p-h|0;if(w>>>0<=2){j=i[a+128>>2];i[j>>2]=g;f=1;d=i[a+8>>2];if(d>>>0>1){break f}break e}f=i[a+140>>2];j=f+z|0;E=f;f=z+12|0;ta(E+f|0,i[j>>2],i[j+4>>2]);f=v+i[f+i[a+140>>2]>>2]|0;F=i[f>>2]+(1<>2]=F;f=h;g:{if((p|0)==(f|0)){break g}t=i[q+24>>2];d=h;f=p;while(1){s=t+(o(d,u)<<2)|0;if(l[s+v>>2]>>0){d=d+1|0;if((f|0)!=(d|0)){continue}break g}while(1){f=f+ -1|0;if((f|0)==(d|0)){f=d;break g}y=i[n+24>>2]+(o(f,M)<<2)|0;if(l[v+y>>2]>=F>>>0){continue}break}A=0;if(u){while(1){k=A<<2;j=k+s|0;m=i[j>>2];E=j;j=k+y|0;i[E>>2]=i[j>>2];i[j>>2]=m;A=A+1|0;if((A|0)!=(u|0)){continue}break}}d=d+1|0;if((f|0)!=(d|0)){continue}break}}y=D+1|0;d=r(w)^31;t=f-h|0;s=p-f|0;if((t|0)!=(s|0)){yc(L,t>>>0>>0)}sf(K,d,(w>>>1|0)-(t>>>0>>0?t:s)|0);k=i[a+152>>2];m=k+z|0;j=i[m>>2];d=j+v|0;i[d>>2]=i[d>>2]+1;ta(k+o(y,12)|0,j,i[m+4>>2]);if((f|0)!=(h|0)){k=i[e+28>>2]+i[e+24>>2]|0;m=i[e+16>>2];d=i[e+12>>2];j=m-d|0;if((k|0)==((j?o(j>>2,113)+ -1|0:0)|0)){wc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;m=i[e+16>>2];d=i[e+12>>2]}j=0;h:{if((d|0)==(m|0)){break h}j=d;d=(k>>>0)/113|0;j=i[j+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[j+32>>2]=D;i[j+28>>2]=t;i[j+24>>2]=g;i[j+20>>2]=u;i[j+16>>2]=q;i[j+12>>2]=f;i[j+4>>2]=B;i[j+8>>2]=G;i[j>>2]=h;i[e+28>>2]=i[e+28>>2]+1}if((f|0)==(p|0)){break d}k=i[e+28>>2]+i[e+24>>2]|0;j=i[e+16>>2];d=i[e+12>>2];h=j-d|0;if((k|0)==((h?o(h>>2,113)+ -1|0:0)|0)){wc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;j=i[e+16>>2];d=i[e+12>>2]}h=0;i:{if((d|0)==(j|0)){break i}h=d;d=(k>>>0)/113|0;h=i[h+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[h+32>>2]=y;i[h+28>>2]=s;i[h+24>>2]=g;i[h+16>>2]=C;i[h+20>>2]=I;i[h+12>>2]=p;i[h+8>>2]=u;i[h+4>>2]=q;i[h>>2]=f;g=i[e+28>>2]+1|0;i[e+28>>2]=g;break c}while(1){g=(d+ -1|0)==(g|0)?0:g+1|0;i[j+(f<<2)>>2]=g;f=f+1|0;d=i[a+8>>2];if(f>>>0>>0){continue}break}}k=0;f=d;if(!w){break d}while(1){j:{if(!f){f=0;break j}p=i[q+24>>2]+(o(i[q+4>>2],h+k|0)<<2)|0;g=0;while(1){j=i[i[a+128>>2]+(g<<2)>>2]<<2;f=i[a>>2]-i[j+i[m>>2]>>2]|0;if(f){zc(J,f,i[j+p>>2]);d=i[a+8>>2]}g=g+1|0;f=d;if(g>>>0>>0){continue}break}}k=k+1|0;if((w|0)!=(k|0)){continue}break}}g=i[e+28>>2]}if(g){continue}break}}i[e+28>>2]=0;d=i[e+16>>2];g=i[e+12>>2];a=d-g>>2;if(a>>>0>=3){while(1){ep(i[g>>2]);g=i[e+12>>2]+4|0;i[e+12>>2]=g;d=i[e+16>>2];a=d-g>>2;if(a>>>0>2){continue}break}}f=56;k:{switch(a+ -1|0){case 1:f=113;case 0:i[e+24>>2]=f;break;default:break k}}l:{if((d|0)==(g|0)){break l}while(1){ep(i[g>>2]);g=g+4|0;if((g|0)!=(d|0)){continue}break}b=i[e+16>>2];a=i[e+12>>2];if((b|0)==(a|0)){break l}i[e+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[e+8>>2];if(a){ep(a)}H=e+32|0;return}Ko();x()}Ko();x()}function Rd(a,b,c,d){var e=0,f=0,l=0,o=0,r=p(0),t=0,w=0,x=0;a:{b:{if(!d){break b}c:{switch(i[a+28>>2]+ -1|0){case 0:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=g[b|0];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=j[b|0];i[e+4>>2]=0;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=h[b>>1];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=k[b>>1];i[e+4>>2]=0;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=i[b>>2];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=i[b>>2];i[e+4>>2]=0;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}l=i[b+4>>2];e=(f<<3)+d|0;i[e>>2]=i[b>>2];i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=i[b+4>>2];l=e;w=i[b>>2];if((e|0)<0?1:(e|0)<=0?w>>>0<0:0){return}e=(f<<3)+d|0;i[e>>2]=w;i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 8:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;w=i[e+4>>2];f=0;while(1){if(w>>>0<=b>>>0){return}e=(f<<3)+d|0;o=e;r=m[b>>2];d:{if(p(q(r))=p(1)?r>p(0)?~~p(s(p(u(p(r/p(4294967296)))),p(4294967296)))>>>0:~~p(v(p(p(r-p(~~r>>>0>>>0))/p(4294967296))))>>>0:0;x=~~r>>>0;break d}l=-2147483648;x=0}i[o>>2]=x;i[e+4>>2]=l;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 9:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;w=i[e+4>>2];f=0;while(1){if(w>>>0<=b>>>0){return}e=(f<<3)+d|0;o=e;t=n[b>>3];e:{if(q(t)<0x8000000000000000){l=q(t)>=1?t>0?~~s(u(t/4294967296),4294967295)>>>0:~~v((t- +(~~t>>>0>>>0))/4294967296)>>>0:0;x=~~t>>>0;break e}l=-2147483648;x=0}i[o>>2]=x;i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 10:break c;default:break b}}e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=j[b|0];i[e+4>>2]=0;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}lp((e<<3)+d|0,0,c-e<<3)}return}lp((e<<3)+d|0,0,c-e<<3)}function mn(a,b,c,d,e){var f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;f=H-432|0;H=f;g=i[b+4>>2];a:{if(g>>>0>2]){i[b+4>>2]=g+1;h=j[g|0];break a}h=hn(b)}b:{c:{while(1){d:{if((h|0)!=48){if((h|0)!=46){break b}g=i[b+4>>2];if(g>>>0>=l[b+104>>2]){break d}i[b+4>>2]=g+1;h=j[g|0];break c}g=i[b+4>>2];if(g>>>0>2]){y=1;i[b+4>>2]=g+1;h=j[g|0]}else{y=1;h=hn(b)}continue}break}h=hn(b)}x=1;if((h|0)!=48){break b}while(1){q=q+ -1|0;g=u+ -1|0;if((g|0)!=-1){q=q+1|0}u=g;g=i[b+4>>2];e:{if(g>>>0>2]){i[b+4>>2]=g+1;h=j[g|0];break e}h=hn(b)}if((h|0)==48){continue}break}y=1}g=1073676288;while(1){f:{z=h|32;g:{h:{A=h+ -48|0;if(A>>>0<10){break h}if(z+ -97>>>0>5?(h|0)!=46:0){break f}if((h|0)!=46){break h}if(x){break f}x=1;u=o;q=k;break g}h=(h|0)>57?z+ -87|0:A;i:{if((k|0)<0?1:(k|0)<=0?o>>>0<=7:0){r=h+(r<<4)|0;break i}if((k|0)<0?1:(k|0)<=0?o>>>0<=28:0){Cn(f+48|0,h);An(f+32|0,v,w,p,g,0,0,0,1073414144);v=i[f+32>>2];w=i[f+36>>2];p=i[f+40>>2];g=i[f+44>>2];An(f+16|0,v,w,p,g,i[f+48>>2],i[f+52>>2],i[f+56>>2],i[f+60>>2]);vn(f,m,n,s,t,i[f+16>>2],i[f+20>>2],i[f+24>>2],i[f+28>>2]);s=i[f+8>>2];t=i[f+12>>2];m=i[f>>2];n=i[f+4>>2];break i}if(!h|D){break i}An(f+80|0,v,w,p,g,0,0,0,1073610752);vn(f- -64|0,m,n,s,t,i[f+80>>2],i[f+84>>2],i[f+88>>2],i[f+92>>2]);s=i[f+72>>2];t=i[f+76>>2];D=1;m=i[f+64>>2];n=i[f+68>>2]}o=o+1|0;if(o>>>0<1){k=k+1|0}y=1}h=i[b+4>>2];if(h>>>0>2]){i[b+4>>2]=h+1;h=j[h|0]}else{h=hn(b)}continue}break}j:{k:{if(!y){if(!i[b+104>>2]){break k}c=i[b+4>>2];i[b+4>>2]=c+ -1;i[b+4>>2]=c+ -2;if(!x){break k}i[b+4>>2]=c+ -3;break k}if((k|0)<0?1:(k|0)<=0?o>>>0<=7:0){p=o;g=k;while(1){r=r<<4;p=p+1|0;if(p>>>0<1){g=g+1|0}if((p|0)!=8|g){continue}break}}l:{if((h&-33)==80){p=on(b);h=J;g=h;if(p|(g|0)!=-2147483648){break l}p=0;g=0;if(!i[b+104>>2]){break l}i[b+4>>2]=i[b+4>>2]+ -1;break l}p=0;g=0;if(!i[b+104>>2]){break l}i[b+4>>2]=i[b+4>>2]+ -1}if(!r){zn(f+112|0,+(e|0)*0);m=i[f+112>>2];n=i[f+116>>2];c=i[f+120>>2];b=i[f+124>>2];break j}b=x?q:k;k=x?u:o;q=b<<2|k>>>30;b=p+(k<<2)|0;k=g+q|0;k=b>>>0

>>0?k+1|0:k;b=b+ -32|0;g=k+ -1|0;o=b;k=b>>>0<4294967264?g+1|0:g;if((k|0)>0?1:(k|0)>=0?b>>>0>0-d>>>0:0){i[4805]=68;Cn(f+160|0,e);An(f+144|0,i[f+160>>2],i[f+164>>2],i[f+168>>2],i[f+172>>2],-1,-1,-1,2147418111);An(f+128|0,i[f+144>>2],i[f+148>>2],i[f+152>>2],i[f+156>>2],-1,-1,-1,2147418111);m=i[f+128>>2];n=i[f+132>>2];c=i[f+136>>2];b=i[f+140>>2];break j}b=d+ -226|0;h=o>>>0>=b>>>0;b=b>>31;if((k|0)>(b|0)?1:(k|0)>=(b|0)?h:0){if((r|0)>-1){while(1){vn(f+416|0,m,n,s,t,0,0,0,-1073807360);h=tn(m,n,s,t,1073610752);g=(h|0)<0;b=g;vn(f+400|0,m,n,s,t,b?m:i[f+416>>2],b?n:i[f+420>>2],b?s:i[f+424>>2],b?t:i[f+428>>2]);k=k+ -1|0;b=o+ -1|0;if((b|0)!=-1){k=k+1|0}o=b;s=i[f+408>>2];t=i[f+412>>2];m=i[f+400>>2];n=i[f+404>>2];r=r<<1|(h|0)>-1;if((r|0)>-1){continue}break}}g=o;b=d;h=(g-b|0)+32|0;k=k-((b>>31)+(g>>>0>>0)|0)|0;b=h;k=b>>>0<32?k+1|0:k;c=((k|0)<0?1:(k|0)<=0?b>>>0>>0:0)?(b|0)>0?b:0:c;m:{if((c|0)>=113){Cn(f+384|0,e);u=i[f+392>>2];q=i[f+396>>2];v=i[f+384>>2];w=i[f+388>>2];d=0;b=0;break m}zn(f+352|0,ip(144-c|0));Cn(f+336|0,e);v=i[f+336>>2];w=i[f+340>>2];u=i[f+344>>2];q=i[f+348>>2];jn(f+368|0,i[f+352>>2],i[f+356>>2],i[f+360>>2],i[f+364>>2],v,w,u,q);B=i[f+376>>2];C=i[f+380>>2];d=i[f+372>>2];b=i[f+368>>2]}c=!(r&1)&((sn(m,n,s,t,0,0,0,0)|0)!=0&(c|0)<32);Gn(f+320|0,c+r|0);An(f+304|0,v,w,u,q,i[f+320>>2],i[f+324>>2],i[f+328>>2],i[f+332>>2]);vn(f+272|0,i[f+304>>2],i[f+308>>2],i[f+312>>2],i[f+316>>2],b,d,B,C);An(f+288|0,c?0:m,c?0:n,c?0:s,c?0:t,v,w,u,q);vn(f+256|0,i[f+288>>2],i[f+292>>2],i[f+296>>2],i[f+300>>2],i[f+272>>2],i[f+276>>2],i[f+280>>2],i[f+284>>2]);Bn(f+240|0,i[f+256>>2],i[f+260>>2],i[f+264>>2],i[f+268>>2],b,d,B,C);e=i[f+240>>2];d=i[f+244>>2];c=i[f+248>>2];b=i[f+252>>2];if(!sn(e,d,c,b,0,0,0,0)){i[4805]=68}kn(f+224|0,e,d,c,b,o);m=i[f+224>>2];n=i[f+228>>2];c=i[f+232>>2];b=i[f+236>>2];break j}i[4805]=68;Cn(f+208|0,e);An(f+192|0,i[f+208>>2],i[f+212>>2],i[f+216>>2],i[f+220>>2],0,0,0,65536);An(f+176|0,i[f+192>>2],i[f+196>>2],i[f+200>>2],i[f+204>>2],0,0,0,65536);m=i[f+176>>2];n=i[f+180>>2];c=i[f+184>>2];b=i[f+188>>2];break j}zn(f+96|0,+(e|0)*0);m=i[f+96>>2];n=i[f+100>>2];c=i[f+104>>2];b=i[f+108>>2]}i[a>>2]=m;i[a+4>>2]=n;i[a+8>>2]=c;i[a+12>>2]=b;H=f+432|0}function le(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;m=H-48|0;H=m;i[a+68>>2]=f;p=a+112|0;qf(p);e=i[a+56>>2];d=i[e>>2];f=i[e+4>>2];i[m+40>>2]=0;i[m+32>>2]=0;i[m+36>>2]=0;i[m+24>>2]=0;i[m+28>>2]=0;i[m+16>>2]=0;i[m+20>>2]=0;i[m+8>>2]=0;i[m+12>>2]=0;i[m>>2]=0;i[m+4>>2]=0;a:{f=f-d|0;if((f|0)<1){break a}d=i[e>>2];if((d|0)!=i[e+4>>2]){t=a+60|0;e=f>>2;u=(e|0)>1?e:1;v=c+4|0;while(1){me(t,i[(n<<2)+d>>2],m+32|0);d=i[m+36>>2];j=d>>31;g=i[m+32>>2];l=g>>31;f=i[m+40>>2];h=f>>31;e=0;h=h^f+h;j=h+((j^d+j)+(l^g+l)|0)|0;if(j>>>0>>0){e=1}b:{if(!(e|j)){h=i[a+108>>2];i[m+32>>2]=h;g=h;break b}h=i[a+108>>2];k=h>>31;d=yp(xp(h,k,d,d>>31),J,j,e);i[m+36>>2]=d;g=yp(xp(h,k,g,g>>31),J,j,e);i[m+32>>2]=g;e=m;if((f|0)>=0){f=(((g|0)<0?g:0-g|0)+h|0)+((d|0)<0?d:0-d|0)|0}else{f=g>>31;j=(f+g^f)-h|0;f=d>>31;f=j+(f+d^f)|0}i[e+40>>2]=f}c:{if((g|0)>=0){j=d+h|0;k=f+h|0;break c}d:{if((d|0)<=-1){e=f>>31;j=e+f^e;break d}j=i[a+100>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){e=d>>31;k=e+d^e;break c}k=i[a+100>>2]+((d|0)<0?d:0-d|0)|0}e:{if(!(k|j)){e=i[a+100>>2];k=e;l=e;break e}e=i[a+100>>2];f:{g:{h:{i:{if(!j){if((e|0)==(k|0)){e=k;l=e;break e}l=0;if(e|k){break i}k=0;break e}if((e|0)!=(j|0)|k){break h}e=j;k=e;l=e;break e}if((h|0)<(k|0)){k=(h<<1)-k|0;break e}if(e){break f}break g}if((e|0)!=(j|0)){break f}}e=j;if((h|0)<=(k|0)){break f}k=(h<<1)-k|0;l=j;break e}if(!((e|0)!=(k|0)|(h|0)<=(j|0))){l=(h<<1)-j|0;break e}if(k){l=j;break e}k=0;if((h|0)>=(j|0)){l=j;break e}l=(h<<1)-j|0}i[m+28>>2]=k;i[m+24>>2]=l;j=0-f|0;i[m+40>>2]=j;l=0-d|0;i[m+36>>2]=l;i[m+32>>2]=0-g;j:{k:{l:{if((g|0)<=0){g=h-d|0;f=h-f|0;break l}g=f>>31;k=((f|0)<0?f:j)+e|0;j=(d|0)>0;g=j?g+f^g:k;if((f|0)>=1){f=d;d=d>>31;f=f+d^d;break l}f=(j?l:d)+e|0}if(!(f|g)){break k}m:{n:{o:{if(!g){if((e|0)==(f|0)){break k}d=0;if(e|f){break o}f=0;break j}if((e|0)==(g|0)?!f:0){break k}if((e|0)==(g|0)){break n}break m}if((h|0)<(f|0)){f=(h<<1)-f|0;break j}if(e){break m}}e=g;if((h|0)<=(f|0)){break m}f=(h<<1)-f|0;d=g;break j}if(!((e|0)!=(f|0)|(h|0)<=(g|0))){d=(h<<1)-g|0;break j}if(f){d=g;break j}f=0;if((h|0)>=(g|0)){d=g;break j}d=(h<<1)-g|0;break j}f=e;d=f}i[m+20>>2]=f;i[m+16>>2]=d;g=i[a+8>>2];p:{if((g|0)<1){break p}q=(n<<3)+b|0;h=m+24|0;j=0;while(1){f=0;q:{if((g|0)<=0){d=i[a+32>>2];break q}while(1){e=f<<2;g=i[e+h>>2];l=i[a+16>>2];r:{if((g|0)>(l|0)){d=i[a+32>>2];i[e+d>>2]=l;break r}d=i[a+32>>2];e=e+d|0;l=i[a+12>>2];if((g|0)<(l|0)){i[e>>2]=l;break r}i[e>>2]=g}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){continue}break}}f=j<<2;e=f+(m+8|0)|0;f=i[f+q>>2]-i[d+f>>2]|0;i[e>>2]=f;l=i[a+28>>2];k=f+i[a+20>>2]|0;s:{t:{if((f|0)<(l|0)){break t}if((f|0)<=i[a+24>>2]){break s}k=f-i[a+20>>2]|0}i[e>>2]=k}h=d;j=j+1|0;if((j|0)<(g|0)){continue}break}o=0;r=m+16|0;j=d;f=d;if((g|0)<1){break p}while(1){e=0;if((g|0)>=1){while(1){f=d;k=f;s=e<<2;l=i[s+r>>2];g=i[a+16>>2];if((l|0)<=(g|0)){g=i[a+12>>2];f=(l|0)<(g|0);g=f?g:l;k=h;f=f?h:j}i[f+s>>2]=g;h=k;j=f;e=e+1|0;g=i[a+8>>2];if((e|0)<(g|0)){continue}break}l=i[a+28>>2]}k=o<<2;e=k+m|0;k=i[k+q>>2]-i[f+k>>2]|0;i[e>>2]=k;u:{if((k|0)<(l|0)){k=k+i[a+20>>2]|0}else{if((k|0)<=i[a+24>>2]){break u}k=k-i[a+20>>2]|0}i[e>>2]=k}r=f;o=o+1|0;if((o|0)<(g|0)){continue}break}}j=i[a+108>>2];d=i[m+8>>2];v:{if((j|0)<(d|0)){d=d-i[a+96>>2]|0;break v}if((d|0)>=(0-j|0)){break v}d=i[a+96>>2]+d|0}i[m+8>>2]=d;g=i[m+12>>2];w:{if((j|0)<(g|0)){g=g-i[a+96>>2]|0;break w}if((g|0)>=(0-j|0)){break w}g=i[a+96>>2]+g|0}i[m+12>>2]=g;e=i[m>>2];x:{if((j|0)<(e|0)){e=e-i[a+96>>2]|0;break x}if((e|0)>=(0-j|0)){break x}e=i[a+96>>2]+e|0}i[m>>2]=e;f=i[m+4>>2];y:{if((j|0)<(f|0)){f=f-i[a+96>>2]|0;break y}if((f|0)>=(0-j|0)){break y}f=i[a+96>>2]+f|0}j=n<<1;i[m+4>>2]=f;l=g>>31;l=l+g^l;h=d>>31;h=h+d^h;k=h>>>0>(l^2147483647)>>>0?2147483647:l+h|0;l=f>>31;l=l+f^l;h=e>>31;h=h+e^h;z:{if(k>>>0<(h>>>0>(l^2147483647)>>>0?2147483647:l+h|0)>>>0){rf(p,0);e=(j<<2)+c|0;if((d|0)<=-1){d=i[a+96>>2]+d|0}i[e>>2]=d;if((g|0)>-1){f=g;break z}f=i[a+96>>2]+g|0;break z}rf(p,1);d=(j<<2)+c|0;if((e|0)<=-1){e=i[a+96>>2]+e|0}i[d>>2]=e;if((f|0)>-1){break z}f=i[a+96>>2]+f|0}i[(j<<2)+v>>2]=f;n=n+1|0;if((u|0)==(n|0)){break a}e=i[a+56>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>n>>>0){continue}break}}Lo();x()}H=m+48|0;return 1}function Yd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;m=H-48|0;H=m;i[a+68>>2]=f;p=a+112|0;qf(p);e=i[a+56>>2];d=i[e>>2];f=i[e+4>>2];i[m+40>>2]=0;i[m+32>>2]=0;i[m+36>>2]=0;i[m+24>>2]=0;i[m+28>>2]=0;i[m+16>>2]=0;i[m+20>>2]=0;i[m+8>>2]=0;i[m+12>>2]=0;i[m>>2]=0;i[m+4>>2]=0;a:{f=f-d|0;if((f|0)<1){break a}d=i[e>>2];if((d|0)!=i[e+4>>2]){t=a+60|0;e=f>>2;u=(e|0)>1?e:1;v=c+4|0;while(1){Zd(t,i[(n<<2)+d>>2],m+32|0);d=i[m+36>>2];j=d>>31;g=i[m+32>>2];l=g>>31;f=i[m+40>>2];h=f>>31;e=0;h=h^f+h;j=h+((j^d+j)+(l^g+l)|0)|0;if(j>>>0>>0){e=1}b:{if(!(e|j)){h=i[a+108>>2];i[m+32>>2]=h;g=h;break b}h=i[a+108>>2];k=h>>31;d=yp(xp(h,k,d,d>>31),J,j,e);i[m+36>>2]=d;g=yp(xp(h,k,g,g>>31),J,j,e);i[m+32>>2]=g;e=m;if((f|0)>=0){f=(((g|0)<0?g:0-g|0)+h|0)+((d|0)<0?d:0-d|0)|0}else{f=g>>31;j=(f+g^f)-h|0;f=d>>31;f=j+(f+d^f)|0}i[e+40>>2]=f}c:{if((g|0)>=0){j=d+h|0;k=f+h|0;break c}d:{if((d|0)<=-1){e=f>>31;j=e+f^e;break d}j=i[a+100>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){e=d>>31;k=e+d^e;break c}k=i[a+100>>2]+((d|0)<0?d:0-d|0)|0}e:{if(!(k|j)){e=i[a+100>>2];k=e;l=e;break e}e=i[a+100>>2];f:{g:{h:{i:{if(!j){if((e|0)==(k|0)){e=k;l=e;break e}l=0;if(e|k){break i}k=0;break e}if((e|0)!=(j|0)|k){break h}e=j;k=e;l=e;break e}if((h|0)<(k|0)){k=(h<<1)-k|0;break e}if(e){break f}break g}if((e|0)!=(j|0)){break f}}e=j;if((h|0)<=(k|0)){break f}k=(h<<1)-k|0;l=j;break e}if(!((e|0)!=(k|0)|(h|0)<=(j|0))){l=(h<<1)-j|0;break e}if(k){l=j;break e}k=0;if((h|0)>=(j|0)){l=j;break e}l=(h<<1)-j|0}i[m+28>>2]=k;i[m+24>>2]=l;j=0-f|0;i[m+40>>2]=j;l=0-d|0;i[m+36>>2]=l;i[m+32>>2]=0-g;j:{k:{l:{if((g|0)<=0){g=h-d|0;f=h-f|0;break l}g=f>>31;k=((f|0)<0?f:j)+e|0;j=(d|0)>0;g=j?g+f^g:k;if((f|0)>=1){f=d;d=d>>31;f=f+d^d;break l}f=(j?l:d)+e|0}if(!(f|g)){break k}m:{n:{o:{if(!g){if((e|0)==(f|0)){break k}d=0;if(e|f){break o}f=0;break j}if((e|0)==(g|0)?!f:0){break k}if((e|0)==(g|0)){break n}break m}if((h|0)<(f|0)){f=(h<<1)-f|0;break j}if(e){break m}}e=g;if((h|0)<=(f|0)){break m}f=(h<<1)-f|0;d=g;break j}if(!((e|0)!=(f|0)|(h|0)<=(g|0))){d=(h<<1)-g|0;break j}if(f){d=g;break j}f=0;if((h|0)>=(g|0)){d=g;break j}d=(h<<1)-g|0;break j}f=e;d=f}i[m+20>>2]=f;i[m+16>>2]=d;g=i[a+8>>2];p:{if((g|0)<1){break p}q=(n<<3)+b|0;h=m+24|0;j=0;while(1){f=0;q:{if((g|0)<=0){d=i[a+32>>2];break q}while(1){e=f<<2;g=i[e+h>>2];l=i[a+16>>2];r:{if((g|0)>(l|0)){d=i[a+32>>2];i[e+d>>2]=l;break r}d=i[a+32>>2];e=e+d|0;l=i[a+12>>2];if((g|0)<(l|0)){i[e>>2]=l;break r}i[e>>2]=g}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){continue}break}}f=j<<2;e=f+(m+8|0)|0;f=i[f+q>>2]-i[d+f>>2]|0;i[e>>2]=f;l=i[a+28>>2];k=f+i[a+20>>2]|0;s:{t:{if((f|0)<(l|0)){break t}if((f|0)<=i[a+24>>2]){break s}k=f-i[a+20>>2]|0}i[e>>2]=k}h=d;j=j+1|0;if((j|0)<(g|0)){continue}break}o=0;r=m+16|0;j=d;f=d;if((g|0)<1){break p}while(1){e=0;if((g|0)>=1){while(1){f=d;k=f;s=e<<2;l=i[s+r>>2];g=i[a+16>>2];if((l|0)<=(g|0)){g=i[a+12>>2];f=(l|0)<(g|0);g=f?g:l;k=h;f=f?h:j}i[f+s>>2]=g;h=k;j=f;e=e+1|0;g=i[a+8>>2];if((e|0)<(g|0)){continue}break}l=i[a+28>>2]}k=o<<2;e=k+m|0;k=i[k+q>>2]-i[f+k>>2]|0;i[e>>2]=k;u:{if((k|0)<(l|0)){k=k+i[a+20>>2]|0}else{if((k|0)<=i[a+24>>2]){break u}k=k-i[a+20>>2]|0}i[e>>2]=k}r=f;o=o+1|0;if((o|0)<(g|0)){continue}break}}j=i[a+108>>2];d=i[m+8>>2];v:{if((j|0)<(d|0)){d=d-i[a+96>>2]|0;break v}if((d|0)>=(0-j|0)){break v}d=i[a+96>>2]+d|0}i[m+8>>2]=d;g=i[m+12>>2];w:{if((j|0)<(g|0)){g=g-i[a+96>>2]|0;break w}if((g|0)>=(0-j|0)){break w}g=i[a+96>>2]+g|0}i[m+12>>2]=g;e=i[m>>2];x:{if((j|0)<(e|0)){e=e-i[a+96>>2]|0;break x}if((e|0)>=(0-j|0)){break x}e=i[a+96>>2]+e|0}i[m>>2]=e;f=i[m+4>>2];y:{if((j|0)<(f|0)){f=f-i[a+96>>2]|0;break y}if((f|0)>=(0-j|0)){break y}f=i[a+96>>2]+f|0}j=n<<1;i[m+4>>2]=f;l=g>>31;l=l+g^l;h=d>>31;h=h+d^h;k=h>>>0>(l^2147483647)>>>0?2147483647:l+h|0;l=f>>31;l=l+f^l;h=e>>31;h=h+e^h;z:{if(k>>>0<(h>>>0>(l^2147483647)>>>0?2147483647:l+h|0)>>>0){rf(p,0);e=(j<<2)+c|0;if((d|0)<=-1){d=i[a+96>>2]+d|0}i[e>>2]=d;if((g|0)>-1){f=g;break z}f=i[a+96>>2]+g|0;break z}rf(p,1);d=(j<<2)+c|0;if((e|0)<=-1){e=i[a+96>>2]+e|0}i[d>>2]=e;if((f|0)>-1){break z}f=i[a+96>>2]+f|0}i[(j<<2)+v>>2]=f;n=n+1|0;if((u|0)==(n|0)){break a}e=i[a+56>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0>n>>>0){continue}break}}Lo();x()}H=m+48|0;return 1}function Yb(a,b,c,d){var e=0,f=0,l=0,o=0,r=0,s=p(0),t=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=h[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=g[a+24|0];if(((o|0)>(c|0)?c:o)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;e=i[e+4>>2];while(1){if(e>>>0<=b>>>0){break b}o=0;r=i[b>>2];if((r|0)<0){break c}i[(f<<2)+d>>2]=r;b=b+4|0;f=f+1|0;o=g[a+24|0];if((f|0)<((o|0)>(c|0)?c:o)<<24>>24){continue}break}}if((o|0)>=(c|0)){return 1}lp((o<<2)+d|0,0,c-o<<2);return 1;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=i[b+4>>2];l=i[b>>2];if(l+ -2147483648>>>0<2147483648){e=e+1|0}if(e>>>0>0){break b}i[(f<<2)+d>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=i[b+4>>2];l=i[b>>2];if(!e&l>>>0>2147483647|e>>>0>0){break b}i[(f<<2)+d>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=(f<<2)+d|0;s=m[b>>2];e:{if(p(q(s))>2]=l;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=(f<<2)+d|0;t=n[b>>3];f:{if(q(t)<2147483648){l=~~t;break f}l=-2147483648}i[e>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}lp((e<<2)+d|0,0,c-e<<2)}return o}return 0}lp((e<<2)+d|0,0,c-e<<2);return 1}function ac(a,b,c,d){var e=0,f=0,o=0,q=0,r=p(0),s=0;a:{b:{if(!d){break b}c:{switch(i[a+28>>2]+ -1|0){case 0:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=h[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=i[b>>2];if(l[b+4>>2]>0){return}i[(f<<2)+d>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=i[b>>2];if(l[b+4>>2]>0){return}i[(f<<2)+d>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 8:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}q=(f<<2)+d|0;r=m[b>>2];d:{if(r=p(0)){e=~~r>>>0;break d}e=0}i[q>>2]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 9:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}q=(f<<2)+d|0;s=n[b>>3];e:{if(s<4294967296&s>=0){e=~~s>>>0;break e}e=0}i[q>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 10:break c;default:break b}}e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+xp(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}lp((e<<2)+d|0,0,c-e<<2)}return}lp((e<<2)+d|0,0,c-e<<2)}function Ti(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;a:{b:{c:{d:{e:{f:{g:{if(i[a+92>>2]==i[a+88>>2]){break g}e=i[a+52>>2];d=i[a+56>>2];h:{if((e|0)!=(d|0)){i[e>>2]=b;i[a+52>>2]=e+4;break h}j=i[a+48>>2];h=e-j|0;f=h>>2;g=f+1|0;if(g>>>0>=1073741824){break a}c=d-j|0;d=c>>1;c=c>>2>>>0<536870911?d>>>0>>0?g:d:1073741823;e=0;i:{if(!c){break i}if(c>>>0>=1073741824){break b}e=ko(c<<2)}d=e+(f<<2)|0;i[d>>2]=b;c=e+(c<<2)|0;d=d+4|0;if((h|0)>=1){kp(e,j,h)}i[a+56>>2]=c;i[a+52>>2]=d;i[a+48>>2]=e;if(!j){break h}ep(j)}i[a+84>>2]=0;d=-1;e=-1;j:{if((b|0)==-1){break j}f=i[a+4>>2];c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){d=i[i[f>>2]+(c<<2)>>2]}c=((b>>>0)%3|0?-1:2)+b|0;if((c|0)==-1){break j}e=i[i[f>>2]+(c<<2)>>2]}c=i[a+36>>2];h=c+(d>>>3&536870908)|0;g=i[h>>2];f=1<<(d&31);if(!(g&f)){i[h>>2]=f|g;f=a+8|0;if((b|0)!=-1){c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0}else{c=-1}Ui(f,d,c);c=i[a+36>>2]}f=(e>>>3&536870908)+c|0;c=i[f>>2];d=1<<(e&31);if(!(c&d)){i[f>>2]=c|d;c=a+8|0;d=-1;k:{if((b|0)==-1){break k}d=b+ -1|0;if((b>>>0)%3|0){break k}d=b+2|0}Ui(c,e,d)}d=-1;d=(b|0)!=-1?i[i[i[a+4>>2]>>2]+(b<<2)>>2]:d;f=i[a+36>>2]+(d>>>3&536870908)|0;c=i[f>>2];e=1<<(d&31);if(!(c&e)){i[f>>2]=c|e;Ui(a+8|0,d,b)}c=i[a+84>>2];if((c|0)>2){break g}q=a+8|0;while(1){b=o(c,12)+a|0;d=b+52|0;e=i[d>>2];if((e|0)==i[b+48>>2]){c=c+1|0;if((c|0)!=3){continue}break g}e=e+ -4|0;b=i[e>>2];i[d>>2]=e;i[a+84>>2]=c;if((b|0)==-1){break g}d=i[a+24>>2];e=(b>>>0)/3|0;l:{if(i[d+(e>>>3&268435452)>>2]>>>(e&31)&1){break l}m:{while(1){g=(b>>>0)/3|0;e=(g>>>3&268435452)+d|0;i[e>>2]=i[e>>2]|1<<(g&31);d=-1;d=(b|0)!=-1?i[i[i[a+4>>2]>>2]+(b<<2)>>2]:d;f=i[a+36>>2]+(d>>>3&536870908)|0;c=i[f>>2];e=1<<(d&31);if(!(c&e)){i[f>>2]=c|e;Ui(q,d,b)}if((b|0)==-1){break m}h=i[a+4>>2];e=-1;d=-1;c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){d=i[i[h+12>>2]+(c<<2)>>2]}b=(b-o(g,3)|0?-1:2)+b|0;if((b|0)!=-1){e=i[i[h+12>>2]+(b<<2)>>2]}g=(e|0)==-1;f=(e>>>0)/3|0;c=(d>>>0)/3|0;n:{o:{p:{q:{b=(d|0)==-1;if(!b){b=b?-1:c;b=i[i[a+24>>2]+(b>>>3&536870908)>>2]&1<<(b&31);if(g){break q}p=(b|0)!=0;break p}p=1;if(!g){break p}break m}if(!b){break o}break m}b=g?-1:f;r:{if(i[i[a+24>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){break r}b=0;c=i[i[h>>2]+(e<<2)>>2];if(!(i[i[a+36>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1)){b=i[a+88>>2]+(c<<2)|0;c=i[b>>2];i[b>>2]=c+1;b=(c|0)<1?2:1}if(!(!p|(b|0)>i[a+84>>2])){b=e;d=i[a+24>>2];continue}c=o(b,12)+a|0;k=c+52|0;g=i[k>>2];n=c+56|0;f=i[n>>2];s:{if((g|0)!=(f|0)){i[g>>2]=e;i[k>>2]=g+4;break s}j=c+48|0;h=i[j>>2];l=g-h|0;c=l>>2;m=c+1|0;if(m>>>0>=1073741824){break f}r=c<<2;g=f-h|0;f=g>>1;f=g>>2>>>0<536870911?f>>>0>>0?m:f:1073741823;c=0;t:{if(!f){break t}if(f>>>0>=1073741824){break e}c=ko(f<<2)}g=r+c|0;i[g>>2]=e;f=c+(f<<2)|0;e=g+4|0;if((l|0)>=1){kp(c,h,l)}i[j>>2]=c;i[k>>2]=e;i[n>>2]=f;if(!h){break s}ep(h)}if(i[a+84>>2]<=(b|0)){break r}i[a+84>>2]=b}if(p){break m}b=-1;if((d|0)==-1){break n}}b=i[i[i[a+4>>2]>>2]+(d<<2)>>2]}e=0;if(!(i[i[a+36>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1)){b=i[a+88>>2]+(b<<2)|0;e=i[b>>2];i[b>>2]=e+1;e=(e|0)<1?2:1}if((e|0)<=i[a+84>>2]){b=d;d=i[a+24>>2];continue}break}b=o(e,12)+a|0;l=b+52|0;f=i[l>>2];j=b+56|0;c=i[j>>2];u:{if((f|0)!=(c|0)){i[f>>2]=d;i[l>>2]=f+4;break u}h=b+48|0;k=i[h>>2];m=f-k|0;g=m>>2;n=g+1|0;if(n>>>0>=1073741824){break d}f=c-k|0;c=f>>1;c=f>>2>>>0<536870911?c>>>0>>0?n:c:1073741823;b=0;v:{if(!c){break v}if(c>>>0>=1073741824){break c}b=ko(c<<2)}f=b+(g<<2)|0;i[f>>2]=d;c=b+(c<<2)|0;d=f+4|0;if((m|0)>=1){kp(b,k,m)}i[h>>2]=b;i[l>>2]=d;i[j>>2]=c;if(!k){break u}ep(k)}c=i[a+84>>2];if((c|0)<=(e|0)){break l}i[a+84>>2]=e;c=e;break l}c=i[a+84>>2]}if((c|0)<3){continue}break}}return 1}Ko();x()}Ba(11708);x()}Ko();x()}Ba(11708);x()}Ba(11708);x()}Ko();x()}function Gm(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,n=0,o=0,q=0,r=p(0),s=0,t=0,u=0,w=0,y=0,z=0,A=0,B=p(0),C=0,D=0;d=H+ -64|0;H=d;h=i[a+80>>2];i[d+40>>2]=0;i[d+44>>2]=0;i[d+56>>2]=a;i[d+48>>2]=a;i[d+32>>2]=0;i[d+36>>2]=0;i[d+52>>2]=1065353216;Hm(d+32|0,h);h=i[a+80>>2];i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;a:{if(h){if(h>>>0>=1073741824){break a}c=h<<2;b=ko(c);i[d+16>>2]=b;f=c+b|0;i[d+24>>2]=f;lp(b,0,c);i[d+20>>2]=f}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;b:{c:{d:{if(!h){break d}C=d+40|0;h=0;while(1){c=0;b=i[d+48>>2];q=i[b+8>>2];s=i[b+12>>2]-q|0;y=(s|0)<1;if(!y){b=s>>>2|0;f=b>>>0>1?b:1;e=0;while(1){b=h;l=i[q+(e<<2)>>2];if(!j[l+84|0]){b=i[i[l+68>>2]+(h<<2)>>2]}c=b<<2^c<<1;e=e+1|0;if((f|0)!=(e|0)){continue}break}}e:{f:{g=i[d+36>>2];if(!g){break f}f=i[d+32>>2];t=Ap(g)>>>0>1;b=g+ -1&c;g:{if(!t){break g}b=c;if(c>>>0>>0){break g}b=(c>>>0)%(g>>>0)|0}f=i[f+(b<<2)>>2];if(!f){break f}n=i[f>>2];if(!n){break f}o=b;D=g+ -1|0;u=i[d+56>>2];h:{while(1){i:{j:{e=i[n+4>>2];if((c|0)!=(e|0)){k:{if(!t){e=e&D;break k}if(e>>>0>>0){break k}e=(e>>>0)%(g>>>0)|0}if((e|0)==(o|0)){break j}break f}z=i[u+8>>2];b=i[u+12>>2]-z|0;if((b|0)<1){break h}f=i[n+8>>2];k=b>>>2|0;k=k>>>0>1?k:1;e=0;while(1){b=f;l=h;A=i[z+(e<<2)>>2];if(!j[A+84|0]){b=i[A+68>>2];l=i[b+(h<<2)>>2];b=i[b+(f<<2)>>2]}if((b|0)!=(l|0)){break j}e=e+1|0;if((k|0)!=(e|0)){continue}break}break i}n=i[n>>2];if(n){continue}break f}break}if(!n){break f}}i[i[d+16>>2]+(h<<2)>>2]=i[n+12>>2];break e}l:{if(y){c=0;break l}c=s>>>2|0;f=c>>>0>1?c:1;c=0;e=0;while(1){b=h;l=i[q+(e<<2)>>2];if(!j[l+84|0]){b=i[i[l+68>>2]+(h<<2)>>2]}c=b<<2^c<<1;e=e+1|0;if((f|0)!=(e|0)){continue}break}}m:{n:{if(!g){break n}b=i[d+32>>2];q=Ap(g)>>>0>1;k=g+ -1&c;o:{if(!q){break o}k=c;if(c>>>0>>0){break o}k=(c>>>0)%(g>>>0)|0}b=i[b+(k<<2)>>2];if(!b){break n}n=i[b>>2];if(!n){break n}s=g+ -1|0;o=i[d+56>>2];while(1){e=i[n+4>>2];if((c|0)!=(e|0)){p:{if(!q){e=e&s;break p}if(e>>>0>>0){break p}e=(e>>>0)%(g>>>0)|0}if((e|0)!=(k|0)){break n}}u=i[o+8>>2];b=i[o+12>>2]-u|0;if((b|0)<1){break m}f=i[n+8>>2];b=b>>>2|0;y=b>>>0>1?b:1;e=0;while(1){b=f;l=h;t=i[u+(e<<2)>>2];if(!j[t+84|0]){b=i[t+68>>2];l=i[b+(h<<2)>>2];b=i[b+(f<<2)>>2]}if((b|0)==(l|0)){e=e+1|0;if((y|0)==(e|0)){break m}continue}break}n=i[n>>2];if(n){continue}break}}b=ko(16);i[b+12>>2]=w;i[b+8>>2]=h;i[b+4>>2]=c;i[b>>2]=0;r=m[d+52>>2];B=p(i[d+44>>2]+1>>>0);q:{if(p(r*p(g>>>0))>>0<3|g<<1;l=d+32|0;r=p(v(p(B/r)));r:{if(r=p(0)){k=~~r>>>0;break r}k=0}Hm(l,f>>>0>>0?k:f);g=i[d+36>>2];k=g+ -1|0;if(!(g&k)){k=c&k;break q}if(c>>>0>>0){k=c;break q}k=(c>>>0)%(g>>>0)|0}f=i[d+32>>2]+(k<<2)|0;c=i[f>>2];s:{t:{if(!c){i[b>>2]=i[d+40>>2];i[d+40>>2]=b;i[f>>2]=C;c=i[b>>2];if(!c){break s}c=i[c+4>>2];f=g+ -1|0;u:{if(!(f&g)){c=c&f;break u}if(c>>>0>>0){break u}c=(c>>>0)%(g>>>0)|0}c=i[d+32>>2]+(c<<2)|0;break t}i[b>>2]=i[c>>2]}i[c>>2]=b}i[d+44>>2]=i[d+44>>2]+1}i[i[d+16>>2]+(h<<2)>>2]=w;w=w+1|0;c=i[d+4>>2];o=i[d+8>>2];if((c|0)!=(o|0)){i[c>>2]=h;i[d+4>>2]=c+4;break e}b=i[d>>2];l=c-b|0;e=l>>2;f=e+1|0;if(f>>>0>=1073741824){break c}o=o-b|0;g=o>>1;f=o>>2>>>0<536870911?g>>>0>>0?f:g:1073741823;c=0;v:{if(!f){break v}if(f>>>0>=1073741824){break b}c=ko(f<<2)}o=c+(e<<2)|0;i[o>>2]=h;f=c+(f<<2)|0;o=o+4|0;if((l|0)>=1){kp(c,b,l)}i[d+8>>2]=f;i[d+4>>2]=o;i[d>>2]=c;if(!b){break e}ep(b)}h=h+1|0;c=i[a+80>>2];if(h>>>0>>0){continue}break}if((c|0)!=(w|0)){K[i[i[a>>2]+24>>2]](a,d+16|0,d);i[a+80>>2]=w}a=i[d>>2];if(!a){break d}i[d+4>>2]=a;ep(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;ep(a)}h=i[d+40>>2];if(h){while(1){a=i[h>>2];ep(h);h=a;if(h){continue}break}}a=i[d+32>>2];i[d+32>>2]=0;if(a){ep(a)}H=d- -64|0;return}Ko();x()}Ba(16928);x()}Ko();x()}function vi(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;d=H-80|0;H=d;a:{b:{c:{d:{if(!j[a+352|0]){break d}c=1;n=K[i[i[a>>2]+40>>2]](a)|0;if((i[n+12>>2]-i[n+8>>2]|0)<1){break d}Sh(i[i[(K[i[i[a>>2]+40>>2]](a)|0)+8>>2]>>2],b);break c}c=b<<2;f=i[c+i[i[(K[i[i[a>>2]+40>>2]](a)|0)+56>>2]+84>>2]>>2];k=i[c+i[i[(K[i[i[a>>2]+40>>2]](a)|0)+4>>2]+8>>2]>>2];n=-1;c=i[a+176>>2];e=i[a+172>>2];e:{if((c|0)==(e|0)){break e}h=(c-e|0)/136|0;c=0;while(1){if(i[e+o(c,136)>>2]==(b|0)){n=c;break e}c=c+1|0;if(c>>>0>>0){continue}break}}f:{g:{h:{i:{j:{k:{l:{m:{if(!j[a+352|0]){c=i[k+56>>2];if(!j[(e+o(n,136)|0)+28|0]|(f|0)!=1?!(!f|!c):0){break k}if(c){break m}}c=a+40|0;break l}c=i[a+12>>2];f=i[c+28>>2];c=i[c+24>>2];i[d+16>>2]=-1;h=e;e=o(n,136);h=h+e|0;Th(h+116|0,f-c>>2,d+16|0);g[(e+i[a+172>>2]|0)+100|0]=0;c=h+104|0}f=0;if($b(i[(K[i[i[a>>2]+40>>2]](a)|0)+48>>2])|i[k+56>>2]){break j}n:{if(!j[a+352|0]){f=1;break n}e=i[a+8>>2];e=i[e+12>>2]-i[e+8>>2]|0;f=(e|0)<5;if((e|0)>4){break j}}Uh(d+16|0,a,c);break i}e=e+o(n,136)|0;c=i[e+56>>2];f=i[e+60>>2];i[d+16>>2]=-1;Th(e+116|0,f-c>>2,d+16|0);c=ko(80);f=i[a+8>>2];i[c+12>>2]=0;i[c+16>>2]=0;i[c>>2]=12880;i[c+4>>2]=0;k=c+20|0;i[k>>2]=0;i[k+4>>2]=0;q=c+28|0;h=q;i[h>>2]=0;i[h+4>>2]=0;i[c+36>>2]=0;i[c+40>>2]=0;h=c+44|0;i[h>>2]=0;i[h+4>>2]=0;i[c+52>>2]=0;i[c+76>>2]=0;r=e+104|0;i[c+72>>2]=r;i[c+68>>2]=f;i[c+64>>2]=0;i[c+56>>2]=0;i[c+60>>2]=0;i[c+8>>2]=11784;s=d+56|0;m=s;i[m>>2]=0;i[m+4>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;m=d+40|0;i[m>>2]=0;i[m+4>>2]=0;t=d+32|0;p=t;i[p>>2]=0;i[p+4>>2]=0;p=d+24|0;i[p>>2]=0;i[p+4>>2]=0;i[d+72>>2]=0;i[d+64>>2]=0;i[d+68>>2]=0;i[d+16>>2]=11784;u=e+4|0;i[d+20>>2]=u;e=i[e+68>>2];v=i[e>>2];e=i[e+4>>2];g[d+79|0]=0;Vh(m,(e-v>>2>>>0)/3|0,d+79|0);e=i[d+20>>2];m=i[e+56>>2];e=i[e+52>>2];g[d+79|0]=0;Vh(d+52|0,m-e>>2,d+79|0);m=d+36|0;i[m>>2]=c;i[t>>2]=f;e=d+28|0;i[e>>2]=r;i[p>>2]=u;i[c+76>>2]=a+72;i[q>>2]=i[m>>2];f=i[e+4>>2];i[k>>2]=i[e>>2];i[k+4>>2]=f;e=i[d+24>>2];i[c+12>>2]=i[d+20>>2];i[c+16>>2]=e;m=c;f=i[d+44>>2];if(f){k=c+32|0;o:{if(f>>>0<=i[c+40>>2]<<5>>>0){q=f+ -1>>>5|0;f=i[k>>2];break o}k=i[k>>2];if(k){ep(k);i[c+40>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;f=i[d+44>>2]}if((f|0)<=-1){break h}q=f+ -1>>>5|0;k=q+1|0;f=ko(k<<2);i[c+40>>2]=k;i[c+36>>2]=0;i[c+32>>2]=f}mp(f,i[d+40>>2],(q<<2)+4|0);p=i[d+44>>2]}else{p=0}i[m+36>>2]=p;m=c;f=i[s>>2];if(f){p:{if(f>>>0<=i[c+52>>2]<<5>>>0){k=f+ -1>>>5|0;f=i[h>>2];break p}k=i[h>>2];if(k){ep(k);i[c+52>>2]=0;i[c+44>>2]=0;i[c+48>>2]=0;f=i[d+56>>2]}if((f|0)<=-1){break g}k=f+ -1>>>5|0;h=k+1|0;f=ko(h<<2);i[c+52>>2]=h;i[c+48>>2]=0;i[c+44>>2]=f}mp(f,i[d+52>>2],(k<<2)+4|0);h=i[d+56>>2]}else{h=0}i[m+48>>2]=h;Wh(c+56|0,i[d+64>>2],i[d+68>>2]);i[d+16>>2]=11784;e=i[d+64>>2];if(e){i[d+68>>2]=e;ep(e)}i[d+16>>2]=12036;e=i[d+52>>2];if(e){ep(e)}e=i[d+40>>2];if(e){ep(e)}f=0;break f}Xh(d+16|0,a,c)}c=i[d+16>>2];if(c){break f}c=0;break c}Ko();x()}Ko();x()}i[((n|0)==-1?a+68|0:(i[a+172>>2]+o(n,136)|0)+132|0)>>2]=f;e=ko(76);i[d+8>>2]=c;Nc(e,d+8|0,b);b=i[d+8>>2];i[d+8>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}b=i[a+188>>2];h=i[a+192>>2];q:{if((b|0)!=(h|0)){i[b>>2]=n;i[a+188>>2]=b+4;break q}c=i[a+184>>2];k=b-c|0;q=k>>2;f=q+1|0;if(f>>>0>=1073741824){break b}h=h-c|0;r=h>>1;f=h>>2>>>0<536870911?r>>>0>>0?f:r:1073741823;b=0;r:{if(!f){break r}if(f>>>0>=1073741824){break a}b=ko(f<<2)}h=b+(q<<2)|0;i[h>>2]=n;n=b+(f<<2)|0;f=h+4|0;if((k|0)>=1){kp(b,c,k)}i[a+192>>2]=n;i[a+188>>2]=f;i[a+184>>2]=b;if(!c){break q}ep(c)}a=K[i[i[a>>2]+40>>2]](a)|0;i[d>>2]=e;b=i[a+12>>2];s:{if(b>>>0>2]){i[d>>2]=0;i[b>>2]=e;i[a+12>>2]=b+4;break s}Yh(a+8|0,d)}a=i[d>>2];i[d>>2]=0;c=1;if(!a){break c}K[i[i[a>>2]+4>>2]](a)}H=d+80|0;return c|0}Ko();x()}Ba(11708);x()}function Rh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;d=H-80|0;H=d;a:{b:{c:{d:{if(!j[a+288|0]){break d}c=1;n=K[i[i[a>>2]+40>>2]](a)|0;if((i[n+12>>2]-i[n+8>>2]|0)<1){break d}Sh(i[i[(K[i[i[a>>2]+40>>2]](a)|0)+8>>2]>>2],b);break c}c=b<<2;f=i[c+i[i[(K[i[i[a>>2]+40>>2]](a)|0)+56>>2]+84>>2]>>2];k=i[c+i[i[(K[i[i[a>>2]+40>>2]](a)|0)+4>>2]+8>>2]>>2];n=-1;c=i[a+176>>2];e=i[a+172>>2];e:{if((c|0)==(e|0)){break e}h=(c-e|0)/136|0;c=0;while(1){if(i[e+o(c,136)>>2]==(b|0)){n=c;break e}c=c+1|0;if(c>>>0>>0){continue}break}}f:{g:{h:{i:{j:{k:{l:{m:{if(!j[a+288|0]){c=i[k+56>>2];if(!j[(e+o(n,136)|0)+28|0]|(f|0)!=1?!(!f|!c):0){break k}if(c){break m}}c=a+40|0;break l}c=i[a+12>>2];f=i[c+28>>2];c=i[c+24>>2];i[d+16>>2]=-1;h=e;e=o(n,136);h=h+e|0;Th(h+116|0,f-c>>2,d+16|0);g[(e+i[a+172>>2]|0)+100|0]=0;c=h+104|0}f=0;if($b(i[(K[i[i[a>>2]+40>>2]](a)|0)+48>>2])|i[k+56>>2]){break j}n:{if(!j[a+288|0]){f=1;break n}e=i[a+8>>2];e=i[e+12>>2]-i[e+8>>2]|0;f=(e|0)<5;if((e|0)>4){break j}}Uh(d+16|0,a,c);break i}e=e+o(n,136)|0;c=i[e+56>>2];f=i[e+60>>2];i[d+16>>2]=-1;Th(e+116|0,f-c>>2,d+16|0);c=ko(80);f=i[a+8>>2];i[c+12>>2]=0;i[c+16>>2]=0;i[c>>2]=12880;i[c+4>>2]=0;k=c+20|0;i[k>>2]=0;i[k+4>>2]=0;q=c+28|0;h=q;i[h>>2]=0;i[h+4>>2]=0;i[c+36>>2]=0;i[c+40>>2]=0;h=c+44|0;i[h>>2]=0;i[h+4>>2]=0;i[c+52>>2]=0;i[c+76>>2]=0;r=e+104|0;i[c+72>>2]=r;i[c+68>>2]=f;i[c+64>>2]=0;i[c+56>>2]=0;i[c+60>>2]=0;i[c+8>>2]=11784;s=d+56|0;m=s;i[m>>2]=0;i[m+4>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;m=d+40|0;i[m>>2]=0;i[m+4>>2]=0;t=d+32|0;p=t;i[p>>2]=0;i[p+4>>2]=0;p=d+24|0;i[p>>2]=0;i[p+4>>2]=0;i[d+72>>2]=0;i[d+64>>2]=0;i[d+68>>2]=0;i[d+16>>2]=11784;u=e+4|0;i[d+20>>2]=u;e=i[e+68>>2];v=i[e>>2];e=i[e+4>>2];g[d+79|0]=0;Vh(m,(e-v>>2>>>0)/3|0,d+79|0);e=i[d+20>>2];m=i[e+56>>2];e=i[e+52>>2];g[d+79|0]=0;Vh(d+52|0,m-e>>2,d+79|0);m=d+36|0;i[m>>2]=c;i[t>>2]=f;e=d+28|0;i[e>>2]=r;i[p>>2]=u;i[c+76>>2]=a+72;i[q>>2]=i[m>>2];f=i[e+4>>2];i[k>>2]=i[e>>2];i[k+4>>2]=f;e=i[d+24>>2];i[c+12>>2]=i[d+20>>2];i[c+16>>2]=e;m=c;f=i[d+44>>2];if(f){k=c+32|0;o:{if(f>>>0<=i[c+40>>2]<<5>>>0){q=f+ -1>>>5|0;f=i[k>>2];break o}k=i[k>>2];if(k){ep(k);i[c+40>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;f=i[d+44>>2]}if((f|0)<=-1){break h}q=f+ -1>>>5|0;k=q+1|0;f=ko(k<<2);i[c+40>>2]=k;i[c+36>>2]=0;i[c+32>>2]=f}mp(f,i[d+40>>2],(q<<2)+4|0);p=i[d+44>>2]}else{p=0}i[m+36>>2]=p;m=c;f=i[s>>2];if(f){p:{if(f>>>0<=i[c+52>>2]<<5>>>0){k=f+ -1>>>5|0;f=i[h>>2];break p}k=i[h>>2];if(k){ep(k);i[c+52>>2]=0;i[c+44>>2]=0;i[c+48>>2]=0;f=i[d+56>>2]}if((f|0)<=-1){break g}k=f+ -1>>>5|0;h=k+1|0;f=ko(h<<2);i[c+52>>2]=h;i[c+48>>2]=0;i[c+44>>2]=f}mp(f,i[d+52>>2],(k<<2)+4|0);h=i[d+56>>2]}else{h=0}i[m+48>>2]=h;Wh(c+56|0,i[d+64>>2],i[d+68>>2]);i[d+16>>2]=11784;e=i[d+64>>2];if(e){i[d+68>>2]=e;ep(e)}i[d+16>>2]=12036;e=i[d+52>>2];if(e){ep(e)}e=i[d+40>>2];if(e){ep(e)}f=0;break f}Xh(d+16|0,a,c)}c=i[d+16>>2];if(c){break f}c=0;break c}Ko();x()}Ko();x()}i[((n|0)==-1?a+68|0:(i[a+172>>2]+o(n,136)|0)+132|0)>>2]=f;e=ko(76);i[d+8>>2]=c;Nc(e,d+8|0,b);b=i[d+8>>2];i[d+8>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}b=i[a+188>>2];h=i[a+192>>2];q:{if((b|0)!=(h|0)){i[b>>2]=n;i[a+188>>2]=b+4;break q}c=i[a+184>>2];k=b-c|0;q=k>>2;f=q+1|0;if(f>>>0>=1073741824){break b}h=h-c|0;r=h>>1;f=h>>2>>>0<536870911?r>>>0>>0?f:r:1073741823;b=0;r:{if(!f){break r}if(f>>>0>=1073741824){break a}b=ko(f<<2)}h=b+(q<<2)|0;i[h>>2]=n;n=b+(f<<2)|0;f=h+4|0;if((k|0)>=1){kp(b,c,k)}i[a+192>>2]=n;i[a+188>>2]=f;i[a+184>>2]=b;if(!c){break q}ep(c)}a=K[i[i[a>>2]+40>>2]](a)|0;i[d>>2]=e;b=i[a+12>>2];s:{if(b>>>0>2]){i[d>>2]=0;i[b>>2]=e;i[a+12>>2]=b+4;break s}Yh(a+8|0,d)}a=i[d>>2];i[d>>2]=0;c=1;if(!a){break c}K[i[i[a>>2]+4>>2]](a)}H=d+80|0;return c|0}Ko();x()}Ba(11708);x()}function lg(a,b,c,d,e){var f=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;h=H-48|0;H=h;a:{b:{c:{d:{e:{if((b|0)<0){break e}if(!b){o=1;break e}i[h+40>>2]=0;i[h+32>>2]=0;i[h+36>>2]=0;if(b>>>0>=1073741824){break a}z=(c|0)>1?c:1;p=b<<2;f=ko(p);i[h+36>>2]=f;i[h+32>>2]=f;y=f+p|0;i[h+40>>2]=y;p=f;n=f;while(1){m=1;o=i[(A<<2)+a>>2];if((c|0)>1){while(1){u=i[(m+A<<2)+a>>2];o=o>>>0>>0?u:o;m=m+1|0;if((z|0)!=(m|0)){continue}break}}s=o?(r(o)^31)+1|0:1;f:{if(n>>>0>>0){i[n>>2]=s;n=n+4|0;i[h+36>>2]=n;break f}t=n-p|0;u=t>>2;q=u+1|0;if(q>>>0>=1073741824){break d}n=y-p|0;m=n>>1;n=n>>2>>>0<536870911?m>>>0>>0?q:m:1073741823;f=0;g:{if(!n){break g}if(n>>>0>=1073741824){break c}f=ko(n<<2)}m=f+(u<<2)|0;i[m>>2]=s;y=(n<<2)+f|0;n=m+4|0;if((t|0)>=1){kp(f,p,t)}i[h+40>>2]=y;i[h+36>>2]=n;i[h+32>>2]=f;if(p){ep(p)}p=f}v=o>>>0>v>>>0?o:v;A=z+A|0;if((A|0)<(b|0)){continue}break}m=0;i[h+24>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;p=n-p|0;h:{if(!p){o=0;break h}c=p>>2;if(c>>>0>=1073741824){break b}m=ko(p);i[h+16>>2]=m;i[h+20>>2]=m;i[h+24>>2]=(c<<2)+m;p=h;n=n-f|0;c=m;i:{if((n|0)<1){break i}c=kp(m,f,n)+n|0}o=c;i[p+20>>2]=o}c=o-m|0;n=c>>2;if(c){p=n>>>0>1?n:1;o=0;while(1){f=i[(o<<2)+m>>2];c=f+w|0;if(c>>>0>>0){k=k+1|0}w=c;o=o+1|0;if((p|0)!=(o|0)){continue}break}}f=bg(m,n,32,h);u=J;m=i[h>>2];c=i[h+16>>2];if(c){i[h+20>>2]=c;ep(c)}o=bg(a,b,v,h);n=J;t=i[h>>2];p=(v-t|0)/64|0;j:{k:{if(!d){break k}c=ko(32);i[h>>2]=c;i[h+4>>2]=22;i[h+8>>2]=-2147483616;g[c+22|0]=0;s=j[10820]|j[10821]<<8|(j[10822]<<16|j[10823]<<24);q=j[10816]|j[10817]<<8|(j[10818]<<16|j[10819]<<24);g[c+14|0]=q;g[c+15|0]=q>>>8;g[c+16|0]=q>>>16;g[c+17|0]=q>>>24;g[c+18|0]=s;g[c+19|0]=s>>>8;g[c+20|0]=s>>>16;g[c+21|0]=s>>>24;s=j[10814]|j[10815]<<8|(j[10816]<<16|j[10817]<<24);q=j[10810]|j[10811]<<8|(j[10812]<<16|j[10813]<<24);g[c+8|0]=q;g[c+9|0]=q>>>8;g[c+10|0]=q>>>16;g[c+11|0]=q>>>24;g[c+12|0]=s;g[c+13|0]=s>>>8;g[c+14|0]=s>>>16;g[c+15|0]=s>>>24;s=j[10806]|j[10807]<<8|(j[10808]<<16|j[10809]<<24);q=j[10802]|j[10803]<<8|(j[10804]<<16|j[10805]<<24);g[c|0]=q;g[c+1|0]=q>>>8;g[c+2|0]=q>>>16;g[c+3|0]=q>>>24;g[c+4|0]=s;g[c+5|0]=s>>>8;g[c+6|0]=s>>>16;g[c+7|0]=s>>>24;c=Tb(d,h);if(g[h+11|0]<=-1){ep(i[h>>2])}if(!c){break k}c=ko(32);i[h>>2]=c;i[h+4>>2]=22;i[h+8>>2]=-2147483616;g[c+22|0]=0;k=j[10820]|j[10821]<<8|(j[10822]<<16|j[10823]<<24);f=j[10816]|j[10817]<<8|(j[10818]<<16|j[10819]<<24);g[c+14|0]=f;g[c+15|0]=f>>>8;g[c+16|0]=f>>>16;g[c+17|0]=f>>>24;g[c+18|0]=k;g[c+19|0]=k>>>8;g[c+20|0]=k>>>16;g[c+21|0]=k>>>24;k=j[10814]|j[10815]<<8|(j[10816]<<16|j[10817]<<24);f=j[10810]|j[10811]<<8|(j[10812]<<16|j[10813]<<24);g[c+8|0]=f;g[c+9|0]=f>>>8;g[c+10|0]=f>>>16;g[c+11|0]=f>>>24;g[c+12|0]=k;g[c+13|0]=k>>>8;g[c+14|0]=k>>>16;g[c+15|0]=k>>>24;k=j[10806]|j[10807]<<8|(j[10808]<<16|j[10809]<<24);f=j[10802]|j[10803]<<8|(j[10804]<<16|j[10805]<<24);g[c|0]=f;g[c+1|0]=f>>>8;g[c+2|0]=f>>>16;g[c+3|0]=f>>>24;g[c+4|0]=k;g[c+5|0]=k>>>8;g[c+6|0]=k>>>16;g[c+7|0]=k>>>24;m=ak(d,h);if(g[h+11|0]>-1){break j}ep(i[h>>2]);break j}if((r(v>>>0>1?v:1)^30)>>>0<18){c=f;f=xp(w,k,z,0);k=c+f|0;c=J+u|0;c=k>>>0>>0?c+1|0:c;w=k;k=m<<3;f=k>>31;m=k;k=f<<1|k>>>31;f=m<<1;m=w+f|0;c=c+k|0;c=m>>>0>>0?c+1|0:c;k=p+t<<3;f=k;p=f>>31;w=m;q=f;k=t<<3;f=k;m=f+o|0;k=(f>>31)+n|0;k=m>>>0>>0?k+1|0:k;f=m;m=q+f|0;k=k+p|0;k=m>>>0>>0?k+1|0:k;m=(c|0)>(k|0)?1:(c|0)>=(k|0)?w>>>0>=m>>>0:0}else{m=0}}g[h|0]=m;c=i[e+20>>2];if((c|0)<0?1:(c|0)<=0?l[e+16>>2]<=0:0){ea(e,i[e+4>>2],h,h+1|0)}o=0;l:{m:{switch(m|0){case 0:o=mg(a,b,z,h+32|0,e);break l;case 1:break m;default:break l}}o=ng(a,b,v,t,d,e)}a=i[h+32>>2];if(!a){break e}i[h+36>>2]=a;ep(a)}H=h+48|0;return o}Ko();x()}Ba(10859);x()}Ko();x()}Ba(10859);x()}function vn(a,b,c,d,e,f,g,h,j){var k=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0;m=H-112|0;H=m;n=h;o=j&2147483647;l=c+ -1|0;k=b+ -1|0;if((k|0)!=-1){l=l+1|0}p=k;t=(k|0)==-1&(l|0)==-1;q=e&2147483647;k=q;s=d;l=(c|0)==(l|0)&p>>>0>>0|l>>>0>>0;p=d+l|0;if(p>>>0>>0){k=k+1|0}l=p+ -1|0;k=k+ -1|0;k=(l|0)!=-1?k+1|0:k;a:{b:{if(!((l|0)==-1&(k|0)==2147418111?t:k>>>0>2147418111)){l=g+ -1|0;k=f+ -1|0;if((k|0)!=-1){l=l+1|0}p=k;t=(k|0)!=-1|(l|0)!=-1;k=o;l=(g|0)==(l|0)&p>>>0>>0|l>>>0>>0;p=l+n|0;if(p>>>0>>0){k=k+1|0}l=p+ -1|0;k=k+ -1|0;k=(l|0)!=-1?k+1|0:k;if((l|0)==-1&(k|0)==2147418111?t:(k|0)==2147418111&(l|0)!=-1|k>>>0<2147418111){break b}}if(!(!s&(q|0)==2147418112?!(b|c):(q|0)==2147418112&s>>>0<0|q>>>0<2147418112)){h=d;j=e|32768;f=b;g=c;break a}if(!(!n&(o|0)==2147418112?!(f|g):(o|0)==2147418112&n>>>0<0|o>>>0<2147418112)){j=j|32768;break a}if(!(b|s|(q^2147418112|c))){k=d;d=!(b^f|d^h|(c^g|e^j^-2147483648));h=d?0:k;j=d?2147450880:e;f=d?0:b;g=d?0:c;break a}if(!(f|n|(o^2147418112|g))){break a}if(!(b|s|(c|q))){if(f|n|(g|o)){break a}f=b&f;g=c&g;h=d&h;j=e&j;break a}if(f|n|(g|o)){break b}f=b;g=c;h=d;j=e;break a}k=(n|0)==(s|0)&(o|0)==(q|0)?(c|0)==(g|0)&f>>>0>b>>>0|g>>>0>c>>>0:(o|0)==(q|0)&n>>>0>s>>>0|o>>>0>q>>>0;q=k?f:b;l=k?g:c;n=k?j:e;s=n;p=k?h:d;n=n&65535;e=k?e:j;u=e;h=k?d:h;t=e>>>16&32767;o=s>>>16&32767;if(!o){d=!(n|p);e=d<<6;j=r(d?q:p)+32|0;d=r(d?l:n);d=e+((d|0)==32?j:d)|0;un(m+96|0,q,l,p,n,d+ -15|0);p=i[m+104>>2];n=i[m+108>>2];q=i[m+96>>2];o=16-d|0;l=i[m+100>>2]}f=k?b:f;g=k?c:g;j=u&65535;if(!t){b=!(h|j);c=b<<6;d=r(b?f:h)+32|0;b=r(b?g:j);b=c+((b|0)==32?d:b)|0;un(m+80|0,f,g,h,j,b+ -15|0);t=16-b|0;h=i[m+88>>2];j=i[m+92>>2];g=i[m+84>>2];f=i[m+80>>2]}b=h;k=j<<3|b>>>29;h=b<<3|g>>>29;j=k|524288;b=p;d=n<<3|b>>>29;e=b<<3|l>>>29;p=d;n=s^u;b=f;k=g<<3|b>>>29;b=b<<3;c=k;f=o-t|0;d=b;c:{if(!f){break c}if(f>>>0>127){h=0;j=0;k=0;d=1;break c}un(m- -64|0,b,c,h,j,128-f|0);xn(m+48|0,b,c,h,j,f);h=i[m+56>>2];j=i[m+60>>2];k=i[m+52>>2];d=i[m+48>>2]|((i[m+64>>2]|i[m+72>>2])!=0|(i[m+68>>2]|i[m+76>>2])!=0)}f=k;p=p|524288;b=q;k=l<<3|b>>>29;c=b<<3;d:{if((n|0)<-1?1:(n|0)<=-1){l=d;b=c-d|0;n=h;q=e-h|0;d=(f|0)==(k|0)&c>>>0>>0|k>>>0>>0;h=q-d|0;c=k-((c>>>0>>0)+f|0)|0;j=(p-((e>>>0>>0)+j|0)|0)-(q>>>0>>0)|0;if(!(b|h|(c|j))){f=0;g=0;h=0;j=0;break a}if(j>>>0>524287){break d}f=b;d=!(h|j);e=d<<6;g=r(d?b:h)+32|0;b=r(d?c:j);b=e+((b|0)==32?g:b)|0;b=b+ -12|0;un(m+32|0,f,c,h,j,b);o=o-b|0;h=i[m+40>>2];j=i[m+44>>2];b=i[m+32>>2];c=i[m+36>>2];break d}k=f+k|0;b=d;c=b+c|0;if(c>>>0>>0){k=k+1|0}b=c;c=k;g=(f|0)==(k|0)&b>>>0>>0|k>>>0>>0;l=j+p|0;d=e+h|0;if(d>>>0>>0){l=l+1|0}f=d;e=g+d|0;d=l;h=e;j=h>>>0>>0?d+1|0:d;if(!(j&1048576)){break d}b=b&1|((c&1)<<31|b>>>1);c=h<<31|c>>>1;o=o+1|0;h=(j&1)<<31|h>>>1;j=j>>>1|0}l=0;n=s&-2147483648;if((o|0)>=32767){h=l;j=n|2147418112;f=0;g=0;break a}e=0;e:{if((o|0)>0){e=o;break e}un(m+16|0,b,c,h,j,o+127|0);xn(m,b,c,h,j,1-o|0);b=i[m>>2]|((i[m+16>>2]|i[m+24>>2])!=0|(i[m+20>>2]|i[m+28>>2])!=0);c=i[m+4>>2];h=i[m+8>>2];j=i[m+12>>2]}f=h<<29;d=c>>>3|0;c=(c&7)<<29|b>>>3;d=d|f;k=d;b=b&7;f=b>>>0>4;g=f+c|0;if(g>>>0>>0){k=k+1|0}f=g;g=k;c=(d|0)==(k|0)&f>>>0>>0|k>>>0>>0;d=l|((j&7)<<29|h>>>3);k=n|j>>>3&65535|e<<16;c=d+c|0;if(c>>>0>>0){k=k+1|0}h=c;j=k;f:{if((b|0)==4){b=0;d=g+b|0;c=f&1;e=f+c|0;if(e>>>0>>0){d=d+1|0}f=e;g=d;b=(b|0)==(d|0)&f>>>0>>0|d>>>0>>0;c=b+h|0;if(c>>>0>>0){k=k+1|0}h=c;j=k;break f}if(!b){break a}}}i[a>>2]=f;i[a+4>>2]=g;i[a+8>>2]=h;i[a+12>>2]=j;H=m+112|0}function _e(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;k=H-48|0;H=k;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;q=a+96|0;qf(q);d=i[a+40>>2];e=i[d>>2];f=i[d+4>>2];i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;a:{e=f-e|0;if((e|0)<1){break a}h=i[d>>2];if((h|0)!=i[d+4>>2]){r=a+8|0;t=a+44|0;d=e>>2;u=(d|0)>1?d:1;v=c+4|0;while(1){me(t,i[(o<<2)+h>>2],k+8|0);h=i[k+12>>2];g=h>>31;e=i[k+8>>2];n=e>>31;f=i[k+16>>2];j=f>>31;d=0;j=j^f+j;g=j+((g^g+h)+(n^e+n)|0)|0;if(g>>>0>>0){d=1}b:{if(!(d|g)){l=i[a+92>>2];i[k+8>>2]=l;g=l;break b}l=i[a+92>>2];j=l>>31;h=yp(xp(l,j,h,h>>31),J,g,d);i[k+12>>2]=h;g=yp(xp(l,j,e,e>>31),J,g,d);i[k+8>>2]=g;d=k;if((f|0)>=0){f=(((g|0)<0?g:0-g|0)+l|0)+((h|0)<0?h:0-h|0)|0}else{e=g>>31;f=(e+g^e)-l|0;e=h>>31;f=f+(e+h^e)|0}i[d+16>>2]=f}c:{if((g|0)>=0){e=h+l|0;j=f+l|0;break c}d:{if((h|0)<=-1){d=f>>31;e=d+f^d;break d}e=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){d=h>>31;j=d+h^d;break c}j=i[a+84>>2]+((h|0)<0?h:0-h|0)|0}e:{if(!(e|j)){d=i[a+84>>2];j=d;n=d;break e}d=i[a+84>>2];f:{g:{h:{i:{if(!e){if((d|0)==(j|0)){d=j;n=d;break e}n=0;if(d|j){break i}j=0;break e}if((d|0)!=(e|0)|j){break h}d=e;j=d;n=d;break e}if((l|0)<(j|0)){j=(l<<1)-j|0;break e}if(d){break f}break g}if((d|0)!=(e|0)){break f}}d=e;if((l|0)<=(j|0)){break f}j=(l<<1)-j|0;n=e;break e}if(!((d|0)!=(j|0)|(l|0)<=(e|0))){n=(l<<1)-e|0;break e}if(j){n=e;break e}j=0;if((l|0)>=(e|0)){n=e;break e}n=(l<<1)-e|0}e=0-f|0;i[k+16>>2]=e;s=0-h|0;i[k+12>>2]=s;i[k+8>>2]=0-g;j:{k:{l:{if((g|0)<=0){g=l-h|0;f=l-f|0;break l}g=f>>31;w=((f|0)<0?f:e)+d|0;e=(h|0)>0;g=e?g+f^g:w;if((f|0)>=1){e=h>>31;f=e+h^e;break l}f=(e?s:h)+d|0}if(!(f|g)){break k}m:{n:{o:{if(!g){if((d|0)==(f|0)){break k}e=0;if(d|f){break o}f=0;break j}if((d|0)==(g|0)?!f:0){break k}if((d|0)==(g|0)){break n}break m}if((l|0)<(f|0)){f=(l<<1)-f|0;break j}if(d){break m}}d=g;if((l|0)<=(f|0)){break m}f=(l<<1)-f|0;e=g;break j}if(!((d|0)!=(f|0)|(l|0)<=(g|0))){e=(l<<1)-g|0;break j}if(f){e=g;break j}f=0;if((l|0)>=(g|0)){e=g;break j}e=(l<<1)-g|0;break j}f=d;e=d}d=(o<<3)+b|0;g=i[d+4>>2];i[k+32>>2]=i[d>>2];i[k+36>>2]=g;i[k+28>>2]=j;i[k+24>>2]=n;Ae(k+40|0,r,k+32|0,k+24|0);g=i[k+44>>2];h=i[k+40>>2];n=i[d+4>>2];i[k+32>>2]=i[d>>2];i[k+36>>2]=n;i[k+28>>2]=f;i[k+24>>2]=e;Ae(k+40|0,r,k+32|0,k+24|0);f=i[k+44>>2];d=i[k+40>>2];e=i[a+92>>2];p:{if((e|0)<(h|0)){h=h-i[a+80>>2]|0;break p}if((h|0)>=(0-e|0)){break p}h=i[a+80>>2]+h|0}q:{if((e|0)<(g|0)){g=g-i[a+80>>2]|0;break q}if((g|0)>=(0-e|0)){break q}g=i[a+80>>2]+g|0}r:{if((e|0)<(d|0)){d=d-i[a+80>>2]|0;break r}if((d|0)>=(0-e|0)){break r}d=i[a+80>>2]+d|0}s:{if((e|0)<(f|0)){f=f-i[a+80>>2]|0;break s}if((f|0)>=(0-e|0)){break s}f=i[a+80>>2]+f|0}e=o<<1;n=g>>31;n=n+g^n;j=h>>31;j=j+h^j;l=j>>>0>(n^2147483647)>>>0?2147483647:n+j|0;n=f>>31;n=n+f^n;j=d>>31;j=j+d^j;t:{if(l>>>0<(j>>>0>(n^2147483647)>>>0?2147483647:n+j|0)>>>0){rf(q,0);d=(e<<2)+c|0;if((h|0)<=-1){h=i[a+80>>2]+h|0}i[d>>2]=h;if((g|0)>-1){f=g;break t}f=i[a+80>>2]+g|0;break t}rf(q,1);g=(e<<2)+c|0;if((d|0)<=-1){d=i[a+80>>2]+d|0}i[g>>2]=d;if((f|0)>-1){break t}f=i[a+80>>2]+f|0}i[(e<<2)+v>>2]=f;o=o+1|0;if((u|0)==(o|0)){break a}d=i[a+40>>2];h=i[d>>2];if(i[d+4>>2]-h>>2>>>0>o>>>0){continue}break}}Lo();x()}H=k+48|0;return 1}function Qe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;k=H-48|0;H=k;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;q=a+96|0;qf(q);d=i[a+40>>2];e=i[d>>2];f=i[d+4>>2];i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;a:{e=f-e|0;if((e|0)<1){break a}h=i[d>>2];if((h|0)!=i[d+4>>2]){r=a+8|0;t=a+44|0;d=e>>2;u=(d|0)>1?d:1;v=c+4|0;while(1){Zd(t,i[(o<<2)+h>>2],k+8|0);h=i[k+12>>2];g=h>>31;e=i[k+8>>2];n=e>>31;f=i[k+16>>2];j=f>>31;d=0;j=j^f+j;g=j+((g^g+h)+(n^e+n)|0)|0;if(g>>>0>>0){d=1}b:{if(!(d|g)){l=i[a+92>>2];i[k+8>>2]=l;g=l;break b}l=i[a+92>>2];j=l>>31;h=yp(xp(l,j,h,h>>31),J,g,d);i[k+12>>2]=h;g=yp(xp(l,j,e,e>>31),J,g,d);i[k+8>>2]=g;d=k;if((f|0)>=0){f=(((g|0)<0?g:0-g|0)+l|0)+((h|0)<0?h:0-h|0)|0}else{e=g>>31;f=(e+g^e)-l|0;e=h>>31;f=f+(e+h^e)|0}i[d+16>>2]=f}c:{if((g|0)>=0){e=h+l|0;j=f+l|0;break c}d:{if((h|0)<=-1){d=f>>31;e=d+f^d;break d}e=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){d=h>>31;j=d+h^d;break c}j=i[a+84>>2]+((h|0)<0?h:0-h|0)|0}e:{if(!(e|j)){d=i[a+84>>2];j=d;n=d;break e}d=i[a+84>>2];f:{g:{h:{i:{if(!e){if((d|0)==(j|0)){d=j;n=d;break e}n=0;if(d|j){break i}j=0;break e}if((d|0)!=(e|0)|j){break h}d=e;j=d;n=d;break e}if((l|0)<(j|0)){j=(l<<1)-j|0;break e}if(d){break f}break g}if((d|0)!=(e|0)){break f}}d=e;if((l|0)<=(j|0)){break f}j=(l<<1)-j|0;n=e;break e}if(!((d|0)!=(j|0)|(l|0)<=(e|0))){n=(l<<1)-e|0;break e}if(j){n=e;break e}j=0;if((l|0)>=(e|0)){n=e;break e}n=(l<<1)-e|0}e=0-f|0;i[k+16>>2]=e;s=0-h|0;i[k+12>>2]=s;i[k+8>>2]=0-g;j:{k:{l:{if((g|0)<=0){g=l-h|0;f=l-f|0;break l}g=f>>31;w=((f|0)<0?f:e)+d|0;e=(h|0)>0;g=e?g+f^g:w;if((f|0)>=1){e=h>>31;f=e+h^e;break l}f=(e?s:h)+d|0}if(!(f|g)){break k}m:{n:{o:{if(!g){if((d|0)==(f|0)){break k}e=0;if(d|f){break o}f=0;break j}if((d|0)==(g|0)?!f:0){break k}if((d|0)==(g|0)){break n}break m}if((l|0)<(f|0)){f=(l<<1)-f|0;break j}if(d){break m}}d=g;if((l|0)<=(f|0)){break m}f=(l<<1)-f|0;e=g;break j}if(!((d|0)!=(f|0)|(l|0)<=(g|0))){e=(l<<1)-g|0;break j}if(f){e=g;break j}f=0;if((l|0)>=(g|0)){e=g;break j}e=(l<<1)-g|0;break j}f=d;e=d}d=(o<<3)+b|0;g=i[d+4>>2];i[k+32>>2]=i[d>>2];i[k+36>>2]=g;i[k+28>>2]=j;i[k+24>>2]=n;Ae(k+40|0,r,k+32|0,k+24|0);g=i[k+44>>2];h=i[k+40>>2];n=i[d+4>>2];i[k+32>>2]=i[d>>2];i[k+36>>2]=n;i[k+28>>2]=f;i[k+24>>2]=e;Ae(k+40|0,r,k+32|0,k+24|0);f=i[k+44>>2];d=i[k+40>>2];e=i[a+92>>2];p:{if((e|0)<(h|0)){h=h-i[a+80>>2]|0;break p}if((h|0)>=(0-e|0)){break p}h=i[a+80>>2]+h|0}q:{if((e|0)<(g|0)){g=g-i[a+80>>2]|0;break q}if((g|0)>=(0-e|0)){break q}g=i[a+80>>2]+g|0}r:{if((e|0)<(d|0)){d=d-i[a+80>>2]|0;break r}if((d|0)>=(0-e|0)){break r}d=i[a+80>>2]+d|0}s:{if((e|0)<(f|0)){f=f-i[a+80>>2]|0;break s}if((f|0)>=(0-e|0)){break s}f=i[a+80>>2]+f|0}e=o<<1;n=g>>31;n=n+g^n;j=h>>31;j=j+h^j;l=j>>>0>(n^2147483647)>>>0?2147483647:n+j|0;n=f>>31;n=n+f^n;j=d>>31;j=j+d^j;t:{if(l>>>0<(j>>>0>(n^2147483647)>>>0?2147483647:n+j|0)>>>0){rf(q,0);d=(e<<2)+c|0;if((h|0)<=-1){h=i[a+80>>2]+h|0}i[d>>2]=h;if((g|0)>-1){f=g;break t}f=i[a+80>>2]+g|0;break t}rf(q,1);g=(e<<2)+c|0;if((d|0)<=-1){d=i[a+80>>2]+d|0}i[g>>2]=d;if((f|0)>-1){break t}f=i[a+80>>2]+f|0}i[(e<<2)+v>>2]=f;o=o+1|0;if((u|0)==(o|0)){break a}d=i[a+40>>2];h=i[d>>2];if(i[d+4>>2]-h>>2>>>0>o>>>0){continue}break}}Lo();x()}H=k+48|0;return 1}function me(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=H-96|0;H=f;e=i[a+16>>2];g[f+92|0]=1;i[f+88>>2]=b;i[f+84>>2]=b;i[f+80>>2]=e;d=-1;d=(b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:d;h=i[a+20>>2];e=i[h>>2];a:{b:{if(i[h+4>>2]-e>>2>>>0>d>>>0){e=i[i[a+8>>2]+(i[e+(d<<2)>>2]<<2)>>2];d=i[a+4>>2];if(!j[d+84|0]){e=i[i[d+68>>2]+(e<<2)>>2]}i[f+72>>2]=0;i[f+76>>2]=0;h=f- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;Rd(d,e,g[d+24|0],f+56|0);if((b|0)!=-1){d=b+1|0;h=(d>>>0)%3|0?d:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;n=f+48|0;o=f+40|0;while(1){e=h;d=m;c:{if(!i[a+28>>2]){break c}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break c}d=b+2|0}b=-1;b=(e|0)!=-1?i[i[i[a+16>>2]>>2]+(e<<2)>>2]:b;k=i[a+20>>2];e=i[k>>2];if(i[k+4>>2]-e>>2>>>0<=b>>>0){break b}e=i[i[a+8>>2]+(i[e+(b<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}i[n>>2]=0;i[n+4>>2]=0;i[o>>2]=0;i[o+4>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;Rd(b,e,g[b+24|0],f+32|0);b=-1;b=(d|0)!=-1?i[i[i[a+16>>2]>>2]+(d<<2)>>2]:b;e=i[a+20>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0<=b>>>0){break a}d=i[i[a+8>>2]+(i[d+(b<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;k=f+16|0;i[k>>2]=0;i[k+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Rd(b,d,g[b+24|0],f+8|0);d=i[f+8>>2];b=i[f+56>>2];s=d-b|0;y=i[f+60>>2];t=i[f+12>>2]-(y+(d>>>0>>0)|0)|0;z=i[f+40>>2];d=i[f+64>>2];D=z-d|0;A=i[f+68>>2];z=i[f+44>>2]-(A+(z>>>0>>0)|0)|0;B=xp(s,t,D,z);C=l-B|0;u=u-(J+(l>>>0>>0)|0)|0;l=i[k>>2];B=l-d|0;k=i[k+4>>2]-((l>>>0>>0)+A|0)|0;l=i[f+32>>2];A=l-b|0;y=i[f+36>>2]-((l>>>0>>0)+y|0)|0;d=xp(B,k,A,y);l=d+C|0;b=J+u|0;b=l>>>0>>0?b+1|0:b;u=b;E=p;w=s;F=t;b=i[f+48>>2];p=i[f+72>>2];d=p;t=b-d|0;s=i[f+76>>2];C=i[f+52>>2]-(s+(b>>>0>>0)|0)|0;w=xp(w,F,t,C);d=E+w|0;b=J+q|0;b=d>>>0>>0?b+1|0:b;q=i[e>>2];w=q-p|0;e=i[e+4>>2]-((q>>>0

>>0)+s|0)|0;q=xp(w,e,A,y);p=d-q|0;q=b-(J+(d>>>0>>0)|0)|0;b=xp(B,k,t,C);d=r-b|0;b=v-(J+(r>>>0>>0)|0)|0;v=xp(w,e,D,z);r=v+d|0;b=J+b|0;b=r>>>0>>0?b+1|0:b;v=b;ne(f+80|0);b=i[f+88>>2];if((b|0)!=-1){continue}break}}d=v;b=d>>31;d=d>>31;h=b;b=v+b|0;m=d+r|0;if(m>>>0>>0){b=b+1|0}o=d^m;n=b^h;t=-1;e=2147483647;d=q;b=d>>31;d=d>>31;m=b;b=q+b|0;k=d+p|0;if(k>>>0>>0){b=b+1|0}d=d^k;b=b^m;h=b;m=d^-1;b=b^2147483647;d:{if(!i[a+28>>2]){if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break d}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}d=b;h=a;b=u;e=b>>31;o=b>>31;b=o+b|0;k=e+l|0;if(k>>>0>>0){b=b+1|0}e=e^k;m=b^o;n=e+h|0;b=n;h=m^2147483647;a=(h|0)==(d|0)&a>>>0>(e^-1)>>>0|d>>>0>h>>>0;d=a?0:0;b=a?-1:b;a=b;if((b|0)<536870912?1:(b|0)<=536870912?d>>>0<1:0){break d}b=(a|0)/536870912|0;a=b;b=b>>31;l=yp(l,u,a,b);p=yp(p,q,a,b);r=yp(r,v,a,b);break d}e:{if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break e}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}m=b;n=a;d=b;h=u;b=h>>31;h=h>>31;k=b;b=u+b|0;s=h+l|0;if(s>>>0>>0){b=b+1|0}h=h^s;b=b^k;o=b;b=b^2147483647;if((b|0)==(d|0)&n>>>0>(h^-1)>>>0|d>>>0>b>>>0){break e}b=m+o|0;d=a+h|0;if(d>>>0>>0){b=b+1|0}t=d;e=b;if(!b&d>>>0<536870913|b>>>0<0){break d}}a=(e&536870911)<<3|t>>>29;b=e>>>29|0;l=yp(l,u,a,b);p=yp(p,q,a,b);r=yp(r,v,a,b)}i[c+8>>2]=l;i[c+4>>2]=p;i[c>>2]=r;H=f+96|0;return}Lo();x()}Lo();x()}Lo();x()}function Zd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=H-96|0;H=f;d=i[a+16>>2];g[f+92|0]=1;i[f+88>>2]=b;i[f+84>>2]=b;i[f+80>>2]=d;h=i[a+20>>2];e=i[h>>2];a:{b:{d=i[i[d+28>>2]+(b<<2)>>2];if(i[h+4>>2]-e>>2>>>0>d>>>0){d=i[i[a+8>>2]+(i[e+(d<<2)>>2]<<2)>>2];e=i[a+4>>2];if(!j[e+84|0]){d=i[i[e+68>>2]+(d<<2)>>2]}i[f+72>>2]=0;i[f+76>>2]=0;h=f- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;Rd(e,d,g[e+24|0],f+56|0);if((b|0)!=-1){d=b+1|0;h=(d>>>0)%3|0?d:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;n=f+48|0;o=f+40|0;while(1){e=h;d=m;c:{if(!i[a+28>>2]){break c}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break c}d=b+2|0}k=i[a+20>>2];b=i[k>>2];e=i[i[i[a+16>>2]+28>>2]+(e<<2)>>2];if(i[k+4>>2]-b>>2>>>0<=e>>>0){break b}e=i[i[a+8>>2]+(i[b+(e<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}i[n>>2]=0;i[n+4>>2]=0;i[o>>2]=0;i[o+4>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;Rd(b,e,g[b+24|0],f+32|0);e=i[a+20>>2];b=i[e>>2];d=i[i[i[a+16>>2]+28>>2]+(d<<2)>>2];if(i[e+4>>2]-b>>2>>>0<=d>>>0){break a}e=i[i[a+8>>2]+(i[b+(d<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}k=f+24|0;d=k;i[d>>2]=0;i[d+4>>2]=0;r=f+16|0;d=r;i[d>>2]=0;i[d+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Rd(b,e,g[b+24|0],f+8|0);d=i[f+8>>2];b=i[f+56>>2];t=d-b|0;y=i[f+60>>2];e=i[f+12>>2]-(y+(d>>>0>>0)|0)|0;z=i[f+40>>2];d=i[f+64>>2];D=z-d|0;A=i[f+68>>2];z=i[f+44>>2]-(A+(z>>>0>>0)|0)|0;B=xp(t,e,D,z);C=l-B|0;u=u-(J+(l>>>0>>0)|0)|0;l=i[r>>2];B=l-d|0;r=i[r+4>>2]-((l>>>0>>0)+A|0)|0;l=i[f+32>>2];A=l-b|0;y=i[f+36>>2]-((l>>>0>>0)+y|0)|0;d=xp(B,r,A,y);l=d+C|0;b=J+u|0;b=l>>>0>>0?b+1|0:b;u=b;E=p;w=t;F=e;b=i[f+48>>2];p=i[f+72>>2];d=p;e=b-d|0;t=i[f+76>>2];C=i[f+52>>2]-(t+(b>>>0>>0)|0)|0;w=xp(w,F,e,C);d=E+w|0;b=J+q|0;b=d>>>0>>0?b+1|0:b;q=i[k>>2];w=q-p|0;k=i[k+4>>2]-((q>>>0

>>0)+t|0)|0;q=xp(w,k,A,y);p=d-q|0;q=b-(J+(d>>>0>>0)|0)|0;b=xp(B,r,e,C);d=s-b|0;b=v-(J+(s>>>0>>0)|0)|0;v=xp(w,k,D,z);s=v+d|0;b=J+b|0;b=s>>>0>>0?b+1|0:b;v=b;ae(f+80|0);b=i[f+88>>2];if((b|0)!=-1){continue}break}}d=v;b=d>>31;d=d>>31;h=b;b=v+b|0;m=d+s|0;if(m>>>0>>0){b=b+1|0}o=d^m;n=b^h;r=-1;e=2147483647;d=q;b=d>>31;d=d>>31;m=b;b=q+b|0;k=d+p|0;if(k>>>0>>0){b=b+1|0}d=d^k;b=b^m;h=b;m=d^-1;b=b^2147483647;d:{if(!i[a+28>>2]){if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break d}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}d=b;h=a;b=u;e=b>>31;o=b>>31;b=o+b|0;k=e+l|0;if(k>>>0>>0){b=b+1|0}e=e^k;m=b^o;n=e+h|0;b=n;h=m^2147483647;a=(h|0)==(d|0)&a>>>0>(e^-1)>>>0|d>>>0>h>>>0;d=a?0:0;b=a?-1:b;a=b;if((b|0)<536870912?1:(b|0)<=536870912?d>>>0<1:0){break d}b=(a|0)/536870912|0;a=b;b=b>>31;l=yp(l,u,a,b);p=yp(p,q,a,b);s=yp(s,v,a,b);break d}e:{if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break e}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}m=b;n=a;d=b;h=u;b=h>>31;h=h>>31;k=b;b=u+b|0;t=h+l|0;if(t>>>0>>0){b=b+1|0}h=h^t;b=b^k;o=b;b=b^2147483647;if((b|0)==(d|0)&n>>>0>(h^-1)>>>0|d>>>0>b>>>0){break e}b=m+o|0;d=a+h|0;if(d>>>0>>0){b=b+1|0}r=d;e=b;if(!b&d>>>0<536870913|b>>>0<0){break d}}a=(e&536870911)<<3|r>>>29;b=e>>>29|0;l=yp(l,u,a,b);p=yp(p,q,a,b);s=yp(s,v,a,b)}i[c+8>>2]=l;i[c+4>>2]=p;i[c>>2]=s;H=f+96|0;return}Lo();x()}Lo();x()}Lo();x()}function dm(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;i[a+56>>2]=i[a+52>>2];i[a+44>>2]=i[a+40>>2];a:{b:{c:{d=i[a+64>>2];if(i[d+28>>2]!=i[d+24>>2]){s=a+40|0;t=a+52|0;while(1){h=e;n=i[i[d+24>>2]+(q<<2)>>2];d:{if((n|0)==-1){break d}if((n|0)<0){d=-1}else{e=(n>>>0)/3|0;d=i[(i[b+96>>2]+o(e,12)|0)+(n-o(e,3)<<2)>>2]}d=j[c+84|0]?d:i[i[c+68>>2]+(d<<2)>>2];e=i[a+56>>2];f=i[a+60>>2];e:{if(e>>>0>>0){i[e>>2]=d;i[a+56>>2]=e+4;break e}p=i[t>>2];m=e-p|0;k=m>>2;l=k+1|0;if(l>>>0>=1073741824){break c}g=f-p|0;f=g>>1;f=g>>2>>>0<536870911?f>>>0>>0?l:f:1073741823;e=0;f:{if(!f){break f}if(f>>>0>=1073741824){break a}e=ko(f<<2)}g=e+(k<<2)|0;i[g>>2]=d;f=e+(f<<2)|0;d=g+4|0;if((m|0)>=1){kp(e,p,m)}i[a+60>>2]=f;i[a+56>>2]=d;i[a+52>>2]=e;if(!p){break e}ep(p)}g:{if(!(i[i[a+12>>2]+(q>>>3&536870908)>>2]>>>(q&31)&1)){break g}e=n+1|0;e=(e>>>0)%3|0?e:n+ -2|0;if((e|0)==-1|i[i[a>>2]+(e>>>3&536870908)>>2]>>>(e&31)&1){break g}d=i[i[i[a+64>>2]+12>>2]+(e<<2)>>2];if((d|0)==-1){break g}e=d+1|0;d=(e>>>0)%3|0?e:d+ -2|0;if((d|0)==-1){break g}while(1){e=d+1|0;n=d;e=(e>>>0)%3|0?e:d+ -2|0;if((e|0)==-1|i[i[a>>2]+(e>>>3&536870908)>>2]>>>(e&31)&1){break g}d=i[i[i[a+64>>2]+12>>2]+(e<<2)>>2];if((d|0)==-1){break g}e=d+1|0;d=(e>>>0)%3|0?e:d+ -2|0;if((d|0)!=-1){continue}break}}i[i[a+28>>2]+(n<<2)>>2]=h;e=i[a+44>>2];d=i[a+48>>2];h:{if((e|0)!=(d|0)){i[e>>2]=n;i[a+44>>2]=e+4;break h}m=i[s>>2];l=e-m|0;g=l>>2;k=g+1|0;if(k>>>0>=1073741824){break b}f=d-m|0;d=f>>1;f=f>>2>>>0<536870911?d>>>0>>0?k:d:1073741823;e=0;i:{if(!f){break i}if(f>>>0>=1073741824){break a}e=ko(f<<2)}d=e+(g<<2)|0;i[d>>2]=n;f=e+(f<<2)|0;d=d+4|0;if((l|0)>=1){kp(e,m,l)}i[a+48>>2]=f;i[a+44>>2]=d;i[a+40>>2]=e;if(!m){break h}ep(m)}e=h+1|0;d=((n>>>0)%3|0?-1:2)+n|0;if((d|0)==-1){break d}d=i[i[i[a+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break d}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)==-1|(d|0)==(n|0)){break d}while(1){f=d+1|0;f=(f>>>0)%3|0?f:d+ -2|0;if(i[i[a>>2]+(f>>>3&536870908)>>2]>>>(f&31)&1){h=(d|0)<0?-1:i[(i[b+96>>2]+o((d>>>0)/3|0,12)|0)+((d>>>0)%3<<2)>>2];h=j[c+84|0]?h:i[i[c+68>>2]+(h<<2)>>2];f=i[a+56>>2];g=i[a+60>>2];j:{if(f>>>0>>0){i[f>>2]=h;i[a+56>>2]=f+4;break j}l=i[t>>2];p=f-l|0;f=p>>2;m=f+1|0;if(m>>>0>=1073741824){break c}r=f<<2;k=g-l|0;g=k>>1;g=k>>2>>>0<536870911?g>>>0>>0?m:g:1073741823;f=0;k:{if(!g){break k}if(g>>>0>=1073741824){break a}f=ko(g<<2)}k=r+f|0;i[k>>2]=h;g=f+(g<<2)|0;h=k+4|0;if((p|0)>=1){kp(f,l,p)}i[a+60>>2]=g;i[a+56>>2]=h;i[a+52>>2]=f;if(!l){break j}ep(l)}f=e+1|0;h=i[a+44>>2];g=i[a+48>>2];l:{if((h|0)!=(g|0)){i[h>>2]=d;i[a+44>>2]=h+4;break l}l=i[s>>2];p=h-l|0;h=p>>2;m=h+1|0;if(m>>>0>=1073741824){break b}r=h<<2;k=g-l|0;g=k>>1;k=k>>2>>>0<536870911?g>>>0>>0?m:g:1073741823;h=0;m:{if(!k){break m}if(k>>>0>=1073741824){break a}h=ko(k<<2)}g=r+h|0;i[g>>2]=d;k=h+(k<<2)|0;g=g+4|0;if((p|0)>=1){kp(h,l,p)}i[a+48>>2]=k;i[a+44>>2]=g;i[a+40>>2]=h;if(!l){break l}ep(l)}h=e;e=f}i[i[a+28>>2]+(d<<2)>>2]=h;d=((d>>>0)%3|0?-1:2)+d|0;if((d|0)==-1){break d}d=i[i[i[a+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break d}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)==-1){break d}if((d|0)!=(n|0)){continue}break}}q=q+1|0;d=i[a+64>>2];if(q>>>0>2]-i[d+24>>2]>>2>>>0){continue}break}}return}Ko();x()}Ko();x()}Ba(16720);x()}function zi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;j=H-32|0;H=j;c=i[a+16>>2];i[a+20>>2]=c;a:{if((c|0)!=i[a+24>>2]){i[c>>2]=b;b=c+4|0;i[a+20>>2]=b;e=c;break a}e=ko(4);i[e>>2]=b;b=e+4|0;i[a+24>>2]=b;i[a+20>>2]=b;i[a+16>>2]=e;if(!c){break a}ep(c);b=i[a+20>>2];e=i[a+16>>2]}c=i[a+8>>2];r=i[c+100>>2]-i[c+96>>2]|0;c=(r|0)/12|0;if((b|0)!=(e|0)){u=a+16|0;v=(c|0)>1?c:1;w=a+120|0;m=a+200|0;y=a+72|0;while(1){b:{c:{c=b+ -4|0;b=i[c>>2];if((b|0)==-1){break c}e=i[a+28>>2];d=(b>>>0)/3|0;if(i[e+(d>>>3&268435452)>>2]>>>(d&31)&1){break c}h=0;if((r|0)<=0){break b}d:{e:{f:{while(1){g:{i[a+164>>2]=i[a+164>>2]+1;k=(b>>>0)/3|0;n=(b|0)==-1;l=n?-1:k;c=(l>>>3&536870908)+e|0;i[c>>2]=i[c>>2]|1<<(l&31);c=i[a+76>>2];g=i[a+80>>2];h:{if((c|0)!=(g|0)){i[c>>2]=b;i[a+76>>2]=c+4;break h}e=i[y>>2];f=c-e|0;p=f>>2;d=p+1|0;if(d>>>0>=1073741824){break g}g=g-e|0;q=g>>1;d=g>>2>>>0<536870911?q>>>0>>0?d:q:1073741823;c=0;i:{if(!d){break i}if(d>>>0>=1073741824){break f}c=ko(d<<2)}g=c+(p<<2)|0;i[g>>2]=b;d=c+(d<<2)|0;g=g+4|0;if((f|0)>=1){kp(c,e,f)}i[a+80>>2]=d;i[a+76>>2]=g;i[a+72>>2]=c;if(!e){break h}ep(e)}i[a+320>>2]=b;c=-1;c=(b|0)!=-1?i[i[i[a+12>>2]>>2]+(b<<2)>>2]:c;p=c<<2;g=i[p+i[a+152>>2]>>2];j:{k:{e=i[a+84>>2]+(c>>>3&536870908)|0;d=i[e>>2];c=1<<(c&31);if(d&c){break k}i[e>>2]=c|d;if((g|0)!=-1){break k}Di(m,0);c=-1;if((b|0)==-1){break j}e=b+1|0;b=(e>>>0)%3|0?e:b+ -2|0;if((b|0)==-1){break j}c=i[i[i[a+12>>2]+12>>2]+(b<<2)>>2];break j}l:{m:{n:{if(n){break n}e=-1;c=-1;d=b+1|0;f=(d>>>0)%3|0?d:b+ -2|0;if((f|0)!=-1){c=i[i[i[a+12>>2]+12>>2]+(f<<2)>>2]}d=(b-o(k,3)|0?-1:2)+b|0;if((d|0)!=-1){e=i[i[i[a+12>>2]+12>>2]+(d<<2)>>2]}k=(e|0)==-1;n=k?-1:(e>>>0)/3|0;q=(c>>>0)/3|0;o:{if((f|0)==-1){break o}s=i[i[a+12>>2]+12>>2];f=i[s+(f<<2)>>2];if((f|0)==-1){break o}t=i[a+28>>2];f=(f>>>0)/3|0;if(!(i[t+(f>>>3&268435452)>>2]>>>(f&31)&1)){break m}}b=(c|0)==-1;if(!b){pi(a,i[a+164>>2],1,b?-1:q)}p:{if((d|0)==-1){break p}b=i[i[i[a+12>>2]+12>>2]+(d<<2)>>2];if((b|0)==-1){break p}b=(b>>>0)/3|0;if(!(i[i[a+28>>2]+(b>>>3&268435452)>>2]>>>(b&31)&1)){break l}}if(k){break n}pi(a,i[a+164>>2],0,n)}Di(m,7);i[a+20>>2]=i[a+20>>2]+ -4;break b}q:{r:{if((d|0)==-1){break r}d=i[(d<<2)+s>>2];if((d|0)==-1){break r}d=(d>>>0)/3|0;if(!(i[(d>>>3&268435452)+t>>2]>>>(d&31)&1)){break q}}if(!k){pi(a,i[a+164>>2],0,n)}Di(m,3);break j}Di(m,1);i[a+168>>2]=i[a+168>>2]+1;s:{if((g|0)==-1){break s}d=i[p+i[a+152>>2]>>2];if(i[i[a+140>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1){break s}ii(a,b,0)}b=i[a+164>>2];i[j+4>>2]=l;i[j+16>>2]=j+4;qi(j+24|0,w,j+4|0,j+16|0);i[i[j+24>>2]+12>>2]=b;b=i[a+20>>2];i[b+ -4>>2]=e;h=i[a+24>>2];if((h|0)!=(b|0)){i[b>>2]=c;i[a+20>>2]=b+4;break b}e=i[u>>2];f=b-e|0;l=f>>2;d=l+1|0;if(d>>>0>=1073741824){break e}h=h-e|0;g=h>>1;d=h>>2>>>0<536870911?g>>>0>>0?d:g:1073741823;b=0;t:{if(!d){break t}if(d>>>0>=1073741824){break d}b=ko(d<<2)}h=b+(l<<2)|0;i[h>>2]=c;c=b+(d<<2)|0;d=h+4|0;if((f|0)>=1){kp(b,e,f)}i[a+24>>2]=c;i[a+20>>2]=d;i[a+16>>2]=b;if(!e){break b}ep(e);break b}Di(m,5);c=e}h=h+1|0;if((v|0)==(h|0)){break b}e=i[a+28>>2];b=c;continue}break}Ko();x()}Ba(11708);x()}Ko();x()}Ba(11708);x()}i[a+20>>2]=c}b=i[a+20>>2];if((b|0)!=i[a+16>>2]){continue}break}}H=j+32|0;return 1}function ng(a,b,c,d,e,f){var h=0,k=0,m=0,n=0;n=H-16|0;H=n;a:{b:{if((d|0)<=0){d=1;i[n+12>>2]=1;break b}k=r(d)^31;d=k+1|0;i[n+12>>2]=d;if(k>>>0>17){break a}}c:{if(!e){break c}h=ko(48);i[n>>2]=h;i[n+4>>2]=33;i[n+8>>2]=-2147483600;g[h+33|0]=0;g[h+32|0]=j[10857];k=j[10853]|j[10854]<<8|(j[10855]<<16|j[10856]<<24);m=j[10849]|j[10850]<<8|(j[10851]<<16|j[10852]<<24);g[h+24|0]=m;g[h+25|0]=m>>>8;g[h+26|0]=m>>>16;g[h+27|0]=m>>>24;g[h+28|0]=k;g[h+29|0]=k>>>8;g[h+30|0]=k>>>16;g[h+31|0]=k>>>24;k=j[10845]|j[10846]<<8|(j[10847]<<16|j[10848]<<24);m=j[10841]|j[10842]<<8|(j[10843]<<16|j[10844]<<24);g[h+16|0]=m;g[h+17|0]=m>>>8;g[h+18|0]=m>>>16;g[h+19|0]=m>>>24;g[h+20|0]=k;g[h+21|0]=k>>>8;g[h+22|0]=k>>>16;g[h+23|0]=k>>>24;k=j[10837]|j[10838]<<8|(j[10839]<<16|j[10840]<<24);m=j[10833]|j[10834]<<8|(j[10835]<<16|j[10836]<<24);g[h+8|0]=m;g[h+9|0]=m>>>8;g[h+10|0]=m>>>16;g[h+11|0]=m>>>24;g[h+12|0]=k;g[h+13|0]=k>>>8;g[h+14|0]=k>>>16;g[h+15|0]=k>>>24;k=j[10829]|j[10830]<<8|(j[10831]<<16|j[10832]<<24);m=j[10825]|j[10826]<<8|(j[10827]<<16|j[10828]<<24);g[h|0]=m;g[h+1|0]=m>>>8;g[h+2|0]=m>>>16;g[h+3|0]=m>>>24;g[h+4|0]=k;g[h+5|0]=k>>>8;g[h+6|0]=k>>>16;g[h+7|0]=k>>>24;h=Tb(e,n);if(g[n+11|0]<=-1){ep(i[n>>2])}if(!h){break c}h=ko(48);i[n>>2]=h;i[n+4>>2]=33;i[n+8>>2]=-2147483600;g[h+33|0]=0;g[h+32|0]=j[10857];k=j[10853]|j[10854]<<8|(j[10855]<<16|j[10856]<<24);m=j[10849]|j[10850]<<8|(j[10851]<<16|j[10852]<<24);g[h+24|0]=m;g[h+25|0]=m>>>8;g[h+26|0]=m>>>16;g[h+27|0]=m>>>24;g[h+28|0]=k;g[h+29|0]=k>>>8;g[h+30|0]=k>>>16;g[h+31|0]=k>>>24;k=j[10845]|j[10846]<<8|(j[10847]<<16|j[10848]<<24);m=j[10841]|j[10842]<<8|(j[10843]<<16|j[10844]<<24);g[h+16|0]=m;g[h+17|0]=m>>>8;g[h+18|0]=m>>>16;g[h+19|0]=m>>>24;g[h+20|0]=k;g[h+21|0]=k>>>8;g[h+22|0]=k>>>16;g[h+23|0]=k>>>24;k=j[10837]|j[10838]<<8|(j[10839]<<16|j[10840]<<24);m=j[10833]|j[10834]<<8|(j[10835]<<16|j[10836]<<24);g[h+8|0]=m;g[h+9|0]=m>>>8;g[h+10|0]=m>>>16;g[h+11|0]=m>>>24;g[h+12|0]=k;g[h+13|0]=k>>>8;g[h+14|0]=k>>>16;g[h+15|0]=k>>>24;k=j[10829]|j[10830]<<8|(j[10831]<<16|j[10832]<<24);m=j[10825]|j[10826]<<8|(j[10827]<<16|j[10828]<<24);g[h|0]=m;g[h+1|0]=m>>>8;g[h+2|0]=m>>>16;g[h+3|0]=m>>>24;g[h+4|0]=k;g[h+5|0]=k>>>8;g[h+6|0]=k>>>16;g[h+7|0]=k>>>24;k=ak(e,n);if(g[n+11|0]<=-1){ep(i[n>>2])}h=n;e=d+ -2|0;d:{if((k|0)<=3){break d}e=d+ -1|0;if((k|0)<=5){break d}e=d+2|0;if((k|0)>=10){break d}if((k|0)<8){break c}e=d+1|0}d=e;i[h+12>>2]=d}d=(d|0)>1?d:1;d=(d|0)<18?d:18;i[n+12>>2]=d;g[n|0]=d;e=i[f+20>>2];if((e|0)<0?1:(e|0)<=0?l[f+16>>2]<=0:0){ea(f,i[f+4>>2],n,n+1|0)}h=0;e:{switch(d|0){case 0:case 1:h=qg(a,b,c,f);break a;case 2:h=rg(a,b,c,f);break a;case 3:h=sg(a,b,c,f);break a;case 4:h=tg(a,b,c,f);break a;case 5:h=ug(a,b,c,f);break a;case 6:h=vg(a,b,c,f);break a;case 7:h=wg(a,b,c,f);break a;case 8:h=xg(a,b,c,f);break a;case 9:h=yg(a,b,c,f);break a;case 10:h=zg(a,b,c,f);break a;case 11:h=Ag(a,b,c,f);break a;case 12:h=Bg(a,b,c,f);break a;case 13:h=Cg(a,b,c,f);break a;case 14:h=Dg(a,b,c,f);break a;case 15:h=Eg(a,b,c,f);break a;case 16:h=Fg(a,b,c,f);break a;case 17:h=Gg(a,b,c,f);break a;case 18:break e;default:break a}}h=Hg(a,b,c,f)}H=n+16|0;return h}function be(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;i[a+8>>2]=e;g=a+32|0;l=i[g>>2];f=i[a+36>>2]-l>>2;a:{if(f>>>0>>0){Cd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=l+(e<<2)}b:{if(!d){break b}h=1;g=i[b>>2];c:{if((d|0)<=1){f=g;break c}f=g;while(1){l=i[(h<<2)+b>>2];j=(l|0)<(f|0);f=j?l:f;g=j?g:(l|0)>(g|0)?l:g;h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+16>>2]=g;i[a+12>>2]=f;d=(g>>31)-((f>>31)+(g>>>0>>0)|0)|0;f=g-f|0;if(!d&f>>>0>2147483646|d>>>0>0){break b}d=f+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}d=(e&1073741823)!=(e|0)?-1:e<<2;l=lp(ko(d),0,d);d=i[a+56>>2];s=i[d>>2];d=i[d+4>>2]-s|0;if((d|0)>=5){t=i[a+48>>2];v=i[a+52>>2];u=d>>2;j=u;while(1){q=j;d:{e:{j=j+ -1|0;if(u>>>0>j>>>0){k=o(e,j);d=i[(j<<2)+s>>2];if((d|0)==-1){break e}d=i[i[t+12>>2]+(d<<2)>>2];if((d|0)==-1){break e}h=-1;g=i[v>>2];f=i[t>>2];p=i[g+(i[f+(d<<2)>>2]<<2)>>2];m=d+1|0;m=(m>>>0)%3|0?m:d+ -2|0;if((m|0)!=-1){m=i[f+(m<<2)>>2]}else{m=-1}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)!=-1){h=i[f+(d<<2)>>2]}if((p|0)>=(j|0)){break e}d=i[(m<<2)+g>>2];if((d|0)>=(j|0)){break e}f=i[g+(h<<2)>>2];if((f|0)>=(j|0)){break e}if((e|0)>=1){f=o(e,f);d=o(d,e);h=o(e,p);g=0;while(1){i[(g<<2)+l>>2]=(i[(f+g<<2)+b>>2]+i[(d+g<<2)+b>>2]|0)-i[(g+h<<2)+b>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}f=i[a+8>>2];if((f|0)<1){break d}d=k<<2;m=d+c|0;r=b+d|0;d=l;h=0;while(1){g=0;f:{if((f|0)<=0){f=i[a+32>>2];break f}while(1){k=g<<2;p=i[k+d>>2];n=i[a+16>>2];g:{if((p|0)>(n|0)){f=i[a+32>>2];i[k+f>>2]=n;break g}f=i[a+32>>2];k=k+f|0;n=i[a+12>>2];if((p|0)<(n|0)){i[k>>2]=n;break g}i[k>>2]=p}g=g+1|0;if((g|0)>2]){continue}break}}g=h<<2;d=g+m|0;g=i[g+r>>2]-i[f+g>>2]|0;i[d>>2]=g;h:{if((g|0)>2]){g=g+i[a+20>>2]|0}else{if((g|0)<=i[a+24>>2]){break h}g=g-i[a+20>>2]|0}i[d>>2]=g}d=f;h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}break d}Lo();x()}f=i[a+8>>2];if((f|0)<1){break d}d=k<<2;m=d+c|0;r=b+d|0;d=(o(q+ -2|0,e)<<2)+b|0;h=0;while(1){g=0;i:{if((f|0)<=0){f=i[a+32>>2];break i}while(1){k=g<<2;p=i[k+d>>2];n=i[a+16>>2];j:{if((p|0)>(n|0)){f=i[a+32>>2];i[k+f>>2]=n;break j}f=i[a+32>>2];k=k+f|0;n=i[a+12>>2];if((p|0)<(n|0)){i[k>>2]=n;break j}i[k>>2]=p}g=g+1|0;if((g|0)>2]){continue}break}}g=h<<2;d=g+m|0;g=i[g+r>>2]-i[f+g>>2]|0;i[d>>2]=g;k:{if((g|0)>2]){g=g+i[a+20>>2]|0}else{if((g|0)<=i[a+24>>2]){break k}g=g-i[a+20>>2]|0}i[d>>2]=g}d=f;h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}}if((q|0)>2){continue}break}}if((e|0)>=1){lp(l,0,e<<2)}f=i[a+8>>2];if((f|0)>=1){d=l;h=0;while(1){g=0;l:{if((f|0)<=0){f=i[a+32>>2];break l}while(1){e=g<<2;j=i[e+d>>2];q=i[a+16>>2];m:{if((j|0)>(q|0)){f=i[a+32>>2];i[e+f>>2]=q;break m}f=i[a+32>>2];e=e+f|0;q=i[a+12>>2];if((j|0)<(q|0)){i[e>>2]=q;break m}i[e>>2]=j}g=g+1|0;if((g|0)>2]){continue}break}}e=h<<2;d=e+c|0;e=i[b+e>>2]-i[e+f>>2]|0;i[d>>2]=e;n:{if((e|0)>2]){e=e+i[a+20>>2]|0}else{if((e|0)<=i[a+24>>2]){break n}e=e-i[a+20>>2]|0}i[d>>2]=e}d=f;h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}}ep(l);return 1}function Bd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;i[a+8>>2]=e;g=a+32|0;l=i[g>>2];f=i[a+36>>2]-l>>2;a:{if(f>>>0>>0){Cd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=l+(e<<2)}b:{if(!d){break b}l=1;g=i[b>>2];c:{if((d|0)<=1){f=g;break c}f=g;while(1){h=i[(l<<2)+b>>2];n=(h|0)<(f|0);f=n?h:f;g=n?g:(h|0)>(g|0)?h:g;l=l+1|0;if((l|0)!=(d|0)){continue}break}}i[a+16>>2]=g;i[a+12>>2]=f;d=(g>>31)-((f>>31)+(g>>>0>>0)|0)|0;f=g-f|0;if(!d&f>>>0>2147483646|d>>>0>0){break b}d=f+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}d=(e&1073741823)!=(e|0)?-1:e<<2;l=lp(ko(d),0,d);d=i[a+56>>2];t=i[d>>2];d=i[d+4>>2]-t|0;if((d|0)>=5){q=i[a+48>>2];v=i[a+52>>2];u=d>>2;h=u;while(1){n=h;d:{e:{h=h+ -1|0;if(u>>>0>h>>>0){k=o(e,h);d=i[(h<<2)+t>>2];if((d|0)==-1|i[i[q>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1){break e}d=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break e}g=i[v>>2];f=i[q+28>>2];j=i[g+(i[f+(d<<2)>>2]<<2)>>2];if((j|0)>=(h|0)){break e}m=d+1|0;m=i[g+(i[f+(((m>>>0)%3|0?m:d+ -2|0)<<2)>>2]<<2)>>2];if((m|0)>=(h|0)){break e}d=i[g+(i[f+(d+((d>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((d|0)>=(h|0)){break e}if((e|0)>=1){d=o(d,e);f=o(e,m);j=o(e,j);g=0;while(1){i[(g<<2)+l>>2]=(i[(d+g<<2)+b>>2]+i[(f+g<<2)+b>>2]|0)-i[(g+j<<2)+b>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}f=i[a+8>>2];if((f|0)<1){break d}d=k<<2;r=d+c|0;s=b+d|0;d=l;k=0;while(1){g=0;f:{if((f|0)<=0){f=i[a+32>>2];break f}while(1){j=g<<2;m=i[j+d>>2];p=i[a+16>>2];g:{if((m|0)>(p|0)){f=i[a+32>>2];i[j+f>>2]=p;break g}f=i[a+32>>2];j=j+f|0;p=i[a+12>>2];if((m|0)<(p|0)){i[j>>2]=p;break g}i[j>>2]=m}g=g+1|0;if((g|0)>2]){continue}break}}g=k<<2;d=g+r|0;g=i[g+s>>2]-i[f+g>>2]|0;i[d>>2]=g;h:{if((g|0)>2]){g=g+i[a+20>>2]|0}else{if((g|0)<=i[a+24>>2]){break h}g=g-i[a+20>>2]|0}i[d>>2]=g}d=f;k=k+1|0;f=i[a+8>>2];if((k|0)<(f|0)){continue}break}break d}Lo();x()}f=i[a+8>>2];if((f|0)<1){break d}d=k<<2;r=d+c|0;s=b+d|0;d=(o(n+ -2|0,e)<<2)+b|0;k=0;while(1){g=0;i:{if((f|0)<=0){f=i[a+32>>2];break i}while(1){j=g<<2;m=i[j+d>>2];p=i[a+16>>2];j:{if((m|0)>(p|0)){f=i[a+32>>2];i[j+f>>2]=p;break j}f=i[a+32>>2];j=j+f|0;p=i[a+12>>2];if((m|0)<(p|0)){i[j>>2]=p;break j}i[j>>2]=m}g=g+1|0;if((g|0)>2]){continue}break}}g=k<<2;d=g+r|0;g=i[g+s>>2]-i[f+g>>2]|0;i[d>>2]=g;k:{if((g|0)>2]){g=g+i[a+20>>2]|0}else{if((g|0)<=i[a+24>>2]){break k}g=g-i[a+20>>2]|0}i[d>>2]=g}d=f;k=k+1|0;f=i[a+8>>2];if((k|0)<(f|0)){continue}break}}if((n|0)>2){continue}break}}if((e|0)>=1){lp(l,0,e<<2)}f=i[a+8>>2];if((f|0)>=1){d=l;k=0;while(1){g=0;l:{if((f|0)<=0){f=i[a+32>>2];break l}while(1){e=g<<2;h=i[e+d>>2];n=i[a+16>>2];m:{if((h|0)>(n|0)){f=i[a+32>>2];i[e+f>>2]=n;break m}f=i[a+32>>2];e=e+f|0;n=i[a+12>>2];if((h|0)<(n|0)){i[e>>2]=n;break m}i[e>>2]=h}g=g+1|0;if((g|0)>2]){continue}break}}e=k<<2;d=e+c|0;e=i[b+e>>2]-i[e+f>>2]|0;i[d>>2]=e;n:{if((e|0)>2]){e=e+i[a+20>>2]|0}else{if((e|0)<=i[a+24>>2]){break n}e=e-i[a+20>>2]|0}i[d>>2]=e}d=f;k=k+1|0;f=i[a+8>>2];if((k|0)<(f|0)){continue}break}}ep(l);return 1}function ep(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;a:{if(!a){break a}d=a+ -8|0;b=i[a+ -4>>2];a=b&-8;f=d+a|0;b:{if(b&1){break b}if(!(b&3)){break a}b=i[d>>2];d=d-b|0;if(d>>>0>>0<=255){e=i[d+8>>2];b=b>>>3|0;c=i[d+12>>2];if((c|0)==(e|0)){j=19296,k=i[4824]&Bp(-2,b),i[j>>2]=k;break b}i[e+12>>2]=c;i[c+8>>2]=e;break b}h=i[d+24>>2];b=i[d+12>>2];c:{if((b|0)!=(d|0)){c=i[d+8>>2];i[c+12>>2]=b;i[b+8>>2]=c;break c}d:{e=d+20|0;c=i[e>>2];if(c){break d}e=d+16|0;c=i[e>>2];if(c){break d}b=0;break c}while(1){g=e;b=c;e=b+20|0;c=i[e>>2];if(c){continue}e=b+16|0;c=i[b+16>>2];if(c){continue}break}i[g>>2]=0}if(!h){break b}e=i[d+28>>2];c=(e<<2)+19600|0;e:{if(i[c>>2]==(d|0)){i[c>>2]=b;if(b){break e}j=19300,k=i[4825]&Bp(-2,e),i[j>>2]=k;break b}i[h+(i[h+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break b}}i[b+24>>2]=h;c=i[d+16>>2];if(c){i[b+16>>2]=c;i[c+24>>2]=b}c=i[d+20>>2];if(!c){break b}i[b+20>>2]=c;i[c+24>>2]=b;break b}b=i[f+4>>2];if((b&3)!=3){break b}i[4826]=a;i[f+4>>2]=b&-2;i[d+4>>2]=a|1;i[a+d>>2]=a;return}if(f>>>0<=d>>>0){break a}b=i[f+4>>2];if(!(b&1)){break a}f:{if(!(b&2)){if((f|0)==i[4830]){i[4830]=d;a=i[4827]+a|0;i[4827]=a;i[d+4>>2]=a|1;if(i[4829]!=(d|0)){break a}i[4826]=0;i[4829]=0;return}if((f|0)==i[4829]){i[4829]=d;a=i[4826]+a|0;i[4826]=a;i[d+4>>2]=a|1;i[a+d>>2]=a;return}a=(b&-8)+a|0;g:{if(b>>>0<=255){c=i[f+8>>2];b=b>>>3|0;e=i[f+12>>2];if((c|0)==(e|0)){j=19296,k=i[4824]&Bp(-2,b),i[j>>2]=k;break g}i[c+12>>2]=e;i[e+8>>2]=c;break g}h=i[f+24>>2];b=i[f+12>>2];h:{if((f|0)!=(b|0)){c=i[f+8>>2];i[c+12>>2]=b;i[b+8>>2]=c;break h}i:{e=f+20|0;c=i[e>>2];if(c){break i}e=f+16|0;c=i[e>>2];if(c){break i}b=0;break h}while(1){g=e;b=c;e=b+20|0;c=i[e>>2];if(c){continue}e=b+16|0;c=i[b+16>>2];if(c){continue}break}i[g>>2]=0}if(!h){break g}e=i[f+28>>2];c=(e<<2)+19600|0;j:{if((f|0)==i[c>>2]){i[c>>2]=b;if(b){break j}j=19300,k=i[4825]&Bp(-2,e),i[j>>2]=k;break g}i[h+((f|0)==i[h+16>>2]?16:20)>>2]=b;if(!b){break g}}i[b+24>>2]=h;c=i[f+16>>2];if(c){i[b+16>>2]=c;i[c+24>>2]=b}c=i[f+20>>2];if(!c){break g}i[b+20>>2]=c;i[c+24>>2]=b}i[d+4>>2]=a|1;i[a+d>>2]=a;if(i[4829]!=(d|0)){break f}i[4826]=a;return}i[f+4>>2]=b&-2;i[d+4>>2]=a|1;i[a+d>>2]=a}if(a>>>0<=255){a=a>>>3|0;b=(a<<3)+19336|0;c=i[4824];a=1<>2]}i[b+8>>2]=d;i[a+12>>2]=d;i[d+12>>2]=b;i[d+8>>2]=a;return}e=31;i[d+16>>2]=0;i[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}i[d+28>>2]=e;g=(e<<2)+19600|0;l:{m:{c=i[4825];b=1<>2]=d;i[d+24>>2]=g;break n}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=i[g>>2];while(1){c=b;if((i[b+4>>2]&-8)==(a|0)){break m}b=e>>>29|0;e=e<<1;g=(c+(b&4)|0)+16|0;b=i[g>>2];if(b){continue}break}i[g>>2]=d;i[d+24>>2]=c}i[d+12>>2]=d;i[d+8>>2]=d;break l}a=i[c+8>>2];i[a+12>>2]=d;i[c+8>>2]=d;i[d+24>>2]=0;i[d+12>>2]=c;i[d+8>>2]=a}a=i[4832]+ -1|0;i[4832]=a;if(a){break a}d=19752;while(1){a=i[d>>2];d=a+8|0;if(a){continue}break}i[4832]=-1}}function kd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0;e=H-32|0;H=e;a:{b:{if(!i[i[a+8>>2]+80>>2]){d=1;break b}g[e+31|0]=254;k=i[a+36>>2];if(k){if(!(K[i[i[a>>2]+40>>2]](a,k)|0)){break b}d=i[a+36>>2];q=e,s=K[i[i[d>>2]+8>>2]](d)|0,g[q+31|0]=s}d=i[c+20>>2];if((d|0)<0?1:(d|0)<=0?l[c+16>>2]<=0:0){ea(c,i[c+4>>2],e+31|0,e+32|0)}d=i[a+36>>2];c:{if(!d){break c}q=e,s=K[i[i[d>>2]+36>>2]](d)|0,g[q+16|0]=s;d=i[c+20>>2];if((d|0)>0?1:(d|0)>=0?l[c+16>>2]>0:0){break c}ea(c,i[c+4>>2],e+16|0,e+17|0)}d=i[a+32>>2];h=i[d+48>>2];n=i[i[d>>2]>>2];k=i[d+80>>2];m=g[d+24|0];d=0;i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;k=o(k,m);if(k){if(k>>>0>=1073741824){break a}f=k<<2;d=ko(f);i[e+16>>2]=d;p=d+f|0;i[e+24>>2]=p;lp(d,0,f);i[e+20>>2]=p}f=h+n|0;h=i[a+36>>2];d:{e:{if(!h){break e}K[i[i[h>>2]+44>>2]](h,f,d,k,m,i[b>>2])|0;d=i[a+36>>2];if(!d){d=i[e+16>>2];break e}if(K[i[i[d>>2]+32>>2]](d)|0){break d}d=i[e+16>>2];f=i[a+36>>2]?d:f}Oj(f,k,d)}f:{g:{h:{i:{j:{d=i[a+4>>2];if(!d){break j}n=i[d+48>>2];d=ko(48);i[e>>2]=d;i[e+4>>2]=34;i[e+8>>2]=-2147483600;g[d+34|0]=0;f=j[2336]|j[2337]<<8;g[d+32|0]=f;g[d+33|0]=f>>>8;f=j[2332]|j[2333]<<8|(j[2334]<<16|j[2335]<<24);h=j[2328]|j[2329]<<8|(j[2330]<<16|j[2331]<<24);g[d+24|0]=h;g[d+25|0]=h>>>8;g[d+26|0]=h>>>16;g[d+27|0]=h>>>24;g[d+28|0]=f;g[d+29|0]=f>>>8;g[d+30|0]=f>>>16;g[d+31|0]=f>>>24;f=j[2324]|j[2325]<<8|(j[2326]<<16|j[2327]<<24);h=j[2320]|j[2321]<<8|(j[2322]<<16|j[2323]<<24);g[d+16|0]=h;g[d+17|0]=h>>>8;g[d+18|0]=h>>>16;g[d+19|0]=h>>>24;g[d+20|0]=f;g[d+21|0]=f>>>8;g[d+22|0]=f>>>16;g[d+23|0]=f>>>24;f=j[2316]|j[2317]<<8|(j[2318]<<16|j[2319]<<24);h=j[2312]|j[2313]<<8|(j[2314]<<16|j[2315]<<24);g[d+8|0]=h;g[d+9|0]=h>>>8;g[d+10|0]=h>>>16;g[d+11|0]=h>>>24;g[d+12|0]=f;g[d+13|0]=f>>>8;g[d+14|0]=f>>>16;g[d+15|0]=f>>>24;f=j[2308]|j[2309]<<8|(j[2310]<<16|j[2311]<<24);h=j[2304]|j[2305]<<8|(j[2306]<<16|j[2307]<<24);g[d|0]=h;g[d+1|0]=h>>>8;g[d+2|0]=h>>>16;g[d+3|0]=h>>>24;g[d+4|0]=f;g[d+5|0]=f>>>8;g[d+6|0]=f>>>16;g[d+7|0]=f>>>24;d=ek(n,e,1);if(g[e+11|0]<=-1){ep(i[e>>2])}if(d){break j}if(!k){break i}d=0;m=i[e+16>>2];b=0;while(1){b=i[m+(d<<2)>>2]|b;d=d+1|0;if((k|0)!=(d|0)){continue}break}if(!b){break i}b=4-(r(b)>>>3|0)|0;break h}g[e|0]=1;d=i[c+20>>2];if((d|0)<0?1:(d|0)<=0?l[c+16>>2]<=0:0){ea(c,i[c+4>>2],e,e+1|0)}d=Zj(e);k=i[a+4>>2];if(k){kg(d,10-$b(i[k+48>>2])|0)}b=lg(i[e+16>>2],o(m,i[b+4>>2]-i[b>>2]>>2),m,d,c);ld(d,i[d+4>>2]);d=0;if(b){break g}break f}b=1}g[e|0]=0;m=i[c+20>>2];d=m;f=i[c+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ea(c,i[c+4>>2],e,e+1|0);f=i[c+16>>2];d=i[c+20>>2]}g[e|0]=b;if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ea(c,i[c+4>>2],e,e+1|0)}if((Tj(5)|0)!=(b|0)){if(!k){break g}d=0;while(1){m=i[c+20>>2];if((m|0)<0?1:(m|0)<=0?l[c+16>>2]<=0:0){m=i[e+16>>2]+(d<<2)|0;ea(c,i[c+4>>2],m,b+m|0)}d=d+1|0;if((k|0)!=(d|0)){continue}break}break g}b=i[c+20>>2];if((b|0)>0?1:(b|0)>=0?l[c+16>>2]>0:0){break g}b=i[e+16>>2];ea(c,i[c+4>>2],b,b+(k<<2)|0)}d=1;a=i[a+36>>2];if(!a){break f}K[i[i[a>>2]+40>>2]](a,c)|0}a=i[e+16>>2];if(!a){break b}i[e+20>>2]=a;ep(a)}H=e+32|0;return d|0}Ko();x()}function em(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;i[a+56>>2]=i[a+52>>2];i[a+44>>2]=i[a+40>>2];a:{b:{c:{d=i[a+64>>2];if(i[d+28>>2]!=i[d+24>>2]){n=a+40|0;o=a+52|0;while(1){e=c;k=i[i[d+24>>2]+(m<<2)>>2];d:{if((k|0)==-1){break d}c=i[a+56>>2];b=i[a+60>>2];e:{if((c|0)!=(b|0)){i[c>>2]=e;i[a+56>>2]=c+4;break e}h=i[o>>2];j=c-h|0;f=j>>2;g=f+1|0;if(g>>>0>=1073741824){break c}d=b-h|0;b=d>>1;d=d>>2>>>0<536870911?b>>>0>>0?g:b:1073741823;c=0;f:{if(!d){break f}if(d>>>0>=1073741824){break a}c=ko(d<<2)}b=c+(f<<2)|0;i[b>>2]=e;d=c+(d<<2)|0;b=b+4|0;if((j|0)>=1){kp(c,h,j)}i[a+60>>2]=d;i[a+56>>2]=b;i[a+52>>2]=c;if(!h){break e}ep(h)}g:{if(!(i[i[a+12>>2]+(m>>>3&536870908)>>2]>>>(m&31)&1)){break g}c=k+1|0;c=(c>>>0)%3|0?c:k+ -2|0;if((c|0)==-1|i[i[a>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break g}b=i[i[i[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)==-1){break g}while(1){c=d+1|0;k=d;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|i[i[a>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break g}b=i[i[i[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)!=-1){continue}break}}i[i[a+28>>2]+(k<<2)>>2]=e;c=i[a+44>>2];b=i[a+48>>2];h:{if((c|0)!=(b|0)){i[c>>2]=k;i[a+44>>2]=c+4;break h}h=i[n>>2];j=c-h|0;f=j>>2;g=f+1|0;if(g>>>0>=1073741824){break b}d=b-h|0;b=d>>1;d=d>>2>>>0<536870911?b>>>0>>0?g:b:1073741823;c=0;i:{if(!d){break i}if(d>>>0>=1073741824){break a}c=ko(d<<2)}b=c+(f<<2)|0;i[b>>2]=k;d=c+(d<<2)|0;b=b+4|0;if((j|0)>=1){kp(c,h,j)}i[a+48>>2]=d;i[a+44>>2]=b;i[a+40>>2]=c;if(!h){break h}ep(h)}c=e+1|0;b=((k>>>0)%3|0?-1:2)+k|0;if((b|0)==-1){break d}b=i[i[i[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1|(d|0)==(k|0)){break d}while(1){b=d+1|0;b=(b>>>0)%3|0?b:d+ -2|0;if(i[i[a>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){e=i[a+56>>2];b=i[a+60>>2];j:{if((e|0)!=(b|0)){i[e>>2]=c;i[a+56>>2]=e+4;break j}l=i[o>>2];h=e-l|0;g=h>>2;j=g+1|0;if(j>>>0>=1073741824){break c}f=b-l|0;b=f>>1;f=f>>2>>>0<536870911?b>>>0>>0?j:b:1073741823;e=0;k:{if(!f){break k}if(f>>>0>=1073741824){break a}e=ko(f<<2)}b=e+(g<<2)|0;i[b>>2]=c;f=e+(f<<2)|0;b=b+4|0;if((h|0)>=1){kp(e,l,h)}i[a+60>>2]=f;i[a+56>>2]=b;i[a+52>>2]=e;if(!l){break j}ep(l)}b=c+1|0;e=i[a+44>>2];f=i[a+48>>2];l:{if((e|0)!=(f|0)){i[e>>2]=d;i[a+44>>2]=e+4;break l}j=i[n>>2];l=e-j|0;e=l>>2;h=e+1|0;if(h>>>0>=1073741824){break b}p=e<<2;g=f-j|0;f=g>>1;g=g>>2>>>0<536870911?f>>>0>>0?h:f:1073741823;e=0;m:{if(!g){break m}if(g>>>0>=1073741824){break a}e=ko(g<<2)}f=p+e|0;i[f>>2]=d;g=e+(g<<2)|0;f=f+4|0;if((l|0)>=1){kp(e,j,l)}i[a+48>>2]=g;i[a+44>>2]=f;i[a+40>>2]=e;if(!j){break l}ep(j)}e=c;c=b}i[i[a+28>>2]+(d<<2)>>2]=e;b=((d>>>0)%3|0?-1:2)+d|0;if((b|0)==-1){break d}b=i[i[i[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1){break d}if((d|0)!=(k|0)){continue}break}}m=m+1|0;d=i[a+64>>2];if(m>>>0>2]-i[d+24>>2]>>2>>>0){continue}break}}return}Ko();x()}Ko();x()}Ba(16720);x()}function Uf(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;k=H-16|0;H=k;h=ko(16);i[k>>2]=h;i[k+4>>2]=15;i[k+8>>2]=-2147483632;g[h+15|0]=0;e=j[10535]|j[10536]<<8|(j[10537]<<16|j[10538]<<24);f=j[10531]|j[10532]<<8|(j[10533]<<16|j[10534]<<24);g[h+7|0]=f;g[h+8|0]=f>>>8;g[h+9|0]=f>>>16;g[h+10|0]=f>>>24;g[h+11|0]=e;g[h+12|0]=e>>>8;g[h+13|0]=e>>>16;g[h+14|0]=e>>>24;e=j[10528]|j[10529]<<8|(j[10530]<<16|j[10531]<<24);f=j[10524]|j[10525]<<8|(j[10526]<<16|j[10527]<<24);g[h|0]=f;g[h+1|0]=f>>>8;g[h+2|0]=f>>>16;g[h+3|0]=f>>>24;g[h+4|0]=e;g[h+5|0]=e>>>8;g[h+6|0]=e>>>16;g[h+7|0]=e>>>24;h=b+4|0;o=bk(h,k,-1);if(g[k+11|0]<=-1){ep(i[k>>2])}p=14012;a:{b:{c:{switch(o+1|0){case 0:if(($b(h)|0)==10){break b}break;case 1:break b;default:break c}}d:{f=i[c+12>>2];l=i[c+8>>2];if((f-l|0)<1){break d}m=b+20|0;while(1){e:{e=i[i[(n<<2)+l>>2]+28>>2];if(e+ -1>>>0>=6){if((e|0)!=9){break e}e=ko(32);i[k>>2]=e;i[k+4>>2]=17;i[k+8>>2]=-2147483616;g[e+17|0]=0;g[e+16|0]=j[10556];f=j[10552]|j[10553]<<8|(j[10554]<<16|j[10555]<<24);l=j[10548]|j[10549]<<8|(j[10550]<<16|j[10551]<<24);g[e+8|0]=l;g[e+9|0]=l>>>8;g[e+10|0]=l>>>16;g[e+11|0]=l>>>24;g[e+12|0]=f;g[e+13|0]=f>>>8;g[e+14|0]=f>>>16;g[e+15|0]=f>>>24;f=j[10544]|j[10545]<<8|(j[10546]<<16|j[10547]<<24);l=j[10540]|j[10541]<<8|(j[10542]<<16|j[10543]<<24);g[e|0]=l;g[e+1|0]=l>>>8;g[e+2|0]=l>>>16;g[e+3|0]=l>>>24;g[e+4|0]=f;g[e+5|0]=f>>>8;g[e+6|0]=f>>>16;g[e+7|0]=f>>>24;f=m;l=i[f>>2];e=h;f:{if(!l){break f}while(1){e=i[l+16>>2]<(n|0);f=e?f:l;l=i[(e<<2)+l>>2];if(l){continue}break}e=h;if((f|0)==(m|0)){break f}e=h;if((n|0)>2]){break f}e=f+20|0;e=Tb(e,k)?e:h}e=bk(e,k,-1);if(g[k+11|0]<=-1){ep(i[k>>2])}if((e|0)<1){break e}l=i[c+8>>2];f=i[c+12>>2]}n=n+1|0;if((n|0)>2){continue}break d}break}if((o|0)!=1){break b}b=ko(32);i[k>>2]=b;i[k+4>>2]=24;i[k+8>>2]=-2147483616;g[b+24|0]=0;c=j[10578]|j[10579]<<8|(j[10580]<<16|j[10581]<<24);d=j[10574]|j[10575]<<8|(j[10576]<<16|j[10577]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[10570]|j[10571]<<8|(j[10572]<<16|j[10573]<<24);d=j[10566]|j[10567]<<8|(j[10568]<<16|j[10569]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[10562]|j[10563]<<8|(j[10564]<<16|j[10565]<<24);d=j[10558]|j[10559]<<8|(j[10560]<<16|j[10561]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;uo(a+4|0,k);if(g[k+11|0]>-1){break a}ep(i[k>>2]);break a}p=13836}m=ko(56);e=m;i[e>>2]=0;i[e+4>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;f=yj(e);i[e>>2]=p;ca(f,c);zj(a,f,h,d);if(!i[a>>2]){if(g[a+15|0]<=-1){ep(i[a+4>>2])}c=i[m+52>>2];i[b+44>>2]=0;i[b+40>>2]=c;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0}K[i[i[m>>2]+4>>2]](f)}H=k+16|0}function Ch(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0;e=H-16|0;H=e;f=i[a+48>>2];b=ko(32);i[e>>2]=b;i[e+4>>2]=20;i[e+8>>2]=-2147483616;g[b+20|0]=0;c=j[11024]|j[11025]<<8|(j[11026]<<16|j[11027]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;c=j[11020]|j[11021]<<8|(j[11022]<<16|j[11023]<<24);d=j[11016]|j[11017]<<8|(j[11018]<<16|j[11019]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11012]|j[11013]<<8|(j[11014]<<16|j[11015]<<24);d=j[11008]|j[11009]<<8|(j[11010]<<16|j[11011]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;f=dk(f+24|0,e);if(g[e+11|0]<=-1){ep(i[e>>2])}h=i[a+48>>2];b=ko(32);i[e>>2]=b;i[e+4>>2]=22;i[e+8>>2]=-2147483616;g[b+22|0]=0;c=j[11047]|j[11048]<<8|(j[11049]<<16|j[11050]<<24);d=j[11043]|j[11044]<<8|(j[11045]<<16|j[11046]<<24);g[b+14|0]=d;g[b+15|0]=d>>>8;g[b+16|0]=d>>>16;g[b+17|0]=d>>>24;g[b+18|0]=c;g[b+19|0]=c>>>8;g[b+20|0]=c>>>16;g[b+21|0]=c>>>24;c=j[11041]|j[11042]<<8|(j[11043]<<16|j[11044]<<24);d=j[11037]|j[11038]<<8|(j[11039]<<16|j[11040]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11033]|j[11034]<<8|(j[11035]<<16|j[11036]<<24);d=j[11029]|j[11030]<<8|(j[11031]<<16|j[11032]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;h=dk(h+24|0,e);if(g[e+11|0]<=-1){ep(i[e>>2])}b=i[a+64>>2];i[a+64>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}b=i[a+56>>2];k=i[b+100>>2];m=i[a+48>>2];n=i[b+96>>2];b=ko(32);i[e>>2]=b;i[e+4>>2]=18;i[e+8>>2]=-2147483616;g[b+18|0]=0;c=j[11068]|j[11069]<<8;g[b+16|0]=c;g[b+17|0]=c>>>8;c=j[11064]|j[11065]<<8|(j[11066]<<16|j[11067]<<24);d=j[11060]|j[11061]<<8|(j[11062]<<16|j[11063]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11056]|j[11057]<<8|(j[11058]<<16|j[11059]<<24);d=j[11052]|j[11053]<<8|(j[11054]<<16|j[11055]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;b=(k-n|0)/12|0;c=bk(m,e,-1);if(g[e+11|0]<=-1){ep(i[e>>2])}a:{b:{c:{d:{e:{f:{g:{switch(c+1|0){case 3:break f;case 0:break g;case 1:break e;default:break c}}if(!f){break f}if(b>>>0<1e3|($b(i[a+48>>2])|0)>4|h^1){break d}}b=i[a+44>>2];g[e|0]=2;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ea(b,i[b+4>>2],e,e+1|0)}b=ko(360);ti(b);c=i[a+64>>2];i[a+64>>2]=b;if(!c){break b}K[i[i[c>>2]+4>>2]](c);break c}if(!f){break c}}b=i[a+44>>2];g[e|0]=0;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ea(b,i[b+4>>2],e,e+1|0)}b=ko(296);Nh(b);c=i[a+64>>2];i[a+64>>2]=b;if(!c){break b}K[i[i[c>>2]+4>>2]](c)}b=i[a+64>>2];if(!b){break a}}a=K[i[i[b>>2]+8>>2]](b,a)|0;H=e+16|0;return a|0}H=e+16|0;return 0}function ij(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(i[i[a+24>>2]+(d>>>3&268435452)>>2]>>>(d&31)&1)){c=i[a+48>>2];i[a+52>>2]=c;a:{if((c|0)!=i[a+56>>2]){i[c>>2]=b;i[a+52>>2]=c+4;break a}e=ko(4);i[e>>2]=b;f=e+4|0;i[a+56>>2]=f;i[a+52>>2]=f;i[a+48>>2]=e;if(!c){break a}ep(c)}f=i[i[a+4>>2]+28>>2];c=b+1|0;e=(c>>>0)%3|0?c:b+ -2|0;c=i[f+(e<<2)>>2];if((c|0)==-1){return 0}h=(b-o(d,3)|0?-1:2)+b|0;d=i[f+(h<<2)>>2];if((d|0)==-1){return 0}b=i[a+36>>2];f=b+(c>>>3&536870908)|0;g=i[f>>2];j=1<<(c&31);if(!(g&j)){i[f>>2]=g|j;Ui(a+8|0,c,e);b=i[a+36>>2]}b=(d>>>3&536870908)+b|0;c=i[b>>2];e=1<<(d&31);if(!(c&e)){i[b>>2]=c|e;Ui(a+8|0,d,h)}c=i[a+52>>2];if((c|0)==i[a+48>>2]){return 1}l=a+48|0;m=a+8|0;while(1){c=c+ -4|0;b=i[c>>2];d=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}e=i[a+24>>2]+(d>>>3&268435452)|0;f=i[e>>2];d=1<<(d&31);if(f&d){break c}i[e>>2]=d|f;e=i[a+4>>2];c=i[i[e+28>>2]+(b<<2)>>2];if((c|0)==-1){return 0}while(1){d=b;d:{b=i[a+36>>2]+(c>>>3&536870908)|0;f=i[b>>2];h=1<<(c&31);e:{if(f&h){break e}g=i[i[e+40>>2]+(c<<2)>>2];if((g|0)!=-1){f:{j=g+1|0;g=(j>>>0)%3|0?j:g+ -2|0;if((g|0)==-1|i[i[e>>2]+(g>>>3&536870908)>>2]>>>(g&31)&1){break f}e=i[i[i[e+64>>2]+12>>2]+(g<<2)>>2];if((e|0)==-1){break f}i[b>>2]=f|h;Ui(m,c,d);b=e+1|0;if((((b>>>0)%3|0?b:e+ -2|0)|0)==-1){break e}b=-1;e=i[a+4>>2];g:{if((d|0)==-1){break g}c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|i[i[e>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break g}b=i[i[i[e+64>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;g=1<<(c&31);d=i[a+24>>2];j=c>>>5|0;f=i[d+(j<<2)>>2];break d}}i[b>>2]=f|h;Ui(m,c,d)}h:{i:{if((d|0)==-1){break i}e=i[a+4>>2];b=-1;f=d+1|0;f=(f>>>0)%3|0?f:d+ -2|0;c=-1;j:{if((f|0)==-1){break j}c=-1;if(i[i[e>>2]+(f>>>3&536870908)>>2]>>>(f&31)&1){break j}c=i[i[i[e+64>>2]+12>>2]+(f<<2)>>2]}d=d+((d>>>0)%3|0?-1:2)|0;if(!((d|0)==-1|i[i[e>>2]+(d>>>3&536870908)>>2]>>>(d&31)&1)){b=i[i[i[e+64>>2]+12>>2]+(d<<2)>>2]}k=(b|0)==-1;h=k?-1:(b>>>0)/3|0;f=(c>>>0)/3|0;g=(c|0)==-1;if(!g){d=i[a+24>>2];g=g?-1:f;j=g>>>5|0;f=i[d+(j<<2)>>2];g=1<<(g&31);if(!(f&g)){break h}}if(k){break i}g=1<<(h&31);d=i[a+24>>2];j=h>>>5|0;f=i[d+(j<<2)>>2];if(!(g&f)){break d}}c=i[a+52>>2]+ -4|0;i[a+52>>2]=c;break b}if(k){b=c;break d}if(i[(h>>>3&536870908)+d>>2]>>>(h&31)&1){b=c;break d}d=i[a+52>>2];i[d+ -4>>2]=b;h=i[a+56>>2];if((h|0)!=(d|0)){i[d>>2]=c;c=d+4|0;break c}k:{b=d;d=i[l>>2];f=b-d|0;g=f>>2;e=g+1|0;if(e>>>0<1073741824){h=h-d|0;j=h>>1;e=h>>2>>>0<536870911?j>>>0>>0?e:j:1073741823;b=0;l:{if(!e){break l}if(e>>>0>=1073741824){break k}b=ko(e<<2)}h=b+(g<<2)|0;i[h>>2]=c;e=b+(e<<2)|0;c=h+4|0;if((f|0)>=1){kp(b,d,f)}i[a+56>>2]=e;i[a+52>>2]=c;i[a+48>>2]=b;if(!d){break b}ep(d);c=i[a+52>>2];break b}Ko();x()}Ba(11708);x()}i[(j<<2)+d>>2]=f|g;c=i[i[e+28>>2]+(b<<2)>>2];if((c|0)!=-1){continue}break}return 0}i[a+52>>2]=c}if(i[l>>2]!=(c|0)){continue}break}}return 1}function te(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,n=0;d=H-48|0;H=d;h=i[b+12>>2];k=i[i[b+4>>2]+48>>2];c=ko(32);i[d+24>>2]=c;i[d+28>>2]=17;i[d+32>>2]=-2147483616;g[c+17|0]=0;g[c+16|0]=j[6044];f=j[6040]|j[6041]<<8|(j[6042]<<16|j[6043]<<24);e=j[6036]|j[6037]<<8|(j[6038]<<16|j[6039]<<24);g[c+8|0]=e;g[c+9|0]=e>>>8;g[c+10|0]=e>>>16;g[c+11|0]=e>>>24;g[c+12|0]=f;g[c+13|0]=f>>>8;g[c+14|0]=f>>>16;g[c+15|0]=f>>>24;f=j[6032]|j[6033]<<8|(j[6034]<<16|j[6035]<<24);e=j[6028]|j[6029]<<8|(j[6030]<<16|j[6031]<<24);g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;g[c+4|0]=f;g[c+5|0]=f>>>8;g[c+6|0]=f>>>16;g[c+7|0]=f>>>24;a:{b:{f=k+16|0;e=i[f>>2];if(!e){break b}c=f;while(1){l=i[e+16>>2]<(h|0);c=l?c:e;e=i[(l<<2)+e>>2];if(e){continue}break}if((c|0)==(f|0)|(h|0)>2]){break b}c=c+20|0;if(!Tb(c,d+24|0)){break b}c=bk(c,d+24|0,-1);break a}c=bk(k,d+24|0,-1)}if(g[d+35|0]<=-1){ep(i[d+24>>2])}i[d+32>>2]=-1;i[d+36>>2]=1065353216;i[d+24>>2]=-1;i[d+28>>2]=-1;i[d+40>>2]=-1;c=-1<>>0>28){break c}i[d+24>>2]=c+1;c=-2<>2]=c^-1;c=-2-c|0;i[d+32>>2]=c;i[d+40>>2]=(c|0)/2;m[d+36>>2]=p(2)/p(c|0)}h=gf(i[b+12>>2],i[b+4>>2]);k=i[b+12>>2];l=i[i[b+4>>2]+48>>2];c=ko(32);i[d+8>>2]=c;i[d+12>>2]=17;i[d+16>>2]=-2147483616;g[c+17|0]=0;g[c+16|0]=j[6184];f=j[6180]|j[6181]<<8|(j[6182]<<16|j[6183]<<24);e=j[6176]|j[6177]<<8|(j[6178]<<16|j[6179]<<24);g[c+8|0]=e;g[c+9|0]=e>>>8;g[c+10|0]=e>>>16;g[c+11|0]=e>>>24;g[c+12|0]=f;g[c+13|0]=f>>>8;g[c+14|0]=f>>>16;g[c+15|0]=f>>>24;f=j[6172]|j[6173]<<8|(j[6174]<<16|j[6175]<<24);e=j[6168]|j[6169]<<8|(j[6170]<<16|j[6171]<<24);g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;g[c+4|0]=f;g[c+5|0]=f>>>8;g[c+6|0]=f>>>16;g[c+7|0]=f>>>24;d:{e:{f=l+16|0;e=i[f>>2];if(!e){break e}c=f;while(1){n=i[e+16>>2]<(k|0);c=n?c:e;e=i[(n<<2)+e>>2];if(e){continue}break}if((c|0)==(f|0)|(k|0)>2]){break e}c=c+20|0;if(!Tb(c,d+8|0)){break e}c=bk(c,d+8|0,h);break d}c=bk(l,d+8|0,h)}if(g[d+19|0]<=-1){ep(i[d+8>>2])}f:{g:{switch(c|0){case 6:c=i[b+4>>2];b=i[b+12>>2];f=i[i[i[c+4>>2]+8>>2]+(b<<2)>>2];if((K[i[i[c>>2]+8>>2]](c)|0)==1){ue(d+8|0,c,b,d+24|0);b=i[d+8>>2];if(b){i[a>>2]=b;break f}i[d+8>>2]=0}b=ko(28);i[b+4>>2]=f;c=i[d+28>>2];i[b+8>>2]=i[d+24>>2];i[b+12>>2]=c;c=i[d+36>>2];i[b+16>>2]=i[d+32>>2];i[b+20>>2]=c;i[b+24>>2]=i[d+40>>2];i[b>>2]=9572;i[d+8>>2]=b;i[a>>2]=b;break f;case 0:c=i[b+4>>2];f=i[i[i[c+4>>2]+8>>2]+(i[b+12>>2]<<2)>>2];if((K[i[i[c>>2]+8>>2]](c)|0)==1){K[i[i[c>>2]+8>>2]](c)|0}b=ko(28);i[b+4>>2]=f;c=i[d+28>>2];i[b+8>>2]=i[d+24>>2];i[b+12>>2]=c;c=i[d+36>>2];i[b+16>>2]=i[d+32>>2];i[b+20>>2]=c;i[b+24>>2]=i[d+40>>2];i[b>>2]=9572;i[a>>2]=b;break f;default:break g}}i[a>>2]=0}H=d+48|0}function Nl(a,b){var c=0,d=0,e=0,f=0,g=0,h=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,v=0,w=0,y=0;d=H-48|0;H=d;a:{if(!b){break a}s=a+12|0;k=i[a+4>>2];l=i[a>>2];j=k-l|0;e=j>>2;g=i[a+12>>2];c=i[a+16>>2]-g>>2;b:{if(e>>>0>c>>>0){Ql(s,e-c|0);k=i[a+4>>2];l=i[a>>2];j=k-l|0;e=j>>2;break b}if(e>>>0>=c>>>0){break b}i[a+16>>2]=g+(e<<2)}i[d+40>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;c:{d:{e:{if(!e){c=0;g=0;break e}if(e>>>0>=1073741824){break d}c=ko(j);i[d+36>>2]=c;i[d+32>>2]=c;i[d+40>>2]=(e<<2)+c;h=c;g=c}if(!j){break c}f=g;j=0;while(1){e=i[(j<<2)+l>>2];h=h-f>>2;if(e>>>0>=h>>>0){i[d+16>>2]=0;c=e+1|0;f:{if(c>>>0>h>>>0){Hb(d+32|0,c-h|0,d+16|0);l=i[a>>2];k=i[a+4>>2];break f}if(c>>>0>=h>>>0){break f}i[d+36>>2]=(c<<2)+f}c=i[d+32>>2];g=c}f=(e<<2)+c|0;i[f>>2]=i[f>>2]+1;j=j+1|0;f=k-l|0;e=f>>2;if(j>>>0>=e>>>0){break c}h=i[d+36>>2];f=c;continue}}Ba(16516);x()}i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;g:{h:{if(f){if(e>>>0>=536870912){break h}c=ko(f<<1);i[d+16>>2]=c;i[d+20>>2]=c;g=(e<<3)+c|0;i[d+24>>2]=g;while(1){i[c>>2]=-1;i[c+4>>2]=-1;c=c+8|0;if((g|0)!=(c|0)){continue}break}i[d+20>>2]=g;c=i[d+32>>2];g=c}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;g=i[d+36>>2]-g|0;l=g>>2;i:{if(g){if(l>>>0>=1073741824){break i}m=ko(g);i[d>>2]=m;g=l<<2;f=g+m|0;i[d+8>>2]=f;j=0;g=lp(m,0,g);i[d+4>>2]=f;f=l>>>0>1?l:1;e=0;while(1){h=e<<2;i[h+g>>2]=j;j=i[c+h>>2]+j|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}}k=i[a>>2];c=i[a+4>>2];if((k|0)==(c|0)){break g}y=c-k>>2;g=0;o=i[d+16>>2];t=i[d+32>>2];while(1){u=g<<2;c=u+k|0;q=i[c>>2];h=-1;j=g+1|0;f=(j>>>0)%3|0?j:g+ -2|0;if((f|0)!=-1){h=i[(f<<2)+k>>2]}p=-1;f=(g>>>0)%3|0;e=(f?-1:2)+g|0;if((e|0)!=-1){p=i[(e<<2)+k>>2]}j:{k:{if(f){break k}l:{if((h|0)==(p|0)){break l}c=i[c>>2];if((c|0)==(h|0)){break l}if((c|0)!=(p|0)){break k}}i[a+40>>2]=i[a+40>>2]+1;g=g+3|0;break j}c=p<<2;r=i[c+t>>2];m:{n:{if((r|0)<1){break n}c=i[c+m>>2];e=0;while(1){f=o+(c<<3)|0;n=i[f>>2];if((n|0)==-1){break n}o:{if((h|0)!=(n|0)){break o}n=i[f+4>>2];if((n|0)!=-1){f=i[(n<<2)+k>>2]}else{f=-1}if((f|0)==(q|0)){break o}while(1){p:{f=c;e=e+1|0;if((e|0)>=(r|0)){break p}q=o+(f<<3)|0;c=f+1|0;v=o+(c<<3)|0;w=i[v>>2];i[q>>2]=w;i[q+4>>2]=i[v+4>>2];if((w|0)!=-1){continue}}break}i[o+(f<<3)>>2]=-1;if((n|0)==-1){break n}c=i[s>>2];i[c+u>>2]=n;i[c+(n<<2)>>2]=g;break m}c=c+1|0;e=e+1|0;if((r|0)!=(e|0)){continue}break}}c=h<<2;h=i[c+t>>2];if((h|0)<1){break m}c=i[c+m>>2];e=0;while(1){f=o+(c<<3)|0;if(i[f>>2]==-1){i[f>>2]=p;i[f+4>>2]=g;break m}c=c+1|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}}g=j}if(g>>>0>>0){continue}break}break g}Ko();x()}Ko();x()}i[b>>2]=l;if(m){i[d+4>>2]=m;ep(m)}a=i[d+16>>2];if(a){i[d+20>>2]=a;ep(a)}a=i[d+32>>2];if(!a){break a}i[d+36>>2]=a;ep(a)}H=d+48|0;return(b|0)!=0}function pj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,k=0,m=0,n=0,p=0;f=H-16|0;H=f;c=i[b+56>>2];m=i[c+100>>2]-i[c+96>>2]|0;d=(m|0)/12|0;Kb(d,i[b+44>>2]);Kb(i[i[b+56>>2]+80>>2],i[b+44>>2]);n=i[b+48>>2];c=ko(32);i[f>>2]=c;i[f+4>>2]=21;i[f+8>>2]=-2147483616;g[c+21|0]=0;e=j[13293]|j[13294]<<8|(j[13295]<<16|j[13296]<<24);k=j[13289]|j[13290]<<8|(j[13291]<<16|j[13292]<<24);g[c+13|0]=k;g[c+14|0]=k>>>8;g[c+15|0]=k>>>16;g[c+16|0]=k>>>24;g[c+17|0]=e;g[c+18|0]=e>>>8;g[c+19|0]=e>>>16;g[c+20|0]=e>>>24;e=j[13288]|j[13289]<<8|(j[13290]<<16|j[13291]<<24);k=j[13284]|j[13285]<<8|(j[13286]<<16|j[13287]<<24);g[c+8|0]=k;g[c+9|0]=k>>>8;g[c+10|0]=k>>>16;g[c+11|0]=k>>>24;g[c+12|0]=e;g[c+13|0]=e>>>8;g[c+14|0]=e>>>16;g[c+15|0]=e>>>24;e=j[13280]|j[13281]<<8|(j[13282]<<16|j[13283]<<24);k=j[13276]|j[13277]<<8|(j[13278]<<16|j[13279]<<24);g[c|0]=k;g[c+1|0]=k>>>8;g[c+2|0]=k>>>16;g[c+3|0]=k>>>24;g[c+4|0]=e;g[c+5|0]=e>>>8;g[c+6|0]=e>>>16;g[c+7|0]=e>>>24;e=ek(n,f,0);if(g[f+11|0]<=-1){ep(i[f>>2])}c=i[b+44>>2];a:{if(e){g[f|0]=0;d=i[c+20>>2];if((d|0)<0?1:(d|0)<=0?l[c+16>>2]<=0:0){ea(c,i[c+4>>2],f,f+1|0)}qj(b);break a}g[f|0]=1;e=i[c+20>>2];if((e|0)<0?1:(e|0)<=0?l[c+16>>2]<=0:0){ea(c,i[c+4>>2],f,f+1|0)}e=i[b+56>>2];c=i[e+80>>2];if(c>>>0<=255){if(!m){break a}p=d>>>0>1?d:1;k=f+1|0;m=0;while(1){c=i[b+44>>2];n=i[e+96>>2]+o(m,12)|0;g[f|0]=i[n>>2];d=i[c+20>>2];e=i[c+16>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ea(c,i[c+4>>2],f,k);c=i[b+44>>2];e=i[c+16>>2];d=i[c+20>>2]}g[f|0]=i[n+4>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ea(c,i[c+4>>2],f,k);c=i[b+44>>2];e=i[c+16>>2];d=i[c+20>>2]}g[f|0]=i[n+8>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ea(c,i[c+4>>2],f,k)}m=m+1|0;if((p|0)==(m|0)){break a}e=i[b+56>>2];continue}}if(c>>>0<=65535){if(!m){break a}p=d>>>0>1?d:1;k=f+2|0;m=0;while(1){c=i[b+44>>2];n=i[e+96>>2]+o(m,12)|0;h[f>>1]=i[n>>2];d=i[c+20>>2];e=i[c+16>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ea(c,i[c+4>>2],f,k);c=i[b+44>>2];e=i[c+16>>2];d=i[c+20>>2]}h[f>>1]=i[n+4>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ea(c,i[c+4>>2],f,k);c=i[b+44>>2];e=i[c+16>>2];d=i[c+20>>2]}h[f>>1]=i[n+8>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ea(c,i[c+4>>2],f,k)}m=m+1|0;if((p|0)==(m|0)){break a}e=i[b+56>>2];continue}}if(c>>>0>=2097152){if(!m){break a}k=d>>>0>1?d:1;c=0;while(1){d=i[b+44>>2];m=i[d+20>>2];if((m|0)<0?1:(m|0)<=0?l[d+16>>2]<=0:0){n=d;m=i[d+4>>2];d=i[e+96>>2]+o(c,12)|0;ea(n,m,d,d+12|0)}c=c+1|0;if((k|0)==(c|0)){break a}e=i[b+56>>2];continue}}if(!m){break a}m=d>>>0>1?d:1;c=0;while(1){d=i[e+96>>2]+o(c,12)|0;Kb(i[d>>2],i[b+44>>2]);Kb(i[d+4>>2],i[b+44>>2]);Kb(i[d+8>>2],i[b+44>>2]);c=c+1|0;if((m|0)==(c|0)){break a}e=i[b+56>>2];continue}}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;H=f+16|0}function cj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(i[i[a+24>>2]+(d>>>3&268435452)>>2]>>>(d&31)&1)){c=i[a+48>>2];i[a+52>>2]=c;a:{if((c|0)!=i[a+56>>2]){i[c>>2]=b;i[a+52>>2]=c+4;break a}e=ko(4);i[e>>2]=b;f=e+4|0;i[a+56>>2]=f;i[a+52>>2]=f;i[a+48>>2]=e;if(!c){break a}ep(c)}e=i[a+4>>2];c=-1;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)!=-1){c=i[i[e>>2]+(f<<2)>>2]}g=(b-o(d,3)|0?-1:2)+b|0;if((g|0)==-1){return 0}if((c|0)==-1){return 0}d=i[i[e>>2]+(g<<2)>>2];if((d|0)==-1){return 0}b=i[a+36>>2];e=b+(c>>>3&536870908)|0;h=i[e>>2];j=1<<(c&31);if(!(h&j)){i[e>>2]=h|j;Ui(a+8|0,c,f);b=i[a+36>>2]}b=(d>>>3&536870908)+b|0;c=i[b>>2];e=1<<(d&31);if(!(c&e)){i[b>>2]=c|e;Ui(a+8|0,d,g)}d=i[a+52>>2];if((d|0)==i[a+48>>2]){return 1}k=a+48|0;l=a+8|0;while(1){d=d+ -4|0;b=i[d>>2];c=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}e=i[a+24>>2]+(c>>>3&268435452)|0;f=i[e>>2];c=1<<(c&31);if(f&c){break c}i[e>>2]=c|f;while(1){g=i[a+4>>2];c=i[i[g>>2]+(b<<2)>>2];if((c|0)==-1){return 0}d:{d=i[a+36>>2]+(c>>>3&536870908)|0;e=i[d>>2];f=1<<(c&31);e:{if(e&f){break e}h=i[i[g+24>>2]+(c<<2)>>2];if((h|0)!=-1){j=h+1|0;h=(j>>>0)%3|0?j:h+ -2|0;if((h|0)!=-1){g=i[i[g+12>>2]+(h<<2)>>2];if((g|0)!=-1){i[d>>2]=e|f;Ui(l,c,b);c=g+1|0;if((((c>>>0)%3|0?c:g+ -2|0)|0)==-1){break e}d=b+ -2|0;c=b+1|0;b=-1;c=(c>>>0)%3|0?c:d;if((c|0)!=-1){b=i[i[i[a+4>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;h=1<<(c&31);e=i[a+24>>2];j=c>>>5|0;f=i[e+(j<<2)>>2];break d}}}i[d>>2]=e|f;Ui(l,c,b)}d=-1;e=i[a+4>>2];c=-1;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)!=-1){c=i[i[e+12>>2]+(f<<2)>>2]}b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)!=-1){d=i[i[e+12>>2]+(b<<2)>>2]}b=(d|0)==-1;g=b?-1:(d>>>0)/3|0;f=(c>>>0)/3|0;f:{h=(c|0)==-1;if(!h){e=i[a+24>>2];h=h?-1:f;j=h>>>5|0;f=i[e+(j<<2)>>2];h=1<<(h&31);if(!(f&h)){break f}}if(!b){b=d;h=1<<(g&31);e=i[a+24>>2];j=g>>>5|0;f=i[e+(j<<2)>>2];if(!(h&f)){break d}}d=i[a+52>>2]+ -4|0;i[a+52>>2]=d;break b}if(b){b=c;break d}if(i[(g>>>3&536870908)+e>>2]>>>(g&31)&1){b=c;break d}b=i[a+52>>2];i[b+ -4>>2]=d;g=i[a+56>>2];if((g|0)!=(b|0)){i[b>>2]=c;d=b+4|0;break c}g:{e=i[k>>2];f=b-e|0;h=f>>2;d=h+1|0;if(d>>>0<1073741824){g=g-e|0;j=g>>1;d=g>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;b=0;h:{if(!d){break h}if(d>>>0>=1073741824){break g}b=ko(d<<2)}g=b+(h<<2)|0;i[g>>2]=c;c=b+(d<<2)|0;d=g+4|0;if((f|0)>=1){kp(b,e,f)}i[a+56>>2]=c;i[a+52>>2]=d;i[a+48>>2]=b;if(!e){break b}ep(e);d=i[a+52>>2];break b}Ko();x()}Ba(11708);x()}i[(j<<2)+e>>2]=f|h;if((b|0)!=-1){continue}break}return 0}i[a+52>>2]=d}if(i[k>>2]!=(d|0)){continue}break}}return 1}function zh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){zh(f,d,c);a=d+4|0;continue c}zh(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function yh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){yh(f,d,c);a=d+4|0;continue c}yh(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function xh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){xh(f,d,c);a=d+4|0;continue c}xh(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function wh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){wh(f,d,c);a=d+4|0;continue c}wh(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function vh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){vh(f,d,c);a=d+4|0;continue c}vh(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function uh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){uh(f,d,c);a=d+4|0;continue c}uh(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function th(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){th(f,d,c);a=d+4|0;continue c}th(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function sh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){sh(f,d,c);a=d+4|0;continue c}sh(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function rh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){rh(f,d,c);a=d+4|0;continue c}rh(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function qh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){qh(f,d,c);a=d+4|0;continue c}qh(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function ph(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){ph(f,d,c);a=d+4|0;continue c}ph(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function oh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){oh(f,d,c);a=d+4|0;continue c}oh(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function nh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){nh(f,d,c);a=d+4|0;continue c}nh(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function mh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){mh(f,d,c);a=d+4|0;continue c}mh(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function lh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){lh(f,d,c);a=d+4|0;continue c}lh(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function Ig(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){Ig(f,d,c);a=d+4|0;continue c}Ig(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function Bh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){Bh(f,d,c);a=d+4|0;continue c}Bh(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function Ah(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Lg(f,f+4|0,f+8|0,b+ -4|0,c);return}Mg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Ng(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Mg(f,a+f|0,j,a+j|0,n,c);break m}m=Og(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Pg(f,d,c);a=d+4|0;if(Pg(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){Ah(f,d,c);a=d+4|0;continue c}Ah(d+4|0,b,c);b=d;a=f;continue b}Lo();x()}Og(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Lo();x()}}function Cj(a){var b=0,c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;h=H+ -64|0;H=h;r=a+32|0;c=i[a+12>>2]-i[a+8>>2]>>2;e=i[a+32>>2];d=i[a+36>>2]-e>>2;a:{if(c>>>0>d>>>0){Cd(r,c-d|0);c=i[a+12>>2]-i[a+8>>2]>>2;break a}if(c>>>0>=d>>>0){break a}i[a+36>>2]=e+(c<<2)}g[h+32|0]=0;p=Dj(h+48|0,c,h+32|0);c=i[a+8>>2];b=i[a+12>>2];while(1){b:{c:{d:{if(k>>>0>2>>>0){j=0;d=0;f=0;e=0;if((b|0)==(c|0)){break c}while(1){n=1<<(f&31);q=f>>>5<<2;e:{if(n&i[q+i[p>>2]>>2]){break e}l=f<<2;j=i[l+c>>2];if(i[j+8>>2]!=i[j+4>>2]){b=i[c+l>>2];e=0;o=1;while(1){c=0;j=i[i[j+4>>2]+(e<<2)>>2];f:{if((K[i[i[b>>2]+24>>2]](b,j)|0)<1){break f}while(1){g:{b=i[l+i[a+8>>2]>>2];b=K[i[i[b>>2]+28>>2]](b,j,c)|0;if((b|0)==(f|0)){break g}b=i[i[a+20>>2]+(b<<2)>>2];if(i[i[p>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){break g}o=0;break f}c=c+1|0;b=i[l+i[a+8>>2]>>2];if((c|0)<(K[i[i[b>>2]+24>>2]](b,j)|0)){continue}break}}c=i[a+8>>2];b=i[l+c>>2];j=b;e=e+1|0;if(e>>>0>2]-i[b+4>>2]>>2>>>0){continue}break}if(!o){break e}}i[i[r>>2]+(k<<2)>>2]=f;d=q+i[p>>2]|0;i[d>>2]=n|i[d>>2];d=1;k=k+1|0}f=f+1|0;b=i[a+12>>2];j=b-c>>2;if(f>>>0>>0){continue}break}break d}i[h+40>>2]=0;i[h+32>>2]=0;i[h+36>>2]=0;d=i[a+4>>2];e=i[d+12>>2];d=i[d+8>>2];g[h+15|0]=0;j=Dj(h+16|0,e-d>>2,h+15|0);m=1;c=i[a+8>>2];b=i[a+12>>2];h:{if((c|0)==(b|0)){break h}while(1){i:{k=i[i[r>>2]+(s<<2)>>2]<<2;d=i[k+c>>2];d=i[d+8>>2]-i[d+4>>2]|0;if((d|0)<8){break i}b=d>>2;e=i[h+32>>2];d=i[h+36>>2]-e>>2;j:{if(b>>>0>d>>>0){Cd(h+32|0,b-d|0);break j}if(b>>>0>=d>>>0){break j}i[h+36>>2]=e+(b<<2)}q=(b|0)>1?b:1;d=0;while(1){k:{if((d|0)<(b|0)){f=i[j>>2];e=0;m=0;while(1){t=1<<(e&31);n=e>>>5<<2;l:{if(t&i[n+f>>2]){break l}c=0;f=i[k+i[a+8>>2]>>2];l=i[i[f+4>>2]+(e<<2)>>2];if((K[i[i[f>>2]+24>>2]](f,l)|0)>0){while(1){f=i[k+i[a+8>>2]>>2];o=K[i[i[f>>2]+28>>2]](f,l,c)|0;f=i[j>>2];if(!(i[f+(o>>>3&536870908)>>2]>>>(o&31)&1)){break l}c=c+1|0;f=i[k+i[a+8>>2]>>2];if((c|0)<(K[i[i[f>>2]+24>>2]](f,l)|0)){continue}break}}i[i[h+32>>2]+(d<<2)>>2]=e;f=i[j>>2];c=n+f|0;i[c>>2]=t|i[c>>2];m=1;d=d+1|0}e=e+1|0;if((q|0)!=(e|0)){continue}break}break k}Ej(i[k+i[a+8>>2]>>2],h+32|0);c=i[a+8>>2];b=i[a+12>>2];break i}if(!(m^1)|(d|0)>=(b|0)){continue}break}m=0;break h}m=1;s=s+1|0;if(s>>>0>2>>>0){continue}break}}a=i[j>>2];if(a){ep(a)}a=i[h+32>>2];if(!a){break b}i[h+36>>2]=a;ep(a);break b}e=d}if(e&1|k>>>0>=j>>>0){continue}}break}a=i[p>>2];if(a){ep(a)}H=h- -64|0;return m}function Pl(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;k=H-48|0;H=k;i[a+36>>2]=b;p=a+24|0;d=i[a+24>>2];c=i[a+28>>2]-d>>2;a:{if(c>>>0>>0){Ql(p,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+28>>2]=d+(b<<2)}g[k+16|0]=0;l=Dj(k+32|0,b,k+16|0);c=i[a>>2];d=i[a+4>>2];g[k+8|0]=0;q=Dj(k+16|0,d-c>>2,k+8|0);b:{h=i[a+4>>2];c=i[a>>2];if(h-c>>2>>>0<3){break b}t=a+48|0;while(1){m=o(r,3);e=i[(m<<2)+c>>2];d=m+1|0;c:{d:{if((d|0)==-1){j=0;f=-1;break d}f=i[(d<<2)+c>>2];j=m+2|0;d=-1;if((j|0)==-1){break c}}d=i[(j<<2)+c>>2]}e:{if(!((d|0)==(f|0)|(e|0)==(f|0)|(d|0)==(e|0))){j=i[q>>2];n=0;while(1){d=m+n|0;f:{if(i[(d>>>3&536870908)+j>>2]>>>(d&31)&1){break f}h=i[i[a>>2]+(d<<2)>>2];i[k+8>>2]=h;c=1<<(h&31);e=i[l>>2];f=h>>>5|0;j=i[e+(f<<2)>>2];s=c&j;if(s){Rl(p,16512);Rl(t,k+8|0);c=i[l+4>>2];f=i[l+8>>2];if((c|0)==f<<5){if((c+1|0)<=-1){break e}e=l;if(c>>>0<=1073741822){h=c+32&-32;c=f<<6;c=c>>>0>>0?h:c}else{c=2147483647}cd(e,c);c=i[l+4>>2]}i[l+4>>2]=c+1;e=i[l>>2];f=e+(c>>>3&536870908)|0;h=i[f>>2];u=f,v=Bp(-2,c)&h,i[u>>2]=v;i[k+8>>2]=b;c=1<<(b&31);f=b>>>5|0;j=i[(f<<2)+e>>2];b=b+1|0}i[(f<<2)+e>>2]=c|j;j=i[q>>2];c=d;g:{while(1){if((c|0)==-1){break g}e=(c>>>3&536870908)+j|0;i[e>>2]=i[e>>2]|1<<(c&31);e=i[k+8>>2];i[i[p>>2]+(e<<2)>>2]=c;if(s){i[i[a>>2]+(c<<2)>>2]=e}h=d;f=c+1|0;c=(f>>>0)%3|0?f:c+ -2|0;e=-1;h:{if((c|0)==-1){break h}f=i[i[a+12>>2]+(c<<2)>>2];e=-1;if((f|0)==-1){break h}c=f+1|0;e=(c>>>0)%3|0?c:f+ -2|0}c=e;if((h|0)!=(c|0)){continue}break}if((d|0)!=-1){break f}}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)==-1){break f}d=i[i[a+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)==-1){break f}while(1){d=(c>>>3&536870908)+j|0;i[d>>2]=i[d>>2]|1<<(c&31);if(s){i[i[a>>2]+(c<<2)>>2]=i[k+8>>2]}d=((c>>>0)%3|0?-1:2)+c|0;if((d|0)==-1){break f}d=i[i[a+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)!=-1){continue}break}}n=n+1|0;if((n|0)!=3){continue}break}c=i[a>>2];h=i[a+4>>2]}r=r+1|0;if(r>>>0<(h-c>>2>>>0)/3>>>0){continue}break b}break}Ko();x()}j=0;i[a+44>>2]=0;b=i[l>>2];c=i[l+4>>2];d=c>>>5|0;f=c&31;if(d|f){h=(d<<2)+b|0;e=b;c=0;while(1){if(!(i[e>>2]>>>c&1)){j=j+1|0;i[a+44>>2]=j}d=(c|0)==31;c=d?0:c+1|0;e=d?e+4|0:e;if((h|0)!=(e|0)|(c|0)!=(f|0)){continue}break}}a=i[q>>2];if(a){ep(a);b=i[l>>2]}if(b){ep(b)}H=k+48|0}function xm(a,b){var c=0,d=0,e=0,f=0,h=0,k=0;a:{b:{d=b;h=i[b>>2];if(h){c=i[b+4>>2];if(!c){break b}while(1){d=c;c=i[c>>2];if(c){continue}break}}h=i[d+4>>2];if(h){break b}h=0;e=1;break a}i[h+8>>2]=i[d+8>>2];e=0}f=i[d+8>>2];c=i[f>>2];c:{if((d|0)==(c|0)){i[f>>2]=h;if((a|0)==(d|0)){c=0;a=h;break c}c=i[f+4>>2];break c}i[f+4>>2]=h}d:{e:{f:{k=!j[d+12|0];if((b|0)!=(d|0)){f=i[b+8>>2];i[d+8>>2]=f;i[f+((i[i[b+8>>2]>>2]!=(b|0))<<2)>>2]=d;f=i[b>>2];i[d>>2]=f;i[f+8>>2]=d;f=i[b+4>>2];i[d+4>>2]=f;if(f){i[f+8>>2]=d}g[d+12|0]=j[b+12|0];a=(a|0)==(b|0)?d:a}if(!(k|!a)){if(e){while(1){b=j[c+12|0];g:{e=i[c+8>>2];if(i[e>>2]!=(c|0)){if(!b){g[c+12|0]=1;g[e+12|0]=0;d=i[e+4>>2];b=i[d>>2];i[e+4>>2]=b;if(b){i[b+8>>2]=e}i[d+8>>2]=i[e+8>>2];b=i[e+8>>2];i[(((e|0)!=i[b>>2])<<2)+b>>2]=d;i[d>>2]=e;i[e+8>>2]=d;b=i[c>>2];a=(b|0)==(a|0)?c:a;c=i[b+4>>2]}d=i[c>>2];if(!(j[d+12|0]?0:d)){b=i[c+4>>2];if(j[b+12|0]?0:b){break f}g[c+12|0]=0;c=i[c+8>>2];h:{if((c|0)==(a|0)){c=a;break h}if(j[c+12|0]){break g}}g[c+12|0]=1;return}b=i[c+4>>2];if(b){break f}break e}i:{if(b){b=c;break i}g[c+12|0]=1;g[e+12|0]=0;b=i[c+4>>2];i[e>>2]=b;if(b){i[b+8>>2]=e}i[c+8>>2]=i[e+8>>2];d=i[e+8>>2];j:{if((e|0)==i[d>>2]){i[d>>2]=c;b=i[e>>2];break j}i[d+4>>2]=c}i[c+4>>2]=e;i[e+8>>2]=c;a=(a|0)==(e|0)?c:a}d=i[b>>2];k:{if(!(!d|j[d+12|0])){c=b;break k}c=i[b+4>>2];if(!(j[c+12|0]?0:c)){g[b+12|0]=0;c=i[b+8>>2];if(j[c+12|0]?(c|0)!=(a|0):0){break g}g[c+12|0]=1;return}if(d){if(!j[d+12|0]){c=b;break k}c=i[b+4>>2]}g[c+12|0]=1;g[b+12|0]=0;a=i[c>>2];i[b+4>>2]=a;if(a){i[a+8>>2]=b}i[c+8>>2]=i[b+8>>2];a=i[b+8>>2];i[((i[a>>2]!=(b|0))<<2)+a>>2]=c;i[c>>2]=b;i[b+8>>2]=c;d=b}a=c;c=i[c+8>>2];g[a+12|0]=j[c+12|0];g[c+12|0]=1;g[d+12|0]=1;b=i[c>>2];a=i[b+4>>2];i[c>>2]=a;if(a){i[a+8>>2]=c}i[b+8>>2]=i[c+8>>2];a=i[c+8>>2];i[(((c|0)!=i[a>>2])<<2)+a>>2]=b;i[b+4>>2]=c;i[c+8>>2]=b;return}b=i[c+8>>2];c=i[((i[b>>2]==(c|0))<<2)+b>>2];continue}}g[h+12|0]=1}return}if(j[b+12|0]){break e}d=c;break d}g[d+12|0]=1;g[c+12|0]=0;a=i[d+4>>2];i[c>>2]=a;if(a){i[a+8>>2]=c}i[d+8>>2]=i[c+8>>2];a=i[c+8>>2];i[((i[a>>2]!=(c|0))<<2)+a>>2]=d;i[d+4>>2]=c;i[c+8>>2]=d;b=c}c=i[d+8>>2];g[d+12|0]=j[c+12|0];g[c+12|0]=1;g[b+12|0]=1;b=i[c+4>>2];a=i[b>>2];i[c+4>>2]=a;if(a){i[a+8>>2]=c}i[b+8>>2]=i[c+8>>2];a=i[c+8>>2];i[(((c|0)!=i[a>>2])<<2)+a>>2]=b;i[b>>2]=c;i[c+8>>2]=b}function kh(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;Bh(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function jh(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;Ah(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function ih(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;zh(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function hh(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;yh(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function fh(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;xh(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function dh(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*524288+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==524288){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;wh(g,p,k+24|0);g:{if((n|0)<524288){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+524288;f=0;break g}c=n+ -524288|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=524288/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==524288){n=524288;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=524288){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*19073486328125e-19)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function bh(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*262144+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==262144){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;vh(g,p,k+24|0);g:{if((n|0)<262144){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+262144;f=0;break g}c=n+ -262144|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=262144/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==262144){n=262144;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=262144){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*3814697265625e-18)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function $g(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*65536+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==65536){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;uh(g,p,k+24|0);g:{if((n|0)<65536){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+65536;f=0;break g}c=n+ -65536|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=65536/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==65536){n=65536;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=65536){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*152587890625e-16)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()} +function ai(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;e=F-48|0;F=e;a:{if(j[b+288|0]){fm(e+32|0,i[b+8>>2]);c=i[e+32>>2];i[e+32>>2]=0;d=i[b+12>>2];i[b+12>>2]=c;if(!d){break a}bi(d);d=i[e+32>>2];i[e+32>>2]=0;if(!d){break a}bi(d);break a}dm(e+32|0,i[b+8>>2]);c=i[e+32>>2];i[e+32>>2]=0;d=i[b+12>>2];i[b+12>>2]=c;if(!d){break a}bi(d);d=i[e+32>>2];i[e+32>>2]=0;if(!d){break a}bi(d)}b:{c:{d:{d=i[b+12>>2];e:{if(!(i[d+40>>2]!=((i[d+4>>2]-i[d>>2]>>2>>>0)/3|0)?d:0)){b=ho(32);i[e+32>>2]=b;i[e+36>>2]=29;i[e+40>>2]=-2147483616;g[b+29|0]=0;d=j[11281]|j[11282]<<8|(j[11283]<<16|j[11284]<<24);c=j[11277]|j[11278]<<8|(j[11279]<<16|j[11280]<<24);g[b+21|0]=c;g[b+22|0]=c>>>8;g[b+23|0]=c>>>16;g[b+24|0]=c>>>24;g[b+25|0]=d;g[b+26|0]=d>>>8;g[b+27|0]=d>>>16;g[b+28|0]=d>>>24;d=j[11276]|j[11277]<<8|(j[11278]<<16|j[11279]<<24);c=j[11272]|j[11273]<<8|(j[11274]<<16|j[11275]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11268]|j[11269]<<8|(j[11270]<<16|j[11271]<<24);c=j[11264]|j[11265]<<8|(j[11266]<<16|j[11267]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11260]|j[11261]<<8|(j[11262]<<16|j[11263]<<24);c=j[11256]|j[11257]<<8|(j[11258]<<16|j[11259]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}bp(i[e+32>>2]);break e}i[b+264>>2]=b;Jb((i[d+28>>2]-i[d+24>>2]>>2)-i[d+44>>2]|0,i[i[b+4>>2]+44>>2]);d=i[b+12>>2];Jb(((i[d+4>>2]-i[d>>2]>>2>>>0)/3|0)-i[d+40>>2]|0,i[i[b+4>>2]+44>>2]);d=i[b+8>>2];c=i[d+100>>2];d=i[d+96>>2];g[e+32|0]=0;q=b+28|0;Uh(q,(c-d|0)/12|0,e+32|0);d=i[b+12>>2];c=i[d+28>>2];d=i[d+24>>2];i[e+32>>2]=-1;Sh(b+52|0,c-d>>2,e+32|0);c=i[b+40>>2];i[b+44>>2]=c;d=i[b+12>>2];f=i[d+4>>2]-i[d>>2]>>2;f=f-((f>>>0)%3|0)|0;f:{if(i[b+48>>2]-c>>2>>>0>=f>>>0){break f}if(f>>>0>=1073741824){break b}h=f<<2;f=ho(h);i[b+44>>2]=f;i[b+40>>2]=f;i[b+48>>2]=f+h;if(!c){break f}bp(c);d=i[b+12>>2]}c=i[d+28>>2];d=i[d+24>>2];g[e+32|0]=0;Uh(b+84|0,c-d>>2,e+32|0);i[b+164>>2]=-1;i[b+168>>2]=0;i[b+100>>2]=i[b+96>>2];i[b+112>>2]=i[b+108>>2];if(i[b+132>>2]){d=i[b+128>>2];if(d){while(1){c=i[d>>2];bp(d);d=c;if(c){continue}break}}i[b+128>>2]=0;c=i[b+124>>2];if(c){d=0;while(1){i[i[b+120>>2]+(d<<2)>>2]=0;d=d+1|0;if((c|0)!=(d|0)){continue}break}}i[b+132>>2]=0}i[b+144>>2]=0;d=i[b+12>>2];c=i[d+28>>2];d=i[d+24>>2];i[e+32>>2]=-1;Sh(b+152|0,c-d>>2,e+32|0);d=i[b+72>>2];i[b+76>>2]=d;c=i[b+12>>2];c=i[c+4>>2]-i[c>>2]>>2;f=(c>>>0)/3|0;g:{if(i[b+80>>2]-d>>2>>>0>=f>>>0){break g}if(c>>>0>=3221225472){break b}f=f<<2;c=ho(f);i[b+76>>2]=c;i[b+72>>2]=c;i[b+80>>2]=c+f;if(!d){break g}bp(d)}i[b- -64>>2]=0;if(!ci(b)){b=ho(32);i[e+32>>2]=b;i[e+36>>2]=29;i[e+40>>2]=-2147483616;g[b+29|0]=0;d=j[11311]|j[11312]<<8|(j[11313]<<16|j[11314]<<24);c=j[11307]|j[11308]<<8|(j[11309]<<16|j[11310]<<24);g[b+21|0]=c;g[b+22|0]=c>>>8;g[b+23|0]=c>>>16;g[b+24|0]=c>>>24;g[b+25|0]=d;g[b+26|0]=d>>>8;g[b+27|0]=d>>>16;g[b+28|0]=d>>>24;d=j[11306]|j[11307]<<8|(j[11308]<<16|j[11309]<<24);c=j[11302]|j[11303]<<8|(j[11304]<<16|j[11305]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11298]|j[11299]<<8|(j[11300]<<16|j[11301]<<24);c=j[11294]|j[11295]<<8|(j[11296]<<16|j[11297]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11290]|j[11291]<<8|(j[11292]<<16|j[11293]<<24);c=j[11286]|j[11287]<<8|(j[11288]<<16|j[11289]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}bp(i[e+32>>2]);break e}if(!di(b)){b=ho(48);i[e+32>>2]=b;i[e+36>>2]=36;i[e+40>>2]=-2147483600;g[b+36|0]=0;d=j[11348]|j[11349]<<8|(j[11350]<<16|j[11351]<<24);g[b+32|0]=d;g[b+33|0]=d>>>8;g[b+34|0]=d>>>16;g[b+35|0]=d>>>24;d=j[11344]|j[11345]<<8|(j[11346]<<16|j[11347]<<24);c=j[11340]|j[11341]<<8|(j[11342]<<16|j[11343]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11336]|j[11337]<<8|(j[11338]<<16|j[11339]<<24);c=j[11332]|j[11333]<<8|(j[11334]<<16|j[11335]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11328]|j[11329]<<8|(j[11330]<<16|j[11331]<<24);c=j[11324]|j[11325]<<8|(j[11326]<<16|j[11327]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11320]|j[11321]<<8|(j[11322]<<16|j[11323]<<24);c=j[11316]|j[11317]<<8|(j[11318]<<16|j[11319]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}bp(i[e+32>>2]);break e}d=(i[b+176>>2]-i[b+172>>2]|0)/136|0;g[e+31|0]=d;c=b;f=i[i[b+4>>2]+44>>2];h=i[f+20>>2];if((h|0)<0?1:(h|0)<=0?l[f+16>>2]<=0:0){ca(f,i[f+4>>2],e+31|0,e+32|0);d=j[e+31|0]}i[c+284>>2]=d&255;c=i[b+12>>2];d=i[c>>2];c=i[c+4>>2];r=b+200|0;ei(r);i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;f=c-d|0;h:{if((f|0)>=1){s=b+96|0;d=d-c|0;d=((d|0)>(f|0)?d:f)>>>2|0;t=d>>>0>1?d:1;d=0;while(1){i:{c=(d>>>0)/3|0;p=c>>>5<<2;o=1<>2]>>2]&o){break i}if(Ql(i[b+12>>2],c)){break i}i[e+24>>2]=0;c=fi(b,c,e+24|0);qf(r,c);f=i[e+24>>2];if(c){c=-1;h=-1;m=-1;j:{if((f|0)==-1){break j}n=i[i[b+12>>2]>>2];c=i[n+(f<<2)>>2];k=f+1|0;k=(k>>>0)%3|0?k:f+ -2|0;if((k|0)!=-1){h=i[n+(k<<2)>>2]}k=f+((f>>>0)%3|0?-1:2)|0;if((k|0)==-1){break j}m=i[n+(k<<2)>>2]}n=i[b+84>>2];k=n+(c>>>3&536870908)|0;i[k>>2]=i[k>>2]|1<>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>2];k=i[b+104>>2];k:{if(c>>>0>>0){i[c>>2]=1;i[b+100>>2]=c+4;break k}h=i[s>>2];n=c-h|0;c=n>>2;m=c+1|0;if(m>>>0>=1073741824){break d}u=c<<2;k=k-h|0;c=k>>1;m=k>>2>>>0<536870911?c>>>0>>0?m:c:1073741823;c=0;l:{if(!m){break l}if(m>>>0>=1073741824){break b}c=ho(m<<2)}k=u+c|0;i[k>>2]=1;m=c+(m<<2)|0;k=k+4|0;if((n|0)>=1){hp(c,h,n)}i[b+104>>2]=m;i[b+100>>2]=k;i[b+96>>2]=c;if(!h){break k}bp(h)}c=p+i[q>>2]|0;i[c>>2]=o|i[c>>2];m=-1;if((f|0)!=-1){c=f+1|0;m=(c>>>0)%3|0?c:f+ -2|0}c=i[e+36>>2];o=i[e+40>>2];m:{if(c>>>0>>0){i[c>>2]=m;i[e+36>>2]=c+4;break m}h=i[e+32>>2];p=c-h|0;k=p>>2;n=k+1|0;if(n>>>0>=1073741824){break c}o=o-h|0;c=o>>1;n=o>>2>>>0<536870911?c>>>0>>0?n:c:1073741823;c=0;n:{if(!n){break n}if(n>>>0>=1073741824){break b}c=ho(n<<2)}o=c+(k<<2)|0;i[o>>2]=m;m=c+(n<<2)|0;n=o+4|0;if((p|0)>=1){hp(c,h,p)}i[e+40>>2]=m;i[e+36>>2]=n;i[e+32>>2]=c;if(!h){break m}bp(h)}if((f|0)==-1){break i}c=f+1|0;c=(c>>>0)%3|0?c:f+ -2|0;if((c|0)==-1){break i}c=i[i[i[b+12>>2]+12>>2]+(c<<2)>>2];if((c|0)==-1){break i}f=(c>>>0)/3|0;if(i[i[q>>2]+(f>>>3&268435452)>>2]>>>f&1){break i}if(gi(b,c)){break i}b=ho(48);i[e+8>>2]=b;i[e+12>>2]=32;i[e+16>>2]=-2147483600;g[b+32|0]=0;d=j[11381]|j[11382]<<8|(j[11383]<<16|j[11384]<<24);c=j[11377]|j[11378]<<8|(j[11379]<<16|j[11380]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11373]|j[11374]<<8|(j[11375]<<16|j[11376]<<24);c=j[11369]|j[11370]<<8|(j[11371]<<16|j[11372]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11365]|j[11366]<<8|(j[11367]<<16|j[11368]<<24);c=j[11361]|j[11362]<<8|(j[11363]<<16|j[11364]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11357]|j[11358]<<8|(j[11359]<<16|j[11360]<<24);c=j[11353]|j[11354]<<8|(j[11355]<<16|j[11356]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}bp(i[e+8>>2]);break h}c=b;if((f|0)!=-1){h=f+1|0;f=(h>>>0)%3|0?h:f+ -2|0}else{f=-1}hi(c,f,1);if(gi(b,i[e+24>>2])){break i}b=ho(48);i[e+8>>2]=b;i[e+12>>2]=32;i[e+16>>2]=-2147483600;g[b+32|0]=0;d=j[11381]|j[11382]<<8|(j[11383]<<16|j[11384]<<24);c=j[11377]|j[11378]<<8|(j[11379]<<16|j[11380]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11373]|j[11374]<<8|(j[11375]<<16|j[11376]<<24);c=j[11369]|j[11370]<<8|(j[11371]<<16|j[11372]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11365]|j[11366]<<8|(j[11367]<<16|j[11368]<<24);c=j[11361]|j[11362]<<8|(j[11363]<<16|j[11364]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11357]|j[11358]<<8|(j[11359]<<16|j[11360]<<24);c=j[11353]|j[11354]<<8|(j[11355]<<16|j[11356]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}bp(i[e+8>>2]);break h}d=d+1|0;if((t|0)!=(d|0)){continue}break}}h=b+72|0;d=i[b+72>>2];f=i[b+76>>2];o:{if((d|0)==(f|0)){break o}c=f+ -4|0;if(c>>>0<=d>>>0){break o}while(1){m=i[d>>2];i[d>>2]=i[c>>2];i[c>>2]=m;d=d+4|0;c=c+ -4|0;if(d>>>0>>0){continue}break}}ii(h,f,i[e+32>>2],i[e+36>>2]);p:{if(i[b+176>>2]==i[b+172>>2]){break p}d=i[b+8>>2];c=i[d+100>>2];d=i[d+96>>2];g[e+8|0]=0;Uh(q,(c-d|0)/12|0,e+8|0);d=i[b+72>>2];c=i[b+76>>2];if((d|0)==(c|0)){break p}while(1){ji(b,i[d>>2]);d=d+4|0;if((c|0)!=(d|0)){continue}break}}ki(r);c=b+232|0;sf(r,c);f=i[b+280>>2];q:{if(!f){break q}d=1;if(i[b+284>>2]<1){break q}sf(f,c);if(i[b+284>>2]<2){break q}while(1){sf(i[b+280>>2]+(d<<5)|0,c);d=d+1|0;if((d|0)>2]){continue}break}}Jb(i[b+272>>2]-i[b+268>>2]>>2,i[i[b+4>>2]+44>>2]);Jb(i[b+168>>2],i[i[b+4>>2]+44>>2]);if(!li(b)){b=ho(32);i[e+8>>2]=b;i[e+12>>2]=28;i[e+16>>2]=-2147483616;g[b+28|0]=0;d=j[11410]|j[11411]<<8|(j[11412]<<16|j[11413]<<24);g[b+24|0]=d;g[b+25|0]=d>>>8;g[b+26|0]=d>>>16;g[b+27|0]=d>>>24;d=j[11406]|j[11407]<<8|(j[11408]<<16|j[11409]<<24);c=j[11402]|j[11403]<<8|(j[11404]<<16|j[11405]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11398]|j[11399]<<8|(j[11400]<<16|j[11401]<<24);c=j[11394]|j[11395]<<8|(j[11396]<<16|j[11397]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11390]|j[11391]<<8|(j[11392]<<16|j[11393]<<24);c=j[11386]|j[11387]<<8|(j[11388]<<16|j[11389]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}bp(i[e+8>>2]);break h}d=i[i[b+4>>2]+44>>2];c=i[d+20>>2];if((c|0)<0?1:(c|0)<=0?l[d+16>>2]<=0:0){ca(d,i[d+4>>2],i[b+232>>2],i[b+236>>2])}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}a=i[e+32>>2];if(!a){break e}i[e+36>>2]=a;bp(a)}F=e+48|0;return}Ho();x()}Ho();x()}za(11708);x()}function vi(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;e=F-48|0;F=e;a:{if(j[b+352|0]){fm(e+32|0,i[b+8>>2]);c=i[e+32>>2];i[e+32>>2]=0;d=i[b+12>>2];i[b+12>>2]=c;if(!d){break a}bi(d);d=i[e+32>>2];i[e+32>>2]=0;if(!d){break a}bi(d);break a}dm(e+32|0,i[b+8>>2]);c=i[e+32>>2];i[e+32>>2]=0;d=i[b+12>>2];i[b+12>>2]=c;if(!d){break a}bi(d);d=i[e+32>>2];i[e+32>>2]=0;if(!d){break a}bi(d)}b:{c:{d:{d=i[b+12>>2];e:{if(!(i[d+40>>2]!=((i[d+4>>2]-i[d>>2]>>2>>>0)/3|0)?d:0)){b=ho(32);i[e+32>>2]=b;i[e+36>>2]=29;i[e+40>>2]=-2147483616;g[b+29|0]=0;d=j[11281]|j[11282]<<8|(j[11283]<<16|j[11284]<<24);c=j[11277]|j[11278]<<8|(j[11279]<<16|j[11280]<<24);g[b+21|0]=c;g[b+22|0]=c>>>8;g[b+23|0]=c>>>16;g[b+24|0]=c>>>24;g[b+25|0]=d;g[b+26|0]=d>>>8;g[b+27|0]=d>>>16;g[b+28|0]=d>>>24;d=j[11276]|j[11277]<<8|(j[11278]<<16|j[11279]<<24);c=j[11272]|j[11273]<<8|(j[11274]<<16|j[11275]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11268]|j[11269]<<8|(j[11270]<<16|j[11271]<<24);c=j[11264]|j[11265]<<8|(j[11266]<<16|j[11267]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11260]|j[11261]<<8|(j[11262]<<16|j[11263]<<24);c=j[11256]|j[11257]<<8|(j[11258]<<16|j[11259]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}bp(i[e+32>>2]);break e}r=b+200|0;wi(r,b);d=i[b+12>>2];Jb((i[d+28>>2]-i[d+24>>2]>>2)-i[d+44>>2]|0,i[i[b+4>>2]+44>>2]);d=i[b+12>>2];Jb(((i[d+4>>2]-i[d>>2]>>2>>>0)/3|0)-i[d+40>>2]|0,i[i[b+4>>2]+44>>2]);d=i[b+8>>2];c=i[d+100>>2];d=i[d+96>>2];g[e+32|0]=0;q=b+28|0;Uh(q,(c-d|0)/12|0,e+32|0);d=i[b+12>>2];c=i[d+28>>2];d=i[d+24>>2];i[e+32>>2]=-1;Sh(b+52|0,c-d>>2,e+32|0);c=i[b+40>>2];i[b+44>>2]=c;d=i[b+12>>2];f=i[d+4>>2]-i[d>>2]>>2;f=f-((f>>>0)%3|0)|0;f:{if(i[b+48>>2]-c>>2>>>0>=f>>>0){break f}if(f>>>0>=1073741824){break b}h=f<<2;f=ho(h);i[b+44>>2]=f;i[b+40>>2]=f;i[b+48>>2]=f+h;if(!c){break f}bp(c);d=i[b+12>>2]}c=i[d+28>>2];d=i[d+24>>2];g[e+32|0]=0;Uh(b+84|0,c-d>>2,e+32|0);i[b+164>>2]=-1;i[b+168>>2]=0;i[b+100>>2]=i[b+96>>2];i[b+112>>2]=i[b+108>>2];if(i[b+132>>2]){d=i[b+128>>2];if(d){while(1){c=i[d>>2];bp(d);d=c;if(c){continue}break}}i[b+128>>2]=0;c=i[b+124>>2];if(c){d=0;while(1){i[i[b+120>>2]+(d<<2)>>2]=0;d=d+1|0;if((c|0)!=(d|0)){continue}break}}i[b+132>>2]=0}i[b+144>>2]=0;d=i[b+12>>2];c=i[d+28>>2];d=i[d+24>>2];i[e+32>>2]=-1;Sh(b+152|0,c-d>>2,e+32|0);d=i[b+72>>2];i[b+76>>2]=d;c=i[b+12>>2];c=i[c+4>>2]-i[c>>2]>>2;f=(c>>>0)/3|0;g:{if(i[b+80>>2]-d>>2>>>0>=f>>>0){break g}if(c>>>0>=3221225472){break b}f=f<<2;c=ho(f);i[b+76>>2]=c;i[b+72>>2]=c;i[b+80>>2]=c+f;if(!d){break g}bp(d)}i[b- -64>>2]=0;if(!ci(b)){b=ho(32);i[e+32>>2]=b;i[e+36>>2]=29;i[e+40>>2]=-2147483616;g[b+29|0]=0;d=j[11311]|j[11312]<<8|(j[11313]<<16|j[11314]<<24);c=j[11307]|j[11308]<<8|(j[11309]<<16|j[11310]<<24);g[b+21|0]=c;g[b+22|0]=c>>>8;g[b+23|0]=c>>>16;g[b+24|0]=c>>>24;g[b+25|0]=d;g[b+26|0]=d>>>8;g[b+27|0]=d>>>16;g[b+28|0]=d>>>24;d=j[11306]|j[11307]<<8|(j[11308]<<16|j[11309]<<24);c=j[11302]|j[11303]<<8|(j[11304]<<16|j[11305]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11298]|j[11299]<<8|(j[11300]<<16|j[11301]<<24);c=j[11294]|j[11295]<<8|(j[11296]<<16|j[11297]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11290]|j[11291]<<8|(j[11292]<<16|j[11293]<<24);c=j[11286]|j[11287]<<8|(j[11288]<<16|j[11289]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}bp(i[e+32>>2]);break e}if(!xi(b)){b=ho(48);i[e+32>>2]=b;i[e+36>>2]=36;i[e+40>>2]=-2147483600;g[b+36|0]=0;d=j[11348]|j[11349]<<8|(j[11350]<<16|j[11351]<<24);g[b+32|0]=d;g[b+33|0]=d>>>8;g[b+34|0]=d>>>16;g[b+35|0]=d>>>24;d=j[11344]|j[11345]<<8|(j[11346]<<16|j[11347]<<24);c=j[11340]|j[11341]<<8|(j[11342]<<16|j[11343]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11336]|j[11337]<<8|(j[11338]<<16|j[11339]<<24);c=j[11332]|j[11333]<<8|(j[11334]<<16|j[11335]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11328]|j[11329]<<8|(j[11330]<<16|j[11331]<<24);c=j[11324]|j[11325]<<8|(j[11326]<<16|j[11327]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11320]|j[11321]<<8|(j[11322]<<16|j[11323]<<24);c=j[11316]|j[11317]<<8|(j[11318]<<16|j[11319]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}bp(i[e+32>>2]);break e}d=(i[b+176>>2]-i[b+172>>2]|0)/136|0;g[e+31|0]=d;c=b;f=i[i[b+4>>2]+44>>2];h=i[f+20>>2];if((h|0)<0?1:(h|0)<=0?l[f+16>>2]<=0:0){ca(f,i[f+4>>2],e+31|0,e+32|0);d=j[e+31|0]}i[c+284>>2]=d&255;c=i[b+12>>2];d=i[c>>2];c=i[c+4>>2];ei(r);i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;f=c-d|0;h:{if((f|0)>=1){s=b+96|0;d=d-c|0;d=((d|0)>(f|0)?d:f)>>>2|0;t=d>>>0>1?d:1;d=0;while(1){i:{c=(d>>>0)/3|0;p=c>>>5<<2;o=1<>2]>>2]&o){break i}if(Ql(i[b+12>>2],c)){break i}i[e+24>>2]=0;c=fi(b,c,e+24|0);qf(r,c);f=i[e+24>>2];if(c){c=-1;h=-1;m=-1;j:{if((f|0)==-1){break j}n=i[i[b+12>>2]>>2];c=i[n+(f<<2)>>2];k=f+1|0;k=(k>>>0)%3|0?k:f+ -2|0;if((k|0)!=-1){h=i[n+(k<<2)>>2]}k=f+((f>>>0)%3|0?-1:2)|0;if((k|0)==-1){break j}m=i[n+(k<<2)>>2]}n=i[b+84>>2];k=n+(c>>>3&536870908)|0;i[k>>2]=i[k>>2]|1<>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>2];k=i[b+104>>2];k:{if(c>>>0>>0){i[c>>2]=1;i[b+100>>2]=c+4;break k}h=i[s>>2];n=c-h|0;c=n>>2;m=c+1|0;if(m>>>0>=1073741824){break d}u=c<<2;k=k-h|0;c=k>>1;m=k>>2>>>0<536870911?c>>>0>>0?m:c:1073741823;c=0;l:{if(!m){break l}if(m>>>0>=1073741824){break b}c=ho(m<<2)}k=u+c|0;i[k>>2]=1;m=c+(m<<2)|0;k=k+4|0;if((n|0)>=1){hp(c,h,n)}i[b+104>>2]=m;i[b+100>>2]=k;i[b+96>>2]=c;if(!h){break k}bp(h)}c=p+i[q>>2]|0;i[c>>2]=o|i[c>>2];m=-1;if((f|0)!=-1){c=f+1|0;m=(c>>>0)%3|0?c:f+ -2|0}c=i[e+36>>2];o=i[e+40>>2];m:{if(c>>>0>>0){i[c>>2]=m;i[e+36>>2]=c+4;break m}h=i[e+32>>2];p=c-h|0;k=p>>2;n=k+1|0;if(n>>>0>=1073741824){break c}o=o-h|0;c=o>>1;n=o>>2>>>0<536870911?c>>>0>>0?n:c:1073741823;c=0;n:{if(!n){break n}if(n>>>0>=1073741824){break b}c=ho(n<<2)}o=c+(k<<2)|0;i[o>>2]=m;m=c+(n<<2)|0;n=o+4|0;if((p|0)>=1){hp(c,h,p)}i[e+40>>2]=m;i[e+36>>2]=n;i[e+32>>2]=c;if(!h){break m}bp(h)}if((f|0)==-1){break i}c=f+1|0;c=(c>>>0)%3|0?c:f+ -2|0;if((c|0)==-1){break i}c=i[i[i[b+12>>2]+12>>2]+(c<<2)>>2];if((c|0)==-1){break i}f=(c>>>0)/3|0;if(i[i[q>>2]+(f>>>3&268435452)>>2]>>>f&1){break i}if(yi(b,c)){break i}b=ho(48);i[e+8>>2]=b;i[e+12>>2]=32;i[e+16>>2]=-2147483600;g[b+32|0]=0;d=j[11381]|j[11382]<<8|(j[11383]<<16|j[11384]<<24);c=j[11377]|j[11378]<<8|(j[11379]<<16|j[11380]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11373]|j[11374]<<8|(j[11375]<<16|j[11376]<<24);c=j[11369]|j[11370]<<8|(j[11371]<<16|j[11372]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11365]|j[11366]<<8|(j[11367]<<16|j[11368]<<24);c=j[11361]|j[11362]<<8|(j[11363]<<16|j[11364]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11357]|j[11358]<<8|(j[11359]<<16|j[11360]<<24);c=j[11353]|j[11354]<<8|(j[11355]<<16|j[11356]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}bp(i[e+8>>2]);break h}c=b;if((f|0)!=-1){h=f+1|0;f=(h>>>0)%3|0?h:f+ -2|0}else{f=-1}hi(c,f,1);if(yi(b,i[e+24>>2])){break i}b=ho(48);i[e+8>>2]=b;i[e+12>>2]=32;i[e+16>>2]=-2147483600;g[b+32|0]=0;d=j[11381]|j[11382]<<8|(j[11383]<<16|j[11384]<<24);c=j[11377]|j[11378]<<8|(j[11379]<<16|j[11380]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11373]|j[11374]<<8|(j[11375]<<16|j[11376]<<24);c=j[11369]|j[11370]<<8|(j[11371]<<16|j[11372]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11365]|j[11366]<<8|(j[11367]<<16|j[11368]<<24);c=j[11361]|j[11362]<<8|(j[11363]<<16|j[11364]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11357]|j[11358]<<8|(j[11359]<<16|j[11360]<<24);c=j[11353]|j[11354]<<8|(j[11355]<<16|j[11356]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}bp(i[e+8>>2]);break h}d=d+1|0;if((t|0)!=(d|0)){continue}break}}h=b+72|0;d=i[b+72>>2];f=i[b+76>>2];o:{if((d|0)==(f|0)){break o}c=f+ -4|0;if(c>>>0<=d>>>0){break o}while(1){m=i[d>>2];i[d>>2]=i[c>>2];i[c>>2]=m;d=d+4|0;c=c+ -4|0;if(d>>>0>>0){continue}break}}ii(h,f,i[e+32>>2],i[e+36>>2]);p:{if(i[b+176>>2]==i[b+172>>2]){break p}d=i[b+8>>2];c=i[d+100>>2];d=i[d+96>>2];g[e+8|0]=0;Uh(q,(c-d|0)/12|0,e+8|0);d=i[b+72>>2];c=i[b+76>>2];if((d|0)==(c|0)){break p}while(1){ji(b,i[d>>2]);d=d+4|0;if((c|0)!=(d|0)){continue}break}}zi(r);Jb(i[b+324>>2],i[i[b+4>>2]+44>>2]);Jb(i[b+168>>2],i[i[b+4>>2]+44>>2]);if(!li(b)){b=ho(32);i[e+8>>2]=b;i[e+12>>2]=28;i[e+16>>2]=-2147483616;g[b+28|0]=0;d=j[11410]|j[11411]<<8|(j[11412]<<16|j[11413]<<24);g[b+24|0]=d;g[b+25|0]=d>>>8;g[b+26|0]=d>>>16;g[b+27|0]=d>>>24;d=j[11406]|j[11407]<<8|(j[11408]<<16|j[11409]<<24);c=j[11402]|j[11403]<<8|(j[11404]<<16|j[11405]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11398]|j[11399]<<8|(j[11400]<<16|j[11401]<<24);c=j[11394]|j[11395]<<8|(j[11396]<<16|j[11397]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11390]|j[11391]<<8|(j[11392]<<16|j[11393]<<24);c=j[11386]|j[11387]<<8|(j[11388]<<16|j[11389]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}bp(i[e+8>>2]);break h}d=i[i[b+4>>2]+44>>2];c=i[d+20>>2];if((c|0)<0?1:(c|0)<=0?l[d+16>>2]<=0:0){ca(d,i[d+4>>2],i[b+232>>2],i[b+236>>2])}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}a=i[e+32>>2];if(!a){break e}i[e+36>>2]=a;bp(a)}F=e+48|0;return}Ho();x()}Ho();x()}za(11708);x()}function ap(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0;p=F-16|0;F=p;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(a>>>0<=244){g=i[4823];f=a>>>0<11?16:a+11&-8;a=f>>>3|0;b=g>>>a|0;if(b&3){c=a+((b^-1)&1)|0;f=c<<3;b=i[f+19340>>2];a=b+8|0;d=i[b+8>>2];f=f+19332|0;m:{if((d|0)==(f|0)){q=19292,r=yp(-2,c)&g,i[q>>2]=r;break m}i[d+12>>2]=f;i[f+8>>2]=d}c=c<<3;i[b+4>>2]=c|3;b=b+c|0;i[b+4>>2]=i[b+4>>2]|1;break a}k=i[4825];if(f>>>0<=k>>>0){break l}if(b){b=b<>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;c=(c|b)+(a>>>b|0)|0;d=c<<3;b=i[d+19340>>2];a=i[b+8>>2];d=d+19332|0;n:{if((a|0)==(d|0)){g=yp(-2,c)&g;i[4823]=g;break n}i[a+12>>2]=d;i[d+8>>2]=a}a=b+8|0;i[b+4>>2]=f|3;e=b+f|0;c=c<<3;f=c-f|0;i[e+4>>2]=f|1;i[b+c>>2]=f;if(k){c=k>>>3|0;b=(c<<3)+19332|0;d=i[4828];c=1<>2]}i[b+8>>2]=d;i[c+12>>2]=d;i[d+12>>2]=b;i[d+8>>2]=c}i[4828]=e;i[4825]=f;break a}n=i[4824];if(!n){break l}a=(n&0-n)+ -1|0;b=a>>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;b=i[((c|b)+(a>>>b|0)<<2)+19596>>2];e=(i[b+4>>2]&-8)-f|0;c=b;while(1){p:{a=i[c+16>>2];if(!a){a=i[c+20>>2];if(!a){break p}}d=(i[a+4>>2]&-8)-f|0;c=d>>>0>>0;e=c?d:e;b=c?a:b;c=a;continue}break}o=b+f|0;if(o>>>0<=b>>>0){break k}m=i[b+24>>2];d=i[b+12>>2];if((d|0)!=(b|0)){a=i[b+8>>2];i[a+12>>2]=d;i[d+8>>2]=a;break b}c=b+20|0;a=i[c>>2];if(!a){a=i[b+16>>2];if(!a){break j}c=b+16|0}while(1){h=c;d=a;c=a+20|0;a=i[c>>2];if(a){continue}c=d+16|0;a=i[d+16>>2];if(a){continue}break}i[h>>2]=0;break b}f=-1;if(a>>>0>4294967231){break l}a=a+11|0;f=a&-8;k=i[4824];if(!k){break l}h=31;e=0-f|0;if(f>>>0<=16777215){b=a>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;g=c<>>16&2;a=(g<>>15|0)-(c|(a|b))|0;h=(a<<1|f>>>a+21&1)+28|0}c=i[(h<<2)+19596>>2];q:{r:{s:{if(!c){a=0;break s}a=0;b=f<<((h|0)==31?0:25-(h>>>1|0)|0);while(1){t:{g=(i[c+4>>2]&-8)-f|0;if(g>>>0>=e>>>0){break t}d=c;e=g;if(e){break t}e=0;a=c;break r}g=i[c+20>>2];c=i[((b>>>29&4)+c|0)+16>>2];a=g?(g|0)==(c|0)?a:g:a;b=b<<1;if(c){continue}break}}if(!(a|d)){a=2<>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;a=i[((c|b)+(a>>>b|0)<<2)+19596>>2]}if(!a){break q}}while(1){c=(i[a+4>>2]&-8)-f|0;b=c>>>0>>0;e=b?c:e;d=b?a:d;b=i[a+16>>2];if(b){a=b}else{a=i[a+20>>2]}if(a){continue}break}}if(!d|e>>>0>=i[4825]-f>>>0){break l}h=d+f|0;if(h>>>0<=d>>>0){break k}m=i[d+24>>2];b=i[d+12>>2];if((d|0)!=(b|0)){a=i[d+8>>2];i[a+12>>2]=b;i[b+8>>2]=a;break c}c=d+20|0;a=i[c>>2];if(!a){a=i[d+16>>2];if(!a){break i}c=d+16|0}while(1){g=c;b=a;c=a+20|0;a=i[c>>2];if(a){continue}c=b+16|0;a=i[b+16>>2];if(a){continue}break}i[g>>2]=0;break c}b=i[4825];if(b>>>0>=f>>>0){a=i[4828];c=b-f|0;u:{if(c>>>0>=16){i[4825]=c;d=a+f|0;i[4828]=d;i[d+4>>2]=c|1;i[a+b>>2]=c;i[a+4>>2]=f|3;break u}i[4828]=0;i[4825]=0;i[a+4>>2]=b|3;b=a+b|0;i[b+4>>2]=i[b+4>>2]|1}a=a+8|0;break a}d=i[4826];if(d>>>0>f>>>0){b=d-f|0;i[4826]=b;a=i[4829];c=a+f|0;i[4829]=c;i[c+4>>2]=b|1;i[a+4>>2]=f|3;a=a+8|0;break a}a=0;e=f+47|0;c=e;if(i[4941]){b=i[4943]}else{i[4944]=-1;i[4945]=-1;i[4942]=4096;i[4943]=4096;i[4941]=p+12&-16^1431655768;i[4946]=0;i[4934]=0;b=4096}g=c+b|0;h=0-b|0;c=g&h;if(c>>>0<=f>>>0){break a}b=i[4933];if(b){k=i[4931];m=k+c|0;if(m>>>0<=k>>>0|m>>>0>b>>>0){break a}}if(j[19736]&4){break f}v:{w:{b=i[4829];if(b){a=19740;while(1){k=i[a>>2];if(k+i[a+4>>2]>>>0>b>>>0?k>>>0<=b>>>0:0){break w}a=i[a+8>>2];if(a){continue}break}}b=cp(0);if((b|0)==-1){break g}g=c;a=i[4942];d=a+ -1|0;if(d&b){g=(c-b|0)+(b+d&0-a)|0}if(g>>>0<=f>>>0|g>>>0>2147483646){break g}a=i[4933];if(a){d=i[4931];h=d+g|0;if(h>>>0<=d>>>0|h>>>0>a>>>0){break g}}a=cp(g);if((b|0)!=(a|0)){break v}break e}g=h&g-d;if(g>>>0>2147483646){break g}b=cp(g);if((b|0)==(i[a>>2]+i[a+4>>2]|0)){break h}a=b}if(!((a|0)==-1|f+48>>>0<=g>>>0)){b=i[4943];b=b+(e-g|0)&0-b;if(b>>>0>2147483646){b=a;break e}if((cp(b)|0)!=-1){g=b+g|0;b=a;break e}cp(0-g|0);break g}b=a;if((a|0)!=-1){break e}break g}x()}d=0;break b}b=0;break c}if((b|0)!=-1){break e}}i[4934]=i[4934]|4}if(c>>>0>2147483646){break d}b=cp(c);a=cp(0);if(b>>>0>=a>>>0|(b|0)==-1|(a|0)==-1){break d}g=a-b|0;if(g>>>0<=f+40>>>0){break d}}a=i[4931]+g|0;i[4931]=a;if(a>>>0>l[4932]){i[4932]=a}x:{y:{z:{e=i[4829];if(e){a=19740;while(1){c=i[a>>2];d=i[a+4>>2];if((c+d|0)==(b|0)){break z}a=i[a+8>>2];if(a){continue}break}break y}a=i[4827];if(!(b>>>0>=a>>>0?a:0)){i[4827]=b}a=0;i[4936]=g;i[4935]=b;i[4831]=-1;i[4832]=i[4941];i[4938]=0;while(1){c=a<<3;d=c+19332|0;i[c+19340>>2]=d;i[c+19344>>2]=d;a=a+1|0;if((a|0)!=32){continue}break}a=g+ -40|0;c=b+8&7?-8-b&7:0;d=a-c|0;i[4826]=d;c=b+c|0;i[4829]=c;i[c+4>>2]=d|1;i[(a+b|0)+4>>2]=40;i[4830]=i[4945];break x}if(j[a+12|0]&8|b>>>0<=e>>>0|c>>>0>e>>>0){break y}i[a+4>>2]=d+g;a=e+8&7?-8-e&7:0;b=a+e|0;i[4829]=b;c=i[4826]+g|0;a=c-a|0;i[4826]=a;i[b+4>>2]=a|1;i[(c+e|0)+4>>2]=40;i[4830]=i[4945];break x}d=i[4827];if(b>>>0>>0){i[4827]=b;d=0}c=b+g|0;a=19740;A:{B:{C:{D:{E:{F:{while(1){if((c|0)!=i[a>>2]){a=i[a+8>>2];if(a){continue}break F}break}if(!(j[a+12|0]&8)){break E}}a=19740;while(1){c=i[a>>2];if(c>>>0<=e>>>0){d=c+i[a+4>>2]|0;if(d>>>0>e>>>0){break D}}a=i[a+8>>2];continue}}i[a>>2]=b;i[a+4>>2]=i[a+4>>2]+g;m=(b+8&7?-8-b&7:0)+b|0;i[m+4>>2]=f|3;b=c+(c+8&7?-8-c&7:0)|0;a=(b-m|0)-f|0;h=f+m|0;if((b|0)==(e|0)){i[4829]=h;a=i[4826]+a|0;i[4826]=a;i[h+4>>2]=a|1;break B}if(i[4828]==(b|0)){i[4828]=h;a=i[4825]+a|0;i[4825]=a;i[h+4>>2]=a|1;i[a+h>>2]=a;break B}c=i[b+4>>2];if((c&3)==1){n=c&-8;G:{if(c>>>0<=255){f=c>>>3|0;c=i[b+8>>2];d=i[b+12>>2];if((d|0)==(c|0)){q=19292,r=i[4823]&yp(-2,f),i[q>>2]=r;break G}i[c+12>>2]=d;i[d+8>>2]=c;break G}k=i[b+24>>2];g=i[b+12>>2];H:{if((g|0)!=(b|0)){c=i[b+8>>2];i[c+12>>2]=g;i[g+8>>2]=c;break H}I:{e=b+20|0;f=i[e>>2];if(f){break I}e=b+16|0;f=i[e>>2];if(f){break I}g=0;break H}while(1){c=e;g=f;e=f+20|0;f=i[e>>2];if(f){continue}e=g+16|0;f=i[g+16>>2];if(f){continue}break}i[c>>2]=0}if(!k){break G}c=i[b+28>>2];d=(c<<2)+19596|0;J:{if(i[d>>2]==(b|0)){i[d>>2]=g;if(g){break J}q=19296,r=i[4824]&yp(-2,c),i[q>>2]=r;break G}i[k+(i[k+16>>2]==(b|0)?16:20)>>2]=g;if(!g){break G}}i[g+24>>2]=k;c=i[b+16>>2];if(c){i[g+16>>2]=c;i[c+24>>2]=g}c=i[b+20>>2];if(!c){break G}i[g+20>>2]=c;i[c+24>>2]=g}b=b+n|0;a=a+n|0}i[b+4>>2]=i[b+4>>2]&-2;i[h+4>>2]=a|1;i[a+h>>2]=a;if(a>>>0<=255){b=a>>>3|0;a=(b<<3)+19332|0;c=i[4823];b=1<>2]}i[a+8>>2]=h;i[b+12>>2]=h;i[h+12>>2]=a;i[h+8>>2]=b;break B}e=31;if(a>>>0<=16777215){c=a>>>8|0;b=c+1048320>>>16&8;d=c<>>16&4;f=d<>>16&2;b=(f<>>15|0)-(d|(b|c))|0;e=(b<<1|a>>>b+21&1)+28|0}i[h+28>>2]=e;i[h+16>>2]=0;i[h+20>>2]=0;b=(e<<2)+19596|0;c=i[4824];d=1<>2]=h;i[h+24>>2]=b;break L}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=i[b>>2];while(1){c=b;if((i[b+4>>2]&-8)==(a|0)){break C}b=e>>>29|0;e=e<<1;d=(c+(b&4)|0)+16|0;b=i[d>>2];if(b){continue}break}i[d>>2]=h;i[h+24>>2]=c}i[h+12>>2]=h;i[h+8>>2]=h;break B}a=g+ -40|0;c=b+8&7?-8-b&7:0;h=a-c|0;i[4826]=h;c=b+c|0;i[4829]=c;i[c+4>>2]=h|1;i[(a+b|0)+4>>2]=40;i[4830]=i[4945];a=(d+(d+ -39&7?39-d&7:0)|0)+ -47|0;c=a>>>0>>0?e:a;i[c+4>>2]=27;a=i[4938];i[c+16>>2]=i[4937];i[c+20>>2]=a;a=i[4936];i[c+8>>2]=i[4935];i[c+12>>2]=a;i[4937]=c+8;i[4936]=g;i[4935]=b;i[4938]=0;a=c+24|0;while(1){i[a+4>>2]=7;b=a+8|0;a=a+4|0;if(d>>>0>b>>>0){continue}break}if((c|0)==(e|0)){break x}i[c+4>>2]=i[c+4>>2]&-2;d=c-e|0;i[e+4>>2]=d|1;i[c>>2]=d;if(d>>>0<=255){b=d>>>3|0;a=(b<<3)+19332|0;c=i[4823];b=1<>2]}i[a+8>>2]=e;i[b+12>>2]=e;i[e+12>>2]=a;i[e+8>>2]=b;break x}a=31;i[e+16>>2]=0;i[e+20>>2]=0;if(d>>>0<=16777215){b=d>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;g=c<>>16&2;a=(g<>>15|0)-(c|(a|b))|0;a=(a<<1|d>>>a+21&1)+28|0}i[e+28>>2]=a;b=(a<<2)+19596|0;c=i[4824];g=1<>2]=e;i[e+24>>2]=b;break N}a=d<<((a|0)==31?0:25-(a>>>1|0)|0);b=i[b>>2];while(1){c=b;if((d|0)==(i[b+4>>2]&-8)){break A}b=a>>>29|0;a=a<<1;g=(c+(b&4)|0)+16|0;b=i[g>>2];if(b){continue}break}i[g>>2]=e;i[e+24>>2]=c}i[e+12>>2]=e;i[e+8>>2]=e;break x}a=i[c+8>>2];i[a+12>>2]=h;i[c+8>>2]=h;i[h+24>>2]=0;i[h+12>>2]=c;i[h+8>>2]=a}a=m+8|0;break a}a=i[c+8>>2];i[a+12>>2]=e;i[c+8>>2]=e;i[e+24>>2]=0;i[e+12>>2]=c;i[e+8>>2]=a}a=i[4826];if(a>>>0<=f>>>0){break d}b=a-f|0;i[4826]=b;a=i[4829];c=a+f|0;i[4829]=c;i[c+4>>2]=b|1;i[a+4>>2]=f|3;a=a+8|0;break a}i[4805]=48;a=0;break a}O:{if(!m){break O}a=i[d+28>>2];c=(a<<2)+19596|0;P:{if(i[c>>2]==(d|0)){i[c>>2]=b;if(b){break P}k=yp(-2,a)&k;i[4824]=k;break O}i[m+(i[m+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break O}}i[b+24>>2]=m;a=i[d+16>>2];if(a){i[b+16>>2]=a;i[a+24>>2]=b}a=i[d+20>>2];if(!a){break O}i[b+20>>2]=a;i[a+24>>2]=b}Q:{if(e>>>0<=15){a=e+f|0;i[d+4>>2]=a|3;a=a+d|0;i[a+4>>2]=i[a+4>>2]|1;break Q}i[d+4>>2]=f|3;i[h+4>>2]=e|1;i[e+h>>2]=e;if(e>>>0<=255){b=e>>>3|0;a=(b<<3)+19332|0;c=i[4823];b=1<>2]}i[a+8>>2]=h;i[b+12>>2]=h;i[h+12>>2]=a;i[h+8>>2]=b;break Q}a=31;if(e>>>0<=16777215){b=e>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;f=c<>>16&2;a=(f<>>15|0)-(c|(a|b))|0;a=(a<<1|e>>>a+21&1)+28|0}i[h+28>>2]=a;i[h+16>>2]=0;i[h+20>>2]=0;b=(a<<2)+19596|0;S:{c=1<>2]=h;break T}a=e<<((a|0)==31?0:25-(a>>>1|0)|0);f=i[b>>2];while(1){b=f;if((i[b+4>>2]&-8)==(e|0)){break S}c=a>>>29|0;a=a<<1;c=(b+(c&4)|0)+16|0;f=i[c>>2];if(f){continue}break}i[c>>2]=h}i[h+24>>2]=b;i[h+12>>2]=h;i[h+8>>2]=h;break Q}a=i[b+8>>2];i[a+12>>2]=h;i[b+8>>2]=h;i[h+24>>2]=0;i[h+12>>2]=b;i[h+8>>2]=a}a=d+8|0;break a}U:{if(!m){break U}a=i[b+28>>2];c=(a<<2)+19596|0;V:{if(i[c>>2]==(b|0)){i[c>>2]=d;if(d){break V}q=19296,r=yp(-2,a)&n,i[q>>2]=r;break U}i[(i[m+16>>2]==(b|0)?16:20)+m>>2]=d;if(!d){break U}}i[d+24>>2]=m;a=i[b+16>>2];if(a){i[d+16>>2]=a;i[a+24>>2]=d}a=i[b+20>>2];if(!a){break U}i[d+20>>2]=a;i[a+24>>2]=d}W:{if(e>>>0<=15){a=e+f|0;i[b+4>>2]=a|3;a=a+b|0;i[a+4>>2]=i[a+4>>2]|1;break W}i[b+4>>2]=f|3;i[o+4>>2]=e|1;i[e+o>>2]=e;if(k){c=k>>>3|0;a=(c<<3)+19332|0;d=i[4828];c=1<>2]}i[a+8>>2]=d;i[c+12>>2]=d;i[d+12>>2]=a;i[d+8>>2]=c}i[4828]=o;i[4825]=e}a=b+8|0}F=p+16|0;return a|0}function Cn(a,b,c,d,e,f,g,h,j){var k=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=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;o=F-192|0;F=o;A=h;J=j&65535;q=d;t=e&65535;D=(e^j)&-2147483648;p=j>>>16&32767;a:{w=e>>>16&32767;b:{c:{if(p+ -1>>>0<32766?w+ -1>>>0<=32765:0){break c}n=e&2147483647;k=n;m=d;if(!(!d&(k|0)==2147418112?!(b|c):(k|0)==2147418112&d>>>0<0|k>>>0<2147418112)){L=d;D=e|32768;break b}n=j&2147483647;e=n;d=h;if(!(!d&(e|0)==2147418112?!(f|g):(e|0)==2147418112&d>>>0<0|e>>>0<2147418112)){L=h;D=j|32768;b=f;c=g;break b}if(!(b|m|(k^2147418112|c))){if(!(d|f|(e^2147418112|g))){b=0;c=0;D=2147450880;break b}D=D|2147418112;b=0;c=0;break b}if(!(d|f|(e^2147418112|g))){b=0;c=0;break b}if(!(b|m|(c|k))){break a}if(!(d|f|(e|g))){D=D|2147418112;b=0;c=0;break b}if((k|0)==65535|k>>>0<65535){j=b;d=!(q|t);h=d<<6;k=r(d?b:q)+32|0;b=r(d?c:t);b=h+((b|0)==32?k:b)|0;sn(o+176|0,j,c,q,t,b+ -15|0);l=16-b|0;q=i[o+184>>2];t=i[o+188>>2];c=i[o+180>>2];b=i[o+176>>2]}if(e>>>0>65535){break c}d=!(A|J);e=d<<6;h=r(d?f:A)+32|0;d=r(d?g:J);d=e+((d|0)==32?h:d)|0;sn(o+160|0,f,g,A,J,d+ -15|0);l=(d+l|0)+ -16|0;A=i[o+168>>2];J=i[o+172>>2];f=i[o+160>>2];g=i[o+164>>2]}e=J|65536;K=e;P=A;d=A;n=e<<15|d>>>17;d=d<<15|g>>>17;h=-102865788-d|0;e=n;k=e;j=1963258675-(k+(4192101508>>0)|0)|0;Bn(o+144|0,d,k,h,j);m=i[o+152>>2];Bn(o+128|0,0-m|0,0-(i[o+156>>2]+(0>>0)|0)|0,h,j);h=i[o+136>>2];j=h<<1|i[o+132>>2]>>>31;h=i[o+140>>2]<<1|h>>>31;Bn(o+112|0,j,h,d,k);m=h;h=i[o+120>>2];Bn(o+96|0,j,m,0-h|0,0-(i[o+124>>2]+(0>>0)|0)|0);h=i[o+104>>2];j=h<<1|i[o+100>>2]>>>31;h=i[o+108>>2]<<1|h>>>31;Bn(o+80|0,j,h,d,k);m=h;h=i[o+88>>2];Bn(o- -64|0,j,m,0-h|0,0-(i[o+92>>2]+(0>>0)|0)|0);h=i[o+72>>2];j=h<<1|i[o+68>>2]>>>31;h=i[o+76>>2]<<1|h>>>31;Bn(o+48|0,j,h,d,k);m=h;h=i[o+56>>2];Bn(o+32|0,j,m,0-h|0,0-(i[o+60>>2]+(0>>0)|0)|0);h=i[o+40>>2];j=h<<1|i[o+36>>2]>>>31;h=i[o+44>>2]<<1|h>>>31;Bn(o+16|0,j,h,d,k);k=h;h=i[o+24>>2];Bn(o,j,k,0-h|0,0-(i[o+28>>2]+(0>>0)|0)|0);N=(w-p|0)+l|0;h=i[o+8>>2];m=i[o+12>>2]<<1|h>>>31;j=h<<1;n=m+ -1|0;j=(i[o+4>>2]>>>31|j)+ -1|0;if((j|0)!=-1){n=n+1|0}h=j;m=0;B=m;s=e;l=0;w=up(h,m,e,l);e=H;u=e;y=n;p=0;h=d;m=up(n,p,d,0);d=m+w|0;k=H+e|0;e=d;k=d>>>0>>0?k+1|0:k;m=0;n=(k|0)==(u|0)&e>>>0>>0|k>>>0>>0;w=up(s,l,y,p);l=w+k|0;k=H+(m|n)|0;k=l>>>0>>0?k+1|0:k;m=l;n=e;e=0;h=up(j,B,h,v);d=e+h|0;l=H+n|0;l=d>>>0>>0?l+1|0:l;w=d;h=d;d=l;e=(n|0)==(d|0)&h>>>0>>0|d>>>0>>0;h=m+e|0;if(h>>>0>>0){k=k+1|0}C=h;h=k;e=g;z=(e&131071)<<15|f>>>17;s=up(j,B,z,0);e=H;v=e;k=f;x=k<<15&-32768;k=up(y,p,x,0);m=k+s|0;l=H+e|0;l=m>>>0>>0?l+1|0:l;e=l;G=up(j,B,x,G);x=0+G|0;k=m;l=k+H|0;l=x>>>0>>0?l+1|0:l;l=(k|0)==(l|0)&x>>>0>>0|l>>>0>>0;k=(e|0)==(v|0)&k>>>0>>0|e>>>0>>0;m=e;e=up(y,p,z,E)+e|0;n=k+H|0;n=e>>>0>>0?n+1|0:n;k=e;e=l+k|0;m=n;m=e>>>0>>0?m+1|0:m;n=e;e=w+e|0;k=m+d|0;k=e>>>0>>0?k+1|0:k;l=h;u=k;d=(d|0)==(k|0)&e>>>0>>0|k>>>0>>0;h=d+C|0;if(h>>>0>>0){l=l+1|0}k=l;d=(e|0)!=0|(u|0)!=0;h=h+d|0;if(h>>>0>>0){k=k+1|0}n=h;h=0-h|0;s=0;w=up(h,s,j,B);d=H;v=d;x=up(y,p,h,s);h=H;C=h;z=0-((0>>0)+k|0)|0;k=0;s=up(j,B,z,k);n=s+x|0;l=H+h|0;l=n>>>0>>0?l+1|0:l;h=n;m=h;s=0+w|0;n=d+m|0;n=s>>>0>>0?n+1|0:n;m=s;d=n;n=(v|0)==(d|0)&m>>>0>>0|d>>>0>>0;m=(l|0)==(C|0)&h>>>0>>0|l>>>0>>0;h=up(y,p,z,k)+l|0;k=m+H|0;k=h>>>0>>0?k+1|0:k;m=h;h=n+m|0;if(h>>>0>>0){k=k+1|0}z=h;h=k;n=s;m=0-((0>>0)+u|0)|0;e=0-e|0;E=m;u=0;C=up(m,u,j,B);x=H;v=e;G=0;m=up(e,G,y,p);e=m+C|0;l=H+x|0;l=e>>>0>>0?l+1|0:l;m=e;e=l;v=up(j,B,v,G);j=0+v|0;k=m;l=k+H|0;l=j>>>0>>0?l+1|0:l;l=(k|0)==(l|0)&j>>>0>>0|l>>>0>>0;k=(e|0)==(x|0)&k>>>0>>0|e>>>0>>0;j=e;e=up(E,u,y,p)+e|0;m=k+H|0;m=e>>>0>>0?m+1|0:m;j=e;e=l+e|0;k=m;k=e>>>0>>0?k+1|0:k;j=e;e=e+n|0;k=k+d|0;k=e>>>0>>0?k+1|0:k;j=e;l=h;e=k;d=(d|0)==(k|0)&j>>>0>>0|k>>>0>>0;h=d+z|0;if(h>>>0>>0){l=l+1|0}d=h;k=l;l=d;n=e+ -1|0;d=j+ -2|0;if(d>>>0<4294967294){n=n+1|0}h=d;m=d;d=n;e=(e|0)==(d|0)&m>>>0>>0|d>>>0>>0;j=l+e|0;if(j>>>0>>0){k=k+1|0}e=j+ -1|0;l=k+ -1|0;l=(e|0)!=-1?l+1|0:l;j=0;y=j;p=e;m=q;x=m<<2|c>>>30;z=0;u=up(e,j,x,z);j=H;m=j;j=c;E=(j&1073741823)<<2|b>>>30;w=0;G=l;j=0;k=up(E,w,l,j);e=k+u|0;n=H+m|0;n=e>>>0>>0?n+1|0:n;k=e;s=n;v=(m|0)==(n|0)&k>>>0>>0|n>>>0>>0;m=n;n=0;u=n;l=0;C=d;I=((t&1073741823)<<2|q>>>30)&-262145|262144;e=up(d,n,I,0);d=e+k|0;m=H+m|0;m=d>>>0>>0?m+1|0:m;q=d;e=m;d=(s|0)==(e|0)&d>>>0>>0|e>>>0>>0;m=d+v|0;if(m>>>0>>0){l=1}c=m;m=up(G,j,I,M);d=c+m|0;k=H+l|0;s=d;n=d>>>0>>0?k+1|0:k;l=up(p,y,I,M);k=H;t=up(x,z,G,j);d=t+l|0;m=H+k|0;m=d>>>0>>0?m+1|0:m;t=d;d=m;m=(k|0)==(d|0)&t>>>0>>0|d>>>0>>0;s=d+s|0;l=m+n|0;k=s;m=k>>>0>>0?l+1|0:l;c=k;n=e+t|0;l=0;d=l+q|0;if(d>>>0>>0){n=n+1|0}t=d;k=d;d=n;e=(e|0)==(d|0)&k>>>0>>0|d>>>0>>0;k=c+e|0;if(k>>>0>>0){m=m+1|0}Q=k;e=t;l=d;q=up(E,w,C,u);n=H;s=h;v=up(h,0,x,z);h=v+q|0;k=H+n|0;k=h>>>0>>0?k+1|0:k;B=h;v=h;h=k;q=(n|0)==(k|0)&v>>>0>>0|k>>>0>>0;c=e;k=0;S=q;O=b<<2&-4;q=up(p,y,O,0);e=q+v|0;n=H+h|0;n=e>>>0>>0?n+1|0:n;v=e;q=e;e=n;h=(h|0)==(e|0)&q>>>0>>0|e>>>0>>0;n=S+h|0;if(n>>>0>>0){k=1}h=c+n|0;l=k+l|0;l=h>>>0>>0?l+1|0:l;q=h;n=m;h=l;d=(d|0)==(l|0)&q>>>0>>0|l>>>0>>0;m=d+Q|0;if(m>>>0>>0){n=n+1|0}c=m;t=q;B=h;Q=up(G,j,O,R);G=H;j=up(s,T,I,M);d=j+Q|0;m=H+G|0;m=d>>>0>>0?m+1|0:m;I=d;k=up(x,z,C,u);d=d+k|0;j=m;l=m+H|0;l=d>>>0>>0?l+1|0:l;x=d;m=up(p,y,E,w);d=d+m|0;k=H+l|0;p=d;k=d>>>0>>0?k+1|0:k;y=0;m=n;d=k;k=(k|0)==(l|0)&p>>>0>>0|k>>>0>>0;n=(j|0)==(G|0)&I>>>0>>0|j>>>0>>0;j=(j|0)==(l|0)&x>>>0>>0|l>>>0>>0;n=n+j|0;n>>>0>>0;l=n;j=k+l|0;l=j;k=d|0;j=k+t|0;l=(l|y)+B|0;l=j>>>0>>0?l+1|0:l;B=j;t=l;h=(h|0)==(l|0)&j>>>0>>0|l>>>0>>0;j=h+c|0;if(j>>>0>>0){m=m+1|0}z=j;j=m;q=B;y=t;l=v;C=up(C,u,O,R);u=H;m=up(E,w,s,T);h=m+C|0;n=H+u|0;n=h>>>0>>0?n+1|0:n;m=n;n=0;k=(m|0)==(u|0)&h>>>0>>0|m>>>0>>0;h=m+l|0;l=(k|n)+e|0;l=h>>>0>>0?l+1|0:l;m=h;k=m;k=(e|0)==(l|0)&k>>>0>>0|l>>>0>>0;e=l;c=k;l=p;p=0;d=p+m|0;k=e+l|0;k=d>>>0

>>0?k+1|0:k;d=(e|0)==(k|0)&d>>>0>>0|k>>>0>>0;e=c+d|0;if(e>>>0>>0){n=1}d=e+q|0;m=n+y|0;h=d;k=j;m=d>>>0>>0?m+1|0:m;j=m;d=(t|0)==(m|0)&d>>>0>>0|m>>>0>>0;e=d+z|0;if(e>>>0>>0){k=k+1|0}d=e;e=k;d:{if((k|0)==131071|k>>>0<131071){m=h;y=0;x=0;n=up(m,y,f,x);l=H;k=b<<17;b=0;c=(n|0)!=0|(l|0)!=0;q=b-c|0;I=k-(b>>>0>>0)|0;w=0-n|0;u=0-((0>>0)+l|0)|0;c=0;z=up(j,c,f,x);b=H;E=b;p=0;l=up(m,y,g,p);k=l+z|0;n=H+b|0;n=k>>>0>>0?n+1|0:n;b=k;l=k;s=0;k=s;v=l;k=(l|0)==(u|0)&w>>>0>>0|u>>>0>>0;B=q-k|0;q=I-(q>>>0>>0)|0;k=up(d,0,f,x);l=H;t=up(m,y,A,0);k=t+k|0;m=H+l|0;m=k>>>0>>0?m+1|0:m;t=up(j,c,g,p);k=t+k|0;l=H+m|0;l=k>>>0>>0?l+1|0:l;m=l;l=(n|0)==(E|0)&b>>>0>>0|n>>>0>>0;b=n+k|0;l=l+m|0;l=b>>>0>>0?l+1|0:l;n=b;b=l;m=up(h,j,K,0);l=H;t=n;n=up(f,g,e,0);m=n+m|0;k=H+l|0;k=m>>>0>>0?k+1|0:k;n=up(d,e,g,p);m=n+m|0;l=H+k|0;k=m;m=up(j,c,A,J);c=k+m|0;k=c;m=0;c=t+m|0;k=b+k|0;b=c;t=B-b|0;c=q-((B>>>0>>0)+(b>>>0>>0?k+1|0:k)|0)|0;N=N+ -1|0;A=w-s|0;b=u-((w>>>0>>0)+v|0)|0;break d}B=j>>>1|0;n=0;m=b<<16;c=0;l=d<<31;h=(j&1)<<31|h>>>1;j=j>>>1|l;z=0;p=f;E=0;b=up(h,z,p,E);k=H;l=k;k=(b|0)!=0|(k|0)!=0;u=c-k|0;M=m-(c>>>0>>0)|0;s=0-b|0;v=0-((0>>0)+l|0)|0;q=0;w=up(h,z,g,q);b=H;I=b;m=n;l=e<<31|d>>>1;n=d<<31|B;O=l|m;m=up(n,0,p,E);c=m+w|0;k=H+b|0;k=c>>>0>>0?k+1|0:k;b=k;k=c;x=k;y=0;m=(k|0)==(v|0)&s>>>0>>0|v>>>0>>0;C=u-m|0;u=M-(u>>>0>>0)|0;m=up(h,j,K,0);l=H;k=up(p,g,e>>>1|0,0);m=k+m|0;l=H+l|0;l=m>>>0>>0?l+1|0:l;d=(e&1)<<31|d>>>1;e=e>>>1|0;M=up(d,e,g,q);m=M+m|0;k=H+l|0;l=up(n,O,A,J);m=l+m|0;J=0;k=up(g,q,n,R);l=H;p=up(d,0,p,E);n=p+k|0;k=H+l|0;k=n>>>0

>>0?k+1|0:k;A=up(h,z,A,0);n=A+n|0;l=H+k|0;l=n>>>0>>0?l+1|0:l;A=n;n=((b|0)==(I|0)&c>>>0>>0|b>>>0>>0)+l|0;c=b;b=b+A|0;if(b>>>0>>0){n=n+1|0}c=b;b=b+J|0;k=m+n|0;k=b>>>0>>0?k+1|0:k;t=C-b|0;c=u-((C>>>0>>0)+k|0)|0;A=s-y|0;b=v-((s>>>0>>0)+x|0)|0}if((N|0)>=16384){D=D|2147418112;b=0;c=0;break b}m=N+16383|0;if((N|0)<=-16383){e:{if(m){break e}m=j;p=A;l=b<<1|p>>>31;n=p<<1;g=(g|0)==(l|0)&n>>>0>f>>>0|l>>>0>g>>>0;n=e&65535;f=t;l=c<<1|f>>>31;c=f<<1|b>>>31;e=c;b=(e|0)==(P|0)&(l|0)==(K|0)?g:(K|0)==(l|0)&e>>>0>P>>>0|l>>>0>K>>>0;c=b+h|0;if(c>>>0>>0){m=m+1|0}b=c;e=b;c=m;e=d+((j|0)==(m|0)&e>>>0>>0|m>>>0>>0)|0;if(e>>>0>>0){n=n+1|0}d=n;if(!(d&65536)){break e}L=e|L;D=d|D;break b}b=0;c=0;break b}k=j;e=e&65535;p=A;n=b<<1|p>>>31;p=p<<1;g=(g|0)==(n|0)&p>>>0>=f>>>0|n>>>0>g>>>0;f=t;n=c<<1|f>>>31;c=f<<1|b>>>31;b=(c|0)==(P|0)&(n|0)==(K|0)?g:(K|0)==(n|0)&c>>>0>=P>>>0|n>>>0>K>>>0;c=b+h|0;if(c>>>0>>0){k=k+1|0}b=c;c=k;f=d;d=((j|0)==(k|0)&b>>>0>>0|k>>>0>>0)+d|0;k=m<<16|e;L=d|L;D=D|(d>>>0>>0?k+1|0:k)}i[a>>2]=b;i[a+4>>2]=c;i[a+8>>2]=L;i[a+12>>2]=D;F=o+192|0;return}i[a>>2]=0;i[a+4>>2]=0;b=!(d|f|(e|g));i[a+8>>2]=b?0:L;i[a+12>>2]=b?2147450880:D;F=o+192|0}function Gd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var h=0,k=0,l=0,m=0,n=0,p=0,r=0,t=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=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,V=0,W=0,X=0,Y=0,Z=0,_=0;k=F-224|0;F=k;i[a+8>>2]=e;l=a+32|0;h=i[l>>2];f=i[a+36>>2]-h>>2;a:{if(f>>>0>>0){Bd(l,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=h+(e<<2)}b:{if(!d){break b}m=1;h=i[b>>2];c:{if((d|0)<=1){l=h;break c}l=h;while(1){f=i[(m<<2)+b>>2];n=(f|0)<(l|0);l=n?f:l;h=n?h:(f|0)>(h|0)?f:h;m=m+1|0;if((m|0)!=(d|0)){continue}break}}i[a+16>>2]=h;i[a+12>>2]=l;d=l;f=(h>>31)-((h>>>0>>0)+(d>>31)|0)|0;d=h-d|0;if(!f&d>>>0>2147483646|f>>>0>0){break b}d=d+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}W=i[a+52>>2];y=i[a+48>>2];i[k+184>>2]=0;i[k+188>>2]=0;i[k+176>>2]=0;i[k+180>>2]=0;i[k+168>>2]=0;i[k+172>>2]=0;d=k+160|0;i[d>>2]=0;i[d+4>>2]=0;i[k+152>>2]=0;i[k+156>>2]=0;i[k+144>>2]=0;i[k+148>>2]=0;d:{if(!e){m=0;d=0;break d}Bd(k+144|0,e);m=i[d>>2];d=i[k+156>>2]}f=m-d>>2;e:{if(f>>>0>=e>>>0){if(f>>>0<=e>>>0){break e}i[k+160>>2]=d+(e<<2);break e}Bd(k+144|12,e-f|0)}f=i[k+168>>2];d=i[k+172>>2]-f>>2;f:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break f}i[k+172>>2]=f+(e<<2);break f}Bd(k+168|0,e-d|0)}f=i[k+180>>2];d=i[k+184>>2]-f>>2;g:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break g}i[k+184>>2]=f+(e<<2);break g}Bd(k+180|0,e-d|0)}i[k+136>>2]=0;i[k+128>>2]=0;i[k+132>>2]=0;h:{i:{if(e){if(e>>>0>=1073741824){break i}d=e<<2;f=ho(d);i[k+128>>2]=f;l=d+f|0;i[k+136>>2]=l;ip(f,0,d);i[k+132>>2]=l}K=a+152|0;f=i[a+152>>2];d=i[a+156>>2]-f>>2;j:{if(d>>>0>>0){Bd(K,e-d|0);break j}if(d>>>0<=e>>>0){break j}i[a+156>>2]=f+(e<<2)}i[k+104>>2]=0;i[k+108>>2]=0;i[k+96>>2]=0;i[k+100>>2]=0;i[k+88>>2]=0;i[k+92>>2]=0;i[k+80>>2]=0;i[k+84>>2]=0;i[k+72>>2]=0;i[k+76>>2]=0;d=k- -64|0;i[d>>2]=0;i[d+4>>2]=0;i[k+56>>2]=0;i[k+60>>2]=0;i[k+48>>2]=0;i[k+52>>2]=0;if(e){d=e<<2;C=ho(d);d=ip(C,0,d)+d|0}else{d=0}f=i[a+56>>2];m=i[f>>2];f=i[f+4>>2]-m|0;if((f|0)<5){break h}P=d;J=f>>>2|0;l=J+ -1|0;if(f>>2>>>0>l>>>0){Q=e<<2;L=a+112|0;X=k+125|0;R=k+36|0;S=k+24|0;M=k+20|0;Y=M+24|0;T=M+16|0;G=(e|0)<1;while(1){n=0;D=l;d=i[(l<<2)+m>>2];k:{if((d|0)==-1){break k}r=d+((d>>>0)%3|0?-1:2)|0;z=r>>>5|0;l=1;B=1<>2];p=0;m=d;while(1){l:{if(i[I+(m>>>3&536870908)>>2]>>>m&1){break l}f=i[i[i[y+64>>2]+12>>2]+(m<<2)>>2];if((f|0)==-1){break l}n=i[W>>2];h=i[y+28>>2];A=i[n+(i[h+(f<<2)>>2]<<2)>>2];if((A|0)>=(D|0)){break l}t=f+1|0;t=i[n+(i[h+(((t>>>0)%3|0?t:f+ -2|0)<<2)>>2]<<2)>>2];if((t|0)>=(D|0)){break l}f=i[n+(i[h+(f+((f>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((f|0)>=(D|0)){break l}if(!G){n=i[(k+144|0)+o(p,12)>>2];f=o(e,f);t=o(e,t);A=o(e,A);h=0;while(1){i[n+(h<<2)>>2]=(i[(f+h<<2)+b>>2]+i[(h+t<<2)+b>>2]|0)-i[(h+A<<2)+b>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}n=4;p=p+1|0;if((p|0)==4){break k}}m:{if(l&1){h=-1;f=m+1|0;f=(f>>>0)%3|0?f:m+ -2|0;if((f|0)==-1|i[i[y>>2]+(f>>>3&536870908)>>2]>>>f&1){break m}f=i[i[i[y+64>>2]+12>>2]+(f<<2)>>2];if((f|0)==-1){break m}h=f+1|0;h=(h>>>0)%3|0?h:f+ -2|0;break m}h=-1;f=((m>>>0)%3|0?-1:2)+m|0;if((f|0)==-1|i[i[y>>2]+(f>>>3&536870908)>>2]>>>f&1){break m}f=i[i[i[y+64>>2]+12>>2]+(f<<2)>>2];if((f|0)==-1){break m}if((f>>>0)%3|0){h=f+ -1|0;break m}h=f+2|0}if((d|0)==(h|0)){n=p;break k}m=h;f=(h|0)!=-1;h=(f|l^-1)&1;m=h?m:-1;l=f&l;if(!((r|0)==-1|h)){if(B&i[i[y>>2]+(z<<2)>>2]){n=p;break k}f=i[i[i[y+64>>2]+12>>2]+(r<<2)>>2];if((f|0)==-1){n=p;break k}if((f>>>0)%3|0){m=f+ -1|0}else{m=f+2|0}l=0}n=p;if((m|0)!=-1){continue}break}}m=0;g[k+16|0]=0;i[k+8>>2]=0;i[k+12>>2]=0;i[Y>>2]=0;i[T>>2]=0;i[T+4>>2]=0;d=M;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;U=o(e,D)<<2;I=U+b|0;p=(o(J+ -2|0,e)<<2)+b|0;h=i[a+152>>2];l=0;if(!G){while(1){f=l<<2;d=i[f+p>>2]-i[f+I>>2]|0;i[f+C>>2]=d;i[f+h>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;f=d;d=d>>31;m=(f+d^d)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}dg(k+200|0,L,h,e);d=gg(k+200|0);l=H;h=hg(k+200|0);f=h+d|0;d=H+l|0;d=f>>>0>>0?d+1|0:d;l=f;N=(n|0)<1;if(!N){r=(n<<3)+ -8|0;h=r+(k+48|0)|0;z=h;O=h;f=i[h+4>>2];B=i[h>>2];h=n;B=B+h|0;if(B>>>0>>0){f=f+1|0}h=B;i[O>>2]=h;i[z+4>>2]=f;w=v(bg(h,i[r+(k+80|0)>>2])*(+(h>>>0)+ +(f|0)*4294967296));n:{if(q(w)<0x8000000000000000){h=q(w)>=1?w>0?~~s(u(w*2.3283064365386963e-10),4294967295)>>>0:~~v((w- +(~~w>>>0>>>0))*2.3283064365386963e-10)>>>0:0;f=~~w>>>0;break n}h=-2147483648;f=0}d=d+h|0;f=f+l|0;if(f>>>0>>0){d=d+1|0}l=f}i[k+20>>2]=0;g[k+16|0]=0;i[k+8>>2]=l;i[k+12>>2]=m;ra(S,p,p+Q|0);Hd(R,C,P);if(!N){z=(k+124|0)+n|0;B=z+ -2|0;r=z+ -1|0;d=(n<<3)+ -8|0;V=d+(k+48|0)|0;O=d+(k+80|0)|0;p=1;A=0;while(1){ip(k+124|0,1,n);A=A+1|0;ip(k+124|0,0,A);o:{p:while(1){if(!G){ip(i[k+128>>2],0,Q)}d=0;f=i[k+128>>2];t=0;while(1){if(!j[(k+124|0)+d|0]){if(!G){l=i[(k+144|0)+o(d,12)>>2];h=0;while(1){m=h<<2;E=m+f|0;i[E>>2]=i[E>>2]+i[l+m>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}t=1<>2];while(1){f=d+(h<<2)|0;i[f>>2]=i[f>>2]/(p|0);h=h+1|0;if((h|0)!=(e|0)){continue}break}if((e|0)>0){break r}}f=i[a+152>>2];m=0;break q}E=i[k+128>>2];f=i[a+152>>2];m=0;l=0;while(1){h=l<<2;d=i[h+E>>2]-i[h+I>>2]|0;i[h+C>>2]=d;i[f+h>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;h=d;d=d>>31;m=(h+d^d)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}dg(k+200|0,L,f,e);f=gg(k+200|0)+hg(k+200|0)|0;h=f;if((n|0)>0){d=i[V+4>>2];f=i[V>>2];w=v(bg(f,i[O>>2]+p|0)*(+(f>>>0)+ +(d|0)*4294967296));s:{if(q(w)<0x8000000000000000){d=~~w>>>0;break s}d=0}h=d+h|0}d=i[k+8>>2];if(!((h|0)>(d|0)|(m|0)>=i[k+12>>2]?(h|0)>=(d|0):0)){i[k+20>>2]=p;g[k+16|0]=t;i[k+8>>2]=h;i[k+12>>2]=m;Hd(S,i[k+128>>2],i[k+132>>2]);Hd(R,C,P)}if((r|0)==(k+124|0)){break o}m=-1;d=j[r|0];h=d;while(1){l=h&255;f=m+ -1|0;t=f+z|0;h=j[t|0];if(h>>>0>>0){f=r;l=z;if(h>>>0>=(d&255)>>>0){while(1){d=f;f=d+ -1|0;E=l+ -2|0;l=d;if(h>>>0>=j[E|0]){continue}break}d=1}l=m+z|0;g[t|0]=d;g[f|0]=h;h=r;if((m|0)==-1){continue p}while(1){d=j[l|0];g[l|0]=j[h|0];g[h|0]=d;l=l+1|0;h=h+ -1|0;if(l>>>0>>0){continue}break}continue p}m=f;if((t|0)!=(k+124|0)){continue}break}break}if(r>>>0<=k+124>>>0){break o}f=j[k+124|0];g[k+124|0]=d;g[r|0]=f;m=X;h=B;if(m>>>0>=h>>>0){break o}while(1){d=j[m|0];g[m|0]=j[h|0];g[h|0]=d;m=m+1|0;h=h+ -1|0;if(m>>>0>>0){continue}break}}p=p+1|0;if((n|0)!=(A|0)){continue}break}}if((n|0)>0){d=((n<<3)+k|0)+72|0;l=d;h=i[k+20>>2];f=h+i[d>>2]|0;d=i[d+4>>2]+(h>>31)|0;i[l>>2]=f;i[l+4>>2]=f>>>0>>0?d+1|0:d}t:{if((e|0)<=0){l=i[K>>2];break t}l=i[K>>2];h=0;f=i[k+36>>2];while(1){m=h<<2;d=i[m+f>>2];i[l+m>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;h=h+1|0;if((h|0)!=(e|0)){continue}break}}fg(k+200|0,L,l,e);u:{if(N){break u}d=o(n,12)+a|0;r=d+56|0;l=d+52|0;d=d+48|0;m=0;while(1){v:{p=i[r>>2];f=p<<5;h=i[l>>2];w:{if(!(j[k+16|0]>>>m&1)){if((f|0)==(h|0)){if((h+1|0)<=-1){break v}f=d;if(h>>>0<=1073741822){h=h+32&-32;p=p<<6;h=p>>>0>>0?h:p}else{h=2147483647}bd(f,h);h=i[l>>2]}i[l>>2]=h+1;f=i[d>>2]+(h>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>>0<=1073741822){h=h+32&-32;p=p<<6;h=p>>>0>>0?h:p}else{h=2147483647}bd(f,h);h=i[l>>2]}i[l>>2]=h+1;f=i[d>>2]+(h>>>3&536870908)|0;p=i[f>>2];Z=f,_=yp(-2,h)&p,i[Z>>2]=_}m=m+1|0;if((n|0)!=(m|0)){continue}break u}break}Ho();x()}m=i[a+8>>2];if((m|0)>=1){p=c+U|0;d=i[k+24>>2];n=0;while(1){h=0;x:{if((m|0)<=0){f=i[a+32>>2];break x}while(1){l=h<<2;m=i[l+d>>2];r=i[a+16>>2];y:{if((m|0)>(r|0)){f=i[a+32>>2];i[l+f>>2]=r;break y}f=i[a+32>>2];l=l+f|0;r=i[a+12>>2];if((m|0)<(r|0)){i[l>>2]=r;break y}i[l>>2]=m}h=h+1|0;if((h|0)>2]){continue}break}}l=n<<2;d=l+p|0;l=i[l+I>>2]-i[f+l>>2]|0;i[d>>2]=l;z:{if((l|0)>2]){h=l+i[a+20>>2]|0}else{if((l|0)<=i[a+24>>2]){break z}h=l-i[a+20>>2]|0}i[d>>2]=h}d=f;n=n+1|0;m=i[a+8>>2];if((n|0)<(m|0)){continue}break}}d=i[k+36>>2];if(d){i[k+40>>2]=d;bp(d)}d=i[k+24>>2];if(d){i[k+28>>2]=d;bp(d)}if((J|0)<3){break h}J=D;d=i[a+56>>2];m=i[d>>2];l=D+ -1|0;if(i[d+4>>2]-m>>2>>>0>l>>>0){continue}break}}Io();x()}Ho();x()}if((e|0)>=1){ip(i[k+144>>2],0,e<<2)}m=i[a+8>>2];if((m|0)>=1){f=i[k+144>>2];d=0;while(1){h=0;A:{if((m|0)<=0){m=i[a+32>>2];break A}while(1){e=h<<2;l=i[e+f>>2];n=i[a+16>>2];B:{if((l|0)>(n|0)){m=i[a+32>>2];i[e+m>>2]=n;break B}m=i[a+32>>2];e=e+m|0;n=i[a+12>>2];if((l|0)<(n|0)){i[e>>2]=n;break B}i[e>>2]=l}h=h+1|0;if((h|0)>2]){continue}break}}f=d<<2;e=f+c|0;f=i[b+f>>2]-i[f+m>>2]|0;i[e>>2]=f;C:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break C}f=f-i[a+20>>2]|0}i[e>>2]=f}f=m;d=d+1|0;m=i[a+8>>2];if((d|0)<(m|0)){continue}break}}if(C){bp(C)}a=i[k+128>>2];if(a){i[k+132>>2]=a;bp(a)}a=i[k+180>>2];if(a){i[k+184>>2]=a;bp(a)}a=i[k+168>>2];if(a){i[k+172>>2]=a;bp(a)}a=i[k+156>>2];if(a){i[k+160>>2]=a;bp(a)}a=i[k+144>>2];if(a){i[k+148>>2]=a;bp(a)}F=k+224|0;return 1}function de(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var h=0,k=0,l=0,m=0,n=0,p=0,r=0,t=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=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,V=0,W=0,X=0,Y=0,Z=0,_=0;k=F-224|0;F=k;i[a+8>>2]=e;l=a+32|0;h=i[l>>2];f=i[a+36>>2]-h>>2;a:{if(f>>>0>>0){Bd(l,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=h+(e<<2)}b:{if(!d){break b}m=1;h=i[b>>2];c:{if((d|0)<=1){l=h;break c}l=h;while(1){f=i[(m<<2)+b>>2];n=(f|0)<(l|0);l=n?f:l;h=n?h:(f|0)>(h|0)?f:h;m=m+1|0;if((m|0)!=(d|0)){continue}break}}i[a+16>>2]=h;i[a+12>>2]=l;d=l;f=(h>>31)-((h>>>0>>0)+(d>>31)|0)|0;d=h-d|0;if(!f&d>>>0>2147483646|f>>>0>0){break b}d=d+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}V=i[a+52>>2];N=i[a+48>>2];i[k+184>>2]=0;i[k+188>>2]=0;i[k+176>>2]=0;i[k+180>>2]=0;i[k+168>>2]=0;i[k+172>>2]=0;d=k+160|0;i[d>>2]=0;i[d+4>>2]=0;i[k+152>>2]=0;i[k+156>>2]=0;i[k+144>>2]=0;i[k+148>>2]=0;d:{if(!e){m=0;d=0;break d}Bd(k+144|0,e);m=i[d>>2];d=i[k+156>>2]}f=m-d>>2;e:{if(f>>>0>=e>>>0){if(f>>>0<=e>>>0){break e}i[k+160>>2]=d+(e<<2);break e}Bd(k+144|12,e-f|0)}f=i[k+168>>2];d=i[k+172>>2]-f>>2;f:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break f}i[k+172>>2]=f+(e<<2);break f}Bd(k+168|0,e-d|0)}f=i[k+180>>2];d=i[k+184>>2]-f>>2;g:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break g}i[k+184>>2]=f+(e<<2);break g}Bd(k+180|0,e-d|0)}i[k+136>>2]=0;i[k+128>>2]=0;i[k+132>>2]=0;h:{i:{if(e){if(e>>>0>=1073741824){break i}d=e<<2;f=ho(d);i[k+128>>2]=f;l=d+f|0;i[k+136>>2]=l;ip(f,0,d);i[k+132>>2]=l}J=a+152|0;f=i[a+152>>2];d=i[a+156>>2]-f>>2;j:{if(d>>>0>>0){Bd(J,e-d|0);break j}if(d>>>0<=e>>>0){break j}i[a+156>>2]=f+(e<<2)}i[k+104>>2]=0;i[k+108>>2]=0;i[k+96>>2]=0;i[k+100>>2]=0;i[k+88>>2]=0;i[k+92>>2]=0;i[k+80>>2]=0;i[k+84>>2]=0;i[k+72>>2]=0;i[k+76>>2]=0;d=k- -64|0;i[d>>2]=0;i[d+4>>2]=0;i[k+56>>2]=0;i[k+60>>2]=0;i[k+48>>2]=0;i[k+52>>2]=0;if(e){d=e<<2;A=ho(d);d=ip(A,0,d)+d|0}else{d=0}f=i[a+56>>2];m=i[f>>2];f=i[f+4>>2]-m|0;if((f|0)<5){break h}O=d;I=f>>>2|0;l=I+ -1|0;if(f>>2>>>0>l>>>0){P=e<<2;K=a+112|0;W=k+125|0;Q=k+36|0;R=k+24|0;L=k+20|0;X=L+24|0;S=L+16|0;G=(e|0)<1;while(1){n=0;B=l;l=i[(l<<2)+m>>2];k:{if((l|0)==-1){break k}m=i[N+12>>2];C=l+((l>>>0)%3|0?-1:2)|0;D=m+(C<<2)|0;t=1;p=0;d=l;while(1){h=i[m+(d<<2)>>2];l:{if((h|0)==-1){break l}f=-1;r=i[V>>2];n=i[N>>2];y=i[r+(i[n+(h<<2)>>2]<<2)>>2];w=h+1|0;w=(w>>>0)%3|0?w:h+ -2|0;if((w|0)!=-1){w=i[n+(w<<2)>>2]}else{w=-1}h=h+((h>>>0)%3|0?-1:2)|0;if((h|0)!=-1){f=i[n+(h<<2)>>2]}if((y|0)>=(B|0)){break l}h=i[(w<<2)+r>>2];if((h|0)>=(B|0)){break l}f=i[r+(f<<2)>>2];if((f|0)>=(B|0)){break l}n=i[(k+144|0)+o(p,12)>>2];if(!G){f=o(e,f);r=o(e,h);y=o(e,y);h=0;while(1){i[n+(h<<2)>>2]=(i[(f+h<<2)+b>>2]+i[(h+r<<2)+b>>2]|0)-i[(h+y<<2)+b>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}n=4;p=p+1|0;if((p|0)==4){break k}}m:{if(t&1){n=d+1|0;d=(n>>>0)%3|0?n:d+ -2|0;f=-1;if((d|0)==-1){break m}d=i[m+(d<<2)>>2];f=-1;if((d|0)==-1){break m}f=d+1|0;f=(f>>>0)%3|0?f:d+ -2|0;break m}d=((d>>>0)%3|0?-1:2)+d|0;f=-1;if((d|0)==-1){break m}d=i[m+(d<<2)>>2];f=-1;if((d|0)==-1){break m}f=d+ -1|0;if((d>>>0)%3|0){break m}f=d+2|0}if((f|0)==(l|0)){n=p;break k}d=f;f=(f|0)!=-1;h=(f|t^-1)&1;d=h?d:-1;t=f&t;if(!((C|0)==-1|h)){f=i[D>>2];if((f|0)==-1){n=p;break k}t=0;if((f>>>0)%3|0){d=f+ -1|0}else{d=f+2|0}}n=p;if((d|0)!=-1){continue}break}}m=0;g[k+16|0]=0;i[k+8>>2]=0;i[k+12>>2]=0;i[X>>2]=0;i[S>>2]=0;i[S+4>>2]=0;d=L;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;T=o(e,B)<<2;C=T+b|0;p=(o(I+ -2|0,e)<<2)+b|0;h=i[a+152>>2];l=0;if(!G){while(1){f=l<<2;d=i[f+p>>2]-i[f+C>>2]|0;i[f+A>>2]=d;i[f+h>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;f=d;d=d>>31;m=(f+d^d)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}dg(k+200|0,K,h,e);d=gg(k+200|0);l=H;h=hg(k+200|0);f=h+d|0;d=H+l|0;d=f>>>0>>0?d+1|0:d;l=f;M=(n|0)<1;if(!M){r=(n<<3)+ -8|0;h=r+(k+48|0)|0;y=h;t=h;f=i[h+4>>2];w=i[h>>2];h=n;w=w+h|0;if(w>>>0>>0){f=f+1|0}h=w;i[t>>2]=h;i[y+4>>2]=f;z=v(bg(h,i[r+(k+80|0)>>2])*(+(h>>>0)+ +(f|0)*4294967296));n:{if(q(z)<0x8000000000000000){h=q(z)>=1?z>0?~~s(u(z*2.3283064365386963e-10),4294967295)>>>0:~~v((z- +(~~z>>>0>>>0))*2.3283064365386963e-10)>>>0:0;f=~~z>>>0;break n}h=-2147483648;f=0}d=d+h|0;f=f+l|0;if(f>>>0>>0){d=d+1|0}l=f}i[k+20>>2]=0;g[k+16|0]=0;i[k+8>>2]=l;i[k+12>>2]=m;ra(R,p,p+P|0);Hd(Q,A,O);if(!M){y=(k+124|0)+n|0;w=y+ -2|0;r=y+ -1|0;d=(n<<3)+ -8|0;U=d+(k+48|0)|0;Y=d+(k+80|0)|0;p=1;D=0;while(1){ip(k+124|0,1,n);D=D+1|0;ip(k+124|0,0,D);o:{p:while(1){if(!G){ip(i[k+128>>2],0,P)}d=0;f=i[k+128>>2];t=0;while(1){if(!j[(k+124|0)+d|0]){if(!G){l=i[(k+144|0)+o(d,12)>>2];h=0;while(1){m=h<<2;E=m+f|0;i[E>>2]=i[E>>2]+i[l+m>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}t=1<>2];while(1){f=d+(h<<2)|0;i[f>>2]=i[f>>2]/(p|0);h=h+1|0;if((h|0)!=(e|0)){continue}break}if((e|0)>0){break r}}f=i[a+152>>2];m=0;break q}E=i[k+128>>2];f=i[a+152>>2];m=0;l=0;while(1){h=l<<2;d=i[h+E>>2]-i[h+C>>2]|0;i[h+A>>2]=d;i[f+h>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;h=d;d=d>>31;m=(h+d^d)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}dg(k+200|0,K,f,e);f=gg(k+200|0)+hg(k+200|0)|0;h=f;if((n|0)>0){d=i[U+4>>2];f=i[U>>2];z=v(bg(f,i[Y>>2]+p|0)*(+(f>>>0)+ +(d|0)*4294967296));s:{if(q(z)<0x8000000000000000){d=~~z>>>0;break s}d=0}h=d+h|0}d=i[k+8>>2];if(!((h|0)>(d|0)|(m|0)>=i[k+12>>2]?(h|0)>=(d|0):0)){i[k+20>>2]=p;g[k+16|0]=t;i[k+8>>2]=h;i[k+12>>2]=m;Hd(R,i[k+128>>2],i[k+132>>2]);Hd(Q,A,O)}if((r|0)==(k+124|0)){break o}m=-1;d=j[r|0];h=d;while(1){l=h&255;f=m+ -1|0;t=f+y|0;h=j[t|0];if(h>>>0>>0){f=r;l=y;if(h>>>0>=(d&255)>>>0){while(1){d=f;f=d+ -1|0;E=l+ -2|0;l=d;if(h>>>0>=j[E|0]){continue}break}d=1}l=m+y|0;g[t|0]=d;g[f|0]=h;h=r;if((m|0)==-1){continue p}while(1){d=j[l|0];g[l|0]=j[h|0];g[h|0]=d;l=l+1|0;h=h+ -1|0;if(l>>>0>>0){continue}break}continue p}m=f;if((t|0)!=(k+124|0)){continue}break}break}if(r>>>0<=k+124>>>0){break o}f=j[k+124|0];g[k+124|0]=d;g[r|0]=f;m=W;h=w;if(m>>>0>=h>>>0){break o}while(1){d=j[m|0];g[m|0]=j[h|0];g[h|0]=d;m=m+1|0;h=h+ -1|0;if(m>>>0>>0){continue}break}}p=p+1|0;if((n|0)!=(D|0)){continue}break}}if((n|0)>0){d=((n<<3)+k|0)+72|0;l=d;h=i[k+20>>2];f=h+i[d>>2]|0;d=i[d+4>>2]+(h>>31)|0;i[l>>2]=f;i[l+4>>2]=f>>>0>>0?d+1|0:d}t:{if((e|0)<=0){l=i[J>>2];break t}l=i[J>>2];h=0;f=i[k+36>>2];while(1){m=h<<2;d=i[m+f>>2];i[l+m>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;h=h+1|0;if((h|0)!=(e|0)){continue}break}}fg(k+200|0,K,l,e);u:{if(M){break u}d=o(n,12)+a|0;r=d+56|0;l=d+52|0;d=d+48|0;m=0;while(1){v:{p=i[r>>2];f=p<<5;h=i[l>>2];w:{if(!(j[k+16|0]>>>m&1)){if((f|0)==(h|0)){if((h+1|0)<=-1){break v}f=d;if(h>>>0<=1073741822){h=h+32&-32;p=p<<6;h=p>>>0>>0?h:p}else{h=2147483647}bd(f,h);h=i[l>>2]}i[l>>2]=h+1;f=i[d>>2]+(h>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>>0<=1073741822){h=h+32&-32;p=p<<6;h=p>>>0>>0?h:p}else{h=2147483647}bd(f,h);h=i[l>>2]}i[l>>2]=h+1;f=i[d>>2]+(h>>>3&536870908)|0;p=i[f>>2];Z=f,_=yp(-2,h)&p,i[Z>>2]=_}m=m+1|0;if((n|0)!=(m|0)){continue}break u}break}Ho();x()}m=i[a+8>>2];if((m|0)>=1){p=c+T|0;d=i[k+24>>2];n=0;while(1){h=0;x:{if((m|0)<=0){f=i[a+32>>2];break x}while(1){l=h<<2;m=i[l+d>>2];r=i[a+16>>2];y:{if((m|0)>(r|0)){f=i[a+32>>2];i[l+f>>2]=r;break y}f=i[a+32>>2];l=l+f|0;r=i[a+12>>2];if((m|0)<(r|0)){i[l>>2]=r;break y}i[l>>2]=m}h=h+1|0;if((h|0)>2]){continue}break}}l=n<<2;d=l+p|0;l=i[l+C>>2]-i[f+l>>2]|0;i[d>>2]=l;z:{if((l|0)>2]){h=l+i[a+20>>2]|0}else{if((l|0)<=i[a+24>>2]){break z}h=l-i[a+20>>2]|0}i[d>>2]=h}d=f;n=n+1|0;m=i[a+8>>2];if((n|0)<(m|0)){continue}break}}d=i[k+36>>2];if(d){i[k+40>>2]=d;bp(d)}d=i[k+24>>2];if(d){i[k+28>>2]=d;bp(d)}if((I|0)<3){break h}I=B;d=i[a+56>>2];m=i[d>>2];l=B+ -1|0;if(i[d+4>>2]-m>>2>>>0>l>>>0){continue}break}}Io();x()}Ho();x()}if((e|0)>=1){ip(i[k+144>>2],0,e<<2)}m=i[a+8>>2];if((m|0)>=1){f=i[k+144>>2];d=0;while(1){h=0;A:{if((m|0)<=0){m=i[a+32>>2];break A}while(1){e=h<<2;l=i[e+f>>2];n=i[a+16>>2];B:{if((l|0)>(n|0)){m=i[a+32>>2];i[e+m>>2]=n;break B}m=i[a+32>>2];e=e+m|0;n=i[a+12>>2];if((l|0)<(n|0)){i[e>>2]=n;break B}i[e>>2]=l}h=h+1|0;if((h|0)>2]){continue}break}}f=d<<2;e=f+c|0;f=i[b+f>>2]-i[f+m>>2]|0;i[e>>2]=f;C:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break C}f=f-i[a+20>>2]|0}i[e>>2]=f}f=m;d=d+1|0;m=i[a+8>>2];if((d|0)<(m|0)){continue}break}}if(A){bp(A)}a=i[k+128>>2];if(a){i[k+132>>2]=a;bp(a)}a=i[k+180>>2];if(a){i[k+184>>2]=a;bp(a)}a=i[k+168>>2];if(a){i[k+172>>2]=a;bp(a)}a=i[k+156>>2];if(a){i[k+160>>2]=a;bp(a)}a=i[k+144>>2];if(a){i[k+148>>2]=a;bp(a)}F=k+224|0;return 1}function ln(a,b,c,d,e,f){var g=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,I=0,J=0;g=F-8976|0;F=g;y=d+e|0;E=0-y|0;a:{b:{while(1){c:{if((c|0)!=48){if((c|0)!=46){break a}c=i[b+4>>2];if(c>>>0>=l[b+104>>2]){break c}i[b+4>>2]=c+1;c=j[c|0];break b}c=i[b+4>>2];if(c>>>0>2]){k=1;i[b+4>>2]=c+1;c=j[c|0]}else{k=1;c=fn(b)}continue}break}c=fn(b)}n=1;if((c|0)!=48){break a}while(1){h=h+ -1|0;c=m+ -1|0;if((c|0)!=-1){h=h+1|0}m=c;c=i[b+4>>2];d:{if(c>>>0>2]){i[b+4>>2]=c+1;c=j[c|0];break d}c=fn(b)}if((c|0)==48){continue}break}k=1}i[g+784>>2]=0;e:{f:{s=(c|0)==46;r=c+ -48|0;g:{h:{i:{if(s|r>>>0<=9){while(1){j:{if(s&1){if(!n){m=q;h=p;n=1;break j}k=!k;break i}q=q+1|0;if(q>>>0<1){p=p+1|0}if((t|0)<=2044){x=(c|0)==48?x:q;k=(g+784|0)+(t<<2)|0;s=k;if(u){r=(o(i[k>>2],10)+c|0)+ -48|0}i[s>>2]=r;k=1;r=u+1|0;c=(r|0)==9;u=c?0:r;t=c+t|0;break j}if((c|0)==48){break j}i[g+8960>>2]=i[g+8960>>2]|1;x=18396}c=i[b+4>>2];k:{if(c>>>0>2]){i[b+4>>2]=c+1;c=j[c|0];break k}c=fn(b)}s=(c|0)==46;r=c+ -48|0;if(s|r>>>0<10){continue}break}}m=n?m:q;h=n?h:p;if(!(!k|(c&-33)!=69)){n=mn(b);c=H;s=c;l:{if(n|(c|0)!=-2147483648){break l}n=0;s=0;if(!i[b+104>>2]){break l}i[b+4>>2]=i[b+4>>2]+ -1}if(!k){break g}h=h+s|0;b=m+n|0;if(b>>>0>>0){h=h+1|0}m=b;break f}k=!k;if((c|0)<0){break h}}if(!i[b+104>>2]){break h}i[b+4>>2]=i[b+4>>2]+ -1}if(!k){break f}}i[4805]=28;q=0;p=0;en(b);c=0;b=0;break e}b=i[g+784>>2];if(!b){xn(g,+(f|0)*0);q=i[g>>2];p=i[g+4>>2];c=i[g+12>>2];b=i[g+8>>2];break e}if(!((m|0)!=(q|0)|(h|0)!=(p|0)|((p|0)>0?1:(p|0)>=0?q>>>0>9:0)|(b>>>d|0?(d|0)<=30:0))){An(g+48|0,f);En(g+32|0,b);yn(g+16|0,i[g+48>>2],i[g+52>>2],i[g+56>>2],i[g+60>>2],i[g+32>>2],i[g+36>>2],i[g+40>>2],i[g+44>>2]);q=i[g+16>>2];p=i[g+20>>2];c=i[g+28>>2];b=i[g+24>>2];break e}if((h|0)>0?1:(h|0)>=0?m>>>0>(e|0)/-2>>>0:0){i[4805]=68;An(g+96|0,f);yn(g+80|0,i[g+96>>2],i[g+100>>2],i[g+104>>2],i[g+108>>2],-1,-1,-1,2147418111);yn(g- -64|0,i[g+80>>2],i[g+84>>2],i[g+88>>2],i[g+92>>2],-1,-1,-1,2147418111);q=i[g+64>>2];p=i[g+68>>2];c=i[g+76>>2];b=i[g+72>>2];break e}b=e+ -226|0;c=m>>>0>>0;b=b>>31;if((h|0)<(b|0)?1:(h|0)<=(b|0)?c:0){i[4805]=68;An(g+144|0,f);yn(g+128|0,i[g+144>>2],i[g+148>>2],i[g+152>>2],i[g+156>>2],0,0,0,65536);yn(g+112|0,i[g+128>>2],i[g+132>>2],i[g+136>>2],i[g+140>>2],0,0,0,65536);q=i[g+112>>2];p=i[g+116>>2];c=i[g+124>>2];b=i[g+120>>2];break e}if(u){if((u|0)<=8){c=(g+784|0)+(t<<2)|0;b=i[c>>2];while(1){b=o(b,10);u=u+1|0;if((u|0)!=9){continue}break}i[c>>2]=b}t=t+1|0}m:{n=m;if((x|0)>(n|0)|(x|0)>=9|(n|0)>17){break m}if((n|0)==9){An(g+192|0,f);En(g+176|0,i[g+784>>2]);yn(g+160|0,i[g+192>>2],i[g+196>>2],i[g+200>>2],i[g+204>>2],i[g+176>>2],i[g+180>>2],i[g+184>>2],i[g+188>>2]);q=i[g+160>>2];p=i[g+164>>2];c=i[g+172>>2];b=i[g+168>>2];break e}if((n|0)<=8){An(g+272|0,f);En(g+256|0,i[g+784>>2]);yn(g+240|0,i[g+272>>2],i[g+276>>2],i[g+280>>2],i[g+284>>2],i[g+256>>2],i[g+260>>2],i[g+264>>2],i[g+268>>2]);An(g+224|0,i[(0-n<<2)+17616>>2]);Cn(g+208|0,i[g+240>>2],i[g+244>>2],i[g+248>>2],i[g+252>>2],i[g+224>>2],i[g+228>>2],i[g+232>>2],i[g+236>>2]);q=i[g+208>>2];p=i[g+212>>2];c=i[g+220>>2];b=i[g+216>>2];break e}b=(o(n,-3)+d|0)+27|0;c=i[g+784>>2];if(c>>>b|0?(b|0)<=30:0){break m}An(g+352|0,f);En(g+336|0,c);yn(g+320|0,i[g+352>>2],i[g+356>>2],i[g+360>>2],i[g+364>>2],i[g+336>>2],i[g+340>>2],i[g+344>>2],i[g+348>>2]);An(g+304|0,i[(n<<2)+17544>>2]);yn(g+288|0,i[g+320>>2],i[g+324>>2],i[g+328>>2],i[g+332>>2],i[g+304>>2],i[g+308>>2],i[g+312>>2],i[g+316>>2]);q=i[g+288>>2];p=i[g+292>>2];c=i[g+300>>2];b=i[g+296>>2];break e}while(1){c=t;t=c+ -1|0;if(!i[(g+784|0)+(t<<2)>>2]){continue}break}u=0;b=(n|0)%9|0;n:{if(!b){k=0;break n}r=(n|0)>-1?b:b+9|0;o:{if(!c){k=0;c=0;break o}h=i[(0-r<<2)+17616>>2];p=1e9/(h|0)|0;s=0;b=0;k=0;while(1){m=s;q=(g+784|0)+(b<<2)|0;s=i[q>>2];t=(s>>>0)/(h>>>0)|0;m=m+t|0;i[q>>2]=m;m=!m&(b|0)==(k|0);k=m?k+1&2047:k;n=m?n+ -9|0:n;s=o(p,s-o(h,t)|0);b=b+1|0;if((c|0)!=(b|0)){continue}break}if(!s){break o}i[(g+784|0)+(c<<2)>>2]=s;c=c+1|0}n=(n-r|0)+9|0}while(1){q=(g+784|0)+(k<<2)|0;p:{while(1){if((n|0)!=36|l[q>>2]>=10384593?(n|0)>=36:0){break p}t=c+2047|0;s=0;r=c;while(1){c=r;p=t&2047;t=(g+784|0)+(p<<2)|0;b=i[t>>2];h=b>>>3|0;r=b<<29;b=r+s|0;if(b>>>0>>0){h=h+1|0}m=b;r=0;q:{if(!h&b>>>0<1000000001|h>>>0<0){break q}r=wp(b,h,1e9,0);m=m-up(r,H,1e9,0)|0}s=r;i[t>>2]=m;r=(p|0)!=(c+ -1&2047)?c:(p|0)==(k|0)?c:m?c:p;t=p+ -1|0;if((p|0)!=(k|0)){continue}break}u=u+ -29|0;if(!s){continue}break}k=k+ -1&2047;if((r|0)==(k|0)){b=(g+784|0)+((r+2046&2047)<<2)|0;c=r+ -1&2047;i[b>>2]=i[b>>2]|i[(g+784|0)+(c<<2)>>2]}n=n+9|0;i[(g+784|0)+(k<<2)>>2]=s;continue}break}r:{s:while(1){h=c+1&2047;p=(g+784|0)+((c+ -1&2047)<<2)|0;while(1){m=(n|0)>45?9:1;t:{while(1){r=k;b=0;u:{while(1){v:{k=b+r&2047;if((k|0)==(c|0)){break v}k=i[(g+784|0)+(k<<2)>>2];q=i[(b<<2)+17568>>2];if(k>>>0>>0){break v}if(k>>>0>q>>>0){break u}b=b+1|0;if((b|0)!=4){continue}}break}if((n|0)!=36){break u}m=0;h=0;b=0;q=0;p=0;while(1){k=b+r&2047;if((k|0)==(c|0)){c=c+1&2047;i[((c<<2)+g|0)+780>>2]=0}yn(g+768|0,m,h,q,p,0,0,1342177280,1075633366);En(g+752|0,i[(g+784|0)+(k<<2)>>2]);tn(g+736|0,i[g+768>>2],i[g+772>>2],i[g+776>>2],i[g+780>>2],i[g+752>>2],i[g+756>>2],i[g+760>>2],i[g+764>>2]);q=i[g+744>>2];p=i[g+748>>2];m=i[g+736>>2];h=i[g+740>>2];b=b+1|0;if((b|0)!=4){continue}break}An(g+720|0,f);yn(g+704|0,m,h,q,p,i[g+720>>2],i[g+724>>2],i[g+728>>2],i[g+732>>2]);q=i[g+712>>2];p=i[g+716>>2];m=0;h=0;n=i[g+704>>2];s=i[g+708>>2];t=u+113|0;e=t-e|0;k=(e|0)<(d|0);d=k?(e|0)>0?e:0:d;if((d|0)<=112){break t}break r}u=m+u|0;k=c;if((c|0)==(r|0)){continue}break}q=1e9>>>m|0;s=-1<>2];b=(x>>>m|0)+b|0;i[t>>2]=b;b=!b&(k|0)==(r|0);k=b?k+1&2047:k;n=b?n+ -9|0:n;b=o(q,s&x);r=r+1&2047;if((r|0)!=(c|0)){continue}break}if(!b){continue}if((h|0)!=(k|0)){i[(g+784|0)+(c<<2)>>2]=b;c=h;continue s}i[p>>2]=i[p>>2]|1;k=h;continue}break}break}xn(g+656|0,fp(225-d|0));gn(g+688|0,i[g+656>>2],i[g+660>>2],i[g+664>>2],i[g+668>>2],n,s,q,p);z=i[g+696>>2];A=i[g+700>>2];B=i[g+688>>2];C=i[g+692>>2];xn(g+640|0,fp(113-d|0));dp(g+672|0,n,s,q,p,i[g+640>>2],i[g+644>>2],i[g+648>>2],i[g+652>>2]);m=i[g+672>>2];h=i[g+676>>2];v=i[g+680>>2];w=i[g+684>>2];zn(g+624|0,n,s,q,p,m,h,v,w);tn(g+608|0,B,C,z,A,i[g+624>>2],i[g+628>>2],i[g+632>>2],i[g+636>>2]);q=i[g+616>>2];p=i[g+620>>2];n=i[g+608>>2];s=i[g+612>>2]}b=r+4&2047;w:{if((b|0)==(c|0)){break w}b=i[(g+784|0)+(b<<2)>>2];x:{if(b>>>0<=499999999){if((r+5&2047)==(c|0)?!b:0){break x}xn(g+496|0,+(f|0)*.25);tn(g+480|0,m,h,v,w,i[g+496>>2],i[g+500>>2],i[g+504>>2],i[g+508>>2]);v=i[g+488>>2];w=i[g+492>>2];m=i[g+480>>2];h=i[g+484>>2];break x}if((b|0)!=5e8){xn(g+592|0,+(f|0)*.75);tn(g+576|0,m,h,v,w,i[g+592>>2],i[g+596>>2],i[g+600>>2],i[g+604>>2]);v=i[g+584>>2];w=i[g+588>>2];m=i[g+576>>2];h=i[g+580>>2];break x}D=+(f|0);if((r+5&2047)==(c|0)){xn(g+528|0,D*.5);tn(g+512|0,m,h,v,w,i[g+528>>2],i[g+532>>2],i[g+536>>2],i[g+540>>2]);v=i[g+520>>2];w=i[g+524>>2];m=i[g+512>>2];h=i[g+516>>2];break x}xn(g+560|0,D*.75);tn(g+544|0,m,h,v,w,i[g+560>>2],i[g+564>>2],i[g+568>>2],i[g+572>>2]);v=i[g+552>>2];w=i[g+556>>2];m=i[g+544>>2];h=i[g+548>>2]}if((d|0)>111){break w}dp(g+464|0,m,h,v,w,0,0,0,1073676288);if(qn(i[g+464>>2],i[g+468>>2],i[g+472>>2],i[g+476>>2],0,0,0,0)){break w}tn(g+448|0,m,h,v,w,0,0,0,1073676288);v=i[g+456>>2];w=i[g+460>>2];m=i[g+448>>2];h=i[g+452>>2]}tn(g+432|0,n,s,q,p,m,h,v,w);zn(g+416|0,i[g+432>>2],i[g+436>>2],i[g+440>>2],i[g+444>>2],B,C,z,A);q=i[g+424>>2];p=i[g+428>>2];n=i[g+416>>2];s=i[g+420>>2];y:{if((t&2147483647)<=(-2-y|0)){break y}b=g+400|0;i[b+8>>2]=q;i[b+12>>2]=p&2147483647;i[b>>2]=n;i[b+4>>2]=s;yn(g+384|0,n,s,q,p,0,0,0,1073610752);c=rn(i[g+400>>2],i[g+404>>2],i[g+408>>2],i[g+412>>2],1081081856);b=(c|0)<0;q=b?q:i[g+392>>2];p=b?p:i[g+396>>2];n=b?n:i[g+384>>2];s=b?s:i[g+388>>2];u=((c|0)>-1)+u|0;if(G=!(k&(b|(d|0)!=(e|0))&(qn(m,h,v,w,0,0,0,0)|0)!=0),I=0,J=(u+110|0)<=(E|0),J?G:I){break y}i[4805]=68}hn(g+368|0,n,s,q,p,u);q=i[g+368>>2];p=i[g+372>>2];c=i[g+380>>2];b=i[g+376>>2]}i[a>>2]=q;i[a+4>>2]=p;i[a+8>>2]=b;i[a+12>>2]=c;F=g+8976|0}function De(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var h=0,k=0,l=0,m=0,n=0,p=0,r=0,t=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=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,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0;h=F-240|0;F=h;V=i[a+36>>2];y=i[a+32>>2];i[h+184>>2]=0;i[h+188>>2]=0;i[h+176>>2]=0;i[h+180>>2]=0;i[h+168>>2]=0;i[h+172>>2]=0;d=h+160|0;i[d>>2]=0;i[d+4>>2]=0;i[h+152>>2]=0;i[h+156>>2]=0;i[h+144>>2]=0;i[h+148>>2]=0;if(e){Bd(h+144|0,e);m=i[d>>2];d=i[h+156>>2]}else{d=0}f=m-d>>2;a:{if(f>>>0>=e>>>0){if(f>>>0<=e>>>0){break a}i[h+160>>2]=d+(e<<2);break a}Bd(h+144|12,e-f|0)}f=i[h+168>>2];d=i[h+172>>2]-f>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}i[h+172>>2]=f+(e<<2);break b}Bd(h+168|0,e-d|0)}f=i[h+180>>2];d=i[h+184>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}i[h+184>>2]=f+(e<<2);break c}Bd(h+180|0,e-d|0)}i[h+136>>2]=0;i[h+128>>2]=0;i[h+132>>2]=0;d:{e:{if(e){if(e>>>0>=1073741824){break e}d=e<<2;f=ho(d);i[h+128>>2]=f;m=d+f|0;i[h+136>>2]=m;ip(f,0,d);i[h+132>>2]=m}K=a+136|0;f=i[a+136>>2];d=i[a+140>>2]-f>>2;f:{if(d>>>0>>0){Bd(K,e-d|0);break f}if(d>>>0<=e>>>0){break f}i[a+140>>2]=f+(e<<2)}i[h+104>>2]=0;i[h+108>>2]=0;i[h+96>>2]=0;i[h+100>>2]=0;i[h+88>>2]=0;i[h+92>>2]=0;i[h+80>>2]=0;i[h+84>>2]=0;i[h+72>>2]=0;i[h+76>>2]=0;d=h- -64|0;i[d>>2]=0;i[d+4>>2]=0;i[h+56>>2]=0;i[h+60>>2]=0;i[h+48>>2]=0;i[h+52>>2]=0;if(e){d=e<<2;B=ho(d);d=ip(B,0,d)+d|0}else{d=0}f=i[a+40>>2];m=i[f>>2];f=i[f+4>>2]-m|0;if((f|0)<5){break d}O=d;J=f>>>2|0;l=J+ -1|0;if(f>>2>>>0>l>>>0){P=e<<2;W=a+8|0;L=a+96|0;X=h+125|0;Q=h+36|0;R=h+24|0;M=h+20|0;Y=M+24|0;S=M+16|0;I=(e|0)<1;while(1){d=0;C=l;n=i[(l<<2)+m>>2];g:{if((n|0)==-1){break g}r=n+((n>>>0)%3|0?-1:2)|0;z=r>>>5|0;l=1;D=1<>2];f=0;m=n;while(1){h:{if(i[E+(m>>>3&536870908)>>2]>>>m&1){break h}d=i[i[i[y+64>>2]+12>>2]+(m<<2)>>2];if((d|0)==-1){break h}p=i[V>>2];k=i[y+28>>2];A=i[p+(i[k+(d<<2)>>2]<<2)>>2];if((A|0)>=(C|0)){break h}t=d+1|0;t=i[p+(i[k+(((t>>>0)%3|0?t:d+ -2|0)<<2)>>2]<<2)>>2];if((t|0)>=(C|0)){break h}d=i[p+(i[k+(d+((d>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((d|0)>=(C|0)){break h}if(!I){p=i[(h+144|0)+o(f,12)>>2];d=o(d,e);t=o(e,t);A=o(e,A);k=0;while(1){i[p+(k<<2)>>2]=(i[(d+k<<2)+b>>2]+i[(k+t<<2)+b>>2]|0)-i[(k+A<<2)+b>>2];k=k+1|0;if((k|0)!=(e|0)){continue}break}}d=4;f=f+1|0;if((f|0)==4){break g}}i:{if(l&1){k=-1;d=m+1|0;d=(d>>>0)%3|0?d:m+ -2|0;if((d|0)==-1|i[i[y>>2]+(d>>>3&536870908)>>2]>>>d&1){break i}d=i[i[i[y+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break i}m=d+1|0;k=(m>>>0)%3|0?m:d+ -2|0;break i}k=-1;d=((m>>>0)%3|0?-1:2)+m|0;if((d|0)==-1|i[i[y>>2]+(d>>>3&536870908)>>2]>>>d&1){break i}d=i[i[i[y+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break i}if((d>>>0)%3|0){k=d+ -1|0;break i}k=d+2|0}if((k|0)==(n|0)){d=f;break g}m=k;d=(k|0)!=-1;k=(d|l^-1)&1;m=k?m:-1;l=d&l;if(!((r|0)==-1|k)){if(D&i[i[y>>2]+(z<<2)>>2]){d=f;break g}d=i[i[i[y+64>>2]+12>>2]+(r<<2)>>2];if((d|0)==-1){d=f;break g}l=0;if((d>>>0)%3|0){m=d+ -1|0}else{m=d+2|0}}d=f;if((m|0)!=-1){continue}break}}m=0;g[h+16|0]=0;i[h+8>>2]=0;i[h+12>>2]=0;i[Y>>2]=0;i[S>>2]=0;i[S+4>>2]=0;f=M;i[f+8>>2]=0;i[f+12>>2]=0;i[f>>2]=0;i[f+4>>2]=0;T=o(e,C)<<2;E=T+b|0;r=(o(J+ -2|0,e)<<2)+b|0;n=i[a+136>>2];l=0;if(!I){while(1){k=l<<2;f=i[k+r>>2]-i[k+E>>2]|0;i[k+B>>2]=f;i[k+n>>2]=(f|0)>-1?f<<1:(f^-1)<<1|1;k=f;f=f>>31;m=(k+f^f)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}dg(h+216|0,L,n,e);f=gg(h+216|0);l=H;k=hg(h+216|0);f=k+f|0;l=H+l|0;l=f>>>0>>0?l+1|0:l;k=f;N=(d|0)<1;if(!N){p=(d<<3)+ -8|0;n=p+(h+48|0)|0;z=n;t=n;f=i[n+4>>2];D=d+i[n>>2]|0;if(D>>>0>>0){f=f+1|0}n=D;i[t>>2]=n;i[z+4>>2]=f;w=v(bg(n,i[p+(h+80|0)>>2])*(+(n>>>0)+ +(f|0)*4294967296));j:{if(q(w)<0x8000000000000000){n=q(w)>=1?w>0?~~s(u(w*2.3283064365386963e-10),4294967295)>>>0:~~v((w- +(~~w>>>0>>>0))*2.3283064365386963e-10)>>>0:0;f=~~w>>>0;break j}n=-2147483648;f=0}l=l+n|0;f=f+k|0;if(f>>>0>>0){l=l+1|0}k=f}i[h+20>>2]=0;g[h+16|0]=0;i[h+8>>2]=k;i[h+12>>2]=m;ra(R,r,r+P|0);Hd(Q,B,O);if(!N){z=(h+124|0)+d|0;D=z+ -2|0;r=z+ -1|0;f=(d<<3)+ -8|0;U=f+(h+48|0)|0;Z=f+(h+80|0)|0;f=1;A=0;while(1){ip(h+124|0,1,d);A=A+1|0;ip(h+124|0,0,A);k:{l:while(1){if(!I){ip(i[h+128>>2],0,P)}p=0;m=i[h+128>>2];t=0;while(1){if(!j[(h+124|0)+p|0]){if(!I){l=i[(h+144|0)+o(p,12)>>2];k=0;while(1){n=k<<2;G=n+m|0;i[G>>2]=i[G>>2]+i[l+n>>2];k=k+1|0;if((k|0)!=(e|0)){continue}break}}t=1<>2];while(1){l=m+(k<<2)|0;i[l>>2]=i[l>>2]/(f|0);k=k+1|0;if((k|0)!=(e|0)){continue}break}if((e|0)>0){break n}}n=i[a+136>>2];m=0;break m}G=i[h+128>>2];n=i[a+136>>2];m=0;l=0;while(1){p=l<<2;k=i[p+G>>2]-i[p+E>>2]|0;i[p+B>>2]=k;i[n+p>>2]=(k|0)>-1?k<<1:(k^-1)<<1|1;p=m;m=k>>31;m=p+(m+k^m)|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}dg(h+216|0,L,n,e);k=gg(h+216|0)+hg(h+216|0)|0;if((d|0)>0){l=i[U+4>>2];n=i[U>>2];w=v(bg(n,i[Z>>2]+f|0)*(+(n>>>0)+ +(l|0)*4294967296));o:{if(q(w)<0x8000000000000000){n=~~w>>>0;break o}n=0}k=n+k|0}l=i[h+8>>2];if(!((k|0)>(l|0)|(m|0)>=i[h+12>>2]?(k|0)>=(l|0):0)){i[h+20>>2]=f;g[h+16|0]=t;i[h+8>>2]=k;i[h+12>>2]=m;Hd(R,i[h+128>>2],i[h+132>>2]);Hd(Q,B,O)}if((r|0)==(h+124|0)){break k}m=-1;p=j[r|0];k=p;while(1){n=k&255;l=m+ -1|0;t=l+z|0;k=j[t|0];if(k>>>0>>0){n=r;l=z;if(k>>>0>=(p&255)>>>0){while(1){p=n;n=n+ -1|0;G=l+ -2|0;l=p;if(k>>>0>=j[G|0]){continue}break}p=1}l=m+z|0;g[t|0]=p;g[n|0]=k;k=r;if((m|0)==-1){continue l}while(1){m=j[l|0];g[l|0]=j[k|0];g[k|0]=m;l=l+1|0;k=k+ -1|0;if(l>>>0>>0){continue}break}continue l}m=l;if((t|0)!=(h+124|0)){continue}break}break}if(r>>>0<=h+124>>>0){break k}m=j[h+124|0];g[h+124|0]=p;g[r|0]=m;m=X;k=D;if(m>>>0>=k>>>0){break k}while(1){l=j[m|0];g[m|0]=j[k|0];g[k|0]=l;m=m+1|0;k=k+ -1|0;if(m>>>0>>0){continue}break}}f=f+1|0;if((d|0)!=(A|0)){continue}break}}if((d|0)>0){f=((d<<3)+h|0)+72|0;l=f;k=i[h+20>>2];m=k+i[f>>2]|0;f=i[f+4>>2]+(k>>31)|0;i[l>>2]=m;i[l+4>>2]=m>>>0>>0?f+1|0:f}p:{if((e|0)<=0){l=i[K>>2];break p}l=i[K>>2];k=0;m=i[h+36>>2];while(1){n=k<<2;f=i[n+m>>2];i[l+n>>2]=(f|0)>-1?f<<1:(f^-1)<<1|1;k=k+1|0;if((k|0)!=(e|0)){continue}break}}fg(h+216|0,L,l,e);q:{if(N){break q}f=o(d,12)+a|0;p=f+40|0;n=f+36|0;f=f+32|0;m=0;while(1){r:{r=i[p>>2];l=r<<5;k=i[n>>2];s:{if(!(j[h+16|0]>>>m&1)){if((k|0)==(l|0)){if((k+1|0)<=-1){break r}l=f;if(k>>>0<=1073741822){k=k+32&-32;r=r<<6;k=r>>>0>>0?k:r}else{k=2147483647}bd(l,k);k=i[n>>2]}i[n>>2]=k+1;l=i[f>>2]+(k>>>3&536870908)|0;i[l>>2]=i[l>>2]|1<>>0<=1073741822){k=k+32&-32;r=r<<6;k=r>>>0>>0?k:r}else{k=2147483647}bd(l,k);k=i[n>>2]}i[n>>2]=k+1;l=i[f>>2]+(k>>>3&536870908)|0;r=i[l>>2];_=l,$=yp(-2,k)&r,i[_>>2]=$}m=m+1|0;if((m|0)!=(d|0)){continue}break q}break}Ho();x()}d=i[h+24>>2];f=i[d>>2];d=i[d+4>>2];m=i[E+4>>2];i[h+208>>2]=i[E>>2];i[h+212>>2]=m;i[h+200>>2]=f;i[h+204>>2]=d;ze(h+216|0,W,h+208|0,h+200|0);d=c+T|0;i[d>>2]=i[h+216>>2];i[d+4>>2]=i[h+220>>2];d=i[h+36>>2];if(d){i[h+40>>2]=d;bp(d)}d=i[h+24>>2];if(d){i[h+28>>2]=d;bp(d)}if((J|0)<3){break d}J=C;d=i[a+40>>2];m=i[d>>2];l=C+ -1|0;if(i[d+4>>2]-m>>2>>>0>l>>>0){continue}break}}Io();x()}Ho();x()}if((e|0)>=1){ip(i[h+144>>2],0,e<<2)}d=i[h+144>>2];e=i[d>>2];d=i[d+4>>2];f=i[b+4>>2];i[h+216>>2]=i[b>>2];i[h+220>>2]=f;i[h+208>>2]=e;i[h+212>>2]=d;ze(h+8|0,a+8|0,h+216|0,h+208|0);i[c>>2]=i[h+8>>2];i[c+4>>2]=i[h+12>>2];if(B){bp(B)}a=i[h+128>>2];if(a){i[h+132>>2]=a;bp(a)}a=i[h+180>>2];if(a){i[h+184>>2]=a;bp(a)}a=i[h+168>>2];if(a){i[h+172>>2]=a;bp(a)}a=i[h+156>>2];if(a){i[h+160>>2]=a;bp(a)}a=i[h+144>>2];if(a){i[h+148>>2]=a;bp(a)}F=h+240|0;return 1}function Rb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,k=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=p(0),z=0,A=0,B=0,C=0,D=0;c=F+ -64|0;F=c;n=i[a+28>>2];r=i[n+4>>2];z=i[r+80>>2];q=i[a+4>>2];e=i[a+8>>2];k=(q|0)==(e|0);a:{if(k){break a}f=e-q|0;b=(f|0)>-1?f:-1;s=(b|0)<1?b:1;b=q-e|0;b=o(s,((b|0)>(f|0)?b:f)>>>2|0);e=b>>>0>1?b:1;b=i[r+8>>2];while(1){d=g[i[b+(i[(h<<2)+q>>2]<<2)>>2]+24|0]+d|0;h=h+1|0;if((e|0)!=(h|0)){continue}break}}i[a+72>>2]=d;b:{if(k){h=1;break b}A=a+60|0;B=a+36|0;C=a+48|0;D=c+48|0;while(1){c:{d:{e:{f:{g:{h:{i:{j:{u=i[(w<<2)+q>>2];t=i[i[r+8>>2]+(u<<2)>>2];switch(i[t+28>>2]+ -1|0){case 0:case 2:case 4:break i;case 8:break j;default:break c}}i[c+44>>2]=-1;i[c+40>>2]=1140;b=D;i[b+8>>2]=0;i[b+12>>2]=0;i[b>>2]=0;i[b+4>>2]=0;k=i[n+48>>2];f=ho(32);i[c+24>>2]=f;i[c+28>>2]=17;i[c+32>>2]=-2147483616;g[f+17|0]=0;g[f+16|0]=j[1664];e=j[1660]|j[1661]<<8|(j[1662]<<16|j[1663]<<24);b=j[1656]|j[1657]<<8|(j[1658]<<16|j[1659]<<24);g[f+8|0]=b;g[f+9|0]=b>>>8;g[f+10|0]=b>>>16;g[f+11|0]=b>>>24;g[f+12|0]=e;g[f+13|0]=e>>>8;g[f+14|0]=e>>>16;g[f+15|0]=e>>>24;e=j[1652]|j[1653]<<8|(j[1654]<<16|j[1655]<<24);b=j[1648]|j[1649]<<8|(j[1650]<<16|j[1651]<<24);g[f|0]=b;g[f+1|0]=b>>>8;g[f+2|0]=b>>>16;g[f+3|0]=b>>>24;g[f+4|0]=e;g[f+5|0]=e>>>8;g[f+6|0]=e>>>16;g[f+7|0]=e>>>24;k:{l:{e=k+16|0;d=e;h=i[d>>2];if(!h){break l}while(1){b=i[h+16>>2]<(u|0);d=b?d:h;h=i[(b<<2)+h>>2];if(h){continue}break}if((d|0)==(e|0)|(u|0)>2]){break l}b=d+20|0;if(!Sb(b,c+24|0)){break l}s=$j(b,c+24|0,-1);break k}s=$j(k,c+24|0,-1)}if(g[c+35|0]<=-1){bp(i[c+24>>2])}m:{if((s|0)<1){break m}q=i[i[a+28>>2]+48>>2];d=ho(32);i[c+24>>2]=d;i[c+28>>2]=19;i[c+32>>2]=-2147483616;g[d+19|0]=0;v=j[1681]|j[1682]<<8|(j[1683]<<16|j[1684]<<24);g[d+15|0]=v;g[d+16|0]=v>>>8;g[d+17|0]=v>>>16;g[d+18|0]=v>>>24;e=j[1678]|j[1679]<<8|(j[1680]<<16|j[1681]<<24);r=e;f=j[1674]|j[1675]<<8|(j[1676]<<16|j[1677]<<24);b=f;g[d+8|0]=b;g[d+9|0]=b>>>8;g[d+10|0]=b>>>16;g[d+11|0]=b>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;n=j[1670]|j[1671]<<8|(j[1672]<<16|j[1673]<<24);k=n;e=j[1666]|j[1667]<<8|(j[1668]<<16|j[1669]<<24);b=e;g[d|0]=b;g[d+1|0]=b>>>8;g[d+2|0]=b>>>16;g[d+3|0]=b>>>24;g[d+4|0]=k;g[d+5|0]=k>>>8;g[d+6|0]=k>>>16;g[d+7|0]=k>>>24;n:{o:{n=q+16|0;d=n;h=i[d>>2];if(!h){break o}while(1){b=i[h+16>>2]<(u|0);d=b?d:h;h=i[(b<<2)+h>>2];if(h){continue}break}if((d|0)==(n|0)|(u|0)>2]){break o}n=Sb(d+20|0,c+24|0);break n}n=Sb(q,c+24|0)}b=0;p:{if(!n){break p}q=i[i[a+28>>2]+48>>2];d=ho(32);i[c+8>>2]=d;i[c+12>>2]=18;i[c+16>>2]=-2147483616;g[d+18|0]=0;b=j[1702]|j[1703]<<8;g[d+16|0]=b;g[d+17|0]=b>>>8;n=j[1698]|j[1699]<<8|(j[1700]<<16|j[1701]<<24);b=j[1694]|j[1695]<<8|(j[1696]<<16|j[1697]<<24);g[d+8|0]=b;g[d+9|0]=b>>>8;g[d+10|0]=b>>>16;g[d+11|0]=b>>>24;g[d+12|0]=n;g[d+13|0]=n>>>8;g[d+14|0]=n>>>16;g[d+15|0]=n>>>24;n=j[1690]|j[1691]<<8|(j[1692]<<16|j[1693]<<24);b=j[1686]|j[1687]<<8|(j[1688]<<16|j[1689]<<24);g[d|0]=b;g[d+1|0]=b>>>8;g[d+2|0]=b>>>16;g[d+3|0]=b>>>24;g[d+4|0]=n;g[d+5|0]=n>>>8;g[d+6|0]=n>>>16;g[d+7|0]=n>>>24;q:{r:{n=q+16|0;d=n;h=i[d>>2];if(!h){break r}while(1){b=i[h+16>>2]<(u|0);d=b?d:h;h=i[(b<<2)+h>>2];if(h){continue}break}if((d|0)==(n|0)|(u|0)>2]){break r}b=Sb(d+20|0,c+8|0);break q}b=Sb(q,c+8|0)}if(g[c+19|0]<=-1){bp(i[c+8>>2])}b=(b|0)!=0}if(g[c+35|0]<=-1){bp(i[c+24>>2])}s:{if(b){b=g[t+24|0];q=0;i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;if(b){if((b|0)<=-1){break h}n=b<<2;q=ho(n);i[c+24>>2]=q;b=n+q|0;i[c+32>>2]=b;ip(q,0,n);i[c+28>>2]=b}n=i[i[a+28>>2]+48>>2];b=ho(32);i[c+8>>2]=b;i[c+12>>2]=19;i[c+16>>2]=-2147483616;g[b+19|0]=0;g[b+15|0]=v;g[b+16|0]=v>>>8;g[b+17|0]=v>>>16;g[b+18|0]=v>>>24;g[b+8|0]=f;g[b+9|0]=f>>>8;g[b+10|0]=f>>>16;g[b+11|0]=f>>>24;g[b+12|0]=r;g[b+13|0]=r>>>8;g[b+14|0]=r>>>16;g[b+15|0]=r>>>24;g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=k;g[b+5|0]=k>>>8;g[b+6|0]=k>>>16;g[b+7|0]=k>>>24;k=g[t+24|0];t:{u:{e=n+16|0;d=e;h=i[d>>2];if(!h){break u}while(1){b=i[h+16>>2]<(u|0);d=b?d:h;h=i[(b<<2)+h>>2];if(h){continue}break}if((d|0)==(e|0)|(u|0)>2]){break u}b=d+20|0;if(!Sb(b,c+8|0)){break u}Tb(b,c+8|0,k,q);break t}Tb(n,c+8|0,k,q)}if(g[c+19|0]<=-1){bp(i[c+8>>2])}k=i[i[a+28>>2]+48>>2];f=ho(32);i[c+8>>2]=f;i[c+12>>2]=18;i[c+16>>2]=-2147483616;g[f+18|0]=0;b=j[1702]|j[1703]<<8;g[f+16|0]=b;g[f+17|0]=b>>>8;e=j[1698]|j[1699]<<8|(j[1700]<<16|j[1701]<<24);b=j[1694]|j[1695]<<8|(j[1696]<<16|j[1697]<<24);g[f+8|0]=b;g[f+9|0]=b>>>8;g[f+10|0]=b>>>16;g[f+11|0]=b>>>24;g[f+12|0]=e;g[f+13|0]=e>>>8;g[f+14|0]=e>>>16;g[f+15|0]=e>>>24;e=j[1690]|j[1691]<<8|(j[1692]<<16|j[1693]<<24);b=j[1686]|j[1687]<<8|(j[1688]<<16|j[1689]<<24);g[f|0]=b;g[f+1|0]=b>>>8;g[f+2|0]=b>>>16;g[f+3|0]=b>>>24;g[f+4|0]=e;g[f+5|0]=e>>>8;g[f+6|0]=e>>>16;g[f+7|0]=e>>>24;v:{w:{e=k+16|0;d=e;h=i[d>>2];if(!h){break w}while(1){b=i[h+16>>2]<(u|0);d=b?d:h;h=i[(b<<2)+h>>2];if(h){continue}break}if((d|0)==(e|0)|(u|0)>2]){break w}b=d+20|0;if(!Sb(b,c+8|0)){break w}y=ak(b,c+8|0);break v}y=ak(k,c+8|0)}if(g[c+19|0]<=-1){bp(i[c+8>>2])}qa(c+40|0,s,i[c+24>>2],g[t+24|0],y);b=i[c+24>>2];if(!b){break s}i[c+28>>2]=b;bp(b);break s}if(!sa(c+40|0,t,s)){break m}}k=i[a+40>>2];x:{if((k|0)!=i[a+44>>2]){i[k>>2]=1140;b=i[c+44>>2];i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;i[k+4>>2]=b;e=i[c+52>>2]-i[c+48>>2]|0;if(e){b=e>>2;if(b>>>0>=1073741824){break g}e=ho(e);i[k+8>>2]=e;i[k+12>>2]=e;i[k+16>>2]=e+(b<<2);b=k;f=i[c+48>>2];r=i[c+52>>2]-f|0;if((r|0)>=1){e=hp(e,f,r)+r|0}i[b+12>>2]=e}m[k+20>>2]=m[c+60>>2];i[a+40>>2]=k+24;break x}Ub(B,c+40|0)}Aa(c+8|0,c+40|0,t,z);i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;ma(c+40|0,t,c+24|0,i[c+8>>2]);b=i[c+24>>2];if(b){i[c+28>>2]=b;bp(b)}e=i[a+64>>2];y:{if(e>>>0>2]){b=i[c+8>>2];i[c+8>>2]=0;i[e>>2]=b;i[a+64>>2]=e+4;break y}Vb(A,c+8|0)}b=i[c+8>>2];i[c+8>>2]=0;if(b){Wb(b)}i[c+40>>2]=1140;b=i[c+48>>2];if(!b){break c}i[c+52>>2]=b;bp(b);break c}i[c+40>>2]=1140;a=i[c+48>>2];if(a){i[c+52>>2]=a;bp(a)}h=0;break b}b=g[t+24|0];q=0;i[c+48>>2]=0;i[c+40>>2]=0;i[c+44>>2]=0;d=0;if(b){if((b|0)<=-1){break f}b=b<<2;h=ho(b);i[c+40>>2]=h;b=b+h|0;i[c+48>>2]=b;while(1){i[h>>2]=2147483647;h=h+4|0;if((b|0)!=(h|0)){continue}break}i[c+44>>2]=b;d=j[t+24|0]}i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;if(d&255){b=d<<24>>24;if((b|0)<=-1){break e}e=b<<2;q=ho(e);i[c+24>>2]=q;b=e+q|0;i[c+32>>2]=b;ip(q,0,e);i[c+28>>2]=b}s=j[t+24|0];n=0;if(!i[t+80>>2]){break d}while(1){Xb(t,n,s<<24>>24,q);b=j[t+24|0];s=b<<24>>24;if((s|0)>=1){r=b>>>0>1?b:1;h=0;f=i[c+24>>2];k=i[c+40>>2];while(1){b=h<<2;e=b+k|0;b=i[b+f>>2];if(i[e>>2]>(b|0)){i[e>>2]=b}h=h+1|0;if((r|0)!=(h|0)){continue}break}}n=n+1|0;if(n>>>0>=l[t+80>>2]){break d}q=i[c+24>>2];continue}}Ho();x()}Ho();x()}Ho();x()}Ho();x()}h=0;z:{if(s<<24>>24<=0){break z}A:{while(1){B:{r=i[c+40>>2]+(h<<2)|0;b=i[a+52>>2];C:{if((b|0)!=i[a+56>>2]){i[b>>2]=i[r>>2];i[a+52>>2]=b+4;break C}n=i[C>>2];s=b-n|0;f=s>>2;k=f+1|0;if(k>>>0>=1073741824){break B}e=s>>1;k=f>>>0<536870911?e>>>0>>0?k:e:1073741823;b=0;D:{if(!k){break D}if(k>>>0>=1073741824){break A}b=ho(k<<2)}e=b+(f<<2)|0;i[e>>2]=i[r>>2];k=b+(k<<2)|0;e=e+4|0;if((s|0)>=1){hp(b,n,s)}i[a+56>>2]=k;i[a+52>>2]=e;i[a+48>>2]=b;if(!n){break C}bp(n)}h=h+1|0;if((h|0)>2];if(b){i[c+28>>2]=b;bp(b)}b=i[c+40>>2];if(!b){break c}i[c+44>>2]=b;bp(b)}h=1;w=w+1|0;q=i[a+4>>2];if(w>>>0>=i[a+8>>2]-q>>2>>>0){break b}n=i[a+28>>2];r=i[n+4>>2];continue}}F=c- -64|0;return h|0}function Te(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var h=0,k=0,l=0,m=0,n=0,p=0,r=0,t=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=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,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0;h=F-240|0;F=h;V=i[a+36>>2];N=i[a+32>>2];i[h+184>>2]=0;i[h+188>>2]=0;i[h+176>>2]=0;i[h+180>>2]=0;i[h+168>>2]=0;i[h+172>>2]=0;d=h+160|0;i[d>>2]=0;i[d+4>>2]=0;i[h+152>>2]=0;i[h+156>>2]=0;i[h+144>>2]=0;i[h+148>>2]=0;if(e){Bd(h+144|0,e);m=i[d>>2];d=i[h+156>>2]}else{d=0}f=m-d>>2;a:{if(f>>>0>=e>>>0){if(f>>>0<=e>>>0){break a}i[h+160>>2]=d+(e<<2);break a}Bd(h+144|12,e-f|0)}f=i[h+168>>2];d=i[h+172>>2]-f>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}i[h+172>>2]=f+(e<<2);break b}Bd(h+168|0,e-d|0)}f=i[h+180>>2];d=i[h+184>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}i[h+184>>2]=f+(e<<2);break c}Bd(h+180|0,e-d|0)}i[h+136>>2]=0;i[h+128>>2]=0;i[h+132>>2]=0;d:{e:{if(e){if(e>>>0>=1073741824){break e}d=e<<2;f=ho(d);i[h+128>>2]=f;l=d+f|0;i[h+136>>2]=l;ip(f,0,d);i[h+132>>2]=l}J=a+136|0;f=i[a+136>>2];d=i[a+140>>2]-f>>2;f:{if(d>>>0>>0){Bd(J,e-d|0);break f}if(d>>>0<=e>>>0){break f}i[a+140>>2]=f+(e<<2)}i[h+104>>2]=0;i[h+108>>2]=0;i[h+96>>2]=0;i[h+100>>2]=0;i[h+88>>2]=0;i[h+92>>2]=0;i[h+80>>2]=0;i[h+84>>2]=0;i[h+72>>2]=0;i[h+76>>2]=0;d=h- -64|0;i[d>>2]=0;i[d+4>>2]=0;i[h+56>>2]=0;i[h+60>>2]=0;i[h+48>>2]=0;i[h+52>>2]=0;if(e){d=e<<2;B=ho(d);d=ip(B,0,d)+d|0}else{d=0}f=i[a+40>>2];m=i[f>>2];f=i[f+4>>2]-m|0;if((f|0)<5){break d}O=d;I=f>>>2|0;d=I+ -1|0;if(f>>2>>>0>d>>>0){P=e<<2;W=a+8|0;K=a+96|0;X=h+125|0;Q=h+36|0;R=h+24|0;L=h+20|0;Y=L+24|0;S=L+16|0;G=(e|0)<1;while(1){l=0;D=d;d=i[(d<<2)+m>>2];g:{if((d|0)==-1){break g}t=i[N+12>>2];C=d+((d>>>0)%3|0?-1:2)|0;r=t+(C<<2)|0;m=1;n=0;f=d;while(1){l=i[t+(f<<2)>>2];h:{if((l|0)==-1){break h}p=-1;w=i[V>>2];k=i[N>>2];A=i[w+(i[k+(l<<2)>>2]<<2)>>2];y=l+1|0;y=(y>>>0)%3|0?y:l+ -2|0;if((y|0)!=-1){y=i[k+(y<<2)>>2]}else{y=-1}l=l+((l>>>0)%3|0?-1:2)|0;if((l|0)!=-1){p=i[k+(l<<2)>>2]}if((A|0)>=(D|0)){break h}l=i[(y<<2)+w>>2];if((l|0)>=(D|0)){break h}k=i[w+(p<<2)>>2];if((k|0)>=(D|0)){break h}p=i[(h+144|0)+o(n,12)>>2];if(!G){w=o(e,k);l=o(e,l);A=o(e,A);k=0;while(1){i[p+(k<<2)>>2]=(i[(k+w<<2)+b>>2]+i[(k+l<<2)+b>>2]|0)-i[(k+A<<2)+b>>2];k=k+1|0;if((k|0)!=(e|0)){continue}break}}l=4;n=n+1|0;if((n|0)==4){break g}}i:{if(m&1){p=f+1|0;f=(p>>>0)%3|0?p:f+ -2|0;l=-1;if((f|0)==-1){break i}f=i[t+(f<<2)>>2];l=-1;if((f|0)==-1){break i}l=f+1|0;l=(l>>>0)%3|0?l:f+ -2|0;break i}f=((f>>>0)%3|0?-1:2)+f|0;l=-1;if((f|0)==-1){break i}f=i[t+(f<<2)>>2];l=-1;if((f|0)==-1){break i}l=f+ -1|0;if((f>>>0)%3|0){break i}l=f+2|0}if((l|0)==(d|0)){l=n;break g}f=l;l=(l|0)!=-1;k=(l|m^-1)&1;f=k?f:-1;m=m&l;if(!((C|0)==-1|k)){l=i[r>>2];if((l|0)==-1){l=n;break g}m=0;if((l>>>0)%3|0){f=l+ -1|0}else{f=l+2|0}}l=n;if((f|0)!=-1){continue}break}}f=0;g[h+16|0]=0;i[h+8>>2]=0;i[h+12>>2]=0;i[Y>>2]=0;i[S>>2]=0;i[S+4>>2]=0;d=L;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;T=o(e,D)<<2;y=T+b|0;p=(o(I+ -2|0,e)<<2)+b|0;m=i[a+136>>2];d=0;if(!G){while(1){k=d<<2;n=i[k+p>>2]-i[k+y>>2]|0;i[k+B>>2]=n;i[k+m>>2]=(n|0)>-1?n<<1:(n^-1)<<1|1;k=f;f=n>>31;f=k+(f+n^f)|0;d=d+1|0;if((e|0)!=(d|0)){continue}break}}dg(h+216|0,K,m,e);d=gg(h+216|0);k=H;m=hg(h+216|0);n=m+d|0;d=H+k|0;d=n>>>0>>0?d+1|0:d;k=n;M=(l|0)<1;if(!M){t=(l<<3)+ -8|0;m=t+(h+48|0)|0;w=m;r=m;n=i[m+4>>2];A=l+i[m>>2]|0;if(A>>>0>>0){n=n+1|0}m=A;i[r>>2]=m;i[w+4>>2]=n;z=v(bg(m,i[t+(h+80|0)>>2])*(+(m>>>0)+ +(n|0)*4294967296));j:{if(q(z)<0x8000000000000000){m=q(z)>=1?z>0?~~s(u(z*2.3283064365386963e-10),4294967295)>>>0:~~v((z- +(~~z>>>0>>>0))*2.3283064365386963e-10)>>>0:0;n=~~z>>>0;break j}m=-2147483648;n=0}d=d+m|0;n=k+n|0;if(n>>>0>>0){d=d+1|0}k=n}i[h+20>>2]=0;g[h+16|0]=0;i[h+8>>2]=k;i[h+12>>2]=f;ra(R,p,p+P|0);Hd(Q,B,O);if(!M){w=(h+124|0)+l|0;A=w+ -2|0;t=w+ -1|0;d=(l<<3)+ -8|0;U=d+(h+48|0)|0;Z=d+(h+80|0)|0;n=1;C=0;while(1){ip(h+124|0,1,l);C=C+1|0;ip(h+124|0,0,C);k:{l:while(1){if(!G){ip(i[h+128>>2],0,P)}f=0;d=i[h+128>>2];m=0;while(1){if(!j[(h+124|0)+f|0]){if(!G){p=i[(h+144|0)+o(f,12)>>2];k=0;while(1){r=k<<2;E=r+d|0;i[E>>2]=i[E>>2]+i[p+r>>2];k=k+1|0;if((k|0)!=(e|0)){continue}break}}m=1<>2];while(1){f=d+(k<<2)|0;i[f>>2]=i[f>>2]/(n|0);k=k+1|0;if((k|0)!=(e|0)){continue}break}if((e|0)>0){break n}}p=i[a+136>>2];f=0;break m}E=i[h+128>>2];p=i[a+136>>2];f=0;d=0;while(1){r=d<<2;k=i[r+E>>2]-i[r+y>>2]|0;i[r+B>>2]=k;i[p+r>>2]=(k|0)>-1?k<<1:(k^-1)<<1|1;r=f;f=k>>31;f=r+(f+k^f)|0;d=d+1|0;if((e|0)!=(d|0)){continue}break}}dg(h+216|0,K,p,e);k=gg(h+216|0)+hg(h+216|0)|0;if((l|0)>0){d=i[U+4>>2];p=i[U>>2];z=v(bg(p,i[Z>>2]+n|0)*(+(p>>>0)+ +(d|0)*4294967296));o:{if(q(z)<0x8000000000000000){d=~~z>>>0;break o}d=0}k=d+k|0}d=i[h+8>>2];if(!((k|0)>(d|0)|(f|0)>=i[h+12>>2]?(k|0)>=(d|0):0)){i[h+20>>2]=n;g[h+16|0]=m;i[h+8>>2]=k;i[h+12>>2]=f;Hd(R,i[h+128>>2],i[h+132>>2]);Hd(Q,B,O)}if((t|0)==(h+124|0)){break k}m=-1;f=j[t|0];k=f;while(1){p=k&255;d=m+ -1|0;r=d+w|0;k=j[r|0];if(k>>>0

>>0){p=t;d=w;if(k>>>0>=(f&255)>>>0){while(1){f=p;p=f+ -1|0;E=d+ -2|0;d=f;if(k>>>0>=j[E|0]){continue}break}f=1}d=m+w|0;g[r|0]=f;g[p|0]=k;k=t;if((m|0)==-1){continue l}while(1){f=j[d|0];g[d|0]=j[k|0];g[k|0]=f;d=d+1|0;k=k+ -1|0;if(d>>>0>>0){continue}break}continue l}m=d;if((r|0)!=(h+124|0)){continue}break}break}if(t>>>0<=h+124>>>0){break k}d=j[h+124|0];g[h+124|0]=f;g[t|0]=d;m=X;k=A;if(m>>>0>=k>>>0){break k}while(1){d=j[m|0];g[m|0]=j[k|0];g[k|0]=d;m=m+1|0;k=k+ -1|0;if(m>>>0>>0){continue}break}}n=n+1|0;if((l|0)!=(C|0)){continue}break}}if((l|0)>0){d=((l<<3)+h|0)+72|0;n=d;k=i[h+20>>2];f=k+i[d>>2]|0;d=i[d+4>>2]+(k>>31)|0;i[n>>2]=f;i[n+4>>2]=f>>>0>>0?d+1|0:d}p:{if((e|0)<=0){d=i[J>>2];break p}d=i[J>>2];k=0;n=i[h+36>>2];while(1){m=k<<2;f=i[m+n>>2];i[d+m>>2]=(f|0)>-1?f<<1:(f^-1)<<1|1;k=k+1|0;if((k|0)!=(e|0)){continue}break}}fg(h+216|0,K,d,e);q:{if(M){break q}d=o(l,12)+a|0;t=d+40|0;n=d+36|0;d=d+32|0;m=0;while(1){r:{p=i[t>>2];f=p<<5;k=i[n>>2];s:{if(!(j[h+16|0]>>>m&1)){if((f|0)==(k|0)){if((k+1|0)<=-1){break r}f=d;if(k>>>0<=1073741822){k=k+32&-32;p=p<<6;k=p>>>0>>0?k:p}else{k=2147483647}bd(f,k);k=i[n>>2]}i[n>>2]=k+1;f=i[d>>2]+(k>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>>0<=1073741822){k=k+32&-32;p=p<<6;k=p>>>0>>0?k:p}else{k=2147483647}bd(f,k);k=i[n>>2]}i[n>>2]=k+1;f=i[d>>2]+(k>>>3&536870908)|0;p=i[f>>2];_=f,$=yp(-2,k)&p,i[_>>2]=$}m=m+1|0;if((l|0)!=(m|0)){continue}break q}break}Ho();x()}d=i[h+24>>2];f=i[d>>2];d=i[d+4>>2];l=i[y+4>>2];i[h+208>>2]=i[y>>2];i[h+212>>2]=l;i[h+200>>2]=f;i[h+204>>2]=d;ze(h+216|0,W,h+208|0,h+200|0);d=c+T|0;i[d>>2]=i[h+216>>2];i[d+4>>2]=i[h+220>>2];d=i[h+36>>2];if(d){i[h+40>>2]=d;bp(d)}d=i[h+24>>2];if(d){i[h+28>>2]=d;bp(d)}if((I|0)<3){break d}I=D;d=i[a+40>>2];m=i[d>>2];f=i[d+4>>2]-m>>2;d=D+ -1|0;if(f>>>0>d>>>0){continue}break}}Io();x()}Ho();x()}if((e|0)>=1){ip(i[h+144>>2],0,e<<2)}d=i[h+144>>2];e=i[d>>2];d=i[d+4>>2];f=i[b+4>>2];i[h+216>>2]=i[b>>2];i[h+220>>2]=f;i[h+208>>2]=e;i[h+212>>2]=d;ze(h+8|0,a+8|0,h+216|0,h+208|0);i[c>>2]=i[h+8>>2];i[c+4>>2]=i[h+12>>2];if(B){bp(B)}a=i[h+128>>2];if(a){i[h+132>>2]=a;bp(a)}a=i[h+180>>2];if(a){i[h+184>>2]=a;bp(a)}a=i[h+168>>2];if(a){i[h+172>>2]=a;bp(a)}a=i[h+156>>2];if(a){i[h+160>>2]=a;bp(a)}a=i[h+144>>2];if(a){i[h+148>>2]=a;bp(a)}F=h+240|0;return 1}function yj(a,b,c,d){var e=0,f=0,h=0,k=0;f=F-32|0;F=f;i[b+44>>2]=d;i[b+48>>2]=c;d=i[b+12>>2];e=i[b+8>>2];if((d|0)!=(e|0)){while(1){d=d+ -4|0;h=i[d>>2];i[d>>2]=0;if(h){I[i[i[h>>2]+4>>2]](h)}if((d|0)!=(e|0)){continue}break}}i[b+12>>2]=e;i[b+24>>2]=i[b+20>>2];i[b+36>>2]=i[b+32>>2];a:{if(!i[b+4>>2]){b=ho(32);i[f+8>>2]=b;i[f+12>>2]=23;i[f+16>>2]=-2147483616;g[b+23|0]=0;c=j[13555]|j[13556]<<8|(j[13557]<<16|j[13558]<<24);d=j[13551]|j[13552]<<8|(j[13553]<<16|j[13554]<<24);g[b+15|0]=d;g[b+16|0]=d>>>8;g[b+17|0]=d>>>16;g[b+18|0]=d>>>24;g[b+19|0]=c;g[b+20|0]=c>>>8;g[b+21|0]=c>>>16;g[b+22|0]=c>>>24;c=j[13548]|j[13549]<<8|(j[13550]<<16|j[13551]<<24);d=j[13544]|j[13545]<<8|(j[13546]<<16|j[13547]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13540]|j[13541]<<8|(j[13542]<<16|j[13543]<<24);d=j[13536]|j[13537]<<8|(j[13538]<<16|j[13539]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ro(a+4|0,f+8|0);if(g[f+19|0]>-1){break a}bp(i[f+8>>2]);break a}zj(a,b);if(i[a>>2]){break a}h=a+4|0;if(g[a+15|0]<=-1){bp(i[h>>2])}d=i[i[b+4>>2]+4>>2];b:{if(!d){i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;break b}if(!im(f+24|0,i[b+44>>2],d)){d=ho(32);i[f+8>>2]=d;i[f+12>>2]=26;i[f+16>>2]=-2147483616;g[d+26|0]=0;e=j[13718]|j[13719]<<8;g[d+24|0]=e;g[d+25|0]=e>>>8;e=j[13714]|j[13715]<<8|(j[13716]<<16|j[13717]<<24);k=j[13710]|j[13711]<<8|(j[13712]<<16|j[13713]<<24);g[d+16|0]=k;g[d+17|0]=k>>>8;g[d+18|0]=k>>>16;g[d+19|0]=k>>>24;g[d+20|0]=e;g[d+21|0]=e>>>8;g[d+22|0]=e>>>16;g[d+23|0]=e>>>24;e=j[13706]|j[13707]<<8|(j[13708]<<16|j[13709]<<24);k=j[13702]|j[13703]<<8|(j[13704]<<16|j[13705]<<24);g[d+8|0]=k;g[d+9|0]=k>>>8;g[d+10|0]=k>>>16;g[d+11|0]=k>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;e=j[13698]|j[13699]<<8|(j[13700]<<16|j[13701]<<24);k=j[13694]|j[13695]<<8|(j[13696]<<16|j[13697]<<24);g[d|0]=k;g[d+1|0]=k>>>8;g[d+2|0]=k>>>16;g[d+3|0]=k>>>24;g[d+4|0]=e;g[d+5|0]=e>>>8;g[d+6|0]=e>>>16;g[d+7|0]=e>>>24;i[a>>2]=-1;ro(h,f+8|0);if(g[f+19|0]<=-1){bp(i[f+8>>2])}if(i[a>>2]){break a}break b}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}if(g[h+11|0]<=-1){bp(i[h>>2])}if(!(I[i[i[b>>2]+16>>2]](b)|0)){b=ho(32);i[f+8>>2]=b;i[f+12>>2]=29;i[f+16>>2]=-2147483616;g[b+29|0]=0;c=j[13585]|j[13586]<<8|(j[13587]<<16|j[13588]<<24);d=j[13581]|j[13582]<<8|(j[13583]<<16|j[13584]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=j[13580]|j[13581]<<8|(j[13582]<<16|j[13583]<<24);d=j[13576]|j[13577]<<8|(j[13578]<<16|j[13579]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[13572]|j[13573]<<8|(j[13574]<<16|j[13575]<<24);d=j[13568]|j[13569]<<8|(j[13570]<<16|j[13571]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13564]|j[13565]<<8|(j[13566]<<16|j[13567]<<24);d=j[13560]|j[13561]<<8|(j[13562]<<16|j[13563]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ro(h,f+8|0);if(g[f+19|0]>-1){break a}bp(i[f+8>>2]);break a}if(!(I[i[i[b>>2]+20>>2]](b)|0)){b=ho(32);i[f+8>>2]=b;i[f+12>>2]=31;i[f+16>>2]=-2147483616;g[b+31|0]=0;c=j[13617]|j[13618]<<8|(j[13619]<<16|j[13620]<<24);d=j[13613]|j[13614]<<8|(j[13615]<<16|j[13616]<<24);g[b+23|0]=d;g[b+24|0]=d>>>8;g[b+25|0]=d>>>16;g[b+26|0]=d>>>24;g[b+27|0]=c;g[b+28|0]=c>>>8;g[b+29|0]=c>>>16;g[b+30|0]=c>>>24;c=j[13610]|j[13611]<<8|(j[13612]<<16|j[13613]<<24);d=j[13606]|j[13607]<<8|(j[13608]<<16|j[13609]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[13602]|j[13603]<<8|(j[13604]<<16|j[13605]<<24);d=j[13598]|j[13599]<<8|(j[13600]<<16|j[13601]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13594]|j[13595]<<8|(j[13596]<<16|j[13597]<<24);d=j[13590]|j[13591]<<8|(j[13592]<<16|j[13593]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ro(h,f+8|0);if(g[f+19|0]>-1){break a}bp(i[f+8>>2]);break a}I[i[i[b>>2]+24>>2]](a,b);if(i[a>>2]){break a}if(g[h+11|0]<=-1){bp(i[h>>2])}if(!(I[i[i[b>>2]+28>>2]](b)|0)){b=ho(48);i[f+8>>2]=b;i[f+12>>2]=34;i[f+16>>2]=-2147483600;g[b+34|0]=0;c=j[13654]|j[13655]<<8;g[b+32|0]=c;g[b+33|0]=c>>>8;c=j[13650]|j[13651]<<8|(j[13652]<<16|j[13653]<<24);d=j[13646]|j[13647]<<8|(j[13648]<<16|j[13649]<<24);g[b+24|0]=d;g[b+25|0]=d>>>8;g[b+26|0]=d>>>16;g[b+27|0]=d>>>24;g[b+28|0]=c;g[b+29|0]=c>>>8;g[b+30|0]=c>>>16;g[b+31|0]=c>>>24;c=j[13642]|j[13643]<<8|(j[13644]<<16|j[13645]<<24);d=j[13638]|j[13639]<<8|(j[13640]<<16|j[13641]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[13634]|j[13635]<<8|(j[13636]<<16|j[13637]<<24);d=j[13630]|j[13631]<<8|(j[13632]<<16|j[13633]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13626]|j[13627]<<8|(j[13628]<<16|j[13629]<<24);d=j[13622]|j[13623]<<8|(j[13624]<<16|j[13625]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ro(h,f+8|0);if(g[f+19|0]>-1){break a}bp(i[f+8>>2]);break a}d=ho(32);i[f+8>>2]=d;i[f+12>>2]=30;i[f+16>>2]=-2147483616;g[d+30|0]=0;h=j[13683]|j[13684]<<8|(j[13685]<<16|j[13686]<<24);e=j[13679]|j[13680]<<8|(j[13681]<<16|j[13682]<<24);g[d+22|0]=e;g[d+23|0]=e>>>8;g[d+24|0]=e>>>16;g[d+25|0]=e>>>24;g[d+26|0]=h;g[d+27|0]=h>>>8;g[d+28|0]=h>>>16;g[d+29|0]=h>>>24;h=j[13677]|j[13678]<<8|(j[13679]<<16|j[13680]<<24);e=j[13673]|j[13674]<<8|(j[13675]<<16|j[13676]<<24);g[d+16|0]=e;g[d+17|0]=e>>>8;g[d+18|0]=e>>>16;g[d+19|0]=e>>>24;g[d+20|0]=h;g[d+21|0]=h>>>8;g[d+22|0]=h>>>16;g[d+23|0]=h>>>24;h=j[13669]|j[13670]<<8|(j[13671]<<16|j[13672]<<24);e=j[13665]|j[13666]<<8|(j[13667]<<16|j[13668]<<24);g[d+8|0]=e;g[d+9|0]=e>>>8;g[d+10|0]=e>>>16;g[d+11|0]=e>>>24;g[d+12|0]=h;g[d+13|0]=h>>>8;g[d+14|0]=h>>>16;g[d+15|0]=h>>>24;h=j[13661]|j[13662]<<8|(j[13663]<<16|j[13664]<<24);e=j[13657]|j[13658]<<8|(j[13659]<<16|j[13660]<<24);g[d|0]=e;g[d+1|0]=e>>>8;g[d+2|0]=e>>>16;g[d+3|0]=e>>>24;g[d+4|0]=h;g[d+5|0]=h>>>8;g[d+6|0]=h>>>16;g[d+7|0]=h>>>24;c=ck(c,f+8|0,0);if(g[f+19|0]<=-1){bp(i[f+8>>2])}if(c){I[i[i[b>>2]+48>>2]](b)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}F=f+32|0}function _m(a,b,c,d,e,f){a=a|0;b=+b;c=c|0;d=d|0;e=e|0;f=f|0;var h=0,k=0,l=0,m=0,n=0,p=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0;p=F-560|0;F=p;i[p+44>>2]=0;Ep(+b);h=Bp(1)|0;Bp(0)|0;a:{if((h|0)<-1?1:(h|0)<=-1){B=1;b=-b;Ep(+b);h=Bp(1)|0;Bp(0)|0;w=17504;break a}B=1;w=17507;if(e&2048){break a}w=17510;if(e&1){break a}B=0;E=1;w=17505}b:{if((h&2146435072)==2146435072){n=B+3|0;Zm(a,32,c,n,e&-65537);Tm(a,w,B);d=f&32;Tm(a,b!=b?d?17531:17535:d?17523:17527,3);break b}x=p+16|0;c:{d:{e:{b=Qm(b,p+44|0);b=b+b;if(b!=0){h=i[p+44>>2];i[p+44>>2]=h+ -1;y=f|32;if((y|0)!=97){break e}break c}y=f|32;if((y|0)==97){break c}n=i[p+44>>2];r=(d|0)<0?6:d;break d}n=h+ -29|0;i[p+44>>2]=n;b=b*268435456;r=(d|0)<0?6:d}t=(n|0)<0?p+48|0:p+336|0;m=t;while(1){d=m;if(b<4294967296&b>=0){h=~~b>>>0}else{h=0}i[d>>2]=h;m=m+4|0;b=(b- +(h>>>0))*1e9;if(b!=0){continue}break}f:{if((n|0)<1){d=n;h=m;k=t;break f}k=t;d=n;while(1){s=(d|0)<29?d:29;h=m+ -4|0;g:{if(h>>>0>>0){break g}d=s;l=0;while(1){u=h;C=l;D=i[h>>2];v=d&31;if(32<=(d&63)>>>0){l=D<>>32-v;D=D<>>0>>0?l+1|0:l;l=wp(v,l,1e9,0);C=u;u=up(l,H,1e9,0);i[C>>2]=v-u;h=h+ -4|0;if(h>>>0>=k>>>0){continue}break}if(!l){break g}k=k+ -4|0;i[k>>2]=l}while(1){h=m;if(h>>>0>k>>>0){m=h+ -4|0;if(!i[m>>2]){continue}}break}d=i[p+44>>2]-s|0;i[p+44>>2]=d;m=h;if((d|0)>0){continue}break}}if((d|0)<=-1){z=((r+25|0)/9|0)+1|0;s=(y|0)==102;while(1){l=(d|0)<-9?9:0-d|0;h:{if(k>>>0>=h>>>0){k=i[k>>2]?k:k+4|0;break h}u=1e9>>>l|0;v=-1<>2];i[m>>2]=C+(d>>>l|0);d=o(u,d&v);m=m+4|0;if(m>>>0>>0){continue}break}k=i[k>>2]?k:k+4|0;if(!d){break h}i[h>>2]=d;h=h+4|0}d=l+i[p+44>>2]|0;i[p+44>>2]=d;m=s?t:k;h=h-m>>2>(z|0)?m+(z<<2)|0:h;if((d|0)<0){continue}break}}m=0;i:{if(k>>>0>=h>>>0){break i}m=o(t-k>>2,9);d=10;l=i[k>>2];if(l>>>0<10){break i}while(1){m=m+1|0;d=o(d,10);if(l>>>0>=d>>>0){continue}break}}d=(r-((y|0)==102?0:m)|0)-((y|0)==103&(r|0)!=0)|0;if((d|0)<(o(h-t>>2,9)+ -9|0)){l=d+9216|0;s=(l|0)/9|0;n=((s<<2)+((n|0)<0?p+48|4:p+340|0)|0)+ -4096|0;d=10;l=l-o(s,9)|0;if((l|0)<=7){while(1){d=o(d,10);l=l+1|0;if((l|0)!=8){continue}break}}s=i[n>>2];u=(s>>>0)/(d>>>0)|0;z=n+4|0;l=s-o(d,u)|0;j:{if(l?0:(z|0)==(h|0)){break j}v=d>>>1|0;A=l>>>0>>0?.5:(h|0)==(z|0)?(v|0)==(l|0)?1:1.5:1.5;b=u&1?9007199254740994:9007199254740992;if(!(j[w|0]!=45|E)){A=-A;b=-b}l=s-l|0;i[n>>2]=l;if(b+A==b){break j}d=d+l|0;i[n>>2]=d;if(d>>>0>=1e9){while(1){i[n>>2]=0;n=n+ -4|0;if(n>>>0>>0){k=k+ -4|0;i[k>>2]=0}d=i[n>>2]+1|0;i[n>>2]=d;if(d>>>0>999999999){continue}break}}m=o(t-k>>2,9);d=10;l=i[k>>2];if(l>>>0<10){break j}while(1){m=m+1|0;d=o(d,10);if(l>>>0>=d>>>0){continue}break}}d=n+4|0;h=h>>>0>d>>>0?d:h}while(1){d=h;n=h>>>0<=k>>>0;if(!n){h=d+ -4|0;if(!i[h>>2]){continue}}break}k:{if((y|0)!=103){s=e&8;break k}h=r?r:1;l=(h|0)>(m|0)&(m|0)>-5;r=(l?m^-1:-1)+h|0;f=(l?-1:-2)+f|0;s=e&8;if(s){break k}h=-9;l:{if(n){break l}s=i[d+ -4>>2];if(!s){break l}l=10;h=0;if((s>>>0)%10|0){break l}while(1){n=h;h=h+1|0;l=o(l,10);if(!((s>>>0)%(l>>>0)|0)){continue}break}h=n^-1}n=o(d-t>>2,9);if((f&-33)==70){s=0;h=(h+n|0)+ -9|0;h=(h|0)>0?h:0;r=(r|0)<(h|0)?r:h;break k}s=0;h=((m+n|0)+h|0)+ -9|0;h=(h|0)>0?h:0;r=(r|0)<(h|0)?r:h}u=r|s;v=(u|0)!=0;C=a;l=c;y=f&-33;h=(m|0)>0?m:0;m:{if((y|0)==70){break m}h=m>>31;h=Ym(h+m^h,0,x);if((x-h|0)<=1){while(1){h=h+ -1|0;g[h|0]=48;if((x-h|0)<2){continue}break}}z=h+ -2|0;g[z|0]=f;g[h+ -1|0]=(m|0)<0?45:43;h=x-z|0}n=(h+(v+(r+B|0)|0)|0)+1|0;Zm(C,32,l,n,e);Tm(a,w,B);Zm(a,48,c,n,e^65536);n:{o:{p:{if((y|0)==70){f=p+16|8;m=p+16|9;l=k>>>0>t>>>0?t:k;k=l;while(1){h=Ym(i[k>>2],0,m);q:{if((k|0)!=(l|0)){if(h>>>0<=p+16>>>0){break q}while(1){h=h+ -1|0;g[h|0]=48;if(h>>>0>p+16>>>0){continue}break}break q}if((h|0)!=(m|0)){break q}g[p+24|0]=48;h=f}Tm(a,h,m-h|0);k=k+4|0;if(k>>>0<=t>>>0){continue}break}if(u){Tm(a,17539,1)}if((r|0)<1|k>>>0>=d>>>0){break p}while(1){h=Ym(i[k>>2],0,m);if(h>>>0>p+16>>>0){while(1){h=h+ -1|0;g[h|0]=48;if(h>>>0>p+16>>>0){continue}break}}Tm(a,h,(r|0)<9?r:9);h=r+ -9|0;k=k+4|0;if(k>>>0>=d>>>0){break o}f=(r|0)>9;r=h;if(f){continue}break}break o}r:{if((r|0)<0){break r}t=d>>>0>k>>>0?d:k+4|0;d=p+16|8;f=p+16|9;m=k;while(1){h=Ym(i[m>>2],0,f);if((f|0)==(h|0)){g[p+24|0]=48;h=d}s:{if((k|0)!=(m|0)){if(h>>>0<=p+16>>>0){break s}while(1){h=h+ -1|0;g[h|0]=48;if(h>>>0>p+16>>>0){continue}break}break s}Tm(a,h,1);h=h+1|0;if((r|0)<1?!s:0){break s}Tm(a,17539,1)}u=h;h=f-h|0;Tm(a,u,(r|0)>(h|0)?h:r);r=r-h|0;m=m+4|0;if(m>>>0>=t>>>0){break r}if((r|0)>-1){continue}break}}Zm(a,48,r+18|0,18,0);Tm(a,z,x-z|0);break n}h=r}Zm(a,48,h+9|0,9,0)}break b}r=f&32;l=r?w+9|0:w;t:{if(d>>>0>11){break t}h=12-d|0;if(!h){break t}A=8;while(1){A=A*16;h=h+ -1|0;if(h){continue}break}if(j[l|0]==45){b=-(A+(-b-A));break t}b=b+A-A}m=i[p+44>>2];h=m>>31;h=Ym(h^h+m,0,x);if((x|0)==(h|0)){g[p+15|0]=48;h=p+15|0}m=B|2;k=i[p+44>>2];t=h+ -2|0;g[t|0]=f+15;g[h+ -1|0]=(k|0)<0?45:43;n=e&8;k=p+16|0;while(1){f=k;u=k;k=r;if(q(b)<2147483648){h=~~b}else{h=-2147483648}g[u|0]=k|j[h+17488|0];b=(b- +(h|0))*16;k=f+1|0;if(!((k-(p+16|0)|0)!=1|(b==0?!((d|0)>0|n):0))){g[f+1|0]=46;k=f+2|0}if(b!=0){continue}break}h=a;f=c;if(!d|((k-p|0)+ -18|0)>=(d|0)){r=((x-(p+16|0)|0)-t|0)+k|0}else{r=((d+x|0)-t|0)+2|0}d=r;n=d+m|0;Zm(h,32,f,n,e);Tm(a,l,m);Zm(a,48,c,n,e^65536);f=k-(p+16|0)|0;Tm(a,p+16|0,f);d=x-t|0;Zm(a,48,r-(d+f|0)|0,0,0);Tm(a,t,d)}Zm(a,32,c,n,e^8192);F=p+560|0;return((n|0)<(c|0)?c:n)|0}function Zb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0;c=F-1696|0;F=c;d=10-_b(i[i[a+28>>2]+48>>2])|0;d=(d|0)<6?d:6;g[c+1695|0]=d;if(!((d&255)!=6|i[a+72>>2]<16)){g[c+1695|0]=5}d=i[b+20>>2];if((d|0)<0?1:(d|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],c+1695|0,c+1696|0)}f=i[a+28>>2];m=i[i[f+4>>2]+80>>2];e=i[a+72>>2];i[c+1684>>2]=0;i[c+1676>>2]=0;i[c+1680>>2]=0;i[c+1668>>2]=e;i[c+1664>>2]=m;i[c+1672>>2]=e<<2;a:{h=o(e,m);if(h){if(h>>>0>=1073741824){break a}d=h<<2;k=ho(d);i[c+1676>>2]=k;n=d+k|0;i[c+1684>>2]=n;ip(k,0,d);i[c+1680>>2]=n}i[c+1688>>2]=k;b:{d=i[a+4>>2];c:{if((d|0)!=i[a+8>>2]){while(1){f=i[i[i[f+4>>2]+8>>2]+(i[(s<<2)+d>>2]<<2)>>2];d=i[f+28>>2];if(d+ -1>>>0>=6){if((d|0)!=9){break c}f=i[i[a+60>>2]+(v<<2)>>2];if(!f){break c}v=v+1|0;d=i[f+28>>2]}d:{e:{switch(d+ -1|0){case 5:if(!m){break d}d=0;while(1){e=d;h=(i[c+1688>>2]+(p<<2)|0)+(o(i[c+1668>>2],d)<<2)|0;k=i[i[f>>2]>>2];n=i[f+48>>2];t=i[f+40>>2];u=i[f+44>>2];if(!j[f+84|0]){e=i[i[f+68>>2]+(d<<2)>>2]}q=h;h=up(t,u,e,0)+n|0;hp(q,h+k|0,g[f+24|0]<<2);d=d+1|0;if((m|0)!=(d|0)){continue}break}break d;case 0:case 2:case 4:e=g[f+24|0];d=0;i[c+464>>2]=0;i[c+456>>2]=0;i[c+460>>2]=0;h=0;f:{if(e){if((e|0)<=-1){break f}e=e<<2;h=ho(e);i[c+456>>2]=h;k=e+h|0;i[c+464>>2]=k;ip(h,0,e);i[c+460>>2]=k;h=j[f+24|0]}i[c+1656>>2]=0;i[c+1648>>2]=0;i[c+1652>>2]=0;g:{if(h&255){d=h<<24>>24;if((d|0)<=-1){break g}e=d<<2;d=ho(e);i[c+1648>>2]=d;h=d+e|0;i[c+1656>>2]=h;ip(d,0,e);i[c+1652>>2]=h}if(m){e=0;while(1){d=e;h=f;if(!j[f+84|0]){d=i[i[f+68>>2]+(e<<2)>>2]}Xb(h,d,g[f+24|0],i[c+456>>2]);k=g[f+24|0];h:{if((k|0)<=0){h=i[c+1648>>2];break h}k=k&255;n=k>>>0>1?k:1;t=i[a+48>>2];d=0;h=i[c+1648>>2];u=i[c+456>>2];while(1){q=d<<2;i[q+h>>2]=i[u+q>>2]-i[t+(d+w<<2)>>2];d=d+1|0;if((n|0)!=(d|0)){continue}break}}hp((i[c+1688>>2]+(p<<2)|0)+(o(i[c+1668>>2],e)<<2)|0,h,k<<2);e=e+1|0;if((e|0)!=(m|0)){continue}break}d=i[c+1648>>2]}e=g[f+24|0];if(d){i[c+1652>>2]=d;bp(d)}d=i[c+456>>2];if(d){i[c+460>>2]=d;bp(d)}w=e+w|0;break d}Ho();x()}Ho();x();default:break e}}e=g[f+24|0];d=0;i[c+464>>2]=0;i[c+456>>2]=0;i[c+460>>2]=0;if(e){if((e|0)<=-1){break b}e=e<<2;d=ho(e);i[c+456>>2]=d;h=d+e|0;i[c+464>>2]=h;ip(d,0,e);i[c+460>>2]=h}if(m){d=0;while(1){e=d;h=f;if(!j[f+84|0]){e=i[i[f+68>>2]+(d<<2)>>2]}$b(h,e,g[f+24|0],i[c+456>>2]);hp((i[c+1688>>2]+(p<<2)|0)+(o(i[c+1668>>2],d)<<2)|0,i[c+456>>2],g[f+24|0]<<2);d=d+1|0;if((m|0)!=(d|0)){continue}break}d=i[c+456>>2]}if(!d){break d}i[c+460>>2]=d;bp(d)}s=s+1|0;d=i[a+4>>2];if(s>>>0>2]-d>>2>>>0){p=g[f+24|0]+p|0;f=i[a+28>>2];continue}break}k=i[c+1688>>2];e=i[a+72>>2];h=o(m,e)}f=0;if((h|0)>0){d=0;while(1){a=i[(d<<2)+k>>2];if(a){a=r(a);f=(a^31)<(f|0)?f:32-a|0}d=d+1|0;if((h|0)!=(d|0)){continue}break}}i:{j:{switch(j[c+1695|0]){case 6:d=cc(c+456|0,e);a=i[c+1668>>2];i[c+448>>2]=a;i[c+432>>2]=a;i[c+32>>2]=a;i[c+16>>2]=a;i[c+440>>2]=0;i[c+424>>2]=i[c+1664>>2];i[c+444>>2]=c+1664;a=i[c+444>>2];i[c+24>>2]=i[c+440>>2];i[c+28>>2]=a;i[c+428>>2]=c+1664;i[c+1648>>2]=f;a=i[c+428>>2];i[c+8>>2]=i[c+424>>2];i[c+12>>2]=a;a=ac(d,c+24|0,c+8|0,c+1648|0,b);bc(d);if(a){break i}break c;case 5:d=cc(c+456|0,e);a=i[c+1668>>2];i[c+416>>2]=a;i[c+400>>2]=a;i[c- -64>>2]=a;i[c+48>>2]=a;i[c+408>>2]=0;i[c+392>>2]=i[c+1664>>2];i[c+412>>2]=c+1664;a=i[c+412>>2];i[c+56>>2]=i[c+408>>2];i[c+60>>2]=a;i[c+396>>2]=c+1664;i[c+1648>>2]=f;a=i[c+396>>2];i[c+40>>2]=i[c+392>>2];i[c+44>>2]=a;a=dc(d,c+56|0,c+40|0,c+1648|0,b);bc(d);if(a){break i}break c;case 4:d=cc(c+456|0,e);a=i[c+1668>>2];i[c+384>>2]=a;i[c+368>>2]=a;i[c+96>>2]=a;i[c+80>>2]=a;i[c+376>>2]=0;i[c+360>>2]=i[c+1664>>2];i[c+380>>2]=c+1664;a=i[c+380>>2];i[c+88>>2]=i[c+376>>2];i[c+92>>2]=a;i[c+364>>2]=c+1664;i[c+1648>>2]=f;a=i[c+364>>2];i[c+72>>2]=i[c+360>>2];i[c+76>>2]=a;a=dc(d,c+88|0,c+72|0,c+1648|0,b);bc(d);if(a){break i}break c;case 3:d=ec(c+456|0,e);a=i[c+1668>>2];i[c+352>>2]=a;i[c+336>>2]=a;i[c+128>>2]=a;i[c+112>>2]=a;i[c+344>>2]=0;i[c+328>>2]=i[c+1664>>2];i[c+348>>2]=c+1664;a=i[c+348>>2];i[c+120>>2]=i[c+344>>2];i[c+124>>2]=a;i[c+332>>2]=c+1664;i[c+1648>>2]=f;a=i[c+332>>2];i[c+104>>2]=i[c+328>>2];i[c+108>>2]=a;a=fc(d,c+120|0,c+104|0,c+1648|0,b);gc(d);if(a){break i}break c;case 2:d=ec(c+456|0,e);a=i[c+1668>>2];i[c+320>>2]=a;i[c+304>>2]=a;i[c+160>>2]=a;i[c+144>>2]=a;i[c+312>>2]=0;i[c+296>>2]=i[c+1664>>2];i[c+316>>2]=c+1664;a=i[c+316>>2];i[c+152>>2]=i[c+312>>2];i[c+156>>2]=a;i[c+300>>2]=c+1664;i[c+1648>>2]=f;a=i[c+300>>2];i[c+136>>2]=i[c+296>>2];i[c+140>>2]=a;a=fc(d,c+152|0,c+136|0,c+1648|0,b);gc(d);if(a){break i}break c;case 1:d=hc(c+456|0,e);a=i[c+1668>>2];i[c+288>>2]=a;i[c+272>>2]=a;i[c+192>>2]=a;i[c+176>>2]=a;i[c+280>>2]=0;i[c+264>>2]=i[c+1664>>2];i[c+284>>2]=c+1664;a=i[c+284>>2];i[c+184>>2]=i[c+280>>2];i[c+188>>2]=a;i[c+268>>2]=c+1664;i[c+1648>>2]=f;a=i[c+268>>2];i[c+168>>2]=i[c+264>>2];i[c+172>>2]=a;a=ic(d,c+184|0,c+168|0,c+1648|0,b);jc(d);if(a){break i}break c;case 0:break j;default:break c}}d=hc(c+456|0,e);a=i[c+1668>>2];i[c+256>>2]=a;i[c+240>>2]=a;i[c+224>>2]=a;i[c+208>>2]=a;i[c+248>>2]=0;i[c+232>>2]=i[c+1664>>2];i[c+252>>2]=c+1664;a=i[c+252>>2];i[c+216>>2]=i[c+248>>2];i[c+220>>2]=a;i[c+236>>2]=c+1664;i[c+1648>>2]=f;a=i[c+236>>2];i[c+200>>2]=i[c+232>>2];i[c+204>>2]=a;a=ic(d,c+216|0,c+200|0,c+1648|0,b);jc(d);if(!a){break c}}y=1}a=i[c+1676>>2];if(a){i[c+1680>>2]=a;bp(a)}F=c+1696|0;return y|0}Ho();x()}Ho();x()}function gi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;l=F-32|0;F=l;d=i[a+16>>2];i[a+20>>2]=d;a:{if((d|0)!=i[a+24>>2]){i[d>>2]=b;b=d+4|0;i[a+20>>2]=b;g=d;break a}g=ho(4);i[g>>2]=b;b=g+4|0;i[a+24>>2]=b;i[a+20>>2]=b;i[a+16>>2]=g;if(!d){break a}bp(d);b=i[a+20>>2];g=i[a+16>>2]}d=i[a+8>>2];q=i[d+100>>2]-i[d+96>>2]|0;d=(q|0)/12|0;b:{if((b|0)!=(g|0)){u=a+16|0;v=(d|0)>1?d:1;w=a+120|0;n=a+268|0;y=a+72|0;while(1){c:{d:{d=b+ -4|0;b=i[d>>2];if((b|0)==-1){break d}g=i[a+28>>2];e=(b>>>0)/3|0;if(i[g+(e>>>3&268435452)>>2]>>>e&1){break d}h=0;if((q|0)<=0){break c}while(1){i[a+164>>2]=i[a+164>>2]+1;j=(b>>>0)/3|0;m=(b|0)==-1;k=m?-1:j;d=(k>>>3&536870908)+g|0;i[d>>2]=i[d>>2]|1<>2];i:{if((d|0)!=i[a+80>>2]){i[d>>2]=b;i[a+76>>2]=d+4;break i}g=i[y>>2];e=d-g|0;f=e>>2;c=f+1|0;if(c>>>0>=1073741824){break h}p=e>>1;c=f>>>0<536870911?p>>>0>>0?c:p:1073741823;d=0;j:{if(!c){break j}if(c>>>0>=1073741824){break b}d=ho(c<<2)}f=d+(f<<2)|0;i[f>>2]=b;c=d+(c<<2)|0;f=f+4|0;if((e|0)>=1){hp(d,g,e)}i[a+80>>2]=c;i[a+76>>2]=f;i[a+72>>2]=d;if(!g){break i}bp(g)}d=-1;d=(b|0)!=-1?i[i[i[a+12>>2]>>2]+(b<<2)>>2]:d;r=d<<2;p=i[r+i[a+152>>2]>>2];k:{g=i[a+84>>2]+(d>>>3&536870908)|0;e=i[g>>2];d=1<>2]=d|e;if((p|0)!=-1){break k}d=i[a+272>>2];l:{if((d|0)!=i[a+276>>2]){i[d>>2]=0;i[a+272>>2]=d+4;break l}g=i[n>>2];e=d-g|0;f=e>>2;c=f+1|0;if(c>>>0>=1073741824){break g}k=e>>1;c=f>>>0<536870911?k>>>0>>0?c:k:1073741823;d=0;m:{if(!c){break m}if(c>>>0>=1073741824){break b}d=ho(c<<2)}f=d+(f<<2)|0;i[f>>2]=0;c=d+(c<<2)|0;f=f+4|0;if((e|0)>=1){hp(d,g,e)}i[a+276>>2]=c;i[a+272>>2]=f;i[a+268>>2]=d;if(!g){break l}bp(g)}d=-1;if((b|0)==-1){break e}g=b+1|0;b=(g>>>0)%3|0?g:b+ -2|0;if((b|0)==-1){break e}d=i[i[i[a+12>>2]+12>>2]+(b<<2)>>2];break e}n:{o:{p:{if(m){break p}d=-1;g=-1;e=b+1|0;c=(e>>>0)%3|0?e:b+ -2|0;if((c|0)!=-1){g=i[i[i[a+12>>2]+12>>2]+(c<<2)>>2]}e=(b-o(j,3)|0?-1:2)+b|0;if((e|0)!=-1){d=i[i[i[a+12>>2]+12>>2]+(e<<2)>>2]}f=(d|0)==-1;j=f?-1:(d>>>0)/3|0;m=(g>>>0)/3|0;q:{if((c|0)==-1){break q}s=i[i[a+12>>2]+12>>2];c=i[s+(c<<2)>>2];if((c|0)==-1){break q}t=i[a+28>>2];c=(c>>>0)/3|0;if(!(i[t+(c>>>3&268435452)>>2]>>>c&1)){break n}}b=(g|0)==-1;if(!b){oi(a,i[a+164>>2],1,b?-1:m)}r:{if((e|0)==-1){break r}b=i[i[i[a+12>>2]+12>>2]+(e<<2)>>2];if((b|0)==-1){break r}b=(b>>>0)/3|0;if(!(i[i[a+28>>2]+(b>>>3&268435452)>>2]>>>b&1)){break o}}if(f){break p}oi(a,i[a+164>>2],0,j)}b=i[a+272>>2];s:{if((b|0)!=i[a+276>>2]){i[b>>2]=7;i[a+272>>2]=b+4;break s}d=i[n>>2];g=b-d|0;c=g>>2;e=c+1|0;if(e>>>0>=1073741824){break g}h=g>>1;e=c>>>0<536870911?h>>>0>>0?e:h:1073741823;b=0;t:{if(!e){break t}if(e>>>0>=1073741824){break b}b=ho(e<<2)}c=b+(c<<2)|0;i[c>>2]=7;e=b+(e<<2)|0;c=c+4|0;if((g|0)>=1){hp(b,d,g)}i[a+276>>2]=e;i[a+272>>2]=c;i[a+268>>2]=b;if(!d){break s}bp(d)}i[a+20>>2]=i[a+20>>2]+ -4;break c}b=i[a+272>>2];if((b|0)!=i[a+276>>2]){i[b>>2]=5;i[a+272>>2]=b+4;break e}g=i[n>>2];e=b-g|0;f=e>>2;c=f+1|0;if(c>>>0>=1073741824){break g}k=e>>1;c=f>>>0<536870911?k>>>0>>0?c:k:1073741823;b=0;u:{if(!c){break u}if(c>>>0>=1073741824){break b}b=ho(c<<2)}f=b+(f<<2)|0;i[f>>2]=5;c=b+(c<<2)|0;f=f+4|0;if((e|0)>=1){hp(b,g,e)}i[a+276>>2]=c;i[a+272>>2]=f;i[a+268>>2]=b;if(!g){break e}bp(g);break e}v:{w:{if((e|0)==-1){break w}e=i[(e<<2)+s>>2];if((e|0)==-1){break w}e=(e>>>0)/3|0;if(!(i[(e>>>3&268435452)+t>>2]>>>e&1)){break v}}if(!f){oi(a,i[a+164>>2],0,j)}b=i[a+272>>2];if((b|0)!=i[a+276>>2]){i[b>>2]=3;i[a+272>>2]=b+4;d=g;break e}d=i[n>>2];e=b-d|0;f=e>>2;c=f+1|0;if(c>>>0>=1073741824){break g}k=e>>1;c=f>>>0<536870911?k>>>0>>0?c:k:1073741823;b=0;x:{if(!c){break x}if(c>>>0>=1073741824){break b}b=ho(c<<2)}f=b+(f<<2)|0;i[f>>2]=3;c=b+(c<<2)|0;f=f+4|0;if((e|0)>=1){hp(b,d,e)}i[a+276>>2]=c;i[a+272>>2]=f;i[a+268>>2]=b;if(d){bp(d)}d=g;break e}e=i[a+272>>2];y:{if((e|0)!=i[a+276>>2]){i[e>>2]=1;i[a+272>>2]=e+4;break y}c=i[n>>2];h=e-c|0;j=h>>2;f=j+1|0;if(f>>>0>=1073741824){break g}m=h>>1;f=j>>>0<536870911?m>>>0>>0?f:m:1073741823;e=0;z:{if(!f){break z}if(f>>>0>=1073741824){break b}e=ho(f<<2)}j=e+(j<<2)|0;i[j>>2]=1;f=e+(f<<2)|0;j=j+4|0;if((h|0)>=1){hp(e,c,h)}i[a+276>>2]=f;i[a+272>>2]=j;i[a+268>>2]=e;if(!c){break y}bp(c)}i[a+168>>2]=i[a+168>>2]+1;A:{if((p|0)==-1){break A}e=i[r+i[a+152>>2]>>2];if(i[i[a+140>>2]+(e>>>3&536870908)>>2]>>>e&1){break A}hi(a,b,0)}b=i[a+164>>2];i[l+4>>2]=k;i[l+16>>2]=l+4;pi(l+24|0,w,l+4|0,l+16|0);i[i[l+24>>2]+12>>2]=b;b=i[a+20>>2];i[b+ -4>>2]=d;if((b|0)!=i[a+24>>2]){i[b>>2]=g;i[a+20>>2]=b+4;break c}d=i[u>>2];e=b-d|0;h=e>>2;c=h+1|0;if(c>>>0>=1073741824){break f}f=e>>1;c=h>>>0<536870911?f>>>0>>0?c:f:1073741823;b=0;B:{if(!c){break B}if(c>>>0>=1073741824){break b}b=ho(c<<2)}h=b+(h<<2)|0;i[h>>2]=g;g=b+(c<<2)|0;c=h+4|0;if((e|0)>=1){hp(b,d,e)}i[a+24>>2]=g;i[a+20>>2]=c;i[a+16>>2]=b;if(!d){break c}bp(d);break c}Ho();x()}Ho();x()}Ho();x()}h=h+1|0;if((v|0)==(h|0)){break c}g=i[a+28>>2];b=d;continue}}i[a+20>>2]=d}b=i[a+20>>2];if((b|0)!=i[a+16>>2]){continue}break}}F=l+32|0;return 1}za(11708);x()}function yn(a,b,c,d,e,f,g,h,j){var k=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,I=0,J=0,K=0,L=0,M=0;m=F-96|0;F=m;u=c;w=(g&131071)<<15|f>>>17;k=j&65535;o=k;n=h;l=h;z=l<<15|g>>>17;p=(e^j)&-2147483648;v=e&65535;l=v;q=d;x=l;v=0;B=(k&131071)<<15|h>>>17;C=j>>>16&32767;D=e>>>16&32767;a:{b:{if(C+ -1>>>0<32766?D+ -1>>>0<=32765:0){break b}s=e&2147483647;y=s;k=d;if(!(!d&(s|0)==2147418112?!(b|c):(s|0)==2147418112&d>>>0<0|s>>>0<2147418112)){A=d;p=e|32768;break a}s=j&2147483647;e=s;d=h;if(!(!d&(e|0)==2147418112?!(f|g):(e|0)==2147418112&d>>>0<0|e>>>0<2147418112)){A=h;p=j|32768;b=f;c=g;break a}if(!(b|k|(y^2147418112|c))){if(!(d|f|(e|g))){p=2147450880;b=0;c=0;break a}p=p|2147418112;b=0;c=0;break a}if(!(d|f|(e^2147418112|g))){d=b|k;e=c|y;b=0;c=0;if(!(d|e)){p=2147450880;break a}p=p|2147418112;break a}if(!(b|k|(c|y))){b=0;c=0;break a}if(!(d|f|(e|g))){b=0;c=0;break a}if((y|0)==65535|y>>>0<65535){j=b;d=!(l|q);h=d<<6;k=r(d?b:q)+32|0;b=r(d?c:l);b=h+((b|0)==32?k:b)|0;sn(m+80|0,j,c,q,l,b+ -15|0);t=16-b|0;q=i[m+88>>2];u=i[m+84>>2];x=i[m+92>>2];b=i[m+80>>2]}if(e>>>0>65535){break b}c=!(n|o);d=c<<6;e=r(c?f:n)+32|0;c=r(c?g:o);c=d+((c|0)==32?e:c)|0;sn(m- -64|0,f,g,n,o,c+ -15|0);t=(t-c|0)+16|0;f=i[m+76>>2];c=f;h=i[m+68>>2];g=h;e=i[m+72>>2];d=e;z=d<<15|g>>>17;d=g;f=i[m+64>>2];w=(d&131071)<<15|f>>>17;B=(c&131071)<<15|e>>>17}L=(C+D|0)+t|0;o=z;s=0;t=0;h=up(o,s,q,t);d=H;j=0;n=w;C=0;x=x|65536;l=up(n,C,x,v);e=l+h|0;c=H+d|0;c=e>>>0>>0?c+1|0:c;l=e;k=e;e=c;g=(d|0)==(c|0)&k>>>0>>0|c>>>0>>0;B=B&2147483647|-2147483648;D=0;h=up(B,D,u,0);d=h+k|0;k=H+c|0;E=d;c=d;k=c>>>0>>0?k+1|0:k;d=k;c=(e|0)==(d|0)&c>>>0>>0|d>>>0>>0;e=g+c|0;if(e>>>0>>0){j=1}M=e;h=j;l=d;e=up(n,C,u,I);c=H;k=c;j=0;G=f<<15&-32768;g=up(G,0,q,t);f=g+e|0;c=H+c|0;c=f>>>0>>0?c+1|0:c;g=f;f=(k|0)==(c|0)&g>>>0>>0|c>>>0>>0;w=b;e=up(o,s,b,0);b=e+g|0;k=H+c|0;k=b>>>0>>0?k+1|0:k;z=b;e=k;b=(c|0)==(k|0)&b>>>0>>0|k>>>0>>0;c=f+b|0;if(c>>>0>>0){j=1}b=c+E|0;f=j+l|0;y=b;k=h;f=b>>>0>>0?f+1|0:f;g=f;b=(d|0)==(f|0)&b>>>0>>0|f>>>0>>0;c=b+M|0;if(c>>>0>>0){k=k+1|0}b=c;c=up(x,v,B,D);b=b+c|0;l=H+k|0;l=b>>>0>>0?l+1|0:l;d=up(q,t,B,D);c=H;j=b;h=up(o,s,x,v);b=h+d|0;f=H+c|0;f=b>>>0>>0?f+1|0:f;h=b;k=b;b=f;f=(c|0)==(b|0)&k>>>0>>0|b>>>0>>0;d=j+b|0;k=f+l|0;c=d;f=c>>>0>>0?k+1|0:k;c=h;h=0;b=h+y|0;j=c+g|0;j=b>>>0>>0?j+1|0:j;h=b;c=b;b=j;c=(g|0)==(b|0)&c>>>0>>0|b>>>0>>0;d=d+c|0;if(d>>>0>>0){f=f+1|0}E=d;c=h;y=b;t=up(q,t,n,C);q=H;g=up(G,J,x,v);d=g+t|0;l=H+q|0;l=d>>>0>>0?l+1|0:l;x=d;k=up(o,s,u,I);d=d+k|0;g=l;j=g+H|0;j=d>>>0>>0?j+1|0:j;o=d;l=up(w,K,B,D);d=d+l|0;k=H+j|0;v=d;k=d>>>0>>0?k+1|0:k;d=k;s=d;k=0;l=f;d=(d|0)==(j|0)&v>>>0>>0|d>>>0>>0;f=(g|0)==(j|0)&o>>>0>>0|j>>>0>>0;g=f+((g|0)==(q|0)&x>>>0>>0|g>>>0>>0)|0;g>>>0>>0;g=d+g|0;f=s;c=c+f|0;k=(g|k)+y|0;k=c>>>0>>0?k+1|0:k;j=c;g=k;b=(b|0)==(k|0)&c>>>0>>0|k>>>0>>0;c=b+E|0;if(c>>>0>>0){l=l+1|0}t=c;b=l;l=j;o=g;k=z;s=up(w,K,n,C);n=H;h=up(G,J,u,I);c=h+s|0;f=H+n|0;q=c;f=c>>>0>>0?f+1|0:f;h=f;f=0;c=(h|0)==(n|0)&c>>>0>>0|h>>>0>>0;n=h+k|0;k=(c|f)+e|0;k=n>>>0>>0?k+1|0:k;f=n;c=k;u=(e|0)==(c|0)&f>>>0>>0|c>>>0>>0;h=l;f=0;k=c+v|0;l=0;d=l+n|0;if(d>>>0>>0){k=k+1|0}e=d;d=k;c=(c|0)==(d|0)&e>>>0>>0|d>>>0>>0;l=c+u|0;if(l>>>0>>0){f=1}k=l;c=h+k|0;l=f+o|0;l=c>>>0>>0?l+1|0:l;v=c;k=b;b=l;c=(g|0)==(b|0)&c>>>0>>0|b>>>0>>0;f=c+t|0;if(f>>>0>>0){k=k+1|0}o=f;c=k;f=c&65536;k=f;n=0;u=k>>>16|0;g=(u+L|0)+ -16383|0;if((g|0)>=32767){p=p|2147418112;b=0;c=0;break a}l=o;j=c<<1|l>>>31;f=l<<1|b>>>31;z=!(k|n);l=z;o=l?f:o;n=l?j:c;j=d;h=0;f=up(w,K,G,J);d=h+f|0;k=q;c=k+H|0;c=d>>>0>>0?c+1|0:c;q=d;f=c;c=e+((k|0)==(c|0)&d>>>0>>0|c>>>0>>0)|0;if(c>>>0>>0){j=j+1|0}w=c;c=j;h=c;e=w;l=u^1;d=l&31;if(32<=(l&63)>>>0){k=e<>>32-d|h<>>1|0;h=(d&1)<<31|q>>>1;j=u|62;d=j&31;if(32<=(j&63)>>>0){j=0;d=k>>>d|0}else{j=k>>>d|0;d=((1<>>d}d=w|d;e=e|j;j=v;k=b<<1|j>>>31;h=z?j<<1|c>>>31:j;j=z?k:b;c=q;b=l&31;if(32<=(l&63)>>>0){f=c<>>32-b|f<>>0>=128){b=0;c=0;break a}g=g+127|0;sn(m+48|0,b,c,d,e,g);sn(m+32|0,h,j,o,n,g);vn(m+16|0,b,c,d,e,f);vn(m,h,j,o,n,f);b=(i[m+48>>2]|i[m+56>>2])!=0|(i[m+52>>2]|i[m+60>>2])!=0|(i[m+32>>2]|i[m+16>>2]);c=i[m+36>>2]|i[m+20>>2];d=i[m+40>>2]|i[m+24>>2];e=i[m+44>>2]|i[m+28>>2];h=i[m>>2];j=i[m+4>>2];g=i[m+12>>2];o=i[m+8>>2];break c}g=n&65535|g<<16}A=o|A;p=g|p;if(!(!d&(e|0)==-2147483648?!(b|c):(e|0)>-1)){k=p;l=j;b=h+1|0;if(b>>>0<1){l=l+1|0}d=b;c=l;d=(j|0)==(c|0)&d>>>0>>0|c>>>0>>0;e=d+A|0;if(e>>>0>>0){k=k+1|0}A=e;p=k;break a}if(b|d|(e^-2147483648|c)){b=h;c=j;break a}l=p;f=j;b=h&1;c=b+h|0;if(c>>>0>>0){f=f+1|0}b=c;d=c;c=f;d=(j|0)==(c|0)&d>>>0>>0|c>>>0>>0;e=d+A|0;if(e>>>0>>0){l=l+1|0}A=e;p=l}i[a>>2]=b;i[a+4>>2]=c;i[a+8>>2]=A;i[a+12>>2]=p;F=m+96|0}function Pd(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=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,V=0;k=F-80|0;F=k;h=-1;e=-1;a:{if((b|0)==-1){break a}e=b+1|0;h=(e>>>0)%3|0?e:b+ -2|0;e=b+ -1|0;if((b>>>0)%3|0){break a}e=b+2|0}f=i[a+36>>2];b=i[f>>2];b:{c:{d:{e:{f:{g:{h:{i:{f=i[f+4>>2]-b>>2;m=h<<2;h=i[i[a+32>>2]+28>>2];l=i[m+h>>2];if(f>>>0<=l>>>0){break i}e=i[h+(e<<2)>>2];if(f>>>0<=e>>>0){break i}K=i[b+(l<<2)>>2];M=(K|0)>=(d|0);if(M){break d}l=i[b+(e<<2)>>2];if((l|0)>=(d|0)){break d}b=l<<3;f=i[(b|4)+c>>2];e=K<<3;h=i[(e|4)+c>>2];J=i[b+c>>2];z=i[c+e>>2];if(!((J|0)!=(z|0)|(f|0)!=(h|0))){i[a+8>>2]=z;i[a+12>>2]=h;break c}b=i[i[a+4>>2]+(d<<2)>>2];i[k+72>>2]=0;i[k+76>>2]=0;e=k- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[k+56>>2]=0;i[k+60>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Qd(e,b,g[e+24|0],k+56|0);b=i[i[a+4>>2]+(K<<2)>>2];i[k+48>>2]=0;i[k+52>>2]=0;i[k+40>>2]=0;i[k+44>>2]=0;i[k+32>>2]=0;i[k+36>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Qd(e,b,g[e+24|0],k+32|0);b=i[i[a+4>>2]+(l<<2)>>2];i[k+24>>2]=0;i[k+28>>2]=0;i[k+16>>2]=0;i[k+20>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Qd(e,b,g[e+24|0],k+8|0);A=i[k+44>>2];e=i[k+16>>2];b=i[k+40>>2];n=i[k+20>>2]-(A+(e>>>0>>0)|0)|0;l=e-b|0;e=up(l,n,l,n);r=H;m=e;y=i[k+36>>2];e=i[k+8>>2];u=i[k+32>>2];o=u;s=i[k+12>>2]-(y+(e>>>0>>0)|0)|0;o=e-o|0;p=up(o,s,o,s);m=m+p|0;e=H+r|0;e=m>>>0

>>0?e+1|0:e;q=m;t=i[k+52>>2];m=i[k+24>>2];v=i[k+48>>2];p=v;r=i[k+28>>2]-(t+(m>>>0

>>0)|0)|0;m=m-p|0;C=up(m,r,m,r);p=q+C|0;e=H+e|0;w=p;p=p>>>0>>0?e+1|0:e;if(!(w|p)){break d}e=i[k+64>>2];C=e-b|0;N=i[k+68>>2]-((e>>>0>>0)+A|0)|0;b=up(C,N,l,n);e=H;q=b;b=i[k+56>>2];E=b-u|0;O=i[k+60>>2]-((b>>>0>>0)+y|0)|0;u=up(E,O,o,s);b=q+u|0;e=H+e|0;e=b>>>0>>0?e+1|0:e;q=b;b=i[k+72>>2];G=b-v|0;P=i[k+76>>2]-((b>>>0>>0)+t|0)|0;u=up(G,P,m,r);b=q+u|0;e=H+e|0;v=b;e=b>>>0>>0?e+1|0:e;A=e;B=b;u=e;e=r;y=e>>31;b=e>>31;e=b+e|0;t=y;q=t+m|0;if(q>>>0>>0){e=e+1|0}y=y^q;b=b^e;Q=b;q=y;I=b;e=n;b=e>>31;e=e>>31;D=b;b=b+n|0;L=e+l|0;if(L>>>0>>0){b=b+1|0}e=e^L;b=b^D;R=b;L=b;S=B;T=q;q=e;B=s>>31;b=B+s|0;t=s>>31;D=t+o|0;if(D>>>0>>0){b=b+1|0}t=t^D;e=t>>>0>>0;b=b^B;e=(b|0)<(R|0)?1:(b|0)<=(R|0)?e:0;t=e?q:t;b=e?L:b;e=(b|0)<(Q|0)?1:(b|0)<=(Q|0)?t>>>0>>0:0;e=S>>>0>wp(-1,2147483647,e?T:t,e?I:b)>>>0;b=H;if((u|0)>(b|0)?1:(u|0)>=(b|0)?e:0){break e}b=f;e=h;B=b-e|0;h=e>>31;q=(b>>31)-(h+(b>>>0>>0)|0)|0;b=up(v,A,B,q);f=H;e=up(e,h,w,p);b=e+b|0;f=H+f|0;u=b;y=b>>>0>>0?f+1|0:f;b=J;e=z;I=b-e|0;f=e>>31;D=(b>>31)-(f+(b>>>0>>0)|0)|0;b=up(v,A,I,D);h=H;f=up(e,f,w,p);e=f+b|0;b=H+h|0;z=e;J=e>>>0>>0?b+1|0:b;h=1;e=0;b=vp(up(l,n,v,A),H,w,p);f=N-(H+(C>>>0>>0)|0)|0;b=C-b|0;b=up(b,f,b,f);l=H;n=b;b=vp(up(o,s,v,A),H,w,p);f=O-(H+(E>>>0>>0)|0)|0;b=E-b|0;o=up(b,f,b,f);b=n+o|0;f=H+l|0;f=b>>>0>>0?f+1|0:f;n=b;b=vp(up(m,r,v,A),H,w,p);l=P-(H+(G>>>0>>0)|0)|0;b=G-b|0;o=up(b,l,b,l);l=n+o|0;b=H+f|0;l=up(l,l>>>0>>0?b+1|0:b,w,p);b=H;o=b;if(!b&l>>>0<=1|b>>>0<0){break h}m=l;f=o;while(1){b=e<<1|h>>>31;h=h<<1;e=b;n=!f&m>>>0>7|f>>>0>0;m=(f&3)<<30|m>>>2;f=f>>>2|0;if(n){continue}break}break g}Io();x()}h=l;e=o;if(h-1|0){break f}}while(1){b=wp(l,o,h,e)+h|0;e=e+H|0;e=b>>>0>>0?e+1|0:e;h=(e&1)<<31|b>>>1;e=e>>>1|0;b=up(h,e,h,e);f=H;if((o|0)==(f|0)&b>>>0>l>>>0|f>>>0>o>>>0){continue}break}}o=a+16|0;t=i[a+24>>2];C=t<<5;b=i[a+20>>2];v=d<<3;n=i[(v|4)+c>>2];m=n;f=u;E=up(h,e,I,D);l=E;G=H;l=vp(f-l|0,y-(G+(f>>>0>>0)|0)|0,w,p);r=m>>31;f=m;s=r-(H+(f>>>0>>0)|0)|0;f=f-l|0;I=up(f,s,f,s);D=H;n=i[c+v>>2];f=n>>31;v=n;s=n;A=f;n=up(h,e,B,q);B=H;e=J+B|0;h=z;q=h+n|0;if(q>>>0>>0){e=e+1|0}h=vp(q,e,w,p);e=h;f=f-(H+(s>>>0>>0)|0)|0;e=s-e|0;s=up(e,f,e,f);e=s+I|0;f=H+D|0;q=e;s=e>>>0>>0?f+1|0:f;e=y+G|0;f=u+E|0;if(f>>>0>>0){e=e+1|0}e=vp(f,e,w,p);r=r-(H+(m>>>0>>0)|0)|0;f=m-e|0;f=up(f,r,f,r);u=H;m=vp(z-n|0,J-((z>>>0>>0)+B|0)|0,w,p);n=f;f=m;r=A-(H+(v>>>0>>0)|0)|0;f=v-f|0;z=up(f,r,f,r);r=n+z|0;f=H+u|0;f=r>>>0>>0?f+1|0:f;j:{if((f|0)==(s|0)&q>>>0>>0|s>>>0>>0){if((b|0)==(C|0)){if((b+1|0)<=-1){break b}if(b>>>0<=1073741822){b=b+32&-32;e=t<<6;b=e>>>0>>0?b:e}else{b=2147483647}bd(o,b);b=i[a+20>>2]}i[a+20>>2]=b+1;e=i[a+16>>2]+(b>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<>>0<=1073741822){b=b+32&-32;h=t<<6;b=h>>>0>>0?b:h}else{b=2147483647}bd(o,b);b=i[a+20>>2]}i[a+20>>2]=b+1;h=i[a+16>>2]+(b>>>3&536870908)|0;f=i[h>>2];U=h,V=yp(-2,b)&f,i[U>>2]=V;l=e;h=m}i[a+8>>2]=h;i[a+12>>2]=l}if(!(p|w)){break d}break c}e=a;if(M){if((d|0)<=0){i[a+8>>2]=0;i[a+12>>2]=0;break c}b=(d<<1)+ -2|0}else{b=K<<1}b=(b<<2)+c|0;i[e+8>>2]=i[b>>2];i[a+12>>2]=i[b+4>>2]}F=k+80|0;return}Ho();x()} -function Di(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;m=H-16|0;H=m;i[a+124>>2]=i[a+124>>2]+1;g=-1;d=i[a+120>>2];c=-1;a:{if((d|0)==-1){break a}c=d+1|0;g=(c>>>0)%3|0?c:d+ -2|0;c=d+ -1|0;if((d>>>0)%3|0){break a}c=d+2|0}e=i[a+104>>2];f=i[a+92>>2];h=f+(g<<2)|0;j=e+(i[h>>2]<<2)|0;k=i[j>>2];b:{c:{switch(b|0){case 0:case 1:i[j>>2]=k+ -1;d=(i[(c<<2)+f>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -1;d=1;if((b|0)!=1){break b}d:{if((c|0)==-1){break d}c=i[i[i[a+88>>2]+12>>2]+(c<<2)>>2];if((c|0)==-1){break d}while(1){e:{e=i[a+64>>2];if(K[i[i[e>>2]+36>>2]](e,(c>>>0)/3|0)|0){break e}e=c+1|0;c=(e>>>0)%3|0?e:c+ -2|0;if((c|0)==-1){d=d+1|0;break e}d=d+1|0;c=i[i[i[a+88>>2]+12>>2]+(c<<2)>>2];if((c|0)!=-1){continue}}break}e=i[a+104>>2];f=i[a+92>>2]}h=a+104|0;i[(i[(i[a+120>>2]<<2)+f>>2]<<2)+e>>2]=d;f=1;f:{if((g|0)==-1){break f}c=i[i[i[a+88>>2]+12>>2]+(g<<2)>>2];if((c|0)==-1){break f}e=i[a+108>>2]-e>>2;while(1){d=i[a+64>>2];g=(c>>>0)/3|0;if(K[i[i[d>>2]+36>>2]](d,g)|0){break f}d=c+1|0;i[i[a+92>>2]+(((d>>>0)%3|0?d:c+ -2|0)<<2)>>2]=e;c=(c-o(g,3)|0?-1:2)+c|0;if((c|0)==-1){f=f+1|0;break f}f=f+1|0;c=i[i[i[a+88>>2]+12>>2]+(c<<2)>>2];if((c|0)!=-1){continue}break}}i[m+12>>2]=f;Ei(h,m+12|0);break b;case 5:d=(i[(d<<2)+f>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -1;d=(i[h>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -1;c=(i[(c<<2)+f>>2]<<2)+e|0;i[c>>2]=i[c>>2]+ -2;break b;case 3:d=(i[(d<<2)+f>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -1;d=(i[h>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -2;c=(i[(c<<2)+f>>2]<<2)+e|0;i[c>>2]=i[c>>2]+ -1;break b;case 7:break c;default:break b}}d=(i[(d<<2)+f>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -2;d=(i[h>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -2;c=(i[(c<<2)+f>>2]<<2)+e|0;i[c>>2]=i[c>>2]+ -2}g:{h:{f=i[a+116>>2];i:{if((f|0)==-1){break i}e=i[a+128>>2];c=e;d=i[a+136>>2];if((k|0)>=(c|0)){c=i[a+132>>2];c=(k|0)>(c|0)?c:k}e=o(c-e|0,12)+d|0;g=e+4|0;k=i[(f<<2)+12080>>2];c=i[e+4>>2];j=i[e+8>>2];if(c>>>0>>0){i[c>>2]=k;i[g>>2]=c+4;break i}f=i[e>>2];h=c-f|0;l=h>>2;d=l+1|0;if(d>>>0>=1073741824){break h}j=j-f|0;c=j>>1;d=j>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;j:{if(!d){break j}if(d>>>0>=1073741824){break g}c=ko(d<<2)}j=e+8|0;l=c+(l<<2)|0;i[l>>2]=k;d=c+(d<<2)|0;k=l+4|0;if((h|0)>=1){kp(c,f,h)}i[e>>2]=c;i[g>>2]=k;i[j>>2]=d;if(!f){break i}ep(f)}i[a+116>>2]=b;H=m+16|0;return}Ko();x()}Ba(11708);x()}function Zg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*32768+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==32768){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;th(g,p,k+24|0);g:{if((n|0)<32768){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+32768;f=0;break g}c=n+ -32768|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=32768/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==32768){n=32768;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=32768){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*30517578125e-15)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function Xg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*8192+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==8192){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;sh(g,p,k+24|0);g:{if((n|0)<8192){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -8192;f=0;break g}c=n+ -8192|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=8192/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==8192){n=8192;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=8192){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*.0001220703125)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function og(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;Ig(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function Wg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;rh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function Vg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;qh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function Ug(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;ph(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function Tg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;oh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function Sg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;nh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function Rg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;mh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function Qg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=H-32|0;H=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){jg(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ko(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;lp(g,0,(h<<2)+4|0);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;lh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;ep(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+hp(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j/4294967296),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))/4294967296)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Jg(a,d)}H=k+32|0;return}Ko();x()}function Oa(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=H-96|0;H=e;i[e+72>>2]=0;i[e+76>>2]=0;i[e+64>>2]=0;i[e+68>>2]=0;i[e+80>>2]=1065353216;c=i[a+80>>2];i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;f=ko(c);i[e+32>>2]=f;d=c+f|0;i[e+40>>2]=d;lp(f,0,c);i[e+36>>2]=d;while(1){c=b;k=i[c+48>>2];d=i[i[c>>2]>>2];u=p;k=xp(i[c+40>>2],i[c+44>>2],p,0)+k|0;c=d+k|0;k=j[c+12|0]|j[c+13|0]<<8|(j[c+14|0]<<16|j[c+15|0]<<24);q=j[c+8|0]|j[c+9|0]<<8|(j[c+10|0]<<16|j[c+11|0]<<24);i[e+56>>2]=q;i[e+60>>2]=k;d=j[c+4|0]|j[c+5|0]<<8|(j[c+6|0]<<16|j[c+7|0]<<24);k=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+48>>2]=k;i[e+52>>2]=d;s=i[e+52>>2];t=i[e+60>>2];c:{d:{e:{if(!l){break e}d=i[e+64>>2];r=(((k^318)+239^s)+239^q)+239^t;c=r&l+ -1;v=Ap(l)>>>0>1;f:{if(!v){break f}c=r;if(c>>>0>>0){break f}c=(r>>>0)%(l>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}w=l+ -1|0;while(1){h=i[d+4>>2];g:{if((r|0)!=(h|0)){h:{if(!v){h=h&w;break h}if(h>>>0>>0){break h}h=(h>>>0)%(l>>>0)|0}if((c|0)==(h|0)){break g}break e}if(i[d+8>>2]!=(k|0)|i[d+12>>2]!=(s|0)|i[d+16>>2]!=(q|0)){break g}if(i[d+20>>2]==(t|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+24>>2]=n;i[e+20>>2]=t;i[e+16>>2]=q;i[e+12>>2]=s;i[e+8>>2]=k;$a(e+88|0,e- -64|0,e+8|0,e+8|0);c=i[a+40>>2];kp(i[i[a>>2]>>2]+o(c,n)|0,e+48|0,c);f=i[e+32>>2];i[f+(u<<2)>>2]=n;n=n+1|0;break c}i[(u<<2)+f>>2]=i[d+24>>2]}c=m;m=p+1|0;if(m>>>0<1){c=c+1|0}p=m;m=c;d=i[a+80>>2];if(!c&p>>>0>>0|c>>>0<0){l=i[e+68>>2];continue}break}if((d|0)!=(n|0)){i:{if(!j[a+84|0]){c=i[a+72>>2];b=i[a+68>>2];if((c|0)==(b|0)){break i}c=c-b>>2;c=c>>>0>1?c:1;d=0;while(1){m=b+(d<<2)|0;i[m>>2]=i[(i[m>>2]<<2)+f>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Ya(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}f=i[e+32>>2];if(!d){break i}b=i[a+68>>2];h=0;while(1){c=h<<2;i[c+b>>2]=i[c+f>>2];h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+80>>2]=n}if(!f){break b}i[e+36>>2]=f;ep(f)}d=i[e+72>>2];if(d){while(1){a=i[d>>2];ep(d);d=a;if(d){continue}break}}a=i[e+64>>2];i[e+64>>2]=0;if(a){ep(a)}H=e+96|0;return n}Ko();x()}function sd(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;a:{b:{c:{d:{e:{switch(b+ -1|0){case 0:b=ko(60);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break d}c=ko(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=kp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=4380;break a;case 3:b=ko(168);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break c}c=ko(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=kp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=4804;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=0;i[b+92>>2]=0;i[b+96>>2]=0;i[b+100>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;dg(b+112|0);i[b+160>>2]=0;i[b+152>>2]=0;i[b+156>>2]=0;break a;case 4:b=ko(104);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break b}c=ko(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=kp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=e+8|0;d=i[c>>2];f=i[c+4>>2];i[b+84>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=5040;i[b+52>>2]=d;i[b+56>>2]=f;d=i[e+4>>2];i[b+88>>2]=i[e>>2];i[b+92>>2]=d;d=i[c+4>>2];i[b+96>>2]=i[c>>2];i[b+100>>2]=d;break a;case 5:f=ko(144);ud(f,c,d,e);break;default:break e}}i[a>>2]=f;return}Ko();x()}Ko();x()}Ko();x()}i[a>>2]=b}function rd(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;a:{b:{c:{d:{e:{switch(b+ -1|0){case 0:b=ko(60);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break d}c=ko(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=kp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=2476;break a;case 3:b=ko(168);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break c}c=ko(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=kp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=3240;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=0;i[b+92>>2]=0;i[b+96>>2]=0;i[b+100>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;dg(b+112|0);i[b+160>>2]=0;i[b+152>>2]=0;i[b+156>>2]=0;break a;case 4:b=ko(104);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break b}c=ko(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=kp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=e+8|0;d=i[c>>2];f=i[c+4>>2];i[b+84>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=3488;i[b+52>>2]=d;i[b+56>>2]=f;d=i[e+4>>2];i[b+88>>2]=i[e>>2];i[b+92>>2]=d;d=i[c+4>>2];i[b+96>>2]=i[c>>2];i[b+100>>2]=d;break a;case 5:f=ko(144);td(f,c,d,e);break;default:break e}}i[a>>2]=f;return}Ko();x()}Ko();x()}Ko();x()}i[a>>2]=b}function Wa(a,b){var c=0,d=0,e=0,f=0,h=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;e=H-80|0;H=e;i[e+56>>2]=0;i[e+60>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+64>>2]=1065353216;d=i[a+80>>2];i[e+32>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;a:{b:{if(!d){break b}if(d>>>0>=1073741824){break a}d=d<<2;h=ko(d);i[e+24>>2]=h;f=d+h|0;i[e+32>>2]=f;lp(h,0,d);i[e+28>>2]=f;while(1){d=b;c=i[d+48>>2];f=i[i[d>>2]>>2];s=r;c=xp(i[d+40>>2],i[d+44>>2],r,0)+c|0;c=f+c|0;d=j[c+4|0]|j[c+5|0]<<8|(j[c+6|0]<<16|j[c+7|0]<<24);p=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+40>>2]=p;i[e+44>>2]=d;c:{d:{e:{if(!m){break e}c=i[e+48>>2];t=d>>>16|0;u=d&65535;v=((d&65535)<<16|p>>>16)&65535;y=p;q=t^(u^(v^((p^318)&65535)+239)+239)+239;f=q&m+ -1;w=Ap(m)>>>0>1;f:{if(!w){break f}f=q;if(f>>>0>>0){break f}f=(q>>>0)%(m>>>0)|0}c=i[(f<<2)+c>>2];if(!c){break e}c=i[c>>2];if(!c){break e}z=m+ -1|0;while(1){l=i[c+4>>2];g:{if((q|0)!=(l|0)){h:{if(!w){l=l&z;break h}if(l>>>0>>0){break h}l=(l>>>0)%(m>>>0)|0}if((f|0)==(l|0)){break g}break e}if(k[c+8>>1]!=(y&65535)|k[c+10>>1]!=(v|0)|k[c+12>>1]!=(u|0)){break g}if(k[c+14>>1]==(t|0)){break d}}c=i[c>>2];if(c){continue}break}}i[e+16>>2]=n;i[e+8>>2]=p;i[e+12>>2]=d;xb(e+72|0,e+48|0,e+8|0,e+8|0);d=i[a+40>>2];kp(i[i[a>>2]>>2]+o(d,n)|0,e+40|0,d);h=i[e+24>>2];i[h+(s<<2)>>2]=n;n=n+1|0;break c}i[(s<<2)+h>>2]=i[c+16>>2]}d=A;f=r+1|0;if(f>>>0<1){d=d+1|0}r=f;A=d;c=i[a+80>>2];if(!d&f>>>0>>0|d>>>0<0){m=i[e+52>>2];continue}break}if((c|0)!=(n|0)){i:{if(!j[a+84|0]){d=i[a+72>>2];b=i[a+68>>2];if((d|0)==(b|0)){break i}d=d-b>>2;d=d>>>0>1?d:1;c=0;while(1){f=b+(c<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];c=c+1|0;if((d|0)!=(c|0)){continue}break}break i}g[a+84|0]=0;d=i[a+68>>2];b=i[a+72>>2]-d>>2;j:{if(c>>>0>b>>>0){Ya(a+68|0,c-b|0,1420);c=i[a+80>>2];break j}if(c>>>0>=b>>>0){break j}i[a+72>>2]=d+(c<<2)}h=i[e+24>>2];if(!c){break i}b=i[a+68>>2];l=0;while(1){d=l<<2;i[d+b>>2]=i[d+h>>2];l=l+1|0;if((l|0)!=(c|0)){continue}break}}i[a+80>>2]=n}if(!h){break b}i[e+28>>2]=h;ep(h)}c=i[e+56>>2];if(c){while(1){a=i[c>>2];ep(c);c=a;if(c){continue}break}}a=i[e+48>>2];i[e+48>>2]=0;if(a){ep(a)}H=e+80|0;return n}Ko();x()}function ln(a,b,c){var d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,q=0,r=0;f=H-48|0;H=f;if(c>>>0<=2){a:{e=b+4|0;c=c<<2;q=i[c+17628>>2];r=i[c+17616>>2];while(1){c=i[b+4>>2];b:{if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break b}c=hn(b)}if(cn(c)){continue}break}k=1;c:{d:{switch(c+ -43|0){case 0:case 2:break d;default:break c}}k=(c|0)==45?-1:1;c=i[b+4>>2];if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break c}c=hn(b)}e:{f:{while(1){if(g[d+17541|0]==(c|32)){g:{if(d>>>0>6){break g}c=i[b+4>>2];if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break g}c=hn(b)}d=d+1|0;if((d|0)!=8){continue}break f}break}if((d|0)!=3){if((d|0)==8){break f}if(d>>>0<4){break e}if((d|0)==8){break f}}b=i[b+104>>2];if(b){i[e>>2]=i[e>>2]+ -1}if(d>>>0<4){break f}while(1){if(b){i[e>>2]=i[e>>2]+ -1}d=d+ -1|0;if(d>>>0>3){continue}break}}wn(f,p(p(k|0)*p(z)));m=i[f+8>>2];h=i[f+12>>2];n=i[f>>2];o=i[f+4>>2];break a}h:{i:{j:{if(d){break j}d=0;while(1){if(g[d+17550|0]!=(c|32)){break j}k:{if(d>>>0>1){break k}c=i[b+4>>2];if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break k}c=hn(b)}d=d+1|0;if((d|0)!=3){continue}break}break i}l:{switch(d|0){case 0:m:{if((c|0)!=48){break m}d=i[b+4>>2];n:{if(d>>>0>2]){i[e>>2]=d+1;d=j[d|0];break n}d=hn(b)}if((d&-33)==88){mn(f+16|0,b,r,q,k);m=i[f+24>>2];h=i[f+28>>2];n=i[f+16>>2];o=i[f+20>>2];break a}if(!i[b+104>>2]){break m}i[e>>2]=i[e>>2]+ -1}nn(f+32|0,b,c,r,q,k);m=i[f+40>>2];h=i[f+44>>2];n=i[f+32>>2];o=i[f+36>>2];break a;case 3:break i;default:break l}}if(i[b+104>>2]){i[e>>2]=i[e>>2]+ -1}i[4805]=28;break h}o:{c=i[b+4>>2];p:{if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break p}c=hn(b)}if((c|0)==40){d=1;break o}h=2147450880;if(!i[b+104>>2]){break a}i[e>>2]=i[e>>2]+ -1;break a}while(1){q:{c=i[b+4>>2];r:{if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break r}c=hn(b)}if(!(c+ -48>>>0<10|c+ -65>>>0<26|(c|0)==95)){if(c+ -97>>>0>=26){break q}}d=d+1|0;continue}break}h=2147450880;if((c|0)==41){break a}b=i[b+104>>2];if(b){i[e>>2]=i[e>>2]+ -1}if(!d){break a}while(1){d=d+ -1|0;if(b){i[e>>2]=i[e>>2]+ -1}if(d){continue}break}break a}gn(b)}}i[a>>2]=n;i[a+4>>2]=o;i[a+8>>2]=m;i[a+12>>2]=h;H=f+48|0}function Na(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=H-80|0;H=e;i[e+56>>2]=0;i[e+60>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+64>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;f=ko(c);i[e+16>>2]=f;d=c+f|0;i[e+24>>2]=d;lp(f,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];n=i[i[c>>2]>>2];t=p;d=xp(i[c+40>>2],i[c+44>>2],p,0)+d|0;c=n+d|0;q=j[c+8|0]|j[c+9|0]<<8|(j[c+10|0]<<16|j[c+11|0]<<24);i[e+40>>2]=q;d=j[c+4|0]|j[c+5|0]<<8|(j[c+6|0]<<16|j[c+7|0]<<24);r=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+32>>2]=r;i[e+36>>2]=d;s=i[e+36>>2];c:{d:{e:{if(!k){break e}d=i[e+48>>2];n=((r^318)+239^s)+239^q;c=n&k+ -1;u=Ap(k)>>>0>1;f:{if(!u){break f}c=n;if(c>>>0>>0){break f}c=(n>>>0)%(k>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}v=k+ -1|0;while(1){h=i[d+4>>2];g:{if((n|0)!=(h|0)){h:{if(!u){h=h&v;break h}if(h>>>0>>0){break h}h=(h>>>0)%(k>>>0)|0}if((c|0)==(h|0)){break g}break e}if(i[d+8>>2]!=(r|0)|i[d+12>>2]!=(s|0)){break g}if(i[d+16>>2]==(q|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=m;i[e+8>>2]=q;i[e+4>>2]=s;i[e>>2]=r;_a(e+72|0,e+48|0,e,e);c=i[a+40>>2];kp(i[i[a>>2]>>2]+o(c,m)|0,e+32|0,c);f=i[e+16>>2];i[f+(t<<2)>>2]=m;m=m+1|0;break c}i[(t<<2)+f>>2]=i[d+20>>2]}c=l;l=p+1|0;if(l>>>0<1){c=c+1|0}p=l;l=c;d=i[a+80>>2];if(!c&p>>>0>>0|c>>>0<0){k=i[e+52>>2];continue}break}if((d|0)!=(m|0)){i:{if(!j[a+84|0]){c=i[a+72>>2];b=i[a+68>>2];if((c|0)==(b|0)){break i}c=c-b>>2;c=c>>>0>1?c:1;d=0;while(1){l=b+(d<<2)|0;i[l>>2]=i[(i[l>>2]<<2)+f>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Ya(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}f=i[e+16>>2];if(!d){break i}b=i[a+68>>2];h=0;while(1){c=h<<2;i[c+b>>2]=i[c+f>>2];h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+80>>2]=m}if(!f){break b}i[e+20>>2]=f;ep(f)}d=i[e+56>>2];if(d){while(1){a=i[d>>2];ep(d);d=a;if(d){continue}break}}a=i[e+48>>2];i[e+48>>2]=0;if(a){ep(a)}H=e+80|0;return m}Ko();x()}function Gl(a,b){var c=0,d=0,e=0,f=0;f=H-16|0;H=f;e=ko(32);i[f>>2]=e;i[f+4>>2]=30;i[f+8>>2]=-2147483616;g[e+30|0]=0;c=j[16476]|j[16477]<<8|(j[16478]<<16|j[16479]<<24);d=j[16472]|j[16473]<<8|(j[16474]<<16|j[16475]<<24);g[e+22|0]=d;g[e+23|0]=d>>>8;g[e+24|0]=d>>>16;g[e+25|0]=d>>>24;g[e+26|0]=c;g[e+27|0]=c>>>8;g[e+28|0]=c>>>16;g[e+29|0]=c>>>24;c=j[16470]|j[16471]<<8|(j[16472]<<16|j[16473]<<24);d=j[16466]|j[16467]<<8|(j[16468]<<16|j[16469]<<24);g[e+16|0]=d;g[e+17|0]=d>>>8;g[e+18|0]=d>>>16;g[e+19|0]=d>>>24;g[e+20|0]=c;g[e+21|0]=c>>>8;g[e+22|0]=c>>>16;g[e+23|0]=c>>>24;c=j[16462]|j[16463]<<8|(j[16464]<<16|j[16465]<<24);d=j[16458]|j[16459]<<8|(j[16460]<<16|j[16461]<<24);g[e+8|0]=d;g[e+9|0]=d>>>8;g[e+10|0]=d>>>16;g[e+11|0]=d>>>24;g[e+12|0]=c;g[e+13|0]=c>>>8;g[e+14|0]=c>>>16;g[e+15|0]=c>>>24;c=j[16454]|j[16455]<<8|(j[16456]<<16|j[16457]<<24);d=j[16450]|j[16451]<<8|(j[16452]<<16|j[16453]<<24);g[e|0]=d;g[e+1|0]=d>>>8;g[e+2|0]=d>>>16;g[e+3|0]=d>>>24;g[e+4|0]=c;g[e+5|0]=c>>>8;g[e+6|0]=c>>>16;g[e+7|0]=c>>>24;e=a+4|0;_j(e,f,b);if(g[f+11|0]<=-1){ep(i[f>>2])}a=ko(32);i[f>>2]=a;i[f+4>>2]=29;i[f+8>>2]=-2147483616;g[a+29|0]=0;c=j[16506]|j[16507]<<8|(j[16508]<<16|j[16509]<<24);d=j[16502]|j[16503]<<8|(j[16504]<<16|j[16505]<<24);g[a+21|0]=d;g[a+22|0]=d>>>8;g[a+23|0]=d>>>16;g[a+24|0]=d>>>24;g[a+25|0]=c;g[a+26|0]=c>>>8;g[a+27|0]=c>>>16;g[a+28|0]=c>>>24;c=j[16501]|j[16502]<<8|(j[16503]<<16|j[16504]<<24);d=j[16497]|j[16498]<<8|(j[16499]<<16|j[16500]<<24);g[a+16|0]=d;g[a+17|0]=d>>>8;g[a+18|0]=d>>>16;g[a+19|0]=d>>>24;g[a+20|0]=c;g[a+21|0]=c>>>8;g[a+22|0]=c>>>16;g[a+23|0]=c>>>24;c=j[16493]|j[16494]<<8|(j[16495]<<16|j[16496]<<24);d=j[16489]|j[16490]<<8|(j[16491]<<16|j[16492]<<24);g[a+8|0]=d;g[a+9|0]=d>>>8;g[a+10|0]=d>>>16;g[a+11|0]=d>>>24;g[a+12|0]=c;g[a+13|0]=c>>>8;g[a+14|0]=c>>>16;g[a+15|0]=c>>>24;c=j[16485]|j[16486]<<8|(j[16487]<<16|j[16488]<<24);d=j[16481]|j[16482]<<8|(j[16483]<<16|j[16484]<<24);g[a|0]=d;g[a+1|0]=d>>>8;g[a+2|0]=d>>>16;g[a+3|0]=d>>>24;g[a+4|0]=c;g[a+5|0]=c>>>8;g[a+6|0]=c>>>16;g[a+7|0]=c>>>24;_j(e,f,b);if(g[f+11|0]<=-1){ep(i[f>>2])}H=f+16|0}function gp(a,b,c,d,e,f,g,h,j){var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;k=H-128|0;H=k;a:{b:{c:{if(!sn(f,g,h,j,0,0,0,0)){break c}p=jp(f,g,h,j);t=e>>>16|0;q=t&32767;if((q|0)==32767){break c}if(p){break b}}An(k+16|0,b,c,d,e,f,g,h,j);b=i[k+16>>2];c=i[k+20>>2];d=i[k+24>>2];e=i[k+28>>2];En(k,b,c,d,e,b,c,d,e);d=i[k+8>>2];e=i[k+12>>2];h=i[k>>2];j=i[k+4>>2];break a}m=q<<16;o=d;m=m|e&65535;p=m;n=h;s=j>>>16&32767;l=j&65535|s<<16;if((sn(b,c,o,m,f,g,h,l)|0)<=0){if(sn(b,c,o,p,f,g,n,l)){h=b;j=c;break a}An(k+112|0,b,c,d,e,0,0,0,0);d=i[k+120>>2];e=i[k+124>>2];h=i[k+112>>2];j=i[k+116>>2];break a}if(q){j=c;h=b}else{An(k+96|0,b,c,o,p,0,0,0,1081540608);h=i[k+108>>2];p=h;o=i[k+104>>2];q=(h>>>16|0)+ -120|0;j=i[k+100>>2];h=i[k+96>>2]}if(!s){An(k+80|0,f,g,n,l,0,0,0,1081540608);f=i[k+92>>2];l=f;n=i[k+88>>2];s=(l>>>16|0)+ -120|0;g=i[k+84>>2];f=i[k+80>>2]}u=l&65535|65536;p=p&65535|65536;if((q|0)>(s|0)){while(1){l=o;r=l-n|0;m=(g|0)==(j|0)&h>>>0>>0|j>>>0>>0;l=(p-((l>>>0>>0)+u|0)|0)-(r>>>0>>0)|0;r=r-m|0;d:{if((l|0)>0?1:(l|0)>=0?r>>>0>=0:0){o=h;h=h-f|0;j=j-((o>>>0>>0)+g|0)|0;if(!(h|r|(j|l))){An(k+32|0,b,c,d,e,0,0,0,0);d=i[k+40>>2];e=i[k+44>>2];h=i[k+32>>2];j=i[k+36>>2];break a}o=j>>>31|0;p=0;m=l<<1|r>>>31;l=r<<1;break d}m=p<<1|o>>>31;o=o<<1;p=m;m=0;l=j>>>31|0}r=m;m=j<<1|h>>>31;h=h<<1;j=m;o=l|o;p=p|r;q=q+ -1|0;if((q|0)>(s|0)){continue}break}q=s}e:{l=o;m=l-n|0;l=p-((l>>>0>>0)+u|0)|0;n=(g|0)==(j|0)&h>>>0>>0|j>>>0>>0;l=l-(m>>>0>>0)|0;n=m-n|0;if((l|0)<0?1:(l|0)<=0?n>>>0<0:0){n=o;l=p;break e}o=h;h=h-f|0;j=j-((o>>>0>>0)+g|0)|0;if(h|n|(j|l)){break e}An(k+48|0,b,c,d,e,0,0,0,0);d=i[k+56>>2];e=i[k+60>>2];h=i[k+48>>2];j=i[k+52>>2];break a}if((l|0)==65535|l>>>0<65535){while(1){d=j>>>31|0;b=0;q=q+ -1|0;m=j<<1|h>>>31;h=h<<1;j=m;m=l<<1|n>>>31;n=n<<1|d;b=b|m;l=b;if((l|0)==65536&n>>>0<0|l>>>0<65536){continue}break}}b=t&32768;if((q|0)<=0){An(k- -64|0,h,j,n,l&65535|(b|q+120)<<16,0,0,0,1065811968);d=i[k+72>>2];e=i[k+76>>2];h=i[k+64>>2];j=i[k+68>>2];break a}d=n;e=l&65535|(b|q)<<16}i[a>>2]=h;i[a+4>>2]=j;i[a+8>>2]=d;i[a+12>>2]=e;H=k+128|0}function cm(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;if(bm(a,c)){i[a+88>>2]=0;i[a+92>>2]=0;e=a+84|0;c=i[e>>2];i[e>>2]=0;if(c){ep(c)}i[a+76>>2]=0;i[a+80>>2]=0;e=a+72|0;c=i[e>>2];i[e>>2]=0;if(c){ep(c)}m=i[a+64>>2];if(i[m+4>>2]!=i[m>>2]){c=0;while(1){p=(c>>>0)/3|0;e=Sl(m,p);m=i[a+64>>2];a:{if(e){break a}l=i[i[m+12>>2]+(c<<2)>>2];if((l|0)==-1){e=i[a>>2]+(c>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<<(c&31);f=-1;e=-1;l=c+1|0;l=(l>>>0)%3|0?l:c+ -2|0;if((l|0)!=-1){e=i[i[m>>2]+(l<<2)>>2]}l=i[a+12>>2];k=l+(e>>>3&536870908)|0;i[k>>2]=i[k>>2]|1<<(e&31);e=((c>>>0)%3|0?-1:2)+c|0;if((e|0)!=-1){f=i[i[m>>2]+(e<<2)>>2]}e=l+(f>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<<(f&31);break a}if(l>>>0>>0){break a}e=-1;k=l+((l>>>0)%3|0?-1:2)|0;q=j[d+84|0];f=-1;n=c+1|0;r=c+ -2|0;h=(n>>>0)%3|0?n:r;if((h|0)>=0){f=(h>>>0)/3|0;f=i[(i[b+96>>2]+o(f,12)|0)+(h-o(f,3)<<2)>>2]}e=(k|0)>=0?i[(i[b+96>>2]+o((k>>>0)/3|0,12)|0)+((k>>>0)%3<<2)>>2]:e;if(!q){s=i[d+68>>2];e=i[s+(e<<2)>>2];f=i[(f<<2)+s>>2]}if((e|0)==(f|0)){e=-1;f=-1;if((h|0)!=-1){f=h+1|0;f=(f>>>0)%3|0?f:h+ -2|0}b:{if((k|0)==-1){break b}if((k>>>0)%3|0){e=k+ -1|0;break b}e=k+2|0}k=-1;h=-1;if((f|0)>=0){h=(f>>>0)/3|0;h=i[(i[b+96>>2]+o(h,12)|0)+(f-o(h,3)<<2)>>2]}if((e|0)>=0){f=(e>>>0)/3|0;k=i[(i[b+96>>2]+o(f,12)|0)+(e-o(f,3)<<2)>>2]}if(!q){e=i[d+68>>2];k=i[e+(k<<2)>>2];h=i[e+(h<<2)>>2]}if((h|0)==(k|0)){break a}}g[a+24|0]=0;e=i[a>>2];f=e+(c>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<<(c&31);e=e+(l>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<<(l&31);e=-1;f=-1;k=(n>>>0)%3|0?n:r;if((k|0)!=-1){f=i[i[m>>2]+(k<<2)>>2]}k=i[a+12>>2];h=k+(f>>>3&536870908)|0;i[h>>2]=i[h>>2]|1<<(f&31);f=(c-o(p,3)|0?-1:2)+c|0;if((f|0)!=-1){e=i[i[m>>2]+(f<<2)>>2]}f=k+(e>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<<(e&31);e=-1;f=-1;h=l+1|0;h=(h>>>0)%3|0?h:l+ -2|0;if((h|0)!=-1){f=i[i[m>>2]+(h<<2)>>2]}h=k+(f>>>3&536870908)|0;i[h>>2]=i[h>>2]|1<<(f&31);f=l+((l>>>0)%3|0?-1:2)|0;if((f|0)!=-1){e=i[i[m>>2]+(f<<2)>>2]}f=k+(e>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<<(e&31)}c=c+1|0;if(c>>>0>2]-i[m>>2]>>2>>>0){continue}break}}if(!(!b|!d)){dm(a,b,d);return}em(a)}}function Gh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;g=H-16|0;H=g;b=i[a+64>>2];a:{if(!b){break a}k=K[i[i[b>>2]+32>>2]](b)|0;if(!k){break a}p=(i[k+28>>2]-i[k+24>>2]>>2)-i[k+44>>2]|0;h=i[a+56>>2];b:{if((i[h+12>>2]-i[h+8>>2]|0)<5){break b}i[g+8>>2]=0;i[g>>2]=0;i[g+4>>2]=0;c:{d:{while(1){e:{f:{if(!i[i[i[h+8>>2]+(c<<2)>>2]+56>>2]){break f}j=K[i[i[a>>2]+56>>2]](a,c)|0;if(!j){break f}b=i[g+8>>2];if((b|0)!=(f|0)){i[f>>2]=j;f=f+4|0;i[g+4>>2]=f;break f}l=i[g>>2];e=b-l|0;f=e>>2;d=f+1|0;if(d>>>0>=1073741824){break e}h=e>>1;d=f>>>0<536870911?h>>>0>>0?d:h:1073741823;b=0;g:{if(!d){break g}if(d>>>0>=1073741824){break d}b=ko(d<<2)}f=b+(f<<2)|0;i[f>>2]=j;d=b+(d<<2)|0;f=f+4|0;if((e|0)>=1){kp(b,l,e)}i[g+8>>2]=d;i[g+4>>2]=f;i[g>>2]=b;if(!l){break f}ep(l)}c=c+1|0;h=i[a+56>>2];if((c|0)>2]-i[h+8>>2]>>2){continue}break c}break}Ko();x()}Ba(11116);x()}q=i[k+24>>2];b=i[k+28>>2];h:{if((q|0)==(b|0)){m=i[g>>2];break h}b=b-q>>2;s=b>>>0>1?b:1;m=i[g>>2];b=f-m>>2;t=b>>>0>1?b:1;while(1){d=i[(r<<2)+q>>2];if((d|0)!=-1){i:{if((d|0)<=-1){c=(d>>>0)%3|0;b=-1;break i}b=(d>>>0)/3|0;c=d-o(b,3)|0;b=i[(i[h+96>>2]+o(b,12)|0)+(c<<2)>>2]}n=0;c=d+(c?-1:2)|0;j:{if((c|0)==-1){break j}c=i[i[k+12>>2]+(c<<2)>>2];if((c|0)==-1){break j}l=d;e=c+((c>>>0)%3|0?-1:2)|0;if((e|0)==-1){break j}while(1){c=(e|0)<0?-1:i[(i[h+96>>2]+o((e>>>0)/3|0,12)|0)+((e>>>0)%3<<2)>>2];k:{if((b|0)==(c|0)){c=0;if((f|0)==(m|0)){c=b;break k}l:{while(1){j=i[i[(c<<2)+m>>2]+28>>2];if(i[j+(e<<2)>>2]!=i[j+(l<<2)>>2]){break l}c=c+1|0;if((t|0)!=(c|0)){continue}break}c=b;break k}c=b}n=n+1|0}if((d|0)==(e|0)|(e|0)==-1){break j}b=((e>>>0)%3|0?-1:2)+e|0;if((b|0)==-1){break j}j=i[i[k+12>>2]+(b<<2)>>2];if((j|0)==-1){break j}b=c;l=e;c=j+((j>>>0)%3|0?-1:2)|0;e=c;if((c|0)!=-1){continue}break}}c=1;b=d+1|0;b=(b>>>0)%3|0?b:d+ -2|0;m:{if((b|0)==-1){break m}b=i[i[k+12>>2]+(b<<2)>>2];if((b|0)==-1){break m}c=b+1|0;c=(((c>>>0)%3|0?c:b+ -2|0)|0)==-1}p=(p+n|0)-((c^1)&(n|0)!=0)|0}r=r+1|0;if((s|0)!=(r|0)){continue}break}}if(!m){break b}i[g+4>>2]=m;ep(m)}i[a+52>>2]=p}H=g+16|0}function Sa(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;e=H+ -64|0;H=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;f=ko(c);i[e+16>>2]=f;d=c+f|0;i[e+24>>2]=d;lp(f,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];n=i[i[c>>2]>>2];t=q;d=xp(i[c+40>>2],i[c+44>>2],q,0)+d|0;c=n+d|0;p=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+28>>2]=p;r=p>>>8&255;s=p>>>16&255;c:{d:{e:{if(!k){break e}d=i[e+32>>2];u=p>>>24|0;v=p&255;n=u^(((v^318)+239^r)+239^s)+239;c=n&k+ -1;w=Ap(k)>>>0>1;f:{if(!w){break f}c=n;if(c>>>0>>0){break f}c=(n>>>0)%(k>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}y=k+ -1|0;while(1){h=i[d+4>>2];g:{if((n|0)!=(h|0)){h:{if(!w){h=h&y;break h}if(h>>>0>>0){break h}h=(h>>>0)%(k>>>0)|0}if((c|0)==(h|0)){break g}break e}if(j[d+8|0]!=(v|0)|j[d+9|0]!=(r|0)|j[d+10|0]!=(s|0)){break g}if(j[d+11|0]==(u|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=m;i[e+8>>2]=p&-16776961|s<<16|r<<8;lb(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];kp(i[i[a>>2]>>2]+o(c,m)|0,e+28|0,c);f=i[e+16>>2];i[f+(t<<2)>>2]=m;m=m+1|0;break c}i[(t<<2)+f>>2]=i[d+12>>2]}c=l;l=q+1|0;if(l>>>0<1){c=c+1|0}q=l;l=c;d=i[a+80>>2];if(!c&q>>>0>>0|c>>>0<0){k=i[e+36>>2];continue}break}if((d|0)!=(m|0)){i:{if(!j[a+84|0]){c=i[a+72>>2];b=i[a+68>>2];if((c|0)==(b|0)){break i}c=c-b>>2;c=c>>>0>1?c:1;d=0;while(1){l=b+(d<<2)|0;i[l>>2]=i[(i[l>>2]<<2)+f>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Ya(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}f=i[e+16>>2];if(!d){break i}b=i[a+68>>2];h=0;while(1){c=h<<2;i[c+b>>2]=i[c+f>>2];h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+80>>2]=m}if(!f){break b}i[e+20>>2]=f;ep(f)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];ep(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){ep(a)}H=e- -64|0;return m}Ko();x()}function Va(a,b){var c=0,d=0,e=0,f=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;e=H-80|0;H=e;i[e+56>>2]=0;i[e+60>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+64>>2]=1065353216;c=i[a+80>>2];i[e+32>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;f=ko(c);i[e+24>>2]=f;d=c+f|0;i[e+32>>2]=d;lp(f,0,c);i[e+28>>2]=d;while(1){c=b;d=i[c+48>>2];q=i[i[c>>2]>>2];v=r;d=xp(i[c+40>>2],i[c+44>>2],r,0)+d|0;c=q+d|0;s=j[c+4|0]|j[c+5|0]<<8;h[e+44>>1]=s;t=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+40>>2]=t;u=k[e+42>>1];c:{d:{e:{if(!m){break e}d=i[e+48>>2];q=(((t^318)&65535)+239^u)+239^s;c=q&m+262143;w=Ap(m)>>>0>1;f:{if(!w){break f}c=q;if(c>>>0>>0){break f}c=(q>>>0)%(m>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}y=m+ -1|0;while(1){l=i[d+4>>2];g:{if((q|0)!=(l|0)){h:{if(!w){l=l&y;break h}if(l>>>0>>0){break h}l=(l>>>0)%(m>>>0)|0}if((c|0)==(l|0)){break g}break e}if(k[d+8>>1]!=(t&65535)|k[d+10>>1]!=(u|0)){break g}if(k[d+12>>1]==(s|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+16>>2]=p;h[e+12>>1]=s;h[e+10>>1]=u;h[e+8>>1]=t;wb(e+72|0,e+48|0,e+8|0,e+8|0);c=i[a+40>>2];kp(i[i[a>>2]>>2]+o(c,p)|0,e+40|0,c);f=i[e+24>>2];i[f+(v<<2)>>2]=p;p=p+1|0;break c}i[(v<<2)+f>>2]=i[d+16>>2]}c=n;n=r+1|0;if(n>>>0<1){c=c+1|0}r=n;n=c;d=i[a+80>>2];if(!c&r>>>0>>0|c>>>0<0){m=i[e+52>>2];continue}break}if((d|0)!=(p|0)){i:{if(!j[a+84|0]){c=i[a+72>>2];b=i[a+68>>2];if((c|0)==(b|0)){break i}c=c-b>>2;c=c>>>0>1?c:1;d=0;while(1){n=b+(d<<2)|0;i[n>>2]=i[(i[n>>2]<<2)+f>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Ya(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}f=i[e+24>>2];if(!d){break i}b=i[a+68>>2];l=0;while(1){c=l<<2;i[c+b>>2]=i[c+f>>2];l=l+1|0;if((l|0)!=(d|0)){continue}break}}i[a+80>>2]=p}if(!f){break b}i[e+28>>2]=f;ep(f)}d=i[e+56>>2];if(d){while(1){a=i[d>>2];ep(d);d=a;if(d){continue}break}}a=i[e+48>>2];i[e+48>>2]=0;if(a){ep(a)}H=e+80|0;return p}Ko();x()}function Ma(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;d=H-80|0;H=d;i[d+56>>2]=0;i[d+60>>2]=0;i[d+48>>2]=0;i[d+52>>2]=0;i[d+64>>2]=1065353216;e=i[a+80>>2];i[d+32>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;a:{b:{if(!e){break b}if(e>>>0>=1073741824){break a}f=e<<2;l=ko(f);i[d+24>>2]=l;e=l+f|0;i[d+32>>2]=e;lp(l,0,f);i[d+28>>2]=e;while(1){e=b;h=i[e+48>>2];f=i[i[e>>2]>>2];t=r;e=xp(i[e+40>>2],i[e+44>>2],r,0)+h|0;h=f+e|0;e=j[h+4|0]|j[h+5|0]<<8|(j[h+6|0]<<16|j[h+7|0]<<24);s=j[h|0]|j[h+1|0]<<8|(j[h+2|0]<<16|j[h+3|0]<<24);i[d+40>>2]=s;i[d+44>>2]=e;c:{d:{e:{if(!n){break e}c=i[d+48>>2];v=e;h=s;q=e^(h^318)+239;f=q&n+ -1;u=Ap(n)>>>0>1;f:{if(!u){break f}f=q;if(f>>>0>>0){break f}f=(q>>>0)%(n>>>0)|0}c=i[(f<<2)+c>>2];if(!c){break e}c=i[c>>2];if(!c){break e}w=n+ -1|0;while(1){m=i[c+4>>2];g:{if((q|0)!=(m|0)){h:{if(!u){m=m&w;break h}if(m>>>0>>0){break h}m=(m>>>0)%(n>>>0)|0}if((m|0)==(f|0)){break g}break e}if(i[c+8>>2]!=(h|0)){break g}if(i[c+12>>2]==(v|0)){break d}}c=i[c>>2];if(c){continue}break}}i[d+16>>2]=p;i[d+8>>2]=s;i[d+12>>2]=e;Za(d+72|0,d+48|0,d+8|0,d+8|0);e=i[a+40>>2];kp(i[i[a>>2]>>2]+o(e,p)|0,d+40|0,e);l=i[d+24>>2];i[l+(t<<2)>>2]=p;p=p+1|0;break c}i[(t<<2)+l>>2]=i[c+16>>2]}e=k;k=r+1|0;if(k>>>0<1){e=e+1|0}r=k;f=k;k=e;c=i[a+80>>2];if(!e&f>>>0>>0|e>>>0<0){n=i[d+52>>2];continue}break}if((c|0)!=(p|0)){i:{if(!j[a+84|0]){b=i[a+72>>2];e=i[a+68>>2];if((b|0)==(e|0)){break i}b=b-e>>2;k=b>>>0>1?b:1;c=0;while(1){b=e+(c<<2)|0;i[b>>2]=i[(i[b>>2]<<2)+l>>2];c=c+1|0;if((k|0)!=(c|0)){continue}break}break i}g[a+84|0]=0;b=i[a+68>>2];k=i[a+72>>2]-b>>2;j:{if(c>>>0>k>>>0){Ya(a+68|0,c-k|0,1420);c=i[a+80>>2];break j}if(c>>>0>=k>>>0){break j}i[a+72>>2]=b+(c<<2)}l=i[d+24>>2];if(!c){break i}k=i[a+68>>2];m=0;while(1){b=m<<2;i[b+k>>2]=i[b+l>>2];m=m+1|0;if((m|0)!=(c|0)){continue}break}}i[a+80>>2]=p}if(!l){break b}i[d+28>>2]=l;ep(l)}c=i[d+56>>2];if(c){while(1){a=i[c>>2];ep(c);c=a;if(c){continue}break}}a=i[d+48>>2];i[d+48>>2]=0;if(a){ep(a)}H=d+80|0;return p}Ko();x()}function yf(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{if(!i[a+8>>2]){break a}h=i[a>>2];m=a+4|0;i[a>>2]=m;i[i[a+4>>2]+8>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;d=i[h+4>>2];h=d?d:h;if(!h){ld(a,h);break a}f=i[h+8>>2];b:{if(!f){break b}d=i[f>>2];if((h|0)==(d|0)){i[f>>2]=0;d=i[f+4>>2];if(!d){e=f;break b}while(1){e=d;d=i[d>>2];if(d){continue}d=i[e+4>>2];if(d){continue}break}break b}i[f+4>>2]=0;if(!d){e=f;break b}while(1){e=d;d=i[d>>2];if(d){continue}d=i[e+4>>2];if(d){continue}break}}c:{if((b|0)==(c|0)){break c}g=h;f=b;while(1){h=e;k=g+16|0;wo(k,f+16|0);wo(g+28|0,f+28|0);d:{b=i[m>>2];if(!b){b=m;d=b;break d}d=j[g+27|0];l=d<<24>>24<0;n=l?i[g+20>>2]:d;l=l?i[g+16>>2]:k;while(1){d=j[b+27|0];p=d<<24>>24<0;e:{f:{g:{h:{o=p?i[b+20>>2]:d;k=o>>>0>>0?o:n;if(k){d=b+16|0;d=Mm(l,p?i[d>>2]:d,k);if(d){break h}}if(n>>>0>>0){break g}break f}if((d|0)>-1){break f}}d=i[b>>2];if(d){break e}d=b;break d}d=i[b+4>>2];if(d){break e}d=b+4|0;break d}b=d;continue}}i[g+8>>2]=b;i[g>>2]=0;i[g+4>>2]=0;i[d>>2]=g;b=i[i[a>>2]>>2];if(b){i[a>>2]=b;g=i[d>>2]}Lf(i[a+4>>2],g);i[a+8>>2]=i[a+8>>2]+1;i:{if(!e){e=0;break i}d=i[e+8>>2];if(!d){e=0;break i}b=i[d>>2];if((e|0)==(b|0)){i[d>>2]=0;b=i[d+4>>2];if(!b){e=d;break i}while(1){e=b;b=i[b>>2];if(b){continue}b=i[e+4>>2];if(b){continue}break}break i}i[d+4>>2]=0;if(!b){e=d;break i}while(1){e=b;b=i[b>>2];if(b){continue}b=i[e+4>>2];if(b){continue}break}}d=i[f+4>>2];j:{if(!d){b=i[f+8>>2];if(i[b>>2]==(f|0)){break j}d=f+8|0;while(1){f=i[d>>2];d=f+8|0;b=i[f+8>>2];if((f|0)!=i[b>>2]){continue}break}break j}while(1){b=d;d=i[d>>2];if(d){continue}break}}if((b|0)==(c|0)){break c}f=b;g=h;if(g){continue}break}}ld(a,h);if(!e){break a}while(1){d=i[e+8>>2];if(d){e=d;continue}break}ld(a,e)}if((b|0)!=(c|0)){while(1){e=b;Mf(a,b+16|0);d=i[b+4>>2];k:{if(!d){b=i[e+8>>2];if((e|0)==i[b>>2]){break k}d=e+8|0;while(1){e=i[d>>2];d=e+8|0;b=i[e+8>>2];if((e|0)!=i[b>>2]){continue}break}break k}while(1){b=d;d=i[d>>2];if(d){continue}break}}if((b|0)!=(c|0)){continue}break}}}function Ra(a,b){var c=0,d=0,e=0,f=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=H+ -64|0;H=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;f=ko(c);i[e+16>>2]=f;d=c+f|0;i[e+24>>2]=d;lp(f,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];p=i[i[c>>2]>>2];u=q;d=xp(i[c+40>>2],i[c+44>>2],q,0)+d|0;c=p+d|0;r=j[c+2|0];g[e+30|0]=r;h[e+28>>1]=j[c|0]|j[c+1|0]<<8;s=j[e+28|0];t=j[e+29|0];c:{d:{e:{if(!l){break e}d=i[e+32>>2];p=((s^318)+239^t)+239^r;c=p&l+ -1;v=Ap(l)>>>0>1;f:{if(!v){break f}c=p;if(c>>>0>>0){break f}c=(p>>>0)%(l>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}w=l+ -1|0;while(1){k=i[d+4>>2];g:{if((p|0)!=(k|0)){h:{if(!v){k=k&w;break h}if(k>>>0>>0){break h}k=(k>>>0)%(l>>>0)|0}if((c|0)==(k|0)){break g}break e}if(j[d+8|0]!=(s|0)|j[d+9|0]!=(t|0)){break g}if(j[d+10|0]==(r|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=n;g[e+10|0]=r;g[e+9|0]=t;g[e+8|0]=s;kb(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];kp(i[i[a>>2]>>2]+o(c,n)|0,e+28|0,c);f=i[e+16>>2];i[f+(u<<2)>>2]=n;n=n+1|0;break c}i[(u<<2)+f>>2]=i[d+12>>2]}c=m;m=q+1|0;if(m>>>0<1){c=c+1|0}q=m;m=c;d=i[a+80>>2];if(!c&q>>>0>>0|c>>>0<0){l=i[e+36>>2];continue}break}if((d|0)!=(n|0)){i:{if(!j[a+84|0]){c=i[a+72>>2];b=i[a+68>>2];if((c|0)==(b|0)){break i}c=c-b>>2;c=c>>>0>1?c:1;d=0;while(1){m=b+(d<<2)|0;i[m>>2]=i[(i[m>>2]<<2)+f>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Ya(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}f=i[e+16>>2];if(!d){break i}b=i[a+68>>2];k=0;while(1){c=k<<2;i[c+b>>2]=i[c+f>>2];k=k+1|0;if((k|0)!=(d|0)){continue}break}}i[a+80>>2]=n}if(!f){break b}i[e+20>>2]=f;ep(f)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];ep(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){ep(a)}H=e- -64|0;return n}Ko();x()}function _f(a,b,c,d,e,f){var h=0,k=0,l=0;h=H-16|0;H=h;i[h+12>>2]=b;b=ko(32);i[h>>2]=b;i[h+4>>2]=17;i[h+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[10556];k=j[10552]|j[10553]<<8|(j[10554]<<16|j[10555]<<24);l=j[10548]|j[10549]<<8|(j[10550]<<16|j[10551]<<24);g[b+8|0]=l;g[b+9|0]=l>>>8;g[b+10|0]=l>>>16;g[b+11|0]=l>>>24;g[b+12|0]=k;g[b+13|0]=k>>>8;g[b+14|0]=k>>>16;g[b+15|0]=k>>>24;k=j[10544]|j[10545]<<8|(j[10546]<<16|j[10547]<<24);l=j[10540]|j[10541]<<8|(j[10542]<<16|j[10543]<<24);g[b|0]=l;g[b+1|0]=l>>>8;g[b+2|0]=l>>>16;g[b+3|0]=l>>>24;g[b+4|0]=k;g[b+5|0]=k>>>8;g[b+6|0]=k>>>16;g[b+7|0]=k>>>24;k=a+4|0;_j(zf(k,h+12|0),h,c);if(g[h+11|0]<=-1){ep(i[h>>2])}a=ko(32);i[h>>2]=a;i[h+4>>2]=19;i[h+8>>2]=-2147483616;g[a+19|0]=0;b=j[10598]|j[10599]<<8|(j[10600]<<16|j[10601]<<24);g[a+15|0]=b;g[a+16|0]=b>>>8;g[a+17|0]=b>>>16;g[a+18|0]=b>>>24;b=j[10595]|j[10596]<<8|(j[10597]<<16|j[10598]<<24);c=j[10591]|j[10592]<<8|(j[10593]<<16|j[10594]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10587]|j[10588]<<8|(j[10589]<<16|j[10590]<<24);c=j[10583]|j[10584]<<8|(j[10585]<<16|j[10586]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Gf(zf(k,h+12|0),h,e,d);if(g[h+11|0]<=-1){ep(i[h>>2])}a=ko(32);i[h>>2]=a;i[h+4>>2]=18;i[h+8>>2]=-2147483616;g[a+18|0]=0;b=j[10619]|j[10620]<<8;g[a+16|0]=b;g[a+17|0]=b>>>8;b=j[10615]|j[10616]<<8|(j[10617]<<16|j[10618]<<24);c=j[10611]|j[10612]<<8|(j[10613]<<16|j[10614]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10607]|j[10608]<<8|(j[10609]<<16|j[10610]<<24);c=j[10603]|j[10604]<<8|(j[10605]<<16|j[10606]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;$j(zf(k,h+12|0),h,f);if(g[h+11|0]<=-1){ep(i[h>>2])}H=h+16|0}function Ff(a,b,c,d,e,f){var h=0,k=0,l=0;h=H-16|0;H=h;i[h+12>>2]=b;b=ko(32);i[h>>2]=b;i[h+4>>2]=17;i[h+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[10144];k=j[10140]|j[10141]<<8|(j[10142]<<16|j[10143]<<24);l=j[10136]|j[10137]<<8|(j[10138]<<16|j[10139]<<24);g[b+8|0]=l;g[b+9|0]=l>>>8;g[b+10|0]=l>>>16;g[b+11|0]=l>>>24;g[b+12|0]=k;g[b+13|0]=k>>>8;g[b+14|0]=k>>>16;g[b+15|0]=k>>>24;k=j[10132]|j[10133]<<8|(j[10134]<<16|j[10135]<<24);l=j[10128]|j[10129]<<8|(j[10130]<<16|j[10131]<<24);g[b|0]=l;g[b+1|0]=l>>>8;g[b+2|0]=l>>>16;g[b+3|0]=l>>>24;g[b+4|0]=k;g[b+5|0]=k>>>8;g[b+6|0]=k>>>16;g[b+7|0]=k>>>24;k=a+4|0;_j(zf(k,h+12|0),h,c);if(g[h+11|0]<=-1){ep(i[h>>2])}a=ko(32);i[h>>2]=a;i[h+4>>2]=19;i[h+8>>2]=-2147483616;g[a+19|0]=0;b=j[10161]|j[10162]<<8|(j[10163]<<16|j[10164]<<24);g[a+15|0]=b;g[a+16|0]=b>>>8;g[a+17|0]=b>>>16;g[a+18|0]=b>>>24;b=j[10158]|j[10159]<<8|(j[10160]<<16|j[10161]<<24);c=j[10154]|j[10155]<<8|(j[10156]<<16|j[10157]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10150]|j[10151]<<8|(j[10152]<<16|j[10153]<<24);c=j[10146]|j[10147]<<8|(j[10148]<<16|j[10149]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Gf(zf(k,h+12|0),h,e,d);if(g[h+11|0]<=-1){ep(i[h>>2])}a=ko(32);i[h>>2]=a;i[h+4>>2]=18;i[h+8>>2]=-2147483616;g[a+18|0]=0;b=j[10182]|j[10183]<<8;g[a+16|0]=b;g[a+17|0]=b>>>8;b=j[10178]|j[10179]<<8|(j[10180]<<16|j[10181]<<24);c=j[10174]|j[10175]<<8|(j[10176]<<16|j[10177]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10170]|j[10171]<<8|(j[10172]<<16|j[10173]<<24);c=j[10166]|j[10167]<<8|(j[10168]<<16|j[10169]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;$j(zf(k,h+12|0),h,f);if(g[h+11|0]<=-1){ep(i[h>>2])}H=h+16|0}function Ua(a,b){var c=0,d=0,e=0,f=0,h=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=H+ -64|0;H=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;f=ko(c);i[e+16>>2]=f;d=c+f|0;i[e+24>>2]=d;lp(f,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];p=i[i[c>>2]>>2];s=q;d=xp(i[c+40>>2],i[c+44>>2],q,0)+d|0;c=p+d|0;r=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+28>>2]=r;c:{d:{e:{if(!l){break e}d=i[e+32>>2];t=r>>>16|0;u=r&65535;p=t^(u^318)+239;c=p&l+131071;v=Ap(l)>>>0>1;f:{if(!v){break f}c=p;if(c>>>0>>0){break f}c=(p>>>0)%(l>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}w=l+ -1|0;while(1){h=i[d+4>>2];g:{if((p|0)!=(h|0)){h:{if(!v){h=h&w;break h}if(h>>>0>>0){break h}h=(h>>>0)%(l>>>0)|0}if((c|0)==(h|0)){break g}break e}if(k[d+8>>1]!=(u|0)){break g}if(k[d+10>>1]==(t|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=n;i[e+8>>2]=r;vb(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];kp(i[i[a>>2]>>2]+o(c,n)|0,e+28|0,c);f=i[e+16>>2];i[f+(s<<2)>>2]=n;n=n+1|0;break c}i[(s<<2)+f>>2]=i[d+12>>2]}c=m;m=q+1|0;if(m>>>0<1){c=c+1|0}q=m;m=c;d=i[a+80>>2];if(!c&q>>>0>>0|c>>>0<0){l=i[e+36>>2];continue}break}if((d|0)!=(n|0)){i:{if(!j[a+84|0]){c=i[a+72>>2];b=i[a+68>>2];if((c|0)==(b|0)){break i}c=c-b>>2;c=c>>>0>1?c:1;d=0;while(1){m=b+(d<<2)|0;i[m>>2]=i[(i[m>>2]<<2)+f>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Ya(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}f=i[e+16>>2];if(!d){break i}b=i[a+68>>2];h=0;while(1){c=h<<2;i[c+b>>2]=i[c+f>>2];h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+80>>2]=n}if(!f){break b}i[e+20>>2]=f;ep(f)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];ep(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){ep(a)}H=e- -64|0;return n}Ko();x()}function Qa(a,b){var c=0,d=0,e=0,f=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=H+ -64|0;H=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;f=ko(c);i[e+16>>2]=f;d=c+f|0;i[e+24>>2]=d;lp(f,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];p=i[i[c>>2]>>2];s=q;d=xp(i[c+40>>2],i[c+44>>2],q,0)+d|0;c=p+d|0;r=j[c|0]|j[c+1|0]<<8;h[e+30>>1]=r;c:{d:{e:{if(!l){break e}d=i[e+32>>2];t=r>>>8|0;u=r&255;p=t^(u^318)+239;c=p&l+ -1;v=Ap(l)>>>0>1;f:{if(!v){break f}c=p;if(l>>>0>c>>>0){break f}c=(p>>>0)%(l>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}w=l+ -1|0;while(1){k=i[d+4>>2];g:{if((p|0)!=(k|0)){h:{if(!v){k=k&w;break h}if(k>>>0>>0){break h}k=(k>>>0)%(l>>>0)|0}if((c|0)==(k|0)){break g}break e}if(j[d+8|0]!=(u|0)){break g}if(j[d+9|0]==(t|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=n;h[e+8>>1]=r;jb(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];kp(i[i[a>>2]>>2]+o(c,n)|0,e+30|0,c);f=i[e+16>>2];i[f+(s<<2)>>2]=n;n=n+1|0;break c}i[(s<<2)+f>>2]=i[d+12>>2]}c=m;m=q+1|0;if(m>>>0<1){c=c+1|0}q=m;m=c;d=i[a+80>>2];if(!c&q>>>0>>0|c>>>0<0){l=i[e+36>>2];continue}break}if((d|0)!=(n|0)){i:{if(!j[a+84|0]){c=i[a+72>>2];b=i[a+68>>2];if((c|0)==(b|0)){break i}c=c-b>>2;c=c>>>0>1?c:1;d=0;while(1){m=b+(d<<2)|0;i[m>>2]=i[(i[m>>2]<<2)+f>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Ya(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}f=i[e+16>>2];if(!d){break i}b=i[a+68>>2];k=0;while(1){c=k<<2;i[c+b>>2]=i[c+f>>2];k=k+1|0;if((k|0)!=(d|0)){continue}break}}i[a+80>>2]=n}if(!f){break b}i[e+20>>2]=f;ep(f)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];ep(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){ep(a)}H=e- -64|0;return n}Ko();x()}function Ol(a){var b=0,c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;f=H-32|0;H=f;o=i[a>>2];c=i[a+4>>2];g[f|0]=0;p=Dj(f+16|0,c-o>>2,f);i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;h=i[a>>2];b=i[a+4>>2];a:{b:{while(1){c:{q=0;l=0;if((b|0)==(h|0)){break c}while(1){j=i[p>>2];d:{if(i[j+(l>>>3&536870908)>>2]>>>(l&31)&1){break d}k=i[f>>2];i[f+4>>2]=k;b=l;while(1){e:{c=b+1|0;o=b;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)==-1){break e}d=i[i[a+12>>2]+(c<<2)>>2];if((d|0)==-1){break e}c=d+1|0;b=(c>>>0)%3|0?c:d+ -2|0;if((l|0)==(b|0)|(b|0)==-1){break e}if(!(i[(b>>>3&536870908)+j>>2]>>>(b&31)&1)){continue}}break}d=k;b=d;e=o;while(1){c=(e>>>3&536870908)+j|0;i[c>>2]=i[c>>2]|1<<(e&31);c=e+1|0;c=(c>>>0)%3|0?c:e+ -2|0;n=((e>>>0)%3|0?-1:2)+e|0;if((b|0)!=(d|0)){j=i[(c<<2)+h>>2];while(1){f:{if((j|0)!=i[b>>2]){break f}e=-1;m=i[b+4>>2];e=(n|0)!=-1?i[i[a+12>>2]+(n<<2)>>2]:e;if((m|0)==(e|0)){break f}d=-1;d=(m|0)!=-1?i[i[a+12>>2]+(m<<2)>>2]:d;if((e|0)!=-1){i[i[a+12>>2]+(e<<2)>>2]=-1}c=i[a+12>>2];if((d|0)!=-1){i[c+(d<<2)>>2]=-1}i[c+(n<<2)>>2]=-1;i[c+(m<<2)>>2]=-1;q=1;break d}b=b+8|0;if((d|0)!=(b|0)){continue}break}}m=n<<2;r=i[m+h>>2];b=i[f+8>>2];g:{if((b|0)!=(d|0)){i[d>>2]=r;i[d+4>>2]=c;i[f+4>>2]=d+8;break g}j=d-k|0;d=j>>3;h=d+1|0;if(h>>>0>=536870912){break b}s=d<<3;e=b-k|0;b=e>>2;h=e>>3>>>0<268435455?b>>>0>>0?h:b:536870911;d=0;h:{if(!h){break h}if(h>>>0>=536870912){break a}d=ko(h<<3)}e=s+d|0;b=e;i[b>>2]=r;i[b+4>>2]=c;b=d+(h<<3)|0;c=e+8|0;if((j|0)>=1){kp(d,k,j)}i[f+8>>2]=b;i[f+4>>2]=c;i[f>>2]=d;if(!k){break g}ep(k)}i:{if((n|0)==-1){break i}c=i[m+i[a+12>>2]>>2];if((c|0)==-1){break i}e=c+((c>>>0)%3|0?-1:2)|0;if((o|0)==(e|0)|(e|0)==-1){break i}h=i[a>>2];j=i[p>>2];d=i[f+4>>2];k=i[f>>2];b=k;continue}break}h=i[a>>2]}l=l+1|0;b=i[a+4>>2];if(l>>>0>2>>>0){continue}break}if(q){continue}}break}a=i[f>>2];if(a){i[f+4>>2]=a;ep(a)}a=i[p>>2];if(a){ep(a)}H=f+32|0;return}Ko();x()}Ba(16516);x()}function La(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;e=H+ -64|0;H=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;f=ko(c);i[e+16>>2]=f;d=c+f|0;i[e+24>>2]=d;lp(f,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];n=i[i[c>>2]>>2];r=p;d=xp(i[c+40>>2],i[c+44>>2],p,0)+d|0;c=n+d|0;q=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+28>>2]=q;c:{d:{e:{if(!k){break e}d=i[e+32>>2];n=q^318;c=n&k+ -1;s=Ap(k)>>>0>1;f:{if(!s){break f}c=n;if(c>>>0>>0){break f}c=(n>>>0)%(k>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}t=k+ -1|0;while(1){h=i[d+4>>2];g:{if((n|0)!=(h|0)){h:{if(!s){h=h&t;break h}if(h>>>0>>0){break h}h=(h>>>0)%(k>>>0)|0}if((c|0)==(h|0)){break g}break e}if(i[d+8>>2]==(q|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=m;i[e+8>>2]=q;Xa(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];kp(i[i[a>>2]>>2]+o(c,m)|0,e+28|0,c);f=i[e+16>>2];i[f+(r<<2)>>2]=m;m=m+1|0;break c}i[(r<<2)+f>>2]=i[d+12>>2]}c=l;l=p+1|0;if(l>>>0<1){c=c+1|0}p=l;l=c;d=i[a+80>>2];if(!c&p>>>0>>0|c>>>0<0){k=i[e+36>>2];continue}break}if((d|0)!=(m|0)){i:{if(!j[a+84|0]){c=i[a+72>>2];b=i[a+68>>2];if((c|0)==(b|0)){break i}c=c-b>>2;c=c>>>0>1?c:1;d=0;while(1){l=b+(d<<2)|0;i[l>>2]=i[(i[l>>2]<<2)+f>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Ya(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}f=i[e+16>>2];if(!d){break i}b=i[a+68>>2];h=0;while(1){c=h<<2;i[c+b>>2]=i[c+f>>2];h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+80>>2]=m}if(!f){break b}i[e+20>>2]=f;ep(f)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];ep(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){ep(a)}H=e- -64|0;return m}Ko();x()}function mg(a,b,c,d,e){var f=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;k=H-336|0;H=k;lp(k+80|0,0,256);f=i[d+4>>2];p=i[d>>2];if((f|0)!=(p|0)){f=f-p>>2;q=f>>>0>1?f:1;while(1){f=(k+80|0)+(i[p+(n<<2)>>2]<<3)|0;h=f;t=f;m=i[f+4>>2];f=i[f>>2]+1|0;if(f>>>0<1){m=m+1|0}i[t>>2]=f;i[h+4>>2]=m;n=n+1|0;if((q|0)!=(n|0)){continue}break}}r=Vj(k+48|0);i[k+8>>2]=0;i[k+12>>2]=0;h=k+16|0;f=h;i[f>>2]=0;i[f+4>>2]=0;p=k+24|0;f=p;i[f>>2]=0;i[f+4>>2]=0;i[k+32>>2]=0;i[k>>2]=0;i[k+4>>2]=0;i[k+40>>2]=0;i[k+44>>2]=0;og(k,k+80|0,32,e);m=i[h>>2];f=i[h+4>>2];h=i[e+4>>2]-i[e>>2]|0;i[k+40>>2]=h;i[k+44>>2]=0;t=e;q=m;m=f<<1|m>>>31;f=(q<<1)+39|0;if(f>>>0<39){m=m+1|0}q=f;f=m>>>3|0;m=h+((m&7)<<29|q>>>3)|0;if(m>>>0>>0){f=f+1|0}h=m+8|0;h>>>0<8;Wj(t,h);f=i[e>>2];i[k+28>>2]=0;i[k+32>>2]=16384;i[p>>2]=f+i[k+40>>2];h=b;Xj(r,h<<5,h>>31<<5|h>>>27,0);b=h-c|0;if((b|0)>=0){y=(c|0)<1;f=b;while(1){n=i[k+32>>2];s=i[d>>2];q=i[k>>2]+(i[s+((f|0)/(c|0)<<2)>>2]<<3)|0;p=i[q>>2];m=p<<10;if(n>>>0>=m>>>0){while(1){h=i[k+28>>2];i[k+28>>2]=h+1;g[h+i[k+24>>2]|0]=n;n=i[k+32>>2]>>>8|0;i[k+32>>2]=n;if(n>>>0>=m>>>0){continue}break}s=i[d>>2]}h=(n>>>0)/(p>>>0)|0;i[k+32>>2]=i[q+4>>2]+((h<<12)+(n-o(h,p)|0)|0);n=b-f|0;h=(n|0)/(c|0)|0;if(!y){x=i[(h<<2)+s>>2];v=0;while(1){h=i[r+20>>2];if(!((x|0)<1|((h|0)<0?1:(h|0)<=0?l[r+16>>2]<1:0))){p=i[(n+v<<2)+a>>2];u=i[r+12>>2];s=i[u+4>>2];w=0;while(1){q=s>>>3|0;m=q+i[u>>2]|0;h=j[m|0];t=m;m=s&7;z=t,A=Bp(-2,m)&h,g[z|0]=A;h=q+i[u>>2]|0;g[h|0]=j[h|0]|(p>>>w&1)<>2]+1|0;i[u+4>>2]=s;w=w+1|0;if((x|0)!=(w|0)){continue}break}}v=v+1|0;if((v|0)!=(c|0)){continue}break}}f=f-c|0;if((f|0)>-1){continue}break}}pg(k,e);Yj(r);a=i[e+20>>2];if((a|0)<0?1:(a|0)<=0?l[e+16>>2]<=0:0){ea(e,i[e+4>>2],i[r>>2],i[r+4>>2])}a=i[k>>2];if(a){i[k+4>>2]=a;ep(a)}a=i[r+12>>2];i[r+12>>2]=0;if(a){ep(a)}a=i[r>>2];if(a){i[r+4>>2]=a;ep(a)}H=k+336|0;return 1}function Ta(a,b){var c=0,d=0,e=0,f=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=H+ -64|0;H=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;f=ko(c);i[e+16>>2]=f;d=c+f|0;i[e+24>>2]=d;lp(f,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];q=i[i[c>>2]>>2];t=r;d=xp(i[c+40>>2],i[c+44>>2],r,0)+d|0;c=q+d|0;s=j[c|0]|j[c+1|0]<<8;h[e+30>>1]=s;c:{d:{e:{if(!m){break e}d=i[e+32>>2];q=s^318;c=q&m+ -1;u=Ap(m)>>>0>1;f:{if(!u){break f}c=q;if(m>>>0>c>>>0){break f}c=(q>>>0)%(m>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}v=m+ -1|0;while(1){l=i[d+4>>2];g:{if((q|0)!=(l|0)){h:{if(!u){l=l&v;break h}if(l>>>0>>0){break h}l=(l>>>0)%(m>>>0)|0}if((c|0)==(l|0)){break g}break e}if(k[d+8>>1]==(s|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=p;h[e+8>>1]=s;ub(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];kp(i[i[a>>2]>>2]+o(c,p)|0,e+30|0,c);f=i[e+16>>2];i[f+(t<<2)>>2]=p;p=p+1|0;break c}i[(t<<2)+f>>2]=i[d+12>>2]}c=n;n=r+1|0;if(n>>>0<1){c=c+1|0}r=n;n=c;d=i[a+80>>2];if(!c&r>>>0>>0|c>>>0<0){m=i[e+36>>2];continue}break}if((d|0)!=(p|0)){i:{if(!j[a+84|0]){c=i[a+72>>2];b=i[a+68>>2];if((c|0)==(b|0)){break i}c=c-b>>2;c=c>>>0>1?c:1;d=0;while(1){n=b+(d<<2)|0;i[n>>2]=i[(i[n>>2]<<2)+f>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Ya(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}f=i[e+16>>2];if(!d){break i}b=i[a+68>>2];l=0;while(1){c=l<<2;i[c+b>>2]=i[c+f>>2];l=l+1|0;if((l|0)!=(d|0)){continue}break}}i[a+80>>2]=p}if(!f){break b}i[e+20>>2]=f;ep(f)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];ep(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){ep(a)}H=e- -64|0;return p}Ko();x()}function Pa(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;e=H+ -64|0;H=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;f=ko(c);i[e+16>>2]=f;d=c+f|0;i[e+24>>2]=d;lp(f,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];n=i[i[c>>2]>>2];r=p;d=xp(i[c+40>>2],i[c+44>>2],p,0)+d|0;q=j[n+d|0];g[e+31|0]=q;c:{d:{e:{if(!k){break e}d=i[e+32>>2];n=q^318;c=n&k+ -1;s=Ap(k)>>>0>1;f:{if(!s){break f}c=n;if(c>>>0>>0){break f}c=(n>>>0)%(k>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}t=k+ -1|0;while(1){h=i[d+4>>2];g:{if((n|0)!=(h|0)){h:{if(!s){h=h&t;break h}if(h>>>0>>0){break h}h=(h>>>0)%(k>>>0)|0}if((c|0)==(h|0)){break g}break e}if(j[d+8|0]==(q|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=m;g[e+8|0]=q;ib(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];kp(i[i[a>>2]>>2]+o(c,m)|0,e+31|0,c);f=i[e+16>>2];i[f+(r<<2)>>2]=m;m=m+1|0;break c}i[(r<<2)+f>>2]=i[d+12>>2]}c=l;l=p+1|0;if(l>>>0<1){c=c+1|0}p=l;l=c;d=i[a+80>>2];if(!c&p>>>0>>0|c>>>0<0){k=i[e+36>>2];continue}break}if((d|0)!=(m|0)){i:{if(!j[a+84|0]){c=i[a+72>>2];b=i[a+68>>2];if((c|0)==(b|0)){break i}c=c-b>>2;c=c>>>0>1?c:1;d=0;while(1){l=b+(d<<2)|0;i[l>>2]=i[(i[l>>2]<<2)+f>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Ya(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}f=i[e+16>>2];if(!d){break i}b=i[a+68>>2];h=0;while(1){c=h<<2;i[c+b>>2]=i[c+f>>2];h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+80>>2]=m}if(!f){break b}i[e+20>>2]=f;ep(f)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];ep(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){ep(a)}H=e- -64|0;return m}Ko();x()}function oe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;i[a+8>>2]=e;g=a+32|0;h=i[g>>2];f=i[a+36>>2]-h>>2;a:{if(f>>>0>>0){Cd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=h+(e<<2)}b:{if(!d){break b}h=1;f=i[b>>2];c:{if((d|0)<=1){g=f;break c}g=f;while(1){j=i[(h<<2)+b>>2];k=(j|0)<(g|0);g=k?j:g;f=k?f:(j|0)>(f|0)?j:f;h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+16>>2]=f;i[a+12>>2]=g;h=f;f=(f>>31)-((g>>31)+(f>>>0>>0)|0)|0;g=h-g|0;if(!f&g>>>0>2147483646|f>>>0>0){break b}f=g+1|0;i[a+20>>2]=f;g=(f|0)/2|0;i[a+24>>2]=g;i[a+28>>2]=0-g;if(f&1){break b}i[a+24>>2]=g+ -1}j=d-e|0;if((j|0)>=1){g=i[a+8>>2];o=0-e<<2;while(1){if((g|0)>=1){d=j<<2;p=d+c|0;n=b+d|0;d=n+o|0;h=0;while(1){f=0;d:{if((g|0)<=0){g=i[a+32>>2];break d}while(1){k=f<<2;l=i[k+d>>2];m=i[a+16>>2];e:{if((l|0)>(m|0)){g=i[a+32>>2];i[k+g>>2]=m;break e}g=i[a+32>>2];k=k+g|0;m=i[a+12>>2];if((l|0)<(m|0)){i[k>>2]=m;break e}i[k>>2]=l}f=f+1|0;if((f|0)>2]){continue}break}}f=h<<2;d=f+p|0;f=i[f+n>>2]-i[f+g>>2]|0;i[d>>2]=f;f:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break f}f=f-i[a+20>>2]|0}i[d>>2]=f}d=g;h=h+1|0;g=i[a+8>>2];if((h|0)<(g|0)){continue}break}}j=j-e|0;if((j|0)>0){continue}break}}h=0;d=(e&1073741823)!=(e|0)?-1:e<<2;e=lp(ko(d),0,d);g=i[a+8>>2];if((g|0)>=1){d=e;while(1){f=0;g:{if((g|0)<=0){g=i[a+32>>2];break g}while(1){j=f<<2;k=i[j+d>>2];l=i[a+16>>2];h:{if((k|0)>(l|0)){g=i[a+32>>2];i[j+g>>2]=l;break h}g=i[a+32>>2];j=j+g|0;l=i[a+12>>2];if((k|0)<(l|0)){i[j>>2]=l;break h}i[j>>2]=k}f=f+1|0;if((f|0)>2]){continue}break}}f=h<<2;d=f+c|0;f=i[b+f>>2]-i[f+g>>2]|0;i[d>>2]=f;i:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break i}f=f-i[a+20>>2]|0}i[d>>2]=f}d=g;h=h+1|0;g=i[a+8>>2];if((h|0)<(g|0)){continue}break}}ep(e);return 1}function Xh(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=H+ -64|0;H=e;d=ko(80);h=i[b+8>>2];i[d+12>>2]=0;i[d+16>>2]=0;i[d>>2]=12588;i[d+4>>2]=0;l=d+20|0;f=l;i[f>>2]=0;i[f+4>>2]=0;o=d+28|0;f=o;i[f>>2]=0;i[f+4>>2]=0;i[d+36>>2]=0;i[d+40>>2]=0;m=d+44|0;f=m;i[f>>2]=0;i[f+4>>2]=0;i[d+52>>2]=0;i[d+76>>2]=0;i[d+72>>2]=c;i[d+68>>2]=h;i[d+64>>2]=0;i[d+56>>2]=0;i[d+60>>2]=0;i[d+8>>2]=12752;f=i[b+12>>2];p=e+40|0;j=p;i[j>>2]=0;i[j+4>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;j=e+24|0;i[j>>2]=0;i[j+4>>2]=0;q=e+16|0;k=q;i[k>>2]=0;i[k+4>>2]=0;k=e+8|0;i[k>>2]=0;i[k+4>>2]=0;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e>>2]=12752;i[e+4>>2]=f;n=i[f>>2];r=i[f+4>>2];g[e+63|0]=0;Vh(j,(r-n>>2>>>0)/3|0,e+63|0);j=i[e+4>>2];n=i[j+28>>2];j=i[j+24>>2];g[e+63|0]=0;Vh(e+36|0,n-j>>2,e+63|0);j=e+20|0;i[j>>2]=d;i[q>>2]=h;h=e+12|0;i[h>>2]=c;i[k>>2]=f;i[d+76>>2]=b+72;i[o>>2]=i[j>>2];b=i[h+4>>2];i[l>>2]=i[h>>2];i[l+4>>2]=b;b=i[e+8>>2];i[d+12>>2]=i[e+4>>2];i[d+16>>2]=b;a:{b:{b=d;f=i[e+28>>2];if(f){h=d+32|0;c:{if(f>>>0<=i[d+40>>2]<<5>>>0){c=f+ -1>>>5|0;f=i[h>>2];break c}c=i[h>>2];if(c){ep(c);i[d+40>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;f=i[e+28>>2]}if((f|0)<=-1){break b}c=f+ -1>>>5|0;h=c+1|0;f=ko(h<<2);i[d+40>>2]=h;i[d+36>>2]=0;i[d+32>>2]=f}mp(f,i[e+24>>2],(c<<2)+4|0);c=i[e+28>>2]}else{c=0}i[b+36>>2]=c;c=d;f=i[p>>2];if(f){d:{if(f>>>0<=i[d+52>>2]<<5>>>0){b=f+ -1>>>5|0;f=i[m>>2];break d}b=i[m>>2];if(b){ep(b);i[d+52>>2]=0;i[d+44>>2]=0;i[d+48>>2]=0;f=i[e+40>>2]}if((f|0)<=-1){break a}b=f+ -1>>>5|0;h=b+1|0;f=ko(h<<2);i[d+52>>2]=h;i[d+48>>2]=0;i[d+44>>2]=f}mp(f,i[e+36>>2],(b<<2)+4|0);b=i[e+40>>2]}else{b=0}i[c+48>>2]=b;Wh(d+56|0,i[e+48>>2],i[e+52>>2]);i[a>>2]=d;i[e>>2]=12752;a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}i[e>>2]=12568;a=i[e+36>>2];if(a){ep(a)}a=i[e+24>>2];if(a){ep(a)}H=e- -64|0;return}Ko();x()}Ko();x()}function Xf(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;a:{if(!i[a+8>>2]){break a}g=i[a>>2];j=a+4|0;i[a>>2]=j;i[i[a+4>>2]+8>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;d=i[g+4>>2];g=d?d:g;if(!g){xf(a,g);break a}f=i[g+8>>2];b:{if(!f){break b}d=i[f>>2];if((g|0)==(d|0)){i[f>>2]=0;d=i[f+4>>2];if(!d){e=f;break b}while(1){e=d;d=i[d>>2];if(d){continue}d=i[e+4>>2];if(d){continue}break}break b}i[f+4>>2]=0;if(!d){e=f;break b}while(1){e=d;d=i[d>>2];if(d){continue}d=i[e+4>>2];if(d){continue}break}}c:{if((b|0)==(c|0)){break c}f=b;h=g;while(1){g=e;i[h+16>>2]=i[f+16>>2];if((f|0)!=(h|0)){yf(h+20|0,i[f+20>>2],f+24|0)}d:{b=i[j>>2];if(!b){b=j;d=b;break d}k=i[h+16>>2];while(1){e:{if((k|0)>2]){d=i[b>>2];if(d){break e}d=b;break d}d=i[b+4>>2];if(d){break e}d=b+4|0;break d}b=d;continue}}i[h+8>>2]=b;i[h>>2]=0;i[h+4>>2]=0;i[d>>2]=h;b=i[i[a>>2]>>2];if(b){i[a>>2]=b;h=i[d>>2]}Lf(i[a+4>>2],h);i[a+8>>2]=i[a+8>>2]+1;f:{if(!e){e=0;break f}d=i[e+8>>2];if(!d){e=0;break f}b=i[d>>2];if((e|0)==(b|0)){i[d>>2]=0;b=i[d+4>>2];if(!b){e=d;break f}while(1){e=b;b=i[b>>2];if(b){continue}b=i[e+4>>2];if(b){continue}break}break f}i[d+4>>2]=0;if(!b){e=d;break f}while(1){e=b;b=i[b>>2];if(b){continue}b=i[e+4>>2];if(b){continue}break}}d=i[f+4>>2];g:{if(!d){b=i[f+8>>2];if(i[b>>2]==(f|0)){break g}f=f+8|0;while(1){d=i[f>>2];f=d+8|0;b=i[d+8>>2];if((d|0)!=i[b>>2]){continue}break}break g}while(1){b=d;d=i[d>>2];if(d){continue}break}}if(!g){break c}f=b;h=g;if((b|0)!=(c|0)){continue}break}}xf(a,g);if(!e){break a}while(1){d=i[e+8>>2];if(d){e=d;continue}break}xf(a,e)}if((b|0)!=(c|0)){while(1){e=b;ag(a,b+16|0);d=i[b+4>>2];h:{if(!d){b=i[e+8>>2];if((e|0)==i[b>>2]){break h}e=e+8|0;while(1){d=i[e>>2];e=d+8|0;b=i[d+8>>2];if((d|0)!=i[b>>2]){continue}break}break h}while(1){b=d;d=i[d>>2];if(d){continue}break}}if((b|0)!=(c|0)){continue}break}}}function tf(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;f=H-32|0;H=f;m=f;e=i[a>>2];h=i[e>>2];d=i[e+4>>2];n=+(h>>>0)+ +(d>>>0)*4294967296;d=i[e+12>>2]+d|0;e=i[e+8>>2];h=e+h|0;if(h>>>0>>0){d=d+1|0}e=!(d|h);n=n/(+((e?1:h)>>>0)+ +((e?0:d)>>>0)*4294967296)*256+.5;a:{if(n<4294967296&n>=0){d=~~n>>>0;break a}d=0}c=d>>>0<255?d:255;p=!(c&255)+c|0;g[m+23|0]=p;h=i[a+16>>2];r=i[a+12>>2];i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;b:{c:{c=(h-r<<1)- -64|0;if(c){if((c|0)<=-1){break c}k=ko(c);i[f+8>>2]=k;d=c+k|0;i[f+16>>2]=d;lp(k,0,c);i[f+12>>2]=d}c=i[a+28>>2]+ -1|0;if((c|0)<0){e=4096;break b}m=0-p|0;s=m&255;t=i[a+24>>2];e=4096;while(1){q=t&1<>>0>=d<<12>>>0){g[j+k|0]=e;j=j+1|0;e=e>>>8|0}u=256-d|0;d=d<<3;xp(i[d+14192>>2],0,e,0);e=((q?0:s)+e|0)+o(u,J+e>>>i[d+14196>>2]|0)|0;c=c+ -1|0;if((c|0)>-1){continue}break}break b}Ko();x()}if((h|0)!=(r|0)){m=0-p|0;s=m&255;while(1){h=h+ -4|0;t=i[h>>2];c=31;while(1){d=c;q=t&1<>>0>=c<<12>>>0){g[j+k|0]=e;j=j+1|0;e=e>>>8|0}u=256-c|0;c=c<<3;xp(i[c+14192>>2],0,e,0);e=((q?0:s)+e|0)+o(u,J+e>>>i[c+14196>>2]|0)|0;c=d+ -1|0;if(d){continue}break}if((h|0)!=(r|0)){continue}break}}c=e+ -4096|0;d:{e:{if(c>>>0<=63){e=j+k|0;d=1;break e}if(c>>>0<=16383){c=j+k|0;d=e+12288|0;g[c|0]=d;e=c+1|0;c=d>>>8|0;d=2;break e}if(c>>>0>4194303){break d}c=j+k|0;d=e+8384512|0;g[c|0]=d;g[c+1|0]=d>>>8;e=c+2|0;c=d>>>16|0;d=3}g[e|0]=c;j=d+j|0}c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ea(b,i[b+4>>2],f+23|0,f+24|0)}Kb(j,b);c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){d=b;c=i[b+4>>2];b=i[f+8>>2];ea(d,c,b,b+j|0)}i[f+24>>2]=0;i[f+28>>2]=0;pf(a,f+24|0);i[a+24>>2]=0;i[a+28>>2]=0;i[a+16>>2]=i[a+12>>2];a=i[f+8>>2];if(a){i[f+12>>2]=a;ep(a)}H=f+32|0}function sf(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i[a>>2];f=d;l=d;e=i[d+12>>2];g=i[d+8>>2];c=c>>>1&1431655765|c<<1&-1431655766;c=c>>>2&858993459|c<<2&-858993460;c=c>>>4&252645135|c<<4&-252645136;h=32-b|0;j=Bp(c>>>8&16711935|c<<8&-16711936,16)>>>h|0;c=j-(j>>>1&1431655765)|0;c=(c>>>2&858993459)+(c&858993459)|0;k=o((c>>>4|0)+c&252645135,16843009)>>>24|0;c=k;g=g+c|0;if(g>>>0>>0){e=e+1|0}i[l+8>>2]=g;i[f+12>>2]=e;c=d;f=b-k|0;e=f+i[c>>2]|0;d=i[c+4>>2]+(f>>31)|0;i[c>>2]=e;i[c+4>>2]=e>>>0>>0?d+1|0:d;a:{b:{c:{d:{c=i[a+28>>2];f=32-c|0;e:{f:{if((f|0)>=(b|0)){b=b+c|0;i[a+28>>2]=b;d=-1>>>h<>2]&(d^-1)|d&j<>2]=j;if((b|0)!=32){break e}b=i[a+16>>2];f=i[a+20>>2];if((b|0)!=(f|0)){i[b>>2]=j;i[a+16>>2]=b+4;b=0;c=0;break f}c=i[a+12>>2];e=b-c|0;h=e>>2;d=h+1|0;if(d>>>0>=1073741824){break d}f=f-c|0;k=f>>1;d=f>>2>>>0<536870911?k>>>0>>0?d:k:1073741823;b=0;g:{if(!d){break g}if(d>>>0>=1073741824){break c}b=ko(d<<2)}f=b+(h<<2)|0;i[f>>2]=j;d=b+(d<<2)|0;j=f+4|0;if((e|0)>=1){kp(b,c,e)}i[a+20>>2]=d;i[a+16>>2]=j;i[a+12>>2]=b;b=0;if(!c){c=0;break f}ep(c);c=0;break f}h=i[a+24>>2]&(-1<>2]=h;c=i[a+16>>2];g=i[a+20>>2];h:{if((c|0)!=(g|0)){i[c>>2]=h;i[a+16>>2]=c+4;break h}d=i[a+12>>2];k=c-d|0;c=k>>2;e=c+1|0;if(e>>>0>=1073741824){break b}l=c<<2;g=g-d|0;c=g>>1;e=g>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;i:{if(!e){break i}if(e>>>0>=1073741824){break a}c=ko(e<<2)}g=l+c|0;i[g>>2]=h;e=c+(e<<2)|0;h=g+4|0;if((k|0)>=1){kp(c,d,k)}i[a+20>>2]=e;i[a+16>>2]=h;i[a+12>>2]=c;if(!d){break h}ep(d)}c=b-f|0;b=-1>>>32-c&j>>>f}i[a+28>>2]=c;i[a+24>>2]=b}return}Ko();x()}Ba(10036);x()}Ko();x()}Ba(10036);x()}function Em(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;a:{if((b|0)<0){break a}c=i[a+12>>2];d=i[a+8>>2];if(c-d>>2>>>0<=b>>>0){break a}d=d+(b<<2)|0;e=i[d>>2];h=i[e+60>>2];f=i[e+56>>2];e=d+4|0;b:{if((e|0)!=(c|0)){while(1){j=i[e>>2];i[e>>2]=0;g=i[d>>2];i[d>>2]=j;if(g){Xb(g)}d=d+4|0;e=e+4|0;if((e|0)!=(c|0)){continue}break}c=i[a+12>>2];if((d|0)==(c|0)){break b}}while(1){c=c+ -4|0;e=i[c>>2];i[c>>2]=0;if(e){Xb(e)}if((c|0)!=(d|0)){continue}break}}i[a+12>>2]=d;c=i[a+4>>2];if(c){Fm(c,h)}c:{if((f|0)>4){break c}d:{d=o(f,12)+a|0;c=i[d+20>>2];e=d+24|0;d=i[e>>2];if((c|0)==(d|0)){break d}while(1){if(i[c>>2]==(b|0)){break d}c=c+4|0;if((d|0)!=(c|0)){continue}break}break c}if((c|0)==(d|0)){break c}f=c+4|0;d=d-f|0;if(d){mp(c,f,d)}i[e>>2]=c+d}c=i[a+24>>2];d=i[a+20>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=i[f>>2];if((g|0)>(b|0)){i[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=i[a+36>>2];d=i[a+32>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=i[f>>2];if((g|0)>(b|0)){i[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=i[a+48>>2];d=i[a+44>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=i[f>>2];if((g|0)>(b|0)){i[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=i[a+60>>2];d=i[a+56>>2];if((c|0)!=(d|0)){c=c-d>>2;e=c>>>0>1?c:1;c=0;while(1){f=d+(c<<2)|0;g=i[f>>2];if((g|0)>(b|0)){i[f>>2]=g+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=i[a+72>>2];a=i[a+68>>2];if((c|0)==(a|0)){break a}c=c-a>>2;d=c>>>0>1?c:1;c=0;while(1){e=a+(c<<2)|0;f=i[e>>2];if((f|0)>(b|0)){i[e>>2]=f+ -1}c=c+1|0;if((d|0)!=(c|0)){continue}break}}}function ui(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0;e=H-16|0;H=e;i[a+4>>2]=b;i[a+8>>2]=i[b+56>>2];i[a+188>>2]=i[a+184>>2];f=i[b+48>>2];b=ko(32);i[e>>2]=b;i[e+4>>2]=19;i[e+8>>2]=-2147483616;g[b+19|0]=0;c=j[11251]|j[11252]<<8|(j[11253]<<16|j[11254]<<24);g[b+15|0]=c;g[b+16|0]=c>>>8;g[b+17|0]=c>>>16;g[b+18|0]=c>>>24;c=j[11248]|j[11249]<<8|(j[11250]<<16|j[11251]<<24);d=j[11244]|j[11245]<<8|(j[11246]<<16|j[11247]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11240]|j[11241]<<8|(j[11242]<<16|j[11243]<<24);d=j[11236]|j[11237]<<8|(j[11238]<<16|j[11239]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;b=Tb(f,e);if(g[e+11|0]<=-1){ep(i[e>>2])}f=i[i[a+4>>2]+48>>2];a:{if(b){b=ko(32);i[e>>2]=b;i[e+4>>2]=19;i[e+8>>2]=-2147483616;g[b+19|0]=0;c=j[11251]|j[11252]<<8|(j[11253]<<16|j[11254]<<24);g[b+15|0]=c;g[b+16|0]=c>>>8;g[b+17|0]=c>>>16;g[b+18|0]=c>>>24;c=j[11248]|j[11249]<<8|(j[11250]<<16|j[11251]<<24);d=j[11244]|j[11245]<<8|(j[11246]<<16|j[11247]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11240]|j[11241]<<8|(j[11242]<<16|j[11243]<<24);d=j[11236]|j[11237]<<8|(j[11238]<<16|j[11239]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;h=a,k=ek(f,e,0),g[h+352|0]=k;if(g[e+11|0]>-1){break a}ep(i[e>>2]);break a}if(($b(f)|0)>=6){g[a+352|0]=1;break a}g[a+352|0]=0}H=e+16|0;return 1}function Oh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0;e=H-16|0;H=e;i[a+4>>2]=b;i[a+8>>2]=i[b+56>>2];i[a+188>>2]=i[a+184>>2];f=i[b+48>>2];b=ko(32);i[e>>2]=b;i[e+4>>2]=19;i[e+8>>2]=-2147483616;g[b+19|0]=0;c=j[11251]|j[11252]<<8|(j[11253]<<16|j[11254]<<24);g[b+15|0]=c;g[b+16|0]=c>>>8;g[b+17|0]=c>>>16;g[b+18|0]=c>>>24;c=j[11248]|j[11249]<<8|(j[11250]<<16|j[11251]<<24);d=j[11244]|j[11245]<<8|(j[11246]<<16|j[11247]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11240]|j[11241]<<8|(j[11242]<<16|j[11243]<<24);d=j[11236]|j[11237]<<8|(j[11238]<<16|j[11239]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;b=Tb(f,e);if(g[e+11|0]<=-1){ep(i[e>>2])}f=i[i[a+4>>2]+48>>2];a:{if(b){b=ko(32);i[e>>2]=b;i[e+4>>2]=19;i[e+8>>2]=-2147483616;g[b+19|0]=0;c=j[11251]|j[11252]<<8|(j[11253]<<16|j[11254]<<24);g[b+15|0]=c;g[b+16|0]=c>>>8;g[b+17|0]=c>>>16;g[b+18|0]=c>>>24;c=j[11248]|j[11249]<<8|(j[11250]<<16|j[11251]<<24);d=j[11244]|j[11245]<<8|(j[11246]<<16|j[11247]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11240]|j[11241]<<8|(j[11242]<<16|j[11243]<<24);d=j[11236]|j[11237]<<8|(j[11238]<<16|j[11239]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;h=a,k=ek(f,e,0),g[h+288|0]=k;if(g[e+11|0]>-1){break a}ep(i[e>>2]);break a}if(($b(f)|0)>=6){g[a+288|0]=1;break a}g[a+288|0]=0}H=e+16|0;return 1}function uf(a){var b=0,c=0,d=0,e=0;d=H-16|0;H=d;Zj(a);b=a+16|0;i[b>>2]=0;i[b+4>>2]=0;i[a+12>>2]=b;e=Zj(a+24|0);a=ko(32);i[d>>2]=a;i[d+4>>2]=20;i[d+8>>2]=-2147483616;g[a+20|0]=0;b=j[10408]|j[10409]<<8|(j[10410]<<16|j[10411]<<24);g[a+16|0]=b;g[a+17|0]=b>>>8;g[a+18|0]=b>>>16;g[a+19|0]=b>>>24;b=j[10404]|j[10405]<<8|(j[10406]<<16|j[10407]<<24);c=j[10400]|j[10401]<<8|(j[10402]<<16|j[10403]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10396]|j[10397]<<8|(j[10398]<<16|j[10399]<<24);c=j[10392]|j[10393]<<8|(j[10394]<<16|j[10395]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;_j(e,d,1);if(g[d+11|0]<=-1){ep(i[d>>2])}a=ko(32);i[d>>2]=a;i[d+4>>2]=22;i[d+8>>2]=-2147483616;g[a+22|0]=0;b=j[10431]|j[10432]<<8|(j[10433]<<16|j[10434]<<24);c=j[10427]|j[10428]<<8|(j[10429]<<16|j[10430]<<24);g[a+14|0]=c;g[a+15|0]=c>>>8;g[a+16|0]=c>>>16;g[a+17|0]=c>>>24;g[a+18|0]=b;g[a+19|0]=b>>>8;g[a+20|0]=b>>>16;g[a+21|0]=b>>>24;b=j[10425]|j[10426]<<8|(j[10427]<<16|j[10428]<<24);c=j[10421]|j[10422]<<8|(j[10423]<<16|j[10424]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10417]|j[10418]<<8|(j[10419]<<16|j[10420]<<24);c=j[10413]|j[10414]<<8|(j[10415]<<16|j[10416]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;_j(e,d,1);if(g[d+11|0]<=-1){ep(i[d>>2])}H=d+16|0}function Rf(a){var b=0,c=0,d=0,e=0;d=H-16|0;H=d;Zj(a);b=a+16|0;i[b>>2]=0;i[b+4>>2]=0;i[a+12>>2]=b;e=Zj(a+24|0);a=ko(32);i[d>>2]=a;i[d+4>>2]=20;i[d+8>>2]=-2147483616;g[a+20|0]=0;b=j[10676]|j[10677]<<8|(j[10678]<<16|j[10679]<<24);g[a+16|0]=b;g[a+17|0]=b>>>8;g[a+18|0]=b>>>16;g[a+19|0]=b>>>24;b=j[10672]|j[10673]<<8|(j[10674]<<16|j[10675]<<24);c=j[10668]|j[10669]<<8|(j[10670]<<16|j[10671]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10664]|j[10665]<<8|(j[10666]<<16|j[10667]<<24);c=j[10660]|j[10661]<<8|(j[10662]<<16|j[10663]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;_j(e,d,1);if(g[d+11|0]<=-1){ep(i[d>>2])}a=ko(32);i[d>>2]=a;i[d+4>>2]=22;i[d+8>>2]=-2147483616;g[a+22|0]=0;b=j[10699]|j[10700]<<8|(j[10701]<<16|j[10702]<<24);c=j[10695]|j[10696]<<8|(j[10697]<<16|j[10698]<<24);g[a+14|0]=c;g[a+15|0]=c>>>8;g[a+16|0]=c>>>16;g[a+17|0]=c>>>24;g[a+18|0]=b;g[a+19|0]=b>>>8;g[a+20|0]=b>>>16;g[a+21|0]=b>>>24;b=j[10693]|j[10694]<<8|(j[10695]<<16|j[10696]<<24);c=j[10689]|j[10690]<<8|(j[10691]<<16|j[10692]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10685]|j[10686]<<8|(j[10687]<<16|j[10688]<<24);c=j[10681]|j[10682]<<8|(j[10683]<<16|j[10684]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;_j(e,d,1);if(g[d+11|0]<=-1){ep(i[d>>2])}H=d+16|0}function jj(a,b){var c=0,d=0,e=0;i[a>>2]=i[b>>2];i[a+4>>2]=i[b+4>>2];i[a+8>>2]=i[b+8>>2];c=b+12|0;i[a+12>>2]=i[c>>2];i[c>>2]=0;i[b+4>>2]=0;i[b+8>>2]=0;c=b+16|0;i[a+16>>2]=i[c>>2];i[a+20>>2]=i[b+20>>2];d=b+24|0;i[a+24>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=j[b+28|0];e=a+40|0;i[e>>2]=0;c=a+32|0;i[c>>2]=0;i[c+4>>2]=0;g[a+28|0]=d;d=c;c=b+32|0;i[d>>2]=i[c>>2];i[a+36>>2]=i[b+36>>2];d=b+40|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a+52|0;i[d>>2]=0;c=a+44|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+44|0;i[e>>2]=i[c>>2];i[a+48>>2]=i[b+48>>2];e=d;d=b+52|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a- -64|0;i[d>>2]=0;c=a+56|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+56|0;i[e>>2]=i[c>>2];i[a+60>>2]=i[b+60>>2];e=d;d=b- -64|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;i[a+68>>2]=i[b+68>>2];d=i[b+72>>2];e=a+84|0;i[e>>2]=0;c=a+76|0;i[c>>2]=0;i[c+4>>2]=0;i[a+72>>2]=d;d=c;c=b+76|0;i[d>>2]=i[c>>2];i[a+80>>2]=i[b+80>>2];d=b+84|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a+96|0;i[d>>2]=0;c=a+88|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+88|0;i[e>>2]=i[c>>2];i[a+92>>2]=i[b+92>>2];e=d;d=b+96|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;c=j[b+100|0];d=a+112|0;i[d>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;g[a+100|0]=c;i[a+104>>2]=i[b+104>>2];i[a+108>>2]=i[b+108>>2];c=b+112|0;i[d>>2]=i[c>>2];i[c>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;d=a+124|0;i[d>>2]=0;c=a+116|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+116|0;i[e>>2]=i[c>>2];i[a+120>>2]=i[b+120>>2];e=d;d=b+124|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;i[a+128>>2]=i[b+128>>2];i[a+132>>2]=i[b+132>>2];return a}function Ae(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i[b+16>>2];f=i[c+4>>2]-e|0;i[c>>2]=i[c>>2]-e;i[c+4>>2]=f;g=i[d+4>>2]-e|0;f=g;e=i[d>>2]-e|0;i[d>>2]=e;i[d+4>>2]=f;f=f>>31;h=f+g^f;f=e>>31;j=i[b+16>>2];if((h+(f+e^f)|0)>(j|0)){e=i[c+4>>2];k=i[c>>2];a:{b:{if((k|0)>=0){g=1;f=1;if((e|0)>-1){break a}h=1;g=-1;f=-1;if((k|0)>=1){break b}break a}h=-1;g=-1;f=-1;if((e|0)<1){break a}}g=(e|0)<1?-1:1;f=h}l=o(g,j);e=(e<<1)-l|0;i[c+4>>2]=e;j=o(f,j);h=(k<<1)-j|0;i[c>>2]=h;c:{if((o(f,g)|0)>=0){e=0-e|0;i[c>>2]=e;h=0-h|0;break c}i[c>>2]=e}i[c+4>>2]=(h+l|0)/2;i[c>>2]=(e+j|0)/2;e=i[d+4>>2];j=i[d>>2];d:{e:{if((j|0)>=0){g=1;h=1;if((e|0)>-1){break d}f=1;g=-1;h=-1;if((j|0)>=1){break e}break d}f=-1;g=-1;h=-1;if((e|0)<1){break d}}g=(e|0)<1?-1:1;h=f}f=i[b+16>>2];k=o(f,g);e=(e<<1)-k|0;i[d+4>>2]=e;l=j<<1;j=o(f,h);f=l-j|0;i[d>>2]=f;f:{if((o(g,h)|0)>=0){e=0-e|0;i[d>>2]=e;f=0-f|0;break f}i[d>>2]=e}g=(f+k|0)/2|0;i[d+4>>2]=g;e=(e+j|0)/2|0;i[d>>2]=e}h=d;g:{h:{i:{j:{k:{l:{if(!e){if(g){break l}g=0;e=0;break g}if((g|0)<1?(e|0)<=-1:0){break g}if((e|0)<1){break k}if((g|0)<=-1){break i}f=0-i[c+4>>2]|0;i[c>>2]=0-i[c>>2];i[c+4>>2]=f;e=0-i[d>>2]|0;g=0-i[d+4>>2]|0;break h}if((g|0)<1){break i}break j}if((g|0)>0){break j}e=i[d>>2];g=i[d+4>>2];break h}f=i[c>>2];i[c>>2]=0-i[c+4>>2];i[c+4>>2]=f;e=0-i[d+4>>2]|0;g=i[d>>2];break h}f=0-i[c>>2]|0;i[c>>2]=i[c+4>>2];i[c+4>>2]=f;e=i[d+4>>2];g=0-i[d>>2]|0}i[h>>2]=e;i[h+4>>2]=g}d=i[c>>2]-e|0;i[a>>2]=d;c=i[c+4>>2]-g|0;i[a+4>>2]=c;f=a;if((d|0)<=-1){d=d+i[b+4>>2]|0}i[f>>2]=d;if((c|0)<=-1){c=c+i[b+4>>2]|0}i[a+4>>2]=c}function Re(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;h=H-32|0;H=h;d=(e&1073741823)!=(e|0)?-1:e<<2;p=lp(ko(d),0,d);d=i[a+40>>2];g=i[d>>2];a:{d=i[d+4>>2]-g|0;if((d|0)<5){break a}l=d>>2;f=d>>>2|0;d=f+ -1|0;if(l>>>0>d>>>0){q=i[a+32>>2];s=a+8|0;t=i[a+36>>2];while(1){m=o(d,e);b:{c:{g=i[(d<<2)+g>>2];if((g|0)==-1){break c}g=i[i[q+12>>2]+(g<<2)>>2];if((g|0)==-1){break c}j=-1;n=i[t>>2];k=i[q>>2];r=i[n+(i[k+(g<<2)>>2]<<2)>>2];l=g+1|0;l=(l>>>0)%3|0?l:g+ -2|0;if((l|0)!=-1){l=i[(l<<2)+k>>2]}else{l=-1}g=g+((g>>>0)%3|0?-1:2)|0;if((g|0)!=-1){j=i[(g<<2)+k>>2]}if((r|0)>=(d|0)){break c}g=i[(l<<2)+n>>2];if((g|0)>=(d|0)){break c}j=i[n+(j<<2)>>2];if((j|0)>=(d|0)){break c}if((e|0)>=1){j=o(e,j);k=o(e,g);n=o(e,r);g=0;while(1){i[(g<<2)+p>>2]=(i[(g+j<<2)+b>>2]+i[(g+k<<2)+b>>2]|0)-i[(g+n<<2)+b>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}g=i[p>>2];j=i[p+4>>2];m=m<<2;k=m+b|0;n=i[k+4>>2];i[h+16>>2]=i[k>>2];i[h+20>>2]=n;i[h+8>>2]=g;i[h+12>>2]=j;break b}g=(o(f+ -2|0,e)<<2)+b|0;j=i[g>>2];g=i[g+4>>2];m=m<<2;k=m+b|0;n=i[k+4>>2];i[h+16>>2]=i[k>>2];i[h+20>>2]=n;i[h+8>>2]=j;i[h+12>>2]=g}Ae(h+24|0,s,h+16|0,h+8|0);g=c+m|0;i[g>>2]=i[h+24>>2];i[g+4>>2]=i[h+28>>2];if((f|0)<3){break a}f=d;m=i[a+40>>2];g=i[m>>2];d=d+ -1|0;if(i[m+4>>2]-g>>2>>>0>d>>>0){continue}break}}Lo();x()}if((e|0)>=1){lp(p,0,e<<2)}d=i[p>>2];e=i[p+4>>2];f=i[b+4>>2];i[h+16>>2]=i[b>>2];i[h+20>>2]=f;i[h+8>>2]=d;i[h+12>>2]=e;Ae(h+24|0,a+8|0,h+16|0,h+8|0);i[c>>2]=i[h+24>>2];i[c+4>>2]=i[h+28>>2];ep(p);H=h+32|0;return 1}function ze(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;h=H-32|0;H=h;d=(e&1073741823)!=(e|0)?-1:e<<2;n=lp(ko(d),0,d);d=i[a+40>>2];g=i[d>>2];a:{d=i[d+4>>2]-g|0;if((d|0)<5){break a}j=d>>2;f=d>>>2|0;d=f+ -1|0;if(j>>>0>d>>>0){q=i[a+32>>2];r=a+8|0;s=i[a+36>>2];while(1){k=o(d,e);b:{c:{g=i[(d<<2)+g>>2];if((g|0)==-1|i[i[q>>2]+(g>>>3&536870908)>>2]>>>(g&31)&1){break c}g=i[i[i[q+64>>2]+12>>2]+(g<<2)>>2];if((g|0)==-1){break c}j=i[s>>2];l=i[q+28>>2];m=i[j+(i[l+(g<<2)>>2]<<2)>>2];if((m|0)>=(d|0)){break c}p=g+1|0;p=i[j+(i[l+(((p>>>0)%3|0?p:g+ -2|0)<<2)>>2]<<2)>>2];if((p|0)>=(d|0)){break c}g=i[j+(i[l+(g+((g>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((g|0)>=(d|0)){break c}if((e|0)>=1){l=o(e,g);j=o(e,p);m=o(e,m);g=0;while(1){i[(g<<2)+n>>2]=(i[(g+l<<2)+b>>2]+i[(g+j<<2)+b>>2]|0)-i[(g+m<<2)+b>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}g=i[n>>2];l=i[n+4>>2];k=k<<2;j=k+b|0;m=i[j+4>>2];i[h+16>>2]=i[j>>2];i[h+20>>2]=m;i[h+8>>2]=g;i[h+12>>2]=l;break b}g=(o(f+ -2|0,e)<<2)+b|0;l=i[g>>2];g=i[g+4>>2];k=k<<2;j=k+b|0;m=i[j+4>>2];i[h+16>>2]=i[j>>2];i[h+20>>2]=m;i[h+8>>2]=l;i[h+12>>2]=g}Ae(h+24|0,r,h+16|0,h+8|0);g=c+k|0;i[g>>2]=i[h+24>>2];i[g+4>>2]=i[h+28>>2];if((f|0)<3){break a}f=d;k=i[a+40>>2];g=i[k>>2];d=d+ -1|0;if(i[k+4>>2]-g>>2>>>0>d>>>0){continue}break}}Lo();x()}if((e|0)>=1){lp(n,0,e<<2)}d=i[n>>2];e=i[n+4>>2];f=i[b+4>>2];i[h+16>>2]=i[b>>2];i[h+20>>2]=f;i[h+8>>2]=d;i[h+12>>2]=e;Ae(h+24|0,a+8|0,h+16|0,h+8|0);i[c>>2]=i[h+24>>2];i[c+4>>2]=i[h+28>>2];ep(n);H=h+32|0;return 1}function ua(a,b,c){var d=0,e=p(0),f=0,h=0,j=0,k=0,l=p(0),n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;j=H-16|0;H=j;a:{if(!(i[a+4>>2]!=-1|c+ -1>>>0>29)){i[a+4>>2]=c;h=g[b+24|0];i[a+20>>2]=0;i[j+8>>2]=0;i[j>>2]=0;i[j+4>>2]=0;if(h){if((h|0)<=-1){break a}c=h<<2;f=ko(c);i[j>>2]=f;i[j+4>>2]=f;d=c+f|0;i[j+8>>2]=d;c=f;while(1){i[c>>2]=0;c=c+4|0;if((d|0)!=(c|0)){continue}break}i[j+4>>2]=d}c=i[a+8>>2];if(c){i[a+12>>2]=c;ep(c);i[a+16>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}i[a+8>>2]=f;i[a+16>>2]=d;i[a+12>>2]=d;c=(h&1073741823)!=(h|0)?-1:h<<2;o=ko(c);n=ko(c);k=i[b+48>>2];d=i[b>>2];c=i[b+40>>2];t=kp(n,k+i[d>>2]|0,c);kp(f,k+i[d>>2]|0,c);v=i[b+44>>2];k=i[b+48>>2];u=i[b>>2];n=i[b+40>>2];w=n;q=kp(o,k+i[u>>2]|0,n);f=i[b+80>>2];if(f>>>0>=2){y=(h|0)<1;r=1;b=0;while(1){c=i[u>>2];d=xp(r,b,n,v)+k|0;z=kp(t,c+d|0,w);if(!y){A=i[a+8>>2];c=0;while(1){s=c<<2;o=s+A|0;d=s+z|0;e=m[d>>2];if(!(m[o>>2]>e^1)){m[o>>2]=e;e=m[d>>2]}d=q+s|0;if(!(m[d>>2]>2]=e}c=c+1|0;if((h|0)!=(c|0)){continue}break}}c=r+1|0;if(c>>>0<1){b=b+1|0}r=c;if((f|0)!=(c|0)|b){continue}break}}d=0;b:{c:{if((h|0)<=0){e=m[a+20>>2];break c}d=1;k=i[a+8>>2];e=m[k>>2];if(e!=e){break b}c=0;while(1){if(((Ip(e),Ep(2))&2147483647)==2139095040){break b}f=(c<<2)+q|0;b=i[f>>2];l=m[f>>2];if((b&2147483647)==2139095040|l!=l){break b}l=p(l-e);e=m[a+20>>2];if(!(l>e^1)){m[a+20>>2]=l;e=l}c=c+1|0;d=(c|0)<(h|0);if((c|0)==(h|0)){break c}e=m[k+(c<<2)>>2];if(e==e){continue}break}break b}if(e!=p(0)){break b}i[a+20>>2]=1065353216}ep(t);ep(q);d=d^1}H=j+16|0;return d&1}Ko();x()}function Of(a,b,c,d,e){var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{b:{c:{d:{e:{n=a+4|0;f:{if((n|0)==(b|0)){break f}f=j[b+27|0];h=f<<24>>24<0;k=j[e+11|0];p=k<<24>>24;g=(p|0)<0;f=h?i[b+20>>2]:f;k=g?i[e+4>>2]:k;l=f>>>0>>0;m=l?f:k;if(m){g=g?i[e>>2]:e;o=b+16|0;h=h?i[o>>2]:o;o=Mm(g,h,m);if(!o){if(k>>>0>>0){break f}break e}if((o|0)>-1){break e}break f}if(k>>>0>=f>>>0){break d}}h=i[b>>2];g:{h:{if(i[a>>2]==(b|0)){d=b;break h}i:{if(h){f=h;while(1){d=f;f=i[f+4>>2];if(f){continue}break}break i}d=b+8|0;if(i[i[b+8>>2]>>2]==(b|0)){while(1){f=i[d>>2];d=f+8|0;if((f|0)==i[i[f+8>>2]>>2]){continue}break}}d=i[d>>2]}g=j[e+11|0];f=g<<24>>24<0;l=j[d+27|0];k=l<<24>>24<0;j:{g=f?i[e+4>>2]:g;l=k?i[d+20>>2]:l;m=g>>>0>>0?g:l;if(m){n=d+16|0;f=Mm(k?i[n>>2]:n,f?i[e>>2]:e,m);if(f){break j}}if(l>>>0>>0){break h}break g}if((f|0)>-1){break g}}if(!h){i[c>>2]=b;return b}i[c>>2]=d;return d+4|0}return Pf(a,c,e)}f=Mm(h,g,m);if(f){break c}}if(l){break b}break a}if((f|0)>-1){break a}}h=i[b+4>>2];k:{if(h){f=h;while(1){d=f;f=i[f>>2];if(f){continue}break}break k}d=i[b+8>>2];if(i[d>>2]==(b|0)){break k}f=b+8|0;while(1){g=i[f>>2];f=g+8|0;d=i[g+8>>2];if((g|0)!=i[d>>2]){continue}break}}l:{m:{if((d|0)==(n|0)){break m}g=j[d+27|0];f=g<<24>>24<0;n:{g=f?i[d+20>>2]:g;l=g>>>0>>0?g:k;if(l){m=d+16|0;f=Mm((p|0)<0?i[e>>2]:e,f?i[m>>2]:m,l);if(f){break n}}if(k>>>0>>0){break m}break l}if((f|0)>-1){break l}}if(!h){i[c>>2]=b;return b+4|0}i[c>>2]=d;return d}return Pf(a,c,e)}i[c>>2]=b;i[d>>2]=b;return d}function he(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;i[a+8>>2]=e;i[a- -64>>2]=f;g=a+32|0;j=i[g>>2];f=i[a+36>>2]-j>>2;a:{if(f>>>0>>0){Cd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=j+(e<<2)}b:{if(!d){break b}j=1;f=i[b>>2];c:{if((d|0)<=1){g=f;break c}g=f;while(1){h=i[(j<<2)+b>>2];k=(h|0)<(g|0);g=k?h:g;f=k?f:(h|0)>(f|0)?h:f;j=j+1|0;if((j|0)!=(d|0)){continue}break}}i[a+16>>2]=f;i[a+12>>2]=g;d=(f>>31)-((g>>31)+(f>>>0>>0)|0)|0;f=f-g|0;if(!d&f>>>0>2147483646|d>>>0>0){break b}d=f+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}d=i[a+56>>2];g=i[d>>2];d:{d=i[d+4>>2]-g|0;if((d|0)<1){break d}h=(d>>>2|0)+ -1|0;if(d>>2>>>0>h>>>0){p=a+60|0;j=a+68|0;while(1){ie(p,i[(h<<2)+g>>2],b,h);g=i[a+8>>2];if((g|0)>=1){d=o(e,h)<<2;q=d+c|0;r=b+d|0;d=j;k=0;while(1){f=0;e:{if((g|0)<=0){g=i[a+32>>2];break e}while(1){l=f<<2;n=i[l+d>>2];m=i[a+16>>2];f:{if((n|0)>(m|0)){g=i[a+32>>2];i[l+g>>2]=m;break f}g=i[a+32>>2];l=l+g|0;m=i[a+12>>2];if((n|0)<(m|0)){i[l>>2]=m;break f}i[l>>2]=n}f=f+1|0;if((f|0)>2]){continue}break}}f=k<<2;d=f+q|0;f=i[f+r>>2]-i[f+g>>2]|0;i[d>>2]=f;g:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break g}f=f-i[a+20>>2]|0}i[d>>2]=f}d=g;k=k+1|0;g=i[a+8>>2];if((k|0)<(g|0)){continue}break}}h=h+ -1|0;if((h|0)<0){break d}d=i[a+56>>2];g=i[d>>2];if(i[d+4>>2]-g>>2>>>0>h>>>0){continue}break}}Lo();x()}return 1}function Pd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;i[a+8>>2]=e;i[a- -64>>2]=f;g=a+32|0;j=i[g>>2];f=i[a+36>>2]-j>>2;a:{if(f>>>0>>0){Cd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=j+(e<<2)}b:{if(!d){break b}j=1;f=i[b>>2];c:{if((d|0)<=1){g=f;break c}g=f;while(1){h=i[(j<<2)+b>>2];k=(h|0)<(g|0);g=k?h:g;f=k?f:(h|0)>(f|0)?h:f;j=j+1|0;if((j|0)!=(d|0)){continue}break}}i[a+16>>2]=f;i[a+12>>2]=g;d=(f>>31)-((g>>31)+(f>>>0>>0)|0)|0;f=f-g|0;if(!d&f>>>0>2147483646|d>>>0>0){break b}d=f+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}d=i[a+56>>2];g=i[d>>2];d:{d=i[d+4>>2]-g|0;if((d|0)<1){break d}h=(d>>>2|0)+ -1|0;if(d>>2>>>0>h>>>0){p=a+60|0;j=a+68|0;while(1){Qd(p,i[(h<<2)+g>>2],b,h);g=i[a+8>>2];if((g|0)>=1){d=o(e,h)<<2;q=d+c|0;r=b+d|0;d=j;k=0;while(1){f=0;e:{if((g|0)<=0){g=i[a+32>>2];break e}while(1){l=f<<2;n=i[l+d>>2];m=i[a+16>>2];f:{if((n|0)>(m|0)){g=i[a+32>>2];i[l+g>>2]=m;break f}g=i[a+32>>2];l=l+g|0;m=i[a+12>>2];if((n|0)<(m|0)){i[l>>2]=m;break f}i[l>>2]=n}f=f+1|0;if((f|0)>2]){continue}break}}f=k<<2;d=f+q|0;f=i[f+r>>2]-i[f+g>>2]|0;i[d>>2]=f;g:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break g}f=f-i[a+20>>2]|0}i[d>>2]=f}d=g;k=k+1|0;g=i[a+8>>2];if((k|0)<(g|0)){continue}break}}h=h+ -1|0;if((h|0)<0){break d}d=i[a+56>>2];g=i[d>>2];if(i[d+4>>2]-g>>2>>>0>h>>>0){continue}break}}Lo();x()}return 1}function Hi(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11424;b=i[a+336>>2];if(b){c=i[a+340>>2];d=b;a:{if((b|0)==(c|0)){break a}while(1){d=c+ -12|0;e=i[d>>2];if(e){i[c+ -8>>2]=e;ep(e)}c=d;if((c|0)!=(b|0)){continue}break}d=i[a+336>>2]}i[a+340>>2]=b;ep(d)}b=i[a+304>>2];if(b){i[a+308>>2]=b;ep(b)}b=i[a+292>>2];if(b){i[a+296>>2]=b;ep(b)}b=a+280|0;c=i[b>>2];i[b>>2]=0;if(c){d=c+ -4|0;b=i[d>>2];if(b){b=c+(b<<5)|0;while(1){b=of(b+ -32|0);if((c|0)!=(b|0)){continue}break}}ep(d)}b=i[a+268>>2];if(b){i[a+272>>2]=b;ep(b)}c=a+244|0;b=i[c>>2];i[c>>2]=0;if(b){ep(b)}b=i[a+232>>2];if(b){i[a+236>>2]=b;ep(b)}of(a+200|0);b=i[a+184>>2];if(b){i[a+188>>2]=b;ep(b)}c=i[a+172>>2];if(c){b=i[a+176>>2];d=c;b:{if((c|0)==(b|0)){break b}while(1){d=i[b+ -20>>2];if(d){i[b+ -16>>2]=d;ep(d)}d=b+ -136|0;e=i[b+ -32>>2];if(e){i[b+ -28>>2]=e;ep(e)}oi(b+ -132|0);b=d;if((c|0)!=(b|0)){continue}break}d=i[a+172>>2]}i[a+176>>2]=c;ep(d)}b=i[a+152>>2];if(b){i[a+156>>2]=b;ep(b)}b=i[a+140>>2];if(b){ep(b)}b=i[a+128>>2];if(b){while(1){c=i[b>>2];ep(b);b=c;if(b){continue}break}}b=i[a+120>>2];i[a+120>>2]=0;if(b){ep(b)}b=i[a+108>>2];if(b){i[a+112>>2]=b;ep(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;ep(b)}b=i[a+84>>2];if(b){ep(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;ep(b)}b=i[a+52>>2];if(b){i[a+56>>2]=b;ep(b)}b=i[a+40>>2];if(b){i[a+44>>2]=b;ep(b)}b=i[a+28>>2];if(b){ep(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;ep(b)}b=i[a+12>>2];i[a+12>>2]=0;if(b){ci(b)}return a|0}function $a(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=0,o=0,q=0,r=0,s=p(0),t=0,u=0;n=i[c+12>>2];o=i[c+8>>2];q=i[c+4>>2];r=i[c>>2];j=n^(o^(q^(r^318)+239)+239)+239;t=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];l=Ap(e);h=j&e+ -1;c:{if(l>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}u=e+ -1|0;l=l>>>0>1;while(1){f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!l){f=f&u;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(!(i[c+8>>2]!=(r|0)|i[c+12>>2]!=(q|0)|(i[c+16>>2]!=(o|0)|i[c+20>>2]!=(n|0)))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ko(28);f=i[d+12>>2];i[c+16>>2]=i[d+8>>2];i[c+20>>2]=f;f=i[d+4>>2];i[c+8>>2]=i[d>>2];i[c+12>>2]=f;d=i[d+16>>2];i[c>>2]=0;i[c+4>>2]=j;i[c+24>>2]=d;k=m[b+16>>2];s=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(s/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}gb(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[t+4|0]=b;i[a>>2]=c}function xb(a,b,c,d){var e=0,f=0,h=0,j=0,l=0,n=p(0),o=0,q=0,r=0,s=0,t=p(0),u=0,w=0;q=k[c+6>>1];r=k[c+4>>1];s=k[c+2>>1];l=k[c>>1];j=q^(r^(s^(l^318)+239)+239)+239;u=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];o=Ap(e);h=j&e+ -1;c:{if(o>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}w=e+ -1|0;o=o>>>0>1;while(1){f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!o){f=f&w;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(!(k[c+8>>1]!=(l|0)|k[c+10>>1]!=(s|0)|(k[c+12>>1]!=(r|0)|k[c+14>>1]!=(q|0)))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ko(20);l=i[d+4>>2];i[c+8>>2]=i[d>>2];i[c+12>>2]=l;d=i[d+8>>2];i[c+4>>2]=j;i[c+16>>2]=d;i[c>>2]=0;n=m[b+16>>2];t=p(i[b+12>>2]+1>>>0);e:{if(p(n*p(e>>>0))>>0<3|e<<1;d=b;n=p(v(p(t/n)));f:{if(n=p(0)){h=~~n>>>0;break f}h=0}Eb(d,l>>>0>>0?h:l);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[u+4|0]=b;i[a>>2]=c}function Uh(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;d=H-112|0;H=d;e=ko(120);m=i[b+8>>2];i[e+12>>2]=0;i[e+16>>2]=0;i[e>>2]=12120;i[e+4>>2]=0;i[e+20>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+56>>2]=0;i[e+60>>2]=0;i[e+8>>2]=12332;j=e- -64|0;i[j>>2]=0;i[j+4>>2]=0;i[e+72>>2]=0;i[e+76>>2]=0;i[e+80>>2]=0;i[e+84>>2]=0;i[e+88>>2]=0;i[e+116>>2]=0;i[e+112>>2]=c;i[e+108>>2]=m;i[e+104>>2]=0;i[e+96>>2]=0;i[e+100>>2]=0;j=i[b+12>>2];i[d+48>>2]=0;i[d+52>>2]=0;i[d+40>>2]=0;i[d+44>>2]=0;h=d+32|0;i[h>>2]=0;i[h+4>>2]=0;n=d+24|0;k=n;i[k>>2]=0;i[k+4>>2]=0;k=d+16|0;f=k;i[f>>2]=0;i[f+4>>2]=0;f=d- -64|0;i[f>>2]=0;i[f+4>>2]=0;i[d+72>>2]=0;i[d+76>>2]=0;f=d+80|0;i[f>>2]=0;i[f+4>>2]=0;i[d+88>>2]=0;i[d+104>>2]=0;i[d+56>>2]=0;i[d+60>>2]=0;i[d+8>>2]=12332;i[d+96>>2]=0;i[d+100>>2]=0;i[d+12>>2]=j;l=i[j>>2];o=i[j+4>>2];g[d+111|0]=0;Vh(h,(o-l>>2>>>0)/3|0,d+111|0);h=i[d+12>>2];l=i[h+28>>2];h=i[h+24>>2];g[d+111|0]=0;Vh(d+44|0,l-h>>2,d+111|0);i[d+28>>2]=e;i[n>>2]=m;i[d+20>>2]=c;i[k>>2]=j;i[e+116>>2]=b+72;Zh(e,d+8|0);i[a>>2]=e;i[d+8>>2]=12332;a=i[d+96>>2];if(a){i[d+100>>2]=a;ep(a)}a=i[f>>2];if(a){i[d+84>>2]=a;ep(a)}a=i[d+68>>2];if(a){i[d+72>>2]=a;ep(a)}a=i[d+56>>2];if(a){i[d+60>>2]=a;ep(a)}i[d+8>>2]=12568;a=i[d+44>>2];if(a){ep(a)}a=i[d+32>>2];if(a){ep(a)}H=d+112|0}function Wc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0;e=H-16|0;H=e;d=i[b+28>>2];f=i[i[b+4>>2]+(c<<2)>>2];h=i[i[i[d+4>>2]+8>>2]+(f<<2)>>2];b=i[h+28>>2];a:{if(b+ -1>>>0>=6){b:{if((b|0)!=9){break b}k=i[d+48>>2];b=ko(32);i[e>>2]=b;i[e+4>>2]=17;i[e+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[2108];c=j[2104]|j[2105]<<8|(j[2106]<<16|j[2107]<<24);d=j[2100]|j[2101]<<8|(j[2102]<<16|j[2103]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[2096]|j[2097]<<8|(j[2098]<<16|j[2099]<<24);d=j[2092]|j[2093]<<8|(j[2094]<<16|j[2095]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;c:{d:{d=k+16|0;b=i[d>>2];if(!b){break d}c=d;while(1){l=i[b+16>>2]<(f|0);c=l?c:b;b=i[(l<<2)+b>>2];if(b){continue}break}if((c|0)==(d|0)|(f|0)>2]){break d}b=c+20|0;if(!Tb(b,e)){break d}b=bk(b,e,-1);break c}b=bk(k,e,-1)}if(g[e+11|0]<=-1){ep(i[e>>2])}if((b|0)<1){break b}if(i[h+56>>2]==1){b=ko(48);i[b>>2]=0;i[b+4>>2]=0;c=b+40|0;i[c>>2]=0;i[c+4>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=0;i[b+28>>2]=0;i[b+16>>2]=0;i[b+20>>2]=0;i[b+8>>2]=0;i[b+12>>2]=0;fd(b);i[b+44>>2]=-1;i[c>>2]=1032;i[b>>2]=6056;break a}b=ko(64);af(b);break a}b=ko(36);Cc(b);break a}b=ko(40);fd(b)}i[a>>2]=b;H=e+16|0}function _a(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=0,o=0,q=0,r=p(0),s=0,t=0;n=i[c+8>>2];o=i[c+4>>2];q=i[c>>2];j=n^(o^(q^318)+239)+239;s=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];l=Ap(e);h=j&e+ -1;c:{if(l>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}t=e+ -1|0;l=l>>>0>1;while(1){f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!l){f=f&t;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(!(i[c+8>>2]!=(q|0)|i[c+12>>2]!=(o|0)|i[c+16>>2]!=(n|0))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ko(24);i[c+16>>2]=i[d+8>>2];f=i[d+4>>2];i[c+8>>2]=i[d>>2];i[c+12>>2]=f;d=i[d+12>>2];i[c>>2]=0;i[c+4>>2]=j;i[c+20>>2]=d;k=m[b+16>>2];r=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(r/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}eb(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[s+4|0]=b;i[a>>2]=c}function Hg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;kh(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}gh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function Gg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;jh(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}gh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function Fg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;ih(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}gh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function Eg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;hh(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}gh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function Dg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;fh(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}gh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function Cg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;dh(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=2097152;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=2097152;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<19)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}eh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function Bg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;bh(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=1048576;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=1048576;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<18)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}ch(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function zg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Zg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=131072;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=131072;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<15)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}_g(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function Ag(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;$g(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=262144;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=262144;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<16)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}ah(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function yg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Xg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=32768;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=32768;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<13)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}Yg(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function xg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Wg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}pg(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function wg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Vg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}pg(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function vg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Ug(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}pg(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function ug(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;og(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}pg(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function tg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Tg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}pg(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function sg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Sg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}pg(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function rg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Rg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}pg(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function qg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=H+ -64|0;H=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ko(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;lp(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Qg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Wj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}pg(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;ep(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;ep(a)}H=e- -64|0;return 1}Ko();x()}function gf(a,b){var c=0,d=0,e=0,f=0,h=0,k=0;d=H-16|0;H=d;a:{if(($b(i[b+48>>2])|0)>9){break a}if((K[i[i[b>>2]+8>>2]](b)|0)!=1){break a}a=i[i[i[b+4>>2]+8>>2]+(a<<2)>>2];e=i[a+56>>2];if((e|0)==3){e=5;if(($b(i[b+48>>2])|0)<4){break a}e=i[a+56>>2]}a=$b(i[b+48>>2]);if((e|0)==1){b:{if((a|0)>3){break b}f=zm(i[b+4>>2],0);a=Am(i[b+4>>2]);if(!a){break b}e=6;if(Uj(i[a+28>>2])){break a}h=i[b+48>>2];a=ko(32);i[d>>2]=a;i[d+4>>2]=17;i[d+8>>2]=-2147483616;g[a+17|0]=0;g[a+16|0]=j[9948];b=j[9944]|j[9945]<<8|(j[9946]<<16|j[9947]<<24);c=j[9940]|j[9941]<<8|(j[9942]<<16|j[9943]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[9936]|j[9937]<<8|(j[9938]<<16|j[9939]<<24);c=j[9932]|j[9933]<<8|(j[9934]<<16|j[9935]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;c:{d:{c=h+16|0;b=i[c>>2];if(!b){break d}a=c;while(1){k=i[b+16>>2]<(f|0);a=k?a:b;b=i[(k<<2)+b>>2];if(b){continue}break}if((a|0)==(c|0)|(f|0)>2]){break d}a=a+20|0;if(!Tb(a,d)){break d}a=bk(a,d,-1);break c}a=bk(h,d,-1)}if(g[d+11|0]<=-1){ep(i[d>>2])}if((a|0)>0){break a}}e=0;break a}e=0;if((a|0)>7){break a}e=1;if(($b(i[b+48>>2])|0)>1){break a}H=d+16|0;return l[i[b+4>>2]+80>>2]<40?1:4}H=d+16|0;return e}function lb(a,b,c,d){var e=0,f=0,h=0,k=0,l=p(0),n=0,o=0,q=0,r=0,s=0,t=p(0),u=0,w=0;o=j[c+3|0];q=j[c+2|0];r=j[c+1|0];s=j[c|0];k=o^(q^(r^(s^318)+239)+239)+239;u=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];n=Ap(e);h=k&e+ -1;c:{if(n>>>0<=1){break c}c=k;h=c;if(c>>>0>>0){break c}h=(k>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}w=e+ -1|0;n=n>>>0>1;while(1){f=i[c+4>>2];if((k|0)!=(f|0)){d:{if(!n){f=f&w;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(!(j[c+8|0]!=(s|0)|j[c+9|0]!=(r|0)|(j[c+10|0]!=(q|0)|j[c+11|0]!=(o|0)))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ko(16);i[c+8>>2]=i[d>>2];d=i[d+4>>2];i[c+4>>2]=k;i[c+12>>2]=d;i[c>>2]=0;l=m[b+16>>2];t=p(i[b+12>>2]+1>>>0);e:{if(p(l*p(e>>>0))>>0<3|e<<1;d=b;l=p(v(p(t/l)));f:{if(l=p(0)){h=~~l>>>0;break f}h=0}sb(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=k&e+ -1;break e}if(k>>>0>>0){h=k;break e}h=(k>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[u+4|0]=b;i[a>>2]=c}function wb(a,b,c,d){var e=0,f=0,j=0,l=0,n=p(0),o=0,q=0,r=0,s=0,t=p(0),u=0,w=0;r=k[c+4>>1];s=k[c+2>>1];o=k[c>>1];l=r^(s^(o^318)+239)+239;u=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];q=Ap(e);j=l&e+262143;c:{if(q>>>0<=1){break c}c=l;j=c;if(c>>>0>>0){break c}j=(l>>>0)%(e>>>0)|0}c=j;j=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}w=e+ -1|0;q=q>>>0>1;while(1){f=i[c+4>>2];if((l|0)!=(f|0)){d:{if(!q){f=f&w;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(j|0)){break b}}if(!(k[c+8>>1]!=(o|0)|k[c+10>>1]!=(s|0)|k[c+12>>1]!=(r|0))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ko(20);h[c+12>>1]=k[d+4>>1];i[c+8>>2]=i[d>>2];d=i[d+8>>2];i[c>>2]=0;i[c+4>>2]=l;i[c+16>>2]=d;n=m[b+16>>2];t=p(i[b+12>>2]+1>>>0);e:{if(p(n*p(e>>>0))>>0<3|e<<1;d=b;n=p(v(p(t/n)));f:{if(n=p(0)){j=~~n>>>0;break f}j=0}Cb(d,o>>>0>>0?j:o);e=i[b+4>>2];if(!(e&e+ -1)){j=l&e+ -1;break e}if(l>>>0>>0){j=l;break e}j=(l>>>0)%(e>>>0)|0}d=i[b>>2]+(j<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[u+4|0]=b;i[a>>2]=c}function kb(a,b,c,d){var e=0,f=0,l=0,n=0,o=p(0),q=0,r=0,s=0,t=0,u=p(0),w=0,x=0;r=j[c+2|0];s=j[c+1|0];t=j[c|0];n=r^(s^(t^318)+239)+239;w=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];q=Ap(e);l=n&e+ -1;c:{if(q>>>0<=1){break c}c=n;l=c;if(c>>>0>>0){break c}l=(n>>>0)%(e>>>0)|0}c=l;l=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}x=e+ -1|0;q=q>>>0>1;while(1){f=i[c+4>>2];if((n|0)!=(f|0)){d:{if(!q){f=f&x;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(l|0)){break b}}if(!(j[c+8|0]!=(t|0)|j[c+9|0]!=(s|0)|j[c+10|0]!=(r|0))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ko(16);g[c+10|0]=j[d+2|0];h[c+8>>1]=k[d>>1];d=i[d+4>>2];i[c>>2]=0;i[c+4>>2]=n;i[c+12>>2]=d;o=m[b+16>>2];u=p(i[b+12>>2]+1>>>0);e:{if(p(o*p(e>>>0))>>0<3|e<<1;d=b;o=p(v(p(u/o)));f:{if(o=p(0)){l=~~o>>>0;break f}l=0}qb(d,e>>>0>>0?l:e);e=i[b+4>>2];if(!(e&e+ -1)){l=n&e+ -1;break e}if(n>>>0>>0){l=n;break e}l=(n>>>0)%(e>>>0)|0}d=i[b>>2]+(l<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[w+4|0]=b;i[a>>2]=c}function zf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=H-32|0;H=e;f=a+16|0;d=i[f>>2];a:{b:{if(!d){break b}h=i[b>>2];c=f;while(1){g=i[d+16>>2]<(h|0);c=g?c:d;d=i[(g<<2)+d>>2];if(d){continue}break}if((c|0)==(f|0)){break b}if((h|0)>=i[c+16>>2]){break a}}k=Zj(e+16|0);b=i[b>>2];j=e+8|0;i[j>>2]=0;i[j+4>>2]=0;i[e>>2]=b;i[e+4>>2]=j;c=i[k>>2];h=k+4|0;if((c|0)!=(h|0)){g=e|4;while(1){b=c;d=c+16|0;Nf(g,j,d,d);d=i[c+4>>2];c:{if(!d){c=i[b+8>>2];if((b|0)==i[c>>2]){break c}d=b+8|0;while(1){b=i[d>>2];d=b+8|0;c=i[b+8>>2];if((b|0)!=i[c>>2]){continue}break}break c}while(1){c=d;d=i[c>>2];if(d){continue}break}}if((c|0)!=(h|0)){continue}break}}d=i[a+16>>2];d:{if(d){f=a+16|0;g=i[e>>2];while(1){b=i[d+16>>2];e:{if((g|0)<(b|0)){c=i[d>>2];if(c){break e}f=d;break d}if((b|0)>=(g|0)){break d}f=d+4|0;c=i[d+4>>2];if(!c){break d}d=f}f=d;d=c;continue}}d=f}c=i[f>>2];if(!c){c=ko(32);i[c+16>>2]=i[e>>2];i[c+20>>2]=i[e+4>>2];g=i[e+8>>2];i[c+24>>2]=g;b=i[e+12>>2];i[c+28>>2]=b;h=c+24|0;f:{if(!b){i[c+20>>2]=h;break f}i[g+8>>2]=h;i[e+8>>2]=0;i[e+12>>2]=0;i[e+4>>2]=j}i[c+8>>2]=d;i[c>>2]=0;i[c+4>>2]=0;i[f>>2]=c;d=i[i[a+12>>2]>>2];b=c;g:{if(!d){break g}i[a+12>>2]=d;b=i[f>>2]}Lf(i[a+16>>2],b);a=a+20|0;i[a>>2]=i[a>>2]+1}ld(e|4,i[e+8>>2]);ld(k,i[k+4>>2])}H=e+32|0;return c+20|0}function nj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0;f=H-16|0;H=f;K[i[i[b>>2]+64>>2]](a,b);if(!i[a>>2]){if(g[a+15|0]<=-1){ep(i[a+4>>2])}h=i[b+48>>2];c=ko(32);i[f>>2]=c;i[f+4>>2]=29;i[f+8>>2]=-2147483616;g[c+29|0]=0;d=j[13157]|j[13158]<<8|(j[13159]<<16|j[13160]<<24);e=j[13153]|j[13154]<<8|(j[13155]<<16|j[13156]<<24);g[c+21|0]=e;g[c+22|0]=e>>>8;g[c+23|0]=e>>>16;g[c+24|0]=e>>>24;g[c+25|0]=d;g[c+26|0]=d>>>8;g[c+27|0]=d>>>16;g[c+28|0]=d>>>24;d=j[13152]|j[13153]<<8|(j[13154]<<16|j[13155]<<24);e=j[13148]|j[13149]<<8|(j[13150]<<16|j[13151]<<24);g[c+16|0]=e;g[c+17|0]=e>>>8;g[c+18|0]=e>>>16;g[c+19|0]=e>>>24;g[c+20|0]=d;g[c+21|0]=d>>>8;g[c+22|0]=d>>>16;g[c+23|0]=d>>>24;d=j[13144]|j[13145]<<8|(j[13146]<<16|j[13147]<<24);e=j[13140]|j[13141]<<8|(j[13142]<<16|j[13143]<<24);g[c+8|0]=e;g[c+9|0]=e>>>8;g[c+10|0]=e>>>16;g[c+11|0]=e>>>24;g[c+12|0]=d;g[c+13|0]=d>>>8;g[c+14|0]=d>>>16;g[c+15|0]=d>>>24;d=j[13136]|j[13137]<<8|(j[13138]<<16|j[13139]<<24);e=j[13132]|j[13133]<<8|(j[13134]<<16|j[13135]<<24);g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;c=ek(h,f,0);if(g[f+11|0]<=-1){ep(i[f>>2])}if(c){K[i[i[b>>2]+68>>2]](b)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}H=f+16|0}function Ka(a,b){var c=0;c=-1;a:{b:{c:{d:{switch(i[b+28>>2]+ -1|0){case 8:e:{switch(g[b+24|0]+ -1|0){case 0:c=La(a,b);break c;case 1:c=Ma(a,b);break c;case 2:c=Na(a,b);break c;case 3:break e;default:break b}}c=Oa(a,b);break c;case 0:f:{switch(g[b+24|0]+ -1|0){case 0:c=Pa(a,b);break c;case 1:c=Qa(a,b);break c;case 2:c=Ra(a,b);break c;case 3:break f;default:break b}}c=Sa(a,b);break c;case 1:case 10:g:{switch(g[b+24|0]+ -1|0){case 0:c=Pa(a,b);break c;case 1:c=Qa(a,b);break c;case 2:c=Ra(a,b);break c;case 3:break g;default:break b}}c=Sa(a,b);break c;case 3:h:{switch(g[b+24|0]+ -1|0){case 0:c=Ta(a,b);break c;case 1:c=Ua(a,b);break c;case 2:c=Va(a,b);break c;case 3:break h;default:break b}}c=Wa(a,b);break c;case 2:i:{switch(g[b+24|0]+ -1|0){case 0:c=Ta(a,b);break c;case 1:c=Ua(a,b);break c;case 2:c=Va(a,b);break c;case 3:break i;default:break b}}c=Wa(a,b);break c;case 5:j:{switch(g[b+24|0]+ -1|0){case 0:c=La(a,b);break c;case 1:c=Ma(a,b);break c;case 2:c=Na(a,b);break c;case 3:break j;default:break b}}c=Oa(a,b);break c;case 4:break d;default:break a}}k:{switch(g[b+24|0]+ -1|0){case 0:c=La(a,b);break c;case 1:c=Ma(a,b);break c;case 2:c=Na(a,b);break c;case 3:break k;default:break b}}c=Oa(a,b)}if(c){break a}}c=-1}return c}function Za(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=0,o=0,q=p(0),r=0,s=0;n=i[c+4>>2];o=i[c>>2];j=n^(o^318)+239;r=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];l=Ap(e);h=j&e+ -1;c:{if(l>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}s=e+ -1|0;l=l>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!l){f=f&s;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(i[c+8>>2]!=(o|0)|i[c+12>>2]!=(n|0)){continue}break}b=0;break a}c=ko(20);f=i[d+4>>2];i[c+8>>2]=i[d>>2];i[c+12>>2]=f;d=i[d+8>>2];i[c+4>>2]=j;i[c+16>>2]=d;i[c>>2]=0;k=m[b+16>>2];q=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(q/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}cb(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[r+4|0]=b;i[a>>2]=c}function pi(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0;l=H-16|0;H=l;a:{b:{f=i[a+124>>2];c:{if(!f){break c}e=i[a+120>>2];m=Ap(f);h=f+ -1&d;d:{if(m>>>0<=1){break d}h=d;if(f>>>0>d>>>0){break d}h=(d>>>0)%(f>>>0)|0}e=i[e+(h<<2)>>2];if(!e){break c}k=i[e>>2];if(!k){break c}n=f+ -1|0;m=m>>>0>1;while(1){e:{e=i[k+4>>2];f:{if((e|0)!=(d|0)){g:{if(!m){e=e&n;break g}if(e>>>0>>0){break g}e=(e>>>0)%(f>>>0)|0}if((e|0)==(h|0)){break f}break c}if(i[k+8>>2]==(d|0)){break e}}k=i[k>>2];if(k){continue}break c}break}k=i[k+12>>2];if((k|0)==-1){break c}m=c&1;c=i[a+112>>2];e=i[a+116>>2];if((c|0)!=(e|0)){g[c+8|0]=m;i[c+4>>2]=b;i[c>>2]=k;b=j[l+13|0]|j[l+14|0]<<8;g[c+9|0]=b;g[c+10|0]=b>>>8;g[c+11|0]=j[l+15|0];i[a+112>>2]=c+12;break c}d=i[a+108>>2];h=c-d|0;n=(h|0)/12|0;c=n+1|0;if(c>>>0>=357913942){break b}e=(e-d|0)/12|0;f=e<<1;e=e>>>0<178956970?f>>>0>>0?c:f:357913941;f=0;h:{if(!e){break h}if(e>>>0>=357913942){break a}f=ko(o(e,12))}c=f+o(n,12)|0;g[c+8|0]=m;i[c+4>>2]=b;i[c>>2]=k;b=j[l+13|0]|j[l+14|0]<<8;g[c+9|0]=b;g[c+10|0]=b>>>8;g[c+11|0]=j[l+15|0];b=c+o((h|0)/-12|0,12)|0;f=f+o(e,12)|0;c=c+12|0;if((h|0)>=1){kp(b,d,h)}i[a+116>>2]=f;i[a+112>>2]=c;i[a+108>>2]=b;if(!d){break c}ep(d)}H=l+16|0;return}Ko();x()}Ba(11708);x()}function vb(a,b,c,d){var e=0,f=0,h=0,j=0,l=p(0),n=0,o=0,q=0,r=p(0),s=0,t=0;q=k[c+2>>1];n=k[c>>1];j=q^(n^318)+239;s=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];o=Ap(e);h=j&e+131071;c:{if(o>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}t=e+ -1|0;o=o>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!o){f=f&t;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(k[c+8>>1]!=(n|0)|k[c+10>>1]!=(q|0)){continue}break}b=0;break a}c=ko(16);i[c+8>>2]=i[d>>2];d=i[d+4>>2];i[c+4>>2]=j;i[c+12>>2]=d;i[c>>2]=0;l=m[b+16>>2];r=p(i[b+12>>2]+1>>>0);e:{if(p(l*p(e>>>0))>>0<3|e<<1;d=b;l=p(v(p(r/l)));f:{if(l=p(0)){h=~~l>>>0;break f}h=0}Ab(d,n>>>0>>0?h:n);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[s+4|0]=b;i[a>>2]=c}function jb(a,b,c,d){var e=0,f=0,l=0,n=0,o=p(0),q=0,r=0,s=0,t=p(0),u=0,w=0;r=j[c+1|0];s=j[c|0];n=r^(s^318)+239;u=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];q=Ap(e);l=n&e+1023;c:{if(q>>>0<=1){break c}c=n;l=c;if(c>>>0>>0){break c}l=(n>>>0)%(e>>>0)|0}c=l;l=c;c=i[(c<<2)+f>>2];if(!c){break b}w=e+ -1|0;q=q>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((n|0)!=(f|0)){d:{if(!q){f=f&w;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(l|0)){break b}}if(j[c+8|0]!=(s|0)|j[c+9|0]!=(r|0)){continue}break}b=0;break a}c=ko(16);h[c+8>>1]=k[d>>1];d=i[d+4>>2];i[c+4>>2]=n;i[c+12>>2]=d;i[c>>2]=0;o=m[b+16>>2];t=p(i[b+12>>2]+1>>>0);e:{if(p(o*p(e>>>0))>>0<3|e<<1;d=b;o=p(v(p(t/o)));f:{if(o=p(0)){l=~~o>>>0;break f}l=0}ob(d,e>>>0>>0?l:e);e=i[b+4>>2];if(!(e&e+ -1)){l=n&e+ -1;break e}if(n>>>0>>0){l=n;break e}l=(n>>>0)%(e>>>0)|0}d=i[b>>2]+(l<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[u+4|0]=b;i[a>>2]=c}function Lm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;a:{if(b){if(b>>>0<1073741824){c=ko(b<<2);e=i[a>>2];i[a>>2]=c;if(e){ep(e)}i[a+4>>2]=b;e=b>>>0>1?b:1;while(1){i[i[a>>2]+(d<<2)>>2]=0;d=d+1|0;if((e|0)!=(d|0)){continue}break}f=i[a+8>>2];if(!f){break a}e=a+8|0;g=i[f+4>>2];c=Ap(b);b:{if(c>>>0<=1){g=b+ -1&g;break b}if(g>>>0>>0){break b}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=e;e=i[f>>2];if(!e){break a}s=b+ -1|0;t=c>>>0>1;while(1){d=i[e+4>>2];c:{if(!t){d=d&s;break c}if(d>>>0>>0){break c}d=(d>>>0)%(b>>>0)|0}d:{if((d|0)==(g|0)){f=e;break d}k=d<<2;c=k+i[a>>2]|0;if(i[c>>2]){c=e;d=i[c>>2];e:{if(!d){break e}c=i[a+24>>2];l=i[c+8>>2];m=i[c+12>>2]-l|0;c=m>>>2|0;u=c>>>0>1?c:1;n=i[e+8>>2];o=e;while(1){c=d;d=0;f:{if((m|0)<=0){break f}p=i[c+8>>2];while(1){h=n;q=p;r=i[(d<<2)+l>>2];if(!j[r+84|0]){h=i[r+68>>2];q=i[h+(p<<2)>>2];h=i[h+(n<<2)>>2]}if((h|0)==(q|0)){d=d+1|0;if((u|0)==(d|0)){break f}continue}break}c=o;break e}o=c;d=i[c>>2];if(d){continue}break}}i[f>>2]=i[c>>2];i[c>>2]=i[i[i[a>>2]+k>>2]>>2];i[i[i[a>>2]+k>>2]>>2]=e;break d}i[c>>2]=f;f=e;g=d}e=i[f>>2];if(e){continue}break}break a}Ba(16928);x()}b=i[a>>2];i[a>>2]=0;if(b){ep(b)}i[a+4>>2]=0}}function on(a){var b=0,c=0,d=0,e=0,f=0;a:{b:{c:{b=i[a+4>>2];d:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break d}b=hn(a)}switch(b+ -43|0){case 0:case 2:break b;default:break c}}c=b+ -48|0;break a}f=(b|0)==45;b=i[a+4>>2];e:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break e}b=hn(a)}c=b+ -48|0;if(!(c>>>0<10|!i[a+104>>2])){i[a+4>>2]=i[a+4>>2]+ -1}}f:{if(c>>>0<10){c=0;while(1){d=o(c,10)+b|0;b=i[a+4>>2];g:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break g}b=hn(a)}e=b+ -48|0;c=d+ -48|0;if((c|0)<214748364?e>>>0<=9:0){continue}break}d=c;c=c>>31;h:{if(e>>>0>=10){break h}while(1){c=xp(d,c,10,0);d=c+b|0;b=J;b=d>>>0>>0?b+1|0:b;d=d+ -48|0;c=b+ -1|0;c=d>>>0<4294967248?c+1|0:c;b=i[a+4>>2];i:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break i}b=hn(a)}e=b+ -48|0;if(e>>>0>9){break h}if((c|0)<21474836?1:(c|0)<=21474836?d>>>0<2061584302:0){continue}break}}if(e>>>0<10){while(1){b=i[a+4>>2];j:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break j}b=hn(a)}if(b+ -48>>>0<10){continue}break}}if(i[a+104>>2]){i[a+4>>2]=i[a+4>>2]+ -1}a=d;d=f?0-a|0:a;c=f?0-(c+(0>>0)|0)|0:c;break f}c=-2147483648;if(!i[a+104>>2]){break f}i[a+4>>2]=i[a+4>>2]+ -1;J=-2147483648;return 0}J=c;return d}function ub(a,b,c,d){var e=0,f=0,j=0,l=0,n=p(0),o=0,q=0,r=p(0),s=0,t=0;o=k[c>>1];l=o^318;s=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];q=Ap(e);j=l&e+ -1;c:{if(q>>>0<=1){break c}c=l;j=c;if(e>>>0>c>>>0){break c}j=(l>>>0)%(e>>>0)|0}c=j;j=c;c=i[(c<<2)+f>>2];if(!c){break b}t=e+ -1|0;q=q>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((l|0)!=(f|0)){d:{if(!q){f=f&t;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(j|0)){break b}}if(k[c+8>>1]!=(o|0)){continue}break}b=0;break a}c=ko(16);h[c+8>>1]=k[d>>1];d=i[d+4>>2];i[c+4>>2]=l;i[c+12>>2]=d;i[c>>2]=0;n=m[b+16>>2];r=p(i[b+12>>2]+1>>>0);e:{if(p(n*p(e>>>0))>>0<3|e<<1;d=b;n=p(v(p(r/n)));f:{if(n=p(0)){j=~~n>>>0;break f}j=0}yb(d,o>>>0>>0?j:o);e=i[b+4>>2];if(!(e&e+ -1)){j=l&e+ -1;break e}if(e>>>0>l>>>0){j=l;break e}j=(l>>>0)%(e>>>0)|0}d=i[b>>2]+(j<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[s+4|0]=b;i[a>>2]=c}function Xa(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=0,o=p(0),q=0,r=0;n=i[c>>2];j=n^318;q=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];l=Ap(e);h=j&e+ -1;c:{if(l>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}r=e+ -1|0;l=l>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!l){f=f&r;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(i[c+8>>2]!=(n|0)){continue}break}b=0;break a}c=ko(16);i[c+8>>2]=i[d>>2];d=i[d+4>>2];i[c+4>>2]=j;i[c+12>>2]=d;i[c>>2]=0;k=m[b+16>>2];o=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(o/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}ab(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[q+4|0]=b;i[a>>2]=c}function $b(a){var b=0,c=0,d=0,e=0,f=0;e=H-16|0;H=e;b=ko(16);i[e>>2]=b;i[e+4>>2]=14;i[e+8>>2]=-2147483632;g[b+14|0]=0;c=j[1830]|j[1831]<<8|(j[1832]<<16|j[1833]<<24);d=j[1826]|j[1827]<<8|(j[1828]<<16|j[1829]<<24);g[b+6|0]=d;g[b+7|0]=d>>>8;g[b+8|0]=d>>>16;g[b+9|0]=d>>>24;g[b+10|0]=c;g[b+11|0]=c>>>8;g[b+12|0]=c>>>16;g[b+13|0]=c>>>24;c=j[1824]|j[1825]<<8|(j[1826]<<16|j[1827]<<24);d=j[1820]|j[1821]<<8|(j[1822]<<16|j[1823]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;f=bk(a,e,-1);if(g[e+11|0]<=-1){ep(i[e>>2])}b=ko(16);i[e>>2]=b;i[e+4>>2]=14;i[e+8>>2]=-2147483632;g[b+14|0]=0;c=j[1845]|j[1846]<<8|(j[1847]<<16|j[1848]<<24);d=j[1841]|j[1842]<<8|(j[1843]<<16|j[1844]<<24);g[b+6|0]=d;g[b+7|0]=d>>>8;g[b+8|0]=d>>>16;g[b+9|0]=d>>>24;g[b+10|0]=c;g[b+11|0]=c>>>8;g[b+12|0]=c>>>16;g[b+13|0]=c>>>24;c=j[1839]|j[1840]<<8|(j[1841]<<16|j[1842]<<24);d=j[1835]|j[1836]<<8|(j[1837]<<16|j[1838]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;a=bk(a,e,-1);if(g[e+11|0]<=-1){ep(i[e>>2])}H=e+16|0;a=(f|0)<(a|0)?a:f;return(a|0)==-1?5:a}function ib(a,b,c,d){var e=0,f=0,h=0,k=0,l=p(0),n=0,o=0,q=p(0),r=0,s=0;o=j[c|0];k=o^318;r=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];n=Ap(e);h=k&e+ -1;c:{if(n>>>0<=1){break c}c=k;h=c;if(c>>>0>>0){break c}h=(k>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}s=e+ -1|0;n=n>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((k|0)!=(f|0)){d:{if(!n){f=f&s;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(j[c+8|0]!=(o|0)){continue}break}b=0;break a}c=ko(16);g[c+8|0]=j[d|0];d=i[d+4>>2];i[c+4>>2]=k;i[c+12>>2]=d;i[c>>2]=0;l=m[b+16>>2];q=p(i[b+12>>2]+1>>>0);e:{if(p(l*p(e>>>0))>>0<3|e<<1;d=b;l=p(v(p(q/l)));f:{if(l=p(0)){h=~~l>>>0;break f}h=0}mb(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=k&e+ -1;break e}if(k>>>0>>0){h=k;break e}h=(k>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[r+4|0]=b;i[a>>2]=c}function wp(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{g=b;if(g){e=c;if(!e){break j}f=d;if(!f){break i}f=r(f)-r(g)|0;if(f>>>0<=31){break h}break b}if((d|0)==1&c>>>0>=0|d>>>0>1){break b}b=(a>>>0)/(c>>>0)|0;J=0;return b}e=d;if(!a){break g}if(!e){break f}if(e+ -1&e){break f}a=g>>>(Cp(e)&31)|0;J=0;return a}if(!(e+ -1&e)){break e}j=(r(e)+33|0)-r(g)|0;h=0-j|0;break c}j=f+1|0;h=63-f|0;break c}a=(g>>>0)/(e>>>0)|0;J=0;return a}f=r(e)-r(g)|0;if(f>>>0<31){break d}break b}if((e|0)==1){break a}c=a;a=Cp(e);d=a&31;if(32<=(a&63)>>>0){f=0;a=b>>>d|0}else{f=b>>>d|0;a=((1<>>d}J=f;return a}j=f+1|0;h=63-f|0}e=b;g=a;f=j&63;i=f&31;if(32<=(f&63)>>>0){f=0;l=e>>>i|0}else{f=e>>>i|0;l=((1<>>i}a=h&63;h=a&31;if(32<=(a&63)>>>0){e=g<>>32-h|b<>>31;f=e<<1|b>>>31;m=k;e=k;k=f;i=g-((h>>>0>>0)+e|0)|0;e=i>>31;i=i>>31;f=c&i;l=k-f|0;f=m-((d&e)+(k>>>0>>0)|0)|0;e=b<<1|a>>>31;a=n|a<<1;b=e|o;m=0;k=i&1;n=k;j=j+ -1|0;if(j){continue}break}}J=m|(b<<1|a>>>31);return k|a<<1}a=0;b=0}J=b;return a}function Yf(a,b,c){var d=0,e=0,f=0,h=0;f=H-16|0;H=f;d=ko(16);i[f>>2]=d;i[f+4>>2]=14;i[f+8>>2]=-2147483632;g[d+14|0]=0;h=j[10714]|j[10715]<<8|(j[10716]<<16|j[10717]<<24);e=j[10710]|j[10711]<<8|(j[10712]<<16|j[10713]<<24);g[d+6|0]=e;g[d+7|0]=e>>>8;g[d+8|0]=e>>>16;g[d+9|0]=e>>>24;g[d+10|0]=h;g[d+11|0]=h>>>8;g[d+12|0]=h>>>16;g[d+13|0]=h>>>24;h=j[10708]|j[10709]<<8|(j[10710]<<16|j[10711]<<24);e=j[10704]|j[10705]<<8|(j[10706]<<16|j[10707]<<24);g[d|0]=e;g[d+1|0]=e>>>8;g[d+2|0]=e>>>16;g[d+3|0]=e>>>24;g[d+4|0]=h;g[d+5|0]=h>>>8;g[d+6|0]=h>>>16;g[d+7|0]=h>>>24;_j(a,f,b);if(g[f+11|0]<=-1){ep(i[f>>2])}b=ko(16);i[f>>2]=b;i[f+4>>2]=14;i[f+8>>2]=-2147483632;g[b+14|0]=0;e=j[10729]|j[10730]<<8|(j[10731]<<16|j[10732]<<24);d=j[10725]|j[10726]<<8|(j[10727]<<16|j[10728]<<24);g[b+6|0]=d;g[b+7|0]=d>>>8;g[b+8|0]=d>>>16;g[b+9|0]=d>>>24;g[b+10|0]=e;g[b+11|0]=e>>>8;g[b+12|0]=e>>>16;g[b+13|0]=e>>>24;e=j[10723]|j[10724]<<8|(j[10725]<<16|j[10726]<<24);d=j[10719]|j[10720]<<8|(j[10721]<<16|j[10722]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=e;g[b+5|0]=e>>>8;g[b+6|0]=e>>>16;g[b+7|0]=e>>>24;_j(a,f,c);if(g[f+11|0]<=-1){ep(i[f>>2])}H=f+16|0}function Df(a,b,c){var d=0,e=0,f=0,h=0;f=H-16|0;H=f;d=ko(16);i[f>>2]=d;i[f+4>>2]=14;i[f+8>>2]=-2147483632;g[d+14|0]=0;h=j[10446]|j[10447]<<8|(j[10448]<<16|j[10449]<<24);e=j[10442]|j[10443]<<8|(j[10444]<<16|j[10445]<<24);g[d+6|0]=e;g[d+7|0]=e>>>8;g[d+8|0]=e>>>16;g[d+9|0]=e>>>24;g[d+10|0]=h;g[d+11|0]=h>>>8;g[d+12|0]=h>>>16;g[d+13|0]=h>>>24;h=j[10440]|j[10441]<<8|(j[10442]<<16|j[10443]<<24);e=j[10436]|j[10437]<<8|(j[10438]<<16|j[10439]<<24);g[d|0]=e;g[d+1|0]=e>>>8;g[d+2|0]=e>>>16;g[d+3|0]=e>>>24;g[d+4|0]=h;g[d+5|0]=h>>>8;g[d+6|0]=h>>>16;g[d+7|0]=h>>>24;_j(a,f,b);if(g[f+11|0]<=-1){ep(i[f>>2])}b=ko(16);i[f>>2]=b;i[f+4>>2]=14;i[f+8>>2]=-2147483632;g[b+14|0]=0;e=j[10461]|j[10462]<<8|(j[10463]<<16|j[10464]<<24);d=j[10457]|j[10458]<<8|(j[10459]<<16|j[10460]<<24);g[b+6|0]=d;g[b+7|0]=d>>>8;g[b+8|0]=d>>>16;g[b+9|0]=d>>>24;g[b+10|0]=e;g[b+11|0]=e>>>8;g[b+12|0]=e>>>16;g[b+13|0]=e>>>24;e=j[10455]|j[10456]<<8|(j[10457]<<16|j[10458]<<24);d=j[10451]|j[10452]<<8|(j[10453]<<16|j[10454]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=e;g[b+5|0]=e>>>8;g[b+6|0]=e>>>16;g[b+7|0]=e>>>24;_j(a,f,c);if(g[f+11|0]<=-1){ep(i[f>>2])}H=f+16|0}function di(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{b:{b=i[a+12>>2];c=i[b+4>>2]-i[b>>2]|0;if(!c){break b}c=c>>2;k=c>>>0>1?c:1;l=a+140|0;while(1){c:{if(Sl(b,(f>>>0)/3|0)){break c}b=i[a+12>>2];if(i[i[b+12>>2]+(f<<2)>>2]!=-1){break c}h=i[a+152>>2];g=h;d=f+1|0;d=(d>>>0)%3|0?d:f+ -2|0;if((d|0)!=-1){b=i[i[b>>2]+(d<<2)>>2]}else{b=-1}c=b<<2;if(i[g+c>>2]!=-1){break c}e=-1;g=i[a+144>>2];b=g;d=i[a+148>>2];if((b|0)==d<<5){if((g+1|0)<=-1){break a}b=l;if(g>>>0<=1073741822){e=g+32&-32;d=d<<6;d=d>>>0>>0?e:d}else{d=2147483647}cd(b,d);h=i[a+152>>2];e=i[c+h>>2];b=i[a+144>>2]}i[a+144>>2]=b+1;d=i[a+140>>2]+(b>>>3&536870908)|0;j=i[d>>2];n=d,o=Bp(-2,b)&j,i[n>>2]=o;if((e|0)!=-1){break c}c=c+h|0;j=i[a+12>>2];b=f;while(1){d=b;i[c>>2]=g;b=-1;e=-1;d:{if((d|0)==-1){break d}c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1){break d}m=i[j+12>>2];while(1){d=i[(c<<2)+m>>2];if((d|0)!=-1){c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)!=-1){continue}break d}break}b=c+1|0;b=(b>>>0)%3|0?b:c+ -2|0;if((b|0)!=-1){e=i[i[j>>2]+(b<<2)>>2]}b=c}c=(e<<2)+h|0;if(i[c>>2]==-1){continue}break}}f=f+1|0;if((k|0)==(f|0)){break b}b=i[a+12>>2];continue}}return 1}Ko();x()}function qi(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=p(0),o=0,q=0;f=i[c>>2];o=a;a:{b:{e=i[b+4>>2];if(!e){break b}j=i[b>>2];l=Ap(e);h=f&e+ -1;c:{if(l>>>0<=1){break c}c=f;h=c;if(c>>>0>>0){break c}h=(f>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+j>>2];if(!c){break b}q=e+ -1|0;l=l>>>0>1;while(1){c=i[c>>2];if(!c){break b}j=i[c+4>>2];if((f|0)!=(j|0)){d:{if(!l){j=j&q;break d}if(j>>>0>>0){break d}j=(j>>>0)%(e>>>0)|0}if((j|0)!=(h|0)){break b}}if((f|0)!=i[c+8>>2]){continue}break}b=0;break a}c=ko(16);d=i[i[d>>2]>>2];i[c+12>>2]=0;i[c+8>>2]=d;i[c+4>>2]=f;i[c>>2]=0;k=m[b+16>>2];n=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(n/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}kj(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=f&e+ -1;break e}if(f>>>0>>0){h=f;break e}h=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(h<<2)|0;d=i[f>>2];g:{h:{if(!d){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[f>>2]=b+8;d=i[c>>2];if(!d){break g}d=i[d+4>>2];f=e+ -1|0;i:{if(!(f&e)){d=d&f;break i}if(d>>>0>>0){break i}d=(d>>>0)%(e>>>0)|0}d=i[b>>2]+(d<<2)|0;break h}i[c>>2]=i[d>>2]}i[d>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[o+4|0]=b;i[a>>2]=c}function ni(a,b){var c=0,d=0,e=0,f=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if((e-c|0)/136>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=o(b,136)+c|0;while(1){i[c>>2]=-1;am(c+4|0);i[c+104>>2]=0;i[c+108>>2]=0;g[c+100|0]=1;i[c+112>>2]=0;i[c+116>>2]=0;i[c+120>>2]=0;i[c+124>>2]=0;i[c+128>>2]=0;c=c+136|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{b:{c:{f=i[a>>2];h=(c-f|0)/136|0;d=h+b|0;if(d>>>0<31580642){c=0;e=(e-f|0)/136|0;f=e<<1;e=e>>>0<15790320?f>>>0>>0?d:f:31580641;if(e){if(e>>>0>=31580642){break c}c=ko(o(e,136))}d=o(h,136)+c|0;f=d+o(b,136)|0;e=o(e,136)+c|0;c=d;while(1){i[c>>2]=-1;am(c+4|0);i[c+104>>2]=0;i[c+108>>2]=0;g[c+100|0]=1;i[c+112>>2]=0;i[c+116>>2]=0;i[c+120>>2]=0;i[c+124>>2]=0;i[c+128>>2]=0;c=c+136|0;if((f|0)!=(c|0)){continue}break}b=i[a+4>>2];c=i[a>>2];if((b|0)==(c|0)){break b}while(1){b=b+ -136|0;d=jj(d+ -136|0,b);if((b|0)!=(c|0)){continue}break}c=i[a+4>>2];b=i[a>>2];break a}Ko();x()}Ba(11708);x()}b=c}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=d;if((b|0)!=(c|0)){while(1){a=i[c+ -20>>2];if(a){i[c+ -16>>2]=a;ep(a)}a=c+ -136|0;d=i[c+ -32>>2];if(d){i[c+ -28>>2]=d;ep(d)}oi(c+ -132|0);c=a;if((b|0)!=(c|0)){continue}break}}if(b){ep(b)}}function zc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;e=32-b|0;c=c<>2];h=32-d|0;d:{if((h|0)>=(b|0)){b=b+d|0;i[a+16>>2]=b;e=i[a+12>>2]|c>>>d;i[a+12>>2]=e;if((b|0)!=32){break d}b=i[a+4>>2];f=i[a+8>>2];e:{if((b|0)!=(f|0)){i[b>>2]=e;i[a+4>>2]=b+4;break e}c=i[a>>2];h=b-c|0;g=h>>2;d=g+1|0;if(d>>>0>=1073741824){break c}f=f-c|0;b=f>>1;d=f>>2>>>0<536870911?b>>>0>>0?d:b:1073741823;b=0;f:{if(!d){break f}if(d>>>0>=1073741824){break b}b=ko(d<<2)}f=b+(g<<2)|0;i[f>>2]=e;d=b+(d<<2)|0;e=f+4|0;if((h|0)>=1){kp(b,c,h)}i[a+8>>2]=d;i[a+4>>2]=e;i[a>>2]=b;if(!c){break e}ep(c)}i[a+12>>2]=0;i[a+16>>2]=0;return}b=b-h|0;i[a+16>>2]=b;f=c>>>e|0;e=i[a+12>>2]|f>>>b;i[a+12>>2]=e;b=i[a+4>>2];g=i[a+8>>2];g:{if((b|0)!=(g|0)){i[b>>2]=e;i[a+4>>2]=b+4;break g}c=i[a>>2];h=b-c|0;b=h>>2;d=b+1|0;if(d>>>0>=1073741824){break c}j=b<<2;g=g-c|0;b=g>>1;d=g>>2>>>0<536870911?b>>>0>>0?d:b:1073741823;b=0;h:{if(!d){break h}if(d>>>0>=1073741824){break a}b=ko(d<<2)}g=j+b|0;i[g>>2]=e;d=b+(d<<2)|0;e=g+4|0;if((h|0)>=1){kp(b,c,h)}i[a+8>>2]=d;i[a+4>>2]=e;i[a>>2]=b;if(!c){break g}ep(c)}i[a+12>>2]=f<<32-i[a+16>>2]}return}Ko();x()}Ba(1752);x()}Ba(1752);x()}function Fn(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;g=H-32|0;H=g;e=d&2147483647;j=e;e=e+ -1006698496|0;h=c;f=c;if(c>>>0<0){e=e+1|0}k=f;f=e;e=j+ -1140785152|0;l=h;if(h>>>0<0){e=e+1|0}a:{if((e|0)==(f|0)&k>>>0>>0|f>>>0>>0){e=d<<4|c>>>28;c=c<<4|b>>>28;b=b&268435455;h=b;if((b|0)==134217728&a>>>0>=1|b>>>0>134217728){e=e+1073741824|0;a=c+1|0;if(a>>>0<1){e=e+1|0}f=a;break a}f=c;e=e-((c>>>0<0)+ -1073741824|0)|0;if(a|h^134217728){break a}a=f+(f&1)|0;if(a>>>0>>0){e=e+1|0}f=a;break a}if(!(!h&(j|0)==2147418112?!(a|b):(j|0)==2147418112&h>>>0<0|j>>>0<2147418112)){e=d<<4|c>>>28;f=c<<4|b>>>28;e=e&524287|2146959360;break a}f=0;e=2146435072;if(j>>>0>1140785151){break a}e=0;h=j>>>16|0;if(h>>>0<15249){break a}e=d&65535|65536;un(g+16|0,a,b,c,e,h+ -15233|0);xn(g,a,b,c,e,15361-h|0);c=i[g+4>>2];a=i[g+8>>2];e=i[g+12>>2]<<4|a>>>28;f=a<<4|c>>>28;a=c&268435455;c=a;b=i[g>>2]|((i[g+16>>2]|i[g+24>>2])!=0|(i[g+20>>2]|i[g+28>>2])!=0);if((a|0)==134217728&b>>>0>=1|a>>>0>134217728){a=f+1|0;if(a>>>0<1){e=e+1|0}f=a;break a}if(b|c^134217728){break a}a=f+(f&1)|0;if(a>>>0>>0){e=e+1|0}f=a}H=g+32|0;Fp(0,f|0);Fp(1,d&-2147483648|e);return+Gp()}function Fi(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11192;b=a+280|0;c=i[b>>2];i[b>>2]=0;if(c){d=c+ -4|0;b=i[d>>2];if(b){b=c+(b<<5)|0;while(1){b=of(b+ -32|0);if((c|0)!=(b|0)){continue}break}}ep(d)}b=i[a+268>>2];if(b){i[a+272>>2]=b;ep(b)}c=a+244|0;b=i[c>>2];i[c>>2]=0;if(b){ep(b)}b=i[a+232>>2];if(b){i[a+236>>2]=b;ep(b)}of(a+200|0);b=i[a+184>>2];if(b){i[a+188>>2]=b;ep(b)}c=i[a+172>>2];if(c){b=i[a+176>>2];d=c;a:{if((c|0)==(b|0)){break a}while(1){d=i[b+ -20>>2];if(d){i[b+ -16>>2]=d;ep(d)}d=b+ -136|0;e=i[b+ -32>>2];if(e){i[b+ -28>>2]=e;ep(e)}oi(b+ -132|0);b=d;if((c|0)!=(b|0)){continue}break}d=i[a+172>>2]}i[a+176>>2]=c;ep(d)}b=i[a+152>>2];if(b){i[a+156>>2]=b;ep(b)}b=i[a+140>>2];if(b){ep(b)}b=i[a+128>>2];if(b){while(1){c=i[b>>2];ep(b);b=c;if(b){continue}break}}b=i[a+120>>2];i[a+120>>2]=0;if(b){ep(b)}b=i[a+108>>2];if(b){i[a+112>>2]=b;ep(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;ep(b)}b=i[a+84>>2];if(b){ep(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;ep(b)}b=i[a+52>>2];if(b){i[a+56>>2]=b;ep(b)}b=i[a+40>>2];if(b){i[a+44>>2]=b;ep(b)}b=i[a+28>>2];if(b){ep(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;ep(b)}b=i[a+12>>2];i[a+12>>2]=0;if(b){ci(b)}return a|0}function kp(a,b,c){var d=0,e=0,f=0;if(c>>>0>=512){G(a|0,b|0,c|0)|0;return a}e=a+c|0;a:{if(!((a^b)&3)){b:{if((c|0)<1){c=a;break b}if(!(a&3)){c=a;break b}c=a;while(1){g[c|0]=j[b|0];b=b+1|0;c=c+1|0;if(c>>>0>=e>>>0){break b}if(c&3){continue}break}}d=e&-4;c:{if(d>>>0<64){break c}f=d+ -64|0;if(c>>>0>f>>>0){break c}while(1){i[c>>2]=i[b>>2];i[c+4>>2]=i[b+4>>2];i[c+8>>2]=i[b+8>>2];i[c+12>>2]=i[b+12>>2];i[c+16>>2]=i[b+16>>2];i[c+20>>2]=i[b+20>>2];i[c+24>>2]=i[b+24>>2];i[c+28>>2]=i[b+28>>2];i[c+32>>2]=i[b+32>>2];i[c+36>>2]=i[b+36>>2];i[c+40>>2]=i[b+40>>2];i[c+44>>2]=i[b+44>>2];i[c+48>>2]=i[b+48>>2];i[c+52>>2]=i[b+52>>2];i[c+56>>2]=i[b+56>>2];i[c+60>>2]=i[b+60>>2];b=b- -64|0;c=c- -64|0;if(c>>>0<=f>>>0){continue}break}}if(c>>>0>=d>>>0){break a}while(1){i[c>>2]=i[b>>2];b=b+4|0;c=c+4|0;if(c>>>0>>0){continue}break}break a}if(e>>>0<4){c=a;break a}d=e+ -4|0;if(d>>>0>>0){c=a;break a}c=a;while(1){g[c|0]=j[b|0];g[c+1|0]=j[b+1|0];g[c+2|0]=j[b+2|0];g[c+3|0]=j[b+3|0];b=b+4|0;c=c+4|0;if(c>>>0<=d>>>0){continue}break}}if(c>>>0>>0){while(1){g[c|0]=j[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}return a}function kg(a,b){var c=0,d=0,e=0,f=0;f=H-16|0;H=f;a:{if(b>>>0>10){break a}c=ko(48);i[f>>2]=c;i[f+4>>2]=33;i[f+8>>2]=-2147483600;g[c+33|0]=0;g[c+32|0]=j[10857];d=j[10853]|j[10854]<<8|(j[10855]<<16|j[10856]<<24);e=j[10849]|j[10850]<<8|(j[10851]<<16|j[10852]<<24);g[c+24|0]=e;g[c+25|0]=e>>>8;g[c+26|0]=e>>>16;g[c+27|0]=e>>>24;g[c+28|0]=d;g[c+29|0]=d>>>8;g[c+30|0]=d>>>16;g[c+31|0]=d>>>24;d=j[10845]|j[10846]<<8|(j[10847]<<16|j[10848]<<24);e=j[10841]|j[10842]<<8|(j[10843]<<16|j[10844]<<24);g[c+16|0]=e;g[c+17|0]=e>>>8;g[c+18|0]=e>>>16;g[c+19|0]=e>>>24;g[c+20|0]=d;g[c+21|0]=d>>>8;g[c+22|0]=d>>>16;g[c+23|0]=d>>>24;d=j[10837]|j[10838]<<8|(j[10839]<<16|j[10840]<<24);e=j[10833]|j[10834]<<8|(j[10835]<<16|j[10836]<<24);g[c+8|0]=e;g[c+9|0]=e>>>8;g[c+10|0]=e>>>16;g[c+11|0]=e>>>24;g[c+12|0]=d;g[c+13|0]=d>>>8;g[c+14|0]=d>>>16;g[c+15|0]=d>>>24;d=j[10829]|j[10830]<<8|(j[10831]<<16|j[10832]<<24);e=j[10825]|j[10826]<<8|(j[10827]<<16|j[10828]<<24);g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;_j(a,f,b);if(g[f+11|0]>-1){break a}ep(i[f>>2])}H=f+16|0}function rj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=H-16|0;H=e;a:{b:{c:{if(!b){b=ko(76);c=ko(12);i[c+8>>2]=i[i[a+4>>2]+80>>2];i[c>>2]=13420;i[c+4>>2]=0;i[e>>2]=c;Nc(b,e,0);i[e+8>>2]=b;c=i[a+12>>2];d:{if(c>>>0>2]){i[e+8>>2]=0;i[c>>2]=b;i[a+12>>2]=c+4;break d}Yh(a+8|0,e+8|0)}a=i[e+8>>2];i[e+8>>2]=0;if(a){K[i[i[a>>2]+4>>2]](a)}a=i[e>>2];i[e>>2]=0;if(!a){break c}K[i[i[a>>2]+4>>2]](a);break c}c=i[i[a+8>>2]>>2];a=i[c+8>>2];f=i[c+12>>2];e:{if((a|0)!=(f|0)){i[a>>2]=b;i[c+8>>2]=a+4;break e}g=i[c+4>>2];h=a-g|0;a=h>>2;d=a+1|0;if(d>>>0>=1073741824){break b}j=a<<2;f=f-g|0;a=f>>1;d=f>>2>>>0<536870911?a>>>0>>0?d:a:1073741823;a=0;f:{if(!d){break f}if(d>>>0>=1073741824){break a}a=ko(d<<2)}f=j+a|0;i[f>>2]=b;d=a+(d<<2)|0;f=f+4|0;if((h|0)>=1){kp(a,g,h)}i[c+12>>2]=d;i[c+8>>2]=f;i[c+4>>2]=a;if(!g){break e}ep(g)}a=i[c+16>>2];g=i[c+20>>2]-a>>2;g:{if((g|0)>(b|0)){break g}i[e+12>>2]=-1;d=b+1|0;if(d>>>0>g>>>0){a=c+16|0;Hb(a,d-g|0,e+12|0);a=i[a>>2];break g}if(d>>>0>=g>>>0){break g}i[c+20>>2]=(d<<2)+a}i[(b<<2)+a>>2]=(i[c+8>>2]-i[c+4>>2]>>2)+ -1}H=e+16|0;return 1}Ko();x()}Ba(13344);x()}function Nj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=H-16|0;H=e;a:{b:{c:{if(!b){b=ko(76);c=ko(12);i[c+8>>2]=i[i[a+4>>2]+80>>2];i[c>>2]=13420;i[c+4>>2]=0;i[e>>2]=c;Nc(b,e,0);i[e+8>>2]=b;c=i[a+12>>2];d:{if(c>>>0>2]){i[e+8>>2]=0;i[c>>2]=b;i[a+12>>2]=c+4;break d}Yh(a+8|0,e+8|0)}a=i[e+8>>2];i[e+8>>2]=0;if(a){K[i[i[a>>2]+4>>2]](a)}a=i[e>>2];i[e>>2]=0;if(!a){break c}K[i[i[a>>2]+4>>2]](a);break c}c=i[i[a+8>>2]>>2];a=i[c+8>>2];f=i[c+12>>2];e:{if((a|0)!=(f|0)){i[a>>2]=b;i[c+8>>2]=a+4;break e}g=i[c+4>>2];h=a-g|0;a=h>>2;d=a+1|0;if(d>>>0>=1073741824){break b}j=a<<2;f=f-g|0;a=f>>1;d=f>>2>>>0<536870911?a>>>0>>0?d:a:1073741823;a=0;f:{if(!d){break f}if(d>>>0>=1073741824){break a}a=ko(d<<2)}f=j+a|0;i[f>>2]=b;d=a+(d<<2)|0;f=f+4|0;if((h|0)>=1){kp(a,g,h)}i[c+12>>2]=d;i[c+8>>2]=f;i[c+4>>2]=a;if(!g){break e}ep(g)}a=i[c+16>>2];g=i[c+20>>2]-a>>2;g:{if((g|0)>(b|0)){break g}i[e+12>>2]=-1;d=b+1|0;if(d>>>0>g>>>0){a=c+16|0;Hb(a,d-g|0,e+12|0);a=i[a>>2];break g}if(d>>>0>=g>>>0){break g}i[c+20>>2]=(d<<2)+a}i[(b<<2)+a>>2]=(i[c+8>>2]-i[c+4>>2]>>2)+ -1}H=e+16|0;return 1}Ko();x()}Ba(14116);x()}function nm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;h=H-16|0;H=h;i[a+4>>2]=0;i[a+8>>2]=0;c=a+16|0;i[c>>2]=0;i[c+4>>2]=0;f=a+4|0;i[a>>2]=f;i[a+12>>2]=c;c=i[b>>2];g=b+4|0;if((c|0)!=(g|0)){while(1){e=c;d=c+16|0;om(a,f,d,d);d=i[c+4>>2];a:{if(!d){c=i[e+8>>2];if((e|0)==i[c>>2]){break a}d=e+8|0;while(1){e=i[d>>2];d=e+8|0;c=i[e+8>>2];if((e|0)!=i[c>>2]){continue}break}break a}while(1){c=d;d=i[c>>2];if(d){continue}break}}if((c|0)!=(g|0)){continue}break}}c=i[b+12>>2];g=b+16|0;if((c|0)!=(g|0)){e=a+12|0;while(1){b=c;k=ko(24);nm(k,i[c+28>>2]);c=c+16|0;f=Pf(e,h+12|0,c);d=i[f>>2];if(!d){d=ko(32);uo(d+16|0,c);i[d+28>>2]=0;i[d+8>>2]=i[h+12>>2];i[d>>2]=0;i[d+4>>2]=0;i[f>>2]=d;c=i[i[e>>2]>>2];j=d;b:{if(!c){break b}i[e>>2]=c;j=i[f>>2]}c=j;Lf(i[a+16>>2],c);i[a+20>>2]=i[a+20>>2]+1}d=d+28|0;c=i[d>>2];i[d>>2]=k;if(c){Ak(c+12|0,i[c+16>>2]);Bk(c,i[c+4>>2]);ep(c)}d=i[b+4>>2];c:{if(!d){c=i[b+8>>2];if((b|0)==i[c>>2]){break c}d=b+8|0;while(1){b=i[d>>2];d=b+8|0;c=i[b+8>>2];if((b|0)!=i[c>>2]){continue}break}break c}while(1){c=d;d=i[c>>2];if(d){continue}break}}if((c|0)!=(g|0)){continue}break}}H=h+16|0}function hd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0;e=H-16|0;H=e;a:{c=i[a+4>>2];b:{c:{if(c){if(K[i[i[a>>2]+52>>2]](a,b,i[i[c+4>>2]+80>>2])|0){break c}break b}if(!(K[i[i[a>>2]+52>>2]](a,b,0)|0)){break b}}n=1;if(!j[a+28|0]){break b}f=i[a+32>>2];k=i[a+8>>2];c=i[k+80>>2];i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(c){if(c>>>0>=1073741824){break a}c=c<<2;h=ko(c);i[e>>2]=h;d=c+h|0;i[e+8>>2]=d;lp(h,0,c);i[e+4>>2]=d}c=i[b+4>>2];l=i[b>>2];if((c|0)!=(l|0)){b=c-l>>2;m=b>>>0>1?b:1;b=0;o=j[k+84|0];while(1){c=i[l+(b<<2)>>2];d=h;if(!o){c=i[i[k+68>>2]+(c<<2)>>2]}i[(c<<2)+d>>2]=b;b=b+1|0;if((m|0)!=(b|0)){continue}break}}d:{if(!j[f+84|0]){break d}b=i[i[i[a+4>>2]+4>>2]+80>>2];g[f+84|0]=0;d=i[f+68>>2];c=i[f+72>>2]-d>>2;if(b>>>0>c>>>0){Ya(f+68|0,b-c|0,2396);break d}if(b>>>0>=c>>>0){break d}i[f+72>>2]=d+(b<<2)}d=i[i[i[a+4>>2]+4>>2]+80>>2];e:{if(d){f=i[f+68>>2];b=0;l=j[k+84|0];while(1){a=b;m=f+(b<<2)|0;c=h;if(!l){a=i[i[k+68>>2]+(b<<2)>>2]}i[m>>2]=i[(a<<2)+c>>2];b=b+1|0;if((d|0)!=(b|0)){continue}break}break e}if(!h){break b}}i[e+4>>2]=h;ep(h)}H=e+16|0;return n|0}Ko();x()}function ul(a,b,c){var d=0,e=0,f=0,h=0;e=H+ -64|0;H=e;a:{b:{c:{d:{e:{if(!a){break e}d=pp(b);if(d>>>0>=4294967280){break d}f:{g:{if(d>>>0>=11){h=d+16&-16;f=ko(h);i[e+56>>2]=h|-2147483648;i[e+48>>2]=f;i[e+52>>2]=d;break g}g[e+59|0]=d;f=e+48|0;if(!d){break f}}kp(f,b,d)}g[d+f|0]=0;d=pp(c);if(d>>>0>=4294967280){break c}h:{i:{if(d>>>0>=11){h=d+16&-16;f=ko(h);i[e+40>>2]=h|-2147483648;i[e+32>>2]=f;i[e+36>>2]=d;break i}g[e+43|0]=d;f=e+32|0;if(!d){break h}}kp(f,c,d)}g[d+f|0]=0;d=pp(b);if(d>>>0>=4294967280){break b}j:{k:{if(d>>>0>=11){h=d+16&-16;f=ko(h);i[e+24>>2]=h|-2147483648;i[e+16>>2]=f;i[e+20>>2]=d;break k}g[e+27|0]=d;f=e+16|0;if(!d){break j}}kp(f,b,d)}g[d+f|0]=0;d=pp(c);if(d>>>0>=4294967280){break a}l:{m:{if(d>>>0>=11){f=d+16&-16;b=ko(f);i[e+8>>2]=f|-2147483648;i[e>>2]=b;i[e+4>>2]=d;f=e;break m}g[e+11|0]=d;f=e;b=e;if(!d){break l}}kp(b,c,d)}g[b+d|0]=0;wm(a,e+16|0,e);if(g[f+11|0]<=-1){ep(i[e>>2])}if(g[e+27|0]<=-1){ep(i[e+16>>2])}if(g[e+43|0]<=-1){ep(i[e+32>>2])}if(g[e+59|0]>-1){break e}ep(i[e+48>>2])}H=e- -64|0;return(a|0)!=0}to();x()}to();x()}to();x()}to();x()}function aa(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,n=0,o=0;j=+m[b>>2];k=+m[b+4>>2];n=+m[b+8>>2];h=q(j)+q(k)+q(n);a:{if(h>1e-6^1){j=1;k=0;f=0;break a}h=1/h;k=h*k;j=h*j;f=h*n<0}h=k;g=i[a+16>>2];k=+(g|0);h=u(h*k+.5);b:{if(q(h)<2147483648){b=~~h;break b}b=-2147483648}l=(b|0)<0?b:0-b|0;j=u(j*k+.5);c:{if(q(j)<2147483648){e=~~j;break c}e=-2147483648}o=(e|0)<0;e=l+((o?e:0-e|0)+g|0)|0;l=(e|0)<0?0:e;f=f?0-l|0:l;b=b+(e>>31&((b|0)>0?e:0-e|0))|0;d:{if(!o){e=b+g|0;b=f+g|0;break d}e:{if((b|0)<=-1){e=f>>31;e=e+f^e;break e}e=i[a+8>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=b;b=b>>31;b=f+b^b;break d}b=i[a+8>>2]+((b|0)<0?b:0-b|0)|0}f:{if(!(b|e)){b=i[a+8>>2];a=b;break f}f=i[a+8>>2];g:{h:{i:{j:{if(!e){if((b|0)==(f|0)){a=b;break f}a=0;if(b|f){break j}b=0;break f}if((e|0)!=(f|0)|b){break i}b=e;a=b;break f}if((g|0)<(b|0)){b=(g<<1)-b|0;break f}if(f){break g}break h}if((e|0)!=(f|0)){break g}}f=e;if((g|0)<=(b|0)){break g}b=(g<<1)-b|0;a=e;break f}if(!((b|0)!=(f|0)|(g|0)<=(e|0))){a=(g<<1)-e|0;break f}if(b){a=e;break f}b=0;if((g|0)>=(e|0)){a=e;break f}a=(g<<1)-e|0}i[c>>2]=a;i[d>>2]=b}function Vb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;a:{b:{d=i[a+4>>2];g=i[a>>2];h=(d-g|0)/24|0;f=h+1|0;if(f>>>0<178956971){c=(i[a+8>>2]-g|0)/24|0;e=c<<1;j=c>>>0<89478485?e>>>0>>0?f:e:178956970;if(j){if(j>>>0>=178956971){break b}k=ko(o(j,24))}c=o(h,24)+k|0;i[c>>2]=1140;f=i[b+4>>2];l=c+16|0;i[l>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+4>>2]=f;m=i[b+8>>2];e=i[b+12>>2]-m|0;if(e){n=e>>2;if(n>>>0>=1073741824){break a}h=c+12|0;f=ko(e);i[h>>2]=f;i[c+8>>2]=f;i[l>>2]=f+(n<<2);if((e|0)>=1){f=kp(f,m,e)+e|0}i[h>>2]=f}f=o(j,24)+k|0;i[c+20>>2]=i[b+20>>2];h=c+24|0;if((d|0)!=(g|0)){while(1){c=c+ -24|0;i[c>>2]=1140;b=i[d+ -20>>2];e=c+16|0;i[e>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+4>>2]=b;b=d+ -16|0;i[c+8>>2]=i[b>>2];i[c+12>>2]=i[d+ -12>>2];j=e;e=d+ -8|0;i[j>>2]=i[e>>2];i[e>>2]=0;i[b>>2]=0;i[b+4>>2]=0;i[c+20>>2]=i[d+ -4>>2];d=d+ -24|0;if((g|0)!=(d|0)){continue}break}g=i[a+4>>2];d=i[a>>2]}i[a+8>>2]=f;i[a+4>>2]=h;i[a>>2]=c;if((d|0)!=(g|0)){while(1){g=g+ -24|0;K[i[i[g>>2]>>2]](g)|0;if((d|0)!=(g|0)){continue}break}}if(d){ep(d)}return}Ko();x()}Ba(1752);x()}Ko();x()}function xi(a,b){var c=0,d=0,e=0,f=0,g=0;i[a+128>>2]=2;i[a+132>>2]=7;i[a+64>>2]=b;b=K[i[i[b>>2]+32>>2]](b)|0;i[a+88>>2]=b;c=i[b+28>>2]-i[b+24>>2]>>2;d=i[a+108>>2];b=i[a+104>>2];e=d-b>>2;a:{if(c>>>0>e>>>0){Cd(a+104|0,c-e|0);b=i[a+104>>2];d=i[a+108>>2];break a}if(c>>>0>=e>>>0){break a}d=(c<<2)+b|0;i[a+108>>2]=d}if((b|0)!=(d|0)){b=0;while(1){d=Tl(i[a+88>>2],b);c=i[a+104>>2];i[c+(b<<2)>>2]=d;b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}}e=a+92|0;b=i[a+88>>2];d=i[b>>2];c=i[b+4>>2]-d>>2;g=i[a+92>>2];f=i[a+96>>2]-g>>2;b:{if(c>>>0>f>>>0){Bi(e,c-f|0);b=i[a+88>>2];d=i[b>>2];break b}if(c>>>0>=f>>>0){break b}i[a+96>>2]=(c<<2)+g}c=i[b+4>>2];if((c|0)!=(d|0)){d=c-d>>2;d=d>>>0>1?d:1;c=i[b>>2];e=i[e>>2];b=0;while(1){f=b<<2;i[f+e>>2]=i[c+f>>2];b=b+1|0;if((d|0)!=(b|0)){continue}break}}b=(i[a+132>>2]-i[a+128>>2]|0)+1|0;d=i[a+140>>2];e=i[a+136>>2];c=(d-e|0)/12|0;if(b>>>0>c>>>0){Ci(a+136|0,b-c|0);return}if(b>>>0>>0){c=e+o(b,12)|0;if((c|0)!=(d|0)){while(1){b=d+ -12|0;e=i[b>>2];if(e){i[d+ -8>>2]=e;ep(e)}d=b;if((b|0)!=(c|0)){continue}break}}i[a+140>>2]=c}}function ji(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0;h=d-c|0;if((h|0)<1){return}j=h>>2;g=i[a+8>>2];k=i[a+4>>2];if((j|0)<=g-k>>2){g=k-b|0;e=g>>2;a:{if((j|0)<=(e|0)){h=d;e=k;d=e;break a}h=(e<<2)+c|0;b:{if((h|0)==(d|0)){e=k;break b}e=k;f=h;while(1){i[e>>2]=i[f>>2];e=e+4|0;f=f+4|0;if((f|0)!=(d|0)){continue}break}}i[a+4>>2]=e;if((g|0)<1){return}d=e}g=d;d=j<<2;j=e-(d+b|0)|0;f=e-d|0;if(f>>>0>>0){d=f;e=g;while(1){i[e>>2]=i[d>>2];e=e+4|0;d=d+4|0;if(d>>>0>>0){continue}break}}i[a+4>>2]=e;if(j){while(1){g=g+ -4|0;f=f+ -4|0;i[g>>2]=i[f>>2];if((b|0)!=(f|0)){continue}break}}if((c|0)==(h|0)){return}e=b;while(1){i[e>>2]=i[c>>2];e=e+4|0;c=c+4|0;if((h|0)!=(c|0)){continue}break}return}c:{f=i[a>>2];e=j+(k-f>>2)|0;if(e>>>0<1073741824){g=g-f|0;d=g>>1;e=g>>2>>>0<536870911?d>>>0>>0?e:d:1073741823;d=0;d:{if(!e){break d}if(e>>>0>=1073741824){break c}d=ko(e<<2)}g=b-f|0;c=kp(d+(g>>2<<2)|0,c,h&-4);h=j<<2;j=e<<2;if((g|0)>=1){kp(d,f,g)}e=c+h|0;h=d+j|0;c=k-b|0;if((c|0)>=1){e=kp(e,b,c)+c|0}i[a+8>>2]=h;i[a+4>>2]=e;i[a>>2]=d;if(f){ep(f)}return}Ko();x()}Ba(11708);x()}function Lf(a,b){var c=0,d=0,e=0;c=(a|0)==(b|0);g[b+12|0]=c;a:{if(c){break a}while(1){d=i[b+8>>2];if(j[d+12|0]){break a}b:{c=i[d+8>>2];e=i[c>>2];if((e|0)==(d|0)){e=i[c+4>>2];if(!(!e|j[e+12|0])){break b}c:{if(i[d>>2]==(b|0)){b=d;break c}b=i[d+4>>2];e=i[b>>2];i[d+4>>2]=e;a=b;if(e){i[e+8>>2]=d;c=i[d+8>>2]}i[a+8>>2]=c;a=i[d+8>>2];i[(((d|0)!=i[a>>2])<<2)+a>>2]=b;i[b>>2]=d;i[d+8>>2]=b;c=i[b+8>>2]}g[b+12|0]=1;g[c+12|0]=0;a=i[c>>2];b=i[a+4>>2];i[c>>2]=b;if(b){i[b+8>>2]=c}i[a+8>>2]=i[c+8>>2];b=i[c+8>>2];i[((i[b>>2]!=(c|0))<<2)+b>>2]=a;i[a+4>>2]=c;i[c+8>>2]=a;return}if(!(j[e+12|0]|!e)){break b}d:{if(i[d>>2]!=(b|0)){b=d;break d}e=i[b+4>>2];i[d>>2]=e;a=b;if(e){i[e+8>>2]=d;c=i[d+8>>2]}i[a+8>>2]=c;a=i[d+8>>2];i[(((d|0)!=i[a>>2])<<2)+a>>2]=b;i[b+4>>2]=d;i[d+8>>2]=b;c=i[b+8>>2]}g[b+12|0]=1;g[c+12|0]=0;a=i[c+4>>2];b=i[a>>2];i[c+4>>2]=b;if(b){i[b+8>>2]=c}i[a+8>>2]=i[c+8>>2];b=i[c+8>>2];i[((i[b>>2]!=(c|0))<<2)+b>>2]=a;i[a>>2]=c;i[c+8>>2]=a;break a}b=e+12|0;g[d+12|0]=1;g[c+12|0]=(a|0)==(c|0);g[b|0]=1;b=c;if((a|0)!=(b|0)){continue}break}}}function $(a,b,c,d,e){var f=0,g=0,h=0,k=0,l=0,n=0,o=0,q=0;f=H-48|0;H=f;k=i[e+48>>2];e=i[i[e>>2]>>2];i[f+32>>2]=-1;i[f+24>>2]=-1;i[f+28>>2]=1065353216;i[f+16>>2]=-1;i[f+20>>2]=-1;a=i[a+4>>2];a:{if(a+ -2>>>0>28){break a}k=e+k|0;i[f+16>>2]=a;a=-1<>2]=a^-1;a=-2-a|0;i[f+24>>2]=a;i[f+32>>2]=(a|0)/2;m[f+28>>2]=p(2)/p(a|0);g=i[c>>2];if((g|0)!=i[c+4>>2]){e=0;a=0;while(1){d=i[(a<<2)+g>>2];g=f+36|0;n=i[i[b>>2]>>2];o=i[b+48>>2];h=i[b+44>>2];l=i[b+40>>2];q=l;if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}d=xp(q,h,d,0)+o|0;kp(g,d+n|0,l);aa(f+16|0,f+36|0,f+12|0,f+8|0);d=e<<2;i[d+k>>2]=i[f+12>>2];i[k+(d|4)>>2]=i[f+8>>2];h=1;e=e+2|0;a=a+1|0;g=i[c>>2];if(a>>>0>2]-g>>2>>>0){continue}break}break a}if(!d){h=1;break a}a=0;e=0;while(1){c=e;g=f+36|0;n=i[i[b>>2]>>2];o=i[b+48>>2];h=i[b+44>>2];l=i[b+40>>2];q=l;if(!j[b+84|0]){c=i[i[b+68>>2]+(e<<2)>>2]}c=xp(q,h,c,0)+o|0;kp(g,c+n|0,l);aa(f+16|0,f+36|0,f+12|0,f+8|0);c=a<<2;i[c+k>>2]=i[f+12>>2];i[k+(c|4)>>2]=i[f+8>>2];a=a+2|0;h=1;e=e+1|0;if((e|0)!=(d|0)){continue}break}}H=f+48|0;return h}function ed(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i[b>>2];e=i[c+4>>2]+(i[c>>2]-f<<3)|0;c=i[b+4>>2];g=e-c|0;a:{if((g|0)<=0){c=i[d+4>>2];break a}b:{if(!c){c=i[d+4>>2];break b}e=i[d+4>>2];j=32-e|0;l=32-c|0;h=(g|0)<(l|0)?g:l;k=j>>>0>>0?j:h;m=i[d>>2];f=i[f>>2]&(-1<>>l-h);i[m>>2]=i[m>>2]&(-1<>>j-k^-1)|(e>>>0>c>>>0?f<>>c-e|0);e=e+k|0;c=e&31;i[d+4>>2]=c;j=m+(e>>>3&536870908)|0;i[d>>2]=j;e=h-k|0;if((e|0)>=1){i[j>>2]=i[j>>2]&(-1>>>32-e^-1)|f>>>k+i[b+4>>2];i[d+4>>2]=e;c=e}g=g-h|0;f=i[b>>2]+4|0;i[b>>2]=f}k=-1<>2];f=i[f>>2];i[e>>2]=j&i[e>>2]|f<>2]=e+4;i[e+4>>2]=k&i[e+4>>2]|f>>>h;f=i[b>>2]+4|0;i[b>>2]=f;l=(g|0)>63;e=g+ -32|0;g=e;if(l){continue}break}}if((e|0)<1){break a}b=i[d>>2];g=(h|0)<(e|0)?h:e;j=i[b>>2]&(k&-1>>>h-g^-1);h=i[f>>2]&-1>>>32-e;i[b>>2]=j|h<>2]=c;f=b+(f>>>3&536870908)|0;i[d>>2]=f;b=e-g|0;if((b|0)<1){break a}i[f>>2]=i[f>>2]&(-1>>>32-b^-1)|h>>>g;i[d+4>>2]=b;c=b}b=i[d>>2];i[a+4>>2]=c;i[a>>2]=b}function ii(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=-1;a:{if((b|0)==-1){h=i[a+12>>2];d=1;e=-1;break a}h=i[a+12>>2];d=((b>>>0)%3|0?-1:2)+b|0;b:{if((d|0)==-1){d=1;break b}g=i[h+12>>2];while(1){f=d;e=i[g+(d<<2)>>2];if((e|0)!=-1){f=-1;d=e+1|0;d=(d>>>0)%3|0?d:e+ -2|0;if((d|0)!=-1){continue}}break}d=(e|0)!=-1;e=-1;if((b|0)==-1){break a}}e=i[i[h>>2]+(b<<2)>>2]}b=0;if(c){b=i[a+84>>2]+(e>>>3&536870908)|0;i[b>>2]=i[b>>2]|1<<(e&31);b=1}c=i[i[a+152>>2]+(e<<2)>>2];g=i[a+140>>2]+(c>>>3&536870908)|0;i[g>>2]=i[g>>2]|1<<(c&31);g=e;c=-1;c:{if(d){break c}d=((f>>>0)%3|0?-1:2)+f|0;c=-1;if((d|0)==-1){break c}c=i[i[h>>2]+(d<<2)>>2]}if((g|0)!=(c|0)){g=i[a+84>>2];while(1){a=f;f=g+(c>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<<(c&31);f=-1;c=-1;d:{if((a|0)==-1){break d}d=a+1|0;d=(d>>>0)%3|0?d:a+ -2|0;if((d|0)==-1){break d}j=i[h+12>>2];while(1){a=i[j+(d<<2)>>2];if((a|0)!=-1){d=a+1|0;d=(d>>>0)%3|0?d:a+ -2|0;if((d|0)!=-1){continue}break d}break}a=((d>>>0)%3|0?-1:2)+d|0;if((a|0)!=-1){c=i[i[h>>2]+(a<<2)>>2]}f=d}b=b+1|0;if((c|0)!=(e|0)){continue}break}}}function yn(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;h=H-32|0;H=h;f=d&2147483647;g=f;e=f+ -1065418752|0;f=c;j=f;if(f>>>0<0){e=e+1|0}l=j;k=g+ -1082064896|0;j=f;if(f>>>0<0){k=k+1|0}a:{if((e|0)==(k|0)&l>>>0>>0|e>>>0>>0){g=(d&33554431)<<7|c>>>25;f=0;k=f;j=c&33554431;if(!(!f&(j|0)==16777216?!(a|b):!f&j>>>0<16777216|f>>>0<0)){e=g+1073741825|0;break a}e=g+1073741824|0;if(j^16777216|a|(b|k)){break a}e=(e&1)+e|0;break a}if(!(!f&(g|0)==2147418112?!(a|b):(g|0)==2147418112&f>>>0<0|g>>>0<2147418112)){e=((d&33554431)<<7|c>>>25)&4194303|2143289344;break a}e=2139095040;if(g>>>0>1082064895){break a}e=0;g=g>>>16|0;if(g>>>0<16145){break a}e=d&65535|65536;un(h+16|0,a,b,c,e,g+ -16129|0);xn(h,a,b,f,e,16257-g|0);b=i[h+8>>2];e=(i[h+12>>2]&33554431)<<7|b>>>25;f=i[h+4>>2];g=f;a=0;j=a;k=i[h>>2]|((i[h+16>>2]|i[h+24>>2])!=0|(i[h+20>>2]|i[h+28>>2])!=0);b=b&33554431;if(!(!a&(b|0)==16777216?!(f|k):!a&b>>>0<16777216|a>>>0<0)){e=e+1|0;break a}if(b^16777216|k|(g|j)){break a}e=(e&1)+e|0}H=h+32|0;return Fp(2,d&-2147483648|e),Jp()}function wc(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=H-32|0;H=c;a:{b=i[a+16>>2];b:{if(b>>>0>=113){i[a+16>>2]=b+ -113;b=i[a+4>>2];i[c+8>>2]=i[b>>2];i[a+4>>2]=b+4;Ac(a,c+8|0);break b}c:{d=i[a+8>>2];e=d-i[a+4>>2]>>2;f=i[a+12>>2];b=f-i[a>>2]|0;if(e>>>0>2>>>0){if((d|0)==(f|0)){break c}g=c,h=ko(4068),i[g+8>>2]=h;Ac(a,c+8|0);break b}i[c+24>>2]=a+12;i[c+20>>2]=0;b=b?b>>1:1;if(b>>>0>=1073741824){break a}d=b<<2;b=ko(d);i[c+8>>2]=b;e=b+(e<<2)|0;i[c+16>>2]=e;i[c+20>>2]=b+d;i[c+12>>2]=e;g=c,h=ko(4068),i[g+4>>2]=h;Ac(c+8|0,c+4|0);b=i[a+8>>2];d=i[a+4>>2];if((b|0)!=(d|0)){while(1){b=b+ -4|0;Bc(c+8|0,b);d=i[a+4>>2];if((d|0)!=(b|0)){continue}break}b=i[a+8>>2]}e=i[a>>2];i[a>>2]=i[c+8>>2];i[c+8>>2]=e;i[a+4>>2]=i[c+12>>2];i[c+12>>2]=d;i[a+8>>2]=i[c+16>>2];i[c+16>>2]=b;f=i[a+12>>2];i[a+12>>2]=i[c+20>>2];i[c+20>>2]=f;if((b|0)!=(d|0)){i[c+16>>2]=(((b-d|0)+ -4>>>2^-1)<<2)+b}if(!e){break b}ep(e);break b}g=c,h=ko(4068),i[g+8>>2]=h;Bc(a,c+8|0);b=i[a+4>>2];i[c+8>>2]=i[b>>2];i[a+4>>2]=b+4;Ac(a,c+8|0)}H=c+32|0;return}Ba(1752);x()}function fg(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0,m=0,o=0,p=0,q=0,r=0;o=H-16|0;H=o;h=i[b+28>>2];f=a+8|0;g=i[b+24>>2];i[f>>2]=g;i[f+4>>2]=h;j=i[b+20>>2];i[a>>2]=i[b+16>>2];i[a+4>>2]=j;j=i[b+36>>2];i[a+16>>2]=i[b+32>>2];i[a+20>>2]=j;i[f>>2]=d+g;a:{b:{if((d|0)>=1){j=i[b>>2];f=0;while(1){g=i[b+4>>2]-j>>2;h=i[(f<<2)+c>>2];c:{if(g>>>0>h>>>0){break c}i[o+12>>2]=0;k=h+1|0;if(k>>>0>g>>>0){Hb(b,k-g|0,o+12|0);j=i[b>>2];break c}if(k>>>0>=g>>>0){break c}i[b+4>>2]=(k<<2)+j}k=(h<<2)+j|0;g=i[k>>2];d:{if((g|0)>=2){m=+(g|0);m=hp(m)*m;break d}m=0;if(g){break d}i[a+16>>2]=i[a+16>>2]+1;if(h>>>0<=l[a+12>>2]){break d}i[a+12>>2]=h}h=g+1|0;i[k>>2]=h;p=+(h|0);q=a,r=hp(p)*p-m+n[a>>3],n[q>>3]=r;f=f+1|0;if((f|0)!=(d|0)){continue}break}if(e){break b}if((d|0)<1){break a}a=i[b>>2];f=0;while(1){b=a+(i[(f<<2)+c>>2]<<2)|0;i[b>>2]=i[b>>2]+ -1;f=f+1|0;if((f|0)!=(d|0)){continue}break}break a}if(!e){break a}}d=i[a+4>>2];b=b+16|0;i[b>>2]=i[a>>2];i[b+4>>2]=d;i[b+16>>2]=i[a+16>>2];c=i[a+12>>2];i[b+8>>2]=i[a+8>>2];i[b+12>>2]=c}H=o+16|0}function ti(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=11424;i[a+72>>2]=0;i[a+76>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+88>>2]=0;i[a+92>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=1065353216;i[a+156>>2]=0;i[a+160>>2]=0;i[a+148>>2]=0;i[a+152>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+164>>2]=-1;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;nf(a+200|0);Vj(a+232|0);i[a+304>>2]=0;i[a+308>>2]=0;i[a+296>>2]=0;i[a+300>>2]=0;i[a+288>>2]=0;i[a+292>>2]=0;i[a+280>>2]=0;i[a+284>>2]=0;i[a+272>>2]=0;i[a+276>>2]=0;i[a+264>>2]=0;i[a+268>>2]=0;g[a+352|0]=0;i[a+344>>2]=0;i[a+336>>2]=0;i[a+340>>2]=0;i[a+328>>2]=2;i[a+332>>2]=7;i[a+320>>2]=-1;i[a+324>>2]=0;i[a+312>>2]=0;i[a+316>>2]=-1}function Pg(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0;e=1;a:{b:{c:{d:{e:{f:{switch(b-a>>2){case 2:d=i[c>>2];c=i[d>>2];d=i[d+4>>2]-c>>3;f=b+ -4|0;b=i[f>>2];if(d>>>0<=b>>>0){break e}g=d;d=i[a>>2];if(g>>>0<=d>>>0){break e}if(l[c+(b<<3)>>2]>=l[c+(d<<3)>>2]){break a}i[a>>2]=b;i[f>>2]=d;return 1;case 3:Og(a,a+4|0,b+ -4|0,c);return 1;case 4:Lg(a,a+4|0,a+8|0,b+ -4|0,c);return 1;case 5:Mg(a,a+4|0,a+8|0,a+12|0,b+ -4|0,c);return 1;case 0:case 1:break a;default:break f}}f=a+8|0;Og(a,a+4|0,f,c);e=a+12|0;if((e|0)==(b|0)){break c}d=i[c>>2];h=i[d>>2];j=i[d+4>>2]-h>>3;while(1){d=e;k=i[d>>2];if(j>>>0<=k>>>0){break d}e=i[f>>2];if(j>>>0<=e>>>0){break d}g=d;g:{m=h+(k<<3)|0;if(l[m>>2]>2]){while(1){h:{i[g>>2]=e;c=f;if((c|0)==(a|0)){c=a;break h}f=c+ -4|0;e=i[f>>2];if(j>>>0<=e>>>0){break d}g=c;if(l[m>>2]>2]){continue}}break}i[c>>2]=k;n=n+1|0;if((n|0)==8){break g}}f=d;e=d+4|0;if((e|0)==(b|0)){break c}continue}break}c=(d+4|0)==(b|0);a=0;break b}Lo();x()}Lo();x()}a=1}e=a|c}return e&1}function ad(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=H-32|0;H=d;a:{c=i[a+4>>2];b:{if(c>>>0>>0){g=i[a+8>>2];e=g<<5;f=b-c|0;c:{if(!(e>>>0>>0|c>>>0>e-f>>>0)){i[a+4>>2]=b;b=c&31;a=i[a>>2]+(c>>>3&536870908)|0;break c}i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;if((b|0)<=-1){break a}c=d+16|0;if(e>>>0<=1073741822){b=b+31&-32;e=g<<6;b=e>>>0>>0?b:e}else{b=2147483647}cd(c,b);c=i[a+4>>2];i[d+20>>2]=c+f;b=i[d+16>>2];d:{if((c|0)<1){c=0;break d}g=i[a>>2];h=c>>>5|0;e=h<<2;b=mp(b,g,e)+e|0;c=c-(h<<5)|0;if((c|0)<1){c=0;break d}h=-1>>>32-c|0;i[b>>2]=i[b>>2]&(h^-1)|h&i[e+g>>2]}i[d+12>>2]=c;i[d+8>>2]=b;c=i[d+8>>2];b=i[d+12>>2];e=i[a>>2];i[a>>2]=i[d+16>>2];i[d+16>>2]=e;g=i[a+4>>2];i[a+4>>2]=i[d+20>>2];i[d+20>>2]=g;g=i[a+8>>2];i[a+8>>2]=i[d+24>>2];i[d+24>>2]=g;if(e){ep(e)}a=c}if(!f){break b}if(b){c=32-b|0;e=c>>>0>f>>>0?f:c;i[a>>2]=i[a>>2]&(-1<>>c-e^-1);f=f-e|0;a=a+4|0}b=a;a=f>>>5<<2;b=lp(b,0,a);c=f&31;if(!c){break b}a=a+b|0;i[a>>2]=i[a>>2]&(-1>>>32-c^-1);break b}i[a+4>>2]=b}H=d+32|0;return}Ko();x()}function Lj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;g=H-16|0;H=g;a:{b:{c=i[a+8>>2];c:{if((c|0)==i[a+12>>2]){c=ko(76);Rb(c,b);i[g+8>>2]=c;b=i[a+12>>2];d:{if(b>>>0>2]){i[g+8>>2]=0;i[b>>2]=c;i[a+12>>2]=b+4;break d}Yh(a+8|0,g+8|0)}a=i[g+8>>2];i[g+8>>2]=0;if(!a){break c}K[i[i[a>>2]+4>>2]](a);break c}c=i[c>>2];a=i[c+8>>2];e=i[c+12>>2];e:{if((a|0)!=(e|0)){i[a>>2]=b;i[c+8>>2]=a+4;break e}f=i[c+4>>2];h=a-f|0;a=h>>2;d=a+1|0;if(d>>>0>=1073741824){break b}j=a<<2;e=e-f|0;a=e>>1;d=e>>2>>>0<536870911?a>>>0>>0?d:a:1073741823;a=0;f:{if(!d){break f}if(d>>>0>=1073741824){break a}a=ko(d<<2)}e=j+a|0;i[e>>2]=b;d=a+(d<<2)|0;e=e+4|0;if((h|0)>=1){kp(a,f,h)}i[c+12>>2]=d;i[c+8>>2]=e;i[c+4>>2]=a;if(!f){break e}ep(f)}a=i[c+16>>2];f=i[c+20>>2]-a>>2;g:{if((f|0)>(b|0)){break g}i[g+12>>2]=-1;d=b+1|0;if(d>>>0>f>>>0){a=c+16|0;Hb(a,d-f|0,g+12|0);a=i[a>>2];break g}if(d>>>0>=f>>>0){break g}i[c+20>>2]=(d<<2)+a}i[(b<<2)+a>>2]=(i[c+8>>2]-i[c+4>>2]>>2)+ -1}H=g+16|0;return 1}Ko();x()}Ba(13936);x()}function Vf(a,b,c,d){var e=0,f=0,h=0,k=0;k=H-16|0;H=k;e=ko(16);i[k>>2]=e;i[k+4>>2]=15;i[k+8>>2]=-2147483632;g[e+15|0]=0;f=j[10535]|j[10536]<<8|(j[10537]<<16|j[10538]<<24);h=j[10531]|j[10532]<<8|(j[10533]<<16|j[10534]<<24);g[e+7|0]=h;g[e+8|0]=h>>>8;g[e+9|0]=h>>>16;g[e+10|0]=h>>>24;g[e+11|0]=f;g[e+12|0]=f>>>8;g[e+13|0]=f>>>16;g[e+14|0]=f>>>24;f=j[10528]|j[10529]<<8|(j[10530]<<16|j[10531]<<24);h=j[10524]|j[10525]<<8|(j[10526]<<16|j[10527]<<24);g[e|0]=h;g[e+1|0]=h>>>8;g[e+2|0]=h>>>16;g[e+3|0]=h>>>24;g[e+4|0]=f;g[e+5|0]=f>>>8;g[e+6|0]=f>>>16;g[e+7|0]=f>>>24;f=b+4|0;e=bk(f,k,-1);if(g[k+11|0]<=-1){ep(i[k>>2])}a:{b:{c:{switch(e+1|0){case 0:if(($b(f)|0)==10){break b}break;case 2:break c;default:break b}}e=ko(68);mj(e);i[e+64>>2]=0;i[e>>2]=10936;break a}e=ko(64);mj(e);i[e>>2]=13204}i[e+56>>2]=c;ca(e,c);zj(a,e,f,d);if(!i[a>>2]){if(g[a+15|0]<=-1){ep(i[a+4>>2])}i[b+40>>2]=i[e+52>>2];i[b+44>>2]=i[e+60>>2];i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0}K[i[i[e>>2]+4>>2]](e);H=k+16|0}function yi(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;a:{b:{if(j[a+352|0]){break b}b=i[a+8>>2];f=i[b+12>>2]-i[b+8>>2]|0;g=f>>2;d=g+ -1|0;c=i[a+176>>2];b=i[a+172>>2];e=(c-b|0)/136|0;c:{if(d>>>0>e>>>0){ni(a+172|0,d-e|0);break c}if(d>>>0>=e>>>0){break c}d=b+o(d,136)|0;if((d|0)!=(c|0)){while(1){b=i[c+ -20>>2];if(b){i[c+ -16>>2]=b;ep(b)}b=c+ -136|0;e=i[c+ -32>>2];if(e){i[c+ -28>>2]=e;ep(e)}oi(c+ -132|0);c=b;if((b|0)!=(d|0)){continue}break}}i[a+176>>2]=d}if((f|0)==4|(f|0)<1){break b}n=(g|0)>1?g:1;c=0;while(1){f=i[i[i[a+8>>2]+8>>2]+(c<<2)>>2];if(i[f+56>>2]){g=o(m,136);h=g+i[a+172>>2]|0;i[h>>2]=c;d=h+108|0;k=i[h+104>>2];i[d>>2]=k;e=h+112|0;b=i[a+12>>2];b=i[b+4>>2]-i[b>>2]|0;l=b>>2;d:{if(i[e>>2]-k>>2>>>0>=l>>>0){break d}if(l>>>0>=1073741824){break a}b=ko(b);i[h+104>>2]=b;i[d>>2]=b;i[e>>2]=b+(l<<2);if(!k){break d}ep(k)}b=g+i[a+172>>2]|0;i[b+128>>2]=0;cm(b+4|0,i[a+8>>2],i[a+12>>2],f);m=m+1|0}c=c+1|0;if((n|0)!=(c|0)){continue}break}}return 1}Ba(11708);x()}function ei(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;a:{b:{if(j[a+288|0]){break b}b=i[a+8>>2];f=i[b+12>>2]-i[b+8>>2]|0;g=f>>2;d=g+ -1|0;c=i[a+176>>2];b=i[a+172>>2];e=(c-b|0)/136|0;c:{if(d>>>0>e>>>0){ni(a+172|0,d-e|0);break c}if(d>>>0>=e>>>0){break c}d=b+o(d,136)|0;if((d|0)!=(c|0)){while(1){b=i[c+ -20>>2];if(b){i[c+ -16>>2]=b;ep(b)}b=c+ -136|0;e=i[c+ -32>>2];if(e){i[c+ -28>>2]=e;ep(e)}oi(c+ -132|0);c=b;if((b|0)!=(d|0)){continue}break}}i[a+176>>2]=d}if((f|0)==4|(f|0)<1){break b}n=(g|0)>1?g:1;c=0;while(1){f=i[i[i[a+8>>2]+8>>2]+(c<<2)>>2];if(i[f+56>>2]){g=o(m,136);h=g+i[a+172>>2]|0;i[h>>2]=c;d=h+108|0;k=i[h+104>>2];i[d>>2]=k;e=h+112|0;b=i[a+12>>2];b=i[b+4>>2]-i[b>>2]|0;l=b>>2;d:{if(i[e>>2]-k>>2>>>0>=l>>>0){break d}if(l>>>0>=1073741824){break a}b=ko(b);i[h+104>>2]=b;i[d>>2]=b;i[e>>2]=b+(l<<2);if(!k){break d}ep(k)}b=g+i[a+172>>2]|0;i[b+128>>2]=0;cm(b+4|0,i[a+8>>2],i[a+12>>2],f);m=m+1|0}c=c+1|0;if((n|0)!=(c|0)){continue}break}}return 1}Ba(11708);x()}function hb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ko(b<<2);d=i[a>>2];i[a>>2]=c;if(d){ep(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Ap(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|i[d+8>>2]!=i[c+8>>2]|(i[d+12>>2]!=i[c+12>>2]|i[d+16>>2]!=i[c+16>>2])){break f}if(i[d+20>>2]==i[c+20>>2]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){ep(b)}i[a+4>>2]=0}return}Ba(1352);x()}function Fb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ko(b<<2);d=i[a>>2];i[a>>2]=c;if(d){ep(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Ap(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|k[d+8>>1]!=k[c+8>>1]|(k[d+10>>1]!=k[c+10>>1]|k[d+12>>1]!=k[c+12>>1])){break f}if(k[d+14>>1]==k[c+14>>1]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){ep(b)}i[a+4>>2]=0}return}Ba(1352);x()}function bm(a,b){var c=0,d=0,e=0,f=0,h=0,j=0;j=H-16|0;H=j;a:{b:{if(b){i[a+88>>2]=0;i[a+92>>2]=0;c=a+84|0;d=i[c>>2];i[c>>2]=0;if(d){ep(d)}i[a+76>>2]=0;i[a+80>>2]=0;c=a+72|0;d=i[c>>2];i[c>>2]=0;if(d){ep(d)}d=i[b>>2];c=i[b+4>>2];g[j+15|0]=0;Vh(a,c-d>>2,j+15|0);c=b+28|0;d=i[c>>2];e=i[b+24>>2];g[j+14|0]=0;Vh(a+12|0,d-e>>2,j+14|0);Th(a+28|0,i[b+4>>2]-i[b>>2]>>2,16716);d=i[a+52>>2];e=i[c>>2]-i[b+24>>2]|0;c=e>>2;c:{if(i[a+60>>2]-d>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break b}f=i[a+56>>2];h=c<<2;c=ko(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){kp(c,d,e)}i[a+60>>2]=h;i[a+56>>2]=f;i[a+52>>2]=c;if(!d){break c}ep(d)}d=i[a+40>>2];e=i[b+28>>2]-i[b+24>>2]|0;c=e>>2;d:{if(i[a+48>>2]-d>>2>>>0>=c>>>0){break d}if(c>>>0>=1073741824){break a}f=i[a+44>>2];h=c<<2;c=ko(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){kp(c,d,e)}i[a+48>>2]=h;i[a+44>>2]=f;i[a+40>>2]=c;if(!d){break d}ep(d)}g[a+24|0]=1;i[a+64>>2]=b}H=j+16|0;return(b|0)!=0}Ba(16720);x()}Ba(16720);x()}function pe(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0;f=H-16|0;H=f;if(!(!gd(a,b,c)|j[i[a+8>>2]+24|0]!=3)){h=i[b+48>>2];b=ko(32);i[f>>2]=b;i[f+4>>2]=17;i[f+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[6044];d=j[6040]|j[6041]<<8|(j[6042]<<16|j[6043]<<24);e=j[6036]|j[6037]<<8|(j[6038]<<16|j[6039]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[6032]|j[6033]<<8|(j[6034]<<16|j[6035]<<24);e=j[6028]|j[6029]<<8|(j[6030]<<16|j[6031]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;a:{b:{e=h+16|0;b=i[e>>2];if(!b){break b}d=e;while(1){k=i[b+16>>2]<(c|0);d=k?d:b;b=i[(k<<2)+b>>2];if(b){continue}break}if((d|0)==(e|0)|i[d+16>>2]>(c|0)){break b}b=d+20|0;if(!Tb(b,f)){break b}b=bk(b,f,-1);break a}b=bk(h,f,-1)}if(g[f+11|0]<=-1){ep(i[f>>2])}if((b|0)>=1){ca(a+40|0,b)}d=(b|0)>0}H=f+16|0;return d|0}function tb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ko(b<<2);d=i[a>>2];i[a>>2]=c;if(d){ep(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Ap(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;k=h+i[a>>2]|0;if(!i[k>>2]){i[k>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|j[d+8|0]!=j[c+8|0]|(j[d+9|0]!=j[c+9|0]|j[d+10|0]!=j[c+10|0])){break f}if(j[d+11|0]==j[c+11|0]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){ep(b)}i[a+4>>2]=0}return}Ba(1352);x()}function wa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,m=0,n=0;e=i[a+12>>2];d=i[a+8>>2];f=e-d>>2;b=g[b+24|0];a:{if(f>>>0>>0){ma(a+8|0,b-f|0);d=i[a+8>>2];e=i[a+12>>2];break a}if(f>>>0<=b>>>0){break a}e=(b<<2)+d|0;i[a+12>>2]=e}b=0;h=i[c+12>>2];f=i[c+20>>2];k=i[c+16>>2];m=e-d|0;e=m;n=k+e|0;if(n>>>0>>0){f=f+1|0}b:{if((h|0)<(f|0)?1:(h|0)<=(f|0)?l[c+8>>2]>>0:0){break b}kp(d,k+i[c>>2]|0,m);d=i[c+20>>2];h=e+i[c+16>>2]|0;if(h>>>0>>0){d=d+1|0}e=h;i[c+16>>2]=e;i[c+20>>2]=d;f=i[c+12>>2];h=e+4|0;if(h>>>0<4){d=d+1|0}if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]>>0:0){break b}d=e+i[c>>2]|0;i[a+20>>2]=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);d=i[c+20>>2];e=d;k=i[c+16>>2];h=k+4|0;if(h>>>0<4){d=d+1|0}i[c+16>>2]=h;i[c+20>>2]=d;f=i[c+12>>2];if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]<=h>>>0:0){break b}f=j[h+i[c>>2]|0];d=e;e=k+5|0;if(e>>>0<5){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;if(f+ -1>>>0>29){break b}i[a+4>>2]=f;b=1}return b|0}function Tf(a,b,c){var d=0,e=0,f=0;e=H-16|0;H=e;d=i[b+48>>2];a:{if(!d){b=ko(32);i[e>>2]=b;i[e+4>>2]=23;i[e+8>>2]=-2147483616;g[b+23|0]=0;c=j[10519]|j[10520]<<8|(j[10521]<<16|j[10522]<<24);d=j[10515]|j[10516]<<8|(j[10517]<<16|j[10518]<<24);g[b+15|0]=d;g[b+16|0]=d>>>8;g[b+17|0]=d>>>16;g[b+18|0]=d>>>24;g[b+19|0]=c;g[b+20|0]=c>>>8;g[b+21|0]=c>>>16;g[b+22|0]=c>>>24;c=j[10512]|j[10513]<<8|(j[10514]<<16|j[10515]<<24);d=j[10508]|j[10509]<<8|(j[10510]<<16|j[10511]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[10504]|j[10505]<<8|(j[10506]<<16|j[10507]<<24);d=j[10500]|j[10501]<<8|(j[10502]<<16|j[10503]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;uo(a+4|0,e);if(g[e+11|0]>-1){break a}ep(i[e>>2]);break a}f=i[b+52>>2];if(!f){Uf(a,b,d,c);break a}Vf(a,b,f,c)}H=e+16|0}function Ri(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i[a+12>>2];d=i[a+108>>2];e=i[d+80>>2];g[b+84|0]=0;f=i[b+68>>2];c=i[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){Ya(b+68|0,e-c|0,12320);d=i[a+108>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=f+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}p=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=i[n>>2]+(o(d,3)<<2)|0;j=i[c>>2];if((j|0)==-1){break c}f=o(d,12)+m|0;h=i[f>>2];if(h>>>0>=e>>>0){break c}l=i[i[a+112>>2]+12>>2];k=i[l+(j<<2)>>2];if(k>>>0>=e>>>0){break c}j=i[b+68>>2];i[j+(h<<2)>>2]=k;h=i[c+4>>2];if((h|0)==-1){break c}k=i[f+4>>2];if(k>>>0>=e>>>0){break c}h=i[(h<<2)+l>>2];if(h>>>0>=e>>>0){break c}i[j+(k<<2)>>2]=h;c=i[c+8>>2];if((c|0)==-1){break c}f=i[f+8>>2];if(f>>>0>=e>>>0){break c}c=i[(c<<2)+l>>2];if(c>>>0>=e>>>0){break c}i[j+(f<<2)>>2]=c;c=1;d=d+1|0;if((p|0)!=(d|0)){continue}break b}break}c=0}return c|0}function aj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i[a+12>>2];d=i[a+68>>2];e=i[d+80>>2];g[b+84|0]=0;f=i[b+68>>2];c=i[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){Ya(b+68|0,e-c|0,12320);d=i[a+68>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=f+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}p=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=i[n>>2]+(o(d,3)<<2)|0;j=i[c>>2];if((j|0)==-1){break c}f=o(d,12)+m|0;h=i[f>>2];if(h>>>0>=e>>>0){break c}l=i[i[a+72>>2]+12>>2];k=i[l+(j<<2)>>2];if(k>>>0>=e>>>0){break c}j=i[b+68>>2];i[j+(h<<2)>>2]=k;h=i[c+4>>2];if((h|0)==-1){break c}k=i[f+4>>2];if(k>>>0>=e>>>0){break c}h=i[(h<<2)+l>>2];if(h>>>0>=e>>>0){break c}i[j+(k<<2)>>2]=h;c=i[c+8>>2];if((c|0)==-1){break c}f=i[f+8>>2];if(f>>>0>=e>>>0){break c}c=i[(c<<2)+l>>2];if(c>>>0>=e>>>0){break c}i[j+(f<<2)>>2]=c;c=1;d=d+1|0;if((p|0)!=(d|0)){continue}break b}break}c=0}return c|0}function fb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ko(b<<2);d=i[a>>2];i[a>>2]=c;if(d){ep(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Ap(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|i[d+8>>2]!=i[c+8>>2]|i[d+12>>2]!=i[c+12>>2]){break f}if(i[d+16>>2]==i[c+16>>2]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){ep(b)}i[a+4>>2]=0}return}Ba(1352);x()}function Db(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ko(b<<2);d=i[a>>2];i[a>>2]=c;if(d){ep(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Ap(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|k[d+8>>1]!=k[c+8>>1]|k[d+10>>1]!=k[c+10>>1]){break f}if(k[d+12>>1]==k[c+12>>1]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){ep(b)}i[a+4>>2]=0}return}Ba(1352);x()}function Cm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;j=a+8|0;d=i[a+12>>2];h=i[a+8>>2];e=d-h>>2;a:{if((e|0)>(b|0)){break a}f=b+1|0;if(f>>>0>e>>>0){Dm(j,f-e|0);break a}if(f>>>0>=e>>>0){break a}e=h+(f<<2)|0;if((e|0)!=(d|0)){while(1){d=d+ -4|0;f=i[d>>2];i[d>>2]=0;if(f){Xb(f)}if((d|0)!=(e|0)){continue}break}}i[a+12>>2]=e}b:{c:{d=i[i[c>>2]+56>>2];d:{if((d|0)>4){break d}d=o(d,12)+a|0;f=d+24|0;a=i[f>>2];k=d+28|0;g=i[k>>2];if((a|0)!=(g|0)){i[a>>2]=b;i[f>>2]=a+4;break d}l=d+20|0;d=i[l>>2];h=a-d|0;a=h>>2;e=a+1|0;if(e>>>0>=1073741824){break c}m=a<<2;g=g-d|0;a=g>>1;e=g>>2>>>0<536870911?a>>>0>>0?e:a:1073741823;a=0;e:{if(!e){break e}if(e>>>0>=1073741824){break b}a=ko(e<<2)}g=m+a|0;i[g>>2]=b;e=a+(e<<2)|0;g=g+4|0;if((h|0)>=1){kp(a,d,h)}i[l>>2]=a;i[f>>2]=g;i[k>>2]=e;if(!d){break d}ep(d)}d=i[c>>2];i[d+60>>2]=b;a=i[j>>2];i[c>>2]=0;b=a+(b<<2)|0;a=i[b>>2];i[b>>2]=d;if(a){Xb(a)}return}Ko();x()}Ba(16928);x()}function Si(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=H-16|0;H=g;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+28>>2]-i[c+24>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];h=c<<2;c=ko(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){kp(c,d,e)}i[b+8>>2]=h;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}ep(d)}b=i[a+12>>2];d=i[b+28>>2];b=i[b+24>>2];i[g+12>>2]=0;b=d-b>>2;c=a+96|0;e=i[c>>2];d=i[a+100>>2]-e>>2;c:{if(b>>>0>d>>>0){Hb(c,b-d|0,g+12|0);break c}if(b>>>0>=d>>>0){break c}i[a+100>>2]=e+(b<<2)}e=a+8|0;b=i[a+116>>2];d:{if(b){d=1;c=i[b>>2];if((c|0)==i[b+4>>2]){break d}b=0;while(1){d=Ti(e,i[(b<<2)+c>>2]);if(!d){break d}f=i[a+116>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break d}d=1;a=i[a+12>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break d}b=0;while(1){d=Ti(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break d}if(d){continue}break}}H=g+16|0;return d|0}Ba(11708);x()}function dc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=H-16|0;H=d;i[a+8>>2]=b;i[a>>2]=0;oc(a+12|0);nf(a+1036|0);jf(a+1068|0);jf(a+1088|0);jf(a+1108|0);i[a+1136>>2]=0;i[a+1128>>2]=0;i[a+1132>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}e=b<<2;c=ko(e);i[a+1128>>2]=c;f=c+e|0;i[a+1136>>2]=f;lp(c,0,e);i[a+1132>>2]=f}i[a+1140>>2]=0;i[a+1144>>2]=0;i[a+1148>>2]=0;if(b){e=b<<2;c=ko(e);i[a+1140>>2]=c;f=c+e|0;i[a+1148>>2]=f;lp(c,0,e);i[a+1144>>2]=f}i[a+1152>>2]=0;i[a+1156>>2]=0;i[a+1160>>2]=0;if(b){e=b<<2;c=ko(e);i[a+1152>>2]=c;f=c+e|0;i[a+1160>>2]=f;lp(c,0,e);i[a+1156>>2]=f}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;g=a+1164|0;e=b<<5|1;if(b){c=b<<2;f=ko(c);i[d>>2]=f;h=c+f|0;i[d+8>>2]=h;lp(f,0,c);i[d+4>>2]=h}pc(g,e,d);c=i[d>>2];if(c){i[d+4>>2]=c;ep(c)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=a+1176|0;if(b){b=b<<2;c=ko(b);i[d>>2]=c;g=b+c|0;i[d+8>>2]=g;lp(c,0,b);i[d+4>>2]=g}pc(f,e,d);b=i[d>>2];if(b){i[d+4>>2]=b;ep(b)}H=d+16|0;return a}Ko();x()}function rb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ko(b<<2);d=i[a>>2];i[a>>2]=c;if(d){ep(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Ap(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;k=h+i[a>>2]|0;if(!i[k>>2]){i[k>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|j[d+8|0]!=j[c+8|0]|j[d+9|0]!=j[c+9|0]){break f}if(j[d+10|0]==j[c+10|0]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){ep(b)}i[a+4>>2]=0}return}Ba(1352);x()}function Ci(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if((e-c|0)/12>>>0>=b>>>0){if(b){h=c;b=o(b,12);c=b+ -12|0;c=lp(h,0,(c-((c>>>0)%12|0)|0)+12|0)+b|0}i[a+4>>2]=c;return}a:{b:{c:{j=i[a>>2];f=(c-j|0)/12|0;d=f+b|0;if(d>>>0<357913942){f=o(f,12);e=(e-j|0)/12|0;g=e<<1;e=e>>>0<178956970?g>>>0>>0?d:g:357913941;if(e){if(e>>>0>=357913942){break c}h=ko(o(e,12))}d=f+h|0;b=o(b,12);f=lp(d,0,b-((b+ -12>>>0)%12|0)|0);g=b+f|0;b=o(e,12)+h|0;if((c|0)==(j|0)){break b}while(1){d=d+ -12|0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;c=c+ -12|0;i[d>>2]=i[c>>2];i[d+4>>2]=i[c+4>>2];i[d+8>>2]=i[c+8>>2];i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;if((c|0)!=(j|0)){continue}break}i[a+8>>2]=b;b=i[a+4>>2];i[a+4>>2]=g;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){a=b+ -12|0;d=i[a>>2];if(d){i[b+ -8>>2]=d;ep(d)}b=a;if((b|0)!=(c|0)){continue}break}break a}Ko();x()}Ba(11708);x()}i[a+8>>2]=b;i[a+4>>2]=g;i[a>>2]=f}if(c){ep(c)}}function gj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;j=i[a+12>>2];d=i[a+68>>2];e=i[d+80>>2];g[b+84|0]=0;h=i[b+68>>2];c=i[b+72>>2]-h>>2;a:{if(e>>>0>c>>>0){Ya(b+68|0,e-c|0,12320);d=i[a+68>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=h+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}n=d>>>0>1?d:1;p=i[j+28>>2];d=0;b:{while(1){c:{c=(o(d,3)<<2)+p|0;h=i[c>>2];if((h|0)==-1){break c}j=o(d,12)+m|0;k=i[j>>2];if(k>>>0>=e>>>0){break c}f=h<<2;h=i[i[a+72>>2]+12>>2];f=i[f+h>>2];if(f>>>0>=e>>>0){break c}l=k<<2;k=i[b+68>>2];i[l+k>>2]=f;f=i[c+4>>2];if((f|0)==-1){break c}l=i[j+4>>2];if(l>>>0>=e>>>0){break c}f=i[h+(f<<2)>>2];if(f>>>0>=e>>>0){break c}i[k+(l<<2)>>2]=f;c=i[c+8>>2];if((c|0)==-1){break c}j=i[j+8>>2];if(j>>>0>=e>>>0){break c}c=i[h+(c<<2)>>2];if(c>>>0>=e>>>0){break c}i[k+(j<<2)>>2]=c;c=1;d=d+1|0;if((n|0)!=(d|0)){continue}break b}break}c=0}return c|0}function xc(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0;g=i[a+8>>2];a:{b:{c:{h=i[c>>2];f=i[b>>2];k=h-f|0;if(k>>>0>=64){if(g){break c}b=0;break b}b=0;if(g>>>0<2){break a}a=i[e>>2];c=1;while(1){b=l[a+(b<<2)>>2]>l[a+(c<<2)>>2]?c:b;c=c+1|0;if((g|0)!=(c|0)){continue}break}break a}g=i[b+8>>2];m=i[b+4>>2];n=i[d>>2];p=i[a+1140>>2];q=i[e>>2];r=i[a+1128>>2];while(1){b=j<<2;d=b+r|0;i[d>>2]=0;c=i[a>>2]-i[b+q>>2]|0;i[b+p>>2]=c;if(c){d:{if((f|0)==(h|0)){c=i[d>>2];break d}e=i[b+n>>2]+(1<>2]|0;c=i[d>>2];b=f;while(1){c=(l[s+(o(b,g)<<2)>>2]>>0)+c|0;i[d>>2]=c;b=b+1|0;if((h|0)!=(b|0)){continue}break}}b=k-c|0;i[d>>2]=b>>>0>>0?c:b}j=j+1|0;e=i[a+8>>2];if(j>>>0>>0){continue}break}if(!e){b=0;break b}g=i[a+1140>>2];c=0;d=0;b=0;while(1){f=c<<2;if(i[f+g>>2]){h=i[f+i[a+1128>>2]>>2];f=d>>>0>>0;d=f?h:d;b=f?c:b}c=c+1|0;if((e|0)!=(c|0)){continue}break}}zc(a+1088|0,4,b)}return b}function db(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ko(b<<2);d=i[a>>2];i[a>>2]=c;if(d){ep(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Ap(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|i[d+8>>2]!=i[c+8>>2]){break f}if(i[d+12>>2]==i[c+12>>2]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){ep(b)}i[a+4>>2]=0}return}Ba(1352);x()}function Bb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ko(b<<2);d=i[a>>2];i[a>>2]=c;if(d){ep(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Ap(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|k[d+8>>1]!=k[c+8>>1]){break f}if(k[d+10>>1]==k[c+10>>1]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){ep(b)}i[a+4>>2]=0}return}Ba(1352);x()}function pb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ko(b<<2);d=i[a>>2];i[a>>2]=c;if(d){ep(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Ap(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;k=h+i[a>>2]|0;if(!i[k>>2]){i[k>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|j[d+8|0]!=j[c+8|0]){break f}if(j[d+9|0]==j[c+9|0]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){ep(b)}i[a+4>>2]=0}return}Ba(1352);x()}function ae(a){var b=0,c=0,d=0;b=i[a+8>>2];d=i[a>>2];a:{if(j[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;if((b|0)==-1|i[i[d>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){break e}b=i[i[i[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}i[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;i[a+8>>2]=b;if((b|0)!=-1){break b}}b=-1;c=i[a+4>>2];f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1|i[i[d>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1){break f}d=i[i[i[d+64>>2]+12>>2]+(c<<2)>>2];if((d|0)==-1){break f}if((d>>>0)%3|0){b=d+ -1|0;break f}b=d+2|0}g[a+12|0]=0;i[a+8>>2]=b;return}if((b|0)!=i[a+4>>2]){break a}i[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)==-1|i[i[d>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1){break g}b=i[i[i[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break g}if((b>>>0)%3|0){c=b+ -1|0;break g}c=b+2|0}i[a+8>>2]=c}}function fc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=H-16|0;H=d;i[a+8>>2]=b;i[a>>2]=0;nf(a+12|0);jf(a+44|0);jf(a- -64|0);jf(a+84|0);i[a+112>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}e=b<<2;c=ko(e);i[a+104>>2]=c;f=c+e|0;i[a+112>>2]=f;lp(c,0,e);i[a+108>>2]=f}i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;if(b){e=b<<2;c=ko(e);i[a+116>>2]=c;f=c+e|0;i[a+124>>2]=f;lp(c,0,e);i[a+120>>2]=f}i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;if(b){e=b<<2;c=ko(e);i[a+128>>2]=c;f=c+e|0;i[a+136>>2]=f;lp(c,0,e);i[a+132>>2]=f}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;g=a+140|0;e=b<<5|1;if(b){c=b<<2;f=ko(c);i[d>>2]=f;h=c+f|0;i[d+8>>2]=h;lp(f,0,c);i[d+4>>2]=h}pc(g,e,d);c=i[d>>2];if(c){i[d+4>>2]=c;ep(c)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=a+152|0;if(b){b=b<<2;c=ko(b);i[d>>2]=c;g=b+c|0;i[d+8>>2]=g;lp(c,0,b);i[d+4>>2]=g}pc(f,e,d);b=i[d>>2];if(b){i[d+4>>2]=b;ep(b)}H=d+16|0;return a}Ko();x()}function ic(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=H-16|0;H=d;i[a+8>>2]=b;i[a>>2]=0;jf(a+12|0);jf(a+32|0);jf(a+52|0);jf(a+72|0);i[a+100>>2]=0;i[a+92>>2]=0;i[a+96>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}e=b<<2;c=ko(e);i[a+92>>2]=c;f=c+e|0;i[a+100>>2]=f;lp(c,0,e);i[a+96>>2]=f}i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;if(b){e=b<<2;c=ko(e);i[a+104>>2]=c;f=c+e|0;i[a+112>>2]=f;lp(c,0,e);i[a+108>>2]=f}i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;if(b){e=b<<2;c=ko(e);i[a+116>>2]=c;f=c+e|0;i[a+124>>2]=f;lp(c,0,e);i[a+120>>2]=f}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;g=a+128|0;e=b<<5|1;if(b){c=b<<2;f=ko(c);i[d>>2]=f;h=c+f|0;i[d+8>>2]=h;lp(f,0,c);i[d+4>>2]=h}pc(g,e,d);c=i[d>>2];if(c){i[d+4>>2]=c;ep(c)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=a+140|0;if(b){b=b<<2;c=ko(b);i[d>>2]=c;g=b+c|0;i[d+8>>2]=g;lp(c,0,b);i[d+4>>2]=g}pc(f,e,d);b=i[d>>2];if(b){i[d+4>>2]=b;ep(b)}H=d+16|0;return a}Ko();x()}function ba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=p(0),f=p(0),h=p(0),k=p(0),l=p(0),m=0,n=p(0),o=p(0),r=p(0),s=p(0),u=0;a:{if(i[c+28>>2]!=9|j[c+24|0]!=3){break a}a=i[a+4>>2];if(a+ -2>>>0>28){break a}u=1;m=i[c+80>>2];if(!m){break a}n=p(p(2)/p((1<>2]>>2]+i[c+48>>2]|0;a=i[i[b>>2]>>2]+i[b+48>>2]|0;b=0;while(1){h=p(0);o=p(0);r=p(0);e=p(p(n*p(i[a>>2]))+p(-1));f=p(p(n*p(i[a+4>>2]))+p(-1));l=p(p(p(1)-p(q(e)))-p(q(f)));k=p(t(p(-l),p(0)));s=p(-k);f=p(f+(f>>8;g[c+10|0]=d>>>16;g[c+11|0]=d>>>24;d=(Ip(o),Ep(2));g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;d=(Ip(h),Ep(2));g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;c=c+12|0;b=b+1|0;if((m|0)!=(b|0)){continue}break}}return u|0}function ud(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+4>>2]=b;i[a>>2]=3184;b=c;e=i[b+8>>2];f=i[b+12>>2];h=i[b+16>>2];j=i[b+20>>2];k=i[b>>2];l=i[b+4>>2];i[a+40>>2]=0;g=a+32|0;i[g>>2]=0;i[g+4>>2]=0;i[a+24>>2]=h;i[a+28>>2]=j;i[a+16>>2]=e;i[a+20>>2]=f;i[a+8>>2]=k;i[a+12>>2]=l;a:{b=i[b+28>>2]-i[b+24>>2]|0;if(b){e=b>>2;if(e>>>0>=1073741824){break a}b=ko(b);i[a+32>>2]=b;i[a+36>>2]=b;i[a+40>>2]=b+(e<<2);e=a;f=i[c+24>>2];c=i[c+28>>2]-f|0;if((c|0)>=1){b=kp(b,f,c)+c|0}i[e+36>>2]=b}i[a>>2]=4748;b=i[d+4>>2];i[a+44>>2]=i[d>>2];i[a+48>>2]=b;b=d+8|0;e=i[b+4>>2];i[a+52>>2]=i[b>>2];i[a+56>>2]=e;c=a- -64|0;i[c>>2]=0;i[c+4>>2]=0;i[a+60>>2]=5848;i[a>>2]=5264;c=i[d+4>>2];i[a+72>>2]=i[d>>2];i[a+76>>2]=c;c=i[b+4>>2];i[a+80>>2]=i[b>>2];i[a+84>>2]=c;i[a+104>>2]=1065353216;i[a+108>>2]=-1;i[a+96>>2]=-1;i[a+100>>2]=-1;i[a+88>>2]=1;i[a+92>>2]=-1;i[a+60>>2]=5484;nf(a+112|0);return}Ko();x()}function td(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+4>>2]=b;i[a>>2]=3184;b=c;e=i[b+8>>2];f=i[b+12>>2];h=i[b+16>>2];j=i[b+20>>2];k=i[b>>2];l=i[b+4>>2];i[a+40>>2]=0;g=a+32|0;i[g>>2]=0;i[g+4>>2]=0;i[a+24>>2]=h;i[a+28>>2]=j;i[a+16>>2]=e;i[a+20>>2]=f;i[a+8>>2]=k;i[a+12>>2]=l;a:{b=i[b+28>>2]-i[b+24>>2]|0;if(b){e=b>>2;if(e>>>0>=1073741824){break a}b=ko(b);i[a+32>>2]=b;i[a+36>>2]=b;i[a+40>>2]=b+(e<<2);e=a;f=i[c+24>>2];c=i[c+28>>2]-f|0;if((c|0)>=1){b=kp(b,f,c)+c|0}i[e+36>>2]=b}i[a>>2]=3128;b=i[d+4>>2];i[a+44>>2]=i[d>>2];i[a+48>>2]=b;b=d+8|0;e=i[b+4>>2];i[a+52>>2]=i[b>>2];i[a+56>>2]=e;c=a- -64|0;i[c>>2]=0;i[c+4>>2]=0;i[a+60>>2]=4352;i[a>>2]=3724;c=i[d+4>>2];i[a+72>>2]=i[d>>2];i[a+76>>2]=c;c=i[b+4>>2];i[a+80>>2]=i[b>>2];i[a+84>>2]=c;i[a+104>>2]=1065353216;i[a+108>>2]=-1;i[a+96>>2]=-1;i[a+100>>2]=-1;i[a+88>>2]=1;i[a+92>>2]=-1;i[a+60>>2]=3960;nf(a+112|0);return}Ko();x()}function ea(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0;m=d-c|0;if((m|0)<1){return}k=i[a+8>>2];l=i[a+4>>2];if((m|0)<=(k-l|0)){k=l-b|0;a:{if((m|0)<=(k|0)){f=d;e=l;d=e;break a}f=c+k|0;b:{if((f|0)==(d|0)){e=l;break b}e=l;h=f;while(1){g[e|0]=j[h|0];e=e+1|0;h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+4>>2]=e;if((k|0)<1){return}d=e}k=e-(b+m|0)|0;h=e-m|0;if(h>>>0>>0){e=d;while(1){g[e|0]=j[h|0];e=e+1|0;h=h+1|0;if(h>>>0>>0){continue}break}}i[a+4>>2]=e;if(k){mp(d-k|0,b,k)}if((c|0)==(f|0)){return}e=b;while(1){g[e|0]=j[c|0];e=e+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}return}e=i[a>>2];f=(l-e|0)+m|0;if((f|0)>-1){h=b-e|0;n=h;k=k-e|0;d=k<<1;f=k>>>0<1073741823?d>>>0>>0?f:d:2147483647;d=0;c:{if(!f){break c}d=ko(f)}c=kp(n+d|0,c,m);if((h|0)>=1){kp(d,e,h)}f=d+f|0;c=c+m|0;l=l-b|0;if((l|0)>=1){c=kp(c,b,l)+l|0}i[a+8>>2]=f;i[a+4>>2]=c;i[a>>2]=d;if(e){ep(e)}return}Ko();x()}function ai(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=H-16|0;H=c;b=i[i[a+184>>2]+(b<<2)>>2];g[c+15|0]=b;a:{b:{e=i[i[a+4>>2]+44>>2];d=i[e+20>>2];if((d|0)<0?1:(d|0)<=0?l[e+16>>2]<=0:0){ea(e,i[e+4>>2],c+15|0,c+16|0);b=j[c+15|0]}c:{if(b<<24>>24<=-1){e=i[a+68>>2];break c}b=i[i[a+172>>2]+o(b&255,136)>>2];d=K[i[i[a>>2]+40>>2]](a)|0;f=i[a+172>>2]+o(g[c+15|0],136)|0;e=i[f+132>>2];d:{switch(i[i[i[d+56>>2]+84>>2]+(b<<2)>>2]){case 0:break c;case 1:break d;default:break b}}if(!j[f+28|0]){break b}}b=i[i[a+4>>2]+44>>2];g[c+14|0]=0;d=i[b+20>>2];if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break a}ea(b,i[b+4>>2],c+14|0,c+15|0);break a}b=i[i[a+4>>2]+44>>2];g[c+13|0]=1;d=i[b+20>>2];if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break a}ea(b,i[b+4>>2],c+13|0,c+14|0)}a=i[i[a+4>>2]+44>>2];g[c+12|0]=e;b=i[a+20>>2];if((b|0)<0?1:(b|0)<=0?l[a+16>>2]<=0:0){ea(a,i[a+4>>2],c+12|0,c+13|0)}H=c+16|0;return 1}function Ej(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;k=H-16|0;H=k;c=i[a+4>>2];i[a+8>>2]=c;g=i[a+16>>2];i[a+20>>2]=g;a:{b:{h=i[b>>2];m=i[b+4>>2];if((h|0)!=(m|0)){l=a+16|0;b=c;while(1){j=i[h>>2];f=i[a+12>>2];c:{if((f|0)!=(b|0)){i[b>>2]=j;i[a+8>>2]=b+4;break c}f=f-c|0;e=f>>2;d=e+1|0;if(d>>>0>=1073741824){break b}b=f>>1;d=e>>>0<536870911?b>>>0>>0?d:b:1073741823;b=0;d:{if(!d){break d}if(d>>>0>=1073741824){break a}b=ko(d<<2)}e=b+(e<<2)|0;i[e>>2]=j;d=b+(d<<2)|0;e=e+4|0;if((f|0)>=1){kp(b,c,f)}i[a+12>>2]=d;i[a+8>>2]=e;i[a+4>>2]=b;if(!c){break c}ep(c);g=i[l>>2]}b=i[a+20>>2]-g>>2;e:{if((j|0)<(b|0)){break e}i[k+12>>2]=-1;c=j+1|0;if(c>>>0>b>>>0){Hb(l,c-b|0,k+12|0);g=i[l>>2];break e}if(c>>>0>=b>>>0){break e}i[a+20>>2]=(c<<2)+g}b=i[a+8>>2];c=i[a+4>>2];i[(j<<2)+g>>2]=(b-c>>2)+ -1;h=h+4|0;if((m|0)!=(h|0)){continue}break}}H=k+16|0;return}Ko();x()}Ba(13760);x()}function lj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ko(b<<2);d=i[a>>2];i[a>>2]=c;if(d){ep(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Ap(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(i[d+8>>2]==i[c+8>>2]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){ep(b)}i[a+4>>2]=0}return}Ba(11708);x()}function zb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ko(b<<2);d=i[a>>2];i[a>>2]=c;if(d){ep(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Ap(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(k[d+8>>1]==k[c+8>>1]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){ep(b)}i[a+4>>2]=0}return}Ba(1352);x()}function bb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ko(b<<2);d=i[a>>2];i[a>>2]=c;if(d){ep(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Ap(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(i[d+8>>2]==i[c+8>>2]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){ep(b)}i[a+4>>2]=0}return}Ba(1352);x()}function qj(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;e=H-16|0;H=e;i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;f=i[a+56>>2];b=i[f+100>>2]-i[f+96>>2]|0;c=(b|0)/12|0;a:{if(!b){b=0;g=0;break a}n=c>>>0>1?c:1;b=0;while(1){p=i[f+96>>2];f=0;b:{c:{while(1){d:{c=m;m=i[(o(l,12)+p|0)+(f<<2)>>2];c=m-c|0;j=c>>31;j=(j^c+j)<<1|c>>>31;e:{if((b|0)!=(h|0)){i[b>>2]=j;b=b+4|0;i[e+4>>2]=b;break e}c=h-g|0;h=c>>2;b=h+1|0;if(b>>>0>=1073741824){break d}k=c>>1;b=h>>>0<536870911?k>>>0>>0?b:k:1073741823;d=0;f:{if(!b){break f}if(b>>>0>=1073741824){break c}d=ko(b<<2)}k=d+(h<<2)|0;i[k>>2]=j;h=(b<<2)+d|0;b=k+4|0;if((c|0)>=1){kp(d,g,c)}i[e+8>>2]=h;i[e+4>>2]=b;i[e>>2]=d;if(g){ep(g)}g=d}f=f+1|0;if((f|0)!=3){continue}break b}break}Ko();x()}Ba(13344);x()}l=l+1|0;if((n|0)==(l|0)){g=d}else{f=i[a+56>>2];continue}break}}lg(g,b-g>>2,1,0,i[a+44>>2]);if(d){i[e+4>>2]=d;ep(d)}H=e+16|0}function nb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ko(b<<2);d=i[a>>2];i[a>>2]=c;if(d){ep(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=Ap(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;k=h+i[a>>2]|0;if(!i[k>>2]){i[k>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(j[d+8|0]==j[c+8|0]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){ep(b)}i[a+4>>2]=0}return}Ba(1352);x()}function hf(a,b){var c=0,d=0,e=0,f=0,h=0;f=H-16|0;H=f;c=ko(32);i[f>>2]=c;i[f+4>>2]=17;i[f+8>>2]=-2147483616;g[c+17|0]=0;g[c+16|0]=j[9966];e=j[9962]|j[9963]<<8|(j[9964]<<16|j[9965]<<24);d=j[9958]|j[9959]<<8|(j[9960]<<16|j[9961]<<24);g[c+8|0]=d;g[c+9|0]=d>>>8;g[c+10|0]=d>>>16;g[c+11|0]=d>>>24;g[c+12|0]=e;g[c+13|0]=e>>>8;g[c+14|0]=e>>>16;g[c+15|0]=e>>>24;e=j[9954]|j[9955]<<8|(j[9956]<<16|j[9957]<<24);d=j[9950]|j[9951]<<8|(j[9952]<<16|j[9953]<<24);g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;g[c+4|0]=e;g[c+5|0]=e>>>8;g[c+6|0]=e>>>16;g[c+7|0]=e>>>24;e=b+16|0;d=i[e>>2];a:{if(!d){break a}c=e;while(1){h=i[d+16>>2]<(a|0);c=h?c:d;d=i[(h<<2)+d>>2];if(d){continue}break}if((c|0)==(e|0)|i[c+16>>2]>(a|0)){break a}a=c+20|0;if(!Tb(a,f)){break a}b=a}a=bk(b,f,-1);if(g[f+11|0]<=-1){ep(i[f>>2])}if((a|0)!=-1){H=f+16|0;return a>>>0>6?-2:a}H=f+16|0;return-1}function Aj(a,b){var c=0,d=0,e=0,f=0,j=0;d=H-16|0;H=d;c=i[b+44>>2];e=i[c+20>>2];if((e|0)<0?1:(e|0)<=0?l[c+16>>2]<=0:0){ea(c,i[c+4>>2],13688,13693)}c=K[i[i[b>>2]+8>>2]](b)|0;g[d+15|0]=c;g[d+14|0]=2;g[d+13|0]=c&255?2:3;c=i[b+44>>2];e=i[c+20>>2];a:{if((e|0)>0?1:(e|0)>=0?l[c+16>>2]>0:0){break a}ea(c,i[c+4>>2],d+14|0,d+15|0);c=i[b+44>>2];e=i[c+20>>2];if((e|0)>0?1:(e|0)>=0?l[c+16>>2]>0:0){break a}ea(c,i[c+4>>2],d+13|0,d+14|0);c=i[b+44>>2];e=i[c+20>>2];if((e|0)>0?1:(e|0)>=0?l[c+16>>2]>0:0){break a}ea(c,i[c+4>>2],d+15|0,d+16|0);c=i[b+44>>2]}f=d,j=K[i[i[b>>2]+12>>2]](b)|0,g[f+12|0]=j;e=i[c+20>>2];if((e|0)<0?1:(e|0)<=0?l[c+16>>2]<=0:0){ea(c,i[c+4>>2],d+12|0,d+13|0)}h[d+10>>1]=(i[i[b+4>>2]+4>>2]!=0)<<15;b=i[b+44>>2];c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ea(b,i[b+4>>2],d+10|0,d+12|0)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;H=d+16|0}function hp(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{c:{d:{Hp(+a);b=Ep(1)|0;c=Ep(0)|0;if((b|0)>0?1:(b|0)>=0?c>>>0>=0:0){e=b;if(b>>>0>1048575){break d}}if(!(b&2147483647|c)){return-1/(a*a)}if((b|0)>-1){break c}return(a-a)/0}if(e>>>0>2146435071){break a}b=1072693248;j=-1023;if((e|0)!=1072693248){b=e;break b}if(c){break b}return 0}Hp(+(a*0x40000000000000));b=Ep(1)|0;c=Ep(0)|0;j=-1077}Fp(0,c|0);c=b+614242|0;Fp(1,(c&1048575)+1072079006|0);d=+Gp()+ -1;f=d*(d*.5);g=d/(d+2);h=g*g;a=h*h;Hp(+(d-f));b=Ep(1)|0;Ep(0)|0;Fp(0,0);Fp(1,b|0);i=+Gp();k=i*1.4426950407214463;l=+((c>>>20|0)+j|0);m=k+l;a=d-i-f+g*(f+(a*(a*(a*.15313837699209373+.22222198432149784)+.3999999999940942)+h*(a*(a*(a*.14798198605116586+.1818357216161805)+.2857142874366239)+.6666666666666735)));a=m+(k+(l-m)+(a*1.4426950407214463+(a+i)*1.6751713164886512e-10))}return a}function gh(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=H-32|0;H=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -4194304|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -4177920|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+4194304|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1077936128|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Vj(j);Kg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;mp(k+h|0,h,c);kp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Wj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){ep(a)}a=i[f>>2];if(a){i[f+4>>2]=a;ep(a)}H=j+32|0}function eh(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=H-32|0;H=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -2097152|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -2080768|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+6291456|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1075838976|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Vj(j);Kg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;mp(k+h|0,h,c);kp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Wj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){ep(a)}a=i[f>>2];if(a){i[f+4>>2]=a;ep(a)}H=j+32|0}function ch(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=H-32|0;H=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -1048576|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -1032192|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+7340032|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1074790400|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Vj(j);Kg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;mp(k+h|0,h,c);kp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Wj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){ep(a)}a=i[f>>2];if(a){i[f+4>>2]=a;ep(a)}H=j+32|0}function ah(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=H-32|0;H=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -262144|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -245760|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+8126464|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1074003968|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Vj(j);Kg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;mp(k+h|0,h,c);kp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Wj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){ep(a)}a=i[f>>2];if(a){i[f+4>>2]=a;ep(a)}H=j+32|0}function _g(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=H-32|0;H=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -131072|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -114688|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+8257536|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1073872896|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Vj(j);Kg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;mp(k+h|0,h,c);kp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Wj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){ep(a)}a=i[f>>2];if(a){i[f+4>>2]=a;ep(a)}H=j+32|0}function Yg(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=H-32|0;H=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -32768|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -16384|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+8355840|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1073774592|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Vj(j);Kg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;mp(k+h|0,h,c);kp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Wj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){ep(a)}a=i[f>>2];if(a){i[f+4>>2]=a;ep(a)}H=j+32|0}function pg(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=H-32|0;H=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -16384|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;c=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;g[e|0]=c;g[e+1|0]=c>>>8;c=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+8372224|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;c=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1073758208|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;c=i[e>>2]+4|0;break a}c=i[a+28>>2]}f=c>>31;e=f;d=c;f=Vj(j);Kg(d,e,f);k=i[f+4>>2]-i[f>>2]|0;mp(k+h|0,h,d);kp(h,i[f>>2],k);c=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=d+k|0;if(b>>>0>>0){a=a+1|0}d=b;b=l+d|0;Wj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){ep(a)}a=i[f>>2];if(a){i[f+4>>2]=a;ep(a)}H=j+32|0}function Jg(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,m=0,n=0,o=0;d=H-16|0;H=d;Kb(i[a+12>>2],b);a:{if(!i[a+12>>2]){break a}m=d+14|0;n=d+15|0;o=d+16|0;while(1){b:{c:{k=i[a>>2];f=i[k+(h<<3)>>2];if(f>>>0>=64){c=1;j=1;e=1;if(f>>>0<16384){break c}if(f>>>0<=4194303){j=2;e=2;break c}break a}j=1;c=0;e=0;if(f){break c}while(1){d:{if(i[(k+(c+h<<3)|0)+8>>2]){f=c;break d}f=63;c=c+1|0;if((c|0)!=63){continue}}break}g[d+15|0]=f<<2|3;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ea(b,i[b+4>>2],d+15|0,o)}h=f+h|0;break b}g[d+14|0]=f<<2|e;e=i[b+20>>2];if((e|0)<0?1:(e|0)<=0?l[b+16>>2]<=0:0){ea(b,i[b+4>>2],d+14|0,n)}e=0;if(!c){break b}while(1){e=e+1|0;g[d+13|0]=f>>>(e<<3)+ -2;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ea(b,i[b+4>>2],d+13|0,m)}if((e|0)!=(j|0)){continue}break}}h=h+1|0;if(h>>>0>2]){continue}break}}H=d+16|0}function im(a,b,c){var d=0,e=0,f=0,g=0;Kb(i[c+8>>2],b);d=i[c>>2];g=c+4|0;if((d|0)!=(g|0)){while(1){f=d;if(!jm(b,d+16|0)){return}d=i[f+32>>2]-i[f+28>>2]|0;Kb(d,b);e=i[b+20>>2];if((e|0)<0?1:(e|0)<=0?l[b+16>>2]<=0:0){e=i[f+28>>2];ea(b,i[b+4>>2],e,e+d|0)}e=i[f+4>>2];a:{if(!e){d=i[f+8>>2];if((f|0)==i[d>>2]){break a}e=f+8|0;while(1){f=i[e>>2];e=f+8|0;d=i[f+8>>2];if((f|0)!=i[d>>2]){continue}break}break a}while(1){d=e;e=i[d>>2];if(e){continue}break}}if((d|0)!=(g|0)){continue}break}}Kb(i[c+20>>2],b);d=i[c+12>>2];f=c+16|0;if((d|0)==(f|0)){return}while(1){c=d;if(!jm(b,d+16|0)){return}im(a,b,i[c+28>>2]);e=i[c+4>>2];b:{if(!e){d=i[c+8>>2];if((c|0)==i[d>>2]){break b}e=c+8|0;while(1){c=i[e>>2];e=c+8|0;d=i[c+8>>2];if((c|0)!=i[d>>2]){continue}break}break b}while(1){d=e;e=i[d>>2];if(e){continue}break}}if((d|0)!=(f|0)){continue}break}}function Bj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=H-16|0;H=e;a:{b:{if(!(K[i[i[a>>2]+32>>2]](a)|0)){break b}c=i[a+44>>2];d=i[a+12>>2];b=i[a+8>>2];g[e+15|0]=d-b>>>2;f=i[c+20>>2];if((f|0)<0?1:(f|0)<=0?l[c+16>>2]<=0:0){ea(c,i[c+4>>2],e+15|0,e+16|0);d=i[a+12>>2];b=i[a+8>>2]}if((b|0)!=(d|0)){while(1){c=i[b>>2];if(!(K[i[i[c>>2]+8>>2]](c,a,i[a+4>>2])|0)){break b}b=b+4|0;if((d|0)!=(b|0)){continue}break}}if(!Cj(a)){break b}b=i[a+32>>2];c=i[a+36>>2];if((b|0)==(c|0)){break a}while(1){if(!(K[i[i[a>>2]+40>>2]](a,i[b>>2])|0)){break b}b=b+4|0;if((c|0)!=(b|0)){continue}break}b=i[a+32>>2];c=i[a+36>>2];if((b|0)==(c|0)){break a}while(1){d=i[i[a+8>>2]+(i[b>>2]<<2)>>2];if(!(K[i[i[d>>2]+12>>2]](d,i[a+44>>2])|0)){break b}b=b+4|0;if((c|0)!=(b|0)){continue}break}break a}H=e+16|0;return 0}a=K[i[i[a>>2]+44>>2]](a)|0;H=e+16|0;return a|0}function gm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=H-16|0;H=d;l=Am(b);a:{if(!l){i[a>>2]=0;break a}c=i[b+100>>2];h=i[b+96>>2];i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=c-h|0;e=(f|0)/12|0;b:{c:{if(f){if(e>>>0>=357913942){break c}k=ko(f);i[d>>2]=k;i[d+4>>2]=k;e=o(e,12)+k|0;i[d+8>>2]=e;c=k;while(1){i[c>>2]=0;i[c+4>>2]=0;i[c+8>>2]=0;c=c+12|0;if((e|0)!=(c|0)){continue}break}i[d+4>>2]=e;h=i[b+96>>2];c=i[b+100>>2]}if((c|0)==(h|0)){break b}b=(c-h|0)/12|0;n=b>>>0>1?b:1;c=0;p=j[l+84|0];while(1){f=o(c,12);g=f+h|0;b=i[g>>2];d:{if(p){m=g+8|0;g=g+4|0;break d}e=i[l+68>>2];m=e+(i[g+8>>2]<<2)|0;b=i[e+(b<<2)>>2];g=e+(i[g+4>>2]<<2)|0}e=i[g>>2];f=f+k|0;i[f+8>>2]=i[m>>2];i[f+4>>2]=e;i[f>>2]=b;c=c+1|0;if((n|0)!=(c|0)){continue}break}break b}Ko();x()}Ll(a,d);a=i[d>>2];if(!a){break a}i[d+4>>2]=a;ep(a)}H=d+16|0}function Vc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<2)+c|0;while(1){i[c>>2]=0;c=c+4|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){f=f<<2;d=d-g|0;h=d>>1;d=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(d){if(d>>>0>=1073741824){break a}j=ko(d<<2)}e=f+j|0;f=e+(b<<2)|0;d=(d<<2)+j|0;b=e;while(1){i[b>>2]=0;b=b+4|0;if((f|0)!=(b|0)){continue}break}if((c|0)!=(g|0)){while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;e=e+ -4|0;i[e>>2]=b;if((c|0)!=(g|0)){continue}break}c=i[a>>2]}i[a>>2]=e;i[a+8>>2]=d;b=i[a+4>>2];i[a+4>>2]=f;if((b|0)!=(c|0)){while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){K[i[i[a>>2]+4>>2]](a)}if((b|0)!=(c|0)){continue}break}}if(c){ep(c)}return}Ko();x()}Ba(2172);x()}function mf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;f=H-16|0;H=f;a:{b:{c=i[a+4>>2];e=i[a+8>>2];c:{if((c|0)!=(e|0)){i[c>>2]=i[a+12>>2];d=c+4|0;i[a+4>>2]=d;break c}g=i[a>>2];j=c-g|0;h=j>>2;d=h+1|0;if(d>>>0>=1073741824){break b}e=e-g|0;c=e>>1;d=e>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;d:{if(!d){break d}if(d>>>0>=1073741824){break a}c=ko(d<<2)}e=c+(h<<2)|0;i[e>>2]=i[a+12>>2];h=c+(d<<2)|0;d=e+4|0;if((j|0)>=1){kp(c,g,j)}i[a+8>>2]=h;i[a+4>>2]=d;i[a>>2]=c;if(!g){break c}ep(g);d=i[a+4>>2]}c=i[a>>2];i[f+12>>2]=d-c;d=i[b+20>>2];e:{if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break e}ea(b,i[b+4>>2],f+12|0,f+16|0);c=i[a>>2];d=i[b+20>>2];if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break e}ea(b,i[b+4>>2],c,i[f+12>>2]+c|0);c=i[a>>2]}i[a+12>>2]=0;i[a+16>>2]=0;i[a+4>>2]=c;H=f+16|0;return}Ko();x()}Ba(9968);x()}function rf(a,b){var c=0,d=0,e=0,f=0,g=0;d=i[a>>2];a:{if(b){b=d;e=b;c=i[b+12>>2];d=i[b+8>>2]+1|0;if(d>>>0<1){c=c+1|0}i[e+8>>2]=d;i[b+12>>2]=c;b=i[a+28>>2];i[a+24>>2]=i[a+24>>2]|1<>2];d=i[b>>2]+1|0;if(d>>>0<1){c=c+1|0}i[e>>2]=d;i[b+4>>2]=c;b=i[a+28>>2]}b=b+1|0;i[a+28>>2]=b;b:{c:{if((b|0)==32){b=i[a+16>>2];e=i[a+20>>2];d:{if((b|0)!=(e|0)){i[b>>2]=i[a+24>>2];i[a+16>>2]=b+4;break d}d=i[a+12>>2];f=b-d|0;b=f>>2;c=b+1|0;if(c>>>0>=1073741824){break c}g=b<<2;e=e-d|0;b=e>>1;c=e>>2>>>0<536870911?b>>>0>>0?c:b:1073741823;b=0;e:{if(!c){break e}if(c>>>0>=1073741824){break b}b=ko(c<<2)}e=g+b|0;i[e>>2]=i[a+24>>2];c=b+(c<<2)|0;e=e+4|0;if((f|0)>=1){kp(b,d,f)}i[a+20>>2]=c;i[a+16>>2]=e;i[a+12>>2]=b;if(!d){break d}ep(d)}i[a+24>>2]=0;i[a+28>>2]=0}return}Ko();x()}Ba(10036);x()}function Nh(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=11192;i[a+72>>2]=0;i[a+76>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+88>>2]=0;i[a+92>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=1065353216;i[a+156>>2]=0;i[a+160>>2]=0;i[a+148>>2]=0;i[a+152>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+164>>2]=-1;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;nf(a+200|0);Vj(a+232|0);g[a+288|0]=0;i[a+280>>2]=0;i[a+284>>2]=0;i[a+272>>2]=0;i[a+276>>2]=0;i[a+264>>2]=0;i[a+268>>2]=0}function qa(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,n=0,o=0,r=0,s=0,t=0,v=0,w=p(0),x=0,y=0,z=p(0),A=0,B=0,C=0,D=0;k=H-16|0;H=k;l=i[a+4>>2];n=i[d+48>>2];h=i[i[d>>2]>>2];f=g[b+24|0];e=fk(k+8|0);gk(e,m[a+20>>2],-1<>2];c=i[c+4>>2];if((o|0)!=(c|0)){x=n+h|0;c=c-o>>2;y=c>>>0>1?c:1;z=m[e>>2];A=i[b>>2];l=i[b+48>>2];B=i[b+68>>2];n=i[b+44>>2];h=i[b+40>>2];C=h;c=0;D=j[b+84|0];while(1){b=i[(r<<2)+o>>2];e=d;s=i[A>>2];t=h;v=n;if(!D){b=i[(b<<2)+B>>2]}b=xp(t,v,b,0)+l|0;t=kp(e,b+s|0,C);if((f|0)>=1){v=i[a+8>>2];b=0;while(1){s=(c<<2)+x|0;e=b<<2;w=p(u(p(p(z*p(m[e+t>>2]-m[e+v>>2]))+p(.5))));a:{if(p(q(w))>2]=e;c=c+1|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}r=r+1|0;if((y|0)!=(r|0)){continue}break}}ep(d);H=k+16|0}function Dm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<2)+c|0;while(1){i[c>>2]=0;c=c+4|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){f=f<<2;d=d-g|0;h=d>>1;d=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(d){if(d>>>0>=1073741824){break a}j=ko(d<<2)}e=f+j|0;f=e+(b<<2)|0;d=(d<<2)+j|0;b=e;while(1){i[b>>2]=0;b=b+4|0;if((f|0)!=(b|0)){continue}break}if((c|0)!=(g|0)){while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;e=e+ -4|0;i[e>>2]=b;if((c|0)!=(g|0)){continue}break}c=i[a>>2]}i[a>>2]=e;i[a+8>>2]=d;b=i[a+4>>2];i[a+4>>2]=f;if((b|0)!=(c|0)){while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){Xb(a)}if((b|0)!=(c|0)){continue}break}}if(c){ep(c)}return}Ko();x()}Ba(16928);x()}function dd(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=H-32|0;H=f;h=i[c+4>>2];d=i[b+4>>2];j=i[c>>2];g=i[b>>2];b=(h-d|0)+(j-g<<3)|0;c=i[a+4>>2];e=b+c|0;i[a+4>>2]=e;a:{if(!(!c|(e+ -1^c+ -1)>>>0>31)){a=i[a>>2];break a}a=i[a>>2];if(e>>>0<=32){i[a>>2]=0;break a}i[(e+ -1>>>3&536870908)+a>>2]=0}a=(c>>>3&536870908)+a|0;c=c&31;b:{if((c|0)==(d|0)){c:{if((b|0)<1){break c}d:{if(!d){c=0;break d}e=32-d|0;c=(b|0)<(e|0)?b:e;e=-1<>>e-c;i[a>>2]=i[a>>2]&(e^-1)|e&i[g>>2];b=b-c|0;d=c+d|0;c=d&31;a=(d>>>3&536870908)+a|0;g=g+4|0}d=(b|0)/32|0;e=d<<2;a=mp(a,g,e)+e|0;d=b-(d<<5)|0;if((d|0)<1){d=c;break c}b=-1>>>32-d|0;i[a>>2]=i[a>>2]&(b^-1)|b&i[e+g>>2]}i[f+4>>2]=d;i[f>>2]=a;break b}i[f+28>>2]=d;i[f+24>>2]=g;i[f+20>>2]=h;i[f+16>>2]=j;i[f+12>>2]=c;i[f+8>>2]=a;ed(f,f+24|0,f+16|0,f+8|0)}H=f+32|0}function Uc(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=H-16|0;H=e;g=a+36|0;b=i[a+8>>2]-i[a+4>>2]>>2;c=i[a+40>>2];f=i[a+36>>2];d=c-f>>2;a:{if(b>>>0>d>>>0){Vc(g,b-d|0);break a}if(b>>>0>=d>>>0){break a}d=f+(b<<2)|0;if((d|0)!=(c|0)){while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}}i[a+40>>2]=d}c=1;if(i[a+8>>2]!=i[a+4>>2]){c=0;while(1){K[i[i[a>>2]+56>>2]](e+8|0,a,c);b=i[a+36>>2];d=i[e+8>>2];i[e+8>>2]=0;f=c<<2;h=f+b|0;b=i[h>>2];i[h>>2]=d;if(b){K[i[i[b>>2]+4>>2]](b)}b=i[e+8>>2];i[e+8>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}b=i[f+i[g>>2]>>2];if(b){if(!(!(i[i[a+48>>2]+(c>>>3&536870908)>>2]>>>(c&31)&1)|c>>>0>=l[a+52>>2])){Hc(b)}c=c+1|0;if(c>>>0>2]-i[a+4>>2]>>2>>>0){continue}}break}c=(b|0)!=0}H=e+16|0;return c|0}function Jb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;d=H-16|0;H=d;e=a+8|0;Kb(i[e>>2]-i[a+4>>2]>>2,b);c=i[a+4>>2];if((c|0)!=i[e>>2]){k=d+13|0;l=d+14|0;m=d+15|0;n=d+16|0;while(1){f=i[i[i[a+32>>2]+8>>2]+(i[(h<<2)+c>>2]<<2)>>2];g[d+15|0]=i[f+56>>2];c=i[b+20>>2];e=i[b+16>>2];if((c|0)<0?1:(c|0)<=0?e>>>0<=0:0){ea(b,i[b+4>>2],d+15|0,n);e=i[b+16>>2];c=i[b+20>>2]}g[d+14|0]=i[f+28>>2];if((c|0)<0?1:(c|0)<=0?e>>>0<=0:0){ea(b,i[b+4>>2],d+14|0,m);e=i[b+16>>2];c=i[b+20>>2]}g[d+13|0]=j[f+24|0];if((c|0)<0?1:(c|0)<=0?e>>>0<=0:0){ea(b,i[b+4>>2],d+13|0,l);e=i[b+16>>2];c=i[b+20>>2]}g[d+12|0]=j[f+32|0];if((c|0)<0?1:(c|0)<=0?e>>>0<=0:0){ea(b,i[b+4>>2],d+12|0,k)}Kb(i[f+60>>2],b);h=h+1|0;c=i[a+4>>2];if(h>>>0>2]-c>>2>>>0){continue}break}}H=d+16|0;return 1}function ne(a){var b=0,c=0,d=0;b=i[a+8>>2];d=i[a>>2];a:{if(j[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;if((b|0)==-1){break e}b=i[i[d+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}i[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;i[a+8>>2]=b;if((b|0)!=-1){break b}}c=i[a+4>>2];b=-1;f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;b=-1;if((c|0)==-1){break f}c=i[i[d+12>>2]+(c<<2)>>2];b=-1;if((c|0)==-1){break f}b=c+ -1|0;if((c>>>0)%3|0){break f}b=c+2|0}g[a+12|0]=0;i[a+8>>2]=b;return}if((b|0)!=i[a+4>>2]){break a}i[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;c=-1;if((b|0)==-1){break g}b=i[i[d+12>>2]+(b<<2)>>2];c=-1;if((b|0)==-1){break g}c=b+ -1|0;if((b>>>0)%3|0){break g}c=b+2|0}i[a+8>>2]=c}}function Fl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;f=i[a+8>>2];d=i[a+4>>2];if((f-d|0)/12>>>0>=b>>>0){if(!b){i[a+4>>2]=d;return}b=o(b,12)+d|0;while(1){g=i[c+4>>2];i[d>>2]=i[c>>2];i[d+4>>2]=g;i[d+8>>2]=i[c+8>>2];d=d+12|0;if((b|0)!=(d|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];h=d-g|0;d=(h|0)/12|0;e=d+b|0;if(e>>>0<357913942){j=o(b,12);k=o(d,12);f=(f-g|0)/12|0;b=f<<1;e=f>>>0<178956970?b>>>0>>0?e:b:357913941;d=0;b:{if(!e){break b}if(e>>>0>=357913942){break a}d=ko(o(e,12))}b=k+d|0;f=j+b|0;e=d+o(e,12)|0;d=b;while(1){j=i[c+4>>2];i[d>>2]=i[c>>2];i[d+4>>2]=j;i[d+8>>2]=i[c+8>>2];d=d+12|0;if((f|0)!=(d|0)){continue}break}b=b+o((h|0)/-12|0,12)|0;if((h|0)>=1){kp(b,g,h)}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b;if(g){ep(g)}return}Ko();x()}Ba(16382);x()}function mp(a,b,c){var d=0;a:{if((a|0)==(b|0)){break a}if((b-a|0)-c>>>0<=0-(c<<1)>>>0){return kp(a,b,c)}d=(a^b)&3;b:{c:{if(a>>>0>>0){if(d){d=a;break b}if(!(a&3)){d=a;break c}d=a;while(1){if(!c){break a}g[d|0]=j[b|0];b=b+1|0;c=c+ -1|0;d=d+1|0;if(d&3){continue}break}break c}d:{if(d){break d}if(a+c&3){while(1){if(!c){break a}c=c+ -1|0;d=c+a|0;g[d|0]=j[b+c|0];if(d&3){continue}break}}if(c>>>0<=3){break d}while(1){c=c+ -4|0;i[c+a>>2]=i[b+c>>2];if(c>>>0>3){continue}break}}if(!c){break a}while(1){c=c+ -1|0;g[c+a|0]=j[b+c|0];if(c){continue}break}break a}if(c>>>0<=3){break b}while(1){i[d>>2]=i[b>>2];b=b+4|0;d=d+4|0;c=c+ -4|0;if(c>>>0>3){continue}break}}if(!c){break a}while(1){g[d|0]=j[b|0];d=d+1|0;b=b+1|0;c=c+ -1|0;if(c){continue}break}}return a}function bg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;g=H-16|0;H=g;i[g+8>>2]=0;i[g>>2]=0;i[g+4>>2]=0;a:{b:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=1073741824){break b}f=f<<2;h=ko(f);i[g>>2]=h;f=f+h|0;i[g+8>>2]=f;lp(h,0,(c<<2)+4|0);i[g+4>>2]=f}if((b|0)>0){while(1){f=(i[(j<<2)+a>>2]<<2)+h|0;i[f>>2]=i[f>>2]+1;j=j+1|0;if((j|0)!=(b|0)){continue}break}}j=0;if((c|0)<0){b=0;break a}k=+(b|0);b=0;while(1){a=i[(j<<2)+h>>2];if((a|0)>=1){l=e;e=+(a|0);e=l+hp(e/k)*e;b=b+1|0}a=(c|0)==(j|0);j=j+1|0;if(!a){continue}break}break a}Ko();x()}if(d){i[d>>2]=b}if(h){i[g+4>>2]=h;ep(h)}e=-e;c:{if(q(e)<0x8000000000000000){b=q(e)>=1?e>0?~~s(u(e/4294967296),4294967295)>>>0:~~v((e- +(~~e>>>0>>>0))/4294967296)>>>0:0;a=~~e>>>0;break c}b=-2147483648;a=0}H=g+16|0;J=b;return a}function ki(a,b){var c=0,d=0,e=0,f=0,g=0;d=H-16|0;H=d;i[d>>2]=b;c=-1;a:{if((b|0)==-1){i[d+4>>2]=-1;break a}c=b+1|0;i[d+4>>2]=(c>>>0)%3|0?c:b+ -2|0;if((b>>>0)%3|0){c=b+ -1|0;break a}c=b+2|0}i[d+8>>2]=c;c=(b|0)==-1?-1:(b>>>0)/3|0;e=i[a+28>>2]+(c>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<<(c&31);e=0;while(1){b:{if((b|0)==-1){break b}c=i[i[i[a+12>>2]+12>>2]+(b<<2)>>2];if((c|0)==-1){break b}c=(c>>>0)/3|0;if(i[i[a+28>>2]+(c>>>3&268435452)>>2]>>>(c&31)&1){break b}c=i[a+172>>2];if((c|0)==i[a+176>>2]){break b}f=b>>>5|0;g=1<<(b&31);b=0;while(1){rf(i[a+280>>2]+(b<<5)|0,(i[i[(o(b,136)+c|0)+4>>2]+(f<<2)>>2]&g)!=0);b=b+1|0;c=i[a+172>>2];if(b>>>0<(i[a+176>>2]-c|0)/136>>>0){continue}break}}e=e+1|0;if((e|0)!=3){b=i[(e<<2)+d>>2];continue}break}H=d+16|0}function hm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=H-32|0;H=d;c=i[b+100>>2];f=i[b+96>>2];i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;e=c-f|0;h=(e|0)/12|0;a:{if(e){if(h>>>0>=357913942){break a}g=ko(e);i[d+16>>2]=g;i[d+20>>2]=g;f=o(h,12)+g|0;i[d+24>>2]=f;c=g;while(1){i[c>>2]=0;i[c+4>>2]=0;i[c+8>>2]=0;c=c+12|0;if((f|0)!=(c|0)){continue}break}i[d+20>>2]=f;f=i[b+96>>2];c=i[b+100>>2]}b=d+8|0;i[b>>2]=0;i[d>>2]=0;i[d+4>>2]=0;if((c|0)!=(f|0)){c=(c-f|0)/12|0;h=c>>>0>1?c:1;c=0;while(1){j=o(c,12);e=j+f|0;i[b>>2]=i[e+8>>2];l=i[e+4>>2];k=i[e>>2];i[d>>2]=k;i[d+4>>2]=l;e=g+j|0;i[e>>2]=k;i[e+4>>2]=i[d+4>>2];i[e+8>>2]=i[b>>2];c=c+1|0;if((h|0)!=(c|0)){continue}break}}Ll(a,d+16|0);a=i[d+16>>2];if(a){i[d+20>>2]=a;ep(a)}H=d+32|0;return}Ko();x()}function Gf(a,b,c,d){var e=0,f=0,h=0,k=0;e=H-32|0;H=e;i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{if((d|0)<1){break a}Fo(e,m[c>>2]);f=j[e+11|0];h=f<<24>>24<0;Do(e+16|0,h?i[e>>2]:e,h?i[e+4>>2]:f);if(g[e+11|0]<=-1){ep(i[e>>2])}f=1;if((d|0)==1){break a}while(1){Do(e+16|0,10466,pp(10466));Fo(e,m[(f<<2)+c>>2]);h=j[e+11|0];k=h<<24>>24<0;Do(e+16|0,k?i[e>>2]:e,k?i[e+4>>2]:h);if(g[e+11|0]<=-1){ep(i[e>>2])}f=f+1|0;if((f|0)!=(d|0)){continue}break}}c=Pf(a,e,b);f=i[c>>2];if(!f){f=ko(40);uo(f+16|0,b);i[f+36>>2]=0;i[f+28>>2]=0;i[f+32>>2]=0;i[f+8>>2]=i[e>>2];i[f>>2]=0;i[f+4>>2]=0;i[c>>2]=f;d=i[i[a>>2]>>2];b=f;b:{if(!d){break b}i[a>>2]=d;b=i[c>>2]}Lf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}wo(f+28|0,e+16|0);if(g[e+27|0]<=-1){ep(i[e+16>>2])}H=e+32|0}function Sh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;g=H-16|0;H=g;a:{b:{c=i[a+8>>2];e=i[a+12>>2];c:{if((c|0)!=(e|0)){i[c>>2]=b;i[a+8>>2]=c+4;break c}f=i[a+4>>2];h=c-f|0;c=h>>2;d=c+1|0;if(d>>>0>=1073741824){break b}j=c<<2;e=e-f|0;c=e>>1;d=e>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;d:{if(!d){break d}if(d>>>0>=1073741824){break a}c=ko(d<<2)}e=j+c|0;i[e>>2]=b;d=c+(d<<2)|0;e=e+4|0;if((h|0)>=1){kp(c,f,h)}i[a+12>>2]=d;i[a+8>>2]=e;i[a+4>>2]=c;if(!f){break c}ep(f)}c=i[a+16>>2];f=i[a+20>>2]-c>>2;e:{if((f|0)>(b|0)){break e}i[g+12>>2]=-1;d=b+1|0;if(d>>>0>f>>>0){c=a+16|0;Hb(c,d-f|0,g+12|0);c=i[c>>2];break e}if(d>>>0>=f>>>0){break e}i[a+20>>2]=(d<<2)+c}i[(b<<2)+c>>2]=(i[a+8>>2]-i[a+4>>2]>>2)+ -1;H=g+16|0;return}Ko();x()}Ba(11708);x()}function ag(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=ko(32);c=i[b>>2];i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=c;f=d+24|0;i[d+20>>2]=f;c=i[b+4>>2];g=b+8|0;if((c|0)!=(g|0)){h=d+20|0;while(1){e=c;b=c+16|0;Nf(h,f,b,b);b=i[c+4>>2];a:{if(!b){c=i[e+8>>2];if((e|0)==i[c>>2]){break a}b=e+8|0;while(1){e=i[b>>2];b=e+8|0;c=i[e+8>>2];if((e|0)!=i[c>>2]){continue}break}break a}while(1){c=b;b=i[b>>2];if(b){continue}break}}if((c|0)!=(g|0)){continue}break}}b=i[a+4>>2];b:{c:{if(b){e=i[d+16>>2];while(1){d:{if((e|0)>2]){c=i[b>>2];if(!c){break c}break d}c=i[b+4>>2];if(c){break d}c=b+4|0;break b}b=c;continue}}b=a+4|0}c=b}i[d+8>>2]=b;i[d>>2]=0;i[d+4>>2]=0;i[c>>2]=d;b=i[i[a>>2]>>2];if(b){i[a>>2]=b;d=i[c>>2]}Lf(i[a+4>>2],d);i[a+8>>2]=i[a+8>>2]+1}function pa(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,n=0,o=0,r=0,s=0,t=0,v=0,w=p(0),x=0,y=p(0),z=0,A=0,B=0,C=0,D=0;n=H-16|0;H=n;h=i[a+4>>2];o=i[d+48>>2];d=i[i[d>>2]>>2];f=g[b+24|0];k=fk(n+8|0);gk(k,m[a+20>>2],-1<>2];z=i[b>>2];o=i[b+48>>2];A=i[b+68>>2];k=i[b+44>>2];v=i[b+40>>2];B=v;d=0;C=j[b+84|0];D=(f|0)<1;while(1){b=l;e=h;r=i[z>>2];s=v;t=k;if(!C){b=i[(l<<2)+A>>2]}b=xp(s,t,b,0)+o|0;s=kp(e,b+r|0,B);if(!D){t=i[a+8>>2];b=0;while(1){r=(d<<2)+x|0;e=b<<2;w=p(u(p(p(y*p(m[e+s>>2]-m[e+t>>2]))+p(.5))));a:{if(p(q(w))>2]=e;d=d+1|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}l=l+1|0;if((l|0)!=(c|0)){continue}break}}ep(h);H=n+16|0}function lp(a,b,c){var d=0,e=0,f=0,h=0;a:{if(!c){break a}d=a+c|0;g[d+ -1|0]=b;g[a|0]=b;if(c>>>0<3){break a}g[d+ -2|0]=b;g[a+1|0]=b;g[d+ -3|0]=b;g[a+2|0]=b;if(c>>>0<7){break a}g[d+ -4|0]=b;g[a+3|0]=b;if(c>>>0<9){break a}d=0-a&3;e=d+a|0;b=o(b&255,16843009);i[e>>2]=b;c=c-d&-4;d=c+e|0;i[d+ -4>>2]=b;if(c>>>0<9){break a}i[e+8>>2]=b;i[e+4>>2]=b;i[d+ -8>>2]=b;i[d+ -12>>2]=b;if(c>>>0<25){break a}i[e+24>>2]=b;i[e+20>>2]=b;i[e+16>>2]=b;i[e+12>>2]=b;i[d+ -16>>2]=b;i[d+ -20>>2]=b;i[d+ -24>>2]=b;i[d+ -28>>2]=b;h=e&4|24;c=c-h|0;if(c>>>0<32){break a}d=b;f=b;b=e+h|0;while(1){i[b+24>>2]=f;i[b+28>>2]=d;i[b+16>>2]=f;i[b+20>>2]=d;i[b+8>>2]=f;i[b+12>>2]=d;i[b>>2]=f;i[b+4>>2]=d;b=b+32|0;c=c+ -32|0;if(c>>>0>31){continue}break}}return a}function pf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=i[a+8>>2];c=i[a>>2];if(d-c>>3>>>0>=2){e=i[a+4>>2];f=e-c>>3;g=f>>>0<2?f:2;if(g){d=c;while(1){h=i[b+4>>2];i[d>>2]=i[b>>2];i[d+4>>2]=h;d=d+8|0;g=g+ -1|0;if(g){continue}break}}if(f>>>0<2){c=2-f|0;if(!c){i[a+4>>2]=e;return}d=(c<<3)+e|0;while(1){c=i[b+4>>2];i[e>>2]=i[b>>2];i[e+4>>2]=c;e=e+8|0;if((d|0)!=(e|0)){continue}break}i[a+4>>2]=d;return}i[a+4>>2]=c+16;return}if(c){i[a+4>>2]=c;ep(c);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}c=d>>2;c=d>>3>>>0<268435455?c>>>0<2?2:c:536870911;if(c>>>0<536870912){c=c<<3;d=ko(c);i[a>>2]=d;i[a+4>>2]=d;i[a+8>>2]=d+c;h=d+16|0;c=i[b>>2];b=i[b+4>>2];while(1){i[d>>2]=c;i[d+4>>2]=b;d=d+8|0;if((h|0)!=(d|0)){continue}break}i[a+4>>2]=h;return}Ko();x()}function Yj(a){var b=0,c=0,d=0,e=0,f=0,h=0,k=0;f=H-32|0;H=f;c=i[a+16>>2];b=i[a+20>>2];if((b|0)>0?1:(b|0)>=0?c>>>0>=1:0){b=i[i[a+12>>2]+4>>2]+7|0;if(b>>>0<7){e=1}d=b;b=e>>>3|0;e=e<<29|d>>>3;d=b;if(j[a+24|0]){h=i[a+4>>2];g[f+24|0]=0;b=f;i[b+16>>2]=0;i[b+20>>2]=0;i[b+8>>2]=0;i[b+12>>2]=0;i[b>>2]=0;i[b+4>>2]=0;Kg(e,d,b);c=h-c|0;h=c+ -8|0;d=i[b+4>>2]-i[b>>2]|0;mp(h+d|0,c,e);kp(h,i[b>>2],d);b=a;k=b;c=i[b+20>>2];d=8-d|0;h=d+i[b+16>>2]|0;if(h>>>0>>0){c=c+1|0}i[k+16>>2]=h;i[b+20>>2]=c;b=i[f+12>>2];i[f+12>>2]=0;if(b){ep(b)}b=i[f>>2];if(b){i[f+4>>2]=b;ep(b)}c=i[a+16>>2]}d=i[a>>2];b=i[a+4>>2]-d|0;e=e-c|0;c=b+e|0;a:{if(c>>>0>b>>>0){Rj(a,e);break a}if(c>>>0>=b>>>0){break a}i[a+4>>2]=c+d}i[a+16>>2]=0;i[a+20>>2]=0}H=f+32|0}function Ic(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if((K[i[i[b>>2]+20>>2]](b)|0)>=1){k=a+16|0;while(1){f=zm(i[i[a+4>>2]+4>>2],K[i[i[b>>2]+24>>2]](b,h)|0);if((f|0)!=-1){c=i[a+20>>2];d=i[a+24>>2];c:{if((c|0)!=(d|0)){i[c>>2]=f;i[a+20>>2]=c+4;break c}g=i[k>>2];j=c-g|0;c=j>>2;e=c+1|0;if(e>>>0>=1073741824){break b}l=c<<2;d=d-g|0;c=d>>1;e=d>>2>>>0<536870911?c>>>0>>0?e:c:1073741823;c=0;d:{if(!e){break d}if(e>>>0>=1073741824){break a}c=ko(e<<2)}d=l+c|0;i[d>>2]=f;e=c+(e<<2)|0;d=d+4|0;if((j|0)>=1){kp(c,g,j)}i[a+24>>2]=e;i[a+20>>2]=d;i[a+16>>2]=c;if(!g){break c}ep(g)}Hj(i[a+4>>2],f);h=h+1|0;if((h|0)<(K[i[i[b>>2]+20>>2]](b)|0)){continue}}break}a=(f|0)!=-1}else{a=1}return a|0}Ko();x()}Ba(1956);x()}function Im(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=i[c>>2];h=i[c+4>>2];if((e|0)!=(h|0)){p=i[b>>2];while(1){c=i[e>>2];l=c<<2;f=i[l+p>>2];if(f>>>0>=d>>>0){m=i[a+8>>2];b=i[a+12>>2]-m|0;if((b|0)>=1){b=b>>>2|0;q=b>>>0>1?b:1;d=0;while(1){b=c;n=i[(d<<2)+m>>2];o=i[n+68>>2];r=o+(f<<2)|0;if(!j[n+84|0]){b=i[l+o>>2]}i[r>>2]=b;d=d+1|0;if((q|0)!=(d|0)){continue}break}}d=f+1|0}e=e+4|0;if((h|0)!=(e|0)){continue}break}}e=i[a+12>>2];b=i[a+8>>2];if((e-b|0)>0){while(1){c=i[(k<<2)+b>>2];g[c+84|0]=0;h=i[c+68>>2];f=i[c+72>>2]-h>>2;a:{if(d>>>0>f>>>0){Ya(c+68|0,d-f|0,16924);b=i[a+8>>2];e=i[a+12>>2];break a}if(d>>>0>=f>>>0){break a}i[c+72>>2]=h+(d<<2)}k=k+1|0;if((k|0)>2){continue}break}}}function gi(a,b,c){var d=0,e=0,f=0;a:{b:{c:{b=o(b,3);if((b|0)==-1){break c}e=i[a+12>>2];f=i[e+12>>2];d=b<<2;if(i[f+d>>2]==-1){break b}a=i[a+152>>2];e=i[e>>2];if(i[a+(i[e+d>>2]<<2)>>2]!=-1){break a}d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0;if((b|0)==-1){break c}d=b<<2;if(i[d+f>>2]==-1){break b}if(i[a+(i[d+e>>2]<<2)>>2]!=-1){break a}d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0;if((b|0)==-1){break c}d=b<<2;if(i[d+f>>2]==-1){break b}if(i[a+(i[d+e>>2]<<2)>>2]!=-1){break a}a=b+1|0;i[c>>2]=(a>>>0)%3|0?a:b+ -2|0;return 1}b=-1}i[c>>2]=b;return 0}while(1){d:{a=b;b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)==-1){break d}b=i[(b<<2)+f>>2];if((b|0)==-1){break d}b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)!=-1){continue}}break}i[c>>2]=a+((a>>>0)%3|0?-1:2);return 0}function Th(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];d=i[a>>2];if(e-d>>2>>>0>=b>>>0){f=i[a+4>>2];g=f-d>>2;h=g>>>0>>0?g:b;if(h){e=d;while(1){i[e>>2]=i[c>>2];e=e+4|0;h=h+ -1|0;if(h){continue}break}}if(g>>>0>>0){b=b-g|0;if(!b){i[a+4>>2]=f;return}b=(b<<2)+f|0;while(1){i[f>>2]=i[c>>2];f=f+4|0;if((b|0)!=(f|0)){continue}break}i[a+4>>2]=b;return}i[a+4>>2]=(b<<2)+d;return}if(d){i[a+4>>2]=d;ep(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;e=0}a:{if(b>>>0>=1073741824){break a}d=e>>1;d=e>>2>>>0<536870911?d>>>0>>0?b:d:1073741823;if(d>>>0>=1073741824){break a}d=d<<2;e=ko(d);i[a>>2]=e;i[a+4>>2]=e;i[a+8>>2]=e+d;d=(b<<2)+e|0;b=i[c>>2];while(1){i[e>>2]=b;e=e+4|0;if((d|0)!=(e|0)){continue}break}i[a+4>>2]=d;return}Ko();x()}function hj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+56>>2]-i[c+52>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];g=c<<2;c=ko(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){kp(c,d,e)}i[b+8>>2]=g;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}ep(d)}e=a+8|0;b=i[a+76>>2];c:{if(b){d=1;c=i[b>>2];if((c|0)==i[b+4>>2]){break c}b=0;while(1){d=ij(e,i[(b<<2)+c>>2]);if(!d){break c}f=i[a+76>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break c}d=1;a=i[i[a+12>>2]+64>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break c}b=0;while(1){d=ij(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break c}if(d){continue}break}}return d|0}Ba(11708);x()}function kn(a,b,c,d,e,f){var g=0;g=H-80|0;H=g;a:{if((f|0)>=16384){An(g+32|0,b,c,d,e,0,0,0,2147352576);d=i[g+40>>2];e=i[g+44>>2];b=i[g+32>>2];c=i[g+36>>2];if((f|0)<32767){f=f+ -16383|0;break a}An(g+16|0,b,c,d,e,0,0,0,2147352576);f=((f|0)<49149?f:49149)+ -32766|0;d=i[g+24>>2];e=i[g+28>>2];b=i[g+16>>2];c=i[g+20>>2];break a}if((f|0)>-16383){break a}An(g- -64|0,b,c,d,e,0,0,0,65536);d=i[g+72>>2];e=i[g+76>>2];b=i[g+64>>2];c=i[g+68>>2];if((f|0)>-32765){f=f+16382|0;break a}An(g+48|0,b,c,d,e,0,0,0,65536);f=((f|0)>-49146?f:-49146)+32764|0;d=i[g+56>>2];e=i[g+60>>2];b=i[g+48>>2];c=i[g+52>>2]}An(g,b,c,d,e,0,0,0,f+16383<<16);b=i[g+12>>2];i[a+8>>2]=i[g+8>>2];i[a+12>>2]=b;b=i[g+4>>2];i[a>>2]=i[g>>2];i[a+4>>2]=b;H=g+80|0}function bj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+28>>2]-i[c+24>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];g=c<<2;c=ko(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){kp(c,d,e)}i[b+8>>2]=g;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}ep(d)}e=a+8|0;b=i[a+76>>2];c:{if(b){d=1;c=i[b>>2];if((c|0)==i[b+4>>2]){break c}b=0;while(1){d=cj(e,i[(b<<2)+c>>2]);if(!d){break c}f=i[a+76>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break c}d=1;a=i[a+12>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break c}b=0;while(1){d=cj(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break c}if(d){continue}break}}return d|0}Ba(11708);x()}function tl(a,b,c){var d=0,e=0,f=0,h=0,k=0;f=c-b|0;e=i[a+8>>2];d=i[a>>2];if(f>>>0<=e-d>>>0){h=i[a+4>>2]-d|0;e=h+b|0;k=f>>>0>h>>>0?e:c;if((k|0)!=(b|0)){while(1){g[d|0]=j[b|0];d=d+1|0;b=b+1|0;if((k|0)!=(b|0)){continue}break}}if(f>>>0>h>>>0){b=i[a+4>>2];if((c|0)!=(k|0)){while(1){g[b|0]=j[e|0];b=b+1|0;e=e+1|0;if((e|0)!=(c|0)){continue}break}}i[a+4>>2]=b;return}i[a+4>>2]=d;return}if(d){i[a+4>>2]=d;ep(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;e=0}a:{if((f|0)<=-1){break a}d=e<<1;e=e>>>0<1073741823?d>>>0>>0?f:d:2147483647;if((e|0)<=-1){break a}d=ko(e);i[a>>2]=d;i[a+4>>2]=d;i[a+8>>2]=d+e;if((b|0)!=(c|0)){kp(d,b,f);while(1){d=d+1|0;b=b+1|0;if((c|0)!=(b|0)){continue}break}}i[a+4>>2]=d;return}Ko();x()}function mi(a){var b=0,c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0;b=i[a+112>>2]-i[a+108>>2]|0;c=(b|0)/12|0;Kb(c,i[i[a+4>>2]+44>>2]);if(b){f=c>>>0>1?c:1;while(1){b=i[a+108>>2]+o(d,12)|0;Kb(i[b+4>>2]-h|0,i[i[a+4>>2]+44>>2]);Kb(i[b+4>>2]-i[b>>2]|0,i[i[a+4>>2]+44>>2]);h=i[b+4>>2];d=d+1|0;if((f|0)!=(d|0)){continue}break}d=0;Xj(i[i[a+4>>2]+44>>2],c,0,0);f=c>>>0>1?c:1;while(1){c=i[i[a+4>>2]+44>>2];b=i[c+20>>2];if((b|0)>0?1:(b|0)>=0?l[c+16>>2]>=1:0){h=j[(i[a+108>>2]+o(d,12)|0)+8|0];c=i[c+12>>2];e=i[c+4>>2];b=e>>>3|0;k=b+i[c>>2]|0;m=j[k|0];e=e&7;n=k,p=Bp(-2,e)&m,g[n|0]=p;b=b+i[c>>2]|0;g[b|0]=j[b|0]|(h&1)<>2]=i[c+4>>2]+1}d=d+1|0;if((f|0)!=(d|0)){continue}break}Yj(i[i[a+4>>2]+44>>2])}return 1}function hn(a){var b=0,c=0,d=0,e=0,f=0,h=0,k=0;c=i[a+116>>2];d=c;a:{f=i[a+112>>2];b:{if(c|f){c=i[a+124>>2];if((c|0)>(d|0)?1:(c|0)>=(d|0)?l[a+120>>2]>=f>>>0:0){break b}}f=fn(a);if((f|0)>-1){break a}}i[a+104>>2]=0;return-1}c=i[a+8>>2];d=i[a+116>>2];e=d;c:{d:{b=i[a+112>>2];if(!(d|b)){break d}d=(i[a+124>>2]^-1)+e|0;e=i[a+120>>2]^-1;b=e+b|0;if(b>>>0>>0){d=d+1|0}e=b;b=i[a+4>>2];h=c-b|0;k=e>>>0>=h>>>0;h=h>>31;if((d|0)>(h|0)?1:(d|0)>=(h|0)?k:0){break d}i[a+104>>2]=e+b;break c}i[a+104>>2]=c}e:{if(!c){c=i[a+4>>2];break e}d=a;b=c;c=i[a+4>>2];b=(b-c|0)+1|0;e=b+i[a+120>>2]|0;a=i[a+124>>2]+(b>>31)|0;i[d+120>>2]=e;i[d+124>>2]=e>>>0>>0?a+1|0:a}a=c+ -1|0;if(j[a|0]!=(f|0)){g[a|0]=f}return f}function Id(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){f=i[a+4>>2]-e|0;d=f+b|0;h=f>>2;j=g>>>0>h>>>0?d:c;f=j-b|0;if(f){mp(e,b,f)}if(g>>>0>h>>>0){b=i[a+4>>2];if((c|0)!=(j|0)){while(1){i[b>>2]=i[d>>2];b=b+4|0;d=d+4|0;if((d|0)!=(c|0)){continue}break}}i[a+4>>2]=b;return}i[a+4>>2]=e+f;return}if(e){i[a+4>>2]=e;ep(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?g:e:1073741823;if(d>>>0>=1073741824){break a}e=d<<2;d=ko(e);i[a>>2]=d;i[a+4>>2]=d;i[a+8>>2]=d+e;if((b|0)!=(c|0)){kp(d,b,f&-4);while(1){d=d+4|0;b=b+4|0;if((c|0)!=(b|0)){continue}break}}i[a+4>>2]=d;return}Ko();x()}function Fj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{b=i[a+4>>2];b=i[b+12>>2]-i[b+8>>2]|0;if((b|0)<=0){b=b>>2;break a}while(1){if(K[i[i[a>>2]+36>>2]](a,c)|0){c=c+1|0;b=i[a+4>>2];b=i[b+12>>2]-i[b+8>>2]>>2;if((c|0)<(b|0)){continue}break a}break}return 0}f=a+20|0;d=i[a+20>>2];c=i[a+24>>2]-d>>2;b:{if(b>>>0>c>>>0){Cd(f,b-c|0);break b}if(b>>>0>=c>>>0){break b}i[a+24>>2]=d+(b<<2)}b=i[a+8>>2];a=i[a+12>>2];if((b|0)!=(a|0)){a=a-b>>2;g=a>>>0>1?a:1;c=0;while(1){a=i[(c<<2)+b>>2];e=i[a+8>>2];d=i[a+4>>2];if((e|0)!=(d|0)){a=e-d>>2;e=a>>>0>1?a:1;h=i[f>>2];a=0;while(1){i[(i[d+(a<<2)>>2]<<2)+h>>2]=c;a=a+1|0;if((e|0)!=(a|0)){continue}break}}c=c+1|0;if((g|0)!=(c|0)){continue}break}}return 1}function Og(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,m=0;e=i[d>>2];d=i[e>>2];a:{e=i[e+4>>2]-d>>3;j=i[b>>2];if(e>>>0<=j>>>0){break a}h=i[a>>2];if(e>>>0<=h>>>0){break a}g=i[c>>2];m=i[d+(j<<3)>>2];k=d+(h<<3)|0;b:{c:{if(m>>>0>=l[k>>2]){if(e>>>0<=g>>>0){break a}f=0;if(l[d+(g<<3)>>2]>=m>>>0){break b}i[b>>2]=g;i[c>>2]=j;c=i[b>>2];if(e>>>0<=c>>>0){break a}k=e;e=i[a>>2];if(k>>>0<=e>>>0){break a}f=1;if(l[d+(c<<3)>>2]>=l[d+(e<<3)>>2]){break b}i[a>>2]=c;i[b>>2]=e;break c}if(e>>>0<=g>>>0){break a}if(l[d+(g<<3)>>2]>>0){i[a>>2]=g;i[c>>2]=h;return 1}i[a>>2]=j;i[b>>2]=h;a=i[c>>2];if(e>>>0<=a>>>0){break a}f=1;if(l[d+(a<<3)>>2]>=l[k>>2]){break b}i[b>>2]=a;i[c>>2]=h}f=2}return f}Lo();x()}function mm(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=ko(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;c=i[a+4>>2];d=i[a>>2];if((c|0)==(d|0)){break b}while(1){c=c+ -4|0;g=i[c>>2];i[c>>2]=0;b=b+ -4|0;i[b>>2]=g;if((c|0)!=(d|0)){continue}break}d=i[a+4>>2];c=i[a>>2];break a}Ko();x()}Ba(16788);x()}c=d}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b;if((c|0)!=(d|0)){while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){Ak(a+12|0,i[a+16>>2]);Bk(a,i[a+4>>2]);ep(a)}if((c|0)!=(d|0)){continue}break}}if(c){ep(c)}}function Mg(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;j=Lg(a,b,c,d,f);g=i[f>>2];f=i[g>>2];a:{g=i[g+4>>2]-f>>3;h=i[e>>2];if(g>>>0<=h>>>0){break a}k=i[d>>2];if(g>>>0<=k>>>0){break a}if(l[f+(h<<3)>>2]>2]){i[d>>2]=h;i[e>>2]=k;e=i[d>>2];if(g>>>0<=e>>>0){break a}h=i[c>>2];if(g>>>0<=h>>>0){break a}if(l[f+(e<<3)>>2]>=l[f+(h<<3)>>2]){return j+1|0}i[c>>2]=e;i[d>>2]=h;d=i[c>>2];if(g>>>0<=d>>>0){break a}e=i[b>>2];if(g>>>0<=e>>>0){break a}if(l[f+(d<<3)>>2]>=l[f+(e<<3)>>2]){return j+2|0}i[b>>2]=d;i[c>>2]=e;c=i[b>>2];if(g>>>0<=c>>>0){break a}d=i[a>>2];if(g>>>0<=d>>>0){break a}if(l[f+(c<<3)>>2]>=l[f+(d<<3)>>2]){return j+3|0}i[a>>2]=c;i[b>>2]=d;j=j+4|0}return j}Lo();x()}function sn(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0;j=1;i=d&2147483647;m=i;k=c;a:{if(!c&(i|0)==2147418112?a|b:(i|0)==2147418112&c>>>0>0|i>>>0>2147418112){break a}l=h&2147483647;n=l;i=g;if(!g&(l|0)==2147418112?e|f:(l|0)==2147418112&g>>>0>0|l>>>0>2147418112){break a}if(!(a|e|(i|k)|(b|f|(m|n)))){return 0}k=d&h;if((k|0)>0?1:(k|0)>=0?(c&g)>>>0>=0:0){j=-1;if((c|0)==(g|0)&(d|0)==(h|0)?(b|0)==(f|0)&a>>>0>>0|b>>>0>>0:(d|0)<(h|0)?1:(d|0)<=(h|0)?c>>>0>>0:0){break a}return(a^e|c^g)!=0|(b^f|d^h)!=0}j=-1;if((c|0)==(g|0)&(d|0)==(h|0)?(b|0)==(f|0)&a>>>0>e>>>0|b>>>0>f>>>0:(d|0)>(h|0)?1:(d|0)>=(h|0)?c>>>0>g>>>0:0){break a}j=(a^e|c^g)!=0|(b^f|d^h)!=0}return j}function Xm(a,b,c){a:{b:{if(b>>>0>20){break b}c:{switch(b+ -9|0){case 0:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=i[b>>2];return;case 1:b=i[c>>2];i[c>>2]=b+4;b=i[b>>2];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 2:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=i[b>>2];i[a+4>>2]=0;return;case 4:b=i[c>>2];i[c>>2]=b+4;b=h[b>>1];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 5:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=k[b>>1];i[a+4>>2]=0;return;case 6:b=i[c>>2];i[c>>2]=b+4;b=g[b|0];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 7:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=j[b|0];i[a+4>>2]=0;return;case 3:case 8:break a;case 9:break c;default:break b}}K[369](a,c)}return}b=i[c>>2]+7&-8;i[c>>2]=b+8;c=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=c}function Vh(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=H-16|0;H=e;i[a+4>>2]=0;a:{b:{if(!b){break b}f=i[a+8>>2];d=f<<5;c:{if(d>>>0>=b>>>0){i[a+4>>2]=b;break c}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if((b|0)<=-1){break a}h=e;if(d>>>0<=1073741822){g=b+31&-32;d=f<<6;d=d>>>0>>0?g:d}else{d=2147483647}cd(h,d);d=i[a>>2];i[a>>2]=i[e>>2];i[e>>2]=d;f=i[a+4>>2];i[a+4>>2]=b;i[e+4>>2]=f;f=i[a+8>>2];i[a+8>>2]=i[e+8>>2];i[e+8>>2]=f;if(!d){break c}ep(d)}d=b>>>5|0;f=d<<2;a=i[a>>2];if(j[c|0]){a=lp(a,255,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;i[a>>2]=i[a>>2]|-1>>>32-b;break b}a=lp(a,0,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;i[a>>2]=i[a>>2]&(-1>>>32-b^-1)}H=e+16|0;return}Ko();x()}function li(a){var b=0,c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0;k=a+32|0;b=i[a+64>>2];b=i[(K[i[i[b>>2]+40>>2]](b)|0)+56>>2];Xj(k,o((i[b+100>>2]-i[b+96>>2]|0)/12|0,3),0,1);a:{b=i[a+68>>2];d=i[a+72>>2]-b|0;if((d|0)<1){break a}d=(d>>>2|0)+ -1|0;while(1){c=i[a+52>>2];b:{if((c|0)<0?1:(c|0)<=0?l[a+48>>2]<1:0){break b}h=i[(d<<2)+b>>2];if(!(171>>>h&1)){break b}n=i[(h<<2)+12048>>2];b=i[a+44>>2];c=i[b+4>>2];f=0;while(1){e=c>>>3|0;m=e+i[b>>2]|0;p=j[m|0];c=c&7;q=m,r=Bp(-2,c)&p,g[q|0]=r;e=e+i[b>>2]|0;g[e|0]=j[e|0]|(h>>>f&1)<>2]+1|0;i[b+4>>2]=c;f=f+1|0;if((n|0)!=(f|0)){continue}break}}d=d+ -1|0;if((d|0)<0){break a}b=i[a+68>>2];continue}}Yj(k)}function Zf(a,b,c){var d=0,e=0,f=0;d=H-16|0;H=d;i[d+12>>2]=b;b=ko(32);i[d>>2]=b;i[d+4>>2]=17;i[d+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[10556];e=j[10552]|j[10553]<<8|(j[10554]<<16|j[10555]<<24);f=j[10548]|j[10549]<<8|(j[10550]<<16|j[10551]<<24);g[b+8|0]=f;g[b+9|0]=f>>>8;g[b+10|0]=f>>>16;g[b+11|0]=f>>>24;g[b+12|0]=e;g[b+13|0]=e>>>8;g[b+14|0]=e>>>16;g[b+15|0]=e>>>24;e=j[10544]|j[10545]<<8|(j[10546]<<16|j[10547]<<24);f=j[10540]|j[10541]<<8|(j[10542]<<16|j[10543]<<24);g[b|0]=f;g[b+1|0]=f>>>8;g[b+2|0]=f>>>16;g[b+3|0]=f>>>24;g[b+4|0]=e;g[b+5|0]=e>>>8;g[b+6|0]=e>>>16;g[b+7|0]=e>>>24;_j(zf(a+4|0,d+12|0),d,c);if(g[d+11|0]<=-1){ep(i[d>>2])}H=d+16|0}function Ef(a,b,c){var d=0,e=0,f=0;d=H-16|0;H=d;i[d+12>>2]=b;b=ko(32);i[d>>2]=b;i[d+4>>2]=17;i[d+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[10144];e=j[10140]|j[10141]<<8|(j[10142]<<16|j[10143]<<24);f=j[10136]|j[10137]<<8|(j[10138]<<16|j[10139]<<24);g[b+8|0]=f;g[b+9|0]=f>>>8;g[b+10|0]=f>>>16;g[b+11|0]=f>>>24;g[b+12|0]=e;g[b+13|0]=e>>>8;g[b+14|0]=e>>>16;g[b+15|0]=e>>>24;e=j[10132]|j[10133]<<8|(j[10134]<<16|j[10135]<<24);f=j[10128]|j[10129]<<8|(j[10130]<<16|j[10131]<<24);g[b|0]=f;g[b+1|0]=f>>>8;g[b+2|0]=f>>>16;g[b+3|0]=f>>>24;g[b+4|0]=e;g[b+5|0]=e>>>8;g[b+6|0]=e>>>16;g[b+7|0]=e>>>24;_j(zf(a+4|0,d+12|0),d,c);if(g[d+11|0]<=-1){ep(i[d>>2])}H=d+16|0}function na(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0;i[b>>2]=1;f=b+8|0;c=i[b+8>>2];d=i[b+12>>2]-c|0;if(d>>>0<=4294967291){Sj(f,d+4|0);c=i[f>>2]}c=c+d|0;d=i[a+4>>2];g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;c=i[a+8>>2];if((c|0)!=i[a+12>>2]){d=0;while(1){h=(d<<2)+c|0;c=i[b+8>>2];e=i[b+12>>2]-c|0;if(e>>>0<=4294967291){Sj(f,e+4|0);c=i[f>>2]}c=c+e|0;e=i[h>>2];g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;d=d+1|0;c=i[a+8>>2];if(d>>>0>2]-c>>2>>>0){continue}break}}c=i[b+12>>2];b=i[b+8>>2];c=c-b|0;if(c>>>0<=4294967291){Sj(f,c+4|0);b=i[f>>2]}b=b+c|0;a=i[a+20>>2];g[b|0]=a;g[b+1|0]=a>>>8;g[b+2|0]=a>>>16;g[b+3|0]=a>>>24}function Yh(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=ko(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;c=i[a+4>>2];d=i[a>>2];if((c|0)==(d|0)){break b}while(1){c=c+ -4|0;g=i[c>>2];i[c>>2]=0;b=b+ -4|0;i[b>>2]=g;if((c|0)!=(d|0)){continue}break}d=i[a+4>>2];c=i[a>>2];break a}Ko();x()}Ba(11708);x()}c=d}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b;if((c|0)!=(d|0)){while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){K[i[i[a>>2]+4>>2]](a)}if((c|0)!=(d|0)){continue}break}}if(c){ep(c)}}function Ui(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=(c>>>0)/3|0;Vi(i[a+12>>2],i[(i[i[a+8>>2]+96>>2]+o(d,12)|0)+(c-o(d,3)<<2)>>2]);a:{b:{g=i[a+4>>2];d=i[g+4>>2];f=i[g+8>>2];c:{if((d|0)!=(f|0)){i[d>>2]=c;i[g+4>>2]=d+4;break c}h=i[g>>2];j=d-h|0;d=j>>2;e=d+1|0;if(e>>>0>=1073741824){break b}k=d<<2;f=f-h|0;d=f>>1;e=f>>2>>>0<536870911?d>>>0>>0?e:d:1073741823;d=0;d:{if(!e){break d}if(e>>>0>=1073741824){break a}d=ko(e<<2)}f=k+d|0;i[f>>2]=c;c=d+(e<<2)|0;e=f+4|0;if((j|0)>=1){kp(d,h,j)}i[g+8>>2]=c;i[g+4>>2]=e;i[g>>2]=d;if(!h){break c}ep(h)}a=i[a+4>>2];i[i[a+12>>2]+(b<<2)>>2]=i[a+24>>2];i[a+24>>2]=i[a+24>>2]+1;return}Ko();x()}Ba(11708);x()}function jd(a,b,c,d,e){var f=0,g=0,h=0,j=0;g=i[i[i[d+4>>2]+8>>2]+(c<<2)>>2];a:{if((b|0)==-1){b=gf(c,d)}b:{if((b|0)!=-2){if((K[i[i[d>>2]+8>>2]](d)|0)==1){qd(a,d,b,c,e);if(i[a>>2]){break b}i[a>>2]=0}f=ko(44);i[f+4>>2]=g;i[f>>2]=3184;b=i[e+8>>2];c=i[e+12>>2];d=i[e+16>>2];g=i[e+20>>2];h=i[e>>2];j=i[e+4>>2];i[f+40>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;i[f+24>>2]=d;i[f+28>>2]=g;i[f+16>>2]=b;i[f+20>>2]=c;i[f+8>>2]=h;i[f+12>>2]=j;b=i[e+28>>2];e=i[e+24>>2];d=b-e|0;if(d){c=d>>2;if(c>>>0>=1073741824){break a}b=ko(d);i[f+32>>2]=b;i[f+36>>2]=b;i[f+40>>2]=b+(c<<2);c=f;if((d|0)>=1){b=kp(b,e,d)+d|0}i[c+36>>2]=b}i[f>>2]=5876}i[a>>2]=f}return}Ko();x()}function Ml(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=H-16|0;H=f;i[a+80>>2]=0;i[a+84>>2]=0;c=a+76|0;d=i[c>>2];i[c>>2]=0;if(d){ep(d)}i[a+68>>2]=0;i[a+72>>2]=0;c=a- -64|0;d=i[c>>2];i[c>>2]=0;if(d){ep(d)}c=i[b+4>>2];d=i[b>>2];e=o((c-d|0)/12|0,3);h=i[a>>2];g=i[a+4>>2]-h>>2;a:{if(e>>>0>g>>>0){Bi(a,e-g|0);d=i[b>>2];c=i[b+4>>2];break a}if(e>>>0>=g>>>0){break a}i[a+4>>2]=h+(e<<2)}if((c|0)!=(d|0)){b=(c-d|0)/12|0;g=b>>>0>1?b:1;h=i[a>>2];b=0;while(1){e=o(b,12);c=e+h|0;e=d+e|0;i[c>>2]=i[e>>2];i[c+4>>2]=i[e+4>>2];i[c+8>>2]=i[e+8>>2];b=b+1|0;if((g|0)!=(b|0)){continue}break}}i[f+12>>2]=-1;b=Nl(a,f+12|0);if(b){Ol(a);Pl(a,i[f+12>>2])}H=f+16|0;return b}function Gd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=H-32|0;H=d;h=1;while(1){g=o(c,12)+a|0;e=g- -64|0;Kb(i[e>>2],b);c=c+1|0;if(i[e>>2]){f=nf(d);qf(f);e=i[e>>2]-c|0;if((e|0)>=0){k=g+60|0;while(1){g=0;while(1){j=e+g|0;rf(f,i[i[k>>2]+(j>>>3&536870908)>>2]>>>(j&31)&1);g=g+1|0;if((h|0)!=(g|0)){continue}break}e=e-c|0;if((e|0)>=0){continue}break}}tf(f,b);of(f)}h=h+1|0;if((c|0)!=4){continue}break}i[d>>2]=i[a+12>>2];h=i[b+20>>2];c=h;f=i[b+16>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ea(b,i[b+4>>2],d,d+4|0);f=i[b+16>>2];c=i[b+20>>2]}i[d>>2]=i[a+16>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ea(b,i[b+4>>2],d,d+4|0)}H=d+32|0;return 1}function De(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=H-32|0;H=d;h=1;while(1){g=o(c,12)+a|0;e=g+48|0;Kb(i[e>>2],b);c=c+1|0;if(i[e>>2]){f=nf(d);qf(f);e=i[e>>2]-c|0;if((e|0)>=0){k=g+44|0;while(1){g=0;while(1){j=e+g|0;rf(f,i[i[k>>2]+(j>>>3&536870908)>>2]>>>(j&31)&1);g=g+1|0;if((h|0)!=(g|0)){continue}break}e=e-c|0;if((e|0)>=0){continue}break}}tf(f,b);of(f)}h=h+1|0;if((c|0)!=4){continue}break}i[d>>2]=i[a+12>>2];h=i[b+20>>2];c=h;f=i[b+16>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ea(b,i[b+4>>2],d,d+4|0);f=i[b+16>>2];c=i[b+20>>2]}i[d>>2]=i[a+24>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ea(b,i[b+4>>2],d,d+4|0)}H=d+32|0;return 1}function Wb(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=ko(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;c=i[a+4>>2];d=i[a>>2];if((c|0)==(d|0)){break b}while(1){c=c+ -4|0;g=i[c>>2];i[c>>2]=0;b=b+ -4|0;i[b>>2]=g;if((c|0)!=(d|0)){continue}break}d=i[a+4>>2];c=i[a>>2];break a}Ko();x()}Ba(1752);x()}c=d}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b;if((c|0)!=(d|0)){while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){Xb(a)}if((c|0)!=(d|0)){continue}break}}if(c){ep(c)}}function ra(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,j=0,k=0,l=p(0),n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0;h=H-16|0;H=h;if(i[c+28>>2]==9){d=i[a+4>>2];e=g[c+24|0];j=e<<2;k=ko((e&1073741823)!=(e|0)?-1:j);n=fk(h+8|0);f=n;l=m[a+20>>2];d=-1<=1){m[f>>2]=l/p(d|0)}f=(d|0)>0;a:{if(!f){break a}o=i[c+80>>2];if(!o){break a}t=i[i[b>>2]>>2]+i[b+48>>2]|0;u=(e|0)<1;d=0;while(1){if(!u){v=i[a+8>>2];l=m[n>>2];b=0;while(1){q=b<<2;m[q+k>>2]=p(l*p(i[(d<<2)+t>>2]))+m[v+q>>2];d=d+1|0;b=b+1|0;if((e|0)!=(b|0)){continue}break}}kp(i[i[c+64>>2]>>2]+r|0,k,j);r=j+r|0;s=s+1|0;if((s|0)!=(o|0)){continue}break}}ep(k)}H=h+16|0;return f|0}function zn(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;f=H-16|0;H=f;Hp(+b);h=Ep(1)|0;g=Ep(0)|0;e=h&2147483647;c=e;e=c+ -1048576|0;d=g;if(d>>>0<0){e=e+1|0}a:{if((e|0)==2145386495|e>>>0<2145386495){j=d<<28;e=(c&15)<<28|d>>>4;c=(c>>>4|0)+1006632960|0;d=e;c=d>>>0<0?c+1|0:c;break a}if((c|0)==2146435072&d>>>0>=0|c>>>0>2146435072){j=g<<28;e=g;c=h;g=c>>>4|0;d=(c&15)<<28|e>>>4;c=g|2147418112;break a}if(!(c|d)){d=0;c=0;break a}e=c;c=(c|0)==1&d>>>0<0|c>>>0<1?r(g)+32|0:r(c);un(f,d,e,0,0,c+49|0);k=i[f>>2];j=i[f+4>>2];d=i[f+8>>2];c=i[f+12>>2]^65536|15372-c<<16}i[a>>2]=k;i[a+4>>2]=j;i[a+8>>2]=d;i[a+12>>2]=h&-2147483648|c;H=f+16|0}function Wh(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){f=i[a+4>>2];d=f-e|0;h=d>>2;d=g>>>0>h>>>0?b+d|0:c;if((d|0)!=(b|0)){while(1){i[e>>2]=i[b>>2];e=e+4|0;b=b+4|0;if((d|0)!=(b|0)){continue}break}}if(g>>>0>h>>>0){b=c-d|0;if((b|0)>=1){f=kp(f,d,b)+b|0}i[a+4>>2]=f;return}i[a+4>>2]=e;return}if(e){i[a+4>>2]=e;ep(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=ko(e);i[a>>2]=c;i[a+4>>2]=c;i[a+8>>2]=c+e;if((f|0)>=1){c=kp(c,b,f)+f|0}i[a+4>>2]=c;return}Ko();x()}function cc(a){var b=0,c=0,d=0,e=0;d=i[a+1176>>2];if(d){b=i[a+1180>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;ep(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+1176>>2]}i[a+1180>>2]=d;ep(c)}d=i[a+1164>>2];if(d){b=i[a+1168>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;ep(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+1164>>2]}i[a+1168>>2]=d;ep(c)}b=i[a+1152>>2];if(b){i[a+1156>>2]=b;ep(b)}b=i[a+1140>>2];if(b){i[a+1144>>2]=b;ep(b)}b=i[a+1128>>2];if(b){i[a+1132>>2]=b;ep(b)}kf(a+1108|0);kf(a+1088|0);kf(a+1068|0);of(a+1036|0);nc(a+12|0)}function Tm(a,b){var c=0,d=0,e=0,f=0,h=0;c=H-208|0;H=c;i[c+204>>2]=b;b=0;lp(c+160|0,0,40);i[c+200>>2]=i[c+204>>2];a:{if((Um(0,c+200|0,c+80|0,c+160|0)|0)<0){a=-1;break a}b=i[a+76>>2]>=0?1:b;d=i[a>>2];if(g[a+74|0]<=0){i[a>>2]=d&-33}h=d&32;b:{if(i[a+48>>2]){e=Um(a,c+200|0,c+80|0,c+160|0);break b}i[a+48>>2]=80;i[a+16>>2]=c+80;i[a+28>>2]=c;i[a+20>>2]=c;d=i[a+44>>2];i[a+44>>2]=c;f=Um(a,c+200|0,c+80|0,c+160|0);e=f;if(!d){break b}K[i[a+36>>2]](a,0,0)|0;i[a+48>>2]=0;i[a+44>>2]=d;i[a+28>>2]=0;i[a+16>>2]=0;d=i[a+20>>2];i[a+20>>2]=0;e=d?f:-1}d=e;e=a;a=i[a>>2];i[e>>2]=a|h;a=a&32?-1:d;if(!b){break a}}H=c+208|0;return a}function wf(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=H-16|0;H=f;g=Zj(a);d=a+16|0;i[d>>2]=0;i[d+4>>2]=0;i[a+12>>2]=d;d=Zj(a+24|0);if((g|0)!=(b+4|0)){yf(a,i[b+4>>2],b+8|0)}if((d|0)!=(b+28|0)){yf(d,i[b+28>>2],b+32|0)}d=0;i[f+12>>2]=0;e=i[c+8>>2];if((i[c+12>>2]-e|0)>=1){g=b+20|0;while(1){b=i[g>>2];a:{if(!b){break a}h=i[i[(d<<2)+e>>2]+56>>2];d=g;while(1){e=i[b+16>>2]<(h|0);d=e?d:b;b=i[(e<<2)+b>>2];if(b){continue}break}if((d|0)==(g|0)|(h|0)>2]){break a}b=zf(a,f+12|0);if((b|0)==(d+20|0)){break a}yf(b,i[d+20>>2],d+24|0)}d=i[f+12>>2]+1|0;i[f+12>>2]=d;e=i[c+8>>2];if((d|0)>2]-e>>2){continue}break}}H=f+16|0}function $e(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=H-32|0;H=f;d=d-e|0;if((d|0)>=1){j=a+8|0;l=0-e<<2;while(1){k=d<<2;g=k+b|0;h=g+l|0;m=i[h>>2];h=i[h+4>>2];n=i[g+4>>2];i[f+16>>2]=i[g>>2];i[f+20>>2]=n;i[f+8>>2]=m;i[f+12>>2]=h;Ae(f+24|0,j,f+16|0,f+8|0);g=c+k|0;i[g>>2]=i[f+24>>2];i[g+4>>2]=i[f+28>>2];d=d-e|0;if((d|0)>0){continue}break}}d=(e&1073741823)!=(e|0)?-1:e<<2;d=lp(ko(d),0,d);e=i[d>>2];g=i[d+4>>2];j=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=j;i[f+8>>2]=e;i[f+12>>2]=g;Ae(f+24|0,a+8|0,f+16|0,f+8|0);i[c>>2]=i[f+24>>2];i[c+4>>2]=i[f+28>>2];ep(d);H=f+32|0;return 1}function ec(a,b,c,d,e){var f=0,g=0,h=0,j=0;f=H-32|0;H=f;i[a>>2]=i[d>>2];d=i[c>>2]-i[b>>2]|0;i[a+4>>2]=d;g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){d=a+4|0;ea(e,i[e+4>>2],a,d);g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){ea(e,i[e+4>>2],d,d+4|0)}d=i[d>>2]}if(d){lc(a+12|0);d=a+1068|0;lf(d);g=a+1088|0;lf(g);h=a+1108|0;lf(h);i[f+24>>2]=i[b+8>>2];j=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=j;i[f+8>>2]=i[c+8>>2];b=i[c+4>>2];i[f>>2]=i[c>>2];i[f+4>>2]=b;qc(a,f+16|0,f);c=0;while(1){tf(((c<<5)+a|0)+12|0,e);c=c+1|0;if((c|0)!=32){continue}break}tf(a+1036|0,e);mf(d,e);mf(g,e);mf(h,e)}H=f+32|0;return 1}function bc(a,b,c,d,e){var f=0,g=0,h=0,j=0;f=H-32|0;H=f;i[a>>2]=i[d>>2];d=i[c>>2]-i[b>>2]|0;i[a+4>>2]=d;g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){d=a+4|0;ea(e,i[e+4>>2],a,d);g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){ea(e,i[e+4>>2],d,d+4|0)}d=i[d>>2]}if(d){lc(a+12|0);d=a+1068|0;lf(d);g=a+1088|0;lf(g);h=a+1108|0;lf(h);i[f+24>>2]=i[b+8>>2];j=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=j;i[f+8>>2]=i[c+8>>2];b=i[c+4>>2];i[f>>2]=i[c>>2];i[f+4>>2]=b;mc(a,f+16|0,f);c=0;while(1){tf(((c<<5)+a|0)+12|0,e);c=c+1|0;if((c|0)!=32){continue}break}tf(a+1036|0,e);mf(d,e);mf(g,e);mf(h,e)}H=f+32|0;return 1}function Hf(a,b){var c=0,d=0,e=0,f=0;f=H-16|0;H=f;c=ko(16);i[f>>2]=c;i[f+4>>2]=15;i[f+8>>2]=-2147483632;g[c+15|0]=0;d=j[10479]|j[10480]<<8|(j[10481]<<16|j[10482]<<24);e=j[10475]|j[10476]<<8|(j[10477]<<16|j[10478]<<24);g[c+7|0]=e;g[c+8|0]=e>>>8;g[c+9|0]=e>>>16;g[c+10|0]=e>>>24;g[c+11|0]=d;g[c+12|0]=d>>>8;g[c+13|0]=d>>>16;g[c+14|0]=d>>>24;d=j[10472]|j[10473]<<8|(j[10474]<<16|j[10475]<<24);e=j[10468]|j[10469]<<8|(j[10470]<<16|j[10471]<<24);g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;_j(a+4|0,f,b);if(g[f+11|0]<=-1){ep(i[f>>2])}H=f+16|0}function $f(a,b){var c=0,d=0,e=0,f=0;f=H-16|0;H=f;c=ko(16);i[f>>2]=c;i[f+4>>2]=15;i[f+8>>2]=-2147483632;g[c+15|0]=0;d=j[10535]|j[10536]<<8|(j[10537]<<16|j[10538]<<24);e=j[10531]|j[10532]<<8|(j[10533]<<16|j[10534]<<24);g[c+7|0]=e;g[c+8|0]=e>>>8;g[c+9|0]=e>>>16;g[c+10|0]=e>>>24;g[c+11|0]=d;g[c+12|0]=d>>>8;g[c+13|0]=d>>>16;g[c+14|0]=d>>>24;d=j[10528]|j[10529]<<8|(j[10530]<<16|j[10531]<<24);e=j[10524]|j[10525]<<8|(j[10526]<<16|j[10527]<<24);g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;_j(a+4|0,f,b);if(g[f+11|0]<=-1){ep(i[f>>2])}H=f+16|0}function Ya(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];d=i[a+4>>2];if(e-d>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=d;return}b=(b<<2)+d|0;while(1){i[d>>2]=i[c>>2];d=d+4|0;if((b|0)!=(d|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];h=d-g|0;f=h>>2;d=f+b|0;if(d>>>0<1073741824){j=f<<2;e=e-g|0;f=e>>1;e=e>>2>>>0<536870911?f>>>0>>0?d:f:1073741823;f=0;b:{if(!e){break b}if(e>>>0>=1073741824){break a}f=ko(e<<2)}d=j+f|0;b=d+(b<<2)|0;e=f+(e<<2)|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}if((h|0)>=1){kp(f,g,h)}i[a+8>>2]=e;i[a+4>>2]=b;i[a>>2]=f;if(g){ep(g)}return}Ko();x()}Ba(1352);x()}function Hb(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];d=i[a+4>>2];if(e-d>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=d;return}b=(b<<2)+d|0;while(1){i[d>>2]=i[c>>2];d=d+4|0;if((b|0)!=(d|0)){continue}break}i[a+4>>2]=b;return}a:{g=i[a>>2];h=d-g|0;f=h>>2;d=f+b|0;if(d>>>0<1073741824){j=f<<2;e=e-g|0;f=e>>1;e=e>>2>>>0<536870911?f>>>0>>0?d:f:1073741823;f=0;b:{if(!e){break b}if(e>>>0>=1073741824){break a}f=ko(e<<2)}d=j+f|0;b=d+(b<<2)|0;e=f+(e<<2)|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}if((h|0)>=1){kp(f,g,h)}i[a+8>>2]=e;i[a+4>>2]=b;i[a>>2]=f;if(g){ep(g)}return}Ko();x()}Ba(1520);x()}function Bc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{f=i[a+4>>2];e=i[a>>2];b:{if((f|0)!=(e|0)){c=f;break b}d=i[a+8>>2];c=i[a+12>>2];if(d>>>0>>0){g=((c-d>>2)+1|0)/2<<2;c=g+d|0;e=d-f|0;if(e){c=c-e|0;mp(c,f,e);d=i[a+8>>2]}i[a+4>>2]=c;i[a+8>>2]=d+g;break b}c=c-e|0;c=c?c>>1:1;if(c>>>0>=1073741824){break a}e=c<<2;g=ko(e);h=e+g|0;c=g+(c+3&-4)|0;d=d-f|0;c:{if(!d){e=c;break c}e=c+d|0;d=c;while(1){i[d>>2]=i[f>>2];f=f+4|0;d=d+4|0;if((d|0)!=(e|0)){continue}break}f=i[a>>2]}i[a+12>>2]=h;i[a+8>>2]=e;i[a+4>>2]=c;i[a>>2]=g;if(!f){break b}ep(f);c=i[a+4>>2]}i[c+ -4>>2]=i[b>>2];i[a+4>>2]=i[a+4>>2]+ -4;return}Ba(1752);x()}function Ql(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<2)+c|0;while(1){i[c>>2]=i[4128];c=c+4|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{f=i[a>>2];g=c-f|0;e=g>>2;c=e+b|0;if(c>>>0<1073741824){h=e<<2;d=d-f|0;e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?c:e:1073741823;e=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}e=ko(d<<2)}c=h+e|0;b=c+(b<<2)|0;d=e+(d<<2)|0;h=i[4128];while(1){i[c>>2]=h;c=c+4|0;if((b|0)!=(c|0)){continue}break}if((g|0)>=1){kp(e,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=e;if(f){ep(f)}return}Ko();x()}Ba(16516);x()}function la(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0;d=i[b+88>>2];if(!(!d|i[d>>2]!=1)){c=i[d+8>>2];i[a+4>>2]=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);f=a+8|0;h=i[a+8>>2];e=i[a+12>>2]-h>>2;c=g[b+24|0];a:{if(e>>>0>>0){ma(f,c-e|0);c=j[b+24|0];break a}if(e>>>0<=c>>>0){break a}i[a+12>>2]=h+(c<<2)}h=1;e=i[d+8>>2];b:{if(c<<24>>24<1){b=4;break b}b=c&255;k=b>>>0>1?b:1;f=i[f>>2];c=0;b=4;while(1){d=b+e|0;i[f+(c<<2)>>2]=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);b=b+4|0;c=c+1|0;if((k|0)!=(c|0)){continue}break}}c=a;a=b+e|0;i[c+20>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24)}return h|0}function yc(a,b){var c=0,d=0,e=0,f=0,g=0;e=i[a+16>>2];if(b){i[a+12>>2]=i[a+12>>2]|-2147483648>>>e}b=e+1|0;i[a+16>>2]=b;a:{b:{if((b|0)==32){b=i[a+4>>2];c=i[a+8>>2];c:{if((b|0)!=(c|0)){i[b>>2]=i[a+12>>2];i[a+4>>2]=b+4;break c}e=i[a>>2];f=b-e|0;b=f>>2;d=b+1|0;if(d>>>0>=1073741824){break b}g=b<<2;c=c-e|0;b=c>>1;d=c>>2>>>0<536870911?b>>>0>>0?d:b:1073741823;b=0;d:{if(!d){break d}if(d>>>0>=1073741824){break a}b=ko(d<<2)}c=g+b|0;i[c>>2]=i[a+12>>2];d=b+(d<<2)|0;c=c+4|0;if((f|0)>=1){kp(b,e,f)}i[a+8>>2]=d;i[a+4>>2]=c;i[a>>2]=b;if(!e){break c}ep(e)}i[a+12>>2]=0;i[a+16>>2]=0}return}Ko();x()}Ba(1752);x()}function Je(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=H-48|0;H=c;i[c+40>>2]=i[a- -64>>2];f=i[b+20>>2];if((f|0)<0?1:(f|0)<=0?l[b+16>>2]<=0:0){ea(b,i[b+4>>2],c+40|0,c+44|0)}f=nf(c+8|0);qf(f);if(i[c+40>>2]>=1){d=1;while(1){g=d;d=i[i[a+60>>2]+(e>>>3&536870908)>>2]>>>(e&31)|0;rf(f,(g^d^-1)&1);d=d&1;e=e+1|0;if((e|0)>2]){continue}break}}tf(f,b);i[c+44>>2]=i[a+12>>2];d=i[b+20>>2];e=d;d=i[b+16>>2];if((e|0)<0?1:(e|0)<=0?d>>>0<=0:0){ea(b,i[b+4>>2],c+44|0,c+48|0);d=i[b+16>>2];e=i[b+20>>2]}i[c+44>>2]=i[a+24>>2];if((e|0)<0?1:(e|0)<=0?d>>>0<=0:0){ea(b,i[b+4>>2],c+44|0,c+48|0)}of(f);H=c+48|0;return 1}function Od(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=H-48|0;H=c;i[c+40>>2]=i[a+80>>2];f=i[b+20>>2];if((f|0)<0?1:(f|0)<=0?l[b+16>>2]<=0:0){ea(b,i[b+4>>2],c+40|0,c+44|0)}f=nf(c+8|0);qf(f);if(i[c+40>>2]>=1){d=1;while(1){g=d;d=i[i[a+76>>2]+(e>>>3&536870908)>>2]>>>(e&31)|0;rf(f,(g^d^-1)&1);d=d&1;e=e+1|0;if((e|0)>2]){continue}break}}tf(f,b);i[c+44>>2]=i[a+12>>2];d=i[b+20>>2];e=d;d=i[b+16>>2];if((e|0)<0?1:(e|0)<=0?d>>>0<=0:0){ea(b,i[b+4>>2],c+44|0,c+48|0);d=i[b+16>>2];e=i[b+20>>2]}i[c+44>>2]=i[a+16>>2];if((e|0)<0?1:(e|0)<=0?d>>>0<=0:0){ea(b,i[b+4>>2],c+44|0,c+48|0)}of(f);H=c+48|0;return 1}function Ac(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{c=i[a+8>>2];d=i[a+12>>2];b:{if((c|0)!=(d|0)){break b}f=i[a+4>>2];e=i[a>>2];if(f>>>0>e>>>0){e=((f-e>>2)+1|0)/-2<<2;d=e+f|0;c=c-f|0;if(c){mp(d,f,c);f=i[a+4>>2]}c=c+d|0;i[a+8>>2]=c;i[a+4>>2]=f+e;break b}d=d-e|0;d=d?d>>1:1;if(d>>>0>=1073741824){break a}g=d<<2;h=ko(g);g=h+g|0;d=(d&-4)+h|0;c=c-f|0;c:{if(!c){c=d;break c}c=c+d|0;e=d;while(1){i[e>>2]=i[f>>2];f=f+4|0;e=e+4|0;if((c|0)!=(e|0)){continue}break}e=i[a>>2]}i[a+12>>2]=g;i[a+8>>2]=c;i[a+4>>2]=d;i[a>>2]=h;if(!e){break b}ep(e);c=i[a+8>>2]}i[c>>2]=i[b>>2];i[a+8>>2]=i[a+8>>2]+4;return}Ba(1752);x()}function Mf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0;d=ko(40);c=d+16|0;uo(c,b);uo(d+28|0,b+12|0);b=i[a+4>>2];a:{b:{if(b){e=c;c=j[d+27|0];f=c<<24>>24<0;k=f?i[d+16>>2]:e;f=f?i[d+20>>2]:c;while(1){e=j[b+27|0];c=e<<24>>24<0;c:{d:{e:{f:{e=c?i[b+20>>2]:e;g=e>>>0>>0?e:f;if(g){h=b+16|0;c=Mm(k,c?i[h>>2]:h,g);if(c){break f}}if(f>>>0>>0){break e}break d}if((c|0)>-1){break d}}c=i[b>>2];if(!c){break b}break c}c=i[b+4>>2];if(c){break c}c=b+4|0;break a}b=c;continue}}b=a+4|0}c=b}i[d+8>>2]=b;i[d>>2]=0;i[d+4>>2]=0;i[c>>2]=d;b=i[i[a>>2]>>2];if(b){i[a>>2]=b;d=i[c>>2]}Lf(i[a+4>>2],d);i[a+8>>2]=i[a+8>>2]+1}function _l(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<2)+c|0;while(1){i[c>>2]=1;c=c+4|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{f=i[a>>2];g=c-f|0;e=g>>2;c=e+b|0;if(c>>>0<1073741824){h=e<<2;d=d-f|0;e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?c:e:1073741823;e=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}e=ko(d<<2)}c=h+e|0;b=c+(b<<2)|0;d=e+(d<<2)|0;while(1){i[c>>2]=1;c=c+4|0;if((b|0)!=(c|0)){continue}break}if((g|0)>=1){kp(e,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=e;if(f){ep(f)}return}Ko();x()}Ba(16648);x()}function Xe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;d=H-32|0;H=d;i[a+48>>2]=f;f=i[a+40>>2];g=i[f>>2];a:{f=i[f+4>>2]-g|0;if((f|0)<1){break a}h=f>>2;f=(f>>>2|0)+ -1|0;if(h>>>0>f>>>0){l=a+44|0;m=a+8|0;while(1){ie(l,i[(f<<2)+g>>2],b,f);g=i[a+52>>2];h=i[a+56>>2];j=o(e,f)<<2;k=j+b|0;n=i[k+4>>2];i[d+16>>2]=i[k>>2];i[d+20>>2]=n;i[d+8>>2]=g;i[d+12>>2]=h;Ae(d+24|0,m,d+16|0,d+8|0);g=c+j|0;i[g>>2]=i[d+24>>2];i[g+4>>2]=i[d+28>>2];f=f+ -1|0;if((f|0)<0){break a}h=i[a+40>>2];g=i[h>>2];if(i[h+4>>2]-g>>2>>>0>f>>>0){continue}break}}Lo();x()}H=d+32|0;return 1}function Ke(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;d=H-32|0;H=d;i[a+48>>2]=f;f=i[a+40>>2];g=i[f>>2];a:{f=i[f+4>>2]-g|0;if((f|0)<1){break a}h=f>>2;f=(f>>>2|0)+ -1|0;if(h>>>0>f>>>0){l=a+44|0;m=a+8|0;while(1){Qd(l,i[(f<<2)+g>>2],b,f);g=i[a+52>>2];h=i[a+56>>2];j=o(e,f)<<2;k=j+b|0;n=i[k+4>>2];i[d+16>>2]=i[k>>2];i[d+20>>2]=n;i[d+8>>2]=g;i[d+12>>2]=h;Ae(d+24|0,m,d+16|0,d+8|0);g=c+j|0;i[g>>2]=i[d+24>>2];i[g+4>>2]=i[d+28>>2];f=f+ -1|0;if((f|0)<0){break a}h=i[a+40>>2];g=i[h>>2];if(i[h+4>>2]-g>>2>>>0>f>>>0){continue}break}}Lo();x()}H=d+32|0;return 1}function hc(a){var b=0,c=0,d=0,e=0;d=i[a+152>>2];if(d){b=i[a+156>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;ep(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+152>>2]}i[a+156>>2]=d;ep(c)}d=i[a+140>>2];if(d){b=i[a+144>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;ep(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+140>>2]}i[a+144>>2]=d;ep(c)}b=i[a+128>>2];if(b){i[a+132>>2]=b;ep(b)}b=i[a+116>>2];if(b){i[a+120>>2]=b;ep(b)}b=i[a+104>>2];if(b){i[a+108>>2]=b;ep(b)}kf(a+84|0);kf(a- -64|0);kf(a+44|0);of(a+12|0)}function kc(a){var b=0,c=0,d=0,e=0;d=i[a+140>>2];if(d){b=i[a+144>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;ep(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+140>>2]}i[a+144>>2]=d;ep(c)}d=i[a+128>>2];if(d){b=i[a+132>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;ep(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+128>>2]}i[a+132>>2]=d;ep(c)}b=i[a+116>>2];if(b){i[a+120>>2]=b;ep(b)}b=i[a+104>>2];if(b){i[a+108>>2]=b;ep(b)}b=i[a+92>>2];if(b){i[a+96>>2]=b;ep(b)}kf(a+72|0);kf(a+52|0);kf(a+32|0);kf(a+12|0)}function Pf(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0;f=a+4|0;a:{a=i[a+4>>2];if(a){e=j[c+11|0];d=e<<24>>24<0;k=d?i[c>>2]:c;e=d?i[c+4>>2]:e;while(1){c=j[a+27|0];d=c<<24>>24<0;c=d?i[a+20>>2]:c;l=c>>>0>>0;b:{c:{d:{e:{f:{h=l?c:e;g:{if(h){g=a+16|0;d=d?i[g>>2]:g;g=Mm(k,d,h);if(!g){if(e>>>0>>0){break g}break f}if((g|0)>-1){break f}break g}if(e>>>0>=c>>>0){break e}}c=i[a>>2];if(c){break b}i[b>>2]=a;return a}c=Mm(d,k,h);if(c){break d}}if(l){break c}break a}if((c|0)>-1){break a}}f=a+4|0;c=i[a+4>>2];if(!c){break a}a=f}f=a;a=c;continue}}i[b>>2]=f;return f}i[b>>2]=a;return f}function wm(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;d=H-48|0;H=d;e=vc(a,b);if((e|0)!=(a+4|0)){rm(a,e)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=i[c+4>>2];e=g[c+11|0];h=e&255;k=(e|0)<0?f:h;if(k){Rj(d,k);f=i[c+4>>2];l=i[d>>2];h=j[c+11|0];e=h}m=i[c>>2];k=c;c=e<<24>>24<0;kp(l,c?m:k,c?f:h);b=uo(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;e=i[d+4>>2];c=i[d>>2];f=e-c|0;if(f){Rj(d+28|0,f);e=i[d+4>>2];n=i[d+28>>2];c=i[d>>2]}kp(n,c,e-c|0);sm(d+40|0,a,b,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;ep(a)}if(g[d+27|0]<=-1){ep(i[d+16>>2])}a=i[d>>2];if(a){i[d+4>>2]=a;ep(a)}H=d+48|0}function Ha(a,b){var c=0;c=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=c;c=i[b+60>>2];i[a+56>>2]=i[b+56>>2];i[a+60>>2]=c;c=i[b+52>>2];i[a+48>>2]=i[b+48>>2];i[a+52>>2]=c;c=i[b+44>>2];i[a+40>>2]=i[b+40>>2];i[a+44>>2]=c;c=i[b+36>>2];i[a+32>>2]=i[b+32>>2];i[a+36>>2]=c;c=i[b+28>>2];i[a+24>>2]=i[b+24>>2];i[a+28>>2]=c;c=i[b+20>>2];i[a+16>>2]=i[b+16>>2];i[a+20>>2]=c;c=i[b+12>>2];i[a+8>>2]=i[b+8>>2];i[a+12>>2]=c;i[a+88>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;g[a+77|0]=0;g[a+78|0]=0;g[a+79|0]=0;g[a+80|0]=0;g[a+81|0]=0;g[a+82|0]=0;g[a+83|0]=0;g[a+84|0]=0;return a}function jm(a,b){var c=0,d=0,e=0,f=0,h=0,k=0;d=H-16|0;H=d;a:{b:{c=j[b+11|0];e=c<<24>>24;c:{if((e|0)<=-1){c=i[b+4>>2];if(c>>>0>255){break a}if(!c){break c}break b}if(e){break b}}g[d+15|0]=0;b=i[a+20>>2];if((b|0)<0?1:(b|0)<=0?l[a+16>>2]<=0:0){ea(a,i[a+4>>2],d+15|0,d+16|0)}h=1;break a}g[d+14|0]=c;h=i[a+20>>2];c=h;f=i[a+16>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ea(a,i[a+4>>2],d+14|0,d+15|0);f=i[a+16>>2];c=i[a+20>>2];e=j[b+11|0]}h=1;if((c|0)>0?1:(c|0)>=0?f>>>0>0:0){break a}f=a;k=i[a+4>>2];a=e<<24>>24<0;c=a?i[b>>2]:b;ea(f,k,c,c+(a?i[b+4>>2]:e&255)|0)}H=d+16|0;return h}function vc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;g=a+4|0;a=i[a+4>>2];a:{b:{if(!a){break b}d=j[b+11|0];c=d<<24>>24<0;k=c?i[b>>2]:b;e=c?i[b+4>>2]:d;c=g;while(1){b=j[a+27|0];l=b<<24>>24<0;h=l?i[a+20>>2]:b;f=e>>>0>>0;d=f?e:h;c:{if(d){b=a+16|0;b=Mm(l?i[b>>2]:b,k,d);if(b){break c}}b=h>>>0>>0?-1:f}c=(b|0)<0?c:a;a=i[(b>>>29&4)+a>>2];if(a){continue}break}if((c|0)==(g|0)){break b}a=j[c+27|0];f=a<<24>>24<0;d:{d=f?i[c+20>>2]:a;b=d>>>0>>0?d:e;if(b){a=c+16|0;a=Mm(k,f?i[a>>2]:a,b);if(a){break d}}if(e>>>0>>0){break b}break a}if((a|0)>-1){break a}}c=g}return c}function El(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=H-16|0;H=e;a:{if(!a){break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;h=a+96|0;g=i[a+96>>2];d=(i[a+100>>2]-g|0)/12|0;b:{if(d>>>0>>0){Fl(h,b-d|0,e);break b}if(d>>>0>b>>>0){i[a+100>>2]=g+o(b,12)}if(!b){break a}}g=i[h>>2];d=0;while(1){j=o(d,12);f=j+c|0;k=i[f>>2];l=i[f+8>>2];m=i[f+4>>2];f=(i[a+100>>2]-g|0)/12|0;c:{if(f>>>0>d>>>0){d=d+1|0;break c}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;d=d+1|0;Fl(h,d-f|0,e);g=i[h>>2]}f=g+j|0;i[f+8>>2]=l;i[f+4>>2]=m;i[f>>2]=k;if((b|0)!=(d|0)){continue}break}}H=e+16|0;return(a|0)!=0}function vm(a,b,c){var d=0,e=0,f=0,h=0;d=H-48|0;H=d;e=vc(a,b);if((e|0)!=(a+4|0)){rm(a,e)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;Rj(d,8);e=i[c+4>>2];f=i[d>>2];c=i[c>>2];g[f|0]=c;g[f+1|0]=c>>>8;g[f+2|0]=c>>>16;g[f+3|0]=c>>>24;g[f+4|0]=e;g[f+5|0]=e>>>8;g[f+6|0]=e>>>16;g[f+7|0]=e>>>24;f=uo(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;c=i[d+4>>2];b=i[d>>2];e=c-b|0;if(e){Rj(d+28|0,e);c=i[d+4>>2];h=i[d+28>>2];b=i[d>>2]}kp(h,b,c-b|0);sm(d+40|0,a,f,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;ep(a)}if(g[d+27|0]<=-1){ep(i[d+16>>2])}a=i[d>>2];if(a){i[d+4>>2]=a;ep(a)}H=d+48|0}function gd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=H-16|0;H=d;a:{if(!Dc(a,b,c)){break a}if(f=(K[i[i[a>>2]+32>>2]](a)|0)==1,g=0,h=i[i[a+8>>2]+28>>2]+ -1>>>0>5,h?f:g){break a}g=d+8|0,h=a,j=hf(c,i[b+48>>2]),f=i[i[a>>2]+48>>2],K[f](g|0,h|0,j|0);b=i[d+8>>2];i[d+8>>2]=0;c=i[a+36>>2];i[a+36>>2]=b;b:{if(!c){i[d+8>>2]=0;break b}K[i[i[c>>2]+4>>2]](c);b=i[d+8>>2];i[d+8>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}b=i[a+36>>2]}e=1;if(!b){break a}if(K[i[i[a>>2]+36>>2]](a,b)|0){break a}b=i[a+36>>2];i[a+36>>2]=0;if(!b){break a}K[i[i[b>>2]+4>>2]](b)}H=d+16|0;return e|0}function ta(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){d=i[a+4>>2]-e|0;f=d>>2;d=g>>>0>f>>>0?b+d|0:c;h=d-b|0;if(h){mp(e,b,h)}if(g>>>0>f>>>0){b=i[a+4>>2];c=c-d|0;if((c|0)>=1){b=kp(b,d,c)+c|0}i[a+4>>2]=b;return}i[a+4>>2]=e+h;return}if(e){i[a+4>>2]=e;ep(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=ko(e);i[a>>2]=c;i[a+4>>2]=c;i[a+8>>2]=c+e;if((f|0)>=1){c=kp(c,b,f)+f|0}i[a+4>>2]=c;return}Ko();x()}function Tl(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=-1;a:{if((b|0)==-1){break a}e=i[i[a+24>>2]+(b<<2)>>2];if((e|0)==-1){return 0}f=0;c=1;b=e;while(1){f=f+1|0;h=c;b:{if(c&255){c=0;d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0;if((b|0)==-1){b=e;break b}d=i[i[a+12>>2]+(b<<2)>>2];if((d|0)==-1){b=e;break b}b=e;g=d+1|0;d=(g>>>0)%3|0?g:d+ -2|0;if((d|0)==-1){break b}c=h;b=d;if((e|0)!=(b|0)){break b}break a}b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)==-1){break a}c=i[i[a+12>>2]+(b<<2)>>2];if((c|0)==-1){break a}if((c>>>0)%3|0){b=c+ -1|0}else{b=c+2|0}c=0}if((b|0)!=-1){continue}break}}return f}function sm(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0;h=H-16|0;H=h;l=a;j=Pf(b,h+12|0,c);c=i[j>>2];if(c){b=0}else{c=ko(40);e=d+8|0;i[c+24>>2]=i[e>>2];f=i[d+4>>2];i[c+16>>2]=i[d>>2];i[c+20>>2]=f;i[d>>2]=0;i[d+4>>2]=0;i[e>>2]=0;i[c+36>>2]=0;i[c+28>>2]=0;i[c+32>>2]=0;f=i[d+16>>2];e=i[d+12>>2];k=f-e|0;if(k){e=c+28|0;Rj(e,k);f=i[d+16>>2];m=i[e>>2];e=i[d+12>>2]}kp(m,e,f-e|0);i[c+8>>2]=i[h+12>>2];i[c>>2]=0;i[c+4>>2]=0;i[j>>2]=c;e=i[i[b>>2]>>2];d=c;a:{if(!e){break a}i[b>>2]=e;d=i[j>>2]}Lf(i[b+4>>2],d);i[b+8>>2]=i[b+8>>2]+1;b=1}g[l+4|0]=b;i[a>>2]=c;H=h+16|0}function wl(a,b,c,d){var e=0,f=0,h=0,j=0;e=H-32|0;H=e;a:{b:{c:{if(!a){break c}f=pp(b);if(f>>>0>=4294967280){break b}d:{e:{if(f>>>0>=11){j=f+16&-16;h=ko(j);i[e+24>>2]=j|-2147483648;i[e+16>>2]=h;i[e+20>>2]=f;break e}g[e+27|0]=f;h=e+16|0;if(!f){break d}}kp(h,b,f)}g[f+h|0]=0;i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(d){if(d>>>0>=1073741824){break a}f=d<<2;b=ko(f);i[e>>2]=b;d=b+(d<<2)|0;i[e+8>>2]=d;kp(b,c,f);i[e+4>>2]=d}tm(a,e+16|0,e);b=i[e>>2];if(b){i[e+4>>2]=b;ep(b)}if(g[e+27|0]>-1){break c}ep(i[e+16>>2])}H=e+32|0;return(a|0)!=0}to();x()}Ko();x()}function Fm(a,b){var c=0,d=0,e=0,f=0;a:{if((b|0)<0){break a}c=i[a+24>>2];d=i[a+28>>2];if((c|0)==(d|0)){break a}while(1){e=c+4|0;if(i[i[c>>2]+24>>2]==(b|0)){b:{if((d|0)!=(e|0)){while(1){b=i[e>>2];i[e>>2]=0;f=i[c>>2];i[c>>2]=b;if(f){Ak(f+12|0,i[f+16>>2]);Bk(f,i[f+4>>2]);ep(f)}c=c+4|0;e=e+4|0;if((d|0)!=(e|0)){continue}break}d=i[a+28>>2];if((d|0)==(c|0)){break b}}while(1){d=d+ -4|0;b=i[d>>2];i[d>>2]=0;if(b){Ak(b+12|0,i[b+16>>2]);Bk(b,i[b+4>>2]);ep(b)}if((c|0)!=(d|0)){continue}break}}i[a+28>>2]=c;return}c=e;if((d|0)!=(c|0)){continue}break}}}function jg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>3>>>0>=b>>>0){if(!b){i[a+4>>2]=c;return}b=(b<<3)+c|0;while(1){i[c>>2]=0;i[c+4>>2]=0;c=c+8|0;if((b|0)!=(c|0)){continue}break}i[a+4>>2]=b;return}a:{f=i[a>>2];h=c-f|0;g=h>>3;d=g+b|0;if(d>>>0<536870912){c=0;g=g<<3;e=e-f|0;j=e>>2;d=e>>3>>>0<268435455?j>>>0>>0?d:j:536870911;if(d){if(d>>>0>=536870912){break a}c=ko(d<<3)}b=b<<3;b=lp(c+g|0,0,b)+b|0;d=(d<<3)+c|0;if((h|0)>=1){kp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){ep(f)}return}Ko();x()}Ba(10734);x()}function tc(a){a=a|0;var b=0,c=0,d=0;i[a>>2]=1596;b=i[a+60>>2];if(b){c=i[a- -64>>2];d=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;d=i[c>>2];i[c>>2]=0;if(d){Xb(d)}if((b|0)!=(c|0)){continue}break}d=i[a+60>>2]}i[a+64>>2]=b;ep(d)}b=i[a+48>>2];if(b){i[a+52>>2]=b;ep(b)}b=i[a+36>>2];if(b){c=i[a+40>>2];d=b;b:{if((b|0)==(c|0)){break b}while(1){c=c+ -24|0;K[i[i[c>>2]>>2]](c)|0;if((b|0)!=(c|0)){continue}break}d=i[a+36>>2]}i[a+40>>2]=b;ep(d)}i[a>>2]=1432;b=i[a+16>>2];if(b){i[a+20>>2]=b;ep(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;ep(b)}return a|0}function Gc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;d=i[a+8>>2];e=i[d+40>>2];h=ko((e|0)>-1?e:-1);a:{g=i[b>>2];k=i[b+4>>2];if((g|0)==(k|0)){break a}o=e+h|0;while(1){f=i[(m<<2)+g>>2];e=h;p=i[i[d>>2]>>2];q=i[d+48>>2];n=i[d+40>>2];r=n;s=i[d+44>>2];if(!j[d+84|0]){f=i[i[d+68>>2]+(f<<2)>>2]}d=e;e=xp(r,s,f,0)+q|0;f=kp(d,e+p|0,n);e=i[c+20>>2];if((e|0)<0?1:(e|0)<=0?l[c+16>>2]<=0:0){ea(c,i[c+4>>2],f,o);g=i[b>>2];k=i[b+4>>2]}m=m+1|0;if(m>>>0>=k-g>>2>>>0){break a}d=i[a+8>>2];continue}}ep(h);return 1}function gc(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;f=H-32|0;H=f;i[a>>2]=i[d>>2];d=i[c>>2]-i[b>>2]|0;i[a+4>>2]=d;g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){d=a+4|0;ea(e,i[e+4>>2],a,d);g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){ea(e,i[e+4>>2],d,d+4|0)}d=i[d>>2]}if(d){d=a+12|0;qf(d);g=a+44|0;lf(g);h=a- -64|0;lf(h);j=a+84|0;lf(j);i[f+24>>2]=i[b+8>>2];k=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=k;i[f+8>>2]=i[c+8>>2];b=i[c+4>>2];i[f>>2]=i[c>>2];i[f+4>>2]=b;rc(a,f+16|0,f);tf(d,e);mf(g,e);mf(h,e);mf(j,e)}H=f+32|0;return 1}function qd(a,b,c,d,e){var f=0,g=0,h=0,j=0;f=H-32|0;H=f;h=i[i[i[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((K[i[i[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}j=K[i[i[b>>2]+52>>2]](b)|0;g=K[i[i[b>>2]+60>>2]](b,d)|0;if(!(g?j:0)){i[a>>2]=0;break a}d=K[i[i[b>>2]+56>>2]](b,d)|0;if(d){b=i[b+56>>2];i[f+20>>2]=d;i[f+16>>2]=b;i[f+28>>2]=g;i[f+24>>2]=g+12;rd(a,c,h,e,f+16|0);if(i[a>>2]){break a}i[a>>2]=0;break b}b=i[b+56>>2];i[f+20>>2]=j;i[f+16>>2]=b;i[f+28>>2]=g;i[f+24>>2]=g+12;sd(a,c,h,e,f+16|0);if(i[a>>2]){break a}i[a>>2]=0}i[a>>2]=0}H=f+32|0}function jc(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;f=H-32|0;H=f;i[a>>2]=i[d>>2];d=i[c>>2]-i[b>>2]|0;i[a+4>>2]=d;g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){d=a+4|0;ea(e,i[e+4>>2],a,d);g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){ea(e,i[e+4>>2],d,d+4|0)}d=i[d>>2]}if(d){d=a+12|0;lf(d);g=a+32|0;lf(g);h=a+52|0;lf(h);j=a+72|0;lf(j);i[f+24>>2]=i[b+8>>2];k=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=k;i[f+8>>2]=i[c+8>>2];b=i[c+4>>2];i[f>>2]=i[c>>2];i[f+4>>2]=b;sc(a,f+16|0,f);mf(d,e);mf(g,e);mf(h,e);mf(j,e)}H=f+32|0;return 1}function Vo(a,b,c){var d=0,e=0,f=0;d=H+ -64|0;H=d;f=i[a>>2];e=i[f+ -4>>2];f=i[f+ -8>>2];i[d+20>>2]=0;i[d+16>>2]=b;i[d+12>>2]=a;i[d+8>>2]=c;b=0;lp(d+24|0,0,39);a=a+f|0;a:{if(To(e,c,0)){i[d+56>>2]=1;K[i[i[e>>2]+20>>2]](e,d+8|0,a,a,1,0);b=i[d+32>>2]==1?a:0;break a}K[i[i[e>>2]+24>>2]](e,d+8|0,a,1,0);b:{switch(i[d+44>>2]){case 0:b=i[d+48>>2]==1?i[d+36>>2]==1?i[d+40>>2]==1?i[d+28>>2]:0:0:0;break a;case 1:break b;default:break a}}if(i[d+32>>2]!=1){if(i[d+48>>2]|i[d+36>>2]!=1|i[d+40>>2]!=1){break a}}b=i[d+24>>2]}H=d- -64|0;return b}function we(a,b,c,d){var e=0,f=0;e=ko(128);i[e+4>>2]=b;b=i[c+4>>2];i[e+8>>2]=i[c>>2];i[e+12>>2]=b;b=i[c+12>>2];i[e+16>>2]=i[c+8>>2];i[e+20>>2]=b;i[e+24>>2]=i[c+16>>2];b=i[d+4>>2];i[e+28>>2]=i[d>>2];i[e+32>>2]=b;b=d+8|0;c=b;f=i[c+4>>2];i[e+36>>2]=i[c>>2];i[e+40>>2]=f;i[e+48>>2]=0;i[e+52>>2]=0;i[e>>2]=8916;c=i[d+4>>2];i[e+56>>2]=i[d>>2];i[e+60>>2]=c;d=i[b+4>>2];c=e- -64|0;i[c>>2]=i[b>>2];i[c+4>>2]=d;i[e+88>>2]=1065353216;i[e+92>>2]=-1;i[e+80>>2]=-1;i[e+84>>2]=-1;i[e+72>>2]=1;i[e+76>>2]=-1;i[e+44>>2]=9160;nf(e+96|0);i[a>>2]=e}function ve(a,b,c,d){var e=0,f=0;e=ko(128);i[e+4>>2]=b;b=i[c+4>>2];i[e+8>>2]=i[c>>2];i[e+12>>2]=b;b=i[c+12>>2];i[e+16>>2]=i[c+8>>2];i[e+20>>2]=b;i[e+24>>2]=i[c+16>>2];b=i[d+4>>2];i[e+28>>2]=i[d>>2];i[e+32>>2]=b;b=d+8|0;c=b;f=i[c+4>>2];i[e+36>>2]=i[c>>2];i[e+40>>2]=f;i[e+48>>2]=0;i[e+52>>2]=0;i[e>>2]=7292;c=i[d+4>>2];i[e+56>>2]=i[d>>2];i[e+60>>2]=c;d=i[b+4>>2];c=e- -64|0;i[c>>2]=i[b>>2];i[c+4>>2]=d;i[e+88>>2]=1065353216;i[e+92>>2]=-1;i[e+80>>2]=-1;i[e+84>>2]=-1;i[e+72>>2]=1;i[e+76>>2]=-1;i[e+44>>2]=7552;nf(e+96|0);i[a>>2]=e}function yl(a,b,c,d,e,f){var g=0,h=0,k=0,l=0,m=0;g=H-16|0;H=g;a:{if(!a){b=-1;break a}h=ko(96);Ia(Ga(h),b,d<<24>>24,f,c);i[g>>2]=h;i[g+8>>2]=0;h=Bm(a,g);b=i[g>>2];i[g>>2]=0;if(b){Xb(b)}if(c){k=i[i[a+8>>2]+(h<<2)>>2];b=0;while(1){f=b;l=i[i[k>>2]>>2];if(!j[k+84|0]){f=i[i[k+68>>2]+(b<<2)>>2]}m=f;f=i[k+40>>2];kp(o(m,f)+l|0,(o(b,d)<<2)+e|0,f);b=b+1|0;if((c|0)!=(b|0)){continue}break}}d=i[a+80>>2];b:{c:{if(!d){i[a+80>>2]=c;break c}b=-1;if((c|0)!=(d|0)){break b}}b=h}a=i[g+8>>2];i[g+8>>2]=0;if(!a){break a}Xb(a)}H=g+16|0;return b}function Al(a,b,c,d,e,f){var g=0,h=0,k=0,l=0,m=0;g=H-16|0;H=g;a:{if(!a){b=-1;break a}h=ko(96);Ia(Ga(h),b,d<<24>>24,f,c);i[g>>2]=h;i[g+8>>2]=0;h=Bm(a,g);b=i[g>>2];i[g>>2]=0;if(b){Xb(b)}if(c){k=i[i[a+8>>2]+(h<<2)>>2];b=0;while(1){f=b;l=i[i[k>>2]>>2];if(!j[k+84|0]){f=i[i[k+68>>2]+(b<<2)>>2]}m=f;f=i[k+40>>2];kp(o(m,f)+l|0,(o(b,d)<<1)+e|0,f);b=b+1|0;if((c|0)!=(b|0)){continue}break}}d=i[a+80>>2];b:{c:{if(!d){i[a+80>>2]=c;break c}b=-1;if((c|0)!=(d|0)){break b}}b=h}a=i[g+8>>2];i[g+8>>2]=0;if(!a){break a}Xb(a)}H=g+16|0;return b}function Lg(a,b,c,d,e){var f=0,g=0,h=0,j=0;h=Og(a,b,c,e);f=i[e>>2];e=i[f>>2];a:{f=i[f+4>>2]-e>>3;g=i[d>>2];if(f>>>0<=g>>>0){break a}j=i[c>>2];if(f>>>0<=j>>>0){break a}if(l[e+(g<<3)>>2]>2]){i[c>>2]=g;i[d>>2]=j;d=i[c>>2];if(f>>>0<=d>>>0){break a}g=i[b>>2];if(f>>>0<=g>>>0){break a}if(l[e+(d<<3)>>2]>=l[e+(g<<3)>>2]){return h+1|0}i[b>>2]=d;i[c>>2]=g;c=i[b>>2];if(f>>>0<=c>>>0){break a}d=i[a>>2];if(f>>>0<=d>>>0){break a}if(l[e+(c<<3)>>2]>=l[e+(d<<3)>>2]){return h+2|0}i[a>>2]=c;i[b>>2]=d;h=h+3|0}return h}Lo();x()}function zl(a,b,c,d,e,f){var g=0,h=0,k=0,l=0,m=0;g=H-16|0;H=g;a:{if(!a){b=-1;break a}h=ko(96);Ia(Ga(h),b,d<<24>>24,f,c);i[g>>2]=h;i[g+8>>2]=0;h=Bm(a,g);b=i[g>>2];i[g>>2]=0;if(b){Xb(b)}if(c){k=i[i[a+8>>2]+(h<<2)>>2];b=0;while(1){f=b;l=i[i[k>>2]>>2];if(!j[k+84|0]){f=i[i[k+68>>2]+(b<<2)>>2]}m=f;f=i[k+40>>2];kp(o(m,f)+l|0,o(b,d)+e|0,f);b=b+1|0;if((c|0)!=(b|0)){continue}break}}d=i[a+80>>2];b:{c:{if(!d){i[a+80>>2]=c;break c}b=-1;if((c|0)!=(d|0)){break b}}b=h}a=i[g+8>>2];i[g+8>>2]=0;if(!a){break a}Xb(a)}H=g+16|0;return b}function ue(a,b,c,d){var e=0,f=0,g=0,h=0;e=H-32|0;H=e;g=i[i[i[b+4>>2]+8>>2]+(c<<2)>>2];a:{b:{if((K[i[i[b>>2]+8>>2]](b)|0)!=1){break b}h=K[i[i[b>>2]+52>>2]](b)|0;f=K[i[i[b>>2]+60>>2]](b,c)|0;if(!(f?h:0)){i[a>>2]=0;break a}c=K[i[i[b>>2]+56>>2]](b,c)|0;if(c){b=i[b+56>>2];i[e+20>>2]=c;i[e+16>>2]=b;i[e+28>>2]=f;i[e+24>>2]=f+12;ve(a,g,d,e+16|0);if(i[a>>2]){break a}i[a>>2]=0;break b}b=i[b+56>>2];i[e+20>>2]=h;i[e+16>>2]=b;i[e+28>>2]=f;i[e+24>>2]=f+12;we(a,g,d,e+16|0);if(i[a>>2]){break a}i[a>>2]=0}i[a>>2]=0}H=e+32|0}function $o(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(To(a,i[b+8>>2],e)){_o(b,c,d);return}a:{if(To(a,i[b>>2],e)){if(!(i[b+20>>2]!=(c|0)?i[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}i[b+32>>2]=1;return}i[b+32>>2]=d;b:{if(i[b+44>>2]==4){break b}h[b+52>>1]=0;a=i[a+8>>2];K[i[i[a>>2]+20>>2]](a,b,c,c,1,e);if(j[b+53|0]){i[b+44>>2]=3;if(!j[b+52|0]){break b}break a}i[b+44>>2]=4}i[b+20>>2]=c;i[b+40>>2]=i[b+40>>2]+1;if(i[b+36>>2]!=1|i[b+24>>2]!=2){break a}g[b+54|0]=1;return}a=i[a+8>>2];K[i[i[a>>2]+24>>2]](a,b,c,d,e)}}function xn(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;a:{if(f&64){c=f+ -64|0;b=c&31;if(32<=(c&63)>>>0){c=0;b=e>>>b|0}else{c=e>>>b|0;b=((1<>>b}d=0;e=0;break a}if(!f){break a}h=e;j=d;k=64-f|0;g=k&31;if(32<=(k&63)>>>0){h=j<>>32-g|h<>>0){g=0;b=c>>>b|0}else{g=c>>>b|0;b=((1<>>b}b=k|b;c=g|h;g=d;d=f&31;if(32<=(f&63)>>>0){h=0;d=e>>>d|0}else{h=e>>>d|0;d=((1<>>d}e=h}i[a>>2]=b;i[a+4>>2]=c;i[a+8>>2]=d;i[a+12>>2]=e}function tn(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0;h=-1;f=d&2147483647;i=f;g=c;a:{if(!c&(f|0)==2147418112?a|b:(f|0)==2147418112&c>>>0>0|f>>>0>2147418112){break a}f=e&2147483647;j=f;if((f|0)==2147418112?0:f>>>0>2147418112){break a}if(!(a|g|(i|j|b))){return 0}g=d&e;if((g|0)>0?1:(g|0)>=0){if(!c&(d|0)==(e|0)?!b&a>>>0<0|b>>>0<0:(d|0)<(e|0)?1:(d|0)<=(e|0)?c>>>0<0:0){break a}return(a|c)!=0|(d^e|b)!=0}if(!c&(d|0)==(e|0)?!b&a>>>0>0|b>>>0>0:(d|0)>(e|0)?1:(d|0)>=(e|0)?c>>>0>0:0){break a}h=(a|c)!=0|(d^e|b)!=0}return h}function cd(a,b){var c=0,d=0;c=H-32|0;H=c;a:{b:{if(i[a+8>>2]<<5>>>0>=b>>>0){break b}i[c+24>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;if((b|0)<=-1){break a}b=(b+ -1>>>5|0)+1|0;d=ko(b<<2);i[c+24>>2]=b;i[c+20>>2]=0;i[c+16>>2]=d;b=i[a>>2];i[c+12>>2]=0;i[c+8>>2]=b;d=i[a+4>>2];i[c+4>>2]=d&31;i[c>>2]=b+(d>>>3&536870908);dd(c+16|0,c+8|0,c);b=i[a>>2];i[a>>2]=i[c+16>>2];i[c+16>>2]=b;d=i[a+4>>2];i[a+4>>2]=i[c+20>>2];i[c+20>>2]=d;d=i[a+8>>2];i[a+8>>2]=i[c+24>>2];i[c+24>>2]=d;if(!b){break b}ep(b)}H=c+32|0;return}Ko();x()}function un(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;a:{if(f&64){d=b;e=f+ -64|0;b=e&31;if(32<=(e&63)>>>0){e=d<>>32-b|c<>>0){h=g<>>32-d|e<>>0){f=0;d=d>>>e|0}else{f=d>>>e|0;d=((1<>>e}d=k|d;e=f|h;f=b;b=j&31;if(32<=(j&63)>>>0){h=f<>>32-b|c<>2]=b;i[a+4>>2]=c;i[a+8>>2]=d;i[a+12>>2]=e}function qm(a,b,c){var d=0,e=0,f=0,h=0;d=H-48|0;H=d;e=vc(a,b);if((e|0)!=(a+4|0)){rm(a,e)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;Rj(d,4);e=i[d>>2];c=i[c>>2];g[e|0]=c;g[e+1|0]=c>>>8;g[e+2|0]=c>>>16;g[e+3|0]=c>>>24;e=uo(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;c=i[d+4>>2];b=i[d>>2];f=c-b|0;if(f){Rj(d+28|0,f);c=i[d+4>>2];h=i[d+28>>2];b=i[d>>2]}kp(h,b,c-b|0);sm(d+40|0,a,e,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;ep(a)}if(g[d+27|0]<=-1){ep(i[d+16>>2])}a=i[d>>2];if(a){i[d+4>>2]=a;ep(a)}H=d+48|0}function tm(a,b,c){var d=0,e=0,f=0,h=0;d=H-48|0;H=d;f=vc(a,b);if((f|0)!=(a+4|0)){rm(a,f)}f=0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;h=i[c>>2];e=i[c+4>>2]-h|0;if(e){Rj(d,e);h=i[c>>2];c=i[d>>2]}else{c=0}kp(c,h,e);h=uo(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;b=i[d+4>>2];c=i[d>>2];e=b-c|0;if(e){Rj(d+28|0,e);c=i[d>>2];f=i[d+28>>2];b=i[d+4>>2]}kp(f,c,b-c|0);sm(d+40|0,a,h,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;ep(a)}if(g[d+27|0]<=-1){ep(i[d+16>>2])}a=i[d>>2];if(a){i[d+4>>2]=a;ep(a)}H=d+48|0}function nd(a,b,c,d){var e=0,f=0,h=0,j=0;e=H-80|0;H=e;f=Da(e+16|0);h=i[i[a+8>>2]+56>>2];j=c<<24>>24;c=o(Tj(5),c);Ea(f,h,0,j,5,c,c>>31);c=ko(96);Ja(Ha(c,f),b);i[e>>2]=0;i[e+8>>2]=0;b=i[a+32>>2];i[a+32>>2]=c;a:{if(!b){i[e>>2]=0;break a}Xb(b);b=i[e>>2];i[e>>2]=0;if(!b){break a}Xb(b)}b:{if(!d){break b}a=i[a+32>>2];g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;if(b>>>0>>0){Ya(a+68|0,d-b|0,2396);break b}if(b>>>0<=d>>>0){break b}i[a+72>>2]=c+(d<<2)}a=i[e+8>>2];i[e+8>>2]=0;if(a){Xb(a)}H=e+80|0}function Ng(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0;e=a+8|0;Og(a,a+4|0,e,c);a:{d=a+12|0;if((d|0)!=(b|0)){c=i[c>>2];f=i[c>>2];g=i[c+4>>2]-f>>3;while(1){h=i[d>>2];if(g>>>0<=h>>>0){break a}j=d;d=i[e>>2];if(g>>>0<=d>>>0){break a}k=j;m=(h<<3)+f|0;if(l[m>>2]>2]){while(1){b:{i[k>>2]=d;c=e;if((c|0)==(a|0)){c=a;break b}e=c+ -4|0;d=i[e>>2];if(g>>>0<=d>>>0){break a}k=c;if(l[m>>2]>2]){continue}}break}i[c>>2]=h}e=j;d=e+4|0;if((d|0)!=(b|0)){continue}break}}return}Lo();x()}function pc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;a:{b:{if(b){if(b>>>0>=357913942){break b}d=o(b,12);b=ko(d);i[a>>2]=b;i[a+4>>2]=b;f=b+d|0;i[a+8>>2]=f;h=i[c+4>>2];while(1){i[b+8>>2]=0;i[b>>2]=0;i[b+4>>2]=0;d=h-i[c>>2]|0;if(d){e=d>>2;if(e>>>0>=1073741824){break a}d=ko(d);i[b+4>>2]=d;i[b>>2]=d;i[b+8>>2]=d+(e<<2);e=b;j=i[c>>2];g=h-j|0;if((g|0)>=1){d=kp(d,j,g)+g|0}i[e+4>>2]=d}b=b+12|0;if((f|0)!=(b|0)){continue}break}i[a+4>>2]=f}return}Ko();x()}Ko();x()}function Xl(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=16864;b=i[a+68>>2];if(b){i[a+72>>2]=b;ep(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;ep(b)}b=i[a+44>>2];if(b){i[a+48>>2]=b;ep(b)}b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;ep(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){Xb(b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;ep(b)}b=i[a+4>>2];i[a+4>>2]=0;if(b){Cl(b)}return a|0}function Dl(a,b,c){var d=0,e=0,f=0;e=H-16|0;H=e;a:{if(!c|(!a|(b|0)<0)){break a}f=i[a+8>>2];if(i[a+12>>2]-f>>2<=(b|0)){break a}if(!i[a+4>>2]){d=ko(36);i[d+4>>2]=0;i[d+8>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+32>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d>>2]=d+4;i[d+12>>2]=d+16;i[a+4>>2]=d}d=i[i[(b<<2)+f>>2]+60>>2];b=ko(28);nm(b,c);i[b+24>>2]=d;a=i[a+4>>2];i[e+8>>2]=b;lm(a,e+8|0);a=i[e+8>>2];i[e+8>>2]=0;d=1;if(!a){break a}Ak(a+12|0,i[a+16>>2]);Bk(a,i[a+4>>2]);ep(a)}H=e+16|0;return d}function Xc(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=2032;b=i[a+72>>2];i[a+72>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;ep(b)}b=i[a+48>>2];if(b){ep(b)}d=i[a+36>>2];if(d){b=d;c=i[a+40>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+36>>2]}b=e;i[a+40>>2]=d;ep(b)}i[a>>2]=1432;b=i[a+16>>2];if(b){i[a+20>>2]=b;ep(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;ep(b)}return a|0}function va(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0;d=H-16|0;H=d;e=i[a+4>>2];a:{if((e|0)==-1){break a}c=e;f=d;b:{h=i[b+20>>2];if((h|0)<0?1:(h|0)<=0?l[b+16>>2]<=0:0){ea(b,i[b+4>>2],i[a+8>>2],i[a+12>>2]);c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<1:0){break b}c=i[a+4>>2]}g[f+15|0]=c;break a}c=a+20|0;ea(b,i[b+4>>2],c,c+4|0);c=i[b+20>>2];f=i[b+16>>2];g[d+15|0]=i[a+4>>2];if((c|0)>0?1:(c|0)>=0?f>>>0>0:0){break a}ea(b,i[b+4>>2],d+15|0,d+16|0)}H=d+16|0;return(e|0)!=-1|0}function Ai(a){var b=0,c=0,d=0,e=0,f=0;d=a+32|0;tf(a,d);c=i[a+80>>2];a:{if(!c){break a}b=1;if(i[a+84>>2]<1){break a}tf(c,d);if(i[a+84>>2]<2){break a}while(1){tf(i[a+80>>2]+(b<<5)|0,d);b=b+1|0;if((b|0)>2]){continue}break}}b=i[a+136>>2];if((b|0)!=i[a+140>>2]){c=0;while(1){e=o(c,12);b=e+b|0;Kb(i[b+4>>2]-i[b>>2]>>2,d);b=i[a+136>>2];f=e+b|0;e=i[f>>2];f=i[f+4>>2]-e|0;if(f){lg(e,f>>2,1,0,d);b=i[a+136>>2]}c=c+1|0;if(c>>>0<(i[a+140>>2]-b|0)/12>>>0){continue}break}}}function Tb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a=i[a+4>>2];if(a){c=j[b+11|0];d=c<<24>>24<0;g=d?i[b>>2]:b;b=d?i[b+4>>2]:c;while(1){c=j[a+27|0];d=c<<24>>24<0;c=d?i[a+20>>2]:c;h=c>>>0>>0;a:{b:{f=h?c:b;c:{if(f){e=a+16|0;d=d?i[e>>2]:e;e=Mm(g,d,f);d:{if(!e){if(b>>>0>=c>>>0){break d}break a}if((e|0)<=-1){break a}}c=Mm(d,g,f);if(!c){break c}if((c|0)<=-1){break b}return 1}if(b>>>0>>0){break a}}if(h){break b}return 1}a=a+4|0}a=i[a>>2];if(a){continue}break}}return 0}function xj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=lp(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ko(d<<2)}b=b<<2;b=lp(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){kp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){ep(f)}return}Ko();x()}Ba(13344);x()}function Bi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=lp(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ko(d<<2)}b=b<<2;b=lp(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){kp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){ep(f)}return}Ko();x()}Ba(11708);x()}function ma(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=lp(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ko(d<<2)}b=b<<2;b=lp(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){kp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){ep(f)}return}Ko();x()}Ba(1244);x()}function Cd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=lp(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ko(d<<2)}b=b<<2;b=lp(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){kp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){ep(f)}return}Ko();x()}Ba(2400);x()}function Xj(a,b,c,d){var e=0,f=0,h=0;a:{if((c|0)<0?1:(c|0)<=0?b>>>0<1:0){break a}e=i[a+20>>2];if((e|0)>0?1:(e|0)>=0?l[a+16>>2]>0:0){break a}g[a+24|0]=d;e=a;f=a;b=b+7|0;if(b>>>0<7){c=c+1|0}c=yp(b,c,8,0);i[f+16>>2]=c;i[e+20>>2]=J;e=i[a>>2];b=i[a+4>>2]-e|0;h=c;c=b;f=c+8|0;d=d?f:c;f=h+d|0;c=f;b:{if(b>>>0>>0){Rj(a,c-b|0);e=i[a>>2];break b}if(b>>>0<=c>>>0){break b}i[a+4>>2]=c+e}b=ko(8);i[b+4>>2]=0;i[b>>2]=d+e;c=i[a+12>>2];i[a+12>>2]=b;if(!c){break a}ep(c)}}function Vi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+4>>2];a=i[e+4>>2];d=i[e+8>>2];if((a|0)!=(d|0)){i[a>>2]=b;i[e+4>>2]=a+4;return}a:{f=i[e>>2];g=a-f|0;a=g>>2;c=a+1|0;if(c>>>0<1073741824){h=a<<2;d=d-f|0;a=d>>1;c=d>>2>>>0<536870911?a>>>0>>0?c:a:1073741823;a=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}a=ko(c<<2)}d=h+a|0;i[d>>2]=b;b=a+(c<<2)|0;c=d+4|0;if((g|0)>=1){kp(a,f,g)}i[e+8>>2]=b;i[e+4>>2]=c;i[e>>2]=a;if(f){ep(f)}return}Ko();x()}Ba(11708);x()}function Rl(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+4>>2];e=i[a+8>>2];if((c|0)!=(e|0)){i[c>>2]=i[b>>2];i[a+4>>2]=c+4;return}a:{f=i[a>>2];g=c-f|0;c=g>>2;d=c+1|0;if(d>>>0<1073741824){h=c<<2;e=e-f|0;c=e>>1;d=e>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=ko(d<<2)}e=h+c|0;i[e>>2]=i[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){kp(c,f,g)}i[a+8>>2]=b;i[a+4>>2]=d;i[a>>2]=c;if(f){ep(f)}return}Ko();x()}Ba(16516);x()}function Ei(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+4>>2];e=i[a+8>>2];if(c>>>0>>0){i[c>>2]=i[b>>2];i[a+4>>2]=c+4;return}a:{f=i[a>>2];g=c-f|0;c=g>>2;d=c+1|0;if(d>>>0<1073741824){h=c<<2;e=e-f|0;c=e>>1;d=e>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=ko(d<<2)}e=h+c|0;i[e>>2]=i[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){kp(c,f,g)}i[a+8>>2]=b;i[a+4>>2]=d;i[a>>2]=c;if(f){ep(f)}return}Ko();x()}Ba(11708);x()}function wn(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=H-16|0;H=e;f=(Ip(b),Ep(2));c=f&2147483647;a:{if(c+ -8388608>>>0<=2130706431){d=c;c=c>>>7|0;d=d<<25;c=c+1065353216|0;g=d;c=d>>>0<0?c+1|0:c;break a}if(c>>>0>=2139095040){c=f;d=c>>>7|0;g=c<<25;c=d|2147418112;break a}if(!c){c=0;break a}d=c;c=r(c);un(e,d,0,0,0,c+81|0);h=i[e>>2];j=i[e+4>>2];g=i[e+8>>2];c=i[e+12>>2]^65536|16265-c<<16}i[a>>2]=h;i[a+4>>2]=j;i[a+8>>2]=g;i[a+12>>2]=f&-2147483648|c;H=e+16|0}function fi(a){var b=0,c=0,d=0,e=0;qf(a);c=i[a+84>>2];a:{if((c|0)<1){break a}b=c<<5;d=ko((c|0)!=(c&134217727)?-1:b|4);i[d>>2]=c;d=d+4|0;c=d+b|0;b=d;while(1){b=nf(b)+32|0;if((c|0)!=(b|0)){continue}break}e=i[a+80>>2];i[a+80>>2]=d;if(e){c=e+ -4|0;d=i[c>>2];if(d){b=e+(d<<5)|0;while(1){b=of(b+ -32|0);if((e|0)!=(b|0)){continue}break}}ep(c)}if(i[a+84>>2]<1){break a}b=0;while(1){qf(i[a+80>>2]+(b<<5)|0);b=b+1|0;if((b|0)>2]){continue}break}}}function Qm(a,b){a:{if(a){if(b>>>0<=127){break a}b:{if(!i[i[4790]>>2]){if((b&-128)==57216){break a}break b}if(b>>>0<=2047){g[a+1|0]=b&63|128;g[a|0]=b>>>6|192;return 2}if(!((b&-8192)!=57344?b>>>0>=55296:0)){g[a+2|0]=b&63|128;g[a|0]=b>>>12|224;g[a+1|0]=b>>>6&63|128;return 3}if(b+ -65536>>>0<=1048575){g[a+3|0]=b&63|128;g[a|0]=b>>>18|240;g[a+2|0]=b>>>6&63|128;g[a+1|0]=b>>>12&63|128;return 4}}i[4805]=25;a=-1}else{a=1}return a}g[a|0]=b;return 1}function Ll(a,b){var c=0,d=0,e=0;d=H-16|0;H=d;e=ko(88);c=e;i[c>>2]=0;i[c+4>>2]=0;i[c+64>>2]=0;i[c+68>>2]=0;i[c+56>>2]=0;i[c+48>>2]=0;i[c+52>>2]=0;i[c+40>>2]=0;i[c+44>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+72>>2]=0;i[c+76>>2]=0;i[c+80>>2]=0;i[c+84>>2]=0;i[c+60>>2]=c;i[d+8>>2]=c;a:{if(Ml(c,b)){i[a>>2]=e;i[d+8>>2]=0;break a}i[a>>2]=0;i[d+8>>2]=0;ci(e)}H=d+16|0}function Dj(a,b,c){var d=0,e=0,f=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;a:{b:{if(!b){break b}if((b|0)<=-1){break a}e=b+ -1>>>5|0;f=e+1|0;d=ko(f<<2);i[a+8>>2]=f;i[a>>2]=d;f=j[c|0];i[a+4>>2]=b;i[(b>>>0<33?d:d+(e<<2)|0)>>2]=0;c=b>>>5|0;e=c<<2;if(f){d=lp(d,255,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;i[c>>2]=i[c>>2]|-1>>>32-b;return a}d=lp(d,0,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;i[c>>2]=i[c>>2]&(-1>>>32-b^-1)}return a}Ko();x()} +function lc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0;e=F+ -64|0;F=e;g=i[a+8>>2];i[e+48>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;f=ho(d);i[e+40>>2]=f;k=d+f|0;i[e+48>>2]=k;ip(f,0,d);i[e+44>>2]=k}h=i[a+1164>>2];d=i[h>>2];if(d){i[h+4>>2]=d;bp(d);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;g=i[a+8>>2];k=i[e+44>>2];f=i[e+40>>2]}i[h+4>>2]=k;i[h>>2]=f;i[h+8>>2]=i[e+48>>2];f=0;i[e+48>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;d=0;b:{if(g){if(g>>>0>=1073741824){break b}h=g<<2;d=ho(h);i[e+40>>2]=d;f=d+h|0;i[e+48>>2]=f;ip(d,0,h);i[e+44>>2]=f}n=i[a+1176>>2];h=i[n>>2];if(h){i[n+4>>2]=h;bp(h);i[n+8>>2]=0;i[n>>2]=0;i[n+4>>2]=0;d=i[e+40>>2];f=i[e+44>>2]}i[n+4>>2]=f;i[n>>2]=d;i[n+8>>2]=i[e+48>>2];z=i[b+4>>2];G=i[b+8>>2];A=i[c+4>>2];H=i[c+8>>2];q=i[c>>2];j=i[b>>2];d=e+56|0;i[d>>2]=0;i[d+4>>2]=0;f=e+48|0;i[f>>2]=0;i[f+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;n=q-j|0;vc(e+40|0);g=0;h=i[e+44>>2];if((h|0)!=i[f>>2]){d=i[d>>2]+i[e+60>>2]|0;f=(d>>>0)/113|0;g=i[h+(f<<2)>>2]+o(d-o(f,113)|0,36)|0}i[g+32>>2]=0;i[g+28>>2]=n;i[g+24>>2]=0;i[g+16>>2]=A;i[g+20>>2]=H;i[g+12>>2]=q;i[g+4>>2]=z;i[g+8>>2]=G;i[g>>2]=j;f=i[e+60>>2];g=f+1|0;i[e+60>>2]=g;if(g>>>0>=f>>>0){n=A;q=z;J=a+1068|0;K=a+1108|0;L=i[c+8>>2];u=i[b+8>>2];while(1){f=i[e+44>>2];j=g+ -1|0;m=j+i[e+56>>2]|0;d=(m>>>0)/113|0;d=i[f+(d<<2)>>2]+o(m-o(d,113)|0,36)|0;B=i[d+32>>2];p=i[d+12>>2];h=i[d>>2];i[e+60>>2]=j;d=i[e+48>>2];f=d-f|0;if((f?o(f>>2,113)+ -1|0:0)-m>>>0>=226){bp(i[d+ -4>>2]);i[e+48>>2]=i[e+48>>2]+ -4}i[b>>2]=h;i[c>>2]=p;j=i[a+1164>>2];d=i[a+1176>>2];i[e+32>>2]=i[b+8>>2];f=i[b+4>>2];i[e+24>>2]=i[b>>2];i[e+28>>2]=f;i[e+16>>2]=i[c+8>>2];f=i[c+4>>2];i[e+8>>2]=i[c>>2];i[e+12>>2]=f;C=o(B,12);k=j+C|0;m=d+C|0;g=wc(a,e+24|0,e+8|0,k,m);v=g<<2;f=i[a>>2]-i[v+i[m>>2]>>2]|0;c:{d:{if(!f){break d}e:{f:{w=p-h|0;if(w>>>0<=2){j=i[a+1152>>2];i[j>>2]=g;f=1;d=i[a+8>>2];if(d>>>0>1){break f}break e}j=1<>2];d=D+f|0;if((d|0)!=(k|0)){ra(d,i[k>>2],i[k+4>>2]);f=i[a+1164>>2]}f=v+i[f+D>>2]|0;E=j+i[f>>2]|0;i[f>>2]=E;f=h;g:{if((p|0)==(f|0)){break g}M=i[q+24>>2];d=h;f=p;while(1){s=M+(o(d,u)<<2)|0;if(l[s+v>>2]>>0){d=d+1|0;if((f|0)!=(d|0)){continue}break g}while(1){f=f+ -1|0;if((f|0)==(d|0)){f=d;break g}t=i[n+24>>2]+(o(f,L)<<2)|0;if(l[v+t>>2]>=E>>>0){continue}break}y=0;if(u){while(1){k=y<<2;j=k+s|0;m=i[j>>2];N=j;j=k+t|0;i[N>>2]=i[j>>2];i[j>>2]=m;y=y+1|0;if((u|0)!=(y|0)){continue}break}}d=d+1|0;if((f|0)!=(d|0)){continue}break}}d=r(w);s=f-h|0;t=p-f|0;if((s|0)!=(t|0)){xc(K,s>>>0>>0)}m=d^31;d=w>>>1|0;h:{if(s>>>0>>0){if(!m){break h}j=d-s|0;d=1<>>1|0;k=k+1|0;if((m|0)!=(k|0)){continue}break}break h}if(!m){break h}j=d-t|0;d=1<>>1|0;k=k+1|0;if((m|0)!=(k|0)){continue}break}}k=i[a+1176>>2];m=k+C|0;j=i[m>>2];d=j+v|0;i[d>>2]=i[d>>2]+1;ra(k+D|0,j,i[m+4>>2]);if((f|0)!=(h|0)){k=i[e+60>>2]+i[e+56>>2]|0;m=i[e+48>>2];d=i[e+44>>2];j=m-d|0;if((k|0)==((j?o(j>>2,113)+ -1|0:0)|0)){vc(e+40|0);k=i[e+56>>2]+i[e+60>>2]|0;m=i[e+48>>2];d=i[e+44>>2]}j=0;i:{if((d|0)==(m|0)){break i}j=d;d=(k>>>0)/113|0;j=i[j+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[j+32>>2]=B;i[j+28>>2]=s;i[j+24>>2]=g;i[j+20>>2]=u;i[j+16>>2]=q;i[j+12>>2]=f;i[j+4>>2]=z;i[j+8>>2]=G;i[j>>2]=h;i[e+60>>2]=i[e+60>>2]+1}if((f|0)==(p|0)){break d}k=i[e+60>>2]+i[e+56>>2]|0;m=i[e+48>>2];d=i[e+44>>2];h=m-d|0;if((k|0)==((h?o(h>>2,113)+ -1|0:0)|0)){vc(e+40|0);k=i[e+56>>2]+i[e+60>>2]|0;m=i[e+48>>2];d=i[e+44>>2]}h=0;j:{if((d|0)==(m|0)){break j}h=d;d=(k>>>0)/113|0;h=i[h+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[h+32>>2]=I;i[h+28>>2]=t;i[h+24>>2]=g;i[h+16>>2]=A;i[h+20>>2]=H;i[h+12>>2]=p;i[h+8>>2]=u;i[h+4>>2]=q;i[h>>2]=f;g=i[e+60>>2]+1|0;i[e+60>>2]=g;break c}while(1){g=(d+ -1|0)==(g|0)?0:g+1|0;i[j+(f<<2)>>2]=g;f=f+1|0;d=i[a+8>>2];if(f>>>0>>0){continue}break}}k=0;f=d;if(!w){break d}while(1){k:{if(!f){f=0;break k}p=i[q+24>>2]+(o(i[q+4>>2],h+k|0)<<2)|0;g=0;while(1){j=i[i[a+1152>>2]+(g<<2)>>2]<<2;f=i[a>>2]-i[j+i[m>>2]>>2]|0;if(f){yc(J,f,i[j+p>>2]);d=i[a+8>>2]}f=d;g=g+1|0;if(g>>>0>>0){continue}break}}k=k+1|0;if((w|0)!=(k|0)){continue}break}}g=i[e+60>>2]}if(g){continue}break}}i[e+60>>2]=0;a=i[e+48>>2];g=i[e+44>>2];d=a-g>>2;if(d>>>0>=3){while(1){bp(i[g>>2]);g=i[e+44>>2]+4|0;i[e+44>>2]=g;a=i[e+48>>2];d=a-g>>2;if(d>>>0>2){continue}break}}f=56;l:{switch(d+ -1|0){case 1:f=113;case 0:i[e+56>>2]=f;break;default:break l}}m:{if((a|0)==(g|0)){break m}while(1){bp(i[g>>2]);g=g+4|0;if((g|0)!=(a|0)){continue}break}b=i[e+48>>2];a=i[e+44>>2];if((b|0)==(a|0)){break m}i[e+48>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[e+40>>2];if(a){bp(a)}F=e- -64|0;return}Ho();x()}Ho();x()}function he(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=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,V=0;h=F-80|0;F=h;e=-1;k=-1;a:{if((b|0)==-1){break a}f=((b>>>0)%3|0?-1:2)+b|0;l=i[a+32>>2];m=b+1|0;b=(m>>>0)%3|0?m:b+ -2|0;if((b|0)!=-1){e=i[i[l>>2]+(b<<2)>>2]}if((f|0)==-1){break a}k=i[i[l>>2]+(f<<2)>>2]}f=i[a+36>>2];b=i[f>>2];b:{c:{d:{e:{f:{g:{h:{f=i[f+4>>2]-b>>2;if(!(f>>>0<=e>>>0|f>>>0<=k>>>0)){K=i[b+(e<<2)>>2];M=(K|0)>=(d|0);if(M){break d}l=i[b+(k<<2)>>2];if((l|0)>=(d|0)){break d}b=l<<3;f=i[(b|4)+c>>2];e=K<<3;k=i[(e|4)+c>>2];J=i[b+c>>2];z=i[c+e>>2];if(!((J|0)!=(z|0)|(f|0)!=(k|0))){i[a+8>>2]=z;i[a+12>>2]=k;break c}b=i[i[a+4>>2]+(d<<2)>>2];i[h+72>>2]=0;i[h+76>>2]=0;e=h- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[h+56>>2]=0;i[h+60>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Qd(e,b,g[e+24|0],h+56|0);b=i[i[a+4>>2]+(K<<2)>>2];i[h+48>>2]=0;i[h+52>>2]=0;i[h+40>>2]=0;i[h+44>>2]=0;i[h+32>>2]=0;i[h+36>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Qd(e,b,g[e+24|0],h+32|0);b=i[i[a+4>>2]+(l<<2)>>2];i[h+24>>2]=0;i[h+28>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;i[h+8>>2]=0;i[h+12>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Qd(e,b,g[e+24|0],h+8|0);A=i[h+44>>2];e=i[h+16>>2];b=i[h+40>>2];o=i[h+20>>2]-(A+(e>>>0>>0)|0)|0;l=e-b|0;e=up(l,o,l,o);q=H;n=e;y=i[h+36>>2];e=i[h+8>>2];t=i[h+32>>2];m=t;r=i[h+12>>2]-(y+(e>>>0>>0)|0)|0;m=e-m|0;p=up(m,r,m,r);n=n+p|0;e=H+q|0;e=n>>>0

>>0?e+1|0:e;u=n;s=i[h+52>>2];n=i[h+24>>2];v=i[h+48>>2];p=v;q=i[h+28>>2]-(s+(n>>>0

>>0)|0)|0;n=n-p|0;C=up(n,q,n,q);p=u+C|0;e=H+e|0;w=p;p=p>>>0>>0?e+1|0:e;if(!(w|p)){break d}e=i[h+64>>2];C=e-b|0;N=i[h+68>>2]-((e>>>0>>0)+A|0)|0;b=up(C,N,l,o);e=H;u=b;b=i[h+56>>2];E=b-t|0;O=i[h+60>>2]-((b>>>0>>0)+y|0)|0;t=up(E,O,m,r);b=u+t|0;e=H+e|0;e=b>>>0>>0?e+1|0:e;u=b;b=i[h+72>>2];G=b-v|0;P=i[h+76>>2]-((b>>>0>>0)+s|0)|0;t=up(G,P,n,q);b=u+t|0;e=H+e|0;v=b;e=b>>>0>>0?e+1|0:e;A=e;B=b;t=e;e=q;y=e>>31;b=e>>31;e=b+e|0;s=y;u=s+n|0;if(u>>>0>>0){e=e+1|0}y=y^u;b=b^e;Q=b;u=y;I=b;e=o;b=e>>31;e=e>>31;D=b;b=b+o|0;L=e+l|0;if(L>>>0>>0){b=b+1|0}e=e^L;b=b^D;R=b;L=b;S=B;T=e;B=r>>31;b=B+r|0;s=r>>31;D=s+m|0;if(D>>>0>>0){b=b+1|0}s=s^D;e=s>>>0>>0;b=b^B;e=(b|0)<(R|0)?1:(b|0)<=(R|0)?e:0;s=e?T:s;b=e?L:b;e=(b|0)<(Q|0)?1:(b|0)<=(Q|0)?s>>>0>>0:0;e=S>>>0>wp(-1,2147483647,e?u:s,e?I:b)>>>0;b=H;if((t|0)>(b|0)?1:(t|0)>=(b|0)?e:0){break e}b=f;e=k;B=b-e|0;k=e>>31;u=(b>>31)-(k+(b>>>0>>0)|0)|0;b=up(v,A,B,u);f=H;e=up(e,k,w,p);b=e+b|0;f=H+f|0;t=b;y=b>>>0>>0?f+1|0:f;b=J;e=z;I=b-e|0;f=e>>31;D=(b>>31)-(f+(b>>>0>>0)|0)|0;b=up(v,A,I,D);k=H;f=up(e,f,w,p);e=f+b|0;b=H+k|0;z=e;J=e>>>0>>0?b+1|0:b;k=1;e=0;b=vp(up(l,o,v,A),H,w,p);f=N-(H+(C>>>0>>0)|0)|0;b=C-b|0;b=up(b,f,b,f);l=H;o=b;b=vp(up(m,r,v,A),H,w,p);f=O-(H+(E>>>0>>0)|0)|0;b=E-b|0;m=up(b,f,b,f);b=o+m|0;f=H+l|0;f=b>>>0>>0?f+1|0:f;o=b;b=vp(up(n,q,v,A),H,w,p);l=P-(H+(G>>>0>>0)|0)|0;b=G-b|0;m=up(b,l,b,l);l=o+m|0;b=H+f|0;l=up(l,l>>>0>>0?b+1|0:b,w,p);b=H;m=b;if(!b&l>>>0<=1|b>>>0<0){break h}n=l;f=m;while(1){b=e<<1|k>>>31;k=k<<1;e=b;o=!f&n>>>0>7|f>>>0>0;n=(f&3)<<30|n>>>2;f=f>>>2|0;if(o){continue}break}break g}Io();x()}k=l;e=m;if(k-1|0){break f}}while(1){b=wp(l,m,k,e)+k|0;e=e+H|0;e=b>>>0>>0?e+1|0:e;k=(e&1)<<31|b>>>1;e=e>>>1|0;b=up(k,e,k,e);f=H;if((m|0)==(f|0)&b>>>0>l>>>0|f>>>0>m>>>0){continue}break}}m=a+16|0;s=i[a+24>>2];C=s<<5;b=i[a+20>>2];v=d<<3;o=i[(v|4)+c>>2];n=o;f=t;E=up(k,e,I,D);l=E;G=H;l=vp(f-l|0,y-(G+(f>>>0>>0)|0)|0,w,p);q=n>>31;f=n;r=q-(H+(f>>>0>>0)|0)|0;f=f-l|0;I=up(f,r,f,r);D=H;o=i[c+v>>2];f=o>>31;v=o;r=o;A=f;o=up(k,e,B,u);B=H;e=J+B|0;k=z;u=k+o|0;if(u>>>0>>0){e=e+1|0}k=vp(u,e,w,p);e=k;f=f-(H+(r>>>0>>0)|0)|0;e=r-e|0;r=up(e,f,e,f);e=r+I|0;f=H+D|0;u=e;r=e>>>0>>0?f+1|0:f;e=y+G|0;f=t+E|0;if(f>>>0>>0){e=e+1|0}e=vp(f,e,w,p);q=q-(H+(n>>>0>>0)|0)|0;f=n-e|0;f=up(f,q,f,q);t=H;n=vp(z-o|0,J-((z>>>0>>0)+B|0)|0,w,p);o=f;f=n;q=A-(H+(v>>>0>>0)|0)|0;f=v-f|0;z=up(f,q,f,q);q=o+z|0;f=H+t|0;f=q>>>0>>0?f+1|0:f;i:{if((f|0)==(r|0)&u>>>0>>0|r>>>0>>0){if((b|0)==(C|0)){if((b+1|0)<=-1){break b}if(b>>>0<=1073741822){b=b+32&-32;e=s<<6;b=e>>>0>>0?b:e}else{b=2147483647}bd(m,b);b=i[a+20>>2]}i[a+20>>2]=b+1;e=i[a+16>>2]+(b>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<>>0<=1073741822){b=b+32&-32;k=s<<6;b=k>>>0>>0?b:k}else{b=2147483647}bd(m,b);b=i[a+20>>2]}i[a+20>>2]=b+1;k=i[a+16>>2]+(b>>>3&536870908)|0;f=i[k>>2];U=k,V=yp(-2,b)&f,i[U>>2]=V;l=e;k=n}i[a+8>>2]=k;i[a+12>>2]=l}if(!(p|w)){break d}break c}e=a;if(M){if((d|0)<=0){i[a+8>>2]=0;i[a+12>>2]=0;break c}b=(d<<1)+ -2|0}else{b=K<<1}b=(b<<2)+c|0;i[e+8>>2]=i[b>>2];i[a+12>>2]=i[b+4>>2]}F=h+80|0;return}Ho();x()}function af(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=p(0);h=F-32|0;F=h;a:{b:{if(!fd(a,b,c)){break b}n=i[i[i[b+4>>2]+8>>2]+(c<<2)>>2];if(i[n+28>>2]!=9){break b}k=i[b+48>>2];d=ho(32);i[h+16>>2]=d;i[h+20>>2]=17;i[h+24>>2]=-2147483616;g[d+17|0]=0;g[d+16|0]=j[9828];l=j[9824]|j[9825]<<8|(j[9826]<<16|j[9827]<<24);e=j[9820]|j[9821]<<8|(j[9822]<<16|j[9823]<<24);g[d+8|0]=e;g[d+9|0]=e>>>8;g[d+10|0]=e>>>16;g[d+11|0]=e>>>24;g[d+12|0]=l;g[d+13|0]=l>>>8;g[d+14|0]=l>>>16;g[d+15|0]=l>>>24;l=j[9816]|j[9817]<<8|(j[9818]<<16|j[9819]<<24);e=j[9812]|j[9813]<<8|(j[9814]<<16|j[9815]<<24);g[d|0]=e;g[d+1|0]=e>>>8;g[d+2|0]=e>>>16;g[d+3|0]=e>>>24;g[d+4|0]=l;g[d+5|0]=l>>>8;g[d+6|0]=l>>>16;g[d+7|0]=l>>>24;c:{d:{l=k+16|0;f=i[l>>2];if(!f){break d}d=l;while(1){e=i[f+16>>2]<(c|0);d=e?d:f;f=i[(e<<2)+f>>2];if(f){continue}break}if((d|0)==(l|0)|i[d+16>>2]>(c|0)){break d}d=d+20|0;if(!Sb(d,h+16|0)){break d}l=$j(d,h+16|0,-1);break c}l=$j(k,h+16|0,-1)}if(g[h+27|0]<=-1){bp(i[h+16>>2])}if((l|0)<1){f=0;break b}k=i[b+48>>2];d=ho(32);i[h+16>>2]=d;i[h+20>>2]=19;i[h+24>>2]=-2147483616;g[d+19|0]=0;e=j[9845]|j[9846]<<8|(j[9847]<<16|j[9848]<<24);g[d+15|0]=e;g[d+16|0]=e>>>8;g[d+17|0]=e>>>16;g[d+18|0]=e>>>24;e=j[9842]|j[9843]<<8|(j[9844]<<16|j[9845]<<24);f=j[9838]|j[9839]<<8|(j[9840]<<16|j[9841]<<24);g[d+8|0]=f;g[d+9|0]=f>>>8;g[d+10|0]=f>>>16;g[d+11|0]=f>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;e=j[9834]|j[9835]<<8|(j[9836]<<16|j[9837]<<24);f=j[9830]|j[9831]<<8|(j[9832]<<16|j[9833]<<24);g[d|0]=f;g[d+1|0]=f>>>8;g[d+2|0]=f>>>16;g[d+3|0]=f>>>24;g[d+4|0]=e;g[d+5|0]=e>>>8;g[d+6|0]=e>>>16;g[d+7|0]=e>>>24;e:{f:{e=k+16|0;f=i[e>>2];if(!f){break f}d=e;while(1){m=i[f+16>>2]<(c|0);d=m?d:f;f=i[(m<<2)+f>>2];if(f){continue}break}if((d|0)==(e|0)|i[d+16>>2]>(c|0)){break f}e=Sb(d+20|0,h+16|0);break e}e=Sb(k,h+16|0)}d=0;g:{if(!e){break g}k=i[b+48>>2];d=ho(32);i[h>>2]=d;i[h+4>>2]=18;i[h+8>>2]=-2147483616;g[d+18|0]=0;e=j[9866]|j[9867]<<8;g[d+16|0]=e;g[d+17|0]=e>>>8;e=j[9862]|j[9863]<<8|(j[9864]<<16|j[9865]<<24);f=j[9858]|j[9859]<<8|(j[9860]<<16|j[9861]<<24);g[d+8|0]=f;g[d+9|0]=f>>>8;g[d+10|0]=f>>>16;g[d+11|0]=f>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;e=j[9854]|j[9855]<<8|(j[9856]<<16|j[9857]<<24);f=j[9850]|j[9851]<<8|(j[9852]<<16|j[9853]<<24);g[d|0]=f;g[d+1|0]=f>>>8;g[d+2|0]=f>>>16;g[d+3|0]=f>>>24;g[d+4|0]=e;g[d+5|0]=e>>>8;g[d+6|0]=e>>>16;g[d+7|0]=e>>>24;h:{i:{e=k+16|0;f=i[e>>2];if(!f){break i}d=e;while(1){m=i[f+16>>2]<(c|0);d=m?d:f;f=i[(m<<2)+f>>2];if(f){continue}break}if((d|0)==(e|0)|i[d+16>>2]>(c|0)){break i}d=Sb(d+20|0,h);break h}d=Sb(k,h)}if(g[h+11|0]<=-1){bp(i[h>>2])}d=(d|0)!=0}if(g[h+27|0]<=-1){bp(i[h+16>>2])}j:{if(d){d=g[n+24|0];i[h+24>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;k=0;if(d){if((d|0)<=-1){break a}d=d<<2;k=ho(d);i[h+16>>2]=k;e=d+k|0;i[h+24>>2]=e;ip(k,0,d);i[h+20>>2]=e}m=i[b+48>>2];d=ho(32);i[h>>2]=d;i[h+4>>2]=19;i[h+8>>2]=-2147483616;g[d+19|0]=0;e=j[9845]|j[9846]<<8|(j[9847]<<16|j[9848]<<24);g[d+15|0]=e;g[d+16|0]=e>>>8;g[d+17|0]=e>>>16;g[d+18|0]=e>>>24;e=j[9842]|j[9843]<<8|(j[9844]<<16|j[9845]<<24);f=j[9838]|j[9839]<<8|(j[9840]<<16|j[9841]<<24);g[d+8|0]=f;g[d+9|0]=f>>>8;g[d+10|0]=f>>>16;g[d+11|0]=f>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;e=j[9834]|j[9835]<<8|(j[9836]<<16|j[9837]<<24);f=j[9830]|j[9831]<<8|(j[9832]<<16|j[9833]<<24);g[d|0]=f;g[d+1|0]=f>>>8;g[d+2|0]=f>>>16;g[d+3|0]=f>>>24;g[d+4|0]=e;g[d+5|0]=e>>>8;g[d+6|0]=e>>>16;g[d+7|0]=e>>>24;o=g[n+24|0];k:{l:{e=m+16|0;f=i[e>>2];if(!f){break l}d=e;while(1){q=i[f+16>>2]<(c|0);d=q?d:f;f=i[(q<<2)+f>>2];if(f){continue}break}if((d|0)==(e|0)|i[d+16>>2]>(c|0)){break l}d=d+20|0;if(!Sb(d,h)){break l}Tb(d,h,o,k);break k}Tb(m,h,o,k)}if(g[h+11|0]<=-1){bp(i[h>>2])}k=i[b+48>>2];b=ho(32);i[h>>2]=b;i[h+4>>2]=18;i[h+8>>2]=-2147483616;g[b+18|0]=0;d=j[9866]|j[9867]<<8;g[b+16|0]=d;g[b+17|0]=d>>>8;d=j[9862]|j[9863]<<8|(j[9864]<<16|j[9865]<<24);e=j[9858]|j[9859]<<8|(j[9860]<<16|j[9861]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[9854]|j[9855]<<8|(j[9856]<<16|j[9857]<<24);e=j[9850]|j[9851]<<8|(j[9852]<<16|j[9853]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;m:{n:{b=k+16|0;f=i[b>>2];if(!f){break n}d=b;while(1){e=i[f+16>>2]<(c|0);d=e?d:f;f=i[(e<<2)+f>>2];if(f){continue}break}if((b|0)==(d|0)|i[d+16>>2]>(c|0)){break n}b=d+20|0;if(!Sb(b,h)){break n}r=ak(b,h);break m}r=ak(k,h)}if(g[h+11|0]<=-1){bp(i[h>>2])}b=qa(a+40|0,l,i[h+16>>2],g[n+24|0],r);a=i[h+16>>2];if(a){i[h+20>>2]=a;bp(a)}f=0;if(b){break j}break b}f=0;if(!sa(a+40|0,n,l)){break b}}f=1}F=h+32|0;return f|0}Ho();x()}function Sm(a,b,c,d){var e=0,f=0,k=0,l=0,m=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;f=F-80|0;F=f;i[f+76>>2]=18485;z=f+55|0;w=f+56|0;a:{b:while(1){c:{if((t|0)<0){break c}if((e|0)>(2147483647-t|0)){i[4805]=61;t=-1;break c}t=e+t|0}d:{e:{f:{m=i[f+76>>2];e=m;k=j[e|0];if(k){while(1){g:{k=k&255;h:{if(!k){k=e;break h}if((k|0)!=37){break g}k=e;while(1){if(j[e+1|0]!=37){break h}l=e+2|0;i[f+76>>2]=l;k=k+1|0;p=j[e+2|0];e=l;if((p|0)==37){continue}break}}e=k-m|0;if(a){Tm(a,m,e)}if(e){continue b}k=f;l=!Mm(g[i[f+76>>2]+1|0]);e=i[f+76>>2];i:{if(!(l|j[e+2|0]!=36)){v=g[e+1|0]+ -48|0;x=1;e=e+3|0;break i}v=-1;e=e+1|0}i[k+76>>2]=e;q=0;u=g[e|0];l=u+ -32|0;j:{if(l>>>0>31){k=e;break j}k=e;l=1<>2]=k;q=l|q;u=g[e+1|0];l=u+ -32|0;if(l>>>0>=32){break j}e=k;l=1<>2];if(j[e+2|0]!=36){break m}i[((g[e+1|0]<<2)+d|0)+ -192>>2]=10;r=i[((g[e+1|0]<<3)+c|0)+ -384>>2];x=1;e=e+3|0;break l}if(x){break f}x=0;r=0;if(a){e=i[b>>2];i[b>>2]=e+4;r=i[e>>2]}e=i[f+76>>2]+1|0}i[l+76>>2]=e;if((r|0)>-1){break k}r=0-r|0;q=q|8192;break k}r=Um(f+76|0);if((r|0)<0){break f}e=i[f+76>>2]}p=-1;n:{if(j[e|0]!=46){break n}if(j[e+1|0]==42){o:{if(!Mm(g[e+2|0])){break o}e=i[f+76>>2];if(j[e+3|0]!=36){break o}i[((g[e+2|0]<<2)+d|0)+ -192>>2]=10;p=i[((g[e+2|0]<<3)+c|0)+ -384>>2];e=e+4|0;i[f+76>>2]=e;break n}if(x){break f}if(a){e=i[b>>2];i[b>>2]=e+4;p=i[e>>2]}else{p=0}e=i[f+76>>2]+2|0;i[f+76>>2]=e;break n}i[f+76>>2]=e+1;p=Um(f+76|0);e=i[f+76>>2]}k=0;while(1){y=k;s=-1;if(g[e|0]+ -65>>>0>57){break a}u=e+1|0;i[f+76>>2]=u;k=g[e|0];e=u;k=j[(k+o(y,58)|0)+16959|0];if(k+ -1>>>0<8){continue}break}p:{q:{if((k|0)!=19){if(!k){break a}if((v|0)>=0){i[(v<<2)+d>>2]=k;e=(v<<3)+c|0;k=i[e+4>>2];i[f+64>>2]=i[e>>2];i[f+68>>2]=k;break q}if(!a){break d}Vm(f- -64|0,k,b);u=i[f+76>>2];break p}if((v|0)>-1){break a}}e=0;if(!a){continue b}}l=q&-65537;k=q&8192?l:q;s=0;v=16996;q=w;r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{e=g[u+ -1|0];e=y?(e&15)==3?e&-33:e:e;switch(e+ -88|0){case 11:break r;case 9:case 13:case 14:case 15:break s;case 27:break x;case 12:case 17:break A;case 23:break B;case 0:case 32:break C;case 24:break D;case 22:break E;case 29:break F;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 e;default:break G}}H:{switch(e+ -65|0){case 0:case 4:case 5:case 6:break s;case 2:break v;case 1:case 3:break e;default:break H}}if((e|0)==83){break w}break e}e=i[f+64>>2];m=i[f+68>>2];v=16996;break z}e=0;I:{switch(y&255){case 0:i[i[f+64>>2]>>2]=t;continue b;case 1:i[i[f+64>>2]>>2]=t;continue b;case 2:k=i[f+64>>2];i[k>>2]=t;i[k+4>>2]=t>>31;continue b;case 3:h[i[f+64>>2]>>1]=t;continue b;case 4:g[i[f+64>>2]]=t;continue b;case 6:i[i[f+64>>2]>>2]=t;continue b;case 7:break I;default:continue b}}k=i[f+64>>2];i[k>>2]=t;i[k+4>>2]=t>>31;continue b}p=p>>>0>8?p:8;k=k|8;e=120}m=Wm(i[f+64>>2],i[f+68>>2],w,e&32);if(!(k&8)|!(i[f+64>>2]|i[f+68>>2])){break y}v=(e>>>4|0)+16996|0;s=2;break y}m=Xm(i[f+64>>2],i[f+68>>2],w);if(!(k&8)){break y}e=w-m|0;p=(p|0)>(e|0)?p:e+1|0;break y}l=i[f+68>>2];m=l;e=i[f+64>>2];if((l|0)<-1?1:(l|0)<=-1){m=0-(m+(0>>0)|0)|0;e=0-e|0;i[f+64>>2]=e;i[f+68>>2]=m;s=1;v=16996;break z}if(k&2048){s=1;v=16997;break z}s=k&1;v=s?16998:16996}m=Ym(e,m,w)}k=(p|0)>-1?k&-65537:k;e=i[f+64>>2];l=i[f+68>>2];if(!(!!(e|l)|p)){p=0;m=w;break e}e=!(e|l)+(w-m|0)|0;p=(p|0)>(e|0)?p:e;break e}e=i[f+64>>2];m=e?e:17006;e=Nm(m,p);q=e?e:p+m|0;k=l;p=e?e-m|0:p;break e}l=i[f+64>>2];if(p){break u}e=0;Zm(a,32,r,0,k);break t}i[f+12>>2]=0;i[f+8>>2]=i[f+64>>2];i[f+64>>2]=f+8;p=-1;l=f+8|0}e=0;J:{while(1){m=i[l>>2];if(!m){break J}m=Pm(f+4|0,m);q=(m|0)<0;if(!(q|m>>>0>p-e>>>0)){l=l+4|0;e=e+m|0;if(p>>>0>e>>>0){continue}break J}break}s=-1;if(q){break a}}Zm(a,32,r,e,k);if(!e){e=0;break t}u=0;l=i[f+64>>2];while(1){m=i[l>>2];if(!m){break t}m=Pm(f+4|0,m);u=m+u|0;if((u|0)>(e|0)){break t}Tm(a,f+4|0,m);l=l+4|0;if(u>>>0>>0){continue}break}}Zm(a,32,r,e,k^8192);e=(r|0)>(e|0)?r:e;continue b}e=I[368](a,n[f+64>>3],r,p,k,e)|0;continue b}g[f+55|0]=i[f+64>>2];p=1;m=z;k=l;break e}l=e+1|0;i[f+76>>2]=l;k=j[e+1|0];e=l;continue}}s=t;if(a){break a}if(!x){break d}e=1;while(1){a=i[(e<<2)+d>>2];if(a){Vm((e<<3)+c|0,a,b);s=1;e=e+1|0;if((e|0)!=10){continue}break a}break}s=1;if(e>>>0>=10){break a}while(1){if(i[(e<<2)+d>>2]){break f}e=e+1|0;if((e|0)!=10){continue}break}break a}s=-1;break a}q=q-m|0;p=(p|0)<(q|0)?q:p;l=p+s|0;e=(r|0)<(l|0)?l:r;Zm(a,32,e,l,k);Tm(a,v,s);Zm(a,48,e,l,k^65536);Zm(a,48,p,q,0);Tm(a,m,q);Zm(a,32,e,l,k^8192);continue}break}s=0}F=f+80|0;return s}function Fn(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=F-16|0;F=e;i[e+12>>2]=a;a:{if(a>>>0<=211){a=i[Gn(17648,17840,e+12|0)>>2];break a}if(a>>>0>=4294967292){In();x()}f=(a>>>0)/210|0;d=o(f,210);i[e+8>>2]=a-d;g=Gn(17840,18032,e+8|0)-17840>>2;b:{while(1){a=i[(g<<2)+17840>>2]+d|0;d=5;b=h;c:{d:{while(1){h=b;if((d|0)==47){d=211;while(1){b=(a>>>0)/(d>>>0)|0;if(b>>>0>>0){break c}if((o(b,d)|0)==(a|0)){break d}b=d+10|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+12|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+16|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+18|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+22|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+28|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+30|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+36|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+40|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+42|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+46|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+52|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+58|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+60|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+66|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+70|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+72|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+78|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+82|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+88|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+96|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+100|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+102|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+106|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+108|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+112|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+120|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+126|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+130|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+136|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+138|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+142|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+148|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+150|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+156|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+162|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+166|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+168|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+172|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+178|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+180|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+186|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+190|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+192|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+196|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+198|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+208|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}d=d+210|0;if((o(b,c)|0)!=(a|0)){continue}break}break d}b=i[(d<<2)+17648>>2];c=(a>>>0)/(b>>>0)|0;j=o(b,c);c=c>>>0>>0;if(!c){b=c?a:h;d=d+1|0;if((a|0)!=(j|0)){continue}}break}if((a|0)!=(j|0)|c){break b}}b=g+1|0;a=(b|0)==48;g=a?0:b;f=a+f|0;d=o(f,210);continue}break}i[e+12>>2]=a;break a}i[e+12>>2]=a;a=c?a:h}F=e+16|0;return a}function pc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,H=0,I=0,J=0,K=0,L=0;e=F-32|0;F=e;g=i[a+8>>2];i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;f=ho(d);i[e+8>>2]=f;k=d+f|0;i[e+16>>2]=k;ip(f,0,d);i[e+12>>2]=k}h=i[a+1164>>2];d=i[h>>2];if(d){i[h+4>>2]=d;bp(d);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;g=i[a+8>>2];k=i[e+12>>2];f=i[e+8>>2]}i[h+4>>2]=k;i[h>>2]=f;i[h+8>>2]=i[e+16>>2];f=0;i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;d=0;b:{if(g){if(g>>>0>=1073741824){break b}h=g<<2;d=ho(h);i[e+8>>2]=d;f=d+h|0;i[e+16>>2]=f;ip(d,0,h);i[e+12>>2]=f}n=i[a+1176>>2];h=i[n>>2];if(h){i[n+4>>2]=h;bp(h);i[n+8>>2]=0;i[n>>2]=0;i[n+4>>2]=0;d=i[e+8>>2];f=i[e+12>>2]}i[n+4>>2]=f;i[n>>2]=d;i[n+8>>2]=i[e+16>>2];B=i[b+4>>2];H=i[b+8>>2];C=i[c+4>>2];I=i[c+8>>2];q=i[c>>2];j=i[b>>2];d=e+24|0;i[d>>2]=0;i[d+4>>2]=0;f=e+16|0;i[f>>2]=0;i[f+4>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;n=q-j|0;vc(e+8|0);g=0;h=i[e+12>>2];if((h|0)!=i[f>>2]){d=i[d>>2]+i[e+28>>2]|0;f=(d>>>0)/113|0;g=i[h+(f<<2)>>2]+o(d-o(f,113)|0,36)|0}i[g+32>>2]=0;i[g+28>>2]=n;i[g+24>>2]=0;i[g+16>>2]=C;i[g+20>>2]=I;i[g+12>>2]=q;i[g+4>>2]=B;i[g+8>>2]=H;i[g>>2]=j;f=i[e+28>>2];g=f+1|0;i[e+28>>2]=g;if(g>>>0>=f>>>0){n=C;q=B;J=a+1068|0;K=a+1108|0;L=i[c+8>>2];u=i[b+8>>2];while(1){f=i[e+12>>2];j=g+ -1|0;m=j+i[e+24>>2]|0;d=(m>>>0)/113|0;d=i[f+(d<<2)>>2]+o(m-o(d,113)|0,36)|0;D=i[d+32>>2];k=i[d+24>>2];p=i[d+12>>2];h=i[d>>2];i[e+28>>2]=j;d=i[e+16>>2];f=d-f|0;if((f?o(f>>2,113)+ -1|0:0)-m>>>0>=226){bp(i[d+ -4>>2]);i[e+16>>2]=i[e+16>>2]+ -4}i[b>>2]=h;i[c>>2]=p;g=(k|0)==(i[a+8>>2]+ -1|0)?0:k+1|0;v=g<<2;z=o(D,12);m=z+i[a+1176>>2]|0;d=i[a>>2]-i[v+i[m>>2]>>2]|0;c:{d:{if(!d){break d}e:{f:{w=p-h|0;if(w>>>0<=2){j=i[a+1152>>2];i[j>>2]=g;f=1;d=i[a+8>>2];if(d>>>0>1){break f}break e}f=i[a+1164>>2];j=f+z|0;E=f;f=z+12|0;ra(E+f|0,i[j>>2],i[j+4>>2]);f=v+i[f+i[a+1164>>2]>>2]|0;G=i[f>>2]+(1<>2]=G;f=h;g:{if((p|0)==(f|0)){break g}t=i[q+24>>2];d=h;f=p;while(1){s=t+(o(d,u)<<2)|0;if(l[s+v>>2]>>0){d=d+1|0;if((f|0)!=(d|0)){continue}break g}while(1){f=f+ -1|0;if((f|0)==(d|0)){f=d;break g}y=i[n+24>>2]+(o(f,L)<<2)|0;if(l[y+v>>2]>=G>>>0){continue}break}A=0;if(u){while(1){k=A<<2;j=k+s|0;m=i[j>>2];E=j;j=k+y|0;i[E>>2]=i[j>>2];i[j>>2]=m;A=A+1|0;if((u|0)!=(A|0)){continue}break}}d=d+1|0;if((f|0)!=(d|0)){continue}break}}d=r(w);t=f-h|0;s=p-f|0;if((t|0)!=(s|0)){xc(K,t>>>0>>0)}y=D+1|0;m=d^31;d=w>>>1|0;h:{if(t>>>0>>0){if(!m){break h}j=d-t|0;d=1<>>1|0;k=k+1|0;if((m|0)!=(k|0)){continue}break}break h}if(!m){break h}j=d-s|0;d=1<>>1|0;k=k+1|0;if((m|0)!=(k|0)){continue}break}}k=i[a+1176>>2];m=k+z|0;j=i[m>>2];d=j+v|0;i[d>>2]=i[d>>2]+1;ra(k+o(y,12)|0,j,i[m+4>>2]);if((f|0)!=(h|0)){k=i[e+28>>2]+i[e+24>>2]|0;m=i[e+16>>2];d=i[e+12>>2];j=m-d|0;if((k|0)==((j?o(j>>2,113)+ -1|0:0)|0)){vc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;m=i[e+16>>2];d=i[e+12>>2]}j=0;i:{if((d|0)==(m|0)){break i}j=d;d=(k>>>0)/113|0;j=i[j+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[j+32>>2]=D;i[j+28>>2]=t;i[j+24>>2]=g;i[j+20>>2]=u;i[j+16>>2]=q;i[j+12>>2]=f;i[j+4>>2]=B;i[j+8>>2]=H;i[j>>2]=h;i[e+28>>2]=i[e+28>>2]+1}if((f|0)==(p|0)){break d}k=i[e+28>>2]+i[e+24>>2]|0;m=i[e+16>>2];d=i[e+12>>2];h=m-d|0;if((k|0)==((h?o(h>>2,113)+ -1|0:0)|0)){vc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;m=i[e+16>>2];d=i[e+12>>2]}h=0;j:{if((d|0)==(m|0)){break j}h=d;d=(k>>>0)/113|0;h=i[h+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[h+32>>2]=y;i[h+28>>2]=s;i[h+24>>2]=g;i[h+16>>2]=C;i[h+20>>2]=I;i[h+12>>2]=p;i[h+8>>2]=u;i[h+4>>2]=q;i[h>>2]=f;g=i[e+28>>2]+1|0;i[e+28>>2]=g;break c}while(1){g=(d+ -1|0)==(g|0)?0:g+1|0;i[j+(f<<2)>>2]=g;f=f+1|0;d=i[a+8>>2];if(f>>>0>>0){continue}break}}k=0;f=d;if(!w){break d}while(1){k:{if(!f){f=0;break k}p=i[q+24>>2]+(o(i[q+4>>2],h+k|0)<<2)|0;g=0;while(1){j=i[i[a+1152>>2]+(g<<2)>>2]<<2;f=i[a>>2]-i[j+i[m>>2]>>2]|0;if(f){yc(J,f,i[j+p>>2]);d=i[a+8>>2]}f=d;g=g+1|0;if(g>>>0>>0){continue}break}}k=k+1|0;if((w|0)!=(k|0)){continue}break}}g=i[e+28>>2]}if(g){continue}break}}i[e+28>>2]=0;a=i[e+16>>2];g=i[e+12>>2];d=a-g>>2;if(d>>>0>=3){while(1){bp(i[g>>2]);g=i[e+12>>2]+4|0;i[e+12>>2]=g;a=i[e+16>>2];d=a-g>>2;if(d>>>0>2){continue}break}}f=56;l:{switch(d+ -1|0){case 1:f=113;case 0:i[e+24>>2]=f;break;default:break l}}m:{if((a|0)==(g|0)){break m}while(1){bp(i[g>>2]);g=g+4|0;if((g|0)!=(a|0)){continue}break}b=i[e+16>>2];a=i[e+12>>2];if((b|0)==(a|0)){break m}i[e+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[e+8>>2];if(a){bp(a)}F=e+32|0;return}Ho();x()}Ho();x()}function Qd(a,b,c,d){var e=0,f=0,l=0,o=0,r=p(0),t=0,w=0,x=0;a:{b:{if(!d){break b}c:{switch(i[a+28>>2]+ -1|0){case 0:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=g[b|0];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=j[b|0];i[e+4>>2]=0;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=h[b>>1];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=k[b>>1];i[e+4>>2]=0;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=i[b>>2];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=i[b>>2];i[e+4>>2]=0;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}l=i[b+4>>2];e=(f<<3)+d|0;i[e>>2]=i[b>>2];i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=i[b+4>>2];l=e;w=i[b>>2];if((e|0)<0?1:(e|0)<=0?w>>>0<0:0){return}e=(f<<3)+d|0;i[e>>2]=w;i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 8:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;w=i[e+4>>2];f=0;while(1){if(w>>>0<=b>>>0){return}e=(f<<3)+d|0;o=e;r=m[b>>2];d:{if(p(q(r))=p(1)?r>p(0)?~~p(s(p(u(p(r*p(2.3283064365386963e-10)))),p(4294967296)))>>>0:~~p(v(p(p(r-p(~~r>>>0>>>0))*p(2.3283064365386963e-10))))>>>0:0;x=~~r>>>0;break d}l=-2147483648;x=0}i[o>>2]=x;i[e+4>>2]=l;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 9:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;w=i[e+4>>2];f=0;while(1){if(w>>>0<=b>>>0){return}e=(f<<3)+d|0;o=e;t=n[b>>3];e:{if(q(t)<0x8000000000000000){l=q(t)>=1?t>0?~~s(u(t*2.3283064365386963e-10),4294967295)>>>0:~~v((t- +(~~t>>>0>>>0))*2.3283064365386963e-10)>>>0:0;x=~~t>>>0;break e}l=-2147483648;x=0}i[o>>2]=x;i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 10:break c;default:break b}}e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=j[b|0];i[e+4>>2]=0;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}ip((e<<3)+d|0,0,c-e<<3)}return}ip((e<<3)+d|0,0,c-e<<3)}function rc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;e=F-32|0;F=e;g=i[a+8>>2];i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;f=ho(d);i[e+8>>2]=f;k=d+f|0;i[e+16>>2]=k;ip(f,0,d);i[e+12>>2]=k}h=i[a+128>>2];d=i[h>>2];if(d){i[h+4>>2]=d;bp(d);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;g=i[a+8>>2];k=i[e+12>>2];f=i[e+8>>2]}i[h+4>>2]=k;i[h>>2]=f;i[h+8>>2]=i[e+16>>2];f=0;i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;d=0;b:{if(g){if(g>>>0>=1073741824){break b}h=g<<2;d=ho(h);i[e+8>>2]=d;f=d+h|0;i[e+16>>2]=f;ip(d,0,h);i[e+12>>2]=f}n=i[a+140>>2];h=i[n>>2];if(h){i[n+4>>2]=h;bp(h);i[n+8>>2]=0;i[n>>2]=0;i[n+4>>2]=0;d=i[e+8>>2];f=i[e+12>>2]}i[n+4>>2]=f;i[n>>2]=d;i[n+8>>2]=i[e+16>>2];B=i[b+4>>2];H=i[b+8>>2];C=i[c+4>>2];I=i[c+8>>2];q=i[c>>2];j=i[b>>2];d=e+24|0;i[d>>2]=0;i[d+4>>2]=0;f=e+16|0;i[f>>2]=0;i[f+4>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;n=q-j|0;vc(e+8|0);g=0;h=i[e+12>>2];if((h|0)!=i[f>>2]){d=i[d>>2]+i[e+28>>2]|0;f=(d>>>0)/113|0;g=i[h+(f<<2)>>2]+o(d-o(f,113)|0,36)|0}i[g+32>>2]=0;i[g+28>>2]=n;i[g+24>>2]=0;i[g+16>>2]=C;i[g+20>>2]=I;i[g+12>>2]=q;i[g+4>>2]=B;i[g+8>>2]=H;i[g>>2]=j;f=i[e+28>>2];g=f+1|0;i[e+28>>2]=g;if(g>>>0>=f>>>0){n=C;q=B;J=a+32|0;K=a+12|0;L=a+72|0;M=i[c+8>>2];u=i[b+8>>2];while(1){f=i[e+12>>2];j=g+ -1|0;m=j+i[e+24>>2]|0;d=(m>>>0)/113|0;d=i[f+(d<<2)>>2]+o(m-o(d,113)|0,36)|0;D=i[d+32>>2];k=i[d+24>>2];p=i[d+12>>2];h=i[d>>2];i[e+28>>2]=j;d=i[e+16>>2];f=d-f|0;if((f?o(f>>2,113)+ -1|0:0)-m>>>0>=226){bp(i[d+ -4>>2]);i[e+16>>2]=i[e+16>>2]+ -4}i[b>>2]=h;i[c>>2]=p;g=(k|0)==(i[a+8>>2]+ -1|0)?0:k+1|0;v=g<<2;z=o(D,12);m=z+i[a+140>>2]|0;d=i[a>>2]-i[v+i[m>>2]>>2]|0;c:{d:{if(!d){break d}e:{f:{w=p-h|0;if(w>>>0<=2){j=i[a+116>>2];i[j>>2]=g;f=1;d=i[a+8>>2];if(d>>>0>1){break f}break e}f=i[a+128>>2];j=f+z|0;E=f;f=z+12|0;ra(E+f|0,i[j>>2],i[j+4>>2]);f=v+i[f+i[a+128>>2]>>2]|0;G=i[f>>2]+(1<>2]=G;f=h;g:{if((p|0)==(f|0)){break g}t=i[q+24>>2];d=h;f=p;while(1){s=t+(o(d,u)<<2)|0;if(l[s+v>>2]>>0){d=d+1|0;if((f|0)!=(d|0)){continue}break g}while(1){f=f+ -1|0;if((f|0)==(d|0)){f=d;break g}y=i[n+24>>2]+(o(f,M)<<2)|0;if(l[v+y>>2]>=G>>>0){continue}break}A=0;if(u){while(1){k=A<<2;j=k+s|0;m=i[j>>2];E=j;j=k+y|0;i[E>>2]=i[j>>2];i[j>>2]=m;A=A+1|0;if((A|0)!=(u|0)){continue}break}}d=d+1|0;if((f|0)!=(d|0)){continue}break}}y=D+1|0;d=r(w)^31;t=f-h|0;s=p-f|0;if((t|0)!=(s|0)){xc(L,t>>>0>>0)}yc(K,d,(w>>>1|0)-(t>>>0>>0?t:s)|0);k=i[a+140>>2];m=k+z|0;j=i[m>>2];d=j+v|0;i[d>>2]=i[d>>2]+1;ra(k+o(y,12)|0,j,i[m+4>>2]);if((f|0)!=(h|0)){k=i[e+28>>2]+i[e+24>>2]|0;m=i[e+16>>2];d=i[e+12>>2];j=m-d|0;if((k|0)==((j?o(j>>2,113)+ -1|0:0)|0)){vc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;m=i[e+16>>2];d=i[e+12>>2]}j=0;h:{if((d|0)==(m|0)){break h}j=d;d=(k>>>0)/113|0;j=i[j+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[j+32>>2]=D;i[j+28>>2]=t;i[j+24>>2]=g;i[j+20>>2]=u;i[j+16>>2]=q;i[j+12>>2]=f;i[j+4>>2]=B;i[j+8>>2]=H;i[j>>2]=h;i[e+28>>2]=i[e+28>>2]+1}if((f|0)==(p|0)){break d}k=i[e+28>>2]+i[e+24>>2]|0;j=i[e+16>>2];d=i[e+12>>2];h=j-d|0;if((k|0)==((h?o(h>>2,113)+ -1|0:0)|0)){vc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;j=i[e+16>>2];d=i[e+12>>2]}h=0;i:{if((d|0)==(j|0)){break i}h=d;d=(k>>>0)/113|0;h=i[h+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[h+32>>2]=y;i[h+28>>2]=s;i[h+24>>2]=g;i[h+16>>2]=C;i[h+20>>2]=I;i[h+12>>2]=p;i[h+8>>2]=u;i[h+4>>2]=q;i[h>>2]=f;g=i[e+28>>2]+1|0;i[e+28>>2]=g;break c}while(1){g=(d+ -1|0)==(g|0)?0:g+1|0;i[j+(f<<2)>>2]=g;f=f+1|0;d=i[a+8>>2];if(f>>>0>>0){continue}break}}k=0;f=d;if(!w){break d}while(1){j:{if(!f){f=0;break j}p=i[q+24>>2]+(o(i[q+4>>2],h+k|0)<<2)|0;g=0;while(1){j=i[i[a+116>>2]+(g<<2)>>2]<<2;f=i[a>>2]-i[j+i[m>>2]>>2]|0;if(f){yc(J,f,i[j+p>>2]);d=i[a+8>>2]}g=g+1|0;f=d;if(g>>>0>>0){continue}break}}k=k+1|0;if((w|0)!=(k|0)){continue}break}}g=i[e+28>>2]}if(g){continue}break}}i[e+28>>2]=0;d=i[e+16>>2];g=i[e+12>>2];a=d-g>>2;if(a>>>0>=3){while(1){bp(i[g>>2]);g=i[e+12>>2]+4|0;i[e+12>>2]=g;d=i[e+16>>2];a=d-g>>2;if(a>>>0>2){continue}break}}f=56;k:{switch(a+ -1|0){case 1:f=113;case 0:i[e+24>>2]=f;break;default:break k}}l:{if((d|0)==(g|0)){break l}while(1){bp(i[g>>2]);g=g+4|0;if((g|0)!=(d|0)){continue}break}b=i[e+16>>2];a=i[e+12>>2];if((b|0)==(a|0)){break l}i[e+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[e+8>>2];if(a){bp(a)}F=e+32|0;return}Ho();x()}Ho();x()}function qc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;e=F-32|0;F=e;g=i[a+8>>2];i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;f=ho(d);i[e+8>>2]=f;k=d+f|0;i[e+16>>2]=k;ip(f,0,d);i[e+12>>2]=k}h=i[a+140>>2];d=i[h>>2];if(d){i[h+4>>2]=d;bp(d);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;g=i[a+8>>2];k=i[e+12>>2];f=i[e+8>>2]}i[h+4>>2]=k;i[h>>2]=f;i[h+8>>2]=i[e+16>>2];f=0;i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;d=0;b:{if(g){if(g>>>0>=1073741824){break b}h=g<<2;d=ho(h);i[e+8>>2]=d;f=d+h|0;i[e+16>>2]=f;ip(d,0,h);i[e+12>>2]=f}n=i[a+152>>2];h=i[n>>2];if(h){i[n+4>>2]=h;bp(h);i[n+8>>2]=0;i[n>>2]=0;i[n+4>>2]=0;d=i[e+8>>2];f=i[e+12>>2]}i[n+4>>2]=f;i[n>>2]=d;i[n+8>>2]=i[e+16>>2];B=i[b+4>>2];H=i[b+8>>2];C=i[c+4>>2];I=i[c+8>>2];q=i[c>>2];j=i[b>>2];d=e+24|0;i[d>>2]=0;i[d+4>>2]=0;f=e+16|0;i[f>>2]=0;i[f+4>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;n=q-j|0;vc(e+8|0);g=0;h=i[e+12>>2];if((h|0)!=i[f>>2]){d=i[d>>2]+i[e+28>>2]|0;f=(d>>>0)/113|0;g=i[h+(f<<2)>>2]+o(d-o(f,113)|0,36)|0}i[g+32>>2]=0;i[g+28>>2]=n;i[g+24>>2]=0;i[g+16>>2]=C;i[g+20>>2]=I;i[g+12>>2]=q;i[g+4>>2]=B;i[g+8>>2]=H;i[g>>2]=j;f=i[e+28>>2];g=f+1|0;i[e+28>>2]=g;if(g>>>0>=f>>>0){n=C;q=B;J=a+44|0;K=a+12|0;L=a+84|0;M=i[c+8>>2];u=i[b+8>>2];while(1){f=i[e+12>>2];j=g+ -1|0;m=j+i[e+24>>2]|0;d=(m>>>0)/113|0;d=i[f+(d<<2)>>2]+o(m-o(d,113)|0,36)|0;D=i[d+32>>2];k=i[d+24>>2];p=i[d+12>>2];h=i[d>>2];i[e+28>>2]=j;d=i[e+16>>2];f=d-f|0;if((f?o(f>>2,113)+ -1|0:0)-m>>>0>=226){bp(i[d+ -4>>2]);i[e+16>>2]=i[e+16>>2]+ -4}i[b>>2]=h;i[c>>2]=p;g=(k|0)==(i[a+8>>2]+ -1|0)?0:k+1|0;v=g<<2;z=o(D,12);m=z+i[a+152>>2]|0;d=i[a>>2]-i[v+i[m>>2]>>2]|0;c:{d:{if(!d){break d}e:{f:{w=p-h|0;if(w>>>0<=2){j=i[a+128>>2];i[j>>2]=g;f=1;d=i[a+8>>2];if(d>>>0>1){break f}break e}f=i[a+140>>2];j=f+z|0;E=f;f=z+12|0;ra(E+f|0,i[j>>2],i[j+4>>2]);f=v+i[f+i[a+140>>2]>>2]|0;G=i[f>>2]+(1<>2]=G;f=h;g:{if((p|0)==(f|0)){break g}t=i[q+24>>2];d=h;f=p;while(1){s=t+(o(d,u)<<2)|0;if(l[s+v>>2]>>0){d=d+1|0;if((f|0)!=(d|0)){continue}break g}while(1){f=f+ -1|0;if((f|0)==(d|0)){f=d;break g}y=i[n+24>>2]+(o(f,M)<<2)|0;if(l[v+y>>2]>=G>>>0){continue}break}A=0;if(u){while(1){k=A<<2;j=k+s|0;m=i[j>>2];E=j;j=k+y|0;i[E>>2]=i[j>>2];i[j>>2]=m;A=A+1|0;if((A|0)!=(u|0)){continue}break}}d=d+1|0;if((f|0)!=(d|0)){continue}break}}y=D+1|0;d=r(w)^31;t=f-h|0;s=p-f|0;if((t|0)!=(s|0)){xc(L,t>>>0>>0)}rf(K,d,(w>>>1|0)-(t>>>0>>0?t:s)|0);k=i[a+152>>2];m=k+z|0;j=i[m>>2];d=j+v|0;i[d>>2]=i[d>>2]+1;ra(k+o(y,12)|0,j,i[m+4>>2]);if((f|0)!=(h|0)){k=i[e+28>>2]+i[e+24>>2]|0;m=i[e+16>>2];d=i[e+12>>2];j=m-d|0;if((k|0)==((j?o(j>>2,113)+ -1|0:0)|0)){vc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;m=i[e+16>>2];d=i[e+12>>2]}j=0;h:{if((d|0)==(m|0)){break h}j=d;d=(k>>>0)/113|0;j=i[j+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[j+32>>2]=D;i[j+28>>2]=t;i[j+24>>2]=g;i[j+20>>2]=u;i[j+16>>2]=q;i[j+12>>2]=f;i[j+4>>2]=B;i[j+8>>2]=H;i[j>>2]=h;i[e+28>>2]=i[e+28>>2]+1}if((f|0)==(p|0)){break d}k=i[e+28>>2]+i[e+24>>2]|0;j=i[e+16>>2];d=i[e+12>>2];h=j-d|0;if((k|0)==((h?o(h>>2,113)+ -1|0:0)|0)){vc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;j=i[e+16>>2];d=i[e+12>>2]}h=0;i:{if((d|0)==(j|0)){break i}h=d;d=(k>>>0)/113|0;h=i[h+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[h+32>>2]=y;i[h+28>>2]=s;i[h+24>>2]=g;i[h+16>>2]=C;i[h+20>>2]=I;i[h+12>>2]=p;i[h+8>>2]=u;i[h+4>>2]=q;i[h>>2]=f;g=i[e+28>>2]+1|0;i[e+28>>2]=g;break c}while(1){g=(d+ -1|0)==(g|0)?0:g+1|0;i[j+(f<<2)>>2]=g;f=f+1|0;d=i[a+8>>2];if(f>>>0>>0){continue}break}}k=0;f=d;if(!w){break d}while(1){j:{if(!f){f=0;break j}p=i[q+24>>2]+(o(i[q+4>>2],h+k|0)<<2)|0;g=0;while(1){j=i[i[a+128>>2]+(g<<2)>>2]<<2;f=i[a>>2]-i[j+i[m>>2]>>2]|0;if(f){yc(J,f,i[j+p>>2]);d=i[a+8>>2]}g=g+1|0;f=d;if(g>>>0>>0){continue}break}}k=k+1|0;if((w|0)!=(k|0)){continue}break}}g=i[e+28>>2]}if(g){continue}break}}i[e+28>>2]=0;d=i[e+16>>2];g=i[e+12>>2];a=d-g>>2;if(a>>>0>=3){while(1){bp(i[g>>2]);g=i[e+12>>2]+4|0;i[e+12>>2]=g;d=i[e+16>>2];a=d-g>>2;if(a>>>0>2){continue}break}}f=56;k:{switch(a+ -1|0){case 1:f=113;case 0:i[e+24>>2]=f;break;default:break k}}l:{if((d|0)==(g|0)){break l}while(1){bp(i[g>>2]);g=g+4|0;if((g|0)!=(d|0)){continue}break}b=i[e+16>>2];a=i[e+12>>2];if((b|0)==(a|0)){break l}i[e+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[e+8>>2];if(a){bp(a)}F=e+32|0;return}Ho();x()}Ho();x()}function kn(a,b,c,d,e){var f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;f=F-432|0;F=f;g=i[b+4>>2];a:{if(g>>>0>2]){i[b+4>>2]=g+1;h=j[g|0];break a}h=fn(b)}b:{c:{while(1){d:{if((h|0)!=48){if((h|0)!=46){break b}g=i[b+4>>2];if(g>>>0>=l[b+104>>2]){break d}i[b+4>>2]=g+1;h=j[g|0];break c}g=i[b+4>>2];if(g>>>0>2]){y=1;i[b+4>>2]=g+1;h=j[g|0]}else{y=1;h=fn(b)}continue}break}h=fn(b)}x=1;if((h|0)!=48){break b}while(1){q=q+ -1|0;g=u+ -1|0;if((g|0)!=-1){q=q+1|0}u=g;g=i[b+4>>2];e:{if(g>>>0>2]){i[b+4>>2]=g+1;h=j[g|0];break e}h=fn(b)}if((h|0)==48){continue}break}y=1}g=1073676288;while(1){f:{z=h|32;g:{h:{A=h+ -48|0;if(A>>>0<10){break h}if(z+ -97>>>0>5?(h|0)!=46:0){break f}if((h|0)!=46){break h}if(x){break f}x=1;u=o;q=k;break g}h=(h|0)>57?z+ -87|0:A;i:{if((k|0)<0?1:(k|0)<=0?o>>>0<=7:0){r=h+(r<<4)|0;break i}if((k|0)<0?1:(k|0)<=0?o>>>0<=28:0){An(f+48|0,h);yn(f+32|0,v,w,p,g,0,0,0,1073414144);v=i[f+32>>2];w=i[f+36>>2];p=i[f+40>>2];g=i[f+44>>2];yn(f+16|0,v,w,p,g,i[f+48>>2],i[f+52>>2],i[f+56>>2],i[f+60>>2]);tn(f,m,n,s,t,i[f+16>>2],i[f+20>>2],i[f+24>>2],i[f+28>>2]);s=i[f+8>>2];t=i[f+12>>2];m=i[f>>2];n=i[f+4>>2];break i}if(!h|D){break i}yn(f+80|0,v,w,p,g,0,0,0,1073610752);tn(f- -64|0,m,n,s,t,i[f+80>>2],i[f+84>>2],i[f+88>>2],i[f+92>>2]);s=i[f+72>>2];t=i[f+76>>2];D=1;m=i[f+64>>2];n=i[f+68>>2]}o=o+1|0;if(o>>>0<1){k=k+1|0}y=1}h=i[b+4>>2];if(h>>>0>2]){i[b+4>>2]=h+1;h=j[h|0]}else{h=fn(b)}continue}break}j:{k:{if(!y){if(!i[b+104>>2]){break k}c=i[b+4>>2];i[b+4>>2]=c+ -1;i[b+4>>2]=c+ -2;if(!x){break k}i[b+4>>2]=c+ -3;break k}if((k|0)<0?1:(k|0)<=0?o>>>0<=7:0){p=o;g=k;while(1){r=r<<4;p=p+1|0;if(p>>>0<1){g=g+1|0}if((p|0)!=8|g){continue}break}}l:{if((h&-33)==80){p=mn(b);h=H;g=h;if(p|(g|0)!=-2147483648){break l}p=0;g=0;if(!i[b+104>>2]){break l}i[b+4>>2]=i[b+4>>2]+ -1;break l}p=0;g=0;if(!i[b+104>>2]){break l}i[b+4>>2]=i[b+4>>2]+ -1}if(!r){xn(f+112|0,+(e|0)*0);m=i[f+112>>2];n=i[f+116>>2];c=i[f+120>>2];b=i[f+124>>2];break j}b=x?q:k;k=x?u:o;q=b<<2|k>>>30;b=p+(k<<2)|0;k=g+q|0;k=b>>>0

>>0?k+1|0:k;b=b+ -32|0;g=k+ -1|0;o=b;k=b>>>0<4294967264?g+1|0:g;if((k|0)>0?1:(k|0)>=0?b>>>0>0-d>>>0:0){i[4805]=68;An(f+160|0,e);yn(f+144|0,i[f+160>>2],i[f+164>>2],i[f+168>>2],i[f+172>>2],-1,-1,-1,2147418111);yn(f+128|0,i[f+144>>2],i[f+148>>2],i[f+152>>2],i[f+156>>2],-1,-1,-1,2147418111);m=i[f+128>>2];n=i[f+132>>2];c=i[f+136>>2];b=i[f+140>>2];break j}b=d+ -226|0;h=o>>>0>=b>>>0;b=b>>31;if((k|0)>(b|0)?1:(k|0)>=(b|0)?h:0){if((r|0)>-1){while(1){tn(f+416|0,m,n,s,t,0,0,0,-1073807360);h=rn(m,n,s,t,1073610752);g=(h|0)<0;b=g;tn(f+400|0,m,n,s,t,b?m:i[f+416>>2],b?n:i[f+420>>2],b?s:i[f+424>>2],b?t:i[f+428>>2]);k=k+ -1|0;b=o+ -1|0;if((b|0)!=-1){k=k+1|0}o=b;s=i[f+408>>2];t=i[f+412>>2];m=i[f+400>>2];n=i[f+404>>2];r=r<<1|(h|0)>-1;if((r|0)>-1){continue}break}}g=o;b=d;h=(g-b|0)+32|0;k=k-((b>>31)+(g>>>0>>0)|0)|0;b=h;k=b>>>0<32?k+1|0:k;c=((k|0)<0?1:(k|0)<=0?b>>>0>>0:0)?(b|0)>0?b:0:c;m:{if((c|0)>=113){An(f+384|0,e);u=i[f+392>>2];q=i[f+396>>2];v=i[f+384>>2];w=i[f+388>>2];d=0;b=0;break m}xn(f+352|0,fp(144-c|0));An(f+336|0,e);v=i[f+336>>2];w=i[f+340>>2];u=i[f+344>>2];q=i[f+348>>2];gn(f+368|0,i[f+352>>2],i[f+356>>2],i[f+360>>2],i[f+364>>2],v,w,u,q);B=i[f+376>>2];C=i[f+380>>2];d=i[f+372>>2];b=i[f+368>>2]}c=!(r&1)&((qn(m,n,s,t,0,0,0,0)|0)!=0&(c|0)<32);En(f+320|0,c+r|0);yn(f+304|0,v,w,u,q,i[f+320>>2],i[f+324>>2],i[f+328>>2],i[f+332>>2]);tn(f+272|0,i[f+304>>2],i[f+308>>2],i[f+312>>2],i[f+316>>2],b,d,B,C);yn(f+288|0,c?0:m,c?0:n,c?0:s,c?0:t,v,w,u,q);tn(f+256|0,i[f+288>>2],i[f+292>>2],i[f+296>>2],i[f+300>>2],i[f+272>>2],i[f+276>>2],i[f+280>>2],i[f+284>>2]);zn(f+240|0,i[f+256>>2],i[f+260>>2],i[f+264>>2],i[f+268>>2],b,d,B,C);e=i[f+240>>2];d=i[f+244>>2];c=i[f+248>>2];b=i[f+252>>2];if(!qn(e,d,c,b,0,0,0,0)){i[4805]=68}hn(f+224|0,e,d,c,b,o);m=i[f+224>>2];n=i[f+228>>2];c=i[f+232>>2];b=i[f+236>>2];break j}i[4805]=68;An(f+208|0,e);yn(f+192|0,i[f+208>>2],i[f+212>>2],i[f+216>>2],i[f+220>>2],0,0,0,65536);yn(f+176|0,i[f+192>>2],i[f+196>>2],i[f+200>>2],i[f+204>>2],0,0,0,65536);m=i[f+176>>2];n=i[f+180>>2];c=i[f+184>>2];b=i[f+188>>2];break j}xn(f+96|0,+(e|0)*0);m=i[f+96>>2];n=i[f+100>>2];c=i[f+104>>2];b=i[f+108>>2]}i[a>>2]=m;i[a+4>>2]=n;i[a+8>>2]=c;i[a+12>>2]=b;F=f+432|0}function ke(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;l=F-48|0;F=l;i[a+68>>2]=f;q=a+112|0;pf(q);d=i[a+56>>2];f=i[d>>2];j=i[d+4>>2];i[l+40>>2]=0;i[l+32>>2]=0;i[l+36>>2]=0;i[l+16>>2]=0;i[l+20>>2]=0;i[l+8>>2]=0;i[l+12>>2]=0;i[l>>2]=0;i[l+4>>2]=0;a:{g=j-f|0;if((g|0)<1){break a}e=i[d>>2];if((e|0)!=i[d+4>>2]){t=a+60|0;d=f-j|0;d=((d|0)>(g|0)?d:g)>>>2|0;u=d>>>0>1?d:1;v=c+4|0;while(1){le(t,i[(n<<2)+e>>2],l+32|0);f=i[l+36>>2];g=f>>31;j=i[l+32>>2];k=j>>31;e=i[l+40>>2];h=e>>31;d=0;h=h^e+h;g=h+((g^f+g)+(k^j+k)|0)|0;if(g>>>0>>0){d=1}k=g;b:{if(!(d|g)){m=i[a+108>>2];g=m;break b}m=i[a+108>>2];h=m;o=h>>31;g=vp(up(h,o,j,j>>31),H,k,d);f=vp(up(h,o,f,f>>31),H,k,d);if((e|0)>=0){e=(((g|0)<0?g:0-g|0)+m|0)+((f|0)<0?f:0-f|0)|0;break b}d=g>>31;e=(d+g^d)-m|0;d=f>>31;e=e+(d+f^d)|0}c:{if((g|0)>=0){j=f+m|0;h=e+m|0;break c}d:{if((f|0)<=-1){d=e>>31;j=d+e^d;break d}j=i[a+100>>2]+((e|0)<0?e:0-e|0)|0}if((e|0)<=-1){d=f>>31;h=d+f^d;break c}h=i[a+100>>2]+((f|0)<0?f:0-f|0)|0}e:{if(!(h|j)){d=i[a+100>>2];h=d;k=d;break e}d=i[a+100>>2];f:{g:{h:{i:{if(!j){if((d|0)==(h|0)){d=h;k=d;break e}k=0;if(d|h){break i}h=0;break e}if((d|0)!=(j|0)|h){break h}d=j;h=d;k=d;break e}if((m|0)<(h|0)){h=(m<<1)-h|0;break e}if(d){break f}break g}if((d|0)!=(j|0)){break f}}d=j;if((m|0)<=(h|0)){break f}h=(m<<1)-h|0;k=j;break e}if(!((d|0)!=(h|0)|(m|0)<=(j|0))){k=(m<<1)-j|0;break e}if(h){k=j;break e}h=0;if((m|0)>=(j|0)){k=j;break e}k=(m<<1)-j|0}i[l+28>>2]=h;i[l+24>>2]=k;j=0-e|0;i[l+40>>2]=j;k=0-f|0;i[l+36>>2]=k;i[l+32>>2]=0-g;j:{k:{l:{if((g|0)<=0){g=m-f|0;e=m-e|0;break l}g=e>>31;h=((e|0)<0?e:j)+d|0;j=(f|0)>0;g=j?g+e^g:h;if((e|0)>=1){e=f>>31;e=e+f^e;break l}e=(j?k:f)+d|0}if(!(e|g)){break k}m:{n:{o:{if(!g){if((d|0)==(e|0)){break k}f=0;if(d|e){break o}e=0;break j}if((d|0)==(g|0)?!e:0){break k}if((d|0)==(g|0)){break n}break m}if((m|0)<(e|0)){e=(m<<1)-e|0;break j}if(d){break m}}d=g;if((m|0)<=(e|0)){break m}e=(m<<1)-e|0;f=g;break j}if(!((d|0)!=(e|0)|(m|0)<=(g|0))){f=(m<<1)-g|0;break j}if(e){f=g;break j}e=0;if((m|0)>=(g|0)){f=g;break j}f=(m<<1)-g|0;break j}e=d;f=d}i[l+20>>2]=e;i[l+16>>2]=f;g=i[a+8>>2];p:{if((g|0)<1){break p}r=(n<<3)+b|0;m=l+24|0;j=0;while(1){f=0;q:{if((g|0)<=0){e=i[a+32>>2];break q}while(1){d=f<<2;g=i[d+m>>2];k=i[a+16>>2];r:{if((g|0)>(k|0)){e=i[a+32>>2];i[d+e>>2]=k;break r}e=i[a+32>>2];d=d+e|0;k=i[a+12>>2];if((g|0)<(k|0)){i[d>>2]=k;break r}i[d>>2]=g}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){continue}break}}f=j<<2;d=f+(l+8|0)|0;f=i[f+r>>2]-i[e+f>>2]|0;i[d>>2]=f;k=i[a+28>>2];h=f+i[a+20>>2]|0;s:{t:{if((f|0)<(k|0)){break t}if((f|0)<=i[a+24>>2]){break s}h=f-i[a+20>>2]|0}i[d>>2]=h}m=e;j=j+1|0;if((j|0)<(g|0)){continue}break}p=0;o=l+16|0;j=e;f=e;if((g|0)<1){break p}while(1){d=0;if((g|0)>=1){while(1){f=e;h=f;s=d<<2;k=i[s+o>>2];g=i[a+16>>2];if((k|0)<=(g|0)){g=i[a+12>>2];f=(k|0)<(g|0);g=f?g:k;h=m;f=f?h:j}i[f+s>>2]=g;m=h;j=f;d=d+1|0;g=i[a+8>>2];if((d|0)<(g|0)){continue}break}k=i[a+28>>2]}h=p<<2;d=h+l|0;h=i[h+r>>2]-i[f+h>>2]|0;i[d>>2]=h;u:{if((h|0)<(k|0)){h=h+i[a+20>>2]|0}else{if((h|0)<=i[a+24>>2]){break u}h=h-i[a+20>>2]|0}i[d>>2]=h}o=f;p=p+1|0;if((p|0)<(g|0)){continue}break}}j=i[a+108>>2];e=i[l+8>>2];v:{if((j|0)<(e|0)){e=e-i[a+96>>2]|0;break v}if((e|0)>=(0-j|0)){break v}e=i[a+96>>2]+e|0}i[l+8>>2]=e;g=i[l+12>>2];w:{if((j|0)<(g|0)){g=g-i[a+96>>2]|0;break w}if((g|0)>=(0-j|0)){break w}g=i[a+96>>2]+g|0}i[l+12>>2]=g;d=i[l>>2];x:{if((j|0)<(d|0)){d=d-i[a+96>>2]|0;break x}if((d|0)>=(0-j|0)){break x}d=i[a+96>>2]+d|0}i[l>>2]=d;f=i[l+4>>2];y:{if((j|0)<(f|0)){f=f-i[a+96>>2]|0;break y}if((f|0)>=(0-j|0)){break y}f=i[a+96>>2]+f|0}j=n<<1;i[l+4>>2]=f;k=g>>31;k=k+g^k;h=e>>31;h=h+e^h;m=h>>>0>(k^2147483647)>>>0?2147483647:k+h|0;k=f>>31;k=k+f^k;h=d>>31;h=h+d^h;z:{if(m>>>0<(h>>>0>(k^2147483647)>>>0?2147483647:k+h|0)>>>0){qf(q,0);d=(j<<2)+c|0;if((e|0)<=-1){e=i[a+96>>2]+e|0}i[d>>2]=e;if((g|0)>-1){f=g;break z}f=i[a+96>>2]+g|0;break z}qf(q,1);e=(j<<2)+c|0;if((d|0)<=-1){d=i[a+96>>2]+d|0}i[e>>2]=d;if((f|0)>-1){break z}f=i[a+96>>2]+f|0}i[(j<<2)+v>>2]=f;n=n+1|0;if((u|0)==(n|0)){break a}d=i[a+56>>2];e=i[d>>2];if(i[d+4>>2]-e>>2>>>0>n>>>0){continue}break}}Io();x()}F=l+48|0;return 1}function Xd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;l=F-48|0;F=l;i[a+68>>2]=f;q=a+112|0;pf(q);d=i[a+56>>2];f=i[d>>2];j=i[d+4>>2];i[l+40>>2]=0;i[l+32>>2]=0;i[l+36>>2]=0;i[l+16>>2]=0;i[l+20>>2]=0;i[l+8>>2]=0;i[l+12>>2]=0;i[l>>2]=0;i[l+4>>2]=0;a:{g=j-f|0;if((g|0)<1){break a}e=i[d>>2];if((e|0)!=i[d+4>>2]){t=a+60|0;d=f-j|0;d=((d|0)>(g|0)?d:g)>>>2|0;u=d>>>0>1?d:1;v=c+4|0;while(1){Yd(t,i[(n<<2)+e>>2],l+32|0);f=i[l+36>>2];g=f>>31;j=i[l+32>>2];k=j>>31;e=i[l+40>>2];h=e>>31;d=0;h=h^e+h;g=h+((g^f+g)+(k^j+k)|0)|0;if(g>>>0>>0){d=1}k=g;b:{if(!(d|g)){m=i[a+108>>2];g=m;break b}m=i[a+108>>2];h=m;o=h>>31;g=vp(up(h,o,j,j>>31),H,k,d);f=vp(up(h,o,f,f>>31),H,k,d);if((e|0)>=0){e=(((g|0)<0?g:0-g|0)+m|0)+((f|0)<0?f:0-f|0)|0;break b}d=g>>31;e=(d+g^d)-m|0;d=f>>31;e=e+(d+f^d)|0}c:{if((g|0)>=0){j=f+m|0;h=e+m|0;break c}d:{if((f|0)<=-1){d=e>>31;j=d+e^d;break d}j=i[a+100>>2]+((e|0)<0?e:0-e|0)|0}if((e|0)<=-1){d=f>>31;h=d+f^d;break c}h=i[a+100>>2]+((f|0)<0?f:0-f|0)|0}e:{if(!(h|j)){d=i[a+100>>2];h=d;k=d;break e}d=i[a+100>>2];f:{g:{h:{i:{if(!j){if((d|0)==(h|0)){d=h;k=d;break e}k=0;if(d|h){break i}h=0;break e}if((d|0)!=(j|0)|h){break h}d=j;h=d;k=d;break e}if((m|0)<(h|0)){h=(m<<1)-h|0;break e}if(d){break f}break g}if((d|0)!=(j|0)){break f}}d=j;if((m|0)<=(h|0)){break f}h=(m<<1)-h|0;k=j;break e}if(!((d|0)!=(h|0)|(m|0)<=(j|0))){k=(m<<1)-j|0;break e}if(h){k=j;break e}h=0;if((m|0)>=(j|0)){k=j;break e}k=(m<<1)-j|0}i[l+28>>2]=h;i[l+24>>2]=k;j=0-e|0;i[l+40>>2]=j;k=0-f|0;i[l+36>>2]=k;i[l+32>>2]=0-g;j:{k:{l:{if((g|0)<=0){g=m-f|0;e=m-e|0;break l}g=e>>31;h=((e|0)<0?e:j)+d|0;j=(f|0)>0;g=j?g+e^g:h;if((e|0)>=1){e=f>>31;e=e+f^e;break l}e=(j?k:f)+d|0}if(!(e|g)){break k}m:{n:{o:{if(!g){if((d|0)==(e|0)){break k}f=0;if(d|e){break o}e=0;break j}if((d|0)==(g|0)?!e:0){break k}if((d|0)==(g|0)){break n}break m}if((m|0)<(e|0)){e=(m<<1)-e|0;break j}if(d){break m}}d=g;if((m|0)<=(e|0)){break m}e=(m<<1)-e|0;f=g;break j}if(!((d|0)!=(e|0)|(m|0)<=(g|0))){f=(m<<1)-g|0;break j}if(e){f=g;break j}e=0;if((m|0)>=(g|0)){f=g;break j}f=(m<<1)-g|0;break j}e=d;f=d}i[l+20>>2]=e;i[l+16>>2]=f;g=i[a+8>>2];p:{if((g|0)<1){break p}r=(n<<3)+b|0;m=l+24|0;j=0;while(1){f=0;q:{if((g|0)<=0){e=i[a+32>>2];break q}while(1){d=f<<2;g=i[d+m>>2];k=i[a+16>>2];r:{if((g|0)>(k|0)){e=i[a+32>>2];i[d+e>>2]=k;break r}e=i[a+32>>2];d=d+e|0;k=i[a+12>>2];if((g|0)<(k|0)){i[d>>2]=k;break r}i[d>>2]=g}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){continue}break}}f=j<<2;d=f+(l+8|0)|0;f=i[f+r>>2]-i[e+f>>2]|0;i[d>>2]=f;k=i[a+28>>2];h=f+i[a+20>>2]|0;s:{t:{if((f|0)<(k|0)){break t}if((f|0)<=i[a+24>>2]){break s}h=f-i[a+20>>2]|0}i[d>>2]=h}m=e;j=j+1|0;if((j|0)<(g|0)){continue}break}p=0;o=l+16|0;j=e;f=e;if((g|0)<1){break p}while(1){d=0;if((g|0)>=1){while(1){f=e;h=f;s=d<<2;k=i[s+o>>2];g=i[a+16>>2];if((k|0)<=(g|0)){g=i[a+12>>2];f=(k|0)<(g|0);g=f?g:k;h=m;f=f?h:j}i[f+s>>2]=g;m=h;j=f;d=d+1|0;g=i[a+8>>2];if((d|0)<(g|0)){continue}break}k=i[a+28>>2]}h=p<<2;d=h+l|0;h=i[h+r>>2]-i[f+h>>2]|0;i[d>>2]=h;u:{if((h|0)<(k|0)){h=h+i[a+20>>2]|0}else{if((h|0)<=i[a+24>>2]){break u}h=h-i[a+20>>2]|0}i[d>>2]=h}o=f;p=p+1|0;if((p|0)<(g|0)){continue}break}}j=i[a+108>>2];e=i[l+8>>2];v:{if((j|0)<(e|0)){e=e-i[a+96>>2]|0;break v}if((e|0)>=(0-j|0)){break v}e=i[a+96>>2]+e|0}i[l+8>>2]=e;g=i[l+12>>2];w:{if((j|0)<(g|0)){g=g-i[a+96>>2]|0;break w}if((g|0)>=(0-j|0)){break w}g=i[a+96>>2]+g|0}i[l+12>>2]=g;d=i[l>>2];x:{if((j|0)<(d|0)){d=d-i[a+96>>2]|0;break x}if((d|0)>=(0-j|0)){break x}d=i[a+96>>2]+d|0}i[l>>2]=d;f=i[l+4>>2];y:{if((j|0)<(f|0)){f=f-i[a+96>>2]|0;break y}if((f|0)>=(0-j|0)){break y}f=i[a+96>>2]+f|0}j=n<<1;i[l+4>>2]=f;k=g>>31;k=k+g^k;h=e>>31;h=h+e^h;m=h>>>0>(k^2147483647)>>>0?2147483647:k+h|0;k=f>>31;k=k+f^k;h=d>>31;h=h+d^h;z:{if(m>>>0<(h>>>0>(k^2147483647)>>>0?2147483647:k+h|0)>>>0){qf(q,0);d=(j<<2)+c|0;if((e|0)<=-1){e=i[a+96>>2]+e|0}i[d>>2]=e;if((g|0)>-1){f=g;break z}f=i[a+96>>2]+g|0;break z}qf(q,1);e=(j<<2)+c|0;if((d|0)<=-1){d=i[a+96>>2]+d|0}i[e>>2]=d;if((f|0)>-1){break z}f=i[a+96>>2]+f|0}i[(j<<2)+v>>2]=f;n=n+1|0;if((u|0)==(n|0)){break a}d=i[a+56>>2];e=i[d>>2];if(i[d+4>>2]-e>>2>>>0>n>>>0){continue}break}}Io();x()}F=l+48|0;return 1}function Xb(a,b,c,d){var e=0,f=0,l=0,o=0,r=0,s=p(0),t=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=h[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=g[a+24|0];if(((o|0)>(c|0)?c:o)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;e=i[e+4>>2];while(1){if(e>>>0<=b>>>0){break b}o=0;r=i[b>>2];if((r|0)<0){break c}i[(f<<2)+d>>2]=r;b=b+4|0;f=f+1|0;o=g[a+24|0];if((f|0)<((o|0)>(c|0)?c:o)<<24>>24){continue}break}}if((o|0)>=(c|0)){return 1}ip((o<<2)+d|0,0,c-o<<2);return 1;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=i[b+4>>2];l=i[b>>2];if(l+ -2147483648>>>0<2147483648){e=e+1|0}if(e>>>0>0){break b}i[(f<<2)+d>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=i[b+4>>2];l=i[b>>2];if(!e&l>>>0>2147483647|e>>>0>0){break b}i[(f<<2)+d>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=(f<<2)+d|0;s=m[b>>2];e:{if(p(q(s))>2]=l;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=(f<<2)+d|0;t=n[b>>3];f:{if(q(t)<2147483648){l=~~t;break f}l=-2147483648}i[e>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}ip((e<<2)+d|0,0,c-e<<2)}return o}return 0}ip((e<<2)+d|0,0,c-e<<2);return 1}function $b(a,b,c,d){var e=0,f=0,o=0,q=0,r=p(0),s=0;a:{b:{if(!d){break b}c:{switch(i[a+28>>2]+ -1|0){case 0:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=h[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=i[b>>2];if(l[b+4>>2]>0){return}i[(f<<2)+d>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=i[b>>2];if(l[b+4>>2]>0){return}i[(f<<2)+d>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 8:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}q=(f<<2)+d|0;r=m[b>>2];d:{if(r=p(0)){e=~~r>>>0;break d}e=0}i[q>>2]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 9:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}q=(f<<2)+d|0;s=n[b>>3];e:{if(s<4294967296&s>=0){e=~~s>>>0;break e}e=0}i[q>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 10:break c;default:break b}}e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}ip((e<<2)+d|0,0,c-e<<2)}return}ip((e<<2)+d|0,0,c-e<<2)}function Em(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0,t=p(0),u=0,w=0,y=0,z=0,A=0,B=0,C=p(0),D=0,E=0;d=F+ -64|0;F=d;h=i[a+80>>2];i[d+40>>2]=0;i[d+44>>2]=0;i[d+56>>2]=a;i[d+48>>2]=a;i[d+32>>2]=0;i[d+36>>2]=0;i[d+52>>2]=1065353216;Fm(d+32|0,h);h=i[a+80>>2];i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;a:{if(h){if(h>>>0>=1073741824){break a}c=h<<2;b=ho(c);i[d+16>>2]=b;f=c+b|0;i[d+24>>2]=f;ip(b,0,c);i[d+20>>2]=f}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;b:{c:{d:{if(!h){break d}D=d+40|0;h=0;while(1){c=0;b=i[d+48>>2];s=i[b+12>>2];q=i[b+8>>2];r=s-q|0;u=(r|0)<1;if(!u){b=q-s|0;b=((b|0)>(r|0)?b:r)>>>2|0;f=b>>>0>1?b:1;e=0;while(1){b=h;k=i[q+(e<<2)>>2];if(!j[k+84|0]){b=i[i[k+68>>2]+(h<<2)>>2]}c=b<<2^c<<1;e=e+1|0;if((f|0)!=(e|0)){continue}break}}e:{f:{g=i[d+36>>2];if(!g){break f}f=i[d+32>>2];z=xp(g)>>>0>1;b=g+ -1&c;g:{if(!z){break g}b=c;if(c>>>0>>0){break g}b=(c>>>0)%(g>>>0)|0}f=i[f+(b<<2)>>2];if(!f){break f}o=i[f>>2];if(!o){break f}n=b;E=g+ -1|0;y=i[d+56>>2];h:{while(1){i:{j:{e=i[o+4>>2];if((c|0)!=(e|0)){k:{if(!z){e=e&E;break k}if(e>>>0>>0){break k}e=(e>>>0)%(g>>>0)|0}if((e|0)==(n|0)){break j}break f}A=i[y+8>>2];b=i[y+12>>2]-A|0;if((b|0)<1){break h}f=i[o+8>>2];l=b>>>2|0;l=l>>>0>1?l:1;e=0;while(1){b=f;k=h;B=i[A+(e<<2)>>2];if(!j[B+84|0]){b=i[B+68>>2];k=i[b+(h<<2)>>2];b=i[b+(f<<2)>>2]}if((b|0)!=(k|0)){break j}e=e+1|0;if((l|0)!=(e|0)){continue}break}break i}o=i[o>>2];if(o){continue}break f}break}if(!o){break f}}i[i[d+16>>2]+(h<<2)>>2]=i[o+12>>2];break e}l:{if(u){c=0;break l}c=q-s|0;c=((c|0)>(r|0)?c:r)>>>2|0;f=c>>>0>1?c:1;c=0;e=0;while(1){b=h;k=i[q+(e<<2)>>2];if(!j[k+84|0]){b=i[i[k+68>>2]+(h<<2)>>2]}c=b<<2^c<<1;e=e+1|0;if((f|0)!=(e|0)){continue}break}}m:{n:{if(!g){break n}b=i[d+32>>2];q=xp(g)>>>0>1;l=g+ -1&c;o:{if(!q){break o}l=c;if(c>>>0>>0){break o}l=(c>>>0)%(g>>>0)|0}b=i[b+(l<<2)>>2];if(!b){break n}n=i[b>>2];if(!n){break n}r=g+ -1|0;o=i[d+56>>2];while(1){e=i[n+4>>2];if((c|0)!=(e|0)){p:{if(!q){e=e&r;break p}if(e>>>0>>0){break p}e=(e>>>0)%(g>>>0)|0}if((e|0)!=(l|0)){break n}}s=i[o+8>>2];b=i[o+12>>2]-s|0;if((b|0)<1){break m}f=i[n+8>>2];b=b>>>2|0;y=b>>>0>1?b:1;e=0;while(1){b=f;k=h;u=i[s+(e<<2)>>2];if(!j[u+84|0]){b=i[u+68>>2];k=i[b+(h<<2)>>2];b=i[b+(f<<2)>>2]}if((b|0)==(k|0)){e=e+1|0;if((y|0)==(e|0)){break m}continue}break}n=i[n>>2];if(n){continue}break}}b=ho(16);i[b+12>>2]=w;i[b+8>>2]=h;i[b+4>>2]=c;i[b>>2]=0;t=m[d+52>>2];C=p(i[d+44>>2]+1>>>0);q:{if(p(t*p(g>>>0))>>0<3|g<<1;k=d+32|0;t=p(v(p(C/t)));r:{if(t=p(0)){l=~~t>>>0;break r}l=0}Fm(k,f>>>0>>0?l:f);g=i[d+36>>2];l=g+ -1|0;if(!(g&l)){l=c&l;break q}if(c>>>0>>0){l=c;break q}l=(c>>>0)%(g>>>0)|0}f=i[d+32>>2]+(l<<2)|0;c=i[f>>2];s:{t:{if(!c){i[b>>2]=i[d+40>>2];i[d+40>>2]=b;i[f>>2]=D;c=i[b>>2];if(!c){break s}c=i[c+4>>2];f=g+ -1|0;u:{if(!(f&g)){c=c&f;break u}if(c>>>0>>0){break u}c=(c>>>0)%(g>>>0)|0}c=i[d+32>>2]+(c<<2)|0;break t}i[b>>2]=i[c>>2]}i[c>>2]=b}i[d+44>>2]=i[d+44>>2]+1}i[i[d+16>>2]+(h<<2)>>2]=w;w=w+1|0;c=i[d+4>>2];if((c|0)!=i[d+8>>2]){i[c>>2]=h;i[d+4>>2]=c+4;break e}b=i[d>>2];f=c-b|0;n=f>>2;k=n+1|0;if(k>>>0>=1073741824){break c}e=f>>1;k=n>>>0<536870911?e>>>0>>0?k:e:1073741823;c=0;v:{if(!k){break v}if(k>>>0>=1073741824){break b}c=ho(k<<2)}n=c+(n<<2)|0;i[n>>2]=h;k=c+(k<<2)|0;n=n+4|0;if((f|0)>=1){hp(c,b,f)}i[d+8>>2]=k;i[d+4>>2]=n;i[d>>2]=c;if(!b){break e}bp(b)}h=h+1|0;c=i[a+80>>2];if(h>>>0>>0){continue}break}if((c|0)!=(w|0)){I[i[i[a>>2]+24>>2]](a,d+16|0,d);i[a+80>>2]=w}a=i[d>>2];if(!a){break d}i[d+4>>2]=a;bp(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;bp(a)}h=i[d+40>>2];if(h){while(1){a=i[h>>2];bp(h);h=a;if(h){continue}break}}a=i[d+32>>2];i[d+32>>2]=0;if(a){bp(a)}F=d- -64|0;return}Ho();x()}za(16928);x()}Ho();x()}function ui(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=F-80|0;F=e;a:{b:{c:{d:{if(!j[a+352|0]){break d}c=1;d=I[i[i[a>>2]+40>>2]](a)|0;if((i[d+12>>2]-i[d+8>>2]|0)<1){break d}Rh(i[i[(I[i[i[a>>2]+40>>2]](a)|0)+8>>2]>>2],b);break c}c=b<<2;h=i[c+i[i[(I[i[i[a>>2]+40>>2]](a)|0)+56>>2]+84>>2]>>2];k=i[c+i[i[(I[i[i[a>>2]+40>>2]](a)|0)+4>>2]+8>>2]>>2];m=-1;d=i[a+176>>2];f=i[a+172>>2];e:{if((d|0)==(f|0)){break e}d=(d-f|0)/136|0;c=0;while(1){if(i[f+o(c,136)>>2]==(b|0)){d=f;m=c;break e}c=c+1|0;if(c>>>0>>0){continue}break}d=f}f:{g:{h:{i:{j:{k:{l:{m:{if(!j[a+352|0]){c=i[k+56>>2];if(!j[(o(m,136)+d|0)+28|0]|(h|0)!=1?!(!h|!c):0){break k}if(c){break m}}c=a+40|0;break l}c=i[a+12>>2];f=i[c+28>>2];c=i[c+24>>2];i[e+16>>2]=-1;n=d;d=o(m,136);h=n+d|0;Sh(h+116|0,f-c>>2,e+16|0);g[(d+i[a+172>>2]|0)+100|0]=0;c=h+104|0}h=0;if(_b(i[(I[i[i[a>>2]+40>>2]](a)|0)+48>>2])|i[k+56>>2]){break j}n:{if(!j[a+352|0]){h=1;break n}d=i[a+8>>2];d=i[d+12>>2]-i[d+8>>2]|0;h=(d|0)<5;if((d|0)>4){break j}}Th(e+16|0,a,c);break i}d=o(m,136)+d|0;c=i[d+56>>2];f=i[d+60>>2];i[e+16>>2]=-1;Sh(d+116|0,f-c>>2,e+16|0);c=ho(80);h=i[a+8>>2];i[c+12>>2]=0;i[c+16>>2]=0;i[c>>2]=12880;i[c+4>>2]=0;k=c+20|0;f=k;i[f>>2]=0;i[f+4>>2]=0;r=c+28|0;f=r;i[f>>2]=0;i[f+4>>2]=0;i[c+36>>2]=0;i[c+40>>2]=0;n=c+44|0;f=n;i[f>>2]=0;i[f+4>>2]=0;i[c+52>>2]=0;i[c+76>>2]=0;s=d+104|0;i[c+72>>2]=s;i[c+68>>2]=h;i[c+64>>2]=0;i[c+56>>2]=0;i[c+60>>2]=0;i[c+8>>2]=11784;t=e+52|0;f=t;i[f>>2]=0;i[f+4>>2]=0;u=e+44|0;f=u;i[f>>2]=0;i[f+4>>2]=0;p=e+36|0;f=p;i[f>>2]=0;i[f+4>>2]=0;f=e+28|0;i[f>>2]=0;i[f+4>>2]=0;i[e+68>>2]=0;i[e+72>>2]=0;i[e+60>>2]=0;i[e+64>>2]=0;i[e+20>>2]=0;i[e+24>>2]=0;i[e+16>>2]=11784;v=d+4|0;i[e+20>>2]=v;d=i[d+68>>2];q=i[d>>2];d=i[d+4>>2];g[e+79|0]=0;Uh(e+40|0,(d-q>>2>>>0)/3|0,e+79|0);d=i[e+20>>2];q=i[d+56>>2];d=i[d+52>>2];g[e+79|0]=0;Uh(t,q-d>>2,e+79|0);i[p>>2]=c;i[e+32>>2]=h;i[f>>2]=s;i[e+24>>2]=v;i[c+76>>2]=a+72;i[r>>2]=i[p>>2];d=i[f+4>>2];i[k>>2]=i[f>>2];i[k+4>>2]=d;d=i[e+24>>2];i[c+12>>2]=i[e+20>>2];i[c+16>>2]=d;d=c;h=i[u>>2];if(h){f=c+32|0;o:{if(h>>>0<=i[c+40>>2]<<5>>>0){k=h+ -1>>>5|0;h=i[f>>2];break o}f=i[f>>2];if(f){bp(f);i[c+40>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;h=i[e+44>>2]}if((h|0)<=-1){break h}k=h+ -1>>>5|0;f=k+1|0;h=ho(f<<2);i[c+40>>2]=f;i[c+36>>2]=0;i[c+32>>2]=h}jp(h,i[e+40>>2],(k<<2)+4|0);f=i[e+44>>2]}else{f=0}i[d+36>>2]=f;f=c;h=i[e+56>>2];if(h){p:{if(h>>>0<=i[c+52>>2]<<5>>>0){d=h+ -1>>>5|0;h=i[n>>2];break p}d=i[n>>2];if(d){bp(d);i[c+52>>2]=0;i[c+44>>2]=0;i[c+48>>2]=0;h=i[e+56>>2]}if((h|0)<=-1){break g}d=h+ -1>>>5|0;k=d+1|0;h=ho(k<<2);i[c+52>>2]=k;i[c+48>>2]=0;i[c+44>>2]=h}jp(h,i[e+52>>2],(d<<2)+4|0);d=i[e+56>>2]}else{d=0}i[f+48>>2]=d;Vh(c+56|0,i[e+64>>2],i[e+68>>2]);i[e+16>>2]=11784;d=i[e+64>>2];if(d){i[e+68>>2]=d;bp(d)}i[e+16>>2]=12036;d=i[e+52>>2];if(d){bp(d)}d=i[e+40>>2];if(d){bp(d)}h=0;break f}Wh(e+16|0,a,c)}c=i[e+16>>2];if(c){break f}c=0;break c}Ho();x()}Ho();x()}i[((m|0)==-1?a+68|0:(i[a+172>>2]+o(m,136)|0)+132|0)>>2]=h;d=ho(76);i[e+8>>2]=c;Mc(d,e+8|0,b);b=i[e+8>>2];i[e+8>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[a+188>>2];q:{if((b|0)!=i[a+192>>2]){i[b>>2]=m;i[a+188>>2]=b+4;break q}c=i[a+184>>2];f=b-c|0;k=f>>2;h=k+1|0;if(h>>>0>=1073741824){break b}n=f>>1;h=k>>>0<536870911?n>>>0>>0?h:n:1073741823;b=0;r:{if(!h){break r}if(h>>>0>=1073741824){break a}b=ho(h<<2)}k=b+(k<<2)|0;i[k>>2]=m;m=b+(h<<2)|0;h=k+4|0;if((f|0)>=1){hp(b,c,f)}i[a+192>>2]=m;i[a+188>>2]=h;i[a+184>>2]=b;if(!c){break q}bp(c)}a=I[i[i[a>>2]+40>>2]](a)|0;i[e>>2]=d;b=i[a+12>>2];s:{if(b>>>0>2]){i[e>>2]=0;i[b>>2]=d;i[a+12>>2]=b+4;break s}Xh(a+8|0,e)}a=i[e>>2];i[e>>2]=0;c=1;if(!a){break c}I[i[i[a>>2]+4>>2]](a)}F=e+80|0;return c|0}Ho();x()}za(11708);x()}function Qh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=F-80|0;F=e;a:{b:{c:{d:{if(!j[a+288|0]){break d}c=1;d=I[i[i[a>>2]+40>>2]](a)|0;if((i[d+12>>2]-i[d+8>>2]|0)<1){break d}Rh(i[i[(I[i[i[a>>2]+40>>2]](a)|0)+8>>2]>>2],b);break c}c=b<<2;h=i[c+i[i[(I[i[i[a>>2]+40>>2]](a)|0)+56>>2]+84>>2]>>2];k=i[c+i[i[(I[i[i[a>>2]+40>>2]](a)|0)+4>>2]+8>>2]>>2];m=-1;d=i[a+176>>2];f=i[a+172>>2];e:{if((d|0)==(f|0)){break e}d=(d-f|0)/136|0;c=0;while(1){if(i[f+o(c,136)>>2]==(b|0)){d=f;m=c;break e}c=c+1|0;if(c>>>0>>0){continue}break}d=f}f:{g:{h:{i:{j:{k:{l:{m:{if(!j[a+288|0]){c=i[k+56>>2];if(!j[(o(m,136)+d|0)+28|0]|(h|0)!=1?!(!h|!c):0){break k}if(c){break m}}c=a+40|0;break l}c=i[a+12>>2];f=i[c+28>>2];c=i[c+24>>2];i[e+16>>2]=-1;n=d;d=o(m,136);h=n+d|0;Sh(h+116|0,f-c>>2,e+16|0);g[(d+i[a+172>>2]|0)+100|0]=0;c=h+104|0}h=0;if(_b(i[(I[i[i[a>>2]+40>>2]](a)|0)+48>>2])|i[k+56>>2]){break j}n:{if(!j[a+288|0]){h=1;break n}d=i[a+8>>2];d=i[d+12>>2]-i[d+8>>2]|0;h=(d|0)<5;if((d|0)>4){break j}}Th(e+16|0,a,c);break i}d=o(m,136)+d|0;c=i[d+56>>2];f=i[d+60>>2];i[e+16>>2]=-1;Sh(d+116|0,f-c>>2,e+16|0);c=ho(80);h=i[a+8>>2];i[c+12>>2]=0;i[c+16>>2]=0;i[c>>2]=12880;i[c+4>>2]=0;k=c+20|0;f=k;i[f>>2]=0;i[f+4>>2]=0;r=c+28|0;f=r;i[f>>2]=0;i[f+4>>2]=0;i[c+36>>2]=0;i[c+40>>2]=0;n=c+44|0;f=n;i[f>>2]=0;i[f+4>>2]=0;i[c+52>>2]=0;i[c+76>>2]=0;s=d+104|0;i[c+72>>2]=s;i[c+68>>2]=h;i[c+64>>2]=0;i[c+56>>2]=0;i[c+60>>2]=0;i[c+8>>2]=11784;t=e+52|0;f=t;i[f>>2]=0;i[f+4>>2]=0;u=e+44|0;f=u;i[f>>2]=0;i[f+4>>2]=0;p=e+36|0;f=p;i[f>>2]=0;i[f+4>>2]=0;f=e+28|0;i[f>>2]=0;i[f+4>>2]=0;i[e+68>>2]=0;i[e+72>>2]=0;i[e+60>>2]=0;i[e+64>>2]=0;i[e+20>>2]=0;i[e+24>>2]=0;i[e+16>>2]=11784;v=d+4|0;i[e+20>>2]=v;d=i[d+68>>2];q=i[d>>2];d=i[d+4>>2];g[e+79|0]=0;Uh(e+40|0,(d-q>>2>>>0)/3|0,e+79|0);d=i[e+20>>2];q=i[d+56>>2];d=i[d+52>>2];g[e+79|0]=0;Uh(t,q-d>>2,e+79|0);i[p>>2]=c;i[e+32>>2]=h;i[f>>2]=s;i[e+24>>2]=v;i[c+76>>2]=a+72;i[r>>2]=i[p>>2];d=i[f+4>>2];i[k>>2]=i[f>>2];i[k+4>>2]=d;d=i[e+24>>2];i[c+12>>2]=i[e+20>>2];i[c+16>>2]=d;d=c;h=i[u>>2];if(h){f=c+32|0;o:{if(h>>>0<=i[c+40>>2]<<5>>>0){k=h+ -1>>>5|0;h=i[f>>2];break o}f=i[f>>2];if(f){bp(f);i[c+40>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;h=i[e+44>>2]}if((h|0)<=-1){break h}k=h+ -1>>>5|0;f=k+1|0;h=ho(f<<2);i[c+40>>2]=f;i[c+36>>2]=0;i[c+32>>2]=h}jp(h,i[e+40>>2],(k<<2)+4|0);f=i[e+44>>2]}else{f=0}i[d+36>>2]=f;f=c;h=i[e+56>>2];if(h){p:{if(h>>>0<=i[c+52>>2]<<5>>>0){d=h+ -1>>>5|0;h=i[n>>2];break p}d=i[n>>2];if(d){bp(d);i[c+52>>2]=0;i[c+44>>2]=0;i[c+48>>2]=0;h=i[e+56>>2]}if((h|0)<=-1){break g}d=h+ -1>>>5|0;k=d+1|0;h=ho(k<<2);i[c+52>>2]=k;i[c+48>>2]=0;i[c+44>>2]=h}jp(h,i[e+52>>2],(d<<2)+4|0);d=i[e+56>>2]}else{d=0}i[f+48>>2]=d;Vh(c+56|0,i[e+64>>2],i[e+68>>2]);i[e+16>>2]=11784;d=i[e+64>>2];if(d){i[e+68>>2]=d;bp(d)}i[e+16>>2]=12036;d=i[e+52>>2];if(d){bp(d)}d=i[e+40>>2];if(d){bp(d)}h=0;break f}Wh(e+16|0,a,c)}c=i[e+16>>2];if(c){break f}c=0;break c}Ho();x()}Ho();x()}i[((m|0)==-1?a+68|0:(i[a+172>>2]+o(m,136)|0)+132|0)>>2]=h;d=ho(76);i[e+8>>2]=c;Mc(d,e+8|0,b);b=i[e+8>>2];i[e+8>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[a+188>>2];q:{if((b|0)!=i[a+192>>2]){i[b>>2]=m;i[a+188>>2]=b+4;break q}c=i[a+184>>2];f=b-c|0;k=f>>2;h=k+1|0;if(h>>>0>=1073741824){break b}n=f>>1;h=k>>>0<536870911?n>>>0>>0?h:n:1073741823;b=0;r:{if(!h){break r}if(h>>>0>=1073741824){break a}b=ho(h<<2)}k=b+(k<<2)|0;i[k>>2]=m;m=b+(h<<2)|0;h=k+4|0;if((f|0)>=1){hp(b,c,f)}i[a+192>>2]=m;i[a+188>>2]=h;i[a+184>>2]=b;if(!c){break q}bp(c)}a=I[i[i[a>>2]+40>>2]](a)|0;i[e>>2]=d;b=i[a+12>>2];s:{if(b>>>0>2]){i[e>>2]=0;i[b>>2]=d;i[a+12>>2]=b+4;break s}Xh(a+8|0,e)}a=i[e>>2];i[e>>2]=0;c=1;if(!a){break c}I[i[i[a>>2]+4>>2]](a)}F=e+80|0;return c|0}Ho();x()}za(11708);x()}function kg(a,b,c,d,e){var f=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0;k=F-48|0;F=k;a:{b:{c:{d:{e:{if((b|0)<0){break e}if(!b){p=1;break e}if(b>>>0>=1073741824){break a}A=(c|0)>1?c:1;s=b<<2;f=ho(s);i[k+36>>2]=f;i[k+32>>2]=f;z=f+s|0;i[k+40>>2]=z;s=f;n=f;while(1){m=1;p=i[(B<<2)+a>>2];if((c|0)>1){while(1){v=i[(m+B<<2)+a>>2];p=p>>>0>>0?v:p;m=m+1|0;if((A|0)!=(m|0)){continue}break}}t=p?(r(p)^31)+1|0:1;f:{if(n>>>0>>0){i[n>>2]=t;n=n+4|0;i[k+36>>2]=n;break f}u=n-s|0;v=u>>2;q=v+1|0;if(q>>>0>=1073741824){break d}n=z-s|0;m=n>>1;n=n>>2>>>0<536870911?m>>>0>>0?q:m:1073741823;f=0;g:{if(!n){break g}if(n>>>0>=1073741824){break c}f=ho(n<<2)}m=f+(v<<2)|0;i[m>>2]=t;z=(n<<2)+f|0;n=m+4|0;if((u|0)>=1){hp(f,s,u)}i[k+40>>2]=z;i[k+36>>2]=n;i[k+32>>2]=f;if(s){bp(s)}s=f}w=p>>>0>w>>>0?p:w;B=A+B|0;if((B|0)<(b|0)){continue}break}m=0;i[k+24>>2]=0;i[k+16>>2]=0;i[k+20>>2]=0;p=0;n=n-f|0;if(n){c=n>>2;if(c>>>0>=1073741824){break b}m=ho(n);i[k+16>>2]=m;i[k+24>>2]=(c<<2)+m;s=k;if((n|0)<1){c=m}else{c=hp(m,f,n)+n|0}p=c;i[s+20>>2]=p}n=p-m|0;if(n){c=m-p|0;f=((c|0)>(n|0)?c:n)>>>2|0;c=(n|0)>-1?n:-1;c=o(f,(c|0)<1?c:1);s=c>>>0>1?c:1;p=0;while(1){f=i[(p<<2)+m>>2];c=f+y|0;if(c>>>0>>0){h=h+1|0}y=c;p=p+1|0;if((s|0)!=(p|0)){continue}break}}f=ag(m,n>>2,32,k);v=H;m=i[k>>2];c=i[k+16>>2];if(c){i[k+20>>2]=c;bp(c)}p=ag(a,b,w,k);n=H;u=i[k>>2];s=(w-u|0)/64|0;h:{i:{if(!d){break i}c=ho(32);i[k>>2]=c;i[k+4>>2]=22;i[k+8>>2]=-2147483616;g[c+22|0]=0;t=j[10820]|j[10821]<<8|(j[10822]<<16|j[10823]<<24);q=j[10816]|j[10817]<<8|(j[10818]<<16|j[10819]<<24);g[c+14|0]=q;g[c+15|0]=q>>>8;g[c+16|0]=q>>>16;g[c+17|0]=q>>>24;g[c+18|0]=t;g[c+19|0]=t>>>8;g[c+20|0]=t>>>16;g[c+21|0]=t>>>24;t=j[10814]|j[10815]<<8|(j[10816]<<16|j[10817]<<24);q=j[10810]|j[10811]<<8|(j[10812]<<16|j[10813]<<24);g[c+8|0]=q;g[c+9|0]=q>>>8;g[c+10|0]=q>>>16;g[c+11|0]=q>>>24;g[c+12|0]=t;g[c+13|0]=t>>>8;g[c+14|0]=t>>>16;g[c+15|0]=t>>>24;t=j[10806]|j[10807]<<8|(j[10808]<<16|j[10809]<<24);q=j[10802]|j[10803]<<8|(j[10804]<<16|j[10805]<<24);g[c|0]=q;g[c+1|0]=q>>>8;g[c+2|0]=q>>>16;g[c+3|0]=q>>>24;g[c+4|0]=t;g[c+5|0]=t>>>8;g[c+6|0]=t>>>16;g[c+7|0]=t>>>24;c=Sb(d,k);if(g[k+11|0]<=-1){bp(i[k>>2])}if(!c){break i}c=ho(32);i[k>>2]=c;i[k+4>>2]=22;i[k+8>>2]=-2147483616;g[c+22|0]=0;h=j[10820]|j[10821]<<8|(j[10822]<<16|j[10823]<<24);f=j[10816]|j[10817]<<8|(j[10818]<<16|j[10819]<<24);g[c+14|0]=f;g[c+15|0]=f>>>8;g[c+16|0]=f>>>16;g[c+17|0]=f>>>24;g[c+18|0]=h;g[c+19|0]=h>>>8;g[c+20|0]=h>>>16;g[c+21|0]=h>>>24;h=j[10814]|j[10815]<<8|(j[10816]<<16|j[10817]<<24);f=j[10810]|j[10811]<<8|(j[10812]<<16|j[10813]<<24);g[c+8|0]=f;g[c+9|0]=f>>>8;g[c+10|0]=f>>>16;g[c+11|0]=f>>>24;g[c+12|0]=h;g[c+13|0]=h>>>8;g[c+14|0]=h>>>16;g[c+15|0]=h>>>24;h=j[10806]|j[10807]<<8|(j[10808]<<16|j[10809]<<24);f=j[10802]|j[10803]<<8|(j[10804]<<16|j[10805]<<24);g[c|0]=f;g[c+1|0]=f>>>8;g[c+2|0]=f>>>16;g[c+3|0]=f>>>24;g[c+4|0]=h;g[c+5|0]=h>>>8;g[c+6|0]=h>>>16;g[c+7|0]=h>>>24;m=_j(d,k);if(g[k+11|0]>-1){break h}bp(i[k>>2]);break h}if((r(w>>>0>1?w:1)^30)>>>0<18){c=f;f=up(y,h,A,0);h=c+f|0;c=H+v|0;c=h>>>0>>0?c+1|0:c;y=h;h=m<<3;f=h>>31;m=h;h=f<<1|h>>>31;f=m<<1;m=y+f|0;c=c+h|0;c=m>>>0>>0?c+1|0:c;h=s+u<<3;f=h;s=f>>31;y=m;q=f;h=u<<3;f=h;m=f+p|0;h=(f>>31)+n|0;h=m>>>0>>0?h+1|0:h;f=m;m=q+f|0;h=h+s|0;h=m>>>0>>0?h+1|0:h;m=(c|0)>(h|0)?1:(c|0)>=(h|0)?y>>>0>=m>>>0:0}else{m=0}}g[k|0]=m;c=i[e+20>>2];if((c|0)<0?1:(c|0)<=0?l[e+16>>2]<=0:0){ca(e,i[e+4>>2],k,k+1|0)}p=0;j:{k:{switch(m|0){case 0:p=lg(a,b,A,k+32|0,e);break j;case 1:break k;default:break j}}p=mg(a,b,w,u,d,e)}a=i[k+32>>2];if(!a){break e}i[k+36>>2]=a;bp(a)}F=k+48|0;return p}Ho();x()}za(10859);x()}Ho();x()}za(10859);x()}function Si(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;a:{b:{c:{d:{e:{f:{g:{if(i[a+92>>2]==i[a+88>>2]){break g}d=i[a+52>>2];h:{if((d|0)!=i[a+56>>2]){i[d>>2]=b;i[a+52>>2]=d+4;break h}h=i[a+48>>2];g=d-h|0;f=g>>2;c=f+1|0;if(c>>>0>=1073741824){break a}e=g>>1;c=f>>>0<536870911?e>>>0>>0?c:e:1073741823;d=0;i:{if(!c){break i}if(c>>>0>=1073741824){break b}d=ho(c<<2)}e=d+(f<<2)|0;i[e>>2]=b;c=d+(c<<2)|0;e=e+4|0;if((g|0)>=1){hp(d,h,g)}i[a+56>>2]=c;i[a+52>>2]=e;i[a+48>>2]=d;if(!h){break h}bp(h)}i[a+84>>2]=0;e=-1;d=-1;j:{if((b|0)==-1){break j}f=i[a+4>>2];c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){e=i[i[f>>2]+(c<<2)>>2]}c=((b>>>0)%3|0?-1:2)+b|0;if((c|0)==-1){break j}d=i[i[f>>2]+(c<<2)>>2]}c=i[a+36>>2];h=c+(e>>>3&536870908)|0;g=i[h>>2];f=1<>2]=f|g;f=a+8|0;if((b|0)!=-1){c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0}else{c=-1}Ti(f,e,c);c=i[a+36>>2]}f=(d>>>3&536870908)+c|0;c=i[f>>2];e=1<>2]=c|e;c=a+8|0;e=-1;k:{if((b|0)==-1){break k}e=b+ -1|0;if((b>>>0)%3|0){break k}e=b+2|0}Ti(c,d,e)}e=-1;e=(b|0)!=-1?i[i[i[a+4>>2]>>2]+(b<<2)>>2]:e;f=i[a+36>>2]+(e>>>3&536870908)|0;c=i[f>>2];d=1<>2]=c|d;Ti(a+8|0,e,b)}c=i[a+84>>2];if((c|0)>2){break g}q=a+8|0;while(1){b=o(c,12)+a|0;e=b+52|0;d=i[e>>2];if((d|0)==i[b+48>>2]){c=c+1|0;if((c|0)!=3){continue}break g}d=d+ -4|0;b=i[d>>2];i[e>>2]=d;i[a+84>>2]=c;if((b|0)==-1){break g}e=i[a+24>>2];d=(b>>>0)/3|0;l:{if(i[e+(d>>>3&268435452)>>2]>>>d&1){break l}m:{while(1){g=(b>>>0)/3|0;d=(g>>>3&268435452)+e|0;i[d>>2]=i[d>>2]|1<>2]>>2]+(b<<2)>>2]:e;f=i[a+36>>2]+(e>>>3&536870908)|0;c=i[f>>2];d=1<>2]=c|d;Ti(q,e,b)}if((b|0)==-1){break m}h=i[a+4>>2];d=-1;e=-1;c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){e=i[i[h+12>>2]+(c<<2)>>2]}b=(b-o(g,3)|0?-1:2)+b|0;if((b|0)!=-1){d=i[i[h+12>>2]+(b<<2)>>2]}g=(d|0)==-1;f=(d>>>0)/3|0;c=(e>>>0)/3|0;n:{o:{p:{q:{b=(e|0)==-1;if(!b){b=b?-1:c;b=i[i[a+24>>2]+(b>>>3&536870908)>>2]&1<>2]+(b>>>3&536870908)>>2]>>>b&1){break r}b=0;c=i[i[h>>2]+(d<<2)>>2];if(!(i[i[a+36>>2]+(c>>>3&536870908)>>2]>>>c&1)){b=i[a+88>>2]+(c<<2)|0;c=i[b>>2];i[b>>2]=c+1;b=(c|0)<1?2:1}if(!(!p|(b|0)>i[a+84>>2])){b=d;e=i[a+24>>2];continue}c=o(b,12)+a|0;k=c+52|0;f=i[k>>2];m=c+56|0;s:{if((f|0)!=i[m>>2]){i[f>>2]=d;i[k>>2]=f+4;break s}h=c+48|0;n=i[h>>2];j=f-n|0;l=j>>2;g=l+1|0;if(g>>>0>=1073741824){break f}f=j>>1;f=l>>>0<536870911?f>>>0>>0?g:f:1073741823;c=0;t:{if(!f){break t}if(f>>>0>=1073741824){break e}c=ho(f<<2)}g=c+(l<<2)|0;i[g>>2]=d;f=c+(f<<2)|0;d=g+4|0;if((j|0)>=1){hp(c,n,j)}i[h>>2]=c;i[k>>2]=d;i[m>>2]=f;if(!n){break s}bp(n)}if(i[a+84>>2]<=(b|0)){break r}i[a+84>>2]=b}if(p){break m}b=-1;if((e|0)==-1){break n}}b=i[i[i[a+4>>2]>>2]+(e<<2)>>2]}d=0;if(!(i[i[a+36>>2]+(b>>>3&536870908)>>2]>>>b&1)){b=i[a+88>>2]+(b<<2)|0;d=i[b>>2];i[b>>2]=d+1;d=(d|0)<1?2:1}if((d|0)<=i[a+84>>2]){b=e;e=i[a+24>>2];continue}break}b=o(d,12)+a|0;l=b+52|0;c=i[l>>2];h=b+56|0;u:{if((c|0)!=i[h>>2]){i[c>>2]=e;i[l>>2]=c+4;break u}g=b+48|0;j=i[g>>2];k=c-j|0;m=k>>2;f=m+1|0;if(f>>>0>=1073741824){break d}c=k>>1;c=m>>>0<536870911?c>>>0>>0?f:c:1073741823;b=0;v:{if(!c){break v}if(c>>>0>=1073741824){break c}b=ho(c<<2)}f=b+(m<<2)|0;i[f>>2]=e;c=b+(c<<2)|0;e=f+4|0;if((k|0)>=1){hp(b,j,k)}i[g>>2]=b;i[l>>2]=e;i[h>>2]=c;if(!j){break u}bp(j)}c=i[a+84>>2];if((c|0)<=(d|0)){break l}i[a+84>>2]=d;c=d;break l}c=i[a+84>>2]}if((c|0)<3){continue}break}}return 1}Ho();x()}za(11708);x()}Ho();x()}za(11708);x()}za(11708);x()}Ho();x()}function tn(a,b,c,d,e,f,g,h,j){var k=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0;m=F-112|0;F=m;n=h;o=j&2147483647;l=c+ -1|0;k=b+ -1|0;if((k|0)!=-1){l=l+1|0}p=k;t=(k|0)==-1&(l|0)==-1;q=e&2147483647;k=q;s=d;l=(c|0)==(l|0)&p>>>0>>0|l>>>0>>0;p=d+l|0;if(p>>>0>>0){k=k+1|0}l=p+ -1|0;k=k+ -1|0;k=(l|0)!=-1?k+1|0:k;a:{b:{if(!((l|0)==-1&(k|0)==2147418111?t:k>>>0>2147418111)){l=g+ -1|0;k=f+ -1|0;if((k|0)!=-1){l=l+1|0}p=k;t=(k|0)!=-1|(l|0)!=-1;k=o;l=(g|0)==(l|0)&p>>>0>>0|l>>>0>>0;p=l+n|0;if(p>>>0>>0){k=k+1|0}l=p+ -1|0;k=k+ -1|0;k=(l|0)!=-1?k+1|0:k;if((l|0)==-1&(k|0)==2147418111?t:(k|0)==2147418111&(l|0)!=-1|k>>>0<2147418111){break b}}if(!(!s&(q|0)==2147418112?!(b|c):(q|0)==2147418112&s>>>0<0|q>>>0<2147418112)){h=d;j=e|32768;f=b;g=c;break a}if(!(!n&(o|0)==2147418112?!(f|g):(o|0)==2147418112&n>>>0<0|o>>>0<2147418112)){j=j|32768;break a}if(!(b|s|(q^2147418112|c))){k=d;d=!(b^f|d^h|(c^g|e^j^-2147483648));h=d?0:k;j=d?2147450880:e;f=d?0:b;g=d?0:c;break a}if(!(f|n|(o^2147418112|g))){break a}if(!(b|s|(c|q))){if(f|n|(g|o)){break a}f=b&f;g=c&g;h=d&h;j=e&j;break a}if(f|n|(g|o)){break b}f=b;g=c;h=d;j=e;break a}k=(n|0)==(s|0)&(o|0)==(q|0)?(c|0)==(g|0)&f>>>0>b>>>0|g>>>0>c>>>0:(o|0)==(q|0)&n>>>0>s>>>0|o>>>0>q>>>0;q=k?f:b;l=k?g:c;n=k?j:e;s=n;p=k?h:d;n=n&65535;e=k?e:j;u=e;h=k?d:h;t=e>>>16&32767;o=s>>>16&32767;if(!o){d=!(n|p);e=d<<6;j=r(d?q:p)+32|0;d=r(d?l:n);d=e+((d|0)==32?j:d)|0;sn(m+96|0,q,l,p,n,d+ -15|0);p=i[m+104>>2];n=i[m+108>>2];q=i[m+96>>2];o=16-d|0;l=i[m+100>>2]}f=k?b:f;g=k?c:g;j=u&65535;if(!t){b=!(h|j);c=b<<6;d=r(b?f:h)+32|0;b=r(b?g:j);b=c+((b|0)==32?d:b)|0;sn(m+80|0,f,g,h,j,b+ -15|0);t=16-b|0;h=i[m+88>>2];j=i[m+92>>2];g=i[m+84>>2];f=i[m+80>>2]}b=h;k=j<<3|b>>>29;h=b<<3|g>>>29;j=k|524288;b=p;d=n<<3|b>>>29;e=b<<3|l>>>29;p=d;n=s^u;b=f;k=g<<3|b>>>29;b=b<<3;c=k;f=o-t|0;d=b;c:{if(!f){break c}if(f>>>0>127){h=0;j=0;k=0;d=1;break c}sn(m- -64|0,b,c,h,j,128-f|0);vn(m+48|0,b,c,h,j,f);h=i[m+56>>2];j=i[m+60>>2];k=i[m+52>>2];d=i[m+48>>2]|((i[m+64>>2]|i[m+72>>2])!=0|(i[m+68>>2]|i[m+76>>2])!=0)}f=k;p=p|524288;b=q;k=l<<3|b>>>29;c=b<<3;d:{if((n|0)<-1?1:(n|0)<=-1){l=d;b=c-d|0;n=h;q=e-h|0;d=(f|0)==(k|0)&c>>>0>>0|k>>>0>>0;h=q-d|0;c=k-((c>>>0>>0)+f|0)|0;j=(p-((e>>>0>>0)+j|0)|0)-(q>>>0>>0)|0;if(!(b|h|(c|j))){f=0;g=0;h=0;j=0;break a}if(j>>>0>524287){break d}f=b;d=!(h|j);e=d<<6;g=r(d?b:h)+32|0;b=r(d?c:j);b=e+((b|0)==32?g:b)|0;b=b+ -12|0;sn(m+32|0,f,c,h,j,b);o=o-b|0;h=i[m+40>>2];j=i[m+44>>2];b=i[m+32>>2];c=i[m+36>>2];break d}k=f+k|0;b=d;c=b+c|0;if(c>>>0>>0){k=k+1|0}b=c;c=k;g=(f|0)==(k|0)&b>>>0>>0|k>>>0>>0;l=j+p|0;d=e+h|0;if(d>>>0>>0){l=l+1|0}f=d;e=g+d|0;d=l;h=e;j=h>>>0>>0?d+1|0:d;if(!(j&1048576)){break d}b=b&1|((c&1)<<31|b>>>1);c=h<<31|c>>>1;o=o+1|0;h=(j&1)<<31|h>>>1;j=j>>>1|0}l=0;n=s&-2147483648;if((o|0)>=32767){h=l;j=n|2147418112;f=0;g=0;break a}e=0;e:{if((o|0)>0){e=o;break e}sn(m+16|0,b,c,h,j,o+127|0);vn(m,b,c,h,j,1-o|0);b=i[m>>2]|((i[m+16>>2]|i[m+24>>2])!=0|(i[m+20>>2]|i[m+28>>2])!=0);c=i[m+4>>2];h=i[m+8>>2];j=i[m+12>>2]}f=h<<29;d=c>>>3|0;c=(c&7)<<29|b>>>3;d=d|f;k=d;b=b&7;f=b>>>0>4;g=f+c|0;if(g>>>0>>0){k=k+1|0}f=g;g=k;c=(d|0)==(k|0)&f>>>0>>0|k>>>0>>0;d=l|((j&7)<<29|h>>>3);k=n|j>>>3&65535|e<<16;c=d+c|0;if(c>>>0>>0){k=k+1|0}h=c;j=k;f:{if((b|0)==4){b=0;d=g+b|0;c=f&1;e=f+c|0;if(e>>>0>>0){d=d+1|0}f=e;g=d;b=(b|0)==(d|0)&f>>>0>>0|d>>>0>>0;c=b+h|0;if(c>>>0>>0){k=k+1|0}h=c;j=k;break f}if(!b){break a}}}i[a>>2]=f;i[a+4>>2]=g;i[a+8>>2]=h;i[a+12>>2]=j;F=m+112|0}function Ze(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;k=F-48|0;F=k;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;r=a+96|0;pf(r);d=i[a+40>>2];e=i[d>>2];f=i[d+4>>2];i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;a:{g=f-e|0;if((g|0)<1){break a}j=i[d>>2];if((j|0)!=i[d+4>>2]){s=a+8|0;t=a+44|0;d=e-f|0;d=((d|0)>(g|0)?d:g)>>>2|0;u=d>>>0>1?d:1;v=c+4|0;while(1){le(t,i[(o<<2)+j>>2],k+8|0);f=i[k+12>>2];g=f>>31;e=i[k+8>>2];l=e>>31;j=i[k+16>>2];h=j>>31;d=0;h=h^j+h;g=h+((g^f+g)+(l^e+l)|0)|0;if(g>>>0>>0){d=1}l=g;b:{if(!(d|g)){n=i[a+92>>2];g=n;break b}n=i[a+92>>2];h=n;q=h>>31;g=vp(up(h,q,e,e>>31),H,l,d);f=vp(up(h,q,f,f>>31),H,l,d);if((j|0)>=0){j=(((g|0)<0?g:0-g|0)+n|0)+((f|0)<0?f:0-f|0)|0;break b}d=g>>31;e=(d+g^d)-n|0;d=f>>31;j=e+(d+f^d)|0}c:{if((g|0)>=0){e=f+n|0;h=j+n|0;break c}d:{if((f|0)<=-1){d=j>>31;e=d+j^d;break d}e=i[a+84>>2]+((j|0)<0?j:0-j|0)|0}if((j|0)<=-1){d=f>>31;h=d+f^d;break c}h=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}e:{if(!(e|h)){d=i[a+84>>2];h=d;l=d;break e}d=i[a+84>>2];f:{g:{h:{i:{if(!e){if((d|0)==(h|0)){d=h;l=d;break e}l=0;if(d|h){break i}h=0;break e}if((d|0)!=(e|0)|h){break h}d=e;h=d;l=d;break e}if((n|0)<(h|0)){h=(n<<1)-h|0;break e}if(d){break f}break g}if((d|0)!=(e|0)){break f}}d=e;if((n|0)<=(h|0)){break f}h=(n<<1)-h|0;l=e;break e}if(!((d|0)!=(h|0)|(n|0)<=(e|0))){l=(n<<1)-e|0;break e}if(h){l=e;break e}h=0;if((n|0)>=(e|0)){l=e;break e}l=(n<<1)-e|0}e=0-j|0;i[k+16>>2]=e;q=0-f|0;i[k+12>>2]=q;i[k+8>>2]=0-g;j:{k:{l:{if((g|0)<=0){g=n-f|0;e=n-j|0;break l}g=j>>31;w=((j|0)<0?j:e)+d|0;e=(f|0)>0;g=e?g+j^g:w;if((j|0)>=1){e=f>>31;e=e+f^e;break l}e=(e?q:f)+d|0}if(!(e|g)){break k}m:{n:{o:{if(!g){if((d|0)==(e|0)){break k}f=0;if(d|e){break o}e=0;break j}if((d|0)==(g|0)?!e:0){break k}if((d|0)==(g|0)){break n}break m}if((n|0)<(e|0)){e=(n<<1)-e|0;break j}if(d){break m}}d=g;if((n|0)<=(e|0)){break m}e=(n<<1)-e|0;f=g;break j}if(!((d|0)!=(e|0)|(n|0)<=(g|0))){f=(n<<1)-g|0;break j}if(e){f=g;break j}e=0;if((n|0)>=(g|0)){f=g;break j}f=(n<<1)-g|0;break j}e=d;f=d}d=(o<<3)+b|0;g=i[d+4>>2];i[k+32>>2]=i[d>>2];i[k+36>>2]=g;i[k+28>>2]=h;i[k+24>>2]=l;ze(k+40|0,s,k+32|0,k+24|0);g=i[k+44>>2];j=i[k+40>>2];l=i[d+4>>2];i[k+32>>2]=i[d>>2];i[k+36>>2]=l;i[k+28>>2]=e;i[k+24>>2]=f;ze(k+40|0,s,k+32|0,k+24|0);f=i[k+44>>2];d=i[k+40>>2];e=i[a+92>>2];p:{if((e|0)<(j|0)){j=j-i[a+80>>2]|0;break p}if((j|0)>=(0-e|0)){break p}j=i[a+80>>2]+j|0}q:{if((e|0)<(g|0)){g=g-i[a+80>>2]|0;break q}if((g|0)>=(0-e|0)){break q}g=i[a+80>>2]+g|0}r:{if((e|0)<(d|0)){d=d-i[a+80>>2]|0;break r}if((d|0)>=(0-e|0)){break r}d=i[a+80>>2]+d|0}s:{if((e|0)<(f|0)){f=f-i[a+80>>2]|0;break s}if((f|0)>=(0-e|0)){break s}f=i[a+80>>2]+f|0}e=o<<1;l=g>>31;l=l+g^l;h=j>>31;h=h+j^h;n=h>>>0>(l^2147483647)>>>0?2147483647:l+h|0;l=f>>31;l=l+f^l;h=d>>31;h=h+d^h;t:{if(n>>>0<(h>>>0>(l^2147483647)>>>0?2147483647:l+h|0)>>>0){qf(r,0);d=(e<<2)+c|0;if((j|0)<=-1){j=i[a+80>>2]+j|0}i[d>>2]=j;if((g|0)>-1){f=g;break t}f=i[a+80>>2]+g|0;break t}qf(r,1);g=(e<<2)+c|0;if((d|0)<=-1){d=i[a+80>>2]+d|0}i[g>>2]=d;if((f|0)>-1){break t}f=i[a+80>>2]+f|0}i[(e<<2)+v>>2]=f;o=o+1|0;if((u|0)==(o|0)){break a}d=i[a+40>>2];j=i[d>>2];if(i[d+4>>2]-j>>2>>>0>o>>>0){continue}break}}Io();x()}F=k+48|0;return 1}function Pe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;k=F-48|0;F=k;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;r=a+96|0;pf(r);d=i[a+40>>2];e=i[d>>2];f=i[d+4>>2];i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;a:{g=f-e|0;if((g|0)<1){break a}j=i[d>>2];if((j|0)!=i[d+4>>2]){s=a+8|0;t=a+44|0;d=e-f|0;d=((d|0)>(g|0)?d:g)>>>2|0;u=d>>>0>1?d:1;v=c+4|0;while(1){Yd(t,i[(o<<2)+j>>2],k+8|0);f=i[k+12>>2];g=f>>31;e=i[k+8>>2];l=e>>31;j=i[k+16>>2];h=j>>31;d=0;h=h^j+h;g=h+((g^f+g)+(l^e+l)|0)|0;if(g>>>0>>0){d=1}l=g;b:{if(!(d|g)){n=i[a+92>>2];g=n;break b}n=i[a+92>>2];h=n;q=h>>31;g=vp(up(h,q,e,e>>31),H,l,d);f=vp(up(h,q,f,f>>31),H,l,d);if((j|0)>=0){j=(((g|0)<0?g:0-g|0)+n|0)+((f|0)<0?f:0-f|0)|0;break b}d=g>>31;e=(d+g^d)-n|0;d=f>>31;j=e+(d+f^d)|0}c:{if((g|0)>=0){e=f+n|0;h=j+n|0;break c}d:{if((f|0)<=-1){d=j>>31;e=d+j^d;break d}e=i[a+84>>2]+((j|0)<0?j:0-j|0)|0}if((j|0)<=-1){d=f>>31;h=d+f^d;break c}h=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}e:{if(!(e|h)){d=i[a+84>>2];h=d;l=d;break e}d=i[a+84>>2];f:{g:{h:{i:{if(!e){if((d|0)==(h|0)){d=h;l=d;break e}l=0;if(d|h){break i}h=0;break e}if((d|0)!=(e|0)|h){break h}d=e;h=d;l=d;break e}if((n|0)<(h|0)){h=(n<<1)-h|0;break e}if(d){break f}break g}if((d|0)!=(e|0)){break f}}d=e;if((n|0)<=(h|0)){break f}h=(n<<1)-h|0;l=e;break e}if(!((d|0)!=(h|0)|(n|0)<=(e|0))){l=(n<<1)-e|0;break e}if(h){l=e;break e}h=0;if((n|0)>=(e|0)){l=e;break e}l=(n<<1)-e|0}e=0-j|0;i[k+16>>2]=e;q=0-f|0;i[k+12>>2]=q;i[k+8>>2]=0-g;j:{k:{l:{if((g|0)<=0){g=n-f|0;e=n-j|0;break l}g=j>>31;w=((j|0)<0?j:e)+d|0;e=(f|0)>0;g=e?g+j^g:w;if((j|0)>=1){e=f>>31;e=e+f^e;break l}e=(e?q:f)+d|0}if(!(e|g)){break k}m:{n:{o:{if(!g){if((d|0)==(e|0)){break k}f=0;if(d|e){break o}e=0;break j}if((d|0)==(g|0)?!e:0){break k}if((d|0)==(g|0)){break n}break m}if((n|0)<(e|0)){e=(n<<1)-e|0;break j}if(d){break m}}d=g;if((n|0)<=(e|0)){break m}e=(n<<1)-e|0;f=g;break j}if(!((d|0)!=(e|0)|(n|0)<=(g|0))){f=(n<<1)-g|0;break j}if(e){f=g;break j}e=0;if((n|0)>=(g|0)){f=g;break j}f=(n<<1)-g|0;break j}e=d;f=d}d=(o<<3)+b|0;g=i[d+4>>2];i[k+32>>2]=i[d>>2];i[k+36>>2]=g;i[k+28>>2]=h;i[k+24>>2]=l;ze(k+40|0,s,k+32|0,k+24|0);g=i[k+44>>2];j=i[k+40>>2];l=i[d+4>>2];i[k+32>>2]=i[d>>2];i[k+36>>2]=l;i[k+28>>2]=e;i[k+24>>2]=f;ze(k+40|0,s,k+32|0,k+24|0);f=i[k+44>>2];d=i[k+40>>2];e=i[a+92>>2];p:{if((e|0)<(j|0)){j=j-i[a+80>>2]|0;break p}if((j|0)>=(0-e|0)){break p}j=i[a+80>>2]+j|0}q:{if((e|0)<(g|0)){g=g-i[a+80>>2]|0;break q}if((g|0)>=(0-e|0)){break q}g=i[a+80>>2]+g|0}r:{if((e|0)<(d|0)){d=d-i[a+80>>2]|0;break r}if((d|0)>=(0-e|0)){break r}d=i[a+80>>2]+d|0}s:{if((e|0)<(f|0)){f=f-i[a+80>>2]|0;break s}if((f|0)>=(0-e|0)){break s}f=i[a+80>>2]+f|0}e=o<<1;l=g>>31;l=l+g^l;h=j>>31;h=h+j^h;n=h>>>0>(l^2147483647)>>>0?2147483647:l+h|0;l=f>>31;l=l+f^l;h=d>>31;h=h+d^h;t:{if(n>>>0<(h>>>0>(l^2147483647)>>>0?2147483647:l+h|0)>>>0){qf(r,0);d=(e<<2)+c|0;if((j|0)<=-1){j=i[a+80>>2]+j|0}i[d>>2]=j;if((g|0)>-1){f=g;break t}f=i[a+80>>2]+g|0;break t}qf(r,1);g=(e<<2)+c|0;if((d|0)<=-1){d=i[a+80>>2]+d|0}i[g>>2]=d;if((f|0)>-1){break t}f=i[a+80>>2]+f|0}i[(e<<2)+v>>2]=f;o=o+1|0;if((u|0)==(o|0)){break a}d=i[a+40>>2];j=i[d>>2];if(i[d+4>>2]-j>>2>>>0>o>>>0){continue}break}}Io();x()}F=k+48|0;return 1}function le(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0;f=F-96|0;F=f;e=i[a+16>>2];g[f+92|0]=1;i[f+88>>2]=b;i[f+84>>2]=b;i[f+80>>2]=e;d=-1;d=(b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:d;h=i[a+20>>2];e=i[h>>2];a:{b:{if(i[h+4>>2]-e>>2>>>0>d>>>0){e=i[i[a+8>>2]+(i[e+(d<<2)>>2]<<2)>>2];d=i[a+4>>2];if(!j[d+84|0]){e=i[i[d+68>>2]+(e<<2)>>2]}i[f+72>>2]=0;i[f+76>>2]=0;h=f- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;Qd(d,e,g[d+24|0],f+56|0);if((b|0)!=-1){d=b+1|0;h=(d>>>0)%3|0?d:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;n=f+48|0;o=f+40|0;while(1){e=h;d=m;c:{if(!i[a+28>>2]){break c}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break c}d=b+2|0}b=-1;b=(e|0)!=-1?i[i[i[a+16>>2]>>2]+(e<<2)>>2]:b;k=i[a+20>>2];e=i[k>>2];if(i[k+4>>2]-e>>2>>>0<=b>>>0){break b}e=i[i[a+8>>2]+(i[e+(b<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}i[n>>2]=0;i[n+4>>2]=0;i[o>>2]=0;i[o+4>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;Qd(b,e,g[b+24|0],f+32|0);b=-1;b=(d|0)!=-1?i[i[i[a+16>>2]>>2]+(d<<2)>>2]:b;e=i[a+20>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0<=b>>>0){break a}d=i[i[a+8>>2]+(i[d+(b<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;k=f+16|0;i[k>>2]=0;i[k+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Qd(b,d,g[b+24|0],f+8|0);d=i[f+8>>2];b=i[f+56>>2];s=d-b|0;y=i[f+60>>2];t=i[f+12>>2]-(y+(d>>>0>>0)|0)|0;z=i[f+40>>2];d=i[f+64>>2];D=z-d|0;A=i[f+68>>2];z=i[f+44>>2]-(A+(z>>>0>>0)|0)|0;B=up(s,t,D,z);C=l-B|0;u=u-(H+(l>>>0>>0)|0)|0;l=i[k>>2];B=l-d|0;k=i[k+4>>2]-((l>>>0>>0)+A|0)|0;l=i[f+32>>2];A=l-b|0;y=i[f+36>>2]-((l>>>0>>0)+y|0)|0;d=up(B,k,A,y);l=d+C|0;b=H+u|0;b=l>>>0>>0?b+1|0:b;u=b;E=p;w=s;G=t;b=i[f+48>>2];p=i[f+72>>2];d=p;t=b-d|0;s=i[f+76>>2];C=i[f+52>>2]-(s+(b>>>0>>0)|0)|0;w=up(w,G,t,C);d=E+w|0;b=H+q|0;b=d>>>0>>0?b+1|0:b;q=i[e>>2];w=q-p|0;e=i[e+4>>2]-((q>>>0

>>0)+s|0)|0;q=up(w,e,A,y);p=d-q|0;q=b-(H+(d>>>0>>0)|0)|0;b=up(B,k,t,C);d=r-b|0;b=v-(H+(r>>>0>>0)|0)|0;v=up(w,e,D,z);r=v+d|0;b=H+b|0;b=r>>>0>>0?b+1|0:b;v=b;me(f+80|0);b=i[f+88>>2];if((b|0)!=-1){continue}break}}d=v;b=d>>31;d=d>>31;h=b;b=v+b|0;m=d+r|0;if(m>>>0>>0){b=b+1|0}o=d^m;n=b^h;t=-1;e=2147483647;d=q;b=d>>31;d=d>>31;m=b;b=q+b|0;k=d+p|0;if(k>>>0>>0){b=b+1|0}d=d^k;b=b^m;h=b;m=d^-1;b=b^2147483647;d:{if(!i[a+28>>2]){if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break d}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}d=b;h=a;b=u;e=b>>31;o=b>>31;b=o+b|0;k=e+l|0;if(k>>>0>>0){b=b+1|0}e=e^k;m=b^o;n=e+h|0;b=n;h=m^2147483647;a=(h|0)==(d|0)&a>>>0>(e^-1)>>>0|d>>>0>h>>>0;d=a?0:0;b=a?-1:b;a=b;if((b|0)<536870912?1:(b|0)<=536870912?d>>>0<1:0){break d}b=(a|0)/536870912|0;a=b;b=b>>31;l=vp(l,u,a,b);p=vp(p,q,a,b);r=vp(r,v,a,b);break d}e:{if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break e}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}m=b;n=a;d=b;h=u;b=h>>31;h=h>>31;k=b;b=u+b|0;s=h+l|0;if(s>>>0>>0){b=b+1|0}h=h^s;b=b^k;o=b;b=b^2147483647;if((b|0)==(d|0)&n>>>0>(h^-1)>>>0|d>>>0>b>>>0){break e}b=m+o|0;d=a+h|0;if(d>>>0>>0){b=b+1|0}t=d;e=b;if(!b&d>>>0<536870913|b>>>0<0){break d}}a=(e&536870911)<<3|t>>>29;b=e>>>29|0;l=vp(l,u,a,b);p=vp(p,q,a,b);r=vp(r,v,a,b)}i[c+8>>2]=l;i[c+4>>2]=p;i[c>>2]=r;F=f+96|0;return}Io();x()}Io();x()}Io();x()}function Yd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0;f=F-96|0;F=f;d=i[a+16>>2];g[f+92|0]=1;i[f+88>>2]=b;i[f+84>>2]=b;i[f+80>>2]=d;h=i[a+20>>2];e=i[h>>2];a:{b:{d=i[i[d+28>>2]+(b<<2)>>2];if(i[h+4>>2]-e>>2>>>0>d>>>0){d=i[i[a+8>>2]+(i[e+(d<<2)>>2]<<2)>>2];e=i[a+4>>2];if(!j[e+84|0]){d=i[i[e+68>>2]+(d<<2)>>2]}i[f+72>>2]=0;i[f+76>>2]=0;h=f- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;Qd(e,d,g[e+24|0],f+56|0);if((b|0)!=-1){d=b+1|0;h=(d>>>0)%3|0?d:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;n=f+48|0;o=f+40|0;while(1){e=h;d=m;c:{if(!i[a+28>>2]){break c}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break c}d=b+2|0}k=i[a+20>>2];b=i[k>>2];e=i[i[i[a+16>>2]+28>>2]+(e<<2)>>2];if(i[k+4>>2]-b>>2>>>0<=e>>>0){break b}e=i[i[a+8>>2]+(i[b+(e<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}i[n>>2]=0;i[n+4>>2]=0;i[o>>2]=0;i[o+4>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;Qd(b,e,g[b+24|0],f+32|0);e=i[a+20>>2];b=i[e>>2];d=i[i[i[a+16>>2]+28>>2]+(d<<2)>>2];if(i[e+4>>2]-b>>2>>>0<=d>>>0){break a}e=i[i[a+8>>2]+(i[b+(d<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}k=f+24|0;d=k;i[d>>2]=0;i[d+4>>2]=0;r=f+16|0;d=r;i[d>>2]=0;i[d+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Qd(b,e,g[b+24|0],f+8|0);d=i[f+8>>2];b=i[f+56>>2];t=d-b|0;y=i[f+60>>2];e=i[f+12>>2]-(y+(d>>>0>>0)|0)|0;z=i[f+40>>2];d=i[f+64>>2];D=z-d|0;A=i[f+68>>2];z=i[f+44>>2]-(A+(z>>>0>>0)|0)|0;B=up(t,e,D,z);C=l-B|0;u=u-(H+(l>>>0>>0)|0)|0;l=i[r>>2];B=l-d|0;r=i[r+4>>2]-((l>>>0>>0)+A|0)|0;l=i[f+32>>2];A=l-b|0;y=i[f+36>>2]-((l>>>0>>0)+y|0)|0;d=up(B,r,A,y);l=d+C|0;b=H+u|0;b=l>>>0>>0?b+1|0:b;u=b;E=p;w=t;G=e;b=i[f+48>>2];p=i[f+72>>2];d=p;e=b-d|0;t=i[f+76>>2];C=i[f+52>>2]-(t+(b>>>0>>0)|0)|0;w=up(w,G,e,C);d=E+w|0;b=H+q|0;b=d>>>0>>0?b+1|0:b;q=i[k>>2];w=q-p|0;k=i[k+4>>2]-((q>>>0

>>0)+t|0)|0;q=up(w,k,A,y);p=d-q|0;q=b-(H+(d>>>0>>0)|0)|0;b=up(B,r,e,C);d=s-b|0;b=v-(H+(s>>>0>>0)|0)|0;v=up(w,k,D,z);s=v+d|0;b=H+b|0;b=s>>>0>>0?b+1|0:b;v=b;$d(f+80|0);b=i[f+88>>2];if((b|0)!=-1){continue}break}}d=v;b=d>>31;d=d>>31;h=b;b=v+b|0;m=d+s|0;if(m>>>0>>0){b=b+1|0}o=d^m;n=b^h;r=-1;e=2147483647;d=q;b=d>>31;d=d>>31;m=b;b=q+b|0;k=d+p|0;if(k>>>0>>0){b=b+1|0}d=d^k;b=b^m;h=b;m=d^-1;b=b^2147483647;d:{if(!i[a+28>>2]){if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break d}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}d=b;h=a;b=u;e=b>>31;o=b>>31;b=o+b|0;k=e+l|0;if(k>>>0>>0){b=b+1|0}e=e^k;m=b^o;n=e+h|0;b=n;h=m^2147483647;a=(h|0)==(d|0)&a>>>0>(e^-1)>>>0|d>>>0>h>>>0;d=a?0:0;b=a?-1:b;a=b;if((b|0)<536870912?1:(b|0)<=536870912?d>>>0<1:0){break d}b=(a|0)/536870912|0;a=b;b=b>>31;l=vp(l,u,a,b);p=vp(p,q,a,b);s=vp(s,v,a,b);break d}e:{if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break e}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}m=b;n=a;d=b;h=u;b=h>>31;h=h>>31;k=b;b=u+b|0;t=h+l|0;if(t>>>0>>0){b=b+1|0}h=h^t;b=b^k;o=b;b=b^2147483647;if((b|0)==(d|0)&n>>>0>(h^-1)>>>0|d>>>0>b>>>0){break e}b=m+o|0;d=a+h|0;if(d>>>0>>0){b=b+1|0}r=d;e=b;if(!b&d>>>0<536870913|b>>>0<0){break d}}a=(e&536870911)<<3|r>>>29;b=e>>>29|0;l=vp(l,u,a,b);p=vp(p,q,a,b);s=vp(s,v,a,b)}i[c+8>>2]=l;i[c+4>>2]=p;i[c>>2]=s;F=f+96|0;return}Io();x()}Io();x()}Io();x()}function bm(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;i[a+56>>2]=i[a+52>>2];i[a+44>>2]=i[a+40>>2];a:{b:{c:{g=i[a+64>>2];d=i[g+24>>2];if((d|0)!=i[g+28>>2]){r=a+40|0;s=a+52|0;while(1){g=e;m=i[(q<<2)+d>>2];d:{if((m|0)==-1){break d}if((m|0)<0){d=-1}else{e=(m>>>0)/3|0;d=i[(i[b+96>>2]+o(e,12)|0)+(m-o(e,3)<<2)>>2]}d=j[c+84|0]?d:i[i[c+68>>2]+(d<<2)>>2];e=i[a+56>>2];f=i[a+60>>2];e:{if(e>>>0>>0){i[e>>2]=d;i[a+56>>2]=e+4;break e}n=i[s>>2];p=e-n|0;k=p>>2;l=k+1|0;if(l>>>0>=1073741824){break c}h=f-n|0;f=h>>1;f=h>>2>>>0<536870911?f>>>0>>0?l:f:1073741823;e=0;f:{if(!f){break f}if(f>>>0>=1073741824){break a}e=ho(f<<2)}h=e+(k<<2)|0;i[h>>2]=d;f=e+(f<<2)|0;d=h+4|0;if((p|0)>=1){hp(e,n,p)}i[a+60>>2]=f;i[a+56>>2]=d;i[a+52>>2]=e;if(!n){break e}bp(n)}g:{if(!(i[i[a+12>>2]+(q>>>3&536870908)>>2]>>>q&1)){break g}e=m+1|0;e=(e>>>0)%3|0?e:m+ -2|0;if((e|0)==-1|i[i[a>>2]+(e>>>3&536870908)>>2]>>>e&1){break g}d=i[i[i[a+64>>2]+12>>2]+(e<<2)>>2];if((d|0)==-1){break g}e=d+1|0;d=(e>>>0)%3|0?e:d+ -2|0;if((d|0)==-1){break g}while(1){e=d+1|0;m=d;e=(e>>>0)%3|0?e:d+ -2|0;if((e|0)==-1|i[i[a>>2]+(e>>>3&536870908)>>2]>>>e&1){break g}d=i[i[i[a+64>>2]+12>>2]+(e<<2)>>2];if((d|0)==-1){break g}e=d+1|0;d=(e>>>0)%3|0?e:d+ -2|0;if((d|0)!=-1){continue}break}}i[i[a+28>>2]+(m<<2)>>2]=g;e=i[a+44>>2];h:{if((e|0)!=i[a+48>>2]){i[e>>2]=m;i[a+44>>2]=e+4;break h}l=i[r>>2];k=e-l|0;h=k>>2;f=h+1|0;if(f>>>0>=1073741824){break b}d=k>>1;f=h>>>0<536870911?d>>>0>>0?f:d:1073741823;e=0;i:{if(!f){break i}if(f>>>0>=1073741824){break a}e=ho(f<<2)}d=e+(h<<2)|0;i[d>>2]=m;f=e+(f<<2)|0;d=d+4|0;if((k|0)>=1){hp(e,l,k)}i[a+48>>2]=f;i[a+44>>2]=d;i[a+40>>2]=e;if(!l){break h}bp(l)}e=g+1|0;d=((m>>>0)%3|0?-1:2)+m|0;if((d|0)==-1){break d}d=i[i[i[a+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break d}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)==-1|(d|0)==(m|0)){break d}while(1){f=d+1|0;f=(f>>>0)%3|0?f:d+ -2|0;if(i[i[a>>2]+(f>>>3&536870908)>>2]>>>f&1){g=(d|0)<0?-1:i[(i[b+96>>2]+o((d>>>0)/3|0,12)|0)+((d>>>0)%3<<2)>>2];g=j[c+84|0]?g:i[i[c+68>>2]+(g<<2)>>2];f=i[a+56>>2];h=i[a+60>>2];j:{if(f>>>0>>0){i[f>>2]=g;i[a+56>>2]=f+4;break j}l=i[s>>2];n=f-l|0;f=n>>2;p=f+1|0;if(p>>>0>=1073741824){break c}t=f<<2;k=h-l|0;h=k>>1;h=k>>2>>>0<536870911?h>>>0

>>0?p:h:1073741823;f=0;k:{if(!h){break k}if(h>>>0>=1073741824){break a}f=ho(h<<2)}k=t+f|0;i[k>>2]=g;h=f+(h<<2)|0;g=k+4|0;if((n|0)>=1){hp(f,l,n)}i[a+60>>2]=h;i[a+56>>2]=g;i[a+52>>2]=f;if(!l){break j}bp(l)}f=e+1|0;g=i[a+44>>2];l:{if((g|0)!=i[a+48>>2]){i[g>>2]=d;i[a+44>>2]=g+4;break l}n=i[r>>2];p=g-n|0;l=p>>2;k=l+1|0;if(k>>>0>=1073741824){break b}h=p>>1;k=l>>>0<536870911?h>>>0>>0?k:h:1073741823;g=0;m:{if(!k){break m}if(k>>>0>=1073741824){break a}g=ho(k<<2)}h=g+(l<<2)|0;i[h>>2]=d;k=g+(k<<2)|0;h=h+4|0;if((p|0)>=1){hp(g,n,p)}i[a+48>>2]=k;i[a+44>>2]=h;i[a+40>>2]=g;if(!n){break l}bp(n)}g=e;e=f}i[i[a+28>>2]+(d<<2)>>2]=g;d=((d>>>0)%3|0?-1:2)+d|0;if((d|0)==-1){break d}d=i[i[i[a+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break d}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)==-1){break d}if((d|0)!=(m|0)){continue}break}}g=i[a+64>>2];d=i[g+24>>2];q=q+1|0;if(q>>>0>2]-d>>2>>>0){continue}break}}return}Ho();x()}Ho();x()}za(16720);x()}function yi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;j=F-32|0;F=j;c=i[a+16>>2];i[a+20>>2]=c;a:{if((c|0)!=i[a+24>>2]){i[c>>2]=b;b=c+4|0;i[a+20>>2]=b;e=c;break a}e=ho(4);i[e>>2]=b;b=e+4|0;i[a+24>>2]=b;i[a+20>>2]=b;i[a+16>>2]=e;if(!c){break a}bp(c);b=i[a+20>>2];e=i[a+16>>2]}c=i[a+8>>2];q=i[c+100>>2]-i[c+96>>2]|0;c=(q|0)/12|0;if((b|0)!=(e|0)){t=a+16|0;u=(c|0)>1?c:1;v=a+120|0;m=a+200|0;w=a+72|0;while(1){b:{c:{c=b+ -4|0;b=i[c>>2];if((b|0)==-1){break c}e=i[a+28>>2];d=(b>>>0)/3|0;if(i[e+(d>>>3&268435452)>>2]>>>d&1){break c}h=0;if((q|0)<=0){break b}d:{e:{f:{while(1){g:{i[a+164>>2]=i[a+164>>2]+1;k=(b>>>0)/3|0;n=(b|0)==-1;l=n?-1:k;c=(l>>>3&536870908)+e|0;i[c>>2]=i[c>>2]|1<>2];h:{if((c|0)!=i[a+80>>2]){i[c>>2]=b;i[a+76>>2]=c+4;break h}e=i[w>>2];d=c-e|0;g=d>>2;f=g+1|0;if(f>>>0>=1073741824){break g}p=d>>1;f=g>>>0<536870911?p>>>0>>0?f:p:1073741823;c=0;i:{if(!f){break i}if(f>>>0>=1073741824){break f}c=ho(f<<2)}g=c+(g<<2)|0;i[g>>2]=b;f=c+(f<<2)|0;g=g+4|0;if((d|0)>=1){hp(c,e,d)}i[a+80>>2]=f;i[a+76>>2]=g;i[a+72>>2]=c;if(!e){break h}bp(e)}i[a+320>>2]=b;c=-1;c=(b|0)!=-1?i[i[i[a+12>>2]>>2]+(b<<2)>>2]:c;p=c<<2;g=i[p+i[a+152>>2]>>2];j:{k:{e=i[a+84>>2]+(c>>>3&536870908)|0;d=i[e>>2];c=1<>2]=c|d;if((g|0)!=-1){break k}Ci(m,0);c=-1;if((b|0)==-1){break j}e=b+1|0;b=(e>>>0)%3|0?e:b+ -2|0;if((b|0)==-1){break j}c=i[i[i[a+12>>2]+12>>2]+(b<<2)>>2];break j}l:{m:{n:{if(n){break n}e=-1;c=-1;d=b+1|0;f=(d>>>0)%3|0?d:b+ -2|0;if((f|0)!=-1){c=i[i[i[a+12>>2]+12>>2]+(f<<2)>>2]}d=(b-o(k,3)|0?-1:2)+b|0;if((d|0)!=-1){e=i[i[i[a+12>>2]+12>>2]+(d<<2)>>2]}k=(e|0)==-1;n=k?-1:(e>>>0)/3|0;y=(c>>>0)/3|0;o:{if((f|0)==-1){break o}r=i[i[a+12>>2]+12>>2];f=i[r+(f<<2)>>2];if((f|0)==-1){break o}s=i[a+28>>2];f=(f>>>0)/3|0;if(!(i[s+(f>>>3&268435452)>>2]>>>f&1)){break m}}b=(c|0)==-1;if(!b){oi(a,i[a+164>>2],1,b?-1:y)}p:{if((d|0)==-1){break p}b=i[i[i[a+12>>2]+12>>2]+(d<<2)>>2];if((b|0)==-1){break p}b=(b>>>0)/3|0;if(!(i[i[a+28>>2]+(b>>>3&268435452)>>2]>>>b&1)){break l}}if(k){break n}oi(a,i[a+164>>2],0,n)}Ci(m,7);i[a+20>>2]=i[a+20>>2]+ -4;break b}q:{r:{if((d|0)==-1){break r}d=i[(d<<2)+r>>2];if((d|0)==-1){break r}d=(d>>>0)/3|0;if(!(i[(d>>>3&268435452)+s>>2]>>>d&1)){break q}}if(!k){oi(a,i[a+164>>2],0,n)}Ci(m,3);break j}Ci(m,1);i[a+168>>2]=i[a+168>>2]+1;s:{if((g|0)==-1){break s}d=i[p+i[a+152>>2]>>2];if(i[i[a+140>>2]+(d>>>3&536870908)>>2]>>>d&1){break s}hi(a,b,0)}b=i[a+164>>2];i[j+4>>2]=l;i[j+16>>2]=j+4;pi(j+24|0,v,j+4|0,j+16|0);i[i[j+24>>2]+12>>2]=b;b=i[a+20>>2];i[b+ -4>>2]=e;if((b|0)!=i[a+24>>2]){i[b>>2]=c;i[a+20>>2]=b+4;break b}e=i[t>>2];d=b-e|0;h=d>>2;f=h+1|0;if(f>>>0>=1073741824){break e}l=d>>1;f=h>>>0<536870911?l>>>0>>0?f:l:1073741823;b=0;t:{if(!f){break t}if(f>>>0>=1073741824){break d}b=ho(f<<2)}h=b+(h<<2)|0;i[h>>2]=c;c=b+(f<<2)|0;f=h+4|0;if((d|0)>=1){hp(b,e,d)}i[a+24>>2]=c;i[a+20>>2]=f;i[a+16>>2]=b;if(!e){break b}bp(e);break b}Ci(m,5);c=e}h=h+1|0;if((u|0)==(h|0)){break b}e=i[a+28>>2];b=c;continue}break}Ho();x()}za(11708);x()}Ho();x()}za(11708);x()}i[a+20>>2]=c}b=i[a+20>>2];if((b|0)!=i[a+16>>2]){continue}break}}F=j+32|0;return 1}function ae(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;i[a+8>>2]=e;g=a+32|0;l=i[g>>2];f=i[a+36>>2]-l>>2;a:{if(f>>>0>>0){Bd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=l+(e<<2)}b:{if(!d){break b}h=1;g=i[b>>2];c:{if((d|0)<=1){f=g;break c}f=g;while(1){l=i[(h<<2)+b>>2];j=(l|0)<(f|0);f=j?l:f;g=j?g:(l|0)>(g|0)?l:g;h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+16>>2]=g;i[a+12>>2]=f;d=(g>>31)-((f>>31)+(g>>>0>>0)|0)|0;f=g-f|0;if(!d&f>>>0>2147483646|d>>>0>0){break b}d=f+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}d=(e&1073741823)!=(e|0)?-1:e<<2;l=ip(ho(d),0,d);d=i[a+56>>2];s=i[d>>2];d=i[d+4>>2]-s|0;if((d|0)>=5){t=i[a+48>>2];v=i[a+52>>2];u=d>>2;j=u;while(1){q=j;d:{e:{j=j+ -1|0;if(u>>>0>j>>>0){k=o(e,j);d=i[(j<<2)+s>>2];if((d|0)==-1){break e}d=i[i[t+12>>2]+(d<<2)>>2];if((d|0)==-1){break e}h=-1;g=i[v>>2];f=i[t>>2];p=i[g+(i[f+(d<<2)>>2]<<2)>>2];m=d+1|0;m=(m>>>0)%3|0?m:d+ -2|0;if((m|0)!=-1){m=i[f+(m<<2)>>2]}else{m=-1}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)!=-1){h=i[f+(d<<2)>>2]}if((p|0)>=(j|0)){break e}d=i[(m<<2)+g>>2];if((d|0)>=(j|0)){break e}f=i[g+(h<<2)>>2];if((f|0)>=(j|0)){break e}if((e|0)>=1){f=o(e,f);d=o(d,e);h=o(e,p);g=0;while(1){i[(g<<2)+l>>2]=(i[(f+g<<2)+b>>2]+i[(d+g<<2)+b>>2]|0)-i[(g+h<<2)+b>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}f=i[a+8>>2];if((f|0)<1){break d}d=k<<2;m=d+c|0;r=b+d|0;d=l;h=0;while(1){g=0;f:{if((f|0)<=0){f=i[a+32>>2];break f}while(1){k=g<<2;p=i[k+d>>2];n=i[a+16>>2];g:{if((p|0)>(n|0)){f=i[a+32>>2];i[k+f>>2]=n;break g}f=i[a+32>>2];k=k+f|0;n=i[a+12>>2];if((p|0)<(n|0)){i[k>>2]=n;break g}i[k>>2]=p}g=g+1|0;if((g|0)>2]){continue}break}}g=h<<2;d=g+m|0;g=i[g+r>>2]-i[f+g>>2]|0;i[d>>2]=g;h:{if((g|0)>2]){g=g+i[a+20>>2]|0}else{if((g|0)<=i[a+24>>2]){break h}g=g-i[a+20>>2]|0}i[d>>2]=g}d=f;h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}break d}Io();x()}f=i[a+8>>2];if((f|0)<1){break d}d=k<<2;m=d+c|0;r=b+d|0;d=(o(q+ -2|0,e)<<2)+b|0;h=0;while(1){g=0;i:{if((f|0)<=0){f=i[a+32>>2];break i}while(1){k=g<<2;p=i[k+d>>2];n=i[a+16>>2];j:{if((p|0)>(n|0)){f=i[a+32>>2];i[k+f>>2]=n;break j}f=i[a+32>>2];k=k+f|0;n=i[a+12>>2];if((p|0)<(n|0)){i[k>>2]=n;break j}i[k>>2]=p}g=g+1|0;if((g|0)>2]){continue}break}}g=h<<2;d=g+m|0;g=i[g+r>>2]-i[f+g>>2]|0;i[d>>2]=g;k:{if((g|0)>2]){g=g+i[a+20>>2]|0}else{if((g|0)<=i[a+24>>2]){break k}g=g-i[a+20>>2]|0}i[d>>2]=g}d=f;h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}}if((q|0)>2){continue}break}}if((e|0)>=1){ip(l,0,e<<2)}f=i[a+8>>2];if((f|0)>=1){d=l;h=0;while(1){g=0;l:{if((f|0)<=0){f=i[a+32>>2];break l}while(1){e=g<<2;j=i[e+d>>2];q=i[a+16>>2];m:{if((j|0)>(q|0)){f=i[a+32>>2];i[e+f>>2]=q;break m}f=i[a+32>>2];e=e+f|0;q=i[a+12>>2];if((j|0)<(q|0)){i[e>>2]=q;break m}i[e>>2]=j}g=g+1|0;if((g|0)>2]){continue}break}}e=h<<2;d=e+c|0;e=i[b+e>>2]-i[e+f>>2]|0;i[d>>2]=e;n:{if((e|0)>2]){e=e+i[a+20>>2]|0}else{if((e|0)<=i[a+24>>2]){break n}e=e-i[a+20>>2]|0}i[d>>2]=e}d=f;h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}}bp(l);return 1}function Ad(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;i[a+8>>2]=e;g=a+32|0;l=i[g>>2];f=i[a+36>>2]-l>>2;a:{if(f>>>0>>0){Bd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=l+(e<<2)}b:{if(!d){break b}l=1;g=i[b>>2];c:{if((d|0)<=1){f=g;break c}f=g;while(1){h=i[(l<<2)+b>>2];n=(h|0)<(f|0);f=n?h:f;g=n?g:(h|0)>(g|0)?h:g;l=l+1|0;if((l|0)!=(d|0)){continue}break}}i[a+16>>2]=g;i[a+12>>2]=f;d=(g>>31)-((f>>31)+(g>>>0>>0)|0)|0;f=g-f|0;if(!d&f>>>0>2147483646|d>>>0>0){break b}d=f+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}d=(e&1073741823)!=(e|0)?-1:e<<2;l=ip(ho(d),0,d);d=i[a+56>>2];t=i[d>>2];d=i[d+4>>2]-t|0;if((d|0)>=5){q=i[a+48>>2];v=i[a+52>>2];u=d>>2;h=u;while(1){n=h;d:{e:{h=h+ -1|0;if(u>>>0>h>>>0){k=o(e,h);d=i[(h<<2)+t>>2];if((d|0)==-1|i[i[q>>2]+(d>>>3&536870908)>>2]>>>d&1){break e}d=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break e}g=i[v>>2];f=i[q+28>>2];j=i[g+(i[f+(d<<2)>>2]<<2)>>2];if((j|0)>=(h|0)){break e}m=d+1|0;m=i[g+(i[f+(((m>>>0)%3|0?m:d+ -2|0)<<2)>>2]<<2)>>2];if((m|0)>=(h|0)){break e}d=i[g+(i[f+(d+((d>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((d|0)>=(h|0)){break e}if((e|0)>=1){d=o(d,e);f=o(e,m);j=o(e,j);g=0;while(1){i[(g<<2)+l>>2]=(i[(d+g<<2)+b>>2]+i[(f+g<<2)+b>>2]|0)-i[(g+j<<2)+b>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}f=i[a+8>>2];if((f|0)<1){break d}d=k<<2;r=d+c|0;s=b+d|0;d=l;k=0;while(1){g=0;f:{if((f|0)<=0){f=i[a+32>>2];break f}while(1){j=g<<2;m=i[j+d>>2];p=i[a+16>>2];g:{if((m|0)>(p|0)){f=i[a+32>>2];i[j+f>>2]=p;break g}f=i[a+32>>2];j=j+f|0;p=i[a+12>>2];if((m|0)<(p|0)){i[j>>2]=p;break g}i[j>>2]=m}g=g+1|0;if((g|0)>2]){continue}break}}g=k<<2;d=g+r|0;g=i[g+s>>2]-i[f+g>>2]|0;i[d>>2]=g;h:{if((g|0)>2]){g=g+i[a+20>>2]|0}else{if((g|0)<=i[a+24>>2]){break h}g=g-i[a+20>>2]|0}i[d>>2]=g}d=f;k=k+1|0;f=i[a+8>>2];if((k|0)<(f|0)){continue}break}break d}Io();x()}f=i[a+8>>2];if((f|0)<1){break d}d=k<<2;r=d+c|0;s=b+d|0;d=(o(n+ -2|0,e)<<2)+b|0;k=0;while(1){g=0;i:{if((f|0)<=0){f=i[a+32>>2];break i}while(1){j=g<<2;m=i[j+d>>2];p=i[a+16>>2];j:{if((m|0)>(p|0)){f=i[a+32>>2];i[j+f>>2]=p;break j}f=i[a+32>>2];j=j+f|0;p=i[a+12>>2];if((m|0)<(p|0)){i[j>>2]=p;break j}i[j>>2]=m}g=g+1|0;if((g|0)>2]){continue}break}}g=k<<2;d=g+r|0;g=i[g+s>>2]-i[f+g>>2]|0;i[d>>2]=g;k:{if((g|0)>2]){g=g+i[a+20>>2]|0}else{if((g|0)<=i[a+24>>2]){break k}g=g-i[a+20>>2]|0}i[d>>2]=g}d=f;k=k+1|0;f=i[a+8>>2];if((k|0)<(f|0)){continue}break}}if((n|0)>2){continue}break}}if((e|0)>=1){ip(l,0,e<<2)}f=i[a+8>>2];if((f|0)>=1){d=l;k=0;while(1){g=0;l:{if((f|0)<=0){f=i[a+32>>2];break l}while(1){e=g<<2;h=i[e+d>>2];n=i[a+16>>2];m:{if((h|0)>(n|0)){f=i[a+32>>2];i[e+f>>2]=n;break m}f=i[a+32>>2];e=e+f|0;n=i[a+12>>2];if((h|0)<(n|0)){i[e>>2]=n;break m}i[e>>2]=h}g=g+1|0;if((g|0)>2]){continue}break}}e=k<<2;d=e+c|0;e=i[b+e>>2]-i[e+f>>2]|0;i[d>>2]=e;n:{if((e|0)>2]){e=e+i[a+20>>2]|0}else{if((e|0)<=i[a+24>>2]){break n}e=e-i[a+20>>2]|0}i[d>>2]=e}d=f;k=k+1|0;f=i[a+8>>2];if((k|0)<(f|0)){continue}break}}bp(l);return 1}function bp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;a:{if(!a){break a}d=a+ -8|0;b=i[a+ -4>>2];a=b&-8;f=d+a|0;b:{if(b&1){break b}if(!(b&3)){break a}b=i[d>>2];d=d-b|0;if(d>>>0>>0<=255){e=i[d+8>>2];b=b>>>3|0;c=i[d+12>>2];if((c|0)==(e|0)){j=19292,k=i[4823]&yp(-2,b),i[j>>2]=k;break b}i[e+12>>2]=c;i[c+8>>2]=e;break b}h=i[d+24>>2];b=i[d+12>>2];c:{if((b|0)!=(d|0)){c=i[d+8>>2];i[c+12>>2]=b;i[b+8>>2]=c;break c}d:{e=d+20|0;c=i[e>>2];if(c){break d}e=d+16|0;c=i[e>>2];if(c){break d}b=0;break c}while(1){g=e;b=c;e=b+20|0;c=i[e>>2];if(c){continue}e=b+16|0;c=i[b+16>>2];if(c){continue}break}i[g>>2]=0}if(!h){break b}e=i[d+28>>2];c=(e<<2)+19596|0;e:{if(i[c>>2]==(d|0)){i[c>>2]=b;if(b){break e}j=19296,k=i[4824]&yp(-2,e),i[j>>2]=k;break b}i[h+(i[h+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break b}}i[b+24>>2]=h;c=i[d+16>>2];if(c){i[b+16>>2]=c;i[c+24>>2]=b}c=i[d+20>>2];if(!c){break b}i[b+20>>2]=c;i[c+24>>2]=b;break b}b=i[f+4>>2];if((b&3)!=3){break b}i[4825]=a;i[f+4>>2]=b&-2;i[d+4>>2]=a|1;i[a+d>>2]=a;return}if(f>>>0<=d>>>0){break a}b=i[f+4>>2];if(!(b&1)){break a}f:{if(!(b&2)){if((f|0)==i[4829]){i[4829]=d;a=i[4826]+a|0;i[4826]=a;i[d+4>>2]=a|1;if(i[4828]!=(d|0)){break a}i[4825]=0;i[4828]=0;return}if((f|0)==i[4828]){i[4828]=d;a=i[4825]+a|0;i[4825]=a;i[d+4>>2]=a|1;i[a+d>>2]=a;return}a=(b&-8)+a|0;g:{if(b>>>0<=255){c=i[f+8>>2];b=b>>>3|0;e=i[f+12>>2];if((c|0)==(e|0)){j=19292,k=i[4823]&yp(-2,b),i[j>>2]=k;break g}i[c+12>>2]=e;i[e+8>>2]=c;break g}h=i[f+24>>2];b=i[f+12>>2];h:{if((f|0)!=(b|0)){c=i[f+8>>2];i[c+12>>2]=b;i[b+8>>2]=c;break h}i:{e=f+20|0;c=i[e>>2];if(c){break i}e=f+16|0;c=i[e>>2];if(c){break i}b=0;break h}while(1){g=e;b=c;e=b+20|0;c=i[e>>2];if(c){continue}e=b+16|0;c=i[b+16>>2];if(c){continue}break}i[g>>2]=0}if(!h){break g}e=i[f+28>>2];c=(e<<2)+19596|0;j:{if((f|0)==i[c>>2]){i[c>>2]=b;if(b){break j}j=19296,k=i[4824]&yp(-2,e),i[j>>2]=k;break g}i[h+((f|0)==i[h+16>>2]?16:20)>>2]=b;if(!b){break g}}i[b+24>>2]=h;c=i[f+16>>2];if(c){i[b+16>>2]=c;i[c+24>>2]=b}c=i[f+20>>2];if(!c){break g}i[b+20>>2]=c;i[c+24>>2]=b}i[d+4>>2]=a|1;i[a+d>>2]=a;if(i[4828]!=(d|0)){break f}i[4825]=a;return}i[f+4>>2]=b&-2;i[d+4>>2]=a|1;i[a+d>>2]=a}if(a>>>0<=255){a=a>>>3|0;b=(a<<3)+19332|0;c=i[4823];a=1<>2]}i[b+8>>2]=d;i[a+12>>2]=d;i[d+12>>2]=b;i[d+8>>2]=a;return}e=31;i[d+16>>2]=0;i[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}i[d+28>>2]=e;g=(e<<2)+19596|0;l:{m:{c=i[4824];b=1<>2]=d;i[d+24>>2]=g;break n}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=i[g>>2];while(1){c=b;if((i[b+4>>2]&-8)==(a|0)){break m}b=e>>>29|0;e=e<<1;g=(c+(b&4)|0)+16|0;b=i[g>>2];if(b){continue}break}i[g>>2]=d;i[d+24>>2]=c}i[d+12>>2]=d;i[d+8>>2]=d;break l}a=i[c+8>>2];i[a+12>>2]=d;i[c+8>>2]=d;i[d+24>>2]=0;i[d+12>>2]=c;i[d+8>>2]=a}a=i[4831]+ -1|0;i[4831]=a;if(a){break a}d=19748;while(1){a=i[d>>2];d=a+8|0;if(a){continue}break}i[4831]=-1}}function jd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0;e=F-32|0;F=e;a:{b:{if(!i[i[a+8>>2]+80>>2]){d=1;break b}g[e+31|0]=254;k=i[a+36>>2];if(k){if(!(I[i[i[a>>2]+40>>2]](a,k)|0)){break b}d=i[a+36>>2];q=e,s=I[i[i[d>>2]+8>>2]](d)|0,g[q+31|0]=s}d=i[c+20>>2];if((d|0)<0?1:(d|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],e+31|0,e+32|0)}d=i[a+36>>2];c:{if(!d){break c}q=e,s=I[i[i[d>>2]+36>>2]](d)|0,g[q+16|0]=s;d=i[c+20>>2];if((d|0)>0?1:(d|0)>=0?l[c+16>>2]>0:0){break c}ca(c,i[c+4>>2],e+16|0,e+17|0)}d=i[a+32>>2];h=i[d+48>>2];n=i[i[d>>2]>>2];k=i[d+80>>2];m=g[d+24|0];d=0;i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;k=o(k,m);if(k){if(k>>>0>=1073741824){break a}f=k<<2;d=ho(f);i[e+16>>2]=d;p=d+f|0;i[e+24>>2]=p;ip(d,0,f);i[e+20>>2]=p}f=h+n|0;h=i[a+36>>2];d:{e:{if(!h){break e}I[i[i[h>>2]+44>>2]](h,f,d,k,m,i[b>>2])|0;d=i[a+36>>2];if(!d){d=i[e+16>>2];break e}if(I[i[i[d>>2]+32>>2]](d)|0){break d}d=i[e+16>>2];f=i[a+36>>2]?d:f}Nj(f,k,d)}f:{g:{h:{i:{j:{d=i[a+4>>2];if(!d){break j}n=i[d+48>>2];d=ho(48);i[e>>2]=d;i[e+4>>2]=34;i[e+8>>2]=-2147483600;g[d+34|0]=0;f=j[2336]|j[2337]<<8;g[d+32|0]=f;g[d+33|0]=f>>>8;f=j[2332]|j[2333]<<8|(j[2334]<<16|j[2335]<<24);h=j[2328]|j[2329]<<8|(j[2330]<<16|j[2331]<<24);g[d+24|0]=h;g[d+25|0]=h>>>8;g[d+26|0]=h>>>16;g[d+27|0]=h>>>24;g[d+28|0]=f;g[d+29|0]=f>>>8;g[d+30|0]=f>>>16;g[d+31|0]=f>>>24;f=j[2324]|j[2325]<<8|(j[2326]<<16|j[2327]<<24);h=j[2320]|j[2321]<<8|(j[2322]<<16|j[2323]<<24);g[d+16|0]=h;g[d+17|0]=h>>>8;g[d+18|0]=h>>>16;g[d+19|0]=h>>>24;g[d+20|0]=f;g[d+21|0]=f>>>8;g[d+22|0]=f>>>16;g[d+23|0]=f>>>24;f=j[2316]|j[2317]<<8|(j[2318]<<16|j[2319]<<24);h=j[2312]|j[2313]<<8|(j[2314]<<16|j[2315]<<24);g[d+8|0]=h;g[d+9|0]=h>>>8;g[d+10|0]=h>>>16;g[d+11|0]=h>>>24;g[d+12|0]=f;g[d+13|0]=f>>>8;g[d+14|0]=f>>>16;g[d+15|0]=f>>>24;f=j[2308]|j[2309]<<8|(j[2310]<<16|j[2311]<<24);h=j[2304]|j[2305]<<8|(j[2306]<<16|j[2307]<<24);g[d|0]=h;g[d+1|0]=h>>>8;g[d+2|0]=h>>>16;g[d+3|0]=h>>>24;g[d+4|0]=f;g[d+5|0]=f>>>8;g[d+6|0]=f>>>16;g[d+7|0]=f>>>24;d=ck(n,e,1);if(g[e+11|0]<=-1){bp(i[e>>2])}if(d){break j}if(!k){break i}d=0;m=i[e+16>>2];b=0;while(1){b=i[m+(d<<2)>>2]|b;d=d+1|0;if((k|0)!=(d|0)){continue}break}if(!b){break i}b=4-(r(b)>>>3|0)|0;break h}g[e|0]=1;d=i[c+20>>2];if((d|0)<0?1:(d|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],e,e+1|0)}d=Xj(e);k=i[a+4>>2];if(k){jg(d,10-_b(i[k+48>>2])|0)}b=kg(i[e+16>>2],o(m,i[b+4>>2]-i[b>>2]>>2),m,d,c);kd(d,i[d+4>>2]);d=0;if(b){break g}break f}b=1}g[e|0]=0;m=i[c+20>>2];d=m;f=i[c+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ca(c,i[c+4>>2],e,e+1|0);f=i[c+16>>2];d=i[c+20>>2]}g[e|0]=b;if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ca(c,i[c+4>>2],e,e+1|0)}if((Sj(5)|0)!=(b|0)){if(!k){break g}d=0;while(1){m=i[c+20>>2];if((m|0)<0?1:(m|0)<=0?l[c+16>>2]<=0:0){m=i[e+16>>2]+(d<<2)|0;ca(c,i[c+4>>2],m,b+m|0)}d=d+1|0;if((k|0)!=(d|0)){continue}break}break g}b=i[c+20>>2];if((b|0)>0?1:(b|0)>=0?l[c+16>>2]>0:0){break g}b=i[e+16>>2];ca(c,i[c+4>>2],b,b+(k<<2)|0)}d=1;a=i[a+36>>2];if(!a){break f}I[i[i[a>>2]+40>>2]](a,c)|0}a=i[e+16>>2];if(!a){break b}i[e+20>>2]=a;bp(a)}F=e+32|0;return d|0}Ho();x()}function mg(a,b,c,d,e,f){var h=0,k=0,m=0,n=0;n=F-16|0;F=n;a:{if((d|0)<=0){d=1}else{d=r(d)^31;if(d>>>0>17){break a}d=d+1|0}b:{if(!e){break b}h=ho(48);i[n>>2]=h;i[n+4>>2]=33;i[n+8>>2]=-2147483600;g[h+33|0]=0;g[h+32|0]=j[10857];k=j[10853]|j[10854]<<8|(j[10855]<<16|j[10856]<<24);m=j[10849]|j[10850]<<8|(j[10851]<<16|j[10852]<<24);g[h+24|0]=m;g[h+25|0]=m>>>8;g[h+26|0]=m>>>16;g[h+27|0]=m>>>24;g[h+28|0]=k;g[h+29|0]=k>>>8;g[h+30|0]=k>>>16;g[h+31|0]=k>>>24;k=j[10845]|j[10846]<<8|(j[10847]<<16|j[10848]<<24);m=j[10841]|j[10842]<<8|(j[10843]<<16|j[10844]<<24);g[h+16|0]=m;g[h+17|0]=m>>>8;g[h+18|0]=m>>>16;g[h+19|0]=m>>>24;g[h+20|0]=k;g[h+21|0]=k>>>8;g[h+22|0]=k>>>16;g[h+23|0]=k>>>24;k=j[10837]|j[10838]<<8|(j[10839]<<16|j[10840]<<24);m=j[10833]|j[10834]<<8|(j[10835]<<16|j[10836]<<24);g[h+8|0]=m;g[h+9|0]=m>>>8;g[h+10|0]=m>>>16;g[h+11|0]=m>>>24;g[h+12|0]=k;g[h+13|0]=k>>>8;g[h+14|0]=k>>>16;g[h+15|0]=k>>>24;k=j[10829]|j[10830]<<8|(j[10831]<<16|j[10832]<<24);m=j[10825]|j[10826]<<8|(j[10827]<<16|j[10828]<<24);g[h|0]=m;g[h+1|0]=m>>>8;g[h+2|0]=m>>>16;g[h+3|0]=m>>>24;g[h+4|0]=k;g[h+5|0]=k>>>8;g[h+6|0]=k>>>16;g[h+7|0]=k>>>24;h=Sb(e,n);if(g[n+11|0]<=-1){bp(i[n>>2])}if(!h){break b}h=ho(48);i[n>>2]=h;i[n+4>>2]=33;i[n+8>>2]=-2147483600;g[h+33|0]=0;g[h+32|0]=j[10857];k=j[10853]|j[10854]<<8|(j[10855]<<16|j[10856]<<24);m=j[10849]|j[10850]<<8|(j[10851]<<16|j[10852]<<24);g[h+24|0]=m;g[h+25|0]=m>>>8;g[h+26|0]=m>>>16;g[h+27|0]=m>>>24;g[h+28|0]=k;g[h+29|0]=k>>>8;g[h+30|0]=k>>>16;g[h+31|0]=k>>>24;k=j[10845]|j[10846]<<8|(j[10847]<<16|j[10848]<<24);m=j[10841]|j[10842]<<8|(j[10843]<<16|j[10844]<<24);g[h+16|0]=m;g[h+17|0]=m>>>8;g[h+18|0]=m>>>16;g[h+19|0]=m>>>24;g[h+20|0]=k;g[h+21|0]=k>>>8;g[h+22|0]=k>>>16;g[h+23|0]=k>>>24;k=j[10837]|j[10838]<<8|(j[10839]<<16|j[10840]<<24);m=j[10833]|j[10834]<<8|(j[10835]<<16|j[10836]<<24);g[h+8|0]=m;g[h+9|0]=m>>>8;g[h+10|0]=m>>>16;g[h+11|0]=m>>>24;g[h+12|0]=k;g[h+13|0]=k>>>8;g[h+14|0]=k>>>16;g[h+15|0]=k>>>24;k=j[10829]|j[10830]<<8|(j[10831]<<16|j[10832]<<24);m=j[10825]|j[10826]<<8|(j[10827]<<16|j[10828]<<24);g[h|0]=m;g[h+1|0]=m>>>8;g[h+2|0]=m>>>16;g[h+3|0]=m>>>24;g[h+4|0]=k;g[h+5|0]=k>>>8;g[h+6|0]=k>>>16;g[h+7|0]=k>>>24;e=_j(e,n);if(g[n+11|0]<=-1){bp(i[n>>2])}if((e|0)<=3){d=d+ -2|0;break b}if((e|0)<=5){d=d+ -1|0;break b}if((e|0)>=10){d=d+2|0;break b}d=((e|0)>7)+d|0}d=(d|0)>1?d:1;d=(d|0)<18?d:18;i[n+12>>2]=d;g[n|0]=d;e=i[f+20>>2];if((e|0)<0?1:(e|0)<=0?l[f+16>>2]<=0:0){ca(f,i[f+4>>2],n,n+1|0)}h=0;c:{switch(d|0){case 0:case 1:h=pg(a,b,c,f);break a;case 2:h=qg(a,b,c,f);break a;case 3:h=rg(a,b,c,f);break a;case 4:h=sg(a,b,c,f);break a;case 5:h=tg(a,b,c,f);break a;case 6:h=ug(a,b,c,f);break a;case 7:h=vg(a,b,c,f);break a;case 8:h=wg(a,b,c,f);break a;case 9:h=xg(a,b,c,f);break a;case 10:h=yg(a,b,c,f);break a;case 11:h=zg(a,b,c,f);break a;case 12:h=Ag(a,b,c,f);break a;case 13:h=Bg(a,b,c,f);break a;case 14:h=Cg(a,b,c,f);break a;case 15:h=Dg(a,b,c,f);break a;case 16:h=Eg(a,b,c,f);break a;case 17:h=Fg(a,b,c,f);break a;case 18:break c;default:break a}}h=Gg(a,b,c,f)}F=n+16|0;return h}function Tf(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;k=F-16|0;F=k;h=ho(16);i[k>>2]=h;i[k+4>>2]=15;i[k+8>>2]=-2147483632;g[h+15|0]=0;e=j[10535]|j[10536]<<8|(j[10537]<<16|j[10538]<<24);f=j[10531]|j[10532]<<8|(j[10533]<<16|j[10534]<<24);g[h+7|0]=f;g[h+8|0]=f>>>8;g[h+9|0]=f>>>16;g[h+10|0]=f>>>24;g[h+11|0]=e;g[h+12|0]=e>>>8;g[h+13|0]=e>>>16;g[h+14|0]=e>>>24;e=j[10528]|j[10529]<<8|(j[10530]<<16|j[10531]<<24);f=j[10524]|j[10525]<<8|(j[10526]<<16|j[10527]<<24);g[h|0]=f;g[h+1|0]=f>>>8;g[h+2|0]=f>>>16;g[h+3|0]=f>>>24;g[h+4|0]=e;g[h+5|0]=e>>>8;g[h+6|0]=e>>>16;g[h+7|0]=e>>>24;h=b+4|0;o=$j(h,k,-1);if(g[k+11|0]<=-1){bp(i[k>>2])}p=14012;a:{b:{c:{switch(o+1|0){case 0:if((_b(h)|0)==10){break b}break;case 1:break b;default:break c}}d:{f=i[c+12>>2];l=i[c+8>>2];if((f-l|0)<1){break d}m=b+20|0;while(1){e:{e=i[i[(n<<2)+l>>2]+28>>2];if(e+ -1>>>0>=6){if((e|0)!=9){break e}e=ho(32);i[k>>2]=e;i[k+4>>2]=17;i[k+8>>2]=-2147483616;g[e+17|0]=0;g[e+16|0]=j[10556];f=j[10552]|j[10553]<<8|(j[10554]<<16|j[10555]<<24);l=j[10548]|j[10549]<<8|(j[10550]<<16|j[10551]<<24);g[e+8|0]=l;g[e+9|0]=l>>>8;g[e+10|0]=l>>>16;g[e+11|0]=l>>>24;g[e+12|0]=f;g[e+13|0]=f>>>8;g[e+14|0]=f>>>16;g[e+15|0]=f>>>24;f=j[10544]|j[10545]<<8|(j[10546]<<16|j[10547]<<24);l=j[10540]|j[10541]<<8|(j[10542]<<16|j[10543]<<24);g[e|0]=l;g[e+1|0]=l>>>8;g[e+2|0]=l>>>16;g[e+3|0]=l>>>24;g[e+4|0]=f;g[e+5|0]=f>>>8;g[e+6|0]=f>>>16;g[e+7|0]=f>>>24;f=m;l=i[f>>2];e=h;f:{if(!l){break f}while(1){e=i[l+16>>2]<(n|0);f=e?f:l;l=i[(e<<2)+l>>2];if(l){continue}break}e=h;if((f|0)==(m|0)){break f}e=h;if((n|0)>2]){break f}e=f+20|0;e=Sb(e,k)?e:h}e=$j(e,k,-1);if(g[k+11|0]<=-1){bp(i[k>>2])}if((e|0)<1){break e}l=i[c+8>>2];f=i[c+12>>2]}n=n+1|0;if((n|0)>2){continue}break d}break}if((o|0)!=1){break b}b=ho(32);i[k>>2]=b;i[k+4>>2]=24;i[k+8>>2]=-2147483616;g[b+24|0]=0;c=j[10578]|j[10579]<<8|(j[10580]<<16|j[10581]<<24);d=j[10574]|j[10575]<<8|(j[10576]<<16|j[10577]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[10570]|j[10571]<<8|(j[10572]<<16|j[10573]<<24);d=j[10566]|j[10567]<<8|(j[10568]<<16|j[10569]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[10562]|j[10563]<<8|(j[10564]<<16|j[10565]<<24);d=j[10558]|j[10559]<<8|(j[10560]<<16|j[10561]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ro(a+4|0,k);if(g[k+11|0]>-1){break a}bp(i[k>>2]);break a}p=13836}m=ho(56);e=m;i[e>>2]=0;i[e+4>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;f=xj(e);i[e>>2]=p;aa(f,c);yj(a,f,h,d);if(!i[a>>2]){if(g[a+15|0]<=-1){bp(i[a+4>>2])}c=i[m+52>>2];i[b+44>>2]=0;i[b+40>>2]=c;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0}I[i[i[m>>2]+4>>2]](f)}F=k+16|0}function Bh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0;e=F-16|0;F=e;f=i[a+48>>2];b=ho(32);i[e>>2]=b;i[e+4>>2]=20;i[e+8>>2]=-2147483616;g[b+20|0]=0;c=j[11024]|j[11025]<<8|(j[11026]<<16|j[11027]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;c=j[11020]|j[11021]<<8|(j[11022]<<16|j[11023]<<24);d=j[11016]|j[11017]<<8|(j[11018]<<16|j[11019]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11012]|j[11013]<<8|(j[11014]<<16|j[11015]<<24);d=j[11008]|j[11009]<<8|(j[11010]<<16|j[11011]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;f=bk(f+24|0,e);if(g[e+11|0]<=-1){bp(i[e>>2])}h=i[a+48>>2];b=ho(32);i[e>>2]=b;i[e+4>>2]=22;i[e+8>>2]=-2147483616;g[b+22|0]=0;c=j[11047]|j[11048]<<8|(j[11049]<<16|j[11050]<<24);d=j[11043]|j[11044]<<8|(j[11045]<<16|j[11046]<<24);g[b+14|0]=d;g[b+15|0]=d>>>8;g[b+16|0]=d>>>16;g[b+17|0]=d>>>24;g[b+18|0]=c;g[b+19|0]=c>>>8;g[b+20|0]=c>>>16;g[b+21|0]=c>>>24;c=j[11041]|j[11042]<<8|(j[11043]<<16|j[11044]<<24);d=j[11037]|j[11038]<<8|(j[11039]<<16|j[11040]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11033]|j[11034]<<8|(j[11035]<<16|j[11036]<<24);d=j[11029]|j[11030]<<8|(j[11031]<<16|j[11032]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;h=bk(h+24|0,e);if(g[e+11|0]<=-1){bp(i[e>>2])}b=i[a+64>>2];i[a+64>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[a+56>>2];k=i[b+100>>2];m=i[a+48>>2];n=i[b+96>>2];b=ho(32);i[e>>2]=b;i[e+4>>2]=18;i[e+8>>2]=-2147483616;g[b+18|0]=0;c=j[11068]|j[11069]<<8;g[b+16|0]=c;g[b+17|0]=c>>>8;c=j[11064]|j[11065]<<8|(j[11066]<<16|j[11067]<<24);d=j[11060]|j[11061]<<8|(j[11062]<<16|j[11063]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11056]|j[11057]<<8|(j[11058]<<16|j[11059]<<24);d=j[11052]|j[11053]<<8|(j[11054]<<16|j[11055]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;b=(k-n|0)/12|0;c=$j(m,e,-1);if(g[e+11|0]<=-1){bp(i[e>>2])}a:{b:{c:{d:{e:{f:{g:{switch(c+1|0){case 3:break f;case 0:break g;case 1:break e;default:break c}}if(!f){break f}if(b>>>0<1e3|(_b(i[a+48>>2])|0)>4|h^1){break d}}b=i[a+44>>2];g[e|0]=2;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],e,e+1|0)}b=ho(360);si(b);c=i[a+64>>2];i[a+64>>2]=b;if(!c){break b}I[i[i[c>>2]+4>>2]](c);break c}if(!f){break c}}b=i[a+44>>2];g[e|0]=0;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],e,e+1|0)}b=ho(296);Mh(b);c=i[a+64>>2];i[a+64>>2]=b;if(!c){break b}I[i[i[c>>2]+4>>2]](c)}b=i[a+64>>2];if(!b){break a}}a=I[i[i[b>>2]+8>>2]](b,a)|0;F=e+16|0;return a|0}F=e+16|0;return 0}function cm(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;i[a+56>>2]=i[a+52>>2];i[a+44>>2]=i[a+40>>2];a:{b:{c:{e=i[a+64>>2];d=i[e+24>>2];if((d|0)!=i[e+28>>2]){n=a+40|0;o=a+52|0;while(1){e=c;j=i[(l<<2)+d>>2];d:{if((j|0)==-1){break d}c=i[a+56>>2];e:{if((c|0)!=i[a+60>>2]){i[c>>2]=e;i[a+56>>2]=c+4;break e}h=i[o>>2];g=c-h|0;f=g>>2;d=f+1|0;if(d>>>0>=1073741824){break c}b=g>>1;d=f>>>0<536870911?b>>>0>>0?d:b:1073741823;c=0;f:{if(!d){break f}if(d>>>0>=1073741824){break a}c=ho(d<<2)}b=c+(f<<2)|0;i[b>>2]=e;d=c+(d<<2)|0;b=b+4|0;if((g|0)>=1){hp(c,h,g)}i[a+60>>2]=d;i[a+56>>2]=b;i[a+52>>2]=c;if(!h){break e}bp(h)}g:{if(!(i[i[a+12>>2]+(l>>>3&536870908)>>2]>>>l&1)){break g}c=j+1|0;c=(c>>>0)%3|0?c:j+ -2|0;if((c|0)==-1|i[i[a>>2]+(c>>>3&536870908)>>2]>>>c&1){break g}b=i[i[i[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)==-1){break g}while(1){c=d+1|0;j=d;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|i[i[a>>2]+(c>>>3&536870908)>>2]>>>c&1){break g}b=i[i[i[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)!=-1){continue}break}}i[i[a+28>>2]+(j<<2)>>2]=e;c=i[a+44>>2];h:{if((c|0)!=i[a+48>>2]){i[c>>2]=j;i[a+44>>2]=c+4;break h}h=i[n>>2];g=c-h|0;f=g>>2;d=f+1|0;if(d>>>0>=1073741824){break b}b=g>>1;d=f>>>0<536870911?b>>>0>>0?d:b:1073741823;c=0;i:{if(!d){break i}if(d>>>0>=1073741824){break a}c=ho(d<<2)}b=c+(f<<2)|0;i[b>>2]=j;d=c+(d<<2)|0;b=b+4|0;if((g|0)>=1){hp(c,h,g)}i[a+48>>2]=d;i[a+44>>2]=b;i[a+40>>2]=c;if(!h){break h}bp(h)}c=e+1|0;b=((j>>>0)%3|0?-1:2)+j|0;if((b|0)==-1){break d}b=i[i[i[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1|(d|0)==(j|0)){break d}while(1){b=d+1|0;b=(b>>>0)%3|0?b:d+ -2|0;if(i[i[a>>2]+(b>>>3&536870908)>>2]>>>b&1){e=i[a+56>>2];j:{if((e|0)!=i[a+60>>2]){i[e>>2]=c;i[a+56>>2]=e+4;break j}k=i[o>>2];h=e-k|0;g=h>>2;f=g+1|0;if(f>>>0>=1073741824){break c}b=h>>1;f=g>>>0<536870911?b>>>0>>0?f:b:1073741823;e=0;k:{if(!f){break k}if(f>>>0>=1073741824){break a}e=ho(f<<2)}b=e+(g<<2)|0;i[b>>2]=c;f=e+(f<<2)|0;b=b+4|0;if((h|0)>=1){hp(e,k,h)}i[a+60>>2]=f;i[a+56>>2]=b;i[a+52>>2]=e;if(!k){break j}bp(k)}b=c+1|0;e=i[a+44>>2];l:{if((e|0)!=i[a+48>>2]){i[e>>2]=d;i[a+44>>2]=e+4;break l}m=i[n>>2];k=e-m|0;h=k>>2;g=h+1|0;if(g>>>0>=1073741824){break b}f=k>>1;g=h>>>0<536870911?f>>>0>>0?g:f:1073741823;e=0;m:{if(!g){break m}if(g>>>0>=1073741824){break a}e=ho(g<<2)}f=e+(h<<2)|0;i[f>>2]=d;g=e+(g<<2)|0;f=f+4|0;if((k|0)>=1){hp(e,m,k)}i[a+48>>2]=g;i[a+44>>2]=f;i[a+40>>2]=e;if(!m){break l}bp(m)}e=c;c=b}i[i[a+28>>2]+(d<<2)>>2]=e;b=((d>>>0)%3|0?-1:2)+d|0;if((b|0)==-1){break d}b=i[i[i[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1){break d}if((d|0)!=(j|0)){continue}break}}e=i[a+64>>2];d=i[e+24>>2];l=l+1|0;if(l>>>0>2]-d>>2>>>0){continue}break}}return}Ho();x()}Ho();x()}za(16720);x()}function hj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(i[i[a+24>>2]+(d>>>3&268435452)>>2]>>>d&1)){c=i[a+48>>2];i[a+52>>2]=c;a:{if((c|0)!=i[a+56>>2]){i[c>>2]=b;i[a+52>>2]=c+4;break a}f=ho(4);i[f>>2]=b;e=f+4|0;i[a+56>>2]=e;i[a+52>>2]=e;i[a+48>>2]=f;if(!c){break a}bp(c)}e=i[i[a+4>>2]+28>>2];c=b+1|0;f=(c>>>0)%3|0?c:b+ -2|0;c=i[e+(f<<2)>>2];if((c|0)==-1){return 0}h=(b-o(d,3)|0?-1:2)+b|0;d=i[e+(h<<2)>>2];if((d|0)==-1){return 0}b=i[a+36>>2];e=b+(c>>>3&536870908)|0;g=i[e>>2];j=1<>2]=g|j;Ti(a+8|0,c,f);b=i[a+36>>2]}b=(d>>>3&536870908)+b|0;c=i[b>>2];f=1<>2]=c|f;Ti(a+8|0,d,h)}c=i[a+52>>2];if((c|0)==i[a+48>>2]){return 1}l=a+48|0;m=a+8|0;while(1){c=c+ -4|0;b=i[c>>2];d=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}f=i[a+24>>2]+(d>>>3&268435452)|0;e=i[f>>2];d=1<>2]=d|e;f=i[a+4>>2];c=i[i[f+28>>2]+(b<<2)>>2];if((c|0)==-1){return 0}while(1){d=b;d:{b=i[a+36>>2]+(c>>>3&536870908)|0;e=i[b>>2];h=1<>2]+(c<<2)>>2];if((g|0)!=-1){f:{j=g+1|0;g=(j>>>0)%3|0?j:g+ -2|0;if((g|0)==-1|i[i[f>>2]+(g>>>3&536870908)>>2]>>>g&1){break f}f=i[i[i[f+64>>2]+12>>2]+(g<<2)>>2];if((f|0)==-1){break f}i[b>>2]=e|h;Ti(m,c,d);b=f+1|0;if((((b>>>0)%3|0?b:f+ -2|0)|0)==-1){break e}b=-1;f=i[a+4>>2];g:{if((d|0)==-1){break g}c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|i[i[f>>2]+(c>>>3&536870908)>>2]>>>c&1){break g}b=i[i[i[f+64>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;g=1<>2];j=c>>>5|0;e=i[d+(j<<2)>>2];break d}}i[b>>2]=e|h;Ti(m,c,d)}h:{i:{if((d|0)==-1){break i}f=i[a+4>>2];b=-1;e=d+1|0;e=(e>>>0)%3|0?e:d+ -2|0;c=-1;j:{if((e|0)==-1){break j}c=-1;if(i[i[f>>2]+(e>>>3&536870908)>>2]>>>e&1){break j}c=i[i[i[f+64>>2]+12>>2]+(e<<2)>>2]}d=d+((d>>>0)%3|0?-1:2)|0;if(!((d|0)==-1|i[i[f>>2]+(d>>>3&536870908)>>2]>>>d&1)){b=i[i[i[f+64>>2]+12>>2]+(d<<2)>>2]}k=(b|0)==-1;h=k?-1:(b>>>0)/3|0;e=(c>>>0)/3|0;g=(c|0)==-1;if(!g){d=i[a+24>>2];g=g?-1:e;j=g>>>5|0;e=i[d+(j<<2)>>2];g=1<>2];j=h>>>5|0;e=i[d+(j<<2)>>2];if(!(g&e)){break d}}c=i[a+52>>2]+ -4|0;i[a+52>>2]=c;break b}if(k){b=c;break d}if(i[(h>>>3&536870908)+d>>2]>>>h&1){b=c;break d}d=i[a+52>>2];i[d+ -4>>2]=b;if((d|0)!=i[a+56>>2]){i[d>>2]=c;c=d+4|0;break c}k:{b=d;d=i[l>>2];f=b-d|0;h=f>>2;e=h+1|0;if(e>>>0<1073741824){g=f>>1;e=h>>>0<536870911?g>>>0>>0?e:g:1073741823;b=0;l:{if(!e){break l}if(e>>>0>=1073741824){break k}b=ho(e<<2)}h=b+(h<<2)|0;i[h>>2]=c;e=b+(e<<2)|0;c=h+4|0;if((f|0)>=1){hp(b,d,f)}i[a+56>>2]=e;i[a+52>>2]=c;i[a+48>>2]=b;if(!d){break b}bp(d);c=i[a+52>>2];break b}Ho();x()}za(11708);x()}i[(j<<2)+d>>2]=e|g;c=i[i[f+28>>2]+(b<<2)>>2];if((c|0)!=-1){continue}break}return 0}i[a+52>>2]=c}if(i[l>>2]!=(c|0)){continue}break}}return 1}function se(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,n=0;e=F-48|0;F=e;h=i[b+12>>2];k=i[i[b+4>>2]+48>>2];c=ho(32);i[e+24>>2]=c;i[e+28>>2]=17;i[e+32>>2]=-2147483616;g[c+17|0]=0;g[c+16|0]=j[6044];f=j[6040]|j[6041]<<8|(j[6042]<<16|j[6043]<<24);d=j[6036]|j[6037]<<8|(j[6038]<<16|j[6039]<<24);g[c+8|0]=d;g[c+9|0]=d>>>8;g[c+10|0]=d>>>16;g[c+11|0]=d>>>24;g[c+12|0]=f;g[c+13|0]=f>>>8;g[c+14|0]=f>>>16;g[c+15|0]=f>>>24;f=j[6032]|j[6033]<<8|(j[6034]<<16|j[6035]<<24);d=j[6028]|j[6029]<<8|(j[6030]<<16|j[6031]<<24);g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;g[c+4|0]=f;g[c+5|0]=f>>>8;g[c+6|0]=f>>>16;g[c+7|0]=f>>>24;a:{b:{f=k+16|0;d=i[f>>2];if(!d){break b}c=f;while(1){l=i[d+16>>2]<(h|0);c=l?c:d;d=i[(l<<2)+d>>2];if(d){continue}break}if((c|0)==(f|0)|(h|0)>2]){break b}c=c+20|0;if(!Sb(c,e+24|0)){break b}c=$j(c,e+24|0,-1);break a}c=$j(k,e+24|0,-1)}if(g[e+35|0]<=-1){bp(i[e+24>>2])}i[e+32>>2]=-1;i[e+36>>2]=1065353216;i[e+24>>2]=-1;i[e+28>>2]=-1;i[e+40>>2]=-1;c=-1<>>0>28){break c}i[e+24>>2]=c+1;c=-2<>2]=c^-1;c=-2-c|0;i[e+32>>2]=c;i[e+40>>2]=(c|0)/2;m[e+36>>2]=p(2)/p(c|0)}h=ff(i[b+12>>2],i[b+4>>2]);k=i[b+12>>2];l=i[i[b+4>>2]+48>>2];c=ho(32);i[e+8>>2]=c;i[e+12>>2]=17;i[e+16>>2]=-2147483616;g[c+17|0]=0;g[c+16|0]=j[6184];f=j[6180]|j[6181]<<8|(j[6182]<<16|j[6183]<<24);d=j[6176]|j[6177]<<8|(j[6178]<<16|j[6179]<<24);g[c+8|0]=d;g[c+9|0]=d>>>8;g[c+10|0]=d>>>16;g[c+11|0]=d>>>24;g[c+12|0]=f;g[c+13|0]=f>>>8;g[c+14|0]=f>>>16;g[c+15|0]=f>>>24;f=j[6172]|j[6173]<<8|(j[6174]<<16|j[6175]<<24);d=j[6168]|j[6169]<<8|(j[6170]<<16|j[6171]<<24);g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;g[c+4|0]=f;g[c+5|0]=f>>>8;g[c+6|0]=f>>>16;g[c+7|0]=f>>>24;d:{e:{f=l+16|0;d=i[f>>2];if(!d){break e}c=f;while(1){n=i[d+16>>2]<(k|0);c=n?c:d;d=i[(n<<2)+d>>2];if(d){continue}break}if((c|0)==(f|0)|(k|0)>2]){break e}c=c+20|0;if(!Sb(c,e+8|0)){break e}c=$j(c,e+8|0,h);break d}c=$j(l,e+8|0,h)}if(g[e+19|0]<=-1){bp(i[e+8>>2])}f:{g:{switch(c|0){case 6:c=i[b+4>>2];b=i[b+12>>2];f=i[i[i[c+4>>2]+8>>2]+(b<<2)>>2];h:{if((I[i[i[c>>2]+8>>2]](c)|0)==1){te(e+8|0,c,b,e+24|0);d=i[e+8>>2];if(d){break h}}d=ho(28);i[d+4>>2]=f;b=i[e+28>>2];i[d+8>>2]=i[e+24>>2];i[d+12>>2]=b;b=i[e+36>>2];i[d+16>>2]=i[e+32>>2];i[d+20>>2]=b;i[d+24>>2]=i[e+40>>2];i[d>>2]=9572}i[a>>2]=d;break f;case 0:c=i[b+4>>2];f=i[i[i[c+4>>2]+8>>2]+(i[b+12>>2]<<2)>>2];if((I[i[i[c>>2]+8>>2]](c)|0)==1){I[i[i[c>>2]+8>>2]](c)|0}b=ho(28);i[b+4>>2]=f;c=i[e+28>>2];i[b+8>>2]=i[e+24>>2];i[b+12>>2]=c;c=i[e+36>>2];i[b+16>>2]=i[e+32>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+40>>2];i[b>>2]=9572;i[a>>2]=b;break f;default:break g}}i[a>>2]=0}F=e+48|0}function oj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,k=0,m=0,n=0,p=0;f=F-16|0;F=f;c=i[b+56>>2];m=i[c+100>>2]-i[c+96>>2]|0;d=(m|0)/12|0;Jb(d,i[b+44>>2]);Jb(i[i[b+56>>2]+80>>2],i[b+44>>2]);n=i[b+48>>2];c=ho(32);i[f>>2]=c;i[f+4>>2]=21;i[f+8>>2]=-2147483616;g[c+21|0]=0;e=j[13293]|j[13294]<<8|(j[13295]<<16|j[13296]<<24);k=j[13289]|j[13290]<<8|(j[13291]<<16|j[13292]<<24);g[c+13|0]=k;g[c+14|0]=k>>>8;g[c+15|0]=k>>>16;g[c+16|0]=k>>>24;g[c+17|0]=e;g[c+18|0]=e>>>8;g[c+19|0]=e>>>16;g[c+20|0]=e>>>24;e=j[13288]|j[13289]<<8|(j[13290]<<16|j[13291]<<24);k=j[13284]|j[13285]<<8|(j[13286]<<16|j[13287]<<24);g[c+8|0]=k;g[c+9|0]=k>>>8;g[c+10|0]=k>>>16;g[c+11|0]=k>>>24;g[c+12|0]=e;g[c+13|0]=e>>>8;g[c+14|0]=e>>>16;g[c+15|0]=e>>>24;e=j[13280]|j[13281]<<8|(j[13282]<<16|j[13283]<<24);k=j[13276]|j[13277]<<8|(j[13278]<<16|j[13279]<<24);g[c|0]=k;g[c+1|0]=k>>>8;g[c+2|0]=k>>>16;g[c+3|0]=k>>>24;g[c+4|0]=e;g[c+5|0]=e>>>8;g[c+6|0]=e>>>16;g[c+7|0]=e>>>24;e=ck(n,f,0);if(g[f+11|0]<=-1){bp(i[f>>2])}c=i[b+44>>2];a:{if(e){g[f|0]=0;d=i[c+20>>2];if((d|0)<0?1:(d|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],f,f+1|0)}pj(b);break a}g[f|0]=1;e=i[c+20>>2];if((e|0)<0?1:(e|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],f,f+1|0)}e=i[b+56>>2];c=i[e+80>>2];if(c>>>0<=255){if(!m){break a}p=d>>>0>1?d:1;k=f+1|0;m=0;while(1){c=i[b+44>>2];n=i[e+96>>2]+o(m,12)|0;g[f|0]=i[n>>2];d=i[c+20>>2];e=i[c+16>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ca(c,i[c+4>>2],f,k);c=i[b+44>>2];e=i[c+16>>2];d=i[c+20>>2]}g[f|0]=i[n+4>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ca(c,i[c+4>>2],f,k);c=i[b+44>>2];e=i[c+16>>2];d=i[c+20>>2]}g[f|0]=i[n+8>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ca(c,i[c+4>>2],f,k)}m=m+1|0;if((p|0)==(m|0)){break a}e=i[b+56>>2];continue}}if(c>>>0<=65535){if(!m){break a}p=d>>>0>1?d:1;k=f+2|0;m=0;while(1){c=i[b+44>>2];n=i[e+96>>2]+o(m,12)|0;h[f>>1]=i[n>>2];d=i[c+20>>2];e=i[c+16>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ca(c,i[c+4>>2],f,k);c=i[b+44>>2];e=i[c+16>>2];d=i[c+20>>2]}h[f>>1]=i[n+4>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ca(c,i[c+4>>2],f,k);c=i[b+44>>2];e=i[c+16>>2];d=i[c+20>>2]}h[f>>1]=i[n+8>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ca(c,i[c+4>>2],f,k)}m=m+1|0;if((p|0)==(m|0)){break a}e=i[b+56>>2];continue}}if(c>>>0>=2097152){if(!m){break a}k=d>>>0>1?d:1;c=0;while(1){d=i[b+44>>2];m=i[d+20>>2];if((m|0)<0?1:(m|0)<=0?l[d+16>>2]<=0:0){n=d;m=i[d+4>>2];d=i[e+96>>2]+o(c,12)|0;ca(n,m,d,d+12|0)}c=c+1|0;if((k|0)==(c|0)){break a}e=i[b+56>>2];continue}}if(!m){break a}m=d>>>0>1?d:1;c=0;while(1){d=i[e+96>>2]+o(c,12)|0;Jb(i[d>>2],i[b+44>>2]);Jb(i[d+4>>2],i[b+44>>2]);Jb(i[d+8>>2],i[b+44>>2]);c=c+1|0;if((m|0)==(c|0)){break a}e=i[b+56>>2];continue}}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;F=f+16|0}function zh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){zh(f,d,c);a=d+4|0;continue c}zh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function yh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){yh(f,d,c);a=d+4|0;continue c}yh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function xh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){xh(f,d,c);a=d+4|0;continue c}xh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function wh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){wh(f,d,c);a=d+4|0;continue c}wh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function vh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){vh(f,d,c);a=d+4|0;continue c}vh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function uh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){uh(f,d,c);a=d+4|0;continue c}uh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function th(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){th(f,d,c);a=d+4|0;continue c}th(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function sh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){sh(f,d,c);a=d+4|0;continue c}sh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function rh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){rh(f,d,c);a=d+4|0;continue c}rh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function qh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){qh(f,d,c);a=d+4|0;continue c}qh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function ph(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){ph(f,d,c);a=d+4|0;continue c}ph(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function oh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){oh(f,d,c);a=d+4|0;continue c}oh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function nh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){nh(f,d,c);a=d+4|0;continue c}nh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function mh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){mh(f,d,c);a=d+4|0;continue c}mh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function lh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){lh(f,d,c);a=d+4|0;continue c}lh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function kh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){kh(f,d,c);a=d+4|0;continue c}kh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function Hg(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){Hg(f,d,c);a=d+4|0;continue c}Hg(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function Ah(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){Ah(f,d,c);a=d+4|0;continue c}Ah(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function Ll(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0;e=F-48|0;F=e;a:{if(!b){break a}w=a+12|0;g=i[a+4>>2];m=i[a>>2];f=g-m|0;k=f>>2;d=i[a+12>>2];c=i[a+16>>2]-d>>2;b:{if(k>>>0>c>>>0){Ol(w,k-c|0);g=i[a+4>>2];m=i[a>>2];f=g-m|0;k=f>>2;break b}if(k>>>0>=c>>>0){break b}i[a+16>>2]=d+(k<<2)}i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;c:{if(!f){break c}if(k>>>0<1073741824){l=ho(f);i[e+36>>2]=l;i[e+32>>2]=l;i[e+40>>2]=(k<<2)+l;d=l;f=0;while(1){c=i[(f<<2)+m>>2];j=d-l>>2;d:{if(c>>>0>>0){break d}i[e+16>>2]=0;d=c+1|0;if(d>>>0>j>>>0){Gb(e+32|0,d-j|0,e+16|0);m=i[a>>2];g=i[a+4>>2];l=i[e+32>>2];break d}if(d>>>0>=j>>>0){break d}i[e+36>>2]=(d<<2)+l}d=(c<<2)+l|0;i[d>>2]=i[d>>2]+1;f=f+1|0;h=g-m|0;k=h>>2;if(f>>>0>=k>>>0){break c}d=i[e+36>>2];continue}}za(16516);x()}i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;e:{f:{if(h){if(k>>>0>=536870912){break f}n=ho(h<<1);i[e+16>>2]=n;c=k<<3;d=c+n|0;i[e+24>>2]=d;ip(n,255,c);i[e+20>>2]=d}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;c=i[e+36>>2];g=c-l|0;u=g>>2;g:{if(g){if(u>>>0>=1073741824){break g}p=ho(g);i[e>>2]=p;d=(u<<2)+p|0;i[e+8>>2]=d;f=0;j=ip(p,0,g);i[e+4>>2]=d;d=l-c|0;c=((d|0)>(g|0)?d:g)>>>2|0;d=(g|0)>-1?g:-1;d=o(c,(d|0)<1?d:1);c=d>>>0>1?d:1;h=0;while(1){d=h<<2;i[d+j>>2]=f;f=i[d+l>>2]+f|0;h=h+1|0;if((c|0)!=(h|0)){continue}break}}if(!k){break e}while(1){y=q<<2;g=i[y+m>>2];r=-1;d=q+1|0;c=(d>>>0)%3|0?d:q+ -2|0;if((c|0)!=-1){r=i[(c<<2)+m>>2]}s=-1;f=(q>>>0)%3|0;c=(f?-1:2)+q|0;if((c|0)!=-1){s=i[(c<<2)+m>>2]}h:{if(!(((g|0)!=(s|0)?!((r|0)==(s|0)|(g|0)==(r|0)):0)|f)){i[a+40>>2]=i[a+40>>2]+1;d=q+3|0;break h}c=s<<2;v=i[c+l>>2];i:{j:{if((v|0)<1){break j}f=i[c+p>>2];h=0;while(1){j=(f<<3)+n|0;c=i[j>>2];if((c|0)==-1){break j}k:{if((c|0)!=(r|0)){break k}t=i[j+4>>2];if((t|0)!=-1){c=i[(t<<2)+m>>2]}else{c=-1}if((c|0)==(g|0)){break k}while(1){l:{c=f;h=h+1|0;if((h|0)>=(v|0)){break l}z=(c<<3)+n|0;f=c+1|0;g=(f<<3)+n|0;j=i[g>>2];i[z>>2]=j;i[z+4>>2]=i[g+4>>2];if((j|0)!=-1){continue}}break}i[(c<<3)+n>>2]=-1;if((t|0)==-1){break j}c=i[w>>2];i[c+y>>2]=t;i[c+(t<<2)>>2]=q;break i}f=f+1|0;h=h+1|0;if((v|0)!=(h|0)){continue}break}}f=r<<2;c=i[f+l>>2];if((c|0)<1){break i}f=i[f+p>>2];h=0;while(1){j=(f<<3)+n|0;if(i[j>>2]==-1){i[j>>2]=s;i[j+4>>2]=q;break i}f=f+1|0;h=h+1|0;if((c|0)!=(h|0)){continue}break}}}q=d;if(d>>>0>>0){continue}break}break e}Ho();x()}Ho();x()}i[b>>2]=u;if(p){i[e+4>>2]=p;bp(p)}a=i[e+16>>2];if(a){i[e+20>>2]=a;bp(a)}a=i[e+32>>2];if(!a){break a}i[e+36>>2]=a;bp(a)}F=e+48|0;return(b|0)!=0}function bj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(i[i[a+24>>2]+(d>>>3&268435452)>>2]>>>d&1)){c=i[a+48>>2];i[a+52>>2]=c;a:{if((c|0)!=i[a+56>>2]){i[c>>2]=b;i[a+52>>2]=c+4;break a}e=ho(4);i[e>>2]=b;f=e+4|0;i[a+56>>2]=f;i[a+52>>2]=f;i[a+48>>2]=e;if(!c){break a}bp(c)}e=i[a+4>>2];c=-1;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)!=-1){c=i[i[e>>2]+(f<<2)>>2]}h=(b-o(d,3)|0?-1:2)+b|0;if((h|0)==-1){return 0}if((c|0)==-1){return 0}d=i[i[e>>2]+(h<<2)>>2];if((d|0)==-1){return 0}b=i[a+36>>2];e=b+(c>>>3&536870908)|0;g=i[e>>2];j=1<>2]=g|j;Ti(a+8|0,c,f);b=i[a+36>>2]}b=(d>>>3&536870908)+b|0;c=i[b>>2];e=1<>2]=c|e;Ti(a+8|0,d,h)}d=i[a+52>>2];if((d|0)==i[a+48>>2]){return 1}k=a+48|0;l=a+8|0;while(1){d=d+ -4|0;b=i[d>>2];c=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}e=i[a+24>>2]+(c>>>3&268435452)|0;f=i[e>>2];c=1<>2]=c|f;while(1){h=i[a+4>>2];c=i[i[h>>2]+(b<<2)>>2];if((c|0)==-1){return 0}d:{d=i[a+36>>2]+(c>>>3&536870908)|0;e=i[d>>2];f=1<>2]+(c<<2)>>2];if((g|0)!=-1){j=g+1|0;g=(j>>>0)%3|0?j:g+ -2|0;if((g|0)!=-1){h=i[i[h+12>>2]+(g<<2)>>2];if((h|0)!=-1){i[d>>2]=e|f;Ti(l,c,b);c=h+1|0;if((((c>>>0)%3|0?c:h+ -2|0)|0)==-1){break e}d=b+ -2|0;c=b+1|0;b=-1;c=(c>>>0)%3|0?c:d;if((c|0)!=-1){b=i[i[i[a+4>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;g=1<>2];j=c>>>5|0;f=i[e+(j<<2)>>2];break d}}}i[d>>2]=e|f;Ti(l,c,b)}d=-1;e=i[a+4>>2];c=-1;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)!=-1){c=i[i[e+12>>2]+(f<<2)>>2]}b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)!=-1){d=i[i[e+12>>2]+(b<<2)>>2]}b=(d|0)==-1;h=b?-1:(d>>>0)/3|0;f=(c>>>0)/3|0;f:{g=(c|0)==-1;if(!g){e=i[a+24>>2];g=g?-1:f;j=g>>>5|0;f=i[e+(j<<2)>>2];g=1<>2];j=h>>>5|0;f=i[e+(j<<2)>>2];if(!(g&f)){break d}}d=i[a+52>>2]+ -4|0;i[a+52>>2]=d;break b}if(b){b=c;break d}if(i[(h>>>3&536870908)+e>>2]>>>h&1){b=c;break d}b=i[a+52>>2];i[b+ -4>>2]=d;if((b|0)!=i[a+56>>2]){i[b>>2]=c;d=b+4|0;break c}g:{e=i[k>>2];f=b-e|0;h=f>>2;d=h+1|0;if(d>>>0<1073741824){g=f>>1;d=h>>>0<536870911?g>>>0>>0?d:g:1073741823;b=0;h:{if(!d){break h}if(d>>>0>=1073741824){break g}b=ho(d<<2)}h=b+(h<<2)|0;i[h>>2]=c;c=b+(d<<2)|0;d=h+4|0;if((f|0)>=1){hp(b,e,f)}i[a+56>>2]=c;i[a+52>>2]=d;i[a+48>>2]=b;if(!e){break b}bp(e);d=i[a+52>>2];break b}Ho();x()}za(11708);x()}i[(j<<2)+e>>2]=f|g;if((b|0)!=-1){continue}break}return 0}i[a+52>>2]=d}if(i[k>>2]!=(d|0)){continue}break}}return 1}function Bj(a){var b=0,c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;f=F+ -64|0;F=f;s=a+32|0;b=i[a+12>>2]-i[a+8>>2]>>2;e=i[a+32>>2];d=i[a+36>>2]-e>>2;a:{if(b>>>0>d>>>0){Bd(s,b-d|0);b=i[a+12>>2]-i[a+8>>2]>>2;break a}if(b>>>0>=d>>>0){break a}i[a+36>>2]=e+(b<<2)}g[f+32|0]=0;q=Cj(f+48|0,b,f+32|0);b=i[a+8>>2];c=i[a+12>>2];while(1){b:{c:{if(k>>>0>2>>>0){j=0;h=0;e=0;if((b|0)==(c|0)){break c}while(1){n=1<>>5<<2;d:{if(n&i[r+i[q>>2]>>2]){break d}d=0;p=1;m=e<<2;c=i[m+b>>2];h=i[c+4>>2];if((h|0)!=i[c+8>>2]){while(1){b=0;h=i[(d<<2)+h>>2];e:{if((I[i[i[c>>2]+24>>2]](c,h)|0)<1){break e}while(1){f:{c=i[m+i[a+8>>2]>>2];c=I[i[i[c>>2]+28>>2]](c,h,b)|0;if((c|0)==(e|0)){break f}c=i[i[a+20>>2]+(c<<2)>>2];if(i[i[q>>2]+(c>>>3&536870908)>>2]>>>c&1){break f}p=0;break e}b=b+1|0;c=i[m+i[a+8>>2]>>2];if((b|0)<(I[i[i[c>>2]+24>>2]](c,h)|0)){continue}break}}b=i[a+8>>2];c=i[m+b>>2];h=i[c+4>>2];d=d+1|0;if(d>>>0>2]-h>>2>>>0){continue}break}if(!p){break d}}i[i[s>>2]+(k<<2)>>2]=e;d=r+i[q>>2]|0;i[d>>2]=n|i[d>>2];j=1;k=k+1|0}e=e+1|0;c=i[a+12>>2];h=c-b>>2;if(e>>>0>>0){continue}break}break c}i[f+40>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;b=i[a+4>>2];d=i[b+12>>2];b=i[b+8>>2];g[f+15|0]=0;h=Cj(f+16|0,d-b>>2,f+15|0);c=i[a+8>>2];d=i[a+12>>2];g:{if((c|0)==(d|0)){l=1;break g}while(1){h:{k=i[i[s>>2]+(t<<2)>>2]<<2;b=i[k+c>>2];e=i[b+8>>2];j=i[b+4>>2];b=e-j|0;if((b|0)<8){break h}c=b>>2;l=i[f+32>>2];d=i[f+36>>2]-l>>2;i:{if(c>>>0>d>>>0){Bd(f+32|0,c-d|0);break i}if(c>>>0>=d>>>0){break i}i[f+36>>2]=l+(c<<2)}d=j-e|0;b=o(((d|0)>(b|0)?d:b)>>>2|0,(b|0)<1?b:1);r=(b|0)>1?b:1;j=0;while(1){j:{if((j|0)<(c|0)){e=i[h>>2];d=0;l=0;while(1){u=1<>>5<<2;k:{if(u&i[n+e>>2]){break k}b=0;e=i[k+i[a+8>>2]>>2];m=i[i[e+4>>2]+(d<<2)>>2];if((I[i[i[e>>2]+24>>2]](e,m)|0)>0){while(1){e=i[k+i[a+8>>2]>>2];p=I[i[i[e>>2]+28>>2]](e,m,b)|0;e=i[h>>2];if(!(i[e+(p>>>3&536870908)>>2]>>>p&1)){break k}b=b+1|0;e=i[k+i[a+8>>2]>>2];if((b|0)<(I[i[i[e>>2]+24>>2]](e,m)|0)){continue}break}}i[i[f+32>>2]+(j<<2)>>2]=d;e=i[h>>2];b=n+e|0;i[b>>2]=u|i[b>>2];l=1;j=j+1|0}d=d+1|0;if((r|0)!=(d|0)){continue}break}break j}Dj(i[k+i[a+8>>2]>>2],f+32|0);c=i[a+8>>2];d=i[a+12>>2];break h}if(!(l^1)|(j|0)>=(c|0)){continue}break}l=0;break g}l=1;t=t+1|0;if(t>>>0>2>>>0){continue}break}}a=i[h>>2];if(a){bp(a)}a=i[f+32>>2];if(!a){break b}i[f+36>>2]=a;bp(a);break b}if(j&1|k>>>0>=h>>>0){continue}}break}a=i[q>>2];if(a){bp(a)}F=f- -64|0;return l}function Ma(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=F-96|0;F=e;i[e+72>>2]=0;i[e+76>>2]=0;i[e+64>>2]=0;i[e+68>>2]=0;i[e+80>>2]=1065353216;c=i[a+80>>2];i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[e+32>>2]=h;d=c+h|0;i[e+40>>2]=d;ip(h,0,c);i[e+36>>2]=d;while(1){c=b;l=i[c+48>>2];d=i[i[c>>2]>>2];u=p;l=up(i[c+40>>2],i[c+44>>2],p,0)+l|0;c=d+l|0;l=j[c+12|0]|j[c+13|0]<<8|(j[c+14|0]<<16|j[c+15|0]<<24);q=j[c+8|0]|j[c+9|0]<<8|(j[c+10|0]<<16|j[c+11|0]<<24);i[e+56>>2]=q;i[e+60>>2]=l;d=j[c+4|0]|j[c+5|0]<<8|(j[c+6|0]<<16|j[c+7|0]<<24);l=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+48>>2]=l;i[e+52>>2]=d;s=i[e+52>>2];t=i[e+60>>2];c:{d:{e:{if(!m){break e}d=i[e+64>>2];r=(((l^318)+239^s)+239^q)+239^t;c=r&m+ -1;v=xp(m)>>>0>1;f:{if(!v){break f}c=r;if(c>>>0>>0){break f}c=(r>>>0)%(m>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}w=m+ -1|0;while(1){k=i[d+4>>2];g:{if((r|0)!=(k|0)){h:{if(!v){k=k&w;break h}if(k>>>0>>0){break h}k=(k>>>0)%(m>>>0)|0}if((c|0)==(k|0)){break g}break e}if(i[d+8>>2]!=(l|0)|i[d+12>>2]!=(s|0)|i[d+16>>2]!=(q|0)){break g}if(i[d+20>>2]==(t|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+24>>2]=n;i[e+20>>2]=t;i[e+16>>2]=q;i[e+12>>2]=s;i[e+8>>2]=l;_a(e+88|0,e- -64|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,n)|0,e+48|0,c);h=i[e+32>>2];i[h+(u<<2)>>2]=n;n=n+1|0;break c}i[(u<<2)+h>>2]=i[d+24>>2]}c=f;f=p+1|0;if(f>>>0<1){c=c+1|0}p=f;f=c;d=i[a+80>>2];if(!c&p>>>0>>0|c>>>0<0){m=i[e+68>>2];continue}break}if((d|0)!=(n|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}h=i[e+32>>2];if(!d){break i}b=i[a+68>>2];k=0;while(1){c=k<<2;i[c+b>>2]=i[c+h>>2];k=k+1|0;if((k|0)!=(d|0)){continue}break}}i[a+80>>2]=n}if(!h){break b}i[e+36>>2]=h;bp(h)}d=i[e+72>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+64>>2];i[e+64>>2]=0;if(a){bp(a)}F=e+96|0;return n}Ho();x()}function jh(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;Ah(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function ih(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;zh(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function hh(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;yh(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function gh(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;xh(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function eh(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;wh(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function vm(a,b){var c=0,d=0,e=0,f=0,h=0,k=0;a:{b:{d=b;h=i[b>>2];if(h){c=i[b+4>>2];if(!c){break b}while(1){d=c;c=i[c>>2];if(c){continue}break}}h=i[d+4>>2];if(h){break b}h=0;e=1;break a}i[h+8>>2]=i[d+8>>2];e=0}f=i[d+8>>2];c=i[f>>2];c:{if((d|0)==(c|0)){i[f>>2]=h;if((a|0)==(d|0)){c=0;a=h;break c}c=i[f+4>>2];break c}i[f+4>>2]=h}d:{e:{f:{k=!j[d+12|0];if((b|0)!=(d|0)){f=i[b+8>>2];i[d+8>>2]=f;i[f+((i[i[b+8>>2]>>2]!=(b|0))<<2)>>2]=d;f=i[b>>2];i[d>>2]=f;i[f+8>>2]=d;f=i[b+4>>2];i[d+4>>2]=f;if(f){i[f+8>>2]=d}g[d+12|0]=j[b+12|0];a=(a|0)==(b|0)?d:a}if(!(k|!a)){if(e){while(1){b=j[c+12|0];g:{e=i[c+8>>2];if(i[e>>2]!=(c|0)){if(!b){g[c+12|0]=1;g[e+12|0]=0;d=i[e+4>>2];b=i[d>>2];i[e+4>>2]=b;if(b){i[b+8>>2]=e}i[d+8>>2]=i[e+8>>2];b=i[e+8>>2];i[(((e|0)!=i[b>>2])<<2)+b>>2]=d;i[d>>2]=e;i[e+8>>2]=d;b=i[c>>2];a=(b|0)==(a|0)?c:a;c=i[b+4>>2]}d=i[c>>2];if(!(j[d+12|0]?0:d)){b=i[c+4>>2];if(j[b+12|0]?0:b){break f}g[c+12|0]=0;c=i[c+8>>2];h:{if((c|0)==(a|0)){c=a;break h}if(j[c+12|0]){break g}}g[c+12|0]=1;return}b=i[c+4>>2];if(b){break f}break e}i:{if(b){b=c;break i}g[c+12|0]=1;g[e+12|0]=0;b=i[c+4>>2];i[e>>2]=b;if(b){i[b+8>>2]=e}i[c+8>>2]=i[e+8>>2];d=i[e+8>>2];j:{if((e|0)==i[d>>2]){i[d>>2]=c;b=i[e>>2];break j}i[d+4>>2]=c}i[c+4>>2]=e;i[e+8>>2]=c;a=(a|0)==(e|0)?c:a}d=i[b>>2];k:{if(!(!d|j[d+12|0])){c=b;break k}c=i[b+4>>2];if(!(j[c+12|0]?0:c)){g[b+12|0]=0;c=i[b+8>>2];if(j[c+12|0]?(c|0)!=(a|0):0){break g}g[c+12|0]=1;return}if(d){if(!j[d+12|0]){c=b;break k}c=i[b+4>>2]}g[c+12|0]=1;g[b+12|0]=0;a=i[c>>2];i[b+4>>2]=a;if(a){i[a+8>>2]=b}i[c+8>>2]=i[b+8>>2];a=i[b+8>>2];i[((i[a>>2]!=(b|0))<<2)+a>>2]=c;i[c>>2]=b;i[b+8>>2]=c;d=b}a=c;c=i[c+8>>2];g[a+12|0]=j[c+12|0];g[c+12|0]=1;g[d+12|0]=1;b=i[c>>2];a=i[b+4>>2];i[c>>2]=a;if(a){i[a+8>>2]=c}i[b+8>>2]=i[c+8>>2];a=i[c+8>>2];i[(((c|0)!=i[a>>2])<<2)+a>>2]=b;i[b+4>>2]=c;i[c+8>>2]=b;return}b=i[c+8>>2];c=i[((i[b>>2]==(c|0))<<2)+b>>2];continue}}g[h+12|0]=1}return}if(j[b+12|0]){break e}d=c;break d}g[d+12|0]=1;g[c+12|0]=0;a=i[d+4>>2];i[c>>2]=a;if(a){i[a+8>>2]=c}i[d+8>>2]=i[c+8>>2];a=i[c+8>>2];i[((i[a>>2]!=(c|0))<<2)+a>>2]=d;i[d+4>>2]=c;i[c+8>>2]=d;b=c}c=i[d+8>>2];g[d+12|0]=j[c+12|0];g[c+12|0]=1;g[b+12|0]=1;b=i[c+4>>2];a=i[b>>2];i[c+4>>2]=a;if(a){i[a+8>>2]=c}i[b+8>>2]=i[c+8>>2];a=i[c+8>>2];i[(((c|0)!=i[a>>2])<<2)+a>>2]=b;i[b>>2]=c;i[c+8>>2]=b}function ch(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*524288+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==524288){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;vh(g,p,k+24|0);g:{if((n|0)<524288){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+524288;f=0;break g}c=n+ -524288|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=524288/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==524288){n=524288;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=524288){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*19073486328125e-19)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function ah(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*262144+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==262144){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;uh(g,p,k+24|0);g:{if((n|0)<262144){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+262144;f=0;break g}c=n+ -262144|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=262144/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==262144){n=262144;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=262144){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*3814697265625e-18)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Nl(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;k=F-48|0;F=k;i[a+36>>2]=b;p=a+24|0;d=i[a+24>>2];c=i[a+28>>2]-d>>2;a:{if(c>>>0>>0){Ol(p,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+28>>2]=d+(b<<2)}g[k+16|0]=0;l=Cj(k+32|0,b,k+16|0);c=i[a>>2];d=i[a+4>>2];g[k+8|0]=0;q=Cj(k+16|0,d-c>>2,k+8|0);b:{h=i[a+4>>2];c=i[a>>2];if(h-c>>2>>>0<3){break b}t=a+48|0;while(1){m=o(r,3);e=i[(m<<2)+c>>2];d=m+1|0;c:{d:{if((d|0)==-1){j=0;f=-1;break d}f=i[(d<<2)+c>>2];j=m+2|0;d=-1;if((j|0)==-1){break c}}d=i[(j<<2)+c>>2]}e:{if(!((d|0)==(f|0)|(e|0)==(f|0)|(d|0)==(e|0))){j=i[q>>2];n=0;while(1){d=m+n|0;f:{if(i[(d>>>3&536870908)+j>>2]>>>d&1){break f}h=i[i[a>>2]+(d<<2)>>2];i[k+8>>2]=h;c=1<>2];f=h>>>5|0;j=i[e+(f<<2)>>2];s=c&j;if(s){Pl(p,16512);Pl(t,k+8|0);c=i[l+4>>2];f=i[l+8>>2];if((c|0)==f<<5){if((c+1|0)<=-1){break e}e=l;if(c>>>0<=1073741822){h=c+32&-32;c=f<<6;c=c>>>0>>0?h:c}else{c=2147483647}bd(e,c);c=i[l+4>>2]}i[l+4>>2]=c+1;e=i[l>>2];f=e+(c>>>3&536870908)|0;h=i[f>>2];u=f,v=yp(-2,c)&h,i[u>>2]=v;i[k+8>>2]=b;c=1<>>5|0;j=i[(f<<2)+e>>2];b=b+1|0}i[(f<<2)+e>>2]=c|j;j=i[q>>2];c=d;g:{while(1){if((c|0)==-1){break g}e=(c>>>3&536870908)+j|0;i[e>>2]=i[e>>2]|1<>2];i[i[p>>2]+(e<<2)>>2]=c;if(s){i[i[a>>2]+(c<<2)>>2]=e}h=d;f=c+1|0;c=(f>>>0)%3|0?f:c+ -2|0;e=-1;h:{if((c|0)==-1){break h}f=i[i[a+12>>2]+(c<<2)>>2];e=-1;if((f|0)==-1){break h}c=f+1|0;e=(c>>>0)%3|0?c:f+ -2|0}c=e;if((h|0)!=(c|0)){continue}break}if((d|0)!=-1){break f}}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)==-1){break f}d=i[i[a+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)==-1){break f}while(1){d=(c>>>3&536870908)+j|0;i[d>>2]=i[d>>2]|1<>2]+(c<<2)>>2]=i[k+8>>2]}d=((c>>>0)%3|0?-1:2)+c|0;if((d|0)==-1){break f}d=i[i[a+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)!=-1){continue}break}}n=n+1|0;if((n|0)!=3){continue}break}c=i[a>>2];h=i[a+4>>2]}r=r+1|0;if(r>>>0<(h-c>>2>>>0)/3>>>0){continue}break b}break}Ho();x()}j=0;i[a+44>>2]=0;b=i[l>>2];c=i[l+4>>2];d=c>>>5|0;f=c&31;if(d|f){h=(d<<2)+b|0;c=0;e=b;while(1){if(!(i[e>>2]>>>c&1)){j=j+1|0;i[a+44>>2]=j}d=(c|0)==31;c=d?0:c+1|0;e=d?e+4|0:e;if((h|0)!=(e|0)|(c|0)!=(f|0)){continue}break}}a=i[q>>2];if(a){bp(a);b=i[l>>2]}if(b){bp(b)}F=k+48|0}function _g(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*65536+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==65536){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;th(g,p,k+24|0);g:{if((n|0)<65536){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+65536;f=0;break g}c=n+ -65536|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=65536/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==65536){n=65536;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=65536){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*152587890625e-16)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Yg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*32768+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==32768){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;sh(g,p,k+24|0);g:{if((n|0)<32768){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+32768;f=0;break g}c=n+ -32768|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=32768/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==32768){n=32768;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=32768){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*30517578125e-15)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Wg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*8192+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==8192){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;rh(g,p,k+24|0);g:{if((n|0)<8192){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -8192;f=0;break g}c=n+ -8192|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=8192/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==8192){n=8192;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=8192){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.0001220703125)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function ng(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;Hg(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Vg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;qh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Ug(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;ph(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Tg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;oh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Sg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;nh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Rg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;mh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Qg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;lh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Pg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;kh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Ci(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;m=F-16|0;F=m;i[a+124>>2]=i[a+124>>2]+1;g=-1;d=i[a+120>>2];c=-1;a:{if((d|0)==-1){break a}c=d+1|0;g=(c>>>0)%3|0?c:d+ -2|0;c=d+ -1|0;if((d>>>0)%3|0){break a}c=d+2|0}e=i[a+104>>2];f=i[a+92>>2];h=f+(g<<2)|0;j=e+(i[h>>2]<<2)|0;k=i[j>>2];b:{c:{switch(b|0){case 0:case 1:i[j>>2]=k+ -1;d=(i[(c<<2)+f>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -1;d=1;if((b|0)!=1){break b}d:{if((c|0)==-1){break d}c=i[i[i[a+88>>2]+12>>2]+(c<<2)>>2];if((c|0)==-1){break d}while(1){e:{e=i[a+64>>2];if(I[i[i[e>>2]+36>>2]](e,(c>>>0)/3|0)|0){break e}e=c+1|0;c=(e>>>0)%3|0?e:c+ -2|0;if((c|0)==-1){d=d+1|0;break e}d=d+1|0;c=i[i[i[a+88>>2]+12>>2]+(c<<2)>>2];if((c|0)!=-1){continue}}break}e=i[a+104>>2];f=i[a+92>>2]}h=a+104|0;i[(i[(i[a+120>>2]<<2)+f>>2]<<2)+e>>2]=d;f=1;f:{if((g|0)==-1){break f}c=i[i[i[a+88>>2]+12>>2]+(g<<2)>>2];if((c|0)==-1){break f}e=i[a+108>>2]-e>>2;while(1){d=i[a+64>>2];g=(c>>>0)/3|0;if(I[i[i[d>>2]+36>>2]](d,g)|0){break f}d=c+1|0;i[i[a+92>>2]+(((d>>>0)%3|0?d:c+ -2|0)<<2)>>2]=e;c=(c-o(g,3)|0?-1:2)+c|0;if((c|0)==-1){f=f+1|0;break f}f=f+1|0;c=i[i[i[a+88>>2]+12>>2]+(c<<2)>>2];if((c|0)!=-1){continue}break}}i[m+12>>2]=f;Di(h,m+12|0);break b;case 5:d=(i[(d<<2)+f>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -1;d=(i[h>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -1;c=(i[(c<<2)+f>>2]<<2)+e|0;i[c>>2]=i[c>>2]+ -2;break b;case 3:d=(i[(d<<2)+f>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -1;d=(i[h>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -2;c=(i[(c<<2)+f>>2]<<2)+e|0;i[c>>2]=i[c>>2]+ -1;break b;case 7:break c;default:break b}}d=(i[(d<<2)+f>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -2;d=(i[h>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -2;c=(i[(c<<2)+f>>2]<<2)+e|0;i[c>>2]=i[c>>2]+ -2}g:{h:{f=i[a+116>>2];i:{if((f|0)==-1){break i}e=i[a+128>>2];c=e;d=i[a+136>>2];if((k|0)>=(c|0)){c=i[a+132>>2];c=(k|0)>(c|0)?c:k}e=o(c-e|0,12)+d|0;g=e+4|0;k=i[(f<<2)+12080>>2];c=i[e+4>>2];j=i[e+8>>2];if(c>>>0>>0){i[c>>2]=k;i[g>>2]=c+4;break i}f=i[e>>2];h=c-f|0;l=h>>2;d=l+1|0;if(d>>>0>=1073741824){break h}j=j-f|0;c=j>>1;d=j>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;j:{if(!d){break j}if(d>>>0>=1073741824){break g}c=ho(d<<2)}j=e+8|0;l=c+(l<<2)|0;i[l>>2]=k;d=c+(d<<2)|0;k=l+4|0;if((h|0)>=1){hp(c,f,h)}i[e>>2]=c;i[g>>2]=k;i[j>>2]=d;if(!f){break i}bp(f)}i[a+116>>2]=b;F=m+16|0;return}Ho();x()}za(11708);x()}function Ua(a,b){var c=0,d=0,e=0,f=0,h=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;e=F-80|0;F=e;i[e+56>>2]=0;i[e+60>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+64>>2]=1065353216;d=i[a+80>>2];i[e+32>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;a:{b:{if(!d){break b}if(d>>>0>=1073741824){break a}d=d<<2;h=ho(d);i[e+24>>2]=h;f=d+h|0;i[e+32>>2]=f;ip(h,0,d);i[e+28>>2]=f;while(1){d=b;c=i[d+48>>2];f=i[i[d>>2]>>2];t=s;c=up(i[d+40>>2],i[d+44>>2],s,0)+c|0;c=f+c|0;d=j[c+4|0]|j[c+5|0]<<8|(j[c+6|0]<<16|j[c+7|0]<<24);p=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+40>>2]=p;i[e+44>>2]=d;c:{d:{e:{if(!m){break e}c=i[e+48>>2];u=d>>>16|0;v=d&65535;w=((d&65535)<<16|p>>>16)&65535;z=p;q=u^(v^(w^((p^318)&65535)+239)+239)+239;f=q&m+ -1;y=xp(m)>>>0>1;f:{if(!y){break f}f=q;if(f>>>0>>0){break f}f=(q>>>0)%(m>>>0)|0}c=i[(f<<2)+c>>2];if(!c){break e}c=i[c>>2];if(!c){break e}A=m+ -1|0;while(1){l=i[c+4>>2];g:{if((q|0)!=(l|0)){h:{if(!y){l=l&A;break h}if(l>>>0>>0){break h}l=(l>>>0)%(m>>>0)|0}if((f|0)==(l|0)){break g}break e}if(k[c+8>>1]!=(z&65535)|k[c+10>>1]!=(w|0)|k[c+12>>1]!=(v|0)){break g}if(k[c+14>>1]==(u|0)){break d}}c=i[c>>2];if(c){continue}break}}i[e+16>>2]=n;i[e+8>>2]=p;i[e+12>>2]=d;wb(e+72|0,e+48|0,e+8|0,e+8|0);d=i[a+40>>2];hp(i[i[a>>2]>>2]+o(d,n)|0,e+40|0,d);h=i[e+24>>2];i[h+(t<<2)>>2]=n;n=n+1|0;break c}i[(t<<2)+h>>2]=i[c+16>>2]}d=r;f=s+1|0;if(f>>>0<1){d=d+1|0}s=f;r=d;c=i[a+80>>2];if(!d&f>>>0>>0|d>>>0<0){m=i[e+52>>2];continue}break}if((c|0)!=(n|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}d=f-b|0;r=(d|0)>-1?d:-1;f=b-f|0;d=o((r|0)<1?r:1,((f|0)>(d|0)?f:d)>>>2|0);d=d>>>0>1?d:1;c=0;while(1){f=b+(c<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];c=c+1|0;if((d|0)!=(c|0)){continue}break}break i}g[a+84|0]=0;d=i[a+68>>2];b=i[a+72>>2]-d>>2;j:{if(c>>>0>b>>>0){Xa(a+68|0,c-b|0,1420);c=i[a+80>>2];break j}if(c>>>0>=b>>>0){break j}i[a+72>>2]=d+(c<<2)}h=i[e+24>>2];if(!c){break i}b=i[a+68>>2];l=0;while(1){d=l<<2;i[d+b>>2]=i[d+h>>2];l=l+1|0;if((l|0)!=(c|0)){continue}break}}i[a+80>>2]=n}if(!h){break b}i[e+28>>2]=h;bp(h)}c=i[e+56>>2];if(c){while(1){a=i[c>>2];bp(c);c=a;if(c){continue}break}}a=i[e+48>>2];i[e+48>>2]=0;if(a){bp(a)}F=e+80|0;return n}Ho();x()}function Fh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;g=F-16|0;F=g;b=i[a+64>>2];a:{if(!b){break a}l=I[i[i[b>>2]+32>>2]](b)|0;if(!l){break a}q=(i[l+28>>2]-i[l+24>>2]>>2)-i[l+44>>2]|0;b=i[a+56>>2];d=i[b+8>>2];b:{if((i[b+12>>2]-d|0)<5){break b}i[g+8>>2]=0;i[g>>2]=0;i[g+4>>2]=0;c:{d:{while(1){e:{f:{if(!i[i[(c<<2)+d>>2]+56>>2]){break f}h=I[i[i[a>>2]+56>>2]](a,c)|0;if(!h){break f}if(i[g+8>>2]!=(f|0)){i[f>>2]=h;f=f+4|0;i[g+4>>2]=f;break f}j=i[g>>2];d=f-j|0;f=d>>2;e=f+1|0;if(e>>>0>=1073741824){break e}k=d>>1;e=f>>>0<536870911?k>>>0>>0?e:k:1073741823;b=0;g:{if(!e){break g}if(e>>>0>=1073741824){break d}b=ho(e<<2)}f=b+(f<<2)|0;i[f>>2]=h;e=b+(e<<2)|0;f=f+4|0;if((d|0)>=1){hp(b,j,d)}i[g+8>>2]=e;i[g+4>>2]=f;i[g>>2]=b;if(!j){break f}bp(j)}m=i[a+56>>2];d=i[m+8>>2];c=c+1|0;if((c|0)>2]-d>>2){continue}break c}break}Ho();x()}za(11116);x()}n=i[l+24>>2];c=i[l+28>>2];h:{if((n|0)==(c|0)){k=i[g>>2];break h}b=c-n|0;j=(b|0)>-1?b:-1;c=n-c|0;b=o((j|0)<1?j:1,((c|0)>(b|0)?c:b)>>>2|0);s=b>>>0>1?b:1;k=i[g>>2];b=f-k|0;c=(b|0)>-1?b:-1;d=(c|0)<1?c:1;c=k-f|0;b=o(d,((c|0)>(b|0)?c:b)>>>2|0);t=b>>>0>1?b:1;while(1){e=i[(r<<2)+n>>2];if((e|0)!=-1){i:{if((e|0)<=-1){c=(e>>>0)%3|0;b=-1;break i}b=(e>>>0)/3|0;c=e-o(b,3)|0;b=i[(i[m+96>>2]+o(b,12)|0)+(c<<2)>>2]}p=0;c=e+(c?-1:2)|0;j:{if((c|0)==-1){break j}c=i[i[l+12>>2]+(c<<2)>>2];if((c|0)==-1){break j}j=e;d=c+((c>>>0)%3|0?-1:2)|0;if((d|0)==-1){break j}while(1){c=(d|0)<0?-1:i[(i[m+96>>2]+o((d>>>0)/3|0,12)|0)+((d>>>0)%3<<2)>>2];k:{if((b|0)==(c|0)){c=0;if((f|0)==(k|0)){c=b;break k}l:{while(1){h=i[i[(c<<2)+k>>2]+28>>2];if(i[h+(d<<2)>>2]!=i[h+(j<<2)>>2]){break l}c=c+1|0;if((t|0)!=(c|0)){continue}break}c=b;break k}c=b}p=p+1|0}if((d|0)==(e|0)|(d|0)==-1){break j}b=((d>>>0)%3|0?-1:2)+d|0;if((b|0)==-1){break j}h=i[i[l+12>>2]+(b<<2)>>2];if((h|0)==-1){break j}b=c;j=d;c=h+((h>>>0)%3|0?-1:2)|0;d=c;if((c|0)!=-1){continue}break}}c=1;b=e+1|0;b=(b>>>0)%3|0?b:e+ -2|0;m:{if((b|0)==-1){break m}b=i[i[l+12>>2]+(b<<2)>>2];if((b|0)==-1){break m}c=b+1|0;c=(((c>>>0)%3|0?c:b+ -2|0)|0)==-1}q=(q+p|0)-((c^1)&(p|0)!=0)|0}r=r+1|0;if((s|0)!=(r|0)){continue}break}}if(!k){break b}bp(k)}i[a+52>>2]=q}F=g+16|0}function La(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=F-80|0;F=e;i[e+56>>2]=0;i[e+60>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+64>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[e+16>>2]=h;d=c+h|0;i[e+24>>2]=d;ip(h,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];n=i[i[c>>2]>>2];t=p;d=up(i[c+40>>2],i[c+44>>2],p,0)+d|0;c=n+d|0;q=j[c+8|0]|j[c+9|0]<<8|(j[c+10|0]<<16|j[c+11|0]<<24);i[e+40>>2]=q;d=j[c+4|0]|j[c+5|0]<<8|(j[c+6|0]<<16|j[c+7|0]<<24);r=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+32>>2]=r;i[e+36>>2]=d;s=i[e+36>>2];c:{d:{e:{if(!l){break e}d=i[e+48>>2];n=((r^318)+239^s)+239^q;c=n&l+ -1;u=xp(l)>>>0>1;f:{if(!u){break f}c=n;if(c>>>0>>0){break f}c=(n>>>0)%(l>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}v=l+ -1|0;while(1){k=i[d+4>>2];g:{if((n|0)!=(k|0)){h:{if(!u){k=k&v;break h}if(k>>>0>>0){break h}k=(k>>>0)%(l>>>0)|0}if((c|0)==(k|0)){break g}break e}if(i[d+8>>2]!=(r|0)|i[d+12>>2]!=(s|0)){break g}if(i[d+16>>2]==(q|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=m;i[e+8>>2]=q;i[e+4>>2]=s;i[e>>2]=r;Za(e+72|0,e+48|0,e,e);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,m)|0,e+32|0,c);h=i[e+16>>2];i[h+(t<<2)>>2]=m;m=m+1|0;break c}i[(t<<2)+h>>2]=i[d+20>>2]}c=f;f=p+1|0;if(f>>>0<1){c=c+1|0}p=f;f=c;d=i[a+80>>2];if(!c&p>>>0>>0|c>>>0<0){l=i[e+52>>2];continue}break}if((d|0)!=(m|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}h=i[e+16>>2];if(!d){break i}b=i[a+68>>2];k=0;while(1){c=k<<2;i[c+b>>2]=i[c+h>>2];k=k+1|0;if((k|0)!=(d|0)){continue}break}}i[a+80>>2]=m}if(!h){break b}i[e+20>>2]=h;bp(h)}d=i[e+56>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+48>>2];i[e+48>>2]=0;if(a){bp(a)}F=e+80|0;return m}Ho();x()}function rd(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;a:{b:{c:{d:{e:{switch(b+ -1|0){case 0:b=ho(60);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break d}c=ho(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=hp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=4380;break a;case 3:b=ho(168);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break c}c=ho(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=hp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=4804;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=0;i[b+92>>2]=0;i[b+96>>2]=0;i[b+100>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;cg(b+112|0);i[b+160>>2]=0;i[b+152>>2]=0;i[b+156>>2]=0;break a;case 4:b=ho(104);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break b}c=ho(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=hp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=e+8|0;d=i[c>>2];f=i[c+4>>2];i[b+84>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=5040;i[b+52>>2]=d;i[b+56>>2]=f;d=i[e+4>>2];i[b+88>>2]=i[e>>2];i[b+92>>2]=d;d=i[c+4>>2];i[b+96>>2]=i[c>>2];i[b+100>>2]=d;break a;case 5:b=ho(144);td(b,c,d,e);break a;default:break e}}i[a>>2]=0;return}Ho();x()}Ho();x()}Ho();x()}i[a>>2]=b}function qd(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;a:{b:{c:{d:{e:{switch(b+ -1|0){case 0:b=ho(60);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break d}c=ho(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=hp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=2476;break a;case 3:b=ho(168);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break c}c=ho(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=hp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=3240;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=0;i[b+92>>2]=0;i[b+96>>2]=0;i[b+100>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;cg(b+112|0);i[b+160>>2]=0;i[b+152>>2]=0;i[b+156>>2]=0;break a;case 4:b=ho(104);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break b}c=ho(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=hp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=e+8|0;d=i[c>>2];f=i[c+4>>2];i[b+84>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=3488;i[b+52>>2]=d;i[b+56>>2]=f;d=i[e+4>>2];i[b+88>>2]=i[e>>2];i[b+92>>2]=d;d=i[c+4>>2];i[b+96>>2]=i[c>>2];i[b+100>>2]=d;break a;case 5:b=ho(144);sd(b,c,d,e);break a;default:break e}}i[a>>2]=0;return}Ho();x()}Ho();x()}Ho();x()}i[a>>2]=b}function Qa(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[e+16>>2]=h;d=c+h|0;i[e+24>>2]=d;ip(h,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];n=i[i[c>>2]>>2];t=q;d=up(i[c+40>>2],i[c+44>>2],q,0)+d|0;c=n+d|0;p=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+28>>2]=p;r=p>>>8&255;s=p>>>16&255;c:{d:{e:{if(!l){break e}d=i[e+32>>2];u=p>>>24|0;v=p&255;n=u^(((v^318)+239^r)+239^s)+239;c=n&l+ -1;w=xp(l)>>>0>1;f:{if(!w){break f}c=n;if(c>>>0>>0){break f}c=(n>>>0)%(l>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}y=l+ -1|0;while(1){k=i[d+4>>2];g:{if((n|0)!=(k|0)){h:{if(!w){k=k&y;break h}if(k>>>0>>0){break h}k=(k>>>0)%(l>>>0)|0}if((c|0)==(k|0)){break g}break e}if(j[d+8|0]!=(v|0)|j[d+9|0]!=(r|0)|j[d+10|0]!=(s|0)){break g}if(j[d+11|0]==(u|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=m;i[e+8>>2]=p&-16776961|s<<16|r<<8;kb(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,m)|0,e+28|0,c);h=i[e+16>>2];i[h+(t<<2)>>2]=m;m=m+1|0;break c}i[(t<<2)+h>>2]=i[d+12>>2]}c=f;f=q+1|0;if(f>>>0<1){c=c+1|0}q=f;f=c;d=i[a+80>>2];if(!c&q>>>0>>0|c>>>0<0){l=i[e+36>>2];continue}break}if((d|0)!=(m|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}h=i[e+16>>2];if(!d){break i}b=i[a+68>>2];k=0;while(1){c=k<<2;i[c+b>>2]=i[c+h>>2];k=k+1|0;if((k|0)!=(d|0)){continue}break}}i[a+80>>2]=m}if(!h){break b}i[e+20>>2]=h;bp(h)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return m}Ho();x()}function jn(a,b,c){var d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,q=0,r=0;f=F-48|0;F=f;if(c>>>0<=2){a:{e=b+4|0;c=c<<2;q=i[c+17628>>2];r=i[c+17616>>2];while(1){c=i[b+4>>2];b:{if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break b}c=fn(b)}if(an(c)){continue}break}k=1;c:{d:{switch(c+ -43|0){case 0:case 2:break d;default:break c}}k=(c|0)==45?-1:1;c=i[b+4>>2];if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break c}c=fn(b)}e:{f:{while(1){if(g[d+17541|0]==(c|32)){g:{if(d>>>0>6){break g}c=i[b+4>>2];if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break g}c=fn(b)}d=d+1|0;if((d|0)!=8){continue}break f}break}if((d|0)!=3){if((d|0)==8){break f}if(d>>>0<4){break e}if((d|0)==8){break f}}b=i[b+104>>2];if(b){i[e>>2]=i[e>>2]+ -1}if(d>>>0<4){break f}while(1){if(b){i[e>>2]=i[e>>2]+ -1}d=d+ -1|0;if(d>>>0>3){continue}break}}un(f,p(p(k|0)*p(z)));m=i[f+8>>2];h=i[f+12>>2];n=i[f>>2];o=i[f+4>>2];break a}h:{i:{j:{if(d){break j}d=0;while(1){if(g[d+17550|0]!=(c|32)){break j}k:{if(d>>>0>1){break k}c=i[b+4>>2];if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break k}c=fn(b)}d=d+1|0;if((d|0)!=3){continue}break}break i}l:{switch(d|0){case 0:m:{if((c|0)!=48){break m}d=i[b+4>>2];n:{if(d>>>0>2]){i[e>>2]=d+1;d=j[d|0];break n}d=fn(b)}if((d&-33)==88){kn(f+16|0,b,r,q,k);m=i[f+24>>2];h=i[f+28>>2];n=i[f+16>>2];o=i[f+20>>2];break a}if(!i[b+104>>2]){break m}i[e>>2]=i[e>>2]+ -1}ln(f+32|0,b,c,r,q,k);m=i[f+40>>2];h=i[f+44>>2];n=i[f+32>>2];o=i[f+36>>2];break a;case 3:break i;default:break l}}if(i[b+104>>2]){i[e>>2]=i[e>>2]+ -1}i[4805]=28;break h}o:{c=i[b+4>>2];p:{if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break p}c=fn(b)}if((c|0)==40){d=1;break o}h=2147450880;if(!i[b+104>>2]){break a}i[e>>2]=i[e>>2]+ -1;break a}while(1){q:{c=i[b+4>>2];r:{if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break r}c=fn(b)}if(!(c+ -48>>>0<10|c+ -65>>>0<26|(c|0)==95)){if(c+ -97>>>0>=26){break q}}d=d+1|0;continue}break}h=2147450880;if((c|0)==41){break a}b=i[b+104>>2];if(b){i[e>>2]=i[e>>2]+ -1}if(!d){break a}while(1){d=d+ -1|0;if(b){i[e>>2]=i[e>>2]+ -1}if(d){continue}break}break a}en(b)}}i[a>>2]=n;i[a+4>>2]=o;i[a+8>>2]=m;i[a+12>>2]=h;F=f+48|0}function Ta(a,b){var c=0,d=0,e=0,f=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;e=F-80|0;F=e;i[e+56>>2]=0;i[e+60>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+64>>2]=1065353216;c=i[a+80>>2];i[e+32>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;l=ho(c);i[e+24>>2]=l;d=c+l|0;i[e+32>>2]=d;ip(l,0,c);i[e+28>>2]=d;while(1){c=b;d=i[c+48>>2];q=i[i[c>>2]>>2];v=r;d=up(i[c+40>>2],i[c+44>>2],r,0)+d|0;c=q+d|0;s=j[c+4|0]|j[c+5|0]<<8;h[e+44>>1]=s;t=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+40>>2]=t;u=k[e+42>>1];c:{d:{e:{if(!n){break e}d=i[e+48>>2];q=(((t^318)&65535)+239^u)+239^s;c=q&n+262143;w=xp(n)>>>0>1;f:{if(!w){break f}c=q;if(c>>>0>>0){break f}c=(q>>>0)%(n>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}y=n+ -1|0;while(1){m=i[d+4>>2];g:{if((q|0)!=(m|0)){h:{if(!w){m=m&y;break h}if(m>>>0>>0){break h}m=(m>>>0)%(n>>>0)|0}if((c|0)==(m|0)){break g}break e}if(k[d+8>>1]!=(t&65535)|k[d+10>>1]!=(u|0)){break g}if(k[d+12>>1]==(s|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+16>>2]=p;h[e+12>>1]=s;h[e+10>>1]=u;h[e+8>>1]=t;vb(e+72|0,e+48|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,p)|0,e+40|0,c);l=i[e+24>>2];i[l+(v<<2)>>2]=p;p=p+1|0;break c}i[(v<<2)+l>>2]=i[d+16>>2]}c=f;f=r+1|0;if(f>>>0<1){c=c+1|0}r=f;f=c;d=i[a+80>>2];if(!c&r>>>0>>0|c>>>0<0){n=i[e+52>>2];continue}break}if((d|0)!=(p|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+l>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}l=i[e+24>>2];if(!d){break i}b=i[a+68>>2];m=0;while(1){c=m<<2;i[c+b>>2]=i[c+l>>2];m=m+1|0;if((m|0)!=(d|0)){continue}break}}i[a+80>>2]=p}if(!l){break b}i[e+28>>2]=l;bp(l)}d=i[e+56>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+48>>2];i[e+48>>2]=0;if(a){bp(a)}F=e+80|0;return p}Ho();x()}function El(a,b){var c=0,d=0,e=0,f=0;f=F-16|0;F=f;e=ho(32);i[f>>2]=e;i[f+4>>2]=30;i[f+8>>2]=-2147483616;g[e+30|0]=0;c=j[16476]|j[16477]<<8|(j[16478]<<16|j[16479]<<24);d=j[16472]|j[16473]<<8|(j[16474]<<16|j[16475]<<24);g[e+22|0]=d;g[e+23|0]=d>>>8;g[e+24|0]=d>>>16;g[e+25|0]=d>>>24;g[e+26|0]=c;g[e+27|0]=c>>>8;g[e+28|0]=c>>>16;g[e+29|0]=c>>>24;c=j[16470]|j[16471]<<8|(j[16472]<<16|j[16473]<<24);d=j[16466]|j[16467]<<8|(j[16468]<<16|j[16469]<<24);g[e+16|0]=d;g[e+17|0]=d>>>8;g[e+18|0]=d>>>16;g[e+19|0]=d>>>24;g[e+20|0]=c;g[e+21|0]=c>>>8;g[e+22|0]=c>>>16;g[e+23|0]=c>>>24;c=j[16462]|j[16463]<<8|(j[16464]<<16|j[16465]<<24);d=j[16458]|j[16459]<<8|(j[16460]<<16|j[16461]<<24);g[e+8|0]=d;g[e+9|0]=d>>>8;g[e+10|0]=d>>>16;g[e+11|0]=d>>>24;g[e+12|0]=c;g[e+13|0]=c>>>8;g[e+14|0]=c>>>16;g[e+15|0]=c>>>24;c=j[16454]|j[16455]<<8|(j[16456]<<16|j[16457]<<24);d=j[16450]|j[16451]<<8|(j[16452]<<16|j[16453]<<24);g[e|0]=d;g[e+1|0]=d>>>8;g[e+2|0]=d>>>16;g[e+3|0]=d>>>24;g[e+4|0]=c;g[e+5|0]=c>>>8;g[e+6|0]=c>>>16;g[e+7|0]=c>>>24;e=a+4|0;Yj(e,f,b);if(g[f+11|0]<=-1){bp(i[f>>2])}a=ho(32);i[f>>2]=a;i[f+4>>2]=29;i[f+8>>2]=-2147483616;g[a+29|0]=0;c=j[16506]|j[16507]<<8|(j[16508]<<16|j[16509]<<24);d=j[16502]|j[16503]<<8|(j[16504]<<16|j[16505]<<24);g[a+21|0]=d;g[a+22|0]=d>>>8;g[a+23|0]=d>>>16;g[a+24|0]=d>>>24;g[a+25|0]=c;g[a+26|0]=c>>>8;g[a+27|0]=c>>>16;g[a+28|0]=c>>>24;c=j[16501]|j[16502]<<8|(j[16503]<<16|j[16504]<<24);d=j[16497]|j[16498]<<8|(j[16499]<<16|j[16500]<<24);g[a+16|0]=d;g[a+17|0]=d>>>8;g[a+18|0]=d>>>16;g[a+19|0]=d>>>24;g[a+20|0]=c;g[a+21|0]=c>>>8;g[a+22|0]=c>>>16;g[a+23|0]=c>>>24;c=j[16493]|j[16494]<<8|(j[16495]<<16|j[16496]<<24);d=j[16489]|j[16490]<<8|(j[16491]<<16|j[16492]<<24);g[a+8|0]=d;g[a+9|0]=d>>>8;g[a+10|0]=d>>>16;g[a+11|0]=d>>>24;g[a+12|0]=c;g[a+13|0]=c>>>8;g[a+14|0]=c>>>16;g[a+15|0]=c>>>24;c=j[16485]|j[16486]<<8|(j[16487]<<16|j[16488]<<24);d=j[16481]|j[16482]<<8|(j[16483]<<16|j[16484]<<24);g[a|0]=d;g[a+1|0]=d>>>8;g[a+2|0]=d>>>16;g[a+3|0]=d>>>24;g[a+4|0]=c;g[a+5|0]=c>>>8;g[a+6|0]=c>>>16;g[a+7|0]=c>>>24;Yj(e,f,b);if(g[f+11|0]<=-1){bp(i[f>>2])}F=f+16|0}function Ka(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=F-80|0;F=e;i[e+56>>2]=0;i[e+60>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+64>>2]=1065353216;d=i[a+80>>2];i[e+32>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;a:{b:{if(!d){break b}if(d>>>0>=1073741824){break a}f=d<<2;l=ho(f);i[e+24>>2]=l;d=f+l|0;i[e+32>>2]=d;ip(l,0,f);i[e+28>>2]=d;while(1){d=b;k=i[d+48>>2];f=i[i[d>>2]>>2];t=q;d=up(i[d+40>>2],i[d+44>>2],q,0)+k|0;k=f+d|0;d=j[k+4|0]|j[k+5|0]<<8|(j[k+6|0]<<16|j[k+7|0]<<24);s=j[k|0]|j[k+1|0]<<8|(j[k+2|0]<<16|j[k+3|0]<<24);i[e+40>>2]=s;i[e+44>>2]=d;c:{d:{e:{if(!n){break e}c=i[e+48>>2];v=d;k=s;r=d^(k^318)+239;f=r&n+ -1;u=xp(n)>>>0>1;f:{if(!u){break f}f=r;if(f>>>0>>0){break f}f=(r>>>0)%(n>>>0)|0}c=i[(f<<2)+c>>2];if(!c){break e}c=i[c>>2];if(!c){break e}w=n+ -1|0;while(1){m=i[c+4>>2];g:{if((r|0)!=(m|0)){h:{if(!u){m=m&w;break h}if(m>>>0>>0){break h}m=(m>>>0)%(n>>>0)|0}if((f|0)==(m|0)){break g}break e}if(i[c+8>>2]!=(k|0)){break g}if(i[c+12>>2]==(v|0)){break d}}c=i[c>>2];if(c){continue}break}}i[e+16>>2]=p;i[e+8>>2]=s;i[e+12>>2]=d;Ya(e+72|0,e+48|0,e+8|0,e+8|0);d=i[a+40>>2];hp(i[i[a>>2]>>2]+o(d,p)|0,e+40|0,d);l=i[e+24>>2];i[l+(t<<2)>>2]=p;p=p+1|0;break c}i[(t<<2)+l>>2]=i[c+16>>2]}d=h;h=q+1|0;if(h>>>0<1){d=d+1|0}q=h;f=h;h=d;c=i[a+80>>2];if(!d&f>>>0>>0|d>>>0<0){n=i[e+52>>2];continue}break}if((c|0)!=(p|0)){i:{if(!j[a+84|0]){h=i[a+72>>2];f=i[a+68>>2];if((h|0)==(f|0)){break i}d=h-f|0;b=(d|0)>-1?d:-1;q=(b|0)<1?b:1;b=f-h|0;b=o(q,((b|0)>(d|0)?b:d)>>>2|0);h=b>>>0>1?b:1;c=0;while(1){b=f+(c<<2)|0;i[b>>2]=i[(i[b>>2]<<2)+l>>2];c=c+1|0;if((h|0)!=(c|0)){continue}break}break i}g[a+84|0]=0;b=i[a+68>>2];h=i[a+72>>2]-b>>2;j:{if(c>>>0>h>>>0){Xa(a+68|0,c-h|0,1420);c=i[a+80>>2];break j}if(c>>>0>=h>>>0){break j}i[a+72>>2]=b+(c<<2)}l=i[e+24>>2];if(!c){break i}h=i[a+68>>2];m=0;while(1){b=m<<2;i[b+h>>2]=i[b+l>>2];m=m+1|0;if((m|0)!=(c|0)){continue}break}}i[a+80>>2]=p}if(!l){break b}i[e+28>>2]=l;bp(l)}c=i[e+56>>2];if(c){while(1){a=i[c>>2];bp(c);c=a;if(c){continue}break}}a=i[e+48>>2];i[e+48>>2]=0;if(a){bp(a)}F=e+80|0;return p}Ho();x()}function dp(a,b,c,d,e,f,g,h,j){var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;k=F-128|0;F=k;a:{b:{c:{if(!qn(f,g,h,j,0,0,0,0)){break c}m=gp(f,g,h,j);s=e>>>16|0;p=s&32767;if((p|0)==32767){break c}if(m){break b}}yn(k+16|0,b,c,d,e,f,g,h,j);e=i[k+16>>2];d=i[k+20>>2];c=i[k+24>>2];b=i[k+28>>2];Cn(k,e,d,c,b,e,d,c,b);d=i[k+8>>2];e=i[k+12>>2];h=i[k>>2];j=i[k+4>>2];break a}m=p<<16;q=d;r=m|e&65535;n=r;o=h;r=j>>>16&32767;l=j&65535|r<<16;if((qn(b,c,q,n,f,g,h,l)|0)<=0){if(qn(b,c,q,n,f,g,o,l)){h=b;j=c;break a}yn(k+112|0,b,c,d,e,0,0,0,0);d=i[k+120>>2];e=i[k+124>>2];h=i[k+112>>2];j=i[k+116>>2];break a}if(p){j=c;h=b}else{yn(k+96|0,b,c,q,n,0,0,0,1081540608);h=i[k+108>>2];n=h;q=i[k+104>>2];p=(h>>>16|0)+ -120|0;j=i[k+100>>2];h=i[k+96>>2]}if(!r){yn(k+80|0,f,g,o,l,0,0,0,1081540608);f=i[k+92>>2];l=f;o=i[k+88>>2];r=(l>>>16|0)+ -120|0;g=i[k+84>>2];f=i[k+80>>2]}t=l&65535|65536;n=n&65535|65536;if((p|0)>(r|0)){while(1){l=q;m=o;u=l-m|0;m=n-((l>>>0>>0)+t|0)|0;l=(g|0)==(j|0)&h>>>0>>0|j>>>0>>0;m=m-(u>>>0>>0)|0;l=u-l|0;d:{if((m|0)>0?1:(m|0)>=0?l>>>0>=0:0){n=h;h=h-f|0;j=j-((n>>>0>>0)+g|0)|0;if(!(h|l|(j|m))){yn(k+32|0,b,c,d,e,0,0,0,0);d=i[k+40>>2];e=i[k+44>>2];h=i[k+32>>2];j=i[k+36>>2];break a}m=m<<1|l>>>31;q=l<<1|j>>>31;break d}m=n<<1|q>>>31;q=q<<1|j>>>31}n=m;m=j<<1|h>>>31;h=h<<1;j=m;p=p+ -1|0;if((p|0)>(r|0)){continue}break}p=r}e:{m=q;r=m-o|0;l=n-((m>>>0>>0)+t|0)|0;m=(g|0)==(j|0)&h>>>0>>0|j>>>0>>0;l=l-(r>>>0>>0)|0;o=r-m|0;if((l|0)<0?1:(l|0)<=0?o>>>0<0:0){o=q;l=n;break e}q=h;h=h-f|0;j=j-((q>>>0>>0)+g|0)|0;if(h|o|(j|l)){break e}yn(k+48|0,b,c,d,e,0,0,0,0);d=i[k+56>>2];e=i[k+60>>2];h=i[k+48>>2];j=i[k+52>>2];break a}if((l|0)==65535|l>>>0<65535){while(1){b=j>>>31|0;p=p+ -1|0;n=j<<1|h>>>31;h=h<<1;j=n;c=b;b=o;l=l<<1|b>>>31;o=c|b<<1;if((l|0)==65536&o>>>0<0|l>>>0<65536){continue}break}}b=s&32768;if((p|0)<=0){yn(k- -64|0,h,j,o,l&65535|(b|p+120)<<16,0,0,0,1065811968);d=i[k+72>>2];e=i[k+76>>2];h=i[k+64>>2];j=i[k+68>>2];break a}d=o;e=l&65535|(b|p)<<16}i[a>>2]=h;i[a+4>>2]=j;i[a+8>>2]=d;i[a+12>>2]=e;F=k+128|0}function Pa(a,b){var c=0,d=0,e=0,f=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;k=ho(c);i[e+16>>2]=k;d=c+k|0;i[e+24>>2]=d;ip(k,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];p=i[i[c>>2]>>2];u=q;d=up(i[c+40>>2],i[c+44>>2],q,0)+d|0;c=p+d|0;r=j[c+2|0];g[e+30|0]=r;h[e+28>>1]=j[c|0]|j[c+1|0]<<8;s=j[e+28|0];t=j[e+29|0];c:{d:{e:{if(!m){break e}d=i[e+32>>2];p=((s^318)+239^t)+239^r;c=p&m+ -1;v=xp(m)>>>0>1;f:{if(!v){break f}c=p;if(c>>>0>>0){break f}c=(p>>>0)%(m>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}w=m+ -1|0;while(1){l=i[d+4>>2];g:{if((p|0)!=(l|0)){h:{if(!v){l=l&w;break h}if(l>>>0>>0){break h}l=(l>>>0)%(m>>>0)|0}if((c|0)==(l|0)){break g}break e}if(j[d+8|0]!=(s|0)|j[d+9|0]!=(t|0)){break g}if(j[d+10|0]==(r|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=n;g[e+10|0]=r;g[e+9|0]=t;g[e+8|0]=s;jb(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,n)|0,e+28|0,c);k=i[e+16>>2];i[k+(u<<2)>>2]=n;n=n+1|0;break c}i[(u<<2)+k>>2]=i[d+12>>2]}c=f;f=q+1|0;if(f>>>0<1){c=c+1|0}q=f;f=c;d=i[a+80>>2];if(!c&q>>>0>>0|c>>>0<0){m=i[e+36>>2];continue}break}if((d|0)!=(n|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+k>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}k=i[e+16>>2];if(!d){break i}b=i[a+68>>2];l=0;while(1){c=l<<2;i[c+b>>2]=i[c+k>>2];l=l+1|0;if((l|0)!=(d|0)){continue}break}}i[a+80>>2]=n}if(!k){break b}i[e+20>>2]=k;bp(k)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return n}Ho();x()}function am(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;if($l(a,c)){i[a+88>>2]=0;i[a+92>>2]=0;e=a+84|0;c=i[e>>2];i[e>>2]=0;if(c){bp(c)}i[a+76>>2]=0;i[a+80>>2]=0;e=a+72|0;c=i[e>>2];i[e>>2]=0;if(c){bp(c)}m=i[a+64>>2];if(i[m+4>>2]!=i[m>>2]){c=0;while(1){p=(c>>>0)/3|0;e=Ql(m,p);m=i[a+64>>2];a:{if(e){break a}l=i[i[m+12>>2]+(c<<2)>>2];if((l|0)==-1){e=i[a>>2]+(c>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<>>0)%3|0?l:c+ -2|0;if((l|0)!=-1){e=i[i[m>>2]+(l<<2)>>2]}l=i[a+12>>2];k=l+(e>>>3&536870908)|0;i[k>>2]=i[k>>2]|1<>>0)%3|0?-1:2)+c|0;if((e|0)!=-1){f=i[i[m>>2]+(e<<2)>>2]}e=l+(f>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<>>0>>0){break a}e=-1;k=l+((l>>>0)%3|0?-1:2)|0;q=j[d+84|0];f=-1;n=c+1|0;r=c+ -2|0;h=(n>>>0)%3|0?n:r;if((h|0)>=0){f=(h>>>0)/3|0;f=i[(i[b+96>>2]+o(f,12)|0)+(h-o(f,3)<<2)>>2]}e=(k|0)>=0?i[(i[b+96>>2]+o((k>>>0)/3|0,12)|0)+((k>>>0)%3<<2)>>2]:e;if(!q){s=i[d+68>>2];e=i[s+(e<<2)>>2];f=i[(f<<2)+s>>2]}if((e|0)==(f|0)){e=-1;f=-1;if((h|0)!=-1){f=h+1|0;f=(f>>>0)%3|0?f:h+ -2|0}b:{if((k|0)==-1){break b}if((k>>>0)%3|0){e=k+ -1|0;break b}e=k+2|0}k=-1;h=-1;if((f|0)>=0){h=(f>>>0)/3|0;h=i[(i[b+96>>2]+o(h,12)|0)+(f-o(h,3)<<2)>>2]}if((e|0)>=0){f=(e>>>0)/3|0;k=i[(i[b+96>>2]+o(f,12)|0)+(e-o(f,3)<<2)>>2]}if(!q){e=i[d+68>>2];k=i[e+(k<<2)>>2];h=i[e+(h<<2)>>2]}if((h|0)==(k|0)){break a}}g[a+24|0]=0;e=i[a>>2];f=e+(c>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>>3&536870908)|0;i[e>>2]=i[e>>2]|1<>>0)%3|0?n:r;if((k|0)!=-1){f=i[i[m>>2]+(k<<2)>>2]}k=i[a+12>>2];h=k+(f>>>3&536870908)|0;i[h>>2]=i[h>>2]|1<>2]+(f<<2)>>2]}f=k+(e>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>>0)%3|0?h:l+ -2|0;if((h|0)!=-1){f=i[i[m>>2]+(h<<2)>>2]}h=k+(f>>>3&536870908)|0;i[h>>2]=i[h>>2]|1<>>0)%3|0?-1:2)|0;if((f|0)!=-1){e=i[i[m>>2]+(f<<2)>>2]}f=k+(e>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>>0>2]-i[m>>2]>>2>>>0){continue}break}}if(!(!b|!d)){bm(a,b,d);return}cm(a)}}function Sa(a,b){var c=0,d=0,e=0,f=0,h=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[e+16>>2]=h;d=c+h|0;i[e+24>>2]=d;ip(h,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];p=i[i[c>>2]>>2];s=q;d=up(i[c+40>>2],i[c+44>>2],q,0)+d|0;c=p+d|0;r=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+28>>2]=r;c:{d:{e:{if(!m){break e}d=i[e+32>>2];t=r>>>16|0;u=r&65535;p=t^(u^318)+239;c=p&m+131071;v=xp(m)>>>0>1;f:{if(!v){break f}c=p;if(c>>>0>>0){break f}c=(p>>>0)%(m>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}w=m+ -1|0;while(1){l=i[d+4>>2];g:{if((p|0)!=(l|0)){h:{if(!v){l=l&w;break h}if(l>>>0>>0){break h}l=(l>>>0)%(m>>>0)|0}if((c|0)==(l|0)){break g}break e}if(k[d+8>>1]!=(u|0)){break g}if(k[d+10>>1]==(t|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=n;i[e+8>>2]=r;ub(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,n)|0,e+28|0,c);h=i[e+16>>2];i[h+(s<<2)>>2]=n;n=n+1|0;break c}i[(s<<2)+h>>2]=i[d+12>>2]}c=f;f=q+1|0;if(f>>>0<1){c=c+1|0}q=f;f=c;d=i[a+80>>2];if(!c&q>>>0>>0|c>>>0<0){m=i[e+36>>2];continue}break}if((d|0)!=(n|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}h=i[e+16>>2];if(!d){break i}b=i[a+68>>2];l=0;while(1){c=l<<2;i[c+b>>2]=i[c+h>>2];l=l+1|0;if((l|0)!=(d|0)){continue}break}}i[a+80>>2]=n}if(!h){break b}i[e+20>>2]=h;bp(h)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return n}Ho();x()}function xf(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;a:{if(!i[a+8>>2]){break a}d=i[a>>2];l=a+4|0;i[a>>2]=l;i[i[a+4>>2]+8>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;g=i[d+4>>2];f=g?g:d;if(!f){kd(a,f);break a}g=i[f+8>>2];b:{if(!g){break b}d=i[g>>2];if((f|0)==(d|0)){i[g>>2]=0;d=i[g+4>>2];if(!d){e=g;break b}while(1){e=d;d=i[d>>2];if(d){continue}d=i[e+4>>2];if(d){continue}break}break b}i[g+4>>2]=0;if(!d){e=g;break b}while(1){e=d;d=i[d>>2];if(d){continue}d=i[e+4>>2];if(d){continue}break}}c:{if((b|0)==(c|0)){g=f;break c}k=b;while(1){g=e;h=f+16|0;to(h,k+16|0);to(f+28|0,k+28|0);d:{b=i[l>>2];if(!b){b=l;d=b;break d}d=j[f+27|0];e=d<<24>>24<0;d=e?i[f+20>>2]:d;o=e?i[f+16>>2]:h;while(1){h=j[b+27|0];e=h<<24>>24<0;e:{f:{g:{h:{h=e?i[b+20>>2]:h;m=h>>>0>>0?h:d;if(m){n=b+16|0;e=Km(o,e?i[n>>2]:n,m);if(e){break h}}if(d>>>0>>0){break g}break f}if((e|0)>-1){break f}}e=i[b>>2];if(e){break e}d=b;break d}e=i[b+4>>2];if(e){break e}d=b+4|0;break d}b=e;continue}}i[f+8>>2]=b;i[f>>2]=0;i[f+4>>2]=0;i[d>>2]=f;b=i[i[a>>2]>>2];if(b){i[a>>2]=b;f=i[d>>2]}Kf(i[a+4>>2],f);i[a+8>>2]=i[a+8>>2]+1;e=0;i:{if(!g){break i}d=i[g+8>>2];if(!d){break i}b=i[d>>2];if((g|0)==(b|0)){i[d>>2]=0;b=i[d+4>>2];if(!b){e=d;break i}while(1){e=b;b=i[b>>2];if(b){continue}b=i[e+4>>2];if(b){continue}break}break i}i[d+4>>2]=0;if(!b){e=d;break i}while(1){e=b;b=i[b>>2];if(b){continue}b=i[e+4>>2];if(b){continue}break}}d=i[k+4>>2];j:{if(!d){b=i[k+8>>2];if(i[b>>2]==(k|0)){break j}d=k+8|0;while(1){f=i[d>>2];d=f+8|0;b=i[f+8>>2];if((f|0)!=i[b>>2]){continue}break}break j}while(1){b=d;d=i[d>>2];if(d){continue}break}}if((b|0)==(c|0)){break c}k=b;f=g;if(f){continue}break}}kd(a,g);if(!e){break a}while(1){d=i[e+8>>2];if(d){e=d;continue}break}kd(a,e)}if((b|0)!=(c|0)){while(1){e=b;Lf(a,b+16|0);d=i[b+4>>2];k:{if(!d){b=i[e+8>>2];if((e|0)==i[b>>2]){break k}e=e+8|0;while(1){d=i[e>>2];e=d+8|0;b=i[d+8>>2];if((d|0)!=i[b>>2]){continue}break}break k}while(1){b=d;d=i[d>>2];if(d){continue}break}}if((b|0)!=(c|0)){continue}break}}}function Ja(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,n=0,q=0,r=0,s=p(0),t=0,u=0,v=0,w=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[e+16>>2]=h;d=c+h|0;i[e+24>>2]=d;ip(h,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];q=i[i[c>>2]>>2];t=r;d=up(i[c+40>>2],i[c+44>>2],r,0)+d|0;c=q+d|0;s=(Cp(2,j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24)),Gp());m[e+28>>2]=s;c:{d:{e:{if(!l){break e}d=i[e+32>>2];u=(Fp(s),Bp(2));q=u^318;c=q&l+ -1;v=xp(l)>>>0>1;f:{if(!v){break f}c=q;if(c>>>0>>0){break f}c=(q>>>0)%(l>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}w=l+ -1|0;while(1){k=i[d+4>>2];g:{if((q|0)!=(k|0)){h:{if(!v){k=k&w;break h}if(k>>>0>>0){break h}k=(k>>>0)%(l>>>0)|0}if((c|0)==(k|0)){break g}break e}if(i[d+8>>2]==(u|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=n;m[e+8>>2]=s;Wa(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,n)|0,e+28|0,c);h=i[e+16>>2];i[h+(t<<2)>>2]=n;n=n+1|0;break c}i[(t<<2)+h>>2]=i[d+12>>2]}c=f;f=r+1|0;if(f>>>0<1){c=c+1|0}r=f;f=c;d=i[a+80>>2];if(!c&r>>>0>>0|c>>>0<0){l=i[e+36>>2];continue}break}if((d|0)!=(n|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}h=i[e+16>>2];if(!d){break i}b=i[a+68>>2];k=0;while(1){c=k<<2;i[c+b>>2]=i[c+h>>2];k=k+1|0;if((k|0)!=(d|0)){continue}break}}i[a+80>>2]=n}if(!h){break b}i[e+20>>2]=h;bp(h)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return n}Ho();x()}function Oa(a,b){var c=0,d=0,e=0,f=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;k=ho(c);i[e+16>>2]=k;d=c+k|0;i[e+24>>2]=d;ip(k,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];p=i[i[c>>2]>>2];s=q;d=up(i[c+40>>2],i[c+44>>2],q,0)+d|0;c=p+d|0;r=j[c|0]|j[c+1|0]<<8;h[e+30>>1]=r;c:{d:{e:{if(!m){break e}d=i[e+32>>2];t=r>>>8|0;u=r&255;p=t^(u^318)+239;c=p&m+ -1;v=xp(m)>>>0>1;f:{if(!v){break f}c=p;if(m>>>0>c>>>0){break f}c=(p>>>0)%(m>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}w=m+ -1|0;while(1){l=i[d+4>>2];g:{if((p|0)!=(l|0)){h:{if(!v){l=l&w;break h}if(l>>>0>>0){break h}l=(l>>>0)%(m>>>0)|0}if((c|0)==(l|0)){break g}break e}if(j[d+8|0]!=(u|0)){break g}if(j[d+9|0]==(t|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=n;h[e+8>>1]=r;ib(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,n)|0,e+30|0,c);k=i[e+16>>2];i[k+(s<<2)>>2]=n;n=n+1|0;break c}i[(s<<2)+k>>2]=i[d+12>>2]}c=f;f=q+1|0;if(f>>>0<1){c=c+1|0}q=f;f=c;d=i[a+80>>2];if(!c&q>>>0>>0|c>>>0<0){m=i[e+36>>2];continue}break}if((d|0)!=(n|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+k>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}k=i[e+16>>2];if(!d){break i}b=i[a+68>>2];l=0;while(1){c=l<<2;i[c+b>>2]=i[c+k>>2];l=l+1|0;if((l|0)!=(d|0)){continue}break}}i[a+80>>2]=n}if(!k){break b}i[e+20>>2]=k;bp(k)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return n}Ho();x()}function Zf(a,b,c,d,e,f){var h=0,k=0,l=0;h=F-16|0;F=h;i[h+12>>2]=b;b=ho(32);i[h>>2]=b;i[h+4>>2]=17;i[h+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[10556];k=j[10552]|j[10553]<<8|(j[10554]<<16|j[10555]<<24);l=j[10548]|j[10549]<<8|(j[10550]<<16|j[10551]<<24);g[b+8|0]=l;g[b+9|0]=l>>>8;g[b+10|0]=l>>>16;g[b+11|0]=l>>>24;g[b+12|0]=k;g[b+13|0]=k>>>8;g[b+14|0]=k>>>16;g[b+15|0]=k>>>24;k=j[10544]|j[10545]<<8|(j[10546]<<16|j[10547]<<24);l=j[10540]|j[10541]<<8|(j[10542]<<16|j[10543]<<24);g[b|0]=l;g[b+1|0]=l>>>8;g[b+2|0]=l>>>16;g[b+3|0]=l>>>24;g[b+4|0]=k;g[b+5|0]=k>>>8;g[b+6|0]=k>>>16;g[b+7|0]=k>>>24;k=a+4|0;Yj(yf(k,h+12|0),h,c);if(g[h+11|0]<=-1){bp(i[h>>2])}a=ho(32);i[h>>2]=a;i[h+4>>2]=19;i[h+8>>2]=-2147483616;g[a+19|0]=0;b=j[10598]|j[10599]<<8|(j[10600]<<16|j[10601]<<24);g[a+15|0]=b;g[a+16|0]=b>>>8;g[a+17|0]=b>>>16;g[a+18|0]=b>>>24;b=j[10595]|j[10596]<<8|(j[10597]<<16|j[10598]<<24);c=j[10591]|j[10592]<<8|(j[10593]<<16|j[10594]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10587]|j[10588]<<8|(j[10589]<<16|j[10590]<<24);c=j[10583]|j[10584]<<8|(j[10585]<<16|j[10586]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Ff(yf(k,h+12|0),h,e,d);if(g[h+11|0]<=-1){bp(i[h>>2])}a=ho(32);i[h>>2]=a;i[h+4>>2]=18;i[h+8>>2]=-2147483616;g[a+18|0]=0;b=j[10619]|j[10620]<<8;g[a+16|0]=b;g[a+17|0]=b>>>8;b=j[10615]|j[10616]<<8|(j[10617]<<16|j[10618]<<24);c=j[10611]|j[10612]<<8|(j[10613]<<16|j[10614]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10607]|j[10608]<<8|(j[10609]<<16|j[10610]<<24);c=j[10603]|j[10604]<<8|(j[10605]<<16|j[10606]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Zj(yf(k,h+12|0),h,f);if(g[h+11|0]<=-1){bp(i[h>>2])}F=h+16|0}function Ef(a,b,c,d,e,f){var h=0,k=0,l=0;h=F-16|0;F=h;i[h+12>>2]=b;b=ho(32);i[h>>2]=b;i[h+4>>2]=17;i[h+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[10144];k=j[10140]|j[10141]<<8|(j[10142]<<16|j[10143]<<24);l=j[10136]|j[10137]<<8|(j[10138]<<16|j[10139]<<24);g[b+8|0]=l;g[b+9|0]=l>>>8;g[b+10|0]=l>>>16;g[b+11|0]=l>>>24;g[b+12|0]=k;g[b+13|0]=k>>>8;g[b+14|0]=k>>>16;g[b+15|0]=k>>>24;k=j[10132]|j[10133]<<8|(j[10134]<<16|j[10135]<<24);l=j[10128]|j[10129]<<8|(j[10130]<<16|j[10131]<<24);g[b|0]=l;g[b+1|0]=l>>>8;g[b+2|0]=l>>>16;g[b+3|0]=l>>>24;g[b+4|0]=k;g[b+5|0]=k>>>8;g[b+6|0]=k>>>16;g[b+7|0]=k>>>24;k=a+4|0;Yj(yf(k,h+12|0),h,c);if(g[h+11|0]<=-1){bp(i[h>>2])}a=ho(32);i[h>>2]=a;i[h+4>>2]=19;i[h+8>>2]=-2147483616;g[a+19|0]=0;b=j[10161]|j[10162]<<8|(j[10163]<<16|j[10164]<<24);g[a+15|0]=b;g[a+16|0]=b>>>8;g[a+17|0]=b>>>16;g[a+18|0]=b>>>24;b=j[10158]|j[10159]<<8|(j[10160]<<16|j[10161]<<24);c=j[10154]|j[10155]<<8|(j[10156]<<16|j[10157]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10150]|j[10151]<<8|(j[10152]<<16|j[10153]<<24);c=j[10146]|j[10147]<<8|(j[10148]<<16|j[10149]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Ff(yf(k,h+12|0),h,e,d);if(g[h+11|0]<=-1){bp(i[h>>2])}a=ho(32);i[h>>2]=a;i[h+4>>2]=18;i[h+8>>2]=-2147483616;g[a+18|0]=0;b=j[10182]|j[10183]<<8;g[a+16|0]=b;g[a+17|0]=b>>>8;b=j[10178]|j[10179]<<8|(j[10180]<<16|j[10181]<<24);c=j[10174]|j[10175]<<8|(j[10176]<<16|j[10177]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10170]|j[10171]<<8|(j[10172]<<16|j[10173]<<24);c=j[10166]|j[10167]<<8|(j[10168]<<16|j[10169]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Zj(yf(k,h+12|0),h,f);if(g[h+11|0]<=-1){bp(i[h>>2])}F=h+16|0}function Va(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[e+16>>2]=h;d=c+h|0;i[e+24>>2]=d;ip(h,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];n=i[i[c>>2]>>2];r=p;d=up(i[c+40>>2],i[c+44>>2],p,0)+d|0;c=n+d|0;q=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+28>>2]=q;c:{d:{e:{if(!l){break e}d=i[e+32>>2];n=q^318;c=n&l+ -1;s=xp(l)>>>0>1;f:{if(!s){break f}c=n;if(c>>>0>>0){break f}c=(n>>>0)%(l>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}t=l+ -1|0;while(1){k=i[d+4>>2];g:{if((n|0)!=(k|0)){h:{if(!s){k=k&t;break h}if(k>>>0>>0){break h}k=(k>>>0)%(l>>>0)|0}if((c|0)==(k|0)){break g}break e}if(i[d+8>>2]==(q|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=m;i[e+8>>2]=q;Wa(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,m)|0,e+28|0,c);h=i[e+16>>2];i[h+(r<<2)>>2]=m;m=m+1|0;break c}i[(r<<2)+h>>2]=i[d+12>>2]}c=f;f=p+1|0;if(f>>>0<1){c=c+1|0}p=f;f=c;d=i[a+80>>2];if(!c&p>>>0>>0|c>>>0<0){l=i[e+36>>2];continue}break}if((d|0)!=(m|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}h=i[e+16>>2];if(!d){break i}b=i[a+68>>2];k=0;while(1){c=k<<2;i[c+b>>2]=i[c+h>>2];k=k+1|0;if((k|0)!=(d|0)){continue}break}}i[a+80>>2]=m}if(!h){break b}i[e+20>>2]=h;bp(h)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return m}Ho();x()}function lg(a,b,c,d,e){var f=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;k=F-336|0;F=k;ip(k+80|0,0,256);h=i[d+4>>2];p=i[d>>2];if((h|0)!=(p|0)){m=h-p|0;f=(m|0)>-1?m:-1;q=(f|0)<1?f:1;f=p-h|0;f=o(q,((f|0)>(m|0)?f:m)>>>2|0);q=f>>>0>1?f:1;while(1){f=(k+80|0)+(i[p+(n<<2)>>2]<<3)|0;h=f;t=f;m=i[f+4>>2];f=i[f>>2]+1|0;if(f>>>0<1){m=m+1|0}i[t>>2]=f;i[h+4>>2]=m;n=n+1|0;if((q|0)!=(n|0)){continue}break}}r=Tj(k+48|0);i[k+8>>2]=0;i[k+12>>2]=0;h=k+16|0;f=h;i[f>>2]=0;i[f+4>>2]=0;p=k+24|0;f=p;i[f>>2]=0;i[f+4>>2]=0;i[k+32>>2]=0;i[k>>2]=0;i[k+4>>2]=0;i[k+40>>2]=0;i[k+44>>2]=0;ng(k,k+80|0,32,e);m=i[h>>2];f=i[h+4>>2];h=i[e+4>>2]-i[e>>2]|0;i[k+40>>2]=h;i[k+44>>2]=0;t=e;q=m;m=f<<1|m>>>31;f=(q<<1)+39|0;if(f>>>0<39){m=m+1|0}q=f;f=m>>>3|0;m=h+((m&7)<<29|q>>>3)|0;if(m>>>0>>0){f=f+1|0}h=m+8|0;h>>>0<8;Uj(t,h);f=i[e>>2];i[k+28>>2]=0;i[k+32>>2]=16384;i[p>>2]=f+i[k+40>>2];h=b;Vj(r,h<<5,h>>31<<5|h>>>27,0);b=h-c|0;if((b|0)>=0){y=(c|0)<1;f=b;while(1){n=i[k+32>>2];s=i[d>>2];q=i[k>>2]+(i[s+((f|0)/(c|0)<<2)>>2]<<3)|0;p=i[q>>2];m=p<<10;if(n>>>0>=m>>>0){while(1){h=i[k+28>>2];i[k+28>>2]=h+1;g[h+i[k+24>>2]|0]=n;n=i[k+32>>2]>>>8|0;i[k+32>>2]=n;if(n>>>0>=m>>>0){continue}break}s=i[d>>2]}h=(n>>>0)/(p>>>0)|0;i[k+32>>2]=i[q+4>>2]+((h<<12)+(n-o(h,p)|0)|0);n=b-f|0;h=(n|0)/(c|0)|0;if(!y){x=i[(h<<2)+s>>2];v=0;while(1){h=i[r+20>>2];if(!((x|0)<1|((h|0)<0?1:(h|0)<=0?l[r+16>>2]<1:0))){p=i[(n+v<<2)+a>>2];u=i[r+12>>2];s=i[u+4>>2];w=0;while(1){q=s>>>3|0;m=q+i[u>>2]|0;h=j[m|0];t=m;m=s&7;z=t,A=yp(-2,m)&h,g[z|0]=A;h=q+i[u>>2]|0;g[h|0]=j[h|0]|(p>>>w&1)<>2]+1|0;i[u+4>>2]=s;w=w+1|0;if((x|0)!=(w|0)){continue}break}}v=v+1|0;if((v|0)!=(c|0)){continue}break}}f=f-c|0;if((f|0)>-1){continue}break}}og(k,e);Wj(r);a=i[e+20>>2];if((a|0)<0?1:(a|0)<=0?l[e+16>>2]<=0:0){ca(e,i[e+4>>2],i[r>>2],i[r+4>>2])}a=i[k>>2];if(a){i[k+4>>2]=a;bp(a)}a=i[r+12>>2];i[r+12>>2]=0;if(a){bp(a)}a=i[r>>2];if(a){i[r+4>>2]=a;bp(a)}F=k+336|0;return 1}function Ra(a,b){var c=0,d=0,e=0,f=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;l=ho(c);i[e+16>>2]=l;d=c+l|0;i[e+24>>2]=d;ip(l,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];q=i[i[c>>2]>>2];t=r;d=up(i[c+40>>2],i[c+44>>2],r,0)+d|0;c=q+d|0;s=j[c|0]|j[c+1|0]<<8;h[e+30>>1]=s;c:{d:{e:{if(!n){break e}d=i[e+32>>2];q=s^318;c=q&n+ -1;u=xp(n)>>>0>1;f:{if(!u){break f}c=q;if(n>>>0>c>>>0){break f}c=(q>>>0)%(n>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}v=n+ -1|0;while(1){m=i[d+4>>2];g:{if((q|0)!=(m|0)){h:{if(!u){m=m&v;break h}if(m>>>0>>0){break h}m=(m>>>0)%(n>>>0)|0}if((c|0)==(m|0)){break g}break e}if(k[d+8>>1]==(s|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=p;h[e+8>>1]=s;tb(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,p)|0,e+30|0,c);l=i[e+16>>2];i[l+(t<<2)>>2]=p;p=p+1|0;break c}i[(t<<2)+l>>2]=i[d+12>>2]}c=f;f=r+1|0;if(f>>>0<1){c=c+1|0}r=f;f=c;d=i[a+80>>2];if(!c&r>>>0>>0|c>>>0<0){n=i[e+36>>2];continue}break}if((d|0)!=(p|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+l>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}l=i[e+16>>2];if(!d){break i}b=i[a+68>>2];m=0;while(1){c=m<<2;i[c+b>>2]=i[c+l>>2];m=m+1|0;if((m|0)!=(d|0)){continue}break}}i[a+80>>2]=p}if(!l){break b}i[e+20>>2]=l;bp(l)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return p}Ho();x()}function Na(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[e+16>>2]=h;d=c+h|0;i[e+24>>2]=d;ip(h,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];n=i[i[c>>2]>>2];r=p;d=up(i[c+40>>2],i[c+44>>2],p,0)+d|0;q=j[n+d|0];g[e+31|0]=q;c:{d:{e:{if(!l){break e}d=i[e+32>>2];n=q^318;c=n&l+ -1;s=xp(l)>>>0>1;f:{if(!s){break f}c=n;if(c>>>0>>0){break f}c=(n>>>0)%(l>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}t=l+ -1|0;while(1){k=i[d+4>>2];g:{if((n|0)!=(k|0)){h:{if(!s){k=k&t;break h}if(k>>>0>>0){break h}k=(k>>>0)%(l>>>0)|0}if((c|0)==(k|0)){break g}break e}if(j[d+8|0]==(q|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=m;g[e+8|0]=q;hb(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,m)|0,e+31|0,c);h=i[e+16>>2];i[h+(r<<2)>>2]=m;m=m+1|0;break c}i[(r<<2)+h>>2]=i[d+12>>2]}c=f;f=p+1|0;if(f>>>0<1){c=c+1|0}p=f;f=c;d=i[a+80>>2];if(!c&p>>>0>>0|c>>>0<0){l=i[e+36>>2];continue}break}if((d|0)!=(m|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}h=i[e+16>>2];if(!d){break i}b=i[a+68>>2];k=0;while(1){c=k<<2;i[c+b>>2]=i[c+h>>2];k=k+1|0;if((k|0)!=(d|0)){continue}break}}i[a+80>>2]=m}if(!h){break b}i[e+20>>2]=h;bp(h)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return m}Ho();x()}function Ml(a){var b=0,c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=F-32|0;F=e;b=i[a>>2];d=i[a+4>>2];g[e|0]=0;o=Cj(e+16|0,d-b>>2,e);i[e+8>>2]=0;i[e>>2]=0;k=i[a>>2];b=i[a+4>>2];a:{b:{while(1){c:{p=0;l=0;if((b|0)==(k|0)){break c}while(1){c=i[o>>2];d:{if(i[c+(l>>>3&536870908)>>2]>>>l&1){break d}d=i[e>>2];i[e+4>>2]=d;b=l;while(1){e:{f=b+1|0;q=b;b=(f>>>0)%3|0?f:b+ -2|0;if((b|0)==-1){break e}b=i[i[a+12>>2]+(b<<2)>>2];if((b|0)==-1){break e}f=b+1|0;b=(f>>>0)%3|0?f:b+ -2|0;if((l|0)==(b|0)|(b|0)==-1){break e}if(!(i[(b>>>3&536870908)+c>>2]>>>b&1)){continue}}break}f=d;b=q;while(1){j=(b>>>3&536870908)+c|0;i[j>>2]=i[j>>2]|1<>>0)%3|0?j:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;if((d|0)!=(f|0)){n=i[(j<<2)+k>>2];b=f;while(1){f:{if((n|0)!=i[b>>2]){break f}c=-1;h=i[b+4>>2];c=(m|0)!=-1?i[i[a+12>>2]+(m<<2)>>2]:c;if((h|0)==(c|0)){break f}d=-1;d=(h|0)!=-1?i[i[a+12>>2]+(h<<2)>>2]:d;if((c|0)!=-1){i[i[a+12>>2]+(c<<2)>>2]=-1}b=i[a+12>>2];if((d|0)!=-1){i[b+(d<<2)>>2]=-1}i[b+(m<<2)>>2]=-1;i[b+(h<<2)>>2]=-1;p=1;break d}b=b+8|0;if((d|0)!=(b|0)){continue}break}}n=m<<2;k=i[n+k>>2];g:{if(i[e+8>>2]!=(d|0)){b=d;i[b>>2]=k;i[b+4>>2]=j;i[e+4>>2]=b+8;break g}d=d-f|0;h=d>>3;c=h+1|0;if(c>>>0>=536870912){break b}b=d>>2;c=h>>>0<268435455?b>>>0>>0?c:b:536870911;b=0;h:{if(!c){break h}if(c>>>0>=536870912){break a}b=ho(c<<3)}h=b+(h<<3)|0;i[h>>2]=k;i[h+4>>2]=j;j=b+(c<<3)|0;c=h+8|0;if((d|0)>=1){hp(b,f,d)}i[e+8>>2]=j;i[e+4>>2]=c;i[e>>2]=b;if(!f){break g}bp(f)}i:{if((m|0)==-1){break i}b=i[n+i[a+12>>2]>>2];if((b|0)==-1){break i}b=b+((b>>>0)%3|0?-1:2)|0;if((q|0)==(b|0)|(b|0)==-1){break i}k=i[a>>2];c=i[o>>2];d=i[e+4>>2];f=i[e>>2];continue}break}k=i[a>>2]}l=l+1|0;b=i[a+4>>2];if(l>>>0>2>>>0){continue}break}if(p){continue}}break}a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[o>>2];if(a){bp(a)}F=e+32|0;return}Ho();x()}za(16516);x()}function Wh(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=F+ -64|0;F=e;d=ho(80);o=i[b+8>>2];i[d+12>>2]=0;i[d+16>>2]=0;i[d>>2]=12588;i[d+4>>2]=0;k=d+20|0;f=k;i[f>>2]=0;i[f+4>>2]=0;p=d+28|0;f=p;i[f>>2]=0;i[f+4>>2]=0;i[d+36>>2]=0;i[d+40>>2]=0;l=d+44|0;f=l;i[f>>2]=0;i[f+4>>2]=0;i[d+52>>2]=0;i[d+76>>2]=0;i[d+72>>2]=c;i[d+68>>2]=o;i[d+64>>2]=0;i[d+56>>2]=0;i[d+60>>2]=0;i[d+8>>2]=12752;f=i[b+12>>2];q=e+36|0;h=q;i[h>>2]=0;i[h+4>>2]=0;r=e+28|0;h=r;i[h>>2]=0;i[h+4>>2]=0;m=e+20|0;h=m;i[h>>2]=0;i[h+4>>2]=0;h=e+12|0;i[h>>2]=0;i[h+4>>2]=0;i[e+52>>2]=0;i[e+56>>2]=0;i[e+44>>2]=0;i[e+48>>2]=0;i[e+4>>2]=0;i[e+8>>2]=0;i[e>>2]=12752;i[e+4>>2]=f;j=i[f>>2];n=i[f+4>>2];g[e+63|0]=0;Uh(e+24|0,(n-j>>2>>>0)/3|0,e+63|0);j=i[e+4>>2];n=i[j+28>>2];j=i[j+24>>2];g[e+63|0]=0;Uh(q,n-j>>2,e+63|0);i[m>>2]=d;i[e+16>>2]=o;i[h>>2]=c;i[e+8>>2]=f;i[d+76>>2]=b+72;i[p>>2]=i[m>>2];b=i[h+4>>2];i[k>>2]=i[h>>2];i[k+4>>2]=b;b=i[e+8>>2];i[d+12>>2]=i[e+4>>2];i[d+16>>2]=b;a:{b:{b=d;f=i[r>>2];if(f){h=d+32|0;c:{if(f>>>0<=i[d+40>>2]<<5>>>0){c=f+ -1>>>5|0;f=i[h>>2];break c}c=i[h>>2];if(c){bp(c);i[d+40>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;f=i[e+28>>2]}if((f|0)<=-1){break b}c=f+ -1>>>5|0;h=c+1|0;f=ho(h<<2);i[d+40>>2]=h;i[d+36>>2]=0;i[d+32>>2]=f}jp(f,i[e+24>>2],(c<<2)+4|0);c=i[e+28>>2]}else{c=0}i[b+36>>2]=c;c=d;f=i[e+40>>2];if(f){d:{if(f>>>0<=i[d+52>>2]<<5>>>0){b=f+ -1>>>5|0;f=i[l>>2];break d}b=i[l>>2];if(b){bp(b);i[d+52>>2]=0;i[d+44>>2]=0;i[d+48>>2]=0;f=i[e+40>>2]}if((f|0)<=-1){break a}b=f+ -1>>>5|0;h=b+1|0;f=ho(h<<2);i[d+52>>2]=h;i[d+48>>2]=0;i[d+44>>2]=f}jp(f,i[e+36>>2],(b<<2)+4|0);b=i[e+40>>2]}else{b=0}i[c+48>>2]=b;Vh(d+56|0,i[e+48>>2],i[e+52>>2]);i[a>>2]=d;i[e>>2]=12752;a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}i[e>>2]=12568;a=i[e+36>>2];if(a){bp(a)}a=i[e+24>>2];if(a){bp(a)}F=e- -64|0;return}Ho();x()}Ho();x()}function ne(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;i[a+8>>2]=e;g=a+32|0;h=i[g>>2];f=i[a+36>>2]-h>>2;a:{if(f>>>0>>0){Bd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=h+(e<<2)}b:{if(!d){break b}h=1;f=i[b>>2];c:{if((d|0)<=1){g=f;break c}g=f;while(1){j=i[(h<<2)+b>>2];k=(j|0)<(g|0);g=k?j:g;f=k?f:(j|0)>(f|0)?j:f;h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+16>>2]=f;i[a+12>>2]=g;h=f;f=(f>>31)-((g>>31)+(f>>>0>>0)|0)|0;g=h-g|0;if(!f&g>>>0>2147483646|f>>>0>0){break b}f=g+1|0;i[a+20>>2]=f;g=(f|0)/2|0;i[a+24>>2]=g;i[a+28>>2]=0-g;if(f&1){break b}i[a+24>>2]=g+ -1}j=d-e|0;if((j|0)>=1){g=i[a+8>>2];o=0-e<<2;while(1){if((g|0)>=1){d=j<<2;p=d+c|0;n=b+d|0;d=n+o|0;h=0;while(1){f=0;d:{if((g|0)<=0){g=i[a+32>>2];break d}while(1){k=f<<2;l=i[k+d>>2];m=i[a+16>>2];e:{if((l|0)>(m|0)){g=i[a+32>>2];i[k+g>>2]=m;break e}g=i[a+32>>2];k=k+g|0;m=i[a+12>>2];if((l|0)<(m|0)){i[k>>2]=m;break e}i[k>>2]=l}f=f+1|0;if((f|0)>2]){continue}break}}f=h<<2;d=f+p|0;f=i[f+n>>2]-i[f+g>>2]|0;i[d>>2]=f;f:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break f}f=f-i[a+20>>2]|0}i[d>>2]=f}d=g;h=h+1|0;g=i[a+8>>2];if((h|0)<(g|0)){continue}break}}j=j-e|0;if((j|0)>0){continue}break}}h=0;d=(e&1073741823)!=(e|0)?-1:e<<2;e=ip(ho(d),0,d);g=i[a+8>>2];if((g|0)>=1){d=e;while(1){f=0;g:{if((g|0)<=0){g=i[a+32>>2];break g}while(1){j=f<<2;k=i[j+d>>2];l=i[a+16>>2];h:{if((k|0)>(l|0)){g=i[a+32>>2];i[j+g>>2]=l;break h}g=i[a+32>>2];j=j+g|0;l=i[a+12>>2];if((k|0)<(l|0)){i[j>>2]=l;break h}i[j>>2]=k}f=f+1|0;if((f|0)>2]){continue}break}}f=h<<2;d=f+c|0;f=i[b+f>>2]-i[f+g>>2]|0;i[d>>2]=f;i:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break i}f=f-i[a+20>>2]|0}i[d>>2]=f}d=g;h=h+1|0;g=i[a+8>>2];if((h|0)<(g|0)){continue}break}}bp(e);return 1}function Wf(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;a:{if(!i[a+8>>2]){break a}g=i[a>>2];j=a+4|0;i[a>>2]=j;i[i[a+4>>2]+8>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;d=i[g+4>>2];f=d?d:g;if(!f){wf(a,f);break a}g=i[f+8>>2];b:{if(!g){break b}d=i[g>>2];if((f|0)==(d|0)){i[g>>2]=0;d=i[g+4>>2];if(!d){e=g;break b}while(1){e=d;d=i[d>>2];if(d){continue}d=i[e+4>>2];if(d){continue}break}break b}i[g+4>>2]=0;if(!d){e=g;break b}while(1){e=d;d=i[d>>2];if(d){continue}d=i[e+4>>2];if(d){continue}break}}c:{if((b|0)==(c|0)){g=f;break c}h=b;while(1){g=e;i[f+16>>2]=i[h+16>>2];if((f|0)!=(h|0)){xf(f+20|0,i[h+20>>2],h+24|0)}d:{b=i[j>>2];if(!b){b=j;d=b;break d}e=i[f+16>>2];while(1){e:{if((e|0)>2]){d=i[b>>2];if(d){break e}d=b;break d}d=i[b+4>>2];if(d){break e}d=b+4|0;break d}b=d;continue}}i[f+8>>2]=b;i[f>>2]=0;i[f+4>>2]=0;i[d>>2]=f;b=i[i[a>>2]>>2];if(b){i[a>>2]=b;f=i[d>>2]}Kf(i[a+4>>2],f);i[a+8>>2]=i[a+8>>2]+1;e=0;f:{if(!g){break f}d=i[g+8>>2];if(!d){break f}b=i[d>>2];if((g|0)==(b|0)){i[d>>2]=0;b=i[d+4>>2];if(!b){e=d;break f}while(1){e=b;b=i[b>>2];if(b){continue}b=i[e+4>>2];if(b){continue}break}break f}i[d+4>>2]=0;if(!b){e=d;break f}while(1){e=b;b=i[b>>2];if(b){continue}b=i[e+4>>2];if(b){continue}break}}d=i[h+4>>2];g:{if(!d){b=i[h+8>>2];if(i[b>>2]==(h|0)){break g}f=h+8|0;while(1){d=i[f>>2];f=d+8|0;b=i[d+8>>2];if((d|0)!=i[b>>2]){continue}break}break g}while(1){b=d;d=i[d>>2];if(d){continue}break}}if(!g){break c}h=b;f=g;if((b|0)!=(c|0)){continue}break}}wf(a,g);if(!e){break a}while(1){d=i[e+8>>2];if(d){e=d;continue}break}wf(a,e)}if((b|0)!=(c|0)){while(1){e=b;$f(a,b+16|0);d=i[b+4>>2];h:{if(!d){b=i[e+8>>2];if((e|0)==i[b>>2]){break h}e=e+8|0;while(1){d=i[e>>2];e=d+8|0;b=i[d+8>>2];if((d|0)!=i[b>>2]){continue}break}break h}while(1){b=d;d=i[d>>2];if(d){continue}break}}if((b|0)!=(c|0)){continue}break}}}function sf(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;f=F-32|0;F=f;m=f;e=i[a>>2];h=i[e>>2];d=i[e+4>>2];n=+(h>>>0)+ +(d>>>0)*4294967296;d=i[e+12>>2]+d|0;e=i[e+8>>2];h=e+h|0;if(h>>>0>>0){d=d+1|0}e=!(d|h);n=n/(+((e?1:h)>>>0)+ +((e?0:d)>>>0)*4294967296)*256+.5;a:{if(n<4294967296&n>=0){d=~~n>>>0;break a}d=0}c=d>>>0<255?d:255;p=!(c&255)+c|0;g[m+23|0]=p;h=i[a+16>>2];r=i[a+12>>2];i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;b:{c:{c=(h-r<<1)- -64|0;if(c){if((c|0)<=-1){break c}k=ho(c);i[f+8>>2]=k;d=c+k|0;i[f+16>>2]=d;ip(k,0,c);i[f+12>>2]=d}c=i[a+28>>2]+ -1|0;if((c|0)<0){e=4096;break b}m=0-p|0;s=m&255;t=i[a+24>>2];e=4096;while(1){q=t&1<>>0>=d<<12>>>0){g[j+k|0]=e;j=j+1|0;e=e>>>8|0}u=256-d|0;d=d<<3;up(i[d+14192>>2],0,e,0);e=((q?0:s)+e|0)+o(u,H+e>>>i[d+14196>>2]|0)|0;c=c+ -1|0;if((c|0)>-1){continue}break}break b}Ho();x()}if((h|0)!=(r|0)){m=0-p|0;s=m&255;while(1){h=h+ -4|0;t=i[h>>2];c=31;while(1){d=c;q=t&1<>>0>=c<<12>>>0){g[j+k|0]=e;j=j+1|0;e=e>>>8|0}u=256-c|0;c=c<<3;up(i[c+14192>>2],0,e,0);e=((q?0:s)+e|0)+o(u,H+e>>>i[c+14196>>2]|0)|0;c=d+ -1|0;if(d){continue}break}if((h|0)!=(r|0)){continue}break}}c=e+ -4096|0;d:{e:{if(c>>>0<=63){e=j+k|0;d=1;break e}if(c>>>0<=16383){c=j+k|0;d=e+12288|0;g[c|0]=d;e=c+1|0;c=d>>>8|0;d=2;break e}if(c>>>0>4194303){break d}c=j+k|0;d=e+8384512|0;g[c|0]=d;g[c+1|0]=d>>>8;e=c+2|0;c=d>>>16|0;d=3}g[e|0]=c;j=d+j|0}c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],f+23|0,f+24|0)}Jb(j,b);c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){d=b;c=i[b+4>>2];b=i[f+8>>2];ca(d,c,b,b+j|0)}i[f+24>>2]=0;i[f+28>>2]=0;of(a,f+24|0);i[a+24>>2]=0;i[a+28>>2]=0;i[a+16>>2]=i[a+12>>2];a=i[f+8>>2];if(a){i[f+12>>2]=a;bp(a)}F=f+32|0}function ti(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0;e=F-16|0;F=e;i[a+4>>2]=b;i[a+8>>2]=i[b+56>>2];i[a+188>>2]=i[a+184>>2];f=i[b+48>>2];b=ho(32);i[e>>2]=b;i[e+4>>2]=19;i[e+8>>2]=-2147483616;g[b+19|0]=0;c=j[11251]|j[11252]<<8|(j[11253]<<16|j[11254]<<24);g[b+15|0]=c;g[b+16|0]=c>>>8;g[b+17|0]=c>>>16;g[b+18|0]=c>>>24;c=j[11248]|j[11249]<<8|(j[11250]<<16|j[11251]<<24);d=j[11244]|j[11245]<<8|(j[11246]<<16|j[11247]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11240]|j[11241]<<8|(j[11242]<<16|j[11243]<<24);d=j[11236]|j[11237]<<8|(j[11238]<<16|j[11239]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;b=Sb(f,e);if(g[e+11|0]<=-1){bp(i[e>>2])}f=i[i[a+4>>2]+48>>2];a:{if(b){b=ho(32);i[e>>2]=b;i[e+4>>2]=19;i[e+8>>2]=-2147483616;g[b+19|0]=0;c=j[11251]|j[11252]<<8|(j[11253]<<16|j[11254]<<24);g[b+15|0]=c;g[b+16|0]=c>>>8;g[b+17|0]=c>>>16;g[b+18|0]=c>>>24;c=j[11248]|j[11249]<<8|(j[11250]<<16|j[11251]<<24);d=j[11244]|j[11245]<<8|(j[11246]<<16|j[11247]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11240]|j[11241]<<8|(j[11242]<<16|j[11243]<<24);d=j[11236]|j[11237]<<8|(j[11238]<<16|j[11239]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;h=a,k=ck(f,e,0),g[h+352|0]=k;if(g[e+11|0]>-1){break a}bp(i[e>>2]);break a}if((_b(f)|0)>=6){g[a+352|0]=1;break a}g[a+352|0]=0}F=e+16|0;return 1}function rf(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i[a>>2];d=e;l=d;f=i[d+12>>2];h=i[d+8>>2];c=c>>>1&1431655765|c<<1&-1431655766;c=c>>>2&858993459|c<<2&-858993460;c=c>>>4&252645135|c<<4&-252645136;k=32-b|0;g=yp(c>>>8&16711935|c<<8&-16711936,16)>>>k|0;c=g-(g>>>1&1431655765)|0;c=(c>>>2&858993459)+(c&858993459)|0;j=o((c>>>4|0)+c&252645135,16843009)>>>24|0;c=j;h=h+c|0;if(h>>>0>>0){f=f+1|0}i[l+8>>2]=h;i[d+12>>2]=f;c=e;d=b-j|0;f=d+i[c>>2]|0;e=i[c+4>>2]+(d>>31)|0;i[c>>2]=f;i[c+4>>2]=f>>>0>>0?e+1|0:e;a:{b:{c:{d:{c=i[a+28>>2];j=32-c|0;e:{f:{if((j|0)>=(b|0)){b=b+c|0;i[a+28>>2]=b;e=-1>>>k<>2]&(e^-1)|e&g<>2]=f;if((b|0)!=32){break e}b=i[a+16>>2];if((b|0)!=i[a+20>>2]){i[b>>2]=f;i[a+16>>2]=b+4;b=0;c=0;break f}c=i[a+12>>2];e=b-c|0;d=e>>2;g=d+1|0;if(g>>>0>=1073741824){break d}j=e>>1;g=d>>>0<536870911?j>>>0>>0?g:j:1073741823;b=0;g:{if(!g){break g}if(g>>>0>=1073741824){break c}b=ho(g<<2)}d=b+(d<<2)|0;i[d>>2]=f;g=b+(g<<2)|0;f=d+4|0;if((e|0)>=1){hp(b,c,e)}i[a+20>>2]=g;i[a+16>>2]=f;i[a+12>>2]=b;b=0;if(!c){c=0;break f}bp(c);c=0;break f}k=i[a+24>>2]&(-1<>2]=k;c=i[a+16>>2];h:{if((c|0)!=i[a+20>>2]){i[c>>2]=k;i[a+16>>2]=c+4;break h}e=i[a+12>>2];f=c-e|0;h=f>>2;d=h+1|0;if(d>>>0>=1073741824){break b}c=f>>1;d=h>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;i:{if(!d){break i}if(d>>>0>=1073741824){break a}c=ho(d<<2)}h=c+(h<<2)|0;i[h>>2]=k;d=c+(d<<2)|0;k=h+4|0;if((f|0)>=1){hp(c,e,f)}i[a+20>>2]=d;i[a+16>>2]=k;i[a+12>>2]=c;if(!e){break h}bp(e)}c=b-j|0;b=-1>>>32-c&g>>>j}i[a+28>>2]=c;i[a+24>>2]=b}return}Ho();x()}za(10036);x()}Ho();x()}za(10036);x()}function Nh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0;e=F-16|0;F=e;i[a+4>>2]=b;i[a+8>>2]=i[b+56>>2];i[a+188>>2]=i[a+184>>2];f=i[b+48>>2];b=ho(32);i[e>>2]=b;i[e+4>>2]=19;i[e+8>>2]=-2147483616;g[b+19|0]=0;c=j[11251]|j[11252]<<8|(j[11253]<<16|j[11254]<<24);g[b+15|0]=c;g[b+16|0]=c>>>8;g[b+17|0]=c>>>16;g[b+18|0]=c>>>24;c=j[11248]|j[11249]<<8|(j[11250]<<16|j[11251]<<24);d=j[11244]|j[11245]<<8|(j[11246]<<16|j[11247]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11240]|j[11241]<<8|(j[11242]<<16|j[11243]<<24);d=j[11236]|j[11237]<<8|(j[11238]<<16|j[11239]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;b=Sb(f,e);if(g[e+11|0]<=-1){bp(i[e>>2])}f=i[i[a+4>>2]+48>>2];a:{if(b){b=ho(32);i[e>>2]=b;i[e+4>>2]=19;i[e+8>>2]=-2147483616;g[b+19|0]=0;c=j[11251]|j[11252]<<8|(j[11253]<<16|j[11254]<<24);g[b+15|0]=c;g[b+16|0]=c>>>8;g[b+17|0]=c>>>16;g[b+18|0]=c>>>24;c=j[11248]|j[11249]<<8|(j[11250]<<16|j[11251]<<24);d=j[11244]|j[11245]<<8|(j[11246]<<16|j[11247]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11240]|j[11241]<<8|(j[11242]<<16|j[11243]<<24);d=j[11236]|j[11237]<<8|(j[11238]<<16|j[11239]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;h=a,k=ck(f,e,0),g[h+288|0]=k;if(g[e+11|0]>-1){break a}bp(i[e>>2]);break a}if((_b(f)|0)>=6){g[a+288|0]=1;break a}g[a+288|0]=0}F=e+16|0;return 1}function tf(a){var b=0,c=0,d=0,e=0;d=F-16|0;F=d;Xj(a);b=a+16|0;i[b>>2]=0;i[b+4>>2]=0;i[a+12>>2]=b;e=Xj(a+24|0);a=ho(32);i[d>>2]=a;i[d+4>>2]=20;i[d+8>>2]=-2147483616;g[a+20|0]=0;b=j[10408]|j[10409]<<8|(j[10410]<<16|j[10411]<<24);g[a+16|0]=b;g[a+17|0]=b>>>8;g[a+18|0]=b>>>16;g[a+19|0]=b>>>24;b=j[10404]|j[10405]<<8|(j[10406]<<16|j[10407]<<24);c=j[10400]|j[10401]<<8|(j[10402]<<16|j[10403]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10396]|j[10397]<<8|(j[10398]<<16|j[10399]<<24);c=j[10392]|j[10393]<<8|(j[10394]<<16|j[10395]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Yj(e,d,1);if(g[d+11|0]<=-1){bp(i[d>>2])}a=ho(32);i[d>>2]=a;i[d+4>>2]=22;i[d+8>>2]=-2147483616;g[a+22|0]=0;b=j[10431]|j[10432]<<8|(j[10433]<<16|j[10434]<<24);c=j[10427]|j[10428]<<8|(j[10429]<<16|j[10430]<<24);g[a+14|0]=c;g[a+15|0]=c>>>8;g[a+16|0]=c>>>16;g[a+17|0]=c>>>24;g[a+18|0]=b;g[a+19|0]=b>>>8;g[a+20|0]=b>>>16;g[a+21|0]=b>>>24;b=j[10425]|j[10426]<<8|(j[10427]<<16|j[10428]<<24);c=j[10421]|j[10422]<<8|(j[10423]<<16|j[10424]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10417]|j[10418]<<8|(j[10419]<<16|j[10420]<<24);c=j[10413]|j[10414]<<8|(j[10415]<<16|j[10416]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Yj(e,d,1);if(g[d+11|0]<=-1){bp(i[d>>2])}F=d+16|0}function Qf(a){var b=0,c=0,d=0,e=0;d=F-16|0;F=d;Xj(a);b=a+16|0;i[b>>2]=0;i[b+4>>2]=0;i[a+12>>2]=b;e=Xj(a+24|0);a=ho(32);i[d>>2]=a;i[d+4>>2]=20;i[d+8>>2]=-2147483616;g[a+20|0]=0;b=j[10676]|j[10677]<<8|(j[10678]<<16|j[10679]<<24);g[a+16|0]=b;g[a+17|0]=b>>>8;g[a+18|0]=b>>>16;g[a+19|0]=b>>>24;b=j[10672]|j[10673]<<8|(j[10674]<<16|j[10675]<<24);c=j[10668]|j[10669]<<8|(j[10670]<<16|j[10671]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10664]|j[10665]<<8|(j[10666]<<16|j[10667]<<24);c=j[10660]|j[10661]<<8|(j[10662]<<16|j[10663]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Yj(e,d,1);if(g[d+11|0]<=-1){bp(i[d>>2])}a=ho(32);i[d>>2]=a;i[d+4>>2]=22;i[d+8>>2]=-2147483616;g[a+22|0]=0;b=j[10699]|j[10700]<<8|(j[10701]<<16|j[10702]<<24);c=j[10695]|j[10696]<<8|(j[10697]<<16|j[10698]<<24);g[a+14|0]=c;g[a+15|0]=c>>>8;g[a+16|0]=c>>>16;g[a+17|0]=c>>>24;g[a+18|0]=b;g[a+19|0]=b>>>8;g[a+20|0]=b>>>16;g[a+21|0]=b>>>24;b=j[10693]|j[10694]<<8|(j[10695]<<16|j[10696]<<24);c=j[10689]|j[10690]<<8|(j[10691]<<16|j[10692]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10685]|j[10686]<<8|(j[10687]<<16|j[10688]<<24);c=j[10681]|j[10682]<<8|(j[10683]<<16|j[10684]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Yj(e,d,1);if(g[d+11|0]<=-1){bp(i[d>>2])}F=d+16|0}function ij(a,b){var c=0,d=0,e=0;i[a>>2]=i[b>>2];i[a+4>>2]=i[b+4>>2];i[a+8>>2]=i[b+8>>2];c=b+12|0;i[a+12>>2]=i[c>>2];i[c>>2]=0;i[b+4>>2]=0;i[b+8>>2]=0;c=b+16|0;i[a+16>>2]=i[c>>2];i[a+20>>2]=i[b+20>>2];d=b+24|0;i[a+24>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=j[b+28|0];e=a+40|0;i[e>>2]=0;c=a+32|0;i[c>>2]=0;i[c+4>>2]=0;g[a+28|0]=d;d=c;c=b+32|0;i[d>>2]=i[c>>2];i[a+36>>2]=i[b+36>>2];d=b+40|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a+52|0;i[d>>2]=0;c=a+44|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+44|0;i[e>>2]=i[c>>2];i[a+48>>2]=i[b+48>>2];e=d;d=b+52|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a- -64|0;i[d>>2]=0;c=a+56|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+56|0;i[e>>2]=i[c>>2];i[a+60>>2]=i[b+60>>2];e=d;d=b- -64|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;i[a+68>>2]=i[b+68>>2];d=i[b+72>>2];e=a+84|0;i[e>>2]=0;c=a+76|0;i[c>>2]=0;i[c+4>>2]=0;i[a+72>>2]=d;d=c;c=b+76|0;i[d>>2]=i[c>>2];i[a+80>>2]=i[b+80>>2];d=b+84|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a+96|0;i[d>>2]=0;c=a+88|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+88|0;i[e>>2]=i[c>>2];i[a+92>>2]=i[b+92>>2];e=d;d=b+96|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;c=j[b+100|0];d=a+112|0;i[d>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;g[a+100|0]=c;i[a+104>>2]=i[b+104>>2];i[a+108>>2]=i[b+108>>2];c=b+112|0;i[d>>2]=i[c>>2];i[c>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;d=a+124|0;i[d>>2]=0;c=a+116|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+116|0;i[e>>2]=i[c>>2];i[a+120>>2]=i[b+120>>2];e=d;d=b+124|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;i[a+128>>2]=i[b+128>>2];i[a+132>>2]=i[b+132>>2];return a}function pj(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=F-16|0;F=g;i[g+8>>2]=0;i[g>>2]=0;i[g+4>>2]=0;d=i[a+56>>2];c=i[d+96>>2];l=i[d+100>>2]-c|0;d=(l|0)/12|0;a:{if(!l){break a}n=d>>>0>1?d:1;d=0;l=0;b:{while(1){c:{m=o(l,12)+c|0;h=i[m>>2];c=h-j|0;e=c>>31;j=(e^c+e)<<1|c>>>31;d:{if((b|0)!=(d|0)){i[b>>2]=j;b=b+4|0;i[g+4>>2]=b;break d}e=d-f|0;d=e>>2;b=d+1|0;if(b>>>0>=1073741824){break c}k=e>>1;b=d>>>0<536870911?k>>>0>>0?b:k:1073741823;c=0;e:{if(!b){break e}if(b>>>0>=1073741824){break b}c=ho(b<<2)}k=c+(d<<2)|0;i[k>>2]=j;d=c+(b<<2)|0;b=k+4|0;if((e|0)>=1){hp(c,f,e)}i[g+8>>2]=d;i[g+4>>2]=b;i[g>>2]=c;if(f){bp(f)}f=c}k=i[m+4>>2];c=k-h|0;e=c>>31;j=(e^c+e)<<1|c>>>31;f:{if((b|0)!=(d|0)){i[b>>2]=j;b=b+4|0;i[g+4>>2]=b;break f}e=d-f|0;d=e>>2;b=d+1|0;if(b>>>0>1073741823){break c}h=e>>1;b=d>>>0<536870911?h>>>0>>0?b:h:1073741823;c=0;g:{if(!b){break g}if(b>>>0>1073741823){break b}c=ho(b<<2)}h=c+(d<<2)|0;i[h>>2]=j;d=c+(b<<2)|0;b=h+4|0;if((e|0)>=1){hp(c,f,e)}i[g+8>>2]=d;i[g+4>>2]=b;i[g>>2]=c;if(f){bp(f)}f=c}j=i[m+8>>2];c=j-k|0;e=c>>31;m=(e^c+e)<<1|c>>>31;h:{if((b|0)!=(d|0)){i[b>>2]=m;b=b+4|0;i[g+4>>2]=b;break h}e=d-f|0;d=e>>2;b=d+1|0;if(b>>>0>1073741823){break c}h=e>>1;b=d>>>0<536870911?h>>>0>>0?b:h:1073741823;c=0;i:{if(!b){break i}if(b>>>0>1073741823){break b}c=ho(b<<2)}h=c+(d<<2)|0;i[h>>2]=m;d=c+(b<<2)|0;b=h+4|0;if((e|0)>=1){hp(c,f,e)}i[g+8>>2]=d;i[g+4>>2]=b;i[g>>2]=c;if(f){bp(f)}f=c}l=l+1|0;if((n|0)==(l|0)){break a}c=i[i[a+56>>2]+96>>2];continue}break}Ho();x()}za(13344);x()}kg(f,b-f>>2,1,0,i[a+44>>2]);if(f){bp(f)}F=g+16|0}function Qe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;h=F-32|0;F=h;d=(e&1073741823)!=(e|0)?-1:e<<2;p=ip(ho(d),0,d);d=i[a+40>>2];g=i[d>>2];a:{d=i[d+4>>2]-g|0;if((d|0)<5){break a}l=d>>2;f=d>>>2|0;d=f+ -1|0;if(l>>>0>d>>>0){q=i[a+32>>2];s=a+8|0;t=i[a+36>>2];while(1){m=o(d,e);b:{c:{g=i[(d<<2)+g>>2];if((g|0)==-1){break c}g=i[i[q+12>>2]+(g<<2)>>2];if((g|0)==-1){break c}j=-1;n=i[t>>2];k=i[q>>2];r=i[n+(i[k+(g<<2)>>2]<<2)>>2];l=g+1|0;l=(l>>>0)%3|0?l:g+ -2|0;if((l|0)!=-1){l=i[(l<<2)+k>>2]}else{l=-1}g=g+((g>>>0)%3|0?-1:2)|0;if((g|0)!=-1){j=i[(g<<2)+k>>2]}if((r|0)>=(d|0)){break c}g=i[(l<<2)+n>>2];if((g|0)>=(d|0)){break c}j=i[n+(j<<2)>>2];if((j|0)>=(d|0)){break c}if((e|0)>=1){j=o(e,j);k=o(e,g);n=o(e,r);g=0;while(1){i[(g<<2)+p>>2]=(i[(g+j<<2)+b>>2]+i[(g+k<<2)+b>>2]|0)-i[(g+n<<2)+b>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}g=i[p>>2];j=i[p+4>>2];m=m<<2;k=m+b|0;n=i[k+4>>2];i[h+16>>2]=i[k>>2];i[h+20>>2]=n;i[h+8>>2]=g;i[h+12>>2]=j;break b}g=(o(f+ -2|0,e)<<2)+b|0;j=i[g>>2];g=i[g+4>>2];m=m<<2;k=m+b|0;n=i[k+4>>2];i[h+16>>2]=i[k>>2];i[h+20>>2]=n;i[h+8>>2]=j;i[h+12>>2]=g}ze(h+24|0,s,h+16|0,h+8|0);g=c+m|0;i[g>>2]=i[h+24>>2];i[g+4>>2]=i[h+28>>2];if((f|0)<3){break a}f=d;m=i[a+40>>2];g=i[m>>2];d=d+ -1|0;if(i[m+4>>2]-g>>2>>>0>d>>>0){continue}break}}Io();x()}if((e|0)>=1){ip(p,0,e<<2)}d=i[p>>2];e=i[p+4>>2];f=i[b+4>>2];i[h+16>>2]=i[b>>2];i[h+20>>2]=f;i[h+8>>2]=d;i[h+12>>2]=e;ze(h+24|0,a+8|0,h+16|0,h+8|0);i[c>>2]=i[h+24>>2];i[c+4>>2]=i[h+28>>2];bp(p);F=h+32|0;return 1}function ye(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;h=F-32|0;F=h;d=(e&1073741823)!=(e|0)?-1:e<<2;n=ip(ho(d),0,d);d=i[a+40>>2];g=i[d>>2];a:{d=i[d+4>>2]-g|0;if((d|0)<5){break a}j=d>>2;f=d>>>2|0;d=f+ -1|0;if(j>>>0>d>>>0){q=i[a+32>>2];r=a+8|0;s=i[a+36>>2];while(1){k=o(d,e);b:{c:{g=i[(d<<2)+g>>2];if((g|0)==-1|i[i[q>>2]+(g>>>3&536870908)>>2]>>>g&1){break c}g=i[i[i[q+64>>2]+12>>2]+(g<<2)>>2];if((g|0)==-1){break c}j=i[s>>2];l=i[q+28>>2];m=i[j+(i[l+(g<<2)>>2]<<2)>>2];if((m|0)>=(d|0)){break c}p=g+1|0;p=i[j+(i[l+(((p>>>0)%3|0?p:g+ -2|0)<<2)>>2]<<2)>>2];if((p|0)>=(d|0)){break c}g=i[j+(i[l+(g+((g>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((g|0)>=(d|0)){break c}if((e|0)>=1){l=o(e,g);j=o(e,p);m=o(e,m);g=0;while(1){i[(g<<2)+n>>2]=(i[(g+l<<2)+b>>2]+i[(g+j<<2)+b>>2]|0)-i[(g+m<<2)+b>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}g=i[n>>2];l=i[n+4>>2];k=k<<2;j=k+b|0;m=i[j+4>>2];i[h+16>>2]=i[j>>2];i[h+20>>2]=m;i[h+8>>2]=g;i[h+12>>2]=l;break b}g=(o(f+ -2|0,e)<<2)+b|0;l=i[g>>2];g=i[g+4>>2];k=k<<2;j=k+b|0;m=i[j+4>>2];i[h+16>>2]=i[j>>2];i[h+20>>2]=m;i[h+8>>2]=l;i[h+12>>2]=g}ze(h+24|0,r,h+16|0,h+8|0);g=c+k|0;i[g>>2]=i[h+24>>2];i[g+4>>2]=i[h+28>>2];if((f|0)<3){break a}f=d;k=i[a+40>>2];g=i[k>>2];d=d+ -1|0;if(i[k+4>>2]-g>>2>>>0>d>>>0){continue}break}}Io();x()}if((e|0)>=1){ip(n,0,e<<2)}d=i[n>>2];e=i[n+4>>2];f=i[b+4>>2];i[h+16>>2]=i[b>>2];i[h+20>>2]=f;i[h+8>>2]=d;i[h+12>>2]=e;ze(h+24|0,a+8|0,h+16|0,h+8|0);i[c>>2]=i[h+24>>2];i[c+4>>2]=i[h+28>>2];bp(n);F=h+32|0;return 1}function Nf(a,b,c,d,e){var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{b:{c:{d:{e:{n=a+4|0;f:{if((n|0)==(b|0)){break f}f=j[b+27|0];h=f<<24>>24<0;k=j[e+11|0];p=k<<24>>24;g=(p|0)<0;f=h?i[b+20>>2]:f;k=g?i[e+4>>2]:k;l=f>>>0>>0;m=l?f:k;if(m){g=g?i[e>>2]:e;o=b+16|0;h=h?i[o>>2]:o;o=Km(g,h,m);if(!o){if(k>>>0>>0){break f}break e}if((o|0)>-1){break e}break f}if(k>>>0>=f>>>0){break d}}h=i[b>>2];d=b;g:{h:{if(i[a>>2]==(b|0)){break h}i:{if(h){f=h;while(1){d=f;f=i[f+4>>2];if(f){continue}break}break i}d=b+8|0;if(i[i[b+8>>2]>>2]==(b|0)){while(1){f=i[d>>2];d=f+8|0;if((f|0)==i[i[f+8>>2]>>2]){continue}break}}d=i[d>>2]}g=j[e+11|0];f=g<<24>>24<0;l=j[d+27|0];k=l<<24>>24<0;j:{g=f?i[e+4>>2]:g;l=k?i[d+20>>2]:l;m=g>>>0>>0?g:l;if(m){n=d+16|0;f=Km(k?i[n>>2]:n,f?i[e>>2]:e,m);if(f){break j}}if(l>>>0>>0){break h}break g}if((f|0)>-1){break g}}if(!h){i[c>>2]=b;return b}i[c>>2]=d;return d+4|0}return Of(a,c,e)}f=Km(h,g,m);if(f){break c}}if(l){break b}break a}if((f|0)>-1){break a}}h=i[b+4>>2];k:{if(h){f=h;while(1){d=f;f=i[f>>2];if(f){continue}break}break k}d=i[b+8>>2];if(i[d>>2]==(b|0)){break k}f=b+8|0;while(1){g=i[f>>2];f=g+8|0;d=i[g+8>>2];if((g|0)!=i[d>>2]){continue}break}}l:{m:{if((d|0)==(n|0)){break m}g=j[d+27|0];f=g<<24>>24<0;n:{g=f?i[d+20>>2]:g;l=g>>>0>>0?g:k;if(l){m=d+16|0;f=Km((p|0)<0?i[e>>2]:e,f?i[m>>2]:m,l);if(f){break n}}if(k>>>0>>0){break m}break l}if((f|0)>-1){break l}}if(!h){i[c>>2]=b;return b+4|0}i[c>>2]=d;return d}return Of(a,c,e)}i[c>>2]=b;i[d>>2]=b;return d}function ge(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;i[a+8>>2]=e;i[a- -64>>2]=f;g=a+32|0;j=i[g>>2];f=i[a+36>>2]-j>>2;a:{if(f>>>0>>0){Bd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=j+(e<<2)}b:{if(!d){break b}j=1;f=i[b>>2];c:{if((d|0)<=1){g=f;break c}g=f;while(1){h=i[(j<<2)+b>>2];k=(h|0)<(g|0);g=k?h:g;f=k?f:(h|0)>(f|0)?h:f;j=j+1|0;if((j|0)!=(d|0)){continue}break}}i[a+16>>2]=f;i[a+12>>2]=g;d=(f>>31)-((g>>31)+(f>>>0>>0)|0)|0;f=f-g|0;if(!d&f>>>0>2147483646|d>>>0>0){break b}d=f+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}d=i[a+56>>2];g=i[d>>2];d:{d=i[d+4>>2]-g|0;if((d|0)<1){break d}h=(d>>>2|0)+ -1|0;if(d>>2>>>0>h>>>0){p=a+60|0;j=a+68|0;while(1){he(p,i[(h<<2)+g>>2],b,h);g=i[a+8>>2];if((g|0)>=1){d=o(e,h)<<2;q=d+c|0;r=b+d|0;d=j;k=0;while(1){f=0;e:{if((g|0)<=0){g=i[a+32>>2];break e}while(1){l=f<<2;n=i[l+d>>2];m=i[a+16>>2];f:{if((n|0)>(m|0)){g=i[a+32>>2];i[l+g>>2]=m;break f}g=i[a+32>>2];l=l+g|0;m=i[a+12>>2];if((n|0)<(m|0)){i[l>>2]=m;break f}i[l>>2]=n}f=f+1|0;if((f|0)>2]){continue}break}}f=k<<2;d=f+q|0;f=i[f+r>>2]-i[f+g>>2]|0;i[d>>2]=f;g:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break g}f=f-i[a+20>>2]|0}i[d>>2]=f}d=g;k=k+1|0;g=i[a+8>>2];if((k|0)<(g|0)){continue}break}}h=h+ -1|0;if((h|0)<0){break d}d=i[a+56>>2];g=i[d>>2];if(i[d+4>>2]-g>>2>>>0>h>>>0){continue}break}}Io();x()}return 1}function Od(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;i[a+8>>2]=e;i[a- -64>>2]=f;g=a+32|0;j=i[g>>2];f=i[a+36>>2]-j>>2;a:{if(f>>>0>>0){Bd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=j+(e<<2)}b:{if(!d){break b}j=1;f=i[b>>2];c:{if((d|0)<=1){g=f;break c}g=f;while(1){h=i[(j<<2)+b>>2];k=(h|0)<(g|0);g=k?h:g;f=k?f:(h|0)>(f|0)?h:f;j=j+1|0;if((j|0)!=(d|0)){continue}break}}i[a+16>>2]=f;i[a+12>>2]=g;d=(f>>31)-((g>>31)+(f>>>0>>0)|0)|0;f=f-g|0;if(!d&f>>>0>2147483646|d>>>0>0){break b}d=f+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}d=i[a+56>>2];g=i[d>>2];d:{d=i[d+4>>2]-g|0;if((d|0)<1){break d}h=(d>>>2|0)+ -1|0;if(d>>2>>>0>h>>>0){p=a+60|0;j=a+68|0;while(1){Pd(p,i[(h<<2)+g>>2],b,h);g=i[a+8>>2];if((g|0)>=1){d=o(e,h)<<2;q=d+c|0;r=b+d|0;d=j;k=0;while(1){f=0;e:{if((g|0)<=0){g=i[a+32>>2];break e}while(1){l=f<<2;n=i[l+d>>2];m=i[a+16>>2];f:{if((n|0)>(m|0)){g=i[a+32>>2];i[l+g>>2]=m;break f}g=i[a+32>>2];l=l+g|0;m=i[a+12>>2];if((n|0)<(m|0)){i[l>>2]=m;break f}i[l>>2]=n}f=f+1|0;if((f|0)>2]){continue}break}}f=k<<2;d=f+q|0;f=i[f+r>>2]-i[f+g>>2]|0;i[d>>2]=f;g:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break g}f=f-i[a+20>>2]|0}i[d>>2]=f}d=g;k=k+1|0;g=i[a+8>>2];if((k|0)<(g|0)){continue}break}}h=h+ -1|0;if((h|0)<0){break d}d=i[a+56>>2];g=i[d>>2];if(i[d+4>>2]-g>>2>>>0>h>>>0){continue}break}}Io();x()}return 1}function ze(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=c;f=i[b+16>>2];g=i[e+4>>2]-f|0;i[e>>2]=i[e>>2]-f;i[e+4>>2]=g;e=i[d+4>>2]-f|0;f=i[d>>2]-f|0;i[d>>2]=f;i[d+4>>2]=e;g=e>>31;k=g+e^g;g=f>>31;h=i[b+16>>2];if((k+(g+f^g)|0)>(h|0)){j=i[c+4>>2];l=i[c>>2];a:{b:{if((l|0)>=0){e=1;g=1;if((j|0)>-1){break a}f=1;e=-1;g=-1;if((l|0)>=1){break b}break a}f=-1;e=-1;g=-1;if((j|0)<1){break a}}e=(j|0)<1?-1:1;g=f}f=1;k=-1;m=l<<1;l=o(g,h);m=m-l|0;g=(o(e,g)|0)>-1;e=o(e,h);i[c+4>>2]=((g?0-m|0:m)+e|0)/2;e=(j<<1)-e|0;i[c>>2]=(l+(g?0-e|0:e)|0)/2;g=i[d+4>>2];j=i[d>>2];c:{d:{if((j|0)>=0){e=1;if((g|0)>-1){break c}k=1;f=-1;e=-1;if((j|0)>=1){break d}break c}f=-1;e=-1;if((g|0)<1){break c}}f=(g|0)<1?-1:1;e=k}h=j<<1;k=i[b+16>>2];j=o(k,e);h=h-j|0;m=0-h|0;l=h;h=(o(e,f)|0)>-1;f=o(f,k);e=((h?m:l)+f|0)/2|0;i[d+4>>2]=e;f=(g<<1)-f|0;f=(j+(h?0-f|0:f)|0)/2|0;i[d>>2]=f}k=d;e:{f:{g:{h:{i:{j:{if(!f){if(e){break j}e=0;f=0;break e}if((e|0)<1?(f|0)<=-1:0){break e}if((f|0)<1){break i}if((e|0)<=-1){break g}e=0-i[c+4>>2]|0;i[c>>2]=0-i[c>>2];i[c+4>>2]=e;f=0-i[d>>2]|0;e=0-i[d+4>>2]|0;break f}if((e|0)<1){break g}break h}if((e|0)>0){break h}f=i[d>>2];e=i[d+4>>2];break f}e=c;g=i[e>>2];i[e>>2]=0-i[e+4>>2];i[e+4>>2]=g;f=0-i[d+4>>2]|0;e=i[d>>2];break f}e=0-i[c>>2]|0;i[c>>2]=i[c+4>>2];i[c+4>>2]=e;f=i[d+4>>2];e=0-i[d>>2]|0}i[k>>2]=f;i[k+4>>2]=e}d=i[c+4>>2]-e|0;e=a;c=i[c>>2]-f|0;if((c|0)<=-1){c=c+i[b+4>>2]|0}i[e>>2]=c;if((d|0)<=-1){d=d+i[b+4>>2]|0}i[a+4>>2]=d}function Gi(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11424;b=i[a+336>>2];if(b){c=i[a+340>>2];d=b;a:{if((b|0)==(c|0)){break a}while(1){d=c+ -12|0;e=i[d>>2];if(e){i[c+ -8>>2]=e;bp(e)}c=d;if((c|0)!=(b|0)){continue}break}d=i[a+336>>2]}i[a+340>>2]=b;bp(d)}b=i[a+304>>2];if(b){i[a+308>>2]=b;bp(b)}b=i[a+292>>2];if(b){i[a+296>>2]=b;bp(b)}b=a+280|0;c=i[b>>2];i[b>>2]=0;if(c){d=c+ -4|0;b=i[d>>2];if(b){b=c+(b<<5)|0;while(1){b=nf(b+ -32|0);if((c|0)!=(b|0)){continue}break}}bp(d)}b=i[a+268>>2];if(b){i[a+272>>2]=b;bp(b)}c=a+244|0;b=i[c>>2];i[c>>2]=0;if(b){bp(b)}b=i[a+232>>2];if(b){i[a+236>>2]=b;bp(b)}nf(a+200|0);b=i[a+184>>2];if(b){i[a+188>>2]=b;bp(b)}c=i[a+172>>2];if(c){b=i[a+176>>2];d=c;b:{if((c|0)==(b|0)){break b}while(1){d=i[b+ -20>>2];if(d){i[b+ -16>>2]=d;bp(d)}d=b+ -136|0;e=i[b+ -32>>2];if(e){i[b+ -28>>2]=e;bp(e)}ni(b+ -132|0);b=d;if((c|0)!=(b|0)){continue}break}d=i[a+172>>2]}i[a+176>>2]=c;bp(d)}b=i[a+152>>2];if(b){i[a+156>>2]=b;bp(b)}b=i[a+140>>2];if(b){bp(b)}b=i[a+128>>2];if(b){while(1){c=i[b>>2];bp(b);b=c;if(b){continue}break}}b=i[a+120>>2];i[a+120>>2]=0;if(b){bp(b)}b=i[a+108>>2];if(b){i[a+112>>2]=b;bp(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+84>>2];if(b){bp(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;bp(b)}b=i[a+52>>2];if(b){i[a+56>>2]=b;bp(b)}b=i[a+40>>2];if(b){i[a+44>>2]=b;bp(b)}b=i[a+28>>2];if(b){bp(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}b=i[a+12>>2];i[a+12>>2]=0;if(b){bi(b)}return a|0}function _a(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=0,o=0,q=0,r=0,s=p(0),t=0,u=0;n=i[c+12>>2];o=i[c+8>>2];q=i[c+4>>2];r=i[c>>2];j=n^(o^(q^(r^318)+239)+239)+239;t=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];l=xp(e);h=j&e+ -1;c:{if(l>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}u=e+ -1|0;l=l>>>0>1;while(1){f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!l){f=f&u;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(!(i[c+8>>2]!=(r|0)|i[c+12>>2]!=(q|0)|(i[c+16>>2]!=(o|0)|i[c+20>>2]!=(n|0)))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ho(28);f=i[d+12>>2];i[c+16>>2]=i[d+8>>2];i[c+20>>2]=f;f=i[d+4>>2];i[c+8>>2]=i[d>>2];i[c+12>>2]=f;d=i[d+16>>2];i[c>>2]=0;i[c+4>>2]=j;i[c+24>>2]=d;k=m[b+16>>2];s=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(s/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}fb(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[t+4|0]=b;i[a>>2]=c}function ff(a,b){var c=0,d=0,e=0,f=0,h=0,k=0;d=F-16|0;F=d;a:{if((_b(i[b+48>>2])|0)>9){break a}if((I[i[i[b>>2]+8>>2]](b)|0)!=1){break a}a=i[i[i[b+4>>2]+8>>2]+(a<<2)>>2];e=i[a+56>>2];if((e|0)==3){e=5;if((_b(i[b+48>>2])|0)<4){break a}e=i[a+56>>2]}a=_b(i[b+48>>2]);if((e|0)==1){b:{if((a|0)>3){break b}f=xm(i[b+4>>2],0);a=ym(i[b+4>>2]);if(!a){break b}e=6;a=i[a+28>>2]+ -1|0;c:{if(a>>>0<=10){a=1279>>>a&1;break c}a=0}if(a){break a}h=i[b+48>>2];a=ho(32);i[d>>2]=a;i[d+4>>2]=17;i[d+8>>2]=-2147483616;g[a+17|0]=0;g[a+16|0]=j[9948];b=j[9944]|j[9945]<<8|(j[9946]<<16|j[9947]<<24);c=j[9940]|j[9941]<<8|(j[9942]<<16|j[9943]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[9936]|j[9937]<<8|(j[9938]<<16|j[9939]<<24);c=j[9932]|j[9933]<<8|(j[9934]<<16|j[9935]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;d:{e:{c=h+16|0;b=i[c>>2];if(!b){break e}a=c;while(1){k=i[b+16>>2]<(f|0);a=k?a:b;b=i[(k<<2)+b>>2];if(b){continue}break}if((a|0)==(c|0)|(f|0)>2]){break e}a=a+20|0;if(!Sb(a,d)){break e}a=$j(a,d,-1);break d}a=$j(h,d,-1)}if(g[d+11|0]<=-1){bp(i[d>>2])}if((a|0)>0){break a}}e=0;break a}e=0;if((a|0)>7){break a}e=1;if((_b(i[b+48>>2])|0)>1){break a}F=d+16|0;return l[i[b+4>>2]+80>>2]<40?1:4}F=d+16|0;return e}function Th(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;d=F-112|0;F=d;e=ho(120);m=i[b+8>>2];i[e+12>>2]=0;i[e+16>>2]=0;i[e>>2]=12120;i[e+4>>2]=0;i[e+20>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+56>>2]=0;i[e+60>>2]=0;i[e+8>>2]=12332;h=e- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[e+72>>2]=0;i[e+76>>2]=0;i[e+80>>2]=0;i[e+84>>2]=0;i[e+88>>2]=0;i[e+116>>2]=0;i[e+112>>2]=c;i[e+108>>2]=m;i[e+104>>2]=0;i[e+96>>2]=0;i[e+100>>2]=0;h=i[b+12>>2];i[d+52>>2]=0;n=d+44|0;j=n;i[j>>2]=0;i[j+4>>2]=0;i[d+36>>2]=0;i[d+40>>2]=0;j=d+28|0;i[j>>2]=0;i[j+4>>2]=0;o=d+20|0;f=o;i[f>>2]=0;i[f+4>>2]=0;f=d- -64|0;i[f>>2]=0;i[f+4>>2]=0;i[d+72>>2]=0;i[d+76>>2]=0;f=d+80|0;i[f>>2]=0;i[f+4>>2]=0;i[d+88>>2]=0;i[d+104>>2]=0;i[d+12>>2]=0;i[d+16>>2]=0;i[d+56>>2]=0;i[d+60>>2]=0;i[d+8>>2]=12332;i[d+96>>2]=0;i[d+100>>2]=0;i[d+12>>2]=h;k=i[h>>2];l=i[h+4>>2];g[d+111|0]=0;Uh(d+32|0,(l-k>>2>>>0)/3|0,d+111|0);k=i[d+12>>2];l=i[k+28>>2];k=i[k+24>>2];g[d+111|0]=0;Uh(n,l-k>>2,d+111|0);i[j>>2]=e;i[d+24>>2]=m;i[o>>2]=c;i[d+16>>2]=h;i[e+116>>2]=b+72;Yh(e,d+8|0);i[a>>2]=e;i[d+8>>2]=12332;a=i[d+96>>2];if(a){i[d+100>>2]=a;bp(a)}a=i[f>>2];if(a){i[d+84>>2]=a;bp(a)}a=i[d+68>>2];if(a){i[d+72>>2]=a;bp(a)}a=i[d+56>>2];if(a){i[d+60>>2]=a;bp(a)}i[d+8>>2]=12568;a=i[d+44>>2];if(a){bp(a)}a=i[d+32>>2];if(a){bp(a)}F=d+112|0}function wb(a,b,c,d){var e=0,f=0,h=0,j=0,l=0,n=p(0),o=0,q=0,r=0,s=0,t=p(0),u=0,w=0;q=k[c+6>>1];r=k[c+4>>1];s=k[c+2>>1];l=k[c>>1];j=q^(r^(s^(l^318)+239)+239)+239;u=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];o=xp(e);h=j&e+ -1;c:{if(o>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}w=e+ -1|0;o=o>>>0>1;while(1){f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!o){f=f&w;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(!(k[c+8>>1]!=(l|0)|k[c+10>>1]!=(s|0)|(k[c+12>>1]!=(r|0)|k[c+14>>1]!=(q|0)))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ho(20);l=i[d+4>>2];i[c+8>>2]=i[d>>2];i[c+12>>2]=l;d=i[d+8>>2];i[c+4>>2]=j;i[c+16>>2]=d;i[c>>2]=0;n=m[b+16>>2];t=p(i[b+12>>2]+1>>>0);e:{if(p(n*p(e>>>0))>>0<3|e<<1;d=b;n=p(v(p(t/n)));f:{if(n=p(0)){h=~~n>>>0;break f}h=0}Db(d,l>>>0>>0?h:l);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[u+4|0]=b;i[a>>2]=c}function Vc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0;e=F-16|0;F=e;d=i[b+28>>2];f=i[i[b+4>>2]+(c<<2)>>2];h=i[i[i[d+4>>2]+8>>2]+(f<<2)>>2];b=i[h+28>>2];a:{if(b+ -1>>>0>=6){b:{if((b|0)!=9){break b}k=i[d+48>>2];b=ho(32);i[e>>2]=b;i[e+4>>2]=17;i[e+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[2108];c=j[2104]|j[2105]<<8|(j[2106]<<16|j[2107]<<24);d=j[2100]|j[2101]<<8|(j[2102]<<16|j[2103]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[2096]|j[2097]<<8|(j[2098]<<16|j[2099]<<24);d=j[2092]|j[2093]<<8|(j[2094]<<16|j[2095]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;c:{d:{d=k+16|0;b=i[d>>2];if(!b){break d}c=d;while(1){l=i[b+16>>2]<(f|0);c=l?c:b;b=i[(l<<2)+b>>2];if(b){continue}break}if((c|0)==(d|0)|(f|0)>2]){break d}b=c+20|0;if(!Sb(b,e)){break d}b=$j(b,e,-1);break c}b=$j(k,e,-1)}if(g[e+11|0]<=-1){bp(i[e>>2])}if((b|0)<1){break b}if(i[h+56>>2]==1){b=ho(48);i[b>>2]=0;i[b+4>>2]=0;c=b+40|0;i[c>>2]=0;i[c+4>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=0;i[b+28>>2]=0;i[b+16>>2]=0;i[b+20>>2]=0;i[b+8>>2]=0;i[b+12>>2]=0;ed(b);i[b+44>>2]=-1;i[c>>2]=1032;i[b>>2]=6056;break a}b=ho(64);$e(b);break a}b=ho(36);Bc(b);break a}b=ho(40);ed(b)}i[a>>2]=b;F=e+16|0}function sa(a,b,c){var d=p(0),e=0,f=0,h=0,j=0,k=p(0),l=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;l=F-16|0;F=l;a:{if(!(i[a+4>>2]!=-1|c+ -1>>>0>29)){i[a+4>>2]=c;e=g[b+24|0];c=0;i[a+20>>2]=0;i[l+8>>2]=0;i[l>>2]=0;i[l+4>>2]=0;if(e){if((e|0)<=-1){break a}c=e<<2;f=ho(c);c=ip(f,0,c)+c|0}h=i[a+8>>2];if(h){i[a+12>>2]=h;bp(h)}i[a+8>>2]=f;i[a+16>>2]=c;i[a+12>>2]=c;c=(e&1073741823)!=(e|0)?-1:e<<2;n=ho(c);c=ho(c);w=i[b+44>>2];o=c;h=i[b+48>>2];c=h;q=i[b>>2];t=i[b+40>>2];r=t;u=hp(o,c+i[q>>2]|0,r);s=hp(f,c+i[q>>2]|0,r);n=hp(n,c+i[q>>2]|0,r);b=i[b+80>>2];if(b>>>0>=2){f=b;o=1;c=0;while(1){b=i[q>>2];j=up(o,c,t,w)+h|0;y=hp(u,b+j|0,r);b=0;if((e|0)>0){while(1){j=b<<2;v=j+s|0;d=m[j+y>>2];if(!(m[v>>2]>d^1)){m[v>>2]=d}j=j+n|0;if(!(m[j>>2]>2]=d}b=b+1|0;if((e|0)!=(b|0)){continue}break}}b=o+1|0;if(b>>>0<1){c=c+1|0}o=b;if((f|0)!=(b|0)|c){continue}break}}c=1;b:{c:{d:{if((e|0)>=1){d=m[s>>2];if(d!=d){break b}b=0;break d}d=m[a+20>>2];c=0;break c}while(1){if(((Fp(d),Bp(2))&2147483647)==2139095040){break b}h=(b<<2)+n|0;f=i[h>>2];k=m[h>>2];if((f&2147483647)==2139095040|k!=k){break b}k=p(k-d);d=m[a+20>>2];if(!(k>d^1)){m[a+20>>2]=k;d=k}b=b+1|0;c=(b|0)<(e|0);if((b|0)==(e|0)){break c}d=m[(b<<2)+s>>2];if(d==d){continue}break}break b}if(d!=p(0)){break b}i[a+20>>2]=1065353216}bp(u);bp(n);f=c^1}F=l+16|0;return f&1}Ho();x()}function Za(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=0,o=0,q=0,r=p(0),s=0,t=0;n=i[c+8>>2];o=i[c+4>>2];q=i[c>>2];j=n^(o^(q^318)+239)+239;s=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];l=xp(e);h=j&e+ -1;c:{if(l>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}t=e+ -1|0;l=l>>>0>1;while(1){f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!l){f=f&t;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(!(i[c+8>>2]!=(q|0)|i[c+12>>2]!=(o|0)|i[c+16>>2]!=(n|0))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ho(24);i[c+16>>2]=i[d+8>>2];f=i[d+4>>2];i[c+8>>2]=i[d>>2];i[c+12>>2]=f;d=i[d+12>>2];i[c>>2]=0;i[c+4>>2]=j;i[c+20>>2]=d;k=m[b+16>>2];r=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(r/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}db(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[s+4|0]=b;i[a>>2]=c}function Gg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;jh(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}fh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function Fg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;ih(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}fh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function Eg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;hh(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}fh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function Dg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;gh(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}fh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function Cg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;eh(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}fh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function Bg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;ch(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=2097152;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=2097152;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<19)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}dh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function Ag(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;ah(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=1048576;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=1048576;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<18)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}bh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function zg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;_g(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=262144;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=262144;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<16)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}$g(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function yg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Yg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=131072;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=131072;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<15)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}Zg(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function xg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Wg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=32768;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=32768;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<13)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}Xg(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function wg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Vg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function vg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Ug(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function ug(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Tg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function tg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;ng(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function sg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Sg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function rg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Rg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function qg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Qg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function pg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Pg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function kb(a,b,c,d){var e=0,f=0,h=0,k=0,l=p(0),n=0,o=0,q=0,r=0,s=0,t=p(0),u=0,w=0;o=j[c+3|0];q=j[c+2|0];r=j[c+1|0];s=j[c|0];k=o^(q^(r^(s^318)+239)+239)+239;u=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];n=xp(e);h=k&e+ -1;c:{if(n>>>0<=1){break c}c=k;h=c;if(c>>>0>>0){break c}h=(k>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}w=e+ -1|0;n=n>>>0>1;while(1){f=i[c+4>>2];if((k|0)!=(f|0)){d:{if(!n){f=f&w;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(!(j[c+8|0]!=(s|0)|j[c+9|0]!=(r|0)|(j[c+10|0]!=(q|0)|j[c+11|0]!=(o|0)))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ho(16);i[c+8>>2]=i[d>>2];d=i[d+4>>2];i[c+4>>2]=k;i[c+12>>2]=d;i[c>>2]=0;l=m[b+16>>2];t=p(i[b+12>>2]+1>>>0);e:{if(p(l*p(e>>>0))>>0<3|e<<1;d=b;l=p(v(p(t/l)));f:{if(l=p(0)){h=~~l>>>0;break f}h=0}rb(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=k&e+ -1;break e}if(k>>>0>>0){h=k;break e}h=(k>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[u+4|0]=b;i[a>>2]=c}function vb(a,b,c,d){var e=0,f=0,j=0,l=0,n=p(0),o=0,q=0,r=0,s=0,t=p(0),u=0,w=0;r=k[c+4>>1];s=k[c+2>>1];o=k[c>>1];l=r^(s^(o^318)+239)+239;u=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];q=xp(e);j=l&e+262143;c:{if(q>>>0<=1){break c}c=l;j=c;if(c>>>0>>0){break c}j=(l>>>0)%(e>>>0)|0}c=j;j=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}w=e+ -1|0;q=q>>>0>1;while(1){f=i[c+4>>2];if((l|0)!=(f|0)){d:{if(!q){f=f&w;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(j|0)){break b}}if(!(k[c+8>>1]!=(o|0)|k[c+10>>1]!=(s|0)|k[c+12>>1]!=(r|0))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ho(20);h[c+12>>1]=k[d+4>>1];i[c+8>>2]=i[d>>2];d=i[d+8>>2];i[c>>2]=0;i[c+4>>2]=l;i[c+16>>2]=d;n=m[b+16>>2];t=p(i[b+12>>2]+1>>>0);e:{if(p(n*p(e>>>0))>>0<3|e<<1;d=b;n=p(v(p(t/n)));f:{if(n=p(0)){j=~~n>>>0;break f}j=0}Bb(d,o>>>0>>0?j:o);e=i[b+4>>2];if(!(e&e+ -1)){j=l&e+ -1;break e}if(l>>>0>>0){j=l;break e}j=(l>>>0)%(e>>>0)|0}d=i[b>>2]+(j<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[u+4|0]=b;i[a>>2]=c}function jb(a,b,c,d){var e=0,f=0,l=0,n=0,o=p(0),q=0,r=0,s=0,t=0,u=p(0),w=0,x=0;r=j[c+2|0];s=j[c+1|0];t=j[c|0];n=r^(s^(t^318)+239)+239;w=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];q=xp(e);l=n&e+ -1;c:{if(q>>>0<=1){break c}c=n;l=c;if(c>>>0>>0){break c}l=(n>>>0)%(e>>>0)|0}c=l;l=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}x=e+ -1|0;q=q>>>0>1;while(1){f=i[c+4>>2];if((n|0)!=(f|0)){d:{if(!q){f=f&x;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(l|0)){break b}}if(!(j[c+8|0]!=(t|0)|j[c+9|0]!=(s|0)|j[c+10|0]!=(r|0))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ho(16);g[c+10|0]=j[d+2|0];h[c+8>>1]=k[d>>1];d=i[d+4>>2];i[c>>2]=0;i[c+4>>2]=n;i[c+12>>2]=d;o=m[b+16>>2];u=p(i[b+12>>2]+1>>>0);e:{if(p(o*p(e>>>0))>>0<3|e<<1;d=b;o=p(v(p(u/o)));f:{if(o=p(0)){l=~~o>>>0;break f}l=0}pb(d,e>>>0>>0?l:e);e=i[b+4>>2];if(!(e&e+ -1)){l=n&e+ -1;break e}if(n>>>0>>0){l=n;break e}l=(n>>>0)%(e>>>0)|0}d=i[b>>2]+(l<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[w+4|0]=b;i[a>>2]=c}function yf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=F-32|0;F=e;f=a+16|0;d=i[f>>2];a:{b:{if(!d){break b}h=i[b>>2];c=f;while(1){g=i[d+16>>2]<(h|0);c=g?c:d;d=i[(g<<2)+d>>2];if(d){continue}break}if((c|0)==(f|0)){break b}if((h|0)>=i[c+16>>2]){break a}}k=Xj(e+16|0);b=i[b>>2];j=e+8|0;i[j>>2]=0;i[j+4>>2]=0;i[e>>2]=b;i[e+4>>2]=j;c=i[k>>2];h=k+4|0;if((c|0)!=(h|0)){g=e|4;while(1){b=c;d=c+16|0;Mf(g,j,d,d);d=i[c+4>>2];c:{if(!d){c=i[b+8>>2];if((b|0)==i[c>>2]){break c}d=b+8|0;while(1){b=i[d>>2];d=b+8|0;c=i[b+8>>2];if((b|0)!=i[c>>2]){continue}break}break c}while(1){c=d;d=i[c>>2];if(d){continue}break}}if((c|0)!=(h|0)){continue}break}}d=i[f>>2];d:{if(d){f=a+16|0;g=i[e>>2];while(1){b=i[d+16>>2];e:{if((g|0)<(b|0)){c=i[d>>2];if(c){break e}f=d;break d}if((b|0)>=(g|0)){break d}f=d+4|0;c=i[d+4>>2];if(!c){break d}d=f}f=d;d=c;continue}}d=f}c=i[f>>2];if(!c){c=ho(32);i[c+16>>2]=i[e>>2];i[c+20>>2]=i[e+4>>2];g=i[e+8>>2];i[c+24>>2]=g;b=i[e+12>>2];i[c+28>>2]=b;h=c+24|0;f:{if(!b){i[c+20>>2]=h;break f}i[g+8>>2]=h;i[e+8>>2]=0;i[e+12>>2]=0;i[e+4>>2]=j}i[c+8>>2]=d;i[c>>2]=0;i[c+4>>2]=0;i[f>>2]=c;d=i[i[a+12>>2]>>2];b=c;g:{if(!d){break g}i[a+12>>2]=d;b=i[f>>2]}Kf(i[a+16>>2],b);a=a+20|0;i[a>>2]=i[a>>2]+1}kd(e|4,i[e+8>>2]);kd(k,i[k+4>>2])}F=e+32|0;return c+20|0}function mj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0;f=F-16|0;F=f;I[i[i[b>>2]+64>>2]](a,b);if(!i[a>>2]){if(g[a+15|0]<=-1){bp(i[a+4>>2])}h=i[b+48>>2];c=ho(32);i[f>>2]=c;i[f+4>>2]=29;i[f+8>>2]=-2147483616;g[c+29|0]=0;d=j[13157]|j[13158]<<8|(j[13159]<<16|j[13160]<<24);e=j[13153]|j[13154]<<8|(j[13155]<<16|j[13156]<<24);g[c+21|0]=e;g[c+22|0]=e>>>8;g[c+23|0]=e>>>16;g[c+24|0]=e>>>24;g[c+25|0]=d;g[c+26|0]=d>>>8;g[c+27|0]=d>>>16;g[c+28|0]=d>>>24;d=j[13152]|j[13153]<<8|(j[13154]<<16|j[13155]<<24);e=j[13148]|j[13149]<<8|(j[13150]<<16|j[13151]<<24);g[c+16|0]=e;g[c+17|0]=e>>>8;g[c+18|0]=e>>>16;g[c+19|0]=e>>>24;g[c+20|0]=d;g[c+21|0]=d>>>8;g[c+22|0]=d>>>16;g[c+23|0]=d>>>24;d=j[13144]|j[13145]<<8|(j[13146]<<16|j[13147]<<24);e=j[13140]|j[13141]<<8|(j[13142]<<16|j[13143]<<24);g[c+8|0]=e;g[c+9|0]=e>>>8;g[c+10|0]=e>>>16;g[c+11|0]=e>>>24;g[c+12|0]=d;g[c+13|0]=d>>>8;g[c+14|0]=d>>>16;g[c+15|0]=d>>>24;d=j[13136]|j[13137]<<8|(j[13138]<<16|j[13139]<<24);e=j[13132]|j[13133]<<8|(j[13134]<<16|j[13135]<<24);g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;c=ck(h,f,0);if(g[f+11|0]<=-1){bp(i[f>>2])}if(c){I[i[i[b>>2]+68>>2]](b)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}F=f+16|0}function Ia(a,b){var c=0;c=-1;a:{b:{c:{d:{switch(i[b+28>>2]+ -1|0){case 8:e:{switch(g[b+24|0]+ -1|0){case 0:c=Ja(a,b);break c;case 1:c=Ka(a,b);break c;case 2:c=La(a,b);break c;case 3:break e;default:break b}}c=Ma(a,b);break c;case 0:f:{switch(g[b+24|0]+ -1|0){case 0:c=Na(a,b);break c;case 1:c=Oa(a,b);break c;case 2:c=Pa(a,b);break c;case 3:break f;default:break b}}c=Qa(a,b);break c;case 1:case 10:g:{switch(g[b+24|0]+ -1|0){case 0:c=Na(a,b);break c;case 1:c=Oa(a,b);break c;case 2:c=Pa(a,b);break c;case 3:break g;default:break b}}c=Qa(a,b);break c;case 3:h:{switch(g[b+24|0]+ -1|0){case 0:c=Ra(a,b);break c;case 1:c=Sa(a,b);break c;case 2:c=Ta(a,b);break c;case 3:break h;default:break b}}c=Ua(a,b);break c;case 2:i:{switch(g[b+24|0]+ -1|0){case 0:c=Ra(a,b);break c;case 1:c=Sa(a,b);break c;case 2:c=Ta(a,b);break c;case 3:break i;default:break b}}c=Ua(a,b);break c;case 5:j:{switch(g[b+24|0]+ -1|0){case 0:c=Va(a,b);break c;case 1:c=Ka(a,b);break c;case 2:c=La(a,b);break c;case 3:break j;default:break b}}c=Ma(a,b);break c;case 4:break d;default:break a}}k:{switch(g[b+24|0]+ -1|0){case 0:c=Va(a,b);break c;case 1:c=Ka(a,b);break c;case 2:c=La(a,b);break c;case 3:break k;default:break b}}c=Ma(a,b)}if(c){break a}}c=-1}return c}function Ya(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=0,o=0,q=p(0),r=0,s=0;n=i[c+4>>2];o=i[c>>2];j=n^(o^318)+239;r=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];l=xp(e);h=j&e+ -1;c:{if(l>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}s=e+ -1|0;l=l>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!l){f=f&s;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(i[c+8>>2]!=(o|0)|i[c+12>>2]!=(n|0)){continue}break}b=0;break a}c=ho(20);f=i[d+4>>2];i[c+8>>2]=i[d>>2];i[c+12>>2]=f;d=i[d+8>>2];i[c+4>>2]=j;i[c+16>>2]=d;i[c>>2]=0;k=m[b+16>>2];q=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(q/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}bb(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[r+4|0]=b;i[a>>2]=c}function ci(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;a:{b:{d=i[a+12>>2];e=i[d+4>>2];c=i[d>>2];b=e-c|0;if(!b){break b}e=c-e|0;c=((e|0)>(b|0)?e:b)>>>2|0;b=(b|0)>-1?b:-1;b=o(c,(b|0)<1?b:1);k=b>>>0>1?b:1;l=a+140|0;e=0;while(1){c:{if(Ql(d,(e>>>0)/3|0)){break c}d=i[a+12>>2];if(i[i[d+12>>2]+(e<<2)>>2]!=-1){break c}h=i[a+152>>2];g=h;c=e+1|0;c=(c>>>0)%3|0?c:e+ -2|0;if((c|0)!=-1){d=i[i[d>>2]+(c<<2)>>2]}else{d=-1}b=d<<2;if(i[g+b>>2]!=-1){break c}f=-1;g=i[a+144>>2];d=g;c=i[a+148>>2];if((d|0)==c<<5){if((g+1|0)<=-1){break a}d=l;if(g>>>0<=1073741822){f=g+32&-32;c=c<<6;c=c>>>0>>0?f:c}else{c=2147483647}bd(d,c);h=i[a+152>>2];f=i[b+h>>2];d=i[a+144>>2]}i[a+144>>2]=d+1;c=i[a+140>>2]+(d>>>3&536870908)|0;j=i[c>>2];n=c,p=yp(-2,d)&j,i[n>>2]=p;if((f|0)!=-1){break c}b=b+h|0;j=i[a+12>>2];d=e;while(1){c=d;i[b>>2]=g;d=-1;f=-1;d:{if((c|0)==-1){break d}b=c+1|0;b=(b>>>0)%3|0?b:c+ -2|0;if((b|0)==-1){break d}m=i[j+12>>2];while(1){c=i[(b<<2)+m>>2];if((c|0)!=-1){b=c+1|0;b=(b>>>0)%3|0?b:c+ -2|0;if((b|0)!=-1){continue}break d}break}d=b+1|0;d=(d>>>0)%3|0?d:b+ -2|0;if((d|0)!=-1){f=i[i[j>>2]+(d<<2)>>2]}d=b}b=(f<<2)+h|0;if(i[b>>2]==-1){continue}break}}e=e+1|0;if((k|0)==(e|0)){break b}d=i[a+12>>2];continue}}return 1}Ho();x()}function ub(a,b,c,d){var e=0,f=0,h=0,j=0,l=p(0),n=0,o=0,q=0,r=p(0),s=0,t=0;q=k[c+2>>1];n=k[c>>1];j=q^(n^318)+239;s=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];o=xp(e);h=j&e+131071;c:{if(o>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}t=e+ -1|0;o=o>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!o){f=f&t;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(k[c+8>>1]!=(n|0)|k[c+10>>1]!=(q|0)){continue}break}b=0;break a}c=ho(16);i[c+8>>2]=i[d>>2];d=i[d+4>>2];i[c+4>>2]=j;i[c+12>>2]=d;i[c>>2]=0;l=m[b+16>>2];r=p(i[b+12>>2]+1>>>0);e:{if(p(l*p(e>>>0))>>0<3|e<<1;d=b;l=p(v(p(r/l)));f:{if(l=p(0)){h=~~l>>>0;break f}h=0}zb(d,n>>>0>>0?h:n);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[s+4|0]=b;i[a>>2]=c}function ib(a,b,c,d){var e=0,f=0,l=0,n=0,o=p(0),q=0,r=0,s=0,t=p(0),u=0,w=0;r=j[c+1|0];s=j[c|0];n=r^(s^318)+239;u=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];q=xp(e);l=n&e+1023;c:{if(q>>>0<=1){break c}c=n;l=c;if(c>>>0>>0){break c}l=(n>>>0)%(e>>>0)|0}c=l;l=c;c=i[(c<<2)+f>>2];if(!c){break b}w=e+ -1|0;q=q>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((n|0)!=(f|0)){d:{if(!q){f=f&w;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(l|0)){break b}}if(j[c+8|0]!=(s|0)|j[c+9|0]!=(r|0)){continue}break}b=0;break a}c=ho(16);h[c+8>>1]=k[d>>1];d=i[d+4>>2];i[c+4>>2]=n;i[c+12>>2]=d;i[c>>2]=0;o=m[b+16>>2];t=p(i[b+12>>2]+1>>>0);e:{if(p(o*p(e>>>0))>>0<3|e<<1;d=b;o=p(v(p(t/o)));f:{if(o=p(0)){l=~~o>>>0;break f}l=0}nb(d,e>>>0>>0?l:e);e=i[b+4>>2];if(!(e&e+ -1)){l=n&e+ -1;break e}if(n>>>0>>0){l=n;break e}l=(n>>>0)%(e>>>0)|0}d=i[b>>2]+(l<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[u+4|0]=b;i[a>>2]=c}function Jm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;while(1){i[i[a>>2]+(e<<2)>>2]=0;e=e+1|0;if((d|0)!=(e|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}s=b+ -1|0;t=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!t){e=e&s;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}f:{g:{l=e<<2;c=l+i[a>>2]|0;if(i[c>>2]){k=i[d>>2];if(k){break g}k=0;c=d;break f}i[c>>2]=f;f=d;g=e;break e}c=i[a+24>>2];m=i[c+8>>2];n=i[c+12>>2]-m|0;c=n>>>2|0;u=c>>>0>1?c:1;o=i[d+8>>2];c=d;while(1){e=0;if((n|0)>0){p=i[k+8>>2];while(1){h=o;q=p;r=i[(e<<2)+m>>2];if(!j[r+84|0]){h=i[r+68>>2];q=i[h+(p<<2)>>2];h=i[h+(o<<2)>>2]}if((h|0)!=(q|0)){break f}e=e+1|0;if((u|0)!=(e|0)){continue}break}}c=k;h=i[c>>2];k=h;if(h){continue}break}k=0}i[f>>2]=k;i[c>>2]=i[i[i[a>>2]+l>>2]>>2];i[i[i[a>>2]+l>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(16928);x()}function oi(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0;l=F-16|0;F=l;a:{b:{f=i[a+124>>2];c:{if(!f){break c}e=i[a+120>>2];m=xp(f);h=f+ -1&d;d:{if(m>>>0<=1){break d}h=d;if(f>>>0>d>>>0){break d}h=(d>>>0)%(f>>>0)|0}e=i[e+(h<<2)>>2];if(!e){break c}k=i[e>>2];if(!k){break c}n=f+ -1|0;m=m>>>0>1;while(1){e:{e=i[k+4>>2];f:{if((e|0)!=(d|0)){g:{if(!m){e=e&n;break g}if(e>>>0>>0){break g}e=(e>>>0)%(f>>>0)|0}if((e|0)==(h|0)){break f}break c}if(i[k+8>>2]==(d|0)){break e}}k=i[k>>2];if(k){continue}break c}break}k=i[k+12>>2];if((k|0)==-1){break c}m=c&1;c=i[a+112>>2];if((c|0)!=i[a+116>>2]){g[c+8|0]=m;i[c+4>>2]=b;i[c>>2]=k;b=j[l+13|0]|j[l+14|0]<<8;g[c+9|0]=b;g[c+10|0]=b>>>8;g[c+11|0]=j[l+15|0];i[a+112>>2]=c+12;break c}d=i[a+108>>2];h=c-d|0;c=(h|0)/12|0;e=c+1|0;if(e>>>0>=357913942){break b}n=c<<1;e=c>>>0<178956970?n>>>0>>0?e:n:357913941;f=0;h:{if(!e){break h}if(e>>>0>=357913942){break a}f=ho(o(e,12))}c=f+o(c,12)|0;g[c+8|0]=m;i[c+4>>2]=b;i[c>>2]=k;b=j[l+13|0]|j[l+14|0]<<8;g[c+9|0]=b;g[c+10|0]=b>>>8;g[c+11|0]=j[l+15|0];b=c+o((h|0)/-12|0,12)|0;f=f+o(e,12)|0;c=c+12|0;if((h|0)>=1){hp(b,d,h)}i[a+116>>2]=f;i[a+112>>2]=c;i[a+108>>2]=b;if(!d){break c}bp(d)}F=l+16|0;return}Ho();x()}za(11708);x()}function mn(a){var b=0,c=0,d=0,e=0,f=0;a:{b:{c:{b=i[a+4>>2];d:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break d}b=fn(a)}switch(b+ -43|0){case 0:case 2:break b;default:break c}}c=b+ -48|0;break a}f=(b|0)==45;b=i[a+4>>2];e:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break e}b=fn(a)}c=b+ -48|0;if(!(c>>>0<10|!i[a+104>>2])){i[a+4>>2]=i[a+4>>2]+ -1}}f:{if(c>>>0<10){c=0;while(1){d=o(c,10)+b|0;b=i[a+4>>2];g:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break g}b=fn(a)}e=b+ -48|0;c=d+ -48|0;if((c|0)<214748364?e>>>0<=9:0){continue}break}d=c;c=c>>31;h:{if(e>>>0>=10){break h}while(1){c=up(d,c,10,0);d=c+b|0;b=H;b=d>>>0>>0?b+1|0:b;d=d+ -48|0;c=b+ -1|0;c=d>>>0<4294967248?c+1|0:c;b=i[a+4>>2];i:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break i}b=fn(a)}e=b+ -48|0;if(e>>>0>9){break h}if((c|0)<21474836?1:(c|0)<=21474836?d>>>0<2061584302:0){continue}break}}if(e>>>0<10){while(1){b=i[a+4>>2];j:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break j}b=fn(a)}if(b+ -48>>>0<10){continue}break}}if(i[a+104>>2]){i[a+4>>2]=i[a+4>>2]+ -1}a=d;d=f?0-a|0:a;c=f?0-(c+(0>>0)|0)|0:c;break f}c=-2147483648;if(!i[a+104>>2]){break f}i[a+4>>2]=i[a+4>>2]+ -1;H=-2147483648;return 0}H=c;return d}function mi(a,b){var c=0,d=0,e=0,f=0,h=0,j=0;f=i[a+8>>2];c=i[a+4>>2];if((f-c|0)/136>>>0>=b>>>0){if(b){b=o(b,136)+c|0;while(1){i[c>>2]=-1;_l(c+4|0);i[c+104>>2]=0;i[c+108>>2]=0;g[c+100|0]=1;i[c+112>>2]=0;i[c+116>>2]=0;i[c+120>>2]=0;i[c+124>>2]=0;i[c+128>>2]=0;c=c+136|0;if((b|0)!=(c|0)){continue}break}c=b}i[a+4>>2]=c;return}a:{b:{c:{d=i[a>>2];c=(c-d|0)/136|0;e=c+b|0;if(e>>>0<31580642){h=o(c,136);d=(f-d|0)/136|0;c=d<<1;e=d>>>0<15790320?c>>>0>>0?e:c:31580641;if(e){if(e>>>0>=31580642){break c}j=ho(o(e,136))}d=h+j|0;f=d+o(b,136)|0;c=d;while(1){i[c>>2]=-1;_l(c+4|0);i[c+104>>2]=0;i[c+108>>2]=0;g[c+100|0]=1;i[c+112>>2]=0;i[c+116>>2]=0;i[c+120>>2]=0;i[c+124>>2]=0;i[c+128>>2]=0;c=c+136|0;if((f|0)!=(c|0)){continue}break}h=o(e,136)+j|0;b=i[a>>2];c=i[a+4>>2];if((b|0)==(c|0)){break b}while(1){c=c+ -136|0;d=ij(d+ -136|0,c);if((b|0)!=(c|0)){continue}break}i[a+8>>2]=h;c=i[a+4>>2];i[a+4>>2]=f;b=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){a=i[c+ -20>>2];if(a){i[c+ -16>>2]=a;bp(a)}a=c+ -136|0;d=i[c+ -32>>2];if(d){i[c+ -28>>2]=d;bp(d)}ni(c+ -132|0);c=a;if((c|0)!=(b|0)){continue}break}break a}Ho();x()}za(11708);x()}i[a+8>>2]=h;i[a+4>>2]=f;i[a>>2]=d}if(b){bp(b)}}function tb(a,b,c,d){var e=0,f=0,j=0,l=0,n=p(0),o=0,q=0,r=p(0),s=0,t=0;o=k[c>>1];l=o^318;s=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];q=xp(e);j=l&e+ -1;c:{if(q>>>0<=1){break c}c=l;j=c;if(e>>>0>c>>>0){break c}j=(l>>>0)%(e>>>0)|0}c=j;j=c;c=i[(c<<2)+f>>2];if(!c){break b}t=e+ -1|0;q=q>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((l|0)!=(f|0)){d:{if(!q){f=f&t;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(j|0)){break b}}if(k[c+8>>1]!=(o|0)){continue}break}b=0;break a}c=ho(16);h[c+8>>1]=k[d>>1];d=i[d+4>>2];i[c+4>>2]=l;i[c+12>>2]=d;i[c>>2]=0;n=m[b+16>>2];r=p(i[b+12>>2]+1>>>0);e:{if(p(n*p(e>>>0))>>0<3|e<<1;d=b;n=p(v(p(r/n)));f:{if(n=p(0)){j=~~n>>>0;break f}j=0}xb(d,o>>>0>>0?j:o);e=i[b+4>>2];if(!(e&e+ -1)){j=l&e+ -1;break e}if(e>>>0>l>>>0){j=l;break e}j=(l>>>0)%(e>>>0)|0}d=i[b>>2]+(j<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[s+4|0]=b;i[a>>2]=c}function _b(a){var b=0,c=0,d=0,e=0,f=0;e=F-16|0;F=e;b=ho(16);i[e>>2]=b;i[e+4>>2]=14;i[e+8>>2]=-2147483632;g[b+14|0]=0;c=j[1830]|j[1831]<<8|(j[1832]<<16|j[1833]<<24);d=j[1826]|j[1827]<<8|(j[1828]<<16|j[1829]<<24);g[b+6|0]=d;g[b+7|0]=d>>>8;g[b+8|0]=d>>>16;g[b+9|0]=d>>>24;g[b+10|0]=c;g[b+11|0]=c>>>8;g[b+12|0]=c>>>16;g[b+13|0]=c>>>24;c=j[1824]|j[1825]<<8|(j[1826]<<16|j[1827]<<24);d=j[1820]|j[1821]<<8|(j[1822]<<16|j[1823]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;f=$j(a,e,-1);if(g[e+11|0]<=-1){bp(i[e>>2])}b=ho(16);i[e>>2]=b;i[e+4>>2]=14;i[e+8>>2]=-2147483632;g[b+14|0]=0;c=j[1845]|j[1846]<<8|(j[1847]<<16|j[1848]<<24);d=j[1841]|j[1842]<<8|(j[1843]<<16|j[1844]<<24);g[b+6|0]=d;g[b+7|0]=d>>>8;g[b+8|0]=d>>>16;g[b+9|0]=d>>>24;g[b+10|0]=c;g[b+11|0]=c>>>8;g[b+12|0]=c>>>16;g[b+13|0]=c>>>24;c=j[1839]|j[1840]<<8|(j[1841]<<16|j[1842]<<24);d=j[1835]|j[1836]<<8|(j[1837]<<16|j[1838]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;a=$j(a,e,-1);if(g[e+11|0]<=-1){bp(i[e>>2])}F=e+16|0;a=(f|0)<(a|0)?a:f;return(a|0)==-1?5:a}function Wa(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=0,o=p(0),q=0,r=0;n=i[c>>2];j=n^318;q=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];l=xp(e);h=j&e+ -1;c:{if(l>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}r=e+ -1|0;l=l>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!l){f=f&r;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(i[c+8>>2]!=(n|0)){continue}break}b=0;break a}c=ho(16);i[c+8>>2]=i[d>>2];d=i[d+4>>2];i[c+4>>2]=j;i[c+12>>2]=d;i[c>>2]=0;k=m[b+16>>2];o=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(o/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}$a(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[q+4|0]=b;i[a>>2]=c}function hb(a,b,c,d){var e=0,f=0,h=0,k=0,l=p(0),n=0,o=0,q=p(0),r=0,s=0;o=j[c|0];k=o^318;r=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];n=xp(e);h=k&e+ -1;c:{if(n>>>0<=1){break c}c=k;h=c;if(c>>>0>>0){break c}h=(k>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}s=e+ -1|0;n=n>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((k|0)!=(f|0)){d:{if(!n){f=f&s;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(j[c+8|0]!=(o|0)){continue}break}b=0;break a}c=ho(16);g[c+8|0]=j[d|0];d=i[d+4>>2];i[c+4>>2]=k;i[c+12>>2]=d;i[c>>2]=0;l=m[b+16>>2];q=p(i[b+12>>2]+1>>>0);e:{if(p(l*p(e>>>0))>>0<3|e<<1;d=b;l=p(v(p(q/l)));f:{if(l=p(0)){h=~~l>>>0;break f}h=0}lb(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=k&e+ -1;break e}if(k>>>0>>0){h=k;break e}h=(k>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[r+4|0]=b;i[a>>2]=c}function tp(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{g=b;if(g){e=c;if(!e){break j}f=d;if(!f){break i}f=r(f)-r(g)|0;if(f>>>0<=31){break h}break b}if((d|0)==1&c>>>0>=0|d>>>0>1){break b}b=(a>>>0)/(c>>>0)|0;H=0;return b}e=d;if(!a){break g}if(!e){break f}if(e+ -1&e){break f}a=g>>>zp(e)|0;H=0;return a}if(!(e+ -1&e)){break e}j=(r(e)+33|0)-r(g)|0;h=0-j|0;break c}j=f+1|0;h=63-f|0;break c}a=(g>>>0)/(e>>>0)|0;H=0;return a}f=r(e)-r(g)|0;if(f>>>0<31){break d}break b}if((e|0)==1){break a}c=a;a=zp(e);d=a&31;if(32<=(a&63)>>>0){f=0;a=b>>>d|0}else{f=b>>>d|0;a=((1<>>d}H=f;return a}j=f+1|0;h=63-f|0}e=b;g=a;f=j&63;i=f&31;if(32<=(f&63)>>>0){f=0;l=e>>>i|0}else{f=e>>>i|0;l=((1<>>i}a=h&63;h=a&31;if(32<=(a&63)>>>0){e=g<>>32-h|b<>>31;f=e<<1|b>>>31;m=k;e=k;k=f;i=g-((h>>>0>>0)+e|0)|0;e=i>>31;i=i>>31;f=c&i;l=k-f|0;f=m-((d&e)+(k>>>0>>0)|0)|0;e=b<<1|a>>>31;a=n|a<<1;b=e|o;m=0;k=i&1;n=k;j=j+ -1|0;if(j){continue}break}}H=m|(b<<1|a>>>31);return k|a<<1}a=0;b=0}H=b;return a}function Xf(a,b,c){var d=0,e=0,f=0,h=0;f=F-16|0;F=f;d=ho(16);i[f>>2]=d;i[f+4>>2]=14;i[f+8>>2]=-2147483632;g[d+14|0]=0;h=j[10714]|j[10715]<<8|(j[10716]<<16|j[10717]<<24);e=j[10710]|j[10711]<<8|(j[10712]<<16|j[10713]<<24);g[d+6|0]=e;g[d+7|0]=e>>>8;g[d+8|0]=e>>>16;g[d+9|0]=e>>>24;g[d+10|0]=h;g[d+11|0]=h>>>8;g[d+12|0]=h>>>16;g[d+13|0]=h>>>24;h=j[10708]|j[10709]<<8|(j[10710]<<16|j[10711]<<24);e=j[10704]|j[10705]<<8|(j[10706]<<16|j[10707]<<24);g[d|0]=e;g[d+1|0]=e>>>8;g[d+2|0]=e>>>16;g[d+3|0]=e>>>24;g[d+4|0]=h;g[d+5|0]=h>>>8;g[d+6|0]=h>>>16;g[d+7|0]=h>>>24;Yj(a,f,b);if(g[f+11|0]<=-1){bp(i[f>>2])}b=ho(16);i[f>>2]=b;i[f+4>>2]=14;i[f+8>>2]=-2147483632;g[b+14|0]=0;e=j[10729]|j[10730]<<8|(j[10731]<<16|j[10732]<<24);d=j[10725]|j[10726]<<8|(j[10727]<<16|j[10728]<<24);g[b+6|0]=d;g[b+7|0]=d>>>8;g[b+8|0]=d>>>16;g[b+9|0]=d>>>24;g[b+10|0]=e;g[b+11|0]=e>>>8;g[b+12|0]=e>>>16;g[b+13|0]=e>>>24;e=j[10723]|j[10724]<<8|(j[10725]<<16|j[10726]<<24);d=j[10719]|j[10720]<<8|(j[10721]<<16|j[10722]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=e;g[b+5|0]=e>>>8;g[b+6|0]=e>>>16;g[b+7|0]=e>>>24;Yj(a,f,c);if(g[f+11|0]<=-1){bp(i[f>>2])}F=f+16|0}function Cf(a,b,c){var d=0,e=0,f=0,h=0;f=F-16|0;F=f;d=ho(16);i[f>>2]=d;i[f+4>>2]=14;i[f+8>>2]=-2147483632;g[d+14|0]=0;h=j[10446]|j[10447]<<8|(j[10448]<<16|j[10449]<<24);e=j[10442]|j[10443]<<8|(j[10444]<<16|j[10445]<<24);g[d+6|0]=e;g[d+7|0]=e>>>8;g[d+8|0]=e>>>16;g[d+9|0]=e>>>24;g[d+10|0]=h;g[d+11|0]=h>>>8;g[d+12|0]=h>>>16;g[d+13|0]=h>>>24;h=j[10440]|j[10441]<<8|(j[10442]<<16|j[10443]<<24);e=j[10436]|j[10437]<<8|(j[10438]<<16|j[10439]<<24);g[d|0]=e;g[d+1|0]=e>>>8;g[d+2|0]=e>>>16;g[d+3|0]=e>>>24;g[d+4|0]=h;g[d+5|0]=h>>>8;g[d+6|0]=h>>>16;g[d+7|0]=h>>>24;Yj(a,f,b);if(g[f+11|0]<=-1){bp(i[f>>2])}b=ho(16);i[f>>2]=b;i[f+4>>2]=14;i[f+8>>2]=-2147483632;g[b+14|0]=0;e=j[10461]|j[10462]<<8|(j[10463]<<16|j[10464]<<24);d=j[10457]|j[10458]<<8|(j[10459]<<16|j[10460]<<24);g[b+6|0]=d;g[b+7|0]=d>>>8;g[b+8|0]=d>>>16;g[b+9|0]=d>>>24;g[b+10|0]=e;g[b+11|0]=e>>>8;g[b+12|0]=e>>>16;g[b+13|0]=e>>>24;e=j[10455]|j[10456]<<8|(j[10457]<<16|j[10458]<<24);d=j[10451]|j[10452]<<8|(j[10453]<<16|j[10454]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=e;g[b+5|0]=e>>>8;g[b+6|0]=e>>>16;g[b+7|0]=e>>>24;Yj(a,f,c);if(g[f+11|0]<=-1){bp(i[f>>2])}F=f+16|0}function pi(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=p(0),o=0,q=0;f=i[c>>2];o=a;a:{b:{e=i[b+4>>2];if(!e){break b}j=i[b>>2];l=xp(e);h=f&e+ -1;c:{if(l>>>0<=1){break c}c=f;h=c;if(c>>>0>>0){break c}h=(f>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+j>>2];if(!c){break b}q=e+ -1|0;l=l>>>0>1;while(1){c=i[c>>2];if(!c){break b}j=i[c+4>>2];if((f|0)!=(j|0)){d:{if(!l){j=j&q;break d}if(j>>>0>>0){break d}j=(j>>>0)%(e>>>0)|0}if((j|0)!=(h|0)){break b}}if((f|0)!=i[c+8>>2]){continue}break}b=0;break a}c=ho(16);d=i[i[d>>2]>>2];i[c+12>>2]=0;i[c+8>>2]=d;i[c+4>>2]=f;i[c>>2]=0;k=m[b+16>>2];n=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(n/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}jj(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=f&e+ -1;break e}if(f>>>0>>0){h=f;break e}h=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(h<<2)|0;d=i[f>>2];g:{h:{if(!d){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[f>>2]=b+8;d=i[c>>2];if(!d){break g}d=i[d+4>>2];f=e+ -1|0;i:{if(!(f&e)){d=d&f;break i}if(d>>>0>>0){break i}d=(d>>>0)%(e>>>0)|0}d=i[b>>2]+(d<<2)|0;break h}i[c>>2]=i[d>>2]}i[d>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[o+4|0]=b;i[a>>2]=c}function gd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;f=F-16|0;F=f;a:{c=i[a+4>>2];b:{c:{if(c){if(I[i[i[a>>2]+52>>2]](a,b,i[i[c+4>>2]+80>>2])|0){break c}break b}if(!(I[i[i[a>>2]+52>>2]](a,b,0)|0)){break b}}n=1;if(!j[a+28|0]){break b}e=i[a+32>>2];l=i[a+8>>2];c=i[l+80>>2];i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;if(c){if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[f>>2]=h;d=c+h|0;i[f+8>>2]=d;ip(h,0,c);i[f+4>>2]=d}c=i[b+4>>2];k=i[b>>2];if((c|0)!=(k|0)){b=c-k|0;d=(b|0)>-1?b:-1;c=k-c|0;b=o((d|0)<1?d:1,((c|0)>(b|0)?c:b)>>>2|0);m=b>>>0>1?b:1;b=0;p=j[l+84|0];while(1){c=i[k+(b<<2)>>2];d=h;if(!p){c=i[i[l+68>>2]+(c<<2)>>2]}i[(c<<2)+d>>2]=b;b=b+1|0;if((m|0)!=(b|0)){continue}break}}d:{if(!j[e+84|0]){break d}b=i[i[i[a+4>>2]+4>>2]+80>>2];g[e+84|0]=0;d=i[e+68>>2];c=i[e+72>>2]-d>>2;if(b>>>0>c>>>0){Xa(e+68|0,b-c|0,2396);break d}if(b>>>0>=c>>>0){break d}i[e+72>>2]=d+(b<<2)}d=i[i[i[a+4>>2]+4>>2]+80>>2];e:{if(d){e=i[e+68>>2];b=0;k=j[l+84|0];while(1){a=b;m=e+(b<<2)|0;c=h;if(!k){a=i[i[l+68>>2]+(b<<2)>>2]}i[m>>2]=i[(a<<2)+c>>2];b=b+1|0;if((d|0)!=(b|0)){continue}break}break e}if(!h){break b}}bp(h)}F=f+16|0;return n|0}Ho();x()}function Ei(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11192;b=a+280|0;c=i[b>>2];i[b>>2]=0;if(c){d=c+ -4|0;b=i[d>>2];if(b){b=c+(b<<5)|0;while(1){b=nf(b+ -32|0);if((c|0)!=(b|0)){continue}break}}bp(d)}b=i[a+268>>2];if(b){i[a+272>>2]=b;bp(b)}c=a+244|0;b=i[c>>2];i[c>>2]=0;if(b){bp(b)}b=i[a+232>>2];if(b){i[a+236>>2]=b;bp(b)}nf(a+200|0);b=i[a+184>>2];if(b){i[a+188>>2]=b;bp(b)}c=i[a+172>>2];if(c){b=i[a+176>>2];d=c;a:{if((c|0)==(b|0)){break a}while(1){d=i[b+ -20>>2];if(d){i[b+ -16>>2]=d;bp(d)}d=b+ -136|0;e=i[b+ -32>>2];if(e){i[b+ -28>>2]=e;bp(e)}ni(b+ -132|0);b=d;if((c|0)!=(b|0)){continue}break}d=i[a+172>>2]}i[a+176>>2]=c;bp(d)}b=i[a+152>>2];if(b){i[a+156>>2]=b;bp(b)}b=i[a+140>>2];if(b){bp(b)}b=i[a+128>>2];if(b){while(1){c=i[b>>2];bp(b);b=c;if(b){continue}break}}b=i[a+120>>2];i[a+120>>2]=0;if(b){bp(b)}b=i[a+108>>2];if(b){i[a+112>>2]=b;bp(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+84>>2];if(b){bp(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;bp(b)}b=i[a+52>>2];if(b){i[a+56>>2]=b;bp(b)}b=i[a+40>>2];if(b){i[a+44>>2]=b;bp(b)}b=i[a+28>>2];if(b){bp(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}b=i[a+12>>2];i[a+12>>2]=0;if(b){bi(b)}return a|0}function Dn(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;g=F-32|0;F=g;e=d&2147483647;j=e;e=e+ -1006698496|0;h=c;f=c;if(c>>>0<0){e=e+1|0}k=f;f=e;e=j+ -1140785152|0;l=h;if(h>>>0<0){e=e+1|0}a:{if((e|0)==(f|0)&k>>>0>>0|f>>>0>>0){e=d<<4|c>>>28;c=c<<4|b>>>28;b=b&268435455;h=b;if((b|0)==134217728&a>>>0>=1|b>>>0>134217728){e=e+1073741824|0;a=c+1|0;if(a>>>0<1){e=e+1|0}f=a;break a}f=c;e=e-((c>>>0<0)+ -1073741824|0)|0;if(a|h^134217728){break a}a=f+(f&1)|0;if(a>>>0>>0){e=e+1|0}f=a;break a}if(!(!h&(j|0)==2147418112?!(a|b):(j|0)==2147418112&h>>>0<0|j>>>0<2147418112)){e=d<<4|c>>>28;f=c<<4|b>>>28;e=e&524287|2146959360;break a}f=0;e=2146435072;if(j>>>0>1140785151){break a}e=0;h=j>>>16|0;if(h>>>0<15249){break a}e=d&65535|65536;sn(g+16|0,a,b,c,e,h+ -15233|0);vn(g,a,b,c,e,15361-h|0);c=i[g+4>>2];a=i[g+8>>2];e=i[g+12>>2]<<4|a>>>28;f=a<<4|c>>>28;a=c&268435455;c=a;b=i[g>>2]|((i[g+16>>2]|i[g+24>>2])!=0|(i[g+20>>2]|i[g+28>>2])!=0);if((a|0)==134217728&b>>>0>=1|a>>>0>134217728){a=f+1|0;if(a>>>0<1){e=e+1|0}f=a;break a}if(b|c^134217728){break a}a=f+(f&1)|0;if(a>>>0>>0){e=e+1|0}f=a}F=g+32|0;Cp(0,f|0);Cp(1,d&-2147483648|e);return+Dp()}function Ub(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,n=0,p=0;a:{b:{c:{d:{d=i[a+4>>2];j=i[a>>2];g=(d-j|0)/24|0;e=g+1|0;if(e>>>0<178956971){c=(i[a+8>>2]-j|0)/24|0;f=c<<1;h=c>>>0<89478485?f>>>0>>0?e:f:178956970;if(h){if(h>>>0>=178956971){break d}k=ho(o(h,24))}c=o(g,24)+k|0;i[c>>2]=1140;e=i[b+4>>2];l=c+16|0;i[l>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+4>>2]=e;n=i[b+8>>2];f=i[b+12>>2]-n|0;if(f){p=f>>2;if(p>>>0>=1073741824){break c}g=c+12|0;e=ho(f);i[g>>2]=e;i[c+8>>2]=e;i[l>>2]=e+(p<<2);if((f|0)>=1){e=hp(e,n,f)+f|0}i[g>>2]=e}e=o(h,24)+k|0;m[c+20>>2]=m[b+20>>2];g=c+24|0;if((d|0)==(j|0)){break b}while(1){c=c+ -24|0;i[c>>2]=1140;b=i[d+ -20>>2];f=c+16|0;i[f>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+4>>2]=b;b=d+ -16|0;i[c+8>>2]=i[b>>2];i[c+12>>2]=i[d+ -12>>2];h=f;f=d+ -8|0;i[h>>2]=i[f>>2];i[f>>2]=0;i[b>>2]=0;i[b+4>>2]=0;m[c+20>>2]=m[d+ -4>>2];d=d+ -24|0;if((j|0)!=(d|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=g;d=i[a>>2];i[a>>2]=c;if((b|0)==(d|0)){break a}while(1){b=b+ -24|0;I[i[i[b>>2]>>2]](b)|0;if((b|0)!=(d|0)){continue}break}break a}Ho();x()}za(1752);x()}Ho();x()}i[a+8>>2]=e;i[a+4>>2]=g;i[a>>2]=c}if(d){bp(d)}}function wi(a,b){var c=0,d=0,e=0,f=0,g=0;i[a+128>>2]=2;i[a+132>>2]=7;i[a+64>>2]=b;b=I[i[i[b>>2]+32>>2]](b)|0;i[a+88>>2]=b;c=i[b+28>>2]-i[b+24>>2]>>2;d=i[a+108>>2];b=i[a+104>>2];e=d-b>>2;a:{if(c>>>0>e>>>0){Bd(a+104|0,c-e|0);b=i[a+104>>2];d=i[a+108>>2];break a}if(c>>>0>=e>>>0){break a}d=(c<<2)+b|0;i[a+108>>2]=d}if((b|0)!=(d|0)){b=0;while(1){d=Rl(i[a+88>>2],b);c=i[a+104>>2];i[c+(b<<2)>>2]=d;b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}}e=a+92|0;b=i[a+88>>2];d=i[b>>2];c=i[b+4>>2]-d>>2;g=i[a+92>>2];f=i[a+96>>2]-g>>2;b:{if(c>>>0>f>>>0){Ai(e,c-f|0);b=i[a+88>>2];d=i[b>>2];break b}if(c>>>0>=f>>>0){break b}i[a+96>>2]=(c<<2)+g}c=i[b+4>>2];if((c|0)!=(d|0)){b=c-d|0;f=(b|0)>-1?b:-1;c=d-c|0;b=o((f|0)<1?f:1,((c|0)>(b|0)?c:b)>>>2|0);c=b>>>0>1?b:1;e=i[e>>2];b=0;while(1){f=b<<2;i[f+e>>2]=i[d+f>>2];b=b+1|0;if((c|0)!=(b|0)){continue}break}}b=(i[a+132>>2]-i[a+128>>2]|0)+1|0;d=i[a+140>>2];e=i[a+136>>2];c=(d-e|0)/12|0;if(b>>>0>c>>>0){Bi(a+136|0,b-c|0);return}if(b>>>0>>0){c=e+o(b,12)|0;if((c|0)!=(d|0)){while(1){b=d+ -12|0;e=i[b>>2];if(e){i[d+ -8>>2]=e;bp(e)}d=b;if((b|0)!=(c|0)){continue}break}}i[a+140>>2]=c}}function hp(a,b,c){var d=0,e=0,f=0;if(c>>>0>=512){E(a|0,b|0,c|0)|0;return a}e=a+c|0;a:{if(!((a^b)&3)){b:{if((c|0)<1){c=a;break b}if(!(a&3)){c=a;break b}c=a;while(1){g[c|0]=j[b|0];b=b+1|0;c=c+1|0;if(c>>>0>=e>>>0){break b}if(c&3){continue}break}}d=e&-4;c:{if(d>>>0<64){break c}f=d+ -64|0;if(c>>>0>f>>>0){break c}while(1){i[c>>2]=i[b>>2];i[c+4>>2]=i[b+4>>2];i[c+8>>2]=i[b+8>>2];i[c+12>>2]=i[b+12>>2];i[c+16>>2]=i[b+16>>2];i[c+20>>2]=i[b+20>>2];i[c+24>>2]=i[b+24>>2];i[c+28>>2]=i[b+28>>2];i[c+32>>2]=i[b+32>>2];i[c+36>>2]=i[b+36>>2];i[c+40>>2]=i[b+40>>2];i[c+44>>2]=i[b+44>>2];i[c+48>>2]=i[b+48>>2];i[c+52>>2]=i[b+52>>2];i[c+56>>2]=i[b+56>>2];i[c+60>>2]=i[b+60>>2];b=b- -64|0;c=c- -64|0;if(c>>>0<=f>>>0){continue}break}}if(c>>>0>=d>>>0){break a}while(1){i[c>>2]=i[b>>2];b=b+4|0;c=c+4|0;if(c>>>0>>0){continue}break}break a}if(e>>>0<4){c=a;break a}d=e+ -4|0;if(d>>>0>>0){c=a;break a}c=a;while(1){g[c|0]=j[b|0];g[c+1|0]=j[b+1|0];g[c+2|0]=j[b+2|0];g[c+3|0]=j[b+3|0];b=b+4|0;c=c+4|0;if(c>>>0<=d>>>0){continue}break}}if(c>>>0>>0){while(1){g[c|0]=j[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}return a}function jg(a,b){var c=0,d=0,e=0,f=0;f=F-16|0;F=f;a:{if(b>>>0>10){break a}c=ho(48);i[f>>2]=c;i[f+4>>2]=33;i[f+8>>2]=-2147483600;g[c+33|0]=0;g[c+32|0]=j[10857];d=j[10853]|j[10854]<<8|(j[10855]<<16|j[10856]<<24);e=j[10849]|j[10850]<<8|(j[10851]<<16|j[10852]<<24);g[c+24|0]=e;g[c+25|0]=e>>>8;g[c+26|0]=e>>>16;g[c+27|0]=e>>>24;g[c+28|0]=d;g[c+29|0]=d>>>8;g[c+30|0]=d>>>16;g[c+31|0]=d>>>24;d=j[10845]|j[10846]<<8|(j[10847]<<16|j[10848]<<24);e=j[10841]|j[10842]<<8|(j[10843]<<16|j[10844]<<24);g[c+16|0]=e;g[c+17|0]=e>>>8;g[c+18|0]=e>>>16;g[c+19|0]=e>>>24;g[c+20|0]=d;g[c+21|0]=d>>>8;g[c+22|0]=d>>>16;g[c+23|0]=d>>>24;d=j[10837]|j[10838]<<8|(j[10839]<<16|j[10840]<<24);e=j[10833]|j[10834]<<8|(j[10835]<<16|j[10836]<<24);g[c+8|0]=e;g[c+9|0]=e>>>8;g[c+10|0]=e>>>16;g[c+11|0]=e>>>24;g[c+12|0]=d;g[c+13|0]=d>>>8;g[c+14|0]=d>>>16;g[c+15|0]=d>>>24;d=j[10829]|j[10830]<<8|(j[10831]<<16|j[10832]<<24);e=j[10825]|j[10826]<<8|(j[10827]<<16|j[10828]<<24);g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;Yj(a,f,b);if(g[f+11|0]>-1){break a}bp(i[f>>2])}F=f+16|0}function yc(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=32-b|0;c=c<>2];e=32-f|0;d:{if((e|0)>=(b|0)){b=b+f|0;i[a+16>>2]=b;e=i[a+12>>2]|c>>>f;i[a+12>>2]=e;if((b|0)!=32){break d}b=i[a+4>>2];e:{if((b|0)!=i[a+8>>2]){i[b>>2]=e;i[a+4>>2]=b+4;break e}c=i[a>>2];f=b-c|0;g=f>>2;d=g+1|0;if(d>>>0>=1073741824){break c}h=f>>1;d=g>>>0<536870911?h>>>0>>0?d:h:1073741823;b=0;f:{if(!d){break f}if(d>>>0>=1073741824){break b}b=ho(d<<2)}g=b+(g<<2)|0;i[g>>2]=e;d=b+(d<<2)|0;e=g+4|0;if((f|0)>=1){hp(b,c,f)}i[a+8>>2]=d;i[a+4>>2]=e;i[a>>2]=b;if(!c){break e}bp(c)}i[a+12>>2]=0;i[a+16>>2]=0;return}b=b-e|0;i[a+16>>2]=b;h=c>>>d|0;e=i[a+12>>2]|h>>>b;i[a+12>>2]=e;b=i[a+4>>2];g:{if((b|0)!=i[a+8>>2]){i[b>>2]=e;i[a+4>>2]=b+4;break g}c=i[a>>2];f=b-c|0;g=f>>2;d=g+1|0;if(d>>>0>=1073741824){break c}b=f>>1;d=g>>>0<536870911?b>>>0>>0?d:b:1073741823;b=0;h:{if(!d){break h}if(d>>>0>=1073741824){break a}b=ho(d<<2)}g=b+(g<<2)|0;i[g>>2]=e;d=b+(d<<2)|0;e=g+4|0;if((f|0)>=1){hp(b,c,f)}i[a+8>>2]=d;i[a+4>>2]=e;i[a>>2]=b;if(!c){break g}bp(c)}i[a+12>>2]=h<<32-i[a+16>>2]}return}Ho();x()}za(1752);x()}za(1752);x()}function lm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;h=F-16|0;F=h;i[a+4>>2]=0;i[a+8>>2]=0;c=a+16|0;i[c>>2]=0;i[c+4>>2]=0;f=a+4|0;i[a>>2]=f;i[a+12>>2]=c;c=i[b>>2];g=b+4|0;if((c|0)!=(g|0)){while(1){e=c;d=c+16|0;mm(a,f,d,d);d=i[c+4>>2];a:{if(!d){c=i[e+8>>2];if((e|0)==i[c>>2]){break a}d=e+8|0;while(1){e=i[d>>2];d=e+8|0;c=i[e+8>>2];if((e|0)!=i[c>>2]){continue}break}break a}while(1){c=d;d=i[c>>2];if(d){continue}break}}if((c|0)!=(g|0)){continue}break}}c=i[b+12>>2];g=b+16|0;if((c|0)!=(g|0)){e=a+12|0;while(1){b=c;k=ho(24);lm(k,i[c+28>>2]);c=c+16|0;f=Of(e,h+12|0,c);d=i[f>>2];if(!d){d=ho(32);ro(d+16|0,c);i[d+28>>2]=0;i[d+8>>2]=i[h+12>>2];i[d>>2]=0;i[d+4>>2]=0;i[f>>2]=d;c=i[i[e>>2]>>2];j=d;b:{if(!c){break b}i[e>>2]=c;j=i[f>>2]}c=j;Kf(i[a+16>>2],c);i[a+20>>2]=i[a+20>>2]+1}d=d+28|0;c=i[d>>2];i[d>>2]=k;if(c){yk(c+12|0,i[c+16>>2]);zk(c,i[c+4>>2]);bp(c)}d=i[b+4>>2];c:{if(!d){c=i[b+8>>2];if((b|0)==i[c>>2]){break c}d=b+8|0;while(1){b=i[d>>2];d=b+8|0;c=i[b+8>>2];if((b|0)!=i[c>>2]){continue}break}break c}while(1){c=d;d=i[c>>2];if(d){continue}break}}if((c|0)!=(g|0)){continue}break}}F=h+16|0}function ii(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=d-c|0;if((f|0)<1){return}a:{h=f>>2;k=i[a+8>>2];l=i[a+4>>2];if((h|0)<=k-l>>2){g=l-b|0;e=g>>2;if((h|0)<=(e|0)){f=l;j=d;break a}f=l;j=(e<<2)+c|0;if((j|0)!=(d|0)){e=j;while(1){i[f>>2]=i[e>>2];f=f+4|0;e=e+4|0;if((e|0)!=(d|0)){continue}break}}i[a+4>>2]=f;if((g|0)>=1){break a}return}b:{j=i[a>>2];g=h+(l-j>>2)|0;if(g>>>0<1073741824){k=k-j|0;e=k>>1;g=k>>2>>>0<536870911?e>>>0>>0?g:e:1073741823;e=0;c:{if(!g){break c}if(g>>>0>=1073741824){break b}e=ho(g<<2)}k=b-j|0;m=c;c=c-d|0;c=hp(e+(k>>2<<2)|0,m,o(((c|0)>(f|0)?c:f)>>>2|0,(f|0)<1?f:1)<<2);d=h<<2;h=g<<2;if((k|0)>=1){hp(e,j,k)}f=c+d|0;d=e+h|0;c=l-b|0;if((c|0)>=1){f=hp(f,b,c)+c|0}i[a+8>>2]=d;i[a+4>>2]=f;i[a>>2]=e;if(j){bp(j)}return}Ho();x()}za(11708);x()}e=h<<2;g=f-(e+b|0)|0;d=f;e=f-e|0;if(e>>>0>>0){h=e;while(1){i[d>>2]=i[h>>2];d=d+4|0;h=h+4|0;if(h>>>0>>0){continue}break}}i[a+4>>2]=d;if(g){while(1){f=f+ -4|0;e=e+ -4|0;i[f>>2]=i[e>>2];if((b|0)!=(e|0)){continue}break}}if((c|0)==(j|0)){return}f=b;while(1){i[f>>2]=i[c>>2];f=f+4|0;c=c+4|0;if((j|0)!=(c|0)){continue}break}}function sl(a,b,c){var d=0,e=0,f=0,h=0;e=F+ -64|0;F=e;a:{b:{c:{d:{e:{if(!a){break e}d=mp(b);if(d>>>0>=4294967280){break d}f:{g:{if(d>>>0>=11){h=d+16&-16;f=ho(h);i[e+56>>2]=h|-2147483648;i[e+48>>2]=f;i[e+52>>2]=d;break g}g[e+59|0]=d;f=e+48|0;if(!d){break f}}hp(f,b,d)}g[d+f|0]=0;d=mp(c);if(d>>>0>=4294967280){break c}h:{i:{if(d>>>0>=11){h=d+16&-16;f=ho(h);i[e+40>>2]=h|-2147483648;i[e+32>>2]=f;i[e+36>>2]=d;break i}g[e+43|0]=d;f=e+32|0;if(!d){break h}}hp(f,c,d)}g[d+f|0]=0;d=mp(b);if(d>>>0>=4294967280){break b}j:{k:{if(d>>>0>=11){h=d+16&-16;f=ho(h);i[e+24>>2]=h|-2147483648;i[e+16>>2]=f;i[e+20>>2]=d;break k}g[e+27|0]=d;f=e+16|0;if(!d){break j}}hp(f,b,d)}g[d+f|0]=0;d=mp(c);if(d>>>0>=4294967280){break a}l:{m:{if(d>>>0>=11){f=d+16&-16;b=ho(f);i[e+8>>2]=f|-2147483648;i[e>>2]=b;i[e+4>>2]=d;f=e;break m}g[e+11|0]=d;f=e;b=e;if(!d){break l}}hp(b,c,d)}g[b+d|0]=0;um(a,e+16|0,e);if(g[f+11|0]<=-1){bp(i[e>>2])}if(g[e+27|0]<=-1){bp(i[e+16>>2])}if(g[e+43|0]<=-1){bp(i[e+32>>2])}if(g[e+59|0]>-1){break e}bp(i[e+48>>2])}F=e- -64|0;return(a|0)!=0}qo();x()}qo();x()}qo();x()}qo();x()}function qj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=F-16|0;F=d;a:{b:{c:{if(!b){b=ho(76);c=ho(12);i[c+8>>2]=i[i[a+4>>2]+80>>2];i[c>>2]=13420;i[c+4>>2]=0;i[d>>2]=c;Mc(b,d,0);i[d+8>>2]=b;c=i[a+12>>2];d:{if(c>>>0>2]){i[d+8>>2]=0;i[c>>2]=b;i[a+12>>2]=c+4;break d}Xh(a+8|0,d+8|0)}a=i[d+8>>2];i[d+8>>2]=0;if(a){I[i[i[a>>2]+4>>2]](a)}a=i[d>>2];i[d>>2]=0;if(!a){break c}I[i[i[a>>2]+4>>2]](a);break c}c=i[i[a+8>>2]>>2];a=i[c+8>>2];e:{if((a|0)!=i[c+12>>2]){i[a>>2]=b;i[c+8>>2]=a+4;break e}f=i[c+4>>2];g=a-f|0;h=g>>2;e=h+1|0;if(e>>>0>=1073741824){break b}a=g>>1;e=h>>>0<536870911?a>>>0>>0?e:a:1073741823;a=0;f:{if(!e){break f}if(e>>>0>=1073741824){break a}a=ho(e<<2)}h=a+(h<<2)|0;i[h>>2]=b;e=a+(e<<2)|0;h=h+4|0;if((g|0)>=1){hp(a,f,g)}i[c+12>>2]=e;i[c+8>>2]=h;i[c+4>>2]=a;if(!f){break e}bp(f)}a=i[c+16>>2];f=i[c+20>>2]-a>>2;g:{if((f|0)>(b|0)){break g}i[d+12>>2]=-1;g=b+1|0;if(g>>>0>f>>>0){a=c+16|0;Gb(a,g-f|0,d+12|0);a=i[a>>2];break g}if(g>>>0>=f>>>0){break g}i[c+20>>2]=(g<<2)+a}i[(b<<2)+a>>2]=(i[c+8>>2]-i[c+4>>2]>>2)+ -1}F=d+16|0;return 1}Ho();x()}za(13344);x()}function Mj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=F-16|0;F=d;a:{b:{c:{if(!b){b=ho(76);c=ho(12);i[c+8>>2]=i[i[a+4>>2]+80>>2];i[c>>2]=13420;i[c+4>>2]=0;i[d>>2]=c;Mc(b,d,0);i[d+8>>2]=b;c=i[a+12>>2];d:{if(c>>>0>2]){i[d+8>>2]=0;i[c>>2]=b;i[a+12>>2]=c+4;break d}Xh(a+8|0,d+8|0)}a=i[d+8>>2];i[d+8>>2]=0;if(a){I[i[i[a>>2]+4>>2]](a)}a=i[d>>2];i[d>>2]=0;if(!a){break c}I[i[i[a>>2]+4>>2]](a);break c}c=i[i[a+8>>2]>>2];a=i[c+8>>2];e:{if((a|0)!=i[c+12>>2]){i[a>>2]=b;i[c+8>>2]=a+4;break e}f=i[c+4>>2];g=a-f|0;h=g>>2;e=h+1|0;if(e>>>0>=1073741824){break b}a=g>>1;e=h>>>0<536870911?a>>>0>>0?e:a:1073741823;a=0;f:{if(!e){break f}if(e>>>0>=1073741824){break a}a=ho(e<<2)}h=a+(h<<2)|0;i[h>>2]=b;e=a+(e<<2)|0;h=h+4|0;if((g|0)>=1){hp(a,f,g)}i[c+12>>2]=e;i[c+8>>2]=h;i[c+4>>2]=a;if(!f){break e}bp(f)}a=i[c+16>>2];f=i[c+20>>2]-a>>2;g:{if((f|0)>(b|0)){break g}i[d+12>>2]=-1;g=b+1|0;if(g>>>0>f>>>0){a=c+16|0;Gb(a,g-f|0,d+12|0);a=i[a>>2];break g}if(g>>>0>=f>>>0){break g}i[c+20>>2]=(g<<2)+a}i[(b<<2)+a>>2]=(i[c+8>>2]-i[c+4>>2]>>2)+ -1}F=d+16|0;return 1}Ho();x()}za(14116);x()}function _(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,n=0,o=0;j=+m[b>>2];k=+m[b+4>>2];n=+m[b+8>>2];h=q(j)+q(k)+q(n);a:{if(h>1e-6^1){j=1;k=0;f=0;break a}h=1/h;k=h*k;j=h*j;f=h*n<0}h=k;g=i[a+16>>2];k=+(g|0);h=u(h*k+.5);b:{if(q(h)<2147483648){b=~~h;break b}b=-2147483648}l=(b|0)<0?b:0-b|0;j=u(j*k+.5);c:{if(q(j)<2147483648){e=~~j;break c}e=-2147483648}o=(e|0)<0;e=l+((o?e:0-e|0)+g|0)|0;l=(e|0)<0?0:e;f=f?0-l|0:l;b=b+(e>>31&((b|0)>0?e:0-e|0))|0;d:{if(!o){e=b+g|0;b=f+g|0;break d}e:{if((b|0)<=-1){e=f>>31;e=e+f^e;break e}e=i[a+8>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=b;b=b>>31;b=f+b^b;break d}b=i[a+8>>2]+((b|0)<0?b:0-b|0)|0}f:{if(!(b|e)){b=i[a+8>>2];a=b;break f}f=i[a+8>>2];g:{h:{i:{j:{if(!e){if((b|0)==(f|0)){a=b;break f}a=0;if(b|f){break j}b=0;break f}if((e|0)!=(f|0)|b){break i}b=e;a=b;break f}if((g|0)<(b|0)){b=(g<<1)-b|0;break f}if(f){break g}break h}if((e|0)!=(f|0)){break g}}f=e;if((g|0)<=(b|0)){break g}b=(g<<1)-b|0;a=e;break f}if(!((b|0)!=(f|0)|(g|0)<=(e|0))){a=(g<<1)-e|0;break f}if(b){a=e;break f}b=0;if((g|0)>=(e|0)){a=e;break f}a=(g<<1)-e|0}i[c>>2]=a;i[d>>2]=b}function Cm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;a:{if((b|0)<0){break a}c=i[a+12>>2];d=i[a+8>>2];if(c-d>>2>>>0<=b>>>0){break a}d=d+(b<<2)|0;f=i[d>>2];h=i[f+60>>2];g=i[f+56>>2];e=d+4|0;b:{if((e|0)!=(c|0)){while(1){j=i[e>>2];i[e>>2]=0;i[d>>2]=j;if(f){Wb(f)}d=d+4|0;e=e+4|0;if((e|0)!=(c|0)){f=i[d>>2];continue}break}c=i[a+12>>2];if((d|0)==(c|0)){break b}}while(1){c=c+ -4|0;f=i[c>>2];i[c>>2]=0;if(f){Wb(f)}if((c|0)!=(d|0)){continue}break}}i[a+12>>2]=d;c=i[a+4>>2];if(c){Dm(c,h)}c:{if((g|0)>4){break c}d:{d=o(g,12)+a|0;c=i[d+20>>2];f=d+24|0;d=i[f>>2];if((c|0)==(d|0)){break d}while(1){if(i[c>>2]==(b|0)){break d}c=c+4|0;if((d|0)!=(c|0)){continue}break}break c}if((c|0)==(d|0)){break c}e=c+4|0;d=d-e|0;if(d){jp(c,e,d)}i[f>>2]=c+d}d=0;while(1){c=o(d,12)+a|0;e=i[c+24>>2];f=i[c+20>>2];if((e|0)!=(f|0)){c=e-f|0;g=(c|0)>-1?c:-1;e=f-e|0;c=o((g|0)<1?g:1,((e|0)>(c|0)?e:c)>>>2|0);e=c>>>0>1?c:1;c=0;while(1){g=f+(c<<2)|0;h=i[g>>2];if((h|0)>(b|0)){i[g>>2]=h+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}d=d+1|0;if((d|0)!=5){continue}break}}}function Kf(a,b){var c=0,d=0,e=0;c=(a|0)==(b|0);g[b+12|0]=c;a:{if(c){break a}while(1){d=i[b+8>>2];if(j[d+12|0]){break a}b:{c=i[d+8>>2];e=i[c>>2];if((e|0)==(d|0)){e=i[c+4>>2];if(!(!e|j[e+12|0])){break b}c:{if(i[d>>2]==(b|0)){b=d;break c}b=i[d+4>>2];e=i[b>>2];i[d+4>>2]=e;a=b;if(e){i[e+8>>2]=d;c=i[d+8>>2]}i[a+8>>2]=c;a=i[d+8>>2];i[(((d|0)!=i[a>>2])<<2)+a>>2]=b;i[b>>2]=d;i[d+8>>2]=b;c=i[b+8>>2]}g[b+12|0]=1;g[c+12|0]=0;a=i[c>>2];b=i[a+4>>2];i[c>>2]=b;if(b){i[b+8>>2]=c}i[a+8>>2]=i[c+8>>2];b=i[c+8>>2];i[((i[b>>2]!=(c|0))<<2)+b>>2]=a;i[a+4>>2]=c;i[c+8>>2]=a;return}if(!(j[e+12|0]|!e)){break b}d:{if(i[d>>2]!=(b|0)){b=d;break d}e=i[b+4>>2];i[d>>2]=e;a=b;if(e){i[e+8>>2]=d;c=i[d+8>>2]}i[a+8>>2]=c;a=i[d+8>>2];i[(((d|0)!=i[a>>2])<<2)+a>>2]=b;i[b+4>>2]=d;i[d+8>>2]=b;c=i[b+8>>2]}g[b+12|0]=1;g[c+12|0]=0;a=i[c+4>>2];b=i[a>>2];i[c+4>>2]=b;if(b){i[b+8>>2]=c}i[a+8>>2]=i[c+8>>2];b=i[c+8>>2];i[((i[b>>2]!=(c|0))<<2)+b>>2]=a;i[a>>2]=c;i[c+8>>2]=a;break a}b=e+12|0;g[d+12|0]=1;g[c+12|0]=(a|0)==(c|0);g[b|0]=1;b=c;if((a|0)!=(b|0)){continue}break}}}function dd(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;g=i[b+4>>2];f=i[b>>2];c=(i[c+4>>2]-g|0)+(i[c>>2]-f<<3)|0;a:{if((c|0)<=0){g=i[d+4>>2];break a}b:{if(!g){g=i[d+4>>2];break b}e=i[d+4>>2];j=32-e|0;l=32-g|0;h=(c|0)<(l|0)?c:l;k=j>>>0>>0?j:h;m=i[d>>2];f=i[f>>2]&(-1<>>l-h);i[m>>2]=i[m>>2]&(-1<>>j-k^-1)|(e>>>0>g>>>0?f<>>g-e|0);e=e+k|0;g=e&31;i[d+4>>2]=g;j=m+(e>>>3&536870908)|0;i[d>>2]=j;e=h-k|0;if((e|0)>=1){i[j>>2]=i[j>>2]&(-1>>>32-e^-1)|f>>>k+i[b+4>>2];i[d+4>>2]=e;g=e}c=c-h|0;f=i[b>>2]+4|0;i[b>>2]=f}k=-1<>2];f=i[f>>2];i[e>>2]=j&i[e>>2]|f<>2]=e+4;i[e+4>>2]=k&i[e+4>>2]|f>>>h;f=i[b>>2]+4|0;i[b>>2]=f;l=(c|0)>63;e=c+ -32|0;c=e;if(l){continue}break}}if((e|0)<1){break a}b=i[d>>2];c=(h|0)<(e|0)?h:e;j=i[b>>2]&(k&-1>>>h-c^-1);h=i[f>>2]&-1>>>32-e;i[b>>2]=j|h<>2]=g;f=b+(f>>>3&536870908)|0;i[d>>2]=f;b=e-c|0;if((b|0)<1){break a}i[f>>2]=i[f>>2]&(-1>>>32-b^-1)|h>>>c;i[d+4>>2]=b;g=b}b=i[d>>2];i[a+4>>2]=g;i[a>>2]=b}function wn(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;h=F-32|0;F=h;f=d&2147483647;g=f;e=f+ -1065418752|0;f=c;j=f;if(f>>>0<0){e=e+1|0}l=j;k=g+ -1082064896|0;j=f;if(f>>>0<0){k=k+1|0}a:{if((e|0)==(k|0)&l>>>0>>0|e>>>0>>0){g=(d&33554431)<<7|c>>>25;f=0;k=f;j=c&33554431;if(!(!f&(j|0)==16777216?!(a|b):!f&j>>>0<16777216|f>>>0<0)){e=g+1073741825|0;break a}e=g+1073741824|0;if(j^16777216|a|(b|k)){break a}e=(e&1)+e|0;break a}if(!(!f&(g|0)==2147418112?!(a|b):(g|0)==2147418112&f>>>0<0|g>>>0<2147418112)){e=((d&33554431)<<7|c>>>25)&4194303|2143289344;break a}e=2139095040;if(g>>>0>1082064895){break a}e=0;g=g>>>16|0;if(g>>>0<16145){break a}e=d&65535|65536;sn(h+16|0,a,b,c,e,g+ -16129|0);vn(h,a,b,f,e,16257-g|0);b=i[h+8>>2];e=(i[h+12>>2]&33554431)<<7|b>>>25;f=i[h+4>>2];g=f;a=0;j=a;k=i[h>>2]|((i[h+16>>2]|i[h+24>>2])!=0|(i[h+20>>2]|i[h+28>>2])!=0);b=b&33554431;if(!(!a&(b|0)==16777216?!(f|k):!a&b>>>0<16777216|a>>>0<0)){e=e+1|0;break a}if(b^16777216|k|(g|j)){break a}e=(e&1)+e|0}F=h+32|0;return Cp(2,d&-2147483648|e),Gp()}function hi(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=-1;a:{if((b|0)==-1){h=i[a+12>>2];d=1;e=-1;break a}h=i[a+12>>2];d=((b>>>0)%3|0?-1:2)+b|0;b:{if((d|0)==-1){d=1;break b}g=i[h+12>>2];while(1){f=d;e=i[g+(d<<2)>>2];if((e|0)!=-1){f=-1;d=e+1|0;d=(d>>>0)%3|0?d:e+ -2|0;if((d|0)!=-1){continue}}break}d=(e|0)!=-1;e=-1;if((b|0)==-1){break a}}e=i[i[h>>2]+(b<<2)>>2]}b=0;if(c){b=i[a+84>>2]+(e>>>3&536870908)|0;i[b>>2]=i[b>>2]|1<>2]+(e<<2)>>2];g=i[a+140>>2]+(c>>>3&536870908)|0;i[g>>2]=i[g>>2]|1<>>0)%3|0?-1:2)+f|0;c=-1;if((d|0)==-1){break c}c=i[i[h>>2]+(d<<2)>>2]}if((g|0)!=(c|0)){g=i[a+84>>2];while(1){a=f;f=g+(c>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>>0)%3|0?d:a+ -2|0;if((d|0)==-1){break d}j=i[h+12>>2];while(1){a=i[j+(d<<2)>>2];if((a|0)!=-1){d=a+1|0;d=(d>>>0)%3|0?d:a+ -2|0;if((d|0)!=-1){continue}break d}break}a=((d>>>0)%3|0?-1:2)+d|0;if((a|0)!=-1){c=i[i[h>>2]+(a<<2)>>2]}f=d}b=b+1|0;if((c|0)!=(e|0)){continue}break}}}function xi(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;a:{b:{if(j[a+352|0]){break b}b=i[a+8>>2];g=i[b+12>>2];h=i[b+8>>2];f=g-h|0;d=(f>>2)+ -1|0;c=i[a+176>>2];b=i[a+172>>2];e=(c-b|0)/136|0;c:{if(d>>>0>e>>>0){mi(a+172|0,d-e|0);break c}if(d>>>0>=e>>>0){break c}d=b+o(d,136)|0;if((d|0)!=(c|0)){while(1){b=i[c+ -20>>2];if(b){i[c+ -16>>2]=b;bp(b)}b=c+ -136|0;e=i[c+ -32>>2];if(e){i[c+ -28>>2]=e;bp(e)}ni(c+ -132|0);c=b;if((b|0)!=(d|0)){continue}break}}i[a+176>>2]=d}if((f|0)==4|(f|0)<1){break b}b=h-g|0;b=((b|0)>(f|0)?b:f)>>>2|0;f=b>>>0>1?b:1;c=0;while(1){d=i[i[i[a+8>>2]+8>>2]+(c<<2)>>2];if(i[d+56>>2]){e=o(n,136);k=e+i[a+172>>2]|0;i[k>>2]=c;g=k+108|0;l=i[k+104>>2];i[g>>2]=l;h=k+112|0;b=i[a+12>>2];b=i[b+4>>2]-i[b>>2]|0;m=b>>2;d:{if(i[h>>2]-l>>2>>>0>=m>>>0){break d}if(m>>>0>=1073741824){break a}b=ho(b);i[k+104>>2]=b;i[g>>2]=b;i[h>>2]=b+(m<<2);if(!l){break d}bp(l)}b=e+i[a+172>>2]|0;i[b+128>>2]=0;am(b+4|0,i[a+8>>2],i[a+12>>2],d);n=n+1|0}c=c+1|0;if((f|0)!=(c|0)){continue}break}}return 1}za(11708);x()}function di(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;a:{b:{if(j[a+288|0]){break b}b=i[a+8>>2];g=i[b+12>>2];h=i[b+8>>2];f=g-h|0;d=(f>>2)+ -1|0;c=i[a+176>>2];b=i[a+172>>2];e=(c-b|0)/136|0;c:{if(d>>>0>e>>>0){mi(a+172|0,d-e|0);break c}if(d>>>0>=e>>>0){break c}d=b+o(d,136)|0;if((d|0)!=(c|0)){while(1){b=i[c+ -20>>2];if(b){i[c+ -16>>2]=b;bp(b)}b=c+ -136|0;e=i[c+ -32>>2];if(e){i[c+ -28>>2]=e;bp(e)}ni(c+ -132|0);c=b;if((b|0)!=(d|0)){continue}break}}i[a+176>>2]=d}if((f|0)==4|(f|0)<1){break b}b=h-g|0;b=((b|0)>(f|0)?b:f)>>>2|0;f=b>>>0>1?b:1;c=0;while(1){d=i[i[i[a+8>>2]+8>>2]+(c<<2)>>2];if(i[d+56>>2]){e=o(n,136);k=e+i[a+172>>2]|0;i[k>>2]=c;g=k+108|0;l=i[k+104>>2];i[g>>2]=l;h=k+112|0;b=i[a+12>>2];b=i[b+4>>2]-i[b>>2]|0;m=b>>2;d:{if(i[h>>2]-l>>2>>>0>=m>>>0){break d}if(m>>>0>=1073741824){break a}b=ho(b);i[k+104>>2]=b;i[g>>2]=b;i[h>>2]=b+(m<<2);if(!l){break d}bp(l)}b=e+i[a+172>>2]|0;i[b+128>>2]=0;am(b+4|0,i[a+8>>2],i[a+12>>2],d);n=n+1|0}c=c+1|0;if((f|0)!=(c|0)){continue}break}}return 1}za(11708);x()}function eg(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0,m=0,o=0,p=0,q=0,r=0;o=F-16|0;F=o;h=i[b+28>>2];f=a+8|0;g=i[b+24>>2];i[f>>2]=g;i[f+4>>2]=h;j=i[b+20>>2];i[a>>2]=i[b+16>>2];i[a+4>>2]=j;j=i[b+36>>2];i[a+16>>2]=i[b+32>>2];i[a+20>>2]=j;i[f>>2]=d+g;a:{b:{if((d|0)>=1){j=i[b>>2];f=0;while(1){g=i[b+4>>2]-j>>2;h=i[(f<<2)+c>>2];c:{if(g>>>0>h>>>0){break c}i[o+12>>2]=0;k=h+1|0;if(k>>>0>g>>>0){Gb(b,k-g|0,o+12|0);j=i[b>>2];break c}if(k>>>0>=g>>>0){break c}i[b+4>>2]=(k<<2)+j}k=(h<<2)+j|0;g=i[k>>2];d:{if((g|0)>=2){m=+(g|0);m=ep(m)*m;break d}m=0;if(g){break d}i[a+16>>2]=i[a+16>>2]+1;if(h>>>0<=l[a+12>>2]){break d}i[a+12>>2]=h}h=g+1|0;i[k>>2]=h;p=+(h|0);q=a,r=ep(p)*p-m+n[a>>3],n[q>>3]=r;f=f+1|0;if((f|0)!=(d|0)){continue}break}if(e){break b}if((d|0)<1){break a}a=i[b>>2];f=0;while(1){b=a+(i[(f<<2)+c>>2]<<2)|0;i[b>>2]=i[b>>2]+ -1;f=f+1|0;if((f|0)!=(d|0)){continue}break}break a}if(!e){break a}}d=i[a+4>>2];b=b+16|0;i[b>>2]=i[a>>2];i[b+4>>2]=d;i[b+16>>2]=i[a+16>>2];c=i[a+12>>2];i[b+8>>2]=i[a+8>>2];i[b+12>>2]=c}F=o+16|0}function si(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=11424;i[a+72>>2]=0;i[a+76>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+88>>2]=0;i[a+92>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=1065353216;i[a+156>>2]=0;i[a+160>>2]=0;i[a+148>>2]=0;i[a+152>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+164>>2]=-1;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;mf(a+200|0);Tj(a+232|0);i[a+304>>2]=0;i[a+308>>2]=0;i[a+296>>2]=0;i[a+300>>2]=0;i[a+288>>2]=0;i[a+292>>2]=0;i[a+280>>2]=0;i[a+284>>2]=0;i[a+272>>2]=0;i[a+276>>2]=0;i[a+264>>2]=0;i[a+268>>2]=0;g[a+352|0]=0;i[a+344>>2]=0;i[a+336>>2]=0;i[a+340>>2]=0;i[a+328>>2]=2;i[a+332>>2]=7;i[a+320>>2]=-1;i[a+324>>2]=0;i[a+312>>2]=0;i[a+316>>2]=-1}function vc(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=F-32|0;F=b;c=i[a+16>>2];a:{if(c>>>0>=113){i[a+16>>2]=c+ -113;c=i[a+4>>2];i[b+8>>2]=i[c>>2];i[a+4>>2]=c+4;zc(a,b+8|0);break a}b:{c:{d:{e:{d=i[a+8>>2];e=d-i[a+4>>2]>>2;f=i[a+12>>2];c=f-i[a>>2]|0;if(e>>>0>2>>>0){if((d|0)==(f|0)){break e}g=b,h=ho(4068),i[g+8>>2]=h;zc(a,b+8|0);break a}i[b+24>>2]=a+12;c=c?c>>1:1;if(c>>>0>=1073741824){break d}d=c<<2;c=ho(d);i[b+8>>2]=c;e=c+(e<<2)|0;i[b+16>>2]=e;i[b+20>>2]=c+d;i[b+12>>2]=e;g=b,h=ho(4068),i[g+4>>2]=h;zc(b+8|0,b+4|0);d=i[a+8>>2];if((d|0)==i[a+4>>2]){c=d;break b}while(1){d=d+ -4|0;Ac(b+8|0,d);if(i[a+4>>2]!=(d|0)){continue}break}break c}g=b,h=ho(4068),i[g+8>>2]=h;Ac(a,b+8|0);c=i[a+4>>2];i[b+8>>2]=i[c>>2];i[a+4>>2]=c+4;zc(a,b+8|0);break a}za(1752);x()}c=i[a+8>>2]}e=i[a>>2];i[a>>2]=i[b+8>>2];i[b+8>>2]=e;i[a+4>>2]=i[b+12>>2];i[b+12>>2]=d;i[a+8>>2]=i[b+16>>2];i[b+16>>2]=c;f=i[a+12>>2];i[a+12>>2]=i[b+20>>2];i[b+20>>2]=f;if((c|0)!=(d|0)){i[b+16>>2]=c+(((c-d|0)+ -4>>>2^-1)<<2)}if(!e){break a}bp(e)}F=b+32|0}function Og(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0;e=1;a:{b:{c:{d:{e:{f:{switch(b-a>>2){case 2:d=i[c>>2];c=i[d>>2];d=i[d+4>>2]-c>>3;f=b+ -4|0;b=i[f>>2];if(d>>>0<=b>>>0){break e}g=d;d=i[a>>2];if(g>>>0<=d>>>0){break e}if(l[c+(b<<3)>>2]>=l[c+(d<<3)>>2]){break a}i[a>>2]=b;i[f>>2]=d;return 1;case 3:Ng(a,a+4|0,b+ -4|0,c);return 1;case 4:Kg(a,a+4|0,a+8|0,b+ -4|0,c);return 1;case 5:Lg(a,a+4|0,a+8|0,a+12|0,b+ -4|0,c);return 1;case 0:case 1:break a;default:break f}}f=a+8|0;Ng(a,a+4|0,f,c);e=a+12|0;if((e|0)==(b|0)){break c}d=i[c>>2];h=i[d>>2];j=i[d+4>>2]-h>>3;while(1){d=e;k=i[d>>2];if(j>>>0<=k>>>0){break d}e=i[f>>2];if(j>>>0<=e>>>0){break d}g=d;g:{m=h+(k<<3)|0;if(l[m>>2]>2]){while(1){h:{i[g>>2]=e;c=f;if((c|0)==(a|0)){c=a;break h}f=c+ -4|0;e=i[f>>2];if(j>>>0<=e>>>0){break d}g=c;if(l[m>>2]>2]){continue}}break}i[c>>2]=k;n=n+1|0;if((n|0)==8){break g}}f=d;e=d+4|0;if((e|0)==(b|0)){break c}continue}break}c=(d+4|0)==(b|0);a=0;break b}Io();x()}Io();x()}a=1}e=a|c}return e&1}function Uf(a,b,c,d){var e=0,f=0,h=0,k=0;k=F-16|0;F=k;e=ho(16);i[k>>2]=e;i[k+4>>2]=15;i[k+8>>2]=-2147483632;g[e+15|0]=0;f=j[10535]|j[10536]<<8|(j[10537]<<16|j[10538]<<24);h=j[10531]|j[10532]<<8|(j[10533]<<16|j[10534]<<24);g[e+7|0]=h;g[e+8|0]=h>>>8;g[e+9|0]=h>>>16;g[e+10|0]=h>>>24;g[e+11|0]=f;g[e+12|0]=f>>>8;g[e+13|0]=f>>>16;g[e+14|0]=f>>>24;f=j[10528]|j[10529]<<8|(j[10530]<<16|j[10531]<<24);h=j[10524]|j[10525]<<8|(j[10526]<<16|j[10527]<<24);g[e|0]=h;g[e+1|0]=h>>>8;g[e+2|0]=h>>>16;g[e+3|0]=h>>>24;g[e+4|0]=f;g[e+5|0]=f>>>8;g[e+6|0]=f>>>16;g[e+7|0]=f>>>24;f=b+4|0;e=$j(f,k,-1);if(g[k+11|0]<=-1){bp(i[k>>2])}a:{b:{c:{switch(e+1|0){case 0:if((_b(f)|0)==10){break b}break;case 2:break c;default:break b}}e=ho(68);lj(e);i[e+64>>2]=0;i[e>>2]=10936;break a}e=ho(64);lj(e);i[e>>2]=13204}i[e+56>>2]=c;aa(e,c);yj(a,e,f,d);if(!i[a>>2]){if(g[a+15|0]<=-1){bp(i[a+4>>2])}i[b+40>>2]=i[e+52>>2];i[b+44>>2]=i[e+60>>2];i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0}I[i[i[e>>2]+4>>2]](e);F=k+16|0}function Kj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=F-16|0;F=e;a:{b:{c=i[a+8>>2];c:{if((c|0)==i[a+12>>2]){c=ho(76);Qb(c,b);i[e+8>>2]=c;b=i[a+12>>2];d:{if(b>>>0>2]){i[e+8>>2]=0;i[b>>2]=c;i[a+12>>2]=b+4;break d}Xh(a+8|0,e+8|0)}a=i[e+8>>2];i[e+8>>2]=0;if(!a){break c}I[i[i[a>>2]+4>>2]](a);break c}c=i[c>>2];a=i[c+8>>2];e:{if((a|0)!=i[c+12>>2]){i[a>>2]=b;i[c+8>>2]=a+4;break e}f=i[c+4>>2];g=a-f|0;h=g>>2;d=h+1|0;if(d>>>0>=1073741824){break b}a=g>>1;d=h>>>0<536870911?a>>>0>>0?d:a:1073741823;a=0;f:{if(!d){break f}if(d>>>0>=1073741824){break a}a=ho(d<<2)}h=a+(h<<2)|0;i[h>>2]=b;d=a+(d<<2)|0;h=h+4|0;if((g|0)>=1){hp(a,f,g)}i[c+12>>2]=d;i[c+8>>2]=h;i[c+4>>2]=a;if(!f){break e}bp(f)}a=i[c+16>>2];f=i[c+20>>2]-a>>2;g:{if((f|0)>(b|0)){break g}i[e+12>>2]=-1;g=b+1|0;if(g>>>0>f>>>0){a=c+16|0;Gb(a,g-f|0,e+12|0);a=i[a>>2];break g}if(g>>>0>=f>>>0){break g}i[c+20>>2]=(g<<2)+a}i[(b<<2)+a>>2]=(i[c+8>>2]-i[c+4>>2]>>2)+ -1}F=e+16|0;return 1}Ho();x()}za(13936);x()}function gb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|i[d+8>>2]!=i[c+8>>2]|(i[d+12>>2]!=i[c+12>>2]|i[d+16>>2]!=i[c+16>>2])){break f}if(i[d+20>>2]==i[c+20>>2]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function Eb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|k[d+8>>1]!=k[c+8>>1]|(k[d+10>>1]!=k[c+10>>1]|k[d+12>>1]!=k[c+12>>1])){break f}if(k[d+14>>1]==k[c+14>>1]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function Z(a,b,c,d,e){var f=0,g=0,h=0,k=0,l=0,n=0,o=0,q=0;f=F-48|0;F=f;a=i[a+4>>2];a:{if(a+ -2>>>0>28){break a}l=i[i[e>>2]>>2]+i[e+48>>2]|0;i[f+16>>2]=a;a=-1<>2]=a^-1;a=-2-a|0;i[f+24>>2]=a;i[f+32>>2]=(a|0)/2;m[f+28>>2]=p(2)/p(a|0);g=i[c>>2];if((g|0)!=i[c+4>>2]){a=0;e=0;while(1){d=i[(e<<2)+g>>2];g=f+36|0;n=i[i[b>>2]>>2];o=i[b+48>>2];h=i[b+44>>2];k=i[b+40>>2];q=k;if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}d=up(q,h,d,0)+o|0;hp(g,d+n|0,k);_(f+16|0,f+36|0,f+12|0,f+8|0);d=a<<2;i[d+l>>2]=i[f+12>>2];i[(d|4)+l>>2]=i[f+8>>2];h=1;a=a+2|0;e=e+1|0;g=i[c>>2];if(e>>>0>2]-g>>2>>>0){continue}break}break a}if(!d){h=1;break a}e=0;a=0;while(1){c=a;g=f+36|0;n=i[i[b>>2]>>2];o=i[b+48>>2];h=i[b+44>>2];k=i[b+40>>2];q=k;if(!j[b+84|0]){c=i[i[b+68>>2]+(a<<2)>>2]}c=up(q,h,c,0)+o|0;hp(g,c+n|0,k);_(f+16|0,f+36|0,f+12|0,f+8|0);c=e<<2;i[c+l>>2]=i[f+12>>2];i[(c|4)+l>>2]=i[f+8>>2];e=e+2|0;h=1;a=a+1|0;if((d|0)!=(a|0)){continue}break}}F=f+48|0;return h}function $l(a,b){var c=0,d=0,e=0,f=0,h=0,j=0;j=F-16|0;F=j;a:{b:{if(b){i[a+88>>2]=0;i[a+92>>2]=0;c=a+84|0;d=i[c>>2];i[c>>2]=0;if(d){bp(d)}i[a+76>>2]=0;i[a+80>>2]=0;c=a+72|0;d=i[c>>2];i[c>>2]=0;if(d){bp(d)}d=i[b>>2];c=i[b+4>>2];g[j+15|0]=0;Uh(a,c-d>>2,j+15|0);c=b+28|0;d=i[c>>2];e=i[b+24>>2];g[j+14|0]=0;Uh(a+12|0,d-e>>2,j+14|0);Sh(a+28|0,i[b+4>>2]-i[b>>2]>>2,16716);d=i[a+52>>2];e=i[c>>2]-i[b+24>>2]|0;c=e>>2;c:{if(i[a+60>>2]-d>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break b}f=i[a+56>>2];h=c<<2;c=ho(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){hp(c,d,e)}i[a+60>>2]=h;i[a+56>>2]=f;i[a+52>>2]=c;if(!d){break c}bp(d)}d=i[a+40>>2];e=i[b+28>>2]-i[b+24>>2]|0;c=e>>2;d:{if(i[a+48>>2]-d>>2>>>0>=c>>>0){break d}if(c>>>0>=1073741824){break a}f=i[a+44>>2];h=c<<2;c=ho(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){hp(c,d,e)}i[a+48>>2]=h;i[a+44>>2]=f;i[a+40>>2]=c;if(!d){break d}bp(d)}g[a+24|0]=1;i[a+64>>2]=b}F=j+16|0;return(b|0)!=0}za(16720);x()}za(16720);x()}function oe(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0;f=F-16|0;F=f;if(!(!fd(a,b,c)|j[i[a+8>>2]+24|0]!=3)){h=i[b+48>>2];b=ho(32);i[f>>2]=b;i[f+4>>2]=17;i[f+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[6044];d=j[6040]|j[6041]<<8|(j[6042]<<16|j[6043]<<24);e=j[6036]|j[6037]<<8|(j[6038]<<16|j[6039]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[6032]|j[6033]<<8|(j[6034]<<16|j[6035]<<24);e=j[6028]|j[6029]<<8|(j[6030]<<16|j[6031]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;a:{b:{e=h+16|0;b=i[e>>2];if(!b){break b}d=e;while(1){k=i[b+16>>2]<(c|0);d=k?d:b;b=i[(k<<2)+b>>2];if(b){continue}break}if((d|0)==(e|0)|i[d+16>>2]>(c|0)){break b}b=d+20|0;if(!Sb(b,f)){break b}b=$j(b,f,-1);break a}b=$j(h,f,-1)}if(g[f+11|0]<=-1){bp(i[f>>2])}if((b|0)>=1){aa(a+40|0,b)}d=(b|0)>0}F=f+16|0;return d|0}function sb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;k=h+i[a>>2]|0;if(!i[k>>2]){i[k>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|j[d+8|0]!=j[c+8|0]|(j[d+9|0]!=j[c+9|0]|j[d+10|0]!=j[c+10|0])){break f}if(j[d+11|0]==j[c+11|0]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function ua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,m=0,n=0;e=i[a+12>>2];d=i[a+8>>2];f=e-d>>2;b=g[b+24|0];a:{if(f>>>0>>0){ka(a+8|0,b-f|0);d=i[a+8>>2];e=i[a+12>>2];break a}if(f>>>0<=b>>>0){break a}e=(b<<2)+d|0;i[a+12>>2]=e}b=0;h=i[c+12>>2];f=i[c+20>>2];k=i[c+16>>2];m=e-d|0;e=m;n=k+e|0;if(n>>>0>>0){f=f+1|0}b:{if((h|0)<(f|0)?1:(h|0)<=(f|0)?l[c+8>>2]>>0:0){break b}hp(d,k+i[c>>2]|0,m);d=i[c+20>>2];h=e+i[c+16>>2]|0;if(h>>>0>>0){d=d+1|0}e=h;i[c+16>>2]=e;i[c+20>>2]=d;f=i[c+12>>2];h=e+4|0;if(h>>>0<4){d=d+1|0}if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]>>0:0){break b}d=e+i[c>>2]|0;i[a+20>>2]=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);d=i[c+20>>2];e=d;k=i[c+16>>2];h=k+4|0;if(h>>>0<4){d=d+1|0}i[c+16>>2]=h;i[c+20>>2]=d;f=i[c+12>>2];if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]<=h>>>0:0){break b}f=j[h+i[c>>2]|0];d=e;e=k+5|0;if(e>>>0<5){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;if(f+ -1>>>0>29){break b}i[a+4>>2]=f;b=1}return b|0}function Sf(a,b,c){var d=0,e=0,f=0;e=F-16|0;F=e;d=i[b+48>>2];a:{if(!d){b=ho(32);i[e>>2]=b;i[e+4>>2]=23;i[e+8>>2]=-2147483616;g[b+23|0]=0;c=j[10519]|j[10520]<<8|(j[10521]<<16|j[10522]<<24);d=j[10515]|j[10516]<<8|(j[10517]<<16|j[10518]<<24);g[b+15|0]=d;g[b+16|0]=d>>>8;g[b+17|0]=d>>>16;g[b+18|0]=d>>>24;g[b+19|0]=c;g[b+20|0]=c>>>8;g[b+21|0]=c>>>16;g[b+22|0]=c>>>24;c=j[10512]|j[10513]<<8|(j[10514]<<16|j[10515]<<24);d=j[10508]|j[10509]<<8|(j[10510]<<16|j[10511]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[10504]|j[10505]<<8|(j[10506]<<16|j[10507]<<24);d=j[10500]|j[10501]<<8|(j[10502]<<16|j[10503]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ro(a+4|0,e);if(g[e+11|0]>-1){break a}bp(i[e>>2]);break a}f=i[b+52>>2];if(!f){Tf(a,b,d,c);break a}Uf(a,b,f,c)}F=e+16|0}function Qi(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i[a+12>>2];d=i[a+108>>2];e=i[d+80>>2];g[b+84|0]=0;f=i[b+68>>2];c=i[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){Xa(b+68|0,e-c|0,12320);d=i[a+108>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=f+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}p=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=i[n>>2]+(o(d,3)<<2)|0;j=i[c>>2];if((j|0)==-1){break c}f=o(d,12)+m|0;h=i[f>>2];if(h>>>0>=e>>>0){break c}l=i[i[a+112>>2]+12>>2];k=i[l+(j<<2)>>2];if(k>>>0>=e>>>0){break c}j=i[b+68>>2];i[j+(h<<2)>>2]=k;h=i[c+4>>2];if((h|0)==-1){break c}k=i[f+4>>2];if(k>>>0>=e>>>0){break c}h=i[(h<<2)+l>>2];if(h>>>0>=e>>>0){break c}i[j+(k<<2)>>2]=h;c=i[c+8>>2];if((c|0)==-1){break c}f=i[f+8>>2];if(f>>>0>=e>>>0){break c}c=i[(c<<2)+l>>2];if(c>>>0>=e>>>0){break c}i[j+(f<<2)>>2]=c;c=1;d=d+1|0;if((p|0)!=(d|0)){continue}break b}break}c=0}return c|0}function $i(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i[a+12>>2];d=i[a+68>>2];e=i[d+80>>2];g[b+84|0]=0;f=i[b+68>>2];c=i[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){Xa(b+68|0,e-c|0,12320);d=i[a+68>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=f+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}p=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=i[n>>2]+(o(d,3)<<2)|0;j=i[c>>2];if((j|0)==-1){break c}f=o(d,12)+m|0;h=i[f>>2];if(h>>>0>=e>>>0){break c}l=i[i[a+72>>2]+12>>2];k=i[l+(j<<2)>>2];if(k>>>0>=e>>>0){break c}j=i[b+68>>2];i[j+(h<<2)>>2]=k;h=i[c+4>>2];if((h|0)==-1){break c}k=i[f+4>>2];if(k>>>0>=e>>>0){break c}h=i[(h<<2)+l>>2];if(h>>>0>=e>>>0){break c}i[j+(k<<2)>>2]=h;c=i[c+8>>2];if((c|0)==-1){break c}f=i[f+8>>2];if(f>>>0>=e>>>0){break c}c=i[(c<<2)+l>>2];if(c>>>0>=e>>>0){break c}i[j+(f<<2)>>2]=c;c=1;d=d+1|0;if((p|0)!=(d|0)){continue}break b}break}c=0}return c|0}function eb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|i[d+8>>2]!=i[c+8>>2]|i[d+12>>2]!=i[c+12>>2]){break f}if(i[d+16>>2]==i[c+16>>2]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function Cb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|k[d+8>>1]!=k[c+8>>1]|k[d+10>>1]!=k[c+10>>1]){break f}if(k[d+12>>1]==k[c+12>>1]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function $c(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=F-16|0;F=e;a:{c=i[a+4>>2];b:{if(c>>>0>>0){d=i[a+8>>2];f=d<<5;g=b-c|0;c:{if(!(f>>>0>>0|c>>>0>f-g>>>0)){i[a+4>>2]=b;d=c&31;b=i[a>>2]+(c>>>3&536870908)|0;break c}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if((b|0)<=-1){break a}c=e;if(f>>>0<=1073741822){f=b+31&-32;b=d<<6;b=b>>>0>>0?f:b}else{b=2147483647}bd(c,b);d=i[a+4>>2];i[e+4>>2]=d+g;h=i[a>>2];b=i[e>>2];d:{if((d|0)<1){d=0;break d}c=d>>>5|0;f=c<<2;b=jp(b,h,f)+f|0;d=d-(c<<5)|0;e:{if((d|0)<1){d=0;break e}c=-1>>>32-d|0;i[b>>2]=i[b>>2]&(c^-1)|c&i[f+h>>2]}h=i[a>>2]}i[a>>2]=i[e>>2];i[e>>2]=h;c=i[a+4>>2];i[a+4>>2]=i[e+4>>2];i[e+4>>2]=c;c=i[a+8>>2];i[a+8>>2]=i[e+8>>2];i[e+8>>2]=c;if(!h){break c}bp(h)}if(!g){break b}if(d){c=32-d|0;a=c>>>0>g>>>0?g:c;i[b>>2]=i[b>>2]&(-1<>>c-a^-1);g=g-a|0;b=b+4|0}c=g>>>5<<2;a=ip(b,0,c);b=g&31;if(!b){break b}a=a+c|0;i[a>>2]=i[a>>2]&(-1>>>32-b^-1);break b}i[a+4>>2]=b}F=e+16|0;return}Ho();x()}function Ri(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=F-16|0;F=g;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+28>>2]-i[c+24>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];h=c<<2;c=ho(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){hp(c,d,e)}i[b+8>>2]=h;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}bp(d)}b=i[a+12>>2];d=i[b+28>>2];b=i[b+24>>2];i[g+12>>2]=0;b=d-b>>2;c=a+96|0;e=i[c>>2];d=i[a+100>>2]-e>>2;c:{if(b>>>0>d>>>0){Gb(c,b-d|0,g+12|0);break c}if(b>>>0>=d>>>0){break c}i[a+100>>2]=e+(b<<2)}e=a+8|0;b=i[a+116>>2];d:{if(b){c=i[b>>2];if((c|0)==i[b+4>>2]){d=1;break d}b=0;while(1){d=Si(e,i[(b<<2)+c>>2]);if(!d){break d}f=i[a+116>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break d}d=1;a=i[a+12>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break d}b=0;while(1){d=Si(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break d}if(d){continue}break}}F=g+16|0;return d|0}za(11708);x()}function cc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=F-16|0;F=d;i[a+8>>2]=b;i[a>>2]=0;nc(a+12|0);mf(a+1036|0);hf(a+1068|0);hf(a+1088|0);hf(a+1108|0);i[a+1136>>2]=0;i[a+1128>>2]=0;i[a+1132>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}e=b<<2;c=ho(e);i[a+1128>>2]=c;f=c+e|0;i[a+1136>>2]=f;ip(c,0,e);i[a+1132>>2]=f}i[a+1140>>2]=0;i[a+1144>>2]=0;i[a+1148>>2]=0;if(b){e=b<<2;c=ho(e);i[a+1140>>2]=c;f=c+e|0;i[a+1148>>2]=f;ip(c,0,e);i[a+1144>>2]=f}i[a+1152>>2]=0;i[a+1156>>2]=0;i[a+1160>>2]=0;if(b){e=b<<2;c=ho(e);i[a+1152>>2]=c;f=c+e|0;i[a+1160>>2]=f;ip(c,0,e);i[a+1156>>2]=f}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;g=a+1164|0;e=b<<5|1;if(b){c=b<<2;f=ho(c);i[d>>2]=f;h=c+f|0;i[d+8>>2]=h;ip(f,0,c);i[d+4>>2]=h}oc(g,e,d);c=i[d>>2];if(c){i[d+4>>2]=c;bp(c)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=a+1176|0;if(b){b=b<<2;c=ho(b);i[d>>2]=c;g=b+c|0;i[d+8>>2]=g;ip(c,0,b);i[d+4>>2]=g}oc(f,e,d);b=i[d>>2];if(b){i[d+4>>2]=b;bp(b)}F=d+16|0;return a}Ho();x()}function qb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;k=h+i[a>>2]|0;if(!i[k>>2]){i[k>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|j[d+8|0]!=j[c+8|0]|j[d+9|0]!=j[c+9|0]){break f}if(j[d+10|0]==j[c+10|0]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function fj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;j=i[a+12>>2];d=i[a+68>>2];e=i[d+80>>2];g[b+84|0]=0;h=i[b+68>>2];c=i[b+72>>2]-h>>2;a:{if(e>>>0>c>>>0){Xa(b+68|0,e-c|0,12320);d=i[a+68>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=h+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}n=d>>>0>1?d:1;p=i[j+28>>2];d=0;b:{while(1){c:{c=(o(d,3)<<2)+p|0;h=i[c>>2];if((h|0)==-1){break c}j=o(d,12)+m|0;k=i[j>>2];if(k>>>0>=e>>>0){break c}f=h<<2;h=i[i[a+72>>2]+12>>2];f=i[f+h>>2];if(f>>>0>=e>>>0){break c}l=k<<2;k=i[b+68>>2];i[l+k>>2]=f;f=i[c+4>>2];if((f|0)==-1){break c}l=i[j+4>>2];if(l>>>0>=e>>>0){break c}f=i[h+(f<<2)>>2];if(f>>>0>=e>>>0){break c}i[k+(l<<2)>>2]=f;c=i[c+8>>2];if((c|0)==-1){break c}j=i[j+8>>2];if(j>>>0>=e>>>0){break c}c=i[h+(c<<2)>>2];if(c>>>0>=e>>>0){break c}i[k+(j<<2)>>2]=c;c=1;d=d+1|0;if((n|0)!=(d|0)){continue}break b}break}c=0}return c|0}function wc(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0;g=i[a+8>>2];a:{b:{c:{h=i[c>>2];f=i[b>>2];k=h-f|0;if(k>>>0>=64){if(g){break c}b=0;break b}b=0;if(g>>>0<2){break a}a=i[e>>2];c=1;while(1){b=l[a+(b<<2)>>2]>l[a+(c<<2)>>2]?c:b;c=c+1|0;if((g|0)!=(c|0)){continue}break}break a}g=i[b+8>>2];m=i[b+4>>2];n=i[d>>2];p=i[a+1140>>2];q=i[e>>2];r=i[a+1128>>2];while(1){b=j<<2;d=b+r|0;i[d>>2]=0;c=i[a>>2]-i[b+q>>2]|0;i[b+p>>2]=c;if(c){d:{if((f|0)==(h|0)){c=i[d>>2];break d}e=i[b+n>>2]+(1<>2]|0;c=i[d>>2];b=f;while(1){c=(l[s+(o(b,g)<<2)>>2]>>0)+c|0;i[d>>2]=c;b=b+1|0;if((h|0)!=(b|0)){continue}break}}b=k-c|0;i[d>>2]=b>>>0>>0?c:b}j=j+1|0;e=i[a+8>>2];if(j>>>0>>0){continue}break}if(!e){b=0;break b}g=i[a+1140>>2];c=0;d=0;b=0;while(1){f=c<<2;if(i[f+g>>2]){h=i[f+i[a+1128>>2]>>2];f=d>>>0>>0;d=f?h:d;b=f?c:b}c=c+1|0;if((e|0)!=(c|0)){continue}break}}yc(a+1088|0,4,b)}return b}function cb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|i[d+8>>2]!=i[c+8>>2]){break f}if(i[d+12>>2]==i[c+12>>2]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function Ab(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|k[d+8>>1]!=k[c+8>>1]){break f}if(k[d+10>>1]==k[c+10>>1]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function Am(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;j=a+8|0;d=i[a+12>>2];h=i[a+8>>2];f=d-h>>2;a:{if((f|0)>(b|0)){break a}e=b+1|0;if(e>>>0>f>>>0){Bm(j,e-f|0);break a}if(e>>>0>=f>>>0){break a}f=h+(e<<2)|0;if((f|0)!=(d|0)){while(1){d=d+ -4|0;e=i[d>>2];i[d>>2]=0;if(e){Wb(e)}if((d|0)!=(f|0)){continue}break}}i[a+12>>2]=f}b:{c:{d=i[i[c>>2]+56>>2];d:{if((d|0)>4){break d}d=o(d,12)+a|0;h=d+24|0;a=i[h>>2];k=d+28|0;if((a|0)!=i[k>>2]){i[a>>2]=b;i[h>>2]=a+4;break d}l=d+20|0;d=i[l>>2];f=a-d|0;g=f>>2;e=g+1|0;if(e>>>0>=1073741824){break c}a=f>>1;e=g>>>0<536870911?a>>>0>>0?e:a:1073741823;a=0;e:{if(!e){break e}if(e>>>0>=1073741824){break b}a=ho(e<<2)}g=a+(g<<2)|0;i[g>>2]=b;e=a+(e<<2)|0;g=g+4|0;if((f|0)>=1){hp(a,d,f)}i[l>>2]=a;i[h>>2]=g;i[k>>2]=e;if(!d){break d}bp(d)}d=i[c>>2];i[d+60>>2]=b;a=i[j>>2];i[c>>2]=0;b=a+(b<<2)|0;a=i[b>>2];i[b>>2]=d;if(a){Wb(a)}return}Ho();x()}za(16928);x()}function ob(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;k=h+i[a>>2]|0;if(!i[k>>2]){i[k>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|j[d+8|0]!=j[c+8|0]){break f}if(j[d+9|0]==j[c+9|0]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function Bi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if((e-c|0)/12>>>0>=b>>>0){if(b){b=o(b,12);c=ip(c,0,b-((b+ -12>>>0)%12|0)|0)+b|0}i[a+4>>2]=c;return}a:{b:{c:{h=i[a>>2];f=(c-h|0)/12|0;d=f+b|0;if(d>>>0<357913942){f=o(f,12);e=(e-h|0)/12|0;g=e<<1;e=e>>>0<178956970?g>>>0>>0?d:g:357913941;if(e){if(e>>>0>=357913942){break c}j=ho(o(e,12))}d=f+j|0;b=o(b,12);f=ip(d,0,b-((b+ -12>>>0)%12|0)|0);g=b+f|0;b=o(e,12)+j|0;if((c|0)==(h|0)){break b}while(1){d=d+ -12|0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;c=c+ -12|0;i[d>>2]=i[c>>2];i[d+4>>2]=i[c+4>>2];i[d+8>>2]=i[c+8>>2];i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;if((c|0)!=(h|0)){continue}break}i[a+8>>2]=b;b=i[a+4>>2];i[a+4>>2]=g;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){a=b+ -12|0;d=i[a>>2];if(d){i[b+ -8>>2]=d;bp(d)}b=a;if((b|0)!=(c|0)){continue}break}break a}Ho();x()}za(11708);x()}i[a+8>>2]=b;i[a+4>>2]=g;i[a>>2]=f}if(c){bp(c)}}function ec(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=F-16|0;F=d;i[a+8>>2]=b;i[a>>2]=0;mf(a+12|0);hf(a+44|0);hf(a- -64|0);hf(a+84|0);i[a+112>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}e=b<<2;c=ho(e);i[a+104>>2]=c;f=c+e|0;i[a+112>>2]=f;ip(c,0,e);i[a+108>>2]=f}i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;if(b){e=b<<2;c=ho(e);i[a+116>>2]=c;f=c+e|0;i[a+124>>2]=f;ip(c,0,e);i[a+120>>2]=f}i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;if(b){e=b<<2;c=ho(e);i[a+128>>2]=c;f=c+e|0;i[a+136>>2]=f;ip(c,0,e);i[a+132>>2]=f}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;g=a+140|0;e=b<<5|1;if(b){c=b<<2;f=ho(c);i[d>>2]=f;h=c+f|0;i[d+8>>2]=h;ip(f,0,c);i[d+4>>2]=h}oc(g,e,d);c=i[d>>2];if(c){i[d+4>>2]=c;bp(c)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=a+152|0;if(b){b=b<<2;c=ho(b);i[d>>2]=c;g=b+c|0;i[d+8>>2]=g;ip(c,0,b);i[d+4>>2]=g}oc(f,e,d);b=i[d>>2];if(b){i[d+4>>2]=b;bp(b)}F=d+16|0;return a}Ho();x()}function hc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=F-16|0;F=d;i[a+8>>2]=b;i[a>>2]=0;hf(a+12|0);hf(a+32|0);hf(a+52|0);hf(a+72|0);i[a+100>>2]=0;i[a+92>>2]=0;i[a+96>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}e=b<<2;c=ho(e);i[a+92>>2]=c;f=c+e|0;i[a+100>>2]=f;ip(c,0,e);i[a+96>>2]=f}i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;if(b){e=b<<2;c=ho(e);i[a+104>>2]=c;f=c+e|0;i[a+112>>2]=f;ip(c,0,e);i[a+108>>2]=f}i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;if(b){e=b<<2;c=ho(e);i[a+116>>2]=c;f=c+e|0;i[a+124>>2]=f;ip(c,0,e);i[a+120>>2]=f}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;g=a+128|0;e=b<<5|1;if(b){c=b<<2;f=ho(c);i[d>>2]=f;h=c+f|0;i[d+8>>2]=h;ip(f,0,c);i[d+4>>2]=h}oc(g,e,d);c=i[d>>2];if(c){i[d+4>>2]=c;bp(c)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=a+140|0;if(b){b=b<<2;c=ho(b);i[d>>2]=c;g=b+c|0;i[d+8>>2]=g;ip(c,0,b);i[d+4>>2]=g}oc(f,e,d);b=i[d>>2];if(b){i[d+4>>2]=b;bp(b)}F=d+16|0;return a}Ho();x()}function $(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=p(0),f=p(0),h=p(0),k=p(0),l=p(0),m=0,n=p(0),o=p(0),r=p(0),s=p(0),u=0;a:{if(i[c+28>>2]!=9|j[c+24|0]!=3){break a}a=i[a+4>>2];if(a+ -2>>>0>28){break a}u=1;m=i[c+80>>2];if(!m){break a}n=p(p(2)/p((1<>2]>>2]+i[c+48>>2]|0;a=i[i[b>>2]>>2]+i[b+48>>2]|0;b=0;while(1){h=p(0);o=p(0);r=p(0);e=p(p(n*p(i[a>>2]))+p(-1));f=p(p(n*p(i[a+4>>2]))+p(-1));l=p(p(p(1)-p(q(e)))-p(q(f)));k=p(t(p(-l),p(0)));s=p(-k);f=p(f+(f>>8;g[c+10|0]=d>>>16;g[c+11|0]=d>>>24;d=(Fp(o),Bp(2));g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;d=(Fp(h),Bp(2));g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;c=c+12|0;b=b+1|0;if((m|0)!=(b|0)){continue}break}}return u|0}function td(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+4>>2]=b;i[a>>2]=3184;b=c;e=i[b+8>>2];f=i[b+12>>2];h=i[b+16>>2];j=i[b+20>>2];k=i[b>>2];l=i[b+4>>2];i[a+40>>2]=0;g=a+32|0;i[g>>2]=0;i[g+4>>2]=0;i[a+24>>2]=h;i[a+28>>2]=j;i[a+16>>2]=e;i[a+20>>2]=f;i[a+8>>2]=k;i[a+12>>2]=l;a:{b=i[b+28>>2]-i[b+24>>2]|0;if(b){e=b>>2;if(e>>>0>=1073741824){break a}b=ho(b);i[a+32>>2]=b;i[a+36>>2]=b;i[a+40>>2]=b+(e<<2);e=a;f=i[c+24>>2];c=i[c+28>>2]-f|0;if((c|0)>=1){b=hp(b,f,c)+c|0}i[e+36>>2]=b}i[a>>2]=4748;b=i[d+4>>2];i[a+44>>2]=i[d>>2];i[a+48>>2]=b;b=d+8|0;e=i[b+4>>2];i[a+52>>2]=i[b>>2];i[a+56>>2]=e;c=a- -64|0;i[c>>2]=0;i[c+4>>2]=0;i[a+60>>2]=5848;i[a>>2]=5264;c=i[d+4>>2];i[a+72>>2]=i[d>>2];i[a+76>>2]=c;c=i[b+4>>2];i[a+80>>2]=i[b>>2];i[a+84>>2]=c;i[a+104>>2]=1065353216;i[a+108>>2]=-1;i[a+96>>2]=-1;i[a+100>>2]=-1;i[a+88>>2]=1;i[a+92>>2]=-1;i[a+60>>2]=5484;mf(a+112|0);return}Ho();x()}function sd(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+4>>2]=b;i[a>>2]=3184;b=c;e=i[b+8>>2];f=i[b+12>>2];h=i[b+16>>2];j=i[b+20>>2];k=i[b>>2];l=i[b+4>>2];i[a+40>>2]=0;g=a+32|0;i[g>>2]=0;i[g+4>>2]=0;i[a+24>>2]=h;i[a+28>>2]=j;i[a+16>>2]=e;i[a+20>>2]=f;i[a+8>>2]=k;i[a+12>>2]=l;a:{b=i[b+28>>2]-i[b+24>>2]|0;if(b){e=b>>2;if(e>>>0>=1073741824){break a}b=ho(b);i[a+32>>2]=b;i[a+36>>2]=b;i[a+40>>2]=b+(e<<2);e=a;f=i[c+24>>2];c=i[c+28>>2]-f|0;if((c|0)>=1){b=hp(b,f,c)+c|0}i[e+36>>2]=b}i[a>>2]=3128;b=i[d+4>>2];i[a+44>>2]=i[d>>2];i[a+48>>2]=b;b=d+8|0;e=i[b+4>>2];i[a+52>>2]=i[b>>2];i[a+56>>2]=e;c=a- -64|0;i[c>>2]=0;i[c+4>>2]=0;i[a+60>>2]=4352;i[a>>2]=3724;c=i[d+4>>2];i[a+72>>2]=i[d>>2];i[a+76>>2]=c;c=i[b+4>>2];i[a+80>>2]=i[b>>2];i[a+84>>2]=c;i[a+104>>2]=1065353216;i[a+108>>2]=-1;i[a+96>>2]=-1;i[a+100>>2]=-1;i[a+88>>2]=1;i[a+92>>2]=-1;i[a+60>>2]=3960;mf(a+112|0);return}Ho();x()}function $d(a){var b=0,c=0,d=0;b=i[a+8>>2];d=i[a>>2];a:{if(j[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;if((b|0)==-1|i[i[d>>2]+(b>>>3&536870908)>>2]>>>b&1){break e}b=i[i[i[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}i[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;i[a+8>>2]=b;if((b|0)!=-1){break b}}b=-1;c=i[a+4>>2];f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1|i[i[d>>2]+(c>>>3&536870908)>>2]>>>c&1){break f}d=i[i[i[d+64>>2]+12>>2]+(c<<2)>>2];if((d|0)==-1){break f}if((d>>>0)%3|0){b=d+ -1|0;break f}b=d+2|0}g[a+12|0]=0;i[a+8>>2]=b;return}if((b|0)!=i[a+4>>2]){break a}i[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)==-1|i[i[d>>2]+(b>>>3&536870908)>>2]>>>b&1){break g}b=i[i[i[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break g}if((b>>>0)%3|0){c=b+ -1|0;break g}c=b+2|0}i[a+8>>2]=c}}function $h(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=F-16|0;F=c;b=i[i[a+184>>2]+(b<<2)>>2];g[c+15|0]=b;a:{b:{e=i[i[a+4>>2]+44>>2];d=i[e+20>>2];if((d|0)<0?1:(d|0)<=0?l[e+16>>2]<=0:0){ca(e,i[e+4>>2],c+15|0,c+16|0);b=j[c+15|0]}c:{if(b<<24>>24<=-1){e=i[a+68>>2];break c}b=i[i[a+172>>2]+o(b&255,136)>>2];d=I[i[i[a>>2]+40>>2]](a)|0;f=i[a+172>>2]+o(g[c+15|0],136)|0;e=i[f+132>>2];d:{switch(i[i[i[d+56>>2]+84>>2]+(b<<2)>>2]){case 0:break c;case 1:break d;default:break b}}if(!j[f+28|0]){break b}}b=i[i[a+4>>2]+44>>2];g[c+14|0]=0;d=i[b+20>>2];if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break a}ca(b,i[b+4>>2],c+14|0,c+15|0);break a}b=i[i[a+4>>2]+44>>2];g[c+13|0]=1;d=i[b+20>>2];if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break a}ca(b,i[b+4>>2],c+13|0,c+14|0)}a=i[i[a+4>>2]+44>>2];g[c+12|0]=e;b=i[a+20>>2];if((b|0)<0?1:(b|0)<=0?l[a+16>>2]<=0:0){ca(a,i[a+4>>2],c+12|0,c+13|0)}F=c+16|0;return 1}function kj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(i[d+8>>2]==i[c+8>>2]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(11708);x()}function yb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(k[d+8>>1]==k[c+8>>1]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function ab(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(i[d+8>>2]==i[c+8>>2]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function mb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;k=h+i[a>>2]|0;if(!i[k>>2]){i[k>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(j[d+8|0]==j[c+8|0]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function Dj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;j=F-16|0;F=j;c=i[a+4>>2];i[a+8>>2]=c;f=i[a+16>>2];i[a+20>>2]=f;a:{b:{g=i[b>>2];m=i[b+4>>2];if((g|0)!=(m|0)){l=a+16|0;b=c;while(1){h=i[g>>2];c:{if(i[a+12>>2]!=(b|0)){i[b>>2]=h;i[a+8>>2]=b+4;break c}k=b-c|0;e=k>>2;d=e+1|0;if(d>>>0>=1073741824){break b}b=k>>1;d=e>>>0<536870911?b>>>0>>0?d:b:1073741823;b=0;d:{if(!d){break d}if(d>>>0>=1073741824){break a}b=ho(d<<2)}e=b+(e<<2)|0;i[e>>2]=h;d=b+(d<<2)|0;e=e+4|0;if((k|0)>=1){hp(b,c,k)}i[a+12>>2]=d;i[a+8>>2]=e;i[a+4>>2]=b;if(!c){break c}bp(c);f=i[l>>2]}b=i[a+20>>2]-f>>2;e:{if((h|0)<(b|0)){break e}i[j+12>>2]=-1;c=h+1|0;if(c>>>0>b>>>0){Gb(l,c-b|0,j+12|0);f=i[l>>2];break e}if(c>>>0>=b>>>0){break e}i[a+20>>2]=(c<<2)+f}b=i[a+8>>2];c=i[a+4>>2];i[(h<<2)+f>>2]=(b-c>>2)+ -1;g=g+4|0;if((m|0)!=(g|0)){continue}break}}F=j+16|0;return}Ho();x()}za(13760);x()}function gf(a,b){var c=0,d=0,e=0,f=0,h=0;f=F-16|0;F=f;c=ho(32);i[f>>2]=c;i[f+4>>2]=17;i[f+8>>2]=-2147483616;g[c+17|0]=0;g[c+16|0]=j[9966];e=j[9962]|j[9963]<<8|(j[9964]<<16|j[9965]<<24);d=j[9958]|j[9959]<<8|(j[9960]<<16|j[9961]<<24);g[c+8|0]=d;g[c+9|0]=d>>>8;g[c+10|0]=d>>>16;g[c+11|0]=d>>>24;g[c+12|0]=e;g[c+13|0]=e>>>8;g[c+14|0]=e>>>16;g[c+15|0]=e>>>24;e=j[9954]|j[9955]<<8|(j[9956]<<16|j[9957]<<24);d=j[9950]|j[9951]<<8|(j[9952]<<16|j[9953]<<24);g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;g[c+4|0]=e;g[c+5|0]=e>>>8;g[c+6|0]=e>>>16;g[c+7|0]=e>>>24;e=b+16|0;d=i[e>>2];a:{if(!d){break a}c=e;while(1){h=i[d+16>>2]<(a|0);c=h?c:d;d=i[(h<<2)+d>>2];if(d){continue}break}if((c|0)==(e|0)|i[c+16>>2]>(a|0)){break a}a=c+20|0;if(!Sb(a,f)){break a}b=a}a=$j(b,f,-1);if(g[f+11|0]<=-1){bp(i[f>>2])}if((a|0)!=-1){F=f+16|0;return a>>>0>6?-2:a}F=f+16|0;return-1}function oa(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,n=0,r=0,s=0,t=0,v=0,w=0,x=p(0),y=0,z=0,A=p(0),B=0,C=0,D=0,E=0;r=F-16|0;F=r;e=i[a+4>>2];h=i[d+48>>2];l=i[i[d>>2]>>2];k=g[b+24|0];f=dk(r+8|0);ek(f,m[a+20>>2],-1<>2];e=i[c+4>>2];if((n|0)!=(e|0)){y=h+l|0;c=e-n|0;h=(c|0)>-1?c:-1;e=n-e|0;c=o((h|0)<1?h:1,((e|0)>(c|0)?e:c)>>>2|0);z=c>>>0>1?c:1;A=m[f>>2];B=i[b>>2];e=i[b+48>>2];C=i[b+68>>2];h=i[b+44>>2];l=i[b+40>>2];D=l;c=0;E=j[b+84|0];while(1){b=i[(s<<2)+n>>2];f=d;t=i[B>>2];v=l;w=h;if(!E){b=i[(b<<2)+C>>2]}b=up(v,w,b,0)+e|0;v=hp(f,b+t|0,D);if((k|0)>=1){w=i[a+8>>2];b=0;while(1){t=y+(c<<2)|0;f=b<<2;x=p(u(p(p(A*p(m[f+v>>2]-m[f+w>>2]))+p(.5))));a:{if(p(q(x))>2]=f;c=c+1|0;b=b+1|0;if((k|0)!=(b|0)){continue}break}}s=s+1|0;if((z|0)!=(s|0)){continue}break}}bp(d);F=r+16|0}function zj(a,b){var c=0,d=0,e=0,f=0,j=0;d=F-16|0;F=d;c=i[b+44>>2];e=i[c+20>>2];if((e|0)<0?1:(e|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],13688,13693)}c=I[i[i[b>>2]+8>>2]](b)|0;g[d+15|0]=c;g[d+14|0]=2;g[d+13|0]=c&255?2:3;c=i[b+44>>2];e=i[c+20>>2];a:{if((e|0)>0?1:(e|0)>=0?l[c+16>>2]>0:0){break a}ca(c,i[c+4>>2],d+14|0,d+15|0);c=i[b+44>>2];e=i[c+20>>2];if((e|0)>0?1:(e|0)>=0?l[c+16>>2]>0:0){break a}ca(c,i[c+4>>2],d+13|0,d+14|0);c=i[b+44>>2];e=i[c+20>>2];if((e|0)>0?1:(e|0)>=0?l[c+16>>2]>0:0){break a}ca(c,i[c+4>>2],d+15|0,d+16|0);c=i[b+44>>2]}f=d,j=I[i[i[b>>2]+12>>2]](b)|0,g[f+12|0]=j;e=i[c+20>>2];if((e|0)<0?1:(e|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],d+12|0,d+13|0)}h[d+10>>1]=(i[i[b+4>>2]+4>>2]!=0)<<15;b=i[b+44>>2];c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],d+10|0,d+12|0)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;F=d+16|0}function ep(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{c:{d:{Ep(+a);b=Bp(1)|0;c=Bp(0)|0;if((b|0)>0?1:(b|0)>=0?c>>>0>=0:0){e=b;if(b>>>0>1048575){break d}}if(!(b&2147483647|c)){return-1/(a*a)}if((b|0)>-1){break c}return(a-a)/0}if(e>>>0>2146435071){break a}b=1072693248;j=-1023;if((e|0)!=1072693248){b=e;break b}if(c){break b}return 0}Ep(+(a*0x40000000000000));b=Bp(1)|0;c=Bp(0)|0;j=-1077}Cp(0,c|0);c=b+614242|0;Cp(1,(c&1048575)+1072079006|0);d=+Dp()+ -1;f=d*(d*.5);g=d/(d+2);h=g*g;a=h*h;Ep(+(d-f));b=Bp(1)|0;Bp(0)|0;Cp(0,0);Cp(1,b|0);i=+Dp();k=i*1.4426950407214463;l=+((c>>>20|0)+j|0);m=k+l;a=d-i-f+g*(f+(a*(a*(a*.15313837699209373+.22222198432149784)+.3999999999940942)+h*(a*(a*(a*.14798198605116586+.1818357216161805)+.2857142874366239)+.6666666666666735)));a=m+(k+(l-m)+(a*1.4426950407214463+(a+i)*1.6751713164886512e-10))}return a}function ca(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0;l=d-c|0;if((l|0)<1){return}a:{e=i[a+8>>2];m=i[a+4>>2];if((l|0)<=(e-m|0)){k=m-b|0;if((l|0)<=(k|0)){e=m;h=d;break a}e=m;h=c+k|0;if((h|0)!=(d|0)){f=h;while(1){g[e|0]=j[f|0];e=e+1|0;f=f+1|0;if((f|0)!=(d|0)){continue}break}}i[a+4>>2]=e;if((k|0)>=1){break a}return}h=i[a>>2];d=(m-h|0)+l|0;if((d|0)>-1){k=b-h|0;n=k;f=e-h|0;e=f<<1;e=f>>>0<1073741823?e>>>0>>0?d:e:2147483647;d=0;b:{if(!e){break b}d=ho(e)}c=hp(n+d|0,c,l);if((k|0)>=1){hp(d,h,k)}e=d+e|0;c=c+l|0;f=m-b|0;if((f|0)>=1){c=hp(c,b,f)+f|0}i[a+8>>2]=e;i[a+4>>2]=c;i[a>>2]=d;if(h){bp(h)}return}Ho();x()}k=e-(b+l|0)|0;f=e;d=e-l|0;if(d>>>0>>0){while(1){g[f|0]=j[d|0];f=f+1|0;d=d+1|0;if(d>>>0>>0){continue}break}}i[a+4>>2]=f;if(k){jp(e-k|0,b,k)}if((c|0)==(h|0)){return}f=b;while(1){g[f|0]=j[c|0];f=f+1|0;c=c+1|0;if((h|0)!=(c|0)){continue}break}}function fh(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=F-32|0;F=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -4194304|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -4177920|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+4194304|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1077936128|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Tj(j);Jg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;jp(k+h|0,h,c);hp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Uj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){bp(a)}a=i[f>>2];if(a){i[f+4>>2]=a;bp(a)}F=j+32|0}function dh(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=F-32|0;F=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -2097152|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -2080768|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+6291456|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1075838976|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Tj(j);Jg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;jp(k+h|0,h,c);hp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Uj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){bp(a)}a=i[f>>2];if(a){i[f+4>>2]=a;bp(a)}F=j+32|0}function bh(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=F-32|0;F=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -1048576|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -1032192|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+7340032|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1074790400|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Tj(j);Jg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;jp(k+h|0,h,c);hp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Uj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){bp(a)}a=i[f>>2];if(a){i[f+4>>2]=a;bp(a)}F=j+32|0}function Xg(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=F-32|0;F=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -32768|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -16384|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+8355840|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1073774592|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Tj(j);Jg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;jp(k+h|0,h,c);hp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Uj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){bp(a)}a=i[f>>2];if(a){i[f+4>>2]=a;bp(a)}F=j+32|0} -function Ub(a,b,c,d){var e=0,f=0,h=0,k=p(0);e=H-32|0;H=e;h=a+4|0;a=vc(a,b);a:{if((h|0)==(a|0)){break a}f=uo(e+16|0,a+28|0);b=g[f+11|0];b:{c:{if((b|0)<=-1){if(!i[f+4>>2]){break b}a=i[f>>2];break c}a=e+16|0;if(!b){break a}}if((c|0)>=1){b=0;while(1){d:{k=pn(a,e+12|0);h=a;a=i[e+12>>2];if((h|0)==(a|0)){break d}m[(b<<2)+d>>2]=k;b=b+1|0;if((c|0)!=(b|0)){continue}}break}b=j[f+11|0]}if(b<<24>>24>-1){break a}}ep(i[f>>2])}H=e+32|0}function $j(a,b,c){var d=0,e=0,f=0,h=0;e=H-16|0;H=e;Fo(e,c);f=Pf(a,e+12|0,b);d=i[f>>2];if(!d){d=ko(40);uo(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;i[d+8>>2]=i[e+12>>2];i[d>>2]=0;i[d+4>>2]=0;i[f>>2]=d;b=i[i[a>>2]>>2];h=d;a:{if(!b){break a}i[a>>2]=b;h=i[f>>2]}b=h;Lf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}a=d+28|0;if(g[d+39|0]<=-1){ep(i[a>>2])}b=i[e+4>>2];i[a>>2]=i[e>>2];i[a+4>>2]=b;i[a+8>>2]=i[e+8>>2];H=e+16|0}function om(a,b,c,d){var e=0,f=0,g=0,h=0,j=0;e=H-16|0;H=e;f=Of(a,b,e+12|0,e+8|0,c);if(!i[f>>2]){b=ko(40);uo(b+16|0,d);i[b+36>>2]=0;i[b+28>>2]=0;i[b+32>>2]=0;g=i[d+16>>2];c=i[d+12>>2];h=g-c|0;if(h){j=b+28|0;Rj(j,h);g=i[d+16>>2];c=i[d+12>>2];d=i[j>>2]}else{d=0}kp(d,c,g-c|0);i[b+8>>2]=i[e+12>>2];i[b>>2]=0;i[b+4>>2]=0;i[f>>2]=b;c=i[i[a>>2]>>2];if(c){i[a>>2]=c;b=i[f>>2]}Lf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}H=e+16|0}function yb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Hn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){zb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Ap(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Hn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}zb(a,b)}}function sb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Hn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){tb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Ap(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Hn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}tb(a,b)}}function qb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Hn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){rb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Ap(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Hn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}rb(a,b)}}function ob(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Hn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){pb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Ap(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Hn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}pb(a,b)}}function mb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Hn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){nb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Ap(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Hn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}nb(a,b)}}function kj(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Hn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){lj(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Ap(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Hn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}lj(a,b)}}function gb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Hn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){hb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Ap(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Hn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}hb(a,b)}}function eb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Hn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){fb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Ap(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Hn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}fb(a,b)}}function cb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Hn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){db(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Ap(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Hn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}db(a,b)}}function ab(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Hn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){bb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Ap(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Hn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}bb(a,b)}}function Pm(a,b){var c=0;c=(b|0)!=0;a:{b:{c:{if(!b|!(a&3)){break c}while(1){if(!j[a|0]){break b}a=a+1|0;b=b+ -1|0;c=(b|0)!=0;if(!b){break c}if(a&3){continue}break}}if(!c){break a}}d:{if(!j[a|0]|b>>>0<4){break d}while(1){c=i[a>>2];if((c^-1)&c+ -16843009&-2139062144){break d}a=a+4|0;b=b+ -4|0;if(b>>>0>3){continue}break}}if(!b){break a}while(1){if(!j[a|0]){return a}a=a+1|0;b=b+ -1|0;if(b){continue}break}}return 0}function Il(a,b,c,d){var e=0,f=0,h=0;f=H-48|0;H=f;a:{if(!b){a=0;break a}e=Vj(f+16|0);h=0;b:{if((zm(b,0)|0)==-1){break b}if(c){h=0;if(!(K[i[i[b>>2]+16>>2]](b)|0)){break b}K[i[i[b>>2]+20>>2]](b)}vf(f,a,b,e);a=i[f>>2];if(g[f+15|0]<=-1){ep(i[f+4>>2])}h=0;if(a){break b}tl(d,i[e>>2],i[e+4>>2]);h=i[e+4>>2]-i[e>>2]|0}a=h;b=i[e+12>>2];i[e+12>>2]=0;if(b){ep(b)}b=i[e>>2];if(!b){break a}i[e+4>>2]=b;ep(b)}H=f+48|0;return a}function Hm(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Hn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){Lm(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+20>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Ap(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Hn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}Lm(a,b)}}function Eb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Hn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){Fb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Ap(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Hn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}Fb(a,b)}}function Cb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Hn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){Db(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Ap(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Hn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}Db(a,b)}}function Ab(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Hn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){Bb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(Ap(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Hn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}Bb(a,b)}}function wj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a:{b=i[a+8>>2];b:{if((b|0)<0){break b}c=i[a+4>>2];e=i[c>>2];d=i[c+4>>2]-e>>2;c:{if(b>>>0>d>>>0){xj(c,b-d|0);f=i[a+8>>2];break c}f=b;if(b>>>0>=d>>>0){break c}i[c+4>>2]=e+(b<<2);f=b}d=f;if((d|0)<1){break b}a=i[a+4>>2];c=i[a>>2];e=i[a+4>>2]-c>>2;a=0;while(1){if((a|0)==(e|0)){break a}i[c+(a<<2)>>2]=a;a=a+1|0;if((a|0)<(d|0)){continue}break}}return(b^-1)>>>31|0}Lo();x()}function _j(a,b,c){var d=0,e=0,f=0;d=H-16|0;H=d;Eo(d,c);e=Pf(a,d+12|0,b);c=i[e>>2];if(!c){c=ko(40);uo(c+16|0,b);i[c+36>>2]=0;i[c+28>>2]=0;i[c+32>>2]=0;i[c+8>>2]=i[d+12>>2];i[c>>2]=0;i[c+4>>2]=0;i[e>>2]=c;b=i[i[a>>2]>>2];f=c;a:{if(!b){break a}i[a>>2]=b;f=i[e>>2]}b=f;Lf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}a=c+28|0;if(g[c+39|0]<=-1){ep(i[a>>2])}b=i[d+4>>2];i[a>>2]=i[d>>2];i[a+4>>2]=b;i[a+8>>2]=i[d+8>>2];H=d+16|0}function Ih(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=10936;b=i[a+64>>2];i[a+64>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}i[a>>2]=13484;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;ep(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;ep(b)}return a|0}function Jh(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=10936;b=i[a+64>>2];i[a+64>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}i[a>>2]=13484;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;ep(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;ep(b)}ep(a)}function Hl(a,b,c){var d=0,e=0,f=0;e=H-48|0;H=e;a:{if(!b){a=0;break a}d=Vj(e+16|0);f=0;b:{if((zm(b,0)|0)==-1){break b}f=0;if(!(K[i[i[b>>2]+16>>2]](b)|0)){break b}K[i[i[b>>2]+20>>2]](b);Bf(e,a,b,d);a=i[e>>2];if(g[e+15|0]<=-1){ep(i[e+4>>2])}f=0;if(a){break b}tl(c,i[d>>2],i[d+4>>2]);f=i[d+4>>2]-i[d>>2]|0}a=f;b=i[d+12>>2];i[d+12>>2]=0;if(b){ep(b)}b=i[d>>2];if(!b){break a}i[d+4>>2]=b;ep(b)}H=e+48|0;return a}function lc(a){qf(a);qf(a+32|0);qf(a- -64|0);qf(a+96|0);qf(a+128|0);qf(a+160|0);qf(a+192|0);qf(a+224|0);qf(a+256|0);qf(a+288|0);qf(a+320|0);qf(a+352|0);qf(a+384|0);qf(a+416|0);qf(a+448|0);qf(a+480|0);qf(a+512|0);qf(a+544|0);qf(a+576|0);qf(a+608|0);qf(a+640|0);qf(a+672|0);qf(a+704|0);qf(a+736|0);qf(a+768|0);qf(a+800|0);qf(a+832|0);qf(a+864|0);qf(a+896|0);qf(a+928|0);qf(a+960|0);qf(a+992|0);qf(a+1024|0)}function yo(a,b,c,d,e,f,h,j){var k=0,l=0,m=0;k=H-16|0;H=k;if((b^-1)+ -17>>>0>=c>>>0){l=$n(a);a:{if(2147483623>b>>>0){i[k+8>>2]=b<<1;i[k+12>>2]=b+c;c=eo(i[On(k+12|0,k+8|0)>>2]);break a}c=-18}m=c+1|0;c=fo(m);if(e){Nn(c,l,e)}if(h){Nn(c+e|0,j,h)}d=d-f|0;j=d-e|0;if(j){Nn((c+e|0)+h|0,(e+l|0)+f|0,j)}if((b|0)!=10){ep(l)}go(a,c);ho(a,m);b=a;a=d+h|0;ca(b,a);g[k+7|0]=0;bo(a+c|0,k+7|0);H=k+16|0;return}to();x()}function qn(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=H-160|0;H=e;lp(e+16|0,0,144);i[e+92>>2]=-1;i[e+60>>2]=b;i[e+24>>2]=-1;i[e+20>>2]=b;gn(e+16|0);ln(e,e+16|0,d);d=i[e+8>>2];g=i[e+12>>2];h=i[e>>2];j=i[e+4>>2];if(c){k=c;f=b;b=i[e+20>>2]-i[e+24>>2]|0;l=b;c=b+i[e+136>>2]|0;b=i[e+140>>2]+(b>>31)|0;b=c>>>0>>0?b+1|0:b;i[k>>2]=!(b|c)?f:f+c|0}i[a>>2]=h;i[a+4>>2]=j;i[a+8>>2]=d;i[a+12>>2]=g;H=e+160|0}function Bf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H-96|0;H=e;f=Sf(e+40|0,c);wf(e,b,c);Wf(f,e);ld(e+24|0,i[e+28>>2]);xf(e+12|0,i[e+16>>2]);ld(e,i[e+4>>2]);Tf(a,f,d);if(!i[a>>2]){if(g[a+15|0]<=-1){ep(i[a+4>>2])}i[b+40>>2]=i[f+40>>2];i[b+44>>2]=i[f+44>>2];i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0}i[f>>2]=10308;ld(f+28|0,i[f+32>>2]);xf(f+16|0,i[f+20>>2]);ld(f+4|0,i[f+8>>2]);H=e+96|0}function oc(a){nf(a);nf(a+32|0);nf(a- -64|0);nf(a+96|0);nf(a+128|0);nf(a+160|0);nf(a+192|0);nf(a+224|0);nf(a+256|0);nf(a+288|0);nf(a+320|0);nf(a+352|0);nf(a+384|0);nf(a+416|0);nf(a+448|0);nf(a+480|0);nf(a+512|0);nf(a+544|0);nf(a+576|0);nf(a+608|0);nf(a+640|0);nf(a+672|0);nf(a+704|0);nf(a+736|0);nf(a+768|0);nf(a+800|0);nf(a+832|0);nf(a+864|0);nf(a+896|0);nf(a+928|0);nf(a+960|0);nf(a+992|0)}function nc(a){of(a+992|0);of(a+960|0);of(a+928|0);of(a+896|0);of(a+864|0);of(a+832|0);of(a+800|0);of(a+768|0);of(a+736|0);of(a+704|0);of(a+672|0);of(a+640|0);of(a+608|0);of(a+576|0);of(a+544|0);of(a+512|0);of(a+480|0);of(a+448|0);of(a+416|0);of(a+384|0);of(a+352|0);of(a+320|0);of(a+288|0);of(a+256|0);of(a+224|0);of(a+192|0);of(a+160|0);of(a+128|0);of(a+96|0);of(a- -64|0);of(a+32|0);of(a)}function Pc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0;d=H-16|0;H=d;f=Jb(a,b);a:{if(!f){break a}c=i[a+36>>2];if((c|0)==i[a+40>>2]){break a}h=d+16|0;while(1){c=i[(e<<2)+c>>2];j=d,k=K[i[i[c>>2]+32>>2]](c)|0,g[j+15|0]=k;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ea(b,i[b+4>>2],d+15|0,h)}e=e+1|0;c=i[a+36>>2];if(e>>>0>2]-c>>2>>>0){continue}break}}H=d+16|0;return f|0}function Ni(a,b){var c=0,d=0,e=0;a:{if((a|0)!=(b|0)){e=a;c=i[b+4>>2];d=0;b:{if(!c){break b}c:{if(c>>>0<=i[a+8>>2]<<5>>>0){d=i[a>>2];break c}d=i[a>>2];if(d){ep(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;c=i[b+4>>2]}if((c|0)<=-1){break a}c=(c+ -1>>>5|0)+1|0;d=ko(c<<2);i[a+8>>2]=c;i[a+4>>2]=0;i[a>>2]=d;c=i[b+4>>2]}mp(d,i[b>>2],(c+ -1>>>3&536870908)+4|0);d=i[b+4>>2]}i[e+4>>2]=d}return}Ko();x()}function Kl(a,b,c){var d=0,e=0,f=0;d=H-48|0;H=d;e=i[a+4>>2];a:{if(!e){break a}if(b){if(!(K[i[i[e>>2]+16>>2]](e)|0)){break a}b=i[a+4>>2];K[i[i[b>>2]+20>>2]](b)}b=Vj(d+16|0);Tf(d,i[a>>2],b);a=i[d>>2];if(g[d+15|0]<=-1){ep(i[d+4>>2])}if(!a){tl(c,i[b>>2],i[b+4>>2]);f=i[b+4>>2]-i[b>>2]|0}a=i[b+12>>2];i[b+12>>2]=0;if(a){ep(a)}a=i[b>>2];if(!a){break a}i[b+4>>2]=a;ep(a)}H=d+48|0;return f}function Zh(a,b){var c=0;c=i[b+8>>2];i[a+12>>2]=i[b+4>>2];i[a+16>>2]=c;i[a+28>>2]=i[b+20>>2];c=i[b+16>>2];i[a+20>>2]=i[b+12>>2];i[a+24>>2]=c;Ni(a+32|0,b+24|0);Ni(a+44|0,b+36|0);if((a+8|0)==(b|0)){i[a+92>>2]=i[b+84>>2];return}Wh(a+56|0,i[b+48>>2],i[b+52>>2]);Wh(a+68|0,i[b+60>>2],i[b- -64>>2]);Wh(a+80|0,i[b+72>>2],i[b+76>>2]);i[a+92>>2]=i[b+84>>2];ta(a+96|0,i[b+88>>2],i[b+92>>2])}function rm(a,b){var c=0,d=0,e=0;c=i[b+4>>2];a:{if(!c){d=i[b+8>>2];if(i[d>>2]==(b|0)){break a}e=b+8|0;while(1){c=i[e>>2];e=c+8|0;d=i[c+8>>2];if((c|0)!=i[d>>2]){continue}break}break a}while(1){d=c;c=i[c>>2];if(c){continue}break}}if(i[a>>2]==(b|0)){i[a>>2]=d}i[a+8>>2]=i[a+8>>2]+ -1;xm(i[a+4>>2],b);a=i[b+28>>2];if(a){i[b+32>>2]=a;ep(a)}if(g[b+27|0]<=-1){ep(i[b+16>>2])}ep(b)}function md(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0;d=i[a+8>>2];e=g[d+24|0];nd(a,i[b+4>>2]-i[b>>2]>>2,e,c);c=i[b>>2];f=i[b+4>>2];if((c|0)==(f|0)){return 1}a=i[a+32>>2];h=i[i[a>>2]>>2]+i[a+48>>2]|0;b=0;while(1){a=i[c>>2];k=d;if(!j[d+84|0]){a=i[i[d+68>>2]+(a<<2)>>2]}a=Yb(k,a,g[d+24|0],(b<<2)+h|0);if(a){b=b+e|0;c=c+4|0;if((f|0)!=(c|0)){continue}}break}return a|0}function Zb(a,b){a=a|0;b=b|0;var c=0,d=0;c=i[a+36>>2];if((c|0)!=i[a+40>>2]){while(1){c=o(d,24)+c|0;K[i[i[c>>2]+28>>2]](c,b)|0;d=d+1|0;c=i[a+36>>2];if(d>>>0<(i[a+40>>2]-c|0)/24>>>0){continue}break}}c=i[a+48>>2];if((c|0)!=i[a+52>>2]){d=0;while(1){c=i[(d<<2)+c>>2];Kb((c|0)>-1?c<<1:(c^-1)<<1|1,b);d=d+1|0;c=i[a+48>>2];if(d>>>0>2]-c>>2>>>0){continue}break}}return 1}function Kg(a,b,c){var d=0,e=0,f=0;d=H-16|0;H=d;e=a;g[d+15|0]=a&127;a:{if(!b&a>>>0>=128|b>>>0>0){g[d+15|0]=e|128;e=i[c+20>>2];f=0;if((e|0)>0?1:(e|0)>=0?l[c+16>>2]>0:0){break a}ea(c,i[c+4>>2],d+15|0,d+16|0);f=Kg((b&127)<<25|a>>>7,b>>>7|0,c);break a}a=i[c+20>>2];if((a|0)<0?1:(a|0)<=0?l[c+16>>2]<=0:0){ea(c,i[c+4>>2],d+15|0,d+16|0);f=1;break a}f=0}e=f;H=d+16|0;return e}function Dn(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;k=e;e=0;l=e;h=c;c=0;g=xp(k,e,h,c);e=J;m=g;g=g>>>0<0?e+1|0:e;f=d;e=0;j=b;d=xp(f,e,b,0);b=J;f=xp(f,e,h,c);c=b+f|0;b=J;b=c>>>0>>0?b+1|0:b;h=b;f=b+m|0;b=g;b=f>>>0>>0?b+1|0:b;g=b;b=xp(j,n,k,l)+c|0;e=J;e=b>>>0>>0?e+1|0:e;j=e;f=e+f|0;e=g;i[a+8>>2]=f;i[a+12>>2]=f>>>0>>0?e+1|0:e;i[a>>2]=d;i[a+4>>2]=b}function Rj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>>0>=b>>>0){if(b){c=lp(c,0,b)+b|0}i[a+4>>2]=c;return}f=i[a>>2];g=c-f|0;d=g+b|0;if((d|0)>-1){c=0;e=e-f|0;h=e<<1;d=e>>>0<1073741823?h>>>0>>0?d:h:2147483647;if(d){c=ko(d)}d=c+d|0;b=lp(c+g|0,0,b)+b|0;if((g|0)>=1){kp(c,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){ep(f)}return}Ko();x()}function op(a,b,c){var d=0,e=0,f=0;a:{d=i[c+16>>2];if(!d){if(np(c)){break a}d=i[c+16>>2]}f=i[c+20>>2];if(d-f>>>0>>0){K[i[c+36>>2]](c,a,b)|0;return}b:{if(g[c+75|0]<0){break b}d=b;while(1){e=d;if(!e){break b}d=e+ -1|0;if(j[d+a|0]!=10){continue}break}if(K[i[c+36>>2]](c,a,e)>>>0>>0){break a}a=a+e|0;b=b-e|0;f=i[c+20>>2]}kp(f,a,b);i[c+20>>2]=i[c+20>>2]+b}}function Uo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H+ -64|0;H=d;e=1;a:{if(To(a,b,0)){break a}e=0;if(!b){break a}b=Vo(b,18792,18840);e=0;if(!b){break a}i[d+20>>2]=-1;i[d+16>>2]=a;i[d+12>>2]=0;i[d+8>>2]=b;lp(d+24|0,0,39);i[d+56>>2]=1;K[i[i[b>>2]+28>>2]](b,d+8|0,i[c>>2],1);a=i[d+32>>2];if((a|0)==1){i[c>>2]=i[d+24>>2]}e=(a|0)==1}a=e;H=d- -64|0;return a|0}function df(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;c=H-16|0;H=c;d=a+40|0;Ca(c+8|0,d,i[a+8>>2],i[b+4>>2]-i[b>>2]>>2);d=oa(d,i[a+8>>2],b,i[c+8>>2]);a:{if(!d){break a}i[c>>2]=0;e=i[c+8>>2];i[c+8>>2]=0;b=i[a+32>>2];i[a+32>>2]=e;if(!b){i[c>>2]=0;break a}Xb(b);a=i[c>>2];i[c>>2]=0;if(!a){break a}Xb(a)}a=i[c+8>>2];i[c+8>>2]=0;if(a){Xb(a)}H=c+16|0;return d|0}function re(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;c=H-16|0;H=c;d=a+40|0;Ca(c+8|0,d,i[a+8>>2],i[b+4>>2]-i[b>>2]>>2);d=_(d,i[a+8>>2],b,i[c+8>>2]);a:{if(!d){break a}i[c>>2]=0;e=i[c+8>>2];i[c+8>>2]=0;b=i[a+32>>2];i[a+32>>2]=e;if(!b){i[c>>2]=0;break a}Xb(b);a=i[c>>2];i[c>>2]=0;if(!a){break a}Xb(a)}a=i[c+8>>2];i[c+8>>2]=0;if(a){Xb(a)}H=c+16|0;return d|0}function xl(a,b,c){var d=0,e=0,f=0,h=0;d=H-16|0;H=d;a:{b:{if(!a){break b}e=pp(b);if(e>>>0>=4294967280){break a}c:{d:{if(e>>>0>=11){f=e+16&-16;h=ko(f);i[d+8>>2]=f|-2147483648;i[d>>2]=h;i[d+4>>2]=e;f=d;break d}g[d+11|0]=e;f=d;h=d;if(!e){break c}}kp(h,b,e)}g[e+h|0]=0;um(a,d,c);if(g[f+11|0]>-1){break b}ep(i[d>>2])}H=d+16|0;return(a|0)!=0}to();x()}function vl(a,b,c){var d=0,e=0,f=0,h=0;d=H-16|0;H=d;a:{b:{if(!a){break b}e=pp(b);if(e>>>0>=4294967280){break a}c:{d:{if(e>>>0>=11){f=e+16&-16;h=ko(f);i[d+8>>2]=f|-2147483648;i[d>>2]=h;i[d+4>>2]=e;f=d;break d}g[d+11|0]=e;f=d;h=d;if(!e){break c}}kp(h,b,e)}g[e+h|0]=0;pm(a,d,c);if(g[f+11|0]>-1){break b}ep(i[d>>2])}H=d+16|0;return(a|0)!=0}to();x()}function oj(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=13484;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;ep(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;ep(b)}return a|0}function Gb(a,b){var c=0,d=0,e=0,f=0;e=H-16|0;H=e;i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=1432;d=a+12|0;c=d;i[c>>2]=0;i[c+4>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;c=ko(4);i[c>>2]=b;f=d;d=c+4|0;i[f>>2]=d;f=a+8|0;i[f>>2]=d;i[a+4>>2]=c;i[e+12>>2]=-1;Hb(a+16|0,b+1|0,e+12|0);i[i[a+16>>2]+(b<<2)>>2]=(i[f>>2]-i[a+4>>2]>>2)+ -1;H=e+16|0}function Zo(a,b,c,d){g[a+53|0]=1;a:{if(i[a+4>>2]!=(c|0)){break a}g[a+52|0]=1;c=i[a+16>>2];if(!c){i[a+36>>2]=1;i[a+24>>2]=d;i[a+16>>2]=b;if((d|0)!=1|i[a+48>>2]!=1){break a}g[a+54|0]=1;return}if((b|0)==(c|0)){c=i[a+24>>2];if((c|0)==2){i[a+24>>2]=d;c=d}if(i[a+48>>2]!=1|(c|0)!=1){break a}g[a+54|0]=1;return}g[a+54|0]=1;i[a+36>>2]=i[a+36>>2]+1}}function Sn(a,b,c){var d=0,e=0;d=H-160|0;H=d;kp(d+8|0,18056,144);a:{b:{if(b+ -1>>>0>=2147483647){if(b){break b}b=1;a=d+159|0}i[d+52>>2]=a;i[d+28>>2]=a;e=-2-a|0;b=b>>>0>e>>>0?e:b;i[d+56>>2]=b;a=a+b|0;i[d+36>>2]=a;i[d+24>>2]=a;a=Tm(d+8|0,c);if(!b){break a}b=i[d+28>>2];g[b-((b|0)==i[d+24>>2])|0]=0;break a}i[4805]=61;a=-1}H=d+160|0;return a}function uj(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=13484;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;ep(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;ep(b)}ep(a)}function Jc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=1;a:{if((K[i[i[b>>2]+20>>2]](b)|0)<1){break a}c=0;while(1){e=zm(i[i[a+4>>2]+4>>2],K[i[i[b>>2]+24>>2]](b,d)|0);if((e|0)==-1){break a}if(!(g=b,h=Ij(i[a+4>>2],e),f=i[i[b>>2]+28>>2],K[f](g|0,h|0)|0)){break a}d=d+1|0;if((d|0)<(K[i[i[b>>2]+20>>2]](b)|0)){continue}break}c=1}return c|0}function Oc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(!Ib(a,b,c)){break a}if(!(K[i[i[a>>2]+52>>2]](a)|0)){break a}d=1;e=i[a+4>>2];if((e|0)==i[a+8>>2]){break a}c=0;while(1){d=c<<2;f=i[d+i[a+36>>2]>>2];d=K[i[i[f>>2]+8>>2]](f,b,i[d+e>>2])|0;if(!d){break a}c=c+1|0;e=i[a+4>>2];if(c>>>0>2]-e>>2>>>0){continue}break}}return d|0}function Kb(a,b){var c=0,d=0,e=0;c=H-16|0;H=c;g[c+15|0]=a&127;a:{if(a>>>0>=128){g[c+15|0]=a|128;e=i[b+20>>2];d=0;if((e|0)>0?1:(e|0)>=0?l[b+16>>2]>0:0){break a}ea(b,i[b+4>>2],c+15|0,c+16|0);d=Kb(a>>>7|0,b);break a}a=i[b+20>>2];if((a|0)<0?1:(a|0)<=0?l[b+16>>2]<=0:0){ea(b,i[b+4>>2],c+15|0,c+16|0);d=1;break a}d=0}a=d;H=c+16|0;return a}function _h(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H-16|0;H=d;i[a+4>>2]=b;b=i[b+64>>2];e=i[b>>2];b=i[b+4>>2];g[d+15|0]=0;Vh(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=i[a+4>>2];e=i[b+56>>2];b=i[b+52>>2];g[d+14|0]=0;Vh(a+36|0,e-b>>2,d+14|0);b=i[c+12>>2];i[a+16>>2]=i[c+8>>2];i[a+20>>2]=b;b=i[c+4>>2];i[a+8>>2]=i[c>>2];i[a+12>>2]=b;H=d+16|0}function pp(a){var b=0,c=0,d=0;a:{b:{b=a;if(!(b&3)){break b}if(!j[a|0]){return 0}while(1){b=b+1|0;if(!(b&3)){break b}if(j[b|0]){continue}break}break a}while(1){c=b;b=b+4|0;d=i[c>>2];if(!((d^-1)&d+ -16843009&-2139062144)){continue}break}if(!(d&255)){return c-a|0}while(1){d=j[c+1|0];b=c+1|0;c=b;if(d){continue}break}}return b-a|0}function Xd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=H-16|0;H=c;i[c+12>>2]=i[a+12>>2];d=i[b+20>>2];e=d;f=i[b+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ea(b,i[b+4>>2],c+12|0,c+16|0);f=i[b+16>>2];e=i[b+20>>2]}i[c+8>>2]=i[a+16>>2];if((e|0)<0?1:(e|0)<=0?f>>>0<=0:0){ea(b,i[b+4>>2],c+8|0,c+12|0)}tf(a+112|0,b);H=c+16|0;return 1} +function Zg(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=F-32|0;F=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -131072|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -114688|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+8257536|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1073872896|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Tj(j);Jg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;jp(k+h|0,h,c);hp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Uj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){bp(a)}a=i[f>>2];if(a){i[f+4>>2]=a;bp(a)}F=j+32|0}function $g(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=F-32|0;F=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -262144|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -245760|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+8126464|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1074003968|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Tj(j);Jg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;jp(k+h|0,h,c);hp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Uj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){bp(a)}a=i[f>>2];if(a){i[f+4>>2]=a;bp(a)}F=j+32|0}function og(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=F-32|0;F=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -16384|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;c=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;g[e|0]=c;g[e+1|0]=c>>>8;c=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+8372224|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;c=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1073758208|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;c=i[e>>2]+4|0;break a}c=i[a+28>>2]}f=c>>31;e=f;d=c;f=Tj(j);Jg(d,e,f);k=i[f+4>>2]-i[f>>2]|0;jp(k+h|0,h,d);hp(h,i[f>>2],k);c=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=d+k|0;if(b>>>0>>0){a=a+1|0}d=b;b=l+d|0;Uj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){bp(a)}a=i[f>>2];if(a){i[f+4>>2]=a;bp(a)}F=j+32|0}function Ig(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,m=0,n=0,o=0;d=F-16|0;F=d;Jb(i[a+12>>2],b);a:{if(!i[a+12>>2]){break a}m=d+14|0;n=d+15|0;o=d+16|0;while(1){b:{c:{k=i[a>>2];f=i[k+(h<<3)>>2];if(f>>>0>=64){c=1;j=1;e=1;if(f>>>0<16384){break c}if(f>>>0<=4194303){j=2;e=2;break c}break a}j=1;c=0;e=0;if(f){break c}while(1){d:{if(i[(k+(c+h<<3)|0)+8>>2]){f=c;break d}f=63;c=c+1|0;if((c|0)!=63){continue}}break}g[d+15|0]=f<<2|3;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],d+15|0,o)}h=f+h|0;break b}g[d+14|0]=f<<2|e;e=i[b+20>>2];if((e|0)<0?1:(e|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],d+14|0,n)}e=0;if(!c){break b}while(1){e=e+1|0;g[d+13|0]=f>>>(e<<3)+ -2;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],d+13|0,m)}if((e|0)!=(j|0)){continue}break}}h=h+1|0;if(h>>>0>2]){continue}break}}F=d+16|0}function gm(a,b,c){var d=0,e=0,f=0,g=0;Jb(i[c+8>>2],b);d=i[c>>2];g=c+4|0;if((d|0)!=(g|0)){while(1){f=d;if(!hm(b,d+16|0)){return}d=i[f+32>>2]-i[f+28>>2]|0;Jb(d,b);e=i[b+20>>2];if((e|0)<0?1:(e|0)<=0?l[b+16>>2]<=0:0){e=i[f+28>>2];ca(b,i[b+4>>2],e,e+d|0)}e=i[f+4>>2];a:{if(!e){d=i[f+8>>2];if((f|0)==i[d>>2]){break a}e=f+8|0;while(1){f=i[e>>2];e=f+8|0;d=i[f+8>>2];if((f|0)!=i[d>>2]){continue}break}break a}while(1){d=e;e=i[d>>2];if(e){continue}break}}if((d|0)!=(g|0)){continue}break}}Jb(i[c+20>>2],b);d=i[c+12>>2];f=c+16|0;if((d|0)==(f|0)){return}while(1){c=d;if(!hm(b,d+16|0)){return}gm(a,b,i[c+28>>2]);e=i[c+4>>2];b:{if(!e){d=i[c+8>>2];if((c|0)==i[d>>2]){break b}e=c+8|0;while(1){c=i[e>>2];e=c+8|0;d=i[c+8>>2];if((c|0)!=i[d>>2]){continue}break}break b}while(1){d=e;e=i[d>>2];if(e){continue}break}}if((d|0)!=(f|0)){continue}break}}function Ej(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{b=i[a+4>>2];b=i[b+12>>2]-i[b+8>>2]|0;if((b|0)<=0){b=b>>2;break a}while(1){if(I[i[i[a>>2]+36>>2]](a,c)|0){c=c+1|0;b=i[a+4>>2];b=i[b+12>>2]-i[b+8>>2]>>2;if((c|0)<(b|0)){continue}break a}break}return 0}g=a+20|0;d=i[a+20>>2];c=i[a+24>>2]-d>>2;b:{if(b>>>0>c>>>0){Bd(g,b-c|0);break b}if(b>>>0>=c>>>0){break b}i[a+24>>2]=d+(b<<2)}b=i[a+8>>2];c=i[a+12>>2];if((b|0)==(c|0)){return 1}a=c-b|0;d=(a|0)>-1?a:-1;c=b-c|0;a=o((d|0)<1?d:1,((c|0)>(a|0)?c:a)>>>2|0);h=a>>>0>1?a:1;c=0;while(1){a=i[(c<<2)+b>>2];e=i[a+8>>2];d=i[a+4>>2];if((e|0)!=(d|0)){a=e-d|0;f=(a|0)>-1?a:-1;e=d-e|0;a=o((f|0)<1?f:1,((e|0)>(a|0)?e:a)>>>2|0);e=a>>>0>1?a:1;f=i[g>>2];a=0;while(1){i[f+(i[d+(a<<2)>>2]<<2)>>2]=c;a=a+1|0;if((e|0)!=(a|0)){continue}break}}c=c+1|0;if((h|0)!=(c|0)){continue}break}return 1}function Aj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=F-16|0;F=e;a:{b:{if(!(I[i[i[a>>2]+32>>2]](a)|0)){break b}c=i[a+44>>2];d=i[a+12>>2];b=i[a+8>>2];g[e+15|0]=d-b>>>2;f=i[c+20>>2];if((f|0)<0?1:(f|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],e+15|0,e+16|0);d=i[a+12>>2];b=i[a+8>>2]}if((b|0)!=(d|0)){while(1){c=i[b>>2];if(!(I[i[i[c>>2]+8>>2]](c,a,i[a+4>>2])|0)){break b}b=b+4|0;if((d|0)!=(b|0)){continue}break}}if(!Bj(a)){break b}b=i[a+32>>2];c=i[a+36>>2];if((b|0)==(c|0)){break a}while(1){if(!(I[i[i[a>>2]+40>>2]](a,i[b>>2])|0)){break b}b=b+4|0;if((c|0)!=(b|0)){continue}break}b=i[a+32>>2];c=i[a+36>>2];if((b|0)==(c|0)){break a}while(1){d=i[i[a+8>>2]+(i[b>>2]<<2)>>2];if(!(I[i[i[d>>2]+12>>2]](d,i[a+44>>2])|0)){break b}b=b+4|0;if((c|0)!=(b|0)){continue}break}break a}F=e+16|0;return 0}a=I[i[i[a>>2]+44>>2]](a)|0;F=e+16|0;return a|0}function Mh(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=11192;i[a+72>>2]=0;i[a+76>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+88>>2]=0;i[a+92>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=1065353216;i[a+156>>2]=0;i[a+160>>2]=0;i[a+148>>2]=0;i[a+152>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+164>>2]=-1;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;mf(a+200|0);Tj(a+232|0);g[a+288|0]=0;i[a+280>>2]=0;i[a+284>>2]=0;i[a+272>>2]=0;i[a+276>>2]=0;i[a+264>>2]=0;i[a+268>>2]=0}function lf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=F-16|0;F=e;a:{b:{d=i[a+4>>2];c:{if((d|0)!=i[a+8>>2]){i[d>>2]=i[a+12>>2];c=d+4|0;i[a+4>>2]=c;break c}g=i[a>>2];h=d-g|0;f=h>>2;c=f+1|0;if(c>>>0>=1073741824){break b}j=h>>1;c=f>>>0<536870911?j>>>0>>0?c:j:1073741823;d=0;d:{if(!c){break d}if(c>>>0>=1073741824){break a}d=ho(c<<2)}f=d+(f<<2)|0;i[f>>2]=i[a+12>>2];j=d+(c<<2)|0;c=f+4|0;if((h|0)>=1){hp(d,g,h)}i[a+8>>2]=j;i[a+4>>2]=c;i[a>>2]=d;if(!g){break c}bp(g);c=i[a+4>>2]}d=i[a>>2];i[e+12>>2]=c-d;c=i[b+20>>2];e:{if((c|0)>0?1:(c|0)>=0?l[b+16>>2]>0:0){break e}ca(b,i[b+4>>2],e+12|0,e+16|0);d=i[a>>2];c=i[b+20>>2];if((c|0)>0?1:(c|0)>=0?l[b+16>>2]>0:0){break e}ca(b,i[b+4>>2],d,i[e+12>>2]+d|0);d=i[a>>2]}i[a+12>>2]=0;i[a+16>>2]=0;i[a+4>>2]=d;F=e+16|0;return}Ho();x()}za(9968);x()}function qf(a,b){var c=0,d=0,e=0,f=0;d=i[a>>2];a:{if(b){b=d;c=b;e=i[b+12>>2];d=i[b+8>>2]+1|0;if(d>>>0<1){e=e+1|0}i[c+8>>2]=d;i[b+12>>2]=e;b=i[a+28>>2];i[a+24>>2]=i[a+24>>2]|1<>2];d=i[b>>2]+1|0;if(d>>>0<1){e=e+1|0}i[c>>2]=d;i[b+4>>2]=e;b=i[a+28>>2]}b=b+1|0;i[a+28>>2]=b;b:{c:{if((b|0)==32){b=i[a+16>>2];d:{if((b|0)!=i[a+20>>2]){i[b>>2]=i[a+24>>2];i[a+16>>2]=b+4;break d}d=i[a+12>>2];e=b-d|0;f=e>>2;c=f+1|0;if(c>>>0>=1073741824){break c}b=e>>1;c=f>>>0<536870911?b>>>0>>0?c:b:1073741823;b=0;e:{if(!c){break e}if(c>>>0>=1073741824){break b}b=ho(c<<2)}f=b+(f<<2)|0;i[f>>2]=i[a+24>>2];c=b+(c<<2)|0;f=f+4|0;if((e|0)>=1){hp(b,d,e)}i[a+20>>2]=c;i[a+16>>2]=f;i[a+12>>2]=b;if(!d){break d}bp(d)}i[a+24>>2]=0;i[a+28>>2]=0}return}Ho();x()}za(10036);x()}function Tc(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=F-16|0;F=e;g=a+36|0;b=i[a+8>>2]-i[a+4>>2]>>2;c=i[a+40>>2];f=i[a+36>>2];d=c-f>>2;a:{if(b>>>0>d>>>0){Uc(g,b-d|0);break a}if(b>>>0>=d>>>0){break a}d=f+(b<<2)|0;if((d|0)!=(c|0)){while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}}i[a+40>>2]=d}if(i[a+8>>2]==i[a+4>>2]){c=1}else{c=0;while(1){I[i[i[a>>2]+56>>2]](e+8|0,a,c);b=i[a+36>>2];d=i[e+8>>2];i[e+8>>2]=0;f=c<<2;h=f+b|0;b=i[h>>2];i[h>>2]=d;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[e+8>>2];i[e+8>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[f+i[g>>2]>>2];if(b){if(!(!(i[i[a+48>>2]+(c>>>3&536870908)>>2]>>>c&1)|c>>>0>=l[a+52>>2])){Gc(b)}c=c+1|0;if(c>>>0>2]-i[a+4>>2]>>2>>>0){continue}}break}c=(b|0)!=0}F=e+16|0;return c|0}function Ib(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;d=F-16|0;F=d;e=a+8|0;Jb(i[e>>2]-i[a+4>>2]>>2,b);c=i[a+4>>2];if((c|0)!=i[e>>2]){k=d+13|0;l=d+14|0;m=d+15|0;n=d+16|0;while(1){f=i[i[i[a+32>>2]+8>>2]+(i[(h<<2)+c>>2]<<2)>>2];g[d+15|0]=i[f+56>>2];c=i[b+20>>2];e=i[b+16>>2];if((c|0)<0?1:(c|0)<=0?e>>>0<=0:0){ca(b,i[b+4>>2],d+15|0,n);e=i[b+16>>2];c=i[b+20>>2]}g[d+14|0]=i[f+28>>2];if((c|0)<0?1:(c|0)<=0?e>>>0<=0:0){ca(b,i[b+4>>2],d+14|0,m);e=i[b+16>>2];c=i[b+20>>2]}g[d+13|0]=j[f+24|0];if((c|0)<0?1:(c|0)<=0?e>>>0<=0:0){ca(b,i[b+4>>2],d+13|0,l);e=i[b+16>>2];c=i[b+20>>2]}g[d+12|0]=j[f+32|0];if((c|0)<0?1:(c|0)<=0?e>>>0<=0:0){ca(b,i[b+4>>2],d+12|0,k)}Jb(i[f+60>>2],b);h=h+1|0;c=i[a+4>>2];if(h>>>0>2]-c>>2>>>0){continue}break}}F=d+16|0;return 1}function me(a){var b=0,c=0,d=0;b=i[a+8>>2];d=i[a>>2];a:{if(j[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;if((b|0)==-1){break e}b=i[i[d+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}i[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;i[a+8>>2]=b;if((b|0)!=-1){break b}}c=i[a+4>>2];b=-1;f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;b=-1;if((c|0)==-1){break f}c=i[i[d+12>>2]+(c<<2)>>2];b=-1;if((c|0)==-1){break f}b=c+ -1|0;if((c>>>0)%3|0){break f}b=c+2|0}g[a+12|0]=0;i[a+8>>2]=b;return}if((b|0)!=i[a+4>>2]){break a}i[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;c=-1;if((b|0)==-1){break g}b=i[i[d+12>>2]+(b<<2)>>2];c=-1;if((b|0)==-1){break g}c=b+ -1|0;if((b>>>0)%3|0){break g}c=b+2|0}i[a+8>>2]=c}}function jp(a,b,c){var d=0;a:{if((a|0)==(b|0)){break a}if((b-a|0)-c>>>0<=0-(c<<1)>>>0){return hp(a,b,c)}d=(a^b)&3;b:{c:{if(a>>>0>>0){if(d){d=a;break b}if(!(a&3)){d=a;break c}d=a;while(1){if(!c){break a}g[d|0]=j[b|0];b=b+1|0;c=c+ -1|0;d=d+1|0;if(d&3){continue}break}break c}d:{if(d){break d}if(a+c&3){while(1){if(!c){break a}c=c+ -1|0;d=c+a|0;g[d|0]=j[b+c|0];if(d&3){continue}break}}if(c>>>0<=3){break d}while(1){c=c+ -4|0;i[c+a>>2]=i[b+c>>2];if(c>>>0>3){continue}break}}if(!c){break a}while(1){c=c+ -1|0;g[c+a|0]=j[b+c|0];if(c){continue}break}break a}if(c>>>0<=3){break b}while(1){i[d>>2]=i[b>>2];b=b+4|0;d=d+4|0;c=c+ -4|0;if(c>>>0>3){continue}break}}if(!c){break a}while(1){g[d|0]=j[b|0];d=d+1|0;b=b+1|0;c=c+ -1|0;if(c){continue}break}}return a}function Gm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=i[c>>2];l=i[c+4>>2];if((e|0)!=(l|0)){p=i[b>>2];while(1){c=i[e>>2];m=c<<2;f=i[m+p>>2];if(f>>>0>=d>>>0){d=i[a+12>>2];h=i[a+8>>2];b=d-h|0;if((b|0)>=1){d=h-d|0;b=((d|0)>(b|0)?d:b)>>>2|0;q=b>>>0>1?b:1;d=0;while(1){b=c;n=i[(d<<2)+h>>2];o=i[n+68>>2];r=o+(f<<2)|0;if(!j[n+84|0]){b=i[m+o>>2]}i[r>>2]=b;d=d+1|0;if((q|0)!=(d|0)){continue}break}}d=f+1|0}e=e+4|0;if((l|0)!=(e|0)){continue}break}}e=i[a+12>>2];b=i[a+8>>2];if((e-b|0)>0){while(1){c=i[(k<<2)+b>>2];g[c+84|0]=0;h=i[c+68>>2];f=i[c+72>>2]-h>>2;a:{if(d>>>0>f>>>0){Xa(c+68|0,d-f|0,16924);b=i[a+8>>2];e=i[a+12>>2];break a}if(d>>>0>=f>>>0){break a}i[c+72>>2]=h+(d<<2)}k=k+1|0;if((k|0)>2){continue}break}}}function Uc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}a:{b:{c:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){d=d-g|0;h=d>>1;e=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(e){if(e>>>0>=1073741824){break c}j=ho(e<<2)}d=(f<<2)+j|0;f=b<<2;b=ip(d,0,f);f=b+f|0;e=(e<<2)+j|0;if((c|0)==(g|0)){break b}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;d=d+ -4|0;i[d>>2]=b;if((c|0)!=(g|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){I[i[i[a>>2]+4>>2]](a)}if((b|0)!=(c|0)){continue}break}break a}Ho();x()}za(2172);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){bp(c)}}function Ff(a,b,c,d){var e=0,f=0,h=0,k=0;e=F-32|0;F=e;i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{if((d|0)<1){break a}Co(e,m[c>>2]);f=j[e+11|0];h=f<<24>>24<0;Ao(e+16|0,h?i[e>>2]:e,h?i[e+4>>2]:f);if(g[e+11|0]<=-1){bp(i[e>>2])}f=1;if((d|0)==1){break a}while(1){Ao(e+16|0,10466,mp(10466));Co(e,m[(f<<2)+c>>2]);h=j[e+11|0];k=h<<24>>24<0;Ao(e+16|0,k?i[e>>2]:e,k?i[e+4>>2]:h);if(g[e+11|0]<=-1){bp(i[e>>2])}f=f+1|0;if((f|0)!=(d|0)){continue}break}}c=Of(a,e,b);f=i[c>>2];if(!f){f=ho(40);ro(f+16|0,b);i[f+36>>2]=0;i[f+28>>2]=0;i[f+32>>2]=0;i[f+8>>2]=i[e>>2];i[f>>2]=0;i[f+4>>2]=0;i[c>>2]=f;d=i[i[a>>2]>>2];b=f;b:{if(!d){break b}i[a>>2]=d;b=i[c>>2]}Kf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}to(f+28|0,e+16|0);if(g[e+27|0]<=-1){bp(i[e+16>>2])}F=e+32|0}function Dl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=i[a+8>>2];d=i[a+4>>2];if((e-d|0)/12>>>0>=b>>>0){f=a;if(b){a=o(b,12)+d|0;while(1){b=i[c+4>>2];i[d>>2]=i[c>>2];i[d+4>>2]=b;i[d+8>>2]=i[c+8>>2];d=d+12|0;if((a|0)!=(d|0)){continue}break}d=a}i[f+4>>2]=d;return}a:{g=i[a>>2];j=d-g|0;h=(j|0)/12|0;f=h+b|0;if(f>>>0<357913942){d=o(b,12);e=(e-g|0)/12|0;k=e<<1;e=e>>>0<178956970?k>>>0>>0?f:k:357913941;f=0;b:{if(!e){break b}if(e>>>0>=357913942){break a}f=ho(o(e,12))}b=f+o(h,12)|0;h=d+b|0;d=b;while(1){k=i[c+4>>2];i[d>>2]=i[c>>2];i[d+4>>2]=k;i[d+8>>2]=i[c+8>>2];d=d+12|0;if((h|0)!=(d|0)){continue}break}c=f+o(e,12)|0;b=b+o((j|0)/-12|0,12)|0;if((j|0)>=1){hp(b,g,j)}i[a+8>>2]=c;i[a+4>>2]=h;i[a>>2]=b;if(g){bp(g)}return}Ho();x()}za(16382);x()}function $f(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=ho(32);c=i[b>>2];i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=c;f=d+24|0;i[d+20>>2]=f;c=i[b+4>>2];g=b+8|0;if((c|0)!=(g|0)){h=d+20|0;while(1){e=c;b=c+16|0;Mf(h,f,b,b);b=i[c+4>>2];a:{if(!b){c=i[e+8>>2];if((e|0)==i[c>>2]){break a}b=e+8|0;while(1){e=i[b>>2];b=e+8|0;c=i[e+8>>2];if((e|0)!=i[c>>2]){continue}break}break a}while(1){c=b;b=i[b>>2];if(b){continue}break}}if((c|0)!=(g|0)){continue}break}}b=i[a+4>>2];b:{c:{if(b){e=i[d+16>>2];while(1){d:{if((e|0)>2]){c=i[b>>2];if(!c){break c}break d}c=i[b+4>>2];if(c){break d}c=b+4|0;break b}b=c;continue}}b=a+4|0}c=b}i[d+8>>2]=b;i[d>>2]=0;i[d+4>>2]=0;i[c>>2]=d;b=i[i[a>>2]>>2];if(b){i[a>>2]=b;d=i[c>>2]}Kf(i[a+4>>2],d);i[a+8>>2]=i[a+8>>2]+1}function na(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,n=0,o=0,r=0,s=0,t=0,v=0,w=p(0),x=0,y=p(0),z=0,A=0,B=0,C=0,D=0;n=F-16|0;F=n;h=i[a+4>>2];o=i[d+48>>2];d=i[i[d>>2]>>2];f=g[b+24|0];k=dk(n+8|0);ek(k,m[a+20>>2],-1<>2];z=i[b>>2];o=i[b+48>>2];A=i[b+68>>2];k=i[b+44>>2];v=i[b+40>>2];B=v;d=0;C=j[b+84|0];D=(f|0)<1;while(1){b=l;e=h;r=i[z>>2];s=v;t=k;if(!C){b=i[(l<<2)+A>>2]}b=up(s,t,b,0)+o|0;s=hp(e,b+r|0,B);if(!D){t=i[a+8>>2];b=0;while(1){r=(d<<2)+x|0;e=b<<2;w=p(u(p(p(y*p(m[e+s>>2]-m[e+t>>2]))+p(.5))));a:{if(p(q(w))>2]=e;d=d+1|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}l=l+1|0;if((l|0)!=(c|0)){continue}break}}bp(h);F=n+16|0}function cd(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;e=F-32|0;F=e;h=i[c>>2];g=i[b>>2];j=i[c+4>>2];c=i[b+4>>2];b=(h-g<<3)+(j-c|0)|0;d=i[a+4>>2];f=b+d|0;i[a+4>>2]=f;a:{if(!(!d|(f+ -1^d+ -1)>>>0>31)){a=i[a>>2];break a}a=i[a>>2];if(f>>>0<=32){i[a>>2]=0;break a}i[(f+ -1>>>3&536870908)+a>>2]=0}a=(d>>>3&536870908)+a|0;d=d&31;b:{if((d|0)==(c|0)){if((b|0)<1){break b}if(c){f=32-c|0;d=(b|0)<(f|0)?b:f;f=-1<>>f-d;i[a>>2]=i[a>>2]&(f^-1)|f&i[g>>2];b=b-d|0;g=g+4|0;a=a+(c+d>>>3&536870908)|0}d=a;c=(b|0)/32|0;a=c<<2;d=jp(d,g,a);b=b-(c<<5)|0;if((b|0)<1){break b}c=a+d|0;b=-1>>>32-b|0;i[c>>2]=i[c>>2]&(b^-1)|b&i[a+g>>2];break b}i[e+28>>2]=c;i[e+24>>2]=g;i[e+20>>2]=j;i[e+16>>2]=h;i[e+12>>2]=d;i[e+8>>2]=a;dd(e,e+24|0,e+16|0,e+8|0)}F=e+32|0}function ip(a,b,c){var d=0,e=0,f=0,h=0;a:{if(!c){break a}d=a+c|0;g[d+ -1|0]=b;g[a|0]=b;if(c>>>0<3){break a}g[d+ -2|0]=b;g[a+1|0]=b;g[d+ -3|0]=b;g[a+2|0]=b;if(c>>>0<7){break a}g[d+ -4|0]=b;g[a+3|0]=b;if(c>>>0<9){break a}d=0-a&3;e=d+a|0;b=o(b&255,16843009);i[e>>2]=b;c=c-d&-4;d=c+e|0;i[d+ -4>>2]=b;if(c>>>0<9){break a}i[e+8>>2]=b;i[e+4>>2]=b;i[d+ -8>>2]=b;i[d+ -12>>2]=b;if(c>>>0<25){break a}i[e+24>>2]=b;i[e+20>>2]=b;i[e+16>>2]=b;i[e+12>>2]=b;i[d+ -16>>2]=b;i[d+ -20>>2]=b;i[d+ -24>>2]=b;i[d+ -28>>2]=b;h=e&4|24;c=c-h|0;if(c>>>0<32){break a}d=b;f=b;b=e+h|0;while(1){i[b+24>>2]=f;i[b+28>>2]=d;i[b+16>>2]=f;i[b+20>>2]=d;i[b+8>>2]=f;i[b+12>>2]=d;i[b>>2]=f;i[b+4>>2]=d;b=b+32|0;c=c+ -32|0;if(c>>>0>31){continue}break}}return a}function Bm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}a:{b:{c:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){d=d-g|0;h=d>>1;e=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(e){if(e>>>0>=1073741824){break c}j=ho(e<<2)}d=(f<<2)+j|0;f=b<<2;b=ip(d,0,f);f=b+f|0;e=(e<<2)+j|0;if((c|0)==(g|0)){break b}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;d=d+ -4|0;i[d>>2]=b;if((c|0)!=(g|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){Wb(a)}if((b|0)!=(c|0)){continue}break}break a}Ho();x()}za(16928);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){bp(c)}}function Wj(a){var b=0,c=0,d=0,e=0,f=0,h=0,k=0;f=F-32|0;F=f;c=i[a+16>>2];b=i[a+20>>2];if((b|0)>0?1:(b|0)>=0?c>>>0>=1:0){b=i[i[a+12>>2]+4>>2]+7|0;if(b>>>0<7){e=1}d=b;b=e>>>3|0;e=e<<29|d>>>3;d=b;if(j[a+24|0]){h=i[a+4>>2];g[f+24|0]=0;b=f;i[b+16>>2]=0;i[b+20>>2]=0;i[b+8>>2]=0;i[b+12>>2]=0;i[b>>2]=0;i[b+4>>2]=0;Jg(e,d,b);c=h-c|0;h=c+ -8|0;d=i[b+4>>2]-i[b>>2]|0;jp(h+d|0,c,e);hp(h,i[b>>2],d);b=a;k=b;c=i[b+20>>2];d=8-d|0;h=d+i[b+16>>2]|0;if(h>>>0>>0){c=c+1|0}i[k+16>>2]=h;i[b+20>>2]=c;b=i[f+12>>2];i[f+12>>2]=0;if(b){bp(b)}b=i[f>>2];if(b){i[f+4>>2]=b;bp(b)}c=i[a+16>>2]}d=i[a>>2];b=i[a+4>>2]-d|0;e=e-c|0;c=b+e|0;a:{if(c>>>0>b>>>0){Qj(a,e);break a}if(c>>>0>=b>>>0){break a}i[a+4>>2]=c+d}i[a+16>>2]=0;i[a+20>>2]=0}F=f+32|0}function ji(a,b){var c=0,d=0,e=0,f=0,g=0;d=F-16|0;F=d;i[d>>2]=b;c=-1;a:{if((b|0)==-1){i[d+4>>2]=-1;break a}c=b+1|0;i[d+4>>2]=(c>>>0)%3|0?c:b+ -2|0;if((b>>>0)%3|0){c=b+ -1|0;break a}c=b+2|0}i[d+8>>2]=c;c=(b|0)==-1?-1:(b>>>0)/3|0;e=i[a+28>>2]+(c>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<>2]+12>>2]+(b<<2)>>2];if((c|0)==-1){break b}c=(c>>>0)/3|0;if(i[i[a+28>>2]+(c>>>3&268435452)>>2]>>>c&1){break b}c=i[a+172>>2];if((c|0)==i[a+176>>2]){break b}e=b>>>5|0;g=1<>2]+(b<<5)|0,(i[i[(o(b,136)+c|0)+4>>2]+(e<<2)>>2]&g)!=0);b=b+1|0;c=i[a+172>>2];if(b>>>0<(i[a+176>>2]-c|0)/136>>>0){continue}break}}f=f+1|0;if((f|0)!=3){b=i[(f<<2)+d>>2];continue}break}F=d+16|0}function fi(a,b,c){var d=0,e=0,f=0;a:{b:{c:{b=o(b,3);if((b|0)==-1){break c}e=i[a+12>>2];f=i[e+12>>2];d=b<<2;if(i[f+d>>2]==-1){break b}a=i[a+152>>2];e=i[e>>2];if(i[a+(i[e+d>>2]<<2)>>2]!=-1){break a}d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0;if((b|0)==-1){break c}d=b<<2;if(i[d+f>>2]==-1){break b}if(i[a+(i[d+e>>2]<<2)>>2]!=-1){break a}d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0;if((b|0)==-1){break c}d=b<<2;if(i[d+f>>2]==-1){break b}if(i[a+(i[d+e>>2]<<2)>>2]!=-1){break a}a=b+1|0;i[c>>2]=(a>>>0)%3|0?a:b+ -2|0;return 1}b=-1}i[c>>2]=b;return 0}while(1){d:{a=b;b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)==-1){break d}b=i[(b<<2)+f>>2];if((b|0)==-1){break d}b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)!=-1){continue}}break}i[c>>2]=a+((a>>>0)%3|0?-1:2);return 0}function hn(a,b,c,d,e,f){var g=0;g=F-80|0;F=g;a:{if((f|0)>=16384){yn(g+32|0,b,c,d,e,0,0,0,2147352576);d=i[g+40>>2];e=i[g+44>>2];b=i[g+32>>2];c=i[g+36>>2];if((f|0)<32767){f=f+ -16383|0;break a}yn(g+16|0,b,c,d,e,0,0,0,2147352576);f=((f|0)<49149?f:49149)+ -32766|0;d=i[g+24>>2];e=i[g+28>>2];b=i[g+16>>2];c=i[g+20>>2];break a}if((f|0)>-16383){break a}yn(g- -64|0,b,c,d,e,0,0,0,65536);d=i[g+72>>2];e=i[g+76>>2];b=i[g+64>>2];c=i[g+68>>2];if((f|0)>-32765){f=f+16382|0;break a}yn(g+48|0,b,c,d,e,0,0,0,65536);f=((f|0)>-49146?f:-49146)+32764|0;d=i[g+56>>2];e=i[g+60>>2];b=i[g+48>>2];c=i[g+52>>2]}yn(g,b,c,d,e,0,0,0,f+16383<<16);b=i[g+12>>2];i[a+8>>2]=i[g+8>>2];i[a+12>>2]=b;b=i[g+4>>2];i[a>>2]=i[g>>2];i[a+4>>2]=b;F=g+80|0}function ag(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;h=F-16|0;F=h;i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;a:{b:{g=c+1|0;if(g>>>0>=c>>>0){if(g>>>0>=1073741824){break b}j=ho(g<<2);ip(j,0,(c<<2)+4|0)}if((b|0)>0){while(1){g=(i[(f<<2)+a>>2]<<2)+j|0;i[g>>2]=i[g>>2]+1;f=f+1|0;if((f|0)!=(b|0)){continue}break}}f=0;if((c|0)<0){b=0;break a}k=+(b|0);b=0;while(1){a=i[(f<<2)+j>>2];if((a|0)>=1){l=e;e=+(a|0);e=l+ep(e/k)*e;b=b+1|0}a=(c|0)==(f|0);f=f+1|0;if(!a){continue}break}break a}Ho();x()}if(d){i[d>>2]=b}if(j){bp(j)}e=-e;c:{if(q(e)<0x8000000000000000){b=q(e)>=1?e>0?~~s(u(e*2.3283064365386963e-10),4294967295)>>>0:~~v((e- +(~~e>>>0>>>0))*2.3283064365386963e-10)>>>0:0;a=~~e>>>0;break c}b=-2147483648;a=0}F=h+16|0;H=b;return a}function gj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+56>>2]-i[c+52>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];g=c<<2;c=ho(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){hp(c,d,e)}i[b+8>>2]=g;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}bp(d)}e=a+8|0;b=i[a+76>>2];c:{if(b){c=i[b>>2];if((c|0)==i[b+4>>2]){return 1}b=0;while(1){d=hj(e,i[(b<<2)+c>>2]);if(!d){break c}f=i[a+76>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break c}d=1;a=i[i[a+12>>2]+64>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break c}b=0;while(1){d=hj(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break c}if(d){continue}break}}return d|0}za(11708);x()}function Rh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;h=F-16|0;F=h;a:{b:{c=i[a+8>>2];c:{if((c|0)!=i[a+12>>2]){i[c>>2]=b;i[a+8>>2]=c+4;break c}e=i[a+4>>2];f=c-e|0;g=f>>2;d=g+1|0;if(d>>>0>=1073741824){break b}c=f>>1;d=g>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;d:{if(!d){break d}if(d>>>0>=1073741824){break a}c=ho(d<<2)}g=c+(g<<2)|0;i[g>>2]=b;d=c+(d<<2)|0;g=g+4|0;if((f|0)>=1){hp(c,e,f)}i[a+12>>2]=d;i[a+8>>2]=g;i[a+4>>2]=c;if(!e){break c}bp(e)}c=i[a+16>>2];e=i[a+20>>2]-c>>2;e:{if((e|0)>(b|0)){break e}i[h+12>>2]=-1;f=b+1|0;if(f>>>0>e>>>0){c=a+16|0;Gb(c,f-e|0,h+12|0);c=i[c>>2];break e}if(f>>>0>=e>>>0){break e}i[a+20>>2]=(f<<2)+c}i[(b<<2)+c>>2]=(i[a+8>>2]-i[a+4>>2]>>2)+ -1;F=h+16|0;return}Ho();x()}za(11708);x()}function km(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=ho(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;d=i[a+4>>2];c=i[a>>2];if((d|0)==(c|0)){break b}while(1){d=d+ -4|0;g=i[d>>2];i[d>>2]=0;b=b+ -4|0;i[b>>2]=g;if((d|0)!=(c|0)){continue}break}i[a+8>>2]=e;d=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=b;if((d|0)==(c|0)){break a}while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){yk(a+12|0,i[a+16>>2]);zk(a,i[a+4>>2]);bp(a)}if((d|0)!=(c|0)){continue}break}break a}Ho();x()}za(16788);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){bp(c)}}function of(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+8>>2];d=i[a>>2];if(c-d>>3>>>0>=2){e=i[a+4>>2];f=e-d>>3;g=f>>>0<2?f:2;if(g){c=d;while(1){h=i[b+4>>2];i[c>>2]=i[b>>2];i[c+4>>2]=h;c=c+8|0;g=g+ -1|0;if(g){continue}break}}if(f>>>0<2){c=a;a=2-f|0;if(a){a=(a<<3)+e|0;while(1){d=i[b+4>>2];i[e>>2]=i[b>>2];i[e+4>>2]=d;e=e+8|0;if((a|0)!=(e|0)){continue}break}}else{a=e}i[c+4>>2]=a;return}i[a+4>>2]=d+16;return}if(d){i[a+4>>2]=d;bp(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;c=0}d=c>>2;c=c>>3>>>0<268435455?d>>>0<2?2:d:536870911;if(c>>>0<536870912){d=c<<3;c=ho(d);i[a>>2]=c;i[a+8>>2]=c+d;d=c+16|0;e=i[b>>2];b=i[b+4>>2];while(1){i[c>>2]=e;i[c+4>>2]=b;c=c+8|0;if((d|0)!=(c|0)){continue}break}i[a+4>>2]=d;return}Ho();x()}function Vm(a,b,c){a:{if(b>>>0>20){break a}b:{switch(b+ -9|0){case 0:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=i[b>>2];return;case 1:b=i[c>>2];i[c>>2]=b+4;b=i[b>>2];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 2:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=i[b>>2];i[a+4>>2]=0;return;case 3:b=i[c>>2]+7&-8;i[c>>2]=b+8;c=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=c;return;case 4:b=i[c>>2];i[c>>2]=b+4;b=h[b>>1];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 5:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=k[b>>1];i[a+4>>2]=0;return;case 6:b=i[c>>2];i[c>>2]=b+4;b=g[b|0];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 7:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=j[b|0];i[a+4>>2]=0;return;case 8:b=i[c>>2]+7&-8;i[c>>2]=b+8;n[a>>3]=n[b>>3];return;case 9:break b;default:break a}}I[369](a,c)}}function aj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+28>>2]-i[c+24>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];g=c<<2;c=ho(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){hp(c,d,e)}i[b+8>>2]=g;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}bp(d)}e=a+8|0;b=i[a+76>>2];c:{if(b){c=i[b>>2];if((c|0)==i[b+4>>2]){return 1}b=0;while(1){d=bj(e,i[(b<<2)+c>>2]);if(!d){break c}f=i[a+76>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break c}d=1;a=i[a+12>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break c}b=0;while(1){d=bj(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break c}if(d){continue}break}}return d|0}za(11708);x()}function rl(a,b,c){var d=0,e=0,f=0,h=0,k=0;f=c-b|0;e=i[a+8>>2];d=i[a>>2];if(f>>>0<=e-d>>>0){h=i[a+4>>2]-d|0;e=h+b|0;k=f>>>0>h>>>0?e:c;if((k|0)!=(b|0)){while(1){g[d|0]=j[b|0];d=d+1|0;b=b+1|0;if((k|0)!=(b|0)){continue}break}}if(f>>>0>h>>>0){b=i[a+4>>2];if((c|0)!=(k|0)){while(1){g[b|0]=j[e|0];b=b+1|0;e=e+1|0;if((e|0)!=(c|0)){continue}break}}i[a+4>>2]=b;return}i[a+4>>2]=d;return}if(d){i[a+4>>2]=d;bp(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;e=0}a:{if((f|0)<=-1){break a}d=e<<1;e=e>>>0<1073741823?d>>>0>>0?f:d:2147483647;if((e|0)<=-1){break a}d=ho(e);i[a>>2]=d;i[a+4>>2]=d;i[a+8>>2]=d+e;if((b|0)!=(c|0)){hp(d,b,f);while(1){d=d+1|0;b=b+1|0;if((c|0)!=(b|0)){continue}break}}i[a+4>>2]=d;return}Ho();x()}function Sh(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=i[a+8>>2];e=i[a>>2];if(d-e>>2>>>0>=b>>>0){f=i[a+4>>2];g=f-e>>2;h=g>>>0>>0?g:b;if(h){d=e;while(1){i[d>>2]=i[c>>2];d=d+4|0;h=h+ -1|0;if(h){continue}break}}if(g>>>0>>0){d=a;a=b-g|0;if(a){a=(a<<2)+f|0;while(1){i[f>>2]=i[c>>2];f=f+4|0;if((a|0)!=(f|0)){continue}break}}else{a=f}i[d+4>>2]=a;return}i[a+4>>2]=(b<<2)+e;return}if(e){i[a+4>>2]=e;bp(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(b>>>0>=1073741824){break a}e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?b:e:1073741823;if(d>>>0>=1073741824){break a}e=d<<2;d=ho(e);i[a>>2]=d;i[a+8>>2]=d+e;b=(b<<2)+d|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}i[a+4>>2]=b;return}Ho();x()}function Hc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;a:{b:{if((I[i[i[b>>2]+20>>2]](b)|0)>=1){k=a+16|0;while(1){f=xm(i[i[a+4>>2]+4>>2],I[i[i[b>>2]+24>>2]](b,j)|0);if((f|0)!=-1){c=i[a+20>>2];c:{if((c|0)!=i[a+24>>2]){i[c>>2]=f;i[a+20>>2]=c+4;break c}g=i[k>>2];h=c-g|0;e=h>>2;d=e+1|0;if(d>>>0>=1073741824){break b}c=h>>1;d=e>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;d:{if(!d){break d}if(d>>>0>=1073741824){break a}c=ho(d<<2)}e=c+(e<<2)|0;i[e>>2]=f;d=c+(d<<2)|0;e=e+4|0;if((h|0)>=1){hp(c,g,h)}i[a+24>>2]=d;i[a+20>>2]=e;i[a+16>>2]=c;if(!g){break c}bp(g)}Gj(i[a+4>>2],f);j=j+1|0;if((j|0)<(I[i[i[b>>2]+20>>2]](b)|0)){continue}}break}a=(f|0)!=-1}else{a=1}return a|0}Ho();x()}za(1956);x()}function li(a){var b=0,c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0;b=i[a+112>>2]-i[a+108>>2]|0;c=(b|0)/12|0;Jb(c,i[i[a+4>>2]+44>>2]);if(b){f=c>>>0>1?c:1;while(1){b=i[a+108>>2]+o(d,12)|0;Jb(i[b+4>>2]-h|0,i[i[a+4>>2]+44>>2]);Jb(i[b+4>>2]-i[b>>2]|0,i[i[a+4>>2]+44>>2]);h=i[b+4>>2];d=d+1|0;if((f|0)!=(d|0)){continue}break}d=0;Vj(i[i[a+4>>2]+44>>2],c,0,0);f=c>>>0>1?c:1;while(1){c=i[i[a+4>>2]+44>>2];b=i[c+20>>2];if((b|0)>0?1:(b|0)>=0?l[c+16>>2]>=1:0){h=j[(i[a+108>>2]+o(d,12)|0)+8|0];c=i[c+12>>2];e=i[c+4>>2];b=e>>>3|0;k=b+i[c>>2]|0;m=j[k|0];e=e&7;n=k,p=yp(-2,e)&m,g[n|0]=p;b=b+i[c>>2]|0;g[b|0]=j[b|0]|(h&1)<>2]=i[c+4>>2]+1}d=d+1|0;if((f|0)!=(d|0)){continue}break}Wj(i[i[a+4>>2]+44>>2])}return 1}function Hd(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){f=i[a+4>>2]-e|0;d=f+b|0;h=f>>2;j=g>>>0>h>>>0?d:c;f=j-b|0;if(f){jp(e,b,f)}if(g>>>0>h>>>0){b=i[a+4>>2];if((c|0)!=(j|0)){while(1){i[b>>2]=i[d>>2];b=b+4|0;d=d+4|0;if((d|0)!=(c|0)){continue}break}}i[a+4>>2]=b;return}i[a+4>>2]=e+f;return}if(e){i[a+4>>2]=e;bp(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?g:e:1073741823;if(d>>>0>=1073741824){break a}e=d<<2;d=ho(e);i[a>>2]=d;i[a+4>>2]=d;i[a+8>>2]=d+e;if((b|0)!=(c|0)){hp(d,b,f&-4);while(1){d=d+4|0;b=b+4|0;if((c|0)!=(b|0)){continue}break}}i[a+4>>2]=d;return}Ho();x()}function Xh(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=ho(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;d=i[a+4>>2];c=i[a>>2];if((d|0)==(c|0)){break b}while(1){d=d+ -4|0;g=i[d>>2];i[d>>2]=0;b=b+ -4|0;i[b>>2]=g;if((d|0)!=(c|0)){continue}break}i[a+8>>2]=e;d=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=b;if((d|0)==(c|0)){break a}while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){I[i[i[a>>2]+4>>2]](a)}if((d|0)!=(c|0)){continue}break}break a}Ho();x()}za(11708);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){bp(c)}}function Ng(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,m=0;e=i[d>>2];d=i[e>>2];a:{e=i[e+4>>2]-d>>3;j=i[b>>2];if(e>>>0<=j>>>0){break a}h=i[a>>2];if(e>>>0<=h>>>0){break a}g=i[c>>2];m=i[d+(j<<3)>>2];k=d+(h<<3)|0;b:{c:{if(m>>>0>=l[k>>2]){if(e>>>0<=g>>>0){break a}f=0;if(l[d+(g<<3)>>2]>=m>>>0){break b}i[b>>2]=g;i[c>>2]=j;c=i[b>>2];if(e>>>0<=c>>>0){break a}k=e;e=i[a>>2];if(k>>>0<=e>>>0){break a}f=1;if(l[d+(c<<3)>>2]>=l[d+(e<<3)>>2]){break b}i[a>>2]=c;i[b>>2]=e;break c}if(e>>>0<=g>>>0){break a}if(l[d+(g<<3)>>2]>>0){i[a>>2]=g;i[c>>2]=h;return 1}i[a>>2]=j;i[b>>2]=h;a=i[c>>2];if(e>>>0<=a>>>0){break a}f=1;if(l[d+(a<<3)>>2]>=l[k>>2]){break b}i[b>>2]=a;i[c>>2]=h}f=2}return f}Io();x()}function em(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=F-16|0;F=d;h=ym(b);a:{if(!h){i[a>>2]=0;break a}c=i[b+100>>2];k=i[b+96>>2];i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;c=c-k|0;e=(c|0)/12|0;b:{if(!c){break b}if(e>>>0<357913942){g=ho(c);i[d>>2]=g;f=g+o(e,12)|0;i[d+8>>2]=f;b=0;m=ip(g,0,c-((c+ -12>>>0)%12|0)|0);i[d+4>>2]=f;n=e>>>0>1?e:1;p=j[h+84|0];while(1){l=o(b,12);c=l+k|0;e=i[c>>2];c:{if(p){g=c+8|0;c=c+4|0;break c}f=i[h+68>>2];g=f+(i[c+8>>2]<<2)|0;e=i[f+(e<<2)>>2];c=f+(i[c+4>>2]<<2)|0}f=i[c>>2];c=m+l|0;i[c+8>>2]=i[g>>2];i[c+4>>2]=f;i[c>>2]=e;b=b+1|0;if((n|0)!=(b|0)){continue}break}break b}Ho();x()}Jl(a,d);a=i[d>>2];if(!a){break a}i[d+4>>2]=a;bp(a)}F=d+16|0}function Vb(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=ho(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;d=i[a+4>>2];c=i[a>>2];if((d|0)==(c|0)){break b}while(1){d=d+ -4|0;g=i[d>>2];i[d>>2]=0;b=b+ -4|0;i[b>>2]=g;if((d|0)!=(c|0)){continue}break}i[a+8>>2]=e;d=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=b;if((d|0)==(c|0)){break a}while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){Wb(a)}if((d|0)!=(c|0)){continue}break}break a}Ho();x()}za(1752);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){bp(c)}}function fn(a){var b=0,c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0;a:{c=i[a+112>>2];d=i[a+116>>2];b:{if(c|d){b=l[a+120>>2]>=c>>>0;c=i[a+124>>2];if((c|0)>(d|0)?1:(c|0)>=(d|0)?b:0){break b}}k=dn(a);if((k|0)>-1){break a}}i[a+104>>2]=0;return-1}m=a;e=i[a+116>>2];b=e;d=i[a+8>>2];c=d;f=i[a+112>>2];c:{if(!(b|f)){break c}c=d;e=(i[a+124>>2]^-1)+b|0;b=i[a+120>>2]^-1;f=b+f|0;if(f>>>0>>0){e=e+1|0}b=f;f=i[a+4>>2];h=d-f|0;n=b>>>0>=h>>>0;h=h>>31;if((e|0)>(h|0)?1:(e|0)>=(h|0)?n:0){break c}c=b+f|0}i[m+104>>2]=c;m=i[a+4>>2];if(d){c=a;e=(d-m|0)+1|0;b=e;d=b+i[a+120>>2]|0;a=i[a+124>>2]+(b>>31)|0;i[c+120>>2]=d;i[c+124>>2]=d>>>0>>0?a+1|0:a}a=m+ -1|0;if(j[a|0]!=(k|0)){g[a|0]=k}return k}function Lg(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;j=Kg(a,b,c,d,f);g=i[f>>2];f=i[g>>2];a:{g=i[g+4>>2]-f>>3;h=i[e>>2];if(g>>>0<=h>>>0){break a}k=i[d>>2];if(g>>>0<=k>>>0){break a}if(l[f+(h<<3)>>2]>2]){i[d>>2]=h;i[e>>2]=k;e=i[d>>2];if(g>>>0<=e>>>0){break a}h=i[c>>2];if(g>>>0<=h>>>0){break a}if(l[f+(e<<3)>>2]>=l[f+(h<<3)>>2]){return j+1|0}i[c>>2]=e;i[d>>2]=h;d=i[c>>2];if(g>>>0<=d>>>0){break a}e=i[b>>2];if(g>>>0<=e>>>0){break a}if(l[f+(d<<3)>>2]>=l[f+(e<<3)>>2]){return j+2|0}i[b>>2]=d;i[c>>2]=e;c=i[b>>2];if(g>>>0<=c>>>0){break a}d=i[a>>2];if(g>>>0<=d>>>0){break a}if(l[f+(c<<3)>>2]>=l[f+(d<<3)>>2]){return j+3|0}i[a>>2]=c;i[b>>2]=d;j=j+4|0}return j}Io();x()}function qn(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0;j=1;i=d&2147483647;m=i;k=c;a:{if(!c&(i|0)==2147418112?a|b:(i|0)==2147418112&c>>>0>0|i>>>0>2147418112){break a}l=h&2147483647;n=l;i=g;if(!g&(l|0)==2147418112?e|f:(l|0)==2147418112&g>>>0>0|l>>>0>2147418112){break a}if(!(a|e|(i|k)|(b|f|(m|n)))){return 0}k=d&h;if((k|0)>0?1:(k|0)>=0?(c&g)>>>0>=0:0){j=-1;if((c|0)==(g|0)&(d|0)==(h|0)?(b|0)==(f|0)&a>>>0>>0|b>>>0>>0:(d|0)<(h|0)?1:(d|0)<=(h|0)?c>>>0>>0:0){break a}return(a^e|c^g)!=0|(b^f|d^h)!=0}j=-1;if((c|0)==(g|0)&(d|0)==(h|0)?(b|0)==(f|0)&a>>>0>e>>>0|b>>>0>f>>>0:(d|0)>(h|0)?1:(d|0)>=(h|0)?c>>>0>g>>>0:0){break a}j=(a^e|c^g)!=0|(b^f|d^h)!=0}return j}function Uh(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=F-16|0;F=e;i[a+4>>2]=0;a:{b:{if(!b){break b}f=i[a+8>>2];d=f<<5;c:{if(d>>>0>=b>>>0){i[a+4>>2]=b;break c}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if((b|0)<=-1){break a}h=e;if(d>>>0<=1073741822){g=b+31&-32;d=f<<6;d=d>>>0>>0?g:d}else{d=2147483647}bd(h,d);d=i[a>>2];i[a>>2]=i[e>>2];i[e>>2]=d;f=i[a+4>>2];i[a+4>>2]=b;i[e+4>>2]=f;f=i[a+8>>2];i[a+8>>2]=i[e+8>>2];i[e+8>>2]=f;if(!d){break c}bp(d)}d=b>>>5|0;f=d<<2;a=i[a>>2];if(j[c|0]){a=ip(a,255,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;i[a>>2]=i[a>>2]|-1>>>32-b;break b}a=ip(a,0,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;i[a>>2]=i[a>>2]&(-1>>>32-b^-1)}F=e+16|0;return}Ho();x()}function ki(a){var b=0,c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0;k=a+32|0;b=i[a+64>>2];b=i[(I[i[i[b>>2]+40>>2]](b)|0)+56>>2];Vj(k,o((i[b+100>>2]-i[b+96>>2]|0)/12|0,3),0,1);a:{b=i[a+68>>2];d=i[a+72>>2]-b|0;if((d|0)<1){break a}d=(d>>>2|0)+ -1|0;while(1){c=i[a+52>>2];b:{if((c|0)<0?1:(c|0)<=0?l[a+48>>2]<1:0){break b}h=i[(d<<2)+b>>2];if(!(171>>>h&1)){break b}n=i[(h<<2)+12048>>2];b=i[a+44>>2];c=i[b+4>>2];f=0;while(1){e=c>>>3|0;m=e+i[b>>2]|0;p=j[m|0];c=c&7;q=m,r=yp(-2,c)&p,g[q|0]=r;e=e+i[b>>2]|0;g[e|0]=j[e|0]|(h>>>f&1)<>2]+1|0;i[b+4>>2]=c;f=f+1|0;if((n|0)!=(f|0)){continue}break}}d=d+ -1|0;if((d|0)<0){break a}b=i[a+68>>2];continue}}Wj(k)}function Yf(a,b,c){var d=0,e=0,f=0;d=F-16|0;F=d;i[d+12>>2]=b;b=ho(32);i[d>>2]=b;i[d+4>>2]=17;i[d+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[10556];e=j[10552]|j[10553]<<8|(j[10554]<<16|j[10555]<<24);f=j[10548]|j[10549]<<8|(j[10550]<<16|j[10551]<<24);g[b+8|0]=f;g[b+9|0]=f>>>8;g[b+10|0]=f>>>16;g[b+11|0]=f>>>24;g[b+12|0]=e;g[b+13|0]=e>>>8;g[b+14|0]=e>>>16;g[b+15|0]=e>>>24;e=j[10544]|j[10545]<<8|(j[10546]<<16|j[10547]<<24);f=j[10540]|j[10541]<<8|(j[10542]<<16|j[10543]<<24);g[b|0]=f;g[b+1|0]=f>>>8;g[b+2|0]=f>>>16;g[b+3|0]=f>>>24;g[b+4|0]=e;g[b+5|0]=e>>>8;g[b+6|0]=e>>>16;g[b+7|0]=e>>>24;Yj(yf(a+4|0,d+12|0),d,c);if(g[d+11|0]<=-1){bp(i[d>>2])}F=d+16|0}function Df(a,b,c){var d=0,e=0,f=0;d=F-16|0;F=d;i[d+12>>2]=b;b=ho(32);i[d>>2]=b;i[d+4>>2]=17;i[d+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[10144];e=j[10140]|j[10141]<<8|(j[10142]<<16|j[10143]<<24);f=j[10136]|j[10137]<<8|(j[10138]<<16|j[10139]<<24);g[b+8|0]=f;g[b+9|0]=f>>>8;g[b+10|0]=f>>>16;g[b+11|0]=f>>>24;g[b+12|0]=e;g[b+13|0]=e>>>8;g[b+14|0]=e>>>16;g[b+15|0]=e>>>24;e=j[10132]|j[10133]<<8|(j[10134]<<16|j[10135]<<24);f=j[10128]|j[10129]<<8|(j[10130]<<16|j[10131]<<24);g[b|0]=f;g[b+1|0]=f>>>8;g[b+2|0]=f>>>16;g[b+3|0]=f>>>24;g[b+4|0]=e;g[b+5|0]=e>>>8;g[b+6|0]=e>>>16;g[b+7|0]=e>>>24;Yj(yf(a+4|0,d+12|0),d,c);if(g[d+11|0]<=-1){bp(i[d>>2])}F=d+16|0}function id(a,b,c,d,e){var f=0,g=0,h=0,j=0;f=i[i[i[d+4>>2]+8>>2]+(c<<2)>>2];if((b|0)==-1){b=ff(c,d)}if((b|0)==-2){i[a>>2]=0;return}a:{b:{if((I[i[i[d>>2]+8>>2]](d)|0)==1){pd(a,d,b,c,e);if(i[a>>2]){break b}i[a>>2]=0}b=ho(44);i[b+4>>2]=f;i[b>>2]=3184;c=i[e+8>>2];d=i[e+12>>2];f=i[e+16>>2];g=i[e+20>>2];h=i[e>>2];j=i[e+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=f;i[b+28>>2]=g;i[b+16>>2]=c;i[b+20>>2]=d;i[b+8>>2]=h;i[b+12>>2]=j;f=i[e+24>>2];e=i[e+28>>2]-f|0;if(e){d=e>>2;if(d>>>0>=1073741824){break a}c=ho(e);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((e|0)>=1){c=hp(c,f,e)+e|0}i[d+36>>2]=c}i[b>>2]=5876;i[a>>2]=b}return}Ho();x()}function la(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0;i[b>>2]=1;f=b+8|0;c=i[b+8>>2];d=i[b+12>>2]-c|0;if(d>>>0<=4294967291){Rj(f,d+4|0);c=i[f>>2]}c=c+d|0;d=i[a+4>>2];g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;c=i[a+8>>2];if((c|0)!=i[a+12>>2]){d=0;while(1){h=(d<<2)+c|0;c=i[b+8>>2];e=i[b+12>>2]-c|0;if(e>>>0<=4294967291){Rj(f,e+4|0);c=i[f>>2]}c=c+e|0;e=i[h>>2];g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;d=d+1|0;c=i[a+8>>2];if(d>>>0>2]-c>>2>>>0){continue}break}}c=i[b+12>>2];b=i[b+8>>2];c=c-b|0;if(c>>>0<=4294967291){Rj(f,c+4|0);b=i[f>>2]}b=b+c|0;a=i[a+20>>2];g[b|0]=a;g[b+1|0]=a>>>8;g[b+2|0]=a>>>16;g[b+3|0]=a>>>24}function Kl(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=F-16|0;F=f;i[a+80>>2]=0;i[a+84>>2]=0;c=a+76|0;d=i[c>>2];i[c>>2]=0;if(d){bp(d)}i[a+68>>2]=0;i[a+72>>2]=0;c=a- -64|0;d=i[c>>2];i[c>>2]=0;if(d){bp(d)}c=i[b+4>>2];d=i[b>>2];e=o((c-d|0)/12|0,3);h=i[a>>2];g=i[a+4>>2]-h>>2;a:{if(e>>>0>g>>>0){Ai(a,e-g|0);d=i[b>>2];c=i[b+4>>2];break a}if(e>>>0>=g>>>0){break a}i[a+4>>2]=h+(e<<2)}if((c|0)!=(d|0)){b=(c-d|0)/12|0;g=b>>>0>1?b:1;h=i[a>>2];b=0;while(1){e=o(b,12);c=e+h|0;e=d+e|0;i[c>>2]=i[e>>2];i[c+4>>2]=i[e+4>>2];i[c+8>>2]=i[e+8>>2];b=b+1|0;if((g|0)!=(b|0)){continue}break}}i[f+12>>2]=-1;b=Ll(a,f+12|0);if(b){Ml(a);Nl(a,i[f+12>>2])}F=f+16|0;return b}function Fd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=F-32|0;F=d;h=1;while(1){g=o(c,12)+a|0;e=g- -64|0;Jb(i[e>>2],b);c=c+1|0;if(i[e>>2]){f=mf(d);pf(f);e=i[e>>2]-c|0;if((e|0)>=0){k=g+60|0;while(1){g=0;while(1){j=e+g|0;qf(f,i[i[k>>2]+(j>>>3&536870908)>>2]>>>j&1);g=g+1|0;if((h|0)!=(g|0)){continue}break}e=e-c|0;if((e|0)>=0){continue}break}}sf(f,b);nf(f)}h=h+1|0;if((c|0)!=4){continue}break}i[d>>2]=i[a+12>>2];h=i[b+20>>2];c=h;f=i[b+16>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],d,d+4|0);f=i[b+16>>2];c=i[b+20>>2]}i[d>>2]=i[a+16>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],d,d+4|0)}F=d+32|0;return 1}function ja(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0;d=i[b+88>>2];if(!(!d|i[d>>2]!=1)){c=i[d+8>>2];i[a+4>>2]=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);f=a+8|0;h=i[a+8>>2];e=i[a+12>>2]-h>>2;c=g[b+24|0];a:{if(e>>>0>>0){ka(f,c-e|0);c=j[b+24|0];break a}if(e>>>0<=c>>>0){break a}i[a+12>>2]=h+(c<<2)}h=1;e=i[d+8>>2];b:{if(c<<24>>24<1){b=4;break b}b=c&255;k=b>>>0>1?b:1;f=i[f>>2];c=0;b=4;while(1){d=b+e|0;m[f+(c<<2)>>2]=(Cp(2,j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24)),Gp());b=b+4|0;c=c+1|0;if((k|0)!=(c|0)){continue}break}}c=a;a=b+e|0;m[c+20>>2]=(Cp(2,j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24)),Gp())}return h|0}function Ce(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=F-32|0;F=d;h=1;while(1){g=o(c,12)+a|0;e=g+48|0;Jb(i[e>>2],b);c=c+1|0;if(i[e>>2]){f=mf(d);pf(f);e=i[e>>2]-c|0;if((e|0)>=0){k=g+44|0;while(1){g=0;while(1){j=e+g|0;qf(f,i[i[k>>2]+(j>>>3&536870908)>>2]>>>j&1);g=g+1|0;if((h|0)!=(g|0)){continue}break}e=e-c|0;if((e|0)>=0){continue}break}}sf(f,b);nf(f)}h=h+1|0;if((c|0)!=4){continue}break}i[d>>2]=i[a+12>>2];h=i[b+20>>2];c=h;f=i[b+16>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],d,d+4|0);f=i[b+16>>2];c=i[b+20>>2]}i[d>>2]=i[a+24>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],d,d+4|0)}F=d+32|0;return 1}function pa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,j=0,k=0,l=p(0),n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0;h=F-16|0;F=h;if(i[c+28>>2]==9){d=i[a+4>>2];e=g[c+24|0];j=e<<2;k=ho((e&1073741823)!=(e|0)?-1:j);n=dk(h+8|0);f=n;l=m[a+20>>2];d=-1<=1){m[f>>2]=l/p(d|0)}f=(d|0)>0;a:{if(!f){break a}o=i[c+80>>2];if(!o){break a}t=i[i[b>>2]>>2]+i[b+48>>2]|0;u=(e|0)<1;d=0;while(1){if(!u){v=i[a+8>>2];l=m[n>>2];b=0;while(1){q=b<<2;m[q+k>>2]=p(l*p(i[(d<<2)+t>>2]))+m[v+q>>2];d=d+1|0;b=b+1|0;if((e|0)!=(b|0)){continue}break}}hp(i[i[c+64>>2]>>2]+r|0,k,j);r=j+r|0;s=s+1|0;if((s|0)!=(o|0)){continue}break}}bp(k)}F=h+16|0;return f|0}function xn(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;f=F-16|0;F=f;Ep(+b);h=Bp(1)|0;g=Bp(0)|0;e=h&2147483647;c=e;e=c+ -1048576|0;d=g;if(d>>>0<0){e=e+1|0}a:{if((e|0)==2145386495|e>>>0<2145386495){j=d<<28;e=(c&15)<<28|d>>>4;c=(c>>>4|0)+1006632960|0;d=e;c=d>>>0<0?c+1|0:c;break a}if((c|0)==2146435072&d>>>0>=0|c>>>0>2146435072){j=g<<28;e=g;c=h;g=c>>>4|0;d=(c&15)<<28|e>>>4;c=g|2147418112;break a}if(!(c|d)){d=0;c=0;break a}e=c;c=(c|0)==1&d>>>0<0|c>>>0<1?r(g)+32|0:r(c);sn(f,d,e,0,0,c+49|0);k=i[f>>2];j=i[f+4>>2];d=i[f+8>>2];c=i[f+12>>2]^65536|15372-c<<16}i[a>>2]=k;i[a+4>>2]=j;i[a+8>>2]=d;i[a+12>>2]=h&-2147483648|c;F=f+16|0}function Vh(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){f=i[a+4>>2];d=f-e|0;h=d>>2;d=g>>>0>h>>>0?b+d|0:c;if((d|0)!=(b|0)){while(1){i[e>>2]=i[b>>2];e=e+4|0;b=b+4|0;if((d|0)!=(b|0)){continue}break}}if(g>>>0>h>>>0){b=c-d|0;if((b|0)>=1){f=hp(f,d,b)+b|0}i[a+4>>2]=f;return}i[a+4>>2]=e;return}if(e){i[a+4>>2]=e;bp(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=ho(e);i[a>>2]=c;i[a+4>>2]=c;i[a+8>>2]=c+e;if((f|0)>=1){c=hp(c,b,f)+f|0}i[a+4>>2]=c;return}Ho();x()}function bc(a){var b=0,c=0,d=0,e=0;d=i[a+1176>>2];if(d){b=i[a+1180>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;bp(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+1176>>2]}i[a+1180>>2]=d;bp(c)}d=i[a+1164>>2];if(d){b=i[a+1168>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;bp(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+1164>>2]}i[a+1168>>2]=d;bp(c)}b=i[a+1152>>2];if(b){i[a+1156>>2]=b;bp(b)}b=i[a+1140>>2];if(b){i[a+1144>>2]=b;bp(b)}b=i[a+1128>>2];if(b){i[a+1132>>2]=b;bp(b)}jf(a+1108|0);jf(a+1088|0);jf(a+1068|0);nf(a+1036|0);mc(a+12|0)}function Ti(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;d=(c>>>0)/3|0;Ui(i[a+12>>2],i[(i[i[a+8>>2]+96>>2]+o(d,12)|0)+(c-o(d,3)<<2)>>2]);f=i[a+4>>2];d=i[f+4>>2];a:{b:{c:{if((d|0)!=i[f+8>>2]){i[d>>2]=c;i[f+4>>2]=d+4;break c}h=i[f>>2];j=d-h|0;g=j>>2;e=g+1|0;if(e>>>0>=1073741824){break b}d=j>>1;e=g>>>0<536870911?d>>>0>>0?e:d:1073741823;d=0;d:{if(!e){break d}if(e>>>0>=1073741824){break a}d=ho(e<<2)}g=d+(g<<2)|0;i[g>>2]=c;c=d+(e<<2)|0;e=g+4|0;if((j|0)>=1){hp(d,h,j)}i[f+8>>2]=c;i[f+4>>2]=e;i[f>>2]=d;if(!h){break c}bp(h)}a=i[a+4>>2];i[i[a+12>>2]+(b<<2)>>2]=i[a+24>>2];i[a+24>>2]=i[a+24>>2]+1;return}Ho();x()}za(11708);x()}function Rm(a,b){var c=0,d=0,e=0,f=0,h=0;c=F-208|0;F=c;i[c+204>>2]=b;b=0;ip(c+160|0,0,40);i[c+200>>2]=i[c+204>>2];a:{if((Sm(0,c+200|0,c+80|0,c+160|0)|0)<0){a=-1;break a}b=i[a+76>>2]>=0?1:b;d=i[a>>2];if(g[a+74|0]<=0){i[a>>2]=d&-33}h=d&32;b:{if(i[a+48>>2]){e=Sm(a,c+200|0,c+80|0,c+160|0);break b}i[a+48>>2]=80;i[a+16>>2]=c+80;i[a+28>>2]=c;i[a+20>>2]=c;d=i[a+44>>2];i[a+44>>2]=c;f=Sm(a,c+200|0,c+80|0,c+160|0);e=f;if(!d){break b}I[i[a+36>>2]](a,0,0)|0;i[a+48>>2]=0;i[a+44>>2]=d;i[a+28>>2]=0;i[a+16>>2]=0;d=i[a+20>>2];i[a+20>>2]=0;e=d?f:-1}d=e;e=a;a=i[a>>2];i[e>>2]=a|h;a=a&32?-1:d;if(!b){break a}}F=c+208|0;return a}function vf(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=F-16|0;F=f;g=Xj(a);d=a+16|0;i[d>>2]=0;i[d+4>>2]=0;i[a+12>>2]=d;d=Xj(a+24|0);if((g|0)!=(b+4|0)){xf(a,i[b+4>>2],b+8|0)}if((d|0)!=(b+28|0)){xf(d,i[b+28>>2],b+32|0)}d=0;i[f+12>>2]=0;e=i[c+8>>2];if((i[c+12>>2]-e|0)>=1){g=b+20|0;while(1){b=i[g>>2];a:{if(!b){break a}h=i[i[(d<<2)+e>>2]+56>>2];d=g;while(1){e=i[b+16>>2]<(h|0);d=e?d:b;b=i[(e<<2)+b>>2];if(b){continue}break}if((d|0)==(g|0)|(h|0)>2]){break a}b=yf(a,f+12|0);if((b|0)==(d+20|0)){break a}xf(b,i[d+20>>2],d+24|0)}d=i[f+12>>2]+1|0;i[f+12>>2]=d;e=i[c+8>>2];if((d|0)>2]-e>>2){continue}break}}F=f+16|0}function _e(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=F-32|0;F=f;d=d-e|0;if((d|0)>=1){j=a+8|0;l=0-e<<2;while(1){k=d<<2;g=k+b|0;h=g+l|0;m=i[h>>2];h=i[h+4>>2];n=i[g+4>>2];i[f+16>>2]=i[g>>2];i[f+20>>2]=n;i[f+8>>2]=m;i[f+12>>2]=h;ze(f+24|0,j,f+16|0,f+8|0);g=c+k|0;i[g>>2]=i[f+24>>2];i[g+4>>2]=i[f+28>>2];d=d-e|0;if((d|0)>0){continue}break}}d=(e&1073741823)!=(e|0)?-1:e<<2;d=ip(ho(d),0,d);e=i[d>>2];g=i[d+4>>2];j=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=j;i[f+8>>2]=e;i[f+12>>2]=g;ze(f+24|0,a+8|0,f+16|0,f+8|0);i[c>>2]=i[f+24>>2];i[c+4>>2]=i[f+28>>2];bp(d);F=f+32|0;return 1}function dc(a,b,c,d,e){var f=0,g=0,h=0,j=0;f=F-32|0;F=f;i[a>>2]=i[d>>2];d=i[c>>2]-i[b>>2]|0;i[a+4>>2]=d;g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){d=a+4|0;ca(e,i[e+4>>2],a,d);g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){ca(e,i[e+4>>2],d,d+4|0)}d=i[d>>2]}if(d){kc(a+12|0);d=a+1068|0;kf(d);g=a+1088|0;kf(g);h=a+1108|0;kf(h);i[f+24>>2]=i[b+8>>2];j=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=j;i[f+8>>2]=i[c+8>>2];b=i[c+4>>2];i[f>>2]=i[c>>2];i[f+4>>2]=b;pc(a,f+16|0,f);c=0;while(1){sf(((c<<5)+a|0)+12|0,e);c=c+1|0;if((c|0)!=32){continue}break}sf(a+1036|0,e);lf(d,e);lf(g,e);lf(h,e)}F=f+32|0;return 1}function ac(a,b,c,d,e){var f=0,g=0,h=0,j=0;f=F-32|0;F=f;i[a>>2]=i[d>>2];d=i[c>>2]-i[b>>2]|0;i[a+4>>2]=d;g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){d=a+4|0;ca(e,i[e+4>>2],a,d);g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){ca(e,i[e+4>>2],d,d+4|0)}d=i[d>>2]}if(d){kc(a+12|0);d=a+1068|0;kf(d);g=a+1088|0;kf(g);h=a+1108|0;kf(h);i[f+24>>2]=i[b+8>>2];j=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=j;i[f+8>>2]=i[c+8>>2];b=i[c+4>>2];i[f>>2]=i[c>>2];i[f+4>>2]=b;lc(a,f+16|0,f);c=0;while(1){sf(((c<<5)+a|0)+12|0,e);c=c+1|0;if((c|0)!=32){continue}break}sf(a+1036|0,e);lf(d,e);lf(g,e);lf(h,e)}F=f+32|0;return 1}function _f(a,b){var c=0,d=0,e=0,f=0;f=F-16|0;F=f;c=ho(16);i[f>>2]=c;i[f+4>>2]=15;i[f+8>>2]=-2147483632;g[c+15|0]=0;d=j[10535]|j[10536]<<8|(j[10537]<<16|j[10538]<<24);e=j[10531]|j[10532]<<8|(j[10533]<<16|j[10534]<<24);g[c+7|0]=e;g[c+8|0]=e>>>8;g[c+9|0]=e>>>16;g[c+10|0]=e>>>24;g[c+11|0]=d;g[c+12|0]=d>>>8;g[c+13|0]=d>>>16;g[c+14|0]=d>>>24;d=j[10528]|j[10529]<<8|(j[10530]<<16|j[10531]<<24);e=j[10524]|j[10525]<<8|(j[10526]<<16|j[10527]<<24);g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;Yj(a+4|0,f,b);if(g[f+11|0]<=-1){bp(i[f>>2])}F=f+16|0}function Gf(a,b){var c=0,d=0,e=0,f=0;f=F-16|0;F=f;c=ho(16);i[f>>2]=c;i[f+4>>2]=15;i[f+8>>2]=-2147483632;g[c+15|0]=0;d=j[10479]|j[10480]<<8|(j[10481]<<16|j[10482]<<24);e=j[10475]|j[10476]<<8|(j[10477]<<16|j[10478]<<24);g[c+7|0]=e;g[c+8|0]=e>>>8;g[c+9|0]=e>>>16;g[c+10|0]=e>>>24;g[c+11|0]=d;g[c+12|0]=d>>>8;g[c+13|0]=d>>>16;g[c+14|0]=d>>>24;d=j[10472]|j[10473]<<8|(j[10474]<<16|j[10475]<<24);e=j[10468]|j[10469]<<8|(j[10470]<<16|j[10471]<<24);g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;Yj(a+4|0,f,b);if(g[f+11|0]<=-1){bp(i[f>>2])}F=f+16|0}function Xa(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=i[a+8>>2];d=i[a+4>>2];if(f-d>>2>>>0>=b>>>0){e=a;if(b){a=(b<<2)+d|0;while(1){i[d>>2]=i[c>>2];d=d+4|0;if((a|0)!=(d|0)){continue}break}}else{a=d}i[e+4>>2]=a;return}a:{g=i[a>>2];h=d-g|0;e=h>>2;d=e+b|0;if(d>>>0<1073741824){j=e<<2;f=f-g|0;e=f>>1;f=f>>2>>>0<536870911?e>>>0>>0?d:e:1073741823;e=0;b:{if(!f){break b}if(f>>>0>=1073741824){break a}e=ho(f<<2)}d=j+e|0;b=d+(b<<2)|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}c=e+(f<<2)|0;if((h|0)>=1){hp(e,g,h)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=e;if(g){bp(g)}return}Ho();x()}za(1352);x()}function Gb(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=i[a+8>>2];d=i[a+4>>2];if(f-d>>2>>>0>=b>>>0){e=a;if(b){a=(b<<2)+d|0;while(1){i[d>>2]=i[c>>2];d=d+4|0;if((a|0)!=(d|0)){continue}break}}else{a=d}i[e+4>>2]=a;return}a:{g=i[a>>2];h=d-g|0;e=h>>2;d=e+b|0;if(d>>>0<1073741824){j=e<<2;f=f-g|0;e=f>>1;f=f>>2>>>0<536870911?e>>>0>>0?d:e:1073741823;e=0;b:{if(!f){break b}if(f>>>0>=1073741824){break a}e=ho(f<<2)}d=j+e|0;b=d+(b<<2)|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}c=e+(f<<2)|0;if((h|0)>=1){hp(e,g,h)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=e;if(g){bp(g)}return}Ho();x()}za(1520);x()}function Ol(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){d=a;if(b){a=(b<<2)+c|0;while(1){i[c>>2]=i[4128];c=c+4|0;if((a|0)!=(c|0)){continue}break}}else{a=c}i[d+4>>2]=a;return}a:{f=i[a>>2];g=c-f|0;d=g>>2;c=d+b|0;if(c>>>0<1073741824){h=d<<2;e=e-f|0;d=e>>1;e=e>>2>>>0<536870911?d>>>0>>0?c:d:1073741823;d=0;b:{if(!e){break b}if(e>>>0>=1073741824){break a}d=ho(e<<2)}c=h+d|0;b=c+(b<<2)|0;h=i[4128];while(1){i[c>>2]=h;c=c+4|0;if((b|0)!=(c|0)){continue}break}c=d+(e<<2)|0;if((g|0)>=1){hp(d,f,g)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=d;if(f){bp(f)}return}Ho();x()}za(16516);x()}function Ie(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=F-48|0;F=c;i[c+40>>2]=i[a- -64>>2];f=i[b+20>>2];if((f|0)<0?1:(f|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],c+40|0,c+44|0)}f=mf(c+8|0);pf(f);if(i[c+40>>2]>=1){d=1;while(1){g=d;d=i[i[a+60>>2]+(e>>>3&536870908)>>2]>>>e|0;qf(f,(g^d^-1)&1);d=d&1;e=e+1|0;if((e|0)>2]){continue}break}}sf(f,b);i[c+44>>2]=i[a+12>>2];d=i[b+20>>2];e=d;d=i[b+16>>2];if((e|0)<0?1:(e|0)<=0?d>>>0<=0:0){ca(b,i[b+4>>2],c+44|0,c+48|0);d=i[b+16>>2];e=i[b+20>>2]}i[c+44>>2]=i[a+24>>2];if((e|0)<0?1:(e|0)<=0?d>>>0<=0:0){ca(b,i[b+4>>2],c+44|0,c+48|0)}nf(f);F=c+48|0;return 1}function Nd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=F-48|0;F=c;i[c+40>>2]=i[a+80>>2];f=i[b+20>>2];if((f|0)<0?1:(f|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],c+40|0,c+44|0)}f=mf(c+8|0);pf(f);if(i[c+40>>2]>=1){d=1;while(1){g=d;d=i[i[a+76>>2]+(e>>>3&536870908)>>2]>>>e|0;qf(f,(g^d^-1)&1);d=d&1;e=e+1|0;if((e|0)>2]){continue}break}}sf(f,b);i[c+44>>2]=i[a+12>>2];d=i[b+20>>2];e=d;d=i[b+16>>2];if((e|0)<0?1:(e|0)<=0?d>>>0<=0:0){ca(b,i[b+4>>2],c+44|0,c+48|0);d=i[b+16>>2];e=i[b+20>>2]}i[c+44>>2]=i[a+16>>2];if((e|0)<0?1:(e|0)<=0?d>>>0<=0:0){ca(b,i[b+4>>2],c+44|0,c+48|0)}nf(f);F=c+48|0;return 1}function Lf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0;d=ho(40);c=d+16|0;ro(c,b);ro(d+28|0,b+12|0);b=i[a+4>>2];a:{b:{if(b){e=c;c=j[d+27|0];f=c<<24>>24<0;k=f?i[d+16>>2]:e;f=f?i[d+20>>2]:c;while(1){e=j[b+27|0];c=e<<24>>24<0;c:{d:{e:{f:{e=c?i[b+20>>2]:e;g=e>>>0>>0?e:f;if(g){h=b+16|0;c=Km(k,c?i[h>>2]:h,g);if(c){break f}}if(f>>>0>>0){break e}break d}if((c|0)>-1){break d}}c=i[b>>2];if(!c){break b}break c}c=i[b+4>>2];if(c){break c}c=b+4|0;break a}b=c;continue}}b=a+4|0}c=b}i[d+8>>2]=b;i[d>>2]=0;i[d+4>>2]=0;i[c>>2]=d;b=i[i[a>>2]>>2];if(b){i[a>>2]=b;d=i[c>>2]}Kf(i[a+4>>2],d);i[a+8>>2]=i[a+8>>2]+1}function We(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;d=F-32|0;F=d;i[a+48>>2]=f;f=i[a+40>>2];g=i[f>>2];a:{f=i[f+4>>2]-g|0;if((f|0)<1){break a}h=f>>2;f=(f>>>2|0)+ -1|0;if(h>>>0>f>>>0){l=a+44|0;m=a+8|0;while(1){he(l,i[(f<<2)+g>>2],b,f);g=i[a+52>>2];h=i[a+56>>2];j=o(e,f)<<2;k=j+b|0;n=i[k+4>>2];i[d+16>>2]=i[k>>2];i[d+20>>2]=n;i[d+8>>2]=g;i[d+12>>2]=h;ze(d+24|0,m,d+16|0,d+8|0);g=c+j|0;i[g>>2]=i[d+24>>2];i[g+4>>2]=i[d+28>>2];f=f+ -1|0;if((f|0)<0){break a}h=i[a+40>>2];g=i[h>>2];if(i[h+4>>2]-g>>2>>>0>f>>>0){continue}break}}Io();x()}F=d+32|0;return 1}function Je(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;d=F-32|0;F=d;i[a+48>>2]=f;f=i[a+40>>2];g=i[f>>2];a:{f=i[f+4>>2]-g|0;if((f|0)<1){break a}h=f>>2;f=(f>>>2|0)+ -1|0;if(h>>>0>f>>>0){l=a+44|0;m=a+8|0;while(1){Pd(l,i[(f<<2)+g>>2],b,f);g=i[a+52>>2];h=i[a+56>>2];j=o(e,f)<<2;k=j+b|0;n=i[k+4>>2];i[d+16>>2]=i[k>>2];i[d+20>>2]=n;i[d+8>>2]=g;i[d+12>>2]=h;ze(d+24|0,m,d+16|0,d+8|0);g=c+j|0;i[g>>2]=i[d+24>>2];i[g+4>>2]=i[d+28>>2];f=f+ -1|0;if((f|0)<0){break a}h=i[a+40>>2];g=i[h>>2];if(i[h+4>>2]-g>>2>>>0>f>>>0){continue}break}}Io();x()}F=d+32|0;return 1}function Ac(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;a:{f=i[a+4>>2];b:{if((f|0)!=i[a>>2]){c=f;break b}e=i[a+8>>2];c=i[a+12>>2];if(e>>>0>>0){d=((c-e>>2)+1|0)/2<<2;c=d+e|0;g=e-f|0;if(g){c=c-g|0;jp(c,f,g);e=i[a+8>>2]}i[a+4>>2]=c;i[a+8>>2]=e+d;break b}c=c-f|0;d=c?c>>1:1;if(d>>>0>=1073741824){break a}c=d<<2;h=ho(c);g=h+c|0;c=(d+3&-4)+h|0;j=c;d=e-f|0;if(d){j=c+d|0;e=c;d=f;while(1){i[e>>2]=i[d>>2];d=d+4|0;e=e+4|0;if((j|0)!=(e|0)){continue}break}}i[a+12>>2]=g;i[a+8>>2]=j;i[a+4>>2]=c;i[a>>2]=h;if(!f){break b}bp(f);c=i[a+4>>2]}i[c+ -4>>2]=i[b>>2];i[a+4>>2]=i[a+4>>2]+ -4;return}za(1752);x()}function gc(a){var b=0,c=0,d=0,e=0;d=i[a+152>>2];if(d){b=i[a+156>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;bp(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+152>>2]}i[a+156>>2]=d;bp(c)}d=i[a+140>>2];if(d){b=i[a+144>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;bp(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+140>>2]}i[a+144>>2]=d;bp(c)}b=i[a+128>>2];if(b){i[a+132>>2]=b;bp(b)}b=i[a+116>>2];if(b){i[a+120>>2]=b;bp(b)}b=i[a+104>>2];if(b){i[a+108>>2]=b;bp(b)}jf(a+84|0);jf(a- -64|0);jf(a+44|0);nf(a+12|0)}function Yl(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){d=a;if(b){a=(b<<2)+c|0;while(1){i[c>>2]=1;c=c+4|0;if((a|0)!=(c|0)){continue}break}}else{a=c}i[d+4>>2]=a;return}a:{f=i[a>>2];g=c-f|0;d=g>>2;c=d+b|0;if(c>>>0<1073741824){h=d<<2;e=e-f|0;d=e>>1;e=e>>2>>>0<536870911?d>>>0>>0?c:d:1073741823;d=0;b:{if(!e){break b}if(e>>>0>=1073741824){break a}d=ho(e<<2)}c=h+d|0;b=c+(b<<2)|0;while(1){i[c>>2]=1;c=c+4|0;if((b|0)!=(c|0)){continue}break}c=d+(e<<2)|0;if((g|0)>=1){hp(d,f,g)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=d;if(f){bp(f)}return}Ho();x()}za(16648);x()}function um(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;d=F-48|0;F=d;e=uc(a,b);if((e|0)!=(a+4|0)){pm(a,e)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=i[c+4>>2];e=g[c+11|0];h=e&255;k=(e|0)<0?f:h;if(k){Qj(d,k);f=i[c+4>>2];l=i[d>>2];h=j[c+11|0];e=h}m=i[c>>2];k=c;c=e<<24>>24<0;hp(l,c?m:k,c?f:h);e=ro(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;c=i[d>>2];f=i[d+4>>2]-c|0;b=0;a:{if(!f){break a}Qj(d+28|0,f);c=i[d>>2];n=i[d+4>>2]-c|0;b=i[d+28>>2]}hp(b,c,n);qm(d+40|0,a,e,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;bp(a)}if(g[d+27|0]<=-1){bp(i[d+16>>2])}a=i[d>>2];if(a){i[d+4>>2]=a;bp(a)}F=d+48|0}function jc(a){var b=0,c=0,d=0,e=0;d=i[a+140>>2];if(d){b=i[a+144>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;bp(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+140>>2]}i[a+144>>2]=d;bp(c)}d=i[a+128>>2];if(d){b=i[a+132>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;bp(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+128>>2]}i[a+132>>2]=d;bp(c)}b=i[a+116>>2];if(b){i[a+120>>2]=b;bp(b)}b=i[a+104>>2];if(b){i[a+108>>2]=b;bp(b)}b=i[a+92>>2];if(b){i[a+96>>2]=b;bp(b)}jf(a+72|0);jf(a+52|0);jf(a+32|0);jf(a+12|0)}function xc(a,b){var c=0,d=0,e=0,f=0;e=i[a+16>>2];if(b){i[a+12>>2]=i[a+12>>2]|-2147483648>>>e}b=e+1|0;i[a+16>>2]=b;a:{b:{if((b|0)==32){b=i[a+4>>2];c:{if((b|0)!=i[a+8>>2]){i[b>>2]=i[a+12>>2];i[a+4>>2]=b+4;break c}e=i[a>>2];f=b-e|0;d=f>>2;c=d+1|0;if(c>>>0>=1073741824){break b}b=f>>1;c=d>>>0<536870911?b>>>0>>0?c:b:1073741823;b=0;d:{if(!c){break d}if(c>>>0>=1073741824){break a}b=ho(c<<2)}d=b+(d<<2)|0;i[d>>2]=i[a+12>>2];c=b+(c<<2)|0;d=d+4|0;if((f|0)>=1){hp(b,e,f)}i[a+8>>2]=c;i[a+4>>2]=d;i[a>>2]=b;if(!e){break c}bp(e)}i[a+12>>2]=0;i[a+16>>2]=0}return}Ho();x()}za(1752);x()}function Of(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0;f=a+4|0;a:{a=i[a+4>>2];if(a){e=j[c+11|0];d=e<<24>>24<0;k=d?i[c>>2]:c;e=d?i[c+4>>2]:e;while(1){c=j[a+27|0];d=c<<24>>24<0;c=d?i[a+20>>2]:c;l=c>>>0>>0;b:{c:{d:{e:{f:{h=l?c:e;g:{if(h){g=a+16|0;d=d?i[g>>2]:g;g=Km(k,d,h);if(!g){if(e>>>0>>0){break g}break f}if((g|0)>-1){break f}break g}if(e>>>0>=c>>>0){break e}}c=i[a>>2];if(c){break b}i[b>>2]=a;return a}c=Km(d,k,h);if(c){break d}}if(l){break c}break a}if((c|0)>-1){break a}}f=a+4|0;c=i[a+4>>2];if(!c){break a}a=f}f=a;a=c;continue}}i[b>>2]=f;return f}i[b>>2]=a;return f}function zc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;a:{e=i[a+8>>2];b:{if((e|0)!=i[a+12>>2]){break b}f=i[a+4>>2];g=i[a>>2];if(f>>>0>g>>>0){g=((f-g>>2)+1|0)/-2<<2;c=g+f|0;d=e-f|0;if(d){jp(c,f,d);f=i[a+4>>2]}e=c+d|0;i[a+8>>2]=e;i[a+4>>2]=f+g;break b}c=e-g|0;c=c?c>>1:1;if(c>>>0>=1073741824){break a}d=c<<2;h=ho(d);j=h+d|0;d=e-f|0;c=(c&-4)+h|0;e=c;if(d){e=c+d|0;d=c;while(1){i[d>>2]=i[f>>2];f=f+4|0;d=d+4|0;if((d|0)!=(e|0)){continue}break}}i[a+12>>2]=j;i[a+8>>2]=e;i[a+4>>2]=c;i[a>>2]=h;if(!g){break b}bp(g);e=i[a+8>>2]}i[e>>2]=i[b>>2];i[a+8>>2]=i[a+8>>2]+4;return}za(1752);x()}function Fa(a,b){var c=0;c=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=c;c=i[b+60>>2];i[a+56>>2]=i[b+56>>2];i[a+60>>2]=c;c=i[b+52>>2];i[a+48>>2]=i[b+48>>2];i[a+52>>2]=c;c=i[b+44>>2];i[a+40>>2]=i[b+40>>2];i[a+44>>2]=c;c=i[b+36>>2];i[a+32>>2]=i[b+32>>2];i[a+36>>2]=c;c=i[b+28>>2];i[a+24>>2]=i[b+24>>2];i[a+28>>2]=c;c=i[b+20>>2];i[a+16>>2]=i[b+16>>2];i[a+20>>2]=c;c=i[b+12>>2];i[a+8>>2]=i[b+8>>2];i[a+12>>2]=c;i[a+88>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;g[a+77|0]=0;g[a+78|0]=0;g[a+79|0]=0;g[a+80|0]=0;g[a+81|0]=0;g[a+82|0]=0;g[a+83|0]=0;g[a+84|0]=0;return a}function hm(a,b){var c=0,d=0,e=0,f=0,h=0,k=0;d=F-16|0;F=d;a:{b:{c=j[b+11|0];e=c<<24>>24;c:{if((e|0)<=-1){c=i[b+4>>2];if(c>>>0>255){break a}if(!c){break c}break b}if(e){break b}}g[d+15|0]=0;b=i[a+20>>2];if((b|0)<0?1:(b|0)<=0?l[a+16>>2]<=0:0){ca(a,i[a+4>>2],d+15|0,d+16|0)}h=1;break a}g[d+14|0]=c;h=i[a+20>>2];c=h;f=i[a+16>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ca(a,i[a+4>>2],d+14|0,d+15|0);f=i[a+16>>2];c=i[a+20>>2];e=j[b+11|0]}h=1;if((c|0)>0?1:(c|0)>=0?f>>>0>0:0){break a}f=a;k=i[a+4>>2];a=e<<24>>24<0;c=a?i[b>>2]:b;ca(f,k,c,c+(a?i[b+4>>2]:e&255)|0)}F=d+16|0;return h}function tm(a,b,c){var d=0,e=0,f=0,h=0;d=F-48|0;F=d;f=uc(a,b);if((f|0)!=(a+4|0)){pm(a,f)}e=ho(8);i[d>>2]=e;f=e+8|0;i[d+8>>2]=f;i[d+4>>2]=f;f=i[c+4>>2];c=i[c>>2];g[e|0]=c;g[e+1|0]=c>>>8;g[e+2|0]=c>>>16;g[e+3|0]=c>>>24;g[e+4|0]=f;g[e+5|0]=f>>>8;g[e+6|0]=f>>>16;g[e+7|0]=f>>>24;e=0;f=ro(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;b=i[d>>2];c=i[d+4>>2]-b|0;h=0;a:{if(!c){break a}Qj(d+28|0,c);b=i[d>>2];e=i[d+4>>2]-b|0;h=i[d+28>>2]}hp(h,b,e);qm(d+40|0,a,f,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;bp(a)}if(g[d+27|0]<=-1){bp(i[d+16>>2])}a=i[d>>2];if(a){bp(a)}F=d+48|0}function uc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;g=a+4|0;a=i[a+4>>2];a:{b:{if(!a){break b}d=j[b+11|0];c=d<<24>>24<0;k=c?i[b>>2]:b;e=c?i[b+4>>2]:d;c=g;while(1){b=j[a+27|0];l=b<<24>>24<0;h=l?i[a+20>>2]:b;f=e>>>0>>0;d=f?e:h;c:{if(d){b=a+16|0;b=Km(l?i[b>>2]:b,k,d);if(b){break c}}b=h>>>0>>0?-1:f}c=(b|0)<0?c:a;a=i[(b>>>29&4)+a>>2];if(a){continue}break}if((c|0)==(g|0)){break b}a=j[c+27|0];f=a<<24>>24<0;d:{d=f?i[c+20>>2]:a;b=d>>>0>>0?d:e;if(b){a=c+16|0;a=Km(k,f?i[a>>2]:a,b);if(a){break d}}if(e>>>0>>0){break b}break a}if((a|0)>-1){break a}}c=g}return c}function Cl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=F-16|0;F=e;a:{if(!a){break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;h=a+96|0;g=i[a+96>>2];d=(i[a+100>>2]-g|0)/12|0;b:{if(d>>>0>>0){Dl(h,b-d|0,e);break b}if(d>>>0>b>>>0){i[a+100>>2]=g+o(b,12)}if(!b){break a}}g=i[h>>2];d=0;while(1){j=o(d,12);f=j+c|0;k=i[f>>2];l=i[f+8>>2];m=i[f+4>>2];f=(i[a+100>>2]-g|0)/12|0;c:{if(f>>>0>d>>>0){d=d+1|0;break c}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;d=d+1|0;Dl(h,d-f|0,e);g=i[h>>2]}f=g+j|0;i[f+8>>2]=l;i[f+4>>2]=m;i[f>>2]=k;if((b|0)!=(d|0)){continue}break}}F=e+16|0;return(a|0)!=0}function qm(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0;h=F-16|0;F=h;l=a;j=Of(b,h+12|0,c);c=i[j>>2];if(c){b=0}else{c=ho(40);e=d+8|0;i[c+24>>2]=i[e>>2];f=i[d+4>>2];i[c+16>>2]=i[d>>2];i[c+20>>2]=f;i[d>>2]=0;i[d+4>>2]=0;i[e>>2]=0;i[c+36>>2]=0;i[c+28>>2]=0;i[c+32>>2]=0;f=i[d+12>>2];k=i[d+16>>2]-f|0;e=0;a:{if(!k){break a}e=c+28|0;Qj(e,k);f=i[d+12>>2];m=i[d+16>>2]-f|0;e=i[e>>2]}hp(e,f,m);i[c+8>>2]=i[h+12>>2];i[c>>2]=0;i[c+4>>2]=0;i[j>>2]=c;e=i[i[b>>2]>>2];d=c;b:{if(!e){break b}i[b>>2]=e;d=i[j>>2]}Kf(i[b+4>>2],d);i[b+8>>2]=i[b+8>>2]+1;b=1}g[l+4|0]=b;i[a>>2]=c;F=h+16|0}function ra(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){d=i[a+4>>2]-e|0;f=d>>2;d=g>>>0>f>>>0?b+d|0:c;h=d-b|0;if(h){jp(e,b,h)}if(g>>>0>f>>>0){b=i[a+4>>2];c=c-d|0;if((c|0)>=1){b=hp(b,d,c)+c|0}i[a+4>>2]=b;return}i[a+4>>2]=e+h;return}if(e){i[a+4>>2]=e;bp(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=ho(e);i[a>>2]=c;i[a+4>>2]=c;i[a+8>>2]=c+e;if((f|0)>=1){c=hp(c,b,f)+f|0}i[a+4>>2]=c;return}Ho();x()}function Rl(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=-1;a:{if((b|0)==-1){break a}e=i[i[a+24>>2]+(b<<2)>>2];if((e|0)==-1){return 0}f=0;c=1;b=e;while(1){f=f+1|0;h=c;b:{if(c&255){c=0;d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0;if((b|0)==-1){b=e;break b}d=i[i[a+12>>2]+(b<<2)>>2];if((d|0)==-1){b=e;break b}b=e;g=d+1|0;d=(g>>>0)%3|0?g:d+ -2|0;if((d|0)==-1){break b}c=h;b=d;if((e|0)!=(b|0)){break b}break a}b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)==-1){break a}c=i[i[a+12>>2]+(b<<2)>>2];if((c|0)==-1){break a}if((c>>>0)%3|0){b=c+ -1|0}else{b=c+2|0}c=0}if((b|0)!=-1){continue}break}}return f}function Dm(a,b){var c=0,d=0,e=0,f=0;a:{if((b|0)<0){break a}c=i[a+24>>2];d=i[a+28>>2];if((c|0)==(d|0)){break a}while(1){f=c+4|0;e=i[c>>2];if(i[e+24>>2]==(b|0)){b:{if((d|0)!=(f|0)){while(1){b=i[f>>2];i[f>>2]=0;i[c>>2]=b;if(e){yk(e+12|0,i[e+16>>2]);zk(e,i[e+4>>2]);bp(e)}c=c+4|0;f=f+4|0;if((d|0)!=(f|0)){e=i[c>>2];continue}break}d=i[a+28>>2];if((d|0)==(c|0)){break b}}while(1){d=d+ -4|0;b=i[d>>2];i[d>>2]=0;if(b){yk(b+12|0,i[b+16>>2]);zk(b,i[b+4>>2]);bp(b)}if((c|0)!=(d|0)){continue}break}}i[a+28>>2]=c;return}c=f;if((d|0)!=(c|0)){continue}break}}}function ul(a,b,c,d){var e=0,f=0,h=0,j=0;e=F-32|0;F=e;a:{b:{c:{if(!a){break c}f=mp(b);if(f>>>0>=4294967280){break b}d:{e:{if(f>>>0>=11){j=f+16&-16;h=ho(j);i[e+24>>2]=j|-2147483648;i[e+16>>2]=h;i[e+20>>2]=f;break e}g[e+27|0]=f;h=e+16|0;if(!f){break d}}hp(h,b,f)}g[f+h|0]=0;i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(d){if(d>>>0>=1073741824){break a}f=d<<2;b=ho(f);i[e>>2]=b;d=b+(d<<2)|0;i[e+8>>2]=d;hp(b,c,f);i[e+4>>2]=d}rm(a,e+16|0,e);b=i[e>>2];if(b){i[e+4>>2]=b;bp(b)}if(g[e+27|0]>-1){break c}bp(i[e+16>>2])}F=e+32|0;return(a|0)!=0}qo();x()}Ho();x()}function fd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=F-16|0;F=d;a:{if(!Cc(a,b,c)){break a}if(f=(I[i[i[a>>2]+32>>2]](a)|0)==1,g=0,h=i[i[a+8>>2]+28>>2]+ -1>>>0>5,h?f:g){break a}g=d+8|0,h=a,j=gf(c,i[b+48>>2]),f=i[i[a>>2]+48>>2],I[f](g|0,h|0,j|0);b=i[d+8>>2];i[d+8>>2]=0;c=i[a+36>>2];i[a+36>>2]=b;e=1;if(c){I[i[i[c>>2]+4>>2]](c);b=i[d+8>>2];i[d+8>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[a+36>>2]}if(!b){break a}if(I[i[i[a>>2]+36>>2]](a,b)|0){break a}b=i[a+36>>2];i[a+36>>2]=0;if(!b){break a}I[i[i[b>>2]+4>>2]](b)}F=d+16|0;return e|0}function sc(a){a=a|0;var b=0,c=0,d=0;i[a>>2]=1596;b=i[a+60>>2];if(b){c=i[a- -64>>2];d=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;d=i[c>>2];i[c>>2]=0;if(d){Wb(d)}if((b|0)!=(c|0)){continue}break}d=i[a+60>>2]}i[a+64>>2]=b;bp(d)}b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}b=i[a+36>>2];if(b){c=i[a+40>>2];d=b;b:{if((b|0)==(c|0)){break b}while(1){c=c+ -24|0;I[i[i[c>>2]>>2]](c)|0;if((b|0)!=(c|0)){continue}break}d=i[a+36>>2]}i[a+40>>2]=b;bp(d)}i[a>>2]=1432;b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;bp(b)}return a|0}function Fc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;d=i[a+8>>2];e=i[d+40>>2];h=ho((e|0)>-1?e:-1);a:{g=i[b>>2];k=i[b+4>>2];if((g|0)==(k|0)){break a}o=e+h|0;while(1){f=i[(m<<2)+g>>2];e=h;p=i[i[d>>2]>>2];q=i[d+48>>2];n=i[d+40>>2];r=n;s=i[d+44>>2];if(!j[d+84|0]){f=i[i[d+68>>2]+(f<<2)>>2]}d=e;e=up(r,s,f,0)+q|0;f=hp(d,e+p|0,n);e=i[c+20>>2];if((e|0)<0?1:(e|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],f,o);g=i[b>>2];k=i[b+4>>2]}m=m+1|0;if(m>>>0>=k-g>>2>>>0){break a}d=i[a+8>>2];continue}}bp(h);return 1}function fc(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;f=F-32|0;F=f;i[a>>2]=i[d>>2];d=i[c>>2]-i[b>>2]|0;i[a+4>>2]=d;g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){d=a+4|0;ca(e,i[e+4>>2],a,d);g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){ca(e,i[e+4>>2],d,d+4|0)}d=i[d>>2]}if(d){d=a+12|0;pf(d);g=a+44|0;kf(g);h=a- -64|0;kf(h);j=a+84|0;kf(j);i[f+24>>2]=i[b+8>>2];k=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=k;i[f+8>>2]=i[c+8>>2];b=i[c+4>>2];i[f>>2]=i[c>>2];i[f+4>>2]=b;qc(a,f+16|0,f);sf(d,e);lf(g,e);lf(h,e);lf(j,e)}F=f+32|0;return 1}function ic(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;f=F-32|0;F=f;i[a>>2]=i[d>>2];d=i[c>>2]-i[b>>2]|0;i[a+4>>2]=d;g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){d=a+4|0;ca(e,i[e+4>>2],a,d);g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){ca(e,i[e+4>>2],d,d+4|0)}d=i[d>>2]}if(d){d=a+12|0;kf(d);g=a+32|0;kf(g);h=a+52|0;kf(h);j=a+72|0;kf(j);i[f+24>>2]=i[b+8>>2];k=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=k;i[f+8>>2]=i[c+8>>2];b=i[c+4>>2];i[f>>2]=i[c>>2];i[f+4>>2]=b;rc(a,f+16|0,f);lf(d,e);lf(g,e);lf(h,e);lf(j,e)}F=f+32|0;return 1}function So(a,b,c){var d=0,e=0,f=0;d=F+ -64|0;F=d;f=i[a>>2];e=i[f+ -4>>2];f=i[f+ -8>>2];i[d+20>>2]=0;i[d+16>>2]=b;i[d+12>>2]=a;i[d+8>>2]=c;b=0;ip(d+24|0,0,39);a=a+f|0;a:{if(Qo(e,c,0)){i[d+56>>2]=1;I[i[i[e>>2]+20>>2]](e,d+8|0,a,a,1,0);b=i[d+32>>2]==1?a:0;break a}I[i[i[e>>2]+24>>2]](e,d+8|0,a,1,0);b:{switch(i[d+44>>2]){case 0:b=i[d+48>>2]==1?i[d+36>>2]==1?i[d+40>>2]==1?i[d+28>>2]:0:0:0;break a;case 1:break b;default:break a}}if(i[d+32>>2]!=1){if(i[d+48>>2]|i[d+36>>2]!=1|i[d+40>>2]!=1){break a}}b=i[d+24>>2]}F=d- -64|0;return b}function ve(a,b,c,d){var e=0,f=0;e=ho(128);i[e+4>>2]=b;b=i[c+4>>2];i[e+8>>2]=i[c>>2];i[e+12>>2]=b;b=i[c+12>>2];i[e+16>>2]=i[c+8>>2];i[e+20>>2]=b;i[e+24>>2]=i[c+16>>2];b=i[d+4>>2];i[e+28>>2]=i[d>>2];i[e+32>>2]=b;b=d+8|0;c=b;f=i[c+4>>2];i[e+36>>2]=i[c>>2];i[e+40>>2]=f;i[e+48>>2]=0;i[e+52>>2]=0;i[e>>2]=8916;c=i[d+4>>2];i[e+56>>2]=i[d>>2];i[e+60>>2]=c;d=i[b+4>>2];c=e- -64|0;i[c>>2]=i[b>>2];i[c+4>>2]=d;i[e+88>>2]=1065353216;i[e+92>>2]=-1;i[e+80>>2]=-1;i[e+84>>2]=-1;i[e+72>>2]=1;i[e+76>>2]=-1;i[e+44>>2]=9160;mf(e+96|0);i[a>>2]=e}function ue(a,b,c,d){var e=0,f=0;e=ho(128);i[e+4>>2]=b;b=i[c+4>>2];i[e+8>>2]=i[c>>2];i[e+12>>2]=b;b=i[c+12>>2];i[e+16>>2]=i[c+8>>2];i[e+20>>2]=b;i[e+24>>2]=i[c+16>>2];b=i[d+4>>2];i[e+28>>2]=i[d>>2];i[e+32>>2]=b;b=d+8|0;c=b;f=i[c+4>>2];i[e+36>>2]=i[c>>2];i[e+40>>2]=f;i[e+48>>2]=0;i[e+52>>2]=0;i[e>>2]=7292;c=i[d+4>>2];i[e+56>>2]=i[d>>2];i[e+60>>2]=c;d=i[b+4>>2];c=e- -64|0;i[c>>2]=i[b>>2];i[c+4>>2]=d;i[e+88>>2]=1065353216;i[e+92>>2]=-1;i[e+80>>2]=-1;i[e+84>>2]=-1;i[e+72>>2]=1;i[e+76>>2]=-1;i[e+44>>2]=7552;mf(e+96|0);i[a>>2]=e}function yl(a,b,c,d,e,f){var g=0,h=0,k=0,l=0,m=0;g=F-16|0;F=g;a:{if(!a){b=-1;break a}h=ho(96);Ga(Ea(h),b,d<<24>>24,f,c);i[g>>2]=h;i[g+8>>2]=0;h=zm(a,g);b=i[g>>2];i[g>>2]=0;if(b){Wb(b)}if(c){k=i[i[a+8>>2]+(h<<2)>>2];b=0;while(1){f=b;l=i[i[k>>2]>>2];if(!j[k+84|0]){f=i[i[k+68>>2]+(b<<2)>>2]}m=f;f=i[k+40>>2];hp(o(m,f)+l|0,(o(b,d)<<1)+e|0,f);b=b+1|0;if((c|0)!=(b|0)){continue}break}}d=i[a+80>>2];b:{c:{if(!d){i[a+80>>2]=c;break c}b=-1;if((c|0)!=(d|0)){break b}}b=h}a=i[g+8>>2];i[g+8>>2]=0;if(!a){break a}Wb(a)}F=g+16|0;return b}function wl(a,b,c,d,e,f){var g=0,h=0,k=0,l=0,m=0;g=F-16|0;F=g;a:{if(!a){b=-1;break a}h=ho(96);Ga(Ea(h),b,d<<24>>24,f,c);i[g>>2]=h;i[g+8>>2]=0;h=zm(a,g);b=i[g>>2];i[g>>2]=0;if(b){Wb(b)}if(c){k=i[i[a+8>>2]+(h<<2)>>2];b=0;while(1){f=b;l=i[i[k>>2]>>2];if(!j[k+84|0]){f=i[i[k+68>>2]+(b<<2)>>2]}m=f;f=i[k+40>>2];hp(o(m,f)+l|0,(o(b,d)<<2)+e|0,f);b=b+1|0;if((c|0)!=(b|0)){continue}break}}d=i[a+80>>2];b:{c:{if(!d){i[a+80>>2]=c;break c}b=-1;if((c|0)!=(d|0)){break b}}b=h}a=i[g+8>>2];i[g+8>>2]=0;if(!a){break a}Wb(a)}F=g+16|0;return b}function Kg(a,b,c,d,e){var f=0,g=0,h=0,j=0;h=Ng(a,b,c,e);f=i[e>>2];e=i[f>>2];a:{f=i[f+4>>2]-e>>3;g=i[d>>2];if(f>>>0<=g>>>0){break a}j=i[c>>2];if(f>>>0<=j>>>0){break a}if(l[e+(g<<3)>>2]>2]){i[c>>2]=g;i[d>>2]=j;d=i[c>>2];if(f>>>0<=d>>>0){break a}g=i[b>>2];if(f>>>0<=g>>>0){break a}if(l[e+(d<<3)>>2]>=l[e+(g<<3)>>2]){return h+1|0}i[b>>2]=d;i[c>>2]=g;c=i[b>>2];if(f>>>0<=c>>>0){break a}d=i[a>>2];if(f>>>0<=d>>>0){break a}if(l[e+(c<<3)>>2]>=l[e+(d<<3)>>2]){return h+2|0}i[a>>2]=c;i[b>>2]=d;h=h+3|0}return h}Io();x()}function xl(a,b,c,d,e,f){var g=0,h=0,k=0,l=0,m=0;g=F-16|0;F=g;a:{if(!a){b=-1;break a}h=ho(96);Ga(Ea(h),b,d<<24>>24,f,c);i[g>>2]=h;i[g+8>>2]=0;h=zm(a,g);b=i[g>>2];i[g>>2]=0;if(b){Wb(b)}if(c){k=i[i[a+8>>2]+(h<<2)>>2];b=0;while(1){f=b;l=i[i[k>>2]>>2];if(!j[k+84|0]){f=i[i[k+68>>2]+(b<<2)>>2]}m=f;f=i[k+40>>2];hp(o(m,f)+l|0,o(b,d)+e|0,f);b=b+1|0;if((c|0)!=(b|0)){continue}break}}d=i[a+80>>2];b:{c:{if(!d){i[a+80>>2]=c;break c}b=-1;if((c|0)!=(d|0)){break b}}b=h}a=i[g+8>>2];i[g+8>>2]=0;if(!a){break a}Wb(a)}F=g+16|0;return b}function pd(a,b,c,d,e){var f=0,g=0,h=0,j=0;f=F-32|0;F=f;h=i[i[i[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((I[i[i[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}j=I[i[i[b>>2]+52>>2]](b)|0;g=I[i[i[b>>2]+60>>2]](b,d)|0;if(!(g?j:0)){i[a>>2]=0;break a}d=I[i[i[b>>2]+56>>2]](b,d)|0;if(d){b=i[b+56>>2];i[f+20>>2]=d;i[f+16>>2]=b;i[f+28>>2]=g;i[f+24>>2]=g+12;qd(a,c,h,e,f+16|0);if(!i[a>>2]){break b}break a}b=i[b+56>>2];i[f+20>>2]=j;i[f+16>>2]=b;i[f+28>>2]=g;i[f+24>>2]=g+12;rd(a,c,h,e,f+16|0);if(i[a>>2]){break a}}i[a>>2]=0}F=f+32|0}function Yo(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(Qo(a,i[b+8>>2],e)){Xo(b,c,d);return}a:{if(Qo(a,i[b>>2],e)){if(!(i[b+20>>2]!=(c|0)?i[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}i[b+32>>2]=1;return}i[b+32>>2]=d;b:{if(i[b+44>>2]==4){break b}h[b+52>>1]=0;a=i[a+8>>2];I[i[i[a>>2]+20>>2]](a,b,c,c,1,e);if(j[b+53|0]){i[b+44>>2]=3;if(!j[b+52|0]){break b}break a}i[b+44>>2]=4}i[b+20>>2]=c;i[b+40>>2]=i[b+40>>2]+1;if(i[b+36>>2]!=1|i[b+24>>2]!=2){break a}g[b+54|0]=1;return}a=i[a+8>>2];I[i[i[a>>2]+24>>2]](a,b,c,d,e)}}function vn(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;a:{if(f&64){c=f+ -64|0;b=c&31;if(32<=(c&63)>>>0){c=0;b=e>>>b|0}else{c=e>>>b|0;b=((1<>>b}d=0;e=0;break a}if(!f){break a}h=e;j=d;k=64-f|0;g=k&31;if(32<=(k&63)>>>0){h=j<>>32-g|h<>>0){g=0;b=c>>>b|0}else{g=c>>>b|0;b=((1<>>b}b=k|b;c=g|h;g=d;d=f&31;if(32<=(f&63)>>>0){h=0;d=e>>>d|0}else{h=e>>>d|0;d=((1<>>d}e=h}i[a>>2]=b;i[a+4>>2]=c;i[a+8>>2]=d;i[a+12>>2]=e}function rm(a,b,c){var d=0,e=0,f=0,h=0;d=F-48|0;F=d;e=uc(a,b);if((e|0)!=(a+4|0)){pm(a,e)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;e=i[c>>2];f=i[c+4>>2]-e|0;if(f){Qj(d,f);e=i[c>>2];c=i[d>>2]}else{c=0}hp(c,e,f);f=ro(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;e=0;b=i[d>>2];c=i[d+4>>2]-b|0;h=0;a:{if(!c){break a}Qj(d+28|0,c);e=i[d+28>>2];b=i[d>>2];h=i[d+4>>2]-b|0}c=h;hp(e,b,c);qm(d+40|0,a,f,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;bp(a)}if(g[d+27|0]<=-1){bp(i[d+16>>2])}a=i[d>>2];if(a){i[d+4>>2]=a;bp(a)}F=d+48|0}function rn(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0;h=-1;f=d&2147483647;i=f;g=c;a:{if(!c&(f|0)==2147418112?a|b:(f|0)==2147418112&c>>>0>0|f>>>0>2147418112){break a}f=e&2147483647;j=f;if((f|0)==2147418112?0:f>>>0>2147418112){break a}if(!(a|g|(i|j|b))){return 0}g=d&e;if((g|0)>0?1:(g|0)>=0){if(!c&(d|0)==(e|0)?!b&a>>>0<0|b>>>0<0:(d|0)<(e|0)?1:(d|0)<=(e|0)?c>>>0<0:0){break a}return(a|c)!=0|(d^e|b)!=0}if(!c&(d|0)==(e|0)?!b&a>>>0>0|b>>>0>0:(d|0)>(e|0)?1:(d|0)>=(e|0)?c>>>0>0:0){break a}h=(a|c)!=0|(d^e|b)!=0}return h}function bd(a,b){var c=0,d=0;c=F-32|0;F=c;a:{b:{if(i[a+8>>2]<<5>>>0>=b>>>0){break b}i[c+24>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;if((b|0)<=-1){break a}b=(b+ -1>>>5|0)+1|0;d=ho(b<<2);i[c+24>>2]=b;i[c+20>>2]=0;i[c+16>>2]=d;b=i[a>>2];i[c+12>>2]=0;i[c+8>>2]=b;d=i[a+4>>2];i[c+4>>2]=d&31;i[c>>2]=b+(d>>>3&536870908);cd(c+16|0,c+8|0,c);b=i[a>>2];i[a>>2]=i[c+16>>2];i[c+16>>2]=b;d=i[a+4>>2];i[a+4>>2]=i[c+20>>2];i[c+20>>2]=d;d=i[a+8>>2];i[a+8>>2]=i[c+24>>2];i[c+24>>2]=d;if(!b){break b}bp(b)}F=c+32|0;return}Ho();x()}function om(a,b,c){var d=0,e=0,f=0,h=0;d=F-48|0;F=d;e=uc(a,b);if((e|0)!=(a+4|0)){pm(a,e)}e=ho(4);i[d>>2]=e;f=e+4|0;i[d+8>>2]=f;i[d+4>>2]=f;c=i[c>>2];g[e|0]=c;g[e+1|0]=c>>>8;g[e+2|0]=c>>>16;g[e+3|0]=c>>>24;f=ro(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;e=0;b=i[d>>2];c=i[d+4>>2]-b|0;h=0;a:{if(!c){break a}Qj(d+28|0,c);e=i[d+28>>2];b=i[d>>2];h=i[d+4>>2]-b|0}c=h;hp(e,b,c);qm(d+40|0,a,f,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;bp(a)}if(g[d+27|0]<=-1){bp(i[d+16>>2])}a=i[d>>2];if(a){bp(a)}F=d+48|0}function fm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;c=F-16|0;F=c;d=i[b+100>>2];h=i[b+96>>2];i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=d-h|0;e=(d|0)/12|0;a:{if(d){if(e>>>0>=357913942){break a}f=ho(d);i[c>>2]=f;g=f+o(e,12)|0;i[c+8>>2]=g;b=0;f=ip(f,0,d-((d+ -12>>>0)%12|0)|0);i[c+4>>2]=g;g=e>>>0>1?e:1;while(1){e=o(b,12);d=e+h|0;j=i[d+4>>2];k=i[d>>2];e=e+f|0;i[e+8>>2]=i[d+8>>2];i[e>>2]=k;i[e+4>>2]=j;b=b+1|0;if((g|0)!=(b|0)){continue}break}}Jl(a,c);a=i[c>>2];if(a){i[c+4>>2]=a;bp(a)}F=c+16|0;return}Ho();x()}function sn(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;a:{if(f&64){d=b;e=f+ -64|0;b=e&31;if(32<=(e&63)>>>0){e=d<>>32-b|c<>>0){h=g<>>32-d|e<>>0){f=0;d=d>>>e|0}else{f=d>>>e|0;d=((1<>>e}d=k|d;e=f|h;f=b;b=j&31;if(32<=(j&63)>>>0){h=f<>>32-b|c<>2]=b;i[a+4>>2]=c;i[a+8>>2]=d;i[a+12>>2]=e}function te(a,b,c,d){var e=0,f=0,g=0,h=0;e=F-32|0;F=e;g=i[i[i[b+4>>2]+8>>2]+(c<<2)>>2];a:{b:{if((I[i[i[b>>2]+8>>2]](b)|0)!=1){break b}h=I[i[i[b>>2]+52>>2]](b)|0;f=I[i[i[b>>2]+60>>2]](b,c)|0;if(!(f?h:0)){i[a>>2]=0;break a}c=I[i[i[b>>2]+56>>2]](b,c)|0;if(c){b=i[b+56>>2];i[e+20>>2]=c;i[e+16>>2]=b;i[e+28>>2]=f;i[e+24>>2]=f+12;ue(a,g,d,e+16|0);if(!i[a>>2]){break b}break a}b=i[b+56>>2];i[e+20>>2]=h;i[e+16>>2]=b;i[e+28>>2]=f;i[e+24>>2]=f+12;ve(a,g,d,e+16|0);if(i[a>>2]){break a}}i[a>>2]=0}F=e+32|0}function oc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;a:{b:{if(b){if(b>>>0>=357913942){break b}e=o(b,12);b=ho(e);i[a>>2]=b;i[a+4>>2]=b;f=b+e|0;i[a+8>>2]=f;g=i[c>>2];d=i[c+4>>2]-g|0;h=d>>2;j=h>>>0<1073741824;k=(d|0)<1;l=d>>>2<<2;while(1){i[b+8>>2]=0;i[b>>2]=0;i[b+4>>2]=0;if(d){if(!j){break a}c=ho(d);i[b>>2]=c;i[b+4>>2]=c;i[b+8>>2]=c+(h<<2);e=b;if(!k){c=hp(c,g,d)+l|0}i[e+4>>2]=c}b=b+12|0;if((f|0)!=(b|0)){continue}break}i[a+4>>2]=f}return}Ho();x()}Ho();x()}function Mg(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0;e=a+8|0;Ng(a,a+4|0,e,c);a:{d=a+12|0;if((d|0)!=(b|0)){c=i[c>>2];f=i[c>>2];g=i[c+4>>2]-f>>3;while(1){h=i[d>>2];if(g>>>0<=h>>>0){break a}j=d;d=i[e>>2];if(g>>>0<=d>>>0){break a}k=j;m=(h<<3)+f|0;if(l[m>>2]>2]){while(1){b:{i[k>>2]=d;c=e;if((c|0)==(a|0)){c=a;break b}e=c+ -4|0;d=i[e>>2];if(g>>>0<=d>>>0){break a}k=c;if(l[m>>2]>2]){continue}}break}i[c>>2]=h}e=j;d=e+4|0;if((d|0)!=(b|0)){continue}break}}return}Io();x()}function vj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{c=i[a+8>>2];b:{if((c|0)<0){break b}d=i[a+4>>2];b=i[d>>2];e=i[d+4>>2]-b>>2;c:{if(c>>>0>e>>>0){wj(d,c-e|0);f=i[a+8>>2];break c}f=c;if(c>>>0>=e>>>0){break c}i[d+4>>2]=b+(c<<2);f=c}g=f;if((f|0)<1){break b}a=i[a+4>>2];b=i[a+4>>2];d=i[a>>2];a=b-d|0;e=(a|0)>-1?a:-1;b=d-b|0;b=o((e|0)<1?e:1,((b|0)>(a|0)?b:a)>>>2|0);a=0;while(1){if((a|0)==(b|0)){break a}i[d+(a<<2)>>2]=a;a=a+1|0;if((a|0)<(g|0)){continue}break}}return(c^-1)>>>31|0}Io();x()}function Vl(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=16864;b=i[a+68>>2];if(b){i[a+72>>2]=b;bp(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;bp(b)}b=i[a+44>>2];if(b){i[a+48>>2]=b;bp(b)}b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;bp(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){Wb(b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;bp(b)}b=i[a+4>>2];i[a+4>>2]=0;if(b){Al(b)}return a|0}function Bl(a,b,c){var d=0,e=0,f=0;e=F-16|0;F=e;a:{if(!c|(!a|(b|0)<0)){break a}f=i[a+8>>2];if(i[a+12>>2]-f>>2<=(b|0)){break a}if(!i[a+4>>2]){d=ho(36);i[d+4>>2]=0;i[d+8>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+32>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d>>2]=d+4;i[d+12>>2]=d+16;i[a+4>>2]=d}d=i[i[(b<<2)+f>>2]+60>>2];b=ho(28);lm(b,c);i[b+24>>2]=d;a=i[a+4>>2];i[e+8>>2]=b;jm(a,e+8|0);a=i[e+8>>2];i[e+8>>2]=0;d=1;if(!a){break a}yk(a+12|0,i[a+16>>2]);zk(a,i[a+4>>2]);bp(a)}F=e+16|0;return d}function Wc(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=2032;b=i[a+72>>2];i[a+72>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;bp(b)}b=i[a+48>>2];if(b){bp(b)}d=i[a+36>>2];if(d){b=d;c=i[a+40>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+36>>2]}b=e;i[a+40>>2]=d;bp(b)}i[a>>2]=1432;b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;bp(b)}return a|0}function zi(a){var b=0,c=0,d=0,e=0,f=0;d=a+32|0;sf(a,d);c=i[a+80>>2];a:{if(!c){break a}b=1;if(i[a+84>>2]<1){break a}sf(c,d);if(i[a+84>>2]<2){break a}while(1){sf(i[a+80>>2]+(b<<5)|0,d);b=b+1|0;if((b|0)>2]){continue}break}}b=i[a+136>>2];if((b|0)!=i[a+140>>2]){c=0;while(1){e=o(c,12);b=e+b|0;Jb(i[b+4>>2]-i[b>>2]>>2,d);b=i[a+136>>2];f=e+b|0;e=i[f>>2];f=i[f+4>>2]-e|0;if(f){kg(e,f>>2,1,0,d);b=i[a+136>>2]}c=c+1|0;if(c>>>0<(i[a+140>>2]-b|0)/12>>>0){continue}break}}}function Sb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a=i[a+4>>2];if(a){c=j[b+11|0];d=c<<24>>24<0;g=d?i[b>>2]:b;b=d?i[b+4>>2]:c;while(1){c=j[a+27|0];d=c<<24>>24<0;c=d?i[a+20>>2]:c;h=c>>>0>>0;a:{b:{f=h?c:b;c:{if(f){e=a+16|0;d=d?i[e>>2]:e;e=Km(g,d,f);d:{if(!e){if(b>>>0>=c>>>0){break d}break a}if((e|0)<=-1){break a}}c=Km(d,g,f);if(!c){break c}if((c|0)<=-1){break b}return 1}if(b>>>0>>0){break a}}if(h){break b}return 1}a=a+4|0}a=i[a>>2];if(a){continue}break}}return 0}function wj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ho(d<<2)}b=b<<2;b=ip(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){hp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}za(13344);x()}function Ai(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ho(d<<2)}b=b<<2;b=ip(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){hp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}za(11708);x()}function ka(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ho(d<<2)}b=b<<2;b=ip(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){hp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}za(1244);x()}function Bd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ho(d<<2)}b=b<<2;b=ip(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){hp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}za(2400);x()}function Vj(a,b,c,d){var e=0,f=0,h=0;a:{if((c|0)<0?1:(c|0)<=0?b>>>0<1:0){break a}e=i[a+20>>2];if((e|0)>0?1:(e|0)>=0?l[a+16>>2]>0:0){break a}g[a+24|0]=d;e=a;f=a;b=b+7|0;if(b>>>0<7){c=c+1|0}c=vp(b,c,8,0);i[f+16>>2]=c;i[e+20>>2]=H;e=i[a>>2];b=i[a+4>>2]-e|0;h=c;c=b;f=c+8|0;d=d?f:c;f=h+d|0;c=f;b:{if(b>>>0>>0){Qj(a,c-b|0);e=i[a>>2];break b}if(b>>>0<=c>>>0){break b}i[a+4>>2]=c+e}b=ho(8);i[b+4>>2]=0;i[b>>2]=d+e;c=i[a+12>>2];i[a+12>>2]=b;if(!c){break a}bp(c)}}function ig(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>3>>>0>=b>>>0){if(b){b=b<<3;c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>3;d=g+b|0;if(d>>>0<536870912){c=0;g=g<<3;e=e-f|0;j=e>>2;d=e>>3>>>0<268435455?j>>>0>>0?d:j:536870911;if(d){if(d>>>0>=536870912){break a}c=ho(d<<3)}b=b<<3;b=ip(c+g|0,0,b)+b|0;d=(d<<3)+c|0;if((h|0)>=1){hp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}za(10734);x()}function Di(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+4>>2];e=i[a+8>>2];if(c>>>0>>0){i[c>>2]=i[b>>2];i[a+4>>2]=c+4;return}a:{f=i[a>>2];g=c-f|0;c=g>>2;d=c+1|0;if(d>>>0<1073741824){h=c<<2;e=e-f|0;c=e>>1;d=e>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=ho(d<<2)}e=h+c|0;i[e>>2]=i[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){hp(c,f,g)}i[a+8>>2]=b;i[a+4>>2]=d;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}za(11708);x()}function un(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=F-16|0;F=e;f=(Fp(b),Bp(2));c=f&2147483647;a:{if(c+ -8388608>>>0<=2130706431){d=c;c=c>>>7|0;d=d<<25;c=c+1065353216|0;g=d;c=d>>>0<0?c+1|0:c;break a}if(c>>>0>=2139095040){c=f;d=c>>>7|0;g=c<<25;c=d|2147418112;break a}if(!c){c=0;break a}d=c;c=r(c);sn(e,d,0,0,0,c+81|0);h=i[e>>2];j=i[e+4>>2];g=i[e+8>>2];c=i[e+12>>2]^65536|16265-c<<16}i[a>>2]=h;i[a+4>>2]=j;i[a+8>>2]=g;i[a+12>>2]=f&-2147483648|c;F=e+16|0}function ei(a){var b=0,c=0,d=0,e=0;pf(a);c=i[a+84>>2];a:{if((c|0)<1){break a}b=c<<5;d=ho((c|0)!=(c&134217727)?-1:b|4);i[d>>2]=c;d=d+4|0;c=d+b|0;b=d;while(1){b=mf(b)+32|0;if((c|0)!=(b|0)){continue}break}e=i[a+80>>2];i[a+80>>2]=d;if(e){c=e+ -4|0;d=i[c>>2];if(d){b=e+(d<<5)|0;while(1){b=nf(b+ -32|0);if((e|0)!=(b|0)){continue}break}}bp(c)}if(i[a+84>>2]<1){break a}b=0;while(1){pf(i[a+80>>2]+(b<<5)|0);b=b+1|0;if((b|0)>2]){continue}break}}}function Om(a,b){a:{if(a){if(b>>>0<=127){break a}b:{if(!i[i[4790]>>2]){if((b&-128)==57216){break a}break b}if(b>>>0<=2047){g[a+1|0]=b&63|128;g[a|0]=b>>>6|192;return 2}if(!((b&-8192)!=57344?b>>>0>=55296:0)){g[a+2|0]=b&63|128;g[a|0]=b>>>12|224;g[a+1|0]=b>>>6&63|128;return 3}if(b+ -65536>>>0<=1048575){g[a+3|0]=b&63|128;g[a|0]=b>>>18|240;g[a+2|0]=b>>>6&63|128;g[a+1|0]=b>>>12&63|128;return 4}}i[4805]=25;a=-1}else{a=1}return a}g[a|0]=b;return 1}function md(a,b,c,d){var e=0,f=0,h=0,j=0;e=F-80|0;F=e;f=Ba(e+16|0);h=i[i[a+8>>2]+56>>2];j=c<<24>>24;c=o(Sj(5),c);Ca(f,h,0,j,5,c,c>>31);c=ho(96);f=Fa(c,f);i[e+8>>2]=c;Ha(f,b);i[e+8>>2]=0;b=i[a+32>>2];i[a+32>>2]=c;if(b){Wb(b)}a:{if(!d){break a}a=i[a+32>>2];g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;if(b>>>0>>0){Xa(a+68|0,d-b|0,2396);break a}if(b>>>0<=d>>>0){break a}i[a+72>>2]=c+(d<<2)}a=i[e+8>>2];i[e+8>>2]=0;if(a){Wb(a)}F=e+80|0}function ta(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=F-16|0;F=d;e=i[a+4>>2];a:{if((e|0)==-1){break a}c=i[b+20>>2];if((c|0)>0?1:(c|0)>=0?l[b+16>>2]>0:0){break a}ca(b,i[b+4>>2],i[a+8>>2],i[a+12>>2]);c=i[b+20>>2];if((c|0)>0?1:(c|0)>=0?l[b+16>>2]>=1:0){break a}c=a+20|0;ca(b,i[b+4>>2],c,c+4|0);c=i[b+20>>2];f=i[b+16>>2];g[d+15|0]=i[a+4>>2];if((c|0)>0?1:(c|0)>=0?f>>>0>0:0){break a}ca(b,i[b+4>>2],d+15|0,d+16|0)}F=d+16|0;return(e|0)!=-1|0}function Ui(a,b){var c=0,d=0,e=0,f=0,g=0;d=i[a+4>>2];a=i[d+4>>2];if((a|0)!=i[d+8>>2]){i[a>>2]=b;i[d+4>>2]=a+4;return}a:{f=i[d>>2];g=a-f|0;e=g>>2;c=e+1|0;if(c>>>0<1073741824){a=g>>1;c=e>>>0<536870911?a>>>0>>0?c:a:1073741823;a=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}a=ho(c<<2)}e=a+(e<<2)|0;i[e>>2]=b;b=a+(c<<2)|0;c=e+4|0;if((g|0)>=1){hp(a,f,g)}i[d+8>>2]=b;i[d+4>>2]=c;i[d>>2]=a;if(f){bp(f)}return}Ho();x()}za(11708);x()}function Pl(a,b){var c=0,d=0,e=0,f=0,g=0;c=i[a+4>>2];if((c|0)!=i[a+8>>2]){i[c>>2]=i[b>>2];i[a+4>>2]=c+4;return}a:{f=i[a>>2];g=c-f|0;e=g>>2;d=e+1|0;if(d>>>0<1073741824){c=g>>1;d=e>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=ho(d<<2)}e=c+(e<<2)|0;i[e>>2]=i[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){hp(c,f,g)}i[a+8>>2]=b;i[a+4>>2]=d;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}za(16516);x()}function Tb(a,b,c,d){var e=0,f=0,h=0,k=p(0);e=F-32|0;F=e;h=a+4|0;a=uc(a,b);a:{if((h|0)==(a|0)){break a}f=ro(e+16|0,a+28|0);b=g[f+11|0];b:{c:{if((b|0)<=-1){if(!i[f+4>>2]){break b}a=i[f>>2];break c}a=e+16|0;if(!b){break a}}if((c|0)>=1){b=0;while(1){d:{k=nn(a,e+12|0);h=a;a=i[e+12>>2];if((h|0)==(a|0)){break d}m[(b<<2)+d>>2]=k;b=b+1|0;if((c|0)!=(b|0)){continue}}break}b=j[f+11|0]}if(b<<24>>24>-1){break a}}bp(i[f>>2])}F=e+32|0}function Cj(a,b,c){var d=0,e=0,f=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;a:{b:{if(!b){break b}if((b|0)<=-1){break a}e=b+ -1>>>5|0;f=e+1|0;d=ho(f<<2);i[a+8>>2]=f;i[a>>2]=d;f=j[c|0];i[a+4>>2]=b;i[(b>>>0<33?d:d+(e<<2)|0)>>2]=0;c=b>>>5|0;e=c<<2;if(f){d=ip(d,255,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;i[c>>2]=i[c>>2]|-1>>>32-b;return a}d=ip(d,0,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;i[c>>2]=i[c>>2]&(-1>>>32-b^-1)}return a}Ho();x()}function mm(a,b,c,d){var e=0,f=0,g=0,h=0,j=0;f=F-16|0;F=f;c=Nf(a,b,f+12|0,f+8|0,c);if(!i[c>>2]){b=ho(40);ro(b+16|0,d);i[b+36>>2]=0;i[b+28>>2]=0;i[b+32>>2]=0;g=i[d+12>>2];h=i[d+16>>2]-g|0;e=0;a:{if(!h){break a}e=b+28|0;Qj(e,h);g=i[d+12>>2];j=i[d+16>>2]-g|0;e=i[e>>2]}hp(e,g,j);i[b+8>>2]=i[f+12>>2];i[b>>2]=0;i[b+4>>2]=0;i[c>>2]=b;d=i[i[a>>2]>>2];if(d){i[a>>2]=d;b=i[c>>2]}Kf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}F=f+16|0}function Zj(a,b,c){var d=0,e=0,f=0,h=0;e=F-16|0;F=e;Co(e,c);f=Of(a,e+12|0,b);d=i[f>>2];if(!d){d=ho(40);ro(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;i[d+8>>2]=i[e+12>>2];i[d>>2]=0;i[d+4>>2]=0;i[f>>2]=d;b=i[i[a>>2]>>2];h=d;a:{if(!b){break a}i[a>>2]=b;h=i[f>>2]}b=h;Kf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}a=d+28|0;if(g[d+39|0]<=-1){bp(i[a>>2])}b=i[e+4>>2];i[a>>2]=i[e>>2];i[a+4>>2]=b;i[a+8>>2]=i[e+8>>2];F=e+16|0}function zb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){Ab(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}Ab(a,b)}}function xb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){yb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}yb(a,b)}}function rb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){sb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}sb(a,b)}}function pb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){qb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}qb(a,b)}}function nb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){ob(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}ob(a,b)}}function lb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){mb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}mb(a,b)}}function jj(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){kj(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}kj(a,b)}}function fb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){gb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}gb(a,b)}}function db(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){eb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}eb(a,b)}}function bb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){cb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}cb(a,b)}}function Nm(a,b){var c=0;c=(b|0)!=0;a:{b:{c:{if(!b|!(a&3)){break c}while(1){if(!j[a|0]){break b}a=a+1|0;b=b+ -1|0;c=(b|0)!=0;if(!b){break c}if(a&3){continue}break}}if(!c){break a}}d:{if(!j[a|0]|b>>>0<4){break d}while(1){c=i[a>>2];if((c^-1)&c+ -16843009&-2139062144){break d}a=a+4|0;b=b+ -4|0;if(b>>>0>3){continue}break}}if(!b){break a}while(1){if(!j[a|0]){return a}a=a+1|0;b=b+ -1|0;if(b){continue}break}}return 0}function Gl(a,b,c,d){var e=0,f=0,h=0;f=F-48|0;F=f;a:{if(!b){a=0;break a}e=Tj(f+16|0);h=0;b:{if((xm(b,0)|0)==-1){break b}if(c){h=0;if(!(I[i[i[b>>2]+16>>2]](b)|0)){break b}I[i[i[b>>2]+20>>2]](b)}uf(f,a,b,e);a=i[f>>2];if(g[f+15|0]<=-1){bp(i[f+4>>2])}h=0;if(a){break b}rl(d,i[e>>2],i[e+4>>2]);h=i[e+4>>2]-i[e>>2]|0}a=h;b=i[e+12>>2];i[e+12>>2]=0;if(b){bp(b)}b=i[e>>2];if(!b){break a}i[e+4>>2]=b;bp(b)}F=f+48|0;return a}function Fm(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){Jm(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+20>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}Jm(a,b)}}function Db(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){Eb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}Eb(a,b)}}function Bb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){Cb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}Cb(a,b)}}function $a(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){ab(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}ab(a,b)}}function Yj(a,b,c){var d=0,e=0,f=0;d=F-16|0;F=d;Bo(d,c);e=Of(a,d+12|0,b);c=i[e>>2];if(!c){c=ho(40);ro(c+16|0,b);i[c+36>>2]=0;i[c+28>>2]=0;i[c+32>>2]=0;i[c+8>>2]=i[d+12>>2];i[c>>2]=0;i[c+4>>2]=0;i[e>>2]=c;b=i[i[a>>2]>>2];f=c;a:{if(!b){break a}i[a>>2]=b;f=i[e>>2]}b=f;Kf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}a=c+28|0;if(g[c+39|0]<=-1){bp(i[a>>2])}b=i[d+4>>2];i[a>>2]=i[d>>2];i[a+4>>2]=b;i[a+8>>2]=i[d+8>>2];F=d+16|0}function Hh(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=10936;b=i[a+64>>2];i[a+64>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=13484;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;bp(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;bp(b)}return a|0}function Jl(a,b){var c=0,d=0,e=0;d=F-16|0;F=d;e=ho(88);c=e;i[c>>2]=0;i[c+4>>2]=0;i[c+64>>2]=0;i[c+68>>2]=0;i[c+56>>2]=0;i[c+48>>2]=0;i[c+52>>2]=0;i[c+40>>2]=0;i[c+44>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+72>>2]=0;i[c+76>>2]=0;i[c+80>>2]=0;i[c+84>>2]=0;i[c+60>>2]=c;a:{if(Kl(c,b)){i[a>>2]=e;break a}i[a>>2]=0;i[d+8>>2]=0;bi(e)}F=d+16|0}function Ih(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=10936;b=i[a+64>>2];i[a+64>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=13484;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;bp(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;bp(b)}bp(a)}function Fl(a,b,c){var d=0,e=0,f=0;e=F-48|0;F=e;a:{if(!b){a=0;break a}d=Tj(e+16|0);f=0;b:{if((xm(b,0)|0)==-1){break b}f=0;if(!(I[i[i[b>>2]+16>>2]](b)|0)){break b}I[i[i[b>>2]+20>>2]](b);Af(e,a,b,d);a=i[e>>2];if(g[e+15|0]<=-1){bp(i[e+4>>2])}f=0;if(a){break b}rl(c,i[d>>2],i[d+4>>2]);f=i[d+4>>2]-i[d>>2]|0}a=f;b=i[d+12>>2];i[d+12>>2]=0;if(b){bp(b)}b=i[d>>2];if(!b){break a}i[d+4>>2]=b;bp(b)}F=e+48|0;return a}function kc(a){pf(a);pf(a+32|0);pf(a- -64|0);pf(a+96|0);pf(a+128|0);pf(a+160|0);pf(a+192|0);pf(a+224|0);pf(a+256|0);pf(a+288|0);pf(a+320|0);pf(a+352|0);pf(a+384|0);pf(a+416|0);pf(a+448|0);pf(a+480|0);pf(a+512|0);pf(a+544|0);pf(a+576|0);pf(a+608|0);pf(a+640|0);pf(a+672|0);pf(a+704|0);pf(a+736|0);pf(a+768|0);pf(a+800|0);pf(a+832|0);pf(a+864|0);pf(a+896|0);pf(a+928|0);pf(a+960|0);pf(a+992|0);pf(a+1024|0)}function vo(a,b,c,d,e,f,h,j){var k=0,l=0,m=0;k=F-16|0;F=k;if((b^-1)+ -17>>>0>=c>>>0){l=Yn(a);a:{if(2147483623>b>>>0){i[k+8>>2]=b<<1;i[k+12>>2]=b+c;c=ao(i[Mn(k+12|0,k+8|0)>>2]);break a}c=-18}m=c+1|0;c=bo(m);if(e){Ln(c,l,e)}if(h){Ln(c+e|0,j,h)}d=d-f|0;j=d-e|0;if(j){Ln((c+e|0)+h|0,(e+l|0)+f|0,j)}if((b|0)!=10){bp(l)}co(a,c);eo(a,m);b=a;a=d+h|0;aa(b,a);g[k+7|0]=0;_n(a+c|0,k+7|0);F=k+16|0;return}qo();x()}function on(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=F-160|0;F=e;ip(e+16|0,0,144);i[e+92>>2]=-1;i[e+60>>2]=b;i[e+24>>2]=-1;i[e+20>>2]=b;en(e+16|0);jn(e,e+16|0,d);d=i[e+8>>2];g=i[e+12>>2];h=i[e>>2];j=i[e+4>>2];if(c){k=c;f=b;b=i[e+20>>2]-i[e+24>>2]|0;l=b;c=b+i[e+136>>2]|0;b=i[e+140>>2]+(b>>31)|0;b=c>>>0>>0?b+1|0:b;i[k>>2]=!(b|c)?f:f+c|0}i[a>>2]=h;i[a+4>>2]=j;i[a+8>>2]=d;i[a+12>>2]=g;F=e+160|0}function Af(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=F-96|0;F=e;f=Rf(e+40|0,c);vf(e,b,c);Vf(f,e);kd(e+24|0,i[e+28>>2]);wf(e+12|0,i[e+16>>2]);kd(e,i[e+4>>2]);Sf(a,f,d);if(!i[a>>2]){if(g[a+15|0]<=-1){bp(i[a+4>>2])}i[b+40>>2]=i[f+40>>2];i[b+44>>2]=i[f+44>>2];i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0}i[f>>2]=10308;kd(f+28|0,i[f+32>>2]);wf(f+16|0,i[f+20>>2]);kd(f+4|0,i[f+8>>2]);F=e+96|0}function nc(a){mf(a);mf(a+32|0);mf(a- -64|0);mf(a+96|0);mf(a+128|0);mf(a+160|0);mf(a+192|0);mf(a+224|0);mf(a+256|0);mf(a+288|0);mf(a+320|0);mf(a+352|0);mf(a+384|0);mf(a+416|0);mf(a+448|0);mf(a+480|0);mf(a+512|0);mf(a+544|0);mf(a+576|0);mf(a+608|0);mf(a+640|0);mf(a+672|0);mf(a+704|0);mf(a+736|0);mf(a+768|0);mf(a+800|0);mf(a+832|0);mf(a+864|0);mf(a+896|0);mf(a+928|0);mf(a+960|0);mf(a+992|0)}function mc(a){nf(a+992|0);nf(a+960|0);nf(a+928|0);nf(a+896|0);nf(a+864|0);nf(a+832|0);nf(a+800|0);nf(a+768|0);nf(a+736|0);nf(a+704|0);nf(a+672|0);nf(a+640|0);nf(a+608|0);nf(a+576|0);nf(a+544|0);nf(a+512|0);nf(a+480|0);nf(a+448|0);nf(a+416|0);nf(a+384|0);nf(a+352|0);nf(a+320|0);nf(a+288|0);nf(a+256|0);nf(a+224|0);nf(a+192|0);nf(a+160|0);nf(a+128|0);nf(a+96|0);nf(a- -64|0);nf(a+32|0);nf(a)}function Oc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0;d=F-16|0;F=d;f=Ib(a,b);a:{if(!f){break a}c=i[a+36>>2];if((c|0)==i[a+40>>2]){break a}h=d+16|0;while(1){c=i[(e<<2)+c>>2];j=d,k=I[i[i[c>>2]+32>>2]](c)|0,g[j+15|0]=k;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],d+15|0,h)}e=e+1|0;c=i[a+36>>2];if(e>>>0>2]-c>>2>>>0){continue}break}}F=d+16|0;return f|0}function Mi(a,b){var c=0,d=0,e=0;a:{if((a|0)!=(b|0)){e=a;c=i[b+4>>2];d=0;b:{if(!c){break b}c:{if(c>>>0<=i[a+8>>2]<<5>>>0){d=i[a>>2];break c}d=i[a>>2];if(d){bp(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;c=i[b+4>>2]}if((c|0)<=-1){break a}c=(c+ -1>>>5|0)+1|0;d=ho(c<<2);i[a+8>>2]=c;i[a+4>>2]=0;i[a>>2]=d;c=i[b+4>>2]}jp(d,i[b>>2],(c+ -1>>>3&536870908)+4|0);d=i[b+4>>2]}i[e+4>>2]=d}return}Ho();x()}function Il(a,b,c){var d=0,e=0,f=0;d=F-48|0;F=d;e=i[a+4>>2];a:{if(!e){break a}if(b){if(!(I[i[i[e>>2]+16>>2]](e)|0)){break a}b=i[a+4>>2];I[i[i[b>>2]+20>>2]](b)}b=Tj(d+16|0);Sf(d,i[a>>2],b);a=i[d>>2];if(g[d+15|0]<=-1){bp(i[d+4>>2])}if(!a){rl(c,i[b>>2],i[b+4>>2]);f=i[b+4>>2]-i[b>>2]|0}a=i[b+12>>2];i[b+12>>2]=0;if(a){bp(a)}a=i[b>>2];if(!a){break a}i[b+4>>2]=a;bp(a)}F=d+48|0;return f}function Yh(a,b){var c=0;c=i[b+8>>2];i[a+12>>2]=i[b+4>>2];i[a+16>>2]=c;i[a+28>>2]=i[b+20>>2];c=i[b+16>>2];i[a+20>>2]=i[b+12>>2];i[a+24>>2]=c;Mi(a+32|0,b+24|0);Mi(a+44|0,b+36|0);if((a+8|0)==(b|0)){i[a+92>>2]=i[b+84>>2];return}Vh(a+56|0,i[b+48>>2],i[b+52>>2]);Vh(a+68|0,i[b+60>>2],i[b- -64>>2]);Vh(a+80|0,i[b+72>>2],i[b+76>>2]);i[a+92>>2]=i[b+84>>2];ra(a+96|0,i[b+88>>2],i[b+92>>2])}function pm(a,b){var c=0,d=0,e=0;c=i[b+4>>2];a:{if(!c){d=i[b+8>>2];if(i[d>>2]==(b|0)){break a}e=b+8|0;while(1){c=i[e>>2];e=c+8|0;d=i[c+8>>2];if((c|0)!=i[d>>2]){continue}break}break a}while(1){d=c;c=i[c>>2];if(c){continue}break}}if(i[a>>2]==(b|0)){i[a>>2]=d}i[a+8>>2]=i[a+8>>2]+ -1;vm(i[a+4>>2],b);a=i[b+28>>2];if(a){i[b+32>>2]=a;bp(a)}if(g[b+27|0]<=-1){bp(i[b+16>>2])}bp(b)}function ld(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0;d=i[a+8>>2];e=g[d+24|0];md(a,i[b+4>>2]-i[b>>2]>>2,e,c);c=i[b>>2];f=i[b+4>>2];if((c|0)==(f|0)){return 1}a=i[a+32>>2];h=i[i[a>>2]>>2]+i[a+48>>2]|0;b=0;while(1){a=i[c>>2];k=d;if(!j[d+84|0]){a=i[i[d+68>>2]+(a<<2)>>2]}a=Xb(k,a,g[d+24|0],(b<<2)+h|0);if(a){b=b+e|0;c=c+4|0;if((f|0)!=(c|0)){continue}}break}return a|0}function Yb(a,b){a=a|0;b=b|0;var c=0,d=0;c=i[a+36>>2];if((c|0)!=i[a+40>>2]){while(1){c=o(d,24)+c|0;I[i[i[c>>2]+28>>2]](c,b)|0;d=d+1|0;c=i[a+36>>2];if(d>>>0<(i[a+40>>2]-c|0)/24>>>0){continue}break}}c=i[a+48>>2];if((c|0)!=i[a+52>>2]){d=0;while(1){c=i[(d<<2)+c>>2];Jb((c|0)>-1?c<<1:(c^-1)<<1|1,b);d=d+1|0;c=i[a+48>>2];if(d>>>0>2]-c>>2>>>0){continue}break}}return 1}function Jg(a,b,c){var d=0,e=0,f=0;d=F-16|0;F=d;e=a;g[d+15|0]=a&127;a:{if(!b&a>>>0>=128|b>>>0>0){g[d+15|0]=e|128;e=i[c+20>>2];f=0;if((e|0)>0?1:(e|0)>=0?l[c+16>>2]>0:0){break a}ca(c,i[c+4>>2],d+15|0,d+16|0);f=Jg((b&127)<<25|a>>>7,b>>>7|0,c);break a}a=i[c+20>>2];if((a|0)<0?1:(a|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],d+15|0,d+16|0);f=1;break a}f=0}e=f;F=d+16|0;return e}function Qj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>>0>=b>>>0){if(b){c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}f=i[a>>2];g=c-f|0;d=g+b|0;if((d|0)>-1){c=0;e=e-f|0;h=e<<1;d=e>>>0<1073741823?h>>>0>>0?d:h:2147483647;if(d){c=ho(d)}d=c+d|0;b=ip(c+g|0,0,b)+b|0;if((g|0)>=1){hp(c,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}function lp(a,b,c){var d=0,e=0,f=0;a:{d=i[c+16>>2];if(!d){if(kp(c)){break a}d=i[c+16>>2]}f=i[c+20>>2];if(d-f>>>0>>0){I[i[c+36>>2]](c,a,b)|0;return}b:{if(g[c+75|0]<0){break b}d=b;while(1){e=d;if(!e){break b}d=e+ -1|0;if(j[d+a|0]!=10){continue}break}if(I[i[c+36>>2]](c,a,e)>>>0>>0){break a}a=a+e|0;b=b-e|0;f=i[c+20>>2]}hp(f,a,b);i[c+20>>2]=i[c+20>>2]+b}}function Bn(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;j=a;k=e;e=0;g=e;f=c;c=0;e=up(k,e,f,c);l=H;h=b;m=up(d,0,b,0);b=H;d=up(d,n,f,c);c=b+d|0;b=H;b=c>>>0>>0?b+1|0:b;f=b;d=b+e|0;b=l;b=d>>>0>>0?b+1|0:b;f=d;e=b;b=up(h,o,k,g)+c|0;d=H;g=b;d=b>>>0>>0?d+1|0:d;h=d;d=d+f|0;if(d>>>0>>0){e=e+1|0}i[j+8>>2]=d;i[j+12>>2]=e;i[a>>2]=m;i[a+4>>2]=g}function vl(a,b,c){var d=0,e=0,f=0,h=0;d=F-16|0;F=d;a:{b:{if(!a){break b}e=mp(b);if(e>>>0>=4294967280){break a}c:{d:{if(e>>>0>=11){f=e+16&-16;h=ho(f);i[d+8>>2]=f|-2147483648;i[d>>2]=h;i[d+4>>2]=e;f=d;break d}g[d+11|0]=e;f=d;h=d;if(!e){break c}}hp(h,b,e)}g[e+h|0]=0;sm(a,d,c);if(g[f+11|0]>-1){break b}bp(i[d>>2])}F=d+16|0;return(a|0)!=0}qo();x()}function tl(a,b,c){var d=0,e=0,f=0,h=0;d=F-16|0;F=d;a:{b:{if(!a){break b}e=mp(b);if(e>>>0>=4294967280){break a}c:{d:{if(e>>>0>=11){f=e+16&-16;h=ho(f);i[d+8>>2]=f|-2147483648;i[d>>2]=h;i[d+4>>2]=e;f=d;break d}g[d+11|0]=e;f=d;h=d;if(!e){break c}}hp(h,b,e)}g[e+h|0]=0;nm(a,d,c);if(g[f+11|0]>-1){break b}bp(i[d>>2])}F=d+16|0;return(a|0)!=0}qo();x()}function nj(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=13484;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;bp(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;bp(b)}return a|0}function Fb(a,b){var c=0,d=0,e=0,f=0;e=F-16|0;F=e;i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=1432;d=a+12|0;c=d;i[c>>2]=0;i[c+4>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;c=ho(4);i[c>>2]=b;f=d;d=c+4|0;i[f>>2]=d;f=a+8|0;i[f>>2]=d;i[a+4>>2]=c;i[e+12>>2]=-1;Gb(a+16|0,b+1|0,e+12|0);i[i[a+16>>2]+(b<<2)>>2]=(i[f>>2]-i[a+4>>2]>>2)+ -1;F=e+16|0}function Wo(a,b,c,d){g[a+53|0]=1;a:{if(i[a+4>>2]!=(c|0)){break a}g[a+52|0]=1;c=i[a+16>>2];if(!c){i[a+36>>2]=1;i[a+24>>2]=d;i[a+16>>2]=b;if((d|0)!=1|i[a+48>>2]!=1){break a}g[a+54|0]=1;return}if((b|0)==(c|0)){c=i[a+24>>2];if((c|0)==2){i[a+24>>2]=d;c=d}if(i[a+48>>2]!=1|(c|0)!=1){break a}g[a+54|0]=1;return}g[a+54|0]=1;i[a+36>>2]=i[a+36>>2]+1}}function Ro(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=F+ -64|0;F=d;e=1;a:{if(Qo(a,b,0)){break a}e=0;if(!b){break a}b=So(b,18792,18840);e=0;if(!b){break a}ip(d+8|4,0,52);i[d+56>>2]=1;i[d+20>>2]=-1;i[d+16>>2]=a;i[d+8>>2]=b;I[i[i[b>>2]+28>>2]](b,d+8|0,i[c>>2],1);a=i[d+32>>2];if((a|0)==1){i[c>>2]=i[d+24>>2]}e=(a|0)==1}a=e;F=d- -64|0;return a|0}function Pn(a,b,c){var d=0,e=0;d=F-160|0;F=d;hp(d+8|0,18056,144);a:{b:{if(b+ -1>>>0>=2147483647){if(b){break b}b=1;a=d+159|0}i[d+52>>2]=a;i[d+28>>2]=a;e=-2-a|0;b=b>>>0>e>>>0?e:b;i[d+56>>2]=b;a=a+b|0;i[d+36>>2]=a;i[d+24>>2]=a;a=Rm(d+8|0,c);if(!b){break a}b=i[d+28>>2];g[b-((b|0)==i[d+24>>2])|0]=0;break a}i[4805]=61;a=-1}F=d+160|0;return a}function tj(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=13484;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;bp(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;bp(b)}bp(a)}function Ic(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=1;a:{if((I[i[i[b>>2]+20>>2]](b)|0)<1){break a}c=0;while(1){e=xm(i[i[a+4>>2]+4>>2],I[i[i[b>>2]+24>>2]](b,d)|0);if((e|0)==-1){break a}if(!(g=b,h=Hj(i[a+4>>2],e),f=i[i[b>>2]+28>>2],I[f](g|0,h|0)|0)){break a}d=d+1|0;if((d|0)<(I[i[i[b>>2]+20>>2]](b)|0)){continue}break}c=1}return c|0}function Jb(a,b){var c=0,d=0,e=0;c=F-16|0;F=c;g[c+15|0]=a&127;a:{if(a>>>0>=128){g[c+15|0]=a|128;e=i[b+20>>2];d=0;if((e|0)>0?1:(e|0)>=0?l[b+16>>2]>0:0){break a}ca(b,i[b+4>>2],c+15|0,c+16|0);d=Jb(a>>>7|0,b);break a}a=i[b+20>>2];if((a|0)<0?1:(a|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],c+15|0,c+16|0);d=1;break a}d=0}a=d;F=c+16|0;return a}function Nc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(!Hb(a,b,c)){break a}if(!(I[i[i[a>>2]+52>>2]](a)|0)){break a}e=i[a+4>>2];if((e|0)==i[a+8>>2]){return 1}c=0;while(1){d=c<<2;f=i[d+i[a+36>>2]>>2];d=I[i[i[f>>2]+8>>2]](f,b,i[d+e>>2])|0;if(!d){break a}c=c+1|0;e=i[a+4>>2];if(c>>>0>2]-e>>2>>>0){continue}break}}return d|0}function Zh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=F-16|0;F=d;i[a+4>>2]=b;b=i[b+64>>2];e=i[b>>2];b=i[b+4>>2];g[d+15|0]=0;Uh(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=i[a+4>>2];e=i[b+56>>2];b=i[b+52>>2];g[d+14|0]=0;Uh(a+36|0,e-b>>2,d+14|0);b=i[c+12>>2];i[a+16>>2]=i[c+8>>2];i[a+20>>2]=b;b=i[c+4>>2];i[a+8>>2]=i[c>>2];i[a+12>>2]=b;F=d+16|0}function mp(a){var b=0,c=0,d=0;a:{b:{b=a;if(!(b&3)){break b}if(!j[a|0]){return 0}while(1){b=b+1|0;if(!(b&3)){break b}if(j[b|0]){continue}break}break a}while(1){c=b;b=b+4|0;d=i[c>>2];if(!((d^-1)&d+ -16843009&-2139062144)){continue}break}if(!(d&255)){return c-a|0}while(1){d=j[c+1|0];b=c+1|0;c=b;if(d){continue}break}}return b-a|0}function _l(a){i[a>>2]=0;i[a+4>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;g[a+24|0]=1;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+88>>2]=0;i[a+92>>2]=0;i[a+68>>2]=a}function Zo(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(Qo(a,i[b+8>>2],e)){Xo(b,c,d);return}a:{if(!Qo(a,i[b>>2],e)){break a}if(!(i[b+20>>2]!=(c|0)?i[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}i[b+32>>2]=1;return}i[b+20>>2]=c;i[b+32>>2]=d;i[b+40>>2]=i[b+40>>2]+1;if(!(i[b+36>>2]!=1|i[b+24>>2]!=2)){g[b+54|0]=1}i[b+44>>2]=4}}function Wd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=F-16|0;F=c;i[c+12>>2]=i[a+12>>2];d=i[b+20>>2];e=d;f=i[b+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+12|0,c+16|0);f=i[b+16>>2];e=i[b+20>>2]}i[c+8>>2]=i[a+16>>2];if((e|0)<0?1:(e|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+8|0,c+12|0)}sf(a+112|0,b);F=c+16|0;return 1}function Oe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=F-16|0;F=c;i[c+12>>2]=i[a+12>>2];d=i[b+20>>2];e=d;f=i[b+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+12|0,c+16|0);f=i[b+16>>2];e=i[b+20>>2]}i[c+8>>2]=i[a+24>>2];if((e|0)<0?1:(e|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+8|0,c+12|0)}sf(a+96|0,b);F=c+16|0;return 1}function Li(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=F-16|0;F=d;i[a+4>>2]=b;e=i[b>>2];b=i[b+4>>2];g[d+15|0]=0;Uh(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=i[a+4>>2];e=i[b+28>>2];b=i[b+24>>2];g[d+14|0]=0;Uh(a+36|0,e-b>>2,d+14|0);b=i[c+12>>2];i[a+16>>2]=i[c+8>>2];i[a+20>>2]=b;b=i[c+4>>2];i[a+8>>2]=i[c>>2];i[a+12>>2]=b;F=d+16|0}function _c(a,b){a=a|0;b=b|0;var c=0,d=0;c=i[a+16>>2];a:{if(i[a+20>>2]-c>>2<=(b|0)){break a}b=i[c+(b<<2)>>2];if((b|0)<0){break a}if(l[a+52>>2]<=b>>>0){$c(a+48|0,b+1|0)}d=1;c=i[a+48>>2]+(b>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>2];a=i[a+36>>2];if(c-a>>2>>>0<=b>>>0){break a}Gc(i[a+(b<<2)>>2])}return d|0}function Al(a){var b=0,c=0,d=0,e=0;if(a){d=i[a+24>>2];if(d){b=d;c=i[a+28>>2];e=b;a:{if((c|0)==(b|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){yk(b+12|0,i[b+16>>2]);zk(b,i[b+4>>2]);bp(b)}if((c|0)!=(d|0)){continue}break}e=i[a+24>>2]}b=e;i[a+28>>2]=d;bp(b)}yk(a+12|0,i[a+16>>2]);zk(a,i[a+4>>2]);bp(a)}}function fp(a){var b=0;b=1;a:{if((a|0)>=1024){b=8.98846567431158e+307;if((a|0)<2047){a=a+ -1023|0;break a}b=z;a=((a|0)<3069?a:3069)+ -2046|0;break a}if((a|0)>-1023){break a}b=2.2250738585072014e-308;if((a|0)>-2045){a=a+1022|0;break a}b=0;a=((a|0)>-3066?a:-3066)+2044|0}Cp(0,0);Cp(1,a+1023<<20);return b*+Dp()}function zd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=F-16|0;F=c;i[c+12>>2]=i[a+12>>2];d=i[b+20>>2];e=d;f=i[b+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+12|0,c+16|0);f=i[b+16>>2];e=i[b+20>>2]}i[c+8>>2]=i[a+16>>2];if((e|0)<0?1:(e|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+8|0,c+12|0)}F=c+16|0;return 1}function xe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=F-16|0;F=c;i[c+12>>2]=i[a+12>>2];d=i[b+20>>2];e=d;f=i[b+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+12|0,c+16|0);f=i[b+16>>2];e=i[b+20>>2]}i[c+8>>2]=i[a+24>>2];if((e|0)<0?1:(e|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+8|0,c+12|0)}F=c+16|0;return 1}function Tl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;Gm(a,b,c);d=i[a+96>>2];a=i[a+100>>2];if((d|0)!=(a|0)){a=(a-d|0)/12|0;e=a>>>0>1?a:1;b=i[b>>2];c=0;while(1){a=o(c,12)+d|0;i[a>>2]=i[b+(i[a>>2]<<2)>>2];i[a+4>>2]=i[b+(i[a+4>>2]<<2)>>2];i[a+8>>2]=i[b+(i[a+8>>2]<<2)>>2];c=c+1|0;if((e|0)!=(c|0)){continue}break}}}function Xl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=F-16|0;F=d;e=i[c>>2];i[c>>2]=0;i[d+8>>2]=e;Am(a,b,d+8|0);c=i[d+8>>2];i[d+8>>2]=0;if(c){Wb(c)}e=i[a+84>>2];c=i[a+88>>2]-e>>2;a:{if((c|0)>(b|0)){break a}b=b+1|0;if(b>>>0>c>>>0){Yl(a+84|0,b-c|0);break a}if(b>>>0>=c>>>0){break a}i[a+88>>2]=e+(b<<2)}F=d+16|0}function An(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=F-16|0;F=d;g=a;h=a;a:{if(!b){b=0;break a}c=b>>31;e=c+b^c;c=r(e);sn(d,e,0,0,0,c+81|0);c=(i[d+12>>2]^65536)+(16414-c<<16)|0;e=0+i[d+8>>2]|0;if(e>>>0>>0){c=c+1|0}f=b&-2147483648|c;c=i[d+4>>2];b=i[d>>2]}i[h>>2]=b;i[g+4>>2]=c;i[a+8>>2]=e;i[a+12>>2]=f;F=d+16|0}function zo(a,b,c,d,e){var f=0,g=0,h=0;f=F-16|0;F=f;if(-17-b>>>0>=c>>>0){g=Yn(a);a:{if(2147483623>b>>>0){i[f+8>>2]=b<<1;i[f+12>>2]=b+c;c=ao(i[Mn(f+12|0,f+8|0)>>2]);break a}c=-18}h=c+1|0;c=bo(h);if(e){Ln(c,g,e)}d=d-e|0;if(d){Ln(c+e|0,e+g|0,d)}if((b|0)!=10){bp(g)}co(a,c);eo(a,h);F=f+16|0;return}qo();x()}function da(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;h=i[c+8>>2];f=i[c+16>>2];g=i[c+12>>2];d=g;e=i[c+20>>2];if((d|0)>(e|0)?1:(d|0)>=(e|0)?h>>>0>f>>>0:0){b=j[f+i[c>>2]|0];d=e;k=f+1|0;if(k>>>0<1){d=d+1|0}i[c+16>>2]=k;i[c+20>>2]=d;i[a+4>>2]=b}return((g|0)>(e|0)?1:(g|0)>=(e|0)?h>>>0>f>>>0:0)|0}function Ql(a,b){var c=0,d=0,e=0,f=0;a:{if((b|0)==-1){break a}b=o(b,3);if((b|0)==-1){break a}d=-1;e=i[a>>2];f=i[e+(b<<2)>>2];a=-1;c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){a=i[(c<<2)+e>>2]}b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)!=-1){d=i[(b<<2)+e>>2]}return(a|0)==(f|0)|(d|0)==(f|0)|(a|0)==(d|0)}return 1}function bn(a){var b=0,c=0,d=0,e=0,f=0;while(1){b=a;a=b+1|0;if(an(g[b|0])){continue}break}a:{b:{c:{c=g[b|0];switch(c+ -43|0){case 0:break b;case 2:break c;default:break a}}e=1}c=g[a|0];b=a;f=e}if(Mm(c)){while(1){d=(o(d,10)-g[b|0]|0)+48|0;a=g[b+1|0];b=b+1|0;if(Mm(a)){continue}break}}return f?d:0-d|0}function Ym(a,b,c){var d=0,e=0,f=0;a:{if((b|0)==1&a>>>0<0|b>>>0<1){d=a;break a}while(1){d=wp(a,b,10,0);e=H;f=e;e=up(d,e,10,0);c=c+ -1|0;g[c|0]=a-e|48;e=b>>>0>9;a=d;b=f;if(e){continue}break}}if(d){while(1){c=c+ -1|0;a=(d>>>0)/10|0;g[c|0]=d-o(a,10)|48;b=d>>>0>9;d=a;if(b){continue}break}}return c}function hd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=F-48|0;F=d;f=i[b+4>>2];b=i[b+12>>2];i[d+40>>2]=0;e=d+32|0;i[e>>2]=0;i[e+4>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;id(d,c,b,f,d+8|0);b=i[e>>2];if(b){i[d+36>>2]=b;bp(b)}i[a>>2]=i[d>>2];F=d+48|0}function cf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;c=F-16|0;F=c;d=a+40|0;Aa(c+8|0,d,i[a+8>>2],i[b+4>>2]-i[b>>2]>>2);d=ma(d,i[a+8>>2],b,i[c+8>>2]);a:{if(!d){break a}e=i[c+8>>2];i[c+8>>2]=0;b=i[a+32>>2];i[a+32>>2]=e;if(!b){break a}Wb(b)}a=i[c+8>>2];i[c+8>>2]=0;if(a){Wb(a)}F=c+16|0;return d|0}function Oi(a){a=a|0;var b=0;i[a+8>>2]=12332;i[a>>2]=12120;b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+80>>2];if(b){i[a+84>>2]=b;bp(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;bp(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;bp(b)}i[a+8>>2]=12568;b=i[a+44>>2];if(b){bp(b)}b=i[a+32>>2];if(b){bp(b)}return a|0}function qe(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;c=F-16|0;F=c;d=a+40|0;Aa(c+8|0,d,i[a+8>>2],i[b+4>>2]-i[b>>2]>>2);d=Y(d,i[a+8>>2],b,i[c+8>>2]);a:{if(!d){break a}e=i[c+8>>2];i[c+8>>2]=0;b=i[a+32>>2];i[a+32>>2]=e;if(!b){break a}Wb(b)}a=i[c+8>>2];i[c+8>>2]=0;if(a){Wb(a)}F=c+16|0;return d|0}function Aa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,h=0,j=0;e=F+ -64|0;F=e;f=I[i[i[b>>2]+44>>2]](b,c)|0;b=I[i[i[b>>2]+40>>2]](b,c)|0;h=Ba(e);j=i[c+56>>2];c=b;b=o(Sj(b),f);Ca(h,j,0,f<<24>>24,c,b,b>>31);b=ho(96);c=Fa(b,h);i[a>>2]=b;Ha(c,d);g[b+84|0]=1;i[b+72>>2]=i[b+68>>2];F=e- -64|0}function Do(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=F-16|0;F=f;g=+c;d=Sn(b);while(1){a:{e=Yn(b);n[f>>3]=g;h=b;e=Rn(e,d+1|0,f);b:{if((e|0)>=0){if(e>>>0<=d>>>0){break a}d=e;break b}d=d<<1|1}Un(h,d);continue}break}Un(b,e);d=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=d;i[a+8>>2]=i[b+8>>2];Vn(b);F=f+16|0}function be(a){a=a|0;var b=0;i[a>>2]=4804;b=i[a+152>>2];if(b){i[a+156>>2]=b;bp(b)}b=i[a+112>>2];if(b){i[a+116>>2]=b;bp(b)}b=i[a+96>>2];if(b){bp(b)}b=i[a+84>>2];if(b){bp(b)}b=i[a+72>>2];if(b){bp(b)}b=i[a+60>>2];if(b){bp(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}return a|0}function Pi(a){a=a|0;var b=0;i[a+8>>2]=12332;i[a>>2]=12120;b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+80>>2];if(b){i[a+84>>2]=b;bp(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;bp(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;bp(b)}i[a+8>>2]=12568;b=i[a+44>>2];if(b){bp(b)}b=i[a+32>>2];if(b){bp(b)}bp(a)}function Cd(a){a=a|0;var b=0;i[a>>2]=3240;b=i[a+152>>2];if(b){i[a+156>>2]=b;bp(b)}b=i[a+112>>2];if(b){i[a+116>>2]=b;bp(b)}b=i[a+96>>2];if(b){bp(b)}b=i[a+84>>2];if(b){bp(b)}b=i[a+72>>2];if(b){bp(b)}b=i[a+60>>2];if(b){bp(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}return a|0}function go(a,b,c){var d=0,e=0,f=0,h=0;f=F-16|0;F=f;e=c-b|0;if(e>>>0<=4294967279){a:{if(e>>>0<=10){$n(a,e);d=a;break a}h=ao(e)+1|0;d=bo(h);co(a,d);eo(a,h);aa(a,e)}while(1){if((b|0)!=(c|0)){_n(d,b);d=d+1|0;b=b+1|0;continue}break}g[f+15|0]=0;_n(d,f+15|0);F=f+16|0;return}qo();x()}function gg(a){var b=0,c=0;c=i[a+8>>2];if((c|0)>=2){b=+(c|0);b=v(ep(b)*b-n[a>>3]);if(q(b)<0x8000000000000000){H=q(b)>=1?b>0?~~s(u(b*2.3283064365386963e-10),4294967295)>>>0:~~v((b- +(~~b>>>0>>>0))*2.3283064365386963e-10)>>>0:0;return~~b>>>0}a=-2147483648}else{a=0}H=a;return 0}function Ni(a){a=a|0;var b=0;i[a>>2]=12332;b=i[a+88>>2];if(b){i[a+92>>2]=b;bp(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;bp(b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;bp(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=12568;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}return a|0}function En(a,b){var c=0,d=0,e=0,f=0;i[a>>2]=0;i[a+4>>2]=0;e=a;f=a;if(b){a=b;c=r(a);d=(c|32)+113&63;b=d&31;if(32<=(d&63)>>>0){d=a<>>32-b;b=a<>>0>>0?a+1|0:a}else{a=0;b=0}i[f+8>>2]=b;i[e+12>>2]=a}function Hl(a,b){var c=0;i[a+4>>2]=b;i[a>>2]=0;a:{b:{if(!b){break b}c=So(b,16916,16636);if(!c){break b}b=ho(56);Rf(b,c);c=i[a>>2];i[a>>2]=b;if(!c){break a}I[i[i[c>>2]+4>>2]](c);return a}c=ho(56);Pf(c,b);b=i[a>>2];i[a>>2]=c;if(!b){break a}I[i[i[b>>2]+4>>2]](b)}return a}function Vi(a){a=a|0;var b=0;i[a>>2]=12332;b=i[a+88>>2];if(b){i[a+92>>2]=b;bp(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;bp(b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;bp(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=12568;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}bp(a)}function Pj(a,b,c){var d=0;if((c|0)<0?1:(c|0)<=0?b>>>0<0:0){return 0}d=i[a>>2];c=i[a+4>>2]-d|0;a:{if(c>>>0>>0){Qj(a,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+4>>2]=b+d}b=a+24|0;c=b;d=b;a=i[b+4>>2];b=i[b>>2]+1|0;if(b>>>0<1){a=a+1|0}i[d>>2]=b;i[c+4>>2]=a;return 1}function Ha(a,b){var c=0,d=0;a:{if(i[a+64>>2]){break a}d=ho(32);Oj(d);c=i[a+64>>2];i[a+64>>2]=d;if(!c){break a}d=i[c>>2];if(d){i[c+4>>2]=d;bp(d)}bp(c)}c=Sj(i[a+28>>2]);c=o(c,g[a+24|0]);d=c;c=c>>31;if(Pj(i[a+64>>2],up(d,c,b,0),H)){Da(a,i[a+64>>2],d,c);i[a+80>>2]=b}}function Qm(a,b){var c=0,d=0,e=0;Ep(+a);c=Bp(1)|0;d=Bp(0)|0;e=c;c=c>>>20&2047;if((c|0)!=2047){if(!c){c=b;if(a==0){b=0}else{a=Qm(a*0x10000000000000000,b);b=i[b>>2]+ -64|0}i[c>>2]=b;return a}i[b>>2]=c+ -1022;Cp(0,d|0);Cp(1,e&-2146435073|1071644672);a=+Dp()}return a}function df(a){a=a|0;var b=0;i[a+40>>2]=1140;i[a>>2]=9756;b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=2248;b=i[a+36>>2];i[a+36>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Wb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}return a|0}function bi(a){var b=0;if(a){b=i[a+76>>2];if(b){i[a+80>>2]=b;bp(b)}b=i[a- -64>>2];if(b){i[a+68>>2]=b;bp(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}b=i[a+24>>2];if(b){i[a+28>>2]=b;bp(b)}b=i[a+12>>2];if(b){i[a+16>>2]=b;bp(b)}b=i[a>>2];if(b){i[a+4>>2]=b;bp(b)}bp(a)}}function Mf(a,b,c,d){var e=0;e=F-16|0;F=e;c=Nf(a,b,e+12|0,e+8|0,c);if(!i[c>>2]){b=ho(40);ro(b+16|0,d);ro(b+28|0,d+12|0);i[b+8>>2]=i[e+12>>2];i[b>>2]=0;i[b+4>>2]=0;i[c>>2]=b;d=i[i[a>>2]>>2];if(d){i[a>>2]=d;b=i[c>>2]}Kf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}F=e+16|0}function ni(a){var b=0;b=i[a+84>>2];if(b){i[a+88>>2]=b;bp(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;bp(b)}b=i[a+52>>2];if(b){i[a+56>>2]=b;bp(b)}b=i[a+40>>2];if(b){i[a+44>>2]=b;bp(b)}b=i[a+28>>2];if(b){i[a+32>>2]=b;bp(b)}b=i[a+12>>2];if(b){bp(b)}a=i[a>>2];if(a){bp(a)}}function uf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=F-96|0;F=e;f=Pf(e+40|0,c);vf(e,b,c);Vf(f,e);kd(e+24|0,i[e+28>>2]);wf(e+12|0,i[e+16>>2]);kd(e,i[e+4>>2]);Sf(a,f,d);i[f>>2]=10308;kd(f+28|0,i[f+32>>2]);wf(f+16|0,i[f+20>>2]);kd(f+4|0,i[f+8>>2]);F=e+96|0}function ef(a){a=a|0;var b=0;i[a+40>>2]=1140;i[a>>2]=9756;b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=2248;b=i[a+36>>2];i[a+36>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Wb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}bp(a)}function cn(a){var b=0,c=0;b=j[a+74|0];g[a+74|0]=b+ -1|b;if(l[a+20>>2]>l[a+28>>2]){I[i[a+36>>2]](a,0,0)|0}i[a+28>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;b=i[a>>2];if(b&4){i[a>>2]=b|32;return-1}c=i[a+44>>2]+i[a+48>>2]|0;i[a+8>>2]=c;i[a+4>>2]=c;return b<<27>>31}function sp(a,b,c,d){var e=0,f=0,g=0,h=0;e=b;f=e>>31;e=e>>31;a=a^e;g=a-e|0;h=(b^f)-((a>>>0>>0)+f|0)|0;e=d;f=e>>31;e=e>>31;a=c^e;e=wp(g,h,a-e|0,(d^f)-((a>>>0>>0)+f|0)|0);b=b^d;c=b>>31;a=b>>31;b=e^a;d=b-a|0;H=(c^H)-((b>>>0>>0)+c|0)|0;return d}function Pc(a,b){a=a|0;b=b|0;var c=0,d=0;c=i[a+72>>2];a:{if(!c){break a}i[c+4>>2]=a+60;if(!(I[i[i[c>>2]+12>>2]](c)|0)){break a}if(!(I[i[i[a>>2]+40>>2]](a)|0)){break a}if(!(I[i[i[a>>2]+44>>2]](a,b)|0)){break a}d=I[i[i[a>>2]+48>>2]](a,b)|0}return d|0}function Ca(a,b,c,d,e,f,h){var j=0;i[a>>2]=c;if(c){j=i[c+20>>2];i[a+8>>2]=i[c+16>>2];i[a+12>>2]=j;j=i[c+28>>2];i[a+16>>2]=i[c+24>>2];i[a+20>>2]=j}i[a+56>>2]=b;i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=f;i[a+44>>2]=h;g[a+32|0]=0;i[a+28>>2]=e;g[a+24|0]=d}function Oh(a,b){a=a|0;b=b|0;var c=0,d=0;a:{c=i[a+172>>2];a=i[a+176>>2];if((c|0)!=(a|0)){d=(a-c|0)/136|0;a=0;while(1){if(i[o(a,136)+c>>2]==(b|0)){break a}a=a+1|0;if(a>>>0>>0){continue}break}}return 0}a=o(a,136)+c|0;return(j[a+100|0]?a+4|0:0)|0}function Rc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=i[a+36>>2];if((c|0)==i[a+40>>2]){return 1}f=a+60|0;while(1){c=i[(d<<2)+c>>2];e=I[i[i[c>>2]+20>>2]](c,f,b)|0;if(e){d=d+1|0;c=i[a+36>>2];if(d>>>0>2]-c>>2>>>0){continue}}break}return e|0}function Ph(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{d=i[a+172>>2];c=i[a+176>>2];if((d|0)!=(c|0)){e=(c-d|0)/136|0;c=0;while(1){if(i[o(c,136)+d>>2]==(b|0)){break a}c=c+1|0;if(c>>>0>>0){continue}break}}return a+40|0}return(o(c,136)+d|0)+104|0}function Hm(a){a=a|0;var b=0,c=0,d=0;b=1;a:{if(!i[a+80>>2]){break a}c=i[a+8>>2];if((i[a+12>>2]-c|0)<=0){break a}while(1){b=i[(d<<2)+c>>2];b=Ia(b,b);if(b){d=d+1|0;c=i[a+8>>2];if((d|0)>2]-c>>2){continue}}break}b=(b|0)!=0}return b|0}function Jn(a,b,c){var d=0,e=0,f=0,g=0;e=F-16|0;F=e;b=b-a>>2;while(1){if(b){i[e+12>>2]=a;d=e+12|0;f=d;g=i[d>>2];d=b>>>1|0;i[f>>2]=g+(d<<2);f=(d^-1)+b|0;b=d;d=Kn(i[e+12>>2],c);b=d?f:b;a=d?i[e+12>>2]+4|0:a;continue}break}F=e+16|0;return a}function im(a,b,c){var d=0,e=0,f=0;if(c){d=c+28|0;Jb(i[d>>2]-i[c+24>>2]>>2,b);e=i[c+24>>2];f=i[d>>2];if((e|0)!=(f|0)){while(1){d=i[e>>2];if(d){Jb(i[d+24>>2],b);gm(a,b,d)}e=e+4|0;if((f|0)!=(e|0)){continue}break}}gm(a,b,c)}return(c|0)!=0}function Fj(a){a=a|0;var b=0,c=0,d=0;b=i[a+32>>2];d=i[a+36>>2];if((b|0)==(d|0)){return 1}while(1){a:{c=i[i[a+8>>2]+(i[b>>2]<<2)>>2];c=I[i[i[c>>2]+20>>2]](c,i[a+44>>2])|0;b=b+4|0;if((d|0)==(b|0)){break a}if(c){continue}}break}return c|0}function Jj(a,b){a=a|0;b=b|0;var c=0,d=0;c=F-16|0;F=c;i[c+12>>2]=i[i[b+4>>2]+80>>2];b=i[b+44>>2];d=i[b+20>>2];if((d|0)<0?1:(d|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],c+12|0,c+16|0)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;F=c+16|0}function Qc(a){a=a|0;var b=0,c=0,d=0,e=0;b=i[a+36>>2];if((b|0)==i[a+40>>2]){return 1}e=a+60|0;while(1){b=i[(c<<2)+b>>2];d=I[i[i[b>>2]+16>>2]](b,e)|0;if(d){c=c+1|0;b=i[a+36>>2];if(c>>>0>2]-b>>2>>>0){continue}}break}return d|0}function Re(a){a=a|0;var b=0;i[a>>2]=8408;b=i[a+136>>2];if(b){i[a+140>>2]=b;bp(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+80>>2];if(b){bp(b)}b=i[a+68>>2];if(b){bp(b)}b=i[a+56>>2];if(b){bp(b)}b=i[a+44>>2];if(b){bp(b)}return a|0}function Ae(a){a=a|0;var b=0;i[a>>2]=6760;b=i[a+136>>2];if(b){i[a+140>>2]=b;bp(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+80>>2];if(b){bp(b)}b=i[a+68>>2];if(b){bp(b)}b=i[a+56>>2];if(b){bp(b)}b=i[a+44>>2];if(b){bp(b)}return a|0}function Wb(a){a=a|0;var b=0,c=0;if(a){b=i[a+88>>2];i[a+88>>2]=0;if(b){c=i[b+8>>2];if(c){i[b+12>>2]=c;bp(c)}bp(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;bp(b)}b=i[a+64>>2];i[a+64>>2]=0;if(b){c=i[b>>2];if(c){i[b+4>>2]=c;bp(c)}bp(b)}bp(a)}}function Sc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=i[a+36>>2];if((c|0)==i[a+40>>2]){return 1}while(1){c=i[(d<<2)+c>>2];e=I[i[i[c>>2]+24>>2]](c,b)|0;if(e){d=d+1|0;c=i[a+36>>2];if(d>>>0>2]-c>>2>>>0){continue}}break}return e|0}function Se(a){a=a|0;var b=0;i[a>>2]=8408;b=i[a+136>>2];if(b){i[a+140>>2]=b;bp(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+80>>2];if(b){bp(b)}b=i[a+68>>2];if(b){bp(b)}b=i[a+56>>2];if(b){bp(b)}b=i[a+44>>2];if(b){bp(b)}bp(a)}function Be(a){a=a|0;var b=0;i[a>>2]=6760;b=i[a+136>>2];if(b){i[a+140>>2]=b;bp(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+80>>2];if(b){bp(b)}b=i[a+68>>2];if(b){bp(b)}b=i[a+56>>2];if(b){bp(b)}b=i[a+44>>2];if(b){bp(b)}bp(a)}function Ga(a,b,c,d,e){var f=0,h=0,j=0;j=ho(32);f=Oj(j);h=i[a+64>>2];i[a+64>>2]=j;j=a;if(h){f=i[h>>2];if(f){i[h+4>>2]=f;bp(f)}bp(h);f=i[a+64>>2]}h=b;b=o(Sj(d),c);Ca(j,h,f,c,d,b,b>>31);Ha(a,e);g[a+84|0]=1;i[a+72>>2]=i[a+68>>2]}function zm(a,b){var c=0,d=0,e=0,f=0;c=F-16|0;F=c;d=i[a+12>>2];e=i[a+8>>2];f=i[b>>2];i[b>>2]=0;i[c+8>>2]=f;I[i[i[a>>2]+8>>2]](a,d-e>>2,c+8|0);b=i[c+8>>2];i[c+8>>2]=0;if(b){Wb(b)}F=c+16|0;return(i[a+12>>2]-i[a+8>>2]>>2)+ -1|0}function rp(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=o(e,f);g=c&65535;h=a&65535;i=o(g,h);f=(i>>>16|0)+o(f,g)|0;e=(f&65535)+o(e,h)|0;a=(o(b,c)+j|0)+o(a,d)+(f>>>16)+(e>>>16)|0;b=i&65535|e<<16;H=a;return b}function ba(a,b){a=a|0;b=b|0;var c=0,d=0;c=F-16|0;F=c;a=i[a+4>>2];a:{if((a|0)==-1){break a}g[c+15|0]=a;d=i[b+20>>2];if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break a}ca(b,i[b+4>>2],c+15|0,c+16|0)}F=c+16|0;return(a|0)!=-1|0}function Ao(a,b,c){var d=0,e=0,f=0;f=F-16|0;F=f;d=Tn(a);e=Sn(a);a:{if(d-e>>>0>=c>>>0){if(!c){break a}d=Yn(a);Ln(d+e|0,b,c);b=a;a=c+e|0;fo(b,a);g[f+15|0]=0;_n(a+d|0,f+15|0);break a}vo(a,d,(c+e|0)-d|0,e,e,0,c,b)}F=f+16|0}function Rj(a,b){var c=0,d=0;d=i[a>>2];c=i[a+4>>2]-d|0;a:{if(c>>>0>>0){Qj(a,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+4>>2]=b+d}b=a+24|0;c=b;d=b;a=i[b+4>>2];b=i[b>>2]+1|0;if(b>>>0<1){a=a+1|0}i[d>>2]=b;i[c+4>>2]=a}function so(a,b,c){var d=0,e=0,f=0;d=F-16|0;F=d;if(4294967279>=c>>>0){a:{if(c>>>0<=10){$n(a,c);e=a;break a}f=ao(c)+1|0;e=bo(f);co(a,e);eo(a,f);aa(a,c)}Ln(e,b,c);g[d+15|0]=0;_n(c+e|0,d+15|0);F=d+16|0;return}qo();x()}function To(a,b,c){var d=0;d=i[a+16>>2];if(!d){i[a+36>>2]=1;i[a+24>>2]=c;i[a+16>>2]=b;return}a:{if((b|0)==(d|0)){if(i[a+24>>2]!=2){break a}i[a+24>>2]=c;return}g[a+54|0]=1;i[a+24>>2]=2;i[a+36>>2]=i[a+36>>2]+1}}function X(a,b){a=a|0;b=b|0;var c=0,d=0;i[b>>2]=2;c=i[b+8>>2];d=i[b+12>>2]-c|0;if(d>>>0<=4294967291){b=b+8|0;Rj(b,d+4|0);c=i[b>>2]}b=c+d|0;a=i[a+4>>2];g[b|0]=a;g[b+1|0]=a>>>8;g[b+2|0]=a>>>16;g[b+3|0]=a>>>24}function nf(a){var b=0,c=0;c=F-16|0;F=c;i[c+8>>2]=0;i[c+12>>2]=0;of(a,c+8|0);i[a+24>>2]=0;i[a+28>>2]=0;b=i[a+12>>2];i[a+16>>2]=b;if(b){i[a+16>>2]=b;bp(b)}b=i[a>>2];if(b){i[a+4>>2]=b;bp(b)}F=c+16|0;return a}function ad(a,b){a=a|0;b=b|0;var c=0,d=0;d=i[a+16>>2];a:{if(i[a+20>>2]-d>>2<=(b|0)){break a}b=i[(b<<2)+d>>2];if((b|0)<0){break a}a=i[i[a+36>>2]+(b<<2)>>2];c=i[a+32>>2];if(c){break a}c=i[a+8>>2]}return c|0}function Zm(a,b,c,d,e){var f=0;f=F-256|0;F=f;if(!(e&73728|(c|0)<=(d|0))){c=c-d|0;d=c>>>0<256;ip(f,b&255,d?c:256);if(!d){while(1){Tm(a,f,256);c=c+ -256|0;if(c>>>0>255){continue}break}}Tm(a,f,c)}F=f+256|0}function uo(a,b,c){var d=0,e=0,f=0,h=0;e=F-16|0;F=e;d=Tn(a);a:{if(d>>>0>=c>>>0){f=Yn(a);h=f;d=c;if(c){jp(h,b,d)}g[e+15|0]=0;_n(c+f|0,e+15|0);fo(a,c);break a}f=a;a=Sn(a);vo(f,d,c-d|0,a,0,a,c,b)}F=e+16|0}function Zc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=-1;e=i[a+16>>2];a:{if(i[a+20>>2]-e>>2<=(b|0)){break a}b=i[(b<<2)+e>>2];if((b|0)<0){break a}d=i[i[i[i[a+36>>2]+(b<<2)>>2]+16>>2]+(c<<2)>>2]}return d|0}function Yc(a,b){a=a|0;b=b|0;var c=0,d=0;d=i[a+16>>2];c=0;a:{if(i[a+20>>2]-d>>2<=(b|0)){break a}b=i[(b<<2)+d>>2];c=0;if((b|0)<0){break a}a=i[i[a+36>>2]+(b<<2)>>2];c=i[a+20>>2]-i[a+16>>2]>>2}return c|0}function Bc(a){i[a+32>>2]=0;i[a+12>>2]=-1;i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=1860;i[a+16>>2]=0;i[a+20>>2]=0;g[a+21|0]=0;g[a+22|0]=0;g[a+23|0]=0;g[a+24|0]=0;g[a+25|0]=0;g[a+26|0]=0;g[a+27|0]=0;g[a+28|0]=0}function xo(a,b){var c=0,d=0,e=0,f=0;e=F-16|0;F=e;if(b){d=Tn(a);c=Sn(a);f=c+b|0;if(d-c>>>0>>0){zo(a,d,f-d|0,c,c)}d=c;c=Yn(a);d=d+c|0;if(b){ip(d,0,b)}fo(a,f);g[e+15|0]=0;_n(c+f|0,e+15|0)}F=e+16|0}function xj(a){i[a+52>>2]=0;i[a>>2]=13484;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;return a} -function ap(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(To(a,i[b+8>>2],e)){_o(b,c,d);return}a:{if(!To(a,i[b>>2],e)){break a}if(!(i[b+20>>2]!=(c|0)?i[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}i[b+32>>2]=1;return}i[b+20>>2]=c;i[b+32>>2]=d;i[b+40>>2]=i[b+40>>2]+1;if(!(i[b+36>>2]!=1|i[b+24>>2]!=2)){g[b+54|0]=1}i[b+44>>2]=4}}function am(a){i[a>>2]=0;i[a+4>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;g[a+24|0]=1;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+88>>2]=0;i[a+92>>2]=0;i[a+68>>2]=a}function Pe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=H-16|0;H=c;i[c+12>>2]=i[a+12>>2];d=i[b+20>>2];e=d;f=i[b+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ea(b,i[b+4>>2],c+12|0,c+16|0);f=i[b+16>>2];e=i[b+20>>2]}i[c+8>>2]=i[a+24>>2];if((e|0)<0?1:(e|0)<=0?f>>>0<=0:0){ea(b,i[b+4>>2],c+8|0,c+12|0)}tf(a+96|0,b);H=c+16|0;return 1}function Mi(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H-16|0;H=d;i[a+4>>2]=b;e=i[b>>2];b=i[b+4>>2];g[d+15|0]=0;Vh(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=i[a+4>>2];e=i[b+28>>2];b=i[b+24>>2];g[d+14|0]=0;Vh(a+36|0,e-b>>2,d+14|0);b=i[c+12>>2];i[a+16>>2]=i[c+8>>2];i[a+20>>2]=b;b=i[c+4>>2];i[a+8>>2]=i[c>>2];i[a+12>>2]=b;H=d+16|0}function $c(a,b){a=a|0;b=b|0;var c=0,d=0;c=i[a+16>>2];a:{if(i[a+20>>2]-c>>2<=(b|0)){break a}b=i[c+(b<<2)>>2];if((b|0)<0){break a}if(l[a+52>>2]<=b>>>0){ad(a+48|0,b+1|0)}d=1;c=i[a+48>>2]+(b>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<<(b&31);c=i[a+40>>2];a=i[a+36>>2];if(c-a>>2>>>0<=b>>>0){break a}Hc(i[a+(b<<2)>>2])}return d|0}function Cl(a){var b=0,c=0,d=0,e=0;if(a){d=i[a+24>>2];if(d){b=d;c=i[a+28>>2];e=b;a:{if((c|0)==(b|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){Ak(b+12|0,i[b+16>>2]);Bk(b,i[b+4>>2]);ep(b)}if((c|0)!=(d|0)){continue}break}e=i[a+24>>2]}b=e;i[a+28>>2]=d;ep(b)}Ak(a+12|0,i[a+16>>2]);Bk(a,i[a+4>>2]);ep(a)}}function ip(a){var b=0;b=1;a:{if((a|0)>=1024){b=8.98846567431158e+307;if((a|0)<2047){a=a+ -1023|0;break a}b=z;a=((a|0)<3069?a:3069)+ -2046|0;break a}if((a|0)>-1023){break a}b=2.2250738585072014e-308;if((a|0)>-2045){a=a+1022|0;break a}b=0;a=((a|0)>-3066?a:-3066)+2044|0}Fp(0,0);Fp(1,a+1023<<20);return b*+Gp()}function ye(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=H-16|0;H=c;i[c+12>>2]=i[a+12>>2];d=i[b+20>>2];e=d;f=i[b+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ea(b,i[b+4>>2],c+12|0,c+16|0);f=i[b+16>>2];e=i[b+20>>2]}i[c+8>>2]=i[a+24>>2];if((e|0)<0?1:(e|0)<=0?f>>>0<=0:0){ea(b,i[b+4>>2],c+8|0,c+12|0)}H=c+16|0;return 1}function Vl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;Im(a,b,c);d=i[a+96>>2];a=i[a+100>>2];if((d|0)!=(a|0)){a=(a-d|0)/12|0;e=a>>>0>1?a:1;b=i[b>>2];c=0;while(1){a=o(c,12)+d|0;i[a>>2]=i[b+(i[a>>2]<<2)>>2];i[a+4>>2]=i[b+(i[a+4>>2]<<2)>>2];i[a+8>>2]=i[b+(i[a+8>>2]<<2)>>2];c=c+1|0;if((e|0)!=(c|0)){continue}break}}}function Ad(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=H-16|0;H=c;i[c+12>>2]=i[a+12>>2];d=i[b+20>>2];e=d;f=i[b+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ea(b,i[b+4>>2],c+12|0,c+16|0);f=i[b+16>>2];e=i[b+20>>2]}i[c+8>>2]=i[a+16>>2];if((e|0)<0?1:(e|0)<=0?f>>>0<=0:0){ea(b,i[b+4>>2],c+8|0,c+12|0)}H=c+16|0;return 1}function Zl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H-16|0;H=d;e=i[c>>2];i[c>>2]=0;i[d+8>>2]=e;Cm(a,b,d+8|0);c=i[d+8>>2];i[d+8>>2]=0;if(c){Xb(c)}e=i[a+84>>2];c=i[a+88>>2]-e>>2;a:{if((c|0)>(b|0)){break a}b=b+1|0;if(b>>>0>c>>>0){_l(a+84|0,b-c|0);break a}if(b>>>0>=c>>>0){break a}i[a+88>>2]=e+(b<<2)}H=d+16|0}function Cn(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=H-16|0;H=d;g=a;h=a;a:{if(!b){b=0;break a}c=b>>31;e=c+b^c;c=r(e);un(d,e,0,0,0,c+81|0);c=(i[d+12>>2]^65536)+(16414-c<<16)|0;e=0+i[d+8>>2]|0;if(e>>>0>>0){c=c+1|0}f=b&-2147483648|c;c=i[d+4>>2];b=i[d>>2]}i[h>>2]=b;i[g+4>>2]=c;i[a+8>>2]=e;i[a+12>>2]=f;H=d+16|0}function fa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;h=i[c+8>>2];f=i[c+16>>2];g=i[c+12>>2];d=g;e=i[c+20>>2];if((d|0)>(e|0)?1:(d|0)>=(e|0)?h>>>0>f>>>0:0){b=j[f+i[c>>2]|0];d=e;k=f+1|0;if(k>>>0<1){d=d+1|0}i[c+16>>2]=k;i[c+20>>2]=d;i[a+4>>2]=b}return((g|0)>(e|0)?1:(g|0)>=(e|0)?h>>>0>f>>>0:0)|0}function Sl(a,b){var c=0,d=0,e=0,f=0;a:{if((b|0)==-1){break a}b=o(b,3);if((b|0)==-1){break a}d=-1;e=i[a>>2];f=i[e+(b<<2)>>2];a=-1;c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){a=i[(c<<2)+e>>2]}b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)!=-1){d=i[(b<<2)+e>>2]}return(a|0)==(f|0)|(d|0)==(f|0)|(a|0)==(d|0)}return 1}function Co(a,b,c,d,e){var f=0,g=0,h=0;f=H-16|0;H=f;if(-17-b>>>0>=c>>>0){g=$n(a);a:{if(2147483623>b>>>0){i[f+8>>2]=b<<1;i[f+12>>2]=b+c;c=eo(i[On(f+12|0,f+8|0)>>2]);break a}c=-18}h=c+1|0;c=fo(h);if(e){Nn(c,g,e)}d=d-e|0;if(d){Nn(c+e|0,e+g|0,d)}if((b|0)!=10){ep(g)}go(a,c);ho(a,h);H=f+16|0;return}to();x()}function dn(a){var b=0,c=0,d=0,e=0,f=0;while(1){b=a;a=b+1|0;if(cn(g[b|0])){continue}break}a:{b:{c:{c=g[b|0];switch(c+ -43|0){case 0:break b;case 2:break c;default:break a}}e=1}c=g[a|0];b=a;f=e}if(Om(c)){while(1){d=(o(d,10)-g[b|0]|0)+48|0;a=g[b+1|0];b=b+1|0;if(Om(a)){continue}break}}return f?d:0-d|0}function _m(a,b,c){var d=0,e=0,f=0;a:{if((b|0)==1&a>>>0<0|b>>>0<1){d=a;break a}while(1){d=zp(a,b,10,0);e=J;f=e;e=xp(d,e,10,0);c=c+ -1|0;g[c|0]=a-e|48;e=b>>>0>9;a=d;b=f;if(e){continue}break}}if(d){while(1){c=c+ -1|0;a=(d>>>0)/10|0;g[c|0]=d-o(a,10)|48;b=d>>>0>9;d=a;if(b){continue}break}}return c}function Gn(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=H-16|0;H=c;g=a;h=a;a:{if(!b){b=0;e=0;break a}d=b;b=r(b)^31;un(c,d,0,0,0,112-b|0);b=(i[c+12>>2]^65536)+(b+16383<<16)|0;d=0+i[c+8>>2]|0;if(d>>>0>>0){b=b+1|0}f=d;d=b;b=i[c+4>>2];e=i[c>>2]}i[h>>2]=e;i[g+4>>2]=b;i[a+8>>2]=f;i[a+12>>2]=d;H=c+16|0}function id(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=H-48|0;H=d;f=i[b+4>>2];b=i[b+12>>2];i[d+40>>2]=0;e=d+32|0;i[e>>2]=0;i[e+4>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;jd(d,c,b,f,d+8|0);b=i[e>>2];if(b){i[d+36>>2]=b;ep(b)}i[a>>2]=i[d>>2];H=d+48|0}function Pi(a){a=a|0;var b=0;i[a+8>>2]=12332;i[a>>2]=12120;b=i[a+96>>2];if(b){i[a+100>>2]=b;ep(b)}b=i[a+80>>2];if(b){i[a+84>>2]=b;ep(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;ep(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;ep(b)}i[a+8>>2]=12568;b=i[a+44>>2];if(b){ep(b)}b=i[a+32>>2];if(b){ep(b)}return a|0}function Ca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,h=0,j=0;e=H+ -64|0;H=e;f=K[i[i[b>>2]+44>>2]](b,c)|0;b=K[i[i[b>>2]+40>>2]](b,c)|0;h=Da(e);j=i[c+56>>2];c=b;b=o(Tj(b),f);Ea(h,j,0,f<<24>>24,c,b,b>>31);b=ko(96);c=Ha(b,h);i[a>>2]=b;Ja(c,d);g[b+84|0]=1;i[b+72>>2]=i[b+68>>2];H=e- -64|0}function Go(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=H-16|0;H=f;g=+c;d=Vn(b);while(1){a:{e=$n(b);n[f>>3]=g;h=b;e=Un(e,d+1|0,f);b:{if((e|0)>=0){if(e>>>0<=d>>>0){break a}d=e;break b}d=d<<1|1}Xn(h,d);continue}break}Xn(b,e);d=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=d;i[a+8>>2]=i[b+8>>2];Yn(b);H=f+16|0}function ce(a){a=a|0;var b=0;i[a>>2]=4804;b=i[a+152>>2];if(b){i[a+156>>2]=b;ep(b)}b=i[a+112>>2];if(b){i[a+116>>2]=b;ep(b)}b=i[a+96>>2];if(b){ep(b)}b=i[a+84>>2];if(b){ep(b)}b=i[a+72>>2];if(b){ep(b)}b=i[a+60>>2];if(b){ep(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}return a|0}function Qi(a){a=a|0;var b=0;i[a+8>>2]=12332;i[a>>2]=12120;b=i[a+96>>2];if(b){i[a+100>>2]=b;ep(b)}b=i[a+80>>2];if(b){i[a+84>>2]=b;ep(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;ep(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;ep(b)}i[a+8>>2]=12568;b=i[a+44>>2];if(b){ep(b)}b=i[a+32>>2];if(b){ep(b)}ep(a)}function Dd(a){a=a|0;var b=0;i[a>>2]=3240;b=i[a+152>>2];if(b){i[a+156>>2]=b;ep(b)}b=i[a+112>>2];if(b){i[a+116>>2]=b;ep(b)}b=i[a+96>>2];if(b){ep(b)}b=i[a+84>>2];if(b){ep(b)}b=i[a+72>>2];if(b){ep(b)}b=i[a+60>>2];if(b){ep(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}return a|0}function jo(a,b,c){var d=0,e=0,f=0,h=0;f=H-16|0;H=f;e=c-b|0;if(e>>>0<=4294967279){a:{if(e>>>0<=10){co(a,e);d=a;break a}h=eo(e)+1|0;d=fo(h);go(a,d);ho(a,h);ca(a,e)}while(1){if((b|0)!=(c|0)){bo(d,b);d=d+1|0;b=b+1|0;continue}break}g[f+15|0]=0;bo(d,f+15|0);H=f+16|0;return}to();x()}function Rn(){var a=0,b=0,c=0;a=H-16|0;H=a;a:{if(D(a+12|0,a+8|0)|0){break a}b=dp((i[a+12>>2]<<2)+4|0);i[4822]=b;if(!b){break a}b:{b=dp(i[a+8>>2]);if(b){c=i[4822];if(c){break b}}i[4822]=0;break a}i[(i[a+12>>2]<<2)+c>>2]=0;if(!(E(i[4822],b|0)|0)){break a}i[4822]=0}H=a+16|0}function Oi(a){a=a|0;var b=0;i[a>>2]=12332;b=i[a+88>>2];if(b){i[a+92>>2]=b;ep(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;ep(b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;ep(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;ep(b)}i[a>>2]=12568;b=i[a+36>>2];if(b){ep(b)}b=i[a+24>>2];if(b){ep(b)}return a|0}function Jl(a,b){var c=0;i[a+4>>2]=b;i[a>>2]=0;a:{b:{if(!b){break b}c=Vo(b,16916,16636);if(!c){break b}b=ko(56);Sf(b,c);c=i[a>>2];i[a>>2]=b;if(!c){break a}K[i[i[c>>2]+4>>2]](c);return a}c=ko(56);Qf(c,b);b=i[a>>2];i[a>>2]=c;if(!b){break a}K[i[i[b>>2]+4>>2]](b)}return a}function Wi(a){a=a|0;var b=0;i[a>>2]=12332;b=i[a+88>>2];if(b){i[a+92>>2]=b;ep(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;ep(b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;ep(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;ep(b)}i[a>>2]=12568;b=i[a+36>>2];if(b){ep(b)}b=i[a+24>>2];if(b){ep(b)}ep(a)}function Qj(a,b,c){var d=0;if((c|0)<0?1:(c|0)<=0?b>>>0<0:0){return 0}d=i[a>>2];c=i[a+4>>2]-d|0;a:{if(c>>>0>>0){Rj(a,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+4>>2]=b+d}b=a+24|0;c=b;d=b;a=i[b+4>>2];b=i[b>>2]+1|0;if(b>>>0<1){a=a+1|0}i[d>>2]=b;i[c+4>>2]=a;return 1}function Ja(a,b){var c=0,d=0;a:{if(i[a+64>>2]){break a}d=ko(32);Pj(d);c=i[a+64>>2];i[a+64>>2]=d;if(!c){break a}d=i[c>>2];if(d){i[c+4>>2]=d;ep(d)}ep(c)}c=Tj(i[a+28>>2]);c=o(c,g[a+24|0]);d=c;c=c>>31;if(Qj(i[a+64>>2],xp(d,c,b,0),J)){Fa(a,i[a+64>>2],d,c);i[a+80>>2]=b}}function Sm(a,b){var c=0,d=0,e=0;Hp(+a);c=Ep(1)|0;d=Ep(0)|0;e=c;c=c>>>20&2047;if((c|0)!=2047){if(!c){c=b;if(a==0){b=0}else{a=Sm(a*0x10000000000000000,b);b=i[b>>2]+ -64|0}i[c>>2]=b;return a}i[b>>2]=c+ -1022;Fp(0,d|0);Fp(1,e&-2146435073|1071644672);a=+Gp()}return a}function ef(a){a=a|0;var b=0;i[a+40>>2]=1140;i[a>>2]=9756;b=i[a+48>>2];if(b){i[a+52>>2]=b;ep(b)}i[a>>2]=2248;b=i[a+36>>2];i[a+36>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Xb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;ep(b)}return a|0}function ci(a){var b=0;if(a){b=i[a+76>>2];if(b){i[a+80>>2]=b;ep(b)}b=i[a- -64>>2];if(b){i[a+68>>2]=b;ep(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;ep(b)}b=i[a+24>>2];if(b){i[a+28>>2]=b;ep(b)}b=i[a+12>>2];if(b){i[a+16>>2]=b;ep(b)}b=i[a>>2];if(b){i[a+4>>2]=b;ep(b)}ep(a)}}function Nf(a,b,c,d){var e=0;e=H-16|0;H=e;c=Of(a,b,e+12|0,e+8|0,c);if(!i[c>>2]){b=ko(40);uo(b+16|0,d);uo(b+28|0,d+12|0);i[b+8>>2]=i[e+12>>2];i[b>>2]=0;i[b+4>>2]=0;i[c>>2]=b;d=i[i[a>>2]>>2];if(d){i[a>>2]=d;b=i[c>>2]}Lf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}H=e+16|0}function oi(a){var b=0;b=i[a+84>>2];if(b){i[a+88>>2]=b;ep(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;ep(b)}b=i[a+52>>2];if(b){i[a+56>>2]=b;ep(b)}b=i[a+40>>2];if(b){i[a+44>>2]=b;ep(b)}b=i[a+28>>2];if(b){i[a+32>>2]=b;ep(b)}b=i[a+12>>2];if(b){ep(b)}a=i[a>>2];if(a){ep(a)}}function vf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H-96|0;H=e;f=Qf(e+40|0,c);wf(e,b,c);Wf(f,e);ld(e+24|0,i[e+28>>2]);xf(e+12|0,i[e+16>>2]);ld(e,i[e+4>>2]);Tf(a,f,d);i[f>>2]=10308;ld(f+28|0,i[f+32>>2]);xf(f+16|0,i[f+20>>2]);ld(f+4|0,i[f+8>>2]);H=e+96|0}function ff(a){a=a|0;var b=0;i[a+40>>2]=1140;i[a>>2]=9756;b=i[a+48>>2];if(b){i[a+52>>2]=b;ep(b)}i[a>>2]=2248;b=i[a+36>>2];i[a+36>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Xb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;ep(b)}ep(a)}function Sc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=1;d=i[a+36>>2];a:{if((d|0)==i[a+40>>2]){break a}f=a+60|0;while(1){c=i[(e<<2)+d>>2];c=K[i[i[c>>2]+20>>2]](c,f,b)|0;if(!c){break a}e=e+1|0;d=i[a+36>>2];if(e>>>0>2]-d>>2>>>0){continue}break}}return c|0}function hg(a){var b=0,c=0;c=i[a+8>>2];if((c|0)>=2){b=+(c|0);b=v(hp(b)*b-n[a>>3]);if(q(b)<0x8000000000000000){J=q(b)>=1?b>0?~~s(u(b/4294967296),4294967295)>>>0:~~v((b- +(~~b>>>0>>>0))/4294967296)>>>0:0;return~~b>>>0}a=-2147483648}else{a=0}J=a;return 0}function en(a){var b=0,c=0;b=j[a+74|0];g[a+74|0]=b+ -1|b;if(l[a+20>>2]>l[a+28>>2]){K[i[a+36>>2]](a,0,0)|0}i[a+28>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;b=i[a>>2];if(b&4){i[a>>2]=b|32;return-1}c=i[a+44>>2]+i[a+48>>2]|0;i[a+8>>2]=c;i[a+4>>2]=c;return b<<27>>31}function vp(a,b,c,d){var e=0,f=0,g=0,h=0;e=b;f=e>>31;e=e>>31;a=a^e;g=a-e|0;h=(b^f)-((a>>>0>>0)+f|0)|0;e=d;f=e>>31;e=e>>31;a=c^e;e=zp(g,h,a-e|0,(d^f)-((a>>>0>>0)+f|0)|0);b=b^d;c=b>>31;a=b>>31;b=e^a;d=b-a|0;J=(c^J)-((b>>>0>>0)+c|0)|0;return d}function Qc(a,b){a=a|0;b=b|0;var c=0,d=0;c=i[a+72>>2];a:{if(!c){break a}i[c+4>>2]=a+60;if(!(K[i[i[c>>2]+12>>2]](c)|0)){break a}if(!(K[i[i[a>>2]+40>>2]](a)|0)){break a}if(!(K[i[i[a>>2]+44>>2]](a,b)|0)){break a}d=K[i[i[a>>2]+48>>2]](a,b)|0}return d|0}function Rc(a){a=a|0;var b=0,c=0,d=0,e=0;b=1;c=i[a+36>>2];a:{if((c|0)==i[a+40>>2]){break a}e=a+60|0;while(1){b=i[(d<<2)+c>>2];b=K[i[i[b>>2]+16>>2]](b,e)|0;if(!b){break a}d=d+1|0;c=i[a+36>>2];if(d>>>0>2]-c>>2>>>0){continue}break}}return b|0}function Ea(a,b,c,d,e,f,h){var j=0;i[a>>2]=c;if(c){j=i[c+20>>2];i[a+8>>2]=i[c+16>>2];i[a+12>>2]=j;j=i[c+28>>2];i[a+16>>2]=i[c+24>>2];i[a+20>>2]=j}i[a+56>>2]=b;i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=f;i[a+44>>2]=h;g[a+32|0]=0;i[a+28>>2]=e;g[a+24|0]=d}function Ph(a,b){a=a|0;b=b|0;var c=0,d=0;a:{c=i[a+172>>2];a=i[a+176>>2];if((c|0)!=(a|0)){d=(a-c|0)/136|0;a=0;while(1){if(i[o(a,136)+c>>2]==(b|0)){break a}a=a+1|0;if(a>>>0>>0){continue}break}}return 0}a=o(a,136)+c|0;return(j[a+100|0]?a+4|0:0)|0}function Ln(a,b,c){var d=0,e=0,f=0,g=0;d=H-16|0;H=d;b=b-a>>2;while(1){if(b){i[d+12>>2]=a;e=d+12|0;f=e;g=i[e>>2];e=b>>>1|0;i[f>>2]=g+(e<<2);if(Mn(i[d+12>>2],c)){a=i[d+12>>2]+4|0;i[d+12>>2]=a;b=(e^-1)+b|0}else{b=e}continue}break}H=d+16|0;return a}function Tc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=1;d=i[a+36>>2];a:{if((d|0)==i[a+40>>2]){break a}while(1){c=i[(e<<2)+d>>2];c=K[i[i[c>>2]+24>>2]](c,b)|0;if(!c){break a}e=e+1|0;d=i[a+36>>2];if(e>>>0>2]-d>>2>>>0){continue}break}}return c|0}function Qh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{d=i[a+172>>2];c=i[a+176>>2];if((d|0)!=(c|0)){e=(c-d|0)/136|0;c=0;while(1){if(i[o(c,136)+d>>2]==(b|0)){break a}c=c+1|0;if(c>>>0>>0){continue}break}}return a+40|0}return(o(c,136)+d|0)+104|0}function Jm(a){a=a|0;var b=0,c=0,d=0;b=1;a:{if(!i[a+80>>2]){break a}c=i[a+8>>2];if((i[a+12>>2]-c|0)<=0){break a}while(1){b=i[(d<<2)+c>>2];b=Ka(b,b);if(b){d=d+1|0;c=i[a+8>>2];if((d|0)>2]-c>>2){continue}}break}b=(b|0)!=0}return b|0}function km(a,b,c){var d=0,e=0,f=0;if(c){d=c+28|0;Kb(i[d>>2]-i[c+24>>2]>>2,b);e=i[c+24>>2];f=i[d>>2];if((e|0)!=(f|0)){while(1){d=i[e>>2];if(d){Kb(i[d+24>>2],b);im(a,b,d)}e=e+4|0;if((f|0)!=(e|0)){continue}break}}im(a,b,c)}return(c|0)!=0}function Gj(a){a=a|0;var b=0,c=0,d=0;b=i[a+32>>2];d=i[a+36>>2];if((b|0)==(d|0)){return 1}while(1){a:{c=i[i[a+8>>2]+(i[b>>2]<<2)>>2];c=K[i[i[c>>2]+20>>2]](c,i[a+44>>2])|0;b=b+4|0;if((d|0)==(b|0)){break a}if(c){continue}}break}return c|0}function Kj(a,b){a=a|0;b=b|0;var c=0,d=0;c=H-16|0;H=c;i[c+12>>2]=i[i[b+4>>2]+80>>2];b=i[b+44>>2];d=i[b+20>>2];if((d|0)<0?1:(d|0)<=0?l[b+16>>2]<=0:0){ea(b,i[b+4>>2],c+12|0,c+16|0)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;H=c+16|0}function Se(a){a=a|0;var b=0;i[a>>2]=8408;b=i[a+136>>2];if(b){i[a+140>>2]=b;ep(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;ep(b)}b=i[a+80>>2];if(b){ep(b)}b=i[a+68>>2];if(b){ep(b)}b=i[a+56>>2];if(b){ep(b)}b=i[a+44>>2];if(b){ep(b)}return a|0}function Be(a){a=a|0;var b=0;i[a>>2]=6760;b=i[a+136>>2];if(b){i[a+140>>2]=b;ep(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;ep(b)}b=i[a+80>>2];if(b){ep(b)}b=i[a+68>>2];if(b){ep(b)}b=i[a+56>>2];if(b){ep(b)}b=i[a+44>>2];if(b){ep(b)}return a|0}function Xb(a){a=a|0;var b=0,c=0;if(a){b=i[a+88>>2];i[a+88>>2]=0;if(b){c=i[b+8>>2];if(c){i[b+12>>2]=c;ep(c)}ep(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;ep(b)}b=i[a+64>>2];i[a+64>>2]=0;if(b){c=i[b>>2];if(c){i[b+4>>2]=c;ep(c)}ep(b)}ep(a)}}function Te(a){a=a|0;var b=0;i[a>>2]=8408;b=i[a+136>>2];if(b){i[a+140>>2]=b;ep(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;ep(b)}b=i[a+80>>2];if(b){ep(b)}b=i[a+68>>2];if(b){ep(b)}b=i[a+56>>2];if(b){ep(b)}b=i[a+44>>2];if(b){ep(b)}ep(a)}function Ce(a){a=a|0;var b=0;i[a>>2]=6760;b=i[a+136>>2];if(b){i[a+140>>2]=b;ep(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;ep(b)}b=i[a+80>>2];if(b){ep(b)}b=i[a+68>>2];if(b){ep(b)}b=i[a+56>>2];if(b){ep(b)}b=i[a+44>>2];if(b){ep(b)}ep(a)}function Bm(a,b){var c=0,d=0,e=0,f=0;c=H-16|0;H=c;d=i[a+12>>2];e=i[a+8>>2];f=i[b>>2];i[b>>2]=0;i[c+8>>2]=f;K[i[i[a>>2]+8>>2]](a,d-e>>2,c+8|0);b=i[c+8>>2];i[c+8>>2]=0;if(b){Xb(b)}H=c+16|0;return(i[a+12>>2]-i[a+8>>2]>>2)+ -1|0}function Ia(a,b,c,d,e){var f=0,h=0,j=0;f=ko(32);Pj(f);h=i[a+64>>2];i[a+64>>2]=f;j=a;if(h){f=i[h>>2];if(f){i[h+4>>2]=f;ep(f)}ep(h);f=i[a+64>>2]}h=b;b=o(Tj(d),c);Ea(j,h,f,c,d,b,b>>31);Ja(a,e);g[a+84|0]=1;i[a+72>>2]=i[a+68>>2]}function up(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=o(e,f);g=c&65535;h=a&65535;i=o(g,h);f=(i>>>16|0)+o(f,g)|0;e=(f&65535)+o(e,h)|0;a=(o(b,c)+j|0)+o(a,d)+(f>>>16)+(e>>>16)|0;b=i&65535|e<<16;J=a;return b}function da(a,b){a=a|0;b=b|0;var c=0,d=0;c=H-16|0;H=c;a=i[a+4>>2];a:{if((a|0)==-1){break a}g[c+15|0]=a;d=i[b+20>>2];if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break a}ea(b,i[b+4>>2],c+15|0,c+16|0)}H=c+16|0;return(a|0)!=-1|0}function Do(a,b,c){var d=0,e=0,f=0;f=H-16|0;H=f;d=Wn(a);e=Vn(a);a:{if(d-e>>>0>=c>>>0){if(!c){break a}d=$n(a);Nn(d+e|0,b,c);b=a;a=c+e|0;io(b,a);g[f+15|0]=0;bo(a+d|0,f+15|0);break a}yo(a,d,(c+e|0)-d|0,e,e,0,c,b)}H=f+16|0}function Sj(a,b){var c=0,d=0;d=i[a>>2];c=i[a+4>>2]-d|0;a:{if(c>>>0>>0){Rj(a,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+4>>2]=b+d}b=a+24|0;c=b;d=b;a=i[b+4>>2];b=i[b>>2]+1|0;if(b>>>0<1){a=a+1|0}i[d>>2]=b;i[c+4>>2]=a}function vo(a,b,c){var d=0,e=0,f=0;d=H-16|0;H=d;if(4294967279>=c>>>0){a:{if(c>>>0<=10){co(a,c);e=a;break a}f=eo(c)+1|0;e=fo(f);go(a,e);ho(a,f);ca(a,c)}Nn(e,b,c);g[d+15|0]=0;bo(c+e|0,d+15|0);H=d+16|0;return}to();x()}function Wo(a,b,c){var d=0;d=i[a+16>>2];if(!d){i[a+36>>2]=1;i[a+24>>2]=c;i[a+16>>2]=b;return}a:{if((b|0)==(d|0)){if(i[a+24>>2]!=2){break a}i[a+24>>2]=c;return}g[a+54|0]=1;i[a+24>>2]=2;i[a+36>>2]=i[a+36>>2]+1}}function Z(a,b){a=a|0;b=b|0;var c=0,d=0;i[b>>2]=2;c=i[b+8>>2];d=i[b+12>>2]-c|0;if(d>>>0<=4294967291){b=b+8|0;Sj(b,d+4|0);c=i[b>>2]}b=c+d|0;a=i[a+4>>2];g[b|0]=a;g[b+1|0]=a>>>8;g[b+2|0]=a>>>16;g[b+3|0]=a>>>24}function of(a){var b=0,c=0;c=H-16|0;H=c;i[c+8>>2]=0;i[c+12>>2]=0;pf(a,c+8|0);i[a+24>>2]=0;i[a+28>>2]=0;b=i[a+12>>2];i[a+16>>2]=b;if(b){i[a+16>>2]=b;ep(b)}b=i[a>>2];if(b){i[a+4>>2]=b;ep(b)}H=c+16|0;return a}function bd(a,b){a=a|0;b=b|0;var c=0,d=0;d=i[a+16>>2];a:{if(i[a+20>>2]-d>>2<=(b|0)){break a}b=i[(b<<2)+d>>2];if((b|0)<0){break a}a=i[i[a+36>>2]+(b<<2)>>2];c=i[a+32>>2];if(c){break a}c=i[a+8>>2]}return c|0}function $m(a,b,c,d,e){var f=0;f=H-256|0;H=f;if(!(e&73728|(c|0)<=(d|0))){c=c-d|0;d=c>>>0<256;lp(f,b&255,d?c:256);if(!d){while(1){Vm(a,f,256);c=c+ -256|0;if(c>>>0>255){continue}break}}Vm(a,f,c)}H=f+256|0}function xo(a,b,c){var d=0,e=0,f=0,h=0;e=H-16|0;H=e;d=Wn(a);a:{if(d>>>0>=c>>>0){f=$n(a);h=f;d=c;if(c){mp(h,b,d)}g[e+15|0]=0;bo(c+f|0,e+15|0);io(a,c);break a}f=a;a=Vn(a);yo(f,d,c-d|0,a,0,a,c,b)}H=e+16|0}function _c(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=-1;e=i[a+16>>2];a:{if(i[a+20>>2]-e>>2<=(b|0)){break a}b=i[(b<<2)+e>>2];if((b|0)<0){break a}d=i[i[i[i[a+36>>2]+(b<<2)>>2]+16>>2]+(c<<2)>>2]}return d|0}function Zc(a,b){a=a|0;b=b|0;var c=0,d=0;d=i[a+16>>2];c=0;a:{if(i[a+20>>2]-d>>2<=(b|0)){break a}b=i[(b<<2)+d>>2];c=0;if((b|0)<0){break a}a=i[i[a+36>>2]+(b<<2)>>2];c=i[a+20>>2]-i[a+16>>2]>>2}return c|0}function Cc(a){i[a+32>>2]=0;i[a+12>>2]=-1;i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=1860;i[a+16>>2]=0;i[a+20>>2]=0;g[a+21|0]=0;g[a+22|0]=0;g[a+23|0]=0;g[a+24|0]=0;g[a+25|0]=0;g[a+26|0]=0;g[a+27|0]=0;g[a+28|0]=0}function Ao(a,b){var c=0,d=0,e=0,f=0;e=H-16|0;H=e;if(b){d=Wn(a);c=Vn(a);f=c+b|0;if(d-c>>>0>>0){Co(a,d,f-d|0,c,c)}d=c;c=$n(a);d=d+c|0;if(b){lp(d,0,b)}io(a,f);g[e+15|0]=0;bo(c+f|0,e+15|0)}H=e+16|0}function od(a){a=a|0;var b=0;i[a>>2]=2248;b=i[a+36>>2];i[a+36>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Xb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;ep(b)}return a|0}function yj(a){i[a+52>>2]=0;i[a>>2]=13484;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;return a}function Ij(a,b){var c=0,d=0;a:{if((b|0)<0){break a}c=i[a+4>>2];if(i[c+12>>2]-i[c+8>>2]>>2<=(b|0)){break a}a=i[i[a+8>>2]+(i[i[a+20>>2]+(b<<2)>>2]<<2)>>2];d=K[i[i[a>>2]+36>>2]](a,b)|0}return d}function pd(a){a=a|0;var b=0;i[a>>2]=2248;b=i[a+36>>2];i[a+36>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Xb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;ep(b)}ep(a)}function Ga(a){Da(a);i[a+64>>2]=0;i[a+68>>2]=0;i[a+88>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;g[a+77|0]=0;g[a+78|0]=0;g[a+79|0]=0;g[a+80|0]=0;g[a+81|0]=0;g[a+82|0]=0;g[a+83|0]=0;g[a+84|0]=0;return a}function Nc(a,b,c){Gb(a,c);i[a+36>>2]=0;i[a+40>>2]=0;i[a>>2]=2032;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0;c=i[b>>2];i[b>>2]=0;i[a+72>>2]=c}function Fa(a,b,c,d){var e=0;i[a>>2]=b;e=i[b+20>>2];i[a+8>>2]=i[b+16>>2];i[a+12>>2]=e;e=i[b+24>>2];b=i[b+28>>2];i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=c;i[a+44>>2]=d;i[a+16>>2]=e;i[a+20>>2]=b}function np(a){var b=0;b=j[a+74|0];g[a+74|0]=b+ -1|b;b=i[a>>2];if(b&8){i[a>>2]=b|32;return-1}i[a+4>>2]=0;i[a+8>>2]=0;b=i[a+44>>2];i[a+28>>2]=b;i[a+20>>2]=b;i[a+16>>2]=b+i[a+48>>2];return 0}function Da(a){i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+28>>2]=9;g[a+24|0]=1;i[a+56>>2]=-1;i[a+60>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;return a}function Qn(a,b){var c=0,d=0;c=j[a|0];d=j[b|0];a:{if(!c|(c|0)!=(d|0)){break a}while(1){d=j[b+1|0];c=j[a+1|0];if(!c){break a}b=b+1|0;a=a+1|0;if((c|0)==(d|0)){continue}break}}return c-d|0}function $l(a,b){a=a|0;b=b|0;var c=0,d=0;Em(a,b);a:{if((b|0)<0){break a}c=i[a+88>>2];d=i[a+84>>2];if(c-d>>2<=(b|0)){break a}b=d+(b<<2)|0;d=b+4|0;c=c-d|0;if(c){mp(b,d,c)}i[a+88>>2]=b+c}}function Bn(a,b,c,d,e,f,g,h,j){var k=0;k=H-16|0;H=k;vn(k,b,c,d,e,f,g,h,j^-2147483648);b=i[k+4>>2];i[a>>2]=i[k>>2];i[a+4>>2]=b;b=i[k+12>>2];i[a+8>>2]=i[k+8>>2];i[a+12>>2]=b;H=k+16|0}function fp(a){var b=0,c=0;b=i[4804];c=a+3&-4;a=b+c|0;a:{if(a>>>0<=b>>>0?(c|0)>=1:0){break a}if(a>>>0>Lp()<<16>>>0){if(!(F(a|0)|0)){break a}}i[4804]=a;return b}i[4805]=48;return-1}function Ak(a,b){var c=0;if(b){Ak(a,i[b>>2]);Ak(a,i[b+4>>2]);c=b+28|0;a=i[c>>2];i[c>>2]=0;if(a){Ak(a+12|0,i[a+16>>2]);Bk(a,i[a+4>>2]);ep(a)}if(g[b+27|0]<=-1){ep(i[b+16>>2])}ep(b)}}function Hj(a,b){var c=0;a:{if((b|0)<0){break a}c=i[a+4>>2];if(i[c+12>>2]-i[c+8>>2]>>2<=(b|0)){break a}a=i[i[a+8>>2]+(i[i[a+20>>2]+(b<<2)>>2]<<2)>>2];K[i[i[a>>2]+32>>2]](a,b)|0}}function uo(a,b){var c=0,d=0,e=0;d=H-16|0;H=d;c=a;a:{if(!Zn(b)){i[c+8>>2]=i[b+8>>2];e=i[b+4>>2];i[c>>2]=i[b>>2];i[c+4>>2]=e;break a}vo(a,i[b>>2],i[b+4>>2])}H=d+16|0;return a}function ej(a){a=a|0;var b=0;i[a+8>>2]=11784;i[a>>2]=12880;b=i[a+56>>2];if(b){i[a+60>>2]=b;ep(b)}i[a+8>>2]=12036;b=i[a+44>>2];if(b){ep(b)}b=i[a+32>>2];if(b){ep(b)}return a|0}function _i(a){a=a|0;var b=0;i[a+8>>2]=12752;i[a>>2]=12588;b=i[a+56>>2];if(b){i[a+60>>2]=b;ep(b)}i[a+8>>2]=12568;b=i[a+44>>2];if(b){ep(b)}b=i[a+32>>2];if(b){ep(b)}return a|0}function fj(a){a=a|0;var b=0;i[a+8>>2]=11784;i[a>>2]=12880;b=i[a+56>>2];if(b){i[a+60>>2]=b;ep(b)}i[a+8>>2]=12036;b=i[a+44>>2];if(b){ep(b)}b=i[a+32>>2];if(b){ep(b)}ep(a)}function Mm(a,b,c){var d=0,e=0,f=0;a:{if(!c){break a}while(1){d=j[a|0];e=j[b|0];if((d|0)==(e|0)){b=b+1|0;a=a+1|0;c=c+ -1|0;if(c){continue}break a}break}f=d-e|0}return f}function $i(a){a=a|0;var b=0;i[a+8>>2]=12752;i[a>>2]=12588;b=i[a+56>>2];if(b){i[a+60>>2]=b;ep(b)}i[a+8>>2]=12568;b=i[a+44>>2];if(b){ep(b)}b=i[a+32>>2];if(b){ep(b)}ep(a)}function Rb(a,b){Gb(a,b);i[a+36>>2]=0;i[a+40>>2]=0;i[a>>2]=1596;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0;i[a+72>>2]=0}function Bl(a,b){var c=0;a:{if(i[a+4>>2]|!a){break a}c=ko(36);nm(c,b);i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;b=i[a+4>>2];i[a+4>>2]=c;c=1;if(!b){break a}Cl(b)}return c}function Io(a,b,c,d){var e=0,f=0,g=0,h=0;f=a;a:{b:{e=c-b|0;if((e|0)<=9){if((Jo(d)|0)>(e|0)){break b}}g=a,h=mo(d,b),i[g>>2]=h;a=0;break a}i[a>>2]=c;a=61}i[f+4>>2]=a}function ig(a){var b=0,c=0,d=0;b=i[a+12>>2];a=i[a+16>>2];c=(((b-a|0)+1|0)/64|0)+a<<3;b=c;a=a<<3;d=a;b=b+a|0;a=(c>>31)+(a>>31)|0;a=b>>>0>>0?a+1|0:a;J=a;return b}function Y(a,b){a=a|0;b=b|0;var c=0;b=i[b+88>>2];if(!(!b|i[b>>2]!=2)){c=a;a=i[b+8>>2];i[c+4>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24);c=1}return c|0}function Hh(a){a=a|0;var b=0;a:{b=i[a+64>>2];if(!b){break a}b=K[i[i[b>>2]+32>>2]](b)|0;if(!b){break a}i[a+60>>2]=((i[b+4>>2]-i[b>>2]>>2>>>0)/3|0)-i[b+40>>2]}}function Nb(a,b){a=a|0;b=b|0;a:{if(!(K[i[i[a>>2]+40>>2]](a)|0)){break a}if(!(K[i[i[a>>2]+44>>2]](a,b)|0)){break a}return K[i[i[a>>2]+48>>2]](a,b)|0}return 0}function Zi(a){a=a|0;var b=0;i[a>>2]=12752;b=i[a+48>>2];if(b){i[a+52>>2]=b;ep(b)}i[a>>2]=12568;b=i[a+36>>2];if(b){ep(b)}b=i[a+24>>2];if(b){ep(b)}return a|0}function Bo(a,b){var c=0,d=0;c=H-16|0;H=c;a:{if(Zn(a)){d=i[a>>2];g[c+15|0]=0;bo(b+d|0,c+15|0);ca(a,b);break a}g[c+14|0]=0;bo(a+b|0,c+14|0);co(a,b)}H=c+16|0}function $h(a){a=a|0;var b=0;i[a>>2]=11784;b=i[a+48>>2];if(b){i[a+52>>2]=b;ep(b)}i[a>>2]=12036;b=i[a+36>>2];if(b){ep(b)}b=i[a+24>>2];if(b){ep(b)}return a|0}function Wm(a){var b=0,c=0,d=0;if(Om(g[i[a>>2]])){while(1){b=i[a>>2];d=g[b|0];i[a>>2]=b+1;c=(o(c,10)+d|0)+ -48|0;if(Om(g[b+1|0])){continue}break}}return c}function Oj(a,b,c){var d=0,e=0,f=0;if((b|0)>0){while(1){f=d<<2;e=i[f+a>>2];i[c+f>>2]=(e|0)>-1?e<<1:(e^-1)<<1|1;d=d+1|0;if((d|0)!=(b|0)){continue}break}}}function dj(a){a=a|0;var b=0;i[a>>2]=12752;b=i[a+48>>2];if(b){i[a+52>>2]=b;ep(b)}i[a>>2]=12568;b=i[a+36>>2];if(b){ep(b)}b=i[a+24>>2];if(b){ep(b)}ep(a)}function Ji(a){a=a|0;var b=0;i[a>>2]=11784;b=i[a+48>>2];if(b){i[a+52>>2]=b;ep(b)}i[a>>2]=12036;b=i[a+36>>2];if(b){ep(b)}b=i[a+24>>2];if(b){ep(b)}ep(a)}function mo(a,b){var c=0,d=0;if(a>>>0<=99999999){return no(b,a)}c=(a>>>0)/1e8|0;d=a-o(c,1e8)|0;a=(d>>>0)/1e4|0;return po(po(oo(b,c),a),d-o(a,1e4)|0)}function lm(a,b){var c=0,d=0;a:{d=i[b>>2];if(!d){break a}c=i[a+28>>2];if(c>>>0>2]){i[b>>2]=0;i[c>>2]=d;i[a+28>>2]=c+4;break a}mm(a+24|0,b)}}function dk(a,b){a:{b=vc(a,b);if((b|0)==(a+4|0)){break a}a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}a=dn(a);if((a|0)==-1){break a}return(a|0)!=0}return 0}function bp(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(To(a,i[b+8>>2],f)){Zo(b,c,d,e);return}a=i[a+8>>2];K[i[i[a>>2]+20>>2]](a,b,c,d,e,f)}function Vd(a){a=a|0;var b=0;a:{if(!i[a- -64>>2]|!i[a+68>>2]|(!i[a+44>>2]|!i[a+48>>2])){break a}if(!i[a+52>>2]){break a}b=i[a+56>>2]!=0}return b|0}function ek(a,b,c){b=vc(a,b);a:{if((b|0)==(a+4|0)){break a}a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}a=dn(a);if((a|0)==-1){break a}c=(a|0)!=0}return c}function Ne(a){a=a|0;var b=0;a:{if(!i[a+48>>2]|!i[a+52>>2]|(!i[a+28>>2]|!i[a+32>>2])){break a}if(!i[a+36>>2]){break a}b=i[a+40>>2]!=0}return b|0}function Tn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=i[a+20>>2];d=i[a+16>>2]-e|0;d=d>>>0>c>>>0?c:d;kp(e,b,d);i[a+20>>2]=d+i[a+20>>2];return c|0}function jp(a,b,c,d){var e=0,f=0;f=d&65535;d=d>>>16&32767;a:{if((d|0)!=32767){e=4;if(d){break a}return a|c|(b|f)?3:2}e=!(a|c|(b|f))}return e}function fn(a){var b=0,c=0;b=H-16|0;H=b;c=-1;a:{if(en(a)){break a}if((K[i[a+32>>2]](a,b+15|0,1)|0)!=1){break a}c=j[b+15|0]}H=b+16|0;return c}function zm(a,b){var c=0;c=-1;a:{if((b|0)==-1|(b|0)>4){break a}b=o(b,12)+a|0;a=i[b+20>>2];if((i[b+24>>2]-a|0)<1){break a}c=i[a>>2]}return c}function Am(a){var b=0,c=0;b=i[a+20>>2];a:{if((i[a+24>>2]-b|0)<1){break a}b=i[b>>2];if((b|0)==-1){break a}c=i[i[a+8>>2]+(b<<2)>>2]}return c}function bn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=b;b=i[b>>2]+15&-16;i[c>>2]=b+16;d=a,e=Fn(i[b>>2],i[b+4>>2],i[b+8>>2],i[b+12>>2]),n[d>>3]=e}function Ym(a,b,c,d){if(a|b){while(1){c=c+ -1|0;g[c|0]=j[(a&15)+17488|0]|d;a=(b&15)<<28|a>>>4;b=b>>>4|0;if(a|b){continue}break}}return c}function Wl(a){a=a|0;var b=0;i[a>>2]=16592;b=i[a+96>>2];if(b){i[a+100>>2]=b;ep(b)}b=i[a+84>>2];if(b){i[a+88>>2]=b;ep(b)}Xl(a);return a|0}function Fo(a,b){var c=0,d=0;c=H-16|0;H=c;d=H-16|0;H=d;Yn(c);H=d+16|0;Xn(c,Wn(c));Go(a,c,b);a=c;if(Zn(c)){d=i[a>>2];_n(a);ep(d)}H=c+16|0}function qo(a,b){var c=0;if(b>>>0<=99){return oo(a,b)}if(b>>>0<=999){c=a;a=(b>>>0)/100|0;return so(ro(c,a),b-o(a,100)|0)}return po(a,b)}function Yl(a){a=a|0;var b=0;i[a>>2]=16592;b=i[a+96>>2];if(b){i[a+100>>2]=b;ep(b)}b=i[a+84>>2];if(b){i[a+88>>2]=b;ep(b)}Xl(a);ep(a)}function Bk(a,b){if(b){Bk(a,i[b>>2]);Bk(a,i[b+4>>2]);a=i[b+28>>2];if(a){i[b+32>>2]=a;ep(a)}if(g[b+27|0]<=-1){ep(i[b+16>>2])}ep(b)}}function qf(a){var b=0;b=H-16|0;H=b;i[b+8>>2]=0;i[b+12>>2]=0;pf(a,b+8|0);i[a+24>>2]=0;i[a+28>>2]=0;i[a+16>>2]=i[a+12>>2];H=b+16|0}function gn(a){var b=0,c=0;i[a+112>>2]=0;i[a+116>>2]=0;b=i[a+8>>2];c=b-i[a+4>>2]|0;i[a+120>>2]=c;i[a+124>>2]=c>>31;i[a+104>>2]=b}function fe(a){a=a|0;var b=0;i[a>>2]=5040;b=i[a+76>>2];if(b){ep(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}return a|0}function Wf(a,b){var c=0;c=a+4|0;if((c|0)!=(b|0)){yf(c,i[b>>2],b+4|0);Xf(a+16|0,i[b+12>>2],b+16|0);yf(a+28|0,i[b+24>>2],b+28|0)}}function Kc(a){a=a|0;var b=0;i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Xb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;ep(b)}return a|0}function Jd(a){a=a|0;var b=0;i[a>>2]=3488;b=i[a+76>>2];if(b){ep(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}return a|0}function lo(a,b){var c=0,d=0,e=0,f=0;c=pp(b);d=ko(c+13|0);i[d+8>>2]=0;i[d+4>>2]=c;i[d>>2]=c;e=a,f=kp(d+12|0,b,c+1|0),i[e>>2]=f}function Lb(a){a=a|0;var b=0;i[a>>2]=1432;b=i[a+16>>2];if(b){i[a+20>>2]=b;ep(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;ep(b)}return a|0}function ld(a,b){if(b){ld(a,i[b>>2]);ld(a,i[b+4>>2]);if(g[b+39|0]<=-1){ep(i[b+28>>2])}if(g[b+27|0]<=-1){ep(i[b+16>>2])}ep(b)}}function ck(a,b){var c=p(0);b=vc(a,b);if((b|0)!=(a+4|0)){a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}c=p(rn(a))}else{c=p(1)}return c}function Yo(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(To(a,i[b+8>>2],0)){Wo(b,c,d);return}a=i[a+8>>2];K[i[i[a>>2]+28>>2]](a,b,c,d)}function ge(a){a=a|0;var b=0;i[a>>2]=5040;b=i[a+76>>2];if(b){ep(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}ep(a)}function Ul(a){ym(a);i[a+84>>2]=0;i[a+88>>2]=0;i[a>>2]=16592;i[a+92>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;i[a+104>>2]=0;return a}function Lc(a){a=a|0;var b=0;i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Xb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;ep(b)}ep(a)}function Kd(a){a=a|0;var b=0;i[a>>2]=3488;b=i[a+76>>2];if(b){ep(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}ep(a)}function nf(a){i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;return a}function ko(a){var b=0;a=a?a:1;a:{while(1){b=dp(a);if(b){break a}b=i[4823];if(b){K[b|0]();continue}break}C();x()}return b}function Zm(a,b,c){if(a|b){while(1){c=c+ -1|0;g[c|0]=a&7|48;a=(b&7)<<29|a>>>3;b=b>>>3|0;if(a|b){continue}break}}return c}function Wj(a,b){var c=0,d=0;d=i[a>>2];c=i[a+4>>2]-d|0;if(c>>>0>>0){Rj(a,b-c|0);return}if(c>>>0>b>>>0){i[a+4>>2]=b+d}}function yk(){var a=0;a=ko(24);i[a+4>>2]=0;i[a+8>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a>>2]=a+4;i[a+12>>2]=a+16;return a|0}function pn(a,b){var c=0,d=p(0);c=H-16|0;H=c;qn(c,a,b,0);d=yn(i[c>>2],i[c+4>>2],i[c+8>>2],i[c+12>>2]);H=c+16|0;return d}function sa(a,b,c,d,e){var f=0;f=b+ -1|0;if(f>>>0<=29){i[a+4>>2]=b;ta(a+8|0,c,(d<<2)+c|0);m[a+20>>2]=e}return f>>>0<30}function oa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(i[c>>2]==i[c+4>>2]){pa(a,b,i[d+80>>2],d);return 1}qa(a,b,c,d);return 1}function Eo(a,b){var c=0;c=H-32|0;H=c;Ho(c+8|0,c+21|0,c+32|0,b);b=H-16|0;H=b;jo(a,c+21|0,i[c+8>>2]);H=b+16|0;H=c+32|0}function jn(a,b,c,d,e,f,g,h,j){i[a>>2]=b;i[a+4>>2]=c;i[a+8>>2]=d;i[a+12>>2]=e&65535|(j>>>16&32768|e>>>16&32767)<<16}function je(a){a=a|0;var b=0;i[a>>2]=5264;of(a+112|0);i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}return a|0}function af(a){fd(a);i[a+48>>2]=0;i[a+52>>2]=0;i[a+44>>2]=-1;i[a+40>>2]=1140;i[a>>2]=9756;i[a+56>>2]=0;i[a+60>>2]=0}function Sf(a,b){i[a>>2]=10308;Rf(a+4|0);i[a+40>>2]=0;i[a+44>>2]=0;i[a+52>>2]=b;i[a+48>>2]=b;i[a>>2]=10492;return a}function Sd(a){a=a|0;var b=0;i[a>>2]=3724;of(a+112|0);i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}return a|0}function Qf(a,b){i[a>>2]=10308;Rf(a+4|0);i[a+40>>2]=0;i[a+44>>2]=0;i[a+52>>2]=0;i[a+48>>2]=b;i[a>>2]=10492;return a}function Dc(a,b,c){a=a|0;b=b|0;c=c|0;i[a+4>>2]=b;b=i[i[i[b+4>>2]+8>>2]+(c<<2)>>2];i[a+12>>2]=c;i[a+8>>2]=b;return 1}function rn(a){var b=0,c=0;b=H-16|0;H=b;qn(b,a,0,1);c=Fn(i[b>>2],i[b+4>>2],i[b+8>>2],i[b+12>>2]);H=b+16|0;return c}function dg(a){i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0}function Md(a){a=a|0;var b=0;if(!(!i[a+60>>2]|!i[a+44>>2]|(!i[a+48>>2]|!i[a+52>>2]))){b=i[a+56>>2]!=0}return b|0}function He(a){a=a|0;var b=0;if(!(!i[a+44>>2]|!i[a+28>>2]|(!i[a+32>>2]|!i[a+36>>2]))){b=i[a+40>>2]!=0}return b|0}function cl(a){a=a|0;if(a){i[a>>2]=10384;ld(a+28|0,i[a+32>>2]);Cf(a+16|0,i[a+20>>2]);ld(a+4|0,i[a+8>>2]);ep(a)}}function ke(a){a=a|0;var b=0;i[a>>2]=5264;of(a+112|0);i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}ep(a)}function cg(a,b){var c=0,d=0;if(!(!a|!b|(a|0)==(b|0))){c=+(b>>>0)/+(a>>>0);d=1-c;c=-(c*hp(c)+d*hp(d))}return c}function To(a,b,c){if(!c){return i[a+4>>2]==i[b+4>>2]}if((a|0)==(b|0)){return 1}return!Qn(i[a+4>>2],i[b+4>>2])}function Td(a){a=a|0;var b=0;i[a>>2]=3724;of(a+112|0);i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}ep(a)}function If(a){a=a|0;i[a>>2]=10384;ld(a+28|0,i[a+32>>2]);Cf(a+16|0,i[a+20>>2]);ld(a+4|0,i[a+8>>2]);return a|0}function Af(a){a=a|0;i[a>>2]=10308;ld(a+28|0,i[a+32>>2]);xf(a+16|0,i[a+20>>2]);ld(a+4|0,i[a+8>>2]);return a|0}function Vj(a){i[a>>2]=0;i[a+4>>2]=0;g[a+24|0]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;return a}function Po(a){var b=0,c=0;a:{b=i[a>>2]+ -12|0;c=b+8|0;a=i[c>>2]+ -1|0;i[c>>2]=a;if((a|0)>-1){break a}ep(b)}}function no(a,b){var c=0;if(b>>>0<=9999){return qo(a,b)}c=a;a=(b>>>0)/1e4|0;return po(qo(c,a),b-o(a,1e4)|0)}function Vk(){var a=0;a=ko(48);i[a>>2]=10384;uf(a+4|0);i[a+40>>2]=0;i[a+44>>2]=0;i[a>>2]=10112;return a|0}function Ba(a){var b=0;b=A(8)|0;i[b>>2]=18596;i[b>>2]=18640;lo(b+4|0,a);i[b>>2]=18688;B(b|0,18720,13);x()}function ak(a,b){b=vc(a,b);if((b|0)==(a+4|0)){return-1}a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}return dn(a)}function Kf(a){a=a|0;i[a>>2]=10308;ld(a+28|0,i[a+32>>2]);xf(a+16|0,i[a+20>>2]);ld(a+4|0,i[a+8>>2]);ep(a)}function Jf(a){a=a|0;i[a>>2]=10384;ld(a+28|0,i[a+32>>2]);Cf(a+16|0,i[a+20>>2]);ld(a+4|0,i[a+8>>2]);ep(a)}function Xi(a){a=a|0;var b=0;i[a>>2]=12568;b=i[a+36>>2];if(b){ep(b)}b=i[a+24>>2];if(b){ep(b)}return a|0}function Ki(a){a=a|0;var b=0;i[a>>2]=12036;b=i[a+36>>2];if(b){ep(b)}b=i[a+24>>2];if(b){ep(b)}return a|0}function bk(a,b,c){b=vc(a,b);if((b|0)!=(a+4|0)){a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}c=dn(a)}return c}function yd(a){a=a|0;var b=0;if(!(!i[a+52>>2]|(!i[a+44>>2]|!i[a+48>>2]))){b=i[a+56>>2]!=0}return b|0}function xe(a){a=a|0;var b=0;if(!(!i[a+36>>2]|(!i[a+28>>2]|!i[a+32>>2]))){b=i[a+40>>2]!=0}return b|0}function Pj(a){i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0}function Yi(a){a=a|0;var b=0;i[a>>2]=12568;b=i[a+36>>2];if(b){ep(b)}b=i[a+24>>2];if(b){ep(b)}ep(a)}function Li(a){a=a|0;var b=0;i[a>>2]=12036;b=i[a+36>>2];if(b){ep(b)}b=i[a+24>>2];if(b){ep(b)}ep(a)}function Wd(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a- -64>>2]=b;c=1}return c|0}function kf(a){var b=0;i[a+12>>2]=0;i[a+16>>2]=0;b=i[a>>2];i[a+4>>2]=b;if(b){i[a+4>>2]=b;ep(b)}}function cp(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(To(a,i[b+8>>2],f)){Zo(b,c,d,e)}}function Oe(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a+48>>2]=b;c=1}return c|0}function Nd(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a+60>>2]=b;c=1}return c|0}function Ie(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a+44>>2]=b;c=1}return c|0}function Jo(a){var b=0;b=o(32-r(a|1)|0,1233)>>>12|0;return(b-(l[(b<<2)+18496>>2]>a>>>0)|0)+1|0}function Yn(a){var b=0;b=a;a=0;while(1){if((a|0)!=3){i[(a<<2)+b>>2]=0;a=a+1|0;continue}break}}function eo(a){var b=0;if(a>>>0>=11){b=a+16&-16;a=b+ -1|0;a=(a|0)==11?b:a}else{a=10}return a}function vd(a){a=a|0;var b=0;i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}return a|0}function xa(a){a=a|0;var b=0;i[a>>2]=1140;b=i[a+8>>2];if(b){i[a+12>>2]=b;ep(b)}return a|0}function ml(a){a=a|0;var b=0;if(a){b=i[a>>2];i[a>>2]=0;if(b){K[i[i[b>>2]+4>>2]](b)}ep(a)}}function Ho(a,b,c,d){if(!((b|0)==(c|0)|(d|0)>-1)){g[b|0]=45;d=0-d|0;b=b+1|0}Io(a,b,c,d)}function Bp(a,b){var c=0,d=0;c=b&31;d=(-1>>>c&a)<>>a}function tj(a){a=a|0;var b=0;b=a;a=i[a+56>>2];i[b+60>>2]=(i[a+100>>2]-i[a+96>>2]|0)/12}function wd(a){a=a|0;var b=0;i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;ep(b)}ep(a)}function Rk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return yl(b,c,d,e,f,6)|0}function Qk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return yl(b,c,d,e,f,5)|0}function Pk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Al(b,c,d,e,f,4)|0}function Ok(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Al(b,c,d,e,f,3)|0}function Nk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return zl(b,c,d,e,f,2)|0}function Mk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return zl(b,c,d,e,f,1)|0}function Lk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return yl(b,c,d,e,f,9)|0}function Ap(a){var b=0,c=0;while(1){c=b;if(a){a=a-1&a;b=b+1|0;continue}break}return c}function ya(a){a=a|0;var b=0;i[a>>2]=1140;b=i[a+8>>2];if(b){i[a+12>>2]=b;ep(b)}ep(a)}function gl(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=p(f);_f(i[a>>2],b,c,d,e,f)}function Un(a,b,c){var d=0;d=H-16|0;H=d;i[d+12>>2]=c;a=Sn(a,b,c);H=d+16|0;return a}function xf(a,b){if(b){xf(a,i[b>>2]);xf(a,i[b+4>>2]);ld(b+20|0,i[b+24>>2]);ep(b)}}function si(a,b){a=a|0;b=b|0;return i[i[a+28>>2]+(b>>>3&536870908)>>2]>>>(b&31)&1}function Cf(a,b){if(b){Cf(a,i[b>>2]);Cf(a,i[b+4>>2]);ld(b+20|0,i[b+24>>2]);ep(b)}}function Fh(a,b){a=a|0;b=b|0;var c=0;c=a;a=i[b+64>>2];K[i[i[a>>2]+28>>2]](c,a)}function Yk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=p(f);Ff(a,b,c,d,e,f)}function Xo(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(To(a,i[b+8>>2],0)){Wo(b,c,d)}}function Ve(a){a=a|0;var b=0;i[a>>2]=8668;b=i[a+60>>2];if(b){ep(b)}return a|0}function Fe(a){a=a|0;var b=0;i[a>>2]=7032;b=i[a+60>>2];if(b){ep(b)}return a|0}function po(a,b){var c=0;c=a;a=(b>>>0)/100|0;return so(so(c,a),b-o(a,100)|0)}function pm(a,b,c){var d=0;d=H-16|0;H=d;i[d+12>>2]=c;qm(a,b,d+12|0);H=d+16|0}function zo(a,b){var c=0;c=Vn(a);if(c>>>0>>0){Ao(a,b-c|0);return}Bo(a,b)}function Mh(a,b){a=a|0;b=b|0;a=i[a+64>>2];return K[i[i[a>>2]+16>>2]](a,b)|0}function Lh(a,b){a=a|0;b=b|0;a=i[a+64>>2];return K[i[i[a>>2]+12>>2]](a,b)|0}function Jj(a,b){a=a|0;b=b|0;i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}function Fk(a){a=a|0;var b=0;if(a){b=i[a>>2];if(b){i[a+4>>2]=b;ep(b)}ep(a)}}function Eh(a,b){a=a|0;b=b|0;a=i[a+64>>2];return K[i[i[a>>2]+24>>2]](a,b)|0}function Dh(a,b){a=a|0;b=b|0;a=i[a+64>>2];return K[i[i[a>>2]+20>>2]](a,b)|0}function Ck(){var a=0;a=ko(12);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;return a|0}function um(a,b,c){var d=0;d=H-16|0;H=d;n[d+8>>3]=c;vm(a,b,d+8|0);H=d+16|0}function so(a,b){b=k[(b<<1)+18272>>1];g[a|0]=b;g[a+1|0]=b>>>8;return a+2|0}function jf(a){i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}function _(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return $(a,b,c,i[d+80>>2],d)|0}function Tj(a){a=a+ -1|0;if(a>>>0<=10){return i[(a<<2)+16240>>2]}return-1}function Pn(a,b){var c=0,d=0;c=H-16|0;H=c;d=Mn(a,b);H=c+16|0;return d?b:a}function Jk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return wl(b,c,d,e)|0}function We(a){a=a|0;var b=0;i[a>>2]=8668;b=i[a+60>>2];if(b){ep(b)}ep(a)}function Uj(a){a=a+ -1|0;if(a>>>0<=10){return 1279>>>(a&2047)&1}return 0}function Ge(a){a=a|0;var b=0;i[a>>2]=7032;b=i[a+60>>2];if(b){ep(b)}ep(a)}function Fc(a,b,c){a=a|0;b=b|0;c=c|0;return K[i[i[a>>2]+44>>2]](a,b,c)|0}function zk(a){a=a|0;if(a){Ak(a+12|0,i[a+16>>2]);Bk(a,i[a+4>>2]);ep(a)}}function vj(a,b){a=a|0;b=b|0;g[b+84|0]=1;i[b+72>>2]=i[b+68>>2];return 1}function _d(a,b){a=a|0;b=b|0;if(b>>>0<=1){i[a+28>>2]=b}return b>>>0<2|0}function Ib(a,b,c){a=a|0;b=b|0;c=c|0;i[a+32>>2]=c;i[a+28>>2]=b;return 1}function _o(a,b,c){if(!(i[a+28>>2]==1|i[a+4>>2]!=(b|0))){i[a+28>>2]=c}}function Jn(a,b,c){var d=0;d=H-16|0;H=d;a=Ln(a,b,c);H=d+16|0;return a}function al(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Il(a,b,c,d)|0}function Kh(a){a=a|0;a=i[a+64>>2];return K[i[i[a>>2]+32>>2]](a)|0}function Uk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return El(b,c,d)|0}function Tk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Dl(b,c,d)|0}function Ik(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return vl(b,c,d)|0}function Hk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ul(b,c,d)|0}function Ec(a,b){a=a|0;b=b|0;i[a+12>>2]=-1;i[a+8>>2]=b;return 1}function tp(a,b){a=a|0;b=b|0;if(!i[4948]){i[4949]=b;i[4948]=a}}function fo(a){if(4294967295>>0){Ba(18200);x()}return ko(a)}function Kk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return xl(b,c,d)|0}function mj(a){yj(a);i[a+56>>2]=0;i[a+60>>2]=0;i[a>>2]=13060}function oo(a,b){if(b>>>0<=9){return ro(a,b)}return so(a,b)}function Zj(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=a+4;return a}function wk(a){a=a|0;return(i[a+100>>2]-i[a+96>>2]|0)/12|0}function lf(a){i[a+12>>2]=0;i[a+16>>2]=0;i[a+4>>2]=i[a>>2]}function Vn(a){if(Zn(a)){return i[a+4>>2]}return j[a+11|0]}function Wn(a){if(Zn(a)){a=_n(a)+ -1|0}else{a=10}return a}function Cp(a){if(a){return 31-r(a+ -1^a)|0}return 32} +function nd(a){a=a|0;var b=0;i[a>>2]=2248;b=i[a+36>>2];i[a+36>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Wb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}return a|0}function Hj(a,b){var c=0,d=0;a:{if((b|0)<0){break a}c=i[a+4>>2];if(i[c+12>>2]-i[c+8>>2]>>2<=(b|0)){break a}a=i[i[a+8>>2]+(i[i[a+20>>2]+(b<<2)>>2]<<2)>>2];d=I[i[i[a>>2]+36>>2]](a,b)|0}return d}function od(a){a=a|0;var b=0;i[a>>2]=2248;b=i[a+36>>2];i[a+36>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Wb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}bp(a)}function Ea(a){Ba(a);i[a+64>>2]=0;i[a+68>>2]=0;i[a+88>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;g[a+77|0]=0;g[a+78|0]=0;g[a+79|0]=0;g[a+80|0]=0;g[a+81|0]=0;g[a+82|0]=0;g[a+83|0]=0;g[a+84|0]=0;return a}function Mc(a,b,c){Fb(a,c);i[a+36>>2]=0;i[a+40>>2]=0;i[a>>2]=2032;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0;c=i[b>>2];i[b>>2]=0;i[a+72>>2]=c}function Da(a,b,c,d){var e=0;i[a>>2]=b;e=i[b+20>>2];i[a+8>>2]=i[b+16>>2];i[a+12>>2]=e;e=i[b+24>>2];b=i[b+28>>2];i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=c;i[a+44>>2]=d;i[a+16>>2]=e;i[a+20>>2]=b}function kp(a){var b=0;b=j[a+74|0];g[a+74|0]=b+ -1|b;b=i[a>>2];if(b&8){i[a>>2]=b|32;return-1}i[a+4>>2]=0;i[a+8>>2]=0;b=i[a+44>>2];i[a+28>>2]=b;i[a+20>>2]=b;i[a+16>>2]=b+i[a+48>>2];return 0}function Ba(a){i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+28>>2]=9;g[a+24|0]=1;i[a+56>>2]=-1;i[a+60>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;return a}function On(a,b){var c=0,d=0;c=j[a|0];d=j[b|0];a:{if(!c|(c|0)!=(d|0)){break a}while(1){d=j[b+1|0];c=j[a+1|0];if(!c){break a}b=b+1|0;a=a+1|0;if((c|0)==(d|0)){continue}break}}return c-d|0}function Zl(a,b){a=a|0;b=b|0;var c=0,d=0;Cm(a,b);a:{if((b|0)<0){break a}c=i[a+88>>2];d=i[a+84>>2];if(c-d>>2<=(b|0)){break a}b=d+(b<<2)|0;d=b+4|0;c=c-d|0;if(c){jp(b,d,c)}i[a+88>>2]=b+c}}function zn(a,b,c,d,e,f,g,h,j){var k=0;k=F-16|0;F=k;tn(k,b,c,d,e,f,g,h,j^-2147483648);b=i[k+4>>2];i[a>>2]=i[k>>2];i[a+4>>2]=b;b=i[k+12>>2];i[a+8>>2]=i[k+8>>2];i[a+12>>2]=b;F=k+16|0}function yk(a,b){var c=0;if(b){yk(a,i[b>>2]);yk(a,i[b+4>>2]);c=b+28|0;a=i[c>>2];i[c>>2]=0;if(a){yk(a+12|0,i[a+16>>2]);zk(a,i[a+4>>2]);bp(a)}if(g[b+27|0]<=-1){bp(i[b+16>>2])}bp(b)}}function cp(a){var b=0,c=0;b=i[4804];c=a+3&-4;a=b+c|0;a:{if(a>>>0<=b>>>0?(c|0)>=1:0){break a}if(a>>>0>Ip()<<16>>>0){if(!(D(a|0)|0)){break a}}i[4804]=a;return b}i[4805]=48;return-1}function Gj(a,b){var c=0;a:{if((b|0)<0){break a}c=i[a+4>>2];if(i[c+12>>2]-i[c+8>>2]>>2<=(b|0)){break a}a=i[i[a+8>>2]+(i[i[a+20>>2]+(b<<2)>>2]<<2)>>2];I[i[i[a>>2]+32>>2]](a,b)|0}}function ro(a,b){var c=0,d=0,e=0;d=F-16|0;F=d;c=a;a:{if(!Wn(b)){i[c+8>>2]=i[b+8>>2];e=i[b+4>>2];i[c>>2]=i[b>>2];i[c+4>>2]=e;break a}so(a,i[b>>2],i[b+4>>2])}F=d+16|0;return a}function dj(a){a=a|0;var b=0;i[a+8>>2]=11784;i[a>>2]=12880;b=i[a+56>>2];if(b){i[a+60>>2]=b;bp(b)}i[a+8>>2]=12036;b=i[a+44>>2];if(b){bp(b)}b=i[a+32>>2];if(b){bp(b)}return a|0}function Zi(a){a=a|0;var b=0;i[a+8>>2]=12752;i[a>>2]=12588;b=i[a+56>>2];if(b){i[a+60>>2]=b;bp(b)}i[a+8>>2]=12568;b=i[a+44>>2];if(b){bp(b)}b=i[a+32>>2];if(b){bp(b)}return a|0}function ej(a){a=a|0;var b=0;i[a+8>>2]=11784;i[a>>2]=12880;b=i[a+56>>2];if(b){i[a+60>>2]=b;bp(b)}i[a+8>>2]=12036;b=i[a+44>>2];if(b){bp(b)}b=i[a+32>>2];if(b){bp(b)}bp(a)}function _i(a){a=a|0;var b=0;i[a+8>>2]=12752;i[a>>2]=12588;b=i[a+56>>2];if(b){i[a+60>>2]=b;bp(b)}i[a+8>>2]=12568;b=i[a+44>>2];if(b){bp(b)}b=i[a+32>>2];if(b){bp(b)}bp(a)}function Km(a,b,c){var d=0,e=0,f=0;a:{if(!c){break a}while(1){d=j[a|0];e=j[b|0];if((d|0)==(e|0)){b=b+1|0;a=a+1|0;c=c+ -1|0;if(c){continue}break a}break}f=d-e|0}return f}function Qb(a,b){Fb(a,b);i[a+36>>2]=0;i[a+40>>2]=0;i[a>>2]=1596;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0;i[a+72>>2]=0}function zl(a,b){var c=0;a:{if(i[a+4>>2]|!a){break a}c=ho(36);lm(c,b);i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;b=i[a+4>>2];i[a+4>>2]=c;c=1;if(!b){break a}Al(b)}return c}function Fo(a,b,c,d){var e=0,f=0,g=0,h=0;f=a;a:{b:{e=c-b|0;if((e|0)<=9){if((Go(d)|0)>(e|0)){break b}}g=a,h=jo(d,b),i[g>>2]=h;a=0;break a}i[a>>2]=c;a=61}i[f+4>>2]=a}function hg(a){var b=0,c=0,d=0;b=i[a+12>>2];a=i[a+16>>2];c=(((b-a|0)+1|0)/64|0)+a<<3;b=c;a=a<<3;d=a;b=b+a|0;a=(c>>31)+(a>>31)|0;a=b>>>0>>0?a+1|0:a;H=a;return b}function W(a,b){a=a|0;b=b|0;var c=0;b=i[b+88>>2];if(!(!b|i[b>>2]!=2)){c=a;a=i[b+8>>2];i[c+4>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24);c=1}return c|0}function Gh(a){a=a|0;var b=0;a:{b=i[a+64>>2];if(!b){break a}b=I[i[i[b>>2]+32>>2]](b)|0;if(!b){break a}i[a+60>>2]=((i[b+4>>2]-i[b>>2]>>2>>>0)/3|0)-i[b+40>>2]}}function Mb(a,b){a=a|0;b=b|0;a:{if(!(I[i[i[a>>2]+40>>2]](a)|0)){break a}if(!(I[i[i[a>>2]+44>>2]](a,b)|0)){break a}return I[i[i[a>>2]+48>>2]](a,b)|0}return 0}function yo(a,b){var c=0,d=0;c=F-16|0;F=c;a:{if(Wn(a)){d=i[a>>2];g[c+15|0]=0;_n(b+d|0,c+15|0);aa(a,b);break a}g[c+14|0]=0;_n(a+b|0,c+14|0);$n(a,b)}F=c+16|0}function _h(a){a=a|0;var b=0;i[a>>2]=11784;b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=12036;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}return a|0}function Yi(a){a=a|0;var b=0;i[a>>2]=12752;b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=12568;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}return a|0}function Um(a){var b=0,c=0,d=0;if(Mm(g[i[a>>2]])){while(1){b=i[a>>2];d=g[b|0];i[a>>2]=b+1;c=(o(c,10)+d|0)+ -48|0;if(Mm(g[b+1|0])){continue}break}}return c}function Nj(a,b,c){var d=0,e=0,f=0;if((b|0)>0){while(1){f=d<<2;e=i[f+a>>2];i[c+f>>2]=(e|0)>-1?e<<1:(e^-1)<<1|1;d=d+1|0;if((d|0)!=(b|0)){continue}break}}}function cj(a){a=a|0;var b=0;i[a>>2]=12752;b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=12568;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}bp(a)}function Ii(a){a=a|0;var b=0;i[a>>2]=11784;b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=12036;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}bp(a)}function jo(a,b){var c=0,d=0;if(a>>>0<=99999999){return ko(b,a)}c=(a>>>0)/1e8|0;d=a-o(c,1e8)|0;a=(d>>>0)/1e4|0;return mo(mo(lo(b,c),a),d-o(a,1e4)|0)}function jm(a,b){var c=0,d=0;a:{d=i[b>>2];if(!d){break a}c=i[a+28>>2];if(c>>>0>2]){i[b>>2]=0;i[c>>2]=d;i[a+28>>2]=c+4;break a}km(a+24|0,b)}}function bk(a,b){a:{b=uc(a,b);if((b|0)==(a+4|0)){break a}a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}a=bn(a);if((a|0)==-1){break a}return(a|0)!=0}return 0}function _o(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(Qo(a,i[b+8>>2],f)){Wo(b,c,d,e);return}a=i[a+8>>2];I[i[i[a>>2]+20>>2]](a,b,c,d,e,f)}function Ud(a){a=a|0;var b=0;a:{if(!i[a- -64>>2]|!i[a+68>>2]|(!i[a+44>>2]|!i[a+48>>2])){break a}if(!i[a+52>>2]){break a}b=i[a+56>>2]!=0}return b|0}function ck(a,b,c){b=uc(a,b);a:{if((b|0)==(a+4|0)){break a}a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}a=bn(a);if((a|0)==-1){break a}c=(a|0)!=0}return c}function Me(a){a=a|0;var b=0;a:{if(!i[a+48>>2]|!i[a+52>>2]|(!i[a+28>>2]|!i[a+32>>2])){break a}if(!i[a+36>>2]){break a}b=i[a+40>>2]!=0}return b|0}function Qn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=i[a+20>>2];d=i[a+16>>2]-e|0;d=d>>>0>c>>>0?c:d;hp(e,b,d);i[a+20>>2]=d+i[a+20>>2];return c|0}function gp(a,b,c,d){var e=0,f=0;f=d&65535;d=d>>>16&32767;a:{if((d|0)!=32767){e=4;if(d){break a}return a|c|(b|f)?3:2}e=!(a|c|(b|f))}return e}function dn(a){var b=0,c=0;b=F-16|0;F=b;c=-1;a:{if(cn(a)){break a}if((I[i[a+32>>2]](a,b+15|0,1)|0)!=1){break a}c=j[b+15|0]}F=b+16|0;return c}function ym(a){var b=0,c=0;b=i[a+20>>2];a:{if((i[a+24>>2]-b|0)<1){break a}b=i[b>>2];if((b|0)==-1){break a}c=i[i[a+8>>2]+(b<<2)>>2]}return c}function xm(a,b){var c=0;c=-1;a:{if((b|0)==-1|(b|0)>4){break a}b=o(b,12)+a|0;a=i[b+20>>2];if((i[b+24>>2]-a|0)<1){break a}c=i[a>>2]}return c}function $m(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=b;b=i[b>>2]+15&-16;i[c>>2]=b+16;d=a,e=Dn(i[b>>2],i[b+4>>2],i[b+8>>2],i[b+12>>2]),n[d>>3]=e}function Wm(a,b,c,d){if(a|b){while(1){c=c+ -1|0;g[c|0]=j[(a&15)+17488|0]|d;a=(b&15)<<28|a>>>4;b=b>>>4|0;if(a|b){continue}break}}return c}function Ul(a){a=a|0;var b=0;i[a>>2]=16592;b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+84>>2];if(b){i[a+88>>2]=b;bp(b)}Vl(a);return a|0}function Co(a,b){var c=0,d=0;c=F-16|0;F=c;d=F-16|0;F=d;Vn(c);F=d+16|0;Un(c,Tn(c));Do(a,c,b);a=c;if(Wn(c)){d=i[a>>2];Xn(a);bp(d)}F=c+16|0}function no(a,b){var c=0;if(b>>>0<=99){return lo(a,b)}if(b>>>0<=999){c=a;a=(b>>>0)/100|0;return po(oo(c,a),b-o(a,100)|0)}return mo(a,b)}function Wl(a){a=a|0;var b=0;i[a>>2]=16592;b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+84>>2];if(b){i[a+88>>2]=b;bp(b)}Vl(a);bp(a)}function zk(a,b){if(b){zk(a,i[b>>2]);zk(a,i[b+4>>2]);a=i[b+28>>2];if(a){i[b+32>>2]=a;bp(a)}if(g[b+27|0]<=-1){bp(i[b+16>>2])}bp(b)}}function pf(a){var b=0;b=F-16|0;F=b;i[b+8>>2]=0;i[b+12>>2]=0;of(a,b+8|0);i[a+24>>2]=0;i[a+28>>2]=0;i[a+16>>2]=i[a+12>>2];F=b+16|0}function en(a){var b=0,c=0;i[a+112>>2]=0;i[a+116>>2]=0;b=i[a+8>>2];c=b-i[a+4>>2]|0;i[a+120>>2]=c;i[a+124>>2]=c>>31;i[a+104>>2]=b}function ee(a){a=a|0;var b=0;i[a>>2]=5040;b=i[a+76>>2];if(b){bp(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}return a|0}function Vf(a,b){var c=0;c=a+4|0;if((c|0)!=(b|0)){xf(c,i[b>>2],b+4|0);Wf(a+16|0,i[b+12>>2],b+16|0);xf(a+28|0,i[b+24>>2],b+28|0)}}function Jc(a){a=a|0;var b=0;i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Wb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}return a|0}function Id(a){a=a|0;var b=0;i[a>>2]=3488;b=i[a+76>>2];if(b){bp(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}return a|0}function io(a,b){var c=0,d=0,e=0,f=0;c=mp(b);d=ho(c+13|0);i[d+8>>2]=0;i[d+4>>2]=c;i[d>>2]=c;e=a,f=hp(d+12|0,b,c+1|0),i[e>>2]=f}function Kb(a){a=a|0;var b=0;i[a>>2]=1432;b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;bp(b)}return a|0}function kd(a,b){if(b){kd(a,i[b>>2]);kd(a,i[b+4>>2]);if(g[b+39|0]<=-1){bp(i[b+28>>2])}if(g[b+27|0]<=-1){bp(i[b+16>>2])}bp(b)}}function ak(a,b){var c=p(0);b=uc(a,b);if((b|0)!=(a+4|0)){a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}c=p(pn(a))}else{c=p(1)}return c}function Vo(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(Qo(a,i[b+8>>2],0)){To(b,c,d);return}a=i[a+8>>2];I[i[i[a>>2]+28>>2]](a,b,c,d)}function fe(a){a=a|0;var b=0;i[a>>2]=5040;b=i[a+76>>2];if(b){bp(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}bp(a)}function Sl(a){wm(a);i[a+84>>2]=0;i[a+88>>2]=0;i[a>>2]=16592;i[a+92>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;i[a+104>>2]=0;return a}function Kc(a){a=a|0;var b=0;i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Wb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}bp(a)}function Jd(a){a=a|0;var b=0;i[a>>2]=3488;b=i[a+76>>2];if(b){bp(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}bp(a)}function mf(a){i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;return a}function ho(a){var b=0;a=a?a:1;a:{while(1){b=ap(a);if(b){break a}b=i[4822];if(b){I[b|0]();continue}break}C();x()}return b}function Xm(a,b,c){if(a|b){while(1){c=c+ -1|0;g[c|0]=a&7|48;a=(b&7)<<29|a>>>3;b=b>>>3|0;if(a|b){continue}break}}return c}function Uj(a,b){var c=0,d=0;d=i[a>>2];c=i[a+4>>2]-d|0;if(c>>>0>>0){Qj(a,b-c|0);return}if(c>>>0>b>>>0){i[a+4>>2]=b+d}}function wk(){var a=0;a=ho(24);i[a+4>>2]=0;i[a+8>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a>>2]=a+4;i[a+12>>2]=a+16;return a|0}function nn(a,b){var c=0,d=p(0);c=F-16|0;F=c;on(c,a,b,0);d=wn(i[c>>2],i[c+4>>2],i[c+8>>2],i[c+12>>2]);F=c+16|0;return d}function qa(a,b,c,d,e){var f=0;f=b+ -1|0;if(f>>>0<=29){i[a+4>>2]=b;ra(a+8|0,c,(d<<2)+c|0);m[a+20>>2]=e}return f>>>0<30}function ma(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(i[c>>2]==i[c+4>>2]){na(a,b,i[d+80>>2],d);return 1}oa(a,b,c,d);return 1}function Bo(a,b){var c=0;c=F-32|0;F=c;Eo(c+8|0,c+21|0,c+32|0,b);b=F-16|0;F=b;go(a,c+21|0,i[c+8>>2]);F=b+16|0;F=c+32|0}function ie(a){a=a|0;var b=0;i[a>>2]=5264;nf(a+112|0);i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}return a|0}function gn(a,b,c,d,e,f,g,h,j){i[a>>2]=b;i[a+4>>2]=c;i[a+8>>2]=d;i[a+12>>2]=e&65535|(j>>>16&32768|e>>>16&32767)<<16}function Rf(a,b){i[a>>2]=10308;Qf(a+4|0);i[a+40>>2]=0;i[a+44>>2]=0;i[a+52>>2]=b;i[a+48>>2]=b;i[a>>2]=10492;return a}function Rd(a){a=a|0;var b=0;i[a>>2]=3724;nf(a+112|0);i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}return a|0}function Pf(a,b){i[a>>2]=10308;Qf(a+4|0);i[a+40>>2]=0;i[a+44>>2]=0;i[a+52>>2]=0;i[a+48>>2]=b;i[a>>2]=10492;return a}function Cc(a,b,c){a=a|0;b=b|0;c=c|0;i[a+4>>2]=b;b=i[i[i[b+4>>2]+8>>2]+(c<<2)>>2];i[a+12>>2]=c;i[a+8>>2]=b;return 1}function $e(a){ed(a);i[a+48>>2]=0;i[a+52>>2]=0;i[a+44>>2]=-1;i[a+40>>2]=1140;i[a>>2]=9756;i[a+56>>2]=0;i[a+60>>2]=0}function pn(a){var b=0,c=0;b=F-16|0;F=b;on(b,a,0,1);c=Dn(i[b>>2],i[b+4>>2],i[b+8>>2],i[b+12>>2]);F=b+16|0;return c}function cg(a){i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0}function Ld(a){a=a|0;var b=0;if(!(!i[a+60>>2]|!i[a+44>>2]|(!i[a+48>>2]|!i[a+52>>2]))){b=i[a+56>>2]!=0}return b|0}function Ge(a){a=a|0;var b=0;if(!(!i[a+44>>2]|!i[a+28>>2]|(!i[a+32>>2]|!i[a+36>>2]))){b=i[a+40>>2]!=0}return b|0}function al(a){a=a|0;if(a){i[a>>2]=10384;kd(a+28|0,i[a+32>>2]);Bf(a+16|0,i[a+20>>2]);kd(a+4|0,i[a+8>>2]);bp(a)}}function je(a){a=a|0;var b=0;i[a>>2]=5264;nf(a+112|0);i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}bp(a)}function bg(a,b){var c=0,d=0;if(!(!a|!b|(a|0)==(b|0))){c=+(b>>>0)/+(a>>>0);d=1-c;c=-(c*ep(c)+d*ep(d))}return c}function Sd(a){a=a|0;var b=0;i[a>>2]=3724;nf(a+112|0);i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}bp(a)}function Qo(a,b,c){if(!c){return i[a+4>>2]==i[b+4>>2]}if((a|0)==(b|0)){return 1}return!On(i[a+4>>2],i[b+4>>2])}function zf(a){a=a|0;i[a>>2]=10308;kd(a+28|0,i[a+32>>2]);wf(a+16|0,i[a+20>>2]);kd(a+4|0,i[a+8>>2]);return a|0}function Oj(a){i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;return a}function Hf(a){a=a|0;i[a>>2]=10384;kd(a+28|0,i[a+32>>2]);Bf(a+16|0,i[a+20>>2]);kd(a+4|0,i[a+8>>2]);return a|0}function Tj(a){i[a>>2]=0;i[a+4>>2]=0;g[a+24|0]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;return a}function Mo(a){var b=0,c=0;a:{b=i[a>>2]+ -12|0;c=b+8|0;a=i[c>>2]+ -1|0;i[c>>2]=a;if((a|0)>-1){break a}bp(b)}}function ko(a,b){var c=0;if(b>>>0<=9999){return no(a,b)}c=a;a=(b>>>0)/1e4|0;return mo(no(c,a),b-o(a,1e4)|0)}function za(a){var b=0;b=A(8)|0;i[b>>2]=18596;i[b>>2]=18640;io(b+4|0,a);i[b>>2]=18688;B(b|0,18720,13);x()}function Tk(){var a=0;a=ho(48);i[a>>2]=10384;tf(a+4|0);i[a+40>>2]=0;i[a+44>>2]=0;i[a>>2]=10112;return a|0}function _j(a,b){b=uc(a,b);if((b|0)==(a+4|0)){return-1}a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}return bn(a)}function Jf(a){a=a|0;i[a>>2]=10308;kd(a+28|0,i[a+32>>2]);wf(a+16|0,i[a+20>>2]);kd(a+4|0,i[a+8>>2]);bp(a)}function If(a){a=a|0;i[a>>2]=10384;kd(a+28|0,i[a+32>>2]);Bf(a+16|0,i[a+20>>2]);kd(a+4|0,i[a+8>>2]);bp(a)}function Wi(a){a=a|0;var b=0;i[a>>2]=12568;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}return a|0}function Ji(a){a=a|0;var b=0;i[a>>2]=12036;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}return a|0}function $j(a,b,c){b=uc(a,b);if((b|0)!=(a+4|0)){a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}c=bn(a)}return c}function xd(a){a=a|0;var b=0;if(!(!i[a+52>>2]|(!i[a+44>>2]|!i[a+48>>2]))){b=i[a+56>>2]!=0}return b|0}function we(a){a=a|0;var b=0;if(!(!i[a+36>>2]|(!i[a+28>>2]|!i[a+32>>2]))){b=i[a+40>>2]!=0}return b|0}function Xi(a){a=a|0;var b=0;i[a>>2]=12568;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}bp(a)}function Ki(a){a=a|0;var b=0;i[a>>2]=12036;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}bp(a)}function Vd(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a- -64>>2]=b;c=1}return c|0}function jf(a){var b=0;i[a+12>>2]=0;i[a+16>>2]=0;b=i[a>>2];i[a+4>>2]=b;if(b){i[a+4>>2]=b;bp(b)}}function Ne(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a+48>>2]=b;c=1}return c|0}function Md(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a+60>>2]=b;c=1}return c|0}function He(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a+44>>2]=b;c=1}return c|0}function $o(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(Qo(a,i[b+8>>2],f)){Wo(b,c,d,e)}}function Go(a){var b=0;b=o(32-r(a|1)|0,1233)>>>12|0;return(b-(l[(b<<2)+18496>>2]>a>>>0)|0)+1|0}function Vn(a){var b=0;b=a;a=0;while(1){if((a|0)!=3){i[(a<<2)+b>>2]=0;a=a+1|0;continue}break}}function ao(a){var b=0;if(a>>>0>=11){b=a+16&-16;a=b+ -1|0;a=(a|0)==11?b:a}else{a=10}return a}function ud(a){a=a|0;var b=0;i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}return a|0}function va(a){a=a|0;var b=0;i[a>>2]=1140;b=i[a+8>>2];if(b){i[a+12>>2]=b;bp(b)}return a|0}function kl(a){a=a|0;var b=0;if(a){b=i[a>>2];i[a>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}bp(a)}}function yp(a,b){var c=0,d=0;c=b&31;d=(-1>>>c&a)<>>a}function Eo(a,b,c,d){if(!((b|0)==(c|0)|(d|0)>-1)){g[b|0]=45;d=0-d|0;b=b+1|0}Fo(a,b,c,d)}function sj(a){a=a|0;var b=0;b=a;a=i[a+56>>2];i[b+60>>2]=(i[a+100>>2]-i[a+96>>2]|0)/12}function xp(a){var b=0,c=0;while(1){c=b;if(a){a=a-1&a;b=b+1|0;continue}break}return c}function vd(a){a=a|0;var b=0;i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}bp(a)}function Pk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return wl(b,c,d,e,f,6)|0}function Ok(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return wl(b,c,d,e,f,5)|0}function Nk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return yl(b,c,d,e,f,4)|0}function Mk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return yl(b,c,d,e,f,3)|0}function Lk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return xl(b,c,d,e,f,2)|0}function Kk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return xl(b,c,d,e,f,1)|0}function Jk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return wl(b,c,d,e,f,9)|0}function wa(a){a=a|0;var b=0;i[a>>2]=1140;b=i[a+8>>2];if(b){i[a+12>>2]=b;bp(b)}bp(a)}function el(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=p(f);Zf(i[a>>2],b,c,d,e,f)}function Rn(a,b,c){var d=0;d=F-16|0;F=d;i[d+12>>2]=c;a=Pn(a,b,c);F=d+16|0;return a}function wf(a,b){if(b){wf(a,i[b>>2]);wf(a,i[b+4>>2]);kd(b+20|0,i[b+24>>2]);bp(b)}}function Bf(a,b){if(b){Bf(a,i[b>>2]);Bf(a,i[b+4>>2]);kd(b+20|0,i[b+24>>2]);bp(b)}}function Eh(a,b){a=a|0;b=b|0;var c=0;c=a;a=i[b+64>>2];I[i[i[a>>2]+28>>2]](c,a)}function Wk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=p(f);Ef(a,b,c,d,e,f)}function Uo(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(Qo(a,i[b+8>>2],0)){To(b,c,d)}}function Ue(a){a=a|0;var b=0;i[a>>2]=8668;b=i[a+60>>2];if(b){bp(b)}return a|0}function Ee(a){a=a|0;var b=0;i[a>>2]=7032;b=i[a+60>>2];if(b){bp(b)}return a|0}function ri(a,b){a=a|0;b=b|0;return i[i[a+28>>2]+(b>>>3&536870908)>>2]>>>b&1}function nm(a,b,c){var d=0;d=F-16|0;F=d;i[d+12>>2]=c;om(a,b,d+12|0);F=d+16|0}function mo(a,b){var c=0;c=a;a=(b>>>0)/100|0;return po(po(c,a),b-o(a,100)|0)}function wo(a,b){var c=0;c=Sn(a);if(c>>>0>>0){xo(a,b-c|0);return}yo(a,b)}function Lh(a,b){a=a|0;b=b|0;a=i[a+64>>2];return I[i[i[a>>2]+16>>2]](a,b)|0}function Kh(a,b){a=a|0;b=b|0;a=i[a+64>>2];return I[i[i[a>>2]+12>>2]](a,b)|0}function Ij(a,b){a=a|0;b=b|0;i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}function Dk(a){a=a|0;var b=0;if(a){b=i[a>>2];if(b){i[a+4>>2]=b;bp(b)}bp(a)}}function Dh(a,b){a=a|0;b=b|0;a=i[a+64>>2];return I[i[i[a>>2]+24>>2]](a,b)|0}function Ch(a,b){a=a|0;b=b|0;a=i[a+64>>2];return I[i[i[a>>2]+20>>2]](a,b)|0}function Ak(){var a=0;a=ho(12);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;return a|0}function sm(a,b,c){var d=0;d=F-16|0;F=d;n[d+8>>3]=c;tm(a,b,d+8|0);F=d+16|0}function po(a,b){b=k[(b<<1)+18272>>1];g[a|0]=b;g[a+1|0]=b>>>8;return a+2|0}function hf(a){i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}function Y(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Z(a,b,c,i[d+80>>2],d)|0}function Sj(a){a=a+ -1|0;if(a>>>0<=10){return i[(a<<2)+16240>>2]}return-1}function Nn(a,b){var c=0,d=0;c=F-16|0;F=c;d=Kn(a,b);F=c+16|0;return d?b:a}function Hk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ul(b,c,d,e)|0}function Ve(a){a=a|0;var b=0;i[a>>2]=8668;b=i[a+60>>2];if(b){bp(b)}bp(a)}function Fe(a){a=a|0;var b=0;i[a>>2]=7032;b=i[a+60>>2];if(b){bp(b)}bp(a)}function Ec(a,b,c){a=a|0;b=b|0;c=c|0;return I[i[i[a>>2]+44>>2]](a,b,c)|0}function xk(a){a=a|0;if(a){yk(a+12|0,i[a+16>>2]);zk(a,i[a+4>>2]);bp(a)}}function uj(a,b){a=a|0;b=b|0;g[b+84|0]=1;i[b+72>>2]=i[b+68>>2];return 1}function Zd(a,b){a=a|0;b=b|0;if(b>>>0<=1){i[a+28>>2]=b}return b>>>0<2|0}function Hb(a,b,c){a=a|0;b=b|0;c=c|0;i[a+32>>2]=c;i[a+28>>2]=b;return 1}function Xo(a,b,c){if(!(i[a+28>>2]==1|i[a+4>>2]!=(b|0))){i[a+28>>2]=c}}function Hn(a,b,c){var d=0;d=F-16|0;F=d;a=Jn(a,b,c);F=d+16|0;return a}function _k(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Gl(a,b,c,d)|0}function Jh(a){a=a|0;a=i[a+64>>2];return I[i[i[a>>2]+32>>2]](a)|0}function Sk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Cl(b,c,d)|0}function Rk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Bl(b,c,d)|0}function Gk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return tl(b,c,d)|0}function Fk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return sl(b,c,d)|0}function Dc(a,b){a=a|0;b=b|0;i[a+12>>2]=-1;i[a+8>>2]=b;return 1}function qp(a,b){a=a|0;b=b|0;if(!i[4947]){i[4948]=b;i[4947]=a}}function bo(a){if(4294967295>>0){za(18200);x()}return ho(a)}function Ik(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return vl(b,c,d)|0}function lj(a){xj(a);i[a+56>>2]=0;i[a+60>>2]=0;i[a>>2]=13060}function lo(a,b){if(b>>>0<=9){return oo(a,b)}return po(a,b)}function Xj(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=a+4;return a}function uk(a){a=a|0;return(i[a+100>>2]-i[a+96>>2]|0)/12|0}function kf(a){i[a+12>>2]=0;i[a+16>>2]=0;i[a+4>>2]=i[a>>2]}function Sn(a){if(Wn(a)){return i[a+4>>2]}return j[a+11|0]}function zp(a){if(a){return 31-r(a+ -1^a)|0}return 32} -function hl(a,b,c){a=a|0;b=b|0;c=c|0;Yf(i[a>>2]+4|0,b,c)}function jl(a,b,c){a=a|0;b=b|0;c=c|0;return Kl(a,b,c)|0}function Ye(a){a=a|0;i[a>>2]=8916;of(a+96|0);return a|0}function Oo(a){a=a|0;i[a>>2]=18640;Po(a+4|0);return a|0}function Le(a){a=a|0;i[a>>2]=7292;of(a+96|0);return a|0}function $k(a,b,c){a=a|0;b=b|0;c=c|0;return Hl(a,b,c)|0}function Sk(a,b,c){a=a|0;b=b|0;c=c|0;return Bl(b,c)|0}function ym(a){i[a>>2]=16864;lp(a+4|0,0,80);return a}function wo(a,b){if((a|0)!=(b|0)){xo(a,$n(b),Vn(b))}}function fl(a,b,c){a=a|0;b=b|0;c=c|0;Zf(i[a>>2],b,c)}function tk(a){a=a|0;return i[a+12>>2]-i[a+8>>2]>>2}function sj(a){a=a|0;i[a+52>>2]=i[i[a+56>>2]+80>>2]}function qe(a,b){a=a|0;b=b|0;return da(a+40|0,b)|0}function cf(a,b){a=a|0;b=b|0;return va(a+40|0,b)|0}function Zk(a,b,c){a=a|0;b=b|0;c=c|0;Df(a+4|0,b,c)}function Ze(a){a=a|0;i[a>>2]=8916;of(a+96|0);ep(a)}function Mj(a){a=a|0;i[a+52>>2]=i[i[a+4>>2]+80>>2]}function Me(a){a=a|0;i[a>>2]=7292;of(a+96|0);ep(a)}function Dk(a,b){a=a|0;b=b|0;return g[i[a>>2]+b|0]}function uk(a){a=a|0;if(a){K[i[i[a>>2]+4>>2]](a)}}function io(a,b){if(Zn(a)){ca(a,b);return}co(a,b)}function $n(a){if(Zn(a)){return i[a>>2]}return a}function Rm(a,b){if(!a){return 0}return Qm(a,b)}function Ek(a){a=a|0;return i[a+4>>2]-i[a>>2]|0}function fd(a){Cc(a);i[a+36>>2]=0;i[a>>2]=2248}function Xk(a,b,c){a=a|0;b=b|0;c=c|0;Ef(a,b,c)}function Vm(a,b,c){if(!(j[a|0]&32)){op(b,c,a)}}function sp(a){a=a|0;a=H-a&-16;H=a;return a|0}function Pb(a,b,c){a=a|0;b=b|0;c=c|0;return-1}function Aa(a,b){a=a|0;b=b|0;return g[b+24|0]}function ll(a){a=a|0;return i[i[a>>2]+44>>2]}function kl(a){a=a|0;return i[i[a>>2]+40>>2]}function zp(a,b,c,d){a=wp(a,b,c,d);return a}function yp(a,b,c,d){a=vp(a,b,c,d);return a}function xp(a,b,c,d){a=up(a,b,c,d);return a}function il(a,b){a=a|0;b=b|0;Gl(i[a>>2],b)}function fk(a){i[a>>2]=1065353216;return a}function el(a,b){a=a|0;b=b|0;$f(i[a>>2],b)}function cn(a){return(a|0)==32|a+ -9>>>0<5}function _n(a){return i[a+8>>2]&2147483647}function xk(a,b){a=a|0;b=b|0;i[a+80>>2]=b}function ro(a,b){g[a|0]=b+48;return a+1|0}function dl(a){a=a|0;return Jl(ko(8),a)|0}function ho(a,b){i[a+8>>2]=b|-2147483648}function Mn(a,b){return l[a>>2]>2]}function rk(a){a=a|0;return i[a+60>>2]}function ri(a){a=a|0;return i[a+12>>2]}function qk(a){a=a|0;return i[a+48>>2]}function pk(a){a=a|0;return i[a+40>>2]}function mk(a){a=a|0;return i[a+56>>2]}function lk(a){a=a|0;return i[a+80>>2]}function bl(a){a=a|0;return i[a+44>>2]}function $d(a){a=a|0;return i[a+28>>2]}function zd(a,b){a=a|0;b=b|0;return-1}function xd(a){a=a|0;return i[a+4>>2]}function ok(a){a=a|0;return j[a+32|0]}function nk(a){a=a|0;return g[a+24|0]}function ka(a,b){a=a|0;b=b|0;return 2}function ja(a,b){a=a|0;b=b|0;return 6}function Zn(a){return j[a+11|0]>>>7|0}function Ro(a){a=a|0;return i[a+4>>2]}function Qb(a,b){a=a|0;b=b|0;return 1}function Ob(a,b){a=a|0;b=b|0;return 0}function _k(a,b){a=a|0;b=b|0;Gl(a,b)}function Wk(a,b){a=a|0;b=b|0;Hf(a,b)}function gk(a,b,c){m[a>>2]=p(c|0)/b}function Om(a){return a+ -48>>>0<10}function Nn(a,b,c){if(c){kp(a,b,c)}}function In(a,b,c){return Jn(a,b,c)}function vk(){return Ul(ko(108))|0}function gg(a,b,c,d){fg(a,b,c,d,1)}function eg(a,b,c,d){fg(a,b,c,d,0)}function sk(){return ym(ko(84))|0}function kk(){return Ga(ko(96))|0}function jk(){return Da(ko(64))|0}function ik(a){a=a|0;if(a){ep(a)}}function No(a){a=a|0;return 18573}function So(a){a=a|0;Oo(a);ep(a)}function ga(a){a=a|0;return a|0}function On(a,b){return Pn(a,b)}function uc(a){a=a|0;ep(tc(a))}function de(a){a=a|0;ep(ce(a))}function bo(a,b){g[a|0]=j[b|0]}function Yc(a){a=a|0;ep(Xc(a))}function Qo(a){a=a|0;ep(Oo(a))}function Km(a){a=a|0;ep(Xl(a))}function Ii(a){a=a|0;ep(Hi(a))}function Gi(a){a=a|0;ep(Fi(a))}function Ed(a){a=a|0;ep(Dd(a))}function za(a){a=a|0;return 1}function se(a){a=a|0;return 3}function ia(a){a=a|0;return 2}function Ud(a){a=a|0;return 6}function Mc(a){a=a|0;return 0}function Ld(a){a=a|0;return 5}function Fd(a){a=a|0;return 4}function co(a,b){g[a+11|0]=b}function ca(a,b){i[a+4>>2]=b}function Gk(){return ko(1)|0}function to(){Ba(18472);x()}function Ko(){Ba(18536);x()}function hk(){return 16284}function ha(a){a=a|0;ep(a)}function go(a,b){i[a>>2]=b}function Nm(){return 19220}function Hc(a){g[a+28|0]=1}function rp(a){a=a|0;H=a}function qp(){return H|0}function fm(a,b){gm(a,b)}function Xn(a,b){zo(a,b)}function Mb(a){a=a|0;x()}function sl(){return 4}function rl(){return 3}function ql(){return 2}function pl(){return 1}function ol(){return 0}function nl(){return-1}function Lo(){Kn();x()}function Kn(){C();x()}function ao(a){a=a|0}function X(){Rn()}function Mo(){x()} +function Tn(a){if(Wn(a)){a=Xn(a)+ -1|0}else{a=10}return a}function fl(a,b,c){a=a|0;b=b|0;c=c|0;Xf(i[a>>2]+4|0,b,c)}function hl(a,b,c){a=a|0;b=b|0;c=c|0;return Il(a,b,c)|0}function Zk(a,b,c){a=a|0;b=b|0;c=c|0;return Fl(a,b,c)|0}function Xe(a){a=a|0;i[a>>2]=8916;nf(a+96|0);return a|0}function Lo(a){a=a|0;i[a>>2]=18640;Mo(a+4|0);return a|0}function Ke(a){a=a|0;i[a>>2]=7292;nf(a+96|0);return a|0}function Qk(a,b,c){a=a|0;b=b|0;c=c|0;return zl(b,c)|0}function wm(a){i[a>>2]=16864;ip(a+4|0,0,80);return a}function to(a,b){if((a|0)!=(b|0)){uo(a,Yn(b),Sn(b))}}function dl(a,b,c){a=a|0;b=b|0;c=c|0;Yf(i[a>>2],b,c)}function rk(a){a=a|0;return i[a+12>>2]-i[a+8>>2]>>2}function rj(a){a=a|0;i[a+52>>2]=i[i[a+56>>2]+80>>2]}function pe(a,b){a=a|0;b=b|0;return ba(a+40|0,b)|0}function bf(a,b){a=a|0;b=b|0;return ta(a+40|0,b)|0}function Ye(a){a=a|0;i[a>>2]=8916;nf(a+96|0);bp(a)}function Xk(a,b,c){a=a|0;b=b|0;c=c|0;Cf(a+4|0,b,c)}function Lj(a){a=a|0;i[a+52>>2]=i[i[a+4>>2]+80>>2]}function Le(a){a=a|0;i[a>>2]=7292;nf(a+96|0);bp(a)}function Bk(a,b){a=a|0;b=b|0;return g[i[a>>2]+b|0]}function sk(a){a=a|0;if(a){I[i[i[a>>2]+4>>2]](a)}}function fo(a,b){if(Wn(a)){aa(a,b);return}$n(a,b)}function Yn(a){if(Wn(a)){return i[a>>2]}return a}function Pm(a,b){if(!a){return 0}return Om(a,b)}function Ck(a){a=a|0;return i[a+4>>2]-i[a>>2]|0}function ed(a){Bc(a);i[a+36>>2]=0;i[a>>2]=2248}function Vk(a,b,c){a=a|0;b=b|0;c=c|0;Df(a,b,c)}function Tm(a,b,c){if(!(j[a|0]&32)){lp(b,c,a)}}function ya(a,b){a=a|0;b=b|0;return g[b+24|0]}function pp(a){a=a|0;a=F-a&-16;F=a;return a|0}function Ob(a,b,c){a=a|0;b=b|0;c=c|0;return-1}function jl(a){a=a|0;return i[i[a>>2]+44>>2]}function il(a){a=a|0;return i[i[a>>2]+40>>2]}function wp(a,b,c,d){a=tp(a,b,c,d);return a}function vp(a,b,c,d){a=sp(a,b,c,d);return a}function up(a,b,c,d){a=rp(a,b,c,d);return a}function gl(a,b){a=a|0;b=b|0;El(i[a>>2],b)}function dk(a){i[a>>2]=1065353216;return a}function cl(a,b){a=a|0;b=b|0;_f(i[a>>2],b)}function an(a){return(a|0)==32|a+ -9>>>0<5}function Xn(a){return i[a+8>>2]&2147483647}function vk(a,b){a=a|0;b=b|0;i[a+80>>2]=b}function oo(a,b){g[a|0]=b+48;return a+1|0}function bl(a){a=a|0;return Hl(ho(8),a)|0}function eo(a,b){i[a+8>>2]=b|-2147483648}function Kn(a,b){return l[a>>2]>2]}function qi(a){a=a|0;return i[a+12>>2]}function pk(a){a=a|0;return i[a+60>>2]}function ok(a){a=a|0;return i[a+48>>2]}function nk(a){a=a|0;return i[a+40>>2]}function kk(a){a=a|0;return i[a+56>>2]}function jk(a){a=a|0;return i[a+80>>2]}function _d(a){a=a|0;return i[a+28>>2]}function $k(a){a=a|0;return i[a+44>>2]}function yd(a,b){a=a|0;b=b|0;return-1}function wd(a){a=a|0;return i[a+4>>2]}function mk(a){a=a|0;return j[a+32|0]}function lk(a){a=a|0;return g[a+24|0]}function ia(a,b){a=a|0;b=b|0;return 2}function ha(a,b){a=a|0;b=b|0;return 6}function Wn(a){return j[a+11|0]>>>7|0}function Pb(a,b){a=a|0;b=b|0;return 1}function Oo(a){a=a|0;return i[a+4>>2]}function Nb(a,b){a=a|0;b=b|0;return 0}function Yk(a,b){a=a|0;b=b|0;El(a,b)}function Uk(a,b){a=a|0;b=b|0;Gf(a,b)}function ek(a,b,c){m[a>>2]=p(c|0)/b}function Mm(a){return a+ -48>>>0<10}function Ln(a,b,c){if(c){hp(a,b,c)}}function Gn(a,b,c){return Hn(a,b,c)}function tk(){return Sl(ho(108))|0}function fg(a,b,c,d){eg(a,b,c,d,1)}function dg(a,b,c,d){eg(a,b,c,d,0)}function qk(){return wm(ho(84))|0}function ik(){return Ea(ho(96))|0}function hk(){return Ba(ho(64))|0}function gk(a){a=a|0;if(a){bp(a)}}function Ko(a){a=a|0;return 18573}function Po(a){a=a|0;Lo(a);bp(a)}function ea(a){a=a|0;return a|0}function Mn(a,b){return Nn(a,b)}function tc(a){a=a|0;bp(sc(a))}function ce(a){a=a|0;bp(be(a))}function _n(a,b){g[a|0]=j[b|0]}function Xc(a){a=a|0;bp(Wc(a))}function No(a){a=a|0;bp(Lo(a))}function Im(a){a=a|0;bp(Vl(a))}function Hi(a){a=a|0;bp(Gi(a))}function Fi(a){a=a|0;bp(Ei(a))}function Dd(a){a=a|0;bp(Cd(a))}function xa(a){a=a|0;return 1}function re(a){a=a|0;return 3}function ga(a){a=a|0;return 2}function Td(a){a=a|0;return 6}function Lc(a){a=a|0;return 0}function Kd(a){a=a|0;return 5}function Ed(a){a=a|0;return 4}function aa(a,b){i[a+4>>2]=b}function Ek(){return ho(1)|0}function $n(a,b){g[a+11|0]=b}function qo(){za(18472);x()}function Ho(){za(18536);x()}function fk(){return 16284}function fa(a){a=a|0;bp(a)}function co(a,b){i[a>>2]=b}function Lm(){return 19220}function Gc(a){g[a+28|0]=1}function op(a){a=a|0;F=a}function np(){return F|0}function dm(a,b){em(a,b)}function Un(a,b){wo(a,b)}function Lb(a){a=a|0;x()}function ql(){return 4}function pl(){return 3}function ol(){return 2}function nl(){return 1}function ml(){return 0}function ll(){return-1}function Io(){In();x()}function In(){C();x()}function Zn(a){a=a|0}function Jo(){x()}function V(){} // EMSCRIPTEN_END_FUNCS -var K=Dp([null,ga,ha,ia,Y,Z,_,ba,da,fa,Ca,ja,ka,Oo,xa,ya,za,la,na,oa,ra,va,wa,ja,Aa,Lb,Mb,Ib,Jb,Mo,Nb,Ob,Pb,Ob,Ob,za,Qb,tc,uc,ia,Sb,_b,Zb,Kc,Lc,Dc,Ec,Qb,Fc,Qb,Mc,Mc,Ic,Jc,Gc,Xc,Yc,Oc,Pc,Mc,Qc,Zc,_c,$c,bd,Rc,Sc,Tc,Uc,Wc,od,pd,gd,hd,za,kd,id,md,vd,wd,za,xd,yd,Mc,zd,Ob,Mc,za,Ad,Bd,Mb,Mb,Dd,Ed,Fd,yd,Gd,Hd,Jd,Kd,Ld,Md,za,Ob,Nd,Od,Pd,Sd,Td,Ud,Vd,za,Ob,Wd,Xd,Yd,ga,ha,_d,$d,Zd,Mb,wd,za,yd,be,Mb,ce,de,Fd,yd,Gd,ee,fe,ge,Ld,Md,za,Ob,Nd,Od,he,je,ke,Ud,Vd,za,Ob,Wd,Xd,le,ga,ha,_d,$d,me,Mb,wd,Mc,za,oe,od,pd,pe,qe,za,se,te,re,ga,ha,za,xd,xe,Mc,zd,Ob,za,se,ye,ze,Be,Ce,Fd,xe,De,Ee,Fe,Ge,Ld,He,za,Ob,Ie,Je,Ke,Le,Me,Ud,Ne,za,Ob,Oe,Pe,Qe,ga,ha,_d,$d,Zd,ha,za,xe,Re,Se,Te,Fd,xe,De,Ue,Ve,We,Ld,He,za,Ob,Ie,Je,Xe,Ye,Ze,Ud,Ne,za,Ob,Oe,Pe,_e,ga,ha,_d,$d,me,ha,Mc,za,$e,ef,ff,bf,cf,za,ia,df,If,Jf,vf,Bf,Af,Kf,Jf,Kf,Ih,Jh,za,za,Ch,za,nj,Bj,Fj,Dh,Eh,Gj,Gh,Kh,Lh,Mh,Fh,Hh,Fi,Gi,Oh,Ph,Qh,Rh,ai,bi,ri,si,xd,Hi,Ii,ui,Ph,Qh,vi,ai,wi,ri,si,xd,$h,Ji,_h,Ki,Li,Pi,Qi,Ri,Si,Oi,Wi,Mi,Xi,Yi,_i,$i,aj,bj,Zi,dj,ej,fj,gj,hj,oj,Mb,za,Qb,Mc,Ob,Ob,uj,Mc,rj,sj,pj,tj,ga,ha,vj,wj,Mb,Mc,Jj,uj,za,Kj,Lj,Mj,uj,Mc,Kj,Nj,Mj,Wl,Yl,Zl,$l,Jm,Gm,Vl,Xl,Km,Cm,Em,Im,an,bn,Tn,ga,ha,No,Qo,Ro,So,ga,ha,ao,ao,Uo,cp,ap,Xo,ha,bp,$o,Yo]);function Lp(){return f.byteLength/65536|0}function Mp(Wp){Wp=Wp|0;var L=Lp()|0;var M=L+Wp|0;if(L=0;--R){Q[48+R]=52+R;Q[65+R]=R;Q[97+R]=26+R}Q[43]=62;Q[47]=63;function Np(Xp,Yp,Zp){var S,T,R=0,U=Yp,V=Zp.length,W=Yp+(V*3>>2)-(Zp[V-2]=="=")-(Zp[V-1]=="=");for(;R>4;if(U>2;if(U=0;--P){O[48+P]=52+P;O[65+P]=P;O[97+P]=26+P}O[43]=62;O[47]=63;function Kp(Up,Vp,Wp){var Q,R,P=0,S=Vp,T=Wp.length,U=Vp+(T*3>>2)-(Wp[T-2]=="=")-(Wp[T-1]=="=");for(;P>4;if(S>2;if(S=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else{var str="";while(idx>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4}return len}var UTF16Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf-16le"):undefined;function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}var WASM_PAGE_SIZE=65536;function alignUp(x,multiple){if(x%multiple>0){x+=multiple-x%multiple}return x}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf)}var STACK_BASE=5262688;var INITIAL_INITIAL_MEMORY=Module["INITIAL_MEMORY"]||16777216;if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE,"maximum":2147483648/WASM_PAGE_SIZE})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){runtimeExited=true}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnPreMain(cb){__ATMAIN__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}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+="";err(what);ABORT=true;EXITSTATUS=1;what="abort("+what+"). Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}function hasPrefix(str,prefix){return String.prototype.startsWith?str.startsWith(prefix):str.indexOf(prefix)===0}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return hasPrefix(filename,dataURIPrefix)}var fileURIPrefix="file://";function isFileURI(filename){return hasPrefix(filename,fileURIPrefix)}var wasmBinaryFile="draco_encoder.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(){try{if(wasmBinary){return new Uint8Array(wasmBinary)}var binary=tryParseAsDataURI(wasmBinaryFile);if(binary){return binary}if(readBinary){return readBinary(wasmBinaryFile)}else{throw"both async and sync fetching of the wasm failed"}}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&typeof fetch==="function"&&!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()})}return Promise.resolve().then(getBinary)}function createWasm(){var info={"env":asmLibraryArg,"wasi_snapshot_preview1":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;wasmTable=Module["asm"]["__indirect_function_table"];removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiatedSource(output){receiveInstance(output["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming==="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&typeof fetch==="function"){fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiatedSource,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiatedSource)})})}else{return instantiateArrayBuffer(receiveInstantiatedSource)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync();return{}}var tempDouble;var tempI64;function array_bounds_check_error(idx,size){throw"Array index "+idx+" out of bounds: [0,"+size+")"}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){wasmTable.get(func)()}else{wasmTable.get(func)(callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}function demangle(func){return func}function demangleAll(text){var regex=/\b_Z[\w\d_]+/g;return text.replace(regex,function(x){var y=demangle(x);return x===y?x:y+" ["+x+"]"})}function dynCallLegacy(sig,ptr,args){if(args&&args.length){return Module["dynCall_"+sig].apply(null,[ptr].concat(args))}return Module["dynCall_"+sig].call(null,ptr)}function jsStackTrace(){var error=new Error;if(!error.stack){try{throw new Error}catch(e){error=e}if(!error.stack){return"(no stack trace available)"}}return error.stack.toString()}var ExceptionInfoAttrs={DESTRUCTOR_OFFSET:0,REFCOUNT_OFFSET:4,TYPE_OFFSET:8,CAUGHT_OFFSET:12,RETHROWN_OFFSET:13,SIZE:16};function ___cxa_allocate_exception(size){return _malloc(size+ExceptionInfoAttrs.SIZE)+ExceptionInfoAttrs.SIZE}function ExceptionInfo(excPtr){this.excPtr=excPtr;this.ptr=excPtr-ExceptionInfoAttrs.SIZE;this.set_type=function(type){HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]=type};this.get_type=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]};this.set_destructor=function(destructor){HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]=destructor};this.get_destructor=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(refcount){HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=refcount};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]=caught};this.get_caught=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]=rethrown};this.get_rethrown=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]!=0};this.init=function(type,destructor){this.set_type(type);this.set_destructor(destructor);this.set_refcount(0);this.set_caught(false);this.set_rethrown(false)};this.add_ref=function(){var value=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=value+1};this.release_ref=function(){var prev=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=prev-1;return prev===1}}var exceptionLast=0;function __ZSt18uncaught_exceptionv(){return __ZSt18uncaught_exceptionv.uncaught_exceptions>0}function ___cxa_throw(ptr,type,destructor){var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;if(!("uncaught_exception"in __ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exceptions=1}else{__ZSt18uncaught_exceptionv.uncaught_exceptions++}throw ptr}function _abort(){abort()}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}function _emscripten_get_heap_size(){return HEAPU8.length}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){requestedSize=requestedSize>>>0;var oldSize=_emscripten_get_heap_size();var maxHeapSize=2147483648;if(requestedSize>maxHeapSize){return false}var minHeapSize=16777216;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(minHeapSize,requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}var ENV={};function getExecutableName(){return thisProgram||"./this.program"}function getEnvStrings(){if(!getEnvStrings.strings){var lang=(typeof navigator==="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8";var env={"USER":"web_user","LOGNAME":"web_user","PATH":"/","PWD":"/","HOME":"/home/web_user","LANG":lang,"_":getExecutableName()};for(var x in ENV){env[x]=ENV[x]}var strings=[];for(var x in env){strings.push(x+"="+env[x])}getEnvStrings.strings=strings}return getEnvStrings.strings}function _environ_get(__environ,environ_buf){var bufSize=0;getEnvStrings().forEach(function(string,i){var ptr=environ_buf+bufSize;HEAP32[__environ+i*4>>2]=ptr;writeAsciiToMemory(string,ptr);bufSize+=string.length+1});return 0}function _environ_sizes_get(penviron_count,penviron_buf_size){var strings=getEnvStrings();HEAP32[penviron_count>>2]=strings.length;var bufSize=0;strings.forEach(function(string){bufSize+=string.length+1});HEAP32[penviron_buf_size>>2]=bufSize;return 0}var ASSERTIONS=false;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}function intArrayToString(array){var ret=[];for(var i=0;i255){if(ASSERTIONS){assert(false,"Character code "+chr+" ("+String.fromCharCode(chr)+") at offset "+i+" not in 0x00-0xFF.")}chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}var decodeBase64=typeof atob==="function"?atob:function(input){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output=output+String.fromCharCode(chr1);if(enc3!==64){output=output+String.fromCharCode(chr2)}if(enc4!==64){output=output+String.fromCharCode(chr3)}}while(i0){return}preRun();if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();preMain();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()()}}noExitRuntime=true;run();function WrapperObject(){}WrapperObject.prototype=Object.create(WrapperObject.prototype);WrapperObject.prototype.constructor=WrapperObject;WrapperObject.prototype.__class__=WrapperObject;WrapperObject.__cache__={};Module["WrapperObject"]=WrapperObject;function getCache(__class__){return(__class__||WrapperObject).__cache__}Module["getCache"]=getCache;function wrapPointer(ptr,__class__){var cache=getCache(__class__);var ret=cache[ptr];if(ret)return ret;ret=Object.create((__class__||WrapperObject).prototype);ret.ptr=ptr;return cache[ptr]=ret}Module["wrapPointer"]=wrapPointer;function castObject(obj,__class__){return wrapPointer(obj.ptr,__class__)}Module["castObject"]=castObject;Module["NULL"]=wrapPointer(0);function destroy(obj){if(!obj["__destroy__"])throw"Error: Cannot destroy object. (Did you create it yourself?)";obj["__destroy__"]();delete getCache(obj.__class__)[obj.ptr]}Module["destroy"]=destroy;function compare(obj1,obj2){return obj1.ptr===obj2.ptr}Module["compare"]=compare;function getPointer(obj){return obj.ptr}Module["getPointer"]=getPointer;function getClass(obj){return obj.__class__}Module["getClass"]=getClass;var ensureCache={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ensureCache.needed){for(var i=0;i=ensureCache.size){assert(len>0);ensureCache.needed+=len;ret=Module["_malloc"](len);ensureCache.temps.push(ret)}else{ret=ensureCache.buffer+ensureCache.pos;ensureCache.pos+=len}return ret},copy:function(array,view,offset){offset>>>=0;var bytes=view.BYTES_PER_ELEMENT;switch(bytes){case 2:offset>>>=1;break;case 4:offset>>>=2;break;case 8:offset>>>=3;break}for(var i=0;i=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else{var str="";while(idx>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4}return len}var UTF16Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf-16le"):undefined;function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}var WASM_PAGE_SIZE=65536;function alignUp(x,multiple){if(x%multiple>0){x+=multiple-x%multiple}return x}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf)}var STACK_BASE=5262688;var INITIAL_INITIAL_MEMORY=Module["INITIAL_MEMORY"]||16777216;if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE,"maximum":2147483648/WASM_PAGE_SIZE})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){runtimeExited=true}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnPreMain(cb){__ATMAIN__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}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+="";err(what);ABORT=true;EXITSTATUS=1;what="abort("+what+"). Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}function hasPrefix(str,prefix){return String.prototype.startsWith?str.startsWith(prefix):str.indexOf(prefix)===0}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return hasPrefix(filename,dataURIPrefix)}var fileURIPrefix="file://";function isFileURI(filename){return hasPrefix(filename,fileURIPrefix)}var wasmBinaryFile="draco_encoder.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(){try{if(wasmBinary){return new Uint8Array(wasmBinary)}var binary=tryParseAsDataURI(wasmBinaryFile);if(binary){return binary}if(readBinary){return readBinary(wasmBinaryFile)}else{throw"both async and sync fetching of the wasm failed"}}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&typeof fetch==="function"&&!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()})}return Promise.resolve().then(getBinary)}function createWasm(){var info={"env":asmLibraryArg,"wasi_snapshot_preview1":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;wasmTable=Module["asm"]["__indirect_function_table"];removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiatedSource(output){receiveInstance(output["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming==="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&typeof fetch==="function"){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiatedSource,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiatedSource)})})}else{return instantiateArrayBuffer(receiveInstantiatedSource)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync().catch(readyPromiseReject);return{}}var tempDouble;var tempI64;function array_bounds_check_error(idx,size){throw"Array index "+idx+" out of bounds: [0,"+size+")"}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){wasmTable.get(func)()}else{wasmTable.get(func)(callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}function demangle(func){return func}function demangleAll(text){var regex=/\b_Z[\w\d_]+/g;return text.replace(regex,function(x){var y=demangle(x);return x===y?x:y+" ["+x+"]"})}function dynCallLegacy(sig,ptr,args){if(args&&args.length){return Module["dynCall_"+sig].apply(null,[ptr].concat(args))}return Module["dynCall_"+sig].call(null,ptr)}function jsStackTrace(){var error=new Error;if(!error.stack){try{throw new Error}catch(e){error=e}if(!error.stack){return"(no stack trace available)"}}return error.stack.toString()}var ExceptionInfoAttrs={DESTRUCTOR_OFFSET:0,REFCOUNT_OFFSET:4,TYPE_OFFSET:8,CAUGHT_OFFSET:12,RETHROWN_OFFSET:13,SIZE:16};function ___cxa_allocate_exception(size){return _malloc(size+ExceptionInfoAttrs.SIZE)+ExceptionInfoAttrs.SIZE}function ExceptionInfo(excPtr){this.excPtr=excPtr;this.ptr=excPtr-ExceptionInfoAttrs.SIZE;this.set_type=function(type){HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]=type};this.get_type=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]};this.set_destructor=function(destructor){HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]=destructor};this.get_destructor=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(refcount){HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=refcount};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]=caught};this.get_caught=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]=rethrown};this.get_rethrown=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]!=0};this.init=function(type,destructor){this.set_type(type);this.set_destructor(destructor);this.set_refcount(0);this.set_caught(false);this.set_rethrown(false)};this.add_ref=function(){var value=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=value+1};this.release_ref=function(){var prev=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=prev-1;return prev===1}}var exceptionLast=0;function __ZSt18uncaught_exceptionv(){return __ZSt18uncaught_exceptionv.uncaught_exceptions>0}function ___cxa_throw(ptr,type,destructor){var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;if(!("uncaught_exception"in __ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exceptions=1}else{__ZSt18uncaught_exceptionv.uncaught_exceptions++}throw ptr}function _abort(){abort()}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}function _emscripten_get_heap_size(){return HEAPU8.length}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){requestedSize=requestedSize>>>0;var oldSize=_emscripten_get_heap_size();var maxHeapSize=2147483648;if(requestedSize>maxHeapSize){return false}var minHeapSize=16777216;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(minHeapSize,requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}var ASSERTIONS=false;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}function intArrayToString(array){var ret=[];for(var i=0;i255){if(ASSERTIONS){assert(false,"Character code "+chr+" ("+String.fromCharCode(chr)+") at offset "+i+" not in 0x00-0xFF.")}chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}var decodeBase64=typeof atob==="function"?atob:function(input){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output=output+String.fromCharCode(chr1);if(enc3!==64){output=output+String.fromCharCode(chr2)}if(enc4!==64){output=output+String.fromCharCode(chr3)}}while(i0){return}preRun();if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();preMain();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()()}}noExitRuntime=true;run();function WrapperObject(){}WrapperObject.prototype=Object.create(WrapperObject.prototype);WrapperObject.prototype.constructor=WrapperObject;WrapperObject.prototype.__class__=WrapperObject;WrapperObject.__cache__={};Module["WrapperObject"]=WrapperObject;function getCache(__class__){return(__class__||WrapperObject).__cache__}Module["getCache"]=getCache;function wrapPointer(ptr,__class__){var cache=getCache(__class__);var ret=cache[ptr];if(ret)return ret;ret=Object.create((__class__||WrapperObject).prototype);ret.ptr=ptr;return cache[ptr]=ret}Module["wrapPointer"]=wrapPointer;function castObject(obj,__class__){return wrapPointer(obj.ptr,__class__)}Module["castObject"]=castObject;Module["NULL"]=wrapPointer(0);function destroy(obj){if(!obj["__destroy__"])throw"Error: Cannot destroy object. (Did you create it yourself?)";obj["__destroy__"]();delete getCache(obj.__class__)[obj.ptr]}Module["destroy"]=destroy;function compare(obj1,obj2){return obj1.ptr===obj2.ptr}Module["compare"]=compare;function getPointer(obj){return obj.ptr}Module["getPointer"]=getPointer;function getClass(obj){return obj.__class__}Module["getClass"]=getClass;var ensureCache={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ensureCache.needed){for(var i=0;i=ensureCache.size){assert(len>0);ensureCache.needed+=len;ret=Module["_malloc"](len);ensureCache.temps.push(ret)}else{ret=ensureCache.buffer+ensureCache.pos;ensureCache.pos+=len}return ret},copy:function(array,view,offset){offset>>>=0;var bytes=view.BYTES_PER_ELEMENT;switch(bytes){case 2:offset>>>=1;break;case 4:offset>>>=2;break;case 8:offset>>>=3;break}for(var i=0;in?Math.max(C+n,0):Math.min(n,C);r=0>r?Math.max(C+r,0):Math.min(r,C);k=0>k?Math.max(C+k,0):Math.min(k,C);if(nr;)--k in this?this[--n]=this[k]:delete this[--n];return this}},"es6","es3"); +$jscomp.typedArrayCopyWithin=function(l){return l?l:Array.prototype.copyWithin};$jscomp.polyfill("Int8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); +$jscomp.polyfill("Uint16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float64Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); +var DracoEncoderModule=function(){var l="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(l=l||__filename);return function(p){function n(f){return a.locateFile?a.locateFile(f,N):N+f}function r(f,b){f||h("Assertion failed: "+b)}function k(f,b){0>2]=b};this.get_type=function(){return L[this.ptr+H.TYPE_OFFSET>>2]};this.set_destructor=function(b){L[this.ptr+H.DESTRUCTOR_OFFSET>>2]=b};this.get_destructor=function(){return L[this.ptr+H.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(b){L[this.ptr+H.REFCOUNT_OFFSET>>2]=b};this.set_caught=function(b){R[this.ptr+H.CAUGHT_OFFSET>>0]=b?1:0};this.get_caught=function(){return 0!=R[this.ptr+H.CAUGHT_OFFSET>>0]};this.set_rethrown=function(b){R[this.ptr+H.RETHROWN_OFFSET>>0]=b?1:0};this.get_rethrown= +function(){return 0!=R[this.ptr+H.RETHROWN_OFFSET>>0]};this.init=function(b,c){this.set_type(b);this.set_destructor(c);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){L[this.ptr+H.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var b=L[this.ptr+H.REFCOUNT_OFFSET>>2];L[this.ptr+H.REFCOUNT_OFFSET>>2]=b-1;return 1===b}}function I(){return 0=d&&(d=65536+((d&1023)<<10)|f.charCodeAt(++c)&1023);127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}b=Array(b+1);c=0;d=b.length;if(0=g){var t=f.charCodeAt(++e);g=65536+((g&1023)<<10)|t&1023}if(127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+ +2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18;b[c++]=128|g>>12&63}b[c++]=128|g>>6&63}b[c++]=128|g&63}}b[c]=0}f=m.alloc(b,R);m.copy(b,R,f);return f}return f}function ka(f){if("object"===typeof f){var b=m.alloc(f,R);m.copy(f,R,b);return b}return f}function la(f){if("object"===typeof f){var b=m.alloc(f,ma);m.copy(f,ma,b);return b}return f}function W(f){if("object"===typeof f){var b=m.alloc(f,L);m.copy(f,L,b);return b}return f}function ba(f){if("object"===typeof f){var b=m.alloc(f, +oa);m.copy(f,oa,b);return b}return f}function S(){throw"cannot construct a VoidPtr, no constructor in IDL";}function P(){this.ptr=Ea();D(P)[this.ptr]=this}function z(){this.ptr=Fa();D(z)[this.ptr]=this}function J(){this.ptr=Ga();D(J)[this.ptr]=this}function E(){this.ptr=Ha();D(E)[this.ptr]=this}function Q(){this.ptr=Ia();D(Q)[this.ptr]=this}function K(){this.ptr=Ja();D(K)[this.ptr]=this}function F(){this.ptr=Ka();D(F)[this.ptr]=this}function w(){this.ptr=La();D(w)[this.ptr]=this}function u(){this.ptr= +Ma();D(u)[this.ptr]=this}function x(){this.ptr=Na();D(x)[this.ptr]=this}function A(f){f&&"object"===typeof f&&(f=f.ptr);this.ptr=Oa(f);D(A)[this.ptr]=this}p=p||{};var a="undefined"!==typeof p?p:{},Ba,pa;a.ready=new Promise(function(f,b){Ba=f;pa=b});var Pa=!1,Qa=!1;a.onRuntimeInitialized=function(){Pa=!0;if(Qa&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){Qa=!0;if(Pa&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(f){if("string"!== +typeof f)return!1;f=f.split(".");return 2>f.length||3=f[1]?!0:0!=f[0]||10>>=0;var b=na.length;if(2147483648=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,f+100663296);d=Math.min(2147483648,k(Math.max(16777216, +f,d),65536));a:{try{da.grow(d-fa.byteLength+65535>>>16);C(da.buffer);var e=1;break a}catch(g){}e=void 0}if(e)return!0}return!1},memory:da};(function(){function f(e,g){a.asm=e.exports;qa=a.asm.__indirect_function_table;V--;a.monitorRunDependencies&&a.monitorRunDependencies(V);0==V&&(null!==wa&&(clearInterval(wa),wa=null),ea&&(e=ea,ea=null,e()))}function b(e){f(e.instance)}function c(e){return B().then(function(g){return WebAssembly.instantiate(g,d)}).then(e,function(g){Y("failed to asynchronously prepare wasm: "+ +g);h(g)})}var d={env:Va,wasi_snapshot_preview1:Va};V++;a.monitorRunDependencies&&a.monitorRunDependencies(V);if(a.instantiateWasm)try{return a.instantiateWasm(d,f)}catch(e){return Y("Module.instantiateWasm callback failed with error: "+e),!1}(function(){return Z||"function"!==typeof WebAssembly.instantiateStreaming||q(O,"data:application/octet-stream;base64,")||q(O,"file://")||"function"!==typeof fetch?c(b):fetch(O,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e, +d).then(b,function(g){Y("wasm streaming compile failed: "+g);Y("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(pa);return{}})();var Ta=a.___wasm_call_ctors=function(){return(Ta=a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)};a.___em_js__array_bounds_check_error=function(){return(a.___em_js__array_bounds_check_error=a.asm.__em_js__array_bounds_check_error).apply(null,arguments)};var Wa=a._emscripten_bind_VoidPtr___destroy___0=function(){return(Wa=a._emscripten_bind_VoidPtr___destroy___0= +a.asm.emscripten_bind_VoidPtr___destroy___0).apply(null,arguments)},Ea=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Ea=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0).apply(null,arguments)},Xa=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(Xa=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.emscripten_bind_GeometryAttribute___destroy___0).apply(null,arguments)},Fa=a._emscripten_bind_PointAttribute_PointAttribute_0= +function(){return(Fa=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.emscripten_bind_PointAttribute_PointAttribute_0).apply(null,arguments)},Ya=a._emscripten_bind_PointAttribute_size_0=function(){return(Ya=a._emscripten_bind_PointAttribute_size_0=a.asm.emscripten_bind_PointAttribute_size_0).apply(null,arguments)},Za=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return(Za=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.emscripten_bind_PointAttribute_attribute_type_0).apply(null, +arguments)},$a=a._emscripten_bind_PointAttribute_data_type_0=function(){return($a=a._emscripten_bind_PointAttribute_data_type_0=a.asm.emscripten_bind_PointAttribute_data_type_0).apply(null,arguments)},ab=a._emscripten_bind_PointAttribute_num_components_0=function(){return(ab=a._emscripten_bind_PointAttribute_num_components_0=a.asm.emscripten_bind_PointAttribute_num_components_0).apply(null,arguments)},bb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(bb=a._emscripten_bind_PointAttribute_normalized_0= +a.asm.emscripten_bind_PointAttribute_normalized_0).apply(null,arguments)},cb=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(cb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.emscripten_bind_PointAttribute_byte_stride_0).apply(null,arguments)},db=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(db=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.emscripten_bind_PointAttribute_byte_offset_0).apply(null,arguments)},eb=a._emscripten_bind_PointAttribute_unique_id_0= +function(){return(eb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.emscripten_bind_PointAttribute_unique_id_0).apply(null,arguments)},fb=a._emscripten_bind_PointAttribute___destroy___0=function(){return(fb=a._emscripten_bind_PointAttribute___destroy___0=a.asm.emscripten_bind_PointAttribute___destroy___0).apply(null,arguments)},Ga=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Ga=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.emscripten_bind_PointCloud_PointCloud_0).apply(null, +arguments)},gb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(gb=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.emscripten_bind_PointCloud_num_attributes_0).apply(null,arguments)},hb=a._emscripten_bind_PointCloud_num_points_0=function(){return(hb=a._emscripten_bind_PointCloud_num_points_0=a.asm.emscripten_bind_PointCloud_num_points_0).apply(null,arguments)},ib=a._emscripten_bind_PointCloud___destroy___0=function(){return(ib=a._emscripten_bind_PointCloud___destroy___0=a.asm.emscripten_bind_PointCloud___destroy___0).apply(null, +arguments)},Ha=a._emscripten_bind_Mesh_Mesh_0=function(){return(Ha=a._emscripten_bind_Mesh_Mesh_0=a.asm.emscripten_bind_Mesh_Mesh_0).apply(null,arguments)},jb=a._emscripten_bind_Mesh_num_faces_0=function(){return(jb=a._emscripten_bind_Mesh_num_faces_0=a.asm.emscripten_bind_Mesh_num_faces_0).apply(null,arguments)},kb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(kb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.emscripten_bind_Mesh_num_attributes_0).apply(null,arguments)},lb=a._emscripten_bind_Mesh_num_points_0= +function(){return(lb=a._emscripten_bind_Mesh_num_points_0=a.asm.emscripten_bind_Mesh_num_points_0).apply(null,arguments)},mb=a._emscripten_bind_Mesh_set_num_points_1=function(){return(mb=a._emscripten_bind_Mesh_set_num_points_1=a.asm.emscripten_bind_Mesh_set_num_points_1).apply(null,arguments)},nb=a._emscripten_bind_Mesh___destroy___0=function(){return(nb=a._emscripten_bind_Mesh___destroy___0=a.asm.emscripten_bind_Mesh___destroy___0).apply(null,arguments)},Ia=a._emscripten_bind_Metadata_Metadata_0= +function(){return(Ia=a._emscripten_bind_Metadata_Metadata_0=a.asm.emscripten_bind_Metadata_Metadata_0).apply(null,arguments)},ob=a._emscripten_bind_Metadata___destroy___0=function(){return(ob=a._emscripten_bind_Metadata___destroy___0=a.asm.emscripten_bind_Metadata___destroy___0).apply(null,arguments)},Ja=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Ja=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0).apply(null,arguments)}, +pb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(pb=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.emscripten_bind_DracoInt8Array_GetValue_1).apply(null,arguments)},qb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(qb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.emscripten_bind_DracoInt8Array_size_0).apply(null,arguments)},rb=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return(rb=a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.emscripten_bind_DracoInt8Array___destroy___0).apply(null, +arguments)},Ka=a._emscripten_bind_MetadataBuilder_MetadataBuilder_0=function(){return(Ka=a._emscripten_bind_MetadataBuilder_MetadataBuilder_0=a.asm.emscripten_bind_MetadataBuilder_MetadataBuilder_0).apply(null,arguments)},sb=a._emscripten_bind_MetadataBuilder_AddStringEntry_3=function(){return(sb=a._emscripten_bind_MetadataBuilder_AddStringEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddStringEntry_3).apply(null,arguments)},tb=a._emscripten_bind_MetadataBuilder_AddIntEntry_3=function(){return(tb= +a._emscripten_bind_MetadataBuilder_AddIntEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddIntEntry_3).apply(null,arguments)},ub=a._emscripten_bind_MetadataBuilder_AddIntEntryArray_4=function(){return(ub=a._emscripten_bind_MetadataBuilder_AddIntEntryArray_4=a.asm.emscripten_bind_MetadataBuilder_AddIntEntryArray_4).apply(null,arguments)},vb=a._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=function(){return(vb=a._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddDoubleEntry_3).apply(null, +arguments)},wb=a._emscripten_bind_MetadataBuilder___destroy___0=function(){return(wb=a._emscripten_bind_MetadataBuilder___destroy___0=a.asm.emscripten_bind_MetadataBuilder___destroy___0).apply(null,arguments)},La=a._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0=function(){return(La=a._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0=a.asm.emscripten_bind_PointCloudBuilder_PointCloudBuilder_0).apply(null,arguments)},xb=a._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=function(){return(xb= +a._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddFloatAttribute_5).apply(null,arguments)},yb=a._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5=function(){return(yb=a._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt8Attribute_5).apply(null,arguments)},zb=a._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=function(){return(zb=a._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5).apply(null, +arguments)},Ab=a._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=function(){return(Ab=a._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt16Attribute_5).apply(null,arguments)},Bb=a._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=function(){return(Bb=a._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5).apply(null,arguments)},Cb=a._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5= +function(){return(Cb=a._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt32Attribute_5).apply(null,arguments)},Db=a._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5=function(){return(Db=a._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5).apply(null,arguments)},Eb=a._emscripten_bind_PointCloudBuilder_AddMetadata_2=function(){return(Eb=a._emscripten_bind_PointCloudBuilder_AddMetadata_2= +a.asm.emscripten_bind_PointCloudBuilder_AddMetadata_2).apply(null,arguments)},Fb=a._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3=function(){return(Fb=a._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3=a.asm.emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3).apply(null,arguments)},Gb=a._emscripten_bind_PointCloudBuilder___destroy___0=function(){return(Gb=a._emscripten_bind_PointCloudBuilder___destroy___0=a.asm.emscripten_bind_PointCloudBuilder___destroy___0).apply(null, +arguments)},Ma=a._emscripten_bind_MeshBuilder_MeshBuilder_0=function(){return(Ma=a._emscripten_bind_MeshBuilder_MeshBuilder_0=a.asm.emscripten_bind_MeshBuilder_MeshBuilder_0).apply(null,arguments)},Hb=a._emscripten_bind_MeshBuilder_AddFacesToMesh_3=function(){return(Hb=a._emscripten_bind_MeshBuilder_AddFacesToMesh_3=a.asm.emscripten_bind_MeshBuilder_AddFacesToMesh_3).apply(null,arguments)},Ib=a._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5=function(){return(Ib=a._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5= +a.asm.emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5).apply(null,arguments)},Jb=a._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5=function(){return(Jb=a._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5=a.asm.emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5).apply(null,arguments)},Kb=a._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=function(){return(Kb=a._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=a.asm.emscripten_bind_MeshBuilder_AddMetadataToMesh_2).apply(null,arguments)}, +Lb=a._emscripten_bind_MeshBuilder_AddFloatAttribute_5=function(){return(Lb=a._emscripten_bind_MeshBuilder_AddFloatAttribute_5=a.asm.emscripten_bind_MeshBuilder_AddFloatAttribute_5).apply(null,arguments)},Mb=a._emscripten_bind_MeshBuilder_AddInt8Attribute_5=function(){return(Mb=a._emscripten_bind_MeshBuilder_AddInt8Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt8Attribute_5).apply(null,arguments)},Nb=a._emscripten_bind_MeshBuilder_AddUInt8Attribute_5=function(){return(Nb=a._emscripten_bind_MeshBuilder_AddUInt8Attribute_5= +a.asm.emscripten_bind_MeshBuilder_AddUInt8Attribute_5).apply(null,arguments)},Ob=a._emscripten_bind_MeshBuilder_AddInt16Attribute_5=function(){return(Ob=a._emscripten_bind_MeshBuilder_AddInt16Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt16Attribute_5).apply(null,arguments)},Pb=a._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=function(){return(Pb=a._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddUInt16Attribute_5).apply(null,arguments)},Qb=a._emscripten_bind_MeshBuilder_AddInt32Attribute_5= +function(){return(Qb=a._emscripten_bind_MeshBuilder_AddInt32Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt32Attribute_5).apply(null,arguments)},Rb=a._emscripten_bind_MeshBuilder_AddUInt32Attribute_5=function(){return(Rb=a._emscripten_bind_MeshBuilder_AddUInt32Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddUInt32Attribute_5).apply(null,arguments)},Sb=a._emscripten_bind_MeshBuilder_AddMetadata_2=function(){return(Sb=a._emscripten_bind_MeshBuilder_AddMetadata_2=a.asm.emscripten_bind_MeshBuilder_AddMetadata_2).apply(null, +arguments)},Tb=a._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=function(){return(Tb=a._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=a.asm.emscripten_bind_MeshBuilder_SetMetadataForAttribute_3).apply(null,arguments)},Ub=a._emscripten_bind_MeshBuilder___destroy___0=function(){return(Ub=a._emscripten_bind_MeshBuilder___destroy___0=a.asm.emscripten_bind_MeshBuilder___destroy___0).apply(null,arguments)},Na=a._emscripten_bind_Encoder_Encoder_0=function(){return(Na=a._emscripten_bind_Encoder_Encoder_0= +a.asm.emscripten_bind_Encoder_Encoder_0).apply(null,arguments)},Vb=a._emscripten_bind_Encoder_SetEncodingMethod_1=function(){return(Vb=a._emscripten_bind_Encoder_SetEncodingMethod_1=a.asm.emscripten_bind_Encoder_SetEncodingMethod_1).apply(null,arguments)},Wb=a._emscripten_bind_Encoder_SetAttributeQuantization_2=function(){return(Wb=a._emscripten_bind_Encoder_SetAttributeQuantization_2=a.asm.emscripten_bind_Encoder_SetAttributeQuantization_2).apply(null,arguments)},Xb=a._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5= +function(){return(Xb=a._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5=a.asm.emscripten_bind_Encoder_SetAttributeExplicitQuantization_5).apply(null,arguments)},Yb=a._emscripten_bind_Encoder_SetSpeedOptions_2=function(){return(Yb=a._emscripten_bind_Encoder_SetSpeedOptions_2=a.asm.emscripten_bind_Encoder_SetSpeedOptions_2).apply(null,arguments)},Zb=a._emscripten_bind_Encoder_SetTrackEncodedProperties_1=function(){return(Zb=a._emscripten_bind_Encoder_SetTrackEncodedProperties_1=a.asm.emscripten_bind_Encoder_SetTrackEncodedProperties_1).apply(null, +arguments)},$b=a._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=function(){return($b=a._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=a.asm.emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2).apply(null,arguments)},ac=a._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=function(){return(ac=a._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=a.asm.emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3).apply(null,arguments)},bc=a._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0= +function(){return(bc=a._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0=a.asm.emscripten_bind_Encoder_GetNumberOfEncodedPoints_0).apply(null,arguments)},cc=a._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=function(){return(cc=a._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=a.asm.emscripten_bind_Encoder_GetNumberOfEncodedFaces_0).apply(null,arguments)},dc=a._emscripten_bind_Encoder___destroy___0=function(){return(dc=a._emscripten_bind_Encoder___destroy___0=a.asm.emscripten_bind_Encoder___destroy___0).apply(null, +arguments)},Oa=a._emscripten_bind_ExpertEncoder_ExpertEncoder_1=function(){return(Oa=a._emscripten_bind_ExpertEncoder_ExpertEncoder_1=a.asm.emscripten_bind_ExpertEncoder_ExpertEncoder_1).apply(null,arguments)},ec=a._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=function(){return(ec=a._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=a.asm.emscripten_bind_ExpertEncoder_SetEncodingMethod_1).apply(null,arguments)},fc=a._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=function(){return(fc= +a._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=a.asm.emscripten_bind_ExpertEncoder_SetAttributeQuantization_2).apply(null,arguments)},gc=a._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5=function(){return(gc=a._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5=a.asm.emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5).apply(null,arguments)},hc=a._emscripten_bind_ExpertEncoder_SetSpeedOptions_2=function(){return(hc=a._emscripten_bind_ExpertEncoder_SetSpeedOptions_2= +a.asm.emscripten_bind_ExpertEncoder_SetSpeedOptions_2).apply(null,arguments)},ic=a._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1=function(){return(ic=a._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1=a.asm.emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1).apply(null,arguments)},jc=a._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=function(){return(jc=a._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=a.asm.emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2).apply(null, +arguments)},kc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=function(){return(kc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=a.asm.emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0).apply(null,arguments)},lc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=function(){return(lc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=a.asm.emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0).apply(null,arguments)},mc=a._emscripten_bind_ExpertEncoder___destroy___0= +function(){return(mc=a._emscripten_bind_ExpertEncoder___destroy___0=a.asm.emscripten_bind_ExpertEncoder___destroy___0).apply(null,arguments)},nc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(nc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID).apply(null,arguments)},oc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(oc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION).apply(null, +arguments)},pc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(pc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL).apply(null,arguments)},qc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(qc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR).apply(null,arguments)},rc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD= +function(){return(rc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD).apply(null,arguments)},sc=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return(sc=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC).apply(null,arguments)},tc=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(tc=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE= +a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE).apply(null,arguments)},uc=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(uc=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD).apply(null,arguments)},vc=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(vc=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH).apply(null, +arguments)},wc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=function(){return(wc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=a.asm.emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING).apply(null,arguments)},xc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=function(){return(xc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=a.asm.emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING).apply(null, +arguments)};a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)};a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)};a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)};a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)};a._setThrew=function(){return(a._setThrew=a.asm.setThrew).apply(null,arguments)};a._free=function(){return(a._free=a.asm.free).apply(null, +arguments)};var Ua=a._malloc=function(){return(Ua=a._malloc=a.asm.malloc).apply(null,arguments)},ja;ea=function b(){ja||M();ja||(ea=b)};a.run=M;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=m.size?(r(0>>=0;switch(c.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var e=0;ee?Math.max(m+e,0):Math.min(e,m);n=0>n?Math.max(m+n,0):Math.min(n,m);f=0>f?Math.max(m+f,0):Math.min(f,m);if(en;)--f in this?this[--e]=this[f]:delete this[--e];return this}},"es6","es3"); -var DracoDecoderModule=function(){var e="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(e=e||__filename);return function(l){function m(k){return a.locateFile?a.locateFile(k,P):P+k}function n(a,c){a||A("Assertion failed: "+c)}function f(a,c,b){var d=c+b;for(b=c;a[b]&&!(b>=d);)++b;if(16k?d+=String.fromCharCode(k):(k-=65536,d+=String.fromCharCode(55296|k>>10,56320|k&1023))}}else d+=String.fromCharCode(k)}return d}function B(a,c){return a?f(ba,a,c):""}function h(a,c){0> -2]=a};this.get_type=function(){return x[this.ptr+y.TYPE_OFFSET>>2]};this.set_destructor=function(a){x[this.ptr+y.DESTRUCTOR_OFFSET>>2]=a};this.get_destructor=function(){return x[this.ptr+y.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(a){x[this.ptr+y.REFCOUNT_OFFSET>>2]=a};this.set_caught=function(a){Q[this.ptr+y.CAUGHT_OFFSET>>0]=a?1:0};this.get_caught=function(){return 0!=Q[this.ptr+y.CAUGHT_OFFSET>>0]};this.set_rethrown=function(a){Q[this.ptr+y.RETHROWN_OFFSET>>0]=a?1:0};this.get_rethrown= -function(){return 0!=Q[this.ptr+y.RETHROWN_OFFSET>>0]};this.init=function(a,b){this.set_type(a);this.set_destructor(b);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){x[this.ptr+y.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var a=x[this.ptr+y.REFCOUNT_OFFSET>>2];x[this.ptr+y.REFCOUNT_OFFSET>>2]=a-1;return 1===a}}function ja(){return 0=d&&(d=65536+((d&1023)<<10)|a.charCodeAt(++b)&1023);127>=d?++c:c=2047>=d?c+2:65535>=d?c+3:c+4}c=Array(c+1);b=0;d=c.length;if(0=e){var f=a.charCodeAt(++k);e=65536+((e&1023)<<10)|f&1023}if(127>=e){if(b>=d)break;c[b++]=e}else{if(2047>=e){if(b+1>=d)break;c[b++]=192|e>>6}else{if(65535>=e){if(b+2>=d)break;c[b++]=224|e>>12}else{if(b+3>=d)break;c[b++]=240|e>>18;c[b++]=128|e>>12&63}c[b++]=128|e>>6&63}c[b++]=128|e&63}}c[b]= -0}a=p.alloc(c,Q);p.copy(c,Q,a)}return a}function ra(a){if("object"===typeof a){var c=p.alloc(a,Q);p.copy(a,Q,c);return c}return a}function T(){throw"cannot construct a VoidPtr, no constructor in IDL";}function N(){this.ptr=Ja();u(N)[this.ptr]=this}function L(){this.ptr=Ka();u(L)[this.ptr]=this}function S(){this.ptr=La();u(S)[this.ptr]=this}function r(){this.ptr=Ma();u(r)[this.ptr]=this}function w(){this.ptr=Na();u(w)[this.ptr]=this}function C(){this.ptr=Oa();u(C)[this.ptr]=this}function D(){this.ptr= -Pa();u(D)[this.ptr]=this}function z(){this.ptr=Qa();u(z)[this.ptr]=this}function O(){this.ptr=Ra();u(O)[this.ptr]=this}function v(){throw"cannot construct a Status, no constructor in IDL";}function E(){this.ptr=Sa();u(E)[this.ptr]=this}function F(){this.ptr=Ta();u(F)[this.ptr]=this}function G(){this.ptr=Ua();u(G)[this.ptr]=this}function H(){this.ptr=Va();u(H)[this.ptr]=this}function I(){this.ptr=Wa();u(I)[this.ptr]=this}function J(){this.ptr=Xa();u(J)[this.ptr]=this}function K(){this.ptr=Ya();u(K)[this.ptr]= -this}function t(){this.ptr=Za();u(t)[this.ptr]=this}function g(){this.ptr=$a();u(g)[this.ptr]=this}l=l||{};var a="undefined"!==typeof l?l:{},Ga,Ba;a.ready=new Promise(function(a,c){Ga=a;Ba=c});var ab=!1,bb=!1;a.onRuntimeInitialized=function(){ab=!0;if(bb&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){bb=!0;if(ab&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(a){if("string"!==typeof a)return!1;a=a.split(".");return 2> -a.length||3=a[1]?!0:0!=a[0]||10>2]},getStr:function(a){return B(a)},get64:function(a,c){return a}};Ea.push({func:function(){eb()}});var gb={__cxa_allocate_exception:function(a){return fb(a+y.SIZE)+y.SIZE},__cxa_throw:function(a,c,b){(new Ad(a)).init(c,b);"uncaught_exception"in ja?ja.uncaught_exceptions++:ja.uncaught_exceptions=1;throw a;},abort:function(){A()},array_bounds_check_error:function(a, -c){throw"Array index "+a+" out of bounds: [0,"+c+")";},emscripten_memcpy_big:function(a,c,b){ba.copyWithin(a,c,c+b)},emscripten_resize_heap:function(a){a>>>=0;var c=ba.length;if(2147483648=b;b*=2){var d=c*(1+.2/b);d=Math.min(d,a+100663296);d=Math.min(2147483648,h(Math.max(16777216,a,d),65536));a:{try{ea.grow(d-ka.byteLength+65535>>>16);xa(ea.buffer);var e=1;break a}catch(Ed){}e=void 0}if(e)return!0}return!1},environ_get:function(a,c){var b=0;X().forEach(function(d,e){var f= -c+b;e=x[a+4*e>>2]=f;for(f=0;f>0]=d.charCodeAt(f);Q[e>>0]=0;b+=d.length+1});return 0},environ_sizes_get:function(a,c){var b=X();x[a>>2]=b.length;var d=0;b.forEach(function(a){d+=a.length+1});x[c>>2]=d;return 0},fd_close:function(a){return 0},fd_seek:function(a,c,b,d,e){},fd_write:function(a,c,b,d){for(var e=0,f=0;f>2],k=x[c+(8*f+4)>>2],h=0;h>2]=e;return 0},memory:ea,setTempRet0:function(a){}};(function(){function e(c, -b){a.asm=c.exports;oa=a.asm.__indirect_function_table;Z--;a.monitorRunDependencies&&a.monitorRunDependencies(Z);0==Z&&(null!==wa&&(clearInterval(wa),wa=null),fa&&(c=fa,fa=null,c()))}function c(a){e(a.instance)}function b(a){return Bd().then(function(a){return WebAssembly.instantiate(a,d)}).then(a,function(a){aa("failed to asynchronously prepare wasm: "+a);A(a)})}var d={env:gb,wasi_snapshot_preview1:gb};Z++;a.monitorRunDependencies&&a.monitorRunDependencies(Z);if(a.instantiateWasm)try{return a.instantiateWasm(d, -e)}catch(Cd){return aa("Module.instantiateWasm callback failed with error: "+Cd),!1}(function(){if(ca||"function"!==typeof WebAssembly.instantiateStreaming||U(R,"data:application/octet-stream;base64,")||U(R,"file://")||"function"!==typeof fetch)return b(c);fetch(R,{credentials:"same-origin"}).then(function(a){return WebAssembly.instantiateStreaming(a,d).then(c,function(a){aa("wasm streaming compile failed: "+a);aa("falling back to ArrayBuffer instantiation");return b(c)})})})();return{}})();var eb= -a.___wasm_call_ctors=function(){return(eb=a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)};a.___em_js__array_bounds_check_error=function(){return(a.___em_js__array_bounds_check_error=a.asm.__em_js__array_bounds_check_error).apply(null,arguments)};var hb=a._emscripten_bind_VoidPtr___destroy___0=function(){return(hb=a._emscripten_bind_VoidPtr___destroy___0=a.asm.emscripten_bind_VoidPtr___destroy___0).apply(null,arguments)},Ja=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(Ja= -a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=a.asm.emscripten_bind_DecoderBuffer_DecoderBuffer_0).apply(null,arguments)},ib=a._emscripten_bind_DecoderBuffer_Init_2=function(){return(ib=a._emscripten_bind_DecoderBuffer_Init_2=a.asm.emscripten_bind_DecoderBuffer_Init_2).apply(null,arguments)},jb=a._emscripten_bind_DecoderBuffer___destroy___0=function(){return(jb=a._emscripten_bind_DecoderBuffer___destroy___0=a.asm.emscripten_bind_DecoderBuffer___destroy___0).apply(null,arguments)},Ka=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0= -function(){return(Ka=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=a.asm.emscripten_bind_AttributeTransformData_AttributeTransformData_0).apply(null,arguments)},kb=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(kb=a._emscripten_bind_AttributeTransformData_transform_type_0=a.asm.emscripten_bind_AttributeTransformData_transform_type_0).apply(null,arguments)},lb=a._emscripten_bind_AttributeTransformData___destroy___0=function(){return(lb=a._emscripten_bind_AttributeTransformData___destroy___0= -a.asm.emscripten_bind_AttributeTransformData___destroy___0).apply(null,arguments)},La=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(La=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0).apply(null,arguments)},mb=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(mb=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.emscripten_bind_GeometryAttribute___destroy___0).apply(null,arguments)}, -Ma=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Ma=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.emscripten_bind_PointAttribute_PointAttribute_0).apply(null,arguments)},nb=a._emscripten_bind_PointAttribute_size_0=function(){return(nb=a._emscripten_bind_PointAttribute_size_0=a.asm.emscripten_bind_PointAttribute_size_0).apply(null,arguments)},ob=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(ob=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0= -a.asm.emscripten_bind_PointAttribute_GetAttributeTransformData_0).apply(null,arguments)},pb=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return(pb=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.emscripten_bind_PointAttribute_attribute_type_0).apply(null,arguments)},qb=a._emscripten_bind_PointAttribute_data_type_0=function(){return(qb=a._emscripten_bind_PointAttribute_data_type_0=a.asm.emscripten_bind_PointAttribute_data_type_0).apply(null,arguments)},rb=a._emscripten_bind_PointAttribute_num_components_0= -function(){return(rb=a._emscripten_bind_PointAttribute_num_components_0=a.asm.emscripten_bind_PointAttribute_num_components_0).apply(null,arguments)},sb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(sb=a._emscripten_bind_PointAttribute_normalized_0=a.asm.emscripten_bind_PointAttribute_normalized_0).apply(null,arguments)},tb=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(tb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.emscripten_bind_PointAttribute_byte_stride_0).apply(null, -arguments)},ub=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(ub=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.emscripten_bind_PointAttribute_byte_offset_0).apply(null,arguments)},vb=a._emscripten_bind_PointAttribute_unique_id_0=function(){return(vb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.emscripten_bind_PointAttribute_unique_id_0).apply(null,arguments)},wb=a._emscripten_bind_PointAttribute___destroy___0=function(){return(wb=a._emscripten_bind_PointAttribute___destroy___0= -a.asm.emscripten_bind_PointAttribute___destroy___0).apply(null,arguments)},Na=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(Na=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=a.asm.emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0).apply(null,arguments)},xb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(xb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1= -a.asm.emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1).apply(null,arguments)},yb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return(yb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=a.asm.emscripten_bind_AttributeQuantizationTransform_quantization_bits_0).apply(null,arguments)},zb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(zb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1= -a.asm.emscripten_bind_AttributeQuantizationTransform_min_value_1).apply(null,arguments)},Ab=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(Ab=a._emscripten_bind_AttributeQuantizationTransform_range_0=a.asm.emscripten_bind_AttributeQuantizationTransform_range_0).apply(null,arguments)},Bb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return(Bb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=a.asm.emscripten_bind_AttributeQuantizationTransform___destroy___0).apply(null, -arguments)},Oa=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Oa=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=a.asm.emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0).apply(null,arguments)},Cb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return(Cb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=a.asm.emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1).apply(null, -arguments)},Db=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(Db=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=a.asm.emscripten_bind_AttributeOctahedronTransform_quantization_bits_0).apply(null,arguments)},Eb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Eb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=a.asm.emscripten_bind_AttributeOctahedronTransform___destroy___0).apply(null,arguments)}, -Pa=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Pa=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.emscripten_bind_PointCloud_PointCloud_0).apply(null,arguments)},Fb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(Fb=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.emscripten_bind_PointCloud_num_attributes_0).apply(null,arguments)},Gb=a._emscripten_bind_PointCloud_num_points_0=function(){return(Gb=a._emscripten_bind_PointCloud_num_points_0=a.asm.emscripten_bind_PointCloud_num_points_0).apply(null, -arguments)},Hb=a._emscripten_bind_PointCloud___destroy___0=function(){return(Hb=a._emscripten_bind_PointCloud___destroy___0=a.asm.emscripten_bind_PointCloud___destroy___0).apply(null,arguments)},Qa=a._emscripten_bind_Mesh_Mesh_0=function(){return(Qa=a._emscripten_bind_Mesh_Mesh_0=a.asm.emscripten_bind_Mesh_Mesh_0).apply(null,arguments)},Ib=a._emscripten_bind_Mesh_num_faces_0=function(){return(Ib=a._emscripten_bind_Mesh_num_faces_0=a.asm.emscripten_bind_Mesh_num_faces_0).apply(null,arguments)},Jb= -a._emscripten_bind_Mesh_num_attributes_0=function(){return(Jb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.emscripten_bind_Mesh_num_attributes_0).apply(null,arguments)},Kb=a._emscripten_bind_Mesh_num_points_0=function(){return(Kb=a._emscripten_bind_Mesh_num_points_0=a.asm.emscripten_bind_Mesh_num_points_0).apply(null,arguments)},Lb=a._emscripten_bind_Mesh___destroy___0=function(){return(Lb=a._emscripten_bind_Mesh___destroy___0=a.asm.emscripten_bind_Mesh___destroy___0).apply(null,arguments)},Ra= -a._emscripten_bind_Metadata_Metadata_0=function(){return(Ra=a._emscripten_bind_Metadata_Metadata_0=a.asm.emscripten_bind_Metadata_Metadata_0).apply(null,arguments)},Mb=a._emscripten_bind_Metadata___destroy___0=function(){return(Mb=a._emscripten_bind_Metadata___destroy___0=a.asm.emscripten_bind_Metadata___destroy___0).apply(null,arguments)},Nb=a._emscripten_bind_Status_code_0=function(){return(Nb=a._emscripten_bind_Status_code_0=a.asm.emscripten_bind_Status_code_0).apply(null,arguments)},Ob=a._emscripten_bind_Status_ok_0= -function(){return(Ob=a._emscripten_bind_Status_ok_0=a.asm.emscripten_bind_Status_ok_0).apply(null,arguments)},Pb=a._emscripten_bind_Status_error_msg_0=function(){return(Pb=a._emscripten_bind_Status_error_msg_0=a.asm.emscripten_bind_Status_error_msg_0).apply(null,arguments)},Qb=a._emscripten_bind_Status___destroy___0=function(){return(Qb=a._emscripten_bind_Status___destroy___0=a.asm.emscripten_bind_Status___destroy___0).apply(null,arguments)},Sa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0= -function(){return(Sa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=a.asm.emscripten_bind_DracoFloat32Array_DracoFloat32Array_0).apply(null,arguments)},Rb=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(Rb=a._emscripten_bind_DracoFloat32Array_GetValue_1=a.asm.emscripten_bind_DracoFloat32Array_GetValue_1).apply(null,arguments)},Sb=a._emscripten_bind_DracoFloat32Array_size_0=function(){return(Sb=a._emscripten_bind_DracoFloat32Array_size_0=a.asm.emscripten_bind_DracoFloat32Array_size_0).apply(null, -arguments)},Tb=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(Tb=a._emscripten_bind_DracoFloat32Array___destroy___0=a.asm.emscripten_bind_DracoFloat32Array___destroy___0).apply(null,arguments)},Ta=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Ta=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0).apply(null,arguments)},Ub=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(Ub=a._emscripten_bind_DracoInt8Array_GetValue_1= -a.asm.emscripten_bind_DracoInt8Array_GetValue_1).apply(null,arguments)},Vb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(Vb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.emscripten_bind_DracoInt8Array_size_0).apply(null,arguments)},Wb=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return(Wb=a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.emscripten_bind_DracoInt8Array___destroy___0).apply(null,arguments)},Ua=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(Ua= -a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=a.asm.emscripten_bind_DracoUInt8Array_DracoUInt8Array_0).apply(null,arguments)},Xb=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(Xb=a._emscripten_bind_DracoUInt8Array_GetValue_1=a.asm.emscripten_bind_DracoUInt8Array_GetValue_1).apply(null,arguments)},Yb=a._emscripten_bind_DracoUInt8Array_size_0=function(){return(Yb=a._emscripten_bind_DracoUInt8Array_size_0=a.asm.emscripten_bind_DracoUInt8Array_size_0).apply(null,arguments)},Zb= -a._emscripten_bind_DracoUInt8Array___destroy___0=function(){return(Zb=a._emscripten_bind_DracoUInt8Array___destroy___0=a.asm.emscripten_bind_DracoUInt8Array___destroy___0).apply(null,arguments)},Va=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(Va=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=a.asm.emscripten_bind_DracoInt16Array_DracoInt16Array_0).apply(null,arguments)},$b=a._emscripten_bind_DracoInt16Array_GetValue_1=function(){return($b=a._emscripten_bind_DracoInt16Array_GetValue_1= -a.asm.emscripten_bind_DracoInt16Array_GetValue_1).apply(null,arguments)},ac=a._emscripten_bind_DracoInt16Array_size_0=function(){return(ac=a._emscripten_bind_DracoInt16Array_size_0=a.asm.emscripten_bind_DracoInt16Array_size_0).apply(null,arguments)},bc=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return(bc=a._emscripten_bind_DracoInt16Array___destroy___0=a.asm.emscripten_bind_DracoInt16Array___destroy___0).apply(null,arguments)},Wa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0= -function(){return(Wa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=a.asm.emscripten_bind_DracoUInt16Array_DracoUInt16Array_0).apply(null,arguments)},cc=a._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return(cc=a._emscripten_bind_DracoUInt16Array_GetValue_1=a.asm.emscripten_bind_DracoUInt16Array_GetValue_1).apply(null,arguments)},dc=a._emscripten_bind_DracoUInt16Array_size_0=function(){return(dc=a._emscripten_bind_DracoUInt16Array_size_0=a.asm.emscripten_bind_DracoUInt16Array_size_0).apply(null, -arguments)},ec=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(ec=a._emscripten_bind_DracoUInt16Array___destroy___0=a.asm.emscripten_bind_DracoUInt16Array___destroy___0).apply(null,arguments)},Xa=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return(Xa=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=a.asm.emscripten_bind_DracoInt32Array_DracoInt32Array_0).apply(null,arguments)},fc=a._emscripten_bind_DracoInt32Array_GetValue_1=function(){return(fc=a._emscripten_bind_DracoInt32Array_GetValue_1= -a.asm.emscripten_bind_DracoInt32Array_GetValue_1).apply(null,arguments)},gc=a._emscripten_bind_DracoInt32Array_size_0=function(){return(gc=a._emscripten_bind_DracoInt32Array_size_0=a.asm.emscripten_bind_DracoInt32Array_size_0).apply(null,arguments)},hc=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return(hc=a._emscripten_bind_DracoInt32Array___destroy___0=a.asm.emscripten_bind_DracoInt32Array___destroy___0).apply(null,arguments)},Ya=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0= -function(){return(Ya=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=a.asm.emscripten_bind_DracoUInt32Array_DracoUInt32Array_0).apply(null,arguments)},ic=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return(ic=a._emscripten_bind_DracoUInt32Array_GetValue_1=a.asm.emscripten_bind_DracoUInt32Array_GetValue_1).apply(null,arguments)},jc=a._emscripten_bind_DracoUInt32Array_size_0=function(){return(jc=a._emscripten_bind_DracoUInt32Array_size_0=a.asm.emscripten_bind_DracoUInt32Array_size_0).apply(null, -arguments)},kc=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(kc=a._emscripten_bind_DracoUInt32Array___destroy___0=a.asm.emscripten_bind_DracoUInt32Array___destroy___0).apply(null,arguments)},Za=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return(Za=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=a.asm.emscripten_bind_MetadataQuerier_MetadataQuerier_0).apply(null,arguments)},lc=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(lc=a._emscripten_bind_MetadataQuerier_HasEntry_2= -a.asm.emscripten_bind_MetadataQuerier_HasEntry_2).apply(null,arguments)},mc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(mc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetIntEntry_2).apply(null,arguments)},nc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=function(){return(nc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=a.asm.emscripten_bind_MetadataQuerier_GetIntEntryArray_3).apply(null,arguments)},oc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2= -function(){return(oc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetDoubleEntry_2).apply(null,arguments)},pc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(pc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetStringEntry_2).apply(null,arguments)},qc=a._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return(qc=a._emscripten_bind_MetadataQuerier_NumEntries_1=a.asm.emscripten_bind_MetadataQuerier_NumEntries_1).apply(null, -arguments)},rc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(rc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=a.asm.emscripten_bind_MetadataQuerier_GetEntryName_2).apply(null,arguments)},sc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return(sc=a._emscripten_bind_MetadataQuerier___destroy___0=a.asm.emscripten_bind_MetadataQuerier___destroy___0).apply(null,arguments)},$a=a._emscripten_bind_Decoder_Decoder_0=function(){return($a=a._emscripten_bind_Decoder_Decoder_0= -a.asm.emscripten_bind_Decoder_Decoder_0).apply(null,arguments)},tc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(tc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=a.asm.emscripten_bind_Decoder_DecodeArrayToPointCloud_3).apply(null,arguments)},uc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(uc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=a.asm.emscripten_bind_Decoder_DecodeArrayToMesh_3).apply(null,arguments)},vc=a._emscripten_bind_Decoder_GetAttributeId_2= -function(){return(vc=a._emscripten_bind_Decoder_GetAttributeId_2=a.asm.emscripten_bind_Decoder_GetAttributeId_2).apply(null,arguments)},wc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return(wc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=a.asm.emscripten_bind_Decoder_GetAttributeIdByName_2).apply(null,arguments)},xc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(xc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=a.asm.emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3).apply(null, -arguments)},yc=a._emscripten_bind_Decoder_GetAttribute_2=function(){return(yc=a._emscripten_bind_Decoder_GetAttribute_2=a.asm.emscripten_bind_Decoder_GetAttribute_2).apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(zc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=a.asm.emscripten_bind_Decoder_GetAttributeByUniqueId_2).apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetMetadata_1=function(){return(Ac=a._emscripten_bind_Decoder_GetMetadata_1= -a.asm.emscripten_bind_Decoder_GetMetadata_1).apply(null,arguments)},Bc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(Bc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=a.asm.emscripten_bind_Decoder_GetAttributeMetadata_2).apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return(Cc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=a.asm.emscripten_bind_Decoder_GetFaceFromMesh_3).apply(null,arguments)},Dc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2= -function(){return(Dc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=a.asm.emscripten_bind_Decoder_GetTriangleStripsFromMesh_2).apply(null,arguments)},Ec=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(Ec=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt16Array_3).apply(null,arguments)},Fc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(Fc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt32Array_3).apply(null, -arguments)},Gc=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(Gc=a._emscripten_bind_Decoder_GetAttributeFloat_3=a.asm.emscripten_bind_Decoder_GetAttributeFloat_3).apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(Hc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3).apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(Ic= -a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeIntForAllPoints_3).apply(null,arguments)},Jc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(Jc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3).apply(null,arguments)},Kc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(Kc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3= -a.asm.emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3).apply(null,arguments)},Lc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(Lc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3).apply(null,arguments)},Mc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=function(){return(Mc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3).apply(null, -arguments)},Nc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(Nc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3).apply(null,arguments)},Oc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(Oc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3).apply(null,arguments)},Pc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5= -function(){return(Pc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=a.asm.emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5).apply(null,arguments)},Qc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Qc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=a.asm.emscripten_bind_Decoder_SkipAttributeTransform_1).apply(null,arguments)},Rc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Rc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1= -a.asm.emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1).apply(null,arguments)},Sc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return(Sc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=a.asm.emscripten_bind_Decoder_DecodeBufferToPointCloud_2).apply(null,arguments)},Tc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return(Tc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=a.asm.emscripten_bind_Decoder_DecodeBufferToMesh_2).apply(null,arguments)},Uc= -a._emscripten_bind_Decoder___destroy___0=function(){return(Uc=a._emscripten_bind_Decoder___destroy___0=a.asm.emscripten_bind_Decoder___destroy___0).apply(null,arguments)},Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM).apply(null,arguments)},Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM= -function(){return(Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM).apply(null,arguments)},Xc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(Xc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM).apply(null,arguments)},Yc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM= -function(){return(Yc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM).apply(null,arguments)},Zc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(Zc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID).apply(null,arguments)},$c=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return($c= -a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION).apply(null,arguments)},ad=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(ad=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL).apply(null,arguments)},bd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(bd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR).apply(null, -arguments)},cd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(cd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD).apply(null,arguments)},dd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return(dd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC).apply(null,arguments)},ed=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE= -function(){return(ed=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE).apply(null,arguments)},fd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(fd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD).apply(null,arguments)},gd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(gd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH= -a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH).apply(null,arguments)},hd=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return(hd=a._emscripten_enum_draco_DataType_DT_INVALID=a.asm.emscripten_enum_draco_DataType_DT_INVALID).apply(null,arguments)},id=a._emscripten_enum_draco_DataType_DT_INT8=function(){return(id=a._emscripten_enum_draco_DataType_DT_INT8=a.asm.emscripten_enum_draco_DataType_DT_INT8).apply(null,arguments)},jd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return(jd= -a._emscripten_enum_draco_DataType_DT_UINT8=a.asm.emscripten_enum_draco_DataType_DT_UINT8).apply(null,arguments)},kd=a._emscripten_enum_draco_DataType_DT_INT16=function(){return(kd=a._emscripten_enum_draco_DataType_DT_INT16=a.asm.emscripten_enum_draco_DataType_DT_INT16).apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return(ld=a._emscripten_enum_draco_DataType_DT_UINT16=a.asm.emscripten_enum_draco_DataType_DT_UINT16).apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_INT32= -function(){return(md=a._emscripten_enum_draco_DataType_DT_INT32=a.asm.emscripten_enum_draco_DataType_DT_INT32).apply(null,arguments)},nd=a._emscripten_enum_draco_DataType_DT_UINT32=function(){return(nd=a._emscripten_enum_draco_DataType_DT_UINT32=a.asm.emscripten_enum_draco_DataType_DT_UINT32).apply(null,arguments)},od=a._emscripten_enum_draco_DataType_DT_INT64=function(){return(od=a._emscripten_enum_draco_DataType_DT_INT64=a.asm.emscripten_enum_draco_DataType_DT_INT64).apply(null,arguments)},pd=a._emscripten_enum_draco_DataType_DT_UINT64= -function(){return(pd=a._emscripten_enum_draco_DataType_DT_UINT64=a.asm.emscripten_enum_draco_DataType_DT_UINT64).apply(null,arguments)},qd=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(qd=a._emscripten_enum_draco_DataType_DT_FLOAT32=a.asm.emscripten_enum_draco_DataType_DT_FLOAT32).apply(null,arguments)},rd=a._emscripten_enum_draco_DataType_DT_FLOAT64=function(){return(rd=a._emscripten_enum_draco_DataType_DT_FLOAT64=a.asm.emscripten_enum_draco_DataType_DT_FLOAT64).apply(null,arguments)}, -sd=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return(sd=a._emscripten_enum_draco_DataType_DT_BOOL=a.asm.emscripten_enum_draco_DataType_DT_BOOL).apply(null,arguments)},td=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(td=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=a.asm.emscripten_enum_draco_DataType_DT_TYPES_COUNT).apply(null,arguments)},ud=a._emscripten_enum_draco_StatusCode_OK=function(){return(ud=a._emscripten_enum_draco_StatusCode_OK=a.asm.emscripten_enum_draco_StatusCode_OK).apply(null, -arguments)},vd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(vd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=a.asm.emscripten_enum_draco_StatusCode_DRACO_ERROR).apply(null,arguments)},wd=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(wd=a._emscripten_enum_draco_StatusCode_IO_ERROR=a.asm.emscripten_enum_draco_StatusCode_IO_ERROR).apply(null,arguments)},xd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(xd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER= -a.asm.emscripten_enum_draco_StatusCode_INVALID_PARAMETER).apply(null,arguments)},yd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(yd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION).apply(null,arguments)},zd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(zd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNKNOWN_VERSION).apply(null,arguments)}; -a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)};a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)};a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)};a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)};a._setThrew=function(){return(a._setThrew=a.asm.setThrew).apply(null,arguments)};a._free=function(){return(a._free=a.asm.free).apply(null, -arguments)};var fb=a._malloc=function(){return(fb=a._malloc=a.asm.malloc).apply(null,arguments)};a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)};var na;fa=function c(){na||qa();na||(fa=c)};a.run=qa;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=p.size?(n(0>>=0;switch(b.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var c=0;cc.byteLength)return a.INVALID_GEOMETRY_TYPE;switch(c[7]){case 0:return a.POINT_CLOUD;case 1:return a.TRIANGULAR_MESH;default:return a.INVALID_GEOMETRY_TYPE}};return l.ready}}();"object"===typeof exports&&"object"===typeof module?module.exports=DracoDecoderModule:"function"===typeof define&&define.amd?define([],function(){return DracoDecoderModule}):"object"===typeof exports&&(exports.DracoDecoderModule=DracoDecoderModule); +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(l){var n=0;return function(){return nm?Math.max(A+m,0):Math.min(m,A);q=0>q?Math.max(A+q,0):Math.min(q,A);h=0>h?Math.max(A+h,0):Math.min(h,A);if(mq;)--h in this?this[--m]=this[h]:delete this[--m];return this}},"es6","es3"); +$jscomp.typedArrayCopyWithin=function(l){return l?l:Array.prototype.copyWithin};$jscomp.polyfill("Int8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); +$jscomp.polyfill("Uint16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float64Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); +var DracoDecoderModule=function(){var l="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(l=l||__filename);return function(n){function m(e){return a.locateFile?a.locateFile(e,V):V+e}function q(e,b){e||u("Assertion failed: "+b)}function h(e,b,c){var d=b+c;for(c=b;e[c]&&!(c>=d);)++c;if(16f?d+=String.fromCharCode(f):(f-=65536,d+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else d+=String.fromCharCode(f)}return d}function A(e,b){return e?h(la,e,b):""}function g(e,b){0>2]=b}; +this.get_type=function(){return H[this.ptr+D.TYPE_OFFSET>>2]};this.set_destructor=function(b){H[this.ptr+D.DESTRUCTOR_OFFSET>>2]=b};this.get_destructor=function(){return H[this.ptr+D.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(b){H[this.ptr+D.REFCOUNT_OFFSET>>2]=b};this.set_caught=function(b){Z[this.ptr+D.CAUGHT_OFFSET>>0]=b?1:0};this.get_caught=function(){return 0!=Z[this.ptr+D.CAUGHT_OFFSET>>0]};this.set_rethrown=function(b){Z[this.ptr+D.RETHROWN_OFFSET>>0]=b?1:0};this.get_rethrown=function(){return 0!= +Z[this.ptr+D.RETHROWN_OFFSET>>0]};this.init=function(b,c){this.set_type(b);this.set_destructor(c);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){H[this.ptr+D.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var b=H[this.ptr+D.REFCOUNT_OFFSET>>2];H[this.ptr+D.REFCOUNT_OFFSET>>2]=b-1;return 1===b}}function ba(){return 0=d&&(d=65536+((d&1023)<<10)|e.charCodeAt(++c)&1023);127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}b=Array(b+1);c=0;d=b.length;if(0=t){var ca=e.charCodeAt(++f);t=65536+((t&1023)<<10)|ca&1023}if(127>=t){if(c>=d)break;b[c++]=t}else{if(2047>=t){if(c+1>=d)break;b[c++]=192|t>>6}else{if(65535>= +t){if(c+2>=d)break;b[c++]=224|t>>12}else{if(c+3>=d)break;b[c++]=240|t>>18;b[c++]=128|t>>12&63}b[c++]=128|t>>6&63}b[c++]=128|t&63}}b[c]=0}e=r.alloc(b,Z);r.copy(b,Z,e);return e}return e}function xa(e){if("object"===typeof e){var b=r.alloc(e,Z);r.copy(e,Z,b);return b}return e}function aa(){throw"cannot construct a VoidPtr, no constructor in IDL";}function T(){this.ptr=Ma();z(T)[this.ptr]=this}function R(){this.ptr=Na();z(R)[this.ptr]=this}function X(){this.ptr=Oa();z(X)[this.ptr]=this}function w(){this.ptr= +Pa();z(w)[this.ptr]=this}function C(){this.ptr=Qa();z(C)[this.ptr]=this}function I(){this.ptr=Ra();z(I)[this.ptr]=this}function J(){this.ptr=Sa();z(J)[this.ptr]=this}function E(){this.ptr=Ta();z(E)[this.ptr]=this}function U(){this.ptr=Ua();z(U)[this.ptr]=this}function B(){throw"cannot construct a Status, no constructor in IDL";}function K(){this.ptr=Va();z(K)[this.ptr]=this}function L(){this.ptr=Wa();z(L)[this.ptr]=this}function M(){this.ptr=Xa();z(M)[this.ptr]=this}function N(){this.ptr=Ya();z(N)[this.ptr]= +this}function O(){this.ptr=Za();z(O)[this.ptr]=this}function P(){this.ptr=$a();z(P)[this.ptr]=this}function Q(){this.ptr=ab();z(Q)[this.ptr]=this}function y(){this.ptr=bb();z(y)[this.ptr]=this}function k(){this.ptr=cb();z(k)[this.ptr]=this}n=n||{};var a="undefined"!==typeof n?n:{},Ja,va;a.ready=new Promise(function(e,b){Ja=e;va=b});var db=!1,eb=!1;a.onRuntimeInitialized=function(){db=!0;if(eb&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){eb=!0;if(db&&"function"=== +typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(e){if("string"!==typeof e)return!1;e=e.split(".");return 2>e.length||3=e[1]?!0:0!=e[0]||10>2]},getStr:function(e){return A(e)},get64:function(e,b){return e}};Ha.push({func:function(){hb()}});var kb={__cxa_allocate_exception:function(e){return ib(e+D.SIZE)+D.SIZE},__cxa_throw:function(e,b,c){(new Y(e)).init(b,c);"uncaught_exception"in ba?ba.uncaught_exceptions++:ba.uncaught_exceptions= +1;throw e;},abort:function(){u()},array_bounds_check_error:function(e,b){throw"Array index "+e+" out of bounds: [0,"+b+")";},emscripten_memcpy_big:function(e,b,c){la.copyWithin(e,b,b+c)},emscripten_resize_heap:function(e){e>>>=0;var b=la.length;if(2147483648=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,e+100663296);d=Math.min(2147483648,g(Math.max(16777216,e,d),65536));a:{try{oa.grow(d-ra.byteLength+65535>>>16);p(oa.buffer);var f=1;break a}catch(t){}f=void 0}if(f)return!0}return!1}, +fd_close:function(e){return 0},fd_seek:function(e,b,c,d,f){},fd_write:function(e,b,c,d){for(var f=0,t=0;t>2],jb=H[b+(8*t+4)>>2],Da=0;Da>2]=f;return 0},memory:oa,setTempRet0:function(e){}};(function(){function e(f,t){a.asm=f.exports;wa=a.asm.__indirect_function_table;ia--;a.monitorRunDependencies&&a.monitorRunDependencies(ia);0==ia&&(null!==Ca&&(clearInterval(Ca),Ca=null),pa&&(f=pa,pa=null,f()))}function b(f){e(f.instance)}function c(f){return ka().then(function(t){return WebAssembly.instantiate(t, +d)}).then(f,function(t){ja("failed to asynchronously prepare wasm: "+t);u(t)})}var d={env:kb,wasi_snapshot_preview1:kb};ia++;a.monitorRunDependencies&&a.monitorRunDependencies(ia);if(a.instantiateWasm)try{return a.instantiateWasm(d,e)}catch(f){return ja("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return ma||"function"!==typeof WebAssembly.instantiateStreaming||x(W,"data:application/octet-stream;base64,")||x(W,"file://")||"function"!==typeof fetch?c(b):fetch(W,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f, +d).then(b,function(t){ja("wasm streaming compile failed: "+t);ja("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(va);return{}})();var hb=a.___wasm_call_ctors=function(){return(hb=a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)};a.___em_js__array_bounds_check_error=function(){return(a.___em_js__array_bounds_check_error=a.asm.__em_js__array_bounds_check_error).apply(null,arguments)};var lb=a._emscripten_bind_VoidPtr___destroy___0=function(){return(lb=a._emscripten_bind_VoidPtr___destroy___0= +a.asm.emscripten_bind_VoidPtr___destroy___0).apply(null,arguments)},Ma=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(Ma=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=a.asm.emscripten_bind_DecoderBuffer_DecoderBuffer_0).apply(null,arguments)},mb=a._emscripten_bind_DecoderBuffer_Init_2=function(){return(mb=a._emscripten_bind_DecoderBuffer_Init_2=a.asm.emscripten_bind_DecoderBuffer_Init_2).apply(null,arguments)},nb=a._emscripten_bind_DecoderBuffer___destroy___0=function(){return(nb= +a._emscripten_bind_DecoderBuffer___destroy___0=a.asm.emscripten_bind_DecoderBuffer___destroy___0).apply(null,arguments)},Na=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=function(){return(Na=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=a.asm.emscripten_bind_AttributeTransformData_AttributeTransformData_0).apply(null,arguments)},ob=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(ob=a._emscripten_bind_AttributeTransformData_transform_type_0= +a.asm.emscripten_bind_AttributeTransformData_transform_type_0).apply(null,arguments)},pb=a._emscripten_bind_AttributeTransformData___destroy___0=function(){return(pb=a._emscripten_bind_AttributeTransformData___destroy___0=a.asm.emscripten_bind_AttributeTransformData___destroy___0).apply(null,arguments)},Oa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Oa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0).apply(null, +arguments)},qb=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(qb=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.emscripten_bind_GeometryAttribute___destroy___0).apply(null,arguments)},Pa=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Pa=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.emscripten_bind_PointAttribute_PointAttribute_0).apply(null,arguments)},rb=a._emscripten_bind_PointAttribute_size_0=function(){return(rb=a._emscripten_bind_PointAttribute_size_0= +a.asm.emscripten_bind_PointAttribute_size_0).apply(null,arguments)},sb=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(sb=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=a.asm.emscripten_bind_PointAttribute_GetAttributeTransformData_0).apply(null,arguments)},tb=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return(tb=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.emscripten_bind_PointAttribute_attribute_type_0).apply(null,arguments)}, +ub=a._emscripten_bind_PointAttribute_data_type_0=function(){return(ub=a._emscripten_bind_PointAttribute_data_type_0=a.asm.emscripten_bind_PointAttribute_data_type_0).apply(null,arguments)},vb=a._emscripten_bind_PointAttribute_num_components_0=function(){return(vb=a._emscripten_bind_PointAttribute_num_components_0=a.asm.emscripten_bind_PointAttribute_num_components_0).apply(null,arguments)},wb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(wb=a._emscripten_bind_PointAttribute_normalized_0= +a.asm.emscripten_bind_PointAttribute_normalized_0).apply(null,arguments)},xb=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(xb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.emscripten_bind_PointAttribute_byte_stride_0).apply(null,arguments)},yb=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(yb=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.emscripten_bind_PointAttribute_byte_offset_0).apply(null,arguments)},zb=a._emscripten_bind_PointAttribute_unique_id_0= +function(){return(zb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.emscripten_bind_PointAttribute_unique_id_0).apply(null,arguments)},Ab=a._emscripten_bind_PointAttribute___destroy___0=function(){return(Ab=a._emscripten_bind_PointAttribute___destroy___0=a.asm.emscripten_bind_PointAttribute___destroy___0).apply(null,arguments)},Qa=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(Qa=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0= +a.asm.emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0).apply(null,arguments)},Bb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(Bb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=a.asm.emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1).apply(null,arguments)},Cb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return(Cb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0= +a.asm.emscripten_bind_AttributeQuantizationTransform_quantization_bits_0).apply(null,arguments)},Db=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(Db=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=a.asm.emscripten_bind_AttributeQuantizationTransform_min_value_1).apply(null,arguments)},Eb=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(Eb=a._emscripten_bind_AttributeQuantizationTransform_range_0=a.asm.emscripten_bind_AttributeQuantizationTransform_range_0).apply(null, +arguments)},Fb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return(Fb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=a.asm.emscripten_bind_AttributeQuantizationTransform___destroy___0).apply(null,arguments)},Ra=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Ra=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=a.asm.emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0).apply(null, +arguments)},Gb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return(Gb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=a.asm.emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1).apply(null,arguments)},Hb=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(Hb=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=a.asm.emscripten_bind_AttributeOctahedronTransform_quantization_bits_0).apply(null, +arguments)},Ib=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Ib=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=a.asm.emscripten_bind_AttributeOctahedronTransform___destroy___0).apply(null,arguments)},Sa=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Sa=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.emscripten_bind_PointCloud_PointCloud_0).apply(null,arguments)},Jb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(Jb=a._emscripten_bind_PointCloud_num_attributes_0= +a.asm.emscripten_bind_PointCloud_num_attributes_0).apply(null,arguments)},Kb=a._emscripten_bind_PointCloud_num_points_0=function(){return(Kb=a._emscripten_bind_PointCloud_num_points_0=a.asm.emscripten_bind_PointCloud_num_points_0).apply(null,arguments)},Lb=a._emscripten_bind_PointCloud___destroy___0=function(){return(Lb=a._emscripten_bind_PointCloud___destroy___0=a.asm.emscripten_bind_PointCloud___destroy___0).apply(null,arguments)},Ta=a._emscripten_bind_Mesh_Mesh_0=function(){return(Ta=a._emscripten_bind_Mesh_Mesh_0= +a.asm.emscripten_bind_Mesh_Mesh_0).apply(null,arguments)},Mb=a._emscripten_bind_Mesh_num_faces_0=function(){return(Mb=a._emscripten_bind_Mesh_num_faces_0=a.asm.emscripten_bind_Mesh_num_faces_0).apply(null,arguments)},Nb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(Nb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.emscripten_bind_Mesh_num_attributes_0).apply(null,arguments)},Ob=a._emscripten_bind_Mesh_num_points_0=function(){return(Ob=a._emscripten_bind_Mesh_num_points_0=a.asm.emscripten_bind_Mesh_num_points_0).apply(null, +arguments)},Pb=a._emscripten_bind_Mesh___destroy___0=function(){return(Pb=a._emscripten_bind_Mesh___destroy___0=a.asm.emscripten_bind_Mesh___destroy___0).apply(null,arguments)},Ua=a._emscripten_bind_Metadata_Metadata_0=function(){return(Ua=a._emscripten_bind_Metadata_Metadata_0=a.asm.emscripten_bind_Metadata_Metadata_0).apply(null,arguments)},Qb=a._emscripten_bind_Metadata___destroy___0=function(){return(Qb=a._emscripten_bind_Metadata___destroy___0=a.asm.emscripten_bind_Metadata___destroy___0).apply(null, +arguments)},Rb=a._emscripten_bind_Status_code_0=function(){return(Rb=a._emscripten_bind_Status_code_0=a.asm.emscripten_bind_Status_code_0).apply(null,arguments)},Sb=a._emscripten_bind_Status_ok_0=function(){return(Sb=a._emscripten_bind_Status_ok_0=a.asm.emscripten_bind_Status_ok_0).apply(null,arguments)},Tb=a._emscripten_bind_Status_error_msg_0=function(){return(Tb=a._emscripten_bind_Status_error_msg_0=a.asm.emscripten_bind_Status_error_msg_0).apply(null,arguments)},Ub=a._emscripten_bind_Status___destroy___0= +function(){return(Ub=a._emscripten_bind_Status___destroy___0=a.asm.emscripten_bind_Status___destroy___0).apply(null,arguments)},Va=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return(Va=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=a.asm.emscripten_bind_DracoFloat32Array_DracoFloat32Array_0).apply(null,arguments)},Vb=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(Vb=a._emscripten_bind_DracoFloat32Array_GetValue_1=a.asm.emscripten_bind_DracoFloat32Array_GetValue_1).apply(null, +arguments)},Wb=a._emscripten_bind_DracoFloat32Array_size_0=function(){return(Wb=a._emscripten_bind_DracoFloat32Array_size_0=a.asm.emscripten_bind_DracoFloat32Array_size_0).apply(null,arguments)},Xb=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(Xb=a._emscripten_bind_DracoFloat32Array___destroy___0=a.asm.emscripten_bind_DracoFloat32Array___destroy___0).apply(null,arguments)},Wa=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Wa=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0= +a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0).apply(null,arguments)},Yb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(Yb=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.emscripten_bind_DracoInt8Array_GetValue_1).apply(null,arguments)},Zb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(Zb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.emscripten_bind_DracoInt8Array_size_0).apply(null,arguments)},$b=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return($b= +a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.emscripten_bind_DracoInt8Array___destroy___0).apply(null,arguments)},Xa=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(Xa=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=a.asm.emscripten_bind_DracoUInt8Array_DracoUInt8Array_0).apply(null,arguments)},ac=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(ac=a._emscripten_bind_DracoUInt8Array_GetValue_1=a.asm.emscripten_bind_DracoUInt8Array_GetValue_1).apply(null, +arguments)},bc=a._emscripten_bind_DracoUInt8Array_size_0=function(){return(bc=a._emscripten_bind_DracoUInt8Array_size_0=a.asm.emscripten_bind_DracoUInt8Array_size_0).apply(null,arguments)},cc=a._emscripten_bind_DracoUInt8Array___destroy___0=function(){return(cc=a._emscripten_bind_DracoUInt8Array___destroy___0=a.asm.emscripten_bind_DracoUInt8Array___destroy___0).apply(null,arguments)},Ya=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(Ya=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0= +a.asm.emscripten_bind_DracoInt16Array_DracoInt16Array_0).apply(null,arguments)},dc=a._emscripten_bind_DracoInt16Array_GetValue_1=function(){return(dc=a._emscripten_bind_DracoInt16Array_GetValue_1=a.asm.emscripten_bind_DracoInt16Array_GetValue_1).apply(null,arguments)},ec=a._emscripten_bind_DracoInt16Array_size_0=function(){return(ec=a._emscripten_bind_DracoInt16Array_size_0=a.asm.emscripten_bind_DracoInt16Array_size_0).apply(null,arguments)},fc=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return(fc= +a._emscripten_bind_DracoInt16Array___destroy___0=a.asm.emscripten_bind_DracoInt16Array___destroy___0).apply(null,arguments)},Za=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return(Za=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=a.asm.emscripten_bind_DracoUInt16Array_DracoUInt16Array_0).apply(null,arguments)},gc=a._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return(gc=a._emscripten_bind_DracoUInt16Array_GetValue_1=a.asm.emscripten_bind_DracoUInt16Array_GetValue_1).apply(null, +arguments)},hc=a._emscripten_bind_DracoUInt16Array_size_0=function(){return(hc=a._emscripten_bind_DracoUInt16Array_size_0=a.asm.emscripten_bind_DracoUInt16Array_size_0).apply(null,arguments)},ic=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(ic=a._emscripten_bind_DracoUInt16Array___destroy___0=a.asm.emscripten_bind_DracoUInt16Array___destroy___0).apply(null,arguments)},$a=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return($a=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0= +a.asm.emscripten_bind_DracoInt32Array_DracoInt32Array_0).apply(null,arguments)},jc=a._emscripten_bind_DracoInt32Array_GetValue_1=function(){return(jc=a._emscripten_bind_DracoInt32Array_GetValue_1=a.asm.emscripten_bind_DracoInt32Array_GetValue_1).apply(null,arguments)},kc=a._emscripten_bind_DracoInt32Array_size_0=function(){return(kc=a._emscripten_bind_DracoInt32Array_size_0=a.asm.emscripten_bind_DracoInt32Array_size_0).apply(null,arguments)},lc=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return(lc= +a._emscripten_bind_DracoInt32Array___destroy___0=a.asm.emscripten_bind_DracoInt32Array___destroy___0).apply(null,arguments)},ab=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=function(){return(ab=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=a.asm.emscripten_bind_DracoUInt32Array_DracoUInt32Array_0).apply(null,arguments)},mc=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return(mc=a._emscripten_bind_DracoUInt32Array_GetValue_1=a.asm.emscripten_bind_DracoUInt32Array_GetValue_1).apply(null, +arguments)},nc=a._emscripten_bind_DracoUInt32Array_size_0=function(){return(nc=a._emscripten_bind_DracoUInt32Array_size_0=a.asm.emscripten_bind_DracoUInt32Array_size_0).apply(null,arguments)},oc=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(oc=a._emscripten_bind_DracoUInt32Array___destroy___0=a.asm.emscripten_bind_DracoUInt32Array___destroy___0).apply(null,arguments)},bb=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return(bb=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0= +a.asm.emscripten_bind_MetadataQuerier_MetadataQuerier_0).apply(null,arguments)},pc=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(pc=a._emscripten_bind_MetadataQuerier_HasEntry_2=a.asm.emscripten_bind_MetadataQuerier_HasEntry_2).apply(null,arguments)},qc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(qc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetIntEntry_2).apply(null,arguments)},rc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3= +function(){return(rc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=a.asm.emscripten_bind_MetadataQuerier_GetIntEntryArray_3).apply(null,arguments)},sc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return(sc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetDoubleEntry_2).apply(null,arguments)},tc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(tc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetStringEntry_2).apply(null, +arguments)},uc=a._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return(uc=a._emscripten_bind_MetadataQuerier_NumEntries_1=a.asm.emscripten_bind_MetadataQuerier_NumEntries_1).apply(null,arguments)},vc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(vc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=a.asm.emscripten_bind_MetadataQuerier_GetEntryName_2).apply(null,arguments)},wc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return(wc=a._emscripten_bind_MetadataQuerier___destroy___0= +a.asm.emscripten_bind_MetadataQuerier___destroy___0).apply(null,arguments)},cb=a._emscripten_bind_Decoder_Decoder_0=function(){return(cb=a._emscripten_bind_Decoder_Decoder_0=a.asm.emscripten_bind_Decoder_Decoder_0).apply(null,arguments)},xc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(xc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=a.asm.emscripten_bind_Decoder_DecodeArrayToPointCloud_3).apply(null,arguments)},yc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(yc= +a._emscripten_bind_Decoder_DecodeArrayToMesh_3=a.asm.emscripten_bind_Decoder_DecodeArrayToMesh_3).apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetAttributeId_2=function(){return(zc=a._emscripten_bind_Decoder_GetAttributeId_2=a.asm.emscripten_bind_Decoder_GetAttributeId_2).apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return(Ac=a._emscripten_bind_Decoder_GetAttributeIdByName_2=a.asm.emscripten_bind_Decoder_GetAttributeIdByName_2).apply(null,arguments)}, +Bc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(Bc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=a.asm.emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3).apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetAttribute_2=function(){return(Cc=a._emscripten_bind_Decoder_GetAttribute_2=a.asm.emscripten_bind_Decoder_GetAttribute_2).apply(null,arguments)},Dc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(Dc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2= +a.asm.emscripten_bind_Decoder_GetAttributeByUniqueId_2).apply(null,arguments)},Ec=a._emscripten_bind_Decoder_GetMetadata_1=function(){return(Ec=a._emscripten_bind_Decoder_GetMetadata_1=a.asm.emscripten_bind_Decoder_GetMetadata_1).apply(null,arguments)},Fc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(Fc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=a.asm.emscripten_bind_Decoder_GetAttributeMetadata_2).apply(null,arguments)},Gc=a._emscripten_bind_Decoder_GetFaceFromMesh_3= +function(){return(Gc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=a.asm.emscripten_bind_Decoder_GetFaceFromMesh_3).apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=function(){return(Hc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=a.asm.emscripten_bind_Decoder_GetTriangleStripsFromMesh_2).apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(Ic=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt16Array_3).apply(null, +arguments)},Jc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(Jc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt32Array_3).apply(null,arguments)},Kc=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(Kc=a._emscripten_bind_Decoder_GetAttributeFloat_3=a.asm.emscripten_bind_Decoder_GetAttributeFloat_3).apply(null,arguments)},Lc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(Lc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3= +a.asm.emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3).apply(null,arguments)},Mc=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(Mc=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeIntForAllPoints_3).apply(null,arguments)},Nc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(Nc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3).apply(null, +arguments)},Oc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(Oc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3).apply(null,arguments)},Pc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(Pc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3).apply(null,arguments)},Qc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3= +function(){return(Qc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3).apply(null,arguments)},Rc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(Rc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3).apply(null,arguments)},Sc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(Sc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3= +a.asm.emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3).apply(null,arguments)},Tc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=function(){return(Tc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=a.asm.emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5).apply(null,arguments)},Uc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Uc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=a.asm.emscripten_bind_Decoder_SkipAttributeTransform_1).apply(null, +arguments)},Vc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Vc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=a.asm.emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1).apply(null,arguments)},Wc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return(Wc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=a.asm.emscripten_bind_Decoder_DecodeBufferToPointCloud_2).apply(null,arguments)},Xc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2= +function(){return(Xc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=a.asm.emscripten_bind_Decoder_DecodeBufferToMesh_2).apply(null,arguments)},Yc=a._emscripten_bind_Decoder___destroy___0=function(){return(Yc=a._emscripten_bind_Decoder___destroy___0=a.asm.emscripten_bind_Decoder___destroy___0).apply(null,arguments)},Zc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(Zc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM).apply(null, +arguments)},$c=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return($c=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM).apply(null,arguments)},ad=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(ad=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM).apply(null, +arguments)},bd=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=function(){return(bd=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM).apply(null,arguments)},cd=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(cd=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID).apply(null, +arguments)},dd=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(dd=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION).apply(null,arguments)},ed=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(ed=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL).apply(null,arguments)},fd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR= +function(){return(fd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR).apply(null,arguments)},gd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(gd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD).apply(null,arguments)},hd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return(hd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC= +a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC).apply(null,arguments)},id=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(id=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE).apply(null,arguments)},jd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(jd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD).apply(null, +arguments)},kd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(kd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH).apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return(ld=a._emscripten_enum_draco_DataType_DT_INVALID=a.asm.emscripten_enum_draco_DataType_DT_INVALID).apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_INT8=function(){return(md=a._emscripten_enum_draco_DataType_DT_INT8= +a.asm.emscripten_enum_draco_DataType_DT_INT8).apply(null,arguments)},nd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return(nd=a._emscripten_enum_draco_DataType_DT_UINT8=a.asm.emscripten_enum_draco_DataType_DT_UINT8).apply(null,arguments)},od=a._emscripten_enum_draco_DataType_DT_INT16=function(){return(od=a._emscripten_enum_draco_DataType_DT_INT16=a.asm.emscripten_enum_draco_DataType_DT_INT16).apply(null,arguments)},pd=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return(pd=a._emscripten_enum_draco_DataType_DT_UINT16= +a.asm.emscripten_enum_draco_DataType_DT_UINT16).apply(null,arguments)},qd=a._emscripten_enum_draco_DataType_DT_INT32=function(){return(qd=a._emscripten_enum_draco_DataType_DT_INT32=a.asm.emscripten_enum_draco_DataType_DT_INT32).apply(null,arguments)},rd=a._emscripten_enum_draco_DataType_DT_UINT32=function(){return(rd=a._emscripten_enum_draco_DataType_DT_UINT32=a.asm.emscripten_enum_draco_DataType_DT_UINT32).apply(null,arguments)},sd=a._emscripten_enum_draco_DataType_DT_INT64=function(){return(sd= +a._emscripten_enum_draco_DataType_DT_INT64=a.asm.emscripten_enum_draco_DataType_DT_INT64).apply(null,arguments)},td=a._emscripten_enum_draco_DataType_DT_UINT64=function(){return(td=a._emscripten_enum_draco_DataType_DT_UINT64=a.asm.emscripten_enum_draco_DataType_DT_UINT64).apply(null,arguments)},ud=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(ud=a._emscripten_enum_draco_DataType_DT_FLOAT32=a.asm.emscripten_enum_draco_DataType_DT_FLOAT32).apply(null,arguments)},vd=a._emscripten_enum_draco_DataType_DT_FLOAT64= +function(){return(vd=a._emscripten_enum_draco_DataType_DT_FLOAT64=a.asm.emscripten_enum_draco_DataType_DT_FLOAT64).apply(null,arguments)},wd=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return(wd=a._emscripten_enum_draco_DataType_DT_BOOL=a.asm.emscripten_enum_draco_DataType_DT_BOOL).apply(null,arguments)},xd=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(xd=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=a.asm.emscripten_enum_draco_DataType_DT_TYPES_COUNT).apply(null, +arguments)},yd=a._emscripten_enum_draco_StatusCode_OK=function(){return(yd=a._emscripten_enum_draco_StatusCode_OK=a.asm.emscripten_enum_draco_StatusCode_OK).apply(null,arguments)},zd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(zd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=a.asm.emscripten_enum_draco_StatusCode_DRACO_ERROR).apply(null,arguments)},Ad=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(Ad=a._emscripten_enum_draco_StatusCode_IO_ERROR=a.asm.emscripten_enum_draco_StatusCode_IO_ERROR).apply(null, +arguments)},Bd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(Bd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=a.asm.emscripten_enum_draco_StatusCode_INVALID_PARAMETER).apply(null,arguments)},Cd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(Cd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION).apply(null,arguments)},Dd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(Dd= +a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNKNOWN_VERSION).apply(null,arguments)};a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)};a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)};a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)};a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)};a._setThrew= +function(){return(a._setThrew=a.asm.setThrew).apply(null,arguments)};a._free=function(){return(a._free=a.asm.free).apply(null,arguments)};var ib=a._malloc=function(){return(ib=a._malloc=a.asm.malloc).apply(null,arguments)};a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)};var ua;pa=function b(){ua||fa();ua||(pa=b)};a.run=fa;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=r.size?(q(0>>=0;switch(c.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var f=0;fb.byteLength)return a.INVALID_GEOMETRY_TYPE;switch(b[7]){case 0:return a.POINT_CLOUD;case 1:return a.TRIANGULAR_MESH;default:return a.INVALID_GEOMETRY_TYPE}};return n.ready}}(); +"object"===typeof exports&&"object"===typeof module?module.exports=DracoDecoderModule:"function"===typeof define&&define.amd?define([],function(){return DracoDecoderModule}):"object"===typeof exports&&(exports.DracoDecoderModule=DracoDecoderModule); diff --git a/javascript/draco_wasm_wrapper_gltf.js b/javascript/draco_wasm_wrapper_gltf.js index effa38b5..84cb3e60 100644 --- a/javascript/draco_wasm_wrapper_gltf.js +++ b/javascript/draco_wasm_wrapper_gltf.js @@ -1,124 +1,130 @@ -var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(e){var k=0;return function(){return ke?Math.max(p+e,0):Math.min(e,p);m=0>m?Math.max(p+m,0):Math.min(m,p);f=0>f?Math.max(p+f,0):Math.min(f,p);if(em;)--f in this?this[--e]=this[f]:delete this[--e];return this}},"es6","es3"); -var DracoDecoderModule=function(){var e="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(e=e||__filename);return function(k){function p(l){return a.locateFile?a.locateFile(l,O):O+l}function m(a,c){a||K("Assertion failed: "+c)}function f(a,c){if(a){var b=ka;var d=a+c;for(c=a;b[c]&&!(c>=d);)++c;if(16l?d+=String.fromCharCode(l):(l-=65536,d+=String.fromCharCode(55296|l>>10,56320|l&1023))}}else d+=String.fromCharCode(l)}b=d}}else b="";return b}function S(a,c){0>2]=a};this.get_type=function(){return I[this.ptr+ -x.TYPE_OFFSET>>2]};this.set_destructor=function(a){I[this.ptr+x.DESTRUCTOR_OFFSET>>2]=a};this.get_destructor=function(){return I[this.ptr+x.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(a){I[this.ptr+x.REFCOUNT_OFFSET>>2]=a};this.set_caught=function(a){P[this.ptr+x.CAUGHT_OFFSET>>0]=a?1:0};this.get_caught=function(){return 0!=P[this.ptr+x.CAUGHT_OFFSET>>0]};this.set_rethrown=function(a){P[this.ptr+x.RETHROWN_OFFSET>>0]=a?1:0};this.get_rethrown=function(){return 0!=P[this.ptr+x.RETHROWN_OFFSET>> -0]};this.init=function(a,b){this.set_type(a);this.set_destructor(b);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){I[this.ptr+x.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var a=I[this.ptr+x.REFCOUNT_OFFSET>>2];I[this.ptr+x.REFCOUNT_OFFSET>>2]=a-1;return 1===a}}function ia(){return 0=d&&(d=65536+((d&1023)<< -10)|a.charCodeAt(++b)&1023);127>=d?++c:c=2047>=d?c+2:65535>=d?c+3:c+4}c=Array(c+1);b=0;d=c.length;if(0=e){var f=a.charCodeAt(++l);e=65536+((e&1023)<<10)|f&1023}if(127>=e){if(b>=d)break;c[b++]=e}else{if(2047>=e){if(b+1>=d)break;c[b++]=192|e>>6}else{if(65535>=e){if(b+2>=d)break;c[b++]=224|e>>12}else{if(b+3>=d)break;c[b++]=240|e>>18;c[b++]=128|e>>12&63}c[b++]=128|e>>6&63}c[b++]=128|e&63}}c[b]=0}a=n.alloc(c,P);n.copy(c,P, -a)}return a}function ra(a){if("object"===typeof a){var c=n.alloc(a,P);n.copy(a,P,c);return c}return a}function T(){throw"cannot construct a VoidPtr, no constructor in IDL";}function M(){this.ptr=Ha();u(M)[this.ptr]=this}function J(){this.ptr=Ia();u(J)[this.ptr]=this}function R(){this.ptr=Ja();u(R)[this.ptr]=this}function r(){this.ptr=Ka();u(r)[this.ptr]=this}function w(){this.ptr=La();u(w)[this.ptr]=this}function z(){this.ptr=Ma();u(z)[this.ptr]=this}function A(){this.ptr=Na();u(A)[this.ptr]=this} -function y(){this.ptr=Oa();u(y)[this.ptr]=this}function N(){this.ptr=Pa();u(N)[this.ptr]=this}function v(){throw"cannot construct a Status, no constructor in IDL";}function B(){this.ptr=Qa();u(B)[this.ptr]=this}function C(){this.ptr=Ra();u(C)[this.ptr]=this}function D(){this.ptr=Sa();u(D)[this.ptr]=this}function E(){this.ptr=Ta();u(E)[this.ptr]=this}function F(){this.ptr=Ua();u(F)[this.ptr]=this}function G(){this.ptr=Va();u(G)[this.ptr]=this}function H(){this.ptr=Wa();u(H)[this.ptr]=this}function t(){this.ptr= -Xa();u(t)[this.ptr]=this}function g(){this.ptr=Ya();u(g)[this.ptr]=this}k=k||{};var a="undefined"!==typeof k?k:{},Ea,za;a.ready=new Promise(function(a,c){Ea=a;za=c});var Za=!1,$a=!1;a.onRuntimeInitialized=function(){Za=!0;if($a&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){$a=!0;if(Za&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(a){if("string"!==typeof a)return!1;a=a.split(".");return 2>a.length||3=a[1]?!0:0!=a[0]||10>>=0;var c=ka.length;if(2147483648=b;b*=2){var d=c*(1+.2/b);d= -Math.min(d,a+100663296);d=Math.min(2147483648,S(Math.max(16777216,a,d),65536));a:{try{fa.grow(d-la.byteLength+65535>>>16);h(fa.buffer);var e=1;break a}catch(Bd){}e=void 0}if(e)return!0}return!1},environ_get:function(a,c){var b=0;aa().forEach(function(d,e){var f=c+b;e=I[a+4*e>>2]=f;for(f=0;f>0]=d.charCodeAt(f);P[e>>0]=0;b+=d.length+1});return 0},environ_sizes_get:function(a,c){var b=aa();I[a>>2]=b.length;var d=0;b.forEach(function(a){d+=a.length+1});I[c>>2]=d;return 0},memory:fa}; -(function(){function e(c,b){a.asm=c.exports;pa=a.asm.__indirect_function_table;Y--;a.monitorRunDependencies&&a.monitorRunDependencies(Y);0==Y&&(null!==wa&&(clearInterval(wa),wa=null),ha&&(c=ha,ha=null,c()))}function c(a){e(a.instance)}function b(a){return yd().then(function(a){return WebAssembly.instantiate(a,d)}).then(a,function(a){ca("failed to asynchronously prepare wasm: "+a);K(a)})}var d={env:eb,wasi_snapshot_preview1:eb};Y++;a.monitorRunDependencies&&a.monitorRunDependencies(Y);if(a.instantiateWasm)try{return a.instantiateWasm(d, -e)}catch(Ad){return ca("Module.instantiateWasm callback failed with error: "+Ad),!1}(function(){if(da||"function"!==typeof WebAssembly.instantiateStreaming||U(Q,"data:application/octet-stream;base64,")||U(Q,"file://")||"function"!==typeof fetch)return b(c);fetch(Q,{credentials:"same-origin"}).then(function(a){return WebAssembly.instantiateStreaming(a,d).then(c,function(a){ca("wasm streaming compile failed: "+a);ca("falling back to ArrayBuffer instantiation");return b(c)})})})();return{}})();var cb= -a.___wasm_call_ctors=function(){return(cb=a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)};a.___em_js__array_bounds_check_error=function(){return(a.___em_js__array_bounds_check_error=a.asm.__em_js__array_bounds_check_error).apply(null,arguments)};var fb=a._emscripten_bind_VoidPtr___destroy___0=function(){return(fb=a._emscripten_bind_VoidPtr___destroy___0=a.asm.emscripten_bind_VoidPtr___destroy___0).apply(null,arguments)},Ha=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(Ha= -a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=a.asm.emscripten_bind_DecoderBuffer_DecoderBuffer_0).apply(null,arguments)},gb=a._emscripten_bind_DecoderBuffer_Init_2=function(){return(gb=a._emscripten_bind_DecoderBuffer_Init_2=a.asm.emscripten_bind_DecoderBuffer_Init_2).apply(null,arguments)},hb=a._emscripten_bind_DecoderBuffer___destroy___0=function(){return(hb=a._emscripten_bind_DecoderBuffer___destroy___0=a.asm.emscripten_bind_DecoderBuffer___destroy___0).apply(null,arguments)},Ia=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0= -function(){return(Ia=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=a.asm.emscripten_bind_AttributeTransformData_AttributeTransformData_0).apply(null,arguments)},ib=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(ib=a._emscripten_bind_AttributeTransformData_transform_type_0=a.asm.emscripten_bind_AttributeTransformData_transform_type_0).apply(null,arguments)},jb=a._emscripten_bind_AttributeTransformData___destroy___0=function(){return(jb=a._emscripten_bind_AttributeTransformData___destroy___0= -a.asm.emscripten_bind_AttributeTransformData___destroy___0).apply(null,arguments)},Ja=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Ja=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0).apply(null,arguments)},kb=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(kb=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.emscripten_bind_GeometryAttribute___destroy___0).apply(null,arguments)}, -Ka=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Ka=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.emscripten_bind_PointAttribute_PointAttribute_0).apply(null,arguments)},lb=a._emscripten_bind_PointAttribute_size_0=function(){return(lb=a._emscripten_bind_PointAttribute_size_0=a.asm.emscripten_bind_PointAttribute_size_0).apply(null,arguments)},mb=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(mb=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0= -a.asm.emscripten_bind_PointAttribute_GetAttributeTransformData_0).apply(null,arguments)},nb=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return(nb=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.emscripten_bind_PointAttribute_attribute_type_0).apply(null,arguments)},ob=a._emscripten_bind_PointAttribute_data_type_0=function(){return(ob=a._emscripten_bind_PointAttribute_data_type_0=a.asm.emscripten_bind_PointAttribute_data_type_0).apply(null,arguments)},pb=a._emscripten_bind_PointAttribute_num_components_0= -function(){return(pb=a._emscripten_bind_PointAttribute_num_components_0=a.asm.emscripten_bind_PointAttribute_num_components_0).apply(null,arguments)},qb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(qb=a._emscripten_bind_PointAttribute_normalized_0=a.asm.emscripten_bind_PointAttribute_normalized_0).apply(null,arguments)},rb=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(rb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.emscripten_bind_PointAttribute_byte_stride_0).apply(null, -arguments)},sb=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(sb=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.emscripten_bind_PointAttribute_byte_offset_0).apply(null,arguments)},tb=a._emscripten_bind_PointAttribute_unique_id_0=function(){return(tb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.emscripten_bind_PointAttribute_unique_id_0).apply(null,arguments)},ub=a._emscripten_bind_PointAttribute___destroy___0=function(){return(ub=a._emscripten_bind_PointAttribute___destroy___0= -a.asm.emscripten_bind_PointAttribute___destroy___0).apply(null,arguments)},La=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(La=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=a.asm.emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0).apply(null,arguments)},vb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(vb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1= -a.asm.emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1).apply(null,arguments)},wb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return(wb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=a.asm.emscripten_bind_AttributeQuantizationTransform_quantization_bits_0).apply(null,arguments)},xb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(xb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1= -a.asm.emscripten_bind_AttributeQuantizationTransform_min_value_1).apply(null,arguments)},yb=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(yb=a._emscripten_bind_AttributeQuantizationTransform_range_0=a.asm.emscripten_bind_AttributeQuantizationTransform_range_0).apply(null,arguments)},zb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return(zb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=a.asm.emscripten_bind_AttributeQuantizationTransform___destroy___0).apply(null, -arguments)},Ma=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Ma=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=a.asm.emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0).apply(null,arguments)},Ab=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return(Ab=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=a.asm.emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1).apply(null, -arguments)},Bb=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(Bb=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=a.asm.emscripten_bind_AttributeOctahedronTransform_quantization_bits_0).apply(null,arguments)},Cb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Cb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=a.asm.emscripten_bind_AttributeOctahedronTransform___destroy___0).apply(null,arguments)}, -Na=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Na=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.emscripten_bind_PointCloud_PointCloud_0).apply(null,arguments)},Db=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(Db=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.emscripten_bind_PointCloud_num_attributes_0).apply(null,arguments)},Eb=a._emscripten_bind_PointCloud_num_points_0=function(){return(Eb=a._emscripten_bind_PointCloud_num_points_0=a.asm.emscripten_bind_PointCloud_num_points_0).apply(null, -arguments)},Fb=a._emscripten_bind_PointCloud___destroy___0=function(){return(Fb=a._emscripten_bind_PointCloud___destroy___0=a.asm.emscripten_bind_PointCloud___destroy___0).apply(null,arguments)},Oa=a._emscripten_bind_Mesh_Mesh_0=function(){return(Oa=a._emscripten_bind_Mesh_Mesh_0=a.asm.emscripten_bind_Mesh_Mesh_0).apply(null,arguments)},Gb=a._emscripten_bind_Mesh_num_faces_0=function(){return(Gb=a._emscripten_bind_Mesh_num_faces_0=a.asm.emscripten_bind_Mesh_num_faces_0).apply(null,arguments)},Hb= -a._emscripten_bind_Mesh_num_attributes_0=function(){return(Hb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.emscripten_bind_Mesh_num_attributes_0).apply(null,arguments)},Ib=a._emscripten_bind_Mesh_num_points_0=function(){return(Ib=a._emscripten_bind_Mesh_num_points_0=a.asm.emscripten_bind_Mesh_num_points_0).apply(null,arguments)},Jb=a._emscripten_bind_Mesh___destroy___0=function(){return(Jb=a._emscripten_bind_Mesh___destroy___0=a.asm.emscripten_bind_Mesh___destroy___0).apply(null,arguments)},Pa= -a._emscripten_bind_Metadata_Metadata_0=function(){return(Pa=a._emscripten_bind_Metadata_Metadata_0=a.asm.emscripten_bind_Metadata_Metadata_0).apply(null,arguments)},Kb=a._emscripten_bind_Metadata___destroy___0=function(){return(Kb=a._emscripten_bind_Metadata___destroy___0=a.asm.emscripten_bind_Metadata___destroy___0).apply(null,arguments)},Lb=a._emscripten_bind_Status_code_0=function(){return(Lb=a._emscripten_bind_Status_code_0=a.asm.emscripten_bind_Status_code_0).apply(null,arguments)},Mb=a._emscripten_bind_Status_ok_0= -function(){return(Mb=a._emscripten_bind_Status_ok_0=a.asm.emscripten_bind_Status_ok_0).apply(null,arguments)},Nb=a._emscripten_bind_Status_error_msg_0=function(){return(Nb=a._emscripten_bind_Status_error_msg_0=a.asm.emscripten_bind_Status_error_msg_0).apply(null,arguments)},Ob=a._emscripten_bind_Status___destroy___0=function(){return(Ob=a._emscripten_bind_Status___destroy___0=a.asm.emscripten_bind_Status___destroy___0).apply(null,arguments)},Qa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0= -function(){return(Qa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=a.asm.emscripten_bind_DracoFloat32Array_DracoFloat32Array_0).apply(null,arguments)},Pb=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(Pb=a._emscripten_bind_DracoFloat32Array_GetValue_1=a.asm.emscripten_bind_DracoFloat32Array_GetValue_1).apply(null,arguments)},Qb=a._emscripten_bind_DracoFloat32Array_size_0=function(){return(Qb=a._emscripten_bind_DracoFloat32Array_size_0=a.asm.emscripten_bind_DracoFloat32Array_size_0).apply(null, -arguments)},Rb=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(Rb=a._emscripten_bind_DracoFloat32Array___destroy___0=a.asm.emscripten_bind_DracoFloat32Array___destroy___0).apply(null,arguments)},Ra=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Ra=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0).apply(null,arguments)},Sb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(Sb=a._emscripten_bind_DracoInt8Array_GetValue_1= -a.asm.emscripten_bind_DracoInt8Array_GetValue_1).apply(null,arguments)},Tb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(Tb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.emscripten_bind_DracoInt8Array_size_0).apply(null,arguments)},Ub=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return(Ub=a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.emscripten_bind_DracoInt8Array___destroy___0).apply(null,arguments)},Sa=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(Sa= -a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=a.asm.emscripten_bind_DracoUInt8Array_DracoUInt8Array_0).apply(null,arguments)},Vb=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(Vb=a._emscripten_bind_DracoUInt8Array_GetValue_1=a.asm.emscripten_bind_DracoUInt8Array_GetValue_1).apply(null,arguments)},Wb=a._emscripten_bind_DracoUInt8Array_size_0=function(){return(Wb=a._emscripten_bind_DracoUInt8Array_size_0=a.asm.emscripten_bind_DracoUInt8Array_size_0).apply(null,arguments)},Xb= -a._emscripten_bind_DracoUInt8Array___destroy___0=function(){return(Xb=a._emscripten_bind_DracoUInt8Array___destroy___0=a.asm.emscripten_bind_DracoUInt8Array___destroy___0).apply(null,arguments)},Ta=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(Ta=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=a.asm.emscripten_bind_DracoInt16Array_DracoInt16Array_0).apply(null,arguments)},Yb=a._emscripten_bind_DracoInt16Array_GetValue_1=function(){return(Yb=a._emscripten_bind_DracoInt16Array_GetValue_1= -a.asm.emscripten_bind_DracoInt16Array_GetValue_1).apply(null,arguments)},Zb=a._emscripten_bind_DracoInt16Array_size_0=function(){return(Zb=a._emscripten_bind_DracoInt16Array_size_0=a.asm.emscripten_bind_DracoInt16Array_size_0).apply(null,arguments)},$b=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return($b=a._emscripten_bind_DracoInt16Array___destroy___0=a.asm.emscripten_bind_DracoInt16Array___destroy___0).apply(null,arguments)},Ua=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0= -function(){return(Ua=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=a.asm.emscripten_bind_DracoUInt16Array_DracoUInt16Array_0).apply(null,arguments)},ac=a._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return(ac=a._emscripten_bind_DracoUInt16Array_GetValue_1=a.asm.emscripten_bind_DracoUInt16Array_GetValue_1).apply(null,arguments)},bc=a._emscripten_bind_DracoUInt16Array_size_0=function(){return(bc=a._emscripten_bind_DracoUInt16Array_size_0=a.asm.emscripten_bind_DracoUInt16Array_size_0).apply(null, -arguments)},cc=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(cc=a._emscripten_bind_DracoUInt16Array___destroy___0=a.asm.emscripten_bind_DracoUInt16Array___destroy___0).apply(null,arguments)},Va=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return(Va=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=a.asm.emscripten_bind_DracoInt32Array_DracoInt32Array_0).apply(null,arguments)},dc=a._emscripten_bind_DracoInt32Array_GetValue_1=function(){return(dc=a._emscripten_bind_DracoInt32Array_GetValue_1= -a.asm.emscripten_bind_DracoInt32Array_GetValue_1).apply(null,arguments)},ec=a._emscripten_bind_DracoInt32Array_size_0=function(){return(ec=a._emscripten_bind_DracoInt32Array_size_0=a.asm.emscripten_bind_DracoInt32Array_size_0).apply(null,arguments)},fc=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return(fc=a._emscripten_bind_DracoInt32Array___destroy___0=a.asm.emscripten_bind_DracoInt32Array___destroy___0).apply(null,arguments)},Wa=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0= -function(){return(Wa=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=a.asm.emscripten_bind_DracoUInt32Array_DracoUInt32Array_0).apply(null,arguments)},gc=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return(gc=a._emscripten_bind_DracoUInt32Array_GetValue_1=a.asm.emscripten_bind_DracoUInt32Array_GetValue_1).apply(null,arguments)},hc=a._emscripten_bind_DracoUInt32Array_size_0=function(){return(hc=a._emscripten_bind_DracoUInt32Array_size_0=a.asm.emscripten_bind_DracoUInt32Array_size_0).apply(null, -arguments)},ic=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(ic=a._emscripten_bind_DracoUInt32Array___destroy___0=a.asm.emscripten_bind_DracoUInt32Array___destroy___0).apply(null,arguments)},Xa=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return(Xa=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=a.asm.emscripten_bind_MetadataQuerier_MetadataQuerier_0).apply(null,arguments)},jc=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(jc=a._emscripten_bind_MetadataQuerier_HasEntry_2= -a.asm.emscripten_bind_MetadataQuerier_HasEntry_2).apply(null,arguments)},kc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(kc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetIntEntry_2).apply(null,arguments)},lc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=function(){return(lc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=a.asm.emscripten_bind_MetadataQuerier_GetIntEntryArray_3).apply(null,arguments)},mc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2= -function(){return(mc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetDoubleEntry_2).apply(null,arguments)},nc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(nc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetStringEntry_2).apply(null,arguments)},oc=a._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return(oc=a._emscripten_bind_MetadataQuerier_NumEntries_1=a.asm.emscripten_bind_MetadataQuerier_NumEntries_1).apply(null, -arguments)},pc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(pc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=a.asm.emscripten_bind_MetadataQuerier_GetEntryName_2).apply(null,arguments)},qc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return(qc=a._emscripten_bind_MetadataQuerier___destroy___0=a.asm.emscripten_bind_MetadataQuerier___destroy___0).apply(null,arguments)},Ya=a._emscripten_bind_Decoder_Decoder_0=function(){return(Ya=a._emscripten_bind_Decoder_Decoder_0= -a.asm.emscripten_bind_Decoder_Decoder_0).apply(null,arguments)},rc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(rc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=a.asm.emscripten_bind_Decoder_DecodeArrayToPointCloud_3).apply(null,arguments)},sc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(sc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=a.asm.emscripten_bind_Decoder_DecodeArrayToMesh_3).apply(null,arguments)},tc=a._emscripten_bind_Decoder_GetAttributeId_2= -function(){return(tc=a._emscripten_bind_Decoder_GetAttributeId_2=a.asm.emscripten_bind_Decoder_GetAttributeId_2).apply(null,arguments)},uc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return(uc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=a.asm.emscripten_bind_Decoder_GetAttributeIdByName_2).apply(null,arguments)},vc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(vc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=a.asm.emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3).apply(null, -arguments)},wc=a._emscripten_bind_Decoder_GetAttribute_2=function(){return(wc=a._emscripten_bind_Decoder_GetAttribute_2=a.asm.emscripten_bind_Decoder_GetAttribute_2).apply(null,arguments)},xc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(xc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=a.asm.emscripten_bind_Decoder_GetAttributeByUniqueId_2).apply(null,arguments)},yc=a._emscripten_bind_Decoder_GetMetadata_1=function(){return(yc=a._emscripten_bind_Decoder_GetMetadata_1= -a.asm.emscripten_bind_Decoder_GetMetadata_1).apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(zc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=a.asm.emscripten_bind_Decoder_GetAttributeMetadata_2).apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return(Ac=a._emscripten_bind_Decoder_GetFaceFromMesh_3=a.asm.emscripten_bind_Decoder_GetFaceFromMesh_3).apply(null,arguments)},Bc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2= -function(){return(Bc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=a.asm.emscripten_bind_Decoder_GetTriangleStripsFromMesh_2).apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(Cc=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt16Array_3).apply(null,arguments)},Dc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(Dc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt32Array_3).apply(null, -arguments)},Ec=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(Ec=a._emscripten_bind_Decoder_GetAttributeFloat_3=a.asm.emscripten_bind_Decoder_GetAttributeFloat_3).apply(null,arguments)},Fc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(Fc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3).apply(null,arguments)},Gc=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(Gc= -a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeIntForAllPoints_3).apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(Hc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3).apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(Ic=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3= -a.asm.emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3).apply(null,arguments)},Jc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(Jc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3).apply(null,arguments)},Kc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=function(){return(Kc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3).apply(null, -arguments)},Lc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(Lc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3).apply(null,arguments)},Mc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(Mc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3).apply(null,arguments)},Nc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5= -function(){return(Nc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=a.asm.emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5).apply(null,arguments)},Oc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Oc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=a.asm.emscripten_bind_Decoder_SkipAttributeTransform_1).apply(null,arguments)},Pc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Pc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1= -a.asm.emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1).apply(null,arguments)},Qc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return(Qc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=a.asm.emscripten_bind_Decoder_DecodeBufferToPointCloud_2).apply(null,arguments)},Rc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return(Rc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=a.asm.emscripten_bind_Decoder_DecodeBufferToMesh_2).apply(null,arguments)},Sc= -a._emscripten_bind_Decoder___destroy___0=function(){return(Sc=a._emscripten_bind_Decoder___destroy___0=a.asm.emscripten_bind_Decoder___destroy___0).apply(null,arguments)},Tc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(Tc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM).apply(null,arguments)},Uc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM= -function(){return(Uc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM).apply(null,arguments)},Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM).apply(null,arguments)},Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM= -function(){return(Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM).apply(null,arguments)},Xc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(Xc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID).apply(null,arguments)},Yc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(Yc= -a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION).apply(null,arguments)},Zc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(Zc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL).apply(null,arguments)},$c=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return($c=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR).apply(null, -arguments)},ad=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(ad=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD).apply(null,arguments)},bd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return(bd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC).apply(null,arguments)},cd=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE= -function(){return(cd=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE).apply(null,arguments)},dd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(dd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD).apply(null,arguments)},ed=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(ed=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH= -a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH).apply(null,arguments)},fd=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return(fd=a._emscripten_enum_draco_DataType_DT_INVALID=a.asm.emscripten_enum_draco_DataType_DT_INVALID).apply(null,arguments)},gd=a._emscripten_enum_draco_DataType_DT_INT8=function(){return(gd=a._emscripten_enum_draco_DataType_DT_INT8=a.asm.emscripten_enum_draco_DataType_DT_INT8).apply(null,arguments)},hd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return(hd= -a._emscripten_enum_draco_DataType_DT_UINT8=a.asm.emscripten_enum_draco_DataType_DT_UINT8).apply(null,arguments)},id=a._emscripten_enum_draco_DataType_DT_INT16=function(){return(id=a._emscripten_enum_draco_DataType_DT_INT16=a.asm.emscripten_enum_draco_DataType_DT_INT16).apply(null,arguments)},jd=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return(jd=a._emscripten_enum_draco_DataType_DT_UINT16=a.asm.emscripten_enum_draco_DataType_DT_UINT16).apply(null,arguments)},kd=a._emscripten_enum_draco_DataType_DT_INT32= -function(){return(kd=a._emscripten_enum_draco_DataType_DT_INT32=a.asm.emscripten_enum_draco_DataType_DT_INT32).apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_UINT32=function(){return(ld=a._emscripten_enum_draco_DataType_DT_UINT32=a.asm.emscripten_enum_draco_DataType_DT_UINT32).apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_INT64=function(){return(md=a._emscripten_enum_draco_DataType_DT_INT64=a.asm.emscripten_enum_draco_DataType_DT_INT64).apply(null,arguments)},nd=a._emscripten_enum_draco_DataType_DT_UINT64= -function(){return(nd=a._emscripten_enum_draco_DataType_DT_UINT64=a.asm.emscripten_enum_draco_DataType_DT_UINT64).apply(null,arguments)},od=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(od=a._emscripten_enum_draco_DataType_DT_FLOAT32=a.asm.emscripten_enum_draco_DataType_DT_FLOAT32).apply(null,arguments)},pd=a._emscripten_enum_draco_DataType_DT_FLOAT64=function(){return(pd=a._emscripten_enum_draco_DataType_DT_FLOAT64=a.asm.emscripten_enum_draco_DataType_DT_FLOAT64).apply(null,arguments)}, -qd=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return(qd=a._emscripten_enum_draco_DataType_DT_BOOL=a.asm.emscripten_enum_draco_DataType_DT_BOOL).apply(null,arguments)},rd=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(rd=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=a.asm.emscripten_enum_draco_DataType_DT_TYPES_COUNT).apply(null,arguments)},sd=a._emscripten_enum_draco_StatusCode_OK=function(){return(sd=a._emscripten_enum_draco_StatusCode_OK=a.asm.emscripten_enum_draco_StatusCode_OK).apply(null, -arguments)},td=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(td=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=a.asm.emscripten_enum_draco_StatusCode_DRACO_ERROR).apply(null,arguments)},ud=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(ud=a._emscripten_enum_draco_StatusCode_IO_ERROR=a.asm.emscripten_enum_draco_StatusCode_IO_ERROR).apply(null,arguments)},vd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(vd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER= -a.asm.emscripten_enum_draco_StatusCode_INVALID_PARAMETER).apply(null,arguments)},wd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(wd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION).apply(null,arguments)},xd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(xd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNKNOWN_VERSION).apply(null,arguments)}; -a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)};a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)};a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)};a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)};a._setThrew=function(){return(a._setThrew=a.asm.setThrew).apply(null,arguments)};a._free=function(){return(a._free=a.asm.free).apply(null, -arguments)};var db=a._malloc=function(){return(db=a._malloc=a.asm.malloc).apply(null,arguments)},oa;ha=function c(){oa||ba();oa||(ha=c)};a.run=ba;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=n.size?(m(0>>=0;switch(b.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var c=0;cc.byteLength)return a.INVALID_GEOMETRY_TYPE;switch(c[7]){case 0:return a.POINT_CLOUD;case 1:return a.TRIANGULAR_MESH;default:return a.INVALID_GEOMETRY_TYPE}};return k.ready}}(); -"object"===typeof exports&&"object"===typeof module?module.exports=DracoDecoderModule:"function"===typeof define&&define.amd?define([],function(){return DracoDecoderModule}):"object"===typeof exports&&(exports.DracoDecoderModule=DracoDecoderModule); +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(l){var n=0;return function(){return nm?Math.max(C+m,0):Math.min(m,C);q=0>q?Math.max(C+q,0):Math.min(q,C);h=0>h?Math.max(C+h,0):Math.min(h,C);if(mq;)--h in this?this[--m]=this[h]:delete this[--m];return this}},"es6","es3"); +$jscomp.typedArrayCopyWithin=function(l){return l?l:Array.prototype.copyWithin};$jscomp.polyfill("Int8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); +$jscomp.polyfill("Uint16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float64Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); +var DracoDecoderModule=function(){var l="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(l=l||__filename);return function(n){function m(e){return a.locateFile?a.locateFile(e,V):V+e}function q(e,b){e||p("Assertion failed: "+b)}function h(e,b){if(e){var c=oa;var d=e+b;for(b=e;c[b]&&!(b>=d);)++b;if(16g?d+=String.fromCharCode(g):(g-=65536,d+=String.fromCharCode(55296|g>>10,56320|g&1023))}}else d+=String.fromCharCode(g)}c=d}}else c="";return c}function C(e,b){0>2]=b};this.get_type=function(){return W[this.ptr+ +D.TYPE_OFFSET>>2]};this.set_destructor=function(b){W[this.ptr+D.DESTRUCTOR_OFFSET>>2]=b};this.get_destructor=function(){return W[this.ptr+D.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(b){W[this.ptr+D.REFCOUNT_OFFSET>>2]=b};this.set_caught=function(b){Z[this.ptr+D.CAUGHT_OFFSET>>0]=b?1:0};this.get_caught=function(){return 0!=Z[this.ptr+D.CAUGHT_OFFSET>>0]};this.set_rethrown=function(b){Z[this.ptr+D.RETHROWN_OFFSET>>0]=b?1:0};this.get_rethrown=function(){return 0!=Z[this.ptr+D.RETHROWN_OFFSET>> +0]};this.init=function(b,c){this.set_type(b);this.set_destructor(c);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){W[this.ptr+D.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var b=W[this.ptr+D.REFCOUNT_OFFSET>>2];W[this.ptr+D.REFCOUNT_OFFSET>>2]=b-1;return 1===b}}function Q(){return 0=d&&(d=65536+((d&1023)<<10)|e.charCodeAt(++c)&1023);127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}b=Array(b+1);c=0;d=b.length;if(0=v){var ia=e.charCodeAt(++g);v=65536+((v&1023)<<10)|ia&1023}if(127>=v){if(c>=d)break;b[c++]=v}else{if(2047>=v){if(c+1>=d)break;b[c++]=192|v>>6}else{if(65535>=v){if(c+2>=d)break;b[c++]= +224|v>>12}else{if(c+3>=d)break;b[c++]=240|v>>18;b[c++]=128|v>>12&63}b[c++]=128|v>>6&63}b[c++]=128|v&63}}b[c]=0}e=r.alloc(b,Z);r.copy(b,Z,e);return e}return e}function va(e){if("object"===typeof e){var b=r.alloc(e,Z);r.copy(e,Z,b);return b}return e}function aa(){throw"cannot construct a VoidPtr, no constructor in IDL";}function S(){this.ptr=Ja();z(S)[this.ptr]=this}function P(){this.ptr=Ka();z(P)[this.ptr]=this}function Y(){this.ptr=La();z(Y)[this.ptr]=this}function w(){this.ptr=Ma();z(w)[this.ptr]= +this}function B(){this.ptr=Na();z(B)[this.ptr]=this}function F(){this.ptr=Oa();z(F)[this.ptr]=this}function G(){this.ptr=Pa();z(G)[this.ptr]=this}function E(){this.ptr=Qa();z(E)[this.ptr]=this}function T(){this.ptr=Ra();z(T)[this.ptr]=this}function A(){throw"cannot construct a Status, no constructor in IDL";}function H(){this.ptr=Sa();z(H)[this.ptr]=this}function I(){this.ptr=Ta();z(I)[this.ptr]=this}function J(){this.ptr=Ua();z(J)[this.ptr]=this}function K(){this.ptr=Va();z(K)[this.ptr]=this}function L(){this.ptr= +Wa();z(L)[this.ptr]=this}function M(){this.ptr=Xa();z(M)[this.ptr]=this}function N(){this.ptr=Ya();z(N)[this.ptr]=this}function x(){this.ptr=Za();z(x)[this.ptr]=this}function k(){this.ptr=$a();z(k)[this.ptr]=this}n=n||{};var a="undefined"!==typeof n?n:{},Ga,ta;a.ready=new Promise(function(e,b){Ga=e;ta=b});var ab=!1,bb=!1;a.onRuntimeInitialized=function(){ab=!0;if(bb&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){bb=!0;if(ab&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)}; +a.isVersionSupported=function(e){if("string"!==typeof e)return!1;e=e.split(".");return 2>e.length||3=e[1]?!0:0!=e[0]||10>>=0;var b=oa.length;if(2147483648=c;c*=2){var d=b*(1+.2/c); +d=Math.min(d,e+100663296);d=Math.min(2147483648,C(Math.max(16777216,e,d),65536));a:{try{ma.grow(d-pa.byteLength+65535>>>16);f(ma.buffer);var g=1;break a}catch(v){}g=void 0}if(g)return!0}return!1},memory:ma};(function(){function e(g,v){a.asm=g.exports;ua=a.asm.__indirect_function_table;ha--;a.monitorRunDependencies&&a.monitorRunDependencies(ha);0==ha&&(null!==Aa&&(clearInterval(Aa),Aa=null),na&&(g=na,na=null,g()))}function b(g){e(g.instance)}function c(g){return O().then(function(v){return WebAssembly.instantiate(v, +d)}).then(g,function(v){ja("failed to asynchronously prepare wasm: "+v);p(v)})}var d={env:gb,wasi_snapshot_preview1:gb};ha++;a.monitorRunDependencies&&a.monitorRunDependencies(ha);if(a.instantiateWasm)try{return a.instantiateWasm(d,e)}catch(g){return ja("Module.instantiateWasm callback failed with error: "+g),!1}(function(){return ka||"function"!==typeof WebAssembly.instantiateStreaming||t(X,"data:application/octet-stream;base64,")||t(X,"file://")||"function"!==typeof fetch?c(b):fetch(X,{credentials:"same-origin"}).then(function(g){return WebAssembly.instantiateStreaming(g, +d).then(b,function(v){ja("wasm streaming compile failed: "+v);ja("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(ta);return{}})();var eb=a.___wasm_call_ctors=function(){return(eb=a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)};a.___em_js__array_bounds_check_error=function(){return(a.___em_js__array_bounds_check_error=a.asm.__em_js__array_bounds_check_error).apply(null,arguments)};var hb=a._emscripten_bind_VoidPtr___destroy___0=function(){return(hb=a._emscripten_bind_VoidPtr___destroy___0= +a.asm.emscripten_bind_VoidPtr___destroy___0).apply(null,arguments)},Ja=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(Ja=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=a.asm.emscripten_bind_DecoderBuffer_DecoderBuffer_0).apply(null,arguments)},ib=a._emscripten_bind_DecoderBuffer_Init_2=function(){return(ib=a._emscripten_bind_DecoderBuffer_Init_2=a.asm.emscripten_bind_DecoderBuffer_Init_2).apply(null,arguments)},jb=a._emscripten_bind_DecoderBuffer___destroy___0=function(){return(jb= +a._emscripten_bind_DecoderBuffer___destroy___0=a.asm.emscripten_bind_DecoderBuffer___destroy___0).apply(null,arguments)},Ka=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=function(){return(Ka=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=a.asm.emscripten_bind_AttributeTransformData_AttributeTransformData_0).apply(null,arguments)},kb=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(kb=a._emscripten_bind_AttributeTransformData_transform_type_0= +a.asm.emscripten_bind_AttributeTransformData_transform_type_0).apply(null,arguments)},lb=a._emscripten_bind_AttributeTransformData___destroy___0=function(){return(lb=a._emscripten_bind_AttributeTransformData___destroy___0=a.asm.emscripten_bind_AttributeTransformData___destroy___0).apply(null,arguments)},La=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(La=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0).apply(null, +arguments)},mb=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(mb=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.emscripten_bind_GeometryAttribute___destroy___0).apply(null,arguments)},Ma=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Ma=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.emscripten_bind_PointAttribute_PointAttribute_0).apply(null,arguments)},nb=a._emscripten_bind_PointAttribute_size_0=function(){return(nb=a._emscripten_bind_PointAttribute_size_0= +a.asm.emscripten_bind_PointAttribute_size_0).apply(null,arguments)},ob=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(ob=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=a.asm.emscripten_bind_PointAttribute_GetAttributeTransformData_0).apply(null,arguments)},pb=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return(pb=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.emscripten_bind_PointAttribute_attribute_type_0).apply(null,arguments)}, +qb=a._emscripten_bind_PointAttribute_data_type_0=function(){return(qb=a._emscripten_bind_PointAttribute_data_type_0=a.asm.emscripten_bind_PointAttribute_data_type_0).apply(null,arguments)},rb=a._emscripten_bind_PointAttribute_num_components_0=function(){return(rb=a._emscripten_bind_PointAttribute_num_components_0=a.asm.emscripten_bind_PointAttribute_num_components_0).apply(null,arguments)},sb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(sb=a._emscripten_bind_PointAttribute_normalized_0= +a.asm.emscripten_bind_PointAttribute_normalized_0).apply(null,arguments)},tb=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(tb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.emscripten_bind_PointAttribute_byte_stride_0).apply(null,arguments)},ub=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(ub=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.emscripten_bind_PointAttribute_byte_offset_0).apply(null,arguments)},vb=a._emscripten_bind_PointAttribute_unique_id_0= +function(){return(vb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.emscripten_bind_PointAttribute_unique_id_0).apply(null,arguments)},wb=a._emscripten_bind_PointAttribute___destroy___0=function(){return(wb=a._emscripten_bind_PointAttribute___destroy___0=a.asm.emscripten_bind_PointAttribute___destroy___0).apply(null,arguments)},Na=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(Na=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0= +a.asm.emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0).apply(null,arguments)},xb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(xb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=a.asm.emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1).apply(null,arguments)},yb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return(yb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0= +a.asm.emscripten_bind_AttributeQuantizationTransform_quantization_bits_0).apply(null,arguments)},zb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(zb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=a.asm.emscripten_bind_AttributeQuantizationTransform_min_value_1).apply(null,arguments)},Ab=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(Ab=a._emscripten_bind_AttributeQuantizationTransform_range_0=a.asm.emscripten_bind_AttributeQuantizationTransform_range_0).apply(null, +arguments)},Bb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return(Bb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=a.asm.emscripten_bind_AttributeQuantizationTransform___destroy___0).apply(null,arguments)},Oa=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Oa=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=a.asm.emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0).apply(null, +arguments)},Cb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return(Cb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=a.asm.emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1).apply(null,arguments)},Db=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(Db=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=a.asm.emscripten_bind_AttributeOctahedronTransform_quantization_bits_0).apply(null, +arguments)},Eb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Eb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=a.asm.emscripten_bind_AttributeOctahedronTransform___destroy___0).apply(null,arguments)},Pa=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Pa=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.emscripten_bind_PointCloud_PointCloud_0).apply(null,arguments)},Fb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(Fb=a._emscripten_bind_PointCloud_num_attributes_0= +a.asm.emscripten_bind_PointCloud_num_attributes_0).apply(null,arguments)},Gb=a._emscripten_bind_PointCloud_num_points_0=function(){return(Gb=a._emscripten_bind_PointCloud_num_points_0=a.asm.emscripten_bind_PointCloud_num_points_0).apply(null,arguments)},Hb=a._emscripten_bind_PointCloud___destroy___0=function(){return(Hb=a._emscripten_bind_PointCloud___destroy___0=a.asm.emscripten_bind_PointCloud___destroy___0).apply(null,arguments)},Qa=a._emscripten_bind_Mesh_Mesh_0=function(){return(Qa=a._emscripten_bind_Mesh_Mesh_0= +a.asm.emscripten_bind_Mesh_Mesh_0).apply(null,arguments)},Ib=a._emscripten_bind_Mesh_num_faces_0=function(){return(Ib=a._emscripten_bind_Mesh_num_faces_0=a.asm.emscripten_bind_Mesh_num_faces_0).apply(null,arguments)},Jb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(Jb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.emscripten_bind_Mesh_num_attributes_0).apply(null,arguments)},Kb=a._emscripten_bind_Mesh_num_points_0=function(){return(Kb=a._emscripten_bind_Mesh_num_points_0=a.asm.emscripten_bind_Mesh_num_points_0).apply(null, +arguments)},Lb=a._emscripten_bind_Mesh___destroy___0=function(){return(Lb=a._emscripten_bind_Mesh___destroy___0=a.asm.emscripten_bind_Mesh___destroy___0).apply(null,arguments)},Ra=a._emscripten_bind_Metadata_Metadata_0=function(){return(Ra=a._emscripten_bind_Metadata_Metadata_0=a.asm.emscripten_bind_Metadata_Metadata_0).apply(null,arguments)},Mb=a._emscripten_bind_Metadata___destroy___0=function(){return(Mb=a._emscripten_bind_Metadata___destroy___0=a.asm.emscripten_bind_Metadata___destroy___0).apply(null, +arguments)},Nb=a._emscripten_bind_Status_code_0=function(){return(Nb=a._emscripten_bind_Status_code_0=a.asm.emscripten_bind_Status_code_0).apply(null,arguments)},Ob=a._emscripten_bind_Status_ok_0=function(){return(Ob=a._emscripten_bind_Status_ok_0=a.asm.emscripten_bind_Status_ok_0).apply(null,arguments)},Pb=a._emscripten_bind_Status_error_msg_0=function(){return(Pb=a._emscripten_bind_Status_error_msg_0=a.asm.emscripten_bind_Status_error_msg_0).apply(null,arguments)},Qb=a._emscripten_bind_Status___destroy___0= +function(){return(Qb=a._emscripten_bind_Status___destroy___0=a.asm.emscripten_bind_Status___destroy___0).apply(null,arguments)},Sa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return(Sa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=a.asm.emscripten_bind_DracoFloat32Array_DracoFloat32Array_0).apply(null,arguments)},Rb=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(Rb=a._emscripten_bind_DracoFloat32Array_GetValue_1=a.asm.emscripten_bind_DracoFloat32Array_GetValue_1).apply(null, +arguments)},Sb=a._emscripten_bind_DracoFloat32Array_size_0=function(){return(Sb=a._emscripten_bind_DracoFloat32Array_size_0=a.asm.emscripten_bind_DracoFloat32Array_size_0).apply(null,arguments)},Tb=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(Tb=a._emscripten_bind_DracoFloat32Array___destroy___0=a.asm.emscripten_bind_DracoFloat32Array___destroy___0).apply(null,arguments)},Ta=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Ta=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0= +a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0).apply(null,arguments)},Ub=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(Ub=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.emscripten_bind_DracoInt8Array_GetValue_1).apply(null,arguments)},Vb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(Vb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.emscripten_bind_DracoInt8Array_size_0).apply(null,arguments)},Wb=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return(Wb= +a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.emscripten_bind_DracoInt8Array___destroy___0).apply(null,arguments)},Ua=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(Ua=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=a.asm.emscripten_bind_DracoUInt8Array_DracoUInt8Array_0).apply(null,arguments)},Xb=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(Xb=a._emscripten_bind_DracoUInt8Array_GetValue_1=a.asm.emscripten_bind_DracoUInt8Array_GetValue_1).apply(null, +arguments)},Yb=a._emscripten_bind_DracoUInt8Array_size_0=function(){return(Yb=a._emscripten_bind_DracoUInt8Array_size_0=a.asm.emscripten_bind_DracoUInt8Array_size_0).apply(null,arguments)},Zb=a._emscripten_bind_DracoUInt8Array___destroy___0=function(){return(Zb=a._emscripten_bind_DracoUInt8Array___destroy___0=a.asm.emscripten_bind_DracoUInt8Array___destroy___0).apply(null,arguments)},Va=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(Va=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0= +a.asm.emscripten_bind_DracoInt16Array_DracoInt16Array_0).apply(null,arguments)},$b=a._emscripten_bind_DracoInt16Array_GetValue_1=function(){return($b=a._emscripten_bind_DracoInt16Array_GetValue_1=a.asm.emscripten_bind_DracoInt16Array_GetValue_1).apply(null,arguments)},ac=a._emscripten_bind_DracoInt16Array_size_0=function(){return(ac=a._emscripten_bind_DracoInt16Array_size_0=a.asm.emscripten_bind_DracoInt16Array_size_0).apply(null,arguments)},bc=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return(bc= +a._emscripten_bind_DracoInt16Array___destroy___0=a.asm.emscripten_bind_DracoInt16Array___destroy___0).apply(null,arguments)},Wa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return(Wa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=a.asm.emscripten_bind_DracoUInt16Array_DracoUInt16Array_0).apply(null,arguments)},cc=a._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return(cc=a._emscripten_bind_DracoUInt16Array_GetValue_1=a.asm.emscripten_bind_DracoUInt16Array_GetValue_1).apply(null, +arguments)},dc=a._emscripten_bind_DracoUInt16Array_size_0=function(){return(dc=a._emscripten_bind_DracoUInt16Array_size_0=a.asm.emscripten_bind_DracoUInt16Array_size_0).apply(null,arguments)},ec=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(ec=a._emscripten_bind_DracoUInt16Array___destroy___0=a.asm.emscripten_bind_DracoUInt16Array___destroy___0).apply(null,arguments)},Xa=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return(Xa=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0= +a.asm.emscripten_bind_DracoInt32Array_DracoInt32Array_0).apply(null,arguments)},fc=a._emscripten_bind_DracoInt32Array_GetValue_1=function(){return(fc=a._emscripten_bind_DracoInt32Array_GetValue_1=a.asm.emscripten_bind_DracoInt32Array_GetValue_1).apply(null,arguments)},gc=a._emscripten_bind_DracoInt32Array_size_0=function(){return(gc=a._emscripten_bind_DracoInt32Array_size_0=a.asm.emscripten_bind_DracoInt32Array_size_0).apply(null,arguments)},hc=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return(hc= +a._emscripten_bind_DracoInt32Array___destroy___0=a.asm.emscripten_bind_DracoInt32Array___destroy___0).apply(null,arguments)},Ya=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=function(){return(Ya=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=a.asm.emscripten_bind_DracoUInt32Array_DracoUInt32Array_0).apply(null,arguments)},ic=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return(ic=a._emscripten_bind_DracoUInt32Array_GetValue_1=a.asm.emscripten_bind_DracoUInt32Array_GetValue_1).apply(null, +arguments)},jc=a._emscripten_bind_DracoUInt32Array_size_0=function(){return(jc=a._emscripten_bind_DracoUInt32Array_size_0=a.asm.emscripten_bind_DracoUInt32Array_size_0).apply(null,arguments)},kc=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(kc=a._emscripten_bind_DracoUInt32Array___destroy___0=a.asm.emscripten_bind_DracoUInt32Array___destroy___0).apply(null,arguments)},Za=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return(Za=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0= +a.asm.emscripten_bind_MetadataQuerier_MetadataQuerier_0).apply(null,arguments)},lc=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(lc=a._emscripten_bind_MetadataQuerier_HasEntry_2=a.asm.emscripten_bind_MetadataQuerier_HasEntry_2).apply(null,arguments)},mc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(mc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetIntEntry_2).apply(null,arguments)},nc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3= +function(){return(nc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=a.asm.emscripten_bind_MetadataQuerier_GetIntEntryArray_3).apply(null,arguments)},oc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return(oc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetDoubleEntry_2).apply(null,arguments)},pc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(pc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetStringEntry_2).apply(null, +arguments)},qc=a._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return(qc=a._emscripten_bind_MetadataQuerier_NumEntries_1=a.asm.emscripten_bind_MetadataQuerier_NumEntries_1).apply(null,arguments)},rc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(rc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=a.asm.emscripten_bind_MetadataQuerier_GetEntryName_2).apply(null,arguments)},sc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return(sc=a._emscripten_bind_MetadataQuerier___destroy___0= +a.asm.emscripten_bind_MetadataQuerier___destroy___0).apply(null,arguments)},$a=a._emscripten_bind_Decoder_Decoder_0=function(){return($a=a._emscripten_bind_Decoder_Decoder_0=a.asm.emscripten_bind_Decoder_Decoder_0).apply(null,arguments)},tc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(tc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=a.asm.emscripten_bind_Decoder_DecodeArrayToPointCloud_3).apply(null,arguments)},uc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(uc= +a._emscripten_bind_Decoder_DecodeArrayToMesh_3=a.asm.emscripten_bind_Decoder_DecodeArrayToMesh_3).apply(null,arguments)},vc=a._emscripten_bind_Decoder_GetAttributeId_2=function(){return(vc=a._emscripten_bind_Decoder_GetAttributeId_2=a.asm.emscripten_bind_Decoder_GetAttributeId_2).apply(null,arguments)},wc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return(wc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=a.asm.emscripten_bind_Decoder_GetAttributeIdByName_2).apply(null,arguments)}, +xc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(xc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=a.asm.emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3).apply(null,arguments)},yc=a._emscripten_bind_Decoder_GetAttribute_2=function(){return(yc=a._emscripten_bind_Decoder_GetAttribute_2=a.asm.emscripten_bind_Decoder_GetAttribute_2).apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(zc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2= +a.asm.emscripten_bind_Decoder_GetAttributeByUniqueId_2).apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetMetadata_1=function(){return(Ac=a._emscripten_bind_Decoder_GetMetadata_1=a.asm.emscripten_bind_Decoder_GetMetadata_1).apply(null,arguments)},Bc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(Bc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=a.asm.emscripten_bind_Decoder_GetAttributeMetadata_2).apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetFaceFromMesh_3= +function(){return(Cc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=a.asm.emscripten_bind_Decoder_GetFaceFromMesh_3).apply(null,arguments)},Dc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=function(){return(Dc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=a.asm.emscripten_bind_Decoder_GetTriangleStripsFromMesh_2).apply(null,arguments)},Ec=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(Ec=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt16Array_3).apply(null, +arguments)},Fc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(Fc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt32Array_3).apply(null,arguments)},Gc=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(Gc=a._emscripten_bind_Decoder_GetAttributeFloat_3=a.asm.emscripten_bind_Decoder_GetAttributeFloat_3).apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(Hc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3= +a.asm.emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3).apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(Ic=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeIntForAllPoints_3).apply(null,arguments)},Jc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(Jc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3).apply(null, +arguments)},Kc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(Kc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3).apply(null,arguments)},Lc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(Lc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3).apply(null,arguments)},Mc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3= +function(){return(Mc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3).apply(null,arguments)},Nc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(Nc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3).apply(null,arguments)},Oc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(Oc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3= +a.asm.emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3).apply(null,arguments)},Pc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=function(){return(Pc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=a.asm.emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5).apply(null,arguments)},Qc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Qc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=a.asm.emscripten_bind_Decoder_SkipAttributeTransform_1).apply(null, +arguments)},Rc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Rc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=a.asm.emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1).apply(null,arguments)},Sc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return(Sc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=a.asm.emscripten_bind_Decoder_DecodeBufferToPointCloud_2).apply(null,arguments)},Tc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2= +function(){return(Tc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=a.asm.emscripten_bind_Decoder_DecodeBufferToMesh_2).apply(null,arguments)},Uc=a._emscripten_bind_Decoder___destroy___0=function(){return(Uc=a._emscripten_bind_Decoder___destroy___0=a.asm.emscripten_bind_Decoder___destroy___0).apply(null,arguments)},Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM).apply(null, +arguments)},Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return(Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM).apply(null,arguments)},Xc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(Xc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM).apply(null, +arguments)},Yc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=function(){return(Yc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM).apply(null,arguments)},Zc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(Zc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID).apply(null, +arguments)},$c=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return($c=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION).apply(null,arguments)},ad=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(ad=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL).apply(null,arguments)},bd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR= +function(){return(bd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR).apply(null,arguments)},cd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(cd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD).apply(null,arguments)},dd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return(dd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC= +a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC).apply(null,arguments)},ed=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(ed=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE).apply(null,arguments)},fd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(fd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD).apply(null, +arguments)},gd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(gd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH).apply(null,arguments)},hd=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return(hd=a._emscripten_enum_draco_DataType_DT_INVALID=a.asm.emscripten_enum_draco_DataType_DT_INVALID).apply(null,arguments)},id=a._emscripten_enum_draco_DataType_DT_INT8=function(){return(id=a._emscripten_enum_draco_DataType_DT_INT8= +a.asm.emscripten_enum_draco_DataType_DT_INT8).apply(null,arguments)},jd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return(jd=a._emscripten_enum_draco_DataType_DT_UINT8=a.asm.emscripten_enum_draco_DataType_DT_UINT8).apply(null,arguments)},kd=a._emscripten_enum_draco_DataType_DT_INT16=function(){return(kd=a._emscripten_enum_draco_DataType_DT_INT16=a.asm.emscripten_enum_draco_DataType_DT_INT16).apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return(ld=a._emscripten_enum_draco_DataType_DT_UINT16= +a.asm.emscripten_enum_draco_DataType_DT_UINT16).apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_INT32=function(){return(md=a._emscripten_enum_draco_DataType_DT_INT32=a.asm.emscripten_enum_draco_DataType_DT_INT32).apply(null,arguments)},nd=a._emscripten_enum_draco_DataType_DT_UINT32=function(){return(nd=a._emscripten_enum_draco_DataType_DT_UINT32=a.asm.emscripten_enum_draco_DataType_DT_UINT32).apply(null,arguments)},od=a._emscripten_enum_draco_DataType_DT_INT64=function(){return(od= +a._emscripten_enum_draco_DataType_DT_INT64=a.asm.emscripten_enum_draco_DataType_DT_INT64).apply(null,arguments)},pd=a._emscripten_enum_draco_DataType_DT_UINT64=function(){return(pd=a._emscripten_enum_draco_DataType_DT_UINT64=a.asm.emscripten_enum_draco_DataType_DT_UINT64).apply(null,arguments)},qd=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(qd=a._emscripten_enum_draco_DataType_DT_FLOAT32=a.asm.emscripten_enum_draco_DataType_DT_FLOAT32).apply(null,arguments)},rd=a._emscripten_enum_draco_DataType_DT_FLOAT64= +function(){return(rd=a._emscripten_enum_draco_DataType_DT_FLOAT64=a.asm.emscripten_enum_draco_DataType_DT_FLOAT64).apply(null,arguments)},sd=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return(sd=a._emscripten_enum_draco_DataType_DT_BOOL=a.asm.emscripten_enum_draco_DataType_DT_BOOL).apply(null,arguments)},td=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(td=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=a.asm.emscripten_enum_draco_DataType_DT_TYPES_COUNT).apply(null, +arguments)},ud=a._emscripten_enum_draco_StatusCode_OK=function(){return(ud=a._emscripten_enum_draco_StatusCode_OK=a.asm.emscripten_enum_draco_StatusCode_OK).apply(null,arguments)},vd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(vd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=a.asm.emscripten_enum_draco_StatusCode_DRACO_ERROR).apply(null,arguments)},wd=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(wd=a._emscripten_enum_draco_StatusCode_IO_ERROR=a.asm.emscripten_enum_draco_StatusCode_IO_ERROR).apply(null, +arguments)},xd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(xd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=a.asm.emscripten_enum_draco_StatusCode_INVALID_PARAMETER).apply(null,arguments)},yd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(yd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION).apply(null,arguments)},zd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(zd= +a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNKNOWN_VERSION).apply(null,arguments)};a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)};a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)};a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)};a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)};a._setThrew= +function(){return(a._setThrew=a.asm.setThrew).apply(null,arguments)};a._free=function(){return(a._free=a.asm.free).apply(null,arguments)};var fb=a._malloc=function(){return(fb=a._malloc=a.asm.malloc).apply(null,arguments)},sa;na=function b(){sa||ea();sa||(na=b)};a.run=ea;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=r.size?(q(0>>=0;switch(c.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var g=0;gb.byteLength)return a.INVALID_GEOMETRY_TYPE;switch(b[7]){case 0:return a.POINT_CLOUD;case 1:return a.TRIANGULAR_MESH;default:return a.INVALID_GEOMETRY_TYPE}};return n.ready}}();"object"===typeof exports&&"object"===typeof module?module.exports=DracoDecoderModule:"function"===typeof define&&define.amd?define([],function(){return DracoDecoderModule}):"object"===typeof exports&&(exports.DracoDecoderModule=DracoDecoderModule); diff --git a/javascript/example/README.md b/javascript/example/README.md index 6e6df28d..b4f44df3 100644 --- a/javascript/example/README.md +++ b/javascript/example/README.md @@ -29,7 +29,7 @@ Static Loading Javascript Decoder --------------------------------- In the previous examples, `DRACOLoader.js` will dynamically load Javascript decoder or -WASM decoder depending on the support of the browser. To avoid dynamical loading the decoder, e.g. to use with JS bundler like webpack, you could directly include `draco_decoder.js` and set the decoder type to `js`. For example: +WASM decoder depending on the support of the browser. To avoid dynamically loading the decoder, e.g. to use with JS bundler like webpack, you could directly include `draco_decoder.js` and set the decoder type to `js`. For example: Include Javascript decoder: ~~~~~ html @@ -39,7 +39,7 @@ Include Javascript decoder: Create DracoLoader by setting the decoder type: ~~~~~ js // (Optional) Change decoder source directory (defaults to -// 'https://www.gstatic.com/draco/v1/decoders/'). It is recommended to always +// 'https://www.gstatic.com/draco/versioned/decoders/1.4.1/'). It is recommended to always // pull your Draco JavaScript and WASM decoders from this URL. Users will // benefit from having the Draco decoder in cache as more sites start using // the static URL. diff --git a/javascript/example/webgl_loader_draco_advanced.html b/javascript/example/webgl_loader_draco_advanced.html index 9bdf030b..0826e115 100644 --- a/javascript/example/webgl_loader_draco_advanced.html +++ b/javascript/example/webgl_loader_draco_advanced.html @@ -38,7 +38,7 @@

Open a draco compressed file (.drc):

// It is recommended to always pull your Draco JavaScript and WASM decoders // from this URL. Users will benefit from having the Draco decoder in cache // as more sites start using the static URL. - dracoLoader.setDecoderPath('https://www.gstatic.com/draco/v1/decoders/'); + dracoLoader.setDecoderPath('https://www.gstatic.com/draco/versioned/decoders/1.4.1/'); var camera, cameraTarget, scene, renderer; diff --git a/javascript/npm/draco3d/README.md b/javascript/npm/draco3d/README.md index 26e619df..d0e849db 100644 --- a/javascript/npm/draco3d/README.md +++ b/javascript/npm/draco3d/README.md @@ -6,7 +6,7 @@ News ======= -Check out the [README](https://github.com/google/draco/blob/1.4.0/README.md) +Check out the [README](https://github.com/google/draco/blob/1.4.1/README.md) file for news about this release. Description diff --git a/javascript/npm/draco3d/draco_decoder.wasm b/javascript/npm/draco3d/draco_decoder.wasm index 1804d401..9caca275 100644 Binary files a/javascript/npm/draco3d/draco_decoder.wasm and b/javascript/npm/draco3d/draco_decoder.wasm differ diff --git a/javascript/npm/draco3d/draco_decoder_nodejs.js b/javascript/npm/draco3d/draco_decoder_nodejs.js index 3380e1a0..cc317e03 100644 --- a/javascript/npm/draco3d/draco_decoder_nodejs.js +++ b/javascript/npm/draco3d/draco_decoder_nodejs.js @@ -1,125 +1,132 @@ -var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(e){var l=0;return function(){return le?Math.max(m+e,0):Math.min(e,m);n=0>n?Math.max(m+n,0):Math.min(n,m);f=0>f?Math.max(m+f,0):Math.min(f,m);if(en;)--f in this?this[--e]=this[f]:delete this[--e];return this}},"es6","es3"); -var DracoDecoderModule=function(){var e="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(e=e||__filename);return function(l){function m(k){return a.locateFile?a.locateFile(k,P):P+k}function n(a,c){a||A("Assertion failed: "+c)}function f(a,c,b){var d=c+b;for(b=c;a[b]&&!(b>=d);)++b;if(16k?d+=String.fromCharCode(k):(k-=65536,d+=String.fromCharCode(55296|k>>10,56320|k&1023))}}else d+=String.fromCharCode(k)}return d}function B(a,c){return a?f(ba,a,c):""}function h(a,c){0> -2]=a};this.get_type=function(){return x[this.ptr+y.TYPE_OFFSET>>2]};this.set_destructor=function(a){x[this.ptr+y.DESTRUCTOR_OFFSET>>2]=a};this.get_destructor=function(){return x[this.ptr+y.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(a){x[this.ptr+y.REFCOUNT_OFFSET>>2]=a};this.set_caught=function(a){Q[this.ptr+y.CAUGHT_OFFSET>>0]=a?1:0};this.get_caught=function(){return 0!=Q[this.ptr+y.CAUGHT_OFFSET>>0]};this.set_rethrown=function(a){Q[this.ptr+y.RETHROWN_OFFSET>>0]=a?1:0};this.get_rethrown= -function(){return 0!=Q[this.ptr+y.RETHROWN_OFFSET>>0]};this.init=function(a,b){this.set_type(a);this.set_destructor(b);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){x[this.ptr+y.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var a=x[this.ptr+y.REFCOUNT_OFFSET>>2];x[this.ptr+y.REFCOUNT_OFFSET>>2]=a-1;return 1===a}}function ja(){return 0=d&&(d=65536+((d&1023)<<10)|a.charCodeAt(++b)&1023);127>=d?++c:c=2047>=d?c+2:65535>=d?c+3:c+4}c=Array(c+1);b=0;d=c.length;if(0=e){var f=a.charCodeAt(++k);e=65536+((e&1023)<<10)|f&1023}if(127>=e){if(b>=d)break;c[b++]=e}else{if(2047>=e){if(b+1>=d)break;c[b++]=192|e>>6}else{if(65535>=e){if(b+2>=d)break;c[b++]=224|e>>12}else{if(b+3>=d)break;c[b++]=240|e>>18;c[b++]=128|e>>12&63}c[b++]=128|e>>6&63}c[b++]=128|e&63}}c[b]= -0}a=p.alloc(c,Q);p.copy(c,Q,a)}return a}function ra(a){if("object"===typeof a){var c=p.alloc(a,Q);p.copy(a,Q,c);return c}return a}function T(){throw"cannot construct a VoidPtr, no constructor in IDL";}function N(){this.ptr=Ja();u(N)[this.ptr]=this}function L(){this.ptr=Ka();u(L)[this.ptr]=this}function S(){this.ptr=La();u(S)[this.ptr]=this}function r(){this.ptr=Ma();u(r)[this.ptr]=this}function w(){this.ptr=Na();u(w)[this.ptr]=this}function C(){this.ptr=Oa();u(C)[this.ptr]=this}function D(){this.ptr= -Pa();u(D)[this.ptr]=this}function z(){this.ptr=Qa();u(z)[this.ptr]=this}function O(){this.ptr=Ra();u(O)[this.ptr]=this}function v(){throw"cannot construct a Status, no constructor in IDL";}function E(){this.ptr=Sa();u(E)[this.ptr]=this}function F(){this.ptr=Ta();u(F)[this.ptr]=this}function G(){this.ptr=Ua();u(G)[this.ptr]=this}function H(){this.ptr=Va();u(H)[this.ptr]=this}function I(){this.ptr=Wa();u(I)[this.ptr]=this}function J(){this.ptr=Xa();u(J)[this.ptr]=this}function K(){this.ptr=Ya();u(K)[this.ptr]= -this}function t(){this.ptr=Za();u(t)[this.ptr]=this}function g(){this.ptr=$a();u(g)[this.ptr]=this}l=l||{};var a="undefined"!==typeof l?l:{},Ga,Ba;a.ready=new Promise(function(a,c){Ga=a;Ba=c});var ab=!1,bb=!1;a.onRuntimeInitialized=function(){ab=!0;if(bb&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){bb=!0;if(ab&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(a){if("string"!==typeof a)return!1;a=a.split(".");return 2> -a.length||3=a[1]?!0:0!=a[0]||10>2]},getStr:function(a){return B(a)},get64:function(a,c){return a}};Ea.push({func:function(){eb()}});var gb={__cxa_allocate_exception:function(a){return fb(a+y.SIZE)+y.SIZE},__cxa_throw:function(a,c,b){(new Ad(a)).init(c,b);"uncaught_exception"in ja?ja.uncaught_exceptions++:ja.uncaught_exceptions=1;throw a;},abort:function(){A()},array_bounds_check_error:function(a, -c){throw"Array index "+a+" out of bounds: [0,"+c+")";},emscripten_memcpy_big:function(a,c,b){ba.copyWithin(a,c,c+b)},emscripten_resize_heap:function(a){a>>>=0;var c=ba.length;if(2147483648=b;b*=2){var d=c*(1+.2/b);d=Math.min(d,a+100663296);d=Math.min(2147483648,h(Math.max(16777216,a,d),65536));a:{try{ea.grow(d-ka.byteLength+65535>>>16);xa(ea.buffer);var e=1;break a}catch(Ed){}e=void 0}if(e)return!0}return!1},environ_get:function(a,c){var b=0;X().forEach(function(d,e){var f= -c+b;e=x[a+4*e>>2]=f;for(f=0;f>0]=d.charCodeAt(f);Q[e>>0]=0;b+=d.length+1});return 0},environ_sizes_get:function(a,c){var b=X();x[a>>2]=b.length;var d=0;b.forEach(function(a){d+=a.length+1});x[c>>2]=d;return 0},fd_close:function(a){return 0},fd_seek:function(a,c,b,d,e){},fd_write:function(a,c,b,d){for(var e=0,f=0;f>2],k=x[c+(8*f+4)>>2],h=0;h>2]=e;return 0},memory:ea,setTempRet0:function(a){}};(function(){function e(c, -b){a.asm=c.exports;oa=a.asm.__indirect_function_table;Z--;a.monitorRunDependencies&&a.monitorRunDependencies(Z);0==Z&&(null!==wa&&(clearInterval(wa),wa=null),fa&&(c=fa,fa=null,c()))}function c(a){e(a.instance)}function b(a){return Bd().then(function(a){return WebAssembly.instantiate(a,d)}).then(a,function(a){aa("failed to asynchronously prepare wasm: "+a);A(a)})}var d={env:gb,wasi_snapshot_preview1:gb};Z++;a.monitorRunDependencies&&a.monitorRunDependencies(Z);if(a.instantiateWasm)try{return a.instantiateWasm(d, -e)}catch(Cd){return aa("Module.instantiateWasm callback failed with error: "+Cd),!1}(function(){if(ca||"function"!==typeof WebAssembly.instantiateStreaming||U(R,"data:application/octet-stream;base64,")||U(R,"file://")||"function"!==typeof fetch)return b(c);fetch(R,{credentials:"same-origin"}).then(function(a){return WebAssembly.instantiateStreaming(a,d).then(c,function(a){aa("wasm streaming compile failed: "+a);aa("falling back to ArrayBuffer instantiation");return b(c)})})})();return{}})();var eb= -a.___wasm_call_ctors=function(){return(eb=a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)};a.___em_js__array_bounds_check_error=function(){return(a.___em_js__array_bounds_check_error=a.asm.__em_js__array_bounds_check_error).apply(null,arguments)};var hb=a._emscripten_bind_VoidPtr___destroy___0=function(){return(hb=a._emscripten_bind_VoidPtr___destroy___0=a.asm.emscripten_bind_VoidPtr___destroy___0).apply(null,arguments)},Ja=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(Ja= -a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=a.asm.emscripten_bind_DecoderBuffer_DecoderBuffer_0).apply(null,arguments)},ib=a._emscripten_bind_DecoderBuffer_Init_2=function(){return(ib=a._emscripten_bind_DecoderBuffer_Init_2=a.asm.emscripten_bind_DecoderBuffer_Init_2).apply(null,arguments)},jb=a._emscripten_bind_DecoderBuffer___destroy___0=function(){return(jb=a._emscripten_bind_DecoderBuffer___destroy___0=a.asm.emscripten_bind_DecoderBuffer___destroy___0).apply(null,arguments)},Ka=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0= -function(){return(Ka=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=a.asm.emscripten_bind_AttributeTransformData_AttributeTransformData_0).apply(null,arguments)},kb=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(kb=a._emscripten_bind_AttributeTransformData_transform_type_0=a.asm.emscripten_bind_AttributeTransformData_transform_type_0).apply(null,arguments)},lb=a._emscripten_bind_AttributeTransformData___destroy___0=function(){return(lb=a._emscripten_bind_AttributeTransformData___destroy___0= -a.asm.emscripten_bind_AttributeTransformData___destroy___0).apply(null,arguments)},La=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(La=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0).apply(null,arguments)},mb=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(mb=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.emscripten_bind_GeometryAttribute___destroy___0).apply(null,arguments)}, -Ma=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Ma=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.emscripten_bind_PointAttribute_PointAttribute_0).apply(null,arguments)},nb=a._emscripten_bind_PointAttribute_size_0=function(){return(nb=a._emscripten_bind_PointAttribute_size_0=a.asm.emscripten_bind_PointAttribute_size_0).apply(null,arguments)},ob=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(ob=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0= -a.asm.emscripten_bind_PointAttribute_GetAttributeTransformData_0).apply(null,arguments)},pb=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return(pb=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.emscripten_bind_PointAttribute_attribute_type_0).apply(null,arguments)},qb=a._emscripten_bind_PointAttribute_data_type_0=function(){return(qb=a._emscripten_bind_PointAttribute_data_type_0=a.asm.emscripten_bind_PointAttribute_data_type_0).apply(null,arguments)},rb=a._emscripten_bind_PointAttribute_num_components_0= -function(){return(rb=a._emscripten_bind_PointAttribute_num_components_0=a.asm.emscripten_bind_PointAttribute_num_components_0).apply(null,arguments)},sb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(sb=a._emscripten_bind_PointAttribute_normalized_0=a.asm.emscripten_bind_PointAttribute_normalized_0).apply(null,arguments)},tb=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(tb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.emscripten_bind_PointAttribute_byte_stride_0).apply(null, -arguments)},ub=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(ub=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.emscripten_bind_PointAttribute_byte_offset_0).apply(null,arguments)},vb=a._emscripten_bind_PointAttribute_unique_id_0=function(){return(vb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.emscripten_bind_PointAttribute_unique_id_0).apply(null,arguments)},wb=a._emscripten_bind_PointAttribute___destroy___0=function(){return(wb=a._emscripten_bind_PointAttribute___destroy___0= -a.asm.emscripten_bind_PointAttribute___destroy___0).apply(null,arguments)},Na=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(Na=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=a.asm.emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0).apply(null,arguments)},xb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(xb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1= -a.asm.emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1).apply(null,arguments)},yb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return(yb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=a.asm.emscripten_bind_AttributeQuantizationTransform_quantization_bits_0).apply(null,arguments)},zb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(zb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1= -a.asm.emscripten_bind_AttributeQuantizationTransform_min_value_1).apply(null,arguments)},Ab=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(Ab=a._emscripten_bind_AttributeQuantizationTransform_range_0=a.asm.emscripten_bind_AttributeQuantizationTransform_range_0).apply(null,arguments)},Bb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return(Bb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=a.asm.emscripten_bind_AttributeQuantizationTransform___destroy___0).apply(null, -arguments)},Oa=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Oa=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=a.asm.emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0).apply(null,arguments)},Cb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return(Cb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=a.asm.emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1).apply(null, -arguments)},Db=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(Db=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=a.asm.emscripten_bind_AttributeOctahedronTransform_quantization_bits_0).apply(null,arguments)},Eb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Eb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=a.asm.emscripten_bind_AttributeOctahedronTransform___destroy___0).apply(null,arguments)}, -Pa=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Pa=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.emscripten_bind_PointCloud_PointCloud_0).apply(null,arguments)},Fb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(Fb=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.emscripten_bind_PointCloud_num_attributes_0).apply(null,arguments)},Gb=a._emscripten_bind_PointCloud_num_points_0=function(){return(Gb=a._emscripten_bind_PointCloud_num_points_0=a.asm.emscripten_bind_PointCloud_num_points_0).apply(null, -arguments)},Hb=a._emscripten_bind_PointCloud___destroy___0=function(){return(Hb=a._emscripten_bind_PointCloud___destroy___0=a.asm.emscripten_bind_PointCloud___destroy___0).apply(null,arguments)},Qa=a._emscripten_bind_Mesh_Mesh_0=function(){return(Qa=a._emscripten_bind_Mesh_Mesh_0=a.asm.emscripten_bind_Mesh_Mesh_0).apply(null,arguments)},Ib=a._emscripten_bind_Mesh_num_faces_0=function(){return(Ib=a._emscripten_bind_Mesh_num_faces_0=a.asm.emscripten_bind_Mesh_num_faces_0).apply(null,arguments)},Jb= -a._emscripten_bind_Mesh_num_attributes_0=function(){return(Jb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.emscripten_bind_Mesh_num_attributes_0).apply(null,arguments)},Kb=a._emscripten_bind_Mesh_num_points_0=function(){return(Kb=a._emscripten_bind_Mesh_num_points_0=a.asm.emscripten_bind_Mesh_num_points_0).apply(null,arguments)},Lb=a._emscripten_bind_Mesh___destroy___0=function(){return(Lb=a._emscripten_bind_Mesh___destroy___0=a.asm.emscripten_bind_Mesh___destroy___0).apply(null,arguments)},Ra= -a._emscripten_bind_Metadata_Metadata_0=function(){return(Ra=a._emscripten_bind_Metadata_Metadata_0=a.asm.emscripten_bind_Metadata_Metadata_0).apply(null,arguments)},Mb=a._emscripten_bind_Metadata___destroy___0=function(){return(Mb=a._emscripten_bind_Metadata___destroy___0=a.asm.emscripten_bind_Metadata___destroy___0).apply(null,arguments)},Nb=a._emscripten_bind_Status_code_0=function(){return(Nb=a._emscripten_bind_Status_code_0=a.asm.emscripten_bind_Status_code_0).apply(null,arguments)},Ob=a._emscripten_bind_Status_ok_0= -function(){return(Ob=a._emscripten_bind_Status_ok_0=a.asm.emscripten_bind_Status_ok_0).apply(null,arguments)},Pb=a._emscripten_bind_Status_error_msg_0=function(){return(Pb=a._emscripten_bind_Status_error_msg_0=a.asm.emscripten_bind_Status_error_msg_0).apply(null,arguments)},Qb=a._emscripten_bind_Status___destroy___0=function(){return(Qb=a._emscripten_bind_Status___destroy___0=a.asm.emscripten_bind_Status___destroy___0).apply(null,arguments)},Sa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0= -function(){return(Sa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=a.asm.emscripten_bind_DracoFloat32Array_DracoFloat32Array_0).apply(null,arguments)},Rb=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(Rb=a._emscripten_bind_DracoFloat32Array_GetValue_1=a.asm.emscripten_bind_DracoFloat32Array_GetValue_1).apply(null,arguments)},Sb=a._emscripten_bind_DracoFloat32Array_size_0=function(){return(Sb=a._emscripten_bind_DracoFloat32Array_size_0=a.asm.emscripten_bind_DracoFloat32Array_size_0).apply(null, -arguments)},Tb=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(Tb=a._emscripten_bind_DracoFloat32Array___destroy___0=a.asm.emscripten_bind_DracoFloat32Array___destroy___0).apply(null,arguments)},Ta=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Ta=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0).apply(null,arguments)},Ub=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(Ub=a._emscripten_bind_DracoInt8Array_GetValue_1= -a.asm.emscripten_bind_DracoInt8Array_GetValue_1).apply(null,arguments)},Vb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(Vb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.emscripten_bind_DracoInt8Array_size_0).apply(null,arguments)},Wb=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return(Wb=a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.emscripten_bind_DracoInt8Array___destroy___0).apply(null,arguments)},Ua=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(Ua= -a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=a.asm.emscripten_bind_DracoUInt8Array_DracoUInt8Array_0).apply(null,arguments)},Xb=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(Xb=a._emscripten_bind_DracoUInt8Array_GetValue_1=a.asm.emscripten_bind_DracoUInt8Array_GetValue_1).apply(null,arguments)},Yb=a._emscripten_bind_DracoUInt8Array_size_0=function(){return(Yb=a._emscripten_bind_DracoUInt8Array_size_0=a.asm.emscripten_bind_DracoUInt8Array_size_0).apply(null,arguments)},Zb= -a._emscripten_bind_DracoUInt8Array___destroy___0=function(){return(Zb=a._emscripten_bind_DracoUInt8Array___destroy___0=a.asm.emscripten_bind_DracoUInt8Array___destroy___0).apply(null,arguments)},Va=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(Va=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=a.asm.emscripten_bind_DracoInt16Array_DracoInt16Array_0).apply(null,arguments)},$b=a._emscripten_bind_DracoInt16Array_GetValue_1=function(){return($b=a._emscripten_bind_DracoInt16Array_GetValue_1= -a.asm.emscripten_bind_DracoInt16Array_GetValue_1).apply(null,arguments)},ac=a._emscripten_bind_DracoInt16Array_size_0=function(){return(ac=a._emscripten_bind_DracoInt16Array_size_0=a.asm.emscripten_bind_DracoInt16Array_size_0).apply(null,arguments)},bc=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return(bc=a._emscripten_bind_DracoInt16Array___destroy___0=a.asm.emscripten_bind_DracoInt16Array___destroy___0).apply(null,arguments)},Wa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0= -function(){return(Wa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=a.asm.emscripten_bind_DracoUInt16Array_DracoUInt16Array_0).apply(null,arguments)},cc=a._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return(cc=a._emscripten_bind_DracoUInt16Array_GetValue_1=a.asm.emscripten_bind_DracoUInt16Array_GetValue_1).apply(null,arguments)},dc=a._emscripten_bind_DracoUInt16Array_size_0=function(){return(dc=a._emscripten_bind_DracoUInt16Array_size_0=a.asm.emscripten_bind_DracoUInt16Array_size_0).apply(null, -arguments)},ec=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(ec=a._emscripten_bind_DracoUInt16Array___destroy___0=a.asm.emscripten_bind_DracoUInt16Array___destroy___0).apply(null,arguments)},Xa=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return(Xa=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=a.asm.emscripten_bind_DracoInt32Array_DracoInt32Array_0).apply(null,arguments)},fc=a._emscripten_bind_DracoInt32Array_GetValue_1=function(){return(fc=a._emscripten_bind_DracoInt32Array_GetValue_1= -a.asm.emscripten_bind_DracoInt32Array_GetValue_1).apply(null,arguments)},gc=a._emscripten_bind_DracoInt32Array_size_0=function(){return(gc=a._emscripten_bind_DracoInt32Array_size_0=a.asm.emscripten_bind_DracoInt32Array_size_0).apply(null,arguments)},hc=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return(hc=a._emscripten_bind_DracoInt32Array___destroy___0=a.asm.emscripten_bind_DracoInt32Array___destroy___0).apply(null,arguments)},Ya=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0= -function(){return(Ya=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=a.asm.emscripten_bind_DracoUInt32Array_DracoUInt32Array_0).apply(null,arguments)},ic=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return(ic=a._emscripten_bind_DracoUInt32Array_GetValue_1=a.asm.emscripten_bind_DracoUInt32Array_GetValue_1).apply(null,arguments)},jc=a._emscripten_bind_DracoUInt32Array_size_0=function(){return(jc=a._emscripten_bind_DracoUInt32Array_size_0=a.asm.emscripten_bind_DracoUInt32Array_size_0).apply(null, -arguments)},kc=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(kc=a._emscripten_bind_DracoUInt32Array___destroy___0=a.asm.emscripten_bind_DracoUInt32Array___destroy___0).apply(null,arguments)},Za=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return(Za=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=a.asm.emscripten_bind_MetadataQuerier_MetadataQuerier_0).apply(null,arguments)},lc=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(lc=a._emscripten_bind_MetadataQuerier_HasEntry_2= -a.asm.emscripten_bind_MetadataQuerier_HasEntry_2).apply(null,arguments)},mc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(mc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetIntEntry_2).apply(null,arguments)},nc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=function(){return(nc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=a.asm.emscripten_bind_MetadataQuerier_GetIntEntryArray_3).apply(null,arguments)},oc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2= -function(){return(oc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetDoubleEntry_2).apply(null,arguments)},pc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(pc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetStringEntry_2).apply(null,arguments)},qc=a._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return(qc=a._emscripten_bind_MetadataQuerier_NumEntries_1=a.asm.emscripten_bind_MetadataQuerier_NumEntries_1).apply(null, -arguments)},rc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(rc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=a.asm.emscripten_bind_MetadataQuerier_GetEntryName_2).apply(null,arguments)},sc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return(sc=a._emscripten_bind_MetadataQuerier___destroy___0=a.asm.emscripten_bind_MetadataQuerier___destroy___0).apply(null,arguments)},$a=a._emscripten_bind_Decoder_Decoder_0=function(){return($a=a._emscripten_bind_Decoder_Decoder_0= -a.asm.emscripten_bind_Decoder_Decoder_0).apply(null,arguments)},tc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(tc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=a.asm.emscripten_bind_Decoder_DecodeArrayToPointCloud_3).apply(null,arguments)},uc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(uc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=a.asm.emscripten_bind_Decoder_DecodeArrayToMesh_3).apply(null,arguments)},vc=a._emscripten_bind_Decoder_GetAttributeId_2= -function(){return(vc=a._emscripten_bind_Decoder_GetAttributeId_2=a.asm.emscripten_bind_Decoder_GetAttributeId_2).apply(null,arguments)},wc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return(wc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=a.asm.emscripten_bind_Decoder_GetAttributeIdByName_2).apply(null,arguments)},xc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(xc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=a.asm.emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3).apply(null, -arguments)},yc=a._emscripten_bind_Decoder_GetAttribute_2=function(){return(yc=a._emscripten_bind_Decoder_GetAttribute_2=a.asm.emscripten_bind_Decoder_GetAttribute_2).apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(zc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=a.asm.emscripten_bind_Decoder_GetAttributeByUniqueId_2).apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetMetadata_1=function(){return(Ac=a._emscripten_bind_Decoder_GetMetadata_1= -a.asm.emscripten_bind_Decoder_GetMetadata_1).apply(null,arguments)},Bc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(Bc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=a.asm.emscripten_bind_Decoder_GetAttributeMetadata_2).apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return(Cc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=a.asm.emscripten_bind_Decoder_GetFaceFromMesh_3).apply(null,arguments)},Dc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2= -function(){return(Dc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=a.asm.emscripten_bind_Decoder_GetTriangleStripsFromMesh_2).apply(null,arguments)},Ec=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(Ec=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt16Array_3).apply(null,arguments)},Fc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(Fc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt32Array_3).apply(null, -arguments)},Gc=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(Gc=a._emscripten_bind_Decoder_GetAttributeFloat_3=a.asm.emscripten_bind_Decoder_GetAttributeFloat_3).apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(Hc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3).apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(Ic= -a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeIntForAllPoints_3).apply(null,arguments)},Jc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(Jc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3).apply(null,arguments)},Kc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(Kc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3= -a.asm.emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3).apply(null,arguments)},Lc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(Lc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3).apply(null,arguments)},Mc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=function(){return(Mc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3).apply(null, -arguments)},Nc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(Nc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3).apply(null,arguments)},Oc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(Oc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3).apply(null,arguments)},Pc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5= -function(){return(Pc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=a.asm.emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5).apply(null,arguments)},Qc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Qc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=a.asm.emscripten_bind_Decoder_SkipAttributeTransform_1).apply(null,arguments)},Rc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Rc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1= -a.asm.emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1).apply(null,arguments)},Sc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return(Sc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=a.asm.emscripten_bind_Decoder_DecodeBufferToPointCloud_2).apply(null,arguments)},Tc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return(Tc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=a.asm.emscripten_bind_Decoder_DecodeBufferToMesh_2).apply(null,arguments)},Uc= -a._emscripten_bind_Decoder___destroy___0=function(){return(Uc=a._emscripten_bind_Decoder___destroy___0=a.asm.emscripten_bind_Decoder___destroy___0).apply(null,arguments)},Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM).apply(null,arguments)},Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM= -function(){return(Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM).apply(null,arguments)},Xc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(Xc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM).apply(null,arguments)},Yc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM= -function(){return(Yc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM).apply(null,arguments)},Zc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(Zc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID).apply(null,arguments)},$c=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return($c= -a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION).apply(null,arguments)},ad=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(ad=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL).apply(null,arguments)},bd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(bd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR).apply(null, -arguments)},cd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(cd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD).apply(null,arguments)},dd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return(dd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC).apply(null,arguments)},ed=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE= -function(){return(ed=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE).apply(null,arguments)},fd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(fd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD).apply(null,arguments)},gd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(gd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH= -a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH).apply(null,arguments)},hd=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return(hd=a._emscripten_enum_draco_DataType_DT_INVALID=a.asm.emscripten_enum_draco_DataType_DT_INVALID).apply(null,arguments)},id=a._emscripten_enum_draco_DataType_DT_INT8=function(){return(id=a._emscripten_enum_draco_DataType_DT_INT8=a.asm.emscripten_enum_draco_DataType_DT_INT8).apply(null,arguments)},jd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return(jd= -a._emscripten_enum_draco_DataType_DT_UINT8=a.asm.emscripten_enum_draco_DataType_DT_UINT8).apply(null,arguments)},kd=a._emscripten_enum_draco_DataType_DT_INT16=function(){return(kd=a._emscripten_enum_draco_DataType_DT_INT16=a.asm.emscripten_enum_draco_DataType_DT_INT16).apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return(ld=a._emscripten_enum_draco_DataType_DT_UINT16=a.asm.emscripten_enum_draco_DataType_DT_UINT16).apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_INT32= -function(){return(md=a._emscripten_enum_draco_DataType_DT_INT32=a.asm.emscripten_enum_draco_DataType_DT_INT32).apply(null,arguments)},nd=a._emscripten_enum_draco_DataType_DT_UINT32=function(){return(nd=a._emscripten_enum_draco_DataType_DT_UINT32=a.asm.emscripten_enum_draco_DataType_DT_UINT32).apply(null,arguments)},od=a._emscripten_enum_draco_DataType_DT_INT64=function(){return(od=a._emscripten_enum_draco_DataType_DT_INT64=a.asm.emscripten_enum_draco_DataType_DT_INT64).apply(null,arguments)},pd=a._emscripten_enum_draco_DataType_DT_UINT64= -function(){return(pd=a._emscripten_enum_draco_DataType_DT_UINT64=a.asm.emscripten_enum_draco_DataType_DT_UINT64).apply(null,arguments)},qd=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(qd=a._emscripten_enum_draco_DataType_DT_FLOAT32=a.asm.emscripten_enum_draco_DataType_DT_FLOAT32).apply(null,arguments)},rd=a._emscripten_enum_draco_DataType_DT_FLOAT64=function(){return(rd=a._emscripten_enum_draco_DataType_DT_FLOAT64=a.asm.emscripten_enum_draco_DataType_DT_FLOAT64).apply(null,arguments)}, -sd=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return(sd=a._emscripten_enum_draco_DataType_DT_BOOL=a.asm.emscripten_enum_draco_DataType_DT_BOOL).apply(null,arguments)},td=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(td=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=a.asm.emscripten_enum_draco_DataType_DT_TYPES_COUNT).apply(null,arguments)},ud=a._emscripten_enum_draco_StatusCode_OK=function(){return(ud=a._emscripten_enum_draco_StatusCode_OK=a.asm.emscripten_enum_draco_StatusCode_OK).apply(null, -arguments)},vd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(vd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=a.asm.emscripten_enum_draco_StatusCode_DRACO_ERROR).apply(null,arguments)},wd=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(wd=a._emscripten_enum_draco_StatusCode_IO_ERROR=a.asm.emscripten_enum_draco_StatusCode_IO_ERROR).apply(null,arguments)},xd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(xd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER= -a.asm.emscripten_enum_draco_StatusCode_INVALID_PARAMETER).apply(null,arguments)},yd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(yd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION).apply(null,arguments)},zd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(zd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNKNOWN_VERSION).apply(null,arguments)}; -a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)};a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)};a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)};a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)};a._setThrew=function(){return(a._setThrew=a.asm.setThrew).apply(null,arguments)};a._free=function(){return(a._free=a.asm.free).apply(null, -arguments)};var fb=a._malloc=function(){return(fb=a._malloc=a.asm.malloc).apply(null,arguments)};a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)};var na;fa=function c(){na||qa();na||(fa=c)};a.run=qa;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=p.size?(n(0>>=0;switch(b.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var c=0;cc.byteLength)return a.INVALID_GEOMETRY_TYPE;switch(c[7]){case 0:return a.POINT_CLOUD;case 1:return a.TRIANGULAR_MESH;default:return a.INVALID_GEOMETRY_TYPE}};return l.ready}}();"object"===typeof exports&&"object"===typeof module?module.exports=DracoDecoderModule:"function"===typeof define&&define.amd?define([],function(){return DracoDecoderModule}):"object"===typeof exports&&(exports.DracoDecoderModule=DracoDecoderModule); +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(l){var n=0;return function(){return nm?Math.max(A+m,0):Math.min(m,A);q=0>q?Math.max(A+q,0):Math.min(q,A);h=0>h?Math.max(A+h,0):Math.min(h,A);if(mq;)--h in this?this[--m]=this[h]:delete this[--m];return this}},"es6","es3"); +$jscomp.typedArrayCopyWithin=function(l){return l?l:Array.prototype.copyWithin};$jscomp.polyfill("Int8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); +$jscomp.polyfill("Uint16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float64Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); +var DracoDecoderModule=function(){var l="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(l=l||__filename);return function(n){function m(e){return a.locateFile?a.locateFile(e,V):V+e}function q(e,b){e||u("Assertion failed: "+b)}function h(e,b,c){var d=b+c;for(c=b;e[c]&&!(c>=d);)++c;if(16f?d+=String.fromCharCode(f):(f-=65536,d+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else d+=String.fromCharCode(f)}return d}function A(e,b){return e?h(la,e,b):""}function g(e,b){0>2]=b}; +this.get_type=function(){return H[this.ptr+D.TYPE_OFFSET>>2]};this.set_destructor=function(b){H[this.ptr+D.DESTRUCTOR_OFFSET>>2]=b};this.get_destructor=function(){return H[this.ptr+D.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(b){H[this.ptr+D.REFCOUNT_OFFSET>>2]=b};this.set_caught=function(b){Z[this.ptr+D.CAUGHT_OFFSET>>0]=b?1:0};this.get_caught=function(){return 0!=Z[this.ptr+D.CAUGHT_OFFSET>>0]};this.set_rethrown=function(b){Z[this.ptr+D.RETHROWN_OFFSET>>0]=b?1:0};this.get_rethrown=function(){return 0!= +Z[this.ptr+D.RETHROWN_OFFSET>>0]};this.init=function(b,c){this.set_type(b);this.set_destructor(c);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){H[this.ptr+D.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var b=H[this.ptr+D.REFCOUNT_OFFSET>>2];H[this.ptr+D.REFCOUNT_OFFSET>>2]=b-1;return 1===b}}function ba(){return 0=d&&(d=65536+((d&1023)<<10)|e.charCodeAt(++c)&1023);127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}b=Array(b+1);c=0;d=b.length;if(0=t){var ca=e.charCodeAt(++f);t=65536+((t&1023)<<10)|ca&1023}if(127>=t){if(c>=d)break;b[c++]=t}else{if(2047>=t){if(c+1>=d)break;b[c++]=192|t>>6}else{if(65535>= +t){if(c+2>=d)break;b[c++]=224|t>>12}else{if(c+3>=d)break;b[c++]=240|t>>18;b[c++]=128|t>>12&63}b[c++]=128|t>>6&63}b[c++]=128|t&63}}b[c]=0}e=r.alloc(b,Z);r.copy(b,Z,e);return e}return e}function xa(e){if("object"===typeof e){var b=r.alloc(e,Z);r.copy(e,Z,b);return b}return e}function aa(){throw"cannot construct a VoidPtr, no constructor in IDL";}function T(){this.ptr=Ma();z(T)[this.ptr]=this}function R(){this.ptr=Na();z(R)[this.ptr]=this}function X(){this.ptr=Oa();z(X)[this.ptr]=this}function w(){this.ptr= +Pa();z(w)[this.ptr]=this}function C(){this.ptr=Qa();z(C)[this.ptr]=this}function I(){this.ptr=Ra();z(I)[this.ptr]=this}function J(){this.ptr=Sa();z(J)[this.ptr]=this}function E(){this.ptr=Ta();z(E)[this.ptr]=this}function U(){this.ptr=Ua();z(U)[this.ptr]=this}function B(){throw"cannot construct a Status, no constructor in IDL";}function K(){this.ptr=Va();z(K)[this.ptr]=this}function L(){this.ptr=Wa();z(L)[this.ptr]=this}function M(){this.ptr=Xa();z(M)[this.ptr]=this}function N(){this.ptr=Ya();z(N)[this.ptr]= +this}function O(){this.ptr=Za();z(O)[this.ptr]=this}function P(){this.ptr=$a();z(P)[this.ptr]=this}function Q(){this.ptr=ab();z(Q)[this.ptr]=this}function y(){this.ptr=bb();z(y)[this.ptr]=this}function k(){this.ptr=cb();z(k)[this.ptr]=this}n=n||{};var a="undefined"!==typeof n?n:{},Ja,va;a.ready=new Promise(function(e,b){Ja=e;va=b});var db=!1,eb=!1;a.onRuntimeInitialized=function(){db=!0;if(eb&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){eb=!0;if(db&&"function"=== +typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(e){if("string"!==typeof e)return!1;e=e.split(".");return 2>e.length||3=e[1]?!0:0!=e[0]||10>2]},getStr:function(e){return A(e)},get64:function(e,b){return e}};Ha.push({func:function(){hb()}});var kb={__cxa_allocate_exception:function(e){return ib(e+D.SIZE)+D.SIZE},__cxa_throw:function(e,b,c){(new Y(e)).init(b,c);"uncaught_exception"in ba?ba.uncaught_exceptions++:ba.uncaught_exceptions= +1;throw e;},abort:function(){u()},array_bounds_check_error:function(e,b){throw"Array index "+e+" out of bounds: [0,"+b+")";},emscripten_memcpy_big:function(e,b,c){la.copyWithin(e,b,b+c)},emscripten_resize_heap:function(e){e>>>=0;var b=la.length;if(2147483648=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,e+100663296);d=Math.min(2147483648,g(Math.max(16777216,e,d),65536));a:{try{oa.grow(d-ra.byteLength+65535>>>16);p(oa.buffer);var f=1;break a}catch(t){}f=void 0}if(f)return!0}return!1}, +fd_close:function(e){return 0},fd_seek:function(e,b,c,d,f){},fd_write:function(e,b,c,d){for(var f=0,t=0;t>2],jb=H[b+(8*t+4)>>2],Da=0;Da>2]=f;return 0},memory:oa,setTempRet0:function(e){}};(function(){function e(f,t){a.asm=f.exports;wa=a.asm.__indirect_function_table;ia--;a.monitorRunDependencies&&a.monitorRunDependencies(ia);0==ia&&(null!==Ca&&(clearInterval(Ca),Ca=null),pa&&(f=pa,pa=null,f()))}function b(f){e(f.instance)}function c(f){return ka().then(function(t){return WebAssembly.instantiate(t, +d)}).then(f,function(t){ja("failed to asynchronously prepare wasm: "+t);u(t)})}var d={env:kb,wasi_snapshot_preview1:kb};ia++;a.monitorRunDependencies&&a.monitorRunDependencies(ia);if(a.instantiateWasm)try{return a.instantiateWasm(d,e)}catch(f){return ja("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return ma||"function"!==typeof WebAssembly.instantiateStreaming||x(W,"data:application/octet-stream;base64,")||x(W,"file://")||"function"!==typeof fetch?c(b):fetch(W,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f, +d).then(b,function(t){ja("wasm streaming compile failed: "+t);ja("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(va);return{}})();var hb=a.___wasm_call_ctors=function(){return(hb=a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)};a.___em_js__array_bounds_check_error=function(){return(a.___em_js__array_bounds_check_error=a.asm.__em_js__array_bounds_check_error).apply(null,arguments)};var lb=a._emscripten_bind_VoidPtr___destroy___0=function(){return(lb=a._emscripten_bind_VoidPtr___destroy___0= +a.asm.emscripten_bind_VoidPtr___destroy___0).apply(null,arguments)},Ma=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(Ma=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=a.asm.emscripten_bind_DecoderBuffer_DecoderBuffer_0).apply(null,arguments)},mb=a._emscripten_bind_DecoderBuffer_Init_2=function(){return(mb=a._emscripten_bind_DecoderBuffer_Init_2=a.asm.emscripten_bind_DecoderBuffer_Init_2).apply(null,arguments)},nb=a._emscripten_bind_DecoderBuffer___destroy___0=function(){return(nb= +a._emscripten_bind_DecoderBuffer___destroy___0=a.asm.emscripten_bind_DecoderBuffer___destroy___0).apply(null,arguments)},Na=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=function(){return(Na=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=a.asm.emscripten_bind_AttributeTransformData_AttributeTransformData_0).apply(null,arguments)},ob=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(ob=a._emscripten_bind_AttributeTransformData_transform_type_0= +a.asm.emscripten_bind_AttributeTransformData_transform_type_0).apply(null,arguments)},pb=a._emscripten_bind_AttributeTransformData___destroy___0=function(){return(pb=a._emscripten_bind_AttributeTransformData___destroy___0=a.asm.emscripten_bind_AttributeTransformData___destroy___0).apply(null,arguments)},Oa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Oa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0).apply(null, +arguments)},qb=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(qb=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.emscripten_bind_GeometryAttribute___destroy___0).apply(null,arguments)},Pa=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Pa=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.emscripten_bind_PointAttribute_PointAttribute_0).apply(null,arguments)},rb=a._emscripten_bind_PointAttribute_size_0=function(){return(rb=a._emscripten_bind_PointAttribute_size_0= +a.asm.emscripten_bind_PointAttribute_size_0).apply(null,arguments)},sb=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(sb=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=a.asm.emscripten_bind_PointAttribute_GetAttributeTransformData_0).apply(null,arguments)},tb=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return(tb=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.emscripten_bind_PointAttribute_attribute_type_0).apply(null,arguments)}, +ub=a._emscripten_bind_PointAttribute_data_type_0=function(){return(ub=a._emscripten_bind_PointAttribute_data_type_0=a.asm.emscripten_bind_PointAttribute_data_type_0).apply(null,arguments)},vb=a._emscripten_bind_PointAttribute_num_components_0=function(){return(vb=a._emscripten_bind_PointAttribute_num_components_0=a.asm.emscripten_bind_PointAttribute_num_components_0).apply(null,arguments)},wb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(wb=a._emscripten_bind_PointAttribute_normalized_0= +a.asm.emscripten_bind_PointAttribute_normalized_0).apply(null,arguments)},xb=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(xb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.emscripten_bind_PointAttribute_byte_stride_0).apply(null,arguments)},yb=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(yb=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.emscripten_bind_PointAttribute_byte_offset_0).apply(null,arguments)},zb=a._emscripten_bind_PointAttribute_unique_id_0= +function(){return(zb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.emscripten_bind_PointAttribute_unique_id_0).apply(null,arguments)},Ab=a._emscripten_bind_PointAttribute___destroy___0=function(){return(Ab=a._emscripten_bind_PointAttribute___destroy___0=a.asm.emscripten_bind_PointAttribute___destroy___0).apply(null,arguments)},Qa=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(Qa=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0= +a.asm.emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0).apply(null,arguments)},Bb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(Bb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=a.asm.emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1).apply(null,arguments)},Cb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return(Cb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0= +a.asm.emscripten_bind_AttributeQuantizationTransform_quantization_bits_0).apply(null,arguments)},Db=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(Db=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=a.asm.emscripten_bind_AttributeQuantizationTransform_min_value_1).apply(null,arguments)},Eb=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(Eb=a._emscripten_bind_AttributeQuantizationTransform_range_0=a.asm.emscripten_bind_AttributeQuantizationTransform_range_0).apply(null, +arguments)},Fb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return(Fb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=a.asm.emscripten_bind_AttributeQuantizationTransform___destroy___0).apply(null,arguments)},Ra=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Ra=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=a.asm.emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0).apply(null, +arguments)},Gb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return(Gb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=a.asm.emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1).apply(null,arguments)},Hb=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(Hb=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=a.asm.emscripten_bind_AttributeOctahedronTransform_quantization_bits_0).apply(null, +arguments)},Ib=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Ib=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=a.asm.emscripten_bind_AttributeOctahedronTransform___destroy___0).apply(null,arguments)},Sa=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Sa=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.emscripten_bind_PointCloud_PointCloud_0).apply(null,arguments)},Jb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(Jb=a._emscripten_bind_PointCloud_num_attributes_0= +a.asm.emscripten_bind_PointCloud_num_attributes_0).apply(null,arguments)},Kb=a._emscripten_bind_PointCloud_num_points_0=function(){return(Kb=a._emscripten_bind_PointCloud_num_points_0=a.asm.emscripten_bind_PointCloud_num_points_0).apply(null,arguments)},Lb=a._emscripten_bind_PointCloud___destroy___0=function(){return(Lb=a._emscripten_bind_PointCloud___destroy___0=a.asm.emscripten_bind_PointCloud___destroy___0).apply(null,arguments)},Ta=a._emscripten_bind_Mesh_Mesh_0=function(){return(Ta=a._emscripten_bind_Mesh_Mesh_0= +a.asm.emscripten_bind_Mesh_Mesh_0).apply(null,arguments)},Mb=a._emscripten_bind_Mesh_num_faces_0=function(){return(Mb=a._emscripten_bind_Mesh_num_faces_0=a.asm.emscripten_bind_Mesh_num_faces_0).apply(null,arguments)},Nb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(Nb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.emscripten_bind_Mesh_num_attributes_0).apply(null,arguments)},Ob=a._emscripten_bind_Mesh_num_points_0=function(){return(Ob=a._emscripten_bind_Mesh_num_points_0=a.asm.emscripten_bind_Mesh_num_points_0).apply(null, +arguments)},Pb=a._emscripten_bind_Mesh___destroy___0=function(){return(Pb=a._emscripten_bind_Mesh___destroy___0=a.asm.emscripten_bind_Mesh___destroy___0).apply(null,arguments)},Ua=a._emscripten_bind_Metadata_Metadata_0=function(){return(Ua=a._emscripten_bind_Metadata_Metadata_0=a.asm.emscripten_bind_Metadata_Metadata_0).apply(null,arguments)},Qb=a._emscripten_bind_Metadata___destroy___0=function(){return(Qb=a._emscripten_bind_Metadata___destroy___0=a.asm.emscripten_bind_Metadata___destroy___0).apply(null, +arguments)},Rb=a._emscripten_bind_Status_code_0=function(){return(Rb=a._emscripten_bind_Status_code_0=a.asm.emscripten_bind_Status_code_0).apply(null,arguments)},Sb=a._emscripten_bind_Status_ok_0=function(){return(Sb=a._emscripten_bind_Status_ok_0=a.asm.emscripten_bind_Status_ok_0).apply(null,arguments)},Tb=a._emscripten_bind_Status_error_msg_0=function(){return(Tb=a._emscripten_bind_Status_error_msg_0=a.asm.emscripten_bind_Status_error_msg_0).apply(null,arguments)},Ub=a._emscripten_bind_Status___destroy___0= +function(){return(Ub=a._emscripten_bind_Status___destroy___0=a.asm.emscripten_bind_Status___destroy___0).apply(null,arguments)},Va=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return(Va=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=a.asm.emscripten_bind_DracoFloat32Array_DracoFloat32Array_0).apply(null,arguments)},Vb=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(Vb=a._emscripten_bind_DracoFloat32Array_GetValue_1=a.asm.emscripten_bind_DracoFloat32Array_GetValue_1).apply(null, +arguments)},Wb=a._emscripten_bind_DracoFloat32Array_size_0=function(){return(Wb=a._emscripten_bind_DracoFloat32Array_size_0=a.asm.emscripten_bind_DracoFloat32Array_size_0).apply(null,arguments)},Xb=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(Xb=a._emscripten_bind_DracoFloat32Array___destroy___0=a.asm.emscripten_bind_DracoFloat32Array___destroy___0).apply(null,arguments)},Wa=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Wa=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0= +a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0).apply(null,arguments)},Yb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(Yb=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.emscripten_bind_DracoInt8Array_GetValue_1).apply(null,arguments)},Zb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(Zb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.emscripten_bind_DracoInt8Array_size_0).apply(null,arguments)},$b=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return($b= +a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.emscripten_bind_DracoInt8Array___destroy___0).apply(null,arguments)},Xa=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(Xa=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=a.asm.emscripten_bind_DracoUInt8Array_DracoUInt8Array_0).apply(null,arguments)},ac=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(ac=a._emscripten_bind_DracoUInt8Array_GetValue_1=a.asm.emscripten_bind_DracoUInt8Array_GetValue_1).apply(null, +arguments)},bc=a._emscripten_bind_DracoUInt8Array_size_0=function(){return(bc=a._emscripten_bind_DracoUInt8Array_size_0=a.asm.emscripten_bind_DracoUInt8Array_size_0).apply(null,arguments)},cc=a._emscripten_bind_DracoUInt8Array___destroy___0=function(){return(cc=a._emscripten_bind_DracoUInt8Array___destroy___0=a.asm.emscripten_bind_DracoUInt8Array___destroy___0).apply(null,arguments)},Ya=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(Ya=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0= +a.asm.emscripten_bind_DracoInt16Array_DracoInt16Array_0).apply(null,arguments)},dc=a._emscripten_bind_DracoInt16Array_GetValue_1=function(){return(dc=a._emscripten_bind_DracoInt16Array_GetValue_1=a.asm.emscripten_bind_DracoInt16Array_GetValue_1).apply(null,arguments)},ec=a._emscripten_bind_DracoInt16Array_size_0=function(){return(ec=a._emscripten_bind_DracoInt16Array_size_0=a.asm.emscripten_bind_DracoInt16Array_size_0).apply(null,arguments)},fc=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return(fc= +a._emscripten_bind_DracoInt16Array___destroy___0=a.asm.emscripten_bind_DracoInt16Array___destroy___0).apply(null,arguments)},Za=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return(Za=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=a.asm.emscripten_bind_DracoUInt16Array_DracoUInt16Array_0).apply(null,arguments)},gc=a._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return(gc=a._emscripten_bind_DracoUInt16Array_GetValue_1=a.asm.emscripten_bind_DracoUInt16Array_GetValue_1).apply(null, +arguments)},hc=a._emscripten_bind_DracoUInt16Array_size_0=function(){return(hc=a._emscripten_bind_DracoUInt16Array_size_0=a.asm.emscripten_bind_DracoUInt16Array_size_0).apply(null,arguments)},ic=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(ic=a._emscripten_bind_DracoUInt16Array___destroy___0=a.asm.emscripten_bind_DracoUInt16Array___destroy___0).apply(null,arguments)},$a=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return($a=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0= +a.asm.emscripten_bind_DracoInt32Array_DracoInt32Array_0).apply(null,arguments)},jc=a._emscripten_bind_DracoInt32Array_GetValue_1=function(){return(jc=a._emscripten_bind_DracoInt32Array_GetValue_1=a.asm.emscripten_bind_DracoInt32Array_GetValue_1).apply(null,arguments)},kc=a._emscripten_bind_DracoInt32Array_size_0=function(){return(kc=a._emscripten_bind_DracoInt32Array_size_0=a.asm.emscripten_bind_DracoInt32Array_size_0).apply(null,arguments)},lc=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return(lc= +a._emscripten_bind_DracoInt32Array___destroy___0=a.asm.emscripten_bind_DracoInt32Array___destroy___0).apply(null,arguments)},ab=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=function(){return(ab=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=a.asm.emscripten_bind_DracoUInt32Array_DracoUInt32Array_0).apply(null,arguments)},mc=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return(mc=a._emscripten_bind_DracoUInt32Array_GetValue_1=a.asm.emscripten_bind_DracoUInt32Array_GetValue_1).apply(null, +arguments)},nc=a._emscripten_bind_DracoUInt32Array_size_0=function(){return(nc=a._emscripten_bind_DracoUInt32Array_size_0=a.asm.emscripten_bind_DracoUInt32Array_size_0).apply(null,arguments)},oc=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(oc=a._emscripten_bind_DracoUInt32Array___destroy___0=a.asm.emscripten_bind_DracoUInt32Array___destroy___0).apply(null,arguments)},bb=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return(bb=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0= +a.asm.emscripten_bind_MetadataQuerier_MetadataQuerier_0).apply(null,arguments)},pc=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(pc=a._emscripten_bind_MetadataQuerier_HasEntry_2=a.asm.emscripten_bind_MetadataQuerier_HasEntry_2).apply(null,arguments)},qc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(qc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetIntEntry_2).apply(null,arguments)},rc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3= +function(){return(rc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=a.asm.emscripten_bind_MetadataQuerier_GetIntEntryArray_3).apply(null,arguments)},sc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return(sc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetDoubleEntry_2).apply(null,arguments)},tc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(tc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetStringEntry_2).apply(null, +arguments)},uc=a._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return(uc=a._emscripten_bind_MetadataQuerier_NumEntries_1=a.asm.emscripten_bind_MetadataQuerier_NumEntries_1).apply(null,arguments)},vc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(vc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=a.asm.emscripten_bind_MetadataQuerier_GetEntryName_2).apply(null,arguments)},wc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return(wc=a._emscripten_bind_MetadataQuerier___destroy___0= +a.asm.emscripten_bind_MetadataQuerier___destroy___0).apply(null,arguments)},cb=a._emscripten_bind_Decoder_Decoder_0=function(){return(cb=a._emscripten_bind_Decoder_Decoder_0=a.asm.emscripten_bind_Decoder_Decoder_0).apply(null,arguments)},xc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(xc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=a.asm.emscripten_bind_Decoder_DecodeArrayToPointCloud_3).apply(null,arguments)},yc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(yc= +a._emscripten_bind_Decoder_DecodeArrayToMesh_3=a.asm.emscripten_bind_Decoder_DecodeArrayToMesh_3).apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetAttributeId_2=function(){return(zc=a._emscripten_bind_Decoder_GetAttributeId_2=a.asm.emscripten_bind_Decoder_GetAttributeId_2).apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return(Ac=a._emscripten_bind_Decoder_GetAttributeIdByName_2=a.asm.emscripten_bind_Decoder_GetAttributeIdByName_2).apply(null,arguments)}, +Bc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(Bc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=a.asm.emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3).apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetAttribute_2=function(){return(Cc=a._emscripten_bind_Decoder_GetAttribute_2=a.asm.emscripten_bind_Decoder_GetAttribute_2).apply(null,arguments)},Dc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(Dc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2= +a.asm.emscripten_bind_Decoder_GetAttributeByUniqueId_2).apply(null,arguments)},Ec=a._emscripten_bind_Decoder_GetMetadata_1=function(){return(Ec=a._emscripten_bind_Decoder_GetMetadata_1=a.asm.emscripten_bind_Decoder_GetMetadata_1).apply(null,arguments)},Fc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(Fc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=a.asm.emscripten_bind_Decoder_GetAttributeMetadata_2).apply(null,arguments)},Gc=a._emscripten_bind_Decoder_GetFaceFromMesh_3= +function(){return(Gc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=a.asm.emscripten_bind_Decoder_GetFaceFromMesh_3).apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=function(){return(Hc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=a.asm.emscripten_bind_Decoder_GetTriangleStripsFromMesh_2).apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(Ic=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt16Array_3).apply(null, +arguments)},Jc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(Jc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt32Array_3).apply(null,arguments)},Kc=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(Kc=a._emscripten_bind_Decoder_GetAttributeFloat_3=a.asm.emscripten_bind_Decoder_GetAttributeFloat_3).apply(null,arguments)},Lc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(Lc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3= +a.asm.emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3).apply(null,arguments)},Mc=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(Mc=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeIntForAllPoints_3).apply(null,arguments)},Nc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(Nc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3).apply(null, +arguments)},Oc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(Oc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3).apply(null,arguments)},Pc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(Pc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3).apply(null,arguments)},Qc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3= +function(){return(Qc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3).apply(null,arguments)},Rc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(Rc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3).apply(null,arguments)},Sc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(Sc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3= +a.asm.emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3).apply(null,arguments)},Tc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=function(){return(Tc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=a.asm.emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5).apply(null,arguments)},Uc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Uc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=a.asm.emscripten_bind_Decoder_SkipAttributeTransform_1).apply(null, +arguments)},Vc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Vc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=a.asm.emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1).apply(null,arguments)},Wc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return(Wc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=a.asm.emscripten_bind_Decoder_DecodeBufferToPointCloud_2).apply(null,arguments)},Xc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2= +function(){return(Xc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=a.asm.emscripten_bind_Decoder_DecodeBufferToMesh_2).apply(null,arguments)},Yc=a._emscripten_bind_Decoder___destroy___0=function(){return(Yc=a._emscripten_bind_Decoder___destroy___0=a.asm.emscripten_bind_Decoder___destroy___0).apply(null,arguments)},Zc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(Zc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM).apply(null, +arguments)},$c=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return($c=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM).apply(null,arguments)},ad=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(ad=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM).apply(null, +arguments)},bd=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=function(){return(bd=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM).apply(null,arguments)},cd=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(cd=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID).apply(null, +arguments)},dd=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(dd=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION).apply(null,arguments)},ed=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(ed=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL).apply(null,arguments)},fd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR= +function(){return(fd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR).apply(null,arguments)},gd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(gd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD).apply(null,arguments)},hd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return(hd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC= +a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC).apply(null,arguments)},id=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(id=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE).apply(null,arguments)},jd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(jd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD).apply(null, +arguments)},kd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(kd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH).apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return(ld=a._emscripten_enum_draco_DataType_DT_INVALID=a.asm.emscripten_enum_draco_DataType_DT_INVALID).apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_INT8=function(){return(md=a._emscripten_enum_draco_DataType_DT_INT8= +a.asm.emscripten_enum_draco_DataType_DT_INT8).apply(null,arguments)},nd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return(nd=a._emscripten_enum_draco_DataType_DT_UINT8=a.asm.emscripten_enum_draco_DataType_DT_UINT8).apply(null,arguments)},od=a._emscripten_enum_draco_DataType_DT_INT16=function(){return(od=a._emscripten_enum_draco_DataType_DT_INT16=a.asm.emscripten_enum_draco_DataType_DT_INT16).apply(null,arguments)},pd=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return(pd=a._emscripten_enum_draco_DataType_DT_UINT16= +a.asm.emscripten_enum_draco_DataType_DT_UINT16).apply(null,arguments)},qd=a._emscripten_enum_draco_DataType_DT_INT32=function(){return(qd=a._emscripten_enum_draco_DataType_DT_INT32=a.asm.emscripten_enum_draco_DataType_DT_INT32).apply(null,arguments)},rd=a._emscripten_enum_draco_DataType_DT_UINT32=function(){return(rd=a._emscripten_enum_draco_DataType_DT_UINT32=a.asm.emscripten_enum_draco_DataType_DT_UINT32).apply(null,arguments)},sd=a._emscripten_enum_draco_DataType_DT_INT64=function(){return(sd= +a._emscripten_enum_draco_DataType_DT_INT64=a.asm.emscripten_enum_draco_DataType_DT_INT64).apply(null,arguments)},td=a._emscripten_enum_draco_DataType_DT_UINT64=function(){return(td=a._emscripten_enum_draco_DataType_DT_UINT64=a.asm.emscripten_enum_draco_DataType_DT_UINT64).apply(null,arguments)},ud=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(ud=a._emscripten_enum_draco_DataType_DT_FLOAT32=a.asm.emscripten_enum_draco_DataType_DT_FLOAT32).apply(null,arguments)},vd=a._emscripten_enum_draco_DataType_DT_FLOAT64= +function(){return(vd=a._emscripten_enum_draco_DataType_DT_FLOAT64=a.asm.emscripten_enum_draco_DataType_DT_FLOAT64).apply(null,arguments)},wd=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return(wd=a._emscripten_enum_draco_DataType_DT_BOOL=a.asm.emscripten_enum_draco_DataType_DT_BOOL).apply(null,arguments)},xd=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(xd=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=a.asm.emscripten_enum_draco_DataType_DT_TYPES_COUNT).apply(null, +arguments)},yd=a._emscripten_enum_draco_StatusCode_OK=function(){return(yd=a._emscripten_enum_draco_StatusCode_OK=a.asm.emscripten_enum_draco_StatusCode_OK).apply(null,arguments)},zd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(zd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=a.asm.emscripten_enum_draco_StatusCode_DRACO_ERROR).apply(null,arguments)},Ad=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(Ad=a._emscripten_enum_draco_StatusCode_IO_ERROR=a.asm.emscripten_enum_draco_StatusCode_IO_ERROR).apply(null, +arguments)},Bd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(Bd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=a.asm.emscripten_enum_draco_StatusCode_INVALID_PARAMETER).apply(null,arguments)},Cd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(Cd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION).apply(null,arguments)},Dd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(Dd= +a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNKNOWN_VERSION).apply(null,arguments)};a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)};a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)};a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)};a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)};a._setThrew= +function(){return(a._setThrew=a.asm.setThrew).apply(null,arguments)};a._free=function(){return(a._free=a.asm.free).apply(null,arguments)};var ib=a._malloc=function(){return(ib=a._malloc=a.asm.malloc).apply(null,arguments)};a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)};var ua;pa=function b(){ua||fa();ua||(pa=b)};a.run=fa;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=r.size?(q(0>>=0;switch(c.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var f=0;fb.byteLength)return a.INVALID_GEOMETRY_TYPE;switch(b[7]){case 0:return a.POINT_CLOUD;case 1:return a.TRIANGULAR_MESH;default:return a.INVALID_GEOMETRY_TYPE}};return n.ready}}(); +"object"===typeof exports&&"object"===typeof module?module.exports=DracoDecoderModule:"function"===typeof define&&define.amd?define([],function(){return DracoDecoderModule}):"object"===typeof exports&&(exports.DracoDecoderModule=DracoDecoderModule); diff --git a/javascript/npm/draco3d/draco_encoder.wasm b/javascript/npm/draco3d/draco_encoder.wasm index de60d2aa..51398a36 100755 Binary files a/javascript/npm/draco3d/draco_encoder.wasm and b/javascript/npm/draco3d/draco_encoder.wasm differ diff --git a/javascript/npm/draco3d/draco_encoder_nodejs.js b/javascript/npm/draco3d/draco_encoder_nodejs.js index 7b152ba2..436dcc9e 100644 --- a/javascript/npm/draco3d/draco_encoder_nodejs.js +++ b/javascript/npm/draco3d/draco_encoder_nodejs.js @@ -1,100 +1,107 @@ -var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(g){var m=0;return function(){return mg?Math.max(p+g,0):Math.min(g,p);n=0>n?Math.max(p+n,0):Math.min(n,p);h=0>h?Math.max(p+h,0):Math.min(h,p);if(gn;)--h in this?this[--g]=this[h]:delete this[--g];return this}},"es6","es3"); -var DracoEncoderModule=function(){var g="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(g=g||__filename);return function(m){function p(r){return a.locateFile?a.locateFile(r,G):G+r}function n(a,d){a||l("Assertion failed: "+d)}function h(a,d){0>2]=a};this.get_type=function(){return B[this.ptr+A.TYPE_OFFSET>>2]};this.set_destructor=function(a){B[this.ptr+A.DESTRUCTOR_OFFSET>>2]=a};this.get_destructor=function(){return B[this.ptr+A.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(a){B[this.ptr+A.REFCOUNT_OFFSET>>2]=a};this.set_caught=function(a){H[this.ptr+A.CAUGHT_OFFSET>>0]=a?1:0};this.get_caught=function(){return 0!=H[this.ptr+A.CAUGHT_OFFSET>>0]};this.set_rethrown=function(a){H[this.ptr+A.RETHROWN_OFFSET>>0]=a?1:0};this.get_rethrown= -function(){return 0!=H[this.ptr+A.RETHROWN_OFFSET>>0]};this.init=function(a,b){this.set_type(a);this.set_destructor(b);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){B[this.ptr+A.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var a=B[this.ptr+A.REFCOUNT_OFFSET>>2];B[this.ptr+A.REFCOUNT_OFFSET>>2]=a-1;return 1===a}}function ca(){return 0=c&&(c=65536+((c&1023)<<10)|a.charCodeAt(++b)&1023);127>=c?++d:d=2047>=c?d+2:65535>=c?d+3:d+4}d=Array(d+1);b=0;c=d.length;if(0=f){var r=a.charCodeAt(++e);f=65536+((f&1023)<<10)|r&1023}if(127>=f){if(b>=c)break;d[b++]=f}else{if(2047>=f){if(b+1>=c)break;d[b++]=192|f>>6}else{if(65535>=f){if(b+2>=c)break;d[b++]=224|f>>12}else{if(b+3>=c)break;d[b++]=240|f>>18;d[b++]=128|f>>12&63}d[b++]=128|f>>6&63}d[b++]=128|f&63}}d[b]= -0}a=k.alloc(d,H);k.copy(d,H,a)}return a}function ia(a){if("object"===typeof a){var d=k.alloc(a,H);k.copy(a,H,d);return d}return a}function ja(a){if("object"===typeof a){var d=k.alloc(a,la);k.copy(a,la,d);return d}return a}function Q(a){if("object"===typeof a){var d=k.alloc(a,B);k.copy(a,B,d);return d}return a}function W(a){if("object"===typeof a){var d=k.alloc(a,na);k.copy(a,na,d);return d}return a}function M(){throw"cannot construct a VoidPtr, no constructor in IDL";}function J(){this.ptr=Fa();C(J)[this.ptr]= -this}function v(){this.ptr=Ga();C(v)[this.ptr]=this}function D(){this.ptr=Ha();C(D)[this.ptr]=this}function y(){this.ptr=Ia();C(y)[this.ptr]=this}function K(){this.ptr=Ja();C(K)[this.ptr]=this}function E(){this.ptr=Ka();C(E)[this.ptr]=this}function z(){this.ptr=La();C(z)[this.ptr]=this}function t(){this.ptr=Ma();C(t)[this.ptr]=this}function q(){this.ptr=Na();C(q)[this.ptr]=this}function u(){this.ptr=Oa();C(u)[this.ptr]=this}function w(a){a&&"object"===typeof a&&(a=a.ptr);this.ptr=Pa(a);C(w)[this.ptr]= -this}m=m||{};var a="undefined"!==typeof m?m:{},Ca,xa;a.ready=new Promise(function(a,d){Ca=a;xa=d});var Qa=!1,Ra=!1;a.onRuntimeInitialized=function(){Qa=!0;if(Ra&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){Ra=!0;if(Qa&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(a){if("string"!==typeof a)return!1;a=a.split(".");return 2>a.length||3=a[1]?!0:0!=a[0]||10>>=0;var d=ma.length;if(2147483648=b;b*=2){var c=d*(1+.2/b);c=Math.min(c,a+100663296);c=Math.min(2147483648,h(Math.max(16777216,a,c),65536));a:{try{Y.grow(c-da.byteLength+65535>>> -16);F(Y.buffer);var e=1;break a}catch(f){}e=void 0}if(e)return!0}return!1},environ_get:function(a,d){var b=0;L().forEach(function(c,e){var f=d+b;e=B[a+4*e>>2]=f;for(f=0;f>0]=c.charCodeAt(f);H[e>>0]=0;b+=c.length+1});return 0},environ_sizes_get:function(a,d){var b=L();B[a>>2]=b.length;var c=0;b.forEach(function(a){c+=a.length+1});B[d>>2]=c;return 0},memory:Y};(function(){function g(d,b){a.asm=d.exports;oa=a.asm.__indirect_function_table;P--;a.monitorRunDependencies&&a.monitorRunDependencies(P); -0==P&&(null!==va&&(clearInterval(va),va=null),Z&&(d=Z,Z=null,d()))}function d(a){g(a.instance)}function b(a){return S().then(function(a){return WebAssembly.instantiate(a,c)}).then(a,function(a){T("failed to asynchronously prepare wasm: "+a);l(a)})}var c={env:Wa,wasi_snapshot_preview1:Wa};P++;a.monitorRunDependencies&&a.monitorRunDependencies(P);if(a.instantiateWasm)try{return a.instantiateWasm(c,g)}catch(e){return T("Module.instantiateWasm callback failed with error: "+e),!1}(function(){if(U||"function"!== -typeof WebAssembly.instantiateStreaming||aa(I,"data:application/octet-stream;base64,")||aa(I,"file://")||"function"!==typeof fetch)return b(d);fetch(I,{credentials:"same-origin"}).then(function(a){return WebAssembly.instantiateStreaming(a,c).then(d,function(a){T("wasm streaming compile failed: "+a);T("falling back to ArrayBuffer instantiation");return b(d)})})})();return{}})();var Ua=a.___wasm_call_ctors=function(){return(Ua=a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)};a.___em_js__array_bounds_check_error= -function(){return(a.___em_js__array_bounds_check_error=a.asm.__em_js__array_bounds_check_error).apply(null,arguments)};var Xa=a._emscripten_bind_VoidPtr___destroy___0=function(){return(Xa=a._emscripten_bind_VoidPtr___destroy___0=a.asm.emscripten_bind_VoidPtr___destroy___0).apply(null,arguments)},Fa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Fa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0).apply(null, -arguments)},Ya=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(Ya=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.emscripten_bind_GeometryAttribute___destroy___0).apply(null,arguments)},Ga=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Ga=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.emscripten_bind_PointAttribute_PointAttribute_0).apply(null,arguments)},Za=a._emscripten_bind_PointAttribute_size_0=function(){return(Za=a._emscripten_bind_PointAttribute_size_0= -a.asm.emscripten_bind_PointAttribute_size_0).apply(null,arguments)},$a=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return($a=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.emscripten_bind_PointAttribute_attribute_type_0).apply(null,arguments)},ab=a._emscripten_bind_PointAttribute_data_type_0=function(){return(ab=a._emscripten_bind_PointAttribute_data_type_0=a.asm.emscripten_bind_PointAttribute_data_type_0).apply(null,arguments)},bb=a._emscripten_bind_PointAttribute_num_components_0= -function(){return(bb=a._emscripten_bind_PointAttribute_num_components_0=a.asm.emscripten_bind_PointAttribute_num_components_0).apply(null,arguments)},cb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(cb=a._emscripten_bind_PointAttribute_normalized_0=a.asm.emscripten_bind_PointAttribute_normalized_0).apply(null,arguments)},db=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(db=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.emscripten_bind_PointAttribute_byte_stride_0).apply(null, -arguments)},eb=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(eb=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.emscripten_bind_PointAttribute_byte_offset_0).apply(null,arguments)},fb=a._emscripten_bind_PointAttribute_unique_id_0=function(){return(fb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.emscripten_bind_PointAttribute_unique_id_0).apply(null,arguments)},gb=a._emscripten_bind_PointAttribute___destroy___0=function(){return(gb=a._emscripten_bind_PointAttribute___destroy___0= -a.asm.emscripten_bind_PointAttribute___destroy___0).apply(null,arguments)},Ha=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Ha=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.emscripten_bind_PointCloud_PointCloud_0).apply(null,arguments)},hb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(hb=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.emscripten_bind_PointCloud_num_attributes_0).apply(null,arguments)},ib=a._emscripten_bind_PointCloud_num_points_0=function(){return(ib= -a._emscripten_bind_PointCloud_num_points_0=a.asm.emscripten_bind_PointCloud_num_points_0).apply(null,arguments)},jb=a._emscripten_bind_PointCloud___destroy___0=function(){return(jb=a._emscripten_bind_PointCloud___destroy___0=a.asm.emscripten_bind_PointCloud___destroy___0).apply(null,arguments)},Ia=a._emscripten_bind_Mesh_Mesh_0=function(){return(Ia=a._emscripten_bind_Mesh_Mesh_0=a.asm.emscripten_bind_Mesh_Mesh_0).apply(null,arguments)},kb=a._emscripten_bind_Mesh_num_faces_0=function(){return(kb=a._emscripten_bind_Mesh_num_faces_0= -a.asm.emscripten_bind_Mesh_num_faces_0).apply(null,arguments)},lb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(lb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.emscripten_bind_Mesh_num_attributes_0).apply(null,arguments)},mb=a._emscripten_bind_Mesh_num_points_0=function(){return(mb=a._emscripten_bind_Mesh_num_points_0=a.asm.emscripten_bind_Mesh_num_points_0).apply(null,arguments)},nb=a._emscripten_bind_Mesh_set_num_points_1=function(){return(nb=a._emscripten_bind_Mesh_set_num_points_1= -a.asm.emscripten_bind_Mesh_set_num_points_1).apply(null,arguments)},ob=a._emscripten_bind_Mesh___destroy___0=function(){return(ob=a._emscripten_bind_Mesh___destroy___0=a.asm.emscripten_bind_Mesh___destroy___0).apply(null,arguments)},Ja=a._emscripten_bind_Metadata_Metadata_0=function(){return(Ja=a._emscripten_bind_Metadata_Metadata_0=a.asm.emscripten_bind_Metadata_Metadata_0).apply(null,arguments)},pb=a._emscripten_bind_Metadata___destroy___0=function(){return(pb=a._emscripten_bind_Metadata___destroy___0= -a.asm.emscripten_bind_Metadata___destroy___0).apply(null,arguments)},Ka=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Ka=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0).apply(null,arguments)},qb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(qb=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.emscripten_bind_DracoInt8Array_GetValue_1).apply(null,arguments)},rb=a._emscripten_bind_DracoInt8Array_size_0= -function(){return(rb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.emscripten_bind_DracoInt8Array_size_0).apply(null,arguments)},sb=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return(sb=a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.emscripten_bind_DracoInt8Array___destroy___0).apply(null,arguments)},La=a._emscripten_bind_MetadataBuilder_MetadataBuilder_0=function(){return(La=a._emscripten_bind_MetadataBuilder_MetadataBuilder_0=a.asm.emscripten_bind_MetadataBuilder_MetadataBuilder_0).apply(null, -arguments)},tb=a._emscripten_bind_MetadataBuilder_AddStringEntry_3=function(){return(tb=a._emscripten_bind_MetadataBuilder_AddStringEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddStringEntry_3).apply(null,arguments)},ub=a._emscripten_bind_MetadataBuilder_AddIntEntry_3=function(){return(ub=a._emscripten_bind_MetadataBuilder_AddIntEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddIntEntry_3).apply(null,arguments)},vb=a._emscripten_bind_MetadataBuilder_AddIntEntryArray_4=function(){return(vb=a._emscripten_bind_MetadataBuilder_AddIntEntryArray_4= -a.asm.emscripten_bind_MetadataBuilder_AddIntEntryArray_4).apply(null,arguments)},wb=a._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=function(){return(wb=a._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddDoubleEntry_3).apply(null,arguments)},xb=a._emscripten_bind_MetadataBuilder___destroy___0=function(){return(xb=a._emscripten_bind_MetadataBuilder___destroy___0=a.asm.emscripten_bind_MetadataBuilder___destroy___0).apply(null,arguments)},Ma=a._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0= -function(){return(Ma=a._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0=a.asm.emscripten_bind_PointCloudBuilder_PointCloudBuilder_0).apply(null,arguments)},yb=a._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=function(){return(yb=a._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddFloatAttribute_5).apply(null,arguments)},zb=a._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5=function(){return(zb=a._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5= -a.asm.emscripten_bind_PointCloudBuilder_AddInt8Attribute_5).apply(null,arguments)},Ab=a._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=function(){return(Ab=a._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5).apply(null,arguments)},Bb=a._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=function(){return(Bb=a._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt16Attribute_5).apply(null, -arguments)},Cb=a._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=function(){return(Cb=a._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5).apply(null,arguments)},Db=a._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5=function(){return(Db=a._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt32Attribute_5).apply(null,arguments)},Eb=a._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5= -function(){return(Eb=a._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5).apply(null,arguments)},Fb=a._emscripten_bind_PointCloudBuilder_AddMetadata_2=function(){return(Fb=a._emscripten_bind_PointCloudBuilder_AddMetadata_2=a.asm.emscripten_bind_PointCloudBuilder_AddMetadata_2).apply(null,arguments)},Gb=a._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3=function(){return(Gb=a._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3= -a.asm.emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3).apply(null,arguments)},Hb=a._emscripten_bind_PointCloudBuilder___destroy___0=function(){return(Hb=a._emscripten_bind_PointCloudBuilder___destroy___0=a.asm.emscripten_bind_PointCloudBuilder___destroy___0).apply(null,arguments)},Na=a._emscripten_bind_MeshBuilder_MeshBuilder_0=function(){return(Na=a._emscripten_bind_MeshBuilder_MeshBuilder_0=a.asm.emscripten_bind_MeshBuilder_MeshBuilder_0).apply(null,arguments)},Ib=a._emscripten_bind_MeshBuilder_AddFacesToMesh_3= -function(){return(Ib=a._emscripten_bind_MeshBuilder_AddFacesToMesh_3=a.asm.emscripten_bind_MeshBuilder_AddFacesToMesh_3).apply(null,arguments)},Jb=a._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5=function(){return(Jb=a._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5=a.asm.emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5).apply(null,arguments)},Kb=a._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5=function(){return(Kb=a._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5= -a.asm.emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5).apply(null,arguments)},Lb=a._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=function(){return(Lb=a._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=a.asm.emscripten_bind_MeshBuilder_AddMetadataToMesh_2).apply(null,arguments)},Mb=a._emscripten_bind_MeshBuilder_AddFloatAttribute_5=function(){return(Mb=a._emscripten_bind_MeshBuilder_AddFloatAttribute_5=a.asm.emscripten_bind_MeshBuilder_AddFloatAttribute_5).apply(null,arguments)},Nb=a._emscripten_bind_MeshBuilder_AddInt8Attribute_5= -function(){return(Nb=a._emscripten_bind_MeshBuilder_AddInt8Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt8Attribute_5).apply(null,arguments)},Ob=a._emscripten_bind_MeshBuilder_AddUInt8Attribute_5=function(){return(Ob=a._emscripten_bind_MeshBuilder_AddUInt8Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddUInt8Attribute_5).apply(null,arguments)},Pb=a._emscripten_bind_MeshBuilder_AddInt16Attribute_5=function(){return(Pb=a._emscripten_bind_MeshBuilder_AddInt16Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt16Attribute_5).apply(null, -arguments)},Qb=a._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=function(){return(Qb=a._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddUInt16Attribute_5).apply(null,arguments)},Rb=a._emscripten_bind_MeshBuilder_AddInt32Attribute_5=function(){return(Rb=a._emscripten_bind_MeshBuilder_AddInt32Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt32Attribute_5).apply(null,arguments)},Sb=a._emscripten_bind_MeshBuilder_AddUInt32Attribute_5=function(){return(Sb=a._emscripten_bind_MeshBuilder_AddUInt32Attribute_5= -a.asm.emscripten_bind_MeshBuilder_AddUInt32Attribute_5).apply(null,arguments)},Tb=a._emscripten_bind_MeshBuilder_AddMetadata_2=function(){return(Tb=a._emscripten_bind_MeshBuilder_AddMetadata_2=a.asm.emscripten_bind_MeshBuilder_AddMetadata_2).apply(null,arguments)},Ub=a._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=function(){return(Ub=a._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=a.asm.emscripten_bind_MeshBuilder_SetMetadataForAttribute_3).apply(null,arguments)},Vb=a._emscripten_bind_MeshBuilder___destroy___0= -function(){return(Vb=a._emscripten_bind_MeshBuilder___destroy___0=a.asm.emscripten_bind_MeshBuilder___destroy___0).apply(null,arguments)},Oa=a._emscripten_bind_Encoder_Encoder_0=function(){return(Oa=a._emscripten_bind_Encoder_Encoder_0=a.asm.emscripten_bind_Encoder_Encoder_0).apply(null,arguments)},Wb=a._emscripten_bind_Encoder_SetEncodingMethod_1=function(){return(Wb=a._emscripten_bind_Encoder_SetEncodingMethod_1=a.asm.emscripten_bind_Encoder_SetEncodingMethod_1).apply(null,arguments)},Xb=a._emscripten_bind_Encoder_SetAttributeQuantization_2= -function(){return(Xb=a._emscripten_bind_Encoder_SetAttributeQuantization_2=a.asm.emscripten_bind_Encoder_SetAttributeQuantization_2).apply(null,arguments)},Yb=a._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5=function(){return(Yb=a._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5=a.asm.emscripten_bind_Encoder_SetAttributeExplicitQuantization_5).apply(null,arguments)},Zb=a._emscripten_bind_Encoder_SetSpeedOptions_2=function(){return(Zb=a._emscripten_bind_Encoder_SetSpeedOptions_2= -a.asm.emscripten_bind_Encoder_SetSpeedOptions_2).apply(null,arguments)},$b=a._emscripten_bind_Encoder_SetTrackEncodedProperties_1=function(){return($b=a._emscripten_bind_Encoder_SetTrackEncodedProperties_1=a.asm.emscripten_bind_Encoder_SetTrackEncodedProperties_1).apply(null,arguments)},ac=a._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=function(){return(ac=a._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=a.asm.emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2).apply(null,arguments)},bc= -a._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=function(){return(bc=a._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=a.asm.emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3).apply(null,arguments)},cc=a._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0=function(){return(cc=a._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0=a.asm.emscripten_bind_Encoder_GetNumberOfEncodedPoints_0).apply(null,arguments)},dc=a._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=function(){return(dc= -a._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=a.asm.emscripten_bind_Encoder_GetNumberOfEncodedFaces_0).apply(null,arguments)},ec=a._emscripten_bind_Encoder___destroy___0=function(){return(ec=a._emscripten_bind_Encoder___destroy___0=a.asm.emscripten_bind_Encoder___destroy___0).apply(null,arguments)},Pa=a._emscripten_bind_ExpertEncoder_ExpertEncoder_1=function(){return(Pa=a._emscripten_bind_ExpertEncoder_ExpertEncoder_1=a.asm.emscripten_bind_ExpertEncoder_ExpertEncoder_1).apply(null,arguments)}, -fc=a._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=function(){return(fc=a._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=a.asm.emscripten_bind_ExpertEncoder_SetEncodingMethod_1).apply(null,arguments)},gc=a._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=function(){return(gc=a._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=a.asm.emscripten_bind_ExpertEncoder_SetAttributeQuantization_2).apply(null,arguments)},hc=a._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5= -function(){return(hc=a._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5=a.asm.emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5).apply(null,arguments)},ic=a._emscripten_bind_ExpertEncoder_SetSpeedOptions_2=function(){return(ic=a._emscripten_bind_ExpertEncoder_SetSpeedOptions_2=a.asm.emscripten_bind_ExpertEncoder_SetSpeedOptions_2).apply(null,arguments)},jc=a._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1=function(){return(jc=a._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1= -a.asm.emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1).apply(null,arguments)},kc=a._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=function(){return(kc=a._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=a.asm.emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2).apply(null,arguments)},lc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=function(){return(lc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=a.asm.emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0).apply(null, -arguments)},mc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=function(){return(mc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=a.asm.emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0).apply(null,arguments)},nc=a._emscripten_bind_ExpertEncoder___destroy___0=function(){return(nc=a._emscripten_bind_ExpertEncoder___destroy___0=a.asm.emscripten_bind_ExpertEncoder___destroy___0).apply(null,arguments)},oc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(oc= -a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID).apply(null,arguments)},pc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(pc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION).apply(null,arguments)},qc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(qc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL).apply(null, -arguments)},rc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(rc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR).apply(null,arguments)},sc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(sc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD).apply(null,arguments)},tc=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC= -function(){return(tc=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC).apply(null,arguments)},uc=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(uc=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE).apply(null,arguments)},vc=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(vc=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD= -a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD).apply(null,arguments)},wc=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(wc=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH).apply(null,arguments)},xc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=function(){return(xc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=a.asm.emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING).apply(null, -arguments)},yc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=function(){return(yc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=a.asm.emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING).apply(null,arguments)};a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)};a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)};a.stackRestore=function(){return(a.stackRestore= -a.asm.stackRestore).apply(null,arguments)};a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)};a._setThrew=function(){return(a._setThrew=a.asm.setThrew).apply(null,arguments)};a._free=function(){return(a._free=a.asm.free).apply(null,arguments)};var Va=a._malloc=function(){return(Va=a._malloc=a.asm.malloc).apply(null,arguments)},ha;Z=function d(){ha||ka();ha||(Z=d)};a.run=ka;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=k.size?(n(0>>=0;switch(b.BYTES_PER_ELEMENT){case 2:c>>>= -1;break;case 4:c>>>=2;break;case 8:c>>>=3}for(var d=0;dn?Math.max(C+n,0):Math.min(n,C);r=0>r?Math.max(C+r,0):Math.min(r,C);k=0>k?Math.max(C+k,0):Math.min(k,C);if(nr;)--k in this?this[--n]=this[k]:delete this[--n];return this}},"es6","es3"); +$jscomp.typedArrayCopyWithin=function(l){return l?l:Array.prototype.copyWithin};$jscomp.polyfill("Int8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); +$jscomp.polyfill("Uint16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float64Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); +var DracoEncoderModule=function(){var l="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(l=l||__filename);return function(p){function n(f){return a.locateFile?a.locateFile(f,N):N+f}function r(f,b){f||h("Assertion failed: "+b)}function k(f,b){0>2]=b};this.get_type=function(){return L[this.ptr+H.TYPE_OFFSET>>2]};this.set_destructor=function(b){L[this.ptr+H.DESTRUCTOR_OFFSET>>2]=b};this.get_destructor=function(){return L[this.ptr+H.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(b){L[this.ptr+H.REFCOUNT_OFFSET>>2]=b};this.set_caught=function(b){R[this.ptr+H.CAUGHT_OFFSET>>0]=b?1:0};this.get_caught=function(){return 0!=R[this.ptr+H.CAUGHT_OFFSET>>0]};this.set_rethrown=function(b){R[this.ptr+H.RETHROWN_OFFSET>>0]=b?1:0};this.get_rethrown= +function(){return 0!=R[this.ptr+H.RETHROWN_OFFSET>>0]};this.init=function(b,c){this.set_type(b);this.set_destructor(c);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){L[this.ptr+H.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var b=L[this.ptr+H.REFCOUNT_OFFSET>>2];L[this.ptr+H.REFCOUNT_OFFSET>>2]=b-1;return 1===b}}function I(){return 0=d&&(d=65536+((d&1023)<<10)|f.charCodeAt(++c)&1023);127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}b=Array(b+1);c=0;d=b.length;if(0=g){var t=f.charCodeAt(++e);g=65536+((g&1023)<<10)|t&1023}if(127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+ +2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18;b[c++]=128|g>>12&63}b[c++]=128|g>>6&63}b[c++]=128|g&63}}b[c]=0}f=m.alloc(b,R);m.copy(b,R,f);return f}return f}function ka(f){if("object"===typeof f){var b=m.alloc(f,R);m.copy(f,R,b);return b}return f}function la(f){if("object"===typeof f){var b=m.alloc(f,ma);m.copy(f,ma,b);return b}return f}function W(f){if("object"===typeof f){var b=m.alloc(f,L);m.copy(f,L,b);return b}return f}function ba(f){if("object"===typeof f){var b=m.alloc(f, +oa);m.copy(f,oa,b);return b}return f}function S(){throw"cannot construct a VoidPtr, no constructor in IDL";}function P(){this.ptr=Ea();D(P)[this.ptr]=this}function z(){this.ptr=Fa();D(z)[this.ptr]=this}function J(){this.ptr=Ga();D(J)[this.ptr]=this}function E(){this.ptr=Ha();D(E)[this.ptr]=this}function Q(){this.ptr=Ia();D(Q)[this.ptr]=this}function K(){this.ptr=Ja();D(K)[this.ptr]=this}function F(){this.ptr=Ka();D(F)[this.ptr]=this}function w(){this.ptr=La();D(w)[this.ptr]=this}function u(){this.ptr= +Ma();D(u)[this.ptr]=this}function x(){this.ptr=Na();D(x)[this.ptr]=this}function A(f){f&&"object"===typeof f&&(f=f.ptr);this.ptr=Oa(f);D(A)[this.ptr]=this}p=p||{};var a="undefined"!==typeof p?p:{},Ba,pa;a.ready=new Promise(function(f,b){Ba=f;pa=b});var Pa=!1,Qa=!1;a.onRuntimeInitialized=function(){Pa=!0;if(Qa&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){Qa=!0;if(Pa&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(f){if("string"!== +typeof f)return!1;f=f.split(".");return 2>f.length||3=f[1]?!0:0!=f[0]||10>>=0;var b=na.length;if(2147483648=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,f+100663296);d=Math.min(2147483648,k(Math.max(16777216, +f,d),65536));a:{try{da.grow(d-fa.byteLength+65535>>>16);C(da.buffer);var e=1;break a}catch(g){}e=void 0}if(e)return!0}return!1},memory:da};(function(){function f(e,g){a.asm=e.exports;qa=a.asm.__indirect_function_table;V--;a.monitorRunDependencies&&a.monitorRunDependencies(V);0==V&&(null!==wa&&(clearInterval(wa),wa=null),ea&&(e=ea,ea=null,e()))}function b(e){f(e.instance)}function c(e){return B().then(function(g){return WebAssembly.instantiate(g,d)}).then(e,function(g){Y("failed to asynchronously prepare wasm: "+ +g);h(g)})}var d={env:Va,wasi_snapshot_preview1:Va};V++;a.monitorRunDependencies&&a.monitorRunDependencies(V);if(a.instantiateWasm)try{return a.instantiateWasm(d,f)}catch(e){return Y("Module.instantiateWasm callback failed with error: "+e),!1}(function(){return Z||"function"!==typeof WebAssembly.instantiateStreaming||q(O,"data:application/octet-stream;base64,")||q(O,"file://")||"function"!==typeof fetch?c(b):fetch(O,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e, +d).then(b,function(g){Y("wasm streaming compile failed: "+g);Y("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(pa);return{}})();var Ta=a.___wasm_call_ctors=function(){return(Ta=a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)};a.___em_js__array_bounds_check_error=function(){return(a.___em_js__array_bounds_check_error=a.asm.__em_js__array_bounds_check_error).apply(null,arguments)};var Wa=a._emscripten_bind_VoidPtr___destroy___0=function(){return(Wa=a._emscripten_bind_VoidPtr___destroy___0= +a.asm.emscripten_bind_VoidPtr___destroy___0).apply(null,arguments)},Ea=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Ea=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0).apply(null,arguments)},Xa=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(Xa=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.emscripten_bind_GeometryAttribute___destroy___0).apply(null,arguments)},Fa=a._emscripten_bind_PointAttribute_PointAttribute_0= +function(){return(Fa=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.emscripten_bind_PointAttribute_PointAttribute_0).apply(null,arguments)},Ya=a._emscripten_bind_PointAttribute_size_0=function(){return(Ya=a._emscripten_bind_PointAttribute_size_0=a.asm.emscripten_bind_PointAttribute_size_0).apply(null,arguments)},Za=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return(Za=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.emscripten_bind_PointAttribute_attribute_type_0).apply(null, +arguments)},$a=a._emscripten_bind_PointAttribute_data_type_0=function(){return($a=a._emscripten_bind_PointAttribute_data_type_0=a.asm.emscripten_bind_PointAttribute_data_type_0).apply(null,arguments)},ab=a._emscripten_bind_PointAttribute_num_components_0=function(){return(ab=a._emscripten_bind_PointAttribute_num_components_0=a.asm.emscripten_bind_PointAttribute_num_components_0).apply(null,arguments)},bb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(bb=a._emscripten_bind_PointAttribute_normalized_0= +a.asm.emscripten_bind_PointAttribute_normalized_0).apply(null,arguments)},cb=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(cb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.emscripten_bind_PointAttribute_byte_stride_0).apply(null,arguments)},db=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(db=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.emscripten_bind_PointAttribute_byte_offset_0).apply(null,arguments)},eb=a._emscripten_bind_PointAttribute_unique_id_0= +function(){return(eb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.emscripten_bind_PointAttribute_unique_id_0).apply(null,arguments)},fb=a._emscripten_bind_PointAttribute___destroy___0=function(){return(fb=a._emscripten_bind_PointAttribute___destroy___0=a.asm.emscripten_bind_PointAttribute___destroy___0).apply(null,arguments)},Ga=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Ga=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.emscripten_bind_PointCloud_PointCloud_0).apply(null, +arguments)},gb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(gb=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.emscripten_bind_PointCloud_num_attributes_0).apply(null,arguments)},hb=a._emscripten_bind_PointCloud_num_points_0=function(){return(hb=a._emscripten_bind_PointCloud_num_points_0=a.asm.emscripten_bind_PointCloud_num_points_0).apply(null,arguments)},ib=a._emscripten_bind_PointCloud___destroy___0=function(){return(ib=a._emscripten_bind_PointCloud___destroy___0=a.asm.emscripten_bind_PointCloud___destroy___0).apply(null, +arguments)},Ha=a._emscripten_bind_Mesh_Mesh_0=function(){return(Ha=a._emscripten_bind_Mesh_Mesh_0=a.asm.emscripten_bind_Mesh_Mesh_0).apply(null,arguments)},jb=a._emscripten_bind_Mesh_num_faces_0=function(){return(jb=a._emscripten_bind_Mesh_num_faces_0=a.asm.emscripten_bind_Mesh_num_faces_0).apply(null,arguments)},kb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(kb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.emscripten_bind_Mesh_num_attributes_0).apply(null,arguments)},lb=a._emscripten_bind_Mesh_num_points_0= +function(){return(lb=a._emscripten_bind_Mesh_num_points_0=a.asm.emscripten_bind_Mesh_num_points_0).apply(null,arguments)},mb=a._emscripten_bind_Mesh_set_num_points_1=function(){return(mb=a._emscripten_bind_Mesh_set_num_points_1=a.asm.emscripten_bind_Mesh_set_num_points_1).apply(null,arguments)},nb=a._emscripten_bind_Mesh___destroy___0=function(){return(nb=a._emscripten_bind_Mesh___destroy___0=a.asm.emscripten_bind_Mesh___destroy___0).apply(null,arguments)},Ia=a._emscripten_bind_Metadata_Metadata_0= +function(){return(Ia=a._emscripten_bind_Metadata_Metadata_0=a.asm.emscripten_bind_Metadata_Metadata_0).apply(null,arguments)},ob=a._emscripten_bind_Metadata___destroy___0=function(){return(ob=a._emscripten_bind_Metadata___destroy___0=a.asm.emscripten_bind_Metadata___destroy___0).apply(null,arguments)},Ja=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Ja=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0).apply(null,arguments)}, +pb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(pb=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.emscripten_bind_DracoInt8Array_GetValue_1).apply(null,arguments)},qb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(qb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.emscripten_bind_DracoInt8Array_size_0).apply(null,arguments)},rb=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return(rb=a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.emscripten_bind_DracoInt8Array___destroy___0).apply(null, +arguments)},Ka=a._emscripten_bind_MetadataBuilder_MetadataBuilder_0=function(){return(Ka=a._emscripten_bind_MetadataBuilder_MetadataBuilder_0=a.asm.emscripten_bind_MetadataBuilder_MetadataBuilder_0).apply(null,arguments)},sb=a._emscripten_bind_MetadataBuilder_AddStringEntry_3=function(){return(sb=a._emscripten_bind_MetadataBuilder_AddStringEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddStringEntry_3).apply(null,arguments)},tb=a._emscripten_bind_MetadataBuilder_AddIntEntry_3=function(){return(tb= +a._emscripten_bind_MetadataBuilder_AddIntEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddIntEntry_3).apply(null,arguments)},ub=a._emscripten_bind_MetadataBuilder_AddIntEntryArray_4=function(){return(ub=a._emscripten_bind_MetadataBuilder_AddIntEntryArray_4=a.asm.emscripten_bind_MetadataBuilder_AddIntEntryArray_4).apply(null,arguments)},vb=a._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=function(){return(vb=a._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddDoubleEntry_3).apply(null, +arguments)},wb=a._emscripten_bind_MetadataBuilder___destroy___0=function(){return(wb=a._emscripten_bind_MetadataBuilder___destroy___0=a.asm.emscripten_bind_MetadataBuilder___destroy___0).apply(null,arguments)},La=a._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0=function(){return(La=a._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0=a.asm.emscripten_bind_PointCloudBuilder_PointCloudBuilder_0).apply(null,arguments)},xb=a._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=function(){return(xb= +a._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddFloatAttribute_5).apply(null,arguments)},yb=a._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5=function(){return(yb=a._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt8Attribute_5).apply(null,arguments)},zb=a._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=function(){return(zb=a._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5).apply(null, +arguments)},Ab=a._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=function(){return(Ab=a._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt16Attribute_5).apply(null,arguments)},Bb=a._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=function(){return(Bb=a._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5).apply(null,arguments)},Cb=a._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5= +function(){return(Cb=a._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt32Attribute_5).apply(null,arguments)},Db=a._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5=function(){return(Db=a._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5).apply(null,arguments)},Eb=a._emscripten_bind_PointCloudBuilder_AddMetadata_2=function(){return(Eb=a._emscripten_bind_PointCloudBuilder_AddMetadata_2= +a.asm.emscripten_bind_PointCloudBuilder_AddMetadata_2).apply(null,arguments)},Fb=a._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3=function(){return(Fb=a._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3=a.asm.emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3).apply(null,arguments)},Gb=a._emscripten_bind_PointCloudBuilder___destroy___0=function(){return(Gb=a._emscripten_bind_PointCloudBuilder___destroy___0=a.asm.emscripten_bind_PointCloudBuilder___destroy___0).apply(null, +arguments)},Ma=a._emscripten_bind_MeshBuilder_MeshBuilder_0=function(){return(Ma=a._emscripten_bind_MeshBuilder_MeshBuilder_0=a.asm.emscripten_bind_MeshBuilder_MeshBuilder_0).apply(null,arguments)},Hb=a._emscripten_bind_MeshBuilder_AddFacesToMesh_3=function(){return(Hb=a._emscripten_bind_MeshBuilder_AddFacesToMesh_3=a.asm.emscripten_bind_MeshBuilder_AddFacesToMesh_3).apply(null,arguments)},Ib=a._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5=function(){return(Ib=a._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5= +a.asm.emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5).apply(null,arguments)},Jb=a._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5=function(){return(Jb=a._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5=a.asm.emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5).apply(null,arguments)},Kb=a._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=function(){return(Kb=a._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=a.asm.emscripten_bind_MeshBuilder_AddMetadataToMesh_2).apply(null,arguments)}, +Lb=a._emscripten_bind_MeshBuilder_AddFloatAttribute_5=function(){return(Lb=a._emscripten_bind_MeshBuilder_AddFloatAttribute_5=a.asm.emscripten_bind_MeshBuilder_AddFloatAttribute_5).apply(null,arguments)},Mb=a._emscripten_bind_MeshBuilder_AddInt8Attribute_5=function(){return(Mb=a._emscripten_bind_MeshBuilder_AddInt8Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt8Attribute_5).apply(null,arguments)},Nb=a._emscripten_bind_MeshBuilder_AddUInt8Attribute_5=function(){return(Nb=a._emscripten_bind_MeshBuilder_AddUInt8Attribute_5= +a.asm.emscripten_bind_MeshBuilder_AddUInt8Attribute_5).apply(null,arguments)},Ob=a._emscripten_bind_MeshBuilder_AddInt16Attribute_5=function(){return(Ob=a._emscripten_bind_MeshBuilder_AddInt16Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt16Attribute_5).apply(null,arguments)},Pb=a._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=function(){return(Pb=a._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddUInt16Attribute_5).apply(null,arguments)},Qb=a._emscripten_bind_MeshBuilder_AddInt32Attribute_5= +function(){return(Qb=a._emscripten_bind_MeshBuilder_AddInt32Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt32Attribute_5).apply(null,arguments)},Rb=a._emscripten_bind_MeshBuilder_AddUInt32Attribute_5=function(){return(Rb=a._emscripten_bind_MeshBuilder_AddUInt32Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddUInt32Attribute_5).apply(null,arguments)},Sb=a._emscripten_bind_MeshBuilder_AddMetadata_2=function(){return(Sb=a._emscripten_bind_MeshBuilder_AddMetadata_2=a.asm.emscripten_bind_MeshBuilder_AddMetadata_2).apply(null, +arguments)},Tb=a._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=function(){return(Tb=a._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=a.asm.emscripten_bind_MeshBuilder_SetMetadataForAttribute_3).apply(null,arguments)},Ub=a._emscripten_bind_MeshBuilder___destroy___0=function(){return(Ub=a._emscripten_bind_MeshBuilder___destroy___0=a.asm.emscripten_bind_MeshBuilder___destroy___0).apply(null,arguments)},Na=a._emscripten_bind_Encoder_Encoder_0=function(){return(Na=a._emscripten_bind_Encoder_Encoder_0= +a.asm.emscripten_bind_Encoder_Encoder_0).apply(null,arguments)},Vb=a._emscripten_bind_Encoder_SetEncodingMethod_1=function(){return(Vb=a._emscripten_bind_Encoder_SetEncodingMethod_1=a.asm.emscripten_bind_Encoder_SetEncodingMethod_1).apply(null,arguments)},Wb=a._emscripten_bind_Encoder_SetAttributeQuantization_2=function(){return(Wb=a._emscripten_bind_Encoder_SetAttributeQuantization_2=a.asm.emscripten_bind_Encoder_SetAttributeQuantization_2).apply(null,arguments)},Xb=a._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5= +function(){return(Xb=a._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5=a.asm.emscripten_bind_Encoder_SetAttributeExplicitQuantization_5).apply(null,arguments)},Yb=a._emscripten_bind_Encoder_SetSpeedOptions_2=function(){return(Yb=a._emscripten_bind_Encoder_SetSpeedOptions_2=a.asm.emscripten_bind_Encoder_SetSpeedOptions_2).apply(null,arguments)},Zb=a._emscripten_bind_Encoder_SetTrackEncodedProperties_1=function(){return(Zb=a._emscripten_bind_Encoder_SetTrackEncodedProperties_1=a.asm.emscripten_bind_Encoder_SetTrackEncodedProperties_1).apply(null, +arguments)},$b=a._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=function(){return($b=a._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=a.asm.emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2).apply(null,arguments)},ac=a._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=function(){return(ac=a._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=a.asm.emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3).apply(null,arguments)},bc=a._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0= +function(){return(bc=a._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0=a.asm.emscripten_bind_Encoder_GetNumberOfEncodedPoints_0).apply(null,arguments)},cc=a._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=function(){return(cc=a._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=a.asm.emscripten_bind_Encoder_GetNumberOfEncodedFaces_0).apply(null,arguments)},dc=a._emscripten_bind_Encoder___destroy___0=function(){return(dc=a._emscripten_bind_Encoder___destroy___0=a.asm.emscripten_bind_Encoder___destroy___0).apply(null, +arguments)},Oa=a._emscripten_bind_ExpertEncoder_ExpertEncoder_1=function(){return(Oa=a._emscripten_bind_ExpertEncoder_ExpertEncoder_1=a.asm.emscripten_bind_ExpertEncoder_ExpertEncoder_1).apply(null,arguments)},ec=a._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=function(){return(ec=a._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=a.asm.emscripten_bind_ExpertEncoder_SetEncodingMethod_1).apply(null,arguments)},fc=a._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=function(){return(fc= +a._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=a.asm.emscripten_bind_ExpertEncoder_SetAttributeQuantization_2).apply(null,arguments)},gc=a._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5=function(){return(gc=a._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5=a.asm.emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5).apply(null,arguments)},hc=a._emscripten_bind_ExpertEncoder_SetSpeedOptions_2=function(){return(hc=a._emscripten_bind_ExpertEncoder_SetSpeedOptions_2= +a.asm.emscripten_bind_ExpertEncoder_SetSpeedOptions_2).apply(null,arguments)},ic=a._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1=function(){return(ic=a._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1=a.asm.emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1).apply(null,arguments)},jc=a._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=function(){return(jc=a._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=a.asm.emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2).apply(null, +arguments)},kc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=function(){return(kc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=a.asm.emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0).apply(null,arguments)},lc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=function(){return(lc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=a.asm.emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0).apply(null,arguments)},mc=a._emscripten_bind_ExpertEncoder___destroy___0= +function(){return(mc=a._emscripten_bind_ExpertEncoder___destroy___0=a.asm.emscripten_bind_ExpertEncoder___destroy___0).apply(null,arguments)},nc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(nc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID).apply(null,arguments)},oc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(oc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION).apply(null, +arguments)},pc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(pc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL).apply(null,arguments)},qc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(qc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR).apply(null,arguments)},rc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD= +function(){return(rc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD).apply(null,arguments)},sc=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return(sc=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC).apply(null,arguments)},tc=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(tc=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE= +a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE).apply(null,arguments)},uc=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(uc=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD).apply(null,arguments)},vc=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(vc=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH).apply(null, +arguments)},wc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=function(){return(wc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=a.asm.emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING).apply(null,arguments)},xc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=function(){return(xc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=a.asm.emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING).apply(null, +arguments)};a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)};a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)};a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)};a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)};a._setThrew=function(){return(a._setThrew=a.asm.setThrew).apply(null,arguments)};a._free=function(){return(a._free=a.asm.free).apply(null, +arguments)};var Ua=a._malloc=function(){return(Ua=a._malloc=a.asm.malloc).apply(null,arguments)},ja;ea=function b(){ja||M();ja||(ea=b)};a.run=M;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=m.size?(r(0>>=0;switch(c.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var e=0;ee?Math.max(p+e,0):Math.min(e,p);m=0>m?Math.max(p+m,0):Math.min(m,p);f=0>f?Math.max(p+f,0):Math.min(f,p);if(em;)--f in this?this[--e]=this[f]:delete this[--e];return this}},"es6","es3"); -var DracoDecoderModule=function(){var e="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(e=e||__filename);return function(k){function p(l){return a.locateFile?a.locateFile(l,O):O+l}function m(a,c){a||K("Assertion failed: "+c)}function f(a,c){if(a){var b=ka;var d=a+c;for(c=a;b[c]&&!(c>=d);)++c;if(16l?d+=String.fromCharCode(l):(l-=65536,d+=String.fromCharCode(55296|l>>10,56320|l&1023))}}else d+=String.fromCharCode(l)}b=d}}else b="";return b}function S(a,c){0>2]=a};this.get_type=function(){return I[this.ptr+ -x.TYPE_OFFSET>>2]};this.set_destructor=function(a){I[this.ptr+x.DESTRUCTOR_OFFSET>>2]=a};this.get_destructor=function(){return I[this.ptr+x.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(a){I[this.ptr+x.REFCOUNT_OFFSET>>2]=a};this.set_caught=function(a){P[this.ptr+x.CAUGHT_OFFSET>>0]=a?1:0};this.get_caught=function(){return 0!=P[this.ptr+x.CAUGHT_OFFSET>>0]};this.set_rethrown=function(a){P[this.ptr+x.RETHROWN_OFFSET>>0]=a?1:0};this.get_rethrown=function(){return 0!=P[this.ptr+x.RETHROWN_OFFSET>> -0]};this.init=function(a,b){this.set_type(a);this.set_destructor(b);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){I[this.ptr+x.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var a=I[this.ptr+x.REFCOUNT_OFFSET>>2];I[this.ptr+x.REFCOUNT_OFFSET>>2]=a-1;return 1===a}}function ia(){return 0=d&&(d=65536+((d&1023)<< -10)|a.charCodeAt(++b)&1023);127>=d?++c:c=2047>=d?c+2:65535>=d?c+3:c+4}c=Array(c+1);b=0;d=c.length;if(0=e){var f=a.charCodeAt(++l);e=65536+((e&1023)<<10)|f&1023}if(127>=e){if(b>=d)break;c[b++]=e}else{if(2047>=e){if(b+1>=d)break;c[b++]=192|e>>6}else{if(65535>=e){if(b+2>=d)break;c[b++]=224|e>>12}else{if(b+3>=d)break;c[b++]=240|e>>18;c[b++]=128|e>>12&63}c[b++]=128|e>>6&63}c[b++]=128|e&63}}c[b]=0}a=n.alloc(c,P);n.copy(c,P, -a)}return a}function ra(a){if("object"===typeof a){var c=n.alloc(a,P);n.copy(a,P,c);return c}return a}function T(){throw"cannot construct a VoidPtr, no constructor in IDL";}function M(){this.ptr=Ha();u(M)[this.ptr]=this}function J(){this.ptr=Ia();u(J)[this.ptr]=this}function R(){this.ptr=Ja();u(R)[this.ptr]=this}function r(){this.ptr=Ka();u(r)[this.ptr]=this}function w(){this.ptr=La();u(w)[this.ptr]=this}function z(){this.ptr=Ma();u(z)[this.ptr]=this}function A(){this.ptr=Na();u(A)[this.ptr]=this} -function y(){this.ptr=Oa();u(y)[this.ptr]=this}function N(){this.ptr=Pa();u(N)[this.ptr]=this}function v(){throw"cannot construct a Status, no constructor in IDL";}function B(){this.ptr=Qa();u(B)[this.ptr]=this}function C(){this.ptr=Ra();u(C)[this.ptr]=this}function D(){this.ptr=Sa();u(D)[this.ptr]=this}function E(){this.ptr=Ta();u(E)[this.ptr]=this}function F(){this.ptr=Ua();u(F)[this.ptr]=this}function G(){this.ptr=Va();u(G)[this.ptr]=this}function H(){this.ptr=Wa();u(H)[this.ptr]=this}function t(){this.ptr= -Xa();u(t)[this.ptr]=this}function g(){this.ptr=Ya();u(g)[this.ptr]=this}k=k||{};var a="undefined"!==typeof k?k:{},Ea,za;a.ready=new Promise(function(a,c){Ea=a;za=c});var Za=!1,$a=!1;a.onRuntimeInitialized=function(){Za=!0;if($a&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){$a=!0;if(Za&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(a){if("string"!==typeof a)return!1;a=a.split(".");return 2>a.length||3=a[1]?!0:0!=a[0]||10>>=0;var c=ka.length;if(2147483648=b;b*=2){var d=c*(1+.2/b);d= -Math.min(d,a+100663296);d=Math.min(2147483648,S(Math.max(16777216,a,d),65536));a:{try{fa.grow(d-la.byteLength+65535>>>16);h(fa.buffer);var e=1;break a}catch(Bd){}e=void 0}if(e)return!0}return!1},environ_get:function(a,c){var b=0;aa().forEach(function(d,e){var f=c+b;e=I[a+4*e>>2]=f;for(f=0;f>0]=d.charCodeAt(f);P[e>>0]=0;b+=d.length+1});return 0},environ_sizes_get:function(a,c){var b=aa();I[a>>2]=b.length;var d=0;b.forEach(function(a){d+=a.length+1});I[c>>2]=d;return 0},memory:fa}; -(function(){function e(c,b){a.asm=c.exports;pa=a.asm.__indirect_function_table;Y--;a.monitorRunDependencies&&a.monitorRunDependencies(Y);0==Y&&(null!==wa&&(clearInterval(wa),wa=null),ha&&(c=ha,ha=null,c()))}function c(a){e(a.instance)}function b(a){return yd().then(function(a){return WebAssembly.instantiate(a,d)}).then(a,function(a){ca("failed to asynchronously prepare wasm: "+a);K(a)})}var d={env:eb,wasi_snapshot_preview1:eb};Y++;a.monitorRunDependencies&&a.monitorRunDependencies(Y);if(a.instantiateWasm)try{return a.instantiateWasm(d, -e)}catch(Ad){return ca("Module.instantiateWasm callback failed with error: "+Ad),!1}(function(){if(da||"function"!==typeof WebAssembly.instantiateStreaming||U(Q,"data:application/octet-stream;base64,")||U(Q,"file://")||"function"!==typeof fetch)return b(c);fetch(Q,{credentials:"same-origin"}).then(function(a){return WebAssembly.instantiateStreaming(a,d).then(c,function(a){ca("wasm streaming compile failed: "+a);ca("falling back to ArrayBuffer instantiation");return b(c)})})})();return{}})();var cb= -a.___wasm_call_ctors=function(){return(cb=a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)};a.___em_js__array_bounds_check_error=function(){return(a.___em_js__array_bounds_check_error=a.asm.__em_js__array_bounds_check_error).apply(null,arguments)};var fb=a._emscripten_bind_VoidPtr___destroy___0=function(){return(fb=a._emscripten_bind_VoidPtr___destroy___0=a.asm.emscripten_bind_VoidPtr___destroy___0).apply(null,arguments)},Ha=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(Ha= -a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=a.asm.emscripten_bind_DecoderBuffer_DecoderBuffer_0).apply(null,arguments)},gb=a._emscripten_bind_DecoderBuffer_Init_2=function(){return(gb=a._emscripten_bind_DecoderBuffer_Init_2=a.asm.emscripten_bind_DecoderBuffer_Init_2).apply(null,arguments)},hb=a._emscripten_bind_DecoderBuffer___destroy___0=function(){return(hb=a._emscripten_bind_DecoderBuffer___destroy___0=a.asm.emscripten_bind_DecoderBuffer___destroy___0).apply(null,arguments)},Ia=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0= -function(){return(Ia=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=a.asm.emscripten_bind_AttributeTransformData_AttributeTransformData_0).apply(null,arguments)},ib=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(ib=a._emscripten_bind_AttributeTransformData_transform_type_0=a.asm.emscripten_bind_AttributeTransformData_transform_type_0).apply(null,arguments)},jb=a._emscripten_bind_AttributeTransformData___destroy___0=function(){return(jb=a._emscripten_bind_AttributeTransformData___destroy___0= -a.asm.emscripten_bind_AttributeTransformData___destroy___0).apply(null,arguments)},Ja=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Ja=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0).apply(null,arguments)},kb=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(kb=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.emscripten_bind_GeometryAttribute___destroy___0).apply(null,arguments)}, -Ka=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Ka=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.emscripten_bind_PointAttribute_PointAttribute_0).apply(null,arguments)},lb=a._emscripten_bind_PointAttribute_size_0=function(){return(lb=a._emscripten_bind_PointAttribute_size_0=a.asm.emscripten_bind_PointAttribute_size_0).apply(null,arguments)},mb=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(mb=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0= -a.asm.emscripten_bind_PointAttribute_GetAttributeTransformData_0).apply(null,arguments)},nb=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return(nb=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.emscripten_bind_PointAttribute_attribute_type_0).apply(null,arguments)},ob=a._emscripten_bind_PointAttribute_data_type_0=function(){return(ob=a._emscripten_bind_PointAttribute_data_type_0=a.asm.emscripten_bind_PointAttribute_data_type_0).apply(null,arguments)},pb=a._emscripten_bind_PointAttribute_num_components_0= -function(){return(pb=a._emscripten_bind_PointAttribute_num_components_0=a.asm.emscripten_bind_PointAttribute_num_components_0).apply(null,arguments)},qb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(qb=a._emscripten_bind_PointAttribute_normalized_0=a.asm.emscripten_bind_PointAttribute_normalized_0).apply(null,arguments)},rb=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(rb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.emscripten_bind_PointAttribute_byte_stride_0).apply(null, -arguments)},sb=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(sb=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.emscripten_bind_PointAttribute_byte_offset_0).apply(null,arguments)},tb=a._emscripten_bind_PointAttribute_unique_id_0=function(){return(tb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.emscripten_bind_PointAttribute_unique_id_0).apply(null,arguments)},ub=a._emscripten_bind_PointAttribute___destroy___0=function(){return(ub=a._emscripten_bind_PointAttribute___destroy___0= -a.asm.emscripten_bind_PointAttribute___destroy___0).apply(null,arguments)},La=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(La=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=a.asm.emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0).apply(null,arguments)},vb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(vb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1= -a.asm.emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1).apply(null,arguments)},wb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return(wb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=a.asm.emscripten_bind_AttributeQuantizationTransform_quantization_bits_0).apply(null,arguments)},xb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(xb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1= -a.asm.emscripten_bind_AttributeQuantizationTransform_min_value_1).apply(null,arguments)},yb=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(yb=a._emscripten_bind_AttributeQuantizationTransform_range_0=a.asm.emscripten_bind_AttributeQuantizationTransform_range_0).apply(null,arguments)},zb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return(zb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=a.asm.emscripten_bind_AttributeQuantizationTransform___destroy___0).apply(null, -arguments)},Ma=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Ma=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=a.asm.emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0).apply(null,arguments)},Ab=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return(Ab=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=a.asm.emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1).apply(null, -arguments)},Bb=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(Bb=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=a.asm.emscripten_bind_AttributeOctahedronTransform_quantization_bits_0).apply(null,arguments)},Cb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Cb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=a.asm.emscripten_bind_AttributeOctahedronTransform___destroy___0).apply(null,arguments)}, -Na=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Na=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.emscripten_bind_PointCloud_PointCloud_0).apply(null,arguments)},Db=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(Db=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.emscripten_bind_PointCloud_num_attributes_0).apply(null,arguments)},Eb=a._emscripten_bind_PointCloud_num_points_0=function(){return(Eb=a._emscripten_bind_PointCloud_num_points_0=a.asm.emscripten_bind_PointCloud_num_points_0).apply(null, -arguments)},Fb=a._emscripten_bind_PointCloud___destroy___0=function(){return(Fb=a._emscripten_bind_PointCloud___destroy___0=a.asm.emscripten_bind_PointCloud___destroy___0).apply(null,arguments)},Oa=a._emscripten_bind_Mesh_Mesh_0=function(){return(Oa=a._emscripten_bind_Mesh_Mesh_0=a.asm.emscripten_bind_Mesh_Mesh_0).apply(null,arguments)},Gb=a._emscripten_bind_Mesh_num_faces_0=function(){return(Gb=a._emscripten_bind_Mesh_num_faces_0=a.asm.emscripten_bind_Mesh_num_faces_0).apply(null,arguments)},Hb= -a._emscripten_bind_Mesh_num_attributes_0=function(){return(Hb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.emscripten_bind_Mesh_num_attributes_0).apply(null,arguments)},Ib=a._emscripten_bind_Mesh_num_points_0=function(){return(Ib=a._emscripten_bind_Mesh_num_points_0=a.asm.emscripten_bind_Mesh_num_points_0).apply(null,arguments)},Jb=a._emscripten_bind_Mesh___destroy___0=function(){return(Jb=a._emscripten_bind_Mesh___destroy___0=a.asm.emscripten_bind_Mesh___destroy___0).apply(null,arguments)},Pa= -a._emscripten_bind_Metadata_Metadata_0=function(){return(Pa=a._emscripten_bind_Metadata_Metadata_0=a.asm.emscripten_bind_Metadata_Metadata_0).apply(null,arguments)},Kb=a._emscripten_bind_Metadata___destroy___0=function(){return(Kb=a._emscripten_bind_Metadata___destroy___0=a.asm.emscripten_bind_Metadata___destroy___0).apply(null,arguments)},Lb=a._emscripten_bind_Status_code_0=function(){return(Lb=a._emscripten_bind_Status_code_0=a.asm.emscripten_bind_Status_code_0).apply(null,arguments)},Mb=a._emscripten_bind_Status_ok_0= -function(){return(Mb=a._emscripten_bind_Status_ok_0=a.asm.emscripten_bind_Status_ok_0).apply(null,arguments)},Nb=a._emscripten_bind_Status_error_msg_0=function(){return(Nb=a._emscripten_bind_Status_error_msg_0=a.asm.emscripten_bind_Status_error_msg_0).apply(null,arguments)},Ob=a._emscripten_bind_Status___destroy___0=function(){return(Ob=a._emscripten_bind_Status___destroy___0=a.asm.emscripten_bind_Status___destroy___0).apply(null,arguments)},Qa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0= -function(){return(Qa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=a.asm.emscripten_bind_DracoFloat32Array_DracoFloat32Array_0).apply(null,arguments)},Pb=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(Pb=a._emscripten_bind_DracoFloat32Array_GetValue_1=a.asm.emscripten_bind_DracoFloat32Array_GetValue_1).apply(null,arguments)},Qb=a._emscripten_bind_DracoFloat32Array_size_0=function(){return(Qb=a._emscripten_bind_DracoFloat32Array_size_0=a.asm.emscripten_bind_DracoFloat32Array_size_0).apply(null, -arguments)},Rb=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(Rb=a._emscripten_bind_DracoFloat32Array___destroy___0=a.asm.emscripten_bind_DracoFloat32Array___destroy___0).apply(null,arguments)},Ra=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Ra=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0).apply(null,arguments)},Sb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(Sb=a._emscripten_bind_DracoInt8Array_GetValue_1= -a.asm.emscripten_bind_DracoInt8Array_GetValue_1).apply(null,arguments)},Tb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(Tb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.emscripten_bind_DracoInt8Array_size_0).apply(null,arguments)},Ub=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return(Ub=a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.emscripten_bind_DracoInt8Array___destroy___0).apply(null,arguments)},Sa=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(Sa= -a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=a.asm.emscripten_bind_DracoUInt8Array_DracoUInt8Array_0).apply(null,arguments)},Vb=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(Vb=a._emscripten_bind_DracoUInt8Array_GetValue_1=a.asm.emscripten_bind_DracoUInt8Array_GetValue_1).apply(null,arguments)},Wb=a._emscripten_bind_DracoUInt8Array_size_0=function(){return(Wb=a._emscripten_bind_DracoUInt8Array_size_0=a.asm.emscripten_bind_DracoUInt8Array_size_0).apply(null,arguments)},Xb= -a._emscripten_bind_DracoUInt8Array___destroy___0=function(){return(Xb=a._emscripten_bind_DracoUInt8Array___destroy___0=a.asm.emscripten_bind_DracoUInt8Array___destroy___0).apply(null,arguments)},Ta=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(Ta=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=a.asm.emscripten_bind_DracoInt16Array_DracoInt16Array_0).apply(null,arguments)},Yb=a._emscripten_bind_DracoInt16Array_GetValue_1=function(){return(Yb=a._emscripten_bind_DracoInt16Array_GetValue_1= -a.asm.emscripten_bind_DracoInt16Array_GetValue_1).apply(null,arguments)},Zb=a._emscripten_bind_DracoInt16Array_size_0=function(){return(Zb=a._emscripten_bind_DracoInt16Array_size_0=a.asm.emscripten_bind_DracoInt16Array_size_0).apply(null,arguments)},$b=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return($b=a._emscripten_bind_DracoInt16Array___destroy___0=a.asm.emscripten_bind_DracoInt16Array___destroy___0).apply(null,arguments)},Ua=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0= -function(){return(Ua=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=a.asm.emscripten_bind_DracoUInt16Array_DracoUInt16Array_0).apply(null,arguments)},ac=a._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return(ac=a._emscripten_bind_DracoUInt16Array_GetValue_1=a.asm.emscripten_bind_DracoUInt16Array_GetValue_1).apply(null,arguments)},bc=a._emscripten_bind_DracoUInt16Array_size_0=function(){return(bc=a._emscripten_bind_DracoUInt16Array_size_0=a.asm.emscripten_bind_DracoUInt16Array_size_0).apply(null, -arguments)},cc=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(cc=a._emscripten_bind_DracoUInt16Array___destroy___0=a.asm.emscripten_bind_DracoUInt16Array___destroy___0).apply(null,arguments)},Va=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return(Va=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=a.asm.emscripten_bind_DracoInt32Array_DracoInt32Array_0).apply(null,arguments)},dc=a._emscripten_bind_DracoInt32Array_GetValue_1=function(){return(dc=a._emscripten_bind_DracoInt32Array_GetValue_1= -a.asm.emscripten_bind_DracoInt32Array_GetValue_1).apply(null,arguments)},ec=a._emscripten_bind_DracoInt32Array_size_0=function(){return(ec=a._emscripten_bind_DracoInt32Array_size_0=a.asm.emscripten_bind_DracoInt32Array_size_0).apply(null,arguments)},fc=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return(fc=a._emscripten_bind_DracoInt32Array___destroy___0=a.asm.emscripten_bind_DracoInt32Array___destroy___0).apply(null,arguments)},Wa=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0= -function(){return(Wa=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=a.asm.emscripten_bind_DracoUInt32Array_DracoUInt32Array_0).apply(null,arguments)},gc=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return(gc=a._emscripten_bind_DracoUInt32Array_GetValue_1=a.asm.emscripten_bind_DracoUInt32Array_GetValue_1).apply(null,arguments)},hc=a._emscripten_bind_DracoUInt32Array_size_0=function(){return(hc=a._emscripten_bind_DracoUInt32Array_size_0=a.asm.emscripten_bind_DracoUInt32Array_size_0).apply(null, -arguments)},ic=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(ic=a._emscripten_bind_DracoUInt32Array___destroy___0=a.asm.emscripten_bind_DracoUInt32Array___destroy___0).apply(null,arguments)},Xa=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return(Xa=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=a.asm.emscripten_bind_MetadataQuerier_MetadataQuerier_0).apply(null,arguments)},jc=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(jc=a._emscripten_bind_MetadataQuerier_HasEntry_2= -a.asm.emscripten_bind_MetadataQuerier_HasEntry_2).apply(null,arguments)},kc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(kc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetIntEntry_2).apply(null,arguments)},lc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=function(){return(lc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=a.asm.emscripten_bind_MetadataQuerier_GetIntEntryArray_3).apply(null,arguments)},mc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2= -function(){return(mc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetDoubleEntry_2).apply(null,arguments)},nc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(nc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetStringEntry_2).apply(null,arguments)},oc=a._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return(oc=a._emscripten_bind_MetadataQuerier_NumEntries_1=a.asm.emscripten_bind_MetadataQuerier_NumEntries_1).apply(null, -arguments)},pc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(pc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=a.asm.emscripten_bind_MetadataQuerier_GetEntryName_2).apply(null,arguments)},qc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return(qc=a._emscripten_bind_MetadataQuerier___destroy___0=a.asm.emscripten_bind_MetadataQuerier___destroy___0).apply(null,arguments)},Ya=a._emscripten_bind_Decoder_Decoder_0=function(){return(Ya=a._emscripten_bind_Decoder_Decoder_0= -a.asm.emscripten_bind_Decoder_Decoder_0).apply(null,arguments)},rc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(rc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=a.asm.emscripten_bind_Decoder_DecodeArrayToPointCloud_3).apply(null,arguments)},sc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(sc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=a.asm.emscripten_bind_Decoder_DecodeArrayToMesh_3).apply(null,arguments)},tc=a._emscripten_bind_Decoder_GetAttributeId_2= -function(){return(tc=a._emscripten_bind_Decoder_GetAttributeId_2=a.asm.emscripten_bind_Decoder_GetAttributeId_2).apply(null,arguments)},uc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return(uc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=a.asm.emscripten_bind_Decoder_GetAttributeIdByName_2).apply(null,arguments)},vc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(vc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=a.asm.emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3).apply(null, -arguments)},wc=a._emscripten_bind_Decoder_GetAttribute_2=function(){return(wc=a._emscripten_bind_Decoder_GetAttribute_2=a.asm.emscripten_bind_Decoder_GetAttribute_2).apply(null,arguments)},xc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(xc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=a.asm.emscripten_bind_Decoder_GetAttributeByUniqueId_2).apply(null,arguments)},yc=a._emscripten_bind_Decoder_GetMetadata_1=function(){return(yc=a._emscripten_bind_Decoder_GetMetadata_1= -a.asm.emscripten_bind_Decoder_GetMetadata_1).apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(zc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=a.asm.emscripten_bind_Decoder_GetAttributeMetadata_2).apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return(Ac=a._emscripten_bind_Decoder_GetFaceFromMesh_3=a.asm.emscripten_bind_Decoder_GetFaceFromMesh_3).apply(null,arguments)},Bc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2= -function(){return(Bc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=a.asm.emscripten_bind_Decoder_GetTriangleStripsFromMesh_2).apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(Cc=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt16Array_3).apply(null,arguments)},Dc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(Dc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt32Array_3).apply(null, -arguments)},Ec=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(Ec=a._emscripten_bind_Decoder_GetAttributeFloat_3=a.asm.emscripten_bind_Decoder_GetAttributeFloat_3).apply(null,arguments)},Fc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(Fc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3).apply(null,arguments)},Gc=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(Gc= -a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeIntForAllPoints_3).apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(Hc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3).apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(Ic=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3= -a.asm.emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3).apply(null,arguments)},Jc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(Jc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3).apply(null,arguments)},Kc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=function(){return(Kc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3).apply(null, -arguments)},Lc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(Lc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3).apply(null,arguments)},Mc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(Mc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3).apply(null,arguments)},Nc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5= -function(){return(Nc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=a.asm.emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5).apply(null,arguments)},Oc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Oc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=a.asm.emscripten_bind_Decoder_SkipAttributeTransform_1).apply(null,arguments)},Pc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Pc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1= -a.asm.emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1).apply(null,arguments)},Qc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return(Qc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=a.asm.emscripten_bind_Decoder_DecodeBufferToPointCloud_2).apply(null,arguments)},Rc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return(Rc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=a.asm.emscripten_bind_Decoder_DecodeBufferToMesh_2).apply(null,arguments)},Sc= -a._emscripten_bind_Decoder___destroy___0=function(){return(Sc=a._emscripten_bind_Decoder___destroy___0=a.asm.emscripten_bind_Decoder___destroy___0).apply(null,arguments)},Tc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(Tc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM).apply(null,arguments)},Uc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM= -function(){return(Uc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM).apply(null,arguments)},Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM).apply(null,arguments)},Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM= -function(){return(Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM).apply(null,arguments)},Xc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(Xc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID).apply(null,arguments)},Yc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(Yc= -a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION).apply(null,arguments)},Zc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(Zc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL).apply(null,arguments)},$c=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return($c=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR).apply(null, -arguments)},ad=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(ad=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD).apply(null,arguments)},bd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return(bd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC).apply(null,arguments)},cd=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE= -function(){return(cd=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE).apply(null,arguments)},dd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(dd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD).apply(null,arguments)},ed=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(ed=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH= -a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH).apply(null,arguments)},fd=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return(fd=a._emscripten_enum_draco_DataType_DT_INVALID=a.asm.emscripten_enum_draco_DataType_DT_INVALID).apply(null,arguments)},gd=a._emscripten_enum_draco_DataType_DT_INT8=function(){return(gd=a._emscripten_enum_draco_DataType_DT_INT8=a.asm.emscripten_enum_draco_DataType_DT_INT8).apply(null,arguments)},hd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return(hd= -a._emscripten_enum_draco_DataType_DT_UINT8=a.asm.emscripten_enum_draco_DataType_DT_UINT8).apply(null,arguments)},id=a._emscripten_enum_draco_DataType_DT_INT16=function(){return(id=a._emscripten_enum_draco_DataType_DT_INT16=a.asm.emscripten_enum_draco_DataType_DT_INT16).apply(null,arguments)},jd=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return(jd=a._emscripten_enum_draco_DataType_DT_UINT16=a.asm.emscripten_enum_draco_DataType_DT_UINT16).apply(null,arguments)},kd=a._emscripten_enum_draco_DataType_DT_INT32= -function(){return(kd=a._emscripten_enum_draco_DataType_DT_INT32=a.asm.emscripten_enum_draco_DataType_DT_INT32).apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_UINT32=function(){return(ld=a._emscripten_enum_draco_DataType_DT_UINT32=a.asm.emscripten_enum_draco_DataType_DT_UINT32).apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_INT64=function(){return(md=a._emscripten_enum_draco_DataType_DT_INT64=a.asm.emscripten_enum_draco_DataType_DT_INT64).apply(null,arguments)},nd=a._emscripten_enum_draco_DataType_DT_UINT64= -function(){return(nd=a._emscripten_enum_draco_DataType_DT_UINT64=a.asm.emscripten_enum_draco_DataType_DT_UINT64).apply(null,arguments)},od=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(od=a._emscripten_enum_draco_DataType_DT_FLOAT32=a.asm.emscripten_enum_draco_DataType_DT_FLOAT32).apply(null,arguments)},pd=a._emscripten_enum_draco_DataType_DT_FLOAT64=function(){return(pd=a._emscripten_enum_draco_DataType_DT_FLOAT64=a.asm.emscripten_enum_draco_DataType_DT_FLOAT64).apply(null,arguments)}, -qd=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return(qd=a._emscripten_enum_draco_DataType_DT_BOOL=a.asm.emscripten_enum_draco_DataType_DT_BOOL).apply(null,arguments)},rd=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(rd=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=a.asm.emscripten_enum_draco_DataType_DT_TYPES_COUNT).apply(null,arguments)},sd=a._emscripten_enum_draco_StatusCode_OK=function(){return(sd=a._emscripten_enum_draco_StatusCode_OK=a.asm.emscripten_enum_draco_StatusCode_OK).apply(null, -arguments)},td=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(td=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=a.asm.emscripten_enum_draco_StatusCode_DRACO_ERROR).apply(null,arguments)},ud=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(ud=a._emscripten_enum_draco_StatusCode_IO_ERROR=a.asm.emscripten_enum_draco_StatusCode_IO_ERROR).apply(null,arguments)},vd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(vd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER= -a.asm.emscripten_enum_draco_StatusCode_INVALID_PARAMETER).apply(null,arguments)},wd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(wd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION).apply(null,arguments)},xd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(xd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNKNOWN_VERSION).apply(null,arguments)}; -a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)};a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)};a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)};a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)};a._setThrew=function(){return(a._setThrew=a.asm.setThrew).apply(null,arguments)};a._free=function(){return(a._free=a.asm.free).apply(null, -arguments)};var db=a._malloc=function(){return(db=a._malloc=a.asm.malloc).apply(null,arguments)},oa;ha=function c(){oa||ba();oa||(ha=c)};a.run=ba;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=n.size?(m(0>>=0;switch(b.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var c=0;cc.byteLength)return a.INVALID_GEOMETRY_TYPE;switch(c[7]){case 0:return a.POINT_CLOUD;case 1:return a.TRIANGULAR_MESH;default:return a.INVALID_GEOMETRY_TYPE}};return k.ready}}(); -"object"===typeof exports&&"object"===typeof module?module.exports=DracoDecoderModule:"function"===typeof define&&define.amd?define([],function(){return DracoDecoderModule}):"object"===typeof exports&&(exports.DracoDecoderModule=DracoDecoderModule); +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(l){var n=0;return function(){return nm?Math.max(C+m,0):Math.min(m,C);q=0>q?Math.max(C+q,0):Math.min(q,C);h=0>h?Math.max(C+h,0):Math.min(h,C);if(mq;)--h in this?this[--m]=this[h]:delete this[--m];return this}},"es6","es3"); +$jscomp.typedArrayCopyWithin=function(l){return l?l:Array.prototype.copyWithin};$jscomp.polyfill("Int8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); +$jscomp.polyfill("Uint16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float64Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); +var DracoDecoderModule=function(){var l="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(l=l||__filename);return function(n){function m(e){return a.locateFile?a.locateFile(e,V):V+e}function q(e,b){e||p("Assertion failed: "+b)}function h(e,b){if(e){var c=oa;var d=e+b;for(b=e;c[b]&&!(b>=d);)++b;if(16g?d+=String.fromCharCode(g):(g-=65536,d+=String.fromCharCode(55296|g>>10,56320|g&1023))}}else d+=String.fromCharCode(g)}c=d}}else c="";return c}function C(e,b){0>2]=b};this.get_type=function(){return W[this.ptr+ +D.TYPE_OFFSET>>2]};this.set_destructor=function(b){W[this.ptr+D.DESTRUCTOR_OFFSET>>2]=b};this.get_destructor=function(){return W[this.ptr+D.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(b){W[this.ptr+D.REFCOUNT_OFFSET>>2]=b};this.set_caught=function(b){Z[this.ptr+D.CAUGHT_OFFSET>>0]=b?1:0};this.get_caught=function(){return 0!=Z[this.ptr+D.CAUGHT_OFFSET>>0]};this.set_rethrown=function(b){Z[this.ptr+D.RETHROWN_OFFSET>>0]=b?1:0};this.get_rethrown=function(){return 0!=Z[this.ptr+D.RETHROWN_OFFSET>> +0]};this.init=function(b,c){this.set_type(b);this.set_destructor(c);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){W[this.ptr+D.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var b=W[this.ptr+D.REFCOUNT_OFFSET>>2];W[this.ptr+D.REFCOUNT_OFFSET>>2]=b-1;return 1===b}}function Q(){return 0=d&&(d=65536+((d&1023)<<10)|e.charCodeAt(++c)&1023);127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}b=Array(b+1);c=0;d=b.length;if(0=v){var ia=e.charCodeAt(++g);v=65536+((v&1023)<<10)|ia&1023}if(127>=v){if(c>=d)break;b[c++]=v}else{if(2047>=v){if(c+1>=d)break;b[c++]=192|v>>6}else{if(65535>=v){if(c+2>=d)break;b[c++]= +224|v>>12}else{if(c+3>=d)break;b[c++]=240|v>>18;b[c++]=128|v>>12&63}b[c++]=128|v>>6&63}b[c++]=128|v&63}}b[c]=0}e=r.alloc(b,Z);r.copy(b,Z,e);return e}return e}function va(e){if("object"===typeof e){var b=r.alloc(e,Z);r.copy(e,Z,b);return b}return e}function aa(){throw"cannot construct a VoidPtr, no constructor in IDL";}function S(){this.ptr=Ja();z(S)[this.ptr]=this}function P(){this.ptr=Ka();z(P)[this.ptr]=this}function Y(){this.ptr=La();z(Y)[this.ptr]=this}function w(){this.ptr=Ma();z(w)[this.ptr]= +this}function B(){this.ptr=Na();z(B)[this.ptr]=this}function F(){this.ptr=Oa();z(F)[this.ptr]=this}function G(){this.ptr=Pa();z(G)[this.ptr]=this}function E(){this.ptr=Qa();z(E)[this.ptr]=this}function T(){this.ptr=Ra();z(T)[this.ptr]=this}function A(){throw"cannot construct a Status, no constructor in IDL";}function H(){this.ptr=Sa();z(H)[this.ptr]=this}function I(){this.ptr=Ta();z(I)[this.ptr]=this}function J(){this.ptr=Ua();z(J)[this.ptr]=this}function K(){this.ptr=Va();z(K)[this.ptr]=this}function L(){this.ptr= +Wa();z(L)[this.ptr]=this}function M(){this.ptr=Xa();z(M)[this.ptr]=this}function N(){this.ptr=Ya();z(N)[this.ptr]=this}function x(){this.ptr=Za();z(x)[this.ptr]=this}function k(){this.ptr=$a();z(k)[this.ptr]=this}n=n||{};var a="undefined"!==typeof n?n:{},Ga,ta;a.ready=new Promise(function(e,b){Ga=e;ta=b});var ab=!1,bb=!1;a.onRuntimeInitialized=function(){ab=!0;if(bb&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){bb=!0;if(ab&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)}; +a.isVersionSupported=function(e){if("string"!==typeof e)return!1;e=e.split(".");return 2>e.length||3=e[1]?!0:0!=e[0]||10>>=0;var b=oa.length;if(2147483648=c;c*=2){var d=b*(1+.2/c); +d=Math.min(d,e+100663296);d=Math.min(2147483648,C(Math.max(16777216,e,d),65536));a:{try{ma.grow(d-pa.byteLength+65535>>>16);f(ma.buffer);var g=1;break a}catch(v){}g=void 0}if(g)return!0}return!1},memory:ma};(function(){function e(g,v){a.asm=g.exports;ua=a.asm.__indirect_function_table;ha--;a.monitorRunDependencies&&a.monitorRunDependencies(ha);0==ha&&(null!==Aa&&(clearInterval(Aa),Aa=null),na&&(g=na,na=null,g()))}function b(g){e(g.instance)}function c(g){return O().then(function(v){return WebAssembly.instantiate(v, +d)}).then(g,function(v){ja("failed to asynchronously prepare wasm: "+v);p(v)})}var d={env:gb,wasi_snapshot_preview1:gb};ha++;a.monitorRunDependencies&&a.monitorRunDependencies(ha);if(a.instantiateWasm)try{return a.instantiateWasm(d,e)}catch(g){return ja("Module.instantiateWasm callback failed with error: "+g),!1}(function(){return ka||"function"!==typeof WebAssembly.instantiateStreaming||t(X,"data:application/octet-stream;base64,")||t(X,"file://")||"function"!==typeof fetch?c(b):fetch(X,{credentials:"same-origin"}).then(function(g){return WebAssembly.instantiateStreaming(g, +d).then(b,function(v){ja("wasm streaming compile failed: "+v);ja("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(ta);return{}})();var eb=a.___wasm_call_ctors=function(){return(eb=a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)};a.___em_js__array_bounds_check_error=function(){return(a.___em_js__array_bounds_check_error=a.asm.__em_js__array_bounds_check_error).apply(null,arguments)};var hb=a._emscripten_bind_VoidPtr___destroy___0=function(){return(hb=a._emscripten_bind_VoidPtr___destroy___0= +a.asm.emscripten_bind_VoidPtr___destroy___0).apply(null,arguments)},Ja=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(Ja=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=a.asm.emscripten_bind_DecoderBuffer_DecoderBuffer_0).apply(null,arguments)},ib=a._emscripten_bind_DecoderBuffer_Init_2=function(){return(ib=a._emscripten_bind_DecoderBuffer_Init_2=a.asm.emscripten_bind_DecoderBuffer_Init_2).apply(null,arguments)},jb=a._emscripten_bind_DecoderBuffer___destroy___0=function(){return(jb= +a._emscripten_bind_DecoderBuffer___destroy___0=a.asm.emscripten_bind_DecoderBuffer___destroy___0).apply(null,arguments)},Ka=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=function(){return(Ka=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=a.asm.emscripten_bind_AttributeTransformData_AttributeTransformData_0).apply(null,arguments)},kb=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(kb=a._emscripten_bind_AttributeTransformData_transform_type_0= +a.asm.emscripten_bind_AttributeTransformData_transform_type_0).apply(null,arguments)},lb=a._emscripten_bind_AttributeTransformData___destroy___0=function(){return(lb=a._emscripten_bind_AttributeTransformData___destroy___0=a.asm.emscripten_bind_AttributeTransformData___destroy___0).apply(null,arguments)},La=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(La=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0).apply(null, +arguments)},mb=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(mb=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.emscripten_bind_GeometryAttribute___destroy___0).apply(null,arguments)},Ma=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Ma=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.emscripten_bind_PointAttribute_PointAttribute_0).apply(null,arguments)},nb=a._emscripten_bind_PointAttribute_size_0=function(){return(nb=a._emscripten_bind_PointAttribute_size_0= +a.asm.emscripten_bind_PointAttribute_size_0).apply(null,arguments)},ob=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(ob=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=a.asm.emscripten_bind_PointAttribute_GetAttributeTransformData_0).apply(null,arguments)},pb=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return(pb=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.emscripten_bind_PointAttribute_attribute_type_0).apply(null,arguments)}, +qb=a._emscripten_bind_PointAttribute_data_type_0=function(){return(qb=a._emscripten_bind_PointAttribute_data_type_0=a.asm.emscripten_bind_PointAttribute_data_type_0).apply(null,arguments)},rb=a._emscripten_bind_PointAttribute_num_components_0=function(){return(rb=a._emscripten_bind_PointAttribute_num_components_0=a.asm.emscripten_bind_PointAttribute_num_components_0).apply(null,arguments)},sb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(sb=a._emscripten_bind_PointAttribute_normalized_0= +a.asm.emscripten_bind_PointAttribute_normalized_0).apply(null,arguments)},tb=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(tb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.emscripten_bind_PointAttribute_byte_stride_0).apply(null,arguments)},ub=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(ub=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.emscripten_bind_PointAttribute_byte_offset_0).apply(null,arguments)},vb=a._emscripten_bind_PointAttribute_unique_id_0= +function(){return(vb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.emscripten_bind_PointAttribute_unique_id_0).apply(null,arguments)},wb=a._emscripten_bind_PointAttribute___destroy___0=function(){return(wb=a._emscripten_bind_PointAttribute___destroy___0=a.asm.emscripten_bind_PointAttribute___destroy___0).apply(null,arguments)},Na=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(Na=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0= +a.asm.emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0).apply(null,arguments)},xb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(xb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=a.asm.emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1).apply(null,arguments)},yb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return(yb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0= +a.asm.emscripten_bind_AttributeQuantizationTransform_quantization_bits_0).apply(null,arguments)},zb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(zb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=a.asm.emscripten_bind_AttributeQuantizationTransform_min_value_1).apply(null,arguments)},Ab=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(Ab=a._emscripten_bind_AttributeQuantizationTransform_range_0=a.asm.emscripten_bind_AttributeQuantizationTransform_range_0).apply(null, +arguments)},Bb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return(Bb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=a.asm.emscripten_bind_AttributeQuantizationTransform___destroy___0).apply(null,arguments)},Oa=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Oa=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=a.asm.emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0).apply(null, +arguments)},Cb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return(Cb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=a.asm.emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1).apply(null,arguments)},Db=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(Db=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=a.asm.emscripten_bind_AttributeOctahedronTransform_quantization_bits_0).apply(null, +arguments)},Eb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Eb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=a.asm.emscripten_bind_AttributeOctahedronTransform___destroy___0).apply(null,arguments)},Pa=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Pa=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.emscripten_bind_PointCloud_PointCloud_0).apply(null,arguments)},Fb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(Fb=a._emscripten_bind_PointCloud_num_attributes_0= +a.asm.emscripten_bind_PointCloud_num_attributes_0).apply(null,arguments)},Gb=a._emscripten_bind_PointCloud_num_points_0=function(){return(Gb=a._emscripten_bind_PointCloud_num_points_0=a.asm.emscripten_bind_PointCloud_num_points_0).apply(null,arguments)},Hb=a._emscripten_bind_PointCloud___destroy___0=function(){return(Hb=a._emscripten_bind_PointCloud___destroy___0=a.asm.emscripten_bind_PointCloud___destroy___0).apply(null,arguments)},Qa=a._emscripten_bind_Mesh_Mesh_0=function(){return(Qa=a._emscripten_bind_Mesh_Mesh_0= +a.asm.emscripten_bind_Mesh_Mesh_0).apply(null,arguments)},Ib=a._emscripten_bind_Mesh_num_faces_0=function(){return(Ib=a._emscripten_bind_Mesh_num_faces_0=a.asm.emscripten_bind_Mesh_num_faces_0).apply(null,arguments)},Jb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(Jb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.emscripten_bind_Mesh_num_attributes_0).apply(null,arguments)},Kb=a._emscripten_bind_Mesh_num_points_0=function(){return(Kb=a._emscripten_bind_Mesh_num_points_0=a.asm.emscripten_bind_Mesh_num_points_0).apply(null, +arguments)},Lb=a._emscripten_bind_Mesh___destroy___0=function(){return(Lb=a._emscripten_bind_Mesh___destroy___0=a.asm.emscripten_bind_Mesh___destroy___0).apply(null,arguments)},Ra=a._emscripten_bind_Metadata_Metadata_0=function(){return(Ra=a._emscripten_bind_Metadata_Metadata_0=a.asm.emscripten_bind_Metadata_Metadata_0).apply(null,arguments)},Mb=a._emscripten_bind_Metadata___destroy___0=function(){return(Mb=a._emscripten_bind_Metadata___destroy___0=a.asm.emscripten_bind_Metadata___destroy___0).apply(null, +arguments)},Nb=a._emscripten_bind_Status_code_0=function(){return(Nb=a._emscripten_bind_Status_code_0=a.asm.emscripten_bind_Status_code_0).apply(null,arguments)},Ob=a._emscripten_bind_Status_ok_0=function(){return(Ob=a._emscripten_bind_Status_ok_0=a.asm.emscripten_bind_Status_ok_0).apply(null,arguments)},Pb=a._emscripten_bind_Status_error_msg_0=function(){return(Pb=a._emscripten_bind_Status_error_msg_0=a.asm.emscripten_bind_Status_error_msg_0).apply(null,arguments)},Qb=a._emscripten_bind_Status___destroy___0= +function(){return(Qb=a._emscripten_bind_Status___destroy___0=a.asm.emscripten_bind_Status___destroy___0).apply(null,arguments)},Sa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return(Sa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=a.asm.emscripten_bind_DracoFloat32Array_DracoFloat32Array_0).apply(null,arguments)},Rb=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(Rb=a._emscripten_bind_DracoFloat32Array_GetValue_1=a.asm.emscripten_bind_DracoFloat32Array_GetValue_1).apply(null, +arguments)},Sb=a._emscripten_bind_DracoFloat32Array_size_0=function(){return(Sb=a._emscripten_bind_DracoFloat32Array_size_0=a.asm.emscripten_bind_DracoFloat32Array_size_0).apply(null,arguments)},Tb=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(Tb=a._emscripten_bind_DracoFloat32Array___destroy___0=a.asm.emscripten_bind_DracoFloat32Array___destroy___0).apply(null,arguments)},Ta=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Ta=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0= +a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0).apply(null,arguments)},Ub=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(Ub=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.emscripten_bind_DracoInt8Array_GetValue_1).apply(null,arguments)},Vb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(Vb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.emscripten_bind_DracoInt8Array_size_0).apply(null,arguments)},Wb=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return(Wb= +a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.emscripten_bind_DracoInt8Array___destroy___0).apply(null,arguments)},Ua=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(Ua=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=a.asm.emscripten_bind_DracoUInt8Array_DracoUInt8Array_0).apply(null,arguments)},Xb=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(Xb=a._emscripten_bind_DracoUInt8Array_GetValue_1=a.asm.emscripten_bind_DracoUInt8Array_GetValue_1).apply(null, +arguments)},Yb=a._emscripten_bind_DracoUInt8Array_size_0=function(){return(Yb=a._emscripten_bind_DracoUInt8Array_size_0=a.asm.emscripten_bind_DracoUInt8Array_size_0).apply(null,arguments)},Zb=a._emscripten_bind_DracoUInt8Array___destroy___0=function(){return(Zb=a._emscripten_bind_DracoUInt8Array___destroy___0=a.asm.emscripten_bind_DracoUInt8Array___destroy___0).apply(null,arguments)},Va=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(Va=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0= +a.asm.emscripten_bind_DracoInt16Array_DracoInt16Array_0).apply(null,arguments)},$b=a._emscripten_bind_DracoInt16Array_GetValue_1=function(){return($b=a._emscripten_bind_DracoInt16Array_GetValue_1=a.asm.emscripten_bind_DracoInt16Array_GetValue_1).apply(null,arguments)},ac=a._emscripten_bind_DracoInt16Array_size_0=function(){return(ac=a._emscripten_bind_DracoInt16Array_size_0=a.asm.emscripten_bind_DracoInt16Array_size_0).apply(null,arguments)},bc=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return(bc= +a._emscripten_bind_DracoInt16Array___destroy___0=a.asm.emscripten_bind_DracoInt16Array___destroy___0).apply(null,arguments)},Wa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return(Wa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=a.asm.emscripten_bind_DracoUInt16Array_DracoUInt16Array_0).apply(null,arguments)},cc=a._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return(cc=a._emscripten_bind_DracoUInt16Array_GetValue_1=a.asm.emscripten_bind_DracoUInt16Array_GetValue_1).apply(null, +arguments)},dc=a._emscripten_bind_DracoUInt16Array_size_0=function(){return(dc=a._emscripten_bind_DracoUInt16Array_size_0=a.asm.emscripten_bind_DracoUInt16Array_size_0).apply(null,arguments)},ec=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(ec=a._emscripten_bind_DracoUInt16Array___destroy___0=a.asm.emscripten_bind_DracoUInt16Array___destroy___0).apply(null,arguments)},Xa=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return(Xa=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0= +a.asm.emscripten_bind_DracoInt32Array_DracoInt32Array_0).apply(null,arguments)},fc=a._emscripten_bind_DracoInt32Array_GetValue_1=function(){return(fc=a._emscripten_bind_DracoInt32Array_GetValue_1=a.asm.emscripten_bind_DracoInt32Array_GetValue_1).apply(null,arguments)},gc=a._emscripten_bind_DracoInt32Array_size_0=function(){return(gc=a._emscripten_bind_DracoInt32Array_size_0=a.asm.emscripten_bind_DracoInt32Array_size_0).apply(null,arguments)},hc=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return(hc= +a._emscripten_bind_DracoInt32Array___destroy___0=a.asm.emscripten_bind_DracoInt32Array___destroy___0).apply(null,arguments)},Ya=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=function(){return(Ya=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=a.asm.emscripten_bind_DracoUInt32Array_DracoUInt32Array_0).apply(null,arguments)},ic=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return(ic=a._emscripten_bind_DracoUInt32Array_GetValue_1=a.asm.emscripten_bind_DracoUInt32Array_GetValue_1).apply(null, +arguments)},jc=a._emscripten_bind_DracoUInt32Array_size_0=function(){return(jc=a._emscripten_bind_DracoUInt32Array_size_0=a.asm.emscripten_bind_DracoUInt32Array_size_0).apply(null,arguments)},kc=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(kc=a._emscripten_bind_DracoUInt32Array___destroy___0=a.asm.emscripten_bind_DracoUInt32Array___destroy___0).apply(null,arguments)},Za=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return(Za=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0= +a.asm.emscripten_bind_MetadataQuerier_MetadataQuerier_0).apply(null,arguments)},lc=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(lc=a._emscripten_bind_MetadataQuerier_HasEntry_2=a.asm.emscripten_bind_MetadataQuerier_HasEntry_2).apply(null,arguments)},mc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(mc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetIntEntry_2).apply(null,arguments)},nc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3= +function(){return(nc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=a.asm.emscripten_bind_MetadataQuerier_GetIntEntryArray_3).apply(null,arguments)},oc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return(oc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetDoubleEntry_2).apply(null,arguments)},pc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(pc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=a.asm.emscripten_bind_MetadataQuerier_GetStringEntry_2).apply(null, +arguments)},qc=a._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return(qc=a._emscripten_bind_MetadataQuerier_NumEntries_1=a.asm.emscripten_bind_MetadataQuerier_NumEntries_1).apply(null,arguments)},rc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(rc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=a.asm.emscripten_bind_MetadataQuerier_GetEntryName_2).apply(null,arguments)},sc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return(sc=a._emscripten_bind_MetadataQuerier___destroy___0= +a.asm.emscripten_bind_MetadataQuerier___destroy___0).apply(null,arguments)},$a=a._emscripten_bind_Decoder_Decoder_0=function(){return($a=a._emscripten_bind_Decoder_Decoder_0=a.asm.emscripten_bind_Decoder_Decoder_0).apply(null,arguments)},tc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(tc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=a.asm.emscripten_bind_Decoder_DecodeArrayToPointCloud_3).apply(null,arguments)},uc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(uc= +a._emscripten_bind_Decoder_DecodeArrayToMesh_3=a.asm.emscripten_bind_Decoder_DecodeArrayToMesh_3).apply(null,arguments)},vc=a._emscripten_bind_Decoder_GetAttributeId_2=function(){return(vc=a._emscripten_bind_Decoder_GetAttributeId_2=a.asm.emscripten_bind_Decoder_GetAttributeId_2).apply(null,arguments)},wc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return(wc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=a.asm.emscripten_bind_Decoder_GetAttributeIdByName_2).apply(null,arguments)}, +xc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(xc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=a.asm.emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3).apply(null,arguments)},yc=a._emscripten_bind_Decoder_GetAttribute_2=function(){return(yc=a._emscripten_bind_Decoder_GetAttribute_2=a.asm.emscripten_bind_Decoder_GetAttribute_2).apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(zc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2= +a.asm.emscripten_bind_Decoder_GetAttributeByUniqueId_2).apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetMetadata_1=function(){return(Ac=a._emscripten_bind_Decoder_GetMetadata_1=a.asm.emscripten_bind_Decoder_GetMetadata_1).apply(null,arguments)},Bc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(Bc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=a.asm.emscripten_bind_Decoder_GetAttributeMetadata_2).apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetFaceFromMesh_3= +function(){return(Cc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=a.asm.emscripten_bind_Decoder_GetFaceFromMesh_3).apply(null,arguments)},Dc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=function(){return(Dc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=a.asm.emscripten_bind_Decoder_GetTriangleStripsFromMesh_2).apply(null,arguments)},Ec=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(Ec=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt16Array_3).apply(null, +arguments)},Fc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(Fc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=a.asm.emscripten_bind_Decoder_GetTrianglesUInt32Array_3).apply(null,arguments)},Gc=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(Gc=a._emscripten_bind_Decoder_GetAttributeFloat_3=a.asm.emscripten_bind_Decoder_GetAttributeFloat_3).apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(Hc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3= +a.asm.emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3).apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(Ic=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeIntForAllPoints_3).apply(null,arguments)},Jc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(Jc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3).apply(null, +arguments)},Kc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(Kc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3).apply(null,arguments)},Lc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(Lc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3).apply(null,arguments)},Mc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3= +function(){return(Mc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3).apply(null,arguments)},Nc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(Nc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=a.asm.emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3).apply(null,arguments)},Oc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(Oc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3= +a.asm.emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3).apply(null,arguments)},Pc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=function(){return(Pc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=a.asm.emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5).apply(null,arguments)},Qc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Qc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=a.asm.emscripten_bind_Decoder_SkipAttributeTransform_1).apply(null, +arguments)},Rc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Rc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=a.asm.emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1).apply(null,arguments)},Sc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return(Sc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=a.asm.emscripten_bind_Decoder_DecodeBufferToPointCloud_2).apply(null,arguments)},Tc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2= +function(){return(Tc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=a.asm.emscripten_bind_Decoder_DecodeBufferToMesh_2).apply(null,arguments)},Uc=a._emscripten_bind_Decoder___destroy___0=function(){return(Uc=a._emscripten_bind_Decoder___destroy___0=a.asm.emscripten_bind_Decoder___destroy___0).apply(null,arguments)},Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM).apply(null, +arguments)},Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return(Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM).apply(null,arguments)},Xc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(Xc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM).apply(null, +arguments)},Yc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=function(){return(Yc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM).apply(null,arguments)},Zc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(Zc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID).apply(null, +arguments)},$c=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return($c=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION).apply(null,arguments)},ad=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(ad=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL).apply(null,arguments)},bd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR= +function(){return(bd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR).apply(null,arguments)},cd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(cd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD).apply(null,arguments)},dd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return(dd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC= +a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC).apply(null,arguments)},ed=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(ed=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE).apply(null,arguments)},fd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(fd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD).apply(null, +arguments)},gd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(gd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH).apply(null,arguments)},hd=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return(hd=a._emscripten_enum_draco_DataType_DT_INVALID=a.asm.emscripten_enum_draco_DataType_DT_INVALID).apply(null,arguments)},id=a._emscripten_enum_draco_DataType_DT_INT8=function(){return(id=a._emscripten_enum_draco_DataType_DT_INT8= +a.asm.emscripten_enum_draco_DataType_DT_INT8).apply(null,arguments)},jd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return(jd=a._emscripten_enum_draco_DataType_DT_UINT8=a.asm.emscripten_enum_draco_DataType_DT_UINT8).apply(null,arguments)},kd=a._emscripten_enum_draco_DataType_DT_INT16=function(){return(kd=a._emscripten_enum_draco_DataType_DT_INT16=a.asm.emscripten_enum_draco_DataType_DT_INT16).apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return(ld=a._emscripten_enum_draco_DataType_DT_UINT16= +a.asm.emscripten_enum_draco_DataType_DT_UINT16).apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_INT32=function(){return(md=a._emscripten_enum_draco_DataType_DT_INT32=a.asm.emscripten_enum_draco_DataType_DT_INT32).apply(null,arguments)},nd=a._emscripten_enum_draco_DataType_DT_UINT32=function(){return(nd=a._emscripten_enum_draco_DataType_DT_UINT32=a.asm.emscripten_enum_draco_DataType_DT_UINT32).apply(null,arguments)},od=a._emscripten_enum_draco_DataType_DT_INT64=function(){return(od= +a._emscripten_enum_draco_DataType_DT_INT64=a.asm.emscripten_enum_draco_DataType_DT_INT64).apply(null,arguments)},pd=a._emscripten_enum_draco_DataType_DT_UINT64=function(){return(pd=a._emscripten_enum_draco_DataType_DT_UINT64=a.asm.emscripten_enum_draco_DataType_DT_UINT64).apply(null,arguments)},qd=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(qd=a._emscripten_enum_draco_DataType_DT_FLOAT32=a.asm.emscripten_enum_draco_DataType_DT_FLOAT32).apply(null,arguments)},rd=a._emscripten_enum_draco_DataType_DT_FLOAT64= +function(){return(rd=a._emscripten_enum_draco_DataType_DT_FLOAT64=a.asm.emscripten_enum_draco_DataType_DT_FLOAT64).apply(null,arguments)},sd=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return(sd=a._emscripten_enum_draco_DataType_DT_BOOL=a.asm.emscripten_enum_draco_DataType_DT_BOOL).apply(null,arguments)},td=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(td=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=a.asm.emscripten_enum_draco_DataType_DT_TYPES_COUNT).apply(null, +arguments)},ud=a._emscripten_enum_draco_StatusCode_OK=function(){return(ud=a._emscripten_enum_draco_StatusCode_OK=a.asm.emscripten_enum_draco_StatusCode_OK).apply(null,arguments)},vd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(vd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=a.asm.emscripten_enum_draco_StatusCode_DRACO_ERROR).apply(null,arguments)},wd=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(wd=a._emscripten_enum_draco_StatusCode_IO_ERROR=a.asm.emscripten_enum_draco_StatusCode_IO_ERROR).apply(null, +arguments)},xd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(xd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=a.asm.emscripten_enum_draco_StatusCode_INVALID_PARAMETER).apply(null,arguments)},yd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(yd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION).apply(null,arguments)},zd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(zd= +a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=a.asm.emscripten_enum_draco_StatusCode_UNKNOWN_VERSION).apply(null,arguments)};a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)};a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)};a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)};a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)};a._setThrew= +function(){return(a._setThrew=a.asm.setThrew).apply(null,arguments)};a._free=function(){return(a._free=a.asm.free).apply(null,arguments)};var fb=a._malloc=function(){return(fb=a._malloc=a.asm.malloc).apply(null,arguments)},sa;na=function b(){sa||ea();sa||(na=b)};a.run=ea;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=r.size?(q(0>>=0;switch(c.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var g=0;gb.byteLength)return a.INVALID_GEOMETRY_TYPE;switch(b[7]){case 0:return a.POINT_CLOUD;case 1:return a.TRIANGULAR_MESH;default:return a.INVALID_GEOMETRY_TYPE}};return n.ready}}();"object"===typeof exports&&"object"===typeof module?module.exports=DracoDecoderModule:"function"===typeof define&&define.amd?define([],function(){return DracoDecoderModule}):"object"===typeof exports&&(exports.DracoDecoderModule=DracoDecoderModule); diff --git a/javascript/npm/draco3dgltf/draco_encoder.wasm b/javascript/npm/draco3dgltf/draco_encoder.wasm index de60d2aa..51398a36 100755 Binary files a/javascript/npm/draco3dgltf/draco_encoder.wasm and b/javascript/npm/draco3dgltf/draco_encoder.wasm differ diff --git a/javascript/npm/draco3dgltf/draco_encoder_gltf_nodejs.js b/javascript/npm/draco3dgltf/draco_encoder_gltf_nodejs.js index 7b152ba2..436dcc9e 100644 --- a/javascript/npm/draco3dgltf/draco_encoder_gltf_nodejs.js +++ b/javascript/npm/draco3dgltf/draco_encoder_gltf_nodejs.js @@ -1,100 +1,107 @@ -var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(g){var m=0;return function(){return mg?Math.max(p+g,0):Math.min(g,p);n=0>n?Math.max(p+n,0):Math.min(n,p);h=0>h?Math.max(p+h,0):Math.min(h,p);if(gn;)--h in this?this[--g]=this[h]:delete this[--g];return this}},"es6","es3"); -var DracoEncoderModule=function(){var g="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(g=g||__filename);return function(m){function p(r){return a.locateFile?a.locateFile(r,G):G+r}function n(a,d){a||l("Assertion failed: "+d)}function h(a,d){0>2]=a};this.get_type=function(){return B[this.ptr+A.TYPE_OFFSET>>2]};this.set_destructor=function(a){B[this.ptr+A.DESTRUCTOR_OFFSET>>2]=a};this.get_destructor=function(){return B[this.ptr+A.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(a){B[this.ptr+A.REFCOUNT_OFFSET>>2]=a};this.set_caught=function(a){H[this.ptr+A.CAUGHT_OFFSET>>0]=a?1:0};this.get_caught=function(){return 0!=H[this.ptr+A.CAUGHT_OFFSET>>0]};this.set_rethrown=function(a){H[this.ptr+A.RETHROWN_OFFSET>>0]=a?1:0};this.get_rethrown= -function(){return 0!=H[this.ptr+A.RETHROWN_OFFSET>>0]};this.init=function(a,b){this.set_type(a);this.set_destructor(b);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){B[this.ptr+A.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var a=B[this.ptr+A.REFCOUNT_OFFSET>>2];B[this.ptr+A.REFCOUNT_OFFSET>>2]=a-1;return 1===a}}function ca(){return 0=c&&(c=65536+((c&1023)<<10)|a.charCodeAt(++b)&1023);127>=c?++d:d=2047>=c?d+2:65535>=c?d+3:d+4}d=Array(d+1);b=0;c=d.length;if(0=f){var r=a.charCodeAt(++e);f=65536+((f&1023)<<10)|r&1023}if(127>=f){if(b>=c)break;d[b++]=f}else{if(2047>=f){if(b+1>=c)break;d[b++]=192|f>>6}else{if(65535>=f){if(b+2>=c)break;d[b++]=224|f>>12}else{if(b+3>=c)break;d[b++]=240|f>>18;d[b++]=128|f>>12&63}d[b++]=128|f>>6&63}d[b++]=128|f&63}}d[b]= -0}a=k.alloc(d,H);k.copy(d,H,a)}return a}function ia(a){if("object"===typeof a){var d=k.alloc(a,H);k.copy(a,H,d);return d}return a}function ja(a){if("object"===typeof a){var d=k.alloc(a,la);k.copy(a,la,d);return d}return a}function Q(a){if("object"===typeof a){var d=k.alloc(a,B);k.copy(a,B,d);return d}return a}function W(a){if("object"===typeof a){var d=k.alloc(a,na);k.copy(a,na,d);return d}return a}function M(){throw"cannot construct a VoidPtr, no constructor in IDL";}function J(){this.ptr=Fa();C(J)[this.ptr]= -this}function v(){this.ptr=Ga();C(v)[this.ptr]=this}function D(){this.ptr=Ha();C(D)[this.ptr]=this}function y(){this.ptr=Ia();C(y)[this.ptr]=this}function K(){this.ptr=Ja();C(K)[this.ptr]=this}function E(){this.ptr=Ka();C(E)[this.ptr]=this}function z(){this.ptr=La();C(z)[this.ptr]=this}function t(){this.ptr=Ma();C(t)[this.ptr]=this}function q(){this.ptr=Na();C(q)[this.ptr]=this}function u(){this.ptr=Oa();C(u)[this.ptr]=this}function w(a){a&&"object"===typeof a&&(a=a.ptr);this.ptr=Pa(a);C(w)[this.ptr]= -this}m=m||{};var a="undefined"!==typeof m?m:{},Ca,xa;a.ready=new Promise(function(a,d){Ca=a;xa=d});var Qa=!1,Ra=!1;a.onRuntimeInitialized=function(){Qa=!0;if(Ra&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){Ra=!0;if(Qa&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(a){if("string"!==typeof a)return!1;a=a.split(".");return 2>a.length||3=a[1]?!0:0!=a[0]||10>>=0;var d=ma.length;if(2147483648=b;b*=2){var c=d*(1+.2/b);c=Math.min(c,a+100663296);c=Math.min(2147483648,h(Math.max(16777216,a,c),65536));a:{try{Y.grow(c-da.byteLength+65535>>> -16);F(Y.buffer);var e=1;break a}catch(f){}e=void 0}if(e)return!0}return!1},environ_get:function(a,d){var b=0;L().forEach(function(c,e){var f=d+b;e=B[a+4*e>>2]=f;for(f=0;f>0]=c.charCodeAt(f);H[e>>0]=0;b+=c.length+1});return 0},environ_sizes_get:function(a,d){var b=L();B[a>>2]=b.length;var c=0;b.forEach(function(a){c+=a.length+1});B[d>>2]=c;return 0},memory:Y};(function(){function g(d,b){a.asm=d.exports;oa=a.asm.__indirect_function_table;P--;a.monitorRunDependencies&&a.monitorRunDependencies(P); -0==P&&(null!==va&&(clearInterval(va),va=null),Z&&(d=Z,Z=null,d()))}function d(a){g(a.instance)}function b(a){return S().then(function(a){return WebAssembly.instantiate(a,c)}).then(a,function(a){T("failed to asynchronously prepare wasm: "+a);l(a)})}var c={env:Wa,wasi_snapshot_preview1:Wa};P++;a.monitorRunDependencies&&a.monitorRunDependencies(P);if(a.instantiateWasm)try{return a.instantiateWasm(c,g)}catch(e){return T("Module.instantiateWasm callback failed with error: "+e),!1}(function(){if(U||"function"!== -typeof WebAssembly.instantiateStreaming||aa(I,"data:application/octet-stream;base64,")||aa(I,"file://")||"function"!==typeof fetch)return b(d);fetch(I,{credentials:"same-origin"}).then(function(a){return WebAssembly.instantiateStreaming(a,c).then(d,function(a){T("wasm streaming compile failed: "+a);T("falling back to ArrayBuffer instantiation");return b(d)})})})();return{}})();var Ua=a.___wasm_call_ctors=function(){return(Ua=a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)};a.___em_js__array_bounds_check_error= -function(){return(a.___em_js__array_bounds_check_error=a.asm.__em_js__array_bounds_check_error).apply(null,arguments)};var Xa=a._emscripten_bind_VoidPtr___destroy___0=function(){return(Xa=a._emscripten_bind_VoidPtr___destroy___0=a.asm.emscripten_bind_VoidPtr___destroy___0).apply(null,arguments)},Fa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Fa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0).apply(null, -arguments)},Ya=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(Ya=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.emscripten_bind_GeometryAttribute___destroy___0).apply(null,arguments)},Ga=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Ga=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.emscripten_bind_PointAttribute_PointAttribute_0).apply(null,arguments)},Za=a._emscripten_bind_PointAttribute_size_0=function(){return(Za=a._emscripten_bind_PointAttribute_size_0= -a.asm.emscripten_bind_PointAttribute_size_0).apply(null,arguments)},$a=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return($a=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.emscripten_bind_PointAttribute_attribute_type_0).apply(null,arguments)},ab=a._emscripten_bind_PointAttribute_data_type_0=function(){return(ab=a._emscripten_bind_PointAttribute_data_type_0=a.asm.emscripten_bind_PointAttribute_data_type_0).apply(null,arguments)},bb=a._emscripten_bind_PointAttribute_num_components_0= -function(){return(bb=a._emscripten_bind_PointAttribute_num_components_0=a.asm.emscripten_bind_PointAttribute_num_components_0).apply(null,arguments)},cb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(cb=a._emscripten_bind_PointAttribute_normalized_0=a.asm.emscripten_bind_PointAttribute_normalized_0).apply(null,arguments)},db=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(db=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.emscripten_bind_PointAttribute_byte_stride_0).apply(null, -arguments)},eb=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(eb=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.emscripten_bind_PointAttribute_byte_offset_0).apply(null,arguments)},fb=a._emscripten_bind_PointAttribute_unique_id_0=function(){return(fb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.emscripten_bind_PointAttribute_unique_id_0).apply(null,arguments)},gb=a._emscripten_bind_PointAttribute___destroy___0=function(){return(gb=a._emscripten_bind_PointAttribute___destroy___0= -a.asm.emscripten_bind_PointAttribute___destroy___0).apply(null,arguments)},Ha=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Ha=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.emscripten_bind_PointCloud_PointCloud_0).apply(null,arguments)},hb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(hb=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.emscripten_bind_PointCloud_num_attributes_0).apply(null,arguments)},ib=a._emscripten_bind_PointCloud_num_points_0=function(){return(ib= -a._emscripten_bind_PointCloud_num_points_0=a.asm.emscripten_bind_PointCloud_num_points_0).apply(null,arguments)},jb=a._emscripten_bind_PointCloud___destroy___0=function(){return(jb=a._emscripten_bind_PointCloud___destroy___0=a.asm.emscripten_bind_PointCloud___destroy___0).apply(null,arguments)},Ia=a._emscripten_bind_Mesh_Mesh_0=function(){return(Ia=a._emscripten_bind_Mesh_Mesh_0=a.asm.emscripten_bind_Mesh_Mesh_0).apply(null,arguments)},kb=a._emscripten_bind_Mesh_num_faces_0=function(){return(kb=a._emscripten_bind_Mesh_num_faces_0= -a.asm.emscripten_bind_Mesh_num_faces_0).apply(null,arguments)},lb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(lb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.emscripten_bind_Mesh_num_attributes_0).apply(null,arguments)},mb=a._emscripten_bind_Mesh_num_points_0=function(){return(mb=a._emscripten_bind_Mesh_num_points_0=a.asm.emscripten_bind_Mesh_num_points_0).apply(null,arguments)},nb=a._emscripten_bind_Mesh_set_num_points_1=function(){return(nb=a._emscripten_bind_Mesh_set_num_points_1= -a.asm.emscripten_bind_Mesh_set_num_points_1).apply(null,arguments)},ob=a._emscripten_bind_Mesh___destroy___0=function(){return(ob=a._emscripten_bind_Mesh___destroy___0=a.asm.emscripten_bind_Mesh___destroy___0).apply(null,arguments)},Ja=a._emscripten_bind_Metadata_Metadata_0=function(){return(Ja=a._emscripten_bind_Metadata_Metadata_0=a.asm.emscripten_bind_Metadata_Metadata_0).apply(null,arguments)},pb=a._emscripten_bind_Metadata___destroy___0=function(){return(pb=a._emscripten_bind_Metadata___destroy___0= -a.asm.emscripten_bind_Metadata___destroy___0).apply(null,arguments)},Ka=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Ka=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0).apply(null,arguments)},qb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(qb=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.emscripten_bind_DracoInt8Array_GetValue_1).apply(null,arguments)},rb=a._emscripten_bind_DracoInt8Array_size_0= -function(){return(rb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.emscripten_bind_DracoInt8Array_size_0).apply(null,arguments)},sb=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return(sb=a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.emscripten_bind_DracoInt8Array___destroy___0).apply(null,arguments)},La=a._emscripten_bind_MetadataBuilder_MetadataBuilder_0=function(){return(La=a._emscripten_bind_MetadataBuilder_MetadataBuilder_0=a.asm.emscripten_bind_MetadataBuilder_MetadataBuilder_0).apply(null, -arguments)},tb=a._emscripten_bind_MetadataBuilder_AddStringEntry_3=function(){return(tb=a._emscripten_bind_MetadataBuilder_AddStringEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddStringEntry_3).apply(null,arguments)},ub=a._emscripten_bind_MetadataBuilder_AddIntEntry_3=function(){return(ub=a._emscripten_bind_MetadataBuilder_AddIntEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddIntEntry_3).apply(null,arguments)},vb=a._emscripten_bind_MetadataBuilder_AddIntEntryArray_4=function(){return(vb=a._emscripten_bind_MetadataBuilder_AddIntEntryArray_4= -a.asm.emscripten_bind_MetadataBuilder_AddIntEntryArray_4).apply(null,arguments)},wb=a._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=function(){return(wb=a._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddDoubleEntry_3).apply(null,arguments)},xb=a._emscripten_bind_MetadataBuilder___destroy___0=function(){return(xb=a._emscripten_bind_MetadataBuilder___destroy___0=a.asm.emscripten_bind_MetadataBuilder___destroy___0).apply(null,arguments)},Ma=a._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0= -function(){return(Ma=a._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0=a.asm.emscripten_bind_PointCloudBuilder_PointCloudBuilder_0).apply(null,arguments)},yb=a._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=function(){return(yb=a._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddFloatAttribute_5).apply(null,arguments)},zb=a._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5=function(){return(zb=a._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5= -a.asm.emscripten_bind_PointCloudBuilder_AddInt8Attribute_5).apply(null,arguments)},Ab=a._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=function(){return(Ab=a._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5).apply(null,arguments)},Bb=a._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=function(){return(Bb=a._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt16Attribute_5).apply(null, -arguments)},Cb=a._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=function(){return(Cb=a._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5).apply(null,arguments)},Db=a._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5=function(){return(Db=a._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt32Attribute_5).apply(null,arguments)},Eb=a._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5= -function(){return(Eb=a._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5).apply(null,arguments)},Fb=a._emscripten_bind_PointCloudBuilder_AddMetadata_2=function(){return(Fb=a._emscripten_bind_PointCloudBuilder_AddMetadata_2=a.asm.emscripten_bind_PointCloudBuilder_AddMetadata_2).apply(null,arguments)},Gb=a._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3=function(){return(Gb=a._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3= -a.asm.emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3).apply(null,arguments)},Hb=a._emscripten_bind_PointCloudBuilder___destroy___0=function(){return(Hb=a._emscripten_bind_PointCloudBuilder___destroy___0=a.asm.emscripten_bind_PointCloudBuilder___destroy___0).apply(null,arguments)},Na=a._emscripten_bind_MeshBuilder_MeshBuilder_0=function(){return(Na=a._emscripten_bind_MeshBuilder_MeshBuilder_0=a.asm.emscripten_bind_MeshBuilder_MeshBuilder_0).apply(null,arguments)},Ib=a._emscripten_bind_MeshBuilder_AddFacesToMesh_3= -function(){return(Ib=a._emscripten_bind_MeshBuilder_AddFacesToMesh_3=a.asm.emscripten_bind_MeshBuilder_AddFacesToMesh_3).apply(null,arguments)},Jb=a._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5=function(){return(Jb=a._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5=a.asm.emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5).apply(null,arguments)},Kb=a._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5=function(){return(Kb=a._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5= -a.asm.emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5).apply(null,arguments)},Lb=a._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=function(){return(Lb=a._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=a.asm.emscripten_bind_MeshBuilder_AddMetadataToMesh_2).apply(null,arguments)},Mb=a._emscripten_bind_MeshBuilder_AddFloatAttribute_5=function(){return(Mb=a._emscripten_bind_MeshBuilder_AddFloatAttribute_5=a.asm.emscripten_bind_MeshBuilder_AddFloatAttribute_5).apply(null,arguments)},Nb=a._emscripten_bind_MeshBuilder_AddInt8Attribute_5= -function(){return(Nb=a._emscripten_bind_MeshBuilder_AddInt8Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt8Attribute_5).apply(null,arguments)},Ob=a._emscripten_bind_MeshBuilder_AddUInt8Attribute_5=function(){return(Ob=a._emscripten_bind_MeshBuilder_AddUInt8Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddUInt8Attribute_5).apply(null,arguments)},Pb=a._emscripten_bind_MeshBuilder_AddInt16Attribute_5=function(){return(Pb=a._emscripten_bind_MeshBuilder_AddInt16Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt16Attribute_5).apply(null, -arguments)},Qb=a._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=function(){return(Qb=a._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddUInt16Attribute_5).apply(null,arguments)},Rb=a._emscripten_bind_MeshBuilder_AddInt32Attribute_5=function(){return(Rb=a._emscripten_bind_MeshBuilder_AddInt32Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt32Attribute_5).apply(null,arguments)},Sb=a._emscripten_bind_MeshBuilder_AddUInt32Attribute_5=function(){return(Sb=a._emscripten_bind_MeshBuilder_AddUInt32Attribute_5= -a.asm.emscripten_bind_MeshBuilder_AddUInt32Attribute_5).apply(null,arguments)},Tb=a._emscripten_bind_MeshBuilder_AddMetadata_2=function(){return(Tb=a._emscripten_bind_MeshBuilder_AddMetadata_2=a.asm.emscripten_bind_MeshBuilder_AddMetadata_2).apply(null,arguments)},Ub=a._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=function(){return(Ub=a._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=a.asm.emscripten_bind_MeshBuilder_SetMetadataForAttribute_3).apply(null,arguments)},Vb=a._emscripten_bind_MeshBuilder___destroy___0= -function(){return(Vb=a._emscripten_bind_MeshBuilder___destroy___0=a.asm.emscripten_bind_MeshBuilder___destroy___0).apply(null,arguments)},Oa=a._emscripten_bind_Encoder_Encoder_0=function(){return(Oa=a._emscripten_bind_Encoder_Encoder_0=a.asm.emscripten_bind_Encoder_Encoder_0).apply(null,arguments)},Wb=a._emscripten_bind_Encoder_SetEncodingMethod_1=function(){return(Wb=a._emscripten_bind_Encoder_SetEncodingMethod_1=a.asm.emscripten_bind_Encoder_SetEncodingMethod_1).apply(null,arguments)},Xb=a._emscripten_bind_Encoder_SetAttributeQuantization_2= -function(){return(Xb=a._emscripten_bind_Encoder_SetAttributeQuantization_2=a.asm.emscripten_bind_Encoder_SetAttributeQuantization_2).apply(null,arguments)},Yb=a._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5=function(){return(Yb=a._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5=a.asm.emscripten_bind_Encoder_SetAttributeExplicitQuantization_5).apply(null,arguments)},Zb=a._emscripten_bind_Encoder_SetSpeedOptions_2=function(){return(Zb=a._emscripten_bind_Encoder_SetSpeedOptions_2= -a.asm.emscripten_bind_Encoder_SetSpeedOptions_2).apply(null,arguments)},$b=a._emscripten_bind_Encoder_SetTrackEncodedProperties_1=function(){return($b=a._emscripten_bind_Encoder_SetTrackEncodedProperties_1=a.asm.emscripten_bind_Encoder_SetTrackEncodedProperties_1).apply(null,arguments)},ac=a._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=function(){return(ac=a._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=a.asm.emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2).apply(null,arguments)},bc= -a._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=function(){return(bc=a._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=a.asm.emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3).apply(null,arguments)},cc=a._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0=function(){return(cc=a._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0=a.asm.emscripten_bind_Encoder_GetNumberOfEncodedPoints_0).apply(null,arguments)},dc=a._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=function(){return(dc= -a._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=a.asm.emscripten_bind_Encoder_GetNumberOfEncodedFaces_0).apply(null,arguments)},ec=a._emscripten_bind_Encoder___destroy___0=function(){return(ec=a._emscripten_bind_Encoder___destroy___0=a.asm.emscripten_bind_Encoder___destroy___0).apply(null,arguments)},Pa=a._emscripten_bind_ExpertEncoder_ExpertEncoder_1=function(){return(Pa=a._emscripten_bind_ExpertEncoder_ExpertEncoder_1=a.asm.emscripten_bind_ExpertEncoder_ExpertEncoder_1).apply(null,arguments)}, -fc=a._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=function(){return(fc=a._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=a.asm.emscripten_bind_ExpertEncoder_SetEncodingMethod_1).apply(null,arguments)},gc=a._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=function(){return(gc=a._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=a.asm.emscripten_bind_ExpertEncoder_SetAttributeQuantization_2).apply(null,arguments)},hc=a._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5= -function(){return(hc=a._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5=a.asm.emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5).apply(null,arguments)},ic=a._emscripten_bind_ExpertEncoder_SetSpeedOptions_2=function(){return(ic=a._emscripten_bind_ExpertEncoder_SetSpeedOptions_2=a.asm.emscripten_bind_ExpertEncoder_SetSpeedOptions_2).apply(null,arguments)},jc=a._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1=function(){return(jc=a._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1= -a.asm.emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1).apply(null,arguments)},kc=a._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=function(){return(kc=a._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=a.asm.emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2).apply(null,arguments)},lc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=function(){return(lc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=a.asm.emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0).apply(null, -arguments)},mc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=function(){return(mc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=a.asm.emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0).apply(null,arguments)},nc=a._emscripten_bind_ExpertEncoder___destroy___0=function(){return(nc=a._emscripten_bind_ExpertEncoder___destroy___0=a.asm.emscripten_bind_ExpertEncoder___destroy___0).apply(null,arguments)},oc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(oc= -a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID).apply(null,arguments)},pc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(pc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION).apply(null,arguments)},qc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(qc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL).apply(null, -arguments)},rc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(rc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR).apply(null,arguments)},sc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(sc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD).apply(null,arguments)},tc=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC= -function(){return(tc=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC).apply(null,arguments)},uc=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(uc=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE).apply(null,arguments)},vc=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(vc=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD= -a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD).apply(null,arguments)},wc=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(wc=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH).apply(null,arguments)},xc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=function(){return(xc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=a.asm.emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING).apply(null, -arguments)},yc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=function(){return(yc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=a.asm.emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING).apply(null,arguments)};a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)};a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)};a.stackRestore=function(){return(a.stackRestore= -a.asm.stackRestore).apply(null,arguments)};a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)};a._setThrew=function(){return(a._setThrew=a.asm.setThrew).apply(null,arguments)};a._free=function(){return(a._free=a.asm.free).apply(null,arguments)};var Va=a._malloc=function(){return(Va=a._malloc=a.asm.malloc).apply(null,arguments)},ha;Z=function d(){ha||ka();ha||(Z=d)};a.run=ka;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=k.size?(n(0>>=0;switch(b.BYTES_PER_ELEMENT){case 2:c>>>= -1;break;case 4:c>>>=2;break;case 8:c>>>=3}for(var d=0;dn?Math.max(C+n,0):Math.min(n,C);r=0>r?Math.max(C+r,0):Math.min(r,C);k=0>k?Math.max(C+k,0):Math.min(k,C);if(nr;)--k in this?this[--n]=this[k]:delete this[--n];return this}},"es6","es3"); +$jscomp.typedArrayCopyWithin=function(l){return l?l:Array.prototype.copyWithin};$jscomp.polyfill("Int8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); +$jscomp.polyfill("Uint16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float64Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); +var DracoEncoderModule=function(){var l="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(l=l||__filename);return function(p){function n(f){return a.locateFile?a.locateFile(f,N):N+f}function r(f,b){f||h("Assertion failed: "+b)}function k(f,b){0>2]=b};this.get_type=function(){return L[this.ptr+H.TYPE_OFFSET>>2]};this.set_destructor=function(b){L[this.ptr+H.DESTRUCTOR_OFFSET>>2]=b};this.get_destructor=function(){return L[this.ptr+H.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(b){L[this.ptr+H.REFCOUNT_OFFSET>>2]=b};this.set_caught=function(b){R[this.ptr+H.CAUGHT_OFFSET>>0]=b?1:0};this.get_caught=function(){return 0!=R[this.ptr+H.CAUGHT_OFFSET>>0]};this.set_rethrown=function(b){R[this.ptr+H.RETHROWN_OFFSET>>0]=b?1:0};this.get_rethrown= +function(){return 0!=R[this.ptr+H.RETHROWN_OFFSET>>0]};this.init=function(b,c){this.set_type(b);this.set_destructor(c);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){L[this.ptr+H.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var b=L[this.ptr+H.REFCOUNT_OFFSET>>2];L[this.ptr+H.REFCOUNT_OFFSET>>2]=b-1;return 1===b}}function I(){return 0=d&&(d=65536+((d&1023)<<10)|f.charCodeAt(++c)&1023);127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}b=Array(b+1);c=0;d=b.length;if(0=g){var t=f.charCodeAt(++e);g=65536+((g&1023)<<10)|t&1023}if(127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+ +2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18;b[c++]=128|g>>12&63}b[c++]=128|g>>6&63}b[c++]=128|g&63}}b[c]=0}f=m.alloc(b,R);m.copy(b,R,f);return f}return f}function ka(f){if("object"===typeof f){var b=m.alloc(f,R);m.copy(f,R,b);return b}return f}function la(f){if("object"===typeof f){var b=m.alloc(f,ma);m.copy(f,ma,b);return b}return f}function W(f){if("object"===typeof f){var b=m.alloc(f,L);m.copy(f,L,b);return b}return f}function ba(f){if("object"===typeof f){var b=m.alloc(f, +oa);m.copy(f,oa,b);return b}return f}function S(){throw"cannot construct a VoidPtr, no constructor in IDL";}function P(){this.ptr=Ea();D(P)[this.ptr]=this}function z(){this.ptr=Fa();D(z)[this.ptr]=this}function J(){this.ptr=Ga();D(J)[this.ptr]=this}function E(){this.ptr=Ha();D(E)[this.ptr]=this}function Q(){this.ptr=Ia();D(Q)[this.ptr]=this}function K(){this.ptr=Ja();D(K)[this.ptr]=this}function F(){this.ptr=Ka();D(F)[this.ptr]=this}function w(){this.ptr=La();D(w)[this.ptr]=this}function u(){this.ptr= +Ma();D(u)[this.ptr]=this}function x(){this.ptr=Na();D(x)[this.ptr]=this}function A(f){f&&"object"===typeof f&&(f=f.ptr);this.ptr=Oa(f);D(A)[this.ptr]=this}p=p||{};var a="undefined"!==typeof p?p:{},Ba,pa;a.ready=new Promise(function(f,b){Ba=f;pa=b});var Pa=!1,Qa=!1;a.onRuntimeInitialized=function(){Pa=!0;if(Qa&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){Qa=!0;if(Pa&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(f){if("string"!== +typeof f)return!1;f=f.split(".");return 2>f.length||3=f[1]?!0:0!=f[0]||10>>=0;var b=na.length;if(2147483648=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,f+100663296);d=Math.min(2147483648,k(Math.max(16777216, +f,d),65536));a:{try{da.grow(d-fa.byteLength+65535>>>16);C(da.buffer);var e=1;break a}catch(g){}e=void 0}if(e)return!0}return!1},memory:da};(function(){function f(e,g){a.asm=e.exports;qa=a.asm.__indirect_function_table;V--;a.monitorRunDependencies&&a.monitorRunDependencies(V);0==V&&(null!==wa&&(clearInterval(wa),wa=null),ea&&(e=ea,ea=null,e()))}function b(e){f(e.instance)}function c(e){return B().then(function(g){return WebAssembly.instantiate(g,d)}).then(e,function(g){Y("failed to asynchronously prepare wasm: "+ +g);h(g)})}var d={env:Va,wasi_snapshot_preview1:Va};V++;a.monitorRunDependencies&&a.monitorRunDependencies(V);if(a.instantiateWasm)try{return a.instantiateWasm(d,f)}catch(e){return Y("Module.instantiateWasm callback failed with error: "+e),!1}(function(){return Z||"function"!==typeof WebAssembly.instantiateStreaming||q(O,"data:application/octet-stream;base64,")||q(O,"file://")||"function"!==typeof fetch?c(b):fetch(O,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e, +d).then(b,function(g){Y("wasm streaming compile failed: "+g);Y("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(pa);return{}})();var Ta=a.___wasm_call_ctors=function(){return(Ta=a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)};a.___em_js__array_bounds_check_error=function(){return(a.___em_js__array_bounds_check_error=a.asm.__em_js__array_bounds_check_error).apply(null,arguments)};var Wa=a._emscripten_bind_VoidPtr___destroy___0=function(){return(Wa=a._emscripten_bind_VoidPtr___destroy___0= +a.asm.emscripten_bind_VoidPtr___destroy___0).apply(null,arguments)},Ea=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Ea=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0).apply(null,arguments)},Xa=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(Xa=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.emscripten_bind_GeometryAttribute___destroy___0).apply(null,arguments)},Fa=a._emscripten_bind_PointAttribute_PointAttribute_0= +function(){return(Fa=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.emscripten_bind_PointAttribute_PointAttribute_0).apply(null,arguments)},Ya=a._emscripten_bind_PointAttribute_size_0=function(){return(Ya=a._emscripten_bind_PointAttribute_size_0=a.asm.emscripten_bind_PointAttribute_size_0).apply(null,arguments)},Za=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return(Za=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.emscripten_bind_PointAttribute_attribute_type_0).apply(null, +arguments)},$a=a._emscripten_bind_PointAttribute_data_type_0=function(){return($a=a._emscripten_bind_PointAttribute_data_type_0=a.asm.emscripten_bind_PointAttribute_data_type_0).apply(null,arguments)},ab=a._emscripten_bind_PointAttribute_num_components_0=function(){return(ab=a._emscripten_bind_PointAttribute_num_components_0=a.asm.emscripten_bind_PointAttribute_num_components_0).apply(null,arguments)},bb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(bb=a._emscripten_bind_PointAttribute_normalized_0= +a.asm.emscripten_bind_PointAttribute_normalized_0).apply(null,arguments)},cb=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(cb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.emscripten_bind_PointAttribute_byte_stride_0).apply(null,arguments)},db=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(db=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.emscripten_bind_PointAttribute_byte_offset_0).apply(null,arguments)},eb=a._emscripten_bind_PointAttribute_unique_id_0= +function(){return(eb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.emscripten_bind_PointAttribute_unique_id_0).apply(null,arguments)},fb=a._emscripten_bind_PointAttribute___destroy___0=function(){return(fb=a._emscripten_bind_PointAttribute___destroy___0=a.asm.emscripten_bind_PointAttribute___destroy___0).apply(null,arguments)},Ga=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Ga=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.emscripten_bind_PointCloud_PointCloud_0).apply(null, +arguments)},gb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(gb=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.emscripten_bind_PointCloud_num_attributes_0).apply(null,arguments)},hb=a._emscripten_bind_PointCloud_num_points_0=function(){return(hb=a._emscripten_bind_PointCloud_num_points_0=a.asm.emscripten_bind_PointCloud_num_points_0).apply(null,arguments)},ib=a._emscripten_bind_PointCloud___destroy___0=function(){return(ib=a._emscripten_bind_PointCloud___destroy___0=a.asm.emscripten_bind_PointCloud___destroy___0).apply(null, +arguments)},Ha=a._emscripten_bind_Mesh_Mesh_0=function(){return(Ha=a._emscripten_bind_Mesh_Mesh_0=a.asm.emscripten_bind_Mesh_Mesh_0).apply(null,arguments)},jb=a._emscripten_bind_Mesh_num_faces_0=function(){return(jb=a._emscripten_bind_Mesh_num_faces_0=a.asm.emscripten_bind_Mesh_num_faces_0).apply(null,arguments)},kb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(kb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.emscripten_bind_Mesh_num_attributes_0).apply(null,arguments)},lb=a._emscripten_bind_Mesh_num_points_0= +function(){return(lb=a._emscripten_bind_Mesh_num_points_0=a.asm.emscripten_bind_Mesh_num_points_0).apply(null,arguments)},mb=a._emscripten_bind_Mesh_set_num_points_1=function(){return(mb=a._emscripten_bind_Mesh_set_num_points_1=a.asm.emscripten_bind_Mesh_set_num_points_1).apply(null,arguments)},nb=a._emscripten_bind_Mesh___destroy___0=function(){return(nb=a._emscripten_bind_Mesh___destroy___0=a.asm.emscripten_bind_Mesh___destroy___0).apply(null,arguments)},Ia=a._emscripten_bind_Metadata_Metadata_0= +function(){return(Ia=a._emscripten_bind_Metadata_Metadata_0=a.asm.emscripten_bind_Metadata_Metadata_0).apply(null,arguments)},ob=a._emscripten_bind_Metadata___destroy___0=function(){return(ob=a._emscripten_bind_Metadata___destroy___0=a.asm.emscripten_bind_Metadata___destroy___0).apply(null,arguments)},Ja=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Ja=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0).apply(null,arguments)}, +pb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(pb=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.emscripten_bind_DracoInt8Array_GetValue_1).apply(null,arguments)},qb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(qb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.emscripten_bind_DracoInt8Array_size_0).apply(null,arguments)},rb=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return(rb=a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.emscripten_bind_DracoInt8Array___destroy___0).apply(null, +arguments)},Ka=a._emscripten_bind_MetadataBuilder_MetadataBuilder_0=function(){return(Ka=a._emscripten_bind_MetadataBuilder_MetadataBuilder_0=a.asm.emscripten_bind_MetadataBuilder_MetadataBuilder_0).apply(null,arguments)},sb=a._emscripten_bind_MetadataBuilder_AddStringEntry_3=function(){return(sb=a._emscripten_bind_MetadataBuilder_AddStringEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddStringEntry_3).apply(null,arguments)},tb=a._emscripten_bind_MetadataBuilder_AddIntEntry_3=function(){return(tb= +a._emscripten_bind_MetadataBuilder_AddIntEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddIntEntry_3).apply(null,arguments)},ub=a._emscripten_bind_MetadataBuilder_AddIntEntryArray_4=function(){return(ub=a._emscripten_bind_MetadataBuilder_AddIntEntryArray_4=a.asm.emscripten_bind_MetadataBuilder_AddIntEntryArray_4).apply(null,arguments)},vb=a._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=function(){return(vb=a._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddDoubleEntry_3).apply(null, +arguments)},wb=a._emscripten_bind_MetadataBuilder___destroy___0=function(){return(wb=a._emscripten_bind_MetadataBuilder___destroy___0=a.asm.emscripten_bind_MetadataBuilder___destroy___0).apply(null,arguments)},La=a._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0=function(){return(La=a._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0=a.asm.emscripten_bind_PointCloudBuilder_PointCloudBuilder_0).apply(null,arguments)},xb=a._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=function(){return(xb= +a._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddFloatAttribute_5).apply(null,arguments)},yb=a._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5=function(){return(yb=a._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt8Attribute_5).apply(null,arguments)},zb=a._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=function(){return(zb=a._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5).apply(null, +arguments)},Ab=a._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=function(){return(Ab=a._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt16Attribute_5).apply(null,arguments)},Bb=a._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=function(){return(Bb=a._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5).apply(null,arguments)},Cb=a._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5= +function(){return(Cb=a._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt32Attribute_5).apply(null,arguments)},Db=a._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5=function(){return(Db=a._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5).apply(null,arguments)},Eb=a._emscripten_bind_PointCloudBuilder_AddMetadata_2=function(){return(Eb=a._emscripten_bind_PointCloudBuilder_AddMetadata_2= +a.asm.emscripten_bind_PointCloudBuilder_AddMetadata_2).apply(null,arguments)},Fb=a._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3=function(){return(Fb=a._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3=a.asm.emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3).apply(null,arguments)},Gb=a._emscripten_bind_PointCloudBuilder___destroy___0=function(){return(Gb=a._emscripten_bind_PointCloudBuilder___destroy___0=a.asm.emscripten_bind_PointCloudBuilder___destroy___0).apply(null, +arguments)},Ma=a._emscripten_bind_MeshBuilder_MeshBuilder_0=function(){return(Ma=a._emscripten_bind_MeshBuilder_MeshBuilder_0=a.asm.emscripten_bind_MeshBuilder_MeshBuilder_0).apply(null,arguments)},Hb=a._emscripten_bind_MeshBuilder_AddFacesToMesh_3=function(){return(Hb=a._emscripten_bind_MeshBuilder_AddFacesToMesh_3=a.asm.emscripten_bind_MeshBuilder_AddFacesToMesh_3).apply(null,arguments)},Ib=a._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5=function(){return(Ib=a._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5= +a.asm.emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5).apply(null,arguments)},Jb=a._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5=function(){return(Jb=a._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5=a.asm.emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5).apply(null,arguments)},Kb=a._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=function(){return(Kb=a._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=a.asm.emscripten_bind_MeshBuilder_AddMetadataToMesh_2).apply(null,arguments)}, +Lb=a._emscripten_bind_MeshBuilder_AddFloatAttribute_5=function(){return(Lb=a._emscripten_bind_MeshBuilder_AddFloatAttribute_5=a.asm.emscripten_bind_MeshBuilder_AddFloatAttribute_5).apply(null,arguments)},Mb=a._emscripten_bind_MeshBuilder_AddInt8Attribute_5=function(){return(Mb=a._emscripten_bind_MeshBuilder_AddInt8Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt8Attribute_5).apply(null,arguments)},Nb=a._emscripten_bind_MeshBuilder_AddUInt8Attribute_5=function(){return(Nb=a._emscripten_bind_MeshBuilder_AddUInt8Attribute_5= +a.asm.emscripten_bind_MeshBuilder_AddUInt8Attribute_5).apply(null,arguments)},Ob=a._emscripten_bind_MeshBuilder_AddInt16Attribute_5=function(){return(Ob=a._emscripten_bind_MeshBuilder_AddInt16Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt16Attribute_5).apply(null,arguments)},Pb=a._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=function(){return(Pb=a._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddUInt16Attribute_5).apply(null,arguments)},Qb=a._emscripten_bind_MeshBuilder_AddInt32Attribute_5= +function(){return(Qb=a._emscripten_bind_MeshBuilder_AddInt32Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt32Attribute_5).apply(null,arguments)},Rb=a._emscripten_bind_MeshBuilder_AddUInt32Attribute_5=function(){return(Rb=a._emscripten_bind_MeshBuilder_AddUInt32Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddUInt32Attribute_5).apply(null,arguments)},Sb=a._emscripten_bind_MeshBuilder_AddMetadata_2=function(){return(Sb=a._emscripten_bind_MeshBuilder_AddMetadata_2=a.asm.emscripten_bind_MeshBuilder_AddMetadata_2).apply(null, +arguments)},Tb=a._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=function(){return(Tb=a._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=a.asm.emscripten_bind_MeshBuilder_SetMetadataForAttribute_3).apply(null,arguments)},Ub=a._emscripten_bind_MeshBuilder___destroy___0=function(){return(Ub=a._emscripten_bind_MeshBuilder___destroy___0=a.asm.emscripten_bind_MeshBuilder___destroy___0).apply(null,arguments)},Na=a._emscripten_bind_Encoder_Encoder_0=function(){return(Na=a._emscripten_bind_Encoder_Encoder_0= +a.asm.emscripten_bind_Encoder_Encoder_0).apply(null,arguments)},Vb=a._emscripten_bind_Encoder_SetEncodingMethod_1=function(){return(Vb=a._emscripten_bind_Encoder_SetEncodingMethod_1=a.asm.emscripten_bind_Encoder_SetEncodingMethod_1).apply(null,arguments)},Wb=a._emscripten_bind_Encoder_SetAttributeQuantization_2=function(){return(Wb=a._emscripten_bind_Encoder_SetAttributeQuantization_2=a.asm.emscripten_bind_Encoder_SetAttributeQuantization_2).apply(null,arguments)},Xb=a._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5= +function(){return(Xb=a._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5=a.asm.emscripten_bind_Encoder_SetAttributeExplicitQuantization_5).apply(null,arguments)},Yb=a._emscripten_bind_Encoder_SetSpeedOptions_2=function(){return(Yb=a._emscripten_bind_Encoder_SetSpeedOptions_2=a.asm.emscripten_bind_Encoder_SetSpeedOptions_2).apply(null,arguments)},Zb=a._emscripten_bind_Encoder_SetTrackEncodedProperties_1=function(){return(Zb=a._emscripten_bind_Encoder_SetTrackEncodedProperties_1=a.asm.emscripten_bind_Encoder_SetTrackEncodedProperties_1).apply(null, +arguments)},$b=a._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=function(){return($b=a._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=a.asm.emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2).apply(null,arguments)},ac=a._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=function(){return(ac=a._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=a.asm.emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3).apply(null,arguments)},bc=a._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0= +function(){return(bc=a._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0=a.asm.emscripten_bind_Encoder_GetNumberOfEncodedPoints_0).apply(null,arguments)},cc=a._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=function(){return(cc=a._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=a.asm.emscripten_bind_Encoder_GetNumberOfEncodedFaces_0).apply(null,arguments)},dc=a._emscripten_bind_Encoder___destroy___0=function(){return(dc=a._emscripten_bind_Encoder___destroy___0=a.asm.emscripten_bind_Encoder___destroy___0).apply(null, +arguments)},Oa=a._emscripten_bind_ExpertEncoder_ExpertEncoder_1=function(){return(Oa=a._emscripten_bind_ExpertEncoder_ExpertEncoder_1=a.asm.emscripten_bind_ExpertEncoder_ExpertEncoder_1).apply(null,arguments)},ec=a._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=function(){return(ec=a._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=a.asm.emscripten_bind_ExpertEncoder_SetEncodingMethod_1).apply(null,arguments)},fc=a._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=function(){return(fc= +a._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=a.asm.emscripten_bind_ExpertEncoder_SetAttributeQuantization_2).apply(null,arguments)},gc=a._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5=function(){return(gc=a._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5=a.asm.emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5).apply(null,arguments)},hc=a._emscripten_bind_ExpertEncoder_SetSpeedOptions_2=function(){return(hc=a._emscripten_bind_ExpertEncoder_SetSpeedOptions_2= +a.asm.emscripten_bind_ExpertEncoder_SetSpeedOptions_2).apply(null,arguments)},ic=a._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1=function(){return(ic=a._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1=a.asm.emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1).apply(null,arguments)},jc=a._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=function(){return(jc=a._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=a.asm.emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2).apply(null, +arguments)},kc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=function(){return(kc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=a.asm.emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0).apply(null,arguments)},lc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=function(){return(lc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=a.asm.emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0).apply(null,arguments)},mc=a._emscripten_bind_ExpertEncoder___destroy___0= +function(){return(mc=a._emscripten_bind_ExpertEncoder___destroy___0=a.asm.emscripten_bind_ExpertEncoder___destroy___0).apply(null,arguments)},nc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(nc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID).apply(null,arguments)},oc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(oc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION).apply(null, +arguments)},pc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(pc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL).apply(null,arguments)},qc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(qc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR).apply(null,arguments)},rc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD= +function(){return(rc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD).apply(null,arguments)},sc=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return(sc=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC).apply(null,arguments)},tc=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(tc=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE= +a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE).apply(null,arguments)},uc=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(uc=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD).apply(null,arguments)},vc=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(vc=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH).apply(null, +arguments)},wc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=function(){return(wc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=a.asm.emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING).apply(null,arguments)},xc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=function(){return(xc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=a.asm.emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING).apply(null, +arguments)};a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)};a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)};a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)};a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)};a._setThrew=function(){return(a._setThrew=a.asm.setThrew).apply(null,arguments)};a._free=function(){return(a._free=a.asm.free).apply(null, +arguments)};var Ua=a._malloc=function(){return(Ua=a._malloc=a.asm.malloc).apply(null,arguments)},ja;ea=function b(){ja||M();ja||(ea=b)};a.run=M;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=m.size?(r(0>>=0;switch(c.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var e=0;e... -static const char kDracoVersion[] = "1.4.0"; +static const char kDracoVersion[] = "1.4.1"; const char *Version() { return kDracoVersion; } diff --git a/src/draco/mesh/mesh_are_equivalent_test.cc b/src/draco/mesh/mesh_are_equivalent_test.cc index ff633bc7..74db3f7d 100644 --- a/src/draco/mesh/mesh_are_equivalent_test.cc +++ b/src/draco/mesh/mesh_are_equivalent_test.cc @@ -63,7 +63,6 @@ TEST_F(MeshAreEquivalentTest, TestPermutedTwoFaces) { ASSERT_TRUE(equiv(*mesh_0, *mesh_1)); } -// TEST_F(MeshAreEquivalentTest, TestPermutedThreeFaces) { const std::string file_name_0 = "three_faces_123.obj"; const std::string file_name_1 = "three_faces_312.obj"; diff --git a/unity/Plugin/libdracodec_unity_android.tar.bz b/unity/Plugin/libdracodec_unity_android.tar.bz index 36a5c1e7..fdabbb9a 100644 Binary files a/unity/Plugin/libdracodec_unity_android.tar.bz and b/unity/Plugin/libdracodec_unity_android.tar.bz differ diff --git a/unity/Plugin/libdracodec_unity_ios.tar.bz b/unity/Plugin/libdracodec_unity_ios.tar.bz index e7be8454..7d176a1f 100644 Binary files a/unity/Plugin/libdracodec_unity_ios.tar.bz and b/unity/Plugin/libdracodec_unity_ios.tar.bz differ diff --git a/unity/Plugin/libdracodec_unity_macos.tar.bz b/unity/Plugin/libdracodec_unity_macos.tar.bz index 7ddb1b59..e5a93b25 100644 Binary files a/unity/Plugin/libdracodec_unity_macos.tar.bz and b/unity/Plugin/libdracodec_unity_macos.tar.bz differ diff --git a/unity/Plugin/libdracodec_unity_windows.tar.bz b/unity/Plugin/libdracodec_unity_windows.tar.bz index 163edc7b..16c9f981 100644 Binary files a/unity/Plugin/libdracodec_unity_windows.tar.bz and b/unity/Plugin/libdracodec_unity_windows.tar.bz differ