grunt-xml-and-xsd-validator
Version:
Grunt plugin to validate XML files and test if the documents are well-formed using a XSD schema
45 lines (38 loc) • 4.26 MB
JavaScript
/*
* modified to not terminate the process.
*
* original:
* kripken, sterpe, MIT Licensens
* https://github.com/kripken/xml.js
*/
/*
* libxml Licenses
except where otherwise noted in the source code (e.g. the files hash.c,
list.c and the trio files, which are covered by a similar licence but
with different Copyright notices) all the files are:
Copyright (C) 1998-2012 Daniel Veillard. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is fur-
nished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
var xmllint = {}
;
xmllint.validateXML = function (options) {
var Module = {
xml: options.xml,
schema: options.schema
}
;
Module["preRun"]=(function(){var i;for(i=0;i<(1||Module["xml"].length);i++){FS.createDataFile("/","file_"+i+".xml",Module["intArrayFromString"](Module["xml"][i]),true,true)}for(i=0;i<Module["schema"].length;i++){FS.createDataFile("/","file_"+i+".xsd",Module["intArrayFromString"](Module["schema"][i]),true,true)}});Module.arguments=["--noout"];((function(){var i;if("[object Array]"!==Object.prototype.toString.call(Module["schema"])){Module["schema"]=[Module["schema"]]}if("[object Array]"!==Object.prototype.toString.call(Module["xml"])){Module["xml"]=[Module["xml"]]}for(i=0;i<Module["schema"].length;i++){Module.arguments.push("--schema");Module.arguments.push("file_"+i+".xsd")}for(i=0;i<(1||Module["xml"].length);i++){Module.arguments.push("file_"+i+".xml")}}))();Module["return"]="";Module["stdout"]=Module["stderr"]=(function(code){Module["return"]+=String.fromCharCode(code)});var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function";var ENVIRONMENT_IS_WEB=typeof window==="object";var ENVIRONMENT_IS_WORKER=typeof importScripts==="function";var ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=function print(x){process["stdout"].write(x+"\n")};if(!Module["printErr"])Module["printErr"]=function printErr(x){process["stderr"].write(x+"\n")};var nodeFS=require("fs");var nodePath=require("path");Module["read"]=function read(filename,binary){filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](filename);if(!ret&&filename!=nodePath["resolve"](filename)){filename=path.join(__dirname,"..","src",filename);ret=nodeFS["readFileSync"](filename)}if(ret&&!binary)ret=ret.toString();return ret};Module["readBinary"]=function readBinary(filename){return Module["read"](filename,true)};Module["load"]=function load(f){globalEval(read(f))};if(process["argv"].length>1){Module["thisProgram"]=process["argv"][1].replace(/\\/g,"/")}else{Module["thisProgram"]="unknown-program"}Module["arguments"]=process["argv"].slice(2);if(typeof module!=="undefined"){module["exports"]=Module}process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}))}else if(ENVIRONMENT_IS_SHELL){if(!Module["print"])Module["print"]=print;if(typeof printErr!="undefined")Module["printErr"]=printErr;if(typeof read!="undefined"){Module["read"]=read}else{Module["read"]=function read(){throw"no read() available (jsc?)"}}Module["readBinary"]=function readBinary(f){if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}var data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){Module["arguments"]=scriptArgs}else if(typeof arguments!="undefined"){Module["arguments"]=arguments}this["Module"]=Module}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof console!=="undefined"){if(!Module["print"])Module["print"]=function print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=function printErr(x){console.log(x)}}else{var TRY_USE_DUMP=false;if(!Module["print"])Module["print"]=TRY_USE_DUMP&&typeof dump!=="undefined"?(function(x){dump(x)}):(function(x){})}if(ENVIRONMENT_IS_WEB){window["Module"]=Module}else{Module["load"]=importScripts}}else{throw"Unknown runtime environment. Where are we?"}function globalEval(x){eval.call(null,x)}if(!Module["load"]&&Module["read"]){Module["load"]=function load(f){globalEval(Module["read"](f))}}if(!Module["print"]){Module["print"]=(function(){})}if(!Module["printErr"]){Module["printErr"]=Module["print"]}if(!Module["arguments"]){Module["arguments"]=[]}if(!Module["thisProgram"]){Module["thisProgram"]="./this.program"}Module.print=Module["print"];Module.printErr=Module["printErr"];Module["preRun"]=[];Module["postRun"]=[];for(var key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}var Runtime={setTempRet0:(function(value){tempRet0=value}),getTempRet0:(function(){return tempRet0}),stackSave:(function(){return STACKTOP}),stackRestore:(function(stackTop){STACKTOP=stackTop}),getNativeTypeSize:(function(type){switch(type){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:{if(type[type.length-1]==="*"){return Runtime.QUANTUM_SIZE}else if(type[0]==="i"){var bits=parseInt(type.substr(1));assert(bits%8===0);return bits/8}else{return 0}}}}),getNativeFieldSize:(function(type){return Math.max(Runtime.getNativeTypeSize(type),Runtime.QUANTUM_SIZE)}),STACK_ALIGN:16,getAlignSize:(function(type,size,vararg){if(!vararg&&(type=="i64"||type=="double"))return 8;if(!type)return Math.min(size,8);return Math.min(size||(type?Runtime.getNativeFieldSize(type):0),Runtime.QUANTUM_SIZE)}),dynCall:(function(sig,ptr,args){if(args&&args.length){if(!args.splice)args=Array.prototype.slice.call(args);args.splice(0,0,ptr);return Module["dynCall_"+sig].apply(null,args)}else{return Module["dynCall_"+sig].call(null,ptr)}}),functionPointers:[],addFunction:(function(func){for(var i=0;i<Runtime.functionPointers.length;i++){if(!Runtime.functionPointers[i]){Runtime.functionPointers[i]=func;return 2*(1+i)}}throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."}),removeFunction:(function(index){Runtime.functionPointers[(index-2)/2]=null}),getAsmConst:(function(code,numArgs){if(!Runtime.asmConstCache)Runtime.asmConstCache={};var func=Runtime.asmConstCache[code];if(func)return func;var args=[];for(var i=0;i<numArgs;i++){args.push(String.fromCharCode(36)+i)}var source=Pointer_stringify(code);if(source[0]==='"'){if(source.indexOf('"',1)===source.length-1){source=source.substr(1,source.length-2)}else{abort("invalid EM_ASM input |"+source+"|. Please use EM_ASM(..code..) (no quotes) or EM_ASM({ ..code($0).. }, input) (to input values)")}}try{var evalled=eval("(function(Module, FS) { return function("+args.join(",")+"){ "+source+" } })")(Module,typeof FS!=="undefined"?FS:null)}catch(e){Module.printErr("error in executing inline EM_ASM code: "+e+" on: \n\n"+source+"\n\nwith args |"+args+"| (make sure to use the right one out of EM_ASM, EM_ASM_ARGS, etc.)");throw e}return Runtime.asmConstCache[code]=evalled}),warnOnce:(function(text){if(!Runtime.warnOnce.shown)Runtime.warnOnce.shown={};if(!Runtime.warnOnce.shown[text]){Runtime.warnOnce.shown[text]=1;Module.printErr(text)}}),funcWrappers:{},getFuncWrapper:(function(func,sig){assert(sig);if(!Runtime.funcWrappers[sig]){Runtime.funcWrappers[sig]={}}var sigCache=Runtime.funcWrappers[sig];if(!sigCache[func]){sigCache[func]=function dynCall_wrapper(){return Runtime.dynCall(sig,func,arguments)}}return sigCache[func]}),UTF8Processor:(function(){var buffer=[];var needed=0;this.processCChar=(function(code){code=code&255;if(buffer.length==0){if((code&128)==0){return String.fromCharCode(code)}buffer.push(code);if((code&224)==192){needed=1}else if((code&240)==224){needed=2}else{needed=3}return""}if(needed){buffer.push(code);needed--;if(needed>0)return""}var c1=buffer[0];var c2=buffer[1];var c3=buffer[2];var c4=buffer[3];var ret;if(buffer.length==2){ret=String.fromCharCode((c1&31)<<6|c2&63)}else if(buffer.length==3){ret=String.fromCharCode((c1&15)<<12|(c2&63)<<6|c3&63)}else{var codePoint=(c1&7)<<18|(c2&63)<<12|(c3&63)<<6|c4&63;ret=String.fromCharCode(((codePoint-65536)/1024|0)+55296,(codePoint-65536)%1024+56320)}buffer.length=0;return ret});this.processJSString=function processJSString(string){string=unescape(encodeURIComponent(string));var ret=[];for(var i=0;i<string.length;i++){ret.push(string.charCodeAt(i))}return ret}}),getCompilerSetting:(function(name){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"}),stackAlloc:(function(size){var ret=STACKTOP;STACKTOP=STACKTOP+size|0;STACKTOP=STACKTOP+15&-16;return ret}),staticAlloc:(function(size){var ret=STATICTOP;STATICTOP=STATICTOP+size|0;STATICTOP=STATICTOP+15&-16;return ret}),dynamicAlloc:(function(size){var ret=DYNAMICTOP;DYNAMICTOP=DYNAMICTOP+size|0;DYNAMICTOP=DYNAMICTOP+15&-16;if(DYNAMICTOP>=TOTAL_MEMORY)enlargeMemory();return ret}),alignMemory:(function(size,quantum){var ret=size=Math.ceil(size/(quantum?quantum:16))*(quantum?quantum:16);return ret}),makeBigInt:(function(low,high,unsigned){var ret=unsigned?+(low>>>0)+ +(high>>>0)*+4294967296:+(low>>>0)+ +(high|0)*+4294967296;return ret}),GLOBAL_BASE:8,QUANTUM_SIZE:4,__dummy__:0};Module["Runtime"]=Runtime;var __THREW__=0;var ABORT=false;var EXITSTATUS=0;var undef=0;var tempValue,tempInt,tempBigInt,tempInt2,tempBigInt2,tempPair,tempBigIntI,tempBigIntR,tempBigIntS,tempBigIntP,tempBigIntD,tempDouble,tempFloat;var tempI64,tempI64b;var tempRet0,tempRet1,tempRet2,tempRet3,tempRet4,tempRet5,tempRet6,tempRet7,tempRet8,tempRet9;function assert(condition,text){if(!condition){abort("Assertion failed: "+text)}}var globalScope=this;function getCFunc(ident){var func=Module["_"+ident];if(!func){try{func=eval("_"+ident)}catch(e){}}assert(func,"Cannot call unknown function "+ident+" (perhaps LLVM optimizations or closure removed it?)");return func}var cwrap,ccall;((function(){var JSfuncs={"stackSave":(function(){Runtime.stackSave()}),"stackRestore":(function(){Runtime.stackRestore()}),"arrayToC":(function(arr){var ret=Runtime.stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}),"stringToC":(function(str){var ret=0;if(str!==null&&str!==undefined&&str!==0){ret=Runtime.stackAlloc((str.length<<2)+1);writeStringToMemory(str,ret)}return ret})};var toC={"string":JSfuncs["stringToC"],"array":JSfuncs["arrayToC"]};ccall=function ccallFunc(ident,returnType,argTypes,args){var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;i<args.length;i++){var converter=toC[argTypes[i]];if(converter){if(stack===0)stack=Runtime.stackSave();cArgs[i]=converter(args[i])}else{cArgs[i]=args[i]}}}var ret=func.apply(null,cArgs);if(returnType==="string")ret=Pointer_stringify(ret);if(stack!==0)Runtime.stackRestore(stack);return ret};var sourceRegex=/^function\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;function parseJSFunc(jsfunc){var parsed=jsfunc.toString().match(sourceRegex).slice(1);return{arguments:parsed[0],body:parsed[1],returnValue:parsed[2]}}var JSsource={};for(var fun in JSfuncs){if(JSfuncs.hasOwnProperty(fun)){JSsource[fun]=parseJSFunc(JSfuncs[fun])}}cwrap=function cwrap(ident,returnType,argTypes){argTypes=argTypes||[];var cfunc=getCFunc(ident);var numericArgs=argTypes.every((function(type){return type==="number"}));var numericRet=returnType!=="string";if(numericRet&&numericArgs){return cfunc}var argNames=argTypes.map((function(x,i){return"$"+i}));var funcstr="(function("+argNames.join(",")+") {";var nargs=argTypes.length;if(!numericArgs){funcstr+="var stack = "+JSsource["stackSave"].body+";";for(var i=0;i<nargs;i++){var arg=argNames[i],type=argTypes[i];if(type==="number")continue;var convertCode=JSsource[type+"ToC"];funcstr+="var "+convertCode.arguments+" = "+arg+";";funcstr+=convertCode.body+";";funcstr+=arg+"="+convertCode.returnValue+";"}}var cfuncname=parseJSFunc((function(){return cfunc})).returnValue;funcstr+="var ret = "+cfuncname+"("+argNames.join(",")+");";if(!numericRet){var strgfy=parseJSFunc((function(){return Pointer_stringify})).returnValue;funcstr+="ret = "+strgfy+"(ret);"}if(!numericArgs){funcstr+=JSsource["stackRestore"].body.replace("()","(stack)")+";"}funcstr+="return ret})";return eval(funcstr)}}))();Module["cwrap"]=cwrap;Module["ccall"]=ccall;function setValue(ptr,value,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":HEAP8[ptr>>0]=value;break;case"i8":HEAP8[ptr>>0]=value;break;case"i16":HEAP16[ptr>>1]=value;break;case"i32":HEAP32[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math_abs(tempDouble)>=+1?tempDouble>+0?(Math_min(+Math_floor(tempDouble/+4294967296),+4294967295)|0)>>>0:~~+Math_ceil((tempDouble- +(~~tempDouble>>>0))/+4294967296)>>>0:0)],HEAP32[ptr>>2]=tempI64[0],HEAP32[ptr+4>>2]=tempI64[1];break;case"float":HEAPF32[ptr>>2]=value;break;case"double":HEAPF64[ptr>>3]=value;break;default:abort("invalid type for setValue: "+type)}}Module["setValue"]=setValue;function getValue(ptr,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":return HEAP8[ptr>>0];case"i8":return HEAP8[ptr>>0];case"i16":return HEAP16[ptr>>1];case"i32":return HEAP32[ptr>>2];case"i64":return HEAP32[ptr>>2];case"float":return HEAPF32[ptr>>2];case"double":return HEAPF64[ptr>>3];default:abort("invalid type for setValue: "+type)}return null}Module["getValue"]=getValue;var ALLOC_NORMAL=0;var ALLOC_STACK=1;var ALLOC_STATIC=2;var ALLOC_DYNAMIC=3;var ALLOC_NONE=4;Module["ALLOC_NORMAL"]=ALLOC_NORMAL;Module["ALLOC_STACK"]=ALLOC_STACK;Module["ALLOC_STATIC"]=ALLOC_STATIC;Module["ALLOC_DYNAMIC"]=ALLOC_DYNAMIC;Module["ALLOC_NONE"]=ALLOC_NONE;function allocate(slab,types,allocator,ptr){var zeroinit,size;if(typeof slab==="number"){zeroinit=true;size=slab}else{zeroinit=false;size=slab.length}var singleType=typeof types==="string"?types:null;var ret;if(allocator==ALLOC_NONE){ret=ptr}else{ret=[_malloc,Runtime.stackAlloc,Runtime.staticAlloc,Runtime.dynamicAlloc][allocator===undefined?ALLOC_STATIC:allocator](Math.max(size,singleType?1:types.length))}if(zeroinit){var ptr=ret,stop;assert((ret&3)==0);stop=ret+(size&~3);for(;ptr<stop;ptr+=4){HEAP32[ptr>>2]=0}stop=ret+size;while(ptr<stop){HEAP8[ptr++>>0]=0}return ret}if(singleType==="i8"){if(slab.subarray||slab.slice){HEAPU8.set(slab,ret)}else{HEAPU8.set(new Uint8Array(slab),ret)}return ret}var i=0,type,typeSize,previousType;while(i<size){var curr=slab[i];if(typeof curr==="function"){curr=Runtime.getFunctionIndex(curr)}type=singleType||types[i];if(type===0){i++;continue}if(type=="i64")type="i32";setValue(ret+i,curr,type);if(previousType!==type){typeSize=Runtime.getNativeTypeSize(type);previousType=type}i+=typeSize}return ret}Module["allocate"]=allocate;function Pointer_stringify(ptr,length){if(length===0||!ptr)return"";var hasUtf=false;var t;var i=0;while(1){t=HEAPU8[ptr+i>>0];if(t>=128)hasUtf=true;else if(t==0&&!length)break;i++;if(length&&i==length)break}if(!length)length=i;var ret="";if(!hasUtf){var MAX_CHUNK=1024;var curr;while(length>0){curr=String.fromCharCode.apply(String,HEAPU8.subarray(ptr,ptr+Math.min(length,MAX_CHUNK)));ret=ret?ret+curr:curr;ptr+=MAX_CHUNK;length-=MAX_CHUNK}return ret}var utf8=new Runtime.UTF8Processor;for(i=0;i<length;i++){t=HEAPU8[ptr+i>>0];ret+=utf8.processCChar(t)}return ret}Module["Pointer_stringify"]=Pointer_stringify;function UTF16ToString(ptr){var i=0;var str="";while(1){var codeUnit=HEAP16[ptr+i*2>>1];if(codeUnit==0)return str;++i;str+=String.fromCharCode(codeUnit)}}Module["UTF16ToString"]=UTF16ToString;function stringToUTF16(str,outPtr){for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);HEAP16[outPtr+i*2>>1]=codeUnit}HEAP16[outPtr+str.length*2>>1]=0}Module["stringToUTF16"]=stringToUTF16;function UTF32ToString(ptr){var i=0;var str="";while(1){var utf32=HEAP32[ptr+i*4>>2];if(utf32==0)return str;++i;if(utf32>=65536){var ch=utf32-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}else{str+=String.fromCharCode(utf32)}}}Module["UTF32ToString"]=UTF32ToString;function stringToUTF32(str,outPtr){var iChar=0;for(var iCodeUnit=0;iCodeUnit<str.length;++iCodeUnit){var codeUnit=str.charCodeAt(iCodeUnit);if(codeUnit>=55296&&codeUnit<=57343){var trailSurrogate=str.charCodeAt(++iCodeUnit);codeUnit=65536+((codeUnit&1023)<<10)|trailSurrogate&1023}HEAP32[outPtr+iChar*4>>2]=codeUnit;++iChar}HEAP32[outPtr+iChar*4>>2]=0}Module["stringToUTF32"]=stringToUTF32;function demangle(func){var hasLibcxxabi=!!Module["___cxa_demangle"];if(hasLibcxxabi){try{var buf=_malloc(func.length);writeStringToMemory(func.substr(1),buf);var status=_malloc(4);var ret=Module["___cxa_demangle"](buf,0,0,status);if(getValue(status,"i32")===0&&ret){return Pointer_stringify(ret)}}catch(e){}finally{if(buf)_free(buf);if(status)_free(status);if(ret)_free(ret)}}var i=3;var basicTypes={"v":"void","b":"bool","c":"char","s":"short","i":"int","l":"long","f":"float","d":"double","w":"wchar_t","a":"signed char","h":"unsigned char","t":"unsigned short","j":"unsigned int","m":"unsigned long","x":"long long","y":"unsigned long long","z":"..."};var subs=[];var first=true;function dump(x){if(x)Module.print(x);Module.print(func);var pre="";for(var a=0;a<i;a++)pre+=" ";Module.print(pre+"^")}function parseNested(){i++;if(func[i]==="K")i++;var parts=[];while(func[i]!=="E"){if(func[i]==="S"){i++;var next=func.indexOf("_",i);var num=func.substring(i,next)||0;parts.push(subs[num]||"?");i=next+1;continue}if(func[i]==="C"){parts.push(parts[parts.length-1]);i+=2;continue}var size=parseInt(func.substr(i));var pre=size.toString().length;if(!size||!pre){i--;break}var curr=func.substr(i+pre,size);parts.push(curr);subs.push(curr);i+=pre+size}i++;return parts}function parse(rawList,limit,allowVoid){limit=limit||Infinity;var ret="",list=[];function flushList(){return"("+list.join(", ")+")"}var name;if(func[i]==="N"){name=parseNested().join("::");limit--;if(limit===0)return rawList?[name]:name}else{if(func[i]==="K"||first&&func[i]==="L")i++;var size=parseInt(func.substr(i));if(size){var pre=size.toString().length;name=func.substr(i+pre,size);i+=pre+size}}first=false;if(func[i]==="I"){i++;var iList=parse(true);var iRet=parse(true,1,true);ret+=iRet[0]+" "+name+"<"+iList.join(", ")+">"}else{ret=name}paramLoop:while(i<func.length&&limit-->0){var c=func[i++];if(c in basicTypes){list.push(basicTypes[c])}else{switch(c){case"P":list.push(parse(true,1,true)[0]+"*");break;case"R":list.push(parse(true,1,true)[0]+"&");break;case"L":{i++;var end=func.indexOf("E",i);var size=end-i;list.push(func.substr(i,size));i+=size+2;break};case"A":{var size=parseInt(func.substr(i));i+=size.toString().length;if(func[i]!=="_")throw"?";i++;list.push(parse(true,1,true)[0]+" ["+size+"]");break};case"E":break paramLoop;default:ret+="?"+c;break paramLoop}}}if(!allowVoid&&list.length===1&&list[0]==="void")list=[];if(rawList){if(ret){list.push(ret+"?")}return list}else{return ret+flushList()}}var parsed=func;try{if(func=="Object._main"||func=="_main"){return"main()"}if(typeof func==="number")func=Pointer_stringify(func);if(func[0]!=="_")return func;if(func[1]!=="_")return func;if(func[2]!=="Z")return func;switch(func[3]){case"n":return"operator new()";case"d":return"operator delete()"}parsed=parse()}catch(e){parsed+="?"}if(parsed.indexOf("?")>=0&&!hasLibcxxabi){Runtime.warnOnce("warning: a problem occurred in builtin C++ name demangling; build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling")}return parsed}function demangleAll(text){return text.replace(/__Z[\w\d_]+/g,(function(x){var y=demangle(x);return x===y?x:x+" ["+y+"]"}))}function jsStackTrace(){var err=new Error;if(!err.stack){try{throw new Error(0)}catch(e){err=e}if(!err.stack){return"(no stack trace available)"}}return err.stack.toString()}function stackTrace(){return demangleAll(jsStackTrace())}Module["stackTrace"]=stackTrace;var PAGE_SIZE=4096;function alignMemoryPage(x){return x+4095&-4096}var HEAP;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;var STATIC_BASE=0,STATICTOP=0,staticSealed=false;var STACK_BASE=0,STACKTOP=0,STACK_MAX=0;var DYNAMIC_BASE=0,DYNAMICTOP=0;function enlargeMemory(){abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+TOTAL_MEMORY+", (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.")}var TOTAL_STACK=Module["TOTAL_STACK"]||5242880;var TOTAL_MEMORY=Module["TOTAL_MEMORY"]||16777216;var FAST_MEMORY=Module["FAST_MEMORY"]||2097152;var totalMemory=64*1024;while(totalMemory<TOTAL_MEMORY||totalMemory<2*TOTAL_STACK){if(totalMemory<16*1024*1024){totalMemory*=2}else{totalMemory+=16*1024*1024}}if(totalMemory!==TOTAL_MEMORY){Module.printErr("increasing TOTAL_MEMORY to "+totalMemory+" to be compliant with the asm.js spec");TOTAL_MEMORY=totalMemory}assert(typeof Int32Array!=="undefined"&&typeof Float64Array!=="undefined"&&!!(new Int32Array(1))["subarray"]&&!!(new Int32Array(1))["set"],"JS engine does not provide full typed array support");var buffer=new ArrayBuffer(TOTAL_MEMORY);HEAP8=new Int8Array(buffer);HEAP16=new Int16Array(buffer);HEAP32=new Int32Array(buffer);HEAPU8=new Uint8Array(buffer);HEAPU16=new Uint16Array(buffer);HEAPU32=new Uint32Array(buffer);HEAPF32=new Float32Array(buffer);HEAPF64=new Float64Array(buffer);HEAP32[0]=255;assert(HEAPU8[0]===255&&HEAPU8[3]===0,"Typed arrays 2 must be run on a little-endian system");Module["HEAP"]=HEAP;Module["buffer"]=buffer;Module["HEAP8"]=HEAP8;Module["HEAP16"]=HEAP16;Module["HEAP32"]=HEAP32;Module["HEAPU8"]=HEAPU8;Module["HEAPU16"]=HEAPU16;Module["HEAPU32"]=HEAPU32;Module["HEAPF32"]=HEAPF32;Module["HEAPF64"]=HEAPF64;function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback();continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){Runtime.dynCall("v",func)}else{Runtime.dynCall("vi",func,[callback.arg])}}else{func(callback.arg===undefined?null:callback.arg)}}}var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATEXIT__=[];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 ensureInitRuntime(){if(runtimeInitialized)return;runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){callRuntimeCallbacks(__ATEXIT__);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)}Module["addOnPreRun"]=Module.addOnPreRun=addOnPreRun;function addOnInit(cb){__ATINIT__.unshift(cb)}Module["addOnInit"]=Module.addOnInit=addOnInit;function addOnPreMain(cb){__ATMAIN__.unshift(cb)}Module["addOnPreMain"]=Module.addOnPreMain=addOnPreMain;function addOnExit(cb){__ATEXIT__.unshift(cb)}Module["addOnExit"]=Module.addOnExit=addOnExit;function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}Module["addOnPostRun"]=Module.addOnPostRun=addOnPostRun;function intArrayFromString(stringy,dontAddNull,length){var ret=(new Runtime.UTF8Processor).processJSString(stringy);if(length){ret.length=length}if(!dontAddNull){ret.push(0)}return ret}Module["intArrayFromString"]=intArrayFromString;function intArrayToString(array){var ret=[];for(var i=0;i<array.length;i++){var chr=array[i];if(chr>255){chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}Module["intArrayToString"]=intArrayToString;function writeStringToMemory(string,buffer,dontAddNull){var array=intArrayFromString(string,dontAddNull);var i=0;while(i<array.length){var chr=array[i];HEAP8[buffer+i>>0]=chr;i=i+1}}Module["writeStringToMemory"]=writeStringToMemory;function writeArrayToMemory(array,buffer){for(var i=0;i<array.length;i++){HEAP8[buffer+i>>0]=array[i]}}Module["writeArrayToMemory"]=writeArrayToMemory;function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i<str.length;i++){HEAP8[buffer+i>>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer+str.length>>0]=0}Module["writeAsciiToMemory"]=writeAsciiToMemory;function unSign(value,bits,ignore){if(value>=0){return value}return bits<=32?2*Math.abs(1<<bits-1)+value:Math.pow(2,bits)+value}function reSign(value,bits,ignore){if(value<=0){return value}var half=bits<=32?Math.abs(1<<bits-1):Math.pow(2,bits-1);if(value>=half&&(bits<=32||value>half)){value=-2*half+value}return value}if(!Math["imul"]||Math["imul"](4294967295,5)!==-5)Math["imul"]=function imul(a,b){var ah=a>>>16;var al=a&65535;var bh=b>>>16;var bl=b&65535;return al*bl+(ah*bl+al*bh<<16)|0};Math.imul=Math["imul"];var Math_abs=Math.abs;var Math_cos=Math.cos;var Math_sin=Math.sin;var Math_tan=Math.tan;var Math_acos=Math.acos;var Math_asin=Math.asin;var Math_atan=Math.atan;var Math_atan2=Math.atan2;var Math_exp=Math.exp;var Math_log=Math.log;var Math_sqrt=Math.sqrt;var Math_ceil=Math.ceil;var Math_floor=Math.floor;var Math_pow=Math.pow;var Math_imul=Math.imul;var Math_fround=Math.fround;var Math_min=Math.min;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}Module["addRunDependency"]=addRunDependency;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["removeRunDependency"]=removeRunDependency;Module["preloadedImages"]={};Module["preloadedAudios"]={};var memoryInitializer=null;STATIC_BASE=8;STATICTOP=STATIC_BASE+329776;__ATINIT__.push();allocate([1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,11,0,0,0,12,0,0,0,13,0,0,0,14,0,0,0,15,0,0,0,16,0,0,0,17,0,0,0,18,0,0,0,19,0,0,0,20,0,0,0,21,0,0,0,22,0,0,0,23,0,0,0,24,0,0,0,25,0,0,0,26,0,0,0,27,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,45,0,0,0,0,0,0,0,45,100,101,98,117,103,0,0,45,45,100,101,98,117,103,0,0,0,0,0,0,0,0,0,45,115,104,101,108,108,0,0,45,45,115,104,101,108,108,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,99,111,112,121,0,0,0,45,45,99,111,112,121,0,0,0,0,0,0,0,0,0,0,45,114,101,99,111,118,101,114,0,0,0,0,0,0,0,0,45,45,114,101,99,111,118,101,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65,0,0,0,0,0,45,104,117,103,101,0,0,0,45,45,104,117,103,101,0,0,45,110,111,101,110,116,0,0,45,45,110,111,101,110,116,0,0,0,0,0,0,0,0,0,45,110,111,101,110,99,0,0,45,45,110,111,101,110,99,0,0,0,0,0,0,0,0,0,45,110,115,99,108,101,97,110,0,0,0,0,0,0,0,0,45,45,110,115,99,108,101,97,110,0,0,0,0,0,0,0,45,110,111,99,100,97,116,97,0,0,0,0,0,0,0,0,45,45,110,111,99,100,97,116,97,0,0,0,0,0,0,0,45,110,111,100,105,99,116,0,45,45,110,111,100,105,99,116,0,0,0,0,0,0,0,0,45,118,101,114,115,105,111,110,0,0,0,0,0,0,0,0,45,45,118,101,114,115,105,111,110,0,0,0,0,0,0,0,45,110,111,111,117,116,0,0,45,45,110,111,111,117,116,0,45,111,0,0,0,0,0,0,45,111,117,116,112,117,116,0,45,45,111,117,116,112,117,116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,104,116,109,108,111,117,116,0,0,0,0,0,0,0,0,45,45,104,116,109,108,111,117,116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,110,111,119,114,97,112,0,45,45,110,111,119,114,97,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,104,116,109,108,0,0,0,45,45,104,116,109,108,0,0,0,0,0,0,0,0,0,0,45,120,109,108,111,117,116,0,45,45,120,109,108,111,117,116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,110,111,100,101,102,100,116,100,0,0,0,0,0,0,0,45,45,110,111,100,101,102,100,116,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,108,111,97,100,100,116,100,0,0,0,0,0,0,0,0,45,45,108,111,97,100,100,116,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,100,116,100,97,116,116,114,0,0,0,0,0,0,0,0,45,45,100,116,100,97,116,116,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,118,97,108,105,100,0,0,45,45,118,97,108,105,100,0,0,0,0,0,0,0,0,0,45,112,111,115,116,118,97,108,105,100,0,0,0,0,0,0,45,45,112,111,115,116,118,97,108,105,100,0,0,0,0,0,0,0,0,0,0,0,0,0,45,100,116,100,118,97,108,105,100,0,0,0,0,0,0,0,45,45,100,116,100,118,97,108,105,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,100,116,100,118,97,108,105,100,102,112,105,0,0,0,0,45,45,100,116,100,118,97,108,105,100,102,112,105,0,0,0,0,0,0,0,0,0,0,0,45,100,114,111,112,100,116,100,0,0,0,0,0,0,0,0,45,45,100,114,111,112,100,116,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,105,110,115,101,114,116,0,45,45,105,110,115,101,114,116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,116,105,109,105,110,103,0,45,45,116,105,109,105,110,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,97,117,116,111,0,0,0,45,45,97,117,116,111,0,0,0,0,0,0,0,0,0,0,45,114,101,112,101,97,116,0,45,45,114,101,112,101,97,116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,112,117,115,104,0,0,0,45,45,112,117,115,104,0,0,0,0,0,0,0,0,0,0,45,112,117,115,104,115,109,97,108,108,0,0,0,0,0,0,45,45,112,117,115,104,115,109,97,108,108,0,0,0,0,0,0,16,0,0,0,0,0,0,45,109,101,109,111,114,121,0,45,45,109,101,109,111,114,121,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,116,101,115,116,73,79,0,45,45,116,101,115,116,73,79,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,120,105,110,99,108,117,100,101,0,0,0,0,0,0,0,45,45,120,105,110,99,108,117,100,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,110,111,120,105,110,99,108,117,100,101,110,111,100,101,0,45,45,110,111,120,105,110,99,108,117,100,101,110,111,100,101,0,0,0,0,0,0,0,0,45,110,111,102,105,120,117,112,45,98,97,115,101,45,117,114,105,115,0,0,0,0,0,0,45,45,110,111,102,105,120,117,112,45,98,97,115,101,45,117,114,105,115,0,0,0,0,0,45,110,111,119,97,114,110,105,110,103,0,0,0,0,0,0,45,45,110,111,119,97,114,110,105,110,103,0,0,0,0,0,45,112,101,100,97,110,116,105,99,0,0,0,0,0,0,0,45,45,112,101,100,97,110,116,105,99,0,0,0,0,0,0,45,100,101,98,117,103,101,110,116,0,0,0,0,0,0,0,45,45,100,101,98,117,103,101,110,116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,99,49,52,110,0,0,0,45,45,99,49,52,110,0,0,0,0,0,0,0,0,0,0,45,99,49,52,110,49,49,0,45,45,99,49,52,110,49,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,101,120,99,45,99,49,52,110,0,0,0,0,0,0,0,45,45,101,120,99,45,99,49,52,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,99,97,116,97,108,111,103,115,0,0,0,0,0,0,0,45,45,99,97,116,97,108,111,103,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,110,111,99,97,116,97,108,111,103,115,0,0,0,0,0,45,45,110,111,99,97,116,97,108,111,103,115,0,0,0,0,0,0,0,0,0,0,0,0,45,101,110,99,111,100,101,0,45,45,101,110,99,111,100,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,84,70,45,56,0,0,0,68,86,69,110,99,0,0,0,45,110,111,98,108,97,110,107,115,0,0,0,0,0,0,0,45,45,110,111,98,108,97,110,107,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,109,97,120,109,101,109,0,45,45,109,97,120,109,101,109,0,0,0,0,0,0,0,0,37,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,102,111,114,109,97,116,0,45,45,102,111,114,109,97,116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,112,114,101,116,116,121,0,45,45,112,114,101,116,116,121,0,0,0,0,0,0,0,0,45,115,116,114,101,97,109,0,45,45,115,116,114,101,97,109,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,119,97,108,107,101,114,0,45,45,119,97,108,107,101,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,115,97,120,49,0,0,0,45,45,115,97,120,49,0,0,0,0,0,0,0,0,0,0,45,115,97,120,0,0,0,0,45,45,115,97,120,0,0,0,0,0,0,0,0,0,0,0,45,99,104,107,114,101,103,105,115,116,101,114,0,0,0,0,45,45,99,104,107,114,101,103,105,115,116,101,114,0,0,0,0,0,0,0,0,0,0,0,45,114,101,108,97,120,110,103,0,0,0,0,0,0,0,0,45,45,114,101,108,97,120,110,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,115,99,104,101,109,97,0,45,45,115,99,104,101,109,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,115,99,104,101,109,97,116,114,111,110,0,0,0,0,0,45,45,115,99,104,101,109,97,116,114,111,110,0,0,0,0,0,0,0,0,0,0,0,0,45,110,111,110,101,116,0,0,45,45,110,111,110,101,116,0,45,110,111,99,111,109,112,97,99,116,0,0,0,0,0,0,45,45,110,111,99,111,109,112,97,99,116,0,0,0,0,0,45,108,111,97,100,45,116,114,97,99,101,0,0,0,0,0,45,45,108,111,97,100,45,116,114,97,99,101,0,0,0,0,0,0,0,0,0,0,0,0,45,112,97,116,104,0,0,0,45,45,112,97,116,104,0,0,45,112,97,116,116,101,114,110,0,0,0,0,0,0,0,0,45,45,112,97,116,116,101,114,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,45,120,112,97,116,104,0,0,45,45,120,112,97,116,104,0,0,0,0,0,0,0,0,0,45,111,108,100,120,109,108,49,48,0,0,0,0,0,0,0,45,45,111,108,100,120,109,108,49,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,110,107,110,111,119,110,32,111,112,116,105,111,110,32,37,115,10,0,0,0,0,0,0,83,71,77,76,95,67,65,84,65,76,79,71,95,70,73,76,69,83,0,0,0,0,0,0,86,97,114,105,97,98,108,101,32,36,83,71,77,76,95,67,65,84,65,76,79,71,95,70,73,76,69,83,32,110,111,116,32,115,101,116,10,0,0,0,88,77,76,76,73,78,84,95,73,78,68,69,78,84,0,0,0,0,0,0,0,0,0,0,60,33,68,79,67,84,89,80,69,32,72,84,77,76,32,80,85,66,76,73,67,32,34,45,47,47,87,51,67,47,47,68,84,68,32,72,84,77,76,32,52,46,48,32,84,114,97,110,115,105,116,105,111,110,97,108,47,47,69,78,34,10,0,0,9,34,104,116,116,112,58,47,47,119,119,119,46,119,51,46,111,114,103,47,84,82,47,82,69,67,45,104,116,109,108,52,48,47,108,111,111,115,101,46,100,116,100,34,62,10,0,0,60,104,116,109,108,62,60,104,101,97,100,62,60,116,105,116,108,101,62,37,115,32,111,117,116,112,117,116,60,47,116,105,116,108,101,62,60,47,104,101,97,100,62,10,0,0,0,0,60,98,111,100,121,32,98,103,99,111,108,111,114,61,34,35,102,102,102,102,102,102,34,62,60,104,49,32,97,108,105,103,110,61,34,99,101,110,116,101,114,34,62,37,115,32,111,117,116,112,117,116,60,47,104,49,62,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,83,99,104,101,109,97,116,114,111,110,32,115,99,104,101,109,97,32,37,115,32,102,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,10,0,0,0,0,0,0,0,0,0,67,111,109,112,105,108,105,110,103,32,116,104,101,32,115,99,104,101,109,97,115,0,0,0,0,0,0,0,0,0,0,0,82,101,108,97,120,45,78,71,32,115,99,104,101,109,97,32,37,115,32,102,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,10,0,0,0,0,0,0,0,0,0,0,0,87,88,83,32,115,99,104,101,109,97,32,37,115,32,102,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,97,116,116,101,114,110,32,37,115,32,102,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,10,0,0,0,0,0,0,0,0,0,0,0,82,101,103,105,115,116,114,97,116,105,111,110,32,99,111,117,110,116,32,111,102,102,58,32,37,100,10,0,0,0,0,0,37,100,32,105,116,101,114,97,116,105,111,110,115,0,0,0,60,47,98,111,100,121,62,60,47,104,116,109,108,62,10,0,49,46,48,0,0,0,0,0,105,110,102,111,0,0,0,0,97,98,99,0,0,0,0,0,114,0,0,0,0,0,0,0,109,109,97,112,32,102,97,105,108,117,114,101,32,102,111,114,32,102,105,108,101,32,37,115,10,0,0,0,0,0,0,0,80,97,114,115,105,110,103,0,88,105,110,99,108,117,100,101,32,112,114,111,99,101,115,115,105,110,103,0,0,0,0,0,67,111,112,121,105,110,103,0,70,114,101,101,105,110,103,32,111,114,105,103,105,110,97,108,0,0,0,0,0,0,0,0,99,111,117,108,100,32,110,111,116,32,103,101,116,32,118,97,108,105,100,32,108,105,115,116,32,111,102,32,101,108,101,109,101,110,116,115,10,0,0,0,78,111,32,101,108,101,109,101,110,116,32,99,97,110,32,98,101,32,105,110,115,101,114,116,101,100,32,117,110,100,101,114,32,114,111,111,116,10,0,0,37,100,32,101,108,101,109,101,110,116,32,116,121,112,101,115,32,99,97,110,32,98,101,32,105,110,115,101,114,116,101,100,32,117,110,100,101,114,32,114,111,111,116,58,10,0,0,0,37,115,10,0,0,0,0,0,0,0,0,0,0,0,0,0,119,98,0,0,0,0,0,0,102,97,105,108,101,100,32,116,111,32,111,112,101,110,32,37,115,10,0,0,0,0,0,0,83,97,118,105,110,103,0,0,67,97,110,39,116,32,119,114,105,116,101,32,100,97,116,97,10,0,0,0,0,0,0,0,70,97,105,108,101,100,32,116,111,32,99,97,110,111,110,105,99,97,108,105,122,101,10,0,70,97,105,108,101,100,32,116,111,32,115,97,118,101,10,0,0,0,0,0,0,0,0,0,102,97,105,108,101,100,32,115,97,118,101,32,116,111,32,37,115,10,0,0,0,0,0,0,80,97,114,115,105,110,103,32,68,84,68,0,0,0,0,0,67,111,117,108,100,32,110,111,116,32,112,97,114,115,101,32,68,84,68,32,37,115,10,0,67,111,117,108,100,110,39,116,32,97,108,108,111,99,97,116,101,32,118,97,108,105,100,97,116,105,111,110,32,99,111,110,116,101,120,116,10,0,0,0,68,111,99,117,109,101,110,116,32,37,115,32,100,111,101,115,32,110,111,116,32,118,97,108,105,100,97,116,101,32,97,103,97,105,110,115,116,32,37,115,10,0,0,0,0,0,0,0,86,97,108,105,100,97,116,105,110,103,32,97,103,97,105,110,115,116,32,68,84,68,0,0,68,111,99,117,109,101,110,116,32,37,115,32,100,111,101,115,32,110,111,116,32,118,97,108,105,100,97,116,101,10,0,0,86,97,108,105,100,97,116,105,110,103,0,0,0,0,0,0,37,115,32,118,97,108,105,100,97,116,101,115,10,0,0,0,37,115,32,102,97,105,108,115,32,116,111,32,118,97,108,105,100,97,116,101,10,0,0,0,37,115,32,118,97,108,105,100,97,116,105,111,110,32,103,101,110,101,114,97,116,101,100,32,97,110,32,105,110,116,101,114,110,97,108,32,101,114,114,111,114,10,0,0,0,0,0,0,70,114,101,101,105,110,103,0,0,0,0,0,0,0,0,0,120,109,108,83,116,114,101,97,109,80,117,115,104,40,41,32,102,97,105,108,117,114,101,10,0,0,0,0,0,0,0,0,119,97,108,107,105,110,103,32,116,104,114,111,117,103,104,32,116,104,101,32,100,111,99,0,102,97,105,108,101,100,32,116,111,32,119,97,108,107,32,116,104,114,111,117,103,104,32,116,104,101,32,100,111,99,10,0,70,97,105,108,101,100,32,116,111,32,99,114,97,116,101,32,97,32,114,101,97,100,101,114,32,102,114,111,109,32,116,104,101,32,100,111,99,117,109,101,110,116,10,0,0,0,0,0,45,45,0,0,0,0,0,0,37,100,32,37,100,32,37,115,32,37,100,32,37,100,0,0,10,0,0,0,0,0,0,0,32,37,115,10,0,0,0,0,78,111,100,101,32,37,115,32,109,97,116,99,104,101,115,32,112,97,116,116,101,114,110,32,37,115,10,0,0,0,0,0,120,109,108,80,97,116,116,101,114,110,77,97,116,99,104,32,97,110,100,32,120,109,108,83,116,114,101,97,109,80,117,115,104,32,100,105,115,97,103,114,101,101,10,0,0,0,0,0,32,32,112,97,116,116,101,114,110,32,37,115,32,110,111,100,101,32,37,115,10,0,0,0,120,109,108,83,116,114,101,97,109,80,111,112,40,41,32,102,97,105,108,117,114,101,10,0,37,115,0,0,0,0,0,0,79,117,116,32,111,102,32,109,101,109,111,114,121,32,102,111,114,32,88,80,97,116,104,10,0,0,0,0,0,0,0,0,88,80,97,116,104,32,101,118,97,108,117,97,116,105,111,110,32,102,97,105,108,117,114,101,10,0,0,0,0,0,0,0,88,80,97,116,104,32,115,101,116,32,105,115,32,101,109,112,116,121,10,0,0,0,0,0,116,114,117,101,0,0,0,0,102,97,108,115,101,0,0,0,73,110,102,105,110,105,116,121,0,0,0,0,0,0,0,0,45,73,110,102,105,110,105,116,121,0,0,0,0,0,0,0,78,97,78,0,0,0,0,0,37,48,103,0,0,0,0,0,88,80,97,116,104,32,79,98,106,101,99,116,32,105,115,32,117,110,105,110,105,116,105,97,108,105,122,101,100,10,0,0,88,80,97,116,104,32,111,98,106,101,99,116,32,111,102,32,117,110,101,120,112,101,99,116,101,100,32,116,121,112,101,10],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE);allocate([60,98,62,118,97,108,105,100,105,116,121,32,119,97,114,110,105,110,103,60,47,98,62,58,32,0,0,0,0,0,0,0,60,47,112,62,10,0,0,0,60,112,114,101,62,10,0,0,37,99,0,0,0,0,0,0,32,0,0,0,0,0,0,0,94,10,0,0,0,0,0,0,60,47,112,114,101,62,0,0,60,112,62,0,0,0,0,0,37,115,58,37,100,58,32,0,69,110,116,105,116,121,58,32,108,105,110,101,32,37,100,58,32,0,0,0,0,0,0,0,60,98,62,118,97,108,105,100,105,116,121,32,101,114,114,111,114,60,47,98,62,58,32,0,60,98,62,119,97,114,110,105,110,103,60,47,98,62,58,32,0,0,0,0,0,0,0,0,60,98,62,101,114,114,111,114,60,47,98,62,58,32,0,0,117,115,101,114,95,100,97,116,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,217,0,0,0,0,0,0,112,212,0,0,0,0,0,0,83,65,88,32,103,101,110,101,114,97,116,101,100,32,97,32,100,111,99,32,33,10,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,11,0,0,0,12,0,0,0,13,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,17,0,0,0,18,0,0,0,19,0,0,0,20,0,0,0,21,0,0,0,22,0,0,0,23,0,0,0,24,0,0,0,25,0,0,0,26,0,0,0,27,0,0,0,175,190,237,222,0,0,0,0,28,0,0,0,29,0,0,0,0,0,0,0,83,65,88,46,101,110,100,69,108,101,109,101,110,116,78,115,40,37,115,0,0,0,0,0,44,32,78,85,76,76,0,0,44,32,37,115,0,0,0,0,44,32,78,85,76,76,41,10,0,0,0,0,0,0,0,0,44,32,39,37,115,39,41,10,0,0,0,0,0,0,0,0,83,65,88,46,115,116,97,114,116,69,108,101,109,101,110,116,78,115,40,37,115,0,0,0,44,32,39,37,115,39,0,0,44,32,37,100,0,0,0,0,44,32,120,109,108,110,115,0,58,37,115,0,0,0,0,0,61,39,37,115,39,0,0,0,44,32,37,100,44,32,37,100,0,0,0,0,0,0,0,0,44,32,37,115,58,37,115,61,39,0,0,0,0,0,0,0,44,32,37,115,61,39,0,0,37,46,52,115,46,46,46,39,44,32,37,100,0,0,0,0,41,10,0,0,0,0,0,0,83,65,88,46,101,120,116,101,114,110,97,108,83,117,98,115,101,116,40,37,115,44,0,0,32,44,0,0,0,0,0,0,32,37,115,44,0,0,0,0,32,41,10,0,0,0,0,0,32,37,115,41,10,0,0,0,83,65,88,46,112,99,100,97,116,97,40,37,46,50,48,115,44,32,37,100,41,10,0,0,83,65,88,46,103,101,116,80,97,114,97,109,101,116,101,114,69,110,116,105,116,121,40,37,115,41,10,0,0,0,0,0,83,65,88,46,102,97,116,97,108,69,114,114,111,114,58,32,0,0,0,0,0,0,0,0,83,65,88,46,101,114,114,111,114,58,32,0,0,0,0,0,83,65,88,46,119,97,114,110,105,110,103,58,32,0,0,0,83,65,88,46,99,111,109,109,101,110,116,40,37,115,41,10,0,0,0,0,0,0,0,0,83,65,88,46,112,114,111,99,101,115,115,105,110,103,73,110,115,116,114,117,99,116,105,111,110,40,37,115,44,32,37,115,41,10,0,0,0,0,0,0,83,65,88,46,112,114,111,99,101,115,115,105,110,103,73,110,115,116,114,117,99,116,105,111,110,40,37,115,44,32,78,85,76,76,41,10,0,0,0,0,83,65,88,46,105,103,110,111,114,97,98,108,101,87,104,105,116,101,115,112,97,99,101,40,37,115,44,32,37,100,41,10,0,0,0,0,0,0,0,0,83,65,88,46,99,104,97,114,97,99,116,101,114,115,40,37,115,44,32,37,100,41,10,0,83,65,88,46,114,101,102,101,114,101,110,99,101,40,37,115,41,10,0,0,0,0,0,0,83,65,88,46,101,110,100,68,111,99,117,109,101,110,116,40,41,10,0,0,0,0,0,0,83,65,88,46,115,116,97,114,116,68,111,99,117,109,101,110,116,40,41,10,0,0,0,0,83,65,88,46,115,101,116,68,111,99,117,109,101,110,116,76,111,99,97,116,111,114,40,41,10,0,0,0,0,0,0,0,40,110,117,108,108,41,0,0,83,65,88,46,117,110,112,97,114,115,101,100,69,110,116,105,116,121,68,101,99,108,40,37,115,44,32,37,115,44,32,37,115,44,32,37,115,41,10,0,83,65,88,46,101,108,101,109,101,110,116,68,101,99,108,40,37,115,44,32,37,100,44,32,46,46,46,41,10,0,0,0,83,65,88,46,97,116,116,114,105,98,117,116,101,68,101,99,108,40,37,115,44,32,37,115,44,32,37,100,44,32,37,100,44,32,78,85,76,76,44,32,46,46,46,41,10,0,0,0,83,65,88,46,97,116,116,114,105,98,117,116,101,68,101,99,108,40,37,115,44,32,37,115,44,32,37,100,44,32,37,100,44,32,37,115,44,32,46,46,46,41,10,0,0,0,0,0,83,65,88,46,110,111,116,97,116,105,111,110,68,101,99,108,40,37,115,44,32,37,115,44,32,37,115,41,10,0,0,0,83,65,88,46,101,110,116,105,116,121,68,101,99,108,40,37,115,44,32,37,100,44,32,37,115,44,32,37,115,44,32,37,115,41,10,0,0,0,0,0,83,65,88,46,103,101,116,69,110,116,105,116,121,40,37,115,41,10,0,0,0,0,0,0,83,65,88,46,114,101,115,111,108,118,101,69,110,116,105,116,121,40,0,0,0,0,0,0,44,32,37,115,41,10,0,0,44,32,41,10,0,0,0,0,83,65,88,46,104,97,115,69,120,116,101,114,110,97,108,83,117,98,115,101,116,40,41,10,0,0,0,0,0,0,0,0,83,65,88,46,104,97,115,73,110,116,101,114,110,97,108,83,117,98,115,101,116,40,41,10,0,0,0,0,0,0,0,0,83,65,88,46,105,115,83,116,97,110,100,97,108,111,110,101,40,41,10,0,0,0,0,0,83,65,88,46,105,110,116,101,114,110,97,108,83,117,98,115,101,116,40,37,115,44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,175,190,237,222,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,83,68,32,115,99,104,101,109,97,32,37,115,32,102,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,10,0,0,0,0,0,0,0,0,80,97,114,115,105,110,103,32,97,110,100,32,118,97,108,105,100,97,116,105,110,103,0,0,37,115,32,58,32,102,97,105,108,101,100,32,116,111,32,112,97,114,115,101,10,0,0,0,85,110,97,98,108,101,32,116,111,32,111,112,101,110,32,37,115,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,116,111,111,107,32,37,108,100,32,109,115,10,0,0,0,0,0,0,0,0,0,0,0,76,111,97,100,101,100,32,85,82,76,61,34,37,115,34,32,73,68,61,34,37,115,34,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,102,97,105,108,101,100,32,116,111,32,108,111,97,100,32,101,120,116,101,114,110,97,108,32,101,110,116,105,116,121,32,34,37,115,34,10,0,0,0,0,110,111,100,101,45,62,95,112,114,105,118,97,116,101,32,33,61,32,78,85,76,76,0,0,46,46,47,108,105,98,120,109,108,50,47,120,109,108,108,105,110,116,46,99,0,0,0,0,100,101,114,101,103,105,115,116,101,114,78,111,100,101,0,0,42,40,108,111,110,103,42,41,110,111,100,101,45,62,95,112,114,105,118,97,116,101,32,61,61,32,40,108,111,110,103,41,32,48,120,56,49,55,50,54,51,53,52,0,0,0,0,0,79,117,116,32,111,102,32,109,101,109,111,114,121,32,105,110,32,120,109,108,108,105,110,116,58,114,101,103,105,115,116,101,114,78,111,100,101,40,41,10,0,0,0,0,0,0,0,0,77,65,88,95,80,65,84,72,83,32,114,101,97,99,104,101,100,58,32,116,111,111,32,109,97,110,121,32,112,97,116,104,115,10,0,0,0,0,0,0,82,97,110,32,111,117,116,32,111,102,32,109,101,109,111,114,121,32,110,101,101,100,115,32,62,32,37,100,32,98,121,116,101,115,10,0,0,0,0,0,37,115,58,32,117,115,105,110,103,32,108,105,98,120,109,108,32,118,101,114,115,105,111,110,32,37,115,10,0,0,0,0,32,32,32,99,111,109,112,105,108,101,100,32,119,105,116,104,58,32,0,0,0,0,0,0,84,104,114,101,97,100,115,32,0,0,0,0,0,0,0,0,84,114,101,101,32,0,0,0,79,117,116,112,117,116,32,0,80,117,115,104,32,0,0,0,82,101,97,100,101,114,32,0,80,97,116,116,101,114,110,115,32,0,0,0,0,0,0,0,87,114,105,116,101,114,32,0,83,65,88,118,49,32,0,0,70,84,80,32,0,0,0,0,72,84,84,80,32,0,0,0,68,84,68,86,97,108,105,100,32,0,0,0,0,0,0,0,72,84,77,76,32,0,0,0,76,101,103,97,99,121,32,0,67,49,52,78,32,0,0,0,67,97,116,97,108,111,103,32,0,0,0,0,0,0,0,0,88,80,97,116,104,32,0,0,88,80,111,105,110,116,101,114,32,0,0,0,0,0,0,0,88,73,110,99,108,117,100,101,32,0,0,0,0,0,0,0,73,99,111,110,118,32,0,0,73,83,79,56,56,53,57,88,32,0,0,0,0,0,0,0,85,110,105,99,111,100,101,32,0,0,0,0,0,0,0,0,82,101,103,101,120,112,115,32,0,0,0,0,0,0,0,0,65,117,116,111,109,97,116,97,32,0,0,0,0,0,0,0,69,120,112,114,32,0,0,0,83,99,104,101,109,97,115,32,0,0,0,0,0,0,0,0,83,99,104,101,109,97,116,114,111,110,32,0,0,0,0,0,77,111,100,117,108,101,115,32,0,0,0,0,0,0,0,0,68,101,98,117,103,32,0,0,77,101,109,68,101,98,117,103,32,0,0,0,0,0,0,0,82,117,110,68,101,98,117,103,32,0,0,0,0,0,0,0,90,108,105,98,32,0,0,0,76,122,109,97,32,0,0,0,85,115,97,103,101,32,58,32,37,115,32,91,111,112,116,105,111,110,115,93,32,88,77,76,102,105,108,101,115,32,46,46,46,10,0,0,0,0,0,0,9,80,97,114,115,101,32,116,104,101,32,88,77,76,32,102,105,108,101,115,32,97,110,100,32,111,117,116,112,117,116,32,116,104,101,32,114,101,115,117,108,116,32,111,102,32,116,104,101,32,112,97,114,115,105,110,103,10,0,0,0,0,0,0,9,45,45,118,101,114,115,105,111,110,32,58,32,100,105,115,112,108,97,121,32,116,104,101,32,118,101,114,115,105,111,110,32,111,102,32,116,104,101,32,88,77,76,32,108,105,98,114,97,114,121,32,117,115,101,100,10,0,0,0,0,0,0,0,9,45,45,100,101,98,117,103,32,58,32,100,117,109,112,32,97,32,100,101,98,117,103,32,116,114,101,101,32,111,102,32,116,104,101,32,105,110,45,109,101,109,111,114,121,32,100,111,99,117,109,101,110,116,10,0,9,45,45,115,104,101,108,108,32,58,32,114,117,110,32,97,32,110,97,118,105,103,97,116,105,110,103,32,115,104,101,108,108,10,0,0,0,0,0,0,9,45,45,100,101,98,117,103,101,110,116,32,58,32,100,101,98,117,103,32,116,104,101,32,101,110,116,105,116,105,101,115,32,100,101,102,105,110,101,100,32,105,110,32,116,104,101,32,100,111,99,117,109,101,110,116,10,0,0,0,0,0,0,0,9,45,45,99,111,112,121,32,58,32,117,115,101,100,32,116,111,32,116,101,115,116,32,116,104,101,32,105,110,116,101,114,110,97,108,32,99,111,112,121,32,105,109,112,108,101,109,101,110,116,97,116,105,111,110,10,0,0,0,0,0,0,0,0,9,45,45,114,101,99,111,118,101,114,32,58,32,111,117,116,112,117,116,32,119,104,97,116,32,119,97,115,32,112,97,114,115,97,98,108,101,32,111,110,32,98,114,111,107,101,110,32,88,77,76,32,100,111,99,117,109,101,110,116,115,10,0,0,9,45,45,104,117,103,101,32,58,32,114,101,109,111,118,101,32,97,110,121,32,105,110,116,101,114,110,97,108,32,97,114,98,105,116,114,97,114,121,32,112,97,114,115,101,114,32,108,105,109,105,116,115,10,0,0,9,45,45,110,111,101,110,116,32,58,32,115,117,98,115,116,105,116,117,116,101,32,101,110,116,105,116,121,32,114,101,102,101,114,101,110,99,101,115,32,98,121,32,116,104,101,105,114,32,118,97,108,117,101,10,0,9,45,45,110,111,101,110,99,32,58,32,105,103,110,111,114,101,32,97,110,121,32,101,110,99,111,100,105,110,103,32,115,112,101,99,105,102,105,101,100,32,105,110,115,105,100,101,32,116,104,101,32,10