Merge the jsCStack branch
authormsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Jan 2014 19:18:54 +0000 (19:18 +0000)
committermsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Jan 2014 19:18:54 +0000 (19:18 +0000)
https://bugs.webkit.org/show_bug.cgi?id=127763

Reviewed by Mark Hahnenberg.

Source/JavaScriptCore:

Changes from http://svn.webkit.org/repository/webkit/branches/jsCStack
up to changeset 162958.

Source/WebCore:

Changes from http://svn.webkit.org/repository/webkit/branches/jsCStack
up to changeset 162958.

Source/WTF:

Changes from http://svn.webkit.org/repository/webkit/branches/jsCStack
up to changeset 162958.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163027 268f45cc-cd09-0410-ab3c-d52691b4dbfc

299 files changed:
LayoutTests/js/large-expressions-expected.txt
LayoutTests/js/regress/script-tests/stepanov_container.js [deleted file]
LayoutTests/js/regress/stepanov_container-expected.txt [deleted file]
LayoutTests/js/regress/stepanov_container.html [deleted file]
LayoutTests/js/script-tests/dfg-add-not-number.js
LayoutTests/js/script-tests/large-expressions.js
Source/JavaScriptCore/CMakeLists.txt
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/GNUmakefile.list.am
Source/JavaScriptCore/JavaScriptCore.order
Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj
Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters
Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
Source/JavaScriptCore/assembler/ARM64Assembler.h
Source/JavaScriptCore/assembler/ARMv7Assembler.h
Source/JavaScriptCore/assembler/AbstractMacroAssembler.h
Source/JavaScriptCore/assembler/LinkBuffer.cpp
Source/JavaScriptCore/assembler/LinkBuffer.h
Source/JavaScriptCore/assembler/MacroAssembler.h
Source/JavaScriptCore/assembler/MacroAssemblerARM64.h
Source/JavaScriptCore/assembler/MacroAssemblerARMv7.h
Source/JavaScriptCore/assembler/MacroAssemblerCodeRef.h
Source/JavaScriptCore/assembler/MaxFrameExtentForSlowPathCall.h [new file with mode: 0644]
Source/JavaScriptCore/bytecode/CallLinkInfo.cpp
Source/JavaScriptCore/bytecode/CallLinkInfo.h
Source/JavaScriptCore/bytecode/CallLinkStatus.cpp
Source/JavaScriptCore/bytecode/CallLinkStatus.h
Source/JavaScriptCore/bytecode/CodeBlock.cpp
Source/JavaScriptCore/bytecode/CodeBlock.h
Source/JavaScriptCore/bytecode/CodeOrigin.cpp
Source/JavaScriptCore/bytecode/CodeOrigin.h
Source/JavaScriptCore/bytecode/DFGExitProfile.cpp
Source/JavaScriptCore/bytecode/DFGExitProfile.h
Source/JavaScriptCore/bytecode/ExitKind.h
Source/JavaScriptCore/bytecode/ExitingJITType.h [new file with mode: 0644]
Source/JavaScriptCore/bytecode/GetByIdStatus.cpp
Source/JavaScriptCore/bytecode/GetByIdStatus.h
Source/JavaScriptCore/bytecode/ProfiledCodeBlockJettisoningWatchpoint.cpp
Source/JavaScriptCore/bytecode/ProfiledCodeBlockJettisoningWatchpoint.h
Source/JavaScriptCore/bytecode/PutByIdStatus.cpp
Source/JavaScriptCore/bytecode/PutByIdStatus.h
Source/JavaScriptCore/bytecode/StructureSet.h
Source/JavaScriptCore/bytecode/StructureStubInfo.h
Source/JavaScriptCore/bytecode/ValueRecovery.h
Source/JavaScriptCore/bytecode/VirtualRegister.h
Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp
Source/JavaScriptCore/dfg/DFGArrayMode.cpp
Source/JavaScriptCore/dfg/DFGArrayMode.h
Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
Source/JavaScriptCore/dfg/DFGCFGSimplificationPhase.cpp
Source/JavaScriptCore/dfg/DFGCSEPhase.cpp
Source/JavaScriptCore/dfg/DFGCapabilities.cpp
Source/JavaScriptCore/dfg/DFGCapabilities.h
Source/JavaScriptCore/dfg/DFGCommon.h
Source/JavaScriptCore/dfg/DFGCompilationMode.h
Source/JavaScriptCore/dfg/DFGDriver.cpp
Source/JavaScriptCore/dfg/DFGDriver.h
Source/JavaScriptCore/dfg/DFGFailedFinalizer.cpp
Source/JavaScriptCore/dfg/DFGFailedFinalizer.h
Source/JavaScriptCore/dfg/DFGFinalizer.h
Source/JavaScriptCore/dfg/DFGFixupPhase.cpp
Source/JavaScriptCore/dfg/DFGGraph.cpp
Source/JavaScriptCore/dfg/DFGGraph.h
Source/JavaScriptCore/dfg/DFGJITCode.cpp
Source/JavaScriptCore/dfg/DFGJITCode.h
Source/JavaScriptCore/dfg/DFGJITCompiler.cpp
Source/JavaScriptCore/dfg/DFGJITCompiler.h
Source/JavaScriptCore/dfg/DFGJITFinalizer.cpp
Source/JavaScriptCore/dfg/DFGJITFinalizer.h
Source/JavaScriptCore/dfg/DFGNode.h
Source/JavaScriptCore/dfg/DFGNodeFlags.cpp
Source/JavaScriptCore/dfg/DFGOSRAvailabilityAnalysisPhase.cpp
Source/JavaScriptCore/dfg/DFGOSREntry.cpp
Source/JavaScriptCore/dfg/DFGOSREntrypointCreationPhase.cpp
Source/JavaScriptCore/dfg/DFGOSRExit.h
Source/JavaScriptCore/dfg/DFGOSRExitBase.cpp
Source/JavaScriptCore/dfg/DFGOSRExitBase.h
Source/JavaScriptCore/dfg/DFGOSRExitCompiler.cpp
Source/JavaScriptCore/dfg/DFGOSRExitCompiler32_64.cpp
Source/JavaScriptCore/dfg/DFGOSRExitCompiler64.cpp
Source/JavaScriptCore/dfg/DFGOSRExitCompilerCommon.cpp
Source/JavaScriptCore/dfg/DFGOperations.cpp
Source/JavaScriptCore/dfg/DFGPlan.cpp
Source/JavaScriptCore/dfg/DFGPlan.h
Source/JavaScriptCore/dfg/DFGSSALoweringPhase.cpp
Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp
Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h
Source/JavaScriptCore/dfg/DFGSpeculativeJIT32_64.cpp
Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp
Source/JavaScriptCore/dfg/DFGTierUpCheckInjectionPhase.cpp
Source/JavaScriptCore/dfg/DFGValidate.cpp
Source/JavaScriptCore/dfg/DFGWorklist.cpp
Source/JavaScriptCore/dfg/DFGWorklist.h
Source/JavaScriptCore/disassembler/ARM64/A64DOpcode.cpp
Source/JavaScriptCore/disassembler/ARM64/A64DOpcode.h
Source/JavaScriptCore/ftl/FTLAbbreviations.h
Source/JavaScriptCore/ftl/FTLAbstractHeap.cpp
Source/JavaScriptCore/ftl/FTLAbstractHeap.h
Source/JavaScriptCore/ftl/FTLAbstractHeapRepository.cpp
Source/JavaScriptCore/ftl/FTLAbstractHeapRepository.h
Source/JavaScriptCore/ftl/FTLAvailableRecovery.cpp [new file with mode: 0644]
Source/JavaScriptCore/ftl/FTLAvailableRecovery.h [new file with mode: 0644]
Source/JavaScriptCore/ftl/FTLCapabilities.cpp
Source/JavaScriptCore/ftl/FTLCommonValues.cpp
Source/JavaScriptCore/ftl/FTLCommonValues.h
Source/JavaScriptCore/ftl/FTLCompile.cpp
Source/JavaScriptCore/ftl/FTLExitValue.cpp
Source/JavaScriptCore/ftl/FTLExitValue.h
Source/JavaScriptCore/ftl/FTLInlineCacheSize.cpp
Source/JavaScriptCore/ftl/FTLInlineCacheSize.h
Source/JavaScriptCore/ftl/FTLIntrinsicRepository.h
Source/JavaScriptCore/ftl/FTLJITCode.cpp
Source/JavaScriptCore/ftl/FTLJITCode.h
Source/JavaScriptCore/ftl/FTLJITFinalizer.cpp
Source/JavaScriptCore/ftl/FTLJITFinalizer.h
Source/JavaScriptCore/ftl/FTLJSCall.cpp [new file with mode: 0644]
Source/JavaScriptCore/ftl/FTLJSCall.h [new file with mode: 0644]
Source/JavaScriptCore/ftl/FTLLink.cpp
Source/JavaScriptCore/ftl/FTLLowerDFGToLLVM.cpp
Source/JavaScriptCore/ftl/FTLOSREntry.cpp
Source/JavaScriptCore/ftl/FTLOSRExit.h
Source/JavaScriptCore/ftl/FTLOSRExitCompiler.cpp
Source/JavaScriptCore/ftl/FTLOutput.h
Source/JavaScriptCore/ftl/FTLRecoveryOpcode.cpp [new file with mode: 0644]
Source/JavaScriptCore/ftl/FTLRecoveryOpcode.h [new file with mode: 0644]
Source/JavaScriptCore/ftl/FTLRegisterAtOffset.cpp [new file with mode: 0644]
Source/JavaScriptCore/ftl/FTLRegisterAtOffset.h [new file with mode: 0644]
Source/JavaScriptCore/ftl/FTLSlowPathCall.cpp
Source/JavaScriptCore/ftl/FTLSlowPathCall.h
Source/JavaScriptCore/ftl/FTLStackMaps.cpp
Source/JavaScriptCore/ftl/FTLStackMaps.h
Source/JavaScriptCore/ftl/FTLState.cpp
Source/JavaScriptCore/ftl/FTLState.h
Source/JavaScriptCore/ftl/FTLThunks.cpp
Source/JavaScriptCore/ftl/FTLThunks.h
Source/JavaScriptCore/ftl/FTLUnwindInfo.cpp [new file with mode: 0644]
Source/JavaScriptCore/ftl/FTLUnwindInfo.h [new file with mode: 0644]
Source/JavaScriptCore/ftl/FTLValueRange.cpp [new file with mode: 0644]
Source/JavaScriptCore/ftl/FTLValueRange.h [new file with mode: 0644]
Source/JavaScriptCore/heap/ConservativeRoots.cpp
Source/JavaScriptCore/heap/Heap.cpp
Source/JavaScriptCore/heap/Heap.h
Source/JavaScriptCore/heap/MachineStackMarker.cpp
Source/JavaScriptCore/heap/MachineStackMarker.h
Source/JavaScriptCore/interpreter/CallFrame.cpp
Source/JavaScriptCore/interpreter/CallFrame.h
Source/JavaScriptCore/interpreter/Interpreter.cpp
Source/JavaScriptCore/interpreter/Interpreter.h
Source/JavaScriptCore/interpreter/JSStack.cpp
Source/JavaScriptCore/interpreter/JSStack.h
Source/JavaScriptCore/interpreter/JSStackInlines.h
Source/JavaScriptCore/interpreter/ProtoCallFrame.cpp
Source/JavaScriptCore/interpreter/ProtoCallFrame.h
Source/JavaScriptCore/jit/ArityCheckFailReturnThunks.cpp [new file with mode: 0644]
Source/JavaScriptCore/jit/ArityCheckFailReturnThunks.h [new file with mode: 0644]
Source/JavaScriptCore/jit/AssemblyHelpers.cpp
Source/JavaScriptCore/jit/AssemblyHelpers.h
Source/JavaScriptCore/jit/CCallHelpers.h
Source/JavaScriptCore/jit/ExecutableAllocator.h
Source/JavaScriptCore/jit/JIT.cpp
Source/JavaScriptCore/jit/JIT.h
Source/JavaScriptCore/jit/JITCall.cpp
Source/JavaScriptCore/jit/JITCall32_64.cpp
Source/JavaScriptCore/jit/JITCode.cpp
Source/JavaScriptCore/jit/JITCode.h
Source/JavaScriptCore/jit/JITExceptions.cpp
Source/JavaScriptCore/jit/JITInlineCacheGenerator.cpp
Source/JavaScriptCore/jit/JITInlineCacheGenerator.h
Source/JavaScriptCore/jit/JITInlines.h
Source/JavaScriptCore/jit/JITOpcodes.cpp
Source/JavaScriptCore/jit/JITOpcodes32_64.cpp
Source/JavaScriptCore/jit/JITOperations.cpp
Source/JavaScriptCore/jit/JITOperations.h
Source/JavaScriptCore/jit/JITPropertyAccess.cpp
Source/JavaScriptCore/jit/JITPropertyAccess32_64.cpp
Source/JavaScriptCore/jit/JITStubRoutine.h
Source/JavaScriptCore/jit/JITStubs.h
Source/JavaScriptCore/jit/JITStubsMSVC64.asm [deleted file]
Source/JavaScriptCore/jit/JITStubsX86.h
Source/JavaScriptCore/jit/JITThunks.cpp
Source/JavaScriptCore/jit/JITThunks.h
Source/JavaScriptCore/jit/RegisterPreservationWrapperGenerator.cpp [new file with mode: 0644]
Source/JavaScriptCore/jit/RegisterPreservationWrapperGenerator.h [new file with mode: 0644]
Source/JavaScriptCore/jit/Repatch.cpp
Source/JavaScriptCore/jit/Repatch.h
Source/JavaScriptCore/jit/SpecializedThunkJIT.h
Source/JavaScriptCore/jit/ThunkGenerators.cpp
Source/JavaScriptCore/jit/ThunkGenerators.h
Source/JavaScriptCore/llint/LLIntCLoop.cpp
Source/JavaScriptCore/llint/LLIntCLoop.h
Source/JavaScriptCore/llint/LLIntData.cpp
Source/JavaScriptCore/llint/LLIntEntrypoint.cpp
Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp
Source/JavaScriptCore/llint/LLIntOpcode.h
Source/JavaScriptCore/llint/LLIntSlowPaths.cpp
Source/JavaScriptCore/llint/LLIntSlowPaths.h
Source/JavaScriptCore/llint/LLIntThunks.cpp
Source/JavaScriptCore/llint/LLIntThunks.h
Source/JavaScriptCore/llint/LowLevelInterpreter.asm
Source/JavaScriptCore/llint/LowLevelInterpreter.cpp
Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm
Source/JavaScriptCore/llint/LowLevelInterpreter64.asm
Source/JavaScriptCore/llvm/library/LLVMExports.cpp
Source/JavaScriptCore/offlineasm/arm.rb
Source/JavaScriptCore/offlineasm/arm64.rb
Source/JavaScriptCore/offlineasm/cloop.rb
Source/JavaScriptCore/offlineasm/instructions.rb
Source/JavaScriptCore/offlineasm/x86.rb
Source/JavaScriptCore/parser/ParserError.h
Source/JavaScriptCore/profiler/ProfilerCompilation.cpp
Source/JavaScriptCore/profiler/ProfilerCompilation.h
Source/JavaScriptCore/profiler/ProfilerCompilationKind.cpp
Source/JavaScriptCore/profiler/ProfilerCompilationKind.h
Source/JavaScriptCore/runtime/ArityCheckMode.h [new file with mode: 0644]
Source/JavaScriptCore/runtime/CommonSlowPaths.cpp
Source/JavaScriptCore/runtime/CommonSlowPaths.h
Source/JavaScriptCore/runtime/ErrorHandlingScope.cpp [new file with mode: 0644]
Source/JavaScriptCore/runtime/ErrorHandlingScope.h [new file with mode: 0644]
Source/JavaScriptCore/runtime/ExceptionHelpers.cpp
Source/JavaScriptCore/runtime/Executable.cpp
Source/JavaScriptCore/runtime/Executable.h
Source/JavaScriptCore/runtime/JSCJSValue.h
Source/JavaScriptCore/runtime/JSLock.cpp
Source/JavaScriptCore/runtime/JSLock.h
Source/JavaScriptCore/runtime/JSONObject.cpp
Source/JavaScriptCore/runtime/Options.cpp
Source/JavaScriptCore/runtime/Options.h
Source/JavaScriptCore/runtime/RegisterPreservationMode.h [new file with mode: 0644]
Source/JavaScriptCore/runtime/StackAlignment.h
Source/JavaScriptCore/runtime/StringRecursionChecker.cpp
Source/JavaScriptCore/runtime/Structure.cpp
Source/JavaScriptCore/runtime/VM.cpp
Source/JavaScriptCore/runtime/VM.h
Source/JavaScriptCore/runtime/VMEntryScope.cpp
Source/JavaScriptCore/runtime/VMEntryScope.h
Source/JavaScriptCore/tests/stress/add-constant-overflow-recovery.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/add-int52-constant-overflow-recovery.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/add-int52-large-constant-overflow-recovery.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/add-overflow-recovery.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/add-small-constant-overflow-recovery.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/array-push.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/empty-function.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/exit-after-int32-to-double.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/exit-after-int52-to-double.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/exit-after-int52-to-value.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/exit-after-llvm-folds-large-int-constant.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/exit-from-ftl-with-arity-check-fail.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/ftl-arithcos.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/ftl-arithsin.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/ftl-arithsqrt.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/ftl-putbyid.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/ftl-putbyiddirect.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/ftl-to-ftl-arity-fixup.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/get-by-id-throw-from-getter-through-optimized-code.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/get-by-id-throw-from-unexpected-getter-through-optimized-code-that-does-not-exit.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/get-by-id-throw-from-unexpected-getter-through-optimized-code.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/ic-throw-through-optimized-code.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/inline-call-varargs-and-call.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/inline-call-varargs.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/inline-closure-call.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/int16-put-by-val-in-and-out-of-bounds.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/int16-put-by-val-in-bounds-then-exit-out-of-bounds.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/int16-put-by-val-out-of-bounds-bounds-then-do-in-bounds.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/invalidation-point.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/make-rope-2.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/make-rope-3.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/new-array-storage-array-with-size.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/new-array-with-size-with-bad-time.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/new-contiguous-array-with-size.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/new-double-array-with-size.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/new-int32-array-with-size.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/new-undecided-array-with-size.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/not-cell-use.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/put-by-id-throw-through-optimized-code.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/recurse-infinitely-on-getter.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/repeated-arity-check-fail.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/runtime-throw-through-optimized-code.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/simple-polyvariant-call-inlining-example.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/simple-polyvariant-get-by-id-inlining-example.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/simple-polyvariant-put-by-id-inlining-example.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/throw-through-optimized-code.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/to-string-on-object-or-string.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/to-string-on-object.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/to-string-on-string-object.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/to-string-on-string-or-string-object-then-object.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/to-string-on-string-or-string-object.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/to-string-on-value-or-string.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/to-string-on-value.js [new file with mode: 0644]
Source/WTF/ChangeLog
Source/WTF/wtf/BagToHashMap.h
Source/WTF/wtf/Platform.h
Source/WTF/wtf/StackBounds.h
Source/WebCore/ChangeLog
Source/WebCore/ForwardingHeaders/runtime/ErrorHandlingScope.h [new file with mode: 0644]
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
Source/WebCore/bindings/js/JSDOMBinding.cpp
Tools/Scripts/display-profiler-output
Tools/Scripts/run-jsc-stress-tests

index 879e264..dfe3850 100644 (file)
@@ -5,7 +5,6 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 PASS eval(repeatedExpression("letterA", "+", 100)) is repeatedString("a", 100)
 PASS eval(repeatedExpression("letterA", "+", 1000)) is repeatedString("a", 1000)
-PASS eval(repeatedExpression("letterA", "+", 10000)) is repeatedString("a", 10000)
 PASS eval(repeatedExpression("letterA", "+", 100000)) threw exception Error: Out of memory.
 PASS successfullyParsed is true
 
diff --git a/LayoutTests/js/regress/script-tests/stepanov_container.js b/LayoutTests/js/regress/script-tests/stepanov_container.js
deleted file mode 100644 (file)
index 3283710..0000000
+++ /dev/null
@@ -1,6404 +0,0 @@
-//@ slow!
-//@ runDefault
-//@ runDefaultFTL if $enableFTL
-
-// Note: For maximum-speed code, see "Optimizing Code" on the Emscripten wiki, https://github.com/kripken/emscripten/wiki/Optimizing-Code
-// Note: Some Emscripten settings may limit the speed of the generated code.
-// The Module object: Our interface to the outside world. We import
-// and export values on it, and do the work to get that through
-// closure compiler if necessary. There are various ways Module can be used:
-// 1. Not defined. We create it here
-// 2. A function parameter, function(Module) { ..generated code.. }
-// 3. pre-run appended it, var Module = {}; ..generated code..
-// 4. External script tag defines var Module.
-// We need to do an eval in order to handle the closure compiler
-// case, where this code here is minified but Module was defined
-// elsewhere (e.g. case 4 above). We also need to check if Module
-// already exists (e.g. case 3 above).
-// Note that if you want to run closure, and also to use Module
-// after the generated code, you will need to define   var Module = {};
-// before the code. Then that object will be used in the code, and you
-// can continue to use Module afterwards as well.
-var Module;
-if (!Module) Module = eval('(function() { try { return Module || {} } catch(e) { return {} } })()');
-// Sometimes an existing Module object exists with properties
-// meant to overwrite the default module functionality. Here
-// we collect those properties and reapply _after_ we configure
-// the current environment's defaults to avoid having to be so
-// defensive during initialization.
-var moduleOverrides = {};
-for (var key in Module) {
-  if (Module.hasOwnProperty(key)) {
-    moduleOverrides[key] = Module[key];
-  }
-}
-// The environment setup code below is customized to use Module.
-// *** Environment setup code ***
-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) {
-  // Expose functionality in the same simple way that the shells work
-  // Note that we pollute the global namespace here, otherwise we break in node
-  Module['print'] = function(x) {
-    process['stdout'].write(x + '\n');
-  };
-  Module['printErr'] = function(x) {
-    process['stderr'].write(x + '\n');
-  };
-  var nodeFS = require('fs');
-  var nodePath = require('path');
-  Module['read'] = function(filename, binary) {
-    filename = nodePath['normalize'](filename);
-    var ret = nodeFS['readFileSync'](filename);
-    // The path is absolute if the normalized version is the same as the resolved.
-    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(filename) { return Module['read'](filename, true) };
-  Module['load'] = function(f) {
-    globalEval(read(f));
-  };
-  Module['arguments'] = process['argv'].slice(2);
-  module.exports = Module;
-}
-else if (ENVIRONMENT_IS_SHELL) {
-  Module['print'] = print;
-  if (typeof printErr != 'undefined') Module['printErr'] = printErr; // not present in v8 or older sm
-  if (typeof read != 'undefined') {
-    Module['read'] = read;
-  } else {
-    Module['read'] = function() { throw 'no read() available (jsc?)' };
-  }
-  Module['readBinary'] = function(f) {
-    return read(f, 'binary');
-  };
-  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(url) {
-    var xhr = new XMLHttpRequest();
-    xhr.open('GET', url, false);
-    xhr.send(null);
-    return xhr.responseText;
-  };
-  if (typeof arguments != 'undefined') {
-    Module['arguments'] = arguments;
-  }
-  if (ENVIRONMENT_IS_WEB) {
-    Module['print'] = function(x) {
-      console.log(x);
-    };
-    Module['printErr'] = function(x) {
-      console.log(x);
-    };
-    this['Module'] = Module;
-  } else if (ENVIRONMENT_IS_WORKER) {
-    // We can do very little here...
-    var TRY_USE_DUMP = false;
-    Module['print'] = (TRY_USE_DUMP && (typeof(dump) !== "undefined") ? (function(x) {
-      dump(x);
-    }) : (function(x) {
-      // self.postMessage(x); // enable this if you want stdout to be sent as messages
-    }));
-    Module['load'] = importScripts;
-  }
-}
-else {
-  // Unreachable because SHELL is dependant on the others
-  throw 'Unknown runtime environment. Where are we?';
-}
-function globalEval(x) {
-  eval.call(null, x);
-}
-if (!Module['load'] == 'undefined' && Module['read']) {
-  Module['load'] = function(f) {
-    globalEval(Module['read'](f));
-  };
-}
-if (!Module['print']) {
-  Module['print'] = function(){};
-}
-if (!Module['printErr']) {
-  Module['printErr'] = Module['print'];
-}
-if (!Module['arguments']) {
-  Module['arguments'] = [];
-}
-// *** Environment setup code ***
-// Closure helpers
-Module.print = Module['print'];
-Module.printErr = Module['printErr'];
-// Callbacks
-Module['preRun'] = [];
-Module['postRun'] = [];
-// Merge back in the overrides
-for (var key in moduleOverrides) {
-  if (moduleOverrides.hasOwnProperty(key)) {
-    Module[key] = moduleOverrides[key];
-  }
-}
-// === Auto-generated preamble library stuff ===
-//========================================
-// Runtime code shared with compiler
-//========================================
-var Runtime = {
-  stackSave: function () {
-    return STACKTOP;
-  },
-  stackRestore: function (stackTop) {
-    STACKTOP = stackTop;
-  },
-  forceAlign: function (target, quantum) {
-    quantum = quantum || 4;
-    if (quantum == 1) return target;
-    if (isNumber(target) && isNumber(quantum)) {
-      return Math.ceil(target/quantum)*quantum;
-    } else if (isNumber(quantum) && isPowerOfTwo(quantum)) {
-      var logg = log2(quantum);
-      return '((((' +target + ')+' + (quantum-1) + ')>>' + logg + ')<<' + logg + ')';
-    }
-    return 'Math.ceil((' + target + ')/' + quantum + ')*' + quantum;
-  },
-  isNumberType: function (type) {
-    return type in Runtime.INT_TYPES || type in Runtime.FLOAT_TYPES;
-  },
-  isPointerType: function isPointerType(type) {
-  return type[type.length-1] == '*';
-},
-  isStructType: function isStructType(type) {
-  if (isPointerType(type)) return false;
-  if (isArrayType(type)) return true;
-  if (/<?{ ?[^}]* ?}>?/.test(type)) return true; // { i32, i8 } etc. - anonymous struct types
-  // See comment in isStructPointerType()
-  return type[0] == '%';
-},
-  INT_TYPES: {"i1":0,"i8":0,"i16":0,"i32":0,"i64":0},
-  FLOAT_TYPES: {"float":0,"double":0},
-  or64: function (x, y) {
-    var l = (x | 0) | (y | 0);
-    var h = (Math.round(x / 4294967296) | Math.round(y / 4294967296)) * 4294967296;
-    return l + h;
-  },
-  and64: function (x, y) {
-    var l = (x | 0) & (y | 0);
-    var h = (Math.round(x / 4294967296) & Math.round(y / 4294967296)) * 4294967296;
-    return l + h;
-  },
-  xor64: function (x, y) {
-    var l = (x | 0) ^ (y | 0);
-    var h = (Math.round(x / 4294967296) ^ Math.round(y / 4294967296)) * 4294967296;
-    return l + h;
-  },
-  getNativeTypeSize: function (type, quantumSize) {
-    if (Runtime.QUANTUM_SIZE == 1) return 1;
-    var size = {
-      '%i1': 1,
-      '%i8': 1,
-      '%i16': 2,
-      '%i32': 4,
-      '%i64': 8,
-      "%float": 4,
-      "%double": 8
-    }['%'+type]; // add '%' since float and double confuse Closure compiler as keys, and also spidermonkey as a compiler will remove 's from '_i8' etc
-    if (!size) {
-      if (type.charAt(type.length-1) == '*') {
-        size = Runtime.QUANTUM_SIZE; // A pointer
-      } else if (type[0] == 'i') {
-        var bits = parseInt(type.substr(1));
-        assert(bits % 8 == 0);
-        size = bits/8;
-      }
-    }
-    return size;
-  },
-  getNativeFieldSize: function (type) {
-    return Math.max(Runtime.getNativeTypeSize(type), Runtime.QUANTUM_SIZE);
-  },
-  dedup: function dedup(items, ident) {
-  var seen = {};
-  if (ident) {
-    return items.filter(function(item) {
-      if (seen[item[ident]]) return false;
-      seen[item[ident]] = true;
-      return true;
-    });
-  } else {
-    return items.filter(function(item) {
-      if (seen[item]) return false;
-      seen[item] = true;
-      return true;
-    });
-  }
-},
-  set: function set() {
-  var args = typeof arguments[0] === 'object' ? arguments[0] : arguments;
-  var ret = {};
-  for (var i = 0; i < args.length; i++) {
-    ret[args[i]] = 0;
-  }
-  return ret;
-},
-  STACK_ALIGN: 8,
-  getAlignSize: function (type, size, vararg) {
-    // we align i64s and doubles on 64-bit boundaries, unlike x86
-    if (type == 'i64' || type == 'double' || vararg) return 8;
-    if (!type) return Math.min(size, 8); // align structures internally to 64 bits
-    return Math.min(size || (type ? Runtime.getNativeFieldSize(type) : 0), Runtime.QUANTUM_SIZE);
-  },
-  calculateStructAlignment: function calculateStructAlignment(type) {
-    type.flatSize = 0;
-    type.alignSize = 0;
-    var diffs = [];
-    var prev = -1;
-    var index = 0;
-    type.flatIndexes = type.fields.map(function(field) {
-      index++;
-      var size, alignSize;
-      if (Runtime.isNumberType(field) || Runtime.isPointerType(field)) {
-        size = Runtime.getNativeTypeSize(field); // pack char; char; in structs, also char[X]s.
-        alignSize = Runtime.getAlignSize(field, size);
-      } else if (Runtime.isStructType(field)) {
-        if (field[1] === '0') {
-          // this is [0 x something]. When inside another structure like here, it must be at the end,
-          // and it adds no size
-          // XXX this happens in java-nbody for example... assert(index === type.fields.length, 'zero-length in the middle!');
-          size = 0;
-          alignSize = type.alignSize || QUANTUM_SIZE;
-        } else {
-          size = Types.types[field].flatSize;
-          alignSize = Runtime.getAlignSize(null, Types.types[field].alignSize);
-        }
-      } else if (field[0] == 'b') {
-        // bN, large number field, like a [N x i8]
-        size = field.substr(1)|0;
-        alignSize = 1;
-      } else {
-        throw 'Unclear type in struct: ' + field + ', in ' + type.name_ + ' :: ' + dump(Types.types[type.name_]);
-      }
-      if (type.packed) alignSize = 1;
-      type.alignSize = Math.max(type.alignSize, alignSize);
-      var curr = Runtime.alignMemory(type.flatSize, alignSize); // if necessary, place this on aligned memory
-      type.flatSize = curr + size;
-      if (prev >= 0) {
-        diffs.push(curr-prev);
-      }
-      prev = curr;
-      return curr;
-    });
-    type.flatSize = Runtime.alignMemory(type.flatSize, type.alignSize);
-    if (diffs.length == 0) {
-      type.flatFactor = type.flatSize;
-    } else if (Runtime.dedup(diffs).length == 1) {
-      type.flatFactor = diffs[0];
-    }
-    type.needsFlattening = (type.flatFactor != 1);
-    return type.flatIndexes;
-  },
-  generateStructInfo: function (struct, typeName, offset) {
-    var type, alignment;
-    if (typeName) {
-      offset = offset || 0;
-      type = (typeof Types === 'undefined' ? Runtime.typeInfo : Types.types)[typeName];
-      if (!type) return null;
-      if (type.fields.length != struct.length) {
-        printErr('Number of named fields must match the type for ' + typeName + ': possibly duplicate struct names. Cannot return structInfo');
-        return null;
-      }
-      alignment = type.flatIndexes;
-    } else {
-      var type = { fields: struct.map(function(item) { return item[0] }) };
-      alignment = Runtime.calculateStructAlignment(type);
-    }
-    var ret = {
-      __size__: type.flatSize
-    };
-    if (typeName) {
-      struct.forEach(function(item, i) {
-        if (typeof item === 'string') {
-          ret[item] = alignment[i] + offset;
-        } else {
-          // embedded struct
-          var key;
-          for (var k in item) key = k;
-          ret[key] = Runtime.generateStructInfo(item[key], type.fields[i], alignment[i]);
-        }
-      });
-    } else {
-      struct.forEach(function(item, i) {
-        ret[item[1]] = alignment[i];
-      });
-    }
-    return ret;
-  },
-  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 + 2*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;
-  },
-  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[func]) {
-      Runtime.funcWrappers[func] = function() {
-        return Runtime.dynCall(sig, func, arguments);
-      };
-    }
-    return Runtime.funcWrappers[func];
-  },
-  UTF8Processor: function () {
-    var buffer = [];
-    var needed = 0;
-    this.processCChar = function (code) {
-      code = code & 0xFF;
-      if (buffer.length == 0) {
-        if ((code & 0x80) == 0x00) {        // 0xxxxxxx
-          return String.fromCharCode(code);
-        }
-        buffer.push(code);
-        if ((code & 0xE0) == 0xC0) {        // 110xxxxx
-          needed = 1;
-        } else if ((code & 0xF0) == 0xE0) { // 1110xxxx
-          needed = 2;
-        } else {                            // 11110xxx
-          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 & 0x1F) << 6)  | (c2 & 0x3F));
-      } else if (buffer.length == 3) {
-        ret = String.fromCharCode(((c1 & 0x0F) << 12) | ((c2 & 0x3F) << 6)  | (c3 & 0x3F));
-      } else {
-        // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
-        var codePoint = ((c1 & 0x07) << 18) | ((c2 & 0x3F) << 12) |
-                        ((c3 & 0x3F) << 6)  | (c4 & 0x3F);
-        ret = String.fromCharCode(
-          Math.floor((codePoint - 0x10000) / 0x400) + 0xD800,
-          (codePoint - 0x10000) % 0x400 + 0xDC00);
-      }
-      buffer.length = 0;
-      return ret;
-    }
-    this.processJSString = function(string) {
-      string = unescape(encodeURIComponent(string));
-      var ret = [];
-      for (var i = 0; i < string.length; i++) {
-        ret.push(string.charCodeAt(i));
-      }
-      return ret;
-    }
-  },
-  stackAlloc: function (size) { var ret = STACKTOP;STACKTOP = (STACKTOP + size)|0;STACKTOP = ((((STACKTOP)+7)>>3)<<3); return ret; },
-  staticAlloc: function (size) { var ret = STATICTOP;STATICTOP = (STATICTOP + size)|0;STATICTOP = ((((STATICTOP)+7)>>3)<<3); return ret; },
-  dynamicAlloc: function (size) { var ret = DYNAMICTOP;DYNAMICTOP = (DYNAMICTOP + size)|0;DYNAMICTOP = ((((DYNAMICTOP)+7)>>3)<<3); if (DYNAMICTOP >= TOTAL_MEMORY) enlargeMemory();; return ret; },
-  alignMemory: function (size,quantum) { var ret = size = Math.ceil((size)/(quantum ? quantum : 8))*(quantum ? quantum : 8); 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
-}
-//========================================
-// Runtime essentials
-//========================================
-var __THREW__ = 0; // Used in checking for thrown exceptions.
-var ABORT = false; // whether we are quitting the application. no code should run after this. set in exit() and abort()
-var EXITSTATUS = 0;
-var undef = 0;
-// tempInt is used for 32-bit signed values or smaller. tempBigInt is used
-// for 32-bit unsigned values or more than 32 bits. TODO: audit all uses of tempInt
-var tempValue, tempInt, tempBigInt, tempInt2, tempBigInt2, tempPair, tempBigIntI, tempBigIntR, tempBigIntS, tempBigIntP, tempBigIntD;
-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;
-// C calling interface. A convenient way to call C functions (in C files, or
-// defined with extern "C").
-//
-// Note: LLVM optimizations can inline and remove functions, after which you will not be
-//       able to call them. Closure can also do so. To avoid that, add your function to
-//       the exports using something like
-//
-//         -s EXPORTED_FUNCTIONS='["_main", "_myfunc"]'
-//
-// @param ident      The name of the C function (note that C++ functions will be name-mangled - use extern "C")
-// @param returnType The return type of the function, one of the JS types 'number', 'string' or 'array' (use 'number' for any C pointer, and
-//                   'array' for JavaScript arrays and typed arrays; note that arrays are 8-bit).
-// @param argTypes   An array of the types of arguments for the function (if there are no arguments, this can be ommitted). Types are as in returnType,
-//                   except that 'array' is not possible (there is no way for us to know the length of the array)
-// @param args       An array of the arguments to the function, as native JS values (as in returnType)
-//                   Note that string arguments will be stored on the stack (the JS string will become a C string on the stack).
-// @return           The return value, as a native JS value (as in returnType)
-function ccall(ident, returnType, argTypes, args) {
-  return ccallFunc(getCFunc(ident), returnType, argTypes, args);
-}
-Module["ccall"] = ccall;
-// Returns the C function with a specified identifier (for C++, you need to do manual name mangling)
-function getCFunc(ident) {
-  try {
-    var func = Module['_' + ident]; // closure exported function
-    if (!func) func = eval('_' + ident); // explicit lookup
-  } catch(e) {
-  }
-  assert(func, 'Cannot call unknown function ' + ident + ' (perhaps LLVM optimizations or closure removed it?)');
-  return func;
-}
-// Internal function that does a C call using a function, not an identifier
-function ccallFunc(func, returnType, argTypes, args) {
-  var stack = 0;
-  function toC(value, type) {
-    if (type == 'string') {
-      if (value === null || value === undefined || value === 0) return 0; // null string
-      if (!stack) stack = Runtime.stackSave();
-      var ret = Runtime.stackAlloc(value.length+1);
-      writeStringToMemory(value, ret);
-      return ret;
-    } else if (type == 'array') {
-      if (!stack) stack = Runtime.stackSave();
-      var ret = Runtime.stackAlloc(value.length);
-      writeArrayToMemory(value, ret);
-      return ret;
-    }
-    return value;
-  }
-  function fromC(value, type) {
-    if (type == 'string') {
-      return Pointer_stringify(value);
-    }
-    assert(type != 'array');
-    return value;
-  }
-  var i = 0;
-  var cArgs = args ? args.map(function(arg) {
-    return toC(arg, argTypes[i++]);
-  }) : [];
-  var ret = fromC(func.apply(null, cArgs), returnType);
-  if (stack) Runtime.stackRestore(stack);
-  return ret;
-}
-// Returns a native JS wrapper for a C function. This is similar to ccall, but
-// returns a function you can call repeatedly in a normal way. For example:
-//
-//   var my_function = cwrap('my_c_function', 'number', ['number', 'number']);
-//   alert(my_function(5, 22));
-//   alert(my_function(99, 12));
-//
-function cwrap(ident, returnType, argTypes) {
-  var func = getCFunc(ident);
-  return function() {
-    return ccallFunc(func, returnType, argTypes, Array.prototype.slice.call(arguments));
-  }
-}
-Module["cwrap"] = cwrap;
-// Sets a value in memory in a dynamic way at run-time. Uses the
-// type data. This is the same as makeSetValue, except that
-// makeSetValue is done at compile-time and generates the needed
-// code then, whereas this function picks the right code at
-// run-time.
-// Note that setValue and getValue only do *aligned* writes and reads!
-// Note that ccall uses JS types as for defining types, while setValue and
-// getValue need LLVM types ('i8', 'i32') - this is a lower-level operation
-function setValue(ptr, value, type, noSafe) {
-  type = type || 'i8';
-  if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
-    switch(type) {
-      case 'i1': HEAP8[(ptr)]=value; break;
-      case 'i8': HEAP8[(ptr)]=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;
-// Parallel to setValue.
-function getValue(ptr, type, noSafe) {
-  type = type || 'i8';
-  if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
-    switch(type) {
-      case 'i1': return HEAP8[(ptr)];
-      case 'i8': return HEAP8[(ptr)];
-      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; // Tries to use _malloc()
-var ALLOC_STACK = 1; // Lives for the duration of the current function call
-var ALLOC_STATIC = 2; // Cannot be freed
-var ALLOC_DYNAMIC = 3; // Cannot be freed except through sbrk
-var ALLOC_NONE = 4; // Do not allocate
-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;
-// allocate(): This is for internal use. You can use it yourself as well, but the interface
-//             is a little tricky (see docs right below). The reason is that it is optimized
-//             for multiple syntaxes to save space in generated code. So you should
-//             normally not use allocate(), and instead allocate memory using _malloc(),
-//             initialize it with setValue(), and so forth.
-// @slab: An array of data, or a number. If a number, then the size of the block to allocate,
-//        in *bytes* (note that this is sometimes confusing: the next parameter does not
-//        affect this!)
-// @types: Either an array of types, one for each byte (or 0 if no type at that position),
-//         or a single type which is used for the entire block. This only matters if there
-//         is initial data - if @slab is a number, then this does not matter at all and is
-//         ignored.
-// @allocator: How to allocate memory, see ALLOC_*
-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'; // special case: we have one i32 here, and one i32 later
-    setValue(ret+i, curr, type);
-    // no need to look up size unless type changes, so cache it
-    if (previousType !== type) {
-      typeSize = Runtime.getNativeTypeSize(type);
-      previousType = type;
-    }
-    i += typeSize;
-  }
-  return ret;
-}
-Module['allocate'] = allocate;
-function Pointer_stringify(ptr, /* optional */ length) {
-  // TODO: use TextDecoder
-  // Find the length, and check for UTF while doing so
-  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; // split up into chunks, because .apply on a huge string can overflow the stack
-    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;
-// Memory management
-var PAGE_SIZE = 4096;
-function alignMemoryPage(x) {
-  return ((x+4095)>>12)<<12;
-}
-var HEAP;
-var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
-var STATIC_BASE = 0, STATICTOP = 0, staticSealed = false; // static area
-var STACK_BASE = 0, STACKTOP = 0, STACK_MAX = 0; // stack area
-var DYNAMIC_BASE = 0, DYNAMICTOP = 0; // dynamic area handled by sbrk
-function enlargeMemory() {
-  abort('Cannot enlarge memory arrays in asm.js. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value, or (2) 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;
-// Initialize the runtime's memory
-// check for full engine support (use string 'subarray' to avoid closure compiler confusion)
-assert(!!Int32Array && !!Float64Array && !!(new Int32Array(1)['subarray']) && !!(new Int32Array(1)['set']),
-       'Cannot fallback to non-typed array case: Code is too specialized');
-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);
-// Endianness check (note: assumes compiler arch was little-endian)
-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['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__  = []; // functions called before the runtime is initialized
-var __ATINIT__    = []; // functions called during startup
-var __ATMAIN__    = []; // functions called when main() is to be run
-var __ATEXIT__    = []; // functions called during shutdown
-var __ATPOSTRUN__ = []; // functions called after the runtime has exited
-var runtimeInitialized = false;
-function preRun() {
-  // compatibility - merge in anything from Module['preRun'] at this time
-  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__);
-}
-function postRun() {
-  // compatibility - merge in anything from Module['postRun'] at this time
-  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;
-// Tools
-// This processes a JS string into a C-line array of numbers, 0-terminated.
-// For LLVM-originating strings, see parser.js:parseLLVMString function
-function intArrayFromString(stringy, dontAddNull, length /* optional */) {
-  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 > 0xFF) {
-      chr &= 0xFF;
-    }
-    ret.push(String.fromCharCode(chr));
-  }
-  return ret.join('');
-}
-Module['intArrayToString'] = intArrayToString;
-// Write a Javascript array to somewhere in the heap
-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 unSign(value, bits, ignore, sig) {
-  if (value >= 0) {
-    return value;
-  }
-  return bits <= 32 ? 2*Math.abs(1 << (bits-1)) + value // Need some trickery, since if bits == 32, we are right at the limit of the bits JS uses in bitshifts
-                    : Math.pow(2, bits)         + value;
-}
-function reSign(value, bits, ignore, sig) {
-  if (value <= 0) {
-    return value;
-  }
-  var half = bits <= 32 ? Math.abs(1 << (bits-1)) // abs is needed if bits == 32
-                        : Math.pow(2, bits-1);
-  if (value >= half && (bits <= 32 || value > half)) { // for huge values, we can hit the precision limit and always get true here. so don't do that
-                                                       // but, in general there is no perfect solution here. With 64-bit ints, we get rounding and errors
-                                                       // TODO: In i64 mode 1, resign the two parts separately and safely
-    value = -2*half + value; // Cannot bitshift half, as it may be at the limit of the bits JS uses in bitshifts
-  }
-  return value;
-}
-if (!Math['imul']) Math['imul'] = function(a, b) {
-  var ah  = a >>> 16;
-  var al = a & 0xffff;
-  var bh  = b >>> 16;
-  var bl = b & 0xffff;
-  return (al*bl + ((ah*bl + al*bh) << 16))|0;
-};
-Math.imul = Math['imul'];
-// A counter of dependencies for calling run(). If we need to
-// do asynchronous work before running, increment this and
-// decrement it. Incrementing must happen in a place like
-// PRE_RUN_ADDITIONS (used by emcc to add file preloading).
-// Note that you can add dependencies in preRun, even though
-// it happens right before run - run will be postponed until
-// the dependencies are met.
-var runDependencies = 0;
-var runDependencyTracking = {};
-var calledInit = false, calledRun = false;
-var runDependencyWatcher = null;
-function addRunDependency(id) {
-  runDependencies++;
-  if (Module['monitorRunDependencies']) {
-    Module['monitorRunDependencies'](runDependencies);
-  }
-  if (id) {
-    assert(!runDependencyTracking[id]);
-    runDependencyTracking[id] = 1;
-  } else {
-    Module.printErr('warning: run dependency added without ID');
-  }
-}
-Module['addRunDependency'] = addRunDependency;
-function removeRunDependency(id) {
-  runDependencies--;
-  if (Module['monitorRunDependencies']) {
-    Module['monitorRunDependencies'](runDependencies);
-  }
-  if (id) {
-    assert(runDependencyTracking[id]);
-    delete runDependencyTracking[id];
-  } else {
-    Module.printErr('warning: run dependency removed without ID');
-  }
-  if (runDependencies == 0) {
-    if (runDependencyWatcher !== null) {
-      clearInterval(runDependencyWatcher);
-      runDependencyWatcher = null;
-    } 
-    // If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false)
-    if (!calledRun && shouldRunNow) run();
-  }
-}
-Module['removeRunDependency'] = removeRunDependency;
-Module["preloadedImages"] = {}; // maps url to image data
-Module["preloadedAudios"] = {}; // maps url to audio data
-function loadMemoryInitializer(filename) {
-  function applyData(data) {
-    HEAPU8.set(data, STATIC_BASE);
-  }
-  // always do this asynchronously, to keep shell and web as similar as possible
-  addOnPreRun(function() {
-    if (ENVIRONMENT_IS_NODE || ENVIRONMENT_IS_SHELL) {
-      applyData(Module['readBinary'](filename));
-    } else {
-      Browser.asyncLoad(filename, function(data) {
-        applyData(data);
-      }, function(data) {
-        throw 'could not load memory initializer ' + filename;
-      });
-    }
-  });
-}
-// === Body ===
-STATIC_BASE = 8;
-STATICTOP = STATIC_BASE + 16392;
-var _stdout;
-var _stdin;
-var _stderr;
-/* global initializers */ __ATINIT__.push({ func: function() { runPostSets() } },{ func: function() { __GLOBAL__I_a() } },{ func: function() { __GLOBAL__I_a8() } });
-var ___fsmu8;
-var ___dso_handle;
-var __ZTVN10__cxxabiv120__si_class_type_infoE;
-var __ZTVN10__cxxabiv117__class_type_infoE;
-var __ZNSt3__112__rs_defaultD1Ev;
-var __ZNSt13runtime_errorC1EPKc;
-var __ZNSt13runtime_errorD1Ev;
-var __ZNSt12length_errorD1Ev;
-var __ZNSt3__16localeC1Ev;
-var __ZNSt3__16localeC1ERKS0_;
-var __ZNSt3__16localeD1Ev;
-var __ZNSt8bad_castC1Ev;
-var __ZNSt8bad_castD1Ev;
-var _stdout = _stdout=allocate([0,0,0,0,0,0,0,0], "i8", ALLOC_STATIC);
-var _stdin = _stdin=allocate([0,0,0,0,0,0,0,0], "i8", ALLOC_STATIC);
-var _stderr = _stderr=allocate([0,0,0,0,0,0,0,0], "i8", ALLOC_STATIC);
-__ZTVN10__cxxabiv120__si_class_type_infoE=allocate([0,0,0,0,200,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "i8", ALLOC_STATIC);
-__ZTVN10__cxxabiv117__class_type_infoE=allocate([0,0,0,0,216,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "i8", ALLOC_STATIC);
-/* memory initializer */ allocate([0,0,0,0,0,0,36,64,0,0,0,0,0,0,89,64,0,0,0,0,0,136,195,64,0,0,0,0,132,215,151,65,0,128,224,55,121,195,65,67,23,110,5,181,181,184,147,70,245,249,63,233,3,79,56,77,50,29,48,249,72,119,130,90,60,191,115,127,221,79,21,117,74,117,108,0,0,0,0,0,74,117,110,0,0,0,0,0,65,112,114,0,0,0,0,0,77,97,114,0,0,0,0,0,70,101,98,0,0,0,0,0,74,97,110,0,0,0,0,0,68,101,99,101,109,98,101,114,0,0,0,0,0,0,0,0,78,111,118,101,109,98,101,114,0,0,0,0,0,0,0,0,79,99,116,111,98,101,114,0,83,101,112,116,101,109,98,101,114,0,0,0,0,0,0,0,117,110,115,117,112,112,111,114,116,101,100,32,108,111,99,97,108,101,32,102,111,114,32,115,116,97,110,100,97,114,100,32,105,110,112,117,116,0,0,0,65,117,103,117,115,116,0,0,74,117,108,121,0,0,0,0,74,117,110,101,0,0,0,0,77,97,121,0,0,0,0,0,65,112,114,105,108,0,0,0,77,97,114,99,104,0,0,0,70,101,98,114,117,97,114,121,0,0,0,0,0,0,0,0,74,97,110,117,97,114,121,0,68,0,0,0,101,0,0,0,99,0,0,0,0,0,0,0,78,0,0,0,111,0,0,0,118,0,0,0,0,0,0,0,79,0,0,0,99,0,0,0,116,0,0,0,0,0,0,0,83,0,0,0,101,0,0,0,112,0,0,0,0,0,0,0,98,97,115,105,99,95,115,116,114,105,110,103,0,0,0,0,65,0,0,0,117,0,0,0,103,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,108,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,110,0,0,0,0,0,0,0,77,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,65,0,0,0,112,0,0,0,114,0,0,0,0,0,0,0,77,0,0,0,97,0,0,0,114,0,0,0,0,0,0,0,70,0,0,0,101,0,0,0,98,0,0,0,0,0,0,0,74,0,0,0,97,0,0,0,110,0,0,0,0,0,0,0,68,0,0,0,101,0,0,0,99,0,0,0,101,0,0,0,109,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,0,0,0,0,78,0,0,0,111,0,0,0,118,0,0,0,101,0,0,0,109,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,0,0,0,0,79,0,0,0,99,0,0,0,116,0,0,0,111,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,83,0,0,0,101,0,0,0,112,0,0,0,116,0,0,0,101,0,0,0,109,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,65,0,0,0,117,0,0,0,103,0,0,0,117,0,0,0,115,0,0,0,116,0,0,0,0,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,108,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,110,0,0,0,101,0,0,0,0,0,0,0,0,0,0,0,65,0,0,0,112,0,0,0,114,0,0,0,105,0,0,0,108,0,0,0,0,0,0,0,77,0,0,0,97,0,0,0,114,0,0,0,99,0,0,0,104,0,0,0,0,0,0,0,70,0,0,0,101,0,0,0,98,0,0,0,114,0,0,0,117,0,0,0,97,0,0,0,114,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,74,0,0,0,97,0,0,0,110,0,0,0,117,0,0,0,97,0,0,0,114,0,0,0,121,0,0,0,0,0,0,0,80,77,0,0,0,0,0,0,65,77,0,0,0,0,0,0,80,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,65,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,108,111,99,97,108,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,0,0,0,37,0,0,0,73,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,32,0,0,0,37,0,0,0,112,0,0,0,0,0,0,0,37,73,58,37,77,58,37,83,32,37,112,0,0,0,0,0,37,0,0,0,97,0,0,0,32,0,0,0,37,0,0,0,98,0,0,0,32,0,0,0,37,0,0,0,100,0,0,0,32,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,32,0,0,0,37,0,0,0,89,0,0,0,0,0,0,0,0,0,0,0,37,97,32,37,98,32,37,100,32,37,72,58,37,77,58,37,83,32,37,89,0,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,0,0,0,0,0,0,0,0,37,72,58,37,77,58,37,83,0,0,0,0,0,0,0,0,115,116,100,58,58,98,97,100,95,97,108,108,111,99,0,0,37,0,0,0,109,0,0,0,47,0,0,0,37,0,0,0,100,0,0,0,47,0,0,0,37,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,37,109,47,37,100,47,37,121,0,0,0,0,0,0,0,0,102,0,0,0,97,0,0,0,108,0,0,0,115,0,0,0,101,0,0,0,0,0,0,0,102,97,108,115,101,0,0,0,116,0,0,0,114,0,0,0,117,0,0,0,101,0,0,0,0,0,0,0,0,0,0,0,116,114,117,101,0,0,0,0,58,32,0,0,0,0,0,0,105,111,115,95,98,97,115,101,58,58,99,108,101,97,114,0,37,112,0,0,0,0,0,0,115,116,100,58,58,98,97,100,95,99,97,115,116,0,0,0,67,0,0,0,0,0,0,0,118,101,99,116,111,114,0,0,37,46,48,76,102,0,0,0,109,111,110,101,121,95,103,101,116,32,101,114,114,111,114,0,83,97,116,0,0,0,0,0,70,114,105,0,0,0,0,0,84,104,117,0,0,0,0,0,37,76,102,0,0,0,0,0,105,111,115,116,114,101,97,109,0,0,0,0,0,0,0,0,87,101,100,0,0,0,0,0,84,117,101,0,0,0,0,0,77,111,110,0,0,0,0,0,83,117,110,0,0,0,0,0,83,97,116,117,114,100,97,121,0,0,0,0,0,0,0,0,70,114,105,100,97,121,0,0,84,104,117,114,115,100,97,121,0,0,0,0,0,0,0,0,87,101,100,110,101,115,100,97,121,0,0,0,0,0,0,0,84,117,101,115,100,97,121,0,77,111,110,100,97,121,0,0,83,117,110,100,97,121,0,0,83,0,0,0,97,0,0,0,116,0,0,0,0,0,0,0,70,0,0,0,114,0,0,0,105,0,0,0,0,0,0,0,84,0,0,0,104,0,0,0,117,0,0,0,0,0,0,0,87,0,0,0,101,0,0,0,100,0,0,0,0,0,0,0,84,0,0,0,117,0,0,0,101,0,0,0,0,0,0,0,77,0,0,0,111,0,0,0,110,0,0,0,0,0,0,0,117,110,115,112,101,99,105,102,105,101,100,32,105,111,115,116,114,101,97,109,95,99,97,116,101,103,111,114,121,32,101,114,114,111,114,0,0,0,0,0,83,0,0,0,117,0,0,0,110,0,0,0,0,0,0,0,83,0,0,0,97,0,0,0,116,0,0,0,117,0,0,0,114,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,70,0,0,0,114,0,0,0,105,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,84,0,0,0,104,0,0,0,117,0,0,0,114,0,0,0,115,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,87,0,0,0,101,0,0,0,100,0,0,0,110,0,0,0,101,0,0,0,115,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,84,0,0,0,117,0,0,0,101,0,0,0,115,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,77,0,0,0,111,0,0,0,110,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,83,0,0,0,117,0,0,0,110,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,68,101,99,0,0,0,0,0,78,111,118,0,0,0,0,0,79,99,116,0,0,0,0,0,83,101,112,0,0,0,0,0,65,117,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,49,50,51,52,53,54,55,56,57,0,0,0,0,0,0,48,49,50,51,52,53,54,55,56,57,0,0,0,0,0,0,37,0,0,0,89,0,0,0,45,0,0,0,37,0,0,0,109,0,0,0,45,0,0,0,37,0,0,0,100,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,0,0,0,0,37,0,0,0,73,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,32,0,0,0,37,0,0,0,112,0,0,0,0,0,0,0,37,0,0,0,109,0,0,0,47,0,0,0,37,0,0,0,100,0,0,0,47,0,0,0,37,0,0,0,121,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,37,72,58,37,77,58,37,83,37,72,58,37,77,0,0,0,37,73,58,37,77,58,37,83,32,37,112,0,0,0,0,0,37,89,45,37,109,45,37,100,37,109,47,37,100,47,37,121,37,72,58,37,77,58,37,83,37,0,0,0,0,0,0,0,37,112,0,0,0,0,0,0,0,0,0,0,224,31,0,0,30,0,0,0,116,0,0,0,98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,31,0,0,196,0,0,0,164,0,0,0,36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,70,0,0,0,6,1,0,0,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,32,0,0,94,0,0,0,8,0,0,0,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,32,0,0,94,0,0,0,20,0,0,0,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,56,32,0,0,168,0,0,0,84,0,0,0,48,0,0,0,2,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,32,0,0,230,0,0,0,186,0,0,0,48,0,0,0,4,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,120,32,0,0,162,0,0,0,188,0,0,0,48,0,0,0,8,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,152,32,0,0,254,0,0,0,140,0,0,0,48,0,0,0,6,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,56,33,0,0,252,0,0,0,16,0,0,0,48,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,33,0,0,160,0,0,0,108,0,0,0,48,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,120,33,0,0,38,0,0,0,110,0,0,0,48,0,0,0,120,0,0,0,4,0,0,0,32,0,0,0,6,0,0,0,20,0,0,0,56,0,0,0,2,0,0,0,248,255,255,255,120,33,0,0,22,0,0,0,8,0,0,0,32,0,0,0,12,0,0,0,2,0,0,0,30,0,0,0,124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,33,0,0,242,0,0,0,222,0,0,0,48,0,0,0,20,0,0,0,16,0,0,0,60,0,0,0,26,0,0,0,18,0,0,0,2,0,0,0,4,0,0,0,248,255,255,255,160,33,0,0,70,0,0,0,104,0,0,0,116,0,0,0,122,0,0,0,64,0,0,0,44,0,0,0,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,200,33,0,0,78,0,0,0,190,0,0,0,48,0,0,0,48,0,0,0,40,0,0,0,8,0,0,0,38,0,0,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,216,33,0,0,58,0,0,0,64,0,0,0,48,0,0,0,42,0,0,0,84,0,0,0,12,0,0,0,54,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,232,33,0,0,246,0,0,0,2,0,0,0,48,0,0,0,24,0,0,0,30,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,34,0,0,46,0,0,0,208,0,0,0,48,0,0,0,36,0,0,0,14,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,34,0,0,210,0,0,0,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,34,0,0,28,0,0,0,138,0,0,0,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,34,0,0,6,0,0,0,174,0,0,0,48,0,0,0,8,0,0,0,6,0,0,0,12,0,0,0,4,0,0,0,10,0,0,0,4,0,0,0,2,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,34,0,0,98,0,0,0,18,0,0,0,48,0,0,0,20,0,0,0,24,0,0,0,34,0,0,0,22,0,0,0,22,0,0,0,8,0,0,0,6,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,34,0,0,40,0,0,0,24,0,0,0,48,0,0,0,48,0,0,0,46,0,0,0,38,0,0,0,40,0,0,0,30,0,0,0,44,0,0,0,36,0,0,0,54,0,0,0,52,0,0,0,50,0,0,0,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,34,0,0,52,0,0,0,4,0,0,0,48,0,0,0,76,0,0,0,70,0,0,0,64,0,0,0,66,0,0,0,58,0,0,0,68,0,0,0,62,0,0,0,28,0,0,0,74,0,0,0,72,0,0,0,42,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,34,0,0,74,0,0,0,92,0,0,0,48,0,0,0,16,0,0,0,12,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,208,34,0,0,26,0,0,0,176,0,0,0,48,0,0,0,22,0,0,0,14,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,224,34,0,0,228,0,0,0,130,0,0,0,48,0,0,0,14,0,0,0,4,0,0,0,20,0,0,0,16,0,0,0,62,0,0,0,4,0,0,0,76,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,0,0,180,0,0,0,60,0,0,0,48,0,0,0,2,0,0,0,8,0,0,0,8,0,0,0,106,0,0,0,96,0,0,0,18,0,0,0,94,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,35,0,0,180,0,0,0,132,0,0,0,48,0,0,0,16,0,0,0,6,0,0,0,2,0,0,0,126,0,0,0,46,0,0,0,12,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,35,0,0,180,0,0,0,152,0,0,0,48,0,0,0,10,0,0,0,12,0,0,0,24,0,0,0,34,0,0,0,74,0,0,0,6,0,0,0,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,35,0,0,180,0,0,0,34,0,0,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,35,0,0,56,0,0,0,156,0,0,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,35,0,0,180,0,0,0,80,0,0,0,48,0,0,0,20,0,0,0,2,0,0,0,4,0,0,0,10,0,0,0,16,0,0,0,28,0,0,0,22,0,0,0,6,0,0,0,6,0,0,0,8,0,0,0,10,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,35,0,0,4,1,0,0,36,0,0,0,48,0,0,0,2,0,0,0,4,0,0,0,18,0,0,0,34,0,0,0,8,0,0,0,6,0,0,0,26,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,208,35,0,0,66,0,0,0,218,0,0,0,78,0,0,0,2,0,0,0,14,0,0,0,32,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,224,35,0,0,180,0,0,0,86,0,0,0,48,0,0,0,10,0,0,0,12,0,0,0,24,0,0,0,34,0,0,0,74,0,0,0,6,0,0,0,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,35,0,0,180,0,0,0,238,0,0,0,48,0,0,0,10,0,0,0,12,0,0,0,24,0,0,0,34,0,0,0,74,0,0,0,6,0,0,0,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,0,0,126,0,0,0,234,0,0,0,16,0,0,0,22,0,0,0,16,0,0,0,10,0,0,0,88,0,0,0,100,0,0,0,30,0,0,0,28,0,0,0,26,0,0,0,28,0,0,0,40,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,36,0,0,10,0,0,0,118,0,0,0,58,0,0,0,38,0,0,0,28,0,0,0,6,0,0,0,50,0,0,0,86,0,0,0,18,0,0,0,6,0,0,0,10,0,0,0,24,0,0,0,16,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,36,0,0,100,0,0,0,194,0,0,0,2,0,0,0,2,0,0,0,14,0,0,0,32,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,56,36,0,0,44,0,0,0,206,0,0,0,252,255,255,255,252,255,255,255,56,36,0,0,146,0,0,0,124,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,80,36,0,0,212,0,0,0,236,0,0,0,252,255,255,255,252,255,255,255,80,36,0,0,106,0,0,0,200,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,104,36,0,0,88,0,0,0,8,1,0,0,248,255,255,255,248,255,255,255,104,36,0,0,182,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,128,36,0,0,104,0,0,0,204,0,0,0,248,255,255,255,248,255,255,255,128,36,0,0,136,0,0,0,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,152,36,0,0,202,0,0,0,184,0,0,0,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,36,0,0,248,0,0,0,226,0,0,0,4,0,0,0,22,0,0,0,16,0,0,0,10,0,0,0,58,0,0,0,100,0,0,0,30,0,0,0,28,0,0,0,26,0,0,0,28,0,0,0,40,0,0,0,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,208,36,0,0,154,0,0,0,178,0,0,0,34,0,0,0,38,0,0,0,28,0,0,0,6,0,0,0,90,0,0,0,86,0,0,0,18,0,0,0,6,0,0,0,10,0,0,0,24,0,0,0,16,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,220,0,0,0,144,0,0,0,48,0,0,0,68,0,0,0,118,0,0,0,40,0,0,0,80,0,0,0,6,0,0,0,28,0,0,0,52,0,0,0,20,0,0,0,36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,37,0,0,102,0,0,0,54,0,0,0,48,0,0,0,112,0,0,0,4,0,0,0,66,0,0,0,74,0,0,0,76,0,0,0,22,0,0,0,114,0,0,0,50,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,37,0,0,224,0,0,0,114,0,0,0,48,0,0,0,14,0,0,0,60,0,0,0,46,0,0,0,42,0,0,0,78,0,0,0,52,0,0,0,92,0,0,0,56,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,37,0,0,76,0,0,0,172,0,0,0,48,0,0,0,102,0,0,0,108,0,0,0,26,0,0,0,72,0,0,0,24,0,0,0,18,0,0,0,80,0,0,0,70,0,0,0,68,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,152,37,0,0,90,0,0,0,68,0,0,0,62,0,0,0,22,0,0,0,16,0,0,0,10,0,0,0,88,0,0,0,100,0,0,0,30,0,0,0,72,0,0,0,82,0,0,0,12,0,0,0,40,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,168,37,0,0,14,0,0,0,214,0,0,0,60,0,0,0,38,0,0,0,28,0,0,0,6,0,0,0,50,0,0,0,86,0,0,0,18,0,0,0,56,0,0,0,24,0,0,0,4,0,0,0,16,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,37,0,0,250,0,0,0,198,0,0,0,62,0,0,0,150,0,0,0,8,0,0,0,2,0,0,0,6,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,83,116,57,116,121,112,101,95,105,110,102,111,0,0,0,0,83,116,57,101,120,99,101,112,116,105,111,110,0,0,0,0,83,116,57,98,97,100,95,97,108,108,111,99,0,0,0,0,83,116,56,98,97,100,95,99,97,115,116,0,0,0,0,0,83,116,49,51,114,117,110,116,105,109,101,95,101,114,114,111,114,0,0,0,0,0,0,0,83,116,49,50,108,101,110,103,116,104,95,101,114,114,111,114,0,0,0,0,0,0,0,0,83,116,49,49,108,111,103,105,99,95,101,114,114,111,114,0,78,83,116,51,95,95,49,57,116,105,109,101,95,98,97,115,101,69,0,0,0,0,0,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,112,117,116,73,119,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,112,117,116,73,99,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,103,101,116,73,119,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,103,101,116,73,99,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,78,83,116,51,95,95,49,57,98,97,115,105,99,95,105,111,115,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,57,98,97,115,105,99,95,105,111,115,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,112,117,116,73,119,69,69,0,0,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,112,117,116,73,99,69,69,0,0,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,103,101,116,73,119,69,69,0,0,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,103,101,116,73,99,69,69,0,0,0,78,83,116,51,95,95,49,56,116,105,109,101,95,112,117,116,73,119,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,0,78,83,116,51,95,95,49,56,116,105,109,101,95,112,117,116,73,99,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,0,78,83,116,51,95,95,49,56,116,105,109,101,95,103,101,116,73,119,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,0,78,83,116,51,95,95,49,56,116,105,109,101,95,103,101,116,73,99,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,0,78,83,116,51,95,95,49,56,110,117,109,112,117,110,99,116,73,119,69,69,0,0,0,0,78,83,116,51,95,95,49,56,110,117,109,112,117,110,99,116,73,99,69,69,0,0,0,0,78,83,116,51,95,95,49,56,109,101,115,115,97,103,101,115,73,119,69,69,0,0,0,0,78,83,116,51,95,95,49,56,109,101,115,115,97,103,101,115,73,99,69,69,0,0,0,0,78,83,116,51,95,95,49,56,105,111,115,95,98,97,115,101,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,56,105,111,115,95,98,97,115,101,55,102,97,105,108,117,114,101,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,55,110,117,109,95,112,117,116,73,119,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,55,110,117,109,95,112,117,116,73,99,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,55,110,117,109,95,103,101,116,73,119,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,55,110,117,109,95,103,101,116,73,99,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,55,99,111,108,108,97,116,101,73,119,69,69,0,0,0,0,0,78,83,116,51,95,95,49,55,99,111,108,108,97,116,101,73,99,69,69,0,0,0,0,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,119,99,49,48,95,109,98,115,116,97,116,101,95,116,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,99,99,49,48,95,109,98,115,116,97,116,101,95,116,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,68,115,99,49,48,95,109,98,115,116,97,116,101,95,116,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,68,105,99,49,48,95,109,98,115,116,97,116,101,95,116,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,54,108,111,99,97,108,101,53,102,97,99,101,116,69,0,0,0,78,83,116,51,95,95,49,54,108,111,99,97,108,101,53,95,95,105,109,112,69,0,0,0,78,83,116,51,95,95,49,53,99,116,121,112,101,73,119,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,53,99,116,121,112,101,73,99,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,50,48,95,95,116,105,109,101,95,103,101,116,95,99,95,115,116,111,114,97,103,101,73,119,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,50,48,95,95,116,105,109,101,95,103,101,116,95,99,95,115,116,111,114,97,103,101,73,99,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,57,95,95,105,111,115,116,114,101,97,109,95,99,97,116,101,103,111,114,121,69,0,0,0,78,83,116,51,95,95,49,49,55,95,95,119,105,100,101,110,95,102,114,111,109,95,117,116,102,56,73,76,106,51,50,69,69,69,0,0,0,0,0,0,78,83,116,51,95,95,49,49,54,95,95,110,97,114,114,111,119,95,116,111,95,117,116,102,56,73,76,106,51,50,69,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,53,98,97,115,105,99,95,115,116,114,101,97,109,98,117,102,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,53,98,97,115,105,99,95,115,116,114,101,97,109,98,117,102,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,52,101,114,114,111,114,95,99,97,116,101,103,111,114,121,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,52,95,95,115,104,97,114,101,100,95,99,111,117,110,116,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,52,95,95,110,117,109,95,112,117,116,95,98,97,115,101,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,52,95,95,110,117,109,95,103,101,116,95,98,97,115,101,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,51,109,101,115,115,97,103,101,115,95,98,97,115,101,69,0,78,83,116,51,95,95,49,49,51,98,97,115,105,99,95,111,115,116,114,101,97,109,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,0,0,78,83,116,51,95,95,49,49,51,98,97,115,105,99,95,111,115,116,114,101,97,109,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,0,78,83,116,51,95,95,49,49,51,98,97,115,105,99,95,105,115,116,114,101,97,109,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,0,0,78,83,116,51,95,95,49,49,51,98,97,115,105,99,95,105,115,116,114,101,97,109,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,0,78,83,116,51,95,95,49,49,50,115,121,115,116,101,109,95,101,114,114,111,114,69,0,0,78,83,116,51,95,95,49,49,50,99,111,100,101,99,118,116,95,98,97,115,101,69,0,0,78,83,116,51,95,95,49,49,50,95,95,100,111,95,109,101,115,115,97,103,101,69,0,0,78,83,116,51,95,95,49,49,49,95,95,115,116,100,111,117,116,98,117,102,73,119,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,49,95,95,115,116,100,111,117,116,98,117,102,73,99,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,112,117,116,73,119,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,112,117,116,73,99,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,103,101,116,73,119,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,103,101,116,73,99,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,119,76,98,49,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,119,76,98,48,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,99,76,98,49,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,99,76,98,48,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,95,98,97,115,101,69,0,0,0,0,78,83,116,51,95,95,49,49,48,99,116,121,112,101,95,98,97,115,101,69,0,0,0,0,78,83,116,51,95,95,49,49,48,95,95,116,105,109,101,95,112,117,116,69,0,0,0,0,78,83,116,51,95,95,49,49,48,95,95,115,116,100,105,110,98,117,102,73,119,69,69,0,78,83,116,51,95,95,49,49,48,95,95,115,116,100,105,110,98,117,102,73,99,69,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,49,95,95,118,109,105,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,0,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,48,95,95,115,105,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,0,0,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,0,0,0,0,0,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,54,95,95,115,104,105,109,95,116,121,112,101,95,105,110,102,111,69,0,0,0,0,0,0,0,0,0,0,0,0,40,20,0,0,0,0,0,0,56,20,0,0,0,0,0,0,72,20,0,0,216,31,0,0,0,0,0,0,0,0,0,0,88,20,0,0,216,31,0,0,0,0,0,0,0,0,0,0,104,20,0,0,216,31,0,0,0,0,0,0,0,0,0,0,128,20,0,0,32,32,0,0,0,0,0,0,0,0,0,0,152,20,0,0,216,31,0,0,0,0,0,0,0,0,0,0,168,20,0,0,0,20,0,0,192,20,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,224,36,0,0,0,0,0,0,0,20,0,0,8,21,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,232,36,0,0,0,0,0,0,0,20,0,0,80,21,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,240,36,0,0,0,0,0,0,0,20,0,0,152,21,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,248,36,0,0,0,0,0,0,0,0,0,0,224,21,0,0,40,34,0,0,0,0,0,0,0,0,0,0,16,22,0,0,40,34,0,0,0,0,0,0,0,20,0,0,64,22,0,0,0,0,0,0,1,0,0,0,32,36,0,0,0,0,0,0,0,20,0,0,88,22,0,0,0,0,0,0,1,0,0,0,32,36,0,0,0,0,0,0,0,20,0,0,112,22,0,0,0,0,0,0,1,0,0,0,40,36,0,0,0,0,0,0,0,20,0,0,136,22,0,0,0,0,0,0,1,0,0,0,40,36,0,0,0,0,0,0,0,20,0,0,160,22,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,144,37,0,0,0,8,0,0,0,20,0,0,232,22,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,144,37,0,0,0,8,0,0,0,20,0,0,48,23,0,0,0,0,0,0,3,0,0,0,96,35,0,0,2,0,0,0,48,32,0,0,2,0,0,0,192,35,0,0,0,8,0,0,0,20,0,0,120,23,0,0,0,0,0,0,3,0,0,0,96,35,0,0,2,0,0,0,48,32,0,0,2,0,0,0,200,35,0,0,0,8,0,0,0,0,0,0,192,23,0,0,96,35,0,0,0,0,0,0,0,0,0,0,216,23,0,0,96,35,0,0,0,0,0,0,0,20,0,0,240,23,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,48,36,0,0,2,0,0,0,0,20,0,0,8,24,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,48,36,0,0,2,0,0,0,0,0,0,0,32,24,0,0,0,0,0,0,56,24,0,0,152,36,0,0,0,0,0,0,0,20,0,0,88,24,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,216,32,0,0,0,0,0,0,0,20,0,0,160,24,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,240,32,0,0,0,0,0,0,0,20,0,0,232,24,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,8,33,0,0,0,0,0,0,0,20,0,0,48,25,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,32,33,0,0,0,0,0,0,0,0,0,0,120,25,0,0,96,35,0,0,0,0,0,0,0,0,0,0,144,25,0,0,96,35,0,0,0,0,0,0,0,20,0,0,168,25,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,168,36,0,0,2,0,0,0,0,20,0,0,208,25,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,168,36,0,0,2,0,0,0,0,20,0,0,248,25,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,168,36,0,0,2,0,0,0,0,20,0,0,32,26,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,168,36,0,0,2,0,0,0,0,0,0,0,72,26,0,0,24,36,0,0,0,0,0,0,0,0,0,0,96,26,0,0,96,35,0,0,0,0,0,0,0,20,0,0,120,26,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,136,37,0,0,2,0,0,0,0,20,0,0,144,26,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,136,37,0,0,2,0,0,0,0,0,0,0,168,26,0,0,0,0,0,0,208,26,0,0,0,0,0,0,248,26,0,0,176,36,0,0,0,0,0,0,0,0,0,0,24,27,0,0,64,35,0,0,0,0,0,0,0,0,0,0,64,27,0,0,64,35,0,0,0,0,0,0,0,0,0,0,104,27,0,0,0,0,0,0,160,27,0,0,0,0,0,0,216,27,0,0,0,0,0,0,248,27,0,0,0,0,0,0,24,28,0,0,0,0,0,0,56,28,0,0,0,0,0,0,88,28,0,0,0,20,0,0,112,28,0,0,0,0,0,0,1,0,0,0,184,32,0,0,3,244,255,255,0,20,0,0,160,28,0,0,0,0,0,0,1,0,0,0,200,32,0,0,3,244,255,255,0,20,0,0,208,28,0,0,0,0,0,0,1,0,0,0,184,32,0,0,3,244,255,255,0,20,0,0,0,29,0,0,0,0,0,0,1,0,0,0,200,32,0,0,3,244,255,255,0,0,0,0,48,29,0,0,0,32,0,0,0,0,0,0,0,0,0,0,72,29,0,0,0,0,0,0,96,29,0,0,16,36,0,0,0,0,0,0,0,0,0,0,120,29,0,0,0,36,0,0,0,0,0,0,0,0,0,0,152,29,0,0,8,36,0,0,0,0,0,0,0,0,0,0,184,29,0,0,0,0,0,0,216,29,0,0,0,0,0,0,248,29,0,0,0,0,0,0,24,30,0,0,0,20,0,0,56,30,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,128,37,0,0,2,0,0,0,0,20,0,0,88,30,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,128,37,0,0,2,0,0,0,0,20,0,0,120,30,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,128,37,0,0,2,0,0,0,0,20,0,0,152,30,0,0,0,0,0,0,2,0,0,0,96,35,0,0,2,0,0,0,128,37,0,0,2,0,0,0,0,0,0,0,184,30,0,0,0,0,0,0,208,30,0,0,0,0,0,0,232,30,0,0,0,0,0,0,0,31,0,0,0,36,0,0,0,0,0,0,0,0,0,0,24,31,0,0,8,36,0,0,0,0,0,0,0,0,0,0,48,31,0,0,216,37,0,0,0,0,0,0,0,0,0,0,88,31,0,0,216,37,0,0,0,0,0,0,0,0,0,0,128,31,0,0,232,37,0,0,0,0,0,0,0,0,0,0,168,31,0,0,208,31,0,0,0,0,0,0,255,255,255,255,0,0,0,0,255,255,255,255,0,0,0,0,255,255,255,255,0,0,0,0,48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,65,66,67,68,69,70,120,88,43,45,112,80,105,73,110,78,0,0,0,0,0,0,0,0], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE)
-var tempDoublePtr = Runtime.alignMemory(allocate(12, "i8", ALLOC_STATIC), 8);
-assert(tempDoublePtr % 8 == 0);
-function copyTempFloat(ptr) { // functions, because inlining this code increases code size too much
-  HEAP8[tempDoublePtr] = HEAP8[ptr];
-  HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
-  HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
-  HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
-}
-function copyTempDouble(ptr) {
-  HEAP8[tempDoublePtr] = HEAP8[ptr];
-  HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
-  HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
-  HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
-  HEAP8[tempDoublePtr+4] = HEAP8[ptr+4];
-  HEAP8[tempDoublePtr+5] = HEAP8[ptr+5];
-  HEAP8[tempDoublePtr+6] = HEAP8[ptr+6];
-  HEAP8[tempDoublePtr+7] = HEAP8[ptr+7];
-}
-  function _atexit(func, arg) {
-      __ATEXIT__.unshift({ func: func, arg: arg });
-    }var ___cxa_atexit=_atexit;
-  function _llvm_umul_with_overflow_i32(x, y) {
-      x = x>>>0;
-      y = y>>>0;
-      return ((asm["setTempRet0"](x*y > 4294967295),(x*y)>>>0)|0);
-    }
-  function ___gxx_personality_v0() {
-    }
-  function __exit(status) {
-      // void _exit(int status);
-      // http://pubs.opengroup.org/onlinepubs/000095399/functions/exit.html
-      Module.print('exit(' + status + ') called');
-      Module['exit'](status);
-    }function _exit(status) {
-      __exit(status);
-    }function __ZSt9terminatev() {
-      _exit(-1234);
-    }
-  Module["_memcpy"] = _memcpy;var _llvm_memcpy_p0i8_p0i8_i32=_memcpy;
-  var _log=Math.log;
-  var _floor=Math.floor;
-  var ctlz_i8 = allocate([8,7,6,6,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "i8", ALLOC_STATIC); 
-  Module["_llvm_ctlz_i32"] = _llvm_ctlz_i32;
-  function __ZSt18uncaught_exceptionv() { // std::uncaught_exception()
-      return !!__ZSt18uncaught_exceptionv.uncaught_exception;
-    }function ___cxa_begin_catch(ptr) {
-      __ZSt18uncaught_exceptionv.uncaught_exception--;
-      return ptr;
-    }
-  function _llvm_eh_exception() {
-      return HEAP32[((_llvm_eh_exception.buf)>>2)];
-    }
-  function ___cxa_free_exception(ptr) {
-      try {
-        return _free(ptr);
-      } catch(e) { // XXX FIXME
-      }
-    }function ___cxa_end_catch() {
-      if (___cxa_end_catch.rethrown) {
-        ___cxa_end_catch.rethrown = false;
-        return;
-      }
-      // Clear state flag.
-      asm['setThrew'](0);
-      // Clear type.
-      HEAP32[(((_llvm_eh_exception.buf)+(4))>>2)]=0
-      // Call destructor if one is registered then clear it.
-      var ptr = HEAP32[((_llvm_eh_exception.buf)>>2)];
-      var destructor = HEAP32[(((_llvm_eh_exception.buf)+(8))>>2)];
-      if (destructor) {
-        Runtime.dynCall('vi', destructor, [ptr]);
-        HEAP32[(((_llvm_eh_exception.buf)+(8))>>2)]=0
-      }
-      // Free ptr if it isn't null.
-      if (ptr) {
-        ___cxa_free_exception(ptr);
-        HEAP32[((_llvm_eh_exception.buf)>>2)]=0
-      }
-    }function ___cxa_rethrow() {
-      ___cxa_end_catch.rethrown = true;
-      throw HEAP32[((_llvm_eh_exception.buf)>>2)] + " - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.";;
-    }
-  Module["_memmove"] = _memmove;var _llvm_memmove_p0i8_p0i8_i32=_memmove;
-  Module["_memset"] = _memset;var _llvm_memset_p0i8_i64=_memset;
-  function _llvm_lifetime_start() {}
-  function _llvm_lifetime_end() {}
-  function _pthread_mutex_lock() {}
-  function _pthread_mutex_unlock() {}
-  function ___cxa_guard_acquire(variable) {
-      if (!HEAP8[(variable)]) { // ignore SAFE_HEAP stuff because llvm mixes i64 and i8 here
-        HEAP8[(variable)]=1;
-        return 1;
-      }
-      return 0;
-    }
-  function ___cxa_guard_release() {}
-  function _pthread_cond_broadcast() {
-      return 0;
-    }
-  function _pthread_cond_wait() {
-      return 0;
-    }
-  function ___cxa_allocate_exception(size) {
-      return _malloc(size);
-    }
-  function ___cxa_is_number_type(type) {
-      var isNumber = false;
-      try { if (type == __ZTIi) isNumber = true } catch(e){}
-      try { if (type == __ZTIj) isNumber = true } catch(e){}
-      try { if (type == __ZTIl) isNumber = true } catch(e){}
-      try { if (type == __ZTIm) isNumber = true } catch(e){}
-      try { if (type == __ZTIx) isNumber = true } catch(e){}
-      try { if (type == __ZTIy) isNumber = true } catch(e){}
-      try { if (type == __ZTIf) isNumber = true } catch(e){}
-      try { if (type == __ZTId) isNumber = true } catch(e){}
-      try { if (type == __ZTIe) isNumber = true } catch(e){}
-      try { if (type == __ZTIc) isNumber = true } catch(e){}
-      try { if (type == __ZTIa) isNumber = true } catch(e){}
-      try { if (type == __ZTIh) isNumber = true } catch(e){}
-      try { if (type == __ZTIs) isNumber = true } catch(e){}
-      try { if (type == __ZTIt) isNumber = true } catch(e){}
-      return isNumber;
-    }function ___cxa_does_inherit(definiteType, possibilityType, possibility) {
-      if (possibility == 0) return false;
-      if (possibilityType == 0 || possibilityType == definiteType)
-        return true;
-      var possibility_type_info;
-      if (___cxa_is_number_type(possibilityType)) {
-        possibility_type_info = possibilityType;
-      } else {
-        var possibility_type_infoAddr = HEAP32[((possibilityType)>>2)] - 8;
-        possibility_type_info = HEAP32[((possibility_type_infoAddr)>>2)];
-      }
-      switch (possibility_type_info) {
-      case 0: // possibility is a pointer
-        // See if definite type is a pointer
-        var definite_type_infoAddr = HEAP32[((definiteType)>>2)] - 8;
-        var definite_type_info = HEAP32[((definite_type_infoAddr)>>2)];
-        if (definite_type_info == 0) {
-          // Also a pointer; compare base types of pointers
-          var defPointerBaseAddr = definiteType+8;
-          var defPointerBaseType = HEAP32[((defPointerBaseAddr)>>2)];
-          var possPointerBaseAddr = possibilityType+8;
-          var possPointerBaseType = HEAP32[((possPointerBaseAddr)>>2)];
-          return ___cxa_does_inherit(defPointerBaseType, possPointerBaseType, possibility);
-        } else
-          return false; // one pointer and one non-pointer
-      case 1: // class with no base class
-        return false;
-      case 2: // class with base class
-        var parentTypeAddr = possibilityType + 8;
-        var parentType = HEAP32[((parentTypeAddr)>>2)];
-        return ___cxa_does_inherit(definiteType, parentType, possibility);
-      default:
-        return false; // some unencountered type
-      }
-    }
-  function ___resumeException(ptr) {
-      if (HEAP32[((_llvm_eh_exception.buf)>>2)] == 0) HEAP32[((_llvm_eh_exception.buf)>>2)]=ptr;
-      throw ptr + " - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.";;
-    }function ___cxa_find_matching_catch(thrown, throwntype) {
-      if (thrown == -1) thrown = HEAP32[((_llvm_eh_exception.buf)>>2)];
-      if (throwntype == -1) throwntype = HEAP32[(((_llvm_eh_exception.buf)+(4))>>2)];
-      var typeArray = Array.prototype.slice.call(arguments, 2);
-      // If throwntype is a pointer, this means a pointer has been
-      // thrown. When a pointer is thrown, actually what's thrown
-      // is a pointer to the pointer. We'll dereference it.
-      if (throwntype != 0 && !___cxa_is_number_type(throwntype)) {
-        var throwntypeInfoAddr= HEAP32[((throwntype)>>2)] - 8;
-        var throwntypeInfo= HEAP32[((throwntypeInfoAddr)>>2)];
-        if (throwntypeInfo == 0)
-          thrown = HEAP32[((thrown)>>2)];
-      }
-      // The different catch blocks are denoted by different types.
-      // Due to inheritance, those types may not precisely match the
-      // type of the thrown object. Find one which matches, and
-      // return the type of the catch block which should be called.
-      for (var i = 0; i < typeArray.length; i++) {
-        if (___cxa_does_inherit(typeArray[i], throwntype, thrown))
-          return ((asm["setTempRet0"](typeArray[i]),thrown)|0);
-      }
-      // Shouldn't happen unless we have bogus data in typeArray
-      // or encounter a type for which emscripten doesn't have suitable
-      // typeinfo defined. Best-efforts match just in case.
-      return ((asm["setTempRet0"](throwntype),thrown)|0);
-    }function ___cxa_throw(ptr, type, destructor) {
-      if (!___cxa_throw.initialized) {
-        try {
-          HEAP32[((__ZTVN10__cxxabiv119__pointer_type_infoE)>>2)]=0; // Workaround for libcxxabi integration bug
-        } catch(e){}
-        try {
-          HEAP32[((__ZTVN10__cxxabiv117__class_type_infoE)>>2)]=1; // Workaround for libcxxabi integration bug
-        } catch(e){}
-        try {
-          HEAP32[((__ZTVN10__cxxabiv120__si_class_type_infoE)>>2)]=2; // Workaround for libcxxabi integration bug
-        } catch(e){}
-        ___cxa_throw.initialized = true;
-      }
-      HEAP32[((_llvm_eh_exception.buf)>>2)]=ptr
-      HEAP32[(((_llvm_eh_exception.buf)+(4))>>2)]=type
-      HEAP32[(((_llvm_eh_exception.buf)+(8))>>2)]=destructor
-      if (!("uncaught_exception" in __ZSt18uncaught_exceptionv)) {
-        __ZSt18uncaught_exceptionv.uncaught_exception = 1;
-      } else {
-        __ZSt18uncaught_exceptionv.uncaught_exception++;
-      }
-      throw ptr + " - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.";;
-    }
-  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:35,EIDRM:36,ECHRNG:37,EL2NSYNC:38,EL3HLT:39,EL3RST:40,ELNRNG:41,EUNATCH:42,ENOCSI:43,EL2HLT:44,EDEADLK:45,ENOLCK:46,EBADE:50,EBADR:51,EXFULL:52,ENOANO:53,EBADRQC:54,EBADSLT:55,EDEADLOCK:56,EBFONT:57,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:74,EDOTDOT:76,EBADMSG:77,ENOTUNIQ:80,EBADFD:81,EREMCHG:82,ELIBACC:83,ELIBBAD:84,ELIBSCN:85,ELIBMAX:86,ELIBEXEC:87,ENOSYS:88,ENOTEMPTY:90,ENAMETOOLONG:91,ELOOP:92,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:106,EPROTOTYPE:107,ENOTSOCK:108,ENOPROTOOPT:109,ESHUTDOWN:110,ECONNREFUSED:111,EADDRINUSE:112,ECONNABORTED:113,ENETUNREACH:114,ENETDOWN:115,ETIMEDOUT:116,EHOSTDOWN:117,EHOSTUNREACH:118,EINPROGRESS:119,EALREADY:120,EDESTADDRREQ:121,EMSGSIZE:122,EPROTONOSUPPORT:123,ESOCKTNOSUPPORT:124,EADDRNOTAVAIL:125,ENETRESET:126,EISCONN:127,ENOTCONN:128,ETOOMANYREFS:129,EUSERS:131,EDQUOT:132,ESTALE:133,ENOTSUP:134,ENOMEDIUM:135,EILSEQ:138,EOVERFLOW:139,ECANCELED:140,ENOTRECOVERABLE:141,EOWNERDEAD:142,ESTRPIPE:143};
-  var ERRNO_MESSAGES={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"No message of desired type",36:"Identifier removed",37:"Channel number out of range",38:"Level 2 not synchronized",39:"Level 3 halted",40:"Level 3 reset",41:"Link number out of range",42:"Protocol driver not attached",43:"No CSI structure available",44:"Level 2 halted",45:"Deadlock condition",46:"No record locks available",50:"Invalid exchange",51:"Invalid request descriptor",52:"Exchange full",53:"No anode",54:"Invalid request code",55:"Invalid slot",56:"File locking deadlock error",57:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",74:"Multihop attempted",76:"Cross mount point (not really error)",77:"Trying to read unreadable message",80:"Given log. name not unique",81:"f.d. invalid for this operation",82:"Remote address changed",83:"Can   access a needed shared lib",84:"Accessing a corrupted shared lib",85:".lib section in a.out corrupted",86:"Attempting to link in too many libs",87:"Attempting to exec a shared library",88:"Function not implemented",90:"Directory not empty",91:"File or path name too long",92:"Too many symbolic links",95:"Operation not supported on transport endpoint",96:"Protocol family not supported",104:"Connection reset by peer",105:"No buffer space available",106:"Address family not supported by protocol family",107:"Protocol wrong type for socket",108:"Socket operation on non-socket",109:"Protocol not available",110:"Can't send after socket shutdown",111:"Connection refused",112:"Address already in use",113:"Connection aborted",114:"Network is unreachable",115:"Network interface is not configured",116:"Connection timed out",117:"Host is down",118:"Host is unreachable",119:"Connection already in progress",120:"Socket already connected",121:"Destination address required",122:"Message too long",123:"Unknown protocol",124:"Socket type not supported",125:"Address not available",126:"Connection reset by network",127:"Socket is already connected",128:"Socket is not connected",129:"Too many references",131:"Too many users",132:"Quota exceeded",133:"Stale file handle",134:"Not supported",135:"No medium (in tape drive)",138:"Illegal byte sequence",139:"Value too large for defined data type",140:"Operation canceled",141:"State not recoverable",142:"Previous owner died",143:"Streams pipe error"};
-  var ___errno_state=0;function ___setErrNo(value) {
-      // For convenient setting and returning of errno.
-      HEAP32[((___errno_state)>>2)]=value
-      return value;
-    }
-  var VFS=undefined;
-  var PATH={splitPath:function (filename) {
-        var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
-        return splitPathRe.exec(filename).slice(1);
-      },normalizeArray:function (parts, allowAboveRoot) {
-        // if the path tries to go above the root, `up` ends up > 0
-        var up = 0;
-        for (var i = parts.length - 1; i >= 0; i--) {
-          var last = parts[i];
-          if (last === '.') {
-            parts.splice(i, 1);
-          } else if (last === '..') {
-            parts.splice(i, 1);
-            up++;
-          } else if (up) {
-            parts.splice(i, 1);
-            up--;
-          }
-        }
-        // if the path is allowed to go above the root, restore leading ..s
-        if (allowAboveRoot) {
-          for (; up--; up) {
-            parts.unshift('..');
-          }
-        }
-        return parts;
-      },normalize:function (path) {
-        var isAbsolute = path.charAt(0) === '/',
-            trailingSlash = path.substr(-1) === '/';
-        // Normalize the path
-        path = PATH.normalizeArray(path.split('/').filter(function(p) {
-          return !!p;
-        }), !isAbsolute).join('/');
-        if (!path && !isAbsolute) {
-          path = '.';
-        }
-        if (path && trailingSlash) {
-          path += '/';
-        }
-        return (isAbsolute ? '/' : '') + path;
-      },dirname:function (path) {
-        var result = PATH.splitPath(path),
-            root = result[0],
-            dir = result[1];
-        if (!root && !dir) {
-          // No dirname whatsoever
-          return '.';
-        }
-        if (dir) {
-          // It has a dirname, strip trailing slash
-          dir = dir.substr(0, dir.length - 1);
-        }
-        return root + dir;
-      },basename:function (path, ext) {
-        // EMSCRIPTEN return '/'' for '/', not an empty string
-        if (path === '/') return '/';
-        var f = PATH.splitPath(path)[2];
-        if (ext && f.substr(-1 * ext.length) === ext) {
-          f = f.substr(0, f.length - ext.length);
-        }
-        return f;
-      },join:function () {
-        var paths = Array.prototype.slice.call(arguments, 0);
-        return PATH.normalize(paths.filter(function(p, index) {
-          if (typeof p !== 'string') {
-            throw new TypeError('Arguments to path.join must be strings');
-          }
-          return p;
-        }).join('/'));
-      },resolve:function () {
-        var resolvedPath = '',
-          resolvedAbsolute = false;
-        for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
-          var path = (i >= 0) ? arguments[i] : FS.cwd();
-          // Skip empty and invalid entries
-          if (typeof path !== 'string') {
-            throw new TypeError('Arguments to path.resolve must be strings');
-          } else if (!path) {
-            continue;
-          }
-          resolvedPath = path + '/' + resolvedPath;
-          resolvedAbsolute = path.charAt(0) === '/';
-        }
-        // At this point the path should be resolved to a full absolute path, but
-        // handle relative paths to be safe (might happen when process.cwd() fails)
-        resolvedPath = PATH.normalizeArray(resolvedPath.split('/').filter(function(p) {
-          return !!p;
-        }), !resolvedAbsolute).join('/');
-        return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
-      },relative:function (from, to) {
-        from = PATH.resolve(from).substr(1);
-        to = PATH.resolve(to).substr(1);
-        function trim(arr) {
-          var start = 0;
-          for (; start < arr.length; start++) {
-            if (arr[start] !== '') break;
-          }
-          var end = arr.length - 1;
-          for (; end >= 0; end--) {
-            if (arr[end] !== '') break;
-          }
-          if (start > end) return [];
-          return arr.slice(start, end - start + 1);
-        }
-        var fromParts = trim(from.split('/'));
-        var toParts = trim(to.split('/'));
-        var length = Math.min(fromParts.length, toParts.length);
-        var samePartsLength = length;
-        for (var i = 0; i < length; i++) {
-          if (fromParts[i] !== toParts[i]) {
-            samePartsLength = i;
-            break;
-          }
-        }
-        var outputParts = [];
-        for (var i = samePartsLength; i < fromParts.length; i++) {
-          outputParts.push('..');
-        }
-        outputParts = outputParts.concat(toParts.slice(samePartsLength));
-        return outputParts.join('/');
-      }};
-  var TTY={ttys:[],register:function (dev, ops) {
-        TTY.ttys[dev] = { input: [], output: [], ops: ops };
-        FS.registerDevice(dev, TTY.stream_ops);
-      },stream_ops:{open:function (stream) {
-          // this wouldn't be required if the library wasn't eval'd at first...
-          if (!TTY.utf8) {
-            TTY.utf8 = new Runtime.UTF8Processor();
-          }
-          var tty = TTY.ttys[stream.node.rdev];
-          if (!tty) {
-            throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
-          }
-          stream.tty = tty;
-          stream.seekable = false;
-        },close:function (stream) {
-          // flush any pending line data
-          if (stream.tty.output.length) {
-            stream.tty.ops.put_char(stream.tty, 10);
-          }
-        },read:function (stream, buffer, offset, length, pos /* ignored */) {
-          if (!stream.tty || !stream.tty.ops.get_char) {
-            throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
-          }
-          var bytesRead = 0;
-          for (var i = 0; i < length; i++) {
-            var result;
-            try {
-              result = stream.tty.ops.get_char(stream.tty);
-            } catch (e) {
-              throw new FS.ErrnoError(ERRNO_CODES.EIO);
-            }
-            if (result === undefined && bytesRead === 0) {
-              throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
-            }
-            if (result === null || result === undefined) break;
-            bytesRead++;
-            buffer[offset+i] = result;
-          }
-          if (bytesRead) {
-            stream.node.timestamp = Date.now();
-          }
-          return bytesRead;
-        },write:function (stream, buffer, offset, length, pos) {
-          if (!stream.tty || !stream.tty.ops.put_char) {
-            throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
-          }
-          for (var i = 0; i < length; i++) {
-            try {
-              stream.tty.ops.put_char(stream.tty, buffer[offset+i]);
-            } catch (e) {
-              throw new FS.ErrnoError(ERRNO_CODES.EIO);
-            }
-          }
-          if (length) {
-            stream.node.timestamp = Date.now();
-          }
-          return i;
-        }},default_tty_ops:{get_char:function (tty) {
-          if (!tty.input.length) {
-            var result = null;
-            if (ENVIRONMENT_IS_NODE) {
-              if (process.stdin.destroyed) {
-                return undefined;
-              }
-              result = process.stdin.read();
-            } else if (typeof window != 'undefined' &&
-              typeof window.prompt == 'function') {
-              // Browser.
-              result = window.prompt('Input: ');  // returns null on cancel
-              if (result !== null) {
-                result += '\n';
-              }
-            } else if (typeof readline == 'function') {
-              // Command line.
-              result = readline();
-              if (result !== null) {
-                result += '\n';
-              }
-            }
-            if (!result) {
-              return null;
-            }
-            tty.input = intArrayFromString(result, true);
-          }
-          return tty.input.shift();
-        },put_char:function (tty, val) {
-          if (val === null || val === 10) {
-            Module['print'](tty.output.join(''));
-            tty.output = [];
-          } else {
-            tty.output.push(TTY.utf8.processCChar(val));
-          }
-        }},default_tty1_ops:{put_char:function (tty, val) {
-          if (val === null || val === 10) {
-            Module['printErr'](tty.output.join(''));
-            tty.output = [];
-          } else {
-            tty.output.push(TTY.utf8.processCChar(val));
-          }
-        }}};
-  var MEMFS={mount:function (mount) {
-        return MEMFS.create_node(null, '/', 0040000 | 0777, 0);
-      },create_node:function (parent, name, mode, dev) {
-        if (FS.isBlkdev(mode) || FS.isFIFO(mode)) {
-          // no supported
-          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
-        }
-        var node = FS.createNode(parent, name, mode, dev);
-        if (FS.isDir(node.mode)) {
-          node.node_ops = {
-            getattr: MEMFS.node_ops.getattr,
-            setattr: MEMFS.node_ops.setattr,
-            lookup: MEMFS.node_ops.lookup,
-            mknod: MEMFS.node_ops.mknod,
-            mknod: MEMFS.node_ops.mknod,
-            rename: MEMFS.node_ops.rename,
-            unlink: MEMFS.node_ops.unlink,
-            rmdir: MEMFS.node_ops.rmdir,
-            readdir: MEMFS.node_ops.readdir,
-            symlink: MEMFS.node_ops.symlink
-          };
-          node.stream_ops = {
-            llseek: MEMFS.stream_ops.llseek
-          };
-          node.contents = {};
-        } else if (FS.isFile(node.mode)) {
-          node.node_ops = {
-            getattr: MEMFS.node_ops.getattr,
-            setattr: MEMFS.node_ops.setattr
-          };
-          node.stream_ops = {
-            llseek: MEMFS.stream_ops.llseek,
-            read: MEMFS.stream_ops.read,
-            write: MEMFS.stream_ops.write,
-            allocate: MEMFS.stream_ops.allocate,
-            mmap: MEMFS.stream_ops.mmap
-          };
-          node.contents = [];
-        } else if (FS.isLink(node.mode)) {
-          node.node_ops = {
-            getattr: MEMFS.node_ops.getattr,
-            setattr: MEMFS.node_ops.setattr,
-            readlink: MEMFS.node_ops.readlink
-          };
-          node.stream_ops = {};
-        } else if (FS.isChrdev(node.mode)) {
-          node.node_ops = {
-            getattr: MEMFS.node_ops.getattr,
-            setattr: MEMFS.node_ops.setattr
-          };
-          node.stream_ops = FS.chrdev_stream_ops;
-        }
-        node.timestamp = Date.now();
-        // add the new node to the parent
-        if (parent) {
-          parent.contents[name] = node;
-        }
-        return node;
-      },node_ops:{getattr:function (node) {
-          var attr = {};
-          // device numbers reuse inode numbers.
-          attr.dev = FS.isChrdev(node.mode) ? node.id : 1;
-          attr.ino = node.id;
-          attr.mode = node.mode;
-          attr.nlink = 1;
-          attr.uid = 0;
-          attr.gid = 0;
-          attr.rdev = node.rdev;
-          if (FS.isDir(node.mode)) {
-            attr.size = 4096;
-          } else if (FS.isFile(node.mode)) {
-            attr.size = node.contents.length;
-          } else if (FS.isLink(node.mode)) {
-            attr.size = node.link.length;
-          } else {
-            attr.size = 0;
-          }
-          attr.atime = new Date(node.timestamp);
-          attr.mtime = new Date(node.timestamp);
-          attr.ctime = new Date(node.timestamp);
-          // NOTE: In our implementation, st_blocks = Math.ceil(st_size/st_blksize),
-          //       but this is not required by the standard.
-          attr.blksize = 4096;
-          attr.blocks = Math.ceil(attr.size / attr.blksize);
-          return attr;
-        },setattr:function (node, attr) {
-          if (attr.mode !== undefined) {
-            node.mode = attr.mode;
-          }
-          if (attr.timestamp !== undefined) {
-            node.timestamp = attr.timestamp;
-          }
-          if (attr.size !== undefined) {
-            var contents = node.contents;
-            if (attr.size < contents.length) contents.length = attr.size;
-            else while (attr.size > contents.length) contents.push(0);
-          }
-        },lookup:function (parent, name) {
-          throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
-        },mknod:function (parent, name, mode, dev) {
-          return MEMFS.create_node(parent, name, mode, dev);
-        },rename:function (old_node, new_dir, new_name) {
-          // if we're overwriting a directory at new_name, make sure it's empty.
-          if (FS.isDir(old_node.mode)) {
-            var new_node;
-            try {
-              new_node = FS.lookupNode(new_dir, new_name);
-            } catch (e) {
-            }
-            if (new_node) {
-              for (var i in new_node.contents) {
-                throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
-              }
-            }
-          }
-          // do the internal rewiring
-          delete old_node.parent.contents[old_node.name];
-          old_node.name = new_name;
-          new_dir.contents[new_name] = old_node;
-        },unlink:function (parent, name) {
-          delete parent.contents[name];
-        },rmdir:function (parent, name) {
-          var node = FS.lookupNode(parent, name);
-          for (var i in node.contents) {
-            throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
-          }
-          delete parent.contents[name];
-        },readdir:function (node) {
-          var entries = ['.', '..']
-          for (var key in node.contents) {
-            if (!node.contents.hasOwnProperty(key)) {
-              continue;
-            }
-            entries.push(key);
-          }
-          return entries;
-        },symlink:function (parent, newname, oldpath) {
-          var node = MEMFS.create_node(parent, newname, 0777 | 0120000, 0);
-          node.link = oldpath;
-          return node;
-        },readlink:function (node) {
-          if (!FS.isLink(node.mode)) {
-            throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
-          }
-          return node.link;
-        }},stream_ops:{read:function (stream, buffer, offset, length, position) {
-          var contents = stream.node.contents;
-          var size = Math.min(contents.length - position, length);
-          if (contents.subarray) { // typed array
-            buffer.set(contents.subarray(position, position + size), offset);
-          } else
-          {
-            for (var i = 0; i < size; i++) {
-              buffer[offset + i] = contents[position + i];
-            }
-          }
-          return size;
-        },write:function (stream, buffer, offset, length, position) {
-          var contents = stream.node.contents;
-          while (contents.length < position) contents.push(0);
-          for (var i = 0; i < length; i++) {
-            contents[position + i] = buffer[offset + i];
-          }
-          stream.node.timestamp = Date.now();
-          return length;
-        },llseek:function (stream, offset, whence) {
-          var position = offset;
-          if (whence === 1) {  // SEEK_CUR.
-            position += stream.position;
-          } else if (whence === 2) {  // SEEK_END.
-            if (FS.isFile(stream.node.mode)) {
-              position += stream.node.contents.length;
-            }
-          }
-          if (position < 0) {
-            throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
-          }
-          stream.ungotten = [];
-          stream.position = position;
-          return position;
-        },allocate:function (stream, offset, length) {
-          var contents = stream.node.contents;
-          var limit = offset + length;
-          while (limit > contents.length) contents.push(0);
-        },mmap:function (stream, buffer, offset, length, position, prot, flags) {
-          if (!FS.isFile(stream.node.mode)) {
-            throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
-          }
-          var ptr;
-          var allocated;
-          var contents = stream.node.contents;
-          // Only make a new copy when MAP_PRIVATE is specified.
-          if (!(flags & 0x02)) {
-            // We can't emulate MAP_SHARED when the file is not backed by the buffer
-            // we're mapping to (e.g. the HEAP buffer).
-            assert(contents.buffer === buffer || contents.buffer === buffer.buffer);
-            allocated = false;
-            ptr = contents.byteOffset;
-          } else {
-            // Try to avoid unnecessary slices.
-            if (position > 0 || position + length < contents.length) {
-              if (contents.subarray) {
-                contents = contents.subarray(position, position + length);
-              } else {
-                contents = Array.prototype.slice.call(contents, position, position + length);
-              }
-            }
-            allocated = true;
-            ptr = _malloc(length);
-            if (!ptr) {
-              throw new FS.ErrnoError(ERRNO_CODES.ENOMEM);
-            }
-            buffer.set(contents, ptr);
-          }
-          return { ptr: ptr, allocated: allocated };
-        }}};
-  var _stdin=allocate(1, "i32*", ALLOC_STATIC);
-  var _stdout=allocate(1, "i32*", ALLOC_STATIC);
-  var _stderr=allocate(1, "i32*", ALLOC_STATIC);
-  function _fflush(stream) {
-      // int fflush(FILE *stream);
-      // http://pubs.opengroup.org/onlinepubs/000095399/functions/fflush.html
-      // we don't currently perform any user-space buffering of data
-    }var FS={root:null,nodes:[null],devices:[null],streams:[null],nextInode:1,name_table:null,currentPath:"/",initialized:false,ignorePermissions:true,ErrnoError:function ErrnoError(errno) {
-          this.errno = errno;
-          for (var key in ERRNO_CODES) {
-            if (ERRNO_CODES[key] === errno) {
-              this.code = key;
-              break;
-            }
-          }
-          this.message = ERRNO_MESSAGES[errno];
-        },handleFSError:function (e) {
-        if (!(e instanceof FS.ErrnoError)) throw e + ' : ' + new Error().stack;
-        return ___setErrNo(e.errno);
-      },hashName:function (parentid, name) {
-        var hash = 0;
-        for (var i = 0; i < name.length; i++) {
-          hash = ((hash << 5) - hash + name.charCodeAt(i)) | 0;
-        }
-        return ((parentid + hash) >>> 0) % FS.name_table.length;
-      },hashAddNode:function (node) {
-        var hash = FS.hashName(node.parent.id, node.name);
-        node.name_next = FS.name_table[hash];
-        FS.name_table[hash] = node;
-      },hashRemoveNode:function (node) {
-        var hash = FS.hashName(node.parent.id, node.name);
-        if (FS.name_table[hash] === node) {
-          FS.name_table[hash] = node.name_next;
-        } else {
-          var current = FS.name_table[hash];
-          while (current) {
-            if (current.name_next === node) {
-              current.name_next = node.name_next;
-              break;
-            }
-            current = current.name_next;
-          }
-        }
-      },lookupNode:function (parent, name) {
-        var err = FS.mayLookup(parent);
-        if (err) {
-          throw new FS.ErrnoError(err);
-        }
-        var hash = FS.hashName(parent.id, name);
-        for (var node = FS.name_table[hash]; node; node = node.name_next) {
-          if (node.parent.id === parent.id && node.name === name) {
-            return node;
-          }
-        }
-        // if we failed to find it in the cache, call into the VFS
-        return FS.lookup(parent, name);
-      },createNode:function (parent, name, mode, rdev) {
-        var node = {
-          id: FS.nextInode++,
-          name: name,
-          mode: mode,
-          node_ops: {},
-          stream_ops: {},
-          rdev: rdev,
-          parent: null,
-          mount: null
-        };
-        if (!parent) {
-          parent = node;  // root node sets parent to itself
-        }
-        node.parent = parent;
-        node.mount = parent.mount;
-        // compatibility
-        var readMode = 292 | 73;
-        var writeMode = 146;
-        // NOTE we must use Object.defineProperties instead of individual calls to
-        // Object.defineProperty in order to make closure compiler happy
-        Object.defineProperties(node, {
-          read: {
-            get: function() { return (node.mode & readMode) === readMode; },
-            set: function(val) { val ? node.mode |= readMode : node.mode &= ~readMode; }
-          },
-          write: {
-            get: function() { return (node.mode & writeMode) === writeMode; },
-            set: function(val) { val ? node.mode |= writeMode : node.mode &= ~writeMode; }
-          },
-          isFolder: {
-            get: function() { return FS.isDir(node.mode); },
-          },
-          isDevice: {
-            get: function() { return FS.isChrdev(node.mode); },
-          },
-        });
-        FS.hashAddNode(node);
-        return node;
-      },destroyNode:function (node) {
-        FS.hashRemoveNode(node);
-      },isRoot:function (node) {
-        return node === node.parent;
-      },isMountpoint:function (node) {
-        return node.mounted;
-      },isFile:function (mode) {
-        return (mode & 0170000) === 0100000;
-      },isDir:function (mode) {
-        return (mode & 0170000) === 0040000;
-      },isLink:function (mode) {
-        return (mode & 0170000) === 0120000;
-      },isChrdev:function (mode) {
-        return (mode & 0170000) === 0020000;
-      },isBlkdev:function (mode) {
-        return (mode & 0170000) === 0060000;
-      },isFIFO:function (mode) {
-        return (mode & 0170000) === 0010000;
-      },cwd:function () {
-        return FS.currentPath;
-      },lookupPath:function (path, opts) {
-        path = PATH.resolve(FS.currentPath, path);
-        opts = opts || { recurse_count: 0 };
-        if (opts.recurse_count > 8) {  // max recursive lookup of 8
-          throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
-        }
-        // split the path
-        var parts = PATH.normalizeArray(path.split('/').filter(function(p) {
-          return !!p;
-        }), false);
-        // start at the root
-        var current = FS.root;
-        var current_path = '/';
-        for (var i = 0; i < parts.length; i++) {
-          var islast = (i === parts.length-1);
-          if (islast && opts.parent) {
-            // stop resolving
-            break;
-          }
-          current = FS.lookupNode(current, parts[i]);
-          current_path = PATH.join(current_path, parts[i]);
-          // jump to the mount's root node if this is a mountpoint
-          if (FS.isMountpoint(current)) {
-            current = current.mount.root;
-          }
-          // follow symlinks
-          // by default, lookupPath will not follow a symlink if it is the final path component.
-          // setting opts.follow = true will override this behavior.
-          if (!islast || opts.follow) {
-            var count = 0;
-            while (FS.isLink(current.mode)) {
-              var link = FS.readlink(current_path);
-              current_path = PATH.resolve(PATH.dirname(current_path), link);
-              var lookup = FS.lookupPath(current_path, { recurse_count: opts.recurse_count });
-              current = lookup.node;
-              if (count++ > 40) {  // limit max consecutive symlinks to 40 (SYMLOOP_MAX).
-                throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
-              }
-            }
-          }
-        }
-        return { path: current_path, node: current };
-      },getPath:function (node) {
-        var path;
-        while (true) {
-          if (FS.isRoot(node)) {
-            return path ? PATH.join(node.mount.mountpoint, path) : node.mount.mountpoint;
-          }
-          path = path ? PATH.join(node.name, path) : node.name;
-          node = node.parent;
-        }
-      },flagModes:{"r":0,"rs":8192,"r+":2,"w":1537,"wx":3585,"xw":3585,"w+":1538,"wx+":3586,"xw+":3586,"a":521,"ax":2569,"xa":2569,"a+":522,"ax+":2570,"xa+":2570},modeStringToFlags:function (str) {
-        var flags = FS.flagModes[str];
-        if (typeof flags === 'undefined') {
-          throw new Error('Unknown file open mode: ' + str);
-        }
-        return flags;
-      },flagsToPermissionString:function (flag) {
-        var accmode = flag & 3;
-        var perms = ['r', 'w', 'rw'][accmode];
-        if ((flag & 1024)) {
-          perms += 'w';
-        }
-        return perms;
-      },nodePermissions:function (node, perms) {
-        if (FS.ignorePermissions) {
-          return 0;
-        }
-        // return 0 if any user, group or owner bits are set.
-        if (perms.indexOf('r') !== -1 && !(node.mode & 292)) {
-          return ERRNO_CODES.EACCES;
-        } else if (perms.indexOf('w') !== -1 && !(node.mode & 146)) {
-          return ERRNO_CODES.EACCES;
-        } else if (perms.indexOf('x') !== -1 && !(node.mode & 73)) {
-          return ERRNO_CODES.EACCES;
-        }
-        return 0;
-      },mayLookup:function (dir) {
-        return FS.nodePermissions(dir, 'x');
-      },mayMknod:function (mode) {
-        switch (mode & 0170000) {
-          case 0100000:
-          case 0020000:
-          case 0060000:
-          case 0010000:
-          case 0140000:
-            return 0;
-          default:
-            return ERRNO_CODES.EINVAL;
-        }
-      },mayCreate:function (dir, name) {
-        try {
-          var node = FS.lookupNode(dir, name);
-          return ERRNO_CODES.EEXIST;
-        } catch (e) {
-        }
-        return FS.nodePermissions(dir, 'wx');
-      },mayDelete:function (dir, name, isdir) {
-        var node;
-        try {
-          node = FS.lookupNode(dir, name);
-        } catch (e) {
-          return e.errno;
-        }
-        var err = FS.nodePermissions(dir, 'wx');
-        if (err) {
-          return err;
-        }
-        if (isdir) {
-          if (!FS.isDir(node.mode)) {
-            return ERRNO_CODES.ENOTDIR;
-          }
-          if (FS.isRoot(node) || FS.getPath(node) === FS.currentPath) {
-            return ERRNO_CODES.EBUSY;
-          }
-        } else {
-          if (FS.isDir(node.mode)) {
-            return ERRNO_CODES.EISDIR;
-          }
-        }
-        return 0;
-      },mayOpen:function (node, flags) {
-        if (!node) {
-          return ERRNO_CODES.ENOENT;
-        }
-        if (FS.isLink(node.mode)) {
-          return ERRNO_CODES.ELOOP;
-        } else if (FS.isDir(node.mode)) {
-          if ((flags & 3) !== 0 ||  // opening for write
-              (flags & 1024)) {
-            return ERRNO_CODES.EISDIR;
-          }
-        }
-        return FS.nodePermissions(node, FS.flagsToPermissionString(flags));
-      },chrdev_stream_ops:{open:function (stream) {
-          var device = FS.getDevice(stream.node.rdev);
-          // override node's stream ops with the device's
-          stream.stream_ops = device.stream_ops;
-          // forward the open call
-          if (stream.stream_ops.open) {
-            stream.stream_ops.open(stream);
-          }
-        },llseek:function () {
-          throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
-        }},major:function (dev) {
-        return ((dev) >> 8);
-      },minor:function (dev) {
-        return ((dev) & 0xff);
-      },makedev:function (ma, mi) {
-        return ((ma) << 8 | (mi));
-      },registerDevice:function (dev, ops) {
-        FS.devices[dev] = { stream_ops: ops };
-      },getDevice:function (dev) {
-        return FS.devices[dev];
-      },MAX_OPEN_FDS:4096,nextfd:function (fd_start, fd_end) {
-        fd_start = fd_start || 1;
-        fd_end = fd_end || FS.MAX_OPEN_FDS;
-        for (var fd = fd_start; fd <= fd_end; fd++) {
-          if (!FS.streams[fd]) {
-            return fd;
-          }
-        }
-        throw new FS.ErrnoError(ERRNO_CODES.EMFILE);
-      },getStream:function (fd) {
-        return FS.streams[fd];
-      },createStream:function (stream, fd_start, fd_end) {
-        var fd = FS.nextfd(fd_start, fd_end);
-        stream.fd = fd;
-        // compatibility
-        Object.defineProperties(stream, {
-          object: {
-            get: function() { return stream.node; },
-            set: function(val) { stream.node = val; }
-          },
-          isRead: {
-            get: function() { return (stream.flags & 3) !== 1; }
-          },
-          isWrite: {
-            get: function() { return (stream.flags & 3) !== 0; }
-          },
-          isAppend: {
-            get: function() { return (stream.flags & 8); }
-          }
-        });
-        FS.streams[fd] = stream;
-        return stream;
-      },closeStream:function (fd) {
-        FS.streams[fd] = null;
-      },getMode:function (canRead, canWrite) {
-        var mode = 0;
-        if (canRead) mode |= 292 | 73;
-        if (canWrite) mode |= 146;
-        return mode;
-      },joinPath:function (parts, forceRelative) {
-        var path = PATH.join.apply(null, parts);
-        if (forceRelative && path[0] == '/') path = path.substr(1);
-        return path;
-      },absolutePath:function (relative, base) {
-        return PATH.resolve(base, relative);
-      },standardizePath:function (path) {
-        return PATH.normalize(path);
-      },findObject:function (path, dontResolveLastLink) {
-        var ret = FS.analyzePath(path, dontResolveLastLink);
-        if (ret.exists) {
-          return ret.object;
-        } else {
-          ___setErrNo(ret.error);
-          return null;
-        }
-      },analyzePath:function (path, dontResolveLastLink) {
-        // operate from within the context of the symlink's target
-        try {
-          var lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
-          path = lookup.path;
-        } catch (e) {
-        }
-        var ret = {
-          isRoot: false, exists: false, error: 0, name: null, path: null, object: null,
-          parentExists: false, parentPath: null, parentObject: null
-        };
-        try {
-          var lookup = FS.lookupPath(path, { parent: true });
-          ret.parentExists = true;
-          ret.parentPath = lookup.path;
-          ret.parentObject = lookup.node;
-          ret.name = PATH.basename(path);
-          lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
-          ret.exists = true;
-          ret.path = lookup.path;
-          ret.object = lookup.node;
-          ret.name = lookup.node.name;
-          ret.isRoot = lookup.path === '/';
-        } catch (e) {
-          ret.error = e.errno;
-        };
-        return ret;
-      },createFolder:function (parent, name, canRead, canWrite) {
-        var path = PATH.join(typeof parent === 'string' ? parent : FS.getPath(parent), name);
-        var mode = FS.getMode(canRead, canWrite);
-        return FS.mkdir(path, mode);
-      },createPath:function (parent, path, canRead, canWrite) {
-        parent = typeof parent === 'string' ? parent : FS.getPath(parent);
-        var parts = path.split('/').reverse();
-        while (parts.length) {
-          var part = parts.pop();
-          if (!part) continue;
-          var current = PATH.join(parent, part);
-          try {
-            FS.mkdir(current, 0777);
-          } catch (e) {
-            // ignore EEXIST
-          }
-          parent = current;
-        }
-        return current;
-      },createFile:function (parent, name, properties, canRead, canWrite) {
-        var path = PATH.join(typeof parent === 'string' ? parent : FS.getPath(parent), name);
-        var mode = FS.getMode(canRead, canWrite);
-        return FS.create(path, mode);
-      },createDataFile:function (parent, name, data, canRead, canWrite) {
-        var path = PATH.join(typeof parent === 'string' ? parent : FS.getPath(parent), name);
-        var mode = FS.getMode(canRead, canWrite);
-        var node = FS.create(path, mode);
-        if (data) {
-          if (typeof data === 'string') {
-            var arr = new Array(data.length);
-            for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i);
-            data = arr;
-          }
-          // make sure we can write to the file
-          FS.chmod(path, mode | 146);
-          var stream = FS.open(path, 'w');
-          FS.write(stream, data, 0, data.length, 0);
-          FS.close(stream);
-          FS.chmod(path, mode);
-        }
-        return node;
-      },createDevice:function (parent, name, input, output) {
-        var path = PATH.join(typeof parent === 'string' ? parent : FS.getPath(parent), name);
-        var mode = input && output ? 0777 : (input ? 0333 : 0555);
-        if (!FS.createDevice.major) FS.createDevice.major = 64;
-        var dev = FS.makedev(FS.createDevice.major++, 0);
-        // Create a fake device that a set of stream ops to emulate
-        // the old behavior.
-        FS.registerDevice(dev, {
-          open: function(stream) {
-            stream.seekable = false;
-          },
-          close: function(stream) {
-            // flush any pending line data
-            if (output && output.buffer && output.buffer.length) {
-              output(10);
-            }
-          },
-          read: function(stream, buffer, offset, length, pos /* ignored */) {
-            var bytesRead = 0;
-            for (var i = 0; i < length; i++) {
-              var result;
-              try {
-                result = input();
-              } catch (e) {
-                throw new FS.ErrnoError(ERRNO_CODES.EIO);
-              }
-              if (result === undefined && bytesRead === 0) {
-                throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
-              }
-              if (result === null || result === undefined) break;
-              bytesRead++;
-              buffer[offset+i] = result;
-            }
-            if (bytesRead) {
-              stream.node.timestamp = Date.now();
-            }
-            return bytesRead;
-          },
-          write: function(stream, buffer, offset, length, pos) {
-            for (var i = 0; i < length; i++) {
-              try {
-                output(buffer[offset+i]);
-              } catch (e) {
-                throw new FS.ErrnoError(ERRNO_CODES.EIO);
-              }
-            }
-            if (length) {
-              stream.node.timestamp = Date.now();
-            }
-            return i;
-          }
-        });
-        return FS.mkdev(path, mode, dev);
-      },createLink:function (parent, name, target, canRead, canWrite) {
-        var path = PATH.join(typeof parent === 'string' ? parent : FS.getPath(parent), name);
-        return FS.symlink(target, path);
-      },forceLoadFile:function (obj) {
-        if (obj.isDevice || obj.isFolder || obj.link || obj.contents) return true;
-        var success = true;
-        if (typeof XMLHttpRequest !== 'undefined') {
-          throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");
-        } else if (Module['read']) {
-          // Command-line.
-          try {
-            // WARNING: Can't read binary files in V8's d8 or tracemonkey's js, as
-            //          read() will try to parse UTF8.
-            obj.contents = intArrayFromString(Module['read'](obj.url), true);
-          } catch (e) {
-            success = false;
-          }
-        } else {
-          throw new Error('Cannot load without read() or XMLHttpRequest.');
-        }
-        if (!success) ___setErrNo(ERRNO_CODES.EIO);
-        return success;
-      },createLazyFile:function (parent, name, url, canRead, canWrite) {
-        if (typeof XMLHttpRequest !== 'undefined') {
-          if (!ENVIRONMENT_IS_WORKER) throw 'Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc';
-          // Lazy chunked Uint8Array (implements get and length from Uint8Array). Actual getting is abstracted away for eventual reuse.
-          var LazyUint8Array = function() {
-            this.lengthKnown = false;
-            this.chunks = []; // Loaded chunks. Index is the chunk number
-          }
-          LazyUint8Array.prototype.get = function(idx) {
-            if (idx > this.length-1 || idx < 0) {
-              return undefined;
-            }
-            var chunkOffset = idx % this.chunkSize;
-            var chunkNum = Math.floor(idx / this.chunkSize);
-            return this.getter(chunkNum)[chunkOffset];
-          }
-          LazyUint8Array.prototype.setDataGetter = function(getter) {
-            this.getter = getter;
-          }
-          LazyUint8Array.prototype.cacheLength = function() {
-              // Find length
-              var xhr = new XMLHttpRequest();
-              xhr.open('HEAD', url, false);
-              xhr.send(null);
-              if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
-              var datalength = Number(xhr.getResponseHeader("Content-length"));
-              var header;
-              var hasByteServing = (header = xhr.getResponseHeader("Accept-Ranges")) && header === "bytes";
-              var chunkSize = 1024*1024; // Chunk size in bytes
-              if (!hasByteServing) chunkSize = datalength;
-              // Function to get a range from the remote URL.
-              var doXHR = (function(from, to) {
-                if (from > to) throw new Error("invalid range (" + from + ", " + to + ") or no bytes requested!");
-                if (to > datalength-1) throw new Error("only " + datalength + " bytes available! programmer error!");
-                // TODO: Use mozResponseArrayBuffer, responseStream, etc. if available.
-                var xhr = new XMLHttpRequest();
-                xhr.open('GET', url, false);
-                if (datalength !== chunkSize) xhr.setRequestHeader("Range", "bytes=" + from + "-" + to);
-                // Some hints to the browser that we want binary data.
-                if (typeof Uint8Array != 'undefined') xhr.responseType = 'arraybuffer';
-                if (xhr.overrideMimeType) {
-                  xhr.overrideMimeType('text/plain; charset=x-user-defined');
-                }
-                xhr.send(null);
-                if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
-                if (xhr.response !== undefined) {
-                  return new Uint8Array(xhr.response || []);
-                } else {
-                  return intArrayFromString(xhr.responseText || '', true);
-                }
-              });
-              var lazyArray = this;
-              lazyArray.setDataGetter(function(chunkNum) {
-                var start = chunkNum * chunkSize;
-                var end = (chunkNum+1) * chunkSize - 1; // including this byte
-                end = Math.min(end, datalength-1); // if datalength-1 is selected, this is the last block
-                if (typeof(lazyArray.chunks[chunkNum]) === "undefined") {
-                  lazyArray.chunks[chunkNum] = doXHR(start, end);
-                }
-                if (typeof(lazyArray.chunks[chunkNum]) === "undefined") throw new Error("doXHR failed!");
-                return lazyArray.chunks[chunkNum];
-              });
-              this._length = datalength;
-              this._chunkSize = chunkSize;
-              this.lengthKnown = true;
-          }
-          var lazyArray = new LazyUint8Array();
-          Object.defineProperty(lazyArray, "length", {
-              get: function() {
-                  if(!this.lengthKnown) {
-                      this.cacheLength();
-                  }
-                  return this._length;
-              }
-          });
-          Object.defineProperty(lazyArray, "chunkSize", {
-              get: function() {
-                  if(!this.lengthKnown) {
-                      this.cacheLength();
-                  }
-                  return this._chunkSize;
-              }
-          });
-          var properties = { isDevice: false, contents: lazyArray };
-        } else {
-          var properties = { isDevice: false, url: url };
-        }
-        var node = FS.createFile(parent, name, properties, canRead, canWrite);
-        // This is a total hack, but I want to get this lazy file code out of the
-        // core of MEMFS. If we want to keep this lazy file concept I feel it should
-        // be its own thin LAZYFS proxying calls to MEMFS.
-        if (properties.contents) {
-          node.contents = properties.contents;
-        } else if (properties.url) {
-          node.contents = null;
-          node.url = properties.url;
-        }
-        // override each stream op with one that tries to force load the lazy file first
-        var stream_ops = {};
-        var keys = Object.keys(node.stream_ops);
-        keys.forEach(function(key) {
-          var fn = node.stream_ops[key];
-          stream_ops[key] = function() {
-            if (!FS.forceLoadFile(node)) {
-              throw new FS.ErrnoError(ERRNO_CODES.EIO);
-            }
-            return fn.apply(null, arguments);
-          };
-        });
-        // use a custom read function
-        stream_ops.read = function(stream, buffer, offset, length, position) {
-          if (!FS.forceLoadFile(node)) {
-            throw new FS.ErrnoError(ERRNO_CODES.EIO);
-          }
-          var contents = stream.node.contents;
-          var size = Math.min(contents.length - position, length);
-          if (contents.slice) { // normal array
-            for (var i = 0; i < size; i++) {
-              buffer[offset + i] = contents[position + i];
-            }
-          } else {
-            for (var i = 0; i < size; i++) { // LazyUint8Array from sync binary XHR
-              buffer[offset + i] = contents.get(position + i);
-            }
-          }
-          return size;
-        };
-        node.stream_ops = stream_ops;
-        return node;
-      },createPreloadedFile:function (parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile) {
-        Browser.init();
-        // TODO we should allow people to just pass in a complete filename instead
-        // of parent and name being that we just join them anyways
-        var fullname = PATH.resolve(PATH.join(parent, name));
-        function processData(byteArray) {
-          function finish(byteArray) {
-            if (!dontCreateFile) {
-              FS.createDataFile(parent, name, byteArray, canRead, canWrite);
-            }
-            if (onload) onload();
-            removeRunDependency('cp ' + fullname);
-          }
-          var handled = false;
-          Module['preloadPlugins'].forEach(function(plugin) {
-            if (handled) return;
-            if (plugin['canHandle'](fullname)) {
-              plugin['handle'](byteArray, fullname, finish, function() {
-                if (onerror) onerror();
-                removeRunDependency('cp ' + fullname);
-              });
-              handled = true;
-            }
-          });
-          if (!handled) finish(byteArray);
-        }
-        addRunDependency('cp ' + fullname);
-        if (typeof url == 'string') {
-          Browser.asyncLoad(url, function(byteArray) {
-            processData(byteArray);
-          }, onerror);
-        } else {
-          processData(url);
-        }
-      },createDefaultDirectories:function () {
-        FS.mkdir('/tmp', 0777);
-      },createDefaultDevices:function () {
-        // create /dev
-        FS.mkdir('/dev', 0777);
-        // setup /dev/null
-        FS.registerDevice(FS.makedev(1, 3), {
-          read: function() { return 0; },
-          write: function() { return 0; }
-        });
-        FS.mkdev('/dev/null', 0666, FS.makedev(1, 3));
-        // setup /dev/tty and /dev/tty1
-        // stderr needs to print output using Module['printErr']
-        // so we register a second tty just for it.
-        TTY.register(FS.makedev(5, 0), TTY.default_tty_ops);
-        TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops);
-        FS.mkdev('/dev/tty', 0666, FS.makedev(5, 0));
-        FS.mkdev('/dev/tty1', 0666, FS.makedev(6, 0));
-        // we're not going to emulate the actual shm device,
-        // just create the tmp dirs that reside in it commonly
-        FS.mkdir('/dev/shm', 0777);
-        FS.mkdir('/dev/shm/tmp', 0777);
-      },createStandardStreams:function () {
-        // TODO deprecate the old functionality of a single
-        // input / output callback and that utilizes FS.createDevice
-        // and instead require a unique set of stream ops
-        // by default, we symlink the standard streams to the
-        // default tty devices. however, if the standard streams
-        // have been overwritten we create a unique device for
-        // them instead.
-        if (Module['stdin']) {
-          FS.createDevice('/dev', 'stdin', Module['stdin']);
-        } else {
-          FS.symlink('/dev/tty', '/dev/stdin');
-        }
-        if (Module['stdout']) {
-          FS.createDevice('/dev', 'stdout', null, Module['stdout']);
-        } else {
-          FS.symlink('/dev/tty', '/dev/stdout');
-        }
-        if (Module['stderr']) {
-          FS.createDevice('/dev', 'stderr', null, Module['stderr']);
-        } else {
-          FS.symlink('/dev/tty1', '/dev/stderr');
-        }
-        // open default streams for the stdin, stdout and stderr devices
-        var stdin = FS.open('/dev/stdin', 'r');
-        HEAP32[((_stdin)>>2)]=stdin.fd;
-        assert(stdin.fd === 1, 'invalid handle for stdin (' + stdin.fd + ')');
-        var stdout = FS.open('/dev/stdout', 'w');
-        HEAP32[((_stdout)>>2)]=stdout.fd;
-        assert(stdout.fd === 2, 'invalid handle for stdout (' + stdout.fd + ')');
-        var stderr = FS.open('/dev/stderr', 'w');
-        HEAP32[((_stderr)>>2)]=stderr.fd;
-        assert(stderr.fd === 3, 'invalid handle for stderr (' + stderr.fd + ')');
-      },staticInit:function () {
-        FS.name_table = new Array(4096);
-        FS.root = FS.createNode(null, '/', 0040000 | 0777, 0);
-        FS.mount(MEMFS, {}, '/');
-        FS.createDefaultDirectories();
-        FS.createDefaultDevices();
-      },init:function (input, output, error) {
-        assert(!FS.init.initialized, 'FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)');
-        FS.init.initialized = true;
-        // Allow Module.stdin etc. to provide defaults, if none explicitly passed to us here
-        Module['stdin'] = input || Module['stdin'];
-        Module['stdout'] = output || Module['stdout'];
-        Module['stderr'] = error || Module['stderr'];
-        FS.createStandardStreams();
-      },quit:function () {
-        FS.init.initialized = false;
-        for (var i = 0; i < FS.streams.length; i++) {
-          var stream = FS.streams[i];
-          if (!stream) {
-            continue;
-          }
-          FS.close(stream);
-        }
-      },mount:function (type, opts, mountpoint) {
-        var mount = {
-          type: type,
-          opts: opts,
-          mountpoint: mountpoint,
-          root: null
-        };
-        var lookup;
-        if (mountpoint) {
-          lookup = FS.lookupPath(mountpoint, { follow: false });
-        }
-        // create a root node for the fs
-        var root = type.mount(mount);
-        root.mount = mount;
-        mount.root = root;
-        // assign the mount info to the mountpoint's node
-        if (lookup) {
-          lookup.node.mount = mount;
-          lookup.node.mounted = true;
-          // compatibility update FS.root if we mount to /
-          if (mountpoint === '/') {
-            FS.root = mount.root;
-          }
-        }
-        return root;
-      },lookup:function (parent, name) {
-        return parent.node_ops.lookup(parent, name);
-      },mknod:function (path, mode, dev) {
-        var lookup = FS.lookupPath(path, { parent: true });
-        var parent = lookup.node;
-        var name = PATH.basename(path);
-        var err = FS.mayCreate(parent, name);
-        if (err) {
-          throw new FS.ErrnoError(err);
-        }
-        if (!parent.node_ops.mknod) {
-          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
-        }
-        return parent.node_ops.mknod(parent, name, mode, dev);
-      },create:function (path, mode) {
-        mode &= 4095;
-        mode |= 0100000;
-        return FS.mknod(path, mode, 0);
-      },mkdir:function (path, mode) {
-        mode &= 511 | 0001000;
-        mode |= 0040000;
-        return FS.mknod(path, mode, 0);
-      },mkdev:function (path, mode, dev) {
-        mode |= 0020000;
-        return FS.mknod(path, mode, dev);
-      },symlink:function (oldpath, newpath) {
-        var lookup = FS.lookupPath(newpath, { parent: true });
-        var parent = lookup.node;
-        var newname = PATH.basename(newpath);
-        var err = FS.mayCreate(parent, newname);
-        if (err) {
-          throw new FS.ErrnoError(err);
-        }
-        if (!parent.node_ops.symlink) {
-          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
-        }
-        return parent.node_ops.symlink(parent, newname, oldpath);
-      },rename:function (old_path, new_path) {
-        var old_dirname = PATH.dirname(old_path);
-        var new_dirname = PATH.dirname(new_path);
-        var old_name = PATH.basename(old_path);
-        var new_name = PATH.basename(new_path);
-        // parents must exist
-        var lookup, old_dir, new_dir;
-        try {
-          lookup = FS.lookupPath(old_path, { parent: true });
-          old_dir = lookup.node;
-          lookup = FS.lookupPath(new_path, { parent: true });
-          new_dir = lookup.node;
-        } catch (e) {
-          throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
-        }
-        // need to be part of the same mount
-        if (old_dir.mount !== new_dir.mount) {
-          throw new FS.ErrnoError(ERRNO_CODES.EXDEV);
-        }
-        // source must exist
-        var old_node = FS.lookupNode(old_dir, old_name);
-        // old path should not be an ancestor of the new path
-        var relative = PATH.relative(old_path, new_dirname);
-        if (relative.charAt(0) !== '.') {
-          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
-        }
-        // new path should not be an ancestor of the old path
-        relative = PATH.relative(new_path, old_dirname);
-        if (relative.charAt(0) !== '.') {
-          throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
-        }
-        // see if the new path already exists
-        var new_node;
-        try {
-          new_node = FS.lookupNode(new_dir, new_name);
-        } catch (e) {
-          // not fatal
-        }
-        // early out if nothing needs to change
-        if (old_node === new_node) {
-          return;
-        }
-        // we'll need to delete the old entry
-        var isdir = FS.isDir(old_node.mode);
-        var err = FS.mayDelete(old_dir, old_name, isdir);
-        if (err) {
-          throw new FS.ErrnoError(err);
-        }
-        // need delete permissions if we'll be overwriting.
-        // need create permissions if new doesn't already exist.
-        err = new_node ?
-          FS.mayDelete(new_dir, new_name, isdir) :
-          FS.mayCreate(new_dir, new_name);
-        if (err) {
-          throw new FS.ErrnoError(err);
-        }
-        if (!old_dir.node_ops.rename) {
-          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
-        }
-        if (FS.isMountpoint(old_node) || (new_node && FS.isMountpoint(new_node))) {
-          throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
-        }
-        // if we are going to change the parent, check write permissions
-        if (new_dir !== old_dir) {
-          err = FS.nodePermissions(old_dir, 'w');
-          if (err) {
-            throw new FS.ErrnoError(err);
-          }
-        }
-        // remove the node from the lookup hash
-        FS.hashRemoveNode(old_node);
-        // do the underlying fs rename
-        try {
-          old_dir.node_ops.rename(old_node, new_dir, new_name);
-        } catch (e) {
-          throw e;
-        } finally {
-          // add the node back to the hash (in case node_ops.rename
-          // changed its name)
-          FS.hashAddNode(old_node);
-        }
-      },rmdir:function (path) {
-        var lookup = FS.lookupPath(path, { parent: true });
-        var parent = lookup.node;
-        var name = PATH.basename(path);
-        var node = FS.lookupNode(parent, name);
-        var err = FS.mayDelete(parent, name, true);
-        if (err) {
-          throw new FS.ErrnoError(err);
-        }
-        if (!parent.node_ops.rmdir) {
-          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
-        }
-        if (FS.isMountpoint(node)) {
-          throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
-        }
-        parent.node_ops.rmdir(parent, name);
-        FS.destroyNode(node);
-      },readdir:function (path) {
-        var lookup = FS.lookupPath(path, { follow: true });
-        var node = lookup.node;
-        if (!node.node_ops.readdir) {
-          throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
-        }
-        return node.node_ops.readdir(node);
-      },unlink:function (path) {
-        var lookup = FS.lookupPath(path, { parent: true });
-        var parent = lookup.node;
-        var name = PATH.basename(path);
-        var node = FS.lookupNode(parent, name);
-        var err = FS.mayDelete(parent, name, false);
-        if (err) {
-          // POSIX says unlink should set EPERM, not EISDIR
-          if (err === ERRNO_CODES.EISDIR) err = ERRNO_CODES.EPERM;
-          throw new FS.ErrnoError(err);
-        }
-        if (!parent.node_ops.unlink) {
-          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
-        }
-        if (FS.isMountpoint(node)) {
-          throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
-        }
-        parent.node_ops.unlink(parent, name);
-        FS.destroyNode(node);
-      },readlink:function (path) {
-        var lookup = FS.lookupPath(path, { follow: false });
-        var link = lookup.node;
-        if (!link.node_ops.readlink) {
-          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
-        }
-        return link.node_ops.readlink(link);
-      },stat:function (path, dontFollow) {
-        var lookup = FS.lookupPath(path, { follow: !dontFollow });
-        var node = lookup.node;
-        if (!node.node_ops.getattr) {
-          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
-        }
-        return node.node_ops.getattr(node);
-      },lstat:function (path) {
-        return FS.stat(path, true);
-      },chmod:function (path, mode, dontFollow) {
-        var node;
-        if (typeof path === 'string') {
-          var lookup = FS.lookupPath(path, { follow: !dontFollow });
-          node = lookup.node;
-        } else {
-          node = path;
-        }
-        if (!node.node_ops.setattr) {
-          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
-        }
-        node.node_ops.setattr(node, {
-          mode: (mode & 4095) | (node.mode & ~4095),
-          timestamp: Date.now()
-        });
-      },lchmod:function (path, mode) {
-        FS.chmod(path, mode, true);
-      },fchmod:function (fd, mode) {
-        var stream = FS.getStream(fd);
-        if (!stream) {
-          throw new FS.ErrnoError(ERRNO_CODES.EBADF);
-        }
-        FS.chmod(stream.node, mode);
-      },chown:function (path, uid, gid, dontFollow) {
-        var node;
-        if (typeof path === 'string') {
-          var lookup = FS.lookupPath(path, { follow: !dontFollow });
-          node = lookup.node;
-        } else {
-          node = path;
-        }
-        if (!node.node_ops.setattr) {
-          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
-        }
-        node.node_ops.setattr(node, {
-          timestamp: Date.now()
-          // we ignore the uid / gid for now
-        });
-      },lchown:function (path, uid, gid) {
-        FS.chown(path, uid, gid, true);
-      },fchown:function (fd, uid, gid) {
-        var stream = FS.getStream(fd);
-        if (!stream) {
-          throw new FS.ErrnoError(ERRNO_CODES.EBADF);
-        }
-        FS.chown(stream.node, uid, gid);
-      },truncate:function (path, len) {
-        if (len < 0) {
-          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
-        }
-        var node;
-        if (typeof path === 'string') {
-          var lookup = FS.lookupPath(path, { follow: true });
-          node = lookup.node;
-        } else {
-          node = path;
-        }
-        if (!node.node_ops.setattr) {
-          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
-        }
-        if (FS.isDir(node.mode)) {
-          throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
-        }
-        if (!FS.isFile(node.mode)) {
-          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
-        }
-        var err = FS.nodePermissions(node, 'w');
-        if (err) {
-          throw new FS.ErrnoError(err);
-        }
-        node.node_ops.setattr(node, {
-          size: len,
-          timestamp: Date.now()
-        });
-      },ftruncate:function (fd, len) {
-        var stream = FS.getStream(fd);
-        if (!stream) {
-          throw new FS.ErrnoError(ERRNO_CODES.EBADF);
-        }
-        if ((stream.flags & 3) === 0) {
-          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
-        }
-        FS.truncate(stream.node, len);
-      },utime:function (path, atime, mtime) {
-        var lookup = FS.lookupPath(path, { follow: true });
-        var node = lookup.node;
-        node.node_ops.setattr(node, {
-          timestamp: Math.max(atime, mtime)
-        });
-      },open:function (path, flags, mode, fd_start, fd_end) {
-        path = PATH.normalize(path);
-        flags = typeof flags === 'string' ? FS.modeStringToFlags(flags) : flags;
-        mode = typeof mode === 'undefined' ? 0666 : mode;
-        if ((flags & 512)) {
-          mode = (mode & 4095) | 0100000;
-        } else {
-          mode = 0;
-        }
-        var node;
-        try {
-          var lookup = FS.lookupPath(path, {
-            follow: !(flags & 0200000)
-          });
-          node = lookup.node;
-          path = lookup.path;
-        } catch (e) {
-          // ignore
-        }
-        // perhaps we need to create the node
-        if ((flags & 512)) {
-          if (node) {
-            // if O_CREAT and O_EXCL are set, error out if the node already exists
-            if ((flags & 2048)) {
-              throw new FS.ErrnoError(ERRNO_CODES.EEXIST);
-            }
-          } else {
-            // node doesn't exist, try to create it
-            node = FS.mknod(path, mode, 0);
-          }
-        }
-        if (!node) {
-          throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
-        }
-        // can't truncate a device
-        if (FS.isChrdev(node.mode)) {
-          flags &= ~1024;
-        }
-        // check permissions
-        var err = FS.mayOpen(node, flags);
-        if (err) {
-          throw new FS.ErrnoError(err);
-        }
-        // do truncation if necessary
-        if ((flags & 1024)) {
-          FS.truncate(node, 0);
-        }
-        // register the stream with the filesystem
-        var stream = FS.createStream({
-          path: path,
-          node: node,
-          flags: flags,
-          seekable: true,
-          position: 0,
-          stream_ops: node.stream_ops,
-          // used by the file family libc calls (fopen, fwrite, ferror, etc.)
-          ungotten: [],
-          error: false
-        }, fd_start, fd_end);
-        // call the new stream's open function
-        if (stream.stream_ops.open) {
-          stream.stream_ops.open(stream);
-        }
-        return stream;
-      },close:function (stream) {
-        try {
-          if (stream.stream_ops.close) {
-            stream.stream_ops.close(stream);
-          }
-        } catch (e) {
-          throw e;
-        } finally {
-          FS.closeStream(stream.fd);
-        }
-      },llseek:function (stream, offset, whence) {
-        if (!stream.seekable || !stream.stream_ops.llseek) {
-          throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
-        }
-        return stream.stream_ops.llseek(stream, offset, whence);
-      },read:function (stream, buffer, offset, length, position) {
-        if (length < 0 || position < 0) {
-          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
-        }
-        if ((stream.flags & 3) === 1) {
-          throw new FS.ErrnoError(ERRNO_CODES.EBADF);
-        }
-        if (FS.isDir(stream.node.mode)) {
-          throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
-        }
-        if (!stream.stream_ops.read) {
-          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
-        }
-        var seeking = true;
-        if (typeof position === 'undefined') {
-          position = stream.position;
-          seeking = false;
-        } else if (!stream.seekable) {
-          throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
-        }
-        var bytesRead = stream.stream_ops.read(stream, buffer, offset, length, position);
-        if (!seeking) stream.position += bytesRead;
-        return bytesRead;
-      },write:function (stream, buffer, offset, length, position) {
-        if (length < 0 || position < 0) {
-          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
-        }
-        if ((stream.flags & 3) === 0) {
-          throw new FS.ErrnoError(ERRNO_CODES.EBADF);
-        }
-        if (FS.isDir(stream.node.mode)) {
-          throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
-        }
-        if (!stream.stream_ops.write) {
-          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
-        }
-        var seeking = true;
-        if (typeof position === 'undefined') {
-          position = stream.position;
-          seeking = false;
-        } else if (!stream.seekable) {
-          throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
-        }
-        if (stream.flags & 8) {
-          // seek to the end before writing in append mode
-          FS.llseek(stream, 0, 2);
-        }
-        var bytesWritten = stream.stream_ops.write(stream, buffer, offset, length, position);
-        if (!seeking) stream.position += bytesWritten;
-        return bytesWritten;
-      },allocate:function (stream, offset, length) {
-        if (offset < 0 || length <= 0) {
-          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
-        }
-        if ((stream.flags & 3) === 0) {
-          throw new FS.ErrnoError(ERRNO_CODES.EBADF);
-        }
-        if (!FS.isFile(stream.node.mode) && !FS.isDir(node.mode)) {
-          throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
-        }
-        if (!stream.stream_ops.allocate) {
-          throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP);
-        }
-        stream.stream_ops.allocate(stream, offset, length);
-      },mmap:function (stream, buffer, offset, length, position, prot, flags) {
-        // TODO if PROT is PROT_WRITE, make sure we have write access
-        if ((stream.flags & 3) === 1) {
-          throw new FS.ErrnoError(ERRNO_CODES.EACCES);
-        }
-        if (!stream.stream_ops.mmap) {
-          throw new FS.errnoError(ERRNO_CODES.ENODEV);
-        }
-        return stream.stream_ops.mmap(stream, buffer, offset, length, position, prot, flags);
-      }};
-  function _send(fd, buf, len, flags) {
-      var info = FS.getStream(fd);
-      if (!info) {
-        ___setErrNo(ERRNO_CODES.EBADF);
-        return -1;
-      }
-      if (info.socket.readyState === WebSocket.CLOSING || info.socket.readyState === WebSocket.CLOSED) {
-        ___setErrNo(ERRNO_CODES.ENOTCONN);
-        return -1;
-      } else if (info.socket.readyState === WebSocket.CONNECTING) {
-        ___setErrNo(ERRNO_CODES.EAGAIN);
-        return -1;
-      }
-      info.sender(HEAPU8.subarray(buf, buf+len));
-      return len;
-    }
-  function _pwrite(fildes, buf, nbyte, offset) {
-      // ssize_t pwrite(int fildes, const void *buf, size_t nbyte, off_t offset);
-      // http://pubs.opengroup.org/onlinepubs/000095399/functions/write.html
-      var stream = FS.getStream(fildes);
-      if (!stream) {
-        ___setErrNo(ERRNO_CODES.EBADF);
-        return -1;
-      }
-      try {
-        var slab = HEAP8;
-        return FS.write(stream, slab, buf, nbyte, offset);
-      } catch (e) {
-        FS.handleFSError(e);
-        return -1;
-      }
-    }function _write(fildes, buf, nbyte) {
-      // ssize_t write(int fildes, const void *buf, size_t nbyte);
-      // http://pubs.opengroup.org/onlinepubs/000095399/functions/write.html
-      var stream = FS.getStream(fildes);
-      if (!stream) {
-        ___setErrNo(ERRNO_CODES.EBADF);
-        return -1;
-      }
-      if (stream && ('socket' in stream)) {
-        return _send(fildes, buf, nbyte, 0);
-      }
-      try {
-        var slab = HEAP8;
-        return FS.write(stream, slab, buf, nbyte);
-      } catch (e) {
-        FS.handleFSError(e);
-        return -1;
-      }
-    }function _fwrite(ptr, size, nitems, stream) {
-      // size_t fwrite(const void *restrict ptr, size_t size, size_t nitems, FILE *restrict stream);
-      // http://pubs.opengroup.org/onlinepubs/000095399/functions/fwrite.html
-      var bytesToWrite = nitems * size;
-      if (bytesToWrite == 0) return 0;
-      var bytesWritten = _write(stream, ptr, bytesToWrite);
-      if (bytesWritten == -1) {
-        var streamObj = FS.getStream(stream);
-        if (streamObj) streamObj.error = true;
-        return 0;
-      } else {
-        return Math.floor(bytesWritten / size);
-      }
-    }
-  function _ungetc(c, stream) {
-      // int ungetc(int c, FILE *stream);
-      // http://pubs.opengroup.org/onlinepubs/000095399/functions/ungetc.html
-      stream = FS.getStream(stream);
-      if (!stream) {
-        return -1;
-      }
-      if (c === -1) {
-        // do nothing for EOF character
-        return c;
-      }
-      c = unSign(c & 0xFF);
-      stream.ungotten.push(c);
-      stream.eof = false;
-      return c;
-    }
-  function _recv(fd, buf, len, flags) {
-      var info = FS.getStream(fd);
-      if (!info) {
-        ___setErrNo(ERRNO_CODES.EBADF);
-        return -1;
-      }
-      if (!info.hasData()) {
-        if (info.socket.readyState === WebSocket.CLOSING || info.socket.readyState === WebSocket.CLOSED) {
-          // socket has closed
-          return 0;
-        } else {
-          // else, our socket is in a valid state but truly has nothing available
-          ___setErrNo(ERRNO_CODES.EAGAIN);
-          return -1;
-        }
-      }
-      var buffer = info.inQueue.shift();
-      if (len < buffer.length) {
-        if (info.stream) {
-          // This is tcp (reliable), so if not all was read, keep it
-          info.inQueue.unshift(buffer.subarray(len));
-        }
-        buffer = buffer.subarray(0, len);
-      }
-      HEAPU8.set(buffer, buf);
-      return buffer.length;
-    }
-  function _pread(fildes, buf, nbyte, offset) {
-      // ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset);
-      // http://pubs.opengroup.org/onlinepubs/000095399/functions/read.html
-      var stream = FS.getStream(fildes);
-      if (!stream) {
-        ___setErrNo(ERRNO_CODES.EBADF);
-        return -1;
-      }
-      try {
-        var slab = HEAP8;
-        return FS.read(stream, slab, buf, nbyte, offset);
-      } catch (e) {
-        FS.handleFSError(e);
-        return -1;
-      }
-    }function _read(fildes, buf, nbyte) {
-      // ssize_t read(int fildes, void *buf, size_t nbyte);
-      // http://pubs.opengroup.org/onlinepubs/000095399/functions/read.html
-      var stream = FS.getStream(fildes);
-      if (!stream) {
-        ___setErrNo(ERRNO_CODES.EBADF);
-        return -1;
-      }
-      if (stream && ('socket' in stream)) {
-        return _recv(fildes, buf, nbyte, 0);
-      }
-      try {
-        var slab = HEAP8;
-        return FS.read(stream, slab, buf, nbyte);
-      } catch (e) {
-        FS.handleFSError(e);
-        return -1;
-      }
-    }function _fread(ptr, size, nitems, stream) {
-      // size_t fread(void *restrict ptr, size_t size, size_t nitems, FILE *restrict stream);
-      // http://pubs.opengroup.org/onlinepubs/000095399/functions/fread.html
-      var bytesToRead = nitems * size;
-      if (bytesToRead == 0) {
-        return 0;
-      }
-      var bytesRead = 0;
-      var streamObj = FS.getStream(stream);
-      while (streamObj.ungotten.length && bytesToRead > 0) {
-        HEAP8[((ptr++)|0)]=streamObj.ungotten.pop()
-        bytesToRead--;
-        bytesRead++;
-      }
-      var err = _read(stream, ptr, bytesToRead);
-      if (err == -1) {
-        if (streamObj) streamObj.error = true;
-        return 0;
-      }
-      bytesRead += err;
-      if (bytesRead < bytesToRead) streamObj.eof = true;
-      return Math.floor(bytesRead / size);
-    }function _fgetc(stream) {
-      // int fgetc(FILE *stream);
-      // http://pubs.opengroup.org/onlinepubs/000095399/functions/fgetc.html
-      var streamObj = FS.getStream(stream);
-      if (!streamObj) return -1;
-      if (streamObj.eof || streamObj.error) return -1;
-      var ret = _fread(_fgetc.ret, 1, 1, stream);
-      if (ret == 0) {
-        streamObj.eof = true;
-        return -1;
-      } else if (ret == -1) {
-        streamObj.error = true;
-        return -1;
-      } else {
-        return HEAPU8[((_fgetc.ret)|0)];
-      }
-    }var _getc=_fgetc;
-  function ___cxa_pure_virtual() {
-      ABORT = true;
-      throw 'Pure virtual function called!';
-    }
-  function ___errno_location() {
-      return ___errno_state;
-    }var ___errno=___errno_location;
-  var _llvm_memset_p0i8_i32=_memset;
-  Module["_strlen"] = _strlen;
-  function _strerror_r(errnum, strerrbuf, buflen) {
-      if (errnum in ERRNO_MESSAGES) {
-        if (ERRNO_MESSAGES[errnum].length > buflen - 1) {
-          return ___setErrNo(ERRNO_CODES.ERANGE);
-        } else {
-          var msg = ERRNO_MESSAGES[errnum];
-          for (var i = 0; i < msg.length; i++) {
-            HEAP8[(((strerrbuf)+(i))|0)]=msg.charCodeAt(i)
-          }
-          HEAP8[(((strerrbuf)+(i))|0)]=0
-          return 0;
-        }
-      } else {
-        return ___setErrNo(ERRNO_CODES.EINVAL);
-      }
-    }function _strerror(errnum) {
-      if (!_strerror.buffer) _strerror.buffer = _malloc(256);
-      _strerror_r(errnum, _strerror.buffer, 256);
-      return _strerror.buffer;
-    }
-  function _abort() {
-      Module['abort']();
-    }
-  function __reallyNegative(x) {
-      return x < 0 || (x === 0 && (1/x) === -Infinity);
-    }function __formatString(format, varargs) {
-      var textIndex = format;
-      var argIndex = 0;
-      function getNextArg(type) {
-        // NOTE: Explicitly ignoring type safety. Otherwise this fails:
-        //       int x = 4; printf("%c\n", (char)x);
-        var ret;
-        if (type === 'double') {
-          ret = HEAPF64[(((varargs)+(argIndex))>>3)];
-        } else if (type == 'i64') {
-          ret = [HEAP32[(((varargs)+(argIndex))>>2)],
-                 HEAP32[(((varargs)+(argIndex+8))>>2)]];
-          argIndex += 8; // each 32-bit chunk is in a 64-bit block
-        } else {
-          type = 'i32'; // varargs are always i32, i64, or double
-          ret = HEAP32[(((varargs)+(argIndex))>>2)];
-        }
-        argIndex += Math.max(Runtime.getNativeFieldSize(type), Runtime.getAlignSize(type, null, true));
-        return ret;
-      }
-      var ret = [];
-      var curr, next, currArg;
-      while(1) {
-        var startTextIndex = textIndex;
-        curr = HEAP8[(textIndex)];
-        if (curr === 0) break;
-        next = HEAP8[((textIndex+1)|0)];
-        if (curr == 37) {
-          // Handle flags.
-          var flagAlwaysSigned = false;
-          var flagLeftAlign = false;
-          var flagAlternative = false;
-          var flagZeroPad = false;
-          flagsLoop: while (1) {
-            switch (next) {
-              case 43:
-                flagAlwaysSigned = true;
-                break;
-              case 45:
-                flagLeftAlign = true;
-                break;
-              case 35:
-                flagAlternative = true;
-                break;
-              case 48:
-                if (flagZeroPad) {
-                  break flagsLoop;
-                } else {
-                  flagZeroPad = true;
-                  break;
-                }
-              default:
-                break flagsLoop;
-            }
-            textIndex++;
-            next = HEAP8[((textIndex+1)|0)];
-          }
-          // Handle width.
-          var width = 0;
-          if (next == 42) {
-            width = getNextArg('i32');
-            textIndex++;
-            next = HEAP8[((textIndex+1)|0)];
-          } else {
-            while (next >= 48 && next <= 57) {
-              width = width * 10 + (next - 48);
-              textIndex++;
-              next = HEAP8[((textIndex+1)|0)];
-            }
-          }
-          // Handle precision.
-          var precisionSet = false;
-          if (next == 46) {
-            var precision = 0;
-            precisionSet = true;
-            textIndex++;
-            next = HEAP8[((textIndex+1)|0)];
-            if (next == 42) {
-              precision = getNextArg('i32');
-              textIndex++;
-            } else {
-              while(1) {
-                var precisionChr = HEAP8[((textIndex+1)|0)];
-                if (precisionChr < 48 ||
-                    precisionChr > 57) break;
-                precision = precision * 10 + (precisionChr - 48);
-                textIndex++;
-              }
-            }
-            next = HEAP8[((textIndex+1)|0)];
-          } else {
-            var precision = 6; // Standard default.
-          }
-          // Handle integer sizes. WARNING: These assume a 32-bit architecture!
-          var argSize;
-          switch (String.fromCharCode(next)) {
-            case 'h':
-              var nextNext = HEAP8[((textIndex+2)|0)];
-              if (nextNext == 104) {
-                textIndex++;
-                argSize = 1; // char (actually i32 in varargs)
-              } else {
-                argSize = 2; // short (actually i32 in varargs)
-              }
-              break;
-            case 'l':
-              var nextNext = HEAP8[((textIndex+2)|0)];
-              if (nextNext == 108) {
-                textIndex++;
-                argSize = 8; // long long
-              } else {
-                argSize = 4; // long
-              }
-              break;
-            case 'L': // long long
-            case 'q': // int64_t
-            case 'j': // intmax_t
-              argSize = 8;
-              break;
-            case 'z': // size_t
-            case 't': // ptrdiff_t
-            case 'I': // signed ptrdiff_t or unsigned size_t
-              argSize = 4;
-              break;
-            default:
-              argSize = null;
-          }
-          if (argSize) textIndex++;
-          next = HEAP8[((textIndex+1)|0)];
-          // Handle type specifier.
-          switch (String.fromCharCode(next)) {
-            case 'd': case 'i': case 'u': case 'o': case 'x': case 'X': case 'p': {
-              // Integer.
-              var signed = next == 100 || next == 105;
-              argSize = argSize || 4;
-              var currArg = getNextArg('i' + (argSize * 8));
-              var origArg = currArg;
-              var argText;
-              // Flatten i64-1 [low, high] into a (slightly rounded) double
-              if (argSize == 8) {
-                currArg = Runtime.makeBigInt(currArg[0], currArg[1], next == 117);
-              }
-              // Truncate to requested size.
-              if (argSize <= 4) {
-                var limit = Math.pow(256, argSize) - 1;
-                currArg = (signed ? reSign : unSign)(currArg & limit, argSize * 8);
-              }
-              // Format the number.
-              var currAbsArg = Math.abs(currArg);
-              var prefix = '';
-              if (next == 100 || next == 105) {
-                if (argSize == 8 && i64Math) argText = i64Math.stringify(origArg[0], origArg[1], null); else
-                argText = reSign(currArg, 8 * argSize, 1).toString(10);
-              } else if (next == 117) {
-                if (argSize == 8 && i64Math) argText = i64Math.stringify(origArg[0], origArg[1], true); else
-                argText = unSign(currArg, 8 * argSize, 1).toString(10);
-                currArg = Math.abs(currArg);
-              } else if (next == 111) {
-                argText = (flagAlternative ? '0' : '') + currAbsArg.toString(8);
-              } else if (next == 120 || next == 88) {
-                prefix = (flagAlternative && currArg != 0) ? '0x' : '';
-                if (argSize == 8 && i64Math) {
-                  if (origArg[1]) {
-                    argText = (origArg[1]>>>0).toString(16);
-                    var lower = (origArg[0]>>>0).toString(16);
-                    while (lower.length < 8) lower = '0' + lower;
-                    argText += lower;
-                  } else {
-                    argText = (origArg[0]>>>0).toString(16);
-                  }
-                } else
-                if (currArg < 0) {
-                  // Represent negative numbers in hex as 2's complement.
-                  currArg = -currArg;
-                  argText = (currAbsArg - 1).toString(16);
-                  var buffer = [];
-                  for (var i = 0; i < argText.length; i++) {
-                    buffer.push((0xF - parseInt(argText[i], 16)).toString(16));
-                  }
-                  argText = buffer.join('');
-                  while (argText.length < argSize * 2) argText = 'f' + argText;
-                } else {
-                  argText = currAbsArg.toString(16);
-                }
-                if (next == 88) {
-                  prefix = prefix.toUpperCase();
-                  argText = argText.toUpperCase();
-                }
-              } else if (next == 112) {
-                if (currAbsArg === 0) {
-                  argText = '(nil)';
-                } else {
-                  prefix = '0x';
-                  argText = currAbsArg.toString(16);
-                }
-              }
-              if (precisionSet) {
-                while (argText.length < precision) {
-                  argText = '0' + argText;
-                }
-              }
-              // Add sign if needed
-              if (flagAlwaysSigned) {
-                if (currArg < 0) {
-                  prefix = '-' + prefix;
-                } else {
-                  prefix = '+' + prefix;
-                }
-              }
-              // Add padding.
-              while (prefix.length + argText.length < width) {
-                if (flagLeftAlign) {
-                  argText += ' ';
-                } else {
-                  if (flagZeroPad) {
-                    argText = '0' + argText;
-                  } else {
-                    prefix = ' ' + prefix;
-                  }
-                }
-              }
-              // Insert the result into the buffer.
-              argText = prefix + argText;
-              argText.split('').forEach(function(chr) {
-                ret.push(chr.charCodeAt(0));
-              });
-              break;
-            }
-            case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': {
-              // Float.
-              var currArg = getNextArg('double');
-              var argText;
-              if (isNaN(currArg)) {
-                argText = 'nan';
-                flagZeroPad = false;
-              } else if (!isFinite(currArg)) {
-                argText = (currArg < 0 ? '-' : '') + 'inf';
-                flagZeroPad = false;
-              } else {
-                var isGeneral = false;
-                var effectivePrecision = Math.min(precision, 20);
-                // Convert g/G to f/F or e/E, as per:
-                // http://pubs.opengroup.org/onlinepubs/9699919799/functions/printf.html
-                if (next == 103 || next == 71) {
-                  isGeneral = true;
-                  precision = precision || 1;
-                  var exponent = parseInt(currArg.toExponential(effectivePrecision).split('e')[1], 10);
-                  if (precision > exponent && exponent >= -4) {
-                    next = ((next == 103) ? 'f' : 'F').charCodeAt(0);
-                    precision -= exponent + 1;
-                  } else {
-                    next = ((next == 103) ? 'e' : 'E').charCodeAt(0);
-                    precision--;
-                  }
-                  effectivePrecision = Math.min(precision, 20);
-                }
-                if (next == 101 || next == 69) {
-                  argText = currArg.toExponential(effectivePrecision);
-                  // Make sure the exponent has at least 2 digits.
-                  if (/[eE][-+]\d$/.test(argText)) {
-                    argText = argText.slice(0, -1) + '0' + argText.slice(-1);
-                  }
-                } else if (next == 102 || next == 70) {
-                  argText = currArg.toFixed(effectivePrecision);
-                  if (currArg === 0 && __reallyNegative(currArg)) {
-                    argText = '-' + argText;
-                  }
-                }
-                var parts = argText.split('e');
-                if (isGeneral && !flagAlternative) {
-                  // Discard trailing zeros and periods.
-                  while (parts[0].length > 1 && parts[0].indexOf('.') != -1 &&
-                         (parts[0].slice(-1) == '0' || parts[0].slice(-1) == '.')) {
-                    parts[0] = parts[0].slice(0, -1);
-                  }
-                } else {
-                  // Make sure we have a period in alternative mode.
-                  if (flagAlternative && argText.indexOf('.') == -1) parts[0] += '.';
-                  // Zero pad until required precision.
-                  while (precision > effectivePrecision++) parts[0] += '0';
-                }
-                argText = parts[0] + (parts.length > 1 ? 'e' + parts[1] : '');
-                // Capitalize 'E' if needed.
-                if (next == 69) argText = argText.toUpperCase();
-                // Add sign.
-                if (flagAlwaysSigned && currArg >= 0) {
-                  argText = '+' + argText;
-                }
-              }
-              // Add padding.
-              while (argText.length < width) {
-                if (flagLeftAlign) {
-                  argText += ' ';
-                } else {
-                  if (flagZeroPad && (argText[0] == '-' || argText[0] == '+')) {
-                    argText = argText[0] + '0' + argText.slice(1);
-                  } else {
-                    argText = (flagZeroPad ? '0' : ' ') + argText;
-                  }
-                }
-              }
-              // Adjust case.
-              if (next < 97) argText = argText.toUpperCase();
-              // Insert the result into the buffer.
-              argText.split('').forEach(function(chr) {
-                ret.push(chr.charCodeAt(0));
-              });
-              break;
-            }
-            case 's': {
-              // String.
-              var arg = getNextArg('i8*');
-              var argLength = arg ? _strlen(arg) : '(null)'.length;
-              if (precisionSet) argLength = Math.min(argLength, precision);
-              if (!flagLeftAlign) {
-                while (argLength < width--) {
-                  ret.push(32);
-                }
-              }
-              if (arg) {
-                for (var i = 0; i < argLength; i++) {
-                  ret.push(HEAPU8[((arg++)|0)]);
-                }
-              } else {
-                ret = ret.concat(intArrayFromString('(null)'.substr(0, argLength), true));
-              }
-              if (flagLeftAlign) {
-                while (argLength < width--) {
-                  ret.push(32);
-                }
-              }
-              break;
-            }
-            case 'c': {
-              // Character.
-              if (flagLeftAlign) ret.push(getNextArg('i8'));
-              while (--width > 0) {
-                ret.push(32);
-              }
-              if (!flagLeftAlign) ret.push(getNextArg('i8'));
-              break;
-            }
-            case 'n': {
-              // Write the length written so far to the next parameter.
-              var ptr = getNextArg('i32*');
-              HEAP32[((ptr)>>2)]=ret.length
-              break;
-            }
-            case '%': {
-              // Literal percent sign.
-              ret.push(curr);
-              break;
-            }
-            default: {
-              // Unknown specifiers remain untouched.
-              for (var i = startTextIndex; i < textIndex + 2; i++) {
-                ret.push(HEAP8[(i)]);
-              }
-            }
-          }
-          textIndex += 2;
-          // TODO: Support a/A (hex float) and m (last error) specifiers.
-          // TODO: Support %1${specifier} for arg selection.
-        } else {
-          ret.push(curr);
-          textIndex += 1;
-        }
-      }
-      return ret;
-    }function _snprintf(s, n, format, varargs) {
-      // int snprintf(char *restrict s, size_t n, const char *restrict format, ...);
-      // http://pubs.opengroup.org/onlinepubs/000095399/functions/printf.html
-      var result = __formatString(format, varargs);
-      var limit = (n === undefined) ? result.length
-                                    : Math.min(result.length, Math.max(n - 1, 0));
-      if (s < 0) {
-        s = -s;
-        var buf = _malloc(limit+1);
-        HEAP32[((s)>>2)]=buf;
-        s = buf;
-      }
-      for (var i = 0; i < limit; i++) {
-        HEAP8[(((s)+(i))|0)]=result[i];
-      }
-      if (limit < n || (n === undefined)) HEAP8[(((s)+(i))|0)]=0;
-      return result.length;
-    }
-  function _sysconf(name) {
-      // long sysconf(int name);
-      // http://pubs.opengroup.org/onlinepubs/009695399/functions/sysconf.html
-      switch(name) {
-        case 8: return PAGE_SIZE;
-        case 54:
-        case 56:
-        case 21:
-        case 61:
-        case 63:
-        case 22:
-        case 67:
-        case 23:
-        case 24:
-        case 25:
-        case 26:
-        case 27:
-        case 69:
-        case 28:
-        case 101:
-        case 70:
-        case 71:
-        case 29:
-        case 30:
-        case 199:
-        case 75:
-        case 76:
-        case 32:
-        case 43:
-        case 44:
-        case 80:
-        case 46:
-        case 47:
-        case 45:
-        case 48:
-        case 49:
-        case 42:
-        case 82:
-        case 33:
-        case 7:
-        case 108:
-        case 109:
-        case 107:
-        case 112:
-        case 119:
-        case 121:
-          return 200809;
-        case 13:
-        case 104:
-        case 94:
-        case 95:
-        case 34:
-        case 35:
-        case 77:
-        case 81:
-        case 83:
-        case 84:
-        case 85:
-        case 86:
-        case 87:
-        case 88:
-        case 89:
-        case 90:
-        case 91:
-        case 94:
-        case 95:
-        case 110:
-        case 111:
-        case 113:
-        case 114:
-        case 115:
-        case 116:
-        case 117:
-        case 118:
-        case 120:
-        case 40:
-        case 16:
-        case 79:
-        case 19:
-          return -1;
-        case 92:
-        case 93:
-        case 5:
-        case 72:
-        case 6:
-        case 74:
-        case 92:
-        case 93:
-        case 96:
-        case 97:
-        case 98:
-        case 99:
-        case 102:
-        case 103:
-        case 105:
-          return 1;
-        case 38:
-        case 66:
-        case 50:
-        case 51:
-        case 4:
-          return 1024;
-        case 15:
-        case 64:
-        case 41:
-          return 32;
-        case 55:
-        case 37:
-        case 17:
-          return 2147483647;
-        case 18:
-        case 1:
-          return 47839;
-        case 59:
-        case 57:
-          return 99;
-        case 68:
-        case 58:
-          return 2048;
-        case 0: return 2097152;
-        case 3: return 65536;
-        case 14: return 32768;
-        case 73: return 32767;
-        case 39: return 16384;
-        case 60: return 1000;
-        case 106: return 700;
-        case 52: return 256;
-        case 62: return 255;
-        case 2: return 100;
-        case 65: return 64;
-        case 36: return 20;
-        case 100: return 16;
-        case 20: return 6;
-        case 53: return 4;
-        case 10: return 1;
-      }
-      ___setErrNo(ERRNO_CODES.EINVAL);
-      return -1;
-    }
-  function ___cxa_guard_abort() {}
-  function _isxdigit(chr) {
-      return (chr >= 48 && chr <= 57) ||
-             (chr >= 97 && chr <= 102) ||
-             (chr >= 65 && chr <= 70);
-    }var _isxdigit_l=_isxdigit;
-  function _isdigit(chr) {
-      return chr >= 48 && chr <= 57;
-    }var _isdigit_l=_isdigit;
-  function __isFloat(text) {
-      return !!(/^[+-]?[0-9]*\.?[0-9]+([eE][+-]?[0-9]+)?$/.exec(text));
-    }function __scanString(format, get, unget, varargs) {
-      if (!__scanString.whiteSpace) {
-        __scanString.whiteSpace = {};
-        __scanString.whiteSpace[32] = 1;
-        __scanString.whiteSpace[9] = 1;
-        __scanString.whiteSpace[10] = 1;
-        __scanString.whiteSpace[11] = 1;
-        __scanString.whiteSpace[12] = 1;
-        __scanString.whiteSpace[13] = 1;
-        __scanString.whiteSpace[' '] = 1;
-        __scanString.whiteSpace['\t'] = 1;
-        __scanString.whiteSpace['\n'] = 1;
-        __scanString.whiteSpace['\v'] = 1;
-        __scanString.whiteSpace['\f'] = 1;
-        __scanString.whiteSpace['\r'] = 1;
-      }
-      // Supports %x, %4x, %d.%d, %lld, %s, %f, %lf.
-      // TODO: Support all format specifiers.
-      format = Pointer_stringify(format);
-      var soFar = 0;
-      if (format.indexOf('%n') >= 0) {
-        // need to track soFar
-        var _get = get;
-        get = function() {
-          soFar++;
-          return _get();
-        }
-        var _unget = unget;
-        unget = function() {
-          soFar--;
-          return _unget();
-        }
-      }
-      var formatIndex = 0;
-      var argsi = 0;
-      var fields = 0;
-      var argIndex = 0;
-      var next;
-      mainLoop:
-      for (var formatIndex = 0; formatIndex < format.length;) {
-        if (format[formatIndex] === '%' && format[formatIndex+1] == 'n') {
-          var argPtr = HEAP32[(((varargs)+(argIndex))>>2)];
-          argIndex += Runtime.getAlignSize('void*', null, true);
-          HEAP32[((argPtr)>>2)]=soFar;
-          formatIndex += 2;
-          continue;
-        }
-        if (format[formatIndex] === '%') {
-          var nextC = format.indexOf('c', formatIndex+1);
-          if (nextC > 0) {
-            var maxx = 1;
-            if (nextC > formatIndex+1) {
-              var sub = format.substring(formatIndex+1, nextC)
-              maxx = parseInt(sub);
-              if (maxx != sub) maxx = 0;
-            }
-            if (maxx) {
-              var argPtr = HEAP32[(((varargs)+(argIndex))>>2)];
-              argIndex += Runtime.getAlignSize('void*', null, true);
-              fields++;
-              for (var i = 0; i < maxx; i++) {
-                next = get();
-                HEAP8[((argPtr++)|0)]=next;
-              }
-              formatIndex += nextC - formatIndex + 1;
-              continue;
-            }
-          }
-        }
-        // remove whitespace
-        while (1) {
-          next = get();
-          if (next == 0) return fields;
-          if (!(next in __scanString.whiteSpace)) break;
-        }
-        unget();
-        if (format[formatIndex] === '%') {
-          formatIndex++;
-          var suppressAssignment = false;
-          if (format[formatIndex] == '*') {
-            suppressAssignment = true;
-            formatIndex++;
-          }
-          var maxSpecifierStart = formatIndex;
-          while (format[formatIndex].charCodeAt(0) >= 48 &&
-                 format[formatIndex].charCodeAt(0) <= 57) {
-            formatIndex++;
-          }
-          var max_;
-          if (formatIndex != maxSpecifierStart) {
-            max_ = parseInt(format.slice(maxSpecifierStart, formatIndex), 10);
-          }
-          var long_ = false;
-          var half = false;
-          var longLong = false;
-          if (format[formatIndex] == 'l') {
-            long_ = true;
-            formatIndex++;
-            if (format[formatIndex] == 'l') {
-              longLong = true;
-              formatIndex++;
-            }
-          } else if (format[formatIndex] == 'h') {
-            half = true;
-            formatIndex++;
-          }
-          var type = format[formatIndex];
-          formatIndex++;
-          var curr = 0;
-          var buffer = [];
-          // Read characters according to the format. floats are trickier, they may be in an unfloat state in the middle, then be a valid float later
-          if (type == 'f' || type == 'e' || type == 'g' ||
-              type == 'F' || type == 'E' || type == 'G') {
-            var last = 0;
-            next = get();
-            while (next > 0) {
-              buffer.push(String.fromCharCode(next));
-              if (__isFloat(buffer.join(''))) {
-                last = buffer.length;
-              }
-              next = get();
-            }
-            for (var i = 0; i < buffer.length - last + 1; i++) {
-              unget();
-            }
-            buffer.length = last;
-          } else {
-            next = get();
-            var first = true;
-            while ((curr < max_ || isNaN(max_)) && next > 0) {
-              if (!(next in __scanString.whiteSpace) && // stop on whitespace
-                  (type == 's' ||
-                   ((type === 'd' || type == 'u' || type == 'i') && ((next >= 48 && next <= 57) ||
-                                                                     (first && next == 45))) ||
-                   ((type === 'x' || type === 'X') && (next >= 48 && next <= 57 ||
-                                     next >= 97 && next <= 102 ||
-                                     next >= 65 && next <= 70))) &&
-                  (formatIndex >= format.length || next !== format[formatIndex].charCodeAt(0))) { // Stop when we read something that is coming up
-                buffer.push(String.fromCharCode(next));
-                next = get();
-                curr++;
-                first = false;
-              } else {
-                break;
-              }
-            }
-            unget();
-          }
-          if (buffer.length === 0) return 0;  // Failure.
-          if (suppressAssignment) continue;
-          var text = buffer.join('');
-          var argPtr = HEAP32[(((varargs)+(argIndex))>>2)];
-          argIndex += Runtime.getAlignSize('void*', null, true);
-          switch (type) {
-            case 'd': case 'u': case 'i':
-              if (half) {
-                HEAP16[((argPtr)>>1)]=parseInt(text, 10);
-              } else if (longLong) {
-                (tempI64 = [parseInt(text, 10)>>>0,(tempDouble=parseInt(text, 10),(+(Math.abs(tempDouble))) >= (+(1)) ? (tempDouble > (+(0)) ? ((Math.min((+(Math.floor((tempDouble)/(+(4294967296))))), (+(4294967295))))|0)>>>0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble)))>>>0))/(+(4294967296)))))))>>>0) : 0)],HEAP32[((argPtr)>>2)]=tempI64[0],HEAP32[(((argPtr)+(4))>>2)]=tempI64[1]);
-              } else {
-                HEAP32[((argPtr)>>2)]=parseInt(text, 10);
-              }
-              break;
-            case 'X':
-            case 'x':
-              HEAP32[((argPtr)>>2)]=parseInt(text, 16)
-              break;
-            case 'F':
-            case 'f':
-            case 'E':
-            case 'e':
-            case 'G':
-            case 'g':
-            case 'E':
-              // fallthrough intended
-              if (long_) {
-                HEAPF64[((argPtr)>>3)]=parseFloat(text)
-              } else {
-                HEAPF32[((argPtr)>>2)]=parseFloat(text)
-              }
-              break;
-            case 's':
-              var array = intArrayFromString(text);
-              for (var j = 0; j < array.length; j++) {
-                HEAP8[(((argPtr)+(j))|0)]=array[j]
-              }
-              break;
-          }
-          fields++;
-        } else if (format[formatIndex] in __scanString.whiteSpace) {
-          next = get();
-          while (next in __scanString.whiteSpace) {
-            if (next <= 0) break mainLoop;  // End of input.
-            next = get();
-          }
-          unget(next);
-          formatIndex++;
-        } else {
-          // Not a specifier.
-          next = get();
-          if (format[formatIndex].charCodeAt(0) !== next) {
-            unget(next);
-            break mainLoop;
-          }
-          formatIndex++;
-        }
-      }
-      return fields;
-    }function _sscanf(s, format, varargs) {
-      // int sscanf(const char *restrict s, const char *restrict format, ... );
-      // http://pubs.opengroup.org/onlinepubs/000095399/functions/scanf.html
-      var index = 0;
-      var get = function() { return HEAP8[(((s)+(index++))|0)]; };
-      var unget = function() { index--; };
-      return __scanString(format, get, unget, varargs);
-    }
-  function __Z7catopenPKci() { throw 'catopen not implemented' }
-  function __Z7catgetsP8_nl_catdiiPKc() { throw 'catgets not implemented' }
-  function __Z8catcloseP8_nl_catd() { throw 'catclose not implemented' }
-  function _newlocale(mask, locale, base) {
-      return 0;
-    }
-  function _freelocale(locale) {}
-  function ___ctype_b_loc() {
-      // http://refspecs.freestandards.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/baselib---ctype-b-loc.html
-      var me = ___ctype_b_loc;
-      if (!me.ret) {
-        var values = [
-          0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-          0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-          0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,8195,8194,8194,8194,8194,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,24577,49156,49156,49156,
-          49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,55304,55304,55304,55304,55304,55304,55304,55304,
-          55304,55304,49156,49156,49156,49156,49156,49156,49156,54536,54536,54536,54536,54536,54536,50440,50440,50440,50440,50440,
-          50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,49156,49156,49156,49156,49156,
-          49156,54792,54792,54792,54792,54792,54792,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,
-          50696,50696,50696,50696,50696,50696,50696,49156,49156,49156,49156,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-          0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-          0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-        ];
-        var i16size = 2;
-        var arr = _malloc(values.length * i16size);
-        for (var i = 0; i < values.length; i++) {
-          HEAP16[(((arr)+(i * i16size))>>1)]=values[i]
-        }
-        me.ret = allocate([arr + 128 * i16size], 'i16*', ALLOC_NORMAL);
-      }
-      return me.ret;
-    }
-  function ___ctype_tolower_loc() {
-      // http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/libutil---ctype-tolower-loc.html
-      var me = ___ctype_tolower_loc;
-      if (!me.ret) {
-        var values = [
-          128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,
-          158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,
-          188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,
-          218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,
-          248,249,250,251,252,253,254,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,
-          33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,97,98,99,100,101,102,103,
-          104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,91,92,93,94,95,96,97,98,99,100,101,102,103,
-          104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,
-          134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,
-          164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,
-          194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,
-          224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,
-          254,255
-        ];
-        var i32size = 4;
-        var arr = _malloc(values.length * i32size);
-        for (var i = 0; i < values.length; i++) {
-          HEAP32[(((arr)+(i * i32size))>>2)]=values[i]
-        }
-        me.ret = allocate([arr + 128 * i32size], 'i32*', ALLOC_NORMAL);
-      }
-      return me.ret;
-    }
-  function ___ctype_toupper_loc() {
-      // http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/libutil---ctype-toupper-loc.html
-      var me = ___ctype_toupper_loc;
-      if (!me.ret) {
-        var values = [
-          128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,
-          158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,
-          188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,
-          218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,
-          248,249,250,251,252,253,254,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,
-          33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,
-          73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,
-          81,82,83,84,85,86,87,88,89,90,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
-          145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,
-          175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,
-          205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,
-          235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255
-        ];
-        var i32size = 4;
-        var arr = _malloc(values.length * i32size);
-        for (var i = 0; i < values.length; i++) {
-          HEAP32[(((arr)+(i * i32size))>>2)]=values[i]
-        }
-        me.ret = allocate([arr + 128 * i32size], 'i32*', ALLOC_NORMAL);
-      }
-      return me.ret;
-    }
-  var ___tm_struct_layout={__size__:44,tm_sec:0,tm_min:4,tm_hour:8,tm_mday:12,tm_mon:16,tm_year:20,tm_wday:24,tm_yday:28,tm_isdst:32,tm_gmtoff:36,tm_zone:40};
-  function __isLeapYear(year) {
-        return year%4 === 0 && (year%100 !== 0 || year%400 === 0);
-    }
-  function __arraySum(array, index) {
-      var sum = 0;
-      for (var i = 0; i <= index; sum += array[i++]);
-      return sum;
-    }
-  var __MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31];
-  var __MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31];function __addDays(date, days) {
-      var newDate = new Date(date.getTime());
-      while(days > 0) {
-        var leap = __isLeapYear(newDate.getFullYear());
-        var currentMonth = newDate.getMonth();
-        var daysInCurrentMonth = (leap ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR)[currentMonth];
-        if (days > daysInCurrentMonth-newDate.getDate()) {
-          // we spill over to next month
-          days -= (daysInCurrentMonth-newDate.getDate()+1);
-          newDate.setDate(1);
-          if (currentMonth < 11) {
-            newDate.setMonth(currentMonth+1)
-          } else {
-            newDate.setMonth(0);
-            newDate.setFullYear(newDate.getFullYear()+1);
-          }
-        } else {
-          // we stay in current month 
-          newDate.setDate(newDate.getDate()+days);
-          return newDate;
-        }
-      }
-      return newDate;
-    }function _strftime(s, maxsize, format, tm) {
-      // size_t strftime(char *restrict s, size_t maxsize, const char *restrict format, const struct tm *restrict timeptr);
-      // http://pubs.opengroup.org/onlinepubs/009695399/functions/strftime.html
-      var date = {
-        tm_sec: HEAP32[(((tm)+(___tm_struct_layout.tm_sec))>>2)],
-        tm_min: HEAP32[(((tm)+(___tm_struct_layout.tm_min))>>2)],
-        tm_hour: HEAP32[(((tm)+(___tm_struct_layout.tm_hour))>>2)],
-        tm_mday: HEAP32[(((tm)+(___tm_struct_layout.tm_mday))>>2)],
-        tm_mon: HEAP32[(((tm)+(___tm_struct_layout.tm_mon))>>2)],
-        tm_year: HEAP32[(((tm)+(___tm_struct_layout.tm_year))>>2)],
-        tm_wday: HEAP32[(((tm)+(___tm_struct_layout.tm_wday))>>2)],
-        tm_yday: HEAP32[(((tm)+(___tm_struct_layout.tm_yday))>>2)],
-        tm_isdst: HEAP32[(((tm)+(___tm_struct_layout.tm_isdst))>>2)]
-      };
-      var pattern = Pointer_stringify(format);
-      // expand format
-      var EXPANSION_RULES_1 = {
-        '%c': '%a %b %d %H:%M:%S %Y',     // Replaced by the locale's appropriate date and time representation - e.g., Mon Aug  3 14:02:01 2013
-        '%D': '%m/%d/%y',                 // Equivalent to %m / %d / %y
-        '%F': '%Y-%m-%d',                 // Equivalent to %Y - %m - %d
-        '%h': '%b',                       // Equivalent to %b
-        '%r': '%I:%M:%S %p',              // Replaced by the time in a.m. and p.m. notation
-        '%R': '%H:%M',                    // Replaced by the time in 24-hour notation
-        '%T': '%H:%M:%S',                 // Replaced by the time
-        '%x': '%m/%d/%y',                 // Replaced by the locale's appropriate date representation
-        '%X': '%H:%M:%S',                 // Replaced by the locale's appropriate date representation
-      };
-      for (var rule in EXPANSION_RULES_1) {
-        pattern = pattern.replace(new RegExp(rule, 'g'), EXPANSION_RULES_1[rule]);
-      }
-      var WEEKDAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
-      var MONTHS = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
-      var leadingSomething = function(value, digits, character) {
-        var str = typeof value === 'number' ? value.toString() : (value || '');
-        while (str.length < digits) {
-          str = character[0]+str;
-        }
-        return str;
-      };
-      var leadingNulls = function(value, digits) {
-        return leadingSomething(value, digits, '0');
-      };
-      var compareByDay = function(date1, date2) {
-        var sgn = function(value) {
-          return value < 0 ? -1 : (value > 0 ? 1 : 0);
-        };
-        var compare;
-        if ((compare = sgn(date1.getFullYear()-date2.getFullYear())) === 0) {
-          if ((compare = sgn(date1.getMonth()-date2.getMonth())) === 0) {
-            compare = sgn(date1.getDate()-date2.getDate());
-          }
-        }
-        return compare;
-      };
-      var getFirstWeekStartDate = function(janFourth) {
-          switch (janFourth.getDay()) {
-            case 0: // Sunday
-              return new Date(janFourth.getFullYear()-1, 11, 29);
-            case 1: // Monday
-              return janFourth;
-            case 2: // Tuesday
-              return new Date(janFourth.getFullYear(), 0, 3);
-            case 3: // Wednesday
-              return new Date(janFourth.getFullYear(), 0, 2);
-            case 4: // Thursday
-              return new Date(janFourth.getFullYear(), 0, 1);
-            case 5: // Friday
-              return new Date(janFourth.getFullYear()-1, 11, 31);
-            case 6: // Saturday
-              return new Date(janFourth.getFullYear()-1, 11, 30);
-          }
-      };
-      var getWeekBasedYear = function(date) {
-          var thisDate = __addDays(new Date(date.tm_year+1900, 0, 1), date.tm_yday);
-          var janFourthThisYear = new Date(thisDate.getFullYear(), 0, 4);
-          var janFourthNextYear = new Date(thisDate.getFullYear()+1, 0, 4);
-          var firstWeekStartThisYear = getFirstWeekStartDate(janFourthThisYear);
-          var firstWeekStartNextYear = getFirstWeekStartDate(janFourthNextYear);
-          if (compareByDay(firstWeekStartThisYear, thisDate) <= 0) {
-            // this date is after the start of the first week of this year
-            if (compareByDay(firstWeekStartNextYear, thisDate) <= 0) {
-              return thisDate.getFullYear()+1;
-            } else {
-              return thisDate.getFullYear();
-            }
-          } else { 
-            return thisDate.getFullYear()-1;
-          }
-      };
-      var EXPANSION_RULES_2 = {
-        '%a': function(date) {
-          return WEEKDAYS[date.tm_wday].substring(0,3);
-        },
-        '%A': function(date) {
-          return WEEKDAYS[date.tm_wday];
-        },
-        '%b': function(date) {
-          return MONTHS[date.tm_mon].substring(0,3);
-        },
-        '%B': function(date) {
-          return MONTHS[date.tm_mon];
-        },
-        '%C': function(date) {
-          var year = date.tm_year+1900;
-          return leadingNulls(Math.floor(year/100),2);
-        },
-        '%d': function(date) {
-          return leadingNulls(date.tm_mday, 2);
-        },
-        '%e': function(date) {
-          return leadingSomething(date.tm_mday, 2, ' ');
-        },
-        '%g': function(date) {
-          // %g, %G, and %V give values according to the ISO 8601:2000 standard week-based year. 
-          // In this system, weeks begin on a Monday and week 1 of the year is the week that includes 
-          // January 4th, which is also the week that includes the first Thursday of the year, and 
-          // is also the first week that contains at least four days in the year. 
-          // If the first Monday of January is the 2nd, 3rd, or 4th, the preceding days are part of 
-          // the last week of the preceding year; thus, for Saturday 2nd January 1999, 
-          // %G is replaced by 1998 and %V is replaced by 53. If December 29th, 30th, 
-          // or 31st is a Monday, it and any following days are part of week 1 of the following year. 
-          // Thus, for Tuesday 30th December 1997, %G is replaced by 1998 and %V is replaced by 01.
-          return getWeekBasedYear(date).toString().substring(2);
-        },
-        '%G': function(date) {
-          return getWeekBasedYear(date);
-        },
-        '%H': function(date) {
-          return leadingNulls(date.tm_hour, 2);
-        },
-        '%I': function(date) {
-          return leadingNulls(date.tm_hour < 13 ? date.tm_hour : date.tm_hour-12, 2);
-        },
-        '%j': function(date) {
-          // Day of the year (001-366)
-          return leadingNulls(date.tm_mday+__arraySum(__isLeapYear(date.tm_year+1900) ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR, date.tm_mon-1), 3);
-        },
-        '%m': function(date) {
-          return leadingNulls(date.tm_mon+1, 2);
-        },
-        '%M': function(date) {
-          return leadingNulls(date.tm_min, 2);
-        },
-        '%n': function() {
-          return '\n';
-        },
-        '%p': function(date) {
-          if (date.tm_hour > 0 && date.tm_hour < 13) {
-            return 'AM';
-          } else {
-            return 'PM';
-          }
-        },
-        '%S': function(date) {
-          return leadingNulls(date.tm_sec, 2);
-        },
-        '%t': function() {
-          return '\t';
-        },
-        '%u': function(date) {
-          var day = new Date(date.tm_year+1900, date.tm_mon+1, date.tm_mday, 0, 0, 0, 0);
-          return day.getDay() || 7;
-        },
-        '%U': function(date) {
-          // Replaced by the week number of the year as a decimal number [00,53]. 
-          // The first Sunday of January is the first day of week 1; 
-          // days in the new year before this are in week 0. [ tm_year, tm_wday, tm_yday]
-          var janFirst = new Date(date.tm_year+1900, 0, 1);
-          var firstSunday = janFirst.getDay() === 0 ? janFirst : __addDays(janFirst, 7-janFirst.getDay());
-          var endDate = new Date(date.tm_year+1900, date.tm_mon, date.tm_mday);
-          // is target date after the first Sunday?
-          if (compareByDay(firstSunday, endDate) < 0) {
-            // calculate difference in days between first Sunday and endDate
-            var februaryFirstUntilEndMonth = __arraySum(__isLeapYear(endDate.getFullYear()) ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR, endDate.getMonth()-1)-31;
-            var firstSundayUntilEndJanuary = 31-firstSunday.getDate();
-            var days = firstSundayUntilEndJanuary+februaryFirstUntilEndMonth+endDate.getDate();
-            return leadingNulls(Math.ceil(days/7), 2);
-          }
-          return compareByDay(firstSunday, janFirst) === 0 ? '01': '00';
-        },
-        '%V': function(date) {
-          // Replaced by the week number of the year (Monday as the first day of the week) 
-          // as a decimal number [01,53]. If the week containing 1 January has four 
-          // or more days in the new year, then it is considered week 1. 
-          // Otherwise, it is the last week of the previous year, and the next week is week 1. 
-          // Both January 4th and the first Thursday of January are always in week 1. [ tm_year, tm_wday, tm_yday]
-          var janFourthThisYear = new Date(date.tm_year+1900, 0, 4);
-          var janFourthNextYear = new Date(date.tm_year+1901, 0, 4);
-          var firstWeekStartThisYear = getFirstWeekStartDate(janFourthThisYear);
-          var firstWeekStartNextYear = getFirstWeekStartDate(janFourthNextYear);
-          var endDate = __addDays(new Date(date.tm_year+1900, 0, 1), date.tm_yday);
-          if (compareByDay(endDate, firstWeekStartThisYear) < 0) {
-            // if given date is before this years first week, then it belongs to the 53rd week of last year
-            return '53';
-          } 
-          if (compareByDay(firstWeekStartNextYear, endDate) <= 0) {
-            // if given date is after next years first week, then it belongs to the 01th week of next year
-            return '01';
-          }
-          // given date is in between CW 01..53 of this calendar year
-          var daysDifference;
-          if (firstWeekStartThisYear.getFullYear() < date.tm_year+1900) {
-            // first CW of this year starts last year
-            daysDifference = date.tm_yday+32-firstWeekStartThisYear.getDate()
-          } else {
-            // first CW of this year starts this year
-            daysDifference = date.tm_yday+1-firstWeekStartThisYear.getDate();
-          }
-          return leadingNulls(Math.ceil(daysDifference/7), 2);
-        },
-        '%w': function(date) {
-          var day = new Date(date.tm_year+1900, date.tm_mon+1, date.tm_mday, 0, 0, 0, 0);
-          return day.getDay();
-        },
-        '%W': function(date) {
-          // Replaced by the week number of the year as a decimal number [00,53]. 
-          // The first Monday of January is the first day of week 1; 
-          // days in the new year before this are in week 0. [ tm_year, tm_wday, tm_yday]
-          var janFirst = new Date(date.tm_year, 0, 1);
-          var firstMonday = janFirst.getDay() === 1 ? janFirst : __addDays(janFirst, janFirst.getDay() === 0 ? 1 : 7-janFirst.getDay()+1);
-          var endDate = new Date(date.tm_year+1900, date.tm_mon, date.tm_mday);
-          // is target date after the first Monday?
-          if (compareByDay(firstMonday, endDate) < 0) {
-            var februaryFirstUntilEndMonth = __arraySum(__isLeapYear(endDate.getFullYear()) ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR, endDate.getMonth()-1)-31;
-            var firstMondayUntilEndJanuary = 31-firstMonday.getDate();
-            var days = firstMondayUntilEndJanuary+februaryFirstUntilEndMonth+endDate.getDate();
-            return leadingNulls(Math.ceil(days/7), 2);
-          }
-          return compareByDay(firstMonday, janFirst) === 0 ? '01': '00';
-        },
-        '%y': function(date) {
-          // Replaced by the last two digits of the year as a decimal number [00,99]. [ tm_year]
-          return (date.tm_year+1900).toString().substring(2);
-        },
-        '%Y': function(date) {
-          // Replaced by the year as a decimal number (for example, 1997). [ tm_year]
-          return date.tm_year+1900;
-        },
-        '%z': function(date) {
-          // Replaced by the offset from UTC in the ISO 8601:2000 standard format ( +hhmm or -hhmm ),
-          // or by no characters if no timezone is determinable. 
-          // For example, "-0430" means 4 hours 30 minutes behind UTC (west of Greenwich). 
-          // If tm_isdst is zero, the standard time offset is used. 
-          // If tm_isdst is greater than zero, the daylight savings time offset is used. 
-          // If tm_isdst is negative, no characters are returned. 
-          // FIXME: we cannot determine time zone (or can we?)
-          return '';
-        },
-        '%Z': function(date) {
-          // Replaced by the timezone name or abbreviation, or by no bytes if no timezone information exists. [ tm_isdst]
-          // FIXME: we cannot determine time zone (or can we?)
-          return '';
-        },
-        '%%': function() {
-          return '%';
-        }
-      };
-      for (var rule in EXPANSION_RULES_2) {
-        if (pattern.indexOf(rule) >= 0) {
-          pattern = pattern.replace(new RegExp(rule, 'g'), EXPANSION_RULES_2[rule](date));
-        }
-      }
-      var bytes = intArrayFromString(pattern, false);
-      if (bytes.length > maxsize) {
-        return 0;
-      } 
-      writeArrayToMemory(bytes, s);
-      return bytes.length-1;
-    }var _strftime_l=_strftime;
-  function _isspace(chr) {
-      return (chr == 32) || (chr >= 9 && chr <= 13);
-    }
-  function __parseInt64(str, endptr, base, min, max, unsign) {
-      var isNegative = false;
-      // Skip space.
-      while (_isspace(HEAP8[(str)])) str++;
-      // Check for a plus/minus sign.
-      if (HEAP8[(str)] == 45) {
-        str++;
-        isNegative = true;
-      } else if (HEAP8[(str)] == 43) {
-        str++;
-      }
-      // Find base.
-      var ok = false;
-      var finalBase = base;
-      if (!finalBase) {
-        if (HEAP8[(str)] == 48) {
-          if (HEAP8[((str+1)|0)] == 120 ||
-              HEAP8[((str+1)|0)] == 88) {
-            finalBase = 16;
-            str += 2;
-          } else {
-            finalBase = 8;
-            ok = true; // we saw an initial zero, perhaps the entire thing is just "0"
-          }
-        }
-      } else if (finalBase==16) {
-        if (HEAP8[(str)] == 48) {
-          if (HEAP8[((str+1)|0)] == 120 ||
-              HEAP8[((str+1)|0)] == 88) {
-            str += 2;
-          }
-        }
-      }
-      if (!finalBase) finalBase = 10;
-      start = str;
-      // Get digits.
-      var chr;
-      while ((chr = HEAP8[(str)]) != 0) {
-        var digit = parseInt(String.fromCharCode(chr), finalBase);
-        if (isNaN(digit)) {
-          break;
-        } else {
-          str++;
-          ok = true;
-        }
-      }
-      if (!ok) {
-        ___setErrNo(ERRNO_CODES.EINVAL);
-        return ((asm["setTempRet0"](0),0)|0);
-      }
-      // Set end pointer.
-      if (endptr) {
-        HEAP32[((endptr)>>2)]=str
-      }
-      try {
-        var numberString = isNegative ? '-'+Pointer_stringify(start, str - start) : Pointer_stringify(start, str - start);
-        i64Math.fromString(numberString, finalBase, min, max, unsign);
-      } catch(e) {
-        ___setErrNo(ERRNO_CODES.ERANGE); // not quite correct
-      }
-      return ((asm["setTempRet0"](((HEAP32[(((tempDoublePtr)+(4))>>2)])|0)),((HEAP32[((tempDoublePtr)>>2)])|0))|0);
-    }function _strtoull(str, endptr, base) {
-      return __parseInt64(str, endptr, base, 0, '18446744073709551615', true);  // ULONG_MAX.
-    }var _strtoull_l=_strtoull;
-  function _strtoll(str, endptr, base) {
-      return __parseInt64(str, endptr, base, '-9223372036854775808', '9223372036854775807');  // LLONG_MIN, LLONG_MAX.
-    }var _strtoll_l=_strtoll;
-  function _uselocale(locale) {
-      return 0;
-    }
-  function ___locale_mb_cur_max() { throw '__locale_mb_cur_max not implemented' }
-  var _llvm_va_start=undefined;
-  function _sprintf(s, format, varargs) {
-      // int sprintf(char *restrict s, const char *restrict format, ...);
-      // http://pubs.opengroup.org/onlinepubs/000095399/functions/printf.html
-      return _snprintf(s, undefined, format, varargs);
-    }function _asprintf(s, format, varargs) {
-      return _sprintf(-s, format, varargs);
-    }function _vasprintf(s, format, va_arg) {
-      return _asprintf(s, format, HEAP32[((va_arg)>>2)]);
-    }
-  function _llvm_va_end() {}
-  function _vsnprintf(s, n, format, va_arg) {
-      return _snprintf(s, n, format, HEAP32[((va_arg)>>2)]);
-    }
-  function _vsscanf(s, format, va_arg) {
-      return _sscanf(s, format, HEAP32[((va_arg)>>2)]);
-    }
-  function _sbrk(bytes) {
-      // Implement a Linux-like 'memory area' for our 'process'.
-      // Changes the size of the memory area by |bytes|; returns the
-      // address of the previous top ('break') of the memory area
-      // We control the "dynamic" memory - DYNAMIC_BASE to DYNAMICTOP
-      var self = _sbrk;
-      if (!self.called) {
-        DYNAMICTOP = alignMemoryPage(DYNAMICTOP); // make sure we start out aligned
-        self.called = true;
-        assert(Runtime.dynamicAlloc);
-        self.alloc = Runtime.dynamicAlloc;
-        Runtime.dynamicAlloc = function() { abort('cannot dynamically allocate, sbrk now has control') };
-      }
-      var ret = DYNAMICTOP;
-      if (bytes != 0) self.alloc(bytes);
-      return ret;  // Previous break location.
-    }
-  function _time(ptr) {
-      var ret = Math.floor(Date.now()/1000);
-      if (ptr) {
-        HEAP32[((ptr)>>2)]=ret
-      }
-      return ret;
-    }
-  function ___cxa_call_unexpected(exception) {
-      Module.printErr('Unexpected exception thrown, this is not properly supported - aborting');
-      ABORT = true;
-      throw exception;
-    }
-  var Browser={mainLoop:{scheduler:null,shouldPause:false,paused:false,queue:[],pause:function () {
-          Browser.mainLoop.shouldPause = true;
-        },resume:function () {
-          if (Browser.mainLoop.paused) {
-            Browser.mainLoop.paused = false;
-            Browser.mainLoop.scheduler();
-          }
-          Browser.mainLoop.shouldPause = false;
-        },updateStatus:function () {
-          if (Module['setStatus']) {
-            var message = Module['statusMessage'] || 'Please wait...';
-            var remaining = Browser.mainLoop.remainingBlockers;
-            var expected = Browser.mainLoop.expectedBlockers;
-            if (remaining) {
-              if (remaining < expected) {
-                Module['setStatus'](message + ' (' + (expected - remaining) + '/' + expected + ')');
-              } else {
-                Module['setStatus'](message);
-              }
-            } else {
-              Module['setStatus']('');
-            }
-          }
-        }},isFullScreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:function () {
-        if (!Module["preloadPlugins"]) Module["preloadPlugins"] = []; // needs to exist even in workers
-        if (Browser.initted || ENVIRONMENT_IS_WORKER) return;
-        Browser.initted = true;
-        try {
-          new Blob();
-          Browser.hasBlobConstructor = true;
-        } catch(e) {
-          Browser.hasBlobConstructor = false;
-          console.log("warning: no blob constructor, cannot create blobs with mimetypes");
-        }
-        Browser.BlobBuilder = typeof MozBlobBuilder != "undefined" ? MozBlobBuilder : (typeof WebKitBlobBuilder != "undefined" ? WebKitBlobBuilder : (!Browser.hasBlobConstructor ? console.log("warning: no BlobBuilder") : null));
-        Browser.URLObject = typeof window != "undefined" ? (window.URL ? window.URL : window.webkitURL) : undefined;
-        if (!Module.noImageDecoding && typeof Browser.URLObject === 'undefined') {
-          console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.");
-          Module.noImageDecoding = true;
-        }
-        // Support for plugins that can process preloaded files. You can add more of these to
-        // your app by creating and appending to Module.preloadPlugins.
-        //
-        // Each plugin is asked if it can handle a file based on the file's name. If it can,
-        // it is given the file's raw data. When it is done, it calls a callback with the file's
-        // (possibly modified) data. For example, a plugin might decompress a file, or it
-        // might create some side data structure for use later (like an Image element, etc.).
-        var imagePlugin = {};
-        imagePlugin['canHandle'] = function(name) {
-          return !Module.noImageDecoding && /\.(jpg|jpeg|png|bmp)$/i.test(name);
-        };
-        imagePlugin['handle'] = function(byteArray, name, onload, onerror) {
-          var b = null;
-          if (Browser.hasBlobConstructor) {
-            try {
-              b = new Blob([byteArray], { type: Browser.getMimetype(name) });
-              if (b.size !== byteArray.length) { // Safari bug #118630
-                // Safari's Blob can only take an ArrayBuffer
-                b = new Blob([(new Uint8Array(byteArray)).buffer], { type: Browser.getMimetype(name) });
-              }
-            } catch(e) {
-              Runtime.warnOnce('Blob constructor present but fails: ' + e + '; falling back to blob builder');
-            }
-          }
-          if (!b) {
-            var bb = new Browser.BlobBuilder();
-            bb.append((new Uint8Array(byteArray)).buffer); // we need to pass a buffer, and must copy the array to get the right data range
-            b = bb.getBlob();
-          }
-          var url = Browser.URLObject.createObjectURL(b);
-          var img = new Image();
-          img.onload = function() {
-            assert(img.complete, 'Image ' + name + ' could not be decoded');
-            var canvas = document.createElement('canvas');
-            canvas.width = img.width;
-            canvas.height = img.height;
-            var ctx = canvas.getContext('2d');
-            ctx.drawImage(img, 0, 0);
-            Module["preloadedImages"][name] = canvas;
-            Browser.URLObject.revokeObjectURL(url);
-            if (onload) onload(byteArray);
-          };
-          img.onerror = function(event) {
-            console.log('Image ' + url + ' could not be decoded');
-            if (onerror) onerror();
-          };
-          img.src = url;
-        };
-        Module['preloadPlugins'].push(imagePlugin);
-        var audioPlugin = {};
-        audioPlugin['canHandle'] = function(name) {
-          return !Module.noAudioDecoding && name.substr(-4) in { '.ogg': 1, '.wav': 1, '.mp3': 1 };
-        };
-        audioPlugin['handle'] = function(byteArray, name, onload, onerror) {
-          var done = false;
-          function finish(audio) {
-            if (done) return;
-            done = true;
-            Module["preloadedAudios"][name] = audio;
-            if (onload) onload(byteArray);
-          }
-          function fail() {
-            if (done) return;
-            done = true;
-            Module["preloadedAudios"][name] = new Audio(); // empty shim
-            if (onerror) onerror();
-          }
-          if (Browser.hasBlobConstructor) {
-            try {
-              var b = new Blob([byteArray], { type: Browser.getMimetype(name) });
-            } catch(e) {
-              return fail();
-            }
-            var url = Browser.URLObject.createObjectURL(b); // XXX we never revoke this!
-            var audio = new Audio();
-            audio.addEventListener('canplaythrough', function() { finish(audio) }, false); // use addEventListener due to chromium bug 124926
-            audio.onerror = function(event) {
-              if (done) return;
-              console.log('warning: browser could not fully decode audio ' + name + ', trying slower base64 approach');
-              function encode64(data) {
-                var BASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
-                var PAD = '=';
-                var ret = '';
-                var leftchar = 0;
-                var leftbits = 0;
-                for (var i = 0; i < data.length; i++) {
-                  leftchar = (leftchar << 8) | data[i];
-                  leftbits += 8;
-                  while (leftbits >= 6) {
-                    var curr = (leftchar >> (leftbits-6)) & 0x3f;
-                    leftbits -= 6;
-                    ret += BASE[curr];
-                  }
-                }
-                if (leftbits == 2) {
-                  ret += BASE[(leftchar&3) << 4];
-                  ret += PAD + PAD;
-                } else if (leftbits == 4) {
-                  ret += BASE[(leftchar&0xf) << 2];
-                  ret += PAD;
-                }
-                return ret;
-              }
-              audio.src = 'data:audio/x-' + name.substr(-3) + ';base64,' + encode64(byteArray);
-              finish(audio); // we don't wait for confirmation this worked - but it's worth trying
-            };
-            audio.src = url;
-            // workaround for chrome bug 124926 - we do not always get oncanplaythrough or onerror
-            Browser.safeSetTimeout(function() {
-              finish(audio); // try to use it even though it is not necessarily ready to play
-            }, 10000);
-          } else {
-            return fail();
-          }
-        };
-        Module['preloadPlugins'].push(audioPlugin);
-        // Canvas event setup
-        var canvas = Module['canvas'];
-        canvas.requestPointerLock = canvas['requestPointerLock'] ||
-                                    canvas['mozRequestPointerLock'] ||
-                                    canvas['webkitRequestPointerLock'];
-        canvas.exitPointerLock = document['exitPointerLock'] ||
-                                 document['mozExitPointerLock'] ||
-                                 document['webkitExitPointerLock'] ||
-                                 function(){}; // no-op if function does not exist
-        canvas.exitPointerLock = canvas.exitPointerLock.bind(document);
-        function pointerLockChange() {
-          Browser.pointerLock = document['pointerLockElement'] === canvas ||
-                                document['mozPointerLockElement'] === canvas ||
-                                document['webkitPointerLockElement'] === canvas;
-        }
-        document.addEventListener('pointerlockchange', pointerLockChange, false);
-        document.addEventListener('mozpointerlockchange', pointerLockChange, false);
-        document.addEventListener('webkitpointerlockchange', pointerLockChange, false);
-        if (Module['elementPointerLock']) {
-          canvas.addEventListener("click", function(ev) {
-            if (!Browser.pointerLock && canvas.requestPointerLock) {
-              canvas.requestPointerLock();
-              ev.preventDefault();
-            }
-          }, false);
-        }
-      },createContext:function (canvas, useWebGL, setInModule) {
-        var ctx;
-        try {
-          if (useWebGL) {
-            ctx = canvas.getContext('experimental-webgl', {
-              alpha: false
-            });
-          } else {
-            ctx = canvas.getContext('2d');
-          }
-          if (!ctx) throw ':(';
-        } catch (e) {
-          Module.print('Could not create canvas - ' + e);
-          return null;
-        }
-        if (useWebGL) {
-          // Set the background of the WebGL canvas to black
-          canvas.style.backgroundColor = "black";
-          // Warn on context loss
-          canvas.addEventListener('webglcontextlost', function(event) {
-            alert('WebGL context lost. You will need to reload the page.');
-          }, false);
-        }
-        if (setInModule) {
-          Module.ctx = ctx;
-          Module.useWebGL = useWebGL;
-          Browser.moduleContextCreatedCallbacks.forEach(function(callback) { callback() });
-          Browser.init();
-        }
-        return ctx;
-      },destroyContext:function (canvas, useWebGL, setInModule) {},fullScreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullScreen:function (lockPointer, resizeCanvas) {
-        Browser.lockPointer = lockPointer;
-        Browser.resizeCanvas = resizeCanvas;
-        if (typeof Browser.lockPointer === 'undefined') Browser.lockPointer = true;
-        if (typeof Browser.resizeCanvas === 'undefined') Browser.resizeCanvas = false;
-        var canvas = Module['canvas'];
-        function fullScreenChange() {
-          Browser.isFullScreen = false;
-          if ((document['webkitFullScreenElement'] || document['webkitFullscreenElement'] ||
-               document['mozFullScreenElement'] || document['mozFullscreenElement'] ||
-               document['fullScreenElement'] || document['fullscreenElement']) === canvas) {
-            canvas.cancelFullScreen = document['cancelFullScreen'] ||
-                                      document['mozCancelFullScreen'] ||
-                                      document['webkitCancelFullScreen'];
-            canvas.cancelFullScreen = canvas.cancelFullScreen.bind(document);
-            if (Browser.lockPointer) canvas.requestPointerLock();
-            Browser.isFullScreen = true;
-            if (Browser.resizeCanvas) Browser.setFullScreenCanvasSize();
-          } else if (Browser.resizeCanvas){
-            Browser.setWindowedCanvasSize();
-          }
-          if (Module['onFullScreen']) Module['onFullScreen'](Browser.isFullScreen);
-        }
-        if (!Browser.fullScreenHandlersInstalled) {
-          Browser.fullScreenHandlersInstalled = true;
-          document.addEventListener('fullscreenchange', fullScreenChange, false);
-          document.addEventListener('mozfullscreenchange', fullScreenChange, false);
-          document.addEventListener('webkitfullscreenchange', fullScreenChange, false);
-        }
-        canvas.requestFullScreen = canvas['requestFullScreen'] ||
-                                   canvas['mozRequestFullScreen'] ||
-                                   (canvas['webkitRequestFullScreen'] ? function() { canvas['webkitRequestFullScreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null);
-        canvas.requestFullScreen();
-      },requestAnimationFrame:function (func) {
-        if (!window.requestAnimationFrame) {
-          window.requestAnimationFrame = window['requestAnimationFrame'] ||
-                                         window['mozRequestAnimationFrame'] ||
-                                         window['webkitRequestAnimationFrame'] ||
-                                         window['msRequestAnimationFrame'] ||
-                                         window['oRequestAnimationFrame'] ||
-                                         window['setTimeout'];
-        }
-        window.requestAnimationFrame(func);
-      },safeCallback:function (func) {
-        return function() {
-          if (!ABORT) return func.apply(null, arguments);
-        };
-      },safeRequestAnimationFrame:function (func) {
-        return Browser.requestAnimationFrame(function() {
-          if (!ABORT) func();
-        });
-      },safeSetTimeout:function (func, timeout) {
-        return setTimeout(function() {
-          if (!ABORT) func();
-        }, timeout);
-      },safeSetInterval:function (func, timeout) {
-        return setInterval(function() {
-          if (!ABORT) func();
-        }, timeout);
-      },getMimetype:function (name) {
-        return {
-          'jpg': 'image/jpeg',
-          'jpeg': 'image/jpeg',
-          'png': 'image/png',
-          'bmp': 'image/bmp',
-          'ogg': 'audio/ogg',
-          'wav': 'audio/wav',
-          'mp3': 'audio/mpeg'
-        }[name.substr(name.lastIndexOf('.')+1)];
-      },getUserMedia:function (func) {
-        if(!window.getUserMedia) {
-          window.getUserMedia = navigator['getUserMedia'] ||
-                                navigator['mozGetUserMedia'];
-        }
-        window.getUserMedia(func);
-      },getMovementX:function (event) {
-        return event['movementX'] ||
-               event['mozMovementX'] ||
-               event['webkitMovementX'] ||
-               0;
-      },getMovementY:function (event) {
-        return event['movementY'] ||
-               event['mozMovementY'] ||
-               event['webkitMovementY'] ||
-               0;
-      },mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,calculateMouseEvent:function (event) { // event should be mousemove, mousedown or mouseup
-        if (Browser.pointerLock) {
-          // When the pointer is locked, calculate the coordinates
-          // based on the movement of the mouse.
-          // Workaround for Firefox bug 764498
-          if (event.type != 'mousemove' &&
-              ('mozMovementX' in event)) {
-            Browser.mouseMovementX = Browser.mouseMovementY = 0;
-          } else {
-            Browser.mouseMovementX = Browser.getMovementX(event);
-            Browser.mouseMovementY = Browser.getMovementY(event);
-          }
-          // check if SDL is available
-          if (typeof SDL != "undefined") {
-               Browser.mouseX = SDL.mouseX + Browser.mouseMovementX;
-               Browser.mouseY = SDL.mouseY + Browser.mouseMovementY;
-          } else {
-               // just add the mouse delta to the current absolut mouse position
-               // FIXME: ideally this should be clamped against the canvas size and zero
-               Browser.mouseX += Browser.mouseMovementX;
-               Browser.mouseY += Browser.mouseMovementY;
-          }        
-        } else {
-          // Otherwise, calculate the movement based on the changes
-          // in the coordinates.
-          var rect = Module["canvas"].getBoundingClientRect();
-          var x, y;
-          if (event.type == 'touchstart' ||
-              event.type == 'touchend' ||
-              event.type == 'touchmove') {
-            var t = event.touches.item(0);
-            if (t) {
-              x = t.pageX - (window.scrollX + rect.left);
-              y = t.pageY - (window.scrollY + rect.top);
-            } else {
-              return;
-            }
-          } else {
-            x = event.pageX - (window.scrollX + rect.left);
-            y = event.pageY - (window.scrollY + rect.top);
-          }
-          // the canvas might be CSS-scaled compared to its backbuffer;
-          // SDL-using content will want mouse coordinates in terms
-          // of backbuffer units.
-          var cw = Module["canvas"].width;
-          var ch = Module["canvas"].height;
-          x = x * (cw / rect.width);
-          y = y * (ch / rect.height);
-          Browser.mouseMovementX = x - Browser.mouseX;
-          Browser.mouseMovementY = y - Browser.mouseY;
-          Browser.mouseX = x;
-          Browser.mouseY = y;
-        }
-      },xhrLoad:function (url, onload, onerror) {
-        var xhr = new XMLHttpRequest();
-        xhr.open('GET', url, true);
-        xhr.responseType = 'arraybuffer';
-        xhr.onload = function() {
-          if (xhr.status == 200 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0
-            onload(xhr.response);
-          } else {
-            onerror();
-          }
-        };
-        xhr.onerror = onerror;
-        xhr.send(null);
-      },asyncLoad:function (url, onload, onerror, noRunDep) {
-        Browser.xhrLoad(url, function(arrayBuffer) {
-          assert(arrayBuffer, 'Loading data file "' + url + '" failed (no arrayBuffer).');
-          onload(new Uint8Array(arrayBuffer));
-          if (!noRunDep) removeRunDependency('al ' + url);
-        }, function(event) {
-          if (onerror) {
-            onerror();
-          } else {
-            throw 'Loading data file "' + url + '" failed.';
-          }
-        });
-        if (!noRunDep) addRunDependency('al ' + url);
-      },resizeListeners:[],updateResizeListeners:function () {
-        var canvas = Module['canvas'];
-        Browser.resizeListeners.forEach(function(listener) {
-          listener(canvas.width, canvas.height);
-        });
-      },setCanvasSize:function (width, height, noUpdates) {
-        var canvas = Module['canvas'];
-        canvas.width = width;
-        canvas.height = height;
-        if (!noUpdates) Browser.updateResizeListeners();
-      },windowedWidth:0,windowedHeight:0,setFullScreenCanvasSize:function () {
-        var canvas = Module['canvas'];
-        this.windowedWidth = canvas.width;
-        this.windowedHeight = canvas.height;
-        canvas.width = screen.width;
-        canvas.height = screen.height;
-        // check if SDL is available   
-        if (typeof SDL != "undefined") {
-               var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
-               flags = flags | 0x00800000; // set SDL_FULLSCREEN flag
-               HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
-        }
-        Browser.updateResizeListeners();
-      },setWindowedCanvasSize:function () {
-        var canvas = Module['canvas'];
-        canvas.width = this.windowedWidth;
-        canvas.height = this.windowedHeight;
-        // check if SDL is available       
-        if (typeof SDL != "undefined") {
-               var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
-               flags = flags & ~0x00800000; // clear SDL_FULLSCREEN flag
-               HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
-        }
-        Browser.updateResizeListeners();
-      }};
-_llvm_eh_exception.buf = allocate(12, "void*", ALLOC_STATIC);
-FS.staticInit();__ATINIT__.unshift({ func: function() { if (!Module["noFSInit"] && !FS.init.initialized) FS.init() } });__ATMAIN__.push({ func: function() { FS.ignorePermissions = false } });__ATEXIT__.push({ func: function() { FS.quit() } });Module["FS_createFolder"] = FS.createFolder;Module["FS_createPath"] = FS.createPath;Module["FS_createDataFile"] = FS.createDataFile;Module["FS_createPreloadedFile"] = FS.createPreloadedFile;Module["FS_createLazyFile"] = FS.createLazyFile;Module["FS_createLink"] = FS.createLink;Module["FS_createDevice"] = FS.createDevice;
-___errno_state = Runtime.staticAlloc(4); HEAP32[((___errno_state)>>2)]=0;
-_fgetc.ret = allocate([0], "i8", ALLOC_STATIC);
-Module["requestFullScreen"] = function(lockPointer, resizeCanvas) { Browser.requestFullScreen(lockPointer, resizeCanvas) };
-  Module["requestAnimationFrame"] = function(func) { Browser.requestAnimationFrame(func) };
-  Module["setCanvasSize"] = function(width, height, noUpdates) { Browser.setCanvasSize(width, height, noUpdates) };
-  Module["pauseMainLoop"] = function() { Browser.mainLoop.pause() };
-  Module["resumeMainLoop"] = function() { Browser.mainLoop.resume() };
-  Module["getUserMedia"] = function() { Browser.getUserMedia() }
-STACK_BASE = STACKTOP = Runtime.alignMemory(STATICTOP);
-staticSealed = true; // seal the static portion of memory
-STACK_MAX = STACK_BASE + 5242880;
-DYNAMIC_BASE = DYNAMICTOP = Runtime.alignMemory(STACK_MAX);
-assert(DYNAMIC_BASE < TOTAL_MEMORY); // Stack must fit in TOTAL_MEMORY; allocations from here on may enlarge TOTAL_MEMORY
- var cttz_i8 = allocate([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0], "i8", ALLOC_DYNAMIC);
-var Math_min = Math.min;
-function invoke_viiiii(index,a1,a2,a3,a4,a5) {
-  try {
-    Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
-  try {
-    Module["dynCall_viiiiiii"](index,a1,a2,a3,a4,a5,a6,a7);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_vi(index,a1) {
-  try {
-    Module["dynCall_vi"](index,a1);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_vii(index,a1,a2) {
-  try {
-    Module["dynCall_vii"](index,a1,a2);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_iii(index,a1,a2) {
-  try {
-    return Module["dynCall_iii"](index,a1,a2);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_iiiiii(index,a1,a2,a3,a4,a5) {
-  try {
-    return Module["dynCall_iiiiii"](index,a1,a2,a3,a4,a5);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_ii(index,a1) {
-  try {
-    return Module["dynCall_ii"](index,a1);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_iiii(index,a1,a2,a3) {
-  try {
-    return Module["dynCall_iiii"](index,a1,a2,a3);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_viiiiif(index,a1,a2,a3,a4,a5,a6) {
-  try {
-    Module["dynCall_viiiiif"](index,a1,a2,a3,a4,a5,a6);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_viii(index,a1,a2,a3) {
-  try {
-    Module["dynCall_viii"](index,a1,a2,a3);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
-  try {
-    Module["dynCall_viiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_v(index) {
-  try {
-    Module["dynCall_v"](index);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_iiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
-  try {
-    return Module["dynCall_iiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
-  try {
-    Module["dynCall_viiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_viiiiiif(index,a1,a2,a3,a4,a5,a6,a7) {
-  try {
-    Module["dynCall_viiiiiif"](index,a1,a2,a3,a4,a5,a6,a7);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6) {
-  try {
-    Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_iiiii(index,a1,a2,a3,a4) {
-  try {
-    return Module["dynCall_iiiii"](index,a1,a2,a3,a4);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function invoke_viiii(index,a1,a2,a3,a4) {
-  try {
-    Module["dynCall_viiii"](index,a1,a2,a3,a4);
-  } catch(e) {
-    if (typeof e !== 'number' && e !== 'longjmp') throw e;
-    asm["setThrew"](1, 0);
-  }
-}
-function asmPrintInt(x, y) {
-  Module.print('int ' + x + ',' + y);// + ' ' + new Error().stack);
-}
-function asmPrintFloat(x, y) {
-  Module.print('float ' + x + ',' + y);// + ' ' + new Error().stack);
-}
-// EMSCRIPTEN_START_ASM
-var asm=(function(global,env,buffer){"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.STACKTOP|0;var j=env.STACK_MAX|0;var k=env.tempDoublePtr|0;var l=env.ABORT|0;var m=env.cttz_i8|0;var n=env.ctlz_i8|0;var o=env._stdin|0;var p=env.__ZTVN10__cxxabiv117__class_type_infoE|0;var q=env.__ZTVN10__cxxabiv120__si_class_type_infoE|0;var r=env._stderr|0;var s=env.___fsmu8|0;var t=env._stdout|0;var u=env.___dso_handle|0;var v=+env.NaN;var w=+env.Infinity;var x=0;var y=0;var z=0;var A=0;var B=0,C=0,D=0,E=0,F=0.0,G=0,H=0,I=0,J=0.0;var K=0;var L=0;var M=0;var N=0;var O=0;var P=0;var Q=0;var R=0;var S=0;var T=0;var U=global.Math.floor;var V=global.Math.abs;var W=global.Math.sqrt;var X=global.Math.pow;var Y=global.Math.cos;var Z=global.Math.sin;var _=global.Math.tan;var $=global.Math.acos;var aa=global.Math.asin;var ab=global.Math.atan;var ac=global.Math.atan2;var ad=global.Math.exp;var ae=global.Math.log;var af=global.Math.ceil;var ag=global.Math.imul;var ah=env.abort;var ai=env.assert;var aj=env.asmPrintInt;var ak=env.asmPrintFloat;var al=env.min;var am=env.invoke_viiiii;var an=env.invoke_viiiiiii;var ao=env.invoke_vi;var ap=env.invoke_vii;var aq=env.invoke_iii;var ar=env.invoke_iiiiii;var as=env.invoke_ii;var at=env.invoke_iiii;var au=env.invoke_viiiiif;var av=env.invoke_viii;var aw=env.invoke_viiiiiiii;var ax=env.invoke_v;var ay=env.invoke_iiiiiiiii;var az=env.invoke_viiiiiiiii;var aA=env.invoke_viiiiiif;var aB=env.invoke_viiiiii;var aC=env.invoke_iiiii;var aD=env.invoke_viiii;var aE=env._llvm_lifetime_end;var aF=env.__scanString;var aG=env._pthread_mutex_lock;var aH=env.___cxa_end_catch;var aI=env._strtoull;var aJ=env.__isFloat;var aK=env._fflush;var aL=env.__isLeapYear;var aM=env._fwrite;var aN=env._send;var aO=env._llvm_umul_with_overflow_i32;var aP=env._isspace;var aQ=env._read;var aR=env.___cxa_guard_abort;var aS=env._newlocale;var aT=env.___gxx_personality_v0;var aU=env._pthread_cond_wait;var aV=env.___cxa_rethrow;var aW=env.___resumeException;var aX=env._llvm_va_end;var aY=env._vsscanf;var aZ=env._snprintf;var a_=env._fgetc;var a$=env._atexit;var a0=env.___cxa_free_exception;var a1=env.__Z8catcloseP8_nl_catd;var a2=env.___setErrNo;var a3=env._isxdigit;var a4=env._exit;var a5=env._sprintf;var a6=env.___ctype_b_loc;var a7=env._freelocale;var a8=env.__Z7catopenPKci;var a9=env._asprintf;var ba=env.___cxa_is_number_type;var bb=env.___cxa_does_inherit;var bc=env.___cxa_guard_acquire;var bd=env.___locale_mb_cur_max;var be=env.___cxa_begin_catch;var bf=env._recv;var bg=env.__parseInt64;var bh=env.__ZSt18uncaught_exceptionv;var bi=env.___cxa_call_unexpected;var bj=env.__exit;var bk=env._strftime;var bl=env.___cxa_throw;var bm=env._llvm_eh_exception;var bn=env._pread;var bo=env.__arraySum;var bp=env._log;var bq=env.___cxa_find_matching_catch;var br=env.__formatString;var bs=env._pthread_cond_broadcast;var bt=env.__ZSt9terminatev;var bu=env._pthread_mutex_unlock;var bv=env._sbrk;var bw=env.___errno_location;var bx=env._strerror;var by=env._llvm_lifetime_start;var bz=env.___cxa_guard_release;var bA=env._ungetc;var bB=env._uselocale;var bC=env._vsnprintf;var bD=env._sscanf;var bE=env._sysconf;var bF=env._fread;var bG=env._abort;var bH=env._isdigit;var bI=env._strtoll;var bJ=env.__addDays;var bK=env._floor;var bL=env.__reallyNegative;var bM=env.__Z7catgetsP8_nl_catdiiPKc;var bN=env._write;var bO=env.___cxa_allocate_exception;var bP=env.___cxa_pure_virtual;var bQ=env._vasprintf;var bR=env.___ctype_toupper_loc;var bS=env.___ctype_tolower_loc;var bT=env._pwrite;var bU=env._strerror_r;var bV=env._time;
-// EMSCRIPTEN_START_FUNCS
-function cc(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+7>>3<<3;return b|0}function cd(){return i|0}function ce(a){a=a|0;i=a}function cf(a,b){a=a|0;b=b|0;if((x|0)==0){x=a;y=b}}function cg(b){b=b|0;a[k]=a[b];a[k+1|0]=a[b+1|0];a[k+2|0]=a[b+2|0];a[k+3|0]=a[b+3|0]}function ch(b){b=b|0;a[k]=a[b];a[k+1|0]=a[b+1|0];a[k+2|0]=a[b+2|0];a[k+3|0]=a[b+3|0];a[k+4|0]=a[b+4|0];a[k+5|0]=a[b+5|0];a[k+6|0]=a[b+6|0];a[k+7|0]=a[b+7|0]}function ci(a){a=a|0;K=a}function cj(a){a=a|0;L=a}function ck(a){a=a|0;M=a}function cl(a){a=a|0;N=a}function cm(a){a=a|0;O=a}function cn(a){a=a|0;P=a}function co(a){a=a|0;Q=a}function cp(a){a=a|0;R=a}function cq(a){a=a|0;S=a}function cr(a){a=a|0;T=a}function cs(){c[q+8>>2]=250;c[q+12>>2]=128;c[q+16>>2]=62;c[q+20>>2]=150;c[q+24>>2]=8;c[q+28>>2]=10;c[q+32>>2]=2;c[q+36>>2]=2;c[p+8>>2]=250;c[p+12>>2]=244;c[p+16>>2]=62;c[p+20>>2]=150;c[p+24>>2]=8;c[p+28>>2]=26;c[p+32>>2]=4;c[p+36>>2]=8;c[2036]=p+8;c[2038]=p+8;c[2040]=q+8;c[2044]=q+8;c[2048]=q+8;c[2052]=q+8;c[2056]=q+8;c[2060]=p+8;c[2094]=q+8;c[2098]=q+8;c[2162]=q+8;c[2166]=q+8;c[2186]=p+8;c[2188]=q+8;c[2224]=q+8;c[2228]=q+8;c[2264]=q+8;c[2268]=q+8;c[2288]=p+8;c[2290]=p+8;c[2292]=q+8;c[2296]=q+8;c[2300]=q+8;c[2304]=p+8;c[2306]=p+8;c[2308]=p+8;c[2310]=p+8;c[2312]=p+8;c[2314]=p+8;c[2316]=p+8;c[2342]=q+8;c[2346]=p+8;c[2348]=q+8;c[2352]=q+8;c[2356]=q+8;c[2360]=p+8;c[2362]=p+8;c[2364]=p+8;c[2366]=p+8;c[2400]=p+8;c[2402]=p+8;c[2404]=p+8;c[2406]=q+8;c[2410]=q+8;c[2414]=q+8;c[2418]=q+8;c[2422]=q+8;c[2426]=q+8}function ct(a){a=a|0;var b=0,d=0;b=c[a>>2]|0;if((b|0)==0){return}d=a+4|0;a=c[d>>2]|0;if((b|0)!=(a|0)){c[d>>2]=a+(~((a-8+(-b|0)|0)>>>3)<<3)}kS(b);return}function cu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0.0,w=0,x=0,y=0.0,z=0.0;d=i;i=i+24|0;e=d|0;f=d+8|0;g=f|0;c[g>>2]=0;j=f+4|0;c[j>>2]=0;k=f+8|0;c[k>>2]=0;l=b-a|0;m=l>>3;do{if((m|0)==0){n=0;o=0}else{if(m>>>0>536870911){ir(f)}p=kO(l)|0;c[j>>2]=p;c[g>>2]=p;c[k>>2]=p+(m<<3);if((a|0)==(b|0)){n=p;o=p;break}else{q=a;r=p}do{if((r|0)==0){s=0}else{h[r>>3]=+h[q>>3];s=c[j>>2]|0}r=s+8|0;c[j>>2]=r;q=q+8|0;}while((q|0)!=(b|0));n=c[g>>2]|0;o=r}}while(0);cU(n,o,e);e=c[g>>2]|0;o=c[j>>2]|0;L23:do{if((e|0)==(o|0)){t=e}else{n=e;while(1){u=n+8|0;if((u|0)==(o|0)){t=e;break L23}v=+h[n>>3];if(v==+h[u>>3]){break}else{n=u}}if((n|0)==(o|0)){t=e;break}else{w=u;x=n;y=v}L28:while(1){r=w;do{r=r+8|0;if((r|0)==(o|0)){break L28}z=+h[r>>3];}while(y==z);b=x+8|0;h[b>>3]=z;w=r;x=b;y=z}t=c[g>>2]|0}}while(0);if((t|0)==0){i=d;return}g=c[j>>2]|0;if((t|0)!=(g|0)){c[j>>2]=g+(~((g-8+(-t|0)|0)>>>3)<<3)}kS(t);i=d;return}function cv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0.0,y=0,z=0.0;d=i;i=i+24|0;e=d|0;f=d+8|0;g=f|0;c[g>>2]=0;j=f+4|0;c[j>>2]=0;k=f+8|0;c[k>>2]=0;l=b-a|0;m=l>>3;do{if((m|0)==0){n=0;o=0}else{if(m>>>0>536870911){ir(f)}p=kO(l)|0;c[j>>2]=p;c[g>>2]=p;c[k>>2]=p+(m<<3);if((a|0)==(b|0)){n=p;o=p;break}else{q=a;r=p}do{if((r|0)==0){s=0}else{h[r>>3]=+h[q>>3];s=c[j>>2]|0}r=s+8|0;c[j>>2]=r;q=q+8|0;}while((q|0)!=(b|0));n=c[g>>2]|0;o=r}}while(0);cU(n,o,e);e=c[g>>2]|0;o=c[j>>2]|0;L58:do{if((e|0)==(o|0)){t=e;u=62}else{n=e;while(1){r=n+8|0;if((r|0)==(o|0)){v=e;break L58}if(+h[n>>3]==+h[r>>3]){t=n;u=62;break}else{n=r}}}}while(0);do{if((u|0)==62){if((t|0)==(o|0)){v=e;break}n=t+16|0;if((n|0)==(o|0)){v=e;break}r=n;n=t;w=+h[t>>3];while(1){x=+h[r>>3];if(w==x){y=n;z=w}else{b=n+8|0;h[b>>3]=x;y=b;z=x}b=r+8|0;if((b|0)==(o|0)){break}else{r=b;n=y;w=z}}v=c[g>>2]|0}}while(0);if((v|0)==0){i=d;return}g=c[j>>2]|0;if((v|0)!=(g|0)){c[j>>2]=g+(~((g-8+(-v|0)|0)>>>3)<<3)}kS(v);i=d;return}function cw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ab=0;d=i;i=i+8|0;e=d|0;f=e;g=i;i=i+8|0;j=g;k=i;i=i+1|0;i=i+7>>3<<3;l=i;i=i+8|0;m=i;i=i+8|0;n=i;i=i+1|0;i=i+7>>3<<3;o=i;i=i+24|0;p=i;i=i+8|0;q=i;i=i+8|0;r=b;s=r-a>>3;h[p>>3]=0.0;t=o|0;u=o+4|0;v=o+8|0;k$(o|0,0,24);do{if((s|0)==0){w=0;x=o+16|0;y=0;z=0;A=0;B=0}else{cO(o,s,p);C=c[u>>2]|0;D=o+16|0;E=c[D>>2]|0;F=c[v>>2]|0;G=C+(E>>>9<<2)|0;if((F|0)==(C|0)){w=0;x=D;y=F;z=E;A=C;B=G;break}w=(c[G>>2]|0)+((E&511)<<3)|0;x=D;y=F;z=E;A=C;B=G}}while(0);if((a|0)==(b|0)){H=A;I=z;J=y}else{y=a;a=w;w=B;while(1){B=a;z=(c[w>>2]|0)+4096-B>>3;A=y;p=r-A>>3;if((p|0)>(z|0)){K=y+(z<<3)|0;L=z}else{K=b;L=p}k_(a|0,y|0,K-A|0);do{if((L|0)==0){M=a;N=w}else{A=(B-(c[w>>2]|0)>>3)+L|0;if((A|0)>0){p=w+(((A|0)/512|0)<<2)|0;M=(c[p>>2]|0)+(((A|0)%512|0)<<3)|0;N=p;break}else{p=511-A|0;A=w+(((p|0)/-512|0)<<2)|0;M=(c[A>>2]|0)+(511-((p|0)%512|0)<<3)|0;N=A;break}}}while(0);if((K|0)==(b|0)){break}else{y=K;a=M;w=N}}H=c[u>>2]|0;I=c[x>>2]|0;J=c[v>>2]|0}N=H+(I>>>9<<2)|0;if((J|0)==(H|0)){J=o+20|0;O=0;P=0;Q=0;R=0;S=J;T=H+((I+(c[J>>2]|0)|0)>>>9<<2)|0}else{J=o+20|0;o=I+(c[J>>2]|0)|0;w=H+(o>>>9<<2)|0;O=(c[w>>2]|0)+((o&511)<<3)|0;P=0;Q=(c[N>>2]|0)+((I&511)<<3)|0;R=0;S=J;T=w}c[l>>2]=R|N;c[l+4>>2]=Q;c[m>>2]=P|T;c[m+4>>2]=O;cK(l,m,n);n=c[u>>2]|0;m=c[x>>2]|0;l=n+(m>>>9<<2)|0;if((c[v>>2]|0)==(n|0)){U=0;V=0;W=0;X=0;Y=n+((m+(c[S>>2]|0)|0)>>>9<<2)|0}else{O=m+(c[S>>2]|0)|0;T=n+(O>>>9<<2)|0;U=(c[T>>2]|0)+((O&511)<<3)|0;V=0;W=(c[l>>2]|0)+((m&511)<<3)|0;X=0;Y=T}c[e>>2]=X|l;c[e+4>>2]=W;c[g>>2]=V|Y;c[g+4>>2]=U;cI(q,f,j,k);k=c[u>>2]|0;j=c[x>>2]|0;f=k+(j>>>9<<2)|0;q=c[v>>2]|0;if((q|0)==(k|0)){Z=0;_=0}else{U=(c[S>>2]|0)+j|0;Z=(c[k+(U>>>9<<2)>>2]|0)+((U&511)<<3)|0;_=(c[f>>2]|0)+((j&511)<<3)|0}j=f;f=_;L112:while(1){_=f;do{if((_|0)==(Z|0)){break L112}_=_+8|0;}while((_-(c[j>>2]|0)|0)!=4096);_=j+4|0;j=_;f=c[_>>2]|0}c[S>>2]=0;S=q-k>>2;if(S>>>0>2){f=k;while(1){kS(c[f>>2]|0);j=(c[u>>2]|0)+4|0;c[u>>2]=j;Z=c[v>>2]|0;_=Z-j>>2;if(_>>>0>2){f=j}else{$=_;aa=j;ab=Z;break}}}else{$=S;aa=k;ab=q}switch($|0){case 1:{c[x>>2]=256;break};case 2:{c[x>>2]=512;break};default:{}}do{if((aa|0)!=(ab|0)){x=aa;do{kS(c[x>>2]|0);x=x+4|0;}while((x|0)!=(ab|0));x=c[u>>2]|0;$=c[v>>2]|0;if((x|0)==($|0)){break}c[v>>2]=$+(~(($-4+(-x|0)|0)>>>2)<<2)}}while(0);v=c[t>>2]|0;if((v|0)==0){i=d;return}kS(v);i=d;return}function cx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0.0,y=0,z=0;d=i;i=i+48|0;e=d|0;f=d+8|0;g=d+16|0;j=d+24|0;k=d+32|0;l=k|0;m=k;c[l>>2]=m;n=k+4|0;c[n>>2]=m;o=k+8|0;c[o>>2]=0;if((a|0)==(b|0)){p=m;q=0}else{k=a;a=m;r=0;while(1){s=kO(16)|0;t=s;u=s+8|0;if((u|0)!=0){h[u>>3]=+h[k>>3]}c[a+4>>2]=t;c[s>>2]=c[l>>2];c[l>>2]=t;c[s+4>>2]=m;v=(c[o>>2]|0)+1|0;c[o>>2]=v;s=k+8|0;if((s|0)==(b|0)){break}else{k=s;a=t;r=v}}p=c[n>>2]|0;q=v}c[e>>2]=p;c[f>>2]=m;cJ(g,e,f,q,j);j=c[n>>2]|0;if((j|0)!=(m|0)){q=j;while(1){j=c[q+4>>2]|0;L150:do{if((j|0)==(m|0)){w=m}else{x=+h[q+8>>3];f=j;while(1){if(x!=+h[f+8>>3]){w=f;break L150}e=c[f+4>>2]|0;if((e|0)==(m|0)){w=m;break}else{f=e}}}}while(0);if((j|0)==(w|0)){y=j}else{f=(c[w>>2]|0)+4|0;e=j|0;c[(c[e>>2]|0)+4>>2]=c[f>>2];c[c[f>>2]>>2]=c[e>>2];e=j;while(1){f=c[e+4>>2]|0;c[o>>2]=(c[o>>2]|0)-1;kS(e);if((f|0)==(w|0)){y=w;break}else{e=f}}}if((y|0)==(m|0)){break}else{q=y}}}if((c[o>>2]|0)==0){i=d;return}y=c[n>>2]|0;n=(c[l>>2]|0)+4|0;l=y|0;c[(c[l>>2]|0)+4>>2]=c[n>>2];c[c[n>>2]>>2]=c[l>>2];c[o>>2]=0;if((y|0)==(m|0)){i=d;return}else{z=y}while(1){y=c[z+4>>2]|0;kS(z);if((y|0)==(m|0)){break}else{z=y}}i=d;return}function cy(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;i=i+32|0;e=d|0;f=d+8|0;g=d+16|0;j=g|0;k=g+4|0;c[k>>2]=0;l=g+8|0;c[l>>2]=0;m=k;k=g|0;c[k>>2]=m;if((a|0)==(b|0)){n=0;cE(j,n);i=d;return}o=f|0;p=g+4|0;g=a;do{c[o>>2]=m;a=cH(j,f,e,g)|0;if((c[a>>2]|0)==0){q=kO(24)|0;r=q+16|0;if((r|0)!=0){h[r>>3]=+h[g>>3]}r=c[e>>2]|0;s=q;c[q>>2]=0;c[q+4>>2]=0;c[q+8>>2]=r;c[a>>2]=s;r=c[c[k>>2]>>2]|0;if((r|0)==0){t=s}else{c[k>>2]=r;t=c[a>>2]|0}cG(c[p>>2]|0,t);c[l>>2]=(c[l>>2]|0)+1}g=g+8|0;}while((g|0)!=(b|0));n=c[p>>2]|0;cE(j,n);i=d;return}function cz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;d=i;i=i+32|0;e=d|0;f=d+8|0;g=d+16|0;j=g|0;k=g+4|0;c[k>>2]=0;l=g+8|0;c[l>>2]=0;m=k;n=g|0;c[n>>2]=m;do{if((a|0)!=(b|0)){o=f|0;p=g+4|0;q=a;do{c[o>>2]=m;r=cC(j,f,e,q)|0;s=kO(24)|0;t=s+16|0;if((t|0)!=0){h[t>>3]=+h[q>>3]}t=c[e>>2]|0;u=s;c[s>>2]=0;c[s+4>>2]=0;c[s+8>>2]=t;c[r>>2]=u;t=c[c[n>>2]>>2]|0;if((t|0)==0){v=u}else{c[n>>2]=t;v=c[r>>2]|0}cG(c[p>>2]|0,v);c[l>>2]=(c[l>>2]|0)+1;q=q+8|0;}while((q|0)!=(b|0));q=c[n>>2]|0;if((q|0)==(m|0)){break}p=k;o=g+4|0;r=q;L202:while(1){q=r|0;t=r+4|0;u=r+16|0;while(1){w=c[t>>2]|0;if((w|0)==0){s=q;while(1){x=c[s+8>>2]|0;if((s|0)==(c[x>>2]|0)){y=x;break}else{s=x}}}else{s=w;while(1){x=c[s>>2]|0;if((x|0)==0){y=s;break}else{s=x}}}s=y;if((y|0)==(p|0)){z=o;A=213;break L202}if(+h[u>>3]!=+h[y+16>>3]){break}x=c[y+4>>2]|0;if((x|0)==0){B=y;while(1){C=c[B+8>>2]|0;if((B|0)==(c[C>>2]|0)){D=C;break}else{B=C}}}else{B=x;while(1){C=c[B>>2]|0;if((C|0)==0){D=B;break}else{B=C}}}if((c[n>>2]|0)==(s|0)){c[n>>2]=D}c[l>>2]=(c[l>>2]|0)-1;cB(c[o>>2]|0,y);kS(y)}if((w|0)==0){u=q;while(1){t=c[u+8>>2]|0;if((u|0)==(c[t>>2]|0)){E=t;break}else{u=t}}}else{u=w;while(1){q=c[u>>2]|0;if((q|0)==0){E=u;break}else{u=q}}}if((E|0)==(p|0)){z=o;A=214;break}else{r=E}}if((A|0)==214){F=c[z>>2]|0;G=F;cE(j,G);i=d;return}else if((A|0)==213){F=c[z>>2]|0;G=F;cE(j,G);i=d;return}}}while(0);z=g+4|0;F=c[z>>2]|0;G=F;cE(j,G);i=d;return}function cA(a){a=a|0;var b=0,d=0,e=0,f=0.0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0,y=0,z=0.0,A=0,B=0.0,C=0,D=0,E=0,F=0.0,G=0,H=0,I=0.0,J=0.0,L=0,M=0,N=0,O=0,P=0;b=i;i=i+24|0;d=b|0;e=b+8|0;f=+(a|0);g=~~+U(+(19931568.569324173/(f*(+ae(+f)/.6931471805599453))));j=a<<1;k=c[2446]|0;l=c[2447]|0;if((k|0)!=(l|0)){c[2447]=l+(~((l-8+(-k|0)|0)>>>3)<<3)}k=e|0;c[k>>2]=0;l=e+4|0;c[l>>2]=0;m=e+8|0;c[m>>2]=0;if((j|0)==0){n=0}else{if(j>>>0>536870911){ir(e)}e=kO(a<<4)|0;c[l>>2]=e;c[k>>2]=e;c[m>>2]=e+(j<<3);m=j;o=e;do{if((o|0)==0){p=0}else{h[o>>3]=0.0;p=c[l>>2]|0}o=p+8|0;c[l>>2]=o;m=m-1|0;}while((m|0)!=0);n=c[k>>2]|0}m=n+(j<<3)|0;o=n+(a<<3)|0;if((a|0)!=0){p=n;f=0.0;while(1){e=p+8|0;h[p>>3]=f;if((e|0)==(o|0)){break}else{p=e;f=f+1.0}}}if((j|0)!=(a|0)){j=o;f=0.0;while(1){o=j+8|0;h[j>>3]=f;if((o|0)==(m|0)){break}else{j=o;f=f+1.0}}}cF(n,m);if((g|0)>0){j=a<<4;a=j>>3;o=aO(a|0,8)|0;p=n;if(K){e=g;while(1){q=e-1|0;r=kP(-1)|0;s=r;kY(r|0,p|0,j)|0;t=s+(a<<3)|0;cU(s,t,d);L268:do{if((s|0)!=(t|0)){u=s;while(1){v=u+8|0;if((v|0)==(t|0)){break L268}w=+h[u>>3];if(w==+h[v>>3]){break}else{u=v}}if((u|0)==(t|0)){break}else{x=v;y=u;z=w}while(1){A=x;do{A=A+8|0;if((A|0)==(t|0)){break L268}B=+h[A>>3];}while(z==B);C=y+8|0;h[C>>3]=B;x=A;y=C;z=B}}}while(0);if((r|0)!=0){kT(r)}if((q|0)>0){e=q}else{D=g;break}}}else{e=g;while(1){y=e-1|0;x=kP(o)|0;v=x;kY(x|0,p|0,j)|0;t=v+(a<<3)|0;cU(v,t,d);L287:do{if((v|0)!=(t|0)){s=v;while(1){E=s+8|0;if((E|0)==(t|0)){break L287}F=+h[s>>3];if(F==+h[E>>3]){break}else{s=E}}if((s|0)==(t|0)){break}else{G=E;H=s;I=F}while(1){u=G;do{u=u+8|0;if((u|0)==(t|0)){break L287}J=+h[u>>3];}while(I==J);A=H+8|0;h[A>>3]=J;G=u;H=A;I=J}}}while(0);if((x|0)!=0){kT(x)}if((y|0)>0){e=y}else{D=g;break}}}while(1){e=D-1|0;cu(n,m,e);if((e|0)>0){D=e}else{L=g;break}}while(1){D=L-1|0;cv(n,m,D);if((D|0)>0){L=D}else{M=g;break}}while(1){L=M-1|0;cw(n,m,L);if((L|0)>0){M=L}else{N=g;break}}while(1){M=N-1|0;cx(n,m,M);if((M|0)>0){N=M}else{O=g;break}}while(1){N=O-1|0;cy(n,m,N);if((N|0)>0){O=N}else{P=g;break}}do{P=P-1|0;cz(n,m,P);}while((P|0)>0)}P=c[k>>2]|0;if((P|0)==0){i=b;return}k=c[l>>2]|0;if((P|0)!=(k|0)){c[l>>2]=k+(~((k-8+(-P|0)|0)>>>3)<<3)}kS(P);i=b;return}function cB(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;e=d|0;f=c[e>>2]|0;do{if((f|0)==0){g=d;h=301}else{i=c[d+4>>2]|0;if((i|0)==0){j=f;k=d;l=d|0;h=303;break}else{m=i;while(1){i=c[m>>2]|0;if((i|0)==0){g=m;h=301;break}else{m=i}}}}}while(0);do{if((h|0)==301){f=g|0;m=c[g+4>>2]|0;if((m|0)!=0){j=m;k=g;l=f;h=303;break}n=0;o=0;p=g+8|0;q=g;r=f}}while(0);if((h|0)==303){g=k+8|0;c[j+8>>2]=c[g>>2];n=j;o=1;p=g;q=k;r=l}l=c[p>>2]|0;k=l|0;do{if((q|0)==(c[k>>2]|0)){c[k>>2]=n;if((q|0)==(b|0)){s=n;t=0;break}s=b;t=c[(c[p>>2]|0)+4>>2]|0}else{c[l+4>>2]=n;s=b;t=c[c[p>>2]>>2]|0}}while(0);b=q+12|0;l=(a[b]&1)==0;if((q|0)==(d|0)){u=s}else{k=d+8|0;g=c[k>>2]|0;c[p>>2]=g;if((c[c[k>>2]>>2]|0)==(d|0)){c[g>>2]=q}else{c[g+4>>2]=q}g=c[e>>2]|0;c[r>>2]=g;c[g+8>>2]=q;g=c[d+4>>2]|0;c[q+4>>2]=g;if((g|0)!=0){c[g+8>>2]=q}a[b]=a[d+12|0]&1;u=(s|0)==(d|0)?q:s}if(l|(u|0)==0){return}if(o){a[n+12|0]=1;return}else{v=u;w=t}while(1){t=w+8|0;u=c[t>>2]|0;n=w+12|0;o=(a[n]&1)!=0;if((w|0)==(c[u>>2]|0)){if(o){x=v;y=w}else{a[n]=1;a[u+12|0]=0;l=c[t>>2]|0;s=l|0;q=c[s>>2]|0;d=q+4|0;b=c[d>>2]|0;c[s>>2]=b;if((b|0)!=0){c[b+8>>2]=l}b=l+8|0;c[q+8>>2]=c[b>>2];s=c[b>>2]|0;g=s|0;if((c[g>>2]|0)==(l|0)){c[g>>2]=q}else{c[s+4>>2]=q}c[d>>2]=l;c[b>>2]=q;q=c[w+4>>2]|0;x=(v|0)==(q|0)?w:v;y=c[q>>2]|0}z=c[y>>2]|0;A=(z|0)==0;if(!A){if((a[z+12|0]&1)==0){h=365;break}}q=c[y+4>>2]|0;if((q|0)!=0){if((a[q+12|0]&1)==0){h=364;break}}a[y+12|0]=0;q=c[y+8>>2]|0;B=q+12|0;if((a[B]&1)==0|(q|0)==(x|0)){h=361;break}b=c[q+8>>2]|0;l=c[b>>2]|0;if((q|0)!=(l|0)){v=x;w=l;continue}v=x;w=c[b+4>>2]|0;continue}if(o){C=v;D=w}else{a[n]=1;a[u+12|0]=0;u=c[t>>2]|0;t=u+4|0;n=c[t>>2]|0;o=n|0;b=c[o>>2]|0;c[t>>2]=b;if((b|0)!=0){c[b+8>>2]=u}b=u+8|0;c[n+8>>2]=c[b>>2];t=c[b>>2]|0;l=t|0;if((c[l>>2]|0)==(u|0)){c[l>>2]=n}else{c[t+4>>2]=n}c[o>>2]=u;c[b>>2]=n;n=c[w>>2]|0;C=(v|0)==(n|0)?w:v;D=c[n+4>>2]|0}E=D|0;F=c[E>>2]|0;if((F|0)!=0){if((a[F+12|0]&1)==0){h=335;break}}n=c[D+4>>2]|0;if((n|0)!=0){if((a[n+12|0]&1)==0){G=n;h=336;break}}a[D+12|0]=0;n=c[D+8>>2]|0;if((n|0)==(C|0)){H=C;h=332;break}if((a[n+12|0]&1)==0){H=n;h=332;break}b=c[n+8>>2]|0;u=c[b>>2]|0;if((n|0)!=(u|0)){v=C;w=u;continue}v=C;w=c[b+4>>2]|0}if((h|0)==332){a[H+12|0]=1;return}else if((h|0)==335){H=c[D+4>>2]|0;if((H|0)==0){h=337}else{G=H;h=336}}else if((h|0)==361){a[B]=1;return}else if((h|0)==364){if(A){h=366}else{h=365}}if((h|0)==336){if((a[G+12|0]&1)==0){I=D;h=343}else{h=337}}else if((h|0)==365){if((a[z+12|0]&1)==0){J=y;h=372}else{h=366}}if((h|0)==337){a[F+12|0]=1;a[D+12|0]=0;F=c[E>>2]|0;z=F+4|0;G=c[z>>2]|0;c[E>>2]=G;if((G|0)!=0){c[G+8>>2]=D}G=D+8|0;c[F+8>>2]=c[G>>2];E=c[G>>2]|0;A=E|0;if((c[A>>2]|0)==(D|0)){c[A>>2]=F}else{c[E+4>>2]=F}c[z>>2]=D;c[G>>2]=F;I=F;h=343}else if((h|0)==366){F=y+4|0;a[(c[F>>2]|0)+12|0]=1;a[y+12|0]=0;G=c[F>>2]|0;D=G|0;z=c[D>>2]|0;c[F>>2]=z;if((z|0)!=0){c[z+8>>2]=y}z=y+8|0;c[G+8>>2]=c[z>>2];F=c[z>>2]|0;E=F|0;if((c[E>>2]|0)==(y|0)){c[E>>2]=G}else{c[F+4>>2]=G}c[D>>2]=y;c[z>>2]=G;J=G;h=372}if((h|0)==343){G=I+8|0;z=(c[G>>2]|0)+12|0;a[I+12|0]=a[z]&1;a[z]=1;a[(c[I+4>>2]|0)+12|0]=1;I=c[G>>2]|0;G=I+4|0;z=c[G>>2]|0;y=z|0;D=c[y>>2]|0;c[G>>2]=D;if((D|0)!=0){c[D+8>>2]=I}D=I+8|0;c[z+8>>2]=c[D>>2];G=c[D>>2]|0;F=G|0;if((c[F>>2]|0)==(I|0)){c[F>>2]=z}else{c[G+4>>2]=z}c[y>>2]=I;c[D>>2]=z;return}else if((h|0)==372){h=J+8|0;z=(c[h>>2]|0)+12|0;a[J+12|0]=a[z]&1;a[z]=1;a[(c[J>>2]|0)+12|0]=1;J=c[h>>2]|0;h=J|0;z=c[h>>2]|0;D=z+4|0;I=c[D>>2]|0;c[h>>2]=I;if((I|0)!=0){c[I+8>>2]=J}I=J+8|0;c[z+8>>2]=c[I>>2];h=c[I>>2]|0;y=h|0;if((c[y>>2]|0)==(J|0)){c[y>>2]=z}else{c[h+4>>2]=z}c[D>>2]=J;c[I>>2]=z;return}}function cC(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0.0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;f=i;g=b;b=i;i=i+4|0;i=i+7>>3<<3;c[b>>2]=c[g>>2];g=a+4|0;j=c[b>>2]|0;do{if((j|0)!=(g|0)){k=+h[e>>3];if(+h[j+16>>3]>=k){break}b=g|0;l=c[b>>2]|0;if((l|0)==0){c[d>>2]=g;m=b;i=f;return m|0}else{n=l}while(1){if(+h[n+16>>3]<k){o=n+4|0;l=c[o>>2]|0;if((l|0)==0){p=406;break}else{n=l;continue}}else{q=n|0;l=c[q>>2]|0;if((l|0)==0){p=408;break}else{n=l;continue}}}if((p|0)==408){c[d>>2]=n;m=q;i=f;return m|0}else if((p|0)==406){c[d>>2]=n;m=o;i=f;return m|0}}}while(0);o=c[j>>2]|0;do{if((j|0)==(c[a>>2]|0)){r=j}else{if((o|0)==0){n=j|0;while(1){q=c[n+8>>2]|0;if((n|0)==(c[q>>2]|0)){n=q}else{s=q;break}}}else{n=o;while(1){q=c[n+4>>2]|0;if((q|0)==0){s=n;break}else{n=q}}}k=+h[e>>3];if(k>=+h[s+16>>3]){r=s;break}n=g|0;q=c[n>>2]|0;if((q|0)==0){c[d>>2]=g;m=n;i=f;return m|0}else{t=q}while(1){if(k<+h[t+16>>3]){u=t|0;q=c[u>>2]|0;if((q|0)==0){p=399;break}else{t=q;continue}}else{v=t+4|0;q=c[v>>2]|0;if((q|0)==0){p=401;break}else{t=q;continue}}}if((p|0)==399){c[d>>2]=t;m=u;i=f;return m|0}else if((p|0)==401){c[d>>2]=t;m=v;i=f;return m|0}}}while(0);if((o|0)==0){c[d>>2]=j;m=j|0;i=f;return m|0}else{c[d>>2]=r;m=r+4|0;i=f;return m|0}return 0}function cD(){cA(1e5);return 0}function cE(a,b){a=a|0;b=b|0;if((b|0)==0){return}else{cE(a,c[b>>2]|0);cE(a,c[b+4>>2]|0);kS(b);return}}function cF(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0.0;c=i;i=i+8|0;d=c|0;e=b-a|0;if((e|0)<=8){i=c;return}cY(d);f=b-8|0;if(f>>>0>a>>>0){b=a;a=e>>3;while(1){e=a-1|0;do{if((e|0)!=0){if((a|0)==0){g=cX(d)|0}else{j=32-(kZ(a|0)|0)|0;k=(((-1>>>((33-j|0)>>>0)&a|0)==0)<<31>>31)+j|0;j=(k>>>0)/((((k&31|0)!=0)+(k>>>5)|0)>>>0)|0;if((j|0)==0){l=0}else{l=-1>>>((32-j|0)>>>0)}while(1){j=(cX(d)|0)&l;if(j>>>0<a>>>0){g=j;break}}}if((g|0)==0){break}j=b+(g<<3)|0;m=+h[b>>3];h[b>>3]=+h[j>>3];h[j>>3]=m}}while(0);j=b+8|0;if(j>>>0<f>>>0){b=j;a=e}else{break}}}cW(d);i=c;return}function cG(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;e=(d|0)==(b|0);a[d+12|0]=e&1;if(e){return}else{f=d}while(1){g=f+8|0;h=c[g>>2]|0;d=h+12|0;if((a[d]&1)!=0){i=487;break}j=h+8|0;k=c[j>>2]|0;e=c[k>>2]|0;if((h|0)==(e|0)){l=c[k+4>>2]|0;if((l|0)==0){i=452;break}m=l+12|0;if((a[m]&1)!=0){i=452;break}a[d]=1;a[k+12|0]=(k|0)==(b|0)|0;a[m]=1}else{if((e|0)==0){i=469;break}m=e+12|0;if((a[m]&1)!=0){i=469;break}a[d]=1;a[k+12|0]=(k|0)==(b|0)|0;a[m]=1}if((k|0)==(b|0)){i=484;break}else{f=k}}if((i|0)==469){b=h|0;if((f|0)==(c[b>>2]|0)){m=f+4|0;d=c[m>>2]|0;c[b>>2]=d;if((d|0)==0){n=k}else{c[d+8>>2]=h;n=c[j>>2]|0}c[g>>2]=n;n=c[j>>2]|0;d=n|0;if((c[d>>2]|0)==(h|0)){c[d>>2]=f}else{c[n+4>>2]=f}c[m>>2]=h;c[j>>2]=f;o=f;p=c[g>>2]|0}else{o=h;p=k}a[o+12|0]=1;a[p+12|0]=0;o=p+4|0;g=c[o>>2]|0;m=g|0;n=c[m>>2]|0;c[o>>2]=n;if((n|0)!=0){c[n+8>>2]=p}n=p+8|0;c[g+8>>2]=c[n>>2];o=c[n>>2]|0;d=o|0;if((c[d>>2]|0)==(p|0)){c[d>>2]=g}else{c[o+4>>2]=g}c[m>>2]=p;c[n>>2]=g;return}else if((i|0)==484){return}else if((i|0)==487){return}else if((i|0)==452){if((f|0)==(c[h>>2]|0)){q=h;r=k}else{f=h+4|0;i=c[f>>2]|0;g=i|0;n=c[g>>2]|0;c[f>>2]=n;if((n|0)==0){s=k}else{c[n+8>>2]=h;s=c[j>>2]|0}n=i+8|0;c[n>>2]=s;s=c[j>>2]|0;k=s|0;if((c[k>>2]|0)==(h|0)){c[k>>2]=i}else{c[s+4>>2]=i}c[g>>2]=h;c[j>>2]=i;q=i;r=c[n>>2]|0}a[q+12|0]=1;a[r+12|0]=0;q=r|0;n=c[q>>2]|0;i=n+4|0;j=c[i>>2]|0;c[q>>2]=j;if((j|0)!=0){c[j+8>>2]=r}j=r+8|0;c[n+8>>2]=c[j>>2];q=c[j>>2]|0;h=q|0;if((c[h>>2]|0)==(r|0)){c[h>>2]=n}else{c[q+4>>2]=n}c[i>>2]=r;c[j>>2]=n;return}}function cH(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0.0,l=0.0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;f=i;g=b;b=i;i=i+4|0;i=i+7>>3<<3;c[b>>2]=c[g>>2];g=a+4|0;j=c[b>>2]|0;do{if((j|0)!=(g|0)){k=+h[e>>3];l=+h[j+16>>3];if(k<l){break}if(l>=k){c[d>>2]=j;m=d;i=f;return m|0}b=j+4|0;n=c[b>>2]|0;o=(n|0)==0;if(o){p=j|0;while(1){q=c[p+8>>2]|0;if((p|0)==(c[q>>2]|0)){r=q;break}else{p=q}}}else{p=n;while(1){q=c[p>>2]|0;if((q|0)==0){r=p;break}else{p=q}}}p=g;do{if((r|0)!=(p|0)){if(k<+h[r+16>>3]){break}n=g|0;q=c[n>>2]|0;if((q|0)==0){c[d>>2]=p;m=n;i=f;return m|0}else{s=q}while(1){l=+h[s+16>>3];if(k<l){t=s|0;q=c[t>>2]|0;if((q|0)==0){u=521;break}else{s=q;continue}}if(l>=k){u=525;break}v=s+4|0;q=c[v>>2]|0;if((q|0)==0){u=524;break}else{s=q}}if((u|0)==521){c[d>>2]=s;m=t;i=f;return m|0}else if((u|0)==524){c[d>>2]=s;m=v;i=f;return m|0}else if((u|0)==525){c[d>>2]=s;m=d;i=f;return m|0}}}while(0);if(o){c[d>>2]=j;m=b;i=f;return m|0}else{c[d>>2]=r;m=r|0;i=f;return m|0}}}while(0);r=c[j>>2]|0;do{if((j|0)==(c[a>>2]|0)){w=j}else{if((r|0)==0){s=j|0;while(1){v=c[s+8>>2]|0;if((s|0)==(c[v>>2]|0)){s=v}else{x=v;break}}}else{s=r;while(1){b=c[s+4>>2]|0;if((b|0)==0){x=s;break}else{s=b}}}k=+h[e>>3];if(+h[x+16>>3]<k){w=x;break}s=g|0;b=c[s>>2]|0;if((b|0)==0){c[d>>2]=g;m=s;i=f;return m|0}else{y=b}while(1){l=+h[y+16>>3];if(k<l){z=y|0;b=c[z>>2]|0;if((b|0)==0){u=502;break}else{y=b;continue}}if(l>=k){u=506;break}A=y+4|0;b=c[A>>2]|0;if((b|0)==0){u=505;break}else{y=b}}if((u|0)==505){c[d>>2]=y;m=A;i=f;return m|0}else if((u|0)==506){c[d>>2]=y;m=d;i=f;return m|0}else if((u|0)==502){c[d>>2]=y;m=z;i=f;return m|0}}}while(0);if((r|0)==0){c[d>>2]=j;m=j|0;i=f;return m|0}else{c[d>>2]=w;m=w+4|0;i=f;return m|0}return 0}function cI(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0.0,H=0,I=0;g=i;j=d;d=i;i=i+8|0;c[d>>2]=c[j>>2];c[d+4>>2]=c[j+4>>2];j=e;e=i;i=i+8|0;c[e>>2]=c[j>>2];c[e+4>>2]=c[j+4>>2];j=f;f=i;i=i+1|0;i=i+7>>3<<3;a[f]=a[j]|0;j=d|0;f=d+4|0;k=c[f>>2]|0;l=c[e>>2]|0;m=c[e+4>>2]|0;L655:do{if((k|0)==(m|0)){n=k;o=l;p=549}else{e=c[j>>2]|0;q=e;r=k;s=c[e>>2]|0;while(1){e=r+8|0;if((e-s|0)==4096){t=q+4|0;u=c[t>>2]|0;v=t;w=u;x=u}else{v=q;w=e;x=s}if((w|0)==(m|0)){break}if(+h[r>>3]==+h[w>>3]){n=r;o=q;p=549;break L655}else{q=v;r=w;s=x}}c[j>>2]=l;c[f>>2]=m}}while(0);do{if((p|0)==549){c[j>>2]=o;c[f>>2]=n;if((n|0)==(m|0)){break}l=n+8|0;x=c[o>>2]|0;if((l-x|0)==4096){w=o+4|0;v=c[w>>2]|0;y=w;z=v;A=v;B=n;C=o}else{y=o;z=l;A=x;B=n;C=o}while(1){x=z+8|0;if((x-A|0)==4096){l=y+4|0;v=c[l>>2]|0;D=l;E=v;F=v}else{D=y;E=x;F=A}if((E|0)==(m|0)){break}G=+h[E>>3];if(+h[B>>3]==G){y=D;z=E;A=F;B=B;C=C;continue}x=B+8|0;c[f>>2]=x;if((x-(c[C>>2]|0)|0)==4096){v=C+4|0;c[j>>2]=v;l=c[v>>2]|0;c[f>>2]=l;H=v;I=l}else{H=C;I=x}h[I>>3]=G;y=D;z=E;A=c[D>>2]|0;B=I;C=H}x=B+8|0;c[f>>2]=x;if((x-(c[C>>2]|0)|0)!=4096){break}x=C+4|0;c[j>>2]=x;c[f>>2]=c[x>>2]}}while(0);f=d;d=b;b=c[f+4>>2]|0;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=g;return}function cJ(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0,y=0,z=0,A=0,B=0,C=0.0,D=0;g=i;i=i+48|0;j=b;b=i;i=i+4|0;i=i+7>>3<<3;c[b>>2]=c[j>>2];j=d;d=i;i=i+4|0;i=i+7>>3<<3;c[d>>2]=c[j>>2];j=g|0;k=g+8|0;l=g+16|0;m=g+24|0;n=g+32|0;o=g+40|0;switch(e|0){case 2:{p=d|0;q=c[c[p>>2]>>2]|0;c[p>>2]=q;p=c[b>>2]|0;if(+h[q+8>>3]<+h[p+8>>3]){r=q+4|0;s=q|0;c[(c[s>>2]|0)+4>>2]=c[r>>2];c[c[r>>2]>>2]=c[s>>2];t=p|0;c[(c[t>>2]|0)+4>>2]=q;c[s>>2]=c[t>>2];c[t>>2]=q;c[r>>2]=p;c[a>>2]=q;i=g;return}else{c[a>>2]=p;i=g;return}break};case 0:case 1:{c[a>>2]=c[b>>2];i=g;return};default:{p=e>>>1;q=b|0;b=c[q>>2]|0;if((p|0)==0){u=b}else{r=p;t=b;while(1){s=r-1|0;v=c[t+4>>2]|0;if((s|0)>0){r=s;t=v}else{u=v;break}}}c[k>>2]=b;c[l>>2]=u;cJ(j,k,l,p,f);l=c[j>>2]|0;c[q>>2]=l;c[n>>2]=u;u=d|0;d=c[u>>2]|0;c[o>>2]=d;cJ(m,n,o,e-p|0,f);f=c[m>>2]|0;w=+h[l+8>>3];if(+h[f+8>>3]<w){m=c[f+4>>2]|0;L697:do{if((m|0)==(d|0)){x=d}else{p=m;while(1){if(+h[p+8>>3]>=w){x=p;break L697}e=c[p+4>>2]|0;if((e|0)==(d|0)){x=d;break}else{p=e}}}}while(0);m=c[x>>2]|0;p=m+4|0;e=f|0;c[(c[e>>2]|0)+4>>2]=c[p>>2];c[c[p>>2]>>2]=c[e>>2];o=c[l+4>>2]|0;n=l|0;c[(c[n>>2]|0)+4>>2]=f;c[e>>2]=c[n>>2];c[n>>2]=m;c[p>>2]=l;y=f;z=x;A=o}else{y=l;z=f;A=c[l+4>>2]|0}c[q>>2]=A;L704:do{if((A|0)!=(z|0)){l=z;f=z;o=A;x=d;while(1){p=l+8|0;if((l|0)==(x|0)){break L704}else{B=o}while(1){C=+h[B+8>>3];if(+h[p>>3]<C){break}m=c[B+4>>2]|0;c[q>>2]=m;if((m|0)==(f|0)){break L704}else{B=m}}p=c[l+4>>2]|0;L711:do{if((p|0)==(x|0)){D=x}else{m=p;while(1){if(+h[m+8>>3]>=C){D=m;break L711}n=c[m+4>>2]|0;if((n|0)==(x|0)){D=x;break}else{m=n}}}}while(0);p=c[D>>2]|0;m=p+4|0;n=l|0;c[(c[n>>2]|0)+4>>2]=c[m>>2];c[c[m>>2]>>2]=c[n>>2];e=c[B+4>>2]|0;j=(f|0)==(l|0)?D:f;k=B|0;c[(c[k>>2]|0)+4>>2]=l;c[n>>2]=c[k>>2];c[k>>2]=p;c[m>>2]=B;c[q>>2]=e;if((e|0)==(j|0)){break L704}l=D;f=j;o=e;x=c[u>>2]|0}}}while(0);c[a>>2]=y;i=g;return}}}function cK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ab=0,ac=0,ad=0,ae=0,af=0,ag=0,ah=0,ai=0,aj=0,ak=0,al=0,am=0,an=0,ao=0,ap=0,aq=0,ar=0,as=0,at=0,au=0,av=0,aw=0,ax=0,ay=0,az=0,aA=0,aB=0,aC=0,aD=0,aE=0,aF=0,aG=0.0,aH=0.0,aI=0.0,aJ=0.0,aK=0.0,aL=0,aM=0,aN=0,aO=0,aP=0,aQ=0,aR=0,aS=0.0,aT=0,aU=0,aV=0,aW=0,aX=0,aY=0,aZ=0,a_=0,a$=0,a0=0.0,a1=0,a2=0,a3=0,a4=0,a5=0,a6=0,a7=0,a8=0.0,a9=0,ba=0,bb=0,bc=0,bd=0.0,be=0,bf=0,bg=0,bh=0,bi=0,bj=0,bk=0,bl=0,bm=0,bn=0,bo=0,bp=0,bq=0,br=0,bs=0,bt=0,bu=0.0,bv=0,bw=0,bx=0,by=0,bz=0.0,bA=0,bB=0,bC=0,bD=0,bE=0,bF=0,bG=0,bH=0,bI=0,bJ=0,bK=0,bL=0,bM=0,bN=0,bO=0,bP=0,bQ=0.0,bR=0,bS=0,bT=0;e=i;i=i+8|0;f=a;a=i;i=i+8|0;c[a>>2]=c[f>>2];c[a+4>>2]=c[f+4>>2];f=b;b=i;i=i+8|0;c[b>>2]=c[f>>2];c[b+4>>2]=c[f+4>>2];f=e|0;g=f;j=i;i=i+8|0;k=j;l=i;i=i+8|0;m=l;n=i;i=i+8|0;o=n;p=i;i=i+8|0;q=p;r=i;i=i+8|0;s=r;t=i;i=i+8|0;u=t;v=i;i=i+8|0;w=v;x=i;i=i+8|0;y=x;z=i;i=i+8|0;A=i;i=i+8|0;B=i;i=i+8|0;C=i;i=i+8|0;D=C;E=i;i=i+8|0;F=i;i=i+8|0;G=i;i=i+8|0;H=G;I=i;i=i+8|0;J=I;K=i;i=i+8|0;L=i;i=i+8|0;M=i;i=i+8|0;N=M;O=b+4|0;P=c[O>>2]|0;Q=a+4|0;R=c[Q>>2]|0;if((P|0)==(R|0)){i=e;return}S=b|0;T=a|0;U=a;a=y+4|0;V=x;W=z|0;X=z+4|0;Y=A|0;Z=A+4|0;_=B|0;$=B+4|0;aa=E|0;ab=E+4|0;ac=F|0;ad=F+4|0;ae=b;b=K|0;af=K+4|0;ag=L|0;ah=L+4|0;ai=P;P=R;L725:while(1){aj=c[S>>2]|0;R=c[T>>2]|0;ak=c[aj>>2]|0;al=c[R>>2]|0;am=P-al>>3;an=(ai-ak>>3)+(aj-R<<7)-am|0;switch(an|0){case 5:{ao=630;break L725;break};case 4:{ao=610;break L725;break};case 2:{ao=593;break L725;break};case 3:{ao=597;break L725;break};case 0:case 1:{ao=760;break L725;break};default:{}}if((an|0)<31){ao=643;break}if((ai|0)==(ak|0)){ap=aj-4|0;aq=ap;ar=(c[ap>>2]|0)+4096|0}else{aq=aj;ar=ai}ap=ar-8|0;as=(an|0)/2|0;at=(an+1|0)>>>0>2;do{if((an|0)>999){do{if(at){au=am+as|0;if((au|0)>0){av=R+(((au|0)/512|0)<<2)|0;aw=c[av>>2]|0;ax=aw+(((au|0)%512|0)<<3)|0;ay=av;az=aw;break}else{aw=511-au|0;au=R+(((aw|0)/-512|0)<<2)|0;av=c[au>>2]|0;ax=av+(511-((aw|0)%512|0)<<3)|0;ay=au;az=av;break}}else{ax=P;ay=R;az=al}}while(0);av=(an|0)/4|0;au=c[U>>2]|0;aw=c[U+4>>2]|0;c[v>>2]=au;c[v+4>>2]=aw;c[x>>2]=au;c[x+4>>2]=aw;aA=(an+3|0)>>>0>6;aB=au;do{if(aA){au=(aw-(c[aB>>2]|0)>>3)+av|0;if((au|0)>0){aC=aB+(((au|0)/512|0)<<2)|0;c[V>>2]=aC;c[a>>2]=(c[aC>>2]|0)+(((au|0)%512|0)<<3);c[W>>2]=ay;c[X>>2]=ax;c[Y>>2]=ay;c[Z>>2]=ax;if(!aA){break}}else{aC=511-au|0;au=aB+(((aC|0)/-512|0)<<2)|0;c[V>>2]=au;c[a>>2]=(c[au>>2]|0)+(511-((aC|0)%512|0)<<3);c[W>>2]=ay;c[X>>2]=ax;c[Y>>2]=ay;c[Z>>2]=ax}aC=(ax-az>>3)+av|0;if((aC|0)>0){au=ay+(((aC|0)/512|0)<<2)|0;c[Y>>2]=au;c[Z>>2]=(c[au>>2]|0)+(((aC|0)%512|0)<<3);break}else{au=511-aC|0;aC=ay+(((au|0)/-512|0)<<2)|0;c[Y>>2]=aC;c[Z>>2]=(c[aC>>2]|0)+(511-((au|0)%512|0)<<3);break}}else{c[W>>2]=ay;c[X>>2]=ax;c[Y>>2]=ay;c[Z>>2]=ax}}while(0);c[_>>2]=aq;c[$>>2]=ap;aD=cL(w,y,z,A,B,0)|0;aE=ax}else{do{if(at){av=am+as|0;if((av|0)>0){aF=(c[R+(((av|0)/512|0)<<2)>>2]|0)+(((av|0)%512|0)<<3)|0;break}else{aB=511-av|0;aF=(c[R+(((aB|0)/-512|0)<<2)>>2]|0)+(511-((aB|0)%512|0)<<3)|0;break}}else{aF=P}}while(0);aB=c[U+4>>2]|0;aG=+h[aF>>3];aH=+h[aB>>3];aI=+h[ap>>3];av=aI<aG;if(aG>=aH){if(!av){aD=0;aE=aF;break}h[aF>>3]=aI;h[ap>>3]=aG;aJ=+h[aF>>3];aK=+h[aB>>3];if(aJ>=aK){aD=1;aE=aF;break}h[aB>>3]=aJ;h[aF>>3]=aK;aD=2;aE=aF;break}if(av){h[aB>>3]=aI;h[ap>>3]=aH;aD=1;aE=aF;break}h[aB>>3]=aG;h[aF>>3]=aH;aG=+h[ap>>3];if(aG>=aH){aD=1;aE=aF;break}h[aF>>3]=aG;h[ap>>3]=aH;aD=2;aE=aF}}while(0);R=c[T>>2]|0;as=c[Q>>2]|0;aH=+h[as>>3];aG=+h[aE>>3];do{if(aH<aG){aL=aD;aM=aq;aN=ap;ao=707}else{am=aq;at=ap;an=c[aq>>2]|0;while(1){if((at|0)==(an|0)){al=am-4|0;aB=c[al>>2]|0;aO=al;aP=aB+4096|0;aQ=aB}else{aO=am;aP=at;aQ=an}aR=aP-8|0;if((as|0)==(aR|0)){break}aS=+h[aR>>3];if(aS<aG){ao=706;break}else{am=aO;at=aR;an=aQ}}if((ao|0)==706){ao=0;h[as>>3]=aS;h[aR>>3]=aH;aL=aD+1|0;aM=aO;aN=aR;ao=707;break}an=as+8|0;at=c[R>>2]|0;if((an-at|0)==4096){am=R+4|0;aB=c[am>>2]|0;aT=aB;aU=am;aV=aB}else{aT=an;aU=R;aV=at}at=c[S>>2]|0;an=c[O>>2]|0;if((an|0)==(c[at>>2]|0)){aB=at-4|0;aW=aB;aX=(c[aB>>2]|0)+4096|0}else{aW=at;aX=an}an=aX-8|0;aI=+h[an>>3];do{if(aH<aI){aY=aT;aZ=aU;a_=aV}else{at=aT;aB=aU;am=aV;L786:while(1){a$=at;while(1){if((a$|0)==(an|0)){ao=767;break L725}a0=+h[a$>>3];if(aH<a0){break L786}al=a$+8|0;if((al-am|0)==4096){break}else{a$=al}}al=aB+4|0;av=c[al>>2]|0;at=av;aB=al;am=av}h[a$>>3]=aI;h[an>>3]=a0;am=a$+8|0;at=c[aB>>2]|0;if((am-at|0)!=4096){aY=am;aZ=aB;a_=at;break}at=aB+4|0;am=c[at>>2]|0;aY=am;aZ=at;a_=am}}while(0);if((aY|0)==(an|0)){ao=768;break L725}else{a1=aY;a2=aZ;a3=aW;a4=an;a5=a_}while(1){aI=+h[c[Q>>2]>>3];am=a1;a6=a2;at=a5;L798:while(1){a7=am;while(1){a8=+h[a7>>3];if(aI<a8){break L798}av=a7+8|0;if((av-at|0)==4096){break}else{a7=av}}av=a6+4|0;al=c[av>>2]|0;am=al;a6=av;at=al}at=a3;am=a4;aB=c[a3>>2]|0;while(1){if((am|0)==(aB|0)){al=at-4|0;av=c[al>>2]|0;a9=al;ba=av+4096|0;bb=av}else{a9=at;ba=am;bb=aB}bc=ba-8|0;bd=+h[bc>>3];if(aI<bd){at=a9;am=bc;aB=bb}else{break}}if(a6>>>0>=a9>>>0){if(a7>>>0>=bc>>>0|(a6|0)!=(a9|0)){break}}h[a7>>3]=bd;h[bc>>3]=a8;aB=a7+8|0;am=c[a6>>2]|0;if((aB-am|0)!=4096){a1=aB;a2=a6;a3=a9;a4=bc;a5=am;continue}am=a6+4|0;aB=c[am>>2]|0;a1=aB;a2=am;a3=a9;a4=bc;a5=aB}c[T>>2]=a6;c[Q>>2]=a7;be=a7}}while(0);L816:do{if((ao|0)==707){ao=0;ap=as+8|0;an=c[R>>2]|0;if((ap-an|0)==4096){aB=R+4|0;am=c[aB>>2]|0;bf=am;bg=aB;bh=am}else{bf=ap;bg=R;bh=an}if(bg>>>0<aM>>>0){bi=aL;bj=bf;bk=bg;bl=aE;bm=aM;bn=aN;bo=bh;ao=711}else{if((bg|0)==(aM|0)&bf>>>0<aN>>>0){bi=aL;bj=bf;bk=bg;bl=aE;bm=aM;bn=aN;bo=bh;ao=711}else{bp=aL;bq=bf;br=bg;bs=aE}}L823:do{if((ao|0)==711){while(1){ao=0;aH=+h[bl>>3];an=bj;ap=bk;am=bo;L826:while(1){bt=an;while(1){bu=+h[bt>>3];if(bu>=aH){break L826}aB=bt+8|0;if((aB-am|0)==4096){break}else{bt=aB}}aB=ap+4|0;at=c[aB>>2]|0;an=at;ap=aB;am=at}am=bm;an=bn;at=c[bm>>2]|0;while(1){if((an|0)==(at|0)){aB=am-4|0;av=c[aB>>2]|0;bv=aB;bw=av+4096|0;bx=av}else{bv=am;bw=an;bx=at}by=bw-8|0;bz=+h[by>>3];if(bz>=aH){am=bv;an=by;at=bx}else{break}}if(bv>>>0<ap>>>0){bp=bi;bq=bt;br=ap;bs=bl;break L823}if((bv|0)==(ap|0)&by>>>0<bt>>>0){bp=bi;bq=bt;br=ap;bs=bl;break L823}h[bt>>3]=bz;h[by>>3]=bu;at=bi+1|0;an=(bl|0)==(bt|0)?by:bl;am=bt+8|0;av=c[ap>>2]|0;if((am-av|0)!=4096){bi=at;bj=am;bk=ap;bl=an;bm=bv;bn=by;bo=av;ao=711;continue}av=ap+4|0;am=c[av>>2]|0;bi=at;bj=am;bk=av;bl=an;bm=bv;bn=by;bo=am;ao=711}}}while(0);do{if((bq|0)==(bs|0)){bA=bp}else{aH=+h[bs>>3];aG=+h[bq>>3];if(aH>=aG){bA=bp;break}h[bq>>3]=aH;h[bs>>3]=aG;bA=bp+1|0}}while(0);do{if((bA|0)==0){am=c[U+4>>2]|0;c[C>>2]=c[U>>2];c[C+4>>2]=am;c[aa>>2]=br;c[ab>>2]=bq;am=cN(D,E,0)|0;c[ac>>2]=br;c[ad>>2]=bq;an=bq-(c[br>>2]|0)>>3;av=an+1|0;if((av|0)>0){at=br+(((av|0)/512|0)<<2)|0;c[ac>>2]=at;bB=(c[at>>2]|0)+(((av|0)%512|0)<<3)|0}else{av=510-an|0;an=br+(((av|0)/-512|0)<<2)|0;c[ac>>2]=an;bB=(c[an>>2]|0)+(511-((av|0)%512|0)<<3)|0}c[ad>>2]=bB;av=c[ae+4>>2]|0;c[G>>2]=c[ae>>2];c[G+4>>2]=av;if(cN(F,H,0)|0){if(am){ao=770;break L725}c[S>>2]=br;c[O>>2]=bq;be=c[Q>>2]|0;break L816}if(!am){break}am=bq+8|0;if((am-(c[br>>2]|0)|0)==4096){av=br+4|0;bC=c[av>>2]|0;bD=av}else{bC=am;bD=br}c[T>>2]=bD;c[Q>>2]=bC;be=bC;break L816}}while(0);am=c[Q>>2]|0;if((bq|0)==(am|0)){bE=0}else{av=c[T>>2]|0;bE=(bq-(c[br>>2]|0)>>3)+(br-av<<7)-(am-(c[av>>2]|0)>>3)|0}av=c[O>>2]|0;if((av|0)==(bq|0)){bF=0}else{an=c[S>>2]|0;bF=(av-(c[an>>2]|0)>>3)+(an-br<<7)-(bq-(c[br>>2]|0)>>3)|0}if((bE|0)<(bF|0)){an=c[U+4>>2]|0;c[I>>2]=c[U>>2];c[I+4>>2]=an;c[b>>2]=br;c[af>>2]=bq;cK(J,K,d);an=bq+8|0;if((an-(c[br>>2]|0)|0)==4096){av=br+4|0;bG=c[av>>2]|0;bH=av}else{bG=an;bH=br}c[T>>2]=bH;c[Q>>2]=bG;be=bG;break}c[ag>>2]=br;c[ah>>2]=bq;an=bq-(c[br>>2]|0)>>3;av=an+1|0;if((av|0)>0){at=br+(((av|0)/512|0)<<2)|0;c[ag>>2]=at;bI=(c[at>>2]|0)+(((av|0)%512|0)<<3)|0}else{av=510-an|0;an=br+(((av|0)/-512|0)<<2)|0;c[ag>>2]=an;bI=(c[an>>2]|0)+(511-((av|0)%512|0)<<3)|0}c[ah>>2]=bI;av=c[ae+4>>2]|0;c[M>>2]=c[ae>>2];c[M+4>>2]=av;cK(L,N,d);c[S>>2]=br;c[O>>2]=bq;be=am}}while(0);R=c[O>>2]|0;if((R|0)==(be|0)){ao=769;break}else{ai=R;P=be}}if((ao|0)==630){be=c[U>>2]|0;bq=c[U+4>>2]|0;c[f>>2]=be;c[f+4>>2]=bq;c[j>>2]=be;c[j+4>>2]=bq;f=bq;br=j;j=be;d=f-(c[j>>2]|0)>>3;N=d+1|0;if((N|0)>0){L=j+(((N|0)/512|0)<<2)|0;c[br>>2]=L;bJ=(c[L>>2]|0)+(((N|0)%512|0)<<3)|0}else{N=510-d|0;d=j+(((N|0)/-512|0)<<2)|0;c[br>>2]=d;bJ=(c[d>>2]|0)+(511-((N|0)%512|0)<<3)|0}c[k+4>>2]=bJ;c[l>>2]=be;c[l+4>>2]=bq;bJ=l;l=f-(c[j>>2]|0)>>3;N=l+2|0;if((N|0)>0){d=j+(((N|0)/512|0)<<2)|0;c[bJ>>2]=d;bK=(c[d>>2]|0)+(((N|0)%512|0)<<3)|0}else{N=509-l|0;l=j+(((N|0)/-512|0)<<2)|0;c[bJ>>2]=l;bK=(c[l>>2]|0)+(511-((N|0)%512|0)<<3)|0}c[m+4>>2]=bK;c[n>>2]=be;c[n+4>>2]=bq;bq=n;n=f-(c[j>>2]|0)>>3;f=n+3|0;if((f|0)>0){be=j+(((f|0)/512|0)<<2)|0;c[bq>>2]=be;bL=(c[be>>2]|0)+(((f|0)%512|0)<<3)|0}else{f=508-n|0;n=j+(((f|0)/-512|0)<<2)|0;c[bq>>2]=n;bL=(c[n>>2]|0)+(511-((f|0)%512|0)<<3)|0}c[o+4>>2]=bL;if((ai|0)==(ak|0)){bL=aj-4|0;c[S>>2]=bL;f=(c[bL>>2]|0)+4096|0;c[O>>2]=f;bM=f}else{bM=ai}c[O>>2]=bM-8;bM=c[ae+4>>2]|0;c[p>>2]=c[ae>>2];c[p+4>>2]=bM;cL(g,k,m,o,q,0)|0;i=e;return}else if((ao|0)==610){q=c[U>>2]|0;o=c[U+4>>2]|0;m=o;k=o-(c[q>>2]|0)>>3;o=k+1|0;if((o|0)>0){bN=(c[q+(((o|0)/512|0)<<2)>>2]|0)+(((o|0)%512|0)<<3)|0}else{o=510-k|0;bN=(c[q+(((o|0)/-512|0)<<2)>>2]|0)+(511-((o|0)%512|0)<<3)|0}o=k+2|0;if((o|0)>0){bO=(c[q+(((o|0)/512|0)<<2)>>2]|0)+(((o|0)%512|0)<<3)|0}else{o=509-k|0;bO=(c[q+(((o|0)/-512|0)<<2)>>2]|0)+(511-((o|0)%512|0)<<3)|0}if((ai|0)==(ak|0)){o=aj-4|0;c[S>>2]=o;q=(c[o>>2]|0)+4096|0;c[O>>2]=q;bP=q}else{bP=ai}c[O>>2]=bP-8;bP=c[ae+4>>2]|0;bu=+h[bN>>3];bz=+h[m>>3];a8=+h[bO>>3];q=a8<bu;do{if(bu<bz){if(q){h[m>>3]=a8;h[bO>>3]=bz;bQ=bz;break}h[m>>3]=bu;h[bN>>3]=bz;bd=+h[bO>>3];if(bd>=bz){bQ=bd;break}h[bN>>3]=bd;h[bO>>3]=bz;bQ=bz}else{if(!q){bQ=a8;break}h[bN>>3]=a8;h[bO>>3]=bu;bd=+h[bN>>3];a0=+h[m>>3];if(bd>=a0){bQ=bu;break}h[m>>3]=bd;h[bN>>3]=a0;bQ=+h[bO>>3]}}while(0);bu=+h[bP>>3];if(bu>=bQ){i=e;return}h[bO>>3]=bu;h[bP>>3]=bQ;bQ=+h[bO>>3];bu=+h[bN>>3];if(bQ>=bu){i=e;return}h[bN>>3]=bQ;h[bO>>3]=bu;bu=+h[bN>>3];bQ=+h[m>>3];if(bu>=bQ){i=e;return}h[m>>3]=bu;h[bN>>3]=bQ;i=e;return}else if((ao|0)==643){bN=c[U+4>>2]|0;c[r>>2]=c[U>>2];c[r+4>>2]=bN;bN=c[ae+4>>2]|0;c[t>>2]=c[ae>>2];c[t+4>>2]=bN;cM(s,u,0);i=e;return}else if((ao|0)==593){if((ai|0)==(ak|0)){u=aj-4|0;c[S>>2]=u;s=(c[u>>2]|0)+4096|0;c[O>>2]=s;bR=s}else{bR=ai}s=bR-8|0;c[O>>2]=s;bQ=+h[s>>3];bu=+h[P>>3];if(bQ>=bu){i=e;return}h[P>>3]=bQ;h[s>>3]=bu;i=e;return}else if((ao|0)==597){s=c[U>>2]|0;P=c[U+4>>2]|0;U=P;bR=P-(c[s>>2]|0)>>3;P=bR+1|0;if((P|0)>0){bS=(c[s+(((P|0)/512|0)<<2)>>2]|0)+(((P|0)%512|0)<<3)|0}else{P=510-bR|0;bS=(c[s+(((P|0)/-512|0)<<2)>>2]|0)+(511-((P|0)%512|0)<<3)|0}if((ai|0)==(ak|0)){ak=aj-4|0;c[S>>2]=ak;S=(c[ak>>2]|0)+4096|0;c[O>>2]=S;bT=S}else{bT=ai}c[O>>2]=bT-8;bT=c[ae+4>>2]|0;bu=+h[bS>>3];bQ=+h[U>>3];a8=+h[bT>>3];ae=a8<bu;if(bu>=bQ){if(!ae){i=e;return}h[bS>>3]=a8;h[bT>>3]=bu;bz=+h[bS>>3];a0=+h[U>>3];if(bz>=a0){i=e;return}h[U>>3]=bz;h[bS>>3]=a0;i=e;return}if(ae){h[U>>3]=a8;h[bT>>3]=bQ;i=e;return}h[U>>3]=bu;h[bS>>3]=bQ;bu=+h[bT>>3];if(bu>=bQ){i=e;return}h[bS>>3]=bu;h[bT>>3]=bQ;i=e;return}else if((ao|0)==760){i=e;return}else if((ao|0)==767){i=e;return}else if((ao|0)==768){i=e;return}else if((ao|0)==769){i=e;return}else if((ao|0)==770){i=e;return}}function cL(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var j=0,k=0,l=0,m=0,n=0.0,o=0.0,p=0.0,q=0,r=0,s=0.0,t=0.0,u=0.0,v=0,w=0;g=i;j=a;a=i;i=i+8|0;c[a>>2]=c[j>>2];c[a+4>>2]=c[j+4>>2];j=b;b=i;i=i+8|0;c[b>>2]=c[j>>2];c[b+4>>2]=c[j+4>>2];j=d;d=i;i=i+8|0;c[d>>2]=c[j>>2];c[d+4>>2]=c[j+4>>2];j=e;e=i;i=i+8|0;c[e>>2]=c[j>>2];c[e+4>>2]=c[j+4>>2];j=f;f=i;i=i+8|0;c[f>>2]=c[j>>2];c[f+4>>2]=c[j+4>>2];j=c[a+4>>2]|0;k=c[b+4>>2]|0;l=c[d+4>>2]|0;m=c[e+4>>2]|0;n=+h[k>>3];o=+h[j>>3];p=+h[l>>3];q=p<n;do{if(n<o){if(q){h[j>>3]=p;h[l>>3]=o;r=1;s=o;break}h[j>>3]=n;h[k>>3]=o;t=+h[l>>3];if(t>=o){r=1;s=t;break}h[k>>3]=t;h[l>>3]=o;r=2;s=o}else{if(!q){r=0;s=p;break}h[k>>3]=p;h[l>>3]=n;t=+h[k>>3];u=+h[j>>3];if(t>=u){r=1;s=n;break}h[j>>3]=t;h[k>>3]=u;r=2;s=+h[l>>3]}}while(0);n=+h[m>>3];do{if(n<s){h[l>>3]=n;h[m>>3]=s;p=+h[l>>3];o=+h[k>>3];if(p>=o){v=r+1|0;break}h[k>>3]=p;h[l>>3]=o;o=+h[k>>3];p=+h[j>>3];if(o>=p){v=r+2|0;break}h[j>>3]=o;h[k>>3]=p;v=r+3|0}else{v=r}}while(0);r=c[f+4>>2]|0;f=c[e+4>>2]|0;s=+h[r>>3];n=+h[f>>3];if(s>=n){w=v;i=g;return w|0}h[f>>3]=s;h[r>>3]=n;r=c[d+4>>2]|0;n=+h[f>>3];s=+h[r>>3];if(n>=s){w=v+1|0;i=g;return w|0}h[r>>3]=n;h[f>>3]=s;f=c[b+4>>2]|0;s=+h[r>>3];n=+h[f>>3];if(s>=n){w=v+2|0;i=g;return w|0}h[f>>3]=s;h[r>>3]=n;r=c[a+4>>2]|0;n=+h[f>>3];s=+h[r>>3];if(n>=s){w=v+3|0;i=g;return w|0}h[r>>3]=n;h[f>>3]=s;w=v+4|0;i=g;return w|0}function cM(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;d=i;e=a;a=i;i=i+8|0;c[a>>2]=c[e>>2];c[a+4>>2]=c[e+4>>2];e=b;b=i;i=i+8|0;c[b>>2]=c[e>>2];c[b+4>>2]=c[e+4>>2];e=c[a>>2]|0;f=a+4|0;g=(c[f>>2]|0)-(c[e>>2]|0)>>3;j=g+2|0;if((j|0)>0){k=e+(((j|0)/512|0)<<2)|0;l=(c[k>>2]|0)+(((j|0)%512|0)<<3)|0;m=k}else{k=509-g|0;g=e+(((k|0)/-512|0)<<2)|0;l=(c[g>>2]|0)+(511-((k|0)%512|0)<<3)|0;m=g}g=a;a=c[g>>2]|0;k=c[g+4>>2]|0;g=k;e=k-(c[a>>2]|0)>>3;k=e+1|0;if((k|0)>0){n=(c[a+(((k|0)/512|0)<<2)>>2]|0)+(((k|0)%512|0)<<3)|0}else{k=510-e|0;n=(c[a+(((k|0)/-512|0)<<2)>>2]|0)+(511-((k|0)%512|0)<<3)|0}o=+h[n>>3];p=+h[g>>3];q=+h[l>>3];k=q<o;do{if(o<p){if(k){h[g>>3]=q;h[l>>3]=p;break}h[g>>3]=o;h[n>>3]=p;r=+h[l>>3];if(r>=p){break}h[n>>3]=r;h[l>>3]=p}else{if(!k){break}h[n>>3]=q;h[l>>3]=o;r=+h[n>>3];s=+h[g>>3];if(r>=s){break}h[g>>3]=r;h[n>>3]=s}}while(0);n=l-(c[m>>2]|0)>>3;g=n+1|0;if((g|0)>0){k=m+(((g|0)/512|0)<<2)|0;a=c[k>>2]|0;t=k;u=a+(((g|0)%512|0)<<3)|0;v=a}else{a=510-n|0;n=m+(((a|0)/-512|0)<<2)|0;g=c[n>>2]|0;t=n;u=g+(511-((a|0)%512|0)<<3)|0;v=g}g=b+4|0;b=l;l=t;t=u;u=m;m=v;L1022:while(1){v=b;a=t;n=u;k=m;while(1){if((a|0)==(c[g>>2]|0)){break L1022}o=+h[a>>3];q=+h[v>>3];if(o<q){e=n;j=v;w=a;p=q;while(1){h[w>>3]=p;if((j|0)==(c[f>>2]|0)){break}if((j|0)==(c[e>>2]|0)){x=e-4|0;y=x;z=(c[x>>2]|0)+4096|0}else{y=e;z=j}x=z-8|0;q=+h[x>>3];if(o<q){e=y;w=j;j=x;p=q}else{break}}h[j>>3]=o;A=c[l>>2]|0}else{A=k}w=a+8|0;if((w-A|0)==4096){break}else{v=a;a=w;n=l;k=A}}k=l+4|0;n=c[k>>2]|0;b=a;u=l;l=k;t=n;m=n}i=d;return}function cN(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0.0,E=0.0,F=0,G=0,H=0.0,I=0.0,J=0.0,K=0,L=0,M=0,N=0.0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ab=0,ac=0,ad=0,ae=0,af=0;d=i;i=i+8|0;e=a;a=i;i=i+8|0;c[a>>2]=c[e>>2];c[a+4>>2]=c[e+4>>2];e=b;b=i;i=i+8|0;c[b>>2]=c[e>>2];c[b+4>>2]=c[e+4>>2];e=d|0;f=e;g=i;i=i+8|0;j=g;k=i;i=i+8|0;l=k;m=i;i=i+8|0;n=m;o=i;i=i+8|0;p=o;q=b+4|0;r=c[q>>2]|0;s=a+4|0;t=c[s>>2]|0;if((r|0)==(t|0)){u=1;i=d;return u|0}v=b|0;w=c[v>>2]|0;x=c[a>>2]|0;y=c[w>>2]|0;z=t-(c[x>>2]|0)>>3;switch((r-y>>3)+(w-x<<7)-z|0){case 2:{if((r|0)==(y|0)){A=w-4|0;c[v>>2]=A;B=(c[A>>2]|0)+4096|0;c[q>>2]=B;C=B}else{C=r}B=C-8|0;c[q>>2]=B;D=+h[B>>3];E=+h[t>>3];if(D>=E){u=1;i=d;return u|0}h[t>>3]=D;h[B>>3]=E;u=1;i=d;return u|0};case 0:case 1:{u=1;i=d;return u|0};case 3:{B=a;t=c[B>>2]|0;C=c[B+4>>2]|0;B=C;A=C-(c[t>>2]|0)>>3;C=A+1|0;if((C|0)>0){F=(c[t+(((C|0)/512|0)<<2)>>2]|0)+(((C|0)%512|0)<<3)|0}else{C=510-A|0;F=(c[t+(((C|0)/-512|0)<<2)>>2]|0)+(511-((C|0)%512|0)<<3)|0}if((r|0)==(y|0)){C=w-4|0;c[v>>2]=C;t=(c[C>>2]|0)+4096|0;c[q>>2]=t;G=t}else{G=r}c[q>>2]=G-8;G=c[b+4>>2]|0;E=+h[F>>3];D=+h[B>>3];H=+h[G>>3];t=H<E;if(E>=D){if(!t){u=1;i=d;return u|0}h[F>>3]=H;h[G>>3]=E;I=+h[F>>3];J=+h[B>>3];if(I>=J){u=1;i=d;return u|0}h[B>>3]=I;h[F>>3]=J;u=1;i=d;return u|0}if(t){h[B>>3]=H;h[G>>3]=D;u=1;i=d;return u|0}h[B>>3]=E;h[F>>3]=D;E=+h[G>>3];if(E>=D){u=1;i=d;return u|0}h[F>>3]=E;h[G>>3]=D;u=1;i=d;return u|0};case 4:{G=a;F=c[G>>2]|0;B=c[G+4>>2]|0;G=B;t=B-(c[F>>2]|0)>>3;B=t+1|0;if((B|0)>0){K=(c[F+(((B|0)/512|0)<<2)>>2]|0)+(((B|0)%512|0)<<3)|0}else{B=510-t|0;K=(c[F+(((B|0)/-512|0)<<2)>>2]|0)+(511-((B|0)%512|0)<<3)|0}B=t+2|0;if((B|0)>0){L=(c[F+(((B|0)/512|0)<<2)>>2]|0)+(((B|0)%512|0)<<3)|0}else{B=509-t|0;L=(c[F+(((B|0)/-512|0)<<2)>>2]|0)+(511-((B|0)%512|0)<<3)|0}if((r|0)==(y|0)){B=w-4|0;c[v>>2]=B;F=(c[B>>2]|0)+4096|0;c[q>>2]=F;M=F}else{M=r}c[q>>2]=M-8;M=c[b+4>>2]|0;D=+h[K>>3];E=+h[G>>3];H=+h[L>>3];F=H<D;do{if(D<E){if(F){h[G>>3]=H;h[L>>3]=E;N=E;break}h[G>>3]=D;h[K>>3]=E;J=+h[L>>3];if(J>=E){N=J;break}h[K>>3]=J;h[L>>3]=E;N=E}else{if(!F){N=H;break}h[K>>3]=H;h[L>>3]=D;J=+h[K>>3];I=+h[G>>3];if(J>=I){N=D;break}h[G>>3]=J;h[K>>3]=I;N=+h[L>>3]}}while(0);D=+h[M>>3];if(D>=N){u=1;i=d;return u|0}h[L>>3]=D;h[M>>3]=N;N=+h[L>>3];D=+h[K>>3];if(N>=D){u=1;i=d;return u|0}h[K>>3]=N;h[L>>3]=D;D=+h[K>>3];N=+h[G>>3];if(D>=N){u=1;i=d;return u|0}h[G>>3]=D;h[K>>3]=N;u=1;i=d;return u|0};case 5:{K=a;G=c[K>>2]|0;L=c[K+4>>2]|0;c[e>>2]=G;c[e+4>>2]=L;c[g>>2]=G;c[g+4>>2]=L;e=L;K=g;g=G;M=e-(c[g>>2]|0)>>3;F=M+1|0;if((F|0)>0){B=g+(((F|0)/512|0)<<2)|0;c[K>>2]=B;O=(c[B>>2]|0)+(((F|0)%512|0)<<3)|0}else{F=510-M|0;M=g+(((F|0)/-512|0)<<2)|0;c[K>>2]=M;O=(c[M>>2]|0)+(511-((F|0)%512|0)<<3)|0}c[j+4>>2]=O;c[k>>2]=G;c[k+4>>2]=L;O=k;k=e-(c[g>>2]|0)>>3;F=k+2|0;if((F|0)>0){M=g+(((F|0)/512|0)<<2)|0;c[O>>2]=M;P=(c[M>>2]|0)+(((F|0)%512|0)<<3)|0}else{F=509-k|0;k=g+(((F|0)/-512|0)<<2)|0;c[O>>2]=k;P=(c[k>>2]|0)+(511-((F|0)%512|0)<<3)|0}c[l+4>>2]=P;c[m>>2]=G;c[m+4>>2]=L;L=m;m=e-(c[g>>2]|0)>>3;e=m+3|0;if((e|0)>0){G=g+(((e|0)/512|0)<<2)|0;c[L>>2]=G;Q=(c[G>>2]|0)+(((e|0)%512|0)<<3)|0}else{e=508-m|0;m=g+(((e|0)/-512|0)<<2)|0;c[L>>2]=m;Q=(c[m>>2]|0)+(511-((e|0)%512|0)<<3)|0}c[n+4>>2]=Q;if((r|0)==(y|0)){y=w-4|0;c[v>>2]=y;v=(c[y>>2]|0)+4096|0;c[q>>2]=v;R=v}else{R=r}c[q>>2]=R-8;R=b;b=c[R+4>>2]|0;c[o>>2]=c[R>>2];c[o+4>>2]=b;cL(f,j,l,n,p,0)|0;u=1;i=d;return u|0};default:{p=z+2|0;if((p|0)>0){n=x+(((p|0)/512|0)<<2)|0;S=n;T=(c[n>>2]|0)+(((p|0)%512|0)<<3)|0}else{p=509-z|0;z=x+(((p|0)/-512|0)<<2)|0;S=z;T=(c[z>>2]|0)+(511-((p|0)%512|0)<<3)|0}p=a;a=c[p>>2]|0;z=c[p+4>>2]|0;p=z;x=z-(c[a>>2]|0)>>3;z=x+1|0;if((z|0)>0){U=(c[a+(((z|0)/512|0)<<2)>>2]|0)+(((z|0)%512|0)<<3)|0}else{z=510-x|0;U=(c[a+(((z|0)/-512|0)<<2)>>2]|0)+(511-((z|0)%512|0)<<3)|0}N=+h[U>>3];D=+h[p>>3];H=+h[T>>3];z=H<N;do{if(N<D){if(z){h[p>>3]=H;h[T>>3]=D;break}h[p>>3]=N;h[U>>3]=D;E=+h[T>>3];if(E>=D){break}h[U>>3]=E;h[T>>3]=D}else{if(!z){break}h[U>>3]=H;h[T>>3]=N;E=+h[U>>3];I=+h[p>>3];if(E>=I){break}h[p>>3]=E;h[U>>3]=I}}while(0);U=T-(c[S>>2]|0)>>3;p=U+1|0;if((p|0)>0){z=S+(((p|0)/512|0)<<2)|0;a=c[z>>2]|0;V=0;W=a+(((p|0)%512|0)<<3)|0;X=z;Y=S;Z=T;_=a}else{a=510-U|0;U=S+(((a|0)/-512|0)<<2)|0;z=c[U>>2]|0;V=0;W=z+(511-((a|0)%512|0)<<3)|0;X=U;Y=S;Z=T;_=z}L1065:while(1){z=V;$=W;T=Y;S=Z;U=_;while(1){if(($|0)==(c[q>>2]|0)){u=1;aa=906;break L1065}N=+h[$>>3];H=+h[S>>3];if(N<H){a=T;p=S;x=$;D=H;while(1){h[x>>3]=D;if((p|0)==(c[s>>2]|0)){break}if((p|0)==(c[a>>2]|0)){n=a-4|0;ab=n;ac=(c[n>>2]|0)+4096|0}else{ab=a;ac=p}n=ac-8|0;H=+h[n>>3];if(N<H){a=ab;x=p;p=n;D=H}else{break}}h[p>>3]=N;x=z+1|0;if((x|0)==8){break L1065}ad=x;ae=c[X>>2]|0}else{ad=z;ae=U}x=$+8|0;if((x-ae|0)==4096){break}else{z=ad;S=$;$=x;T=X;U=ae}}U=X+4|0;T=c[U>>2]|0;V=ad;W=T;Y=X;X=U;Z=$;_=T}if((aa|0)==906){i=d;return u|0}aa=$+8|0;if((aa-(c[X>>2]|0)|0)==4096){af=c[X+4>>2]|0}else{af=aa}u=(af|0)==(c[q>>2]|0);i=d;return u|0}}return 0}function cO(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;e=a+8|0;f=c[e>>2]|0;g=a+4|0;i=c[g>>2]|0;if((f|0)==(i|0)){j=0}else{j=(f-i<<7)-1|0}k=a+16|0;l=c[k>>2]|0;m=a+20|0;n=c[m>>2]|0;o=j-l-n|0;if(o>>>0<b>>>0){cQ(a,b-o|0);p=c[m>>2]|0;q=c[k>>2]|0;r=c[g>>2]|0;s=c[e>>2]|0}else{p=n;q=l;r=i;s=f}f=q+p|0;p=r+(f>>>9<<2)|0;if((s|0)==(r|0)){t=0}else{t=(c[p>>2]|0)+((f&511)<<3)|0}if((b|0)==0){return}else{u=t;v=p;w=b}while(1){if((u|0)!=0){h[u>>3]=+h[d>>3]}b=w-1|0;p=u+8|0;if((p-(c[v>>2]|0)|0)==4096){t=v+4|0;x=t;y=c[t>>2]|0}else{x=v;y=p}c[m>>2]=(c[m>>2]|0)+1;if((b|0)==0){break}else{u=y;v=x;w=b}}return}function cP(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=a+4|0;e=c[d>>2]|0;f=a|0;do{if((e|0)==(c[f>>2]|0)){g=a+8|0;h=c[g>>2]|0;i=a+12|0;j=c[i>>2]|0;k=j;if(h>>>0<j>>>0){j=h;l=((k-j>>2)+1|0)/2|0;m=j-e|0;j=h+(l-(m>>2)<<2)|0;k_(j|0,e|0,m|0);c[d>>2]=j;c[g>>2]=(c[g>>2]|0)+(l<<2);n=j;break}j=k-e>>1;k=(j|0)==0?1:j;j=kO(k<<2)|0;l=j+((k+3|0)>>>2<<2)|0;m=j+(k<<2)|0;if((e|0)==(h|0)){o=l;p=e}else{k=e;q=l;do{if((q|0)==0){r=0}else{c[q>>2]=c[k>>2];r=q}q=r+4|0;k=k+4|0;}while((k|0)!=(h|0));o=q;p=c[f>>2]|0}c[f>>2]=j;c[d>>2]=l;c[g>>2]=o;c[i>>2]=m;if((p|0)==0){n=l;break}kS(p);n=c[d>>2]|0}else{n=e}}while(0);e=n-4|0;if((e|0)==0){s=n;t=s-4|0;c[d>>2]=t;return}c[e>>2]=c[b>>2];s=c[d>>2]|0;t=s-4|0;c[d>>2]=t;return}function cQ(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ab=0,ac=0,ad=0,ae=0,af=0,ag=0,ah=0,ai=0,aj=0,ak=0;d=i;i=i+32|0;e=d|0;f=d+8|0;g=a|0;h=a+8|0;j=c[h>>2]|0;k=a+4|0;l=c[k>>2]|0;m=((j|0)==(l|0))+b|0;b=((m&511|0)!=0)+(m>>>9)|0;m=a+16|0;n=c[m>>2]|0;o=n>>>9;p=b>>>0<o>>>0?b:o;q=b-p|0;if((b|0)==(p|0)){c[m>>2]=n-(b<<9);if((b|0)==0){i=d;return}n=a+12|0;r=a|0;s=b;t=j;u=l;while(1){v=c[u>>2]|0;w=u+4|0;c[k>>2]=w;do{if((t|0)==(c[n>>2]|0)){x=c[r>>2]|0;if(w>>>0>x>>>0){y=w;z=((y-x>>2)+1|0)/-2|0;A=z+1|0;B=t-y|0;k_(u+(A<<2)|0,w|0,B|0);y=u+(A+(B>>2)<<2)|0;c[h>>2]=y;c[k>>2]=(c[k>>2]|0)+(z<<2);C=y;break}y=t-x>>1;z=(y|0)==0?1:y;y=kO(z<<2)|0;B=y+(z>>>2<<2)|0;A=y+(z<<2)|0;if((w|0)==(t|0)){D=B;E=x}else{x=w;z=B;do{if((z|0)==0){F=0}else{c[z>>2]=c[x>>2];F=z}z=F+4|0;x=x+4|0;}while((x|0)!=(t|0));D=z;E=c[r>>2]|0}c[r>>2]=y;c[k>>2]=B;c[h>>2]=D;c[n>>2]=A;if((E|0)==0){C=D;break}kS(E);C=c[h>>2]|0}else{C=t}}while(0);if((C|0)==0){G=0}else{c[C>>2]=v;G=c[h>>2]|0}w=G+4|0;c[h>>2]=w;x=s-1|0;if((x|0)==0){break}s=x;t=w;u=c[k>>2]|0}i=d;return}u=a+12|0;t=u|0;s=c[t>>2]|0;G=a|0;a=s-(c[G>>2]|0)|0;C=j-l>>2;if(q>>>0<=((a>>2)-C|0)>>>0){l=q;E=j;j=s;while(1){if((j|0)==(E|0)){H=971;break}s=kO(4096)|0;if((E|0)==0){I=0}else{c[E>>2]=s;I=c[h>>2]|0}s=I+4|0;c[h>>2]=s;D=l-1|0;if((D|0)==0){J=s;H=972;break}l=D;E=s;j=c[t>>2]|0}do{if((H|0)==971){if((l|0)==0){J=j;H=972;break}E=~o;I=~b;s=E>>>0>I>>>0?E:I;I=l;do{c[e>>2]=kO(4096)|0;cP(g,e);I=I-1|0;K=c[h>>2]|0;L=(c[m>>2]|0)+512-((K-(c[k>>2]|0)|0)==4)|0;c[m>>2]=L;}while((I|0)!=0);M=l-1-s|0;N=K;O=L}}while(0);if((H|0)==972){M=p;N=J;O=c[m>>2]|0}c[m>>2]=O-(M<<9);if((M|0)==0){i=d;return}else{P=M;Q=N}do{N=c[k>>2]|0;M=c[N>>2]|0;O=N+4|0;c[k>>2]=O;do{if((Q|0)==(c[t>>2]|0)){J=c[G>>2]|0;if(O>>>0>J>>>0){H=O;L=((H-J>>2)+1|0)/-2|0;K=L+1|0;l=Q-H|0;k_(N+(K<<2)|0,O|0,l|0);H=N+(K+(l>>2)<<2)|0;c[h>>2]=H;c[k>>2]=(c[k>>2]|0)+(L<<2);R=H;break}H=Q-J>>1;L=(H|0)==0?1:H;H=kO(L<<2)|0;l=H+(L>>>2<<2)|0;K=H+(L<<2)|0;if((O|0)==(Q|0)){S=l;T=J}else{J=O;L=l;do{if((L|0)==0){U=0}else{c[L>>2]=c[J>>2];U=L}L=U+4|0;J=J+4|0;}while((J|0)!=(Q|0));S=L;T=c[G>>2]|0}c[G>>2]=H;c[k>>2]=l;c[h>>2]=S;c[t>>2]=K;if((T|0)==0){R=S;break}kS(T);R=c[h>>2]|0}else{R=Q}}while(0);if((R|0)==0){V=0}else{c[R>>2]=M;V=c[h>>2]|0}Q=V+4|0;c[h>>2]=Q;P=P-1|0;}while((P|0)!=0);i=d;return}P=p<<9;Q=a>>1;a=q+C|0;V=Q>>>0<a>>>0?a:Q;Q=f+12|0;c[Q>>2]=0;c[f+16>>2]=u;if((V|0)==0){W=0}else{W=kO(V<<2)|0}u=f|0;c[u>>2]=W;a=W+(C-p<<2)|0;C=f+8|0;c[C>>2]=a;R=f+4|0;c[R>>2]=a;T=W+(V<<2)|0;c[Q>>2]=T;V=q;q=W;W=a;S=T;T=a;while(1){a=kO(4096)|0;do{if((W|0)==(S|0)){if(T>>>0>q>>>0){U=T;O=((U-q>>2)+1|0)/-2|0;N=S-U|0;k_(T+(O<<2)|0,T|0,N|0);U=T+(O+(N>>2)<<2)|0;c[C>>2]=U;N=(c[R>>2]|0)+(O<<2)|0;c[R>>2]=N;X=U;Y=S;Z=q;_=N;break}N=S-q>>1;U=(N|0)==0?1:N;N=kO(U<<2)|0;O=N+(U>>>2<<2)|0;s=N+(U<<2)|0;if((T|0)==(S|0)){$=O;aa=q}else{U=T;J=O;do{if((J|0)==0){ab=0}else{c[J>>2]=c[U>>2];ab=J}J=ab+4|0;U=U+4|0;}while((U|0)!=(S|0));$=J;aa=c[u>>2]|0}c[u>>2]=N;c[R>>2]=O;c[C>>2]=$;c[Q>>2]=s;if((aa|0)==0){X=$;Y=s;Z=N;_=O;break}kS(aa);X=$;Y=s;Z=N;_=O}else{X=W;Y=S;Z=q;_=T}}while(0);if((X|0)==0){ac=0}else{c[X>>2]=a;ac=c[C>>2]|0}ad=ac+4|0;c[C>>2]=ad;M=V-1|0;if((M|0)==0){break}else{V=M;q=Z;W=ad;S=Y;T=_}}if((p|0)!=0){_=p;p=c[k>>2]|0;T=ad;ad=Y;Y=Z;while(1){do{if((T|0)==(ad|0)){Z=c[R>>2]|0;if(Z>>>0>Y>>>0){S=Z;W=((S-Y>>2)+1|0)/-2|0;q=Z+(W<<2)|0;V=ad-S|0;k_(q|0,Z|0,V|0);S=Z+(W+(V>>2)<<2)|0;c[C>>2]=S;c[R>>2]=q;ae=S;af=ad;ag=Y;break}S=ad-Y>>1;q=(S|0)==0?1:S;S=kO(q<<2)|0;V=S+(q>>>2<<2)|0;W=S+(q<<2)|0;if((Z|0)==(ad|0)){ah=V;ai=Y}else{q=Z;Z=V;do{if((Z|0)==0){aj=0}else{c[Z>>2]=c[q>>2];aj=Z}Z=aj+4|0;q=q+4|0;}while((q|0)!=(ad|0));ah=Z;ai=c[u>>2]|0}c[u>>2]=S;c[R>>2]=V;c[C>>2]=ah;c[Q>>2]=W;if((ai|0)==0){ae=ah;af=W;ag=S;break}kS(ai);ae=ah;af=W;ag=S}else{ae=T;af=ad;ag=Y}}while(0);if((ae|0)==0){ak=0}else{c[ae>>2]=c[p>>2];ak=c[C>>2]|0}a=ak+4|0;c[C>>2]=a;q=(c[k>>2]|0)+4|0;c[k>>2]=q;O=_-1|0;if((O|0)==0){break}else{_=O;p=q;T=a;ad=af;Y=ag}}}ag=c[h>>2]|0;while(1){if((ag|0)==(c[k>>2]|0)){break}Y=ag-4|0;cS(f,Y);ag=Y}f=c[G>>2]|0;c[G>>2]=c[u>>2];c[u>>2]=f;c[k>>2]=c[R>>2];c[R>>2]=ag;R=c[h>>2]|0;c[h>>2]=c[C>>2];c[C>>2]=R;h=c[t>>2]|0;c[t>>2]=c[Q>>2];c[Q>>2]=h;c[m>>2]=(c[m>>2]|0)-P;if((ag|0)!=(R|0)){c[C>>2]=R+(~((R-4+(-ag|0)|0)>>>2)<<2)}if((f|0)==0){i=d;return}kS(f);i=d;return}function cR(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0.0,i=0.0,j=0.0,k=0,l=0.0,m=0.0,n=0.0,o=0,p=0;g=+h[b>>3];i=+h[a>>3];j=+h[c>>3];f=j<g;do{if(g<i){if(f){h[a>>3]=j;h[c>>3]=i;k=1;l=i;break}h[a>>3]=g;h[b>>3]=i;m=+h[c>>3];if(m>=i){k=1;l=m;break}h[b>>3]=m;h[c>>3]=i;k=2;l=i}else{if(!f){k=0;l=j;break}h[b>>3]=j;h[c>>3]=g;m=+h[b>>3];n=+h[a>>3];if(m>=n){k=1;l=g;break}h[a>>3]=m;h[b>>3]=n;k=2;l=+h[c>>3]}}while(0);g=+h[d>>3];do{if(g<l){h[c>>3]=g;h[d>>3]=l;j=+h[c>>3];i=+h[b>>3];if(j>=i){o=k+1|0;break}h[b>>3]=j;h[c>>3]=i;i=+h[b>>3];j=+h[a>>3];if(i<j){h[a>>3]=i;h[b>>3]=j;o=k+3|0;break}else{o=k+2|0;break}}else{o=k}}while(0);l=+h[e>>3];g=+h[d>>3];if(l>=g){p=o;return p|0}h[d>>3]=l;h[e>>3]=g;g=+h[d>>3];l=+h[c>>3];if(g>=l){p=o+1|0;return p|0}h[c>>3]=g;h[d>>3]=l;l=+h[c>>3];g=+h[b>>3];if(l>=g){p=o+2|0;return p|0}h[b>>3]=l;h[c>>3]=g;g=+h[b>>3];l=+h[a>>3];if(g>=l){p=o+3|0;return p|0}h[a>>3]=g;h[b>>3]=l;p=o+4|0;return p|0}function cS(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=a+4|0;e=c[d>>2]|0;f=a|0;do{if((e|0)==(c[f>>2]|0)){g=a+8|0;h=c[g>>2]|0;i=a+12|0;j=c[i>>2]|0;k=j;if(h>>>0<j>>>0){j=h;l=((k-j>>2)+1|0)/2|0;m=j-e|0;j=h+(l-(m>>2)<<2)|0;k_(j|0,e|0,m|0);c[d>>2]=j;c[g>>2]=(c[g>>2]|0)+(l<<2);n=j;break}j=k-e>>1;k=(j|0)==0?1:j;j=kO(k<<2)|0;l=j+((k+3|0)>>>2<<2)|0;m=j+(k<<2)|0;if((e|0)==(h|0)){o=l;p=e}else{k=e;q=l;do{if((q|0)==0){r=0}else{c[q>>2]=c[k>>2];r=q}q=r+4|0;k=k+4|0;}while((k|0)!=(h|0));o=q;p=c[f>>2]|0}c[f>>2]=j;c[d>>2]=l;c[g>>2]=o;c[i>>2]=m;if((p|0)==0){n=l;break}kS(p);n=c[d>>2]|0}else{n=e}}while(0);e=n-4|0;if((e|0)==0){s=n;t=s-4|0;c[d>>2]=t;return}c[e>>2]=c[b>>2];s=c[d>>2]|0;t=s-4|0;c[d>>2]=t;return}function cT(){c[2446]=0;c[2447]=0;c[2448]=0;a$(72,9784,u|0)|0;return}function cU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0,v=0,w=0,x=0.0,y=0,z=0.0,A=0,B=0,C=0,D=0.0,E=0,F=0,G=0.0,H=0,I=0,J=0,K=0.0,L=0,M=0,N=0.0,O=0,P=0,Q=0,R=0,S=0,T=0.0,U=0,V=0,W=0.0,X=0,Y=0.0;d=a;a=b;L1397:while(1){b=a;e=a-8|0;f=d;L1399:while(1){g=f;i=b-g|0;j=i>>3;switch(j|0){case 3:{k=1102;break L1397;break};case 5:{k=1122;break L1397;break};case 2:{k=1100;break L1397;break};case 0:case 1:{k=1185;break L1397;break};case 4:{k=1110;break L1397;break};default:{}}if((i|0)<248){k=1124;break L1397}l=(j|0)/2|0;m=f+(l<<3)|0;do{if((i|0)>7992){n=(j|0)/4|0;o=cR(f,f+(n<<3)|0,m,f+(n+l<<3)|0,e,0)|0}else{p=+h[m>>3];q=+h[f>>3];r=+h[e>>3];n=r<p;if(p>=q){if(!n){o=0;break}h[m>>3]=r;h[e>>3]=p;s=+h[m>>3];t=+h[f>>3];if(s>=t){o=1;break}h[f>>3]=s;h[m>>3]=t;o=2;break}if(n){h[f>>3]=r;h[e>>3]=q;o=1;break}h[f>>3]=p;h[m>>3]=q;p=+h[e>>3];if(p>=q){o=1;break}h[m>>3]=p;h[e>>3]=q;o=2}}while(0);q=+h[f>>3];p=+h[m>>3];do{if(q<p){u=e;v=o}else{l=e;while(1){w=l-8|0;if((f|0)==(w|0)){break}x=+h[w>>3];if(x<p){k=1162;break}else{l=w}}if((k|0)==1162){k=0;h[f>>3]=x;h[w>>3]=q;u=w;v=o+1|0;break}l=f+8|0;r=+h[e>>3];if(q<r){y=l}else{j=l;while(1){if((j|0)==(e|0)){k=1197;break L1397}z=+h[j>>3];A=j+8|0;if(q<z){break}else{j=A}}h[j>>3]=r;h[e>>3]=z;y=A}if((y|0)==(e|0)){k=1192;break L1397}else{B=e;C=y}while(1){t=+h[f>>3];l=C;while(1){D=+h[l>>3];E=l+8|0;if(t>=D){l=E}else{F=B;break}}do{F=F-8|0;G=+h[F>>3];}while(t<G);if(l>>>0>=F>>>0){f=l;continue L1399}h[l>>3]=G;h[F>>3]=D;B=F;C=E}}}while(0);j=f+8|0;L1438:do{if(j>>>0<u>>>0){i=u;n=j;H=v;I=m;while(1){q=+h[I>>3];J=n;while(1){K=+h[J>>3];L=J+8|0;if(K<q){J=L}else{M=i;break}}do{M=M-8|0;N=+h[M>>3];}while(N>=q);if(J>>>0>M>>>0){O=J;P=H;Q=I;break L1438}h[J>>3]=N;h[M>>3]=K;i=M;n=L;H=H+1|0;I=(I|0)==(J|0)?M:I}}else{O=j;P=v;Q=m}}while(0);do{if((O|0)==(Q|0)){R=P}else{q=+h[Q>>3];p=+h[O>>3];if(q>=p){R=P;break}h[O>>3]=q;h[Q>>3]=p;R=P+1|0}}while(0);if((R|0)==0){S=cV(f,O,0)|0;m=O+8|0;if(cV(m,a,0)|0){k=1174;break}if(S){f=m;continue}}m=O;if((m-g|0)>=(b-m|0)){k=1178;break}cU(f,O,c);f=O+8|0}if((k|0)==1174){k=0;if(S){k=1186;break}else{d=f;a=O;continue}}else if((k|0)==1178){k=0;cU(O+8|0,a,c);d=f;a=O;continue}}if((k|0)==1102){O=f+8|0;K=+h[O>>3];N=+h[f>>3];D=+h[e>>3];d=D<K;if(K>=N){if(!d){return}h[O>>3]=D;h[e>>3]=K;G=+h[O>>3];z=+h[f>>3];if(G>=z){return}h[f>>3]=G;h[O>>3]=z;return}if(d){h[f>>3]=D;h[e>>3]=N;return}h[f>>3]=K;h[O>>3]=N;K=+h[e>>3];if(K>=N){return}h[O>>3]=K;h[e>>3]=N;return}else if((k|0)==1122){cR(f,f+8|0,f+16|0,f+24|0,e,0)|0;return}else if((k|0)==1124){O=f+16|0;d=f+8|0;N=+h[d>>3];K=+h[f>>3];D=+h[O>>3];c=D<N;do{if(N<K){if(c){h[f>>3]=D;h[O>>3]=K;T=K;break}h[f>>3]=N;h[d>>3]=K;if(D>=K){T=D;break}h[d>>3]=D;h[O>>3]=K;T=K}else{if(!c){T=D;break}h[d>>3]=D;h[O>>3]=N;if(D>=K){T=N;break}h[f>>3]=D;h[d>>3]=K;T=N}}while(0);d=f+24|0;if((d|0)==(a|0)){return}else{U=O;V=d;W=T}while(1){T=+h[V>>3];if(T<W){d=U;O=V;N=W;while(1){h[O>>3]=N;if((d|0)==(f|0)){X=f;break}c=d-8|0;K=+h[c>>3];if(T<K){O=d;d=c;N=K}else{X=d;break}}h[X>>3]=T}d=V+8|0;if((d|0)==(a|0)){break}N=+h[V>>3];U=V;V=d;W=N}return}else if((k|0)==1197){return}else if((k|0)==1100){W=+h[e>>3];N=+h[f>>3];if(W>=N){return}h[f>>3]=W;h[e>>3]=N;return}else if((k|0)==1185){return}else if((k|0)==1186){return}else if((k|0)==1192){return}else if((k|0)==1110){k=f+8|0;V=f+16|0;N=+h[k>>3];W=+h[f>>3];K=+h[V>>3];U=K<N;do{if(N<W){if(U){h[f>>3]=K;h[V>>3]=W;Y=W;break}h[f>>3]=N;h[k>>3]=W;if(K>=W){Y=K;break}h[k>>3]=K;h[V>>3]=W;Y=W}else{if(!U){Y=K;break}h[k>>3]=K;h[V>>3]=N;if(K>=W){Y=N;break}h[f>>3]=K;h[k>>3]=W;Y=N}}while(0);N=+h[e>>3];if(N>=Y){return}h[V>>3]=N;h[e>>3]=Y;Y=+h[V>>3];N=+h[k>>3];if(Y>=N){return}h[k>>3]=Y;h[V>>3]=N;N=+h[f>>3];if(Y>=N){return}h[f>>3]=Y;h[k>>3]=N;return}}function cV(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0.0,g=0.0,i=0.0,j=0,k=0.0,l=0.0,m=0,n=0.0,o=0.0,p=0,q=0,r=0,s=0.0,t=0,u=0,v=0;switch(b-a>>3|0){case 0:case 1:{d=1;return d|0};case 3:{c=a+8|0;e=b-8|0;f=+h[c>>3];g=+h[a>>3];i=+h[e>>3];j=i<f;if(f>=g){if(!j){d=1;return d|0}h[c>>3]=i;h[e>>3]=f;k=+h[c>>3];l=+h[a>>3];if(k>=l){d=1;return d|0}h[a>>3]=k;h[c>>3]=l;d=1;return d|0}if(j){h[a>>3]=i;h[e>>3]=g;d=1;return d|0}h[a>>3]=f;h[c>>3]=g;f=+h[e>>3];if(f>=g){d=1;return d|0}h[c>>3]=f;h[e>>3]=g;d=1;return d|0};case 2:{e=b-8|0;g=+h[e>>3];f=+h[a>>3];if(g>=f){d=1;return d|0}h[a>>3]=g;h[e>>3]=f;d=1;return d|0};case 4:{e=a+8|0;c=a+16|0;j=b-8|0;f=+h[e>>3];g=+h[a>>3];i=+h[c>>3];m=i<f;do{if(f<g){if(m){h[a>>3]=i;h[c>>3]=g;n=g;break}h[a>>3]=f;h[e>>3]=g;if(i>=g){n=i;break}h[e>>3]=i;h[c>>3]=g;n=g}else{if(!m){n=i;break}h[e>>3]=i;h[c>>3]=f;if(i>=g){n=f;break}h[a>>3]=i;h[e>>3]=g;n=f}}while(0);f=+h[j>>3];if(f>=n){d=1;return d|0}h[c>>3]=f;h[j>>3]=n;n=+h[c>>3];f=+h[e>>3];if(n>=f){d=1;return d|0}h[e>>3]=n;h[c>>3]=f;f=+h[a>>3];if(n>=f){d=1;return d|0}h[a>>3]=n;h[e>>3]=f;d=1;return d|0};case 5:{cR(a,a+8|0,a+16|0,a+24|0,b-8|0,0)|0;d=1;return d|0};default:{e=a+16|0;c=a+8|0;f=+h[c>>3];n=+h[a>>3];g=+h[e>>3];j=g<f;do{if(f<n){if(j){h[a>>3]=g;h[e>>3]=n;o=n;break}h[a>>3]=f;h[c>>3]=n;if(g>=n){o=g;break}h[c>>3]=g;h[e>>3]=n;o=n}else{if(!j){o=g;break}h[c>>3]=g;h[e>>3]=f;if(g>=n){o=f;break}h[a>>3]=g;h[c>>3]=n;o=f}}while(0);c=a+24|0;if((c|0)==(b|0)){d=1;return d|0}else{p=e;q=0;r=c;s=o}while(1){o=+h[r>>3];if(o<s){c=p;e=r;f=s;while(1){h[e>>3]=f;if((c|0)==(a|0)){t=a;break}j=c-8|0;n=+h[j>>3];if(o<n){e=c;c=j;f=n}else{t=c;break}}h[t>>3]=o;c=q+1|0;if((c|0)==8){break}else{u=c}}else{u=q}c=r+8|0;if((c|0)==(b|0)){d=1;v=1256;break}f=+h[r>>3];p=r;q=u;r=c;s=f}if((v|0)==1256){return d|0}d=(r+8|0)==(b|0);return d|0}}return 0}function cW(a){a=a|0;var b=0;a=(c[4038]|0)-1|0;c[4038]=a;if((a|0)!=0){return}b;return}function cX(b){b=b|0;var d=0,e=0,f=0;do{if((a[16280]|0)==0){if((bc(16280)|0)==0){break}c[2962]=5489;b=1;d=5489;do{d=(ag(d>>>30^d,1812433253)|0)+b|0;c[11848+(b<<2)>>2]=d;b=b+1|0;}while(b>>>0<624);c[3586]=0}}while(0);b=c[3586]|0;d=((b+1|0)>>>0)%624|0;e=11848+(b<<2)|0;f=c[11848+(d<<2)>>2]|0;c[e>>2]=-(f&1)&-1727483681^c[11848+((((b+397|0)>>>0)%624|0)<<2)>>2]^(f&2147483646|c[e>>2]&-2147483648)>>>1;e=c[11848+(c[3586]<<2)>>2]|0;f=e>>>11^e;c[3586]=d;d=f<<7&-1658038656^f;f=d<<15&-272236544^d;return f>>>18^f|0}function cY(a){a=a|0;var b=0;b;c[4038]=1;return}function cZ(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;b=i;i=i+32|0;d=b|0;e=b+8|0;f=b+16|0;g=b+24|0;dq(15136,c[o>>2]|0,15192);c[4014]=4500;c[4016]=4520;c[4015]=0;h=c[1122]|0;ek(16056+h|0,15136);c[h+16128>>2]=0;c[h+16132>>2]=-1;h=c[t>>2]|0;ep(15040);c[3760]=4648;c[3768]=h;iN(g,15044);h=iX(g,15392)|0;j=h;iO(g);c[3769]=j;c[3770]=15200;a[15084]=(b0[c[(c[h>>2]|0)+28>>2]&127](j)|0)&1;c[3948]=4404;c[3949]=4424;j=c[1098]|0;ek(15792+j|0,15040);h=j+72|0;c[15792+h>>2]=0;g=j+76|0;c[15792+g>>2]=-1;k=c[r>>2]|0;ep(15088);c[3772]=4648;c[3780]=k;iN(f,15092);k=iX(f,15392)|0;l=k;iO(f);c[3781]=l;c[3782]=15208;a[15132]=(b0[c[(c[k>>2]|0)+28>>2]&127](l)|0)&1;c[3992]=4404;c[3993]=4424;ek(15968+j|0,15088);c[15968+h>>2]=0;c[15968+g>>2]=-1;l=c[(c[(c[3992]|0)-12>>2]|0)+15992>>2]|0;c[3970]=4404;c[3971]=4424;ek(15880+j|0,l);c[15880+h>>2]=0;c[15880+g>>2]=-1;c[(c[(c[4014]|0)-12>>2]|0)+16128>>2]=15792;g=(c[(c[3992]|0)-12>>2]|0)+15972|0;c[g>>2]=c[g>>2]|8192;c[(c[(c[3992]|0)-12>>2]|0)+16040>>2]=15792;c3(14984,c[o>>2]|0,15216);c[3926]=4452;c[3928]=4472;c[3927]=0;g=c[1110]|0;ek(15704+g|0,14984);c[g+15776>>2]=0;c[g+15780>>2]=-1;g=c[t>>2]|0;ew(14888);c[3722]=4576;c[3730]=g;iN(e,14892);g=iX(e,15384)|0;h=g;iO(e);c[3731]=h;c[3732]=15224;a[14932]=(b0[c[(c[g>>2]|0)+28>>2]&127](h)|0)&1;c[3856]=4356;c[3857]=4376;h=c[1086]|0;ek(15424+h|0,14888);g=h+72|0;c[15424+g>>2]=0;e=h+76|0;c[15424+e>>2]=-1;l=c[r>>2]|0;ew(14936);c[3734]=4576;c[3742]=l;iN(d,14940);l=iX(d,15384)|0;j=l;iO(d);c[3743]=j;c[3744]=15232;a[14980]=(b0[c[(c[l>>2]|0)+28>>2]&127](j)|0)&1;c[3900]=4356;c[3901]=4376;ek(15600+h|0,14936);c[15600+g>>2]=0;c[15600+e>>2]=-1;j=c[(c[(c[3900]|0)-12>>2]|0)+15624>>2]|0;c[3878]=4356;c[3879]=4376;ek(15512+h|0,j);c[15512+g>>2]=0;c[15512+e>>2]=-1;c[(c[(c[3926]|0)-12>>2]|0)+15776>>2]=15424;e=(c[(c[3900]|0)-12>>2]|0)+15604|0;c[e>>2]=c[e>>2]|8192;c[(c[(c[3900]|0)-12>>2]|0)+15672>>2]=15424;i=b;return}function c_(a){a=a|0;ev(a|0);return}function c$(a){a=a|0;ev(a|0);kS(a);return}function c0(b,d){b=b|0;d=d|0;var e=0;b0[c[(c[b>>2]|0)+24>>2]&127](b)|0;e=iX(d,15384)|0;d=e;c[b+36>>2]=d;a[b+44|0]=(b0[c[(c[e>>2]|0)+28>>2]&127](d)|0)&1;return}function c1(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;b=i;i=i+16|0;d=b|0;e=b+8|0;f=a+36|0;g=a+40|0;h=d|0;j=d+8|0;k=d;d=a+32|0;L1642:while(1){a=c[f>>2]|0;l=b$[c[(c[a>>2]|0)+20>>2]&31](a,c[g>>2]|0,h,j,e)|0;a=(c[e>>2]|0)-k|0;if((aM(h|0,1,a|0,c[d>>2]|0)|0)!=(a|0)){m=-1;n=1304;break}switch(l|0){case 2:{m=-1;n=1305;break L1642;break};case 1:{break};default:{n=1301;break L1642}}}if((n|0)==1304){i=b;return m|0}else if((n|0)==1305){i=b;return m|0}else if((n|0)==1301){m=((aK(c[d>>2]|0)|0)!=0)<<31>>31;i=b;return m|0}return 0}function c2(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=i;i=i+32|0;f=e|0;g=e+8|0;h=e+16|0;j=e+24|0;k=(d|0)==-1;L1651:do{if(!k){c[g>>2]=d;if((a[b+44|0]&1)!=0){if((aM(g|0,4,1,c[b+32>>2]|0)|0)==1){break}else{l=-1}i=e;return l|0}m=f|0;c[h>>2]=m;n=g+4|0;o=b+36|0;p=b+40|0;q=f+8|0;r=f;s=b+32|0;t=g;while(1){u=c[o>>2]|0;v=b6[c[(c[u>>2]|0)+12>>2]&31](u,c[p>>2]|0,t,n,j,m,q,h)|0;if((c[j>>2]|0)==(t|0)){l=-1;w=1320;break}if((v|0)==3){w=1312;break}u=(v|0)==1;if(v>>>0>=2){l=-1;w=1322;break}v=(c[h>>2]|0)-r|0;if((aM(m|0,1,v|0,c[s>>2]|0)|0)!=(v|0)){l=-1;w=1321;break}if(u){t=u?c[j>>2]|0:t}else{break L1651}}if((w|0)==1321){i=e;return l|0}else if((w|0)==1322){i=e;return l|0}else if((w|0)==1312){if((aM(t|0,1,1,c[s>>2]|0)|0)==1){break}else{l=-1}i=e;return l|0}else if((w|0)==1320){i=e;return l|0}}}while(0);l=k?0:d;i=e;return l|0}function c3(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+8|0;g=f|0;ew(b|0);c[b>>2]=4976;c[b+32>>2]=d;c[b+40>>2]=e;c[b+48>>2]=-1;a[b+52|0]=0;iN(g,b+4|0);e=iX(g,15384)|0;d=e;h=b+36|0;c[h>>2]=d;j=b+44|0;c[j>>2]=b0[c[(c[e>>2]|0)+24>>2]&127](d)|0;d=c[h>>2]|0;a[b+53|0]=(b0[c[(c[d>>2]|0)+28>>2]&127](d)|0)&1;if((c[j>>2]|0)<=8){iO(g);i=f;return}hV(184);iO(g);i=f;return}function c4(a){a=a|0;ev(a|0);return}function c5(a){a=a|0;ev(a|0);kS(a);return}function c6(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=iX(d,15384)|0;d=e;f=b+36|0;c[f>>2]=d;g=b+44|0;c[g>>2]=b0[c[(c[e>>2]|0)+24>>2]&127](d)|0;d=c[f>>2]|0;a[b+53|0]=(b0[c[(c[d>>2]|0)+28>>2]&127](d)|0)&1;if((c[g>>2]|0)<=8){return}hV(184);return}function c7(a){a=a|0;return da(a,0)|0}function c8(a){a=a|0;return da(a,1)|0}function c9(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=i;i=i+32|0;f=e|0;g=e+8|0;h=e+16|0;j=e+24|0;k=b+52|0;l=(a[k]&1)!=0;if((d|0)==-1){if(l){m=-1;i=e;return m|0}n=c[b+48>>2]|0;a[k]=(n|0)!=-1|0;m=n;i=e;return m|0}n=b+48|0;L1694:do{if(l){c[h>>2]=c[n>>2];o=c[b+36>>2]|0;p=f|0;switch(b6[c[(c[o>>2]|0)+12>>2]&31](o,c[b+40>>2]|0,h,h+4|0,j,p,f+8|0,g)|0){case 2:case 1:{m=-1;i=e;return m|0};case 3:{a[p]=c[n>>2]&255;c[g>>2]=f+1;break};default:{}}o=b+32|0;while(1){q=c[g>>2]|0;if(q>>>0<=p>>>0){break L1694}r=q-1|0;c[g>>2]=r;if((bA(a[r]|0,c[o>>2]|0)|0)==-1){m=-1;break}}i=e;return m|0}}while(0);c[n>>2]=d;a[k]=1;m=d;i=e;return m|0}function da(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;e=i;i=i+32|0;f=e|0;g=e+8|0;h=e+16|0;j=e+24|0;k=b+52|0;if((a[k]&1)!=0){l=b+48|0;m=c[l>>2]|0;if(!d){n=m;i=e;return n|0}c[l>>2]=-1;a[k]=0;n=m;i=e;return n|0}m=c[b+44>>2]|0;k=(m|0)>1?m:1;L1714:do{if((k|0)>0){m=b+32|0;l=0;while(1){o=a_(c[m>>2]|0)|0;if((o|0)==-1){n=-1;break}a[f+l|0]=o&255;l=l+1|0;if((l|0)>=(k|0)){break L1714}}i=e;return n|0}}while(0);L1721:do{if((a[b+53|0]&1)==0){l=b+40|0;m=b+36|0;o=f|0;p=g+4|0;q=b+32|0;r=k;L1723:while(1){s=c[l>>2]|0;t=s;u=c[t>>2]|0;v=c[t+4>>2]|0;t=c[m>>2]|0;w=f+r|0;switch(b6[c[(c[t>>2]|0)+16>>2]&31](t,s,o,w,h,g,p,j)|0){case 1:{break};case 2:{n=-1;x=1380;break L1723;break};case 3:{x=1369;break L1723;break};default:{y=r;break L1721}}s=c[l>>2]|0;c[s>>2]=u;c[s+4>>2]=v;if((r|0)==8){n=-1;x=1379;break}v=a_(c[q>>2]|0)|0;if((v|0)==-1){n=-1;x=1385;break}a[w]=v&255;r=r+1|0}if((x|0)==1379){i=e;return n|0}else if((x|0)==1380){i=e;return n|0}else if((x|0)==1385){i=e;return n|0}else if((x|0)==1369){c[g>>2]=a[o]|0;y=r;break}}else{c[g>>2]=a[f|0]|0;y=k}}while(0);if(d){d=c[g>>2]|0;c[b+48>>2]=d;n=d;i=e;return n|0}d=b+32|0;b=y;while(1){if((b|0)<=0){break}y=b-1|0;if((bA(a[f+y|0]|0,c[d>>2]|0)|0)==-1){n=-1;x=1382;break}else{b=y}}if((x|0)==1382){i=e;return n|0}n=c[g>>2]|0;i=e;return n|0}function db(a){a=a|0;eo(a|0);return}function dc(a){a=a|0;eo(a|0);kS(a);return}function dd(a){a=a|0;fg(15792)|0;fg(15880)|0;fh(15424)|0;fh(15512)|0;return}function de(a){a=a|0;return}function df(a){a=a|0;return}function dg(a){a=a|0;var b=0;b=a+4|0;I=c[b>>2]|0,c[b>>2]=I+1,I;return}function dh(a){a=a|0;return c[a+4>>2]|0}function di(a){a=a|0;return c[a+4>>2]|0}function dj(a){a=a|0;c[a>>2]=4304;return}function dk(a,b,d){a=a|0;b=b|0;d=d|0;c[a>>2]=d;c[a+4>>2]=b;return}function dl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((c[b+4>>2]|0)!=(a|0)){e=0;return e|0}e=(c[b>>2]|0)==(d|0);return e|0}function dm(b,d){b=b|0;d=d|0;var e=0;b0[c[(c[b>>2]|0)+24>>2]&127](b)|0;e=iX(d,15392)|0;d=e;c[b+36>>2]=d;a[b+44|0]=(b0[c[(c[e>>2]|0)+28>>2]&127](d)|0)&1;return}function dn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;b=i;i=i+16|0;d=b|0;e=b+8|0;f=a+36|0;g=a+40|0;h=d|0;j=d+8|0;k=d;d=a+32|0;L1767:while(1){a=c[f>>2]|0;l=b$[c[(c[a>>2]|0)+20>>2]&31](a,c[g>>2]|0,h,j,e)|0;a=(c[e>>2]|0)-k|0;if((aM(h|0,1,a|0,c[d>>2]|0)|0)!=(a|0)){m=-1;n=1414;break}switch(l|0){case 2:{m=-1;n=1415;break L1767;break};case 1:{break};default:{n=1411;break L1767}}}if((n|0)==1415){i=b;return m|0}else if((n|0)==1411){m=((aK(c[d>>2]|0)|0)!=0)<<31>>31;i=b;return m|0}else if((n|0)==1414){i=b;return m|0}return 0}function dp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=i;i=i+32|0;f=e|0;g=e+8|0;h=e+16|0;j=e+24|0;k=(d|0)==-1;L1776:do{if(!k){a[g]=d&255;if((a[b+44|0]&1)!=0){if((aM(g|0,1,1,c[b+32>>2]|0)|0)==1){break}else{l=-1}i=e;return l|0}m=f|0;c[h>>2]=m;n=g+1|0;o=b+36|0;p=b+40|0;q=f+8|0;r=f;s=b+32|0;t=g;while(1){u=c[o>>2]|0;v=b6[c[(c[u>>2]|0)+12>>2]&31](u,c[p>>2]|0,t,n,j,m,q,h)|0;if((c[j>>2]|0)==(t|0)){l=-1;w=1433;break}if((v|0)==3){w=1422;break}u=(v|0)==1;if(v>>>0>=2){l=-1;w=1432;break}v=(c[h>>2]|0)-r|0;if((aM(m|0,1,v|0,c[s>>2]|0)|0)!=(v|0)){l=-1;w=1430;break}if(u){t=u?c[j>>2]|0:t}else{break L1776}}if((w|0)==1430){i=e;return l|0}else if((w|0)==1422){if((aM(t|0,1,1,c[s>>2]|0)|0)==1){break}else{l=-1}i=e;return l|0}else if((w|0)==1432){i=e;return l|0}else if((w|0)==1433){i=e;return l|0}}}while(0);l=k?0:d;i=e;return l|0}function dq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+8|0;g=f|0;ep(b|0);c[b>>2]=5048;c[b+32>>2]=d;c[b+40>>2]=e;c[b+48>>2]=-1;a[b+52|0]=0;iN(g,b+4|0);e=iX(g,15392)|0;d=e;h=b+36|0;c[h>>2]=d;j=b+44|0;c[j>>2]=b0[c[(c[e>>2]|0)+24>>2]&127](d)|0;d=c[h>>2]|0;a[b+53|0]=(b0[c[(c[d>>2]|0)+28>>2]&127](d)|0)&1;if((c[j>>2]|0)<=8){iO(g);i=f;return}hV(184);iO(g);i=f;return}function dr(a){a=a|0;eo(a|0);return}function ds(a){a=a|0;eo(a|0);kS(a);return}function dt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=iX(d,15392)|0;d=e;f=b+36|0;c[f>>2]=d;g=b+44|0;c[g>>2]=b0[c[(c[e>>2]|0)+24>>2]&127](d)|0;d=c[f>>2]|0;a[b+53|0]=(b0[c[(c[d>>2]|0)+28>>2]&127](d)|0)&1;if((c[g>>2]|0)<=8){return}hV(184);return}function du(a){a=a|0;return dx(a,0)|0}function dv(a){a=a|0;return dx(a,1)|0}function dw(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=i;i=i+32|0;f=e|0;g=e+8|0;h=e+16|0;j=e+24|0;k=b+52|0;l=(a[k]&1)!=0;if((d|0)==-1){if(l){m=-1;i=e;return m|0}n=c[b+48>>2]|0;a[k]=(n|0)!=-1|0;m=n;i=e;return m|0}n=b+48|0;L1819:do{if(l){a[h]=c[n>>2]&255;o=c[b+36>>2]|0;p=f|0;switch(b6[c[(c[o>>2]|0)+12>>2]&31](o,c[b+40>>2]|0,h,h+1|0,j,p,f+8|0,g)|0){case 3:{a[p]=c[n>>2]&255;c[g>>2]=f+1;break};case 2:case 1:{m=-1;i=e;return m|0};default:{}}o=b+32|0;while(1){q=c[g>>2]|0;if(q>>>0<=p>>>0){break L1819}r=q-1|0;c[g>>2]=r;if((bA(a[r]|0,c[o>>2]|0)|0)==-1){m=-1;break}}i=e;return m|0}}while(0);c[n>>2]=d;a[k]=1;m=d;i=e;return m|0}function dx(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;f=i;i=i+32|0;g=f|0;h=f+8|0;j=f+16|0;k=f+24|0;l=b+52|0;if((a[l]&1)!=0){m=b+48|0;n=c[m>>2]|0;if(!e){o=n;i=f;return o|0}c[m>>2]=-1;a[l]=0;o=n;i=f;return o|0}n=c[b+44>>2]|0;l=(n|0)>1?n:1;L1839:do{if((l|0)>0){n=b+32|0;m=0;while(1){p=a_(c[n>>2]|0)|0;if((p|0)==-1){o=-1;break}a[g+m|0]=p&255;m=m+1|0;if((m|0)>=(l|0)){break L1839}}i=f;return o|0}}while(0);L1846:do{if((a[b+53|0]&1)==0){m=b+40|0;n=b+36|0;p=g|0;q=h+1|0;r=b+32|0;s=l;L1848:while(1){t=c[m>>2]|0;u=t;v=c[u>>2]|0;w=c[u+4>>2]|0;u=c[n>>2]|0;x=g+s|0;switch(b6[c[(c[u>>2]|0)+16>>2]&31](u,t,p,x,j,h,q,k)|0){case 1:{break};case 2:{o=-1;y=1490;break L1848;break};case 3:{y=1479;break L1848;break};default:{z=s;break L1846}}t=c[m>>2]|0;c[t>>2]=v;c[t+4>>2]=w;if((s|0)==8){o=-1;y=1491;break}w=a_(c[r>>2]|0)|0;if((w|0)==-1){o=-1;y=1495;break}a[x]=w&255;s=s+1|0}if((y|0)==1490){i=f;return o|0}else if((y|0)==1495){i=f;return o|0}else if((y|0)==1479){a[h]=a[p]|0;z=s;break}else if((y|0)==1491){i=f;return o|0}}else{a[h]=a[g|0]|0;z=l}}while(0);do{if(e){l=a[h]|0;c[b+48>>2]=l&255;A=l}else{l=b+32|0;k=z;while(1){if((k|0)<=0){y=1486;break}j=k-1|0;if((bA(d[g+j|0]|0|0,c[l>>2]|0)|0)==-1){o=-1;y=1494;break}else{k=j}}if((y|0)==1486){A=a[h]|0;break}else if((y|0)==1494){i=f;return o|0}}}while(0);o=A&255;i=f;return o|0}function dy(){cZ(0);a$(142,16144|0,u|0)|0;return}function dz(a){a=a|0;var b=0,d=0;b=a+4|0;if(((I=c[b>>2]|0,c[b>>2]=I+ -1,I)|0)!=0){d=0;return d|0}bY[c[(c[a>>2]|0)+8>>2]&511](a);d=1;return d|0}function dA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;c[a>>2]=2536;d=a+4|0;if((d|0)==0){return}a=k0(b|0)|0;e=a+1|0;f=kP(a+13|0)|0;c[f+4>>2]=a;c[f>>2]=a;a=f+12|0;c[d>>2]=a;c[f+8>>2]=0;kY(a|0,b|0,e)|0;return}function dB(a){a=a|0;var b=0,d=0,e=0;c[a>>2]=2536;b=a+4|0;d=(c[b>>2]|0)-4|0;if(((I=c[d>>2]|0,c[d>>2]=I+ -1,I)-1|0)>=0){e=a;kS(e);return}d=(c[b>>2]|0)-12|0;if((d|0)==0){e=a;kS(e);return}kT(d);e=a;kS(e);return}function dC(a){a=a|0;var b=0;c[a>>2]=2536;b=a+4|0;a=(c[b>>2]|0)-4|0;if(((I=c[a>>2]|0,c[a>>2]=I+ -1,I)-1|0)>=0){return}a=(c[b>>2]|0)-12|0;if((a|0)==0){return}kT(a);return}function dD(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;c[b>>2]=2472;e=b+4|0;if((e|0)==0){return}if((a[d]&1)==0){f=d+1|0}else{f=c[d+8>>2]|0}d=k0(f|0)|0;b=d+1|0;g=kP(d+13|0)|0;c[g+4>>2]=d;c[g>>2]=d;d=g+12|0;c[e>>2]=d;c[g+8>>2]=0;kY(d|0,f|0,b)|0;return}function dE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;c[a>>2]=2472;d=a+4|0;if((d|0)==0){return}a=k0(b|0)|0;e=a+1|0;f=kP(a+13|0)|0;c[f+4>>2]=a;c[f>>2]=a;a=f+12|0;c[d>>2]=a;c[f+8>>2]=0;kY(a|0,b|0,e)|0;return}function dF(a){a=a|0;var b=0,d=0,e=0;c[a>>2]=2472;b=a+4|0;d=(c[b>>2]|0)-4|0;if(((I=c[d>>2]|0,c[d>>2]=I+ -1,I)-1|0)>=0){e=a;kS(e);return}d=(c[b>>2]|0)-12|0;if((d|0)==0){e=a;kS(e);return}kT(d);e=a;kS(e);return}function dG(a){a=a|0;var b=0;c[a>>2]=2472;b=a+4|0;a=(c[b>>2]|0)-4|0;if(((I=c[a>>2]|0,c[a>>2]=I+ -1,I)-1|0)>=0){return}a=(c[b>>2]|0)-12|0;if((a|0)==0){return}kT(a);return}function dH(a){a=a|0;var b=0,d=0,e=0;c[a>>2]=2536;b=a+4|0;d=(c[b>>2]|0)-4|0;if(((I=c[d>>2]|0,c[d>>2]=I+ -1,I)-1|0)>=0){e=a;kS(e);return}d=(c[b>>2]|0)-12|0;if((d|0)==0){e=a;kS(e);return}kT(d);e=a;kS(e);return}function dI(a){a=a|0;kS(a);return}function dJ(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+8|0;f=e|0;b3[c[(c[a>>2]|0)+12>>2]&7](f,a,b);if((c[f+4>>2]|0)!=(c[d+4>>2]|0)){g=0;i=e;return g|0}g=(c[f>>2]|0)==(c[d>>2]|0);i=e;return g|0}function dK(a,b,c){a=a|0;b=b|0;c=c|0;b=bx(c|0)|0;dZ(a,b,k0(b|0)|0);return}function dL(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;g=i;h=f;j=i;i=i+12|0;i=i+7>>3<<3;k=e|0;l=c[k>>2]|0;if((l|0)==0){m=b;c[m>>2]=c[h>>2];c[m+4>>2]=c[h+4>>2];c[m+8>>2]=c[h+8>>2];k$(h|0,0,12);i=g;return}n=d[h]|0;if((n&1|0)==0){o=n>>>1}else{o=c[f+4>>2]|0}if((o|0)==0){p=l}else{dT(f,1296)|0;p=c[k>>2]|0}k=c[e+4>>2]|0;b3[c[(c[k>>2]|0)+24>>2]&7](j,k,p);p=a[j]|0;if((p&1)==0){q=j+1|0}else{q=c[j+8>>2]|0}k=p&255;if((k&1|0)==0){r=k>>>1}else{r=c[j+4>>2]|0}dV(f,q,r)|0;dP(j);m=b;c[m>>2]=c[h>>2];c[m+4>>2]=c[h+4>>2];c[m+8>>2]=c[h+8>>2];k$(h|0,0,12);i=g;return}function dM(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+32|0;f=b;b=i;i=i+8|0;c[b>>2]=c[f>>2];c[b+4>>2]=c[f+4>>2];f=e|0;g=e+16|0;dZ(g,d,k0(d|0)|0);dL(f,b,g);dD(a|0,f);dP(f);dP(g);c[a>>2]=4544;g=b;b=a+8|0;a=c[g+4>>2]|0;c[b>>2]=c[g>>2];c[b+4>>2]=a;i=e;return}function dN(a){a=a|0;dG(a|0);kS(a);return}function dO(a){a=a|0;dG(a|0);return}function dP(b){b=b|0;if((a[b]&1)==0){return}kS(c[b+8>>2]|0);return}function dQ(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=k0(d|0)|0;f=b;g=b;h=a[g]|0;if((h&1)==0){i=10;j=h}else{h=c[b>>2]|0;i=(h&-2)-1|0;j=h&255}if(i>>>0<e>>>0){h=j&255;if((h&1|0)==0){k=h>>>1}else{k=c[b+4>>2]|0}d0(b,i,e-i|0,k,0,k,e,d);return b|0}if((j&1)==0){l=f+1|0}else{l=c[b+8>>2]|0}k_(l|0,d|0,e|0);a[l+e|0]=0;if((a[g]&1)==0){a[g]=e<<1&255;return b|0}else{c[b+4>>2]=e;return b|0}return 0}function dR(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=b;g=a[f]|0;h=g&255;if((h&1|0)==0){i=h>>>1}else{i=c[b+4>>2]|0}if(i>>>0<d>>>0){h=d-i|0;dS(b,h,e)|0;return}if((g&1)==0){a[b+1+d|0]=0;a[f]=d<<1&255;return}else{a[(c[b+8>>2]|0)+d|0]=0;c[b+4>>2]=d;return}}function dS(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;if((d|0)==0){return b|0}f=b;g=a[f]|0;if((g&1)==0){h=10;i=g}else{g=c[b>>2]|0;h=(g&-2)-1|0;i=g&255}g=i&255;if((g&1|0)==0){j=g>>>1}else{j=c[b+4>>2]|0}if((h-j|0)>>>0<d>>>0){d1(b,h,d-h+j|0,j,j,0,0);k=a[f]|0}else{k=i}if((k&1)==0){l=b+1|0}else{l=c[b+8>>2]|0}k$(l+j|0,e|0,d|0);e=j+d|0;if((a[f]&1)==0){a[f]=e<<1&255}else{c[b+4>>2]=e}a[l+e|0]=0;return b|0}function dT(a,b){a=a|0;b=b|0;return dV(a,b,k0(b|0)|0)|0}function dU(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;e=b;f=a[e]|0;if((f&1)==0){g=(f&255)>>>1;h=10}else{g=c[b+4>>2]|0;h=(c[b>>2]&-2)-1|0}if((g|0)==(h|0)){d1(b,h,1,h,h,0,0);i=a[e]|0}else{i=f}if((i&1)==0){a[e]=(g<<1)+2&255;j=b+1|0;k=g+1|0;l=j+g|0;a[l]=d;m=j+k|0;a[m]=0;return}else{e=c[b+8>>2]|0;i=g+1|0;c[b+4>>2]=i;j=e;k=i;l=j+g|0;a[l]=d;m=j+k|0;a[m]=0;return}}function dV(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b;g=a[f]|0;if((g&1)==0){h=10;i=g}else{g=c[b>>2]|0;h=(g&-2)-1|0;i=g&255}g=i&255;if((g&1|0)==0){j=g>>>1}else{j=c[b+4>>2]|0}if((h-j|0)>>>0<e>>>0){d0(b,h,e-h+j|0,j,j,0,e,d);return b|0}if((e|0)==0){return b|0}if((i&1)==0){k=b+1|0}else{k=c[b+8>>2]|0}i=k+j|0;kY(i|0,d|0,e)|0;d=j+e|0;if((a[f]&1)==0){a[f]=d<<1&255}else{c[b+4>>2]=d}a[k+d|0]=0;return b|0}function dW(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e;if((c[a>>2]|0)==1){do{aU(9736,9728)|0;}while((c[a>>2]|0)==1)}if((c[a>>2]|0)!=0){f;return}c[a>>2]=1;g;bY[d&511](b);h;c[a>>2]=-1;i;bs(9736)|0;return}function dX(a){a=a|0;a=bO(8)|0;dA(a,360);c[a>>2]=2504;bl(a|0,8208,32)}function dY(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=d;if((a[e]&1)==0){f=b;c[f>>2]=c[e>>2];c[f+4>>2]=c[e+4>>2];c[f+8>>2]=c[e+8>>2];return}e=c[d+8>>2]|0;f=c[d+4>>2]|0;if((f|0)==-1){dX(0)}if(f>>>0<11){a[b]=f<<1&255;g=b+1|0}else{d=f+16&-16;h=kO(d)|0;c[b+8>>2]=h;c[b>>2]=d|1;c[b+4>>2]=f;g=h}kY(g|0,e|0,f)|0;a[g+f|0]=0;return}function dZ(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;if((e|0)==-1){dX(0)}if(e>>>0<11){a[b]=e<<1&255;f=b+1|0;kY(f|0,d|0,e)|0;g=f+e|0;a[g]=0;return}else{h=e+16&-16;i=kO(h)|0;c[b+8>>2]=i;c[b>>2]=h|1;c[b+4>>2]=e;f=i;kY(f|0,d|0,e)|0;g=f+e|0;a[g]=0;return}}function d_(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)==-1){dX(0)}if(d>>>0<11){a[b]=d<<1&255;f=b+1|0}else{g=d+16&-16;h=kO(g)|0;c[b+8>>2]=h;c[b>>2]=g|1;c[b+4>>2]=d;f=h}k$(f|0,e|0,d|0);a[f+d|0]=0;return}function d$(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;if((d|0)==-1){dX(0)}e=b;f=b;g=a[f]|0;if((g&1)==0){h=10;i=g}else{g=c[b>>2]|0;h=(g&-2)-1|0;i=g&255}g=i&255;if((g&1|0)==0){j=g>>>1}else{j=c[b+4>>2]|0}g=j>>>0>d>>>0?j:d;if(g>>>0<11){k=11}else{k=g+16&-16}g=k-1|0;if((g|0)==(h|0)){return}if((g|0)==10){l=e+1|0;m=c[b+8>>2]|0;n=1;o=0}else{if(g>>>0>h>>>0){p=kO(k)|0}else{p=kO(k)|0}h=i&1;if(h<<24>>24==0){q=e+1|0}else{q=c[b+8>>2]|0}l=p;m=q;n=h<<24>>24!=0;o=1}h=i&255;if((h&1|0)==0){r=h>>>1}else{r=c[b+4>>2]|0}h=r+1|0;kY(l|0,m|0,h)|0;if(n){kS(m)}if(o){c[b>>2]=k|1;c[b+4>>2]=j;c[b+8>>2]=l;return}else{a[f]=j<<1&255;return}}function d0(b,d,e,f,g,h,i,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;if((-3-d|0)>>>0<e>>>0){dX(0)}if((a[b]&1)==0){k=b+1|0}else{k=c[b+8>>2]|0}do{if(d>>>0<2147483631){l=e+d|0;m=d<<1;n=l>>>0<m>>>0?m:l;if(n>>>0<11){o=11;break}o=n+16&-16}else{o=-2}}while(0);e=kO(o)|0;if((g|0)!=0){kY(e|0,k|0,g)|0}if((i|0)!=0){n=e+g|0;kY(n|0,j|0,i)|0}j=f-h|0;if((j|0)!=(g|0)){f=j-g|0;n=e+(i+g)|0;l=k+(h+g)|0;kY(n|0,l|0,f)|0}if((d|0)==10){p=b+8|0;c[p>>2]=e;q=o|1;r=b|0;c[r>>2]=q;s=j+i|0;t=b+4|0;c[t>>2]=s;u=e+s|0;a[u]=0;return}kS(k);p=b+8|0;c[p>>2]=e;q=o|1;r=b|0;c[r>>2]=q;s=j+i|0;t=b+4|0;c[t>>2]=s;u=e+s|0;a[u]=0;return}function d1(b,d,e,f,g,h,i){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;if((-3-d|0)>>>0<e>>>0){dX(0)}if((a[b]&1)==0){j=b+1|0}else{j=c[b+8>>2]|0}do{if(d>>>0<2147483631){k=e+d|0;l=d<<1;m=k>>>0<l>>>0?l:k;if(m>>>0<11){n=11;break}n=m+16&-16}else{n=-2}}while(0);e=kO(n)|0;if((g|0)!=0){kY(e|0,j|0,g)|0}m=f-h|0;if((m|0)!=(g|0)){f=m-g|0;m=e+(i+g)|0;i=j+(h+g)|0;kY(m|0,i|0,f)|0}if((d|0)==10){o=b+8|0;c[o>>2]=e;p=n|1;q=b|0;c[q>>2]=p;return}kS(j);o=b+8|0;c[o>>2]=e;p=n|1;q=b|0;c[q>>2]=p;return}function d2(a,b){a=a|0;b=b|0;return}function d3(a,b,c){a=a|0;b=b|0;c=c|0;return a|0}function d4(a){a=a|0;return 0}function d5(a){a=a|0;return 0}function d6(a){a=a|0;return-1|0}function d7(a,b){a=a|0;b=b|0;return-1|0}function d8(a,b){a=a|0;b=b|0;return-1|0}function d9(a,b){a=a|0;b=b|0;return}function ea(a,b,c){a=a|0;b=b|0;c=c|0;return a|0}function eb(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;g=a;c[g>>2]=0;c[g+4>>2]=0;g=a+8|0;c[g>>2]=-1;c[g+4>>2]=-1;return}function ec(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;e=i;b=d;d=i;i=i+16|0;c[d>>2]=c[b>>2];c[d+4>>2]=c[b+4>>2];c[d+8>>2]=c[b+8>>2];c[d+12>>2]=c[b+12>>2];b=a;c[b>>2]=0;c[b+4>>2]=0;b=a+8|0;c[b>>2]=-1;c[b+4>>2]=-1;i=e;return}function ed(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;g=a;c[g>>2]=0;c[g+4>>2]=0;g=a+8|0;c[g>>2]=-1;c[g+4>>2]=-1;return}function ee(b){b=b|0;if((a[b]&1)==0){return}kS(c[b+8>>2]|0);return}function ef(a,b){a=a|0;b=b|0;return eg(a,b,km(b)|0)|0}function eg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b;g=a[f]|0;if((g&1)==0){h=1;i=g}else{g=c[b>>2]|0;h=(g&-2)-1|0;i=g&255}if(h>>>0<e>>>0){g=i&255;if((g&1|0)==0){j=g>>>1}else{j=c[b+4>>2]|0}eA(b,h,e-h|0,j,0,j,e,d);return b|0}if((i&1)==0){k=b+4|0}else{k=c[b+8>>2]|0}ko(k,d,e)|0;c[k+(e<<2)>>2]=0;if((a[f]&1)==0){a[f]=e<<1&255;return b|0}else{c[b+4>>2]=e;return b|0}return 0}function eh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;e=b;f=a[e]|0;if((f&1)==0){g=(f&255)>>>1;h=1}else{g=c[b+4>>2]|0;h=(c[b>>2]&-2)-1|0}if((g|0)==(h|0)){eB(b,h,1,h,h,0,0);i=a[e]|0}else{i=f}if((i&1)==0){a[e]=(g<<1)+2&255;j=b+4|0;k=g+1|0;l=j+(g<<2)|0;c[l>>2]=d;m=j+(k<<2)|0;c[m>>2]=0;return}else{e=c[b+8>>2]|0;i=g+1|0;c[b+4>>2]=i;j=e;k=i;l=j+(g<<2)|0;c[l>>2]=d;m=j+(k<<2)|0;c[m>>2]=0;return}}function ei(a){a=a|0;eD(a|0);return}function ej(a,b){a=a|0;b=b|0;iN(a,b+28|0);return}function ek(a,b){a=a|0;b=b|0;c[a+24>>2]=b;c[a+16>>2]=(b|0)==0;c[a+20>>2]=0;c[a+4>>2]=4098;c[a+12>>2]=0;c[a+8>>2]=6;b=a+28|0;k$(a+32|0,0,40);if((b|0)==0){return}iW(b);return}function el(a){a=a|0;eD(a|0);return}function em(a){a=a|0;c[a>>2]=4232;iO(a+4|0);kS(a);return}function en(a){a=a|0;c[a>>2]=4232;iO(a+4|0);return}function eo(a){a=a|0;c[a>>2]=4232;iO(a+4|0);return}function ep(a){a=a|0;c[a>>2]=4232;iW(a+4|0);k$(a+8|0,0,24);return}function eq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=b;if((e|0)<=0){g=0;return g|0}h=b+12|0;i=b+16|0;j=d;d=0;while(1){k=c[h>>2]|0;if(k>>>0<(c[i>>2]|0)>>>0){c[h>>2]=k+1;l=a[k]|0}else{k=b0[c[(c[f>>2]|0)+40>>2]&127](b)|0;if((k|0)==-1){g=d;m=1854;break}l=k&255}a[j]=l;k=d+1|0;if((k|0)<(e|0)){j=j+1|0;d=k}else{g=k;m=1856;break}}if((m|0)==1854){return g|0}else if((m|0)==1856){return g|0}return 0}function er(a){a=a|0;var b=0,e=0;if((b0[c[(c[a>>2]|0)+36>>2]&127](a)|0)==-1){b=-1;return b|0}e=a+12|0;a=c[e>>2]|0;c[e>>2]=a+1;b=d[a]|0;return b|0}function es(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=b;if((f|0)<=0){h=0;return h|0}i=b+24|0;j=b+28|0;k=0;l=e;while(1){e=c[i>>2]|0;if(e>>>0<(c[j>>2]|0)>>>0){m=a[l]|0;c[i>>2]=e+1;a[e]=m}else{if((b_[c[(c[g>>2]|0)+52>>2]&31](b,d[l]|0)|0)==-1){h=k;n=1869;break}}m=k+1|0;if((m|0)<(f|0)){k=m;l=l+1|0}else{h=m;n=1871;break}}if((n|0)==1869){return h|0}else if((n|0)==1871){return h|0}return 0}function et(a){a=a|0;c[a>>2]=4160;iO(a+4|0);kS(a);return}function eu(a){a=a|0;c[a>>2]=4160;iO(a+4|0);return}function ev(a){a=a|0;c[a>>2]=4160;iO(a+4|0);return}function ew(a){a=a|0;c[a>>2]=4160;iW(a+4|0);k$(a+8|0,0,24);return}function ex(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;if(e>>>0>1073741822){dX(0)}if(e>>>0<2){a[b]=e<<1&255;f=b+4|0;g=kn(f,d,e)|0;h=f+(e<<2)|0;c[h>>2]=0;return}else{i=e+4&-4;j=kO(i<<2)|0;c[b+8>>2]=j;c[b>>2]=i|1;c[b+4>>2]=e;f=j;g=kn(f,d,e)|0;h=f+(e<<2)|0;c[h>>2]=0;return}}function ey(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;if(d>>>0>1073741822){dX(0)}if(d>>>0<2){a[b]=d<<1&255;f=b+4|0;g=kp(f,e,d)|0;h=f+(d<<2)|0;c[h>>2]=0;return}else{i=d+4&-4;j=kO(i<<2)|0;c[b+8>>2]=j;c[b>>2]=i|1;c[b+4>>2]=d;f=j;g=kp(f,e,d)|0;h=f+(d<<2)|0;c[h>>2]=0;return}}function ez(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;if(d>>>0>1073741822){dX(0)}e=b;f=a[e]|0;if((f&1)==0){g=1;h=f}else{f=c[b>>2]|0;g=(f&-2)-1|0;h=f&255}f=h&255;if((f&1|0)==0){i=f>>>1}else{i=c[b+4>>2]|0}f=i>>>0>d>>>0?i:d;if(f>>>0<2){j=2}else{j=f+4&-4}f=j-1|0;if((f|0)==(g|0)){return}if((f|0)==1){k=b+4|0;l=c[b+8>>2]|0;m=1;n=0}else{d=j<<2;if(f>>>0>g>>>0){o=kO(d)|0}else{o=kO(d)|0}d=h&1;if(d<<24>>24==0){p=b+4|0}else{p=c[b+8>>2]|0}k=o;l=p;m=d<<24>>24!=0;n=1}d=k;k=h&255;if((k&1|0)==0){q=k>>>1}else{q=c[b+4>>2]|0}kn(d,l,q+1|0)|0;if(m){kS(l)}if(n){c[b>>2]=j|1;c[b+4>>2]=i;c[b+8>>2]=d;return}else{a[e]=i<<1&255;return}}function eA(b,d,e,f,g,h,i,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;if((1073741821-d|0)>>>0<e>>>0){dX(0)}if((a[b]&1)==0){k=b+4|0}else{k=c[b+8>>2]|0}do{if(d>>>0<536870895){l=e+d|0;m=d<<1;n=l>>>0<m>>>0?m:l;if(n>>>0<2){o=2;break}o=n+4&-4}else{o=1073741822}}while(0);e=kO(o<<2)|0;if((g|0)!=0){kn(e,k,g)|0}if((i|0)!=0){n=e+(g<<2)|0;kn(n,j,i)|0}j=f-h|0;if((j|0)!=(g|0)){f=j-g|0;n=e+(i+g<<2)|0;l=k+(h+g<<2)|0;kn(n,l,f)|0}if((d|0)==1){p=b+8|0;c[p>>2]=e;q=o|1;r=b|0;c[r>>2]=q;s=j+i|0;t=b+4|0;c[t>>2]=s;u=e+(s<<2)|0;c[u>>2]=0;return}kS(k);p=b+8|0;c[p>>2]=e;q=o|1;r=b|0;c[r>>2]=q;s=j+i|0;t=b+4|0;c[t>>2]=s;u=e+(s<<2)|0;c[u>>2]=0;return}function eB(b,d,e,f,g,h,i){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;if((1073741821-d|0)>>>0<e>>>0){dX(0)}if((a[b]&1)==0){j=b+4|0}else{j=c[b+8>>2]|0}do{if(d>>>0<536870895){k=e+d|0;l=d<<1;m=k>>>0<l>>>0?l:k;if(m>>>0<2){n=2;break}n=m+4&-4}else{n=1073741822}}while(0);e=kO(n<<2)|0;if((g|0)!=0){kn(e,j,g)|0}m=f-h|0;if((m|0)!=(g|0)){f=m-g|0;m=e+(i+g<<2)|0;i=j+(h+g<<2)|0;kn(m,i,f)|0}if((d|0)==1){o=b+8|0;c[o>>2]=e;p=n|1;q=b|0;c[q>>2]=p;return}kS(j);o=b+8|0;c[o>>2]=e;p=n|1;q=b|0;c[q>>2]=p;return}function eC(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+8|0;f=e|0;g=(c[b+24>>2]|0)==0;if(g){c[b+16>>2]=d|1}else{c[b+16>>2]=d}if(((g&1|d)&c[b+20>>2]|0)==0){i=e;return}e=bO(16)|0;do{if((a[16272]|0)==0){if((bc(16272)|0)==0){break}dj(11840);c[2960]=4e3;a$(66,11840,u|0)|0}}while(0);b=k3(11840,0,32)|0;d=K;c[f>>2]=b&0|1;c[f+4>>2]=d|0;dM(e,f,1304);c[e>>2]=3184;bl(e|0,8752,28)}function eD(a){a=a|0;var b=0,d=0,e=0,f=0;c[a>>2]=3160;b=c[a+40>>2]|0;d=a+32|0;e=a+36|0;if((b|0)!=0){f=b;do{f=f-1|0;b3[c[(c[d>>2]|0)+(f<<2)>>2]&7](0,a,c[(c[e>>2]|0)+(f<<2)>>2]|0);}while((f|0)!=0)}iO(a+28|0);kK(c[d>>2]|0);kK(c[e>>2]|0);kK(c[a+48>>2]|0);kK(c[a+60>>2]|0);return}function eE(a){a=a|0;return 0}function eF(a){a=a|0;return 0}function eG(a){a=a|0;return-1|0}function eH(a,b){a=a|0;b=b|0;return-1|0}function eI(a,b){a=a|0;b=b|0;return-1|0}function eJ(a){a=a|0;return 1416|0}function eK(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;e=i;b=d;d=i;i=i+16|0;c[d>>2]=c[b>>2];c[d+4>>2]=c[b+4>>2];c[d+8>>2]=c[b+8>>2];c[d+12>>2]=c[b+12>>2];b=a;c[b>>2]=0;c[b+4>>2]=0;b=a+8|0;c[b>>2]=-1;c[b+4>>2]=-1;i=e;return}function eL(b,c,d,e,f){b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;L2437:do{if((e|0)==(f|0)){g=c}else{b=c;h=e;while(1){if((b|0)==(d|0)){i=-1;j=1990;break}k=a[b]|0;l=a[h]|0;if(k<<24>>24<l<<24>>24){i=-1;j=1993;break}if(l<<24>>24<k<<24>>24){i=1;j=1992;break}k=b+1|0;l=h+1|0;if((l|0)==(f|0)){g=k;break L2437}else{b=k;h=l}}if((j|0)==1993){return i|0}else if((j|0)==1992){return i|0}else if((j|0)==1990){return i|0}}}while(0);i=(g|0)!=(d|0)|0;return i|0}function eM(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;if((c|0)==(d|0)){e=0;return e|0}else{f=c;g=0}while(1){c=(a[f]|0)+(g<<4)|0;b=c&-268435456;h=(b>>>24|b)^c;c=f+1|0;if((c|0)==(d|0)){e=h;break}else{f=c;g=h}}return e|0}function eN(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=a;if((d|0)<=0){f=0;return f|0}g=a+12|0;h=a+16|0;i=b;b=0;while(1){j=c[g>>2]|0;if(j>>>0<(c[h>>2]|0)>>>0){c[g>>2]=j+4;k=c[j>>2]|0}else{j=b0[c[(c[e>>2]|0)+40>>2]&127](a)|0;if((j|0)==-1){f=b;l=2007;break}else{k=j}}c[i>>2]=k;j=b+1|0;if((j|0)<(d|0)){i=i+4|0;b=j}else{f=j;l=2008;break}}if((l|0)==2008){return f|0}else if((l|0)==2007){return f|0}return 0}function eO(a){a=a|0;var b=0,d=0;if((b0[c[(c[a>>2]|0)+36>>2]&127](a)|0)==-1){b=-1;return b|0}d=a+12|0;a=c[d>>2]|0;c[d>>2]=a+4;b=c[a>>2]|0;return b|0}function eP(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=a;if((d|0)<=0){f=0;return f|0}g=a+24|0;h=a+28|0;i=0;j=b;while(1){b=c[g>>2]|0;if(b>>>0<(c[h>>2]|0)>>>0){k=c[j>>2]|0;c[g>>2]=b+4;c[b>>2]=k}else{if((b_[c[(c[e>>2]|0)+52>>2]&31](a,c[j>>2]|0)|0)==-1){f=i;l=2023;break}}k=i+1|0;if((k|0)<(d|0)){i=k;j=j+4|0}else{f=k;l=2022;break}}if((l|0)==2023){return f|0}else if((l|0)==2022){return f|0}return 0}function eQ(a){a=a|0;eD(a+8|0);kS(a);return}function eR(a){a=a|0;eD(a+8|0);return}function eS(a){a=a|0;var b=0,d=0;b=a;d=c[(c[a>>2]|0)-12>>2]|0;eD(b+(d+8)|0);kS(b+d|0);return}function eT(a){a=a|0;eD(a+((c[(c[a>>2]|0)-12>>2]|0)+8)|0);return}function eU(a){a=a|0;eD(a+8|0);kS(a);return}function eV(a){a=a|0;eD(a+8|0);return}function eW(a){a=a|0;var b=0,d=0;b=a;d=c[(c[a>>2]|0)-12>>2]|0;eD(b+(d+8)|0);kS(b+d|0);return}function eX(a){a=a|0;eD(a+((c[(c[a>>2]|0)-12>>2]|0)+8)|0);return}function eY(a){a=a|0;eD(a+4|0);kS(a);return}function eZ(a){a=a|0;eD(a+4|0);return}function e_(a){a=a|0;var b=0,d=0;b=a;d=c[(c[a>>2]|0)-12>>2]|0;eD(b+(d+4)|0);kS(b+d|0);return}function e$(a){a=a|0;eD(a+((c[(c[a>>2]|0)-12>>2]|0)+4)|0);return}function e0(a){a=a|0;eD(a+4|0);kS(a);return}function e1(a){a=a|0;eD(a+4|0);return}function e2(a){a=a|0;var b=0,d=0;b=a;d=c[(c[a>>2]|0)-12>>2]|0;eD(b+(d+4)|0);kS(b+d|0);return}function e3(a){a=a|0;eD(a+((c[(c[a>>2]|0)-12>>2]|0)+4)|0);return}function e4(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)==1){dZ(a,1640,35);return}else{dK(a,b|0,c);return}}function e5(a){a=a|0;df(a|0);return}function e6(a){a=a|0;dO(a|0);kS(a);return}function e7(a){a=a|0;dO(a|0);return}function e8(a){a=a|0;eD(a);kS(a);return}function e9(a){a=a|0;df(a|0);kS(a);return}function fa(a){a=a|0;de(a|0);kS(a);return}function fb(a){a=a|0;de(a|0);return}function fc(a){a=a|0;de(a|0);return}function fd(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;d=e;g=f-d|0;do{if((g|0)==-1){dX(b);h=2058}else{if(g>>>0>=11){h=2058;break}a[b]=g<<1&255;i=b+1|0}}while(0);if((h|0)==2058){h=g+16&-16;j=kO(h)|0;c[b+8>>2]=j;c[b>>2]=h|1;c[b+4>>2]=g;i=j}if((e|0)==(f|0)){k=i;a[k]=0;return}j=f+(-d|0)|0;d=i;g=e;while(1){a[d]=a[g]|0;e=g+1|0;if((e|0)==(f|0)){break}else{d=d+1|0;g=e}}k=i+j|0;a[k]=0;return}function fe(a){a=a|0;de(a|0);kS(a);return}function ff(a){a=a|0;de(a|0);return}function fg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;i=i+8|0;e=d|0;f=b;g=c[(c[f>>2]|0)-12>>2]|0;h=b;if((c[h+(g+24)>>2]|0)==0){i=d;return b|0}j=e|0;a[j]=0;c[e+4>>2]=b;do{if((c[h+(g+16)>>2]|0)==0){k=c[h+(g+72)>>2]|0;if((k|0)!=0){fg(k)|0}a[j]=1;k=c[h+((c[(c[f>>2]|0)-12>>2]|0)+24)>>2]|0;if((b0[c[(c[k>>2]|0)+24>>2]&127](k)|0)!=-1){break}k=c[(c[f>>2]|0)-12>>2]|0;eC(h+k|0,c[h+(k+16)>>2]|1)}}while(0);fi(e);i=d;return b|0}function fh(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;i=i+8|0;e=d|0;f=b;g=c[(c[f>>2]|0)-12>>2]|0;h=b;if((c[h+(g+24)>>2]|0)==0){i=d;return b|0}j=e|0;a[j]=0;c[e+4>>2]=b;do{if((c[h+(g+16)>>2]|0)==0){k=c[h+(g+72)>>2]|0;if((k|0)!=0){fh(k)|0}a[j]=1;k=c[h+((c[(c[f>>2]|0)-12>>2]|0)+24)>>2]|0;if((b0[c[(c[k>>2]|0)+24>>2]&127](k)|0)!=-1){break}k=c[(c[f>>2]|0)-12>>2]|0;eC(h+k|0,c[h+(k+16)>>2]|1)}}while(0);fj(e);i=d;return b|0}function fi(a){a=a|0;var b=0,d=0,e=0;b=a+4|0;a=c[b>>2]|0;d=c[(c[a>>2]|0)-12>>2]|0;e=a;if((c[e+(d+24)>>2]|0)==0){return}if((c[e+(d+16)>>2]|0)!=0){return}if((c[e+(d+4)>>2]&8192|0)==0){return}if(bh()|0){return}d=c[b>>2]|0;e=c[d+((c[(c[d>>2]|0)-12>>2]|0)+24)>>2]|0;if((b0[c[(c[e>>2]|0)+24>>2]&127](e)|0)!=-1){return}e=c[b>>2]|0;b=c[(c[e>>2]|0)-12>>2]|0;d=e;eC(d+b|0,c[d+(b+16)>>2]|1);return}function fj(a){a=a|0;var b=0,d=0,e=0;b=a+4|0;a=c[b>>2]|0;d=c[(c[a>>2]|0)-12>>2]|0;e=a;if((c[e+(d+24)>>2]|0)==0){return}if((c[e+(d+16)>>2]|0)!=0){return}if((c[e+(d+4)>>2]&8192|0)==0){return}if(bh()|0){return}d=c[b>>2]|0;e=c[d+((c[(c[d>>2]|0)-12>>2]|0)+24)>>2]|0;if((b0[c[(c[e>>2]|0)+24>>2]&127](e)|0)!=-1){return}e=c[b>>2]|0;b=c[(c[e>>2]|0)-12>>2]|0;d=e;eC(d+b|0,c[d+(b+16)>>2]|1);return}function fk(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;L2596:do{if((e|0)==(f|0)){g=b}else{a=b;h=e;while(1){if((a|0)==(d|0)){i=-1;j=2147;break}k=c[a>>2]|0;l=c[h>>2]|0;if((k|0)<(l|0)){i=-1;j=2150;break}if((l|0)<(k|0)){i=1;j=2148;break}k=a+4|0;l=h+4|0;if((l|0)==(f|0)){g=k;break L2596}else{a=k;h=l}}if((j|0)==2148){return i|0}else if((j|0)==2147){return i|0}else if((j|0)==2150){return i|0}}}while(0);i=(g|0)!=(d|0)|0;return i|0}function fl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;if((b|0)==(d|0)){e=0;return e|0}else{f=b;g=0}while(1){b=(c[f>>2]|0)+(g<<4)|0;a=b&-268435456;h=(a>>>24|a)^b;b=f+4|0;if((b|0)==(d|0)){e=h;break}else{f=b;g=h}}return e|0}function fm(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;d=e;g=f-d|0;h=g>>2;if(h>>>0>1073741822){dX(b)}if(h>>>0<2){a[b]=g>>>1&255;i=b+4|0}else{g=h+4&-4;j=kO(g<<2)|0;c[b+8>>2]=j;c[b>>2]=g|1;c[b+4>>2]=h;i=j}if((e|0)==(f|0)){k=i;c[k>>2]=0;return}j=(f-4+(-d|0)|0)>>>2;d=i;h=e;while(1){c[d>>2]=c[h>>2];e=h+4|0;if((e|0)==(f|0)){break}else{d=d+4|0;h=e}}k=i+(j+1<<2)|0;c[k>>2]=0;return}function fn(a){a=a|0;de(a|0);kS(a);return}function fo(a){a=a|0;de(a|0);return}function fp(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;k=i;i=i+112|0;l=e;e=i;i=i+4|0;i=i+7>>3<<3;c[e>>2]=c[l>>2];l=f;f=i;i=i+4|0;i=i+7>>3<<3;c[f>>2]=c[l>>2];l=k|0;m=k+16|0;n=k+32|0;o=k+40|0;p=k+48|0;q=k+56|0;r=k+64|0;s=k+72|0;t=k+80|0;u=k+104|0;if((c[g+4>>2]&1|0)==0){c[n>>2]=-1;v=c[(c[d>>2]|0)+16>>2]|0;w=e|0;c[p>>2]=c[w>>2];c[q>>2]=c[f>>2];bX[v&127](o,d,p,q,g,h,n);q=c[o>>2]|0;c[w>>2]=q;switch(c[n>>2]|0){case 1:{a[j]=1;break};case 0:{a[j]=0;break};default:{a[j]=1;c[h>>2]=4}}c[b>>2]=q;i=k;return}ej(r,g);q=r|0;r=c[q>>2]|0;if((c[3924]|0)!=-1){c[m>>2]=15696;c[m+4>>2]=12;c[m+8>>2]=0;dW(15696,m,96)}m=(c[3925]|0)-1|0;n=c[r+8>>2]|0;do{if((c[r+12>>2]|0)-n>>2>>>0>m>>>0){w=c[n+(m<<2)>>2]|0;if((w|0)==0){break}o=w;w=c[q>>2]|0;dz(w)|0;ej(s,g);w=s|0;p=c[w>>2]|0;if((c[3828]|0)!=-1){c[l>>2]=15312;c[l+4>>2]=12;c[l+8>>2]=0;dW(15312,l,96)}d=(c[3829]|0)-1|0;v=c[p+8>>2]|0;do{if((c[p+12>>2]|0)-v>>2>>>0>d>>>0){x=c[v+(d<<2)>>2]|0;if((x|0)==0){break}y=x;z=c[w>>2]|0;dz(z)|0;z=t|0;A=x;bZ[c[(c[A>>2]|0)+24>>2]&127](z,y);bZ[c[(c[A>>2]|0)+28>>2]&127](t+12|0,y);c[u>>2]=c[f>>2];a[j]=(fq(e,u,z,t+24|0,o,h,1)|0)==(z|0)|0;c[b>>2]=c[e>>2];dP(t+12|0);dP(t|0);i=k;return}}while(0);o=bO(4)|0;kq(o);bl(o|0,8176,134)}}while(0);k=bO(4)|0;kq(k);bl(k|0,8176,134)}function fq(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;l=i;i=i+104|0;m=e;e=i;i=i+4|0;i=i+7>>3<<3;c[e>>2]=c[m>>2];m=(g-f|0)/12|0;n=l|0;do{if(m>>>0>100){o=kJ(m)|0;if((o|0)!=0){p=o;q=o;break}kX();p=0;q=0}else{p=n;q=0}}while(0);n=(f|0)==(g|0);if(n){r=m;s=0}else{o=m;m=0;t=p;u=f;while(1){v=d[u]|0;if((v&1|0)==0){w=v>>>1}else{w=c[u+4>>2]|0}if((w|0)==0){a[t]=2;x=m+1|0;y=o-1|0}else{a[t]=1;x=m;y=o}v=u+12|0;if((v|0)==(g|0)){r=y;s=x;break}else{o=y;m=x;t=t+1|0;u=v}}}u=b|0;b=e|0;e=h;t=0;x=s;s=r;while(1){r=c[u>>2]|0;do{if((r|0)==0){z=0}else{if((c[r+12>>2]|0)!=(c[r+16>>2]|0)){z=r;break}if((b0[c[(c[r>>2]|0)+36>>2]&127](r)|0)==-1){c[u>>2]=0;z=0;break}else{z=c[u>>2]|0;break}}}while(0);r=(z|0)==0;m=c[b>>2]|0;if((m|0)==0){A=z;B=0}else{do{if((c[m+12>>2]|0)==(c[m+16>>2]|0)){if((b0[c[(c[m>>2]|0)+36>>2]&127](m)|0)!=-1){C=m;break}c[b>>2]=0;C=0}else{C=m}}while(0);A=c[u>>2]|0;B=C}D=(B|0)==0;if(!((r^D)&(s|0)!=0)){break}m=c[A+12>>2]|0;if((m|0)==(c[A+16>>2]|0)){E=(b0[c[(c[A>>2]|0)+36>>2]&127](A)|0)&255}else{E=a[m]|0}if(k){F=E}else{F=b_[c[(c[e>>2]|0)+12>>2]&31](h,E)|0}do{if(n){G=x;H=s}else{m=t+1|0;L2707:do{if(k){y=s;o=x;w=p;v=0;I=f;while(1){do{if((a[w]|0)==1){J=I;if((a[J]&1)==0){K=I+1|0}else{K=c[I+8>>2]|0}if(F<<24>>24!=(a[K+t|0]|0)){a[w]=0;L=v;M=o;N=y-1|0;break}O=d[J]|0;if((O&1|0)==0){P=O>>>1}else{P=c[I+4>>2]|0}if((P|0)!=(m|0)){L=1;M=o;N=y;break}a[w]=2;L=1;M=o+1|0;N=y-1|0}else{L=v;M=o;N=y}}while(0);O=I+12|0;if((O|0)==(g|0)){Q=N;R=M;S=L;break L2707}y=N;o=M;w=w+1|0;v=L;I=O}}else{I=s;v=x;w=p;o=0;y=f;while(1){do{if((a[w]|0)==1){O=y;if((a[O]&1)==0){T=y+1|0}else{T=c[y+8>>2]|0}if(F<<24>>24!=(b_[c[(c[e>>2]|0)+12>>2]&31](h,a[T+t|0]|0)|0)<<24>>24){a[w]=0;U=o;V=v;W=I-1|0;break}J=d[O]|0;if((J&1|0)==0){X=J>>>1}else{X=c[y+4>>2]|0}if((X|0)!=(m|0)){U=1;V=v;W=I;break}a[w]=2;U=1;V=v+1|0;W=I-1|0}else{U=o;V=v;W=I}}while(0);J=y+12|0;if((J|0)==(g|0)){Q=W;R=V;S=U;break L2707}I=W;v=V;w=w+1|0;o=U;y=J}}}while(0);if(!S){G=R;H=Q;break}m=c[u>>2]|0;y=m+12|0;o=c[y>>2]|0;if((o|0)==(c[m+16>>2]|0)){w=c[(c[m>>2]|0)+40>>2]|0;b0[w&127](m)|0}else{c[y>>2]=o+1}if((R+Q|0)>>>0<2|n){G=R;H=Q;break}o=t+1|0;y=R;m=p;w=f;while(1){do{if((a[m]|0)==2){v=d[w]|0;if((v&1|0)==0){Y=v>>>1}else{Y=c[w+4>>2]|0}if((Y|0)==(o|0)){Z=y;break}a[m]=0;Z=y-1|0}else{Z=y}}while(0);v=w+12|0;if((v|0)==(g|0)){G=Z;H=Q;break}else{y=Z;m=m+1|0;w=v}}}}while(0);t=t+1|0;x=G;s=H}do{if((A|0)==0){_=0}else{if((c[A+12>>2]|0)!=(c[A+16>>2]|0)){_=A;break}if((b0[c[(c[A>>2]|0)+36>>2]&127](A)|0)==-1){c[u>>2]=0;_=0;break}else{_=c[u>>2]|0;break}}}while(0);u=(_|0)==0;do{if(D){$=2293}else{if((c[B+12>>2]|0)!=(c[B+16>>2]|0)){if(u){break}else{$=2295;break}}if((b0[c[(c[B>>2]|0)+36>>2]&127](B)|0)==-1){c[b>>2]=0;$=2293;break}else{if(u^(B|0)==0){break}else{$=2295;break}}}}while(0);if(($|0)==2293){if(u){$=2295}}if(($|0)==2295){c[j>>2]=c[j>>2]|2}L2786:do{if(n){$=2300}else{u=f;B=p;while(1){if((a[B]|0)==2){aa=u;break L2786}b=u+12|0;if((b|0)==(g|0)){$=2300;break L2786}u=b;B=B+1|0}}}while(0);if(($|0)==2300){c[j>>2]=c[j>>2]|4;aa=g}if((q|0)==0){i=l;return aa|0}kK(q);i=l;return aa|0}function fr(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0;e=i;i=i+72|0;l=f;f=i;i=i+4|0;i=i+7>>3<<3;c[f>>2]=c[l>>2];l=g;g=i;i=i+4|0;i=i+7>>3<<3;c[g>>2]=c[l>>2];l=e+32|0;m=e+40|0;n=e+56|0;o=n;p=i;i=i+4|0;i=i+7>>3<<3;q=i;i=i+160|0;r=i;i=i+4|0;i=i+7>>3<<3;s=i;i=i+4|0;i=i+7>>3<<3;switch(c[h+4>>2]&74|0){case 64:{t=8;break};case 8:{t=16;break};case 0:{t=0;break};default:{t=10}}u=e|0;fx(m,h,u,l);k$(o|0,0,12);h=n;dR(n,10,0);if((a[o]&1)==0){v=h+1|0;w=v;x=v;y=n+8|0}else{v=n+8|0;w=c[v>>2]|0;x=h+1|0;y=v}c[p>>2]=w;v=q|0;c[r>>2]=v;c[s>>2]=0;h=f|0;f=g|0;g=n|0;z=n+4|0;A=a[l]|0;l=w;w=c[h>>2]|0;L2809:while(1){do{if((w|0)==0){B=0}else{if((c[w+12>>2]|0)!=(c[w+16>>2]|0)){B=w;break}if((b0[c[(c[w>>2]|0)+36>>2]&127](w)|0)!=-1){B=w;break}c[h>>2]=0;B=0}}while(0);C=(B|0)==0;D=c[f>>2]|0;do{if((D|0)==0){E=2327}else{if((c[D+12>>2]|0)!=(c[D+16>>2]|0)){if(C){F=D;G=0;break}else{H=l;I=D;J=0;break L2809}}if((b0[c[(c[D>>2]|0)+36>>2]&127](D)|0)==-1){c[f>>2]=0;E=2327;break}else{K=(D|0)==0;if(C^K){F=D;G=K;break}else{H=l;I=D;J=K;break L2809}}}}while(0);if((E|0)==2327){E=0;if(C){H=l;I=0;J=1;break}else{F=0;G=1}}D=d[o]|0;K=(D&1|0)==0;if(((c[p>>2]|0)-l|0)==((K?D>>>1:c[z>>2]|0)|0)){if(K){L=D>>>1;M=D>>>1}else{D=c[z>>2]|0;L=D;M=D}dR(n,L<<1,0);if((a[o]&1)==0){N=10}else{N=(c[g>>2]&-2)-1|0}dR(n,N,0);if((a[o]&1)==0){O=x}else{O=c[y>>2]|0}c[p>>2]=O+M;P=O}else{P=l}D=B+12|0;K=c[D>>2]|0;Q=B+16|0;if((K|0)==(c[Q>>2]|0)){R=(b0[c[(c[B>>2]|0)+36>>2]&127](B)|0)&255}else{R=a[K]|0}if((fs(R,t,P,p,s,A,m,v,r,u)|0)!=0){H=P;I=F;J=G;break}K=c[D>>2]|0;if((K|0)==(c[Q>>2]|0)){Q=c[(c[B>>2]|0)+40>>2]|0;b0[Q&127](B)|0;l=P;w=B;continue}else{c[D>>2]=K+1;l=P;w=B;continue}}w=d[m]|0;if((w&1|0)==0){S=w>>>1}else{S=c[m+4>>2]|0}do{if((S|0)!=0){w=c[r>>2]|0;if((w-q|0)>=160){break}P=c[s>>2]|0;c[r>>2]=w+4;c[w>>2]=P}}while(0);c[k>>2]=fu(H,c[p>>2]|0,j,t)|0;ft(m,v,c[r>>2]|0,j);do{if(C){T=0}else{if((c[B+12>>2]|0)!=(c[B+16>>2]|0)){T=B;break}if((b0[c[(c[B>>2]|0)+36>>2]&127](B)|0)!=-1){T=B;break}c[h>>2]=0;T=0}}while(0);h=(T|0)==0;L2869:do{if(J){E=2368}else{do{if((c[I+12>>2]|0)==(c[I+16>>2]|0)){if((b0[c[(c[I>>2]|0)+36>>2]&127](I)|0)!=-1){break}c[f>>2]=0;E=2368;break L2869}}while(0);if(!(h^(I|0)==0)){break}U=b|0;c[U>>2]=T;dP(n);dP(m);i=e;return}}while(0);do{if((E|0)==2368){if(h){break}U=b|0;c[U>>2]=T;dP(n);dP(m);i=e;return}}while(0);c[j>>2]=c[j>>2]|2;U=b|0;c[U>>2]=T;dP(n);dP(m);i=e;return}function fs(b,e,f,g,h,i,j,k,l,m){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0;n=c[g>>2]|0;o=(n|0)==(f|0);do{if(o){p=(a[m+24|0]|0)==b<<24>>24;if(!p){if((a[m+25|0]|0)!=b<<24>>24){break}}c[g>>2]=f+1;a[f]=p?43:45;c[h>>2]=0;q=0;return q|0}}while(0);p=d[j]|0;if((p&1|0)==0){r=p>>>1}else{r=c[j+4>>2]|0}if((r|0)!=0&b<<24>>24==i<<24>>24){i=c[l>>2]|0;if((i-k|0)>=160){q=0;return q|0}k=c[h>>2]|0;c[l>>2]=i+4;c[i>>2]=k;c[h>>2]=0;q=0;return q|0}k=m+26|0;i=m;while(1){if((i|0)==(k|0)){s=k;break}if((a[i]|0)==b<<24>>24){s=i;break}else{i=i+1|0}}i=s-m|0;if((i|0)>23){q=-1;return q|0}L2908:do{switch(e|0){case 8:case 10:{if((i|0)<(e|0)){break L2908}else{q=-1}return q|0};case 16:{if((i|0)<22){break L2908}if(o){q=-1;return q|0}if((n-f|0)>=3){q=-1;return q|0}if((a[n-1|0]|0)!=48){q=-1;return q|0}c[h>>2]=0;m=a[9744+i|0]|0;s=c[g>>2]|0;c[g>>2]=s+1;a[s]=m;q=0;return q|0};default:{}}}while(0);f=a[9744+i|0]|0;c[g>>2]=n+1;a[n]=f;c[h>>2]=(c[h>>2]|0)+1;q=0;return q|0}function ft(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;g=b;h=b;i=a[h]|0;j=i&255;if((j&1|0)==0){k=j>>>1}else{k=c[b+4>>2]|0}if((k|0)==0){return}do{if((d|0)==(e|0)){l=i}else{k=e-4|0;if(k>>>0>d>>>0){m=d;n=k}else{l=i;break}do{k=c[m>>2]|0;c[m>>2]=c[n>>2];c[n>>2]=k;m=m+4|0;n=n-4|0;}while(m>>>0<n>>>0);l=a[h]|0}}while(0);if((l&1)==0){o=g+1|0}else{o=c[b+8>>2]|0}g=l&255;if((g&1|0)==0){p=g>>>1}else{p=c[b+4>>2]|0}b=e-4|0;e=a[o]|0;g=e<<24>>24;l=e<<24>>24<1|e<<24>>24==127;L2947:do{if(b>>>0>d>>>0){e=o+p|0;h=o;n=d;m=g;i=l;while(1){if(!i){if((m|0)!=(c[n>>2]|0)){break}}k=(e-h|0)>1?h+1|0:h;j=n+4|0;q=a[k]|0;r=q<<24>>24;s=q<<24>>24<1|q<<24>>24==127;if(j>>>0<b>>>0){h=k;n=j;m=r;i=s}else{t=r;u=s;break L2947}}c[f>>2]=4;return}else{t=g;u=l}}while(0);if(u){return}u=c[b>>2]|0;if(!(t>>>0<u>>>0|(u|0)==0)){return}c[f>>2]=4;return}function fu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;i=i+8|0;h=g|0;if((b|0)==(d|0)){c[e>>2]=4;j=0;i=g;return j|0}k=c[(bw()|0)>>2]|0;c[(bw()|0)>>2]=0;do{if((a[16264]|0)==0){if((bc(16264)|0)==0){break}c[2958]=aS(1,1344,0)|0}}while(0);l=bI(b|0,h|0,f|0,c[2958]|0)|0;f=K;b=c[(bw()|0)>>2]|0;if((b|0)==0){c[(bw()|0)>>2]=k}if((c[h>>2]|0)!=(d|0)){c[e>>2]=4;j=0;i=g;return j|0}d=-1;h=0;if((b|0)==34|((f|0)<(d|0)|(f|0)==(d|0)&l>>>0<-2147483648>>>0)|((f|0)>(h|0)|(f|0)==(h|0)&l>>>0>2147483647>>>0)){c[e>>2]=4;e=0;j=(f|0)>(e|0)|(f|0)==(e|0)&l>>>0>0>>>0?2147483647:-2147483648;i=g;return j|0}else{j=l;i=g;return j|0}return 0}function fv(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;e=i;i=i+72|0;l=f;f=i;i=i+4|0;i=i+7>>3<<3;c[f>>2]=c[l>>2];l=g;g=i;i=i+4|0;i=i+7>>3<<3;c[g>>2]=c[l>>2];l=e+32|0;m=e+40|0;n=e+56|0;o=n;p=i;i=i+4|0;i=i+7>>3<<3;q=i;i=i+160|0;r=i;i=i+4|0;i=i+7>>3<<3;s=i;i=i+4|0;i=i+7>>3<<3;switch(c[h+4>>2]&74|0){case 8:{t=16;break};case 64:{t=8;break};case 0:{t=0;break};default:{t=10}}u=e|0;fx(m,h,u,l);k$(o|0,0,12);h=n;dR(n,10,0);if((a[o]&1)==0){v=h+1|0;w=v;x=v;y=n+8|0}else{v=n+8|0;w=c[v>>2]|0;x=h+1|0;y=v}c[p>>2]=w;v=q|0;c[r>>2]=v;c[s>>2]=0;h=f|0;f=g|0;g=n|0;z=n+4|0;A=a[l]|0;l=w;w=c[h>>2]|0;L2997:while(1){do{if((w|0)==0){B=0}else{if((c[w+12>>2]|0)!=(c[w+16>>2]|0)){B=w;break}if((b0[c[(c[w>>2]|0)+36>>2]&127](w)|0)!=-1){B=w;break}c[h>>2]=0;B=0}}while(0);C=(B|0)==0;D=c[f>>2]|0;do{if((D|0)==0){E=2476}else{if((c[D+12>>2]|0)!=(c[D+16>>2]|0)){if(C){F=D;G=0;break}else{H=l;I=D;J=0;break L2997}}if((b0[c[(c[D>>2]|0)+36>>2]&127](D)|0)==-1){c[f>>2]=0;E=2476;break}else{L=(D|0)==0;if(C^L){F=D;G=L;break}else{H=l;I=D;J=L;break L2997}}}}while(0);if((E|0)==2476){E=0;if(C){H=l;I=0;J=1;break}else{F=0;G=1}}D=d[o]|0;L=(D&1|0)==0;if(((c[p>>2]|0)-l|0)==((L?D>>>1:c[z>>2]|0)|0)){if(L){M=D>>>1;N=D>>>1}else{D=c[z>>2]|0;M=D;N=D}dR(n,M<<1,0);if((a[o]&1)==0){O=10}else{O=(c[g>>2]&-2)-1|0}dR(n,O,0);if((a[o]&1)==0){P=x}else{P=c[y>>2]|0}c[p>>2]=P+N;Q=P}else{Q=l}D=B+12|0;L=c[D>>2]|0;R=B+16|0;if((L|0)==(c[R>>2]|0)){S=(b0[c[(c[B>>2]|0)+36>>2]&127](B)|0)&255}else{S=a[L]|0}if((fs(S,t,Q,p,s,A,m,v,r,u)|0)!=0){H=Q;I=F;J=G;break}L=c[D>>2]|0;if((L|0)==(c[R>>2]|0)){R=c[(c[B>>2]|0)+40>>2]|0;b0[R&127](B)|0;l=Q;w=B;continue}else{c[D>>2]=L+1;l=Q;w=B;continue}}w=d[m]|0;if((w&1|0)==0){T=w>>>1}else{T=c[m+4>>2]|0}do{if((T|0)!=0){w=c[r>>2]|0;if((w-q|0)>=160){break}Q=c[s>>2]|0;c[r>>2]=w+4;c[w>>2]=Q}}while(0);s=fw(H,c[p>>2]|0,j,t)|0;c[k>>2]=s;c[k+4>>2]=K;ft(m,v,c[r>>2]|0,j);do{if(C){U=0}else{if((c[B+12>>2]|0)!=(c[B+16>>2]|0)){U=B;break}if((b0[c[(c[B>>2]|0)+36>>2]&127](B)|0)!=-1){U=B;break}c[h>>2]=0;U=0}}while(0);h=(U|0)==0;L3057:do{if(J){E=2517}else{do{if((c[I+12>>2]|0)==(c[I+16>>2]|0)){if((b0[c[(c[I>>2]|0)+36>>2]&127](I)|0)!=-1){break}c[f>>2]=0;E=2517;break L3057}}while(0);if(!(h^(I|0)==0)){break}V=b|0;c[V>>2]=U;dP(n);dP(m);i=e;return}}while(0);do{if((E|0)==2517){if(h){break}V=b|0;c[V>>2]=U;dP(n);dP(m);i=e;return}}while(0);c[j>>2]=c[j>>2]|2;V=b|0;c[V>>2]=U;dP(n);dP(m);i=e;return}function fw(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+8|0;h=g|0;if((b|0)==(d|0)){c[e>>2]=4;j=0;k=0;i=g;return(K=j,k)|0}l=c[(bw()|0)>>2]|0;c[(bw()|0)>>2]=0;do{if((a[16264]|0)==0){if((bc(16264)|0)==0){break}c[2958]=aS(1,1344,0)|0}}while(0);m=bI(b|0,h|0,f|0,c[2958]|0)|0;f=K;b=c[(bw()|0)>>2]|0;if((b|0)==0){c[(bw()|0)>>2]=l}if((c[h>>2]|0)!=(d|0)){c[e>>2]=4;j=0;k=0;i=g;return(K=j,k)|0}if((b|0)!=34){j=f;k=m;i=g;return(K=j,k)|0}c[e>>2]=4;e=0;b=(f|0)>(e|0)|(f|0)==(e|0)&m>>>0>0>>>0;j=b?2147483647:-2147483648;k=b?-1:0;i=g;return(K=j,k)|0}function fx(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;g=i;i=i+40|0;h=g|0;j=g+16|0;k=g+32|0;ej(k,d);d=k|0;k=c[d>>2]|0;if((c[3924]|0)!=-1){c[j>>2]=15696;c[j+4>>2]=12;c[j+8>>2]=0;dW(15696,j,96)}j=(c[3925]|0)-1|0;l=c[k+8>>2]|0;do{if((c[k+12>>2]|0)-l>>2>>>0>j>>>0){m=c[l+(j<<2)>>2]|0;if((m|0)==0){break}n=m;o=c[(c[m>>2]|0)+32>>2]|0;ca[o&15](n,9744,9770,e)|0;n=c[d>>2]|0;if((c[3828]|0)!=-1){c[h>>2]=15312;c[h+4>>2]=12;c[h+8>>2]=0;dW(15312,h,96)}o=(c[3829]|0)-1|0;m=c[n+8>>2]|0;do{if((c[n+12>>2]|0)-m>>2>>>0>o>>>0){p=c[m+(o<<2)>>2]|0;if((p|0)==0){break}q=p;a[f]=b0[c[(c[p>>2]|0)+16>>2]&127](q)|0;bZ[c[(c[p>>2]|0)+20>>2]&127](b,q);q=c[d>>2]|0;dz(q)|0;i=g;return}}while(0);o=bO(4)|0;kq(o);bl(o|0,8176,134)}}while(0);g=bO(4)|0;kq(g);bl(g|0,8176,134)}function fy(e,f,g,h,j,k,l){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;f=i;i=i+72|0;m=g;g=i;i=i+4|0;i=i+7>>3<<3;c[g>>2]=c[m>>2];m=h;h=i;i=i+4|0;i=i+7>>3<<3;c[h>>2]=c[m>>2];m=f+32|0;n=f+40|0;o=f+56|0;p=o;q=i;i=i+4|0;i=i+7>>3<<3;r=i;i=i+160|0;s=i;i=i+4|0;i=i+7>>3<<3;t=i;i=i+4|0;i=i+7>>3<<3;switch(c[j+4>>2]&74|0){case 0:{u=0;break};case 8:{u=16;break};case 64:{u=8;break};default:{u=10}}v=f|0;fx(n,j,v,m);k$(p|0,0,12);j=o;dR(o,10,0);if((a[p]&1)==0){w=j+1|0;x=w;y=w;z=o+8|0}else{w=o+8|0;x=c[w>>2]|0;y=j+1|0;z=w}c[q>>2]=x;w=r|0;c[s>>2]=w;c[t>>2]=0;j=g|0;g=h|0;h=o|0;A=o+4|0;B=a[m]|0;m=x;x=c[j>>2]|0;L3122:while(1){do{if((x|0)==0){C=0}else{if((c[x+12>>2]|0)!=(c[x+16>>2]|0)){C=x;break}if((b0[c[(c[x>>2]|0)+36>>2]&127](x)|0)!=-1){C=x;break}c[j>>2]=0;C=0}}while(0);D=(C|0)==0;E=c[g>>2]|0;do{if((E|0)==0){F=2579}else{if((c[E+12>>2]|0)!=(c[E+16>>2]|0)){if(D){G=E;H=0;break}else{I=m;J=E;K=0;break L3122}}if((b0[c[(c[E>>2]|0)+36>>2]&127](E)|0)==-1){c[g>>2]=0;F=2579;break}else{L=(E|0)==0;if(D^L){G=E;H=L;break}else{I=m;J=E;K=L;break L3122}}}}while(0);if((F|0)==2579){F=0;if(D){I=m;J=0;K=1;break}else{G=0;H=1}}E=d[p]|0;L=(E&1|0)==0;if(((c[q>>2]|0)-m|0)==((L?E>>>1:c[A>>2]|0)|0)){if(L){M=E>>>1;N=E>>>1}else{E=c[A>>2]|0;M=E;N=E}dR(o,M<<1,0);if((a[p]&1)==0){O=10}else{O=(c[h>>2]&-2)-1|0}dR(o,O,0);if((a[p]&1)==0){P=y}else{P=c[z>>2]|0}c[q>>2]=P+N;Q=P}else{Q=m}E=C+12|0;L=c[E>>2]|0;R=C+16|0;if((L|0)==(c[R>>2]|0)){S=(b0[c[(c[C>>2]|0)+36>>2]&127](C)|0)&255}else{S=a[L]|0}if((fs(S,u,Q,q,t,B,n,w,s,v)|0)!=0){I=Q;J=G;K=H;break}L=c[E>>2]|0;if((L|0)==(c[R>>2]|0)){R=c[(c[C>>2]|0)+40>>2]|0;b0[R&127](C)|0;m=Q;x=C;continue}else{c[E>>2]=L+1;m=Q;x=C;continue}}x=d[n]|0;if((x&1|0)==0){T=x>>>1}else{T=c[n+4>>2]|0}do{if((T|0)!=0){x=c[s>>2]|0;if((x-r|0)>=160){break}Q=c[t>>2]|0;c[s>>2]=x+4;c[x>>2]=Q}}while(0);b[l>>1]=fz(I,c[q>>2]|0,k,u)|0;ft(n,w,c[s>>2]|0,k);do{if(D){U=0}else{if((c[C+12>>2]|0)!=(c[C+16>>2]|0)){U=C;break}if((b0[c[(c[C>>2]|0)+36>>2]&127](C)|0)!=-1){U=C;break}c[j>>2]=0;U=0}}while(0);j=(U|0)==0;L3182:do{if(K){F=2620}else{do{if((c[J+12>>2]|0)==(c[J+16>>2]|0)){if((b0[c[(c[J>>2]|0)+36>>2]&127](J)|0)!=-1){break}c[g>>2]=0;F=2620;break L3182}}while(0);if(!(j^(J|0)==0)){break}V=e|0;c[V>>2]=U;dP(o);dP(n);i=f;return}}while(0);do{if((F|0)==2620){if(j){break}V=e|0;c[V>>2]=U;dP(o);dP(n);i=f;return}}while(0);c[k>>2]=c[k>>2]|2;V=e|0;c[V>>2]=U;dP(o);dP(n);i=f;return}function fz(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;i=i+8|0;h=g|0;if((b|0)==(d|0)){c[e>>2]=4;j=0;i=g;return j|0}if((a[b]|0)==45){c[e>>2]=4;j=0;i=g;return j|0}k=c[(bw()|0)>>2]|0;c[(bw()|0)>>2]=0;do{if((a[16264]|0)==0){if((bc(16264)|0)==0){break}c[2958]=aS(1,1344,0)|0}}while(0);l=aI(b|0,h|0,f|0,c[2958]|0)|0;f=K;b=c[(bw()|0)>>2]|0;if((b|0)==0){c[(bw()|0)>>2]=k}if((c[h>>2]|0)!=(d|0)){c[e>>2]=4;j=0;i=g;return j|0}d=0;if((b|0)==34|(f>>>0>d>>>0|f>>>0==d>>>0&l>>>0>65535>>>0)){c[e>>2]=4;j=-1;i=g;return j|0}else{j=l&65535;i=g;return j|0}return 0}function fA(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0;e=i;i=i+72|0;l=f;f=i;i=i+4|0;i=i+7>>3<<3;c[f>>2]=c[l>>2];l=g;g=i;i=i+4|0;i=i+7>>3<<3;c[g>>2]=c[l>>2];l=e+32|0;m=e+40|0;n=e+56|0;o=n;p=i;i=i+4|0;i=i+7>>3<<3;q=i;i=i+160|0;r=i;i=i+4|0;i=i+7>>3<<3;s=i;i=i+4|0;i=i+7>>3<<3;switch(c[h+4>>2]&74|0){case 64:{t=8;break};case 0:{t=0;break};case 8:{t=16;break};default:{t=10}}u=e|0;fx(m,h,u,l);k$(o|0,0,12);h=n;dR(n,10,0);if((a[o]&1)==0){v=h+1|0;w=v;x=v;y=n+8|0}else{v=n+8|0;w=c[v>>2]|0;x=h+1|0;y=v}c[p>>2]=w;v=q|0;c[r>>2]=v;c[s>>2]=0;h=f|0;f=g|0;g=n|0;z=n+4|0;A=a[l]|0;l=w;w=c[h>>2]|0;L3232:while(1){do{if((w|0)==0){B=0}else{if((c[w+12>>2]|0)!=(c[w+16>>2]|0)){B=w;break}if((b0[c[(c[w>>2]|0)+36>>2]&127](w)|0)!=-1){B=w;break}c[h>>2]=0;B=0}}while(0);C=(B|0)==0;D=c[f>>2]|0;do{if((D|0)==0){E=2669}else{if((c[D+12>>2]|0)!=(c[D+16>>2]|0)){if(C){F=D;G=0;break}else{H=l;I=D;J=0;break L3232}}if((b0[c[(c[D>>2]|0)+36>>2]&127](D)|0)==-1){c[f>>2]=0;E=2669;break}else{K=(D|0)==0;if(C^K){F=D;G=K;break}else{H=l;I=D;J=K;break L3232}}}}while(0);if((E|0)==2669){E=0;if(C){H=l;I=0;J=1;break}else{F=0;G=1}}D=d[o]|0;K=(D&1|0)==0;if(((c[p>>2]|0)-l|0)==((K?D>>>1:c[z>>2]|0)|0)){if(K){L=D>>>1;M=D>>>1}else{D=c[z>>2]|0;L=D;M=D}dR(n,L<<1,0);if((a[o]&1)==0){N=10}else{N=(c[g>>2]&-2)-1|0}dR(n,N,0);if((a[o]&1)==0){O=x}else{O=c[y>>2]|0}c[p>>2]=O+M;P=O}else{P=l}D=B+12|0;K=c[D>>2]|0;Q=B+16|0;if((K|0)==(c[Q>>2]|0)){R=(b0[c[(c[B>>2]|0)+36>>2]&127](B)|0)&255}else{R=a[K]|0}if((fs(R,t,P,p,s,A,m,v,r,u)|0)!=0){H=P;I=F;J=G;break}K=c[D>>2]|0;if((K|0)==(c[Q>>2]|0)){Q=c[(c[B>>2]|0)+40>>2]|0;b0[Q&127](B)|0;l=P;w=B;continue}else{c[D>>2]=K+1;l=P;w=B;continue}}w=d[m]|0;if((w&1|0)==0){S=w>>>1}else{S=c[m+4>>2]|0}do{if((S|0)!=0){w=c[r>>2]|0;if((w-q|0)>=160){break}P=c[s>>2]|0;c[r>>2]=w+4;c[w>>2]=P}}while(0);c[k>>2]=fB(H,c[p>>2]|0,j,t)|0;ft(m,v,c[r>>2]|0,j);do{if(C){T=0}else{if((c[B+12>>2]|0)!=(c[B+16>>2]|0)){T=B;break}if((b0[c[(c[B>>2]|0)+36>>2]&127](B)|0)!=-1){T=B;break}c[h>>2]=0;T=0}}while(0);h=(T|0)==0;L3292:do{if(J){E=2710}else{do{if((c[I+12>>2]|0)==(c[I+16>>2]|0)){if((b0[c[(c[I>>2]|0)+36>>2]&127](I)|0)!=-1){break}c[f>>2]=0;E=2710;break L3292}}while(0);if(!(h^(I|0)==0)){break}U=b|0;c[U>>2]=T;dP(n);dP(m);i=e;return}}while(0);do{if((E|0)==2710){if(h){break}U=b|0;c[U>>2]=T;dP(n);dP(m);i=e;return}}while(0);c[j>>2]=c[j>>2]|2;U=b|0;c[U>>2]=T;dP(n);dP(m);i=e;return}function fB(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;i=i+8|0;h=g|0;if((b|0)==(d|0)){c[e>>2]=4;j=0;i=g;return j|0}if((a[b]|0)==45){c[e>>2]=4;j=0;i=g;return j|0}k=c[(bw()|0)>>2]|0;c[(bw()|0)>>2]=0;do{if((a[16264]|0)==0){if((bc(16264)|0)==0){break}c[2958]=aS(1,1344,0)|0}}while(0);l=aI(b|0,h|0,f|0,c[2958]|0)|0;f=K;b=c[(bw()|0)>>2]|0;if((b|0)==0){c[(bw()|0)>>2]=k}if((c[h>>2]|0)!=(d|0)){c[e>>2]=4;j=0;i=g;return j|0}d=0;if((b|0)==34|(f>>>0>d>>>0|f>>>0==d>>>0&l>>>0>-1>>>0)){c[e>>2]=4;j=-1;i=g;return j|0}else{j=l;i=g;return j|0}return 0}function fC(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0;e=i;i=i+72|0;l=f;f=i;i=i+4|0;i=i+7>>3<<3;c[f>>2]=c[l>>2];l=g;g=i;i=i+4|0;i=i+7>>3<<3;c[g>>2]=c[l>>2];l=e+32|0;m=e+40|0;n=e+56|0;o=n;p=i;i=i+4|0;i=i+7>>3<<3;q=i;i=i+160|0;r=i;i=i+4|0;i=i+7>>3<<3;s=i;i=i+4|0;i=i+7>>3<<3;switch(c[h+4>>2]&74|0){case 0:{t=0;break};case 8:{t=16;break};case 64:{t=8;break};default:{t=10}}u=e|0;fx(m,h,u,l);k$(o|0,0,12);h=n;dR(n,10,0);if((a[o]&1)==0){v=h+1|0;w=v;x=v;y=n+8|0}else{v=n+8|0;w=c[v>>2]|0;x=h+1|0;y=v}c[p>>2]=w;v=q|0;c[r>>2]=v;c[s>>2]=0;h=f|0;f=g|0;g=n|0;z=n+4|0;A=a[l]|0;l=w;w=c[h>>2]|0;L3342:while(1){do{if((w|0)==0){B=0}else{if((c[w+12>>2]|0)!=(c[w+16>>2]|0)){B=w;break}if((b0[c[(c[w>>2]|0)+36>>2]&127](w)|0)!=-1){B=w;break}c[h>>2]=0;B=0}}while(0);C=(B|0)==0;D=c[f>>2]|0;do{if((D|0)==0){E=2759}else{if((c[D+12>>2]|0)!=(c[D+16>>2]|0)){if(C){F=D;G=0;break}else{H=l;I=D;J=0;break L3342}}if((b0[c[(c[D>>2]|0)+36>>2]&127](D)|0)==-1){c[f>>2]=0;E=2759;break}else{K=(D|0)==0;if(C^K){F=D;G=K;break}else{H=l;I=D;J=K;break L3342}}}}while(0);if((E|0)==2759){E=0;if(C){H=l;I=0;J=1;break}else{F=0;G=1}}D=d[o]|0;K=(D&1|0)==0;if(((c[p>>2]|0)-l|0)==((K?D>>>1:c[z>>2]|0)|0)){if(K){L=D>>>1;M=D>>>1}else{D=c[z>>2]|0;L=D;M=D}dR(n,L<<1,0);if((a[o]&1)==0){N=10}else{N=(c[g>>2]&-2)-1|0}dR(n,N,0);if((a[o]&1)==0){O=x}else{O=c[y>>2]|0}c[p>>2]=O+M;P=O}else{P=l}D=B+12|0;K=c[D>>2]|0;Q=B+16|0;if((K|0)==(c[Q>>2]|0)){R=(b0[c[(c[B>>2]|0)+36>>2]&127](B)|0)&255}else{R=a[K]|0}if((fs(R,t,P,p,s,A,m,v,r,u)|0)!=0){H=P;I=F;J=G;break}K=c[D>>2]|0;if((K|0)==(c[Q>>2]|0)){Q=c[(c[B>>2]|0)+40>>2]|0;b0[Q&127](B)|0;l=P;w=B;continue}else{c[D>>2]=K+1;l=P;w=B;continue}}w=d[m]|0;if((w&1|0)==0){S=w>>>1}else{S=c[m+4>>2]|0}do{if((S|0)!=0){w=c[r>>2]|0;if((w-q|0)>=160){break}P=c[s>>2]|0;c[r>>2]=w+4;c[w>>2]=P}}while(0);c[k>>2]=fD(H,c[p>>2]|0,j,t)|0;ft(m,v,c[r>>2]|0,j);do{if(C){T=0}else{if((c[B+12>>2]|0)!=(c[B+16>>2]|0)){T=B;break}if((b0[c[(c[B>>2]|0)+36>>2]&127](B)|0)!=-1){T=B;break}c[h>>2]=0;T=0}}while(0);h=(T|0)==0;L3402:do{if(J){E=2800}else{do{if((c[I+12>>2]|0)==(c[I+16>>2]|0)){if((b0[c[(c[I>>2]|0)+36>>2]&127](I)|0)!=-1){break}c[f>>2]=0;E=2800;break L3402}}while(0);if(!(h^(I|0)==0)){break}U=b|0;c[U>>2]=T;dP(n);dP(m);i=e;return}}while(0);do{if((E|0)==2800){if(h){break}U=b|0;c[U>>2]=T;dP(n);dP(m);i=e;return}}while(0);c[j>>2]=c[j>>2]|2;U=b|0;c[U>>2]=T;dP(n);dP(m);i=e;return}function fD(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;i=i+8|0;h=g|0;if((b|0)==(d|0)){c[e>>2]=4;j=0;i=g;return j|0}if((a[b]|0)==45){c[e>>2]=4;j=0;i=g;return j|0}k=c[(bw()|0)>>2]|0;c[(bw()|0)>>2]=0;do{if((a[16264]|0)==0){if((bc(16264)|0)==0){break}c[2958]=aS(1,1344,0)|0}}while(0);l=aI(b|0,h|0,f|0,c[2958]|0)|0;f=K;b=c[(bw()|0)>>2]|0;if((b|0)==0){c[(bw()|0)>>2]=k}if((c[h>>2]|0)!=(d|0)){c[e>>2]=4;j=0;i=g;return j|0}d=0;if((b|0)==34|(f>>>0>d>>>0|f>>>0==d>>>0&l>>>0>-1>>>0)){c[e>>2]=4;j=-1;i=g;return j|0}else{j=l;i=g;return j|0}return 0}function fE(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;e=i;i=i+72|0;l=f;f=i;i=i+4|0;i=i+7>>3<<3;c[f>>2]=c[l>>2];l=g;g=i;i=i+4|0;i=i+7>>3<<3;c[g>>2]=c[l>>2];l=e+32|0;m=e+40|0;n=e+56|0;o=n;p=i;i=i+4|0;i=i+7>>3<<3;q=i;i=i+160|0;r=i;i=i+4|0;i=i+7>>3<<3;s=i;i=i+4|0;i=i+7>>3<<3;switch(c[h+4>>2]&74|0){case 8:{t=16;break};case 0:{t=0;break};case 64:{t=8;break};default:{t=10}}u=e|0;fx(m,h,u,l);k$(o|0,0,12);h=n;dR(n,10,0);if((a[o]&1)==0){v=h+1|0;w=v;x=v;y=n+8|0}else{v=n+8|0;w=c[v>>2]|0;x=h+1|0;y=v}c[p>>2]=w;v=q|0;c[r>>2]=v;c[s>>2]=0;h=f|0;f=g|0;g=n|0;z=n+4|0;A=a[l]|0;l=w;w=c[h>>2]|0;L3452:while(1){do{if((w|0)==0){B=0}else{if((c[w+12>>2]|0)!=(c[w+16>>2]|0)){B=w;break}if((b0[c[(c[w>>2]|0)+36>>2]&127](w)|0)!=-1){B=w;break}c[h>>2]=0;B=0}}while(0);C=(B|0)==0;D=c[f>>2]|0;do{if((D|0)==0){E=2849}else{if((c[D+12>>2]|0)!=(c[D+16>>2]|0)){if(C){F=D;G=0;break}else{H=l;I=D;J=0;break L3452}}if((b0[c[(c[D>>2]|0)+36>>2]&127](D)|0)==-1){c[f>>2]=0;E=2849;break}else{L=(D|0)==0;if(C^L){F=D;G=L;break}else{H=l;I=D;J=L;break L3452}}}}while(0);if((E|0)==2849){E=0;if(C){H=l;I=0;J=1;break}else{F=0;G=1}}D=d[o]|0;L=(D&1|0)==0;if(((c[p>>2]|0)-l|0)==((L?D>>>1:c[z>>2]|0)|0)){if(L){M=D>>>1;N=D>>>1}else{D=c[z>>2]|0;M=D;N=D}dR(n,M<<1,0);if((a[o]&1)==0){O=10}else{O=(c[g>>2]&-2)-1|0}dR(n,O,0);if((a[o]&1)==0){P=x}else{P=c[y>>2]|0}c[p>>2]=P+N;Q=P}else{Q=l}D=B+12|0;L=c[D>>2]|0;R=B+16|0;if((L|0)==(c[R>>2]|0)){S=(b0[c[(c[B>>2]|0)+36>>2]&127](B)|0)&255}else{S=a[L]|0}if((fs(S,t,Q,p,s,A,m,v,r,u)|0)!=0){H=Q;I=F;J=G;break}L=c[D>>2]|0;if((L|0)==(c[R>>2]|0)){R=c[(c[B>>2]|0)+40>>2]|0;b0[R&127](B)|0;l=Q;w=B;continue}else{c[D>>2]=L+1;l=Q;w=B;continue}}w=d[m]|0;if((w&1|0)==0){T=w>>>1}else{T=c[m+4>>2]|0}do{if((T|0)!=0){w=c[r>>2]|0;if((w-q|0)>=160){break}Q=c[s>>2]|0;c[r>>2]=w+4;c[w>>2]=Q}}while(0);s=fF(H,c[p>>2]|0,j,t)|0;c[k>>2]=s;c[k+4>>2]=K;ft(m,v,c[r>>2]|0,j);do{if(C){U=0}else{if((c[B+12>>2]|0)!=(c[B+16>>2]|0)){U=B;break}if((b0[c[(c[B>>2]|0)+36>>2]&127](B)|0)!=-1){U=B;break}c[h>>2]=0;U=0}}while(0);h=(U|0)==0;L3512:do{if(J){E=2890}else{do{if((c[I+12>>2]|0)==(c[I+16>>2]|0)){if((b0[c[(c[I>>2]|0)+36>>2]&127](I)|0)!=-1){break}c[f>>2]=0;E=2890;break L3512}}while(0);if(!(h^(I|0)==0)){break}V=b|0;c[V>>2]=U;dP(n);dP(m);i=e;return}}while(0);do{if((E|0)==2890){if(h){break}V=b|0;c[V>>2]=U;dP(n);dP(m);i=e;return}}while(0);c[j>>2]=c[j>>2]|2;V=b|0;c[V>>2]=U;dP(n);dP(m);i=e;return}function fF(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;i=i+8|0;h=g|0;do{if((b|0)==(d|0)){c[e>>2]=4;j=0;k=0}else{if((a[b]|0)==45){c[e>>2]=4;j=0;k=0;break}l=c[(bw()|0)>>2]|0;c[(bw()|0)>>2]=0;do{if((a[16264]|0)==0){if((bc(16264)|0)==0){break}c[2958]=aS(1,1344,0)|0}}while(0);m=aI(b|0,h|0,f|0,c[2958]|0)|0;n=K;o=c[(bw()|0)>>2]|0;if((o|0)==0){c[(bw()|0)>>2]=l}if((c[h>>2]|0)!=(d|0)){c[e>>2]=4;j=0;k=0;break}if((o|0)!=34){j=n;k=m;break}c[e>>2]=4;j=-1;k=-1}}while(0);i=g;return(K=j,k)|0}function fG(b,e,f,g,h,i,j,k,l,m,n,o){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0;if(b<<24>>24==i<<24>>24){if((a[e]&1)==0){p=-1;return p|0}a[e]=0;i=c[h>>2]|0;c[h>>2]=i+1;a[i]=46;i=d[k]|0;if((i&1|0)==0){q=i>>>1}else{q=c[k+4>>2]|0}if((q|0)==0){p=0;return p|0}q=c[m>>2]|0;if((q-l|0)>=160){p=0;return p|0}i=c[n>>2]|0;c[m>>2]=q+4;c[q>>2]=i;p=0;return p|0}do{if(b<<24>>24==j<<24>>24){i=d[k]|0;if((i&1|0)==0){r=i>>>1}else{r=c[k+4>>2]|0}if((r|0)==0){break}if((a[e]&1)==0){p=-1;return p|0}i=c[m>>2]|0;if((i-l|0)>=160){p=0;return p|0}q=c[n>>2]|0;c[m>>2]=i+4;c[i>>2]=q;c[n>>2]=0;p=0;return p|0}}while(0);r=o+32|0;j=o;while(1){if((j|0)==(r|0)){s=r;break}if((a[j]|0)==b<<24>>24){s=j;break}else{j=j+1|0}}j=s-o|0;if((j|0)>31){p=-1;return p|0}o=a[9744+j|0]|0;switch(j|0){case 25:case 24:{s=c[h>>2]|0;do{if((s|0)!=(g|0)){if((a[s-1|0]&95|0)==(a[f]&127|0)){break}else{p=-1}return p|0}}while(0);c[h>>2]=s+1;a[s]=o;p=0;return p|0};case 22:case 23:{a[f]=80;s=c[h>>2]|0;c[h>>2]=s+1;a[s]=o;p=0;return p|0};default:{s=a[f]|0;do{if((o&95|0)==(s<<24>>24|0)){a[f]=s|-128;if((a[e]&1)==0){break}a[e]=0;g=d[k]|0;if((g&1|0)==0){t=g>>>1}else{t=c[k+4>>2]|0}if((t|0)==0){break}g=c[m>>2]|0;if((g-l|0)>=160){break}b=c[n>>2]|0;c[m>>2]=g+4;c[g>>2]=b}}while(0);m=c[h>>2]|0;c[h>>2]=m+1;a[m]=o;if((j|0)>21){p=0;return p|0}c[n>>2]=(c[n>>2]|0)+1;p=0;return p|0}}return 0}function fH(b,e,f,h,j,k,l){b=b|0;e=e|0;f=f|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;e=i;i=i+80|0;m=f;f=i;i=i+4|0;i=i+7>>3<<3;c[f>>2]=c[m>>2];m=h;h=i;i=i+4|0;i=i+7>>3<<3;c[h>>2]=c[m>>2];m=e+32|0;n=e+40|0;o=e+48|0;p=e+64|0;q=p;r=i;i=i+4|0;i=i+7>>3<<3;s=i;i=i+160|0;t=i;i=i+4|0;i=i+7>>3<<3;u=i;i=i+4|0;i=i+7>>3<<3;v=i;i=i+1|0;i=i+7>>3<<3;w=i;i=i+1|0;i=i+7>>3<<3;x=e|0;fJ(o,j,x,m,n);k$(q|0,0,12);j=p;dR(p,10,0);if((a[q]&1)==0){y=j+1|0;z=y;A=y;B=p+8|0}else{y=p+8|0;z=c[y>>2]|0;A=j+1|0;B=y}c[r>>2]=z;y=s|0;c[t>>2]=y;c[u>>2]=0;a[v]=1;a[w]=69;j=f|0;f=h|0;h=p|0;C=p+4|0;D=a[m]|0;m=a[n]|0;n=z;z=c[j>>2]|0;L3615:while(1){do{if((z|0)==0){E=0}else{if((c[z+12>>2]|0)!=(c[z+16>>2]|0)){E=z;break}if((b0[c[(c[z>>2]|0)+36>>2]&127](z)|0)!=-1){E=z;break}c[j>>2]=0;E=0}}while(0);F=(E|0)==0;G=c[f>>2]|0;do{if((G|0)==0){H=2978}else{if((c[G+12>>2]|0)!=(c[G+16>>2]|0)){if(F){I=G;J=0;break}else{K=n;L=G;M=0;break L3615}}if((b0[c[(c[G>>2]|0)+36>>2]&127](G)|0)==-1){c[f>>2]=0;H=2978;break}else{N=(G|0)==0;if(F^N){I=G;J=N;break}else{K=n;L=G;M=N;break L3615}}}}while(0);if((H|0)==2978){H=0;if(F){K=n;L=0;M=1;break}else{I=0;J=1}}G=d[q]|0;N=(G&1|0)==0;if(((c[r>>2]|0)-n|0)==((N?G>>>1:c[C>>2]|0)|0)){if(N){O=G>>>1;P=G>>>1}else{G=c[C>>2]|0;O=G;P=G}dR(p,O<<1,0);if((a[q]&1)==0){Q=10}else{Q=(c[h>>2]&-2)-1|0}dR(p,Q,0);if((a[q]&1)==0){R=A}else{R=c[B>>2]|0}c[r>>2]=R+P;S=R}else{S=n}G=E+12|0;N=c[G>>2]|0;T=E+16|0;if((N|0)==(c[T>>2]|0)){U=(b0[c[(c[E>>2]|0)+36>>2]&127](E)|0)&255}else{U=a[N]|0}if((fG(U,v,w,S,r,D,m,o,y,t,u,x)|0)!=0){K=S;L=I;M=J;break}N=c[G>>2]|0;if((N|0)==(c[T>>2]|0)){T=c[(c[E>>2]|0)+40>>2]|0;b0[T&127](E)|0;n=S;z=E;continue}else{c[G>>2]=N+1;n=S;z=E;continue}}z=d[o]|0;if((z&1|0)==0){V=z>>>1}else{V=c[o+4>>2]|0}do{if((V|0)!=0){if((a[v]&1)==0){break}z=c[t>>2]|0;if((z-s|0)>=160){break}S=c[u>>2]|0;c[t>>2]=z+4;c[z>>2]=S}}while(0);g[l>>2]=+fI(K,c[r>>2]|0,k);ft(o,y,c[t>>2]|0,k);do{if(F){W=0}else{if((c[E+12>>2]|0)!=(c[E+16>>2]|0)){W=E;break}if((b0[c[(c[E>>2]|0)+36>>2]&127](E)|0)!=-1){W=E;break}c[j>>2]=0;W=0}}while(0);j=(W|0)==0;L3676:do{if(M){H=3020}else{do{if((c[L+12>>2]|0)==(c[L+16>>2]|0)){if((b0[c[(c[L>>2]|0)+36>>2]&127](L)|0)!=-1){break}c[f>>2]=0;H=3020;break L3676}}while(0);if(!(j^(L|0)==0)){break}X=b|0;c[X>>2]=W;dP(p);dP(o);i=e;return}}while(0);do{if((H|0)==3020){if(j){break}X=b|0;c[X>>2]=W;dP(p);dP(o);i=e;return}}while(0);c[k>>2]=c[k>>2]|2;X=b|0;c[X>>2]=W;dP(p);dP(o);i=e;return}function fI(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0.0,j=0,k=0.0;f=i;i=i+8|0;g=f|0;if((b|0)==(d|0)){c[e>>2]=4;h=0.0;i=f;return+h}j=c[(bw()|0)>>2]|0;c[(bw()|0)>>2]=0;do{if((a[16264]|0)==0){if((bc(16264)|0)==0){break}c[2958]=aS(1,1344,0)|0}}while(0);k=+kW(b,g,c[2958]|0);b=c[(bw()|0)>>2]|0;if((b|0)==0){c[(bw()|0)>>2]=j}if((c[g>>2]|0)!=(d|0)){c[e>>2]=4;h=0.0;i=f;return+h}if((b|0)==34){c[e>>2]=4}h=k;i=f;return+h}function fJ(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;h=i;i=i+40|0;j=h|0;k=h+16|0;l=h+32|0;ej(l,d);d=l|0;l=c[d>>2]|0;if((c[3924]|0)!=-1){c[k>>2]=15696;c[k+4>>2]=12;c[k+8>>2]=0;dW(15696,k,96)}k=(c[3925]|0)-1|0;m=c[l+8>>2]|0;do{if((c[l+12>>2]|0)-m>>2>>>0>k>>>0){n=c[m+(k<<2)>>2]|0;if((n|0)==0){break}o=n;p=c[(c[n>>2]|0)+32>>2]|0;ca[p&15](o,9744,9776,e)|0;o=c[d>>2]|0;if((c[3828]|0)!=-1){c[j>>2]=15312;c[j+4>>2]=12;c[j+8>>2]=0;dW(15312,j,96)}p=(c[3829]|0)-1|0;n=c[o+8>>2]|0;do{if((c[o+12>>2]|0)-n>>2>>>0>p>>>0){q=c[n+(p<<2)>>2]|0;if((q|0)==0){break}r=q;s=q;a[f]=b0[c[(c[s>>2]|0)+12>>2]&127](r)|0;a[g]=b0[c[(c[s>>2]|0)+16>>2]&127](r)|0;bZ[c[(c[q>>2]|0)+20>>2]&127](b,r);r=c[d>>2]|0;dz(r)|0;i=h;return}}while(0);p=bO(4)|0;kq(p);bl(p|0,8176,134)}}while(0);h=bO(4)|0;kq(h);bl(h|0,8176,134)}function fK(b,e,f,g,j,k,l){b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;e=i;i=i+80|0;m=f;f=i;i=i+4|0;i=i+7>>3<<3;c[f>>2]=c[m>>2];m=g;g=i;i=i+4|0;i=i+7>>3<<3;c[g>>2]=c[m>>2];m=e+32|0;n=e+40|0;o=e+48|0;p=e+64|0;q=p;r=i;i=i+4|0;i=i+7>>3<<3;s=i;i=i+160|0;t=i;i=i+4|0;i=i+7>>3<<3;u=i;i=i+4|0;i=i+7>>3<<3;v=i;i=i+1|0;i=i+7>>3<<3;w=i;i=i+1|0;i=i+7>>3<<3;x=e|0;fJ(o,j,x,m,n);k$(q|0,0,12);j=p;dR(p,10,0);if((a[q]&1)==0){y=j+1|0;z=y;A=y;B=p+8|0}else{y=p+8|0;z=c[y>>2]|0;A=j+1|0;B=y}c[r>>2]=z;y=s|0;c[t>>2]=y;c[u>>2]=0;a[v]=1;a[w]=69;j=f|0;f=g|0;g=p|0;C=p+4|0;D=a[m]|0;m=a[n]|0;n=z;z=c[j>>2]|0;L3737:while(1){do{if((z|0)==0){E=0}else{if((c[z+12>>2]|0)!=(c[z+16>>2]|0)){E=z;break}if((b0[c[(c[z>>2]|0)+36>>2]&127](z)|0)!=-1){E=z;break}c[j>>2]=0;E=0}}while(0);F=(E|0)==0;G=c[f>>2]|0;do{if((G|0)==0){H=3079}else{if((c[G+12>>2]|0)!=(c[G+16>>2]|0)){if(F){I=G;J=0;break}else{K=n;L=G;M=0;break L3737}}if((b0[c[(c[G>>2]|0)+36>>2]&127](G)|0)==-1){c[f>>2]=0;H=3079;break}else{N=(G|0)==0;if(F^N){I=G;J=N;break}else{K=n;L=G;M=N;break L3737}}}}while(0);if((H|0)==3079){H=0;if(F){K=n;L=0;M=1;break}else{I=0;J=1}}G=d[q]|0;N=(G&1|0)==0;if(((c[r>>2]|0)-n|0)==((N?G>>>1:c[C>>2]|0)|0)){if(N){O=G>>>1;P=G>>>1}else{G=c[C>>2]|0;O=G;P=G}dR(p,O<<1,0);if((a[q]&1)==0){Q=10}else{Q=(c[g>>2]&-2)-1|0}dR(p,Q,0);if((a[q]&1)==0){R=A}else{R=c[B>>2]|0}c[r>>2]=R+P;S=R}else{S=n}G=E+12|0;N=c[G>>2]|0;T=E+16|0;if((N|0)==(c[T>>2]|0)){U=(b0[c[(c[E>>2]|0)+36>>2]&127](E)|0)&255}else{U=a[N]|0}if((fG(U,v,w,S,r,D,m,o,y,t,u,x)|0)!=0){K=S;L=I;M=J;break}N=c[G>>2]|0;if((N|0)==(c[T>>2]|0)){T=c[(c[E>>2]|0)+40>>2]|0;b0[T&127](E)|0;n=S;z=E;continue}else{c[G>>2]=N+1;n=S;z=E;continue}}z=d[o]|0;if((z&1|0)==0){V=z>>>1}else{V=c[o+4>>2]|0}do{if((V|0)!=0){if((a[v]&1)==0){break}z=c[t>>2]|0;if((z-s|0)>=160){break}S=c[u>>2]|0;c[t>>2]=z+4;c[z>>2]=S}}while(0);h[l>>3]=+fL(K,c[r>>2]|0,k);ft(o,y,c[t>>2]|0,k);do{if(F){W=0}else{if((c[E+12>>2]|0)!=(c[E+16>>2]|0)){W=E;break}if((b0[c[(c[E>>2]|0)+36>>2]&127](E)|0)!=-1){W=E;break}c[j>>2]=0;W=0}}while(0);j=(W|0)==0;L3798:do{if(M){H=3121}else{do{if((c[L+12>>2]|0)==(c[L+16>>2]|0)){if((b0[c[(c[L>>2]|0)+36>>2]&127](L)|0)!=-1){break}c[f>>2]=0;H=3121;break L3798}}while(0);if(!(j^(L|0)==0)){break}X=b|0;c[X>>2]=W;dP(p);dP(o);i=e;return}}while(0);do{if((H|0)==3121){if(j){break}X=b|0;c[X>>2]=W;dP(p);dP(o);i=e;return}}while(0);c[k>>2]=c[k>>2]|2;X=b|0;c[X>>2]=W;dP(p);dP(o);i=e;return}function fL(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0.0,j=0,k=0.0;f=i;i=i+8|0;g=f|0;if((b|0)==(d|0)){c[e>>2]=4;h=0.0;i=f;return+h}j=c[(bw()|0)>>2]|0;c[(bw()|0)>>2]=0;do{if((a[16264]|0)==0){if((bc(16264)|0)==0){break}c[2958]=aS(1,1344,0)|0}}while(0);k=+kW(b,g,c[2958]|0);b=c[(bw()|0)>>2]|0;if((b|0)==0){c[(bw()|0)>>2]=j}if((c[g>>2]|0)!=(d|0)){c[e>>2]=4;h=0.0;i=f;return+h}if((b|0)!=34){h=k;i=f;return+h}c[e>>2]=4;h=k;i=f;return+h}function fM(b,e,f,g,j,k,l){b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;e=i;i=i+80|0;m=f;f=i;i=i+4|0;i=i+7>>3<<3;c[f>>2]=c[m>>2];m=g;g=i;i=i+4|0;i=i+7>>3<<3;c[g>>2]=c[m>>2];m=e+32|0;n=e+40|0;o=e+48|0;p=e+64|0;q=p;r=i;i=i+4|0;i=i+7>>3<<3;s=i;i=i+160|0;t=i;i=i+4|0;i=i+7>>3<<3;u=i;i=i+4|0;i=i+7>>3<<3;v=i;i=i+1|0;i=i+7>>3<<3;w=i;i=i+1|0;i=i+7>>3<<3;x=e|0;fJ(o,j,x,m,n);k$(q|0,0,12);j=p;dR(p,10,0);if((a[q]&1)==0){y=j+1|0;z=y;A=y;B=p+8|0}else{y=p+8|0;z=c[y>>2]|0;A=j+1|0;B=y}c[r>>2]=z;y=s|0;c[t>>2]=y;c[u>>2]=0;a[v]=1;a[w]=69;j=f|0;f=g|0;g=p|0;C=p+4|0;D=a[m]|0;m=a[n]|0;n=z;z=c[j>>2]|0;L6:while(1){do{if((z|0)==0){E=0}else{if((c[z+12>>2]|0)!=(c[z+16>>2]|0)){E=z;break}if((b0[c[(c[z>>2]|0)+36>>2]&127](z)|0)!=-1){E=z;break}c[j>>2]=0;E=0}}while(0);F=(E|0)==0;G=c[f>>2]|0;do{if((G|0)==0){H=17}else{if((c[G+12>>2]|0)!=(c[G+16>>2]|0)){if(F){I=G;J=0;break}else{K=n;L=G;M=0;break L6}}if((b0[c[(c[G>>2]|0)+36>>2]&127](G)|0)==-1){c[f>>2]=0;H=17;break}else{N=(G|0)==0;if(F^N){I=G;J=N;break}else{K=n;L=G;M=N;break L6}}}}while(0);if((H|0)==17){H=0;if(F){K=n;L=0;M=1;break}else{I=0;J=1}}G=d[q]|0;N=(G&1|0)==0;if(((c[r>>2]|0)-n|0)==((N?G>>>1:c[C>>2]|0)|0)){if(N){O=G>>>1;P=G>>>1}else{G=c[C>>2]|0;O=G;P=G}dR(p,O<<1,0);if((a[q]&1)==0){Q=10}else{Q=(c[g>>2]&-2)-1|0}dR(p,Q,0);if((a[q]&1)==0){R=A}else{R=c[B>>2]|0}c[r>>2]=R+P;S=R}else{S=n}G=E+12|0;N=c[G>>2]|0;T=E+16|0;if((N|0)==(c[T>>2]|0)){U=(b0[c[(c[E>>2]|0)+36>>2]&127](E)|0)&255}else{U=a[N]|0}if((fG(U,v,w,S,r,D,m,o,y,t,u,x)|0)!=0){K=S;L=I;M=J;break}N=c[G>>2]|0;if((N|0)==(c[T>>2]|0)){T=c[(c[E>>2]|0)+40>>2]|0;b0[T&127](E)|0;n=S;z=E;continue}else{c[G>>2]=N+1;n=S;z=E;continue}}z=d[o]|0;if((z&1|0)==0){V=z>>>1}else{V=c[o+4>>2]|0}do{if((V|0)!=0){if((a[v]&1)==0){break}z=c[t>>2]|0;if((z-s|0)>=160){break}S=c[u>>2]|0;c[t>>2]=z+4;c[z>>2]=S}}while(0);h[l>>3]=+fN(K,c[r>>2]|0,k);ft(o,y,c[t>>2]|0,k);do{if(F){W=0}else{if((c[E+12>>2]|0)!=(c[E+16>>2]|0)){W=E;break}if((b0[c[(c[E>>2]|0)+36>>2]&127](E)|0)!=-1){W=E;break}c[j>>2]=0;W=0}}while(0);j=(W|0)==0;L67:do{if(M){H=59}else{do{if((c[L+12>>2]|0)==(c[L+16>>2]|0)){if((b0[c[(c[L>>2]|0)+36>>2]&127](L)|0)!=-1){break}c[f>>2]=0;H=59;break L67}}while(0);if(!(j^(L|0)==0)){break}X=b|0;c[X>>2]=W;dP(p);dP(o);i=e;return}}while(0);do{if((H|0)==59){if(j){break}X=b|0;c[X>>2]=W;dP(p);dP(o);i=e;return}}while(0);c[k>>2]=c[k>>2]|2;X=b|0;c[X>>2]=W;dP(p);dP(o);i=e;return}function fN(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0.0,j=0,k=0.0;f=i;i=i+8|0;g=f|0;if((b|0)==(d|0)){c[e>>2]=4;h=0.0;i=f;return+h}j=c[(bw()|0)>>2]|0;c[(bw()|0)>>2]=0;do{if((a[16264]|0)==0){if((bc(16264)|0)==0){break}c[2958]=aS(1,1344,0)|0}}while(0);k=+kW(b,g,c[2958]|0);b=c[(bw()|0)>>2]|0;if((b|0)==0){c[(bw()|0)>>2]=j}if((c[g>>2]|0)!=(d|0)){c[e>>2]=4;h=0.0;i=f;return+h}if((b|0)!=34){h=k;i=f;return+h}c[e>>2]=4;h=k;i=f;return+h}function fO(a){a=a|0;de(a|0);kS(a);return}function fP(a){a=a|0;de(a|0);return}function fQ(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;e=i;i=i+64|0;l=f;f=i;i=i+4|0;i=i+7>>3<<3;c[f>>2]=c[l>>2];l=g;g=i;i=i+4|0;i=i+7>>3<<3;c[g>>2]=c[l>>2];l=e|0;m=e+16|0;n=e+48|0;o=i;i=i+4|0;i=i+7>>3<<3;p=i;i=i+12|0;i=i+7>>3<<3;q=i;i=i+4|0;i=i+7>>3<<3;r=i;i=i+160|0;s=i;i=i+4|0;i=i+7>>3<<3;t=i;i=i+4|0;i=i+7>>3<<3;k$(n|0,0,12);u=p;ej(o,h);h=o|0;o=c[h>>2]|0;if((c[3924]|0)!=-1){c[l>>2]=15696;c[l+4>>2]=12;c[l+8>>2]=0;dW(15696,l,96)}l=(c[3925]|0)-1|0;v=c[o+8>>2]|0;do{if((c[o+12>>2]|0)-v>>2>>>0>l>>>0){w=c[v+(l<<2)>>2]|0;if((w|0)==0){break}x=w;y=m|0;z=c[(c[w>>2]|0)+32>>2]|0;ca[z&15](x,9744,9770,y)|0;x=c[h>>2]|0;dz(x)|0;k$(u|0,0,12);x=p;dR(p,10,0);if((a[u]&1)==0){z=x+1|0;A=z;B=z;C=p+8|0}else{z=p+8|0;A=c[z>>2]|0;B=x+1|0;C=z}c[q>>2]=A;z=r|0;c[s>>2]=z;c[t>>2]=0;x=f|0;w=g|0;D=p|0;E=p+4|0;F=A;G=c[x>>2]|0;L117:while(1){do{if((G|0)==0){H=0}else{if((c[G+12>>2]|0)!=(c[G+16>>2]|0)){H=G;break}if((b0[c[(c[G>>2]|0)+36>>2]&127](G)|0)!=-1){H=G;break}c[x>>2]=0;H=0}}while(0);I=(H|0)==0;J=c[w>>2]|0;do{if((J|0)==0){K=110}else{if((c[J+12>>2]|0)!=(c[J+16>>2]|0)){if(I){break}else{L=F;break L117}}if((b0[c[(c[J>>2]|0)+36>>2]&127](J)|0)==-1){c[w>>2]=0;K=110;break}else{if(I^(J|0)==0){break}else{L=F;break L117}}}}while(0);if((K|0)==110){K=0;if(I){L=F;break}}J=d[u]|0;M=(J&1|0)==0;if(((c[q>>2]|0)-F|0)==((M?J>>>1:c[E>>2]|0)|0)){if(M){N=J>>>1;O=J>>>1}else{J=c[E>>2]|0;N=J;O=J}dR(p,N<<1,0);if((a[u]&1)==0){P=10}else{P=(c[D>>2]&-2)-1|0}dR(p,P,0);if((a[u]&1)==0){Q=B}else{Q=c[C>>2]|0}c[q>>2]=Q+O;R=Q}else{R=F}J=H+12|0;M=c[J>>2]|0;S=H+16|0;if((M|0)==(c[S>>2]|0)){T=(b0[c[(c[H>>2]|0)+36>>2]&127](H)|0)&255}else{T=a[M]|0}if((fs(T,16,R,q,t,0,n,z,s,y)|0)!=0){L=R;break}M=c[J>>2]|0;if((M|0)==(c[S>>2]|0)){S=c[(c[H>>2]|0)+40>>2]|0;b0[S&127](H)|0;F=R;G=H;continue}else{c[J>>2]=M+1;F=R;G=H;continue}}a[L+3|0]=0;do{if((a[16264]|0)==0){if((bc(16264)|0)==0){break}c[2958]=aS(1,1344,0)|0}}while(0);G=fR(L,c[2958]|0,1320,(F=i,i=i+8|0,c[F>>2]=k,F)|0)|0;i=F;if((G|0)!=1){c[j>>2]=4}G=c[x>>2]|0;do{if((G|0)==0){U=0}else{if((c[G+12>>2]|0)!=(c[G+16>>2]|0)){U=G;break}if((b0[c[(c[G>>2]|0)+36>>2]&127](G)|0)!=-1){U=G;break}c[x>>2]=0;U=0}}while(0);x=(U|0)==0;G=c[w>>2]|0;do{if((G|0)==0){K=155}else{if((c[G+12>>2]|0)!=(c[G+16>>2]|0)){if(!x){break}V=b|0;c[V>>2]=U;dP(p);dP(n);i=e;return}if((b0[c[(c[G>>2]|0)+36>>2]&127](G)|0)==-1){c[w>>2]=0;K=155;break}if(!(x^(G|0)==0)){break}V=b|0;c[V>>2]=U;dP(p);dP(n);i=e;return}}while(0);do{if((K|0)==155){if(x){break}V=b|0;c[V>>2]=U;dP(p);dP(n);i=e;return}}while(0);c[j>>2]=c[j>>2]|2;V=b|0;c[V>>2]=U;dP(p);dP(n);i=e;return}}while(0);e=bO(4)|0;kq(e);bl(e|0,8176,134)}function fR(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=i;i=i+16|0;g=f|0;h=g;c[h>>2]=e;c[h+4>>2]=0;h=bB(b|0)|0;b=aY(a|0,d|0,g|0)|0;if((h|0)==0){i=f;return b|0}bB(h|0)|0;i=f;return b|0}function fS(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ab=0,ac=0,ad=0;l=i;i=i+104|0;m=e;e=i;i=i+4|0;i=i+7>>3<<3;c[e>>2]=c[m>>2];m=(g-f|0)/12|0;n=l|0;do{if(m>>>0>100){o=kJ(m)|0;if((o|0)!=0){p=o;q=o;break}kX();p=0;q=0}else{p=n;q=0}}while(0);n=(f|0)==(g|0);if(n){r=m;s=0}else{o=m;m=0;t=p;u=f;while(1){v=d[u]|0;if((v&1|0)==0){w=v>>>1}else{w=c[u+4>>2]|0}if((w|0)==0){a[t]=2;x=m+1|0;y=o-1|0}else{a[t]=1;x=m;y=o}v=u+12|0;if((v|0)==(g|0)){r=y;s=x;break}else{o=y;m=x;t=t+1|0;u=v}}}u=b|0;b=e|0;e=h;t=0;x=s;s=r;while(1){r=c[u>>2]|0;do{if((r|0)==0){z=0}else{m=c[r+12>>2]|0;if((m|0)==(c[r+16>>2]|0)){A=b0[c[(c[r>>2]|0)+36>>2]&127](r)|0}else{A=c[m>>2]|0}if((A|0)==-1){c[u>>2]=0;z=0;break}else{z=c[u>>2]|0;break}}}while(0);r=(z|0)==0;m=c[b>>2]|0;if((m|0)==0){B=z;C=0}else{y=c[m+12>>2]|0;if((y|0)==(c[m+16>>2]|0)){D=b0[c[(c[m>>2]|0)+36>>2]&127](m)|0}else{D=c[y>>2]|0}if((D|0)==-1){c[b>>2]=0;E=0}else{E=m}B=c[u>>2]|0;C=E}F=(C|0)==0;if(!((r^F)&(s|0)!=0)){break}r=c[B+12>>2]|0;if((r|0)==(c[B+16>>2]|0)){G=b0[c[(c[B>>2]|0)+36>>2]&127](B)|0}else{G=c[r>>2]|0}if(k){H=G}else{H=b_[c[(c[e>>2]|0)+28>>2]&31](h,G)|0}do{if(n){I=x;J=s}else{r=t+1|0;L249:do{if(k){m=s;y=x;o=p;w=0;v=f;while(1){do{if((a[o]|0)==1){K=v;if((a[K]&1)==0){L=v+4|0}else{L=c[v+8>>2]|0}if((H|0)!=(c[L+(t<<2)>>2]|0)){a[o]=0;M=w;N=y;O=m-1|0;break}P=d[K]|0;if((P&1|0)==0){Q=P>>>1}else{Q=c[v+4>>2]|0}if((Q|0)!=(r|0)){M=1;N=y;O=m;break}a[o]=2;M=1;N=y+1|0;O=m-1|0}else{M=w;N=y;O=m}}while(0);P=v+12|0;if((P|0)==(g|0)){R=O;S=N;T=M;break L249}m=O;y=N;o=o+1|0;w=M;v=P}}else{v=s;w=x;o=p;y=0;m=f;while(1){do{if((a[o]|0)==1){P=m;if((a[P]&1)==0){U=m+4|0}else{U=c[m+8>>2]|0}if((H|0)!=(b_[c[(c[e>>2]|0)+28>>2]&31](h,c[U+(t<<2)>>2]|0)|0)){a[o]=0;V=y;W=w;X=v-1|0;break}K=d[P]|0;if((K&1|0)==0){Y=K>>>1}else{Y=c[m+4>>2]|0}if((Y|0)!=(r|0)){V=1;W=w;X=v;break}a[o]=2;V=1;W=w+1|0;X=v-1|0}else{V=y;W=w;X=v}}while(0);K=m+12|0;if((K|0)==(g|0)){R=X;S=W;T=V;break L249}v=X;w=W;o=o+1|0;y=V;m=K}}}while(0);if(!T){I=S;J=R;break}r=c[u>>2]|0;m=r+12|0;y=c[m>>2]|0;if((y|0)==(c[r+16>>2]|0)){o=c[(c[r>>2]|0)+40>>2]|0;b0[o&127](r)|0}else{c[m>>2]=y+4}if((S+R|0)>>>0<2|n){I=S;J=R;break}y=t+1|0;m=S;r=p;o=f;while(1){do{if((a[r]|0)==2){w=d[o]|0;if((w&1|0)==0){Z=w>>>1}else{Z=c[o+4>>2]|0}if((Z|0)==(y|0)){_=m;break}a[r]=0;_=m-1|0}else{_=m}}while(0);w=o+12|0;if((w|0)==(g|0)){I=_;J=R;break}else{m=_;r=r+1|0;o=w}}}}while(0);t=t+1|0;x=I;s=J}do{if((B|0)==0){$=1}else{J=c[B+12>>2]|0;if((J|0)==(c[B+16>>2]|0)){aa=b0[c[(c[B>>2]|0)+36>>2]&127](B)|0}else{aa=c[J>>2]|0}if((aa|0)==-1){c[u>>2]=0;$=1;break}else{$=(c[u>>2]|0)==0;break}}}while(0);do{if(F){ab=264}else{u=c[C+12>>2]|0;if((u|0)==(c[C+16>>2]|0)){ac=b0[c[(c[C>>2]|0)+36>>2]&127](C)|0}else{ac=c[u>>2]|0}if((ac|0)==-1){c[b>>2]=0;ab=264;break}else{if($^(C|0)==0){break}else{ab=266;break}}}}while(0);if((ab|0)==264){if($){ab=266}}if((ab|0)==266){c[j>>2]=c[j>>2]|2}L330:do{if(n){ab=271}else{$=f;C=p;while(1){if((a[C]|0)==2){ad=$;break L330}b=$+12|0;if((b|0)==(g|0)){ab=271;break L330}$=b;C=C+1|0}}}while(0);if((ab|0)==271){c[j>>2]=c[j>>2]|4;ad=g}if((q|0)==0){i=l;return ad|0}kK(q);i=l;return ad|0}function fT(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;k=i;i=i+112|0;l=e;e=i;i=i+4|0;i=i+7>>3<<3;c[e>>2]=c[l>>2];l=f;f=i;i=i+4|0;i=i+7>>3<<3;c[f>>2]=c[l>>2];l=k|0;m=k+16|0;n=k+32|0;o=k+40|0;p=k+48|0;q=k+56|0;r=k+64|0;s=k+72|0;t=k+80|0;u=k+104|0;if((c[g+4>>2]&1|0)==0){c[n>>2]=-1;v=c[(c[d>>2]|0)+16>>2]|0;w=e|0;c[p>>2]=c[w>>2];c[q>>2]=c[f>>2];bX[v&127](o,d,p,q,g,h,n);q=c[o>>2]|0;c[w>>2]=q;switch(c[n>>2]|0){case 1:{a[j]=1;break};case 0:{a[j]=0;break};default:{a[j]=1;c[h>>2]=4}}c[b>>2]=q;i=k;return}ej(r,g);q=r|0;r=c[q>>2]|0;if((c[3922]|0)!=-1){c[m>>2]=15688;c[m+4>>2]=12;c[m+8>>2]=0;dW(15688,m,96)}m=(c[3923]|0)-1|0;n=c[r+8>>2]|0;do{if((c[r+12>>2]|0)-n>>2>>>0>m>>>0){w=c[n+(m<<2)>>2]|0;if((w|0)==0){break}o=w;w=c[q>>2]|0;dz(w)|0;ej(s,g);w=s|0;p=c[w>>2]|0;if((c[3826]|0)!=-1){c[l>>2]=15304;c[l+4>>2]=12;c[l+8>>2]=0;dW(15304,l,96)}d=(c[3827]|0)-1|0;v=c[p+8>>2]|0;do{if((c[p+12>>2]|0)-v>>2>>>0>d>>>0){x=c[v+(d<<2)>>2]|0;if((x|0)==0){break}y=x;z=c[w>>2]|0;dz(z)|0;z=t|0;A=x;bZ[c[(c[A>>2]|0)+24>>2]&127](z,y);bZ[c[(c[A>>2]|0)+28>>2]&127](t+12|0,y);c[u>>2]=c[f>>2];a[j]=(fS(e,u,z,t+24|0,o,h,1)|0)==(z|0)|0;c[b>>2]=c[e>>2];ee(t+12|0);ee(t|0);i=k;return}}while(0);o=bO(4)|0;kq(o);bl(o|0,8176,134)}}while(0);k=bO(4)|0;kq(k);bl(k|0,8176,134)}function fU(b,e,f,g,h,i,j,k,l,m){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0;n=c[g>>2]|0;o=(n|0)==(f|0);do{if(o){p=(c[m+96>>2]|0)==(b|0);if(!p){if((c[m+100>>2]|0)!=(b|0)){break}}c[g>>2]=f+1;a[f]=p?43:45;c[h>>2]=0;q=0;return q|0}}while(0);p=d[j]|0;if((p&1|0)==0){r=p>>>1}else{r=c[j+4>>2]|0}if((r|0)!=0&(b|0)==(i|0)){i=c[l>>2]|0;if((i-k|0)>=160){q=0;return q|0}k=c[h>>2]|0;c[l>>2]=i+4;c[i>>2]=k;c[h>>2]=0;q=0;return q|0}k=m+104|0;i=m;while(1){if((i|0)==(k|0)){s=k;break}if((c[i>>2]|0)==(b|0)){s=i;break}else{i=i+4|0}}i=s-m|0;m=i>>2;if((i|0)>92){q=-1;return q|0}L398:do{switch(e|0){case 8:case 10:{if((m|0)<(e|0)){break L398}else{q=-1}return q|0};case 16:{if((i|0)<88){break L398}if(o){q=-1;return q|0}if((n-f|0)>=3){q=-1;return q|0}if((a[n-1|0]|0)!=48){q=-1;return q|0}c[h>>2]=0;s=a[9744+m|0]|0;b=c[g>>2]|0;c[g>>2]=b+1;a[b]=s;q=0;return q|0};default:{}}}while(0);f=a[9744+m|0]|0;c[g>>2]=n+1;a[n]=f;c[h>>2]=(c[h>>2]|0)+1;q=0;return q|0}function fV(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;e=i;i=i+144|0;l=f;f=i;i=i+4|0;i=i+7>>3<<3;c[f>>2]=c[l>>2];l=g;g=i;i=i+4|0;i=i+7>>3<<3;c[g>>2]=c[l>>2];l=e+104|0;m=e+112|0;n=e+128|0;o=n;p=i;i=i+4|0;i=i+7>>3<<3;q=i;i=i+160|0;r=i;i=i+4|0;i=i+7>>3<<3;s=i;i=i+4|0;i=i+7>>3<<3;switch(c[h+4>>2]&74|0){case 8:{t=16;break};case 0:{t=0;break};case 64:{t=8;break};default:{t=10}}u=e|0;fW(m,h,u,l);k$(o|0,0,12);h=n;dR(n,10,0);if((a[o]&1)==0){v=h+1|0;w=v;x=v;y=n+8|0}else{v=n+8|0;w=c[v>>2]|0;x=h+1|0;y=v}c[p>>2]=w;v=q|0;c[r>>2]=v;c[s>>2]=0;h=f|0;f=g|0;g=n|0;z=n+4|0;A=c[l>>2]|0;l=w;w=c[h>>2]|0;L426:while(1){do{if((w|0)==0){B=0}else{C=c[w+12>>2]|0;if((C|0)==(c[w+16>>2]|0)){D=b0[c[(c[w>>2]|0)+36>>2]&127](w)|0}else{D=c[C>>2]|0}if((D|0)!=-1){B=w;break}c[h>>2]=0;B=0}}while(0);E=(B|0)==0;C=c[f>>2]|0;do{if((C|0)==0){F=363}else{G=c[C+12>>2]|0;if((G|0)==(c[C+16>>2]|0)){H=b0[c[(c[C>>2]|0)+36>>2]&127](C)|0}else{H=c[G>>2]|0}if((H|0)==-1){c[f>>2]=0;F=363;break}else{G=(C|0)==0;if(E^G){I=C;J=G;break}else{K=l;L=C;M=G;break L426}}}}while(0);if((F|0)==363){F=0;if(E){K=l;L=0;M=1;break}else{I=0;J=1}}C=d[o]|0;G=(C&1|0)==0;if(((c[p>>2]|0)-l|0)==((G?C>>>1:c[z>>2]|0)|0)){if(G){N=C>>>1;O=C>>>1}else{C=c[z>>2]|0;N=C;O=C}dR(n,N<<1,0);if((a[o]&1)==0){P=10}else{P=(c[g>>2]&-2)-1|0}dR(n,P,0);if((a[o]&1)==0){Q=x}else{Q=c[y>>2]|0}c[p>>2]=Q+O;R=Q}else{R=l}C=B+12|0;G=c[C>>2]|0;S=B+16|0;if((G|0)==(c[S>>2]|0)){T=b0[c[(c[B>>2]|0)+36>>2]&127](B)|0}else{T=c[G>>2]|0}if((fU(T,t,R,p,s,A,m,v,r,u)|0)!=0){K=R;L=I;M=J;break}G=c[C>>2]|0;if((G|0)==(c[S>>2]|0)){S=c[(c[B>>2]|0)+40>>2]|0;b0[S&127](B)|0;l=R;w=B;continue}else{c[C>>2]=G+4;l=R;w=B;continue}}w=d[m]|0;if((w&1|0)==0){U=w>>>1}else{U=c[m+4>>2]|0}do{if((U|0)!=0){w=c[r>>2]|0;if((w-q|0)>=160){break}R=c[s>>2]|0;c[r>>2]=w+4;c[w>>2]=R}}while(0);c[k>>2]=fu(K,c[p>>2]|0,j,t)|0;ft(m,v,c[r>>2]|0,j);do{if(E){V=0}else{r=c[B+12>>2]|0;if((r|0)==(c[B+16>>2]|0)){W=b0[c[(c[B>>2]|0)+36>>2]&127](B)|0}else{W=c[r>>2]|0}if((W|0)!=-1){V=B;break}c[h>>2]=0;V=0}}while(0);h=(V|0)==0;do{if(M){F=405}else{B=c[L+12>>2]|0;if((B|0)==(c[L+16>>2]|0)){X=b0[c[(c[L>>2]|0)+36>>2]&127](L)|0}else{X=c[B>>2]|0}if((X|0)==-1){c[f>>2]=0;F=405;break}if(!(h^(L|0)==0)){break}Y=b|0;c[Y>>2]=V;dP(n);dP(m);i=e;return}}while(0);do{if((F|0)==405){if(h){break}Y=b|0;c[Y>>2]=V;dP(n);dP(m);i=e;return}}while(0);c[j>>2]=c[j>>2]|2;Y=b|0;c[Y>>2]=V;dP(n);dP(m);i=e;return}function fW(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;i=i+40|0;g=f|0;h=f+16|0;j=f+32|0;ej(j,b);b=j|0;j=c[b>>2]|0;if((c[3922]|0)!=-1){c[h>>2]=15688;c[h+4>>2]=12;c[h+8>>2]=0;dW(15688,h,96)}h=(c[3923]|0)-1|0;k=c[j+8>>2]|0;do{if((c[j+12>>2]|0)-k>>2>>>0>h>>>0){l=c[k+(h<<2)>>2]|0;if((l|0)==0){break}m=l;n=c[(c[l>>2]|0)+48>>2]|0;ca[n&15](m,9744,9770,d)|0;m=c[b>>2]|0;if((c[3826]|0)!=-1){c[g>>2]=15304;c[g+4>>2]=12;c[g+8>>2]=0;dW(15304,g,96)}n=(c[3827]|0)-1|0;l=c[m+8>>2]|0;do{if((c[m+12>>2]|0)-l>>2>>>0>n>>>0){o=c[l+(n<<2)>>2]|0;if((o|0)==0){break}p=o;c[e>>2]=b0[c[(c[o>>2]|0)+16>>2]&127](p)|0;bZ[c[(c[o>>2]|0)+20>>2]&127](a,p);p=c[b>>2]|0;dz(p)|0;i=f;return}}while(0);n=bO(4)|0;kq(n);bl(n|0,8176,134)}}while(0);f=bO(4)|0;kq(f);bl(f|0,8176,134)}function fX(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;e=i;i=i+144|0;l=f;f=i;i=i+4|0;i=i+7>>3<<3;c[f>>2]=c[l>>2];l=g;g=i;i=i+4|0;i=i+7>>3<<3;c[g>>2]=c[l>>2];l=e+104|0;m=e+112|0;n=e+128|0;o=n;p=i;i=i+4|0;i=i+7>>3<<3;q=i;i=i+160|0;r=i;i=i+4|0;i=i+7>>3<<3;s=i;i=i+4|0;i=i+7>>3<<3;switch(c[h+4>>2]&74|0){case 8:{t=16;break};case 0:{t=0;break};case 64:{t=8;break};default:{t=10}}u=e|0;fW(m,h,u,l);k$(o|0,0,12);h=n;dR(n,10,0);if((a[o]&1)==0){v=h+1|0;w=v;x=v;y=n+8|0}else{v=n+8|0;w=c[v>>2]|0;x=h+1|0;y=v}c[p>>2]=w;v=q|0;c[r>>2]=v;c[s>>2]=0;h=f|0;f=g|0;g=n|0;z=n+4|0;A=c[l>>2]|0;l=w;w=c[h>>2]|0;L535:while(1){do{if((w|0)==0){B=0}else{C=c[w+12>>2]|0;if((C|0)==(c[w+16>>2]|0)){D=b0[c[(c[w>>2]|0)+36>>2]&127](w)|0}else{D=c[C>>2]|0}if((D|0)!=-1){B=w;break}c[h>>2]=0;B=0}}while(0);E=(B|0)==0;C=c[f>>2]|0;do{if((C|0)==0){F=450}else{G=c[C+12>>2]|0;if((G|0)==(c[C+16>>2]|0)){H=b0[c[(c[C>>2]|0)+36>>2]&127](C)|0}else{H=c[G>>2]|0}if((H|0)==-1){c[f>>2]=0;F=450;break}else{G=(C|0)==0;if(E^G){I=C;J=G;break}else{L=l;M=C;N=G;break L535}}}}while(0);if((F|0)==450){F=0;if(E){L=l;M=0;N=1;break}else{I=0;J=1}}C=d[o]|0;G=(C&1|0)==0;if(((c[p>>2]|0)-l|0)==((G?C>>>1:c[z>>2]|0)|0)){if(G){O=C>>>1;P=C>>>1}else{C=c[z>>2]|0;O=C;P=C}dR(n,O<<1,0);if((a[o]&1)==0){Q=10}else{Q=(c[g>>2]&-2)-1|0}dR(n,Q,0);if((a[o]&1)==0){R=x}else{R=c[y>>2]|0}c[p>>2]=R+P;S=R}else{S=l}C=B+12|0;G=c[C>>2]|0;T=B+16|0;if((G|0)==(c[T>>2]|0)){U=b0[c[(c[B>>2]|0)+36>>2]&127](B)|0}else{U=c[G>>2]|0}if((fU(U,t,S,p,s,A,m,v,r,u)|0)!=0){L=S;M=I;N=J;break}G=c[C>>2]|0;if((G|0)==(c[T>>2]|0)){T=c[(c[B>>2]|0)+40>>2]|0;b0[T&127](B)|0;l=S;w=B;continue}else{c[C>>2]=G+4;l=S;w=B;continue}}w=d[m]|0;if((w&1|0)==0){V=w>>>1}else{V=c[m+4>>2]|0}do{if((V|0)!=0){w=c[r>>2]|0;if((w-q|0)>=160){break}S=c[s>>2]|0;c[r>>2]=w+4;c[w>>2]=S}}while(0);s=fw(L,c[p>>2]|0,j,t)|0;c[k>>2]=s;c[k+4>>2]=K;ft(m,v,c[r>>2]|0,j);do{if(E){W=0}else{r=c[B+12