libsbmljs_stable
Version:
A WebAssembly/JavaScript SBML library
8 lines (6 loc) • 1.84 MB
JavaScript
var libsbml = (function() {
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
return (
function(libsbml) {
libsbml = libsbml || {};
var Module=typeof libsbml!=="undefined"?libsbml:{};var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}Module["arguments"]=[];Module["thisProgram"]="./this.program";Module["quit"]=(function(status,toThrow){throw toThrow});Module["preRun"]=[];Module["postRun"]=[];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 require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;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)}else{return scriptDirectory+path}}if(ENVIRONMENT_IS_NODE){scriptDirectory=__dirname+"/";var nodeFS;var nodePath;Module["read"]=function shell_read(filename,binary){var ret;if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);ret=nodeFS["readFileSync"](filename);return binary?ret:ret.toString()};Module["readBinary"]=function readBinary(filename){var ret=Module["read"](filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process["argv"].length>1){Module["thisProgram"]=process["argv"][1].replace(/\\/g,"/")}Module["arguments"]=process["argv"].slice(2);process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}));process["on"]("unhandledRejection",abort);Module["quit"]=(function(status){process["exit"](status)});Module["inspect"]=(function(){return"[Emscripten Module object]"})}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){Module["read"]=function shell_read(f){return read(f)}}Module["readBinary"]=function readBinary(f){var data;if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}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}if(typeof quit==="function"){Module["quit"]=(function(status){quit(status)})}}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=""}Module["read"]=function shell_read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER){Module["readBinary"]=function readBinary(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}}Module["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}onerror()};xhr.onerror=onerror;xhr.send(null)};Module["setWindowTitle"]=(function(title){document.title=title})}else{}var out=Module["print"]||(typeof console!=="undefined"?console.log.bind(console):typeof print!=="undefined"?print:null);var err=Module["printErr"]||(typeof printErr!=="undefined"?printErr:typeof console!=="undefined"&&console.warn.bind(console)||out);for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=undefined;var STACK_ALIGN=16;function staticAlloc(size){var ret=STATICTOP;STATICTOP=STATICTOP+size+15&-16;return ret}function dynamicAlloc(size){var ret=HEAP32[DYNAMICTOP_PTR>>2];var end=ret+size+15&-16;HEAP32[DYNAMICTOP_PTR>>2]=end;if(end>=TOTAL_MEMORY){var success=enlargeMemory();if(!success){HEAP32[DYNAMICTOP_PTR>>2]=ret;return 0}}return ret}function alignMemory(size,factor){if(!factor)factor=STACK_ALIGN;var ret=size=Math.ceil(size/factor)*factor;return ret}function getNativeTypeSize(type){switch(type){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:{if(type[type.length-1]==="*"){return 4}else if(type[0]==="i"){var bits=parseInt(type.substr(1));assert(bits%8===0);return bits/8}else{return 0}}}}var asm2wasmImports={"f64-rem":(function(x,y){return x%y}),"debugger":(function(){debugger})};var functionPointers=new Array(0);var tempRet0=0;var setTempRet0=(function(value){tempRet0=value});var getTempRet0=(function(){return tempRet0});var GLOBAL_BASE=1024;var ABORT=false;var EXITSTATUS=0;function assert(condition,text){if(!condition){abort("Assertion failed: "+text)}}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)}}var ALLOC_NORMAL=0;var ALLOC_STATIC=2;var ALLOC_NONE=4;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=[typeof _malloc==="function"?_malloc:staticAlloc,stackAlloc,staticAlloc,dynamicAlloc][allocator===undefined?ALLOC_STATIC:allocator](Math.max(size,singleType?1:types.length))}if(zeroinit){var stop;ptr=ret;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];type=singleType||types[i];if(type===0){i++;continue}if(type=="i64")type="i32";setValue(ret+i,curr,type);if(previousType!==type){typeSize=getNativeTypeSize(type);previousType=type}i+=typeSize}return ret}function getMemory(size){if(!staticSealed)return staticAlloc(size);if(!runtimeInitialized)return dynamicAlloc(size);return _malloc(size)}function Pointer_stringify(ptr,length){if(length===0||!ptr)return"";var hasUtf=0;var t;var i=0;while(1){t=HEAPU8[ptr+i>>0];hasUtf|=t;if(t==0&&!length)break;i++;if(length&&i==length)break}if(!length)length=i;var ret="";if(hasUtf<128){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}return UTF8ToString(ptr)}var UTF8Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf8"):undefined;function UTF8ArrayToString(u8Array,idx){var endPtr=idx;while(u8Array[endPtr])++endPtr;if(endPtr-idx>16&&u8Array.subarray&&UTF8Decoder){return UTF8Decoder.decode(u8Array.subarray(idx,endPtr))}else{var u0,u1,u2,u3,u4,u5;var str="";while(1){u0=u8Array[idx++];if(!u0)return str;if(!(u0&128)){str+=String.fromCharCode(u0);continue}u1=u8Array[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}u2=u8Array[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u3=u8Array[idx++]&63;if((u0&248)==240){u0=(u0&7)<<18|u1<<12|u2<<6|u3}else{u4=u8Array[idx++]&63;if((u0&252)==248){u0=(u0&3)<<24|u1<<18|u2<<12|u3<<6|u4}else{u5=u8Array[idx++]&63;u0=(u0&1)<<30|u1<<24|u2<<18|u3<<12|u4<<6|u5}}}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}}}function UTF8ToString(ptr){return UTF8ArrayToString(HEAPU8,ptr)}function stringToUTF8Array(str,outU8Array,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;outU8Array[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;outU8Array[outIdx++]=192|u>>6;outU8Array[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;outU8Array[outIdx++]=224|u>>12;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else if(u<=2097151){if(outIdx+3>=endIdx)break;outU8Array[outIdx++]=240|u>>18;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else if(u<=67108863){if(outIdx+4>=endIdx)break;outU8Array[outIdx++]=248|u>>24;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else{if(outIdx+5>=endIdx)break;outU8Array[outIdx++]=252|u>>30;outU8Array[outIdx++]=128|u>>24&63;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}}outU8Array[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=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 if(u<=2097151){len+=4}else if(u<=67108863){len+=5}else{len+=6}}return len}var UTF16Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf-16le"):undefined;function allocateUTF8(str){var size=lengthBytesUTF8(str)+1;var ret=_malloc(size);if(ret)stringToUTF8Array(str,HEAP8,ret,size);return ret}function demangle(func){return func}function demangleAll(text){var regex=/__Z[\w\d_]+/g;return text.replace(regex,(function(x){var y=demangle(x);return x===y?x:y+" ["+x+"]"}))}function jsStackTrace(){var err=new Error;if(!err.stack){try{throw new Error(0)}catch(e){err=e}if(!err.stack){return"(no stack trace available)"}}return err.stack.toString()}function stackTrace(){var js=jsStackTrace();if(Module["extraStackTrace"])js+="\n"+Module["extraStackTrace"]();return demangleAll(js)}var WASM_PAGE_SIZE=65536;var ASMJS_PAGE_SIZE=16777216;var MIN_TOTAL_MEMORY=16777216;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 updateGlobalBuffer(buf){Module["buffer"]=buffer=buf}function updateGlobalBufferViews(){Module["HEAP8"]=HEAP8=new Int8Array(buffer);Module["HEAP16"]=HEAP16=new Int16Array(buffer);Module["HEAP32"]=HEAP32=new Int32Array(buffer);Module["HEAPU8"]=HEAPU8=new Uint8Array(buffer);Module["HEAPU16"]=HEAPU16=new Uint16Array(buffer);Module["HEAPU32"]=HEAPU32=new Uint32Array(buffer);Module["HEAPF32"]=HEAPF32=new Float32Array(buffer);Module["HEAPF64"]=HEAPF64=new Float64Array(buffer)}var STATIC_BASE,STATICTOP,staticSealed;var STACK_BASE,STACKTOP,STACK_MAX;var DYNAMIC_BASE,DYNAMICTOP_PTR;STATIC_BASE=STATICTOP=STACK_BASE=STACKTOP=STACK_MAX=DYNAMIC_BASE=DYNAMICTOP_PTR=0;staticSealed=false;function abortOnCannotGrowMemory(){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 -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ")}if(!Module["reallocBuffer"])Module["reallocBuffer"]=(function(size){var ret;try{var oldHEAP8=HEAP8;ret=new ArrayBuffer(size);var temp=new Int8Array(ret);temp.set(oldHEAP8)}catch(e){return false}var success=_emscripten_replace_memory(ret);if(!success)return false;return ret});function enlargeMemory(){var PAGE_MULTIPLE=Module["usingWasm"]?WASM_PAGE_SIZE:ASMJS_PAGE_SIZE;var LIMIT=2147483648-PAGE_MULTIPLE;if(HEAP32[DYNAMICTOP_PTR>>2]>LIMIT){return false}var OLD_TOTAL_MEMORY=TOTAL_MEMORY;TOTAL_MEMORY=Math.max(TOTAL_MEMORY,MIN_TOTAL_MEMORY);while(TOTAL_MEMORY<HEAP32[DYNAMICTOP_PTR>>2]){if(TOTAL_MEMORY<=536870912){TOTAL_MEMORY=alignUp(2*TOTAL_MEMORY,PAGE_MULTIPLE)}else{TOTAL_MEMORY=Math.min(alignUp((3*TOTAL_MEMORY+2147483648)/4,PAGE_MULTIPLE),LIMIT)}}var replacement=Module["reallocBuffer"](TOTAL_MEMORY);if(!replacement||replacement.byteLength!=TOTAL_MEMORY){TOTAL_MEMORY=OLD_TOTAL_MEMORY;return false}updateGlobalBuffer(replacement);updateGlobalBufferViews();return true}var byteLength;try{byteLength=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get);byteLength(new ArrayBuffer(4))}catch(e){byteLength=(function(buffer){return buffer.byteLength})}var TOTAL_STACK=Module["TOTAL_STACK"]||5242880;var TOTAL_MEMORY=Module["TOTAL_MEMORY"]||16777216;if(TOTAL_MEMORY<TOTAL_STACK)err("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+TOTAL_MEMORY+"! (TOTAL_STACK="+TOTAL_STACK+")");if(Module["buffer"]){buffer=Module["buffer"]}else{if(typeof WebAssembly==="object"&&typeof WebAssembly.Memory==="function"){Module["wasmMemory"]=new WebAssembly.Memory({"initial":TOTAL_MEMORY/WASM_PAGE_SIZE});buffer=Module["wasmMemory"].buffer}else{buffer=new ArrayBuffer(TOTAL_MEMORY)}Module["buffer"]=buffer}updateGlobalBufferViews();function getTotalMemory(){return TOTAL_MEMORY}function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback();continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){Module["dynCall_v"](func)}else{Module["dynCall_vi"](func,callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATEXIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=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 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)}function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i<str.length;++i){HEAP8[buffer++>>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}var Math_abs=Math.abs;var Math_ceil=Math.ceil;var Math_floor=Math.floor;var Math_min=Math.min;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function getUniqueRunDependency(id){return id}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"]={};var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return String.prototype.startsWith?filename.startsWith(dataURIPrefix):filename.indexOf(dataURIPrefix)===0}function integrateWasmJS(){var wasmTextFile="libsbml.wast";var wasmBinaryFile="libsbml.wasm";var asmjsCodeFile="libsbml.temp.asm.js";if(!isDataURI(wasmTextFile)){wasmTextFile=locateFile(wasmTextFile)}if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}if(!isDataURI(asmjsCodeFile)){asmjsCodeFile=locateFile(asmjsCodeFile)}var wasmPageSize=64*1024;var info={"global":null,"env":null,"asm2wasm":asm2wasmImports,"parent":Module};var exports=null;function mergeMemory(newBuffer){var oldBuffer=Module["buffer"];if(newBuffer.byteLength<oldBuffer.byteLength){err("the new buffer in mergeMemory is smaller than the previous one. in native wasm, we should grow memory here")}var oldView=new Int8Array(oldBuffer);var newView=new Int8Array(newBuffer);newView.set(oldView);updateGlobalBuffer(newBuffer);updateGlobalBufferViews()}function getBinary(){try{if(Module["wasmBinary"]){return new Uint8Array(Module["wasmBinary"])}if(Module["readBinary"]){return Module["readBinary"](wasmBinaryFile)}else{throw"both async and sync fetching of the wasm failed"}}catch(err){abort(err)}}function getBinaryPromise(){if(!Module["wasmBinary"]&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&typeof fetch==="function"){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(response){if(!response["ok"]){throw"failed to load wasm binary file at '"+wasmBinaryFile+"'"}return response["arrayBuffer"]()})).catch((function(){return getBinary()}))}return new Promise((function(resolve,reject){resolve(getBinary())}))}function doNativeWasm(global,env,providedBuffer){if(typeof WebAssembly!=="object"){err("no native wasm support detected");return false}if(!(Module["wasmMemory"]instanceof WebAssembly.Memory)){err("no native wasm Memory in use");return false}env["memory"]=Module["wasmMemory"];info["global"]={"NaN":NaN,"Infinity":Infinity};info["global.Math"]=Math;info["env"]=env;function receiveInstance(instance,module){exports=instance.exports;if(exports.memory)mergeMemory(exports.memory);Module["asm"]=exports;Module["usingWasm"]=true;removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");if(Module["instantiateWasm"]){try{return Module["instantiateWasm"](info,receiveInstance)}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}function receiveInstantiatedSource(output){receiveInstance(output["instance"],output["module"])}function instantiateArrayBuffer(receiver){getBinaryPromise().then((function(binary){return WebAssembly.instantiate(binary,info)})).then(receiver,(function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)}))}if(!Module["wasmBinary"]&&typeof WebAssembly.instantiateStreaming==="function"&&!isDataURI(wasmBinaryFile)&&typeof fetch==="function"){WebAssembly.instantiateStreaming(fetch(wasmBinaryFile,{credentials:"same-origin"}),info).then(receiveInstantiatedSource,(function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");instantiateArrayBuffer(receiveInstantiatedSource)}))}else{instantiateArrayBuffer(receiveInstantiatedSource)}return{}}Module["asmPreload"]=Module["asm"];var asmjsReallocBuffer=Module["reallocBuffer"];var wasmReallocBuffer=(function(size){var PAGE_MULTIPLE=Module["usingWasm"]?WASM_PAGE_SIZE:ASMJS_PAGE_SIZE;size=alignUp(size,PAGE_MULTIPLE);var old=Module["buffer"];var oldSize=old.byteLength;if(Module["usingWasm"]){try{var result=Module["wasmMemory"].grow((size-oldSize)/wasmPageSize);if(result!==(-1|0)){return Module["buffer"]=Module["wasmMemory"].buffer}else{return null}}catch(e){return null}}});Module["reallocBuffer"]=(function(size){if(finalMethod==="asmjs"){return asmjsReallocBuffer(size)}else{return wasmReallocBuffer(size)}});var finalMethod="";Module["asm"]=(function(global,env,providedBuffer){if(!env["table"]){var TABLE_SIZE=Module["wasmTableSize"];if(TABLE_SIZE===undefined)TABLE_SIZE=1024;var MAX_TABLE_SIZE=Module["wasmMaxTableSize"];if(typeof WebAssembly==="object"&&typeof WebAssembly.Table==="function"){if(MAX_TABLE_SIZE!==undefined){env["table"]=new WebAssembly.Table({"initial":TABLE_SIZE,"maximum":MAX_TABLE_SIZE,"element":"anyfunc"})}else{env["table"]=new WebAssembly.Table({"initial":TABLE_SIZE,element:"anyfunc"})}}else{env["table"]=new Array(TABLE_SIZE)}Module["wasmTable"]=env["table"]}if(!env["__memory_base"]){env["__memory_base"]=Module["STATIC_BASE"]}if(!env["__table_base"]){env["__table_base"]=0}var exports;exports=doNativeWasm(global,env,providedBuffer);assert(exports,"no binaryen method succeeded.");return exports})}integrateWasmJS();STATIC_BASE=GLOBAL_BASE;STATICTOP=STATIC_BASE+683408;__ATINIT__.push({func:(function(){__GLOBAL__I_000101()})},{func:(function(){__GLOBAL__sub_I_LocalParameter_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLReader_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLNamespaces_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLError_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLDocument_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLConvert_cpp()})},{func:(function(){__GLOBAL__sub_I_Rule_cpp()})},{func:(function(){__GLOBAL__sub_I_Reaction_cpp()})},{func:(function(){__GLOBAL__sub_I_RateRule_cpp()})},{func:(function(){__GLOBAL__sub_I_Priority_cpp()})},{func:(function(){__GLOBAL__sub_I_Parameter_cpp()})},{func:(function(){__GLOBAL__sub_I_ModifierSpeciesReference_cpp()})},{func:(function(){__GLOBAL__sub_I_Model_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLTypeCodes_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOf_cpp()})},{func:(function(){__GLOBAL__sub_I_KineticLaw_cpp()})},{func:(function(){__GLOBAL__sub_I_InitialAssignment_cpp()})},{func:(function(){__GLOBAL__sub_I_FunctionDefinition_cpp()})},{func:(function(){__GLOBAL__sub_I_EventAssignment_cpp()})},{func:(function(){__GLOBAL__sub_I_Event_cpp()})},{func:(function(){__GLOBAL__sub_I_Delay_cpp()})},{func:(function(){__GLOBAL__sub_I_Constraint_cpp()})},{func:(function(){__GLOBAL__sub_I_CompartmentType_cpp()})},{func:(function(){__GLOBAL__sub_I_Compartment_cpp()})},{func:(function(){__GLOBAL__sub_I_Unit_cpp()})},{func:(function(){__GLOBAL__sub_I_L2v4CompatibilityValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_L2v3CompatibilityValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_L2v2CompatibilityValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_L2v1CompatibilityValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_L1CompatibilityValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_InternalConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_IdentifierConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_ConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_UnitFormulaFormatter_cpp()})},{func:(function(){__GLOBAL__sub_I_FormulaUnitsData_cpp()})},{func:(function(){__GLOBAL__sub_I_UnitDefinition_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLTransforms_cpp()})},{func:(function(){__GLOBAL__sub_I_Trigger_cpp()})},{func:(function(){__GLOBAL__sub_I_StoichiometryMath_cpp()})},{func:(function(){__GLOBAL__sub_I_SpeciesType_cpp()})},{func:(function(){__GLOBAL__sub_I_SpeciesReference_cpp()})},{func:(function(){__GLOBAL__sub_I_Species_cpp()})},{func:(function(){__GLOBAL__sub_I_SimpleSpeciesReference_cpp()})},{func:(function(){__GLOBAL__sub_I_SBase_cpp()})},{func:(function(){__GLOBAL__sub_I_SBO_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLWriter_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLVisitor_cpp()})},{func:(function(){__GLOBAL__sub_I_AlgebraicRule_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderPoint_cpp()})},{func:(function(){__GLOBAL__sub_I_RegisterConverters_cpp()})},{func:(function(){__GLOBAL__sub_I_RDFAnnotationParser_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderIdentifierConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderUtilities_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderLayoutConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_Transformation2D_cpp()})},{func:(function(){__GLOBAL__sub_I_Transformation_cpp()})},{func:(function(){__GLOBAL__sub_I_Text_cpp()})},{func:(function(){__GLOBAL__sub_I_Style_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderInformationBase_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderGroup_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderCurve_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderCubicBezier_cpp()})},{func:(function(){__GLOBAL__sub_I_RelAbsVector_cpp()})},{func:(function(){__GLOBAL__sub_I_Rectangle_cpp()})},{func:(function(){__GLOBAL__sub_I_RadialGradient_cpp()})},{func:(function(){__GLOBAL__sub_I_Polygon_cpp()})},{func:(function(){__GLOBAL__sub_I_LocalStyle_cpp()})},{func:(function(){__GLOBAL__sub_I_LocalRenderInformation_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfLocalStyles_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLStripPackageConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_L3v1CompatibilityValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_SBasePluginCreatorBase_cpp()})},{func:(function(){__GLOBAL__sub_I_SBasePlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLExtensionRegistry_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLExtensionNamespaces_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLExtension_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLDocumentPluginNotRequired_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLDocumentPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_ISBMLExtensionNamespaces_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTBasePlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLUnitsConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_AssignmentRule_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLRuleConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLReactionConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLRateOfConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLLocalParameterConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLLevelVersionConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLLevel1Version1Converter_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLInitialAssignmentConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLInferUnitsConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLIdConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLFunctionDefinitionConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLConverterRegistry_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueVarsInEventAssignments_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTCSymbolRateOfNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTCSymbolDelayNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTCSymbolAvogadroNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTCSymbol_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTBinaryFunctionNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTBase_cpp()})},{func:(function(){__GLOBAL__sub_I_ValidCnUnitsValue_cpp()})},{func:(function(){__GLOBAL__sub_I_UnitsBase_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueVarsInRules_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueVarsInInitialAssignmentsAndRules_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueVarsInEventsAndRules_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTCSymbolTimeNode_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueSymbolsInInitialAssignments_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueSpeciesTypesInCompartment_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueMetaId_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueIdsInModel_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueIdsInKineticLaw_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueIdsForUnitDefinitions_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueIdBase_cpp()})},{func:(function(){__GLOBAL__sub_I_StoichiometryMathVars_cpp()})},{func:(function(){__GLOBAL__sub_I_SpeciesReactionOrRule_cpp()})},{func:(function(){__GLOBAL__sub_I_ReportEmptyListOf_cpp()})},{func:(function(){__GLOBAL__sub_I_RateOfCycles_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTNumber_cpp()})},{func:(function(){__GLOBAL__sub_I_iostream_cpp()})},{func:(function(){___emscripten_environ_constructor()})},{func:(function(){__GLOBAL__sub_I_XMLOutputStream_cpp()})},{func:(function(){__GLOBAL__sub_I_MathML_cpp()})},{func:(function(){__GLOBAL__sub_I_L3ParserSettings_cpp()})},{func:(function(){__GLOBAL__sub_I_L3Parser_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTUnaryFunctionNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTTypes_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTSemanticsNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTQualifierNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTPiecewiseFunctionNode_cpp()})},{func:(function(){__GLOBAL__sub_I_RateOfCompartmentMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTNaryFunctionNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTLambdaFunctionNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTFunction_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTConstantNumberNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTCnRealNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTCnRationalNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTCnIntegerNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTCnExponentialNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTCiNumberNode_cpp()})},{func:(function(){__GLOBAL__sub_I_ASTCiFunctionNode_cpp()})},{func:(function(){__GLOBAL__sub_I_Validator_cpp()})},{func:(function(){__GLOBAL__sub_I_FunctionApplyMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_ExponentUnitsCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_EqualityArgsMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_DuplicateTopLevelAnnotation_cpp()})},{func:(function(){__GLOBAL__sub_I_CompartmentOutsideCycles_cpp()})},{func:(function(){__GLOBAL__sub_I_CiElementNot0DComp_cpp()})},{func:(function(){__GLOBAL__sub_I_CiElementMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_AssignmentRuleOrdering_cpp()})},{func:(function(){__GLOBAL__sub_I_AssignmentCycles_cpp()})},{func:(function(){__GLOBAL__sub_I_ArgumentsUnitsCheckWarnings_cpp()})},{func:(function(){__GLOBAL__sub_I_ArgumentsUnitsCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_FunctionDefinitionRecursion_cpp()})},{func:(function(){__GLOBAL__sub_I_VConstraint_cpp()})},{func:(function(){__GLOBAL__sub_I_UnitConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_StrictUnitConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_SBOConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLInternalValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLExternalValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_OverdeterminedValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_ModelingPracticeValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_MathMLConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_L3v2CompatibilityValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_LogicalArgsMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_RateOfCiTargetMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_RateOfAssignmentMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_PowerUnitsCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_PiecewiseValueMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_PieceBooleanMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_OverDeterminedCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_NumericReturnMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_NumericArgsMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_NumberArgsMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_ModelUnitsDangling_cpp()})},{func:(function(){__GLOBAL__sub_I_MathMLBase_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfLocalRenderInformation_cpp()})},{func:(function(){__GLOBAL__sub_I_LocalParameterShadowsIdInModel_cpp()})},{func:(function(){__GLOBAL__sub_I_LocalParameterMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_LambdaMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_KineticLawVars_cpp()})},{func:(function(){__GLOBAL__sub_I_KineticLawUnitsCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_IdNameNewOnSBase_cpp()})},{func:(function(){__GLOBAL__sub_I_IdBase_cpp()})},{func:(function(){__GLOBAL__sub_I_FunctionReferredToExists_cpp()})},{func:(function(){__GLOBAL__sub_I_FunctionNoArgsMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_FunctionDefinitionVars_cpp()})},{func:(function(){__GLOBAL__sub_I_FbcV1ToV2Converter_cpp()})},{func:(function(){__GLOBAL__sub_I_Group_cpp()})},{func:(function(){__GLOBAL__sub_I_GroupsSBMLDocumentPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_GroupsModelPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_GroupsExtension_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueModelWideIds_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueGeneProductLabels_cpp()})},{func:(function(){__GLOBAL__sub_I_FluxBoundsConsistent_cpp()})},{func:(function(){__GLOBAL__sub_I_FbcValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_FbcIdentifierConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_FbcConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_FbcV2ToV1Converter_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfGroups_cpp()})},{func:(function(){__GLOBAL__sub_I_FbcToCobraConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_CobraToFbcConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_Objective_cpp()})},{func:(function(){__GLOBAL__sub_I_GeneProductRef_cpp()})},{func:(function(){__GLOBAL__sub_I_GeneProductAssociation_cpp()})},{func:(function(){__GLOBAL__sub_I_GeneProduct_cpp()})},{func:(function(){__GLOBAL__sub_I_GeneAssociation_cpp()})},{func:(function(){__GLOBAL__sub_I_FluxObjective_cpp()})},{func:(function(){__GLOBAL__sub_I_FluxBound_cpp()})},{func:(function(){__GLOBAL__sub_I_FbcOr_cpp()})},{func:(function(){__GLOBAL__sub_I_FbcAssociation_cpp()})},{func:(function(){__GLOBAL__sub_I_LayoutSpeciesReferencePlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_ReactionGlyph_cpp()})},{func:(function(){__GLOBAL__sub_I_Point_cpp()})},{func:(function(){__GLOBAL__sub_I_LineSegment_cpp()})},{func:(function(){__GLOBAL__sub_I_Layout_cpp()})},{func:(function(){__GLOBAL__sub_I_GraphicalObject_cpp()})},{func:(function(){__GLOBAL__sub_I_GeneralGlyph_cpp()})},{func:(function(){__GLOBAL__sub_I_Dimensions_cpp()})},{func:(function(){__GLOBAL__sub_I_Curve_cpp()})},{func:(function(){__GLOBAL__sub_I_CubicBezier_cpp()})},{func:(function(){__GLOBAL__sub_I_CompartmentGlyph_cpp()})},{func:(function(){__GLOBAL__sub_I_BoundingBox_cpp()})},{func:(function(){__GLOBAL__sub_I_FbcAnd_cpp()})},{func:(function(){__GLOBAL__sub_I_LayoutSBMLDocumentPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_LayoutModelPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_LayoutExtension_cpp()})},{func:(function(){__GLOBAL__sub_I_LOMembersConsistentReferences_cpp()})},{func:(function(){__GLOBAL__sub_I_GroupsUniqueModelWideIds_cpp()})},{func:(function(){__GLOBAL__sub_I_GroupCircularReferences_cpp()})},{func:(function(){__GLOBAL__sub_I_GroupsValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_GroupsIdentifierConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_GroupsConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_Member_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfMembers_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfReplacedElements_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLResolver_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLFileResolver_cpp()})},{func:(function(){__GLOBAL__sub_I_CompFlatteningConverter_cpp()})},{func:(function(){__GLOBAL__sub_I_Submodel_cpp()})},{func:(function(){__GLOBAL__sub_I_SBaseRef_cpp()})},{func:(function(){__GLOBAL__sub_I_Replacing_cpp()})},{func:(function(){__GLOBAL__sub_I_ReplacedElement_cpp()})},{func:(function(){__GLOBAL__sub_I_ReplacedBy_cpp()})},{func:(function(){__GLOBAL__sub_I_Port_cpp()})},{func:(function(){__GLOBAL__sub_I_ModelDefinition_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfSubmodels_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLResolverRegistry_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfPorts_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfModelDefinitions_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfExternalModelDefinitions_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfDeletions_cpp()})},{func:(function(){__GLOBAL__sub_I_ExternalModelDefinition_cpp()})},{func:(function(){__GLOBAL__sub_I_Deletion_cpp()})},{func:(function(){__GLOBAL__sub_I_CompBase_cpp()})},{func:(function(){__GLOBAL__sub_I_CompSBasePlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_CompSBMLDocumentPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_CompModelPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_CompExtension_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueComponentIds_cpp()})},{func:(function(){__GLOBAL__sub_I_Association_cpp()})},{func:(function(){__GLOBAL__sub_I_FbcSpeciesPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_FbcSBMLDocumentPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_FbcReactionPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_FbcModelPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_FbcExtension_cpp()})},{func:(function(){__GLOBAL__sub_I_UnitReplacementCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueReplacedReferences_cpp()})},{func:(function(){__GLOBAL__sub_I_UniquePortReferences_cpp()})},{func:(function(){__GLOBAL__sub_I_UniquePortIds_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueModelIds_cpp()})},{func:(function(){__GLOBAL__sub_I_ReferenceGlyph_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueCompIdBase_cpp()})},{func:(function(){__GLOBAL__sub_I_SubmodelReferenceCycles_cpp()})},{func:(function(){__GLOBAL__sub_I_PackageIdReplacementCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_ExtModelReferenceCycles_cpp()})},{func:(function(){__GLOBAL__sub_I_CompIdBase_cpp()})},{func:(function(){__GLOBAL__sub_I_ClassReplacements_cpp()})},{func:(function(){__GLOBAL__sub_I_CompValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_CompUnitConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_CompIdentifierConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_CompConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_SBMLUri_cpp()})},{func:(function(){__GLOBAL__sub_I_QualitativeSpecies_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderExtension_cpp()})},{func:(function(){__GLOBAL__sub_I_ResultExceedsMaximum_cpp()})},{func:(function(){__GLOBAL__sub_I_ResultBecomesNegative_cpp()})},{func:(function(){__GLOBAL__sub_I_QualUniqueModelWideIds_cpp()})},{func:(function(){__GLOBAL__sub_I_QualCSymbolMathCheck_cpp()})},{func:(function(){__GLOBAL__sub_I_QSAssignedOnce_cpp()})},{func:(function(){__GLOBAL__sub_I_QualValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_QualMathConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_QualIdentifierConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_QualConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_Transition_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderGraphicalObjectPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_Output_cpp()})},{func:(function(){__GLOBAL__sub_I_Input_cpp()})},{func:(function(){__GLOBAL__sub_I_FunctionTerm_cpp()})},{func:(function(){__GLOBAL__sub_I_DefaultTerm_cpp()})},{func:(function(){__GLOBAL__sub_I_QualSBMLDocumentPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_QualModelPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_QualExtension_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueSpeciesFeatureIdsWithinSpecies_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueSTIIdsWithinMultiSpeciesType_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueSTCIdsWithinMultiSpeciesType_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueSLOSFIdsWithinSpecies_cpp()})},{func:(function(){__GLOBAL__sub_I_GraphicalPrimitive2D_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfLineEndings_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfGradientStops_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfGradientDefinitions_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfGlobalStyles_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfGlobalRenderInformation_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfDrawables_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfCurveElements_cpp()})},{func:(function(){__GLOBAL__sub_I_ListOfColorDefinitions_cpp()})},{func:(function(){__GLOBAL__sub_I_LinearGradient_cpp()})},{func:(function(){__GLOBAL__sub_I_LineEnding_cpp()})},{func:(function(){__GLOBAL__sub_I_Image_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueSFTIdsWithinMultiSpeciesType_cpp()})},{func:(function(){__GLOBAL__sub_I_GraphicalPrimitive1D_cpp()})},{func:(function(){__GLOBAL__sub_I_GradientStop_cpp()})},{func:(function(){__GLOBAL__sub_I_GradientBase_cpp()})},{func:(function(){__GLOBAL__sub_I_GlobalStyle_cpp()})},{func:(function(){__GLOBAL__sub_I_GlobalRenderInformation_cpp()})},{func:(function(){__GLOBAL__sub_I_Ellipse_cpp()})},{func:(function(){__GLOBAL__sub_I_DefaultValues_cpp()})},{func:(function(){__GLOBAL__sub_I_ColorDefinition_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderSBMLDocumentPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderListOfLayoutsPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_RenderLayoutPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiExtension_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiSpeciesType_cpp()})},{func:(function(){__GLOBAL__sub_I_IntraSpeciesReaction_cpp()})},{func:(function(){__GLOBAL__sub_I_InSpeciesTypeBond_cpp()})},{func:(function(){__GLOBAL__sub_I_CompartmentReference_cpp()})},{func:(function(){__GLOBAL__sub_I_BindingSiteSpeciesType_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiSpeciesReferencePlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiSpeciesPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiSimpleSpeciesReferencePlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiSBMLDocumentPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiModelPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiListOfReactionsPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_OutwardBindingSite_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiCompartmentPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiASTPlugin_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueIdsLayout_cpp()})},{func:(function(){__GLOBAL__sub_I_LayoutValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_LayoutIdentifierConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_LayoutConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_LayoutUtilities_cpp()})},{func:(function(){__GLOBAL__sub_I_LayoutAnnotation_cpp()})},{func:(function(){__GLOBAL__sub_I_TextGlyph_cpp()})},{func:(function(){__GLOBAL__sub_I_SpeciesReferenceGlyph_cpp()})},{func:(function(){__GLOBAL__sub_I_SpeciesGlyph_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiMathMLConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueMultiIdBase_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueMultiComponentIds_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueISTBIdsWithinMultiSpeciesType_cpp()})},{func:(function(){__GLOBAL__sub_I_UniqueCRefIdsWithinCompartment_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiMathMLConsistencyConstraints_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiMathCiCheckSpeciesReference_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiMathCiCheckRepresentationType_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiIdentifierConsistencyConstraints_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiIdBase_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiConsistencyConstraints_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_sbml_interface_wrapper_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiIdentifierConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_MultiConsistencyValidator_cpp()})},{func:(function(){__GLOBAL__sub_I_SubListOfSpeciesFeatures_cpp()})},{func:(function(){__GLOBAL__sub_I_SpeciesTypeInstance_cpp()})},{func:(function(){__GLOBAL__sub_I_SpeciesTypeComponentMapInProduct_cpp()})},{func:(function(){__GLOBAL__sub_I_SpeciesTypeComponentIndex_cpp()})},{func:(function(){__GLOBAL__sub_I_SpeciesFeatureValue_cpp()})},{func:(function(){__GLOBAL__sub_I_SpeciesFeatureType_cpp()})},{func:(function(){__GLOBAL__sub_I_SpeciesFeature_cpp()})},{func:(function(){__GLOBAL__sub_I_PossibleSpeciesFeatureValue_cpp()})});var STATIC_BUMP=683408;Module["STATIC_BASE"]=STATIC_BASE;Module["STATIC_BUMP"]=STATIC_BUMP;STATICTOP+=16;function ___assert_fail(condition,filename,line,func){abort("Assertion failed: "+Pointer_stringify(condition)+", at: "+[filename?Pointer_stringify(filename):"unknown filename",line,func?Pointer_stringify(func):"unknown function"])}var ENV={};function ___buildEnvironment(environ){var MAX_ENV_VALUES=64;var TOTAL_ENV_SIZE=1024;var poolPtr;var envPtr;if(!___buildEnvironment.called){___buildEnvironment.called=true;ENV["USER"]=ENV["LOGNAME"]="web_user";ENV["PATH"]="/";ENV["PWD"]="/";ENV["HOME"]="/home/web_user";ENV["LANG"]="C.UTF-8";ENV["_"]=Module["thisProgram"];poolPtr=getMemory(TOTAL_ENV_SIZE);envPtr=getMemory(MAX_ENV_VALUES*4);HEAP32[envPtr>>2]=poolPtr;HEAP32[environ>>2]=envPtr}else{envPtr=HEAP32[environ>>2];poolPtr=HEAP32[envPtr>>2]}var strings=[];var totalSize=0;for(var key in ENV){if(typeof ENV[key]==="string"){var line=key+"="+ENV[key];strings.push(line);totalSize+=line.length}}if(totalSize>TOTAL_ENV_SIZE){throw new Error("Environment size exceeded TOTAL_ENV_SIZE!")}var ptrSize=4;for(var i=0;i<strings.length;i++){var line=strings[i];writeAsciiToMemory(line,poolPtr);HEAP32[envPtr+i*ptrSize>>2]=poolPtr;poolPtr+=line.length+1}HEAP32[envPtr+strings.length*ptrSize>>2]=0}function ___cxa_allocate_exception(size){return _malloc(size)}var EXCEPTIONS={last:0,caught:[],infos:{},deAdjust:(function(adjusted){if(!adjusted||EXCEPTIONS.infos[adjusted])return adjusted;for(var key in EXCEPTIONS.infos){var ptr=+key;var adj=EXCEPTIONS.infos[ptr].adjusted;var len=adj.length;for(var i=0;i<len;i++){if(adj[i]===adjusted){return ptr}}}return adjusted}),addRef:(function(ptr){if(!ptr)return;var info=EXCEPTIONS.infos[ptr];info.refcount++}),decRef:(function(ptr){if(!ptr)return;var info=EXCEPTIONS.infos[ptr];assert(info.refcount>0);info.refcount--;if(info.refcount===0&&!info.rethrown){if(info.destructor){Module["dynCall_vi"](info.destructor,ptr)}delete EXCEPTIONS.infos[ptr];___cxa_free_exception(ptr)}}),clearRef:(function(ptr){if(!ptr)return;var info=EXCEPTIONS.infos[ptr];info.refcount=0})};function ___cxa_begin_catch(ptr){var info=EXCEPTIONS.infos[ptr];if(info&&!info.caught){info.caught=true;__ZSt18uncaught_exceptionv.uncaught_exception--}if(info)info.rethrown=false;EXCEPTIONS.caught.push(ptr);EXCEPTIONS.addRef(EXCEPTIONS.deAdjust(ptr));return ptr}function ___cxa_call_unexpected(exception){err("Unexpected exception thrown, this is not properly supported - aborting");ABORT=true;throw exception}function ___cxa_free_exception(ptr){try{return _free(ptr)}catch(e){}}function ___cxa_end_catch(){Module["setThrew"](0);var ptr=EXCEPTIONS.caught.pop();if(ptr){EXCEPTIONS.decRef(EXCEPTIONS.deAdjust(ptr));EXCEPTIONS.last=0}}function ___cxa_find_matching_catch_2(){return ___cxa_find_matching_catch.apply(null,arguments)}function ___cxa_find_matching_catch_3(){return ___cxa_find_matching_catch.apply(null,arguments)}function ___cxa_find_matching_catch_4(){return ___cxa_find_matching_catch.apply(null,arguments)}function ___cxa_find_matching_catch_5(){return ___cxa_find_matching_catch.apply(null,arguments)}function ___cxa_get_exception_ptr(ptr){return ptr}function ___cxa_pure_virtual(){ABORT=true;throw"Pure virtual function called!"}function ___cxa_rethrow(){var ptr=EXCEPTIONS.caught.pop();ptr=EXCEPTIONS.deAdjust(ptr);if(!EXCEPTIONS.infos[ptr].rethrown){EXCEPTIONS.caught.push(ptr);EXCEPTIONS.infos[ptr].rethrown=true}EXCEPTIONS.last=ptr;throw ptr}function ___resumeException(ptr){if(!EXCEPTIONS.last){EXCEPTIONS.last=ptr}throw ptr}function ___cxa_find_matching_catch(){var thrown=EXCEPTIONS.last;if(!thrown){return(setTempRet0(0),0)|0}var info=EXCEPTIONS.infos[thrown];var throwntype=info.type;if(!throwntype){return(setTempRet0(0),thrown)|0}var typeArray=Array.prototype.slice.call(arguments);var pointer=Module["___cxa_is_pointer_type"](throwntype);if(!___cxa_find_matching_catch.buffer)___cxa_find_matching_catch.buffer=_malloc(4);HEAP32[___cxa_find_matching_catch.buffer>>2]=thrown;thrown=___cxa_find_matching_catch.buffer;for(var i=0;i<typeArray.length;i++){if(typeArray[i]&&Module["___cxa_can_catch"](typeArray[i],throwntype,thrown)){thrown=HEAP32[thrown>>2];info.adjusted.push(thrown);return(setTempRet0(typeArray[i]),thrown)|0}}thrown=HEAP32[thrown>>2];return(setTempRet0(throwntype),thrown)|0}function ___cxa_throw(ptr,type,destructor){EXCEPTIONS.infos[ptr]={ptr:ptr,adjusted:[ptr],type:type,destructor:destructor,refcount:0,caught:false,rethrown:false};EXCEPTIONS.last=ptr;if(!("uncaught_exception"in __ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exception=1}else{__ZSt18uncaught_exceptionv.uncaught_exception++}throw ptr}function ___cxa_uncaught_exception(){return!!__ZSt18uncaught_exceptionv.uncaught_exception}function ___lock(){}var ERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,EN